=a&&t>=i&&this.ElementsAreEqual(s,t);)s--,t--;if(a>s||i>t){let l;return i<=t?(y.Assert(a===s+1,"originalStart should only be one more than originalEnd"),l=[new f.DiffChange(a,0,i,t-i+1)]):a<=s?(y.Assert(i===t+1,"modifiedStart should only be one more than modifiedEnd"),l=[new f.DiffChange(a,s-a+1,i,0)]):(y.Assert(a===s+1,"originalStart should only be one more than originalEnd"),y.Assert(i===t+1,"modifiedStart should only be one more than modifiedEnd"),l=[]),l}const h=[0],m=[0],u=this.ComputeRecursionPoint(a,s,i,t,h,m,n),d=h[0],r=m[0];if(u!==null)return u;if(!n[0]){const l=this.ComputeDiffRecursive(a,d,i,r,n);let o=[];return n[0]?o=[new f.DiffChange(d+1,s-(d+1)+1,r+1,t-(r+1)+1)]:o=this.ComputeDiffRecursive(d+1,s,r+1,t,n),this.ConcatenateChanges(l,o)}return[new f.DiffChange(a,s-a+1,i,t-i+1)]}WALKTRACE(a,s,i,t,n,h,m,u,d,r,l,o,g,c,b,C,S,D){let I=null,T=null,N=new w,A=s,P=i,M=g[0]-C[0]-t,R=-1073741824,F=this.m_forwardHistory.length-1;do{const O=M+a;O===A||O=0&&(d=this.m_forwardHistory[F],a=d[0],A=1,P=d.length-1)}while(--F>=-1);if(I=N.getReverseChanges(),D[0]){let O=g[0]+1,B=C[0]+1;if(I!==null&&I.length>0){const H=I[I.length-1];O=Math.max(O,H.getOriginalEnd()),B=Math.max(B,H.getModifiedEnd())}T=[new f.DiffChange(O,o-O+1,B,b-B+1)]}else{N=new w,A=h,P=m,M=g[0]-C[0]-u,R=1073741824,F=S?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const O=M+n;O===A||O
=r[O+1]?(l=r[O+1]-1,c=l-M-u,l>R&&N.MarkNextChange(),R=l+1,N.AddOriginalElement(l+1,c+1),M=O+1-n):(l=r[O-1],c=l-M-u,l>R&&N.MarkNextChange(),R=l,N.AddModifiedElement(l+1,c+1),M=O-1-n),F>=0&&(r=this.m_reverseHistory[F],n=r[0],A=1,P=r.length-1)}while(--F>=-1);T=N.getChanges()}return this.ConcatenateChanges(I,T)}ComputeRecursionPoint(a,s,i,t,n,h,m){let u=0,d=0,r=0,l=0,o=0,g=0;a--,i--,n[0]=0,h[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const c=s-a+(t-i),b=c+1,C=new Int32Array(b),S=new Int32Array(b),D=t-i,I=s-a,T=a-i,N=s-t,P=(I-D)%2===0;C[D]=a,S[I]=s,m[0]=!1;for(let M=1;M<=c/2+1;M++){let R=0,F=0;r=this.ClipDiagonalBound(D-M,M,D,b),l=this.ClipDiagonalBound(D+M,M,D,b);for(let B=r;B<=l;B+=2){B===r||BR+F&&(R=u,F=d),!P&&Math.abs(B-I)<=M-1&&u>=S[B])return n[0]=u,h[0]=d,H<=S[B]&&1447>0&&M<=1448?this.WALKTRACE(D,r,l,T,I,o,g,N,C,S,u,s,n,d,t,h,P,m):null}const O=(R-a+(F-i)-M)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(R,O))return m[0]=!0,n[0]=R,h[0]=F,O>0&&1447>0&&M<=1448?this.WALKTRACE(D,r,l,T,I,o,g,N,C,S,u,s,n,d,t,h,P,m):(a++,i++,[new f.DiffChange(a,s-a+1,i,t-i+1)]);o=this.ClipDiagonalBound(I-M,M,I,b),g=this.ClipDiagonalBound(I+M,M,I,b);for(let B=o;B<=g;B+=2){B===o||B=S[B+1]?u=S[B+1]-1:u=S[B-1],d=u-(B-I)-N;const H=u;for(;u>a&&d>i&&this.ElementsAreEqual(u,d);)u--,d--;if(S[B]=u,P&&Math.abs(B-D)<=M&&u<=C[B])return n[0]=u,h[0]=d,H>=C[B]&&1447>0&&M<=1448?this.WALKTRACE(D,r,l,T,I,o,g,N,C,S,u,s,n,d,t,h,P,m):null}if(M<=1447){let B=new Int32Array(l-r+2);B[0]=D-r+1,p.Copy2(C,r,B,1,l-r+1),this.m_forwardHistory.push(B),B=new Int32Array(g-o+2),B[0]=I-o+1,p.Copy2(S,o,B,1,g-o+1),this.m_reverseHistory.push(B)}}return this.WALKTRACE(D,r,l,T,I,o,g,N,C,S,u,s,n,d,t,h,P,m)}PrettifyChanges(a){for(let s=0;s0,m=i.modifiedLength>0;for(;i.originalStart+i.originalLength=0;s--){const i=a[s];let t=0,n=0;if(s>0){const l=a[s-1];t=l.originalStart+l.originalLength,n=l.modifiedStart+l.modifiedLength}const h=i.originalLength>0,m=i.modifiedLength>0;let u=0,d=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let l=1;;l++){const o=i.originalStart-l,g=i.modifiedStart-l;if(od&&(d=b,u=l)}i.originalStart-=u,i.modifiedStart-=u;const r=[null];if(s>0&&this.ChangesOverlap(a[s-1],a[s],r)){a[s-1]=r[0],a.splice(s,1),s++;continue}}if(this._hasStrings)for(let s=1,i=a.length;s0&&g>u&&(u=g,d=l,r=o)}return u>0?[d,r]:null}_contiguousSequenceScore(a,s,i){let t=0;for(let n=0;n=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[a])}_OriginalRegionIsBoundary(a,s){if(this._OriginalIsBoundary(a)||this._OriginalIsBoundary(a-1))return!0;if(s>0){const i=a+s;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(a){return a<=0||a>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[a])}_ModifiedRegionIsBoundary(a,s){if(this._ModifiedIsBoundary(a)||this._ModifiedIsBoundary(a-1))return!0;if(s>0){const i=a+s;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(a,s,i,t){const n=this._OriginalRegionIsBoundary(a,s)?1:0,h=this._ModifiedRegionIsBoundary(i,t)?1:0;return n+h}ConcatenateChanges(a,s){const i=[];if(a.length===0||s.length===0)return s.length>0?s:a;if(this.ChangesOverlap(a[a.length-1],s[0],i)){const t=new Array(a.length+s.length-1);return p.Copy(a,0,t,0,a.length-1),t[a.length-1]=i[0],p.Copy(s,1,t,a.length,s.length-1),t}else{const t=new Array(a.length+s.length);return p.Copy(a,0,t,0,a.length),p.Copy(s,0,t,a.length,s.length),t}}ChangesOverlap(a,s,i){if(y.Assert(a.originalStart<=s.originalStart,"Left change is not less than or equal to right change"),y.Assert(a.modifiedStart<=s.modifiedStart,"Left change is not less than or equal to right change"),a.originalStart+a.originalLength>=s.originalStart||a.modifiedStart+a.modifiedLength>=s.modifiedStart){const t=a.originalStart;let n=a.originalLength;const h=a.modifiedStart;let m=a.modifiedLength;return a.originalStart+a.originalLength>=s.originalStart&&(n=s.originalStart+s.originalLength-a.originalStart),a.modifiedStart+a.modifiedLength>=s.modifiedStart&&(m=s.modifiedStart+s.modifiedLength-a.modifiedStart),i[0]=new f.DiffChange(t,n,h,m),!0}else return i[0]=null,!1}ClipDiagonalBound(a,s,i,t){if(a>=0&&a0?p[0].toUpperCase()+p.substr(1):y[0][0].toUpperCase()!==y[0][0]&&p.length>0?p[0].toLowerCase()+p.substr(1):p}else return p}function E(y,p,w){return y[0].indexOf(w)!==-1&&p.indexOf(w)!==-1&&y[0].split(w).length===p.split(w).length}function L(y,p,w){const v=p.split(w),_=y[0].split(w);let a="";return v.forEach((s,i)=>{a+=k([_[i]],s)+w}),a.slice(0,-1)}}),define(ie[107],ne([1,0,11]),function(J,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var k;(function(E){E[E.Ignore=0]="Ignore",E[E.Info=1]="Info",E[E.Warning=2]="Warning",E[E.Error=3]="Error"})(k||(k={})),function(E){const L="error",y="warning",p="warn",w="info",v="ignore";function _(s){return s?f.equalsIgnoreCase(L,s)?E.Error:f.equalsIgnoreCase(y,s)||f.equalsIgnoreCase(p,s)?E.Warning:f.equalsIgnoreCase(w,s)?E.Info:E.Ignore:E.Ignore}E.fromValue=_;function a(s){switch(s){case E.Error:return L;case E.Warning:return y;case E.Info:return w;default:return v}}E.toString=a}(k||(k={})),e.default=k}),define(ie[289],ne([1,0]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MicrotaskDelay=void 0,e.MicrotaskDelay=Symbol("MicrotaskDelay")}),define(ie[215],ne([1,0,11]),function(J,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TernarySearchTree=e.UriIterator=e.PathIterator=e.ConfigKeysIterator=e.StringIterator=void 0;class k{constructor(){this._value="",this._pos=0}reset(_){return this._value=_,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos=0;a--,this._valueLen--){const s=this._value.charCodeAt(a);if(!(s===47||this._splitOnBackslash&&s===92))break}return this.next()}hasNext(){return this._to!1,a=()=>!1){return new w(new y(_,a))}static forStrings(){return new w(new k)}static forConfigKeys(){return new w(new E)}constructor(_){this._iter=_}clear(){this._root=void 0}set(_,a){const s=this._iter.reset(_);let i;this._root||(this._root=new p,this._root.segment=s.value());const t=[];for(i=this._root;;){const h=s.cmp(i.segment);if(h>0)i.left||(i.left=new p,i.left.segment=s.value()),t.push([-1,i]),i=i.left;else if(h<0)i.right||(i.right=new p,i.right.segment=s.value()),t.push([1,i]),i=i.right;else if(s.hasNext())s.next(),i.mid||(i.mid=new p,i.mid.segment=s.value()),t.push([0,i]),i=i.mid;else break}const n=i.value;i.value=a,i.key=_;for(let h=t.length-1;h>=0;h--){const m=t[h][1];m.updateHeight();const u=m.balanceFactor();if(u<-1||u>1){const d=t[h][0],r=t[h+1][0];if(d===1&&r===1)t[h][1]=m.rotateLeft();else if(d===-1&&r===-1)t[h][1]=m.rotateRight();else if(d===1&&r===-1)m.right=t[h+1][1]=t[h+1][1].rotateRight(),t[h][1]=m.rotateLeft();else if(d===-1&&r===1)m.left=t[h+1][1]=t[h+1][1].rotateLeft(),t[h][1]=m.rotateRight();else throw new Error;if(h>0)switch(t[h-1][0]){case-1:t[h-1][1].left=t[h][1];break;case 1:t[h-1][1].right=t[h][1];break;case 0:t[h-1][1].mid=t[h][1];break}else this._root=t[0][1]}}return n}get(_){var a;return(a=this._getNode(_))===null||a===void 0?void 0:a.value}_getNode(_){const a=this._iter.reset(_);let s=this._root;for(;s;){const i=a.cmp(s.segment);if(i>0)s=s.left;else if(i<0)s=s.right;else if(a.hasNext())a.next(),s=s.mid;else break}return s}has(_){const a=this._getNode(_);return!(a?.value===void 0&&a?.mid===void 0)}delete(_){return this._delete(_,!1)}deleteSuperstr(_){return this._delete(_,!0)}_delete(_,a){var s;const i=this._iter.reset(_),t=[];let n=this._root;for(;n;){const h=i.cmp(n.segment);if(h>0)t.push([-1,n]),n=n.left;else if(h<0)t.push([1,n]),n=n.right;else if(i.hasNext())i.next(),t.push([0,n]),n=n.mid;else break}if(n){if(a?(n.left=void 0,n.mid=void 0,n.right=void 0,n.height=1):(n.key=void 0,n.value=void 0),!n.mid&&!n.value)if(n.left&&n.right){const h=this._min(n.right);if(h.key){const{key:m,value:u,segment:d}=h;this._delete(h.key,!1),n.key=m,n.value=u,n.segment=d}}else{const h=(s=n.left)!==null&&s!==void 0?s:n.right;if(t.length>0){const[m,u]=t[t.length-1];switch(m){case-1:u.left=h;break;case 0:u.mid=h;break;case 1:u.right=h;break}}else this._root=h}for(let h=t.length-1;h>=0;h--){const m=t[h][1];m.updateHeight();const u=m.balanceFactor();if(u>1?(m.right.balanceFactor()>=0||(m.right=m.right.rotateRight()),t[h][1]=m.rotateLeft()):u<-1&&(m.left.balanceFactor()<=0||(m.left=m.left.rotateLeft()),t[h][1]=m.rotateRight()),h>0)switch(t[h-1][0]){case-1:t[h-1][1].left=t[h][1];break;case 1:t[h-1][1].right=t[h][1];break;case 0:t[h-1][1].mid=t[h][1];break}else this._root=t[0][1]}}}_min(_){for(;_.left;)_=_.left;return _}findSubstr(_){const a=this._iter.reset(_);let s=this._root,i;for(;s;){const t=a.cmp(s.segment);if(t>0)s=s.left;else if(t<0)s=s.right;else if(a.hasNext())a.next(),i=s.value||i,s=s.mid;else break}return s&&s.value||i}findSuperstr(_){return this._findSuperstrOrElement(_,!1)}_findSuperstrOrElement(_,a){const s=this._iter.reset(_);let i=this._root;for(;i;){const t=s.cmp(i.segment);if(t>0)i=i.left;else if(t<0)i=i.right;else if(s.hasNext())s.next(),i=i.mid;else return i.mid?this._entries(i.mid):a?i.value:void 0}}forEach(_){for(const[a,s]of this)_(s,a)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(_){const a=[];return this._dfsEntries(_,a),a[Symbol.iterator]()}_dfsEntries(_,a){_&&(_.left&&this._dfsEntries(_.left,a),_.value&&a.push([_.key,_.value]),_.mid&&this._dfsEntries(_.mid,a),_.right&&this._dfsEntries(_.right,a))}}e.TernarySearchTree=w}),define(ie[427],ne([1,0]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TfIdfCalculator=void 0,e.normalizeTfIdfScores=E;function f(L){var y;const p=new Map;for(const w of L)p.set(w,((y=p.get(w))!==null&&y!==void 0?y:0)+1);return p}class k{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(y,p){const w=this.computeEmbedding(y),v=new Map,_=[];for(const[a,s]of this.documents){if(p.isCancellationRequested)return[];for(const i of s.chunks){const t=this.computeSimilarityScore(i,w,v);t>0&&_.push({key:a,score:t})}}return _}static termFrequencies(y){return f(k.splitTerms(y))}static*splitTerms(y){const p=w=>w.toLowerCase();for(const[w]of y.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield p(w);const v=w.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(v.length>1)for(const _ of v)_.length>2&&/\p{Letter}{3,}/gu.test(_)&&(yield p(_))}}updateDocuments(y){var p;for(const{key:w}of y)this.deleteDocument(w);for(const w of y){const v=[];for(const _ of w.textChunks){const a=k.termFrequencies(_);for(const s of a.keys())this.chunkOccurrences.set(s,((p=this.chunkOccurrences.get(s))!==null&&p!==void 0?p:0)+1);v.push({text:_,tf:a})}this.chunkCount+=v.length,this.documents.set(w.key,{chunks:v})}return this}deleteDocument(y){const p=this.documents.get(y);if(p){this.documents.delete(y),this.chunkCount-=p.chunks.length;for(const w of p.chunks)for(const v of w.tf.keys()){const _=this.chunkOccurrences.get(v);if(typeof _=="number"){const a=_-1;a<=0?this.chunkOccurrences.delete(v):this.chunkOccurrences.set(v,a)}}}}computeSimilarityScore(y,p,w){let v=0;for(const[_,a]of Object.entries(p)){const s=y.tf.get(_);if(!s)continue;let i=w.get(_);typeof i!="number"&&(i=this.computeIdf(_),w.set(_,i));const t=s*i;v+=t*a}return v}computeEmbedding(y){const p=k.termFrequencies(y);return this.computeTfidf(p)}computeIdf(y){var p;const w=(p=this.chunkOccurrences.get(y))!==null&&p!==void 0?p:0;return w>0?Math.log((this.chunkCount+1)/w):0}computeTfidf(y){const p=Object.create(null);for(const[w,v]of y){const _=this.computeIdf(w);_>0&&(p[w]=v*_)}return p}}e.TfIdfCalculator=k;function E(L){var y,p;const w=L.slice(0);w.sort((_,a)=>a.score-_.score);const v=(p=(y=w[0])===null||y===void 0?void 0:y.score)!==null&&p!==void 0?p:0;if(v>0)for(const _ of w)_.score/=v;return w}}),define(ie[21],ne([1,0]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isString=f,e.isObject=k,e.isTypedArray=E,e.isNumber=L,e.isIterable=y,e.isBoolean=p,e.isUndefined=w,e.isDefined=v,e.isUndefinedOrNull=_,e.assertType=a,e.assertIsDefined=s,e.isFunction=i,e.validateConstraints=t,e.validateConstraint=n;function f(h){return typeof h=="string"}function k(h){return typeof h=="object"&&h!==null&&!Array.isArray(h)&&!(h instanceof RegExp)&&!(h instanceof Date)}function E(h){const m=Object.getPrototypeOf(Uint8Array);return typeof h=="object"&&h instanceof m}function L(h){return typeof h=="number"&&!isNaN(h)}function y(h){return!!h&&typeof h[Symbol.iterator]=="function"}function p(h){return h===!0||h===!1}function w(h){return typeof h>"u"}function v(h){return!_(h)}function _(h){return w(h)||h===null}function a(h,m){if(!h)throw new Error(m?`Unexpected type, expected '${m}'`:"Unexpected type")}function s(h){if(_(h))throw new Error("Assertion Failed: argument is undefined or null");return h}function i(h){return typeof h=="function"}function t(h,m){const u=Math.min(h.length,m.length);for(let d=0;d{t[n]=h&&typeof h=="object"?k(h):h}),t}function E(i){if(!i||typeof i!="object")return i;const t=[i];for(;t.length>0;){const n=t.shift();Object.freeze(n);for(const h in n)if(L.call(n,h)){const m=n[h];typeof m=="object"&&!Object.isFrozen(m)&&!(0,f.isTypedArray)(m)&&t.push(m)}}return i}const L=Object.prototype.hasOwnProperty;function y(i,t){return p(i,t,new Set)}function p(i,t,n){if((0,f.isUndefinedOrNull)(i))return i;const h=t(i);if(typeof h<"u")return h;if(Array.isArray(i)){const m=[];for(const u of i)m.push(p(u,t,n));return m}if((0,f.isObject)(i)){if(n.has(i))throw new Error("Cannot clone recursive data-structure");n.add(i);const m={};for(const u in i)L.call(i,u)&&(m[u]=p(i[u],t,n));return n.delete(i),m}return i}function w(i,t,n=!0){return(0,f.isObject)(i)?((0,f.isObject)(t)&&Object.keys(t).forEach(h=>{h in i?n&&((0,f.isObject)(i[h])&&(0,f.isObject)(t[h])?w(i[h],t[h],n):i[h]=t[h]):i[h]=t[h]}),i):t}function v(i,t){if(i===t)return!0;if(i==null||t===null||t===void 0||typeof i!=typeof t||typeof i!="object"||Array.isArray(i)!==Array.isArray(t))return!1;let n,h;if(Array.isArray(i)){if(i.length!==t.length)return!1;for(n=0;nfunction(){const u=Array.prototype.slice.call(arguments,0);return t(m,u)},h={};for(const m of i)h[m]=n(m);return h}}),define(ie[31],ne([1,0,26]),function(J,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ThemeIcon=e.ThemeColor=void 0;var k;(function(L){function y(p){return p&&typeof p=="object"&&typeof p.id=="string"}L.isThemeColor=y})(k||(e.ThemeColor=k={}));var E;(function(L){L.iconNameSegment="[A-Za-z0-9]+",L.iconNameExpression="[A-Za-z0-9-]+",L.iconModifierExpression="~[A-Za-z]+",L.iconNameCharacter="[A-Za-z0-9~-]";const y=new RegExp(`^(${L.iconNameExpression})(${L.iconModifierExpression})?$`);function p(m){const u=y.exec(m.id);if(!u)return p(f.Codicon.error);const[,d,r]=u,l=["codicon","codicon-"+d];return r&&l.push("codicon-modifier-"+r.substring(1)),l}L.asClassNameArray=p;function w(m){return p(m).join(" ")}L.asClassName=w;function v(m){return"."+p(m).join(".")}L.asCSSSelector=v;function _(m){return m&&typeof m=="object"&&typeof m.id=="string"&&(typeof m.color>"u"||k.isThemeColor(m.color))}L.isThemeIcon=_;const a=new RegExp(`^\\$\\((${L.iconNameExpression}(?:${L.iconModifierExpression})?)\\)$`);function s(m){const u=a.exec(m);if(!u)return;const[,d]=u;return{id:d}}L.fromString=s;function i(m){return{id:m}}L.fromId=i;function t(m,u){let d=m.id;const r=d.lastIndexOf("~");return r!==-1&&(d=d.substring(0,r)),u&&(d=`${d}~${u}`),{id:d}}L.modify=t;function n(m){const u=m.id.lastIndexOf("~");if(u!==-1)return m.id.substring(u+1)}L.getModifier=n;function h(m,u){var d,r;return m.id===u.id&&((d=m.color)===null||d===void 0?void 0:d.id)===((r=u.color)===null||r===void 0?void 0:r.id)}L.isEqual=h})(E||(e.ThemeIcon=E={}))}),define(ie[136],ne([1,0,76,11,31]),function(J,e,f,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.escapeIcons=w,e.markdownEscapeEscapedIcons=_,e.stripIcons=s,e.getCodiconAriaLabel=i,e.parseLabelWithIcons=n,e.matchesFuzzyIconAware=h;const L="$(",y=new RegExp(`\\$\\(${E.ThemeIcon.iconNameExpression}(?:${E.ThemeIcon.iconModifierExpression})?\\)`,"g"),p=new RegExp(`(\\\\)?${y.source}`,"g");function w(m){return m.replace(p,(u,d)=>d?u:`\\${u}`)}const v=new RegExp(`\\\\${y.source}`,"g");function _(m){return m.replace(v,u=>`\\${u}`)}const a=new RegExp(`(\\s)?(\\\\)?${y.source}(\\s)?`,"g");function s(m){return m.indexOf(L)===-1?m:m.replace(a,(u,d,r,l)=>r?u:d||l||"")}function i(m){return m?m.replace(/\$\((.*?)\)/g,(u,d)=>` ${d} `).trim():""}const t=new RegExp(`\\$\\(${E.ThemeIcon.iconNameCharacter}+\\)`,"g");function n(m){t.lastIndex=0;let u="";const d=[];let r=0;for(;;){const l=t.lastIndex,o=t.exec(m),g=m.substring(l,o?.index);if(g.length>0){u+=g;for(let c=0;c255?255:E|0}function k(E){return E<0?0:E>4294967295?4294967295:E|0}}),define(ie[185],ne([1,0]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateUuid=void 0,e.generateUuid=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let f;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?f=crypto.getRandomValues.bind(crypto):f=function(L){for(let y=0;ya,asFile:()=>{},value:typeof a=="string"?a:void 0}}function y(a,s,i){const t={id:(0,E.generateUuid)(),name:a,uri:s,data:i};return{asString:async()=>"",asFile:()=>t,value:void 0}}class p{constructor(){this._entries=new Map}get size(){let s=0;for(const i of this._entries)s++;return s}has(s){return this._entries.has(this.toKey(s))}matches(s){const i=[...this._entries.keys()];return k.Iterable.some(this,([t,n])=>n.asFile())&&i.push("files"),_(w(s),i)}get(s){var i;return(i=this._entries.get(this.toKey(s)))===null||i===void 0?void 0:i[0]}append(s,i){const t=this._entries.get(s);t?t.push(i):this._entries.set(this.toKey(s),[i])}replace(s,i){this._entries.set(this.toKey(s),[i])}delete(s){this._entries.delete(this.toKey(s))}*[Symbol.iterator](){for(const[s,i]of this._entries)for(const t of i)yield[s,t]}toKey(s){return w(s)}}e.VSDataTransfer=p;function w(a){return a.toLowerCase()}function v(a,s){return _(w(a),s.map(w))}function _(a,s){if(a==="*/*")return s.length>0;if(s.includes(a))return!0;const i=a.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!i)return!1;const[t,n,h]=i;return h==="*"?s.some(m=>m.startsWith(n+"/")):!1}e.UriList=Object.freeze({create:a=>(0,f.distinct)(a.map(s=>s.toString())).join(`\r
+`),split:a=>a.split(`\r
+`),parse:a=>e.UriList.split(a).filter(s=>!s.startsWith("#"))})}),define(ie[290],ne([10]),{}),define(ie[429],ne([10]),{}),define(ie[430],ne([10]),{}),define(ie[431],ne([10]),{}),define(ie[432],ne([10]),{}),define(ie[187],ne([1,0,431,432]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})}),define(ie[433],ne([10]),{}),define(ie[434],ne([10]),{}),define(ie[291],ne([10]),{}),define(ie[292],ne([10]),{}),define(ie[435],ne([10]),{}),define(ie[436],ne([10]),{}),define(ie[437],ne([10]),{}),define(ie[438],ne([10]),{}),define(ie[293],ne([10]),{}),define(ie[439],ne([10]),{}),define(ie[216],ne([1,0,439]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME=void 0,e.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME="monaco-mouse-cursor-text"}),define(ie[440],ne([10]),{}),define(ie[441],ne([10]),{}),define(ie[442],ne([10]),{}),define(ie[443],ne([10]),{}),define(ie[444],ne([10]),{}),define(ie[445],ne([10]),{}),define(ie[446],ne([10]),{}),define(ie[447],ne([10]),{}),define(ie[448],ne([10]),{}),define(ie[449],ne([10]),{}),define(ie[450],ne([10]),{}),define(ie[451],ne([10]),{}),define(ie[452],ne([10]),{}),define(ie[453],ne([10]),{}),define(ie[454],ne([10]),{}),define(ie[455],ne([10]),{}),define(ie[456],ne([10]),{}),define(ie[457],ne([10]),{}),define(ie[458],ne([10]),{}),define(ie[459],ne([10]),{}),define(ie[460],ne([10]),{}),define(ie[461],ne([10]),{}),define(ie[462],ne([10]),{}),define(ie[463],ne([10]),{}),define(ie[464],ne([10]),{}),define(ie[465],ne([10]),{}),define(ie[466],ne([10]),{}),define(ie[467],ne([10]),{}),define(ie[468],ne([10]),{}),define(ie[469],ne([10]),{}),define(ie[470],ne([10]),{}),define(ie[471],ne([10]),{}),define(ie[472],ne([10]),{}),define(ie[473],ne([10]),{}),define(ie[474],ne([10]),{}),define(ie[475],ne([10]),{}),define(ie[476],ne([10]),{}),define(ie[477],ne([10]),{}),define(ie[217],ne([10]),{}),define(ie[478],ne([10]),{}),define(ie[479],ne([10]),{}),define(ie[480],ne([10]),{}),define(ie[481],ne([10]),{}),define(ie[482],ne([10]),{}),define(ie[483],ne([10]),{}),define(ie[484],ne([10]),{}),define(ie[485],ne([10]),{}),define(ie[486],ne([10]),{}),define(ie[487],ne([10]),{}),define(ie[488],ne([10]),{}),define(ie[489],ne([10]),{}),define(ie[490],ne([10]),{}),define(ie[491],ne([10]),{}),define(ie[492],ne([10]),{}),define(ie[493],ne([10]),{}),define(ie[494],ne([10]),{}),define(ie[495],ne([10]),{}),define(ie[496],ne([10]),{}),define(ie[497],ne([10]),{}),define(ie[498],ne([10]),{}),define(ie[499],ne([10]),{}),define(ie[500],ne([10]),{}),define(ie[501],ne([10]),{}),define(ie[502],ne([10]),{}),define(ie[503],ne([10]),{}),define(ie[504],ne([10]),{}),define(ie[505],ne([10]),{}),define(ie[506],ne([10]),{}),define(ie[507],ne([10]),{}),define(ie[508],ne([10]),{}),define(ie[509],ne([10]),{}),define(ie[510],ne([10]),{}),define(ie[294],ne([10]),{}),define(ie[511],ne([10]),{}),define(ie[512],ne([10]),{}),define(ie[218],ne([10]),{}),define(ie[513],ne([10]),{}),define(ie[71],ne([1,0,40]),function(J,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyFontInfo=k;function k(E,L){E instanceof f.FastDomNode?(E.setFontFamily(L.getMassagedFontFamily()),E.setFontWeight(L.fontWeight),E.setFontSize(L.fontSize),E.setFontFeatureSettings(L.fontFeatureSettings),E.setFontVariationSettings(L.fontVariationSettings),E.setLineHeight(L.lineHeight),E.setLetterSpacing(L.letterSpacing)):(E.style.fontFamily=L.getMassagedFontFamily(),E.style.fontWeight=L.fontWeight,E.style.fontSize=L.fontSize+"px",E.style.fontFeatureSettings=L.fontFeatureSettings,E.style.fontVariationSettings=L.fontVariationSettings,E.style.lineHeight=L.lineHeight+"px",E.style.letterSpacing=L.letterSpacing+"px")}}),define(ie[514],ne([1,0,71]),function(J,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CharWidthRequest=void 0,e.readCharWidths=L;class k{constructor(p,w){this.chr=p,this.type=w,this.width=0}fulfill(p){this.width=p}}e.CharWidthRequest=k;class E{constructor(p,w){this._bareFontInfo=p,this._requests=w,this._container=null,this._testElements=null}read(p){this._createDomElements(),p.document.body.appendChild(this._container),this._readFromDomElements(),p.document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const p=document.createElement("div");p.style.position="absolute",p.style.top="-50000px",p.style.width="50000px";const w=document.createElement("div");(0,f.applyFontInfo)(w,this._bareFontInfo),p.appendChild(w);const v=document.createElement("div");(0,f.applyFontInfo)(v,this._bareFontInfo),v.style.fontWeight="bold",p.appendChild(v);const _=document.createElement("div");(0,f.applyFontInfo)(_,this._bareFontInfo),_.style.fontStyle="italic",p.appendChild(_);const a=[];for(const s of this._requests){let i;s.type===0&&(i=w),s.type===2&&(i=v),s.type===1&&(i=_),i.appendChild(document.createElement("br"));const t=document.createElement("span");E._render(t,s),i.appendChild(t),a.push(t)}this._container=p,this._testElements=a}static _render(p,w){if(w.chr===" "){let v="\xA0";for(let _=0;_<8;_++)v+=v;p.innerText=v}else{let v=w.chr;for(let _=0;_<8;_++)v+=v;p.textContent=v}}_readFromDomElements(){for(let p=0,w=this._requests.length;pf._read(w,s),a=(s,i)=>f._write(w,s,i);this.migrate(v,_,a)}static _read(w,v){if(typeof w>"u")return;const _=v.indexOf(".");if(_>=0){const a=v.substring(0,_);return this._read(w[a],v.substring(_+1))}return w[v]}static _write(w,v,_){const a=v.indexOf(".");if(a>=0){const s=v.substring(0,a);w[s]=w[s]||{},this._write(w[s],v.substring(a+1),_);return}w[v]=_}}e.EditorSettingMigration=f,f.items=[];function k(p,w){f.items.push(new f(p,w))}function E(p,w){k(p,(v,_,a)=>{if(typeof v<"u"){for(const[s,i]of w)if(v===s){a(p,i);return}}})}function L(p){f.items.forEach(w=>w.apply(p))}E("wordWrap",[[!0,"on"],[!1,"off"]]),E("lineNumbers",[[!0,"on"],[!1,"off"]]),E("cursorBlinking",[["visible","solid"]]),E("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),E("renderLineHighlight",[[!0,"line"],[!1,"none"]]),E("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),E("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),E("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),E("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),E("autoIndent",[[!1,"advanced"],[!0,"full"]]),E("matchBrackets",[[!0,"always"],[!1,"never"]]),E("renderFinalNewline",[[!0,"on"],[!1,"off"]]),E("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),E("occurrencesHighlight",[[!0,"singleFile"],[!1,"off"]]),E("wordBasedSuggestions",[[!0,"matchingDocuments"],[!1,"off"]]),k("autoClosingBrackets",(p,w,v)=>{p===!1&&(v("autoClosingBrackets","never"),typeof w("autoClosingQuotes")>"u"&&v("autoClosingQuotes","never"),typeof w("autoSurround")>"u"&&v("autoSurround","never"))}),k("renderIndentGuides",(p,w,v)=>{typeof p<"u"&&(v("renderIndentGuides",void 0),typeof w("guides.indentation")>"u"&&v("guides.indentation",!!p))}),k("highlightActiveIndentGuide",(p,w,v)=>{typeof p<"u"&&(v("highlightActiveIndentGuide",void 0),typeof w("guides.highlightActiveIndentation")>"u"&&v("guides.highlightActiveIndentation",!!p))});const y={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};k("suggest.filteredTypes",(p,w,v)=>{if(p&&typeof p=="object"){for(const _ of Object.entries(y))p[_[0]]===!1&&typeof w(`suggest.${_[1]}`)>"u"&&v(`suggest.${_[1]}`,!1);v("suggest.filteredTypes",void 0)}}),k("quickSuggestions",(p,w,v)=>{if(typeof p=="boolean"){const _=p?"on":"off";v("quickSuggestions",{comments:_,strings:_,other:_})}}),k("experimental.stickyScroll.enabled",(p,w,v)=>{typeof p=="boolean"&&(v("experimental.stickyScroll.enabled",void 0),typeof w("stickyScroll.enabled")>"u"&&v("stickyScroll.enabled",p))}),k("experimental.stickyScroll.maxLineCount",(p,w,v)=>{typeof p=="number"&&(v("experimental.stickyScroll.maxLineCount",void 0),typeof w("stickyScroll.maxLineCount")>"u"&&v("stickyScroll.maxLineCount",p))}),k("codeActionsOnSave",(p,w,v)=>{if(p&&typeof p=="object"){let _=!1;const a={};for(const s of Object.entries(p))typeof s[1]=="boolean"?(_=!0,a[s[0]]=s[1]?"explicit":"never"):a[s[0]]=s[1];_&&v("codeActionsOnSave",a)}}),k("codeActionWidget.includeNearbyQuickfixes",(p,w,v)=>{typeof p=="boolean"&&(v("codeActionWidget.includeNearbyQuickfixes",void 0),typeof w("codeActionWidget.includeNearbyQuickFixes")>"u"&&v("codeActionWidget.includeNearbyQuickFixes",p))}),k("lightbulb.enabled",(p,w,v)=>{typeof p=="boolean"&&v("lightbulb.enabled",p?void 0:"off")})}),define(ie[219],ne([1,0,7]),function(J,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TabFocus=void 0;class k{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new f.Emitter,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(L){this._tabFocus=L,this._onDidChangeTabFocus.fire(this._tabFocus)}}e.TabFocus=new k}),define(ie[137],ne([1,0]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StableEditorScrollState=void 0;class f{static capture(E){if(E.getScrollTop()===0||E.hasPendingScrollAnimation())return new f(E.getScrollTop(),E.getContentHeight(),null,0,null);let L=null,y=0;const p=E.getVisibleRanges();if(p.length>0){L=p[0].getStartPosition();const w=E.getTopForPosition(L.lineNumber,L.column);y=E.getScrollTop()-w}return new f(E.getScrollTop(),E.getContentHeight(),L,y,E.getPosition())}constructor(E,L,y,p,w){this._initialScrollTop=E,this._initialContentHeight=L,this._visiblePosition=y,this._visiblePositionScrollDelta=p,this._cursorPosition=w}restore(E){if(!(this._initialContentHeight===E.getContentHeight()&&this._initialScrollTop===E.getScrollTop())&&this._visiblePosition){const L=E.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);E.setScrollTop(L+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(E){if(this._initialContentHeight===E.getContentHeight()&&this._initialScrollTop===E.getScrollTop())return;const L=E.getPosition();if(!this._cursorPosition||!L)return;const y=E.getTopForLineNumber(L.lineNumber)-E.getTopForLineNumber(this._cursorPosition.lineNumber);E.setScrollTop(E.getScrollTop()+y)}}e.StableEditorScrollState=f}),define(ie[157],ne([1,0]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VisibleRanges=e.HorizontalPosition=e.FloatHorizontalRange=e.HorizontalRange=e.LineVisibleRanges=e.RenderingContext=e.RestrictedRenderingContext=void 0;class f{constructor(_,a){this._restrictedRenderingContextBrand=void 0,this._viewLayout=_,this.viewportData=a,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const s=this._viewLayout.getCurrentViewport();this.scrollTop=s.top,this.scrollLeft=s.left,this.viewportWidth=s.width,this.viewportHeight=s.height}getScrolledTopFromAbsoluteTop(_){return _-this.scrollTop}getVerticalOffsetForLineNumber(_,a){return this._viewLayout.getVerticalOffsetForLineNumber(_,a)}getVerticalOffsetAfterLineNumber(_,a){return this._viewLayout.getVerticalOffsetAfterLineNumber(_,a)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}e.RestrictedRenderingContext=f;class k extends f{constructor(_,a,s){super(_,a),this._renderingContextBrand=void 0,this._viewLines=s}linesVisibleRangesForRange(_,a){return this._viewLines.linesVisibleRangesForRange(_,a)}visibleRangeForPosition(_){return this._viewLines.visibleRangeForPosition(_)}}e.RenderingContext=k;class E{constructor(_,a,s,i){this.outsideRenderedLine=_,this.lineNumber=a,this.ranges=s,this.continuesOnNextLine=i}}e.LineVisibleRanges=E;class L{static from(_){const a=new Array(_.length);for(let s=0,i=_.length;s=a.left?w.width=Math.max(w.width,a.left+a.width-w.left):(y[p++]=w,w=a)}return y[p++]=w,y}static _createHorizontalRangesFromClientRects(L,y,p){if(!L||L.length===0)return null;const w=[];for(let v=0,_=L.length;v<_;v++){const a=L[v];w[v]=new f.FloatHorizontalRange(Math.max(0,(a.left-y)/p),a.width/p)}return this._mergeAdjacentRanges(w)}static readHorizontalRanges(L,y,p,w,v,_){const s=L.children.length-1;if(0>s)return null;if(y=Math.min(s,Math.max(0,y)),w=Math.min(s,Math.max(0,w)),y===w&&p===v&&p===0&&!L.children[y].firstChild){const h=L.children[y].getClientRects();return _.markDidDomLayout(),this._createHorizontalRangesFromClientRects(h,_.clientRectDeltaLeft,_.clientRectScale)}y!==w&&w>0&&v===0&&(w--,v=1073741824);let i=L.children[y].firstChild,t=L.children[w].firstChild;if((!i||!t)&&(!i&&p===0&&y>0&&(i=L.children[y-1].firstChild,p=1073741824),!t&&v===0&&w>0&&(t=L.children[w-1].firstChild,v=1073741824)),!i||!t)return null;p=Math.min(i.textContent.length,Math.max(0,p)),v=Math.min(t.textContent.length,Math.max(0,v));const n=this._readClientRects(i,p,t,v,_.endNode);return _.markDidDomLayout(),this._createHorizontalRangesFromClientRects(n,_.clientRectDeltaLeft,_.clientRectScale)}}e.RangeUtil=k}),define(ie[295],ne([1,0]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCharIndex=e.allCharCodes=void 0,e.allCharCodes=(()=>{const k=[];for(let E=32;E<=126;E++)k.push(E);return k.push(65533),k})();const f=(k,E)=>(k-=32,k<0||k>96?E<=2?(k+96)%96:95:k);e.getCharIndex=f}),define(ie[518],ne([1,0,295,184]),function(J,e,f,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MinimapCharRenderer=void 0;class E{constructor(y,p){this.scale=p,this._minimapCharRendererBrand=void 0,this.charDataNormal=E.soften(y,12/15),this.charDataLight=E.soften(y,50/60)}static soften(y,p){const w=new Uint8ClampedArray(y.length);for(let v=0,_=y.length;v<_;v++)w[v]=(0,k.toUint8)(y[v]*p);return w}renderChar(y,p,w,v,_,a,s,i,t,n,h){const m=1*this.scale,u=2*this.scale,d=h?1:u;if(p+m>y.width||w+d>y.height){console.warn("bad render request outside image data");return}const r=n?this.charDataLight:this.charDataNormal,l=(0,f.getCharIndex)(v,t),o=y.width*4,g=s.r,c=s.g,b=s.b,C=_.r-g,S=_.g-c,D=_.b-b,I=Math.max(a,i),T=y.data;let N=l*m*u,A=w*o+p*4;for(let P=0;Py.width||w+h>y.height){console.warn("bad render request outside image data");return}const m=y.width*4,u=.5*(_/255),d=a.r,r=a.g,l=a.b,o=v.r-d,g=v.g-r,c=v.b-l,b=d+o*u,C=r+g*u,S=l+c*u,D=Math.max(_,s),I=y.data;let T=w*m+p*4;for(let N=0;N{const y=new Uint8ClampedArray(L.length/2);for(let p=0;p>1]=k[L[p]]<<4|k[L[p+1]]&15;return y};e.prebakedMiniMaps={1:(0,f.createSingleCallFunction)(()=>E("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:(0,f.createSingleCallFunction)(()=>E("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))}}),define(ie[520],ne([1,0,518,295,519,184]),function(J,e,f,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MinimapCharRendererFactory=void 0;class y{static create(w,v){if(this.lastCreated&&w===this.lastCreated.scale&&v===this.lastFontFamily)return this.lastCreated;let _;return E.prebakedMiniMaps[w]?_=new f.MinimapCharRenderer(E.prebakedMiniMaps[w](),w):_=y.createFromSampleData(y.createSampleData(v).data,w),this.lastFontFamily=v,this.lastCreated=_,_}static createSampleData(w){const v=document.createElement("canvas"),_=v.getContext("2d");v.style.height="16px",v.height=16,v.width=96*10,v.style.width=96*10+"px",_.fillStyle="#ffffff",_.font=`bold 16px ${w}`,_.textBaseline="middle";let a=0;for(const s of k.allCharCodes)_.fillText(String.fromCharCode(s),a,16/2),a+=10;return _.getImageData(0,0,96*10,16)}static createFromSampleData(w,v){if(w.length!==61440)throw new Error("Unexpected source in MinimapCharRenderer");const a=y._downsample(w,v);return new f.MinimapCharRenderer(a,v)}static _downsampleChar(w,v,_,a,s){const i=1*s,t=2*s;let n=a,h=0;for(let m=0;m0){const h=255/n;for(let m=0;mthis._itemData.get(w).getId()===E.getId()))!==null&&L!==void 0?L:p[0],this._unused.delete(y),this._itemData.set(y,E),y.setData(E)}return this._used.add(y),{object:y,dispose:()=>{this._used.delete(y),this._unused.size>5?y.dispose():this._unused.add(y)}}}dispose(){for(const E of this._used)E.dispose();for(const E of this._unused)E.dispose();this._used.clear(),this._unused.clear()}}e.ObjectPool=f}),define(ie[296],ne([1,0]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.diffEditorDefaultOptions=void 0,e.diffEditorDefaultOptions={enableSplitViewResizing:!0,splitViewDefaultRatio:.5,renderSideBySide:!0,renderMarginRevertIcon:!0,renderGutterMenu:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"advanced",accessibilityVerbose:!1,experimental:{showMoves:!1,showEmptyDecorations:!0},hideUnchangedRegions:{enabled:!1,contextLineCount:3,minimumLineCount:3,revealLineCount:20},isInEmbeddedEditor:!1,onlyShowAccessibleDiffViewer:!1,renderSideBySideInlineBreakpoint:900,useInlineViewWhenSpaceIsLimited:!0}}),define(ie[158],ne([1,0,7]),function(J,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorZoom=void 0,e.EditorZoom=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new f.Emitter,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(k){k=Math.min(Math.max(-5,k),20),this._zoomLevel!==k&&(this._zoomLevel=k,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}}),define(ie[138],ne([1,0,184]),function(J,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CharacterSet=e.CharacterClassifier=void 0;class k{constructor(y){const p=(0,f.toUint8)(y);this._defaultValue=p,this._asciiMap=k._createAsciiMap(p),this._map=new Map}static _createAsciiMap(y){const p=new Uint8Array(256);return p.fill(y),p}set(y,p){const w=(0,f.toUint8)(p);y>=0&&y<256?this._asciiMap[y]=w:this._map.set(y,w)}get(y){return y>=0&&y<256?this._asciiMap[y]:this._map.get(y)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}e.CharacterClassifier=k;class E{constructor(){this._actual=new k(0)}add(y){this._actual.set(y,1)}has(y){return this._actual.get(y)===1}clear(){return this._actual.clear()}}e.CharacterSet=E}),define(ie[90],ne([1,0,11]),function(J,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorColumns=void 0;class k{static _nextVisibleColumn(L,y,p){return L===9?k.nextRenderTabStop(y,p):f.isFullWidthCharacter(L)||f.isEmojiImprecise(L)?y+2:y+1}static visibleColumnFromColumn(L,y,p){const w=Math.min(y-1,L.length),v=L.substring(0,w),_=new f.GraphemeIterator(v);let a=0;for(;!_.eol();){const s=f.getNextCodePoint(v,w,_.offset);_.nextGraphemeLength(),a=this._nextVisibleColumn(s,a,p)}return a}static columnFromVisibleColumn(L,y,p){if(y<=0)return 1;const w=L.length,v=new f.GraphemeIterator(L);let _=0,a=1;for(;!v.eol();){const s=f.getNextCodePoint(L,w,v.offset);v.nextGraphemeLength();const i=this._nextVisibleColumn(s,_,p),t=v.offset+1;if(i>=y){const n=y-_;return i-yp))return new k(y,p)}static ofLength(y){return new k(0,y)}static ofStartAndLength(y,p){return new k(y,y+p)}constructor(y,p){if(this.start=y,this.endExclusive=p,y>p)throw new f.BugIndicatingError(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(y){return new k(this.start+y,this.endExclusive+y)}deltaStart(y){return new k(this.start+y,this.endExclusive)}deltaEnd(y){return new k(this.start,this.endExclusive+y)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(y){return this.start<=y&&y=y.endExclusive}slice(y){return y.slice(this.start,this.endExclusive)}substring(y){return y.substring(this.start,this.endExclusive)}clip(y){if(this.isEmpty)throw new f.BugIndicatingError(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,y))}clipCyclic(y){if(this.isEmpty)throw new f.BugIndicatingError(`Invalid clipping range: ${this.toString()}`);return y=this.endExclusive?this.start+(y-this.start)%this.length:y}forEach(y){for(let p=this.start;py.toString()).join(", ")}intersectsStrict(y){let p=0;for(;py+p.length,0)}}e.OffsetRangeSet=E}),define(ie[9],ne([1,0]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Position=void 0;class f{constructor(E,L){this.lineNumber=E,this.column=L}with(E=this.lineNumber,L=this.column){return E===this.lineNumber&&L===this.column?this:new f(E,L)}delta(E=0,L=0){return this.with(this.lineNumber+E,this.column+L)}equals(E){return f.equals(this,E)}static equals(E,L){return!E&&!L?!0:!!E&&!!L&&E.lineNumber===L.lineNumber&&E.column===L.column}isBefore(E){return f.isBefore(this,E)}static isBefore(E,L){return E.lineNumberp||L===p&&y>w?(this.startLineNumber=p,this.startColumn=w,this.endLineNumber=L,this.endColumn=y):(this.startLineNumber=L,this.startColumn=y,this.endLineNumber=p,this.endColumn=w)}isEmpty(){return k.isEmpty(this)}static isEmpty(L){return L.startLineNumber===L.endLineNumber&&L.startColumn===L.endColumn}containsPosition(L){return k.containsPosition(this,L)}static containsPosition(L,y){return!(y.lineNumberL.endLineNumber||y.lineNumber===L.startLineNumber&&y.columnL.endColumn)}static strictContainsPosition(L,y){return!(y.lineNumberL.endLineNumber||y.lineNumber===L.startLineNumber&&y.column<=L.startColumn||y.lineNumber===L.endLineNumber&&y.column>=L.endColumn)}containsRange(L){return k.containsRange(this,L)}static containsRange(L,y){return!(y.startLineNumberL.endLineNumber||y.endLineNumber>L.endLineNumber||y.startLineNumber===L.startLineNumber&&y.startColumnL.endColumn)}strictContainsRange(L){return k.strictContainsRange(this,L)}static strictContainsRange(L,y){return!(y.startLineNumberL.endLineNumber||y.endLineNumber>L.endLineNumber||y.startLineNumber===L.startLineNumber&&y.startColumn<=L.startColumn||y.endLineNumber===L.endLineNumber&&y.endColumn>=L.endColumn)}plusRange(L){return k.plusRange(this,L)}static plusRange(L,y){let p,w,v,_;return y.startLineNumberL.endLineNumber?(v=y.endLineNumber,_=y.endColumn):y.endLineNumber===L.endLineNumber?(v=y.endLineNumber,_=Math.max(y.endColumn,L.endColumn)):(v=L.endLineNumber,_=L.endColumn),new k(p,w,v,_)}intersectRanges(L){return k.intersectRanges(this,L)}static intersectRanges(L,y){let p=L.startLineNumber,w=L.startColumn,v=L.endLineNumber,_=L.endColumn;const a=y.startLineNumber,s=y.startColumn,i=y.endLineNumber,t=y.endColumn;return pi?(v=i,_=t):v===i&&(_=Math.min(_,t)),p>v||p===v&&w>_?null:new k(p,w,v,_)}equalsRange(L){return k.equalsRange(this,L)}static equalsRange(L,y){return!L&&!y?!0:!!L&&!!y&&L.startLineNumber===y.startLineNumber&&L.startColumn===y.startColumn&&L.endLineNumber===y.endLineNumber&&L.endColumn===y.endColumn}getEndPosition(){return k.getEndPosition(this)}static getEndPosition(L){return new f.Position(L.endLineNumber,L.endColumn)}getStartPosition(){return k.getStartPosition(this)}static getStartPosition(L){return new f.Position(L.startLineNumber,L.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(L,y){return new k(this.startLineNumber,this.startColumn,L,y)}setStartPosition(L,y){return new k(L,y,this.endLineNumber,this.endColumn)}collapseToStart(){return k.collapseToStart(this)}static collapseToStart(L){return new k(L.startLineNumber,L.startColumn,L.startLineNumber,L.startColumn)}collapseToEnd(){return k.collapseToEnd(this)}static collapseToEnd(L){return new k(L.endLineNumber,L.endColumn,L.endLineNumber,L.endColumn)}delta(L){return new k(this.startLineNumber+L,this.startColumn,this.endLineNumber+L,this.endColumn)}static fromPositions(L,y=L){return new k(L.lineNumber,L.column,y.lineNumber,y.column)}static lift(L){return L?new k(L.startLineNumber,L.startColumn,L.endLineNumber,L.endColumn):null}static isIRange(L){return L&&typeof L.startLineNumber=="number"&&typeof L.startColumn=="number"&&typeof L.endLineNumber=="number"&&typeof L.endColumn=="number"}static areIntersectingOrTouching(L,y){return!(L.endLineNumberL.startLineNumber}toJSON(){return this}}e.Range=k}),define(ie[298],ne([1,0,11,5]),function(J,e,f,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PagedScreenReaderStrategy=e.TextAreaState=e._debugComposition=void 0,e._debugComposition=!1;class E{constructor(p,w,v,_,a){this.value=p,this.selectionStart=w,this.selectionEnd=v,this.selection=_,this.newlineCountBeforeSelection=a}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(p,w){const v=p.getValue(),_=p.getSelectionStart(),a=p.getSelectionEnd();let s;if(w){const i=v.substring(0,_),t=w.value.substring(0,w.selectionStart);i===t&&(s=w.newlineCountBeforeSelection)}return new E(v,_,a,null,s)}collapseSelection(){return this.selectionStart===this.value.length?this:new E(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(p,w,v){e._debugComposition&&console.log(`writeToTextArea ${p}: ${this.toString()}`),w.setValue(p,this.value),v&&w.setSelectionRange(p,this.selectionStart,this.selectionEnd)}deduceEditorPosition(p){var w,v,_,a,s,i,t,n;if(p<=this.selectionStart){const u=this.value.substring(p,this.selectionStart);return this._finishDeduceEditorPosition((v=(w=this.selection)===null||w===void 0?void 0:w.getStartPosition())!==null&&v!==void 0?v:null,u,-1)}if(p>=this.selectionEnd){const u=this.value.substring(this.selectionEnd,p);return this._finishDeduceEditorPosition((a=(_=this.selection)===null||_===void 0?void 0:_.getEndPosition())!==null&&a!==void 0?a:null,u,1)}const h=this.value.substring(this.selectionStart,p);if(h.indexOf("\u2026")===-1)return this._finishDeduceEditorPosition((i=(s=this.selection)===null||s===void 0?void 0:s.getStartPosition())!==null&&i!==void 0?i:null,h,1);const m=this.value.substring(p,this.selectionEnd);return this._finishDeduceEditorPosition((n=(t=this.selection)===null||t===void 0?void 0:t.getEndPosition())!==null&&n!==void 0?n:null,m,-1)}_finishDeduceEditorPosition(p,w,v){let _=0,a=-1;for(;(a=w.indexOf(`
+`,a+1))!==-1;)_++;return[p,v*w.length,_]}static deduceInput(p,w,v){if(!p)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};e._debugComposition&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${p.toString()}`),console.log(`CURRENT STATE: ${w.toString()}`));const _=Math.min(f.commonPrefixLength(p.value,w.value),p.selectionStart,w.selectionStart),a=Math.min(f.commonSuffixLength(p.value,w.value),p.value.length-p.selectionEnd,w.value.length-w.selectionEnd),s=p.value.substring(_,p.value.length-a),i=w.value.substring(_,w.value.length-a),t=p.selectionStart-_,n=p.selectionEnd-_,h=w.selectionStart-_,m=w.selectionEnd-_;if(e._debugComposition&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${s}>, selectionStart: ${t}, selectionEnd: ${n}`),console.log(`AFTER DIFFING CURRENT STATE: <${i}>, selectionStart: ${h}, selectionEnd: ${m}`)),h===m){const d=p.selectionStart-_;return e._debugComposition&&console.log(`REMOVE PREVIOUS: ${d} chars`),{text:i,replacePrevCharCnt:d,replaceNextCharCnt:0,positionDelta:0}}const u=n-t;return{text:i,replacePrevCharCnt:u,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(p,w){if(!p)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(e._debugComposition&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${p.toString()}`),console.log(`CURRENT STATE: ${w.toString()}`)),p.value===w.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:w.selectionEnd-p.selectionEnd};const v=Math.min(f.commonPrefixLength(p.value,w.value),p.selectionEnd),_=Math.min(f.commonSuffixLength(p.value,w.value),p.value.length-p.selectionEnd),a=p.value.substring(v,p.value.length-_),s=w.value.substring(v,w.value.length-_),i=p.selectionStart-v,t=p.selectionEnd-v,n=w.selectionStart-v,h=w.selectionEnd-v;return e._debugComposition&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${a}>, selectionStart: ${i}, selectionEnd: ${t}`),console.log(`AFTER DIFFING CURRENT STATE: <${s}>, selectionStart: ${n}, selectionEnd: ${h}`)),{text:s,replacePrevCharCnt:t,replaceNextCharCnt:a.length-t,positionDelta:h-s.length}}}e.TextAreaState=E,E.EMPTY=new E("",0,0,null,void 0);class L{static _getPageOfLine(p,w){return Math.floor((p-1)/w)}static _getRangeForPage(p,w){const v=p*w,_=v+1,a=v+w;return new k.Range(_,1,a+1,1)}static fromEditorSelection(p,w,v,_){const s=L._getPageOfLine(w.startLineNumber,v),i=L._getRangeForPage(s,v),t=L._getPageOfLine(w.endLineNumber,v),n=L._getRangeForPage(t,v);let h=i.intersectRanges(new k.Range(1,1,w.startLineNumber,w.startColumn));if(_&&p.getValueLengthInRange(h,1)>500){const g=p.modifyPosition(h.getEndPosition(),-500);h=k.Range.fromPositions(g,h.getEndPosition())}const m=p.getValueInRange(h,1),u=p.getLineCount(),d=p.getLineMaxColumn(u);let r=n.intersectRanges(new k.Range(w.endLineNumber,w.endColumn,u,d));if(_&&p.getValueLengthInRange(r,1)>500){const g=p.modifyPosition(r.getStartPosition(),500);r=k.Range.fromPositions(r.getStartPosition(),g)}const l=p.getValueInRange(r,1);let o;if(s===t||s+1===t)o=p.getValueInRange(w,1);else{const g=i.intersectRanges(w),c=n.intersectRanges(w);o=p.getValueInRange(g,1)+"\u2026"+p.getValueInRange(c,1)}return _&&o.length>2*500&&(o=o.substring(0,500)+"\u2026"+o.substring(o.length-500,o.length)),new E(m+o+l,m.length,m.length+o.length,w,h.endLineNumber-h.startLineNumber)}}e.PagedScreenReaderStrategy=L}),define(ie[72],ne([1,0,5]),function(J,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditOperation=void 0;class k{static insert(L,y){return{range:new f.Range(L.lineNumber,L.column,L.lineNumber,L.column),text:y,forceMoveMarkers:!0}}static delete(L){return{range:L,text:null}}static replace(L,y){return{range:L,text:y}}static replaceMove(L,y){return{range:L,text:y,forceMoveMarkers:!0}}}e.EditOperation=k}),define(ie[523],ne([1,0,11,72,5]),function(J,e,f,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TrimTrailingWhitespaceCommand=void 0,e.trimTrailingWhitespace=y;class L{constructor(w,v,_){this._selection=w,this._cursors=v,this._selectionId=null,this._trimInRegexesAndStrings=_}getEditOperations(w,v){const _=y(w,this._cursors,this._trimInRegexesAndStrings);for(let a=0,s=_.length;at.lineNumber===n.lineNumber?t.column-n.column:t.lineNumber-n.lineNumber);for(let t=w.length-2;t>=0;t--)w[t].lineNumber===w[t+1].lineNumber&&w.splice(t,1);const _=[];let a=0,s=0;const i=w.length;for(let t=1,n=p.getLineCount();t<=n;t++){const h=p.getLineContent(t),m=h.length+1;let u=0;if(s_)throw new f.BugIndicatingError(`startLineNumber ${v} cannot be after endLineNumberExclusive ${_}`);this.startLineNumber=v,this.endLineNumberExclusive=_}contains(v){return this.startLineNumber<=v&&vs.endLineNumberExclusive>=v.startLineNumber),a=(0,L.findLastIdxMonotonous)(this._normalizedRanges,s=>s.startLineNumber<=v.endLineNumberExclusive)+1;if(_===a)this._normalizedRanges.splice(_,0,v);else if(_===a-1){const s=this._normalizedRanges[_];this._normalizedRanges[_]=s.join(v)}else{const s=this._normalizedRanges[_].join(this._normalizedRanges[a-1]).join(v);this._normalizedRanges.splice(_,a-_,s)}}contains(v){const _=(0,L.findLastMonotonous)(this._normalizedRanges,a=>a.startLineNumber<=v);return!!_&&_.endLineNumberExclusive>v}intersects(v){const _=(0,L.findLastMonotonous)(this._normalizedRanges,a=>a.startLineNumberv.startLineNumber}getUnion(v){if(this._normalizedRanges.length===0)return v;if(v._normalizedRanges.length===0)return this;const _=[];let a=0,s=0,i=null;for(;a=t.startLineNumber?i=new y(i.startLineNumber,Math.max(i.endLineNumberExclusive,t.endLineNumberExclusive)):(_.push(i),i=t)}return i!==null&&_.push(i),new p(_)}subtractFrom(v){const _=(0,L.findFirstIdxMonotonousOrArrLen)(this._normalizedRanges,t=>t.endLineNumberExclusive>=v.startLineNumber),a=(0,L.findLastIdxMonotonous)(this._normalizedRanges,t=>t.startLineNumber<=v.endLineNumberExclusive)+1;if(_===a)return new p([v]);const s=[];let i=v.startLineNumber;for(let t=_;ti&&s.push(new y(i,n.startLineNumber)),i=n.endLineNumberExclusive}return iv.toString()).join(", ")}getIntersection(v){const _=[];let a=0,s=0;for(;a_.delta(v)))}}e.LineRangeSet=p}),define(ie[299],ne([1,0]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RGBA8=void 0;class f{constructor(E,L,y,p){this._rgba8Brand=void 0,this.r=f._clamp(E),this.g=f._clamp(L),this.b=f._clamp(y),this.a=f._clamp(p)}equals(E){return this.r===E.r&&this.g===E.g&&this.b===E.b&&this.a===E.a}static _clamp(E){return E<0?0:E>255?255:E|0}}e.RGBA8=f,f.Empty=new f(0,0,0,0)}),define(ie[24],ne([1,0,9,5]),function(J,e,f,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;class E extends k.Range{constructor(y,p,w,v){super(y,p,w,v),this.selectionStartLineNumber=y,this.selectionStartColumn=p,this.positionLineNumber=w,this.positionColumn=v}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(y){return E.selectionsEqual(this,y)}static selectionsEqual(y,p){return y.selectionStartLineNumber===p.selectionStartLineNumber&&y.selectionStartColumn===p.selectionStartColumn&&y.positionLineNumber===p.positionLineNumber&&y.positionColumn===p.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(y,p){return this.getDirection()===0?new E(this.startLineNumber,this.startColumn,y,p):new E(y,p,this.startLineNumber,this.startColumn)}getPosition(){return new f.Position(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new f.Position(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(y,p){return this.getDirection()===0?new E(y,p,this.endLineNumber,this.endColumn):new E(this.endLineNumber,this.endColumn,y,p)}static fromPositions(y,p=y){return new E(y.lineNumber,y.column,p.lineNumber,p.column)}static fromRange(y,p){return p===0?new E(y.startLineNumber,y.startColumn,y.endLineNumber,y.endColumn):new E(y.endLineNumber,y.endColumn,y.startLineNumber,y.startColumn)}static liftSelection(y){return new E(y.selectionStartLineNumber,y.selectionStartColumn,y.positionLineNumber,y.positionColumn)}static selectionsArrEqual(y,p){if(y&&!p||!y&&p)return!1;if(!y&&!p)return!0;if(y.length!==p.length)return!1;for(let w=0,v=y.length;w