~ K A L I ~
UNAME : Linux web64.extendcp.co.uk 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64SERVER IP : 10.0.187.64 -________-
CLIENT IP : 216.73.216.230 MINI SHELL D ZAB '
Current File : //usr/share/maxscale/gui/js/npm.monaco-editor~a4cc8719.734791aa.js |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["npm.monaco-editor~a4cc8719"],{"0184":function(t,e,n){"use strict";n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return B}));var r=n("308f"),s=n("a666"),i=n("3742"),o=n("879b"),a=n("3d70"),c=n("a758");class u{constructor(t){if(t.autoClosingPairs?this._autoClosingPairs=t.autoClosingPairs.map(t=>new a["c"](t)):t.brackets?this._autoClosingPairs=t.brackets.map(t=>new a["c"]({open:t[0],close:t[1]})):this._autoClosingPairs=[],t.colorizedBracketPairs?this._colorizedBracketPairs=l(t.colorizedBracketPairs.map(t=>[t[0],t[1]])):t.brackets?this._colorizedBracketPairs=l(t.brackets.map(t=>[t[0],t[1]]).filter(t=>!("<"===t[0]&&">"===t[1]))):this._colorizedBracketPairs=[],t.__electricCharacterSupport&&t.__electricCharacterSupport.docComment){const e=t.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new a["c"]({open:e.open,close:e.close||""}))}this._autoCloseBefore="string"===typeof t.autoCloseBefore?t.autoCloseBefore:u.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=t.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(){return this._autoCloseBefore}getSurroundingPairs(){return this._surroundingPairs}getColorizedBrackets(){return this._colorizedBracketPairs}}function l(t){return t.filter(([t,e])=>""!==t&&""!==e)}u.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t";var h=n("e8e3"),d=n("83fe");class g{constructor(t){this._richEditBrackets=t}getElectricCharacters(){const t=[];if(this._richEditBrackets)for(const e of this._richEditBrackets.brackets)for(const n of e.close){const e=n.charAt(n.length-1);t.push(e)}return Object(h["g"])(t)}onElectricCharacter(t,e,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const r=e.findTokenIndexAtOffset(n-1);if(Object(c["b"])(e.getStandardTokenType(r)))return null;const s=this._richEditBrackets.reversedRegex,i=e.getLineContent().substring(0,n-1)+t,o=d["a"].findPrevBracketInRange(s,1,i,0,i.length);if(!o)return null;const a=i.substring(o.startColumn-1,o.endColumn-1).toLowerCase(),u=this._richEditBrackets.textIsOpenBracket[a];if(u)return null;const l=e.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null}}function f(t){return t.global&&(t.lastIndex=0),!0}class b{constructor(t){this._indentationRules=t}shouldIncrease(t){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&f(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(t))}shouldDecrease(t){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&f(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(t))}shouldIndentNextLine(t){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&f(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(t))}shouldIgnore(t){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&f(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(t))}getIndentMetadata(t){let e=0;return this.shouldIncrease(t)&&(e+=1),this.shouldDecrease(t)&&(e+=2),this.shouldIndentNextLine(t)&&(e+=4),this.shouldIgnore(t)&&(e+=8),e}}var p=n("fdcc");class m{constructor(t){t=t||{},t.brackets=t.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],t.brackets.forEach(t=>{const e=m._createOpenBracketRegExp(t[0]),n=m._createCloseBracketRegExp(t[1]);e&&n&&this._brackets.push({open:t[0],openRegExp:e,close:t[1],closeRegExp:n})}),this._regExpRules=t.onEnterRules||[]}onEnter(t,e,n,r){if(t>=3)for(let s=0,i=this._regExpRules.length;s<i;s++){const t=this._regExpRules[s],i=[{reg:t.beforeText,text:n},{reg:t.afterText,text:r},{reg:t.previousLineText,text:e}].every(t=>!t.reg||(t.reg.lastIndex=0,t.reg.test(t.text)));if(i)return t.action}if(t>=2&&n.length>0&&r.length>0)for(let s=0,i=this._brackets.length;s<i;s++){const t=this._brackets[s];if(t.openRegExp.test(n)&&t.closeRegExp.test(r))return{indentAction:a["b"].IndentOutdent}}if(t>=2&&n.length>0)for(let s=0,i=this._brackets.length;s<i;s++){const t=this._brackets[s];if(t.openRegExp.test(n))return{indentAction:a["b"].Indent}}return null}static _createOpenBracketRegExp(t){let e=i["t"](t);return/\B/.test(e.charAt(0))||(e="\\b"+e),e+="\\s*$",m._safeRegExp(e)}static _createCloseBracketRegExp(t){let e=i["t"](t);return/\B/.test(e.charAt(e.length-1))||(e+="\\b"),e="^\\s*"+e,m._safeRegExp(e)}static _safeRegExp(t){try{return new RegExp(t)}catch(e){return Object(p["g"])(e),null}}}var _=n("0a0f"),C=n("fbba"),k=n("0867"),y=n("f5f3"),I=function(t,e,n,r){var s,i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,n,o):s(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o},x=function(t,e){return function(n,r){e(n,r,t)}};class L{constructor(t){this.languageId=t}affects(t){return!this.languageId||this.languageId===t}}const v=Object(_["c"])("languageConfigurationService");let S=class extends s["a"]{constructor(t,e){super(),this.configurationService=t,this.languageService=e,this.onDidChangeEmitter=this._register(new r["b"]),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(R));this._register(this.configurationService.onDidChangeConfiguration(t=>{const e=t.change.keys.some(t=>n.has(t)),r=t.change.overrides.filter(([t,e])=>e.some(t=>n.has(t))).map(([t])=>t);if(e)this.configurations.clear(),this.onDidChangeEmitter.fire(new L(void 0));else for(const n of r)this.languageService.isRegisteredLanguageId(n)&&(this.configurations.delete(n),this.onDidChangeEmitter.fire(new L(n)))})),this._register(B.onDidChange(t=>{this.configurations.delete(t.languageId),this.onDidChangeEmitter.fire(new L(t.languageId))}))}getLanguageConfiguration(t){let e=this.configurations.get(t);return e||(e=w(t,this.configurationService,this.languageService),this.configurations.set(t,e)),e}};function w(t,e,n){let r=B.getLanguageConfiguration(t);if(!r){if(!n.isRegisteredLanguageId(t))throw new Error(`Language id "${t}" is not configured nor known`);r=new D(t,{})}const s=P(r.languageId,e),i=N([r.underlyingConfig,s]),o=new D(r.languageId,i);return o}S=I([x(0,C["a"]),x(1,k["a"])],S);const R={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function P(t,e){const n=e.getValue(R.brackets,{overrideIdentifier:t}),r=e.getValue(R.colorizedBracketPairs,{overrideIdentifier:t});return{brackets:E(n),colorizedBracketPairs:E(r)}}function E(t){if(Array.isArray(t))return t.map(t=>{if(Array.isArray(t)&&2===t.length)return[t[0],t[1]]}).filter(t=>!!t)}class O{constructor(t){this.languageId=t}}class T{constructor(){this._entries=new Map,this._onDidChange=new r["b"],this.onDidChange=this._onDidChange.event}register(t,e,n=0){let r=this._entries.get(t);r||(r=new A(t),this._entries.set(t,r));const i=r.register(e,n);return this._onDidChange.fire(new O(t)),Object(s["j"])(()=>{i.dispose(),this._onDidChange.fire(new O(t))})}getLanguageConfiguration(t){const e=this._entries.get(t);return(null===e||void 0===e?void 0:e.getResolvedConfiguration())||null}getComments(t){const e=this.getLanguageConfiguration(t);return e&&e.comments||null}getIndentRulesSupport(t){const e=this.getLanguageConfiguration(t);return e&&e.indentRulesSupport||null}getPrecedingValidLine(t,e,n){const r=t.getLanguageIdAtPosition(e,0);if(e>1){let s,i=-1;for(s=e-1;s>=1;s--){if(t.getLanguageIdAtPosition(s,0)!==r)return i;const e=t.getLineContent(s);if(!n.shouldIgnore(e)&&!/^\s+$/.test(e)&&""!==e)return s;i=s}}return-1}getInheritIndentForLine(t,e,n,r=!0){if(t<4)return null;const s=this.getIndentRulesSupport(e.getLanguageId());if(!s)return null;if(n<=1)return{indentation:"",action:null};const o=this.getPrecedingValidLine(e,n,s);if(o<0)return null;if(o<1)return{indentation:"",action:null};const c=e.getLineContent(o);if(s.shouldIncrease(c)||s.shouldIndentNextLine(c))return{indentation:i["x"](c),action:a["b"].Indent,line:o};if(s.shouldDecrease(c))return{indentation:i["x"](c),action:null,line:o};{if(1===o)return{indentation:i["x"](e.getLineContent(o)),action:null,line:o};const t=o-1,n=s.getIndentMetadata(e.getLineContent(t));if(!(3&n)&&4&n){let n=0;for(let r=t-1;r>0;r--)if(!s.shouldIndentNextLine(e.getLineContent(r))){n=r;break}return{indentation:i["x"](e.getLineContent(n+1)),action:null,line:n+1}}if(r)return{indentation:i["x"](e.getLineContent(o)),action:null,line:o};for(let r=o;r>0;r--){const t=e.getLineContent(r);if(s.shouldIncrease(t))return{indentation:i["x"](t),action:a["b"].Indent,line:r};if(s.shouldIndentNextLine(t)){let t=0;for(let n=r-1;n>0;n--)if(!s.shouldIndentNextLine(e.getLineContent(r))){t=n;break}return{indentation:i["x"](e.getLineContent(t+1)),action:null,line:t+1}}if(s.shouldDecrease(t))return{indentation:i["x"](t),action:null,line:r}}return{indentation:i["x"](e.getLineContent(1)),action:null,line:1}}}getGoodIndentForLine(t,e,n,r,s){if(t<4)return null;const o=this.getLanguageConfiguration(n);if(!o)return null;const c=this.getIndentRulesSupport(n);if(!c)return null;const u=this.getInheritIndentForLine(t,e,r),l=e.getLineContent(r);if(u){const n=u.line;if(void 0!==n){const r=o.onEnter(t,"",e.getLineContent(n),"");if(r){let t=i["x"](e.getLineContent(n));return r.removeText&&(t=t.substring(0,t.length-r.removeText)),r.indentAction===a["b"].Indent||r.indentAction===a["b"].IndentOutdent?t=s.shiftIndent(t):r.indentAction===a["b"].Outdent&&(t=s.unshiftIndent(t)),c.shouldDecrease(l)&&(t=s.unshiftIndent(t)),r.appendText&&(t+=r.appendText),i["x"](t)}}return c.shouldDecrease(l)?u.action===a["b"].Indent?u.indentation:s.unshiftIndent(u.indentation):u.action===a["b"].Indent?s.shiftIndent(u.indentation):u.indentation}return null}getIndentForEnter(t,e,n,r){if(t<4)return null;e.forceTokenization(n.startLineNumber);const s=e.getLineTokens(n.startLineNumber),o=Object(c["a"])(s,n.startColumn-1),u=o.getLineContent();let l,h,d=!1;if(o.firstCharOffset>0&&s.getLanguageId(0)!==o.languageId?(d=!0,l=u.substr(0,n.startColumn-1-o.firstCharOffset)):l=s.getLineContent().substring(0,n.startColumn-1),n.isEmpty())h=u.substr(n.startColumn-1-o.firstCharOffset);else{const t=this.getScopedLineTokens(e,n.endLineNumber,n.endColumn);h=t.getLineContent().substr(n.endColumn-1-o.firstCharOffset)}const g=this.getIndentRulesSupport(o.languageId);if(!g)return null;const f=l,b=i["x"](l),p={getLineTokens:t=>e.getLineTokens(t),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(t,n)=>e.getLanguageIdAtPosition(t,n),getLineContent:t=>t===n.startLineNumber?f:e.getLineContent(t)},m=i["x"](s.getLineContent()),_=this.getInheritIndentForLine(t,p,n.startLineNumber+1);if(!_){const t=d?m:b;return{beforeEnter:t,afterEnter:t}}let C=d?m:_.indentation;return _.action===a["b"].Indent&&(C=r.shiftIndent(C)),g.shouldDecrease(h)&&(C=r.unshiftIndent(C)),{beforeEnter:d?m:b,afterEnter:C}}getIndentActionForType(t,e,n,r,s){if(t<4)return null;const i=this.getScopedLineTokens(e,n.startLineNumber,n.startColumn);if(i.firstCharOffset)return null;const o=this.getIndentRulesSupport(i.languageId);if(!o)return null;const c=i.getLineContent(),u=c.substr(0,n.startColumn-1-i.firstCharOffset);let l;if(n.isEmpty())l=c.substr(n.startColumn-1-i.firstCharOffset);else{const t=this.getScopedLineTokens(e,n.endLineNumber,n.endColumn);l=t.getLineContent().substr(n.endColumn-1-i.firstCharOffset)}if(!o.shouldDecrease(u+l)&&o.shouldDecrease(u+r+l)){const r=this.getInheritIndentForLine(t,e,n.startLineNumber,!1);if(!r)return null;let i=r.indentation;return r.action!==a["b"].Indent&&(i=s.unshiftIndent(i)),i}return null}getIndentMetadata(t,e){const n=this.getIndentRulesSupport(t.getLanguageId());return n?e<1||e>t.getLineCount()?null:n.getIndentMetadata(t.getLineContent(e)):null}getEnterAction(t,e,n){const r=this.getScopedLineTokens(e,n.startLineNumber,n.startColumn),s=this.getLanguageConfiguration(r.languageId);if(!s)return null;const i=r.getLineContent(),o=i.substr(0,n.startColumn-1-r.firstCharOffset);let c;if(n.isEmpty())c=i.substr(n.startColumn-1-r.firstCharOffset);else{const t=this.getScopedLineTokens(e,n.endLineNumber,n.endColumn);c=t.getLineContent().substr(n.endColumn-1-r.firstCharOffset)}let u="";if(n.startLineNumber>1&&0===r.firstCharOffset){const t=this.getScopedLineTokens(e,n.startLineNumber-1);t.languageId===r.languageId&&(u=t.getLineContent())}const l=s.onEnter(t,u,o,c);if(!l)return null;const h=l.indentAction;let d=l.appendText;const g=l.removeText||0;d?h===a["b"].Indent&&(d="\t"+d):d=h===a["b"].Indent||h===a["b"].IndentOutdent?"\t":"";let f=this.getIndentationAtPosition(e,n.startLineNumber,n.startColumn);return g&&(f=f.substring(0,f.length-g)),{indentAction:h,appendText:d,removeText:g,indentation:f}}getIndentationAtPosition(t,e,n){const r=t.getLineContent(e);let s=i["x"](r);return s.length>n-1&&(s=s.substring(0,n-1)),s}getScopedLineTokens(t,e,n){t.forceTokenization(e);const r=t.getLineTokens(e),s="undefined"===typeof n?t.getLineMaxColumn(e)-1:n-1;return Object(c["a"])(r,s)}}const B=new T;class A{constructor(t){this.languageId=t,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(t,e){const n=new M(t,e,++this._order);return this._entries.push(n),this._resolved=null,Object(s["j"])(()=>{for(let t=0;t<this._entries.length;t++)if(this._entries[t]===n){this._entries.splice(t,1),this._resolved=null;break}})}getResolvedConfiguration(){if(!this._resolved){const t=this._resolve();t&&(this._resolved=new D(this.languageId,t))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(M.cmp),N(this._entries.map(t=>t.configuration)))}}function N(t){let e={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const n of t)e={comments:n.comments||e.comments,brackets:n.brackets||e.brackets,wordPattern:n.wordPattern||e.wordPattern,indentationRules:n.indentationRules||e.indentationRules,onEnterRules:n.onEnterRules||e.onEnterRules,autoClosingPairs:n.autoClosingPairs||e.autoClosingPairs,surroundingPairs:n.surroundingPairs||e.surroundingPairs,autoCloseBefore:n.autoCloseBefore||e.autoCloseBefore,folding:n.folding||e.folding,colorizedBracketPairs:n.colorizedBracketPairs||e.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||e.__electricCharacterSupport};return e}class M{constructor(t,e,n){this.configuration=t,this.priority=e,this.order=n}static cmp(t,e){return t.priority===e.priority?t.order-e.order:t.priority-e.priority}}class D{constructor(t,e){this.languageId=t,this.underlyingConfig=e,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new m(this.underlyingConfig):null,this.comments=D._handleComments(this.underlyingConfig),this.characterPair=new u(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||o["a"],this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new b(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{}}getWordDefinition(){return Object(o["c"])(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new d["b"](this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new g(this.brackets)),this._electricCharacter}onEnter(t,e,n,r){return this._onEnterSupport?this._onEnterSupport.onEnter(t,e,n,r):null}getAutoClosingPairs(){return new a["a"](this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(){return this.characterPair.getAutoCloseBeforeSet()}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(t){const e=t.comments;if(!e)return null;const n={};if(e.lineComment&&(n.lineCommentToken=e.lineComment),e.blockComment){const[t,r]=e.blockComment;n.blockCommentStartToken=t,n.blockCommentEndToken=r}return n}}Object(y["b"])(v,S)},"0867":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("0a0f");const s=Object(r["c"])("languageService")},"259d":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("308f"),s=n("a666"),i=n("3352"),o=n("9768"),a=n("32b8");function c(t,e,n,r,s){if(Array.isArray(t)){let i=0;for(const o of t){const t=c(o,e,n,r,s);if(10===t)return t;t>i&&(i=t)}return i}if("string"===typeof t)return r?"*"===t?5:t===n?10:0:0;if(t){const{language:i,pattern:c,scheme:u,hasAccessToAllModels:l,notebookType:h}=t;if(!r&&!l)return 0;let d=0;if(u)if(u===e.scheme)d=10;else{if("*"!==u)return 0;d=5}if(i)if(i===n)d=10;else{if("*"!==i)return 0;d=Math.max(d,5)}if(h)if(h===s)d=10;else{if("*"!==h)return 0;d=Math.max(d,5)}if(c){let t;if(t="string"===typeof c?c:Object.assign(Object.assign({},c),{base:Object(a["d"])(c.base)}),t!==e.fsPath&&!Object(o["a"])(t,e.fsPath))return 0;d=10}return d}return 0}function u(t){return"string"!==typeof t&&(Array.isArray(t)?t.every(u):!!t.exclusive)}class l{constructor(t){this._notebookTypeResolver=t,this._clock=0,this._entries=[],this._onDidChange=new r["b"],this.onDidChange=this._onDidChange.event}register(t,e){let n={selector:t,provider:e,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(s["j"])(()=>{if(n){const t=this._entries.indexOf(n);t>=0&&(this._entries.splice(t,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}})}has(t){return this.all(t).length>0}all(t){if(!t)return[];this._updateScores(t);const e=[];for(let n of this._entries)n._score>0&&e.push(n.provider);return e}ordered(t){const e=[];return this._orderedForEach(t,t=>e.push(t.provider)),e}orderedGroups(t){const e=[];let n,r;return this._orderedForEach(t,t=>{n&&r===t._score?n.push(t.provider):(r=t._score,n=[t.provider],e.push(n))}),e}_orderedForEach(t,e){if(t){this._updateScores(t);for(const t of this._entries)t._score>0&&e(t)}}_updateScores(t){var e;const n=null===(e=this._notebookTypeResolver)||void 0===e?void 0:e.call(this,t.uri),r={uri:t.uri.toString(),language:t.getLanguageId(),notebookType:n};if(!this._lastCandidate||this._lastCandidate.language!==r.language||this._lastCandidate.uri!==r.uri||this._lastCandidate.notebookType!==r.notebookType){this._lastCandidate=r;for(let e of this._entries)if(e._score=c(e.selector,t.uri,t.getLanguageId(),Object(i["i"])(t),n),u(e.selector)&&e._score>0){for(let t of this._entries)t._score=0;e._score=1e3;break}this._entries.sort(l._compareByScoreAndTime)}}static _compareByScoreAndTime(t,e){return t._score<e._score?1:t._score>e._score?-1:t._time<e._time?1:t._time>e._time?-1:0}}},"2e5a":function(t,e,n){"use strict";n.d(e,"k",(function(){return f})),n.d(e,"j",(function(){return b})),n.d(e,"m",(function(){return p})),n.d(e,"d",(function(){return m})),n.d(e,"b",(function(){return r})),n.d(e,"g",(function(){return s})),n.d(e,"h",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"n",(function(){return _})),n.d(e,"i",(function(){return a})),n.d(e,"e",(function(){return C})),n.d(e,"a",(function(){return c})),n.d(e,"f",(function(){return u})),n.d(e,"l",(function(){return k}));var r,s,i,o,a,c,u,l=n("6d8e"),h=n("6a89"),d=n("4a62"),g=n("561a");class f{static getLanguageId(t){return(255&t)>>>0}static getTokenType(t){return(768&t)>>>8}static getFontStyle(t){return(15360&t)>>>10}static getForeground(t){return(8372224&t)>>>14}static getBackground(t){return(4286578688&t)>>>23}static getClassNameFromMetadata(t){const e=this.getForeground(t);let n="mtk"+e;const r=this.getFontStyle(t);return 1&r&&(n+=" mtki"),2&r&&(n+=" mtkb"),4&r&&(n+=" mtku"),8&r&&(n+=" mtks"),n}static getInlineStyleFromMetadata(t,e){const n=this.getForeground(t),r=this.getFontStyle(t);let s=`color: ${e[n]};`;1&r&&(s+="font-style: italic;"),2&r&&(s+="font-weight: bold;");let i="";return 4&r&&(i+=" underline"),8&r&&(i+=" line-through"),i&&(s+=`text-decoration:${i};`),s}static getPresentationFromMetadata(t){const e=this.getForeground(t),n=this.getFontStyle(t);return{foreground:e,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}class b{constructor(t,e,n){this._tokenBrand=void 0,this.offset=t,this.type=e,this.language=n}toString(){return"("+this.offset+", "+this.type+")"}}class p{constructor(t,e){this._tokenizationResultBrand=void 0,this.tokens=t,this.endState=e}}class m{constructor(t,e){this._encodedTokenizationResultBrand=void 0,this.tokens=t,this.endState=e}}function _(t){return t&&l["a"].isUri(t.uri)&&h["a"].isIRange(t.range)&&(h["a"].isIRange(t.originSelectionRange)||h["a"].isIRange(t.targetSelectionRange))}(function(t){const e=new Map;function n(t){let n=e.get(t);return n||(console.info("No codicon found for CompletionItemKind "+t),n=g["b"].symbolProperty),n}e.set(0,g["b"].symbolMethod),e.set(1,g["b"].symbolFunction),e.set(2,g["b"].symbolConstructor),e.set(3,g["b"].symbolField),e.set(4,g["b"].symbolVariable),e.set(5,g["b"].symbolClass),e.set(6,g["b"].symbolStruct),e.set(7,g["b"].symbolInterface),e.set(8,g["b"].symbolModule),e.set(9,g["b"].symbolProperty),e.set(10,g["b"].symbolEvent),e.set(11,g["b"].symbolOperator),e.set(12,g["b"].symbolUnit),e.set(13,g["b"].symbolValue),e.set(15,g["b"].symbolEnum),e.set(14,g["b"].symbolConstant),e.set(15,g["b"].symbolEnum),e.set(16,g["b"].symbolEnumMember),e.set(17,g["b"].symbolKeyword),e.set(27,g["b"].symbolSnippet),e.set(18,g["b"].symbolText),e.set(19,g["b"].symbolColor),e.set(20,g["b"].symbolFile),e.set(21,g["b"].symbolReference),e.set(22,g["b"].symbolCustomColor),e.set(23,g["b"].symbolFolder),e.set(24,g["b"].symbolTypeParameter),e.set(25,g["b"].account),e.set(26,g["b"].issues),t.toIcon=n;const r=new Map;function s(t,e){let n=r.get(t);return"undefined"!==typeof n||e||(n=9),n}r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26),t.fromString=s})(r||(r={})),function(t){t[t["Automatic"]=0]="Automatic",t[t["Explicit"]=1]="Explicit"}(s||(s={})),function(t){t[t["Invoke"]=1]="Invoke",t[t["TriggerCharacter"]=2]="TriggerCharacter",t[t["ContentChange"]=3]="ContentChange"}(i||(i={})),function(t){t[t["Text"]=0]="Text",t[t["Read"]=1]="Read",t[t["Write"]=2]="Write"}(o||(o={})),function(t){const e=new Map;function n(t){let n=e.get(t);return n||(console.info("No codicon found for SymbolKind "+t),n=g["b"].symbolProperty),n}e.set(0,g["b"].symbolFile),e.set(1,g["b"].symbolModule),e.set(2,g["b"].symbolNamespace),e.set(3,g["b"].symbolPackage),e.set(4,g["b"].symbolClass),e.set(5,g["b"].symbolMethod),e.set(6,g["b"].symbolProperty),e.set(7,g["b"].symbolField),e.set(8,g["b"].symbolConstructor),e.set(9,g["b"].symbolEnum),e.set(10,g["b"].symbolInterface),e.set(11,g["b"].symbolFunction),e.set(12,g["b"].symbolVariable),e.set(13,g["b"].symbolConstant),e.set(14,g["b"].symbolString),e.set(15,g["b"].symbolNumber),e.set(16,g["b"].symbolBoolean),e.set(17,g["b"].symbolArray),e.set(18,g["b"].symbolObject),e.set(19,g["b"].symbolKey),e.set(20,g["b"].symbolNull),e.set(21,g["b"].symbolEnumMember),e.set(22,g["b"].symbolStruct),e.set(23,g["b"].symbolEvent),e.set(24,g["b"].symbolOperator),e.set(25,g["b"].symbolTypeParameter),t.toIcon=n}(a||(a={}));class C{constructor(t){this.value=t}}C.Comment=new C("comment"),C.Imports=new C("imports"),C.Region=new C("region"),function(t){function e(t){return!(!t||"object"!==typeof t)&&("string"===typeof t.id&&"string"===typeof t.title)}t.is=e}(c||(c={})),function(t){t[t["Type"]=1]="Type",t[t["Parameter"]=2]="Parameter"}(u||(u={}));const k=new d["a"]},"3d70":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i})),function(t){t[t["None"]=0]="None",t[t["Indent"]=1]="Indent",t[t["IndentOutdent"]=2]="IndentOutdent",t[t["Outdent"]=3]="Outdent"}(r||(r={}));class s{constructor(t){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=t.open,this.close=t.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(t.notIn))for(let e=0,n=t.notIn.length;e<n;e++){const n=t.notIn[e];switch(n){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1;break}}}isOK(t){switch(t){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(t,e){if(0===t.getTokenCount())return!0;const n=t.findTokenIndexAtOffset(e-2),r=t.getStandardTokenType(n);return this.isOK(r)}_findNeutralCharacterInRange(t,e){for(let n=t;n<=e;n++){const t=String.fromCharCode(n);if(!this.open.includes(t)&&!this.close.includes(t))return t}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class i{constructor(t){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const e of t)o(this.autoClosingPairsOpenByStart,e.open.charAt(0),e),o(this.autoClosingPairsOpenByEnd,e.open.charAt(e.open.length-1),e),o(this.autoClosingPairsCloseByStart,e.close.charAt(0),e),o(this.autoClosingPairsCloseByEnd,e.close.charAt(e.close.length-1),e),1===e.close.length&&1===e.open.length&&o(this.autoClosingPairsCloseSingleChar,e.close,e)}}function o(t,e,n){t.has(e)?t.get(e).push(n):t.set(e,[n])}},"51db":function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return l}));var r=n("3742"),s=n("ce17"),i=n("2e5a"),o=n("ec02"),a=function(t,e,n,r){function s(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function o(t){try{c(r.next(t))}catch(e){i(e)}}function a(t){try{c(r["throw"](t))}catch(e){i(e)}}function c(t){t.done?n(t.value):s(t.value).then(o,a)}c((r=r.apply(t,e||[])).next())}))};const c={getInitialState:()=>o["a"],tokenizeEncoded:(t,e,n)=>Object(o["c"])(0,n)};function u(t,e,n){return a(this,void 0,void 0,(function*(){if(!n)return h(e,t.languageIdCodec,c);const r=yield i["l"].getOrCreate(n);return h(e,t.languageIdCodec,r||c)}))}function l(t,e,n,r,s,i,o){let a="<div>",c=r,u=0,l=!0;for(let h=0,d=e.getCount();h<d;h++){const d=e.getEndOffset(h);if(d<=r)continue;let g="";for(;c<d&&c<s;c++){const e=t.charCodeAt(c);switch(e){case 9:{let t=i-(c+u)%i;u+=t-1;while(t>0)o&&l?(g+=" ",l=!1):(g+=" ",l=!0),t--;break}case 60:g+="<",l=!1;break;case 62:g+=">",l=!1;break;case 38:g+="&",l=!1;break;case 0:g+="�",l=!1;break;case 65279:case 8232:case 8233:case 133:g+="�",l=!1;break;case 13:g+="​",l=!1;break;case 32:o&&l?(g+=" ",l=!1):(g+=" ",l=!0);break;default:g+=String.fromCharCode(e),l=!1}}if(a+=`<span style="${e.getInlineStyle(h,n)}">${g}</span>`,d>s||c>=s)break}return a+="</div>",a}function h(t,e,n){let i='<div class="monaco-tokenized-source">';const o=r["R"](t);let a=n.getInitialState();for(let c=0,u=o.length;c<u;c++){const t=o[c];c>0&&(i+="<br/>");const u=n.tokenizeEncoded(t,!0,a);s["a"].convertToEndOffset(u.tokens,t.length);const l=new s["a"](u.tokens,t,e),h=l.inflate();let d=0;for(let e=0,n=h.getCount();e<n;e++){const n=h.getClassName(e),s=h.getEndOffset(e);i+=`<span class="${n}">${r["s"](t.substring(d,s))}</span>`,d=s}a=u.endState}return i+="</div>",i}},"83fe":function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return C}));var r=n("3742"),s=n("7ab3"),i=n("6a89");class o{constructor(t,e,n,r,s,i){this._richEditBracketBrand=void 0,this.languageId=t,this.index=e,this.open=n,this.close=r,this.forwardRegex=s,this.reversedRegex=i,this._openSet=o._toSet(this.open),this._closeSet=o._toSet(this.close)}isOpen(t){return this._openSet.has(t)}isClose(t){return this._closeSet.has(t)}static _toSet(t){const e=new Set;for(const n of t)e.add(n);return e}}function a(t){const e=t.length;t=t.map(t=>[t[0].toLowerCase(),t[1].toLowerCase()]);const n=[];for(let o=0;o<e;o++)n[o]=o;const r=(t,e)=>{const[n,r]=t,[s,i]=e;return n===s||n===i||r===s||r===i},s=(t,r)=>{const s=Math.min(t,r),i=Math.max(t,r);for(let o=0;o<e;o++)n[o]===i&&(n[o]=s)};for(let o=0;o<e;o++){const i=t[o];for(let a=o+1;a<e;a++){const e=t[a];r(i,e)&&s(n[o],n[a])}}const i=[];for(let o=0;o<e;o++){const r=[],s=[];for(let i=0;i<e;i++)if(n[i]===o){const[e,n]=t[i];r.push(e),s.push(n)}r.length>0&&i.push({open:r,close:s})}return i}class c{constructor(t,e){this._richEditBracketsBrand=void 0;const n=a(e);this.brackets=n.map((e,r)=>new o(t,r,e.open,e.close,d(e.open,e.close,n,r),g(e.open,e.close,n,r))),this.forwardRegex=f(this.brackets),this.reversedRegex=b(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const r of this.brackets){for(const t of r.open)this.textIsBracket[t]=r,this.textIsOpenBracket[t]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,t.length);for(const t of r.close)this.textIsBracket[t]=r,this.textIsOpenBracket[t]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,t.length)}}}function u(t,e,n,r){for(let s=0,i=e.length;s<i;s++){if(s===n)continue;const i=e[s];for(const e of i.open)e.indexOf(t)>=0&&r.push(e);for(const e of i.close)e.indexOf(t)>=0&&r.push(e)}}function l(t,e){return t.length-e.length}function h(t){if(t.length<=1)return t;const e=[],n=new Set;for(const r of t)n.has(r)||(e.push(r),n.add(r));return e}function d(t,e,n,r){let s=[];s=s.concat(t),s=s.concat(e);for(let i=0,o=s.length;i<o;i++)u(s[i],n,r,s);return s=h(s),s.sort(l),s.reverse(),m(s)}function g(t,e,n,r){let s=[];s=s.concat(t),s=s.concat(e);for(let i=0,o=s.length;i<o;i++)u(s[i],n,r,s);return s=h(s),s.sort(l),s.reverse(),m(s.map(_))}function f(t){let e=[];for(const n of t){for(const t of n.open)e.push(t);for(const t of n.close)e.push(t)}return e=h(e),m(e)}function b(t){let e=[];for(const n of t){for(const t of n.open)e.push(t);for(const t of n.close)e.push(t)}return e=h(e),m(e.map(_))}function p(t){const e=/^[\w ]+$/.test(t);return t=r["t"](t),e?`\\b${t}\\b`:t}function m(t){const e=`(${t.map(p).join(")|(")})`;return r["q"](e,!0)}const _=function(){function t(t){if(s["d"]){const e=new Uint16Array(t.length);let n=0;for(let r=t.length-1;r>=0;r--)e[n++]=t.charCodeAt(r);return s["c"]().decode(e)}{const e=[];let n=0;for(let r=t.length-1;r>=0;r--)e[n++]=t.charAt(r);return e.join("")}}let e=null,n=null;return function(r){return e!==r&&(e=r,n=t(e)),n}}();class C{static _findPrevBracketInText(t,e,n,r){const s=n.match(t);if(!s)return null;const o=n.length-(s.index||0),a=s[0].length,c=r+o;return new i["a"](e,c-a+1,e,c+1)}static findPrevBracketInRange(t,e,n,r,s){const i=_(n),o=i.substring(n.length-s,n.length-r);return this._findPrevBracketInText(t,e,o,r)}static findNextBracketInText(t,e,n,r){const s=n.match(t);if(!s)return null;const o=s.index||0,a=s[0].length;if(0===a)return null;const c=r+o;return new i["a"](e,c+1,e,c+1+a)}static findNextBracketInRange(t,e,n,r,s){const i=n.substring(r,s);return this.findNextBracketInText(t,e,i,r)}}},"97bb":function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n("3170");class s{constructor(t,e,n){const r=new Uint8Array(t*e);for(let s=0,i=t*e;s<i;s++)r[s]=n;this._data=r,this.rows=t,this.cols=e}get(t,e){return this._data[t*this.cols+e]}set(t,e,n){this._data[t*this.cols+e]=n}}class i{constructor(t){let e=0,n=0;for(let s=0,i=t.length;s<i;s++){const[r,i,o]=t[s];i>e&&(e=i),r>n&&(n=r),o>n&&(n=o)}e++,n++;const r=new s(n,e,0);for(let s=0,i=t.length;s<i;s++){const[e,n,i]=t[s];r.set(e,n,i)}this._states=r,this._maxCharCode=e}nextState(t,e){return e<0||e>=this._maxCharCode?0:this._states.get(t,e)}}let o=null;function a(){return null===o&&(o=new i([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),o}let c=null;function u(){if(null===c){c=new r["a"](0);const t=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let n=0;n<t.length;n++)c.set(t.charCodeAt(n),1);const e=".,;";for(let n=0;n<e.length;n++)c.set(e.charCodeAt(n),2)}return c}class l{static _createLink(t,e,n,r,s){let i=s-1;do{const n=e.charCodeAt(i),r=t.get(n);if(2!==r)break;i--}while(i>r);if(r>0){const t=e.charCodeAt(r-1),n=e.charCodeAt(i);(40===t&&41===n||91===t&&93===n||123===t&&125===n)&&i--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:i+2},url:e.substring(r,i+1)}}static computeLinks(t,e=a()){const n=u(),r=[];for(let s=1,i=t.getLineCount();s<=i;s++){const i=t.getLineContent(s),o=i.length;let a=0,c=0,u=0,h=1,d=!1,g=!1,f=!1,b=!1;while(a<o){let t=!1;const o=i.charCodeAt(a);if(13===h){let e;switch(o){case 40:d=!0,e=0;break;case 41:e=d?0:1;break;case 91:f=!0,g=!0,e=0;break;case 93:f=!1,e=g?0:1;break;case 123:b=!0,e=0;break;case 125:e=b?0:1;break;case 39:e=34===u||96===u?0:1;break;case 34:e=39===u||96===u?0:1;break;case 96:e=39===u||34===u?0:1;break;case 42:e=42===u?1:0;break;case 124:e=124===u?1:0;break;case 32:e=f?0:1;break;default:e=n.get(o)}1===e&&(r.push(l._createLink(n,i,s,c,a)),t=!0)}else if(12===h){let e;91===o?(g=!0,e=0):e=n.get(o),1===e?t=!0:h=13}else h=e.nextState(h,o),0===h&&(t=!0);t&&(h=1,d=!1,g=!1,b=!1,c=a+1,u=o),a++}13===h&&r.push(l._createLink(n,i,s,c,o))}return r}}function h(t){return t&&"function"===typeof t.getLineCount&&"function"===typeof t.getLineContent?l.computeLinks(t):[]}},a758:function(t,e,n){"use strict";function r(t,e){const n=t.getCount(),r=t.findTokenIndexAtOffset(e),i=t.getLanguageId(r);let o=r;while(o+1<n&&t.getLanguageId(o+1)===i)o++;let a=r;while(a>0&&t.getLanguageId(a-1)===i)a--;return new s(t,i,a,o+1,t.getStartOffset(a),t.getEndOffset(o))}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));class s{constructor(t,e,n,r,s,i){this._scopedLineTokensBrand=void 0,this._actual=t,this.languageId=e,this._firstTokenIndex=n,this._lastTokenIndex=r,this.firstCharOffset=s,this._lastCharOffset=i}getLineContent(){const t=this._actual.getLineContent();return t.substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(t){const e=this._actual.getLineContent();return e.substring(0,this.firstCharOffset+t)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(t){return this._actual.findTokenIndexAtOffset(t+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(t){return this._actual.getStandardTokenType(t+this._firstTokenIndex)}}function i(t){return 0!==(3&t)}},cb41:function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return d}));var r=n("dff7"),s=n("308f"),i=n("0184"),o=n("89cd"),a=n("b9b4"),c=n("0910");const u={ModesRegistry:"editor.modesRegistry"};class l{constructor(){this._onDidChangeLanguages=new s["b"],this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(t){return this._languages.push(t),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let e=0,n=this._languages.length;e<n;e++)if(this._languages[e]===t)return void this._languages.splice(e,1)}}}getLanguages(){return this._languages}}const h=new l;o["a"].add(u.ModesRegistry,h);const d="plaintext",g=".txt";h.registerLanguage({id:d,extensions:[g],aliases:[r["a"]("plainText.alias","Plain Text"),"text"],mimetypes:[a["a"].text]}),i["b"].register(d,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0),o["a"].as(c["a"].Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},ec02:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o}));var r=n("2e5a");const s=new class{clone(){return this}equals(t){return this===t}};function i(t,e){return new r["m"]([new r["j"](0,"",t)],e)}function o(t,e){const n=new Uint32Array(2);return n[0]=0,n[1]=(16384|t<<0|2<<23)>>>0,new r["d"](n,null===e?s:e)}},ef5d:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));class r{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(t,e,n,r,s){if(t&&e){const n=this.doNavigateValueSet(e,s);if(n)return{range:t,value:n}}if(n&&r){const t=this.doNavigateValueSet(r,s);if(t)return{range:n,value:t}}return null}doNavigateValueSet(t,e){const n=this.numberReplace(t,e);return null!==n?n:this.textReplace(t,e)}numberReplace(t,e){const n=Math.pow(10,t.length-(t.lastIndexOf(".")+1));let r=Number(t),s=parseFloat(t);return isNaN(r)||isNaN(s)||r!==s?null:0!==r||e?(r=Math.floor(r*n),r+=e?n:-n,String(r/n)):null}textReplace(t,e){return this.valueSetsReplace(this._defaultValueSet,t,e)}valueSetsReplace(t,e,n){let r=null;for(let s=0,i=t.length;null===r&&s<i;s++)r=this.valueSetReplace(t[s],e,n);return r}valueSetReplace(t,e,n){let r=t.indexOf(e);return r>=0?(r+=n?1:-1,r<0?r=t.length-1:r%=t.length,t[r]):null}}r.INSTANCE=new r},f323:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return b}));var r=n("ceb8");class s{constructor(t,e,n,r,s){this._parsedThemeRuleBrand=void 0,this.token=t,this.index=e,this.fontStyle=n,this.foreground=r,this.background=s}}function i(t){if(!t||!Array.isArray(t))return[];const e=[];let n=0;for(let r=0,i=t.length;r<i;r++){const i=t[r];let o=-1;if("string"===typeof i.fontStyle){o=0;const t=i.fontStyle.split(" ");for(let e=0,n=t.length;e<n;e++){const n=t[e];switch(n){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break;case"strikethrough":o|=8;break}}}let a=null;"string"===typeof i.foreground&&(a=i.foreground);let c=null;"string"===typeof i.background&&(c=i.background),e[n++]=new s(i.token||"",r,o,a,c)}return e}function o(t,e){t.sort((t,e)=>{const n=d(t.token,e.token);return 0!==n?n:t.index-e.index});let n=0,r="000000",s="ffffff";while(t.length>=1&&""===t[0].token){const e=t.shift();-1!==e.fontStyle&&(n=e.fontStyle),null!==e.foreground&&(r=e.foreground),null!==e.background&&(s=e.background)}const i=new c;for(let c of e)i.getId(c);const o=i.getId(r),a=i.getId(s),l=new g(n,o,a),h=new f(l);for(let c=0,u=t.length;c<u;c++){const e=t[c];h.insert(e.token,e.fontStyle,i.getId(e.foreground),i.getId(e.background))}return new u(i,h)}const a=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class c{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(t){if(null===t)return 0;const e=t.match(a);if(!e)throw new Error("Illegal value for token color: "+t);t=e[1].toUpperCase();let n=this._color2id.get(t);return n||(n=++this._lastColorId,this._color2id.set(t,n),this._id2color[n]=r["a"].fromHex("#"+t),n)}getColorMap(){return this._id2color.slice(0)}}class u{constructor(t,e){this._colorMap=t,this._root=e,this._cache=new Map}static createFromRawTokenTheme(t,e){return this.createFromParsedTokenTheme(i(t),e)}static createFromParsedTokenTheme(t,e){return o(t,e)}getColorMap(){return this._colorMap.getColorMap()}_match(t){return this._root.match(t)}match(t,e){let n=this._cache.get(e);if("undefined"===typeof n){const t=this._match(e),r=h(e);n=(t.metadata|r<<8)>>>0,this._cache.set(e,n)}return(n|t<<0)>>>0}}const l=/\b(comment|string|regex|regexp)\b/;function h(t){const e=t.match(l);if(!e)return 0;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}function d(t,e){return t<e?-1:t>e?1:0}class g{constructor(t,e,n){this._themeTrieElementRuleBrand=void 0,this._fontStyle=t,this._foreground=e,this._background=n,this.metadata=(this._fontStyle<<10|this._foreground<<14|this._background<<23)>>>0}clone(){return new g(this._fontStyle,this._foreground,this._background)}acceptOverwrite(t,e,n){-1!==t&&(this._fontStyle=t),0!==e&&(this._foreground=e),0!==n&&(this._background=n),this.metadata=(this._fontStyle<<10|this._foreground<<14|this._background<<23)>>>0}}class f{constructor(t){this._themeTrieElementBrand=void 0,this._mainRule=t,this._children=new Map}match(t){if(""===t)return this._mainRule;const e=t.indexOf(".");let n,r;-1===e?(n=t,r=""):(n=t.substring(0,e),r=t.substring(e+1));const s=this._children.get(n);return"undefined"!==typeof s?s.match(r):this._mainRule}insert(t,e,n,r){if(""===t)return void this._mainRule.acceptOverwrite(e,n,r);const s=t.indexOf(".");let i,o;-1===s?(i=t,o=""):(i=t.substring(0,s),o=t.substring(s+1));let a=this._children.get(i);"undefined"===typeof a&&(a=new f(this._mainRule.clone()),this._children.set(i,a)),a.insert(o,e,n,r)}}function b(t){const e=[];for(let n=1,r=t.length;n<r;n++){const r=t[n];e[n]=`.mtk${n} { color: ${r}; }`}return e.push(".mtki { font-style: italic; }"),e.push(".mtkb { font-weight: bold; }"),e.push(".mtku { text-decoration: underline; text-underline-position: under; }"),e.push(".mtks { text-decoration: line-through; }"),e.push(".mtks.mtku { text-decoration: underline line-through; text-underline-position: under; }"),e.join("\n")}}}]);
Coded by KALI :v Greetz to DR HARD ../ kali.zbi@hotmail.com