123456789101112131415161718192021222324252627282930313233343536 |
- /*!-----------------------------------------------------------------------------
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Version: 0.31.1(337587859b1c171314b40503171188b6cea6a32a)
- * Released under the MIT license
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
- *-----------------------------------------------------------------------------*/
- define("vs/language/json/jsonWorker",[],()=>{
- var moduleExports=(()=>{var _t=Object.defineProperty;var Br=t=>_t(t,"__esModule",{value:!0});var _r=(t,r)=>{Br(t);for(var i in r)_t(t,i,{get:r[i],enumerable:!0})};var Vn={};_r(Vn,{JSONWorker:()=>$t,create:()=>Mn});"use strict";function Ce(t,r){r===void 0&&(r=!1);var i=t.length,e=0,n="",a=0,o=16,s=0,f=0,c=0,u=0,l=0;function h(v,N){for(var P=0,M=0;P<v||!N;){var T=t.charCodeAt(e);if(T>=48&&T<=57)M=M*16+T-48;else if(T>=65&&T<=70)M=M*16+T-65+10;else if(T>=97&&T<=102)M=M*16+T-97+10;else break;e++,P++}return P<v&&(M=-1),M}function g(v){e=v,n="",a=0,o=16,l=0}function p(){var v=e;if(t.charCodeAt(e)===48)e++;else for(e++;e<t.length&&Oe(t.charCodeAt(e));)e++;if(e<t.length&&t.charCodeAt(e)===46)if(e++,e<t.length&&Oe(t.charCodeAt(e)))for(e++;e<t.length&&Oe(t.charCodeAt(e));)e++;else return l=3,t.substring(v,e);var N=e;if(e<t.length&&(t.charCodeAt(e)===69||t.charCodeAt(e)===101))if(e++,(e<t.length&&t.charCodeAt(e)===43||t.charCodeAt(e)===45)&&e++,e<t.length&&Oe(t.charCodeAt(e))){for(e++;e<t.length&&Oe(t.charCodeAt(e));)e++;N=e}else l=3;return t.substring(v,N)}function m(){for(var v="",N=e;;){if(e>=i){v+=t.substring(N,e),l=2;break}var P=t.charCodeAt(e);if(P===34){v+=t.substring(N,e),e++;break}if(P===92){if(v+=t.substring(N,e),e++,e>=i){l=2;break}var M=t.charCodeAt(e++);switch(M){case 34:v+='"';break;case 92:v+="\\";break;case 47:v+="/";break;case 98:v+="\b";break;case 102:v+="\f";break;case 110:v+=`
- `;break;case 114:v+="\r";break;case 116:v+=" ";break;case 117:var T=h(4,!0);T>=0?v+=String.fromCharCode(T):l=4;break;default:l=5}N=e;continue}if(P>=0&&P<=31)if(Me(P)){v+=t.substring(N,e),l=2;break}else l=6;e++}return v}function d(){if(n="",l=0,a=e,f=s,u=c,e>=i)return a=i,o=17;var v=t.charCodeAt(e);if(st(v)){do e++,n+=String.fromCharCode(v),v=t.charCodeAt(e);while(st(v));return o=15}if(Me(v))return e++,n+=String.fromCharCode(v),v===13&&t.charCodeAt(e)===10&&(e++,n+=`
- `),s++,c=e,o=14;switch(v){case 123:return e++,o=1;case 125:return e++,o=2;case 91:return e++,o=3;case 93:return e++,o=4;case 58:return e++,o=6;case 44:return e++,o=5;case 34:return e++,n=m(),o=10;case 47:var N=e-1;if(t.charCodeAt(e+1)===47){for(e+=2;e<i&&!Me(t.charCodeAt(e));)e++;return n=t.substring(N,e),o=12}if(t.charCodeAt(e+1)===42){e+=2;for(var P=i-1,M=!1;e<P;){var T=t.charCodeAt(e);if(T===42&&t.charCodeAt(e+1)===47){e+=2,M=!0;break}e++,Me(T)&&(T===13&&t.charCodeAt(e)===10&&e++,s++,c=e)}return M||(e++,l=1),n=t.substring(N,e),o=13}return n+=String.fromCharCode(v),e++,o=16;case 45:if(n+=String.fromCharCode(v),e++,e===i||!Oe(t.charCodeAt(e)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=p(),o=11;default:for(;e<i&&A(v);)e++,v=t.charCodeAt(e);if(a!==e){switch(n=t.substring(a,e),n){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return n+=String.fromCharCode(v),e++,o=16}}function A(v){if(st(v)||Me(v))return!1;switch(v){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function x(){var v;do v=d();while(v>=12&&v<=15);return v}return{setPosition:g,getPosition:function(){return e},scan:r?x:d,getToken:function(){return o},getTokenValue:function(){return n},getTokenOffset:function(){return a},getTokenLength:function(){return e-a},getTokenStartLine:function(){return f},getTokenStartCharacter:function(){return a-u},getTokenError:function(){return l}}}function st(t){return t===32||t===9||t===11||t===12||t===160||t===5760||t>=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function Me(t){return t===10||t===13||t===8232||t===8233}function Oe(t){return t>=48&&t<=57}"use strict";function ft(t,r,i){var e,n,a,o,s;if(r){for(o=r.offset,s=o+r.length,a=o;a>0&&!lt(t,a-1);)a--;for(var f=s;f<t.length&&!lt(t,f);)f++;n=t.substring(a,f),e=zr(n,i)}else n=t,e=0,a=0,o=0,s=t.length;var c=Hr(i,t),u=!1,l=0,h;i.insertSpaces?h=ut(" ",i.tabSize||4):h=" ";var g=Ce(n,!1),p=!1;function m(){return c+ut(h,e+l)}function d(){var j=g.scan();for(u=!1;j===15||j===14;)u=u||j===14,j=g.scan();return p=j===16||g.getTokenError()!==0,j}var A=[];function x(j,V,$){!p&&(!r||V<s&&$>o)&&t.substring(V,$)!==j&&A.push({offset:V,length:$-V,content:j})}var v=d();if(v!==17){var N=g.getTokenOffset()+a,P=ut(h,e);x(P,a,N)}for(;v!==17;){for(var M=g.getTokenOffset()+g.getTokenLength()+a,T=d(),O="",y=!1;!u&&(T===12||T===13);){var k=g.getTokenOffset()+a;x(" ",M,k),M=g.getTokenOffset()+g.getTokenLength()+a,y=T===12,O=y?m():"",T=d()}if(T===2)v!==1&&(l--,O=m());else if(T===4)v!==3&&(l--,O=m());else{switch(v){case 3:case 1:l++,O=m();break;case 5:case 12:O=m();break;case 13:u?O=m():y||(O=" ");break;case 6:y||(O=" ");break;case 10:if(T===6){y||(O="");break}case 7:case 8:case 9:case 11:case 2:case 4:T===12||T===13?y||(O=" "):T!==5&&T!==17&&(p=!0);break;case 16:p=!0;break}u&&(T===12||T===13)&&(O=m())}T===17&&(O=i.insertFinalNewline?c:"");var E=g.getTokenOffset()+a;x(O,M,E),v=T}return A}function ut(t,r){for(var i="",e=0;e<r;e++)i+=t;return i}function zr(t,r){for(var i=0,e=0,n=r.tabSize||4;i<t.length;){var a=t.charAt(i);if(a===" ")e++;else if(a===" ")e+=n;else break;i++}return Math.floor(e/n)}function Hr(t,r){for(var i=0;i<r.length;i++){var e=r.charAt(i);if(e==="\r")return i+1<r.length&&r.charAt(i+1)===`
- `?`\r
- `:"\r";if(e===`
- `)return`
- `}return t&&t.eol||`
- `}function lt(t,r){return`\r
- `.indexOf(t.charAt(r))!==-1}"use strict";var Je;(function(t){t.DEFAULT={allowTrailingComma:!1}})(Je||(Je={}));function zt(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=Je.DEFAULT);var e=null,n=[],a=[];function o(f){Array.isArray(n)?n.push(f):e!==null&&(n[e]=f)}var s={onObjectBegin:function(){var f={};o(f),a.push(n),n=f,e=null},onObjectProperty:function(f){e=f},onObjectEnd:function(){n=a.pop()},onArrayBegin:function(){var f=[];o(f),a.push(n),n=f,e=null},onArrayEnd:function(){n=a.pop()},onLiteralValue:o,onError:function(f,c,u){r.push({error:f,offset:c,length:u})}};return Ht(t,s,i),n[0]}function ct(t){if(!t.parent||!t.parent.children)return[];var r=ct(t.parent);if(t.parent.type==="property"){var i=t.parent.children[0].value;r.push(i)}else if(t.parent.type==="array"){var e=t.parent.children.indexOf(t);e!==-1&&r.push(e)}return r}function qe(t){switch(t.type){case"array":return t.children.map(qe);case"object":for(var r=Object.create(null),i=0,e=t.children;i<e.length;i++){var n=e[i],a=n.children[1];a&&(r[n.children[0].value]=qe(a))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function Gr(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}function ht(t,r,i){if(i===void 0&&(i=!1),Gr(t,r,i)){var e=t.children;if(Array.isArray(e))for(var n=0;n<e.length&&e[n].offset<=r;n++){var a=ht(e[n],r,i);if(a)return a}return t}}function Ht(t,r,i){i===void 0&&(i=Je.DEFAULT);var e=Ce(t,!1);function n(y){return y?function(){return y(e.getTokenOffset(),e.getTokenLength(),e.getTokenStartLine(),e.getTokenStartCharacter())}:function(){return!0}}function a(y){return y?function(k){return y(k,e.getTokenOffset(),e.getTokenLength(),e.getTokenStartLine(),e.getTokenStartCharacter())}:function(){return!0}}var o=n(r.onObjectBegin),s=a(r.onObjectProperty),f=n(r.onObjectEnd),c=n(r.onArrayBegin),u=n(r.onArrayEnd),l=a(r.onLiteralValue),h=a(r.onSeparator),g=n(r.onComment),p=a(r.onError),m=i&&i.disallowComments,d=i&&i.allowTrailingComma;function A(){for(;;){var y=e.scan();switch(e.getTokenError()){case 4:x(14);break;case 5:x(15);break;case 3:x(13);break;case 1:m||x(11);break;case 2:x(12);break;case 6:x(16);break}switch(y){case 12:case 13:m?x(10):g();break;case 16:x(1);break;case 15:case 14:break;default:return y}}}function x(y,k,E){if(k===void 0&&(k=[]),E===void 0&&(E=[]),p(y),k.length+E.length>0)for(var j=e.getToken();j!==17;){if(k.indexOf(j)!==-1){A();break}else if(E.indexOf(j)!==-1)break;j=A()}}function v(y){var k=e.getTokenValue();return y?l(k):s(k),A(),!0}function N(){switch(e.getToken()){case 11:var y=e.getTokenValue(),k=Number(y);isNaN(k)&&(x(2),k=0),l(k);break;case 7:l(null);break;case 8:l(!0);break;case 9:l(!1);break;default:return!1}return A(),!0}function P(){return e.getToken()!==10?(x(3,[],[2,5]),!1):(v(!1),e.getToken()===6?(h(":"),A(),O()||x(4,[],[2,5])):x(5,[],[2,5]),!0)}function M(){o(),A();for(var y=!1;e.getToken()!==2&&e.getToken()!==17;){if(e.getToken()===5){if(y||x(4,[],[]),h(","),A(),e.getToken()===2&&d)break}else y&&x(6,[],[]);P()||x(4,[],[2,5]),y=!0}return f(),e.getToken()!==2?x(7,[2],[]):A(),!0}function T(){c(),A();for(var y=!1;e.getToken()!==4&&e.getToken()!==17;){if(e.getToken()===5){if(y||x(4,[],[]),h(","),A(),e.getToken()===4&&d)break}else y&&x(6,[],[]);O()||x(4,[],[4,5]),y=!0}return u(),e.getToken()!==4?x(8,[4],[]):A(),!0}function O(){switch(e.getToken()){case 3:return T();case 1:return M();case 10:return v(!0);default:return N()}}return A(),e.getToken()===17?i.allowEmptyContent?!0:(x(4,[],[]),!1):O()?(e.getToken()!==17&&x(9,[],[]),!0):(x(4,[],[]),!1)}"use strict";"use strict";var le=Ce;var Gt=zt;var Xt=ht,Zt=ct,Qt=qe;function Yt(t,r,i){return ft(t,r,i)}function je(t,r){if(t===r)return!0;if(t==null||r===null||r===void 0||typeof t!=typeof r||typeof t!="object"||Array.isArray(t)!==Array.isArray(r))return!1;var i,e;if(Array.isArray(t)){if(t.length!==r.length)return!1;for(i=0;i<t.length;i++)if(!je(t[i],r[i]))return!1}else{var n=[];for(e in t)n.push(e);n.sort();var a=[];for(e in r)a.push(e);if(a.sort(),!je(n,a))return!1;for(i=0;i<n.length;i++)if(!je(t[n[i]],r[n[i]]))return!1}return!0}function ee(t){return typeof t=="number"}function se(t){return typeof t!="undefined"}function ie(t){return typeof t=="boolean"}function Kt(t){return typeof t=="string"}function gt(t,r){if(t.length<r.length)return!1;for(var i=0;i<r.length;i++)if(t[i]!==r[i])return!1;return!0}function ge(t,r){var i=t.length-r.length;return i>0?t.lastIndexOf(r)===i:i===0?t===r:!1}function Se(t){var r="";gt(t,"(?i)")&&(t=t.substring(4),r="i");try{return new RegExp(t,r+"u")}catch{try{return new RegExp(t,r)}catch{return}}}"use strict";var er;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(er||(er={}));var Be;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(Be||(Be={}));var ne;(function(t){function r(e,n){return e===Number.MAX_VALUE&&(e=Be.MAX_VALUE),n===Number.MAX_VALUE&&(n=Be.MAX_VALUE),{line:e,character:n}}t.create=r;function i(e){var n=e;return b.objectLiteral(n)&&b.uinteger(n.line)&&b.uinteger(n.character)}t.is=i})(ne||(ne={}));var U;(function(t){function r(e,n,a,o){if(b.uinteger(e)&&b.uinteger(n)&&b.uinteger(a)&&b.uinteger(o))return{start:ne.create(e,n),end:ne.create(a,o)};if(ne.is(e)&&ne.is(n))return{start:e,end:n};throw new Error("Range#create called with invalid arguments["+e+", "+n+", "+a+", "+o+"]")}t.create=r;function i(e){var n=e;return b.objectLiteral(n)&&ne.is(n.start)&&ne.is(n.end)}t.is=i})(U||(U={}));var Ae;(function(t){function r(e,n){return{uri:e,range:n}}t.create=r;function i(e){var n=e;return b.defined(n)&&U.is(n.range)&&(b.string(n.uri)||b.undefined(n.uri))}t.is=i})(Ae||(Ae={}));var tr;(function(t){function r(e,n,a,o){return{targetUri:e,targetRange:n,targetSelectionRange:a,originSelectionRange:o}}t.create=r;function i(e){var n=e;return b.defined(n)&&U.is(n.targetRange)&&b.string(n.targetUri)&&(U.is(n.targetSelectionRange)||b.undefined(n.targetSelectionRange))&&(U.is(n.originSelectionRange)||b.undefined(n.originSelectionRange))}t.is=i})(tr||(tr={}));var _e;(function(t){function r(e,n,a,o){return{red:e,green:n,blue:a,alpha:o}}t.create=r;function i(e){var n=e;return b.numberRange(n.red,0,1)&&b.numberRange(n.green,0,1)&&b.numberRange(n.blue,0,1)&&b.numberRange(n.alpha,0,1)}t.is=i})(_e||(_e={}));var pt;(function(t){function r(e,n){return{range:e,color:n}}t.create=r;function i(e){var n=e;return U.is(n.range)&&_e.is(n.color)}t.is=i})(pt||(pt={}));var dt;(function(t){function r(e,n,a){return{label:e,textEdit:n,additionalTextEdits:a}}t.create=r;function i(e){var n=e;return b.string(n.label)&&(b.undefined(n.textEdit)||Y.is(n))&&(b.undefined(n.additionalTextEdits)||b.typedArray(n.additionalTextEdits,Y.is))}t.is=i})(dt||(dt={}));var Te;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Te||(Te={}));var mt;(function(t){function r(e,n,a,o,s){var f={startLine:e,endLine:n};return b.defined(a)&&(f.startCharacter=a),b.defined(o)&&(f.endCharacter=o),b.defined(s)&&(f.kind=s),f}t.create=r;function i(e){var n=e;return b.uinteger(n.startLine)&&b.uinteger(n.startLine)&&(b.undefined(n.startCharacter)||b.uinteger(n.startCharacter))&&(b.undefined(n.endCharacter)||b.uinteger(n.endCharacter))&&(b.undefined(n.kind)||b.string(n.kind))}t.is=i})(mt||(mt={}));var vt;(function(t){function r(e,n){return{location:e,message:n}}t.create=r;function i(e){var n=e;return b.defined(n)&&Ae.is(n.location)&&b.string(n.message)}t.is=i})(vt||(vt={}));var X;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(X||(X={}));var rr;(function(t){t.Unnecessary=1,t.Deprecated=2})(rr||(rr={}));var nr;(function(t){function r(i){var e=i;return e!=null&&b.string(e.href)}t.is=r})(nr||(nr={}));var ae;(function(t){function r(e,n,a,o,s,f){var c={range:e,message:n};return b.defined(a)&&(c.severity=a),b.defined(o)&&(c.code=o),b.defined(s)&&(c.source=s),b.defined(f)&&(c.relatedInformation=f),c}t.create=r;function i(e){var n,a=e;return b.defined(a)&&U.is(a.range)&&b.string(a.message)&&(b.number(a.severity)||b.undefined(a.severity))&&(b.integer(a.code)||b.string(a.code)||b.undefined(a.code))&&(b.undefined(a.codeDescription)||b.string((n=a.codeDescription)===null||n===void 0?void 0:n.href))&&(b.string(a.source)||b.undefined(a.source))&&(b.undefined(a.relatedInformation)||b.typedArray(a.relatedInformation,vt.is))}t.is=i})(ae||(ae={}));var Pe;(function(t){function r(e,n){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];var s={title:e,command:n};return b.defined(a)&&a.length>0&&(s.arguments=a),s}t.create=r;function i(e){var n=e;return b.defined(n)&&b.string(n.title)&&b.string(n.command)}t.is=i})(Pe||(Pe={}));var Y;(function(t){function r(a,o){return{range:a,newText:o}}t.replace=r;function i(a,o){return{range:{start:a,end:a},newText:o}}t.insert=i;function e(a){return{range:a,newText:""}}t.del=e;function n(a){var o=a;return b.objectLiteral(o)&&b.string(o.newText)&&U.is(o.range)}t.is=n})(Y||(Y={}));var Ee;(function(t){function r(e,n,a){var o={label:e};return n!==void 0&&(o.needsConfirmation=n),a!==void 0&&(o.description=a),o}t.create=r;function i(e){var n=e;return n!==void 0&&b.objectLiteral(n)&&b.string(n.label)&&(b.boolean(n.needsConfirmation)||n.needsConfirmation===void 0)&&(b.string(n.description)||n.description===void 0)}t.is=i})(Ee||(Ee={}));var Z;(function(t){function r(i){var e=i;return typeof e=="string"}t.is=r})(Z||(Z={}));var pe;(function(t){function r(a,o,s){return{range:a,newText:o,annotationId:s}}t.replace=r;function i(a,o,s){return{range:{start:a,end:a},newText:o,annotationId:s}}t.insert=i;function e(a,o){return{range:a,newText:"",annotationId:o}}t.del=e;function n(a){var o=a;return Y.is(o)&&(Ee.is(o.annotationId)||Z.is(o.annotationId))}t.is=n})(pe||(pe={}));var Ve;(function(t){function r(e,n){return{textDocument:e,edits:n}}t.create=r;function i(e){var n=e;return b.defined(n)&&Ge.is(n.textDocument)&&Array.isArray(n.edits)}t.is=i})(Ve||(Ve={}));var Fe;(function(t){function r(e,n,a){var o={kind:"create",uri:e};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(o.options=n),a!==void 0&&(o.annotationId=a),o}t.create=r;function i(e){var n=e;return n&&n.kind==="create"&&b.string(n.uri)&&(n.options===void 0||(n.options.overwrite===void 0||b.boolean(n.options.overwrite))&&(n.options.ignoreIfExists===void 0||b.boolean(n.options.ignoreIfExists)))&&(n.annotationId===void 0||Z.is(n.annotationId))}t.is=i})(Fe||(Fe={}));var Le;(function(t){function r(e,n,a,o){var s={kind:"rename",oldUri:e,newUri:n};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(s.options=a),o!==void 0&&(s.annotationId=o),s}t.create=r;function i(e){var n=e;return n&&n.kind==="rename"&&b.string(n.oldUri)&&b.string(n.newUri)&&(n.options===void 0||(n.options.overwrite===void 0||b.boolean(n.options.overwrite))&&(n.options.ignoreIfExists===void 0||b.boolean(n.options.ignoreIfExists)))&&(n.annotationId===void 0||Z.is(n.annotationId))}t.is=i})(Le||(Le={}));var De;(function(t){function r(e,n,a){var o={kind:"delete",uri:e};return n!==void 0&&(n.recursive!==void 0||n.ignoreIfNotExists!==void 0)&&(o.options=n),a!==void 0&&(o.annotationId=a),o}t.create=r;function i(e){var n=e;return n&&n.kind==="delete"&&b.string(n.uri)&&(n.options===void 0||(n.options.recursive===void 0||b.boolean(n.options.recursive))&&(n.options.ignoreIfNotExists===void 0||b.boolean(n.options.ignoreIfNotExists)))&&(n.annotationId===void 0||Z.is(n.annotationId))}t.is=i})(De||(De={}));var ze;(function(t){function r(i){var e=i;return e&&(e.changes!==void 0||e.documentChanges!==void 0)&&(e.documentChanges===void 0||e.documentChanges.every(function(n){return b.string(n.kind)?Fe.is(n)||Le.is(n)||De.is(n):Ve.is(n)}))}t.is=r})(ze||(ze={}));var He=function(){function t(r,i){this.edits=r,this.changeAnnotations=i}return t.prototype.insert=function(r,i,e){var n,a;if(e===void 0?n=Y.insert(r,i):Z.is(e)?(a=e,n=pe.insert(r,i,e)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(e),n=pe.insert(r,i,a)),this.edits.push(n),a!==void 0)return a},t.prototype.replace=function(r,i,e){var n,a;if(e===void 0?n=Y.replace(r,i):Z.is(e)?(a=e,n=pe.replace(r,i,e)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(e),n=pe.replace(r,i,a)),this.edits.push(n),a!==void 0)return a},t.prototype.delete=function(r,i){var e,n;if(i===void 0?e=Y.del(r):Z.is(i)?(n=i,e=pe.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(i),e=pe.del(r,n)),this.edits.push(e),n!==void 0)return n},t.prototype.add=function(r){this.edits.push(r)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),ir=function(){function t(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(r,i){var e;if(Z.is(r)?e=r:(e=this.nextId(),i=r),this._annotations[e]!==void 0)throw new Error("Id "+e+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+e);return this._annotations[e]=i,this._size++,e},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),ti=function(){function t(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new ir(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(e){if(Ve.is(e)){var n=new He(e.edits,i._changeAnnotations);i._textEditChanges[e.textDocument.uri]=n}})):r.changes&&Object.keys(r.changes).forEach(function(e){var n=new He(r.changes[e]);i._textEditChanges[e]=n})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(r){if(Ge.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:r.uri,version:r.version},e=this._textEditChanges[i.uri];if(!e){var n=[],a={textDocument:i,edits:n};this._workspaceEdit.documentChanges.push(a),e=new He(n,this._changeAnnotations),this._textEditChanges[i.uri]=e}return e}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var e=this._textEditChanges[r];if(!e){var n=[];this._workspaceEdit.changes[r]=n,e=new He(n),this._textEditChanges[r]=e}return e}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ir,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(r,i,e){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n;Ee.is(i)||Z.is(i)?n=i:e=i;var a,o;if(n===void 0?a=Fe.create(r,e):(o=Z.is(n)?n:this._changeAnnotations.manage(n),a=Fe.create(r,e,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},t.prototype.renameFile=function(r,i,e,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;Ee.is(e)||Z.is(e)?a=e:n=e;var o,s;if(a===void 0?o=Le.create(r,i,n):(s=Z.is(a)?a:this._changeAnnotations.manage(a),o=Le.create(r,i,n,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},t.prototype.deleteFile=function(r,i,e){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n;Ee.is(i)||Z.is(i)?n=i:e=i;var a,o;if(n===void 0?a=De.create(r,e):(o=Z.is(n)?n:this._changeAnnotations.manage(n),a=De.create(r,e,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},t}();var ar;(function(t){function r(e){return{uri:e}}t.create=r;function i(e){var n=e;return b.defined(n)&&b.string(n.uri)}t.is=i})(ar||(ar={}));var yt;(function(t){function r(e,n){return{uri:e,version:n}}t.create=r;function i(e){var n=e;return b.defined(n)&&b.string(n.uri)&&b.integer(n.version)}t.is=i})(yt||(yt={}));var Ge;(function(t){function r(e,n){return{uri:e,version:n}}t.create=r;function i(e){var n=e;return b.defined(n)&&b.string(n.uri)&&(n.version===null||b.integer(n.version))}t.is=i})(Ge||(Ge={}));var or;(function(t){function r(e,n,a,o){return{uri:e,languageId:n,version:a,text:o}}t.create=r;function i(e){var n=e;return b.defined(n)&&b.string(n.uri)&&b.string(n.languageId)&&b.integer(n.version)&&b.string(n.text)}t.is=i})(or||(or={}));var fe;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(fe||(fe={}));(function(t){function r(i){var e=i;return e===t.PlainText||e===t.Markdown}t.is=r})(fe||(fe={}));var Xe;(function(t){function r(i){var e=i;return b.objectLiteral(i)&&fe.is(e.kind)&&b.string(e.value)}t.is=r})(Xe||(Xe={}));var Q;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(Q||(Q={}));var _;(function(t){t.PlainText=1,t.Snippet=2})(_||(_={}));var bt;(function(t){t.Deprecated=1})(bt||(bt={}));var sr;(function(t){function r(e,n,a){return{newText:e,insert:n,replace:a}}t.create=r;function i(e){var n=e;return n&&b.string(n.newText)&&U.is(n.insert)&&U.is(n.replace)}t.is=i})(sr||(sr={}));var fr;(function(t){t.asIs=1,t.adjustIndentation=2})(fr||(fr={}));var $e;(function(t){function r(i){return{label:i}}t.create=r})($e||($e={}));var xt;(function(t){function r(i,e){return{items:i||[],isIncomplete:!!e}}t.create=r})(xt||(xt={}));var Re;(function(t){function r(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(e){var n=e;return b.string(n)||b.objectLiteral(n)&&b.string(n.language)&&b.string(n.value)}t.is=i})(Re||(Re={}));var St;(function(t){function r(i){var e=i;return!!e&&b.objectLiteral(e)&&(Xe.is(e.contents)||Re.is(e.contents)||b.typedArray(e.contents,Re.is))&&(i.range===void 0||U.is(i.range))}t.is=r})(St||(St={}));var ur;(function(t){function r(i,e){return e?{label:i,documentation:e}:{label:i}}t.create=r})(ur||(ur={}));var lr;(function(t){function r(i,e){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var o={label:i};return b.defined(e)&&(o.documentation=e),b.defined(n)?o.parameters=n:o.parameters=[],o}t.create=r})(lr||(lr={}));var At;(function(t){t.Text=1,t.Read=2,t.Write=3})(At||(At={}));var Tt;(function(t){function r(i,e){var n={range:i};return b.number(e)&&(n.kind=e),n}t.create=r})(Tt||(Tt={}));var oe;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(oe||(oe={}));var cr;(function(t){t.Deprecated=1})(cr||(cr={}));var wt;(function(t){function r(i,e,n,a,o){var s={name:i,kind:e,location:{uri:a,range:n}};return o&&(s.containerName=o),s}t.create=r})(wt||(wt={}));var kt;(function(t){function r(e,n,a,o,s,f){var c={name:e,detail:n,kind:a,range:o,selectionRange:s};return f!==void 0&&(c.children=f),c}t.create=r;function i(e){var n=e;return n&&b.string(n.name)&&b.number(n.kind)&&U.is(n.range)&&U.is(n.selectionRange)&&(n.detail===void 0||b.string(n.detail))&&(n.deprecated===void 0||b.boolean(n.deprecated))&&(n.children===void 0||Array.isArray(n.children))&&(n.tags===void 0||Array.isArray(n.tags))}t.is=i})(kt||(kt={}));var Ct;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(Ct||(Ct={}));var Ot;(function(t){function r(e,n){var a={diagnostics:e};return n!=null&&(a.only=n),a}t.create=r;function i(e){var n=e;return b.defined(n)&&b.typedArray(n.diagnostics,ae.is)&&(n.only===void 0||b.typedArray(n.only,b.string))}t.is=i})(Ot||(Ot={}));var jt;(function(t){function r(e,n,a){var o={title:e},s=!0;return typeof n=="string"?(s=!1,o.kind=n):Pe.is(n)?o.command=n:o.edit=n,s&&a!==void 0&&(o.kind=a),o}t.create=r;function i(e){var n=e;return n&&b.string(n.title)&&(n.diagnostics===void 0||b.typedArray(n.diagnostics,ae.is))&&(n.kind===void 0||b.string(n.kind))&&(n.edit!==void 0||n.command!==void 0)&&(n.command===void 0||Pe.is(n.command))&&(n.isPreferred===void 0||b.boolean(n.isPreferred))&&(n.edit===void 0||ze.is(n.edit))}t.is=i})(jt||(jt={}));var hr;(function(t){function r(e,n){var a={range:e};return b.defined(n)&&(a.data=n),a}t.create=r;function i(e){var n=e;return b.defined(n)&&U.is(n.range)&&(b.undefined(n.command)||Pe.is(n.command))}t.is=i})(hr||(hr={}));var gr;(function(t){function r(e,n){return{tabSize:e,insertSpaces:n}}t.create=r;function i(e){var n=e;return b.defined(n)&&b.uinteger(n.tabSize)&&b.boolean(n.insertSpaces)}t.is=i})(gr||(gr={}));var Pt;(function(t){function r(e,n,a){return{range:e,target:n,data:a}}t.create=r;function i(e){var n=e;return b.defined(n)&&U.is(n.range)&&(b.undefined(n.target)||b.string(n.target))}t.is=i})(Pt||(Pt={}));var Ie;(function(t){function r(e,n){return{range:e,parent:n}}t.create=r;function i(e){var n=e;return n!==void 0&&U.is(n.range)&&(n.parent===void 0||t.is(n.parent))}t.is=i})(Ie||(Ie={}));var pr;(function(t){function r(a,o,s,f){return new Qr(a,o,s,f)}t.create=r;function i(a){var o=a;return!!(b.defined(o)&&b.string(o.uri)&&(b.undefined(o.languageId)||b.string(o.languageId))&&b.uinteger(o.lineCount)&&b.func(o.getText)&&b.func(o.positionAt)&&b.func(o.offsetAt))}t.is=i;function e(a,o){for(var s=a.getText(),f=n(o,function(p,m){var d=p.range.start.line-m.range.start.line;return d===0?p.range.start.character-m.range.start.character:d}),c=s.length,u=f.length-1;u>=0;u--){var l=f[u],h=a.offsetAt(l.range.start),g=a.offsetAt(l.range.end);if(g<=c)s=s.substring(0,h)+l.newText+s.substring(g,s.length);else throw new Error("Overlapping edit");c=h}return s}t.applyEdits=e;function n(a,o){if(a.length<=1)return a;var s=a.length/2|0,f=a.slice(0,s),c=a.slice(s);n(f,o),n(c,o);for(var u=0,l=0,h=0;u<f.length&&l<c.length;){var g=o(f[u],c[l]);g<=0?a[h++]=f[u++]:a[h++]=c[l++]}for(;u<f.length;)a[h++]=f[u++];for(;l<c.length;)a[h++]=c[l++];return a}})(pr||(pr={}));var Qr=function(){function t(r,i,e,n){this._uri=r,this._languageId=i,this._version=e,this._content=n,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),e=this.offsetAt(r.end);return this._content.substring(i,e)}return this._content},t.prototype.update=function(r,i){this._content=r.text,this._version=i,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],i=this._content,e=!0,n=0;n<i.length;n++){e&&(r.push(n),e=!1);var a=i.charAt(n);e=a==="\r"||a===`
- `,a==="\r"&&n+1<i.length&&i.charAt(n+1)===`
- `&&n++}e&&i.length>0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),e=0,n=i.length;if(n===0)return ne.create(0,r);for(;e<n;){var a=Math.floor((e+n)/2);i[a]>r?n=a:e=a+1}var o=e-1;return ne.create(o,r-i[o])},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var e=i[r.line],n=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(e+r.character,n),e)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),b;(function(t){var r=Object.prototype.toString;function i(g){return typeof g!="undefined"}t.defined=i;function e(g){return typeof g=="undefined"}t.undefined=e;function n(g){return g===!0||g===!1}t.boolean=n;function a(g){return r.call(g)==="[object String]"}t.string=a;function o(g){return r.call(g)==="[object Number]"}t.number=o;function s(g,p,m){return r.call(g)==="[object Number]"&&p<=g&&g<=m}t.numberRange=s;function f(g){return r.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}t.integer=f;function c(g){return r.call(g)==="[object Number]"&&0<=g&&g<=2147483647}t.uinteger=c;function u(g){return r.call(g)==="[object Function]"}t.func=u;function l(g){return g!==null&&typeof g=="object"}t.objectLiteral=l;function h(g,p){return Array.isArray(g)&&g.every(p)}t.typedArray=h})(b||(b={}));"use strict";var Yr=function(t,r,i){if(i||arguments.length===2)for(var e=0,n=r.length,a;e<n;e++)(a||!(e in r))&&(a||(a=Array.prototype.slice.call(r,0,e)),a[e]=r[e]);return t.concat(a||Array.prototype.slice.call(r))},dr=function(){function t(r,i,e,n){this._uri=r,this._languageId=i,this._version=e,this._content=n,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),e=this.offsetAt(r.end);return this._content.substring(i,e)}return this._content},t.prototype.update=function(r,i){for(var e=0,n=r;e<n.length;e++){var a=n[e];if(t.isIncremental(a)){var o=vr(a.range),s=this.offsetAt(o.start),f=this.offsetAt(o.end);this._content=this._content.substring(0,s)+a.text+this._content.substring(f,this._content.length);var c=Math.max(o.start.line,0),u=Math.max(o.end.line,0),l=this._lineOffsets,h=mr(a.text,!1,s);if(u-c===h.length)for(var g=0,p=h.length;g<p;g++)l[g+c+1]=h[g];else h.length<1e4?l.splice.apply(l,Yr([c+1,u-c],h,!1)):this._lineOffsets=l=l.slice(0,c+1).concat(h,l.slice(u+1));var m=a.text.length-(f-s);if(m!==0)for(var g=c+1+h.length,p=l.length;g<p;g++)l[g]=l[g]+m}else if(t.isFull(a))this._content=a.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=i},t.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=mr(this._content,!0)),this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),e=0,n=i.length;if(n===0)return{line:0,character:r};for(;e<n;){var a=Math.floor((e+n)/2);i[a]>r?n=a:e=a+1}var o=e-1;return{line:o,character:r-i[o]}},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var e=i[r.line],n=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(e+r.character,n),e)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t.isIncremental=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")},t.isFull=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0},t}(),Ue;(function(t){function r(n,a,o,s){return new dr(n,a,o,s)}t.create=r;function i(n,a,o){if(n instanceof dr)return n.update(a,o),n;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function e(n,a){for(var o=n.getText(),s=Et(a.map(Kr),function(p,m){var d=p.range.start.line-m.range.start.line;return d===0?p.range.start.character-m.range.start.character:d}),f=0,c=[],u=0,l=s;u<l.length;u++){var h=l[u],g=n.offsetAt(h.range.start);if(g<f)throw new Error("Overlapping edit");g>f&&c.push(o.substring(f,g)),h.newText.length&&c.push(h.newText),f=n.offsetAt(h.range.end)}return c.push(o.substr(f)),c.join("")}t.applyEdits=e})(Ue||(Ue={}));function Et(t,r){if(t.length<=1)return t;var i=t.length/2|0,e=t.slice(0,i),n=t.slice(i);Et(e,r),Et(n,r);for(var a=0,o=0,s=0;a<e.length&&o<n.length;){var f=r(e[a],n[o]);f<=0?t[s++]=e[a++]:t[s++]=n[o++]}for(;a<e.length;)t[s++]=e[a++];for(;o<n.length;)t[s++]=n[o++];return t}function mr(t,r,i){i===void 0&&(i=0);for(var e=r?[i]:[],n=0;n<t.length;n++){var a=t.charCodeAt(n);(a===13||a===10)&&(a===13&&n+1<t.length&&t.charCodeAt(n+1)===10&&n++,e.push(i+n+1))}return e}function vr(t){var r=t.start,i=t.end;return r.line>i.line||r.line===i.line&&r.character>i.character?{start:i,end:r}:t}function Kr(t){var r=vr(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var J;(function(t){t[t.Undefined=0]="Undefined",t[t.EnumValueMismatch=1]="EnumValueMismatch",t[t.Deprecated=2]="Deprecated",t[t.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=258]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",t[t.InvalidUnicode=260]="InvalidUnicode",t[t.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",t[t.InvalidCharacter=262]="InvalidCharacter",t[t.PropertyExpected=513]="PropertyExpected",t[t.CommaExpected=514]="CommaExpected",t[t.ColonExpected=515]="ColonExpected",t[t.ValueExpected=516]="ValueExpected",t[t.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",t[t.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",t[t.TrailingComma=519]="TrailingComma",t[t.DuplicateKey=520]="DuplicateKey",t[t.CommentNotPermitted=521]="CommentNotPermitted",t[t.SchemaResolveError=768]="SchemaResolveError"})(J||(J={}));var yr;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[fe.Markdown,fe.PlainText],commitCharactersSupport:!0}}}}})(yr||(yr={}));function en(t,r){let i;return r.length===0?i=t:i=t.replace(/\{(\d+)\}/g,(e,n)=>{let a=n[0];return typeof r[a]!="undefined"?r[a]:e}),i}function tn(t,r,...i){return en(r,i)}function ce(t){return tn}var we=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},t(r,i)};return function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(r,i);function e(){this.constructor=r}r.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}}(),F=ce(),rn={"color-hex":{errorMessage:F("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:F("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:F("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:F("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:F("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},ke=function(){function t(r,i,e){e===void 0&&(e=0),this.offset=i,this.length=e,this.parent=r}return Object.defineProperty(t.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},t}();var nn=function(t){we(r,t);function r(i,e){var n=t.call(this,i,e)||this;return n.type="null",n.value=null,n}return r}(ke);var br=function(t){we(r,t);function r(i,e,n){var a=t.call(this,i,n)||this;return a.type="boolean",a.value=e,a}return r}(ke);var an=function(t){we(r,t);function r(i,e){var n=t.call(this,i,e)||this;return n.type="array",n.items=[],n}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),r}(ke);var on=function(t){we(r,t);function r(i,e){var n=t.call(this,i,e)||this;return n.type="number",n.isInteger=!0,n.value=Number.NaN,n}return r}(ke);var It=function(t){we(r,t);function r(i,e,n){var a=t.call(this,i,e,n)||this;return a.type="string",a.value="",a}return r}(ke);var sn=function(t){we(r,t);function r(i,e,n){var a=t.call(this,i,e)||this;return a.type="property",a.colonOffset=-1,a.keyNode=n,a}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),r}(ke);var fn=function(t){we(r,t);function r(i,e){var n=t.call(this,i,e)||this;return n.type="object",n.properties=[],n}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),r}(ke);function K(t){return ie(t)?t?{}:{not:{}}:t}var xr;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(xr||(xr={}));var un=function(){function t(r,i){r===void 0&&(r=-1),this.focusOffset=r,this.exclude=i,this.schemas=[]}return t.prototype.add=function(r){this.schemas.push(r)},t.prototype.merge=function(r){Array.prototype.push.apply(this.schemas,r.schemas)},t.prototype.include=function(r){return(this.focusOffset===-1||Mt(r,this.focusOffset))&&r!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),Nt=function(){function t(){}return Object.defineProperty(t.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.add=function(r){},t.prototype.merge=function(r){},t.prototype.include=function(r){return!0},t.prototype.newSub=function(){return this},t.instance=new t,t}(),te=function(){function t(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return t.prototype.hasProblems=function(){return!!this.problems.length},t.prototype.mergeAll=function(r){for(var i=0,e=r;i<e.length;i++){var n=e[i];this.merge(n)}},t.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},t.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var i=0,e=this.problems;i<e.length;i++){var n=e[i];n.code===J.EnumValueMismatch&&(n.message=F("enumWarning","Value is not accepted. Valid values: {0}.",this.enumValues.map(function(a){return JSON.stringify(a)}).join(", ")))}}},t.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},t.prototype.compare=function(r){var i=this.hasProblems();return i!==r.hasProblems()?i?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},t}();function Sr(t,r){return r===void 0&&(r=[]),new Ar(t,r,[])}function ue(t){return Qt(t)}function We(t){return Zt(t)}function Mt(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}var Ar=function(){function t(r,i,e){i===void 0&&(i=[]),e===void 0&&(e=[]),this.root=r,this.syntaxErrors=i,this.comments=e}return t.prototype.getNodeFromOffset=function(r,i){if(i===void 0&&(i=!1),this.root)return Xt(this.root,r,i)},t.prototype.visit=function(r){if(this.root){var i=function(e){var n=r(e),a=e.children;if(Array.isArray(a))for(var o=0;o<a.length&&n;o++)n=i(a[o]);return n};i(this.root)}},t.prototype.validate=function(r,i,e){if(e===void 0&&(e=X.Warning),this.root&&i){var n=new te;return G(this.root,i,n,Nt.instance),n.problems.map(function(a){var o,s=U.create(r.positionAt(a.location.offset),r.positionAt(a.location.offset+a.location.length));return ae.create(s,a.message,(o=a.severity)!==null&&o!==void 0?o:e,a.code)})}},t.prototype.getMatchingSchemas=function(r,i,e){i===void 0&&(i=-1);var n=new un(i,e);return this.root&&r&&G(this.root,r,new te,n),n.schemas},t}();function G(t,r,i,e){if(!t||!e.include(t))return;var n=t;switch(n.type){case"object":c(n,r,i,e);break;case"array":f(n,r,i,e);break;case"string":s(n,r,i,e);break;case"number":o(n,r,i,e);break;case"property":return G(n.valueNode,r,i,e)}a(),e.add({node:n,schema:r});function a(){function u(V){return n.type===V||V==="integer"&&n.type==="number"&&n.isInteger}if(Array.isArray(r.type)?r.type.some(u)||i.problems.push({location:{offset:n.offset,length:n.length},message:r.errorMessage||F("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",r.type.join(", "))}):r.type&&(u(r.type)||i.problems.push({location:{offset:n.offset,length:n.length},message:r.errorMessage||F("typeMismatchWarning",'Incorrect type. Expected "{0}".',r.type)})),Array.isArray(r.allOf))for(var l=0,h=r.allOf;l<h.length;l++){var g=h[l];G(n,K(g),i,e)}var p=K(r.not);if(p){var m=new te,d=e.newSub();G(n,p,m,d),m.hasProblems()||i.problems.push({location:{offset:n.offset,length:n.length},message:F("notSchemaWarning","Matches a schema that is not allowed.")});for(var A=0,x=d.schemas;A<x.length;A++){var v=x[A];v.inverted=!v.inverted,e.add(v)}}var N=function(V,$){for(var B=[],w=void 0,S=0,C=V;S<C.length;S++){var I=C[S],W=K(I),L=new te,R=e.newSub();if(G(n,W,L,R),L.hasProblems()||B.push(W),!w)w={schema:W,validationResult:L,matchingSchemas:R};else if(!$&&!L.hasProblems()&&!w.validationResult.hasProblems())w.matchingSchemas.merge(R),w.validationResult.propertiesMatches+=L.propertiesMatches,w.validationResult.propertiesValueMatches+=L.propertiesValueMatches;else{var q=L.compare(w.validationResult);q>0?w={schema:W,validationResult:L,matchingSchemas:R}:q===0&&(w.matchingSchemas.merge(R),w.validationResult.mergeEnumValues(L))}}return B.length>1&&$&&i.problems.push({location:{offset:n.offset,length:1},message:F("oneOfWarning","Matches multiple schemas when only one must validate.")}),w&&(i.merge(w.validationResult),i.propertiesMatches+=w.validationResult.propertiesMatches,i.propertiesValueMatches+=w.validationResult.propertiesValueMatches,e.merge(w.matchingSchemas)),B.length};Array.isArray(r.anyOf)&&N(r.anyOf,!1),Array.isArray(r.oneOf)&&N(r.oneOf,!0);var P=function(V){var $=new te,B=e.newSub();G(n,K(V),$,B),i.merge($),i.propertiesMatches+=$.propertiesMatches,i.propertiesValueMatches+=$.propertiesValueMatches,e.merge(B)},M=function(V,$,B){var w=K(V),S=new te,C=e.newSub();G(n,w,S,C),e.merge(C),S.hasProblems()?B&&P(B):$&&P($)},T=K(r.if);if(T&&M(T,K(r.then),K(r.else)),Array.isArray(r.enum)){for(var O=ue(n),y=!1,k=0,E=r.enum;k<E.length;k++){var j=E[k];if(je(O,j)){y=!0;break}}i.enumValues=r.enum,i.enumValueMatch=y,y||i.problems.push({location:{offset:n.offset,length:n.length},code:J.EnumValueMismatch,message:r.errorMessage||F("enumWarning","Value is not accepted. Valid values: {0}.",r.enum.map(function(V){return JSON.stringify(V)}).join(", "))})}if(se(r.const)){var O=ue(n);je(O,r.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:n.offset,length:n.length},code:J.EnumValueMismatch,message:r.errorMessage||F("constWarning","Value must be {0}.",JSON.stringify(r.const))}),i.enumValueMatch=!1),i.enumValues=[r.const]}r.deprecationMessage&&n.parent&&i.problems.push({location:{offset:n.parent.offset,length:n.parent.length},severity:X.Warning,message:r.deprecationMessage,code:J.Deprecated})}function o(u,l,h,g){var p=u.value;function m(k){var E,j=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(k.toString());return j&&{value:Number(j[1]+(j[2]||"")),multiplier:(((E=j[2])===null||E===void 0?void 0:E.length)||0)-(parseInt(j[3])||0)}}if(ee(l.multipleOf)){var d=-1;if(Number.isInteger(l.multipleOf))d=p%l.multipleOf;else{var A=m(l.multipleOf),x=m(p);if(A&&x){var v=Math.pow(10,Math.abs(x.multiplier-A.multiplier));x.multiplier<A.multiplier?x.value*=v:A.value*=v,d=x.value%A.value}}d!==0&&h.problems.push({location:{offset:u.offset,length:u.length},message:F("multipleOfWarning","Value is not divisible by {0}.",l.multipleOf)})}function N(k,E){if(ee(E))return E;if(ie(E)&&E)return k}function P(k,E){if(!ie(E)||!E)return k}var M=N(l.minimum,l.exclusiveMinimum);ee(M)&&p<=M&&h.problems.push({location:{offset:u.offset,length:u.length},message:F("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",M)});var T=N(l.maximum,l.exclusiveMaximum);ee(T)&&p>=T&&h.problems.push({location:{offset:u.offset,length:u.length},message:F("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",T)});var O=P(l.minimum,l.exclusiveMinimum);ee(O)&&p<O&&h.problems.push({location:{offset:u.offset,length:u.length},message:F("minimumWarning","Value is below the minimum of {0}.",O)});var y=P(l.maximum,l.exclusiveMaximum);ee(y)&&p>y&&h.problems.push({location:{offset:u.offset,length:u.length},message:F("maximumWarning","Value is above the maximum of {0}.",y)})}function s(u,l,h,g){if(ee(l.minLength)&&u.value.length<l.minLength&&h.problems.push({location:{offset:u.offset,length:u.length},message:F("minLengthWarning","String is shorter than the minimum length of {0}.",l.minLength)}),ee(l.maxLength)&&u.value.length>l.maxLength&&h.problems.push({location:{offset:u.offset,length:u.length},message:F("maxLengthWarning","String is longer than the maximum length of {0}.",l.maxLength)}),Kt(l.pattern)){var p=Se(l.pattern);(p==null?void 0:p.test(u.value))||h.problems.push({location:{offset:u.offset,length:u.length},message:l.patternErrorMessage||l.errorMessage||F("patternWarning",'String does not match the pattern of "{0}".',l.pattern)})}if(l.format)switch(l.format){case"uri":case"uri-reference":{var m=void 0;if(!u.value)m=F("uriEmpty","URI expected.");else{var d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(u.value);d?!d[2]&&l.format==="uri"&&(m=F("uriSchemeMissing","URI with a scheme is expected.")):m=F("uriMissing","URI is expected.")}m&&h.problems.push({location:{offset:u.offset,length:u.length},message:l.patternErrorMessage||l.errorMessage||F("uriFormatWarning","String is not a URI: {0}",m)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var A=rn[l.format];(!u.value||!A.pattern.exec(u.value))&&h.problems.push({location:{offset:u.offset,length:u.length},message:l.patternErrorMessage||l.errorMessage||A.errorMessage});default:}}function f(u,l,h,g){if(Array.isArray(l.items)){for(var p=l.items,m=0;m<p.length;m++){var d=p[m],A=K(d),x=new te,v=u.items[m];v?(G(v,A,x,g),h.mergePropertyMatch(x)):u.items.length>=p.length&&h.propertiesValueMatches++}if(u.items.length>p.length)if(typeof l.additionalItems=="object")for(var N=p.length;N<u.items.length;N++){var x=new te;G(u.items[N],l.additionalItems,x,g),h.mergePropertyMatch(x)}else l.additionalItems===!1&&h.problems.push({location:{offset:u.offset,length:u.length},message:F("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",p.length)})}else{var P=K(l.items);if(P)for(var M=0,T=u.items;M<T.length;M++){var v=T[M],x=new te;G(v,P,x,g),h.mergePropertyMatch(x)}}var O=K(l.contains);if(O){var y=u.items.some(function(j){var V=new te;return G(j,O,V,Nt.instance),!V.hasProblems()});y||h.problems.push({location:{offset:u.offset,length:u.length},message:l.errorMessage||F("requiredItemMissingWarning","Array does not contain required item.")})}if(ee(l.minItems)&&u.items.length<l.minItems&&h.problems.push({location:{offset:u.offset,length:u.length},message:F("minItemsWarning","Array has too few items. Expected {0} or more.",l.minItems)}),ee(l.maxItems)&&u.items.length>l.maxItems&&h.problems.push({location:{offset:u.offset,length:u.length},message:F("maxItemsWarning","Array has too many items. Expected {0} or fewer.",l.maxItems)}),l.uniqueItems===!0){var k=ue(u),E=k.some(function(j,V){return V!==k.lastIndexOf(j)});E&&h.problems.push({location:{offset:u.offset,length:u.length},message:F("uniqueItemsWarning","Array has duplicate items.")})}}function c(u,l,h,g){for(var p=Object.create(null),m=[],d=0,A=u.properties;d<A.length;d++){var x=A[d],v=x.keyNode.value;p[v]=x.valueNode,m.push(v)}if(Array.isArray(l.required))for(var N=0,P=l.required;N<P.length;N++){var M=P[N];if(!p[M]){var T=u.parent&&u.parent.type==="property"&&u.parent.keyNode,O=T?{offset:T.offset,length:T.length}:{offset:u.offset,length:1};h.problems.push({location:O,message:F("MissingRequiredPropWarning",'Missing property "{0}".',M)})}}var y=function(Bt){for(var ot=m.indexOf(Bt);ot>=0;)m.splice(ot,1),ot=m.indexOf(Bt)};if(l.properties)for(var k=0,E=Object.keys(l.properties);k<E.length;k++){var M=E[k];y(M);var j=l.properties[M],V=p[M];if(V)if(ie(j))if(j)h.propertiesMatches++,h.propertiesValueMatches++;else{var x=V.parent;h.problems.push({location:{offset:x.keyNode.offset,length:x.keyNode.length},message:l.errorMessage||F("DisallowedExtraPropWarning","Property {0} is not allowed.",M)})}else{var $=new te;G(V,j,$,g),h.mergePropertyMatch($)}}if(l.patternProperties)for(var B=0,w=Object.keys(l.patternProperties);B<w.length;B++)for(var S=w[B],C=Se(S),I=0,W=m.slice(0);I<W.length;I++){var M=W[I];if(C==null?void 0:C.test(M)){y(M);var V=p[M];if(V){var j=l.patternProperties[S];if(ie(j))if(j)h.propertiesMatches++,h.propertiesValueMatches++;else{var x=V.parent;h.problems.push({location:{offset:x.keyNode.offset,length:x.keyNode.length},message:l.errorMessage||F("DisallowedExtraPropWarning","Property {0} is not allowed.",M)})}else{var $=new te;G(V,j,$,g),h.mergePropertyMatch($)}}}}if(typeof l.additionalProperties=="object")for(var L=0,R=m;L<R.length;L++){var M=R[L],V=p[M];if(V){var $=new te;G(V,l.additionalProperties,$,g),h.mergePropertyMatch($)}}else if(l.additionalProperties===!1&&m.length>0)for(var q=0,H=m;q<H.length;q++){var M=H[q],V=p[M];if(V){var x=V.parent;h.problems.push({location:{offset:x.keyNode.offset,length:x.keyNode.length},message:l.errorMessage||F("DisallowedExtraPropWarning","Property {0} is not allowed.",M)})}}if(ee(l.maxProperties)&&u.properties.length>l.maxProperties&&h.problems.push({location:{offset:u.offset,length:u.length},message:F("MaxPropWarning","Object has more properties than limit of {0}.",l.maxProperties)}),ee(l.minProperties)&&u.properties.length<l.minProperties&&h.problems.push({location:{offset:u.offset,length:u.length},message:F("MinPropWarning","Object has fewer properties than the required number of {0}",l.minProperties)}),l.dependencies)for(var re=0,xe=Object.keys(l.dependencies);re<xe.length;re++){var v=xe[re],he=p[v];if(he){var nt=l.dependencies[v];if(Array.isArray(nt))for(var it=0,Ut=nt;it<Ut.length;it++){var Wt=Ut[it];p[Wt]?h.propertiesValueMatches++:h.problems.push({location:{offset:u.offset,length:u.length},message:F("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",Wt,v)})}else{var j=K(nt);if(j){var $=new te;G(u,j,$,g),h.mergePropertyMatch($)}}}}var Jt=K(l.propertyNames);if(Jt)for(var at=0,qt=u.properties;at<qt.length;at++){var qr=qt[at],v=qr.keyNode;v&&G(v,Jt,h,Nt.instance)}}}function Tr(t,r){var i=[],e=-1,n=t.getText(),a=le(n,!1),o=r&&r.collectComments?[]:void 0;function s(){for(;;){var T=a.scan();switch(l(),T){case 12:case 13:Array.isArray(o)&&o.push(U.create(t.positionAt(a.getTokenOffset()),t.positionAt(a.getTokenOffset()+a.getTokenLength())));break;case 15:case 14:break;default:return T}}}function f(T){return a.getToken()===T?(s(),!0):!1}function c(T,O,y,k,E){if(E===void 0&&(E=X.Error),i.length===0||y!==e){var j=U.create(t.positionAt(y),t.positionAt(k));i.push(ae.create(j,T,E,O,t.languageId)),e=y}}function u(T,O,y,k,E){y===void 0&&(y=void 0),k===void 0&&(k=[]),E===void 0&&(E=[]);var j=a.getTokenOffset(),V=a.getTokenOffset()+a.getTokenLength();if(j===V&&j>0){for(j--;j>0&&/\s/.test(n.charAt(j));)j--;V=j+1}if(c(T,O,j,V),y&&h(y,!1),k.length+E.length>0)for(var $=a.getToken();$!==17;){if(k.indexOf($)!==-1){s();break}else if(E.indexOf($)!==-1)break;$=s()}return y}function l(){switch(a.getTokenError()){case 4:return u(F("InvalidUnicode","Invalid unicode sequence in string."),J.InvalidUnicode),!0;case 5:return u(F("InvalidEscapeCharacter","Invalid escape character in string."),J.InvalidEscapeCharacter),!0;case 3:return u(F("UnexpectedEndOfNumber","Unexpected end of number."),J.UnexpectedEndOfNumber),!0;case 1:return u(F("UnexpectedEndOfComment","Unexpected end of comment."),J.UnexpectedEndOfComment),!0;case 2:return u(F("UnexpectedEndOfString","Unexpected end of string."),J.UnexpectedEndOfString),!0;case 6:return u(F("InvalidCharacter","Invalid characters in string. Control characters must be escaped."),J.InvalidCharacter),!0}return!1}function h(T,O){return T.length=a.getTokenOffset()+a.getTokenLength()-T.offset,O&&s(),T}function g(T){if(a.getToken()===3){var O=new an(T,a.getTokenOffset());s();for(var y=0,k=!1;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){k||u(F("ValueExpected","Value expected"),J.ValueExpected);var E=a.getTokenOffset();if(s(),a.getToken()===4){k&&c(F("TrailingComma","Trailing comma"),J.TrailingComma,E,E+1);continue}}else k&&u(F("ExpectedComma","Expected comma"),J.CommaExpected);var j=N(O);j?O.items.push(j):u(F("PropertyExpected","Value expected"),J.ValueExpected,void 0,[],[4,5]),k=!0}return a.getToken()!==4?u(F("ExpectedCloseBracket","Expected comma or closing bracket"),J.CommaOrCloseBacketExpected,O):h(O,!0)}}var p=new It(void 0,0,0);function m(T,O){var y=new sn(T,a.getTokenOffset(),p),k=A(y);if(!k)if(a.getToken()===16){u(F("DoubleQuotesExpected","Property keys must be doublequoted"),J.Undefined);var E=new It(y,a.getTokenOffset(),a.getTokenLength());E.value=a.getTokenValue(),k=E,s()}else return;y.keyNode=k;var j=O[k.value];if(j?(c(F("DuplicateKeyWarning","Duplicate object key"),J.DuplicateKey,y.keyNode.offset,y.keyNode.offset+y.keyNode.length,X.Warning),typeof j=="object"&&c(F("DuplicateKeyWarning","Duplicate object key"),J.DuplicateKey,j.keyNode.offset,j.keyNode.offset+j.keyNode.length,X.Warning),O[k.value]=!0):O[k.value]=y,a.getToken()===6)y.colonOffset=a.getTokenOffset(),s();else if(u(F("ColonExpected","Colon expected"),J.ColonExpected),a.getToken()===10&&t.positionAt(k.offset+k.length).line<t.positionAt(a.getTokenOffset()).line)return y.length=k.length,y;var V=N(y);return V?(y.valueNode=V,y.length=V.offset+V.length-y.offset,y):u(F("ValueExpected","Value expected"),J.ValueExpected,y,[],[2,5])}function d(T){if(a.getToken()===1){var O=new fn(T,a.getTokenOffset()),y=Object.create(null);s();for(var k=!1;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){k||u(F("PropertyExpected","Property expected"),J.PropertyExpected);var E=a.getTokenOffset();if(s(),a.getToken()===2){k&&c(F("TrailingComma","Trailing comma"),J.TrailingComma,E,E+1);continue}}else k&&u(F("ExpectedComma","Expected comma"),J.CommaExpected);var j=m(O,y);j?O.properties.push(j):u(F("PropertyExpected","Property expected"),J.PropertyExpected,void 0,[],[2,5]),k=!0}return a.getToken()!==2?u(F("ExpectedCloseBrace","Expected comma or closing brace"),J.CommaOrCloseBraceExpected,O):h(O,!0)}}function A(T){if(a.getToken()===10){var O=new It(T,a.getTokenOffset());return O.value=a.getTokenValue(),h(O,!0)}}function x(T){if(a.getToken()===11){var O=new on(T,a.getTokenOffset());if(a.getTokenError()===0){var y=a.getTokenValue();try{var k=JSON.parse(y);if(!ee(k))return u(F("InvalidNumberFormat","Invalid number format."),J.Undefined,O);O.value=k}catch{return u(F("InvalidNumberFormat","Invalid number format."),J.Undefined,O)}O.isInteger=y.indexOf(".")===-1}return h(O,!0)}}function v(T){var O;switch(a.getToken()){case 7:return h(new nn(T,a.getTokenOffset()),!0);case 8:return h(new br(T,!0,a.getTokenOffset()),!0);case 9:return h(new br(T,!1,a.getTokenOffset()),!0);default:return}}function N(T){return g(T)||d(T)||A(T)||x(T)||v(T)}var P=void 0,M=s();return M!==17&&(P=N(P),P?a.getToken()!==17&&u(F("End of file expected","End of file expected."),J.Undefined):u(F("Invalid symbol","Expected a JSON object, array or literal."),J.Undefined)),new Ar(P,i,o)}function Ze(t,r,i){if(t!==null&&typeof t=="object"){var e=r+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var n=`[
- `,a=0;a<t.length;a++)n+=e+Ze(t[a],e,i),a<t.length-1&&(n+=","),n+=`
- `;return n+=r+"]",n}else{var o=Object.keys(t);if(o.length===0)return"{}";for(var n=`{
- `,a=0;a<o.length;a++){var s=o[a];n+=e+JSON.stringify(s)+": "+Ze(t[s],e,i),a<o.length-1&&(n+=","),n+=`
- `}return n+=r+"}",n}}return i(t)}var Vt=ce(),ln=[",","}","]"],cn=[":"],wr=function(){function t(r,i,e,n){i===void 0&&(i=[]),e===void 0&&(e=Promise),n===void 0&&(n={}),this.schemaService=r,this.contributions=i,this.promiseConstructor=e,this.clientCapabilities=n}return t.prototype.doResolve=function(r){for(var i=this.contributions.length-1;i>=0;i--){var e=this.contributions[i].resolveCompletion;if(e){var n=e(r);if(n)return n}}return this.promiseConstructor.resolve(r)},t.prototype.doComplete=function(r,i,e){var n=this,a={items:[],isIncomplete:!1},o=r.getText(),s=r.offsetAt(i),f=e.getNodeFromOffset(s,!0);if(this.isInComment(r,f?f.offset:0,s))return Promise.resolve(a);if(f&&s===f.offset+f.length&&s>0){var c=o[s-1];(f.type==="object"&&c==="}"||f.type==="array"&&c==="]")&&(f=f.parent)}var u=this.getCurrentWord(r,s),l;if(f&&(f.type==="string"||f.type==="number"||f.type==="boolean"||f.type==="null"))l=U.create(r.positionAt(f.offset),r.positionAt(f.offset+f.length));else{var h=s-u.length;h>0&&o[h-1]==='"'&&h--,l=U.create(r.positionAt(h),i)}var g=!1,p={},m={add:function(d){var A=d.label,x=p[A];if(x)x.documentation||(x.documentation=d.documentation),x.detail||(x.detail=d.detail);else{if(A=A.replace(/[\n]/g,"\u21B5"),A.length>60){var v=A.substr(0,57).trim()+"...";p[v]||(A=v)}l&&d.insertText!==void 0&&(d.textEdit=Y.replace(l,d.insertText)),g&&(d.commitCharacters=d.kind===Q.Property?cn:ln),d.label=A,p[A]=d,a.items.push(d)}},setAsIncomplete:function(){a.isIncomplete=!0},error:function(d){console.error(d)},log:function(d){console.log(d)},getNumberOfProposals:function(){return a.items.length}};return this.schemaService.getSchemaForResource(r.uri,e).then(function(d){var A=[],x=!0,v="",N=void 0;if(f&&f.type==="string"){var P=f.parent;P&&P.type==="property"&&P.keyNode===f&&(x=!P.valueNode,N=P,v=o.substr(f.offset+1,f.length-2),P&&(f=P.parent))}if(f&&f.type==="object"){if(f.offset===s)return a;var M=f.properties;M.forEach(function(k){(!N||N!==k)&&(p[k.keyNode.value]=$e.create("__"))});var T="";x&&(T=n.evaluateSeparatorAfter(r,r.offsetAt(l.end))),d?n.getPropertyCompletions(d,e,f,x,T,m):n.getSchemaLessPropertyCompletions(e,f,v,m);var O=We(f);n.contributions.forEach(function(k){var E=k.collectPropertyCompletions(r.uri,O,u,x,T==="",m);E&&A.push(E)}),!d&&u.length>0&&o.charAt(s-u.length-1)!=='"'&&(m.add({kind:Q.Property,label:n.getLabelForValue(u),insertText:n.getInsertTextForProperty(u,void 0,!1,T),insertTextFormat:_.Snippet,documentation:""}),m.setAsIncomplete())}var y={};return d?n.getValueCompletions(d,e,f,s,r,m,y):n.getSchemaLessValueCompletions(e,f,s,r,m),n.contributions.length>0&&n.getContributedValueCompletions(e,f,s,r,m,A),n.promiseConstructor.all(A).then(function(){if(m.getNumberOfProposals()===0){var k=s;f&&(f.type==="string"||f.type==="number"||f.type==="boolean"||f.type==="null")&&(k=f.offset+f.length);var E=n.evaluateSeparatorAfter(r,k);n.addFillerValueCompletions(y,E,m)}return a})})},t.prototype.getPropertyCompletions=function(r,i,e,n,a,o){var s=this,f=i.getMatchingSchemas(r.schema,e.offset);f.forEach(function(c){if(c.node===e&&!c.inverted){var u=c.schema.properties;u&&Object.keys(u).forEach(function(m){var d=u[m];if(typeof d=="object"&&!d.deprecationMessage&&!d.doNotSuggest){var A={kind:Q.Property,label:m,insertText:s.getInsertTextForProperty(m,d,n,a),insertTextFormat:_.Snippet,filterText:s.getFilterTextForValue(m),documentation:s.fromMarkup(d.markdownDescription)||d.description||""};d.suggestSortText!==void 0&&(A.sortText=d.suggestSortText),A.insertText&&ge(A.insertText,"$1"+a)&&(A.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(A)}});var l=c.schema.propertyNames;if(typeof l=="object"&&!l.deprecationMessage&&!l.doNotSuggest){var h=function(m,d){d===void 0&&(d=void 0);var A={kind:Q.Property,label:m,insertText:s.getInsertTextForProperty(m,void 0,n,a),insertTextFormat:_.Snippet,filterText:s.getFilterTextForValue(m),documentation:d||s.fromMarkup(l.markdownDescription)||l.description||""};l.suggestSortText!==void 0&&(A.sortText=l.suggestSortText),A.insertText&&ge(A.insertText,"$1"+a)&&(A.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(A)};if(l.enum)for(var g=0;g<l.enum.length;g++){var p=void 0;l.markdownEnumDescriptions&&g<l.markdownEnumDescriptions.length?p=s.fromMarkup(l.markdownEnumDescriptions[g]):l.enumDescriptions&&g<l.enumDescriptions.length&&(p=l.enumDescriptions[g]),h(l.enum[g],p)}l.const&&h(l.const)}}})},t.prototype.getSchemaLessPropertyCompletions=function(r,i,e,n){var a=this,o=function(f){f.properties.forEach(function(c){var u=c.keyNode.value;n.add({kind:Q.Property,label:u,insertText:a.getInsertTextForValue(u,""),insertTextFormat:_.Snippet,filterText:a.getFilterTextForValue(u),documentation:""})})};if(i.parent)if(i.parent.type==="property"){var s=i.parent.keyNode.value;r.visit(function(f){return f.type==="property"&&f!==i.parent&&f.keyNode.value===s&&f.valueNode&&f.valueNode.type==="object"&&o(f.valueNode),!0})}else i.parent.type==="array"&&i.parent.items.forEach(function(f){f.type==="object"&&f!==i&&o(f)});else i.type==="object"&&n.add({kind:Q.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:_.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},t.prototype.getSchemaLessValueCompletions=function(r,i,e,n,a){var o=this,s=e;if(i&&(i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(s=i.offset+i.length,i=i.parent),!i){a.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:_.Snippet,documentation:""}),a.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:_.Snippet,documentation:""});return}var f=this.evaluateSeparatorAfter(n,s),c=function(g){g.parent&&!Mt(g.parent,e,!0)&&a.add({kind:o.getSuggestionKind(g.type),label:o.getLabelTextForMatchingNode(g,n),insertText:o.getInsertTextForMatchingNode(g,n,f),insertTextFormat:_.Snippet,documentation:""}),g.type==="boolean"&&o.addBooleanValueCompletion(!g.value,f,a)};if(i.type==="property"&&e>(i.colonOffset||0)){var u=i.valueNode;if(u&&(e>u.offset+u.length||u.type==="object"||u.type==="array"))return;var l=i.keyNode.value;r.visit(function(g){return g.type==="property"&&g.keyNode.value===l&&g.valueNode&&c(g.valueNode),!0}),l==="$schema"&&i.parent&&!i.parent.parent&&this.addDollarSchemaCompletions(f,a)}if(i.type==="array")if(i.parent&&i.parent.type==="property"){var h=i.parent.keyNode.value;r.visit(function(g){return g.type==="property"&&g.keyNode.value===h&&g.valueNode&&g.valueNode.type==="array"&&g.valueNode.items.forEach(c),!0})}else i.items.forEach(c)},t.prototype.getValueCompletions=function(r,i,e,n,a,o,s){var f=n,c=void 0,u=void 0;if(e&&(e.type==="string"||e.type==="number"||e.type==="boolean"||e.type==="null")&&(f=e.offset+e.length,u=e,e=e.parent),!e){this.addSchemaValueCompletions(r.schema,"",o,s);return}if(e.type==="property"&&n>(e.colonOffset||0)){var l=e.valueNode;if(l&&n>l.offset+l.length)return;c=e.keyNode.value,e=e.parent}if(e&&(c!==void 0||e.type==="array")){for(var h=this.evaluateSeparatorAfter(a,f),g=i.getMatchingSchemas(r.schema,e.offset,u),p=0,m=g;p<m.length;p++){var d=m[p];if(d.node===e&&!d.inverted&&d.schema){if(e.type==="array"&&d.schema.items)if(Array.isArray(d.schema.items)){var A=this.findItemAtOffset(e,a,n);A<d.schema.items.length&&this.addSchemaValueCompletions(d.schema.items[A],h,o,s)}else this.addSchemaValueCompletions(d.schema.items,h,o,s);if(c!==void 0){var x=!1;if(d.schema.properties){var v=d.schema.properties[c];v&&(x=!0,this.addSchemaValueCompletions(v,h,o,s))}if(d.schema.patternProperties&&!x)for(var N=0,P=Object.keys(d.schema.patternProperties);N<P.length;N++){var M=P[N],T=Se(M);if(T==null?void 0:T.test(c)){x=!0;var v=d.schema.patternProperties[M];this.addSchemaValueCompletions(v,h,o,s)}}if(d.schema.additionalProperties&&!x){var v=d.schema.additionalProperties;this.addSchemaValueCompletions(v,h,o,s)}}}}c==="$schema"&&!e.parent&&this.addDollarSchemaCompletions(h,o),s.boolean&&(this.addBooleanValueCompletion(!0,h,o),this.addBooleanValueCompletion(!1,h,o)),s.null&&this.addNullValueCompletion(h,o)}},t.prototype.getContributedValueCompletions=function(r,i,e,n,a,o){if(!i)this.contributions.forEach(function(u){var l=u.collectDefaultCompletions(n.uri,a);l&&o.push(l)});else if((i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(i=i.parent),i&&i.type==="property"&&e>(i.colonOffset||0)){var s=i.keyNode.value,f=i.valueNode;if((!f||e<=f.offset+f.length)&&i.parent){var c=We(i.parent);this.contributions.forEach(function(u){var l=u.collectValueCompletions(n.uri,c,s,a);l&&o.push(l)})}}},t.prototype.addSchemaValueCompletions=function(r,i,e,n){var a=this;typeof r=="object"&&(this.addEnumValueCompletions(r,i,e),this.addDefaultValueCompletions(r,i,e),this.collectTypes(r,n),Array.isArray(r.allOf)&&r.allOf.forEach(function(o){return a.addSchemaValueCompletions(o,i,e,n)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(o){return a.addSchemaValueCompletions(o,i,e,n)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(o){return a.addSchemaValueCompletions(o,i,e,n)}))},t.prototype.addDefaultValueCompletions=function(r,i,e,n){var a=this;n===void 0&&(n=0);var o=!1;if(se(r.default)){for(var s=r.type,f=r.default,c=n;c>0;c--)f=[f],s="array";e.add({kind:this.getSuggestionKind(s),label:this.getLabelForValue(f),insertText:this.getInsertTextForValue(f,i),insertTextFormat:_.Snippet,detail:Vt("json.suggest.default","Default value")}),o=!0}Array.isArray(r.examples)&&r.examples.forEach(function(u){for(var l=r.type,h=u,g=n;g>0;g--)h=[h],l="array";e.add({kind:a.getSuggestionKind(l),label:a.getLabelForValue(h),insertText:a.getInsertTextForValue(h,i),insertTextFormat:_.Snippet}),o=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(u){var l=r.type,h=u.body,g=u.label,p,m;if(se(h)){for(var d=r.type,A=n;A>0;A--)h=[h],d="array";p=a.getInsertTextForSnippetValue(h,i),m=a.getFilterTextForSnippetValue(h),g=g||a.getLabelForSnippetValue(h)}else if(typeof u.bodyText=="string"){for(var x="",v="",N="",A=n;A>0;A--)x=x+N+`[
- `,v=v+`
- `+N+"]",N+=" ",l="array";p=x+N+u.bodyText.split(`
- `).join(`
- `+N)+v+i,g=g||p,m=p.replace(/[\n]/g,"")}else return;e.add({kind:a.getSuggestionKind(l),label:g,documentation:a.fromMarkup(u.markdownDescription)||u.description,insertText:p,insertTextFormat:_.Snippet,filterText:m}),o=!0}),!o&&typeof r.items=="object"&&!Array.isArray(r.items)&&n<5&&this.addDefaultValueCompletions(r.items,i,e,n+1)},t.prototype.addEnumValueCompletions=function(r,i,e){if(se(r.const)&&e.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,i),insertTextFormat:_.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var n=0,a=r.enum.length;n<a;n++){var o=r.enum[n],s=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&n<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?s=this.fromMarkup(r.markdownEnumDescriptions[n]):r.enumDescriptions&&n<r.enumDescriptions.length&&(s=r.enumDescriptions[n]),e.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(o),insertText:this.getInsertTextForValue(o,i),insertTextFormat:_.Snippet,documentation:s})}},t.prototype.collectTypes=function(r,i){if(!(Array.isArray(r.enum)||se(r.const))){var e=r.type;Array.isArray(e)?e.forEach(function(n){return i[n]=!0}):e&&(i[e]=!0)}},t.prototype.addFillerValueCompletions=function(r,i,e){r.object&&e.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},i),insertTextFormat:_.Snippet,detail:Vt("defaults.object","New object"),documentation:""}),r.array&&e.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],i),insertTextFormat:_.Snippet,detail:Vt("defaults.array","New array"),documentation:""})},t.prototype.addBooleanValueCompletion=function(r,i,e){e.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,i),insertTextFormat:_.Snippet,documentation:""})},t.prototype.addNullValueCompletion=function(r,i){i.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:_.Snippet,documentation:""})},t.prototype.addDollarSchemaCompletions=function(r,i){var e=this,n=this.schemaService.getRegisteredSchemaIds(function(a){return a==="http"||a==="https"});n.forEach(function(a){return i.add({kind:Q.Module,label:e.getLabelForValue(a),filterText:e.getFilterTextForValue(a),insertText:e.getInsertTextForValue(a,r),insertTextFormat:_.Snippet,documentation:""})})},t.prototype.getLabelForValue=function(r){return JSON.stringify(r)},t.prototype.getFilterTextForValue=function(r){return JSON.stringify(r)},t.prototype.getFilterTextForSnippetValue=function(r){return JSON.stringify(r).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},t.prototype.getLabelForSnippetValue=function(r){var i=JSON.stringify(r);return i.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},t.prototype.getInsertTextForPlainText=function(r){return r.replace(/[\\\$\}]/g,"\\$&")},t.prototype.getInsertTextForValue=function(r,i){var e=JSON.stringify(r,null," ");return e==="{}"?"{$1}"+i:e==="[]"?"[$1]"+i:this.getInsertTextForPlainText(e+i)},t.prototype.getInsertTextForSnippetValue=function(r,i){var e=function(n){return typeof n=="string"&&n[0]==="^"?n.substr(1):JSON.stringify(n)};return Ze(r,"",e)+i},t.prototype.getInsertTextForGuessedValue=function(r,i){switch(typeof r){case"object":return r===null?"${1:null}"+i:this.getInsertTextForValue(r,i);case"string":var e=JSON.stringify(r);return e=e.substr(1,e.length-2),e=this.getInsertTextForPlainText(e),'"${1:'+e+'}"'+i;case"number":case"boolean":return"${1:"+JSON.stringify(r)+"}"+i}return this.getInsertTextForValue(r,i)},t.prototype.getSuggestionKind=function(r){if(Array.isArray(r)){var i=r;r=i.length>0?i[0]:void 0}if(!r)return Q.Value;switch(r){case"string":return Q.Value;case"object":return Q.Module;case"property":return Q.Property;default:return Q.Value}},t.prototype.getLabelTextForMatchingNode=function(r,i){switch(r.type){case"array":return"[]";case"object":return"{}";default:var e=i.getText().substr(r.offset,r.length);return e}},t.prototype.getInsertTextForMatchingNode=function(r,i,e){switch(r.type){case"array":return this.getInsertTextForValue([],e);case"object":return this.getInsertTextForValue({},e);default:var n=i.getText().substr(r.offset,r.length)+e;return this.getInsertTextForPlainText(n)}},t.prototype.getInsertTextForProperty=function(r,i,e,n){var a=this.getInsertTextForValue(r,"");if(!e)return a;var o=a+": ",s,f=0;if(i){if(Array.isArray(i.defaultSnippets)){if(i.defaultSnippets.length===1){var c=i.defaultSnippets[0].body;se(c)&&(s=this.getInsertTextForSnippetValue(c,""))}f+=i.defaultSnippets.length}if(i.enum&&(!s&&i.enum.length===1&&(s=this.getInsertTextForGuessedValue(i.enum[0],"")),f+=i.enum.length),se(i.default)&&(s||(s=this.getInsertTextForGuessedValue(i.default,"")),f++),Array.isArray(i.examples)&&i.examples.length&&(s||(s=this.getInsertTextForGuessedValue(i.examples[0],"")),f+=i.examples.length),f===0){var u=Array.isArray(i.type)?i.type[0]:i.type;switch(u||(i.properties?u="object":i.items&&(u="array")),u){case"boolean":s="$1";break;case"string":s='"$1"';break;case"object":s="{$1}";break;case"array":s="[$1]";break;case"number":case"integer":s="${1:0}";break;case"null":s="${1:null}";break;default:return a}}}return(!s||f>1)&&(s="$1"),o+s+n},t.prototype.getCurrentWord=function(r,i){for(var e=i-1,n=r.getText();e>=0&&`
- \r\v":{[,]}`.indexOf(n.charAt(e))===-1;)e--;return n.substring(e+1,i)},t.prototype.evaluateSeparatorAfter=function(r,i){var e=le(r.getText(),!0);e.setPosition(i);var n=e.scan();switch(n){case 5:case 2:case 4:case 17:return"";default:return","}},t.prototype.findItemAtOffset=function(r,i,e){for(var n=le(i.getText(),!0),a=r.items,o=a.length-1;o>=0;o--){var s=a[o];if(e>s.offset+s.length){n.setPosition(s.offset+s.length);var f=n.scan();return f===5&&e>=n.getTokenOffset()+n.getTokenLength()?o+1:o}else if(e>=s.offset)return o}return 0},t.prototype.isInComment=function(r,i,e){var n=le(r.getText(),!1);n.setPosition(i);for(var a=n.scan();a!==17&&n.getTokenOffset()+n.getTokenLength()<e;)a=n.scan();return(a===12||a===13)&&n.getTokenOffset()<=e},t.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:fe.Markdown,value:r}},t.prototype.doesSupportMarkdown=function(){if(!se(this.supportsMarkdown)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=r&&r.completionItem&&Array.isArray(r.completionItem.documentationFormat)&&r.completionItem.documentationFormat.indexOf(fe.Markdown)!==-1}return this.supportsMarkdown},t.prototype.doesSupportsCommitCharacters=function(){if(!se(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},t}();var kr=function(){function t(r,i,e){i===void 0&&(i=[]),this.schemaService=r,this.contributions=i,this.promise=e||Promise}return t.prototype.doHover=function(r,i,e){var n=r.offsetAt(i),a=e.getNodeFromOffset(n);if(!a||(a.type==="object"||a.type==="array")&&n>a.offset+1&&n<a.offset+a.length-1)return this.promise.resolve(null);var o=a;if(a.type==="string"){var s=a.parent;if(s&&s.type==="property"&&s.keyNode===a&&(a=s.valueNode,!a))return this.promise.resolve(null)}for(var f=U.create(r.positionAt(o.offset),r.positionAt(o.offset+o.length)),c=function(p){var m={contents:p,range:f};return m},u=We(a),l=this.contributions.length-1;l>=0;l--){var h=this.contributions[l],g=h.getInfoContribution(r.uri,u);if(g)return g.then(function(p){return c(p)})}return this.schemaService.getSchemaForResource(r.uri,e).then(function(p){if(p&&a){var m=e.getMatchingSchemas(p.schema,a.offset),d=void 0,A=void 0,x=void 0,v=void 0;m.every(function(P){if(P.node===a&&!P.inverted&&P.schema&&(d=d||P.schema.title,A=A||P.schema.markdownDescription||Ft(P.schema.description),P.schema.enum)){var M=P.schema.enum.indexOf(ue(a));P.schema.markdownEnumDescriptions?x=P.schema.markdownEnumDescriptions[M]:P.schema.enumDescriptions&&(x=Ft(P.schema.enumDescriptions[M])),x&&(v=P.schema.enum[M],typeof v!="string"&&(v=JSON.stringify(v)))}return!0});var N="";return d&&(N=Ft(d)),A&&(N.length>0&&(N+=`
- `),N+=A),x&&(N.length>0&&(N+=`
- `),N+="`"+hn(v)+"`: "+x),c([N])}return null})},t}();function Ft(t){if(t){var r=t.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
- $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function hn(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var Cr;Cr=(()=>{"use strict";var t={470:e=>{function n(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function a(s,f){for(var c,u="",l=0,h=-1,g=0,p=0;p<=s.length;++p){if(p<s.length)c=s.charCodeAt(p);else{if(c===47)break;c=47}if(c===47){if(!(h===p-1||g===1))if(h!==p-1&&g===2){if(u.length<2||l!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var m=u.lastIndexOf("/");if(m!==u.length-1){m===-1?(u="",l=0):l=(u=u.slice(0,m)).length-1-u.lastIndexOf("/"),h=p,g=0;continue}}else if(u.length===2||u.length===1){u="",l=0,h=p,g=0;continue}}f&&(u.length>0?u+="/..":u="..",l=2)}else u.length>0?u+="/"+s.slice(h+1,p):u=s.slice(h+1,p),l=p-h-1;h=p,g=0}else c===46&&g!==-1?++g:g=-1}return u}var o={resolve:function(){for(var s,f="",c=!1,u=arguments.length-1;u>=-1&&!c;u--){var l;u>=0?l=arguments[u]:(s===void 0&&(s=process.cwd()),l=s),n(l),l.length!==0&&(f=l+"/"+f,c=l.charCodeAt(0)===47)}return f=a(f,!c),c?f.length>0?"/"+f:"/":f.length>0?f:"."},normalize:function(s){if(n(s),s.length===0)return".";var f=s.charCodeAt(0)===47,c=s.charCodeAt(s.length-1)===47;return(s=a(s,!f)).length!==0||f||(s="."),s.length>0&&c&&(s+="/"),f?"/"+s:s},isAbsolute:function(s){return n(s),s.length>0&&s.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var s,f=0;f<arguments.length;++f){var c=arguments[f];n(c),c.length>0&&(s===void 0?s=c:s+="/"+c)}return s===void 0?".":o.normalize(s)},relative:function(s,f){if(n(s),n(f),s===f||(s=o.resolve(s))===(f=o.resolve(f)))return"";for(var c=1;c<s.length&&s.charCodeAt(c)===47;++c);for(var u=s.length,l=u-c,h=1;h<f.length&&f.charCodeAt(h)===47;++h);for(var g=f.length-h,p=l<g?l:g,m=-1,d=0;d<=p;++d){if(d===p){if(g>p){if(f.charCodeAt(h+d)===47)return f.slice(h+d+1);if(d===0)return f.slice(h+d)}else l>p&&(s.charCodeAt(c+d)===47?m=d:d===0&&(m=0));break}var A=s.charCodeAt(c+d);if(A!==f.charCodeAt(h+d))break;A===47&&(m=d)}var x="";for(d=c+m+1;d<=u;++d)d!==u&&s.charCodeAt(d)!==47||(x.length===0?x+="..":x+="/..");return x.length>0?x+f.slice(h+m):(h+=m,f.charCodeAt(h)===47&&++h,f.slice(h))},_makeLong:function(s){return s},dirname:function(s){if(n(s),s.length===0)return".";for(var f=s.charCodeAt(0),c=f===47,u=-1,l=!0,h=s.length-1;h>=1;--h)if((f=s.charCodeAt(h))===47){if(!l){u=h;break}}else l=!1;return u===-1?c?"/":".":c&&u===1?"//":s.slice(0,u)},basename:function(s,f){if(f!==void 0&&typeof f!="string")throw new TypeError('"ext" argument must be a string');n(s);var c,u=0,l=-1,h=!0;if(f!==void 0&&f.length>0&&f.length<=s.length){if(f.length===s.length&&f===s)return"";var g=f.length-1,p=-1;for(c=s.length-1;c>=0;--c){var m=s.charCodeAt(c);if(m===47){if(!h){u=c+1;break}}else p===-1&&(h=!1,p=c+1),g>=0&&(m===f.charCodeAt(g)?--g==-1&&(l=c):(g=-1,l=p))}return u===l?l=p:l===-1&&(l=s.length),s.slice(u,l)}for(c=s.length-1;c>=0;--c)if(s.charCodeAt(c)===47){if(!h){u=c+1;break}}else l===-1&&(h=!1,l=c+1);return l===-1?"":s.slice(u,l)},extname:function(s){n(s);for(var f=-1,c=0,u=-1,l=!0,h=0,g=s.length-1;g>=0;--g){var p=s.charCodeAt(g);if(p!==47)u===-1&&(l=!1,u=g+1),p===46?f===-1?f=g:h!==1&&(h=1):f!==-1&&(h=-1);else if(!l){c=g+1;break}}return f===-1||u===-1||h===0||h===1&&f===u-1&&f===c+1?"":s.slice(f,u)},format:function(s){if(s===null||typeof s!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof s);return function(f,c){var u=c.dir||c.root,l=c.base||(c.name||"")+(c.ext||"");return u?u===c.root?u+l:u+"/"+l:l}(0,s)},parse:function(s){n(s);var f={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return f;var c,u=s.charCodeAt(0),l=u===47;l?(f.root="/",c=1):c=0;for(var h=-1,g=0,p=-1,m=!0,d=s.length-1,A=0;d>=c;--d)if((u=s.charCodeAt(d))!==47)p===-1&&(m=!1,p=d+1),u===46?h===-1?h=d:A!==1&&(A=1):h!==-1&&(A=-1);else if(!m){g=d+1;break}return h===-1||p===-1||A===0||A===1&&h===p-1&&h===g+1?p!==-1&&(f.base=f.name=g===0&&l?s.slice(1,p):s.slice(g,p)):(g===0&&l?(f.name=s.slice(1,h),f.base=s.slice(1,p)):(f.name=s.slice(g,h),f.base=s.slice(g,p)),f.ext=s.slice(h,p)),g>0?f.dir=s.slice(0,g-1):l&&(f.dir="/"),f},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,e.exports=o},447:(e,n,a)=>{var o;if(a.r(n),a.d(n,{URI:()=>A,Utils:()=>j}),typeof process=="object")o=process.platform==="win32";else if(typeof navigator=="object"){var s=navigator.userAgent;o=s.indexOf("Windows")>=0}var f,c,u=(f=function(w,S){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,I){C.__proto__=I}||function(C,I){for(var W in I)Object.prototype.hasOwnProperty.call(I,W)&&(C[W]=I[W])})(w,S)},function(w,S){function C(){this.constructor=w}f(w,S),w.prototype=S===null?Object.create(S):(C.prototype=S.prototype,new C)}),l=/^\w[\w\d+.-]*$/,h=/^\//,g=/^\/\//,p="",m="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,A=function(){function w(S,C,I,W,L,R){R===void 0&&(R=!1),typeof S=="object"?(this.scheme=S.scheme||p,this.authority=S.authority||p,this.path=S.path||p,this.query=S.query||p,this.fragment=S.fragment||p):(this.scheme=function(q,H){return q||H?q:"file"}(S,R),this.authority=C||p,this.path=function(q,H){switch(q){case"https":case"http":case"file":H?H[0]!==m&&(H=m+H):H=m}return H}(this.scheme,I||p),this.query=W||p,this.fragment=L||p,function(q,H){if(!q.scheme&&H)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+q.authority+'", path: "'+q.path+'", query: "'+q.query+'", fragment: "'+q.fragment+'"}');if(q.scheme&&!l.test(q.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(q.path){if(q.authority){if(!h.test(q.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(g.test(q.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,R))}return w.isUri=function(S){return S instanceof w||!!S&&typeof S.authority=="string"&&typeof S.fragment=="string"&&typeof S.path=="string"&&typeof S.query=="string"&&typeof S.scheme=="string"&&typeof S.fsPath=="function"&&typeof S.with=="function"&&typeof S.toString=="function"},Object.defineProperty(w.prototype,"fsPath",{get:function(){return T(this,!1)},enumerable:!1,configurable:!0}),w.prototype.with=function(S){if(!S)return this;var C=S.scheme,I=S.authority,W=S.path,L=S.query,R=S.fragment;return C===void 0?C=this.scheme:C===null&&(C=p),I===void 0?I=this.authority:I===null&&(I=p),W===void 0?W=this.path:W===null&&(W=p),L===void 0?L=this.query:L===null&&(L=p),R===void 0?R=this.fragment:R===null&&(R=p),C===this.scheme&&I===this.authority&&W===this.path&&L===this.query&&R===this.fragment?this:new v(C,I,W,L,R)},w.parse=function(S,C){C===void 0&&(C=!1);var I=d.exec(S);return I?new v(I[2]||p,E(I[4]||p),E(I[5]||p),E(I[7]||p),E(I[9]||p),C):new v(p,p,p,p,p)},w.file=function(S){var C=p;if(o&&(S=S.replace(/\\/g,m)),S[0]===m&&S[1]===m){var I=S.indexOf(m,2);I===-1?(C=S.substring(2),S=m):(C=S.substring(2,I),S=S.substring(I)||m)}return new v("file",C,S,p,p)},w.from=function(S){return new v(S.scheme,S.authority,S.path,S.query,S.fragment)},w.prototype.toString=function(S){return S===void 0&&(S=!1),O(this,S)},w.prototype.toJSON=function(){return this},w.revive=function(S){if(S){if(S instanceof w)return S;var C=new v(S);return C._formatted=S.external,C._fsPath=S._sep===x?S.fsPath:null,C}return S},w}(),x=o?1:void 0,v=function(w){function S(){var C=w!==null&&w.apply(this,arguments)||this;return C._formatted=null,C._fsPath=null,C}return u(S,w),Object.defineProperty(S.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=T(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),S.prototype.toString=function(C){return C===void 0&&(C=!1),C?O(this,!0):(this._formatted||(this._formatted=O(this,!1)),this._formatted)},S.prototype.toJSON=function(){var C={$mid:1};return this._fsPath&&(C.fsPath=this._fsPath,C._sep=x),this._formatted&&(C.external=this._formatted),this.path&&(C.path=this.path),this.scheme&&(C.scheme=this.scheme),this.authority&&(C.authority=this.authority),this.query&&(C.query=this.query),this.fragment&&(C.fragment=this.fragment),C},S}(A),N=((c={})[58]="%3A",c[47]="%2F",c[63]="%3F",c[35]="%23",c[91]="%5B",c[93]="%5D",c[64]="%40",c[33]="%21",c[36]="%24",c[38]="%26",c[39]="%27",c[40]="%28",c[41]="%29",c[42]="%2A",c[43]="%2B",c[44]="%2C",c[59]="%3B",c[61]="%3D",c[32]="%20",c);function P(w,S){for(var C=void 0,I=-1,W=0;W<w.length;W++){var L=w.charCodeAt(W);if(L>=97&&L<=122||L>=65&&L<=90||L>=48&&L<=57||L===45||L===46||L===95||L===126||S&&L===47)I!==-1&&(C+=encodeURIComponent(w.substring(I,W)),I=-1),C!==void 0&&(C+=w.charAt(W));else{C===void 0&&(C=w.substr(0,W));var R=N[L];R!==void 0?(I!==-1&&(C+=encodeURIComponent(w.substring(I,W)),I=-1),C+=R):I===-1&&(I=W)}}return I!==-1&&(C+=encodeURIComponent(w.substring(I))),C!==void 0?C:w}function M(w){for(var S=void 0,C=0;C<w.length;C++){var I=w.charCodeAt(C);I===35||I===63?(S===void 0&&(S=w.substr(0,C)),S+=N[I]):S!==void 0&&(S+=w[C])}return S!==void 0?S:w}function T(w,S){var C;return C=w.authority&&w.path.length>1&&w.scheme==="file"?"//"+w.authority+w.path:w.path.charCodeAt(0)===47&&(w.path.charCodeAt(1)>=65&&w.path.charCodeAt(1)<=90||w.path.charCodeAt(1)>=97&&w.path.charCodeAt(1)<=122)&&w.path.charCodeAt(2)===58?S?w.path.substr(1):w.path[1].toLowerCase()+w.path.substr(2):w.path,o&&(C=C.replace(/\//g,"\\")),C}function O(w,S){var C=S?M:P,I="",W=w.scheme,L=w.authority,R=w.path,q=w.query,H=w.fragment;if(W&&(I+=W,I+=":"),(L||W==="file")&&(I+=m,I+=m),L){var re=L.indexOf("@");if(re!==-1){var xe=L.substr(0,re);L=L.substr(re+1),(re=xe.indexOf(":"))===-1?I+=C(xe,!1):(I+=C(xe.substr(0,re),!1),I+=":",I+=C(xe.substr(re+1),!1)),I+="@"}(re=(L=L.toLowerCase()).indexOf(":"))===-1?I+=C(L,!1):(I+=C(L.substr(0,re),!1),I+=L.substr(re))}if(R){if(R.length>=3&&R.charCodeAt(0)===47&&R.charCodeAt(2)===58)(he=R.charCodeAt(1))>=65&&he<=90&&(R="/"+String.fromCharCode(he+32)+":"+R.substr(3));else if(R.length>=2&&R.charCodeAt(1)===58){var he;(he=R.charCodeAt(0))>=65&&he<=90&&(R=String.fromCharCode(he+32)+":"+R.substr(2))}I+=C(R,!0)}return q&&(I+="?",I+=C(q,!1)),H&&(I+="#",I+=S?H:P(H,!1)),I}function y(w){try{return decodeURIComponent(w)}catch{return w.length>3?w.substr(0,3)+y(w.substr(3)):w}}var k=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function E(w){return w.match(k)?w.replace(k,function(S){return y(S)}):w}var j,V=a(470),$=function(){for(var w=0,S=0,C=arguments.length;S<C;S++)w+=arguments[S].length;var I=Array(w),W=0;for(S=0;S<C;S++)for(var L=arguments[S],R=0,q=L.length;R<q;R++,W++)I[W]=L[R];return I},B=V.posix||V;(function(w){w.joinPath=function(S){for(var C=[],I=1;I<arguments.length;I++)C[I-1]=arguments[I];return S.with({path:B.join.apply(B,$([S.path],C))})},w.resolvePath=function(S){for(var C=[],I=1;I<arguments.length;I++)C[I-1]=arguments[I];var W=S.path||"/";return S.with({path:B.resolve.apply(B,$([W],C))})},w.dirname=function(S){var C=B.dirname(S.path);return C.length===1&&C.charCodeAt(0)===46?S:S.with({path:C})},w.basename=function(S){return B.basename(S.path)},w.extname=function(S){return B.extname(S.path)}})(j||(j={}))}},r={};function i(e){if(r[e])return r[e].exports;var n=r[e]={exports:{}};return t[e](n,n.exports,i),n.exports}return i.d=(e,n)=>{for(var a in n)i.o(n,a)&&!i.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:n[a]})},i.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),i.r=e=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i(447)})();var{URI:de,Utils:Ci}=Cr;function Or(t,r){if(typeof t!="string")throw new TypeError("Expected a string");for(var i=String(t),e="",n=r?!!r.extended:!1,a=r?!!r.globstar:!1,o=!1,s=r&&typeof r.flags=="string"?r.flags:"",f,c=0,u=i.length;c<u;c++)switch(f=i[c],f){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":e+="\\"+f;break;case"?":if(n){e+=".";break}case"[":case"]":if(n){e+=f;break}case"{":if(n){o=!0,e+="(";break}case"}":if(n){o=!1,e+=")";break}case",":if(o){e+="|";break}e+="\\"+f;break;case"*":for(var l=i[c-1],h=1;i[c+1]==="*";)h++,c++;var g=i[c+1];if(!a)e+=".*";else{var p=h>1&&(l==="/"||l===void 0||l==="{"||l===",")&&(g==="/"||g===void 0||g===","||g==="}");p?(g==="/"?c++:l==="/"&&e.endsWith("\\/")&&(e=e.substr(0,e.length-2)),e+="((?:[^/]*(?:/|$))*)"):e+="([^/]*)"}break;default:e+=f}return(!s||!~s.indexOf("g"))&&(e="^"+e+"$"),new RegExp(e,s)}var me=ce(),gn="!",pn="/",dn=function(){function t(r,i){this.globWrappers=[];try{for(var e=0,n=r;e<n.length;e++){var a=n[e],o=a[0]!==gn;o||(a=a.substring(1)),a.length>0&&(a[0]===pn&&(a=a.substring(1)),this.globWrappers.push({regexp:Or("**/"+a,{extended:!0,globstar:!0}),include:o}))}this.uris=i}catch{this.globWrappers.length=0,this.uris=[]}}return t.prototype.matchesPattern=function(r){for(var i=!1,e=0,n=this.globWrappers;e<n.length;e++){var a=n[e],o=a.regexp,s=a.include;o.test(r)&&(i=s)}return i},t.prototype.getURIs=function(){return this.uris},t}(),mn=function(){function t(r,i,e){this.service=r,this.url=i,this.dependencies={},e&&(this.unresolvedSchema=this.service.promise.resolve(new ve(e)))}return t.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},t.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(i){return r.service.resolveSchemaContent(i,r.url,r.dependencies)})),this.resolvedSchema},t.prototype.clearSchema=function(){this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies={}},t}(),ve=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t}();var jr=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t.prototype.getSection=function(r){var i=this.getSectionRecursive(r,this.schema);if(i)return K(i)},t.prototype.getSectionRecursive=function(r,i){if(!i||typeof i=="boolean"||r.length===0)return i;var e=r.shift();if(i.properties&&typeof i.properties[e])return this.getSectionRecursive(r,i.properties[e]);if(i.patternProperties)for(var n=0,a=Object.keys(i.patternProperties);n<a.length;n++){var o=a[n],s=Se(o);if(s==null?void 0:s.test(e))return this.getSectionRecursive(r,i.patternProperties[o])}else{if(typeof i.additionalProperties=="object")return this.getSectionRecursive(r,i.additionalProperties);if(e.match("[0-9]+")){if(Array.isArray(i.items)){var f=parseInt(e,10);if(!isNaN(f)&&i.items[f])return this.getSectionRecursive(r,i.items[f])}else if(i.items)return this.getSectionRecursive(r,i.items)}}},t}();var Pr=function(){function t(r,i,e){this.contextService=i,this.requestService=r,this.promiseConstructor=e||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}return t.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(i){var e=de.parse(i).scheme;return e!=="schemaservice"&&(!r||r(e))})},Object.defineProperty(t.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},t.prototype.onResourceChange=function(r){var i=this;this.cachedSchemaForResource=void 0;var e=!1;r=ye(r);for(var n=[r],a=Object.keys(this.schemasById).map(function(c){return i.schemasById[c]});n.length;)for(var o=n.pop(),s=0;s<a.length;s++){var f=a[s];f&&(f.url===o||f.dependencies[o])&&(f.url!==o&&n.push(f.url),f.clearSchema(),a[s]=void 0,e=!0)}return e},t.prototype.setSchemaContributions=function(r){if(r.schemas){var i=r.schemas;for(var e in i){var n=ye(e);this.contributionSchemas[n]=this.addSchemaHandle(n,i[e])}}if(Array.isArray(r.schemaAssociations))for(var a=r.schemaAssociations,o=0,s=a;o<s.length;o++){var f=s[o],c=f.uris.map(ye),u=this.addFilePatternAssociation(f.pattern,c);this.contributionAssociations.push(u)}},t.prototype.addSchemaHandle=function(r,i){var e=new mn(this,r,i);return this.schemasById[r]=e,e},t.prototype.getOrAddSchemaHandle=function(r,i){return this.schemasById[r]||this.addSchemaHandle(r,i)},t.prototype.addFilePatternAssociation=function(r,i){var e=new dn(r,i);return this.filePatternAssociations.push(e),e},t.prototype.registerExternalSchema=function(r,i,e){var n=ye(r);return this.registeredSchemasIds[n]=!0,this.cachedSchemaForResource=void 0,i&&this.addFilePatternAssociation(i,[n]),e?this.addSchemaHandle(n,e):this.getOrAddSchemaHandle(n)},t.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0;for(var r in this.contributionSchemas)this.schemasById[r]=this.contributionSchemas[r],this.registeredSchemasIds[r]=!0;for(var i=0,e=this.contributionAssociations;i<e.length;i++){var n=e[i];this.filePatternAssociations.push(n)}},t.prototype.getResolvedSchema=function(r){var i=ye(r),e=this.schemasById[i];return e?e.getResolvedSchema():this.promise.resolve(void 0)},t.prototype.loadSchema=function(r){if(!this.requestService){var i=me("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",Qe(r));return this.promise.resolve(new ve({},[i]))}return this.requestService(r).then(function(e){if(!e){var n=me("json.schema.nocontent","Unable to load schema from '{0}': No content.",Qe(r));return new ve({},[n])}var a={},o=[];a=Gt(e,o);var s=o.length?[me("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",Qe(r),o[0].offset)]:[];return new ve(a,s)},function(e){var n=e.toString(),a=e.toString().split("Error: ");return a.length>1&&(n=a[1]),ge(n,".")&&(n=n.substr(0,n.length-1)),new ve({},[me("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Qe(r),n)])})},t.prototype.resolveSchemaContent=function(r,i,e){var n=this,a=r.errors.slice(0),o=r.schema;if(o.$schema){var s=ye(o.$schema);if(s==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new jr({},[me("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));s==="https://json-schema.org/draft/2019-09/schema"&&a.push(me("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var f=this.contextService,c=function(g,p){if(!p)return g;var m=g;return p[0]==="/"&&(p=p.substr(1)),p.split("/").some(function(d){return d=d.replace(/~1/g,"/").replace(/~0/g,"~"),m=m[d],!m}),m},u=function(g,p,m,d){var A=d?decodeURIComponent(d):void 0,x=c(p,A);if(x)for(var v in x)x.hasOwnProperty(v)&&!g.hasOwnProperty(v)&&(g[v]=x[v]);else a.push(me("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",A,m))},l=function(g,p,m,d,A){f&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(p)&&(p=f.resolveRelativePath(p,d)),p=ye(p);var x=n.getOrAddSchemaHandle(p);return x.getUnresolvedSchema().then(function(v){if(A[p]=!0,v.errors.length){var N=m?p+"#"+m:p;a.push(me("json.schema.problemloadingref","Problems loading reference '{0}': {1}",N,v.errors[0]))}return u(g,v.schema,p,m),h(g,v.schema,p,x.dependencies)})},h=function(g,p,m,d){if(!g||typeof g!="object")return Promise.resolve(null);for(var A=[g],x=[],v=[],N=function(){for(var y=[],k=0;k<arguments.length;k++)y[k]=arguments[k];for(var E=0,j=y;E<j.length;E++){var V=j[E];typeof V=="object"&&A.push(V)}},P=function(){for(var y=[],k=0;k<arguments.length;k++)y[k]=arguments[k];for(var E=0,j=y;E<j.length;E++){var V=j[E];if(typeof V=="object")for(var $ in V){var B=$,w=V[B];typeof w=="object"&&A.push(w)}}},M=function(){for(var y=[],k=0;k<arguments.length;k++)y[k]=arguments[k];for(var E=0,j=y;E<j.length;E++){var V=j[E];if(Array.isArray(V))for(var $=0,B=V;$<B.length;$++){var w=B[$];typeof w=="object"&&A.push(w)}}},T=function(y){for(var k=[];y.$ref;){var E=y.$ref,j=E.split("#",2);if(delete y.$ref,j[0].length>0){v.push(l(y,j[0],j[1],m,d));return}else k.indexOf(E)===-1&&(u(y,p,m,j[1]),k.push(E))}N(y.items,y.additionalItems,y.additionalProperties,y.not,y.contains,y.propertyNames,y.if,y.then,y.else),P(y.definitions,y.properties,y.patternProperties,y.dependencies),M(y.anyOf,y.allOf,y.oneOf,y.items)};A.length;){var O=A.pop();x.indexOf(O)>=0||(x.push(O),T(O))}return n.promise.all(v)};return h(o,o,i,e).then(function(g){return new jr(o,a)})},t.prototype.getSchemaForResource=function(r,i){if(i&&i.root&&i.root.type==="object"){var e=i.root.properties.filter(function(A){return A.keyNode.value==="$schema"&&A.valueNode&&A.valueNode.type==="string"});if(e.length>0){var n=e[0].valueNode;if(n&&n.type==="string"){var a=ue(n);if(a&>(a,".")&&this.contextService&&(a=this.contextService.resolveRelativePath(a,r)),a){var o=ye(a);return this.getOrAddSchemaHandle(o).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===r)return this.cachedSchemaForResource.resolvedSchema;for(var s=Object.create(null),f=[],c=yn(r),u=0,l=this.filePatternAssociations;u<l.length;u++){var h=l[u];if(h.matchesPattern(c))for(var g=0,p=h.getURIs();g<p.length;g++){var m=p[g];s[m]||(f.push(m),s[m]=!0)}}var d=f.length>0?this.createCombinedSchema(r,f).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:r,resolvedSchema:d},d},t.prototype.createCombinedSchema=function(r,i){if(i.length===1)return this.getOrAddSchemaHandle(i[0]);var e="schemaservice://combinedSchema/"+encodeURIComponent(r),n={allOf:i.map(function(a){return{$ref:a}})};return this.addSchemaHandle(e,n)},t.prototype.getMatchingSchemas=function(r,i,e){if(e){var n=e.id||"schemaservice://untitled/matchingSchemas/"+vn++;return this.resolveSchemaContent(new ve(e),n,{}).then(function(a){return i.getMatchingSchemas(a.schema).filter(function(o){return!o.inverted})})}return this.getSchemaForResource(r.uri,i).then(function(a){return a?i.getMatchingSchemas(a.schema).filter(function(o){return!o.inverted}):[]})},t}();var vn=0;function ye(t){try{return de.parse(t).toString()}catch{return t}}function yn(t){try{return de.parse(t).with({fragment:null,query:null}).toString()}catch{return t}}function Qe(t){try{var r=de.parse(t);if(r.scheme==="file")return r.fsPath}catch{}return t}var bn=ce(),Er=function(){function t(r,i){this.jsonSchemaService=r,this.promise=i,this.validationEnabled=!0}return t.prototype.configure=function(r){r&&(this.validationEnabled=r.validate!==!1,this.commentSeverity=r.allowComments?void 0:X.Error)},t.prototype.doValidation=function(r,i,e,n){var a=this;if(!this.validationEnabled)return this.promise.resolve([]);var o=[],s={},f=function(l){var h=l.range.start.line+" "+l.range.start.character+" "+l.message;s[h]||(s[h]=!0,o.push(l))},c=function(l){var h=(e==null?void 0:e.trailingCommas)?Ye(e.trailingCommas):X.Error,g=(e==null?void 0:e.comments)?Ye(e.comments):a.commentSeverity,p=(e==null?void 0:e.schemaValidation)?Ye(e.schemaValidation):X.Warning,m=(e==null?void 0:e.schemaRequest)?Ye(e.schemaRequest):X.Warning;if(l){if(l.errors.length&&i.root&&m){var d=i.root,A=d.type==="object"?d.properties[0]:void 0;if(A&&A.keyNode.value==="$schema"){var x=A.valueNode||A,v=U.create(r.positionAt(x.offset),r.positionAt(x.offset+x.length));f(ae.create(v,l.errors[0],m,J.SchemaResolveError))}else{var v=U.create(r.positionAt(d.offset),r.positionAt(d.offset+1));f(ae.create(v,l.errors[0],m,J.SchemaResolveError))}}else if(p){var N=i.validate(r,l.schema,p);N&&N.forEach(f)}Ir(l.schema)&&(g=void 0),Nr(l.schema)&&(h=void 0)}for(var P=0,M=i.syntaxErrors;P<M.length;P++){var T=M[P];if(T.code===J.TrailingComma){if(typeof h!="number")continue;T.severity=h}f(T)}if(typeof g=="number"){var O=bn("InvalidCommentToken","Comments are not permitted in JSON.");i.comments.forEach(function(y){f(ae.create(y,O,g,J.CommentNotPermitted))})}return o};if(n){var u=n.id||"schemaservice://untitled/"+xn++;return this.jsonSchemaService.resolveSchemaContent(new ve(n),u,{}).then(function(l){return c(l)})}return this.jsonSchemaService.getSchemaForResource(r.uri,i).then(function(l){return c(l)})},t}();var xn=0;function Ir(t){if(t&&typeof t=="object"){if(ie(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var e=i[r],n=Ir(e);if(ie(n))return n}}}function Nr(t){if(t&&typeof t=="object"){if(ie(t.allowTrailingCommas))return t.allowTrailingCommas;var r=t;if(ie(r.allowsTrailingCommas))return r.allowsTrailingCommas;if(t.allOf)for(var i=0,e=t.allOf;i<e.length;i++){var n=e[i],a=Nr(n);if(ie(a))return a}}}function Ye(t){switch(t){case"error":return X.Error;case"warning":return X.Warning;case"ignore":return}}var Mr=48,Sn=57,An=65,Ke=97,Tn=102;function z(t){return t<Mr?0:t<=Sn?t-Mr:(t<Ke&&(t+=Ke-An),t>=Ke&&t<=Tn?t-Ke+10:0)}function Vr(t){if(t[0]==="#")switch(t.length){case 4:return{red:z(t.charCodeAt(1))*17/255,green:z(t.charCodeAt(2))*17/255,blue:z(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:z(t.charCodeAt(1))*17/255,green:z(t.charCodeAt(2))*17/255,blue:z(t.charCodeAt(3))*17/255,alpha:z(t.charCodeAt(4))*17/255};case 7:return{red:(z(t.charCodeAt(1))*16+z(t.charCodeAt(2)))/255,green:(z(t.charCodeAt(3))*16+z(t.charCodeAt(4)))/255,blue:(z(t.charCodeAt(5))*16+z(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(z(t.charCodeAt(1))*16+z(t.charCodeAt(2)))/255,green:(z(t.charCodeAt(3))*16+z(t.charCodeAt(4)))/255,blue:(z(t.charCodeAt(5))*16+z(t.charCodeAt(6)))/255,alpha:(z(t.charCodeAt(7))*16+z(t.charCodeAt(8)))/255}}}var Fr=function(){function t(r){this.schemaService=r}return t.prototype.findDocumentSymbols=function(r,i,e){var n=this;e===void 0&&(e={resultLimit:Number.MAX_VALUE});var a=i.root;if(!a)return[];var o=e.resultLimit||Number.MAX_VALUE,s=r.uri;if((s==="vscode://defaultsettings/keybindings.json"||ge(s.toLowerCase(),"/user/keybindings.json"))&&a.type==="array"){for(var f=[],c=0,u=a.items;c<u.length;c++){var l=u[c];if(l.type==="object")for(var h=0,g=l.properties;h<g.length;h++){var p=g[h];if(p.keyNode.value==="key"&&p.valueNode){var m=Ae.create(r.uri,be(r,l));if(f.push({name:ue(p.valueNode),kind:oe.Function,location:m}),o--,o<=0)return e&&e.onResultLimitExceeded&&e.onResultLimitExceeded(s),f}}}return f}for(var d=[{node:a,containerName:""}],A=0,x=!1,v=[],N=function(M,T){M.type==="array"?M.items.forEach(function(O){O&&d.push({node:O,containerName:T})}):M.type==="object"&&M.properties.forEach(function(O){var y=O.valueNode;if(y)if(o>0){o--;var k=Ae.create(r.uri,be(r,O)),E=T?T+"."+O.keyNode.value:O.keyNode.value;v.push({name:n.getKeyLabel(O),kind:n.getSymbolKind(y.type),location:k,containerName:T}),d.push({node:y,containerName:E})}else x=!0})};A<d.length;){var P=d[A++];N(P.node,P.containerName)}return x&&e&&e.onResultLimitExceeded&&e.onResultLimitExceeded(s),v},t.prototype.findDocumentSymbols2=function(r,i,e){var n=this;e===void 0&&(e={resultLimit:Number.MAX_VALUE});var a=i.root;if(!a)return[];var o=e.resultLimit||Number.MAX_VALUE,s=r.uri;if((s==="vscode://defaultsettings/keybindings.json"||ge(s.toLowerCase(),"/user/keybindings.json"))&&a.type==="array"){for(var f=[],c=0,u=a.items;c<u.length;c++){var l=u[c];if(l.type==="object")for(var h=0,g=l.properties;h<g.length;h++){var p=g[h];if(p.keyNode.value==="key"&&p.valueNode){var m=be(r,l),d=be(r,p.keyNode);if(f.push({name:ue(p.valueNode),kind:oe.Function,range:m,selectionRange:d}),o--,o<=0)return e&&e.onResultLimitExceeded&&e.onResultLimitExceeded(s),f}}}return f}for(var A=[],x=[{node:a,result:A}],v=0,N=!1,P=function(T,O){T.type==="array"?T.items.forEach(function(y,k){if(y)if(o>0){o--;var E=be(r,y),j=E,V=String(k),$={name:V,kind:n.getSymbolKind(y.type),range:E,selectionRange:j,children:[]};O.push($),x.push({result:$.children,node:y})}else N=!0}):T.type==="object"&&T.properties.forEach(function(y){var k=y.valueNode;if(k)if(o>0){o--;var E=be(r,y),j=be(r,y.keyNode),V=[],$={name:n.getKeyLabel(y),kind:n.getSymbolKind(k.type),range:E,selectionRange:j,children:V,detail:n.getDetail(k)};O.push($),x.push({result:V,node:k})}else N=!0})};v<x.length;){var M=x[v++];P(M.node,M.result)}return N&&e&&e.onResultLimitExceeded&&e.onResultLimitExceeded(s),A},t.prototype.getSymbolKind=function(r){switch(r){case"object":return oe.Module;case"string":return oe.String;case"number":return oe.Number;case"array":return oe.Array;case"boolean":return oe.Boolean;default:return oe.Variable}},t.prototype.getKeyLabel=function(r){var i=r.keyNode.value;return i&&(i=i.replace(/[\n]/g,"\u21B5")),i&&i.trim()?i:'"'+i+'"'},t.prototype.getDetail=function(r){if(!!r){if(r.type==="boolean"||r.type==="number"||r.type==="null"||r.type==="string")return String(r.value);if(r.type==="array")return r.children.length?void 0:"[]";if(r.type==="object")return r.children.length?void 0:"{}"}},t.prototype.findDocumentColors=function(r,i,e){return this.schemaService.getSchemaForResource(r.uri,i).then(function(n){var a=[];if(n)for(var o=e&&typeof e.resultLimit=="number"?e.resultLimit:Number.MAX_VALUE,s=i.getMatchingSchemas(n.schema),f={},c=0,u=s;c<u.length;c++){var l=u[c];if(!l.inverted&&l.schema&&(l.schema.format==="color"||l.schema.format==="color-hex")&&l.node&&l.node.type==="string"){var h=String(l.node.offset);if(!f[h]){var g=Vr(ue(l.node));if(g){var p=be(r,l.node);a.push({color:g,range:p})}if(f[h]=!0,o--,o<=0)return e&&e.onResultLimitExceeded&&e.onResultLimitExceeded(r.uri),a}}}return a})},t.prototype.getColorPresentations=function(r,i,e,n){var a=[],o=Math.round(e.red*255),s=Math.round(e.green*255),f=Math.round(e.blue*255);function c(l){var h=l.toString(16);return h.length!==2?"0"+h:h}var u;return e.alpha===1?u="#"+c(o)+c(s)+c(f):u="#"+c(o)+c(s)+c(f)+c(Math.round(e.alpha*255)),a.push({label:u,textEdit:Y.replace(n,JSON.stringify(u))}),a},t}();function be(t,r){return U.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var D=ce(),et={schemaAssociations:[],schemas:{"http://json-schema.org/schema#":{$ref:"http://json-schema.org/draft-07/schema#"},"http://json-schema.org/draft-04/schema#":{$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},wn={id:D("schema.json.id","A unique identifier for the schema."),$schema:D("schema.json.$schema","The schema to verify this document against."),title:D("schema.json.title","A descriptive title of the element."),description:D("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:D("schema.json.default","A default value. Used by suggestions."),multipleOf:D("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:D("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:D("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:D("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:D("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:D("schema.json.maxLength","The maximum length of a string."),minLength:D("schema.json.minLength","The minimum length of a string."),pattern:D("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:D("schema.json.additionalItems","For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:D("schema.json.items","For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:D("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:D("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:D("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:D("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:D("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:D("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:D("schema.json.additionalProperties","Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:D("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:D("schema.json.properties","A map of property names to schemas for each property."),patternProperties:D("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:D("schema.json.dependencies","A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:D("schema.json.enum","The set of literal values that are valid."),type:D("schema.json.type","Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:D("schema.json.format","Describes the format expected for the value."),allOf:D("schema.json.allOf","An array of schemas, all of which must match."),anyOf:D("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:D("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:D("schema.json.not","A schema which must not match."),$id:D("schema.json.$id","A unique identifier for the schema."),$ref:D("schema.json.$ref","Reference a definition hosted on any location."),$comment:D("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:D("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:D("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:D("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:D("schema.json.propertyNames","If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:D("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:D("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:D("schema.json.contentEncoding","Describes the content encoding of a string property."),if:D("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:D("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:D("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(Lr in et.schemas){tt=et.schemas[Lr];for(Ne in tt.properties)rt=tt.properties[Ne],typeof rt=="boolean"&&(rt=tt.properties[Ne]={}),Lt=wn[Ne],Lt?rt.description=Lt:console.log(Ne+": localize('schema.json."+Ne+`', "")`)}var tt,rt,Lt,Ne,Lr;function Dr(t,r){var i=[],e=[],n=[],a=-1,o=le(t.getText(),!1),s=o.scan();function f(k){i.push(k),e.push(n.length)}for(;s!==17;){switch(s){case 1:case 3:{var c=t.positionAt(o.getTokenOffset()).line,u={startLine:c,endLine:c,kind:s===1?"object":"array"};n.push(u);break}case 2:case 4:{var l=s===2?"object":"array";if(n.length>0&&n[n.length-1].kind===l){var u=n.pop(),h=t.positionAt(o.getTokenOffset()).line;u&&h>u.startLine+1&&a!==u.startLine&&(u.endLine=h-1,f(u),a=u.startLine)}break}case 13:{var c=t.positionAt(o.getTokenOffset()).line,g=t.positionAt(o.getTokenOffset()+o.getTokenLength()).line;o.getTokenError()===1&&c+1<t.lineCount?o.setPosition(t.offsetAt(ne.create(c+1,0))):c<g&&(f({startLine:c,endLine:g,kind:Te.Comment}),a=c);break}case 12:{var p=t.getText().substr(o.getTokenOffset(),o.getTokenLength()),m=p.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(m){var h=t.positionAt(o.getTokenOffset()).line;if(m[1]){var u={startLine:h,endLine:h,kind:Te.Region};n.push(u)}else{for(var d=n.length-1;d>=0&&n[d].kind!==Te.Region;)d--;if(d>=0){var u=n[d];n.length=d,h>u.startLine&&a!==u.startLine&&(u.endLine=h,f(u),a=u.startLine)}}}break}}s=o.scan()}var A=r&&r.rangeLimit;if(typeof A!="number"||i.length<=A)return i;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(t.uri);for(var x=[],v=0,N=e;v<N.length;v++){var P=N[v];P<30&&(x[P]=(x[P]||0)+1)}for(var M=0,T=0,d=0;d<x.length;d++){var O=x[d];if(O){if(O+M>A){T=d;break}M+=O}}for(var y=[],d=0;d<i.length;d++){var P=e[d];typeof P=="number"&&(P<T||P===T&&M++<A)&&y.push(i[d])}return y}function $r(t,r,i){function e(s){for(var f=t.offsetAt(s),c=i.getNodeFromOffset(f,!0),u=[];c;){switch(c.type){case"string":case"object":case"array":var l=c.offset+1,h=c.offset+c.length-1;l<h&&f>=l&&f<=h&&u.push(n(l,h)),u.push(n(c.offset,c.offset+c.length));break;case"number":case"boolean":case"null":case"property":u.push(n(c.offset,c.offset+c.length));break}if(c.type==="property"||c.parent&&c.parent.type==="array"){var g=o(c.offset+c.length,5);g!==-1&&u.push(n(c.offset,g))}c=c.parent}for(var p=void 0,m=u.length-1;m>=0;m--)p=Ie.create(u[m],p);return p||(p=Ie.create(U.create(s,s))),p}function n(s,f){return U.create(t.positionAt(s),t.positionAt(f))}var a=le(t.getText(),!0);function o(s,f){a.setPosition(s);var c=a.scan();return c===f?a.getTokenOffset()+a.getTokenLength():-1}return r.map(e)}function Rr(t,r){var i=[];return r.visit(function(e){var n;if(e.type==="property"&&e.keyNode.value==="$ref"&&((n=e.valueNode)===null||n===void 0?void 0:n.type)==="string"){var a=e.valueNode.value,o=Cn(r,a);if(o){var s=t.positionAt(o.offset);i.push({target:t.uri+"#"+(s.line+1)+","+(s.character+1),range:kn(t,e.valueNode)})}}return!0}),Promise.resolve(i)}function kn(t,r){return U.create(t.positionAt(r.offset+1),t.positionAt(r.offset+r.length-1))}function Cn(t,r){var i=On(r);return i?Dt(i,t.root):null}function Dt(t,r){if(!r)return null;if(t.length===0)return r;var i=t.shift();if(r&&r.type==="object"){var e=r.properties.find(function(o){return o.keyNode.value===i});return e?Dt(t,e.valueNode):null}else if(r&&r.type==="array"&&i.match(/^(0|[1-9][0-9]*)$/)){var n=Number.parseInt(i),a=r.items[n];return a?Dt(t,a):null}return null}function On(t){return t==="#"?[]:t[0]!=="#"||t[1]!=="/"?null:t.substring(2).split(/\//).map(jn)}function jn(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function Ur(t){var r=t.promiseConstructor||Promise,i=new Pr(t.schemaRequestService,t.workspaceContext,r);i.setSchemaContributions(et);var e=new wr(i,t.contributions,r,t.clientCapabilities),n=new kr(i,t.contributions,r),a=new Fr(i),o=new Er(i,r);return{configure:function(s){i.clearExternalSchemas(),s.schemas&&s.schemas.forEach(function(f){i.registerExternalSchema(f.uri,f.fileMatch,f.schema)}),o.configure(s)},resetSchema:function(s){return i.onResourceChange(s)},doValidation:o.doValidation.bind(o),parseJSONDocument:function(s){return Tr(s,{collectComments:!0})},newJSONDocument:function(s,f){return Sr(s,f)},getMatchingSchemas:i.getMatchingSchemas.bind(i),doResolve:e.doResolve.bind(e),doComplete:e.doComplete.bind(e),findDocumentSymbols:a.findDocumentSymbols.bind(a),findDocumentSymbols2:a.findDocumentSymbols2.bind(a),findDocumentColors:a.findDocumentColors.bind(a),getColorPresentations:a.getColorPresentations.bind(a),doHover:n.doHover.bind(n),getFoldingRanges:Dr,getSelectionRanges:$r,findDefinition:function(){return Promise.resolve([])},findLinks:Rr,format:function(s,f,c){var u=void 0;if(f){var l=s.offsetAt(f.start),h=s.offsetAt(f.end)-l;u={offset:l,length:h}}var g={tabSize:c?c.tabSize:4,insertSpaces:(c==null?void 0:c.insertSpaces)===!0,insertFinalNewline:(c==null?void 0:c.insertFinalNewline)===!0,eol:`
- `};return Yt(s.getText(),u,g).map(function(p){return Y.replace(U.create(s.positionAt(p.offset),s.positionAt(p.offset+p.length)),p.content)})}}}var Wr;typeof fetch!="undefined"&&(Wr=function(t){return fetch(t).then(r=>r.text())});var $t=class{constructor(r,i){this._ctx=r,this._languageSettings=i.languageSettings,this._languageId=i.languageId,this._languageService=Ur({workspaceContext:{resolveRelativePath:(e,n)=>{let a=n.substr(0,n.lastIndexOf("/")+1);return In(a,e)}},schemaRequestService:i.enableSchemaRequest?Wr:void 0}),this._languageService.configure(this._languageSettings)}async doValidation(r){let i=this._getTextDocument(r);if(i){let e=this._languageService.parseJSONDocument(i);return this._languageService.doValidation(i,e,this._languageSettings)}return Promise.resolve([])}async doComplete(r,i){let e=this._getTextDocument(r);if(!e)return null;let n=this._languageService.parseJSONDocument(e);return this._languageService.doComplete(e,i,n)}async doResolve(r){return this._languageService.doResolve(r)}async doHover(r,i){let e=this._getTextDocument(r);if(!e)return null;let n=this._languageService.parseJSONDocument(e);return this._languageService.doHover(e,i,n)}async format(r,i,e){let n=this._getTextDocument(r);if(!n)return[];let a=this._languageService.format(n,i,e);return Promise.resolve(a)}async resetSchema(r){return Promise.resolve(this._languageService.resetSchema(r))}async findDocumentSymbols(r){let i=this._getTextDocument(r);if(!i)return[];let e=this._languageService.parseJSONDocument(i),n=this._languageService.findDocumentSymbols(i,e);return Promise.resolve(n)}async findDocumentColors(r){let i=this._getTextDocument(r);if(!i)return[];let e=this._languageService.parseJSONDocument(i),n=this._languageService.findDocumentColors(i,e);return Promise.resolve(n)}async getColorPresentations(r,i,e){let n=this._getTextDocument(r);if(!n)return[];let a=this._languageService.parseJSONDocument(n),o=this._languageService.getColorPresentations(n,a,i,e);return Promise.resolve(o)}async getFoldingRanges(r,i){let e=this._getTextDocument(r);if(!e)return[];let n=this._languageService.getFoldingRanges(e,i);return Promise.resolve(n)}async getSelectionRanges(r,i){let e=this._getTextDocument(r);if(!e)return[];let n=this._languageService.parseJSONDocument(e),a=this._languageService.getSelectionRanges(e,i,n);return Promise.resolve(a)}_getTextDocument(r){let i=this._ctx.getMirrorModels();for(let e of i)if(e.uri.toString()===r)return Ue.create(r,this._languageId,e.version,e.getValue());return null}},Pn="/".charCodeAt(0),Rt=".".charCodeAt(0);function En(t){return t.charCodeAt(0)===Pn}function In(t,r){if(En(r)){let i=de.parse(t),e=r.split("/");return i.with({path:Jr(e)}).toString()}return Nn(t,r)}function Jr(t){let r=[];for(let e of t)e.length===0||e.length===1&&e.charCodeAt(0)===Rt||(e.length===2&&e.charCodeAt(0)===Rt&&e.charCodeAt(1)===Rt?r.pop():r.push(e));t.length>1&&t[t.length-1].length===0&&r.push("");let i=r.join("/");return t[0].length===0&&(i="/"+i),i}function Nn(t,...r){let i=de.parse(t),e=i.path.split("/");for(let n of r)e.push(...n.split("/"));return i.with({path:Jr(e)}).toString()}function Mn(t,r){return new $t(t,r)}return Vn;})();
- return moduleExports;
- });
|