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.
educoder/public/react/dist/static/js/222.a8f87805.chunk.js

1 line
103 KiB

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