@redocly/openapi-language-server 0.10.34 → 0.10.35
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.js +46 -46
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ab=Object.create;var ri=Object.defineProperty;var cb=Object.getOwnPropertyDescriptor;var ub=Object.getOwnPropertyNames;var lb=Object.getPrototypeOf,pb=Object.prototype.hasOwnProperty;var vl=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(r){throw n=[r],r}};var R=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},bs=(e,t)=>{for(var n in t)ri(e,n,{get:t[n],enumerable:!0})},ni=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ub(t))!pb.call(e,i)&&i!==n&&ri(e,i,{get:()=>t[i],enumerable:!(r=cb(t,i))||r.enumerable});return e},vs=(e,t,n)=>(ni(e,t,"default"),n&&ni(n,t,"default")),Ne=(e,t,n)=>(n=e!=null?ab(lb(e)):{},ni(t||!e||!e.__esModule?ri(n,"default",{value:e,enumerable:!0}):n,e)),ii=e=>ni(ri({},"__esModule",{value:!0}),e);var Ot=R(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.isYAMLNode=be.isNodesEqual=be.newMap=be.newSeq=be.newItems=be.newScalar=be.newAnchorRef=be.newMapping=be.Kind=void 0;var Pt;(function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"})(Pt=be.Kind||(be.Kind={}));function gb(e,t,n=2){var r=t?t.endPosition:e.endPosition+1,i={key:e,value:t,nodeIndent:n,startPosition:e.startPosition,endPosition:r,kind:Pt.MAPPING,parent:null,errors:[]};return i}be.newMapping=gb;function yb(e,t,n,r,i=2){return{errors:[],referencesAnchor:e,value:r,nodeIndent:i,startPosition:t,endPosition:n,kind:Pt.ANCHOR_REF,parent:null}}be.newAnchorRef=yb;function hb(e="",t=2){let n={errors:[],startPosition:-1,endPosition:-1,value:""+e,nodeIndent:t,kind:Pt.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(n.valueObject=e),n}be.newScalar=hb;function Tl(){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:2,items:[],kind:Pt.SEQ,parent:null}}be.newItems=Tl;function bb(){return Tl()}be.newSeq=bb;function vb(e,t=2){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:t,mappings:e||[],kind:Pt.MAP,parent:null}}be.newMap=vb;function vr(e,t){if(!e||!t||e.kind!==t.kind)return!1;if(e.kind===Pt.SCALAR)return e.value===t.value;if(e.kind===Pt.SEQ){let n=e,r=t;if(n.items.length!==r.items.length)return!1;for(let i=0;i<n.items.length;i++){let o=n.items[i],s=r.items[i];if(!vr(o,s))return!1}return!0}if(e.kind===Pt.MAP){let n=e,r=t;if(n.mappings.length!==r.mappings.length)return!1;for(let i of n.mappings){let o=i.key,s=i.value,a=r.mappings.find(c=>vr(o,c.key));if(a){if(!vr(s,a.value))return!1}else return!1}return!0}if(Pt.MAPPING===e.kind){let n=e,r=t;return vr(n.key,r.key)}return!1}be.isNodesEqual=vr;function Pb(e){return e.startPosition!==void 0&&e.endPosition!==void 0&&e.kind!==void 0}be.isYAMLNode=Pb});var pn=R(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.isNegativeZero=ze.repeat=ze.extend=ze.toArray=ze.isObject=ze.isNothing=void 0;function Dl(e){return typeof e>"u"||e===null}ze.isNothing=Dl;function xb(e){return typeof e=="object"&&e!==null}ze.isObject=xb;function _b(e){return Array.isArray(e)?e:Dl(e)?[]:[e]}ze.toArray=_b;function Cb(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n<r;n+=1)i=o[n],e[i]=t[i];return e}ze.extend=Cb;function Rb(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}ze.repeat=Rb;function Tb(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}ze.isNegativeZero=Tb});var An=R((uw,wl)=>{"use strict";var ai=class e{constructor(t,n=null,r=!1){this.name="YAMLException",this.reason=t,this.mark=n,this.message=this.toString(!1),this.isWarning=r}static isInstance(t){if(t!=null&&t.getClassIdentifier&&typeof t.getClassIdentifier=="function"){for(let n of t.getClassIdentifier())if(n==e.CLASS_IDENTIFIER)return!0}return!1}getClassIdentifier(){var t=[];return t.concat(e.CLASS_IDENTIFIER)}toString(t=!1){var n;return n="JS-YAML: "+(this.reason||"(unknown reason)"),!t&&this.mark&&(n+=" "+this.mark.toString()),n}};ai.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException";wl.exports=ai});var Al=R((lw,kl)=>{"use strict";var Sl=pn(),Rs=class{constructor(t,n,r,i,o){this.name=t,this.buffer=n,this.position=r,this.line=i,this.column=o}getSnippet(t=0,n=75){var r,i,o,s,a;if(!this.buffer)return null;for(t=t||4,n=n||75,r="",i=this.position;i>0&&`\0\r
|
|
2
2
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>n/2-1){r=" ... ",i+=5;break}for(o="",s=this.position;s<this.buffer.length&&`\0\r
|
|
3
3
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>n/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),Sl.repeat(" ",t)+r+a+o+`
|
|
4
4
|
`+Sl.repeat(" ",t+this.position-i+r.length)+"^"}toString(t=!0){var n,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),t||(n=this.getSnippet(),n&&(r+=`:
|
|
5
|
-
`+n)),r}};kl.exports=
|
|
6
|
-
\r`;function
|
|
7
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function
|
|
8
|
-
`){e.position--,e.position==i&&(e.position+=1);return}if(o=="\r"){e.position--,e.position==i&&(e.position+=1);return}e.position++}}}function
|
|
9
|
-
`,n-1))}function
|
|
10
|
-
`,a):i===
|
|
5
|
+
`+n)),r}};kl.exports=Rs});var qe=R(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.Type=void 0;var El=An(),Db=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],wb=["scalar","sequence","mapping"];function Sb(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}var Ts=class{constructor(t,n){if(n=n||{},Object.keys(n).forEach(function(r){if(Db.indexOf(r)===-1)throw new El('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(r){return r},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.defaultStyle=n.defaultStyle||null,this.styleAliases=Sb(n.styleAliases||null),wb.indexOf(this.kind)===-1)throw new El('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}};ci.Type=Ts});var En=R(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.Schema=void 0;var Nl=pn(),ui=An(),kb=qe();function Ds(e,t,n){var r=[];return e.include.forEach(function(i){n=Ds(i,t,n)}),e[t].forEach(function(i){n.forEach(function(o,s){o.tag===i.tag&&r.push(s)}),n.push(i)}),n.filter(function(i,o){return r.indexOf(o)===-1})}function Ab(){var e={},t,n;function r(i){e[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}var Bt=class{constructor(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(n){if(n.loadKind&&n.loadKind!=="scalar")throw new ui("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Ds(this,"implicit",[]),this.compiledExplicit=Ds(this,"explicit",[]),this.compiledTypeMap=Ab(this.compiledImplicit,this.compiledExplicit)}};li.Schema=Bt;Bt.DEFAULT=null;Bt.create=function(...t){var n,r;switch(t.length){case 1:n=Bt.DEFAULT,r=t[0];break;case 2:n=t[0],r=t[1];break;default:throw new ui("Wrong number of arguments for Schema.create function")}if(n=Nl.toArray(n),r=Nl.toArray(r),!n.every(function(i){return i instanceof Bt}))throw new ui("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof kb.Type}))throw new ui("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Bt({include:n,explicit:r})}});var Ol=R((fw,ql)=>{"use strict";var Eb=qe();ql.exports=new Eb.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Ll=R((mw,jl)=>{"use strict";var Nb=qe();jl.exports=new Nb.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Il=R((gw,Ml)=>{"use strict";var qb=qe();Ml.exports=new qb.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Ul=R((yw,Fl)=>{"use strict";var Ob=En();Fl.exports=new Ob.Schema({explicit:[Ol(),Ll(),Il()]})});var Bl=R((hw,Hl)=>{"use strict";var jb=qe(),Wl=Ot();function Lb(e){let t=Wl.isYAMLNode(e)?e.value:e;if(t===null)return!0;var n=t.length;return n===1&&t==="~"||n===4&&(t==="null"||t==="Null"||t==="NULL")}function Mb(e){return Wl.isYAMLNode(e)?e:null}function Ib(e){return e===null}Hl.exports=new jb.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:Lb,construct:Mb,predicate:Ib,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var Yl=R((bw,$l)=>{"use strict";var Fb=qe(),zl=Ot();function Ub(e){let t=zl.isYAMLNode(e)?e.value:e;if(t===null)return!1;var n=t.length;return n===4&&(t==="true"||t==="True"||t==="TRUE")||n===5&&(t==="false"||t==="False"||t==="FALSE")}function Wb(e){return zl.isYAMLNode(e)?e:e==="true"||e==="True"||e==="TRUE"}function Hb(e){return Object.prototype.toString.call(e)==="[object Boolean]"}$l.exports=new Fb.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Ub,construct:Wb,predicate:Hb,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var Gl=R((vw,Kl)=>{"use strict";var Bb=pn(),zb=qe(),Vl=Ot();function $b(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Yb(e){return 48<=e&&e<=55}function Vb(e){return 48<=e&&e<=57}function Kb(e){let t=Vl.isYAMLNode(e)?e.value:e;if(t===null)return!1;var n=t.length,r=0,i=!1,o;if(!n)return!1;if(o=t[r],(o==="-"||o==="+")&&(o=t[++r]),o==="0"){if(r+1===n)return!0;if(o=t[++r],o==="b"){for(r++;r<n;r++)if(o=t[r],o!=="_"){if(o!=="0"&&o!=="1")return!1;i=!0}return i}if(o==="x"){for(r++;r<n;r++)if(o=t[r],o!=="_"){if(!$b(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(!Yb(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(o===":")break;if(!Vb(t.charCodeAt(r)))return!1;i=!0}return i?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r)):!1}function Gb(e){if(Vl.isYAMLNode(e))return e;var t=e,n=1,r,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0"?0:r==="0"?t[1]==="b"?n*parseInt(t.slice(2),2):t[1]==="x"?n*parseInt(t,16):n*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){o.unshift(parseInt(s,10))}),t=0,i=1,o.forEach(function(s){t+=s*i,i*=60}),n*t):n*parseInt(t,10)}function Qb(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Bb.isNegativeZero(e)}Kl.exports=new zb.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:Kb,construct:Gb,predicate:Qb,represent:{binary:function(e){return"0b"+e.toString(2)},octal:function(e){return"0"+e.toString(8)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return"0x"+e.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Zl=R((Pw,Xl)=>{"use strict";var Ql=pn(),Jb=qe(),Jl=Ot(),Xb=new RegExp("-?(0|[1-9][0-9]*)(.[0-9]*)?([eE][-+]?[0-9]+)?|^0$|^[-+]?.(inf|Inf|INF)$|^.(nan|NaN|NAN)$");function Zb(e){let t=Jl.isYAMLNode(e)?e.value:e;return!(t===null||!Xb.test(t))}function ev(e){if(Jl.isYAMLNode(e))return e;var t,n,r,i;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,i=[],0<="+-".indexOf(t[0])&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:0<=t.indexOf(":")?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,r=1,i.forEach(function(o){t+=o*r,r*=60}),n*t):n*parseFloat(t,10)}function tv(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ql.isNegativeZero(e))return"-0.0";return e.toString(10)}function nv(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ql.isNegativeZero(e))}Xl.exports=new Jb.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:Zb,construct:ev,predicate:nv,represent:tv,defaultStyle:"lowercase"})});var tp=R((xw,ep)=>{"use strict";var rv=En();ep.exports=new rv.Schema({include:[Ul()],implicit:[Bl(),Yl(),Gl(),Zl()]})});var rp=R((_w,np)=>{"use strict";var iv=En();np.exports=new iv.Schema({include:[tp()]})});var sp=R((Cw,op)=>{"use strict";var ov=qe(),ip=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");function sv(e){if(e===null)return!1;var t,n,r,i,o,s,a,c=0,u=null,d,g,b;return t=ip.exec(e),t!==null}function av(e){var t,n,r,i,o,s,a,c=0,u=null,d,g,b;if(t=ip.exec(e),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c=c+"0";c=+c}return t[9]&&(d=+t[10],g=+(t[11]||0),u=(d*60+g)*6e4,t[9]==="-"&&(u=-u)),b=new Date(Date.UTC(n,r,i,o,s,a,c)),u&&b.setTime(b.getTime()-u),b}function cv(e){return e.toISOString()}op.exports=new ov.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:sv,construct:av,instanceOf:Date,represent:cv})});var cp=R((Rw,ap)=>{"use strict";var uv=qe();function lv(e){return e==="<<"||e===null}ap.exports=new uv.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:lv})});var up={};bs(up,{default:()=>pv});var pv,lp=vl(()=>{pv={}});var dp=R((Tw,pp)=>{"use strict";var pi=(lp(),ii(up)).Buffer,dv=qe(),ws=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
6
|
+
\r`;function fv(e){if(e===null)return!1;var t,n,r=0,i=0,o=e.length,s=ws;for(n=0;n<o;n++)if(t=s.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function mv(e){var t,n,r,i=e.replace(/[\r\n=]/g,""),o=i.length,s=ws,a=0,c=[];for(n=0;n<o;n++)n%4===0&&n&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(i.charAt(n));return r=o%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),pi?new pi(c):c}function gv(e){var t="",n=0,r,i,o=e.length,s=ws;for(r=0;r<o;r++)r%3===0&&r&&(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[r];return i=o%3,i===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):i===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):i===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function yv(e){return pi&&pi.isBuffer(e)}pp.exports=new dv.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:fv,construct:mv,predicate:yv,represent:gv})});var mp=R((Dw,fp)=>{"use strict";var hv=qe(),bv=Object.prototype.hasOwnProperty,vv=Object.prototype.toString;function Pv(e){if(e===null)return!0;var t=[],n,r,i,o,s,a=e;for(n=0,r=a.length;n<r;n+=1){if(i=a[n],s=!1,vv.call(i)!=="[object Object]")return!1;for(o in i)if(bv.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function xv(e){return e!==null?e:[]}fp.exports=new hv.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Pv,construct:xv})});var yp=R((ww,gp)=>{"use strict";var _v=qe(),Ss=Ot(),Cv=Object.prototype.toString;function Rv(e){if(e===null)return!0;if(e.kind!=Ss.Kind.SEQ)return!1;var t,n,r,i,o,s=e.items;for(t=0,n=s.length;t<n;t+=1)if(r=s[t],Cv.call(r)!=="[object Object]"||!Array.isArray(r.mappings)||r.mappings.length!==1)return!1;return!0}function Tv(e){if(e===null||!Array.isArray(e.items))return[];let t,n,r,i,o=e.items;for(i=Ss.newItems(),i.parent=e.parent,i.startPosition=e.startPosition,i.endPosition=e.endPosition,t=0,n=o.length;t<n;t+=1){let a=o[t].mappings[0],c=Ss.newItems();c.parent=i,c.startPosition=a.key.startPosition,c.endPosition=a.value.startPosition,a.key.parent=c,a.value.parent=c,c.items=[a.key,a.value],i.items.push(c)}return i}gp.exports=new _v.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Rv,construct:Tv})});var bp=R((Sw,hp)=>{"use strict";var Dv=qe(),wv=Ot();function Sv(e){return e===null?!0:e.kind==wv.Kind.MAP}function kv(e){return e!==null?e:{}}hp.exports=new Dv.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:Sv,construct:kv})});var di=R((kw,vp)=>{"use strict";var Av=En(),Ev=new Av.Schema({include:[rp()],implicit:[sp(),cp()],explicit:[dp(),mp(),yp(),bp()]});vp.exports=Ev});var xp=R((Aw,Pp)=>{"use strict";var Nv=qe();function qv(){return!0}function Ov(){}function jv(){return""}function Lv(e){return typeof e>"u"}Pp.exports=new Nv.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:qv,construct:Ov,predicate:Lv,represent:jv})});var Cp=R((Ew,_p)=>{"use strict";var Mv=qe();function Iv(e){if(e===null||e.length===0)return!1;var t=e,n=/\/([gim]*)$/.exec(e),r="";if(t[0]==="/"){if(n&&(r=n[1]),r.length>3||t[t.length-r.length-1]!=="/")return!1;t=t.slice(1,t.length-r.length-1)}try{var i=new RegExp(t,r);return!0}catch{return!1}}function Fv(e){var t=e,n=/\/([gim]*)$/.exec(e),r="";return t[0]==="/"&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)}function Uv(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function Wv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}_p.exports=new Mv.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:Iv,construct:Fv,predicate:Wv,represent:Uv})});var ks=R((Nw,Dp)=>{"use strict";var Rp=En(),Tp=new Rp.Schema({include:[di()],explicit:[xp(),Cp()]});Rp.Schema.DEFAULT=Tp;Dp.exports=Tp});var Fp=R((xt,xr)=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.safeLoad=xt.safeLoadAll=xt.load=xt.loadAll=void 0;var Ye=Ot(),zt=pn(),Ms=An(),Is=Al(),Ap=di(),Hv=ks(),gi=Object.prototype.hasOwnProperty,fi=1,Ep=2,Np=3,mi=4,As=1,Bv=2,wp=3,zv=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,$v=/[\x85\u2028\u2029]/,Yv=/[,\[\]\{\}]/,qp=/^(?:!|!!|![a-z\-]+!)$/i,Op=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ft(e){return e===10||e===13}function fn(e){return e===9||e===32}function $e(e){return e===9||e===32||e===10||e===13}function Nn(e){return e===44||e===91||e===93||e===123||e===125}function Vv(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Kv(e){return e===120?2:e===117?4:e===85?8:0}function Gv(e){return 48<=e&&e<=57?e-48:-1}function Qv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
7
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Jv(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Es=new Array(256),Ns=new Array(256),jp=new Array(256),qs=new Array(256);for(rt=0;rt<256;rt++)qs[rt]=Ns[rt]=Qv(rt),Es[rt]=Ns[rt]?1:0,jp[rt]=1,Es[rt]||(qs[rt]="\\"+String.fromCharCode(rt));var rt,Os=class{constructor(t,n){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=n.filename||null,this.schema=n.schema||Hv,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.allowAnyEscape=n.allowAnyEscape||!1,this.ignoreDuplicateKeys=n.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}};function Fs(e,t,n=!1){return new Ms(t,new Is(e.filename,e.input,e.position,e.line,e.position-e.lineStart),n)}function js(e,t,n,r=!1,i=!1){var o=Xv(e,t);if(o){var s=n+t;if(!e.errorMap[s]){var a=new Is(e.filename,e.input,t,o.line,t-o.start);i&&(a.toLineEnd=!0);var c=new Ms(n,a,r);e.errors.push(c)}}}function H(e,t){var n=Fs(e,t),r=n.message+n.mark.position;if(!e.errorMap[r]){e.errors.push(n),e.errorMap[r]=1;for(var i=e.position;;){if(e.position>=e.input.length-1)return;var o=e.input.charAt(e.position);if(o==`
|
|
8
|
+
`){e.position--,e.position==i&&(e.position+=1);return}if(o=="\r"){e.position--,e.position==i&&(e.position+=1);return}e.position++}}}function Ls(e,t){var n=Fs(e,t);e.onWarning&&e.onWarning.call(null,n)}var Sp={YAML:function(t,n,r){var i,o,s;t.version!==null&&H(t,"duplication of %YAML directive"),r.length!==1&&H(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&H(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&H(t,"found incompatible YAML document (version 1.2 is required)"),t.version=r[0],t.checkLineBreaks=s<2,s!==2&&H(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,n,r){var i,o;r.length!==2&&H(t,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],qp.test(i)||H(t,"ill-formed tag handle (first argument) of the TAG directive"),gi.call(t.tagMap,i)&&H(t,'there is a previously declared suffix for "'+i+'" tag handle'),Op.test(o)||H(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function $t(e,t,n,r){var i,o,s,a,c=e.result;if(c.startPosition==-1&&(c.startPosition=t),t<=n){if(a=e.input.slice(t,n),r)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||H(e,"expected valid JSON character");else zv.test(a)&&H(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=n}}function dn(e,t,n,r,i,o){if(r!=null){var s=i?i.endPosition:r.endPosition;!i&&e.input.charAt(s)===":"&&s++,t===null&&(t={startPosition:r.startPosition,endPosition:s,parent:null,errors:[],mappings:[],kind:Ye.Kind.MAP,nodeIndent:o});var a=Ye.newMapping(r,i,o);return a.parent=t,r.parent=a,i==null?a.endPosition=r.endPosition:i.parent=a,!e.ignoreDuplicateKeys&&t.mappings.forEach(c=>{Ye.isNodesEqual(c,a)&&(js(e,a.key.startPosition,"duplicate key"),js(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=s,t}}function Us(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):H(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function Xv(e,t){for(var n,r=0;r<e.lines.length&&!(e.lines[r].start>t);r++)n=e.lines[r];return n||{start:0,line:0}}function pe(e,t,n,r=!1){for(var i=0,o=e.input.charCodeAt(e.position);o!==0;){for(;fn(o);)o===9&&e.errors.push(Fs(e,"Using tabs can lead to unpredictable results",!0)),o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(ft(o))for(Us(e),o=e.input.charCodeAt(e.position),i++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return n!==-1&&i!==0&&e.lineIndent<n&&Ls(e,"deficient indentation"),i}function Pr(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&e.input.charCodeAt(t+1)===n&&e.input.charCodeAt(t+2)===n&&(t+=3,n=e.input.charCodeAt(t),n===0||$e(n)))}function Ws(e,t,n){n===1?t.value+=" ":n>1&&(t.value+=zt.repeat(`
|
|
9
|
+
`,n-1))}function Zv(e,t,n){var r,i,o,s,a,c,u,d,g=e.kind,b=e.result,h,D=Ye.newScalar("",t);if(D.plainScalar=!0,e.result=D,h=e.input.charCodeAt(e.position),$e(h)||Nn(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96)return e.result.startPosition=e.position-1,e.result.endPosition=e.position-1,!1;if((h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),$e(i)||n&&Nn(i)))return!1;for(e.kind="scalar",o=s=e.position,a=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),$e(i)||n&&Nn(i))break}else if(h===35){if(r=e.input.charCodeAt(e.position-1),$e(r))break}else{if(e.position===e.lineStart&&Pr(e)||n&&Nn(h))break;if(ft(h))if(c=e.line,u=e.lineStart,d=e.lineIndent,pe(e,!1,-1),e.lineIndent>=t){a=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=u,e.lineIndent=d;break}}if(a&&($t(e,o,s,!1),Ws(e,D,e.line-c),o=s=e.position,a=!1),fn(h)||(s=e.position+1),h=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return $t(e,o,s,!1),e.result.startPosition!=-1?(D.rawValue=e.input.substring(D.startPosition,D.endPosition),e.result.endPosition=pe(e,!1,-1)?e.position-1:e.position,!0):(e.kind=g,e.result=b,!1)}function eP(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;var o=Ye.newScalar("",t);for(o.singleQuoted=!0,e.kind="scalar",e.result=o,o.startPosition=e.position,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if($t(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),o.endPosition=e.position,n===39)r=i=e.position,e.position++;else return!0;else ft(n)?($t(e,r,i,!0),Ws(e,o,pe(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Pr(e)?H(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position,o.endPosition=e.position);H(e,"unexpected end of the stream within a single quoted scalar")}function tP(e,t){var n,r,i,o,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;e.kind="scalar";var u=Ye.newScalar("",t);for(u.doubleQuoted=!0,e.result=u,u.startPosition=e.position,e.position++,n=r=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return $t(e,n,e.position,!0),e.position++,u.endPosition=e.position,u.rawValue=e.input.substring(u.startPosition,u.endPosition),!0;if(c===92){if($t(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),ft(c))pe(e,!1,t);else if(c<256&&(e.allowAnyEscape?jp[c]:Es[c]))u.value+=e.allowAnyEscape?qs[c]:Ns[c],e.position++;else if((s=Kv(c))>0){for(i=s,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(s=Vv(c))>=0?o=(o<<4)+s:H(e,"expected hexadecimal character");u.value+=Jv(o),e.position++}else H(e,"unknown escape sequence");n=r=e.position}else ft(c)?($t(e,n,r,!0),Ws(e,u,pe(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Pr(e)?H(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}H(e,"unexpected end of the stream within a double quoted scalar")}function nP(e,t){var n=!0,r,i=e.tag,o,s=e.anchor,a,c,u,d,g,b,h,D,I;if(I=e.input.charCodeAt(e.position),I===91)c=93,g=!1,o=Ye.newItems(),o.startPosition=e.position;else if(I===123)c=125,g=!0,o=Ye.newMap(null,t),o.startPosition=e.position;else return!1;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),I=e.input.charCodeAt(++e.position);I!==0;){if(pe(e,!0,t),I=e.input.charCodeAt(e.position),I===c)return e.position++,e.tag=i,e.anchor=s,e.kind=g?"mapping":"sequence",e.result=o,o.endPosition=e.position,!0;if(!n){var Q=e.position;H(e,"missed comma between flow collection entries"),e.position=Q+1}if(h=b=D=null,u=d=!1,I===63&&(a=e.input.charCodeAt(e.position+1),$e(a)&&(u=d=!0,e.position++,pe(e,!0,t))),r=e.line,qn(e,t,fi,!1,!0),h=e.tag,b=e.result,pe(e,!0,t),I=e.input.charCodeAt(e.position),(d||e.line===r)&&I===58&&(u=!0,I=e.input.charCodeAt(++e.position),pe(e,!0,t),qn(e,t,fi,!1,!0),D=e.result),g)dn(e,o,h,b,D,t);else if(u){var U=dn(e,null,h,b,D,t);U.parent=o,o.items.push(U)}else b&&(b.parent=o),o.items.push(b);o.endPosition=e.position+1,pe(e,!0,t),I=e.input.charCodeAt(e.position),I===44?(n=!0,I=e.input.charCodeAt(++e.position)):n=!1}H(e,"unexpected end of the stream within a flow collection")}function rP(e,t){var n,r,i=As,o=!1,s=t,a=0,c=!1,u,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;var g=Ye.newScalar("",t);for(e.kind="scalar",e.result=g,g.startPosition=e.position;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)As===i?i=d===43?wp:Bv:H(e,"repeat of a chomping mode identifier");else if((u=Gv(d))>=0)u===0?H(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?H(e,"repeat of an indentation width identifier"):(s=t+u-1,o=!0);else break;if(fn(d)){do d=e.input.charCodeAt(++e.position);while(fn(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ft(d)&&d!==0)}for(;d!==0;){for(Us(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),ft(d)){a++;continue}if(e.lineIndent<s){i===wp?g.value+=zt.repeat(`
|
|
10
|
+
`,a):i===As&&o&&(g.value+=`
|
|
11
11
|
`);break}for(r?fn(d)?(c=!0,g.value+=zt.repeat(`
|
|
12
12
|
`,a+1)):c?(c=!1,g.value+=zt.repeat(`
|
|
13
13
|
`,a+1)):a===0?o&&(g.value+=" "):g.value+=zt.repeat(`
|
|
14
14
|
`,a):o&&(g.value+=zt.repeat(`
|
|
15
15
|
`,a+1)),o=!0,a=0,n=e.position;!ft(d)&&d!==0;)d=e.input.charCodeAt(++e.position);$t(e,n,e.position,!1)}g.endPosition=e.position;for(var b=e.position-1,h=!1;;){var D=e.input[b];if(D=="\r"||D==`
|
|
16
|
-
`){h&&b--;break}if(D!=" "&&D!=" ")break;b--}return g.endPosition=b,g.rawValue=e.input.substring(g.startPosition,g.endPosition),!0}function kp(e,t){var n,r=e.tag,i=e.anchor,o=Ye.newItems(),s,a=!1,c;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),o.startPosition=e.position,c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(s=e.input.charCodeAt(e.position+1),!$e(s)));){if(a=!0,e.position++,pe(e,!0,-1)&&e.lineIndent<=t){o.items.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,qn(e,t,Np,!1,!0),e.result&&(e.result.parent=o,o.items.push(e.result)),o.endPosition=pe(e,!0,t,!0)?e.position-1:e.position,c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)H(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function
|
|
17
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new
|
|
18
|
-
`)break}}let s=r.documents,a=s.length;a>0&&(s[a-1].endPosition=n);for(let c of s)c.errors=r.errors,c.startPosition>c.endPosition&&(c.startPosition=c.endPosition);return s}function
|
|
16
|
+
`){h&&b--;break}if(D!=" "&&D!=" ")break;b--}return g.endPosition=b,g.rawValue=e.input.substring(g.startPosition,g.endPosition),!0}function kp(e,t){var n,r=e.tag,i=e.anchor,o=Ye.newItems(),s,a=!1,c;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),o.startPosition=e.position,c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(s=e.input.charCodeAt(e.position+1),!$e(s)));){if(a=!0,e.position++,pe(e,!0,-1)&&e.lineIndent<=t){o.items.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,qn(e,t,Np,!1,!0),e.result&&(e.result.parent=o,o.items.push(e.result)),o.endPosition=pe(e,!0,t,!0)?e.position-1:e.position,c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)H(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function iP(e,t,n){var r,i,o,s=e.tag,a=e.anchor,c=Ye.newMap(null,t),u=null,d=null,g=null,b=!1,h=!1,D;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),D=e.input.charCodeAt(e.position);D!==0;){if(r=e.input.charCodeAt(e.position+1),o=e.line,(D===63||D===58)&&$e(r))D===63?(b&&(dn(e,c,u,d,null,t),u=d=g=null),h=!0,b=!0,i=!0):b?(b=!1,i=!0):H(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,D=r;else if(qn(e,n,Ep,!1,!0))if(e.line===o){for(D=e.input.charCodeAt(e.position);fn(D);)D=e.input.charCodeAt(++e.position);if(D===58)D=e.input.charCodeAt(++e.position),$e(D)||H(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(dn(e,c,u,d,null,t),u=d=g=null),h=!0,b=!1,i=!1,u=e.tag,d=e.result;else{if(e.position==e.lineStart&&Pr(e))break;if(h)H(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=a,!0}}else if(h){for(H(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(D=e.input.charCodeAt(--e.position),ft(D)){e.position++;break}d=e.result,d.value=e.input.substring(e.result.startPosition,e.position-1),d.rawValue=d.value,d.endPosition=e.position-1,dn(e,c,u,d,null,t)}else return e.tag=s,e.anchor=a,!0;else break;if(e.line===o||e.lineIndent>t){let I=e.line;qn(e,t,mi,!0,i)?(pe(e,!0,t),b?d=e.result:(g=e.result,g.endPosition=e.line===I?e.position:e.position-1)):d&&(d.endPosition=e.line===I?e.position:e.position-1),b||(dn(e,c,u,d,g,t),u=d=g=null),pe(e,!0,-1),D=e.input.charCodeAt(e.position)}if(e.lineIndent>t&&D!==0)H(e,"bad indentation of a mapping entry"+e.position),D=e.input.charCodeAt(++e.position),pe(e,!0,-1);else if(e.lineIndent<t)break}return b&&dn(e,c,u,d,null,t),h&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),h}function oP(e){var t,n=!1,r=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&H(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(r=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):H(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!$e(s);)s===33&&(r?H(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),qp.test(i)||H(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),Yv.test(o)&&H(e,"tag suffix cannot contain flow indicator characters")}return o&&!Op.test(o)&&H(e,"tag name cannot contain such characters: "+o),n?e.tag=o:gi.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:H(e,'undeclared tag handle "'+i+'"'),!0}function sP(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&H(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!$e(n)&&!Nn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&H(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function aP(e){var t,n,r=e.length,i=e.input,o;if(o=e.input.charCodeAt(e.position),o!==42)return!1;for(o=e.input.charCodeAt(++e.position),t=e.position;o!==0&&!$e(o)&&!Nn(o);)o=e.input.charCodeAt(++e.position);return e.position<=t&&(H(e,"name of an alias node must contain at least one character"),e.position=t+1),n=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(n)||(H(e,'unidentified alias "'+n+'"'),e.position<=t&&(e.position=t+1)),e.result=Ye.newAnchorRef(n,t,e.position,e.anchorMap[n],0),pe(e,!0,-1),!0}function qn(e,t,n,r,i){var o,s,a,c=1,u=!1,d=!1,g,b,h,D,I,Q;e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=mi===n||Np===n,r&&pe(e,!0,-1)&&(u=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));let U=e.position;if(c===1)for(;oP(e)||sP(e);)pe(e,!0,-1)?(u=!0,a=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=u||i),(c===1||mi===n)&&(fi===n||Ep===n?D=t:D=t+1,I=e.position-e.lineStart,c===1?a&&(kp(e,I)||iP(e,I,D))||nP(e,D)?d=!0:(s&&rP(e,D)||eP(e,D)||tP(e,D)?d=!0:aP(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&H(e,"alias node should not have any properties")):Zv(e,D,fi===n)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result,e.result.anchorId=e.anchor)):c===0&&(d=a&&kp(e,I))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=Ye.newScalar("",I),e.result.startPosition=e.position,e.result.endPosition=e.position,H(e,"!include without value")),e.result.kind=Ye.Kind.INCLUDE_REF;else if(e.tag==="?")for(g=0,b=e.implicitTypes.length;g<b;g+=1){h=e.implicitTypes[g];var y=e.result.value;if(h.resolve(y)){e.result.valueObject=h.construct(e.result.value),e.tag=h.tag,e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result);break}}else gi.call(e.typeMap,e.tag)?(h=e.typeMap[e.tag],e.result!==null&&h.kind!==e.kind&&(!h.additionalKinds||h.additionalKinds&&h.additionalKinds.indexOf(e.kind)===-1)&&H(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.construct(e.result),e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):H(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):js(e,U,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||d}function cP(e){var t=e.position,n,r,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(pe(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!$e(s);)s=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&H(e,"directive name must not be less than one character in length");s!==0;){for(;fn(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!ft(s));break}if(ft(s))break;for(n=e.position;s!==0&&!$e(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&Us(e),gi.call(Sp,r)?Sp[r](e,r,i):(Ls(e,'unknown document directive "'+r+'"'),e.position++)}if(pe(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,pe(e,!0,-1)):o&&H(e,"directives end mark is expected"),qn(e,e.lineIndent-1,mi,!1,!0),pe(e,!0,-1),e.checkLineBreaks&&$v.test(e.input.slice(t,e.position))&&Ls(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Pr(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,pe(e,!0,-1));return}if(e.position<e.length-1)H(e,"end of the stream or a document separator is expected");else return}function Lp(e,t){e=String(e),t=t||{};let n=e.length;n!==0&&(e.charCodeAt(n-1)!==10&&e.charCodeAt(n-1)!==13&&(e+=`
|
|
17
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Os(e,t);for(r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;){var i=r.position;if(cP(r),r.position<=i)for(;r.position<r.length-1;r.position++){var o=r.input.charAt(r.position);if(o==`
|
|
18
|
+
`)break}}let s=r.documents,a=s.length;a>0&&(s[a-1].endPosition=n);for(let c of s)c.errors=r.errors,c.startPosition>c.endPosition&&(c.startPosition=c.endPosition);return s}function Hs(e,t,n={}){var r=Lp(e,n),i,o;for(i=0,o=r.length;i<o;i+=1)t(r[i])}xt.loadAll=Hs;function Bs(e,t={}){var n=Lp(e,t),r,i;if(n.length!==0){if(n.length===1)return n[0];var o=new Ms("expected a single document in the stream, but found more");return o.mark=new Is("","",0,0,0),o.mark.position=n[0].endPosition,n[0].errors.push(o),n[0]}}xt.load=Bs;function Mp(e,t,n={}){Hs(e,t,zt.extend({schema:Ap},n))}xt.safeLoadAll=Mp;function Ip(e,t={}){return Bs(e,zt.extend({schema:Ap},t))}xt.safeLoad=Ip;xr.exports.loadAll=Hs;xr.exports.load=Bs;xr.exports.safeLoadAll=Mp;xr.exports.safeLoad=Ip});var Yp=R(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.safeDump=On.dump=void 0;var _r=pn(),Gs=An(),uP=ks(),lP=di(),Qs=Object.prototype.toString,Bp=Object.prototype.hasOwnProperty,pP=9,mn=10,dP=13,zs=32,fP=33,$s=34,mP=35,gP=37,yP=38,Ys=39,hP=42,bP=44,vP=45,PP=58,xP=62,_P=63,CP=64,RP=91,TP=93,DP=96,wP=123,SP=124,kP=125,Se={};Se[0]="\\0";Se[7]="\\a";Se[8]="\\b";Se[9]="\\t";Se[10]="\\n";Se[11]="\\v";Se[12]="\\f";Se[13]="\\r";Se[27]="\\e";Se[34]='\\"';Se[92]="\\\\";Se[133]="\\N";Se[160]="\\_";Se[8232]="\\L";Se[8233]="\\P";var AP=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function EP(e,t){var n,r,i,o,s,a,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,o=r.length;i<o;i+=1)s=r[i],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),c=e.compiledTypeMap[s],c&&Bp.call(c.styleAliases,a)&&(a=c.styleAliases[a]),n[s]=a;return n}function NP(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new Gs("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+_r.repeat("0",r-t.length)+t}function qP(e){this.schema=e.schema||uP,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=_r.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=EP(this.schema,e.styles||null),this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Up(e,t){for(var n=_r.repeat(" ",t),r=0,i=-1,o="",s,a=e.length;r<a;)i=e.indexOf(`
|
|
19
19
|
`,r),i===-1?(s=e.slice(r),r=a):(s=e.slice(r,i+1),r=i+1),s.length&&s!==`
|
|
20
|
-
`&&(o+=n),o+=s;return o}function
|
|
21
|
-
`+_r.repeat(" ",e.indent*t)}function
|
|
20
|
+
`&&(o+=n),o+=s;return o}function Vs(e,t){return`
|
|
21
|
+
`+_r.repeat(" ",e.indent*t)}function OP(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function yi(e){this.source=e,this.result="",this.checkpoint=0}yi.prototype.takeUpTo=function(e){var t;if(e<this.checkpoint)throw t=new Error("position should be > checkpoint"),t.position=e,t.checkpoint=this.checkpoint,t;return this.result+=this.source.slice(this.checkpoint,e),this.checkpoint=e,this};yi.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=Se[e]||NP(e),this.result+=t,this.checkpoint+=1,this};yi.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function jP(e,t,n){var r,i,o,s,a,c,u,d,g,b,h,D,I,Q,U,y,m,S,Y,te,pt;if(t.length===0){e.dump="''";return}if(t.indexOf("!include")==0){e.dump=""+t;return}if(t.indexOf("!$$$novalue")==0){e.dump="";return}if(AP.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(r=!0,i=t.length?t.charCodeAt(0):0,o=zs===i||zs===t.charCodeAt(t.length-1),(vP===i||_P===i||CP===i||DP===i)&&(r=!1),o?(r=!1,s=!1,a=!1):(s=!0,a=!0),c=!0,u=new yi(t),d=!1,g=0,b=0,h=e.indent*n,D=80,h<40?D-=h:D=40,Q=0;Q<t.length;Q++){if(I=t.charCodeAt(Q),r)if(!MP(I))r=!1;else continue;c&&I===Ys&&(c=!1),U=Se[I],y=zp(I),!(!U&&!y)&&(I!==mn&&I!==$s&&I!==Ys?(s=!1,a=!1):I===mn&&(d=!0,c=!1,Q>0&&(m=t.charCodeAt(Q-1),m===zs&&(a=!1,s=!1)),s&&(S=Q-g,g=Q,S>b&&(b=S))),I!==$s&&(c=!1),u.takeUpTo(Q),u.escapeChar())}if(r&&OP(e,t)&&(r=!1),Y="",(s||a)&&(te=0,t.charCodeAt(t.length-1)===mn&&(te+=1,t.charCodeAt(t.length-2)===mn&&(te+=1)),te===0?Y="-":te===2&&(Y="+")),a&&b<D&&(s=!1),d||(a=!1),r)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)pt=LP(t,D),e.dump=">"+Y+`
|
|
22
22
|
`+Up(pt,h);else if(a)Y||(t=t.replace(/\n$/,"")),e.dump="|"+Y+`
|
|
23
|
-
`+Up(t,h);else if(u)u.finish(),e.dump='"'+u.result+'"';else throw new Error("Failed to dump scalar value")}function
|
|
23
|
+
`+Up(t,h);else if(u)u.finish(),e.dump='"'+u.result+'"';else throw new Error("Failed to dump scalar value")}function LP(e,t){var n="",r=0,i=e.length,o=/\n+$/.exec(e),s;for(o&&(i=o.index+1);r<i;)s=e.indexOf(`
|
|
24
24
|
`,r),s>i||s===-1?(n&&(n+=`
|
|
25
25
|
|
|
26
26
|
`),n+=Wp(e.slice(r,i),t),r=i):(n&&(n+=`
|
|
@@ -29,67 +29,67 @@ var rb=Object.create;var ri=Object.defineProperty;var ib=Object.getOwnPropertyDe
|
|
|
29
29
|
`&&(n+=o[0]),n}function Wp(e,t){if(e==="")return e;for(var n=/[^\s] [^\s]/g,r="",i=0,o=0,s=n.exec(e),a,c,u;s;)a=s.index,a-o>t&&(i!==o?c=i:c=a,r&&(r+=`
|
|
30
30
|
`),u=e.slice(o,c),r+=u,o=c+1),i=a+1,s=n.exec(e);return r&&(r+=`
|
|
31
31
|
`),o!==i&&e.length-o>t?r+=e.slice(o,i)+`
|
|
32
|
-
`+e.slice(i+1):r+=e.slice(o),r}function
|
|
33
|
-
`:"")+e.dump)):(
|
|
34
|
-
`:"")+e.dump)):(
|
|
35
|
-
`:""}On.dump=$p;function FP(e,t){return $p(e,_r.extend({schema:sP},t))}On.safeDump=FP});var Vp=R(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.determineScalarType=Ze.ScalarType=Ze.parseYamlFloat=Ze.parseYamlInteger=Ze.parseYamlBoolean=void 0;function UP(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`}Ze.parseYamlBoolean=UP;function WP(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function HP(e){let t=WP(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t}Ze.parseYamlInteger=HP;function BP(e){if([".nan",".NaN",".NAN"].lastIndexOf(e)>=0)return NaN;let n=/^([-+])?(?:\.inf|\.Inf|\.INF)$/.exec(e);if(n)return n[1]==="-"?-1/0:1/0;let r=parseFloat(e);if(!isNaN(r))return r;throw`Invalid float "${e}"`}Ze.parseYamlFloat=BP;var jt;(function(e){e[e.null=0]="null",e[e.bool=1]="bool",e[e.int=2]="int",e[e.float=3]="float",e[e.string=4]="string"})(jt=Ze.ScalarType||(Ze.ScalarType={}));function zP(e){if(e===void 0)return jt.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return jt.string;let t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return jt.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return jt.bool;let n=/^[-+]?[0-9]+$/,r=/^0o[0-7]+$/,i=/^0x[0-9a-fA-F]+$/;if(n.test(t)||r.test(t)||i.test(t))return jt.int;let o=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,s=/^[-+]?(\.inf|\.Inf|\.INF)$/;return o.test(t)||s.test(t)||[".nan",".NaN",".NAN"].indexOf(t)>=0?jt.float:jt.string}Ze.determineScalarType=zP});var jn=R(ve=>{"use strict";var $P=ve&&ve.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Kp=ve&&ve.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&$P(t,e,n)};Object.defineProperty(ve,"__esModule",{value:!0});ve.safeDump=ve.dump=ve.safeLoadAll=ve.safeLoad=ve.loadAll=ve.load=void 0;var hi=Fp();Object.defineProperty(ve,"load",{enumerable:!0,get:function(){return hi.load}});Object.defineProperty(ve,"loadAll",{enumerable:!0,get:function(){return hi.loadAll}});Object.defineProperty(ve,"safeLoad",{enumerable:!0,get:function(){return hi.safeLoad}});Object.defineProperty(ve,"safeLoadAll",{enumerable:!0,get:function(){return hi.safeLoadAll}});var Gp=Yp();Object.defineProperty(ve,"dump",{enumerable:!0,get:function(){return Gp.dump}});Object.defineProperty(ve,"safeDump",{enumerable:!0,get:function(){return Gp.safeDump}});ve.YAMLException=An();Kp(Ot(),ve);Kp(Vp(),ve)});var In=R(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.stringArray=Me.array=Me.func=Me.error=Me.number=Me.string=Me.boolean=void 0;function bC(e){return e===!0||e===!1}Me.boolean=bC;function Ld(e){return typeof e=="string"||e instanceof String}Me.string=Ld;function vC(e){return typeof e=="number"||e instanceof Number}Me.number=vC;function PC(e){return e instanceof Error}Me.error=PC;function xC(e){return typeof e=="function"}Me.func=xC;function Md(e){return Array.isArray(e)}Me.array=Md;function _C(e){return Md(e)&&e.every(t=>Ld(t))}Me.stringArray=_C});var Aa=R(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.Message=F.NotificationType9=F.NotificationType8=F.NotificationType7=F.NotificationType6=F.NotificationType5=F.NotificationType4=F.NotificationType3=F.NotificationType2=F.NotificationType1=F.NotificationType0=F.NotificationType=F.RequestType9=F.RequestType8=F.RequestType7=F.RequestType6=F.RequestType5=F.RequestType4=F.RequestType3=F.RequestType2=F.RequestType1=F.RequestType=F.RequestType0=F.AbstractMessageSignature=F.ParameterStructures=F.ResponseError=F.ErrorCodes=void 0;var vn=In(),sa;(function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3})(sa||(F.ErrorCodes=sa={}));var aa=class e extends Error{constructor(t,n,r){super(n),this.code=vn.number(t)?t:sa.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,e.prototype)}toJson(){let t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),t}};F.ResponseError=aa;var Ve=class e{constructor(t){this.kind=t}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};F.ParameterStructures=Ve;Ve.auto=new Ve("auto");Ve.byPosition=new Ve("byPosition");Ve.byName=new Ve("byName");var ae=class{constructor(t,n){this.method=t,this.numberOfParams=n}get parameterStructures(){return Ve.auto}};F.AbstractMessageSignature=ae;var ca=class extends ae{constructor(t){super(t,0)}};F.RequestType0=ca;var ua=class extends ae{constructor(t,n=Ve.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType=ua;var la=class extends ae{constructor(t,n=Ve.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType1=la;var pa=class extends ae{constructor(t){super(t,2)}};F.RequestType2=pa;var da=class extends ae{constructor(t){super(t,3)}};F.RequestType3=da;var fa=class extends ae{constructor(t){super(t,4)}};F.RequestType4=fa;var ma=class extends ae{constructor(t){super(t,5)}};F.RequestType5=ma;var ga=class extends ae{constructor(t){super(t,6)}};F.RequestType6=ga;var ya=class extends ae{constructor(t){super(t,7)}};F.RequestType7=ya;var ha=class extends ae{constructor(t){super(t,8)}};F.RequestType8=ha;var ba=class extends ae{constructor(t){super(t,9)}};F.RequestType9=ba;var va=class extends ae{constructor(t,n=Ve.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType=va;var Pa=class extends ae{constructor(t){super(t,0)}};F.NotificationType0=Pa;var xa=class extends ae{constructor(t,n=Ve.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType1=xa;var _a=class extends ae{constructor(t){super(t,2)}};F.NotificationType2=_a;var Ca=class extends ae{constructor(t){super(t,3)}};F.NotificationType3=Ca;var Ra=class extends ae{constructor(t){super(t,4)}};F.NotificationType4=Ra;var Ta=class extends ae{constructor(t){super(t,5)}};F.NotificationType5=Ta;var Da=class extends ae{constructor(t){super(t,6)}};F.NotificationType6=Da;var wa=class extends ae{constructor(t){super(t,7)}};F.NotificationType7=wa;var Sa=class extends ae{constructor(t){super(t,8)}};F.NotificationType8=Sa;var ka=class extends ae{constructor(t){super(t,9)}};F.NotificationType9=ka;var Id;(function(e){function t(i){let o=i;return o&&vn.string(o.method)&&(vn.string(o.id)||vn.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&vn.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(vn.string(o.id)||vn.number(o.id)||o.id===null)}e.isResponse=r})(Id||(F.Message=Id={}))});var Na=R(Gt=>{"use strict";var Fd;Object.defineProperty(Gt,"__esModule",{value:!0});Gt.LRUCache=Gt.LinkedMap=Gt.Touch=void 0;var Ie;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(Ie||(Gt.Touch=Ie={}));var qi=class{constructor(){this[Fd]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,n=Ie.None){let r=this._map.get(t);if(r)return n!==Ie.None&&this.touch(r,n),r.value}set(t,n,r=Ie.None){let i=this._map.get(t);if(i)i.value=n,r!==Ie.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case Ie.None:this.addItemLast(i);break;case Ie.First:this.addItemFirst(i);break;case Ie.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){let r=this._state,i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(Fd=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==Ie.First&&n!==Ie.Last)){if(n===Ie.First){if(t===this._head)return;let r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===Ie.Last){if(t===this._tail)return;let r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(let[n,r]of t)this.set(n,r)}};Gt.LinkedMap=qi;var Ea=class extends qi{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get ratio(){return this._ratio}set ratio(t){this._ratio=Math.min(Math.max(0,t),1),this.checkTrim()}get(t,n=Ie.AsNew){return super.get(t,n)}peek(t){return super.get(t,Ie.None)}set(t,n){return super.set(t,n,Ie.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Gt.LRUCache=Ea});var Wd=R(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.Disposable=void 0;var Ud;(function(e){function t(n){return{dispose:n}}e.create=t})(Ud||(Oi.Disposable=Ud={}))});var Qt=R(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var qa;function Oa(){if(qa===void 0)throw new Error("No runtime abstraction layer installed");return qa}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");qa=n}e.install=t})(Oa||(Oa={}));ja.default=Oa});var Un=R(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.Emitter=Fn.Event=void 0;var CC=Qt(),Hd;(function(e){let t={dispose(){}};e.None=function(){return t}})(Hd||(Fn.Event=Hd={}));var La=class{add(t,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(t),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(t,n)})}remove(t,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,o=this._callbacks.length;i<o;i++)if(this._callbacks[i]===t)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...t){if(!this._callbacks)return[];let n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let o=0,s=r.length;o<s;o++)try{n.push(r[o].apply(i[o],t))}catch(a){(0,CC.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},ji=class e{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new La),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(t,n),i.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(t){this._callbacks&&this._callbacks.invoke.call(this._callbacks,t)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Fn.Emitter=ji;ji._noop=function(){}});var Ii=R(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.CancellationTokenSource=Wn.CancellationToken=void 0;var RC=Qt(),TC=In(),Ma=Un(),Li;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ma.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Ma.Event.None});function t(n){let r=n;return r&&(r===e.None||r===e.Cancelled||TC.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(Li||(Wn.CancellationToken=Li={}));var DC=Object.freeze(function(e,t){let n=(0,RC.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),Mi=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?DC:(this._emitter||(this._emitter=new Ma.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},Ia=class{get token(){return this._token||(this._token=new Mi),this._token}cancel(){this._token?this._token.cancel():this._token=Li.Cancelled}dispose(){this._token?this._token instanceof Mi&&this._token.dispose():this._token=Li.None}};Wn.CancellationTokenSource=Ia});var Bd=R(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.SharedArrayReceiverStrategy=Hn.SharedArraySenderStrategy=void 0;var wC=Ii(),wr;(function(e){e.Continue=0,e.Cancelled=1})(wr||(wr={}));var Fa=class{constructor(){this.buffers=new Map}enableCancellation(t){if(t.id===null)return;let n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=wr.Continue,this.buffers.set(t.id,n),t.$cancellationData=n}async sendCancellation(t,n){let r=this.buffers.get(n);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,wr.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};Hn.SharedArraySenderStrategy=Fa;var Ua=class{constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===wr.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},Wa=class{constructor(t){this.token=new Ua(t)}cancel(){}dispose(){}},Ha=class{constructor(){this.kind="request"}createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new wC.CancellationTokenSource:new Wa(n)}};Hn.SharedArrayReceiverStrategy=Ha});var za=R(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.Semaphore=void 0;var SC=Qt(),Ba=class{constructor(t=1){if(t<=0)throw new Error("Capacity must be greater than 0");this._capacity=t,this._active=0,this._waiting=[]}lock(t){return new Promise((n,r)=>{this._waiting.push({thunk:t,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,SC.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let t=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let n=t.thunk();n instanceof Promise?n.then(r=>{this._active--,t.resolve(r),this.runNext()},r=>{this._active--,t.reject(r),this.runNext()}):(this._active--,t.resolve(n),this.runNext())}catch(n){this._active--,t.reject(n),this.runNext()}}};Fi.Semaphore=Ba});var $d=R(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.ReadableStreamMessageReader=Jt.AbstractMessageReader=Jt.MessageReader=void 0;var Ya=Qt(),Bn=In(),$a=Un(),kC=za(),zd;(function(e){function t(n){let r=n;return r&&Bn.func(r.listen)&&Bn.func(r.dispose)&&Bn.func(r.onError)&&Bn.func(r.onClose)&&Bn.func(r.onPartialMessage)}e.is=t})(zd||(Jt.MessageReader=zd={}));var Ui=class{constructor(){this.errorEmitter=new $a.Emitter,this.closeEmitter=new $a.Emitter,this.partialMessageEmitter=new $a.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(t){this.errorEmitter.fire(this.asError(t))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(t){this.partialMessageEmitter.fire(t)}asError(t){return t instanceof Error?t:new Error(`Reader received error. Reason: ${Bn.string(t.message)?t.message:"unknown"}`)}};Jt.AbstractMessageReader=Ui;var Va;(function(e){function t(n){let r,i,o,s=new Map,a,c=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(o=n.contentDecoder,s.set(o.name,o)),n.contentDecoders!==void 0)for(let u of n.contentDecoders)s.set(u.name,u);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,c.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let u of n.contentTypeDecoders)c.set(u.name,u)}return a===void 0&&(a=(0,Ya.default)().applicationJson.decoder,c.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:c}}e.fromOptions=t})(Va||(Va={}));var Ka=class extends Ui{constructor(t,n){super(),this.readable=t,this.options=Va.fromOptions(n),this.buffer=(0,Ya.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new kC.Semaphore(1)}set partialMessageTimeout(t){this._partialMessageTimeout=t}get partialMessageTimeout(){return this._partialMessageTimeout}listen(t){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=t;let n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(t){try{for(this.buffer.append(t);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
36
|
-
${JSON.stringify(Object.fromEntries(r))}`));return}let o=parseInt(i);if(isNaN(o)){this.fireError(new Error(`Content-Length value must be a number. Got ${i}`));return}this.nextMessageLength=o}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,Ya.default)().timer.setTimeout((t,n)=>{this.partialMessageTimer=void 0,t===this.messageToken&&(this.firePartialMessage({messageToken:t,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};Jt.ReadableStreamMessageReader=Ka});var
|
|
37
|
-
`,
|
|
38
|
-
`,Ja=class{constructor(t="utf-8"){this._encoding=t,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(t){let n=typeof t=="string"?this.fromString(t,this._encoding):t;this._chunks.push(n),this._totalLength+=n.byteLength}tryReadHeaders(t=!1){if(this._chunks.length===0)return;let n=0,r=0,i=0,o=0;e:for(;r<this._chunks.length;){let u=this._chunks[r];for(i=0;i<u.length;){switch(u[i]){case
|
|
39
|
-
${d}`);let b=d.substr(0,g),h=d.substr(g+1).trim();a.set(t?b.toLowerCase():b,h)}return a}tryReadBody(t){if(!(this._totalLength<t))return this._read(t)}get numberOfBytes(){return this._totalLength}_read(t){if(t===0)return this.emptyBuffer();if(t>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===t){let o=this._chunks[0];return this._chunks.shift(),this._totalLength-=t,this.asNative(o)}if(this._chunks[0].byteLength>t){let o=this._chunks[0],s=this.asNative(o,t);return this._chunks[0]=o.slice(t),this._totalLength-=t,s}let n=this.allocNative(t),r=0,i=0;for(;t>0;){let o=this._chunks[i];if(o.byteLength>t){let s=o.slice(0,t);n.set(s,r),r+=t,this._chunks[i]=o.slice(t),this._totalLength-=t,t-=t}else n.set(o,r),r+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,t-=o.byteLength}return n}};
|
|
40
|
-
${JSON.stringify(p.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{let _=p.id,A=Q.get(_);if(
|
|
41
|
-
${JSON.stringify(p,null,4)}`);let _=p;if(de.string(_.id)||de.number(_.id)){let A=_.id,M=Q.get(A);M&&M.reject(new Error("The received response has neither a result nor an error property."))}}function Ht(p){if(p!=null)switch(m){case
|
|
42
|
-
|
|
43
|
-
`),Y.log(`Sending request '${p.method} - (${p.id})'.`,_)}else Sn("send-request",p)}function
|
|
32
|
+
`+e.slice(i+1):r+=e.slice(o),r}function MP(e){return pP!==e&&mn!==e&&dP!==e&&bP!==e&&RP!==e&&TP!==e&&wP!==e&&kP!==e&&mP!==e&&yP!==e&&hP!==e&&fP!==e&&SP!==e&&xP!==e&&Ys!==e&&$s!==e&&gP!==e&&PP!==e&&!Se[e]&&!zp(e)}function zp(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function IP(e,t,n){var r="",i=e.tag,o,s;for(o=0,s=n.length;o<s;o+=1)gn(e,t,n[o],!1,!1)&&(o!==0&&(r+=", "),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function FP(e,t,n,r){var i="",o=e.tag,s,a;for(s=0,a=n.length;s<a;s+=1)gn(e,t+1,n[s],!0,!0)&&((!r||s!==0)&&(i+=Vs(e,t)),i+="- "+e.dump);e.tag=o,e.dump=i||"[]"}function UP(e,t,n){var r="",i=e.tag,o=Object.keys(n),s,a,c,u,d;for(s=0,a=o.length;s<a;s+=1)d="",s!==0&&(d+=", "),c=o[s],u=n[c],gn(e,t,c,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+": ",gn(e,t,u,!1,!1)&&(d+=e.dump,r+=d));e.tag=i,e.dump="{"+r+"}"}function WP(e,t,n,r){var i="",o=e.tag,s=Object.keys(n),a,c,u,d,g,b;for(a=0,c=s.length;a<c;a+=1)b="",(!r||a!==0)&&(b+=Vs(e,t)),u=s[a],d=n[u],gn(e,t+1,u,!0,!0)&&(g=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,g&&(e.dump&&mn===e.dump.charCodeAt(0)?b+="?":b+="? "),b+=e.dump,g&&(b+=Vs(e,t)),gn(e,t+1,d,!0,g)&&(e.dump&&mn===e.dump.charCodeAt(0)?b+=":":b+=": ",b+=e.dump,i+=b));e.tag=o,e.dump=i||"{}"}function Hp(e,t,n){var r,i,o,s,a,c;for(i=n?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(e.tag=n?a.tag:"?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,Qs.call(a.represent)==="[object Function]")r=a.represent(t,c);else if(Bp.call(a.represent,c))r=a.represent[c](t,c);else throw new Gs("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function gn(e,t,n,r,i){e.tag=null,e.dump=n,Hp(e,n,!1)||Hp(e,n,!0);var o=Qs.call(e.dump);r&&(r=0>e.flowLevel||e.flowLevel>t),(e.tag!==null&&e.tag!=="?"||e.indent!==2&&t>0)&&(i=!1);var s=o==="[object Object]"||o==="[object Array]",a,c;if(s&&(a=e.duplicates.indexOf(n),c=a!==-1),c&&e.usedDuplicates[a])e.dump="*ref_"+a;else{if(s&&c&&!e.usedDuplicates[a]&&(e.usedDuplicates[a]=!0),o==="[object Object]")r&&Object.keys(e.dump).length!==0?(WP(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
|
|
33
|
+
`:"")+e.dump)):(UP(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object Array]")r&&e.dump.length!==0?(FP(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
|
|
34
|
+
`:"")+e.dump)):(IP(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&jP(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new Gs("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function HP(e,t){var n=[],r=[],i,o;for(Ks(e,n,r),i=0,o=r.length;i<o;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(o)}function Ks(e,t,n){var r=Qs.call(e),i,o,s;if(e!==null&&typeof e=="object")if(o=t.indexOf(e),o!==-1)n.indexOf(o)===-1&&n.push(o);else if(t.push(e),Array.isArray(e))for(o=0,s=e.length;o<s;o+=1)Ks(e[o],t,n);else for(i=Object.keys(e),o=0,s=i.length;o<s;o+=1)Ks(e[i[o]],t,n)}function $p(e,t){t=t||{};var n=new qP(t);return HP(e,n),gn(n,0,e,!0,!0)?n.dump+`
|
|
35
|
+
`:""}On.dump=$p;function BP(e,t){return $p(e,_r.extend({schema:lP},t))}On.safeDump=BP});var Vp=R(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.determineScalarType=Ze.ScalarType=Ze.parseYamlFloat=Ze.parseYamlInteger=Ze.parseYamlBoolean=void 0;function zP(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`}Ze.parseYamlBoolean=zP;function $P(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function YP(e){let t=$P(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t}Ze.parseYamlInteger=YP;function VP(e){if([".nan",".NaN",".NAN"].lastIndexOf(e)>=0)return NaN;let n=/^([-+])?(?:\.inf|\.Inf|\.INF)$/.exec(e);if(n)return n[1]==="-"?-1/0:1/0;let r=parseFloat(e);if(!isNaN(r))return r;throw`Invalid float "${e}"`}Ze.parseYamlFloat=VP;var jt;(function(e){e[e.null=0]="null",e[e.bool=1]="bool",e[e.int=2]="int",e[e.float=3]="float",e[e.string=4]="string"})(jt=Ze.ScalarType||(Ze.ScalarType={}));function KP(e){if(e===void 0)return jt.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return jt.string;let t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return jt.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return jt.bool;let n=/^[-+]?[0-9]+$/,r=/^0o[0-7]+$/,i=/^0x[0-9a-fA-F]+$/;if(n.test(t)||r.test(t)||i.test(t))return jt.int;let o=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,s=/^[-+]?(\.inf|\.Inf|\.INF)$/;return o.test(t)||s.test(t)||[".nan",".NaN",".NAN"].indexOf(t)>=0?jt.float:jt.string}Ze.determineScalarType=KP});var jn=R(ve=>{"use strict";var GP=ve&&ve.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Kp=ve&&ve.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&GP(t,e,n)};Object.defineProperty(ve,"__esModule",{value:!0});ve.safeDump=ve.dump=ve.safeLoadAll=ve.safeLoad=ve.loadAll=ve.load=void 0;var hi=Fp();Object.defineProperty(ve,"load",{enumerable:!0,get:function(){return hi.load}});Object.defineProperty(ve,"loadAll",{enumerable:!0,get:function(){return hi.loadAll}});Object.defineProperty(ve,"safeLoad",{enumerable:!0,get:function(){return hi.safeLoad}});Object.defineProperty(ve,"safeLoadAll",{enumerable:!0,get:function(){return hi.safeLoadAll}});var Gp=Yp();Object.defineProperty(ve,"dump",{enumerable:!0,get:function(){return Gp.dump}});Object.defineProperty(ve,"safeDump",{enumerable:!0,get:function(){return Gp.safeDump}});ve.YAMLException=An();Kp(Ot(),ve);Kp(Vp(),ve)});var In=R(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.stringArray=Me.array=Me.func=Me.error=Me.number=Me.string=Me.boolean=void 0;function xC(e){return e===!0||e===!1}Me.boolean=xC;function Ud(e){return typeof e=="string"||e instanceof String}Me.string=Ud;function _C(e){return typeof e=="number"||e instanceof Number}Me.number=_C;function CC(e){return e instanceof Error}Me.error=CC;function RC(e){return typeof e=="function"}Me.func=RC;function Wd(e){return Array.isArray(e)}Me.array=Wd;function TC(e){return Wd(e)&&e.every(t=>Ud(t))}Me.stringArray=TC});var Aa=R(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.Message=F.NotificationType9=F.NotificationType8=F.NotificationType7=F.NotificationType6=F.NotificationType5=F.NotificationType4=F.NotificationType3=F.NotificationType2=F.NotificationType1=F.NotificationType0=F.NotificationType=F.RequestType9=F.RequestType8=F.RequestType7=F.RequestType6=F.RequestType5=F.RequestType4=F.RequestType3=F.RequestType2=F.RequestType1=F.RequestType=F.RequestType0=F.AbstractMessageSignature=F.ParameterStructures=F.ResponseError=F.ErrorCodes=void 0;var vn=In(),sa;(function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3})(sa||(F.ErrorCodes=sa={}));var aa=class e extends Error{constructor(t,n,r){super(n),this.code=vn.number(t)?t:sa.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,e.prototype)}toJson(){let t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),t}};F.ResponseError=aa;var Ve=class e{constructor(t){this.kind=t}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};F.ParameterStructures=Ve;Ve.auto=new Ve("auto");Ve.byPosition=new Ve("byPosition");Ve.byName=new Ve("byName");var ae=class{constructor(t,n){this.method=t,this.numberOfParams=n}get parameterStructures(){return Ve.auto}};F.AbstractMessageSignature=ae;var ca=class extends ae{constructor(t){super(t,0)}};F.RequestType0=ca;var ua=class extends ae{constructor(t,n=Ve.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType=ua;var la=class extends ae{constructor(t,n=Ve.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType1=la;var pa=class extends ae{constructor(t){super(t,2)}};F.RequestType2=pa;var da=class extends ae{constructor(t){super(t,3)}};F.RequestType3=da;var fa=class extends ae{constructor(t){super(t,4)}};F.RequestType4=fa;var ma=class extends ae{constructor(t){super(t,5)}};F.RequestType5=ma;var ga=class extends ae{constructor(t){super(t,6)}};F.RequestType6=ga;var ya=class extends ae{constructor(t){super(t,7)}};F.RequestType7=ya;var ha=class extends ae{constructor(t){super(t,8)}};F.RequestType8=ha;var ba=class extends ae{constructor(t){super(t,9)}};F.RequestType9=ba;var va=class extends ae{constructor(t,n=Ve.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType=va;var Pa=class extends ae{constructor(t){super(t,0)}};F.NotificationType0=Pa;var xa=class extends ae{constructor(t,n=Ve.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType1=xa;var _a=class extends ae{constructor(t){super(t,2)}};F.NotificationType2=_a;var Ca=class extends ae{constructor(t){super(t,3)}};F.NotificationType3=Ca;var Ra=class extends ae{constructor(t){super(t,4)}};F.NotificationType4=Ra;var Ta=class extends ae{constructor(t){super(t,5)}};F.NotificationType5=Ta;var Da=class extends ae{constructor(t){super(t,6)}};F.NotificationType6=Da;var wa=class extends ae{constructor(t){super(t,7)}};F.NotificationType7=wa;var Sa=class extends ae{constructor(t){super(t,8)}};F.NotificationType8=Sa;var ka=class extends ae{constructor(t){super(t,9)}};F.NotificationType9=ka;var Hd;(function(e){function t(i){let o=i;return o&&vn.string(o.method)&&(vn.string(o.id)||vn.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&vn.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(vn.string(o.id)||vn.number(o.id)||o.id===null)}e.isResponse=r})(Hd||(F.Message=Hd={}))});var Na=R(Gt=>{"use strict";var Bd;Object.defineProperty(Gt,"__esModule",{value:!0});Gt.LRUCache=Gt.LinkedMap=Gt.Touch=void 0;var Ie;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(Ie||(Gt.Touch=Ie={}));var Oi=class{constructor(){this[Bd]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,n=Ie.None){let r=this._map.get(t);if(r)return n!==Ie.None&&this.touch(r,n),r.value}set(t,n,r=Ie.None){let i=this._map.get(t);if(i)i.value=n,r!==Ie.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case Ie.None:this.addItemLast(i);break;case Ie.First:this.addItemFirst(i);break;case Ie.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){let r=this._state,i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(Bd=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==Ie.First&&n!==Ie.Last)){if(n===Ie.First){if(t===this._head)return;let r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===Ie.Last){if(t===this._tail)return;let r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(let[n,r]of t)this.set(n,r)}};Gt.LinkedMap=Oi;var Ea=class extends Oi{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get ratio(){return this._ratio}set ratio(t){this._ratio=Math.min(Math.max(0,t),1),this.checkTrim()}get(t,n=Ie.AsNew){return super.get(t,n)}peek(t){return super.get(t,Ie.None)}set(t,n){return super.set(t,n,Ie.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Gt.LRUCache=Ea});var $d=R(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.Disposable=void 0;var zd;(function(e){function t(n){return{dispose:n}}e.create=t})(zd||(ji.Disposable=zd={}))});var Qt=R(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var qa;function Oa(){if(qa===void 0)throw new Error("No runtime abstraction layer installed");return qa}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");qa=n}e.install=t})(Oa||(Oa={}));ja.default=Oa});var Un=R(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.Emitter=Fn.Event=void 0;var DC=Qt(),Yd;(function(e){let t={dispose(){}};e.None=function(){return t}})(Yd||(Fn.Event=Yd={}));var La=class{add(t,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(t),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(t,n)})}remove(t,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,o=this._callbacks.length;i<o;i++)if(this._callbacks[i]===t)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...t){if(!this._callbacks)return[];let n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let o=0,s=r.length;o<s;o++)try{n.push(r[o].apply(i[o],t))}catch(a){(0,DC.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Li=class e{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new La),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(t,n),i.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(t){this._callbacks&&this._callbacks.invoke.call(this._callbacks,t)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Fn.Emitter=Li;Li._noop=function(){}});var Fi=R(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.CancellationTokenSource=Wn.CancellationToken=void 0;var wC=Qt(),SC=In(),Ma=Un(),Mi;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ma.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Ma.Event.None});function t(n){let r=n;return r&&(r===e.None||r===e.Cancelled||SC.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(Mi||(Wn.CancellationToken=Mi={}));var kC=Object.freeze(function(e,t){let n=(0,wC.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),Ii=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?kC:(this._emitter||(this._emitter=new Ma.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},Ia=class{get token(){return this._token||(this._token=new Ii),this._token}cancel(){this._token?this._token.cancel():this._token=Mi.Cancelled}dispose(){this._token?this._token instanceof Ii&&this._token.dispose():this._token=Mi.None}};Wn.CancellationTokenSource=Ia});var Vd=R(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.SharedArrayReceiverStrategy=Hn.SharedArraySenderStrategy=void 0;var AC=Fi(),wr;(function(e){e.Continue=0,e.Cancelled=1})(wr||(wr={}));var Fa=class{constructor(){this.buffers=new Map}enableCancellation(t){if(t.id===null)return;let n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=wr.Continue,this.buffers.set(t.id,n),t.$cancellationData=n}async sendCancellation(t,n){let r=this.buffers.get(n);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,wr.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};Hn.SharedArraySenderStrategy=Fa;var Ua=class{constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===wr.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},Wa=class{constructor(t){this.token=new Ua(t)}cancel(){}dispose(){}},Ha=class{constructor(){this.kind="request"}createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new AC.CancellationTokenSource:new Wa(n)}};Hn.SharedArrayReceiverStrategy=Ha});var za=R(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.Semaphore=void 0;var EC=Qt(),Ba=class{constructor(t=1){if(t<=0)throw new Error("Capacity must be greater than 0");this._capacity=t,this._active=0,this._waiting=[]}lock(t){return new Promise((n,r)=>{this._waiting.push({thunk:t,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,EC.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let t=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let n=t.thunk();n instanceof Promise?n.then(r=>{this._active--,t.resolve(r),this.runNext()},r=>{this._active--,t.reject(r),this.runNext()}):(this._active--,t.resolve(n),this.runNext())}catch(n){this._active--,t.reject(n),this.runNext()}}};Ui.Semaphore=Ba});var Gd=R(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.ReadableStreamMessageReader=Jt.AbstractMessageReader=Jt.MessageReader=void 0;var Ya=Qt(),Bn=In(),$a=Un(),NC=za(),Kd;(function(e){function t(n){let r=n;return r&&Bn.func(r.listen)&&Bn.func(r.dispose)&&Bn.func(r.onError)&&Bn.func(r.onClose)&&Bn.func(r.onPartialMessage)}e.is=t})(Kd||(Jt.MessageReader=Kd={}));var Wi=class{constructor(){this.errorEmitter=new $a.Emitter,this.closeEmitter=new $a.Emitter,this.partialMessageEmitter=new $a.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(t){this.errorEmitter.fire(this.asError(t))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(t){this.partialMessageEmitter.fire(t)}asError(t){return t instanceof Error?t:new Error(`Reader received error. Reason: ${Bn.string(t.message)?t.message:"unknown"}`)}};Jt.AbstractMessageReader=Wi;var Va;(function(e){function t(n){let r,i,o,s=new Map,a,c=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(o=n.contentDecoder,s.set(o.name,o)),n.contentDecoders!==void 0)for(let u of n.contentDecoders)s.set(u.name,u);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,c.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let u of n.contentTypeDecoders)c.set(u.name,u)}return a===void 0&&(a=(0,Ya.default)().applicationJson.decoder,c.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:c}}e.fromOptions=t})(Va||(Va={}));var Ka=class extends Wi{constructor(t,n){super(),this.readable=t,this.options=Va.fromOptions(n),this.buffer=(0,Ya.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new NC.Semaphore(1)}set partialMessageTimeout(t){this._partialMessageTimeout=t}get partialMessageTimeout(){return this._partialMessageTimeout}listen(t){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=t;let n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(t){try{for(this.buffer.append(t);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
36
|
+
${JSON.stringify(Object.fromEntries(r))}`));return}let o=parseInt(i);if(isNaN(o)){this.fireError(new Error(`Content-Length value must be a number. Got ${i}`));return}this.nextMessageLength=o}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,Ya.default)().timer.setTimeout((t,n)=>{this.partialMessageTimer=void 0,t===this.messageToken&&(this.firePartialMessage({messageToken:t,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};Jt.ReadableStreamMessageReader=Ka});var ef=R(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.WriteableStreamMessageWriter=Xt.AbstractMessageWriter=Xt.MessageWriter=void 0;var Qd=Qt(),Sr=In(),qC=za(),Jd=Un(),OC="Content-Length: ",Xd=`\r
|
|
37
|
+
`,Zd;(function(e){function t(n){let r=n;return r&&Sr.func(r.dispose)&&Sr.func(r.onClose)&&Sr.func(r.onError)&&Sr.func(r.write)}e.is=t})(Zd||(Xt.MessageWriter=Zd={}));var Hi=class{constructor(){this.errorEmitter=new Jd.Emitter,this.closeEmitter=new Jd.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(t,n,r){this.errorEmitter.fire([this.asError(t),n,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(t){return t instanceof Error?t:new Error(`Writer received error. Reason: ${Sr.string(t.message)?t.message:"unknown"}`)}};Xt.AbstractMessageWriter=Hi;var Ga;(function(e){function t(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,Qd.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,Qd.default)().applicationJson.encoder}}e.fromOptions=t})(Ga||(Ga={}));var Qa=class extends Hi{constructor(t,n){super(),this.writable=t,this.options=Ga.fromOptions(n),this.errorCount=0,this.writeSemaphore=new qC.Semaphore(1),this.writable.onError(r=>this.fireError(r)),this.writable.onClose(()=>this.fireClose())}async write(t){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(t,this.options).then(r=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(r):r).then(r=>{let i=[];return i.push(OC,r.byteLength.toString(),Xd),i.push(Xd),this.doWrite(t,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(t,n,r){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,t),Promise.reject(i)}}handleError(t,n){this.errorCount++,this.fireError(t,n,this.errorCount)}end(){this.writable.end()}};Xt.WriteableStreamMessageWriter=Qa});var tf=R(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.AbstractMessageBuffer=void 0;var jC=13,LC=10,MC=`\r
|
|
38
|
+
`,Ja=class{constructor(t="utf-8"){this._encoding=t,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(t){let n=typeof t=="string"?this.fromString(t,this._encoding):t;this._chunks.push(n),this._totalLength+=n.byteLength}tryReadHeaders(t=!1){if(this._chunks.length===0)return;let n=0,r=0,i=0,o=0;e:for(;r<this._chunks.length;){let u=this._chunks[r];for(i=0;i<u.length;){switch(u[i]){case jC:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case LC:switch(n){case 1:n=2;break;case 3:n=4,i++;break e;default:n=0}break;default:n=0}i++}o+=u.byteLength,r++}if(n!==4)return;let s=this._read(o+i),a=new Map,c=this.toString(s,"ascii").split(MC);if(c.length<2)return a;for(let u=0;u<c.length-2;u++){let d=c[u],g=d.indexOf(":");if(g===-1)throw new Error(`Message header must separate key and value using ':'
|
|
39
|
+
${d}`);let b=d.substr(0,g),h=d.substr(g+1).trim();a.set(t?b.toLowerCase():b,h)}return a}tryReadBody(t){if(!(this._totalLength<t))return this._read(t)}get numberOfBytes(){return this._totalLength}_read(t){if(t===0)return this.emptyBuffer();if(t>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===t){let o=this._chunks[0];return this._chunks.shift(),this._totalLength-=t,this.asNative(o)}if(this._chunks[0].byteLength>t){let o=this._chunks[0],s=this.asNative(o,t);return this._chunks[0]=o.slice(t),this._totalLength-=t,s}let n=this.allocNative(t),r=0,i=0;for(;t>0;){let o=this._chunks[i];if(o.byteLength>t){let s=o.slice(0,t);n.set(s,r),r+=t,this._chunks[i]=o.slice(t),this._totalLength-=t,t-=t}else n.set(o,r),r+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,t-=o.byteLength}return n}};Bi.AbstractMessageBuffer=Ja});var af=R(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.createMessageConnection=z.ConnectionOptions=z.MessageStrategy=z.CancellationStrategy=z.CancellationSenderStrategy=z.CancellationReceiverStrategy=z.RequestCancellationReceiverStrategy=z.IdCancellationReceiverStrategy=z.ConnectionStrategy=z.ConnectionError=z.ConnectionErrors=z.LogTraceNotification=z.SetTraceNotification=z.TraceFormat=z.TraceValues=z.Trace=z.NullLogger=z.ProgressType=z.ProgressToken=void 0;var nf=Qt(),de=In(),W=Aa(),rf=Na(),kr=Un(),Xa=Fi(),Nr;(function(e){e.type=new W.NotificationType("$/cancelRequest")})(Nr||(Nr={}));var Za;(function(e){function t(n){return typeof n=="string"||typeof n=="number"}e.is=t})(Za||(z.ProgressToken=Za={}));var Ar;(function(e){e.type=new W.NotificationType("$/progress")})(Ar||(Ar={}));var ec=class{constructor(){}};z.ProgressType=ec;var tc;(function(e){function t(n){return de.func(n)}e.is=t})(tc||(tc={}));z.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var ee;(function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"})(ee||(z.Trace=ee={}));var of;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(of||(z.TraceValues=of={}));(function(e){function t(r){if(!de.string(r))return e.Off;switch(r=r.toLowerCase(),r){case"off":return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose;default:return e.Off}}e.fromString=t;function n(r){switch(r){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}e.toString=n})(ee||(z.Trace=ee={}));var tt;(function(e){e.Text="text",e.JSON="json"})(tt||(z.TraceFormat=tt={}));(function(e){function t(n){return de.string(n)?(n=n.toLowerCase(),n==="json"?e.JSON:e.Text):e.Text}e.fromString=t})(tt||(z.TraceFormat=tt={}));var nc;(function(e){e.type=new W.NotificationType("$/setTrace")})(nc||(z.SetTraceNotification=nc={}));var zi;(function(e){e.type=new W.NotificationType("$/logTrace")})(zi||(z.LogTraceNotification=zi={}));var Er;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(Er||(z.ConnectionErrors=Er={}));var zn=class e extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};z.ConnectionError=zn;var rc;(function(e){function t(n){let r=n;return r&&de.func(r.cancelUndispatched)}e.is=t})(rc||(z.ConnectionStrategy=rc={}));var $i;(function(e){function t(n){let r=n;return r&&(r.kind===void 0||r.kind==="id")&&de.func(r.createCancellationTokenSource)&&(r.dispose===void 0||de.func(r.dispose))}e.is=t})($i||(z.IdCancellationReceiverStrategy=$i={}));var ic;(function(e){function t(n){let r=n;return r&&r.kind==="request"&&de.func(r.createCancellationTokenSource)&&(r.dispose===void 0||de.func(r.dispose))}e.is=t})(ic||(z.RequestCancellationReceiverStrategy=ic={}));var Yi;(function(e){e.Message=Object.freeze({createCancellationTokenSource(n){return new Xa.CancellationTokenSource}});function t(n){return $i.is(n)||ic.is(n)}e.is=t})(Yi||(z.CancellationReceiverStrategy=Yi={}));var Vi;(function(e){e.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(Nr.type,{id:r})},cleanup(n){}});function t(n){let r=n;return r&&de.func(r.sendCancellation)&&de.func(r.cleanup)}e.is=t})(Vi||(z.CancellationSenderStrategy=Vi={}));var Ki;(function(e){e.Message=Object.freeze({receiver:Yi.Message,sender:Vi.Message});function t(n){let r=n;return r&&Yi.is(r.receiver)&&Vi.is(r.sender)}e.is=t})(Ki||(z.CancellationStrategy=Ki={}));var Gi;(function(e){function t(n){let r=n;return r&&de.func(r.handleMessage)}e.is=t})(Gi||(z.MessageStrategy=Gi={}));var sf;(function(e){function t(n){let r=n;return r&&(Ki.is(r.cancellationStrategy)||rc.is(r.connectionStrategy)||Gi.is(r.messageStrategy))}e.is=t})(sf||(z.ConnectionOptions=sf={}));var yt;(function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"})(yt||(yt={}));function IC(e,t,n,r){let i=n!==void 0?n:z.NullLogger,o=0,s=0,a=0,c="2.0",u,d=new Map,g,b=new Map,h=new Map,D,I=new rf.LinkedMap,Q=new Map,U=new Set,y=new Map,m=ee.Off,S=tt.Text,Y,te=yt.New,pt=new kr.Emitter,Wt=new kr.Emitter,un=new kr.Emitter,wn=new kr.Emitter,k=new kr.Emitter,v=r&&r.cancellationStrategy?r.cancellationStrategy:Ki.Message;function O(p){if(p===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+p.toString()}function j(p){return p===null?"res-unknown-"+(++a).toString():"res-"+p.toString()}function x(){return"not-"+(++s).toString()}function C(p,_){W.Message.isRequest(_)?p.set(O(_.id),_):W.Message.isResponse(_)?p.set(j(_.id),_):p.set(x(),_)}function T(p){}function q(){return te===yt.Listening}function L(){return te===yt.Closed}function N(){return te===yt.Disposed}function $(){(te===yt.New||te===yt.Listening)&&(te=yt.Closed,Wt.fire(void 0))}function V(p){pt.fire([p,void 0,void 0])}function De(p){pt.fire(p)}e.onClose($),e.onError(V),t.onClose($),t.onError(De);function re(){D||I.size===0||(D=(0,nf.default)().timer.setImmediate(()=>{D=void 0,ln()}))}function dt(p){W.Message.isRequest(p)?Qh(p):W.Message.isNotification(p)?Xh(p):W.Message.isResponse(p)?Jh(p):p?.type?.startsWith("redocly/")||Zh(p)}function ln(){if(I.size===0)return;let p=I.shift();try{let _=r?.messageStrategy;Gi.is(_)?_.handleMessage(p,dt):dt(p)}finally{re()}}let Gh=p=>{try{if(W.Message.isNotification(p)&&p.method===Nr.type.method){let _=p.params.id,A=O(_),M=I.get(A);if(W.Message.isRequest(M)){let ie=r?.connectionStrategy,fe=ie&&ie.cancelUndispatched?ie.cancelUndispatched(M,T):void 0;if(fe&&(fe.error!==void 0||fe.result!==void 0)){I.delete(A),y.delete(_),fe.id=M.id,ti(fe,p.method,Date.now()),t.write(fe).catch(()=>i.error("Sending response for canceled message failed."));return}}let se=y.get(_);if(se!==void 0){se.cancel(),ys(p);return}else U.add(_)}C(I,p)}finally{re()}};function Qh(p){if(N())return;function _(J,le,ne){let Re={jsonrpc:c,id:p.id};J instanceof W.ResponseError?Re.error=J.toJson():Re.result=J===void 0?null:J,ti(Re,le,ne),t.write(Re).catch(()=>i.error("Sending response failed."))}function A(J,le,ne){let Re={jsonrpc:c,id:p.id,error:J.toJson()};ti(Re,le,ne),t.write(Re).catch(()=>i.error("Sending response failed."))}function M(J,le,ne){J===void 0&&(J=null);let Re={jsonrpc:c,id:p.id,result:J};ti(Re,le,ne),t.write(Re).catch(()=>i.error("Sending response failed."))}nb(p);let se=d.get(p.method),ie,fe;se&&(ie=se.type,fe=se.handler);let he=Date.now();if(fe||u){let J=p.id??String(Date.now()),le=$i.is(v.receiver)?v.receiver.createCancellationTokenSource(J):v.receiver.createCancellationTokenSource(p);p.id!==null&&U.has(p.id)&&le.cancel(),p.id!==null&&y.set(J,le);try{let ne;if(fe)if(p.params===void 0){if(ie!==void 0&&ie.numberOfParams!==0){A(new W.ResponseError(W.ErrorCodes.InvalidParams,`Request ${p.method} defines ${ie.numberOfParams} params but received none.`),p.method,he);return}ne=fe(le.token)}else if(Array.isArray(p.params)){if(ie!==void 0&&ie.parameterStructures===W.ParameterStructures.byName){A(new W.ResponseError(W.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by name but received parameters by position`),p.method,he);return}ne=fe(...p.params,le.token)}else{if(ie!==void 0&&ie.parameterStructures===W.ParameterStructures.byPosition){A(new W.ResponseError(W.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by position but received parameters by name`),p.method,he);return}ne=fe(p.params,le.token)}else u&&(ne=u(p.method,p.params,le.token));let Re=ne;ne?Re.then?Re.then(We=>{y.delete(J),_(We,p.method,he)},We=>{y.delete(J),We instanceof W.ResponseError?A(We,p.method,he):We&&de.string(We.message)?A(new W.ResponseError(W.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${We.message}`),p.method,he):A(new W.ResponseError(W.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,he)}):(y.delete(J),_(ne,p.method,he)):(y.delete(J),M(ne,p.method,he))}catch(ne){y.delete(J),ne instanceof W.ResponseError?_(ne,p.method,he):ne&&de.string(ne.message)?A(new W.ResponseError(W.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${ne.message}`),p.method,he):A(new W.ResponseError(W.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,he)}}else A(new W.ResponseError(W.ErrorCodes.MethodNotFound,`Unhandled method ${p.method}`),p.method,he)}function Jh(p){if(!N())if(p.id===null)p.error?i.error(`Received response message without id: Error is:
|
|
40
|
+
${JSON.stringify(p.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{let _=p.id,A=Q.get(_);if(rb(p,A),A!==void 0){Q.delete(_);try{if(p.error){let M=p.error;A.reject(new W.ResponseError(M.code,M.message,M.data))}else if(p.result!==void 0)A.resolve(p.result);else throw new Error("Should never happen.")}catch(M){M.message?i.error(`Response handler '${A.method}' failed with message: ${M.message}`):i.error(`Response handler '${A.method}' failed unexpectedly.`)}}}}function Xh(p){if(N())return;let _,A;if(p.method===Nr.type.method){let M=p.params.id;U.delete(M),ys(p);return}else{let M=b.get(p.method);M&&(A=M.handler,_=M.type)}if(A||g)try{if(ys(p),A)if(p.params===void 0)_!==void 0&&_.numberOfParams!==0&&_.parameterStructures!==W.ParameterStructures.byName&&i.error(`Notification ${p.method} defines ${_.numberOfParams} params but received none.`),A();else if(Array.isArray(p.params)){let M=p.params;p.method===Ar.type.method&&M.length===2&&Za.is(M[0])?A({token:M[0],value:M[1]}):(_!==void 0&&(_.parameterStructures===W.ParameterStructures.byName&&i.error(`Notification ${p.method} defines parameters by name but received parameters by position`),_.numberOfParams!==p.params.length&&i.error(`Notification ${p.method} defines ${_.numberOfParams} params but received ${M.length} arguments`)),A(...M))}else _!==void 0&&_.parameterStructures===W.ParameterStructures.byPosition&&i.error(`Notification ${p.method} defines parameters by position but received parameters by name`),A(p.params);else g&&g(p.method,p.params)}catch(M){M.message?i.error(`Notification handler '${p.method}' failed with message: ${M.message}`):i.error(`Notification handler '${p.method}' failed unexpectedly.`)}else un.fire(p)}function Zh(p){if(!p){i.error("Received empty message.");return}i.error(`Received message which is neither a response nor a notification message:
|
|
41
|
+
${JSON.stringify(p,null,4)}`);let _=p;if(de.string(_.id)||de.number(_.id)){let A=_.id,M=Q.get(A);M&&M.reject(new Error("The received response has neither a result nor an error property."))}}function Ht(p){if(p!=null)switch(m){case ee.Verbose:return JSON.stringify(p,null,4);case ee.Compact:return JSON.stringify(p);default:return}}function eb(p){if(!(m===ee.Off||!Y))if(S===tt.Text){let _;(m===ee.Verbose||m===ee.Compact)&&p.params&&(_=`Params: ${Ht(p.params)}
|
|
42
|
+
|
|
43
|
+
`),Y.log(`Sending request '${p.method} - (${p.id})'.`,_)}else Sn("send-request",p)}function tb(p){if(!(m===ee.Off||!Y))if(S===tt.Text){let _;(m===ee.Verbose||m===ee.Compact)&&(p.params?_=`Params: ${Ht(p.params)}
|
|
44
44
|
|
|
45
45
|
`:_=`No parameters provided.
|
|
46
46
|
|
|
47
|
-
`),Y.log(`Sending notification '${p.method}'.`,_)}else Sn("send-notification",p)}function ti(p,_,A){if(!(m===
|
|
47
|
+
`),Y.log(`Sending notification '${p.method}'.`,_)}else Sn("send-notification",p)}function ti(p,_,A){if(!(m===ee.Off||!Y))if(S===tt.Text){let M;(m===ee.Verbose||m===ee.Compact)&&(p.error&&p.error.data?M=`Error data: ${Ht(p.error.data)}
|
|
48
48
|
|
|
49
49
|
`:p.result?M=`Result: ${Ht(p.result)}
|
|
50
50
|
|
|
51
51
|
`:p.error===void 0&&(M=`No result returned.
|
|
52
52
|
|
|
53
|
-
`)),Y.log(`Sending response '${_} - (${p.id})'. Processing request took ${Date.now()-A}ms`,M)}else Sn("send-response",p)}function
|
|
53
|
+
`)),Y.log(`Sending response '${_} - (${p.id})'. Processing request took ${Date.now()-A}ms`,M)}else Sn("send-response",p)}function nb(p){if(!(m===ee.Off||!Y))if(S===tt.Text){let _;(m===ee.Verbose||m===ee.Compact)&&p.params&&(_=`Params: ${Ht(p.params)}
|
|
54
54
|
|
|
55
|
-
`),Y.log(`Received request '${p.method} - (${p.id})'.`,_)}else Sn("receive-request",p)}function
|
|
55
|
+
`),Y.log(`Received request '${p.method} - (${p.id})'.`,_)}else Sn("receive-request",p)}function ys(p){if(!(m===ee.Off||!Y||p.method===zi.type.method))if(S===tt.Text){let _;(m===ee.Verbose||m===ee.Compact)&&(p.params?_=`Params: ${Ht(p.params)}
|
|
56
56
|
|
|
57
57
|
`:_=`No parameters provided.
|
|
58
58
|
|
|
59
|
-
`),Y.log(`Received notification '${p.method}'.`,_)}else Sn("receive-notification",p)}function
|
|
59
|
+
`),Y.log(`Received notification '${p.method}'.`,_)}else Sn("receive-notification",p)}function rb(p,_){if(!(m===ee.Off||!Y))if(S===tt.Text){let A;if((m===ee.Verbose||m===ee.Compact)&&(p.error&&p.error.data?A=`Error data: ${Ht(p.error.data)}
|
|
60
60
|
|
|
61
61
|
`:p.result?A=`Result: ${Ht(p.result)}
|
|
62
62
|
|
|
63
63
|
`:p.error===void 0&&(A=`No result returned.
|
|
64
64
|
|
|
65
|
-
`)),_){let M=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";Y.log(`Received response '${_.method} - (${p.id})' in ${Date.now()-_.timerStart}ms.${M}`,A)}else Y.log(`Received response ${p.id} without active response promise.`,A)}else Sn("receive-response",p)}function Sn(p,_){if(!Y||m===Z.Off)return;let A={isLSPMessage:!0,type:p,message:_,timestamp:Date.now()};Y.log(A)}function mr(){if(L())throw new zn(Er.Closed,"Connection is closed.");if(N())throw new zn(Er.Disposed,"Connection is disposed.")}function eb(){if(q())throw new zn(Er.AlreadyListening,"Connection is already listening")}function tb(){if(!q())throw new Error("Call listen() first.")}function gr(p){return p===void 0?null:p}function yl(p){if(p!==null)return p}function hl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function ys(p,_){switch(p){case W.ParameterStructures.auto:return hl(_)?yl(_):[gr(_)];case W.ParameterStructures.byName:if(!hl(_))throw new Error("Received parameters by name but param is not an object literal.");return yl(_);case W.ParameterStructures.byPosition:return[gr(_)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function bl(p,_){let A,M=p.numberOfParams;switch(M){case 0:A=void 0;break;case 1:A=ys(p.parameterStructures,_[0]);break;default:A=[];for(let se=0;se<_.length&&se<M;se++)A.push(gr(_[se]));if(_.length<M)for(let se=_.length;se<M;se++)A.push(null);break}return A}let kn={sendNotification:(p,..._)=>{mr();let A,M;if(de.string(p)){A=p;let ie=_[0],fe=0,he=W.ParameterStructures.auto;W.ParameterStructures.is(ie)&&(fe=1,he=ie);let J=_.length,le=J-fe;switch(le){case 0:M=void 0;break;case 1:M=ys(he,_[fe]);break;default:if(he===W.ParameterStructures.byName)throw new Error(`Received ${le} parameters for 'by Name' notification parameter structure.`);M=_.slice(fe,J).map(ne=>gr(ne));break}}else{let ie=_;A=p.method,M=bl(p,ie)}let se={jsonrpc:c,method:A,params:M};return Jh(se),t.write(se).catch(ie=>{throw i.error("Sending notification failed."),ie})},onNotification:(p,_)=>{mr();let A;return de.func(p)?g=p:_&&(de.string(p)?(A=p,b.set(p,{type:void 0,handler:_})):(A=p.method,b.set(p.method,{type:p,handler:_}))),{dispose:()=>{A!==void 0?b.delete(A):g=void 0}}},onProgress:(p,_,A)=>{if(h.has(_))throw new Error(`Progress handler for token ${_} already registered`);return h.set(_,A),{dispose:()=>{h.delete(_)}}},sendProgress:(p,_,A)=>kn.sendNotification(Ar.type,{token:_,value:A}),onUnhandledProgress:wn.event,sendRequest:(p,..._)=>{mr(),tb();let A,M,se;if(de.string(p)){A=p;let J=_[0],le=_[_.length-1],ne=0,Re=W.ParameterStructures.auto;W.ParameterStructures.is(J)&&(ne=1,Re=J);let We=_.length;Xa.CancellationToken.is(le)&&(We=We-1,se=le);let vt=We-ne;switch(vt){case 0:M=void 0;break;case 1:M=ys(Re,_[ne]);break;default:if(Re===W.ParameterStructures.byName)throw new Error(`Received ${vt} parameters for 'by Name' request parameter structure.`);M=_.slice(ne,We).map(nb=>gr(nb));break}}else{let J=_;A=p.method,M=bl(p,J);let le=p.numberOfParams;se=Xa.CancellationToken.is(J[le])?J[le]:void 0}let ie=o++,fe;se&&(fe=se.onCancellationRequested(()=>{let J=v.sender.sendCancellation(kn,ie);return J===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${ie}`),Promise.resolve()):J.catch(()=>{i.log(`Sending cancellation messages for id ${ie} failed`)})}));let he={jsonrpc:c,id:ie,method:A,params:M};return Qh(he),typeof v.sender.enableCancellation=="function"&&v.sender.enableCancellation(he),new Promise(async(J,le)=>{let ne=vt=>{J(vt),v.sender.cleanup(ie),fe?.dispose()},Re=vt=>{le(vt),v.sender.cleanup(ie),fe?.dispose()},We={method:A,timerStart:Date.now(),resolve:ne,reject:Re};try{await t.write(he),Q.set(ie,We)}catch(vt){throw i.error("Sending request failed."),We.reject(new W.ResponseError(W.ErrorCodes.MessageWriteError,vt.message?vt.message:"Unknown reason")),vt}})},onRequest:(p,_)=>{mr();let A=null;return tc.is(p)?(A=void 0,u=p):de.string(p)?(A=null,_!==void 0&&(A=p,d.set(p,{handler:_,type:void 0}))):_!==void 0&&(A=p.method,d.set(p.method,{type:p,handler:_})),{dispose:()=>{A!==null&&(A!==void 0?d.delete(A):u=void 0)}}},hasPendingResponse:()=>Q.size>0,trace:async(p,_,A)=>{let M=!1,se=tt.Text;A!==void 0&&(de.boolean(A)?M=A:(M=A.sendNotification||!1,se=A.traceFormat||tt.Text)),m=p,S=se,m===Z.Off?Y=void 0:Y=_,M&&!L()&&!N()&&await kn.sendNotification(nc.type,{value:Z.toString(p)})},onError:pt.event,onClose:Wt.event,onUnhandledNotification:un.event,onDispose:k.event,end:()=>{t.end()},dispose:()=>{if(N())return;ee=yt.Disposed,k.fire(void 0);let p=new W.ResponseError(W.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let _ of Q.values())_.reject(p);Q=new Map,y=new Map,U=new Set,I=new Zd.LinkedMap,de.func(t.dispose)&&t.dispose(),de.func(e.dispose)&&e.dispose()},listen:()=>{mr(),eb(),ee=yt.Listening,e.listen($h)},inspect:()=>{(0,Xd.default)().console.log("inspect")}};return kn.onNotification(Bi.type,p=>{if(m===Z.Off||!Y)return;let _=m===Z.Verbose||m===Z.Compact;Y.log(p.message,_?p.verbose:void 0)}),kn.onNotification(Ar.type,p=>{let _=h.get(p.token);_?_(p.value):wn.fire(p)}),kn}z.createMessageConnection=jC});var Gi=R(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.ProgressType=P.ProgressToken=P.createMessageConnection=P.NullLogger=P.ConnectionOptions=P.ConnectionStrategy=P.AbstractMessageBuffer=P.WriteableStreamMessageWriter=P.AbstractMessageWriter=P.MessageWriter=P.ReadableStreamMessageReader=P.AbstractMessageReader=P.MessageReader=P.SharedArrayReceiverStrategy=P.SharedArraySenderStrategy=P.CancellationToken=P.CancellationTokenSource=P.Emitter=P.Event=P.Disposable=P.LRUCache=P.Touch=P.LinkedMap=P.ParameterStructures=P.NotificationType9=P.NotificationType8=P.NotificationType7=P.NotificationType6=P.NotificationType5=P.NotificationType4=P.NotificationType3=P.NotificationType2=P.NotificationType1=P.NotificationType0=P.NotificationType=P.ErrorCodes=P.ResponseError=P.RequestType9=P.RequestType8=P.RequestType7=P.RequestType6=P.RequestType5=P.RequestType4=P.RequestType3=P.RequestType2=P.RequestType1=P.RequestType0=P.RequestType=P.Message=P.RAL=void 0;P.MessageStrategy=P.CancellationStrategy=P.CancellationSenderStrategy=P.CancellationReceiverStrategy=P.ConnectionError=P.ConnectionErrors=P.LogTraceNotification=P.SetTraceNotification=P.TraceFormat=P.TraceValues=P.Trace=void 0;var oe=Aa();Object.defineProperty(P,"Message",{enumerable:!0,get:function(){return oe.Message}});Object.defineProperty(P,"RequestType",{enumerable:!0,get:function(){return oe.RequestType}});Object.defineProperty(P,"RequestType0",{enumerable:!0,get:function(){return oe.RequestType0}});Object.defineProperty(P,"RequestType1",{enumerable:!0,get:function(){return oe.RequestType1}});Object.defineProperty(P,"RequestType2",{enumerable:!0,get:function(){return oe.RequestType2}});Object.defineProperty(P,"RequestType3",{enumerable:!0,get:function(){return oe.RequestType3}});Object.defineProperty(P,"RequestType4",{enumerable:!0,get:function(){return oe.RequestType4}});Object.defineProperty(P,"RequestType5",{enumerable:!0,get:function(){return oe.RequestType5}});Object.defineProperty(P,"RequestType6",{enumerable:!0,get:function(){return oe.RequestType6}});Object.defineProperty(P,"RequestType7",{enumerable:!0,get:function(){return oe.RequestType7}});Object.defineProperty(P,"RequestType8",{enumerable:!0,get:function(){return oe.RequestType8}});Object.defineProperty(P,"RequestType9",{enumerable:!0,get:function(){return oe.RequestType9}});Object.defineProperty(P,"ResponseError",{enumerable:!0,get:function(){return oe.ResponseError}});Object.defineProperty(P,"ErrorCodes",{enumerable:!0,get:function(){return oe.ErrorCodes}});Object.defineProperty(P,"NotificationType",{enumerable:!0,get:function(){return oe.NotificationType}});Object.defineProperty(P,"NotificationType0",{enumerable:!0,get:function(){return oe.NotificationType0}});Object.defineProperty(P,"NotificationType1",{enumerable:!0,get:function(){return oe.NotificationType1}});Object.defineProperty(P,"NotificationType2",{enumerable:!0,get:function(){return oe.NotificationType2}});Object.defineProperty(P,"NotificationType3",{enumerable:!0,get:function(){return oe.NotificationType3}});Object.defineProperty(P,"NotificationType4",{enumerable:!0,get:function(){return oe.NotificationType4}});Object.defineProperty(P,"NotificationType5",{enumerable:!0,get:function(){return oe.NotificationType5}});Object.defineProperty(P,"NotificationType6",{enumerable:!0,get:function(){return oe.NotificationType6}});Object.defineProperty(P,"NotificationType7",{enumerable:!0,get:function(){return oe.NotificationType7}});Object.defineProperty(P,"NotificationType8",{enumerable:!0,get:function(){return oe.NotificationType8}});Object.defineProperty(P,"NotificationType9",{enumerable:!0,get:function(){return oe.NotificationType9}});Object.defineProperty(P,"ParameterStructures",{enumerable:!0,get:function(){return oe.ParameterStructures}});var oc=Na();Object.defineProperty(P,"LinkedMap",{enumerable:!0,get:function(){return oc.LinkedMap}});Object.defineProperty(P,"LRUCache",{enumerable:!0,get:function(){return oc.LRUCache}});Object.defineProperty(P,"Touch",{enumerable:!0,get:function(){return oc.Touch}});var LC=Wd();Object.defineProperty(P,"Disposable",{enumerable:!0,get:function(){return LC.Disposable}});var rf=Un();Object.defineProperty(P,"Event",{enumerable:!0,get:function(){return rf.Event}});Object.defineProperty(P,"Emitter",{enumerable:!0,get:function(){return rf.Emitter}});var of=Ii();Object.defineProperty(P,"CancellationTokenSource",{enumerable:!0,get:function(){return of.CancellationTokenSource}});Object.defineProperty(P,"CancellationToken",{enumerable:!0,get:function(){return of.CancellationToken}});var sf=Bd();Object.defineProperty(P,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return sf.SharedArraySenderStrategy}});Object.defineProperty(P,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return sf.SharedArrayReceiverStrategy}});var sc=$d();Object.defineProperty(P,"MessageReader",{enumerable:!0,get:function(){return sc.MessageReader}});Object.defineProperty(P,"AbstractMessageReader",{enumerable:!0,get:function(){return sc.AbstractMessageReader}});Object.defineProperty(P,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return sc.ReadableStreamMessageReader}});var ac=Qd();Object.defineProperty(P,"MessageWriter",{enumerable:!0,get:function(){return ac.MessageWriter}});Object.defineProperty(P,"AbstractMessageWriter",{enumerable:!0,get:function(){return ac.AbstractMessageWriter}});Object.defineProperty(P,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return ac.WriteableStreamMessageWriter}});var MC=Jd();Object.defineProperty(P,"AbstractMessageBuffer",{enumerable:!0,get:function(){return MC.AbstractMessageBuffer}});var je=nf();Object.defineProperty(P,"ConnectionStrategy",{enumerable:!0,get:function(){return je.ConnectionStrategy}});Object.defineProperty(P,"ConnectionOptions",{enumerable:!0,get:function(){return je.ConnectionOptions}});Object.defineProperty(P,"NullLogger",{enumerable:!0,get:function(){return je.NullLogger}});Object.defineProperty(P,"createMessageConnection",{enumerable:!0,get:function(){return je.createMessageConnection}});Object.defineProperty(P,"ProgressToken",{enumerable:!0,get:function(){return je.ProgressToken}});Object.defineProperty(P,"ProgressType",{enumerable:!0,get:function(){return je.ProgressType}});Object.defineProperty(P,"Trace",{enumerable:!0,get:function(){return je.Trace}});Object.defineProperty(P,"TraceValues",{enumerable:!0,get:function(){return je.TraceValues}});Object.defineProperty(P,"TraceFormat",{enumerable:!0,get:function(){return je.TraceFormat}});Object.defineProperty(P,"SetTraceNotification",{enumerable:!0,get:function(){return je.SetTraceNotification}});Object.defineProperty(P,"LogTraceNotification",{enumerable:!0,get:function(){return je.LogTraceNotification}});Object.defineProperty(P,"ConnectionErrors",{enumerable:!0,get:function(){return je.ConnectionErrors}});Object.defineProperty(P,"ConnectionError",{enumerable:!0,get:function(){return je.ConnectionError}});Object.defineProperty(P,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return je.CancellationReceiverStrategy}});Object.defineProperty(P,"CancellationSenderStrategy",{enumerable:!0,get:function(){return je.CancellationSenderStrategy}});Object.defineProperty(P,"CancellationStrategy",{enumerable:!0,get:function(){return je.CancellationStrategy}});Object.defineProperty(P,"MessageStrategy",{enumerable:!0,get:function(){return je.MessageStrategy}});var IC=Qt();P.RAL=IC.default});var cf=R(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var Tt=Gi(),Qi=class e extends Tt.AbstractMessageBuffer{constructor(t="utf-8"){super(t),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return e.emptyBuffer}fromString(t,n){return new TextEncoder().encode(t)}toString(t,n){return n==="ascii"?this.asciiDecoder.decode(t):new TextDecoder(n).decode(t)}asNative(t,n){return n===void 0?t:t.slice(0,n)}allocNative(t){return new Uint8Array(t)}};Qi.emptyBuffer=new Uint8Array(0);var cc=class{constructor(t){this.socket=t,this._onData=new Tt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,Tt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),Tt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),Tt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),Tt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},uc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),Tt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),Tt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),Tt.Disposable.create(()=>this.socket.removeEventListener("end",t))}write(t,n){if(typeof t=="string"){if(n!==void 0&&n!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${n}`);this.socket.send(t)}else this.socket.send(t);return Promise.resolve()}end(){this.socket.close()}},FC=new TextEncoder,af=Object.freeze({messageBuffer:Object.freeze({create:e=>new Qi(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{if(t.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(FC.encode(JSON.stringify(e,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{if(!(e instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))}})}),stream:Object.freeze({asReadableStream:e=>new cc(e),asWritableStream:e=>new uc(e)}),console,timer:Object.freeze({setTimeout(e,t,...n){let r=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(r)}},setImmediate(e,...t){let n=setTimeout(e,0,...t);return{dispose:()=>clearTimeout(n)}},setInterval(e,t,...n){let r=setInterval(e,t,...n);return{dispose:()=>clearInterval(r)}}})});function lc(){return af}(function(e){function t(){Tt.RAL.install(af)}e.install=t})(lc||(lc={}));pc.default=lc});var Pn=R(nt=>{"use strict";var UC=nt&&nt.__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]})),WC=nt&&nt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&UC(t,e,n)};Object.defineProperty(nt,"__esModule",{value:!0});nt.createMessageConnection=nt.BrowserMessageWriter=nt.BrowserMessageReader=void 0;var HC=cf();HC.default.install();var $n=Gi();WC(Gi(),nt);var dc=class extends $n.AbstractMessageReader{constructor(t){super(),this._onData=new $n.Emitter,this._messageListener=n=>{this._onData.fire(n.data)},t.addEventListener("error",n=>this.fireError(n)),t.onmessage=this._messageListener}listen(t){return this._onData.event(t)}};nt.BrowserMessageReader=dc;var fc=class extends $n.AbstractMessageWriter{constructor(t){super(),this.port=t,this.errorCount=0,t.addEventListener("error",n=>this.fireError(n))}write(t){try{return this.port.postMessage(t),Promise.resolve()}catch(n){return this.handleError(n,t),Promise.reject(n)}}handleError(t,n){this.errorCount++,this.fireError(t,n,this.errorCount)}end(){}};nt.BrowserMessageWriter=fc;function BC(e,t,n,r){return n===void 0&&(n=$n.NullLogger),$n.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,$n.createMessageConnection)(e,t,n,r)}nt.createMessageConnection=BC});var mc=R((xS,uf)=>{"use strict";uf.exports=Pn()});var oo={};hs(oo,{AnnotatedTextEdit:()=>Mt,ChangeAnnotation:()=>xn,ChangeAnnotationIdentifier:()=>Le,CodeAction:()=>Gc,CodeActionContext:()=>Kc,CodeActionKind:()=>Vc,CodeActionTriggerKind:()=>Fr,CodeDescription:()=>Rc,CodeLens:()=>Qc,Color:()=>Xi,ColorInformation:()=>bc,ColorPresentation:()=>vc,Command:()=>_n,CompletionItem:()=>jc,CompletionItemKind:()=>kc,CompletionItemLabelDetails:()=>Oc,CompletionItemTag:()=>Ec,CompletionList:()=>Lc,CreateFile:()=>Vn,DeleteFile:()=>Gn,Diagnostic:()=>jr,DiagnosticRelatedInformation:()=>Zi,DiagnosticSeverity:()=>_c,DiagnosticTag:()=>Cc,DocumentHighlight:()=>Wc,DocumentHighlightKind:()=>Uc,DocumentLink:()=>Xc,DocumentSymbol:()=>Yc,DocumentUri:()=>gc,EOL:()=>zC,FoldingRange:()=>xc,FoldingRangeKind:()=>Pc,FormattingOptions:()=>Jc,Hover:()=>Mc,InlayHint:()=>au,InlayHintKind:()=>ro,InlayHintLabelPart:()=>io,InlineCompletionContext:()=>fu,InlineCompletionItem:()=>uu,InlineCompletionList:()=>lu,InlineCompletionTriggerKind:()=>pu,InlineValueContext:()=>su,InlineValueEvaluatableExpression:()=>ou,InlineValueText:()=>ru,InlineValueVariableLookup:()=>iu,InsertReplaceEdit:()=>Nc,InsertTextFormat:()=>Ac,InsertTextMode:()=>qc,Location:()=>Or,LocationLink:()=>hc,MarkedString:()=>Ir,MarkupContent:()=>Qn,MarkupKind:()=>no,OptionalVersionedTextDocumentIdentifier:()=>Mr,ParameterInformation:()=>Ic,Position:()=>ot,Range:()=>me,RenameFile:()=>Kn,SelectedCompletionInfo:()=>du,SelectionRange:()=>Zc,SemanticTokenModifiers:()=>tu,SemanticTokenTypes:()=>eu,SemanticTokens:()=>nu,SignatureInformation:()=>Fc,StringValue:()=>cu,SymbolInformation:()=>zc,SymbolKind:()=>Hc,SymbolTag:()=>Bc,TextDocument:()=>gu,TextDocumentEdit:()=>Lr,TextDocumentIdentifier:()=>Dc,TextDocumentItem:()=>Sc,TextEdit:()=>Dt,URI:()=>Ji,VersionedTextDocumentIdentifier:()=>wc,WorkspaceChange:()=>Tc,WorkspaceEdit:()=>eo,WorkspaceFolder:()=>mu,WorkspaceSymbol:()=>$c,integer:()=>yc,uinteger:()=>qr});var gc,Ji,yc,qr,ot,me,Or,hc,Xi,bc,vc,Pc,xc,Zi,_c,Cc,Rc,jr,_n,Dt,xn,Le,Mt,Lr,Vn,Kn,Gn,eo,Yn,to,Tc,Dc,wc,Mr,Sc,no,Qn,kc,Ac,Ec,Nc,qc,Oc,jc,Lc,Ir,Mc,Ic,Fc,Uc,Wc,Hc,Bc,zc,$c,Yc,Vc,Fr,Kc,Gc,Qc,Jc,Xc,Zc,eu,tu,nu,ru,iu,ou,su,ro,io,au,cu,uu,lu,pu,du,fu,mu,zC,gu,yu,f,so=vl(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(gc||(gc={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(Ji||(Ji={}));(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(yc||(yc={}));(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(qr||(qr={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=qr.MAX_VALUE),i===Number.MAX_VALUE&&(i=qr.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.line)&&f.uinteger(i.character)}e.is=n})(ot||(ot={}));(function(e){function t(r,i,o,s){if(f.uinteger(r)&&f.uinteger(i)&&f.uinteger(o)&&f.uinteger(s))return{start:ot.create(r,i),end:ot.create(o,s)};if(ot.is(r)&&ot.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${o}, ${s}]`)}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&ot.is(i.start)&&ot.is(i.end)}e.is=n})(me||(me={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&me.is(i.range)&&(f.string(i.uri)||f.undefined(i.uri))}e.is=n})(Or||(Or={}));(function(e){function t(r,i,o,s){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&me.is(i.targetRange)&&f.string(i.targetUri)&&me.is(i.targetSelectionRange)&&(me.is(i.originSelectionRange)||f.undefined(i.originSelectionRange))}e.is=n})(hc||(hc={}));(function(e){function t(r,i,o,s){return{red:r,green:i,blue:o,alpha:s}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.numberRange(i.red,0,1)&&f.numberRange(i.green,0,1)&&f.numberRange(i.blue,0,1)&&f.numberRange(i.alpha,0,1)}e.is=n})(Xi||(Xi={}));(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&me.is(i.range)&&Xi.is(i.color)}e.is=n})(bc||(bc={}));(function(e){function t(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.undefined(i.textEdit)||Dt.is(i))&&(f.undefined(i.additionalTextEdits)||f.typedArray(i.additionalTextEdits,Dt.is))}e.is=n})(vc||(vc={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Pc||(Pc={}));(function(e){function t(r,i,o,s,a,c){let u={startLine:r,endLine:i};return f.defined(o)&&(u.startCharacter=o),f.defined(s)&&(u.endCharacter=s),f.defined(a)&&(u.kind=a),f.defined(c)&&(u.collapsedText=c),u}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.startLine)&&f.uinteger(i.startLine)&&(f.undefined(i.startCharacter)||f.uinteger(i.startCharacter))&&(f.undefined(i.endCharacter)||f.uinteger(i.endCharacter))&&(f.undefined(i.kind)||f.string(i.kind))}e.is=n})(xc||(xc={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Or.is(i.location)&&f.string(i.message)}e.is=n})(Zi||(Zi={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(_c||(_c={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(Cc||(Cc={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Rc||(Rc={}));(function(e){function t(r,i,o,s,a,c){let u={range:r,message:i};return f.defined(o)&&(u.severity=o),f.defined(s)&&(u.code=s),f.defined(a)&&(u.source=a),f.defined(c)&&(u.relatedInformation=c),u}e.create=t;function n(r){var i;let o=r;return f.defined(o)&&me.is(o.range)&&f.string(o.message)&&(f.number(o.severity)||f.undefined(o.severity))&&(f.integer(o.code)||f.string(o.code)||f.undefined(o.code))&&(f.undefined(o.codeDescription)||f.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(f.string(o.source)||f.undefined(o.source))&&(f.undefined(o.relatedInformation)||f.typedArray(o.relatedInformation,Zi.is))}e.is=n})(jr||(jr={}));(function(e){function t(r,i,...o){let s={title:r,command:i};return f.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.title)&&f.string(i.command)}e.is=n})(_n||(_n={}));(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function n(o,s){return{range:{start:o,end:o},newText:s}}e.insert=n;function r(o){return{range:o,newText:""}}e.del=r;function i(o){let s=o;return f.objectLiteral(s)&&f.string(s.newText)&&me.is(s.range)}e.is=i})(Dt||(Dt={}));(function(e){function t(r,i,o){let s={label:r};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(f.string(i.description)||i.description===void 0)}e.is=n})(xn||(xn={}));(function(e){function t(n){let r=n;return f.string(r)}e.is=t})(Le||(Le={}));(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function n(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=n;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function i(o){let s=o;return Dt.is(s)&&(xn.is(s.annotationId)||Le.is(s.annotationId))}e.is=i})(Mt||(Mt={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Mr.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Lr||(Lr={}));(function(e){function t(r,i,o){let s={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&f.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Le.is(i.annotationId))}e.is=n})(Vn||(Vn={}));(function(e){function t(r,i,o,s){let a={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&f.string(i.oldUri)&&f.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Le.is(i.annotationId))}e.is=n})(Kn||(Kn={}));(function(e){function t(r,i,o){let s={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&f.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||f.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||f.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Le.is(i.annotationId))}e.is=n})(Gn||(Gn={}));(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>f.string(i.kind)?Vn.is(i)||Kn.is(i)||Gn.is(i):Lr.is(i)))}e.is=t})(eo||(eo={}));Yn=class{constructor(t,n){this.edits=t,this.changeAnnotations=n}insert(t,n,r){let i,o;if(r===void 0?i=Dt.insert(t,n):Le.is(r)?(o=r,i=Mt.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Mt.insert(t,n,o)),this.edits.push(i),o!==void 0)return o}replace(t,n,r){let i,o;if(r===void 0?i=Dt.replace(t,n):Le.is(r)?(o=r,i=Mt.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Mt.replace(t,n,o)),this.edits.push(i),o!==void 0)return o}delete(t,n){let r,i;if(n===void 0?r=Dt.del(t):Le.is(n)?(i=n,r=Mt.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Mt.del(t,i)),this.edits.push(r),i!==void 0)return i}add(t){this.edits.push(t)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},to=class{constructor(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(t,n){let r;if(Le.is(t)?r=t:(r=this.nextId(),n=t),this._annotations[r]!==void 0)throw new Error(`Id ${r} is already in use.`);if(n===void 0)throw new Error(`No annotation provided for id ${r}`);return this._annotations[r]=n,this._size++,r}nextId(){return this._counter++,this._counter.toString()}},Tc=class{constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new to(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(n=>{if(Lr.is(n)){let r=new Yn(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new Yn(t.changes[n]);this._textEditChanges[n]=r})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(t){if(Mr.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n={uri:t.uri,version:t.version},r=this._textEditChanges[n.uri];if(!r){let i=[],o={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(o),r=new Yn(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let n=this._textEditChanges[t];if(!n){let r=[];this._workspaceEdit.changes[t]=r,n=new Yn(r),this._textEditChanges[t]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new to,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;xn.is(n)||Le.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Vn.create(t,r):(s=Le.is(i)?i:this._changeAnnotations.manage(i),o=Vn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}renameFile(t,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let o;xn.is(r)||Le.is(r)?o=r:i=r;let s,a;if(o===void 0?s=Kn.create(t,n,i):(a=Le.is(o)?o:this._changeAnnotations.manage(o),s=Kn.create(t,n,i,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a}deleteFile(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;xn.is(n)||Le.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Gn.create(t,r):(s=Le.is(i)?i:this._changeAnnotations.manage(i),o=Gn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}};(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)}e.is=n})(Dc||(Dc={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&f.integer(i.version)}e.is=n})(wc||(wc={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&(i.version===null||f.integer(i.version))}e.is=n})(Mr||(Mr={}));(function(e){function t(r,i,o,s){return{uri:r,languageId:i,version:o,text:s}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&f.string(i.languageId)&&f.integer(i.version)&&f.string(i.text)}e.is=n})(Sc||(Sc={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(no||(no={}));(function(e){function t(n){let r=n;return f.objectLiteral(n)&&no.is(r.kind)&&f.string(r.value)}e.is=t})(Qn||(Qn={}));(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(kc||(kc={}));(function(e){e.PlainText=1,e.Snippet=2})(Ac||(Ac={}));(function(e){e.Deprecated=1})(Ec||(Ec={}));(function(e){function t(r,i,o){return{newText:r,insert:i,replace:o}}e.create=t;function n(r){let i=r;return i&&f.string(i.newText)&&me.is(i.insert)&&me.is(i.replace)}e.is=n})(Nc||(Nc={}));(function(e){e.asIs=1,e.adjustIndentation=2})(qc||(qc={}));(function(e){function t(n){let r=n;return r&&(f.string(r.detail)||r.detail===void 0)&&(f.string(r.description)||r.description===void 0)}e.is=t})(Oc||(Oc={}));(function(e){function t(n){return{label:n}}e.create=t})(jc||(jc={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(Lc||(Lc={}));(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){let i=r;return f.string(i)||f.objectLiteral(i)&&f.string(i.language)&&f.string(i.value)}e.is=n})(Ir||(Ir={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(Qn.is(r.contents)||Ir.is(r.contents)||f.typedArray(r.contents,Ir.is))&&(n.range===void 0||me.is(n.range))}e.is=t})(Mc||(Mc={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Ic||(Ic={}));(function(e){function t(n,r,...i){let o={label:n};return f.defined(r)&&(o.documentation=r),f.defined(i)?o.parameters=i:o.parameters=[],o}e.create=t})(Fc||(Fc={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(Uc||(Uc={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(Wc||(Wc={}));(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Hc||(Hc={}));(function(e){e.Deprecated=1})(Bc||(Bc={}));(function(e){function t(n,r,i,o,s){let a={name:n,kind:r,location:{uri:o,range:i}};return s&&(a.containerName=s),a}e.create=t})(zc||(zc={}));(function(e){function t(n,r,i,o){return o!==void 0?{name:n,kind:r,location:{uri:i,range:o}}:{name:n,kind:r,location:{uri:i}}}e.create=t})($c||($c={}));(function(e){function t(r,i,o,s,a,c){let u={name:r,detail:i,kind:o,range:s,selectionRange:a};return c!==void 0&&(u.children=c),u}e.create=t;function n(r){let i=r;return i&&f.string(i.name)&&f.number(i.kind)&&me.is(i.range)&&me.is(i.selectionRange)&&(i.detail===void 0||f.string(i.detail))&&(i.deprecated===void 0||f.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(Yc||(Yc={}));(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Vc||(Vc={}));(function(e){e.Invoked=1,e.Automatic=2})(Fr||(Fr={}));(function(e){function t(r,i,o){let s={diagnostics:r};return i!=null&&(s.only=i),o!=null&&(s.triggerKind=o),s}e.create=t;function n(r){let i=r;return f.defined(i)&&f.typedArray(i.diagnostics,jr.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===Fr.Invoked||i.triggerKind===Fr.Automatic)}e.is=n})(Kc||(Kc={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):_n.is(i)?s.command=i:s.edit=i,a&&o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return i&&f.string(i.title)&&(i.diagnostics===void 0||f.typedArray(i.diagnostics,jr.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||_n.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||eo.is(i.edit))}e.is=n})(Gc||(Gc={}));(function(e){function t(r,i){let o={range:r};return f.defined(i)&&(o.data=i),o}e.create=t;function n(r){let i=r;return f.defined(i)&&me.is(i.range)&&(f.undefined(i.command)||_n.is(i.command))}e.is=n})(Qc||(Qc={}));(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.uinteger(i.tabSize)&&f.boolean(i.insertSpaces)}e.is=n})(Jc||(Jc={}));(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){let i=r;return f.defined(i)&&me.is(i.range)&&(f.undefined(i.target)||f.string(i.target))}e.is=n})(Xc||(Xc={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&me.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(Zc||(Zc={}));(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(eu||(eu={}));(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(tu||(tu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(nu||(nu={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&me.is(i.range)&&f.string(i.text)}e.is=n})(ru||(ru={}));(function(e){function t(r,i,o){return{range:r,variableName:i,caseSensitiveLookup:o}}e.create=t;function n(r){let i=r;return i!=null&&me.is(i.range)&&f.boolean(i.caseSensitiveLookup)&&(f.string(i.variableName)||i.variableName===void 0)}e.is=n})(iu||(iu={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&me.is(i.range)&&(f.string(i.expression)||i.expression===void 0)}e.is=n})(ou||(ou={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&me.is(r.stoppedLocation)}e.is=n})(su||(su={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(ro||(ro={}));(function(e){function t(r){return{value:r}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&(i.tooltip===void 0||f.string(i.tooltip)||Qn.is(i.tooltip))&&(i.location===void 0||Or.is(i.location))&&(i.command===void 0||_n.is(i.command))}e.is=n})(io||(io={}));(function(e){function t(r,i,o){let s={position:r,label:i};return o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&ot.is(i.position)&&(f.string(i.label)||f.typedArray(i.label,io.is))&&(i.kind===void 0||ro.is(i.kind))&&i.textEdits===void 0||f.typedArray(i.textEdits,Dt.is)&&(i.tooltip===void 0||f.string(i.tooltip)||Qn.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(au||(au={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(cu||(cu={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(uu||(uu={}));(function(e){function t(n){return{items:n}}e.create=t})(lu||(lu={}));(function(e){e.Invoked=0,e.Automatic=1})(pu||(pu={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(du||(du={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(fu||(fu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&Ji.is(r.uri)&&f.string(r.name)}e.is=t})(mu||(mu={}));zC=[`
|
|
65
|
+
`)),_){let M=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";Y.log(`Received response '${_.method} - (${p.id})' in ${Date.now()-_.timerStart}ms.${M}`,A)}else Y.log(`Received response ${p.id} without active response promise.`,A)}else Sn("receive-response",p)}function Sn(p,_){if(!Y||m===ee.Off)return;let A={isLSPMessage:!0,type:p,message:_,timestamp:Date.now()};Y.log(A)}function mr(){if(L())throw new zn(Er.Closed,"Connection is closed.");if(N())throw new zn(Er.Disposed,"Connection is disposed.")}function ib(){if(q())throw new zn(Er.AlreadyListening,"Connection is already listening")}function ob(){if(!q())throw new Error("Call listen() first.")}function gr(p){return p===void 0?null:p}function yl(p){if(p!==null)return p}function hl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function hs(p,_){switch(p){case W.ParameterStructures.auto:return hl(_)?yl(_):[gr(_)];case W.ParameterStructures.byName:if(!hl(_))throw new Error("Received parameters by name but param is not an object literal.");return yl(_);case W.ParameterStructures.byPosition:return[gr(_)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function bl(p,_){let A,M=p.numberOfParams;switch(M){case 0:A=void 0;break;case 1:A=hs(p.parameterStructures,_[0]);break;default:A=[];for(let se=0;se<_.length&&se<M;se++)A.push(gr(_[se]));if(_.length<M)for(let se=_.length;se<M;se++)A.push(null);break}return A}let kn={sendNotification:(p,..._)=>{mr();let A,M;if(de.string(p)){A=p;let ie=_[0],fe=0,he=W.ParameterStructures.auto;W.ParameterStructures.is(ie)&&(fe=1,he=ie);let J=_.length,le=J-fe;switch(le){case 0:M=void 0;break;case 1:M=hs(he,_[fe]);break;default:if(he===W.ParameterStructures.byName)throw new Error(`Received ${le} parameters for 'by Name' notification parameter structure.`);M=_.slice(fe,J).map(ne=>gr(ne));break}}else{let ie=_;A=p.method,M=bl(p,ie)}let se={jsonrpc:c,method:A,params:M};return tb(se),t.write(se).catch(ie=>{throw i.error("Sending notification failed."),ie})},onNotification:(p,_)=>{mr();let A;return de.func(p)?g=p:_&&(de.string(p)?(A=p,b.set(p,{type:void 0,handler:_})):(A=p.method,b.set(p.method,{type:p,handler:_}))),{dispose:()=>{A!==void 0?b.delete(A):g=void 0}}},onProgress:(p,_,A)=>{if(h.has(_))throw new Error(`Progress handler for token ${_} already registered`);return h.set(_,A),{dispose:()=>{h.delete(_)}}},sendProgress:(p,_,A)=>kn.sendNotification(Ar.type,{token:_,value:A}),onUnhandledProgress:wn.event,sendRequest:(p,..._)=>{mr(),ob();let A,M,se;if(de.string(p)){A=p;let J=_[0],le=_[_.length-1],ne=0,Re=W.ParameterStructures.auto;W.ParameterStructures.is(J)&&(ne=1,Re=J);let We=_.length;Xa.CancellationToken.is(le)&&(We=We-1,se=le);let vt=We-ne;switch(vt){case 0:M=void 0;break;case 1:M=hs(Re,_[ne]);break;default:if(Re===W.ParameterStructures.byName)throw new Error(`Received ${vt} parameters for 'by Name' request parameter structure.`);M=_.slice(ne,We).map(sb=>gr(sb));break}}else{let J=_;A=p.method,M=bl(p,J);let le=p.numberOfParams;se=Xa.CancellationToken.is(J[le])?J[le]:void 0}let ie=o++,fe;se&&(fe=se.onCancellationRequested(()=>{let J=v.sender.sendCancellation(kn,ie);return J===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${ie}`),Promise.resolve()):J.catch(()=>{i.log(`Sending cancellation messages for id ${ie} failed`)})}));let he={jsonrpc:c,id:ie,method:A,params:M};return eb(he),typeof v.sender.enableCancellation=="function"&&v.sender.enableCancellation(he),new Promise(async(J,le)=>{let ne=vt=>{J(vt),v.sender.cleanup(ie),fe?.dispose()},Re=vt=>{le(vt),v.sender.cleanup(ie),fe?.dispose()},We={method:A,timerStart:Date.now(),resolve:ne,reject:Re};try{await t.write(he),Q.set(ie,We)}catch(vt){throw i.error("Sending request failed."),We.reject(new W.ResponseError(W.ErrorCodes.MessageWriteError,vt.message?vt.message:"Unknown reason")),vt}})},onRequest:(p,_)=>{mr();let A=null;return tc.is(p)?(A=void 0,u=p):de.string(p)?(A=null,_!==void 0&&(A=p,d.set(p,{handler:_,type:void 0}))):_!==void 0&&(A=p.method,d.set(p.method,{type:p,handler:_})),{dispose:()=>{A!==null&&(A!==void 0?d.delete(A):u=void 0)}}},hasPendingResponse:()=>Q.size>0,trace:async(p,_,A)=>{let M=!1,se=tt.Text;A!==void 0&&(de.boolean(A)?M=A:(M=A.sendNotification||!1,se=A.traceFormat||tt.Text)),m=p,S=se,m===ee.Off?Y=void 0:Y=_,M&&!L()&&!N()&&await kn.sendNotification(nc.type,{value:ee.toString(p)})},onError:pt.event,onClose:Wt.event,onUnhandledNotification:un.event,onDispose:k.event,end:()=>{t.end()},dispose:()=>{if(N())return;te=yt.Disposed,k.fire(void 0);let p=new W.ResponseError(W.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let _ of Q.values())_.reject(p);Q=new Map,y=new Map,U=new Set,I=new rf.LinkedMap,de.func(t.dispose)&&t.dispose(),de.func(e.dispose)&&e.dispose()},listen:()=>{mr(),ib(),te=yt.Listening,e.listen(Gh)},inspect:()=>{(0,nf.default)().console.log("inspect")}};return kn.onNotification(zi.type,p=>{if(m===ee.Off||!Y)return;let _=m===ee.Verbose||m===ee.Compact;Y.log(p.message,_?p.verbose:void 0)}),kn.onNotification(Ar.type,p=>{let _=h.get(p.token);_?_(p.value):wn.fire(p)}),kn}z.createMessageConnection=IC});var Qi=R(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.ProgressType=P.ProgressToken=P.createMessageConnection=P.NullLogger=P.ConnectionOptions=P.ConnectionStrategy=P.AbstractMessageBuffer=P.WriteableStreamMessageWriter=P.AbstractMessageWriter=P.MessageWriter=P.ReadableStreamMessageReader=P.AbstractMessageReader=P.MessageReader=P.SharedArrayReceiverStrategy=P.SharedArraySenderStrategy=P.CancellationToken=P.CancellationTokenSource=P.Emitter=P.Event=P.Disposable=P.LRUCache=P.Touch=P.LinkedMap=P.ParameterStructures=P.NotificationType9=P.NotificationType8=P.NotificationType7=P.NotificationType6=P.NotificationType5=P.NotificationType4=P.NotificationType3=P.NotificationType2=P.NotificationType1=P.NotificationType0=P.NotificationType=P.ErrorCodes=P.ResponseError=P.RequestType9=P.RequestType8=P.RequestType7=P.RequestType6=P.RequestType5=P.RequestType4=P.RequestType3=P.RequestType2=P.RequestType1=P.RequestType0=P.RequestType=P.Message=P.RAL=void 0;P.MessageStrategy=P.CancellationStrategy=P.CancellationSenderStrategy=P.CancellationReceiverStrategy=P.ConnectionError=P.ConnectionErrors=P.LogTraceNotification=P.SetTraceNotification=P.TraceFormat=P.TraceValues=P.Trace=void 0;var oe=Aa();Object.defineProperty(P,"Message",{enumerable:!0,get:function(){return oe.Message}});Object.defineProperty(P,"RequestType",{enumerable:!0,get:function(){return oe.RequestType}});Object.defineProperty(P,"RequestType0",{enumerable:!0,get:function(){return oe.RequestType0}});Object.defineProperty(P,"RequestType1",{enumerable:!0,get:function(){return oe.RequestType1}});Object.defineProperty(P,"RequestType2",{enumerable:!0,get:function(){return oe.RequestType2}});Object.defineProperty(P,"RequestType3",{enumerable:!0,get:function(){return oe.RequestType3}});Object.defineProperty(P,"RequestType4",{enumerable:!0,get:function(){return oe.RequestType4}});Object.defineProperty(P,"RequestType5",{enumerable:!0,get:function(){return oe.RequestType5}});Object.defineProperty(P,"RequestType6",{enumerable:!0,get:function(){return oe.RequestType6}});Object.defineProperty(P,"RequestType7",{enumerable:!0,get:function(){return oe.RequestType7}});Object.defineProperty(P,"RequestType8",{enumerable:!0,get:function(){return oe.RequestType8}});Object.defineProperty(P,"RequestType9",{enumerable:!0,get:function(){return oe.RequestType9}});Object.defineProperty(P,"ResponseError",{enumerable:!0,get:function(){return oe.ResponseError}});Object.defineProperty(P,"ErrorCodes",{enumerable:!0,get:function(){return oe.ErrorCodes}});Object.defineProperty(P,"NotificationType",{enumerable:!0,get:function(){return oe.NotificationType}});Object.defineProperty(P,"NotificationType0",{enumerable:!0,get:function(){return oe.NotificationType0}});Object.defineProperty(P,"NotificationType1",{enumerable:!0,get:function(){return oe.NotificationType1}});Object.defineProperty(P,"NotificationType2",{enumerable:!0,get:function(){return oe.NotificationType2}});Object.defineProperty(P,"NotificationType3",{enumerable:!0,get:function(){return oe.NotificationType3}});Object.defineProperty(P,"NotificationType4",{enumerable:!0,get:function(){return oe.NotificationType4}});Object.defineProperty(P,"NotificationType5",{enumerable:!0,get:function(){return oe.NotificationType5}});Object.defineProperty(P,"NotificationType6",{enumerable:!0,get:function(){return oe.NotificationType6}});Object.defineProperty(P,"NotificationType7",{enumerable:!0,get:function(){return oe.NotificationType7}});Object.defineProperty(P,"NotificationType8",{enumerable:!0,get:function(){return oe.NotificationType8}});Object.defineProperty(P,"NotificationType9",{enumerable:!0,get:function(){return oe.NotificationType9}});Object.defineProperty(P,"ParameterStructures",{enumerable:!0,get:function(){return oe.ParameterStructures}});var oc=Na();Object.defineProperty(P,"LinkedMap",{enumerable:!0,get:function(){return oc.LinkedMap}});Object.defineProperty(P,"LRUCache",{enumerable:!0,get:function(){return oc.LRUCache}});Object.defineProperty(P,"Touch",{enumerable:!0,get:function(){return oc.Touch}});var FC=$d();Object.defineProperty(P,"Disposable",{enumerable:!0,get:function(){return FC.Disposable}});var cf=Un();Object.defineProperty(P,"Event",{enumerable:!0,get:function(){return cf.Event}});Object.defineProperty(P,"Emitter",{enumerable:!0,get:function(){return cf.Emitter}});var uf=Fi();Object.defineProperty(P,"CancellationTokenSource",{enumerable:!0,get:function(){return uf.CancellationTokenSource}});Object.defineProperty(P,"CancellationToken",{enumerable:!0,get:function(){return uf.CancellationToken}});var lf=Vd();Object.defineProperty(P,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return lf.SharedArraySenderStrategy}});Object.defineProperty(P,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return lf.SharedArrayReceiverStrategy}});var sc=Gd();Object.defineProperty(P,"MessageReader",{enumerable:!0,get:function(){return sc.MessageReader}});Object.defineProperty(P,"AbstractMessageReader",{enumerable:!0,get:function(){return sc.AbstractMessageReader}});Object.defineProperty(P,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return sc.ReadableStreamMessageReader}});var ac=ef();Object.defineProperty(P,"MessageWriter",{enumerable:!0,get:function(){return ac.MessageWriter}});Object.defineProperty(P,"AbstractMessageWriter",{enumerable:!0,get:function(){return ac.AbstractMessageWriter}});Object.defineProperty(P,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return ac.WriteableStreamMessageWriter}});var UC=tf();Object.defineProperty(P,"AbstractMessageBuffer",{enumerable:!0,get:function(){return UC.AbstractMessageBuffer}});var je=af();Object.defineProperty(P,"ConnectionStrategy",{enumerable:!0,get:function(){return je.ConnectionStrategy}});Object.defineProperty(P,"ConnectionOptions",{enumerable:!0,get:function(){return je.ConnectionOptions}});Object.defineProperty(P,"NullLogger",{enumerable:!0,get:function(){return je.NullLogger}});Object.defineProperty(P,"createMessageConnection",{enumerable:!0,get:function(){return je.createMessageConnection}});Object.defineProperty(P,"ProgressToken",{enumerable:!0,get:function(){return je.ProgressToken}});Object.defineProperty(P,"ProgressType",{enumerable:!0,get:function(){return je.ProgressType}});Object.defineProperty(P,"Trace",{enumerable:!0,get:function(){return je.Trace}});Object.defineProperty(P,"TraceValues",{enumerable:!0,get:function(){return je.TraceValues}});Object.defineProperty(P,"TraceFormat",{enumerable:!0,get:function(){return je.TraceFormat}});Object.defineProperty(P,"SetTraceNotification",{enumerable:!0,get:function(){return je.SetTraceNotification}});Object.defineProperty(P,"LogTraceNotification",{enumerable:!0,get:function(){return je.LogTraceNotification}});Object.defineProperty(P,"ConnectionErrors",{enumerable:!0,get:function(){return je.ConnectionErrors}});Object.defineProperty(P,"ConnectionError",{enumerable:!0,get:function(){return je.ConnectionError}});Object.defineProperty(P,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return je.CancellationReceiverStrategy}});Object.defineProperty(P,"CancellationSenderStrategy",{enumerable:!0,get:function(){return je.CancellationSenderStrategy}});Object.defineProperty(P,"CancellationStrategy",{enumerable:!0,get:function(){return je.CancellationStrategy}});Object.defineProperty(P,"MessageStrategy",{enumerable:!0,get:function(){return je.MessageStrategy}});var WC=Qt();P.RAL=WC.default});var df=R(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var Tt=Qi(),Ji=class e extends Tt.AbstractMessageBuffer{constructor(t="utf-8"){super(t),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return e.emptyBuffer}fromString(t,n){return new TextEncoder().encode(t)}toString(t,n){return n==="ascii"?this.asciiDecoder.decode(t):new TextDecoder(n).decode(t)}asNative(t,n){return n===void 0?t:t.slice(0,n)}allocNative(t){return new Uint8Array(t)}};Ji.emptyBuffer=new Uint8Array(0);var cc=class{constructor(t){this.socket=t,this._onData=new Tt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,Tt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),Tt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),Tt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),Tt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},uc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),Tt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),Tt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),Tt.Disposable.create(()=>this.socket.removeEventListener("end",t))}write(t,n){if(typeof t=="string"){if(n!==void 0&&n!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${n}`);this.socket.send(t)}else this.socket.send(t);return Promise.resolve()}end(){this.socket.close()}},HC=new TextEncoder,pf=Object.freeze({messageBuffer:Object.freeze({create:e=>new Ji(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{if(t.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(HC.encode(JSON.stringify(e,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{if(!(e instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))}})}),stream:Object.freeze({asReadableStream:e=>new cc(e),asWritableStream:e=>new uc(e)}),console,timer:Object.freeze({setTimeout(e,t,...n){let r=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(r)}},setImmediate(e,...t){let n=setTimeout(e,0,...t);return{dispose:()=>clearTimeout(n)}},setInterval(e,t,...n){let r=setInterval(e,t,...n);return{dispose:()=>clearInterval(r)}}})});function lc(){return pf}(function(e){function t(){Tt.RAL.install(pf)}e.install=t})(lc||(lc={}));pc.default=lc});var Pn=R(nt=>{"use strict";var BC=nt&&nt.__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]})),zC=nt&&nt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&BC(t,e,n)};Object.defineProperty(nt,"__esModule",{value:!0});nt.createMessageConnection=nt.BrowserMessageWriter=nt.BrowserMessageReader=void 0;var $C=df();$C.default.install();var $n=Qi();zC(Qi(),nt);var dc=class extends $n.AbstractMessageReader{constructor(t){super(),this._onData=new $n.Emitter,this._messageListener=n=>{this._onData.fire(n.data)},t.addEventListener("error",n=>this.fireError(n)),t.onmessage=this._messageListener}listen(t){return this._onData.event(t)}};nt.BrowserMessageReader=dc;var fc=class extends $n.AbstractMessageWriter{constructor(t){super(),this.port=t,this.errorCount=0,t.addEventListener("error",n=>this.fireError(n))}write(t){try{return this.port.postMessage(t),Promise.resolve()}catch(n){return this.handleError(n,t),Promise.reject(n)}}handleError(t,n){this.errorCount++,this.fireError(t,n,this.errorCount)}end(){}};nt.BrowserMessageWriter=fc;function YC(e,t,n,r){return n===void 0&&(n=$n.NullLogger),$n.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,$n.createMessageConnection)(e,t,n,r)}nt.createMessageConnection=YC});var mc=R((RS,ff)=>{"use strict";ff.exports=Pn()});var so={};bs(so,{AnnotatedTextEdit:()=>Mt,ChangeAnnotation:()=>xn,ChangeAnnotationIdentifier:()=>Le,CodeAction:()=>Gc,CodeActionContext:()=>Kc,CodeActionKind:()=>Vc,CodeActionTriggerKind:()=>Fr,CodeDescription:()=>Rc,CodeLens:()=>Qc,Color:()=>Zi,ColorInformation:()=>bc,ColorPresentation:()=>vc,Command:()=>_n,CompletionItem:()=>jc,CompletionItemKind:()=>kc,CompletionItemLabelDetails:()=>Oc,CompletionItemTag:()=>Ec,CompletionList:()=>Lc,CreateFile:()=>Vn,DeleteFile:()=>Gn,Diagnostic:()=>jr,DiagnosticRelatedInformation:()=>eo,DiagnosticSeverity:()=>_c,DiagnosticTag:()=>Cc,DocumentHighlight:()=>Wc,DocumentHighlightKind:()=>Uc,DocumentLink:()=>Xc,DocumentSymbol:()=>Yc,DocumentUri:()=>gc,EOL:()=>VC,FoldingRange:()=>xc,FoldingRangeKind:()=>Pc,FormattingOptions:()=>Jc,Hover:()=>Mc,InlayHint:()=>au,InlayHintKind:()=>io,InlayHintLabelPart:()=>oo,InlineCompletionContext:()=>fu,InlineCompletionItem:()=>uu,InlineCompletionList:()=>lu,InlineCompletionTriggerKind:()=>pu,InlineValueContext:()=>su,InlineValueEvaluatableExpression:()=>ou,InlineValueText:()=>ru,InlineValueVariableLookup:()=>iu,InsertReplaceEdit:()=>Nc,InsertTextFormat:()=>Ac,InsertTextMode:()=>qc,Location:()=>Or,LocationLink:()=>hc,MarkedString:()=>Ir,MarkupContent:()=>Qn,MarkupKind:()=>ro,OptionalVersionedTextDocumentIdentifier:()=>Mr,ParameterInformation:()=>Ic,Position:()=>ot,Range:()=>me,RenameFile:()=>Kn,SelectedCompletionInfo:()=>du,SelectionRange:()=>Zc,SemanticTokenModifiers:()=>tu,SemanticTokenTypes:()=>eu,SemanticTokens:()=>nu,SignatureInformation:()=>Fc,StringValue:()=>cu,SymbolInformation:()=>zc,SymbolKind:()=>Hc,SymbolTag:()=>Bc,TextDocument:()=>gu,TextDocumentEdit:()=>Lr,TextDocumentIdentifier:()=>Dc,TextDocumentItem:()=>Sc,TextEdit:()=>Dt,URI:()=>Xi,VersionedTextDocumentIdentifier:()=>wc,WorkspaceChange:()=>Tc,WorkspaceEdit:()=>to,WorkspaceFolder:()=>mu,WorkspaceSymbol:()=>$c,integer:()=>yc,uinteger:()=>qr});var gc,Xi,yc,qr,ot,me,Or,hc,Zi,bc,vc,Pc,xc,eo,_c,Cc,Rc,jr,_n,Dt,xn,Le,Mt,Lr,Vn,Kn,Gn,to,Yn,no,Tc,Dc,wc,Mr,Sc,ro,Qn,kc,Ac,Ec,Nc,qc,Oc,jc,Lc,Ir,Mc,Ic,Fc,Uc,Wc,Hc,Bc,zc,$c,Yc,Vc,Fr,Kc,Gc,Qc,Jc,Xc,Zc,eu,tu,nu,ru,iu,ou,su,io,oo,au,cu,uu,lu,pu,du,fu,mu,VC,gu,yu,f,ao=vl(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(gc||(gc={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(Xi||(Xi={}));(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(yc||(yc={}));(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(qr||(qr={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=qr.MAX_VALUE),i===Number.MAX_VALUE&&(i=qr.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.line)&&f.uinteger(i.character)}e.is=n})(ot||(ot={}));(function(e){function t(r,i,o,s){if(f.uinteger(r)&&f.uinteger(i)&&f.uinteger(o)&&f.uinteger(s))return{start:ot.create(r,i),end:ot.create(o,s)};if(ot.is(r)&&ot.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${o}, ${s}]`)}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&ot.is(i.start)&&ot.is(i.end)}e.is=n})(me||(me={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&me.is(i.range)&&(f.string(i.uri)||f.undefined(i.uri))}e.is=n})(Or||(Or={}));(function(e){function t(r,i,o,s){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&me.is(i.targetRange)&&f.string(i.targetUri)&&me.is(i.targetSelectionRange)&&(me.is(i.originSelectionRange)||f.undefined(i.originSelectionRange))}e.is=n})(hc||(hc={}));(function(e){function t(r,i,o,s){return{red:r,green:i,blue:o,alpha:s}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.numberRange(i.red,0,1)&&f.numberRange(i.green,0,1)&&f.numberRange(i.blue,0,1)&&f.numberRange(i.alpha,0,1)}e.is=n})(Zi||(Zi={}));(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&me.is(i.range)&&Zi.is(i.color)}e.is=n})(bc||(bc={}));(function(e){function t(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.undefined(i.textEdit)||Dt.is(i))&&(f.undefined(i.additionalTextEdits)||f.typedArray(i.additionalTextEdits,Dt.is))}e.is=n})(vc||(vc={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Pc||(Pc={}));(function(e){function t(r,i,o,s,a,c){let u={startLine:r,endLine:i};return f.defined(o)&&(u.startCharacter=o),f.defined(s)&&(u.endCharacter=s),f.defined(a)&&(u.kind=a),f.defined(c)&&(u.collapsedText=c),u}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.startLine)&&f.uinteger(i.startLine)&&(f.undefined(i.startCharacter)||f.uinteger(i.startCharacter))&&(f.undefined(i.endCharacter)||f.uinteger(i.endCharacter))&&(f.undefined(i.kind)||f.string(i.kind))}e.is=n})(xc||(xc={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Or.is(i.location)&&f.string(i.message)}e.is=n})(eo||(eo={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(_c||(_c={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(Cc||(Cc={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Rc||(Rc={}));(function(e){function t(r,i,o,s,a,c){let u={range:r,message:i};return f.defined(o)&&(u.severity=o),f.defined(s)&&(u.code=s),f.defined(a)&&(u.source=a),f.defined(c)&&(u.relatedInformation=c),u}e.create=t;function n(r){var i;let o=r;return f.defined(o)&&me.is(o.range)&&f.string(o.message)&&(f.number(o.severity)||f.undefined(o.severity))&&(f.integer(o.code)||f.string(o.code)||f.undefined(o.code))&&(f.undefined(o.codeDescription)||f.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(f.string(o.source)||f.undefined(o.source))&&(f.undefined(o.relatedInformation)||f.typedArray(o.relatedInformation,eo.is))}e.is=n})(jr||(jr={}));(function(e){function t(r,i,...o){let s={title:r,command:i};return f.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.title)&&f.string(i.command)}e.is=n})(_n||(_n={}));(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function n(o,s){return{range:{start:o,end:o},newText:s}}e.insert=n;function r(o){return{range:o,newText:""}}e.del=r;function i(o){let s=o;return f.objectLiteral(s)&&f.string(s.newText)&&me.is(s.range)}e.is=i})(Dt||(Dt={}));(function(e){function t(r,i,o){let s={label:r};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(f.string(i.description)||i.description===void 0)}e.is=n})(xn||(xn={}));(function(e){function t(n){let r=n;return f.string(r)}e.is=t})(Le||(Le={}));(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function n(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=n;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function i(o){let s=o;return Dt.is(s)&&(xn.is(s.annotationId)||Le.is(s.annotationId))}e.is=i})(Mt||(Mt={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Mr.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Lr||(Lr={}));(function(e){function t(r,i,o){let s={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&f.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Le.is(i.annotationId))}e.is=n})(Vn||(Vn={}));(function(e){function t(r,i,o,s){let a={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&f.string(i.oldUri)&&f.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Le.is(i.annotationId))}e.is=n})(Kn||(Kn={}));(function(e){function t(r,i,o){let s={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&f.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||f.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||f.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Le.is(i.annotationId))}e.is=n})(Gn||(Gn={}));(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>f.string(i.kind)?Vn.is(i)||Kn.is(i)||Gn.is(i):Lr.is(i)))}e.is=t})(to||(to={}));Yn=class{constructor(t,n){this.edits=t,this.changeAnnotations=n}insert(t,n,r){let i,o;if(r===void 0?i=Dt.insert(t,n):Le.is(r)?(o=r,i=Mt.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Mt.insert(t,n,o)),this.edits.push(i),o!==void 0)return o}replace(t,n,r){let i,o;if(r===void 0?i=Dt.replace(t,n):Le.is(r)?(o=r,i=Mt.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Mt.replace(t,n,o)),this.edits.push(i),o!==void 0)return o}delete(t,n){let r,i;if(n===void 0?r=Dt.del(t):Le.is(n)?(i=n,r=Mt.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Mt.del(t,i)),this.edits.push(r),i!==void 0)return i}add(t){this.edits.push(t)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},no=class{constructor(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(t,n){let r;if(Le.is(t)?r=t:(r=this.nextId(),n=t),this._annotations[r]!==void 0)throw new Error(`Id ${r} is already in use.`);if(n===void 0)throw new Error(`No annotation provided for id ${r}`);return this._annotations[r]=n,this._size++,r}nextId(){return this._counter++,this._counter.toString()}},Tc=class{constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new no(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(n=>{if(Lr.is(n)){let r=new Yn(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new Yn(t.changes[n]);this._textEditChanges[n]=r})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(t){if(Mr.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n={uri:t.uri,version:t.version},r=this._textEditChanges[n.uri];if(!r){let i=[],o={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(o),r=new Yn(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let n=this._textEditChanges[t];if(!n){let r=[];this._workspaceEdit.changes[t]=r,n=new Yn(r),this._textEditChanges[t]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new no,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;xn.is(n)||Le.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Vn.create(t,r):(s=Le.is(i)?i:this._changeAnnotations.manage(i),o=Vn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}renameFile(t,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let o;xn.is(r)||Le.is(r)?o=r:i=r;let s,a;if(o===void 0?s=Kn.create(t,n,i):(a=Le.is(o)?o:this._changeAnnotations.manage(o),s=Kn.create(t,n,i,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a}deleteFile(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;xn.is(n)||Le.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Gn.create(t,r):(s=Le.is(i)?i:this._changeAnnotations.manage(i),o=Gn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}};(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)}e.is=n})(Dc||(Dc={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&f.integer(i.version)}e.is=n})(wc||(wc={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&(i.version===null||f.integer(i.version))}e.is=n})(Mr||(Mr={}));(function(e){function t(r,i,o,s){return{uri:r,languageId:i,version:o,text:s}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&f.string(i.languageId)&&f.integer(i.version)&&f.string(i.text)}e.is=n})(Sc||(Sc={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(ro||(ro={}));(function(e){function t(n){let r=n;return f.objectLiteral(n)&&ro.is(r.kind)&&f.string(r.value)}e.is=t})(Qn||(Qn={}));(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(kc||(kc={}));(function(e){e.PlainText=1,e.Snippet=2})(Ac||(Ac={}));(function(e){e.Deprecated=1})(Ec||(Ec={}));(function(e){function t(r,i,o){return{newText:r,insert:i,replace:o}}e.create=t;function n(r){let i=r;return i&&f.string(i.newText)&&me.is(i.insert)&&me.is(i.replace)}e.is=n})(Nc||(Nc={}));(function(e){e.asIs=1,e.adjustIndentation=2})(qc||(qc={}));(function(e){function t(n){let r=n;return r&&(f.string(r.detail)||r.detail===void 0)&&(f.string(r.description)||r.description===void 0)}e.is=t})(Oc||(Oc={}));(function(e){function t(n){return{label:n}}e.create=t})(jc||(jc={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(Lc||(Lc={}));(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){let i=r;return f.string(i)||f.objectLiteral(i)&&f.string(i.language)&&f.string(i.value)}e.is=n})(Ir||(Ir={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(Qn.is(r.contents)||Ir.is(r.contents)||f.typedArray(r.contents,Ir.is))&&(n.range===void 0||me.is(n.range))}e.is=t})(Mc||(Mc={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Ic||(Ic={}));(function(e){function t(n,r,...i){let o={label:n};return f.defined(r)&&(o.documentation=r),f.defined(i)?o.parameters=i:o.parameters=[],o}e.create=t})(Fc||(Fc={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(Uc||(Uc={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(Wc||(Wc={}));(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Hc||(Hc={}));(function(e){e.Deprecated=1})(Bc||(Bc={}));(function(e){function t(n,r,i,o,s){let a={name:n,kind:r,location:{uri:o,range:i}};return s&&(a.containerName=s),a}e.create=t})(zc||(zc={}));(function(e){function t(n,r,i,o){return o!==void 0?{name:n,kind:r,location:{uri:i,range:o}}:{name:n,kind:r,location:{uri:i}}}e.create=t})($c||($c={}));(function(e){function t(r,i,o,s,a,c){let u={name:r,detail:i,kind:o,range:s,selectionRange:a};return c!==void 0&&(u.children=c),u}e.create=t;function n(r){let i=r;return i&&f.string(i.name)&&f.number(i.kind)&&me.is(i.range)&&me.is(i.selectionRange)&&(i.detail===void 0||f.string(i.detail))&&(i.deprecated===void 0||f.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(Yc||(Yc={}));(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Vc||(Vc={}));(function(e){e.Invoked=1,e.Automatic=2})(Fr||(Fr={}));(function(e){function t(r,i,o){let s={diagnostics:r};return i!=null&&(s.only=i),o!=null&&(s.triggerKind=o),s}e.create=t;function n(r){let i=r;return f.defined(i)&&f.typedArray(i.diagnostics,jr.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===Fr.Invoked||i.triggerKind===Fr.Automatic)}e.is=n})(Kc||(Kc={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):_n.is(i)?s.command=i:s.edit=i,a&&o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return i&&f.string(i.title)&&(i.diagnostics===void 0||f.typedArray(i.diagnostics,jr.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||_n.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||to.is(i.edit))}e.is=n})(Gc||(Gc={}));(function(e){function t(r,i){let o={range:r};return f.defined(i)&&(o.data=i),o}e.create=t;function n(r){let i=r;return f.defined(i)&&me.is(i.range)&&(f.undefined(i.command)||_n.is(i.command))}e.is=n})(Qc||(Qc={}));(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.uinteger(i.tabSize)&&f.boolean(i.insertSpaces)}e.is=n})(Jc||(Jc={}));(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){let i=r;return f.defined(i)&&me.is(i.range)&&(f.undefined(i.target)||f.string(i.target))}e.is=n})(Xc||(Xc={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&me.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(Zc||(Zc={}));(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(eu||(eu={}));(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(tu||(tu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(nu||(nu={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&me.is(i.range)&&f.string(i.text)}e.is=n})(ru||(ru={}));(function(e){function t(r,i,o){return{range:r,variableName:i,caseSensitiveLookup:o}}e.create=t;function n(r){let i=r;return i!=null&&me.is(i.range)&&f.boolean(i.caseSensitiveLookup)&&(f.string(i.variableName)||i.variableName===void 0)}e.is=n})(iu||(iu={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&me.is(i.range)&&(f.string(i.expression)||i.expression===void 0)}e.is=n})(ou||(ou={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&me.is(r.stoppedLocation)}e.is=n})(su||(su={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(io||(io={}));(function(e){function t(r){return{value:r}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&(i.tooltip===void 0||f.string(i.tooltip)||Qn.is(i.tooltip))&&(i.location===void 0||Or.is(i.location))&&(i.command===void 0||_n.is(i.command))}e.is=n})(oo||(oo={}));(function(e){function t(r,i,o){let s={position:r,label:i};return o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&ot.is(i.position)&&(f.string(i.label)||f.typedArray(i.label,oo.is))&&(i.kind===void 0||io.is(i.kind))&&i.textEdits===void 0||f.typedArray(i.textEdits,Dt.is)&&(i.tooltip===void 0||f.string(i.tooltip)||Qn.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(au||(au={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(cu||(cu={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(uu||(uu={}));(function(e){function t(n){return{items:n}}e.create=t})(lu||(lu={}));(function(e){e.Invoked=0,e.Automatic=1})(pu||(pu={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(du||(du={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(fu||(fu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&Xi.is(r.uri)&&f.string(r.name)}e.is=t})(mu||(mu={}));VC=[`
|
|
66
66
|
`,`\r
|
|
67
67
|
`,"\r"];(function(e){function t(o,s,a,c){return new yu(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,g)=>{let b=d.range.start.line-g.range.start.line;return b===0?d.range.start.character-g.range.start.character:b}),u=a.length;for(let d=c.length-1;d>=0;d--){let g=c[d],b=o.offsetAt(g.range.start),h=o.offsetAt(g.range.end);if(h<=u)a=a.substring(0,b)+g.newText+a.substring(h,a.length);else throw new Error("Overlapping edit");u=b}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),u=o.slice(a);i(c,s),i(u,s);let d=0,g=0,b=0;for(;d<c.length&&g<u.length;)s(c[d],u[g])<=0?o[b++]=c[d++]:o[b++]=u[g++];for(;d<c.length;)o[b++]=c[d++];for(;g<u.length;)o[b++]=u[g++];return o}})(gu||(gu={}));yu=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 ot.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 ot.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(h){return typeof h<"u"}e.defined=n;function r(h){return typeof h>"u"}e.undefined=r;function i(h){return h===!0||h===!1}e.boolean=i;function o(h){return t.call(h)==="[object String]"}e.string=o;function s(h){return t.call(h)==="[object Number]"}e.number=s;function a(h,D,I){return t.call(h)==="[object Number]"&&D<=h&&h<=I}e.numberRange=a;function c(h){return t.call(h)==="[object Number]"&&-2147483648<=h&&h<=2147483647}e.integer=c;function u(h){return t.call(h)==="[object Number]"&&0<=h&&h<=2147483647}e.uinteger=u;function d(h){return t.call(h)==="[object Function]"}e.func=d;function g(h){return h!==null&&typeof h=="object"}e.objectLiteral=g;function b(h,D){return Array.isArray(h)&&h.every(D)}e.typedArray=b})(f||(f={}))});var ue=R(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ProtocolNotificationType=Ke.ProtocolNotificationType0=Ke.ProtocolRequestType=Ke.ProtocolRequestType0=Ke.RegistrationType=Ke.MessageDirection=void 0;var Jn=Pn(),lf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(lf||(Ke.MessageDirection=lf={}));var hu=class{constructor(t){this.method=t}};Ke.RegistrationType=hu;var bu=class extends Jn.RequestType0{constructor(t){super(t)}};Ke.ProtocolRequestType0=bu;var vu=class extends Jn.RequestType{constructor(t){super(t,Jn.ParameterStructures.byName)}};Ke.ProtocolRequestType=vu;var Pu=class extends Jn.NotificationType0{constructor(t){super(t)}};Ke.ProtocolNotificationType0=Pu;var xu=class extends Jn.NotificationType{constructor(t){super(t,Jn.ParameterStructures.byName)}};Ke.ProtocolNotificationType=xu});var ao=R(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.objectLiteral=_e.typedArray=_e.stringArray=_e.array=_e.func=_e.error=_e.number=_e.string=_e.boolean=void 0;function $C(e){return e===!0||e===!1}_e.boolean=$C;function pf(e){return typeof e=="string"||e instanceof String}_e.string=pf;function YC(e){return typeof e=="number"||e instanceof Number}_e.number=YC;function VC(e){return e instanceof Error}_e.error=VC;function KC(e){return typeof e=="function"}_e.func=KC;function df(e){return Array.isArray(e)}_e.array=df;function GC(e){return df(e)&&e.every(t=>pf(t))}_e.stringArray=GC;function QC(e,t){return Array.isArray(e)&&e.every(t)}_e.typedArray=QC;function JC(e){return e!==null&&typeof e=="object"}_e.objectLiteral=JC});var gf=R(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.ImplementationRequest=void 0;var ff=ue(),mf;(function(e){e.method="textDocument/implementation",e.messageDirection=ff.MessageDirection.clientToServer,e.type=new ff.ProtocolRequestType(e.method)})(mf||(co.ImplementationRequest=mf={}))});var bf=R(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.TypeDefinitionRequest=void 0;var yf=ue(),hf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=yf.MessageDirection.clientToServer,e.type=new yf.ProtocolRequestType(e.method)})(hf||(uo.TypeDefinitionRequest=hf={}))});var xf=R(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.DidChangeWorkspaceFoldersNotification=Xn.WorkspaceFoldersRequest=void 0;var lo=ue(),vf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=lo.MessageDirection.serverToClient,e.type=new lo.ProtocolRequestType0(e.method)})(vf||(Xn.WorkspaceFoldersRequest=vf={}));var Pf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=lo.MessageDirection.clientToServer,e.type=new lo.ProtocolNotificationType(e.method)})(Pf||(Xn.DidChangeWorkspaceFoldersNotification=Pf={}))});var Rf=R(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.ConfigurationRequest=void 0;var _f=ue(),Cf;(function(e){e.method="workspace/configuration",e.messageDirection=_f.MessageDirection.serverToClient,e.type=new _f.ProtocolRequestType(e.method)})(Cf||(po.ConfigurationRequest=Cf={}))});var wf=R(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.ColorPresentationRequest=Zn.DocumentColorRequest=void 0;var fo=ue(),Tf;(function(e){e.method="textDocument/documentColor",e.messageDirection=fo.MessageDirection.clientToServer,e.type=new fo.ProtocolRequestType(e.method)})(Tf||(Zn.DocumentColorRequest=Tf={}));var Df;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=fo.MessageDirection.clientToServer,e.type=new fo.ProtocolRequestType(e.method)})(Df||(Zn.ColorPresentationRequest=Df={}))});var Af=R(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.FoldingRangeRefreshRequest=er.FoldingRangeRequest=void 0;var mo=ue(),Sf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=mo.MessageDirection.clientToServer,e.type=new mo.ProtocolRequestType(e.method)})(Sf||(er.FoldingRangeRequest=Sf={}));var kf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=mo.MessageDirection.serverToClient,e.type=new mo.ProtocolRequestType0(e.method)})(kf||(er.FoldingRangeRefreshRequest=kf={}))});var qf=R(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.DeclarationRequest=void 0;var Ef=ue(),Nf;(function(e){e.method="textDocument/declaration",e.messageDirection=Ef.MessageDirection.clientToServer,e.type=new Ef.ProtocolRequestType(e.method)})(Nf||(go.DeclarationRequest=Nf={}))});var Lf=R(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.SelectionRangeRequest=void 0;var Of=ue(),jf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Of.MessageDirection.clientToServer,e.type=new Of.ProtocolRequestType(e.method)})(jf||(yo.SelectionRangeRequest=jf={}))});var Uf=R(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.WorkDoneProgressCancelNotification=Zt.WorkDoneProgressCreateRequest=Zt.WorkDoneProgress=void 0;var XC=Pn(),ho=ue(),Mf;(function(e){e.type=new XC.ProgressType;function t(n){return n===e.type}e.is=t})(Mf||(Zt.WorkDoneProgress=Mf={}));var If;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=ho.MessageDirection.serverToClient,e.type=new ho.ProtocolRequestType(e.method)})(If||(Zt.WorkDoneProgressCreateRequest=If={}));var Ff;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=ho.MessageDirection.clientToServer,e.type=new ho.ProtocolNotificationType(e.method)})(Ff||(Zt.WorkDoneProgressCancelNotification=Ff={}))});var zf=R(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.CallHierarchyOutgoingCallsRequest=en.CallHierarchyIncomingCallsRequest=en.CallHierarchyPrepareRequest=void 0;var tr=ue(),Wf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Wf||(en.CallHierarchyPrepareRequest=Wf={}));var Hf;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Hf||(en.CallHierarchyIncomingCallsRequest=Hf={}));var Bf;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Bf||(en.CallHierarchyOutgoingCallsRequest=Bf={}))});var Qf=R(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.SemanticTokensRefreshRequest=Ge.SemanticTokensRangeRequest=Ge.SemanticTokensDeltaRequest=Ge.SemanticTokensRequest=Ge.SemanticTokensRegistrationType=Ge.TokenFormat=void 0;var It=ue(),$f;(function(e){e.Relative="relative"})($f||(Ge.TokenFormat=$f={}));var Ur;(function(e){e.method="textDocument/semanticTokens",e.type=new It.RegistrationType(e.method)})(Ur||(Ge.SemanticTokensRegistrationType=Ur={}));var Yf;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=It.MessageDirection.clientToServer,e.type=new It.ProtocolRequestType(e.method),e.registrationMethod=Ur.method})(Yf||(Ge.SemanticTokensRequest=Yf={}));var Vf;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=It.MessageDirection.clientToServer,e.type=new It.ProtocolRequestType(e.method),e.registrationMethod=Ur.method})(Vf||(Ge.SemanticTokensDeltaRequest=Vf={}));var Kf;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=It.MessageDirection.clientToServer,e.type=new It.ProtocolRequestType(e.method),e.registrationMethod=Ur.method})(Kf||(Ge.SemanticTokensRangeRequest=Kf={}));var Gf;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=It.MessageDirection.serverToClient,e.type=new It.ProtocolRequestType0(e.method)})(Gf||(Ge.SemanticTokensRefreshRequest=Gf={}))});var Zf=R(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.ShowDocumentRequest=void 0;var Jf=ue(),Xf;(function(e){e.method="window/showDocument",e.messageDirection=Jf.MessageDirection.serverToClient,e.type=new Jf.ProtocolRequestType(e.method)})(Xf||(bo.ShowDocumentRequest=Xf={}))});var nm=R(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.LinkedEditingRangeRequest=void 0;var em=ue(),tm;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=em.MessageDirection.clientToServer,e.type=new em.ProtocolRequestType(e.method)})(tm||(vo.LinkedEditingRangeRequest=tm={}))});var lm=R(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.WillDeleteFilesRequest=Fe.DidDeleteFilesNotification=Fe.DidRenameFilesNotification=Fe.WillRenameFilesRequest=Fe.DidCreateFilesNotification=Fe.WillCreateFilesRequest=Fe.FileOperationPatternKind=void 0;var st=ue(),rm;(function(e){e.file="file",e.folder="folder"})(rm||(Fe.FileOperationPatternKind=rm={}));var im;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=st.MessageDirection.clientToServer,e.type=new st.ProtocolRequestType(e.method)})(im||(Fe.WillCreateFilesRequest=im={}));var om;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=st.MessageDirection.clientToServer,e.type=new st.ProtocolNotificationType(e.method)})(om||(Fe.DidCreateFilesNotification=om={}));var sm;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=st.MessageDirection.clientToServer,e.type=new st.ProtocolRequestType(e.method)})(sm||(Fe.WillRenameFilesRequest=sm={}));var am;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=st.MessageDirection.clientToServer,e.type=new st.ProtocolNotificationType(e.method)})(am||(Fe.DidRenameFilesNotification=am={}));var cm;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=st.MessageDirection.clientToServer,e.type=new st.ProtocolNotificationType(e.method)})(cm||(Fe.DidDeleteFilesNotification=cm={}));var um;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=st.MessageDirection.clientToServer,e.type=new st.ProtocolRequestType(e.method)})(um||(Fe.WillDeleteFilesRequest=um={}))});var gm=R(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.MonikerRequest=tn.MonikerKind=tn.UniquenessLevel=void 0;var pm=ue(),dm;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(dm||(tn.UniquenessLevel=dm={}));var fm;(function(e){e.$import="import",e.$export="export",e.local="local"})(fm||(tn.MonikerKind=fm={}));var mm;(function(e){e.method="textDocument/moniker",e.messageDirection=pm.MessageDirection.clientToServer,e.type=new pm.ProtocolRequestType(e.method)})(mm||(tn.MonikerRequest=mm={}))});var vm=R(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.TypeHierarchySubtypesRequest=nn.TypeHierarchySupertypesRequest=nn.TypeHierarchyPrepareRequest=void 0;var nr=ue(),ym;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method)})(ym||(nn.TypeHierarchyPrepareRequest=ym={}));var hm;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method)})(hm||(nn.TypeHierarchySupertypesRequest=hm={}));var bm;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method)})(bm||(nn.TypeHierarchySubtypesRequest=bm={}))});var _m=R(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.InlineValueRefreshRequest=rr.InlineValueRequest=void 0;var Po=ue(),Pm;(function(e){e.method="textDocument/inlineValue",e.messageDirection=Po.MessageDirection.clientToServer,e.type=new Po.ProtocolRequestType(e.method)})(Pm||(rr.InlineValueRequest=Pm={}));var xm;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=Po.MessageDirection.serverToClient,e.type=new Po.ProtocolRequestType0(e.method)})(xm||(rr.InlineValueRefreshRequest=xm={}))});var Dm=R(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.InlayHintRefreshRequest=rn.InlayHintResolveRequest=rn.InlayHintRequest=void 0;var ir=ue(),Cm;(function(e){e.method="textDocument/inlayHint",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(Cm||(rn.InlayHintRequest=Cm={}));var Rm;(function(e){e.method="inlayHint/resolve",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(Rm||(rn.InlayHintResolveRequest=Rm={}));var Tm;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=ir.MessageDirection.serverToClient,e.type=new ir.ProtocolRequestType0(e.method)})(Tm||(rn.InlayHintRefreshRequest=Tm={}))});var qm=R(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.DiagnosticRefreshRequest=at.WorkspaceDiagnosticRequest=at.DocumentDiagnosticRequest=at.DocumentDiagnosticReportKind=at.DiagnosticServerCancellationData=void 0;var Nm=Pn(),ZC=ao(),or=ue(),wm;(function(e){function t(n){let r=n;return r&&ZC.boolean(r.retriggerRequest)}e.is=t})(wm||(at.DiagnosticServerCancellationData=wm={}));var Sm;(function(e){e.Full="full",e.Unchanged="unchanged"})(Sm||(at.DocumentDiagnosticReportKind=Sm={}));var km;(function(e){e.method="textDocument/diagnostic",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method),e.partialResult=new Nm.ProgressType})(km||(at.DocumentDiagnosticRequest=km={}));var Am;(function(e){e.method="workspace/diagnostic",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method),e.partialResult=new Nm.ProgressType})(Am||(at.WorkspaceDiagnosticRequest=Am={}));var Em;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=or.MessageDirection.serverToClient,e.type=new or.ProtocolRequestType0(e.method)})(Em||(at.DiagnosticRefreshRequest=Em={}))});var Um=R(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.DidCloseNotebookDocumentNotification=ge.DidSaveNotebookDocumentNotification=ge.DidChangeNotebookDocumentNotification=ge.NotebookCellArrayChange=ge.DidOpenNotebookDocumentNotification=ge.NotebookDocumentSyncRegistrationType=ge.NotebookDocument=ge.NotebookCell=ge.ExecutionSummary=ge.NotebookCellKind=void 0;var Wr=(so(),ii(oo)),ht=ao(),wt=ue(),_u;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(_u||(ge.NotebookCellKind=_u={}));var Cu;(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 ht.objectLiteral(o)&&Wr.uinteger.is(o.executionOrder)&&(o.success===void 0||ht.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})(Cu||(ge.ExecutionSummary=Cu={}));var xo;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ht.objectLiteral(s)&&_u.is(s.kind)&&Wr.DocumentUri.is(s.document)&&(s.metadata===void 0||ht.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)&&!Cu.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 u=0;u<o.length;u++)if(!i(o[u],s[u]))return!1}if(ht.objectLiteral(o)&&ht.objectLiteral(s)){let u=Object.keys(o),d=Object.keys(s);if(u.length!==d.length||(u.sort(),d.sort(),!i(u,d)))return!1;for(let g=0;g<u.length;g++){let b=u[g];if(!i(o[b],s[b]))return!1}}return!0}})(xo||(ge.NotebookCell=xo={}));var Om;(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 ht.objectLiteral(i)&&ht.string(i.uri)&&Wr.integer.is(i.version)&&ht.typedArray(i.cells,xo.is)}e.is=n})(Om||(ge.NotebookDocument=Om={}));var sr;(function(e){e.method="notebookDocument/sync",e.messageDirection=wt.MessageDirection.clientToServer,e.type=new wt.RegistrationType(e.method)})(sr||(ge.NotebookDocumentSyncRegistrationType=sr={}));var jm;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=wt.MessageDirection.clientToServer,e.type=new wt.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(jm||(ge.DidOpenNotebookDocumentNotification=jm={}));var Lm;(function(e){function t(r){let i=r;return ht.objectLiteral(i)&&Wr.uinteger.is(i.start)&&Wr.uinteger.is(i.deleteCount)&&(i.cells===void 0||ht.typedArray(i.cells,xo.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})(Lm||(ge.NotebookCellArrayChange=Lm={}));var Mm;(function(e){e.method="notebookDocument/didChange",e.messageDirection=wt.MessageDirection.clientToServer,e.type=new wt.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Mm||(ge.DidChangeNotebookDocumentNotification=Mm={}));var Im;(function(e){e.method="notebookDocument/didSave",e.messageDirection=wt.MessageDirection.clientToServer,e.type=new wt.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Im||(ge.DidSaveNotebookDocumentNotification=Im={}));var Fm;(function(e){e.method="notebookDocument/didClose",e.messageDirection=wt.MessageDirection.clientToServer,e.type=new wt.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Fm||(ge.DidCloseNotebookDocumentNotification=Fm={}))});var Bm=R(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.InlineCompletionRequest=void 0;var Wm=ue(),Hm;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Wm.MessageDirection.clientToServer,e.type=new Wm.ProtocolRequestType(e.method)})(Hm||(_o.InlineCompletionRequest=Hm={}))});var ny=R(l=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});l.WorkspaceSymbolRequest=l.CodeActionResolveRequest=l.CodeActionRequest=l.DocumentSymbolRequest=l.DocumentHighlightRequest=l.ReferencesRequest=l.DefinitionRequest=l.SignatureHelpRequest=l.SignatureHelpTriggerKind=l.HoverRequest=l.CompletionResolveRequest=l.CompletionRequest=l.CompletionTriggerKind=l.PublishDiagnosticsNotification=l.WatchKind=l.RelativePattern=l.FileChangeType=l.DidChangeWatchedFilesNotification=l.WillSaveTextDocumentWaitUntilRequest=l.WillSaveTextDocumentNotification=l.TextDocumentSaveReason=l.DidSaveTextDocumentNotification=l.DidCloseTextDocumentNotification=l.DidChangeTextDocumentNotification=l.TextDocumentContentChangeEvent=l.DidOpenTextDocumentNotification=l.TextDocumentSyncKind=l.TelemetryEventNotification=l.LogMessageNotification=l.ShowMessageRequest=l.ShowMessageNotification=l.MessageType=l.DidChangeConfigurationNotification=l.ExitNotification=l.ShutdownRequest=l.InitializedNotification=l.InitializeErrorCodes=l.InitializeRequest=l.WorkDoneProgressOptions=l.TextDocumentRegistrationOptions=l.StaticRegistrationOptions=l.PositionEncodingKind=l.FailureHandlingKind=l.ResourceOperationKind=l.UnregistrationRequest=l.RegistrationRequest=l.DocumentSelector=l.NotebookCellTextDocumentFilter=l.NotebookDocumentFilter=l.TextDocumentFilter=void 0;l.MonikerRequest=l.MonikerKind=l.UniquenessLevel=l.WillDeleteFilesRequest=l.DidDeleteFilesNotification=l.WillRenameFilesRequest=l.DidRenameFilesNotification=l.WillCreateFilesRequest=l.DidCreateFilesNotification=l.FileOperationPatternKind=l.LinkedEditingRangeRequest=l.ShowDocumentRequest=l.SemanticTokensRegistrationType=l.SemanticTokensRefreshRequest=l.SemanticTokensRangeRequest=l.SemanticTokensDeltaRequest=l.SemanticTokensRequest=l.TokenFormat=l.CallHierarchyPrepareRequest=l.CallHierarchyOutgoingCallsRequest=l.CallHierarchyIncomingCallsRequest=l.WorkDoneProgressCancelNotification=l.WorkDoneProgressCreateRequest=l.WorkDoneProgress=l.SelectionRangeRequest=l.DeclarationRequest=l.FoldingRangeRefreshRequest=l.FoldingRangeRequest=l.ColorPresentationRequest=l.DocumentColorRequest=l.ConfigurationRequest=l.DidChangeWorkspaceFoldersNotification=l.WorkspaceFoldersRequest=l.TypeDefinitionRequest=l.ImplementationRequest=l.ApplyWorkspaceEditRequest=l.ExecuteCommandRequest=l.PrepareRenameRequest=l.RenameRequest=l.PrepareSupportDefaultBehavior=l.DocumentOnTypeFormattingRequest=l.DocumentRangesFormattingRequest=l.DocumentRangeFormattingRequest=l.DocumentFormattingRequest=l.DocumentLinkResolveRequest=l.DocumentLinkRequest=l.CodeLensRefreshRequest=l.CodeLensResolveRequest=l.CodeLensRequest=l.WorkspaceSymbolResolveRequest=void 0;l.InlineCompletionRequest=l.DidCloseNotebookDocumentNotification=l.DidSaveNotebookDocumentNotification=l.DidChangeNotebookDocumentNotification=l.NotebookCellArrayChange=l.DidOpenNotebookDocumentNotification=l.NotebookDocumentSyncRegistrationType=l.NotebookDocument=l.NotebookCell=l.ExecutionSummary=l.NotebookCellKind=l.DiagnosticRefreshRequest=l.WorkspaceDiagnosticRequest=l.DocumentDiagnosticRequest=l.DocumentDiagnosticReportKind=l.DiagnosticServerCancellationData=l.InlayHintRefreshRequest=l.InlayHintResolveRequest=l.InlayHintRequest=l.InlineValueRefreshRequest=l.InlineValueRequest=l.TypeHierarchySupertypesRequest=l.TypeHierarchySubtypesRequest=l.TypeHierarchyPrepareRequest=void 0;var w=ue(),zm=(so(),ii(oo)),Ae=ao(),eR=gf();Object.defineProperty(l,"ImplementationRequest",{enumerable:!0,get:function(){return eR.ImplementationRequest}});var tR=bf();Object.defineProperty(l,"TypeDefinitionRequest",{enumerable:!0,get:function(){return tR.TypeDefinitionRequest}});var Xg=xf();Object.defineProperty(l,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return Xg.WorkspaceFoldersRequest}});Object.defineProperty(l,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return Xg.DidChangeWorkspaceFoldersNotification}});var nR=Rf();Object.defineProperty(l,"ConfigurationRequest",{enumerable:!0,get:function(){return nR.ConfigurationRequest}});var Zg=wf();Object.defineProperty(l,"DocumentColorRequest",{enumerable:!0,get:function(){return Zg.DocumentColorRequest}});Object.defineProperty(l,"ColorPresentationRequest",{enumerable:!0,get:function(){return Zg.ColorPresentationRequest}});var ey=Af();Object.defineProperty(l,"FoldingRangeRequest",{enumerable:!0,get:function(){return ey.FoldingRangeRequest}});Object.defineProperty(l,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return ey.FoldingRangeRefreshRequest}});var rR=qf();Object.defineProperty(l,"DeclarationRequest",{enumerable:!0,get:function(){return rR.DeclarationRequest}});var iR=Lf();Object.defineProperty(l,"SelectionRangeRequest",{enumerable:!0,get:function(){return iR.SelectionRangeRequest}});var Su=Uf();Object.defineProperty(l,"WorkDoneProgress",{enumerable:!0,get:function(){return Su.WorkDoneProgress}});Object.defineProperty(l,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Su.WorkDoneProgressCreateRequest}});Object.defineProperty(l,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Su.WorkDoneProgressCancelNotification}});var ku=zf();Object.defineProperty(l,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return ku.CallHierarchyIncomingCallsRequest}});Object.defineProperty(l,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return ku.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(l,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return ku.CallHierarchyPrepareRequest}});var ar=Qf();Object.defineProperty(l,"TokenFormat",{enumerable:!0,get:function(){return ar.TokenFormat}});Object.defineProperty(l,"SemanticTokensRequest",{enumerable:!0,get:function(){return ar.SemanticTokensRequest}});Object.defineProperty(l,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ar.SemanticTokensDeltaRequest}});Object.defineProperty(l,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ar.SemanticTokensRangeRequest}});Object.defineProperty(l,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ar.SemanticTokensRefreshRequest}});Object.defineProperty(l,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ar.SemanticTokensRegistrationType}});var oR=Zf();Object.defineProperty(l,"ShowDocumentRequest",{enumerable:!0,get:function(){return oR.ShowDocumentRequest}});var sR=nm();Object.defineProperty(l,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return sR.LinkedEditingRangeRequest}});var Cn=lm();Object.defineProperty(l,"FileOperationPatternKind",{enumerable:!0,get:function(){return Cn.FileOperationPatternKind}});Object.defineProperty(l,"DidCreateFilesNotification",{enumerable:!0,get:function(){return Cn.DidCreateFilesNotification}});Object.defineProperty(l,"WillCreateFilesRequest",{enumerable:!0,get:function(){return Cn.WillCreateFilesRequest}});Object.defineProperty(l,"DidRenameFilesNotification",{enumerable:!0,get:function(){return Cn.DidRenameFilesNotification}});Object.defineProperty(l,"WillRenameFilesRequest",{enumerable:!0,get:function(){return Cn.WillRenameFilesRequest}});Object.defineProperty(l,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return Cn.DidDeleteFilesNotification}});Object.defineProperty(l,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return Cn.WillDeleteFilesRequest}});var Au=gm();Object.defineProperty(l,"UniquenessLevel",{enumerable:!0,get:function(){return Au.UniquenessLevel}});Object.defineProperty(l,"MonikerKind",{enumerable:!0,get:function(){return Au.MonikerKind}});Object.defineProperty(l,"MonikerRequest",{enumerable:!0,get:function(){return Au.MonikerRequest}});var Eu=vm();Object.defineProperty(l,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Eu.TypeHierarchyPrepareRequest}});Object.defineProperty(l,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Eu.TypeHierarchySubtypesRequest}});Object.defineProperty(l,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Eu.TypeHierarchySupertypesRequest}});var ty=_m();Object.defineProperty(l,"InlineValueRequest",{enumerable:!0,get:function(){return ty.InlineValueRequest}});Object.defineProperty(l,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return ty.InlineValueRefreshRequest}});var Nu=Dm();Object.defineProperty(l,"InlayHintRequest",{enumerable:!0,get:function(){return Nu.InlayHintRequest}});Object.defineProperty(l,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Nu.InlayHintResolveRequest}});Object.defineProperty(l,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Nu.InlayHintRefreshRequest}});var Hr=qm();Object.defineProperty(l,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Hr.DiagnosticServerCancellationData}});Object.defineProperty(l,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Hr.DocumentDiagnosticReportKind}});Object.defineProperty(l,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Hr.DocumentDiagnosticRequest}});Object.defineProperty(l,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Hr.WorkspaceDiagnosticRequest}});Object.defineProperty(l,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Hr.DiagnosticRefreshRequest}});var St=Um();Object.defineProperty(l,"NotebookCellKind",{enumerable:!0,get:function(){return St.NotebookCellKind}});Object.defineProperty(l,"ExecutionSummary",{enumerable:!0,get:function(){return St.ExecutionSummary}});Object.defineProperty(l,"NotebookCell",{enumerable:!0,get:function(){return St.NotebookCell}});Object.defineProperty(l,"NotebookDocument",{enumerable:!0,get:function(){return St.NotebookDocument}});Object.defineProperty(l,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return St.NotebookDocumentSyncRegistrationType}});Object.defineProperty(l,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return St.DidOpenNotebookDocumentNotification}});Object.defineProperty(l,"NotebookCellArrayChange",{enumerable:!0,get:function(){return St.NotebookCellArrayChange}});Object.defineProperty(l,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return St.DidChangeNotebookDocumentNotification}});Object.defineProperty(l,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return St.DidSaveNotebookDocumentNotification}});Object.defineProperty(l,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return St.DidCloseNotebookDocumentNotification}});var aR=Bm();Object.defineProperty(l,"InlineCompletionRequest",{enumerable:!0,get:function(){return aR.InlineCompletionRequest}});var Ru;(function(e){function t(n){let r=n;return Ae.string(r)||Ae.string(r.language)||Ae.string(r.scheme)||Ae.string(r.pattern)}e.is=t})(Ru||(l.TextDocumentFilter=Ru={}));var Tu;(function(e){function t(n){let r=n;return Ae.objectLiteral(r)&&(Ae.string(r.notebookType)||Ae.string(r.scheme)||Ae.string(r.pattern))}e.is=t})(Tu||(l.NotebookDocumentFilter=Tu={}));var Du;(function(e){function t(n){let r=n;return Ae.objectLiteral(r)&&(Ae.string(r.notebook)||Tu.is(r.notebook))&&(r.language===void 0||Ae.string(r.language))}e.is=t})(Du||(l.NotebookCellTextDocumentFilter=Du={}));var wu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Ae.string(r)&&!Ru.is(r)&&!Du.is(r))return!1;return!0}e.is=t})(wu||(l.DocumentSelector=wu={}));var $m;(function(e){e.method="client/registerCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})($m||(l.RegistrationRequest=$m={}));var Ym;(function(e){e.method="client/unregisterCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(Ym||(l.UnregistrationRequest=Ym={}));var Vm;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(Vm||(l.ResourceOperationKind=Vm={}));var Km;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(Km||(l.FailureHandlingKind=Km={}));var Gm;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(Gm||(l.PositionEncodingKind=Gm={}));var Qm;(function(e){function t(n){let r=n;return r&&Ae.string(r.id)&&r.id.length>0}e.hasId=t})(Qm||(l.StaticRegistrationOptions=Qm={}));var Jm;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||wu.is(r.documentSelector))}e.is=t})(Jm||(l.TextDocumentRegistrationOptions=Jm={}));var Xm;(function(e){function t(r){let i=r;return Ae.objectLiteral(i)&&(i.workDoneProgress===void 0||Ae.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&Ae.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(Xm||(l.WorkDoneProgressOptions=Xm={}));var Zm;(function(e){e.method="initialize",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Zm||(l.InitializeRequest=Zm={}));var eg;(function(e){e.unknownProtocolVersion=1})(eg||(l.InitializeErrorCodes=eg={}));var tg;(function(e){e.method="initialized",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(tg||(l.InitializedNotification=tg={}));var ng;(function(e){e.method="shutdown",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType0(e.method)})(ng||(l.ShutdownRequest=ng={}));var rg;(function(e){e.method="exit",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType0(e.method)})(rg||(l.ExitNotification=rg={}));var ig;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(ig||(l.DidChangeConfigurationNotification=ig={}));var og;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(og||(l.MessageType=og={}));var sg;(function(e){e.method="window/showMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(sg||(l.ShowMessageNotification=sg={}));var ag;(function(e){e.method="window/showMessageRequest",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(ag||(l.ShowMessageRequest=ag={}));var cg;(function(e){e.method="window/logMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(cg||(l.LogMessageNotification=cg={}));var ug;(function(e){e.method="telemetry/event",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(ug||(l.TelemetryEventNotification=ug={}));var lg;(function(e){e.None=0,e.Full=1,e.Incremental=2})(lg||(l.TextDocumentSyncKind=lg={}));var pg;(function(e){e.method="textDocument/didOpen",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(pg||(l.DidOpenTextDocumentNotification=pg={}));var dg;(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})(dg||(l.TextDocumentContentChangeEvent=dg={}));var fg;(function(e){e.method="textDocument/didChange",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(fg||(l.DidChangeTextDocumentNotification=fg={}));var mg;(function(e){e.method="textDocument/didClose",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(mg||(l.DidCloseTextDocumentNotification=mg={}));var gg;(function(e){e.method="textDocument/didSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(gg||(l.DidSaveTextDocumentNotification=gg={}));var yg;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(yg||(l.TextDocumentSaveReason=yg={}));var hg;(function(e){e.method="textDocument/willSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(hg||(l.WillSaveTextDocumentNotification=hg={}));var bg;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(bg||(l.WillSaveTextDocumentWaitUntilRequest=bg={}));var vg;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(vg||(l.DidChangeWatchedFilesNotification=vg={}));var Pg;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(Pg||(l.FileChangeType=Pg={}));var xg;(function(e){function t(n){let r=n;return Ae.objectLiteral(r)&&(zm.URI.is(r.baseUri)||zm.WorkspaceFolder.is(r.baseUri))&&Ae.string(r.pattern)}e.is=t})(xg||(l.RelativePattern=xg={}));var _g;(function(e){e.Create=1,e.Change=2,e.Delete=4})(_g||(l.WatchKind=_g={}));var Cg;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Cg||(l.PublishDiagnosticsNotification=Cg={}));var Rg;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Rg||(l.CompletionTriggerKind=Rg={}));var Tg;(function(e){e.method="textDocument/completion",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Tg||(l.CompletionRequest=Tg={}));var Dg;(function(e){e.method="completionItem/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Dg||(l.CompletionResolveRequest=Dg={}));var wg;(function(e){e.method="textDocument/hover",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(wg||(l.HoverRequest=wg={}));var Sg;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Sg||(l.SignatureHelpTriggerKind=Sg={}));var kg;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(kg||(l.SignatureHelpRequest=kg={}));var Ag;(function(e){e.method="textDocument/definition",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Ag||(l.DefinitionRequest=Ag={}));var Eg;(function(e){e.method="textDocument/references",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Eg||(l.ReferencesRequest=Eg={}));var Ng;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Ng||(l.DocumentHighlightRequest=Ng={}));var qg;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(qg||(l.DocumentSymbolRequest=qg={}));var Og;(function(e){e.method="textDocument/codeAction",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Og||(l.CodeActionRequest=Og={}));var jg;(function(e){e.method="codeAction/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(jg||(l.CodeActionResolveRequest=jg={}));var Lg;(function(e){e.method="workspace/symbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Lg||(l.WorkspaceSymbolRequest=Lg={}));var Mg;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Mg||(l.WorkspaceSymbolResolveRequest=Mg={}));var Ig;(function(e){e.method="textDocument/codeLens",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Ig||(l.CodeLensRequest=Ig={}));var Fg;(function(e){e.method="codeLens/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Fg||(l.CodeLensResolveRequest=Fg={}));var Ug;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType0(e.method)})(Ug||(l.CodeLensRefreshRequest=Ug={}));var Wg;(function(e){e.method="textDocument/documentLink",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Wg||(l.DocumentLinkRequest=Wg={}));var Hg;(function(e){e.method="documentLink/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Hg||(l.DocumentLinkResolveRequest=Hg={}));var Bg;(function(e){e.method="textDocument/formatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Bg||(l.DocumentFormattingRequest=Bg={}));var zg;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(zg||(l.DocumentRangeFormattingRequest=zg={}));var $g;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})($g||(l.DocumentRangesFormattingRequest=$g={}));var Yg;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Yg||(l.DocumentOnTypeFormattingRequest=Yg={}));var Vg;(function(e){e.Identifier=1})(Vg||(l.PrepareSupportDefaultBehavior=Vg={}));var Kg;(function(e){e.method="textDocument/rename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Kg||(l.RenameRequest=Kg={}));var Gg;(function(e){e.method="textDocument/prepareRename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Gg||(l.PrepareRenameRequest=Gg={}));var Qg;(function(e){e.method="workspace/executeCommand",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Qg||(l.ExecuteCommandRequest=Qg={}));var Jg;(function(e){e.method="workspace/applyEdit",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType("workspace/applyEdit")})(Jg||(l.ApplyWorkspaceEditRequest=Jg={}))});var iy=R(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.createProtocolConnection=void 0;var ry=Pn();function cR(e,t,n,r){return ry.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,ry.createMessageConnection)(e,t,n,r)}Co.createProtocolConnection=cR});var sy=R(Qe=>{"use strict";var uR=Qe&&Qe.__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]})),Ro=Qe&&Qe.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&uR(t,e,n)};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.LSPErrorCodes=Qe.createProtocolConnection=void 0;Ro(Pn(),Qe);Ro((so(),ii(oo)),Qe);Ro(ue(),Qe);Ro(ny(),Qe);var lR=iy();Object.defineProperty(Qe,"createProtocolConnection",{enumerable:!0,get:function(){return lR.createProtocolConnection}});var oy;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(oy||(Qe.LSPErrorCodes=oy={}))});var Pe=R(kt=>{"use strict";var pR=kt&&kt.__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]})),ay=kt&&kt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&pR(t,e,n)};Object.defineProperty(kt,"__esModule",{value:!0});kt.createProtocolConnection=void 0;var dR=mc();ay(mc(),kt);ay(sy(),kt);function fR(e,t,n,r){return(0,dR.createMessageConnection)(e,t,n,r)}kt.createProtocolConnection=fR});var Ou=R(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.SemanticTokensBuilder=on.SemanticTokensDiff=on.SemanticTokensFeature=void 0;var To=Pe(),mR=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(To.SemanticTokensRefreshRequest.type),on:t=>{let n=To.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=To.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=To.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};on.SemanticTokensFeature=mR;var Do=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}]:[]}};on.SemanticTokensDiff=Do;var qu=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 Do(this._prevData,this._data).computeDiff()}:this.build()}};on.SemanticTokensBuilder=qu});var cy=R(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.InlineCompletionFeature=void 0;var gR=Pe(),yR=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(gR.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};wo.InlineCompletionFeature=yR});var Lu=R(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.TextDocuments=void 0;var Rn=Pe(),ju=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new Rn.Emitter,this._onDidOpen=new Rn.Emitter,this._onDidClose=new Rn.Emitter,this._onDidSave=new Rn.Emitter,this._onWillSave=new Rn.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=Rn.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}))})),Rn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};So.TextDocuments=ju});var Iu=R(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.NotebookDocuments=cr.NotebookSyncFeature=void 0;var ct=Pe(),uy=Lu(),hR=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(ct.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(ct.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(ct.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(ct.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};cr.NotebookSyncFeature=hR;var ko=class e{onDidOpenTextDocument(t){return this.openHandler=t,ct.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,ct.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,ct.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}};ko.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var Mu=class{constructor(t){t instanceof uy.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new uy.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new ct.Emitter,this._onDidChange=new ct.Emitter,this._onDidSave=new ct.Emitter,this._onDidClose=new ct.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 ko,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 u=[],d=[],g=[],b=[];if(c.cells!==void 0){let U=c.cells;if(U.structure!==void 0){let y=U.structure.array;if(o.cells.splice(y.start,y.deleteCount,...y.cells!==void 0?y.cells:[]),U.structure.didOpen!==void 0)for(let m of U.structure.didOpen)n.openTextDocument({textDocument:m}),u.push(m.uri);if(U.structure.didClose)for(let m of U.structure.didClose)n.closeTextDocument({textDocument:m}),d.push(m.uri)}if(U.data!==void 0){let y=new Map(U.data.map(m=>[m.document,m]));for(let m=0;m<=o.cells.length;m++){let S=y.get(o.cells[m].document);if(S!==void 0){let Y=o.cells.splice(m,1,S);if(g.push({old:Y[0],new:S}),y.delete(S.document),y.size===0)break}}}if(U.textContent!==void 0)for(let y of U.textContent)n.changeTextDocument({textDocument:y.document,contentChanges:y.changes}),b.push(y.document.uri)}this.updateCellMap(o);let h={notebookDocument:o};a&&(h.metadata={old:s,new:o.metadata});let D=[];for(let U of u)D.push(this.getNotebookCell(U));let I=[];for(let U of d)I.push(this.getNotebookCell(U));let Q=[];for(let U of b)Q.push(this.getNotebookCell(U));(D.length>0||I.length>0||g.length>0||Q.length>0)&&(h.cells={added:D,removed:I,changed:{data:g,textContent:Q}}),(h.metadata!==void 0||h.cells!==void 0)&&this._onDidChange.fire(h)})),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)}})),ct.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};cr.NotebookDocuments=Mu});var Fu=R(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.thenable=Ce.typedArray=Ce.stringArray=Ce.array=Ce.func=Ce.error=Ce.number=Ce.string=Ce.boolean=void 0;function bR(e){return e===!0||e===!1}Ce.boolean=bR;function ly(e){return typeof e=="string"||e instanceof String}Ce.string=ly;function vR(e){return typeof e=="number"||e instanceof Number}Ce.number=vR;function PR(e){return e instanceof Error}Ce.error=PR;function py(e){return typeof e=="function"}Ce.func=py;function dy(e){return Array.isArray(e)}Ce.array=dy;function xR(e){return dy(e)&&e.every(t=>ly(t))}Ce.stringArray=xR;function _R(e,t){return Array.isArray(e)&&e.every(t)}Ce.typedArray=_R;function CR(e){return e&&py(e.then)}Ce.thenable=CR});var Uu=R(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.generateUuid=ut.parse=ut.isUUID=ut.v4=ut.empty=void 0;var Br=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},zr=class e extends Br{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(""))}};zr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];zr._timeHighBits=["8","9","a","b"];ut.empty=new Br("00000000-0000-0000-0000-000000000000");function fy(){return new zr}ut.v4=fy;var RR=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function my(e){return RR.test(e)}ut.isUUID=my;function TR(e){if(!my(e))throw new Error("invalid uuid");return new Br(e)}ut.parse=TR;function DR(){return fy().asHex()}ut.generateUuid=DR});var gy=R(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.attachPartialResult=an.ProgressFeature=an.attachWorkDone=void 0;var sn=Pe(),wR=Uu(),Tn=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(sn.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(sn.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(sn.WorkDoneProgress.type,this._token,{kind:"end"})}};Tn.Instances=new Map;var Ao=class extends Tn{constructor(t,n){super(t,n),this._source=new sn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},$r=class{constructor(){}begin(){}report(){}done(){}},Eo=class extends $r{constructor(){super(),this._source=new sn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function SR(e,t){if(t===void 0||t.workDoneToken===void 0)return new $r;let n=t.workDoneToken;return delete t.workDoneToken,new Tn(e,n)}an.attachWorkDone=SR;var kR=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(sn.WorkDoneProgressCancelNotification.type,n=>{let r=Tn.Instances.get(n.token);(r instanceof Ao||r instanceof Eo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new $r:new Tn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,wR.generateUuid)();return this.connection.sendRequest(sn.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Ao(this.connection,t))}else return Promise.resolve(new Eo)}};an.ProgressFeature=kR;var Wu;(function(e){e.type=new sn.ProgressType})(Wu||(Wu={}));var Hu=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(Wu.type,this._token,t)}};function AR(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new Hu(e,n)}an.attachPartialResult=AR});var yy=R(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.ConfigurationFeature=void 0;var ER=Pe(),NR=Fu(),qR=e=>class extends e{getConfiguration(t){return t?NR.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(ER.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};No.ConfigurationFeature=qR});var hy=R(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.WorkspaceFoldersFeature=void 0;var qo=Pe(),OR=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new qo.Emitter,this.connection.onNotification(qo.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(qo.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(qo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Oo.WorkspaceFoldersFeature=OR});var by=R(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.CallHierarchyFeature=void 0;var Bu=Pe(),jR=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(Bu.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=Bu.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=Bu.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};jo.CallHierarchyFeature=jR});var vy=R(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.ShowDocumentFeature=void 0;var LR=Pe(),MR=e=>class extends e{showDocument(t){return this.connection.sendRequest(LR.ShowDocumentRequest.type,t)}};Lo.ShowDocumentFeature=MR});var Py=R(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.FileOperationsFeature=void 0;var ur=Pe(),IR=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(ur.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(ur.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(ur.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(ur.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(ur.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(ur.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};Mo.FileOperationsFeature=IR});var xy=R(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.LinkedEditingRangeFeature=void 0;var FR=Pe(),UR=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(FR.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};Io.LinkedEditingRangeFeature=UR});var _y=R(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.TypeHierarchyFeature=void 0;var zu=Pe(),WR=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(zu.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=zu.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=zu.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Fo.TypeHierarchyFeature=WR});var Ry=R(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.InlineValueFeature=void 0;var Cy=Pe(),HR=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(Cy.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(Cy.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Uo.InlineValueFeature=HR});var Dy=R(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.FoldingRangeFeature=void 0;var Ty=Pe(),BR=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(Ty.FoldingRangeRefreshRequest.type),on:t=>{let n=Ty.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Wo.FoldingRangeFeature=BR});var wy=R(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.InlayHintFeature=void 0;var $u=Pe(),zR=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest($u.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest($u.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest($u.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};Ho.InlayHintFeature=zR});var Sy=R(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.DiagnosticFeature=void 0;var Yr=Pe(),$R=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Yr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Yr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Yr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Yr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Yr.WorkspaceDiagnosticRequest.partialResult,n)))}}};Bo.DiagnosticFeature=$R});var ky=R(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.MonikerFeature=void 0;var YR=Pe(),VR=e=>class extends e{get moniker(){return{on:t=>{let n=YR.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};zo.MonikerFeature=VR});var zy=R(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.createConnection=X.combineFeatures=X.combineNotebooksFeatures=X.combineLanguagesFeatures=X.combineWorkspaceFeatures=X.combineWindowFeatures=X.combineClientFeatures=X.combineTracerFeatures=X.combineTelemetryFeatures=X.combineConsoleFeatures=X._NotebooksImpl=X._LanguagesImpl=X.BulkUnregistration=X.BulkRegistration=X.ErrorMessageTracker=void 0;var E=Pe(),lt=Fu(),Vu=Uu(),B=gy(),KR=yy(),GR=hy(),QR=by(),JR=Ou(),XR=vy(),ZR=Py(),eT=xy(),tT=_y(),nT=Ry(),rT=Dy(),iT=wy(),oT=Sy(),sT=Iu(),aT=ky();function Yu(e){if(e!==null)return e}var Ku=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)})}};X.ErrorMessageTracker=Ku;var $o=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(E.MessageType.Error,t)}warn(t){this.send(E.MessageType.Warning,t)}info(t){this.send(E.MessageType.Info,t)}log(t){this.send(E.MessageType.Log,t)}debug(t){this.send(E.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(E.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,E.RAL)().console.error("Sending log message failed")})}},Gu=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:E.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Yu)}showWarningMessage(t,...n){let r={type:E.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Yu)}showInformationMessage(t,...n){let r={type:E.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Yu)}},Ay=(0,XR.ShowDocumentFeature)((0,B.ProgressFeature)(Gu)),Ey;(function(e){function t(){return new Yo}e.create=t})(Ey||(X.BulkRegistration=Ey={}));var Yo=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=lt.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=Vu.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Ny;(function(e){function t(){return new Vr(void 0,[])}e.create=t})(Ny||(X.BulkUnregistration=Ny={}));var Vr=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(E.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=lt.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(E.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},Vo=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 Yo?this.registerMany(t):t instanceof Vr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=lt.string(n)?n:n.method,o=Vu.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(E.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=lt.string(t)?t:t.method,i=Vu.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(E.RegistrationRequest.type,o).then(s=>E.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(E.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(E.RegistrationRequest.type,n).then(()=>new Vr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},Qu=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(E.ApplyWorkspaceEditRequest.type,r)}},qy=(0,ZR.FileOperationsFeature)((0,GR.WorkspaceFoldersFeature)((0,KR.ConfigurationFeature)(Qu))),Ko=class{constructor(){this._trace=E.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!==E.Trace.Off&&this.connection.sendNotification(E.LogTraceNotification.type,{message:t,verbose:this._trace===E.Trace.Verbose?n:void 0}).catch(()=>{})}},Go=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(E.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},Qo=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)}};X._LanguagesImpl=Qo;var Oy=(0,rT.FoldingRangeFeature)((0,aT.MonikerFeature)((0,oT.DiagnosticFeature)((0,iT.InlayHintFeature)((0,nT.InlineValueFeature)((0,tT.TypeHierarchyFeature)((0,eT.LinkedEditingRangeFeature)((0,JR.SemanticTokensFeature)((0,QR.CallHierarchyFeature)(Qo))))))))),Jo=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)}};X._NotebooksImpl=Jo;var jy=(0,sT.NotebookSyncFeature)(Jo);function Ly(e,t){return function(n){return t(e(n))}}X.combineConsoleFeatures=Ly;function My(e,t){return function(n){return t(e(n))}}X.combineTelemetryFeatures=My;function Iy(e,t){return function(n){return t(e(n))}}X.combineTracerFeatures=Iy;function Fy(e,t){return function(n){return t(e(n))}}X.combineClientFeatures=Fy;function Uy(e,t){return function(n){return t(e(n))}}X.combineWindowFeatures=Uy;function Wy(e,t){return function(n){return t(e(n))}}X.combineWorkspaceFeatures=Wy;function Hy(e,t){return function(n){return t(e(n))}}X.combineLanguagesFeatures=Hy;function By(e,t){return function(n){return t(e(n))}}X.combineNotebooksFeatures=By;function cT(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Ly),tracer:n(e.tracer,t.tracer,Iy),telemetry:n(e.telemetry,t.telemetry,My),client:n(e.client,t.client,Fy),window:n(e.window,t.window,Uy),workspace:n(e.workspace,t.workspace,Wy),languages:n(e.languages,t.languages,Hy),notebooks:n(e.notebooks,t.notebooks,By)}}X.combineFeatures=cT;function uT(e,t,n){let r=n&&n.console?new(n.console($o)):new $o,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(Ko)):new Ko,s=n&&n.telemetry?new(n.telemetry(Go)):new Go,a=n&&n.client?new(n.client(Vo)):new Vo,c=n&&n.window?new(n.window(Ay)):new Ay,u=n&&n.workspace?new(n.workspace(qy)):new qy,d=n&&n.languages?new(n.languages(Oy)):new Oy,g=n&&n.notebooks?new(n.notebooks(jy)):new jy,b=[r,o,s,a,c,u,d,g];function h(y){return y instanceof Promise?y:lt.thenable(y)?new Promise((m,S)=>{y.then(Y=>m(Y),Y=>S(Y))}):Promise.resolve(y)}let D,I,Q,U={listen:()=>i.listen(),sendRequest:(y,...m)=>i.sendRequest(lt.string(y)?y:y.method,...m),onRequest:(y,m)=>i.onRequest(y,m),sendNotification:(y,m)=>{let S=lt.string(y)?y:y.method;return i.sendNotification(S,m)},onNotification:(y,m)=>i.onNotification(y,m),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:y=>(I=y,{dispose:()=>{I=void 0}}),onInitialized:y=>i.onNotification(E.InitializedNotification.type,y),onShutdown:y=>(D=y,{dispose:()=>{D=void 0}}),onExit:y=>(Q=y,{dispose:()=>{Q=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 u},get languages(){return d},get notebooks(){return g},onDidChangeConfiguration:y=>i.onNotification(E.DidChangeConfigurationNotification.type,y),onDidChangeWatchedFiles:y=>i.onNotification(E.DidChangeWatchedFilesNotification.type,y),__textDocumentSync:void 0,onDidOpenTextDocument:y=>i.onNotification(E.DidOpenTextDocumentNotification.type,y),onDidChangeTextDocument:y=>i.onNotification(E.DidChangeTextDocumentNotification.type,y),onDidCloseTextDocument:y=>i.onNotification(E.DidCloseTextDocumentNotification.type,y),onWillSaveTextDocument:y=>i.onNotification(E.WillSaveTextDocumentNotification.type,y),onWillSaveTextDocumentWaitUntil:y=>i.onRequest(E.WillSaveTextDocumentWaitUntilRequest.type,y),onDidSaveTextDocument:y=>i.onNotification(E.DidSaveTextDocumentNotification.type,y),sendDiagnostics:y=>i.sendNotification(E.PublishDiagnosticsNotification.type,y),onHover:y=>i.onRequest(E.HoverRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),void 0)),onCompletion:y=>i.onRequest(E.CompletionRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onCompletionResolve:y=>i.onRequest(E.CompletionResolveRequest.type,y),onSignatureHelp:y=>i.onRequest(E.SignatureHelpRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),void 0)),onDeclaration:y=>i.onRequest(E.DeclarationRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onDefinition:y=>i.onRequest(E.DefinitionRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onTypeDefinition:y=>i.onRequest(E.TypeDefinitionRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onImplementation:y=>i.onRequest(E.ImplementationRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onReferences:y=>i.onRequest(E.ReferencesRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onDocumentHighlight:y=>i.onRequest(E.DocumentHighlightRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onDocumentSymbol:y=>i.onRequest(E.DocumentSymbolRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onWorkspaceSymbol:y=>i.onRequest(E.WorkspaceSymbolRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onWorkspaceSymbolResolve:y=>i.onRequest(E.WorkspaceSymbolResolveRequest.type,y),onCodeAction:y=>i.onRequest(E.CodeActionRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onCodeActionResolve:y=>i.onRequest(E.CodeActionResolveRequest.type,(m,S)=>y(m,S)),onCodeLens:y=>i.onRequest(E.CodeLensRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onCodeLensResolve:y=>i.onRequest(E.CodeLensResolveRequest.type,(m,S)=>y(m,S)),onDocumentFormatting:y=>i.onRequest(E.DocumentFormattingRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),void 0)),onDocumentRangeFormatting:y=>i.onRequest(E.DocumentRangeFormattingRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),void 0)),onDocumentOnTypeFormatting:y=>i.onRequest(E.DocumentOnTypeFormattingRequest.type,(m,S)=>y(m,S)),onRenameRequest:y=>i.onRequest(E.RenameRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),void 0)),onPrepareRename:y=>i.onRequest(E.PrepareRenameRequest.type,(m,S)=>y(m,S)),onDocumentLinks:y=>i.onRequest(E.DocumentLinkRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onDocumentLinkResolve:y=>i.onRequest(E.DocumentLinkResolveRequest.type,(m,S)=>y(m,S)),onDocumentColor:y=>i.onRequest(E.DocumentColorRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onColorPresentation:y=>i.onRequest(E.ColorPresentationRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onFoldingRanges:y=>i.onRequest(E.FoldingRangeRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onSelectionRanges:y=>i.onRequest(E.SelectionRangeRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onExecuteCommand:y=>i.onRequest(E.ExecuteCommandRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),void 0)),dispose:()=>i.dispose()};for(let y of b)y.attach(U);return i.onRequest(E.InitializeRequest.type,y=>{t.initialize(y),lt.string(y.trace)&&(o.trace=E.Trace.fromString(y.trace));for(let m of b)m.initialize(y.capabilities);if(I){let m=I(y,new E.CancellationTokenSource().token,(0,B.attachWorkDone)(i,y),void 0);return h(m).then(S=>{if(S instanceof E.ResponseError)return S;let Y=S;Y||(Y={capabilities:{}});let ee=Y.capabilities;ee||(ee={},Y.capabilities=ee),ee.textDocumentSync===void 0||ee.textDocumentSync===null?ee.textDocumentSync=lt.number(U.__textDocumentSync)?U.__textDocumentSync:E.TextDocumentSyncKind.None:!lt.number(ee.textDocumentSync)&&!lt.number(ee.textDocumentSync.change)&&(ee.textDocumentSync.change=lt.number(U.__textDocumentSync)?U.__textDocumentSync:E.TextDocumentSyncKind.None);for(let pt of b)pt.fillServerCapabilities(ee);return Y})}else{let m={capabilities:{textDocumentSync:E.TextDocumentSyncKind.None}};for(let S of b)S.fillServerCapabilities(m.capabilities);return m}}),i.onRequest(E.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,D)return D(new E.CancellationTokenSource().token)}),i.onNotification(E.ExitNotification.type,()=>{try{Q&&Q()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(E.SetTraceNotification.type,y=>{o.trace=E.Trace.fromString(y.value)}),U}X.createConnection=uT});var Ju=R(Ue=>{"use strict";var lT=Ue&&Ue.__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]})),Yy=Ue&&Ue.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&lT(t,e,n)};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.ProposedFeatures=Ue.NotebookDocuments=Ue.TextDocuments=Ue.SemanticTokensBuilder=void 0;var pT=Ou();Object.defineProperty(Ue,"SemanticTokensBuilder",{enumerable:!0,get:function(){return pT.SemanticTokensBuilder}});var dT=cy();Yy(Pe(),Ue);var fT=Lu();Object.defineProperty(Ue,"TextDocuments",{enumerable:!0,get:function(){return fT.TextDocuments}});var mT=Iu();Object.defineProperty(Ue,"NotebookDocuments",{enumerable:!0,get:function(){return mT.NotebookDocuments}});Yy(zy(),Ue);var $y;(function(e){e.all={__brand:"features",languages:dT.InlineCompletionFeature}})($y||(Ue.ProposedFeatures=$y={}))});var Ky=R((Nk,Vy)=>{"use strict";Vy.exports=Pe()});var Zo=R(At=>{"use strict";var gT=At&&At.__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]})),Qy=At&&At.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&gT(t,e,n)};Object.defineProperty(At,"__esModule",{value:!0});At.createConnection=void 0;var Xo=Ju();Qy(Ky(),At);Qy(Ju(),At);var Gy=!1,yT={initialize:e=>{},get shutdownReceived(){return Gy},set shutdownReceived(e){Gy=e},exit:e=>{}};function hT(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),Xo.ConnectionStrategy.is(e)||Xo.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=u=>(0,Xo.createProtocolConnection)(o,s,u,a);return(0,Xo.createConnection)(c,yT,i)}At.createConnection=hT});var Ft=R((Ok,Jy)=>{"use strict";Jy.exports=Zo()});var ml=R((b1,fh)=>{"use strict";function Nt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function dh(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 bD(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 fr={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),Nt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=dh(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Nt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=dh(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Nt(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];Nt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":fr.normalize(t)},relative:function(t,n){if(Nt(t),Nt(n),t===n||(t=fr.resolve(t),n=fr.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,u=o<c?o:c,d=-1,g=0;g<=u;++g){if(g===u){if(c>u){if(n.charCodeAt(s+g)===47)return n.slice(s+g+1);if(g===0)return n.slice(s+g)}else o>u&&(t.charCodeAt(r+g)===47?d=g:g===0&&(d=0));break}var b=t.charCodeAt(r+g),h=n.charCodeAt(s+g);if(b!==h)break;b===47&&(d=g)}var D="";for(g=r+d+1;g<=i;++g)(g===i||t.charCodeAt(g)===47)&&(D.length===0?D+="..":D+="/..");return D.length>0?D+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(Nt(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');Nt(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 u=t.charCodeAt(s);if(u===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(u===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){Nt(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 bD("/",t)},parse:function(t){Nt(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,u=!0,d=t.length-1,g=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!u){a=d+1;break}continue}c===-1&&(u=!1,c=d+1),r===46?s===-1?s=d:g!==1&&(g=1):s!==-1&&(g=-1)}return s===-1||c===-1||g===0||g===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};fr.posix=fr;fh.exports=fr});import{createConfig as Zp,loadConfig as KP,loadIgnoreConfig as GP,DEFAULT_CONFIG as QP,IGNORE_FILE as JP}from"@redocly/openapi-core";var Pl;(()=>{"use strict";var e={975:k=>{function v(x){if(typeof x!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(x))}function O(x,C){for(var T,q="",L=0,N=-1,$=0,V=0;V<=x.length;++V){if(V<x.length)T=x.charCodeAt(V);else{if(T===47)break;T=47}if(T===47){if(!(N===V-1||$===1))if(N!==V-1&&$===2){if(q.length<2||L!==2||q.charCodeAt(q.length-1)!==46||q.charCodeAt(q.length-2)!==46){if(q.length>2){var De=q.lastIndexOf("/");if(De!==q.length-1){De===-1?(q="",L=0):L=(q=q.slice(0,De)).length-1-q.lastIndexOf("/"),N=V,$=0;continue}}else if(q.length===2||q.length===1){q="",L=0,N=V,$=0;continue}}C&&(q.length>0?q+="/..":q="..",L=2)}else q.length>0?q+="/"+x.slice(N+1,V):q=x.slice(N+1,V),L=V-N-1;N=V,$=0}else T===46&&$!==-1?++$:$=-1}return q}var j={resolve:function(){for(var x,C="",T=!1,q=arguments.length-1;q>=-1&&!T;q--){var L;q>=0?L=arguments[q]:(x===void 0&&(x=process.cwd()),L=x),v(L),L.length!==0&&(C=L+"/"+C,T=L.charCodeAt(0)===47)}return C=O(C,!T),T?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(x){if(v(x),x.length===0)return".";var C=x.charCodeAt(0)===47,T=x.charCodeAt(x.length-1)===47;return(x=O(x,!C)).length!==0||C||(x="."),x.length>0&&T&&(x+="/"),C?"/"+x:x},isAbsolute:function(x){return v(x),x.length>0&&x.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var x,C=0;C<arguments.length;++C){var T=arguments[C];v(T),T.length>0&&(x===void 0?x=T:x+="/"+T)}return x===void 0?".":j.normalize(x)},relative:function(x,C){if(v(x),v(C),x===C||(x=j.resolve(x))===(C=j.resolve(C)))return"";for(var T=1;T<x.length&&x.charCodeAt(T)===47;++T);for(var q=x.length,L=q-T,N=1;N<C.length&&C.charCodeAt(N)===47;++N);for(var $=C.length-N,V=L<$?L:$,De=-1,re=0;re<=V;++re){if(re===V){if($>V){if(C.charCodeAt(N+re)===47)return C.slice(N+re+1);if(re===0)return C.slice(N+re)}else L>V&&(x.charCodeAt(T+re)===47?De=re:re===0&&(De=0));break}var dt=x.charCodeAt(T+re);if(dt!==C.charCodeAt(N+re))break;dt===47&&(De=re)}var ln="";for(re=T+De+1;re<=q;++re)re!==q&&x.charCodeAt(re)!==47||(ln.length===0?ln+="..":ln+="/..");return ln.length>0?ln+C.slice(N+De):(N+=De,C.charCodeAt(N)===47&&++N,C.slice(N))},_makeLong:function(x){return x},dirname:function(x){if(v(x),x.length===0)return".";for(var C=x.charCodeAt(0),T=C===47,q=-1,L=!0,N=x.length-1;N>=1;--N)if((C=x.charCodeAt(N))===47){if(!L){q=N;break}}else L=!1;return q===-1?T?"/":".":T&&q===1?"//":x.slice(0,q)},basename:function(x,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');v(x);var T,q=0,L=-1,N=!0;if(C!==void 0&&C.length>0&&C.length<=x.length){if(C.length===x.length&&C===x)return"";var $=C.length-1,V=-1;for(T=x.length-1;T>=0;--T){var De=x.charCodeAt(T);if(De===47){if(!N){q=T+1;break}}else V===-1&&(N=!1,V=T+1),$>=0&&(De===C.charCodeAt($)?--$==-1&&(L=T):($=-1,L=V))}return q===L?L=V:L===-1&&(L=x.length),x.slice(q,L)}for(T=x.length-1;T>=0;--T)if(x.charCodeAt(T)===47){if(!N){q=T+1;break}}else L===-1&&(N=!1,L=T+1);return L===-1?"":x.slice(q,L)},extname:function(x){v(x);for(var C=-1,T=0,q=-1,L=!0,N=0,$=x.length-1;$>=0;--$){var V=x.charCodeAt($);if(V!==47)q===-1&&(L=!1,q=$+1),V===46?C===-1?C=$:N!==1&&(N=1):C!==-1&&(N=-1);else if(!L){T=$+1;break}}return C===-1||q===-1||N===0||N===1&&C===q-1&&C===T+1?"":x.slice(C,q)},format:function(x){if(x===null||typeof x!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof x);return(function(C,T){var q=T.dir||T.root,L=T.base||(T.name||"")+(T.ext||"");return q?q===T.root?q+L:q+"/"+L:L})(0,x)},parse:function(x){v(x);var C={root:"",dir:"",base:"",ext:"",name:""};if(x.length===0)return C;var T,q=x.charCodeAt(0),L=q===47;L?(C.root="/",T=1):T=0;for(var N=-1,$=0,V=-1,De=!0,re=x.length-1,dt=0;re>=T;--re)if((q=x.charCodeAt(re))!==47)V===-1&&(De=!1,V=re+1),q===46?N===-1?N=re:dt!==1&&(dt=1):N!==-1&&(dt=-1);else if(!De){$=re+1;break}return N===-1||V===-1||dt===0||dt===1&&N===V-1&&N===$+1?V!==-1&&(C.base=C.name=$===0&&L?x.slice(1,V):x.slice($,V)):($===0&&L?(C.name=x.slice(1,N),C.base=x.slice(1,V)):(C.name=x.slice($,N),C.base=x.slice($,V)),C.ext=x.slice(N,V)),$>0?C.dir=x.slice(0,$-1):L&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var v=t[k];if(v!==void 0)return v.exports;var O=t[k]={exports:{}};return e[k](O,O.exports,n),O.exports}n.d=(k,v)=>{for(var O in v)n.o(v,O)&&!n.o(k,O)&&Object.defineProperty(k,O,{enumerable:!0,get:v[O]})},n.o=(k,v)=>Object.prototype.hasOwnProperty.call(k,v),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:()=>b,Utils:()=>wn}),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,v){if(!k.scheme&&v)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 u="",d="/",g=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class b{static isUri(v){return v instanceof b||!!v&&typeof v.authority=="string"&&typeof v.fragment=="string"&&typeof v.path=="string"&&typeof v.query=="string"&&typeof v.scheme=="string"&&typeof v.fsPath=="string"&&typeof v.with=="function"&&typeof v.toString=="function"}scheme;authority;path;query;fragment;constructor(v,O,j,x,C,T=!1){typeof v=="object"?(this.scheme=v.scheme||u,this.authority=v.authority||u,this.path=v.path||u,this.query=v.query||u,this.fragment=v.fragment||u):(this.scheme=(function(q,L){return q||L?q:"file"})(v,T),this.authority=O||u,this.path=(function(q,L){switch(q){case"https":case"http":case"file":L?L[0]!==d&&(L=d+L):L=d}return L})(this.scheme,j||u),this.query=x||u,this.fragment=C||u,c(this,T))}get fsPath(){return y(this,!1)}with(v){if(!v)return this;let{scheme:O,authority:j,path:x,query:C,fragment:T}=v;return O===void 0?O=this.scheme:O===null&&(O=u),j===void 0?j=this.authority:j===null&&(j=u),x===void 0?x=this.path:x===null&&(x=u),C===void 0?C=this.query:C===null&&(C=u),T===void 0?T=this.fragment:T===null&&(T=u),O===this.scheme&&j===this.authority&&x===this.path&&C===this.query&&T===this.fragment?this:new D(O,j,x,C,T)}static parse(v,O=!1){let j=g.exec(v);return j?new D(j[2]||u,ee(j[4]||u),ee(j[5]||u),ee(j[7]||u),ee(j[9]||u),O):new D(u,u,u,u,u)}static file(v){let O=u;if(i&&(v=v.replace(/\\/g,d)),v[0]===d&&v[1]===d){let j=v.indexOf(d,2);j===-1?(O=v.substring(2),v=d):(O=v.substring(2,j),v=v.substring(j)||d)}return new D("file",O,v,u,u)}static from(v){let O=new D(v.scheme,v.authority,v.path,v.query,v.fragment);return c(O,!0),O}toString(v=!1){return m(this,v)}toJSON(){return this}static revive(v){if(v){if(v instanceof b)return v;{let O=new D(v);return O._formatted=v.external,O._fsPath=v._sep===h?v.fsPath:null,O}}return v}}let h=i?1:void 0;class D extends b{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=y(this,!1)),this._fsPath}toString(v=!1){return v?m(this,!0):(this._formatted||(this._formatted=m(this,!1)),this._formatted)}toJSON(){let v={$mid:1};return this._fsPath&&(v.fsPath=this._fsPath,v._sep=h),this._formatted&&(v.external=this._formatted),this.path&&(v.path=this.path),this.scheme&&(v.scheme=this.scheme),this.authority&&(v.authority=this.authority),this.query&&(v.query=this.query),this.fragment&&(v.fragment=this.fragment),v}}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 Q(k,v,O){let j,x=-1;for(let C=0;C<k.length;C++){let T=k.charCodeAt(C);if(T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===45||T===46||T===95||T===126||v&&T===47||O&&T===91||O&&T===93||O&&T===58)x!==-1&&(j+=encodeURIComponent(k.substring(x,C)),x=-1),j!==void 0&&(j+=k.charAt(C));else{j===void 0&&(j=k.substr(0,C));let q=I[T];q!==void 0?(x!==-1&&(j+=encodeURIComponent(k.substring(x,C)),x=-1),j+=q):x===-1&&(x=C)}}return x!==-1&&(j+=encodeURIComponent(k.substring(x))),j!==void 0?j:k}function U(k){let v;for(let O=0;O<k.length;O++){let j=k.charCodeAt(O);j===35||j===63?(v===void 0&&(v=k.substr(0,O)),v+=I[j]):v!==void 0&&(v+=k[O])}return v!==void 0?v:k}function y(k,v){let O;return O=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?v?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(O=O.replace(/\//g,"\\")),O}function m(k,v){let O=v?U:Q,j="",{scheme:x,authority:C,path:T,query:q,fragment:L}=k;if(x&&(j+=x,j+=":"),(C||x==="file")&&(j+=d,j+=d),C){let N=C.indexOf("@");if(N!==-1){let $=C.substr(0,N);C=C.substr(N+1),N=$.lastIndexOf(":"),N===-1?j+=O($,!1,!1):(j+=O($.substr(0,N),!1,!1),j+=":",j+=O($.substr(N+1),!1,!0)),j+="@"}C=C.toLowerCase(),N=C.lastIndexOf(":"),N===-1?j+=O(C,!1,!0):(j+=O(C.substr(0,N),!1,!0),j+=C.substr(N))}if(T){if(T.length>=3&&T.charCodeAt(0)===47&&T.charCodeAt(2)===58){let N=T.charCodeAt(1);N>=65&&N<=90&&(T=`/${String.fromCharCode(N+32)}:${T.substr(3)}`)}else if(T.length>=2&&T.charCodeAt(1)===58){let N=T.charCodeAt(0);N>=65&&N<=90&&(T=`${String.fromCharCode(N+32)}:${T.substr(2)}`)}j+=O(T,!0,!1)}return q&&(j+="?",j+=O(q,!1,!1)),L&&(j+="#",j+=v?L:Q(L,!1,!1)),j}function S(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+S(k.substr(3)):k}}let Y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ee(k){return k.match(Y)?k.replace(Y,(v=>S(v))):k}var pt=n(975);let Wt=pt.posix||pt,un="/";var wn;(function(k){k.joinPath=function(v,...O){return v.with({path:Wt.join(v.path,...O)})},k.resolvePath=function(v,...O){let j=v.path,x=!1;j[0]!==un&&(j=un+j,x=!0);let C=Wt.resolve(j,...O);return x&&C[0]===un&&!v.authority&&(C=C.substring(1)),v.with({path:C})},k.dirname=function(v){if(v.path.length===0||v.path===un)return v;let O=Wt.dirname(v.path);return O.length===1&&O.charCodeAt(0)===46&&(O=""),v.with({path:O})},k.basename=function(v){return Wt.basename(v.path)},k.extname=function(v){return Wt.extname(v.path)}})(wn||(wn={})),Pl=r})();var{URI:Xe,Utils:K}=Pl;import{isBrowser as ub}from"@redocly/openapi-core";import{CONFIG_FILE_NAME as cb}from"@redocly/openapi-core";var Ps={languageId:"yaml",filePattern:/\.ya?ml$/i},xs={languageId:"json",filePattern:/\.json$/i},vs=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Ps,xs];this.registerConfigFinder(async t=>{if(this._fs)try{let n=K.resolvePath(K.dirname(He(t)),cb);return await this._fs.exists(n)?we(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}},ce=new vs;function yr(e,t){let n=r=>K.resolvePath(He(qt(r))).toString();return n(e)===n(t)}function He(e){return Xe.parse(e)}function qt(e){return e.startsWith("file://")?e:Xe.file(e).toString()}function we(e){let t=Xe.parse(e).fsPath;return ub&&t.startsWith("/")?t.slice(1):t}function hr(e){let t=["https","http"],{scheme:n}=Xe.parse(e);return t.includes(n)}function br(e){return K.basename(He(e))}async function xl(e,t="/"){let n=K.resolvePath(He(t));for(;e.path!=="/";)try{(await ce.fs.stat(K.resolvePath(n,e.path))).isDirectory()||(e=K.dirname(e));break}catch{e=K.dirname(e)}return e}import{BaseResolver as YP,Source as Xp,readFileFromUrl as VP,isAbsoluteUrl as Js}from"@redocly/openapi-core";var oi=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=Rl(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),u=this._lineOffsets,d=_l(r.text,!1,o);if(c-a===d.length)for(let b=0,h=d.length;b<h;b++)u[b+a+1]=d[b];else d.length<1e4?u.splice(a+1,c-a,...d):this._lineOffsets=u=u.slice(0,a+1).concat(d,u.slice(c+1));let g=r.text.length-(s-o);if(g!==0)for(let b=a+1+d.length,h=u.length;b<h;b++)u[b]=u[b]+g}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=_l(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&&Cl(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}},si;(function(e){function t(i,o,s,a){return new oi(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof oi)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=_s(o.map(lb),(d,g)=>{let b=d.range.start.line-g.range.start.line;return b===0?d.range.start.character-g.range.start.character:b}),c=0,u=[];for(let d of a){let g=i.offsetAt(d.range.start);if(g<c)throw new Error("Overlapping edit");g>c&&u.push(s.substring(c,g)),d.newText.length&&u.push(d.newText),c=i.offsetAt(d.range.end)}return u.push(s.substr(c)),u.join("")}e.applyEdits=r})(si||(si={}));function _s(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);_s(r,t),_s(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 _l(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);Cl(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Cl(e){return e===13||e===10}function Rl(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 lb(e){let t=Rl(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var bi=Ne(jn(),1),Qp=new Map;function Jp(e,t){return Qp.set(e,t)}function Qs(e){let t=[];for(let[n,r]of Qp.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function et(e){let t=ce.documents.get(e);if(t)return t;let n=await ce.fs.readFile(He(e),"utf-8");return si.create(e,"yaml",1,n)}function Cr(e){return xs.filePattern.test(e)}function vi(e){return Ps.filePattern.test(e)}function yn({uri:e,ast:t,textDocument:n}){if(!(vi(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=bi.safeLoad(i,{filename:e})}if(t?.kind===bi.Kind.MAP){let i=["openapi","swagger","asyncapi","arazzo"];for(let o of t.mappings){let s=o.key?.value;if(i.includes(s))return!1}}return!0}var _t=class extends YP{resolveExternalRef(t,n){return Js(n)?n:t&&Js(t)?new URL(n,t).href:t?K.resolvePath(K.dirname(He(qt(t))),n).toString():n}async loadExternalRef(t){if(hr(t)){let{body:i,mimeType:o}=await VP(t,{...this.config.http,customFetch:fetch});return new Xp(t,i,o)}let n=qt(t),r=Js(t)?we(t):t;return new Xp(r,(await et(n)).getText())}};var Yt;async function Pi(e,t){let n=!1;try{let r=new _t,i=e?await ce.findConfig(e):void 0;if(i===void 0){let o=await GP(i,r);Yt=await Zp(QP,{externalRefResolver:r,ignore:o})}else Yt=await KP({configPath:i,externalRefResolver:r})}catch(r){n=!0;let i=r instanceof Error?r.message:String(r);t?.createEventHandleLoadConfigError?.(i),Yt=await Zp({})}return{config:Yt,loadFailed:n}}async function Vt(e){return Yt||(await Pi(e)).config}async function hn(e){return await Xs(e)?!0:!!Yt?.resolvedRefMap&&[...Yt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>yr(br(qt(e)),n))}async function Xs(e){let t=await ce.findConfig(e);return t?yr(e,t):!1}function XP(e){return e.endsWith(JP)}import{clearPluginsCache as rx}from"@redocly/openapi-core";var ed=new Set([".js",".mjs",".cjs",".ts"]),ZP=/(?:\brequire\(|\b(?:import|export)\b[^'"]*?\bfrom\s+)['"](\.[^'"]+)['"]/g,ex=/\/\*[\s\S]*?\*\/|\/\/[^\n]*/g;async function tx(e){let t=e.resolvedConfig?.plugins;if(!e.configPath||!t?.length)return[];let{fs:n}=ce,r=K.dirname(Xe.file(e.configPath)),i=new Set;async function o(a){if(K.extname(a))return await n.exists(a)?a:void 0;let c=K.dirname(a),u=K.basename(a),d=await n.readDir(c).catch(()=>[]);for(let g of ed)if(d.includes(u+g))return K.joinPath(c,u+g)}async function s(a){if(i.has(a.toString())||!await n.exists(a)||(i.add(a.toString()),!ed.has(K.extname(a))))return;let c=(await n.readFile(a,"utf-8")).replace(ex,""),u=K.dirname(a);for(let[,d]of c.matchAll(ZP)){let g=await o(K.resolvePath(u,d));g&&await s(g)}}for(let a of t)await s(K.resolvePath(r,a.replace(/\\/g,"/")));return[...i].map(a=>Xe.parse(a).fsPath)}function nx(e,t){return t.some(n=>yr(n,e))}var vd={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Rr={type:"object",properties:vd,additionalProperties:!1},ix={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},wi={type:"object",properties:{hide:{type:"boolean"},type:{type:"string",enum:["rating","sentiment","comment","mood","scale"]},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"]},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:{...vd,like:Rr,dislike:Rr,satisfied:Rr,neutral:Rr,dissatisfied:Rr},additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:ix},additionalProperties:!1}},additionalProperties:!1},ox={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string"},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},na={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},td={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:wi,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:na,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:ox,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},G={type:"string",uiHint:"color"},it={nodeTypeName:void 0,type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules"};var sx={rules:it,oas2Rules:it,oas3_0Rules:it,oas3_1Rules:it,oas3_2Rules:it,async2Rules:it,async3Rules:it,arazzo1Rules:it,arazzo1_1Rules:it,overlay1Rules:it,openrpc1Rules:it,graphqlRules:it};var mt={nodeTypeName:void 0,type:"object",additionalProperties:!0},ax={preprocessors:mt,oas2Preprocessors:mt,oas3_0Preprocessors:mt,oas3_1Preprocessors:mt,oas3_2Preprocessors:mt,async2Preprocessors:mt,async3Preprocessors:mt,arazzo1Preprocessors:mt,arazzo1_1Preprocessors:mt,overlay1Preprocessors:mt,openrpc1Preprocessors:mt},gt={nodeTypeName:void 0,type:"object",additionalProperties:!0};var cx={decorators:gt,oas2Decorators:gt,oas3_0Decorators:gt,oas3_1Decorators:gt,oas3_2Decorators:gt,async2Decorators:gt,async3Decorators:gt,arazzo1Decorators:gt,arazzo1_1Decorators:gt,overlay1Decorators:gt,openrpc1Decorators:gt},ux={nodeTypeName:void 0,type:"array",items:{type:"string"},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends"},Si={...sx,...cx,...ax,extends:ux},Tr={nodeTypeName:void 0,type:"object",additionalProperties:{type:"string",enum:["off","patch","minor","major"]},description:"The diff configuration blocks set the semver impact of each diff rule: `off`, `patch`, `minor`, or `major`.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/diff"},lx={diff:Tr,oas3_0Diff:Tr,oas3_1Diff:Tr,oas3_2Diff:Tr,async3Diff:Tr},px={type:"object",properties:{label:{type:"string"},lang:{type:"string",enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},dx={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"}}},nd={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},fx={type:"object",properties:{beforeInfo:{type:"array",items:nd},end:{type:"array",items:nd}}},bn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},xi={type:"object",properties:{backgroundColor:G,borderColor:G,color:G,tabTextColor:G}},mx={type:"object",properties:ki(bn.properties,["light","dark"])},gx={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"}}},yx={type:"object",properties:{error:xi,info:xi,redirect:xi,success:xi}},hx={type:"object",properties:Mn(bn.properties,["dark"])},bx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},vx={type:"object",properties:{accent:bn,border:mx,error:bn,http:gx,primary:bn,responses:yx,secondary:hx,success:bn,text:bx,tonalOffset:{type:"number"},warning:bn}},_i={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Px={type:"object",properties:{small:_i,medium:_i,large:_i,xlarge:_i}},Rt={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},xx={type:"object",properties:{...Mn(Rt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Px}},rd={type:"object",properties:ki(Rt.properties,["fontSize","lineHeight"])},_x={type:"object",properties:{medium:rd,small:rd}},Cx={type:"object",properties:{...Mn(Rt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:G,sizes:_x}},Rx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Tx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:G}},id={type:"object",properties:{fullWidth:{type:"boolean"}}},Dx={type:"object",properties:{buttons:xx,httpBadges:Cx,layoutControls:Rx,panels:Tx,tryItButton:id,tryItSendButton:id}},Ti={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},wx={type:"object",properties:{maxWidth:Ti}},Sx={type:"object",properties:{maxWidth:Ti,middlePanelMaxWidth:Ti}},kx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:wx,"three-panel":Sx}},od={type:"object",properties:{backgroundColor:G,border:{type:"string"}}},Ax={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:G,caretSize:{type:"string"},constraints:od,defaultDetailsWidth:{type:"string"},examples:od,labelsTextSize:{type:"string"},linesColor:G,nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:G,typeNameColor:G,typeTitleColor:G}},Pd={type:"object",properties:{subItemsColor:G,textTransform:{type:"string"},fontWeight:{type:"string"}}},Ex={type:"object",properties:ki(Pd.properties,["textTransform"])},Nx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},qx={type:"object",properties:{...Mn(Rt.properties,["fontWeight","lineHeight"]),activeBgColor:G,activeTextColor:G,backgroundColor:G,borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:G,caretSize:{type:"string"},groupItems:Pd,level1items:Ex,rightLineColor:G,separatorLabelColor:G,showAtBreakpoint:{type:"string"},spacing:Nx,textColor:G,width:{type:"string"}}},Ci={type:"object",properties:{...Rt.properties,color:G,transform:{type:"string"}}},Ox={type:"object",properties:{...Rt.properties,backgroundColor:G,color:G,wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},jx={type:"object",properties:Mn(Rt.properties,["fontSize"])},Lx={type:"object",properties:{color:G,hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Mx={type:"object",properties:{code:Ox,fieldName:Rt,...ki(Rt.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Ci,heading2:Ci,heading3:Ci,headings:jx,lineHeight:{type:"string"},links:Lx,optimizeSpeed:{type:"boolean"},rightPanelHeading:Ci,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},Ix={type:"object",properties:{color:G,...Mn(Rt.properties,["fontWeight"])}},Fx={type:"object",properties:{backgroundColor:G,borderRadius:{type:"string"},tokens:Ix}},Ux={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},Wx={type:"object",properties:{backgroundColor:G,color:G}},sd={type:"object",properties:{custom:{type:"string"}}},Hx={type:"object",properties:{DownloadButton:sd,NextSectionButton:sd}},Bx={type:"object",properties:{backgroundColor:G,panelBackgroundColor:G,panelControlsBackgroundColor:G,showAtBreakpoint:{type:"string"},textColor:G,width:{type:"string"}}},zx={type:"object",properties:{borderRadius:{type:"string"}}},$x={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Yx={type:"object",properties:{breakpoints:Ti,codeBlock:Fx,colors:vx,components:Dx,layout:kx,logo:Ux,fab:Wx,overrides:Hx,rightPanel:Bx,schema:Ax,shape:zx,sidebar:qx,spacing:$x,typography:Mx,links:{type:"object",properties:{color:G}},codeSample:{type:"object",properties:{backgroundColor:G}}}},Vx={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:px}},required:["languages"]},Kx={type:"object",properties:{theme:Yx,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:Vx,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:dx,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{type:"string",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:fx,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 ki(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function Mn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var xd=e=>e,Ct=xd({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),ke={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},ad={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"},consent:{type:"string",enum:["analytics","marketing"]}},required:["src"],additionalProperties:!0},Zs={type:"object",properties:{page:{type:"string",uiHint:"file"},directory:{type:"string",uiHint:"file"},disconnect:{type:"boolean"},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"]},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"}},additionalProps:{type:"object",additionalProperties:!0}}},ra={type:"array",items:{...Zs,properties:{...Zs.properties,items:{type:"array",items:Zs}}}},Gx={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Qx={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Jx={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}},Xx={type:"object",properties:{facets:Jx,...ke.properties},additionalProperties:!1},Zx={type:"object",properties:{page:{type:"string",uiHint:"file"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},e_={type:"object",properties:{image:{type:"string",uiHint:"file"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string",uiHint:"file"}},additionalProperties:!1},t_={type:"object",properties:{items:ra,...ke.properties},additionalProperties:!1},n_={type:"object",additionalProperties:Gx},r_={type:"object",properties:{items:ra,copyrightText:{type:"string",uiHint:"textarea"},logo:ke,...ke.properties},additionalProperties:!1},i_={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...ke.properties},additionalProperties:!1},o_={type:"object",properties:{head:{type:"array",items:ad},body:{type:"array",items:ad}},additionalProperties:!1},s_={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}},a_={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:Qx,filters:Xx,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:Zx},...ke.properties},additionalProperties:!1},c_={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string",uiHint:"textarea"},trigger:{type:"object",properties:{hide:{type:"boolean"},inputType:{type:"string",enum:["button","icon"]},inputIcon:{type:"string",enum:["chat","sparkles","redocly"]}},additionalProperties:!1}},additionalProperties:!1},u_={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...ke.properties},additionalProperties:!1},l_={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},p_={type:"object",properties:{...ke.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","grok","docs-mcp-claude","docs-mcp-vscode","docs-mcp-cursor","copy-mcp-url"]}}},additionalProperties:!1},d_={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...ke.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...ke.properties},additionalProperties:!1},actions:p_},additionalProperties:!1},f_={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...ke.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...ke.properties},additionalProperties:!1},expand:{type:"object",properties:{...ke.properties},additionalProperties:!1},collapse:{type:"object",properties:{...ke.properties},additionalProperties:!1}},additionalProperties:!1},m_={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"}},partialsFolders:{type:"array",items:{type:"string"}},lastUpdatedBlock:{type:"object",properties:{format:{type:"string",enum:["timeago","iso","long","short"]},locale:{type:"string"},...ke.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...ke.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...ke.properties},additionalProperties:!1},template:{type:"object",uiHint:"list",additionalProperties:{type:"string"}}},additionalProperties:!1},g_={...td,properties:{...td.properties,...Kx.properties}},y_={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},h_={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"]},b_={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},v_={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},P_={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"]},x_={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},__={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{type:"object",additionalProperties:!0},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},_d={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"]},C_={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:_d}},additionalProperties:!1,required:["trackingId"]},R_={type:"object",properties:{adobe:y_,amplitude:h_,fullstory:b_,heap:v_,rudderstack:P_,segment:x_,gtm:__,ga:C_}},T_={type:"object",properties:{mode:{type:"string",enum:["auto","opt-in","opt-out","none","onetrust","cookiebot","trustarc","tcf"]},privacyPolicyUrl:{type:"string"},expires:{type:"number"},settingsLink:{type:"string",enum:["auto","footer","none"]}},additionalProperties:!1},D_={type:"object",properties:{items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0}},hideLoginButton:{type:"boolean"},...ke.properties},additionalProperties:!1},w_={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},S_={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}}},additionalProperties:!1},k_={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"]},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"}}}},A_={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:k_},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ra,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},cd={type:"object",patternProperties:{".*":A_}},ud={nodeTypeName:Ct.ScorecardClassic,description:"Add and create sets of rules and test your API description files against them. With these rules you can maintain quality across your existing APIs and ensure that newly-added or updated APIs match your criteria. An API scorecard can include multiple sets of rules, corresponding to different quality levels.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic",type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean"},teamMetadataProperty:{nodeTypeName:Ct.ScorecardClassicTeamMetadataProperty,description:"Provide custom team label and team metadata property.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#team-metadata-object",type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{nodeTypeName:Ct.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:Ct.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...Si},additionalProperties:!1}},targets:{nodeTypeName:Ct.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:Ct.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:Ct.ScorecardClassicTargetWhere,description:"Specify which API descriptions to apply the `minimumLevel` to based on the metadata.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#where-object",type:"object",required:["metadata"],properties:{metadata:{nodeTypeName:Ct.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string",uiHint:"file"}},fromProjectUrl:{type:"string",format:"uri"}}};var E_=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(E_||{}),N_=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(N_||{});var q_=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(q_||{});var Cd="^[a-z0-9]+(?:-[a-z0-9]+)*$",Zw=new RegExp(Cd);var O_=63,eS=`Unique ID cannot exceed ${O_} characters`,Rd="redocly",Td=[Rd,"corporate","guest"],tS=`Unique ID cannot be a reserved word (${Td.join(", ")})`,ld=["REDOCLY","CORPORATE","GUEST"],j_={type:"object",properties:{downloadUrls:na,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},excludeFromSearch:{type:"boolean"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},feedback:wi,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},L_={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},M_={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},I_={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"]},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Lt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:M_},excludes:{type:"array",items:L_},filters:{type:"array",items:I_},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},F_={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},U_={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:F_},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},W_={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:U_,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},H_={type:"object",additionalProperties:W_},B_={type:"object",properties:{show:{type:"boolean"},entityTypes:H_,catalogs:{type:"object",properties:{all:Lt,services:Lt,domains:Lt,teams:Lt,users:Lt,apiDescriptions:Lt,dataSchemas:Lt,apiOperations:Lt},additionalProperties:Lt}},additionalProperties:!1},Ln={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},z_={type:"object",properties:{name:{type:"string"},items:Ln,queries:Ln,mutations:Ln,subscriptions:Ln,types:Ln,directives:Ln},required:["name"],additionalProperties:!1},$_={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:z_},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},Y_={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},V_={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},K_={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string",uiHint:"textarea"},termsOfService:{type:"string",format:"uri"},contact:Y_,license:V_},additionalProperties:!1},G_={type:"object",properties:{url:{type:"string",format:"uri",pattern:"^https?://"},description:{type:"string"}},required:["url"],additionalProperties:!1},Q_={type:"object",properties:{menu:{type:"object",properties:{...$_.properties},additionalProperties:!1},downloadUrls:na,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:G}},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:wi,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:K_,hideReplay:{type:"boolean"},servers:{type:"array",items:G_},corsProxyUrl:{type:"string"}},additionalProperties:!1},pd={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},ia={type:"string",enum:["and","or"]},ea={type:"object",properties:{field:{type:"string"},operator:pd,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:pd,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},J_={type:"object",properties:{operator:ia,conditions:{type:"array",items:ea}},required:["operator","conditions"],additionalProperties:!1},dd={type:"array",items:{oneOf:[ea,{type:"object",properties:{operator:ia,conditions:{type:"array",items:{oneOf:[ea,J_]}}},required:["operator","conditions"],additionalProperties:!1}]}},Dd={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}},additionalProperties:!1},X_={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:Dd},required:["subject","assertions"],additionalProperties:!1}},Z_={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:Dd,where:X_,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},e0={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},Z_]}},t0={type:"object",properties:{name:{type:"string"},extends:Si.extends,rules:e0},required:["name"],additionalProperties:!1},fd={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},n0={oneOf:[fd,{type:"array",items:fd}]},r0={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[dd,{type:"object",properties:{operator:ia,conditions:dd},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:t0,minItems:1},trigger:n0},required:["name","key","entities","levels"],additionalProperties:!1},i0={type:"array",items:r0},Oe={logo:e_,navbar:t_,products:n_,footer:r_,sidebar:i_,scripts:o_,links:s_,feedback:wi,search:a_,aiAssistant:c_,colorMode:u_,palette:l_,navigation:d_,codeSnippet:f_,markdown:m_,openapi:g_,graphql:Q_,asyncapi:j_,analytics:R_,consent:T_,userMenu:D_,versionPicker:w_,breadcrumbs:S_,catalog:cd,entitiesCatalog:B_,catalogClassic:cd,scorecard:ud,scorecardClassic:ud,scorecards:i0},o0={type:"object",properties:{imports:{type:"array",items:{type:"string"}},...Oe},additionalProperties:!0},s0={type:"object",additionalProperties:{type:"string"}},a0={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Ri={type:"string",enum:["error","warn","off"]},c0={type:"object",additionalProperties:!1,properties:{schemaCheck:Ri,statusCodeCheck:Ri,contentTypeCheck:Ri,successCriteriaCheck:Ri}},u0={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},l0={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},p0={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},d0={type:"object",additionalProperties:{type:"object",properties:{type:{type:"string",enum:["http"]},url:{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"},description:{type:"string"},headers:{type:"object",additionalProperties:{type:"string"}}},required:["url"],additionalProperties:!1}},f0={type:"object",properties:{provider:{type:"string",minLength:1},repository:{type:"string",minLength:1},branch:{type:"string",minLength:1},path:{type:"string"}},required:["provider","repository"],additionalProperties:!1},m0={oneOf:[{type:"string",enum:["none","all"]},{type:"array",items:f0}]},Ai={rules:{type:"string"},sourceRepositories:m0},g0={type:"object",properties:{event:{type:"string",enum:["feedback"]}},required:["event"],additionalProperties:!1},y0={type:"object",properties:{event:{type:"string",enum:["contentChange"]}},required:["event"],additionalProperties:!1},oa={type:"object",properties:{event:{type:"string",enum:["schedule"]},cron:{type:"string",pattern:"^[0-5]?\\d\\s+\\S+\\s+\\S+\\s+\\S+\\s+\\S+$"}},required:["event","cron"],additionalProperties:!1},h0={type:"object",properties:{name:{type:"string",enum:["feedback"]},enabled:{type:"boolean"},trigger:{oneOf:[g0,oa]},...Ai},required:["name"],additionalProperties:!1},b0={type:"object",properties:{name:{type:"string",enum:["discovery"]},enabled:{type:"boolean"},trigger:oa,...Ai},required:["name"],additionalProperties:!1},v0={type:"object",properties:{name:{type:"string",enum:["seo"]},enabled:{type:"boolean"},trigger:{oneOf:[y0,oa]},...Ai},required:["name"],additionalProperties:!1},P0={type:"object",properties:{name:{type:"string",enum:["supportConversations","followUpOnPullRequest","updateFromCodeChanges"]},enabled:{type:"boolean"}},required:["name"],additionalProperties:!1},x0={type:"object",properties:{name:{type:"string",enum:["review"]},enabled:{type:"boolean"},...Ai,specialists:{type:"array",items:{type:"object",properties:{name:{type:"string",enum:["config","apiDescription","owasp","docs"]},enabled:{type:"boolean"}},required:["name","enabled"],additionalProperties:!1}}},required:["name"],additionalProperties:!1},_0={type:"object",properties:{enabled:{type:"boolean"},defaultReviewers:{type:"array",items:{type:"string",minLength:1}},rules:{type:"object",properties:{custom:{type:"string"},style:{type:"string"}},additionalProperties:!1},duties:{type:"array",items:{oneOf:[h0,b0,v0,P0,x0]}},mcpServers:d0},additionalProperties:!1},C0={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean"},{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:[u0,l0]},inputs:s0,servers:a0,severity:c0,slo:p0},required:["path","trigger","agent"],additionalProperties:!1}},agent:_0},additionalProperties:!1},wd={type:"string",enum:["off","info","warn","error"]},Dr={type:"array",items:{type:"string"}},R0={type:"object",properties:{severity:wd,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:Dr,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:Dr,excludes:Dr,exceptions:{type:"object",properties:{files:Dr,lines:Dr},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},T0={oneOf:[wd,R0]},md={type:"object",additionalProperties:T0},D0={type:"object",properties:{type:{type:"string",enum:["string","number","boolean"]},required:{type:"boolean"},default:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"}]},enum:{type:"array",items:{type:"string"},minItems:1},dynamic:{type:"boolean"}},required:["type"],additionalProperties:!1},w0={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:D0}},additionalProperties:!1},S0={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:w0},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},k0={oneOf:[{type:"boolean"},S0]},A0={type:"object",properties:{rules:md,excludes:{type:"array",items:{type:"string",minLength:1}},markdoc:k0,apiDescriptions:{type:"object",properties:{rules:md},additionalProperties:!1}},additionalProperties:!1},gd=["GET","HEAD","OPTIONS","POST","PUT","PATCH","DELETE","QUERY","TRACE"],E0={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},N0={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:E0,clientId:{type:"string",minLength:1},clientSecret:{type:"string"},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},q0={type:"object",properties:{type:{type:"string",const:"SAML2"},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string"},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},O0={oneOf:[N0,q0],discriminator:{propertyName:"type"}},j0={type:"object",additionalProperties:O0},Sd={oneOf:[{type:"array",items:{type:"string",enum:ld},uniqueItems:!0},{type:"string",enum:ld}]},yd={type:"string",pattern:Cd,not:{enum:Td.filter(e=>e!==Rd)}},kd={oneOf:[{type:"array",items:yd,uniqueItems:!0},yd]},Ad={type:"boolean"},Ed={type:"string",pattern:"^https?://.*"},Nd={type:"string",pattern:"^https?://.*"},L0={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:Ct.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},M0={type:"object",additionalProperties:L0,nodeTypeName:Ct.Redirects,description:"Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.",documentationLink:"https://redocly.com/docs/realm/config/redirects"},I0={type:"string",enum:["info","success","warning","error"]},te={type:"object",uiHint:"list",additionalProperties:{type:"string"}},F0={type:"object",properties:{trackingId:{type:"string"},content:{type:"string",uiHint:"textarea"},dismissible:{type:"boolean"},target:{type:"string"},color:I0,rbac:te,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},U0={type:"array",items:F0},qd={type:"object",properties:{root:{type:"string",uiHint:"file"},output:{type:"string",pattern:"(.ya?ml|.json)$"},overlays:{type:"array",items:{type:"string"}},rbac:te,openapi:Oe.openapi,graphql:Oe.graphql,asyncapi:Oe.asyncapi,theme:{type:"object",properties:{openapi:Oe.openapi,graphql:Oe.graphql},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...Si},required:["root"]},W0={type:"object",additionalProperties:!0},H0={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},B0={type:"object",properties:{hide:{type:"boolean"},title:{type:"string"},description:{type:"string",uiHint:"textarea"},details:{type:"object",properties:{path:{type:"string",uiHint:"file"},content:{type:"string",uiHint:"textarea"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string",uiHint:"file"}},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string",uiHint:"file"}},excludeFiles:{type:"array",items:{type:"string"}}},required:["title"],additionalProperties:!1}}},additionalProperties:!1},z0={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string",uiHint:"textarea"},siteUrl:{type:"string"},image:{type:"string",uiHint:"file"},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:B0},additionalProperties:!1},$0={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},Y0={type:"object",properties:{catalogs:{type:"object",properties:{all:te,services:te,domains:te,teams:te,users:te,apiDescriptions:te,dataSchemas:te,apiOperations:te},additionalProperties:te},entitiesTypes:{type:"object",properties:{service:te,domain:te,team:te,user:te,apiDescription:te,apiOperation:te,dataSchema:te},additionalProperties:te},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:te},additionalProperties:!1}},entities:{type:"object",properties:{"**":te},additionalProperties:te}},additionalProperties:!1},Od={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:te,cms:te,reunite:te,features:{type:"object",properties:{aiSearch:te,mcp:te},additionalProperties:!1},content:{type:"object",properties:{"**":te},additionalProperties:te},entitiesCatalog:Y0},additionalProperties:te},V0={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},K0={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},G0={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[V0,K0]}},additionalProperties:!1,required:["type","apiBaseUrl"]},Q0={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},J0={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},ta={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean"},auth:{type:"object",oneOf:[Q0,J0],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},X0={...ta,properties:{...ta.properties,type:{type:"string",const:"APIGEE_EDGE"}}},Z0={type:"object",oneOf:[ta,X0,G0],discriminator:{propertyName:"type"}},eC={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:Z0}}},hd={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"},showMissingTranslationNotice:{type:"boolean"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},tC={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},nC={type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"}},additionalProperties:!1},apiCalls:{type:"object",properties:{hide:{type:"boolean"},allowedHttpMethods:{type:"array",items:{type:"string",enum:gd}},excludeFiles:{type:"array",items:{type:"string"}},excludeOperations:{type:"array",items:{type:"object",properties:{file:{type:"string"},method:{type:"string",enum:gd},path:{type:"string"}},required:["file","path"],additionalProperties:!1}}},additionalProperties:!1}},additionalProperties:!1},rC={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},iC={type:"object",properties:{requiresLogin:Ad,logoutReturnUrl:Ed,residency:Nd,sso:Sd,idps:kd,rbac:Od},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},Di={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:M0,seo:z0,rbac:Od,apiFunctions:$0,requiresLogin:Ad,responseHeaders:{type:"object",additionalProperties:{type:"array",items:tC}},mockServer:{type:"object",properties:{off:{type:"boolean"},position:{type:"string",enum:["first","last","replace","off"]},strictExamples:{type:"boolean"},errorIfForcedExampleNotFound:{type:"boolean"},description:{type:"string"}}},apis:{type:"object",uiHint:"list",additionalProperties:qd},...Si,...lx,ssoDirect:j0,sso:Sd,idps:kd,residency:Nd,logoutReturnUrl:Ed,access:iC,developerOnboarding:eC,removeAttribution:{type:"boolean"},i18n:hd,l10n:hd,metadata:W0,metadataGlobs:H0,ignore:{type:"array",items:{type:"string"}},theme:o0,reunite:C0,...Oe,mcp:nC,skills:rC,recheck:A0,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:U0},not:{required:["sso","idps"]},additionalProperties:!0},oC={...Di,additionalProperties:!1},jd={$id:"root-redocly-config",...Di,properties:{plugins:{type:"array",items:{type:"string"}},...Di.properties,env:{type:"object",additionalProperties:oC}},additionalProperties:!1},bd={type:"object",properties:{logo:Oe.logo,navbar:Oe.navbar,footer:Oe.footer,sidebar:Oe.sidebar,search:Oe.search,codeSnippet:Oe.codeSnippet,breadcrumbs:Oe.breadcrumbs,openapi:Oe.openapi,feedback:Oe.feedback,palette:Oe.palette,mockServer:Di.properties.mockServer,analytics:{type:"object",properties:{ga:_d}}},additionalProperties:!0},nS={$id:"product-config-override",type:"object",properties:{...bd.properties,apis:{type:"object",additionalProperties:qd},theme:bd},additionalProperties:!1},sC=["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","returns","returnedBy"],xe=xd({UserEntity:"UserEntity",UserEntityMetadata:"UserEntityMetadata",ApiDescriptionEntity:"ApiDescriptionEntity",ApiDescriptionEntityMetadata:"ApiDescriptionEntityMetadata",ApiOperationEntity:"ApiOperationEntity",ApiOperationEntityMetadata:"ApiOperationEntityMetadata",DataSchemaEntity:"DataSchemaEntity",DataSchemaEntityMetadata:"DataSchemaEntityMetadata",ServiceEntity:"ServiceEntity",DomainEntity:"DomainEntity",TeamEntity:"TeamEntity",Entity:"Entity",EntityMetadata:"EntityMetadata",EntityLinkList:"EntityLinkList",EntityLink:"EntityLink",EntityRelation:"EntityRelation",EntityRelationList:"EntityRelationList",EntityContact:"EntityContact",EntitySlackContact:"EntitySlackContact",EntitySlackChannel:"EntitySlackChannel"}),aC={type:"object",nodeTypeName:xe.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},cC={type:"object",nodeTypeName:xe.ApiDescriptionEntityMetadata,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},uC={type:"object",nodeTypeName:xe.ApiOperationEntityMetadata,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},lC={type:"object",nodeTypeName:xe.DataSchemaEntityMetadata,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"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0},pC={type:"object",properties:{},nodeTypeName:xe.EntityMetadata,additionalProperties:!0},dC={type:"object",nodeTypeName:xe.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},fC={type:"object",nodeTypeName:xe.EntitySlackContact,properties:{channels:{type:"array",items:dC}},required:["channels"],additionalProperties:!1},mC={type:"object",nodeTypeName:xe.EntityContact,properties:{slack:fC},additionalProperties:!1},gC={type:"object",nodeTypeName:xe.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},yC={type:"object",nodeTypeName:xe.EntityRelation,properties:{type:{type:"string",enum:sC},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Kt={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:mC,links:{type:"array",nodeTypeName:xe.EntityLinkList,items:gC},relations:{type:"array",nodeTypeName:xe.EntityRelationList,items:yC},metadata:pC},Ei={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...Kt,type:{type:"string",const:"user"},metadata:aC},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:xe.UserEntity},{type:"object",nodeTypeName:xe.ApiOperationEntity,properties:{...Kt,type:{type:"string",const:"api-operation"},metadata:uC},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:xe.DataSchemaEntity,properties:{...Kt,type:{type:"string",const:"data-schema"},metadata:lC},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:xe.ApiDescriptionEntity,properties:{...Kt,type:{type:"string",const:"api-description"},metadata:cC},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:xe.ServiceEntity,properties:{...Kt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:xe.DomainEntity,properties:{...Kt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:xe.TeamEntity,properties:{...Kt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},Ni={type:"object",nodeTypeName:xe.Entity,properties:{...Kt},required:["key","title","type"],additionalProperties:!1},hC=/{{\s*process\.env\.([A-Z0-9_]+)\s*(?:\|\|?\s*(?:"([^"]*)"|'([^']*)')\s*)?}}/i,rS=new RegExp(hC.source,"gi");var Be=Ne(Ft(),1);import{getLineColLocation as NT,lintDocument as qT,makeDocumentFromString as rs,lintConfig as OT,lintEntityFile as jT,detectSpec as LT,createConfigTypes as MT}from"@redocly/openapi-core";var es=Ne(jn(),1);function Xy(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(u){let d=i.get(u.uri),g=d?Date.now()-d:0;try{if(g<t&&g>=0)r.set(u.uri,setTimeout(()=>a(u),t-g));else if(r.delete(u.uri),i.delete(u.uri),!n){let b=s.get(u.uri),h=e(o.get(u.uri));b&&b.forEach(({resolve:D})=>D(h)),s.delete(u.uri)}}catch(b){let h=s.get(u.uri);h&&h.forEach(({reject:D})=>D(b)),s.delete(u.uri)}}function c(u){let d=r.get(u.uri),g=n&&!d;return i.set(u.uri,Date.now()),o.set(u.uri,u),new Promise((b,h)=>{let D=s.get(u.uri)||[];d||(s.set(u.uri,[...D,{resolve:b,reject:h}]),r.set(u.uri,setTimeout(()=>a(u),t))),g?b(e(o.get(u.uri))):s.set(u.uri,[...D,{resolve:b,reject:h}])})}return c}function ts(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 Zy(e){return e==="$ref"}function Xu(e,t){return e?K.dirname(Xe.file(e)).toString():t}async function Zu(e,t){let n=Xe.parse(t);return K.joinPath(n,e).toString()}async function eh(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await Zu(i,n)===t)return r}function th(e){return typeof e=="string"}function Kr(e){return typeof e=="function"}function nh(e){return e?.kind===es.Kind.MAP}function el(e){return e?.kind===es.Kind.MAPPING}function tl(e){return e?.kind===es.Kind.SEQ}function Gr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}import{bundleDocument as bT,isPlainObject as vT,makeDocumentFromString as PT,getTypes as xT,detectSpec as _T}from"@redocly/openapi-core";var rh=new Map,ns=new Map;function CT(e){return e?Array.from(e).map(([t,n])=>[t,ts(n)]):[]}async function nl(e,t){let n=await Vt(),r=new _t(n.resolve),i=PT(e.getText(),e.uri),o=_T(i.parsed),s=o==="oas3_2",a=s?"oas3_1":o,{bundle:c,rootType:u,refTypes:d}=await bT({document:i,config:n,externalRefResolver:r,types:xT(a)}),g=CT(d);d&&(ns=new Map([...ns,...d]));let b=vT(c.parsed)?c.parsed:{};rh.set(e.uri,{uri:e.uri,name:br(e.uri),definition:s?{...b,openapi:"3.1.0"}:b,specVersion:a,rootType:ts(u),refTypes:g,errors:t})}function RT(){return Array.from(rh).map(([e,{definition:t,specVersion:n,rootType:r,refTypes:i,errors:o}])=>({name:br(e),uri:e,definition:t,specVersion:n,rootType:r,refTypes:i,errors:o}))}function rl(e){return ns.get(e)??ns.get(we(e))??null}import{createConfig as ih,lintDocument as TT,loadIgnoreConfig as DT,regexFromString as wT}from"@redocly/openapi-core";async function oh(e,t,n,r,i,o){let s=[],a=await DT(r,t),c=typeof i=="string"?await ST(i):i,u={};if(n.targets?.length){let d=e.parsed?.info,g=d?.["x-metadata"]||{},b={title:d?.title,version:d?.version,...g,...o},h=AT(n.targets,b);h?.rules&&r&&(u=await kT(e.source.absoluteRef,h.rules,n.levels,c,r,a))}for(let d of n?.levels||[]){let g=u[d.name]??await ih({...d,plugins:c},{configPath:r,ignore:a}),b=await TT({document:e,externalRefResolver:t,config:g});s.push(...b.filter(({ignored:h})=>!h).map(h=>({...h,scorecardLevel:d.name})))}return s}async function ST(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){let n=t instanceof Error?t.message:String(t);return console.error("Failed to load plugins module:",n),console.error(`
|
|
70
|
-
Plugins code preview:`,e.substring(0,500)+"..."),[]}}async function
|
|
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 ot.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 ot.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(h){return typeof h<"u"}e.defined=n;function r(h){return typeof h>"u"}e.undefined=r;function i(h){return h===!0||h===!1}e.boolean=i;function o(h){return t.call(h)==="[object String]"}e.string=o;function s(h){return t.call(h)==="[object Number]"}e.number=s;function a(h,D,I){return t.call(h)==="[object Number]"&&D<=h&&h<=I}e.numberRange=a;function c(h){return t.call(h)==="[object Number]"&&-2147483648<=h&&h<=2147483647}e.integer=c;function u(h){return t.call(h)==="[object Number]"&&0<=h&&h<=2147483647}e.uinteger=u;function d(h){return t.call(h)==="[object Function]"}e.func=d;function g(h){return h!==null&&typeof h=="object"}e.objectLiteral=g;function b(h,D){return Array.isArray(h)&&h.every(D)}e.typedArray=b})(f||(f={}))});var ue=R(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ProtocolNotificationType=Ke.ProtocolNotificationType0=Ke.ProtocolRequestType=Ke.ProtocolRequestType0=Ke.RegistrationType=Ke.MessageDirection=void 0;var Jn=Pn(),mf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(mf||(Ke.MessageDirection=mf={}));var hu=class{constructor(t){this.method=t}};Ke.RegistrationType=hu;var bu=class extends Jn.RequestType0{constructor(t){super(t)}};Ke.ProtocolRequestType0=bu;var vu=class extends Jn.RequestType{constructor(t){super(t,Jn.ParameterStructures.byName)}};Ke.ProtocolRequestType=vu;var Pu=class extends Jn.NotificationType0{constructor(t){super(t)}};Ke.ProtocolNotificationType0=Pu;var xu=class extends Jn.NotificationType{constructor(t){super(t,Jn.ParameterStructures.byName)}};Ke.ProtocolNotificationType=xu});var co=R(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.objectLiteral=_e.typedArray=_e.stringArray=_e.array=_e.func=_e.error=_e.number=_e.string=_e.boolean=void 0;function KC(e){return e===!0||e===!1}_e.boolean=KC;function gf(e){return typeof e=="string"||e instanceof String}_e.string=gf;function GC(e){return typeof e=="number"||e instanceof Number}_e.number=GC;function QC(e){return e instanceof Error}_e.error=QC;function JC(e){return typeof e=="function"}_e.func=JC;function yf(e){return Array.isArray(e)}_e.array=yf;function XC(e){return yf(e)&&e.every(t=>gf(t))}_e.stringArray=XC;function ZC(e,t){return Array.isArray(e)&&e.every(t)}_e.typedArray=ZC;function eR(e){return e!==null&&typeof e=="object"}_e.objectLiteral=eR});var vf=R(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.ImplementationRequest=void 0;var hf=ue(),bf;(function(e){e.method="textDocument/implementation",e.messageDirection=hf.MessageDirection.clientToServer,e.type=new hf.ProtocolRequestType(e.method)})(bf||(uo.ImplementationRequest=bf={}))});var _f=R(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.TypeDefinitionRequest=void 0;var Pf=ue(),xf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=Pf.MessageDirection.clientToServer,e.type=new Pf.ProtocolRequestType(e.method)})(xf||(lo.TypeDefinitionRequest=xf={}))});var Tf=R(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.DidChangeWorkspaceFoldersNotification=Xn.WorkspaceFoldersRequest=void 0;var po=ue(),Cf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=po.MessageDirection.serverToClient,e.type=new po.ProtocolRequestType0(e.method)})(Cf||(Xn.WorkspaceFoldersRequest=Cf={}));var Rf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=po.MessageDirection.clientToServer,e.type=new po.ProtocolNotificationType(e.method)})(Rf||(Xn.DidChangeWorkspaceFoldersNotification=Rf={}))});var Sf=R(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.ConfigurationRequest=void 0;var Df=ue(),wf;(function(e){e.method="workspace/configuration",e.messageDirection=Df.MessageDirection.serverToClient,e.type=new Df.ProtocolRequestType(e.method)})(wf||(fo.ConfigurationRequest=wf={}))});var Ef=R(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.ColorPresentationRequest=Zn.DocumentColorRequest=void 0;var mo=ue(),kf;(function(e){e.method="textDocument/documentColor",e.messageDirection=mo.MessageDirection.clientToServer,e.type=new mo.ProtocolRequestType(e.method)})(kf||(Zn.DocumentColorRequest=kf={}));var Af;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=mo.MessageDirection.clientToServer,e.type=new mo.ProtocolRequestType(e.method)})(Af||(Zn.ColorPresentationRequest=Af={}))});var Of=R(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.FoldingRangeRefreshRequest=er.FoldingRangeRequest=void 0;var go=ue(),Nf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=go.MessageDirection.clientToServer,e.type=new go.ProtocolRequestType(e.method)})(Nf||(er.FoldingRangeRequest=Nf={}));var qf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=go.MessageDirection.serverToClient,e.type=new go.ProtocolRequestType0(e.method)})(qf||(er.FoldingRangeRefreshRequest=qf={}))});var Mf=R(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.DeclarationRequest=void 0;var jf=ue(),Lf;(function(e){e.method="textDocument/declaration",e.messageDirection=jf.MessageDirection.clientToServer,e.type=new jf.ProtocolRequestType(e.method)})(Lf||(yo.DeclarationRequest=Lf={}))});var Uf=R(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.SelectionRangeRequest=void 0;var If=ue(),Ff;(function(e){e.method="textDocument/selectionRange",e.messageDirection=If.MessageDirection.clientToServer,e.type=new If.ProtocolRequestType(e.method)})(Ff||(ho.SelectionRangeRequest=Ff={}))});var zf=R(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.WorkDoneProgressCancelNotification=Zt.WorkDoneProgressCreateRequest=Zt.WorkDoneProgress=void 0;var tR=Pn(),bo=ue(),Wf;(function(e){e.type=new tR.ProgressType;function t(n){return n===e.type}e.is=t})(Wf||(Zt.WorkDoneProgress=Wf={}));var Hf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=bo.MessageDirection.serverToClient,e.type=new bo.ProtocolRequestType(e.method)})(Hf||(Zt.WorkDoneProgressCreateRequest=Hf={}));var Bf;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=bo.MessageDirection.clientToServer,e.type=new bo.ProtocolNotificationType(e.method)})(Bf||(Zt.WorkDoneProgressCancelNotification=Bf={}))});var Kf=R(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.CallHierarchyOutgoingCallsRequest=en.CallHierarchyIncomingCallsRequest=en.CallHierarchyPrepareRequest=void 0;var tr=ue(),$f;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})($f||(en.CallHierarchyPrepareRequest=$f={}));var Yf;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Yf||(en.CallHierarchyIncomingCallsRequest=Yf={}));var Vf;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Vf||(en.CallHierarchyOutgoingCallsRequest=Vf={}))});var em=R(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.SemanticTokensRefreshRequest=Ge.SemanticTokensRangeRequest=Ge.SemanticTokensDeltaRequest=Ge.SemanticTokensRequest=Ge.SemanticTokensRegistrationType=Ge.TokenFormat=void 0;var It=ue(),Gf;(function(e){e.Relative="relative"})(Gf||(Ge.TokenFormat=Gf={}));var Ur;(function(e){e.method="textDocument/semanticTokens",e.type=new It.RegistrationType(e.method)})(Ur||(Ge.SemanticTokensRegistrationType=Ur={}));var Qf;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=It.MessageDirection.clientToServer,e.type=new It.ProtocolRequestType(e.method),e.registrationMethod=Ur.method})(Qf||(Ge.SemanticTokensRequest=Qf={}));var Jf;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=It.MessageDirection.clientToServer,e.type=new It.ProtocolRequestType(e.method),e.registrationMethod=Ur.method})(Jf||(Ge.SemanticTokensDeltaRequest=Jf={}));var Xf;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=It.MessageDirection.clientToServer,e.type=new It.ProtocolRequestType(e.method),e.registrationMethod=Ur.method})(Xf||(Ge.SemanticTokensRangeRequest=Xf={}));var Zf;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=It.MessageDirection.serverToClient,e.type=new It.ProtocolRequestType0(e.method)})(Zf||(Ge.SemanticTokensRefreshRequest=Zf={}))});var rm=R(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.ShowDocumentRequest=void 0;var tm=ue(),nm;(function(e){e.method="window/showDocument",e.messageDirection=tm.MessageDirection.serverToClient,e.type=new tm.ProtocolRequestType(e.method)})(nm||(vo.ShowDocumentRequest=nm={}))});var sm=R(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.LinkedEditingRangeRequest=void 0;var im=ue(),om;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=im.MessageDirection.clientToServer,e.type=new im.ProtocolRequestType(e.method)})(om||(Po.LinkedEditingRangeRequest=om={}))});var mm=R(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.WillDeleteFilesRequest=Fe.DidDeleteFilesNotification=Fe.DidRenameFilesNotification=Fe.WillRenameFilesRequest=Fe.DidCreateFilesNotification=Fe.WillCreateFilesRequest=Fe.FileOperationPatternKind=void 0;var st=ue(),am;(function(e){e.file="file",e.folder="folder"})(am||(Fe.FileOperationPatternKind=am={}));var cm;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=st.MessageDirection.clientToServer,e.type=new st.ProtocolRequestType(e.method)})(cm||(Fe.WillCreateFilesRequest=cm={}));var um;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=st.MessageDirection.clientToServer,e.type=new st.ProtocolNotificationType(e.method)})(um||(Fe.DidCreateFilesNotification=um={}));var lm;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=st.MessageDirection.clientToServer,e.type=new st.ProtocolRequestType(e.method)})(lm||(Fe.WillRenameFilesRequest=lm={}));var pm;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=st.MessageDirection.clientToServer,e.type=new st.ProtocolNotificationType(e.method)})(pm||(Fe.DidRenameFilesNotification=pm={}));var dm;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=st.MessageDirection.clientToServer,e.type=new st.ProtocolNotificationType(e.method)})(dm||(Fe.DidDeleteFilesNotification=dm={}));var fm;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=st.MessageDirection.clientToServer,e.type=new st.ProtocolRequestType(e.method)})(fm||(Fe.WillDeleteFilesRequest=fm={}))});var vm=R(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.MonikerRequest=tn.MonikerKind=tn.UniquenessLevel=void 0;var gm=ue(),ym;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(ym||(tn.UniquenessLevel=ym={}));var hm;(function(e){e.$import="import",e.$export="export",e.local="local"})(hm||(tn.MonikerKind=hm={}));var bm;(function(e){e.method="textDocument/moniker",e.messageDirection=gm.MessageDirection.clientToServer,e.type=new gm.ProtocolRequestType(e.method)})(bm||(tn.MonikerRequest=bm={}))});var Cm=R(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.TypeHierarchySubtypesRequest=nn.TypeHierarchySupertypesRequest=nn.TypeHierarchyPrepareRequest=void 0;var nr=ue(),Pm;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method)})(Pm||(nn.TypeHierarchyPrepareRequest=Pm={}));var xm;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method)})(xm||(nn.TypeHierarchySupertypesRequest=xm={}));var _m;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method)})(_m||(nn.TypeHierarchySubtypesRequest=_m={}))});var Dm=R(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.InlineValueRefreshRequest=rr.InlineValueRequest=void 0;var xo=ue(),Rm;(function(e){e.method="textDocument/inlineValue",e.messageDirection=xo.MessageDirection.clientToServer,e.type=new xo.ProtocolRequestType(e.method)})(Rm||(rr.InlineValueRequest=Rm={}));var Tm;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=xo.MessageDirection.serverToClient,e.type=new xo.ProtocolRequestType0(e.method)})(Tm||(rr.InlineValueRefreshRequest=Tm={}))});var Am=R(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.InlayHintRefreshRequest=rn.InlayHintResolveRequest=rn.InlayHintRequest=void 0;var ir=ue(),wm;(function(e){e.method="textDocument/inlayHint",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(wm||(rn.InlayHintRequest=wm={}));var Sm;(function(e){e.method="inlayHint/resolve",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(Sm||(rn.InlayHintResolveRequest=Sm={}));var km;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=ir.MessageDirection.serverToClient,e.type=new ir.ProtocolRequestType0(e.method)})(km||(rn.InlayHintRefreshRequest=km={}))});var Mm=R(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.DiagnosticRefreshRequest=at.WorkspaceDiagnosticRequest=at.DocumentDiagnosticRequest=at.DocumentDiagnosticReportKind=at.DiagnosticServerCancellationData=void 0;var Lm=Pn(),nR=co(),or=ue(),Em;(function(e){function t(n){let r=n;return r&&nR.boolean(r.retriggerRequest)}e.is=t})(Em||(at.DiagnosticServerCancellationData=Em={}));var Nm;(function(e){e.Full="full",e.Unchanged="unchanged"})(Nm||(at.DocumentDiagnosticReportKind=Nm={}));var qm;(function(e){e.method="textDocument/diagnostic",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method),e.partialResult=new Lm.ProgressType})(qm||(at.DocumentDiagnosticRequest=qm={}));var Om;(function(e){e.method="workspace/diagnostic",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method),e.partialResult=new Lm.ProgressType})(Om||(at.WorkspaceDiagnosticRequest=Om={}));var jm;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=or.MessageDirection.serverToClient,e.type=new or.ProtocolRequestType0(e.method)})(jm||(at.DiagnosticRefreshRequest=jm={}))});var zm=R(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.DidCloseNotebookDocumentNotification=ge.DidSaveNotebookDocumentNotification=ge.DidChangeNotebookDocumentNotification=ge.NotebookCellArrayChange=ge.DidOpenNotebookDocumentNotification=ge.NotebookDocumentSyncRegistrationType=ge.NotebookDocument=ge.NotebookCell=ge.ExecutionSummary=ge.NotebookCellKind=void 0;var Wr=(ao(),ii(so)),ht=co(),wt=ue(),_u;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(_u||(ge.NotebookCellKind=_u={}));var Cu;(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 ht.objectLiteral(o)&&Wr.uinteger.is(o.executionOrder)&&(o.success===void 0||ht.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})(Cu||(ge.ExecutionSummary=Cu={}));var _o;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ht.objectLiteral(s)&&_u.is(s.kind)&&Wr.DocumentUri.is(s.document)&&(s.metadata===void 0||ht.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)&&!Cu.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 u=0;u<o.length;u++)if(!i(o[u],s[u]))return!1}if(ht.objectLiteral(o)&&ht.objectLiteral(s)){let u=Object.keys(o),d=Object.keys(s);if(u.length!==d.length||(u.sort(),d.sort(),!i(u,d)))return!1;for(let g=0;g<u.length;g++){let b=u[g];if(!i(o[b],s[b]))return!1}}return!0}})(_o||(ge.NotebookCell=_o={}));var Im;(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 ht.objectLiteral(i)&&ht.string(i.uri)&&Wr.integer.is(i.version)&&ht.typedArray(i.cells,_o.is)}e.is=n})(Im||(ge.NotebookDocument=Im={}));var sr;(function(e){e.method="notebookDocument/sync",e.messageDirection=wt.MessageDirection.clientToServer,e.type=new wt.RegistrationType(e.method)})(sr||(ge.NotebookDocumentSyncRegistrationType=sr={}));var Fm;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=wt.MessageDirection.clientToServer,e.type=new wt.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Fm||(ge.DidOpenNotebookDocumentNotification=Fm={}));var Um;(function(e){function t(r){let i=r;return ht.objectLiteral(i)&&Wr.uinteger.is(i.start)&&Wr.uinteger.is(i.deleteCount)&&(i.cells===void 0||ht.typedArray(i.cells,_o.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})(Um||(ge.NotebookCellArrayChange=Um={}));var Wm;(function(e){e.method="notebookDocument/didChange",e.messageDirection=wt.MessageDirection.clientToServer,e.type=new wt.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Wm||(ge.DidChangeNotebookDocumentNotification=Wm={}));var Hm;(function(e){e.method="notebookDocument/didSave",e.messageDirection=wt.MessageDirection.clientToServer,e.type=new wt.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Hm||(ge.DidSaveNotebookDocumentNotification=Hm={}));var Bm;(function(e){e.method="notebookDocument/didClose",e.messageDirection=wt.MessageDirection.clientToServer,e.type=new wt.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Bm||(ge.DidCloseNotebookDocumentNotification=Bm={}))});var Vm=R(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.InlineCompletionRequest=void 0;var $m=ue(),Ym;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=$m.MessageDirection.clientToServer,e.type=new $m.ProtocolRequestType(e.method)})(Ym||(Co.InlineCompletionRequest=Ym={}))});var sy=R(l=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});l.WorkspaceSymbolRequest=l.CodeActionResolveRequest=l.CodeActionRequest=l.DocumentSymbolRequest=l.DocumentHighlightRequest=l.ReferencesRequest=l.DefinitionRequest=l.SignatureHelpRequest=l.SignatureHelpTriggerKind=l.HoverRequest=l.CompletionResolveRequest=l.CompletionRequest=l.CompletionTriggerKind=l.PublishDiagnosticsNotification=l.WatchKind=l.RelativePattern=l.FileChangeType=l.DidChangeWatchedFilesNotification=l.WillSaveTextDocumentWaitUntilRequest=l.WillSaveTextDocumentNotification=l.TextDocumentSaveReason=l.DidSaveTextDocumentNotification=l.DidCloseTextDocumentNotification=l.DidChangeTextDocumentNotification=l.TextDocumentContentChangeEvent=l.DidOpenTextDocumentNotification=l.TextDocumentSyncKind=l.TelemetryEventNotification=l.LogMessageNotification=l.ShowMessageRequest=l.ShowMessageNotification=l.MessageType=l.DidChangeConfigurationNotification=l.ExitNotification=l.ShutdownRequest=l.InitializedNotification=l.InitializeErrorCodes=l.InitializeRequest=l.WorkDoneProgressOptions=l.TextDocumentRegistrationOptions=l.StaticRegistrationOptions=l.PositionEncodingKind=l.FailureHandlingKind=l.ResourceOperationKind=l.UnregistrationRequest=l.RegistrationRequest=l.DocumentSelector=l.NotebookCellTextDocumentFilter=l.NotebookDocumentFilter=l.TextDocumentFilter=void 0;l.MonikerRequest=l.MonikerKind=l.UniquenessLevel=l.WillDeleteFilesRequest=l.DidDeleteFilesNotification=l.WillRenameFilesRequest=l.DidRenameFilesNotification=l.WillCreateFilesRequest=l.DidCreateFilesNotification=l.FileOperationPatternKind=l.LinkedEditingRangeRequest=l.ShowDocumentRequest=l.SemanticTokensRegistrationType=l.SemanticTokensRefreshRequest=l.SemanticTokensRangeRequest=l.SemanticTokensDeltaRequest=l.SemanticTokensRequest=l.TokenFormat=l.CallHierarchyPrepareRequest=l.CallHierarchyOutgoingCallsRequest=l.CallHierarchyIncomingCallsRequest=l.WorkDoneProgressCancelNotification=l.WorkDoneProgressCreateRequest=l.WorkDoneProgress=l.SelectionRangeRequest=l.DeclarationRequest=l.FoldingRangeRefreshRequest=l.FoldingRangeRequest=l.ColorPresentationRequest=l.DocumentColorRequest=l.ConfigurationRequest=l.DidChangeWorkspaceFoldersNotification=l.WorkspaceFoldersRequest=l.TypeDefinitionRequest=l.ImplementationRequest=l.ApplyWorkspaceEditRequest=l.ExecuteCommandRequest=l.PrepareRenameRequest=l.RenameRequest=l.PrepareSupportDefaultBehavior=l.DocumentOnTypeFormattingRequest=l.DocumentRangesFormattingRequest=l.DocumentRangeFormattingRequest=l.DocumentFormattingRequest=l.DocumentLinkResolveRequest=l.DocumentLinkRequest=l.CodeLensRefreshRequest=l.CodeLensResolveRequest=l.CodeLensRequest=l.WorkspaceSymbolResolveRequest=void 0;l.InlineCompletionRequest=l.DidCloseNotebookDocumentNotification=l.DidSaveNotebookDocumentNotification=l.DidChangeNotebookDocumentNotification=l.NotebookCellArrayChange=l.DidOpenNotebookDocumentNotification=l.NotebookDocumentSyncRegistrationType=l.NotebookDocument=l.NotebookCell=l.ExecutionSummary=l.NotebookCellKind=l.DiagnosticRefreshRequest=l.WorkspaceDiagnosticRequest=l.DocumentDiagnosticRequest=l.DocumentDiagnosticReportKind=l.DiagnosticServerCancellationData=l.InlayHintRefreshRequest=l.InlayHintResolveRequest=l.InlayHintRequest=l.InlineValueRefreshRequest=l.InlineValueRequest=l.TypeHierarchySupertypesRequest=l.TypeHierarchySubtypesRequest=l.TypeHierarchyPrepareRequest=void 0;var w=ue(),Km=(ao(),ii(so)),Ae=co(),rR=vf();Object.defineProperty(l,"ImplementationRequest",{enumerable:!0,get:function(){return rR.ImplementationRequest}});var iR=_f();Object.defineProperty(l,"TypeDefinitionRequest",{enumerable:!0,get:function(){return iR.TypeDefinitionRequest}});var ny=Tf();Object.defineProperty(l,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return ny.WorkspaceFoldersRequest}});Object.defineProperty(l,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return ny.DidChangeWorkspaceFoldersNotification}});var oR=Sf();Object.defineProperty(l,"ConfigurationRequest",{enumerable:!0,get:function(){return oR.ConfigurationRequest}});var ry=Ef();Object.defineProperty(l,"DocumentColorRequest",{enumerable:!0,get:function(){return ry.DocumentColorRequest}});Object.defineProperty(l,"ColorPresentationRequest",{enumerable:!0,get:function(){return ry.ColorPresentationRequest}});var iy=Of();Object.defineProperty(l,"FoldingRangeRequest",{enumerable:!0,get:function(){return iy.FoldingRangeRequest}});Object.defineProperty(l,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return iy.FoldingRangeRefreshRequest}});var sR=Mf();Object.defineProperty(l,"DeclarationRequest",{enumerable:!0,get:function(){return sR.DeclarationRequest}});var aR=Uf();Object.defineProperty(l,"SelectionRangeRequest",{enumerable:!0,get:function(){return aR.SelectionRangeRequest}});var Su=zf();Object.defineProperty(l,"WorkDoneProgress",{enumerable:!0,get:function(){return Su.WorkDoneProgress}});Object.defineProperty(l,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Su.WorkDoneProgressCreateRequest}});Object.defineProperty(l,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Su.WorkDoneProgressCancelNotification}});var ku=Kf();Object.defineProperty(l,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return ku.CallHierarchyIncomingCallsRequest}});Object.defineProperty(l,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return ku.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(l,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return ku.CallHierarchyPrepareRequest}});var ar=em();Object.defineProperty(l,"TokenFormat",{enumerable:!0,get:function(){return ar.TokenFormat}});Object.defineProperty(l,"SemanticTokensRequest",{enumerable:!0,get:function(){return ar.SemanticTokensRequest}});Object.defineProperty(l,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ar.SemanticTokensDeltaRequest}});Object.defineProperty(l,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ar.SemanticTokensRangeRequest}});Object.defineProperty(l,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ar.SemanticTokensRefreshRequest}});Object.defineProperty(l,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ar.SemanticTokensRegistrationType}});var cR=rm();Object.defineProperty(l,"ShowDocumentRequest",{enumerable:!0,get:function(){return cR.ShowDocumentRequest}});var uR=sm();Object.defineProperty(l,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return uR.LinkedEditingRangeRequest}});var Cn=mm();Object.defineProperty(l,"FileOperationPatternKind",{enumerable:!0,get:function(){return Cn.FileOperationPatternKind}});Object.defineProperty(l,"DidCreateFilesNotification",{enumerable:!0,get:function(){return Cn.DidCreateFilesNotification}});Object.defineProperty(l,"WillCreateFilesRequest",{enumerable:!0,get:function(){return Cn.WillCreateFilesRequest}});Object.defineProperty(l,"DidRenameFilesNotification",{enumerable:!0,get:function(){return Cn.DidRenameFilesNotification}});Object.defineProperty(l,"WillRenameFilesRequest",{enumerable:!0,get:function(){return Cn.WillRenameFilesRequest}});Object.defineProperty(l,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return Cn.DidDeleteFilesNotification}});Object.defineProperty(l,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return Cn.WillDeleteFilesRequest}});var Au=vm();Object.defineProperty(l,"UniquenessLevel",{enumerable:!0,get:function(){return Au.UniquenessLevel}});Object.defineProperty(l,"MonikerKind",{enumerable:!0,get:function(){return Au.MonikerKind}});Object.defineProperty(l,"MonikerRequest",{enumerable:!0,get:function(){return Au.MonikerRequest}});var Eu=Cm();Object.defineProperty(l,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Eu.TypeHierarchyPrepareRequest}});Object.defineProperty(l,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Eu.TypeHierarchySubtypesRequest}});Object.defineProperty(l,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Eu.TypeHierarchySupertypesRequest}});var oy=Dm();Object.defineProperty(l,"InlineValueRequest",{enumerable:!0,get:function(){return oy.InlineValueRequest}});Object.defineProperty(l,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return oy.InlineValueRefreshRequest}});var Nu=Am();Object.defineProperty(l,"InlayHintRequest",{enumerable:!0,get:function(){return Nu.InlayHintRequest}});Object.defineProperty(l,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Nu.InlayHintResolveRequest}});Object.defineProperty(l,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Nu.InlayHintRefreshRequest}});var Hr=Mm();Object.defineProperty(l,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Hr.DiagnosticServerCancellationData}});Object.defineProperty(l,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Hr.DocumentDiagnosticReportKind}});Object.defineProperty(l,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Hr.DocumentDiagnosticRequest}});Object.defineProperty(l,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Hr.WorkspaceDiagnosticRequest}});Object.defineProperty(l,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Hr.DiagnosticRefreshRequest}});var St=zm();Object.defineProperty(l,"NotebookCellKind",{enumerable:!0,get:function(){return St.NotebookCellKind}});Object.defineProperty(l,"ExecutionSummary",{enumerable:!0,get:function(){return St.ExecutionSummary}});Object.defineProperty(l,"NotebookCell",{enumerable:!0,get:function(){return St.NotebookCell}});Object.defineProperty(l,"NotebookDocument",{enumerable:!0,get:function(){return St.NotebookDocument}});Object.defineProperty(l,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return St.NotebookDocumentSyncRegistrationType}});Object.defineProperty(l,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return St.DidOpenNotebookDocumentNotification}});Object.defineProperty(l,"NotebookCellArrayChange",{enumerable:!0,get:function(){return St.NotebookCellArrayChange}});Object.defineProperty(l,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return St.DidChangeNotebookDocumentNotification}});Object.defineProperty(l,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return St.DidSaveNotebookDocumentNotification}});Object.defineProperty(l,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return St.DidCloseNotebookDocumentNotification}});var lR=Vm();Object.defineProperty(l,"InlineCompletionRequest",{enumerable:!0,get:function(){return lR.InlineCompletionRequest}});var Ru;(function(e){function t(n){let r=n;return Ae.string(r)||Ae.string(r.language)||Ae.string(r.scheme)||Ae.string(r.pattern)}e.is=t})(Ru||(l.TextDocumentFilter=Ru={}));var Tu;(function(e){function t(n){let r=n;return Ae.objectLiteral(r)&&(Ae.string(r.notebookType)||Ae.string(r.scheme)||Ae.string(r.pattern))}e.is=t})(Tu||(l.NotebookDocumentFilter=Tu={}));var Du;(function(e){function t(n){let r=n;return Ae.objectLiteral(r)&&(Ae.string(r.notebook)||Tu.is(r.notebook))&&(r.language===void 0||Ae.string(r.language))}e.is=t})(Du||(l.NotebookCellTextDocumentFilter=Du={}));var wu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Ae.string(r)&&!Ru.is(r)&&!Du.is(r))return!1;return!0}e.is=t})(wu||(l.DocumentSelector=wu={}));var Gm;(function(e){e.method="client/registerCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(Gm||(l.RegistrationRequest=Gm={}));var Qm;(function(e){e.method="client/unregisterCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(Qm||(l.UnregistrationRequest=Qm={}));var Jm;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(Jm||(l.ResourceOperationKind=Jm={}));var Xm;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(Xm||(l.FailureHandlingKind=Xm={}));var Zm;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(Zm||(l.PositionEncodingKind=Zm={}));var eg;(function(e){function t(n){let r=n;return r&&Ae.string(r.id)&&r.id.length>0}e.hasId=t})(eg||(l.StaticRegistrationOptions=eg={}));var tg;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||wu.is(r.documentSelector))}e.is=t})(tg||(l.TextDocumentRegistrationOptions=tg={}));var ng;(function(e){function t(r){let i=r;return Ae.objectLiteral(i)&&(i.workDoneProgress===void 0||Ae.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&Ae.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(ng||(l.WorkDoneProgressOptions=ng={}));var rg;(function(e){e.method="initialize",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(rg||(l.InitializeRequest=rg={}));var ig;(function(e){e.unknownProtocolVersion=1})(ig||(l.InitializeErrorCodes=ig={}));var og;(function(e){e.method="initialized",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(og||(l.InitializedNotification=og={}));var sg;(function(e){e.method="shutdown",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType0(e.method)})(sg||(l.ShutdownRequest=sg={}));var ag;(function(e){e.method="exit",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType0(e.method)})(ag||(l.ExitNotification=ag={}));var cg;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(cg||(l.DidChangeConfigurationNotification=cg={}));var ug;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(ug||(l.MessageType=ug={}));var lg;(function(e){e.method="window/showMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(lg||(l.ShowMessageNotification=lg={}));var pg;(function(e){e.method="window/showMessageRequest",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(pg||(l.ShowMessageRequest=pg={}));var dg;(function(e){e.method="window/logMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(dg||(l.LogMessageNotification=dg={}));var fg;(function(e){e.method="telemetry/event",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(fg||(l.TelemetryEventNotification=fg={}));var mg;(function(e){e.None=0,e.Full=1,e.Incremental=2})(mg||(l.TextDocumentSyncKind=mg={}));var gg;(function(e){e.method="textDocument/didOpen",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(gg||(l.DidOpenTextDocumentNotification=gg={}));var yg;(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})(yg||(l.TextDocumentContentChangeEvent=yg={}));var hg;(function(e){e.method="textDocument/didChange",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(hg||(l.DidChangeTextDocumentNotification=hg={}));var bg;(function(e){e.method="textDocument/didClose",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(bg||(l.DidCloseTextDocumentNotification=bg={}));var vg;(function(e){e.method="textDocument/didSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(vg||(l.DidSaveTextDocumentNotification=vg={}));var Pg;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(Pg||(l.TextDocumentSaveReason=Pg={}));var xg;(function(e){e.method="textDocument/willSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(xg||(l.WillSaveTextDocumentNotification=xg={}));var _g;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(_g||(l.WillSaveTextDocumentWaitUntilRequest=_g={}));var Cg;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Cg||(l.DidChangeWatchedFilesNotification=Cg={}));var Rg;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(Rg||(l.FileChangeType=Rg={}));var Tg;(function(e){function t(n){let r=n;return Ae.objectLiteral(r)&&(Km.URI.is(r.baseUri)||Km.WorkspaceFolder.is(r.baseUri))&&Ae.string(r.pattern)}e.is=t})(Tg||(l.RelativePattern=Tg={}));var Dg;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Dg||(l.WatchKind=Dg={}));var wg;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(wg||(l.PublishDiagnosticsNotification=wg={}));var Sg;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Sg||(l.CompletionTriggerKind=Sg={}));var kg;(function(e){e.method="textDocument/completion",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(kg||(l.CompletionRequest=kg={}));var Ag;(function(e){e.method="completionItem/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Ag||(l.CompletionResolveRequest=Ag={}));var Eg;(function(e){e.method="textDocument/hover",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Eg||(l.HoverRequest=Eg={}));var Ng;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Ng||(l.SignatureHelpTriggerKind=Ng={}));var qg;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(qg||(l.SignatureHelpRequest=qg={}));var Og;(function(e){e.method="textDocument/definition",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Og||(l.DefinitionRequest=Og={}));var jg;(function(e){e.method="textDocument/references",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(jg||(l.ReferencesRequest=jg={}));var Lg;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Lg||(l.DocumentHighlightRequest=Lg={}));var Mg;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Mg||(l.DocumentSymbolRequest=Mg={}));var Ig;(function(e){e.method="textDocument/codeAction",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Ig||(l.CodeActionRequest=Ig={}));var Fg;(function(e){e.method="codeAction/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Fg||(l.CodeActionResolveRequest=Fg={}));var Ug;(function(e){e.method="workspace/symbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Ug||(l.WorkspaceSymbolRequest=Ug={}));var Wg;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Wg||(l.WorkspaceSymbolResolveRequest=Wg={}));var Hg;(function(e){e.method="textDocument/codeLens",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Hg||(l.CodeLensRequest=Hg={}));var Bg;(function(e){e.method="codeLens/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Bg||(l.CodeLensResolveRequest=Bg={}));var zg;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType0(e.method)})(zg||(l.CodeLensRefreshRequest=zg={}));var $g;(function(e){e.method="textDocument/documentLink",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})($g||(l.DocumentLinkRequest=$g={}));var Yg;(function(e){e.method="documentLink/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Yg||(l.DocumentLinkResolveRequest=Yg={}));var Vg;(function(e){e.method="textDocument/formatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Vg||(l.DocumentFormattingRequest=Vg={}));var Kg;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Kg||(l.DocumentRangeFormattingRequest=Kg={}));var Gg;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Gg||(l.DocumentRangesFormattingRequest=Gg={}));var Qg;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Qg||(l.DocumentOnTypeFormattingRequest=Qg={}));var Jg;(function(e){e.Identifier=1})(Jg||(l.PrepareSupportDefaultBehavior=Jg={}));var Xg;(function(e){e.method="textDocument/rename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Xg||(l.RenameRequest=Xg={}));var Zg;(function(e){e.method="textDocument/prepareRename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Zg||(l.PrepareRenameRequest=Zg={}));var ey;(function(e){e.method="workspace/executeCommand",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ey||(l.ExecuteCommandRequest=ey={}));var ty;(function(e){e.method="workspace/applyEdit",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType("workspace/applyEdit")})(ty||(l.ApplyWorkspaceEditRequest=ty={}))});var cy=R(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.createProtocolConnection=void 0;var ay=Pn();function pR(e,t,n,r){return ay.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,ay.createMessageConnection)(e,t,n,r)}Ro.createProtocolConnection=pR});var ly=R(Qe=>{"use strict";var dR=Qe&&Qe.__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]})),To=Qe&&Qe.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&dR(t,e,n)};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.LSPErrorCodes=Qe.createProtocolConnection=void 0;To(Pn(),Qe);To((ao(),ii(so)),Qe);To(ue(),Qe);To(sy(),Qe);var fR=cy();Object.defineProperty(Qe,"createProtocolConnection",{enumerable:!0,get:function(){return fR.createProtocolConnection}});var uy;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(uy||(Qe.LSPErrorCodes=uy={}))});var Pe=R(kt=>{"use strict";var mR=kt&&kt.__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]})),py=kt&&kt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&mR(t,e,n)};Object.defineProperty(kt,"__esModule",{value:!0});kt.createProtocolConnection=void 0;var gR=mc();py(mc(),kt);py(ly(),kt);function yR(e,t,n,r){return(0,gR.createMessageConnection)(e,t,n,r)}kt.createProtocolConnection=yR});var Ou=R(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.SemanticTokensBuilder=on.SemanticTokensDiff=on.SemanticTokensFeature=void 0;var Do=Pe(),hR=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(Do.SemanticTokensRefreshRequest.type),on:t=>{let n=Do.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=Do.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=Do.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};on.SemanticTokensFeature=hR;var wo=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}]:[]}};on.SemanticTokensDiff=wo;var qu=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 wo(this._prevData,this._data).computeDiff()}:this.build()}};on.SemanticTokensBuilder=qu});var dy=R(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.InlineCompletionFeature=void 0;var bR=Pe(),vR=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(bR.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};So.InlineCompletionFeature=vR});var Lu=R(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.TextDocuments=void 0;var Rn=Pe(),ju=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new Rn.Emitter,this._onDidOpen=new Rn.Emitter,this._onDidClose=new Rn.Emitter,this._onDidSave=new Rn.Emitter,this._onWillSave=new Rn.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=Rn.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}))})),Rn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};ko.TextDocuments=ju});var Iu=R(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.NotebookDocuments=cr.NotebookSyncFeature=void 0;var ct=Pe(),fy=Lu(),PR=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(ct.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(ct.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(ct.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(ct.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};cr.NotebookSyncFeature=PR;var Ao=class e{onDidOpenTextDocument(t){return this.openHandler=t,ct.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,ct.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,ct.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}};Ao.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var Mu=class{constructor(t){t instanceof fy.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new fy.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new ct.Emitter,this._onDidChange=new ct.Emitter,this._onDidSave=new ct.Emitter,this._onDidClose=new ct.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 Ao,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 u=[],d=[],g=[],b=[];if(c.cells!==void 0){let U=c.cells;if(U.structure!==void 0){let y=U.structure.array;if(o.cells.splice(y.start,y.deleteCount,...y.cells!==void 0?y.cells:[]),U.structure.didOpen!==void 0)for(let m of U.structure.didOpen)n.openTextDocument({textDocument:m}),u.push(m.uri);if(U.structure.didClose)for(let m of U.structure.didClose)n.closeTextDocument({textDocument:m}),d.push(m.uri)}if(U.data!==void 0){let y=new Map(U.data.map(m=>[m.document,m]));for(let m=0;m<=o.cells.length;m++){let S=y.get(o.cells[m].document);if(S!==void 0){let Y=o.cells.splice(m,1,S);if(g.push({old:Y[0],new:S}),y.delete(S.document),y.size===0)break}}}if(U.textContent!==void 0)for(let y of U.textContent)n.changeTextDocument({textDocument:y.document,contentChanges:y.changes}),b.push(y.document.uri)}this.updateCellMap(o);let h={notebookDocument:o};a&&(h.metadata={old:s,new:o.metadata});let D=[];for(let U of u)D.push(this.getNotebookCell(U));let I=[];for(let U of d)I.push(this.getNotebookCell(U));let Q=[];for(let U of b)Q.push(this.getNotebookCell(U));(D.length>0||I.length>0||g.length>0||Q.length>0)&&(h.cells={added:D,removed:I,changed:{data:g,textContent:Q}}),(h.metadata!==void 0||h.cells!==void 0)&&this._onDidChange.fire(h)})),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)}})),ct.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};cr.NotebookDocuments=Mu});var Fu=R(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.thenable=Ce.typedArray=Ce.stringArray=Ce.array=Ce.func=Ce.error=Ce.number=Ce.string=Ce.boolean=void 0;function xR(e){return e===!0||e===!1}Ce.boolean=xR;function my(e){return typeof e=="string"||e instanceof String}Ce.string=my;function _R(e){return typeof e=="number"||e instanceof Number}Ce.number=_R;function CR(e){return e instanceof Error}Ce.error=CR;function gy(e){return typeof e=="function"}Ce.func=gy;function yy(e){return Array.isArray(e)}Ce.array=yy;function RR(e){return yy(e)&&e.every(t=>my(t))}Ce.stringArray=RR;function TR(e,t){return Array.isArray(e)&&e.every(t)}Ce.typedArray=TR;function DR(e){return e&&gy(e.then)}Ce.thenable=DR});var Uu=R(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.generateUuid=ut.parse=ut.isUUID=ut.v4=ut.empty=void 0;var Br=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},zr=class e extends Br{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(""))}};zr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];zr._timeHighBits=["8","9","a","b"];ut.empty=new Br("00000000-0000-0000-0000-000000000000");function hy(){return new zr}ut.v4=hy;var wR=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function by(e){return wR.test(e)}ut.isUUID=by;function SR(e){if(!by(e))throw new Error("invalid uuid");return new Br(e)}ut.parse=SR;function kR(){return hy().asHex()}ut.generateUuid=kR});var vy=R(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.attachPartialResult=an.ProgressFeature=an.attachWorkDone=void 0;var sn=Pe(),AR=Uu(),Tn=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(sn.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(sn.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(sn.WorkDoneProgress.type,this._token,{kind:"end"})}};Tn.Instances=new Map;var Eo=class extends Tn{constructor(t,n){super(t,n),this._source=new sn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},$r=class{constructor(){}begin(){}report(){}done(){}},No=class extends $r{constructor(){super(),this._source=new sn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function ER(e,t){if(t===void 0||t.workDoneToken===void 0)return new $r;let n=t.workDoneToken;return delete t.workDoneToken,new Tn(e,n)}an.attachWorkDone=ER;var NR=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(sn.WorkDoneProgressCancelNotification.type,n=>{let r=Tn.Instances.get(n.token);(r instanceof Eo||r instanceof No)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new $r:new Tn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,AR.generateUuid)();return this.connection.sendRequest(sn.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Eo(this.connection,t))}else return Promise.resolve(new No)}};an.ProgressFeature=NR;var Wu;(function(e){e.type=new sn.ProgressType})(Wu||(Wu={}));var Hu=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(Wu.type,this._token,t)}};function qR(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new Hu(e,n)}an.attachPartialResult=qR});var Py=R(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.ConfigurationFeature=void 0;var OR=Pe(),jR=Fu(),LR=e=>class extends e{getConfiguration(t){return t?jR.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(OR.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};qo.ConfigurationFeature=LR});var xy=R(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.WorkspaceFoldersFeature=void 0;var Oo=Pe(),MR=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Oo.Emitter,this.connection.onNotification(Oo.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(Oo.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(Oo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};jo.WorkspaceFoldersFeature=MR});var _y=R(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.CallHierarchyFeature=void 0;var Bu=Pe(),IR=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(Bu.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=Bu.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=Bu.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Lo.CallHierarchyFeature=IR});var Cy=R(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.ShowDocumentFeature=void 0;var FR=Pe(),UR=e=>class extends e{showDocument(t){return this.connection.sendRequest(FR.ShowDocumentRequest.type,t)}};Mo.ShowDocumentFeature=UR});var Ry=R(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.FileOperationsFeature=void 0;var ur=Pe(),WR=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(ur.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(ur.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(ur.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(ur.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(ur.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(ur.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};Io.FileOperationsFeature=WR});var Ty=R(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.LinkedEditingRangeFeature=void 0;var HR=Pe(),BR=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(HR.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};Fo.LinkedEditingRangeFeature=BR});var Dy=R(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.TypeHierarchyFeature=void 0;var zu=Pe(),zR=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(zu.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=zu.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=zu.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Uo.TypeHierarchyFeature=zR});var Sy=R(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.InlineValueFeature=void 0;var wy=Pe(),$R=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(wy.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(wy.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Wo.InlineValueFeature=$R});var Ay=R(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.FoldingRangeFeature=void 0;var ky=Pe(),YR=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(ky.FoldingRangeRefreshRequest.type),on:t=>{let n=ky.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Ho.FoldingRangeFeature=YR});var Ey=R(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.InlayHintFeature=void 0;var $u=Pe(),VR=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest($u.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest($u.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest($u.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};Bo.InlayHintFeature=VR});var Ny=R(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.DiagnosticFeature=void 0;var Yr=Pe(),KR=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Yr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Yr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Yr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Yr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Yr.WorkspaceDiagnosticRequest.partialResult,n)))}}};zo.DiagnosticFeature=KR});var qy=R($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.MonikerFeature=void 0;var GR=Pe(),QR=e=>class extends e{get moniker(){return{on:t=>{let n=GR.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};$o.MonikerFeature=QR});var Ky=R(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.createConnection=X.combineFeatures=X.combineNotebooksFeatures=X.combineLanguagesFeatures=X.combineWorkspaceFeatures=X.combineWindowFeatures=X.combineClientFeatures=X.combineTracerFeatures=X.combineTelemetryFeatures=X.combineConsoleFeatures=X._NotebooksImpl=X._LanguagesImpl=X.BulkUnregistration=X.BulkRegistration=X.ErrorMessageTracker=void 0;var E=Pe(),lt=Fu(),Vu=Uu(),B=vy(),JR=Py(),XR=xy(),ZR=_y(),eT=Ou(),tT=Cy(),nT=Ry(),rT=Ty(),iT=Dy(),oT=Sy(),sT=Ay(),aT=Ey(),cT=Ny(),uT=Iu(),lT=qy();function Yu(e){if(e!==null)return e}var Ku=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)})}};X.ErrorMessageTracker=Ku;var Yo=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(E.MessageType.Error,t)}warn(t){this.send(E.MessageType.Warning,t)}info(t){this.send(E.MessageType.Info,t)}log(t){this.send(E.MessageType.Log,t)}debug(t){this.send(E.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(E.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,E.RAL)().console.error("Sending log message failed")})}},Gu=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:E.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Yu)}showWarningMessage(t,...n){let r={type:E.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Yu)}showInformationMessage(t,...n){let r={type:E.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Yu)}},Oy=(0,tT.ShowDocumentFeature)((0,B.ProgressFeature)(Gu)),jy;(function(e){function t(){return new Vo}e.create=t})(jy||(X.BulkRegistration=jy={}));var Vo=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=lt.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=Vu.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Ly;(function(e){function t(){return new Vr(void 0,[])}e.create=t})(Ly||(X.BulkUnregistration=Ly={}));var Vr=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(E.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=lt.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(E.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},Ko=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 Vo?this.registerMany(t):t instanceof Vr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=lt.string(n)?n:n.method,o=Vu.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(E.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=lt.string(t)?t:t.method,i=Vu.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(E.RegistrationRequest.type,o).then(s=>E.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(E.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(E.RegistrationRequest.type,n).then(()=>new Vr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},Qu=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(E.ApplyWorkspaceEditRequest.type,r)}},My=(0,nT.FileOperationsFeature)((0,XR.WorkspaceFoldersFeature)((0,JR.ConfigurationFeature)(Qu))),Go=class{constructor(){this._trace=E.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!==E.Trace.Off&&this.connection.sendNotification(E.LogTraceNotification.type,{message:t,verbose:this._trace===E.Trace.Verbose?n:void 0}).catch(()=>{})}},Qo=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(E.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},Jo=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)}};X._LanguagesImpl=Jo;var Iy=(0,sT.FoldingRangeFeature)((0,lT.MonikerFeature)((0,cT.DiagnosticFeature)((0,aT.InlayHintFeature)((0,oT.InlineValueFeature)((0,iT.TypeHierarchyFeature)((0,rT.LinkedEditingRangeFeature)((0,eT.SemanticTokensFeature)((0,ZR.CallHierarchyFeature)(Jo))))))))),Xo=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)}};X._NotebooksImpl=Xo;var Fy=(0,uT.NotebookSyncFeature)(Xo);function Uy(e,t){return function(n){return t(e(n))}}X.combineConsoleFeatures=Uy;function Wy(e,t){return function(n){return t(e(n))}}X.combineTelemetryFeatures=Wy;function Hy(e,t){return function(n){return t(e(n))}}X.combineTracerFeatures=Hy;function By(e,t){return function(n){return t(e(n))}}X.combineClientFeatures=By;function zy(e,t){return function(n){return t(e(n))}}X.combineWindowFeatures=zy;function $y(e,t){return function(n){return t(e(n))}}X.combineWorkspaceFeatures=$y;function Yy(e,t){return function(n){return t(e(n))}}X.combineLanguagesFeatures=Yy;function Vy(e,t){return function(n){return t(e(n))}}X.combineNotebooksFeatures=Vy;function pT(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Uy),tracer:n(e.tracer,t.tracer,Hy),telemetry:n(e.telemetry,t.telemetry,Wy),client:n(e.client,t.client,By),window:n(e.window,t.window,zy),workspace:n(e.workspace,t.workspace,$y),languages:n(e.languages,t.languages,Yy),notebooks:n(e.notebooks,t.notebooks,Vy)}}X.combineFeatures=pT;function dT(e,t,n){let r=n&&n.console?new(n.console(Yo)):new Yo,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(Go)):new Go,s=n&&n.telemetry?new(n.telemetry(Qo)):new Qo,a=n&&n.client?new(n.client(Ko)):new Ko,c=n&&n.window?new(n.window(Oy)):new Oy,u=n&&n.workspace?new(n.workspace(My)):new My,d=n&&n.languages?new(n.languages(Iy)):new Iy,g=n&&n.notebooks?new(n.notebooks(Fy)):new Fy,b=[r,o,s,a,c,u,d,g];function h(y){return y instanceof Promise?y:lt.thenable(y)?new Promise((m,S)=>{y.then(Y=>m(Y),Y=>S(Y))}):Promise.resolve(y)}let D,I,Q,U={listen:()=>i.listen(),sendRequest:(y,...m)=>i.sendRequest(lt.string(y)?y:y.method,...m),onRequest:(y,m)=>i.onRequest(y,m),sendNotification:(y,m)=>{let S=lt.string(y)?y:y.method;return i.sendNotification(S,m)},onNotification:(y,m)=>i.onNotification(y,m),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:y=>(I=y,{dispose:()=>{I=void 0}}),onInitialized:y=>i.onNotification(E.InitializedNotification.type,y),onShutdown:y=>(D=y,{dispose:()=>{D=void 0}}),onExit:y=>(Q=y,{dispose:()=>{Q=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 u},get languages(){return d},get notebooks(){return g},onDidChangeConfiguration:y=>i.onNotification(E.DidChangeConfigurationNotification.type,y),onDidChangeWatchedFiles:y=>i.onNotification(E.DidChangeWatchedFilesNotification.type,y),__textDocumentSync:void 0,onDidOpenTextDocument:y=>i.onNotification(E.DidOpenTextDocumentNotification.type,y),onDidChangeTextDocument:y=>i.onNotification(E.DidChangeTextDocumentNotification.type,y),onDidCloseTextDocument:y=>i.onNotification(E.DidCloseTextDocumentNotification.type,y),onWillSaveTextDocument:y=>i.onNotification(E.WillSaveTextDocumentNotification.type,y),onWillSaveTextDocumentWaitUntil:y=>i.onRequest(E.WillSaveTextDocumentWaitUntilRequest.type,y),onDidSaveTextDocument:y=>i.onNotification(E.DidSaveTextDocumentNotification.type,y),sendDiagnostics:y=>i.sendNotification(E.PublishDiagnosticsNotification.type,y),onHover:y=>i.onRequest(E.HoverRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),void 0)),onCompletion:y=>i.onRequest(E.CompletionRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onCompletionResolve:y=>i.onRequest(E.CompletionResolveRequest.type,y),onSignatureHelp:y=>i.onRequest(E.SignatureHelpRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),void 0)),onDeclaration:y=>i.onRequest(E.DeclarationRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onDefinition:y=>i.onRequest(E.DefinitionRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onTypeDefinition:y=>i.onRequest(E.TypeDefinitionRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onImplementation:y=>i.onRequest(E.ImplementationRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onReferences:y=>i.onRequest(E.ReferencesRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onDocumentHighlight:y=>i.onRequest(E.DocumentHighlightRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onDocumentSymbol:y=>i.onRequest(E.DocumentSymbolRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onWorkspaceSymbol:y=>i.onRequest(E.WorkspaceSymbolRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onWorkspaceSymbolResolve:y=>i.onRequest(E.WorkspaceSymbolResolveRequest.type,y),onCodeAction:y=>i.onRequest(E.CodeActionRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onCodeActionResolve:y=>i.onRequest(E.CodeActionResolveRequest.type,(m,S)=>y(m,S)),onCodeLens:y=>i.onRequest(E.CodeLensRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onCodeLensResolve:y=>i.onRequest(E.CodeLensResolveRequest.type,(m,S)=>y(m,S)),onDocumentFormatting:y=>i.onRequest(E.DocumentFormattingRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),void 0)),onDocumentRangeFormatting:y=>i.onRequest(E.DocumentRangeFormattingRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),void 0)),onDocumentOnTypeFormatting:y=>i.onRequest(E.DocumentOnTypeFormattingRequest.type,(m,S)=>y(m,S)),onRenameRequest:y=>i.onRequest(E.RenameRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),void 0)),onPrepareRename:y=>i.onRequest(E.PrepareRenameRequest.type,(m,S)=>y(m,S)),onDocumentLinks:y=>i.onRequest(E.DocumentLinkRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onDocumentLinkResolve:y=>i.onRequest(E.DocumentLinkResolveRequest.type,(m,S)=>y(m,S)),onDocumentColor:y=>i.onRequest(E.DocumentColorRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onColorPresentation:y=>i.onRequest(E.ColorPresentationRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onFoldingRanges:y=>i.onRequest(E.FoldingRangeRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onSelectionRanges:y=>i.onRequest(E.SelectionRangeRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),(0,B.attachPartialResult)(i,m))),onExecuteCommand:y=>i.onRequest(E.ExecuteCommandRequest.type,(m,S)=>y(m,S,(0,B.attachWorkDone)(i,m),void 0)),dispose:()=>i.dispose()};for(let y of b)y.attach(U);return i.onRequest(E.InitializeRequest.type,y=>{t.initialize(y),lt.string(y.trace)&&(o.trace=E.Trace.fromString(y.trace));for(let m of b)m.initialize(y.capabilities);if(I){let m=I(y,new E.CancellationTokenSource().token,(0,B.attachWorkDone)(i,y),void 0);return h(m).then(S=>{if(S instanceof E.ResponseError)return S;let Y=S;Y||(Y={capabilities:{}});let te=Y.capabilities;te||(te={},Y.capabilities=te),te.textDocumentSync===void 0||te.textDocumentSync===null?te.textDocumentSync=lt.number(U.__textDocumentSync)?U.__textDocumentSync:E.TextDocumentSyncKind.None:!lt.number(te.textDocumentSync)&&!lt.number(te.textDocumentSync.change)&&(te.textDocumentSync.change=lt.number(U.__textDocumentSync)?U.__textDocumentSync:E.TextDocumentSyncKind.None);for(let pt of b)pt.fillServerCapabilities(te);return Y})}else{let m={capabilities:{textDocumentSync:E.TextDocumentSyncKind.None}};for(let S of b)S.fillServerCapabilities(m.capabilities);return m}}),i.onRequest(E.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,D)return D(new E.CancellationTokenSource().token)}),i.onNotification(E.ExitNotification.type,()=>{try{Q&&Q()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(E.SetTraceNotification.type,y=>{o.trace=E.Trace.fromString(y.value)}),U}X.createConnection=dT});var Ju=R(Ue=>{"use strict";var fT=Ue&&Ue.__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]})),Qy=Ue&&Ue.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&fT(t,e,n)};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.ProposedFeatures=Ue.NotebookDocuments=Ue.TextDocuments=Ue.SemanticTokensBuilder=void 0;var mT=Ou();Object.defineProperty(Ue,"SemanticTokensBuilder",{enumerable:!0,get:function(){return mT.SemanticTokensBuilder}});var gT=dy();Qy(Pe(),Ue);var yT=Lu();Object.defineProperty(Ue,"TextDocuments",{enumerable:!0,get:function(){return yT.TextDocuments}});var hT=Iu();Object.defineProperty(Ue,"NotebookDocuments",{enumerable:!0,get:function(){return hT.NotebookDocuments}});Qy(Ky(),Ue);var Gy;(function(e){e.all={__brand:"features",languages:gT.InlineCompletionFeature}})(Gy||(Ue.ProposedFeatures=Gy={}))});var Xy=R((jk,Jy)=>{"use strict";Jy.exports=Pe()});var es=R(At=>{"use strict";var bT=At&&At.__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]})),eh=At&&At.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&bT(t,e,n)};Object.defineProperty(At,"__esModule",{value:!0});At.createConnection=void 0;var Zo=Ju();eh(Xy(),At);eh(Ju(),At);var Zy=!1,vT={initialize:e=>{},get shutdownReceived(){return Zy},set shutdownReceived(e){Zy=e},exit:e=>{}};function PT(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),Zo.ConnectionStrategy.is(e)||Zo.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=u=>(0,Zo.createProtocolConnection)(o,s,u,a);return(0,Zo.createConnection)(c,vT,i)}At.createConnection=PT});var Ft=R((Mk,th)=>{"use strict";th.exports=es()});var ml=R((x1,hh)=>{"use strict";function Nt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function yh(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 xD(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 fr={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),Nt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=yh(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Nt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=yh(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Nt(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];Nt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":fr.normalize(t)},relative:function(t,n){if(Nt(t),Nt(n),t===n||(t=fr.resolve(t),n=fr.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,u=o<c?o:c,d=-1,g=0;g<=u;++g){if(g===u){if(c>u){if(n.charCodeAt(s+g)===47)return n.slice(s+g+1);if(g===0)return n.slice(s+g)}else o>u&&(t.charCodeAt(r+g)===47?d=g:g===0&&(d=0));break}var b=t.charCodeAt(r+g),h=n.charCodeAt(s+g);if(b!==h)break;b===47&&(d=g)}var D="";for(g=r+d+1;g<=i;++g)(g===i||t.charCodeAt(g)===47)&&(D.length===0?D+="..":D+="/..");return D.length>0?D+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(Nt(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');Nt(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 u=t.charCodeAt(s);if(u===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(u===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){Nt(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 xD("/",t)},parse:function(t){Nt(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,u=!0,d=t.length-1,g=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!u){a=d+1;break}continue}c===-1&&(u=!1,c=d+1),r===46?s===-1?s=d:g!==1&&(g=1):s!==-1&&(g=-1)}return s===-1||c===-1||g===0||g===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};fr.posix=fr;hh.exports=fr});import{createConfig as Zp,loadConfig as XP,loadIgnoreConfig as ZP,DEFAULT_CONFIG as ex,IGNORE_FILE as tx}from"@redocly/openapi-core";var Pl;(()=>{"use strict";var e={975:k=>{function v(x){if(typeof x!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(x))}function O(x,C){for(var T,q="",L=0,N=-1,$=0,V=0;V<=x.length;++V){if(V<x.length)T=x.charCodeAt(V);else{if(T===47)break;T=47}if(T===47){if(!(N===V-1||$===1))if(N!==V-1&&$===2){if(q.length<2||L!==2||q.charCodeAt(q.length-1)!==46||q.charCodeAt(q.length-2)!==46){if(q.length>2){var De=q.lastIndexOf("/");if(De!==q.length-1){De===-1?(q="",L=0):L=(q=q.slice(0,De)).length-1-q.lastIndexOf("/"),N=V,$=0;continue}}else if(q.length===2||q.length===1){q="",L=0,N=V,$=0;continue}}C&&(q.length>0?q+="/..":q="..",L=2)}else q.length>0?q+="/"+x.slice(N+1,V):q=x.slice(N+1,V),L=V-N-1;N=V,$=0}else T===46&&$!==-1?++$:$=-1}return q}var j={resolve:function(){for(var x,C="",T=!1,q=arguments.length-1;q>=-1&&!T;q--){var L;q>=0?L=arguments[q]:(x===void 0&&(x=process.cwd()),L=x),v(L),L.length!==0&&(C=L+"/"+C,T=L.charCodeAt(0)===47)}return C=O(C,!T),T?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(x){if(v(x),x.length===0)return".";var C=x.charCodeAt(0)===47,T=x.charCodeAt(x.length-1)===47;return(x=O(x,!C)).length!==0||C||(x="."),x.length>0&&T&&(x+="/"),C?"/"+x:x},isAbsolute:function(x){return v(x),x.length>0&&x.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var x,C=0;C<arguments.length;++C){var T=arguments[C];v(T),T.length>0&&(x===void 0?x=T:x+="/"+T)}return x===void 0?".":j.normalize(x)},relative:function(x,C){if(v(x),v(C),x===C||(x=j.resolve(x))===(C=j.resolve(C)))return"";for(var T=1;T<x.length&&x.charCodeAt(T)===47;++T);for(var q=x.length,L=q-T,N=1;N<C.length&&C.charCodeAt(N)===47;++N);for(var $=C.length-N,V=L<$?L:$,De=-1,re=0;re<=V;++re){if(re===V){if($>V){if(C.charCodeAt(N+re)===47)return C.slice(N+re+1);if(re===0)return C.slice(N+re)}else L>V&&(x.charCodeAt(T+re)===47?De=re:re===0&&(De=0));break}var dt=x.charCodeAt(T+re);if(dt!==C.charCodeAt(N+re))break;dt===47&&(De=re)}var ln="";for(re=T+De+1;re<=q;++re)re!==q&&x.charCodeAt(re)!==47||(ln.length===0?ln+="..":ln+="/..");return ln.length>0?ln+C.slice(N+De):(N+=De,C.charCodeAt(N)===47&&++N,C.slice(N))},_makeLong:function(x){return x},dirname:function(x){if(v(x),x.length===0)return".";for(var C=x.charCodeAt(0),T=C===47,q=-1,L=!0,N=x.length-1;N>=1;--N)if((C=x.charCodeAt(N))===47){if(!L){q=N;break}}else L=!1;return q===-1?T?"/":".":T&&q===1?"//":x.slice(0,q)},basename:function(x,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');v(x);var T,q=0,L=-1,N=!0;if(C!==void 0&&C.length>0&&C.length<=x.length){if(C.length===x.length&&C===x)return"";var $=C.length-1,V=-1;for(T=x.length-1;T>=0;--T){var De=x.charCodeAt(T);if(De===47){if(!N){q=T+1;break}}else V===-1&&(N=!1,V=T+1),$>=0&&(De===C.charCodeAt($)?--$==-1&&(L=T):($=-1,L=V))}return q===L?L=V:L===-1&&(L=x.length),x.slice(q,L)}for(T=x.length-1;T>=0;--T)if(x.charCodeAt(T)===47){if(!N){q=T+1;break}}else L===-1&&(N=!1,L=T+1);return L===-1?"":x.slice(q,L)},extname:function(x){v(x);for(var C=-1,T=0,q=-1,L=!0,N=0,$=x.length-1;$>=0;--$){var V=x.charCodeAt($);if(V!==47)q===-1&&(L=!1,q=$+1),V===46?C===-1?C=$:N!==1&&(N=1):C!==-1&&(N=-1);else if(!L){T=$+1;break}}return C===-1||q===-1||N===0||N===1&&C===q-1&&C===T+1?"":x.slice(C,q)},format:function(x){if(x===null||typeof x!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof x);return(function(C,T){var q=T.dir||T.root,L=T.base||(T.name||"")+(T.ext||"");return q?q===T.root?q+L:q+"/"+L:L})(0,x)},parse:function(x){v(x);var C={root:"",dir:"",base:"",ext:"",name:""};if(x.length===0)return C;var T,q=x.charCodeAt(0),L=q===47;L?(C.root="/",T=1):T=0;for(var N=-1,$=0,V=-1,De=!0,re=x.length-1,dt=0;re>=T;--re)if((q=x.charCodeAt(re))!==47)V===-1&&(De=!1,V=re+1),q===46?N===-1?N=re:dt!==1&&(dt=1):N!==-1&&(dt=-1);else if(!De){$=re+1;break}return N===-1||V===-1||dt===0||dt===1&&N===V-1&&N===$+1?V!==-1&&(C.base=C.name=$===0&&L?x.slice(1,V):x.slice($,V)):($===0&&L?(C.name=x.slice(1,N),C.base=x.slice(1,V)):(C.name=x.slice($,N),C.base=x.slice($,V)),C.ext=x.slice(N,V)),$>0?C.dir=x.slice(0,$-1):L&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var v=t[k];if(v!==void 0)return v.exports;var O=t[k]={exports:{}};return e[k](O,O.exports,n),O.exports}n.d=(k,v)=>{for(var O in v)n.o(v,O)&&!n.o(k,O)&&Object.defineProperty(k,O,{enumerable:!0,get:v[O]})},n.o=(k,v)=>Object.prototype.hasOwnProperty.call(k,v),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:()=>b,Utils:()=>wn}),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,v){if(!k.scheme&&v)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 u="",d="/",g=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class b{static isUri(v){return v instanceof b||!!v&&typeof v.authority=="string"&&typeof v.fragment=="string"&&typeof v.path=="string"&&typeof v.query=="string"&&typeof v.scheme=="string"&&typeof v.fsPath=="string"&&typeof v.with=="function"&&typeof v.toString=="function"}scheme;authority;path;query;fragment;constructor(v,O,j,x,C,T=!1){typeof v=="object"?(this.scheme=v.scheme||u,this.authority=v.authority||u,this.path=v.path||u,this.query=v.query||u,this.fragment=v.fragment||u):(this.scheme=(function(q,L){return q||L?q:"file"})(v,T),this.authority=O||u,this.path=(function(q,L){switch(q){case"https":case"http":case"file":L?L[0]!==d&&(L=d+L):L=d}return L})(this.scheme,j||u),this.query=x||u,this.fragment=C||u,c(this,T))}get fsPath(){return y(this,!1)}with(v){if(!v)return this;let{scheme:O,authority:j,path:x,query:C,fragment:T}=v;return O===void 0?O=this.scheme:O===null&&(O=u),j===void 0?j=this.authority:j===null&&(j=u),x===void 0?x=this.path:x===null&&(x=u),C===void 0?C=this.query:C===null&&(C=u),T===void 0?T=this.fragment:T===null&&(T=u),O===this.scheme&&j===this.authority&&x===this.path&&C===this.query&&T===this.fragment?this:new D(O,j,x,C,T)}static parse(v,O=!1){let j=g.exec(v);return j?new D(j[2]||u,te(j[4]||u),te(j[5]||u),te(j[7]||u),te(j[9]||u),O):new D(u,u,u,u,u)}static file(v){let O=u;if(i&&(v=v.replace(/\\/g,d)),v[0]===d&&v[1]===d){let j=v.indexOf(d,2);j===-1?(O=v.substring(2),v=d):(O=v.substring(2,j),v=v.substring(j)||d)}return new D("file",O,v,u,u)}static from(v){let O=new D(v.scheme,v.authority,v.path,v.query,v.fragment);return c(O,!0),O}toString(v=!1){return m(this,v)}toJSON(){return this}static revive(v){if(v){if(v instanceof b)return v;{let O=new D(v);return O._formatted=v.external,O._fsPath=v._sep===h?v.fsPath:null,O}}return v}}let h=i?1:void 0;class D extends b{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=y(this,!1)),this._fsPath}toString(v=!1){return v?m(this,!0):(this._formatted||(this._formatted=m(this,!1)),this._formatted)}toJSON(){let v={$mid:1};return this._fsPath&&(v.fsPath=this._fsPath,v._sep=h),this._formatted&&(v.external=this._formatted),this.path&&(v.path=this.path),this.scheme&&(v.scheme=this.scheme),this.authority&&(v.authority=this.authority),this.query&&(v.query=this.query),this.fragment&&(v.fragment=this.fragment),v}}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 Q(k,v,O){let j,x=-1;for(let C=0;C<k.length;C++){let T=k.charCodeAt(C);if(T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===45||T===46||T===95||T===126||v&&T===47||O&&T===91||O&&T===93||O&&T===58)x!==-1&&(j+=encodeURIComponent(k.substring(x,C)),x=-1),j!==void 0&&(j+=k.charAt(C));else{j===void 0&&(j=k.substr(0,C));let q=I[T];q!==void 0?(x!==-1&&(j+=encodeURIComponent(k.substring(x,C)),x=-1),j+=q):x===-1&&(x=C)}}return x!==-1&&(j+=encodeURIComponent(k.substring(x))),j!==void 0?j:k}function U(k){let v;for(let O=0;O<k.length;O++){let j=k.charCodeAt(O);j===35||j===63?(v===void 0&&(v=k.substr(0,O)),v+=I[j]):v!==void 0&&(v+=k[O])}return v!==void 0?v:k}function y(k,v){let O;return O=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?v?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(O=O.replace(/\//g,"\\")),O}function m(k,v){let O=v?U:Q,j="",{scheme:x,authority:C,path:T,query:q,fragment:L}=k;if(x&&(j+=x,j+=":"),(C||x==="file")&&(j+=d,j+=d),C){let N=C.indexOf("@");if(N!==-1){let $=C.substr(0,N);C=C.substr(N+1),N=$.lastIndexOf(":"),N===-1?j+=O($,!1,!1):(j+=O($.substr(0,N),!1,!1),j+=":",j+=O($.substr(N+1),!1,!0)),j+="@"}C=C.toLowerCase(),N=C.lastIndexOf(":"),N===-1?j+=O(C,!1,!0):(j+=O(C.substr(0,N),!1,!0),j+=C.substr(N))}if(T){if(T.length>=3&&T.charCodeAt(0)===47&&T.charCodeAt(2)===58){let N=T.charCodeAt(1);N>=65&&N<=90&&(T=`/${String.fromCharCode(N+32)}:${T.substr(3)}`)}else if(T.length>=2&&T.charCodeAt(1)===58){let N=T.charCodeAt(0);N>=65&&N<=90&&(T=`${String.fromCharCode(N+32)}:${T.substr(2)}`)}j+=O(T,!0,!1)}return q&&(j+="?",j+=O(q,!1,!1)),L&&(j+="#",j+=v?L:Q(L,!1,!1)),j}function S(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+S(k.substr(3)):k}}let Y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function te(k){return k.match(Y)?k.replace(Y,(v=>S(v))):k}var pt=n(975);let Wt=pt.posix||pt,un="/";var wn;(function(k){k.joinPath=function(v,...O){return v.with({path:Wt.join(v.path,...O)})},k.resolvePath=function(v,...O){let j=v.path,x=!1;j[0]!==un&&(j=un+j,x=!0);let C=Wt.resolve(j,...O);return x&&C[0]===un&&!v.authority&&(C=C.substring(1)),v.with({path:C})},k.dirname=function(v){if(v.path.length===0||v.path===un)return v;let O=Wt.dirname(v.path);return O.length===1&&O.charCodeAt(0)===46&&(O=""),v.with({path:O})},k.basename=function(v){return Wt.basename(v.path)},k.extname=function(v){return Wt.extname(v.path)}})(wn||(wn={})),Pl=r})();var{URI:Xe,Utils:K}=Pl;import{isBrowser as fb}from"@redocly/openapi-core";import{CONFIG_FILE_NAME as db}from"@redocly/openapi-core";var xs={languageId:"yaml",filePattern:/\.ya?ml$/i},_s={languageId:"json",filePattern:/\.json$/i},Ps=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[xs,_s];this.registerConfigFinder(async t=>{if(this._fs)try{let n=K.resolvePath(K.dirname(He(t)),db);return await this._fs.exists(n)?we(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}},ce=new Ps;function yr(e,t){let n=r=>K.resolvePath(He(qt(r))).toString();return n(e)===n(t)}function He(e){return Xe.parse(e)}function qt(e){return e.startsWith("file://")?e:Xe.file(e).toString()}function we(e){let t=Xe.parse(e).fsPath;return fb&&t.startsWith("/")?t.slice(1):t}function hr(e){let t=["https","http"],{scheme:n}=Xe.parse(e);return t.includes(n)}function br(e){return K.basename(He(e))}async function xl(e,t="/"){let n=K.resolvePath(He(t));for(;e.path!=="/";)try{(await ce.fs.stat(K.resolvePath(n,e.path))).isDirectory()||(e=K.dirname(e));break}catch{e=K.dirname(e)}return e}import{BaseResolver as QP,Source as Xp,readFileFromUrl as JP,isAbsoluteUrl as Xs}from"@redocly/openapi-core";var oi=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=Rl(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),u=this._lineOffsets,d=_l(r.text,!1,o);if(c-a===d.length)for(let b=0,h=d.length;b<h;b++)u[b+a+1]=d[b];else d.length<1e4?u.splice(a+1,c-a,...d):this._lineOffsets=u=u.slice(0,a+1).concat(d,u.slice(c+1));let g=r.text.length-(s-o);if(g!==0)for(let b=a+1+d.length,h=u.length;b<h;b++)u[b]=u[b]+g}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=_l(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&&Cl(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}},si;(function(e){function t(i,o,s,a){return new oi(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof oi)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=Cs(o.map(mb),(d,g)=>{let b=d.range.start.line-g.range.start.line;return b===0?d.range.start.character-g.range.start.character:b}),c=0,u=[];for(let d of a){let g=i.offsetAt(d.range.start);if(g<c)throw new Error("Overlapping edit");g>c&&u.push(s.substring(c,g)),d.newText.length&&u.push(d.newText),c=i.offsetAt(d.range.end)}return u.push(s.substr(c)),u.join("")}e.applyEdits=r})(si||(si={}));function Cs(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);Cs(r,t),Cs(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 _l(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);Cl(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Cl(e){return e===13||e===10}function Rl(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 mb(e){let t=Rl(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var bi=Ne(jn(),1),Qp=new Map;function Jp(e,t){return Qp.set(e,t)}function Js(e){let t=[];for(let[n,r]of Qp.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function et(e){let t=ce.documents.get(e);if(t)return t;let n=await ce.fs.readFile(He(e),"utf-8");return si.create(e,"yaml",1,n)}function Cr(e){return _s.filePattern.test(e)}function vi(e){return xs.filePattern.test(e)}function yn({uri:e,ast:t,textDocument:n}){if(!(vi(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=bi.safeLoad(i,{filename:e})}if(t?.kind===bi.Kind.MAP){let i=["openapi","swagger","asyncapi","arazzo"];for(let o of t.mappings){let s=o.key?.value;if(i.includes(s))return!1}}return!0}var _t=class extends QP{resolveExternalRef(t,n){return Xs(n)?n:t&&Xs(t)?new URL(n,t).href:t?K.resolvePath(K.dirname(He(qt(t))),n).toString():n}async loadExternalRef(t){if(hr(t)){let{body:i,mimeType:o}=await JP(t,{...this.config.http,customFetch:fetch});return new Xp(t,i,o)}let n=qt(t),r=Xs(t)?we(t):t;return new Xp(r,(await et(n)).getText())}};var Yt;async function Pi(e,t){let n=!1;try{let r=new _t,i=e?await ce.findConfig(e):void 0;if(i===void 0){let o=await ZP(i,r);Yt=await Zp(ex,{externalRefResolver:r,ignore:o})}else Yt=await XP({configPath:i,externalRefResolver:r})}catch(r){n=!0;let i=r instanceof Error?r.message:String(r);t?.createEventHandleLoadConfigError?.(i),Yt=await Zp({})}return{config:Yt,loadFailed:n}}async function Vt(e){return Yt||(await Pi(e)).config}async function hn(e){return await Zs(e)?!0:!!Yt?.resolvedRefMap&&[...Yt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>yr(br(qt(e)),n))}async function Zs(e){let t=await ce.findConfig(e);return t?yr(e,t):!1}function nx(e){return e.endsWith(tx)}import{clearPluginsCache as ax}from"@redocly/openapi-core";var ed=new Set([".js",".mjs",".cjs",".ts"]),rx=/(?:\brequire\(|\b(?:import|export)\b[^'"]*?\bfrom\s+)['"](\.[^'"]+)['"]/g,ix=/\/\*[\s\S]*?\*\/|\/\/[^\n]*/g;async function ox(e){let t=e.resolvedConfig?.plugins;if(!e.configPath||!t?.length)return[];let{fs:n}=ce,r=K.dirname(Xe.file(e.configPath)),i=new Set;async function o(a){if(K.extname(a))return await n.exists(a)?a:void 0;let c=K.dirname(a),u=K.basename(a),d=await n.readDir(c).catch(()=>[]);for(let g of ed)if(d.includes(u+g))return K.joinPath(c,u+g)}async function s(a){if(i.has(a.toString())||!await n.exists(a)||(i.add(a.toString()),!ed.has(K.extname(a))))return;let c=(await n.readFile(a,"utf-8")).replace(ix,""),u=K.dirname(a);for(let[,d]of c.matchAll(rx)){let g=await o(K.resolvePath(u,d));g&&await s(g)}}for(let a of t)await s(K.resolvePath(r,a.replace(/\\/g,"/")));return[...i].map(a=>Xe.parse(a).fsPath)}function sx(e,t){return t.some(n=>yr(n,e))}var xd={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Rr={type:"object",properties:xd,additionalProperties:!1},cx={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},wi={type:"object",properties:{hide:{type:"boolean"},type:{type:"string",enum:["rating","sentiment","comment","mood","scale"]},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"]},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:{...xd,like:Rr,dislike:Rr,satisfied:Rr,neutral:Rr,dissatisfied:Rr},additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean"},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},ux={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string"},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},ra={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},td={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:wi,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ra,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:ux,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},G={type:"string",uiHint:"color"},it={nodeTypeName:void 0,type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules"};var lx={rules:it,oas2Rules:it,oas3_0Rules:it,oas3_1Rules:it,oas3_2Rules:it,async2Rules:it,async3Rules:it,arazzo1Rules:it,arazzo1_1Rules:it,overlay1Rules:it,openrpc1Rules:it,graphqlRules:it};var mt={nodeTypeName:void 0,type:"object",additionalProperties:!0},px={preprocessors:mt,oas2Preprocessors:mt,oas3_0Preprocessors:mt,oas3_1Preprocessors:mt,oas3_2Preprocessors:mt,async2Preprocessors:mt,async3Preprocessors:mt,arazzo1Preprocessors:mt,arazzo1_1Preprocessors:mt,overlay1Preprocessors:mt,openrpc1Preprocessors:mt},gt={nodeTypeName:void 0,type:"object",additionalProperties:!0};var dx={decorators:gt,oas2Decorators:gt,oas3_0Decorators:gt,oas3_1Decorators:gt,oas3_2Decorators:gt,async2Decorators:gt,async3Decorators:gt,arazzo1Decorators:gt,arazzo1_1Decorators:gt,overlay1Decorators:gt,openrpc1Decorators:gt},fx={nodeTypeName:void 0,type:"array",items:{type:"string"},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends"},Si={...lx,...dx,...px,extends:fx},Tr={nodeTypeName:void 0,type:"object",additionalProperties:{type:"string",enum:["off","patch","minor","major"]},description:"The diff configuration blocks set the semver impact of each diff rule: `off`, `patch`, `minor`, or `major`.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/diff"},mx={diff:Tr,oas3_0Diff:Tr,oas3_1Diff:Tr,oas3_2Diff:Tr,async3Diff:Tr},gx={type:"object",properties:{label:{type:"string"},lang:{type:"string",enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},yx={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"}}},nd={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},hx={type:"object",properties:{beforeInfo:{type:"array",items:nd},end:{type:"array",items:nd}}},bn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},xi={type:"object",properties:{backgroundColor:G,borderColor:G,color:G,tabTextColor:G}},bx={type:"object",properties:ki(bn.properties,["light","dark"])},vx={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"}}},Px={type:"object",properties:{error:xi,info:xi,redirect:xi,success:xi}},xx={type:"object",properties:Mn(bn.properties,["dark"])},_x={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Cx={type:"object",properties:{accent:bn,border:bx,error:bn,http:vx,primary:bn,responses:Px,secondary:xx,success:bn,text:_x,tonalOffset:{type:"number"},warning:bn}},_i={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Rx={type:"object",properties:{small:_i,medium:_i,large:_i,xlarge:_i}},Rt={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Tx={type:"object",properties:{...Mn(Rt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Rx}},rd={type:"object",properties:ki(Rt.properties,["fontSize","lineHeight"])},Dx={type:"object",properties:{medium:rd,small:rd}},wx={type:"object",properties:{...Mn(Rt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:G,sizes:Dx}},Sx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},kx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:G}},id={type:"object",properties:{fullWidth:{type:"boolean"}}},Ax={type:"object",properties:{buttons:Tx,httpBadges:wx,layoutControls:Sx,panels:kx,tryItButton:id,tryItSendButton:id}},Ti={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Ex={type:"object",properties:{maxWidth:Ti}},Nx={type:"object",properties:{maxWidth:Ti,middlePanelMaxWidth:Ti}},qx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Ex,"three-panel":Nx}},od={type:"object",properties:{backgroundColor:G,border:{type:"string"}}},Ox={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:G,caretSize:{type:"string"},constraints:od,defaultDetailsWidth:{type:"string"},examples:od,labelsTextSize:{type:"string"},linesColor:G,nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:G,typeNameColor:G,typeTitleColor:G}},_d={type:"object",properties:{subItemsColor:G,textTransform:{type:"string"},fontWeight:{type:"string"}}},jx={type:"object",properties:ki(_d.properties,["textTransform"])},Lx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Mx={type:"object",properties:{...Mn(Rt.properties,["fontWeight","lineHeight"]),activeBgColor:G,activeTextColor:G,backgroundColor:G,borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:G,caretSize:{type:"string"},groupItems:_d,level1items:jx,rightLineColor:G,separatorLabelColor:G,showAtBreakpoint:{type:"string"},spacing:Lx,textColor:G,width:{type:"string"}}},Ci={type:"object",properties:{...Rt.properties,color:G,transform:{type:"string"}}},Ix={type:"object",properties:{...Rt.properties,backgroundColor:G,color:G,wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},Fx={type:"object",properties:Mn(Rt.properties,["fontSize"])},Ux={type:"object",properties:{color:G,hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Wx={type:"object",properties:{code:Ix,fieldName:Rt,...ki(Rt.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Ci,heading2:Ci,heading3:Ci,headings:Fx,lineHeight:{type:"string"},links:Ux,optimizeSpeed:{type:"boolean"},rightPanelHeading:Ci,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},Hx={type:"object",properties:{color:G,...Mn(Rt.properties,["fontWeight"])}},Bx={type:"object",properties:{backgroundColor:G,borderRadius:{type:"string"},tokens:Hx}},zx={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},$x={type:"object",properties:{backgroundColor:G,color:G}},sd={type:"object",properties:{custom:{type:"string"}}},Yx={type:"object",properties:{DownloadButton:sd,NextSectionButton:sd}},Vx={type:"object",properties:{backgroundColor:G,panelBackgroundColor:G,panelControlsBackgroundColor:G,showAtBreakpoint:{type:"string"},textColor:G,width:{type:"string"}}},Kx={type:"object",properties:{borderRadius:{type:"string"}}},Gx={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Qx={type:"object",properties:{breakpoints:Ti,codeBlock:Bx,colors:Cx,components:Ax,layout:qx,logo:zx,fab:$x,overrides:Yx,rightPanel:Vx,schema:Ox,shape:Kx,sidebar:Mx,spacing:Gx,typography:Wx,links:{type:"object",properties:{color:G}},codeSample:{type:"object",properties:{backgroundColor:G}}}},Jx={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:gx}},required:["languages"]},Xx={type:"object",properties:{theme:Qx,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:Jx,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:yx,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{type:"string",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:hx,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 ki(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function Mn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var Cd=e=>e,Ct=Cd({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),ke={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},ad={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"},consent:{type:"string",enum:["analytics","marketing"]}},required:["src"],additionalProperties:!0},ea={type:"object",properties:{page:{type:"string",uiHint:"file"},directory:{type:"string",uiHint:"file"},disconnect:{type:"boolean"},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"]},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"}},additionalProps:{type:"object",additionalProperties:!0}}},ia={type:"array",items:{...ea,properties:{...ea.properties,items:{type:"array",items:ea}}}},Zx={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},e_={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},t_={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}},n_={type:"object",properties:{facets:t_,...ke.properties},additionalProperties:!1},r_={type:"object",properties:{page:{type:"string",uiHint:"file"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},i_={type:"object",properties:{image:{type:"string",uiHint:"file"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string",uiHint:"file"}},additionalProperties:!1},o_={type:"object",properties:{items:ia,...ke.properties},additionalProperties:!1},s_={type:"object",additionalProperties:Zx},a_={type:"object",properties:{items:ia,copyrightText:{type:"string",uiHint:"textarea"},logo:ke,...ke.properties},additionalProperties:!1},c_={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...ke.properties},additionalProperties:!1},u_={type:"object",properties:{head:{type:"array",items:ad},body:{type:"array",items:ad}},additionalProperties:!1},l_={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}},p_={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:e_,filters:n_,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:r_},...ke.properties},additionalProperties:!1},d_={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string",uiHint:"textarea"},trigger:{type:"object",properties:{hide:{type:"boolean"},inputType:{type:"string",enum:["button","icon"]},inputIcon:{type:"string",enum:["chat","sparkles","redocly"]}},additionalProperties:!1}},additionalProperties:!1},f_={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...ke.properties},additionalProperties:!1},m_={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},g_={type:"object",properties:{...ke.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","grok","docs-mcp-claude","docs-mcp-vscode","docs-mcp-cursor","copy-mcp-url"]}}},additionalProperties:!1},y_={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...ke.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...ke.properties},additionalProperties:!1},actions:g_},additionalProperties:!1},h_={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...ke.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...ke.properties},additionalProperties:!1},expand:{type:"object",properties:{...ke.properties},additionalProperties:!1},collapse:{type:"object",properties:{...ke.properties},additionalProperties:!1}},additionalProperties:!1},b_={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"}},partialsFolders:{type:"array",items:{type:"string"}},lastUpdatedBlock:{type:"object",properties:{format:{type:"string",enum:["timeago","iso","long","short"]},locale:{type:"string"},...ke.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...ke.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...ke.properties},additionalProperties:!1},template:{type:"object",uiHint:"list",additionalProperties:{type:"string"}}},additionalProperties:!1},v_={...td,properties:{...td.properties,...Xx.properties}},P_={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},x_={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"]},__={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},C_={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},R_={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"]},T_={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},D_={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{type:"object",additionalProperties:!0},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},Rd={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"]},w_={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:Rd}},additionalProperties:!1,required:["trackingId"]},S_={type:"object",properties:{adobe:P_,amplitude:x_,fullstory:__,heap:C_,rudderstack:R_,segment:T_,gtm:D_,ga:w_}},k_={type:"object",properties:{mode:{type:"string",enum:["auto","opt-in","opt-out","none","onetrust","cookiebot","trustarc","tcf"]},privacyPolicyUrl:{type:"string"},expires:{type:"number"},settingsLink:{type:"string",enum:["auto","footer","none"]}},additionalProperties:!1},A_={type:"object",properties:{items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0}},hideLoginButton:{type:"boolean"},...ke.properties},additionalProperties:!1},E_={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},N_={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}}},additionalProperties:!1},q_={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"]},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"}}}},O_={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:q_},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ia,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},cd={type:"object",patternProperties:{".*":O_}},ud={nodeTypeName:Ct.ScorecardClassic,description:"Add and create sets of rules and test your API description files against them. With these rules you can maintain quality across your existing APIs and ensure that newly-added or updated APIs match your criteria. An API scorecard can include multiple sets of rules, corresponding to different quality levels.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic",type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean"},teamMetadataProperty:{nodeTypeName:Ct.ScorecardClassicTeamMetadataProperty,description:"Provide custom team label and team metadata property.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#team-metadata-object",type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{nodeTypeName:Ct.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:Ct.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...Si},additionalProperties:!1}},targets:{nodeTypeName:Ct.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:Ct.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:Ct.ScorecardClassicTargetWhere,description:"Specify which API descriptions to apply the `minimumLevel` to based on the metadata.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#where-object",type:"object",required:["metadata"],properties:{metadata:{nodeTypeName:Ct.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string",uiHint:"file"}},fromProjectUrl:{type:"string",format:"uri"}}};var j_=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(j_||{}),L_=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(L_||{});var M_=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(M_||{});var Td="^[a-z0-9]+(?:-[a-z0-9]+)*$",nS=new RegExp(Td);var I_=63,rS=`Unique ID cannot exceed ${I_} characters`,Dd="redocly",wd=[Dd,"corporate","guest"],iS=`Unique ID cannot be a reserved word (${wd.join(", ")})`,ld=["REDOCLY","CORPORATE","GUEST"],F_={type:"object",properties:{downloadUrls:ra,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},excludeFromSearch:{type:"boolean"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},feedback:wi,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},U_={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},W_={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},H_={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"]},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Lt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:W_},excludes:{type:"array",items:U_},filters:{type:"array",items:H_},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},B_={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},z_={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:B_},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},$_={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:z_,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},Y_={type:"object",additionalProperties:$_},V_={type:"object",properties:{show:{type:"boolean"},entityTypes:Y_,catalogs:{type:"object",properties:{all:Lt,services:Lt,domains:Lt,teams:Lt,users:Lt,apiDescriptions:Lt,dataSchemas:Lt,apiOperations:Lt},additionalProperties:Lt}},additionalProperties:!1},Ln={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},K_={type:"object",properties:{name:{type:"string"},items:Ln,queries:Ln,mutations:Ln,subscriptions:Ln,types:Ln,directives:Ln},required:["name"],additionalProperties:!1},G_={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:K_},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},Q_={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},J_={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},X_={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string",uiHint:"textarea"},termsOfService:{type:"string",format:"uri"},contact:Q_,license:J_},additionalProperties:!1},Z_={type:"object",properties:{url:{type:"string",format:"uri",pattern:"^https?://"},description:{type:"string"}},required:["url"],additionalProperties:!1},e0={type:"object",properties:{menu:{type:"object",properties:{...G_.properties},additionalProperties:!1},downloadUrls:ra,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:G}},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:wi,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:X_,hideReplay:{type:"boolean"},servers:{type:"array",items:Z_},corsProxyUrl:{type:"string"}},additionalProperties:!1},pd={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},oa={type:"string",enum:["and","or"]},ta={type:"object",properties:{field:{type:"string"},operator:pd,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:pd,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},t0={type:"object",properties:{operator:oa,conditions:{type:"array",items:ta}},required:["operator","conditions"],additionalProperties:!1},dd={type:"array",items:{oneOf:[ta,{type:"object",properties:{operator:oa,conditions:{type:"array",items:{oneOf:[ta,t0]}}},required:["operator","conditions"],additionalProperties:!1}]}},Sd={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}},additionalProperties:!1},n0={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:Sd},required:["subject","assertions"],additionalProperties:!1}},r0={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:Sd,where:n0,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},i0={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},r0]}},o0={type:"object",properties:{name:{type:"string"},extends:Si.extends,rules:i0},required:["name"],additionalProperties:!1},fd={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},s0={oneOf:[fd,{type:"array",items:fd}]},a0={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[dd,{type:"object",properties:{operator:oa,conditions:dd},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:o0,minItems:1},trigger:s0},required:["name","key","entities","levels"],additionalProperties:!1},c0={type:"array",items:a0},Oe={logo:i_,navbar:o_,products:s_,footer:a_,sidebar:c_,scripts:u_,links:l_,feedback:wi,search:p_,aiAssistant:d_,colorMode:f_,palette:m_,navigation:y_,codeSnippet:h_,markdown:b_,openapi:v_,graphql:e0,asyncapi:F_,analytics:S_,consent:k_,userMenu:A_,versionPicker:E_,breadcrumbs:N_,catalog:cd,entitiesCatalog:V_,catalogClassic:cd,scorecard:ud,scorecardClassic:ud,scorecards:c0},u0={type:"object",properties:{imports:{type:"array",items:{type:"string"}},...Oe},additionalProperties:!0},l0={type:"object",additionalProperties:{type:"string"}},p0={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Ri={type:"string",enum:["error","warn","off"]},d0={type:"object",additionalProperties:!1,properties:{schemaCheck:Ri,statusCodeCheck:Ri,contentTypeCheck:Ri,successCriteriaCheck:Ri}},f0={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},m0={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},g0={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},y0={type:"object",additionalProperties:{type:"object",properties:{type:{type:"string",enum:["http"]},url:{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"},description:{type:"string"},headers:{type:"object",additionalProperties:{type:"string"}}},required:["url"],additionalProperties:!1}},md={type:"string",pattern:"^\\{\\{\\s*process\\.env\\.[A-Za-z0-9_]+\\s*\\}\\}$"},h0={type:"object",additionalProperties:{type:"object",properties:{provider:{type:"string",enum:["front"]},apiToken:md,signingSecret:md,disabled:{type:"boolean"}},required:["provider","apiToken","signingSecret"],additionalProperties:!1}},b0={type:"object",properties:{provider:{type:"string",minLength:1},repository:{type:"string",minLength:1},branch:{type:"string",minLength:1},path:{type:"string"}},required:["provider","repository"],additionalProperties:!1},kd={oneOf:[{type:"string",enum:["none","all"]},{type:"array",items:b0}]},Ai={rules:{type:"string"},sourceRepositories:kd},v0={type:"object",properties:{event:{type:"string",enum:["feedback"]}},required:["event"],additionalProperties:!1},Ad={type:"object",properties:{event:{type:"string",enum:["contentChange"]}},required:["event"],additionalProperties:!1},Ei={type:"object",properties:{event:{type:"string",enum:["schedule"]},cron:{type:"string",pattern:"^[0-5]?\\d\\s+\\S+\\s+\\S+\\s+\\S+\\s+\\S+$"}},required:["event","cron"],additionalProperties:!1},P0={type:"object",properties:{name:{type:"string",enum:["feedback"]},enabled:{type:"boolean"},trigger:{oneOf:[v0,Ei]},...Ai},required:["name"],additionalProperties:!1},x0={type:"object",properties:{name:{type:"string",enum:["discovery"]},enabled:{type:"boolean"},trigger:Ei,...Ai},required:["name"],additionalProperties:!1},_0={type:"object",properties:{name:{type:"string",enum:["seo"]},enabled:{type:"boolean"},trigger:{oneOf:[Ad,Ei]},...Ai},required:["name"],additionalProperties:!1},C0={type:"object",properties:{name:{type:"string",enum:["supportConversations","followUpOnPullRequest","updateFromCodeChanges"]},enabled:{type:"boolean"}},required:["name"],additionalProperties:!1},R0={type:"object",properties:{title:{type:"string",minLength:1},enabled:{type:"boolean"},description:{type:"string"},icon:{type:"string",enum:["sparkle","code","book","search","link","picture","global","check","warning"]},prompt:{type:"string",minLength:1},trigger:{oneOf:[Ei,Ad]},sourceRepositories:kd,sources:{oneOf:[{type:"string",enum:["all"]},{type:"array",items:{type:"string",enum:["aiConversations","searchQueries","pageViews","pageFeedback","supportConversations"]}}]},mcpServers:{oneOf:[{type:"string",enum:["all"]},{type:"array",items:{type:"string",minLength:1}}]}},required:["title","prompt","trigger"],additionalProperties:!1},T0={type:"object",properties:{name:{type:"string",enum:["review"]},enabled:{type:"boolean"},...Ai,specialists:{type:"array",items:{type:"object",properties:{name:{type:"string",enum:["config","apiDescription","owasp","docs"]},enabled:{type:"boolean"}},required:["name","enabled"],additionalProperties:!1}}},required:["name"],additionalProperties:!1},D0={type:"object",properties:{enabled:{type:"boolean"},defaultReviewers:{type:"array",items:{type:"string",minLength:1}},rules:{type:"object",properties:{custom:{type:"string"},style:{type:"string"}},additionalProperties:!1},duties:{type:"array",items:{oneOf:[P0,x0,_0,C0,T0]}},customDuties:{type:"array",items:R0},mcpServers:y0,supportDesks:h0},additionalProperties:!1},gd={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean"},{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:[f0,m0]},inputs:l0,servers:p0,severity:d0,slo:g0},required:["path","trigger","agent"],additionalProperties:!1}},agent:D0},additionalProperties:!1},Ed={type:"string",enum:["off","info","warn","error"]},Dr={type:"array",items:{type:"string"}},w0={type:"object",properties:{severity:Ed,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:Dr,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:Dr,excludes:Dr,exceptions:{type:"object",properties:{files:Dr,lines:Dr},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},S0={oneOf:[Ed,w0]},yd={type:"object",additionalProperties:S0},k0={type:"object",properties:{type:{type:"string",enum:["string","number","boolean"]},required:{type:"boolean"},default:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"}]},enum:{type:"array",items:{type:"string"},minItems:1},dynamic:{type:"boolean"}},required:["type"],additionalProperties:!1},A0={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:k0}},additionalProperties:!1},E0={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:A0},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},N0={oneOf:[{type:"boolean"},E0]},q0={type:"object",properties:{rules:yd,excludes:{type:"array",items:{type:"string",minLength:1}},markdoc:N0,apiDescriptions:{type:"object",properties:{rules:yd},additionalProperties:!1}},additionalProperties:!1},hd=["GET","HEAD","OPTIONS","POST","PUT","PATCH","DELETE","QUERY","TRACE"],O0={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},j0={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:O0,clientId:{type:"string",minLength:1},clientSecret:{type:"string"},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},L0={type:"object",properties:{type:{type:"string",const:"SAML2"},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string"},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},M0={oneOf:[j0,L0],discriminator:{propertyName:"type"}},I0={type:"object",additionalProperties:M0},Nd={oneOf:[{type:"array",items:{type:"string",enum:ld},uniqueItems:!0},{type:"string",enum:ld}]},bd={type:"string",pattern:Td,not:{enum:wd.filter(e=>e!==Dd)}},qd={oneOf:[{type:"array",items:bd,uniqueItems:!0},bd]},Od={type:"boolean"},jd={type:"string",pattern:"^https?://.*"},Ld={type:"string",pattern:"^https?://.*"},F0={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:Ct.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},U0={type:"object",additionalProperties:F0,nodeTypeName:Ct.Redirects,description:"Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.",documentationLink:"https://redocly.com/docs/realm/config/redirects"},W0={type:"string",enum:["info","success","warning","error"]},Z={type:"object",uiHint:"list",additionalProperties:{type:"string"}},H0={type:"object",properties:{trackingId:{type:"string"},content:{type:"string",uiHint:"textarea"},dismissible:{type:"boolean"},target:{type:"string"},color:W0,rbac:Z,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},B0={type:"array",items:H0},Md={type:"object",properties:{root:{type:"string",uiHint:"file"},output:{type:"string",pattern:"(.ya?ml|.json)$"},overlays:{type:"array",items:{type:"string"}},rbac:Z,openapi:Oe.openapi,graphql:Oe.graphql,asyncapi:Oe.asyncapi,theme:{type:"object",properties:{openapi:Oe.openapi,graphql:Oe.graphql},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...Si},required:["root"]},z0={type:"object",additionalProperties:!0},$0={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Y0={type:"object",properties:{hide:{type:"boolean"},title:{type:"string"},description:{type:"string",uiHint:"textarea"},details:{type:"object",properties:{path:{type:"string",uiHint:"file"},content:{type:"string",uiHint:"textarea"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string",uiHint:"file"}},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string",uiHint:"file"}},excludeFiles:{type:"array",items:{type:"string"}}},required:["title"],additionalProperties:!1}}},additionalProperties:!1},V0={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string",uiHint:"textarea"},siteUrl:{type:"string"},image:{type:"string",uiHint:"file"},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:Y0},additionalProperties:!1},K0={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},G0={type:"object",properties:{catalogs:{type:"object",properties:{all:Z,services:Z,domains:Z,teams:Z,users:Z,apiDescriptions:Z,dataSchemas:Z,apiOperations:Z},additionalProperties:Z},entitiesTypes:{type:"object",properties:{service:Z,domain:Z,team:Z,user:Z,apiDescription:Z,apiOperation:Z,dataSchema:Z},additionalProperties:Z},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:Z},additionalProperties:!1}},entities:{type:"object",properties:{"**":Z},additionalProperties:Z}},additionalProperties:!1},Id={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Z,cms:Z,reunite:Z,platform:Z,features:{type:"object",properties:{aiSearch:Z,mcp:Z},additionalProperties:!1},content:{type:"object",properties:{"**":Z},additionalProperties:Z},entitiesCatalog:G0},additionalProperties:Z},Q0={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},J0={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},X0={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[Q0,J0]}},additionalProperties:!1,required:["type","apiBaseUrl"]},Z0={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},eC={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},na={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean"},auth:{type:"object",oneOf:[Z0,eC],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},tC={...na,properties:{...na.properties,type:{type:"string",const:"APIGEE_EDGE"}}},nC={type:"object",oneOf:[na,tC,X0],discriminator:{propertyName:"type"}},rC={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:nC}}},vd={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"},showMissingTranslationNotice:{type:"boolean"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},iC={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},oC={type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"}},additionalProperties:!1},apiCalls:{type:"object",properties:{hide:{type:"boolean"},allowedHttpMethods:{type:"array",items:{type:"string",enum:hd}},excludeFiles:{type:"array",items:{type:"string"}},excludeOperations:{type:"array",items:{type:"object",properties:{file:{type:"string"},method:{type:"string",enum:hd},path:{type:"string"}},required:["file","path"],additionalProperties:!1}}},additionalProperties:!1}},additionalProperties:!1},sC={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},aC={type:"object",properties:{requiresLogin:Od,logoutReturnUrl:jd,residency:Ld,sso:Nd,idps:qd,rbac:Id},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},Di={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:U0,seo:V0,rbac:Id,apiFunctions:K0,requiresLogin:Od,responseHeaders:{type:"object",additionalProperties:{type:"array",items:iC}},mockServer:{type:"object",properties:{off:{type:"boolean"},position:{type:"string",enum:["first","last","replace","off"]},strictExamples:{type:"boolean"},errorIfForcedExampleNotFound:{type:"boolean"},description:{type:"string"}}},apis:{type:"object",uiHint:"list",additionalProperties:Md},...Si,...mx,ssoDirect:I0,sso:Nd,idps:qd,residency:Ld,logoutReturnUrl:jd,access:aC,developerOnboarding:rC,removeAttribution:{type:"boolean"},i18n:vd,l10n:vd,metadata:z0,metadataGlobs:$0,ignore:{type:"array",items:{type:"string"}},theme:u0,reunite:gd,platform:gd,...Oe,mcp:oC,skills:sC,recheck:q0,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:B0},not:{required:["sso","idps"]},additionalProperties:!0},cC={...Di,additionalProperties:!1},Fd={$id:"root-redocly-config",...Di,properties:{plugins:{type:"array",items:{type:"string"}},...Di.properties,env:{type:"object",additionalProperties:cC}},additionalProperties:!1},Pd={type:"object",properties:{logo:Oe.logo,navbar:Oe.navbar,footer:Oe.footer,sidebar:Oe.sidebar,search:Oe.search,codeSnippet:Oe.codeSnippet,breadcrumbs:Oe.breadcrumbs,openapi:Oe.openapi,feedback:Oe.feedback,palette:Oe.palette,mockServer:Di.properties.mockServer,analytics:{type:"object",properties:{ga:Rd}}},additionalProperties:!0},oS={$id:"product-config-override",type:"object",properties:{...Pd.properties,apis:{type:"object",additionalProperties:Md},theme:Pd},additionalProperties:!1};var uC=["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","returns","returnedBy"],xe=Cd({UserEntity:"UserEntity",UserEntityMetadata:"UserEntityMetadata",ApiDescriptionEntity:"ApiDescriptionEntity",ApiDescriptionEntityMetadata:"ApiDescriptionEntityMetadata",ApiOperationEntity:"ApiOperationEntity",ApiOperationEntityMetadata:"ApiOperationEntityMetadata",DataSchemaEntity:"DataSchemaEntity",DataSchemaEntityMetadata:"DataSchemaEntityMetadata",ServiceEntity:"ServiceEntity",DomainEntity:"DomainEntity",TeamEntity:"TeamEntity",Entity:"Entity",EntityMetadata:"EntityMetadata",EntityLinkList:"EntityLinkList",EntityLink:"EntityLink",EntityRelation:"EntityRelation",EntityRelationList:"EntityRelationList",EntityContact:"EntityContact",EntitySlackContact:"EntitySlackContact",EntitySlackChannel:"EntitySlackChannel"}),lC={type:"object",nodeTypeName:xe.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},pC={type:"object",nodeTypeName:xe.ApiDescriptionEntityMetadata,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},dC={type:"object",nodeTypeName:xe.ApiOperationEntityMetadata,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},fC={type:"object",nodeTypeName:xe.DataSchemaEntityMetadata,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"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0},mC={type:"object",properties:{},nodeTypeName:xe.EntityMetadata,additionalProperties:!0},gC={type:"object",nodeTypeName:xe.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},yC={type:"object",nodeTypeName:xe.EntitySlackContact,properties:{channels:{type:"array",items:gC}},required:["channels"],additionalProperties:!1},hC={type:"object",nodeTypeName:xe.EntityContact,properties:{slack:yC},additionalProperties:!1},bC={type:"object",nodeTypeName:xe.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},vC={type:"object",nodeTypeName:xe.EntityRelation,properties:{type:{type:"string",enum:uC},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Kt={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:hC,links:{type:"array",nodeTypeName:xe.EntityLinkList,items:bC},relations:{type:"array",nodeTypeName:xe.EntityRelationList,items:vC},metadata:mC},Ni={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...Kt,type:{type:"string",const:"user"},metadata:lC},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:xe.UserEntity},{type:"object",nodeTypeName:xe.ApiOperationEntity,properties:{...Kt,type:{type:"string",const:"api-operation"},metadata:dC},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:xe.DataSchemaEntity,properties:{...Kt,type:{type:"string",const:"data-schema"},metadata:fC},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:xe.ApiDescriptionEntity,properties:{...Kt,type:{type:"string",const:"api-description"},metadata:pC},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:xe.ServiceEntity,properties:{...Kt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:xe.DomainEntity,properties:{...Kt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:xe.TeamEntity,properties:{...Kt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},qi={type:"object",nodeTypeName:xe.Entity,properties:{...Kt},required:["key","title","type"],additionalProperties:!1},PC=/{{\s*process\.env\.([A-Z0-9_]+)\s*(?:\|\|?\s*(?:"([^"]*)"|'([^']*)')\s*)?}}/i,sS=new RegExp(PC.source,"gi");var Be=Ne(Ft(),1);import{getLineColLocation as jT,lintDocument as LT,makeDocumentFromString as is,lintConfig as MT,lintEntityFile as IT,detectSpec as FT,createConfigTypes as UT}from"@redocly/openapi-core";var ts=Ne(jn(),1);function nh(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(u){let d=i.get(u.uri),g=d?Date.now()-d:0;try{if(g<t&&g>=0)r.set(u.uri,setTimeout(()=>a(u),t-g));else if(r.delete(u.uri),i.delete(u.uri),!n){let b=s.get(u.uri),h=e(o.get(u.uri));b&&b.forEach(({resolve:D})=>D(h)),s.delete(u.uri)}}catch(b){let h=s.get(u.uri);h&&h.forEach(({reject:D})=>D(b)),s.delete(u.uri)}}function c(u){let d=r.get(u.uri),g=n&&!d;return i.set(u.uri,Date.now()),o.set(u.uri,u),new Promise((b,h)=>{let D=s.get(u.uri)||[];d||(s.set(u.uri,[...D,{resolve:b,reject:h}]),r.set(u.uri,setTimeout(()=>a(u),t))),g?b(e(o.get(u.uri))):s.set(u.uri,[...D,{resolve:b,reject:h}])})}return c}function ns(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 rh(e){return e==="$ref"}function Xu(e,t){return e?K.dirname(Xe.file(e)).toString():t}async function Zu(e,t){let n=Xe.parse(t);return K.joinPath(n,e).toString()}async function ih(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await Zu(i,n)===t)return r}function oh(e){return typeof e=="string"}function Kr(e){return typeof e=="function"}function sh(e){return e?.kind===ts.Kind.MAP}function el(e){return e?.kind===ts.Kind.MAPPING}function tl(e){return e?.kind===ts.Kind.SEQ}function Gr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}import{bundleDocument as xT,isPlainObject as _T,makeDocumentFromString as CT,getTypes as RT,detectSpec as TT}from"@redocly/openapi-core";var ah=new Map,rs=new Map;function DT(e){return e?Array.from(e).map(([t,n])=>[t,ns(n)]):[]}async function nl(e,t){let n=await Vt(),r=new _t(n.resolve),i=CT(e.getText(),e.uri),o=TT(i.parsed),s=o==="oas3_2",a=s?"oas3_1":o,{bundle:c,rootType:u,refTypes:d}=await xT({document:i,config:n,externalRefResolver:r,types:RT(a)}),g=DT(d);d&&(rs=new Map([...rs,...d]));let b=_T(c.parsed)?c.parsed:{};ah.set(e.uri,{uri:e.uri,name:br(e.uri),definition:s?{...b,openapi:"3.1.0"}:b,specVersion:a,rootType:ns(u),refTypes:g,errors:t})}function wT(){return Array.from(ah).map(([e,{definition:t,specVersion:n,rootType:r,refTypes:i,errors:o}])=>({name:br(e),uri:e,definition:t,specVersion:n,rootType:r,refTypes:i,errors:o}))}function rl(e){return rs.get(e)??rs.get(we(e))??null}import{createConfig as ch,lintDocument as ST,loadIgnoreConfig as kT,regexFromString as AT}from"@redocly/openapi-core";async function uh(e,t,n,r,i,o){let s=[],a=await kT(r,t),c=typeof i=="string"?await ET(i):i,u={};if(n.targets?.length){let d=e.parsed?.info,g=d?.["x-metadata"]||{},b={title:d?.title,version:d?.version,...g,...o},h=qT(n.targets,b);h?.rules&&r&&(u=await NT(e.source.absoluteRef,h.rules,n.levels,c,r,a))}for(let d of n?.levels||[]){let g=u[d.name]??await ch({...d,plugins:c},{configPath:r,ignore:a}),b=await ST({document:e,externalRefResolver:t,config:g});s.push(...b.filter(({ignored:h})=>!h).map(h=>({...h,scorecardLevel:d.name})))}return s}async function ET(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){let n=t instanceof Error?t.message:String(t);return console.error("Failed to load plugins module:",n),console.error(`
|
|
70
|
+
Plugins code preview:`,e.substring(0,500)+"..."),[]}}async function NT(e,t,n=[],r=[],i,o){let s={};for(let a of n){let c={[a.name]:{root:e,rules:t}},u=await ch({apis:c,...a,plugins:r},{configPath:i,...o&&{ignore:o}});s[a.name]=u.forAlias(a.name)}return s}function qT(e,t){if(e){for(let n of e)if(Object.entries(n.where?.metadata||{}).every(([i,o])=>OT(i,o,t)))return n}}function OT(e,t,n){if(t.match(/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}Z)?\/(\d{4}-\d{2}-\d{2})?$/)){if(!n[e])return!1;let[r,i]=t.split("/"),o=new Date(n[e]);return isNaN(o.getTime())?!1:!(o<new Date(r)||i&&o>new Date(i))}else if(t.match(/^\/.*\//)){if(!n[e])return!1;try{return AT(t).test(n[e])}catch(r){return console.error(`Invalid regex in scorecard target: ${t}`,r),!1}}return n[e]===t}var WT=800,ol=nh($T,WT);async function HT(e){let t=e.map(({documentPath:o})=>He(o).toString()),n=await Vt(),r=await ce.getRootWorkspaceFolderURI(),i=Xu(n.configPath,r);for(let{root:o}of Object.values(n.resolvedConfig.apis??{})){let s=await Zu(o,i);if(t.includes(s))return s}return t[0]}function BT(e){try{return FT(e),!0}catch{return!1}}async function zT(e){try{let t=is(e.getText(),e.uri),n=new _t,r=await IT({document:t,entitySchema:Ni,entityDefaultSchema:qi,externalRefResolver:n}),i=[{uri:e.uri,diagnostics:[]}];return il(r,i),i}catch{return[{uri:e.uri,diagnostics:[]}]}}async function $T(e){let t=e.uri,n=await Vt();if(await hn(we(t)))try{let r=await Zs(we(t))?is(e.getText(),t):is(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new _t,o=await MT({config:{document:r},externalRefResolver:i,externalConfigTypes:UT(Fd,n)}),s=[{uri:e.uri,diagnostics:[]}];return il(o,s),s}catch{return[{uri:e.uri,diagnostics:[]}]}else{if(yn({uri:we(t),textDocument:e}))return await zT(e);{let r=Js(t),i=await HT(r||[]);i&&(e=await et(i),t=i);let o;try{o=is(e.getText(),we(t))}catch{return[{uri:e.uri,diagnostics:[]}]}if(!BT(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new _t(n.resolve),c=await ce.getRootWorkspaceFolderURI(),u=Xu(n.configPath,c),d=await ih(n.resolvedConfig.apis??{},e.uri,u),g=Date.now(),b=[],h=[];try{h=(await LT({document:o,config:n.forAlias(d),externalRefResolver:a})).filter(({ignored:S})=>!S);let U=ce.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecardClassic||n.resolvedConfig.scorecard,y=d?n.resolvedConfig.apis?.[d]?.metadata:void 0,m=U&&ce.scorecardStatus==="enabled"?await uh(o,a,U,n.configPath,ce.remoteScorecardAndPlugins?.plugins,y):[];b=[...h,...m]}catch(U){let y=U instanceof Error?U.message:String(U);b.push({ruleId:"struct",suggest:[],severity:"error",message:`Error linting document: ${y}`,location:[{start:{line:1,col:1},end:{line:1,col:1},source:o.source}]})}let D=GT(h);nl(e,D);let I=Date.now()-g;s=[...new Set([e.uri,...[...a.getFiles()].map(U=>He(U).toString())])].map(U=>({uri:U,diagnostics:[]})),Jp(t,{dependencyPaths:a.getFiles(),durationMS:I}),il(b,s)}catch(a){YT(e.uri,a,s)}return s}}}function Qr(){return ce.documents.all().map(ol)}function YT(e,t,n){let r=n||[{uri:e,diagnostics:[]}];if(t.line&&t.col&&t.message){let i=t.source?.absoluteRef?qt(t.source.absoluteRef):e,o=t.line-1,s=t.col-1,a=Be.Position.create(o,s),c=Be.Diagnostic.create(Be.Range.create(a,a),t.message,Be.DiagnosticSeverity.Error);lh(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function lh(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 VT(e){return e.suggest.length===0?"":e.suggest.length===1?`
|
|
71
71
|
Did you mean: ${e.suggest[0]} ?`:`
|
|
72
72
|
Did you mean:
|
|
73
73
|
- ${e.suggest.join(`
|
|
74
|
-
- `)}`}function
|
|
75
|
-
Scorecard level: ${e.scorecardLevel}`:""}function il(e,t){e.forEach(n=>{let r;switch(n.severity){case"error":r=Be.DiagnosticSeverity.Error;break;case"warn":r=Be.DiagnosticSeverity.Warning;break;default:r=Be.DiagnosticSeverity.Warning}let i=NT(n.location[0]),o=qt(i.source.absoluteRef),s=Be.Position.create(i.start.line-1,i.start.col-1),a=i.end?Be.Position.create(i.end.line-1,i.end.col-1):s,c=n.message+zT(n)+$T(n),u=Be.Diagnostic.create(Be.Range.create(s,a),c,r,`Rule: ${n.ruleId}`,"Redocly OpenAPI");n.reference&&(u.codeDescription={href:n.reference}),sh(o,u,t)})}function YT(e){return e.filter(({severity:t})=>t==="error").map(t=>({...t,location:t.location.map(n=>({...n,source:{...n.source,_ast:null}}))}))}var ms=Ne(Ft(),1);var ye=Ne(Ft(),1);function Te(e,t){return e?t?is[e+"_"+t]||t:is[e]||is.Default:is.Default}var VT=["newLine","MediaTypeMap","PathMap","propertyName","newItem","Root_openapi","Root","Info","Root_info","Info_title","Info_summary","Info_description","Info_termsOfService","Info_contact","Contact_name","Contact_url","Contact_email","Info_license","License_name","License_identifier","License_url","Info_version","Root_jsonSchemaDialect","jsonSchemaDialect","Root_servers","Server_List","Server_url","Server_description","Server_variables","Root_paths","Root_webhooks","Root_components","Root_security","Root_tags","Root_externalDocs","LocalComponentCompletion","FolderCompletion","FileCompletion","Default"],is=VT.reduce((e,t,n)=>(e[t]=String.fromCharCode(n),e),{});var pr="newItem",Jr="propertyName",lr="newLine";function os(e){return!!(e?.name&&ah[e.name])}function sl(e){return ah[e]||[]}var ah={[lr]:[{label:"newLine",kind:ye.CompletionItemKind.Constructor,data:{},sortText:Te(lr)}],[Jr]:[{label:Jr,kind:ye.CompletionItemKind.Constructor,data:{properties:{}},sortText:Te(Jr)}],ServerVariable_Map:[{label:"newVariableName",kind:ye.CompletionItemKind.Property,data:{properties:{}},sortText:Te("ServerVariable_Map")}],ResponsesMap:[{label:"200",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"201",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"204",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"301",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"303",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"400",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"401",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"403",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"404",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"500",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"503",kind:ye.CompletionItemKind.Property,data:{properties:{}}}],PathMap:[{label:"/newPath",kind:ye.CompletionItemKind.Property,data:{properties:{}},sortText:Te("PathMap")}],MediaTypeMap:[{label:"mime/type",kind:ye.CompletionItemKind.Property,data:{properties:{}},sortText:Te("MediaTypeMap")},{label:"application/json",kind:ye.CompletionItemKind.Property,data:{properties:{}},sortText:Te("MediaTypeMap")},{label:"application/octet-stream",kind:ye.CompletionItemKind.Property,data:{properties:{}},sortText:Te("MediaTypeMap")},{label:"multipart/form-data",kind:ye.CompletionItemKind.Property,data:{properties:{}},sortText:Te("MediaTypeMap")},{label:"application/x-www-form-urlencoded",kind:ye.CompletionItemKind.Property,data:{properties:{}},sortText:Te("MediaTypeMap")},{label:"application/xml",kind:ye.CompletionItemKind.Property,data:[],sortText:Te("MediaTypeMap")}]};import{Oas2Types as KT,Oas3Types as GT,Oas3_1Types as QT,Oas3_2Types as ch,AsyncApi2Types as JT,AsyncApi3Types as XT,Arazzo1Types as ZT,Arazzo1_1Types as eD,Overlay1Types as tD,OpenRpcTypes as nD,ConfigTypes as rD,normalizeTypes as cl,getMajorSpecVersion as iD,createEntityTypes as oD}from"@redocly/openapi-core";var bt=Ne(jn(),1);var al=new Map;async function ul(e,t){let n=await et(e),r=n.getText(),i=bt.safeLoad(r,{filename:e}),{nodePath:o}=ss({node:i,nodePath:[]},t,n,!0),s=await ll(i,e),{version:a}=dl(i),{currentType:c,parentType:u,endPath:d}=Zr(s,o,i),g=Xr(i),b=c?.name?c:u;return{nodePath:o,endPath:d,type:b,existingValues:g,types:s,descriptionVersion:a}}async function sD(e){let n=(await et(e)).getText();try{let r=bt.safeLoad(n,{filename:e});return pl(r)}catch{return{version:"oas3_2",isDefault:!0}}}function uh(e,t){if(!e)return null;let n=e,r=!0;return t.forEach(i=>{if(r=!1,tl(n)&&n.items&&n.items[i])n=n.items[i],r=!0;else if(nh(n)){let o=as(n);for(let s of o)if(el(s)&&s.key?.value===i){n=s?.value,r=!0;break}}}),r?n:(console.warn("Cannot find node by path",t),null)}function aD(e,t){for(let n=0;n<t.length;n++)if(n===t.length-1||t[n+1]>e)return n;return t.length-1}function ss(e,t,n,r=!1){let{node:i,nodePath:o=[]}=e,s=n.offsetAt(t),a=as(i);if(a.length===0||cD(i)||!r&&uD(i,n,t))return e;let c=lD(a,s);return ss({nodePath:pD(o,i,a[c],c),node:a[c]},t,n,r)}function cD(e){return e?.kind===bt.Kind.MAPPING&&!e?.value}function uD(e,t,n){let r=t.getText({start:t.positionAt(t._lineOffsets[n.line]),end:n}),i=dD(e,t),o=r?.match(/^\s+/)?.[0]?.length||0;return(/^\s*[\w\-$/{}]+$/.test(r)?o:n.character)===i}function lD(e,t){for(let n=1;n<e.length;n++){let r=e[n];if(r&&r.startPosition>t)return n-1}return e.length-1}function pD(e,t,n,r){return tl(t)?[...e,r]:el(n)&&n?.key?.value&&typeof n.key.value=="string"?[...e,n.key.value]:e}function dD(e,t){let n=e?.startPosition??0,r=aD(n,t._lineOffsets);if(r>=0){let i=t._lineOffsets[r];return n-i}return 0}function Zr(e,t,n){let r=e,i,o=new Array(t.length).fill(null);t.forEach((a,c)=>{let u;if(e?.name&&e?.name!==r?.name&&(r=e,i=a),e&&e?.properties&&!Object.keys(e?.properties).length&&e?.items){if(e.items.properties)u=e.items;else if(Kr(e.items)){let d=fD(n,typeof t[0]=="number"?t[0]:0);u=e.items(d,a)}}else if(e?.properties&&e.properties[a])u=e.properties[a],Kr(u)&&(u=u(null,a));else if(e?.additionalProperties&&!Kr(e?.additionalProperties))u=e.additionalProperties;else if(Kr(e?.additionalProperties)&&a){let d=e.additionalProperties(null,a);d&&(u=d)}u&&(e=u,o[c]=u)}),e?.name&&r?.name&&e?.name!==r?.name&&(i=void 0);let s=o.every(a=>!!a);return{currentType:s||t[0]==="openapi"||t.length===0?e:null,parentType:s?r:null,endPath:i}}function fD(e,t){let n={};if(e.kind===bt.Kind.SEQ&&e.items?.[t]){let r=e.items?.[t]?.mappings??[];for(let i of r)i.key?.value&&(n[i.key?.value]=i.value?.value)}return n}async function ll(e,t){if(await hn(t)||await hn(we(t)))return cl(rD).ConfigRoot;if(yn({uri:t,ast:e})||yn({uri:we(t),ast:e})){let{entityTypes:o}=oD(Ei,Ni),s=cl(o);if(e?.kind===bt.Kind.SEQ)return s.EntityFileArray;let a=mD(e);return a&&s[a]?s[a]:s.EntityFileDefault}let{types:n,isDefault:r}=yD(e);if(!e)return n;let i=r?rl(t):n;return r&&!rl(t)&&e?null:i||n}function mD(e){let t="type";return e?.mappings?.find(n=>n.key?.value===t&&n.value?.value)?.value?.value}function gD(e){if(al.has(e))return al.get(e);let t=cl(hD(e)).Root;return al.set(e,t),t}function pl(e){let t,n=!1;if(e?.kind===bt.Kind.MAP)for(let r of e.mappings){let i=r.key?.value,o=String(r?.value?.value);if(i==="openapi"&&o.startsWith("3.0.")){t="oas3_0";break}if(i==="openapi"&&o.startsWith("3.1.")){t="oas3_1";break}if(i==="openapi"&&o.startsWith("3.")){t="oas3_2";break}if(i==="swagger"&&o==="2.0"){t="oas2";break}if(i==="asyncapi"&&o.startsWith("2."))return{version:"async2",isDefault:!1};if(i==="asyncapi"&&o.startsWith("3."))return{version:"async3",isDefault:!1};if(i==="arazzo"&&o.startsWith("1.0."))return{version:"arazzo1",isDefault:!1};if(i==="arazzo"&&o.startsWith("1."))return{version:"arazzo1_1",isDefault:!1};if(i==="overlay"&&o.startsWith("1."))return{version:"overlay1",isDefault:!1};if(i==="openrpc"&&o.startsWith("1."))return{version:"openrpc1",isDefault:!1}}return t||(t="oas3_2",n=!0),{version:t,isDefault:n}}function dl(e){let{version:t,isDefault:n}=pl(e);return{version:iD(t),isDefault:n}}function yD(e){let{version:t,isDefault:n}=pl(e);return{types:gD(t),isDefault:n}}function as(e){switch(e?.kind){case bt.Kind.MAPPING:return[e.key,e.value];case bt.Kind.MAP:return e.mappings;case bt.Kind.SEQ:return e?.items;default:return[]}}function hD(e){switch(e){case"oas3_2":return ch;case"oas3_1":return QT;case"oas3_0":return GT;case"oas2":return KT;case"async2":return JT;case"async3":return XT;case"arazzo1":return ZT;case"arazzo1_1":return eD;case"overlay1":return tD;case"openrpc1":return nD;case"graphql":return{};default:return ch}}function Xr(e,t,n){if(typeof t>"u"&&(t={}),typeof n>"u"&&(n=0),!e)return{};let r=e?.mappings||e?.items;if(r){let i=0;for(let o of r)o?.value===null||!o?.value?.value?t[o?.key?.value||i]={value:th(o?.value)?o?.value:null,startOffset:o?.key?.value?o.startPosition+o.key.value.length+1:null,endOffset:null,indent:n}:t[o?.key?.value||i]={value:o?.value?.value,rawValue:o?.value?.rawValue||null,startOffset:o?.value?.startPosition||null,endOffset:o?.value?.endPosition||null,indent:n},Object.keys(o?.value||o||{}).includes("items")?(t[o?.key?.value||i]={type:"sequence",startOffset:o.startPosition,endOffset:o.endPosition,indent:n,value:null},Xr(o?.value||o,t[o?.key?.value||i],n+1)):Object.keys(o?.value||o||{}).includes("mappings")&&(t[o?.key?.value||i]={type:"map",startOffset:o.startPosition,endOffset:o.endPosition,indent:n,value:null},Xr(o?.value||o,t[o?.key?.value||i],n+1)),i++}return t}import{mapTypeToComponent as lh}from"@redocly/openapi-core";var fl={Schema:[{name:"$ref",value:{type:"string",name:"Schema"}}],PathItem:[{name:"$ref",value:{type:"string",name:"PathItem"}}],Parameter:[{name:"$ref",value:{type:"string",name:"Parameter"}}],Response:[{name:"$ref",value:{type:"string",name:"Response"}}],Example:[{name:"$ref",value:{type:"string",name:"Example"}}],RequestBody:[{name:"$ref",value:{type:"string",name:"RequestBody"}}],Header:[{name:"$ref",value:{type:"string",name:"Header"}}],SecuritySchema:[{name:"$ref",value:{type:"string",name:"SecuritySchema"}}],Link:[{name:"$ref",value:{type:"string",name:"Link"}}],Callback:[{name:"$ref",value:{type:"string",name:"Callback"}}]};function ph(e){let t=fl[e.name];if(t&&e.properties)for(let n of t)e.properties[n.name]=n.value;return e}var cs=Ne(Ft(),1),Je=class{constructor({kind:t,label:n,value:r,textEdit:i,filterText:o,sortText:s,data:a}){this.kind=t||cs.CompletionItemKind.Value,this.label=n;let{node:c,lineOffset:u,position:d}=a;this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.textEdit=i||(c?.value&&d&&u!==void 0?this.getTextEdit(c,d,u):void 0)}getTextEdit(t,n,r){let i=t.startPosition-r,o=t.singleQuoted||t.doubleQuoted?2:0,s=i+t.value.length+o;return cs.TextEdit.replace({start:{line:n.line,character:i},end:{line:n.line,character:s}},this.insertText)}};var dr=Ne(Ft(),1),Et=class{constructor({kind:t,label:n,insertText:r,insertTextFormat:i,filterText:o,sortText:s,data:a}){this.insertTextFormat=i??(n.includes("$")?dr.InsertTextFormat.PlainText:dr.InsertTextFormat.Snippet),this.kind=t||dr.CompletionItemKind.Property,this.label=n,this.data=a||{},this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.command=this.kind===dr.CompletionItemKind.Property?{title:"Suggested values",command:"editor.action.triggerSuggest"}:void 0}};var ei={example:"example",default:"default",enum:"enum",ref:"$ref"},us=[ei.default,ei.example];var gh=Ne(jn(),1);var Ee={};hs(Ee,{default:()=>mh.default});bs(Ee,Ne(ml()));var mh=Ne(ml());function vD(e,t,n){let r=t.slice(0,t.length-1),{currentType:i}=Zr(e,r,n);if(i?.name){let[o]=fl[i.name]||[];return o?.value}return null}function PD(e,t,n){let r=t[t.length-1];if(Zy(r))return vD(e,t,n);let{currentType:i}=Zr(e,t,n);return i?os(i)?i:i?.name&&(i?.name.includes("Map")||i?.name.includes("Named"))?{name:Jr,properties:{}}:i:null}function xD(e,t){return typeof t=="string"&&t in(e?.properties??{})?t:void 0}function _D(e,t,n){let{currentType:r,parentType:i,endPath:o}=Zr(e,t,n);return{contextType:r?.name??i?.name??"",contextProperty:xD(i,o)}}async function yh(e,t){let n=await et(e),r=n.getText(),i=(0,gh.safeLoad)(r,{filename:e}),{node:o,nodePath:s}=ss({node:i,nodePath:[]},t,n),a=await ll(i,e),c=PD(a,s,i),u=n._lineOffsets[t.line],d=n.getText({start:n.positionAt(u),end:t});return{currentAst:i,node:o,nodePath:s,position:t,lineText:d,lineOffset:u,openApiType:c,..._D(a,s,i)}}async function hh(e,t){let n=K.resolvePath(He(e)),r=K.dirname(n),i=await xl(K.joinPath(r,t),r.path),o=K.resolvePath(r,i.path);return{refPath:t,refDirPath:i,refDirAbsolutePath:o,isAbsolutePath:t?(0,Ee.isAbsolute)(t):!1,docAbsolutePath:n,docAbsoluteDirPath:r,root:"/"}}var bh=Ne(Ft(),1);var ls=class extends Je{constructor(t){super(t),this.kind=bh.CompletionItemKind.Folder,this.command={title:"Complete path",command:"editor.action.triggerSuggest",arguments:[]}}};var vh=Ne(Ft(),1);var ps=class extends Je{constructor(t){super(t),this.kind=vh.CompletionItemKind.File}};var RD=ce.supportedLanguages.concat({languageId:"markdown",filePattern:/\.md$/});function TD(e){let{refPath:t,docAbsoluteDirPath:n,isAbsolutePath:r,root:i}=e,o=(0,Ee.resolve)(n.path,t,".."),s=r?o:(0,Ee.relative)(n.path,o),a=s&&s!==i?"/":"";return{name:"../",type:1,matchBy:t,sortBy:Te("FolderCompletion"),value:`${s}${a}`}}async function DD(e,t,n){let r=[],{refDirAbsolutePath:i,docAbsolutePath:o}=n;for(let s of e)try{let a=K.resolvePath(i,s),c=await ce.fs.stat(a);c.isFile()&&a.path!==o.path&&t.supportedFiles.some(u=>u.filePattern.test(s))&&r.push({name:s,type:0}),c.isDirectory()&&r.push({name:s,type:1})}catch{continue}return r}function Ph(e,t){let{docAbsoluteDirPath:n,isAbsolutePath:r,refDirAbsolutePath:i,root:o,refPath:s}=t,a=[];return i.path!==o&&a.push(TD(t)),a.concat(e.map(({name:c,type:u})=>{let d=(0,Ee.resolve)(i.path,c),g=(0,Ee.relative)(n.path,d),b=s.includes(Ee.sep)?s.slice(0,s.lastIndexOf(Ee.sep)+1):s+Ee.sep,h=r?d:g;if(u===0)return{type:u,name:c,value:h,sortBy:`${Te("FileCompletion")}${c}`,matchBy:`${b}${c}`};let D=`${c}/`;return{type:u,name:D,value:`${h}${g?"/":""}`,sortBy:`${Te("FolderCompletion")}${c}`,matchBy:`${b}${c}`}}))}function xh(e,t){let{node:n,lineOffset:r,position:i}=t;return e.map(o=>{let{name:s,value:a,matchBy:c,sortBy:u,type:d}=o,g={label:s,filterText:Gr(c,n),sortText:u,value:a,data:{lineOffset:r,position:i,node:n}};return d===1?new ls(g):new ps(g)})}async function _h(e,t){let{node:n}=t,r=n.value??"",i=await hh(e,r),{refDirAbsolutePath:o}=i,s=[];try{s=await ce.fs.readDir(o)}catch{return xh(Ph([],i),t)}let a=await DD(s,{supportedFiles:RD},i);return xh(Ph(a,i),t)}import{isEmptyObject as wD,isPlainObject as Rh}from"@redocly/openapi-core";var ds=" ";function SD(e){let t=e?.match(/^\s*(?:- )+/)?.[0].match(/- /g)?.length??0;return ds.repeat(t)}function Th(e){return!Rh(e)||!Array.isArray(e.required)?[]:e.required.filter(t=>typeof t=="string")}function Dh(e,t){return e.map((n,r)=>`${n}: \${${r+1}}`).join(`
|
|
76
|
-
${t}`)}function
|
|
77
|
-
`;let n=t?.lineText,r=!!n?.trimEnd().endsWith(":"),i=
|
|
78
|
-
${i}`:"",s=i+
|
|
79
|
-
${s}${
|
|
80
|
-
${s}${
|
|
81
|
-
${s}`:`${o}${e}: `}var
|
|
74
|
+
- `)}`}function KT(e){return e.scorecardLevel?`
|
|
75
|
+
Scorecard level: ${e.scorecardLevel}`:""}function il(e,t){e.forEach(n=>{let r;switch(n.severity){case"error":r=Be.DiagnosticSeverity.Error;break;case"warn":r=Be.DiagnosticSeverity.Warning;break;default:r=Be.DiagnosticSeverity.Warning}let i=jT(n.location[0]),o=qt(i.source.absoluteRef),s=Be.Position.create(i.start.line-1,i.start.col-1),a=i.end?Be.Position.create(i.end.line-1,i.end.col-1):s,c=n.message+VT(n)+KT(n),u=Be.Diagnostic.create(Be.Range.create(s,a),c,r,`Rule: ${n.ruleId}`,"Redocly OpenAPI");n.reference&&(u.codeDescription={href:n.reference}),lh(o,u,t)})}function GT(e){return e.filter(({severity:t})=>t==="error").map(t=>({...t,location:t.location.map(n=>({...n,source:{...n.source,_ast:null}}))}))}var gs=Ne(Ft(),1);var ye=Ne(Ft(),1);function Te(e,t){return e?t?os[e+"_"+t]||t:os[e]||os.Default:os.Default}var QT=["newLine","MediaTypeMap","PathMap","propertyName","newItem","Root_openapi","Root","Info","Root_info","Info_title","Info_summary","Info_description","Info_termsOfService","Info_contact","Contact_name","Contact_url","Contact_email","Info_license","License_name","License_identifier","License_url","Info_version","Root_jsonSchemaDialect","jsonSchemaDialect","Root_servers","Server_List","Server_url","Server_description","Server_variables","Root_paths","Root_webhooks","Root_components","Root_security","Root_tags","Root_externalDocs","LocalComponentCompletion","FolderCompletion","FileCompletion","Default"],os=QT.reduce((e,t,n)=>(e[t]=String.fromCharCode(n),e),{});var pr="newItem",Jr="propertyName",lr="newLine";function ss(e){return!!(e?.name&&ph[e.name])}function sl(e){return ph[e]||[]}var ph={[lr]:[{label:"newLine",kind:ye.CompletionItemKind.Constructor,data:{},sortText:Te(lr)}],[Jr]:[{label:Jr,kind:ye.CompletionItemKind.Constructor,data:{properties:{}},sortText:Te(Jr)}],ServerVariable_Map:[{label:"newVariableName",kind:ye.CompletionItemKind.Property,data:{properties:{}},sortText:Te("ServerVariable_Map")}],ResponsesMap:[{label:"200",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"201",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"204",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"301",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"303",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"400",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"401",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"403",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"404",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"500",kind:ye.CompletionItemKind.Property,data:{properties:{}}},{label:"503",kind:ye.CompletionItemKind.Property,data:{properties:{}}}],PathMap:[{label:"/newPath",kind:ye.CompletionItemKind.Property,data:{properties:{}},sortText:Te("PathMap")}],MediaTypeMap:[{label:"mime/type",kind:ye.CompletionItemKind.Property,data:{properties:{}},sortText:Te("MediaTypeMap")},{label:"application/json",kind:ye.CompletionItemKind.Property,data:{properties:{}},sortText:Te("MediaTypeMap")},{label:"application/octet-stream",kind:ye.CompletionItemKind.Property,data:{properties:{}},sortText:Te("MediaTypeMap")},{label:"multipart/form-data",kind:ye.CompletionItemKind.Property,data:{properties:{}},sortText:Te("MediaTypeMap")},{label:"application/x-www-form-urlencoded",kind:ye.CompletionItemKind.Property,data:{properties:{}},sortText:Te("MediaTypeMap")},{label:"application/xml",kind:ye.CompletionItemKind.Property,data:[],sortText:Te("MediaTypeMap")}]};import{Oas2Types as JT,Oas3Types as XT,Oas3_1Types as ZT,Oas3_2Types as dh,AsyncApi2Types as eD,AsyncApi3Types as tD,Arazzo1Types as nD,Arazzo1_1Types as rD,Overlay1Types as iD,OpenRpcTypes as oD,ConfigTypes as sD,normalizeTypes as cl,getMajorSpecVersion as aD,createEntityTypes as cD}from"@redocly/openapi-core";var bt=Ne(jn(),1);var al=new Map;async function ul(e,t){let n=await et(e),r=n.getText(),i=bt.safeLoad(r,{filename:e}),{nodePath:o}=as({node:i,nodePath:[]},t,n,!0),s=await ll(i,e),{version:a}=dl(i),{currentType:c,parentType:u,endPath:d}=Zr(s,o,i),g=Xr(i),b=c?.name?c:u;return{nodePath:o,endPath:d,type:b,existingValues:g,types:s,descriptionVersion:a}}async function uD(e){let n=(await et(e)).getText();try{let r=bt.safeLoad(n,{filename:e});return pl(r)}catch{return{version:"oas3_2",isDefault:!0}}}function fh(e,t){if(!e)return null;let n=e,r=!0;return t.forEach(i=>{if(r=!1,tl(n)&&n.items&&n.items[i])n=n.items[i],r=!0;else if(sh(n)){let o=cs(n);for(let s of o)if(el(s)&&s.key?.value===i){n=s?.value,r=!0;break}}}),r?n:(console.warn("Cannot find node by path",t),null)}function lD(e,t){for(let n=0;n<t.length;n++)if(n===t.length-1||t[n+1]>e)return n;return t.length-1}function as(e,t,n,r=!1){let{node:i,nodePath:o=[]}=e,s=n.offsetAt(t),a=cs(i);if(a.length===0||pD(i)||!r&&dD(i,n,t))return e;let c=fD(a,s);return as({nodePath:mD(o,i,a[c],c),node:a[c]},t,n,r)}function pD(e){return e?.kind===bt.Kind.MAPPING&&!e?.value}function dD(e,t,n){let r=t.getText({start:t.positionAt(t._lineOffsets[n.line]),end:n}),i=gD(e,t),o=r?.match(/^\s+/)?.[0]?.length||0;return(/^\s*[\w\-$/{}]+$/.test(r)?o:n.character)===i}function fD(e,t){for(let n=1;n<e.length;n++){let r=e[n];if(r&&r.startPosition>t)return n-1}return e.length-1}function mD(e,t,n,r){return tl(t)?[...e,r]:el(n)&&n?.key?.value&&typeof n.key.value=="string"?[...e,n.key.value]:e}function gD(e,t){let n=e?.startPosition??0,r=lD(n,t._lineOffsets);if(r>=0){let i=t._lineOffsets[r];return n-i}return 0}function Zr(e,t,n){let r=e,i,o=new Array(t.length).fill(null);t.forEach((a,c)=>{let u;if(e?.name&&e?.name!==r?.name&&(r=e,i=a),e&&e?.properties&&!Object.keys(e?.properties).length&&e?.items){if(e.items.properties)u=e.items;else if(Kr(e.items)){let d=yD(n,typeof t[0]=="number"?t[0]:0);u=e.items(d,a)}}else if(e?.properties&&e.properties[a])u=e.properties[a],Kr(u)&&(u=u(null,a));else if(e?.additionalProperties&&!Kr(e?.additionalProperties))u=e.additionalProperties;else if(Kr(e?.additionalProperties)&&a){let d=e.additionalProperties(null,a);d&&(u=d)}u&&(e=u,o[c]=u)}),e?.name&&r?.name&&e?.name!==r?.name&&(i=void 0);let s=o.every(a=>!!a);return{currentType:s||t[0]==="openapi"||t.length===0?e:null,parentType:s?r:null,endPath:i}}function yD(e,t){let n={};if(e.kind===bt.Kind.SEQ&&e.items?.[t]){let r=e.items?.[t]?.mappings??[];for(let i of r)i.key?.value&&(n[i.key?.value]=i.value?.value)}return n}async function ll(e,t){if(await hn(t)||await hn(we(t)))return cl(sD).ConfigRoot;if(yn({uri:t,ast:e})||yn({uri:we(t),ast:e})){let{entityTypes:o}=cD(Ni,qi),s=cl(o);if(e?.kind===bt.Kind.SEQ)return s.EntityFileArray;let a=hD(e);return a&&s[a]?s[a]:s.EntityFileDefault}let{types:n,isDefault:r}=vD(e);if(!e)return n;let i=r?rl(t):n;return r&&!rl(t)&&e?null:i||n}function hD(e){let t="type";return e?.mappings?.find(n=>n.key?.value===t&&n.value?.value)?.value?.value}function bD(e){if(al.has(e))return al.get(e);let t=cl(PD(e)).Root;return al.set(e,t),t}function pl(e){let t,n=!1;if(e?.kind===bt.Kind.MAP)for(let r of e.mappings){let i=r.key?.value,o=String(r?.value?.value);if(i==="openapi"&&o.startsWith("3.0.")){t="oas3_0";break}if(i==="openapi"&&o.startsWith("3.1.")){t="oas3_1";break}if(i==="openapi"&&o.startsWith("3.")){t="oas3_2";break}if(i==="swagger"&&o==="2.0"){t="oas2";break}if(i==="asyncapi"&&o.startsWith("2."))return{version:"async2",isDefault:!1};if(i==="asyncapi"&&o.startsWith("3."))return{version:"async3",isDefault:!1};if(i==="arazzo"&&o.startsWith("1.0."))return{version:"arazzo1",isDefault:!1};if(i==="arazzo"&&o.startsWith("1."))return{version:"arazzo1_1",isDefault:!1};if(i==="overlay"&&o.startsWith("1."))return{version:"overlay1",isDefault:!1};if(i==="openrpc"&&o.startsWith("1."))return{version:"openrpc1",isDefault:!1}}return t||(t="oas3_2",n=!0),{version:t,isDefault:n}}function dl(e){let{version:t,isDefault:n}=pl(e);return{version:aD(t),isDefault:n}}function vD(e){let{version:t,isDefault:n}=pl(e);return{types:bD(t),isDefault:n}}function cs(e){switch(e?.kind){case bt.Kind.MAPPING:return[e.key,e.value];case bt.Kind.MAP:return e.mappings;case bt.Kind.SEQ:return e?.items;default:return[]}}function PD(e){switch(e){case"oas3_2":return dh;case"oas3_1":return ZT;case"oas3_0":return XT;case"oas2":return JT;case"async2":return eD;case"async3":return tD;case"arazzo1":return nD;case"arazzo1_1":return rD;case"overlay1":return iD;case"openrpc1":return oD;case"graphql":return{};default:return dh}}function Xr(e,t,n){if(typeof t>"u"&&(t={}),typeof n>"u"&&(n=0),!e)return{};let r=e?.mappings||e?.items;if(r){let i=0;for(let o of r)o?.value===null||!o?.value?.value?t[o?.key?.value||i]={value:oh(o?.value)?o?.value:null,startOffset:o?.key?.value?o.startPosition+o.key.value.length+1:null,endOffset:null,indent:n}:t[o?.key?.value||i]={value:o?.value?.value,rawValue:o?.value?.rawValue||null,startOffset:o?.value?.startPosition||null,endOffset:o?.value?.endPosition||null,indent:n},Object.keys(o?.value||o||{}).includes("items")?(t[o?.key?.value||i]={type:"sequence",startOffset:o.startPosition,endOffset:o.endPosition,indent:n,value:null},Xr(o?.value||o,t[o?.key?.value||i],n+1)):Object.keys(o?.value||o||{}).includes("mappings")&&(t[o?.key?.value||i]={type:"map",startOffset:o.startPosition,endOffset:o.endPosition,indent:n,value:null},Xr(o?.value||o,t[o?.key?.value||i],n+1)),i++}return t}import{mapTypeToComponent as mh}from"@redocly/openapi-core";var fl={Schema:[{name:"$ref",value:{type:"string",name:"Schema"}}],PathItem:[{name:"$ref",value:{type:"string",name:"PathItem"}}],Parameter:[{name:"$ref",value:{type:"string",name:"Parameter"}}],Response:[{name:"$ref",value:{type:"string",name:"Response"}}],Example:[{name:"$ref",value:{type:"string",name:"Example"}}],RequestBody:[{name:"$ref",value:{type:"string",name:"RequestBody"}}],Header:[{name:"$ref",value:{type:"string",name:"Header"}}],SecuritySchema:[{name:"$ref",value:{type:"string",name:"SecuritySchema"}}],Link:[{name:"$ref",value:{type:"string",name:"Link"}}],Callback:[{name:"$ref",value:{type:"string",name:"Callback"}}]};function gh(e){let t=fl[e.name];if(t&&e.properties)for(let n of t)e.properties[n.name]=n.value;return e}var us=Ne(Ft(),1),Je=class{constructor({kind:t,label:n,value:r,textEdit:i,filterText:o,sortText:s,data:a}){this.kind=t||us.CompletionItemKind.Value,this.label=n;let{node:c,lineOffset:u,position:d}=a;this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.textEdit=i||(c?.value&&d&&u!==void 0?this.getTextEdit(c,d,u):void 0)}getTextEdit(t,n,r){let i=t.startPosition-r,o=t.singleQuoted||t.doubleQuoted?2:0,s=i+t.value.length+o;return us.TextEdit.replace({start:{line:n.line,character:i},end:{line:n.line,character:s}},this.insertText)}};var dr=Ne(Ft(),1),Et=class{constructor({kind:t,label:n,insertText:r,insertTextFormat:i,filterText:o,sortText:s,data:a}){this.insertTextFormat=i??(n.includes("$")?dr.InsertTextFormat.PlainText:dr.InsertTextFormat.Snippet),this.kind=t||dr.CompletionItemKind.Property,this.label=n,this.data=a||{},this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.command=this.kind===dr.CompletionItemKind.Property?{title:"Suggested values",command:"editor.action.triggerSuggest"}:void 0}};var ei={example:"example",default:"default",enum:"enum",ref:"$ref"},ls=[ei.default,ei.example];var vh=Ne(jn(),1);var Ee={};bs(Ee,{default:()=>bh.default});vs(Ee,Ne(ml()));var bh=Ne(ml());function _D(e,t,n){let r=t.slice(0,t.length-1),{currentType:i}=Zr(e,r,n);if(i?.name){let[o]=fl[i.name]||[];return o?.value}return null}function CD(e,t,n){let r=t[t.length-1];if(rh(r))return _D(e,t,n);let{currentType:i}=Zr(e,t,n);return i?ss(i)?i:i?.name&&(i?.name.includes("Map")||i?.name.includes("Named"))?{name:Jr,properties:{}}:i:null}function RD(e,t){return typeof t=="string"&&t in(e?.properties??{})?t:void 0}function TD(e,t,n){let{currentType:r,parentType:i,endPath:o}=Zr(e,t,n);return{contextType:r?.name??i?.name??"",contextProperty:RD(i,o)}}async function Ph(e,t){let n=await et(e),r=n.getText(),i=(0,vh.safeLoad)(r,{filename:e}),{node:o,nodePath:s}=as({node:i,nodePath:[]},t,n),a=await ll(i,e),c=CD(a,s,i),u=n._lineOffsets[t.line],d=n.getText({start:n.positionAt(u),end:t});return{currentAst:i,node:o,nodePath:s,position:t,lineText:d,lineOffset:u,openApiType:c,...TD(a,s,i)}}async function xh(e,t){let n=K.resolvePath(He(e)),r=K.dirname(n),i=await xl(K.joinPath(r,t),r.path),o=K.resolvePath(r,i.path);return{refPath:t,refDirPath:i,refDirAbsolutePath:o,isAbsolutePath:t?(0,Ee.isAbsolute)(t):!1,docAbsolutePath:n,docAbsoluteDirPath:r,root:"/"}}var _h=Ne(Ft(),1);var ps=class extends Je{constructor(t){super(t),this.kind=_h.CompletionItemKind.Folder,this.command={title:"Complete path",command:"editor.action.triggerSuggest",arguments:[]}}};var Ch=Ne(Ft(),1);var ds=class extends Je{constructor(t){super(t),this.kind=Ch.CompletionItemKind.File}};var wD=ce.supportedLanguages.concat({languageId:"markdown",filePattern:/\.md$/});function SD(e){let{refPath:t,docAbsoluteDirPath:n,isAbsolutePath:r,root:i}=e,o=(0,Ee.resolve)(n.path,t,".."),s=r?o:(0,Ee.relative)(n.path,o),a=s&&s!==i?"/":"";return{name:"../",type:1,matchBy:t,sortBy:Te("FolderCompletion"),value:`${s}${a}`}}async function kD(e,t,n){let r=[],{refDirAbsolutePath:i,docAbsolutePath:o}=n;for(let s of e)try{let a=K.resolvePath(i,s),c=await ce.fs.stat(a);c.isFile()&&a.path!==o.path&&t.supportedFiles.some(u=>u.filePattern.test(s))&&r.push({name:s,type:0}),c.isDirectory()&&r.push({name:s,type:1})}catch{continue}return r}function Rh(e,t){let{docAbsoluteDirPath:n,isAbsolutePath:r,refDirAbsolutePath:i,root:o,refPath:s}=t,a=[];return i.path!==o&&a.push(SD(t)),a.concat(e.map(({name:c,type:u})=>{let d=(0,Ee.resolve)(i.path,c),g=(0,Ee.relative)(n.path,d),b=s.includes(Ee.sep)?s.slice(0,s.lastIndexOf(Ee.sep)+1):s+Ee.sep,h=r?d:g;if(u===0)return{type:u,name:c,value:h,sortBy:`${Te("FileCompletion")}${c}`,matchBy:`${b}${c}`};let D=`${c}/`;return{type:u,name:D,value:`${h}${g?"/":""}`,sortBy:`${Te("FolderCompletion")}${c}`,matchBy:`${b}${c}`}}))}function Th(e,t){let{node:n,lineOffset:r,position:i}=t;return e.map(o=>{let{name:s,value:a,matchBy:c,sortBy:u,type:d}=o,g={label:s,filterText:Gr(c,n),sortText:u,value:a,data:{lineOffset:r,position:i,node:n}};return d===1?new ps(g):new ds(g)})}async function Dh(e,t){let{node:n}=t,r=n.value??"",i=await xh(e,r),{refDirAbsolutePath:o}=i,s=[];try{s=await ce.fs.readDir(o)}catch{return Th(Rh([],i),t)}let a=await kD(s,{supportedFiles:wD},i);return Th(Rh(a,i),t)}import{isEmptyObject as AD,isPlainObject as Sh}from"@redocly/openapi-core";var fs=" ";function ED(e){let t=e?.match(/^\s*(?:- )+/)?.[0].match(/- /g)?.length??0;return fs.repeat(t)}function kh(e){return!Sh(e)||!Array.isArray(e.required)?[]:e.required.filter(t=>typeof t=="string")}function Ah(e,t){return e.map((n,r)=>`${n}: \${${r+1}}`).join(`
|
|
76
|
+
${t}`)}function wh(e,t){let n=kh(e);return n.length?`- ${Ah(n,t+fs)}`:"- "}function Dn(e,t){if(e===lr)return`
|
|
77
|
+
`;let n=t?.lineText,r=!!n?.trimEnd().endsWith(":"),i=ED(n)+(r?fs:""),o=r?`
|
|
78
|
+
${i}`:"",s=i+fs;if(e===pr)return`${o}${wh(t?.items,i)}`;if(Sh(t?.items))return`${o}${e}:
|
|
79
|
+
${s}${wh(t?.items,s)}`;let a=kh(t);return a.length?`${o}${e}:
|
|
80
|
+
${s}${Ah(a,s)}`:t?.properties&&!AD(t.properties)?`${o}${e}:
|
|
81
|
+
${s}`:`${o}${e}: `}var ms=Ne(Ft(),1);var ND=["BuiltinRule","ConfigurableRule","CustomRule"],qD=["error","warn","off"],OD=["assertions"],Eh="rule/customRuleName",Nh=`rule/\${1:my-rule}:
|
|
82
82
|
subject:
|
|
83
83
|
type: \${2}
|
|
84
84
|
assertions:
|
|
85
|
-
\${3}`;function
|
|
86
|
-
${
|
|
87
|
-
`)}`:
|
|
88
|
-
- `:"- ";return a.flatMap(({id:u,configNames:d})=>d.map(g=>u?`${u}/${g}`:g)).map(u=>new Je({label:u,value:`${c}${u}`,filterText:u,data:{node:n,position:r,lineOffset:i}}))}function
|
|
85
|
+
\${3}`;function qh(e){return e.openApiType?.name==="Rules"}function Oh(e){return!!e.openApiType?.name&&ND.includes(e.openApiType.name)&&e.lineText.trimEnd().endsWith(":")}function gl(e){return e[e.length-2]==="extends"&&typeof e[e.length-1]=="number"&&(e.length===2||e.length===4&&e[0]==="apis")}function jh(e){return e[e.length-1]==="extends"&&(e.length===1||e.length===3&&e[0]==="apis")}async function Lh(e){return((await Vt(e)).plugins||[]).map(n=>{let r=new Set;for(let i of Object.values(n.rules||{}))for(let o of Object.keys(i))OD.includes(o)||r.add(o);return{id:n.id||"",ruleNames:[...r],configNames:Object.keys(n.configs||{})}})}function jD(e){return e.trimEnd().endsWith(":")?`
|
|
86
|
+
${Nh.replace(/\n/g,`
|
|
87
|
+
`)}`:Nh}async function Mh(e,t,n){let{lineText:r}=t,o=(await Lh(e)).flatMap(({id:s,ruleNames:a})=>a.map(c=>s?`${s}/${c}`:c)).filter(s=>!n.includes(s)).map(s=>new Et({label:s,kind:ms.CompletionItemKind.Property,insertText:Dn(s,{lineText:r})}));return o.push(new Et({label:Eh,kind:ms.CompletionItemKind.Snippet,insertText:jD(r),filterText:Eh})),o}function Ih(e){let{node:t,position:n,lineOffset:r,lineText:i}=e,o=i.endsWith(" ")?"":" ";return qD.map(s=>new Je({label:s,kind:ms.CompletionItemKind.EnumMember,value:`${o}${s}`,filterText:s,data:{node:t,position:n,lineOffset:r}}))}async function Fh(e,t){let{node:n,position:r,lineOffset:i,nodePath:o,lineText:s}=t,a=await Lh(e),c=gl(o)?"":s.trimEnd().endsWith(":")?`
|
|
88
|
+
- `:"- ";return a.flatMap(({id:u,configNames:d})=>d.map(g=>u?`${u}/${g}`:g)).map(u=>new Je({label:u,value:`${c}${u}`,filterText:u,data:{node:n,position:r,lineOffset:i}}))}function LD(e,t){let{version:n}=dl(e),r=mh(t,n);if(!r)return[];let i=fh(e,["components",r]);return i?(cs(i.value||i)||[]).map(({key:{value:s}})=>`#/components/${r}/${s}`):[]}function MD(e){let{node:t,position:n,lineOffset:r}=e,i=ls.includes(t.key?.value)?t:ls.includes(t.parent?.key?.value)?t.parent:null;return i?i?.parent?.mappings?.find(({key:s})=>s?.value===ei.enum)?.value?.items?.map(({value:s})=>new Je({label:s,data:{node:t,position:n,lineOffset:r}}))||[]:[]}async function ID(e,t){let{position:n,openApiType:r,currentAst:i,lineOffset:o,node:s}=t,a=r?.name?LD(i,r.name):[];return[...await Dh(e,t),...a.map(u=>{let d=Gr(u,s);return new Je({label:u,filterText:Gr(u,s),value:d,sortText:`${Te("LocalComponentCompletion")}${u}`,data:{lineOffset:o,position:n,node:s}})})]}function FD(e){let{openApiType:t,node:n,position:r,lineOffset:i}=e;return t?.enum?t.enum.map(o=>new Je({label:o,kind:gs.CompletionItemKind.EnumMember,data:{node:n,position:r,lineOffset:i}})):[]}function UD(e){let{node:t,position:n,lineOffset:r}=e;return["true","false"].map(i=>new Je({label:i,data:{node:t,position:n,lineOffset:r}}))}function Uh(e){let{currentAst:t,nodePath:n,node:r,openApiType:i,lineText:o}=e,s=Hh(t,n,r);return $D(i,s,o)}async function WD(e,t){let{node:n,nodePath:r,openApiType:i}=t;if(!n)return[];let o=n.key?.value||(r.length?r[r.length-1]:null);return o&&i?.name&&ei.ref===o?ID(e,t):ls.includes(o)?MD(t):i?.enum?FD(t):i?.type==="boolean"?UD(t):[]}async function Wh(e,t){let n=await Ph(e,t),r=await HD(e,n),{contextType:i,contextProperty:o}=n;for(let s of r)s.data={...s.data,contextType:i,contextProperty:o};return r}async function HD(e,t){if(gl(t.nodePath)||jh(t.nodePath))return Fh(e,t);if(qh(t)){let n=Hh(t.currentAst,t.nodePath,t.node);return Mh(e,t,n)}return Oh(t)?[...Ih(t),...Uh(t)]:t.openApiType?.properties?Uh(t):BD(await WD(e,t),t.lineText)}function BD(e,t){if(t.endsWith(":"))for(let n of e)n.textEdit||(n.insertText=` ${n.insertText}`);return e}function zD(e,t){return e.startsWith("$")&&/\$[\w-]*$/.test(t)?e.slice(1):e}function Hh(e,t,n){if(!e)return[];let i=Xr(e);for(let a=0;a<t.length;a++)i[t[a]]&&(i=i[t[a]]);let o=i?Object.keys(i).filter(a=>i[a]&&typeof i[a]=="object"):[],s=n?.value?.mappings||n?.mappings;if(s){let a=s.map(c=>c.key?.value);o.push(...a)}return!o.length&&n?.value&&o.push(n.value),o}function $D(e,t,n){if(!e)return[];if(gh(e),ss(e))return sl(e?.name).filter(r=>!t.includes(r.label)).map(r=>new Et({...r,insertText:Dn(r.label,{...r.data,...e,lineText:n})}));if(e.properties&&Object.keys(e.properties).length){let r=Object.keys(e.properties).filter(i=>!t.includes(i)).map(i=>{let o={...e?.properties?.[i]||{},lineText:n};return new Et({label:i,kind:gs.CompletionItemKind.Property,insertText:zD(Dn(i,o),n),sortText:Te(e?.name,i)})});return n.endsWith(":")&&r.push(...sl(lr).map(i=>new Et({...i,insertText:Dn(i.label,{...i.data,lineText:n})}))),r}return e.items&&Object.keys(e.items).length?[new Et({label:pr,kind:gs.CompletionItemKind.Constructor,insertText:Dn(pr,{...e,lineText:n}),sortText:Te(pr)})]:[]}var Ut=Ne(es(),1);var cn=Ne(jn(),1);import{getAstNodeByPointer as YD}from"@redocly/openapi-core";async function VD({position:e,textDocument:t,value:n,line:r,document:i}){let[o,s]=n.split("#/"),a=r.indexOf(n),c=a+n.length;if(e.character>=a&&a!==-1){let u=o?K.joinPath(K.dirname(Xe.parse(i.uri)),o).toString():t.uri,d;try{d=await et(u)}catch{return}let g=(0,cn.safeLoad)(d.getText(),{filename:we(u)}),b=YD(g,`#/${s}`,!0),h=Ut.Range.create(d.positionAt(b?.startPosition||0),d.positionAt(b?.endPosition||0));return[Ut.LocationLink.create(u,Ut.Range.create(0,0,d.lineCount,0),h,Ut.Range.create(Ut.Position.create(e.line,a),Ut.Position.create(e.line,c)))]}}async function Bh({position:e,textDocument:t}){let n;try{n=await et(t.uri)}catch{return}let o=n.getText().split(/\r\n|[\n\r]/g)[e.line],s=(0,cn.safeLoad)(o,{filename:we(t.uri)}),a;switch(s.kind){case cn.Kind.SCALAR:{a=s.parent||{value:{value:s?.value}};break}case cn.Kind.MAP:{a=s?.mappings?.[0];break}case cn.Kind.SEQ:{let u=s?.items?.[0];a=u?.kind===cn.Kind.MAP?u?.mappings?.[0]:{value:{value:u?.value}};break}default:a=null}let c=a?.value?.value;if(c&&!hr(c))return VD({position:e,textDocument:t,value:c,line:o,document:n})}var Yh=Ne(es(),1);function zh({nodePath:e,propertyTypeName:t,typeName:n,documentationLink:r}){let i=e.join(" \u203A "),o=r&&r.trim()?`
|
|
89
89
|
|
|
90
90
|
[Documentation](${r})
|
|
91
91
|
`:"";return`${n&&t&&n!==t?`\`type\` **${n}** \u203A \`property\` **${t}**`:`\`type\` **${t}**`}${o}
|
|
92
92
|
|
|
93
93
|
*${i}*
|
|
94
|
-
`}function
|
|
95
|
-
`)}async function
|
|
94
|
+
`}function $h(e){if(!e)return"";let t=e.nodePath.map(a=>String(a)),n=e.type,r=n?.name;if(!n||!r)return"";let i=n?.properties,o=e?.endPath?i?.[e.endPath]:n;return typeof o=="function"||e.types?.name==="ConfigRoot"&&r.startsWith("rootRedoclyConfigSchema.")?"":[zh({nodePath:t,propertyTypeName:e.endPath?e.endPath:r,typeName:e.endPath?r:void 0,documentationLink:o?.documentationLink}),o?.description??""].join(`
|
|
95
|
+
`)}async function Vh(e){try{let t=e.textDocument.uri;if(!vi(t)&&!Cr(t))return null;let n=e.position;if(!KD(n,t))return null;let r=await ul(t,n);if(!r)return null;let i=$h(r);return i?{contents:{kind:Yh.MarkupKind.Markdown,value:i},metadata:{nodePath:r.nodePath,endPath:r.endPath,typeName:r.type?.name,descriptionVersion:r.descriptionVersion}}:null}catch(t){return console.error("Error in hover handler:",t),null}}function KD(e,t){let n=ce.documents.get(t);if(!n)return!0;let r=n.getText({start:{line:e.line,character:0},end:{line:e.line+1,character:0}}).trimEnd(),i=r.indexOf(":");if(i===-1)return!1;let o=r.match(/^\s*/)?.[0].length??0,s=r.substring(o,i).trimEnd(),a=o+s.length;return e.character>=o&&e.character<a}var GD=(t=>(t[t.FILE_TYPE_NOT_SUPPORTED=0]="FILE_TYPE_NOT_SUPPORTED",t))(GD||{});var Kh=class{async onCompletion(t){let{uri:n}=t.textDocument;return Cr(n)?[]:Wh(n,t.position)}async onCompletionResolve(t){return t}async onHover(t){return Vh(t)}async validateOpenAPI(t){return ol(t)}async onDidChangeWatchedFiles(t){let n=t.changes.find(async i=>await hn(i.uri));if(n)return await Pi(n.uri),Qr();if(t.changes.find(i=>yn({uri:i.uri})))return Qr()}async onDidConfigChange(t){return await Pi(t),Qr()}async onDidChangeConfiguration(){return Qr()}async onDefinition(t){let{uri:n}=t.textDocument;return Cr(n)?[]:await Bh(t)||[]}};export{GD as ContextErrorCodes,Kh as OpenapiLanguageServer,nl as bundleOpenAPI,ax as clearPluginsCache,wT as getBundles,Vt as getConfigData,ul as getContextData,et as getDocumentByURI,Js as getPathsByDependency,ox as getPluginFiles,uD as getSpecVersion,hn as isConfigFile,yn as isEntityFile,hr as isHttpPath,nx as isIgnoreFile,sx as isPluginFile,vi as isYamlFile,ce as languageServerConfig,Pi as loadOpenAPIConfig,He as parseUri,ns as removeCirculars,Qr as revalidateAllDocuments,we as uriToAbsFSPath};
|