@redocly/openapi-language-server 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +5 -5
- package/lib/index.js +8 -8
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -6,19 +6,19 @@ var Xy=Object.create;var ei=Object.defineProperty;var Zy=Object.getOwnPropertyDe
|
|
|
6
6
|
\r`;function iv(e){if(e===null)return!1;var t,n,r=0,i=0,o=e.length,s=Rs;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 ov(e){var t,n,r,i=e.replace(/[\r\n=]/g,""),o=i.length,s=Rs,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),ci?new ci(c):c}function sv(e){var t="",n=0,r,i,o=e.length,s=Rs;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 av(e){return ci&&ci.isBuffer(e)}lp.exports=new rv.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:iv,construct:ov,predicate:av,represent:sv})});var fp=R((bT,dp)=>{"use strict";var cv=Ae(),uv=Object.prototype.hasOwnProperty,lv=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,lv.call(i)!=="[object Object]")return!1;for(o in i)if(uv.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 dv(e){return e!==null?e:[]}dp.exports=new cv.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:pv,construct:dv})});var mp=R((vT,gp)=>{"use strict";var fv=Ae(),Ds=Nt(),gv=Object.prototype.toString;function mv(e){if(e===null)return!0;if(e.kind!=Ds.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],gv.call(r)!=="[object Object]"||!Array.isArray(r.mappings)||r.mappings.length!==1)return!1;return!0}function hv(e){if(e===null||!Array.isArray(e.items))return[];let t,n,r,i,o=e.items;for(i=Ds.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=Ds.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 fv.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:mv,construct:hv})});var yp=R((PT,hp)=>{"use strict";var yv=Ae(),bv=Nt();function vv(e){return e===null?!0:e.kind==bv.Kind.MAP}function Pv(e){return e!==null?e:{}}hp.exports=new yv.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:vv,construct:Pv})});var ui=R((xT,bp)=>{"use strict";var xv=kn(),_v=new xv.Schema({include:[np()],implicit:[op(),ap()],explicit:[pp(),fp(),mp(),yp()]});bp.exports=_v});var Pp=R((_T,vp)=>{"use strict";var Cv=Ae();function Rv(){return!0}function Dv(){}function Tv(){return""}function wv(e){return typeof e>"u"}vp.exports=new Cv.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:Rv,construct:Dv,predicate:wv,represent:Tv})});var _p=R((CT,xp)=>{"use strict";var Sv=Ae();function kv(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 Av(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 Ev(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function Nv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}xp.exports=new Sv.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:kv,construct:Av,predicate:Nv,represent:Ev})});var Ts=R((RT,Dp)=>{"use strict";var Cp=kn(),Rp=new Cp.Schema({include:[ui()],explicit:[Pp(),_p()]});Cp.Schema.DEFAULT=Rp;Dp.exports=Rp});var Ip=R((ht,vr)=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.safeLoad=ht.safeLoadAll=ht.load=ht.loadAll=void 0;var ze=Nt(),Wt=un(),Os=Sn(),Ms=kl(),kp=ui(),qv=Ts(),di=Object.prototype.hasOwnProperty,li=1,Ap=2,Ep=3,pi=4,ws=1,Ov=2,Tp=3,Mv=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,jv=/[\x85\u2028\u2029]/,Lv=/[,\[\]\{\}]/,Np=/^(?:!|!!|![a-z\-]+!)$/i,qp=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ut(e){return e===10||e===13}function pn(e){return e===9||e===32}function Be(e){return e===9||e===32||e===10||e===13}function An(e){return e===44||e===91||e===93||e===123||e===125}function Iv(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Fv(e){return e===120?2:e===117?4:e===85?8:0}function Uv(e){return 48<=e&&e<=57?e-48:-1}function Wv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
7
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 Hv(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Ss=new Array(256),ks=new Array(256),Op=new Array(256),As=new Array(256);for(et=0;et<256;et++)As[et]=ks[et]=Wv(et),Ss[et]=ks[et]?1:0,Op[et]=1,Ss[et]||(As[et]="\\"+String.fromCharCode(et));var et,Es=class{constructor(t,n){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=n.filename||null,this.schema=n.schema||qv,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 js(e,t,n=!1){return new Os(t,new Ms(e.filename,e.input,e.position,e.line,e.position-e.lineStart),n)}function Ns(e,t,n,r=!1,i=!1){var o=Bv(e,t);if(o){var s=n+t;if(!e.errorMap[s]){var a=new Ms(e.filename,e.input,t,o.line,t-o.start);i&&(a.toLineEnd=!0);var c=new Os(n,a,r);e.errors.push(c)}}}function H(e,t){var n=js(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
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 qs(e,t){var n=js(e,t);e.onWarning&&e.onWarning.call(null,n)}var wp={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],Np.test(i)||H(t,"ill-formed tag handle (first argument) of the TAG directive"),di.call(t.tagMap,i)&&H(t,'there is a previously declared suffix for "'+i+'" tag handle'),qp.test(o)||H(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function Ht(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 Mv.test(a)&&H(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=n}}function ln(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:ze.Kind.MAP,nodeIndent:o});var a=ze.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=>{ze.isNodesEqual(c,a)&&(Ns(e,a.key.startPosition,"duplicate key"),Ns(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=s,t}}function Ls(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 Bv(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 le(e,t,n,r=!1){for(var i=0,o=e.input.charCodeAt(e.position);o!==0;){for(;pn(o);)o===9&&e.errors.push(js(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(ut(o))for(Ls(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&&qs(e,"deficient indentation"),i}function br(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||Be(n)))}function Is(e,t,n){n===1?t.value+=" ":n>1&&(t.value+=Wt.repeat(`
|
|
9
|
-
`,n-1))}function zv(e,t,n){var r,i,o,s,a,c,u,d,m=e.kind,v=e.result,y,T=ze.newScalar("",t);if(T.plainScalar=!0,e.result=T,y=e.input.charCodeAt(e.position),Be(y)||An(y)||y===35||y===38||y===42||y===33||y===124||y===62||y===39||y===34||y===37||y===64||y===96)return e.result.startPosition=e.position-1,e.result.endPosition=e.position-1,!1;if((y===63||y===45)&&(i=e.input.charCodeAt(e.position+1),Be(i)||n&&An(i)))return!1;for(e.kind="scalar",o=s=e.position,a=!1;y!==0;){if(y===58){if(i=e.input.charCodeAt(e.position+1),Be(i)||n&&An(i))break}else if(y===35){if(r=e.input.charCodeAt(e.position-1),Be(r))break}else{if(e.position===e.lineStart&&br(e)||n&&An(y))break;if(ut(y))if(c=e.line,u=e.lineStart,d=e.lineIndent,le(e,!1,-1),e.lineIndent>=t){a=!0,y=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=u,e.lineIndent=d;break}}if(a&&(Ht(e,o,s,!1),Is(e,T,e.line-c),o=s=e.position,a=!1),pn(y)||(s=e.position+1),y=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return Ht(e,o,s,!1),e.result.startPosition!=-1?(T.rawValue=e.input.substring(T.startPosition,T.endPosition),e.result.endPosition=le(e,!1,-1)?e.position-1:e.position,!0):(e.kind=m,e.result=v,!1)}function $v(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;var o=ze.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(Ht(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 ut(n)?(Ht(e,r,i,!0),Is(e,o,le(e,!1,t)),r=i=e.position):e.position===e.lineStart&&br(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 Yv(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=ze.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 Ht(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(Ht(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),ut(c))le(e,!1,t);else if(c<256&&(e.allowAnyEscape?Op[c]:Ss[c]))u.value+=e.allowAnyEscape?As[c]:ks[c],e.position++;else if((s=Fv(c))>0){for(i=s,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(s=Iv(c))>=0?o=(o<<4)+s:H(e,"expected hexadecimal character");u.value+=Hv(o),e.position++}else H(e,"unknown escape sequence");n=r=e.position}else ut(c)?(Ht(e,n,r,!0),Is(e,u,le(e,!1,t)),n=r=e.position):e.position===e.lineStart&&br(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 Vv(e,t){var n=!0,r,i=e.tag,o,s=e.anchor,a,c,u,d,m,v,y,T,I;if(I=e.input.charCodeAt(e.position),I===91)c=93,m=!1,o=ze.newItems(),o.startPosition=e.position;else if(I===123)c=125,m=!0,o=ze.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(le(e,!0,t),I=e.input.charCodeAt(e.position),I===c)return e.position++,e.tag=i,e.anchor=s,e.kind=m?"mapping":"sequence",e.result=o,o.endPosition=e.position,!0;if(!n){var G=e.position;H(e,"missed comma between flow collection entries"),e.position=G+1}if(y=v=T=null,u=d=!1,I===63&&(a=e.input.charCodeAt(e.position+1),Be(a)&&(u=d=!0,e.position++,le(e,!0,t))),r=e.line,En(e,t,li,!1,!0),y=e.tag,v=e.result,le(e,!0,t),I=e.input.charCodeAt(e.position),(d||e.line===r)&&I===58&&(u=!0,I=e.input.charCodeAt(++e.position),le(e,!0,t),En(e,t,li,!1,!0),T=e.result),m)ln(e,o,y,v,T,t);else if(u){var
|
|
9
|
+
`,n-1))}function zv(e,t,n){var r,i,o,s,a,c,u,d,m=e.kind,v=e.result,y,T=ze.newScalar("",t);if(T.plainScalar=!0,e.result=T,y=e.input.charCodeAt(e.position),Be(y)||An(y)||y===35||y===38||y===42||y===33||y===124||y===62||y===39||y===34||y===37||y===64||y===96)return e.result.startPosition=e.position-1,e.result.endPosition=e.position-1,!1;if((y===63||y===45)&&(i=e.input.charCodeAt(e.position+1),Be(i)||n&&An(i)))return!1;for(e.kind="scalar",o=s=e.position,a=!1;y!==0;){if(y===58){if(i=e.input.charCodeAt(e.position+1),Be(i)||n&&An(i))break}else if(y===35){if(r=e.input.charCodeAt(e.position-1),Be(r))break}else{if(e.position===e.lineStart&&br(e)||n&&An(y))break;if(ut(y))if(c=e.line,u=e.lineStart,d=e.lineIndent,le(e,!1,-1),e.lineIndent>=t){a=!0,y=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=u,e.lineIndent=d;break}}if(a&&(Ht(e,o,s,!1),Is(e,T,e.line-c),o=s=e.position,a=!1),pn(y)||(s=e.position+1),y=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return Ht(e,o,s,!1),e.result.startPosition!=-1?(T.rawValue=e.input.substring(T.startPosition,T.endPosition),e.result.endPosition=le(e,!1,-1)?e.position-1:e.position,!0):(e.kind=m,e.result=v,!1)}function $v(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;var o=ze.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(Ht(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 ut(n)?(Ht(e,r,i,!0),Is(e,o,le(e,!1,t)),r=i=e.position):e.position===e.lineStart&&br(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 Yv(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=ze.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 Ht(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(Ht(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),ut(c))le(e,!1,t);else if(c<256&&(e.allowAnyEscape?Op[c]:Ss[c]))u.value+=e.allowAnyEscape?As[c]:ks[c],e.position++;else if((s=Fv(c))>0){for(i=s,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(s=Iv(c))>=0?o=(o<<4)+s:H(e,"expected hexadecimal character");u.value+=Hv(o),e.position++}else H(e,"unknown escape sequence");n=r=e.position}else ut(c)?(Ht(e,n,r,!0),Is(e,u,le(e,!1,t)),n=r=e.position):e.position===e.lineStart&&br(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 Vv(e,t){var n=!0,r,i=e.tag,o,s=e.anchor,a,c,u,d,m,v,y,T,I;if(I=e.input.charCodeAt(e.position),I===91)c=93,m=!1,o=ze.newItems(),o.startPosition=e.position;else if(I===123)c=125,m=!0,o=ze.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(le(e,!0,t),I=e.input.charCodeAt(e.position),I===c)return e.position++,e.tag=i,e.anchor=s,e.kind=m?"mapping":"sequence",e.result=o,o.endPosition=e.position,!0;if(!n){var G=e.position;H(e,"missed comma between flow collection entries"),e.position=G+1}if(y=v=T=null,u=d=!1,I===63&&(a=e.input.charCodeAt(e.position+1),Be(a)&&(u=d=!0,e.position++,le(e,!0,t))),r=e.line,En(e,t,li,!1,!0),y=e.tag,v=e.result,le(e,!0,t),I=e.input.charCodeAt(e.position),(d||e.line===r)&&I===58&&(u=!0,I=e.input.charCodeAt(++e.position),le(e,!0,t),En(e,t,li,!1,!0),T=e.result),m)ln(e,o,y,v,T,t);else if(u){var U=ln(e,null,y,v,T,t);U.parent=o,o.items.push(U)}else v&&(v.parent=o),o.items.push(v);o.endPosition=e.position+1,le(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 Kv(e,t){var n,r,i=ws,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 m=ze.newScalar("",t);for(e.kind="scalar",e.result=m,m.startPosition=e.position;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)ws===i?i=d===43?Tp:Ov:H(e,"repeat of a chomping mode identifier");else if((u=Uv(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(pn(d)){do d=e.input.charCodeAt(++e.position);while(pn(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ut(d)&&d!==0)}for(;d!==0;){for(Ls(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),ut(d)){a++;continue}if(e.lineIndent<s){i===Tp?m.value+=Wt.repeat(`
|
|
10
10
|
`,a):i===ws&&o&&(m.value+=`
|
|
11
11
|
`);break}for(r?pn(d)?(c=!0,m.value+=Wt.repeat(`
|
|
12
12
|
`,a+1)):c?(c=!1,m.value+=Wt.repeat(`
|
|
13
13
|
`,a+1)):a===0?o&&(m.value+=" "):m.value+=Wt.repeat(`
|
|
14
14
|
`,a):o&&(m.value+=Wt.repeat(`
|
|
15
15
|
`,a+1)),o=!0,a=0,n=e.position;!ut(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Ht(e,n,e.position,!1)}m.endPosition=e.position;for(var v=e.position-1,y=!1;;){var T=e.input[v];if(T=="\r"||T==`
|
|
16
|
-
`){y&&v--;break}if(T!=" "&&T!=" ")break;v--}return m.endPosition=v,m.rawValue=e.input.substring(m.startPosition,m.endPosition),!0}function Sp(e,t){var n,r=e.tag,i=e.anchor,o=ze.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),!Be(s)));){if(a=!0,e.position++,le(e,!0,-1)&&e.lineIndent<=t){o.items.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,En(e,t,Ep,!1,!0),e.result&&(e.result.parent=o,o.items.push(e.result)),o.endPosition=le(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 Gv(e,t,n){var r,i,o,s=e.tag,a=e.anchor,c=ze.newMap(null,t),u=null,d=null,m=null,v=!1,y=!1,T;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),T=e.input.charCodeAt(e.position);T!==0;){if(r=e.input.charCodeAt(e.position+1),o=e.line,(T===63||T===58)&&Be(r))T===63?(v&&(ln(e,c,u,d,null,t),u=d=m=null),y=!0,v=!0,i=!0):v?(v=!1,i=!0):H(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,T=r;else if(En(e,n,Ap,!1,!0))if(e.line===o){for(T=e.input.charCodeAt(e.position);pn(T);)T=e.input.charCodeAt(++e.position);if(T===58)T=e.input.charCodeAt(++e.position),Be(T)||H(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(ln(e,c,u,d,null,t),u=d=m=null),y=!0,v=!1,i=!1,u=e.tag,d=e.result;else{if(e.position==e.lineStart&&br(e))break;if(y)H(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=a,!0}}else if(y){for(H(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(T=e.input.charCodeAt(--e.position),ut(T)){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,ln(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;En(e,t,pi,!0,i)?(le(e,!0,t),v?d=e.result:(m=e.result,m.endPosition=e.line===I?e.position:e.position-1)):d&&(d.endPosition=e.line===I?e.position:e.position-1),v||(ln(e,c,u,d,m,t),u=d=m=null),le(e,!0,-1),T=e.input.charCodeAt(e.position)}if(e.lineIndent>t&&T!==0)H(e,"bad indentation of a mapping entry"+e.position),T=e.input.charCodeAt(++e.position),le(e,!0,-1);else if(e.lineIndent<t)break}return v&&ln(e,c,u,d,null,t),y&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),y}function Qv(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&&!Be(s);)s===33&&(r?H(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Np.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),Lv.test(o)&&H(e,"tag suffix cannot contain flow indicator characters")}return o&&!qp.test(o)&&H(e,"tag name cannot contain such characters: "+o),n?e.tag=o:di.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 Jv(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&&!Be(n)&&!An(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 Xv(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&&!Be(o)&&!An(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=ze.newAnchorRef(n,t,e.position,e.anchorMap[n],0),le(e,!0,-1),!0}function En(e,t,n,r,i){var o,s,a,c=1,u=!1,d=!1,m,v,y,T,I,G;e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=pi===n||Ep===n,r&&le(e,!0,-1)&&(u=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));let
|
|
16
|
+
`){y&&v--;break}if(T!=" "&&T!=" ")break;v--}return m.endPosition=v,m.rawValue=e.input.substring(m.startPosition,m.endPosition),!0}function Sp(e,t){var n,r=e.tag,i=e.anchor,o=ze.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),!Be(s)));){if(a=!0,e.position++,le(e,!0,-1)&&e.lineIndent<=t){o.items.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,En(e,t,Ep,!1,!0),e.result&&(e.result.parent=o,o.items.push(e.result)),o.endPosition=le(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 Gv(e,t,n){var r,i,o,s=e.tag,a=e.anchor,c=ze.newMap(null,t),u=null,d=null,m=null,v=!1,y=!1,T;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),T=e.input.charCodeAt(e.position);T!==0;){if(r=e.input.charCodeAt(e.position+1),o=e.line,(T===63||T===58)&&Be(r))T===63?(v&&(ln(e,c,u,d,null,t),u=d=m=null),y=!0,v=!0,i=!0):v?(v=!1,i=!0):H(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,T=r;else if(En(e,n,Ap,!1,!0))if(e.line===o){for(T=e.input.charCodeAt(e.position);pn(T);)T=e.input.charCodeAt(++e.position);if(T===58)T=e.input.charCodeAt(++e.position),Be(T)||H(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(ln(e,c,u,d,null,t),u=d=m=null),y=!0,v=!1,i=!1,u=e.tag,d=e.result;else{if(e.position==e.lineStart&&br(e))break;if(y)H(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=a,!0}}else if(y){for(H(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(T=e.input.charCodeAt(--e.position),ut(T)){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,ln(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;En(e,t,pi,!0,i)?(le(e,!0,t),v?d=e.result:(m=e.result,m.endPosition=e.line===I?e.position:e.position-1)):d&&(d.endPosition=e.line===I?e.position:e.position-1),v||(ln(e,c,u,d,m,t),u=d=m=null),le(e,!0,-1),T=e.input.charCodeAt(e.position)}if(e.lineIndent>t&&T!==0)H(e,"bad indentation of a mapping entry"+e.position),T=e.input.charCodeAt(++e.position),le(e,!0,-1);else if(e.lineIndent<t)break}return v&&ln(e,c,u,d,null,t),y&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),y}function Qv(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&&!Be(s);)s===33&&(r?H(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Np.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),Lv.test(o)&&H(e,"tag suffix cannot contain flow indicator characters")}return o&&!qp.test(o)&&H(e,"tag name cannot contain such characters: "+o),n?e.tag=o:di.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 Jv(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&&!Be(n)&&!An(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 Xv(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&&!Be(o)&&!An(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=ze.newAnchorRef(n,t,e.position,e.anchorMap[n],0),le(e,!0,-1),!0}function En(e,t,n,r,i){var o,s,a,c=1,u=!1,d=!1,m,v,y,T,I,G;e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=pi===n||Ep===n,r&&le(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(;Qv(e)||Jv(e);)le(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||pi===n)&&(li===n||Ap===n?T=t:T=t+1,I=e.position-e.lineStart,c===1?a&&(Sp(e,I)||Gv(e,I,T))||Vv(e,T)?d=!0:(s&&Kv(e,T)||$v(e,T)||Yv(e,T)?d=!0:Xv(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&H(e,"alias node should not have any properties")):zv(e,T,li===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&&Sp(e,I))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=ze.newScalar("",I),e.result.startPosition=e.position,e.result.endPosition=e.position,H(e,"!include without value")),e.result.kind=ze.Kind.INCLUDE_REF;else if(e.tag==="?")for(m=0,v=e.implicitTypes.length;m<v;m+=1){y=e.implicitTypes[m];var h=e.result.value;if(y.resolve(h)){e.result.valueObject=y.construct(e.result.value),e.tag=y.tag,e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result);break}}else di.call(e.typeMap,e.tag)?(y=e.typeMap[e.tag],e.result!==null&&y.kind!==e.kind&&(!y.additionalKinds||y.additionalKinds&&y.additionalKinds.indexOf(e.kind)===-1)&&H(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+y.kind+'", not "'+e.kind+'"'),y.resolve(e.result)?(e.result=y.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")):Ns(e,U,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||d}function Zv(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&&(le(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&&!Be(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(;pn(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!ut(s));break}if(ut(s))break;for(n=e.position;s!==0&&!Be(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&Ls(e),di.call(wp,r)?wp[r](e,r,i):(qs(e,'unknown document directive "'+r+'"'),e.position++)}if(le(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,le(e,!0,-1)):o&&H(e,"directives end mark is expected"),En(e,e.lineIndent-1,pi,!1,!0),le(e,!0,-1),e.checkLineBreaks&&jv.test(e.input.slice(t,e.position))&&qs(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&br(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,le(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 Mp(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
17
|
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Es(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(Zv(r),r.position<=i)for(;r.position<r.length-1;r.position++){var o=r.input.charAt(r.position);if(o==`
|
|
18
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 Fs(e,t,n={}){var r=Mp(e,n),i,o;for(i=0,o=r.length;i<o;i+=1)t(r[i])}ht.loadAll=Fs;function Us(e,t={}){var n=Mp(e,t),r,i;if(n.length!==0){if(n.length===1)return n[0];var o=new Os("expected a single document in the stream, but found more");return o.mark=new Ms("","",0,0,0),o.mark.position=n[0].endPosition,n[0].errors.push(o),n[0]}}ht.load=Us;function jp(e,t,n={}){Fs(e,t,Wt.extend({schema:kp},n))}ht.safeLoadAll=jp;function Lp(e,t={}){return Us(e,Wt.extend({schema:kp},t))}ht.safeLoad=Lp;vr.exports.loadAll=Fs;vr.exports.load=Us;vr.exports.safeLoadAll=jp;vr.exports.safeLoad=Lp});var $p=R(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.safeDump=Nn.dump=void 0;var Pr=un(),Ys=Sn(),eP=Ts(),tP=ui(),Vs=Object.prototype.toString,Hp=Object.prototype.hasOwnProperty,nP=9,dn=10,rP=13,Ws=32,iP=33,Hs=34,oP=35,sP=37,aP=38,Bs=39,cP=42,uP=44,lP=45,pP=58,dP=62,fP=63,gP=64,mP=91,hP=93,yP=96,bP=123,vP=124,PP=125,Te={};Te[0]="\\0";Te[7]="\\a";Te[8]="\\b";Te[9]="\\t";Te[10]="\\n";Te[11]="\\v";Te[12]="\\f";Te[13]="\\r";Te[27]="\\e";Te[34]='\\"';Te[92]="\\\\";Te[133]="\\N";Te[160]="\\_";Te[8232]="\\L";Te[8233]="\\P";var xP=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function _P(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&&Hp.call(c.styleAliases,a)&&(a=c.styleAliases[a]),n[s]=a;return n}function CP(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 Ys("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Pr.repeat("0",r-t.length)+t}function RP(e){this.schema=e.schema||eP,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Pr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=_P(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 Fp(e,t){for(var n=Pr.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
20
|
`&&(o+=n),o+=s;return o}function zs(e,t){return`
|
|
21
|
-
`+Pr.repeat(" ",e.indent*t)}function DP(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 fi(e){this.source=e,this.result="",this.checkpoint=0}fi.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};fi.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=Te[e]||CP(e),this.result+=t,this.checkpoint+=1,this};fi.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function TP(e,t,n){var r,i,o,s,a,c,u,d,m,v,y,T,I,G,
|
|
21
|
+
`+Pr.repeat(" ",e.indent*t)}function DP(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 fi(e){this.source=e,this.result="",this.checkpoint=0}fi.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};fi.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=Te[e]||CP(e),this.result+=t,this.checkpoint+=1,this};fi.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function TP(e,t,n){var r,i,o,s,a,c,u,d,m,v,y,T,I,G,U,h,g,S,Y,Z,at;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(xP.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(r=!0,i=t.length?t.charCodeAt(0):0,o=Ws===i||Ws===t.charCodeAt(t.length-1),(lP===i||fP===i||gP===i||yP===i)&&(r=!1),o?(r=!1,s=!1,a=!1):(s=!0,a=!0),c=!0,u=new fi(t),d=!1,m=0,v=0,y=e.indent*n,T=80,y<40?T-=y:T=40,G=0;G<t.length;G++){if(I=t.charCodeAt(G),r)if(!SP(I))r=!1;else continue;c&&I===Bs&&(c=!1),U=Te[I],h=Bp(I),!(!U&&!h)&&(I!==dn&&I!==Hs&&I!==Bs?(s=!1,a=!1):I===dn&&(d=!0,c=!1,G>0&&(g=t.charCodeAt(G-1),g===Ws&&(a=!1,s=!1)),s&&(S=G-m,m=G,S>v&&(v=S))),I!==Hs&&(c=!1),u.takeUpTo(G),u.escapeChar())}if(r&&DP(e,t)&&(r=!1),Y="",(s||a)&&(Z=0,t.charCodeAt(t.length-1)===dn&&(Z+=1,t.charCodeAt(t.length-2)===dn&&(Z+=1)),Z===0?Y="-":Z===2&&(Y="+")),a&&v<T&&(s=!1),d||(a=!1),r)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)at=wP(t,T),e.dump=">"+Y+`
|
|
22
22
|
`+Fp(at,y);else if(a)Y||(t=t.replace(/\n$/,"")),e.dump="|"+Y+`
|
|
23
23
|
`+Fp(t,y);else if(u)u.finish(),e.dump='"'+u.result+'"';else throw new Error("Failed to dump scalar value")}function wP(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+=`
|
|
@@ -36,8 +36,8 @@ var Xy=Object.create;var ei=Object.defineProperty;var Zy=Object.getOwnPropertyDe
|
|
|
36
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,$a.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))}};Vt.ReadableStreamMessageReader=Va});var sf=R(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.WriteableStreamMessageWriter=Kt.AbstractMessageWriter=Kt.MessageWriter=void 0;var tf=Yt(),Dr=Ln(),A_=Ba(),nf=Fn(),E_="Content-Length: ",rf=`\r
|
|
37
37
|
`,of;(function(e){function t(n){let r=n;return r&&Dr.func(r.dispose)&&Dr.func(r.onClose)&&Dr.func(r.onError)&&Dr.func(r.write)}e.is=t})(of||(Kt.MessageWriter=of={}));var Wi=class{constructor(){this.errorEmitter=new nf.Emitter,this.closeEmitter=new nf.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: ${Dr.string(t.message)?t.message:"unknown"}`)}};Kt.AbstractMessageWriter=Wi;var Ka;(function(e){function t(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,tf.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,tf.default)().applicationJson.encoder}}e.fromOptions=t})(Ka||(Ka={}));var Ga=class extends Wi{constructor(t,n){super(),this.writable=t,this.options=Ka.fromOptions(n),this.errorCount=0,this.writeSemaphore=new A_.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(E_,r.byteLength.toString(),rf),i.push(rf),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()}};Kt.WriteableStreamMessageWriter=Ga});var af=R(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.AbstractMessageBuffer=void 0;var N_=13,q_=10,O_=`\r
|
|
38
38
|
`,Qa=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 N_:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case q_: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(O_);if(c.length<2)return a;for(let u=0;u<c.length-2;u++){let d=c[u],m=d.indexOf(":");if(m===-1)throw new Error(`Message header must separate key and value using ':'
|
|
39
|
-
${d}`);let v=d.substr(0,m),y=d.substr(m+1).trim();a.set(t?v.toLowerCase():v,y)}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}};Hi.AbstractMessageBuffer=Qa});var df=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 cf=Yt(),pe=Ln(),
|
|
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=G.get(_);if(Ky(p,A),A!==void 0){G.delete(_);try{if(p.error){let L=p.error;A.reject(new
|
|
39
|
+
${d}`);let v=d.substr(0,m),y=d.substr(m+1).trim();a.set(t?v.toLowerCase():v,y)}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}};Hi.AbstractMessageBuffer=Qa});var df=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 cf=Yt(),pe=Ln(),W=ka(),uf=Ea(),Tr=Fn(),Ja=Ii(),kr;(function(e){e.type=new W.NotificationType("$/cancelRequest")})(kr||(kr={}));var Xa;(function(e){function t(n){return typeof n=="string"||typeof n=="number"}e.is=t})(Xa||(z.ProgressToken=Xa={}));var wr;(function(e){e.type=new W.NotificationType("$/progress")})(wr||(wr={}));var Za=class{constructor(){}};z.ProgressType=Za;var ec;(function(e){function t(n){return pe.func(n)}e.is=t})(ec||(ec={}));z.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var X;(function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"})(X||(z.Trace=X={}));var lf;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(lf||(z.TraceValues=lf={}));(function(e){function t(r){if(!pe.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})(X||(z.Trace=X={}));var Xe;(function(e){e.Text="text",e.JSON="json"})(Xe||(z.TraceFormat=Xe={}));(function(e){function t(n){return pe.string(n)?(n=n.toLowerCase(),n==="json"?e.JSON:e.Text):e.Text}e.fromString=t})(Xe||(z.TraceFormat=Xe={}));var tc;(function(e){e.type=new W.NotificationType("$/setTrace")})(tc||(z.SetTraceNotification=tc={}));var Bi;(function(e){e.type=new W.NotificationType("$/logTrace")})(Bi||(z.LogTraceNotification=Bi={}));var Sr;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(Sr||(z.ConnectionErrors=Sr={}));var Bn=class e extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};z.ConnectionError=Bn;var nc;(function(e){function t(n){let r=n;return r&&pe.func(r.cancelUndispatched)}e.is=t})(nc||(z.ConnectionStrategy=nc={}));var zi;(function(e){function t(n){let r=n;return r&&(r.kind===void 0||r.kind==="id")&&pe.func(r.createCancellationTokenSource)&&(r.dispose===void 0||pe.func(r.dispose))}e.is=t})(zi||(z.IdCancellationReceiverStrategy=zi={}));var rc;(function(e){function t(n){let r=n;return r&&r.kind==="request"&&pe.func(r.createCancellationTokenSource)&&(r.dispose===void 0||pe.func(r.dispose))}e.is=t})(rc||(z.RequestCancellationReceiverStrategy=rc={}));var $i;(function(e){e.Message=Object.freeze({createCancellationTokenSource(n){return new Ja.CancellationTokenSource}});function t(n){return zi.is(n)||rc.is(n)}e.is=t})($i||(z.CancellationReceiverStrategy=$i={}));var Yi;(function(e){e.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(kr.type,{id:r})},cleanup(n){}});function t(n){let r=n;return r&&pe.func(r.sendCancellation)&&pe.func(r.cleanup)}e.is=t})(Yi||(z.CancellationSenderStrategy=Yi={}));var Vi;(function(e){e.Message=Object.freeze({receiver:$i.Message,sender:Yi.Message});function t(n){let r=n;return r&&$i.is(r.receiver)&&Yi.is(r.sender)}e.is=t})(Vi||(z.CancellationStrategy=Vi={}));var Ki;(function(e){function t(n){let r=n;return r&&pe.func(r.handleMessage)}e.is=t})(Ki||(z.MessageStrategy=Ki={}));var pf;(function(e){function t(n){let r=n;return r&&(Vi.is(r.cancellationStrategy)||nc.is(r.connectionStrategy)||Ki.is(r.messageStrategy))}e.is=t})(pf||(z.ConnectionOptions=pf={}));var lt;(function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"})(lt||(lt={}));function M_(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,m,v=new Map,y=new Map,T,I=new uf.LinkedMap,G=new Map,U=new Set,h=new Map,g=X.Off,S=Xe.Text,Y,Z=lt.New,at=new Tr.Emitter,It=new Tr.Emitter,an=new Tr.Emitter,Dn=new Tr.Emitter,k=new Tr.Emitter,b=r&&r.cancellationStrategy?r.cancellationStrategy:Vi.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 M(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(M(_.id),_):p.set(x(),_)}function D(p){}function q(){return Z===lt.Listening}function j(){return Z===lt.Closed}function N(){return Z===lt.Disposed}function $(){(Z===lt.New||Z===lt.Listening)&&(Z=lt.Closed,It.fire(void 0))}function V(p){at.fire([p,void 0,void 0])}function De(p){at.fire(p)}e.onClose($),e.onError(V),t.onClose($),t.onError(De);function ne(){T||I.size===0||(T=(0,cf.default)().timer.setImmediate(()=>{T=void 0,cn()}))}function ct(p){W.Message.isRequest(p)?Wy(p):W.Message.isNotification(p)?By(p):W.Message.isResponse(p)?Hy(p):p?.type?.startsWith("redocly/")||zy(p)}function cn(){if(I.size===0)return;let p=I.shift();try{let _=r?.messageStrategy;Ki.is(_)?_.handleMessage(p,ct):ct(p)}finally{ne()}}let Uy=p=>{try{if(W.Message.isNotification(p)&&p.method===kr.type.method){let _=p.params.id,A=O(_),L=I.get(A);if(W.Message.isRequest(L)){let re=r?.connectionStrategy,de=re&&re.cancelUndispatched?re.cancelUndispatched(L,D):void 0;if(de&&(de.error!==void 0||de.result!==void 0)){I.delete(A),h.delete(_),de.id=L.id,Xr(de,p.method,Date.now()),t.write(de).catch(()=>i.error("Sending response for canceled message failed."));return}}let oe=h.get(_);if(oe!==void 0){oe.cancel(),fs(p);return}else U.add(_)}C(I,p)}finally{ne()}};function Wy(p){if(N())return;function _(Q,ue,ee){let Ce={jsonrpc:c,id:p.id};Q instanceof W.ResponseError?Ce.error=Q.toJson():Ce.result=Q===void 0?null:Q,Xr(Ce,ue,ee),t.write(Ce).catch(()=>i.error("Sending response failed."))}function A(Q,ue,ee){let Ce={jsonrpc:c,id:p.id,error:Q.toJson()};Xr(Ce,ue,ee),t.write(Ce).catch(()=>i.error("Sending response failed."))}function L(Q,ue,ee){Q===void 0&&(Q=null);let Ce={jsonrpc:c,id:p.id,result:Q};Xr(Ce,ue,ee),t.write(Ce).catch(()=>i.error("Sending response failed."))}Vy(p);let oe=d.get(p.method),re,de;oe&&(re=oe.type,de=oe.handler);let he=Date.now();if(de||u){let Q=p.id??String(Date.now()),ue=zi.is(b.receiver)?b.receiver.createCancellationTokenSource(Q):b.receiver.createCancellationTokenSource(p);p.id!==null&&U.has(p.id)&&ue.cancel(),p.id!==null&&h.set(Q,ue);try{let ee;if(de)if(p.params===void 0){if(re!==void 0&&re.numberOfParams!==0){A(new W.ResponseError(W.ErrorCodes.InvalidParams,`Request ${p.method} defines ${re.numberOfParams} params but received none.`),p.method,he);return}ee=de(ue.token)}else if(Array.isArray(p.params)){if(re!==void 0&&re.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}ee=de(...p.params,ue.token)}else{if(re!==void 0&&re.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}ee=de(p.params,ue.token)}else u&&(ee=u(p.method,p.params,ue.token));let Ce=ee;ee?Ce.then?Ce.then(Fe=>{h.delete(Q),_(Fe,p.method,he)},Fe=>{h.delete(Q),Fe instanceof W.ResponseError?A(Fe,p.method,he):Fe&&pe.string(Fe.message)?A(new W.ResponseError(W.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Fe.message}`),p.method,he):A(new W.ResponseError(W.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,he)}):(h.delete(Q),_(ee,p.method,he)):(h.delete(Q),L(ee,p.method,he))}catch(ee){h.delete(Q),ee instanceof W.ResponseError?_(ee,p.method,he):ee&&pe.string(ee.message)?A(new W.ResponseError(W.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${ee.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 Hy(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=G.get(_);if(Ky(p,A),A!==void 0){G.delete(_);try{if(p.error){let L=p.error;A.reject(new W.ResponseError(L.code,L.message,L.data))}else if(p.result!==void 0)A.resolve(p.result);else throw new Error("Should never happen.")}catch(L){L.message?i.error(`Response handler '${A.method}' failed with message: ${L.message}`):i.error(`Response handler '${A.method}' failed unexpectedly.`)}}}}function By(p){if(N())return;let _,A;if(p.method===kr.type.method){let L=p.params.id;U.delete(L),fs(p);return}else{let L=v.get(p.method);L&&(A=L.handler,_=L.type)}if(A||m)try{if(fs(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 L=p.params;p.method===wr.type.method&&L.length===2&&Xa.is(L[0])?A({token:L[0],value:L[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 ${L.length} arguments`)),A(...L))}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 m&&m(p.method,p.params)}catch(L){L.message?i.error(`Notification handler '${p.method}' failed with message: ${L.message}`):i.error(`Notification handler '${p.method}' failed unexpectedly.`)}else an.fire(p)}function zy(p){if(!p){i.error("Received empty message.");return}i.error(`Received message which is neither a response nor a notification message:
|
|
41
41
|
${JSON.stringify(p,null,4)}`);let _=p;if(pe.string(_.id)||pe.number(_.id)){let A=_.id,L=G.get(A);L&&L.reject(new Error("The received response has neither a result nor an error property."))}}function Ft(p){if(p!=null)switch(g){case X.Verbose:return JSON.stringify(p,null,4);case X.Compact:return JSON.stringify(p);default:return}}function $y(p){if(!(g===X.Off||!Y))if(S===Xe.Text){let _;(g===X.Verbose||g===X.Compact)&&p.params&&(_=`Params: ${Ft(p.params)}
|
|
42
42
|
|
|
43
43
|
`),Y.log(`Sending request '${p.method} - (${p.id})'.`,_)}else Tn("send-request",p)}function Yy(p){if(!(g===X.Off||!Y))if(S===Xe.Text){let _;(g===X.Verbose||g===X.Compact)&&(p.params?_=`Params: ${Ft(p.params)}
|
|
@@ -62,12 +62,12 @@ ${JSON.stringify(p,null,4)}`);let _=p;if(pe.string(_.id)||pe.number(_.id)){let A
|
|
|
62
62
|
|
|
63
63
|
`:p.error===void 0&&(A=`No result returned.
|
|
64
64
|
|
|
65
|
-
`)),_){let L=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";Y.log(`Received response '${_.method} - (${p.id})' in ${Date.now()-_.timerStart}ms.${L}`,A)}else Y.log(`Received response ${p.id} without active response promise.`,A)}else Tn("receive-response",p)}function Tn(p,_){if(!Y||g===X.Off)return;let A={isLSPMessage:!0,type:p,message:_,timestamp:Date.now()};Y.log(A)}function dr(){if(j())throw new Bn(Sr.Closed,"Connection is closed.");if(N())throw new Bn(Sr.Disposed,"Connection is disposed.")}function Gy(){if(q())throw new Bn(Sr.AlreadyListening,"Connection is already listening")}function Qy(){if(!q())throw new Error("Call listen() first.")}function fr(p){return p===void 0?null:p}function ml(p){if(p!==null)return p}function hl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function gs(p,_){switch(p){case U.ParameterStructures.auto:return hl(_)?ml(_):[fr(_)];case U.ParameterStructures.byName:if(!hl(_))throw new Error("Received parameters by name but param is not an object literal.");return ml(_);case U.ParameterStructures.byPosition:return[fr(_)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function yl(p,_){let A,L=p.numberOfParams;switch(L){case 0:A=void 0;break;case 1:A=gs(p.parameterStructures,_[0]);break;default:A=[];for(let oe=0;oe<_.length&&oe<L;oe++)A.push(fr(_[oe]));if(_.length<L)for(let oe=_.length;oe<L;oe++)A.push(null);break}return A}let wn={sendNotification:(p,..._)=>{dr();let A,L;if(pe.string(p)){A=p;let re=_[0],de=0,he=U.ParameterStructures.auto;U.ParameterStructures.is(re)&&(de=1,he=re);let Q=_.length,ue=Q-de;switch(ue){case 0:L=void 0;break;case 1:L=gs(he,_[de]);break;default:if(he===U.ParameterStructures.byName)throw new Error(`Received ${ue} parameters for 'by Name' notification parameter structure.`);L=_.slice(de,Q).map(ee=>fr(ee));break}}else{let re=_;A=p.method,L=yl(p,re)}let oe={jsonrpc:c,method:A,params:L};return Yy(oe),t.write(oe).catch(re=>{throw i.error("Sending notification failed."),re})},onNotification:(p,_)=>{dr();let A;return pe.func(p)?m=p:_&&(pe.string(p)?(A=p,v.set(p,{type:void 0,handler:_})):(A=p.method,v.set(p.method,{type:p,handler:_}))),{dispose:()=>{A!==void 0?v.delete(A):m=void 0}}},onProgress:(p,_,A)=>{if(y.has(_))throw new Error(`Progress handler for token ${_} already registered`);return y.set(_,A),{dispose:()=>{y.delete(_)}}},sendProgress:(p,_,A)=>wn.sendNotification(wr.type,{token:_,value:A}),onUnhandledProgress:Dn.event,sendRequest:(p,..._)=>{dr(),Qy();let A,L,oe;if(pe.string(p)){A=p;let Q=_[0],ue=_[_.length-1],ee=0,Ce=U.ParameterStructures.auto;U.ParameterStructures.is(Q)&&(ee=1,Ce=Q);let Fe=_.length;Ja.CancellationToken.is(ue)&&(Fe=Fe-1,oe=ue);let gt=Fe-ee;switch(gt){case 0:L=void 0;break;case 1:L=gs(Ce,_[ee]);break;default:if(Ce===U.ParameterStructures.byName)throw new Error(`Received ${gt} parameters for 'by Name' request parameter structure.`);L=_.slice(ee,Fe).map(Jy=>fr(Jy));break}}else{let Q=_;A=p.method,L=yl(p,Q);let ue=p.numberOfParams;oe=Ja.CancellationToken.is(Q[ue])?Q[ue]:void 0}let re=o++,de;oe&&(de=oe.onCancellationRequested(()=>{let Q=b.sender.sendCancellation(wn,re);return Q===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${re}`),Promise.resolve()):Q.catch(()=>{i.log(`Sending cancellation messages for id ${re} failed`)})}));let he={jsonrpc:c,id:re,method:A,params:L};return $y(he),typeof b.sender.enableCancellation=="function"&&b.sender.enableCancellation(he),new Promise(async(Q,ue)=>{let ee=gt=>{Q(gt),b.sender.cleanup(re),de?.dispose()},Ce=gt=>{ue(gt),b.sender.cleanup(re),de?.dispose()},Fe={method:A,timerStart:Date.now(),resolve:ee,reject:Ce};try{await t.write(he),G.set(re,Fe)}catch(gt){throw i.error("Sending request failed."),Fe.reject(new U.ResponseError(U.ErrorCodes.MessageWriteError,gt.message?gt.message:"Unknown reason")),gt}})},onRequest:(p,_)=>{dr();let A=null;return ec.is(p)?(A=void 0,u=p):pe.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:()=>G.size>0,trace:async(p,_,A)=>{let L=!1,oe=Xe.Text;A!==void 0&&(pe.boolean(A)?L=A:(L=A.sendNotification||!1,oe=A.traceFormat||Xe.Text)),g=p,S=oe,g===X.Off?Y=void 0:Y=_,L&&!j()&&!N()&&await wn.sendNotification(tc.type,{value:X.toString(p)})},onError:at.event,onClose:It.event,onUnhandledNotification:an.event,onDispose:k.event,end:()=>{t.end()},dispose:()=>{if(N())return;Z=lt.Disposed,k.fire(void 0);let p=new U.ResponseError(U.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let _ of G.values())_.reject(p);G=new Map,h=new Map,W=new Set,I=new uf.LinkedMap,pe.func(t.dispose)&&t.dispose(),pe.func(e.dispose)&&e.dispose()},listen:()=>{dr(),Gy(),Z=lt.Listening,e.listen(Uy)},inspect:()=>{(0,cf.default)().console.log("inspect")}};return wn.onNotification(Bi.type,p=>{if(g===X.Off||!Y)return;let _=g===X.Verbose||g===X.Compact;Y.log(p.message,_?p.verbose:void 0)}),wn.onNotification(wr.type,p=>{let _=y.get(p.token);_?_(p.value):Dn.fire(p)}),wn}z.createMessageConnection=M_});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 ie=ka();Object.defineProperty(P,"Message",{enumerable:!0,get:function(){return ie.Message}});Object.defineProperty(P,"RequestType",{enumerable:!0,get:function(){return ie.RequestType}});Object.defineProperty(P,"RequestType0",{enumerable:!0,get:function(){return ie.RequestType0}});Object.defineProperty(P,"RequestType1",{enumerable:!0,get:function(){return ie.RequestType1}});Object.defineProperty(P,"RequestType2",{enumerable:!0,get:function(){return ie.RequestType2}});Object.defineProperty(P,"RequestType3",{enumerable:!0,get:function(){return ie.RequestType3}});Object.defineProperty(P,"RequestType4",{enumerable:!0,get:function(){return ie.RequestType4}});Object.defineProperty(P,"RequestType5",{enumerable:!0,get:function(){return ie.RequestType5}});Object.defineProperty(P,"RequestType6",{enumerable:!0,get:function(){return ie.RequestType6}});Object.defineProperty(P,"RequestType7",{enumerable:!0,get:function(){return ie.RequestType7}});Object.defineProperty(P,"RequestType8",{enumerable:!0,get:function(){return ie.RequestType8}});Object.defineProperty(P,"RequestType9",{enumerable:!0,get:function(){return ie.RequestType9}});Object.defineProperty(P,"ResponseError",{enumerable:!0,get:function(){return ie.ResponseError}});Object.defineProperty(P,"ErrorCodes",{enumerable:!0,get:function(){return ie.ErrorCodes}});Object.defineProperty(P,"NotificationType",{enumerable:!0,get:function(){return ie.NotificationType}});Object.defineProperty(P,"NotificationType0",{enumerable:!0,get:function(){return ie.NotificationType0}});Object.defineProperty(P,"NotificationType1",{enumerable:!0,get:function(){return ie.NotificationType1}});Object.defineProperty(P,"NotificationType2",{enumerable:!0,get:function(){return ie.NotificationType2}});Object.defineProperty(P,"NotificationType3",{enumerable:!0,get:function(){return ie.NotificationType3}});Object.defineProperty(P,"NotificationType4",{enumerable:!0,get:function(){return ie.NotificationType4}});Object.defineProperty(P,"NotificationType5",{enumerable:!0,get:function(){return ie.NotificationType5}});Object.defineProperty(P,"NotificationType6",{enumerable:!0,get:function(){return ie.NotificationType6}});Object.defineProperty(P,"NotificationType7",{enumerable:!0,get:function(){return ie.NotificationType7}});Object.defineProperty(P,"NotificationType8",{enumerable:!0,get:function(){return ie.NotificationType8}});Object.defineProperty(P,"NotificationType9",{enumerable:!0,get:function(){return ie.NotificationType9}});Object.defineProperty(P,"ParameterStructures",{enumerable:!0,get:function(){return ie.ParameterStructures}});var ic=Ea();Object.defineProperty(P,"LinkedMap",{enumerable:!0,get:function(){return ic.LinkedMap}});Object.defineProperty(P,"LRUCache",{enumerable:!0,get:function(){return ic.LRUCache}});Object.defineProperty(P,"Touch",{enumerable:!0,get:function(){return ic.Touch}});var j_=Qd();Object.defineProperty(P,"Disposable",{enumerable:!0,get:function(){return j_.Disposable}});var ff=Fn();Object.defineProperty(P,"Event",{enumerable:!0,get:function(){return ff.Event}});Object.defineProperty(P,"Emitter",{enumerable:!0,get:function(){return ff.Emitter}});var gf=Ii();Object.defineProperty(P,"CancellationTokenSource",{enumerable:!0,get:function(){return gf.CancellationTokenSource}});Object.defineProperty(P,"CancellationToken",{enumerable:!0,get:function(){return gf.CancellationToken}});var mf=Xd();Object.defineProperty(P,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return mf.SharedArraySenderStrategy}});Object.defineProperty(P,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return mf.SharedArrayReceiverStrategy}});var oc=ef();Object.defineProperty(P,"MessageReader",{enumerable:!0,get:function(){return oc.MessageReader}});Object.defineProperty(P,"AbstractMessageReader",{enumerable:!0,get:function(){return oc.AbstractMessageReader}});Object.defineProperty(P,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return oc.ReadableStreamMessageReader}});var sc=sf();Object.defineProperty(P,"MessageWriter",{enumerable:!0,get:function(){return sc.MessageWriter}});Object.defineProperty(P,"AbstractMessageWriter",{enumerable:!0,get:function(){return sc.AbstractMessageWriter}});Object.defineProperty(P,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return sc.WriteableStreamMessageWriter}});var L_=af();Object.defineProperty(P,"AbstractMessageBuffer",{enumerable:!0,get:function(){return L_.AbstractMessageBuffer}});var Ee=df();Object.defineProperty(P,"ConnectionStrategy",{enumerable:!0,get:function(){return Ee.ConnectionStrategy}});Object.defineProperty(P,"ConnectionOptions",{enumerable:!0,get:function(){return Ee.ConnectionOptions}});Object.defineProperty(P,"NullLogger",{enumerable:!0,get:function(){return Ee.NullLogger}});Object.defineProperty(P,"createMessageConnection",{enumerable:!0,get:function(){return Ee.createMessageConnection}});Object.defineProperty(P,"ProgressToken",{enumerable:!0,get:function(){return Ee.ProgressToken}});Object.defineProperty(P,"ProgressType",{enumerable:!0,get:function(){return Ee.ProgressType}});Object.defineProperty(P,"Trace",{enumerable:!0,get:function(){return Ee.Trace}});Object.defineProperty(P,"TraceValues",{enumerable:!0,get:function(){return Ee.TraceValues}});Object.defineProperty(P,"TraceFormat",{enumerable:!0,get:function(){return Ee.TraceFormat}});Object.defineProperty(P,"SetTraceNotification",{enumerable:!0,get:function(){return Ee.SetTraceNotification}});Object.defineProperty(P,"LogTraceNotification",{enumerable:!0,get:function(){return Ee.LogTraceNotification}});Object.defineProperty(P,"ConnectionErrors",{enumerable:!0,get:function(){return Ee.ConnectionErrors}});Object.defineProperty(P,"ConnectionError",{enumerable:!0,get:function(){return Ee.ConnectionError}});Object.defineProperty(P,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Ee.CancellationReceiverStrategy}});Object.defineProperty(P,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Ee.CancellationSenderStrategy}});Object.defineProperty(P,"CancellationStrategy",{enumerable:!0,get:function(){return Ee.CancellationStrategy}});Object.defineProperty(P,"MessageStrategy",{enumerable:!0,get:function(){return Ee.MessageStrategy}});var I_=Yt();P.RAL=I_.default});var yf=R(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});var Rt=Gi(),Qi=class e extends Rt.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 ac=class{constructor(t){this.socket=t,this._onData=new Rt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,Rt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),Rt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),Rt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),Rt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},cc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),Rt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),Rt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),Rt.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()}},F_=new TextEncoder,hf=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(F_.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 ac(e),asWritableStream:e=>new cc(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 uc(){return hf}(function(e){function t(){Rt.RAL.install(hf)}e.install=t})(uc||(uc={}));lc.default=uc});var bn=R(Ze=>{"use strict";var U_=Ze&&Ze.__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]})),W_=Ze&&Ze.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&U_(t,e,n)};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.createMessageConnection=Ze.BrowserMessageWriter=Ze.BrowserMessageReader=void 0;var H_=yf();H_.default.install();var zn=Gi();W_(Gi(),Ze);var pc=class extends zn.AbstractMessageReader{constructor(t){super(),this._onData=new zn.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)}};Ze.BrowserMessageReader=pc;var dc=class extends zn.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(){}};Ze.BrowserMessageWriter=dc;function B_(e,t,n,r){return n===void 0&&(n=zn.NullLogger),zn.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,zn.createMessageConnection)(e,t,n,r)}Ze.createMessageConnection=B_});var fc=R((fw,bf)=>{"use strict";bf.exports=bn()});var oo={};ms(oo,{AnnotatedTextEdit:()=>Mt,ChangeAnnotation:()=>vn,ChangeAnnotationIdentifier:()=>Ne,CodeAction:()=>Kc,CodeActionContext:()=>Vc,CodeActionKind:()=>Yc,CodeActionTriggerKind:()=>jr,CodeDescription:()=>Cc,CodeLens:()=>Gc,Color:()=>Xi,ColorInformation:()=>yc,ColorPresentation:()=>bc,Command:()=>Pn,CompletionItem:()=>Oc,CompletionItemKind:()=>Sc,CompletionItemLabelDetails:()=>qc,CompletionItemTag:()=>Ac,CompletionList:()=>Mc,CreateFile:()=>Yn,DeleteFile:()=>Kn,Diagnostic:()=>Nr,DiagnosticRelatedInformation:()=>Zi,DiagnosticSeverity:()=>xc,DiagnosticTag:()=>_c,DocumentHighlight:()=>Uc,DocumentHighlightKind:()=>Fc,DocumentLink:()=>Jc,DocumentSymbol:()=>$c,DocumentUri:()=>gc,EOL:()=>z_,FoldingRange:()=>Pc,FoldingRangeKind:()=>vc,FormattingOptions:()=>Qc,Hover:()=>jc,InlayHint:()=>su,InlayHintKind:()=>ro,InlayHintLabelPart:()=>io,InlineCompletionContext:()=>du,InlineCompletionItem:()=>cu,InlineCompletionList:()=>uu,InlineCompletionTriggerKind:()=>lu,InlineValueContext:()=>ou,InlineValueEvaluatableExpression:()=>iu,InlineValueText:()=>nu,InlineValueVariableLookup:()=>ru,InsertReplaceEdit:()=>Ec,InsertTextFormat:()=>kc,InsertTextMode:()=>Nc,Location:()=>Er,LocationLink:()=>hc,MarkedString:()=>Mr,MarkupContent:()=>Gn,MarkupKind:()=>no,OptionalVersionedTextDocumentIdentifier:()=>Or,ParameterInformation:()=>Lc,Position:()=>tt,Range:()=>fe,RenameFile:()=>Vn,SelectedCompletionInfo:()=>pu,SelectionRange:()=>Xc,SemanticTokenModifiers:()=>eu,SemanticTokenTypes:()=>Zc,SemanticTokens:()=>tu,SignatureInformation:()=>Ic,StringValue:()=>au,SymbolInformation:()=>Bc,SymbolKind:()=>Wc,SymbolTag:()=>Hc,TextDocument:()=>gu,TextDocumentEdit:()=>qr,TextDocumentIdentifier:()=>Dc,TextDocumentItem:()=>wc,TextEdit:()=>Dt,URI:()=>Ji,VersionedTextDocumentIdentifier:()=>Tc,WorkspaceChange:()=>Rc,WorkspaceEdit:()=>eo,WorkspaceFolder:()=>fu,WorkspaceSymbol:()=>zc,integer:()=>mc,uinteger:()=>Ar});var gc,Ji,mc,Ar,tt,fe,Er,hc,Xi,yc,bc,vc,Pc,Zi,xc,_c,Cc,Nr,Pn,Dt,vn,Ne,Mt,qr,Yn,Vn,Kn,eo,$n,to,Rc,Dc,Tc,Or,wc,no,Gn,Sc,kc,Ac,Ec,Nc,qc,Oc,Mc,Mr,jc,Lc,Ic,Fc,Uc,Wc,Hc,Bc,zc,$c,Yc,jr,Vc,Kc,Gc,Qc,Jc,Xc,Zc,eu,tu,nu,ru,iu,ou,ro,io,su,au,cu,uu,lu,pu,du,fu,z_,gu,mu,f,so=bl(()=>{"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})(mc||(mc={}));(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})(Ar||(Ar={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Ar.MAX_VALUE),i===Number.MAX_VALUE&&(i=Ar.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})(tt||(tt={}));(function(e){function t(r,i,o,s){if(f.uinteger(r)&&f.uinteger(i)&&f.uinteger(o)&&f.uinteger(s))return{start:tt.create(r,i),end:tt.create(o,s)};if(tt.is(r)&&tt.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)&&tt.is(i.start)&&tt.is(i.end)}e.is=n})(fe||(fe={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&fe.is(i.range)&&(f.string(i.uri)||f.undefined(i.uri))}e.is=n})(Er||(Er={}));(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)&&fe.is(i.targetRange)&&f.string(i.targetUri)&&fe.is(i.targetSelectionRange)&&(fe.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)&&fe.is(i.range)&&Xi.is(i.color)}e.is=n})(yc||(yc={}));(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})(bc||(bc={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(vc||(vc={}));(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})(Pc||(Pc={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Er.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})(xc||(xc={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(_c||(_c={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Cc||(Cc={}));(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)&&fe.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})(Nr||(Nr={}));(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})(Pn||(Pn={}));(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)&&fe.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})(vn||(vn={}));(function(e){function t(n){let r=n;return f.string(r)}e.is=t})(Ne||(Ne={}));(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)&&(vn.is(s.annotationId)||Ne.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)&&Or.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(qr||(qr={}));(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||Ne.is(i.annotationId))}e.is=n})(Yn||(Yn={}));(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||Ne.is(i.annotationId))}e.is=n})(Vn||(Vn={}));(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||Ne.is(i.annotationId))}e.is=n})(Kn||(Kn={}));(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)?Yn.is(i)||Vn.is(i)||Kn.is(i):qr.is(i)))}e.is=t})(eo||(eo={}));$n=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):Ne.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):Ne.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):Ne.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(Ne.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()}},Rc=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(qr.is(n)){let r=new $n(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new $n(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(Or.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 $n(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 $n(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;vn.is(n)||Ne.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Yn.create(t,r):(s=Ne.is(i)?i:this._changeAnnotations.manage(i),o=Yn.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;vn.is(r)||Ne.is(r)?o=r:i=r;let s,a;if(o===void 0?s=Vn.create(t,n,i):(a=Ne.is(o)?o:this._changeAnnotations.manage(o),s=Vn.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;vn.is(n)||Ne.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Kn.create(t,r):(s=Ne.is(i)?i:this._changeAnnotations.manage(i),o=Kn.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})(Tc||(Tc={}));(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})(Or||(Or={}));(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})(wc||(wc={}));(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})(Gn||(Gn={}));(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})(Sc||(Sc={}));(function(e){e.PlainText=1,e.Snippet=2})(kc||(kc={}));(function(e){e.Deprecated=1})(Ac||(Ac={}));(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)&&fe.is(i.insert)&&fe.is(i.replace)}e.is=n})(Ec||(Ec={}));(function(e){e.asIs=1,e.adjustIndentation=2})(Nc||(Nc={}));(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})(qc||(qc={}));(function(e){function t(n){return{label:n}}e.create=t})(Oc||(Oc={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(Mc||(Mc={}));(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})(Mr||(Mr={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(Gn.is(r.contents)||Mr.is(r.contents)||f.typedArray(r.contents,Mr.is))&&(n.range===void 0||fe.is(n.range))}e.is=t})(jc||(jc={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Lc||(Lc={}));(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})(Ic||(Ic={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(Fc||(Fc={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(Uc||(Uc={}));(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})(Wc||(Wc={}));(function(e){e.Deprecated=1})(Hc||(Hc={}));(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})(Bc||(Bc={}));(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})(zc||(zc={}));(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)&&fe.is(i.range)&&fe.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})($c||($c={}));(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"})(Yc||(Yc={}));(function(e){e.Invoked=1,e.Automatic=2})(jr||(jr={}));(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,Nr.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===jr.Invoked||i.triggerKind===jr.Automatic)}e.is=n})(Vc||(Vc={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):Pn.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,Nr.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Pn.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||eo.is(i.edit))}e.is=n})(Kc||(Kc={}));(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)&&fe.is(i.range)&&(f.undefined(i.command)||Pn.is(i.command))}e.is=n})(Gc||(Gc={}));(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})(Qc||(Qc={}));(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)&&fe.is(i.range)&&(f.undefined(i.target)||f.string(i.target))}e.is=n})(Jc||(Jc={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&fe.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(Xc||(Xc={}));(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"})(Zc||(Zc={}));(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"})(eu||(eu={}));(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})(tu||(tu={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&fe.is(i.range)&&f.string(i.text)}e.is=n})(nu||(nu={}));(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&&fe.is(i.range)&&f.boolean(i.caseSensitiveLookup)&&(f.string(i.variableName)||i.variableName===void 0)}e.is=n})(ru||(ru={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&fe.is(i.range)&&(f.string(i.expression)||i.expression===void 0)}e.is=n})(iu||(iu={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&fe.is(r.stoppedLocation)}e.is=n})(ou||(ou={}));(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)||Gn.is(i.tooltip))&&(i.location===void 0||Er.is(i.location))&&(i.command===void 0||Pn.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)&&tt.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)||Gn.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(su||(su={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(au||(au={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(cu||(cu={}));(function(e){function t(n){return{items:n}}e.create=t})(uu||(uu={}));(function(e){e.Invoked=0,e.Automatic=1})(lu||(lu={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(pu||(pu={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(du||(du={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&Ji.is(r.uri)&&f.string(r.name)}e.is=t})(fu||(fu={}));z_=[`
|
|
65
|
+
`)),_){let L=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";Y.log(`Received response '${_.method} - (${p.id})' in ${Date.now()-_.timerStart}ms.${L}`,A)}else Y.log(`Received response ${p.id} without active response promise.`,A)}else Tn("receive-response",p)}function Tn(p,_){if(!Y||g===X.Off)return;let A={isLSPMessage:!0,type:p,message:_,timestamp:Date.now()};Y.log(A)}function dr(){if(j())throw new Bn(Sr.Closed,"Connection is closed.");if(N())throw new Bn(Sr.Disposed,"Connection is disposed.")}function Gy(){if(q())throw new Bn(Sr.AlreadyListening,"Connection is already listening")}function Qy(){if(!q())throw new Error("Call listen() first.")}function fr(p){return p===void 0?null:p}function ml(p){if(p!==null)return p}function hl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function gs(p,_){switch(p){case W.ParameterStructures.auto:return hl(_)?ml(_):[fr(_)];case W.ParameterStructures.byName:if(!hl(_))throw new Error("Received parameters by name but param is not an object literal.");return ml(_);case W.ParameterStructures.byPosition:return[fr(_)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function yl(p,_){let A,L=p.numberOfParams;switch(L){case 0:A=void 0;break;case 1:A=gs(p.parameterStructures,_[0]);break;default:A=[];for(let oe=0;oe<_.length&&oe<L;oe++)A.push(fr(_[oe]));if(_.length<L)for(let oe=_.length;oe<L;oe++)A.push(null);break}return A}let wn={sendNotification:(p,..._)=>{dr();let A,L;if(pe.string(p)){A=p;let re=_[0],de=0,he=W.ParameterStructures.auto;W.ParameterStructures.is(re)&&(de=1,he=re);let Q=_.length,ue=Q-de;switch(ue){case 0:L=void 0;break;case 1:L=gs(he,_[de]);break;default:if(he===W.ParameterStructures.byName)throw new Error(`Received ${ue} parameters for 'by Name' notification parameter structure.`);L=_.slice(de,Q).map(ee=>fr(ee));break}}else{let re=_;A=p.method,L=yl(p,re)}let oe={jsonrpc:c,method:A,params:L};return Yy(oe),t.write(oe).catch(re=>{throw i.error("Sending notification failed."),re})},onNotification:(p,_)=>{dr();let A;return pe.func(p)?m=p:_&&(pe.string(p)?(A=p,v.set(p,{type:void 0,handler:_})):(A=p.method,v.set(p.method,{type:p,handler:_}))),{dispose:()=>{A!==void 0?v.delete(A):m=void 0}}},onProgress:(p,_,A)=>{if(y.has(_))throw new Error(`Progress handler for token ${_} already registered`);return y.set(_,A),{dispose:()=>{y.delete(_)}}},sendProgress:(p,_,A)=>wn.sendNotification(wr.type,{token:_,value:A}),onUnhandledProgress:Dn.event,sendRequest:(p,..._)=>{dr(),Qy();let A,L,oe;if(pe.string(p)){A=p;let Q=_[0],ue=_[_.length-1],ee=0,Ce=W.ParameterStructures.auto;W.ParameterStructures.is(Q)&&(ee=1,Ce=Q);let Fe=_.length;Ja.CancellationToken.is(ue)&&(Fe=Fe-1,oe=ue);let gt=Fe-ee;switch(gt){case 0:L=void 0;break;case 1:L=gs(Ce,_[ee]);break;default:if(Ce===W.ParameterStructures.byName)throw new Error(`Received ${gt} parameters for 'by Name' request parameter structure.`);L=_.slice(ee,Fe).map(Jy=>fr(Jy));break}}else{let Q=_;A=p.method,L=yl(p,Q);let ue=p.numberOfParams;oe=Ja.CancellationToken.is(Q[ue])?Q[ue]:void 0}let re=o++,de;oe&&(de=oe.onCancellationRequested(()=>{let Q=b.sender.sendCancellation(wn,re);return Q===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${re}`),Promise.resolve()):Q.catch(()=>{i.log(`Sending cancellation messages for id ${re} failed`)})}));let he={jsonrpc:c,id:re,method:A,params:L};return $y(he),typeof b.sender.enableCancellation=="function"&&b.sender.enableCancellation(he),new Promise(async(Q,ue)=>{let ee=gt=>{Q(gt),b.sender.cleanup(re),de?.dispose()},Ce=gt=>{ue(gt),b.sender.cleanup(re),de?.dispose()},Fe={method:A,timerStart:Date.now(),resolve:ee,reject:Ce};try{await t.write(he),G.set(re,Fe)}catch(gt){throw i.error("Sending request failed."),Fe.reject(new W.ResponseError(W.ErrorCodes.MessageWriteError,gt.message?gt.message:"Unknown reason")),gt}})},onRequest:(p,_)=>{dr();let A=null;return ec.is(p)?(A=void 0,u=p):pe.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:()=>G.size>0,trace:async(p,_,A)=>{let L=!1,oe=Xe.Text;A!==void 0&&(pe.boolean(A)?L=A:(L=A.sendNotification||!1,oe=A.traceFormat||Xe.Text)),g=p,S=oe,g===X.Off?Y=void 0:Y=_,L&&!j()&&!N()&&await wn.sendNotification(tc.type,{value:X.toString(p)})},onError:at.event,onClose:It.event,onUnhandledNotification:an.event,onDispose:k.event,end:()=>{t.end()},dispose:()=>{if(N())return;Z=lt.Disposed,k.fire(void 0);let p=new W.ResponseError(W.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let _ of G.values())_.reject(p);G=new Map,h=new Map,U=new Set,I=new uf.LinkedMap,pe.func(t.dispose)&&t.dispose(),pe.func(e.dispose)&&e.dispose()},listen:()=>{dr(),Gy(),Z=lt.Listening,e.listen(Uy)},inspect:()=>{(0,cf.default)().console.log("inspect")}};return wn.onNotification(Bi.type,p=>{if(g===X.Off||!Y)return;let _=g===X.Verbose||g===X.Compact;Y.log(p.message,_?p.verbose:void 0)}),wn.onNotification(wr.type,p=>{let _=y.get(p.token);_?_(p.value):Dn.fire(p)}),wn}z.createMessageConnection=M_});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 ie=ka();Object.defineProperty(P,"Message",{enumerable:!0,get:function(){return ie.Message}});Object.defineProperty(P,"RequestType",{enumerable:!0,get:function(){return ie.RequestType}});Object.defineProperty(P,"RequestType0",{enumerable:!0,get:function(){return ie.RequestType0}});Object.defineProperty(P,"RequestType1",{enumerable:!0,get:function(){return ie.RequestType1}});Object.defineProperty(P,"RequestType2",{enumerable:!0,get:function(){return ie.RequestType2}});Object.defineProperty(P,"RequestType3",{enumerable:!0,get:function(){return ie.RequestType3}});Object.defineProperty(P,"RequestType4",{enumerable:!0,get:function(){return ie.RequestType4}});Object.defineProperty(P,"RequestType5",{enumerable:!0,get:function(){return ie.RequestType5}});Object.defineProperty(P,"RequestType6",{enumerable:!0,get:function(){return ie.RequestType6}});Object.defineProperty(P,"RequestType7",{enumerable:!0,get:function(){return ie.RequestType7}});Object.defineProperty(P,"RequestType8",{enumerable:!0,get:function(){return ie.RequestType8}});Object.defineProperty(P,"RequestType9",{enumerable:!0,get:function(){return ie.RequestType9}});Object.defineProperty(P,"ResponseError",{enumerable:!0,get:function(){return ie.ResponseError}});Object.defineProperty(P,"ErrorCodes",{enumerable:!0,get:function(){return ie.ErrorCodes}});Object.defineProperty(P,"NotificationType",{enumerable:!0,get:function(){return ie.NotificationType}});Object.defineProperty(P,"NotificationType0",{enumerable:!0,get:function(){return ie.NotificationType0}});Object.defineProperty(P,"NotificationType1",{enumerable:!0,get:function(){return ie.NotificationType1}});Object.defineProperty(P,"NotificationType2",{enumerable:!0,get:function(){return ie.NotificationType2}});Object.defineProperty(P,"NotificationType3",{enumerable:!0,get:function(){return ie.NotificationType3}});Object.defineProperty(P,"NotificationType4",{enumerable:!0,get:function(){return ie.NotificationType4}});Object.defineProperty(P,"NotificationType5",{enumerable:!0,get:function(){return ie.NotificationType5}});Object.defineProperty(P,"NotificationType6",{enumerable:!0,get:function(){return ie.NotificationType6}});Object.defineProperty(P,"NotificationType7",{enumerable:!0,get:function(){return ie.NotificationType7}});Object.defineProperty(P,"NotificationType8",{enumerable:!0,get:function(){return ie.NotificationType8}});Object.defineProperty(P,"NotificationType9",{enumerable:!0,get:function(){return ie.NotificationType9}});Object.defineProperty(P,"ParameterStructures",{enumerable:!0,get:function(){return ie.ParameterStructures}});var ic=Ea();Object.defineProperty(P,"LinkedMap",{enumerable:!0,get:function(){return ic.LinkedMap}});Object.defineProperty(P,"LRUCache",{enumerable:!0,get:function(){return ic.LRUCache}});Object.defineProperty(P,"Touch",{enumerable:!0,get:function(){return ic.Touch}});var j_=Qd();Object.defineProperty(P,"Disposable",{enumerable:!0,get:function(){return j_.Disposable}});var ff=Fn();Object.defineProperty(P,"Event",{enumerable:!0,get:function(){return ff.Event}});Object.defineProperty(P,"Emitter",{enumerable:!0,get:function(){return ff.Emitter}});var gf=Ii();Object.defineProperty(P,"CancellationTokenSource",{enumerable:!0,get:function(){return gf.CancellationTokenSource}});Object.defineProperty(P,"CancellationToken",{enumerable:!0,get:function(){return gf.CancellationToken}});var mf=Xd();Object.defineProperty(P,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return mf.SharedArraySenderStrategy}});Object.defineProperty(P,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return mf.SharedArrayReceiverStrategy}});var oc=ef();Object.defineProperty(P,"MessageReader",{enumerable:!0,get:function(){return oc.MessageReader}});Object.defineProperty(P,"AbstractMessageReader",{enumerable:!0,get:function(){return oc.AbstractMessageReader}});Object.defineProperty(P,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return oc.ReadableStreamMessageReader}});var sc=sf();Object.defineProperty(P,"MessageWriter",{enumerable:!0,get:function(){return sc.MessageWriter}});Object.defineProperty(P,"AbstractMessageWriter",{enumerable:!0,get:function(){return sc.AbstractMessageWriter}});Object.defineProperty(P,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return sc.WriteableStreamMessageWriter}});var L_=af();Object.defineProperty(P,"AbstractMessageBuffer",{enumerable:!0,get:function(){return L_.AbstractMessageBuffer}});var Ee=df();Object.defineProperty(P,"ConnectionStrategy",{enumerable:!0,get:function(){return Ee.ConnectionStrategy}});Object.defineProperty(P,"ConnectionOptions",{enumerable:!0,get:function(){return Ee.ConnectionOptions}});Object.defineProperty(P,"NullLogger",{enumerable:!0,get:function(){return Ee.NullLogger}});Object.defineProperty(P,"createMessageConnection",{enumerable:!0,get:function(){return Ee.createMessageConnection}});Object.defineProperty(P,"ProgressToken",{enumerable:!0,get:function(){return Ee.ProgressToken}});Object.defineProperty(P,"ProgressType",{enumerable:!0,get:function(){return Ee.ProgressType}});Object.defineProperty(P,"Trace",{enumerable:!0,get:function(){return Ee.Trace}});Object.defineProperty(P,"TraceValues",{enumerable:!0,get:function(){return Ee.TraceValues}});Object.defineProperty(P,"TraceFormat",{enumerable:!0,get:function(){return Ee.TraceFormat}});Object.defineProperty(P,"SetTraceNotification",{enumerable:!0,get:function(){return Ee.SetTraceNotification}});Object.defineProperty(P,"LogTraceNotification",{enumerable:!0,get:function(){return Ee.LogTraceNotification}});Object.defineProperty(P,"ConnectionErrors",{enumerable:!0,get:function(){return Ee.ConnectionErrors}});Object.defineProperty(P,"ConnectionError",{enumerable:!0,get:function(){return Ee.ConnectionError}});Object.defineProperty(P,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Ee.CancellationReceiverStrategy}});Object.defineProperty(P,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Ee.CancellationSenderStrategy}});Object.defineProperty(P,"CancellationStrategy",{enumerable:!0,get:function(){return Ee.CancellationStrategy}});Object.defineProperty(P,"MessageStrategy",{enumerable:!0,get:function(){return Ee.MessageStrategy}});var I_=Yt();P.RAL=I_.default});var yf=R(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});var Rt=Gi(),Qi=class e extends Rt.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 ac=class{constructor(t){this.socket=t,this._onData=new Rt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,Rt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),Rt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),Rt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),Rt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},cc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),Rt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),Rt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),Rt.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()}},F_=new TextEncoder,hf=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(F_.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 ac(e),asWritableStream:e=>new cc(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 uc(){return hf}(function(e){function t(){Rt.RAL.install(hf)}e.install=t})(uc||(uc={}));lc.default=uc});var bn=R(Ze=>{"use strict";var U_=Ze&&Ze.__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]})),W_=Ze&&Ze.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&U_(t,e,n)};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.createMessageConnection=Ze.BrowserMessageWriter=Ze.BrowserMessageReader=void 0;var H_=yf();H_.default.install();var zn=Gi();W_(Gi(),Ze);var pc=class extends zn.AbstractMessageReader{constructor(t){super(),this._onData=new zn.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)}};Ze.BrowserMessageReader=pc;var dc=class extends zn.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(){}};Ze.BrowserMessageWriter=dc;function B_(e,t,n,r){return n===void 0&&(n=zn.NullLogger),zn.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,zn.createMessageConnection)(e,t,n,r)}Ze.createMessageConnection=B_});var fc=R((fw,bf)=>{"use strict";bf.exports=bn()});var oo={};ms(oo,{AnnotatedTextEdit:()=>Mt,ChangeAnnotation:()=>vn,ChangeAnnotationIdentifier:()=>Ne,CodeAction:()=>Kc,CodeActionContext:()=>Vc,CodeActionKind:()=>Yc,CodeActionTriggerKind:()=>jr,CodeDescription:()=>Cc,CodeLens:()=>Gc,Color:()=>Xi,ColorInformation:()=>yc,ColorPresentation:()=>bc,Command:()=>Pn,CompletionItem:()=>Oc,CompletionItemKind:()=>Sc,CompletionItemLabelDetails:()=>qc,CompletionItemTag:()=>Ac,CompletionList:()=>Mc,CreateFile:()=>Yn,DeleteFile:()=>Kn,Diagnostic:()=>Nr,DiagnosticRelatedInformation:()=>Zi,DiagnosticSeverity:()=>xc,DiagnosticTag:()=>_c,DocumentHighlight:()=>Uc,DocumentHighlightKind:()=>Fc,DocumentLink:()=>Jc,DocumentSymbol:()=>$c,DocumentUri:()=>gc,EOL:()=>z_,FoldingRange:()=>Pc,FoldingRangeKind:()=>vc,FormattingOptions:()=>Qc,Hover:()=>jc,InlayHint:()=>su,InlayHintKind:()=>ro,InlayHintLabelPart:()=>io,InlineCompletionContext:()=>du,InlineCompletionItem:()=>cu,InlineCompletionList:()=>uu,InlineCompletionTriggerKind:()=>lu,InlineValueContext:()=>ou,InlineValueEvaluatableExpression:()=>iu,InlineValueText:()=>nu,InlineValueVariableLookup:()=>ru,InsertReplaceEdit:()=>Ec,InsertTextFormat:()=>kc,InsertTextMode:()=>Nc,Location:()=>Er,LocationLink:()=>hc,MarkedString:()=>Mr,MarkupContent:()=>Gn,MarkupKind:()=>no,OptionalVersionedTextDocumentIdentifier:()=>Or,ParameterInformation:()=>Lc,Position:()=>tt,Range:()=>fe,RenameFile:()=>Vn,SelectedCompletionInfo:()=>pu,SelectionRange:()=>Xc,SemanticTokenModifiers:()=>eu,SemanticTokenTypes:()=>Zc,SemanticTokens:()=>tu,SignatureInformation:()=>Ic,StringValue:()=>au,SymbolInformation:()=>Bc,SymbolKind:()=>Wc,SymbolTag:()=>Hc,TextDocument:()=>gu,TextDocumentEdit:()=>qr,TextDocumentIdentifier:()=>Dc,TextDocumentItem:()=>wc,TextEdit:()=>Dt,URI:()=>Ji,VersionedTextDocumentIdentifier:()=>Tc,WorkspaceChange:()=>Rc,WorkspaceEdit:()=>eo,WorkspaceFolder:()=>fu,WorkspaceSymbol:()=>zc,integer:()=>mc,uinteger:()=>Ar});var gc,Ji,mc,Ar,tt,fe,Er,hc,Xi,yc,bc,vc,Pc,Zi,xc,_c,Cc,Nr,Pn,Dt,vn,Ne,Mt,qr,Yn,Vn,Kn,eo,$n,to,Rc,Dc,Tc,Or,wc,no,Gn,Sc,kc,Ac,Ec,Nc,qc,Oc,Mc,Mr,jc,Lc,Ic,Fc,Uc,Wc,Hc,Bc,zc,$c,Yc,jr,Vc,Kc,Gc,Qc,Jc,Xc,Zc,eu,tu,nu,ru,iu,ou,ro,io,su,au,cu,uu,lu,pu,du,fu,z_,gu,mu,f,so=bl(()=>{"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})(mc||(mc={}));(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})(Ar||(Ar={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Ar.MAX_VALUE),i===Number.MAX_VALUE&&(i=Ar.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})(tt||(tt={}));(function(e){function t(r,i,o,s){if(f.uinteger(r)&&f.uinteger(i)&&f.uinteger(o)&&f.uinteger(s))return{start:tt.create(r,i),end:tt.create(o,s)};if(tt.is(r)&&tt.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)&&tt.is(i.start)&&tt.is(i.end)}e.is=n})(fe||(fe={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&fe.is(i.range)&&(f.string(i.uri)||f.undefined(i.uri))}e.is=n})(Er||(Er={}));(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)&&fe.is(i.targetRange)&&f.string(i.targetUri)&&fe.is(i.targetSelectionRange)&&(fe.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)&&fe.is(i.range)&&Xi.is(i.color)}e.is=n})(yc||(yc={}));(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})(bc||(bc={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(vc||(vc={}));(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})(Pc||(Pc={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Er.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})(xc||(xc={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(_c||(_c={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Cc||(Cc={}));(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)&&fe.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})(Nr||(Nr={}));(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})(Pn||(Pn={}));(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)&&fe.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})(vn||(vn={}));(function(e){function t(n){let r=n;return f.string(r)}e.is=t})(Ne||(Ne={}));(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)&&(vn.is(s.annotationId)||Ne.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)&&Or.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(qr||(qr={}));(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||Ne.is(i.annotationId))}e.is=n})(Yn||(Yn={}));(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||Ne.is(i.annotationId))}e.is=n})(Vn||(Vn={}));(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||Ne.is(i.annotationId))}e.is=n})(Kn||(Kn={}));(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)?Yn.is(i)||Vn.is(i)||Kn.is(i):qr.is(i)))}e.is=t})(eo||(eo={}));$n=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):Ne.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):Ne.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):Ne.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(Ne.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()}},Rc=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(qr.is(n)){let r=new $n(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new $n(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(Or.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 $n(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 $n(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;vn.is(n)||Ne.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Yn.create(t,r):(s=Ne.is(i)?i:this._changeAnnotations.manage(i),o=Yn.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;vn.is(r)||Ne.is(r)?o=r:i=r;let s,a;if(o===void 0?s=Vn.create(t,n,i):(a=Ne.is(o)?o:this._changeAnnotations.manage(o),s=Vn.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;vn.is(n)||Ne.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Kn.create(t,r):(s=Ne.is(i)?i:this._changeAnnotations.manage(i),o=Kn.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})(Tc||(Tc={}));(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})(Or||(Or={}));(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})(wc||(wc={}));(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})(Gn||(Gn={}));(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})(Sc||(Sc={}));(function(e){e.PlainText=1,e.Snippet=2})(kc||(kc={}));(function(e){e.Deprecated=1})(Ac||(Ac={}));(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)&&fe.is(i.insert)&&fe.is(i.replace)}e.is=n})(Ec||(Ec={}));(function(e){e.asIs=1,e.adjustIndentation=2})(Nc||(Nc={}));(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})(qc||(qc={}));(function(e){function t(n){return{label:n}}e.create=t})(Oc||(Oc={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(Mc||(Mc={}));(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})(Mr||(Mr={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(Gn.is(r.contents)||Mr.is(r.contents)||f.typedArray(r.contents,Mr.is))&&(n.range===void 0||fe.is(n.range))}e.is=t})(jc||(jc={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Lc||(Lc={}));(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})(Ic||(Ic={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(Fc||(Fc={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(Uc||(Uc={}));(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})(Wc||(Wc={}));(function(e){e.Deprecated=1})(Hc||(Hc={}));(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})(Bc||(Bc={}));(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})(zc||(zc={}));(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)&&fe.is(i.range)&&fe.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})($c||($c={}));(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"})(Yc||(Yc={}));(function(e){e.Invoked=1,e.Automatic=2})(jr||(jr={}));(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,Nr.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===jr.Invoked||i.triggerKind===jr.Automatic)}e.is=n})(Vc||(Vc={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):Pn.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,Nr.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Pn.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||eo.is(i.edit))}e.is=n})(Kc||(Kc={}));(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)&&fe.is(i.range)&&(f.undefined(i.command)||Pn.is(i.command))}e.is=n})(Gc||(Gc={}));(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})(Qc||(Qc={}));(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)&&fe.is(i.range)&&(f.undefined(i.target)||f.string(i.target))}e.is=n})(Jc||(Jc={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&fe.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(Xc||(Xc={}));(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"})(Zc||(Zc={}));(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"})(eu||(eu={}));(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})(tu||(tu={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&fe.is(i.range)&&f.string(i.text)}e.is=n})(nu||(nu={}));(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&&fe.is(i.range)&&f.boolean(i.caseSensitiveLookup)&&(f.string(i.variableName)||i.variableName===void 0)}e.is=n})(ru||(ru={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&fe.is(i.range)&&(f.string(i.expression)||i.expression===void 0)}e.is=n})(iu||(iu={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&fe.is(r.stoppedLocation)}e.is=n})(ou||(ou={}));(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)||Gn.is(i.tooltip))&&(i.location===void 0||Er.is(i.location))&&(i.command===void 0||Pn.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)&&tt.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)||Gn.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(su||(su={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(au||(au={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(cu||(cu={}));(function(e){function t(n){return{items:n}}e.create=t})(uu||(uu={}));(function(e){e.Invoked=0,e.Automatic=1})(lu||(lu={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(pu||(pu={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(du||(du={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&Ji.is(r.uri)&&f.string(r.name)}e.is=t})(fu||(fu={}));z_=[`
|
|
66
66
|
`,`\r
|
|
67
67
|
`,"\r"];(function(e){function t(o,s,a,c){return new mu(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,m)=>{let v=d.range.start.line-m.range.start.line;return v===0?d.range.start.character-m.range.start.character:v}),u=a.length;for(let d=c.length-1;d>=0;d--){let m=c[d],v=o.offsetAt(m.range.start),y=o.offsetAt(m.range.end);if(y<=u)a=a.substring(0,v)+m.newText+a.substring(y,a.length);else throw new Error("Overlapping edit");u=v}return a}e.applyEdits=r;function i(o,s){if(o.length<=1)return o;let a=o.length/2|0,c=o.slice(0,a),u=o.slice(a);i(c,s),i(u,s);let d=0,m=0,v=0;for(;d<c.length&&m<u.length;)s(c[d],u[m])<=0?o[v++]=c[d++]:o[v++]=u[m++];for(;d<c.length;)o[v++]=c[d++];for(;m<u.length;)o[v++]=u[m++];return o}})(gu||(gu={}));mu=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 tt.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 tt.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,T,I){return t.call(y)==="[object Number]"&&T<=y&&y<=I}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function u(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=u;function d(y){return t.call(y)==="[object Function]"}e.func=d;function m(y){return y!==null&&typeof y=="object"}e.objectLiteral=m;function v(y,T){return Array.isArray(y)&&y.every(T)}e.typedArray=v})(f||(f={}))});var ce=R(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.ProtocolNotificationType=Ye.ProtocolNotificationType0=Ye.ProtocolRequestType=Ye.ProtocolRequestType0=Ye.RegistrationType=Ye.MessageDirection=void 0;var Qn=bn(),vf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(vf||(Ye.MessageDirection=vf={}));var hu=class{constructor(t){this.method=t}};Ye.RegistrationType=hu;var yu=class extends Qn.RequestType0{constructor(t){super(t)}};Ye.ProtocolRequestType0=yu;var bu=class extends Qn.RequestType{constructor(t){super(t,Qn.ParameterStructures.byName)}};Ye.ProtocolRequestType=bu;var vu=class extends Qn.NotificationType0{constructor(t){super(t)}};Ye.ProtocolNotificationType0=vu;var Pu=class extends Qn.NotificationType{constructor(t){super(t,Qn.ParameterStructures.byName)}};Ye.ProtocolNotificationType=Pu});var ao=R(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.objectLiteral=xe.typedArray=xe.stringArray=xe.array=xe.func=xe.error=xe.number=xe.string=xe.boolean=void 0;function $_(e){return e===!0||e===!1}xe.boolean=$_;function Pf(e){return typeof e=="string"||e instanceof String}xe.string=Pf;function Y_(e){return typeof e=="number"||e instanceof Number}xe.number=Y_;function V_(e){return e instanceof Error}xe.error=V_;function K_(e){return typeof e=="function"}xe.func=K_;function xf(e){return Array.isArray(e)}xe.array=xf;function G_(e){return xf(e)&&e.every(t=>Pf(t))}xe.stringArray=G_;function Q_(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=Q_;function J_(e){return e!==null&&typeof e=="object"}xe.objectLiteral=J_});var Rf=R(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.ImplementationRequest=void 0;var _f=ce(),Cf;(function(e){e.method="textDocument/implementation",e.messageDirection=_f.MessageDirection.clientToServer,e.type=new _f.ProtocolRequestType(e.method)})(Cf||(co.ImplementationRequest=Cf={}))});var wf=R(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.TypeDefinitionRequest=void 0;var Df=ce(),Tf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=Df.MessageDirection.clientToServer,e.type=new Df.ProtocolRequestType(e.method)})(Tf||(uo.TypeDefinitionRequest=Tf={}))});var Af=R(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.DidChangeWorkspaceFoldersNotification=Jn.WorkspaceFoldersRequest=void 0;var lo=ce(),Sf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=lo.MessageDirection.serverToClient,e.type=new lo.ProtocolRequestType0(e.method)})(Sf||(Jn.WorkspaceFoldersRequest=Sf={}));var kf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=lo.MessageDirection.clientToServer,e.type=new lo.ProtocolNotificationType(e.method)})(kf||(Jn.DidChangeWorkspaceFoldersNotification=kf={}))});var qf=R(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.ConfigurationRequest=void 0;var Ef=ce(),Nf;(function(e){e.method="workspace/configuration",e.messageDirection=Ef.MessageDirection.serverToClient,e.type=new Ef.ProtocolRequestType(e.method)})(Nf||(po.ConfigurationRequest=Nf={}))});var jf=R(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.ColorPresentationRequest=Xn.DocumentColorRequest=void 0;var fo=ce(),Of;(function(e){e.method="textDocument/documentColor",e.messageDirection=fo.MessageDirection.clientToServer,e.type=new fo.ProtocolRequestType(e.method)})(Of||(Xn.DocumentColorRequest=Of={}));var Mf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=fo.MessageDirection.clientToServer,e.type=new fo.ProtocolRequestType(e.method)})(Mf||(Xn.ColorPresentationRequest=Mf={}))});var Ff=R(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.FoldingRangeRefreshRequest=Zn.FoldingRangeRequest=void 0;var go=ce(),Lf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=go.MessageDirection.clientToServer,e.type=new go.ProtocolRequestType(e.method)})(Lf||(Zn.FoldingRangeRequest=Lf={}));var If;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=go.MessageDirection.serverToClient,e.type=new go.ProtocolRequestType0(e.method)})(If||(Zn.FoldingRangeRefreshRequest=If={}))});var Hf=R(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.DeclarationRequest=void 0;var Uf=ce(),Wf;(function(e){e.method="textDocument/declaration",e.messageDirection=Uf.MessageDirection.clientToServer,e.type=new Uf.ProtocolRequestType(e.method)})(Wf||(mo.DeclarationRequest=Wf={}))});var $f=R(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.SelectionRangeRequest=void 0;var Bf=ce(),zf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Bf.MessageDirection.clientToServer,e.type=new Bf.ProtocolRequestType(e.method)})(zf||(ho.SelectionRangeRequest=zf={}))});var Gf=R(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.WorkDoneProgressCancelNotification=Gt.WorkDoneProgressCreateRequest=Gt.WorkDoneProgress=void 0;var X_=bn(),yo=ce(),Yf;(function(e){e.type=new X_.ProgressType;function t(n){return n===e.type}e.is=t})(Yf||(Gt.WorkDoneProgress=Yf={}));var Vf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=yo.MessageDirection.serverToClient,e.type=new yo.ProtocolRequestType(e.method)})(Vf||(Gt.WorkDoneProgressCreateRequest=Vf={}));var Kf;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=yo.MessageDirection.clientToServer,e.type=new yo.ProtocolNotificationType(e.method)})(Kf||(Gt.WorkDoneProgressCancelNotification=Kf={}))});var Zf=R(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.CallHierarchyOutgoingCallsRequest=Qt.CallHierarchyIncomingCallsRequest=Qt.CallHierarchyPrepareRequest=void 0;var er=ce(),Qf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(Qf||(Qt.CallHierarchyPrepareRequest=Qf={}));var Jf;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(Jf||(Qt.CallHierarchyIncomingCallsRequest=Jf={}));var Xf;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(Xf||(Qt.CallHierarchyOutgoingCallsRequest=Xf={}))});var og=R(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.SemanticTokensRefreshRequest=Ve.SemanticTokensRangeRequest=Ve.SemanticTokensDeltaRequest=Ve.SemanticTokensRequest=Ve.SemanticTokensRegistrationType=Ve.TokenFormat=void 0;var jt=ce(),eg;(function(e){e.Relative="relative"})(eg||(Ve.TokenFormat=eg={}));var Lr;(function(e){e.method="textDocument/semanticTokens",e.type=new jt.RegistrationType(e.method)})(Lr||(Ve.SemanticTokensRegistrationType=Lr={}));var tg;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=jt.MessageDirection.clientToServer,e.type=new jt.ProtocolRequestType(e.method),e.registrationMethod=Lr.method})(tg||(Ve.SemanticTokensRequest=tg={}));var ng;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=jt.MessageDirection.clientToServer,e.type=new jt.ProtocolRequestType(e.method),e.registrationMethod=Lr.method})(ng||(Ve.SemanticTokensDeltaRequest=ng={}));var rg;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=jt.MessageDirection.clientToServer,e.type=new jt.ProtocolRequestType(e.method),e.registrationMethod=Lr.method})(rg||(Ve.SemanticTokensRangeRequest=rg={}));var ig;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=jt.MessageDirection.serverToClient,e.type=new jt.ProtocolRequestType0(e.method)})(ig||(Ve.SemanticTokensRefreshRequest=ig={}))});var cg=R(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.ShowDocumentRequest=void 0;var sg=ce(),ag;(function(e){e.method="window/showDocument",e.messageDirection=sg.MessageDirection.serverToClient,e.type=new sg.ProtocolRequestType(e.method)})(ag||(bo.ShowDocumentRequest=ag={}))});var pg=R(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.LinkedEditingRangeRequest=void 0;var ug=ce(),lg;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=ug.MessageDirection.clientToServer,e.type=new ug.ProtocolRequestType(e.method)})(lg||(vo.LinkedEditingRangeRequest=lg={}))});var vg=R(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.WillDeleteFilesRequest=Le.DidDeleteFilesNotification=Le.DidRenameFilesNotification=Le.WillRenameFilesRequest=Le.DidCreateFilesNotification=Le.WillCreateFilesRequest=Le.FileOperationPatternKind=void 0;var nt=ce(),dg;(function(e){e.file="file",e.folder="folder"})(dg||(Le.FileOperationPatternKind=dg={}));var fg;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=nt.MessageDirection.clientToServer,e.type=new nt.ProtocolRequestType(e.method)})(fg||(Le.WillCreateFilesRequest=fg={}));var gg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=nt.MessageDirection.clientToServer,e.type=new nt.ProtocolNotificationType(e.method)})(gg||(Le.DidCreateFilesNotification=gg={}));var mg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=nt.MessageDirection.clientToServer,e.type=new nt.ProtocolRequestType(e.method)})(mg||(Le.WillRenameFilesRequest=mg={}));var hg;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=nt.MessageDirection.clientToServer,e.type=new nt.ProtocolNotificationType(e.method)})(hg||(Le.DidRenameFilesNotification=hg={}));var yg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=nt.MessageDirection.clientToServer,e.type=new nt.ProtocolNotificationType(e.method)})(yg||(Le.DidDeleteFilesNotification=yg={}));var bg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=nt.MessageDirection.clientToServer,e.type=new nt.ProtocolRequestType(e.method)})(bg||(Le.WillDeleteFilesRequest=bg={}))});var Rg=R(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.MonikerRequest=Jt.MonikerKind=Jt.UniquenessLevel=void 0;var Pg=ce(),xg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(xg||(Jt.UniquenessLevel=xg={}));var _g;(function(e){e.$import="import",e.$export="export",e.local="local"})(_g||(Jt.MonikerKind=_g={}));var Cg;(function(e){e.method="textDocument/moniker",e.messageDirection=Pg.MessageDirection.clientToServer,e.type=new Pg.ProtocolRequestType(e.method)})(Cg||(Jt.MonikerRequest=Cg={}))});var Sg=R(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.TypeHierarchySubtypesRequest=Xt.TypeHierarchySupertypesRequest=Xt.TypeHierarchyPrepareRequest=void 0;var tr=ce(),Dg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Dg||(Xt.TypeHierarchyPrepareRequest=Dg={}));var Tg;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Tg||(Xt.TypeHierarchySupertypesRequest=Tg={}));var wg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(wg||(Xt.TypeHierarchySubtypesRequest=wg={}))});var Eg=R(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.InlineValueRefreshRequest=nr.InlineValueRequest=void 0;var Po=ce(),kg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=Po.MessageDirection.clientToServer,e.type=new Po.ProtocolRequestType(e.method)})(kg||(nr.InlineValueRequest=kg={}));var Ag;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=Po.MessageDirection.serverToClient,e.type=new Po.ProtocolRequestType0(e.method)})(Ag||(nr.InlineValueRefreshRequest=Ag={}))});var Mg=R(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.InlayHintRefreshRequest=Zt.InlayHintResolveRequest=Zt.InlayHintRequest=void 0;var rr=ce(),Ng;(function(e){e.method="textDocument/inlayHint",e.messageDirection=rr.MessageDirection.clientToServer,e.type=new rr.ProtocolRequestType(e.method)})(Ng||(Zt.InlayHintRequest=Ng={}));var qg;(function(e){e.method="inlayHint/resolve",e.messageDirection=rr.MessageDirection.clientToServer,e.type=new rr.ProtocolRequestType(e.method)})(qg||(Zt.InlayHintResolveRequest=qg={}));var Og;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=rr.MessageDirection.serverToClient,e.type=new rr.ProtocolRequestType0(e.method)})(Og||(Zt.InlayHintRefreshRequest=Og={}))});var Hg=R(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.DiagnosticRefreshRequest=rt.WorkspaceDiagnosticRequest=rt.DocumentDiagnosticRequest=rt.DocumentDiagnosticReportKind=rt.DiagnosticServerCancellationData=void 0;var Wg=bn(),Z_=ao(),ir=ce(),jg;(function(e){function t(n){let r=n;return r&&Z_.boolean(r.retriggerRequest)}e.is=t})(jg||(rt.DiagnosticServerCancellationData=jg={}));var Lg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Lg||(rt.DocumentDiagnosticReportKind=Lg={}));var Ig;(function(e){e.method="textDocument/diagnostic",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method),e.partialResult=new Wg.ProgressType})(Ig||(rt.DocumentDiagnosticRequest=Ig={}));var Fg;(function(e){e.method="workspace/diagnostic",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method),e.partialResult=new Wg.ProgressType})(Fg||(rt.WorkspaceDiagnosticRequest=Fg={}));var Ug;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=ir.MessageDirection.serverToClient,e.type=new ir.ProtocolRequestType0(e.method)})(Ug||(rt.DiagnosticRefreshRequest=Ug={}))});var Gg=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 Ir=(so(),ti(oo)),pt=ao(),Tt=ce(),xu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(xu||(ge.NotebookCellKind=xu={}));var _u;(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 pt.objectLiteral(o)&&Ir.uinteger.is(o.executionOrder)&&(o.success===void 0||pt.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})(_u||(ge.ExecutionSummary=_u={}));var xo;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return pt.objectLiteral(s)&&xu.is(s.kind)&&Ir.DocumentUri.is(s.document)&&(s.metadata===void 0||pt.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)&&!_u.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(pt.objectLiteral(o)&&pt.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 m=0;m<u.length;m++){let v=u[m];if(!i(o[v],s[v]))return!1}}return!0}})(xo||(ge.NotebookCell=xo={}));var Bg;(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 pt.objectLiteral(i)&&pt.string(i.uri)&&Ir.integer.is(i.version)&&pt.typedArray(i.cells,xo.is)}e.is=n})(Bg||(ge.NotebookDocument=Bg={}));var or;(function(e){e.method="notebookDocument/sync",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.RegistrationType(e.method)})(or||(ge.NotebookDocumentSyncRegistrationType=or={}));var zg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(zg||(ge.DidOpenNotebookDocumentNotification=zg={}));var $g;(function(e){function t(r){let i=r;return pt.objectLiteral(i)&&Ir.uinteger.is(i.start)&&Ir.uinteger.is(i.deleteCount)&&(i.cells===void 0||pt.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})($g||(ge.NotebookCellArrayChange=$g={}));var Yg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(Yg||(ge.DidChangeNotebookDocumentNotification=Yg={}));var Vg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(Vg||(ge.DidSaveNotebookDocumentNotification=Vg={}));var Kg;(function(e){e.method="notebookDocument/didClose",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(Kg||(ge.DidCloseNotebookDocumentNotification=Kg={}))});var Xg=R(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.InlineCompletionRequest=void 0;var Qg=ce(),Jg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Qg.MessageDirection.clientToServer,e.type=new Qg.ProtocolRequestType(e.method)})(Jg||(_o.InlineCompletionRequest=Jg={}))});var ph=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=ce(),Zg=(so(),ti(oo)),Se=ao(),eC=Rf();Object.defineProperty(l,"ImplementationRequest",{enumerable:!0,get:function(){return eC.ImplementationRequest}});var tC=wf();Object.defineProperty(l,"TypeDefinitionRequest",{enumerable:!0,get:function(){return tC.TypeDefinitionRequest}});var ah=Af();Object.defineProperty(l,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return ah.WorkspaceFoldersRequest}});Object.defineProperty(l,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return ah.DidChangeWorkspaceFoldersNotification}});var nC=qf();Object.defineProperty(l,"ConfigurationRequest",{enumerable:!0,get:function(){return nC.ConfigurationRequest}});var ch=jf();Object.defineProperty(l,"DocumentColorRequest",{enumerable:!0,get:function(){return ch.DocumentColorRequest}});Object.defineProperty(l,"ColorPresentationRequest",{enumerable:!0,get:function(){return ch.ColorPresentationRequest}});var uh=Ff();Object.defineProperty(l,"FoldingRangeRequest",{enumerable:!0,get:function(){return uh.FoldingRangeRequest}});Object.defineProperty(l,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return uh.FoldingRangeRefreshRequest}});var rC=Hf();Object.defineProperty(l,"DeclarationRequest",{enumerable:!0,get:function(){return rC.DeclarationRequest}});var iC=$f();Object.defineProperty(l,"SelectionRangeRequest",{enumerable:!0,get:function(){return iC.SelectionRangeRequest}});var wu=Gf();Object.defineProperty(l,"WorkDoneProgress",{enumerable:!0,get:function(){return wu.WorkDoneProgress}});Object.defineProperty(l,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return wu.WorkDoneProgressCreateRequest}});Object.defineProperty(l,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return wu.WorkDoneProgressCancelNotification}});var Su=Zf();Object.defineProperty(l,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Su.CallHierarchyIncomingCallsRequest}});Object.defineProperty(l,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Su.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(l,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Su.CallHierarchyPrepareRequest}});var sr=og();Object.defineProperty(l,"TokenFormat",{enumerable:!0,get:function(){return sr.TokenFormat}});Object.defineProperty(l,"SemanticTokensRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRequest}});Object.defineProperty(l,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return sr.SemanticTokensDeltaRequest}});Object.defineProperty(l,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRangeRequest}});Object.defineProperty(l,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRefreshRequest}});Object.defineProperty(l,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return sr.SemanticTokensRegistrationType}});var oC=cg();Object.defineProperty(l,"ShowDocumentRequest",{enumerable:!0,get:function(){return oC.ShowDocumentRequest}});var sC=pg();Object.defineProperty(l,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return sC.LinkedEditingRangeRequest}});var xn=vg();Object.defineProperty(l,"FileOperationPatternKind",{enumerable:!0,get:function(){return xn.FileOperationPatternKind}});Object.defineProperty(l,"DidCreateFilesNotification",{enumerable:!0,get:function(){return xn.DidCreateFilesNotification}});Object.defineProperty(l,"WillCreateFilesRequest",{enumerable:!0,get:function(){return xn.WillCreateFilesRequest}});Object.defineProperty(l,"DidRenameFilesNotification",{enumerable:!0,get:function(){return xn.DidRenameFilesNotification}});Object.defineProperty(l,"WillRenameFilesRequest",{enumerable:!0,get:function(){return xn.WillRenameFilesRequest}});Object.defineProperty(l,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return xn.DidDeleteFilesNotification}});Object.defineProperty(l,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return xn.WillDeleteFilesRequest}});var ku=Rg();Object.defineProperty(l,"UniquenessLevel",{enumerable:!0,get:function(){return ku.UniquenessLevel}});Object.defineProperty(l,"MonikerKind",{enumerable:!0,get:function(){return ku.MonikerKind}});Object.defineProperty(l,"MonikerRequest",{enumerable:!0,get:function(){return ku.MonikerRequest}});var Au=Sg();Object.defineProperty(l,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Au.TypeHierarchyPrepareRequest}});Object.defineProperty(l,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Au.TypeHierarchySubtypesRequest}});Object.defineProperty(l,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Au.TypeHierarchySupertypesRequest}});var lh=Eg();Object.defineProperty(l,"InlineValueRequest",{enumerable:!0,get:function(){return lh.InlineValueRequest}});Object.defineProperty(l,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return lh.InlineValueRefreshRequest}});var Eu=Mg();Object.defineProperty(l,"InlayHintRequest",{enumerable:!0,get:function(){return Eu.InlayHintRequest}});Object.defineProperty(l,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Eu.InlayHintResolveRequest}});Object.defineProperty(l,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Eu.InlayHintRefreshRequest}});var Fr=Hg();Object.defineProperty(l,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Fr.DiagnosticServerCancellationData}});Object.defineProperty(l,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Fr.DocumentDiagnosticReportKind}});Object.defineProperty(l,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Fr.DocumentDiagnosticRequest}});Object.defineProperty(l,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Fr.WorkspaceDiagnosticRequest}});Object.defineProperty(l,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Fr.DiagnosticRefreshRequest}});var wt=Gg();Object.defineProperty(l,"NotebookCellKind",{enumerable:!0,get:function(){return wt.NotebookCellKind}});Object.defineProperty(l,"ExecutionSummary",{enumerable:!0,get:function(){return wt.ExecutionSummary}});Object.defineProperty(l,"NotebookCell",{enumerable:!0,get:function(){return wt.NotebookCell}});Object.defineProperty(l,"NotebookDocument",{enumerable:!0,get:function(){return wt.NotebookDocument}});Object.defineProperty(l,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return wt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(l,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidOpenNotebookDocumentNotification}});Object.defineProperty(l,"NotebookCellArrayChange",{enumerable:!0,get:function(){return wt.NotebookCellArrayChange}});Object.defineProperty(l,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidChangeNotebookDocumentNotification}});Object.defineProperty(l,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidSaveNotebookDocumentNotification}});Object.defineProperty(l,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidCloseNotebookDocumentNotification}});var aC=Xg();Object.defineProperty(l,"InlineCompletionRequest",{enumerable:!0,get:function(){return aC.InlineCompletionRequest}});var Cu;(function(e){function t(n){let r=n;return Se.string(r)||Se.string(r.language)||Se.string(r.scheme)||Se.string(r.pattern)}e.is=t})(Cu||(l.TextDocumentFilter=Cu={}));var Ru;(function(e){function t(n){let r=n;return Se.objectLiteral(r)&&(Se.string(r.notebookType)||Se.string(r.scheme)||Se.string(r.pattern))}e.is=t})(Ru||(l.NotebookDocumentFilter=Ru={}));var Du;(function(e){function t(n){let r=n;return Se.objectLiteral(r)&&(Se.string(r.notebook)||Ru.is(r.notebook))&&(r.language===void 0||Se.string(r.language))}e.is=t})(Du||(l.NotebookCellTextDocumentFilter=Du={}));var Tu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Se.string(r)&&!Cu.is(r)&&!Du.is(r))return!1;return!0}e.is=t})(Tu||(l.DocumentSelector=Tu={}));var em;(function(e){e.method="client/registerCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(em||(l.RegistrationRequest=em={}));var tm;(function(e){e.method="client/unregisterCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(tm||(l.UnregistrationRequest=tm={}));var nm;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(nm||(l.ResourceOperationKind=nm={}));var rm;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(rm||(l.FailureHandlingKind=rm={}));var im;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(im||(l.PositionEncodingKind=im={}));var om;(function(e){function t(n){let r=n;return r&&Se.string(r.id)&&r.id.length>0}e.hasId=t})(om||(l.StaticRegistrationOptions=om={}));var sm;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||Tu.is(r.documentSelector))}e.is=t})(sm||(l.TextDocumentRegistrationOptions=sm={}));var am;(function(e){function t(r){let i=r;return Se.objectLiteral(i)&&(i.workDoneProgress===void 0||Se.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&Se.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(am||(l.WorkDoneProgressOptions=am={}));var cm;(function(e){e.method="initialize",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(cm||(l.InitializeRequest=cm={}));var um;(function(e){e.unknownProtocolVersion=1})(um||(l.InitializeErrorCodes=um={}));var lm;(function(e){e.method="initialized",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(lm||(l.InitializedNotification=lm={}));var pm;(function(e){e.method="shutdown",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType0(e.method)})(pm||(l.ShutdownRequest=pm={}));var dm;(function(e){e.method="exit",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType0(e.method)})(dm||(l.ExitNotification=dm={}));var fm;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(fm||(l.DidChangeConfigurationNotification=fm={}));var gm;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(gm||(l.MessageType=gm={}));var mm;(function(e){e.method="window/showMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(mm||(l.ShowMessageNotification=mm={}));var hm;(function(e){e.method="window/showMessageRequest",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(hm||(l.ShowMessageRequest=hm={}));var ym;(function(e){e.method="window/logMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(ym||(l.LogMessageNotification=ym={}));var bm;(function(e){e.method="telemetry/event",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(bm||(l.TelemetryEventNotification=bm={}));var vm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(vm||(l.TextDocumentSyncKind=vm={}));var Pm;(function(e){e.method="textDocument/didOpen",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Pm||(l.DidOpenTextDocumentNotification=Pm={}));var xm;(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})(xm||(l.TextDocumentContentChangeEvent=xm={}));var _m;(function(e){e.method="textDocument/didChange",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(_m||(l.DidChangeTextDocumentNotification=_m={}));var Cm;(function(e){e.method="textDocument/didClose",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Cm||(l.DidCloseTextDocumentNotification=Cm={}));var Rm;(function(e){e.method="textDocument/didSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Rm||(l.DidSaveTextDocumentNotification=Rm={}));var Dm;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(Dm||(l.TextDocumentSaveReason=Dm={}));var Tm;(function(e){e.method="textDocument/willSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Tm||(l.WillSaveTextDocumentNotification=Tm={}));var wm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(wm||(l.WillSaveTextDocumentWaitUntilRequest=wm={}));var Sm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Sm||(l.DidChangeWatchedFilesNotification=Sm={}));var km;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(km||(l.FileChangeType=km={}));var Am;(function(e){function t(n){let r=n;return Se.objectLiteral(r)&&(Zg.URI.is(r.baseUri)||Zg.WorkspaceFolder.is(r.baseUri))&&Se.string(r.pattern)}e.is=t})(Am||(l.RelativePattern=Am={}));var Em;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Em||(l.WatchKind=Em={}));var Nm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Nm||(l.PublishDiagnosticsNotification=Nm={}));var qm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(qm||(l.CompletionTriggerKind=qm={}));var Om;(function(e){e.method="textDocument/completion",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Om||(l.CompletionRequest=Om={}));var Mm;(function(e){e.method="completionItem/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Mm||(l.CompletionResolveRequest=Mm={}));var jm;(function(e){e.method="textDocument/hover",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(jm||(l.HoverRequest=jm={}));var Lm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Lm||(l.SignatureHelpTriggerKind=Lm={}));var Im;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Im||(l.SignatureHelpRequest=Im={}));var Fm;(function(e){e.method="textDocument/definition",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Fm||(l.DefinitionRequest=Fm={}));var Um;(function(e){e.method="textDocument/references",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Um||(l.ReferencesRequest=Um={}));var Wm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Wm||(l.DocumentHighlightRequest=Wm={}));var Hm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Hm||(l.DocumentSymbolRequest=Hm={}));var Bm;(function(e){e.method="textDocument/codeAction",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Bm||(l.CodeActionRequest=Bm={}));var zm;(function(e){e.method="codeAction/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(zm||(l.CodeActionResolveRequest=zm={}));var $m;(function(e){e.method="workspace/symbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})($m||(l.WorkspaceSymbolRequest=$m={}));var Ym;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Ym||(l.WorkspaceSymbolResolveRequest=Ym={}));var Vm;(function(e){e.method="textDocument/codeLens",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Vm||(l.CodeLensRequest=Vm={}));var Km;(function(e){e.method="codeLens/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Km||(l.CodeLensResolveRequest=Km={}));var Gm;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType0(e.method)})(Gm||(l.CodeLensRefreshRequest=Gm={}));var Qm;(function(e){e.method="textDocument/documentLink",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Qm||(l.DocumentLinkRequest=Qm={}));var Jm;(function(e){e.method="documentLink/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Jm||(l.DocumentLinkResolveRequest=Jm={}));var Xm;(function(e){e.method="textDocument/formatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Xm||(l.DocumentFormattingRequest=Xm={}));var Zm;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Zm||(l.DocumentRangeFormattingRequest=Zm={}));var eh;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(eh||(l.DocumentRangesFormattingRequest=eh={}));var th;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(th||(l.DocumentOnTypeFormattingRequest=th={}));var nh;(function(e){e.Identifier=1})(nh||(l.PrepareSupportDefaultBehavior=nh={}));var rh;(function(e){e.method="textDocument/rename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(rh||(l.RenameRequest=rh={}));var ih;(function(e){e.method="textDocument/prepareRename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ih||(l.PrepareRenameRequest=ih={}));var oh;(function(e){e.method="workspace/executeCommand",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(oh||(l.ExecuteCommandRequest=oh={}));var sh;(function(e){e.method="workspace/applyEdit",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType("workspace/applyEdit")})(sh||(l.ApplyWorkspaceEditRequest=sh={}))});var fh=R(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.createProtocolConnection=void 0;var dh=bn();function cC(e,t,n,r){return dh.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,dh.createMessageConnection)(e,t,n,r)}Co.createProtocolConnection=cC});var mh=R(Ke=>{"use strict";var uC=Ke&&Ke.__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=Ke&&Ke.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&uC(t,e,n)};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.LSPErrorCodes=Ke.createProtocolConnection=void 0;Ro(bn(),Ke);Ro((so(),ti(oo)),Ke);Ro(ce(),Ke);Ro(ph(),Ke);var lC=fh();Object.defineProperty(Ke,"createProtocolConnection",{enumerable:!0,get:function(){return lC.createProtocolConnection}});var gh;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(gh||(Ke.LSPErrorCodes=gh={}))});var ve=R(St=>{"use strict";var pC=St&&St.__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]})),hh=St&&St.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&pC(t,e,n)};Object.defineProperty(St,"__esModule",{value:!0});St.createProtocolConnection=void 0;var dC=fc();hh(fc(),St);hh(mh(),St);function fC(e,t,n,r){return(0,dC.createMessageConnection)(e,t,n,r)}St.createProtocolConnection=fC});var qu=R(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.SemanticTokensBuilder=en.SemanticTokensDiff=en.SemanticTokensFeature=void 0;var Do=ve(),gC=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)))}}}};en.SemanticTokensFeature=gC;var To=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}]:[]}};en.SemanticTokensDiff=To;var Nu=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 To(this._prevData,this._data).computeDiff()}:this.build()}};en.SemanticTokensBuilder=Nu});var yh=R(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.InlineCompletionFeature=void 0;var mC=ve(),hC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(mC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};wo.InlineCompletionFeature=hC});var Mu=R(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.TextDocuments=void 0;var _n=ve(),Ou=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new _n.Emitter,this._onDidOpen=new _n.Emitter,this._onDidClose=new _n.Emitter,this._onDidSave=new _n.Emitter,this._onWillSave=new _n.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=_n.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}))})),_n.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};So.TextDocuments=Ou});var Lu=R(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.NotebookDocuments=ar.NotebookSyncFeature=void 0;var it=ve(),bh=Mu(),yC=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(it.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(it.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(it.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(it.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};ar.NotebookSyncFeature=yC;var ko=class e{onDidOpenTextDocument(t){return this.openHandler=t,it.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,it.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,it.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 ju=class{constructor(t){t instanceof bh.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new bh.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new it.Emitter,this._onDidChange=new it.Emitter,this._onDidSave=new it.Emitter,this._onDidClose=new it.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=[],m=[],v=[];if(c.cells!==void 0){let W=c.cells;if(W.structure!==void 0){let h=W.structure.array;if(o.cells.splice(h.start,h.deleteCount,...h.cells!==void 0?h.cells:[]),W.structure.didOpen!==void 0)for(let g of W.structure.didOpen)n.openTextDocument({textDocument:g}),u.push(g.uri);if(W.structure.didClose)for(let g of W.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(W.data!==void 0){let h=new Map(W.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let S=h.get(o.cells[g].document);if(S!==void 0){let Y=o.cells.splice(g,1,S);if(m.push({old:Y[0],new:S}),h.delete(S.document),h.size===0)break}}}if(W.textContent!==void 0)for(let h of W.textContent)n.changeTextDocument({textDocument:h.document,contentChanges:h.changes}),v.push(h.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let T=[];for(let W of u)T.push(this.getNotebookCell(W));let I=[];for(let W of d)I.push(this.getNotebookCell(W));let G=[];for(let W of v)G.push(this.getNotebookCell(W));(T.length>0||I.length>0||m.length>0||G.length>0)&&(y.cells={added:T,removed:I,changed:{data:m,textContent:G}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),r.push(t.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(t.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),it.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};ar.NotebookDocuments=ju});var Iu=R(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.thenable=_e.typedArray=_e.stringArray=_e.array=_e.func=_e.error=_e.number=_e.string=_e.boolean=void 0;function bC(e){return e===!0||e===!1}_e.boolean=bC;function vh(e){return typeof e=="string"||e instanceof String}_e.string=vh;function vC(e){return typeof e=="number"||e instanceof Number}_e.number=vC;function PC(e){return e instanceof Error}_e.error=PC;function Ph(e){return typeof e=="function"}_e.func=Ph;function xh(e){return Array.isArray(e)}_e.array=xh;function xC(e){return xh(e)&&e.every(t=>vh(t))}_e.stringArray=xC;function _C(e,t){return Array.isArray(e)&&e.every(t)}_e.typedArray=_C;function CC(e){return e&&Ph(e.then)}_e.thenable=CC});var Fu=R(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.generateUuid=ot.parse=ot.isUUID=ot.v4=ot.empty=void 0;var Ur=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Wr=class e extends Ur{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(""))}};Wr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Wr._timeHighBits=["8","9","a","b"];ot.empty=new Ur("00000000-0000-0000-0000-000000000000");function _h(){return new Wr}ot.v4=_h;var RC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function Ch(e){return RC.test(e)}ot.isUUID=Ch;function DC(e){if(!Ch(e))throw new Error("invalid uuid");return new Ur(e)}ot.parse=DC;function TC(){return _h().asHex()}ot.generateUuid=TC});var Rh=R(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.attachPartialResult=nn.ProgressFeature=nn.attachWorkDone=void 0;var tn=ve(),wC=Fu(),Cn=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(tn.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(tn.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(tn.WorkDoneProgress.type,this._token,{kind:"end"})}};Cn.Instances=new Map;var Ao=class extends Cn{constructor(t,n){super(t,n),this._source=new tn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Hr=class{constructor(){}begin(){}report(){}done(){}},Eo=class extends Hr{constructor(){super(),this._source=new tn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function SC(e,t){if(t===void 0||t.workDoneToken===void 0)return new Hr;let n=t.workDoneToken;return delete t.workDoneToken,new Cn(e,n)}nn.attachWorkDone=SC;var kC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(tn.WorkDoneProgressCancelNotification.type,n=>{let r=Cn.Instances.get(n.token);(r instanceof Ao||r instanceof Eo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Hr:new Cn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,wC.generateUuid)();return this.connection.sendRequest(tn.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Ao(this.connection,t))}else return Promise.resolve(new Eo)}};nn.ProgressFeature=kC;var Uu;(function(e){e.type=new tn.ProgressType})(Uu||(Uu={}));var Wu=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(Uu.type,this._token,t)}};function AC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new Wu(e,n)}nn.attachPartialResult=AC});var Dh=R(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.ConfigurationFeature=void 0;var EC=ve(),NC=Iu(),qC=e=>class extends e{getConfiguration(t){return t?NC.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(EC.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};No.ConfigurationFeature=qC});var Th=R(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.WorkspaceFoldersFeature=void 0;var qo=ve(),OC=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=OC});var wh=R(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.CallHierarchyFeature=void 0;var Hu=ve(),MC=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(Hu.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=Hu.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=Hu.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Mo.CallHierarchyFeature=MC});var Sh=R(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.ShowDocumentFeature=void 0;var jC=ve(),LC=e=>class extends e{showDocument(t){return this.connection.sendRequest(jC.ShowDocumentRequest.type,t)}};jo.ShowDocumentFeature=LC});var kh=R(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.FileOperationsFeature=void 0;var cr=ve(),IC=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(cr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(cr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(cr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(cr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(cr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(cr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};Lo.FileOperationsFeature=IC});var Ah=R(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.LinkedEditingRangeFeature=void 0;var FC=ve(),UC=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(FC.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};Io.LinkedEditingRangeFeature=UC});var Eh=R(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.TypeHierarchyFeature=void 0;var Bu=ve(),WC=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(Bu.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=Bu.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=Bu.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Fo.TypeHierarchyFeature=WC});var qh=R(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.InlineValueFeature=void 0;var Nh=ve(),HC=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(Nh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(Nh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Uo.InlineValueFeature=HC});var Mh=R(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.FoldingRangeFeature=void 0;var Oh=ve(),BC=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(Oh.FoldingRangeRefreshRequest.type),on:t=>{let n=Oh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Wo.FoldingRangeFeature=BC});var jh=R(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.InlayHintFeature=void 0;var zu=ve(),zC=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(zu.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(zu.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(zu.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};Ho.InlayHintFeature=zC});var Lh=R(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.DiagnosticFeature=void 0;var Br=ve(),$C=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Br.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Br.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Br.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Br.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Br.WorkspaceDiagnosticRequest.partialResult,n)))}}};Bo.DiagnosticFeature=$C});var Ih=R(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.MonikerFeature=void 0;var YC=ve(),VC=e=>class extends e{get moniker(){return{on:t=>{let n=YC.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};zo.MonikerFeature=VC});var Zh=R(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.createConnection=J.combineFeatures=J.combineNotebooksFeatures=J.combineLanguagesFeatures=J.combineWorkspaceFeatures=J.combineWindowFeatures=J.combineClientFeatures=J.combineTracerFeatures=J.combineTelemetryFeatures=J.combineConsoleFeatures=J._NotebooksImpl=J._LanguagesImpl=J.BulkUnregistration=J.BulkRegistration=J.ErrorMessageTracker=void 0;var E=ve(),st=Iu(),Yu=Fu(),B=Rh(),KC=Dh(),GC=Th(),QC=wh(),JC=qu(),XC=Sh(),ZC=kh(),eR=Ah(),tR=Eh(),nR=qh(),rR=Mh(),iR=jh(),oR=Lh(),sR=Lu(),aR=Ih();function $u(e){if(e!==null)return e}var Vu=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)})}};J.ErrorMessageTracker=Vu;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")})}},Ku=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($u)}showWarningMessage(t,...n){let r={type:E.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then($u)}showInformationMessage(t,...n){let r={type:E.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then($u)}},Fh=(0,XC.ShowDocumentFeature)((0,B.ProgressFeature)(Ku)),Uh;(function(e){function t(){return new Yo}e.create=t})(Uh||(J.BulkRegistration=Uh={}));var Yo=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=st.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=Yu.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Wh;(function(e){function t(){return new zr(void 0,[])}e.create=t})(Wh||(J.BulkUnregistration=Wh={}));var zr=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=st.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 zr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=st.string(n)?n:n.method,o=Yu.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=st.string(t)?t:t.method,i=Yu.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 zr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},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){}applyEdit(t){function n(i){return i&&!!i.edit}let r=n(t)?t:{edit:t};return this.connection.sendRequest(E.ApplyWorkspaceEditRequest.type,r)}},Hh=(0,ZC.FileOperationsFeature)((0,GC.WorkspaceFoldersFeature)((0,KC.ConfigurationFeature)(Gu))),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)}};J._LanguagesImpl=Qo;var Bh=(0,rR.FoldingRangeFeature)((0,aR.MonikerFeature)((0,oR.DiagnosticFeature)((0,iR.InlayHintFeature)((0,nR.InlineValueFeature)((0,tR.TypeHierarchyFeature)((0,eR.LinkedEditingRangeFeature)((0,JC.SemanticTokensFeature)((0,QC.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)}};J._NotebooksImpl=Jo;var zh=(0,sR.NotebookSyncFeature)(Jo);function $h(e,t){return function(n){return t(e(n))}}J.combineConsoleFeatures=$h;function Yh(e,t){return function(n){return t(e(n))}}J.combineTelemetryFeatures=Yh;function Vh(e,t){return function(n){return t(e(n))}}J.combineTracerFeatures=Vh;function Kh(e,t){return function(n){return t(e(n))}}J.combineClientFeatures=Kh;function Gh(e,t){return function(n){return t(e(n))}}J.combineWindowFeatures=Gh;function Qh(e,t){return function(n){return t(e(n))}}J.combineWorkspaceFeatures=Qh;function Jh(e,t){return function(n){return t(e(n))}}J.combineLanguagesFeatures=Jh;function Xh(e,t){return function(n){return t(e(n))}}J.combineNotebooksFeatures=Xh;function cR(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,$h),tracer:n(e.tracer,t.tracer,Vh),telemetry:n(e.telemetry,t.telemetry,Yh),client:n(e.client,t.client,Kh),window:n(e.window,t.window,Gh),workspace:n(e.workspace,t.workspace,Qh),languages:n(e.languages,t.languages,Jh),notebooks:n(e.notebooks,t.notebooks,Xh)}}J.combineFeatures=cR;function uR(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(Fh)):new Fh,u=n&&n.workspace?new(n.workspace(Hh)):new Hh,d=n&&n.languages?new(n.languages(Bh)):new Bh,m=n&&n.notebooks?new(n.notebooks(zh)):new zh,v=[r,o,s,a,c,u,d,m];function y(h){return h instanceof Promise?h:st.thenable(h)?new Promise((g,S)=>{h.then(Y=>g(Y),Y=>S(Y))}):Promise.resolve(h)}let T,I,G,W={listen:()=>i.listen(),sendRequest:(h,...g)=>i.sendRequest(st.string(h)?h:h.method,...g),onRequest:(h,g)=>i.onRequest(h,g),sendNotification:(h,g)=>{let S=st.string(h)?h:h.method;return i.sendNotification(S,g)},onNotification:(h,g)=>i.onNotification(h,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:h=>(I=h,{dispose:()=>{I=void 0}}),onInitialized:h=>i.onNotification(E.InitializedNotification.type,h),onShutdown:h=>(T=h,{dispose:()=>{T=void 0}}),onExit:h=>(G=h,{dispose:()=>{G=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 m},onDidChangeConfiguration:h=>i.onNotification(E.DidChangeConfigurationNotification.type,h),onDidChangeWatchedFiles:h=>i.onNotification(E.DidChangeWatchedFilesNotification.type,h),__textDocumentSync:void 0,onDidOpenTextDocument:h=>i.onNotification(E.DidOpenTextDocumentNotification.type,h),onDidChangeTextDocument:h=>i.onNotification(E.DidChangeTextDocumentNotification.type,h),onDidCloseTextDocument:h=>i.onNotification(E.DidCloseTextDocumentNotification.type,h),onWillSaveTextDocument:h=>i.onNotification(E.WillSaveTextDocumentNotification.type,h),onWillSaveTextDocumentWaitUntil:h=>i.onRequest(E.WillSaveTextDocumentWaitUntilRequest.type,h),onDidSaveTextDocument:h=>i.onNotification(E.DidSaveTextDocumentNotification.type,h),sendDiagnostics:h=>i.sendNotification(E.PublishDiagnosticsNotification.type,h),onHover:h=>i.onRequest(E.HoverRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:h=>i.onRequest(E.CompletionRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:h=>i.onRequest(E.CompletionResolveRequest.type,h),onSignatureHelp:h=>i.onRequest(E.SignatureHelpRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:h=>i.onRequest(E.DeclarationRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:h=>i.onRequest(E.DefinitionRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:h=>i.onRequest(E.TypeDefinitionRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:h=>i.onRequest(E.ImplementationRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:h=>i.onRequest(E.ReferencesRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:h=>i.onRequest(E.DocumentHighlightRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:h=>i.onRequest(E.DocumentSymbolRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:h=>i.onRequest(E.WorkspaceSymbolRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:h=>i.onRequest(E.WorkspaceSymbolResolveRequest.type,h),onCodeAction:h=>i.onRequest(E.CodeActionRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:h=>i.onRequest(E.CodeActionResolveRequest.type,(g,S)=>h(g,S)),onCodeLens:h=>i.onRequest(E.CodeLensRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:h=>i.onRequest(E.CodeLensResolveRequest.type,(g,S)=>h(g,S)),onDocumentFormatting:h=>i.onRequest(E.DocumentFormattingRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:h=>i.onRequest(E.DocumentRangeFormattingRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:h=>i.onRequest(E.DocumentOnTypeFormattingRequest.type,(g,S)=>h(g,S)),onRenameRequest:h=>i.onRequest(E.RenameRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:h=>i.onRequest(E.PrepareRenameRequest.type,(g,S)=>h(g,S)),onDocumentLinks:h=>i.onRequest(E.DocumentLinkRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:h=>i.onRequest(E.DocumentLinkResolveRequest.type,(g,S)=>h(g,S)),onDocumentColor:h=>i.onRequest(E.DocumentColorRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:h=>i.onRequest(E.ColorPresentationRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:h=>i.onRequest(E.FoldingRangeRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:h=>i.onRequest(E.SelectionRangeRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:h=>i.onRequest(E.ExecuteCommandRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let h of v)h.attach(W);return i.onRequest(E.InitializeRequest.type,h=>{t.initialize(h),st.string(h.trace)&&(o.trace=E.Trace.fromString(h.trace));for(let g of v)g.initialize(h.capabilities);if(I){let g=I(h,new E.CancellationTokenSource().token,(0,B.attachWorkDone)(i,h),void 0);return y(g).then(S=>{if(S instanceof E.ResponseError)return S;let Y=S;Y||(Y={capabilities:{}});let Z=Y.capabilities;Z||(Z={},Y.capabilities=Z),Z.textDocumentSync===void 0||Z.textDocumentSync===null?Z.textDocumentSync=st.number(W.__textDocumentSync)?W.__textDocumentSync:E.TextDocumentSyncKind.None:!st.number(Z.textDocumentSync)&&!st.number(Z.textDocumentSync.change)&&(Z.textDocumentSync.change=st.number(W.__textDocumentSync)?W.__textDocumentSync:E.TextDocumentSyncKind.None);for(let at of v)at.fillServerCapabilities(Z);return Y})}else{let g={capabilities:{textDocumentSync:E.TextDocumentSyncKind.None}};for(let S of v)S.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(E.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,T)return T(new E.CancellationTokenSource().token)}),i.onNotification(E.ExitNotification.type,()=>{try{G&&G()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(E.SetTraceNotification.type,h=>{o.trace=E.Trace.fromString(h.value)}),W}J.createConnection=uR});var Qu=R(Ie=>{"use strict";var lR=Ie&&Ie.__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]})),ty=Ie&&Ie.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&lR(t,e,n)};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.ProposedFeatures=Ie.NotebookDocuments=Ie.TextDocuments=Ie.SemanticTokensBuilder=void 0;var pR=qu();Object.defineProperty(Ie,"SemanticTokensBuilder",{enumerable:!0,get:function(){return pR.SemanticTokensBuilder}});var dR=yh();ty(ve(),Ie);var fR=Mu();Object.defineProperty(Ie,"TextDocuments",{enumerable:!0,get:function(){return fR.TextDocuments}});var gR=Lu();Object.defineProperty(Ie,"NotebookDocuments",{enumerable:!0,get:function(){return gR.NotebookDocuments}});ty(Zh(),Ie);var ey;(function(e){e.all={__brand:"features",languages:dR.InlineCompletionFeature}})(ey||(Ie.ProposedFeatures=ey={}))});var ry=R((RS,ny)=>{"use strict";ny.exports=ve()});var Zo=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]})),oy=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.createConnection=void 0;var Xo=Qu();oy(ry(),kt);oy(Qu(),kt);var iy=!1,hR={initialize:e=>{},get shutdownReceived(){return iy},set shutdownReceived(e){iy=e},exit:e=>{}};function yR(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,hR,i)}kt.createConnection=yR});var rn=R((TS,sy)=>{"use strict";sy.exports=Zo()});var gl=R((_k,_y)=>{"use strict";function At(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function xy(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 mD(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 pr={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),At(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=xy(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(At(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=xy(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return At(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];At(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":pr.normalize(t)},relative:function(t,n){if(At(t),At(n),t===n||(t=pr.resolve(t),n=pr.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,m=0;m<=u;++m){if(m===u){if(c>u){if(n.charCodeAt(s+m)===47)return n.slice(s+m+1);if(m===0)return n.slice(s+m)}else o>u&&(t.charCodeAt(r+m)===47?d=m:m===0&&(d=0));break}var v=t.charCodeAt(r+m),y=n.charCodeAt(s+m);if(v!==y)break;v===47&&(d=m)}var T="";for(m=r+d+1;m<=i;++m)(m===i||t.charCodeAt(m)===47)&&(T.length===0?T+="..":T+="/..");return T.length>0?T+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(At(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');At(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){At(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 mD("/",t)},parse:function(t){At(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,m=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:m!==1&&(m=1):s!==-1&&(m=-1)}return s===-1||c===-1||m===0||m===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};pr.posix=pr;_y.exports=pr});import{createConfig as Xp,loadConfig as BP,loadIgnoreConfig as zP,DEFAULT_CONFIG as $P,IGNORE_FILE as YP}from"@redocly/openapi-core";var vl;(()=>{"use strict";var e={975:k=>{function b(x){if(typeof x!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(x))}function O(x,C){for(var D,q="",j=0,N=-1,$=0,V=0;V<=x.length;++V){if(V<x.length)D=x.charCodeAt(V);else{if(D===47)break;D=47}if(D===47){if(!(N===V-1||$===1))if(N!==V-1&&$===2){if(q.length<2||j!==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="",j=0):j=(q=q.slice(0,De)).length-1-q.lastIndexOf("/"),N=V,$=0;continue}}else if(q.length===2||q.length===1){q="",j=0,N=V,$=0;continue}}C&&(q.length>0?q+="/..":q="..",j=2)}else q.length>0?q+="/"+x.slice(N+1,V):q=x.slice(N+1,V),j=V-N-1;N=V,$=0}else D===46&&$!==-1?++$:$=-1}return q}var M={resolve:function(){for(var x,C="",D=!1,q=arguments.length-1;q>=-1&&!D;q--){var j;q>=0?j=arguments[q]:(x===void 0&&(x=process.cwd()),j=x),b(j),j.length!==0&&(C=j+"/"+C,D=j.charCodeAt(0)===47)}return C=O(C,!D),D?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(x){if(b(x),x.length===0)return".";var C=x.charCodeAt(0)===47,D=x.charCodeAt(x.length-1)===47;return(x=O(x,!C)).length!==0||C||(x="."),x.length>0&&D&&(x+="/"),C?"/"+x:x},isAbsolute:function(x){return b(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 D=arguments[C];b(D),D.length>0&&(x===void 0?x=D:x+="/"+D)}return x===void 0?".":M.normalize(x)},relative:function(x,C){if(b(x),b(C),x===C||(x=M.resolve(x))===(C=M.resolve(C)))return"";for(var D=1;D<x.length&&x.charCodeAt(D)===47;++D);for(var q=x.length,j=q-D,N=1;N<C.length&&C.charCodeAt(N)===47;++N);for(var $=C.length-N,V=j<$?j:$,De=-1,ne=0;ne<=V;++ne){if(ne===V){if($>V){if(C.charCodeAt(N+ne)===47)return C.slice(N+ne+1);if(ne===0)return C.slice(N+ne)}else j>V&&(x.charCodeAt(D+ne)===47?De=ne:ne===0&&(De=0));break}var ct=x.charCodeAt(D+ne);if(ct!==C.charCodeAt(N+ne))break;ct===47&&(De=ne)}var cn="";for(ne=D+De+1;ne<=q;++ne)ne!==q&&x.charCodeAt(ne)!==47||(cn.length===0?cn+="..":cn+="/..");return cn.length>0?cn+C.slice(N+De):(N+=De,C.charCodeAt(N)===47&&++N,C.slice(N))},_makeLong:function(x){return x},dirname:function(x){if(b(x),x.length===0)return".";for(var C=x.charCodeAt(0),D=C===47,q=-1,j=!0,N=x.length-1;N>=1;--N)if((C=x.charCodeAt(N))===47){if(!j){q=N;break}}else j=!1;return q===-1?D?"/":".":D&&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');b(x);var D,q=0,j=-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(D=x.length-1;D>=0;--D){var De=x.charCodeAt(D);if(De===47){if(!N){q=D+1;break}}else V===-1&&(N=!1,V=D+1),$>=0&&(De===C.charCodeAt($)?--$==-1&&(j=D):($=-1,j=V))}return q===j?j=V:j===-1&&(j=x.length),x.slice(q,j)}for(D=x.length-1;D>=0;--D)if(x.charCodeAt(D)===47){if(!N){q=D+1;break}}else j===-1&&(N=!1,j=D+1);return j===-1?"":x.slice(q,j)},extname:function(x){b(x);for(var C=-1,D=0,q=-1,j=!0,N=0,$=x.length-1;$>=0;--$){var V=x.charCodeAt($);if(V!==47)q===-1&&(j=!1,q=$+1),V===46?C===-1?C=$:N!==1&&(N=1):C!==-1&&(N=-1);else if(!j){D=$+1;break}}return C===-1||q===-1||N===0||N===1&&C===q-1&&C===D+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,D){var q=D.dir||D.root,j=D.base||(D.name||"")+(D.ext||"");return q?q===D.root?q+j:q+"/"+j:j})(0,x)},parse:function(x){b(x);var C={root:"",dir:"",base:"",ext:"",name:""};if(x.length===0)return C;var D,q=x.charCodeAt(0),j=q===47;j?(C.root="/",D=1):D=0;for(var N=-1,$=0,V=-1,De=!0,ne=x.length-1,ct=0;ne>=D;--ne)if((q=x.charCodeAt(ne))!==47)V===-1&&(De=!1,V=ne+1),q===46?N===-1?N=ne:ct!==1&&(ct=1):N!==-1&&(ct=-1);else if(!De){$=ne+1;break}return N===-1||V===-1||ct===0||ct===1&&N===V-1&&N===$+1?V!==-1&&(C.base=C.name=$===0&&j?x.slice(1,V):x.slice($,V)):($===0&&j?(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):j&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};M.posix=M,k.exports=M}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var O=t[k]={exports:{}};return e[k](O,O.exports,n),O.exports}n.d=(k,b)=>{for(var O in b)n.o(b,O)&&!n.o(k,O)&&Object.defineProperty(k,O,{enumerable:!0,get:b[O]})},n.o=(k,b)=>Object.prototype.hasOwnProperty.call(k,b),n.r=k=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>v,Utils:()=>Dn}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function c(k,b){if(!k.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${k.authority}", path: "${k.path}", query: "${k.query}", fragment: "${k.fragment}"}`);if(k.scheme&&!o.test(k.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(k.path){if(k.authority){if(!s.test(k.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(k.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let u="",d="/",m=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class v{static isUri(b){return b instanceof v||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function"}scheme;authority;path;query;fragment;constructor(b,O,M,x,C,D=!1){typeof b=="object"?(this.scheme=b.scheme||u,this.authority=b.authority||u,this.path=b.path||u,this.query=b.query||u,this.fragment=b.fragment||u):(this.scheme=(function(q,j){return q||j?q:"file"})(b,D),this.authority=O||u,this.path=(function(q,j){switch(q){case"https":case"http":case"file":j?j[0]!==d&&(j=d+j):j=d}return j})(this.scheme,M||u),this.query=x||u,this.fragment=C||u,c(this,D))}get fsPath(){return h(this,!1)}with(b){if(!b)return this;let{scheme:O,authority:M,path:x,query:C,fragment:D}=b;return O===void 0?O=this.scheme:O===null&&(O=u),M===void 0?M=this.authority:M===null&&(M=u),x===void 0?x=this.path:x===null&&(x=u),C===void 0?C=this.query:C===null&&(C=u),D===void 0?D=this.fragment:D===null&&(D=u),O===this.scheme&&M===this.authority&&x===this.path&&C===this.query&&D===this.fragment?this:new T(O,M,x,C,D)}static parse(b,O=!1){let M=m.exec(b);return M?new T(M[2]||u,Z(M[4]||u),Z(M[5]||u),Z(M[7]||u),Z(M[9]||u),O):new T(u,u,u,u,u)}static file(b){let O=u;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let M=b.indexOf(d,2);M===-1?(O=b.substring(2),b=d):(O=b.substring(2,M),b=b.substring(M)||d)}return new T("file",O,b,u,u)}static from(b){let O=new T(b.scheme,b.authority,b.path,b.query,b.fragment);return c(O,!0),O}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let O=new T(b);return O._formatted=b.external,O._fsPath=b._sep===y?b.fsPath:null,O}}return b}}let y=i?1:void 0;class T extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=h(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let I={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function G(k,b,O){let M,x=-1;for(let C=0;C<k.length;C++){let D=k.charCodeAt(C);if(D>=97&&D<=122||D>=65&&D<=90||D>=48&&D<=57||D===45||D===46||D===95||D===126||b&&D===47||O&&D===91||O&&D===93||O&&D===58)x!==-1&&(M+=encodeURIComponent(k.substring(x,C)),x=-1),M!==void 0&&(M+=k.charAt(C));else{M===void 0&&(M=k.substr(0,C));let q=I[D];q!==void 0?(x!==-1&&(M+=encodeURIComponent(k.substring(x,C)),x=-1),M+=q):x===-1&&(x=C)}}return x!==-1&&(M+=encodeURIComponent(k.substring(x))),M!==void 0?M:k}function W(k){let b;for(let O=0;O<k.length;O++){let M=k.charCodeAt(O);M===35||M===63?(b===void 0&&(b=k.substr(0,O)),b+=I[M]):b!==void 0&&(b+=k[O])}return b!==void 0?b:k}function h(k,b){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?b?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(O=O.replace(/\//g,"\\")),O}function g(k,b){let O=b?W:G,M="",{scheme:x,authority:C,path:D,query:q,fragment:j}=k;if(x&&(M+=x,M+=":"),(C||x==="file")&&(M+=d,M+=d),C){let N=C.indexOf("@");if(N!==-1){let $=C.substr(0,N);C=C.substr(N+1),N=$.lastIndexOf(":"),N===-1?M+=O($,!1,!1):(M+=O($.substr(0,N),!1,!1),M+=":",M+=O($.substr(N+1),!1,!0)),M+="@"}C=C.toLowerCase(),N=C.lastIndexOf(":"),N===-1?M+=O(C,!1,!0):(M+=O(C.substr(0,N),!1,!0),M+=C.substr(N))}if(D){if(D.length>=3&&D.charCodeAt(0)===47&&D.charCodeAt(2)===58){let N=D.charCodeAt(1);N>=65&&N<=90&&(D=`/${String.fromCharCode(N+32)}:${D.substr(3)}`)}else if(D.length>=2&&D.charCodeAt(1)===58){let N=D.charCodeAt(0);N>=65&&N<=90&&(D=`${String.fromCharCode(N+32)}:${D.substr(2)}`)}M+=O(D,!0,!1)}return q&&(M+="?",M+=O(q,!1,!1)),j&&(M+="#",M+=b?j:G(j,!1,!1)),M}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 Z(k){return k.match(Y)?k.replace(Y,(b=>S(b))):k}var at=n(975);let It=at.posix||at,an="/";var Dn;(function(k){k.joinPath=function(b,...O){return b.with({path:It.join(b.path,...O)})},k.resolvePath=function(b,...O){let M=b.path,x=!1;M[0]!==an&&(M=an+M,x=!0);let C=It.resolve(M,...O);return x&&C[0]===an&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===an)return b;let O=It.dirname(b.path);return O.length===1&&O.charCodeAt(0)===46&&(O=""),b.with({path:O})},k.basename=function(b){return It.basename(b.path)},k.extname=function(b){return It.extname(b.path)}})(Dn||(Dn={})),vl=r})();var{URI:Ge,Utils:K}=vl;import{isBrowser as ib}from"@redocly/openapi-core";import{CONFIG_FILE_NAME as rb}from"@redocly/openapi-core";var bs={languageId:"yaml",filePattern:/\.ya?ml$/i},vs={languageId:"json",filePattern:/\.json$/i},ys=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[bs,vs];this.registerConfigFinder(async t=>{if(this._fs)try{let n=K.resolvePath(K.dirname(Ue(t)),rb);return await this._fs.exists(n)?Oe(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}},ae=new ys;function gr(e,t){let n=r=>K.resolvePath(Ue(Et(r))).toString();return n(e)===n(t)}function Ue(e){return Ge.parse(e)}function Et(e){return e.startsWith("file://")?e:Ge.file(e).toString()}function Oe(e){let t=Ge.parse(e).fsPath;return ib&&t.startsWith("/")?t.slice(1):t}function mr(e){let t=["https","http"],{scheme:n}=Ge.parse(e);return t.includes(n)}function hr(e){return K.basename(Ue(e))}async function Pl(e,t="/"){let n=K.resolvePath(Ue(t));for(;e.path!=="/";)try{(await ae.fs.stat(K.resolvePath(n,e.path))).isDirectory()||(e=K.dirname(e));break}catch{e=K.dirname(e)}return e}import{BaseResolver as WP,Source as Jp,readFileFromUrl as HP,isAbsoluteUrl as Gs}from"@redocly/openapi-core";var ni=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=Cl(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=xl(r.text,!1,o);if(c-a===d.length)for(let v=0,y=d.length;v<y;v++)u[v+a+1]=d[v];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 m=r.text.length-(s-o);if(m!==0)for(let v=a+1+d.length,y=u.length;v<y;v++)u[v]=u[v]+m}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=xl(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&&_l(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}},ri;(function(e){function t(i,o,s,a){return new ni(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof ni)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=Ps(o.map(ob),(d,m)=>{let v=d.range.start.line-m.range.start.line;return v===0?d.range.start.character-m.range.start.character:v}),c=0,u=[];for(let d of a){let m=i.offsetAt(d.range.start);if(m<c)throw new Error("Overlapping edit");m>c&&u.push(s.substring(c,m)),d.newText.length&&u.push(d.newText),c=i.offsetAt(d.range.end)}return u.push(s.substr(c)),u.join("")}e.applyEdits=r})(ri||(ri={}));function Ps(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);Ps(r,t),Ps(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 xl(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);_l(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function _l(e){return e===13||e===10}function Cl(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 ob(e){let t=Cl(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var mi=qe(qn(),1),Gp=new Map;function Qp(e,t){return Gp.set(e,t)}function Ks(e){let t=[];for(let[n,r]of Gp.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Je(e){let t=ae.documents.get(e);if(t)return t;let n=await ae.fs.readFile(Ue(e),"utf-8");return ri.create(e,"yaml",1,n)}function xr(e){return vs.filePattern.test(e)}function hi(e){return bs.filePattern.test(e)}function gn({uri:e,ast:t,textDocument:n}){if(!(hi(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=mi.safeLoad(i,{filename:e})}if(t?.kind===mi.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 yt=class extends WP{resolveExternalRef(t,n){return Gs(n)?n:t&&Gs(t)?new URL(n,t).href:t?K.resolvePath(K.dirname(Ue(Et(t))),n).toString():n}async loadExternalRef(t){if(mr(t)){let{body:i,mimeType:o}=await HP(t,{...this.config.http,customFetch:fetch});return new Jp(t,i,o)}let n=Et(t),r=Gs(t)?Oe(t):t;return new Jp(r,(await Je(n)).getText())}};var Bt;async function yi(e,t){let n=!1;try{let r=new yt,i=e?await ae.findConfig(e):void 0;if(i===void 0){let o=await zP(i,r);Bt=await Xp($P,{externalRefResolver:r,ignore:o})}else Bt=await BP({configPath:i,externalRefResolver:r})}catch(r){n=!0,t?.createEventHandleLoadConfigError?.(r?.message),Bt=await Xp({})}return{config:Bt,loadFailed:n}}async function On(e){return Bt||(await yi(e)).config}async function mn(e){return await Qs(e)?!0:!!Bt?.resolvedRefMap&&[...Bt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>gr(hr(Et(e)),n))}async function Qs(e){let t=await ae.findConfig(e);return t?gr(e,t):!1}function VP(e){return e.endsWith(YP)}import{clearPluginsCache as XP}from"@redocly/openapi-core";var Zp=new Set([".js",".mjs",".cjs",".ts"]),KP=/(?:\brequire\(|\b(?:import|export)\b[^'"]*?\bfrom\s+)['"](\.[^'"]+)['"]/g,GP=/\/\*[\s\S]*?\*\/|\/\/[^\n]*/g;async function QP(e){let t=e.resolvedConfig?.plugins;if(!e.configPath||!t?.length)return[];let{fs:n}=ae,r=K.dirname(Ge.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 m of Zp)if(d.includes(u+m))return K.joinPath(c,u+m)}async function s(a){if(i.has(a.toString())||!await n.exists(a)||(i.add(a.toString()),!Zp.has(K.extname(a))))return;let c=(await n.readFile(a,"utf-8")).replace(GP,""),u=K.dirname(a);for(let[,d]of c.matchAll(KP)){let m=await o(K.resolvePath(u,d));m&&await s(m)}}for(let a of t)await s(K.resolvePath(r,a.replace(/\\/g,"/")));return[...i].map(a=>Ge.parse(a).fsPath)}function JP(e,t){return t.some(n=>gr(n,e))}var fd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},_r={type:"object",properties:fd,additionalProperties:!1},ZP={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Cr={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:{...fd,like:_r,dislike:_r,satisfied:_r,neutral:_r,dissatisfied:_r},additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:ZP},additionalProperties:!1}},additionalProperties:!1},ex={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},ta={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},_i={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Cr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ta,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:ex,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Mn={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},tx={type:"object",properties:{name:{type:"string"},items:Mn,queries:Mn,mutations:Mn,subscriptions:Mn,types:Mn,directives:Mn},required:["name"],additionalProperties:!1},nx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:tx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},rx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},ix={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},ox={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:rx,license:ix},additionalProperties:!1},Ci={type:"object",properties:{menu:{type:"object",properties:{...nx.properties},additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:ta,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Cr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},info:ox},additionalProperties:!1},sx={type:"object",properties:{downloadUrls:ta,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Cr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},ax={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},cx={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"}}},ed={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},ux={type:"object",properties:{beforeInfo:{type:"array",items:ed},end:{type:"array",items:ed}}},hn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},bi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},lx={type:"object",properties:ki(hn.properties,["light","dark"])},px={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"}}},dx={type:"object",properties:{error:bi,info:bi,redirect:bi,success:bi}},fx={type:"object",properties:jn(hn.properties,["dark"])},gx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},mx={type:"object",properties:{accent:hn,border:lx,error:hn,http:px,primary:hn,responses:dx,secondary:fx,success:hn,text:gx,tonalOffset:{type:"number"},warning:hn}},vi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},hx={type:"object",properties:{small:vi,medium:vi,large:vi,xlarge:vi}},Ct={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},yx={type:"object",properties:{...jn(Ct.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:hx}},td={type:"object",properties:ki(Ct.properties,["fontSize","lineHeight"])},bx={type:"object",properties:{medium:td,small:td}},vx={type:"object",properties:{...jn(Ct.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:bx}},Px={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},xx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},nd={type:"object",properties:{fullWidth:{type:"boolean"}}},_x={type:"object",properties:{buttons:yx,httpBadges:vx,layoutControls:Px,panels:xx,tryItButton:nd,tryItSendButton:nd}},Ri={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Cx={type:"object",properties:{maxWidth:Ri}},Rx={type:"object",properties:{maxWidth:Ri,middlePanelMaxWidth:Ri}},Dx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Cx,"three-panel":Rx}},rd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Tx={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:rd,defaultDetailsWidth:{type:"string"},examples:rd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},gd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},wx={type:"object",properties:ki(gd.properties,["textTransform"])},Sx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},kx={type:"object",properties:{...jn(Ct.properties,["fontWeight","lineHeight"]),activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:gd,level1items:wx,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Sx,textColor:{type:"string"},width:{type:"string"}}},Pi={type:"object",properties:{...Ct.properties,color:{type:"string"},transform:{type:"string"}}},Ax={type:"object",properties:{...Ct.properties,backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},Ex={type:"object",properties:jn(Ct.properties,["fontSize"])},Nx={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},qx={type:"object",properties:{code:Ax,fieldName:Ct,...ki(Ct.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Pi,heading2:Pi,heading3:Pi,headings:Ex,lineHeight:{type:"string"},links:Nx,optimizeSpeed:{type:"boolean"},rightPanelHeading:Pi,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},Ox={type:"object",properties:{color:{type:"string"},...jn(Ct.properties,["fontWeight"])}},Mx={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:Ox}},jx={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},Lx={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},id={type:"object",properties:{custom:{type:"string"}}},Ix={type:"object",properties:{DownloadButton:id,NextSectionButton:id}},Fx={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},Ux={type:"object",properties:{borderRadius:{type:"string"}}},Wx={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Hx={type:"object",properties:{breakpoints:Ri,codeBlock:Mx,colors:mx,components:_x,layout:Dx,logo:jx,fab:Lx,overrides:Ix,rightPanel:Fx,schema:Tx,shape:Ux,sidebar:kx,spacing:Wx,typography:qx,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},Bx={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:ax}},required:["languages"]},md={type:"object",properties:{theme:Hx,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:Bx,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:cx,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:ux,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 jn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var bt={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 zx={rules:bt,oas2Rules:bt,oas3_0Rules:bt,oas3_1Rules:bt,oas3_2Rules:bt,async2Rules:bt,async3Rules:bt,arazzo1Rules:bt,overlay1Rules:bt,openrpc1Rules:bt};var vt={nodeTypeName:void 0,type:"object",additionalProperties:!0},$x={preprocessors:vt,oas2Preprocessors:vt,oas3_0Preprocessors:vt,oas3_1Preprocessors:vt,oas3_2Preprocessors:vt,async2Preprocessors:vt,async3Preprocessors:vt,arazzo1Preprocessors:vt,overlay1Preprocessors:vt,openrpc1Preprocessors:vt},Pt={nodeTypeName:void 0,type:"object",additionalProperties:!0};var Yx={decorators:Pt,oas2Decorators:Pt,oas3_0Decorators:Pt,oas3_1Decorators:Pt,oas3_2Decorators:Pt,async2Decorators:Pt,async3Decorators:Pt,arazzo1Decorators:Pt,overlay1Decorators:Pt,openrpc1Decorators:Pt},Vx={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"},Ai={...zx,...Yx,...$x,extends:Vx},hd=e=>e,_t=hd({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),we={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},od={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},Js={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},na={type:"array",items:{...Js,properties:{...Js.properties,items:{type:"array",items:Js}}}},Kx={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Gx={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Qx={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}},Jx={type:"object",properties:{facets:Qx,...we.properties},additionalProperties:!1},Xx={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},yd={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},bd={type:"object",properties:{items:na,...we.properties},additionalProperties:!1},vd={type:"object",additionalProperties:Kx},Pd={type:"object",properties:{items:na,copyrightText:{type:"string"},logo:we,...we.properties},additionalProperties:!1},xd={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"},...we.properties},additionalProperties:!1},_d={type:"object",properties:{head:{type:"array",items:od},body:{type:"array",items:od}},additionalProperties:!1},Cd={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}},Rd={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:Gx,filters:Jx,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:Xx},...we.properties},additionalProperties:!1},Dd={type:"object",properties:{hide:{type:"boolean"},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean",default:!1},inputType:{type:"string",enum:["button","icon"],default:"button"},inputIcon:{type:"string",enum:["chat","sparkles","redocly"],default:"sparkles"}},additionalProperties:!1}},additionalProperties:!1},Td={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]},...we.properties},additionalProperties:!1},ra={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},Zx={type:"object",properties:{...we.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]},default:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}},additionalProperties:!1},wd={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...we.properties},additionalProperties:!1,default:{}},previousButton:{type:"object",properties:{text:{type:"string"},...we.properties},additionalProperties:!1,default:{}},actions:Zx},additionalProperties:!1},Sd={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:{...we.properties},additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...we.properties},additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:{...we.properties},additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:{...we.properties},additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},kd={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:{format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"},...we.properties},additionalProperties:!1,default:{}},toc:{type:"object",properties:{header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1},...we.properties},additionalProperties:!1,default:{}},editPage:{type:"object",properties:{baseUrl:{type:"string"},...we.properties},additionalProperties:!1,default:{}},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1,default:{}},Di={..._i,properties:{..._i.properties,...md.properties}},KT={..._i,properties:{..._i.properties,...md.properties}},e0={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},t0={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"]},n0={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},r0={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},i0={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"]},o0={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},s0={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},Ad={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"]},a0={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:Ad}},additionalProperties:!1,required:["trackingId"]},Ed={type:"object",properties:{adobe:e0,amplitude:t0,fullstory:n0,heap:r0,rudderstack:i0,segment:o0,gtm:s0,ga:a0}},Nd={type:"object",properties:{items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"},...we.properties},additionalProperties:!1},qd={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Od={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},c0={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},u0={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:c0},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:na,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Ti={type:"object",patternProperties:{".*":u0}},wi={nodeTypeName:_t.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",default:!1},teamMetadataProperty:{nodeTypeName:_t.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:_t.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:_t.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...Ai},additionalProperties:!1}},targets:{nodeTypeName:_t.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:_t.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:_t.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:_t.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},l0={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},p0={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},d0={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Ot={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:p0},excludes:{type:"array",items:l0},filters:{type:"array",items:d0},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},f0={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},g0={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:f0},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},m0={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:g0,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},h0={type:"object",additionalProperties:m0},Md={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:h0,catalogs:{type:"object",properties:{all:Ot,services:Ot,domains:Ot,teams:Ot,users:Ot,apiDescriptions:Ot,dataSchemas:Ot,apiOperations:Ot},additionalProperties:Ot}},additionalProperties:!1},sd={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"]},Xs={type:"object",properties:{field:{type:"string"},operator:sd,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:sd,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},y0={type:"object",properties:{operator:ia,conditions:{type:"array",items:Xs}},required:["operator","conditions"],additionalProperties:!1},ad={type:"array",items:{oneOf:[Xs,{type:"object",properties:{operator:ia,conditions:{type:"array",items:{oneOf:[Xs,y0]}}},required:["operator","conditions"],additionalProperties:!1}]}},jd={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{}},additionalProperties:!1},b0={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:jd},required:["subject","assertions"],additionalProperties:!1}},v0={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:jd,where:b0,weight:{type:"number",default:1}},required:["subject","assertions"],additionalProperties:!1},P0={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number",default:1}},additionalProperties:!0},v0]}},x0={type:"object",properties:{name:{type:"string"},extends:Ai.extends,rules:P0},required:["name"],additionalProperties:!1},cd={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},_0={oneOf:[cd,{type:"array",items:cd}]},C0={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[ad,{type:"object",properties:{operator:ia,conditions:ad},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:x0,minItems:1},trigger:_0},required:["name","key","entities","levels"],additionalProperties:!1},Ld={type:"array",items:C0},xt={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:yd,navbar:bd,products:vd,footer:Pd,sidebar:xd,scripts:_d,links:Cd,feedback:Cr,search:Rd,aiAssistant:Dd,colorMode:Td,palette:ra,navigation:wd,codeSnippet:Sd,markdown:kd,openapi:Di,asyncapi:sx,graphql:Ci,analytics:Ed,userMenu:Nd,versionPicker:qd,breadcrumbs:Od,catalog:Ti,entitiesCatalog:Md,catalogClassic:Ti,scorecard:wi,scorecardClassic:wi,scorecards:Ld},additionalProperties:!0},R0="https://redocly.com/sso/teams",D0=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(D0||{}),T0=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(T0||{});var w0=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(w0||{});function Zs(e,t,n){return Object.fromEntries(Object.entries(e).map(([r,i])=>{if(!(r===t&&n!=="properties"))return typeof i!="object"||!i?[r,i]:Array.isArray(i)?[r,i.map(o=>typeof o=="object"?Zs(o,t,r):o)]:[r,Zs(i,t,r)]}).filter(Boolean))}var S0={type:"object",additionalProperties:{type:"string"}},k0={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},xi={type:"string",enum:["error","warn","off"]},A0={type:"object",additionalProperties:!1,properties:{schemaCheck:xi,statusCodeCheck:xi,contentTypeCheck:xi,successCriteriaCheck:xi}},E0={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},N0={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},q0={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},O0={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[E0,N0]},inputs:S0,servers:k0,severity:A0,slo:q0},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},M0={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",default:!1},configurationUrl:{type:"string",minLength:1},configuration:M0,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},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",default:R0},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},I0={oneOf:[j0,L0],discriminator:{propertyName:"type"}},F0={type:"object",additionalProperties:I0},Id={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},Fd={type:"boolean"},Ud={type:"string",pattern:"^https?://.*"},Wd={type:"string",pattern:"^https?://.*"},U0={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1,nodeTypeName:_t.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},W0={type:"object",additionalProperties:U0,default:{},nodeTypeName:_t.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"},H0={type:"string",enum:["info","success","warning","error"],default:"info"},te={type:"object",additionalProperties:{type:"string"}},B0={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean",default:!1},target:{type:"string"},color:H0,rbac:te,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},z0={type:"array",items:B0,default:[]},Hd={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:te,openapi:Di,graphql:Ci,theme:{type:"object",properties:{openapi:Di,graphql:Ci},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...Ai},required:["root"]},$0={type:"object",additionalProperties:!0},Y0={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},ud={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},ld={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:ud},default:{llmstxt:ud.default},additionalProperties:!1},V0={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},K0={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},Bd={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},additionalProperties:!1},content:{type:"object",properties:{"**":te},additionalProperties:te},entitiesCatalog:K0},additionalProperties:te},G0={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},Q0={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},J0={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[G0,Q0]}},additionalProperties:!1,required:["type","apiBaseUrl"]},X0={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},Z0={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},ea={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[X0,Z0],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},e_={...ea,properties:{...ea.properties,type:{type:"string",const:"APIGEE_EDGE"}}},t_={type:"object",oneOf:[ea,e_,J0],discriminator:{propertyName:"type"}},n_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:t_}}},pd={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},r_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},i_={type:"object",properties:{hide:{type:"boolean",default:!1},docs:{type:"object",properties:{hide:{type:"boolean",default:!1},name:{type:"string",default:"Docs MCP server"},ignore:{type:"array",items:{type:"string"},default:[]}},additionalProperties:!1}},additionalProperties:!1,default:{hide:!1,docs:{hide:!1,name:"MCP server",ignore:[]}}},o_={type:"object",properties:{requiresLogin:Fd,logoutReturnUrl:Ud,residency:Wd,sso:Id,rbac:Bd},additionalProperties:!1},Si={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:W0,seo:ld,rbac:Bd,apiFunctions:V0,requiresLogin:Fd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:r_}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:Hd},...Ai,ssoDirect:F0,sso:Id,residency:Wd,logoutReturnUrl:Ud,access:o_,developerOnboarding:n_,removeAttribution:{type:"boolean"},i18n:pd,l10n:pd,metadata:$0,metadataGlobs:Y0,ignore:{type:"array",items:{type:"string"}},theme:xt,reunite:O0,logo:yd,navbar:bd,products:vd,footer:Pd,sidebar:xd,scripts:_d,links:Cd,feedback:Cr,search:Rd,aiAssistant:Dd,colorMode:Td,palette:ra,navigation:wd,codeSnippet:Sd,markdown:kd,openapi:Di,graphql:Ci,analytics:Ed,userMenu:Nd,versionPicker:qd,breadcrumbs:Od,catalog:Ti,entitiesCatalog:Md,catalogClassic:Ti,scorecard:wi,scorecardClassic:wi,scorecards:Ld,mcp:i_,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:z0},default:{redirects:{},seo:ld.default},additionalProperties:!0},s_={...Zs(Si,"default"),additionalProperties:!1},zd={$id:"root-redocly-config",...Si,properties:{plugins:{type:"array",items:{type:"string"}},...Si.properties,env:{type:"object",additionalProperties:s_}},default:{},additionalProperties:!1},dd={type:"object",properties:{logo:xt.properties.logo,navbar:xt.properties.navbar,footer:xt.properties.footer,sidebar:xt.properties.sidebar,search:xt.properties.search,codeSnippet:xt.properties.codeSnippet,breadcrumbs:xt.properties.breadcrumbs,openapi:xt.properties.openapi,feedback:xt.properties.feedback,palette:ra,mockServer:Si.properties.mockServer,analytics:{type:"object",properties:{ga:Ad}}},additionalProperties:!0,default:{}},GT={$id:"product-config-override",type:"object",properties:{...dd.properties,apis:{type:"object",additionalProperties:Hd},theme:dd},additionalProperties:!1},a_=["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"],Pe=hd({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"}),c_={type:"object",nodeTypeName:Pe.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},u_={type:"object",nodeTypeName:Pe.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},l_={type:"object",nodeTypeName:Pe.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},p_={type:"object",nodeTypeName:Pe.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},d_={type:"object",properties:{},nodeTypeName:Pe.EntityMetadata,additionalProperties:!0},f_={type:"object",nodeTypeName:Pe.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},g_={type:"object",nodeTypeName:Pe.EntitySlackContact,properties:{channels:{type:"array",items:f_}},required:["channels"],additionalProperties:!1},m_={type:"object",nodeTypeName:Pe.EntityContact,properties:{slack:g_},additionalProperties:!1},h_={type:"object",nodeTypeName:Pe.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},y_={type:"object",nodeTypeName:Pe.EntityRelation,properties:{type:{type:"string",enum:a_},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},zt={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:m_,links:{type:"array",nodeTypeName:Pe.EntityLinkList,items:h_},relations:{type:"array",nodeTypeName:Pe.EntityRelationList,items:y_},metadata:d_},Ei={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...zt,type:{const:"user"},metadata:c_},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Pe.UserEntity},{type:"object",nodeTypeName:Pe.ApiOperationEntity,properties:{...zt,type:{const:"api-operation"},metadata:l_},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.DataSchemaEntity,properties:{...zt,type:{const:"data-schema"},metadata:p_},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.ApiDescriptionEntity,properties:{...zt,type:{const:"api-description"},metadata:u_},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.ServiceEntity,properties:{...zt,type:{const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.DomainEntity,properties:{...zt,type:{const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.TeamEntity,properties:{...zt,type:{const:"team"}},required:["key","title","type"],additionalProperties:!1}]},Ni={type:"object",nodeTypeName:Pe.Entity,properties:{...zt},required:["key","title","type"],additionalProperties:!1};var We=qe(rn(),1);import{getLineColLocation as NR,lintDocument as qR,makeDocumentFromString as ns,lintConfig as OR,lintEntityFile as MR,detectSpec as jR,createConfigTypes as LR}from"@redocly/openapi-core";var es=qe(qn(),1);function ay(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),m=d?Date.now()-d:0;try{if(m<t&&m>=0)r.set(u.uri,setTimeout(()=>a(u),t-m));else if(r.delete(u.uri),i.delete(u.uri),!n){let v=s.get(u.uri),y=e(o.get(u.uri));v&&v.forEach(({resolve:T})=>T(y)),s.delete(u.uri)}}catch(v){let y=s.get(u.uri);y&&y.forEach(({reject:T})=>T(v)),s.delete(u.uri)}}function c(u){let d=r.get(u.uri),m=n&&!d;return i.set(u.uri,Date.now()),o.set(u.uri,u),new Promise((v,y)=>{let T=s.get(u.uri)||[];d||(s.set(u.uri,[...T,{resolve:v,reject:y}]),r.set(u.uri,setTimeout(()=>a(u),t))),m?v(e(o.get(u.uri))):s.set(u.uri,[...T,{resolve:v,reject:y}])})}return c}function Ju(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 cy(e){return e==="$ref"}function Xu(e,t){return e?K.dirname(Ge.file(e)).toString():t}async function Zu(e,t){let n=Ge.parse(t);return K.joinPath(n,e).toString()}async function uy(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await Zu(i,n)===t)return r}function ly(e){return typeof e=="string"}function $r(e){return typeof e=="function"}function py(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 Yr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}import{bundleDocument as bR,isPlainObject as vR,makeDocumentFromString as PR,getTypes as xR,detectSpec as _R}from"@redocly/openapi-core";var dy=new Map,ts=new Map;function CR(e){return e?Array.from(e).map(([t,n])=>[t,Ju(n)]):[]}async function nl(e,t){let n=await On(),r=new yt(n.resolve),i=PR(e.getText(),e.uri),{bundle:o,rootType:s,refTypes:a}=await bR({document:i,config:n,externalRefResolver:r,types:xR(_R(i.parsed))}),c=CR(a);a&&(ts=new Map([...ts,...a])),dy.set(e.uri,{uri:e.uri,name:hr(e.uri),definition:vR(o.parsed)?o.parsed:{},rootType:s,refTypes:c,errors:t})}function RR(){return Array.from(dy).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:hr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function rl(e){return ts.has(e)?ts.get(e):null}import{createConfig as fy,lintDocument as DR,loadIgnoreConfig as TR,regexFromString as wR}from"@redocly/openapi-core";async function gy(e,t,n,r,i,o){let s=[],a=await TR(r,t),c=typeof i=="string"?await SR(i):i,u={};if(n.targets?.length){let d=e.parsed?.info,m=d?.["x-metadata"]||{},v={title:d?.title,version:d?.version,...m,...o},y=AR(n.targets,v);y?.rules&&r&&(u=await kR(e.source.absoluteRef,y.rules,n.levels,c,r,a))}for(let d of n?.levels||[]){let m=u[d.name]??await fy({...d,plugins:c},{configPath:r,ignore:a}),v=await DR({document:e,externalRefResolver:t,config:m});s.push(...v.filter(({ignored:y})=>!y).map(y=>({...y,scorecardLevel:d.name})))}return s}async function SR(e){if(!e)return[];try{let t=typeof __dirname>"u"?"":__dirname.replaceAll(/\\/g,"/"),n=e.replaceAll("__redocly_dirname",`"${t}"`);return(await import(`data:text/javascript;base64,${btoa(n)}`)).default.map(a=>a())}catch(t){return console.error("Failed to load plugins module:",t.message),console.error(`
|
|
70
|
-
Plugins code preview:`,e.substring(0,500)+"..."),[]}}async function kR(e,t,n=[],r=[],i,o){let s={};for(let a of n){let c={[a.name]:{root:e,rules:t}},u=await fy({apis:c,...a,plugins:r},{configPath:i,...o&&{ignore:o}});s[a.name]=u.forAlias(a.name)}return s}function AR(e,t){if(e){for(let n of e)if(Object.entries(n.where?.metadata||{}).every(([i,o])=>ER(i,o,t)))return n}}function ER(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 wR(t).test(n[e])}catch(r){return console.error(`Invalid regex in scorecard target: ${t}`,r),!1}}return n[e]===t}var IR=800,ol=ay(HR,IR);async function FR(e){let t=e.map(({documentPath:o})=>Ue(o).toString()),n=await On(),r=await ae.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 UR(e){try{return jR(e),!0}catch{return!1}}async function WR(e){try{let t=ns(e.getText(),e.uri),n=new yt,r=await MR({document:t,entitySchema:Ei,entityDefaultSchema:Ni,externalRefResolver:n}),i=[{uri:e.uri,diagnostics:[]}];return il(r,i),i}catch{return[{uri:e.uri,diagnostics:[]}]}}async function HR(e){let t=e.uri,n=await On();if(await mn(Oe(t)))try{let r=await Qs(Oe(t))?ns(e.getText(),t):ns(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new yt,o=await OR({config:{document:r},externalRefResolver:i,externalConfigTypes:LR(zd,n)}),s=[{uri:e.uri,diagnostics:[]}];return il(o,s),s}catch{return[{uri:e.uri,diagnostics:[]}]}else{if(gn({uri:Oe(t),textDocument:e}))return await WR(e);{let r=Ks(t),i=await FR(r||[]);i&&(e=await Je(i),t=i);let o;try{o=ns(e.getText(),Oe(t))}catch{return[{uri:e.uri,diagnostics:[]}]}if(!UR(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new yt(n.resolve),c=await ae.getRootWorkspaceFolderURI(),u=Xu(n.configPath,c),d=await uy(n.resolvedConfig.apis??{},e.uri,u),m=Date.now(),v=[],y=[];try{y=(await qR({document:o,config:n.forAlias(d),externalRefResolver:a})).filter(({ignored:S})=>!S);let
|
|
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 tt.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 tt.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,T,I){return t.call(y)==="[object Number]"&&T<=y&&y<=I}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function u(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=u;function d(y){return t.call(y)==="[object Function]"}e.func=d;function m(y){return y!==null&&typeof y=="object"}e.objectLiteral=m;function v(y,T){return Array.isArray(y)&&y.every(T)}e.typedArray=v})(f||(f={}))});var ce=R(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.ProtocolNotificationType=Ye.ProtocolNotificationType0=Ye.ProtocolRequestType=Ye.ProtocolRequestType0=Ye.RegistrationType=Ye.MessageDirection=void 0;var Qn=bn(),vf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(vf||(Ye.MessageDirection=vf={}));var hu=class{constructor(t){this.method=t}};Ye.RegistrationType=hu;var yu=class extends Qn.RequestType0{constructor(t){super(t)}};Ye.ProtocolRequestType0=yu;var bu=class extends Qn.RequestType{constructor(t){super(t,Qn.ParameterStructures.byName)}};Ye.ProtocolRequestType=bu;var vu=class extends Qn.NotificationType0{constructor(t){super(t)}};Ye.ProtocolNotificationType0=vu;var Pu=class extends Qn.NotificationType{constructor(t){super(t,Qn.ParameterStructures.byName)}};Ye.ProtocolNotificationType=Pu});var ao=R(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.objectLiteral=xe.typedArray=xe.stringArray=xe.array=xe.func=xe.error=xe.number=xe.string=xe.boolean=void 0;function $_(e){return e===!0||e===!1}xe.boolean=$_;function Pf(e){return typeof e=="string"||e instanceof String}xe.string=Pf;function Y_(e){return typeof e=="number"||e instanceof Number}xe.number=Y_;function V_(e){return e instanceof Error}xe.error=V_;function K_(e){return typeof e=="function"}xe.func=K_;function xf(e){return Array.isArray(e)}xe.array=xf;function G_(e){return xf(e)&&e.every(t=>Pf(t))}xe.stringArray=G_;function Q_(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=Q_;function J_(e){return e!==null&&typeof e=="object"}xe.objectLiteral=J_});var Rf=R(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.ImplementationRequest=void 0;var _f=ce(),Cf;(function(e){e.method="textDocument/implementation",e.messageDirection=_f.MessageDirection.clientToServer,e.type=new _f.ProtocolRequestType(e.method)})(Cf||(co.ImplementationRequest=Cf={}))});var wf=R(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.TypeDefinitionRequest=void 0;var Df=ce(),Tf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=Df.MessageDirection.clientToServer,e.type=new Df.ProtocolRequestType(e.method)})(Tf||(uo.TypeDefinitionRequest=Tf={}))});var Af=R(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.DidChangeWorkspaceFoldersNotification=Jn.WorkspaceFoldersRequest=void 0;var lo=ce(),Sf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=lo.MessageDirection.serverToClient,e.type=new lo.ProtocolRequestType0(e.method)})(Sf||(Jn.WorkspaceFoldersRequest=Sf={}));var kf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=lo.MessageDirection.clientToServer,e.type=new lo.ProtocolNotificationType(e.method)})(kf||(Jn.DidChangeWorkspaceFoldersNotification=kf={}))});var qf=R(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.ConfigurationRequest=void 0;var Ef=ce(),Nf;(function(e){e.method="workspace/configuration",e.messageDirection=Ef.MessageDirection.serverToClient,e.type=new Ef.ProtocolRequestType(e.method)})(Nf||(po.ConfigurationRequest=Nf={}))});var jf=R(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.ColorPresentationRequest=Xn.DocumentColorRequest=void 0;var fo=ce(),Of;(function(e){e.method="textDocument/documentColor",e.messageDirection=fo.MessageDirection.clientToServer,e.type=new fo.ProtocolRequestType(e.method)})(Of||(Xn.DocumentColorRequest=Of={}));var Mf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=fo.MessageDirection.clientToServer,e.type=new fo.ProtocolRequestType(e.method)})(Mf||(Xn.ColorPresentationRequest=Mf={}))});var Ff=R(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.FoldingRangeRefreshRequest=Zn.FoldingRangeRequest=void 0;var go=ce(),Lf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=go.MessageDirection.clientToServer,e.type=new go.ProtocolRequestType(e.method)})(Lf||(Zn.FoldingRangeRequest=Lf={}));var If;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=go.MessageDirection.serverToClient,e.type=new go.ProtocolRequestType0(e.method)})(If||(Zn.FoldingRangeRefreshRequest=If={}))});var Hf=R(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.DeclarationRequest=void 0;var Uf=ce(),Wf;(function(e){e.method="textDocument/declaration",e.messageDirection=Uf.MessageDirection.clientToServer,e.type=new Uf.ProtocolRequestType(e.method)})(Wf||(mo.DeclarationRequest=Wf={}))});var $f=R(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.SelectionRangeRequest=void 0;var Bf=ce(),zf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Bf.MessageDirection.clientToServer,e.type=new Bf.ProtocolRequestType(e.method)})(zf||(ho.SelectionRangeRequest=zf={}))});var Gf=R(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.WorkDoneProgressCancelNotification=Gt.WorkDoneProgressCreateRequest=Gt.WorkDoneProgress=void 0;var X_=bn(),yo=ce(),Yf;(function(e){e.type=new X_.ProgressType;function t(n){return n===e.type}e.is=t})(Yf||(Gt.WorkDoneProgress=Yf={}));var Vf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=yo.MessageDirection.serverToClient,e.type=new yo.ProtocolRequestType(e.method)})(Vf||(Gt.WorkDoneProgressCreateRequest=Vf={}));var Kf;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=yo.MessageDirection.clientToServer,e.type=new yo.ProtocolNotificationType(e.method)})(Kf||(Gt.WorkDoneProgressCancelNotification=Kf={}))});var Zf=R(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.CallHierarchyOutgoingCallsRequest=Qt.CallHierarchyIncomingCallsRequest=Qt.CallHierarchyPrepareRequest=void 0;var er=ce(),Qf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(Qf||(Qt.CallHierarchyPrepareRequest=Qf={}));var Jf;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(Jf||(Qt.CallHierarchyIncomingCallsRequest=Jf={}));var Xf;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(Xf||(Qt.CallHierarchyOutgoingCallsRequest=Xf={}))});var og=R(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.SemanticTokensRefreshRequest=Ve.SemanticTokensRangeRequest=Ve.SemanticTokensDeltaRequest=Ve.SemanticTokensRequest=Ve.SemanticTokensRegistrationType=Ve.TokenFormat=void 0;var jt=ce(),eg;(function(e){e.Relative="relative"})(eg||(Ve.TokenFormat=eg={}));var Lr;(function(e){e.method="textDocument/semanticTokens",e.type=new jt.RegistrationType(e.method)})(Lr||(Ve.SemanticTokensRegistrationType=Lr={}));var tg;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=jt.MessageDirection.clientToServer,e.type=new jt.ProtocolRequestType(e.method),e.registrationMethod=Lr.method})(tg||(Ve.SemanticTokensRequest=tg={}));var ng;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=jt.MessageDirection.clientToServer,e.type=new jt.ProtocolRequestType(e.method),e.registrationMethod=Lr.method})(ng||(Ve.SemanticTokensDeltaRequest=ng={}));var rg;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=jt.MessageDirection.clientToServer,e.type=new jt.ProtocolRequestType(e.method),e.registrationMethod=Lr.method})(rg||(Ve.SemanticTokensRangeRequest=rg={}));var ig;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=jt.MessageDirection.serverToClient,e.type=new jt.ProtocolRequestType0(e.method)})(ig||(Ve.SemanticTokensRefreshRequest=ig={}))});var cg=R(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.ShowDocumentRequest=void 0;var sg=ce(),ag;(function(e){e.method="window/showDocument",e.messageDirection=sg.MessageDirection.serverToClient,e.type=new sg.ProtocolRequestType(e.method)})(ag||(bo.ShowDocumentRequest=ag={}))});var pg=R(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.LinkedEditingRangeRequest=void 0;var ug=ce(),lg;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=ug.MessageDirection.clientToServer,e.type=new ug.ProtocolRequestType(e.method)})(lg||(vo.LinkedEditingRangeRequest=lg={}))});var vg=R(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.WillDeleteFilesRequest=Le.DidDeleteFilesNotification=Le.DidRenameFilesNotification=Le.WillRenameFilesRequest=Le.DidCreateFilesNotification=Le.WillCreateFilesRequest=Le.FileOperationPatternKind=void 0;var nt=ce(),dg;(function(e){e.file="file",e.folder="folder"})(dg||(Le.FileOperationPatternKind=dg={}));var fg;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=nt.MessageDirection.clientToServer,e.type=new nt.ProtocolRequestType(e.method)})(fg||(Le.WillCreateFilesRequest=fg={}));var gg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=nt.MessageDirection.clientToServer,e.type=new nt.ProtocolNotificationType(e.method)})(gg||(Le.DidCreateFilesNotification=gg={}));var mg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=nt.MessageDirection.clientToServer,e.type=new nt.ProtocolRequestType(e.method)})(mg||(Le.WillRenameFilesRequest=mg={}));var hg;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=nt.MessageDirection.clientToServer,e.type=new nt.ProtocolNotificationType(e.method)})(hg||(Le.DidRenameFilesNotification=hg={}));var yg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=nt.MessageDirection.clientToServer,e.type=new nt.ProtocolNotificationType(e.method)})(yg||(Le.DidDeleteFilesNotification=yg={}));var bg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=nt.MessageDirection.clientToServer,e.type=new nt.ProtocolRequestType(e.method)})(bg||(Le.WillDeleteFilesRequest=bg={}))});var Rg=R(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.MonikerRequest=Jt.MonikerKind=Jt.UniquenessLevel=void 0;var Pg=ce(),xg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(xg||(Jt.UniquenessLevel=xg={}));var _g;(function(e){e.$import="import",e.$export="export",e.local="local"})(_g||(Jt.MonikerKind=_g={}));var Cg;(function(e){e.method="textDocument/moniker",e.messageDirection=Pg.MessageDirection.clientToServer,e.type=new Pg.ProtocolRequestType(e.method)})(Cg||(Jt.MonikerRequest=Cg={}))});var Sg=R(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.TypeHierarchySubtypesRequest=Xt.TypeHierarchySupertypesRequest=Xt.TypeHierarchyPrepareRequest=void 0;var tr=ce(),Dg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Dg||(Xt.TypeHierarchyPrepareRequest=Dg={}));var Tg;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Tg||(Xt.TypeHierarchySupertypesRequest=Tg={}));var wg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(wg||(Xt.TypeHierarchySubtypesRequest=wg={}))});var Eg=R(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.InlineValueRefreshRequest=nr.InlineValueRequest=void 0;var Po=ce(),kg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=Po.MessageDirection.clientToServer,e.type=new Po.ProtocolRequestType(e.method)})(kg||(nr.InlineValueRequest=kg={}));var Ag;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=Po.MessageDirection.serverToClient,e.type=new Po.ProtocolRequestType0(e.method)})(Ag||(nr.InlineValueRefreshRequest=Ag={}))});var Mg=R(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.InlayHintRefreshRequest=Zt.InlayHintResolveRequest=Zt.InlayHintRequest=void 0;var rr=ce(),Ng;(function(e){e.method="textDocument/inlayHint",e.messageDirection=rr.MessageDirection.clientToServer,e.type=new rr.ProtocolRequestType(e.method)})(Ng||(Zt.InlayHintRequest=Ng={}));var qg;(function(e){e.method="inlayHint/resolve",e.messageDirection=rr.MessageDirection.clientToServer,e.type=new rr.ProtocolRequestType(e.method)})(qg||(Zt.InlayHintResolveRequest=qg={}));var Og;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=rr.MessageDirection.serverToClient,e.type=new rr.ProtocolRequestType0(e.method)})(Og||(Zt.InlayHintRefreshRequest=Og={}))});var Hg=R(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.DiagnosticRefreshRequest=rt.WorkspaceDiagnosticRequest=rt.DocumentDiagnosticRequest=rt.DocumentDiagnosticReportKind=rt.DiagnosticServerCancellationData=void 0;var Wg=bn(),Z_=ao(),ir=ce(),jg;(function(e){function t(n){let r=n;return r&&Z_.boolean(r.retriggerRequest)}e.is=t})(jg||(rt.DiagnosticServerCancellationData=jg={}));var Lg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Lg||(rt.DocumentDiagnosticReportKind=Lg={}));var Ig;(function(e){e.method="textDocument/diagnostic",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method),e.partialResult=new Wg.ProgressType})(Ig||(rt.DocumentDiagnosticRequest=Ig={}));var Fg;(function(e){e.method="workspace/diagnostic",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method),e.partialResult=new Wg.ProgressType})(Fg||(rt.WorkspaceDiagnosticRequest=Fg={}));var Ug;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=ir.MessageDirection.serverToClient,e.type=new ir.ProtocolRequestType0(e.method)})(Ug||(rt.DiagnosticRefreshRequest=Ug={}))});var Gg=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 Ir=(so(),ti(oo)),pt=ao(),Tt=ce(),xu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(xu||(ge.NotebookCellKind=xu={}));var _u;(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 pt.objectLiteral(o)&&Ir.uinteger.is(o.executionOrder)&&(o.success===void 0||pt.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})(_u||(ge.ExecutionSummary=_u={}));var xo;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return pt.objectLiteral(s)&&xu.is(s.kind)&&Ir.DocumentUri.is(s.document)&&(s.metadata===void 0||pt.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)&&!_u.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(pt.objectLiteral(o)&&pt.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 m=0;m<u.length;m++){let v=u[m];if(!i(o[v],s[v]))return!1}}return!0}})(xo||(ge.NotebookCell=xo={}));var Bg;(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 pt.objectLiteral(i)&&pt.string(i.uri)&&Ir.integer.is(i.version)&&pt.typedArray(i.cells,xo.is)}e.is=n})(Bg||(ge.NotebookDocument=Bg={}));var or;(function(e){e.method="notebookDocument/sync",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.RegistrationType(e.method)})(or||(ge.NotebookDocumentSyncRegistrationType=or={}));var zg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(zg||(ge.DidOpenNotebookDocumentNotification=zg={}));var $g;(function(e){function t(r){let i=r;return pt.objectLiteral(i)&&Ir.uinteger.is(i.start)&&Ir.uinteger.is(i.deleteCount)&&(i.cells===void 0||pt.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})($g||(ge.NotebookCellArrayChange=$g={}));var Yg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(Yg||(ge.DidChangeNotebookDocumentNotification=Yg={}));var Vg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(Vg||(ge.DidSaveNotebookDocumentNotification=Vg={}));var Kg;(function(e){e.method="notebookDocument/didClose",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(Kg||(ge.DidCloseNotebookDocumentNotification=Kg={}))});var Xg=R(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.InlineCompletionRequest=void 0;var Qg=ce(),Jg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Qg.MessageDirection.clientToServer,e.type=new Qg.ProtocolRequestType(e.method)})(Jg||(_o.InlineCompletionRequest=Jg={}))});var ph=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=ce(),Zg=(so(),ti(oo)),Se=ao(),eC=Rf();Object.defineProperty(l,"ImplementationRequest",{enumerable:!0,get:function(){return eC.ImplementationRequest}});var tC=wf();Object.defineProperty(l,"TypeDefinitionRequest",{enumerable:!0,get:function(){return tC.TypeDefinitionRequest}});var ah=Af();Object.defineProperty(l,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return ah.WorkspaceFoldersRequest}});Object.defineProperty(l,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return ah.DidChangeWorkspaceFoldersNotification}});var nC=qf();Object.defineProperty(l,"ConfigurationRequest",{enumerable:!0,get:function(){return nC.ConfigurationRequest}});var ch=jf();Object.defineProperty(l,"DocumentColorRequest",{enumerable:!0,get:function(){return ch.DocumentColorRequest}});Object.defineProperty(l,"ColorPresentationRequest",{enumerable:!0,get:function(){return ch.ColorPresentationRequest}});var uh=Ff();Object.defineProperty(l,"FoldingRangeRequest",{enumerable:!0,get:function(){return uh.FoldingRangeRequest}});Object.defineProperty(l,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return uh.FoldingRangeRefreshRequest}});var rC=Hf();Object.defineProperty(l,"DeclarationRequest",{enumerable:!0,get:function(){return rC.DeclarationRequest}});var iC=$f();Object.defineProperty(l,"SelectionRangeRequest",{enumerable:!0,get:function(){return iC.SelectionRangeRequest}});var wu=Gf();Object.defineProperty(l,"WorkDoneProgress",{enumerable:!0,get:function(){return wu.WorkDoneProgress}});Object.defineProperty(l,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return wu.WorkDoneProgressCreateRequest}});Object.defineProperty(l,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return wu.WorkDoneProgressCancelNotification}});var Su=Zf();Object.defineProperty(l,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Su.CallHierarchyIncomingCallsRequest}});Object.defineProperty(l,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Su.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(l,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Su.CallHierarchyPrepareRequest}});var sr=og();Object.defineProperty(l,"TokenFormat",{enumerable:!0,get:function(){return sr.TokenFormat}});Object.defineProperty(l,"SemanticTokensRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRequest}});Object.defineProperty(l,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return sr.SemanticTokensDeltaRequest}});Object.defineProperty(l,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRangeRequest}});Object.defineProperty(l,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRefreshRequest}});Object.defineProperty(l,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return sr.SemanticTokensRegistrationType}});var oC=cg();Object.defineProperty(l,"ShowDocumentRequest",{enumerable:!0,get:function(){return oC.ShowDocumentRequest}});var sC=pg();Object.defineProperty(l,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return sC.LinkedEditingRangeRequest}});var xn=vg();Object.defineProperty(l,"FileOperationPatternKind",{enumerable:!0,get:function(){return xn.FileOperationPatternKind}});Object.defineProperty(l,"DidCreateFilesNotification",{enumerable:!0,get:function(){return xn.DidCreateFilesNotification}});Object.defineProperty(l,"WillCreateFilesRequest",{enumerable:!0,get:function(){return xn.WillCreateFilesRequest}});Object.defineProperty(l,"DidRenameFilesNotification",{enumerable:!0,get:function(){return xn.DidRenameFilesNotification}});Object.defineProperty(l,"WillRenameFilesRequest",{enumerable:!0,get:function(){return xn.WillRenameFilesRequest}});Object.defineProperty(l,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return xn.DidDeleteFilesNotification}});Object.defineProperty(l,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return xn.WillDeleteFilesRequest}});var ku=Rg();Object.defineProperty(l,"UniquenessLevel",{enumerable:!0,get:function(){return ku.UniquenessLevel}});Object.defineProperty(l,"MonikerKind",{enumerable:!0,get:function(){return ku.MonikerKind}});Object.defineProperty(l,"MonikerRequest",{enumerable:!0,get:function(){return ku.MonikerRequest}});var Au=Sg();Object.defineProperty(l,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Au.TypeHierarchyPrepareRequest}});Object.defineProperty(l,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Au.TypeHierarchySubtypesRequest}});Object.defineProperty(l,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Au.TypeHierarchySupertypesRequest}});var lh=Eg();Object.defineProperty(l,"InlineValueRequest",{enumerable:!0,get:function(){return lh.InlineValueRequest}});Object.defineProperty(l,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return lh.InlineValueRefreshRequest}});var Eu=Mg();Object.defineProperty(l,"InlayHintRequest",{enumerable:!0,get:function(){return Eu.InlayHintRequest}});Object.defineProperty(l,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Eu.InlayHintResolveRequest}});Object.defineProperty(l,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Eu.InlayHintRefreshRequest}});var Fr=Hg();Object.defineProperty(l,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Fr.DiagnosticServerCancellationData}});Object.defineProperty(l,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Fr.DocumentDiagnosticReportKind}});Object.defineProperty(l,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Fr.DocumentDiagnosticRequest}});Object.defineProperty(l,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Fr.WorkspaceDiagnosticRequest}});Object.defineProperty(l,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Fr.DiagnosticRefreshRequest}});var wt=Gg();Object.defineProperty(l,"NotebookCellKind",{enumerable:!0,get:function(){return wt.NotebookCellKind}});Object.defineProperty(l,"ExecutionSummary",{enumerable:!0,get:function(){return wt.ExecutionSummary}});Object.defineProperty(l,"NotebookCell",{enumerable:!0,get:function(){return wt.NotebookCell}});Object.defineProperty(l,"NotebookDocument",{enumerable:!0,get:function(){return wt.NotebookDocument}});Object.defineProperty(l,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return wt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(l,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidOpenNotebookDocumentNotification}});Object.defineProperty(l,"NotebookCellArrayChange",{enumerable:!0,get:function(){return wt.NotebookCellArrayChange}});Object.defineProperty(l,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidChangeNotebookDocumentNotification}});Object.defineProperty(l,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidSaveNotebookDocumentNotification}});Object.defineProperty(l,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidCloseNotebookDocumentNotification}});var aC=Xg();Object.defineProperty(l,"InlineCompletionRequest",{enumerable:!0,get:function(){return aC.InlineCompletionRequest}});var Cu;(function(e){function t(n){let r=n;return Se.string(r)||Se.string(r.language)||Se.string(r.scheme)||Se.string(r.pattern)}e.is=t})(Cu||(l.TextDocumentFilter=Cu={}));var Ru;(function(e){function t(n){let r=n;return Se.objectLiteral(r)&&(Se.string(r.notebookType)||Se.string(r.scheme)||Se.string(r.pattern))}e.is=t})(Ru||(l.NotebookDocumentFilter=Ru={}));var Du;(function(e){function t(n){let r=n;return Se.objectLiteral(r)&&(Se.string(r.notebook)||Ru.is(r.notebook))&&(r.language===void 0||Se.string(r.language))}e.is=t})(Du||(l.NotebookCellTextDocumentFilter=Du={}));var Tu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Se.string(r)&&!Cu.is(r)&&!Du.is(r))return!1;return!0}e.is=t})(Tu||(l.DocumentSelector=Tu={}));var em;(function(e){e.method="client/registerCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(em||(l.RegistrationRequest=em={}));var tm;(function(e){e.method="client/unregisterCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(tm||(l.UnregistrationRequest=tm={}));var nm;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(nm||(l.ResourceOperationKind=nm={}));var rm;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(rm||(l.FailureHandlingKind=rm={}));var im;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(im||(l.PositionEncodingKind=im={}));var om;(function(e){function t(n){let r=n;return r&&Se.string(r.id)&&r.id.length>0}e.hasId=t})(om||(l.StaticRegistrationOptions=om={}));var sm;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||Tu.is(r.documentSelector))}e.is=t})(sm||(l.TextDocumentRegistrationOptions=sm={}));var am;(function(e){function t(r){let i=r;return Se.objectLiteral(i)&&(i.workDoneProgress===void 0||Se.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&Se.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(am||(l.WorkDoneProgressOptions=am={}));var cm;(function(e){e.method="initialize",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(cm||(l.InitializeRequest=cm={}));var um;(function(e){e.unknownProtocolVersion=1})(um||(l.InitializeErrorCodes=um={}));var lm;(function(e){e.method="initialized",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(lm||(l.InitializedNotification=lm={}));var pm;(function(e){e.method="shutdown",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType0(e.method)})(pm||(l.ShutdownRequest=pm={}));var dm;(function(e){e.method="exit",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType0(e.method)})(dm||(l.ExitNotification=dm={}));var fm;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(fm||(l.DidChangeConfigurationNotification=fm={}));var gm;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(gm||(l.MessageType=gm={}));var mm;(function(e){e.method="window/showMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(mm||(l.ShowMessageNotification=mm={}));var hm;(function(e){e.method="window/showMessageRequest",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(hm||(l.ShowMessageRequest=hm={}));var ym;(function(e){e.method="window/logMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(ym||(l.LogMessageNotification=ym={}));var bm;(function(e){e.method="telemetry/event",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(bm||(l.TelemetryEventNotification=bm={}));var vm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(vm||(l.TextDocumentSyncKind=vm={}));var Pm;(function(e){e.method="textDocument/didOpen",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Pm||(l.DidOpenTextDocumentNotification=Pm={}));var xm;(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})(xm||(l.TextDocumentContentChangeEvent=xm={}));var _m;(function(e){e.method="textDocument/didChange",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(_m||(l.DidChangeTextDocumentNotification=_m={}));var Cm;(function(e){e.method="textDocument/didClose",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Cm||(l.DidCloseTextDocumentNotification=Cm={}));var Rm;(function(e){e.method="textDocument/didSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Rm||(l.DidSaveTextDocumentNotification=Rm={}));var Dm;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(Dm||(l.TextDocumentSaveReason=Dm={}));var Tm;(function(e){e.method="textDocument/willSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Tm||(l.WillSaveTextDocumentNotification=Tm={}));var wm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(wm||(l.WillSaveTextDocumentWaitUntilRequest=wm={}));var Sm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Sm||(l.DidChangeWatchedFilesNotification=Sm={}));var km;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(km||(l.FileChangeType=km={}));var Am;(function(e){function t(n){let r=n;return Se.objectLiteral(r)&&(Zg.URI.is(r.baseUri)||Zg.WorkspaceFolder.is(r.baseUri))&&Se.string(r.pattern)}e.is=t})(Am||(l.RelativePattern=Am={}));var Em;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Em||(l.WatchKind=Em={}));var Nm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Nm||(l.PublishDiagnosticsNotification=Nm={}));var qm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(qm||(l.CompletionTriggerKind=qm={}));var Om;(function(e){e.method="textDocument/completion",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Om||(l.CompletionRequest=Om={}));var Mm;(function(e){e.method="completionItem/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Mm||(l.CompletionResolveRequest=Mm={}));var jm;(function(e){e.method="textDocument/hover",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(jm||(l.HoverRequest=jm={}));var Lm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Lm||(l.SignatureHelpTriggerKind=Lm={}));var Im;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Im||(l.SignatureHelpRequest=Im={}));var Fm;(function(e){e.method="textDocument/definition",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Fm||(l.DefinitionRequest=Fm={}));var Um;(function(e){e.method="textDocument/references",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Um||(l.ReferencesRequest=Um={}));var Wm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Wm||(l.DocumentHighlightRequest=Wm={}));var Hm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Hm||(l.DocumentSymbolRequest=Hm={}));var Bm;(function(e){e.method="textDocument/codeAction",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Bm||(l.CodeActionRequest=Bm={}));var zm;(function(e){e.method="codeAction/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(zm||(l.CodeActionResolveRequest=zm={}));var $m;(function(e){e.method="workspace/symbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})($m||(l.WorkspaceSymbolRequest=$m={}));var Ym;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Ym||(l.WorkspaceSymbolResolveRequest=Ym={}));var Vm;(function(e){e.method="textDocument/codeLens",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Vm||(l.CodeLensRequest=Vm={}));var Km;(function(e){e.method="codeLens/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Km||(l.CodeLensResolveRequest=Km={}));var Gm;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType0(e.method)})(Gm||(l.CodeLensRefreshRequest=Gm={}));var Qm;(function(e){e.method="textDocument/documentLink",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Qm||(l.DocumentLinkRequest=Qm={}));var Jm;(function(e){e.method="documentLink/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Jm||(l.DocumentLinkResolveRequest=Jm={}));var Xm;(function(e){e.method="textDocument/formatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Xm||(l.DocumentFormattingRequest=Xm={}));var Zm;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Zm||(l.DocumentRangeFormattingRequest=Zm={}));var eh;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(eh||(l.DocumentRangesFormattingRequest=eh={}));var th;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(th||(l.DocumentOnTypeFormattingRequest=th={}));var nh;(function(e){e.Identifier=1})(nh||(l.PrepareSupportDefaultBehavior=nh={}));var rh;(function(e){e.method="textDocument/rename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(rh||(l.RenameRequest=rh={}));var ih;(function(e){e.method="textDocument/prepareRename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ih||(l.PrepareRenameRequest=ih={}));var oh;(function(e){e.method="workspace/executeCommand",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(oh||(l.ExecuteCommandRequest=oh={}));var sh;(function(e){e.method="workspace/applyEdit",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType("workspace/applyEdit")})(sh||(l.ApplyWorkspaceEditRequest=sh={}))});var fh=R(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.createProtocolConnection=void 0;var dh=bn();function cC(e,t,n,r){return dh.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,dh.createMessageConnection)(e,t,n,r)}Co.createProtocolConnection=cC});var mh=R(Ke=>{"use strict";var uC=Ke&&Ke.__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=Ke&&Ke.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&uC(t,e,n)};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.LSPErrorCodes=Ke.createProtocolConnection=void 0;Ro(bn(),Ke);Ro((so(),ti(oo)),Ke);Ro(ce(),Ke);Ro(ph(),Ke);var lC=fh();Object.defineProperty(Ke,"createProtocolConnection",{enumerable:!0,get:function(){return lC.createProtocolConnection}});var gh;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(gh||(Ke.LSPErrorCodes=gh={}))});var ve=R(St=>{"use strict";var pC=St&&St.__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]})),hh=St&&St.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&pC(t,e,n)};Object.defineProperty(St,"__esModule",{value:!0});St.createProtocolConnection=void 0;var dC=fc();hh(fc(),St);hh(mh(),St);function fC(e,t,n,r){return(0,dC.createMessageConnection)(e,t,n,r)}St.createProtocolConnection=fC});var qu=R(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.SemanticTokensBuilder=en.SemanticTokensDiff=en.SemanticTokensFeature=void 0;var Do=ve(),gC=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)))}}}};en.SemanticTokensFeature=gC;var To=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}]:[]}};en.SemanticTokensDiff=To;var Nu=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 To(this._prevData,this._data).computeDiff()}:this.build()}};en.SemanticTokensBuilder=Nu});var yh=R(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.InlineCompletionFeature=void 0;var mC=ve(),hC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(mC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};wo.InlineCompletionFeature=hC});var Mu=R(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.TextDocuments=void 0;var _n=ve(),Ou=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new _n.Emitter,this._onDidOpen=new _n.Emitter,this._onDidClose=new _n.Emitter,this._onDidSave=new _n.Emitter,this._onWillSave=new _n.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=_n.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}))})),_n.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};So.TextDocuments=Ou});var Lu=R(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.NotebookDocuments=ar.NotebookSyncFeature=void 0;var it=ve(),bh=Mu(),yC=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(it.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(it.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(it.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(it.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};ar.NotebookSyncFeature=yC;var ko=class e{onDidOpenTextDocument(t){return this.openHandler=t,it.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,it.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,it.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 ju=class{constructor(t){t instanceof bh.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new bh.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new it.Emitter,this._onDidChange=new it.Emitter,this._onDidSave=new it.Emitter,this._onDidClose=new it.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=[],m=[],v=[];if(c.cells!==void 0){let U=c.cells;if(U.structure!==void 0){let h=U.structure.array;if(o.cells.splice(h.start,h.deleteCount,...h.cells!==void 0?h.cells:[]),U.structure.didOpen!==void 0)for(let g of U.structure.didOpen)n.openTextDocument({textDocument:g}),u.push(g.uri);if(U.structure.didClose)for(let g of U.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(U.data!==void 0){let h=new Map(U.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let S=h.get(o.cells[g].document);if(S!==void 0){let Y=o.cells.splice(g,1,S);if(m.push({old:Y[0],new:S}),h.delete(S.document),h.size===0)break}}}if(U.textContent!==void 0)for(let h of U.textContent)n.changeTextDocument({textDocument:h.document,contentChanges:h.changes}),v.push(h.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let T=[];for(let U of u)T.push(this.getNotebookCell(U));let I=[];for(let U of d)I.push(this.getNotebookCell(U));let G=[];for(let U of v)G.push(this.getNotebookCell(U));(T.length>0||I.length>0||m.length>0||G.length>0)&&(y.cells={added:T,removed:I,changed:{data:m,textContent:G}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),r.push(t.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(t.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),it.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};ar.NotebookDocuments=ju});var Iu=R(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.thenable=_e.typedArray=_e.stringArray=_e.array=_e.func=_e.error=_e.number=_e.string=_e.boolean=void 0;function bC(e){return e===!0||e===!1}_e.boolean=bC;function vh(e){return typeof e=="string"||e instanceof String}_e.string=vh;function vC(e){return typeof e=="number"||e instanceof Number}_e.number=vC;function PC(e){return e instanceof Error}_e.error=PC;function Ph(e){return typeof e=="function"}_e.func=Ph;function xh(e){return Array.isArray(e)}_e.array=xh;function xC(e){return xh(e)&&e.every(t=>vh(t))}_e.stringArray=xC;function _C(e,t){return Array.isArray(e)&&e.every(t)}_e.typedArray=_C;function CC(e){return e&&Ph(e.then)}_e.thenable=CC});var Fu=R(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.generateUuid=ot.parse=ot.isUUID=ot.v4=ot.empty=void 0;var Ur=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Wr=class e extends Ur{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(""))}};Wr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Wr._timeHighBits=["8","9","a","b"];ot.empty=new Ur("00000000-0000-0000-0000-000000000000");function _h(){return new Wr}ot.v4=_h;var RC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function Ch(e){return RC.test(e)}ot.isUUID=Ch;function DC(e){if(!Ch(e))throw new Error("invalid uuid");return new Ur(e)}ot.parse=DC;function TC(){return _h().asHex()}ot.generateUuid=TC});var Rh=R(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.attachPartialResult=nn.ProgressFeature=nn.attachWorkDone=void 0;var tn=ve(),wC=Fu(),Cn=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(tn.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(tn.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(tn.WorkDoneProgress.type,this._token,{kind:"end"})}};Cn.Instances=new Map;var Ao=class extends Cn{constructor(t,n){super(t,n),this._source=new tn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Hr=class{constructor(){}begin(){}report(){}done(){}},Eo=class extends Hr{constructor(){super(),this._source=new tn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function SC(e,t){if(t===void 0||t.workDoneToken===void 0)return new Hr;let n=t.workDoneToken;return delete t.workDoneToken,new Cn(e,n)}nn.attachWorkDone=SC;var kC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(tn.WorkDoneProgressCancelNotification.type,n=>{let r=Cn.Instances.get(n.token);(r instanceof Ao||r instanceof Eo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Hr:new Cn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,wC.generateUuid)();return this.connection.sendRequest(tn.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Ao(this.connection,t))}else return Promise.resolve(new Eo)}};nn.ProgressFeature=kC;var Uu;(function(e){e.type=new tn.ProgressType})(Uu||(Uu={}));var Wu=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(Uu.type,this._token,t)}};function AC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new Wu(e,n)}nn.attachPartialResult=AC});var Dh=R(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.ConfigurationFeature=void 0;var EC=ve(),NC=Iu(),qC=e=>class extends e{getConfiguration(t){return t?NC.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(EC.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};No.ConfigurationFeature=qC});var Th=R(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.WorkspaceFoldersFeature=void 0;var qo=ve(),OC=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=OC});var wh=R(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.CallHierarchyFeature=void 0;var Hu=ve(),MC=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(Hu.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=Hu.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=Hu.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Mo.CallHierarchyFeature=MC});var Sh=R(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.ShowDocumentFeature=void 0;var jC=ve(),LC=e=>class extends e{showDocument(t){return this.connection.sendRequest(jC.ShowDocumentRequest.type,t)}};jo.ShowDocumentFeature=LC});var kh=R(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.FileOperationsFeature=void 0;var cr=ve(),IC=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(cr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(cr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(cr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(cr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(cr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(cr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};Lo.FileOperationsFeature=IC});var Ah=R(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.LinkedEditingRangeFeature=void 0;var FC=ve(),UC=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(FC.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};Io.LinkedEditingRangeFeature=UC});var Eh=R(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.TypeHierarchyFeature=void 0;var Bu=ve(),WC=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(Bu.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=Bu.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=Bu.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Fo.TypeHierarchyFeature=WC});var qh=R(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.InlineValueFeature=void 0;var Nh=ve(),HC=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(Nh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(Nh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Uo.InlineValueFeature=HC});var Mh=R(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.FoldingRangeFeature=void 0;var Oh=ve(),BC=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(Oh.FoldingRangeRefreshRequest.type),on:t=>{let n=Oh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Wo.FoldingRangeFeature=BC});var jh=R(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.InlayHintFeature=void 0;var zu=ve(),zC=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(zu.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(zu.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(zu.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};Ho.InlayHintFeature=zC});var Lh=R(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.DiagnosticFeature=void 0;var Br=ve(),$C=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Br.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Br.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Br.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Br.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Br.WorkspaceDiagnosticRequest.partialResult,n)))}}};Bo.DiagnosticFeature=$C});var Ih=R(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.MonikerFeature=void 0;var YC=ve(),VC=e=>class extends e{get moniker(){return{on:t=>{let n=YC.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};zo.MonikerFeature=VC});var Zh=R(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.createConnection=J.combineFeatures=J.combineNotebooksFeatures=J.combineLanguagesFeatures=J.combineWorkspaceFeatures=J.combineWindowFeatures=J.combineClientFeatures=J.combineTracerFeatures=J.combineTelemetryFeatures=J.combineConsoleFeatures=J._NotebooksImpl=J._LanguagesImpl=J.BulkUnregistration=J.BulkRegistration=J.ErrorMessageTracker=void 0;var E=ve(),st=Iu(),Yu=Fu(),B=Rh(),KC=Dh(),GC=Th(),QC=wh(),JC=qu(),XC=Sh(),ZC=kh(),eR=Ah(),tR=Eh(),nR=qh(),rR=Mh(),iR=jh(),oR=Lh(),sR=Lu(),aR=Ih();function $u(e){if(e!==null)return e}var Vu=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)})}};J.ErrorMessageTracker=Vu;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")})}},Ku=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($u)}showWarningMessage(t,...n){let r={type:E.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then($u)}showInformationMessage(t,...n){let r={type:E.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then($u)}},Fh=(0,XC.ShowDocumentFeature)((0,B.ProgressFeature)(Ku)),Uh;(function(e){function t(){return new Yo}e.create=t})(Uh||(J.BulkRegistration=Uh={}));var Yo=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=st.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=Yu.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Wh;(function(e){function t(){return new zr(void 0,[])}e.create=t})(Wh||(J.BulkUnregistration=Wh={}));var zr=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=st.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 zr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=st.string(n)?n:n.method,o=Yu.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=st.string(t)?t:t.method,i=Yu.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 zr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},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){}applyEdit(t){function n(i){return i&&!!i.edit}let r=n(t)?t:{edit:t};return this.connection.sendRequest(E.ApplyWorkspaceEditRequest.type,r)}},Hh=(0,ZC.FileOperationsFeature)((0,GC.WorkspaceFoldersFeature)((0,KC.ConfigurationFeature)(Gu))),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)}};J._LanguagesImpl=Qo;var Bh=(0,rR.FoldingRangeFeature)((0,aR.MonikerFeature)((0,oR.DiagnosticFeature)((0,iR.InlayHintFeature)((0,nR.InlineValueFeature)((0,tR.TypeHierarchyFeature)((0,eR.LinkedEditingRangeFeature)((0,JC.SemanticTokensFeature)((0,QC.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)}};J._NotebooksImpl=Jo;var zh=(0,sR.NotebookSyncFeature)(Jo);function $h(e,t){return function(n){return t(e(n))}}J.combineConsoleFeatures=$h;function Yh(e,t){return function(n){return t(e(n))}}J.combineTelemetryFeatures=Yh;function Vh(e,t){return function(n){return t(e(n))}}J.combineTracerFeatures=Vh;function Kh(e,t){return function(n){return t(e(n))}}J.combineClientFeatures=Kh;function Gh(e,t){return function(n){return t(e(n))}}J.combineWindowFeatures=Gh;function Qh(e,t){return function(n){return t(e(n))}}J.combineWorkspaceFeatures=Qh;function Jh(e,t){return function(n){return t(e(n))}}J.combineLanguagesFeatures=Jh;function Xh(e,t){return function(n){return t(e(n))}}J.combineNotebooksFeatures=Xh;function cR(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,$h),tracer:n(e.tracer,t.tracer,Vh),telemetry:n(e.telemetry,t.telemetry,Yh),client:n(e.client,t.client,Kh),window:n(e.window,t.window,Gh),workspace:n(e.workspace,t.workspace,Qh),languages:n(e.languages,t.languages,Jh),notebooks:n(e.notebooks,t.notebooks,Xh)}}J.combineFeatures=cR;function uR(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(Fh)):new Fh,u=n&&n.workspace?new(n.workspace(Hh)):new Hh,d=n&&n.languages?new(n.languages(Bh)):new Bh,m=n&&n.notebooks?new(n.notebooks(zh)):new zh,v=[r,o,s,a,c,u,d,m];function y(h){return h instanceof Promise?h:st.thenable(h)?new Promise((g,S)=>{h.then(Y=>g(Y),Y=>S(Y))}):Promise.resolve(h)}let T,I,G,U={listen:()=>i.listen(),sendRequest:(h,...g)=>i.sendRequest(st.string(h)?h:h.method,...g),onRequest:(h,g)=>i.onRequest(h,g),sendNotification:(h,g)=>{let S=st.string(h)?h:h.method;return i.sendNotification(S,g)},onNotification:(h,g)=>i.onNotification(h,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:h=>(I=h,{dispose:()=>{I=void 0}}),onInitialized:h=>i.onNotification(E.InitializedNotification.type,h),onShutdown:h=>(T=h,{dispose:()=>{T=void 0}}),onExit:h=>(G=h,{dispose:()=>{G=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 m},onDidChangeConfiguration:h=>i.onNotification(E.DidChangeConfigurationNotification.type,h),onDidChangeWatchedFiles:h=>i.onNotification(E.DidChangeWatchedFilesNotification.type,h),__textDocumentSync:void 0,onDidOpenTextDocument:h=>i.onNotification(E.DidOpenTextDocumentNotification.type,h),onDidChangeTextDocument:h=>i.onNotification(E.DidChangeTextDocumentNotification.type,h),onDidCloseTextDocument:h=>i.onNotification(E.DidCloseTextDocumentNotification.type,h),onWillSaveTextDocument:h=>i.onNotification(E.WillSaveTextDocumentNotification.type,h),onWillSaveTextDocumentWaitUntil:h=>i.onRequest(E.WillSaveTextDocumentWaitUntilRequest.type,h),onDidSaveTextDocument:h=>i.onNotification(E.DidSaveTextDocumentNotification.type,h),sendDiagnostics:h=>i.sendNotification(E.PublishDiagnosticsNotification.type,h),onHover:h=>i.onRequest(E.HoverRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:h=>i.onRequest(E.CompletionRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:h=>i.onRequest(E.CompletionResolveRequest.type,h),onSignatureHelp:h=>i.onRequest(E.SignatureHelpRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:h=>i.onRequest(E.DeclarationRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:h=>i.onRequest(E.DefinitionRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:h=>i.onRequest(E.TypeDefinitionRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:h=>i.onRequest(E.ImplementationRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:h=>i.onRequest(E.ReferencesRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:h=>i.onRequest(E.DocumentHighlightRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:h=>i.onRequest(E.DocumentSymbolRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:h=>i.onRequest(E.WorkspaceSymbolRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:h=>i.onRequest(E.WorkspaceSymbolResolveRequest.type,h),onCodeAction:h=>i.onRequest(E.CodeActionRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:h=>i.onRequest(E.CodeActionResolveRequest.type,(g,S)=>h(g,S)),onCodeLens:h=>i.onRequest(E.CodeLensRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:h=>i.onRequest(E.CodeLensResolveRequest.type,(g,S)=>h(g,S)),onDocumentFormatting:h=>i.onRequest(E.DocumentFormattingRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:h=>i.onRequest(E.DocumentRangeFormattingRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:h=>i.onRequest(E.DocumentOnTypeFormattingRequest.type,(g,S)=>h(g,S)),onRenameRequest:h=>i.onRequest(E.RenameRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:h=>i.onRequest(E.PrepareRenameRequest.type,(g,S)=>h(g,S)),onDocumentLinks:h=>i.onRequest(E.DocumentLinkRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:h=>i.onRequest(E.DocumentLinkResolveRequest.type,(g,S)=>h(g,S)),onDocumentColor:h=>i.onRequest(E.DocumentColorRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:h=>i.onRequest(E.ColorPresentationRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:h=>i.onRequest(E.FoldingRangeRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:h=>i.onRequest(E.SelectionRangeRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:h=>i.onRequest(E.ExecuteCommandRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let h of v)h.attach(U);return i.onRequest(E.InitializeRequest.type,h=>{t.initialize(h),st.string(h.trace)&&(o.trace=E.Trace.fromString(h.trace));for(let g of v)g.initialize(h.capabilities);if(I){let g=I(h,new E.CancellationTokenSource().token,(0,B.attachWorkDone)(i,h),void 0);return y(g).then(S=>{if(S instanceof E.ResponseError)return S;let Y=S;Y||(Y={capabilities:{}});let Z=Y.capabilities;Z||(Z={},Y.capabilities=Z),Z.textDocumentSync===void 0||Z.textDocumentSync===null?Z.textDocumentSync=st.number(U.__textDocumentSync)?U.__textDocumentSync:E.TextDocumentSyncKind.None:!st.number(Z.textDocumentSync)&&!st.number(Z.textDocumentSync.change)&&(Z.textDocumentSync.change=st.number(U.__textDocumentSync)?U.__textDocumentSync:E.TextDocumentSyncKind.None);for(let at of v)at.fillServerCapabilities(Z);return Y})}else{let g={capabilities:{textDocumentSync:E.TextDocumentSyncKind.None}};for(let S of v)S.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(E.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,T)return T(new E.CancellationTokenSource().token)}),i.onNotification(E.ExitNotification.type,()=>{try{G&&G()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(E.SetTraceNotification.type,h=>{o.trace=E.Trace.fromString(h.value)}),U}J.createConnection=uR});var Qu=R(Ie=>{"use strict";var lR=Ie&&Ie.__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]})),ty=Ie&&Ie.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&lR(t,e,n)};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.ProposedFeatures=Ie.NotebookDocuments=Ie.TextDocuments=Ie.SemanticTokensBuilder=void 0;var pR=qu();Object.defineProperty(Ie,"SemanticTokensBuilder",{enumerable:!0,get:function(){return pR.SemanticTokensBuilder}});var dR=yh();ty(ve(),Ie);var fR=Mu();Object.defineProperty(Ie,"TextDocuments",{enumerable:!0,get:function(){return fR.TextDocuments}});var gR=Lu();Object.defineProperty(Ie,"NotebookDocuments",{enumerable:!0,get:function(){return gR.NotebookDocuments}});ty(Zh(),Ie);var ey;(function(e){e.all={__brand:"features",languages:dR.InlineCompletionFeature}})(ey||(Ie.ProposedFeatures=ey={}))});var ry=R((RS,ny)=>{"use strict";ny.exports=ve()});var Zo=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]})),oy=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.createConnection=void 0;var Xo=Qu();oy(ry(),kt);oy(Qu(),kt);var iy=!1,hR={initialize:e=>{},get shutdownReceived(){return iy},set shutdownReceived(e){iy=e},exit:e=>{}};function yR(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,hR,i)}kt.createConnection=yR});var rn=R((TS,sy)=>{"use strict";sy.exports=Zo()});var gl=R((_k,_y)=>{"use strict";function At(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function xy(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 mD(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 pr={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),At(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=xy(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(At(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=xy(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return At(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];At(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":pr.normalize(t)},relative:function(t,n){if(At(t),At(n),t===n||(t=pr.resolve(t),n=pr.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,m=0;m<=u;++m){if(m===u){if(c>u){if(n.charCodeAt(s+m)===47)return n.slice(s+m+1);if(m===0)return n.slice(s+m)}else o>u&&(t.charCodeAt(r+m)===47?d=m:m===0&&(d=0));break}var v=t.charCodeAt(r+m),y=n.charCodeAt(s+m);if(v!==y)break;v===47&&(d=m)}var T="";for(m=r+d+1;m<=i;++m)(m===i||t.charCodeAt(m)===47)&&(T.length===0?T+="..":T+="/..");return T.length>0?T+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(At(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');At(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){At(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 mD("/",t)},parse:function(t){At(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,m=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:m!==1&&(m=1):s!==-1&&(m=-1)}return s===-1||c===-1||m===0||m===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};pr.posix=pr;_y.exports=pr});import{createConfig as Xp,loadConfig as BP,loadIgnoreConfig as zP,DEFAULT_CONFIG as $P,IGNORE_FILE as YP}from"@redocly/openapi-core";var vl;(()=>{"use strict";var e={975:k=>{function b(x){if(typeof x!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(x))}function O(x,C){for(var D,q="",j=0,N=-1,$=0,V=0;V<=x.length;++V){if(V<x.length)D=x.charCodeAt(V);else{if(D===47)break;D=47}if(D===47){if(!(N===V-1||$===1))if(N!==V-1&&$===2){if(q.length<2||j!==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="",j=0):j=(q=q.slice(0,De)).length-1-q.lastIndexOf("/"),N=V,$=0;continue}}else if(q.length===2||q.length===1){q="",j=0,N=V,$=0;continue}}C&&(q.length>0?q+="/..":q="..",j=2)}else q.length>0?q+="/"+x.slice(N+1,V):q=x.slice(N+1,V),j=V-N-1;N=V,$=0}else D===46&&$!==-1?++$:$=-1}return q}var M={resolve:function(){for(var x,C="",D=!1,q=arguments.length-1;q>=-1&&!D;q--){var j;q>=0?j=arguments[q]:(x===void 0&&(x=process.cwd()),j=x),b(j),j.length!==0&&(C=j+"/"+C,D=j.charCodeAt(0)===47)}return C=O(C,!D),D?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(x){if(b(x),x.length===0)return".";var C=x.charCodeAt(0)===47,D=x.charCodeAt(x.length-1)===47;return(x=O(x,!C)).length!==0||C||(x="."),x.length>0&&D&&(x+="/"),C?"/"+x:x},isAbsolute:function(x){return b(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 D=arguments[C];b(D),D.length>0&&(x===void 0?x=D:x+="/"+D)}return x===void 0?".":M.normalize(x)},relative:function(x,C){if(b(x),b(C),x===C||(x=M.resolve(x))===(C=M.resolve(C)))return"";for(var D=1;D<x.length&&x.charCodeAt(D)===47;++D);for(var q=x.length,j=q-D,N=1;N<C.length&&C.charCodeAt(N)===47;++N);for(var $=C.length-N,V=j<$?j:$,De=-1,ne=0;ne<=V;++ne){if(ne===V){if($>V){if(C.charCodeAt(N+ne)===47)return C.slice(N+ne+1);if(ne===0)return C.slice(N+ne)}else j>V&&(x.charCodeAt(D+ne)===47?De=ne:ne===0&&(De=0));break}var ct=x.charCodeAt(D+ne);if(ct!==C.charCodeAt(N+ne))break;ct===47&&(De=ne)}var cn="";for(ne=D+De+1;ne<=q;++ne)ne!==q&&x.charCodeAt(ne)!==47||(cn.length===0?cn+="..":cn+="/..");return cn.length>0?cn+C.slice(N+De):(N+=De,C.charCodeAt(N)===47&&++N,C.slice(N))},_makeLong:function(x){return x},dirname:function(x){if(b(x),x.length===0)return".";for(var C=x.charCodeAt(0),D=C===47,q=-1,j=!0,N=x.length-1;N>=1;--N)if((C=x.charCodeAt(N))===47){if(!j){q=N;break}}else j=!1;return q===-1?D?"/":".":D&&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');b(x);var D,q=0,j=-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(D=x.length-1;D>=0;--D){var De=x.charCodeAt(D);if(De===47){if(!N){q=D+1;break}}else V===-1&&(N=!1,V=D+1),$>=0&&(De===C.charCodeAt($)?--$==-1&&(j=D):($=-1,j=V))}return q===j?j=V:j===-1&&(j=x.length),x.slice(q,j)}for(D=x.length-1;D>=0;--D)if(x.charCodeAt(D)===47){if(!N){q=D+1;break}}else j===-1&&(N=!1,j=D+1);return j===-1?"":x.slice(q,j)},extname:function(x){b(x);for(var C=-1,D=0,q=-1,j=!0,N=0,$=x.length-1;$>=0;--$){var V=x.charCodeAt($);if(V!==47)q===-1&&(j=!1,q=$+1),V===46?C===-1?C=$:N!==1&&(N=1):C!==-1&&(N=-1);else if(!j){D=$+1;break}}return C===-1||q===-1||N===0||N===1&&C===q-1&&C===D+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,D){var q=D.dir||D.root,j=D.base||(D.name||"")+(D.ext||"");return q?q===D.root?q+j:q+"/"+j:j})(0,x)},parse:function(x){b(x);var C={root:"",dir:"",base:"",ext:"",name:""};if(x.length===0)return C;var D,q=x.charCodeAt(0),j=q===47;j?(C.root="/",D=1):D=0;for(var N=-1,$=0,V=-1,De=!0,ne=x.length-1,ct=0;ne>=D;--ne)if((q=x.charCodeAt(ne))!==47)V===-1&&(De=!1,V=ne+1),q===46?N===-1?N=ne:ct!==1&&(ct=1):N!==-1&&(ct=-1);else if(!De){$=ne+1;break}return N===-1||V===-1||ct===0||ct===1&&N===V-1&&N===$+1?V!==-1&&(C.base=C.name=$===0&&j?x.slice(1,V):x.slice($,V)):($===0&&j?(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):j&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};M.posix=M,k.exports=M}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var O=t[k]={exports:{}};return e[k](O,O.exports,n),O.exports}n.d=(k,b)=>{for(var O in b)n.o(b,O)&&!n.o(k,O)&&Object.defineProperty(k,O,{enumerable:!0,get:b[O]})},n.o=(k,b)=>Object.prototype.hasOwnProperty.call(k,b),n.r=k=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>v,Utils:()=>Dn}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function c(k,b){if(!k.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${k.authority}", path: "${k.path}", query: "${k.query}", fragment: "${k.fragment}"}`);if(k.scheme&&!o.test(k.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(k.path){if(k.authority){if(!s.test(k.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(k.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let u="",d="/",m=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class v{static isUri(b){return b instanceof v||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function"}scheme;authority;path;query;fragment;constructor(b,O,M,x,C,D=!1){typeof b=="object"?(this.scheme=b.scheme||u,this.authority=b.authority||u,this.path=b.path||u,this.query=b.query||u,this.fragment=b.fragment||u):(this.scheme=(function(q,j){return q||j?q:"file"})(b,D),this.authority=O||u,this.path=(function(q,j){switch(q){case"https":case"http":case"file":j?j[0]!==d&&(j=d+j):j=d}return j})(this.scheme,M||u),this.query=x||u,this.fragment=C||u,c(this,D))}get fsPath(){return h(this,!1)}with(b){if(!b)return this;let{scheme:O,authority:M,path:x,query:C,fragment:D}=b;return O===void 0?O=this.scheme:O===null&&(O=u),M===void 0?M=this.authority:M===null&&(M=u),x===void 0?x=this.path:x===null&&(x=u),C===void 0?C=this.query:C===null&&(C=u),D===void 0?D=this.fragment:D===null&&(D=u),O===this.scheme&&M===this.authority&&x===this.path&&C===this.query&&D===this.fragment?this:new T(O,M,x,C,D)}static parse(b,O=!1){let M=m.exec(b);return M?new T(M[2]||u,Z(M[4]||u),Z(M[5]||u),Z(M[7]||u),Z(M[9]||u),O):new T(u,u,u,u,u)}static file(b){let O=u;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let M=b.indexOf(d,2);M===-1?(O=b.substring(2),b=d):(O=b.substring(2,M),b=b.substring(M)||d)}return new T("file",O,b,u,u)}static from(b){let O=new T(b.scheme,b.authority,b.path,b.query,b.fragment);return c(O,!0),O}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let O=new T(b);return O._formatted=b.external,O._fsPath=b._sep===y?b.fsPath:null,O}}return b}}let y=i?1:void 0;class T extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=h(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let I={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function G(k,b,O){let M,x=-1;for(let C=0;C<k.length;C++){let D=k.charCodeAt(C);if(D>=97&&D<=122||D>=65&&D<=90||D>=48&&D<=57||D===45||D===46||D===95||D===126||b&&D===47||O&&D===91||O&&D===93||O&&D===58)x!==-1&&(M+=encodeURIComponent(k.substring(x,C)),x=-1),M!==void 0&&(M+=k.charAt(C));else{M===void 0&&(M=k.substr(0,C));let q=I[D];q!==void 0?(x!==-1&&(M+=encodeURIComponent(k.substring(x,C)),x=-1),M+=q):x===-1&&(x=C)}}return x!==-1&&(M+=encodeURIComponent(k.substring(x))),M!==void 0?M:k}function U(k){let b;for(let O=0;O<k.length;O++){let M=k.charCodeAt(O);M===35||M===63?(b===void 0&&(b=k.substr(0,O)),b+=I[M]):b!==void 0&&(b+=k[O])}return b!==void 0?b:k}function h(k,b){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?b?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(O=O.replace(/\//g,"\\")),O}function g(k,b){let O=b?U:G,M="",{scheme:x,authority:C,path:D,query:q,fragment:j}=k;if(x&&(M+=x,M+=":"),(C||x==="file")&&(M+=d,M+=d),C){let N=C.indexOf("@");if(N!==-1){let $=C.substr(0,N);C=C.substr(N+1),N=$.lastIndexOf(":"),N===-1?M+=O($,!1,!1):(M+=O($.substr(0,N),!1,!1),M+=":",M+=O($.substr(N+1),!1,!0)),M+="@"}C=C.toLowerCase(),N=C.lastIndexOf(":"),N===-1?M+=O(C,!1,!0):(M+=O(C.substr(0,N),!1,!0),M+=C.substr(N))}if(D){if(D.length>=3&&D.charCodeAt(0)===47&&D.charCodeAt(2)===58){let N=D.charCodeAt(1);N>=65&&N<=90&&(D=`/${String.fromCharCode(N+32)}:${D.substr(3)}`)}else if(D.length>=2&&D.charCodeAt(1)===58){let N=D.charCodeAt(0);N>=65&&N<=90&&(D=`${String.fromCharCode(N+32)}:${D.substr(2)}`)}M+=O(D,!0,!1)}return q&&(M+="?",M+=O(q,!1,!1)),j&&(M+="#",M+=b?j:G(j,!1,!1)),M}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 Z(k){return k.match(Y)?k.replace(Y,(b=>S(b))):k}var at=n(975);let It=at.posix||at,an="/";var Dn;(function(k){k.joinPath=function(b,...O){return b.with({path:It.join(b.path,...O)})},k.resolvePath=function(b,...O){let M=b.path,x=!1;M[0]!==an&&(M=an+M,x=!0);let C=It.resolve(M,...O);return x&&C[0]===an&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===an)return b;let O=It.dirname(b.path);return O.length===1&&O.charCodeAt(0)===46&&(O=""),b.with({path:O})},k.basename=function(b){return It.basename(b.path)},k.extname=function(b){return It.extname(b.path)}})(Dn||(Dn={})),vl=r})();var{URI:Ge,Utils:K}=vl;import{isBrowser as ib}from"@redocly/openapi-core";import{CONFIG_FILE_NAME as rb}from"@redocly/openapi-core";var bs={languageId:"yaml",filePattern:/\.ya?ml$/i},vs={languageId:"json",filePattern:/\.json$/i},ys=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[bs,vs];this.registerConfigFinder(async t=>{if(this._fs)try{let n=K.resolvePath(K.dirname(Ue(t)),rb);return await this._fs.exists(n)?Oe(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}},ae=new ys;function gr(e,t){let n=r=>K.resolvePath(Ue(Et(r))).toString();return n(e)===n(t)}function Ue(e){return Ge.parse(e)}function Et(e){return e.startsWith("file://")?e:Ge.file(e).toString()}function Oe(e){let t=Ge.parse(e).fsPath;return ib&&t.startsWith("/")?t.slice(1):t}function mr(e){let t=["https","http"],{scheme:n}=Ge.parse(e);return t.includes(n)}function hr(e){return K.basename(Ue(e))}async function Pl(e,t="/"){let n=K.resolvePath(Ue(t));for(;e.path!=="/";)try{(await ae.fs.stat(K.resolvePath(n,e.path))).isDirectory()||(e=K.dirname(e));break}catch{e=K.dirname(e)}return e}import{BaseResolver as WP,Source as Jp,readFileFromUrl as HP,isAbsoluteUrl as Gs}from"@redocly/openapi-core";var ni=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=Cl(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=xl(r.text,!1,o);if(c-a===d.length)for(let v=0,y=d.length;v<y;v++)u[v+a+1]=d[v];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 m=r.text.length-(s-o);if(m!==0)for(let v=a+1+d.length,y=u.length;v<y;v++)u[v]=u[v]+m}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=xl(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&&_l(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}},ri;(function(e){function t(i,o,s,a){return new ni(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof ni)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=Ps(o.map(ob),(d,m)=>{let v=d.range.start.line-m.range.start.line;return v===0?d.range.start.character-m.range.start.character:v}),c=0,u=[];for(let d of a){let m=i.offsetAt(d.range.start);if(m<c)throw new Error("Overlapping edit");m>c&&u.push(s.substring(c,m)),d.newText.length&&u.push(d.newText),c=i.offsetAt(d.range.end)}return u.push(s.substr(c)),u.join("")}e.applyEdits=r})(ri||(ri={}));function Ps(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);Ps(r,t),Ps(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 xl(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);_l(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function _l(e){return e===13||e===10}function Cl(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 ob(e){let t=Cl(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var mi=qe(qn(),1),Gp=new Map;function Qp(e,t){return Gp.set(e,t)}function Ks(e){let t=[];for(let[n,r]of Gp.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Je(e){let t=ae.documents.get(e);if(t)return t;let n=await ae.fs.readFile(Ue(e),"utf-8");return ri.create(e,"yaml",1,n)}function xr(e){return vs.filePattern.test(e)}function hi(e){return bs.filePattern.test(e)}function gn({uri:e,ast:t,textDocument:n}){if(!(hi(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=mi.safeLoad(i,{filename:e})}if(t?.kind===mi.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 yt=class extends WP{resolveExternalRef(t,n){return Gs(n)?n:t&&Gs(t)?new URL(n,t).href:t?K.resolvePath(K.dirname(Ue(Et(t))),n).toString():n}async loadExternalRef(t){if(mr(t)){let{body:i,mimeType:o}=await HP(t,{...this.config.http,customFetch:fetch});return new Jp(t,i,o)}let n=Et(t),r=Gs(t)?Oe(t):t;return new Jp(r,(await Je(n)).getText())}};var Bt;async function yi(e,t){let n=!1;try{let r=new yt,i=e?await ae.findConfig(e):void 0;if(i===void 0){let o=await zP(i,r);Bt=await Xp($P,{externalRefResolver:r,ignore:o})}else Bt=await BP({configPath:i,externalRefResolver:r})}catch(r){n=!0;let i=r instanceof Error?r.message:String(r);t?.createEventHandleLoadConfigError?.(i),Bt=await Xp({})}return{config:Bt,loadFailed:n}}async function On(e){return Bt||(await yi(e)).config}async function mn(e){return await Qs(e)?!0:!!Bt?.resolvedRefMap&&[...Bt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>gr(hr(Et(e)),n))}async function Qs(e){let t=await ae.findConfig(e);return t?gr(e,t):!1}function VP(e){return e.endsWith(YP)}import{clearPluginsCache as XP}from"@redocly/openapi-core";var Zp=new Set([".js",".mjs",".cjs",".ts"]),KP=/(?:\brequire\(|\b(?:import|export)\b[^'"]*?\bfrom\s+)['"](\.[^'"]+)['"]/g,GP=/\/\*[\s\S]*?\*\/|\/\/[^\n]*/g;async function QP(e){let t=e.resolvedConfig?.plugins;if(!e.configPath||!t?.length)return[];let{fs:n}=ae,r=K.dirname(Ge.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 m of Zp)if(d.includes(u+m))return K.joinPath(c,u+m)}async function s(a){if(i.has(a.toString())||!await n.exists(a)||(i.add(a.toString()),!Zp.has(K.extname(a))))return;let c=(await n.readFile(a,"utf-8")).replace(GP,""),u=K.dirname(a);for(let[,d]of c.matchAll(KP)){let m=await o(K.resolvePath(u,d));m&&await s(m)}}for(let a of t)await s(K.resolvePath(r,a.replace(/\\/g,"/")));return[...i].map(a=>Ge.parse(a).fsPath)}function JP(e,t){return t.some(n=>gr(n,e))}var fd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},_r={type:"object",properties:fd,additionalProperties:!1},ZP={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Cr={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:{...fd,like:_r,dislike:_r,satisfied:_r,neutral:_r,dissatisfied:_r},additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:ZP},additionalProperties:!1}},additionalProperties:!1},ex={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},ta={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},_i={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Cr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ta,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:ex,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Mn={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},tx={type:"object",properties:{name:{type:"string"},items:Mn,queries:Mn,mutations:Mn,subscriptions:Mn,types:Mn,directives:Mn},required:["name"],additionalProperties:!1},nx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:tx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},rx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},ix={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},ox={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:rx,license:ix},additionalProperties:!1},Ci={type:"object",properties:{menu:{type:"object",properties:{...nx.properties},additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:ta,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Cr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},info:ox},additionalProperties:!1},sx={type:"object",properties:{downloadUrls:ta,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Cr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},ax={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},cx={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"}}},ed={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},ux={type:"object",properties:{beforeInfo:{type:"array",items:ed},end:{type:"array",items:ed}}},hn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},bi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},lx={type:"object",properties:ki(hn.properties,["light","dark"])},px={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"}}},dx={type:"object",properties:{error:bi,info:bi,redirect:bi,success:bi}},fx={type:"object",properties:jn(hn.properties,["dark"])},gx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},mx={type:"object",properties:{accent:hn,border:lx,error:hn,http:px,primary:hn,responses:dx,secondary:fx,success:hn,text:gx,tonalOffset:{type:"number"},warning:hn}},vi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},hx={type:"object",properties:{small:vi,medium:vi,large:vi,xlarge:vi}},Ct={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},yx={type:"object",properties:{...jn(Ct.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:hx}},td={type:"object",properties:ki(Ct.properties,["fontSize","lineHeight"])},bx={type:"object",properties:{medium:td,small:td}},vx={type:"object",properties:{...jn(Ct.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:bx}},Px={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},xx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},nd={type:"object",properties:{fullWidth:{type:"boolean"}}},_x={type:"object",properties:{buttons:yx,httpBadges:vx,layoutControls:Px,panels:xx,tryItButton:nd,tryItSendButton:nd}},Ri={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Cx={type:"object",properties:{maxWidth:Ri}},Rx={type:"object",properties:{maxWidth:Ri,middlePanelMaxWidth:Ri}},Dx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Cx,"three-panel":Rx}},rd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Tx={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:rd,defaultDetailsWidth:{type:"string"},examples:rd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},gd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},wx={type:"object",properties:ki(gd.properties,["textTransform"])},Sx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},kx={type:"object",properties:{...jn(Ct.properties,["fontWeight","lineHeight"]),activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:gd,level1items:wx,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Sx,textColor:{type:"string"},width:{type:"string"}}},Pi={type:"object",properties:{...Ct.properties,color:{type:"string"},transform:{type:"string"}}},Ax={type:"object",properties:{...Ct.properties,backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},Ex={type:"object",properties:jn(Ct.properties,["fontSize"])},Nx={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},qx={type:"object",properties:{code:Ax,fieldName:Ct,...ki(Ct.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Pi,heading2:Pi,heading3:Pi,headings:Ex,lineHeight:{type:"string"},links:Nx,optimizeSpeed:{type:"boolean"},rightPanelHeading:Pi,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},Ox={type:"object",properties:{color:{type:"string"},...jn(Ct.properties,["fontWeight"])}},Mx={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:Ox}},jx={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},Lx={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},id={type:"object",properties:{custom:{type:"string"}}},Ix={type:"object",properties:{DownloadButton:id,NextSectionButton:id}},Fx={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},Ux={type:"object",properties:{borderRadius:{type:"string"}}},Wx={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Hx={type:"object",properties:{breakpoints:Ri,codeBlock:Mx,colors:mx,components:_x,layout:Dx,logo:jx,fab:Lx,overrides:Ix,rightPanel:Fx,schema:Tx,shape:Ux,sidebar:kx,spacing:Wx,typography:qx,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},Bx={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:ax}},required:["languages"]},md={type:"object",properties:{theme:Hx,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:Bx,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:cx,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:ux,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 jn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var bt={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 zx={rules:bt,oas2Rules:bt,oas3_0Rules:bt,oas3_1Rules:bt,oas3_2Rules:bt,async2Rules:bt,async3Rules:bt,arazzo1Rules:bt,overlay1Rules:bt,openrpc1Rules:bt};var vt={nodeTypeName:void 0,type:"object",additionalProperties:!0},$x={preprocessors:vt,oas2Preprocessors:vt,oas3_0Preprocessors:vt,oas3_1Preprocessors:vt,oas3_2Preprocessors:vt,async2Preprocessors:vt,async3Preprocessors:vt,arazzo1Preprocessors:vt,overlay1Preprocessors:vt,openrpc1Preprocessors:vt},Pt={nodeTypeName:void 0,type:"object",additionalProperties:!0};var Yx={decorators:Pt,oas2Decorators:Pt,oas3_0Decorators:Pt,oas3_1Decorators:Pt,oas3_2Decorators:Pt,async2Decorators:Pt,async3Decorators:Pt,arazzo1Decorators:Pt,overlay1Decorators:Pt,openrpc1Decorators:Pt},Vx={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"},Ai={...zx,...Yx,...$x,extends:Vx},hd=e=>e,_t=hd({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),we={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},od={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},Js={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},na={type:"array",items:{...Js,properties:{...Js.properties,items:{type:"array",items:Js}}}},Kx={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Gx={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Qx={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}},Jx={type:"object",properties:{facets:Qx,...we.properties},additionalProperties:!1},Xx={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},yd={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},bd={type:"object",properties:{items:na,...we.properties},additionalProperties:!1},vd={type:"object",additionalProperties:Kx},Pd={type:"object",properties:{items:na,copyrightText:{type:"string"},logo:we,...we.properties},additionalProperties:!1},xd={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"},...we.properties},additionalProperties:!1},_d={type:"object",properties:{head:{type:"array",items:od},body:{type:"array",items:od}},additionalProperties:!1},Cd={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}},Rd={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:Gx,filters:Jx,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:Xx},...we.properties},additionalProperties:!1},Dd={type:"object",properties:{hide:{type:"boolean"},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean",default:!1},inputType:{type:"string",enum:["button","icon"],default:"button"},inputIcon:{type:"string",enum:["chat","sparkles","redocly"],default:"sparkles"}},additionalProperties:!1}},additionalProperties:!1},Td={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]},...we.properties},additionalProperties:!1},ra={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},Zx={type:"object",properties:{...we.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]},default:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}},additionalProperties:!1},wd={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...we.properties},additionalProperties:!1,default:{}},previousButton:{type:"object",properties:{text:{type:"string"},...we.properties},additionalProperties:!1,default:{}},actions:Zx},additionalProperties:!1},Sd={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:{...we.properties},additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...we.properties},additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:{...we.properties},additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:{...we.properties},additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},kd={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:{format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"},...we.properties},additionalProperties:!1,default:{}},toc:{type:"object",properties:{header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1},...we.properties},additionalProperties:!1,default:{}},editPage:{type:"object",properties:{baseUrl:{type:"string"},...we.properties},additionalProperties:!1,default:{}},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1,default:{}},Di={..._i,properties:{..._i.properties,...md.properties}},KT={..._i,properties:{..._i.properties,...md.properties}},e0={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},t0={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"]},n0={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},r0={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},i0={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"]},o0={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},s0={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},Ad={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"]},a0={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:Ad}},additionalProperties:!1,required:["trackingId"]},Ed={type:"object",properties:{adobe:e0,amplitude:t0,fullstory:n0,heap:r0,rudderstack:i0,segment:o0,gtm:s0,ga:a0}},Nd={type:"object",properties:{items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"},...we.properties},additionalProperties:!1},qd={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Od={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},c0={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},u0={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:c0},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:na,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Ti={type:"object",patternProperties:{".*":u0}},wi={nodeTypeName:_t.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",default:!1},teamMetadataProperty:{nodeTypeName:_t.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:_t.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:_t.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...Ai},additionalProperties:!1}},targets:{nodeTypeName:_t.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:_t.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:_t.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:_t.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},l0={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},p0={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},d0={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Ot={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:p0},excludes:{type:"array",items:l0},filters:{type:"array",items:d0},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},f0={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},g0={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:f0},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},m0={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:g0,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},h0={type:"object",additionalProperties:m0},Md={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:h0,catalogs:{type:"object",properties:{all:Ot,services:Ot,domains:Ot,teams:Ot,users:Ot,apiDescriptions:Ot,dataSchemas:Ot,apiOperations:Ot},additionalProperties:Ot}},additionalProperties:!1},sd={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"]},Xs={type:"object",properties:{field:{type:"string"},operator:sd,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:sd,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},y0={type:"object",properties:{operator:ia,conditions:{type:"array",items:Xs}},required:["operator","conditions"],additionalProperties:!1},ad={type:"array",items:{oneOf:[Xs,{type:"object",properties:{operator:ia,conditions:{type:"array",items:{oneOf:[Xs,y0]}}},required:["operator","conditions"],additionalProperties:!1}]}},jd={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{}},additionalProperties:!1},b0={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:jd},required:["subject","assertions"],additionalProperties:!1}},v0={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:jd,where:b0,weight:{type:"number",default:1}},required:["subject","assertions"],additionalProperties:!1},P0={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number",default:1}},additionalProperties:!0},v0]}},x0={type:"object",properties:{name:{type:"string"},extends:Ai.extends,rules:P0},required:["name"],additionalProperties:!1},cd={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},_0={oneOf:[cd,{type:"array",items:cd}]},C0={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[ad,{type:"object",properties:{operator:ia,conditions:ad},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:x0,minItems:1},trigger:_0},required:["name","key","entities","levels"],additionalProperties:!1},Ld={type:"array",items:C0},xt={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:yd,navbar:bd,products:vd,footer:Pd,sidebar:xd,scripts:_d,links:Cd,feedback:Cr,search:Rd,aiAssistant:Dd,colorMode:Td,palette:ra,navigation:wd,codeSnippet:Sd,markdown:kd,openapi:Di,asyncapi:sx,graphql:Ci,analytics:Ed,userMenu:Nd,versionPicker:qd,breadcrumbs:Od,catalog:Ti,entitiesCatalog:Md,catalogClassic:Ti,scorecard:wi,scorecardClassic:wi,scorecards:Ld},additionalProperties:!0},R0="https://redocly.com/sso/teams",D0=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(D0||{}),T0=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(T0||{});var w0=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(w0||{});function Zs(e,t,n){return Object.fromEntries(Object.entries(e).map(([r,i])=>{if(!(r===t&&n!=="properties"))return typeof i!="object"||!i?[r,i]:Array.isArray(i)?[r,i.map(o=>typeof o=="object"?Zs(o,t,r):o)]:[r,Zs(i,t,r)]}).filter(Boolean))}var S0={type:"object",additionalProperties:{type:"string"}},k0={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},xi={type:"string",enum:["error","warn","off"]},A0={type:"object",additionalProperties:!1,properties:{schemaCheck:xi,statusCodeCheck:xi,contentTypeCheck:xi,successCriteriaCheck:xi}},E0={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},N0={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},q0={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},O0={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[E0,N0]},inputs:S0,servers:k0,severity:A0,slo:q0},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},M0={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",default:!1},configurationUrl:{type:"string",minLength:1},configuration:M0,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},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",default:R0},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},I0={oneOf:[j0,L0],discriminator:{propertyName:"type"}},F0={type:"object",additionalProperties:I0},Id={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},Fd={type:"boolean"},Ud={type:"string",pattern:"^https?://.*"},Wd={type:"string",pattern:"^https?://.*"},U0={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1,nodeTypeName:_t.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},W0={type:"object",additionalProperties:U0,default:{},nodeTypeName:_t.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"},H0={type:"string",enum:["info","success","warning","error"],default:"info"},te={type:"object",additionalProperties:{type:"string"}},B0={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean",default:!1},target:{type:"string"},color:H0,rbac:te,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},z0={type:"array",items:B0,default:[]},Hd={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:te,openapi:Di,graphql:Ci,theme:{type:"object",properties:{openapi:Di,graphql:Ci},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...Ai},required:["root"]},$0={type:"object",additionalProperties:!0},Y0={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},ud={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},ld={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:ud},default:{llmstxt:ud.default},additionalProperties:!1},V0={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},K0={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},Bd={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},additionalProperties:!1},content:{type:"object",properties:{"**":te},additionalProperties:te},entitiesCatalog:K0},additionalProperties:te},G0={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},Q0={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},J0={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[G0,Q0]}},additionalProperties:!1,required:["type","apiBaseUrl"]},X0={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},Z0={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},ea={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[X0,Z0],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},e_={...ea,properties:{...ea.properties,type:{type:"string",const:"APIGEE_EDGE"}}},t_={type:"object",oneOf:[ea,e_,J0],discriminator:{propertyName:"type"}},n_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:t_}}},pd={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},r_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},i_={type:"object",properties:{hide:{type:"boolean",default:!1},docs:{type:"object",properties:{hide:{type:"boolean",default:!1},name:{type:"string",default:"Docs MCP server"},ignore:{type:"array",items:{type:"string"},default:[]}},additionalProperties:!1}},additionalProperties:!1,default:{hide:!1,docs:{hide:!1,name:"MCP server",ignore:[]}}},o_={type:"object",properties:{requiresLogin:Fd,logoutReturnUrl:Ud,residency:Wd,sso:Id,rbac:Bd},additionalProperties:!1},Si={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:W0,seo:ld,rbac:Bd,apiFunctions:V0,requiresLogin:Fd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:r_}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:Hd},...Ai,ssoDirect:F0,sso:Id,residency:Wd,logoutReturnUrl:Ud,access:o_,developerOnboarding:n_,removeAttribution:{type:"boolean"},i18n:pd,l10n:pd,metadata:$0,metadataGlobs:Y0,ignore:{type:"array",items:{type:"string"}},theme:xt,reunite:O0,logo:yd,navbar:bd,products:vd,footer:Pd,sidebar:xd,scripts:_d,links:Cd,feedback:Cr,search:Rd,aiAssistant:Dd,colorMode:Td,palette:ra,navigation:wd,codeSnippet:Sd,markdown:kd,openapi:Di,graphql:Ci,analytics:Ed,userMenu:Nd,versionPicker:qd,breadcrumbs:Od,catalog:Ti,entitiesCatalog:Md,catalogClassic:Ti,scorecard:wi,scorecardClassic:wi,scorecards:Ld,mcp:i_,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:z0},default:{redirects:{},seo:ld.default},additionalProperties:!0},s_={...Zs(Si,"default"),additionalProperties:!1},zd={$id:"root-redocly-config",...Si,properties:{plugins:{type:"array",items:{type:"string"}},...Si.properties,env:{type:"object",additionalProperties:s_}},default:{},additionalProperties:!1},dd={type:"object",properties:{logo:xt.properties.logo,navbar:xt.properties.navbar,footer:xt.properties.footer,sidebar:xt.properties.sidebar,search:xt.properties.search,codeSnippet:xt.properties.codeSnippet,breadcrumbs:xt.properties.breadcrumbs,openapi:xt.properties.openapi,feedback:xt.properties.feedback,palette:ra,mockServer:Si.properties.mockServer,analytics:{type:"object",properties:{ga:Ad}}},additionalProperties:!0,default:{}},GT={$id:"product-config-override",type:"object",properties:{...dd.properties,apis:{type:"object",additionalProperties:Hd},theme:dd},additionalProperties:!1},a_=["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"],Pe=hd({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"}),c_={type:"object",nodeTypeName:Pe.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},u_={type:"object",nodeTypeName:Pe.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},l_={type:"object",nodeTypeName:Pe.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},p_={type:"object",nodeTypeName:Pe.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},d_={type:"object",properties:{},nodeTypeName:Pe.EntityMetadata,additionalProperties:!0},f_={type:"object",nodeTypeName:Pe.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},g_={type:"object",nodeTypeName:Pe.EntitySlackContact,properties:{channels:{type:"array",items:f_}},required:["channels"],additionalProperties:!1},m_={type:"object",nodeTypeName:Pe.EntityContact,properties:{slack:g_},additionalProperties:!1},h_={type:"object",nodeTypeName:Pe.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},y_={type:"object",nodeTypeName:Pe.EntityRelation,properties:{type:{type:"string",enum:a_},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},zt={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:m_,links:{type:"array",nodeTypeName:Pe.EntityLinkList,items:h_},relations:{type:"array",nodeTypeName:Pe.EntityRelationList,items:y_},metadata:d_},Ei={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...zt,type:{const:"user"},metadata:c_},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Pe.UserEntity},{type:"object",nodeTypeName:Pe.ApiOperationEntity,properties:{...zt,type:{const:"api-operation"},metadata:l_},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.DataSchemaEntity,properties:{...zt,type:{const:"data-schema"},metadata:p_},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.ApiDescriptionEntity,properties:{...zt,type:{const:"api-description"},metadata:u_},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.ServiceEntity,properties:{...zt,type:{const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.DomainEntity,properties:{...zt,type:{const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.TeamEntity,properties:{...zt,type:{const:"team"}},required:["key","title","type"],additionalProperties:!1}]},Ni={type:"object",nodeTypeName:Pe.Entity,properties:{...zt},required:["key","title","type"],additionalProperties:!1};var We=qe(rn(),1);import{getLineColLocation as NR,lintDocument as qR,makeDocumentFromString as ns,lintConfig as OR,lintEntityFile as MR,detectSpec as jR,createConfigTypes as LR}from"@redocly/openapi-core";var es=qe(qn(),1);function ay(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),m=d?Date.now()-d:0;try{if(m<t&&m>=0)r.set(u.uri,setTimeout(()=>a(u),t-m));else if(r.delete(u.uri),i.delete(u.uri),!n){let v=s.get(u.uri),y=e(o.get(u.uri));v&&v.forEach(({resolve:T})=>T(y)),s.delete(u.uri)}}catch(v){let y=s.get(u.uri);y&&y.forEach(({reject:T})=>T(v)),s.delete(u.uri)}}function c(u){let d=r.get(u.uri),m=n&&!d;return i.set(u.uri,Date.now()),o.set(u.uri,u),new Promise((v,y)=>{let T=s.get(u.uri)||[];d||(s.set(u.uri,[...T,{resolve:v,reject:y}]),r.set(u.uri,setTimeout(()=>a(u),t))),m?v(e(o.get(u.uri))):s.set(u.uri,[...T,{resolve:v,reject:y}])})}return c}function Ju(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 cy(e){return e==="$ref"}function Xu(e,t){return e?K.dirname(Ge.file(e)).toString():t}async function Zu(e,t){let n=Ge.parse(t);return K.joinPath(n,e).toString()}async function uy(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await Zu(i,n)===t)return r}function ly(e){return typeof e=="string"}function $r(e){return typeof e=="function"}function py(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 Yr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}import{bundleDocument as bR,isPlainObject as vR,makeDocumentFromString as PR,getTypes as xR,detectSpec as _R}from"@redocly/openapi-core";var dy=new Map,ts=new Map;function CR(e){return e?Array.from(e).map(([t,n])=>[t,Ju(n)]):[]}async function nl(e,t){let n=await On(),r=new yt(n.resolve),i=PR(e.getText(),e.uri),{bundle:o,rootType:s,refTypes:a}=await bR({document:i,config:n,externalRefResolver:r,types:xR(_R(i.parsed))}),c=CR(a);a&&(ts=new Map([...ts,...a])),dy.set(e.uri,{uri:e.uri,name:hr(e.uri),definition:vR(o.parsed)?o.parsed:{},rootType:s,refTypes:c,errors:t})}function RR(){return Array.from(dy).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:hr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function rl(e){return ts.has(e)?ts.get(e):null}import{createConfig as fy,lintDocument as DR,loadIgnoreConfig as TR,regexFromString as wR}from"@redocly/openapi-core";async function gy(e,t,n,r,i,o){let s=[],a=await TR(r,t),c=typeof i=="string"?await SR(i):i,u={};if(n.targets?.length){let d=e.parsed?.info,m=d?.["x-metadata"]||{},v={title:d?.title,version:d?.version,...m,...o},y=AR(n.targets,v);y?.rules&&r&&(u=await kR(e.source.absoluteRef,y.rules,n.levels,c,r,a))}for(let d of n?.levels||[]){let m=u[d.name]??await fy({...d,plugins:c},{configPath:r,ignore:a}),v=await DR({document:e,externalRefResolver:t,config:m});s.push(...v.filter(({ignored:y})=>!y).map(y=>({...y,scorecardLevel:d.name})))}return s}async function SR(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 kR(e,t,n=[],r=[],i,o){let s={};for(let a of n){let c={[a.name]:{root:e,rules:t}},u=await fy({apis:c,...a,plugins:r},{configPath:i,...o&&{ignore:o}});s[a.name]=u.forAlias(a.name)}return s}function AR(e,t){if(e){for(let n of e)if(Object.entries(n.where?.metadata||{}).every(([i,o])=>ER(i,o,t)))return n}}function ER(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 wR(t).test(n[e])}catch(r){return console.error(`Invalid regex in scorecard target: ${t}`,r),!1}}return n[e]===t}var IR=800,ol=ay(HR,IR);async function FR(e){let t=e.map(({documentPath:o})=>Ue(o).toString()),n=await On(),r=await ae.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 UR(e){try{return jR(e),!0}catch{return!1}}async function WR(e){try{let t=ns(e.getText(),e.uri),n=new yt,r=await MR({document:t,entitySchema:Ei,entityDefaultSchema:Ni,externalRefResolver:n}),i=[{uri:e.uri,diagnostics:[]}];return il(r,i),i}catch{return[{uri:e.uri,diagnostics:[]}]}}async function HR(e){let t=e.uri,n=await On();if(await mn(Oe(t)))try{let r=await Qs(Oe(t))?ns(e.getText(),t):ns(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new yt,o=await OR({config:{document:r},externalRefResolver:i,externalConfigTypes:LR(zd,n)}),s=[{uri:e.uri,diagnostics:[]}];return il(o,s),s}catch{return[{uri:e.uri,diagnostics:[]}]}else{if(gn({uri:Oe(t),textDocument:e}))return await WR(e);{let r=Ks(t),i=await FR(r||[]);i&&(e=await Je(i),t=i);let o;try{o=ns(e.getText(),Oe(t))}catch{return[{uri:e.uri,diagnostics:[]}]}if(!UR(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new yt(n.resolve),c=await ae.getRootWorkspaceFolderURI(),u=Xu(n.configPath,c),d=await uy(n.resolvedConfig.apis??{},e.uri,u),m=Date.now(),v=[],y=[];try{y=(await qR({document:o,config:n.forAlias(d),externalRefResolver:a})).filter(({ignored:S})=>!S);let U=ae.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecardClassic||n.resolvedConfig.scorecard,h=d?n.resolvedConfig.apis?.[d]?.metadata:void 0,g=U&&ae.scorecardStatus==="enabled"?await gy(o,a,U,n.configPath,ae.remoteScorecardAndPlugins?.plugins,h):[];v=[...y,...g]}catch(U){let h=U instanceof Error?U.message:String(U);v.push({ruleId:"struct",suggest:[],severity:"error",message:`Error linting document: ${h}`,location:[{start:{line:1,col:1},end:{line:1,col:1},source:o.source}]})}let T=YR(y);nl(e,T);let I=Date.now()-m;s=[...new Set([e.uri,...[...a.getFiles()].map(U=>Ue(U).toString())])].map(U=>({uri:U,diagnostics:[]})),Qp(t,{dependencyPaths:a.getFiles(),durationMS:I}),il(v,s)}catch(a){BR(e.uri,a,s)}return s}}}function Vr(){return ae.documents.all().map(ol)}function BR(e,t,n){let r=n||[{uri:e,diagnostics:[]}];if(t.line&&t.col&&t.message){let i=t.source?.absoluteRef?Et(t.source.absoluteRef):e,o=t.line-1,s=t.col-1,a=We.Position.create(o,s),c=We.Diagnostic.create(We.Range.create(a,a),t.message,We.DiagnosticSeverity.Error);my(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function my(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 zR(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(`
|