You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/290.a3c18be5.async.js

32 lines
125 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[290],{R7lK:function(Br,Je,Ie){"use strict";Ie.r(Je),Ie.d(Je,"setupMode",function(){return Yn});var qe=2*60*1e3,ft=function(){function e(t){var n=this;this._defaults=t,this._worker=null,this._idleCheckInterval=setInterval(function(){return n._checkIfIdle()},30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return n._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)return;var t=Date.now()-this._lastUsedTime;t>qe&&this._stopWorker()},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=monaco.editor.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 t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i;return this._getClient().then(function(a){i=a}).then(function(a){return t._worker.withSyncedResources(n)}).then(function(a){return i})},e}();function H(e,t){t===void 0&&(t=!1);var n=e.length,r=0,i="",a=0,o=16,u=0,c=0,l=0,s=0,f=0;function d(p,N){for(var S=0,E=0;S<p||!N;){var x=e.charCodeAt(r);if(x>=48&&x<=57)E=E*16+x-48;else if(x>=65&&x<=70)E=E*16+x-65+10;else if(x>=97&&x<=102)E=E*16+x-97+10;else break;r++,S++}return S<p&&(E=-1),E}function h(p){r=p,i="",a=0,o=16,f=0}function m(){var p=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&Te(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&Te(e.charCodeAt(r)))for(r++;r<e.length&&Te(e.charCodeAt(r));)r++;else return f=3,e.substring(p,r);var N=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&Te(e.charCodeAt(r))){for(r++;r<e.length&&Te(e.charCodeAt(r));)r++;N=r}else f=3;return e.substring(p,N)}function y(){for(var p="",N=r;;){if(r>=n){p+=e.substring(N,r),f=2;break}var S=e.charCodeAt(r);if(S===34){p+=e.substring(N,r),r++;break}if(S===92){if(p+=e.substring(N,r),r++,r>=n){f=2;break}var E=e.charCodeAt(r++);switch(E){case 34:p+='"';break;case 92:p+="\\";break;case 47:p+="/";break;case 98:p+="\b";break;case 102:p+="\f";break;case 110:p+=`
`;break;case 114:p+="\r";break;case 116:p+=" ";break;case 117:var x=d(4,!0);x>=0?p+=String.fromCharCode(x):f=4;break;default:f=5}N=r;continue}if(S>=0&&S<=31)if(Ce(S)){p+=e.substring(N,r),f=2;break}else f=6;r++}return p}function T(){if(i="",f=0,a=r,c=u,s=l,r>=n)return a=n,o=17;var p=e.charCodeAt(r);if(ce(p)){do r++,i+=String.fromCharCode(p),p=e.charCodeAt(r);while(ce(p));return o=15}if(Ce(p))return r++,i+=String.fromCharCode(p),p===13&&e.charCodeAt(r)===10&&(r++,i+=`
`),u++,l=r,o=14;switch(p){case 123:return r++,o=1;case 125:return r++,o=2;case 91:return r++,o=3;case 93:return r++,o=4;case 58:return r++,o=6;case 44:return r++,o=5;case 34:return r++,i=y(),o=10;case 47:var N=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!Ce(e.charCodeAt(r));)r++;return i=e.substring(N,r),o=12}if(e.charCodeAt(r+1)===42){r+=2;for(var S=n-1,E=!1;r<S;){var x=e.charCodeAt(r);if(x===42&&e.charCodeAt(r+1)===47){r+=2,E=!0;break}r++,Ce(x)&&(x===13&&e.charCodeAt(r)===10&&r++,u++,l=r)}return E||(r++,f=1),i=e.substring(N,r),o=13}return i+=String.fromCharCode(p),r++,o=16;case 45:if(i+=String.fromCharCode(p),r++,r===n||!Te(e.charCodeAt(r)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=m(),o=11;default:for(;r<n&&b(p);)r++,p=e.charCodeAt(r);if(a!==r){i=e.substring(a,r);switch(i){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return i+=String.fromCharCode(p),r++,o=16}}function b(p){if(ce(p)||Ce(p))return!1;switch(p){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function k(){var p;do p=T();while(p>=12&&p<=15);return p}return{setPosition:h,getPosition:function(){return r},scan:t?k:T,getToken:function(){return o},getTokenValue:function(){return i},getTokenOffset:function(){return a},getTokenLength:function(){return r-a},getTokenStartLine:function(){return c},getTokenStartCharacter:function(){return a-s},getTokenError:function(){return f}}}function ce(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 Ce(e){return e===10||e===13||e===8232||e===8233}function Te(e){return e>=48&&e<=57}function ht(e,t,n){var r,i,a,o,u;if(t){for(o=t.offset,u=o+t.length,a=o;a>0&&!Pe(e,a-1);)a--;for(var c=u;c<e.length&&!Pe(e,c);)c++;i=e.substring(a,c),r=dt(i,n)}else i=e,r=0,a=0,o=0,u=e.length;var l=pt(n,e),s=!1,f=0,d;n.insertSpaces?d=He(" ",n.tabSize||4):d=" ";var h=H(i,!1),m=!1;function y(){return l+He(d,r+f)}function T(){var O=h.scan();for(s=!1;O===15||O===14;)s=s||O===14,O=h.scan();return m=O===16||h.getTokenError()!==0,O}var b=[];function k(O,L,D){!m&&L<u&&D>o&&e.substring(L,D)!==O&&b.push({offset:L,length:D-L,content:O})}var p=T();if(p!==17){var N=h.getTokenOffset()+a,S=He(d,r);k(S,a,N)}for(;p!==17;){for(var E=h.getTokenOffset()+h.getTokenLength()+a,x=T(),A="";!s&&(x===12||x===13);){var g=h.getTokenOffset()+a;k(" ",E,g),E=h.getTokenOffset()+h.getTokenLength()+a,A=x===12?y():"",x=T()}if(x===2)p!==1&&(f--,A=y());else if(x===4)p!==3&&(f--,A=y());else{switch(p){case 3:case 1:f++,A=y();break;case 5:case 12:A=y();break;case 13:s?A=y():A=" ";break;case 6:A=" ";break;case 10:if(x===6){A="";break}case 7:case 8:case 9:case 11:case 2:case 4:x===12||x===13?A=" ":x!==5&&x!==17&&(m=!0);break;case 16:m=!0;break}s&&(x===12||x===13)&&(A=y())}var I=h.getTokenOffset()+a;k(A,E,I),p=x}return b}function He(e,t){for(var n="",r=0;r<t;r++)n+=e;return n}function dt(e,t){for(var n=0,r=0,i=t.tabSize||4;n<e.length;){var a=e.charAt(n);if(a===" ")r++;else if(a===" ")r+=i;else break;n++}return Math.floor(r/i)}function pt(e,t){for(var n=0;n<t.length;n++){var r=t.charAt(n);if(r==="\r")return n+1<t.length&&t.charAt(n+1)===`
`?`\r
`:"\r";if(r===`
`)return`
`}return e&&e.eol||`
`}function Pe(e,t){return`\r
`.indexOf(e.charAt(t))!==-1}var we;(function(e){e.DEFAULT={allowTrailingComma:!1}})(we||(we={}));function mt(e,t){var n=[],r=new Object,i=void 0,a={value:{},offset:0,length:0,type:"object",parent:void 0},o=!1;function u(c,l,s,f){a.value=c,a.offset=l,a.length=s,a.type=f,a.colonOffset=void 0,i=a}try{xe(e,{onObjectBegin:function(c,l){if(t<=c)throw r;i=void 0,o=t>c,n.push("")},onObjectProperty:function(c,l,s){if(t<l)throw r;if(u(c,l,s,"property"),n[n.length-1]=c,t<=l+s)throw r},onObjectEnd:function(c,l){if(t<=c)throw r;i=void 0,n.pop()},onArrayBegin:function(c,l){if(t<=c)throw r;i=void 0,n.push(0)},onArrayEnd:function(c,l){if(t<=c)throw r;i=void 0,n.pop()},onLiteralValue:function(c,l,s){if(t<l)throw r;if(u(c,l,s,le(c)),t<=l+s)throw r},onSeparator:function(c,l,s){if(t<=l)throw r;if(c===":"&&i&&i.type==="property")i.colonOffset=l,o=!1,i=void 0;else if(c===","){var f=n[n.length-1];typeof f=="number"?n[n.length-1]=f+1:(o=!0,n[n.length-1]=""),i=void 0}}})}catch(c){if(c!==r)throw c}return{path:n,previousNode:i,isAtPropertyKey:o,matches:function(c){for(var l=0,s=0;l<c.length&&s<n.length;s++)if(c[l]===n[s]||c[l]==="*")l++;else if(c[l]!=="**")return!1;return l===c.length}}}function gt(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=we.DEFAULT);var r=null,i=[],a=[];function o(c){Array.isArray(i)?i.push(c):r!==null&&(i[r]=c)}var u={onObjectBegin:function(){var c={};o(c),a.push(i),i=c,r=null},onObjectProperty:function(c){r=c},onObjectEnd:function(){i=a.pop()},onArrayBegin:function(){var c=[];o(c),a.push(i),i=c,r=null},onArrayEnd:function(){i=a.pop()},onLiteralValue:o,onError:function(c,l,s){t.push({error:c,offset:l,length:s})}};return xe(e,u,n),i[0]}function ze(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=we.DEFAULT);var r={type:"array",offset:-1,length:-1,children:[],parent:void 0};function i(c){r.type==="property"&&(r.length=c-r.offset,r=r.parent)}function a(c){return r.children.push(c),c}var o={onObjectBegin:function(c){r=a({type:"object",offset:c,length:-1,parent:r,children:[]})},onObjectProperty:function(c,l,s){r=a({type:"property",offset:l,length:-1,parent:r,children:[]}),r.children.push({type:"string",value:c,offset:l,length:s,parent:r})},onObjectEnd:function(c,l){r.length=c+l-r.offset,r=r.parent,i(c+l)},onArrayBegin:function(c,l){r=a({type:"array",offset:c,length:-1,parent:r,children:[]})},onArrayEnd:function(c,l){r.length=c+l-r.offset,r=r.parent,i(c+l)},onLiteralValue:function(c,l,s){a({type:le(c),offset:l,length:s,parent:r,value:c}),i(l+s)},onSeparator:function(c,l,s){r.type==="property"&&(c===":"?r.colonOffset=l:c===","&&i(l))},onError:function(c,l,s){t.push({error:c,offset:l,length:s})}};xe(e,o,n);var u=r.children[0];return u&&delete u.parent,u}function Fe(e,t){if(!e)return;for(var n=e,r=0,i=t;r<i.length;r++){var a=i[r];if(typeof a=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;for(var o=!1,u=0,c=n.children;u<c.length;u++){var l=c[u];if(Array.isArray(l.children)&&l.children[0].value===a){n=l.children[1],o=!0;break}}if(!o)return}else{var s=a;if(n.type!=="array"||s<0||!Array.isArray(n.children)||s>=n.children.length)return;n=n.children[s]}}return n}function Ke(e){if(!e.parent||!e.parent.children)return[];var t=Ke(e.parent);if(e.parent.type==="property"){var n=e.parent.children[0].value;t.push(n)}else if(e.parent.type==="array"){var r=e.parent.children.indexOf(e);r!==-1&&t.push(r)}return t}function B(e){switch(e.type){case"array":return e.children.map(B);case"object":for(var t=Object.create(null),n=0,r=e.children;n<r.length;n++){var i=r[n],a=i.children[1];a&&(t[i.children[0].value]=B(a))}return t;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function ee(e,t,n){return n===void 0&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}function Ge(e,t,n){if(n===void 0&&(n=!1),ee(e,t,n)){var r=e.children;if(Array.isArray(r))for(var i=0;i<r.length&&r[i].offset<=t;i++){var a=Ge(r[i],t,n);if(a)return a}return e}return}function xe(e,t,n){n===void 0&&(n=we.DEFAULT);var r=H(e,!1);function i(g){return g?function(){return g(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}function a(g){return g?function(I){return g(I,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}var o=i(t.onObjectBegin),u=a(t.onObjectProperty),c=i(t.onObjectEnd),l=i(t.onArrayBegin),s=i(t.onArrayEnd),f=a(t.onLiteralValue),d=a(t.onSeparator),h=i(t.onComment),m=a(t.onError),y=n&&n.disallowComments,T=n&&n.allowTrailingComma;function b(){for(;;){var g=r.scan();switch(r.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:y||k(11);break;case 2:k(12);break;case 6:k(16);break}switch(g){case 12:case 13:y?k(10):h();break;case 16:k(1);break;case 15:case 14:break;default:return g}}}function k(g,I,O){if(I===void 0&&(I=[]),O===void 0&&(O=[]),m(g),I.length+O.length>0)for(var L=r.getToken();L!==17;){if(I.indexOf(L)!==-1){b();break}else if(O.indexOf(L)!==-1)break;L=b()}}function p(g){var I=r.getTokenValue();return g?f(I):u(I),b(),!0}function N(){switch(r.getToken()){case 11:var g=0;try{g=JSON.parse(r.getTokenValue()),typeof g!="number"&&(k(2),g=0)}catch(I){k(2)}f(g);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return b(),!0}function S(){return r.getToken()!==10?(k(3,[],[2,5]),!1):(p(!1),r.getToken()===6?(d(":"),b(),A()||k(4,[],[2,5])):k(5,[],[2,5]),!0)}function E(){o(),b();for(var g=!1;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(g||k(4,[],[]),d(","),b(),r.getToken()===2&&T)break}else g&&k(6,[],[]);S()||k(4,[],[2,5]),g=!0}return c(),r.getToken()!==2?k(7,[2],[]):b(),!0}function x(){l(),b();for(var g=!1;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(g||k(4,[],[]),d(","),b(),r.getToken()===4&&T)break}else g&&k(6,[],[]);A()||k(4,[],[4,5]),g=!0}return s(),r.getToken()!==4?k(8,[4],[]):b(),!0}function A(){switch(r.getToken()){case 3:return x();case 1:return E();case 10:return p(!0);default:return N()}}return b(),r.getToken()===17?n.allowEmptyContent?!0:(k(4,[],[]),!1):A()?(r.getToken()!==17&&k(9,[],[]),!0):(k(4,[],[]),!1)}function Qe(e,t){var n=H(e),r=[],i,a=0,o;do{o=n.getPosition(),i=n.scan();switch(i){case 12:case 13:case 17:a!==o&&r.push(e.substring(a,o)),t!==void 0&&r.push(n.getTokenValue().replace(/[^\r\n]/g,t)),a=n.getPosition();break}}while(i!==17);return r.join("")}function le(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}function vt(e,t,n){return _e(e,t,void 0,n)}function _e(e,t,n,r,i){for(var a,o=t.slice(),u=[],c=ze(e,u),l=void 0,s=void 0;o.length>0&&(s=o.pop(),l=Fe(c,o),l===void 0&&n!==void 0);)typeof s=="string"?n=(a={},a[s]=n,a):n=[n];if(l)if(l.type==="object"&&typeof s=="string"&&Array.isArray(l.children)){var f=Fe(l,[s]);if(f!==void 0)if(n===void 0){if(!f.parent)throw new Error("Malformed AST");var d=l.children.indexOf(f.parent),h=void 0,m=f.parent.offset+f.parent.length;if(d>0){var y=l.children[d-1];h=y.offset+y.length}else if(h=l.offset+1,l.children.length>1){var T=l.children[1];m=T.offset}return pe(e,{offset:h,length:m-h,content:""},r)}else return pe(e,{offset:f.offset,length:f.length,content:JSON.stringify(n)},r);else{if(n===void 0)return[];var b=JSON.stringify(s)+": "+JSON.stringify(n),k=i?i(l.children.map(function(g){return g.children[0].value})):l.children.length,p=void 0;if(k>0){var y=l.children[k-1];p={offset:y.offset+y.length,length:0,content:","+b}}else l.children.length===0?p={offset:l.offset+1,length:0,content:b}:p={offset:l.offset+1,length:0,content:b+","};return pe(e,p,r)}}else if(l.type==="array"&&typeof s=="number"&&Array.isArray(l.children)){var N=s;if(N===-1){var b=""+JSON.stringify(n),p=void 0;if(l.children.length===0)p={offset:l.offset+1,length:0,content:b};else{var y=l.children[l.children.length-1];p={offset:y.offset+y.length,length:0,content:","+b}}return pe(e,p,r)}else if(n===void 0&&l.children.length>=0){var S=s,E=l.children[S],p=void 0;if(l.children.length===1)p={offset:l.offset+1,length:l.length-2,content:""};else if(l.children.length-1===S){var y=l.children[S-1],x=y.offset+y.length,A=l.offset+l.length;p={offset:x,length:A-2-x,content:""}}else p={offset:E.offset,length:l.children[S+1].offset-E.offset,content:""};return pe(e,p,r)}else throw new Error("Array modification not supported yet")}else throw new Error("Can not add "+(typeof s!="number"?"index":"property")+" to parent of type "+l.type);else{if(n===void 0)throw new Error("Can not delete in empty document");return pe(e,{offset:c?c.offset:0,length:c?c.length:0,content:JSON.stringify(n)},r)}}function pe(e,t,n){var r=je(e,t),i=t.offset,a=t.offset+t.content.length;if(t.length===0||t.content.length===0){for(;i>0&&!Pe(r,i-1);)i--;for(;a<r.length&&!Pe(r,a);)a++}for(var o=ht(r,{offset:i,length:a-i},n),u=o.length-1;u>=0;u--){var c=o[u];r=je(r,c),i=Math.min(i,c.offset),a=Math.max(a,c.offset+c.length),a+=c.content.length-c.length}var l=e.length-(r.length-a)-i;return[{offset:i,length:l,content:r.substring(i,a)}]}function je(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}function Ze(e,t){return`\r
`.indexOf(e.charAt(t))!==-1}var w=H,C=mt,j=gt,M=ze,W=Fe,V=Ge,$=Ke,Xe=B,Ye=xe,ne=Qe;function De(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function ue(e,t,n){return ht(e,t,n)}function ni(e,t,n,r){return _e(e,t,n,r.formattingOptions,r.getInsertionIndex)}function ii(e,t){for(var n=t.length-1;n>=0;n--)e=je(e,t[n]);return e}function Ue(e,t){if(e===t)return!0;if(e==null||t===null||t===void 0)return!1;if(typeof e!==typeof t)return!1;if(typeof e!="object")return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!Ue(e[n],t[n]))return!1}else{var i=[];for(r in e)i.push(r);i.sort();var a=[];for(r in t)a.push(r);if(a.sort(),!Ue(i,a))return!1;for(n=0;n<i.length;n++)if(!Ue(e[i[n]],t[i[n]]))return!1}return!0}function te(e){return typeof e=="number"}function fe(e){return typeof e!="undefined"}function oe(e){return typeof e=="boolean"}function $r(e){return typeof e=="string"}var ae;(function(e){function t(r,i){return{line:r,character:i}}e.create=t;function n(r){var i=r;return v.objectLiteral(i)&&v.number(i.line)&&v.number(i.character)}e.is=n})(ae||(ae={}));var q;(function(e){function t(r,i,a,o){if(v.number(r)&&v.number(i)&&v.number(a)&&v.number(o))return{start:ae.create(r,i),end:ae.create(a,o)};if(ae.is(r)&&ae.is(i))return{start:r,end:i};throw new Error("Range#create called with invalid arguments["+r+", "+i+", "+a+", "+o+"]")}e.create=t;function n(r){var i=r;return v.objectLiteral(i)&&ae.is(i.start)&&ae.is(i.end)}e.is=n})(q||(q={}));var Ve;(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){var i=r;return v.defined(i)&&q.is(i.range)&&(v.string(i.uri)||v.undefined(i.uri))}e.is=n})(Ve||(Ve={}));var Vt;(function(e){function t(r,i,a,o){return{targetUri:r,targetRange:i,targetSelectionRange:a,originSelectionRange:o}}e.create=t;function n(r){var i=r;return v.defined(i)&&q.is(i.targetRange)&&v.string(i.targetUri)&&(q.is(i.targetSelectionRange)||v.undefined(i.targetSelectionRange))&&(q.is(i.originSelectionRange)||v.undefined(i.originSelectionRange))}e.is=n})(Vt||(Vt={}));var yt;(function(e){function t(r,i,a,o){return{red:r,green:i,blue:a,alpha:o}}e.create=t;function n(r){var i=r;return v.number(i.red)&&v.number(i.green)&&v.number(i.blue)&&v.number(i.alpha)}e.is=n})(yt||(yt={}));var Rt;(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){var i=r;return q.is(i.range)&&yt.is(i.color)}e.is=n})(Rt||(Rt={}));var Bt;(function(e){function t(r,i,a){return{label:r,textEdit:i,additionalTextEdits:a}}e.create=t;function n(r){var i=r;return v.string(i.label)&&(v.undefined(i.textEdit)||se.is(i))&&(v.undefined(i.additionalTextEdits)||v.typedArray(i.additionalTextEdits,se.is))}e.is=n})(Bt||(Bt={}));var me;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(me||(me={}));var $t;(function(e){function t(r,i,a,o,u){var c={startLine:r,endLine:i};return v.defined(a)&&(c.startCharacter=a),v.defined(o)&&(c.endCharacter=o),v.defined(u)&&(c.kind=u),c}e.create=t;function n(r){var i=r;return v.number(i.startLine)&&v.number(i.startLine)&&(v.undefined(i.startCharacter)||v.number(i.startCharacter))&&(v.undefined(i.endCharacter)||v.number(i.endCharacter))&&(v.undefined(i.kind)||v.string(i.kind))}e.is=n})($t||($t={}));var bt;(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){var i=r;return v.defined(i)&&Ve.is(i.location)&&v.string(i.message)}e.is=n})(bt||(bt={}));var U;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(U||(U={}));var Wt;(function(e){e.Unnecessary=1,e.Deprecated=2})(Wt||(Wt={}));var he;(function(e){function t(r,i,a,o,u,c){var l={range:r,message:i};return v.defined(a)&&(l.severity=a),v.defined(o)&&(l.code=o),v.defined(u)&&(l.source=u),v.defined(c)&&(l.relatedInformation=c),l}e.create=t;function n(r){var i=r;return v.defined(i)&&q.is(i.range)&&v.string(i.message)&&(v.number(i.severity)||v.undefined(i.severity))&&(v.number(i.code)||v.string(i.code)||v.undefined(i.code))&&(v.string(i.source)||v.undefined(i.source))&&(v.undefined(i.relatedInformation)||v.typedArray(i.relatedInformation,bt.is))}e.is=n})(he||(he={}));var Re;(function(e){function t(r,i){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];var u={title:r,command:i};return v.defined(a)&&a.length>0&&(u.arguments=a),u}e.create=t;function n(r){var i=r;return v.defined(i)&&v.string(i.title)&&v.string(i.command)}e.is=n})(Re||(Re={}));var se;(function(e){function t(a,o){return{range:a,newText:o}}e.replace=t;function n(a,o){return{range:{start:a,end:a},newText:o}}e.insert=n;function r(a){return{range:a,newText:""}}e.del=r;function i(a){var o=a;return v.objectLiteral(o)&&v.string(o.newText)&&q.is(o.range)}e.is=i})(se||(se={}));var et;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){var i=r;return v.defined(i)&&at.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(et||(et={}));var tt;(function(e){function t(r,i){var a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),a}e.create=t;function n(r){var i=r;return i&&i.kind==="create"&&v.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||v.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||v.boolean(i.options.ignoreIfExists)))}e.is=n})(tt||(tt={}));var rt;(function(e){function t(r,i,a){var o={kind:"rename",oldUri:r,newUri:i};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(o.options=a),o}e.create=t;function n(r){var i=r;return i&&i.kind==="rename"&&v.string(i.oldUri)&&v.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||v.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||v.boolean(i.options.ignoreIfExists)))}e.is=n})(rt||(rt={}));var nt;(function(e){function t(r,i){var a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),a}e.create=t;function n(r){var i=r;return i&&i.kind==="delete"&&v.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||v.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||v.boolean(i.options.ignoreIfNotExists)))}e.is=n})(nt||(nt={}));var kt;(function(e){function t(n){var r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(i){return v.string(i.kind)?tt.is(i)||rt.is(i)||nt.is(i):et.is(i)}))}e.is=t})(kt||(kt={}));var it=function(){function e(t){this.edits=t}return e.prototype.insert=function(t,n){this.edits.push(se.insert(t,n))},e.prototype.replace=function(t,n){this.edits.push(se.replace(t,n))},e.prototype.delete=function(t){this.edits.push(se.del(t))},e.prototype.add=function(t){this.edits.push(t)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e}(),ai=function(){function e(t){var n=this;this._textEditChanges=Object.create(null),t&&(this._workspaceEdit=t,t.documentChanges?t.documentChanges.forEach(function(r){if(et.is(r)){var i=new it(r.edits);n._textEditChanges[r.textDocument.uri]=i}}):t.changes&&Object.keys(t.changes).forEach(function(r){var i=new it(t.changes[r]);n._textEditChanges[r]=i}))}return Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(t){if(at.is(t)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n=t,r=this._textEditChanges[n.uri];if(!r){var i=[],a={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(a),r=new it(i),this._textEditChanges[n.uri]=r}return r}else{if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[t];if(!r){var i=[];this._workspaceEdit.changes[t]=i,r=new it(i),this._textEditChanges[t]=r}return r}},e.prototype.createFile=function(t,n){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(tt.create(t,n))},e.prototype.renameFile=function(t,n,r){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(rt.create(t,n,r))},e.prototype.deleteFile=function(t,n){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(nt.create(t,n))},e.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")},e}(),Jt;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){var i=r;return v.defined(i)&&v.string(i.uri)}e.is=n})(Jt||(Jt={}));var at;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){var i=r;return v.defined(i)&&v.string(i.uri)&&(i.version===null||v.number(i.version))}e.is=n})(at||(at={}));var qt;(function(e){function t(r,i,a,o){return{uri:r,languageId:i,version:a,text:o}}e.create=t;function n(r){var i=r;return v.defined(i)&&v.string(i.uri)&&v.string(i.languageId)&&v.number(i.version)&&v.string(i.text)}e.is=n})(qt||(qt={}));var de;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(de||(de={})),function(e){function t(n){var r=n;return r===e.PlainText||r===e.Markdown}e.is=t}(de||(de={}));var Ct;(function(e){function t(n){var r=n;return v.objectLiteral(n)&&de.is(r.kind)&&v.string(r.value)}e.is=t})(Ct||(Ct={}));var F;(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})(F||(F={}));var Q;(function(e){e.PlainText=1,e.Snippet=2})(Q||(Q={}));var Ht;(function(e){e.Deprecated=1})(Ht||(Ht={}));var Tt;(function(e){function t(n){return{label:n}}e.create=t})(Tt||(Tt={}));var zt;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(zt||(zt={}));var ot;(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){var i=r;return v.string(i)||v.objectLiteral(i)&&v.string(i.language)&&v.string(i.value)}e.is=n})(ot||(ot={}));var Kt;(function(e){function t(n){var r=n;return!!r&&v.objectLiteral(r)&&(Ct.is(r.contents)||ot.is(r.contents)||v.typedArray(r.contents,ot.is))&&(n.range===void 0||q.is(n.range))}e.is=t})(Kt||(Kt={}));var Gt;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Gt||(Gt={}));var Qt;(function(e){function t(n,r){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var o={label:n};return v.defined(r)&&(o.documentation=r),v.defined(i)?o.parameters=i:o.parameters=[],o}e.create=t})(Qt||(Qt={}));var Zt;(function(e){e.Text=1,e.Read=2,e.Write=3})(Zt||(Zt={}));var Xt;(function(e){function t(n,r){var i={range:n};return v.number(r)&&(i.kind=r),i}e.create=t})(Xt||(Xt={}));var J;(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})(J||(J={}));var Yt;(function(e){e.Deprecated=1})(Yt||(Yt={}));var er;(function(e){function t(n,r,i,a,o){var u={name:n,kind:r,location:{uri:a,range:i}};return o&&(u.containerName=o),u}e.create=t})(er||(er={}));var tr;(function(e){function t(r,i,a,o,u,c){var l={name:r,detail:i,kind:a,range:o,selectionRange:u};return c!==void 0&&(l.children=c),l}e.create=t;function n(r){var i=r;return i&&v.string(i.name)&&v.number(i.kind)&&q.is(i.range)&&q.is(i.selectionRange)&&(i.detail===void 0||v.string(i.detail))&&(i.deprecated===void 0||v.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))}e.is=n})(tr||(tr={}));var rr;(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"})(rr||(rr={}));var nr;(function(e){function t(r,i){var a={diagnostics:r};return i!=null&&(a.only=i),a}e.create=t;function n(r){var i=r;return v.defined(i)&&v.typedArray(i.diagnostics,he.is)&&(i.only===void 0||v.typedArray(i.only,v.string))}e.is=n})(nr||(nr={}));var ir;(function(e){function t(r,i,a){var o={title:r};return Re.is(i)?o.command=i:o.edit=i,a!==void 0&&(o.kind=a),o}e.create=t;function n(r){var i=r;return i&&v.string(i.title)&&(i.diagnostics===void 0||v.typedArray(i.diagnostics,he.is))&&(i.kind===void 0||v.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Re.is(i.command))&&(i.isPreferred===void 0||v.boolean(i.isPreferred))&&(i.edit===void 0||kt.is(i.edit))}e.is=n})(ir||(ir={}));var ar;(function(e){function t(r,i){var a={range:r};return v.defined(i)&&(a.data=i),a}e.create=t;function n(r){var i=r;return v.defined(i)&&q.is(i.range)&&(v.undefined(i.command)||Re.is(i.command))}e.is=n})(ar||(ar={}));var or;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){var i=r;return v.defined(i)&&v.number(i.tabSize)&&v.boolean(i.insertSpaces)}e.is=n})(or||(or={}));var sr;(function(e){function t(r,i,a){return{range:r,target:i,data:a}}e.create=t;function n(r){var i=r;return v.defined(i)&&q.is(i.range)&&(v.undefined(i.target)||v.string(i.target))}e.is=n})(sr||(sr={}));var st;(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){var i=r;return i!==void 0&&q.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(st||(st={}));var oi=[`
`,`\r
`,"\r"],cr;(function(e){function t(a,o,u,c){return new Wr(a,o,u,c)}e.create=t;function n(a){var o=a;return!!(v.defined(o)&&v.string(o.uri)&&(v.undefined(o.languageId)||v.string(o.languageId))&&v.number(o.lineCount)&&v.func(o.getText)&&v.func(o.positionAt)&&v.func(o.offsetAt))}e.is=n;function r(a,o){for(var u=a.getText(),c=i(o,function(m,y){var T=m.range.start.line-y.range.start.line;return T===0?m.range.start.character-y.range.start.character:T}),l=u.length,s=c.length-1;s>=0;s--){var f=c[s],d=a.offsetAt(f.range.start),h=a.offsetAt(f.range.end);if(h<=l)u=u.substring(0,d)+f.newText+u.substring(h,u.length);else throw new Error("Overlapping edit");l=d}return u}e.applyEdits=r;function i(a,o){if(a.length<=1)return a;var u=a.length/2|0,c=a.slice(0,u),l=a.slice(u);i(c,o),i(l,o);for(var s=0,f=0,d=0;s<c.length&&f<l.length;){var h=o(c[s],l[f]);h<=0?a[d++]=c[s++]:a[d++]=l[f++]}for(;s<c.length;)a[d++]=c[s++];for(;f<l.length;)a[d++]=l[f++];return a}})(cr||(cr={}));var Wr=function(){function e(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(t){if(t){var n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content},e.prototype.update=function(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var t=[],n=this._content,r=!0,i=0;i<n.length;i++){r&&(t.push(i),r=!1);var a=n.charAt(i);r=a==="\r"||a===`
`,a==="\r"&&i+1<n.length&&n.charAt(i+1)===`
`&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return ae.create(0,t);for(;r<i;){var a=Math.floor((r+i)/2);n[a]>t?i=a:r=a+1}var o=r-1;return ae.create(o,t-n[o])},e.prototype.offsetAt=function(t){var n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;var r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),e}(),v;(function(e){var t=Object.prototype.toString;function n(s){return typeof s!="undefined"}e.defined=n;function r(s){return typeof s=="undefined"}e.undefined=r;function i(s){return s===!0||s===!1}e.boolean=i;function a(s){return t.call(s)==="[object String]"}e.string=a;function o(s){return t.call(s)==="[object Number]"}e.number=o;function u(s){return t.call(s)==="[object Function]"}e.func=u;function c(s){return s!==null&&typeof s=="object"}e.objectLiteral=c;function l(s,f){return Array.isArray(s)&&s.every(f)}e.typedArray=l})(v||(v={}));var lr=function(){function e(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(t){if(t){var n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content},e.prototype.update=function(t,n){for(var r=0,i=t;r<i.length;r++){var a=i[r];if(e.isIncremental(a)){var o=hr(a.range),u=this.offsetAt(o.start),c=this.offsetAt(o.end);this._content=this._content.substring(0,u)+a.text+this._content.substring(c,this._content.length);var l=Math.max(o.start.line,0),s=Math.max(o.end.line,0),f=this._lineOffsets,d=fr(a.text,!1,u);if(s-l===d.length)for(var h=0,m=d.length;h<m;h++)f[h+l+1]=d[h];else d.length<1e4?f.splice.apply(f,[l+1,s-l].concat(d)):this._lineOffsets=f=f.slice(0,l+1).concat(d,f.slice(s+1));var y=a.text.length-(c-u);if(y!==0)for(var h=l+1+d.length,m=f.length;h<m;h++)f[h]=f[h]+y}else if(e.isFull(a))this._content=a.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=n},e.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=fr(this._content,!0)),this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){var a=Math.floor((r+i)/2);n[a]>t?i=a:r=a+1}var o=r-1;return{line:o,character:t-n[o]}},e.prototype.offsetAt=function(t){var n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;var r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),e.isIncremental=function(t){var n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")},e.isFull=function(t){var n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0},e}(),ur;(function(e){function t(i,a,o,u){return new lr(i,a,o,u)}e.create=t;function n(i,a,o){if(i instanceof lr)return i.update(a,o),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,a){for(var o=i.getText(),u=wt(a.map(Jr),function(h,m){var y=h.range.start.line-m.range.start.line;return y===0?h.range.start.character-m.range.start.character:y}),c=o.length,l=u.length-1;l>=0;l--){var s=u[l],f=i.offsetAt(s.range.start),d=i.offsetAt(s.range.end);if(d<=c)o=o.substring(0,f)+s.newText+o.substring(d,o.length);else throw new Error("Overlapping edit");c=f}return o}e.applyEdits=r})(ur||(ur={}));function wt(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);wt(r,t),wt(i,t);for(var a=0,o=0,u=0;a<r.length&&o<i.length;){var c=t(r[a],i[o]);c<=0?e[u++]=r[a++]:e[u++]=i[o++]}for(;a<r.length;)e[u++]=r[a++];for(;o<i.length;)e[u++]=i[o++];return e}function fr(e,t,n){n===void 0&&(n=0);for(var r=t?[n]:[],i=0;i<e.length;i++){var a=e.charCodeAt(i);(a===13||a===10)&&(a===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function hr(e){var t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Jr(e){var t=hr(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var R;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",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"})(R||(R={}));var dr;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[de.Markdown,de.PlainText],commitCharactersSupport:!0}}}}})(dr||(dr={}));function qr(e,t){var n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,function(r,i){var a=i[0];return typeof t[a]!="undefined"?t[a]:r}),n}function Hr(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return qr(t,n)}function Ne(e){return Hr}function si(e){return Ne}var Se=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)i.hasOwnProperty(a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),P=Ne(),zr={"color-hex":{errorMessage:P("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:P("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:P("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:P("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:P("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,}))$/}},Ee=function(){function e(t,n,r){this.offset=n,this.length=r,this.parent=t}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}(),Kr=function(e){Se(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="null",i.value=null,i}return t}(Ee),pr=function(e){Se(t,e);function t(n,r,i){var a=e.call(this,n,i)||this;return a.type="boolean",a.value=r,a}return t}(Ee),Gr=function(e){Se(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="array",i.items=[],i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),t}(Ee),Qr=function(e){Se(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="number",i.isInteger=!0,i.value=Number.NaN,i}return t}(Ee),mr=function(e){Se(t,e);function t(n,r,i){var a=e.call(this,n,r,i)||this;return a.type="string",a.value="",a}return t}(Ee),Zr=function(e){Se(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="property",i.colonOffset=-1,i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),t}(Ee),Xr=function(e){Se(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="object",i.properties=[],i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),t}(Ee);function X(e){return oe(e)?e?{}:{not:{}}:e}var gr;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(gr||(gr={}));var Yr=function(){function e(t,n){t===void 0&&(t=-1),n===void 0&&(n=null),this.focusOffset=t,this.exclude=n,this.schemas=[]}return e.prototype.add=function(t){this.schemas.push(t)},e.prototype.merge=function(t){var n;(n=this.schemas).push.apply(n,t.schemas)},e.prototype.include=function(t){return(this.focusOffset===-1||vr(t,this.focusOffset))&&t!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),xt=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.add=function(t){},e.prototype.merge=function(t){},e.prototype.include=function(t){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),Y=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(t){for(var n=0,r=t;n<r.length;n++){var i=r[n];this.merge(i)}},e.prototype.merge=function(t){this.problems=this.problems.concat(t.problems)},e.prototype.mergeEnumValues=function(t){if(!this.enumValueMatch&&!t.enumValueMatch&&this.enumValues&&t.enumValues){this.enumValues=this.enumValues.concat(t.enumValues);for(var n=0,r=this.problems;n<r.length;n++){var i=r[n];i.code===R.EnumValueMismatch&&(i.message=P("enumWarning","Value is not accepted. Valid values: {0}.",this.enumValues.map(function(a){return JSON.stringify(a)}).join(", ")))}}},e.prototype.mergePropertyMatch=function(t){this.merge(t),this.propertiesMatches++,(t.enumValueMatch||!t.hasProblems()&&t.propertiesMatches)&&this.propertiesValueMatches++,t.enumValueMatch&&t.enumValues&&t.enumValues.length===1&&this.primaryValueMatches++},e.prototype.compare=function(t){var n=this.hasProblems();return n!==t.hasProblems()?n?-1:1:this.enumValueMatch!==t.enumValueMatch?t.enumValueMatch?-1:1:this.primaryValueMatches!==t.primaryValueMatches?this.primaryValueMatches-t.primaryValueMatches:this.propertiesValueMatches!==t.propertiesValueMatches?this.propertiesValueMatches-t.propertiesValueMatches:this.propertiesMatches-t.propertiesMatches},e}();function en(e,t){return t===void 0&&(t=[]),new yr(e,t,[])}function ge(e){return Xe(e)}function St(e){return $(e)}function vr(e,t,n){return n===void 0&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}var yr=function(){function e(t,n,r){n===void 0&&(n=[]),r===void 0&&(r=[]),this.root=t,this.syntaxErrors=n,this.comments=r}return e.prototype.getNodeFromOffset=function(t,n){return n===void 0&&(n=!1),this.root?V(this.root,t,n):void 0},e.prototype.visit=function(t){if(this.root){var n=function(r){var i=t(r),a=r.children;if(Array.isArray(a))for(var o=0;o<a.length&&i;o++)i=n(a[o]);return i};n(this.root)}},e.prototype.validate=function(t,n){if(this.root&&n){var r=new Y;return Z(this.root,n,r,xt.instance),r.problems.map(function(i){var a=q.create(t.positionAt(i.location.offset),t.positionAt(i.location.offset+i.location.length));return he.create(a,i.message,i.severity,i.code)})}return null},e.prototype.getMatchingSchemas=function(t,n,r){n===void 0&&(n=-1),r===void 0&&(r=null);var i=new Yr(n,r);return this.root&&t&&Z(this.root,t,new Y,i),i.schemas},e}();function Z(e,t,n,r){if(!e||!r.include(e))return;switch(e.type){case"object":c(e,t,n,r);break;case"array":u(e,t,n,r);break;case"string":o(e,t,n,r);break;case"number":a(e,t,n,r);break;case"property":return Z(e.valueNode,t,n,r)}i(),r.add({node:e,schema:t});function i(){function l(L){return e.type===L||L==="integer"&&e.type==="number"&&e.isInteger}if(Array.isArray(t.type)?t.type.some(l)||n.problems.push({location:{offset:e.offset,length:e.length},severity:U.Warning,message:t.errorMessage||P("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(l(t.type)||n.problems.push({location:{offset:e.offset,length:e.length},severity:U.Warning,message:t.errorMessage||P("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)})),Array.isArray(t.allOf))for(var s=0,f=t.allOf;s<f.length;s++){var d=f[s];Z(e,X(d),n,r)}var h=X(t.not);if(h){var m=new Y,y=r.newSub();Z(e,h,m,y),m.hasProblems()||n.problems.push({location:{offset:e.offset,length:e.length},severity:U.Warning,message:P("notSchemaWarning","Matches a schema that is not allowed.")});for(var T=0,b=y.schemas;T<b.length;T++){var k=b[T];k.inverted=!k.inverted,r.add(k)}}var p=function(L,D){for(var K=[],z=null,ie=0,Ae=L;ie<Ae.length;ie++){var We=Ae[ie],Oe=X(We),re=new Y,ke=r.newSub();if(Z(e,Oe,re,ke),re.hasProblems()||K.push(Oe),!z)z={schema:Oe,validationResult:re,matchingSchemas:ke};else if(!D&&!re.hasProblems()&&!z.validationResult.hasProblems())z.matchingSchemas.merge(ke),z.validationResult.propertiesMatches+=re.propertiesMatches,z.validationResult.propertiesValueMatches+=re.propertiesValueMatches;else{var Me=re.compare(z.validationResult);Me>0?z={schema:Oe,validationResult:re,matchingSchemas:ke}:Me===0&&(z.matchingSchemas.merge(ke),z.validationResult.mergeEnumValues(re))}}return K.length>1&&D&&n.problems.push({location:{offset:e.offset,length:1},severity:U.Warning,message:P("oneOfWarning","Matches multiple schemas when only one must validate.")}),z!==null&&(n.merge(z.validationResult),n.propertiesMatches+=z.validationResult.propertiesMatches,n.propertiesValueMatches+=z.validationResult.propertiesValueMatches,r.merge(z.matchingSchemas)),K.length};Array.isArray(t.anyOf)&&p(t.anyOf,!1),Array.isArray(t.oneOf)&&p(t.oneOf,!0);var N=function(L){var D=new Y,K=r.newSub();Z(e,X(L),D,K),n.merge(D),n.propertiesMatches+=D.propertiesMatches,n.propertiesValueMatches+=D.propertiesValueMatches,r.merge(K)},S=function(L,D,K){var z=X(L),ie=new Y,Ae=r.newSub();Z(e,z,ie,Ae),r.merge(Ae),ie.hasProblems()?K&&N(K):D&&N(D)},E=X(t.if);if(E&&S(E,X(t.then),X(t.else)),Array.isArray(t.enum)){for(var x=ge(e),A=!1,g=0,I=t.enum;g<I.length;g++){var O=I[g];if(Ue(x,O)){A=!0;break}}n.enumValues=t.enum,n.enumValueMatch=A,A||n.problems.push({location:{offset:e.offset,length:e.length},severity:U.Warning,code:R.EnumValueMismatch,message:t.errorMessage||P("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map(function(L){return JSON.stringify(L)}).join(", "))})}if(fe(t.const)){var x=ge(e);Ue(x,t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:e.offset,length:e.length},severity:U.Warning,code:R.EnumValueMismatch,message:t.errorMessage||P("constWarning","Value must be {0}.",JSON.stringify(t.const))}),n.enumValueMatch=!1),n.enumValues=[t.const]}t.deprecationMessage&&e.parent&&n.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:U.Warning,message:t.deprecationMessage})}function a(l,s,f,d){var h=l.value;te(s.multipleOf)&&(h%s.multipleOf!==0&&f.problems.push({location:{offset:l.offset,length:l.length},severity:U.Warning,message:P("multipleOfWarning","Value is not divisible by {0}.",s.multipleOf)}));function m(N,S){return te(S)?S:oe(S)&&S?N:void 0}function y(N,S){return!oe(S)||!S?N:void 0}var T=m(s.minimum,s.exclusiveMinimum);te(T)&&h<=T&&f.problems.push({location:{offset:l.offset,length:l.length},severity:U.Warning,message:P("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",T)});var b=m(s.maximum,s.exclusiveMaximum);te(b)&&h>=b&&f.problems.push({location:{offset:l.offset,length:l.length},severity:U.Warning,message:P("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",b)});var k=y(s.minimum,s.exclusiveMinimum);te(k)&&h<k&&f.problems.push({location:{offset:l.offset,length:l.length},severity:U.Warning,message:P("minimumWarning","Value is below the minimum of {0}.",k)});var p=y(s.maximum,s.exclusiveMaximum);te(p)&&h>p&&f.problems.push({location:{offset:l.offset,length:l.length},severity:U.Warning,message:P("maximumWarning","Value is above the maximum of {0}.",p)})}function o(l,s,f,d){if(te(s.minLength)&&l.value.length<s.minLength&&f.problems.push({location:{offset:l.offset,length:l.length},severity:U.Warning,message:P("minLengthWarning","String is shorter than the minimum length of {0}.",s.minLength)}),te(s.maxLength)&&l.value.length>s.maxLength&&f.problems.push({location:{offset:l.offset,length:l.length},severity:U.Warning,message:P("maxLengthWarning","String is longer than the maximum length of {0}.",s.maxLength)}),$r(s.pattern)){var h=new RegExp(s.pattern);h.test(l.value)||f.problems.push({location:{offset:l.offset,length:l.length},severity:U.Warning,message:s.patternErrorMessage||s.errorMessage||P("patternWarning",'String does not match the pattern of "{0}".',s.pattern)})}if(s.format)switch(s.format){case"uri":case"uri-reference":{var m=void 0;if(!l.value)m=P("uriEmpty","URI expected.");else{var y=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(l.value);y?!y[2]&&s.format==="uri"&&(m=P("uriSchemeMissing","URI with a scheme is expected.")):m=P("uriMissing","URI is expected.")}m&&f.problems.push({location:{offset:l.offset,length:l.length},severity:U.Warning,message:s.patternErrorMessage||s.errorMessage||P("uriFormatWarning","String is not a URI: {0}",m)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var T=zr[s.format];(!l.value||!T.pattern.exec(l.value))&&f.problems.push({location:{offset:l.offset,length:l.length},severity:U.Warning,message:s.patternErrorMessage||s.errorMessage||T.errorMessage});default:}}function u(l,s,f,d){if(Array.isArray(s.items)){for(var h=s.items,m=0;m<h.length;m++){var y=h[m],T=X(y),b=new Y,k=l.items[m];k?(Z(k,T,b,d),f.mergePropertyMatch(b)):l.items.length>=h.length&&f.propertiesValueMatches++}if(l.items.length>h.length)if(typeof s.additionalItems=="object")for(var p=h.length;p<l.items.length;p++){var b=new Y;Z(l.items[p],s.additionalItems,b,d),f.mergePropertyMatch(b)}else s.additionalItems===!1&&f.problems.push({location:{offset:l.offset,length:l.length},severity:U.Warning,message:P("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",h.length)})}else{var N=X(s.items);if(N)for(var S=0,E=l.items;S<E.length;S++){var k=E[S],b=new Y;Z(k,N,b,d),f.mergePropertyMatch(b)}}var x=X(s.contains);if(x){var A=l.items.some(function(O){var L=new Y;return Z(O,x,L,xt.instance),!L.hasProblems()});A||f.problems.push({location:{offset:l.offset,length:l.length},severity:U.Warning,message:s.errorMessage||P("requiredItemMissingWarning","Array does not contain required item.")})}if(te(s.minItems)&&l.items.length<s.minItems&&f.problems.push({location:{offset:l.offset,length:l.length},severity:U.Warning,message:P("minItemsWarning","Array has too few items. Expected {0} or more.",s.minItems)}),te(s.maxItems)&&l.items.length>s.maxItems&&f.problems.push({location:{offset:l.offset,length:l.length},severity:U.Warning,message:P("maxItemsWarning","Array has too many items. Expected {0} or fewer.",s.maxItems)}),s.uniqueItems===!0){var g=ge(l),I=g.some(function(O,L){return L!==g.lastIndexOf(O)});I&&f.problems.push({location:{offset:l.offset,length:l.length},severity:U.Warning,message:P("uniqueItemsWarning","Array has duplicate items.")})}}function c(l,s,f,d){for(var h=Object.create(null),m=[],y=0,T=l.properties;y<T.length;y++){var b=T[y],k=b.keyNode.value;h[k]=b.valueNode,m.push(k)}if(Array.isArray(s.required))for(var p=0,N=s.required;p<N.length;p++){var S=N[p];if(!h[S]){var E=l.parent&&l.parent.type==="property"&&l.parent.keyNode,x=E?{offset:E.offset,length:E.length}:{offset:l.offset,length:1};f.problems.push({location:x,severity:U.Warning,message:P("MissingRequiredPropWarning",'Missing property "{0}".',S)})}}var A=function(Rr){for(var Ut=m.indexOf(Rr);Ut>=0;)m.splice(Ut,1),Ut=m.indexOf(Rr)};if(s.properties)for(var g=0,I=Object.keys(s.properties);g<I.length;g++){var S=I[g];A(S);var O=s.properties[S],L=h[S];if(L)if(oe(O))if(O)f.propertiesMatches++,f.propertiesValueMatches++;else{var b=L.parent;f.problems.push({location:{offset:b.keyNode.offset,length:b.keyNode.length},severity:U.Warning,message:s.errorMessage||P("DisallowedExtraPropWarning","Property {0} is not allowed.",S)})}else{var D=new Y;Z(L,O,D,d),f.mergePropertyMatch(D)}}if(s.patternProperties)for(var K=0,z=Object.keys(s.patternProperties);K<z.length;K++)for(var ie=z[K],Ae=new RegExp(ie),We=0,Oe=m.slice(0);We<Oe.length;We++){var S=Oe[We];if(Ae.test(S)){A(S);var L=h[S];if(L){var O=s.patternProperties[ie];if(oe(O))if(O)f.propertiesMatches++,f.propertiesValueMatches++;else{var b=L.parent;f.problems.push({location:{offset:b.keyNode.offset,length:b.keyNode.length},severity:U.Warning,message:s.errorMessage||P("DisallowedExtraPropWarning","Property {0} is not allowed.",S)})}else{var D=new Y;Z(L,O,D,d),f.mergePropertyMatch(D)}}}}if(typeof s.additionalProperties=="object")for(var re=0,ke=m;re<ke.length;re++){var S=ke[re],L=h[S];if(L){var D=new Y;Z(L,s.additionalProperties,D,d),f.mergePropertyMatch(D)}}else if(s.additionalProperties===!1&&m.length>0)for(var Me=0,Pr=m;Me<Pr.length;Me++){var S=Pr[Me],L=h[S];if(L){var b=L.parent;f.problems.push({location:{offset:b.keyNode.offset,length:b.keyNode.length},severity:U.Warning,message:s.errorMessage||P("DisallowedExtraPropWarning","Property {0} is not allowed.",S)})}}if(te(s.maxProperties)&&(l.properties.length>s.maxProperties&&f.problems.push({location:{offset:l.offset,length:l.length},severity:U.Warning,message:P("MaxPropWarning","Object has more properties than limit of {0}.",s.maxProperties)})),te(s.minProperties)&&(l.properties.length<s.minProperties&&f.problems.push({location:{offset:l.offset,length:l.length},severity:U.Warning,message:P("MinPropWarning","Object has fewer properties than the required number of {0}",s.minProperties)})),s.dependencies)for(var Pt=0,Fr=Object.keys(s.dependencies);Pt<Fr.length;Pt++){var k=Fr[Pt],ti=h[k];if(ti){var Ft=s.dependencies[k];if(Array.isArray(Ft))for(var _t=0,_r=Ft;_t<_r.length;_t++){var Dr=_r[_t];h[Dr]?f.propertiesValueMatches++:f.problems.push({location:{offset:l.offset,length:l.length},severity:U.Warning,message:P("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",Dr,k)})}else{var O=X(Ft);if(O){var D=new Y;Z(l,O,D,d),f.mergePropertyMatch(D)}}}}var Ur=X(s.propertyNames);if(Ur)for(var Dt=0,Vr=l.properties;Dt<Vr.length;Dt++){var ri=Vr[Dt],k=ri.keyNode;k&&Z(k,Ur,f,xt.instance)}}}function tn(e,t){var n=[],r=-1,i=e.getText(),a=w(i,!1),o=t&&t.collectComments?[]:void 0;function u(){for(;;){var E=a.scan();f();switch(E){case 12:case 13:Array.isArray(o)&&o.push(q.create(e.positionAt(a.getTokenOffset()),e.positionAt(a.getTokenOffset()+a.getTokenLength())));break;case 15:case 14:break;default:return E}}}function c(E){return a.getToken()===E?(u(),!0):!1}function l(E,x,A,g,I){if(I===void 0&&(I=U.Error),n.length===0||A!==r){var O=q.create(e.positionAt(A),e.positionAt(g));n.push(he.create(O,E,I,x,e.languageId)),r=A}}function s(E,x,A,g,I){A===void 0&&(A=null),g===void 0&&(g=[]),I===void 0&&(I=[]);var O=a.getTokenOffset(),L=a.getTokenOffset()+a.getTokenLength();if(O===L&&O>0){for(O--;O>0&&/\s/.test(i.charAt(O));)O--;L=O+1}if(l(E,x,O,L),A&&d(A,!1),g.length+I.length>0)for(var D=a.getToken();D!==17;){if(g.indexOf(D)!==-1){u();break}else if(I.indexOf(D)!==-1)break;D=u()}return A}function f(){switch(a.getTokenError()){case 4:return s(P("InvalidUnicode","Invalid unicode sequence in string."),R.InvalidUnicode),!0;case 5:return s(P("InvalidEscapeCharacter","Invalid escape character in string."),R.InvalidEscapeCharacter),!0;case 3:return s(P("UnexpectedEndOfNumber","Unexpected end of number."),R.UnexpectedEndOfNumber),!0;case 1:return s(P("UnexpectedEndOfComment","Unexpected end of comment."),R.UnexpectedEndOfComment),!0;case 2:return s(P("UnexpectedEndOfString","Unexpected end of string."),R.UnexpectedEndOfString),!0;case 6:return s(P("InvalidCharacter","Invalid characters in string. Control characters must be escaped."),R.InvalidCharacter),!0}return!1}function d(E,x){return E.length=a.getTokenOffset()+a.getTokenLength()-E.offset,x&&u(),E}function h(E){if(a.getToken()!==3)return null;var x=new Gr(E,a.getTokenOffset());u();for(var A=0,g=!1;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){g||s(P("ValueExpected","Value expected"),R.ValueExpected);var I=a.getTokenOffset();if(u(),a.getToken()===4){g&&l(P("TrailingComma","Trailing comma"),R.TrailingComma,I,I+1);continue}}else g&&s(P("ExpectedComma","Expected comma"),R.CommaExpected);var O=p(x,A++);O?x.items.push(O):s(P("PropertyExpected","Value expected"),R.ValueExpected,null,[],[4,5]),g=!0}return a.getToken()!==4?s(P("ExpectedCloseBracket","Expected comma or closing bracket"),R.CommaOrCloseBacketExpected,x):d(x,!0)}function m(E,x){var A=new Zr(E,a.getTokenOffset()),g=T(A);if(!g)if(a.getToken()===16){s(P("DoubleQuotesExpected","Property keys must be doublequoted"),R.Undefined);var I=new mr(A,a.getTokenOffset(),a.getTokenLength());I.value=a.getTokenValue(),g=I,u()}else return null;A.keyNode=g;var O=x[g.value];if(O?(l(P("DuplicateKeyWarning","Duplicate object key"),R.DuplicateKey,A.keyNode.offset,A.keyNode.offset+A.keyNode.length,U.Warning),typeof O=="object"&&l(P("DuplicateKeyWarning","Duplicate object key"),R.DuplicateKey,O.keyNode.offset,O.keyNode.offset+O.keyNode.length,U.Warning),x[g.value]=!0):x[g.value]=A,a.getToken()===6)A.colonOffset=a.getTokenOffset(),u();else if(s(P("ColonExpected","Colon expected"),R.ColonExpected),a.getToken()===10&&e.positionAt(g.offset+g.length).line<e.positionAt(a.getTokenOffset()).line)return A.length=g.length,A;var L=p(A,g.value);return L?(A.valueNode=L,A.length=L.offset+L.length-A.offset,A):s(P("ValueExpected","Value expected"),R.ValueExpected,A,[],[2,5])}function y(E){if(a.getToken()!==1)return null;var x=new Xr(E,a.getTokenOffset()),A=Object.create(null);u();for(var g=!1;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){g||s(P("PropertyExpected","Property expected"),R.PropertyExpected);var I=a.getTokenOffset();if(u(),a.getToken()===2){g&&l(P("TrailingComma","Trailing comma"),R.TrailingComma,I,I+1);continue}}else g&&s(P("ExpectedComma","Expected comma"),R.CommaExpected);var O=m(x,A);O?x.properties.push(O):s(P("PropertyExpected","Property expected"),R.PropertyExpected,null,[],[2,5]),g=!0}return a.getToken()!==2?s(P("ExpectedCloseBrace","Expected comma or closing brace"),R.CommaOrCloseBraceExpected,x):d(x,!0)}function T(E){if(a.getToken()!==10)return null;var x=new mr(E,a.getTokenOffset());return x.value=a.getTokenValue(),d(x,!0)}function b(E){if(a.getToken()!==11)return null;var x=new Qr(E,a.getTokenOffset());if(a.getTokenError()===0){var A=a.getTokenValue();try{var g=JSON.parse(A);if(!te(g))return s(P("InvalidNumberFormat","Invalid number format."),R.Undefined,x);x.value=g}catch(I){return s(P("InvalidNumberFormat","Invalid number format."),R.Undefined,x)}x.isInteger=A.indexOf(".")===-1}return d(x,!0)}function k(E){var x;switch(a.getToken()){case 7:return d(new Kr(E,a.getTokenOffset()),!0);case 8:return d(new pr(E,!0,a.getTokenOffset()),!0);case 9:return d(new pr(E,!1,a.getTokenOffset()),!0);default:return null}}function p(E,x){return h(E)||y(E)||T(E)||b(E)||k(E)}var N=null,S=u();return S!==17&&(N=p(null,null),N?a.getToken()!==17&&s(P("End of file expected","End of file expected."),R.Undefined):s(P("Invalid symbol","Expected a JSON object, array or literal."),R.Undefined)),new yr(N,n,o)}function Et(e,t,n){if(e!==null&&typeof e=="object"){var r=t+" ";if(Array.isArray(e)){if(e.length===0)return"[]";for(var i=`[
`,a=0;a<e.length;a++)i+=r+Et(e[a],r,n),a<e.length-1&&(i+=","),i+=`
`;return i+=t+"]",i}else{var o=Object.keys(e);if(o.length===0)return"{}";for(var i=`{
`,a=0;a<o.length;a++){var u=o[a];i+=r+JSON.stringify(u)+": "+Et(e[u],r,n),a<o.length-1&&(i+=","),i+=`
`}return i+=t+"}",i}}return n(e)}function rn(e,t){if(e.length<t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function ct(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:n===0?e===t:!1}function nn(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function ci(e,t){for(var n="";t>0;)(t&1)===1&&(n+=e),e+=e,t=t>>>1;return n}var At=Ne(),an=[",","}","]"],on=[":"],sn=function(){function e(t,n,r,i){n===void 0&&(n=[]),r===void 0&&(r=Promise),i===void 0&&(i={}),this.schemaService=t,this.contributions=n,this.promiseConstructor=r,this.clientCapabilities=i,this.templateVarIdCounter=0}return e.prototype.doResolve=function(t){for(var n=this.contributions.length-1;n>=0;n--)if(this.contributions[n].resolveCompletion){var r=this.contributions[n].resolveCompletion(t);if(r)return r}return this.promiseConstructor.resolve(t)},e.prototype.doComplete=function(t,n,r){var i=this,a={items:[],isIncomplete:!1},o=t.getText(),u=t.offsetAt(n),c=r.getNodeFromOffset(u,!0);if(this.isInComment(t,c?c.offset:0,u))return Promise.resolve(a);if(c&&u===c.offset+c.length&&u>0){var l=o[u-1];(c.type==="object"&&l==="}"||c.type==="array"&&l==="]")&&(c=c.parent)}var s=this.getCurrentWord(t,u),f=null;if(c&&(c.type==="string"||c.type==="number"||c.type==="boolean"||c.type==="null"))f=q.create(t.positionAt(c.offset),t.positionAt(c.offset+c.length));else{var d=u-s.length;d>0&&o[d-1]==='"'&&d--,f=q.create(t.positionAt(d),n)}var h=!1,m={},y={add:function(T){var b=T.label,k=m[b];if(k)k.documentation||(k.documentation=T.documentation);else{if(b=b.replace(/[\n]/g,"\u21B5"),b.length>60){var p=b.substr(0,57).trim()+"...";m[p]||(b=p)}f&&(T.textEdit=se.replace(f,T.insertText)),h&&(T.commitCharacters=T.kind===F.Property?on:an),T.label=b,m[b]=T,a.items.push(T)}},setAsIncomplete:function(){a.isIncomplete=!0},error:function(T){console.error(T)},log:function(T){console.log(T)},getNumberOfProposals:function(){return a.items.length}};return this.schemaService.getSchemaForResource(t.uri,r).then(function(T){var b=[],k=!0,p="",N=null;if(c&&c.type==="string"){var S=c.parent;S&&S.type==="property"&&S.keyNode===c&&(k=!S.valueNode,N=S,p=o.substr(c.offset+1,c.length-2),S&&(c=S.parent))}if(c&&c.type==="object"){if(c.offset===u)return a;var E=c.properties;E.forEach(function(I){(!N||N!==I)&&(m[I.keyNode.value]=Tt.create("__"))});var x="";k&&(x=i.evaluateSeparatorAfter(t,t.offsetAt(f.end))),T?i.getPropertyCompletions(T,r,c,k,x,y):i.getSchemaLessPropertyCompletions(r,c,p,y);var A=St(c);i.contributions.forEach(function(I){var O=I.collectPropertyCompletions(t.uri,A,s,k,x==="",y);O&&b.push(O)}),!T&&s.length>0&&o.charAt(u-s.length-1)!=='"'&&(y.add({kind:F.Property,label:i.getLabelForValue(s),insertText:i.getInsertTextForProperty(s,null,!1,x),insertTextFormat:Q.Snippet,documentation:""}),y.setAsIncomplete())}var g={};return T?i.getValueCompletions(T,r,c,u,t,y,g):i.getSchemaLessValueCompletions(r,c,u,t,y),i.contributions.length>0&&i.getContributedValueCompletions(r,c,u,t,y,b),i.promiseConstructor.all(b).then(function(){if(y.getNumberOfProposals()===0){var I=u;c&&(c.type==="string"||c.type==="number"||c.type==="boolean"||c.type==="null")&&(I=c.offset+c.length);var O=i.evaluateSeparatorAfter(t,I);i.addFillerValueCompletions(g,O,y)}return a})})},e.prototype.getPropertyCompletions=function(t,n,r,i,a,o){var u=this,c=n.getMatchingSchemas(t.schema,r.offset);c.forEach(function(l){if(l.node===r&&!l.inverted){var s=l.schema.properties;s&&Object.keys(s).forEach(function(f){var d=s[f];if(typeof d=="object"&&!d.deprecationMessage&&!d.doNotSuggest){var h={kind:F.Property,label:f,insertText:u.getInsertTextForProperty(f,d,i,a),insertTextFormat:Q.Snippet,filterText:u.getFilterTextForValue(f),documentation:u.fromMarkup(d.markdownDescription)||d.description||""};ct(h.insertText,"$1"+a)&&(h.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(h)}})}})},e.prototype.getSchemaLessPropertyCompletions=function(t,n,r,i){var a=this,o=function(c){c.properties.forEach(function(l){var s=l.keyNode.value;i.add({kind:F.Property,label:s,insertText:a.getInsertTextForValue(s,""),insertTextFormat:Q.Snippet,filterText:a.getFilterTextForValue(s),documentation:""})})};if(n.parent)if(n.parent.type==="property"){var u=n.parent.keyNode.value;t.visit(function(c){return c.type==="property"&&c!==n.parent&&c.keyNode.value===u&&c.valueNode&&c.valueNode.type==="object"&&o(c.valueNode),!0})}else n.parent.type==="array"&&n.parent.items.forEach(function(c){c.type==="object"&&c!==n&&o(c)});else n.type==="object"&&i.add({kind:F.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:Q.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(t,n,r,i,a){var o=this,u=r;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(u=n.offset+n.length,n=n.parent),!n){a.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Q.Snippet,documentation:""}),a.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Q.Snippet,documentation:""});return}var c=this.evaluateSeparatorAfter(i,u),l=function(h){vr(h.parent,r,!0)||a.add({kind:o.getSuggestionKind(h.type),label:o.getLabelTextForMatchingNode(h,i),insertText:o.getInsertTextForMatchingNode(h,i,c),insertTextFormat:Q.Snippet,documentation:""}),h.type==="boolean"&&o.addBooleanValueCompletion(!h.value,c,a)};if(n.type==="property"&&r>n.colonOffset){var s=n.valueNode;if(s&&(r>s.offset+s.length||s.type==="object"||s.type==="array"))return;var f=n.keyNode.value;t.visit(function(h){return h.type==="property"&&h.keyNode.value===f&&h.valueNode&&l(h.valueNode),!0}),f==="$schema"&&n.parent&&!n.parent.parent&&this.addDollarSchemaCompletions(c,a)}if(n.type==="array")if(n.parent&&n.parent.type==="property"){var d=n.parent.keyNode.value;t.visit(function(h){return h.type==="property"&&h.keyNode.value===d&&h.valueNode&&h.valueNode.type==="array"&&h.valueNode.items.forEach(l),!0})}else n.items.forEach(l)},e.prototype.getValueCompletions=function(t,n,r,i,a,o,u){var c=this,l=i,s=null,f=null;if(r&&(r.type==="string"||r.type==="number"||r.type==="boolean"||r.type==="null")&&(l=r.offset+r.length,f=r,r=r.parent),!r){this.addSchemaValueCompletions(t.schema,"",o,u);return}if(r.type==="property"&&i>r.colonOffset){var d=r.valueNode;if(d&&i>d.offset+d.length)return;s=r.keyNode.value,r=r.parent}if(r&&(s!==null||r.type==="array")){var h=this.evaluateSeparatorAfter(a,l),m=n.getMatchingSchemas(t.schema,r.offset,f);m.forEach(function(y){if(y.node===r&&!y.inverted&&y.schema){if(r.type==="array"&&y.schema.items)if(Array.isArray(y.schema.items)){var T=c.findItemAtOffset(r,a,i);T<y.schema.items.length&&c.addSchemaValueCompletions(y.schema.items[T],h,o,u)}else c.addSchemaValueCompletions(y.schema.items,h,o,u);if(y.schema.properties){var b=y.schema.properties[s];b&&c.addSchemaValueCompletions(b,h,o,u)}}}),s==="$schema"&&!r.parent&&this.addDollarSchemaCompletions(h,o),u.boolean&&(this.addBooleanValueCompletion(!0,h,o),this.addBooleanValueCompletion(!1,h,o)),u.null&&this.addNullValueCompletion(h,o)}},e.prototype.getContributedValueCompletions=function(t,n,r,i,a,o){if(!n)this.contributions.forEach(function(s){var f=s.collectDefaultCompletions(i.uri,a);f&&o.push(f)});else if((n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(n=n.parent),n.type==="property"&&r>n.colonOffset){var u=n.keyNode.value,c=n.valueNode;if(!c||r<=c.offset+c.length){var l=St(n.parent);this.contributions.forEach(function(s){var f=s.collectValueCompletions(i.uri,l,u,a);f&&o.push(f)})}}},e.prototype.addSchemaValueCompletions=function(t,n,r,i){var a=this;typeof t=="object"&&(this.addEnumValueCompletions(t,n,r),this.addDefaultValueCompletions(t,n,r),this.collectTypes(t,i),Array.isArray(t.allOf)&&t.allOf.forEach(function(o){return a.addSchemaValueCompletions(o,n,r,i)}),Array.isArray(t.anyOf)&&t.anyOf.forEach(function(o){return a.addSchemaValueCompletions(o,n,r,i)}),Array.isArray(t.oneOf)&&t.oneOf.forEach(function(o){return a.addSchemaValueCompletions(o,n,r,i)}))},e.prototype.addDefaultValueCompletions=function(t,n,r,i){var a=this;i===void 0&&(i=0);var o=!1;if(fe(t.default)){for(var u=t.type,c=t.default,l=i;l>0;l--)c=[c],u="array";r.add({kind:this.getSuggestionKind(u),label:this.getLabelForValue(c),insertText:this.getInsertTextForValue(c,n),insertTextFormat:Q.Snippet,detail:At("json.suggest.default","Default value")}),o=!0}Array.isArray(t.examples)&&t.examples.forEach(function(s){for(var f=t.type,d=s,h=i;h>0;h--)d=[d],f="array";r.add({kind:a.getSuggestionKind(f),label:a.getLabelForValue(d),insertText:a.getInsertTextForValue(d,n),insertTextFormat:Q.Snippet}),o=!0}),Array.isArray(t.defaultSnippets)&&t.defaultSnippets.forEach(function(s){var f=t.type,d=s.body,h=s.label,m,y;if(fe(d)){for(var T=t.type,b=i;b>0;b--)d=[d],T="array";m=a.getInsertTextForSnippetValue(d,n),y=a.getFilterTextForSnippetValue(d),h=h||a.getLabelForSnippetValue(d)}else if(typeof s.bodyText=="string"){for(var k="",p="",N="",b=i;b>0;b--)k=k+N+`[
`,p=p+`
`+N+"]",N+=" ",f="array";m=k+N+s.bodyText.split(`
`).join(`
`+N)+p+n,h=h||m,y=m.replace(/[\n]/g,"")}r.add({kind:a.getSuggestionKind(f),label:h,documentation:a.fromMarkup(s.markdownDescription)||s.description,insertText:m,insertTextFormat:Q.Snippet,filterText:y}),o=!0}),!o&&typeof t.items=="object"&&!Array.isArray(t.items)&&this.addDefaultValueCompletions(t.items,n,r,i+1)},e.prototype.addEnumValueCompletions=function(t,n,r){if(fe(t.const)&&r.add({kind:this.getSuggestionKind(t.type),label:this.getLabelForValue(t.const),insertText:this.getInsertTextForValue(t.const,n),insertTextFormat:Q.Snippet,documentation:this.fromMarkup(t.markdownDescription)||t.description}),Array.isArray(t.enum))for(var i=0,a=t.enum.length;i<a;i++){var o=t.enum[i],u=this.fromMarkup(t.markdownDescription)||t.description;t.markdownEnumDescriptions&&i<t.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?u=this.fromMarkup(t.markdownEnumDescriptions[i]):t.enumDescriptions&&i<t.enumDescriptions.length&&(u=t.enumDescriptions[i]),r.add({kind:this.getSuggestionKind(t.type),label:this.getLabelForValue(o),insertText:this.getInsertTextForValue(o,n),insertTextFormat:Q.Snippet,documentation:u})}},e.prototype.collectTypes=function(t,n){if(Array.isArray(t.enum)||fe(t.const))return;var r=t.type;Array.isArray(r)?r.forEach(function(i){return n[i]=!0}):n[r]=!0},e.prototype.addFillerValueCompletions=function(t,n,r){t.object&&r.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},n),insertTextFormat:Q.Snippet,detail:At("defaults.object","New object"),documentation:""}),t.array&&r.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],n),insertTextFormat:Q.Snippet,detail:At("defaults.array","New array"),documentation:""})},e.prototype.addBooleanValueCompletion=function(t,n,r){r.add({kind:this.getSuggestionKind("boolean"),label:t?"true":"false",insertText:this.getInsertTextForValue(t,n),insertTextFormat:Q.Snippet,documentation:""})},e.prototype.addNullValueCompletion=function(t,n){n.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+t,insertTextFormat:Q.Snippet,documentation:""})},e.prototype.addDollarSchemaCompletions=function(t,n){var r=this,i=this.schemaService.getRegisteredSchemaIds(function(a){return a==="http"||a==="https"});i.forEach(function(a){return n.add({kind:F.Module,label:r.getLabelForValue(a),filterText:r.getFilterTextForValue(a),insertText:r.getInsertTextForValue(a,t),insertTextFormat:Q.Snippet,documentation:""})})},e.prototype.getLabelForValue=function(t){return JSON.stringify(t)},e.prototype.getFilterTextForValue=function(t){return JSON.stringify(t)},e.prototype.getFilterTextForSnippetValue=function(t){return JSON.stringify(t).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getLabelForSnippetValue=function(t){var n=JSON.stringify(t);return n.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getInsertTextForPlainText=function(t){return t.replace(/[\\\$\}]/g,"\\$&")},e.prototype.getInsertTextForValue=function(t,n){var r=JSON.stringify(t,null," ");return r==="{}"?"{$1}"+n:r==="[]"?"[$1]"+n:this.getInsertTextForPlainText(r+n)},e.prototype.getInsertTextForSnippetValue=function(t,n){var r=function(i){return typeof i=="string"&&i[0]==="^"?i.substr(1):JSON.stringify(i)};return Et(t,"",r)+n},e.prototype.getInsertTextForGuessedValue=function(t,n){switch(typeof t){case"object":return t===null?"${1:null}"+n:this.getInsertTextForValue(t,n);case"string":var r=JSON.stringify(t);return r=r.substr(1,r.length-2),r=this.getInsertTextForPlainText(r),'"${1:'+r+'}"'+n;case"number":case"boolean":return"${1:"+JSON.stringify(t)+"}"+n}return this.getInsertTextForValue(t,n)},e.prototype.getSuggestionKind=function(t){if(Array.isArray(t)){var n=t;t=n.length>0?n[0]:null}if(!t)return F.Value;switch(t){case"string":return F.Value;case"object":return F.Module;case"property":return F.Property;default:return F.Value}},e.prototype.getLabelTextForMatchingNode=function(t,n){switch(t.type){case"array":return"[]";case"object":return"{}";default:var r=n.getText().substr(t.offset,t.length);return r}},e.prototype.getInsertTextForMatchingNode=function(t,n,r){switch(t.type){case"array":return this.getInsertTextForValue([],r);case"object":return this.getInsertTextForValue({},r);default:var i=n.getText().substr(t.offset,t.length)+r;return this.getInsertTextForPlainText(i)}},e.prototype.getInsertTextForProperty=function(t,n,r,i){var a=this.getInsertTextForValue(t,"");if(!r)return a;var o=a+": ",u,c=0;if(n){if(Array.isArray(n.defaultSnippets)){if(n.defaultSnippets.length===1){var l=n.defaultSnippets[0].body;fe(l)&&(u=this.getInsertTextForSnippetValue(l,""))}c+=n.defaultSnippets.length}if(n.enum&&(!u&&n.enum.length===1&&(u=this.getInsertTextForGuessedValue(n.enum[0],"")),c+=n.enum.length),fe(n.default)&&(u||(u=this.getInsertTextForGuessedValue(n.default,"")),c++),Array.isArray(n.examples)&&n.examples.length&&(u||(u=this.getInsertTextForGuessedValue(n.examples[0],"")),c+=n.examples.length),c===0){var s=Array.isArray(n.type)?n.type[0]:n.type;s||(n.properties?s="object":n.items&&(s="array"));switch(s){case"boolean":u="$1";break;case"string":u='"$1"';break;case"object":u="{$1}";break;case"array":u="[$1]";break;case"number":case"integer":u="${1:0}";break;case"null":u="${1:null}";break;default:return a}}}return(!u||c>1)&&(u="$1"),o+u+i},e.prototype.getCurrentWord=function(t,n){for(var r=n-1,i=t.getText();r>=0&&`
\r\v":{[,]}`.indexOf(i.charAt(r))===-1;)r--;return i.substring(r+1,n)},e.prototype.evaluateSeparatorAfter=function(t,n){var r=w(t.getText(),!0);r.setPosition(n);var i=r.scan();switch(i){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(t,n,r){for(var i=w(n.getText(),!0),a=t.items,o=a.length-1;o>=0;o--){var u=a[o];if(r>u.offset+u.length){i.setPosition(u.offset+u.length);var c=i.scan();return c===5&&r>=i.getTokenOffset()+i.getTokenLength()?o+1:o}else if(r>=u.offset)return o}return 0},e.prototype.isInComment=function(t,n,r){var i=w(t.getText(),!1);i.setPosition(n);for(var a=i.scan();a!==17&&i.getTokenOffset()+i.getTokenLength()<r;)a=i.scan();return(a===12||a===13)&&i.getTokenOffset()<=r},e.prototype.fromMarkup=function(t){return t&&this.doesSupportMarkdown()?{kind:de.Markdown,value:t}:void 0},e.prototype.doesSupportMarkdown=function(){if(!fe(this.supportsMarkdown)){var t=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=t&&t.completionItem&&Array.isArray(t.completionItem.documentationFormat)&&t.completionItem.documentationFormat.indexOf(de.Markdown)!==-1}return this.supportsMarkdown},e.prototype.doesSupportsCommitCharacters=function(){if(!fe(this.supportsCommitCharacters)){var t=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=t&&t.completionItem&&!!t.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},e}(),cn=function(){function e(t,n,r){n===void 0&&(n=[]),this.schemaService=t,this.contributions=n,this.promise=r||Promise}return e.prototype.doHover=function(t,n,r){var i=t.offsetAt(n),a=r.getNodeFromOffset(i);if(!a||(a.type==="object"||a.type==="array")&&i>a.offset+1&&i<a.offset+a.length-1)return this.promise.resolve(null);var o=a;if(a.type==="string"){var u=a.parent;if(u&&u.type==="property"&&u.keyNode===a&&(a=u.valueNode,!a))return this.promise.resolve(null)}for(var c=q.create(t.positionAt(o.offset),t.positionAt(o.offset+o.length)),l=function(m){var y={contents:m,range:c};return y},s=St(a),f=this.contributions.length-1;f>=0;f--){var d=this.contributions[f],h=d.getInfoContribution(t.uri,s);if(h)return h.then(function(m){return l(m)})}return this.schemaService.getSchemaForResource(t.uri,r).then(function(m){if(m){var y=r.getMatchingSchemas(m.schema,a.offset),T=null,b=null,k=null,p=null;y.every(function(S){if(S.node===a&&!S.inverted&&S.schema&&(T=T||S.schema.title,b=b||S.schema.markdownDescription||Ot(S.schema.description),S.schema.enum)){var E=S.schema.enum.indexOf(ge(a));S.schema.markdownEnumDescriptions?k=S.schema.markdownEnumDescriptions[E]:S.schema.enumDescriptions&&(k=Ot(S.schema.enumDescriptions[E])),k&&(p=S.schema.enum[E],typeof p!="string"&&(p=JSON.stringify(p)))}return!0});var N="";return T&&(N=Ot(T)),b&&(N.length>0&&(N+=`
`),N+=b),k&&(N.length>0&&(N+=`
`),N+="`"+ln(p)+"`: "+k),l([N])}return null})},e}();function Ot(e){if(e){var t=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
$3`);return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}return}function ln(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var It=Ie("xiP/"),ve=Ne(),un=function(){function e(t){try{this.patternRegExp=new RegExp(nn(t)+"$")}catch(n){this.patternRegExp=null}this.schemas=[]}return e.prototype.addSchema=function(t){this.schemas.push(t)},e.prototype.matchesPattern=function(t){return this.patternRegExp&&this.patternRegExp.test(t)},e.prototype.getSchemas=function(){return this.schemas},e}(),fn=function(){function e(t,n,r){this.service=t,this.url=n,this.dependencies={},r&&(this.unresolvedSchema=this.service.promise.resolve(new Le(r)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var t=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(n){return t.service.resolveSchemaContent(n,t.url,t.dependencies)})),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},e}(),Le=function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e}(),br=function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e.prototype.getSection=function(t){return X(this.getSectionRecursive(t,this.schema))},e.prototype.getSectionRecursive=function(t,n){if(!n||typeof n=="boolean"||t.length===0)return n;var r=t.shift();if(n.properties&&typeof n.properties[r])return this.getSectionRecursive(t,n.properties[r]);if(n.patternProperties)for(var i=0,a=Object.keys(n.patternProperties);i<a.length;i++){var o=a[i],u=new RegExp(o);if(u.test(r))return this.getSectionRecursive(t,n.patternProperties[o])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(t,n.additionalProperties);if(r.match("[0-9]+")){if(Array.isArray(n.items)){var c=parseInt(r,10);if(!isNaN(c)&&n.items[c])return this.getSectionRecursive(t,n.items[c])}else if(n.items)return this.getSectionRecursive(t,n.items)}}return null},e}(),hn=function(){function e(t,n,r){this.contextService=n,this.requestService=t,this.promiseConstructor=r||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(t){return Object.keys(this.registeredSchemasIds).filter(function(n){var r=It.a.parse(n).scheme;return r!=="schemaservice"&&(!t||t(r))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(t){var n=this,r=!1;t=this.normalizeId(t);for(var i=[t],a=Object.keys(this.schemasById).map(function(l){return n.schemasById[l]});i.length;)for(var o=i.pop(),u=0;u<a.length;u++){var c=a[u];c&&(c.url===o||c.dependencies[o])&&(c.url!==o&&i.push(c.url),c.clearSchema(),a[u]=void 0,r=!0)}return r},e.prototype.normalizeId=function(t){try{return It.a.parse(t).toString()}catch(n){return t}},e.prototype.setSchemaContributions=function(t){if(t.schemas){var n=t.schemas;for(var r in n){var i=this.normalizeId(r);this.contributionSchemas[i]=this.addSchemaHandle(i,n[r])}}if(t.schemaAssociations){var a=t.schemaAssociations;for(var o in a){var u=a[o];this.contributionAssociations[o]=u;for(var c=this.getOrAddFilePatternAssociation(o),l=0,s=u;l<s.length;l++){var f=s[l],r=this.normalizeId(f);c.addSchema(r)}}}},e.prototype.addSchemaHandle=function(t,n){var r=new fn(this,t,n);return this.schemasById[t]=r,r},e.prototype.getOrAddSchemaHandle=function(t,n){return this.schemasById[t]||this.addSchemaHandle(t,n)},e.prototype.getOrAddFilePatternAssociation=function(t){var n=this.filePatternAssociationById[t];return n||(n=new un(t),this.filePatternAssociationById[t]=n,this.filePatternAssociations.push(n)),n},e.prototype.registerExternalSchema=function(t,n,r){n===void 0&&(n=null);var i=this.normalizeId(t);if(this.registeredSchemasIds[i]=!0,n)for(var a=0,o=n;a<o.length;a++){var u=o[a];this.getOrAddFilePatternAssociation(u).addSchema(i)}return r?this.addSchemaHandle(i,r):this.getOrAddSchemaHandle(i)},e.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var t in this.contributionSchemas)this.schemasById[t]=this.contributionSchemas[t],this.registeredSchemasIds[t]=!0;for(var n in this.contributionAssociations)for(var r=this.getOrAddFilePatternAssociation(n),i=0,a=this.contributionAssociations[n];i<a.length;i++){var o=a[i],t=this.normalizeId(o);r.addSchema(t)}},e.prototype.getResolvedSchema=function(t){var n=this.normalizeId(t),r=this.schemasById[n];return r?r.getResolvedSchema():this.promise.resolve(null)},e.prototype.loadSchema=function(t){if(!this.requestService){var n=ve("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",lt(t));return this.promise.resolve(new Le({},[n]))}return this.requestService(t).then(function(r){if(!r){var i=ve("json.schema.nocontent","Unable to load schema from '{0}': No content.",lt(t));return new Le({},[i])}var a={},o=[];a=j(r,o);var u=o.length?[ve("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",lt(t),o[0].offset)]:[];return new Le(a,u)},function(r){var i=r.toString(),a=r.toString().split("Error: ");return a.length>1&&(i=a[1]),ct(i,".")&&(i=i.substr(0,i.length-1)),new Le({},[ve("json.schema.nocontent","Unable to load schema from '{0}': {1}.",lt(t),i)])})},e.prototype.resolveSchemaContent=function(t,n,r){var i=this,a=t.errors.slice(0),o=t.schema;if(o.$schema){var u=this.normalizeId(o.$schema);if(u==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new br({},[ve("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));u==="https://json-schema.org/draft/2019-09/schema"&&t.errors.push(ve("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var c=this.contextService,l=function(h,m){if(!m)return h;var y=h;return m[0]==="/"&&(m=m.substr(1)),m.split("/").some(function(T){return y=y[T],!y}),y},s=function(h,m,y,T){var b=l(m,T);if(b)for(var k in b)b.hasOwnProperty(k)&&!h.hasOwnProperty(k)&&(h[k]=b[k]);else a.push(ve("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",T,y))},f=function(h,m,y,T,b){c&&!/^\w+:\/\/.*/.test(m)&&(m=c.resolveRelativePath(m,T)),m=i.normalizeId(m);var k=i.getOrAddSchemaHandle(m);return k.getUnresolvedSchema().then(function(p){if(b[m]=!0,p.errors.length){var N=y?m+"#"+y:m;a.push(ve("json.schema.problemloadingref","Problems loading reference '{0}': {1}",N,p.errors[0]))}return s(h,p.schema,m,y),d(h,p.schema,m,k.dependencies)})},d=function(h,m,y,T){if(!h||typeof h!="object")return Promise.resolve(null);for(var b=[h],k=[],p=[],N=function(){for(var g=[],I=0;I<arguments.length;I++)g[I]=arguments[I];for(var O=0,L=g;O<L.length;O++){var D=L[O];typeof D=="object"&&b.push(D)}},S=function(){for(var g=[],I=0;I<arguments.length;I++)g[I]=arguments[I];for(var O=0,L=g;O<L.length;O++){var D=L[O];if(typeof D=="object")for(var K in D){var z=D[K];typeof z=="object"&&b.push(z)}}},E=function(){for(var g=[],I=0;I<arguments.length;I++)g[I]=arguments[I];for(var O=0,L=g;O<L.length;O++){var D=L[O];if(Array.isArray(D))for(var K=0,z=D;K<z.length;K++){var ie=z[K];typeof ie=="object"&&b.push(ie)}}},x=function(g){for(var I=[];g.$ref;){var O=g.$ref,L=O.split("#",2);if(delete g.$ref,L[0].length>0){p.push(f(g,L[0],L[1],y,T));return}else I.indexOf(O)===-1&&(s(g,m,y,L[1]),I.push(O))}N(g.items,g.additionalProperties,g.not,g.contains,g.propertyNames,g.if,g.then,g.else),S(g.definitions,g.properties,g.patternProperties,g.dependencies),E(g.anyOf,g.allOf,g.oneOf,g.items)};b.length;){var A=b.pop();if(k.indexOf(A)>=0)continue;k.push(A),x(A)}return i.promise.all(p)};return d(o,o,n,r).then(function(h){return new br(o,a)})},e.prototype.getSchemaForResource=function(t,n){if(n&&n.root&&n.root.type==="object"){var r=n.root.properties.filter(function(m){return m.keyNode.value==="$schema"&&m.valueNode&&m.valueNode.type==="string"});if(r.length>0){var i=ge(r[0].valueNode);if(i&&rn(i,".")&&this.contextService&&(i=this.contextService.resolveRelativePath(i,t)),i){var a=this.normalizeId(i);return this.getOrAddSchemaHandle(a).getResolvedSchema()}}}for(var o=Object.create(null),u=[],c=0,l=this.filePatternAssociations;c<l.length;c++){var s=l[c];if(s.matchesPattern(t))for(var f=0,d=s.getSchemas();f<d.length;f++){var h=d[f];o[h]||(u.push(h),o[h]=!0)}}return u.length>0?this.createCombinedSchema(t,u).getResolvedSchema():this.promise.resolve(null)},e.prototype.createCombinedSchema=function(t,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var r="schemaservice://combinedSchema/"+encodeURIComponent(t),i={allOf:n.map(function(a){return{$ref:a}})};return this.addSchemaHandle(r,i)},e}();function lt(e){try{var t=It.a.parse(e);if(t.scheme==="file")return t.fsPath}catch(n){}return e}var dn=Ne(),pn=function(){function e(t,n){this.jsonSchemaService=t,this.promise=n,this.validationEnabled=!0}return e.prototype.configure=function(t){t&&(this.validationEnabled=t.validate,this.commentSeverity=t.allowComments?void 0:U.Error)},e.prototype.doValidation=function(t,n,r,i){var a=this;if(!this.validationEnabled)return this.promise.resolve([]);var o=[],u={},c=function(f){var d=f.range.start.line+" "+f.range.start.character+" "+f.message;u[d]||(u[d]=!0,o.push(f))},l=function(f){var d=r?Tr(r.trailingCommas):U.Error,h=r?Tr(r.comments):a.commentSeverity;if(f){if(f.errors.length&&n.root){var m=n.root,y=m.type==="object"?m.properties[0]:null;if(y&&y.keyNode.value==="$schema"){var T=y.valueNode||y,b=q.create(t.positionAt(T.offset),t.positionAt(T.offset+T.length));c(he.create(b,f.errors[0],U.Warning,R.SchemaResolveError))}else{var b=q.create(t.positionAt(m.offset),t.positionAt(m.offset+1));c(he.create(b,f.errors[0],U.Warning,R.SchemaResolveError))}}else{var k=n.validate(t,f.schema);k&&k.forEach(c)}kr(f.schema)&&(h=void 0),Cr(f.schema)&&(d=void 0)}for(var p=0,N=n.syntaxErrors;p<N.length;p++){var S=N[p];if(S.code===R.TrailingComma){if(typeof d!="number")continue;S.severity=d}c(S)}if(typeof h=="number"){var E=dn("InvalidCommentToken","Comments are not permitted in JSON.");n.comments.forEach(function(x){c(he.create(x,E,h,R.CommentNotPermitted))})}return o};if(i){var s=i.id||"schemaservice://untitled/"+mn++;return this.jsonSchemaService.resolveSchemaContent(new Le(i),s,{}).then(function(f){return l(f)})}return this.jsonSchemaService.getSchemaForResource(t.uri,n).then(function(f){return l(f)})},e}(),mn=0;function kr(e){if(e&&typeof e=="object"){if(oe(e.allowComments))return e.allowComments;if(e.allOf)for(var t=0,n=e.allOf;t<n.length;t++){var r=n[t],i=kr(r);if(oe(i))return i}}return}function Cr(e){if(e&&typeof e=="object"){if(oe(e.allowTrailingCommas))return e.allowTrailingCommas;if(oe(e.allowsTrailingCommas))return e.allowsTrailingCommas;if(e.allOf)for(var t=0,n=e.allOf;t<n.length;t++){var r=n[t],i=Cr(r);if(oe(i))return i}}return}function Tr(e){switch(e){case"error":return U.Error;case"warning":return U.Warning;case"ignore":return}return}var wr=48,gn=57,vn=65,ut=97,yn=102;function G(e){return e<wr?0:e<=gn?e-wr:(e<ut&&(e+=ut-vn),e>=ut&&e<=yn?e-ut+10:0)}function bn(e){if(e[0]!=="#")return null;switch(e.length){case 4:return{red:G(e.charCodeAt(1))*17/255,green:G(e.charCodeAt(2))*17/255,blue:G(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:G(e.charCodeAt(1))*17/255,green:G(e.charCodeAt(2))*17/255,blue:G(e.charCodeAt(3))*17/255,alpha:G(e.charCodeAt(4))*17/255};case 7:return{red:(G(e.charCodeAt(1))*16+G(e.charCodeAt(2)))/255,green:(G(e.charCodeAt(3))*16+G(e.charCodeAt(4)))/255,blue:(G(e.charCodeAt(5))*16+G(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(G(e.charCodeAt(1))*16+G(e.charCodeAt(2)))/255,green:(G(e.charCodeAt(3))*16+G(e.charCodeAt(4)))/255,blue:(G(e.charCodeAt(5))*16+G(e.charCodeAt(6)))/255,alpha:(G(e.charCodeAt(7))*16+G(e.charCodeAt(8)))/255}}return null}function li(e,t,n,r){return r===void 0&&(r=1),{red:e/255,green:t/255,blue:n/255,alpha:r}}var kn=function(){function e(t){this.schemaService=t}return e.prototype.findDocumentSymbols=function(t,n,r){var i=this;r===void 0&&(r={resultLimit:Number.MAX_VALUE});var a=n.root;if(!a)return null;var o=r.resultLimit,u=t.uri;if((u==="vscode://defaultsettings/keybindings.json"||ct(u.toLowerCase(),"/user/keybindings.json"))&&a.type==="array"){for(var c=[],l=0,s=a.items;l<s.length;l++){var f=s[l];if(f.type==="object")for(var d=0,h=f.properties;d<h.length;d++){var m=h[d];if(m.keyNode.value==="key"&&m.valueNode){var y=Ve.create(t.uri,ye(t,f));if(c.push({name:ge(m.valueNode),kind:J.Function,location:y}),o--,o<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(u),c}}}return c}for(var T=[{node:a,containerName:""}],b=0,k=!1,p=[],N=function(E,x){E.type==="array"?E.items.forEach(function(A){A&&T.push({node:A,containerName:x})}):E.type==="object"&&E.properties.forEach(function(A){var g=A.valueNode;if(g)if(o>0){o--;var I=Ve.create(t.uri,ye(t,A)),O=x?x+"."+A.keyNode.value:A.keyNode.value;p.push({name:i.getKeyLabel(A),kind:i.getSymbolKind(g.type),location:I,containerName:x}),T.push({node:g,containerName:O})}else k=!0})};b<T.length;){var S=T[b++];N(S.node,S.containerName)}return k&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(u),p},e.prototype.findDocumentSymbols2=function(t,n,r){var i=this;r===void 0&&(r={resultLimit:Number.MAX_VALUE});var a=n.root;if(!a)return null;var o=r.resultLimit,u=t.uri;if((u==="vscode://defaultsettings/keybindings.json"||ct(u.toLowerCase(),"/user/keybindings.json"))&&a.type==="array"){for(var c=[],l=0,s=a.items;l<s.length;l++){var f=s[l];if(f.type==="object")for(var d=0,h=f.properties;d<h.length;d++){var m=h[d];if(m.keyNode.value==="key"&&m.valueNode){var y=ye(t,f),T=ye(t,m.keyNode);if(c.push({name:ge(m.valueNode),kind:J.Function,range:y,selectionRange:T}),o--,o<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(u),c}}}return c}for(var b=[],k=[{node:a,result:b}],p=0,N=!1,S=function(x,A){x.type==="array"?x.items.forEach(function(g,I){if(g)if(o>0){o--;var O=ye(t,g),L=O,D=String(I),K={name:D,kind:i.getSymbolKind(g.type),range:O,selectionRange:L,children:[]};A.push(K),k.push({result:K.children,node:g})}else N=!0}):x.type==="object"&&x.properties.forEach(function(g){var I=g.valueNode;if(I)if(o>0){o--;var O=ye(t,g),L=ye(t,g.keyNode),D={name:i.getKeyLabel(g),kind:i.getSymbolKind(I.type),range:O,selectionRange:L,children:[]};A.push(D),k.push({result:D.children,node:I})}else N=!0})};p<k.length;){var E=k[p++];S(E.node,E.result)}return N&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(u),b},e.prototype.getSymbolKind=function(t){switch(t){case"object":return J.Module;case"string":return J.String;case"number":return J.Number;case"array":return J.Array;case"boolean":return J.Boolean;default:return J.Variable}},e.prototype.getKeyLabel=function(t){var n=t.keyNode.value;return n&&(n=n.replace(/[\n]/g,"\u21B5")),n&&n.trim()?n:'"'+n+'"'},e.prototype.findDocumentColors=function(t,n,r){return this.schemaService.getSchemaForResource(t.uri,n).then(function(i){var a=[];if(i)for(var o=r&&typeof r.resultLimit=="number"?r.resultLimit:Number.MAX_VALUE,u=n.getMatchingSchemas(i.schema),c={},l=0,s=u;l<s.length;l++){var f=s[l];if(!f.inverted&&f.schema&&(f.schema.format==="color"||f.schema.format==="color-hex")&&f.node&&f.node.type==="string"){var d=String(f.node.offset);if(!c[d]){var h=bn(ge(f.node));if(h){var m=ye(t,f.node);a.push({color:h,range:m})}if(c[d]=!0,o--,o<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(t.uri),a}}}return a})},e.prototype.getColorPresentations=function(t,n,r,i){var a=[],o=Math.round(r.red*255),u=Math.round(r.green*255),c=Math.round(r.blue*255);function l(f){var d=f.toString(16);return d.length!==2?"0"+d:d}var s;return r.alpha===1?s="#"+l(o)+l(u)+l(c):s="#"+l(o)+l(u)+l(c)+l(Math.round(r.alpha*255)),a.push({label:s,textEdit:se.replace(i,JSON.stringify(s))}),a},e}();function ye(e,t){return q.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}var _=Ne(),jt={schemaAssociations:{},schemas:{"http://json-schema.org/draft-04/schema#":{title:_("schema.json","Describes a JSON file using a schema. See json-schema.org for more info."),$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#":{title:_("schema.json","Describes a JSON file using a schema. See json-schema.org for more info."),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}}},Cn={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 Tn in jt.schemas){var Nt=jt.schemas[Tn];for(var Be in Nt.properties){var Lt=Nt.properties[Be];Lt===!0&&(Lt=Nt.properties[Be]={});var xr=Cn[Be];xr?Lt.description=xr:console.log(Be+": localize('schema.json."+Be+`', "")`)}}function wn(e,t){var n=[],r=[],i=[],a=-1,o=w(e.getText(),!1),u=o.scan();function c(I){n.push(I),r.push(i.length)}for(;u!==17;){switch(u){case 1:case 3:{var l=e.positionAt(o.getTokenOffset()).line,s={startLine:l,endLine:l,kind:u===1?"object":"array"};i.push(s);break}case 2:case 4:{var f=u===2?"object":"array";if(i.length>0&&i[i.length-1].kind===f){var s=i.pop(),d=e.positionAt(o.getTokenOffset()).line;s&&d>s.startLine+1&&a!==s.startLine&&(s.endLine=d-1,c(s),a=s.startLine)}break}case 13:{var l=e.positionAt(o.getTokenOffset()).line,h=e.positionAt(o.getTokenOffset()+o.getTokenLength()).line;o.getTokenError()===1&&l+1<e.lineCount?o.setPosition(e.offsetAt(ae.create(l+1,0))):l<h&&(c({startLine:l,endLine:h,kind:me.Comment}),a=l);break}case 12:{var m=e.getText().substr(o.getTokenOffset(),o.getTokenLength()),y=m.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(y){var d=e.positionAt(o.getTokenOffset()).line;if(y[1]){var s={startLine:d,endLine:d,kind:me.Region};i.push(s)}else{for(var T=i.length-1;T>=0&&i[T].kind!==me.Region;)T--;if(T>=0){var s=i[T];i.length=T,d>s.startLine&&a!==s.startLine&&(s.endLine=d,c(s),a=s.startLine)}}}break}}u=o.scan()}var b=t&&t.rangeLimit;if(typeof b!="number"||n.length<=b)return n;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);for(var k=[],p=0,N=r;p<N.length;p++){var S=N[p];S<30&&(k[S]=(k[S]||0)+1)}for(var E=0,x=0,T=0;T<k.length;T++){var A=k[T];if(A){if(A+E>b){x=T;break}E+=A}}for(var g=[],T=0;T<n.length;T++){var S=r[T];typeof S=="number"&&((S<x||S===x&&E++<b)&&g.push(n[T]))}return g}function xn(e,t,n){function r(u){for(var c=e.offsetAt(u),l=n.getNodeFromOffset(c,!0),s=[];l;){switch(l.type){case"string":case"object":case"array":var f=l.offset+1,d=l.offset+l.length-1;f<d&&c>=f&&c<=d&&s.push(i(f,d)),s.push(i(l.offset,l.offset+l.length));break;case"number":case"boolean":case"null":case"property":s.push(i(l.offset,l.offset+l.length));break}if(l.type==="property"||l.parent&&l.parent.type==="array"){var h=o(l.offset+l.length,5);h!==-1&&s.push(i(l.offset,h))}l=l.parent}for(var m=void 0,y=s.length-1;y>=0;y--)m=st.create(s[y],m);return m||(m=st.create(q.create(u,u))),m}function i(u,c){return q.create(e.positionAt(u),e.positionAt(c))}var a=w(e.getText(),!0);function o(u,c){a.setPosition(u);var l=a.scan();return l===c?a.getTokenOffset()+a.getTokenLength():-1}return t.map(r)}function ui(e){var t=e.promiseConstructor||Promise,n=new hn(e.schemaRequestService,e.workspaceContext,t);n.setSchemaContributions(jt);var r=new sn(n,e.contributions,t,e.clientCapabilities),i=new cn(n,e.contributions,t),a=new kn(n),o=new pn(n,t);return{configure:function(u){n.clearExternalSchemas(),u.schemas&&u.schemas.forEach(function(c){n.registerExternalSchema(c.uri,c.fileMatch,c.schema)}),o.configure(u)},resetSchema:function(u){return n.onResourceChange(u)},doValidation:o.doValidation.bind(o),parseJSONDocument:function(u){return tn(u,{collectComments:!0})},newJSONDocument:function(u,c){return en(u,c)},doResolve:r.doResolve.bind(r),doComplete:r.doComplete.bind(r),findDocumentSymbols:a.findDocumentSymbols.bind(a),findDocumentSymbols2:a.findDocumentSymbols2.bind(a),findColorSymbols:function(u,c){return a.findDocumentColors(u,c).then(function(l){return l.map(function(s){return s.range})})},findDocumentColors:a.findDocumentColors.bind(a),getColorPresentations:a.getColorPresentations.bind(a),doHover:i.doHover.bind(i),getFoldingRanges:wn,getSelectionRanges:xn,format:function(u,c,l){var s=void 0;if(c){var f=u.offsetAt(c.start),d=u.offsetAt(c.end)-f;s={offset:f,length:d}}var h={tabSize:l?l.tabSize:4,insertSpaces:l?l.insertSpaces:!0,eol:`
`};return ue(u.getText(),s,h).map(function(m){return se.replace(q.create(u.positionAt(m.offset),u.positionAt(m.offset+m.length)),m.content)})}}}var Sn=monaco.Uri,Sr=monaco.Range,En=function(){function e(t,n,r){var i=this;this._languageId=t,this._worker=n,this._disposables=[],this._listener=Object.create(null);var a=function(u){var c=u.getModeId();if(c!==i._languageId)return;var l;i._listener[u.uri.toString()]=u.onDidChangeContent(function(){clearTimeout(l),l=setTimeout(function(){return i._doValidate(u.uri,c)},500)}),i._doValidate(u.uri,c)},o=function(u){monaco.editor.setModelMarkers(u,i._languageId,[]);var c=u.uri.toString(),l=i._listener[c];l&&(l.dispose(),delete i._listener[c])};this._disposables.push(monaco.editor.onDidCreateModel(a)),this._disposables.push(monaco.editor.onWillDisposeModel(function(u){o(u),i._resetSchema(u.uri)})),this._disposables.push(monaco.editor.onDidChangeModelLanguage(function(u){o(u.model),a(u.model),i._resetSchema(u.model.uri)})),this._disposables.push(r.onDidChange(function(u){monaco.editor.getModels().forEach(function(c){c.getModeId()===i._languageId&&(o(c),a(c))})})),this._disposables.push({dispose:function(){monaco.editor.getModels().forEach(o);for(var u in i._listener)i._listener[u].dispose()}}),monaco.editor.getModels().forEach(a)}return e.prototype.dispose=function(){this._disposables.forEach(function(t){return t&&t.dispose()}),this._disposables=[]},e.prototype._resetSchema=function(t){this._worker().then(function(n){n.resetSchema(t.toString())})},e.prototype._doValidate=function(t,n){this._worker(t).then(function(r){return r.doValidation(t.toString()).then(function(i){var a=i.map(function(u){return On(t,u)}),o=monaco.editor.getModel(t);o&&o.getModeId()===n&&monaco.editor.setModelMarkers(o,n,a)})}).then(void 0,function(r){console.error(r)})},e}();function An(e){switch(e){case U.Error:return monaco.MarkerSeverity.Error;case U.Warning:return monaco.MarkerSeverity.Warning;case U.Information:return monaco.MarkerSeverity.Info;case U.Hint:return monaco.MarkerSeverity.Hint;default:return monaco.MarkerSeverity.Info}}function On(e,t){var n=typeof t.code=="number"?String(t.code):t.code;return{severity:An(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}function Mt(e){return e?{character:e.column-1,line:e.lineNumber-1}:void 0}function Er(e){return e?{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}:void 0}function be(e){return e?new Sr(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1):void 0}function In(e){var t=monaco.languages.CompletionItemKind;switch(e){case F.Text:return t.Text;case F.Method:return t.Method;case F.Function:return t.Function;case F.Constructor:return t.Constructor;case F.Field:return t.Field;case F.Variable:return t.Variable;case F.Class:return t.Class;case F.Interface:return t.Interface;case F.Module:return t.Module;case F.Property:return t.Property;case F.Unit:return t.Unit;case F.Value:return t.Value;case F.Enum:return t.Enum;case F.Keyword:return t.Keyword;case F.Snippet:return t.Snippet;case F.Color:return t.Color;case F.File:return t.File;case F.Reference:return t.Reference}return t.Property}function fi(e){var t=monaco.languages.CompletionItemKind;switch(e){case t.Text:return F.Text;case t.Method:return F.Method;case t.Function:return F.Function;case t.Constructor:return F.Constructor;case t.Field:return F.Field;case t.Variable:return F.Variable;case t.Class:return F.Class;case t.Interface:return F.Interface;case t.Module:return F.Module;case t.Property:return F.Property;case t.Unit:return F.Unit;case t.Value:return F.Value;case t.Enum:return F.Enum;case t.Keyword:return F.Keyword;case t.Snippet:return F.Snippet;case t.Color:return F.Color;case t.File:return F.File;case t.Reference:return F.Reference}return F.Property}function $e(e){return e?{range:be(e.range),text:e.newText}:void 0}var jn=function(){function e(t){this._worker=t}return Object.defineProperty(e.prototype,"triggerCharacters",{get:function(){return[" ",":"]},enumerable:!0,configurable:!0}),e.prototype.provideCompletionItems=function(t,n,r,i){var a=t.uri;return this._worker(a).then(function(o){return o.doComplete(a.toString(),Mt(n))}).then(function(o){if(!o)return;var u=t.getWordUntilPosition(n),c=new Sr(n.lineNumber,u.startColumn,n.lineNumber,u.endColumn),l=o.items.map(function(s){var f={label:s.label,insertText:s.insertText||s.label,sortText:s.sortText,filterText:s.filterText,documentation:s.documentation,detail:s.detail,range:c,kind:In(s.kind)};return s.textEdit&&(f.range=be(s.textEdit.range),f.insertText=s.textEdit.newText),s.additionalTextEdits&&(f.additionalTextEdits=s.additionalTextEdits.map($e)),s.insertTextFormat===Q.Snippet&&(f.insertTextRules=monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet),f});return{isIncomplete:o.isIncomplete,suggestions:l}})},e}();function Nn(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Ar(e){return typeof e=="string"?{value:e}:Nn(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+`
`+e.value+"\n```\n"}}function Ln(e){return e?Array.isArray(e)?e.map(Ar):[Ar(e)]:void 0}var Mn=function(){function e(t){this._worker=t}return e.prototype.provideHover=function(t,n,r){var i=t.uri;return this._worker(i).then(function(a){return a.doHover(i.toString(),Mt(n))}).then(function(a){return a?{range:be(a.range),contents:Ln(a.contents)}:void 0})},e}();function hi(e){return{uri:Sn.parse(e.uri),range:be(e.range)}}function Pn(e){var t=monaco.languages.SymbolKind;switch(e){case J.File:return t.Array;case J.Module:return t.Module;case J.Namespace:return t.Namespace;case J.Package:return t.Package;case J.Class:return t.Class;case J.Method:return t.Method;case J.Property:return t.Property;case J.Field:return t.Field;case J.Constructor:return t.Constructor;case J.Enum:return t.Enum;case J.Interface:return t.Interface;case J.Function:return t.Function;case J.Variable:return t.Variable;case J.Constant:return t.Constant;case J.String:return t.String;case J.Number:return t.Number;case J.Boolean:return t.Boolean;case J.Array:return t.Array}return t.Function}var Fn=function(){function e(t){this._worker=t}return e.prototype.provideDocumentSymbols=function(t,n){var r=t.uri;return this._worker(r).then(function(i){return i.findDocumentSymbols(r.toString())}).then(function(i){return i?i.map(function(a){return{name:a.name,detail:"",containerName:a.containerName,kind:Pn(a.kind),range:be(a.location.range),selectionRange:be(a.location.range),tags:[]}}):void 0})},e}();function Or(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var _n=function(){function e(t){this._worker=t}return e.prototype.provideDocumentFormattingEdits=function(t,n,r){var i=t.uri;return this._worker(i).then(function(a){return a.format(i.toString(),null,Or(n)).then(function(o){return!o||o.length===0?void 0:o.map($e)})})},e}(),Dn=function(){function e(t){this._worker=t}return e.prototype.provideDocumentRangeFormattingEdits=function(t,n,r,i){var a=t.uri;return this._worker(a).then(function(o){return o.format(a.toString(),Er(n),Or(r)).then(function(u){return!u||u.length===0?void 0:u.map($e)})})},e}(),Un=function(){function e(t){this._worker=t}return e.prototype.provideDocumentColors=function(t,n){var r=t.uri;return this._worker(r).then(function(i){return i.findDocumentColors(r.toString())}).then(function(i){return i?i.map(function(a){return{color:a.color,range:be(a.range)}}):void 0})},e.prototype.provideColorPresentations=function(t,n,r){var i=t.uri;return this._worker(i).then(function(a){return a.getColorPresentations(i.toString(),n.color,Er(n.range))}).then(function(a){return a?a.map(function(o){var u={label:o.label};return o.textEdit&&(u.textEdit=$e(o.textEdit)),o.additionalTextEdits&&(u.additionalTextEdits=o.additionalTextEdits.map($e)),u}):void 0})},e}(),Vn=function(){function e(t){this._worker=t}return e.prototype.provideFoldingRanges=function(t,n,r){var i=t.uri;return this._worker(i).then(function(a){return a.getFoldingRanges(i.toString(),n)}).then(function(a){return a?a.map(function(o){var u={start:o.startLine+1,end:o.endLine+1};return typeof o.kind!="undefined"&&(u.kind=Rn(o.kind)),u}):void 0})},e}();function Rn(e){switch(e){case me.Comment:return monaco.languages.FoldingRangeKind.Comment;case me.Imports:return monaco.languages.FoldingRangeKind.Imports;case me.Region:return monaco.languages.FoldingRangeKind.Region}return}var Bn=function(){function e(t){this._worker=t}return e.prototype.provideSelectionRanges=function(t,n,r){var i=t.uri;return this._worker(i).then(function(a){return a.getSelectionRanges(i.toString(),n.map(Mt))}).then(function(a){return a?a.map(function(o){for(var u=[];o;)u.push({range:be(o.range)}),o=o.parent;return u}):void 0})},e}();function $n(e){return{getInitialState:function(){return new Nr(null,null,!1)},tokenize:function(t,n,r,i){return Xn(e,t,n,r,i)}}}var Ir="delimiter.bracket.json",jr="delimiter.array.json",Wn="delimiter.colon.json",Jn="delimiter.comma.json",qn="keyword.json",Hn="keyword.json",zn="string.value.json",Kn="number.json",Gn="string.key.json",Qn="comment.block.json",Zn="comment.line.json",Nr=function(){function e(t,n,r){this._state=t,this.scanError=n,this.lastWasColon=r}return e.prototype.clone=function(){return new e(this._state,this.scanError,this.lastWasColon)},e.prototype.equals=function(t){return t===this?!0:!t||!(t instanceof e)?!1:this.scanError===t.scanError&&this.lastWasColon===t.lastWasColon},e.prototype.getStateData=function(){return this._state},e.prototype.setStateData=function(t){this._state=t},e}();function Xn(e,t,n,r,i){r===void 0&&(r=0);var a=0,o=!1;switch(n.scanError){case 2:t='"'+t,a=1;break;case 1:t="/*"+t,a=2;break}var u=w(t),c,l,s=n.lastWasColon;for(l={tokens:[],endState:n.clone()};;){var f=r+u.getPosition(),d="";if(c=u.scan(),c===17)break;if(f===r+u.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+t.substr(u.getPosition(),3));o&&(f-=a),o=a>0;switch(c){case 1:d=Ir,s=!1;break;case 2:d=Ir,s=!1;break;case 3:d=jr,s=!1;break;case 4:d=jr,s=!1;break;case 6:d=Wn,s=!0;break;case 5:d=Jn,s=!1;break;case 8:case 9:d=qn,s=!1;break;case 7:d=Hn,s=!1;break;case 10:d=s?zn:Gn,s=!1;break;case 11:d=Kn,s=!1;break}if(e)switch(c){case 12:d=Zn;break;case 13:d=Qn;break}l.endState=new Nr(n.getStateData(),u.getTokenError(),s),l.tokens.push({startIndex:f,scopes:d})}return l}function Yn(e){var t=[],n=[],r=new ft(e);t.push(r);var i=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return r.getLanguageServiceWorker.apply(r,u)};function a(){var u=e.languageId,c=e.modeConfiguration;Mr(n),c.documentFormattingEdits&&n.push(monaco.languages.registerDocumentFormattingEditProvider(u,new _n(i))),c.documentRangeFormattingEdits&&n.push(monaco.languages.registerDocumentRangeFormattingEditProvider(u,new Dn(i))),c.completionItems&&n.push(monaco.languages.registerCompletionItemProvider(u,new jn(i))),c.hovers&&n.push(monaco.languages.registerHoverProvider(u,new Mn(i))),c.documentSymbols&&n.push(monaco.languages.registerDocumentSymbolProvider(u,new Fn(i))),c.tokens&&n.push(monaco.languages.setTokensProvider(u,$n(!0))),c.colors&&n.push(monaco.languages.registerColorProvider(u,new Un(i))),c.foldingRanges&&n.push(monaco.languages.registerFoldingRangeProvider(u,new Vn(i))),c.diagnostics&&n.push(new En(u,i,e)),c.selectionRanges&&n.push(monaco.languages.registerSelectionRangeProvider(u,new Bn(i)))}a(),t.push(monaco.languages.setLanguageConfiguration(e.languageId,ei));var o=e.modeConfiguration;return e.onDidChange(function(u){u.modeConfiguration!==o&&(o=u.modeConfiguration,a())}),t.push(Lr(n)),Lr(t)}function Lr(e){return{dispose:function(){return Mr(e)}}}function Mr(e){for(;e.length;)e.pop().dispose()}var ei={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}},"xiP/":function(Br,Je,Ie){"use strict";(function(qe){Ie.d(Je,"a",function(){return xe});var ft=function(){var w=function(C,j){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,W){M.__proto__=W}||function(M,W){for(var V in W)W.hasOwnProperty(V)&&(M[V]=W[V])},w(C,j)};return function(C,j){w(C,j);function M(){this.constructor=C}C.prototype=j===null?Object.create(j):(M.prototype=j.prototype,new M)}}(),H,ce;if(typeof qe=="object")ce=qe.platform==="win32";else if(typeof navigator=="object"){var Ce=navigator.userAgent;ce=Ce.indexOf("Windows")>=0}function Te(w){return 55296<=w&&w<=56319}function ht(w){return 56320<=w&&w<=57343}function He(w){return w>=97&&w<=102}function dt(w){return w>=97&&w<=122}function pt(w){return w>=65&&w<=90}function Pe(w){return dt(w)||pt(w)}var we=/^\w[\w\d+.-]*$/,mt=/^\//,gt=/^\/\//;function ze(w,C){if(!w.scheme&&C)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+w.authority+'", path: "'+w.path+'", query: "'+w.query+'", fragment: "'+w.fragment+'"}');if(w.scheme&&!we.test(w.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(w.path){if(w.authority){if(!mt.test(w.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(gt.test(w.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Fe(w,C){return!w&&!C?"file":w}function Ke(w,C){switch(w){case"https":case"http":case"file":C?C[0]!==ee&&(C=ee+C):C=ee;break}return C}var B="",ee="/",Ge=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,xe=function(){function w(C,j,M,W,V,$){$===void 0&&($=!1),typeof C=="object"?(this.scheme=C.scheme||B,this.authority=C.authority||B,this.path=C.path||B,this.query=C.query||B,this.fragment=C.fragment||B):(this.scheme=Fe(C,$),this.authority=j||B,this.path=Ke(this.scheme,M||B),this.query=W||B,this.fragment=V||B,ze(this,$))}return w.isUri=function(C){return C instanceof w?!0:C?typeof C.authority=="string"&&typeof C.fragment=="string"&&typeof C.path=="string"&&typeof C.query=="string"&&typeof C.scheme=="string"&&typeof C.fsPath=="function"&&typeof C.with=="function"&&typeof C.toString=="function":!1},Object.defineProperty(w.prototype,"fsPath",{get:function(){return je(this)},enumerable:!0,configurable:!0}),w.prototype.with=function(C){if(!C)return this;var j=C.scheme,M=C.authority,W=C.path,V=C.query,$=C.fragment;return j===void 0?j=this.scheme:j===null&&(j=B),M===void 0?M=this.authority:M===null&&(M=B),W===void 0?W=this.path:W===null&&(W=B),V===void 0?V=this.query:V===null&&(V=B),$===void 0?$=this.fragment:$===null&&($=B),j===this.scheme&&M===this.authority&&W===this.path&&V===this.query&&$===this.fragment?this:new le(j,M,W,V,$)},w.parse=function(C,j){j===void 0&&(j=!1);var M=Ge.exec(C);return M?new le(M[2]||B,decodeURIComponent(M[4]||B),decodeURIComponent(M[5]||B),decodeURIComponent(M[7]||B),decodeURIComponent(M[9]||B),j):new le(B,B,B,B,B)},w.file=function(C){var j=B;if(ce&&(C=C.replace(/\\/g,ee)),C[0]===ee&&C[1]===ee){var M=C.indexOf(ee,2);M===-1?(j=C.substring(2),C=ee):(j=C.substring(2,M),C=C.substring(M)||ee)}return new le("file",j,C,B,B)},w.from=function(C){return new le(C.scheme,C.authority,C.path,C.query,C.fragment)},w.prototype.toString=function(C){return C===void 0&&(C=!1),Ze(this,C)},w.prototype.toJSON=function(){return this},w.revive=function(C){if(C){if(C instanceof w)return C;var j=new le(C);return j._formatted=C.external,j._fsPath=C._sep===Qe?C.fsPath:null,j}else return C},w}(),Qe=ce?1:void 0,le=function(w){ft(C,w);function C(){var j=w!==null&&w.apply(this,arguments)||this;return j._formatted=null,j._fsPath=null,j}return Object.defineProperty(C.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=je(this)),this._fsPath},enumerable:!0,configurable:!0}),C.prototype.toString=function(j){return j===void 0&&(j=!1),j?Ze(this,!0):(this._formatted||(this._formatted=Ze(this,!1)),this._formatted)},C.prototype.toJSON=function(){var j={$mid:1};return this._fsPath&&(j.fsPath=this._fsPath,j._sep=Qe),this._formatted&&(j.external=this._formatted),this.path&&(j.path=this.path),this.scheme&&(j.scheme=this.scheme),this.authority&&(j.authority=this.authority),this.query&&(j.query=this.query),this.fragment&&(j.fragment=this.fragment),j},C}(xe),vt=(H={},H[58]="%3A",H[47]="%2F",H[63]="%3F",H[35]="%23",H[91]="%5B",H[93]="%5D",H[64]="%40",H[33]="%21",H[36]="%24",H[38]="%26",H[39]="%27",H[40]="%28",H[41]="%29",H[42]="%2A",H[43]="%2B",H[44]="%2C",H[59]="%3B",H[61]="%3D",H[32]="%20",H);function _e(w,C){for(var j=void 0,M=-1,W=0;W<w.length;W++){var V=w.charCodeAt(W);if(V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===45||V===46||V===95||V===126||C&&V===47)M!==-1&&(j+=encodeURIComponent(w.substring(M,W)),M=-1),j!==void 0&&(j+=w.charAt(W));else{j===void 0&&(j=w.substr(0,W));var $=vt[V];$!==void 0?(M!==-1&&(j+=encodeURIComponent(w.substring(M,W)),M=-1),j+=$):M===-1&&(M=W)}}return M!==-1&&(j+=encodeURIComponent(w.substring(M))),j!==void 0?j:w}function pe(w){for(var C=void 0,j=0;j<w.length;j++){var M=w.charCodeAt(j);M===35||M===63?(C===void 0&&(C=w.substr(0,j)),C+=vt[M]):C!==void 0&&(C+=w[j])}return C!==void 0?C:w}function je(w){var C;return w.authority&&w.path.length>1&&w.scheme==="file"?C="//"+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?C=w.path[1].toLowerCase()+w.path.substr(2):C=w.path,ce&&(C=C.replace(/\//g,"\\")),C}function Ze(w,C){var j=C?pe:_e,M="",W=w.scheme,V=w.authority,$=w.path,Xe=w.query,Ye=w.fragment;if(W&&(M+=W,M+=":"),(V||W==="file")&&(M+=ee,M+=ee),V){var ne=V.indexOf("@");if(ne!==-1){var De=V.substr(0,ne);V=V.substr(ne+1),ne=De.indexOf(":"),ne===-1?M+=j(De,!1):(M+=j(De.substr(0,ne),!1),M+=":",M+=j(De.substr(ne+1),!1)),M+="@"}V=V.toLowerCase(),ne=V.indexOf(":"),ne===-1?M+=j(V,!1):(M+=j(V.substr(0,ne),!1),M+=V.substr(ne))}if($){if($.length>=3&&$.charCodeAt(0)===47&&$.charCodeAt(2)===58){var ue=$.charCodeAt(1);ue>=65&&ue<=90&&($="/"+String.fromCharCode(ue+32)+":"+$.substr(3))}else if($.length>=2&&$.charCodeAt(1)===58){var ue=$.charCodeAt(0);ue>=65&&ue<=90&&($=String.fromCharCode(ue+32)+":"+$.substr(2))}M+=j($,!0)}return Xe&&(M+="?",M+=j(Xe,!1)),Ye&&(M+="#",M+=C?Ye:_e(Ye,!1)),M}}).call(this,Ie("Q2Ig"))}}]);