jsonMode-Bggw9BW1.js 80 KB

123456
  1. import{e as G,R as Mt,l as W,a as fe}from"./index-DFpXF1Cy.js";var Bt=2*60*1e3,zt=function(){function e(r){var i=this;this._defaults=r,this._worker=null,this._idleCheckInterval=setInterval(function(){return i._checkIfIdle()},30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return i._stopWorker()})}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},e.prototype._checkIfIdle=function(){if(this._worker){var r=Date.now()-this._lastUsedTime;r>Bt&&this._stopWorker()}},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=G.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client},e.prototype.getLanguageServiceWorker=function(){for(var r=this,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var t;return this._getClient().then(function(a){t=a}).then(function(a){return r._worker.withSyncedResources(i)}).then(function(a){return t})},e}();function $t(e,r){r===void 0&&(r=!1);var i=e.length,n=0,t="",a=0,s=16,o=0,u=0,c=0,l=0,h=0;function m(w,R){for(var D=0,L=0;D<w||!R;){var P=e.charCodeAt(n);if(P>=48&&P<=57)L=L*16+P-48;else if(P>=65&&P<=70)L=L*16+P-65+10;else if(P>=97&&P<=102)L=L*16+P-97+10;else break;n++,D++}return D<w&&(L=-1),L}function d(w){n=w,t="",a=0,s=16,h=0}function p(){var w=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&se(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&se(e.charCodeAt(n)))for(n++;n<e.length&&se(e.charCodeAt(n));)n++;else return h=3,e.substring(w,n);var R=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&se(e.charCodeAt(n))){for(n++;n<e.length&&se(e.charCodeAt(n));)n++;R=n}else h=3;return e.substring(w,R)}function A(){for(var w="",R=n;;){if(n>=i){w+=e.substring(R,n),h=2;break}var D=e.charCodeAt(n);if(D===34){w+=e.substring(R,n),n++;break}if(D===92){if(w+=e.substring(R,n),n++,n>=i){h=2;break}var L=e.charCodeAt(n++);switch(L){case 34:w+='"';break;case 92:w+="\\";break;case 47:w+="/";break;case 98:w+="\b";break;case 102:w+="\f";break;case 110:w+=`
  2. `;break;case 114:w+="\r";break;case 116:w+=" ";break;case 117:var P=m(4,!0);P>=0?w+=String.fromCharCode(P):h=4;break;default:h=5}R=n;continue}if(D>=0&&D<=31)if(le(D)){w+=e.substring(R,n),h=2;break}else h=6;n++}return w}function S(){if(t="",h=0,a=n,u=o,l=c,n>=i)return a=i,s=17;var w=e.charCodeAt(n);if(Te(w)){do n++,t+=String.fromCharCode(w),w=e.charCodeAt(n);while(Te(w));return s=15}if(le(w))return n++,t+=String.fromCharCode(w),w===13&&e.charCodeAt(n)===10&&(n++,t+=`
  3. `),o++,c=n,s=14;switch(w){case 123:return n++,s=1;case 125:return n++,s=2;case 91:return n++,s=3;case 93:return n++,s=4;case 58:return n++,s=6;case 44:return n++,s=5;case 34:return n++,t=A(),s=10;case 47:var R=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<i&&!le(e.charCodeAt(n));)n++;return t=e.substring(R,n),s=12}if(e.charCodeAt(n+1)===42){n+=2;for(var D=i-1,L=!1;n<D;){var P=e.charCodeAt(n);if(P===42&&e.charCodeAt(n+1)===47){n+=2,L=!0;break}n++,le(P)&&(P===13&&e.charCodeAt(n)===10&&n++,o++,c=n)}return L||(n++,h=1),t=e.substring(R,n),s=13}return t+=String.fromCharCode(w),n++,s=16;case 45:if(t+=String.fromCharCode(w),n++,n===i||!se(e.charCodeAt(n)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return t+=p(),s=11;default:for(;n<i&&I(w);)n++,w=e.charCodeAt(n);if(a!==n){switch(t=e.substring(a,n),t){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return t+=String.fromCharCode(w),n++,s=16}}function I(w){if(Te(w)||le(w))return!1;switch(w){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function C(){var w;do w=S();while(w>=12&&w<=15);return w}return{setPosition:d,getPosition:function(){return n},scan:r?C:S,getToken:function(){return s},getTokenValue:function(){return t},getTokenOffset:function(){return a},getTokenLength:function(){return n-a},getTokenStartLine:function(){return u},getTokenStartCharacter:function(){return a-l},getTokenError:function(){return h}}}function Te(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function le(e){return e===10||e===13||e===8232||e===8233}function se(e){return e>=48&&e<=57}var _e;(function(e){e.DEFAULT={allowTrailingComma:!1}})(_e||(_e={}));function Ht(e,r,i){r===void 0&&(r=[]),i===void 0&&(i=_e.DEFAULT);var n=null,t=[],a=[];function s(u){Array.isArray(t)?t.push(u):n!==null&&(t[n]=u)}var o={onObjectBegin:function(){var u={};s(u),a.push(t),t=u,n=null},onObjectProperty:function(u){n=u},onObjectEnd:function(){t=a.pop()},onArrayBegin:function(){var u=[];s(u),a.push(t),t=u,n=null},onArrayEnd:function(){t=a.pop()},onLiteralValue:s,onError:function(u,c,l){r.push({error:u,offset:c,length:l})}};return Gt(e,o,i),t[0]}function Ne(e){switch(e.type){case"array":return e.children.map(Ne);case"object":for(var r=Object.create(null),i=0,n=e.children;i<n.length;i++){var t=n[i],a=t.children[1];a&&(r[t.children[0].value]=Ne(a))}return r;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function Gt(e,r,i){i===void 0&&(i=_e.DEFAULT);var n=$t(e,!1);function t(k){return k?function(){return k(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:function(){return!0}}function a(k){return k?function(E){return k(E,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:function(){return!0}}var s=t(r.onObjectBegin),o=a(r.onObjectProperty),u=t(r.onObjectEnd),c=t(r.onArrayBegin),l=t(r.onArrayEnd),h=a(r.onLiteralValue),m=a(r.onSeparator),d=t(r.onComment),p=a(r.onError),A=i&&i.disallowComments,S=i&&i.allowTrailingComma;function I(){for(;;){var k=n.scan();switch(n.getTokenError()){case 4:C(14);break;case 5:C(15);break;case 3:C(13);break;case 1:A||C(11);break;case 2:C(12);break;case 6:C(16);break}switch(k){case 12:case 13:A?C(10):d();break;case 16:C(1);break;case 15:case 14:break;default:return k}}}function C(k,E,T){if(E===void 0&&(E=[]),T===void 0&&(T=[]),p(k),E.length+T.length>0)for(var N=n.getToken();N!==17;){if(E.indexOf(N)!==-1){I();break}else if(T.indexOf(N)!==-1)break;N=I()}}function w(k){var E=n.getTokenValue();return k?h(E):o(E),I(),!0}function R(){switch(n.getToken()){case 11:var k=n.getTokenValue(),E=Number(k);isNaN(E)&&(C(2),E=0),h(E);break;case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return I(),!0}function D(){return n.getToken()!==10?(C(3,[],[2,5]),!1):(w(!1),n.getToken()===6?(m(":"),I(),H()||C(4,[],[2,5])):C(5,[],[2,5]),!0)}function L(){s(),I();for(var k=!1;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(k||C(4,[],[]),m(","),I(),n.getToken()===2&&S)break}else k&&C(6,[],[]);D()||C(4,[],[2,5]),k=!0}return u(),n.getToken()!==2?C(7,[2],[]):I(),!0}function P(){c(),I();for(var k=!1;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(k||C(4,[],[]),m(","),I(),n.getToken()===4&&S)break}else k&&C(6,[],[]);H()||C(4,[],[4,5]),k=!0}return l(),n.getToken()!==4?C(8,[4],[]):I(),!0}function H(){switch(n.getToken()){case 3:return P();case 1:return L();case 10:return w(!0);default:return R()}}return I(),n.getToken()===17?i.allowEmptyContent?!0:(C(4,[],[]),!1):H()?(n.getToken()!==17&&C(9,[],[]),!0):(C(4,[],[]),!1)}var Jt=$t,Zt=Ht,Xt=Ne;function Yt(e){return typeof e=="boolean"}function Ft(e,r){if(e.length<r.length)return!1;for(var i=0;i<r.length;i++)if(e[i]!==r[i])return!1;return!0}function Qt(e,r){var i=e.length-r.length;return i>0?e.lastIndexOf(r)===i:i===0?e===r:!1}function Kt(e){return Ft(e,"(?i)")?new RegExp(e.substring(4),"iu"):new RegExp(e,"u")}var Be;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Be||(Be={}));var Ce;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(Ce||(Ce={}));var J;(function(e){function r(n,t){return n===Number.MAX_VALUE&&(n=Ce.MAX_VALUE),t===Number.MAX_VALUE&&(t=Ce.MAX_VALUE),{line:n,character:t}}e.create=r;function i(n){var t=n;return f.objectLiteral(t)&&f.uinteger(t.line)&&f.uinteger(t.character)}e.is=i})(J||(J={}));var U;(function(e){function r(n,t,a,s){if(f.uinteger(n)&&f.uinteger(t)&&f.uinteger(a)&&f.uinteger(s))return{start:J.create(n,t),end:J.create(a,s)};if(J.is(n)&&J.is(t))return{start:n,end:t};throw new Error("Range#create called with invalid arguments["+n+", "+t+", "+a+", "+s+"]")}e.create=r;function i(n){var t=n;return f.objectLiteral(t)&&J.is(t.start)&&J.is(t.end)}e.is=i})(U||(U={}));var Me;(function(e){function r(n,t){return{uri:n,range:t}}e.create=r;function i(n){var t=n;return f.defined(t)&&U.is(t.range)&&(f.string(t.uri)||f.undefined(t.uri))}e.is=i})(Me||(Me={}));var ze;(function(e){function r(n,t,a,s){return{targetUri:n,targetRange:t,targetSelectionRange:a,originSelectionRange:s}}e.create=r;function i(n){var t=n;return f.defined(t)&&U.is(t.targetRange)&&f.string(t.targetUri)&&(U.is(t.targetSelectionRange)||f.undefined(t.targetSelectionRange))&&(U.is(t.originSelectionRange)||f.undefined(t.originSelectionRange))}e.is=i})(ze||(ze={}));var $e;(function(e){function r(n,t,a,s){return{red:n,green:t,blue:a,alpha:s}}e.create=r;function i(n){var t=n;return f.numberRange(t.red,0,1)&&f.numberRange(t.green,0,1)&&f.numberRange(t.blue,0,1)&&f.numberRange(t.alpha,0,1)}e.is=i})($e||($e={}));var He;(function(e){function r(n,t){return{range:n,color:t}}e.create=r;function i(n){var t=n;return U.is(t.range)&&$e.is(t.color)}e.is=i})(He||(He={}));var Ge;(function(e){function r(n,t,a){return{label:n,textEdit:t,additionalTextEdits:a}}e.create=r;function i(n){var t=n;return f.string(t.label)&&(f.undefined(t.textEdit)||te.is(t))&&(f.undefined(t.additionalTextEdits)||f.typedArray(t.additionalTextEdits,te.is))}e.is=i})(Ge||(Ge={}));var pe;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(pe||(pe={}));var Je;(function(e){function r(n,t,a,s,o){var u={startLine:n,endLine:t};return f.defined(a)&&(u.startCharacter=a),f.defined(s)&&(u.endCharacter=s),f.defined(o)&&(u.kind=o),u}e.create=r;function i(n){var t=n;return f.uinteger(t.startLine)&&f.uinteger(t.startLine)&&(f.undefined(t.startCharacter)||f.uinteger(t.startCharacter))&&(f.undefined(t.endCharacter)||f.uinteger(t.endCharacter))&&(f.undefined(t.kind)||f.string(t.kind))}e.is=i})(Je||(Je={}));var Fe;(function(e){function r(n,t){return{location:n,message:t}}e.create=r;function i(n){var t=n;return f.defined(t)&&Me.is(t.location)&&f.string(t.message)}e.is=i})(Fe||(Fe={}));var ue;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(ue||(ue={}));var Ze;(function(e){e.Unnecessary=1,e.Deprecated=2})(Ze||(Ze={}));var Xe;(function(e){function r(i){var n=i;return n!=null&&f.string(n.href)}e.is=r})(Xe||(Xe={}));var Ie;(function(e){function r(n,t,a,s,o,u){var c={range:n,message:t};return f.defined(a)&&(c.severity=a),f.defined(s)&&(c.code=s),f.defined(o)&&(c.source=o),f.defined(u)&&(c.relatedInformation=u),c}e.create=r;function i(n){var t,a=n;return f.defined(a)&&U.is(a.range)&&f.string(a.message)&&(f.number(a.severity)||f.undefined(a.severity))&&(f.integer(a.code)||f.string(a.code)||f.undefined(a.code))&&(f.undefined(a.codeDescription)||f.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(f.string(a.source)||f.undefined(a.source))&&(f.undefined(a.relatedInformation)||f.typedArray(a.relatedInformation,Fe.is))}e.is=i})(Ie||(Ie={}));var me;(function(e){function r(n,t){for(var a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];var o={title:n,command:t};return f.defined(a)&&a.length>0&&(o.arguments=a),o}e.create=r;function i(n){var t=n;return f.defined(t)&&f.string(t.title)&&f.string(t.command)}e.is=i})(me||(me={}));var te;(function(e){function r(a,s){return{range:a,newText:s}}e.replace=r;function i(a,s){return{range:{start:a,end:a},newText:s}}e.insert=i;function n(a){return{range:a,newText:""}}e.del=n;function t(a){var s=a;return f.objectLiteral(s)&&f.string(s.newText)&&U.is(s.range)}e.is=t})(te||(te={}));var ce;(function(e){function r(n,t,a){var s={label:n};return t!==void 0&&(s.needsConfirmation=t),a!==void 0&&(s.description=a),s}e.create=r;function i(n){var t=n;return t!==void 0&&f.objectLiteral(t)&&f.string(t.label)&&(f.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(f.string(t.description)||t.description===void 0)}e.is=i})(ce||(ce={}));var q;(function(e){function r(i){var n=i;return typeof n=="string"}e.is=r})(q||(q={}));var ee;(function(e){function r(a,s,o){return{range:a,newText:s,annotationId:o}}e.replace=r;function i(a,s,o){return{range:{start:a,end:a},newText:s,annotationId:o}}e.insert=i;function n(a,s){return{range:a,newText:"",annotationId:s}}e.del=n;function t(a){var s=a;return te.is(s)&&(ce.is(s.annotationId)||q.is(s.annotationId))}e.is=t})(ee||(ee={}));var je;(function(e){function r(n,t){return{textDocument:n,edits:t}}e.create=r;function i(n){var t=n;return f.defined(t)&&Ee.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(je||(je={}));var ve;(function(e){function r(n,t,a){var s={kind:"create",uri:n};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(s.options=t),a!==void 0&&(s.annotationId=a),s}e.create=r;function i(n){var t=n;return t&&t.kind==="create"&&f.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||f.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||f.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||q.is(t.annotationId))}e.is=i})(ve||(ve={}));var ye;(function(e){function r(n,t,a,s){var o={kind:"rename",oldUri:n,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(o.options=a),s!==void 0&&(o.annotationId=s),o}e.create=r;function i(n){var t=n;return t&&t.kind==="rename"&&f.string(t.oldUri)&&f.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||f.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||f.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||q.is(t.annotationId))}e.is=i})(ye||(ye={}));var be;(function(e){function r(n,t,a){var s={kind:"delete",uri:n};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(s.options=t),a!==void 0&&(s.annotationId=a),s}e.create=r;function i(n){var t=n;return t&&t.kind==="delete"&&f.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||f.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||f.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||q.is(t.annotationId))}e.is=i})(be||(be={}));var Le;(function(e){function r(i){var n=i;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(function(t){return f.string(t.kind)?ve.is(t)||ye.is(t)||be.is(t):je.is(t)}))}e.is=r})(Le||(Le={}));var ke=function(){function e(r,i){this.edits=r,this.changeAnnotations=i}return e.prototype.insert=function(r,i,n){var t,a;if(n===void 0?t=te.insert(r,i):q.is(n)?(a=n,t=ee.insert(r,i,n)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(n),t=ee.insert(r,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(r,i,n){var t,a;if(n===void 0?t=te.replace(r,i):q.is(n)?(a=n,t=ee.replace(r,i,n)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(n),t=ee.replace(r,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(r,i){var n,t;if(i===void 0?n=te.del(r):q.is(i)?(t=i,n=ee.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),n=ee.del(r,t)),this.edits.push(n),t!==void 0)return t},e.prototype.add=function(r){this.edits.push(r)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Ye=function(){function e(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(r,i){var n;if(q.is(r)?n=r:(n=this.nextId(),i=r),this._annotations[n]!==void 0)throw new Error("Id "+n+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+n);return this._annotations[n]=i,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new Ye(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(n){if(je.is(n)){var t=new ke(n.edits,i._changeAnnotations);i._textEditChanges[n.textDocument.uri]=t}})):r.changes&&Object.keys(r.changes).forEach(function(n){var t=new ke(r.changes[n]);i._textEditChanges[n]=t})):this._workspaceEdit={}}return Object.defineProperty(e.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}),e.prototype.getTextEditChange=function(r){if(Ee.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},n=this._textEditChanges[i.uri];if(!n){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),n=new ke(t,this._changeAnnotations),this._textEditChanges[i.uri]=n}return n}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var n=this._textEditChanges[r];if(!n){var t=[];this._workspaceEdit.changes[r]=t,n=new ke(t),this._textEditChanges[r]=n}return n}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Ye,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(r,i,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;ce.is(i)||q.is(i)?t=i:n=i;var a,s;if(t===void 0?a=ve.create(r,n):(s=q.is(t)?t:this._changeAnnotations.manage(t),a=ve.create(r,n,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e.prototype.renameFile=function(r,i,n,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;ce.is(n)||q.is(n)?a=n:t=n;var s,o;if(a===void 0?s=ye.create(r,i,t):(o=q.is(a)?a:this._changeAnnotations.manage(a),s=ye.create(r,i,t,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o},e.prototype.deleteFile=function(r,i,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;ce.is(i)||q.is(i)?t=i:n=i;var a,s;if(t===void 0?a=be.create(r,n):(s=q.is(t)?t:this._changeAnnotations.manage(t),a=be.create(r,n,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e})();var Qe;(function(e){function r(n){return{uri:n}}e.create=r;function i(n){var t=n;return f.defined(t)&&f.string(t.uri)}e.is=i})(Qe||(Qe={}));var Ke;(function(e){function r(n,t){return{uri:n,version:t}}e.create=r;function i(n){var t=n;return f.defined(t)&&f.string(t.uri)&&f.integer(t.version)}e.is=i})(Ke||(Ke={}));var Ee;(function(e){function r(n,t){return{uri:n,version:t}}e.create=r;function i(n){var t=n;return f.defined(t)&&f.string(t.uri)&&(t.version===null||f.integer(t.version))}e.is=i})(Ee||(Ee={}));var et;(function(e){function r(n,t,a,s){return{uri:n,languageId:t,version:a,text:s}}e.create=r;function i(n){var t=n;return f.defined(t)&&f.string(t.uri)&&f.string(t.languageId)&&f.integer(t.version)&&f.string(t.text)}e.is=i})(et||(et={}));var ne;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(ne||(ne={}));(function(e){function r(i){var n=i;return n===e.PlainText||n===e.Markdown}e.is=r})(ne||(ne={}));var De;(function(e){function r(i){var n=i;return f.objectLiteral(i)&&ne.is(n.kind)&&f.string(n.value)}e.is=r})(De||(De={}));var $;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})($||($={}));var Ue;(function(e){e.PlainText=1,e.Snippet=2})(Ue||(Ue={}));var tt;(function(e){e.Deprecated=1})(tt||(tt={}));var nt;(function(e){function r(n,t,a){return{newText:n,insert:t,replace:a}}e.create=r;function i(n){var t=n;return t&&f.string(t.newText)&&U.is(t.insert)&&U.is(t.replace)}e.is=i})(nt||(nt={}));var rt;(function(e){e.asIs=1,e.adjustIndentation=2})(rt||(rt={}));var it;(function(e){function r(i){return{label:i}}e.create=r})(it||(it={}));var at;(function(e){function r(i,n){return{items:i||[],isIncomplete:!!n}}e.create=r})(at||(at={}));var Oe;(function(e){function r(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=r;function i(n){var t=n;return f.string(t)||f.objectLiteral(t)&&f.string(t.language)&&f.string(t.value)}e.is=i})(Oe||(Oe={}));var st;(function(e){function r(i){var n=i;return!!n&&f.objectLiteral(n)&&(De.is(n.contents)||Oe.is(n.contents)||f.typedArray(n.contents,Oe.is))&&(i.range===void 0||U.is(i.range))}e.is=r})(st||(st={}));var ot;(function(e){function r(i,n){return n?{label:i,documentation:n}:{label:i}}e.create=r})(ot||(ot={}));var ut;(function(e){function r(i,n){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];var s={label:i};return f.defined(n)&&(s.documentation=n),f.defined(t)?s.parameters=t:s.parameters=[],s}e.create=r})(ut||(ut={}));var ct;(function(e){e.Text=1,e.Read=2,e.Write=3})(ct||(ct={}));var ft;(function(e){function r(i,n){var t={range:i};return f.number(n)&&(t.kind=n),t}e.create=r})(ft||(ft={}));var F;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(F||(F={}));var lt;(function(e){e.Deprecated=1})(lt||(lt={}));var ht;(function(e){function r(i,n,t,a,s){var o={name:i,kind:n,location:{uri:a,range:t}};return s&&(o.containerName=s),o}e.create=r})(ht||(ht={}));var dt;(function(e){function r(n,t,a,s,o,u){var c={name:n,detail:t,kind:a,range:s,selectionRange:o};return u!==void 0&&(c.children=u),c}e.create=r;function i(n){var t=n;return t&&f.string(t.name)&&f.number(t.kind)&&U.is(t.range)&&U.is(t.selectionRange)&&(t.detail===void 0||f.string(t.detail))&&(t.deprecated===void 0||f.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=i})(dt||(dt={}));var gt;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(gt||(gt={}));var pt;(function(e){function r(n,t){var a={diagnostics:n};return t!=null&&(a.only=t),a}e.create=r;function i(n){var t=n;return f.defined(t)&&f.typedArray(t.diagnostics,Ie.is)&&(t.only===void 0||f.typedArray(t.only,f.string))}e.is=i})(pt||(pt={}));var mt;(function(e){function r(n,t,a){var s={title:n},o=!0;return typeof t=="string"?(o=!1,s.kind=t):me.is(t)?s.command=t:s.edit=t,o&&a!==void 0&&(s.kind=a),s}e.create=r;function i(n){var t=n;return t&&f.string(t.title)&&(t.diagnostics===void 0||f.typedArray(t.diagnostics,Ie.is))&&(t.kind===void 0||f.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||me.is(t.command))&&(t.isPreferred===void 0||f.boolean(t.isPreferred))&&(t.edit===void 0||Le.is(t.edit))}e.is=i})(mt||(mt={}));var vt;(function(e){function r(n,t){var a={range:n};return f.defined(t)&&(a.data=t),a}e.create=r;function i(n){var t=n;return f.defined(t)&&U.is(t.range)&&(f.undefined(t.command)||me.is(t.command))}e.is=i})(vt||(vt={}));var yt;(function(e){function r(n,t){return{tabSize:n,insertSpaces:t}}e.create=r;function i(n){var t=n;return f.defined(t)&&f.uinteger(t.tabSize)&&f.boolean(t.insertSpaces)}e.is=i})(yt||(yt={}));var bt;(function(e){function r(n,t,a){return{range:n,target:t,data:a}}e.create=r;function i(n){var t=n;return f.defined(t)&&U.is(t.range)&&(f.undefined(t.target)||f.string(t.target))}e.is=i})(bt||(bt={}));var wt;(function(e){function r(n,t){return{range:n,parent:t}}e.create=r;function i(n){var t=n;return t!==void 0&&U.is(t.range)&&(t.parent===void 0||e.is(t.parent))}e.is=i})(wt||(wt={}));var At;(function(e){function r(a,s,o,u){return new en(a,s,o,u)}e.create=r;function i(a){var s=a;return!!(f.defined(s)&&f.string(s.uri)&&(f.undefined(s.languageId)||f.string(s.languageId))&&f.uinteger(s.lineCount)&&f.func(s.getText)&&f.func(s.positionAt)&&f.func(s.offsetAt))}e.is=i;function n(a,s){for(var o=a.getText(),u=t(s,function(p,A){var S=p.range.start.line-A.range.start.line;return S===0?p.range.start.character-A.range.start.character:S}),c=o.length,l=u.length-1;l>=0;l--){var h=u[l],m=a.offsetAt(h.range.start),d=a.offsetAt(h.range.end);if(d<=c)o=o.substring(0,m)+h.newText+o.substring(d,o.length);else throw new Error("Overlapping edit");c=m}return o}e.applyEdits=n;function t(a,s){if(a.length<=1)return a;var o=a.length/2|0,u=a.slice(0,o),c=a.slice(o);t(u,s),t(c,s);for(var l=0,h=0,m=0;l<u.length&&h<c.length;){var d=s(u[l],c[h]);d<=0?a[m++]=u[l++]:a[m++]=c[h++]}for(;l<u.length;)a[m++]=u[l++];for(;h<c.length;)a[m++]=c[h++];return a}})(At||(At={}));var en=function(){function e(r,i,n,t){this._uri=r,this._languageId=i,this._version=n,this._content=t,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),n=this.offsetAt(r.end);return this._content.substring(i,n)}return this._content},e.prototype.update=function(r,i){this._content=r.text,this._version=i,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],i=this._content,n=!0,t=0;t<i.length;t++){n&&(r.push(t),n=!1);var a=i.charAt(t);n=a==="\r"||a===`
  4. `,a==="\r"&&t+1<i.length&&i.charAt(t+1)===`
  5. `&&t++}n&&i.length>0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},e.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),n=0,t=i.length;if(t===0)return J.create(0,r);for(;n<t;){var a=Math.floor((n+t)/2);i[a]>r?t=a:n=a+1}var s=n-1;return J.create(s,r-i[s])},e.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var n=i[r.line],t=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(n+r.character,t),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),f;(function(e){var r=Object.prototype.toString;function i(d){return typeof d<"u"}e.defined=i;function n(d){return typeof d>"u"}e.undefined=n;function t(d){return d===!0||d===!1}e.boolean=t;function a(d){return r.call(d)==="[object String]"}e.string=a;function s(d){return r.call(d)==="[object Number]"}e.number=s;function o(d,p,A){return r.call(d)==="[object Number]"&&p<=d&&d<=A}e.numberRange=o;function u(d){return r.call(d)==="[object Number]"&&-2147483648<=d&&d<=2147483647}e.integer=u;function c(d){return r.call(d)==="[object Number]"&&0<=d&&d<=2147483647}e.uinteger=c;function l(d){return r.call(d)==="[object Function]"}e.func=l;function h(d){return d!==null&&typeof d=="object"}e.objectLiteral=h;function m(d,p){return Array.isArray(d)&&d.every(p)}e.typedArray=m})(f||(f={}));var tn=function(e,r,i){if(i||arguments.length===2)for(var n=0,t=r.length,a;n<t;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))},kt=function(){function e(r,i,n,t){this._uri=r,this._languageId=i,this._version=n,this._content=t,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),n=this.offsetAt(r.end);return this._content.substring(i,n)}return this._content},e.prototype.update=function(r,i){for(var n=0,t=r;n<t.length;n++){var a=t[n];if(e.isIncremental(a)){var s=Lt(a.range),o=this.offsetAt(s.start),u=this.offsetAt(s.end);this._content=this._content.substring(0,o)+a.text+this._content.substring(u,this._content.length);var c=Math.max(s.start.line,0),l=Math.max(s.end.line,0),h=this._lineOffsets,m=_t(a.text,!1,o);if(l-c===m.length)for(var d=0,p=m.length;d<p;d++)h[d+c+1]=m[d];else m.length<1e4?h.splice.apply(h,tn([c+1,l-c],m,!1)):this._lineOffsets=h=h.slice(0,c+1).concat(m,h.slice(l+1));var A=a.text.length-(u-o);if(A!==0)for(var d=c+1+m.length,p=h.length;d<p;d++)h[d]=h[d]+A}else if(e.isFull(a))this._content=a.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=i},e.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=_t(this._content,!0)),this._lineOffsets},e.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),n=0,t=i.length;if(t===0)return{line:0,character:r};for(;n<t;){var a=Math.floor((n+t)/2);i[a]>r?t=a:n=a+1}var s=n-1;return{line:s,character:r-i[s]}},e.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var n=i[r.line],t=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(n+r.character,t),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e.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")},e.isFull=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0},e}(),St;(function(e){function r(t,a,s,o){return new kt(t,a,s,o)}e.create=r;function i(t,a,s){if(t instanceof kt)return t.update(a,s),t;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=i;function n(t,a){for(var s=t.getText(),o=We(a.map(nn),function(p,A){var S=p.range.start.line-A.range.start.line;return S===0?p.range.start.character-A.range.start.character:S}),u=0,c=[],l=0,h=o;l<h.length;l++){var m=h[l],d=t.offsetAt(m.range.start);if(d<u)throw new Error("Overlapping edit");d>u&&c.push(s.substring(u,d)),m.newText.length&&c.push(m.newText),u=t.offsetAt(m.range.end)}return c.push(s.substr(u)),c.join("")}e.applyEdits=n})(St||(St={}));function We(e,r){if(e.length<=1)return e;var i=e.length/2|0,n=e.slice(0,i),t=e.slice(i);We(n,r),We(t,r);for(var a=0,s=0,o=0;a<n.length&&s<t.length;){var u=r(n[a],t[s]);u<=0?e[o++]=n[a++]:e[o++]=t[s++]}for(;a<n.length;)e[o++]=n[a++];for(;s<t.length;)e[o++]=t[s++];return e}function _t(e,r,i){i===void 0&&(i=0);for(var n=r?[i]:[],t=0;t<e.length;t++){var a=e.charCodeAt(t);(a===13||a===10)&&(a===13&&t+1<e.length&&e.charCodeAt(t+1)===10&&t++,n.push(i+t+1))}return n}function Lt(e){var r=e.start,i=e.end;return r.line>i.line||r.line===i.line&&r.character>i.character?{start:i,end:r}:e}function nn(e){var r=Lt(e.range);return r!==e.range?{newText:e.newText,range:r}:e}var Ct;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.Deprecated=2]="Deprecated",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"})(Ct||(Ct={}));var It;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[ne.Markdown,ne.PlainText],commitCharactersSupport:!0}}}}})(It||(It={}));function rn(e,r){var i;return r.length===0?i=e:i=e.replace(/\{(\d+)\}/g,function(n,t){var a=t[0];return typeof r[a]<"u"?r[a]:n}),i}function an(e,r){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return rn(r,i)}function qe(e){return an}var re=function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])},e(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");e(r,i);function n(){this.constructor=r}r.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}(),he=qe();he("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),he("dateTimeFormatWarning","String is not a RFC3339 date-time."),he("dateFormatWarning","String is not a RFC3339 date."),he("timeFormatWarning","String is not a RFC3339 time."),he("emailFormatWarning","String is not an e-mail address.");var ie=function(){function e(r,i,n){n===void 0&&(n=0),this.offset=i,this.length=n,this.parent=r}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}();(function(e){re(r,e);function r(i,n){var t=e.call(this,i,n)||this;return t.type="null",t.value=null,t}return r})(ie);(function(e){re(r,e);function r(i,n,t){var a=e.call(this,i,t)||this;return a.type="boolean",a.value=n,a}return r})(ie);(function(e){re(r,e);function r(i,n){var t=e.call(this,i,n)||this;return t.type="array",t.items=[],t}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),r})(ie);(function(e){re(r,e);function r(i,n){var t=e.call(this,i,n)||this;return t.type="number",t.isInteger=!0,t.value=Number.NaN,t}return r})(ie);(function(e){re(r,e);function r(i,n,t){var a=e.call(this,i,n,t)||this;return a.type="string",a.value="",a}return r})(ie);(function(e){re(r,e);function r(i,n,t){var a=e.call(this,i,n)||this;return a.type="property",a.colonOffset=-1,a.keyNode=t,a}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),r})(ie);(function(e){re(r,e);function r(i,n){var t=e.call(this,i,n)||this;return t.type="object",t.properties=[],t}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),r})(ie);function sn(e){return Yt(e)?e?{}:{not:{}}:e}var jt;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(jt||(jt={}));(function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(r){},e.prototype.merge=function(r){},e.prototype.include=function(r){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e})();function on(e){return Xt(e)}var Dt;Dt=(()=>{var e={470:n=>{function t(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function a(o,u){for(var c,l="",h=0,m=-1,d=0,p=0;p<=o.length;++p){if(p<o.length)c=o.charCodeAt(p);else{if(c===47)break;c=47}if(c===47){if(!(m===p-1||d===1))if(m!==p-1&&d===2){if(l.length<2||h!==2||l.charCodeAt(l.length-1)!==46||l.charCodeAt(l.length-2)!==46){if(l.length>2){var A=l.lastIndexOf("/");if(A!==l.length-1){A===-1?(l="",h=0):h=(l=l.slice(0,A)).length-1-l.lastIndexOf("/"),m=p,d=0;continue}}else if(l.length===2||l.length===1){l="",h=0,m=p,d=0;continue}}u&&(l.length>0?l+="/..":l="..",h=2)}else l.length>0?l+="/"+o.slice(m+1,p):l=o.slice(m+1,p),h=p-m-1;m=p,d=0}else c===46&&d!==-1?++d:d=-1}return l}var s={resolve:function(){for(var o,u="",c=!1,l=arguments.length-1;l>=-1&&!c;l--){var h;l>=0?h=arguments[l]:(o===void 0&&(o=process.cwd()),h=o),t(h),h.length!==0&&(u=h+"/"+u,c=h.charCodeAt(0)===47)}return u=a(u,!c),c?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(o){if(t(o),o.length===0)return".";var u=o.charCodeAt(0)===47,c=o.charCodeAt(o.length-1)===47;return(o=a(o,!u)).length!==0||u||(o="."),o.length>0&&c&&(o+="/"),u?"/"+o:o},isAbsolute:function(o){return t(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,u=0;u<arguments.length;++u){var c=arguments[u];t(c),c.length>0&&(o===void 0?o=c:o+="/"+c)}return o===void 0?".":s.normalize(o)},relative:function(o,u){if(t(o),t(u),o===u||(o=s.resolve(o))===(u=s.resolve(u)))return"";for(var c=1;c<o.length&&o.charCodeAt(c)===47;++c);for(var l=o.length,h=l-c,m=1;m<u.length&&u.charCodeAt(m)===47;++m);for(var d=u.length-m,p=h<d?h:d,A=-1,S=0;S<=p;++S){if(S===p){if(d>p){if(u.charCodeAt(m+S)===47)return u.slice(m+S+1);if(S===0)return u.slice(m+S)}else h>p&&(o.charCodeAt(c+S)===47?A=S:S===0&&(A=0));break}var I=o.charCodeAt(c+S);if(I!==u.charCodeAt(m+S))break;I===47&&(A=S)}var C="";for(S=c+A+1;S<=l;++S)S!==l&&o.charCodeAt(S)!==47||(C.length===0?C+="..":C+="/..");return C.length>0?C+u.slice(m+A):(m+=A,u.charCodeAt(m)===47&&++m,u.slice(m))},_makeLong:function(o){return o},dirname:function(o){if(t(o),o.length===0)return".";for(var u=o.charCodeAt(0),c=u===47,l=-1,h=!0,m=o.length-1;m>=1;--m)if((u=o.charCodeAt(m))===47){if(!h){l=m;break}}else h=!1;return l===-1?c?"/":".":c&&l===1?"//":o.slice(0,l)},basename:function(o,u){if(u!==void 0&&typeof u!="string")throw new TypeError('"ext" argument must be a string');t(o);var c,l=0,h=-1,m=!0;if(u!==void 0&&u.length>0&&u.length<=o.length){if(u.length===o.length&&u===o)return"";var d=u.length-1,p=-1;for(c=o.length-1;c>=0;--c){var A=o.charCodeAt(c);if(A===47){if(!m){l=c+1;break}}else p===-1&&(m=!1,p=c+1),d>=0&&(A===u.charCodeAt(d)?--d==-1&&(h=c):(d=-1,h=p))}return l===h?h=p:h===-1&&(h=o.length),o.slice(l,h)}for(c=o.length-1;c>=0;--c)if(o.charCodeAt(c)===47){if(!m){l=c+1;break}}else h===-1&&(m=!1,h=c+1);return h===-1?"":o.slice(l,h)},extname:function(o){t(o);for(var u=-1,c=0,l=-1,h=!0,m=0,d=o.length-1;d>=0;--d){var p=o.charCodeAt(d);if(p!==47)l===-1&&(h=!1,l=d+1),p===46?u===-1?u=d:m!==1&&(m=1):u!==-1&&(m=-1);else if(!h){c=d+1;break}}return u===-1||l===-1||m===0||m===1&&u===l-1&&u===c+1?"":o.slice(u,l)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return function(u,c){var l=c.dir||c.root,h=c.base||(c.name||"")+(c.ext||"");return l?l===c.root?l+h:l+"/"+h:h}(0,o)},parse:function(o){t(o);var u={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return u;var c,l=o.charCodeAt(0),h=l===47;h?(u.root="/",c=1):c=0;for(var m=-1,d=0,p=-1,A=!0,S=o.length-1,I=0;S>=c;--S)if((l=o.charCodeAt(S))!==47)p===-1&&(A=!1,p=S+1),l===46?m===-1?m=S:I!==1&&(I=1):m!==-1&&(I=-1);else if(!A){d=S+1;break}return m===-1||p===-1||I===0||I===1&&m===p-1&&m===d+1?p!==-1&&(u.base=u.name=d===0&&h?o.slice(1,p):o.slice(d,p)):(d===0&&h?(u.name=o.slice(1,m),u.base=o.slice(1,p)):(u.name=o.slice(d,m),u.base=o.slice(d,p)),u.ext=o.slice(m,p)),d>0?u.dir=o.slice(0,d-1):h&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,n.exports=s},447:(n,t,a)=>{var s;if(a.r(t),a.d(t,{URI:()=>I,Utils:()=>N}),typeof process=="object")s=process.platform==="win32";else if(typeof navigator=="object"){var o=navigator.userAgent;s=o.indexOf("Windows")>=0}var u,c,l=(u=function(y,g){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(v[x]=b[x])})(y,g)},function(y,g){function v(){this.constructor=y}u(y,g),y.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}),h=/^\w[\w\d+.-]*$/,m=/^\//,d=/^\/\//,p="",A="/",S=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,I=function(){function y(g,v,b,x,j,O){O===void 0&&(O=!1),typeof g=="object"?(this.scheme=g.scheme||p,this.authority=g.authority||p,this.path=g.path||p,this.query=g.query||p,this.fragment=g.fragment||p):(this.scheme=function(M,V){return M||V?M:"file"}(g,O),this.authority=v||p,this.path=function(M,V){switch(M){case"https":case"http":case"file":V?V[0]!==A&&(V=A+V):V=A}return V}(this.scheme,b||p),this.query=x||p,this.fragment=j||p,function(M,V){if(!M.scheme&&V)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+M.authority+'", path: "'+M.path+'", query: "'+M.query+'", fragment: "'+M.fragment+'"}');if(M.scheme&&!h.test(M.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(M.path){if(M.authority){if(!m.test(M.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(d.test(M.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,O))}return y.isUri=function(g){return g instanceof y||!!g&&typeof g.authority=="string"&&typeof g.fragment=="string"&&typeof g.path=="string"&&typeof g.query=="string"&&typeof g.scheme=="string"&&typeof g.fsPath=="function"&&typeof g.with=="function"&&typeof g.toString=="function"},Object.defineProperty(y.prototype,"fsPath",{get:function(){return P(this)},enumerable:!1,configurable:!0}),y.prototype.with=function(g){if(!g)return this;var v=g.scheme,b=g.authority,x=g.path,j=g.query,O=g.fragment;return v===void 0?v=this.scheme:v===null&&(v=p),b===void 0?b=this.authority:b===null&&(b=p),x===void 0?x=this.path:x===null&&(x=p),j===void 0?j=this.query:j===null&&(j=p),O===void 0?O=this.fragment:O===null&&(O=p),v===this.scheme&&b===this.authority&&x===this.path&&j===this.query&&O===this.fragment?this:new w(v,b,x,j,O)},y.parse=function(g,v){v===void 0&&(v=!1);var b=S.exec(g);return b?new w(b[2]||p,T(b[4]||p),T(b[5]||p),T(b[7]||p),T(b[9]||p),v):new w(p,p,p,p,p)},y.file=function(g){var v=p;if(s&&(g=g.replace(/\\/g,A)),g[0]===A&&g[1]===A){var b=g.indexOf(A,2);b===-1?(v=g.substring(2),g=A):(v=g.substring(2,b),g=g.substring(b)||A)}return new w("file",v,g,p,p)},y.from=function(g){return new w(g.scheme,g.authority,g.path,g.query,g.fragment)},y.prototype.toString=function(g){return g===void 0&&(g=!1),H(this,g)},y.prototype.toJSON=function(){return this},y.revive=function(g){if(g){if(g instanceof y)return g;var v=new w(g);return v._formatted=g.external,v._fsPath=g._sep===C?g.fsPath:null,v}return g},y}(),C=s?1:void 0,w=function(y){function g(){var v=y!==null&&y.apply(this,arguments)||this;return v._formatted=null,v._fsPath=null,v}return l(g,y),Object.defineProperty(g.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=P(this)),this._fsPath},enumerable:!1,configurable:!0}),g.prototype.toString=function(v){return v===void 0&&(v=!1),v?H(this,!0):(this._formatted||(this._formatted=H(this,!1)),this._formatted)},g.prototype.toJSON=function(){var v={$mid:1};return this._fsPath&&(v.fsPath=this._fsPath,v._sep=C),this._formatted&&(v.external=this._formatted),this.path&&(v.path=this.path),this.scheme&&(v.scheme=this.scheme),this.authority&&(v.authority=this.authority),this.query&&(v.query=this.query),this.fragment&&(v.fragment=this.fragment),v},g}(I),R=((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 D(y,g){for(var v=void 0,b=-1,x=0;x<y.length;x++){var j=y.charCodeAt(x);if(j>=97&&j<=122||j>=65&&j<=90||j>=48&&j<=57||j===45||j===46||j===95||j===126||g&&j===47)b!==-1&&(v+=encodeURIComponent(y.substring(b,x)),b=-1),v!==void 0&&(v+=y.charAt(x));else{v===void 0&&(v=y.substr(0,x));var O=R[j];O!==void 0?(b!==-1&&(v+=encodeURIComponent(y.substring(b,x)),b=-1),v+=O):b===-1&&(b=x)}}return b!==-1&&(v+=encodeURIComponent(y.substring(b))),v!==void 0?v:y}function L(y){for(var g=void 0,v=0;v<y.length;v++){var b=y.charCodeAt(v);b===35||b===63?(g===void 0&&(g=y.substr(0,v)),g+=R[b]):g!==void 0&&(g+=y[v])}return g!==void 0?g:y}function P(y,g){var v;return v=y.authority&&y.path.length>1&&y.scheme==="file"?"//"+y.authority+y.path:y.path.charCodeAt(0)===47&&(y.path.charCodeAt(1)>=65&&y.path.charCodeAt(1)<=90||y.path.charCodeAt(1)>=97&&y.path.charCodeAt(1)<=122)&&y.path.charCodeAt(2)===58?y.path[1].toLowerCase()+y.path.substr(2):y.path,s&&(v=v.replace(/\//g,"\\")),v}function H(y,g){var v=g?L:D,b="",x=y.scheme,j=y.authority,O=y.path,M=y.query,V=y.fragment;if(x&&(b+=x,b+=":"),(j||x==="file")&&(b+=A,b+=A),j){var Z=j.indexOf("@");if(Z!==-1){var Ae=j.substr(0,Z);j=j.substr(Z+1),(Z=Ae.indexOf(":"))===-1?b+=v(Ae,!1):(b+=v(Ae.substr(0,Z),!1),b+=":",b+=v(Ae.substr(Z+1),!1)),b+="@"}(Z=(j=j.toLowerCase()).indexOf(":"))===-1?b+=v(j,!1):(b+=v(j.substr(0,Z),!1),b+=j.substr(Z))}if(O){if(O.length>=3&&O.charCodeAt(0)===47&&O.charCodeAt(2)===58)(ae=O.charCodeAt(1))>=65&&ae<=90&&(O="/"+String.fromCharCode(ae+32)+":"+O.substr(3));else if(O.length>=2&&O.charCodeAt(1)===58){var ae;(ae=O.charCodeAt(0))>=65&&ae<=90&&(O=String.fromCharCode(ae+32)+":"+O.substr(2))}b+=v(O,!0)}return M&&(b+="?",b+=v(M,!1)),V&&(b+="#",b+=g?V:D(V,!1)),b}function k(y){try{return decodeURIComponent(y)}catch{return y.length>3?y.substr(0,3)+k(y.substr(3)):y}}var E=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function T(y){return y.match(E)?y.replace(E,function(g){return k(g)}):y}var N,B=a(470),Y=function(){for(var y=0,g=0,v=arguments.length;g<v;g++)y+=arguments[g].length;var b=Array(y),x=0;for(g=0;g<v;g++)for(var j=arguments[g],O=0,M=j.length;O<M;O++,x++)b[x]=j[O];return b},z=B.posix||B;(function(y){y.joinPath=function(g){for(var v=[],b=1;b<arguments.length;b++)v[b-1]=arguments[b];return g.with({path:z.join.apply(z,Y([g.path],v))})},y.resolvePath=function(g){for(var v=[],b=1;b<arguments.length;b++)v[b-1]=arguments[b];var x=g.path||"/";return g.with({path:z.resolve.apply(z,Y([x],v))})},y.dirname=function(g){var v=z.dirname(g.path);return v.length===1&&v.charCodeAt(0)===46?g:g.with({path:v})},y.basename=function(g){return z.basename(g.path)},y.extname=function(g){return z.extname(g.path)}})(N||(N={}))}},r={};function i(n){if(r[n])return r[n].exports;var t=r[n]={exports:{}};return e[n](t,t.exports,i),t.exports}return i.d=(n,t)=>{for(var a in t)i.o(t,a)&&!i.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:t[a]})},i.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),i.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},i(447)})();const{URI:xe,Utils:Jn}=Dt;function un(e,r){if(typeof e!="string")throw new TypeError("Expected a string");for(var i=String(e),n="",t=!1,a=typeof r.flags=="string"?r.flags:"",s,o=0,u=i.length;o<u;o++)switch(s=i[o],s){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":n+="\\"+s;break;case"?":{n+=".";break}case"[":case"]":{n+=s;break}case"{":{t=!0,n+="(";break}case"}":{t=!1,n+=")";break}case",":if(t){n+="|";break}n+="\\"+s;break;case"*":for(var c=i[o-1],l=1;i[o+1]==="*";)l++,o++;var h=i[o+1];{var m=l>1&&(c==="/"||c===void 0||c==="{"||c===",")&&(h==="/"||h===void 0||h===","||h==="}");m?(h==="/"?o++:c==="/"&&n.endsWith("\\/")&&(n=n.substr(0,n.length-2)),n+="((?:[^/]*(?:/|$))*)"):n+="([^/]*)"}break;default:n+=s}return(!a||!~a.indexOf("g"))&&(n="^"+n+"$"),new RegExp(n,a)}var Q=qe(),cn="!",fn="/",ln=function(){function e(r,i){this.globWrappers=[];try{for(var n=0,t=r;n<t.length;n++){var a=t[n],s=a[0]!==cn;s||(a=a.substring(1)),a.length>0&&(a[0]===fn&&(a=a.substring(1)),this.globWrappers.push({regexp:un("**/"+a,{extended:!0,globstar:!0}),include:s}))}this.uris=i}catch{this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(r){for(var i=!1,n=0,t=this.globWrappers;n<t.length;n++){var a=t[n],s=a.regexp,o=a.include;s.test(r)&&(i=o)}return i},e.prototype.getURIs=function(){return this.uris},e}(),hn=function(){function e(r,i,n){this.service=r,this.url=i,this.dependencies={},n&&(this.unresolvedSchema=this.service.promise.resolve(new oe(n)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.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},e.prototype.clearSchema=function(){this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies={}},e}(),oe=function(){function e(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return e}(),Et=function(){function e(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return e.prototype.getSection=function(r){var i=this.getSectionRecursive(r,this.schema);if(i)return sn(i)},e.prototype.getSectionRecursive=function(r,i){if(!i||typeof i=="boolean"||r.length===0)return i;var n=r.shift();if(i.properties&&typeof i.properties[n])return this.getSectionRecursive(r,i.properties[n]);if(i.patternProperties)for(var t=0,a=Object.keys(i.patternProperties);t<a.length;t++){var s=a[t],o=Kt(s);if(o.test(n))return this.getSectionRecursive(r,i.patternProperties[s])}else{if(typeof i.additionalProperties=="object")return this.getSectionRecursive(r,i.additionalProperties);if(n.match("[0-9]+")){if(Array.isArray(i.items)){var u=parseInt(n,10);if(!isNaN(u)&&i.items[u])return this.getSectionRecursive(r,i.items[u])}else if(i.items)return this.getSectionRecursive(r,i.items)}}},e}();(function(){function e(r,i,n){this.contextService=i,this.requestService=r,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(i){var n=xe.parse(i).scheme;return n!=="schemaservice"&&(!r||r(n))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(r){var i=this;this.cachedSchemaForResource=void 0;var n=!1;r=K(r);for(var t=[r],a=Object.keys(this.schemasById).map(function(c){return i.schemasById[c]});t.length;)for(var s=t.pop(),o=0;o<a.length;o++){var u=a[o];u&&(u.url===s||u.dependencies[s])&&(u.url!==s&&t.push(u.url),u.clearSchema(),a[o]=void 0,n=!0)}return n},e.prototype.setSchemaContributions=function(r){if(r.schemas){var i=r.schemas;for(var n in i){var t=K(n);this.contributionSchemas[t]=this.addSchemaHandle(t,i[n])}}if(Array.isArray(r.schemaAssociations))for(var a=r.schemaAssociations,s=0,o=a;s<o.length;s++){var u=o[s],c=u.uris.map(K),l=this.addFilePatternAssociation(u.pattern,c);this.contributionAssociations.push(l)}},e.prototype.addSchemaHandle=function(r,i){var n=new hn(this,r,i);return this.schemasById[r]=n,n},e.prototype.getOrAddSchemaHandle=function(r,i){return this.schemasById[r]||this.addSchemaHandle(r,i)},e.prototype.addFilePatternAssociation=function(r,i){var n=new ln(r,i);return this.filePatternAssociations.push(n),n},e.prototype.registerExternalSchema=function(r,i,n){var t=K(r);return this.registeredSchemasIds[t]=!0,this.cachedSchemaForResource=void 0,i&&this.addFilePatternAssociation(i,[t]),n?this.addSchemaHandle(t,n):this.getOrAddSchemaHandle(t)},e.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,n=this.contributionAssociations;i<n.length;i++){var t=n[i];this.filePatternAssociations.push(t)}},e.prototype.getResolvedSchema=function(r){var i=K(r),n=this.schemasById[i];return n?n.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(r){if(!this.requestService){var i=Q("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",Se(r));return this.promise.resolve(new oe({},[i]))}return this.requestService(r).then(function(n){if(!n){var t=Q("json.schema.nocontent","Unable to load schema from '{0}': No content.",Se(r));return new oe({},[t])}var a={},s=[];a=Zt(n,s);var o=s.length?[Q("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",Se(r),s[0].offset)]:[];return new oe(a,o)},function(n){var t=n.toString(),a=n.toString().split("Error: ");return a.length>1&&(t=a[1]),Qt(t,".")&&(t=t.substr(0,t.length-1)),new oe({},[Q("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Se(r),t)])})},e.prototype.resolveSchemaContent=function(r,i,n){var t=this,a=r.errors.slice(0),s=r.schema;if(s.$schema){var o=K(s.$schema);if(o==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Et({},[Q("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));o==="https://json-schema.org/draft/2019-09/schema"&&a.push(Q("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var u=this.contextService,c=function(d,p){if(!p)return d;var A=d;return p[0]==="/"&&(p=p.substr(1)),p.split("/").some(function(S){return S=S.replace(/~1/g,"/").replace(/~0/g,"~"),A=A[S],!A}),A},l=function(d,p,A,S){var I=S?decodeURIComponent(S):void 0,C=c(p,I);if(C)for(var w in C)C.hasOwnProperty(w)&&!d.hasOwnProperty(w)&&(d[w]=C[w]);else a.push(Q("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",I,A))},h=function(d,p,A,S,I){u&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(p)&&(p=u.resolveRelativePath(p,S)),p=K(p);var C=t.getOrAddSchemaHandle(p);return C.getUnresolvedSchema().then(function(w){if(I[p]=!0,w.errors.length){var R=A?p+"#"+A:p;a.push(Q("json.schema.problemloadingref","Problems loading reference '{0}': {1}",R,w.errors[0]))}return l(d,w.schema,p,A),m(d,w.schema,p,C.dependencies)})},m=function(d,p,A,S){if(!d||typeof d!="object")return Promise.resolve(null);for(var I=[d],C=[],w=[],R=function(){for(var k=[],E=0;E<arguments.length;E++)k[E]=arguments[E];for(var T=0,N=k;T<N.length;T++){var B=N[T];typeof B=="object"&&I.push(B)}},D=function(){for(var k=[],E=0;E<arguments.length;E++)k[E]=arguments[E];for(var T=0,N=k;T<N.length;T++){var B=N[T];if(typeof B=="object")for(var Y in B){var z=Y,y=B[z];typeof y=="object"&&I.push(y)}}},L=function(){for(var k=[],E=0;E<arguments.length;E++)k[E]=arguments[E];for(var T=0,N=k;T<N.length;T++){var B=N[T];if(Array.isArray(B))for(var Y=0,z=B;Y<z.length;Y++){var y=z[Y];typeof y=="object"&&I.push(y)}}},P=function(k){for(var E=[];k.$ref;){var T=k.$ref,N=T.split("#",2);if(delete k.$ref,N[0].length>0){w.push(h(k,N[0],N[1],A,S));return}else E.indexOf(T)===-1&&(l(k,p,A,N[1]),E.push(T))}R(k.items,k.additionalItems,k.additionalProperties,k.not,k.contains,k.propertyNames,k.if,k.then,k.else),D(k.definitions,k.properties,k.patternProperties,k.dependencies),L(k.anyOf,k.allOf,k.oneOf,k.items)};I.length;){var H=I.pop();C.indexOf(H)>=0||(C.push(H),P(H))}return t.promise.all(w)};return m(s,s,i,n).then(function(d){return new Et(s,a)})},e.prototype.getSchemaForResource=function(r,i){if(i&&i.root&&i.root.type==="object"){var n=i.root.properties.filter(function(I){return I.keyNode.value==="$schema"&&I.valueNode&&I.valueNode.type==="string"});if(n.length>0){var t=n[0].valueNode;if(t&&t.type==="string"){var a=on(t);if(a&&Ft(a,".")&&this.contextService&&(a=this.contextService.resolveRelativePath(a,r)),a){var s=K(a);return this.getOrAddSchemaHandle(s).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===r)return this.cachedSchemaForResource.resolvedSchema;for(var o=Object.create(null),u=[],c=gn(r),l=0,h=this.filePatternAssociations;l<h.length;l++){var m=h[l];if(m.matchesPattern(c))for(var d=0,p=m.getURIs();d<p.length;d++){var A=p[d];o[A]||(u.push(A),o[A]=!0)}}var S=u.length>0?this.createCombinedSchema(r,u).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:r,resolvedSchema:S},S},e.prototype.createCombinedSchema=function(r,i){if(i.length===1)return this.getOrAddSchemaHandle(i[0]);var n="schemaservice://combinedSchema/"+encodeURIComponent(r),t={allOf:i.map(function(a){return{$ref:a}})};return this.addSchemaHandle(n,t)},e.prototype.getMatchingSchemas=function(r,i,n){if(n){var t=n.id||"schemaservice://untitled/matchingSchemas/"+dn++;return this.resolveSchemaContent(new oe(n),t,{}).then(function(a){return i.getMatchingSchemas(a.schema).filter(function(s){return!s.inverted})})}return this.getSchemaForResource(r.uri,i).then(function(a){return a?i.getMatchingSchemas(a.schema).filter(function(s){return!s.inverted}):[]})},e})();var dn=0;function K(e){try{return xe.parse(e).toString()}catch{return e}}function gn(e){try{return xe.parse(e).with({fragment:null,query:null}).toString()}catch{return e}}function Se(e){try{var r=xe.parse(e);if(r.scheme==="file")return r.fsPath}catch{}return e}var _=qe(),Ot={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}}},pn={id:_("schema.json.id","A unique identifier for the schema."),$schema:_("schema.json.$schema","The schema to verify this document against."),title:_("schema.json.title","A descriptive title of the element."),description:_("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:_("schema.json.default","A default value. Used by suggestions."),multipleOf:_("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:_("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:_("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:_("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:_("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:_("schema.json.maxLength","The maximum length of a string."),minLength:_("schema.json.minLength","The minimum length of a string."),pattern:_("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:_("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:_("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:_("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:_("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:_("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:_("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:_("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:_("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:_("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:_("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:_("schema.json.properties","A map of property names to schemas for each property."),patternProperties:_("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:_("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:_("schema.json.enum","The set of literal values that are valid."),type:_("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:_("schema.json.format","Describes the format expected for the value."),allOf:_("schema.json.allOf","An array of schemas, all of which must match."),anyOf:_("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:_("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:_("schema.json.not","A schema which must not match."),$id:_("schema.json.$id","A unique identifier for the schema."),$ref:_("schema.json.$ref","Reference a definition hosted on any location."),$comment:_("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:_("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:_("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:_("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:_("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:_("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:_("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:_("schema.json.contentEncoding","Describes the content encoding of a string property."),if:_("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:_("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:_("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(var mn in Ot.schemas){var Pe=Ot.schemas[mn];for(var de in Pe.properties){var Re=Pe.properties[de];typeof Re=="boolean"&&(Re=Pe.properties[de]={});var xt=pn[de];xt?Re.description=xt:console.log(de+": localize('schema.json."+de+`', "")`)}}var vn=function(){function e(r,i,n){var t=this;this._languageId=r,this._worker=i,this._disposables=[],this._listener=Object.create(null);var a=function(o){var u=o.getLanguageId();if(u===t._languageId){var c;t._listener[o.uri.toString()]=o.onDidChangeContent(function(){clearTimeout(c),c=setTimeout(function(){return t._doValidate(o.uri,u)},500)}),t._doValidate(o.uri,u)}},s=function(o){G.setModelMarkers(o,t._languageId,[]);var u=o.uri.toString(),c=t._listener[u];c&&(c.dispose(),delete t._listener[u])};this._disposables.push(G.onDidCreateModel(a)),this._disposables.push(G.onWillDisposeModel(function(o){s(o),t._resetSchema(o.uri)})),this._disposables.push(G.onDidChangeModelLanguage(function(o){s(o.model),a(o.model),t._resetSchema(o.model.uri)})),this._disposables.push(n.onDidChange(function(o){G.getModels().forEach(function(u){u.getLanguageId()===t._languageId&&(s(u),a(u))})})),this._disposables.push({dispose:function(){G.getModels().forEach(s);for(var o in t._listener)t._listener[o].dispose()}}),G.getModels().forEach(a)}return e.prototype.dispose=function(){this._disposables.forEach(function(r){return r&&r.dispose()}),this._disposables=[]},e.prototype._resetSchema=function(r){this._worker().then(function(i){i.resetSchema(r.toString())})},e.prototype._doValidate=function(r,i){this._worker(r).then(function(n){return n.doValidation(r.toString()).then(function(t){var a=t.map(function(o){return bn(r,o)}),s=G.getModel(r);s&&s.getLanguageId()===i&&G.setModelMarkers(s,i,a)})}).then(void 0,function(n){console.error(n)})},e}();function yn(e){switch(e){case ue.Error:return fe.Error;case ue.Warning:return fe.Warning;case ue.Information:return fe.Info;case ue.Hint:return fe.Hint;default:return fe.Info}}function bn(e,r){var i=typeof r.code=="number"?String(r.code):r.code;return{severity:yn(r.severity),startLineNumber:r.range.start.line+1,startColumn:r.range.start.character+1,endLineNumber:r.range.end.line+1,endColumn:r.range.end.character+1,message:r.message,code:i,source:r.source}}function Ve(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Ut(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function X(e){if(e)return new Mt(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function wn(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function An(e){var r=W.CompletionItemKind;switch(e){case $.Text:return r.Text;case $.Method:return r.Method;case $.Function:return r.Function;case $.Constructor:return r.Constructor;case $.Field:return r.Field;case $.Variable:return r.Variable;case $.Class:return r.Class;case $.Interface:return r.Interface;case $.Module:return r.Module;case $.Property:return r.Property;case $.Unit:return r.Unit;case $.Value:return r.Value;case $.Enum:return r.Enum;case $.Keyword:return r.Keyword;case $.Snippet:return r.Snippet;case $.Color:return r.Color;case $.File:return r.File;case $.Reference:return r.Reference}return r.Property}function we(e){if(e)return{range:X(e.range),text:e.newText}}function kn(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Sn=function(){function e(r){this._worker=r}return Object.defineProperty(e.prototype,"triggerCharacters",{get:function(){return[" ",":",'"']},enumerable:!1,configurable:!0}),e.prototype.provideCompletionItems=function(r,i,n,t){var a=r.uri;return this._worker(a).then(function(s){return s.doComplete(a.toString(),Ve(i))}).then(function(s){if(s){var o=r.getWordUntilPosition(i),u=new Mt(i.lineNumber,o.startColumn,i.lineNumber,o.endColumn),c=s.items.map(function(l){var h={label:l.label,insertText:l.insertText||l.label,sortText:l.sortText,filterText:l.filterText,documentation:l.documentation,detail:l.detail,command:kn(l.command),range:u,kind:An(l.kind)};return l.textEdit&&(wn(l.textEdit)?h.range={insert:X(l.textEdit.insert),replace:X(l.textEdit.replace)}:h.range=X(l.textEdit.range),h.insertText=l.textEdit.newText),l.additionalTextEdits&&(h.additionalTextEdits=l.additionalTextEdits.map(we)),l.insertTextFormat===Ue.Snippet&&(h.insertTextRules=W.CompletionItemInsertTextRule.InsertAsSnippet),h});return{isIncomplete:s.isIncomplete,suggestions:c}}})},e}();function _n(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Tt(e){return typeof e=="string"?{value:e}:_n(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+`
  6. `+e.value+"\n```\n"}}function Cn(e){if(e)return Array.isArray(e)?e.map(Tt):[Tt(e)]}var In=function(){function e(r){this._worker=r}return e.prototype.provideHover=function(r,i,n){var t=r.uri;return this._worker(t).then(function(a){return a.doHover(t.toString(),Ve(i))}).then(function(a){if(a)return{range:X(a.range),contents:Cn(a.contents)}})},e}();function jn(e){var r=W.SymbolKind;switch(e){case F.File:return r.Array;case F.Module:return r.Module;case F.Namespace:return r.Namespace;case F.Package:return r.Package;case F.Class:return r.Class;case F.Method:return r.Method;case F.Property:return r.Property;case F.Field:return r.Field;case F.Constructor:return r.Constructor;case F.Enum:return r.Enum;case F.Interface:return r.Interface;case F.Function:return r.Function;case F.Variable:return r.Variable;case F.Constant:return r.Constant;case F.String:return r.String;case F.Number:return r.Number;case F.Boolean:return r.Boolean;case F.Array:return r.Array}return r.Function}var En=function(){function e(r){this._worker=r}return e.prototype.provideDocumentSymbols=function(r,i){var n=r.uri;return this._worker(n).then(function(t){return t.findDocumentSymbols(n.toString())}).then(function(t){if(t)return t.map(function(a){return{name:a.name,detail:"",containerName:a.containerName,kind:jn(a.kind),range:X(a.location.range),selectionRange:X(a.location.range),tags:[]}})})},e}();function Wt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var On=function(){function e(r){this._worker=r}return e.prototype.provideDocumentFormattingEdits=function(r,i,n){var t=r.uri;return this._worker(t).then(function(a){return a.format(t.toString(),null,Wt(i)).then(function(s){if(!(!s||s.length===0))return s.map(we)})})},e}(),xn=function(){function e(r){this._worker=r}return e.prototype.provideDocumentRangeFormattingEdits=function(r,i,n,t){var a=r.uri;return this._worker(a).then(function(s){return s.format(a.toString(),Ut(i),Wt(n)).then(function(o){if(!(!o||o.length===0))return o.map(we)})})},e}(),Tn=function(){function e(r){this._worker=r}return e.prototype.provideDocumentColors=function(r,i){var n=r.uri;return this._worker(n).then(function(t){return t.findDocumentColors(n.toString())}).then(function(t){if(t)return t.map(function(a){return{color:a.color,range:X(a.range)}})})},e.prototype.provideColorPresentations=function(r,i,n){var t=r.uri;return this._worker(t).then(function(a){return a.getColorPresentations(t.toString(),i.color,Ut(i.range))}).then(function(a){if(a)return a.map(function(s){var o={label:s.label};return s.textEdit&&(o.textEdit=we(s.textEdit)),s.additionalTextEdits&&(o.additionalTextEdits=s.additionalTextEdits.map(we)),o})})},e}(),Pn=function(){function e(r){this._worker=r}return e.prototype.provideFoldingRanges=function(r,i,n){var t=r.uri;return this._worker(t).then(function(a){return a.getFoldingRanges(t.toString(),i)}).then(function(a){if(a)return a.map(function(s){var o={start:s.startLine+1,end:s.endLine+1};return typeof s.kind<"u"&&(o.kind=Rn(s.kind)),o})})},e}();function Rn(e){switch(e){case pe.Comment:return W.FoldingRangeKind.Comment;case pe.Imports:return W.FoldingRangeKind.Imports;case pe.Region:return W.FoldingRangeKind.Region}}var Nn=function(){function e(r){this._worker=r}return e.prototype.provideSelectionRanges=function(r,i,n){var t=r.uri;return this._worker(t).then(function(a){return a.getSelectionRanges(t.toString(),i.map(Ve))}).then(function(a){if(a)return a.map(function(s){for(var o=[];s;)o.push({range:X(s.range)}),s=s.parent;return o})})},e}();function Mn(e){return{getInitialState:function(){return new qt(null,null,!1,null)},tokenize:function(r,i,n,t){return zn(e,r,i,n)}}}var Pt="delimiter.bracket.json",Rt="delimiter.array.json",$n="delimiter.colon.json",Fn="delimiter.comma.json",Ln="keyword.json",Dn="keyword.json",Un="string.value.json",Wn="number.json",qn="string.key.json",Vn="comment.block.json",Bn="comment.line.json",ge=function(){function e(r,i){this.parent=r,this.type=i}return e.pop=function(r){return r?r.parent:null},e.push=function(r,i){return new e(r,i)},e.equals=function(r,i){if(!r&&!i)return!0;if(!r||!i)return!1;for(;r&&i;){if(r===i)return!0;if(r.type!==i.type)return!1;r=r.parent,i=i.parent}return!0},e}(),qt=function(){function e(r,i,n,t){this._state=r,this.scanError=i,this.lastWasColon=n,this.parents=t}return e.prototype.clone=function(){return new e(this._state,this.scanError,this.lastWasColon,this.parents)},e.prototype.equals=function(r){return r===this?!0:!r||!(r instanceof e)?!1:this.scanError===r.scanError&&this.lastWasColon===r.lastWasColon&&ge.equals(this.parents,r.parents)},e.prototype.getStateData=function(){return this._state},e.prototype.setStateData=function(r){this._state=r},e}();function zn(e,r,i,n,t){n===void 0&&(n=0);var a=0,s=!1;switch(i.scanError){case 2:r='"'+r,a=1;break;case 1:r="/*"+r,a=2;break}for(var o=Jt(r),u=i.lastWasColon,c=i.parents,l={tokens:[],endState:i.clone()};;){var h=n+o.getPosition(),m="",d=o.scan();if(d===17)break;if(h===n+o.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+r.substr(o.getPosition(),3));switch(s&&(h-=a),s=a>0,d){case 1:c=ge.push(c,0),m=Pt,u=!1;break;case 2:c=ge.pop(c),m=Pt,u=!1;break;case 3:c=ge.push(c,1),m=Rt,u=!1;break;case 4:c=ge.pop(c),m=Rt,u=!1;break;case 6:m=$n,u=!0;break;case 5:m=Fn,u=!1;break;case 8:case 9:m=Ln,u=!1;break;case 7:m=Dn,u=!1;break;case 10:var p=c?c.type:0,A=p===1;m=u||A?Un:qn,u=!1;break;case 11:m=Wn,u=!1;break}switch(d){case 12:m=Bn;break;case 13:m=Vn;break}l.endState=new qt(i.getStateData(),o.getTokenError(),u,c),l.tokens.push({startIndex:h,scopes:m})}return l}function Zn(e){var r=[],i=[],n=new zt(e);r.push(n);var t=function(){for(var o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];return n.getLanguageServiceWorker.apply(n,o)};function a(){var o=e.languageId,u=e.modeConfiguration;Vt(i),u.documentFormattingEdits&&i.push(W.registerDocumentFormattingEditProvider(o,new On(t))),u.documentRangeFormattingEdits&&i.push(W.registerDocumentRangeFormattingEditProvider(o,new xn(t))),u.completionItems&&i.push(W.registerCompletionItemProvider(o,new Sn(t))),u.hovers&&i.push(W.registerHoverProvider(o,new In(t))),u.documentSymbols&&i.push(W.registerDocumentSymbolProvider(o,new En(t))),u.tokens&&i.push(W.setTokensProvider(o,Mn(!0))),u.colors&&i.push(W.registerColorProvider(o,new Tn(t))),u.foldingRanges&&i.push(W.registerFoldingRangeProvider(o,new Pn(t))),u.diagnostics&&i.push(new vn(o,t,e)),u.selectionRanges&&i.push(W.registerSelectionRangeProvider(o,new Nn(t)))}a(),r.push(W.setLanguageConfiguration(e.languageId,Hn));var s=e.modeConfiguration;return e.onDidChange(function(o){o.modeConfiguration!==s&&(s=o.modeConfiguration,a())}),r.push(Nt(i)),Nt(r)}function Nt(e){return{dispose:function(){return Vt(e)}}}function Vt(e){for(;e.length;)e.pop().dispose()}var Hn={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]};export{Zn as setupMode};