!(function(){var wa=(xt,Te)=>(Te=Symbol[xt])?Te:Symbol.for("Symbol."+xt),tu=xt=>{throw TypeError(xt)};var iu=function(xt,Te){this[0]=xt,this[1]=Te};var Jo=xt=>{var Te=xt[wa("asyncIterator")],i=!1,h,H={};return Te==null?(Te=xt[wa("iterator")](),h=O=>H[O]=P=>Te[O](P)):(Te=Te.call(xt),h=O=>H[O]=P=>{if(i){if(i=!1,O==="throw")throw P;return P}return i=!0,{done:!1,value:new iu(new Promise(D=>{var G=Te[O](P);G instanceof Object||tu("Object expected"),D(G)}),1)}}),H[wa("iterator")]=()=>H,h("next"),"throw"in Te?h("throw"):H.throw=O=>{throw O},"return"in Te&&h("return"),H};(self.webpackChunk=self.webpackChunk||[]).push([[5552],{31285:function(){"use strict"},5520:function(){"use strict"},80258:function(xt,Te){"use strict";Te.byteLength=I,Te.toByteArray=E,Te.fromByteArray=g;for(var i=[],h=[],H=typeof Uint8Array!="undefined"?Uint8Array:Array,O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",P=0,D=O.length;P0)throw new Error("Invalid string. Length must be a multiple of 4");var C=w.indexOf("=");C===-1&&(C=s);var f=C===s?0:4-C%4;return[C,f]}function I(w){var s=G(w),C=s[0],f=s[1];return(C+f)*3/4-f}function y(w,s,C){return(s+C)*3/4-C}function E(w){var s,C=G(w),f=C[0],v=C[1],r=new H(y(w,f,v)),l=0,m=v>0?f-4:f,c;for(c=0;c>16&255,r[l++]=s>>8&255,r[l++]=s&255;return v===2&&(s=h[w.charCodeAt(c)]<<2|h[w.charCodeAt(c+1)]>>4,r[l++]=s&255),v===1&&(s=h[w.charCodeAt(c)]<<10|h[w.charCodeAt(c+1)]<<4|h[w.charCodeAt(c+2)]>>2,r[l++]=s>>8&255,r[l++]=s&255),r}function p(w){return i[w>>18&63]+i[w>>12&63]+i[w>>6&63]+i[w&63]}function a(w,s,C){for(var f,v=[],r=s;rm?m:l+r));return f===1?(s=w[C-1],v.push(i[s>>2]+i[s<<4&63]+"==")):f===2&&(s=(w[C-2]<<8)+w[C-1],v.push(i[s>>10]+i[s>>4&63]+i[s<<2&63]+"=")),v.join("")}},48764:function(xt,Te,i){"use strict";var h;var H=i(80258),O=i(80645),P=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Te.lW=y,h=l,Te.h2=50;var D=2147483647;h=D,y.TYPED_ARRAY_SUPPORT=G(),!y.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function G(){try{var ne=new Uint8Array(1),W={foo:function(){return 42}};return Object.setPrototypeOf(W,Uint8Array.prototype),Object.setPrototypeOf(ne,W),ne.foo()===42}catch($){return!1}}Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.buffer}}),Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.byteOffset}});function I(ne){if(ne>D)throw new RangeError('The value "'+ne+'" is invalid for option "size"');var W=new Uint8Array(ne);return Object.setPrototypeOf(W,y.prototype),W}function y(ne,W,$){if(typeof ne=="number"){if(typeof W=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(ne)}return E(ne,W,$)}y.poolSize=8192;function E(ne,W,$){if(typeof ne=="string")return w(ne,W);if(ArrayBuffer.isView(ne))return C(ne);if(ne==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ne);if(We(ne,ArrayBuffer)||ne&&We(ne.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(We(ne,SharedArrayBuffer)||ne&&We(ne.buffer,SharedArrayBuffer)))return f(ne,W,$);if(typeof ne=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ee=ne.valueOf&&ne.valueOf();if(ee!=null&&ee!==ne)return y.from(ee,W,$);var he=v(ne);if(he)return he;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ne[Symbol.toPrimitive]=="function")return y.from(ne[Symbol.toPrimitive]("string"),W,$);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ne)}y.from=function(ne,W,$){return E(ne,W,$)},Object.setPrototypeOf(y.prototype,Uint8Array.prototype),Object.setPrototypeOf(y,Uint8Array);function p(ne){if(typeof ne!="number")throw new TypeError('"size" argument must be of type number');if(ne<0)throw new RangeError('The value "'+ne+'" is invalid for option "size"')}function a(ne,W,$){return p(ne),ne<=0?I(ne):W!==void 0?typeof $=="string"?I(ne).fill(W,$):I(ne).fill(W):I(ne)}y.alloc=function(ne,W,$){return a(ne,W,$)};function g(ne){return p(ne),I(ne<0?0:r(ne)|0)}y.allocUnsafe=function(ne){return g(ne)},y.allocUnsafeSlow=function(ne){return g(ne)};function w(ne,W){if((typeof W!="string"||W==="")&&(W="utf8"),!y.isEncoding(W))throw new TypeError("Unknown encoding: "+W);var $=m(ne,W)|0,ee=I($),he=ee.write(ne,W);return he!==$&&(ee=ee.slice(0,he)),ee}function s(ne){for(var W=ne.length<0?0:r(ne.length)|0,$=I(W),ee=0;ee=D)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+D.toString(16)+" bytes");return ne|0}function l(ne){return+ne!=ne&&(ne=0),y.alloc(+ne)}y.isBuffer=function(W){return W!=null&&W._isBuffer===!0&&W!==y.prototype},y.compare=function(W,$){if(We(W,Uint8Array)&&(W=y.from(W,W.offset,W.byteLength)),We($,Uint8Array)&&($=y.from($,$.offset,$.byteLength)),!y.isBuffer(W)||!y.isBuffer($))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(W===$)return 0;for(var ee=W.length,he=$.length,Pe=0,Ye=Math.min(ee,he);Pehe.length?y.from(Ye).copy(he,Pe):Uint8Array.prototype.set.call(he,Ye,Pe);else if(y.isBuffer(Ye))Ye.copy(he,Pe);else throw new TypeError('"list" argument must be an Array of Buffers');Pe+=Ye.length}return he};function m(ne,W){if(y.isBuffer(ne))return ne.length;if(ArrayBuffer.isView(ne)||We(ne,ArrayBuffer))return ne.byteLength;if(typeof ne!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ne);var $=ne.length,ee=arguments.length>2&&arguments[2]===!0;if(!ee&&$===0)return 0;for(var he=!1;;)switch(W){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return Fe(ne).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return ce(ne).length;default:if(he)return ee?-1:Fe(ne).length;W=(""+W).toLowerCase(),he=!0}}y.byteLength=m;function c(ne,W,$){var ee=!1;if((W===void 0||W<0)&&(W=0),W>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,W>>>=0,$<=W))return"";for(ne||(ne="utf8");;)switch(ne){case"hex":return j(this,W,$);case"utf8":case"utf-8":return J(this,W,$);case"ascii":return le(this,W,$);case"latin1":case"binary":return xe(this,W,$);case"base64":return De(this,W,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,W,$);default:if(ee)throw new TypeError("Unknown encoding: "+ne);ne=(ne+"").toLowerCase(),ee=!0}}y.prototype._isBuffer=!0;function b(ne,W,$){var ee=ne[W];ne[W]=ne[$],ne[$]=ee}y.prototype.swap16=function(){var W=this.length;if(W%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $=0;$$&&(W+=" ... "),""},P&&(y.prototype[P]=y.prototype.inspect),y.prototype.compare=function(W,$,ee,he,Pe){if(We(W,Uint8Array)&&(W=y.from(W,W.offset,W.byteLength)),!y.isBuffer(W))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof W);if($===void 0&&($=0),ee===void 0&&(ee=W?W.length:0),he===void 0&&(he=0),Pe===void 0&&(Pe=this.length),$<0||ee>W.length||he<0||Pe>this.length)throw new RangeError("out of range index");if(he>=Pe&&$>=ee)return 0;if(he>=Pe)return-1;if($>=ee)return 1;if($>>>=0,ee>>>=0,he>>>=0,Pe>>>=0,this===W)return 0;for(var Ye=Pe-he,it=ee-$,rt=Math.min(Ye,it),vt=this.slice(he,Pe),Ft=W.slice($,ee),Ht=0;Ht2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,ae($)&&($=he?0:ne.length-1),$<0&&($=ne.length+$),$>=ne.length){if(he)return-1;$=ne.length-1}else if($<0)if(he)$=0;else return-1;if(typeof W=="string"&&(W=y.from(W,ee)),y.isBuffer(W))return W.length===0?-1:T(ne,W,$,ee,he);if(typeof W=="number")return W=W&255,typeof Uint8Array.prototype.indexOf=="function"?he?Uint8Array.prototype.indexOf.call(ne,W,$):Uint8Array.prototype.lastIndexOf.call(ne,W,$):T(ne,[W],$,ee,he);throw new TypeError("val must be string, number or Buffer")}function T(ne,W,$,ee,he){var Pe=1,Ye=ne.length,it=W.length;if(ee!==void 0&&(ee=String(ee).toLowerCase(),ee==="ucs2"||ee==="ucs-2"||ee==="utf16le"||ee==="utf-16le")){if(ne.length<2||W.length<2)return-1;Pe=2,Ye/=2,it/=2,$/=2}function rt(Xe,Ze){return Pe===1?Xe[Ze]:Xe.readUInt16BE(Ze*Pe)}var vt;if(he){var Ft=-1;for(vt=$;vtYe&&($=Ye-it),vt=$;vt>=0;vt--){for(var Ht=!0,ze=0;zehe&&(ee=he)):ee=he;var Pe=W.length;ee>Pe/2&&(ee=Pe/2);for(var Ye=0;Ye>>0,isFinite(ee)?(ee=ee>>>0,he===void 0&&(he="utf8")):(he=ee,ee=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Pe=this.length-$;if((ee===void 0||ee>Pe)&&(ee=Pe),W.length>0&&(ee<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");he||(he="utf8");for(var Ye=!1;;)switch(he){case"hex":return M(this,W,$,ee);case"utf8":case"utf-8":return z(this,W,$,ee);case"ascii":case"latin1":case"binary":return oe(this,W,$,ee);case"base64":return se(this,W,$,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,W,$,ee);default:if(Ye)throw new TypeError("Unknown encoding: "+he);he=(""+he).toLowerCase(),Ye=!0}},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function De(ne,W,$){return W===0&&$===ne.length?H.fromByteArray(ne):H.fromByteArray(ne.slice(W,$))}function J(ne,W,$){$=Math.min(ne.length,$);for(var ee=[],he=W;he<$;){var Pe=ne[he],Ye=null,it=Pe>239?4:Pe>223?3:Pe>191?2:1;if(he+it<=$){var rt,vt,Ft,Ht;switch(it){case 1:Pe<128&&(Ye=Pe);break;case 2:rt=ne[he+1],(rt&192)===128&&(Ht=(Pe&31)<<6|rt&63,Ht>127&&(Ye=Ht));break;case 3:rt=ne[he+1],vt=ne[he+2],(rt&192)===128&&(vt&192)===128&&(Ht=(Pe&15)<<12|(rt&63)<<6|vt&63,Ht>2047&&(Ht<55296||Ht>57343)&&(Ye=Ht));break;case 4:rt=ne[he+1],vt=ne[he+2],Ft=ne[he+3],(rt&192)===128&&(vt&192)===128&&(Ft&192)===128&&(Ht=(Pe&15)<<18|(rt&63)<<12|(vt&63)<<6|Ft&63,Ht>65535&&Ht<1114112&&(Ye=Ht))}}Ye===null?(Ye=65533,it=1):Ye>65535&&(Ye-=65536,ee.push(Ye>>>10&1023|55296),Ye=56320|Ye&1023),ee.push(Ye),he+=it}return Q(ee)}var Z=4096;function Q(ne){var W=ne.length;if(W<=Z)return String.fromCharCode.apply(String,ne);for(var $="",ee=0;eeee)&&($=ee);for(var he="",Pe=W;Pe<$;++Pe)he+=fe[ne[Pe]];return he}function R(ne,W,$){for(var ee=ne.slice(W,$),he="",Pe=0;Peee&&(W=ee),$<0?($+=ee,$<0&&($=0)):$>ee&&($=ee),$$)throw new RangeError("Trying to access beyond buffer length")}y.prototype.readUintLE=y.prototype.readUIntLE=function(W,$,ee){W=W>>>0,$=$>>>0,ee||V(W,$,this.length);for(var he=this[W],Pe=1,Ye=0;++Ye<$&&(Pe*=256);)he+=this[W+Ye]*Pe;return he},y.prototype.readUintBE=y.prototype.readUIntBE=function(W,$,ee){W=W>>>0,$=$>>>0,ee||V(W,$,this.length);for(var he=this[W+--$],Pe=1;$>0&&(Pe*=256);)he+=this[W+--$]*Pe;return he},y.prototype.readUint8=y.prototype.readUInt8=function(W,$){return W=W>>>0,$||V(W,1,this.length),this[W]},y.prototype.readUint16LE=y.prototype.readUInt16LE=function(W,$){return W=W>>>0,$||V(W,2,this.length),this[W]|this[W+1]<<8},y.prototype.readUint16BE=y.prototype.readUInt16BE=function(W,$){return W=W>>>0,$||V(W,2,this.length),this[W]<<8|this[W+1]},y.prototype.readUint32LE=y.prototype.readUInt32LE=function(W,$){return W=W>>>0,$||V(W,4,this.length),(this[W]|this[W+1]<<8|this[W+2]<<16)+this[W+3]*16777216},y.prototype.readUint32BE=y.prototype.readUInt32BE=function(W,$){return W=W>>>0,$||V(W,4,this.length),this[W]*16777216+(this[W+1]<<16|this[W+2]<<8|this[W+3])},y.prototype.readIntLE=function(W,$,ee){W=W>>>0,$=$>>>0,ee||V(W,$,this.length);for(var he=this[W],Pe=1,Ye=0;++Ye<$&&(Pe*=256);)he+=this[W+Ye]*Pe;return Pe*=128,he>=Pe&&(he-=Math.pow(2,8*$)),he},y.prototype.readIntBE=function(W,$,ee){W=W>>>0,$=$>>>0,ee||V(W,$,this.length);for(var he=$,Pe=1,Ye=this[W+--he];he>0&&(Pe*=256);)Ye+=this[W+--he]*Pe;return Pe*=128,Ye>=Pe&&(Ye-=Math.pow(2,8*$)),Ye},y.prototype.readInt8=function(W,$){return W=W>>>0,$||V(W,1,this.length),this[W]&128?(255-this[W]+1)*-1:this[W]},y.prototype.readInt16LE=function(W,$){W=W>>>0,$||V(W,2,this.length);var ee=this[W]|this[W+1]<<8;return ee&32768?ee|4294901760:ee},y.prototype.readInt16BE=function(W,$){W=W>>>0,$||V(W,2,this.length);var ee=this[W+1]|this[W]<<8;return ee&32768?ee|4294901760:ee},y.prototype.readInt32LE=function(W,$){return W=W>>>0,$||V(W,4,this.length),this[W]|this[W+1]<<8|this[W+2]<<16|this[W+3]<<24},y.prototype.readInt32BE=function(W,$){return W=W>>>0,$||V(W,4,this.length),this[W]<<24|this[W+1]<<16|this[W+2]<<8|this[W+3]},y.prototype.readFloatLE=function(W,$){return W=W>>>0,$||V(W,4,this.length),O.read(this,W,!0,23,4)},y.prototype.readFloatBE=function(W,$){return W=W>>>0,$||V(W,4,this.length),O.read(this,W,!1,23,4)},y.prototype.readDoubleLE=function(W,$){return W=W>>>0,$||V(W,8,this.length),O.read(this,W,!0,52,8)},y.prototype.readDoubleBE=function(W,$){return W=W>>>0,$||V(W,8,this.length),O.read(this,W,!1,52,8)};function K(ne,W,$,ee,he,Pe){if(!y.isBuffer(ne))throw new TypeError('"buffer" argument must be a Buffer instance');if(W>he||Wne.length)throw new RangeError("Index out of range")}y.prototype.writeUintLE=y.prototype.writeUIntLE=function(W,$,ee,he){if(W=+W,$=$>>>0,ee=ee>>>0,!he){var Pe=Math.pow(2,8*ee)-1;K(this,W,$,ee,Pe,0)}var Ye=1,it=0;for(this[$]=W&255;++it>>0,ee=ee>>>0,!he){var Pe=Math.pow(2,8*ee)-1;K(this,W,$,ee,Pe,0)}var Ye=ee-1,it=1;for(this[$+Ye]=W&255;--Ye>=0&&(it*=256);)this[$+Ye]=W/it&255;return $+ee},y.prototype.writeUint8=y.prototype.writeUInt8=function(W,$,ee){return W=+W,$=$>>>0,ee||K(this,W,$,1,255,0),this[$]=W&255,$+1},y.prototype.writeUint16LE=y.prototype.writeUInt16LE=function(W,$,ee){return W=+W,$=$>>>0,ee||K(this,W,$,2,65535,0),this[$]=W&255,this[$+1]=W>>>8,$+2},y.prototype.writeUint16BE=y.prototype.writeUInt16BE=function(W,$,ee){return W=+W,$=$>>>0,ee||K(this,W,$,2,65535,0),this[$]=W>>>8,this[$+1]=W&255,$+2},y.prototype.writeUint32LE=y.prototype.writeUInt32LE=function(W,$,ee){return W=+W,$=$>>>0,ee||K(this,W,$,4,4294967295,0),this[$+3]=W>>>24,this[$+2]=W>>>16,this[$+1]=W>>>8,this[$]=W&255,$+4},y.prototype.writeUint32BE=y.prototype.writeUInt32BE=function(W,$,ee){return W=+W,$=$>>>0,ee||K(this,W,$,4,4294967295,0),this[$]=W>>>24,this[$+1]=W>>>16,this[$+2]=W>>>8,this[$+3]=W&255,$+4},y.prototype.writeIntLE=function(W,$,ee,he){if(W=+W,$=$>>>0,!he){var Pe=Math.pow(2,8*ee-1);K(this,W,$,ee,Pe-1,-Pe)}var Ye=0,it=1,rt=0;for(this[$]=W&255;++Ye>0)-rt&255;return $+ee},y.prototype.writeIntBE=function(W,$,ee,he){if(W=+W,$=$>>>0,!he){var Pe=Math.pow(2,8*ee-1);K(this,W,$,ee,Pe-1,-Pe)}var Ye=ee-1,it=1,rt=0;for(this[$+Ye]=W&255;--Ye>=0&&(it*=256);)W<0&&rt===0&&this[$+Ye+1]!==0&&(rt=1),this[$+Ye]=(W/it>>0)-rt&255;return $+ee},y.prototype.writeInt8=function(W,$,ee){return W=+W,$=$>>>0,ee||K(this,W,$,1,127,-128),W<0&&(W=255+W+1),this[$]=W&255,$+1},y.prototype.writeInt16LE=function(W,$,ee){return W=+W,$=$>>>0,ee||K(this,W,$,2,32767,-32768),this[$]=W&255,this[$+1]=W>>>8,$+2},y.prototype.writeInt16BE=function(W,$,ee){return W=+W,$=$>>>0,ee||K(this,W,$,2,32767,-32768),this[$]=W>>>8,this[$+1]=W&255,$+2},y.prototype.writeInt32LE=function(W,$,ee){return W=+W,$=$>>>0,ee||K(this,W,$,4,2147483647,-2147483648),this[$]=W&255,this[$+1]=W>>>8,this[$+2]=W>>>16,this[$+3]=W>>>24,$+4},y.prototype.writeInt32BE=function(W,$,ee){return W=+W,$=$>>>0,ee||K(this,W,$,4,2147483647,-2147483648),W<0&&(W=4294967295+W+1),this[$]=W>>>24,this[$+1]=W>>>16,this[$+2]=W>>>8,this[$+3]=W&255,$+4};function ie(ne,W,$,ee,he,Pe){if($+ee>ne.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function te(ne,W,$,ee,he){return W=+W,$=$>>>0,he||ie(ne,W,$,4,34028234663852886e22,-34028234663852886e22),O.write(ne,W,$,ee,23,4),$+4}y.prototype.writeFloatLE=function(W,$,ee){return te(this,W,$,!0,ee)},y.prototype.writeFloatBE=function(W,$,ee){return te(this,W,$,!1,ee)};function ge(ne,W,$,ee,he){return W=+W,$=$>>>0,he||ie(ne,W,$,8,17976931348623157e292,-17976931348623157e292),O.write(ne,W,$,ee,52,8),$+8}y.prototype.writeDoubleLE=function(W,$,ee){return ge(this,W,$,!0,ee)},y.prototype.writeDoubleBE=function(W,$,ee){return ge(this,W,$,!1,ee)},y.prototype.copy=function(W,$,ee,he){if(!y.isBuffer(W))throw new TypeError("argument should be a Buffer");if(ee||(ee=0),!he&&he!==0&&(he=this.length),$>=W.length&&($=W.length),$||($=0),he>0&&he=this.length)throw new RangeError("Index out of range");if(he<0)throw new RangeError("sourceEnd out of bounds");he>this.length&&(he=this.length),W.length-$>>0,ee=ee===void 0?this.length:ee>>>0,W||(W=0);var Ye;if(typeof W=="number")for(Ye=$;Ye55295&&$<57344){if(!he){if($>56319){(W-=3)>-1&&Pe.push(239,191,189);continue}else if(Ye+1===ee){(W-=3)>-1&&Pe.push(239,191,189);continue}he=$;continue}if($<56320){(W-=3)>-1&&Pe.push(239,191,189),he=$;continue}$=(he-55296<<10|$-56320)+65536}else he&&(W-=3)>-1&&Pe.push(239,191,189);if(he=null,$<128){if((W-=1)<0)break;Pe.push($)}else if($<2048){if((W-=2)<0)break;Pe.push($>>6|192,$&63|128)}else if($<65536){if((W-=3)<0)break;Pe.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((W-=4)<0)break;Pe.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return Pe}function we(ne){for(var W=[],$=0;$>8,he=$%256,Pe.push(he),Pe.push(ee);return Pe}function ce(ne){return H.toByteArray(ve(ne))}function Ve(ne,W,$,ee){for(var he=0;he=W.length||he>=ne.length);++he)W[he+$]=ne[he];return he}function We(ne,W){return ne instanceof W||ne!=null&&ne.constructor!=null&&ne.constructor.name!=null&&ne.constructor.name===W.name}function ae(ne){return ne!==ne}var fe=function(){for(var ne="0123456789abcdef",W=new Array(256),$=0;$<16;++$)for(var ee=$*16,he=0;he<16;++he)W[ee+he]=ne[$]+ne[he];return W}()},80645:function(xt,Te){Te.read=function(i,h,H,O,P){var D,G,I=P*8-O-1,y=(1<>1,p=-7,a=H?P-1:0,g=H?-1:1,w=i[h+a];for(a+=g,D=w&(1<<-p)-1,w>>=-p,p+=I;p>0;D=D*256+i[h+a],a+=g,p-=8);for(G=D&(1<<-p)-1,D>>=-p,p+=O;p>0;G=G*256+i[h+a],a+=g,p-=8);if(D===0)D=1-E;else{if(D===y)return G?NaN:(w?-1:1)*(1/0);G=G+Math.pow(2,O),D=D-E}return(w?-1:1)*G*Math.pow(2,D-O)},Te.write=function(i,h,H,O,P,D){var G,I,y,E=D*8-P-1,p=(1<>1,g=P===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=O?0:D-1,s=O?1:-1,C=h<0||h===0&&1/h<0?1:0;for(h=Math.abs(h),isNaN(h)||h===1/0?(I=isNaN(h)?1:0,G=p):(G=Math.floor(Math.log(h)/Math.LN2),h*(y=Math.pow(2,-G))<1&&(G--,y*=2),G+a>=1?h+=g/y:h+=g*Math.pow(2,1-a),h*y>=2&&(G++,y/=2),G+a>=p?(I=0,G=p):G+a>=1?(I=(h*y-1)*Math.pow(2,P),G=G+a):(I=h*Math.pow(2,a-1)*Math.pow(2,P),G=0));P>=8;i[H+w]=I&255,w+=s,I/=256,P-=8);for(G=G<0;i[H+w]=G&255,w+=s,G/=256,E-=8);i[H+w-s]|=C*128}},50048:function(xt,Te,i){self.MonacoEnvironment=function(h){function H(O){return O.replace(/\/$/,"")}return{globalAPI:!1,getWorkerUrl:function(O,P){var D=i.p,G=(D?H(D)+"/":"")+h[P];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(G)){var I=String(window.location),y=I.substr(0,I.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(G.substring(0,y.length)!==y){/^(\/\/)/.test(G)&&(G=window.location.protocol+G);var E="/*"+P+'*/importScripts("'+G+'");',p=new Blob([E],{type:"application/javascript"});return URL.createObjectURL(p)}}return G}}}({editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"}),i(46005),i(18870),i(9740),i(62015),i(9093),i(49946),i(51567),i(76522),i(68770),i(42834),i(87596),i(40539),i(5697),i(23111),i(44818),i(2268),i(60996),i(2765),i(20926),i(33184),i(24719),i(96016),i(59089),i(88863),i(23659),i(38486),i(74395),i(13679),i(69896),i(45048),i(16607),i(5964),i(93379),i(74480),i(15662),i(19720),i(77847),i(43497),i(99453),i(60661),xt.exports=i(97174),i(29126),i(89808),i(13598),i(52042),i(11336),i(76334),i(30253),i(47940),i(18162),i(79556),i(56292),i(40605),i(24129),i(97820),i(40927),i(26220),i(1526),i(40902),i(68423),i(17476),i(16745),i(43763),i(72323),i(36831),i(66079),i(82665),i(77365),i(6595),i(75769),i(51714),i(86935),i(62893),i(27616),i(83335),i(46266),i(89723),i(48746),i(94992),i(16563),i(85098),i(83187),i(76194),i(5566),i(26254),i(5734),i(40191),i(93127),i(34483),i(40840),i(2375),i(96461),i(76628),i(40185),i(68262),i(96337),i(87530),i(25929),i(6205),i(46837),i(88307),i(15422),i(58203),i(81905),i(94199),i(37266)},16268:function(xt,Te,i){"use strict";i.d(Te,{$W:function(){return C},Dt:function(){return s},G6:function(){return g},MG:function(){return w},Pf:function(){return p},WP:function(){return P},fX:function(){return D},i7:function(){return a},ie:function(){return G},mX:function(){return I},px:function(){return O},vU:function(){return E}});var h=i(4669);class H{constructor(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new h.Q5,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=1}getZoomLevel(){return this._zoomLevel}getTimeSinceLastZoomLevelChanged(){return Date.now()-this._lastZoomLevelChangeTime}getZoomFactor(){return this._zoomFactor}getPixelRatio(){let v=document.createElement("canvas").getContext("2d"),r=window.devicePixelRatio||1,l=v.webkitBackingStorePixelRatio||v.mozBackingStorePixelRatio||v.msBackingStorePixelRatio||v.oBackingStorePixelRatio||v.backingStorePixelRatio||1;return r/l}}H.INSTANCE=new H;function O(){return H.INSTANCE.getZoomLevel()}function P(){return H.INSTANCE.getTimeSinceLastZoomLevelChanged()}function D(f){return H.INSTANCE.onDidChangeZoomLevel(f)}function G(){return H.INSTANCE.getZoomFactor()}function I(){return H.INSTANCE.getPixelRatio()}const y=navigator.userAgent,E=y.indexOf("Firefox")>=0,p=y.indexOf("AppleWebKit")>=0,a=y.indexOf("Chrome")>=0,g=!a&&y.indexOf("Safari")>=0,w=!a&&!g&&p,s=y.indexOf("Android")>=0,C=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},10161:function(xt,Te,i){"use strict";i.d(Te,{D:function(){return O}});var h=i(16268),H=i(1432);const O={clipboard:{writeText:H.tY||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:H.tY||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:H.tY||h.$W?0:navigator.keyboard||h.G6?1:2,touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}},23547:function(xt,Te,i){"use strict";i.d(Te,{P$:function(){return P},TN:function(){return O},go:function(){return H}});var h=i(81170);const H={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:h.vW.text,TERMINALS:"Terminals"};class O{constructor(G){this.data=G}update(){}getData(){return this.data}}const P={CurrentDragAndDropData:void 0}},65321:function(xt,Te,i){"use strict";i.d(Te,{$:function(){return Et},$Z:function(){return Wt},Ay:function(){return Ve},Ce:function(){return ze},Cp:function(){return oi},D6:function(){return Q},DI:function(){return K},Dx:function(){return Z},FK:function(){return te},Fx:function(){return Fe},Gw:function(){return r},H$:function(){return ni},If:function(){return ge},Lo:function(){return l},OO:function(){return ce},PO:function(){return a},R3:function(){return Ht},RE:function(){return b},Re:function(){return he},Ro:function(){return xe},Uh:function(){return hi},Uw:function(){return g},V3:function(){return Di},Y_:function(){return J},_0:function(){return rt},_h:function(){return ai},_q:function(){return Pt},dS:function(){return ae},dp:function(){return R},fk:function(){return $},go:function(){return Ft},i:function(){return V},jL:function(){return z},j_:function(){return c},jg:function(){return ve},jt:function(){return Ti},lI:function(){return M},mc:function(){return Xe},mu:function(){return v},nm:function(){return s},qV:function(){return m},tw:function(){return Pe},uB:function(){return Gt},uN:function(){return ee},uU:function(){return we},vL:function(){return it},vY:function(){return We},w:function(){return ie},wY:function(){return Ni},wn:function(){return ye},xQ:function(){return j},zB:function(){return Ye}});var h=i(16268),H=i(10161),O=i(36513),P=i(23938),D=i(15393),G=i(17301),I=i(4669),y=i(5976),E=i(66663),p=i(1432);function a(st){for(;st.firstChild;)st.firstChild.remove()}function g(st){var gt;return(gt=st==null?void 0:st.isConnected)!==null&>!==void 0?gt:!1}class w{constructor(gt,ht,Qe,$e){this._node=gt,this._type=ht,this._handler=Qe,this._options=$e||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function s(st,gt,ht,Qe){return new w(st,gt,ht,Qe)}function C(st){return function(gt){return st(new P.n(gt))}}function f(st){return function(gt){return st(new O.y(gt))}}let v=function(gt,ht,Qe,$e){let Ie=Qe;return ht==="click"||ht==="mousedown"?Ie=C(Qe):(ht==="keydown"||ht==="keypress"||ht==="keyup")&&(Ie=f(Qe)),s(gt,ht,Ie,$e)},r=function(gt,ht,Qe){let $e=C(ht);return l(gt,$e,Qe)};function l(st,gt,ht){return s(st,p.gn&&H.D.pointerEvents?Pe.POINTER_DOWN:Pe.MOUSE_DOWN,gt,ht)}function m(st,gt,ht){return s(st,p.gn&&H.D.pointerEvents?Pe.POINTER_UP:Pe.MOUSE_UP,gt,ht)}function c(st,gt){return s(st,"mouseout",ht=>{let Qe=ht.relatedTarget;for(;Qe&&Qe!==st;)Qe=Qe.parentNode;Qe!==st&>(ht)})}function b(st,gt){return s(st,"pointerout",ht=>{let Qe=ht.relatedTarget;for(;Qe&&Qe!==st;)Qe=Qe.parentNode;Qe!==st&>(ht)})}let L=null;function T(st){if(!L){const gt=ht=>setTimeout(()=>ht(new Date().getTime()),0);L=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||gt}return L.call(self,st)}let M,z;class oe{constructor(gt,ht=0){this._runner=gt,this.priority=ht,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(gt){(0,G.dL)(gt)}}static sort(gt,ht){return ht.priority-gt.priority}}(function(){let st=[],gt=null,ht=!1,Qe=!1,$e=()=>{for(ht=!1,gt=st,st=[],Qe=!0;gt.length>0;)gt.sort(oe.sort),gt.shift().execute();Qe=!1};z=(Ie,Oe=0)=>{let Ke=new oe(Ie,Oe);return st.push(Ke),ht||(ht=!0,T($e)),Ke},M=(Ie,Oe)=>{if(Qe){let Ke=new oe(Ie,Oe);return gt.push(Ke),Ke}else return z(Ie,Oe)}})();const se=8,re=function(st,gt){return gt};class De extends y.JT{constructor(gt,ht,Qe,$e=re,Ie=se){super();let Oe=null,Ke=0,ct=this._register(new D._F),Nt=()=>{Ke=new Date().getTime(),Qe(Oe),Oe=null};this._register(s(gt,ht,$t=>{Oe=$e(Oe,$t);let Xt=new Date().getTime()-Ke;Xt>=Ie?(ct.cancel(),Nt()):ct.setIfNotSet(Nt,Ie-Xt)}))}}function J(st,gt,ht,Qe,$e){return new De(st,gt,ht,Qe,$e)}function Z(st){return document.defaultView.getComputedStyle(st,null)}function Q(st){if(st!==document.body)return new xe(st.clientWidth,st.clientHeight);if(p.gn&&window.visualViewport)return new xe(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new xe(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new xe(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new xe(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class le{static convertToPixels(gt,ht){return parseFloat(ht)||0}static getDimension(gt,ht,Qe){let $e=Z(gt),Ie="0";return $e&&($e.getPropertyValue?Ie=$e.getPropertyValue(ht):Ie=$e.getAttribute(Qe)),le.convertToPixels(gt,Ie)}static getBorderLeftWidth(gt){return le.getDimension(gt,"border-left-width","borderLeftWidth")}static getBorderRightWidth(gt){return le.getDimension(gt,"border-right-width","borderRightWidth")}static getBorderTopWidth(gt){return le.getDimension(gt,"border-top-width","borderTopWidth")}static getBorderBottomWidth(gt){return le.getDimension(gt,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(gt){return le.getDimension(gt,"padding-left","paddingLeft")}static getPaddingRight(gt){return le.getDimension(gt,"padding-right","paddingRight")}static getPaddingTop(gt){return le.getDimension(gt,"padding-top","paddingTop")}static getPaddingBottom(gt){return le.getDimension(gt,"padding-bottom","paddingBottom")}static getMarginLeft(gt){return le.getDimension(gt,"margin-left","marginLeft")}static getMarginTop(gt){return le.getDimension(gt,"margin-top","marginTop")}static getMarginRight(gt){return le.getDimension(gt,"margin-right","marginRight")}static getMarginBottom(gt){return le.getDimension(gt,"margin-bottom","marginBottom")}}class xe{constructor(gt,ht){this.width=gt,this.height=ht}with(gt=this.width,ht=this.height){return gt!==this.width||ht!==this.height?new xe(gt,ht):this}static is(gt){return typeof gt=="object"&&typeof gt.height=="number"&&typeof gt.width=="number"}static lift(gt){return gt instanceof xe?gt:new xe(gt.width,gt.height)}static equals(gt,ht){return gt===ht?!0:!gt||!ht?!1:gt.width===ht.width&>.height===ht.height}}function j(st){let gt=st.offsetParent,ht=st.offsetTop,Qe=st.offsetLeft;for(;(st=st.parentNode)!==null&&st!==document.body&&st!==document.documentElement;){ht-=st.scrollTop;const $e=ue(st)?null:Z(st);$e&&(Qe-=$e.direction!=="rtl"?st.scrollLeft:-st.scrollLeft),st===gt&&(Qe+=le.getBorderLeftWidth(st),ht+=le.getBorderTopWidth(st),ht+=st.offsetTop,Qe+=st.offsetLeft,gt=st.offsetParent)}return{left:Qe,top:ht}}function R(st,gt,ht){typeof gt=="number"&&(st.style.width=`${gt}px`),typeof ht=="number"&&(st.style.height=`${ht}px`)}function V(st){let gt=st.getBoundingClientRect();return{left:gt.left+K.scrollX,top:gt.top+K.scrollY,width:gt.width,height:gt.height}}const K=new class{get scrollX(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}};function ie(st){let gt=le.getMarginLeft(st)+le.getMarginRight(st);return st.offsetWidth+gt}function te(st){let gt=le.getBorderLeftWidth(st)+le.getBorderRightWidth(st),ht=le.getPaddingLeft(st)+le.getPaddingRight(st);return st.offsetWidth-gt-ht}function ge(st){let gt=le.getBorderTopWidth(st)+le.getBorderBottomWidth(st),ht=le.getPaddingTop(st)+le.getPaddingBottom(st);return st.offsetHeight-gt-ht}function ye(st){let gt=le.getMarginTop(st)+le.getMarginBottom(st);return st.offsetHeight+gt}function ve(st,gt){for(;st;){if(st===gt)return!0;st=st.parentNode}return!1}function Fe(st,gt,ht){for(;st&&st.nodeType===st.ELEMENT_NODE;){if(st.classList.contains(gt))return st;if(ht){if(typeof ht=="string"){if(st.classList.contains(ht))return null}else if(st===ht)return null}st=st.parentNode}return null}function we(st,gt,ht){return!!Fe(st,gt,ht)}function ue(st){return st&&!!st.host&&!!st.mode}function ce(st){return!!Ve(st)}function Ve(st){for(;st.parentNode;){if(st===document.body)return null;st=st.parentNode}return ue(st)?st:null}function We(){let st=document.activeElement;for(;st!=null&&st.shadowRoot;)st=st.shadowRoot.activeElement;return st}function ae(st=document.getElementsByTagName("head")[0]){let gt=document.createElement("style");return gt.type="text/css",gt.media="screen",st.appendChild(gt),gt}let fe=null;function ne(){return fe||(fe=ae()),fe}function W(st){var gt,ht;return!((gt=st==null?void 0:st.sheet)===null||gt===void 0)&>.rules?st.sheet.rules:!((ht=st==null?void 0:st.sheet)===null||ht===void 0)&&ht.cssRules?st.sheet.cssRules:[]}function $(st,gt,ht=ne()){!ht||!gt||ht.sheet.insertRule(st+"{"+gt+"}",0)}function ee(st,gt=ne()){if(!gt)return;let ht=W(gt),Qe=[];for(let $e=0;$e=0;$e--)gt.sheet.deleteRule(Qe[$e])}function he(st){return typeof HTMLElement=="object"?st instanceof HTMLElement:st&&typeof st=="object"&&st.nodeType===1&&typeof st.nodeName=="string"}const Pe={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:h.Pf?"webkitAnimationStart":"animationstart",ANIMATION_END:h.Pf?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:h.Pf?"webkitAnimationIteration":"animationiteration"},Ye={stop:function(st,gt){st.preventDefault?st.preventDefault():st.returnValue=!1,gt&&(st.stopPropagation?st.stopPropagation():st.cancelBubble=!0)}};function it(st){let gt=[];for(let ht=0;st&&st.nodeType===st.ELEMENT_NODE;ht++)gt[ht]=st.scrollTop,st=st.parentNode;return gt}function rt(st,gt){for(let ht=0;st&&st.nodeType===st.ELEMENT_NODE;ht++)st.scrollTop!==gt[ht]&&(st.scrollTop=gt[ht]),st=st.parentNode}class vt extends y.JT{constructor(gt){super(),this._onDidFocus=this._register(new I.Q5),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new I.Q5),this.onDidBlur=this._onDidBlur.event;let ht=ve(document.activeElement,gt),Qe=!1;const $e=()=>{Qe=!1,ht||(ht=!0,this._onDidFocus.fire())},Ie=()=>{ht&&(Qe=!0,window.setTimeout(()=>{Qe&&(Qe=!1,ht=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{ve(document.activeElement,gt)!==ht&&(ht?Ie():$e())},this._register(s(gt,Pe.FOCUS,$e,!0)),this._register(s(gt,Pe.BLUR,Ie,!0))}}function Ft(st){return new vt(st)}function Ht(st,...gt){if(st.append(...gt),gt.length===1&&typeof gt[0]!="string")return gt[0]}function ze(st,gt){return st.insertBefore(gt,st.firstChild),gt}function Xe(st,...gt){st.innerText="",Ht(st,...gt)}const Ze=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Ae;(function(st){st.HTML="http://www.w3.org/1999/xhtml",st.SVG="http://www.w3.org/2000/svg"})(Ae||(Ae={}));function He(st,gt,ht,...Qe){let $e=Ze.exec(gt);if(!$e)throw new Error("Bad use of emmet");ht=Object.assign({},ht||{});let Ie=$e[1]||"div",Oe;return st!==Ae.HTML?Oe=document.createElementNS(st,Ie):Oe=document.createElement(Ie),$e[3]&&(Oe.id=$e[3]),$e[4]&&(Oe.className=$e[4].replace(/\./g," ").trim()),Object.keys(ht).forEach(Ke=>{const ct=ht[Ke];typeof ct!="undefined"&&(/^on\w+$/.test(Ke)?Oe[Ke]=ct:Ke==="selected"?ct&&Oe.setAttribute(Ke,"true"):Oe.setAttribute(Ke,ct))}),Oe.append(...Qe),Oe}function Et(st,gt,...ht){return He(Ae.HTML,st,gt,...ht)}Et.SVG=function(st,gt,...ht){return He(Ae.SVG,st,gt,...ht)};function Wt(...st){for(let gt of st)gt.style.display="",gt.removeAttribute("aria-hidden")}function oi(...st){for(let gt of st)gt.style.display="none",gt.setAttribute("aria-hidden","true")}function ni(st){return Array.prototype.slice.call(document.getElementsByTagName(st),0)}function hi(st){const gt=window.devicePixelRatio*st;return Math.max(1,Math.floor(gt))/window.devicePixelRatio}function Di(st){window.open(st,"_blank","noopener")}function Ti(st){const gt=()=>{st(),ht=z(gt)};let ht=z(gt);return(0,y.OF)(()=>ht.dispose())}E.WX.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");function Ni(st){return st?`url('${E.Gi.asBrowserUri(st).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function ai(st){return`'${st.replace(/'/g,"%27")}'`}class Pt extends I.Q5{constructor(){super(),this._subscriptions=new y.SL,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(s(window,"keydown",gt=>{if(gt.defaultPrevented)return;const ht=new O.y(gt);if(!(ht.keyCode===6&>.repeat)){if(gt.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(gt.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(gt.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(gt.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(ht.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=gt.altKey,this._keyStatus.ctrlKey=gt.ctrlKey,this._keyStatus.metaKey=gt.metaKey,this._keyStatus.shiftKey=gt.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=gt,this.fire(this._keyStatus))}},!0)),this._subscriptions.add(s(window,"keyup",gt=>{gt.defaultPrevented||(!gt.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!gt.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!gt.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!gt.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=gt.altKey,this._keyStatus.ctrlKey=gt.ctrlKey,this._keyStatus.metaKey=gt.metaKey,this._keyStatus.shiftKey=gt.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=gt,this.fire(this._keyStatus)))},!0)),this._subscriptions.add(s(document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(s(document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(s(document.body,"mousemove",gt=>{gt.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),this._subscriptions.add(s(window,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return Pt.instance||(Pt.instance=new Pt),Pt.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}function Gt(st,gt){const ht=window.matchMedia(st);typeof ht.addEventListener=="function"?ht.addEventListener("change",gt):ht.addListener(gt)}},4850:function(xt,Te,i){"use strict";i.d(Te,{Y:function(){return H},p:function(){return O}});var h=i(4669);class H{constructor(D,G,I){const y=E=>this.emitter.fire(E);this.emitter=new h.Q5({onFirstListenerAdd:()=>D.addEventListener(G,y,I),onLastListenerRemove:()=>D.removeEventListener(G,y,I)})}get event(){return this.emitter.event}dispose(){this.emitter.dispose()}}function O(P){return P.preventDefault(),P.stopPropagation(),P}},38626:function(xt,Te,i){"use strict";i.d(Te,{X:function(){return H},Z:function(){return h}});class h{constructor(P){this.domNode=P,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(P){this._maxWidth!==P&&(this._maxWidth=P,this.domNode.style.maxWidth=this._maxWidth+"px")}setWidth(P){this._width!==P&&(this._width=P,this.domNode.style.width=this._width+"px")}setHeight(P){this._height!==P&&(this._height=P,this.domNode.style.height=this._height+"px")}setTop(P){this._top!==P&&(this._top=P,this.domNode.style.top=this._top+"px")}unsetTop(){this._top!==-1&&(this._top=-1,this.domNode.style.top="")}setLeft(P){this._left!==P&&(this._left=P,this.domNode.style.left=this._left+"px")}setBottom(P){this._bottom!==P&&(this._bottom=P,this.domNode.style.bottom=this._bottom+"px")}setRight(P){this._right!==P&&(this._right=P,this.domNode.style.right=this._right+"px")}setFontFamily(P){this._fontFamily!==P&&(this._fontFamily=P,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(P){this._fontWeight!==P&&(this._fontWeight=P,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(P){this._fontSize!==P&&(this._fontSize=P,this.domNode.style.fontSize=this._fontSize+"px")}setFontFeatureSettings(P){this._fontFeatureSettings!==P&&(this._fontFeatureSettings=P,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setLineHeight(P){this._lineHeight!==P&&(this._lineHeight=P,this.domNode.style.lineHeight=this._lineHeight+"px")}setLetterSpacing(P){this._letterSpacing!==P&&(this._letterSpacing=P,this.domNode.style.letterSpacing=this._letterSpacing+"px")}setClassName(P){this._className!==P&&(this._className=P,this.domNode.className=this._className)}toggleClassName(P,D){this.domNode.classList.toggle(P,D),this._className=this.domNode.className}setDisplay(P){this._display!==P&&(this._display=P,this.domNode.style.display=this._display)}setPosition(P){this._position!==P&&(this._position=P,this.domNode.style.position=this._position)}setVisibility(P){this._visibility!==P&&(this._visibility=P,this.domNode.style.visibility=this._visibility)}setBackgroundColor(P){this._backgroundColor!==P&&(this._backgroundColor=P,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(P){this._layerHint!==P&&(this._layerHint=P,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(P){this._boxShadow!==P&&(this._boxShadow=P,this.domNode.style.boxShadow=P)}setContain(P){this._contain!==P&&(this._contain=P,this.domNode.style.contain=this._contain)}setAttribute(P,D){this.domNode.setAttribute(P,D)}removeAttribute(P){this.domNode.removeAttribute(P)}appendChild(P){this.domNode.appendChild(P.domNode)}removeChild(P){this.domNode.removeChild(P.domNode)}}function H(O){return new h(O)}},94079:function(xt,Te,i){"use strict";i.d(Te,{BO:function(){return O},IY:function(){return H},az:function(){return P}});var h=i(65321);function H(p,a={}){const g=P(a);return g.textContent=p,g}function O(p,a={}){const g=P(a);return G(g,I(p,!!a.renderCodeSegments),a.actionHandler,a.renderCodeSegments),g}function P(p){const a=p.inline?"span":"div",g=document.createElement(a);return p.className&&(g.className=p.className),g}class D{constructor(a){this.source=a,this.index=0}eos(){return this.index>=this.source.length}next(){const a=this.peek();return this.advance(),a}peek(){return this.source[this.index]}advance(){this.index++}}function G(p,a,g,w){let s;if(a.type===2)s=document.createTextNode(a.content||"");else if(a.type===3)s=document.createElement("b");else if(a.type===4)s=document.createElement("i");else if(a.type===7&&w)s=document.createElement("code");else if(a.type===5&&g){const C=document.createElement("a");C.href="#",g.disposables.add(h.mu(C,"click",f=>{g.callback(String(a.index),f)})),s=C}else a.type===8?s=document.createElement("br"):a.type===1&&(s=p);s&&p!==s&&p.appendChild(s),s&&Array.isArray(a.children)&&a.children.forEach(C=>{G(s,C,g,w)})}function I(p,a){const g={type:1,children:[]};let w=0,s=g;const C=[],f=new D(p);for(;!f.eos();){let v=f.next();const r=v==="\\"&&E(f.peek(),a)!==0;if(r&&(v=f.next()),!r&&y(v,a)&&v===f.peek()){f.advance(),s.type===2&&(s=C.pop());const l=E(v,a);if(s.type===l||s.type===5&&l===6)s=C.pop();else{const m={type:l,children:[]};l===5&&(m.index=w,w++),s.children.push(m),C.push(s),s=m}}else if(v===` `)s.type===2&&(s=C.pop()),s.children.push({type:8});else if(s.type!==2){const l={type:2,content:v};s.children.push(l),C.push(s),s=l}else s.content+=v}return s.type===2&&(s=C.pop()),C.length,g}function y(p,a){return E(p,a)!==0}function E(p,a){switch(p){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return a?7:0;default:return 0}}},57974:function(xt,Te,i){"use strict";i.d(Te,{Z:function(){return I},e:function(){return G}});var h=i(65321),H=i(70262),O=i(23938),P=i(5976),D=i(1432);function G(y,E){let p=new O.n(E);return p.preventDefault(),{leftButton:p.leftButton,buttons:p.buttons,posx:p.posx,posy:p.posy}}class I{constructor(){this._hooks=new P.SL,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(E,p){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;const a=this._onStopCallback;this._onStopCallback=null,E&&a&&a(p)}isMonitoring(){return!!this._mouseMoveEventMerger}startMonitoring(E,p,a,g,w){if(this.isMonitoring())return;this._mouseMoveEventMerger=a,this._mouseMoveCallback=g,this._onStopCallback=w;const s=H.E.getSameOriginWindowChain(),C=D.gn?"pointermove":"mousemove",f="mouseup",v=s.map(l=>l.window.document),r=h.Ay(E);r&&v.unshift(r);for(const l of v)this._hooks.add(h.Y_(l,C,m=>{if(m.buttons!==p){this.stopMonitoring(!0);return}this._mouseMoveCallback(m)},(m,c)=>this._mouseMoveEventMerger(m,c))),this._hooks.add(h.nm(l,f,m=>this.stopMonitoring(!0)));if(H.E.hasDifferentOriginAncestor()){let l=s[s.length-1];this._hooks.add(h.nm(l.window.document,"mouseout",m=>{new O.n(m).target.tagName.toLowerCase()==="html"&&this.stopMonitoring(!0)})),this._hooks.add(h.nm(l.window.document,"mouseover",m=>{new O.n(m).target.tagName.toLowerCase()==="html"&&this.stopMonitoring(!0)})),this._hooks.add(h.nm(l.window.document.body,"mouseleave",m=>{this.stopMonitoring(!0)}))}}}},70262:function(xt,Te,i){"use strict";i.d(Te,{E:function(){return P}});let h=!1,H=null;function O(D){if(!D.parent||D.parent===D)return null;try{let G=D.location,I=D.parent.location;if(G.origin!=="null"&&I.origin!=="null"&&G.origin!==I.origin)return h=!0,null}catch(G){return h=!0,null}return D.parent}class P{static getSameOriginWindowChain(){if(!H){H=[];let G=window,I;do I=O(G),I?H.push({window:G,iframeElement:G.frameElement||null}):H.push({window:G,iframeElement:null}),G=I;while(G)}return H.slice(0)}static hasDifferentOriginAncestor(){return H||this.getSameOriginWindowChain(),h}static getPositionOfChildWindowRelativeToAncestorWindow(G,I){if(!I||G===I)return{top:0,left:0};let y=0,E=0,p=this.getSameOriginWindowChain();for(const a of p){if(y+=a.window.scrollY,E+=a.window.scrollX,a.window===I||!a.iframeElement)break;let g=a.iframeElement.getBoundingClientRect();y+=g.top,E+=g.left}return{top:y,left:E}}}},36513:function(xt,Te,i){"use strict";i.d(Te,{y:function(){return p}});var h=i(16268),H=i(22258),O=i(8313),P=i(1432);function D(a){if(a.charCode){let w=String.fromCharCode(a.charCode).toUpperCase();return H.kL.fromString(w)}const g=a.keyCode;if(g===3)return 7;if(h.vU){if(g===59)return 80;if(g===107)return 81;if(g===109)return 83;if(P.dz&&g===224)return 57}else if(h.Pf){if(g===91)return 57;if(P.dz&&g===93)return 57;if(!P.dz&&g===92)return 57}return H.H_[g]||0}const G=P.dz?256:2048,I=512,y=1024,E=P.dz?2048:256;class p{constructor(g){this._standardKeyboardEventBrand=!0;let w=g;this.browserEvent=w,this.target=w.target,this.ctrlKey=w.ctrlKey,this.shiftKey=w.shiftKey,this.altKey=w.altKey,this.metaKey=w.metaKey,this.keyCode=D(w),this.code=w.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(g){return this._asKeybinding===g}_computeKeybinding(){let g=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(g=this.keyCode);let w=0;return this.ctrlKey&&(w|=G),this.altKey&&(w|=I),this.shiftKey&&(w|=y),this.metaKey&&(w|=E),w|=g,w}_computeRuntimeKeybinding(){let g=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(g=this.keyCode),new O.QC(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,g)}}},23938:function(xt,Te,i){"use strict";i.d(Te,{n:function(){return P},q:function(){return D}});var h=i(16268),H=i(70262),O=i(1432);class P{constructor(I){this.timestamp=Date.now(),this.browserEvent=I,this.leftButton=I.button===0,this.middleButton=I.button===1,this.rightButton=I.button===2,this.buttons=I.buttons,this.target=I.target,this.detail=I.detail||1,I.type==="dblclick"&&(this.detail=2),this.ctrlKey=I.ctrlKey,this.shiftKey=I.shiftKey,this.altKey=I.altKey,this.metaKey=I.metaKey,typeof I.pageX=="number"?(this.posx=I.pageX,this.posy=I.pageY):(this.posx=I.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=I.clientY+document.body.scrollTop+document.documentElement.scrollTop);let y=H.E.getPositionOfChildWindowRelativeToAncestorWindow(self,I.view);this.posx-=y.left,this.posy-=y.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class D{constructor(I,y=0,E=0){if(this.browserEvent=I||null,this.target=I?I.target||I.targetNode||I.srcElement:null,this.deltaY=E,this.deltaX=y,I){let p=I,a=I;if(typeof p.wheelDeltaY!="undefined")this.deltaY=p.wheelDeltaY/120;else if(typeof a.VERTICAL_AXIS!="undefined"&&a.axis===a.VERTICAL_AXIS)this.deltaY=-a.detail/3;else if(I.type==="wheel"){const g=I;g.deltaMode===g.DOM_DELTA_LINE?h.vU&&!O.dz?this.deltaY=-I.deltaY/3:this.deltaY=-I.deltaY:this.deltaY=-I.deltaY/40}if(typeof p.wheelDeltaX!="undefined")h.G6&&O.ED?this.deltaX=-(p.wheelDeltaX/120):this.deltaX=p.wheelDeltaX/120;else if(typeof a.HORIZONTAL_AXIS!="undefined"&&a.axis===a.HORIZONTAL_AXIS)this.deltaX=-I.detail/3;else if(I.type==="wheel"){const g=I;g.deltaMode===g.DOM_DELTA_LINE?h.vU&&!O.dz?this.deltaX=-I.deltaX/3:this.deltaX=-I.deltaX:this.deltaX=-I.deltaX/40}this.deltaY===0&&this.deltaX===0&&I.wheelDelta&&(this.deltaY=I.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}},10553:function(xt,Te,i){"use strict";i.d(Te,{o:function(){return I},t:function(){return G}});var h=i(65321),H=i(9488),O=i(49898),P=i(5976),D=function(y,E,p,a){var g=arguments.length,w=g<3?E:a===null?a=Object.getOwnPropertyDescriptor(E,p):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(y,E,p,a);else for(var C=y.length-1;C>=0;C--)(s=y[C])&&(w=(g<3?s(w):g>3?s(E,p,w):s(E,p))||w);return g>3&&w&&Object.defineProperty(E,p,w),w},G;(function(y){y.Tap="-monaco-gesturetap",y.Change="-monaco-gesturechange",y.Start="-monaco-gesturestart",y.End="-monaco-gesturesend",y.Contextmenu="-monaco-gesturecontextmenu"})(G||(G={}));class I extends P.JT{constructor(){super(),this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(h.nm(document,"touchstart",E=>this.onTouchStart(E),{passive:!1})),this._register(h.nm(document,"touchend",E=>this.onTouchEnd(E))),this._register(h.nm(document,"touchmove",E=>this.onTouchMove(E),{passive:!1}))}static addTarget(E){return I.isTouchDevice()?(I.INSTANCE||(I.INSTANCE=new I),I.INSTANCE.targets.push(E),{dispose:()=>{I.INSTANCE.targets=I.INSTANCE.targets.filter(p=>p!==E)}}):P.JT.None}static ignoreTarget(E){return I.isTouchDevice()?(I.INSTANCE||(I.INSTANCE=new I),I.INSTANCE.ignoreTargets.push(E),{dispose:()=>{I.INSTANCE.ignoreTargets=I.INSTANCE.ignoreTargets.filter(p=>p!==E)}}):P.JT.None}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(E){let p=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let a=0,g=E.targetTouches.length;a=I.HOLD_DELAY&&Math.abs(C.initialPageX-H.Gb(C.rollingPageX))<30&&Math.abs(C.initialPageY-H.Gb(C.rollingPageY))<30){let v=this.newGestureEvent(G.Contextmenu,C.initialTarget);v.pageX=H.Gb(C.rollingPageX),v.pageY=H.Gb(C.rollingPageY),this.dispatchEvent(v)}else if(a===1){let v=H.Gb(C.rollingPageX),r=H.Gb(C.rollingPageY),l=H.Gb(C.rollingTimestamps)-C.rollingTimestamps[0],m=v-C.rollingPageX[0],c=r-C.rollingPageY[0];const b=this.targets.filter(L=>C.initialTarget instanceof Node&&L.contains(C.initialTarget));this.inertia(b,p,Math.abs(m)/l,m>0?1:-1,v,Math.abs(c)/l,c>0?1:-1,r)}this.dispatchEvent(this.newGestureEvent(G.End,C.initialTarget)),delete this.activeTouches[s.identifier]}this.dispatched&&(E.preventDefault(),E.stopPropagation(),this.dispatched=!1)}newGestureEvent(E,p){let a=document.createEvent("CustomEvent");return a.initEvent(E,!1,!0),a.initialTarget=p,a.tapCount=0,a}dispatchEvent(E){if(E.type===G.Tap){const p=new Date().getTime();let a=0;p-this._lastSetTapCountTime>I.CLEAR_TAP_COUNT_TIME?a=1:a=2,this._lastSetTapCountTime=p,E.tapCount=a}else(E.type===G.Change||E.type===G.Contextmenu)&&(this._lastSetTapCountTime=0);for(let p=0;p{E.initialTarget instanceof Node&&p.contains(E.initialTarget)&&(p.dispatchEvent(E),this.dispatched=!0)})}inertia(E,p,a,g,w,s,C,f){this.handle=h.jL(()=>{let v=Date.now(),r=v-p,l=0,m=0,c=!0;a+=I.SCROLL_FRICTION*r,s+=I.SCROLL_FRICTION*r,a>0&&(c=!1,l=g*a*r),s>0&&(c=!1,m=C*s*r);let b=this.newGestureEvent(G.Change);b.translationX=l,b.translationY=m,E.forEach(L=>L.dispatchEvent(b)),c||this.inertia(E,v,a,g,w+l,s,C,f+m)})}onTouchMove(E){let p=Date.now();for(let a=0,g=E.changedTouches.length;a3&&(s.rollingPageX.shift(),s.rollingPageY.shift(),s.rollingTimestamps.shift()),s.rollingPageX.push(w.pageX),s.rollingPageY.push(w.pageY),s.rollingTimestamps.push(p)}this.dispatched&&(E.preventDefault(),E.stopPropagation(),this.dispatched=!1)}}I.SCROLL_FRICTION=-.005,I.HOLD_DELAY=700,I.CLEAR_TAP_COUNT_TIME=400,D([O.H],I,"isTouchDevice",null)},76033:function(xt,Te,i){"use strict";i.d(Te,{Y:function(){return a},g:function(){return g}});var h=i(16268),H=i(23547),O=i(65321),P=i(10553),D=i(74741),G=i(5976),I=i(1432),y=i(98401),E=i(31285),p=i(63580);class a extends G.JT{constructor(s,C,f={}){super(),this.options=f,this._context=s||this,this._action=C,C instanceof D.aU&&this._register(C.onDidChange(v=>{this.element&&this.handleActionChangeEvent(v)}))}handleActionChangeEvent(s){s.enabled!==void 0&&this.updateEnabled(),s.checked!==void 0&&this.updateChecked(),s.class!==void 0&&this.updateClass(),s.label!==void 0&&(this.updateLabel(),this.updateTooltip()),s.tooltip!==void 0&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new D.Wi)),this._actionRunner}set actionRunner(s){this._actionRunner=s}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(s){this._context=s}render(s){const C=this.element=s;this._register(P.o.addTarget(s));const f=this.options&&this.options.draggable;f&&(s.draggable=!0,h.vU&&this._register((0,O.nm)(s,O.tw.DRAG_START,v=>{var r;return(r=v.dataTransfer)===null||r===void 0?void 0:r.setData(H.go.TEXT,this._action.label)}))),this._register((0,O.nm)(C,P.t.Tap,v=>this.onClick(v,!0))),this._register((0,O.nm)(C,O.tw.MOUSE_DOWN,v=>{f||O.zB.stop(v,!0),this._action.enabled&&v.button===0&&C.classList.add("active")})),I.dz&&this._register((0,O.nm)(C,O.tw.CONTEXT_MENU,v=>{v.button===0&&v.ctrlKey===!0&&this.onClick(v)})),this._register((0,O.nm)(C,O.tw.CLICK,v=>{O.zB.stop(v,!0),this.options&&this.options.isMenu||this.onClick(v)})),this._register((0,O.nm)(C,O.tw.DBLCLICK,v=>{O.zB.stop(v,!0)})),[O.tw.MOUSE_UP,O.tw.MOUSE_OUT].forEach(v=>{this._register((0,O.nm)(C,v,r=>{O.zB.stop(r),C.classList.remove("active")}))})}onClick(s,C=!1){var f;O.zB.stop(s,!0);const v=y.Jp(this._context)?!((f=this.options)===null||f===void 0)&&f.useEventAsContext?s:{preserveFocus:C}:this._context;this.actionRunner.run(this._action,v)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(s){this.element&&(this.element.tabIndex=s?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}updateTooltip(){}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),super.dispose()}}class g extends a{constructor(s,C,f={}){super(s,C,f),this.options=f,this.options.icon=f.icon!==void 0?f.icon:!1,this.options.label=f.label!==void 0?f.label:!0,this.cssClass=""}render(s){super.render(s),this.element&&(this.label=(0,O.R3)(this.element,(0,O.$)("a.action-label"))),this.label&&(this._action.id===D.Z0.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&((0,O.R3)(this.element,(0,O.$)("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(s){this.label&&(this.label.tabIndex=s?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)}updateTooltip(){let s=null;this.getAction().tooltip?s=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(s=this.getAction().label,this.options.keybinding&&(s=p.N({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",s,this.options.keybinding))),s&&this.label&&(this.label.title=s)}updateClass(){this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):this.label&&this.label.classList.remove("codicon")}updateEnabled(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),this.element&&this.element.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),this.element&&this.element.classList.add("disabled"))}updateChecked(){this.label&&(this.getAction().checked?this.label.classList.add("checked"):this.label.classList.remove("checked"))}}},90317:function(xt,Te,i){"use strict";i.d(Te,{o:function(){return p}});var h=i(65321),H=i(36513),O=i(76033),P=i(74741),D=i(4669),G=i(5976),I=i(98401),y=i(31285),E=function(a,g,w,s){function C(f){return f instanceof w?f:new w(function(v){v(f)})}return new(w||(w=Promise))(function(f,v){function r(c){try{m(s.next(c))}catch(b){v(b)}}function l(c){try{m(s.throw(c))}catch(b){v(b)}}function m(c){c.done?f(c.value):C(c.value).then(r,l)}m((s=s.apply(a,g||[])).next())})};class p extends G.JT{constructor(g,w={}){var s,C,f,v,r,l;super(),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new D.Q5),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new D.Q5({onFirstListenerAdd:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new D.Q5),this.onDidRun=this._onDidRun.event,this._onBeforeRun=this._register(new D.Q5),this.onBeforeRun=this._onBeforeRun.event,this.options=w,this._context=(s=w.context)!==null&&s!==void 0?s:null,this._orientation=(C=this.options.orientation)!==null&&C!==void 0?C:0,this._triggerKeys={keyDown:(v=(f=this.options.triggerKeys)===null||f===void 0?void 0:f.keyDown)!==null&&v!==void 0?v:!1,keys:(l=(r=this.options.triggerKeys)===null||r===void 0?void 0:r.keys)!==null&&l!==void 0?l:[3,10]},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new P.Wi,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(b=>this._onDidRun.fire(b))),this._register(this._actionRunner.onBeforeRun(b=>this._onBeforeRun.fire(b))),this._actionIds=[],this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",w.animated!==!1&&this.domNode.classList.add("animated");let m,c;switch(this._orientation){case 0:m=[15],c=[17];break;case 1:m=[16],c=[18],this.domNode.className+=" vertical";break}this._register(h.nm(this.domNode,h.tw.KEY_DOWN,b=>{const L=new H.y(b);let T=!0;const M=typeof this.focusedItem=="number"?this.viewItems[this.focusedItem]:void 0;m&&(L.equals(m[0])||L.equals(m[1]))?T=this.focusPrevious():c&&(L.equals(c[0])||L.equals(c[1]))?T=this.focusNext():L.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():L.equals(14)?T=this.focusFirst():L.equals(13)?T=this.focusLast():L.equals(2)&&M instanceof O.Y&&M.trapsArrowNavigation?T=this.focusNext():this.isTriggerKeyEvent(L)?this._triggerKeys.keyDown?this.doTrigger(L):this.triggerKeyDown=!0:T=!1,T&&(L.preventDefault(),L.stopPropagation())})),this._register(h.nm(this.domNode,h.tw.KEY_UP,b=>{const L=new H.y(b);this.isTriggerKeyEvent(L)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(L)),L.preventDefault(),L.stopPropagation()):(L.equals(2)||L.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(h.go(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{(h.vY()===this.domNode||!h.jg(h.vY(),this.domNode))&&(this._onDidBlur.fire(),this.focusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role","toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),g.appendChild(this.domNode)}isTriggerKeyEvent(g){let w=!1;return this._triggerKeys.keys.forEach(s=>{w=w||g.equals(s)}),w}updateFocusedItem(){for(let g=0;gw.setActionContext(g))}get actionRunner(){return this._actionRunner}set actionRunner(g){g&&(this._actionRunner=g,this.viewItems.forEach(w=>w.actionRunner=g))}getContainer(){return this.domNode}push(g,w={}){const s=Array.isArray(g)?g:[g];let C=I.hj(w.index)?w.index:null;s.forEach(f=>{const v=document.createElement("li");v.className="action-item",v.setAttribute("role","presentation"),this.options.allowContextMenu||this._register(h.nm(v,h.tw.CONTEXT_MENU,l=>{h.zB.stop(l,!0)}));let r;this.options.actionViewItemProvider&&(r=this.options.actionViewItemProvider(f)),r||(r=new O.g(this.context,f,w)),r.actionRunner=this._actionRunner,r.setActionContext(this.context),r.render(v),this.focusable&&r instanceof O.Y&&this.viewItems.length===0&&r.setFocusable(!0),C===null||C<0||C>=this.actionsList.children.length?(this.actionsList.appendChild(v),this.viewItems.push(r),this._actionIds.push(f.id)):(this.actionsList.insertBefore(v,this.actionsList.children[C]),this.viewItems.splice(C,0,r),this._actionIds.splice(C,0,f.id),C++)}),typeof this.focusedItem=="number"&&this.focus(this.focusedItem)}clear(){(0,G.B9)(this.viewItems),this.viewItems=[],this._actionIds=[],h.PO(this.actionsList)}length(){return this.viewItems.length}focus(g){let w=!1,s;if(g===void 0?w=!0:typeof g=="number"?s=g:typeof g=="boolean"&&(w=g),w&&typeof this.focusedItem=="undefined"){const C=this.viewItems.findIndex(f=>f.isEnabled());this.focusedItem=C===-1?void 0:C,this.updateFocus()}else s!==void 0&&(this.focusedItem=s),this.updateFocus()}focusFirst(){return this.focusedItem=this.length()>1?1:0,this.focusPrevious()}focusLast(){return this.focusedItem=this.length()<2?0:this.length()-2,this.focusNext()}focusNext(){if(typeof this.focusedItem=="undefined")this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const g=this.focusedItem;let w;do{if(this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=g,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,w=this.viewItems[this.focusedItem]}while(this.focusedItem!==g&&this.options.focusOnlyEnabledItems&&!w.isEnabled());return this.updateFocus(),!0}focusPrevious(){if(typeof this.focusedItem=="undefined")this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const g=this.focusedItem;let w;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(this.options.preventLoopNavigation)return this.focusedItem=g,!1;this.focusedItem=this.viewItems.length-1}w=this.viewItems[this.focusedItem]}while(this.focusedItem!==g&&this.options.focusOnlyEnabledItems&&!w.isEnabled());return this.updateFocus(!0),!0}updateFocus(g,w){typeof this.focusedItem=="undefined"&&this.actionsList.focus({preventScroll:w});for(let s=0;s{const f=document.createElement("div");return f.className="monaco-alert",f.setAttribute("role","alert"),f.setAttribute("aria-atomic","true"),P.appendChild(f),f};D=s(),G=s();const C=()=>{const f=document.createElement("div");return f.className="monaco-status",f.setAttribute("role","complementary"),f.setAttribute("aria-live","polite"),f.setAttribute("aria-atomic","true"),P.appendChild(f),f};I=C(),y=C(),w.appendChild(P)}function p(w){P&&(D.textContent!==w?(h.PO(G),g(D,w)):(h.PO(D),g(G,w)))}function a(w){P&&(H.dz?p(w):I.textContent!==w?(h.PO(y),g(I,w)):(h.PO(I),g(y,w)))}function g(w,s){h.PO(w),s.length>O&&(s=s.substr(0,O)),w.textContent=s,w.style.visibility="hidden",w.style.visibility="visible"}},15375:function(xt,Te,i){"use strict";i.d(Te,{a:function(){return H}});var h=i(73046);function H(O){let P=O.definition;for(;P instanceof h.lA;)P=P.definition;return`.codicon-${O.id}:before { content: '${P.fontCharacter}'; }`}},85207:function(xt,Te,i){"use strict";i.d(Te,{Z:function(){return G}});var h=i(65321),H=i(41264),O=i(36248),P=i(97295);const D={badgeBackground:H.Il.fromHex("#4D4D4D"),badgeForeground:H.Il.fromHex("#FFFFFF")};class G{constructor(y,E){this.count=0,this.options=E||Object.create(null),(0,O.jB)(this.options,D,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=(0,h.R3)(y,(0,h.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(y){this.count=y,this.render()}setTitleFormat(y){this.titleFormat=y,this.render()}render(){this.element.textContent=(0,P.WU)(this.countFormat,this.count),this.element.title=(0,P.WU)(this.titleFormat,this.count),this.applyStyles()}style(y){this.badgeBackground=y.badgeBackground,this.badgeForeground=y.badgeForeground,this.badgeBorder=y.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){const y=this.badgeBackground?this.badgeBackground.toString():"",E=this.badgeForeground?this.badgeForeground.toString():"",p=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=y,this.element.style.color=E,this.element.style.borderWidth=p?"1px":"",this.element.style.borderStyle=p?"solid":"",this.element.style.borderColor=p}}}},34650:function(xt,Te,i){"use strict";i.d(Te,{q:function(){return P}});var h=i(65321),H=i(56811),O=i(36248);class P{constructor(G,I){this.supportIcons=I,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",G.appendChild(this.domNode)}get element(){return this.domNode}set(G,I=[],y="",E){G||(G=""),E&&(G=P.escapeNewLines(G,I)),!(this.didEverRender&&this.text===G&&this.title===y&&O.fS(this.highlights,I))&&(this.text=G,this.title=y,this.highlights=I,this.render())}render(){const G=[];let I=0;for(const y of this.highlights){if(y.end===y.start)continue;if(I{E=p===`\r `?-1:0,a+=y;for(const g of I)g.end<=a||(g.start>=a&&(g.start+=E),g.end>=a&&(g.end+=E));return y+=E,"\u23CE"})}}},26974:function(xt,Te,i){"use strict";i.d(Te,{g:function(){return f}});var h=i(65321),H=i(34650),O=i(15393),P=i(71050),D=i(59365),G=i(5976),I=i(98401),y=i(63580),E=function(m,c,b,L){function T(M){return M instanceof b?M:new b(function(z){z(M)})}return new(b||(b=Promise))(function(M,z){function oe(De){try{re(L.next(De))}catch(J){z(J)}}function se(De){try{re(L.throw(De))}catch(J){z(J)}}function re(De){De.done?M(De.value):T(De.value).then(oe,se)}re((L=L.apply(m,c||[])).next())})};function p(m,c){(0,I.HD)(c)?m.title=c:c!=null&&c.markdownNotSupportedFallback?m.title=c.markdownNotSupportedFallback:m.removeAttribute("title")}class a{constructor(c,b,L){this.hoverDelegate=c,this.target=b,this.fadeInAnimation=L}update(c,b){var L;return E(this,void 0,void 0,function*(){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let T;if(c===void 0||(0,I.HD)(c)||c instanceof HTMLElement)T=c;else if(!(0,I.mf)(c.markdown))T=(L=c.markdown)!==null&&L!==void 0?L:c.markdownNotSupportedFallback;else{this._hoverWidget||this.show((0,y.N)("iconLabel.loading","Loading..."),b),this._cancellationTokenSource=new P.A;const M=this._cancellationTokenSource.token;if(T=yield c.markdown(M),this.isDisposed||M.isCancellationRequested)return}this.show(T,b)})}show(c,b){const L=this._hoverWidget;if(this.hasContent(c)){const T={content:c,target:this.target,showPointer:this.hoverDelegate.placement==="element",hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!L};this._hoverWidget=this.hoverDelegate.showHover(T,b)}L==null||L.dispose()}hasContent(c){return c?(0,D.Fr)(c)?!!c.value:!0:!1}get isDisposed(){var c;return(c=this._hoverWidget)===null||c===void 0?void 0:c.isDisposed}dispose(){var c,b;(c=this._hoverWidget)===null||c===void 0||c.dispose(),(b=this._cancellationTokenSource)===null||b===void 0||b.dispose(!0),this._cancellationTokenSource=void 0}}function g(m,c,b){let L,T;const M=(De,J)=>{var Z;De&&(T==null||T.dispose(),T=void 0),J&&(L==null||L.dispose(),L=void 0),(Z=m.onDidHideHover)===null||Z===void 0||Z.call(m)},z=(De,J,Z)=>new O._F(()=>E(this,void 0,void 0,function*(){(!T||T.isDisposed)&&(T=new a(m,Z||c,De>0),yield T.update(b,J))}),De),oe=()=>{if(L)return;const De=new G.SL,J=le=>M(!1,le.fromElement===c);De.add(h.nm(c,h.tw.MOUSE_LEAVE,J,!0));const Z=()=>M(!0,!0);De.add(h.nm(c,h.tw.MOUSE_DOWN,Z,!0));const Q={targetElements:[c],dispose:()=>{}};if(m.placement===void 0||m.placement==="mouse"){const le=xe=>Q.x=xe.x+10;De.add(h.nm(c,h.tw.MOUSE_MOVE,le,!0))}De.add(z(m.delay,!1,Q)),L=De},se=h.nm(c,h.tw.MOUSE_OVER,oe,!0);return{show:De=>{M(!1,!0),z(0,De)},hide:()=>{M(!0,!0)},update:De=>E(this,void 0,void 0,function*(){b=De,yield T==null?void 0:T.update(b)}),dispose:()=>{se.dispose(),M(!0,!0)}}}var w=i(36248),s=i(61134);class C{constructor(c){this._element=c}get element(){return this._element}set textContent(c){this.disposed||c===this._textContent||(this._textContent=c,this._element.textContent=c)}set className(c){this.disposed||c===this._className||(this._className=c,this._element.className=c)}set empty(c){this.disposed||c===this._empty||(this._empty=c,this._element.style.marginLeft=c?"0":"")}dispose(){this.disposed=!0}}class f extends G.JT{constructor(c,b){super(),this.customHovers=new Map,this.domNode=this._register(new C(h.R3(c,h.$(".monaco-icon-label")))),this.labelContainer=h.R3(this.domNode.element,h.$(".monaco-icon-label-container"));const L=h.R3(this.labelContainer,h.$("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new C(h.R3(this.labelContainer,h.$("span.monaco-icon-description-container")))),b!=null&&b.supportHighlights||b!=null&&b.supportIcons?this.nameNode=new l(L,!!b.supportIcons):this.nameNode=new v(L),b!=null&&b.supportDescriptionHighlights?this.descriptionNodeFactory=()=>new H.q(h.R3(this.descriptionContainer.element,h.$("span.label-description")),!!b.supportIcons):this.descriptionNodeFactory=()=>this._register(new C(h.R3(this.descriptionContainer.element,h.$("span.label-description")))),this.hoverDelegate=b==null?void 0:b.hoverDelegate}get element(){return this.domNode.element}setLabel(c,b,L){const T=["monaco-icon-label"];L&&(L.extraClasses&&T.push(...L.extraClasses),L.italic&&T.push("italic"),L.strikethrough&&T.push("strikethrough")),this.domNode.className=T.join(" "),this.setupHover(L!=null&&L.descriptionTitle?this.labelContainer:this.element,L==null?void 0:L.title),this.nameNode.setLabel(c,L),(b||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof H.q?(this.descriptionNode.set(b||"",L?L.descriptionMatches:void 0),this.setupHover(this.descriptionNode.element,L==null?void 0:L.descriptionTitle)):(this.descriptionNode.textContent=b||"",this.setupHover(this.descriptionNode.element,(L==null?void 0:L.descriptionTitle)||""),this.descriptionNode.empty=!b))}setupHover(c,b){const L=this.customHovers.get(c);if(L&&(L.dispose(),this.customHovers.delete(c)),!b){c.removeAttribute("title");return}if(!this.hoverDelegate)p(c,b);else{const T=g(this.hoverDelegate,c,b);T&&this.customHovers.set(c,T)}}dispose(){super.dispose();for(const c of this.customHovers.values())c.dispose();this.customHovers.clear()}}class v{constructor(c){this.container=c,this.label=void 0,this.singleLabel=void 0}setLabel(c,b){if(!(this.label===c&&(0,w.fS)(this.options,b)))if(this.label=c,this.options=b,typeof c=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=h.R3(this.container,h.$("a.label-name",{id:b==null?void 0:b.domId}))),this.singleLabel.textContent=c;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let L=0;L{const M={start:L,end:L+T.length},z=b.map(oe=>s.e.intersect(M,oe)).filter(oe=>!s.e.isEmpty(oe)).map(({start:oe,end:se})=>({start:oe-L,end:se-L}));return L=M.end+c.length,z})}class l{constructor(c,b){this.container=c,this.supportIcons=b,this.label=void 0,this.singleLabel=void 0}setLabel(c,b){if(!(this.label===c&&(0,w.fS)(this.options,b)))if(this.label=c,this.options=b,typeof c=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=new H.q(h.R3(this.container,h.$("a.label-name",{id:b==null?void 0:b.domId})),this.supportIcons)),this.singleLabel.set(c,b==null?void 0:b.matches,void 0,b==null?void 0:b.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const L=(b==null?void 0:b.separator)||"/",T=r(c,L,b==null?void 0:b.matches);for(let M=0;Mthis._limit&&this._initialize(l.slice(l.length-this._limit))}_currentPosition(){const l=this._navigator.current();return l?this._elements.indexOf(l):-1}_initialize(l){this._history=new Set;for(const m of l)this._history.add(m)}get _elements(){const l=[];return this._history.forEach(m=>l.push(m)),l}}var g=i(36248),w=i(63580);const s=h.$,C={inputBackground:y.Il.fromHex("#3C3C3C"),inputForeground:y.Il.fromHex("#CCCCCC"),inputValidationInfoBorder:y.Il.fromHex("#55AAFF"),inputValidationInfoBackground:y.Il.fromHex("#063B49"),inputValidationWarningBorder:y.Il.fromHex("#B89500"),inputValidationWarningBackground:y.Il.fromHex("#352A05"),inputValidationErrorBorder:y.Il.fromHex("#BE1100"),inputValidationErrorBackground:y.Il.fromHex("#5A1D1D")};class f extends I.${constructor(l,m,c){var b;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new E.Q5),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new E.Q5),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=m,this.options=c||Object.create(null),(0,g.jB)(this.options,C,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=(b=this.options.tooltip)!==null&&b!==void 0?b:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=h.R3(l,s(".monaco-inputbox.idle"));let L=this.options.flexibleHeight?"textarea":"input",T=h.R3(this.element,s(".ibwrapper"));if(this.input=h.R3(T,s(L+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight=typeof this.options.flexibleMaxHeight=="number"?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=h.R3(T,s("div.mirror")),this.mirror.innerText="\xA0",this.scrollableElement=new G.NB(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),h.R3(l,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(oe=>this.input.scrollTop=oe.scrollTop));const M=this._register(new H.Y(document,"selectionchange")),z=E.ju.filter(M.event,()=>{const oe=document.getSelection();return(oe==null?void 0:oe.anchorNode)===T});this._register(z(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this.ignoreGesture(this.input),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new P.o(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(l){this.placeholder=l,this.input.setAttribute("placeholder",l)}setTooltip(l){this.tooltip=l,this.input.title=l}setAriaLabel(l){this.ariaLabel=l,l?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}get inputElement(){return this.input}get value(){return this.input.value}set value(l){this.input.value!==l&&(this.input.value=l,this.onValueChange())}get height(){return typeof this.cachedHeight=="number"?this.cachedHeight:h.wn(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===this.input}select(l=null){this.input.select(),l&&(this.input.setSelectionRange(l.start,l.end),l.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}get width(){return h.w(this.input)}set width(l){if(this.options.flexibleHeight&&this.options.flexibleWidth){let m=0;if(this.mirror){const c=parseFloat(this.mirror.style.paddingLeft||"")||0,b=parseFloat(this.mirror.style.paddingRight||"")||0;m=c+b}this.input.style.width=l-m+"px"}else this.input.style.width=l+"px";this.mirror&&(this.mirror.style.width=l+"px")}set paddingRight(l){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width=`calc(100% - ${l}px)`:this.input.style.paddingRight=l+"px",this.mirror&&(this.mirror.style.paddingRight=l+"px")}updateScrollDimensions(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;const l=this.cachedContentHeight,m=this.cachedHeight,c=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:l,height:m}),this.scrollableElement.setScrollPosition({scrollTop:c})}showMessage(l,m){this.message=l,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(l.type));const c=this.stylesForType(this.message.type);this.element.style.border=c.border?`1px solid ${c.border}`:"",(this.hasFocus()||m)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let l=null;return this.validation&&(l=this.validation(this.value),l?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(l)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),l==null?void 0:l.type}stylesForType(l){switch(l){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}}classForType(l){switch(l){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let l,m=()=>l.style.width=h.w(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:b=>{if(!this.message)return null;l=h.R3(b,s(".monaco-inputbox-container")),m();const L={inline:!0,className:"monaco-inputbox-message"},T=this.message.formatContent?(0,O.BO)(this.message.content,L):(0,O.IY)(this.message.content,L);T.classList.add(this.classForType(this.message.type));const M=this.stylesForType(this.message.type);return T.style.backgroundColor=M.background?M.background.toString():"",T.style.color=M.foreground?M.foreground.toString():"",T.style.border=M.border?`1px solid ${M.border}`:"",h.R3(l,T),null},onHide:()=>{this.state="closed"},layout:m});let c;this.message.type===3?c=w.N("alertErrorMessage","Error: {0}",this.message.content):this.message.type===2?c=w.N("alertWarningMessage","Warning: {0}",this.message.content):c=w.N("alertInfoMessage","Info: {0}",this.message.content),D.Z9(c),this.state="open"}_hideMessage(){this.contextViewProvider&&(this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const l=this.value,c=l.charCodeAt(l.length-1)===10?" ":"";(l+c).replace(/\u000c/g,"")?this.mirror.textContent=l+c:this.mirror.innerText="\xA0",this.layout()}style(l){this.inputBackground=l.inputBackground,this.inputForeground=l.inputForeground,this.inputBorder=l.inputBorder,this.inputValidationInfoBackground=l.inputValidationInfoBackground,this.inputValidationInfoForeground=l.inputValidationInfoForeground,this.inputValidationInfoBorder=l.inputValidationInfoBorder,this.inputValidationWarningBackground=l.inputValidationWarningBackground,this.inputValidationWarningForeground=l.inputValidationWarningForeground,this.inputValidationWarningBorder=l.inputValidationWarningBorder,this.inputValidationErrorBackground=l.inputValidationErrorBackground,this.inputValidationErrorForeground=l.inputValidationErrorForeground,this.inputValidationErrorBorder=l.inputValidationErrorBorder,this.applyStyles()}applyStyles(){const l=this.inputBackground?this.inputBackground.toString():"",m=this.inputForeground?this.inputForeground.toString():"",c=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=l,this.element.style.color=m,this.input.style.backgroundColor="inherit",this.input.style.color=m,this.element.style.borderWidth=c?"1px":"",this.element.style.borderStyle=c?"solid":"",this.element.style.borderColor=c}layout(){if(!this.mirror)return;const l=this.cachedContentHeight;this.cachedContentHeight=h.wn(this.mirror),l!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(l){const m=this.inputElement,c=m.selectionStart,b=m.selectionEnd,L=m.value;c!==null&&b!==null&&(this.value=L.substr(0,c)+l+L.substr(b),m.setSelectionRange(c+1,c+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}class v extends f{constructor(l,m,c){const b=w.N({key:"history.inputbox.hint",comment:["Text will be prefixed with \u21C5 plus a single space, then used as a hint where input field keeps history"]},"for history"),L=` or \u21C5 ${b}`,T=` (\u21C5 ${b})`;super(l,m,c),this.history=new a(c.history,100);const M=()=>{if(c.showHistoryHint&&c.showHistoryHint()&&!this.placeholder.endsWith(L)&&!this.placeholder.endsWith(T)&&this.history.getHistory().length){const z=this.placeholder.endsWith(")")?L:T,oe=this.placeholder+z;c.showPlaceholderOnFocus&&document.activeElement!==this.input?this.placeholder=oe:this.setPlaceHolder(oe)}};this.observer=new MutationObserver((z,oe)=>{z.forEach(se=>{se.target.textContent||M()})}),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,()=>M()),this.onblur(this.input,()=>{const z=oe=>{if(this.placeholder.endsWith(oe)){const se=this.placeholder.slice(0,this.placeholder.length-oe.length);return c.showPlaceholderOnFocus?this.placeholder=se:this.setPlaceHolder(se),!0}else return!1};z(T)||z(L)})}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}showNextValue(){this.history.has(this.value)||this.addToHistory();let l=this.getNextValue();l&&(l=l===this.value?this.getNextValue():l),l&&(this.value=l,D.i7(this.value))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let l=this.getPreviousValue();l&&(l=l===this.value?this.getPreviousValue():l),l&&(this.value=l,D.i7(this.value))}getCurrentValue(){let l=this.history.current();return l||(l=this.history.last(),this.history.next()),l}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()||this.history.last()}}},72010:function(xt,Te,i){"use strict";i.d(Te,{kX:function(){return T},Bv:function(){return re}});var h=i(16268),H=i(23547),O=i(65321),P=i(4850),D=i(10553),G=i(13433),I=i(9488),y=i(15393),E=i(49898),p=i(4669),a=i(5976),g=i(36248),w=i(61134),s=i(76633);function C(De,J){const Z=[];for(let Q of J){if(De.start>=Q.range.end)continue;if(De.endJ.concat(Z),[]))}class l{constructor(){this.groups=[],this._size=0}splice(J,Z,Q=[]){const le=Q.length-Z,xe=C({start:0,end:J},this.groups),j=C({start:J+Z,end:Number.POSITIVE_INFINITY},this.groups).map(V=>({range:f(V.range,le),size:V.size})),R=Q.map((V,K)=>({range:{start:J+K,end:J+K+1},size:V.size}));this.groups=r(xe,R,j),this._size=this.groups.reduce((V,K)=>V+K.size*(K.range.end-K.range.start),0)}get count(){const J=this.groups.length;return J?this.groups[J-1].range.end:0}get size(){return this._size}indexAt(J){if(J<0)return-1;let Z=0,Q=0;for(let le of this.groups){const xe=le.range.end-le.range.start,j=Q+xe*le.size;if(J{for(const Q of J)this.getRenderer(Z).disposeTemplate(Q.templateData),Q.templateData=null}),this.cache.clear()}getRenderer(J){const Z=this.renderers.get(J);if(!Z)throw new Error(`No renderer found for ${J}`);return Z}}var b=function(De,J,Z,Q){var le=arguments.length,xe=le<3?J:Q===null?Q=Object.getOwnPropertyDescriptor(J,Z):Q,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")xe=Reflect.decorate(De,J,Z,Q);else for(var R=De.length-1;R>=0;R--)(j=De[R])&&(xe=(le<3?j(xe):le>3?j(J,Z,xe):j(J,Z))||xe);return le>3&&xe&&Object.defineProperty(J,Z,xe),xe};const L={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(De){return[De]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class T{constructor(J){this.elements=J}update(){}getData(){return this.elements}}class M{constructor(J){this.elements=J}update(){}getData(){return this.elements}}class z{constructor(){this.types=[],this.files=[]}update(J){if(J.types&&this.types.splice(0,this.types.length,...J.types),J.files){this.files.splice(0,this.files.length);for(let Z=0;Zle,J!=null&&J.getPosInSet?this.getPosInSet=J.getPosInSet.bind(J):this.getPosInSet=(Z,Q)=>Q+1,J!=null&&J.getRole?this.getRole=J.getRole.bind(J):this.getRole=Z=>"listitem",J!=null&&J.isChecked?this.isChecked=J.isChecked.bind(J):this.isChecked=Z=>{}}}class re{constructor(J,Z,Q,le=L){if(this.virtualDelegate=Z,this.domId=`list_id_${++re.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new y.vp(50),this.splicing=!1,this.dragOverAnimationStopDisposable=a.JT.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=a.JT.None,this.onDragLeaveTimeout=a.JT.None,this.disposables=new a.SL,this._onDidChangeContentHeight=new p.Q5,this._horizontalScrolling=!1,le.horizontalScrolling&&le.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new l;for(const j of Q)this.renderers.set(j.templateId,j);this.cache=this.disposables.add(new c(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support",typeof le.mouseSupport=="boolean"?le.mouseSupport:!0),this._horizontalScrolling=(0,g.CJ)(le,j=>j.horizontalScrolling,L.horizontalScrolling),this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=typeof le.additionalScrollHeight=="undefined"?0:le.additionalScrollHeight,this.accessibilityProvider=new se(le.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",(0,g.CJ)(le,j=>j.transformOptimization,L.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(D.o.addTarget(this.rowsContainer)),this.scrollable=new s.Rm((0,g.CJ)(le,j=>j.smoothScrolling,!1)?125:0,j=>(0,O.jL)(j)),this.scrollableElement=this.disposables.add(new G.$Z(this.rowsContainer,{alwaysConsumeMouseWheel:(0,g.CJ)(le,j=>j.alwaysConsumeMouseWheel,L.alwaysConsumeMouseWheel),horizontal:1,vertical:(0,g.CJ)(le,j=>j.verticalScrollMode,L.verticalScrollMode),useShadows:(0,g.CJ)(le,j=>j.useShadows,L.useShadows),mouseWheelScrollSensitivity:le.mouseWheelScrollSensitivity,fastScrollSensitivity:le.fastScrollSensitivity},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),J.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,O.nm)(this.rowsContainer,D.t.Change,j=>this.onTouchChange(j))),this.disposables.add((0,O.nm)(this.scrollableElement.getDomNode(),"scroll",j=>j.target.scrollTop=0)),this.disposables.add((0,O.nm)(this.domNode,"dragover",j=>this.onDragOver(this.toDragEvent(j)))),this.disposables.add((0,O.nm)(this.domNode,"drop",j=>this.onDrop(this.toDragEvent(j)))),this.disposables.add((0,O.nm)(this.domNode,"dragleave",j=>this.onDragLeave(this.toDragEvent(j)))),this.disposables.add((0,O.nm)(this.domNode,"dragend",j=>this.onDragEnd(j))),this.setRowLineHeight=(0,g.CJ)(le,j=>j.setRowLineHeight,L.setRowLineHeight),this.setRowHeight=(0,g.CJ)(le,j=>j.setRowHeight,L.setRowHeight),this.supportDynamicHeights=(0,g.CJ)(le,j=>j.supportDynamicHeights,L.supportDynamicHeights),this.dnd=(0,g.CJ)(le,j=>j.dnd,L.dnd),this.layout()}get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(J){if(J!==this._horizontalScrolling){if(J&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=J,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const Z of this.items)this.measureItemWidth(Z);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,O.FK)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}updateOptions(J){J.additionalScrollHeight!==void 0&&(this.additionalScrollHeight=J.additionalScrollHeight,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),J.smoothScrolling!==void 0&&this.scrollable.setSmoothScrollDuration(J.smoothScrolling?125:0),J.horizontalScrolling!==void 0&&(this.horizontalScrolling=J.horizontalScrolling),J.mouseWheelScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({mouseWheelScrollSensitivity:J.mouseWheelScrollSensitivity}),J.fastScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({fastScrollSensitivity:J.fastScrollSensitivity})}splice(J,Z,Q=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(J,Z,Q)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(J,Z,Q=[]){const le=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),xe={start:J,end:J+Z},j=w.e.intersect(le,xe),R=new Map;for(let fe=j.start;fe({id:String(this.itemId++),element:fe,templateId:this.virtualDelegate.getTemplateId(fe),size:this.virtualDelegate.getHeight(fe),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(fe),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:a.JT.None}));let ge;J===0&&Z>=this.items.length?(this.rangeMap=new l,this.rangeMap.splice(0,0,te),ge=this.items,this.items=te):(this.rangeMap.splice(J,Z,te),ge=this.items.splice(J,Z,...te));const ye=Q.length-Z,ve=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),Fe=f(K,ye),we=w.e.intersect(ve,Fe);for(let fe=we.start;fef(fe,ye)),We=[{start:J,end:J+Q.length},...ce].map(fe=>w.e.intersect(ve,fe)),ae=this.getNextToLastElement(We);for(const fe of We)for(let ne=fe.start;nefe.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,O.jL)(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){if(!this.horizontalScrolling){this.scrollableElementWidthDelayer.cancel();return}this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth())}updateScrollWidth(){if(!this.horizontalScrolling)return;let J=0;for(const Z of this.items)typeof Z.width!="undefined"&&(J=Math.max(J,Z.width));this.scrollWidth=J,this.scrollableElement.setScrollDimensions({scrollWidth:J===0?0:J+10})}rerender(){if(this.supportDynamicHeights){for(const J of this.items)J.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}element(J){return this.items[J].element}domElement(J){const Z=this.items[J].row;return Z&&Z.domNode}elementHeight(J){return this.items[J].size}elementTop(J){return this.rangeMap.positionAt(J)}indexAt(J){return this.rangeMap.indexAt(J)}indexAfter(J){return this.rangeMap.indexAfter(J)}layout(J,Z){let Q={height:typeof J=="number"?J:(0,O.If)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,Q.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(Q),typeof Z!="undefined"&&(this.renderWidth=Z,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof Z=="number"?Z:(0,O.FK)(this.domNode)})}render(J,Z,Q,le,xe,j=!1){const R=this.getRenderRange(Z,Q),V=w.e.relativeComplement(R,J),K=w.e.relativeComplement(J,R),ie=this.getNextToLastElement(V);if(j){const te=w.e.intersect(J,R);for(let ge=te.start;gethis.onDragStart(le.element,V,K))),this.horizontalScrolling&&(this.measureItemWidth(le),this.eventuallyUpdateScrollWidth())}measureItemWidth(J){if(!J.row||!J.row.domNode)return;J.row.domNode.style.width=h.vU?"-moz-fit-content":"fit-content",J.width=(0,O.FK)(J.row.domNode);const Z=window.getComputedStyle(J.row.domNode);Z.paddingLeft&&(J.width+=parseFloat(Z.paddingLeft)),Z.paddingRight&&(J.width+=parseFloat(Z.paddingRight)),J.row.domNode.style.width=""}updateItemInDOM(J,Z){J.row.domNode.style.top=`${this.elementTop(Z)}px`,this.setRowHeight&&(J.row.domNode.style.height=`${J.size}px`),this.setRowLineHeight&&(J.row.domNode.style.lineHeight=`${J.size}px`),J.row.domNode.setAttribute("data-index",`${Z}`),J.row.domNode.setAttribute("data-last-element",Z===this.length-1?"true":"false"),J.row.domNode.setAttribute("data-parity",Z%2===0?"even":"odd"),J.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(J.element,Z,this.length))),J.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(J.element,Z))),J.row.domNode.setAttribute("id",this.getElementDomId(Z)),J.row.domNode.classList.toggle("drop-target",J.dropTarget)}removeItemFromDOM(J){const Z=this.items[J];if(Z.dragStartDisposable.dispose(),Z.row){const Q=this.renderers.get(Z.templateId);Q&&Q.disposeElement&&Q.disposeElement(Z.element,J,Z.row.templateData,Z.size),this.cache.release(Z.row),Z.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(J,Z){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:J,reuseAnimation:Z})}get scrollTop(){return this.getScrollTop()}set scrollTop(J){this.setScrollTop(J)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return p.ju.map(this.disposables.add(new P.Y(this.domNode,"click")).event,J=>this.toMouseEvent(J))}get onMouseDblClick(){return p.ju.map(this.disposables.add(new P.Y(this.domNode,"dblclick")).event,J=>this.toMouseEvent(J))}get onMouseMiddleClick(){return p.ju.filter(p.ju.map(this.disposables.add(new P.Y(this.domNode,"auxclick")).event,J=>this.toMouseEvent(J)),J=>J.browserEvent.button===1)}get onMouseDown(){return p.ju.map(this.disposables.add(new P.Y(this.domNode,"mousedown")).event,J=>this.toMouseEvent(J))}get onContextMenu(){return p.ju.any(p.ju.map(this.disposables.add(new P.Y(this.domNode,"contextmenu")).event,J=>this.toMouseEvent(J)),p.ju.map(this.disposables.add(new P.Y(this.domNode,D.t.Contextmenu)).event,J=>this.toGestureEvent(J)))}get onTouchStart(){return p.ju.map(this.disposables.add(new P.Y(this.domNode,"touchstart")).event,J=>this.toTouchEvent(J))}get onTap(){return p.ju.map(this.disposables.add(new P.Y(this.rowsContainer,D.t.Tap)).event,J=>this.toGestureEvent(J))}toMouseEvent(J){const Z=this.getItemIndexFromEventTarget(J.target||null),Q=typeof Z=="undefined"?void 0:this.items[Z],le=Q&&Q.element;return{browserEvent:J,index:Z,element:le}}toTouchEvent(J){const Z=this.getItemIndexFromEventTarget(J.target||null),Q=typeof Z=="undefined"?void 0:this.items[Z],le=Q&&Q.element;return{browserEvent:J,index:Z,element:le}}toGestureEvent(J){const Z=this.getItemIndexFromEventTarget(J.initialTarget||null),Q=typeof Z=="undefined"?void 0:this.items[Z],le=Q&&Q.element;return{browserEvent:J,index:Z,element:le}}toDragEvent(J){const Z=this.getItemIndexFromEventTarget(J.target||null),Q=typeof Z=="undefined"?void 0:this.items[Z],le=Q&&Q.element;return{browserEvent:J,index:Z,element:le}}onScroll(J){try{const Z=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(Z,J.scrollTop,J.height,J.scrollLeft,J.scrollWidth),this.supportDynamicHeights&&this._rerender(J.scrollTop,J.height,J.inSmoothScrolling)}catch(Z){throw console.error("Got bad scroll event:",J),Z}}onTouchChange(J){J.preventDefault(),J.stopPropagation(),this.scrollTop-=J.translationY}onDragStart(J,Z,Q){if(!Q.dataTransfer)return;const le=this.dnd.getDragElements(J);if(Q.dataTransfer.effectAllowed="copyMove",Q.dataTransfer.setData(H.go.TEXT,Z),Q.dataTransfer.setDragImage){let xe;this.dnd.getDragLabel&&(xe=this.dnd.getDragLabel(le,Q)),typeof xe=="undefined"&&(xe=String(le.length));const j=(0,O.$)(".monaco-drag-image");j.textContent=xe,document.body.appendChild(j),Q.dataTransfer.setDragImage(j,-10,-10),setTimeout(()=>document.body.removeChild(j),0)}this.currentDragData=new T(le),H.P$.CurrentDragAndDropData=new M(le),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,Q)}onDragOver(J){if(J.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),H.P$.CurrentDragAndDropData&&H.P$.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(J.browserEvent),!J.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(H.P$.CurrentDragAndDropData)this.currentDragData=H.P$.CurrentDragAndDropData;else{if(!J.browserEvent.dataTransfer.types)return!1;this.currentDragData=new z}const Z=this.dnd.onDragOver(this.currentDragData,J.element,J.index,J.browserEvent);if(this.canDrop=typeof Z=="boolean"?Z:Z.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;J.browserEvent.dataTransfer.dropEffect=typeof Z!="boolean"&&Z.effect===0?"copy":"move";let Q;if(typeof Z!="boolean"&&Z.feedback?Q=Z.feedback:typeof J.index=="undefined"?Q=[-1]:Q=[J.index],Q=(0,I.EB)(Q).filter(le=>le>=-1&&lele-xe),Q=Q[0]===-1?[-1]:Q,oe(this.currentDragFeedback,Q))return!0;if(this.currentDragFeedback=Q,this.currentDragFeedbackDisposable.dispose(),Q[0]===-1)this.domNode.classList.add("drop-target"),this.rowsContainer.classList.add("drop-target"),this.currentDragFeedbackDisposable=(0,a.OF)(()=>{this.domNode.classList.remove("drop-target"),this.rowsContainer.classList.remove("drop-target")});else{for(const le of Q){const xe=this.items[le];xe.dropTarget=!0,xe.row&&xe.row.domNode.classList.add("drop-target")}this.currentDragFeedbackDisposable=(0,a.OF)(()=>{for(const le of Q){const xe=this.items[le];xe.dropTarget=!1,xe.row&&xe.row.domNode.classList.remove("drop-target")}})}return!0}onDragLeave(J){var Z,Q;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,y.Vg)(()=>this.clearDragOverFeedback(),100),this.currentDragData&&((Q=(Z=this.dnd).onDragLeave)===null||Q===void 0||Q.call(Z,this.currentDragData,J.element,J.index,J.browserEvent))}onDrop(J){if(!this.canDrop)return;const Z=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,H.P$.CurrentDragAndDropData=void 0,!(!Z||!J.browserEvent.dataTransfer)&&(J.browserEvent.preventDefault(),Z.update(J.browserEvent.dataTransfer),this.dnd.drop(Z,J.element,J.index,J.browserEvent))}onDragEnd(J){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,H.P$.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(J)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=a.JT.None}setupDragAndDropScrollTopAnimation(J){if(!this.dragOverAnimationDisposable){const Z=(0,O.xQ)(this.domNode).top;this.dragOverAnimationDisposable=(0,O.jt)(this.animateDragAndDropScrollTop.bind(this,Z))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,y.Vg)(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=J.pageY}animateDragAndDropScrollTop(J){if(this.dragOverMouseY===void 0)return;const Z=this.dragOverMouseY-J,Q=this.renderHeight-35;Z<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(Z-35))):Z>Q&&(this.scrollTop+=Math.min(14,Math.floor(.3*(Z-Q))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(J){const Z=this.scrollableElement.getDomNode();let Q=J;for(;Q instanceof HTMLElement&&Q!==this.rowsContainer&&Z.contains(Q);){const le=Q.getAttribute("data-index");if(le){const xe=Number(le);if(!isNaN(xe))return xe}Q=Q.parentElement}}getRenderRange(J,Z){return{start:this.rangeMap.indexAt(J),end:this.rangeMap.indexAfter(J+Z-1)}}_rerender(J,Z,Q){const le=this.getRenderRange(J,Z);let xe,j;J===this.elementTop(le.start)?(xe=le.start,j=0):le.end-le.start>1&&(xe=le.start+1,j=this.elementTop(xe)-J);let R=0;for(;;){const V=this.getRenderRange(J,Z);let K=!1;for(let ie=V.start;ieW.splice(ae,fe,ne))}}var I=i(9488),y=i(15393),E=i(41264),p=i(49898),a=i(4669),g=i(75392),w=i(5976),s=i(59870),C=i(36248),f=i(1432),v=i(98401),r=i(5520);class l extends Error{constructor(ae,fe){super(`ListError [${ae}] ${fe}`)}}var m=i(72010),c=function(We,ae,fe,ne){var W=arguments.length,$=W<3?ae:ne===null?ne=Object.getOwnPropertyDescriptor(ae,fe):ne,ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")$=Reflect.decorate(We,ae,fe,ne);else for(var he=We.length-1;he>=0;he--)(ee=We[he])&&($=(W<3?ee($):W>3?ee(ae,fe,$):ee(ae,fe))||$);return W>3&&$&&Object.defineProperty(ae,fe,$),$},b=function(We,ae,fe,ne){function W($){return $ instanceof fe?$:new fe(function(ee){ee($)})}return new(fe||(fe=Promise))(function($,ee){function he(it){try{Ye(ne.next(it))}catch(rt){ee(rt)}}function Pe(it){try{Ye(ne.throw(it))}catch(rt){ee(rt)}}function Ye(it){it.done?$(it.value):W(it.value).then(he,Pe)}Ye((ne=ne.apply(We,ae||[])).next())})};class L{constructor(ae){this.trait=ae,this.renderedElements=[]}get templateId(){return`template:${this.trait.trait}`}renderTemplate(ae){return ae}renderElement(ae,fe,ne){const W=this.renderedElements.findIndex($=>$.templateData===ne);if(W>=0){const $=this.renderedElements[W];this.trait.unrender(ne),$.index=fe}else{const $={index:fe,templateData:ne};this.renderedElements.push($)}this.trait.renderIndex(fe,ne)}splice(ae,fe,ne){const W=[];for(const $ of this.renderedElements)$.index=ae+fe&&W.push({index:$.index+ne-fe,templateData:$.templateData});this.renderedElements=W}renderIndexes(ae){for(const{index:fe,templateData:ne}of this.renderedElements)ae.indexOf(fe)>-1&&this.trait.renderIndex(fe,ne)}disposeTemplate(ae){const fe=this.renderedElements.findIndex(ne=>ne.templateData===ae);fe<0||this.renderedElements.splice(fe,1)}}class T{constructor(ae){this._trait=ae,this.length=0,this.indexes=[],this.sortedIndexes=[],this._onChange=new a.Q5,this.onChange=this._onChange.event}get trait(){return this._trait}get renderer(){return new L(this)}splice(ae,fe,ne){var W;fe=Math.max(0,Math.min(fe,this.length-ae));const $=ne.length-fe,ee=ae+fe,he=[...this.sortedIndexes.filter(Ye=>YeYe?it+ae:-1).filter(Ye=>Ye!==-1),...this.sortedIndexes.filter(Ye=>Ye>=ee).map(Ye=>Ye+$)],Pe=this.length+$;if(this.sortedIndexes.length>0&&he.length===0&&Pe>0){const Ye=(W=this.sortedIndexes.find(it=>it>=ae))!==null&&W!==void 0?W:Pe-1;he.push(Math.min(Ye,Pe-1))}this.renderer.splice(ae,fe,ne.length),this._set(he,he),this.length=Pe}renderIndex(ae,fe){fe.classList.toggle(this._trait,this.contains(ae))}unrender(ae){ae.classList.remove(this._trait)}set(ae,fe){return this._set(ae,[...ae].sort(Fe),fe)}_set(ae,fe,ne){const W=this.indexes,$=this.sortedIndexes;this.indexes=ae,this.sortedIndexes=fe;const ee=ye($,ae);return this.renderer.renderIndexes(ee),this._onChange.fire({indexes:ae,browserEvent:ne}),W}get(){return this.indexes}contains(ae){return(0,I.ry)(this.sortedIndexes,ae,Fe)>=0}dispose(){(0,w.B9)(this._onChange)}}c([p.H],T.prototype,"renderer",null);class M extends T{constructor(ae){super("selected"),this.setAriaSelected=ae}renderIndex(ae,fe){super.renderIndex(ae,fe),this.setAriaSelected&&(this.contains(ae)?fe.setAttribute("aria-selected","true"):fe.setAttribute("aria-selected","false"))}}class z{constructor(ae,fe,ne){this.trait=ae,this.view=fe,this.identityProvider=ne}splice(ae,fe,ne){if(!this.identityProvider)return this.trait.splice(ae,fe,ne.map(()=>!1));const W=this.trait.get().map(ee=>this.identityProvider.getId(this.view.element(ee)).toString()),$=ne.map(ee=>W.indexOf(this.identityProvider.getId(ee).toString())>-1);this.trait.splice(ae,fe,$)}}function oe(We){return We.tagName==="INPUT"||We.tagName==="TEXTAREA"}function se(We){return We.classList.contains("monaco-editor")?!0:We.classList.contains("monaco-list")||!We.parentElement?!1:se(We.parentElement)}class re{constructor(ae,fe,ne){this.list=ae,this.view=fe,this.disposables=new w.SL,this.multipleSelectionDisposables=new w.SL,this.onKeyDown.filter(W=>W.keyCode===3).on(this.onEnter,this,this.disposables),this.onKeyDown.filter(W=>W.keyCode===16).on(this.onUpArrow,this,this.disposables),this.onKeyDown.filter(W=>W.keyCode===18).on(this.onDownArrow,this,this.disposables),this.onKeyDown.filter(W=>W.keyCode===11).on(this.onPageUpArrow,this,this.disposables),this.onKeyDown.filter(W=>W.keyCode===12).on(this.onPageDownArrow,this,this.disposables),this.onKeyDown.filter(W=>W.keyCode===9).on(this.onEscape,this,this.disposables),ne.multipleSelectionSupport!==!1&&this.onKeyDown.filter(W=>(f.dz?W.metaKey:W.ctrlKey)&&W.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables)}get onKeyDown(){return a.ju.chain(this.disposables.add(new H.Y(this.view.domNode,"keydown")).event).filter(ae=>!oe(ae.target)).map(ae=>new O.y(ae))}updateOptions(ae){ae.multipleSelectionSupport!==void 0&&(this.multipleSelectionDisposables.clear(),ae.multipleSelectionSupport&&this.onKeyDown.filter(fe=>(f.dz?fe.metaKey:fe.ctrlKey)&&fe.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables))}onEnter(ae){ae.preventDefault(),ae.stopPropagation(),this.list.setSelection(this.list.getFocus(),ae.browserEvent)}onUpArrow(ae){ae.preventDefault(),ae.stopPropagation(),this.list.focusPrevious(1,!1,ae.browserEvent);const fe=this.list.getFocus()[0];this.list.setAnchor(fe),this.list.reveal(fe),this.view.domNode.focus()}onDownArrow(ae){ae.preventDefault(),ae.stopPropagation(),this.list.focusNext(1,!1,ae.browserEvent);const fe=this.list.getFocus()[0];this.list.setAnchor(fe),this.list.reveal(fe),this.view.domNode.focus()}onPageUpArrow(ae){ae.preventDefault(),ae.stopPropagation(),this.list.focusPreviousPage(ae.browserEvent);const fe=this.list.getFocus()[0];this.list.setAnchor(fe),this.list.reveal(fe),this.view.domNode.focus()}onPageDownArrow(ae){ae.preventDefault(),ae.stopPropagation(),this.list.focusNextPage(ae.browserEvent);const fe=this.list.getFocus()[0];this.list.setAnchor(fe),this.list.reveal(fe),this.view.domNode.focus()}onCtrlA(ae){ae.preventDefault(),ae.stopPropagation(),this.list.setSelection((0,I.w6)(this.list.length),ae.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(ae){this.list.getSelection().length&&(ae.preventDefault(),ae.stopPropagation(),this.list.setSelection([],ae.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}c([p.H],re.prototype,"onKeyDown",null);var De;(function(We){We[We.Idle=0]="Idle",We[We.Typing=1]="Typing"})(De||(De={}));const J=new class{mightProducePrintableCharacter(We){return We.ctrlKey||We.metaKey||We.altKey?!1:We.keyCode>=31&&We.keyCode<=56||We.keyCode>=21&&We.keyCode<=30||We.keyCode>=93&&We.keyCode<=102||We.keyCode>=80&&We.keyCode<=90}};class Z{constructor(ae,fe,ne,W){this.list=ae,this.view=fe,this.keyboardNavigationLabelProvider=ne,this.delegate=W,this.enabled=!1,this.state=De.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new w.SL,this.disposables=new w.SL,this.updateOptions(ae.options)}updateOptions(ae){(typeof ae.enableKeyboardNavigation=="undefined"?!0:!!ae.enableKeyboardNavigation)?this.enable():this.disable(),typeof ae.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=ae.automaticKeyboardNavigation)}enable(){if(this.enabled)return;const ae=a.ju.chain(this.enabledDisposables.add(new H.Y(this.view.domNode,"keydown")).event).filter(W=>!oe(W.target)).filter(()=>this.automaticKeyboardNavigation||this.triggered).map(W=>new O.y(W)).filter(W=>this.delegate.mightProducePrintableCharacter(W)).forEach(W=>{W.stopPropagation(),W.preventDefault()}).map(W=>W.browserEvent.key).event,fe=a.ju.debounce(ae,()=>null,800);a.ju.reduce(a.ju.any(ae,fe),(W,$)=>$===null?null:(W||"")+$)(this.onInput,this,this.enabledDisposables),fe(this.onClear,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var ae;const fe=this.list.getFocus();if(fe.length>0&&fe[0]===this.previouslyFocused){const ne=(ae=this.list.options.accessibilityProvider)===null||ae===void 0?void 0:ae.getAriaLabel(this.list.element(fe[0]));ne&&(0,D.Z9)(ne)}this.previouslyFocused=-1}onInput(ae){if(!ae){this.state=De.Idle,this.triggered=!1;return}const fe=this.list.getFocus(),ne=fe.length>0?fe[0]:0,W=this.state===De.Idle?1:0;this.state=De.Typing;for(let $=0;$!oe(W.target)).map(W=>new O.y(W)).filter(W=>W.keyCode===2&&!W.ctrlKey&&!W.metaKey&&!W.shiftKey&&!W.altKey).on(this.onTab,this,this.disposables)}onTab(ae){if(ae.target!==this.view.domNode)return;const fe=this.list.getFocus();if(fe.length===0)return;const ne=this.view.domElement(fe[0]);if(!ne)return;const W=ne.querySelector("[tabIndex]");if(!W||!(W instanceof HTMLElement)||W.tabIndex===-1)return;const $=window.getComputedStyle(W);$.visibility==="hidden"||$.display==="none"||(ae.preventDefault(),ae.stopPropagation(),W.focus())}dispose(){this.disposables.dispose()}}function le(We){return f.dz?We.browserEvent.metaKey:We.browserEvent.ctrlKey}function xe(We){return We.browserEvent.shiftKey}function j(We){return We instanceof MouseEvent&&We.button===2}const R={isSelectionSingleChangeEvent:le,isSelectionRangeChangeEvent:xe};class V{constructor(ae){this.list=ae,this.disposables=new w.SL,this._onPointer=new a.Q5,this.onPointer=this._onPointer.event,ae.options.multipleSelectionSupport!==!1&&(this.multipleSelectionController=this.list.options.multipleSelectionController||R),this.mouseSupport=typeof ae.options.mouseSupport=="undefined"||!!ae.options.mouseSupport,this.mouseSupport&&(ae.onMouseDown(this.onMouseDown,this,this.disposables),ae.onContextMenu(this.onContextMenu,this,this.disposables),ae.onMouseDblClick(this.onDoubleClick,this,this.disposables),ae.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(P.o.addTarget(ae.getHTMLElement()))),a.ju.any(ae.onMouseClick,ae.onMouseMiddleClick,ae.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(ae){ae.multipleSelectionSupport!==void 0&&(this.multipleSelectionController=void 0,ae.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||R))}isSelectionSingleChangeEvent(ae){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(ae):!1}isSelectionRangeChangeEvent(ae){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(ae):!1}isSelectionChangeEvent(ae){return this.isSelectionSingleChangeEvent(ae)||this.isSelectionRangeChangeEvent(ae)}onMouseDown(ae){se(ae.browserEvent.target)||document.activeElement!==ae.browserEvent.target&&this.list.domFocus()}onContextMenu(ae){if(se(ae.browserEvent.target))return;const fe=typeof ae.index=="undefined"?[]:[ae.index];this.list.setFocus(fe,ae.browserEvent)}onViewPointer(ae){if(!this.mouseSupport||oe(ae.browserEvent.target)||se(ae.browserEvent.target))return;const fe=ae.index;if(typeof fe=="undefined"){this.list.setFocus([],ae.browserEvent),this.list.setSelection([],ae.browserEvent),this.list.setAnchor(void 0);return}if(this.isSelectionRangeChangeEvent(ae))return this.changeSelection(ae);if(this.isSelectionChangeEvent(ae))return this.changeSelection(ae);this.list.setFocus([fe],ae.browserEvent),this.list.setAnchor(fe),j(ae.browserEvent)||this.list.setSelection([fe],ae.browserEvent),this._onPointer.fire(ae)}onDoubleClick(ae){if(oe(ae.browserEvent.target)||se(ae.browserEvent.target)||this.isSelectionChangeEvent(ae))return;const fe=this.list.getFocus();this.list.setSelection(fe,ae.browserEvent)}changeSelection(ae){const fe=ae.index;let ne=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(ae)){if(typeof ne=="undefined"){const it=this.list.getFocus()[0];ne=it!=null?it:fe,this.list.setAnchor(ne)}const W=Math.min(ne,fe),$=Math.max(ne,fe),ee=(0,I.w6)(W,$+1),he=this.list.getSelection(),Pe=ge(ye(he,[ne]),ne);if(Pe.length===0)return;const Ye=ye(ee,ve(he,Pe));this.list.setSelection(Ye,ae.browserEvent),this.list.setFocus([fe],ae.browserEvent)}else if(this.isSelectionSingleChangeEvent(ae)){const W=this.list.getSelection(),$=W.filter(ee=>ee!==fe);this.list.setFocus([fe]),this.list.setAnchor(fe),W.length===$.length?this.list.setSelection([...$,fe],ae.browserEvent):this.list.setSelection($,ae.browserEvent)}}dispose(){this.disposables.dispose()}}class K{constructor(ae,fe){this.styleElement=ae,this.selectorSuffix=fe}style(ae){const fe=this.selectorSuffix&&`.${this.selectorSuffix}`,ne=[];ae.listBackground&&(ae.listBackground.isOpaque()?ne.push(`.monaco-list${fe} .monaco-list-rows { background: ${ae.listBackground}; }`):f.dz||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),ae.listFocusBackground&&(ne.push(`.monaco-list${fe}:focus .monaco-list-row.focused { background-color: ${ae.listFocusBackground}; }`),ne.push(`.monaco-list${fe}:focus .monaco-list-row.focused:hover { background-color: ${ae.listFocusBackground}; }`)),ae.listFocusForeground&&ne.push(`.monaco-list${fe}:focus .monaco-list-row.focused { color: ${ae.listFocusForeground}; }`),ae.listActiveSelectionBackground&&(ne.push(`.monaco-list${fe}:focus .monaco-list-row.selected { background-color: ${ae.listActiveSelectionBackground}; }`),ne.push(`.monaco-list${fe}:focus .monaco-list-row.selected:hover { background-color: ${ae.listActiveSelectionBackground}; }`)),ae.listActiveSelectionForeground&&ne.push(`.monaco-list${fe}:focus .monaco-list-row.selected { color: ${ae.listActiveSelectionForeground}; }`),ae.listActiveSelectionIconForeground&&ne.push(`.monaco-list${fe}:focus .monaco-list-row.selected .codicon { color: ${ae.listActiveSelectionIconForeground}; }`),ae.listFocusAndSelectionBackground&&ne.push(` .monaco-drag-image, .monaco-list${fe}:focus .monaco-list-row.selected.focused { background-color: ${ae.listFocusAndSelectionBackground}; } `),ae.listFocusAndSelectionForeground&&ne.push(` .monaco-drag-image, .monaco-list${fe}:focus .monaco-list-row.selected.focused { color: ${ae.listFocusAndSelectionForeground}; } `),ae.listInactiveFocusForeground&&(ne.push(`.monaco-list${fe} .monaco-list-row.focused { color: ${ae.listInactiveFocusForeground}; }`),ne.push(`.monaco-list${fe} .monaco-list-row.focused:hover { color: ${ae.listInactiveFocusForeground}; }`)),ae.listInactiveSelectionIconForeground&&ne.push(`.monaco-list${fe} .monaco-list-row.focused .codicon { color: ${ae.listInactiveSelectionIconForeground}; }`),ae.listInactiveFocusBackground&&(ne.push(`.monaco-list${fe} .monaco-list-row.focused { background-color: ${ae.listInactiveFocusBackground}; }`),ne.push(`.monaco-list${fe} .monaco-list-row.focused:hover { background-color: ${ae.listInactiveFocusBackground}; }`)),ae.listInactiveSelectionBackground&&(ne.push(`.monaco-list${fe} .monaco-list-row.selected { background-color: ${ae.listInactiveSelectionBackground}; }`),ne.push(`.monaco-list${fe} .monaco-list-row.selected:hover { background-color: ${ae.listInactiveSelectionBackground}; }`)),ae.listInactiveSelectionForeground&&ne.push(`.monaco-list${fe} .monaco-list-row.selected { color: ${ae.listInactiveSelectionForeground}; }`),ae.listHoverBackground&&ne.push(`.monaco-list${fe}:not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${ae.listHoverBackground}; }`),ae.listHoverForeground&&ne.push(`.monaco-list${fe} .monaco-list-row:hover:not(.selected):not(.focused) { color: ${ae.listHoverForeground}; }`),ae.listSelectionOutline&&ne.push(`.monaco-list${fe} .monaco-list-row.selected { outline: 1px dotted ${ae.listSelectionOutline}; outline-offset: -1px; }`),ae.listFocusOutline&&ne.push(` .monaco-drag-image, .monaco-list${fe}:focus .monaco-list-row.focused { outline: 1px solid ${ae.listFocusOutline}; outline-offset: -1px; } `),ae.listInactiveFocusOutline&&ne.push(`.monaco-list${fe} .monaco-list-row.focused { outline: 1px dotted ${ae.listInactiveFocusOutline}; outline-offset: -1px; }`),ae.listHoverOutline&&ne.push(`.monaco-list${fe} .monaco-list-row:hover { outline: 1px dashed ${ae.listHoverOutline}; outline-offset: -1px; }`),ae.listDropBackground&&ne.push(` .monaco-list${fe}.drop-target, .monaco-list${fe} .monaco-list-rows.drop-target, .monaco-list${fe} .monaco-list-row.drop-target { background-color: ${ae.listDropBackground} !important; color: inherit !important; } `),ae.listFilterWidgetBackground&&ne.push(`.monaco-list-type-filter { background-color: ${ae.listFilterWidgetBackground} }`),ae.listFilterWidgetOutline&&ne.push(`.monaco-list-type-filter { border: 1px solid ${ae.listFilterWidgetOutline}; }`),ae.listFilterWidgetNoMatchesOutline&&ne.push(`.monaco-list-type-filter.no-matches { border: 1px solid ${ae.listFilterWidgetNoMatchesOutline}; }`),ae.listMatchesShadow&&ne.push(`.monaco-list-type-filter { box-shadow: 1px 1px 1px ${ae.listMatchesShadow}; }`),ae.tableColumnsBorder&&ne.push(` .monaco-table:hover > .monaco-split-view2, .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before { border-color: ${ae.tableColumnsBorder}; }`),this.styleElement.textContent=ne.join(` `)}}const ie={listFocusBackground:E.Il.fromHex("#7FB0D0"),listActiveSelectionBackground:E.Il.fromHex("#0E639C"),listActiveSelectionForeground:E.Il.fromHex("#FFFFFF"),listActiveSelectionIconForeground:E.Il.fromHex("#FFFFFF"),listFocusAndSelectionBackground:E.Il.fromHex("#094771"),listFocusAndSelectionForeground:E.Il.fromHex("#FFFFFF"),listInactiveSelectionBackground:E.Il.fromHex("#3F3F46"),listInactiveSelectionIconForeground:E.Il.fromHex("#FFFFFF"),listHoverBackground:E.Il.fromHex("#2A2D2E"),listDropBackground:E.Il.fromHex("#383B3D"),treeIndentGuidesStroke:E.Il.fromHex("#a9a9a9"),tableColumnsBorder:E.Il.fromHex("#cccccc").transparent(.2)},te={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}}};function ge(We,ae){const fe=We.indexOf(ae);if(fe===-1)return[];const ne=[];let W=fe-1;for(;W>=0&&We[W]===ae-(fe-W);)ne.push(We[W--]);for(ne.reverse(),W=fe;W=We.length)fe.push(ae[W++]);else if(W>=ae.length)fe.push(We[ne++]);else if(We[ne]===ae[W]){fe.push(We[ne]),ne++,W++;continue}else We[ne]=We.length)fe.push(ae[W++]);else if(W>=ae.length)fe.push(We[ne++]);else if(We[ne]===ae[W]){ne++,W++;continue}else We[ne]We-ae;class we{constructor(ae,fe){this._templateId=ae,this.renderers=fe}get templateId(){return this._templateId}renderTemplate(ae){return this.renderers.map(fe=>fe.renderTemplate(ae))}renderElement(ae,fe,ne,W){let $=0;for(const ee of this.renderers)ee.renderElement(ae,fe,ne[$++],W)}disposeElement(ae,fe,ne,W){let $=0;for(const ee of this.renderers)ee.disposeElement&&ee.disposeElement(ae,fe,ne[$],W),$+=1}disposeTemplate(ae){let fe=0;for(const ne of this.renderers)ne.disposeTemplate(ae[fe++])}}class ue{constructor(ae){this.accessibilityProvider=ae,this.templateId="a18n"}renderTemplate(ae){return ae}renderElement(ae,fe,ne){const W=this.accessibilityProvider.getAriaLabel(ae);W?ne.setAttribute("aria-label",W):ne.removeAttribute("aria-label");const $=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(ae);typeof $=="number"?ne.setAttribute("aria-level",`${$}`):ne.removeAttribute("aria-level")}disposeTemplate(ae){}}class ce{constructor(ae,fe){this.list=ae,this.dnd=fe}getDragElements(ae){const fe=this.list.getSelectedElements();return fe.indexOf(ae)>-1?fe:[ae]}getDragURI(ae){return this.dnd.getDragURI(ae)}getDragLabel(ae,fe){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(ae,fe)}onDragStart(ae,fe){this.dnd.onDragStart&&this.dnd.onDragStart(ae,fe)}onDragOver(ae,fe,ne,W){return this.dnd.onDragOver(ae,fe,ne,W)}onDragLeave(ae,fe,ne,W){var $,ee;(ee=($=this.dnd).onDragLeave)===null||ee===void 0||ee.call($,ae,fe,ne,W)}onDragEnd(ae){this.dnd.onDragEnd&&this.dnd.onDragEnd(ae)}drop(ae,fe,ne,W){this.dnd.drop(ae,fe,ne,W)}}class Ve{constructor(ae,fe,ne,W,$=te){var ee;this.user=ae,this._options=$,this.focus=new T("focused"),this.anchor=new T("anchor"),this.eventBufferer=new a.E7,this._ariaLabel="",this.disposables=new w.SL,this._onDidDispose=new a.Q5,this.onDidDispose=this._onDidDispose.event;const he=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?(ee=this._options.accessibilityProvider)===null||ee===void 0?void 0:ee.getWidgetRole():"list";this.selection=new M(he!=="listbox"),(0,C.jB)($,ie,!1);const Pe=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=$.accessibilityProvider,this.accessibilityProvider&&(Pe.push(new ue(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),W=W.map(it=>new we(it.templateId,[...Pe,it]));const Ye=Object.assign(Object.assign({},$),{dnd:$.dnd&&new ce(this,$.dnd)});if(this.view=new m.Bv(fe,ne,W,Ye),this.view.domNode.setAttribute("role",he),$.styleController)this.styleController=$.styleController(this.view.domId);else{const it=(0,h.dS)(this.view.domNode);this.styleController=new K(it,this.view.domId)}if(this.spliceable=new G([new z(this.focus,this.view,$.identityProvider),new z(this.selection,this.view,$.identityProvider),new z(this.anchor,this.view,$.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new Q(this,this.view)),(typeof $.keyboardSupport!="boolean"||$.keyboardSupport)&&(this.keyboardController=new re(this,this.view,$),this.disposables.add(this.keyboardController)),$.keyboardNavigationLabelProvider){const it=$.keyboardNavigationDelegate||J;this.typeLabelController=new Z(this,this.view,$.keyboardNavigationLabelProvider,it),this.disposables.add(this.typeLabelController)}this.mouseController=this.createMouseController($),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),this._options.multipleSelectionSupport!==!1&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return a.ju.map(this.eventBufferer.wrapEvent(this.focus.onChange),ae=>this.toListEvent(ae))}get onDidChangeSelection(){return a.ju.map(this.eventBufferer.wrapEvent(this.selection.onChange),ae=>this.toListEvent(ae))}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let ae=!1;const fe=a.ju.chain(this.disposables.add(new H.Y(this.view.domNode,"keydown")).event).map($=>new O.y($)).filter($=>ae=$.keyCode===58||$.shiftKey&&$.keyCode===68).map(H.p).filter(()=>!1).event,ne=a.ju.chain(this.disposables.add(new H.Y(this.view.domNode,"keyup")).event).forEach(()=>ae=!1).map($=>new O.y($)).filter($=>$.keyCode===58||$.shiftKey&&$.keyCode===68).map(H.p).map(({browserEvent:$})=>{const ee=this.getFocus(),he=ee.length?ee[0]:void 0,Pe=typeof he!="undefined"?this.view.element(he):void 0,Ye=typeof he!="undefined"?this.view.domElement(he):this.view.domNode;return{index:he,element:Pe,anchor:Ye,browserEvent:$}}).event,W=a.ju.chain(this.view.onContextMenu).filter($=>!ae).map(({element:$,index:ee,browserEvent:he})=>({element:$,index:ee,anchor:{x:he.pageX+1,y:he.pageY},browserEvent:he})).event;return a.ju.any(fe,ne,W)}get onKeyDown(){return this.disposables.add(new H.Y(this.view.domNode,"keydown")).event}get onDidFocus(){return a.ju.signal(this.disposables.add(new H.Y(this.view.domNode,"focus",!0)).event)}createMouseController(ae){return new V(this)}updateOptions(ae={}){var fe;this._options=Object.assign(Object.assign({},this._options),ae),this.typeLabelController&&this.typeLabelController.updateOptions(this._options),this._options.multipleSelectionController!==void 0&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(ae),(fe=this.keyboardController)===null||fe===void 0||fe.updateOptions(ae),this.view.updateOptions(ae)}get options(){return this._options}splice(ae,fe,ne=[]){if(ae<0||ae>this.view.length)throw new l(this.user,`Invalid start index: ${ae}`);if(fe<0)throw new l(this.user,`Invalid delete count: ${fe}`);fe===0&&ne.length===0||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(ae,fe,ne))}rerender(){this.view.rerender()}element(ae){return this.view.element(ae)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(ae){this.view.setScrollTop(ae)}get ariaLabel(){return this._ariaLabel}set ariaLabel(ae){this._ariaLabel=ae,this.view.domNode.setAttribute("aria-label",ae)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(ae,fe){this.view.layout(ae,fe)}setSelection(ae,fe){for(const ne of ae)if(ne<0||ne>=this.length)throw new l(this.user,`Invalid index ${ne}`);this.selection.set(ae,fe)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(ae=>this.view.element(ae))}setAnchor(ae){if(typeof ae=="undefined"){this.anchor.set([]);return}if(ae<0||ae>=this.length)throw new l(this.user,`Invalid index ${ae}`);this.anchor.set([ae])}getAnchor(){return(0,I.Xh)(this.anchor.get(),void 0)}getAnchorElement(){const ae=this.getAnchor();return typeof ae=="undefined"?void 0:this.element(ae)}setFocus(ae,fe){for(const ne of ae)if(ne<0||ne>=this.length)throw new l(this.user,`Invalid index ${ne}`);this.focus.set(ae,fe)}focusNext(ae=1,fe=!1,ne,W){if(this.length===0)return;const $=this.focus.get(),ee=this.findNextIndex($.length>0?$[0]+ae:0,fe,W);ee>-1&&this.setFocus([ee],ne)}focusPrevious(ae=1,fe=!1,ne,W){if(this.length===0)return;const $=this.focus.get(),ee=this.findPreviousIndex($.length>0?$[0]-ae:0,fe,W);ee>-1&&this.setFocus([ee],ne)}focusNextPage(ae,fe){return b(this,void 0,void 0,function*(){let ne=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);ne=ne===0?0:ne-1;const W=this.view.element(ne),$=this.getFocusedElements()[0];if($!==W){const ee=this.findPreviousIndex(ne,!1,fe);ee>-1&&$!==this.view.element(ee)?this.setFocus([ee],ae):this.setFocus([ne],ae)}else{const ee=this.view.getScrollTop();this.view.setScrollTop(ee+this.view.renderHeight-this.view.elementHeight(ne)),this.view.getScrollTop()!==ee&&(this.setFocus([]),yield(0,y.Vs)(0),yield this.focusNextPage(ae,fe))}})}focusPreviousPage(ae,fe){return b(this,void 0,void 0,function*(){let ne;const W=this.view.getScrollTop();W===0?ne=this.view.indexAt(W):ne=this.view.indexAfter(W-1);const $=this.view.element(ne),ee=this.getFocusedElements()[0];if(ee!==$){const he=this.findNextIndex(ne,!1,fe);he>-1&&ee!==this.view.element(he)?this.setFocus([he],ae):this.setFocus([ne],ae)}else{const he=W;this.view.setScrollTop(W-this.view.renderHeight),this.view.getScrollTop()!==he&&(this.setFocus([]),yield(0,y.Vs)(0),yield this.focusPreviousPage(ae,fe))}})}focusLast(ae,fe){if(this.length===0)return;const ne=this.findPreviousIndex(this.length-1,!1,fe);ne>-1&&this.setFocus([ne],ae)}focusFirst(ae,fe){this.focusNth(0,ae,fe)}focusNth(ae,fe,ne){if(this.length===0)return;const W=this.findNextIndex(ae,!1,ne);W>-1&&this.setFocus([W],fe)}findNextIndex(ae,fe=!1,ne){for(let W=0;W=this.length&&!fe)return-1;if(ae=ae%this.length,!ne||ne(this.element(ae)))return ae;ae++}return-1}findPreviousIndex(ae,fe=!1,ne){for(let W=0;Wthis.view.element(ae))}reveal(ae,fe){if(ae<0||ae>=this.length)throw new l(this.user,`Invalid index ${ae}`);const ne=this.view.getScrollTop(),W=this.view.elementTop(ae),$=this.view.elementHeight(ae);if((0,v.hj)(fe)){const ee=$-this.view.renderHeight;this.view.setScrollTop(ee*(0,s.u)(fe,0,1)+W)}else{const ee=W+$,he=ne+this.view.renderHeight;W=he||(W=he&&$>=this.view.renderHeight?this.view.setScrollTop(W):ee>=he&&this.view.setScrollTop(ee-this.view.renderHeight))}}getRelativeTop(ae){if(ae<0||ae>=this.length)throw new l(this.user,`Invalid index ${ae}`);const fe=this.view.getScrollTop(),ne=this.view.elementTop(ae),W=this.view.elementHeight(ae);if(nefe+this.view.renderHeight)return null;const $=W-this.view.renderHeight;return Math.abs((fe-ne)/$)}getHTMLElement(){return this.view.domNode}style(ae){this.styleController.style(ae)}toListEvent({indexes:ae,browserEvent:fe}){return{indexes:ae,elements:ae.map(ne=>this.view.element(ne)),browserEvent:fe}}_onFocusChange(){const ae=this.focus.get();this.view.domNode.classList.toggle("element-focused",ae.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var ae;const fe=this.focus.get();if(fe.length>0){let ne;!((ae=this.accessibilityProvider)===null||ae===void 0)&&ae.getActiveDescendantId&&(ne=this.accessibilityProvider.getActiveDescendantId(this.view.element(fe[0]))),this.view.domNode.setAttribute("aria-activedescendant",ne||this.view.getElementDomId(fe[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const ae=this.selection.get();this.view.domNode.classList.toggle("selection-none",ae.length===0),this.view.domNode.classList.toggle("selection-single",ae.length===1),this.view.domNode.classList.toggle("selection-multiple",ae.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}c([p.H],Ve.prototype,"onDidChangeFocus",null),c([p.H],Ve.prototype,"onDidChangeSelection",null),c([p.H],Ve.prototype,"onContextMenu",null),c([p.H],Ve.prototype,"onKeyDown",null),c([p.H],Ve.prototype,"onDidFocus",null)},49335:function(xt,Te,i){"use strict";i.d(Te,{S:function(){return h}});const h="monaco-mouse-cursor-text"},83080:function(xt,Te,i){"use strict";i.d(Te,{l:function(){return a},g:function(){return l}});var h=i(65321),H=i(4850),O=i(10553),P=i(15393),D=i(49898),G=i(4669),I=i(5976),y=i(1432),E=function(m,c,b,L){var T=arguments.length,M=T<3?c:L===null?L=Object.getOwnPropertyDescriptor(c,b):L,z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(m,c,b,L);else for(var oe=m.length-1;oe>=0;oe--)(z=m[oe])&&(M=(T<3?z(M):T>3?z(c,b,M):z(c,b))||M);return T>3&&M&&Object.defineProperty(c,b,M),M};let p=!1;var a;(function(m){m.North="north",m.South="south",m.East="east",m.West="west"})(a||(a={}));let g=4;const w=new G.Q5;let s=300;const C=new G.Q5;class f{constructor(){this.disposables=new I.SL}get onPointerMove(){return this.disposables.add(new H.Y(window,"mousemove")).event}get onPointerUp(){return this.disposables.add(new H.Y(window,"mouseup")).event}dispose(){this.disposables.dispose()}}E([D.H],f.prototype,"onPointerMove",null),E([D.H],f.prototype,"onPointerUp",null);class v{constructor(c){this.el=c,this.disposables=new I.SL}get onPointerMove(){return this.disposables.add(new H.Y(this.el,O.t.Change)).event}get onPointerUp(){return this.disposables.add(new H.Y(this.el,O.t.End)).event}dispose(){this.disposables.dispose()}}E([D.H],v.prototype,"onPointerMove",null),E([D.H],v.prototype,"onPointerUp",null);class r{constructor(c){this.factory=c}get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}dispose(){}}E([D.H],r.prototype,"onPointerMove",null),E([D.H],r.prototype,"onPointerUp",null);class l extends I.JT{constructor(c,b,L){super(),this.hoverDelay=s,this.hoverDelayer=this._register(new P.vp(this.hoverDelay)),this._state=3,this._onDidEnablementChange=this._register(new G.Q5),this.onDidEnablementChange=this._onDidEnablementChange.event,this._onDidStart=this._register(new G.Q5),this.onDidStart=this._onDidStart.event,this._onDidChange=this._register(new G.Q5),this.onDidChange=this._onDidChange.event,this._onDidReset=this._register(new G.Q5),this.onDidReset=this._onDidReset.event,this._onDidEnd=this._register(new G.Q5),this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.orthogonalStartSashDisposables=this._register(new I.SL),this.orthogonalStartDragHandleDisposables=this._register(new I.SL),this.orthogonalEndSashDisposables=this._register(new I.SL),this.orthogonalEndDragHandleDisposables=this._register(new I.SL),this.el=(0,h.R3)(c,(0,h.$)(".monaco-sash")),L.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${L.orthogonalEdge}`),y.dz&&this.el.classList.add("mac");const T=this._register(new H.Y(this.el,"mousedown")).event;this._register(T(J=>this.onPointerStart(J,new f),this));const M=this._register(new H.Y(this.el,"dblclick")).event;this._register(M(this.onPointerDoublePress,this));const z=this._register(new H.Y(this.el,"mouseenter")).event;this._register(z(()=>l.onMouseEnter(this)));const oe=this._register(new H.Y(this.el,"mouseleave")).event;this._register(oe(()=>l.onMouseLeave(this))),this._register(O.o.addTarget(this.el));const se=G.ju.map(this._register(new H.Y(this.el,O.t.Start)).event,J=>{var Z;return Object.assign(Object.assign({},J),{target:(Z=J.initialTarget)!==null&&Z!==void 0?Z:null})});this._register(se(J=>this.onPointerStart(J,new v(this.el)),this));const re=this._register(new H.Y(this.el,O.t.Tap)).event,De=G.ju.map(G.ju.filter(G.ju.debounce(re,(J,Z)=>{var Q;return{event:Z,count:((Q=J==null?void 0:J.count)!==null&&Q!==void 0?Q:0)+1}},250),({count:J})=>J===2),({event:J})=>{var Z;return Object.assign(Object.assign({},J),{target:(Z=J.initialTarget)!==null&&Z!==void 0?Z:null})});this._register(De(this.onPointerDoublePress,this)),typeof L.size=="number"?(this.size=L.size,L.orientation===0?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=g,this._register(w.event(J=>{this.size=J,this.layout()}))),this._register(C.event(J=>this.hoverDelay=J)),this.hidden=!1,this.layoutProvider=b,this.orthogonalStartSash=L.orthogonalStartSash,this.orthogonalEndSash=L.orthogonalEndSash,this.orientation=L.orientation||0,this.orientation===1?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",p),this.layout()}get state(){return this._state}set state(c){this._state!==c&&(this.el.classList.toggle("disabled",c===0),this.el.classList.toggle("minimum",c===1),this.el.classList.toggle("maximum",c===2),this._state=c,this._onDidEnablementChange.fire(c))}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(c){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),c){const b=L=>{this.orthogonalStartDragHandleDisposables.clear(),L!==0&&(this._orthogonalStartDragHandle=(0,h.R3)(this.el,(0,h.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,I.OF)(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new H.Y(this._orthogonalStartDragHandle,"mouseenter")).event(()=>l.onMouseEnter(c),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new H.Y(this._orthogonalStartDragHandle,"mouseleave")).event(()=>l.onMouseLeave(c),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(c.onDidEnablementChange(b,this)),b(c.state)}this._orthogonalStartSash=c}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(c){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),c){const b=L=>{this.orthogonalEndDragHandleDisposables.clear(),L!==0&&(this._orthogonalEndDragHandle=(0,h.R3)(this.el,(0,h.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,I.OF)(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new H.Y(this._orthogonalEndDragHandle,"mouseenter")).event(()=>l.onMouseEnter(c),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new H.Y(this._orthogonalEndDragHandle,"mouseleave")).event(()=>l.onMouseLeave(c),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(c.onDidEnablementChange(b,this)),b(c.state)}this._orthogonalEndSash=c}onPointerStart(c,b){h.zB.stop(c);let L=!1;if(!c.__orthogonalSashEvent){const le=this.getOrthogonalSash(c);le&&(L=!0,c.__orthogonalSashEvent=!0,le.onPointerStart(c,new r(b)))}if(this.linkedSash&&!c.__linkedSashEvent&&(c.__linkedSashEvent=!0,this.linkedSash.onPointerStart(c,new r(b))),!this.state)return;const T=(0,h.H$)("iframe");for(const le of T)le.style.pointerEvents="none";const M=c.pageX,z=c.pageY,oe=c.altKey,se={startX:M,currentX:M,startY:z,currentY:z,altKey:oe};this.el.classList.add("active"),this._onDidStart.fire(se);const re=(0,h.dS)(this.el),De=()=>{let le="";L?le="all-scroll":this.orientation===1?this.state===1?le="s-resize":this.state===2?le="n-resize":le=y.dz?"row-resize":"ns-resize":this.state===1?le="e-resize":this.state===2?le="w-resize":le=y.dz?"col-resize":"ew-resize",re.textContent=`* { cursor: ${le} !important; }`},J=new I.SL;De(),L||this.onDidEnablementChange(De,null,J);const Z=le=>{h.zB.stop(le,!1);const xe={startX:M,currentX:le.pageX,startY:z,currentY:le.pageY,altKey:oe};this._onDidChange.fire(xe)},Q=le=>{h.zB.stop(le,!1),this.el.removeChild(re),this.el.classList.remove("active"),this._onDidEnd.fire(),J.dispose();for(const xe of T)xe.style.pointerEvents="auto"};b.onPointerMove(Z,null,J),b.onPointerUp(Q,null,J),J.add(b)}onPointerDoublePress(c){const b=this.getOrthogonalSash(c);b&&b._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(c,b=!1){c.el.classList.contains("active")?(c.hoverDelayer.cancel(),c.el.classList.add("hover")):c.hoverDelayer.trigger(()=>c.el.classList.add("hover"),c.hoverDelay).then(void 0,()=>{}),!b&&c.linkedSash&&l.onMouseEnter(c.linkedSash,!0)}static onMouseLeave(c,b=!1){c.hoverDelayer.cancel(),c.el.classList.remove("hover"),!b&&c.linkedSash&&l.onMouseLeave(c.linkedSash,!0)}clearSashHoverState(){l.onMouseLeave(this)}layout(){if(this.orientation===0){const c=this.layoutProvider;this.el.style.left=c.getVerticalSashLeft(this)-this.size/2+"px",c.getVerticalSashTop&&(this.el.style.top=c.getVerticalSashTop(this)+"px"),c.getVerticalSashHeight&&(this.el.style.height=c.getVerticalSashHeight(this)+"px")}else{const c=this.layoutProvider;this.el.style.top=c.getHorizontalSashTop(this)-this.size/2+"px",c.getHorizontalSashLeft&&(this.el.style.left=c.getHorizontalSashLeft(this)+"px"),c.getHorizontalSashWidth&&(this.el.style.width=c.getHorizontalSashWidth(this)+"px")}}hide(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")}getOrthogonalSash(c){if(!(!c.target||!(c.target instanceof HTMLElement))&&c.target.classList.contains("orthogonal-drag-handle"))return c.target.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash}dispose(){super.dispose(),this.el.remove()}}},13433:function(xt,Te,i){"use strict";i.d(Te,{s$:function(){return le},NB:function(){return Z},$Z:function(){return Q}});var h=i(16268),H=i(65321),O=i(38626),P=i(23938),D=i(57974),G=i(93794),I=i(15393);const y=11;class E extends G.${constructor(R){super(),this._onActivate=R.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=R.bgWidth+"px",this.bgDomNode.style.height=R.bgHeight+"px",typeof R.top!="undefined"&&(this.bgDomNode.style.top="0px"),typeof R.left!="undefined"&&(this.bgDomNode.style.left="0px"),typeof R.bottom!="undefined"&&(this.bgDomNode.style.bottom="0px"),typeof R.right!="undefined"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=R.className,this.domNode.classList.add(...R.icon.classNamesArray),this.domNode.style.position="absolute",this.domNode.style.width=y+"px",this.domNode.style.height=y+"px",typeof R.top!="undefined"&&(this.domNode.style.top=R.top+"px"),typeof R.left!="undefined"&&(this.domNode.style.left=R.left+"px"),typeof R.bottom!="undefined"&&(this.domNode.style.bottom=R.bottom+"px"),typeof R.right!="undefined"&&(this.domNode.style.right=R.right+"px"),this._mouseMoveMonitor=this._register(new D.Z),this.onmousedown(this.bgDomNode,V=>this._arrowMouseDown(V)),this.onmousedown(this.domNode,V=>this._arrowMouseDown(V)),this._mousedownRepeatTimer=this._register(new I.zh),this._mousedownScheduleRepeatTimer=this._register(new I._F)}_arrowMouseDown(R){const V=()=>{this._mousedownRepeatTimer.cancelAndSet(()=>this._onActivate(),41.666666666666664)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(V,200),this._mouseMoveMonitor.startMonitoring(R.target,R.buttons,D.e,K=>{},()=>{this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancel()}),R.preventDefault()}}var p=i(5976);class a extends p.JT{constructor(R,V,K){super(),this._visibility=R,this._visibleClassName=V,this._invisibleClassName=K,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new I._F)}setVisibility(R){this._visibility!==R&&(this._visibility=R,this._updateShouldBeVisible())}setShouldBeVisible(R){this._rawShouldBeVisible=R,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){const R=this._applyVisibilitySetting();this._shouldBeVisible!==R&&(this._shouldBeVisible=R,this.ensureVisibility())}setIsNeeded(R){this._isNeeded!==R&&(this._isNeeded=R,this.ensureVisibility())}setDomNode(R){this._domNode=R,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode&&this._domNode.setClassName(this._visibleClassName)},0))}_hide(R){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(R?" fade":"")))}}var g=i(1432);const w=140;class s extends G.${constructor(R){super(),this._lazyRender=R.lazyRender,this._host=R.host,this._scrollable=R.scrollable,this._scrollByPage=R.scrollByPage,this._scrollbarState=R.scrollbarState,this._visibilityController=this._register(new a(R.visibility,"visible scrollbar "+R.extraScrollbarClassName,"invisible scrollbar "+R.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._mouseMoveMonitor=this._register(new D.Z),this._shouldRender=!0,this.domNode=(0,O.X)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this.onmousedown(this.domNode.domNode,V=>this._domNodeMouseDown(V))}_createArrow(R){const V=this._register(new E(R));this.domNode.domNode.appendChild(V.bgDomNode),this.domNode.domNode.appendChild(V.domNode)}_createSlider(R,V,K,ie){this.slider=(0,O.X)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(R),this.slider.setLeft(V),typeof K=="number"&&this.slider.setWidth(K),typeof ie=="number"&&this.slider.setHeight(ie),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,te=>{te.leftButton&&(te.preventDefault(),this._sliderMouseDown(te,()=>{}))}),this.onclick(this.slider.domNode,te=>{te.leftButton&&te.stopPropagation()})}_onElementSize(R){return this._scrollbarState.setVisibleSize(R)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(R){return this._scrollbarState.setScrollSize(R)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(R){return this._scrollbarState.setScrollPosition(R)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodeMouseDown(R){R.target===this.domNode.domNode&&this._onMouseDown(R)}delegateMouseDown(R){const V=this.domNode.domNode.getClientRects()[0].top,K=V+this._scrollbarState.getSliderPosition(),ie=V+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),te=this._sliderMousePosition(R);K<=te&&te<=ie?R.leftButton&&(R.preventDefault(),this._sliderMouseDown(R,()=>{})):this._onMouseDown(R)}_onMouseDown(R){let V,K;if(R.target===this.domNode.domNode&&typeof R.browserEvent.offsetX=="number"&&typeof R.browserEvent.offsetY=="number")V=R.browserEvent.offsetX,K=R.browserEvent.offsetY;else{const te=H.i(this.domNode.domNode);V=R.posx-te.left,K=R.posy-te.top}const ie=this._mouseDownRelativePosition(V,K);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(ie):this._scrollbarState.getDesiredScrollPositionFromOffset(ie)),R.leftButton&&(R.preventDefault(),this._sliderMouseDown(R,()=>{}))}_sliderMouseDown(R,V){const K=this._sliderMousePosition(R),ie=this._sliderOrthogonalMousePosition(R),te=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(R.target,R.buttons,D.e,ge=>{const ye=this._sliderOrthogonalMousePosition(ge),ve=Math.abs(ye-ie);if(g.ED&&ve>w){this._setDesiredScrollPositionNow(te.getScrollPosition());return}const we=this._sliderMousePosition(ge)-K;this._setDesiredScrollPositionNow(te.getDesiredScrollPositionFromDelta(we))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd(),V()}),this._host.onDragStart()}_setDesiredScrollPositionNow(R){const V={};this.writeScrollPosition(V,R),this._scrollable.setScrollPositionNow(V)}updateScrollbarSize(R){this._updateScrollbarSize(R),this._scrollbarState.setScrollbarSize(R),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}const C=20;class f{constructor(R,V,K,ie,te,ge){this._scrollbarSize=Math.round(V),this._oppositeScrollbarSize=Math.round(K),this._arrowSize=Math.round(R),this._visibleSize=ie,this._scrollSize=te,this._scrollPosition=ge,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new f(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(R){const V=Math.round(R);return this._visibleSize!==V?(this._visibleSize=V,this._refreshComputedValues(),!0):!1}setScrollSize(R){const V=Math.round(R);return this._scrollSize!==V?(this._scrollSize=V,this._refreshComputedValues(),!0):!1}setScrollPosition(R){const V=Math.round(R);return this._scrollPosition!==V?(this._scrollPosition=V,this._refreshComputedValues(),!0):!1}setScrollbarSize(R){this._scrollbarSize=Math.round(R)}setOppositeScrollbarSize(R){this._oppositeScrollbarSize=Math.round(R)}static _computeValues(R,V,K,ie,te){const ge=Math.max(0,K-R),ye=Math.max(0,ge-2*V),ve=ie>0&&ie>K;if(!ve)return{computedAvailableSize:Math.round(ge),computedIsNeeded:ve,computedSliderSize:Math.round(ye),computedSliderRatio:0,computedSliderPosition:0};const Fe=Math.round(Math.max(C,Math.floor(K*ye/ie))),we=(ye-Fe)/(ie-K),ue=te*we;return{computedAvailableSize:Math.round(ge),computedIsNeeded:ve,computedSliderSize:Math.round(Fe),computedSliderRatio:we,computedSliderPosition:Math.round(ue)}}_refreshComputedValues(){const R=f._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=R.computedAvailableSize,this._computedIsNeeded=R.computedIsNeeded,this._computedSliderSize=R.computedSliderSize,this._computedSliderRatio=R.computedSliderRatio,this._computedSliderPosition=R.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(R){if(!this._computedIsNeeded)return 0;const V=R-this._arrowSize-this._computedSliderSize/2;return Math.round(V/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(R){if(!this._computedIsNeeded)return 0;const V=R-this._arrowSize;let K=this._scrollPosition;return Vthis._host.onMouseWheel(new P.q(null,1,0))}),this._createArrow({className:"scra",icon:l,top:ye,left:void 0,bottom:void 0,right:ge,bgWidth:V.arrowSize,bgHeight:V.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new P.q(null,-1,0))})}this._createSlider(Math.floor((V.horizontalScrollbarSize-V.horizontalSliderSize)/2),0,void 0,V.horizontalSliderSize)}_updateSlider(R,V){this.slider.setWidth(R),this.slider.setLeft(V)}_renderDomNode(R,V){this.domNode.setWidth(R),this.domNode.setHeight(V),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(R){return this._shouldRender=this._onElementScrollSize(R.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(R.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(R.width)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(R,V){return R}_sliderMousePosition(R){return R.posx}_sliderOrthogonalMousePosition(R){return R.posy}_updateScrollbarSize(R){this.slider.setHeight(R)}writeScrollPosition(R,V){R.scrollLeft=V}updateOptions(R){this.updateScrollbarSize(R.horizontal===2?0:R.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(R.vertical===2?0:R.verticalScrollbarSize),this._visibilityController.setVisibility(R.horizontal),this._scrollByPage=R.scrollByPage}}const c=(0,v.CM)("scrollbar-button-up",v.lA.triangleUp),b=(0,v.CM)("scrollbar-button-down",v.lA.triangleDown);class L extends s{constructor(R,V,K){const ie=R.getScrollDimensions(),te=R.getCurrentScrollPosition();if(super({lazyRender:V.lazyRender,host:K,scrollbarState:new f(V.verticalHasArrows?V.arrowSize:0,V.vertical===2?0:V.verticalScrollbarSize,0,ie.height,ie.scrollHeight,te.scrollTop),visibility:V.vertical,extraScrollbarClassName:"vertical",scrollable:R,scrollByPage:V.scrollByPage}),V.verticalHasArrows){const ge=(V.arrowSize-y)/2,ye=(V.verticalScrollbarSize-y)/2;this._createArrow({className:"scra",icon:c,top:ge,left:ye,bottom:void 0,right:void 0,bgWidth:V.verticalScrollbarSize,bgHeight:V.arrowSize,onActivate:()=>this._host.onMouseWheel(new P.q(null,0,1))}),this._createArrow({className:"scra",icon:b,top:void 0,left:ye,bottom:ge,right:void 0,bgWidth:V.verticalScrollbarSize,bgHeight:V.arrowSize,onActivate:()=>this._host.onMouseWheel(new P.q(null,0,-1))})}this._createSlider(0,Math.floor((V.verticalScrollbarSize-V.verticalSliderSize)/2),V.verticalSliderSize,void 0)}_updateSlider(R,V){this.slider.setHeight(R),this.slider.setTop(V)}_renderDomNode(R,V){this.domNode.setWidth(V),this.domNode.setHeight(R),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(R){return this._shouldRender=this._onElementScrollSize(R.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(R.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(R.height)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(R,V){return V}_sliderMousePosition(R){return R.posy}_sliderOrthogonalMousePosition(R){return R.posx}_updateScrollbarSize(R){this.slider.setWidth(R)}writeScrollPosition(R,V){R.scrollTop=V}updateOptions(R){this.updateScrollbarSize(R.vertical===2?0:R.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(R.vertical),this._scrollByPage=R.scrollByPage}}var T=i(4669),M=i(76633);const z=500,oe=50,se=!0;class re{constructor(R,V,K){this.timestamp=R,this.deltaX=V,this.deltaY=K,this.score=0}}class De{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(this._front===-1&&this._rear===-1)return!1;let R=1,V=0,K=1,ie=this._rear;do{const te=ie===this._front?R:Math.pow(2,-K);if(R-=te,V+=this._memory[ie].score*te,ie===this._front)break;ie=(this._capacity+ie-1)%this._capacity,K++}while(!0);return V<=.5}accept(R,V,K){const ie=new re(R,V,K);ie.score=this._computeScore(ie),this._front===-1&&this._rear===-1?(this._memory[0]=ie,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=ie)}_computeScore(R){if(Math.abs(R.deltaX)>0&&Math.abs(R.deltaY)>0)return 1;let V=.5;const K=this._front===-1&&this._rear===-1?null:this._memory[this._rear];return(!this._isAlmostInt(R.deltaX)||!this._isAlmostInt(R.deltaY))&&(V+=.25),Math.min(Math.max(V,0),1)}_isAlmostInt(R){return Math.abs(Math.round(R)-R)<.01}}De.INSTANCE=new De;class J extends G.${constructor(R,V,K){super(),this._onScroll=this._register(new T.Q5),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new T.Q5),R.style.overflow="hidden",this._options=xe(V),this._scrollable=K,this._register(this._scrollable.onScroll(te=>{this._onWillScroll.fire(te),this._onDidScroll(te),this._onScroll.fire(te)}));const ie={onMouseWheel:te=>this._onMouseWheel(te),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new L(this._scrollable,this._options,ie)),this._horizontalScrollbar=this._register(new m(this._scrollable,this._options,ie)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(R),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,O.X)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,O.X)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,O.X)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,te=>this._onMouseOver(te)),this.onnonbubblingmouseout(this._listenOnDomNode,te=>this._onMouseOut(te)),this._hideTimeout=this._register(new I._F),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,p.B9)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarMouseDown(R){this._verticalScrollbar.delegateMouseDown(R)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(R){this._scrollable.setScrollDimensions(R,!1)}updateClassName(R){this._options.className=R,g.dz&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(R){typeof R.handleMouseWheel!="undefined"&&(this._options.handleMouseWheel=R.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof R.mouseWheelScrollSensitivity!="undefined"&&(this._options.mouseWheelScrollSensitivity=R.mouseWheelScrollSensitivity),typeof R.fastScrollSensitivity!="undefined"&&(this._options.fastScrollSensitivity=R.fastScrollSensitivity),typeof R.scrollPredominantAxis!="undefined"&&(this._options.scrollPredominantAxis=R.scrollPredominantAxis),typeof R.horizontal!="undefined"&&(this._options.horizontal=R.horizontal),typeof R.vertical!="undefined"&&(this._options.vertical=R.vertical),typeof R.horizontalScrollbarSize!="undefined"&&(this._options.horizontalScrollbarSize=R.horizontalScrollbarSize),typeof R.verticalScrollbarSize!="undefined"&&(this._options.verticalScrollbarSize=R.verticalScrollbarSize),typeof R.scrollByPage!="undefined"&&(this._options.scrollByPage=R.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}_setListeningToMouseWheel(R){if(this._mouseWheelToDispose.length>0!==R&&(this._mouseWheelToDispose=(0,p.B9)(this._mouseWheelToDispose),R)){const K=ie=>{this._onMouseWheel(new P.q(ie))};this._mouseWheelToDispose.push(H.nm(this._listenOnDomNode,H.tw.MOUSE_WHEEL,K,{passive:!1}))}}_onMouseWheel(R){const V=De.INSTANCE;if(se){const te=window.devicePixelRatio/(0,h.ie)();g.ED||g.IJ?V.accept(Date.now(),R.deltaX/te,R.deltaY/te):V.accept(Date.now(),R.deltaX,R.deltaY)}let K=!1;if(R.deltaY||R.deltaX){let te=R.deltaY*this._options.mouseWheelScrollSensitivity,ge=R.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(te)>=Math.abs(ge)?ge=0:te=0),this._options.flipAxes&&([te,ge]=[ge,te]);const ye=!g.dz&&R.browserEvent&&R.browserEvent.shiftKey;(this._options.scrollYToX||ye)&&!ge&&(ge=te,te=0),R.browserEvent&&R.browserEvent.altKey&&(ge=ge*this._options.fastScrollSensitivity,te=te*this._options.fastScrollSensitivity);const ve=this._scrollable.getFutureScrollPosition();let Fe={};if(te){const we=oe*te,ue=ve.scrollTop-(we<0?Math.floor(we):Math.ceil(we));this._verticalScrollbar.writeScrollPosition(Fe,ue)}if(ge){const we=oe*ge,ue=ve.scrollLeft-(we<0?Math.floor(we):Math.ceil(we));this._horizontalScrollbar.writeScrollPosition(Fe,ue)}Fe=this._scrollable.validateScrollPosition(Fe),(ve.scrollLeft!==Fe.scrollLeft||ve.scrollTop!==Fe.scrollTop)&&(se&&this._options.mouseWheelSmoothScroll&&V.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(Fe):this._scrollable.setScrollPositionNow(Fe),K=!0)}let ie=K;!ie&&this._options.alwaysConsumeMouseWheel&&(ie=!0),!ie&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(ie=!0),ie&&(R.preventDefault(),R.stopPropagation())}_onDidScroll(R){this._shouldRender=this._horizontalScrollbar.onDidScroll(R)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(R)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const R=this._scrollable.getCurrentScrollPosition(),V=R.scrollTop>0,K=R.scrollLeft>0,ie=K?" left":"",te=V?" top":"",ge=K||V?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${ie}`),this._topShadowDomNode.setClassName(`shadow${te}`),this._topLeftShadowDomNode.setClassName(`shadow${ge}${te}${ie}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseOut(R){this._mouseIsOver=!1,this._hide()}_onMouseOver(R){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),z)}}class Z extends J{constructor(R,V){V=V||{},V.mouseWheelSmoothScroll=!1;const K=new M.Rm(0,ie=>H.jL(ie));super(R,V,K),this._register(K)}setScrollPosition(R){this._scrollable.setScrollPositionNow(R)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class Q extends J{constructor(R,V,K){super(R,V,K)}setScrollPosition(R){R.reuseAnimation?this._scrollable.setScrollPositionSmooth(R,R.reuseAnimation):this._scrollable.setScrollPositionNow(R)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class le extends Z{constructor(R,V){super(R,V),this._element=R,this.onScroll(K=>{K.scrollTopChanged&&(this._element.scrollTop=K.scrollTop),K.scrollLeftChanged&&(this._element.scrollLeft=K.scrollLeft)}),this.scanDomNode()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}function xe(j){const R={lazyRender:typeof j.lazyRender!="undefined"?j.lazyRender:!1,className:typeof j.className!="undefined"?j.className:"",useShadows:typeof j.useShadows!="undefined"?j.useShadows:!0,handleMouseWheel:typeof j.handleMouseWheel!="undefined"?j.handleMouseWheel:!0,flipAxes:typeof j.flipAxes!="undefined"?j.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof j.consumeMouseWheelIfScrollbarIsNeeded!="undefined"?j.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof j.alwaysConsumeMouseWheel!="undefined"?j.alwaysConsumeMouseWheel:!1,scrollYToX:typeof j.scrollYToX!="undefined"?j.scrollYToX:!1,mouseWheelScrollSensitivity:typeof j.mouseWheelScrollSensitivity!="undefined"?j.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof j.fastScrollSensitivity!="undefined"?j.fastScrollSensitivity:5,scrollPredominantAxis:typeof j.scrollPredominantAxis!="undefined"?j.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof j.mouseWheelSmoothScroll!="undefined"?j.mouseWheelSmoothScroll:!0,arrowSize:typeof j.arrowSize!="undefined"?j.arrowSize:11,listenOnDomNode:typeof j.listenOnDomNode!="undefined"?j.listenOnDomNode:null,horizontal:typeof j.horizontal!="undefined"?j.horizontal:1,horizontalScrollbarSize:typeof j.horizontalScrollbarSize!="undefined"?j.horizontalScrollbarSize:10,horizontalSliderSize:typeof j.horizontalSliderSize!="undefined"?j.horizontalSliderSize:0,horizontalHasArrows:typeof j.horizontalHasArrows!="undefined"?j.horizontalHasArrows:!1,vertical:typeof j.vertical!="undefined"?j.vertical:1,verticalScrollbarSize:typeof j.verticalScrollbarSize!="undefined"?j.verticalScrollbarSize:10,verticalHasArrows:typeof j.verticalHasArrows!="undefined"?j.verticalHasArrows:!1,verticalSliderSize:typeof j.verticalSliderSize!="undefined"?j.verticalSliderSize:0,scrollByPage:typeof j.scrollByPage!="undefined"?j.scrollByPage:!1};return R.horizontalSliderSize=typeof j.horizontalSliderSize!="undefined"?j.horizontalSliderSize:R.horizontalScrollbarSize,R.verticalSliderSize=typeof j.verticalSliderSize!="undefined"?j.verticalSliderSize:R.verticalScrollbarSize,g.dz&&(R.className+=" mac"),R}},33225:function(xt,Te,i){"use strict";i.d(Te,{M:function(){return f},z:function(){return v}});var h=i(65321),H=i(83080),O=i(13433),P=i(9488),D=i(41264),G=i(4669),I=i(5976),y=i(59870),E=i(76633),p=i(98401);const a={separatorBorder:D.Il.transparent};class g{constructor(l,m,c,b){this.container=l,this.view=m,this.disposable=b,this._cachedVisibleSize=void 0,typeof c=="number"?(this._size=c,this._cachedVisibleSize=void 0,l.classList.add("visible")):(this._size=0,this._cachedVisibleSize=c.cachedVisibleSize)}set size(l){this._size=l}get size(){return this._size}get visible(){return typeof this._cachedVisibleSize=="undefined"}setVisible(l,m){l!==this.visible&&(l?(this.size=(0,y.u)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof m=="number"?m:this.size,this.size=0),this.container.classList.toggle("visible",l),this.view.setVisible&&this.view.setVisible(l))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(l){this.container.style.pointerEvents=l?"":"none"}layout(l,m){this.layoutContainer(l),this.view.layout(this.size,l,m)}dispose(){return this.disposable.dispose(),this.view}}class w extends g{layoutContainer(l){this.container.style.top=`${l}px`,this.container.style.height=`${this.size}px`}}class s extends g{layoutContainer(l){this.container.style.left=`${l}px`,this.container.style.width=`${this.size}px`}}var C;(function(r){r[r.Idle=0]="Idle",r[r.Busy=1]="Busy"})(C||(C={}));var f;(function(r){r.Distribute={type:"distribute"};function l(c){return{type:"split",index:c}}r.Split=l;function m(c){return{type:"invisible",cachedVisibleSize:c}}r.Invisible=m})(f||(f={}));class v extends I.JT{constructor(l,m={}){var c,b;super(),this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=C.Idle,this._onDidSashChange=this._register(new G.Q5),this.onDidSashChange=this._onDidSashChange.event,this._onDidSashReset=this._register(new G.Q5),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.orientation=p.o8(m.orientation)?0:m.orientation,this.inverseAltBehavior=!!m.inverseAltBehavior,this.proportionalLayout=p.o8(m.proportionalLayout)?!0:!!m.proportionalLayout,this.getSashOrthogonalSize=m.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(this.orientation===0?"vertical":"horizontal"),l.appendChild(this.el),this.sashContainer=(0,h.R3)(this.el,(0,h.$)(".sash-container")),this.viewContainer=(0,h.$)(".split-view-container"),this.scrollable=new E.Rm(125,h.jL),this.scrollableElement=this._register(new O.$Z(this.viewContainer,{vertical:this.orientation===0?(c=m.scrollbarVisibility)!==null&&c!==void 0?c:1:2,horizontal:this.orientation===1?(b=m.scrollbarVisibility)!==null&&b!==void 0?b:1:2},this.scrollable)),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(L=>{this.viewContainer.scrollTop=L.scrollTop,this.viewContainer.scrollLeft=L.scrollLeft})),(0,h.R3)(this.el,this.scrollableElement.getDomNode()),this.style(m.styles||a),m.descriptor&&(this.size=m.descriptor.size,m.descriptor.views.forEach((L,T)=>{const M=p.o8(L.visible)||L.visible?L.size:{type:"invisible",cachedVisibleSize:L.size},z=L.view;this.doAddView(z,M,T,!0)}),this.contentSize=this.viewItems.reduce((L,T)=>L+T.size,0),this.saveProportions())}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(l){for(const m of this.sashItems)m.sash.orthogonalStartSash=l;this._orthogonalStartSash=l}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(l){for(const m of this.sashItems)m.sash.orthogonalEndSash=l;this._orthogonalEndSash=l}get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(l){this._startSnappingEnabled!==l&&(this._startSnappingEnabled=l,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(l){this._endSnappingEnabled!==l&&(this._endSnappingEnabled=l,this.updateSashEnablement())}style(l){l.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",l.separatorBorder.toString()))}addView(l,m,c=this.viewItems.length,b){this.doAddView(l,m,c,b)}layout(l,m){const c=Math.max(this.size,this.contentSize);if(this.size=l,this.layoutContext=m,this.proportions)for(let b=0;bthis.viewItems[M].priority===1),T=b.filter(M=>this.viewItems[M].priority===2);this.resize(this.viewItems.length-1,l-c,void 0,L,T)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(l=>l.size/this.contentSize))}onSashStart({sash:l,start:m,alt:c}){for(const M of this.viewItems)M.enabled=!1;const b=this.sashItems.findIndex(M=>M.sash===l),L=(0,I.F8)((0,h.nm)(document.body,"keydown",M=>T(this.sashDragState.current,M.altKey)),(0,h.nm)(document.body,"keyup",()=>T(this.sashDragState.current,!1))),T=(M,z)=>{const oe=this.viewItems.map(Z=>Z.size);let se=Number.NEGATIVE_INFINITY,re=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(z=!z),z)if(b===this.sashItems.length-1){const Q=this.viewItems[b];se=(Q.minimumSize-Q.size)/2,re=(Q.maximumSize-Q.size)/2}else{const Q=this.viewItems[b+1];se=(Q.size-Q.maximumSize)/2,re=(Q.size-Q.minimumSize)/2}let De,J;if(!z){const Z=(0,P.w6)(b,-1),Q=(0,P.w6)(b+1,this.viewItems.length),le=Z.reduce((ge,ye)=>ge+(this.viewItems[ye].minimumSize-oe[ye]),0),xe=Z.reduce((ge,ye)=>ge+(this.viewItems[ye].viewMaximumSize-oe[ye]),0),j=Q.length===0?Number.POSITIVE_INFINITY:Q.reduce((ge,ye)=>ge+(oe[ye]-this.viewItems[ye].minimumSize),0),R=Q.length===0?Number.NEGATIVE_INFINITY:Q.reduce((ge,ye)=>ge+(oe[ye]-this.viewItems[ye].viewMaximumSize),0),V=Math.max(le,R),K=Math.min(j,xe),ie=this.findFirstSnapIndex(Z),te=this.findFirstSnapIndex(Q);if(typeof ie=="number"){const ge=this.viewItems[ie],ye=Math.floor(ge.viewMinimumSize/2);De={index:ie,limitDelta:ge.visible?V-ye:V+ye,size:ge.size}}if(typeof te=="number"){const ge=this.viewItems[te],ye=Math.floor(ge.viewMinimumSize/2);J={index:te,limitDelta:ge.visible?K+ye:K-ye,size:ge.size}}}this.sashDragState={start:M,current:M,index:b,sizes:oe,minDelta:se,maxDelta:re,alt:z,snapBefore:De,snapAfter:J,disposable:L}};T(m,c)}onSashChange({current:l}){const{index:m,start:c,sizes:b,alt:L,minDelta:T,maxDelta:M,snapBefore:z,snapAfter:oe}=this.sashDragState;this.sashDragState.current=l;const se=l-c,re=this.resize(m,se,b,void 0,void 0,T,M,z,oe);if(L){const De=m===this.sashItems.length-1,J=this.viewItems.map(R=>R.size),Z=De?m:m+1,Q=this.viewItems[Z],le=Q.size-Q.maximumSize,xe=Q.size-Q.minimumSize,j=De?m-1:m+1;this.resize(j,-re,J,void 0,void 0,le,xe)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(l){this._onDidSashChange.fire(l),this.sashDragState.disposable.dispose(),this.saveProportions();for(const m of this.viewItems)m.enabled=!0}onViewChange(l,m){const c=this.viewItems.indexOf(l);c<0||c>=this.viewItems.length||(m=typeof m=="number"?m:l.size,m=(0,y.u)(m,l.minimumSize,l.maximumSize),this.inverseAltBehavior&&c>0?(this.resize(c-1,Math.floor((l.size-m)/2)),this.distributeEmptySpace(),this.layoutViews()):(l.size=m,this.relayout([c],void 0)))}resizeView(l,m){if(this.state!==C.Idle)throw new Error("Cant modify splitview");if(this.state=C.Busy,l<0||l>=this.viewItems.length)return;const c=(0,P.w6)(this.viewItems.length).filter(M=>M!==l),b=[...c.filter(M=>this.viewItems[M].priority===1),l],L=c.filter(M=>this.viewItems[M].priority===2),T=this.viewItems[l];m=Math.round(m),m=(0,y.u)(m,T.minimumSize,Math.min(T.maximumSize,this.size)),T.size=m,this.relayout(b,L),this.state=C.Idle}distributeViewSizes(){const l=[];let m=0;for(const M of this.viewItems)M.maximumSize-M.minimumSize>0&&(l.push(M),m+=M.size);const c=Math.floor(m/l.length);for(const M of l)M.size=(0,y.u)(c,M.minimumSize,M.maximumSize);const b=(0,P.w6)(this.viewItems.length),L=b.filter(M=>this.viewItems[M].priority===1),T=b.filter(M=>this.viewItems[M].priority===2);this.relayout(L,T)}getViewSize(l){return l<0||l>=this.viewItems.length?-1:this.viewItems[l].size}doAddView(l,m,c=this.viewItems.length,b){if(this.state!==C.Idle)throw new Error("Cant modify splitview");this.state=C.Busy;const L=(0,h.$)(".split-view-view");c===this.viewItems.length?this.viewContainer.appendChild(L):this.viewContainer.insertBefore(L,this.viewContainer.children.item(c));const T=l.onDidChange(De=>this.onViewChange(se,De)),M=(0,I.OF)(()=>this.viewContainer.removeChild(L)),z=(0,I.F8)(T,M);let oe;typeof m=="number"?oe=m:m.type==="split"?oe=this.getViewSize(m.index)/2:m.type==="invisible"?oe={cachedVisibleSize:m.cachedVisibleSize}:oe=l.minimumSize;const se=this.orientation===0?new w(L,l,oe,z):new s(L,l,oe,z);if(this.viewItems.splice(c,0,se),this.viewItems.length>1){let De={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash};const J=this.orientation===0?new H.g(this.sashContainer,{getHorizontalSashTop:ge=>this.getSashPosition(ge),getHorizontalSashWidth:this.getSashOrthogonalSize},Object.assign(Object.assign({},De),{orientation:1})):new H.g(this.sashContainer,{getVerticalSashLeft:ge=>this.getSashPosition(ge),getVerticalSashHeight:this.getSashOrthogonalSize},Object.assign(Object.assign({},De),{orientation:0})),Z=this.orientation===0?ge=>({sash:J,start:ge.startY,current:ge.currentY,alt:ge.altKey}):ge=>({sash:J,start:ge.startX,current:ge.currentX,alt:ge.altKey}),le=G.ju.map(J.onDidStart,Z)(this.onSashStart,this),j=G.ju.map(J.onDidChange,Z)(this.onSashChange,this),V=G.ju.map(J.onDidEnd,()=>this.sashItems.findIndex(ge=>ge.sash===J))(this.onSashEnd,this),K=J.onDidReset(()=>{const ge=this.sashItems.findIndex(ue=>ue.sash===J),ye=(0,P.w6)(ge,-1),ve=(0,P.w6)(ge+1,this.viewItems.length),Fe=this.findFirstSnapIndex(ye),we=this.findFirstSnapIndex(ve);typeof Fe=="number"&&!this.viewItems[Fe].visible||typeof we=="number"&&!this.viewItems[we].visible||this._onDidSashReset.fire(ge)}),ie=(0,I.F8)(le,j,V,K,J),te={sash:J,disposable:ie};this.sashItems.splice(c-1,0,te)}L.appendChild(l.element);let re;typeof m!="number"&&m.type==="split"&&(re=[m.index]),b||this.relayout([c],re),this.state=C.Idle,!b&&typeof m!="number"&&m.type==="distribute"&&this.distributeViewSizes()}relayout(l,m){const c=this.viewItems.reduce((b,L)=>b+L.size,0);this.resize(this.viewItems.length-1,this.size-c,void 0,l,m),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(l,m,c=this.viewItems.map(se=>se.size),b,L,T=Number.NEGATIVE_INFINITY,M=Number.POSITIVE_INFINITY,z,oe){if(l<0||l>=this.viewItems.length)return 0;const se=(0,P.w6)(l,-1),re=(0,P.w6)(l+1,this.viewItems.length);if(L)for(const te of L)(0,P.zI)(se,te),(0,P.zI)(re,te);if(b)for(const te of b)(0,P.al)(se,te),(0,P.al)(re,te);const De=se.map(te=>this.viewItems[te]),J=se.map(te=>c[te]),Z=re.map(te=>this.viewItems[te]),Q=re.map(te=>c[te]),le=se.reduce((te,ge)=>te+(this.viewItems[ge].minimumSize-c[ge]),0),xe=se.reduce((te,ge)=>te+(this.viewItems[ge].maximumSize-c[ge]),0),j=re.length===0?Number.POSITIVE_INFINITY:re.reduce((te,ge)=>te+(c[ge]-this.viewItems[ge].minimumSize),0),R=re.length===0?Number.NEGATIVE_INFINITY:re.reduce((te,ge)=>te+(c[ge]-this.viewItems[ge].maximumSize),0),V=Math.max(le,R,T),K=Math.min(j,xe,M);let ie=!1;if(z){const te=this.viewItems[z.index],ge=m>=z.limitDelta;ie=ge!==te.visible,te.setVisible(ge,z.size)}if(!ie&&oe){const te=this.viewItems[oe.index],ge=mM+z.size,0);let c=this.size-m;const b=(0,P.w6)(this.viewItems.length-1,-1),L=b.filter(M=>this.viewItems[M].priority===1),T=b.filter(M=>this.viewItems[M].priority===2);for(const M of T)(0,P.zI)(b,M);for(const M of L)(0,P.al)(b,M);typeof l=="number"&&(0,P.al)(b,l);for(let M=0;c!==0&&Mm+c.size,0);let l=0;for(const m of this.viewItems)m.layout(l,this.layoutContext),l+=m.size;this.sashItems.forEach(m=>m.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){this.orientation===0?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this.contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this.contentSize})}updateSashEnablement(){let l=!1;const m=this.viewItems.map(z=>l=z.size-z.minimumSize>0||l);l=!1;const c=this.viewItems.map(z=>l=z.maximumSize-z.size>0||l),b=[...this.viewItems].reverse();l=!1;const L=b.map(z=>l=z.size-z.minimumSize>0||l).reverse();l=!1;const T=b.map(z=>l=z.maximumSize-z.size>0||l).reverse();let M=0;for(let z=0;z0||this.startSnappingEnabled)?oe.state=1:j&&m[z]&&(M0)return;if(!c.visible&&c.snap)return m}}dispose(){super.dispose(),this.viewItems.forEach(l=>l.dispose()),this.viewItems=[],this.sashItems.forEach(l=>l.disposable.dispose()),this.sashItems=[]}}},93794:function(xt,Te,i){"use strict";i.d(Te,{$:function(){return G}});var h=i(65321),H=i(36513),O=i(23938),P=i(10553),D=i(5976);class G extends D.JT{onclick(y,E){this._register(h.nm(y,h.tw.CLICK,p=>E(new O.n(p))))}onmousedown(y,E){this._register(h.nm(y,h.tw.MOUSE_DOWN,p=>E(new O.n(p))))}onmouseover(y,E){this._register(h.nm(y,h.tw.MOUSE_OVER,p=>E(new O.n(p))))}onnonbubblingmouseout(y,E){this._register(h.j_(y,p=>E(new O.n(p))))}onkeydown(y,E){this._register(h.nm(y,h.tw.KEY_DOWN,p=>E(new H.y(p))))}onkeyup(y,E){this._register(h.nm(y,h.tw.KEY_UP,p=>E(new H.y(p))))}oninput(y,E){this._register(h.nm(y,h.tw.INPUT,E))}onblur(y,E){this._register(h.nm(y,h.tw.BLUR,E))}onfocus(y,E){this._register(h.nm(y,h.tw.FOCUS,E))}ignoreGesture(y){P.o.ignoreTarget(y)}}},9488:function(xt,Te,i){"use strict";i.d(Te,{EB:function(){return a},Gb:function(){return h},H9:function(){return T},HW:function(){return G},JH:function(){return H},Of:function(){return p},XY:function(){return E},Xh:function(){return s},Zv:function(){return v},_2:function(){return m},al:function(){return l},dF:function(){return g},db:function(){return b},fS:function(){return O},kX:function(){return y},lG:function(){return D},ry:function(){return P},vM:function(){return I},w6:function(){return f},xH:function(){return C},zI:function(){return r}});function h(M,z=0){return M[M.length-(1+z)]}function H(M){if(M.length===0)throw new Error("Invalid tail call");return[M.slice(0,M.length-1),M[M.length-1]]}function O(M,z,oe=(se,re)=>se===re){if(M===z)return!0;if(!M||!z||M.length!==z.length)return!1;for(let se=0,re=M.length;se0)re=De-1;else return De}return-(se+1)}function D(M,z){let oe=0,se=M.length;if(se===0)return 0;for(;oe=z.length)throw new TypeError("invalid index");let se=z[Math.floor(z.length*Math.random())],re=[],De=[],J=[];for(let Z of z){const Q=oe(Z,se);Q<0?re.push(Z):Q>0?De.push(Z):J.push(Z)}return M!!z)}function E(M){return!Array.isArray(M)||M.length===0}function p(M){return Array.isArray(M)&&M.length>0}function a(M,z=oe=>oe){const oe=new Set;return M.filter(se=>{const re=z(se);return oe.has(re)?!1:(oe.add(re),!0)})}function g(M,z){const oe=w(M,z);if(oe!==-1)return M[oe]}function w(M,z){for(let oe=M.length-1;oe>=0;oe--){const se=M[oe];if(z(se))return oe}return-1}function s(M,z){return M.length>0?M[0]:z}function C(M){return[].concat(...M)}function f(M,z){let oe=typeof z=="number"?M:0;typeof z=="number"?oe=M:(oe=0,z=M);const se=[];if(oe<=z)for(let re=oe;rez;re--)se.push(re);return se}function v(M,z,oe){const se=M.slice(0,z),re=M.slice(z);return se.concat(oe,re)}function r(M,z){const oe=M.indexOf(z);oe>-1&&(M.splice(oe,1),M.unshift(z))}function l(M,z){const oe=M.indexOf(z);oe>-1&&(M.splice(oe,1),M.push(z))}function m(M){return Array.isArray(M)?M:[M]}function c(M,z,oe){const se=L(M,z),re=M.length,De=oe.length;M.length=re+De;for(let J=re-1;J>=se;J--)M[J+De]=M[J];for(let J=0;J=0&&z(this.items[oe]);)oe--;const se=oe===this.lastIdx?null:this.items.slice(oe+1,this.lastIdx+1);return this.lastIdx=oe,se}peek(){return this.items[this.firstIdx]}}},15393:function(xt,Te,i){"use strict";i.d(Te,{J8:function(){return D},PG:function(){return G},Ps:function(){return w},To:function(){return v},Ue:function(){return r},Vg:function(){return g},Vs:function(){return a},_F:function(){return s},eP:function(){return I},jT:function(){return l},pY:function(){return f},rH:function(){return p},vp:function(){return E},zh:function(){return C}});var h=i(71050),H=i(17301),O=i(5976),P=function(m,c,b,L){function T(M){return M instanceof b?M:new b(function(z){z(M)})}return new(b||(b=Promise))(function(M,z){function oe(De){try{re(L.next(De))}catch(J){z(J)}}function se(De){try{re(L.throw(De))}catch(J){z(J)}}function re(De){De.done?M(De.value):T(De.value).then(oe,se)}re((L=L.apply(m,c||[])).next())})};function D(m){return!!m&&typeof m.then=="function"}function G(m){const c=new h.A,b=m(c.token),L=new Promise((T,M)=>{const z=c.token.onCancellationRequested(()=>{z.dispose(),c.dispose(),M((0,H.F0)())});Promise.resolve(b).then(oe=>{z.dispose(),c.dispose(),T(oe)},oe=>{z.dispose(),c.dispose(),M(oe)})});return new class{cancel(){c.cancel()}then(T,M){return L.then(T,M)}catch(T){return this.then(void 0,T)}finally(T){return L.finally(T)}}}function I(m,c,b){return Promise.race([m,new Promise(L=>c.onCancellationRequested(()=>L(b)))])}class y{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(c){if(this.activePromise){if(this.queuedPromiseFactory=c,!this.queuedPromise){const b=()=>{this.queuedPromise=null;const L=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,L};this.queuedPromise=new Promise(L=>{this.activePromise.then(b,b).then(L)})}return new Promise((b,L)=>{this.queuedPromise.then(b,L)})}return this.activePromise=c(),new Promise((b,L)=>{this.activePromise.then(T=>{this.activePromise=null,b(T)},T=>{this.activePromise=null,L(T)})})}}class E{constructor(c){this.defaultDelay=c,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(c,b=this.defaultDelay){return this.task=c,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((L,T)=>{this.doResolve=L,this.doReject=T}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const L=this.task;return this.task=null,L()}})),this.timeout=setTimeout(()=>{this.timeout=null,this.doResolve&&this.doResolve(null)},b),this.completionPromise}isTriggered(){return this.timeout!==null}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject((0,H.F0)()),this.completionPromise=null)}cancelTimeout(){this.timeout!==null&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancel()}}class p{constructor(c){this.delayer=new E(c),this.throttler=new y}trigger(c,b){return this.delayer.trigger(()=>this.throttler.queue(c),b)}dispose(){this.delayer.dispose()}}function a(m,c){return c?new Promise((b,L)=>{const T=setTimeout(()=>{M.dispose(),b()},m),M=c.onCancellationRequested(()=>{clearTimeout(T),M.dispose(),L((0,H.F0)())})}):G(b=>a(m,b))}function g(m,c=0){const b=setTimeout(m,c);return(0,O.OF)(()=>clearTimeout(b))}function w(m,c=L=>!!L,b=null){let L=0;const T=m.length,M=()=>{if(L>=T)return Promise.resolve(b);const z=m[L++];return Promise.resolve(z()).then(se=>c(se)?Promise.resolve(se):M())};return M()}class s{constructor(c,b){this._token=-1,typeof c=="function"&&typeof b=="number"&&this.setIfNotSet(c,b)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(c,b){this.cancel(),this._token=setTimeout(()=>{this._token=-1,c()},b)}setIfNotSet(c,b){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,c()},b))}}class C{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(c,b){this.cancel(),this._token=setInterval(()=>{c()},b)}}class f{constructor(c,b){this.timeoutToken=-1,this.runner=c,this.timeout=b,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(c=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,c)}get delay(){return this.timeout}set delay(c){this.timeout=c}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}let v;(function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?v=m=>{const c=setTimeout(()=>{const L=Date.now()+15;m(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,L-Date.now())}}))});let b=!1;return{dispose(){b||(b=!0,clearTimeout(c))}}}:v=(m,c)=>{const b=requestIdleCallback(m,typeof c=="number"?{timeout:c}:void 0);let L=!1;return{dispose(){L||(L=!0,cancelIdleCallback(b))}}}})();class r{constructor(c){this._didRun=!1,this._executor=()=>{try{this._value=c()}catch(b){this._error=b}finally{this._didRun=!0}},this._handle=v(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}var l;(function(m){function c(L){return P(this,void 0,void 0,function*(){let T;const M=yield Promise.all(L.map(z=>z.then(oe=>oe,oe=>{T||(T=oe)})));if(typeof T!="undefined")throw T;return M})}m.settled=c;function b(L){return new Promise((T,M)=>P(this,void 0,void 0,function*(){try{yield L(T,M)}catch(z){M(z)}}))}m.withAsyncBody=b})(l||(l={}))},53060:function(xt,Te,i){"use strict";i.d(Te,{Ag:function(){return I},Cg:function(){return p},KN:function(){return P},Q$:function(){return E},T4:function(){return y},mP:function(){return D},oq:function(){return G}});var h=i(48764).lW;const H=typeof h!="undefined";let O;class P{constructor(g){this.buffer=g,this.byteLength=this.buffer.byteLength}static wrap(g){return H&&!h.isBuffer(g)&&(g=h.from(g.buffer,g.byteOffset,g.byteLength)),new P(g)}toString(){return H?this.buffer.toString():(O||(O=new TextDecoder),O.decode(this.buffer))}}function D(a,g){return a[g+0]<<0>>>0|a[g+1]<<8>>>0}function G(a,g,w){a[w+0]=g&255,g=g>>>8,a[w+1]=g&255}function I(a,g){return a[g]*Math.pow(2,24)+a[g+1]*Math.pow(2,16)+a[g+2]*Math.pow(2,8)+a[g+3]}function y(a,g,w){a[w+3]=g,g=g>>>8,a[w+2]=g,g=g>>>8,a[w+1]=g,g=g>>>8,a[w]=g}function E(a,g){return a[g]}function p(a,g,w){a[w]=g}},71050:function(xt,Te,i){"use strict";i.d(Te,{A:function(){return D},T:function(){return O}});var h=i(4669);const H=Object.freeze(function(G,I){const y=setTimeout(G.bind(I),0);return{dispose(){clearTimeout(y)}}});var O;(function(G){function I(y){return y===G.None||y===G.Cancelled||y instanceof P?!0:!y||typeof y!="object"?!1:typeof y.isCancellationRequested=="boolean"&&typeof y.onCancellationRequested=="function"}G.isCancellationToken=I,G.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:h.ju.None}),G.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:H})})(O||(O={}));class P{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?H:(this._emitter||(this._emitter=new h.Q5),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class D{constructor(I){this._token=void 0,this._parentListener=void 0,this._parentListener=I&&I.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new P),this._token}cancel(){this._token?this._token instanceof P&&this._token.cancel():this._token=O.Cancelled}dispose(I=!1){I&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof P&&this._token.dispose():this._token=O.None}}},6626:function(xt,Te,i){"use strict";i.d(Te,{E:function(){return H},r:function(){return O}});const h=Object.prototype.hasOwnProperty;function H(P,D){for(let G in P)if(h.call(P,G)&&D({key:G,value:P[G]},function(){delete P[G]})===!1)return}class O{constructor(){this.map=new Map}add(D,G){let I=this.map.get(D);I||(I=new Set,this.map.set(D,I)),I.add(G)}delete(D,G){const I=this.map.get(D);I&&(I.delete(G),I.size===0&&this.map.delete(D))}forEach(D,G){const I=this.map.get(D);I&&I.forEach(G)}}},41264:function(xt,Te,i){"use strict";i.d(Te,{Il:function(){return D},VS:function(){return H},tx:function(){return P}});function h(G,I){const y=Math.pow(10,I);return Math.round(G*y)/y}class H{constructor(I,y,E,p=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,I))|0,this.g=Math.min(255,Math.max(0,y))|0,this.b=Math.min(255,Math.max(0,E))|0,this.a=h(Math.max(Math.min(1,p),0),3)}static equals(I,y){return I.r===y.r&&I.g===y.g&&I.b===y.b&&I.a===y.a}}class O{constructor(I,y,E,p){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,I),0)|0,this.s=h(Math.max(Math.min(1,y),0),3),this.l=h(Math.max(Math.min(1,E),0),3),this.a=h(Math.max(Math.min(1,p),0),3)}static equals(I,y){return I.h===y.h&&I.s===y.s&&I.l===y.l&&I.a===y.a}static fromRGBA(I){const y=I.r/255,E=I.g/255,p=I.b/255,a=I.a,g=Math.max(y,E,p),w=Math.min(y,E,p);let s=0,C=0;const f=(w+g)/2,v=g-w;if(v>0){switch(C=Math.min(f<=.5?v/(2*f):v/(2-2*f),1),g){case y:s=(E-p)/v+(E1&&(E-=1),E<1/6?I+(y-I)*6*E:E<1/2?y:E<2/3?I+(y-I)*(2/3-E)*6:I}static toRGBA(I){const y=I.h/360,{s:E,l:p,a}=I;let g,w,s;if(E===0)g=w=s=p;else{const C=p<.5?p*(1+E):p+E-p*E,f=2*p-C;g=O._hue2rgb(f,C,y+1/3),w=O._hue2rgb(f,C,y),s=O._hue2rgb(f,C,y-1/3)}return new H(Math.round(g*255),Math.round(w*255),Math.round(s*255),a)}}class P{constructor(I,y,E,p){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,I),0)|0,this.s=h(Math.max(Math.min(1,y),0),3),this.v=h(Math.max(Math.min(1,E),0),3),this.a=h(Math.max(Math.min(1,p),0),3)}static equals(I,y){return I.h===y.h&&I.s===y.s&&I.v===y.v&&I.a===y.a}static fromRGBA(I){const y=I.r/255,E=I.g/255,p=I.b/255,a=Math.max(y,E,p),g=Math.min(y,E,p),w=a-g,s=a===0?0:w/a;let C;return w===0?C=0:a===y?C=((E-p)/w%6+6)%6:a===E?C=(p-y)/w+2:C=(y-E)/w+4,new P(Math.round(C*60),s,a,I.a)}static toRGBA(I){const{h:y,s:E,v:p,a}=I,g=p*E,w=g*(1-Math.abs(y/60%2-1)),s=p-g;let[C,f,v]=[0,0,0];return y<60?(C=g,f=w):y<120?(C=w,f=g):y<180?(f=g,v=w):y<240?(f=w,v=g):y<300?(C=w,v=g):y<=360&&(C=g,v=w),C=Math.round((C+s)*255),f=Math.round((f+s)*255),v=Math.round((v+s)*255),new H(C,f,v,a)}}class D{constructor(I){if(I)if(I instanceof H)this.rgba=I;else if(I instanceof O)this._hsla=I,this.rgba=O.toRGBA(I);else if(I instanceof P)this._hsva=I,this.rgba=P.toRGBA(I);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}static fromHex(I){return D.Format.CSS.parseHex(I)||D.red}get hsla(){return this._hsla?this._hsla:O.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:P.fromRGBA(this.rgba)}equals(I){return!!I&&H.equals(this.rgba,I.rgba)&&O.equals(this.hsla,I.hsla)&&P.equals(this.hsva,I.hsva)}getRelativeLuminance(){const I=D._relativeLuminanceForComponent(this.rgba.r),y=D._relativeLuminanceForComponent(this.rgba.g),E=D._relativeLuminanceForComponent(this.rgba.b),p=.2126*I+.7152*y+.0722*E;return h(p,4)}static _relativeLuminanceForComponent(I){const y=I/255;return y<=.03928?y/12.92:Math.pow((y+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(I){const y=this.getRelativeLuminance(),E=I.getRelativeLuminance();return y>E}isDarkerThan(I){const y=this.getRelativeLuminance(),E=I.getRelativeLuminance();return y0||this.m_modifiedCount>0)&&this.m_changes.push(new h(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(p,a){this.m_originalStart=Math.min(this.m_originalStart,p),this.m_modifiedStart=Math.min(this.m_modifiedStart,a),this.m_originalCount++}AddModifiedElement(p,a){this.m_originalStart=Math.min(this.m_originalStart,p),this.m_modifiedStart=Math.min(this.m_modifiedStart,a),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class y{constructor(p,a,g=null){this.ContinueProcessingPredicate=g,this._originalSequence=p,this._modifiedSequence=a;const[w,s,C]=y._getElements(p),[f,v,r]=y._getElements(a);this._hasStrings=C&&r,this._originalStringElements=w,this._originalElementsOrHash=s,this._modifiedStringElements=f,this._modifiedElementsOrHash=v,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(p){return p.length>0&&typeof p[0]=="string"}static _getElements(p){const a=p.getElements();if(y._isStringArray(a)){const g=new Int32Array(a.length);for(let w=0,s=a.length;w=p&&w>=g&&this.ElementsAreEqual(a,w);)a--,w--;if(p>a||g>w){let m;return g<=w?(D.Assert(p===a+1,"originalStart should only be one more than originalEnd"),m=[new h(p,0,g,w-g+1)]):p<=a?(D.Assert(g===w+1,"modifiedStart should only be one more than modifiedEnd"),m=[new h(p,a-p+1,g,0)]):(D.Assert(p===a+1,"originalStart should only be one more than originalEnd"),D.Assert(g===w+1,"modifiedStart should only be one more than modifiedEnd"),m=[]),m}const C=[0],f=[0],v=this.ComputeRecursionPoint(p,a,g,w,C,f,s),r=C[0],l=f[0];if(v!==null)return v;if(!s[0]){const m=this.ComputeDiffRecursive(p,r,g,l,s);let c=[];return s[0]?c=[new h(r+1,a-(r+1)+1,l+1,w-(l+1)+1)]:c=this.ComputeDiffRecursive(r+1,a,l+1,w,s),this.ConcatenateChanges(m,c)}return[new h(p,a-p+1,g,w-g+1)]}WALKTRACE(p,a,g,w,s,C,f,v,r,l,m,c,b,L,T,M,z,oe){let se=null,re=null,De=new I,J=a,Z=g,Q=b[0]-M[0]-w,le=-1073741824,xe=this.m_forwardHistory.length-1;do{const j=Q+p;j===J||j=0&&(r=this.m_forwardHistory[xe],p=r[0],J=1,Z=r.length-1)}while(--xe>=-1);if(se=De.getReverseChanges(),oe[0]){let j=b[0]+1,R=M[0]+1;if(se!==null&&se.length>0){const V=se[se.length-1];j=Math.max(j,V.getOriginalEnd()),R=Math.max(R,V.getModifiedEnd())}re=[new h(j,c-j+1,R,T-R+1)]}else{De=new I,J=C,Z=f,Q=b[0]-M[0]-v,le=1073741824,xe=z?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const j=Q+s;j===J||j=l[j+1]?(m=l[j+1]-1,L=m-Q-v,m>le&&De.MarkNextChange(),le=m+1,De.AddOriginalElement(m+1,L+1),Q=j+1-s):(m=l[j-1],L=m-Q-v,m>le&&De.MarkNextChange(),le=m,De.AddModifiedElement(m+1,L+1),Q=j-1-s),xe>=0&&(l=this.m_reverseHistory[xe],s=l[0],J=1,Z=l.length-1)}while(--xe>=-1);re=De.getChanges()}return this.ConcatenateChanges(se,re)}ComputeRecursionPoint(p,a,g,w,s,C,f){let v=0,r=0,l=0,m=0,c=0,b=0;p--,g--,s[0]=0,C[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const L=a-p+(w-g),T=L+1,M=new Int32Array(T),z=new Int32Array(T),oe=w-g,se=a-p,re=p-g,De=a-w,Z=(se-oe)%2===0;M[oe]=p,z[se]=a,f[0]=!1;for(let Q=1;Q<=L/2+1;Q++){let le=0,xe=0;l=this.ClipDiagonalBound(oe-Q,Q,oe,T),m=this.ClipDiagonalBound(oe+Q,Q,oe,T);for(let R=l;R<=m;R+=2){R===l||Rle+xe&&(le=v,xe=r),!Z&&Math.abs(R-se)<=Q-1&&v>=z[R])return s[0]=v,C[0]=r,V<=z[R]&&Q<=1448?this.WALKTRACE(oe,l,m,re,se,c,b,De,M,z,v,a,s,r,w,C,Z,f):null}const j=(le-p+(xe-g)-Q)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(le,j))return f[0]=!0,s[0]=le,C[0]=xe,j>0&&Q<=1448?this.WALKTRACE(oe,l,m,re,se,c,b,De,M,z,v,a,s,r,w,C,Z,f):(p++,g++,[new h(p,a-p+1,g,w-g+1)]);c=this.ClipDiagonalBound(se-Q,Q,se,T),b=this.ClipDiagonalBound(se+Q,Q,se,T);for(let R=c;R<=b;R+=2){R===c||R=z[R+1]?v=z[R+1]-1:v=z[R-1],r=v-(R-se)-De;const V=v;for(;v>p&&r>g&&this.ElementsAreEqual(v,r);)v--,r--;if(z[R]=v,Z&&Math.abs(R-oe)<=Q&&v<=M[R])return s[0]=v,C[0]=r,V>=M[R]&&Q<=1448?this.WALKTRACE(oe,l,m,re,se,c,b,De,M,z,v,a,s,r,w,C,Z,f):null}if(Q<=1447){let R=new Int32Array(m-l+2);R[0]=oe-l+1,G.Copy2(M,l,R,1,m-l+1),this.m_forwardHistory.push(R),R=new Int32Array(b-c+2),R[0]=se-c+1,G.Copy2(z,c,R,1,b-c+1),this.m_reverseHistory.push(R)}}return this.WALKTRACE(oe,l,m,re,se,c,b,De,M,z,v,a,s,r,w,C,Z,f)}PrettifyChanges(p){for(let a=0;a0,f=g.modifiedLength>0;for(;g.originalStart+g.originalLength=0;a--){const g=p[a];let w=0,s=0;if(a>0){const m=p[a-1];w=m.originalStart+m.originalLength,s=m.modifiedStart+m.modifiedLength}const C=g.originalLength>0,f=g.modifiedLength>0;let v=0,r=this._boundaryScore(g.originalStart,g.originalLength,g.modifiedStart,g.modifiedLength);for(let m=1;;m++){const c=g.originalStart-m,b=g.modifiedStart-m;if(cr&&(r=T,v=m)}g.originalStart-=v,g.modifiedStart-=v;const l=[null];if(a>0&&this.ChangesOverlap(p[a-1],p[a],l)){p[a-1]=l[0],p.splice(a,1),a++;continue}}if(this._hasStrings)for(let a=1,g=p.length;a0&&b>v&&(v=b,r=m,l=c)}return v>0?[r,l]:null}_contiguousSequenceScore(p,a,g){let w=0;for(let s=0;s=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[p])}_OriginalRegionIsBoundary(p,a){if(this._OriginalIsBoundary(p)||this._OriginalIsBoundary(p-1))return!0;if(a>0){const g=p+a;if(this._OriginalIsBoundary(g-1)||this._OriginalIsBoundary(g))return!0}return!1}_ModifiedIsBoundary(p){return p<=0||p>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[p])}_ModifiedRegionIsBoundary(p,a){if(this._ModifiedIsBoundary(p)||this._ModifiedIsBoundary(p-1))return!0;if(a>0){const g=p+a;if(this._ModifiedIsBoundary(g-1)||this._ModifiedIsBoundary(g))return!0}return!1}_boundaryScore(p,a,g,w){const s=this._OriginalRegionIsBoundary(p,a)?1:0,C=this._ModifiedRegionIsBoundary(g,w)?1:0;return s+C}ConcatenateChanges(p,a){let g=[];if(p.length===0||a.length===0)return a.length>0?a:p;if(this.ChangesOverlap(p[p.length-1],a[0],g)){const w=new Array(p.length+a.length-1);return G.Copy(p,0,w,0,p.length-1),w[p.length-1]=g[0],G.Copy(a,1,w,p.length,a.length-1),w}else{const w=new Array(p.length+a.length);return G.Copy(p,0,w,0,p.length),G.Copy(a,0,w,p.length,a.length),w}}ChangesOverlap(p,a,g){if(D.Assert(p.originalStart<=a.originalStart,"Left change is not less than or equal to right change"),D.Assert(p.modifiedStart<=a.modifiedStart,"Left change is not less than or equal to right change"),p.originalStart+p.originalLength>=a.originalStart||p.modifiedStart+p.modifiedLength>=a.modifiedStart){const w=p.originalStart;let s=p.originalLength;const C=p.modifiedStart;let f=p.modifiedLength;return p.originalStart+p.originalLength>=a.originalStart&&(s=a.originalStart+a.originalLength-p.originalStart),p.modifiedStart+p.modifiedLength>=a.modifiedStart&&(f=a.modifiedStart+a.modifiedLength-p.modifiedStart),g[0]=new h(w,s,C,f),!0}else return g[0]=null,!1}ClipDiagonalBound(p,a,g,w){if(p>=0&&pp.length)return!1;if(g){if(!(0,O.ok)(p,a))return!1;if(a.length===p.length)return!0;let C=a.length;return a.charAt(a.length-1)===w&&C--,p.charAt(C)===w}return a.charAt(a.length-1)!==w&&(a+=w),p.indexOf(a)===0}function I(p){return p>=65&&p<=90||p>=97&&p<=122}function y(p){const a=(0,h.Fv)(p);return H.ED?p.length>3?!1:E(a)&&(p.length===2||a.charCodeAt(2)===92):a===h.KR.sep}function E(p){return H.ED?I(p.charCodeAt(0))&&p.charCodeAt(1)===58:!1}},75392:function(xt,Te,i){"use strict";i.d(Te,{CL:function(){return Ve},EW:function(){return We},Ji:function(){return P},KZ:function(){return M},Oh:function(){return J},ir:function(){return G},jB:function(){return Z},l7:function(){return ne},mB:function(){return Q},or:function(){return O}});var h=i(43702),H=i(97295);function O(...ee){return function(he,Pe){for(let Ye=0,it=ee.length;Ye0?[{start:0,end:he.length}]:[]:null}function G(ee,he){const Pe=he.toLowerCase().indexOf(ee.toLowerCase());return Pe===-1?null:[{start:Pe,end:Pe+ee.length}]}function I(ee,he){return y(ee.toLowerCase(),he.toLowerCase(),0,0)}function y(ee,he,Pe,Ye){if(Pe===ee.length)return[];if(Ye===he.length)return null;if(ee[Pe]===he[Ye]){let it=null;return(it=y(ee,he,Pe+1,Ye+1))?v({start:Ye,end:Ye+1},it):null}return y(ee,he,Pe,Ye+1)}function E(ee){return 97<=ee&&ee<=122}function p(ee){return 65<=ee&&ee<=90}function a(ee){return 48<=ee&&ee<=57}function g(ee){return ee===32||ee===9||ee===10||ee===13}const w=new Set;"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(ee=>w.add(ee.charCodeAt(0)));function s(ee){return g(ee)||w.has(ee)}function C(ee,he){return ee===he||s(ee)&&s(he)}function f(ee){return E(ee)||p(ee)||a(ee)}function v(ee,he){return he.length===0?he=[ee]:ee.end===he[0].start?he[0].start=ee.start:he.unshift(ee),he}function r(ee,he){for(let Pe=he;Pe0&&!f(ee.charCodeAt(Pe-1)))return Pe}return ee.length}function l(ee,he,Pe,Ye){if(Pe===ee.length)return[];if(Ye===he.length)return null;if(ee[Pe]!==he[Ye].toLowerCase())return null;{let it=null,rt=Ye+1;for(it=l(ee,he,Pe+1,Ye+1);!it&&(rt=r(he,rt)).6}function b(ee){const{upperPercent:he,lowerPercent:Pe,alphaPercent:Ye,numericPercent:it}=ee;return Pe>.2&&he<.8&&Ye>.6&&it<.2}function L(ee){let he=0,Pe=0,Ye=0,it=0;for(let rt=0;rt60)return null;const Pe=m(he);if(!b(Pe)){if(!c(Pe))return null;he=he.toLowerCase()}let Ye=null,it=0;for(ee=ee.toLowerCase();it0&&s(ee.charCodeAt(Pe-1)))return Pe;return ee.length}const se=O(P,T,G),re=O(P,T,I),De=new h.z6(1e4);function J(ee,he,Pe=!1){if(typeof ee!="string"||typeof he!="string")return null;let Ye=De.get(ee);Ye||(Ye=new RegExp(H.un(ee),"i"),De.set(ee,Ye));const it=Ye.exec(he);return it?[{start:it.index,end:it.index+it[0].length}]:Pe?re(ee,he):se(ee,he)}function Z(ee,he,Pe,Ye,it,rt){const vt=Math.min(13,ee.length);for(;Pe1;Ye--){const it=ee[Ye]+Pe,rt=he[he.length-1];rt&&rt.end===it?rt.end=it+1:he.push({start:it,end:it+1})}return he}const le=128;function xe(){const ee=[],he=[];for(let Pe=0;Pe<=le;Pe++)he[Pe]=0;for(let Pe=0;Pe<=le;Pe++)ee.push(he.slice(0));return ee}function j(ee){const he=[];for(let Pe=0;Pe<=ee;Pe++)he[Pe]=0;return he}const R=j(2*le),V=j(2*le),K=xe(),ie=xe(),te=xe(),ge=!1;function ye(ee,he,Pe,Ye,it){function rt(Ft,Ht,ze=" "){for(;Ft.lengthrt(Ft,3)).join("|")} `;for(let Ft=0;Ft<=Pe;Ft++)Ft===0?vt+=" |":vt+=`${he[Ft-1]}|`,vt+=ee[Ft].slice(0,it+1).map(Ht=>rt(Ht.toString(),3)).join("|")+` `;return vt}function ve(ee,he,Pe,Ye){ee=ee.substr(he),Pe=Pe.substr(Ye),console.log(ye(ie,ee,ee.length,Pe,Pe.length)),console.log(ye(te,ee,ee.length,Pe,Pe.length)),console.log(ye(K,ee,ee.length,Pe,Pe.length))}function Fe(ee,he){if(he<0||he>=ee.length)return!1;const Pe=ee.codePointAt(he);switch(Pe){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 40:case 91:return!0;case void 0:return!1;default:return!!H.C8(Pe)}}function we(ee,he){if(he<0||he>=ee.length)return!1;switch(ee.charCodeAt(he)){case 32:case 9:return!0;default:return!1}}function ue(ee,he,Pe){return he[ee]!==Pe[ee]}function ce(ee,he,Pe,Ye,it,rt,vt=!1){for(;hele?le:ee.length,Ht=Ye.length>le?le:Ye.length;if(Pe>=Ft||rt>=Ht||Ft-Pe>Ht-rt||!ce(he,Pe,Ft,it,rt,Ht,!0))return;ae(Ft,Ht,Pe,rt,he,it);let ze=1,Xe=1,Ze=Pe,Ae=rt;const He=[!1];for(ze=1,Ze=Pe;Zehi,st=Gt?ie[ze][Xe-1]+(K[ze][Xe-1]>0?-5:0):0,gt=Ae>hi+1&&K[ze][Xe-1]>0,ht=gt?ie[ze][Xe-2]+(K[ze][Xe-2]>0?-5:0):0;if(gt&&(!Gt||ht>=st)&&(!ai||ht>=Pt))ie[ze][Xe]=ht,te[ze][Xe]=3,K[ze][Xe]=0;else if(Gt&&(!ai||st>=Pt))ie[ze][Xe]=st,te[ze][Xe]=2,K[ze][Xe]=0;else if(ai)ie[ze][Xe]=Pt,te[ze][Xe]=1,K[ze][Xe]=K[ze-1][Xe-1]+1;else throw new Error("not possible")}}if(ge&&ve(ee,Pe,Ye,rt),!He[0]&&!vt)return;ze--,Xe--;const Et=[ie[ze][Xe],rt];let Wt=0,oi=0;for(;ze>=1;){let hi=Xe;do{const Di=te[ze][hi];if(Di===3)hi=hi-2;else if(Di===2)hi=hi-1;else break}while(hi>=1);Wt>1&&he[Pe+ze-1]===it[rt+Xe-1]&&!ue(hi+rt-1,Ye,it)&&Wt+1>K[ze][hi]&&(hi=Xe),hi===Xe?Wt++:Wt=1,oi||(oi=hi),ze--,Xe=hi-1,Et.push(Xe)}Ht===Ft&&(Et[0]+=2);const ni=oi-Ft;return Et[0]-=ni,Et}function ae(ee,he,Pe,Ye,it,rt){let vt=ee-1,Ft=he-1;for(;vt>=Pe&&Ft>=Ye;)it[vt]===rt[Ft]&&(V[vt]=Ft,vt--),Ft--}function fe(ee,he,Pe,Ye,it,rt,vt,Ft,Ht,ze,Xe){if(he[Pe]!==rt[vt])return Number.MIN_SAFE_INTEGER;let Ze=1,Ae=!1;return vt===Pe-Ye?Ze=ee[Pe]===it[vt]?7:5:ue(vt,it,rt)&&(vt===0||!ue(vt-1,it,rt))?(Ze=ee[Pe]===it[vt]?7:5,Ae=!0):Fe(rt,vt)&&(vt===0||!Fe(rt,vt-1))?Ze=5:(Fe(rt,vt-1)||we(rt,vt-1))&&(Ze=5,Ae=!0),Ze>1&&Pe===Ye&&(Xe[0]=!0),Ae||(Ae=ue(vt,it,rt)||Fe(rt,vt-1)||we(rt,vt-1)),Pe===Ye?vt>Ht&&(Ze-=Ae?3:5):ze?Ze+=Ae?2:0:Ze+=Ae?0:1,vt+1===Ft&&(Ze-=Ae?3:5),Ze}function ne(ee,he,Pe,Ye,it,rt,vt){return W(ee,he,Pe,Ye,it,rt,!0,vt)}function W(ee,he,Pe,Ye,it,rt,vt,Ft){let Ht=We(ee,he,Pe,Ye,it,rt,Ft);if(Ht&&!vt)return Ht;if(ee.length>=3){const ze=Math.min(7,ee.length-1);for(let Xe=Pe+1;XeHt[0])&&(Ht=Ae))}}}return Ht}function $(ee,he){if(he+1>=ee.length)return;const Pe=ee[he],Ye=ee[he+1];if(Pe!==Ye)return ee.slice(0,he)+Ye+Pe+ee.slice(he+2)}},14118:function(xt,Te,i){"use strict";i.d(Te,{EQ:function(){return De},Qc:function(){return J}});var h=i(15393),H=i(15527),O=i(43702),P=i(54253),D=i(97295);const G="**",I="/",y="[/\\\\]",E="[^/\\\\]",p=/\//g;function a(j){switch(j){case 0:return"";case 1:return`${E}*?`;default:return`(?:${y}|${E}+${y}|${y}${E}+)*?`}}function g(j,R){if(!j)return[];const V=[];let K=!1,ie=!1,te="";for(const ge of j){switch(ge){case R:if(!K&&!ie){V.push(te),te="";continue}break;case"{":K=!0;break;case"}":K=!1;break;case"[":ie=!0;break;case"]":ie=!1;break}te+=ge}return te&&V.push(te),V}function w(j){if(!j)return"";let R="";const V=g(j,I);if(V.every(K=>K===G))R=".*";else{let K=!1;V.forEach((ie,te)=>{if(ie===G){K||(R+=a(2),K=!0);return}let ge=!1,ye="",ve=!1,Fe="";for(const we of ie){if(we!=="}"&&ge){ye+=we;continue}if(ve&&(we!=="]"||!Fe)){let ue;we==="-"?ue=we:(we==="^"||we==="!")&&!Fe?ue="^":we===I?ue="":ue=D.ec(we),Fe+=ue;continue}switch(we){case"{":ge=!0;continue;case"[":ve=!0;continue;case"}":const ce=`(?:${g(ye,",").map(Ve=>w(Ve)).join("|")})`;R+=ce,ge=!1,ye="";break;case"]":R+="["+Fe+"]",ve=!1,Fe="";break;case"?":R+=E;continue;case"*":R+=a(1);continue;default:R+=D.ec(we)}}teL(ye,R)).filter(ye=>ye!==b),j),K=V.length;if(!K)return b;if(K===1)return V[0];const ie=function(ye,ve){for(let Fe=0,we=V.length;Fe!!ye.allBasenames);te&&(ie.allBasenames=te.allBasenames);const ge=V.reduce((ye,ve)=>ve.allPaths?ye.concat(ve.allPaths):ye,[]);return ge.length&&(ie.allPaths=ge),ie}function se(j,R,V){const K=P.ir===P.KR.sep,ie=K?j:j.replace(p,P.ir),te=P.ir+ie,ge=P.KR.sep+j,ye=V?function(ve,Fe){return typeof ve=="string"&&(ve===ie||ve.endsWith(te)||!K&&(ve===j||ve.endsWith(ge)))?R:null}:function(ve,Fe){return typeof ve=="string"&&(ve===ie||!K&&ve===j)?R:null};return ye.allPaths=[(V?"*/":"./")+j],ye}function re(j){try{const R=new RegExp(`^${w(j)}$`);return function(V){return R.lastIndex=0,typeof V=="string"&&R.test(V)?j:null}}catch(R){return b}}function De(j,R,V){return!j||typeof R!="string"?!1:J(j)(R,void 0,V)}function J(j,R={}){if(!j)return c;if(typeof j=="string"||Z(j)){const V=L(j,R);if(V===b)return c;const K=function(ie,te){return!!V(ie,te)};return V.allBasenames&&(K.allBasenames=V.allBasenames),V.allPaths&&(K.allPaths=V.allPaths),K}return Q(j,R)}function Z(j){const R=j;return R&&typeof R.base=="string"&&typeof R.pattern=="string"}function Q(j,R){const V=xe(Object.getOwnPropertyNames(j).map(ye=>le(ye,j[ye],R)).filter(ye=>ye!==b)),K=V.length;if(!K)return b;if(!V.some(ye=>!!ye.requiresSiblings)){if(K===1)return V[0];const ye=function(we,ue){for(let ce=0,Ve=V.length;ce!!we.allBasenames);ve&&(ye.allBasenames=ve.allBasenames);const Fe=V.reduce((we,ue)=>ue.allPaths?we.concat(ue.allPaths):we,[]);return Fe.length&&(ye.allPaths=Fe),ye}const ie=function(ye,ve,Fe){let we;for(let ue=0,ce=V.length;ue!!ye.allBasenames);te&&(ie.allBasenames=te.allBasenames);const ge=V.reduce((ye,ve)=>ve.allPaths?ye.concat(ve.allPaths):ye,[]);return ge.length&&(ie.allPaths=ge),ie}function le(j,R,V){if(R===!1)return b;const K=L(j,V);if(K===b)return b;if(typeof R=="boolean")return K;if(R){const ie=R.when;if(typeof ie=="string"){const te=(ge,ye,ve,Fe)=>{if(!Fe||!K(ge,ye))return null;const we=ie.replace("$(basename)",ve),ue=Fe(we);return(0,h.J8)(ue)?ue.then(ce=>ce?j:null):ue?j:null};return te.requiresSiblings=!0,te}}return K}function xe(j,R){const V=j.filter(ye=>!!ye.basenames);if(V.length<2)return j;const K=V.reduce((ye,ve)=>{const Fe=ve.basenames;return Fe?ye.concat(Fe):ye},[]);let ie;if(R){ie=[];for(let ye=0,ve=K.length;ye{const Fe=ve.patterns;return Fe?ye.concat(Fe):ye},[]);const te=function(ye,ve){if(typeof ye!="string")return null;if(!ve){let we;for(we=ye.length;we>0;we--){const ue=ye.charCodeAt(we-1);if(ue===47||ue===92)break}ve=ye.substr(we)}const Fe=K.indexOf(ve);return Fe!==-1?ie[Fe]:null};te.basenames=K,te.patterns=ie,te.allBasenames=K;const ge=j.filter(ye=>!ye.basenames);return ge.push(te),ge}},89954:function(xt,Te,i){"use strict";i.d(Te,{Cv:function(){return G},SP:function(){return O},vp:function(){return H},yP:function(){return w}});var h=i(97295);function H(s){return O(s,0)}function O(s,C){switch(typeof s){case"object":return s===null?P(349,C):Array.isArray(s)?I(s,C):y(s,C);case"string":return G(s,C);case"boolean":return D(s,C);case"number":return P(s,C);case"undefined":return P(937,C);default:return P(617,C)}}function P(s,C){return(C<<5)-C+s|0}function D(s,C){return P(s?433:863,C)}function G(s,C){C=P(149417,C);for(let f=0,v=s.length;fO(v,f),C)}function y(s,C){return C=P(181387,C),Object.keys(s).sort().reduce((f,v)=>(f=G(v,f),O(s[v],f)),C)}function E(s,C,f=32){const v=f-C,r=~((1<>>v)>>>0}function p(s,C=0,f=s.byteLength,v=0){for(let r=0;rf.toString(16).padStart(2,"0")).join(""):a((s>>>0).toString(16),C/4)}class w{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(C){const f=C.length;if(f===0)return;const v=this._buff;let r=this._buffLen,l=this._leftoverHighSurrogate,m,c;for(l!==0?(m=l,c=-1,l=0):(m=C.charCodeAt(0),c=0);;){let b=m;if(h.ZG(m))if(c+1>>6,C[f++]=128|(v&63)>>>0):v<65536?(C[f++]=224|(v&61440)>>>12,C[f++]=128|(v&4032)>>>6,C[f++]=128|(v&63)>>>0):(C[f++]=240|(v&1835008)>>>18,C[f++]=128|(v&258048)>>>12,C[f++]=128|(v&4032)>>>6,C[f++]=128|(v&63)>>>0),f>=64&&(this._step(),f-=64,this._totalLen+=64,C[0]=C[64],C[1]=C[65],C[2]=C[66]),f}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),g(this._h0)+g(this._h1)+g(this._h2)+g(this._h3)+g(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,p(this._buff,this._buffLen),this._buffLen>56&&(this._step(),p(this._buff));const C=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(C/4294967296),!1),this._buffDV.setUint32(60,C%4294967296,!1),this._step()}_step(){const C=w._bigBlock32,f=this._buffDV;for(let M=0;M<64;M+=4)C.setUint32(M,f.getUint32(M,!1),!1);for(let M=64;M<320;M+=4)C.setUint32(M,E(C.getUint32(M-12,!1)^C.getUint32(M-32,!1)^C.getUint32(M-56,!1)^C.getUint32(M-64,!1),1),!1);let v=this._h0,r=this._h1,l=this._h2,m=this._h3,c=this._h4,b,L,T;for(let M=0;M<80;M++)M<20?(b=r&l|~r&m,L=1518500249):M<40?(b=r^l^m,L=1859775393):M<60?(b=r&l|r&m|l&m,L=2400959708):(b=r^l^m,L=3395469782),T=E(v,5)+b+c+L+C.getUint32(M*4,!1)&4294967295,c=m,m=l,l=E(r,30),r=v,v=T;this._h0=this._h0+v&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+m&4294967295,this._h4=this._h4+c&4294967295}}w._bigBlock32=new DataView(new ArrayBuffer(320))},59365:function(xt,Te,i){"use strict";i.d(Te,{CP:function(){return P},Fr:function(){return D},W5:function(){return O},oR:function(){return I},v1:function(){return y}});var h=i(17301),H=i(21212);class O{constructor(p="",a=!1){var g,w,s;if(this.value=p,typeof this.value!="string")throw(0,h.b1)("value");typeof a=="boolean"?(this.isTrusted=a,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=(g=a.isTrusted)!==null&&g!==void 0?g:void 0,this.supportThemeIcons=(w=a.supportThemeIcons)!==null&&w!==void 0?w:!1,this.supportHtml=(s=a.supportHtml)!==null&&s!==void 0?s:!1)}appendText(p,a=0){return this.value+=G(this.supportThemeIcons?(0,H.Qo)(p):p).replace(/([ \t]+)/g,(g,w)=>" ".repeat(w.length)).replace(/\>/gm,"\\>").replace(/\n/g,a===1?`\\ `:` `),this}appendMarkdown(p){return this.value+=p,this}appendCodeblock(p,a){return this.value+="\n```",this.value+=p,this.value+=` `,this.value+=a,this.value+="\n```\n",this}}function P(E){return D(E)?!E.value:Array.isArray(E)?E.every(P):!0}function D(E){return E instanceof O?!0:E&&typeof E=="object"?typeof E.value=="string"&&(typeof E.isTrusted=="boolean"||E.isTrusted===void 0)&&(typeof E.supportThemeIcons=="boolean"||E.supportThemeIcons===void 0):!1}function G(E){return E.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}function I(E){return E&&E.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}function y(E){const p=[],a=E.split("|").map(w=>w.trim());E=a[0];const g=a[1];if(g){const w=/height=(\d+)/.exec(g),s=/width=(\d+)/.exec(g),C=w?w[1]:"",f=s?s[1]:"",v=isFinite(parseInt(f)),r=isFinite(parseInt(C));v&&p.push(`width="${f}"`),r&&p.push(`height="${C}"`)}return{href:E,dimensions:p}}},21212:function(xt,Te,i){"use strict";i.d(Te,{Gt:function(){return s},Ho:function(){return g},Qo:function(){return I},f$:function(){return E},x$:function(){return a}});var h=i(73046),H=i(75392),O=i(97295);const P="$(",D=new RegExp(`\\$\\(${h.dT.iconNameExpression}(?:${h.dT.iconModifierExpression})?\\)`,"g"),G=new RegExp(`(\\\\)?${D.source}`,"g");function I(C){return C.replace(G,(f,v)=>v?f:`\\${f}`)}const y=new RegExp(`\\\\${D.source}`,"g");function E(C){return C.replace(y,f=>`\\${f}`)}const p=new RegExp(`(\\s)?(\\\\)?${D.source}(\\s)?`,"g");function a(C){return C.indexOf(P)===-1?C:C.replace(p,(f,v,r,l)=>r?f:v||l||"")}function g(C){const f=C.indexOf(P);return f===-1?{text:C}:w(C,f)}function w(C,f){const v=[];let r="";function l(oe){if(oe){r+=oe;for(const se of oe)v.push(b)}}let m=-1,c="",b=0,L,T,M=f;const z=C.length;for(l(C.substr(0,f));M=93&&c<=108)return null;switch(c){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return H.keyCodeToStr(c)}s.toElectronAccelerator=m})(g||(g={}));function w(s,C){const f=(C&65535)<<16>>>0;return(s|f)>>>0}},8030:function(xt,Te,i){"use strict";i.d(Te,{X4:function(){return P},jC:function(){return D},xo:function(){return O}});var h=i(63580);class H{constructor(y,E,p=E){this.modifierLabels=[null],this.modifierLabels[2]=y,this.modifierLabels[1]=E,this.modifierLabels[3]=p}toLabel(y,E,p){if(E.length===0)return null;const a=[];for(let g=0,w=E.length;g>>0,g=(E&4294901760)>>>16;return g!==0?new D([O(a,p),O(g,p)]):new D([O(a,p)])}function O(E,p){const a=!!(E&2048),g=!!(E&256),w=p===2?g:a,s=!!(E&1024),C=!!(E&512),f=p===2?a:g,v=E&255;return new P(w,s,C,f,v)}class P{constructor(p,a,g,w,s){this.ctrlKey=p,this.shiftKey=a,this.altKey=g,this.metaKey=w,this.keyCode=s}equals(p){return this.ctrlKey===p.ctrlKey&&this.shiftKey===p.shiftKey&&this.altKey===p.altKey&&this.metaKey===p.metaKey&&this.keyCode===p.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toChord(){return new D([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class D{constructor(p){if(p.length===0)throw(0,h.b1)("parts");this.parts=p}}class G{constructor(p,a,g,w,s){this.ctrlKey=p,this.shiftKey=a,this.altKey=g,this.metaKey=w,this.scanCode=s}isDuplicateModifierCase(){return this.ctrlKey&&(this.scanCode===157||this.scanCode===161)||this.shiftKey&&(this.scanCode===158||this.scanCode===162)||this.altKey&&(this.scanCode===159||this.scanCode===163)||this.metaKey&&(this.scanCode===160||this.scanCode===164)}}class I{constructor(p,a,g,w,s,C){this.ctrlKey=p,this.shiftKey=a,this.altKey=g,this.metaKey=w,this.keyLabel=s,this.keyAriaLabel=C}}class y{}},68843:function(xt,Te,i){"use strict";i.d(Te,{D:function(){return I},p:function(){return G}});var h=i(15527),H=i(66663),O=i(1432),P=i(95935),D=i(70666);function G(y){if(!y)return;typeof y=="string"&&(y=D.o.file(y));const E=(0,P.EZ)(y)||(y.scheme===H.lg.file?y.fsPath:y.path);return O.ED&&(0,h.vY)(E)?I(E):E}function I(y){return(0,h.oP)(y)?y.charAt(0).toUpperCase()+y.slice(1):y}},43702:function(xt,Te,i){"use strict";i.d(Te,{Id:function(){return E},Y9:function(){return a},z6:function(){return w}});var h=i(97295),H,O;class P{constructor(){this._value="",this._pos=0}reset(C){return this._value=C,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos!1){return new E(new I(C))}static forStrings(){return new E(new P)}static forConfigKeys(){return new E(new D)}clear(){this._root=void 0}set(C,f){const v=this._iter.reset(C);let r;this._root||(this._root=new y,this._root.segment=v.value());const l=[];for(r=this._root;;){const c=v.cmp(r.segment);if(c>0)r.left||(r.left=new y,r.left.segment=v.value()),l.push([-1,r]),r=r.left;else if(c<0)r.right||(r.right=new y,r.right.segment=v.value()),l.push([1,r]),r=r.right;else if(v.hasNext())v.next(),r.mid||(r.mid=new y,r.mid.segment=v.value()),l.push([0,r]),r=r.mid;else break}const m=r.value;r.value=f,r.key=C;for(let c=l.length-1;c>=0;c--){const b=l[c][1];b.updateHeight();const L=b.balanceFactor();if(L<-1||L>1){const T=l[c][0],M=l[c+1][0];if(T===1&&M===1)l[c][1]=b.rotateLeft();else if(T===-1&&M===-1)l[c][1]=b.rotateRight();else if(T===1&&M===-1)b.right=l[c+1][1]=l[c+1][1].rotateRight(),l[c][1]=b.rotateLeft();else if(T===-1&&M===1)b.left=l[c+1][1]=l[c+1][1].rotateLeft(),l[c][1]=b.rotateRight();else throw new Error;if(c>0)switch(l[c-1][0]){case-1:l[c-1][1].left=l[c][1];break;case 1:l[c-1][1].right=l[c][1];break;case 0:l[c-1][1].mid=l[c][1];break}else this._root=l[0][1]}}return m}get(C){var f;return(f=this._getNode(C))===null||f===void 0?void 0:f.value}_getNode(C){const f=this._iter.reset(C);let v=this._root;for(;v;){const r=f.cmp(v.segment);if(r>0)v=v.left;else if(r<0)v=v.right;else if(f.hasNext())f.next(),v=v.mid;else break}return v}has(C){const f=this._getNode(C);return!((f==null?void 0:f.value)===void 0&&(f==null?void 0:f.mid)===void 0)}delete(C){return this._delete(C,!1)}deleteSuperstr(C){return this._delete(C,!0)}_delete(C,f){var v;const r=this._iter.reset(C),l=[];let m=this._root;for(;m;){const c=r.cmp(m.segment);if(c>0)l.push([-1,m]),m=m.left;else if(c<0)l.push([1,m]),m=m.right;else if(r.hasNext())r.next(),l.push([0,m]),m=m.mid;else break}if(m){if(f?(m.left=void 0,m.mid=void 0,m.right=void 0,m.height=1):(m.key=void 0,m.value=void 0),!m.mid&&!m.value)if(m.left&&m.right){const c=this._min(m.right),{key:b,value:L,segment:T}=c;this._delete(c.key,!1),m.key=b,m.value=L,m.segment=T}else{const c=(v=m.left)!==null&&v!==void 0?v:m.right;if(l.length>0){const[b,L]=l[l.length-1];switch(b){case-1:L.left=c;break;case 0:L.mid=c;break;case 1:L.right=c;break}}else this._root=c}for(let c=l.length-1;c>=0;c--){const b=l[c][1];b.updateHeight();const L=b.balanceFactor();if(L>1?(b.right.balanceFactor()>=0||(b.right=l[c+1][1]=l[c+1][1].rotateRight()),l[c][1]=b.rotateLeft()):L<-1&&(b.left.balanceFactor()<=0||(b.left=l[c+1][1]=l[c+1][1].rotateLeft()),l[c][1]=b.rotateRight()),c>0)switch(l[c-1][0]){case-1:l[c-1][1].left=l[c][1];break;case 1:l[c-1][1].right=l[c][1];break;case 0:l[c-1][1].mid=l[c][1];break}else this._root=l[0][1]}}}_min(C){for(;C.left;)C=C.left;return C}findSubstr(C){const f=this._iter.reset(C);let v=this._root,r;for(;v;){const l=f.cmp(v.segment);if(l>0)v=v.left;else if(l<0)v=v.right;else if(f.hasNext())f.next(),r=v.value||r,v=v.mid;else break}return v&&v.value||r}findSuperstr(C){const f=this._iter.reset(C);let v=this._root;for(;v;){const r=f.cmp(v.segment);if(r>0)v=v.left;else if(r<0)v=v.right;else if(f.hasNext())f.next(),v=v.mid;else return v.mid?this._entries(v.mid):void 0}}forEach(C){for(const[f,v]of this)C(v,f)}*[Symbol.iterator](){yield*Jo(this._entries(this._root))}*_entries(C){C&&(C.left&&(yield*Jo(this._entries(C.left))),C.value&&(yield[C.key,C.value]),C.mid&&(yield*Jo(this._entries(C.mid))),C.right&&(yield*Jo(this._entries(C.right))))}}class p{constructor(C,f){this.uri=C,this.value=f}}class a{constructor(C,f){this[H]="ResourceMap",C instanceof a?(this.map=new Map(C.map),this.toKey=f!=null?f:a.defaultToKey):(this.map=new Map,this.toKey=C!=null?C:a.defaultToKey)}set(C,f){return this.map.set(this.toKey(C),new p(C,f)),this}get(C){var f;return(f=this.map.get(this.toKey(C)))===null||f===void 0?void 0:f.value}has(C){return this.map.has(this.toKey(C))}get size(){return this.map.size}clear(){this.map.clear()}delete(C){return this.map.delete(this.toKey(C))}forEach(C,f){typeof f!="undefined"&&(C=C.bind(f));for(let[v,r]of this.map)C(r.value,r.uri,this)}*values(){for(let C of this.map.values())yield C.value}*keys(){for(let C of this.map.values())yield C.uri}*entries(){for(let C of this.map.values())yield[C.uri,C.value]}*[(H=Symbol.toStringTag,Symbol.iterator)](){for(let[,C]of this.map)yield[C.uri,C.value]}}a.defaultToKey=s=>s.toString();class g{constructor(){this[O]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var C;return(C=this._head)===null||C===void 0?void 0:C.value}get last(){var C;return(C=this._tail)===null||C===void 0?void 0:C.value}has(C){return this._map.has(C)}get(C,f=0){const v=this._map.get(C);if(v)return f!==0&&this.touch(v,f),v.value}set(C,f,v=0){let r=this._map.get(C);if(r)r.value=f,v!==0&&this.touch(r,v);else{switch(r={key:C,value:f,next:void 0,previous:void 0},v){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(C,r),this._size++}return this}delete(C){return!!this.remove(C)}remove(C){const f=this._map.get(C);if(f)return this._map.delete(C),this.removeItem(f),this._size--,f.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const C=this._head;return this._map.delete(C.key),this.removeItem(C),this._size--,C.value}forEach(C,f){const v=this._state;let r=this._head;for(;r;){if(f?C.bind(f)(r.value,r.key,this):C(r.value,r.key,this),this._state!==v)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const C=this,f=this._state;let v=this._head;const r={[Symbol.iterator](){return r},next(){if(C._state!==f)throw new Error("LinkedMap got modified during iteration.");if(v){const l={value:v.key,done:!1};return v=v.next,l}else return{value:void 0,done:!0}}};return r}values(){const C=this,f=this._state;let v=this._head;const r={[Symbol.iterator](){return r},next(){if(C._state!==f)throw new Error("LinkedMap got modified during iteration.");if(v){const l={value:v.value,done:!1};return v=v.next,l}else return{value:void 0,done:!0}}};return r}entries(){const C=this,f=this._state;let v=this._head;const r={[Symbol.iterator](){return r},next(){if(C._state!==f)throw new Error("LinkedMap got modified during iteration.");if(v){const l={value:[v.key,v.value],done:!1};return v=v.next,l}else return{value:void 0,done:!0}}};return r}[(O=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(C){if(C>=this.size)return;if(C===0){this.clear();return}let f=this._head,v=this.size;for(;f&&v>C;)this._map.delete(f.key),f=f.next,v--;this._head=f,this._size=v,f&&(f.previous=void 0),this._state++}addItemFirst(C){if(!this._head&&!this._tail)this._tail=C;else if(this._head)C.next=this._head,this._head.previous=C;else throw new Error("Invalid list");this._head=C,this._state++}addItemLast(C){if(!this._head&&!this._tail)this._head=C;else if(this._tail)C.previous=this._tail,this._tail.next=C;else throw new Error("Invalid list");this._tail=C,this._state++}removeItem(C){if(C===this._head&&C===this._tail)this._head=void 0,this._tail=void 0;else if(C===this._head){if(!C.next)throw new Error("Invalid list");C.next.previous=void 0,this._head=C.next}else if(C===this._tail){if(!C.previous)throw new Error("Invalid list");C.previous.next=void 0,this._tail=C.previous}else{const f=C.next,v=C.previous;if(!f||!v)throw new Error("Invalid list");f.previous=v,v.next=f}C.next=void 0,C.previous=void 0,this._state++}touch(C,f){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(f!==1&&f!==2)){if(f===1){if(C===this._head)return;const v=C.next,r=C.previous;C===this._tail?(r.next=void 0,this._tail=r):(v.previous=r,r.next=v),C.previous=void 0,C.next=this._head,this._head.previous=C,this._head=C,this._state++}else if(f===2){if(C===this._tail)return;const v=C.next,r=C.previous;C===this._head?(v.previous=void 0,this._head=v):(v.previous=r,r.next=v),C.next=void 0,C.previous=this._tail,this._tail.next=C,this._tail=C,this._state++}}}toJSON(){const C=[];return this.forEach((f,v)=>{C.push([v,f])}),C}fromJSON(C){this.clear();for(const[f,v]of C)this.set(f,v)}}class w extends g{constructor(C,f=1){super(),this._limit=C,this._ratio=Math.min(Math.max(0,f),1)}get limit(){return this._limit}set limit(C){this._limit=C,this.checkTrim()}get(C,f=2){return super.get(C,f)}peek(C){return super.get(C,0)}set(C,f){return super.set(C,f,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},33720:function(xt,Te,i){"use strict";i.d(Te,{Qc:function(){return a},Th:function(){return D}}),xt=i.hmd(xt);let h;(function(){function g(w){h=w()}g.amd=!0,function(w,s){typeof exports=="object"?xt.exports=s():typeof g=="function"&&g.amd?g(s):(w=typeof globalThis!="undefined"?globalThis:w||self,w.marked=s())}(this,function(){"use strict";function w(mt,ut){for(var qe=0;qemt.length)&&(ut=mt.length);for(var qe=0,de=new Array(ut);qe=mt.length?{done:!0}:{done:!1,value:mt[de++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r={exports:{}};function l(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function m(mt){r.exports.defaults=mt}r.exports={defaults:l(),getDefaults:l,changeDefaults:m};var c=/[&<>"']/,b=/[&<>"']/g,L=/[<>"']|&(?!#?\w+;)/,T=/[<>"']|&(?!#?\w+;)/g,M={"&":"&","<":"<",">":">",'"':""","'":"'"},z=function(ut){return M[ut]};function oe(mt,ut){if(ut){if(c.test(mt))return mt.replace(b,z)}else if(L.test(mt))return mt.replace(T,z);return mt}var se=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function re(mt){return mt.replace(se,function(ut,qe){return qe=qe.toLowerCase(),qe==="colon"?":":qe.charAt(0)==="#"?qe.charAt(1)==="x"?String.fromCharCode(parseInt(qe.substring(2),16)):String.fromCharCode(+qe.substring(1)):""})}var De=/(^|[^\[])\^/g;function J(mt,ut){mt=mt.source||mt,ut=ut||"";var qe={replace:function(Se,Y){return Y=Y.source||Y,Y=Y.replace(De,"$1"),mt=mt.replace(Se,Y),qe},getRegex:function(){return new RegExp(mt,ut)}};return qe}var Z=/[^\w:]/g,Q=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function le(mt,ut,qe){if(mt){var de;try{de=decodeURIComponent(re(qe)).replace(Z,"").toLowerCase()}catch(Se){return null}if(de.indexOf("javascript:")===0||de.indexOf("vbscript:")===0||de.indexOf("data:")===0)return null}ut&&!Q.test(qe)&&(qe=K(ut,qe));try{qe=encodeURI(qe).replace(/%25/g,"%")}catch(Se){return null}return qe}var xe={},j=/^[^:]+:\/*[^/]*$/,R=/^([^:]+:)[\s\S]*$/,V=/^([^:]+:\/*[^/]*)[\s\S]*$/;function K(mt,ut){xe[" "+mt]||(j.test(mt)?xe[" "+mt]=mt+"/":xe[" "+mt]=ye(mt,"/",!0)),mt=xe[" "+mt];var qe=mt.indexOf(":")===-1;return ut.substring(0,2)==="//"?qe?ut:mt.replace(R,"$1")+ut:ut.charAt(0)==="/"?qe?ut:mt.replace(V,"$1")+ut:mt+ut}var ie={exec:function(){}};function te(mt){for(var ut=1,qe,de;ut=0&&ke[nt]==="\\";)lt=!lt;return lt?"|":" |"}),de=qe.split(/ \|/),Se=0;if(de[0].trim()||de.shift(),de[de.length-1].trim()||de.pop(),de.length>ut)de.splice(ut);else for(;de.length1;)ut&1&&(qe+=mt),ut>>=1,mt+=mt;return qe+mt}var ue={escape:oe,unescape:re,edit:J,cleanUrl:le,resolveUrl:K,noopTest:ie,merge:te,splitCells:ge,rtrim:ye,findClosingBracket:ve,checkSanitizeDeprecation:Fe,repeatString:we},ce=r.exports.defaults,Ve=ue.rtrim,We=ue.splitCells,ae=ue.escape,fe=ue.findClosingBracket;function ne(mt,ut,qe,de){var Se=ut.href,Y=ut.title?ae(ut.title):null,_e=mt[1].replace(/\\([\[\]])/g,"$1");if(mt[0].charAt(0)!=="!"){de.state.inLink=!0;var ke={type:"link",raw:qe,href:Se,title:Y,text:_e,tokens:de.inlineTokens(_e,[])};return de.state.inLink=!1,ke}else return{type:"image",raw:qe,href:Se,title:Y,text:ae(_e)}}function W(mt,ut){var qe=mt.match(/^(\s+)(?:```)/);if(qe===null)return ut;var de=qe[1];return ut.split(` `).map(function(Se){var Y=Se.match(/^\s+/);if(Y===null)return Se;var _e=Y[0];return _e.length>=de.length?Se.slice(de.length):Se}).join(` `)}var $=function(){function mt(qe){this.options=qe||ce}var ut=mt.prototype;return ut.space=function(de){var Se=this.rules.block.newline.exec(de);if(Se)return Se[0].length>1?{type:"space",raw:Se[0]}:{raw:` `}},ut.code=function(de){var Se=this.rules.block.code.exec(de);if(Se){var Y=Se[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:Se[0],codeBlockStyle:"indented",text:this.options.pedantic?Y:Ve(Y,` `)}}},ut.fences=function(de){var Se=this.rules.block.fences.exec(de);if(Se){var Y=Se[0],_e=W(Y,Se[3]||"");return{type:"code",raw:Y,lang:Se[2]?Se[2].trim():Se[2],text:_e}}},ut.heading=function(de){var Se=this.rules.block.heading.exec(de);if(Se){var Y=Se[2].trim();if(/#$/.test(Y)){var _e=Ve(Y,"#");(this.options.pedantic||!_e||/ $/.test(_e))&&(Y=_e.trim())}var ke={type:"heading",raw:Se[0],depth:Se[1].length,text:Y,tokens:[]};return this.lexer.inline(ke.text,ke.tokens),ke}},ut.hr=function(de){var Se=this.rules.block.hr.exec(de);if(Se)return{type:"hr",raw:Se[0]}},ut.blockquote=function(de){var Se=this.rules.block.blockquote.exec(de);if(Se){var Y=Se[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Se[0],tokens:this.lexer.blockTokens(Y,[]),text:Y}}},ut.list=function(de){var Se=this.rules.block.list.exec(de);if(Se){var Y,_e,ke,lt,nt,pt,Dt,Vt,Mt,Jt,jt=Se[1].trim(),ui=jt.length>1,vi={type:"list",raw:"",ordered:ui,start:ui?+jt.slice(0,-1):"",loose:!1,items:[]};jt=ui?"\\d{1,9}\\"+jt.slice(-1):"\\"+jt,this.options.pedantic&&(jt=ui?jt:"[*+-]");for(var Si=new RegExp("^( {0,3}"+jt+")((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))");de&&!(this.rules.block.hr.test(de)||!(Se=Si.exec(de)));){Mt=Se[2].split(` `),this.options.pedantic?(lt=2,Jt=Mt[0].trimLeft()):(lt=Se[2].search(/[^ ]/),lt=Se[1].length+(lt>4?1:lt),Jt=Mt[0].slice(lt-Se[1].length)),pt=!1,Y=Se[0],!Mt[0]&&/^ *$/.test(Mt[1])&&(Y=Se[1]+Mt.slice(0,2).join(` `)+` `,vi.loose=!0,Mt=[]);var Oi=new RegExp("^ {0,"+Math.min(3,lt-1)+"}(?:[*+-]|\\d{1,9}[.)])");for(nt=1;nt=lt?Jt+=` `+Vt.slice(lt):Jt+=` `+Vt;continue}if(Vt.search(/[^ ]/)>=lt||!Vt.trim()){Jt+=` `+Vt.slice(lt);continue}else{Y=Se[1]+Mt.slice(0,nt).join(` `)+` `;break}}vi.loose||(Dt?vi.loose=!0:/\n *\n *$/.test(Y)&&(Dt=!0)),this.options.gfm&&(_e=/^\[[ xX]\] /.exec(Jt),_e&&(ke=_e[0]!=="[ ] ",Jt=Jt.replace(/^\[[ xX]\] +/,""))),vi.items.push({type:"list_item",raw:Y,task:!!_e,checked:ke,loose:!1,text:Jt}),vi.raw+=Y,de=de.slice(Y.length)}vi.items[vi.items.length-1].raw=Y.trimRight(),vi.items[vi.items.length-1].text=Jt.trimRight(),vi.raw=vi.raw.trimRight();var Ri=vi.items.length;for(nt=0;nt/i.test(Se[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(Se[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Se[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:Se[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Se[0]):ae(Se[0]):Se[0]}},ut.link=function(de){var Se=this.rules.inline.link.exec(de);if(Se){var Y=Se[2].trim();if(!this.options.pedantic&&/^$/.test(Y))return;var _e=Ve(Y.slice(0,-1),"\\");if((Y.length-_e.length)%2===0)return}else{var ke=fe(Se[2],"()");if(ke>-1){var lt=Se[0].indexOf("!")===0?5:4,nt=lt+Se[1].length+ke;Se[2]=Se[2].substring(0,ke),Se[0]=Se[0].substring(0,nt).trim(),Se[3]=""}}var pt=Se[2],Dt="";if(this.options.pedantic){var Vt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(pt);Vt&&(pt=Vt[1],Dt=Vt[3])}else Dt=Se[3]?Se[3].slice(1,-1):"";return pt=pt.trim(),/^$/.test(Y)?pt=pt.slice(1):pt=pt.slice(1,-1)),ne(Se,{href:pt&&pt.replace(this.rules.inline._escapes,"$1"),title:Dt&&Dt.replace(this.rules.inline._escapes,"$1")},Se[0],this.lexer)}},ut.reflink=function(de,Se){var Y;if((Y=this.rules.inline.reflink.exec(de))||(Y=this.rules.inline.nolink.exec(de))){var _e=(Y[2]||Y[1]).replace(/\s+/g," ");if(_e=Se[_e.toLowerCase()],!_e||!_e.href){var ke=Y[0].charAt(0);return{type:"text",raw:ke,text:ke}}return ne(Y,_e,Y[0],this.lexer)}},ut.emStrong=function(de,Se,Y){Y===void 0&&(Y="");var _e=this.rules.inline.emStrong.lDelim.exec(de);if(_e&&!(_e[3]&&Y.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var ke=_e[1]||_e[2]||"";if(!ke||ke&&(Y===""||this.rules.inline.punctuation.exec(Y))){var lt=_e[0].length-1,nt,pt,Dt=lt,Vt=0,Mt=_e[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Mt.lastIndex=0,Se=Se.slice(-1*de.length+lt);(_e=Mt.exec(Se))!=null;)if(nt=_e[1]||_e[2]||_e[3]||_e[4]||_e[5]||_e[6],!!nt){if(pt=nt.length,_e[3]||_e[4]){Dt+=pt;continue}else if((_e[5]||_e[6])&<%3&&!((lt+pt)%3)){Vt+=pt;continue}if(Dt-=pt,!(Dt>0)){if(pt=Math.min(pt,pt+Dt+Vt),Math.min(lt,pt)%2){var Jt=de.slice(1,lt+_e.index+pt);return{type:"em",raw:de.slice(0,lt+_e.index+pt+1),text:Jt,tokens:this.lexer.inlineTokens(Jt,[])}}var jt=de.slice(2,lt+_e.index+pt-1);return{type:"strong",raw:de.slice(0,lt+_e.index+pt+1),text:jt,tokens:this.lexer.inlineTokens(jt,[])}}}}}},ut.codespan=function(de){var Se=this.rules.inline.code.exec(de);if(Se){var Y=Se[2].replace(/\n/g," "),_e=/[^ ]/.test(Y),ke=/^ /.test(Y)&&/ $/.test(Y);return _e&&ke&&(Y=Y.substring(1,Y.length-1)),Y=ae(Y,!0),{type:"codespan",raw:Se[0],text:Y}}},ut.br=function(de){var Se=this.rules.inline.br.exec(de);if(Se)return{type:"br",raw:Se[0]}},ut.del=function(de){var Se=this.rules.inline.del.exec(de);if(Se)return{type:"del",raw:Se[0],text:Se[2],tokens:this.lexer.inlineTokens(Se[2],[])}},ut.autolink=function(de,Se){var Y=this.rules.inline.autolink.exec(de);if(Y){var _e,ke;return Y[2]==="@"?(_e=ae(this.options.mangle?Se(Y[1]):Y[1]),ke="mailto:"+_e):(_e=ae(Y[1]),ke=_e),{type:"link",raw:Y[0],text:_e,href:ke,tokens:[{type:"text",raw:_e,text:_e}]}}},ut.url=function(de,Se){var Y;if(Y=this.rules.inline.url.exec(de)){var _e,ke;if(Y[2]==="@")_e=ae(this.options.mangle?Se(Y[0]):Y[0]),ke="mailto:"+_e;else{var lt;do lt=Y[0],Y[0]=this.rules.inline._backpedal.exec(Y[0])[0];while(lt!==Y[0]);_e=ae(Y[0]),Y[1]==="www."?ke="http://"+_e:ke=_e}return{type:"link",raw:Y[0],text:_e,href:ke,tokens:[{type:"text",raw:_e,text:_e}]}}},ut.inlineText=function(de,Se){var Y=this.rules.inline.text.exec(de);if(Y){var _e;return this.lexer.state.inRawBlock?_e=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Y[0]):ae(Y[0]):Y[0]:_e=ae(this.options.smartypants?Se(Y[0]):Y[0]),{type:"text",raw:Y[0],text:_e}}},mt}(),ee=ue.noopTest,he=ue.edit,Pe=ue.merge,Ye={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:ee,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};Ye._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ye._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ye.def=he(Ye.def).replace("label",Ye._label).replace("title",Ye._title).getRegex(),Ye.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ye.listItemStart=he(/^( *)(bull) */).replace("bull",Ye.bullet).getRegex(),Ye.list=he(Ye.list).replace(/bull/g,Ye.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ye.def.source+")").getRegex(),Ye._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ye._comment=/|$)/,Ye.html=he(Ye.html,"i").replace("comment",Ye._comment).replace("tag",Ye._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ye.paragraph=he(Ye._paragraph).replace("hr",Ye.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ye._tag).getRegex(),Ye.blockquote=he(Ye.blockquote).replace("paragraph",Ye.paragraph).getRegex(),Ye.normal=Pe({},Ye),Ye.gfm=Pe({},Ye.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)\\|?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ye.gfm.table=he(Ye.gfm.table).replace("hr",Ye.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ye._tag).getRegex(),Ye.pedantic=Pe({},Ye.normal,{html:he(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ye._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ee,paragraph:he(Ye.normal._paragraph).replace("hr",Ye.hr).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",Ye.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var it={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ee,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:ee,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",it.punctuation=he(it.punctuation).replace(/punctuation/g,it._punctuation).getRegex(),it.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,it.escapedEmSt=/\\\*|\\_/g,it._comment=he(Ye._comment).replace("(?:-->|$)","-->").getRegex(),it.emStrong.lDelim=he(it.emStrong.lDelim).replace(/punct/g,it._punctuation).getRegex(),it.emStrong.rDelimAst=he(it.emStrong.rDelimAst,"g").replace(/punct/g,it._punctuation).getRegex(),it.emStrong.rDelimUnd=he(it.emStrong.rDelimUnd,"g").replace(/punct/g,it._punctuation).getRegex(),it._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,it._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,it._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,it.autolink=he(it.autolink).replace("scheme",it._scheme).replace("email",it._email).getRegex(),it._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,it.tag=he(it.tag).replace("comment",it._comment).replace("attribute",it._attribute).getRegex(),it._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,it._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,it._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,it.link=he(it.link).replace("label",it._label).replace("href",it._href).replace("title",it._title).getRegex(),it.reflink=he(it.reflink).replace("label",it._label).getRegex(),it.reflinkSearch=he(it.reflinkSearch,"g").replace("reflink",it.reflink).replace("nolink",it.nolink).getRegex(),it.normal=Pe({},it),it.pedantic=Pe({},it.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:he(/^!?\[(label)\]\((.*?)\)/).replace("label",it._label).getRegex(),reflink:he(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",it._label).getRegex()}),it.gfm=Pe({},it.normal,{escape:he(it.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(de="x"+de.toString(16)),ut+="&#"+de+";";return ut}var He=function(){function mt(qe){this.tokens=[],this.tokens.links=Object.create(null),this.options=qe||Ft,this.options.tokenizer=this.options.tokenizer||new vt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var de={block:Ht.normal,inline:ze.normal};this.options.pedantic?(de.block=Ht.pedantic,de.inline=ze.pedantic):this.options.gfm&&(de.block=Ht.gfm,this.options.breaks?de.inline=ze.breaks:de.inline=ze.gfm),this.tokenizer.rules=de}mt.lex=function(de,Se){var Y=new mt(Se);return Y.lex(de)},mt.lexInline=function(de,Se){var Y=new mt(Se);return Y.inlineTokens(de)};var ut=mt.prototype;return ut.lex=function(de){de=de.replace(/\r\n|\r/g,` `).replace(/\t/g," "),this.blockTokens(de,this.tokens);for(var Se;Se=this.inlineQueue.shift();)this.inlineTokens(Se.src,Se.tokens);return this.tokens},ut.blockTokens=function(de,Se){var Y=this;Se===void 0&&(Se=[]),this.options.pedantic&&(de=de.replace(/^ +$/gm,""));for(var _e,ke,lt,nt;de;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(Dt){return(_e=Dt.call({lexer:Y},de,Se))?(de=de.substring(_e.raw.length),Se.push(_e),!0):!1}))){if(_e=this.tokenizer.space(de)){de=de.substring(_e.raw.length),_e.type&&Se.push(_e);continue}if(_e=this.tokenizer.code(de)){de=de.substring(_e.raw.length),ke=Se[Se.length-1],ke&&(ke.type==="paragraph"||ke.type==="text")?(ke.raw+=` `+_e.raw,ke.text+=` `+_e.text,this.inlineQueue[this.inlineQueue.length-1].src=ke.text):Se.push(_e);continue}if(_e=this.tokenizer.fences(de)){de=de.substring(_e.raw.length),Se.push(_e);continue}if(_e=this.tokenizer.heading(de)){de=de.substring(_e.raw.length),Se.push(_e);continue}if(_e=this.tokenizer.hr(de)){de=de.substring(_e.raw.length),Se.push(_e);continue}if(_e=this.tokenizer.blockquote(de)){de=de.substring(_e.raw.length),Se.push(_e);continue}if(_e=this.tokenizer.list(de)){de=de.substring(_e.raw.length),Se.push(_e);continue}if(_e=this.tokenizer.html(de)){de=de.substring(_e.raw.length),Se.push(_e);continue}if(_e=this.tokenizer.def(de)){de=de.substring(_e.raw.length),ke=Se[Se.length-1],ke&&(ke.type==="paragraph"||ke.type==="text")?(ke.raw+=` `+_e.raw,ke.text+=` `+_e.raw,this.inlineQueue[this.inlineQueue.length-1].src=ke.text):this.tokens.links[_e.tag]||(this.tokens.links[_e.tag]={href:_e.href,title:_e.title});continue}if(_e=this.tokenizer.table(de)){de=de.substring(_e.raw.length),Se.push(_e);continue}if(_e=this.tokenizer.lheading(de)){de=de.substring(_e.raw.length),Se.push(_e);continue}if(lt=de,this.options.extensions&&this.options.extensions.startBlock&&function(){var Dt=1/0,Vt=de.slice(1),Mt=void 0;Y.options.extensions.startBlock.forEach(function(Jt){Mt=Jt.call({lexer:this},Vt),typeof Mt=="number"&&Mt>=0&&(Dt=Math.min(Dt,Mt))}),Dt<1/0&&Dt>=0&&(lt=de.substring(0,Dt+1))}(),this.state.top&&(_e=this.tokenizer.paragraph(lt))){ke=Se[Se.length-1],nt&&ke.type==="paragraph"?(ke.raw+=` `+_e.raw,ke.text+=` `+_e.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=ke.text):Se.push(_e),nt=lt.length!==de.length,de=de.substring(_e.raw.length);continue}if(_e=this.tokenizer.text(de)){de=de.substring(_e.raw.length),ke=Se[Se.length-1],ke&&ke.type==="text"?(ke.raw+=` `+_e.raw,ke.text+=` `+_e.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=ke.text):Se.push(_e);continue}if(de){var pt="Infinite loop on byte: "+de.charCodeAt(0);if(this.options.silent){console.error(pt);break}else throw new Error(pt)}}return this.state.top=!0,Se},ut.inline=function(de,Se){this.inlineQueue.push({src:de,tokens:Se})},ut.inlineTokens=function(de,Se){var Y=this;Se===void 0&&(Se=[]);var _e,ke,lt,nt=de,pt,Dt,Vt;if(this.tokens.links){var Mt=Object.keys(this.tokens.links);if(Mt.length>0)for(;(pt=this.tokenizer.rules.inline.reflinkSearch.exec(nt))!=null;)Mt.includes(pt[0].slice(pt[0].lastIndexOf("[")+1,-1))&&(nt=nt.slice(0,pt.index)+"["+Xe("a",pt[0].length-2)+"]"+nt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(pt=this.tokenizer.rules.inline.blockSkip.exec(nt))!=null;)nt=nt.slice(0,pt.index)+"["+Xe("a",pt[0].length-2)+"]"+nt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(pt=this.tokenizer.rules.inline.escapedEmSt.exec(nt))!=null;)nt=nt.slice(0,pt.index)+"++"+nt.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;de;)if(Dt||(Vt=""),Dt=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(jt){return(_e=jt.call({lexer:Y},de,Se))?(de=de.substring(_e.raw.length),Se.push(_e),!0):!1}))){if(_e=this.tokenizer.escape(de)){de=de.substring(_e.raw.length),Se.push(_e);continue}if(_e=this.tokenizer.tag(de)){de=de.substring(_e.raw.length),ke=Se[Se.length-1],ke&&_e.type==="text"&&ke.type==="text"?(ke.raw+=_e.raw,ke.text+=_e.text):Se.push(_e);continue}if(_e=this.tokenizer.link(de)){de=de.substring(_e.raw.length),Se.push(_e);continue}if(_e=this.tokenizer.reflink(de,this.tokens.links)){de=de.substring(_e.raw.length),ke=Se[Se.length-1],ke&&_e.type==="text"&&ke.type==="text"?(ke.raw+=_e.raw,ke.text+=_e.text):Se.push(_e);continue}if(_e=this.tokenizer.emStrong(de,nt,Vt)){de=de.substring(_e.raw.length),Se.push(_e);continue}if(_e=this.tokenizer.codespan(de)){de=de.substring(_e.raw.length),Se.push(_e);continue}if(_e=this.tokenizer.br(de)){de=de.substring(_e.raw.length),Se.push(_e);continue}if(_e=this.tokenizer.del(de)){de=de.substring(_e.raw.length),Se.push(_e);continue}if(_e=this.tokenizer.autolink(de,Ae)){de=de.substring(_e.raw.length),Se.push(_e);continue}if(!this.state.inLink&&(_e=this.tokenizer.url(de,Ae))){de=de.substring(_e.raw.length),Se.push(_e);continue}if(lt=de,this.options.extensions&&this.options.extensions.startInline&&function(){var jt=1/0,ui=de.slice(1),vi=void 0;Y.options.extensions.startInline.forEach(function(Si){vi=Si.call({lexer:this},ui),typeof vi=="number"&&vi>=0&&(jt=Math.min(jt,vi))}),jt<1/0&&jt>=0&&(lt=de.substring(0,jt+1))}(),_e=this.tokenizer.inlineText(lt,Ze)){de=de.substring(_e.raw.length),_e.raw.slice(-1)!=="_"&&(Vt=_e.raw.slice(-1)),Dt=!0,ke=Se[Se.length-1],ke&&ke.type==="text"?(ke.raw+=_e.raw,ke.text+=_e.text):Se.push(_e);continue}if(de){var Jt="Infinite loop on byte: "+de.charCodeAt(0);if(this.options.silent){console.error(Jt);break}else throw new Error(Jt)}}return Se},s(mt,null,[{key:"rules",get:function(){return{block:Ht,inline:ze}}}]),mt}(),Et=r.exports.defaults,Wt=ue.cleanUrl,oi=ue.escape,ni=function(){function mt(qe){this.options=qe||Et}var ut=mt.prototype;return ut.code=function(de,Se,Y){var _e=(Se||"").match(/\S*/)[0];if(this.options.highlight){var ke=this.options.highlight(de,_e);ke!=null&&ke!==de&&(Y=!0,de=ke)}return de=de.replace(/\n$/,"")+` `,_e?'
'+(Y?de:oi(de,!0))+`
`:"
"+(Y?de:oi(de,!0))+`
`},ut.blockquote=function(de){return`
`+de+`
`},ut.html=function(de){return de},ut.heading=function(de,Se,Y,_e){return this.options.headerIds?"'+de+" `:""+de+" `},ut.hr=function(){return this.options.xhtml?`
`:`
`},ut.list=function(de,Se,Y){var _e=Se?"ol":"ul",ke=Se&&Y!==1?' start="'+Y+'"':"";return"<"+_e+ke+`> `+de+" `},ut.listitem=function(de){return"
  • "+de+`
  • `},ut.checkbox=function(de){return" "},ut.paragraph=function(de){return"

    "+de+`

    `},ut.table=function(de,Se){return Se&&(Se=""+Se+""),` `+de+` `+Se+`
    `},ut.tablerow=function(de){return` `+de+` `},ut.tablecell=function(de,Se){var Y=Se.header?"th":"td",_e=Se.align?"<"+Y+' align="'+Se.align+'">':"<"+Y+">";return _e+de+" `},ut.strong=function(de){return""+de+""},ut.em=function(de){return""+de+""},ut.codespan=function(de){return""+de+""},ut.br=function(){return this.options.xhtml?"
    ":"
    "},ut.del=function(de){return""+de+""},ut.link=function(de,Se,Y){if(de=Wt(this.options.sanitize,this.options.baseUrl,de),de===null)return Y;var _e='",_e},ut.image=function(de,Se,Y){if(de=Wt(this.options.sanitize,this.options.baseUrl,de),de===null)return Y;var _e=''+Y+'":">",_e},ut.text=function(de){return de},mt}(),hi=function(){function mt(){}var ut=mt.prototype;return ut.strong=function(de){return de},ut.em=function(de){return de},ut.codespan=function(de){return de},ut.del=function(de){return de},ut.html=function(de){return de},ut.text=function(de){return de},ut.link=function(de,Se,Y){return""+Y},ut.image=function(de,Se,Y){return""+Y},ut.br=function(){return""},mt}(),Di=function(){function mt(){this.seen={}}var ut=mt.prototype;return ut.serialize=function(de){return de.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},ut.getNextSafeSlug=function(de,Se){var Y=de,_e=0;if(this.seen.hasOwnProperty(Y)){_e=this.seen[de];do _e++,Y=de+"-"+_e;while(this.seen.hasOwnProperty(Y))}return Se||(this.seen[de]=_e,this.seen[Y]=0),Y},ut.slug=function(de,Se){Se===void 0&&(Se={});var Y=this.serialize(de);return this.getNextSafeSlug(Y,Se.dryrun)},mt}(),Ti=ni,Ni=hi,ai=Di,Pt=r.exports.defaults,Gt=ue.unescape,st=function(){function mt(qe){this.options=qe||Pt,this.options.renderer=this.options.renderer||new Ti,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ni,this.slugger=new ai}mt.parse=function(de,Se){var Y=new mt(Se);return Y.parse(de)},mt.parseInline=function(de,Se){var Y=new mt(Se);return Y.parseInline(de)};var ut=mt.prototype;return ut.parse=function(de,Se){Se===void 0&&(Se=!0);var Y="",_e,ke,lt,nt,pt,Dt,Vt,Mt,Jt,jt,ui,vi,Si,Oi,Ri,zi,hn,bn,qi,Rn=de.length;for(_e=0;_e0&&Ri.tokens[0].type==="paragraph"?(Ri.tokens[0].text=bn+" "+Ri.tokens[0].text,Ri.tokens[0].tokens&&Ri.tokens[0].tokens.length>0&&Ri.tokens[0].tokens[0].type==="text"&&(Ri.tokens[0].tokens[0].text=bn+" "+Ri.tokens[0].tokens[0].text)):Ri.tokens.unshift({type:"text",text:bn}):Oi+=bn),Oi+=this.parse(Ri.tokens,Si),Jt+=this.renderer.listitem(Oi,hn,zi);Y+=this.renderer.list(Jt,ui,vi);continue}case"html":{Y+=this.renderer.html(jt.text);continue}case"paragraph":{Y+=this.renderer.paragraph(this.parseInline(jt.tokens));continue}case"text":{for(Jt=jt.tokens?this.parseInline(jt.tokens):jt.text;_e+1An error occurred:

    "+Nt(lt.message+"",!0)+"
    ";throw lt}}Zt.options=Zt.setOptions=function(mt){return Ke(Zt.defaults,mt),Xt(Zt.defaults),Zt},Zt.getDefaults=$t,Zt.defaults=Ci,Zt.use=function(){for(var mt=this,ut=arguments.length,qe=new Array(ut),de=0;deAn error occurred:

    "+Nt(de.message+"",!0)+"
    ";throw de}},Zt.Parser=ht,Zt.parser=ht.parse,Zt.Renderer=$e,Zt.TextRenderer=Ie,Zt.Lexer=gt,Zt.lexer=gt.lex,Zt.Tokenizer=Qe,Zt.Slugger=Oe,Zt.parse=Zt;var mi=Zt;return mi})})();var H=null,O=h.Parser,P=h.parser,D=h.Renderer,G=h.TextRenderer,I=h.Lexer,y=h.lexer,E=h.Tokenizer,p=h.Slugger,a=h.parse},23897:function(xt,Te,i){"use strict";i.d(Te,{Q:function(){return O}});var h=i(53060),H=i(70666);function O(D){let G=JSON.parse(D);return G=P(G),G}function P(D,G=0){if(!D||G>200)return D;if(typeof D=="object"){switch(D.$mid){case 1:return H.o.revive(D);case 2:return new RegExp(D.source,D.flags)}if(D instanceof h.KN||D instanceof Uint8Array)return D;if(Array.isArray(D))for(let I=0;I{l.mime===r.mime||l.userConfigured||(r.extension&&l.extension===r.extension&&console.warn(`Overwriting extension <<${r.extension}>> to now point to mime <<${r.mime}>>`),r.filename&&l.filename===r.filename&&console.warn(`Overwriting filename <<${r.filename}>> to now point to mime <<${r.mime}>>`),r.filepattern&&l.filepattern===r.filepattern&&console.warn(`Overwriting filepattern <<${r.filepattern}>> to now point to mime <<${r.mime}>>`),r.firstline&&l.firstline===r.firstline&&console.warn(`Overwriting firstline <<${r.firstline}>> to now point to mime <<${r.mime}>>`))})}function a(f){return{id:f.id,mime:f.mime,filename:f.filename,extension:f.extension,filepattern:f.filepattern,firstline:f.firstline,userConfigured:f.userConfigured,filenameLowercase:f.filename?f.filename.toLowerCase():void 0,extensionLowercase:f.extension?f.extension.toLowerCase():void 0,filepatternLowercase:f.filepattern?(0,h.Qc)(f.filepattern.toLowerCase()):void 0,filepatternOnPath:f.filepattern?f.filepattern.indexOf(O.KR.sep)>=0:!1}}function g(f){f?(I=I.filter(v=>!v.userConfigured),E=[]):(I=[],y=[],E=[])}function w(f,v){let r;if(f)switch(f.scheme){case H.lg.file:r=f.fsPath;break;case H.lg.data:r=P.Vb.parseMetaData(f).get(P.Vb.META_DATA_LABEL);break;default:r=f.path}if(!r)return[G.unknown];r=r.toLowerCase();const l=(0,O.EZ)(r),m=s(r,l,E);if(m)return[m,G.text];const c=s(r,l,y);if(c)return[c,G.text];if(v){const b=C(v);if(b)return[b,G.text]}return[G.unknown]}function s(f,v,r){var l;let m=null,c=null,b=null;for(let L=r.length-1;L>=0;L--){const T=r[L];if(v===T.filenameLowercase){m=T;break}if(T.filepattern&&(!c||T.filepattern.length>c.filepattern.length)){const M=T.filepatternOnPath?f:v;!((l=T.filepatternLowercase)===null||l===void 0)&&l.call(T,M)&&(c=T)}T.extension&&(!b||T.extension.length>b.extension.length)&&v.endsWith(T.extensionLowercase)&&(b=T)}return m?m.mime:c?c.mime:b?b.mime:null}function C(f){if((0,D.uS)(f)&&(f=f.substr(1)),f.length>0)for(let v=I.length-1;v>=0;v--){const r=I[v];if(!r.firstline)continue;const l=f.match(r.firstline);if(l&&l.length>0)return r.mime}return null}},66663:function(xt,Te,i){"use strict";i.d(Te,{Gi:function(){return I},WX:function(){return D},lg:function(){return O}});var h=i(1432),H=i(70666),O;(function(y){y.inMemory="inmemory",y.vscode="vscode",y.internal="private",y.walkThrough="walkThrough",y.walkThroughSnippet="walkThroughSnippet",y.http="http",y.https="https",y.file="file",y.mailto="mailto",y.untitled="untitled",y.data="data",y.command="command",y.vscodeRemote="vscode-remote",y.vscodeRemoteResource="vscode-remote-resource",y.userData="vscode-userdata",y.vscodeCustomEditor="vscode-custom-editor",y.vscodeNotebook="vscode-notebook",y.vscodeNotebookCell="vscode-notebook-cell",y.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",y.vscodeNotebookCellOutput="vscode-notebook-cell-output",y.vscodeInteractive="vscode-interactive",y.vscodeInteractiveInput="vscode-interactive-input",y.vscodeSettings="vscode-settings",y.vscodeWorkspaceTrust="vscode-workspace-trust",y.vscodeTerminal="vscode-terminal",y.webviewPanel="webview-panel",y.vscodeWebview="vscode-webview",y.extension="extension",y.vscodeFileResource="vscode-file",y.tmp="tmp"})(O||(O={}));class P{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}setPreferredWebSchema(E){this._preferredWebSchema=E}rewrite(E){if(this._delegate)return this._delegate(E);const p=E.authority;let a=this._hosts[p];a&&a.indexOf(":")!==-1&&(a=`[${a}]`);const g=this._ports[p],w=this._connectionTokens[p];let s=`path=${encodeURIComponent(E.path)}`;return typeof w=="string"&&(s+=`&tkn=${encodeURIComponent(w)}`),H.o.from({scheme:h.$L?this._preferredWebSchema:O.vscodeRemoteResource,authority:`${a}:${g}`,path:"/vscode-remote-resource",query:s})}}const D=new P;class G{asBrowserUri(E,p){const a=this.toUri(E,p);return a.scheme===O.vscodeRemote?D.rewrite(a):a.scheme===O.file&&(h.tY||typeof h.li.importScripts=="function"&&h.li.origin===`${O.vscodeFileResource}://${G.FALLBACK_AUTHORITY}`)?a.with({scheme:O.vscodeFileResource,authority:a.authority||G.FALLBACK_AUTHORITY,query:null,fragment:null}):a}toUri(E,p){return H.o.isUri(E)?E:H.o.parse(p.toUrl(E))}}G.FALLBACK_AUTHORITY="vscode-app";const I=new G},59870:function(xt,Te,i){"use strict";i.d(Te,{n:function(){return H},u:function(){return h}});function h(O,P,D){return Math.min(Math.max(O,P),D)}class H{constructor(){this._n=1,this._val=0}update(P){return this._val=this._val+(P-this._val)/this._n,this._n+=1,this}get value(){return this._val}}},36248:function(xt,Te,i){"use strict";i.d(Te,{CJ:function(){return E},I8:function(){return H},_A:function(){return O},fS:function(){return y},jB:function(){return I},rs:function(){return D}});var h=i(98401);function H(p){if(!p||typeof p!="object"||p instanceof RegExp)return p;const a=Array.isArray(p)?[]:{};return Object.keys(p).forEach(g=>{p[g]&&typeof p[g]=="object"?a[g]=H(p[g]):a[g]=p[g]}),a}function O(p){if(!p||typeof p!="object")return p;const a=[p];for(;a.length>0;){const g=a.shift();Object.freeze(g);for(const w in g)if(P.call(g,w)){const s=g[w];typeof s=="object"&&!Object.isFrozen(s)&&a.push(s)}}return p}const P=Object.prototype.hasOwnProperty;function D(p,a){return G(p,a,new Set)}function G(p,a,g){if((0,h.Jp)(p))return p;const w=a(p);if(typeof w!="undefined")return w;if((0,h.kJ)(p)){const s=[];for(const C of p)s.push(G(C,a,g));return s}if((0,h.Kn)(p)){if(g.has(p))throw new Error("Cannot clone recursive data-structure");g.add(p);const s={};for(let C in p)P.call(p,C)&&(s[C]=G(p[C],a,g));return g.delete(p),s}return p}function I(p,a,g=!0){return(0,h.Kn)(p)?((0,h.Kn)(a)&&Object.keys(a).forEach(w=>{w in p?g&&((0,h.Kn)(p[w])&&(0,h.Kn)(a[w])?I(p[w],a[w],g):p[w]=a[w]):p[w]=a[w]}),p):a}function y(p,a){if(p===a)return!0;if(p==null||a===null||a===void 0||typeof p!=typeof a||typeof p!="object"||Array.isArray(p)!==Array.isArray(a))return!1;let g,w;if(Array.isArray(p)){if(p.length!==a.length)return!1;for(g=0;g=I&&Z<=E||Z>=y&&Z<=p}function c(Z,Q,le,xe){let j="",R=0,V=-1,K=0,ie=0;for(let te=0;te<=Z.length;++te){if(te2){const ge=j.lastIndexOf(le);ge===-1?(j="",R=0):(j=j.slice(0,ge),R=j.length-1-j.lastIndexOf(le)),V=te,K=0;continue}else if(j.length!==0){j="",R=0,V=te,K=0;continue}}Q&&(j+=j.length>0?`${le}..`:"..",R=2)}else j.length>0?j+=`${le}${Z.slice(V+1,te)}`:j=Z.slice(V+1,te),R=te-V-1;V=te,K=0}else ie===a&&K!==-1?++K:K=-1}return j}function b(Z,Q){if(Q===null||typeof Q!="object")throw new f("pathObject","Object",Q);const le=Q.dir||Q.root,xe=Q.base||`${Q.name||""}${Q.ext||""}`;return le?le===Q.root?`${le}${xe}`:`${le}${Z}${xe}`:xe}const L={resolve(...Z){let Q="",le="",xe=!1;for(let j=Z.length-1;j>=-1;j--){let R;if(j>=0){if(R=Z[j],v(R,"path"),R.length===0)continue}else Q.length===0?R=P():(R={NODE_ENV:"production",PUBLIC_PATH:"/react/build/"}[`=${Q}`]||P(),(R===void 0||R.slice(0,2).toLowerCase()!==Q.toLowerCase()&&R.charCodeAt(2)===w)&&(R=`${Q}\\`));const V=R.length;let K=0,ie="",te=!1;const ge=R.charCodeAt(0);if(V===1)r(ge)&&(K=1,te=!0);else if(r(ge))if(te=!0,r(R.charCodeAt(1))){let ye=2,ve=ye;for(;ye2&&r(R.charCodeAt(2))&&(te=!0,K=3));if(ie.length>0)if(Q.length>0){if(ie.toLowerCase()!==Q.toLowerCase())continue}else Q=ie;if(xe){if(Q.length>0)break}else if(le=`${R.slice(K)}\\${le}`,xe=te,te&&Q.length>0)break}return le=c(le,!xe,"\\",r),xe?`${Q}\\${le}`:`${Q}${le}`||"."},normalize(Z){v(Z,"path");const Q=Z.length;if(Q===0)return".";let le=0,xe,j=!1;const R=Z.charCodeAt(0);if(Q===1)return l(R)?"\\":Z;if(r(R))if(j=!0,r(Z.charCodeAt(1))){let K=2,ie=K;for(;K2&&r(Z.charCodeAt(2))&&(j=!0,le=3));let V=le0&&r(Z.charCodeAt(Q-1))&&(V+="\\"),xe===void 0?j?`\\${V}`:V:j?`${xe}\\${V}`:`${xe}${V}`},isAbsolute(Z){v(Z,"path");const Q=Z.length;if(Q===0)return!1;const le=Z.charCodeAt(0);return r(le)||Q>2&&m(le)&&Z.charCodeAt(1)===s&&r(Z.charCodeAt(2))},join(...Z){if(Z.length===0)return".";let Q,le;for(let R=0;R0&&(Q===void 0?Q=le=V:Q+=`\\${V}`)}if(Q===void 0)return".";let xe=!0,j=0;if(typeof le=="string"&&r(le.charCodeAt(0))){++j;const R=le.length;R>1&&r(le.charCodeAt(1))&&(++j,R>2&&(r(le.charCodeAt(2))?++j:xe=!1))}if(xe){for(;j=2&&(Q=`\\${Q.slice(j)}`)}return L.normalize(Q)},relative(Z,Q){if(v(Z,"from"),v(Q,"to"),Z===Q)return"";const le=L.resolve(Z),xe=L.resolve(Q);if(le===xe||(Z=le.toLowerCase(),Q=xe.toLowerCase(),Z===Q))return"";let j=0;for(;jj&&Z.charCodeAt(R-1)===w;)R--;const V=R-j;let K=0;for(;KK&&Q.charCodeAt(ie-1)===w;)ie--;const te=ie-K,ge=Vge){if(Q.charCodeAt(K+ve)===w)return xe.slice(K+ve+1);if(ve===2)return xe.slice(K+ve)}V>ge&&(Z.charCodeAt(j+ve)===w?ye=ve:ve===2&&(ye=3)),ye===-1&&(ye=0)}let Fe="";for(ve=j+ye+1;ve<=R;++ve)(ve===R||Z.charCodeAt(ve)===w)&&(Fe+=Fe.length===0?"..":"\\..");return K+=ye,Fe.length>0?`${Fe}${xe.slice(K,ie)}`:(xe.charCodeAt(K)===w&&++K,xe.slice(K,ie))},toNamespacedPath(Z){if(typeof Z!="string")return Z;if(Z.length===0)return"";const Q=L.resolve(Z);if(Q.length<=2)return Z;if(Q.charCodeAt(0)===w){if(Q.charCodeAt(1)===w){const le=Q.charCodeAt(2);if(le!==C&&le!==a)return`\\\\?\\UNC\\${Q.slice(2)}`}}else if(m(Q.charCodeAt(0))&&Q.charCodeAt(1)===s&&Q.charCodeAt(2)===w)return`\\\\?\\${Q}`;return Z},dirname(Z){v(Z,"path");const Q=Z.length;if(Q===0)return".";let le=-1,xe=0;const j=Z.charCodeAt(0);if(Q===1)return r(j)?Z:".";if(r(j)){if(le=xe=1,r(Z.charCodeAt(1))){let K=2,ie=K;for(;K2&&r(Z.charCodeAt(2))?3:2,xe=le);let R=-1,V=!0;for(let K=Q-1;K>=xe;--K)if(r(Z.charCodeAt(K))){if(!V){R=K;break}}else V=!1;if(R===-1){if(le===-1)return".";R=le}return Z.slice(0,R)},basename(Z,Q){Q!==void 0&&v(Q,"ext"),v(Z,"path");let le=0,xe=-1,j=!0,R;if(Z.length>=2&&m(Z.charCodeAt(0))&&Z.charCodeAt(1)===s&&(le=2),Q!==void 0&&Q.length>0&&Q.length<=Z.length){if(Q===Z)return"";let V=Q.length-1,K=-1;for(R=Z.length-1;R>=le;--R){const ie=Z.charCodeAt(R);if(r(ie)){if(!j){le=R+1;break}}else K===-1&&(j=!1,K=R+1),V>=0&&(ie===Q.charCodeAt(V)?--V===-1&&(xe=R):(V=-1,xe=K))}return le===xe?xe=K:xe===-1&&(xe=Z.length),Z.slice(le,xe)}for(R=Z.length-1;R>=le;--R)if(r(Z.charCodeAt(R))){if(!j){le=R+1;break}}else xe===-1&&(j=!1,xe=R+1);return xe===-1?"":Z.slice(le,xe)},extname(Z){v(Z,"path");let Q=0,le=-1,xe=0,j=-1,R=!0,V=0;Z.length>=2&&Z.charCodeAt(1)===s&&m(Z.charCodeAt(0))&&(Q=xe=2);for(let K=Z.length-1;K>=Q;--K){const ie=Z.charCodeAt(K);if(r(ie)){if(!R){xe=K+1;break}continue}j===-1&&(R=!1,j=K+1),ie===a?le===-1?le=K:V!==1&&(V=1):le!==-1&&(V=-1)}return le===-1||j===-1||V===0||V===1&&le===j-1&&le===xe+1?"":Z.slice(le,j)},format:b.bind(null,"\\"),parse(Z){v(Z,"path");const Q={root:"",dir:"",base:"",ext:"",name:""};if(Z.length===0)return Q;const le=Z.length;let xe=0,j=Z.charCodeAt(0);if(le===1)return r(j)?(Q.root=Q.dir=Z,Q):(Q.base=Q.name=Z,Q);if(r(j)){if(xe=1,r(Z.charCodeAt(1))){let ye=2,ve=ye;for(;ye0&&(Q.root=Z.slice(0,xe));let R=-1,V=xe,K=-1,ie=!0,te=Z.length-1,ge=0;for(;te>=xe;--te){if(j=Z.charCodeAt(te),r(j)){if(!ie){V=te+1;break}continue}K===-1&&(ie=!1,K=te+1),j===a?R===-1?R=te:ge!==1&&(ge=1):R!==-1&&(ge=-1)}return K!==-1&&(R===-1||ge===0||ge===1&&R===K-1&&R===V+1?Q.base=Q.name=Z.slice(V,K):(Q.name=Z.slice(V,R),Q.base=Z.slice(V,K),Q.ext=Z.slice(R,K))),V>0&&V!==xe?Q.dir=Z.slice(0,V-1):Q.dir=Q.root,Q},sep:"\\",delimiter:";",win32:null,posix:null},T={resolve(...Z){let Q="",le=!1;for(let xe=Z.length-1;xe>=-1&&!le;xe--){const j=xe>=0?Z[xe]:P();v(j,"path"),j.length!==0&&(Q=`${j}/${Q}`,le=j.charCodeAt(0)===g)}return Q=c(Q,!le,"/",l),le?`/${Q}`:Q.length>0?Q:"."},normalize(Z){if(v(Z,"path"),Z.length===0)return".";const Q=Z.charCodeAt(0)===g,le=Z.charCodeAt(Z.length-1)===g;return Z=c(Z,!Q,"/",l),Z.length===0?Q?"/":le?"./":".":(le&&(Z+="/"),Q?`/${Z}`:Z)},isAbsolute(Z){return v(Z,"path"),Z.length>0&&Z.charCodeAt(0)===g},join(...Z){if(Z.length===0)return".";let Q;for(let le=0;le0&&(Q===void 0?Q=xe:Q+=`/${xe}`)}return Q===void 0?".":T.normalize(Q)},relative(Z,Q){if(v(Z,"from"),v(Q,"to"),Z===Q||(Z=T.resolve(Z),Q=T.resolve(Q),Z===Q))return"";const le=1,xe=Z.length,j=xe-le,R=1,V=Q.length-R,K=jK){if(Q.charCodeAt(R+te)===g)return Q.slice(R+te+1);if(te===0)return Q.slice(R+te)}else j>K&&(Z.charCodeAt(le+te)===g?ie=te:te===0&&(ie=0));let ge="";for(te=le+ie+1;te<=xe;++te)(te===xe||Z.charCodeAt(te)===g)&&(ge+=ge.length===0?"..":"/..");return`${ge}${Q.slice(R+ie)}`},toNamespacedPath(Z){return Z},dirname(Z){if(v(Z,"path"),Z.length===0)return".";const Q=Z.charCodeAt(0)===g;let le=-1,xe=!0;for(let j=Z.length-1;j>=1;--j)if(Z.charCodeAt(j)===g){if(!xe){le=j;break}}else xe=!1;return le===-1?Q?"/":".":Q&&le===1?"//":Z.slice(0,le)},basename(Z,Q){Q!==void 0&&v(Q,"ext"),v(Z,"path");let le=0,xe=-1,j=!0,R;if(Q!==void 0&&Q.length>0&&Q.length<=Z.length){if(Q===Z)return"";let V=Q.length-1,K=-1;for(R=Z.length-1;R>=0;--R){const ie=Z.charCodeAt(R);if(ie===g){if(!j){le=R+1;break}}else K===-1&&(j=!1,K=R+1),V>=0&&(ie===Q.charCodeAt(V)?--V===-1&&(xe=R):(V=-1,xe=K))}return le===xe?xe=K:xe===-1&&(xe=Z.length),Z.slice(le,xe)}for(R=Z.length-1;R>=0;--R)if(Z.charCodeAt(R)===g){if(!j){le=R+1;break}}else xe===-1&&(j=!1,xe=R+1);return xe===-1?"":Z.slice(le,xe)},extname(Z){v(Z,"path");let Q=-1,le=0,xe=-1,j=!0,R=0;for(let V=Z.length-1;V>=0;--V){const K=Z.charCodeAt(V);if(K===g){if(!j){le=V+1;break}continue}xe===-1&&(j=!1,xe=V+1),K===a?Q===-1?Q=V:R!==1&&(R=1):Q!==-1&&(R=-1)}return Q===-1||xe===-1||R===0||R===1&&Q===xe-1&&Q===le+1?"":Z.slice(Q,xe)},format:b.bind(null,"/"),parse(Z){v(Z,"path");const Q={root:"",dir:"",base:"",ext:"",name:""};if(Z.length===0)return Q;const le=Z.charCodeAt(0)===g;let xe;le?(Q.root="/",xe=1):xe=0;let j=-1,R=0,V=-1,K=!0,ie=Z.length-1,te=0;for(;ie>=xe;--ie){const ge=Z.charCodeAt(ie);if(ge===g){if(!K){R=ie+1;break}continue}V===-1&&(K=!1,V=ie+1),ge===a?j===-1?j=ie:te!==1&&(te=1):j!==-1&&(te=-1)}if(V!==-1){const ge=R===0&&le?1:R;j===-1||te===0||te===1&&j===V-1&&j===R+1?Q.base=Q.name=Z.slice(ge,V):(Q.name=Z.slice(ge,j),Q.base=Z.slice(ge,V),Q.ext=Z.slice(j,V))}return R>0?Q.dir=Z.slice(0,R-1):le&&(Q.dir="/"),Q},sep:"/",delimiter:":",win32:null,posix:null};T.win32=L.win32=L,T.posix=L.posix=T;const M=G==="win32"?L.normalize:T.normalize,z=G==="win32"?L.resolve:T.resolve,oe=G==="win32"?L.relative:T.relative,se=G==="win32"?L.dirname:T.dirname,re=G==="win32"?L.basename:T.basename,De=G==="win32"?L.extname:T.extname,J=G==="win32"?L.sep:T.sep},61134:function(xt,Te,i){"use strict";i.d(Te,{e:function(){return h}});var h;(function(H){function O(I,y){if(I.start>=y.end||y.start>=I.end)return{start:0,end:0};const E=Math.max(I.start,y.start),p=Math.min(I.end,y.end);return p-E<=0?{start:0,end:0}:{start:E,end:p}}H.intersect=O;function P(I){return I.end-I.start<=0}H.isEmpty=P;function D(I,y){return!P(O(I,y))}H.intersects=D;function G(I,y){const E=[],p={start:I.start,end:Math.min(y.start,I.end)},a={start:Math.max(y.end,I.start),end:I.end};return P(p)||E.push(p),P(a)||E.push(a),E}H.relativeComplement=G})(h||(h={}))},95935:function(xt,Te,i){"use strict";i.d(Te,{AH:function(){return s},EZ:function(){return a},Hx:function(){return p},SF:function(){return y},Vb:function(){return f},Vo:function(){return w},XX:function(){return g},Xy:function(){return E},i3:function(){return C},z_:function(){return G}});var h=i(15527),H=i(66663),O=i(54253),P=i(97295),D=i(70666);function G(v){return(0,D.q)(v,!0)}class I{constructor(r){this._ignorePathCasing=r}compare(r,l,m=!1){return r===l?0:(0,P.qu)(this.getComparisonKey(r,m),this.getComparisonKey(l,m))}isEqual(r,l,m=!1){return r===l?!0:!r||!l?!1:this.getComparisonKey(r,m)===this.getComparisonKey(l,m)}getComparisonKey(r,l=!1){return r.with({path:this._ignorePathCasing(r)?r.path.toLowerCase():void 0,fragment:l?null:void 0}).toString()}joinPath(r,...l){return D.o.joinPath(r,...l)}basenameOrAuthority(r){return a(r)||r.authority}basename(r){return O.KR.basename(r.path)}dirname(r){if(r.path.length===0)return r;let l;return r.scheme===H.lg.file?l=D.o.file(O.XX(G(r))).path:(l=O.KR.dirname(r.path),r.authority&&l.length&&l.charCodeAt(0)!==47&&(console.error(`dirname("${r.toString})) resulted in a relative path`),l="/")),r.with({path:l})}normalizePath(r){if(!r.path.length)return r;let l;return r.scheme===H.lg.file?l=D.o.file(O.Fv(G(r))).path:l=O.KR.normalize(r.path),r.with({path:l})}resolvePath(r,l){if(r.scheme===H.lg.file){const m=D.o.file(O.DB(G(r),l));return r.with({authority:m.authority,path:m.path})}return l=h.fn(l),r.with({path:O.KR.resolve(r.path,l)})}}const y=new I(()=>!1),E=y.isEqual.bind(y),p=y.basenameOrAuthority.bind(y),a=y.basename.bind(y),g=y.dirname.bind(y),w=y.joinPath.bind(y),s=y.normalizePath.bind(y),C=y.resolvePath.bind(y);var f;(function(v){v.META_DATA_LABEL="label",v.META_DATA_DESCRIPTION="description",v.META_DATA_SIZE="size",v.META_DATA_MIME="mime";function r(l){const m=new Map;l.path.substring(l.path.indexOf(";")+1,l.path.lastIndexOf(";")).split(";").forEach(L=>{const[T,M]=L.split(":");T&&M&&m.set(T,M)});const b=l.path.substring(0,l.path.indexOf(";"));return b&&m.set(v.META_DATA_MIME,b),m}v.parseMetaData=r})(f||(f={}))},76633:function(xt,Te,i){"use strict";i.d(Te,{Rm:function(){return P}});var h=i(4669),H=i(5976);class O{constructor(g,w,s,C,f,v){this._scrollStateBrand=void 0,g=g|0,w=w|0,s=s|0,C=C|0,f=f|0,v=v|0,this.rawScrollLeft=s,this.rawScrollTop=v,g<0&&(g=0),s+g>w&&(s=w-g),s<0&&(s=0),C<0&&(C=0),v+C>f&&(v=f-C),v<0&&(v=0),this.width=g,this.scrollWidth=w,this.scrollLeft=s,this.height=C,this.scrollHeight=f,this.scrollTop=v}equals(g){return this.rawScrollLeft===g.rawScrollLeft&&this.rawScrollTop===g.rawScrollTop&&this.width===g.width&&this.scrollWidth===g.scrollWidth&&this.scrollLeft===g.scrollLeft&&this.height===g.height&&this.scrollHeight===g.scrollHeight&&this.scrollTop===g.scrollTop}withScrollDimensions(g,w){return new O(typeof g.width!="undefined"?g.width:this.width,typeof g.scrollWidth!="undefined"?g.scrollWidth:this.scrollWidth,w?this.rawScrollLeft:this.scrollLeft,typeof g.height!="undefined"?g.height:this.height,typeof g.scrollHeight!="undefined"?g.scrollHeight:this.scrollHeight,w?this.rawScrollTop:this.scrollTop)}withScrollPosition(g){return new O(this.width,this.scrollWidth,typeof g.scrollLeft!="undefined"?g.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof g.scrollTop!="undefined"?g.scrollTop:this.rawScrollTop)}createScrollEvent(g,w){const s=this.width!==g.width,C=this.scrollWidth!==g.scrollWidth,f=this.scrollLeft!==g.scrollLeft,v=this.height!==g.height,r=this.scrollHeight!==g.scrollHeight,l=this.scrollTop!==g.scrollTop;return{inSmoothScrolling:w,oldWidth:g.width,oldScrollWidth:g.scrollWidth,oldScrollLeft:g.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:g.height,oldScrollHeight:g.scrollHeight,oldScrollTop:g.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:s,scrollWidthChanged:C,scrollLeftChanged:f,heightChanged:v,scrollHeightChanged:r,scrollTopChanged:l}}}class P extends H.JT{constructor(g,w){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new h.Q5),this.onScroll=this._onScroll.event,this._smoothScrollDuration=g,this._scheduleAtNextAnimationFrame=w,this._state=new O(0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(g){this._smoothScrollDuration=g}validateScrollPosition(g){return this._state.withScrollPosition(g)}getScrollDimensions(){return this._state}setScrollDimensions(g,w){const s=this._state.withScrollDimensions(g,w);this._setState(s,!!this._smoothScrolling),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(g){const w=this._state.withScrollPosition(g);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(w,!1)}setScrollPositionSmooth(g,w){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(g);if(this._smoothScrolling){g={scrollLeft:typeof g.scrollLeft=="undefined"?this._smoothScrolling.to.scrollLeft:g.scrollLeft,scrollTop:typeof g.scrollTop=="undefined"?this._smoothScrolling.to.scrollTop:g.scrollTop};const s=this._state.withScrollPosition(g);if(this._smoothScrolling.to.scrollLeft===s.scrollLeft&&this._smoothScrolling.to.scrollTop===s.scrollTop)return;let C;w?C=new y(this._smoothScrolling.from,s,this._smoothScrolling.startTime,this._smoothScrolling.duration):C=this._smoothScrolling.combine(this._state,s,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=C}else{const s=this._state.withScrollPosition(g);this._smoothScrolling=y.start(this._state,s,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}_performSmoothScrolling(){if(!this._smoothScrolling)return;const g=this._smoothScrolling.tick(),w=this._state.withScrollPosition(g);if(this._setState(w,!0),!!this._smoothScrolling){if(g.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(g,w){const s=this._state;s.equals(g)||(this._state=g,this._onScroll.fire(this._state.createScrollEvent(s,w)))}}class D{constructor(g,w,s){this.scrollLeft=g,this.scrollTop=w,this.isDone=s}}function G(a,g){const w=g-a;return function(s){return a+w*p(s)}}function I(a,g,w){return function(s){return s2.5*s){let f,v;return g255?255:O|0}function H(O){return O<0?0:O>4294967295?4294967295:O|0}},70666:function(xt,Te,i){"use strict";i.d(Te,{o:function(){return g},q:function(){return r}});var h=i(54253),H=i(1432);const O=/^\w[\w\d+.-]*$/,P=/^\//,D=/^\/\//;function G(L,T){if(!L.scheme&&T)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${L.authority}", path: "${L.path}", query: "${L.query}", fragment: "${L.fragment}"}`);if(L.scheme&&!O.test(L.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(L.path){if(L.authority){if(!P.test(L.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(D.test(L.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function I(L,T){return!L&&!T?"file":L}function y(L,T){switch(L){case"https":case"http":case"file":T?T[0]!==p&&(T=p+T):T=p;break}return T}const E="",p="/",a=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class g{constructor(T,M,z,oe,se,re=!1){typeof T=="object"?(this.scheme=T.scheme||E,this.authority=T.authority||E,this.path=T.path||E,this.query=T.query||E,this.fragment=T.fragment||E):(this.scheme=I(T,re),this.authority=M||E,this.path=y(this.scheme,z||E),this.query=oe||E,this.fragment=se||E,G(this,re))}static isUri(T){return T instanceof g?!0:T?typeof T.authority=="string"&&typeof T.fragment=="string"&&typeof T.path=="string"&&typeof T.query=="string"&&typeof T.scheme=="string"&&typeof T.fsPath=="string"&&typeof T.with=="function"&&typeof T.toString=="function":!1}get fsPath(){return r(this,!1)}with(T){if(!T)return this;let{scheme:M,authority:z,path:oe,query:se,fragment:re}=T;return M===void 0?M=this.scheme:M===null&&(M=E),z===void 0?z=this.authority:z===null&&(z=E),oe===void 0?oe=this.path:oe===null&&(oe=E),se===void 0?se=this.query:se===null&&(se=E),re===void 0?re=this.fragment:re===null&&(re=E),M===this.scheme&&z===this.authority&&oe===this.path&&se===this.query&&re===this.fragment?this:new s(M,z,oe,se,re)}static parse(T,M=!1){const z=a.exec(T);return z?new s(z[2]||E,b(z[4]||E),b(z[5]||E),b(z[7]||E),b(z[9]||E),M):new s(E,E,E,E,E)}static file(T){let M=E;if(H.ED&&(T=T.replace(/\\/g,p)),T[0]===p&&T[1]===p){const z=T.indexOf(p,2);z===-1?(M=T.substring(2),T=p):(M=T.substring(2,z),T=T.substring(z)||p)}return new s("file",M,T,E,E)}static from(T){const M=new s(T.scheme,T.authority,T.path,T.query,T.fragment);return G(M,!0),M}static joinPath(T,...M){if(!T.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let z;return H.ED&&T.scheme==="file"?z=g.file(h.Ku.join(r(T,!0),...M)).path:z=h.KR.join(T.path,...M),T.with({path:z})}toString(T=!1){return l(this,T)}toJSON(){return this}static revive(T){if(T){if(T instanceof g)return T;{const M=new s(T);return M._formatted=T.external,M._fsPath=T._sep===w?T.fsPath:null,M}}else return T}}const w=H.ED?1:void 0;class s extends g{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=r(this,!1)),this._fsPath}toString(T=!1){return T?l(this,!0):(this._formatted||(this._formatted=l(this,!1)),this._formatted)}toJSON(){const T={$mid:1};return this._fsPath&&(T.fsPath=this._fsPath,T._sep=w),this._formatted&&(T.external=this._formatted),this.path&&(T.path=this.path),this.scheme&&(T.scheme=this.scheme),this.authority&&(T.authority=this.authority),this.query&&(T.query=this.query),this.fragment&&(T.fragment=this.fragment),T}}const C={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function f(L,T){let M,z=-1;for(let oe=0;oe=97&&se<=122||se>=65&&se<=90||se>=48&&se<=57||se===45||se===46||se===95||se===126||T&&se===47)z!==-1&&(M+=encodeURIComponent(L.substring(z,oe)),z=-1),M!==void 0&&(M+=L.charAt(oe));else{M===void 0&&(M=L.substr(0,oe));const re=C[se];re!==void 0?(z!==-1&&(M+=encodeURIComponent(L.substring(z,oe)),z=-1),M+=re):z===-1&&(z=oe)}}return z!==-1&&(M+=encodeURIComponent(L.substring(z))),M!==void 0?M:L}function v(L){let T;for(let M=0;M1&&L.scheme==="file"?M=`//${L.authority}${L.path}`:L.path.charCodeAt(0)===47&&(L.path.charCodeAt(1)>=65&&L.path.charCodeAt(1)<=90||L.path.charCodeAt(1)>=97&&L.path.charCodeAt(1)<=122)&&L.path.charCodeAt(2)===58?T?M=L.path.substr(1):M=L.path[1].toLowerCase()+L.path.substr(2):M=L.path,H.ED&&(M=M.replace(/\//g,"\\")),M}function l(L,T){const M=T?v:f;let z="",{scheme:oe,authority:se,path:re,query:De,fragment:J}=L;if(oe&&(z+=oe,z+=":"),(se||oe==="file")&&(z+=p,z+=p),se){let Z=se.indexOf("@");if(Z!==-1){const Q=se.substr(0,Z);se=se.substr(Z+1),Z=Q.indexOf(":"),Z===-1?z+=M(Q,!1):(z+=M(Q.substr(0,Z),!1),z+=":",z+=M(Q.substr(Z+1),!1)),z+="@"}se=se.toLowerCase(),Z=se.indexOf(":"),Z===-1?z+=M(se,!1):(z+=M(se.substr(0,Z),!1),z+=se.substr(Z))}if(re){if(re.length>=3&&re.charCodeAt(0)===47&&re.charCodeAt(2)===58){const Z=re.charCodeAt(1);Z>=65&&Z<=90&&(re=`/${String.fromCharCode(Z+32)}:${re.substr(3)}`)}else if(re.length>=2&&re.charCodeAt(1)===58){const Z=re.charCodeAt(0);Z>=65&&Z<=90&&(re=`${String.fromCharCode(Z+32)}:${re.substr(2)}`)}z+=M(re,!0)}return De&&(z+="?",z+=M(De,!1)),J&&(z+="#",z+=T?J:f(J,!1)),z}function m(L){try{return decodeURIComponent(L)}catch(T){return L.length>3?L.substr(0,3)+m(L.substr(3)):L}}const c=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function b(L){return L.match(c)?L.replace(c,T=>m(T)):L}},67746:function(xt,Te,i){"use strict";i.d(Te,{Jq:function(){return H},X5:function(){return h},jG:function(){return O}});const h={ctrlCmd:!1,alt:!1};var H;(function(P){P[P.Blur=1]="Blur",P[P.Gesture=2]="Gesture",P[P.Other=3]="Other"})(H||(H={}));var O;(function(P){P[P.NONE=0]="NONE",P[P.FIRST=1]="FIRST",P[P.SECOND=2]="SECOND",P[P.LAST=3]="LAST"})(O||(O={}))},25552:function(xt,Te,i){"use strict";i.d(Te,{H:function(){return G}});var h=i(89587),H={},O={},P=function(){function I(y){var E=this;this._languageId=y,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(function(p,a){E._lazyLoadPromiseResolve=p,E._lazyLoadPromiseReject=a})}return I.getOrCreate=function(y){return O[y]||(O[y]=new I(y)),O[y]},I.prototype.whenLoaded=function(){return this._lazyLoadPromise},I.prototype.load=function(){var y=this;return this._loadingTriggered||(this._loadingTriggered=!0,H[this._languageId].loader().then(function(E){return y._lazyLoadPromiseResolve(E)},function(E){return y._lazyLoadPromiseReject(E)})),this._lazyLoadPromise},I}();function D(I){return P.getOrCreate(I).load()}function G(I){var y=I.id;H[y]=I,h.Mj.register(I);var E=P.getOrCreate(y);h.Mj.setMonarchTokensProvider(y,E.whenLoaded().then(function(p){return p.language})),h.Mj.onLanguage(y,function(){E.load().then(function(p){h.Mj.setLanguageConfiguration(y,p.conf)})})}},29126:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return i.e(848).then(i.bind(i,40848))}})},89808:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return i.e(4386).then(i.bind(i,54386))}})},13598:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return i.e(1471).then(i.bind(i,31471))}})},52042:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return i.e(4129).then(i.bind(i,84129))}})},11336:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return i.e(1448).then(i.bind(i,11448))}})},76334:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return i.e(3036).then(i.bind(i,33036))}})},30253:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return i.e(1147).then(i.bind(i,21147))}})},47940:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return i.e(1960).then(i.bind(i,71960))}}),(0,h.H)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return i.e(1960).then(i.bind(i,71960))}})},18162:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return i.e(8719).then(i.bind(i,18719))}})},79556:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return i.e(8946).then(i.bind(i,68946))}})},56292:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return i.e(2075).then(i.bind(i,62075))}})},24129:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return i.e(5849).then(i.bind(i,25849))}})},89587:function(xt,Te,i){"use strict";i.d(Te,{Mj:function(){return h.languages}});var h=i(50048)},97820:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return i.e(6241).then(i.bind(i,96241))}})},40927:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return i.e(249).then(i.bind(i,80249))}})},26220:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return i.e(6489).then(i.bind(i,66489))}})},1526:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:function(){return i.e(5703).then(i.bind(i,15703))}})},40902:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:function(){return i.e(2571).then(i.bind(i,2571))}})},17476:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return i.e(2798).then(i.bind(i,59607))}})},16745:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return i.e(1410).then(i.bind(i,17043))}})},43763:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return i.e(1134).then(i.bind(i,41134))}})},36831:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return i.e(4368).then(i.bind(i,84368))}})},66079:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return i.e(5593).then(i.bind(i,35593))}})},82665:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return i.e(911).then(i.bind(i,20911))}})},77365:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return i.e(2954).then(i.bind(i,42954))}})},6595:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return i.e(854).then(i.bind(i,60854))}})},75769:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return i.e(9398).then(i.bind(i,79398))}})},51714:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return i.e(1961).then(i.bind(i,31961))}})},86935:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return i.e(9537).then(i.bind(i,79537))}})},62893:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return i.e(6082).then(i.bind(i,86082))}})},27616:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return i.e(8084).then(i.bind(i,98084))}})},83335:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return i.e(8070).then(i.bind(i,8070))}})},46266:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return i.e(996).then(i.bind(i,20996))}})},89723:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return i.e(5919).then(i.bind(i,47835))}})},48746:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return i.e(8180).then(i.bind(i,48180))}})},94992:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return i.e(4407).then(i.bind(i,94407))}})},16563:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return i.e(7562).then(i.bind(i,37562))}})},85098:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return i.e(2892).then(i.bind(i,22892))}})},83187:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return i.e(7287).then(i.bind(i,37287))}})},76194:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:function(){return i.e(2140).then(i.bind(i,22140))}})},5566:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return i.e(6424).then(i.bind(i,76424))}})},26254:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return i.e(1259).then(i.bind(i,91259))}})},5734:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return i.e(6449).then(i.bind(i,56449))}})},40191:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return i.e(1065).then(i.bind(i,71065))}})},93127:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:function(){return i.e(9684).then(i.bind(i,69684))}})},34483:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return i.e(8715).then(i.bind(i,8715))}})},40840:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return i.e(5062).then(i.bind(i,78))}})},37266:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:function(){return i.e(180).then(i.bind(i,90180))}})},2375:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return i.e(2060).then(i.bind(i,32060))}})},96461:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return i.e(525).then(i.bind(i,90525))}})},76628:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return i.e(8670).then(i.bind(i,88670))}})},40185:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return i.e(1156).then(i.bind(i,1156))}})},68262:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return i.e(3919).then(i.bind(i,63919))}})},96337:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return i.e(7778).then(i.bind(i,27778))}})},87530:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return i.e(5458).then(i.bind(i,86587))}})},25929:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return i.e(2911).then(i.bind(i,42911))}})},6205:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return i.e(7637).then(i.bind(i,57637))}})},46837:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return i.e(8424).then(i.bind(i,98424))}})},88307:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return i.e(6717).then(i.bind(i,96717))}})},58203:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return i.e(9907).then(i.bind(i,39907))}})},81905:function(xt,Te,i){"use strict";i.r(Te);var h=i(25552);(0,h.H)({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\this._values[v])}}function w(){s.INSTANCE.clearCache()}class s extends O.JT{constructor(){super(),this._onDidChange=this._register(new H.Q5),this.onDidChange=this._onDidChange.event,this._cache=new g,this._evictUntrustedReadingsTimeout=-1}dispose(){this._evictUntrustedReadingsTimeout!==-1&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearCache(){this._cache=new g,this._onDidChange.fire()}_writeToCache(v,r){this._cache.put(v,r),!r.isTrusted&&this._evictUntrustedReadingsTimeout===-1&&(this._evictUntrustedReadingsTimeout=setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const v=this._cache.getValues();let r=!1;for(const l of v)l.isTrusted||(r=!0,this._cache.remove(l));r&&this._onDidChange.fire()}readConfiguration(v){if(!this._cache.has(v)){let r=s._actualReadConfiguration(v);(r.typicalHalfwidthCharacterWidth<=2||r.typicalFullwidthCharacterWidth<=2||r.spaceWidth<=2||r.maxDigitWidth<=2)&&(r=new a.pR({zoomLevel:h.px(),pixelRatio:h.mX(),fontFamily:r.fontFamily,fontWeight:r.fontWeight,fontSize:r.fontSize,fontFeatureSettings:r.fontFeatureSettings,lineHeight:r.lineHeight,letterSpacing:r.letterSpacing,isMonospace:r.isMonospace,typicalHalfwidthCharacterWidth:Math.max(r.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(r.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:r.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(r.spaceWidth,5),middotWidth:Math.max(r.middotWidth,5),wsmiddotWidth:Math.max(r.wsmiddotWidth,5),maxDigitWidth:Math.max(r.maxDigitWidth,5)},!1)),this._writeToCache(v,r)}return this._cache.get(v)}static createRequest(v,r,l,m){const c=new G(v,r);return l.push(c),m&&m.push(c),c}static _actualReadConfiguration(v){const r=[],l=[],m=this.createRequest("n",0,r,l),c=this.createRequest("\uFF4D",0,r,null),b=this.createRequest(" ",0,r,l),L=this.createRequest("0",0,r,l),T=this.createRequest("1",0,r,l),M=this.createRequest("2",0,r,l),z=this.createRequest("3",0,r,l),oe=this.createRequest("4",0,r,l),se=this.createRequest("5",0,r,l),re=this.createRequest("6",0,r,l),De=this.createRequest("7",0,r,l),J=this.createRequest("8",0,r,l),Z=this.createRequest("9",0,r,l),Q=this.createRequest("\u2192",0,r,l),le=this.createRequest("\uFFEB",0,r,null),xe=this.createRequest("\xB7",0,r,l),j=this.createRequest("\u2E31",0,r,null),R="|/-_ilm%";for(let ye=0,ve=R.length;ye.001){K=!1;break}}let te=!0;K&&le.width!==ie&&(te=!1),le.width>Q.width&&(te=!1);const ge=h.WP()>2e3;return new a.pR({zoomLevel:h.px(),pixelRatio:h.mX(),fontFamily:v.fontFamily,fontWeight:v.fontWeight,fontSize:v.fontSize,fontFeatureSettings:v.fontFeatureSettings,lineHeight:v.lineHeight,letterSpacing:v.letterSpacing,isMonospace:K,typicalHalfwidthCharacterWidth:m.width,typicalFullwidthCharacterWidth:c.width,canUseHalfwidthRightwardsArrow:te,spaceWidth:b.width,middotWidth:xe.width,wsmiddotWidth:j.width,maxDigitWidth:V},ge)}}s.INSTANCE=new s;class C extends p.fv{constructor(v,r,l=null,m){super(v,r),this.accessibilityService=m,this._elementSizeObserver=this._register(new E.I(l,r.dimension,()=>this._recomputeOptions())),this._register(s.INSTANCE.onDidChange(()=>this._recomputeOptions())),this._validatedOptions.get(10)&&this._elementSizeObserver.startObserving(),this._register(h.fX(c=>this._recomputeOptions())),this._register(this.accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions())),this._recomputeOptions()}static applyFontInfoSlow(v,r){v.style.fontFamily=r.getMassagedFontFamily(h.G6?D.hL.fontFamily:null),v.style.fontWeight=r.fontWeight,v.style.fontSize=r.fontSize+"px",v.style.fontFeatureSettings=r.fontFeatureSettings,v.style.lineHeight=r.lineHeight+"px",v.style.letterSpacing=r.letterSpacing+"px"}static applyFontInfo(v,r){v.setFontFamily(r.getMassagedFontFamily(h.G6?D.hL.fontFamily:null)),v.setFontWeight(r.fontWeight),v.setFontSize(r.fontSize),v.setFontFeatureSettings(r.fontFeatureSettings),v.setLineHeight(r.lineHeight),v.setLetterSpacing(r.letterSpacing)}observeReferenceElement(v){this._elementSizeObserver.observe(v)}updatePixelRatio(){this._recomputeOptions()}static _getExtraEditorClassName(){let v="";return!h.G6&&!h.MG&&(v+="no-user-select "),h.G6&&(v+="no-minimap-shadow "),P.dz&&(v+="mac "),v}_getEnvConfiguration(){return{extraEditorClassName:C._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:h.Pf||h.vU,pixelRatio:h.mX(),zoomLevel:h.px(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}}readConfiguration(v){return s.INSTANCE.readConfiguration(v)}}},54534:function(xt,Te,i){"use strict";i.d(Te,{I:function(){return H}});var h=i(5976);class H extends h.JT{constructor(P,D,G){super(),this.referenceDomElement=P,this.changeCallback=G,this.width=-1,this.height=-1,this.resizeObserver=null,this.measureReferenceDomElementToken=-1,this.measureReferenceDomElement(!1,D)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this.width}getHeight(){return this.height}startObserving(){typeof ResizeObserver!="undefined"?!this.resizeObserver&&this.referenceDomElement&&(this.resizeObserver=new ResizeObserver(P=>{P&&P[0]&&P[0].contentRect?this.observe({width:P[0].contentRect.width,height:P[0].contentRect.height}):this.observe()}),this.resizeObserver.observe(this.referenceDomElement)):this.measureReferenceDomElementToken===-1&&(this.measureReferenceDomElementToken=setInterval(()=>this.observe(),100))}stopObserving(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.measureReferenceDomElementToken!==-1&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1)}observe(P){this.measureReferenceDomElement(!0,P)}measureReferenceDomElement(P,D){let G=0,I=0;D?(G=D.width,I=D.height):this.referenceDomElement&&(G=this.referenceDomElement.clientWidth,I=this.referenceDomElement.clientHeight),G=Math.max(5,G),I=Math.max(5,I),(this.width!==G||this.height!==I)&&(this.width=G,this.height=I,P&&this.changeCallback())}}},68770:function(xt,Te,i){"use strict";i.r(Te),i.d(Te,{CoreEditingCommands:function(){return z},CoreEditorCommand:function(){return r},CoreNavigationCommands:function(){return b},EditorScroll_:function(){return l},RevealLine_:function(){return m}});var h=i(63580),H=i(16268),O=i(98401),P=i(35996),D=i(16830),G=i(11640),I=i(33181),y=i(50187),E=i(24314);class p{static columnSelect(De,J,Z,Q,le,xe){let j=Math.abs(le-Z)+1,R=Z>le,V=Q>xe,K=Qxe||weQ||Fe0&&Q--,p.columnSelect(De,J,Z.fromViewLineNumber,Z.fromViewVisualColumn,Z.toViewLineNumber,Q)}static columnSelectRight(De,J,Z){let Q=0;const le=Math.min(Z.fromViewLineNumber,Z.toViewLineNumber),xe=Math.max(Z.fromViewLineNumber,Z.toViewLineNumber);for(let R=le;R<=xe;R++){const V=J.getLineMaxColumn(R),K=I.io.visibleColumnFromColumn2(De,J,new y.L(R,V));Q=Math.max(Q,K)}let j=Z.toViewVisualColumn;return j{const Q=J.get(G.$).getFocusedCodeEditor();return Q&&Q.hasTextFocus()?this._runEditorCommand(J,Q,Z):!1}),De.addImplementation(1e3,"generic-dom-input-textarea",(J,Z)=>{const Q=document.activeElement;return Q&&["input","textarea"].indexOf(Q.tagName.toLowerCase())>=0?(this.runDOMCommand(),!0):!1}),De.addImplementation(0,"generic-dom",(J,Z)=>{const Q=J.get(G.$).getActiveCodeEditor();return Q?(Q.focus(),this._runEditorCommand(J,Q,Z)):!1})}_runEditorCommand(De,J,Z){const Q=this.runEditorCommand(De,J,Z);return Q||!0}}var b;(function(re){class De extends r{constructor(ue){super(ue),this._inSelectionMode=ue.inSelectionMode}runCoreEditorCommand(ue,ce){ue.model.pushStackElement(),ue.setCursorStates(ce.source,3,[g.P.moveTo(ue,ue.getPrimaryCursorState(),this._inSelectionMode,ce.position,ce.viewPosition)]),ue.revealPrimaryCursor(ce.source,!0)}}re.MoveTo=(0,D.fK)(new De({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),re.MoveToSelect=(0,D.fK)(new De({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class J extends r{runCoreEditorCommand(ue,ce){ue.model.pushStackElement();const Ve=this._getColumnSelectResult(ue,ue.getPrimaryCursorState(),ue.getCursorColumnSelectData(),ce);ue.setCursorStates(ce.source,3,Ve.viewStates.map(We=>I.Vi.fromViewState(We))),ue.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:Ve.fromLineNumber,fromViewVisualColumn:Ve.fromVisualColumn,toViewLineNumber:Ve.toLineNumber,toViewVisualColumn:Ve.toVisualColumn}),Ve.reversed?ue.revealTopMostCursor(ce.source):ue.revealBottomMostCursor(ce.source)}}re.ColumnSelect=(0,D.fK)(new class extends J{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(we,ue,ce,Ve){const We=we.model.validatePosition(Ve.position),ae=we.coordinatesConverter.validateViewPosition(new y.L(Ve.viewPosition.lineNumber,Ve.viewPosition.column),We);let fe=Ve.doColumnSelect?ce.fromViewLineNumber:ae.lineNumber,ne=Ve.doColumnSelect?ce.fromViewVisualColumn:Ve.mouseColumn-1;return p.columnSelect(we.cursorConfig,we,fe,ne,ae.lineNumber,Ve.mouseColumn-1)}}),re.CursorColumnSelectLeft=(0,D.fK)(new class extends J{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(we,ue,ce,Ve){return p.columnSelectLeft(we.cursorConfig,we,ce)}}),re.CursorColumnSelectRight=(0,D.fK)(new class extends J{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(we,ue,ce,Ve){return p.columnSelectRight(we.cursorConfig,we,ce)}});class Z extends J{constructor(ue){super(ue),this._isPaged=ue.isPaged}_getColumnSelectResult(ue,ce,Ve,We){return p.columnSelectUp(ue.cursorConfig,ue,Ve,this._isPaged)}}re.CursorColumnSelectUp=(0,D.fK)(new Z({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:3600,linux:{primary:0}}})),re.CursorColumnSelectPageUp=(0,D.fK)(new Z({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:3595,linux:{primary:0}}}));class Q extends J{constructor(ue){super(ue),this._isPaged=ue.isPaged}_getColumnSelectResult(ue,ce,Ve,We){return p.columnSelectDown(ue.cursorConfig,ue,Ve,this._isPaged)}}re.CursorColumnSelectDown=(0,D.fK)(new Q({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:3602,linux:{primary:0}}})),re.CursorColumnSelectPageDown=(0,D.fK)(new Q({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:3596,linux:{primary:0}}}));class le extends r{constructor(){super({id:"cursorMove",precondition:void 0,description:g.N.description})}runCoreEditorCommand(ue,ce){const Ve=g.N.parse(ce);Ve&&this._runCursorMove(ue,ce.source,Ve)}_runCursorMove(ue,ce,Ve){ue.model.pushStackElement(),ue.setCursorStates(ce,3,le._move(ue,ue.getCursorStates(),Ve)),ue.revealPrimaryCursor(ce,!0)}static _move(ue,ce,Ve){const We=Ve.select,ae=Ve.value;switch(Ve.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return g.P.simpleMove(ue,ce,Ve.direction,We,ae,Ve.unit);case 11:case 13:case 12:case 14:return g.P.viewportMove(ue,ce,Ve.direction,We,ae);default:return null}}}re.CursorMoveImpl=le,re.CursorMove=(0,D.fK)(new le);class xe extends r{constructor(ue){super(ue),this._staticArgs=ue.args}runCoreEditorCommand(ue,ce){let Ve=this._staticArgs;this._staticArgs.value===-1&&(Ve={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:ue.cursorConfig.pageSize}),ue.model.pushStackElement(),ue.setCursorStates(ce.source,3,g.P.simpleMove(ue,ue.getCursorStates(),Ve.direction,Ve.select,Ve.value,Ve.unit)),ue.revealPrimaryCursor(ce.source,!0)}}re.CursorLeft=(0,D.fK)(new xe({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),re.CursorLeftSelect=(0,D.fK)(new xe({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:1039}})),re.CursorRight=(0,D.fK)(new xe({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),re.CursorRightSelect=(0,D.fK)(new xe({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:1041}})),re.CursorUp=(0,D.fK)(new xe({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),re.CursorUpSelect=(0,D.fK)(new xe({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),re.CursorPageUp=(0,D.fK)(new xe({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:11}})),re.CursorPageUpSelect=(0,D.fK)(new xe({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:1035}})),re.CursorDown=(0,D.fK)(new xe({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),re.CursorDownSelect=(0,D.fK)(new xe({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),re.CursorPageDown=(0,D.fK)(new xe({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:12}})),re.CursorPageDownSelect=(0,D.fK)(new xe({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:1036}})),re.CreateCursor=(0,D.fK)(new class extends r{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(we,ue){let ce;ue.wholeLine?ce=g.P.line(we,we.getPrimaryCursorState(),!1,ue.position,ue.viewPosition):ce=g.P.moveTo(we,we.getPrimaryCursorState(),!1,ue.position,ue.viewPosition);const Ve=we.getCursorStates();if(Ve.length>1){const We=ce.modelState?ce.modelState.position:null,ae=ce.viewState?ce.viewState.position:null;for(let fe=0,ne=Ve.length;feae&&(We=ae);const fe=new E.e(We,1,We,we.model.getLineMaxColumn(We));let ne=0;if(ce.at)switch(ce.at){case m.RawAtArgument.Top:ne=3;break;case m.RawAtArgument.Center:ne=1;break;case m.RawAtArgument.Bottom:ne=4;break;default:break}const W=we.coordinatesConverter.convertModelRangeToViewRange(fe);we.revealRange(ue.source,!1,W,ne,0)}}),re.SelectAll=new class extends c{constructor(){super(D.Sq)}runDOMCommand(){H.vU&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}runEditorCommand(we,ue,ce){const Ve=ue._getViewModel();Ve&&this.runCoreEditorCommand(Ve,ce)}runCoreEditorCommand(we,ue){we.model.pushStackElement(),we.setCursorStates("keyboard",3,[g.P.selectAll(we,we.getPrimaryCursorState())])}},re.SetSelection=(0,D.fK)(new class extends r{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(we,ue){we.model.pushStackElement(),we.setCursorStates(ue.source,3,[I.Vi.fromModelSelection(ue.selection)])}})})(b||(b={}));const L=C.Ao.and(s.u.textInputFocus,s.u.columnSelection);function T(re,De){f.W.registerKeybindingRule({id:re,primary:De,when:L,weight:v+1})}T(b.CursorColumnSelectLeft.id,1039),T(b.CursorColumnSelectRight.id,1041),T(b.CursorColumnSelectUp.id,1040),T(b.CursorColumnSelectPageUp.id,1035),T(b.CursorColumnSelectDown.id,1042),T(b.CursorColumnSelectPageDown.id,1036);function M(re){return re.register(),re}var z;(function(re){class De extends D._l{runEditorCommand(Z,Q,le){const xe=Q._getViewModel();xe&&this.runCoreEditingCommand(Q,xe,le||{})}}re.CoreEditingCommand=De,re.LineBreakInsert=(0,D.fK)(new class extends De{constructor(){super({id:"lineBreakInsert",precondition:s.u.writable,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(J,Z,Q){J.pushUndoStop(),J.executeCommands(this.id,w.u.lineBreakInsert(Z.cursorConfig,Z.model,Z.getCursorStates().map(le=>le.modelState.selection)))}}),re.Outdent=(0,D.fK)(new class extends De{constructor(){super({id:"outdent",precondition:s.u.writable,kbOpts:{weight:v,kbExpr:C.Ao.and(s.u.editorTextFocus,s.u.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(J,Z,Q){J.pushUndoStop(),J.executeCommands(this.id,w.u.outdent(Z.cursorConfig,Z.model,Z.getCursorStates().map(le=>le.modelState.selection))),J.pushUndoStop()}}),re.Tab=(0,D.fK)(new class extends De{constructor(){super({id:"tab",precondition:s.u.writable,kbOpts:{weight:v,kbExpr:C.Ao.and(s.u.editorTextFocus,s.u.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(J,Z,Q){J.pushUndoStop(),J.executeCommands(this.id,w.u.tab(Z.cursorConfig,Z.model,Z.getCursorStates().map(le=>le.modelState.selection))),J.pushUndoStop()}}),re.DeleteLeft=(0,D.fK)(new class extends De{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(J,Z,Q){const[le,xe]=a.A.deleteLeft(Z.getPrevEditOperationType(),Z.cursorConfig,Z.model,Z.getCursorStates().map(j=>j.modelState.selection),Z.getCursorAutoClosedCharacters());le&&J.pushUndoStop(),J.executeCommands(this.id,xe),Z.setPrevEditOperationType(2)}}),re.DeleteRight=(0,D.fK)(new class extends De{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:v,kbExpr:s.u.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(J,Z,Q){const[le,xe]=a.A.deleteRight(Z.getPrevEditOperationType(),Z.cursorConfig,Z.model,Z.getCursorStates().map(j=>j.modelState.selection));le&&J.pushUndoStop(),J.executeCommands(this.id,xe),Z.setPrevEditOperationType(3)}}),re.Undo=new class extends c{constructor(){super(D.n_)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(J,Z,Q){if(!(!Z.hasModel()||Z.getOption(80)===!0))return Z.getModel().undo()}},re.Redo=new class extends c{constructor(){super(D.kz)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(J,Z,Q){if(!(!Z.hasModel()||Z.getOption(80)===!0))return Z.getModel().redo()}}})(z||(z={}));class oe extends D.mY{constructor(De,J,Z){super({id:De,precondition:void 0,description:Z}),this._handlerId=J}runCommand(De,J){const Z=De.get(G.$).getFocusedCodeEditor();Z&&Z.trigger("keyboard",this._handlerId,J)}}function se(re,De){M(new oe("default:"+re,re)),M(new oe(re,re,De))}se("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),se("replacePreviousChar"),se("compositionType"),se("compositionStart"),se("compositionEnd"),se("paste"),se("cut")},35715:function(xt,Te,i){"use strict";i.d(Te,{Fz:function(){return C},Nl:function(){return s},RA:function(){return w},pd:function(){return g}});var h=i(16268),H=i(65321),O=i(15393),P=i(4669),D=i(5976),G=i(81170),I=i(1432),y=i(97295),E=i(15887),p=i(50187),a=i(3860),g;(function(r){r.Tap="-monaco-textarea-synthetic-tap"})(g||(g={}));const w={forceCopyWithSyntaxHighlighting:!1};class s{constructor(){this._lastState=null}set(l,m){this._lastState={lastCopiedValue:l,data:m}}get(l){return this._lastState&&this._lastState.lastCopiedValue===l?this._lastState.data:(this._lastState=null,null)}}s.INSTANCE=new s;class C extends D.JT{constructor(l,m){super(),this.textArea=m,this._onFocus=this._register(new P.Q5),this.onFocus=this._onFocus.event,this._onBlur=this._register(new P.Q5),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new P.Q5),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new P.Q5),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new P.Q5),this.onCut=this._onCut.event,this._onPaste=this._register(new P.Q5),this.onPaste=this._onPaste.event,this._onType=this._register(new P.Q5),this.onType=this._onType.event,this._onCompositionStart=this._register(new P.Q5),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new P.Q5),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new P.Q5),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new P.Q5),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._host=l,this._textArea=this._register(new v(m)),this._asyncTriggerCut=this._register(new O.pY(()=>this._onCut.fire(),0)),this._asyncFocusGainWriteScreenReaderContent=this._register(new O.pY(()=>this.writeScreenReaderContent("asyncFocusGain"),0)),this._textAreaState=E.un.EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._isDoingComposition=!1,this._nextCommand=0;let c=null;this._register(H.mu(m.domNode,"keydown",M=>{(M.keyCode===109||this._isDoingComposition&&M.keyCode===1)&&M.stopPropagation(),M.equals(9)&&M.preventDefault(),c=M,this._onKeyDown.fire(M)})),this._register(H.mu(m.domNode,"keyup",M=>{this._onKeyUp.fire(M)})),this._register(H.nm(m.domNode,"compositionstart",M=>{if(E.al&&console.log("[compositionstart]",M),!this._isDoingComposition){if(this._isDoingComposition=!0,I.dz&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===M.data&&(c&&c.equals(109)&&(c.code==="ArrowRight"||c.code==="ArrowLeft")||h.vU)){E.al&&console.log("[compositionstart] Handling long press case on macOS + arrow key or Firefox",M),this._textAreaState=new E.un(this._textAreaState.value,this._textAreaState.selectionStart-1,this._textAreaState.selectionEnd,this._textAreaState.selectionStartPosition?new p.L(this._textAreaState.selectionStartPosition.lineNumber,this._textAreaState.selectionStartPosition.column-1):null,this._textAreaState.selectionEndPosition),this._onCompositionStart.fire({revealDeltaColumns:-1});return}if(h.Dt){this._onCompositionStart.fire({revealDeltaColumns:-this._textAreaState.selectionStart});return}this._setAndWriteTextAreaState("compositionstart",E.un.EMPTY),this._onCompositionStart.fire({revealDeltaColumns:0})}}));const b=M=>{const z=this._textAreaState,oe=E.un.readFromTextArea(this._textArea);return[oe,E.un.deduceInput(z,oe,M)]},L=()=>{const M=this._textAreaState,z=E.un.readFromTextArea(this._textArea);return[z,E.un.deduceAndroidCompositionInput(M,z)]},T=M=>{const z=this._textAreaState,oe=E.un.selectedText(M),se={text:oe.value,replacePrevCharCnt:z.selectionEnd-z.selectionStart,replaceNextCharCnt:0,positionDelta:0};return[oe,se]};this._register(H.nm(m.domNode,"compositionupdate",M=>{if(E.al&&console.log("[compositionupdate]",M),h.Dt){const[se,re]=L();this._textAreaState=se,this._onType.fire(re),this._onCompositionUpdate.fire(M);return}const[z,oe]=T(M.data||"");this._textAreaState=z,this._onType.fire(oe),this._onCompositionUpdate.fire(M)})),this._register(H.nm(m.domNode,"compositionend",M=>{if(E.al&&console.log("[compositionend]",M),!this._isDoingComposition)return;if(this._isDoingComposition=!1,h.Dt){const[se,re]=L();this._textAreaState=se,this._onType.fire(re),this._onCompositionEnd.fire();return}const[z,oe]=T(M.data||"");this._textAreaState=z,this._onType.fire(oe),(h.i7||h.vU)&&(this._textAreaState=E.un.readFromTextArea(this._textArea)),this._onCompositionEnd.fire()})),this._register(H.nm(m.domNode,"input",()=>{if(this._textArea.setIgnoreSelectionChangeTime("received input event"),this._isDoingComposition)return;const[M,z]=b(I.dz);z.replacePrevCharCnt===0&&z.text.length===1&&y.ZG(z.text.charCodeAt(0))||(this._textAreaState=M,this._nextCommand===0?(z.text!==""||z.replacePrevCharCnt!==0)&&this._onType.fire(z):((z.text!==""||z.replacePrevCharCnt!==0)&&this._firePaste(z.text,null),this._nextCommand=0))})),this._register(H.nm(m.domNode,"cut",M=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(M),this._asyncTriggerCut.schedule()})),this._register(H.nm(m.domNode,"copy",M=>{this._ensureClipboardGetsEditorSelection(M)})),this._register(H.nm(m.domNode,"paste",M=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),f.canUseTextData(M)){const[z,oe]=f.getTextData(M);z!==""&&this._firePaste(z,oe)}else this._textArea.getSelectionStart()!==this._textArea.getSelectionEnd()&&this._setAndWriteTextAreaState("paste",E.un.EMPTY),this._nextCommand=1})),this._register(H.nm(m.domNode,"focus",()=>{const M=this._hasFocus;this._setHasFocus(!0),h.G6&&!M&&this._hasFocus&&this._asyncFocusGainWriteScreenReaderContent.schedule()})),this._register(H.nm(m.domNode,"blur",()=>{this._isDoingComposition&&(this._isDoingComposition=!1,this.writeScreenReaderContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(H.nm(m.domNode,g.Tap,()=>{h.Dt&&this._isDoingComposition&&(this._isDoingComposition=!1,this.writeScreenReaderContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let l=0;return H.nm(document,"selectionchange",m=>{if(!this._hasFocus||this._isDoingComposition||!h.i7)return;const c=Date.now(),b=c-l;if(l=c,b<5)return;const L=c-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),L<100||!this._textAreaState.selectionStartPosition||!this._textAreaState.selectionEndPosition)return;const T=this._textArea.getValue();if(this._textAreaState.value!==T)return;const M=this._textArea.getSelectionStart(),z=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===M&&this._textAreaState.selectionEnd===z)return;const oe=this._textAreaState.deduceEditorPosition(M),se=this._host.deduceModelPosition(oe[0],oe[1],oe[2]),re=this._textAreaState.deduceEditorPosition(z),De=this._host.deduceModelPosition(re[0],re[1],re[2]),J=new a.Y(se.lineNumber,se.column,De.lineNumber,De.column);this._onSelectionChangeRequest.fire(J)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){const l=H.Ay(this.textArea.domNode);l?this._setHasFocus(l.activeElement===this.textArea.domNode):H.Uw(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)}_setHasFocus(l){this._hasFocus!==l&&(this._hasFocus=l,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeScreenReaderContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(l,m){this._hasFocus||(m=m.collapseSelection()),m.writeToTextArea(l,this._textArea,this._hasFocus),this._textAreaState=m}writeScreenReaderContent(l){this._isDoingComposition||this._setAndWriteTextAreaState(l,this._host.getScreenReaderContent(this._textAreaState))}_ensureClipboardGetsEditorSelection(l){const m=this._host.getDataToCopy(f.canUseTextData(l)),c={version:1,isFromEmptySelection:m.isFromEmptySelection,multicursorText:m.multicursorText,mode:m.mode};if(s.INSTANCE.set(h.vU?m.text.replace(/\r\n/g,` `):m.text,c),!f.canUseTextData(l)){this._setAndWriteTextAreaState("copy or cut",E.un.selectedText(m.text));return}f.setTextData(l,m.text,m.html,c)}_firePaste(l,m){m||(m=s.INSTANCE.get(l)),this._onPaste.fire({text:l,metadata:m})}}class f{static canUseTextData(l){return!!l.clipboardData}static getTextData(l){if(l.clipboardData){l.preventDefault();const m=l.clipboardData.getData(G.vW.text);let c=null;const b=l.clipboardData.getData("vscode-editor-data");if(typeof b=="string")try{c=JSON.parse(b),c.version!==1&&(c=null)}catch(L){}return[m,c]}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")}static setTextData(l,m,c,b){if(l.clipboardData){l.clipboardData.setData(G.vW.text,m),typeof c=="string"&&l.clipboardData.setData("text/html",c),l.clipboardData.setData("vscode-editor-data",JSON.stringify(b)),l.preventDefault();return}throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")}}class v extends D.JT{constructor(l){super(),this._actual=l,this._ignoreSelectionChangeTime=0}setIgnoreSelectionChangeTime(l){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.domNode.value}setValue(l,m){const c=this._actual.domNode;c.value!==m&&(this.setIgnoreSelectionChangeTime("setValue"),c.value=m)}getSelectionStart(){return this._actual.domNode.selectionDirection==="backward"?this._actual.domNode.selectionEnd:this._actual.domNode.selectionStart}getSelectionEnd(){return this._actual.domNode.selectionDirection==="backward"?this._actual.domNode.selectionStart:this._actual.domNode.selectionEnd}setSelectionRange(l,m,c){const b=this._actual.domNode;let L=null;const T=H.Ay(b);T?L=T.activeElement:L=document.activeElement;const M=L===b,z=b.selectionStart,oe=b.selectionEnd;if(M&&z===m&&oe===c){h.vU&&window.parent!==window&&b.focus();return}if(M){this.setIgnoreSelectionChangeTime("setSelectionRange"),b.setSelectionRange(m,c),h.vU&&window.parent!==window&&b.focus();return}try{const se=H.vL(b);this.setIgnoreSelectionChangeTime("setSelectionRange"),b.focus(),b.setSelectionRange(m,c),H._0(b,se)}catch(se){}}}},15887:function(xt,Te,i){"use strict";i.d(Te,{al:function(){return P},ee:function(){return G},un:function(){return D}});var h=i(97295),H=i(50187),O=i(24314);const P=!1;class D{constructor(y,E,p,a,g){this.value=y,this.selectionStart=E,this.selectionEnd=p,this.selectionStartPosition=a,this.selectionEndPosition=g}toString(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"}static readFromTextArea(y){return new D(y.getValue(),y.getSelectionStart(),y.getSelectionEnd(),null,null)}collapseSelection(){return new D(this.value,this.value.length,this.value.length,null,null)}writeToTextArea(y,E,p){P&&console.log("writeToTextArea "+y+": "+this.toString()),E.setValue(y,this.value),p&&E.setSelectionRange(y,this.selectionStart,this.selectionEnd)}deduceEditorPosition(y){if(y<=this.selectionStart){const a=this.value.substring(y,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,a,-1)}if(y>=this.selectionEnd){const a=this.value.substring(this.selectionEnd,y);return this._finishDeduceEditorPosition(this.selectionEndPosition,a,1)}const E=this.value.substring(this.selectionStart,y);if(E.indexOf("\u2026")===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,E,1);const p=this.value.substring(y,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,p,-1)}_finishDeduceEditorPosition(y,E,p){let a=0,g=-1;for(;(g=E.indexOf(` `,g+1))!==-1;)a++;return[y,p*E.length,a]}static selectedText(y){return new D(y,0,y.length,null,null)}static deduceInput(y,E,p){if(!y)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};P&&(console.log("------------------------deduceInput"),console.log("PREVIOUS STATE: "+y.toString()),console.log("CURRENT STATE: "+E.toString()));let a=y.value,g=y.selectionStart,w=y.selectionEnd,s=E.value,C=E.selectionStart,f=E.selectionEnd;const v=a.substring(w),r=s.substring(f),l=h.P1(v,r);s=s.substring(0,s.length-l),a=a.substring(0,a.length-l);const m=a.substring(0,g),c=s.substring(0,C),b=h.Mh(m,c);if(s=s.substring(b),a=a.substring(b),C-=b,g-=b,f-=b,w-=b,P&&(console.log("AFTER DIFFING PREVIOUS STATE: <"+a+">, selectionStart: "+g+", selectionEnd: "+w),console.log("AFTER DIFFING CURRENT STATE: <"+s+">, selectionStart: "+C+", selectionEnd: "+f)),p&&C===f&&a.length>0){let T=null;if(C===s.length?s.startsWith(a)&&(T=s.substring(a.length)):s.endsWith(a)&&(T=s.substring(0,s.length-a.length)),T!==null&&T.length>0&&(/\uFE0F/.test(T)||h.RP(T)))return{text:T,replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0}}if(C===f){if(a===s&&g===0&&w===a.length&&C===s.length&&s.indexOf(` `)===-1&&h.xe(s))return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};const T=m.length-b;return P&&console.log("REMOVE PREVIOUS: "+(m.length-b)+" chars"),{text:s,replacePrevCharCnt:T,replaceNextCharCnt:0,positionDelta:0}}const L=w-g;return{text:s,replacePrevCharCnt:L,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(y,E){if(!y)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(P&&(console.log("------------------------deduceAndroidCompositionInput"),console.log("PREVIOUS STATE: "+y.toString()),console.log("CURRENT STATE: "+E.toString())),y.value===E.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:E.selectionEnd-y.selectionEnd};const p=Math.min(h.Mh(y.value,E.value),y.selectionEnd),a=Math.min(h.P1(y.value,E.value),y.value.length-y.selectionEnd),g=y.value.substring(p,y.value.length-a),w=E.value.substring(p,E.value.length-a),s=y.selectionStart-p,C=y.selectionEnd-p,f=E.selectionStart-p,v=E.selectionEnd-p;return P&&(console.log("AFTER DIFFING PREVIOUS STATE: <"+g+">, selectionStart: "+s+", selectionEnd: "+C),console.log("AFTER DIFFING CURRENT STATE: <"+w+">, selectionStart: "+f+", selectionEnd: "+v)),{text:w,replacePrevCharCnt:C,replaceNextCharCnt:g.length-C,positionDelta:v-w.length}}}D.EMPTY=new D("",0,0,null,null);class G{static _getPageOfLine(y,E){return Math.floor((y-1)/E)}static _getRangeForPage(y,E){const p=y*E,a=p+1,g=p+E;return new O.e(a,1,g+1,1)}static fromEditorSelection(y,E,p,a,g){const w=G._getPageOfLine(p.startLineNumber,a),s=G._getRangeForPage(w,a),C=G._getPageOfLine(p.endLineNumber,a),f=G._getRangeForPage(C,a),v=s.intersectRanges(new O.e(1,1,p.startLineNumber,p.startColumn));let r=E.getValueInRange(v,1);const l=E.getLineCount(),m=E.getLineMaxColumn(l),c=f.intersectRanges(new O.e(p.endLineNumber,p.endColumn,l,m));let b=E.getValueInRange(c,1),L;if(w===C||w+1===C)L=E.getValueInRange(p,1);else{const T=s.intersectRanges(p),M=f.intersectRanges(p);L=E.getValueInRange(T,1)+"\u2026"+E.getValueInRange(M,1)}return g&&(r.length>500&&(r=r.substring(r.length-500,r.length)),b.length>500&&(b=b.substring(0,500)),L.length>2*500&&(L=L.substring(0,500)+"\u2026"+L.substring(L.length-500,L.length))),new D(r+L+b,r.length,r.length+L.length,new H.L(p.startLineNumber,p.startColumn),new H.L(p.endLineNumber,p.endColumn))}}},55812:function(xt,Te,i){"use strict";i.d(Te,{yy:function(){return s},Dl:function(){return C},ZF:function(){return v},YQ:function(){return f}});var h=i(97295),H=i(24314),O=i(71050),P=i(5976),D=i(16830),G=i(38819),I=i(91741),y=i(72065),E=i(65026),p=i(63580);const a=(0,y.yh)("IEditorCancelService"),g=new G.uy("cancellableOperation",!1,(0,p.N)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,E.z)(a,class{constructor(){this._tokens=new WeakMap}add(r,l){let m=this._tokens.get(r);m||(m=r.invokeWithinContext(b=>{const L=g.bindTo(b.get(G.i6)),T=new I.S;return{key:L,tokens:T}}),this._tokens.set(r,m));let c;return m.key.set(!0),c=m.tokens.push(l),()=>{c&&(c(),m.key.set(!m.tokens.isEmpty()),c=void 0)}}cancel(r){const l=this._tokens.get(r);if(!l)return;const m=l.tokens.pop();m&&(m.cancel(),l.key.set(!l.tokens.isEmpty()))}},!0);class w extends O.A{constructor(l,m){super(m),this.editor=l,this._unregister=l.invokeWithinContext(c=>c.get(a).add(l,this))}dispose(){this._unregister(),super.dispose()}}(0,D.fK)(new class extends D._l{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:g})}runEditorCommand(r,l){r.get(a).cancel(l)}});class s{constructor(l,m){if(this.flags=m,this.flags&1){const c=l.getModel();this.modelVersionId=c?h.WU("{0}#{1}",c.uri.toString(),c.getVersionId()):null}else this.modelVersionId=null;this.flags&4?this.position=l.getPosition():this.position=null,this.flags&2?this.selection=l.getSelection():this.selection=null,this.flags&8?(this.scrollLeft=l.getScrollLeft(),this.scrollTop=l.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(l){if(!(l instanceof s))return!1;const m=l;return!(this.modelVersionId!==m.modelVersionId||this.scrollLeft!==m.scrollLeft||this.scrollTop!==m.scrollTop||!this.position&&m.position||this.position&&!m.position||this.position&&m.position&&!this.position.equals(m.position)||!this.selection&&m.selection||this.selection&&!m.selection||this.selection&&m.selection&&!this.selection.equalsRange(m.selection))}validate(l){return this._equals(new s(l,this.flags))}}class C extends w{constructor(l,m,c,b){super(l,b),this._listener=new P.SL,m&4&&this._listener.add(l.onDidChangeCursorPosition(L=>{(!c||!H.e.containsPosition(c,L.position))&&this.cancel()})),m&2&&this._listener.add(l.onDidChangeCursorSelection(L=>{(!c||!H.e.containsRange(c,L.selection))&&this.cancel()})),m&8&&this._listener.add(l.onDidScrollChange(L=>this.cancel())),m&1&&(this._listener.add(l.onDidChangeModel(L=>this.cancel())),this._listener.add(l.onDidChangeModelContent(L=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class f extends O.A{constructor(l,m){super(m),this._listener=l.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}class v{constructor(l,m,c){this._visiblePosition=l,this._visiblePositionScrollDelta=m,this._cursorPosition=c}static capture(l){let m=null,c=0;if(l.getScrollTop()!==0){const b=l.getVisibleRanges();if(b.length>0){m=b[0].getStartPosition();const L=l.getTopForPosition(m.lineNumber,m.column);c=l.getScrollTop()-L}}return new v(m,c,l.getPosition())}restore(l){if(this._visiblePosition){const m=l.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);l.setScrollTop(m+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(l){const m=l.getPosition();if(!this._cursorPosition||!m)return;const c=l.getTopForLineNumber(m.lineNumber)-l.getTopForLineNumber(this._cursorPosition.lineNumber);l.setScrollTop(l.getScrollTop()+c)}}},76475:function(xt,Te,i){"use strict";i.d(Te,{$:function(){return mi}});var h=i(65321);function H(mt){if(Array.isArray(mt)){for(var ut=0,qe=Array(mt.length);ut1?qe-1:0),Se=1;Se/gm),ge=E(/^data-[\-\w.\u00B7-\uFFFF]/),ye=E(/^aria-[\-\w]+$/),ve=E(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fe=E(/^(?:\w+script|data):/i),we=E(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(mt){return typeof mt}:function(mt){return mt&&typeof Symbol=="function"&&mt.constructor===Symbol&&mt!==Symbol.prototype?"symbol":typeof mt};function ce(mt){if(Array.isArray(mt)){for(var ut=0,qe=Array(mt.length);ut0&&arguments[0]!==void 0?arguments[0]:Ve(),ut=function(li){return ae(li)};if(ut.version="2.3.1",ut.removed=[],!mt||!mt.document||mt.document.nodeType!==9)return ut.isSupported=!1,ut;var qe=mt.document,de=mt.document,Se=mt.DocumentFragment,Y=mt.HTMLTemplateElement,_e=mt.Node,ke=mt.Element,lt=mt.NodeFilter,nt=mt.NamedNodeMap,pt=nt===void 0?mt.NamedNodeMap||mt.MozNamedAttrMap:nt,Dt=mt.Text,Vt=mt.Comment,Mt=mt.DOMParser,Jt=mt.trustedTypes,jt=ke.prototype,ui=se(jt,"cloneNode"),vi=se(jt,"nextSibling"),Si=se(jt,"childNodes"),Oi=se(jt,"parentNode");if(typeof Y=="function"){var Ri=de.createElement("template");Ri.content&&Ri.content.ownerDocument&&(de=Ri.content.ownerDocument)}var zi=We(Jt,qe),hn=zi&&ii?zi.createHTML(""):"",bn=de,qi=bn.implementation,Rn=bn.createNodeIterator,yn=bn.createDocumentFragment,nn=bn.getElementsByTagName,kn=qe.importNode,Dn={};try{Dn=oe(de).documentMode?de.documentMode:{}}catch(rn){}var En={};ut.isSupported=typeof Oi=="function"&&qi&&typeof qi.createHTMLDocument!="undefined"&&Dn!==9;var Jn=ie,ln=te,$n=ge,Gn=ye,ss=Fe,pn=we,Yn=ve,Vn=null,An=z({},[].concat(ce(re),ce(De),ce(J),ce(Q),ce(xe))),On=null,ts=z({},[].concat(ce(j),ce(R),ce(V),ce(K))),Un=null,sn=null,Lt=!0,F=!0,pe=!1,Ne=!1,je=!1,Je=!1,St=!1,Rt=!1,ti=!1,fi=!0,ii=!1,Ct=!0,k=!0,Ce=!1,Be={},ot=null,wt=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ut=null,Yt=z({},["audio","video","img","source","image","track"]),ei=null,ri=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gi="http://www.w3.org/1998/Math/MathML",Mi="http://www.w3.org/2000/svg",Ei="http://www.w3.org/1999/xhtml",xi=Ei,Pi=!1,ki=null,Bi=de.createElement("form"),on=function(li){ki&&ki===li||((!li||(typeof li=="undefined"?"undefined":ue(li))!=="object")&&(li={}),li=oe(li),Vn="ALLOWED_TAGS"in li?z({},li.ALLOWED_TAGS):An,On="ALLOWED_ATTR"in li?z({},li.ALLOWED_ATTR):ts,ei="ADD_URI_SAFE_ATTR"in li?z(oe(ri),li.ADD_URI_SAFE_ATTR):ri,Ut="ADD_DATA_URI_TAGS"in li?z(oe(Yt),li.ADD_DATA_URI_TAGS):Yt,ot="FORBID_CONTENTS"in li?z({},li.FORBID_CONTENTS):wt,Un="FORBID_TAGS"in li?z({},li.FORBID_TAGS):{},sn="FORBID_ATTR"in li?z({},li.FORBID_ATTR):{},Be="USE_PROFILES"in li?li.USE_PROFILES:!1,Lt=li.ALLOW_ARIA_ATTR!==!1,F=li.ALLOW_DATA_ATTR!==!1,pe=li.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=li.SAFE_FOR_TEMPLATES||!1,je=li.WHOLE_DOCUMENT||!1,Rt=li.RETURN_DOM||!1,ti=li.RETURN_DOM_FRAGMENT||!1,fi=li.RETURN_DOM_IMPORT!==!1,ii=li.RETURN_TRUSTED_TYPE||!1,St=li.FORCE_BODY||!1,Ct=li.SANITIZE_DOM!==!1,k=li.KEEP_CONTENT!==!1,Ce=li.IN_PLACE||!1,Yn=li.ALLOWED_URI_REGEXP||Yn,xi=li.NAMESPACE||Ei,Ne&&(F=!1),ti&&(Rt=!0),Be&&(Vn=z({},[].concat(ce(xe))),On=[],Be.html===!0&&(z(Vn,re),z(On,j)),Be.svg===!0&&(z(Vn,De),z(On,R),z(On,K)),Be.svgFilters===!0&&(z(Vn,J),z(On,R),z(On,K)),Be.mathMl===!0&&(z(Vn,Q),z(On,V),z(On,K))),li.ADD_TAGS&&(Vn===An&&(Vn=oe(Vn)),z(Vn,li.ADD_TAGS)),li.ADD_ATTR&&(On===ts&&(On=oe(On)),z(On,li.ADD_ATTR)),li.ADD_URI_SAFE_ATTR&&z(ei,li.ADD_URI_SAFE_ATTR),li.FORBID_CONTENTS&&(ot===wt&&(ot=oe(ot)),z(ot,li.FORBID_CONTENTS)),k&&(Vn["#text"]=!0),je&&z(Vn,["html","head","body"]),Vn.table&&(z(Vn,["tbody"]),delete Un.tbody),y&&y(li),ki=li)},zn=z({},["mi","mo","mn","ms","mtext"]),hs=z({},["foreignobject","desc","title","annotation-xml"]),en=z({},De);z(en,J),z(en,Z);var mn=z({},Q);z(mn,le);var Pn=function(li){var Ai=Oi(li);(!Ai||!Ai.tagName)&&(Ai={namespaceURI:Ei,tagName:"template"});var Hi=v(li.tagName),vn=v(Ai.tagName);if(li.namespaceURI===Mi)return Ai.namespaceURI===Ei?Hi==="svg":Ai.namespaceURI===gi?Hi==="svg"&&(vn==="annotation-xml"||zn[vn]):!!en[Hi];if(li.namespaceURI===gi)return Ai.namespaceURI===Ei?Hi==="math":Ai.namespaceURI===Mi?Hi==="math"&&hs[vn]:!!mn[Hi];if(li.namespaceURI===Ei){if(Ai.namespaceURI===Mi&&!hs[vn]||Ai.namespaceURI===gi&&!zn[vn])return!1;var is=z({},["title","style","font","a","script"]);return!mn[Hi]&&(is[Hi]||!en[Hi])}return!1},Yi=function(li){f(ut.removed,{element:li});try{li.parentNode.removeChild(li)}catch(Ai){try{li.outerHTML=hn}catch(Hi){li.remove()}}},tn=function(li,Ai){try{f(ut.removed,{attribute:Ai.getAttributeNode(li),from:Ai})}catch(Hi){f(ut.removed,{attribute:null,from:Ai})}if(Ai.removeAttribute(li),li==="is"&&!On[li])if(Rt||ti)try{Yi(Ai)}catch(Hi){}else try{Ai.setAttribute(li,"")}catch(Hi){}},Bn=function(li){var Ai=void 0,Hi=void 0;if(St)li=""+li;else{var vn=r(li,/^[\r\n\t ]+/);Hi=vn&&vn[0]}var is=zi?zi.createHTML(li):li;if(xi===Ei)try{Ai=new Mt().parseFromString(is,"text/html")}catch(at){}if(!Ai||!Ai.documentElement){Ai=qi.createDocument(xi,"template",null);try{Ai.documentElement.innerHTML=Pi?"":is}catch(at){}}var Tn=Ai.body||Ai.documentElement;return li&&Hi&&Tn.insertBefore(de.createTextNode(Hi),Tn.childNodes[0]||null),xi===Ei?nn.call(Ai,je?"html":"body")[0]:je?Ai.documentElement:Tn},vs=function(li){return Rn.call(li.ownerDocument||li,li,lt.SHOW_ELEMENT|lt.SHOW_COMMENT|lt.SHOW_TEXT,null,!1)},ws=function(li){return li instanceof Dt||li instanceof Vt?!1:typeof li.nodeName!="string"||typeof li.textContent!="string"||typeof li.removeChild!="function"||!(li.attributes instanceof pt)||typeof li.removeAttribute!="function"||typeof li.setAttribute!="function"||typeof li.namespaceURI!="string"||typeof li.insertBefore!="function"},ds=function(li){return(typeof _e=="undefined"?"undefined":ue(_e))==="object"?li instanceof _e:li&&(typeof li=="undefined"?"undefined":ue(li))==="object"&&typeof li.nodeType=="number"&&typeof li.nodeName=="string"},ms=function(li,Ai,Hi){En[li]&&s(En[li],function(vn){vn.call(ut,Ai,Hi,ki)})},cs=function(li){var Ai=void 0;if(ms("beforeSanitizeElements",li,null),ws(li)||r(li.nodeName,/[\u0080-\uFFFF]/))return Yi(li),!0;var Hi=v(li.nodeName);if(ms("uponSanitizeElement",li,{tagName:Hi,allowedTags:Vn}),!ds(li.firstElementChild)&&(!ds(li.content)||!ds(li.content.firstElementChild))&&b(/<[/\w]/g,li.innerHTML)&&b(/<[/\w]/g,li.textContent)||Hi==="select"&&b(/