>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}},{key:"digest",value:function(){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()),f(this._h0)+f(this._h1)+f(this._h2)+f(this._h3)+f(this._h4)}},{key:"_wrapUp",value:function(){this._buff[this._buffLen++]=128,d(this._buff,this._buffLen),this._buffLen>56&&(this._step(),d(this._buff));var e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}},{key:"_step",value:function(){for(var t=e._bigBlock32,n=this._buffDV,i=0;i<64;i+=4)t.setUint32(i,n.getUint32(i,!1),!1);for(var r=64;r<320;r+=4)t.setUint32(r,c(t.getUint32(r-12,!1)^t.getUint32(r-32,!1)^t.getUint32(r-56,!1)^t.getUint32(r-64,!1),1),!1);for(var o,a,s,l=this._h0,u=this._h1,d=this._h2,h=this._h3,f=this._h4,p=0;p<80;p++)p<20?(o=u&d|~u&h,a=1518500249):p<40?(o=u^d^h,a=1859775393):p<60?(o=u&d|u&h|d&h,a=2400959708):(o=u^d^h,a=3395469782),s=c(l,5)+o+f+a+t.getUint32(4*p,!1)&4294967295,f=h,h=d,d=c(u,30),u=l,l=s;this._h0=this._h0+l&4294967295,this._h1=this._h1+u&4294967295,this._h2=this._h2+d&4294967295,this._h3=this._h3+h&4294967295,this._h4=this._h4+f&4294967295}}]),e}();p._bigBlock32=new DataView(new ArrayBuffer(320))},61066:function(e,t,n){"use strict";n.d(t,{CP:function(){return u},Fr:function(){return c},W5:function(){return l},d9:function(){return h},oR:function(){return f},v1:function(){return p}});var i=n(15671),r=n(43144),o=n(14173),a=n(56148),s=n(32377),l=function(){function e(){var t,n,r,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,i.Z)(this,e),this.value=a,"string"!==typeof this.value)throw(0,o.b1)("value");"boolean"===typeof s?(this.isTrusted=s,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=null!==(t=s.isTrusted)&&void 0!==t?t:void 0,this.supportThemeIcons=null!==(n=s.supportThemeIcons)&&void 0!==n&&n,this.supportHtml=null!==(r=s.supportHtml)&&void 0!==r&&r)}return(0,r.Z)(e,[{key:"appendText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.value+=d(this.supportThemeIcons?(0,a.Qo)(e):e).replace(/([ \t]+)/g,(function(e,t){return" ".repeat(t.length)})).replace(/\>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}},{key:"appendMarkdown",value:function(e){return this.value+=e,this}},{key:"appendCodeblock",value:function(e,t){return this.value+="\n```",this.value+=e,this.value+="\n",this.value+=t,this.value+="\n```\n",this}},{key:"appendLink",value:function(e,t,n){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),n&&(this.value+=' "'.concat(this._escape(this._escape(n,'"'),")"),'"')),this.value+=")",this}},{key:"_escape",value:function(e,t){var n=new RegExp((0,s.ec)(t),"g");return e.replace(n,(function(t,n){return"\\"!==e.charAt(n-1)?"\\".concat(t):t}))}}]),e}();function u(e){return c(e)?!e.value:!Array.isArray(e)||e.every(u)}function c(e){return e instanceof l||!(!e||"object"!==typeof e)&&("string"===typeof e.value&&("boolean"===typeof e.isTrusted||void 0===e.isTrusted)&&("boolean"===typeof e.supportThemeIcons||void 0===e.supportThemeIcons))}function d(e){return e.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}function h(e){return e.replace(/"/g,""")}function f(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):e}function p(e){var t=[],n=e.split("|").map((function(e){return e.trim()}));e=n[0];var i=n[1];if(i){var r=/height=(\d+)/.exec(i),o=/width=(\d+)/.exec(i),a=r?r[1]:"",s=o?o[1]:"",l=isFinite(parseInt(s)),u=isFinite(parseInt(a));l&&t.push('width="'.concat(s,'"')),u&&t.push('height="'.concat(a,'"'))}return{href:e,dimensions:t}}},56148:function(e,t,n){"use strict";n.d(t,{Gt:function(){return m},Ho:function(){return v},Qo:function(){return d},f$:function(){return f},x$:function(){return g}});var i=n(37762),r=n(2801),o=n(73160),a=n(32377),s="$(",l=new RegExp("\\$\\(".concat(r.dT.iconNameExpression,"(?:").concat(r.dT.iconModifierExpression,")?\\)"),"g"),u=new RegExp(r.dT.iconNameCharacter),c=new RegExp("(\\\\)?".concat(l.source),"g");function d(e){return e.replace(c,(function(e,t){return t?e:"\\".concat(e)}))}var h=new RegExp("\\\\".concat(l.source),"g");function f(e){return e.replace(h,(function(e){return"\\".concat(e)}))}var p=new RegExp("(\\s)?(\\\\)?".concat(l.source,"(\\s)?"),"g");function g(e){return-1===e.indexOf(s)?e:e.replace(p,(function(e,t,n,i){return n?e:t||i||""}))}function v(e){var t=e.indexOf(s);return-1===t?{text:e}:function(e,t){var n=[],r="";function o(e){if(e){r+=e;var t,o=(0,i.Z)(e);try{for(o.s();!(t=o.n()).done;){t.value;n.push(h)}}catch(a){o.e(a)}finally{o.f()}}}var a,l,c=-1,d="",h=0,f=t,p=e.length;o(e.substr(0,t));for(;f2&&void 0!==arguments[2]&&arguments[2],r=t.text,s=t.iconOffsets;if(!s||0===s.length)return(0,o.Oh)(e,r,n);var l=(0,a.j3)(r," "),u=r.length-l.length,c=(0,o.Oh)(e,l,n);if(c){var d,h=(0,i.Z)(c);try{for(h.s();!(d=h.n()).done;){var f=d.value,p=s[f.start+u]+u;f.start+=p,f.end+=p}}catch(g){h.e(g)}finally{h.f()}}return c}},59767:function(e,t,n){"use strict";n.d(t,{R:function(){return o},a:function(){return a}});var i=n(15671),r=n(43144),o=function(){function e(t){(0,i.Z)(this,e),this._prefix=t,this._lastId=0}return(0,r.Z)(e,[{key:"nextId",value:function(){return this._prefix+ ++this._lastId}}]),e}(),a=new o("id#")},94016:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var i,r=n(4942),o=n(37762),a=n(74165);!function(e){var t=(0,a.Z)().mark(c),n=(0,a.Z)().mark(d),i=(0,a.Z)().mark(h),s=(0,a.Z)().mark(f),l=(0,a.Z)().mark(p);e.is=function(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]};var u=Object.freeze([]);function c(e){return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:case"end":return t.stop()}}),t)}function d(e,t){var i,r,s;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:i=(0,o.Z)(e),n.prev=1,i.s();case 3:if((r=i.n()).done){n.next=10;break}if(s=r.value,!t(s)){n.next=8;break}return n.next=8,s;case 8:n.next=3;break;case 10:n.next=15;break;case 12:n.prev=12,n.t0=n.catch(1),i.e(n.t0);case 15:return n.prev=15,i.f(),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[1,12,15,18]])}function h(e,t){var n,r,s,l;return(0,a.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:n=0,r=(0,o.Z)(e),i.prev=2,r.s();case 4:if((s=r.n()).done){i.next=10;break}return l=s.value,i.next=8,t(l,n++);case 8:i.next=4;break;case 10:i.next=15;break;case 12:i.prev=12,i.t0=i.catch(2),r.e(i.t0);case 15:return i.prev=15,r.f(),i.finish(15);case 18:case"end":return i.stop()}}),i,null,[[2,12,15,18]])}function f(){var e,t,n,i,r,l,u,c,d,h=arguments;return(0,a.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:for(e=h.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,i=[];if(0===n)return[i,t];for(var o=t[Symbol.iterator](),a=0;a2&&void 0!==arguments[2]?arguments[2]:e.length;return(0,a.Z)().mark((function i(){return(0,a.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);case 2:if(!(t2&&void 0!==arguments[2]?arguments[2]:function(e,t){return e===t},i=e[Symbol.iterator](),r=t[Symbol.iterator]();;){var o=i.next(),a=r.next();if(o.done!==a.done)return!1;if(o.done)return!0;if(!n(o.value,a.value))return!1}}}(i||(i={}))},16321:function(e,t,n){"use strict";n.d(t,{H_:function(){return d},Vd:function(){return v},gx:function(){return b},kL:function(){return i}});for(var i,r=n(29439),o=n(15671),a=n(43144),s=function(){function e(){(0,o.Z)(this,e),this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return(0,a.Z)(e,[{key:"define",value:function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}},{key:"keyCodeToStr",value:function(e){return this._keyCodeToStr[e]}},{key:"strToKeyCode",value:function(e){return this._strToKeyCode[e.toLowerCase()]||0}}]),e}(),l=new s,u=new s,c=new s,d=new Array(230),h={},f=[],p=Object.create(null),g=Object.create(null),v=[],m=[],y=0;y<=193;y++)v[y]=-1;for(var _=0;_<=127;_++)m[_]=-1;function b(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){for(var e="",t=[],n=[],i=0,o=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]];i=93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return l.keyCodeToStr(e)}}(i||(i={}))},51828:function(e,t,n){"use strict";n.d(t,{X4:function(){return l},jC:function(){return u},xo:function(){return s}});var i=n(15671),r=n(43144),o=n(27722),a=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;(0,i.Z)(this,e),this.modifierLabels=[null],this.modifierLabels[2]=t,this.modifierLabels[1]=n,this.modifierLabels[3]=r}return(0,r.Z)(e,[{key:"toLabel",value:function(e,t,n){if(0===t.length)return null;for(var i=[],r=0,o=t.length;r>>0,i=(4294901760&e)>>>16;return new u(0!==i?[s(n,t),s(i,t)]:[s(n,t)])}function s(e,t){var n=!!(2048&e),i=!!(256&e);return new l(2===t?i:n,!!(1024&e),!!(512&e),2===t?n:i,255&e)}var l=function(){function e(t,n,r,o,a){(0,i.Z)(this,e),this.ctrlKey=t,this.shiftKey=n,this.altKey=r,this.metaKey=o,this.keyCode=a}return(0,r.Z)(e,[{key:"equals",value:function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}},{key:"isModifierKey",value:function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}},{key:"toChord",value:function(){return new u([this])}},{key:"isDuplicateModifierCase",value:function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}]),e}(),u=(0,r.Z)((function e(t){if((0,i.Z)(this,e),0===t.length)throw(0,o.b1)("parts");this.parts=t})),c=(0,r.Z)((function e(t,n,r,o,a,s){(0,i.Z)(this,e),this.ctrlKey=t,this.shiftKey=n,this.altKey=r,this.metaKey=o,this.keyLabel=a,this.keyAriaLabel=s})),d=(0,r.Z)((function e(){(0,i.Z)(this,e)}))},56922:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var i=n(15671),r=n(43144),o=function(){function e(t){(0,i.Z)(this,e),this.executor=t,this._didRun=!1}return(0,r.Z)(e,[{key:"hasValue",value:function(){return this._didRun}},{key:"getValue",value:function(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}},{key:"rawValue",get:function(){return this._value}}]),e}()},11860:function(e,t,n){"use strict";n.d(t,{B9:function(){return _},F8:function(){return b},JT:function(){return w},Jz:function(){return N},L6:function(){return x},OF:function(){return k},SL:function(){return C},Wf:function(){return y},XK:function(){return S},dk:function(){return v},dt:function(){return L}});var i=n(60136),r=n(27277),o=n(28664),a=n(37762),s=n(15671),l=n(43144),u=n(11541),c=n(94016),d=null;function h(e){return null===d||void 0===d||d.trackDisposable(e),e}function f(e){null===d||void 0===d||d.markAsDisposed(e)}function p(e,t){null===d||void 0===d||d.setParent(e,t)}function g(e,t){if(d){var n,i=(0,a.Z)(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;d.setParent(r,t)}}catch(o){i.e(o)}finally{i.f()}}}function v(e){return null===d||void 0===d||d.markAsSingleton(e),e}var m=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e){var i;return(0,s.Z)(this,n),(i=t.call(this,"Encountered errors while disposing of store. Errors: [".concat(e.join(", "),"]"))).errors=e,i}return(0,l.Z)(n)}((0,o.Z)(Error));function y(e){return"function"===typeof e.dispose&&0===e.dispose.length}function _(e){if(c.$.is(e)){var t,n=[],i=(0,a.Z)(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;if(r)try{r.dispose()}catch(o){n.push(o)}}}catch(s){i.e(s)}finally{i.f()}if(1===n.length)throw n[0];if(n.length>1)throw new m(n);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function b(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0])||arguments[0];(0,f.Z)(this,e),this._caseSensitive=t}return(0,p.Z)(e,[{key:"reset",value:function(e){return this._value=e,this._from=0,this._to=0,this.next()}},{key:"hasNext",value:function(){return this._to0&&void 0!==arguments[0])||arguments[0],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,f.Z)(this,e),this._splitOnBackslash=t,this._caseSensitive=n}return(0,p.Z)(e,[{key:"reset",value:function(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(var t=e.length-1;t>=0;t--,this._valueLen--){var n=this._value.charCodeAt(t);if(!(47===n||this._splitOnBackslash&&92===n))break}return this.next()}},{key:"hasNext",value:function(){return this._to0)n.left||(n.left=new b,n.left.segment=i.value()),r.push([-1,n]),n=n.left;else if(o<0)n.right||(n.right=new b,n.right.segment=i.value()),r.push([1,n]),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new b,n.mid.segment=i.value()),r.push([0,n]),n=n.mid}}var a=n.value;n.value=t,n.key=e;for(var s=r.length-1;s>=0;s--){var l=r[s][1];l.updateHeight();var u=l.balanceFactor();if(u<-1||u>1){var c=r[s][0],d=r[s+1][0];if(1===c&&1===d)r[s][1]=l.rotateLeft();else if(-1===c&&-1===d)r[s][1]=l.rotateRight();else if(1===c&&-1===d)l.right=r[s+1][1]=r[s+1][1].rotateRight(),r[s][1]=l.rotateLeft();else{if(-1!==c||1!==d)throw new Error;l.left=r[s+1][1]=r[s+1][1].rotateLeft(),r[s][1]=l.rotateRight()}if(s>0)switch(r[s-1][0]){case-1:r[s-1][1].left=r[s][1];break;case 1:r[s-1][1].right=r[s][1];break;case 0:r[s-1][1].mid=r[s][1]}else this._root=r[0][1]}}return a}},{key:"get",value:function(e){var t;return null===(t=this._getNode(e))||void 0===t?void 0:t.value}},{key:"_getNode",value:function(e){for(var t=this._iter.reset(e),n=this._root;n;){var i=t.cmp(n.segment);if(i>0)n=n.left;else if(i<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n}},{key:"has",value:function(e){var t=this._getNode(e);return!(void 0===(null===t||void 0===t?void 0:t.value)&&void 0===(null===t||void 0===t?void 0:t.mid))}},{key:"delete",value:function(e){return this._delete(e,!1)}},{key:"deleteSuperstr",value:function(e){return this._delete(e,!0)}},{key:"_delete",value:function(e,t){for(var n,i=this._iter.reset(e),r=[],o=this._root;o;){var a=i.cmp(o.segment);if(a>0)r.push([-1,o]),o=o.left;else if(a<0)r.push([1,o]),o=o.right;else{if(!i.hasNext())break;i.next(),r.push([0,o]),o=o.mid}}if(o){if(t?(o.left=void 0,o.mid=void 0,o.right=void 0,o.height=1):(o.key=void 0,o.value=void 0),!o.mid&&!o.value)if(o.left&&o.right){var s=this._min(o.right),l=s.key,u=s.value,c=s.segment;this._delete(s.key,!1),o.key=l,o.value=u,o.segment=c}else{var d=null!==(n=o.left)&&void 0!==n?n:o.right;if(r.length>0){var f=(0,h.Z)(r[r.length-1],2),p=f[0],g=f[1];switch(p){case-1:g.left=d;break;case 0:g.mid=d;break;case 1:g.right=d}}else this._root=d}for(var v=r.length-1;v>=0;v--){var m=r[v][1];m.updateHeight();var y=m.balanceFactor();if(y>1?(m.right.balanceFactor()>=0||(m.right=m.right.rotateRight()),r[v][1]=m.rotateLeft()):y<-1&&(m.left.balanceFactor()<=0||(m.left=m.left.rotateLeft()),r[v][1]=m.rotateRight()),v>0)switch(r[v-1][0]){case-1:r[v-1][1].left=r[v][1];break;case 1:r[v-1][1].right=r[v][1];break;case 0:r[v-1][1].mid=r[v][1]}else this._root=r[0][1]}}}},{key:"_min",value:function(e){for(;e.left;)e=e.left;return e}},{key:"findSubstr",value:function(e){for(var t=this._iter.reset(e),n=this._root,i=void 0;n;){var r=t.cmp(n.segment);if(r>0)n=n.left;else if(r<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i}},{key:"findSuperstr",value:function(e){for(var t=this._iter.reset(e),n=this._root;n;){var i=t.cmp(n.segment);if(i>0)n=n.left;else if(i<0)n=n.right;else{if(!t.hasNext())return n.mid?this._entries(n.mid):void 0;t.next(),n=n.mid}}}},{key:"forEach",value:function(e){var t,n=(0,d.Z)(this);try{for(n.s();!(t=n.n()).done;){var i=(0,h.Z)(t.value,2),r=i[0];e(i[1],r)}}catch(o){n.e(o)}finally{n.f()}}},{key:e,value:(0,c.Z)().mark((function e(){return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._entries(this._root),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"_entries",value:function(e){var t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}},{key:"_dfsEntries",value:function(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}],[{key:"forUris",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!1};return new t(new _(e,n))}},{key:"forStrings",value:function(){return new t(new v)}},{key:"forConfigKeys",value:function(){return new t(new m)}}]),t}(Symbol.iterator),C=(0,p.Z)((function e(t,n){(0,f.Z)(this,e),this.uri=t,this.value=n})),w=function(e){function t(e,n){(0,f.Z)(this,t),this[i]="ResourceMap",e instanceof t?(this.map=new Map(e.map),this.toKey=null!==n&&void 0!==n?n:t.defaultToKey):(this.map=new Map,this.toKey=null!==e&&void 0!==e?e:t.defaultToKey)}return(0,p.Z)(t,[{key:"set",value:function(e,t){return this.map.set(this.toKey(e),new C(e,t)),this}},{key:"get",value:function(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}},{key:"has",value:function(e){return this.map.has(this.toKey(e))}},{key:"size",get:function(){return this.map.size}},{key:"clear",value:function(){this.map.clear()}},{key:"delete",value:function(e){return this.map.delete(this.toKey(e))}},{key:"forEach",value:function(e,t){"undefined"!==typeof t&&(e=e.bind(t));var n,i=(0,d.Z)(this.map);try{for(i.s();!(n=i.n()).done;){var r=(0,h.Z)(n.value,2),o=(r[0],r[1]);e(o.value,o.uri,this)}}catch(a){i.e(a)}finally{i.f()}}},{key:"values",value:(0,c.Z)().mark((function e(){var t,n,i;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,d.Z)(this.map.values()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,i.value;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"keys",value:(0,c.Z)().mark((function e(){var t,n,i;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,d.Z)(this.map.values()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,i.uri;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"entries",value:(0,c.Z)().mark((function e(){var t,n,i;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,d.Z)(this.map.values()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,[i.uri,i.value];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:e,value:(0,c.Z)().mark((function e(){var t,n,i,r;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,d.Z)(this.map),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=(0,h.Z)(n.value,2),r=i[1],e.next=7,[r.uri,r.value];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))}]),t}((i=Symbol.toStringTag,Symbol.iterator));w.defaultToKey=function(e){return e.toString()};var S=function(e){function t(){(0,f.Z)(this,t),this[r]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}return(0,p.Z)(t,[{key:"clear",value:function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}},{key:"isEmpty",value:function(){return!this._head&&!this._tail}},{key:"size",get:function(){return this._size}},{key:"first",get:function(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}},{key:"last",get:function(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}},{key:"has",value:function(e){return this._map.has(e)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(i);break;case 1:this.addItemFirst(i)}this._map.set(e,i),this._size++}return this}},{key:"delete",value:function(e){return!!this.remove(e)}},{key:"remove",value:function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}},{key:"shift",value:function(){if(this._head||this._tail){if(!this._head||!this._tail)throw new Error("Invalid list");var e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}}},{key:"forEach",value:function(e,t){for(var n=this._state,i=this._head;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}},{key:"keys",value:function(){var e,t=this,n=this._state,i=this._head,r=(e={},(0,u.Z)(e,Symbol.iterator,(function(){return r})),(0,u.Z)(e,"next",(function(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){var e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}})),e);return r}},{key:"values",value:function(){var e,t=this,n=this._state,i=this._head,r=(e={},(0,u.Z)(e,Symbol.iterator,(function(){return r})),(0,u.Z)(e,"next",(function(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){var e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}})),e);return r}},{key:"entries",value:function(){var e,t=this,n=this._state,i=this._head,r=(e={},(0,u.Z)(e,Symbol.iterator,(function(){return r})),(0,u.Z)(e,"next",(function(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){var e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}})),e);return r}},{key:e,value:function(){return this.entries()}},{key:"trimOld",value:function(e){if(!(e>=this.size))if(0!==e){for(var t=this._head,n=this.size;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}else this.clear()}},{key:"addItemFirst",value:function(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}},{key:"addItemLast",value:function(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}},{key:"removeItem",value:function(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{var t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}},{key:"touch",value:function(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;var n=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(n.previous=i,i.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;var r=e.next,o=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=o,o.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}},{key:"toJSON",value:function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),e}},{key:"fromJSON",value:function(e){this.clear();var t,n=(0,d.Z)(e);try{for(n.s();!(t=n.n()).done;){var i=(0,h.Z)(t.value,2),r=i[0],o=i[1];this.set(r,o)}}catch(a){n.e(a)}finally{n.f()}}}]),t}((r=Symbol.toStringTag,Symbol.iterator)),x=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return(0,f.Z)(this,n),(i=t.call(this))._limit=e,i._ratio=Math.min(Math.max(0,r),1),i}return(0,p.Z)(n,[{key:"limit",get:function(){return this._limit},set:function(e){this._limit=e,this.checkTrim()}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(0,o.Z)((0,a.Z)(n.prototype),"get",this).call(this,e,t)}},{key:"peek",value:function(e){return(0,o.Z)((0,a.Z)(n.prototype),"get",this).call(this,e,0)}},{key:"set",value:function(e,t){return(0,o.Z)((0,a.Z)(n.prototype),"set",this).call(this,e,t,2),this.checkTrim(),this}},{key:"checkTrim",value:function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}]),n}(S)},18042:function(e,t,n){"use strict";n.d(t,{Q:function(){return o}});var i=n(82175),r=n(72112);function o(e){var t=JSON.parse(e);return t=a(t)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e||t>200)return e;if("object"===typeof e){switch(e.$mid){case 1:return r.o.revive(e);case 2:return new RegExp(e.source,e.flags);case 14:return new Date(e.source)}if(e instanceof i.KN||e instanceof Uint8Array)return e;if(Array.isArray(e))for(var n=0;n0;){var n=t.shift();for(var i in Object.freeze(n),n)if(s.call(n,i)){var o=n[i];"object"!==typeof o||Object.isFrozen(o)||(0,r.fU)(o)||t.push(o)}}return e}var s=Object.prototype.hasOwnProperty;function l(e,t){return u(e,t,new Set)}function u(e,t,n){if((0,r.Jp)(e))return e;var o=t(e);if("undefined"!==typeof o)return o;if((0,r.kJ)(e)){var a,l=[],c=(0,i.Z)(e);try{for(c.s();!(a=c.n()).done;){var d=a.value;l.push(u(d,t,n))}}catch(p){c.e(p)}finally{c.f()}return l}if((0,r.Kn)(e)){if(n.has(e))throw new Error("Cannot clone recursive data-structure");n.add(e);var h={};for(var f in e)s.call(e,f)&&(h[f]=u(e[f],t,n));return n.delete(e),h}return e}function c(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,r.Kn)(e)?((0,r.Kn)(t)&&Object.keys(t).forEach((function(i){i in e?n&&((0,r.Kn)(e[i])&&(0,r.Kn)(t[i])?c(e[i],t[i],n):e[i]=t[i]):e[i]=t[i]})),e):t}function d(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n=65&&e<=90||e>=97&&e<=122}function C(e,t,n,i){for(var r="",o=0,a=-1,s=0,l=0,u=0;u<=e.length;++u){if(u2){var c=r.lastIndexOf(n);-1===c?(r="",o=0):o=(r=r.slice(0,c)).length-1-r.lastIndexOf(n),a=u,s=0;continue}if(0!==r.length){r="",o=0,a=u,s=0;continue}}t&&(r+=r.length>0?"".concat(n,".."):"..",o=2)}else r.length>0?r+="".concat(n).concat(e.slice(a+1,u)):r=e.slice(a+1,u),o=u-a-1;a=u,s=0}else l===f&&-1!==s?++s:s=-1}return r}function w(e,t){if(null===t||"object"!==typeof t)throw new m("pathObject","Object",t);var n=t.dir||t.root,i=t.base||"".concat(t.name||"").concat(t.ext||"");return n?n===t.root?"".concat(n).concat(i):"".concat(n).concat(e).concat(i):i}var S={resolve:function(){for(var e="",t="",n=!1,i=arguments.length-1;i>=-1;i--){var r=void 0;if(i>=0){if(y(r=i<0||arguments.length<=i?void 0:arguments[i],"path"),0===r.length)continue}else 0===e.length?r=d():(void 0===(r={NODE_ENV:"production",PUBLIC_URL:"/api-documentation-frontend",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}["=".concat(e)]||d())||r.slice(0,2).toLowerCase()!==e.toLowerCase()&&r.charCodeAt(2)===g)&&(r="".concat(e,"\\"));var o=r.length,a=0,s="",l=!1,u=r.charCodeAt(0);if(1===o)_(u)&&(a=1,l=!0);else if(_(u))if(l=!0,_(r.charCodeAt(1))){for(var c=2,h=c;c2&&_(r.charCodeAt(2))&&(l=!0,a=3));if(s.length>0)if(e.length>0){if(s.toLowerCase()!==e.toLowerCase())continue}else e=s;if(n){if(e.length>0)break}else if(t="".concat(r.slice(a),"\\").concat(t),n=l,l&&e.length>0)break}return t=C(t,!n,"\\",_),n?"".concat(e,"\\").concat(t):"".concat(e).concat(t)||"."},normalize:function(e){y(e,"path");var t=e.length;if(0===t)return".";var n,i=0,r=!1,o=e.charCodeAt(0);if(1===t)return b(o)?"\\":e;if(_(o))if(r=!0,_(e.charCodeAt(1))){for(var a=2,s=a;a2&&_(e.charCodeAt(2))&&(r=!0,i=3));var u=i0&&_(e.charCodeAt(t-1))&&(u+="\\"),void 0===n?r?"\\".concat(u):u:r?"".concat(n,"\\").concat(u):"".concat(n).concat(u)},isAbsolute:function(e){y(e,"path");var t=e.length;if(0===t)return!1;var n=e.charCodeAt(0);return _(n)||t>2&&k(n)&&e.charCodeAt(1)===v&&_(e.charCodeAt(2))},join:function(){if(0===arguments.length)return".";for(var e,t,n=0;n0&&(void 0===e?e=t=i:e+="\\".concat(i))}if(void 0===e)return".";var r=!0,o=0;if("string"===typeof t&&_(t.charCodeAt(0))){++o;var a=t.length;a>1&&_(t.charCodeAt(1))&&(++o,a>2&&(_(t.charCodeAt(2))?++o:r=!1))}if(r){for(;o=2&&(e="\\".concat(e.slice(o)))}return S.normalize(e)},relative:function(e,t){if(y(e,"from"),y(t,"to"),e===t)return"";var n=S.resolve(e),i=S.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";for(var r=0;rr&&e.charCodeAt(o-1)===g;)o--;for(var a=o-r,s=0;ss&&t.charCodeAt(l-1)===g;)l--;for(var u=l-s,c=ac){if(t.charCodeAt(s+h)===g)return i.slice(s+h+1);if(2===h)return i.slice(s+h)}a>c&&(e.charCodeAt(r+h)===g?d=h:2===h&&(d=3)),-1===d&&(d=0)}var p="";for(h=r+d+1;h<=o;++h)h!==o&&e.charCodeAt(h)!==g||(p+=0===p.length?"..":"\\..");return s+=d,p.length>0?"".concat(p).concat(i.slice(s,l)):(i.charCodeAt(s)===g&&++s,i.slice(s,l))},toNamespacedPath:function(e){if("string"!==typeof e)return e;if(0===e.length)return"";var t=S.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===g){if(t.charCodeAt(1)===g){var n=t.charCodeAt(2);if(63!==n&&n!==f)return"\\\\?\\UNC\\".concat(t.slice(2))}}else if(k(t.charCodeAt(0))&&t.charCodeAt(1)===v&&t.charCodeAt(2)===g)return"\\\\?\\".concat(t);return e},dirname:function(e){y(e,"path");var t=e.length;if(0===t)return".";var n=-1,i=0,r=e.charCodeAt(0);if(1===t)return _(r)?e:".";if(_(r)){if(n=i=1,_(e.charCodeAt(1))){for(var o=2,a=o;o2&&_(e.charCodeAt(2))?3:2);for(var s=-1,l=!0,u=t-1;u>=i;--u)if(_(e.charCodeAt(u))){if(!l){s=u;break}}else l=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename:function(e,t){void 0!==t&&y(t,"ext"),y(e,"path");var n,i=0,r=-1,o=!0;if(e.length>=2&&k(e.charCodeAt(0))&&e.charCodeAt(1)===v&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";var a=t.length-1,s=-1;for(n=e.length-1;n>=i;--n){var l=e.charCodeAt(n);if(_(l)){if(!o){i=n+1;break}}else-1===s&&(o=!1,s=n+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(r=n):(a=-1,r=s))}return i===r?r=s:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(_(e.charCodeAt(n))){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){y(e,"path");var t=0,n=-1,i=0,r=-1,o=!0,a=0;e.length>=2&&e.charCodeAt(1)===v&&k(e.charCodeAt(0))&&(t=i=2);for(var s=e.length-1;s>=t;--s){var l=e.charCodeAt(s);if(_(l)){if(!o){i=s+1;break}}else-1===r&&(o=!1,r=s+1),l===f?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return-1===n||-1===r||0===a||1===a&&n===r-1&&n===i+1?"":e.slice(n,r)},format:w.bind(null,"\\"),parse:function(e){y(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n=e.length,i=0,r=e.charCodeAt(0);if(1===n)return _(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(_(r)){if(i=1,_(e.charCodeAt(1))){for(var o=2,a=o;o0&&(t.root=e.slice(0,i));for(var s=-1,l=i,u=-1,c=!0,d=e.length-1,h=0;d>=i;--d)if(_(r=e.charCodeAt(d))){if(!c){l=d+1;break}}else-1===u&&(c=!1,u=d+1),r===f?-1===s?s=d:1!==h&&(h=1):-1!==s&&(h=-1);return-1!==u&&(-1===s||0===h||1===h&&s===u-1&&s===l+1?t.base=t.name=e.slice(l,u):(t.name=e.slice(l,s),t.base=e.slice(l,u),t.ext=e.slice(s,u))),t.dir=l>0&&l!==i?e.slice(0,l-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},x={resolve:function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var i=n>=0?n<0||arguments.length<=n?void 0:arguments[n]:d();y(i,"path"),0!==i.length&&(e="".concat(i,"/").concat(e),t=i.charCodeAt(0)===p)}return e=C(e,!t,"/",b),t?"/".concat(e):e.length>0?e:"."},normalize:function(e){if(y(e,"path"),0===e.length)return".";var t=e.charCodeAt(0)===p,n=e.charCodeAt(e.length-1)===p;return 0===(e=C(e,!t,"/",b)).length?t?"/":n?"./":".":(n&&(e+="/"),t?"/".concat(e):e)},isAbsolute:function(e){return y(e,"path"),e.length>0&&e.charCodeAt(0)===p},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=n:e+="/".concat(n))}return void 0===e?".":x.normalize(e)},relative:function(e,t){if(y(e,"from"),y(t,"to"),e===t)return"";if((e=x.resolve(e))===(t=x.resolve(t)))return"";for(var n=e.length,i=n-1,r=t.length-1,o=io){if(t.charCodeAt(1+s)===p)return t.slice(1+s+1);if(0===s)return t.slice(1+s)}else i>o&&(e.charCodeAt(1+s)===p?a=s:0===s&&(a=0));var u="";for(s=1+a+1;s<=n;++s)s!==n&&e.charCodeAt(s)!==p||(u+=0===u.length?"..":"/..");return"".concat(u).concat(t.slice(1+a))},toNamespacedPath:function(e){return e},dirname:function(e){if(y(e,"path"),0===e.length)return".";for(var t=e.charCodeAt(0)===p,n=-1,i=!0,r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===p){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename:function(e,t){void 0!==t&&y(t,"ext"),y(e,"path");var n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";var a=t.length-1,s=-1;for(n=e.length-1;n>=0;--n){var l=e.charCodeAt(n);if(l===p){if(!o){i=n+1;break}}else-1===s&&(o=!1,s=n+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(r=n):(a=-1,r=s))}return i===r?r=s:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===p){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){y(e,"path");for(var t=-1,n=0,i=-1,r=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(s!==p)-1===i&&(r=!1,i=a+1),s===f?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=a+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:w.bind(null,"/"),parse:function(e){y(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0)===p;i?(t.root="/",n=1):n=0;for(var r=-1,o=0,a=-1,s=!0,l=e.length-1,u=0;l>=n;--l){var c=e.charCodeAt(l);if(c!==p)-1===a&&(s=!1,a=l+1),c===f?-1===r?r=l:1!==u&&(u=1):-1!==r&&(u=-1);else if(!s){o=l+1;break}}if(-1!==a){var d=0===o&&i?1:o;-1===r||0===u||1===u&&r===a-1&&r===o+1?t.base=t.name=e.slice(d,a):(t.name=e.slice(d,r),t.base=e.slice(d,a),t.ext=e.slice(r,a))}return o>0?t.dir=e.slice(0,o-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};x.win32=S.win32=S,x.posix=S.posix=x;var L="win32"===h?S.normalize:x.normalize,N="win32"===h?S.resolve:x.resolve,D="win32"===h?S.relative:x.relative,E="win32"===h?S.dirname:x.dirname,I="win32"===h?S.basename:x.basename,T="win32"===h?S.extname:x.extname,O="win32"===h?S.sep:x.sep},73616:function(e,t,n){"use strict";n.d(t,{$L:function(){return x},ED:function(){return k},G6:function(){return F},IJ:function(){return w},OS:function(){return O},dK:function(){return E},dz:function(){return C},fn:function(){return T},gn:function(){return N},i7:function(){return R},li:function(){return p},n2:function(){return L},r:function(){return M},tY:function(){return S},un:function(){return B},vU:function(){return Z}});var i,r=n(27722),o="en",a=!1,s=!1,l=!1,u=!1,c=!1,d=!1,h=o,f=void 0,p="object"===typeof self?self:"object"===typeof n.g?n.g:{},g=void 0;"undefined"!==typeof p.vscode&&"undefined"!==typeof p.vscode.process?g=p.vscode.process:"undefined"!==typeof process&&(g=process);var v="string"===typeof(null===(i=null===g||void 0===g?void 0:g.versions)||void 0===i?void 0:i.electron),m=v&&"renderer"===(null===g||void 0===g?void 0:g.type);if("object"!==typeof navigator||m)if("object"===typeof g){a="win32"===g.platform,s="darwin"===g.platform,(l="linux"===g.platform)&&!!g.env.SNAP&&!!g.env.SNAP_REVISION,v,!!g.env.CI||!!g.env.BUILD_ARTIFACTSTAGINGDIRECTORY,o,h=o;var y=g.env.VSCODE_NLS_CONFIG;if(y)try{var _=JSON.parse(y),b=_.availableLanguages["*"];_.locale,h=b||o,_._translationsConfigFile}catch(W){}u=!0}else console.error("Unable to resolve platform.");else a=(f=navigator.userAgent).indexOf("Windows")>=0,s=f.indexOf("Macintosh")>=0,d=(f.indexOf("Macintosh")>=0||f.indexOf("iPad")>=0||f.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,l=f.indexOf("Linux")>=0,c=!0,h=r.aj(r.NC({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"))||o;var k=a,C=s,w=l,S=u,x=c,L=c&&"function"===typeof p.importScripts,N=d,D=f,E=h,I="function"===typeof p.postMessage&&!p.importScripts,T=function(){if(I){var e=[];p.addEventListener("message",(function(t){if(t.data&&t.data.vscodeScheduleAsyncWork)for(var n=0,i=e.length;n=0),Z=!!(D&&D.indexOf("Firefox")>=0),F=!!(!R&&D&&D.indexOf("Safari")>=0),B=!!(D&&D.indexOf("Edg/")>=0);D&&D.indexOf("Android")},163:function(e,t,n){"use strict";var i;n.d(t,{e:function(){return i}}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};var n=Math.max(e.start,t.start),i=Math.min(e.end,t.end);return i-n<=0?{start:0,end:0}:{start:n,end:i}}function n(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=n,e.intersects=function(e,i){return!n(t(e,i))},e.relativeComplement=function(e,t){var i=[],r={start:e.start,end:Math.min(t.start,e.end)},o={start:Math.max(t.end,e.start),end:e.end};return n(r)||i.push(r),n(o)||i.push(o),i}}(i||(i={}))},41175:function(e,t,n){"use strict";n.d(t,{AH:function(){return C},DZ:function(){return _},EZ:function(){return y},Hx:function(){return m},SF:function(){return g},Vb:function(){return f},Vo:function(){return k},XX:function(){return b},Xy:function(){return v},i3:function(){return S},lX:function(){return w},z_:function(){return h}});var i=n(29439),r=n(15671),o=n(43144),a=n(54649),s=n(84855),l=n(52090),u=n(73616),c=n(32377),d=n(72112);function h(e){return(0,d.q)(e,!0)}var f,p=function(){function e(t){(0,r.Z)(this,e),this._ignorePathCasing=t}return(0,o.Z)(e,[{key:"compare",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e===t?0:(0,c.qu)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}},{key:"isEqual",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}},{key:"getComparisonKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}},{key:"isEqualOrParent",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.scheme===t.scheme){if(e.scheme===s.lg.file)return a.KM(h(e),h(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(x(e.authority,t.authority))return a.KM(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}},{key:"joinPath",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:l.ir;if(e.scheme===s.lg.file){var n=h(e);return n.length>a.yj(n).length&&n[n.length-1]===t}var i=e.path;return i.length>1&&47===i.charCodeAt(i.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}},{key:"removeTrailingPathSeparator",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.ir;return L(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}},{key:"addTrailingPathSeparator",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.ir,n=!1;if(e.scheme===s.lg.file){var i=h(e);n=void 0!==i&&i.length===a.yj(i).length&&i[i.length-1]===t}else{t="/";var r=e.path;n=1===r.length&&47===r.charCodeAt(r.length-1)}return n||L(e,t)?e:e.with({path:e.path+"/"})}}]),e}(),g=new p((function(){return!1})),v=(new p((function(e){return e.scheme!==s.lg.file||!u.IJ})),new p((function(e){return!0})),g.isEqual.bind(g)),m=(g.isEqualOrParent.bind(g),g.getComparisonKey.bind(g),g.basenameOrAuthority.bind(g)),y=g.basename.bind(g),_=g.extname.bind(g),b=g.dirname.bind(g),k=g.joinPath.bind(g),C=g.normalizePath.bind(g),w=g.relativePath.bind(g),S=g.resolvePath.bind(g),x=(g.isAbsolutePath.bind(g),g.isEqualAuthority.bind(g)),L=g.hasTrailingPathSeparator.bind(g);g.removeTrailingPathSeparator.bind(g),g.addTrailingPathSeparator.bind(g);!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){var n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((function(e){var t=e.split(":"),r=(0,i.Z)(t,2),o=r[0],a=r[1];o&&a&&n.set(o,a)}));var r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}}(f||(f={}))},57970:function(e,t,n){"use strict";n.d(t,{Rm:function(){return h}});var i=n(11752),r=n(61120),o=n(60136),a=n(27277),s=n(15671),l=n(43144),u=n(73097),c=n(11860),d=function(){function e(t,n,i,r,o,a,l){(0,s.Z)(this,e),this._forceIntegerValues=t,this._scrollStateBrand=void 0,this._forceIntegerValues&&(n|=0,i|=0,r|=0,o|=0,a|=0,l|=0),this.rawScrollLeft=r,this.rawScrollTop=l,n<0&&(n=0),r+n>i&&(r=i-n),r<0&&(r=0),o<0&&(o=0),l+o>a&&(l=a-o),l<0&&(l=0),this.width=n,this.scrollWidth=i,this.scrollLeft=r,this.height=o,this.scrollHeight=a,this.scrollTop=l}return(0,l.Z)(e,[{key:"equals",value:function(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}},{key:"withScrollDimensions",value:function(t,n){return new e(this._forceIntegerValues,"undefined"!==typeof t.width?t.width:this.width,"undefined"!==typeof t.scrollWidth?t.scrollWidth:this.scrollWidth,n?this.rawScrollLeft:this.scrollLeft,"undefined"!==typeof t.height?t.height:this.height,"undefined"!==typeof t.scrollHeight?t.scrollHeight:this.scrollHeight,n?this.rawScrollTop:this.scrollTop)}},{key:"withScrollPosition",value:function(t){return new e(this._forceIntegerValues,this.width,this.scrollWidth,"undefined"!==typeof t.scrollLeft?t.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,"undefined"!==typeof t.scrollTop?t.scrollTop:this.rawScrollTop)}},{key:"createScrollEvent",value:function(e,t){var n=this.width!==e.width,i=this.scrollWidth!==e.scrollWidth,r=this.scrollLeft!==e.scrollLeft,o=this.height!==e.height,a=this.scrollHeight!==e.scrollHeight,s=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:n,scrollWidthChanged:i,scrollLeftChanged:r,heightChanged:o,scrollHeightChanged:a,scrollTopChanged:s}}}]),e}(),h=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,s.Z)(this,n),(i=t.call(this))._scrollableBrand=void 0,i._onScroll=i._register(new u.Q5),i.onScroll=i._onScroll.event,i._smoothScrollDuration=e.smoothScrollDuration,i._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,i._state=new d(e.forceIntegerValues,0,0,0,0,0,0),i._smoothScrolling=null,i}return(0,l.Z)(n,[{key:"dispose",value:function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),(0,i.Z)((0,r.Z)(n.prototype),"dispose",this).call(this)}},{key:"setSmoothScrollDuration",value:function(e){this._smoothScrollDuration=e}},{key:"validateScrollPosition",value:function(e){return this._state.withScrollPosition(e)}},{key:"getScrollDimensions",value:function(){return this._state}},{key:"setScrollDimensions",value:function(e,t){var n,i=this._state.withScrollDimensions(e,t);this._setState(i,Boolean(this._smoothScrolling)),null===(n=this._smoothScrolling)||void 0===n||n.acceptScrollDimensions(this._state)}},{key:"getFutureScrollPosition",value:function(){return this._smoothScrolling?this._smoothScrolling.to:this._state}},{key:"getCurrentScrollPosition",value:function(){return this._state}},{key:"setScrollPositionNow",value:function(e){var t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}},{key:"setScrollPositionSmooth",value:function(e,t){var n=this;if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:"undefined"===typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"===typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};var i,r=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===r.scrollLeft&&this._smoothScrolling.to.scrollTop===r.scrollTop)return;i=t?new g(this._smoothScrolling.from,r,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,r,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=i}else{var o=this._state.withScrollPosition(e);this._smoothScrolling=g.start(this._state,o,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((function(){n._smoothScrolling&&(n._smoothScrolling.animationFrameDisposable=null,n._performSmoothScrolling())}))}},{key:"_performSmoothScrolling",value:function(){var e=this;if(this._smoothScrolling){var t=this._smoothScrolling.tick(),n=this._state.withScrollPosition(t);if(this._setState(n,!0),this._smoothScrolling)return t.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((function(){e._smoothScrolling&&(e._smoothScrolling.animationFrameDisposable=null,e._performSmoothScrolling())})))}}},{key:"_setState",value:function(e,t){var n=this._state;n.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(n,t)))}}]),n}(c.JT),f=(0,l.Z)((function e(t,n,i){(0,s.Z)(this,e),this.scrollLeft=t,this.scrollTop=n,this.isDone=i}));function p(e,t){var n=t-e;return function(t){return e+n*(1-function(e){return Math.pow(e,3)}(1-t))}}var g=function(){function e(t,n,i,r){(0,s.Z)(this,e),this.from=t,this.to=n,this.duration=r,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}return(0,l.Z)(e,[{key:"_initAnimations",value:function(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}},{key:"_initAnimation",value:function(e,t,n){var i,r,o,a,s;return Math.abs(e-t)>2.5*n?(e0&&void 0!==arguments[0])||arguments[0];return new e(t)}}]),e}()},32377:function(e,t,n){"use strict";n.d(t,{$i:function(){return $},B4:function(){return ue},C8:function(){return ee},GF:function(){return b},HO:function(){return U},IO:function(){return k},J_:function(){return K},K7:function(){return J},Kw:function(){return ie},LC:function(){return S},Mh:function(){return R},P1:function(){return Z},PJ:function(){return re},Qe:function(){return Y},R1:function(){return _},T5:function(){return T},TT:function(){return D},Ut:function(){return G},V8:function(){return x},W1:function(){return j},WU:function(){return h},YK:function(){return B},YU:function(){return f},ZG:function(){return F},ZH:function(){return V},ZK:function(){return ce},ab:function(){return X},c1:function(){return te},df:function(){return A},ec:function(){return p},fy:function(){return g},j3:function(){return v},j_:function(){return I},m5:function(){return c},mK:function(){return O},mr:function(){return C},oH:function(){return se},oL:function(){return m},ok:function(){return M},ow:function(){return L},qq:function(){return P},qu:function(){return N},rL:function(){return W},uS:function(){return ne},un:function(){return y},uq:function(){return w},vH:function(){return z},vU:function(){return de},zY:function(){return E}});var i,r=n(29439),o=n(37762),a=n(15671),s=n(43144),l=n(15887),u=n(56922);function c(e){return!e||"string"!==typeof e||0===e.trim().length}var d=/{(\d+)}/g;function h(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=n.length?e:n[i]}))}function f(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function p(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",n=v(e,t);return m(n,t)}function v(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;for(var i=0;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function m(e,t){if(!e||!t)return e;var n=t.length,i=e.length;if(0===n||0===i)return e;for(var r=i,o=-1;-1!==(o=e.lastIndexOf(t,r-1))&&o+n===r;){if(0===o)return"";r=o}return e.substring(0,r)}function y(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function _(e){return e.replace(/\*/g,"")}function b(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)throw new Error("Cannot create regex from empty string");t||(e=p(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function k(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)}function C(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function w(e){return e.split(/\r\n|\r|\n/)}function S(e){for(var t=0,n=e.length;t1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,i=t;i1&&void 0!==arguments[1]?arguments[1]:e.length-1,n=t;n>=0;n--){var i=e.charCodeAt(n);if(32!==i&&9!==i)return n}return-1}function N(e,t){return et?1:0}function D(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t.length;ns)return 1}var l=i-n,u=o-r;return lu?1:0}function E(e,t){return I(e,t,0,e.length,0,t.length)}function I(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t.length;n=128||s>=128)return D(e.toLowerCase(),t.toLowerCase(),n,i,r,o);O(a)&&(a-=32),O(s)&&(s-=32);var l=a-s;if(0!==l)return l}}var u=i-n,c=o-r;return uc?1:0}function T(e){return e>=48&&e<=57}function O(e){return e>=97&&e<=122}function A(e){return e>=65&&e<=90}function P(e,t){return e.length===t.length&&0===I(e,t)}function M(e,t){var n=t.length;return!(t.length>e.length)&&0===I(e,t,0,n)}function R(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n1&&void 0!==arguments[1]?arguments[1]:0;(0,a.Z)(this,e),this._str=t,this._len=t.length,this._offset=n}return(0,s.Z)(e,[{key:"offset",get:function(){return this._offset}},{key:"setOffset",value:function(e){this._offset=e}},{key:"prevCodePoint",value:function(){var e=function(e,t){var n=e.charCodeAt(t-1);if(B(n)&&t>1){var i=e.charCodeAt(t-2);if(F(i))return W(i,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}},{key:"nextCodePoint",value:function(){var e=V(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}},{key:"eol",value:function(){return this._offset>=this._len}}]),e}(),j=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,a.Z)(this,e),this._iterator=new H(t,n)}return(0,s.Z)(e,[{key:"offset",get:function(){return this._iterator.offset}},{key:"nextGraphemeLength",value:function(){for(var e=ae.getInstance(),t=this._iterator,n=t.offset,i=e.getGraphemeBreakType(t.nextCodePoint());!t.eol();){var r=t.offset,o=e.getGraphemeBreakType(t.nextCodePoint());if(oe(i,o)){t.setOffset(r);break}i=o}return t.offset-n}},{key:"prevGraphemeLength",value:function(){for(var e=ae.getInstance(),t=this._iterator,n=t.offset,i=e.getGraphemeBreakType(t.prevCodePoint());t.offset>0;){var r=t.offset,o=e.getGraphemeBreakType(t.prevCodePoint());if(oe(o,i)){t.setOffset(r);break}i=o}return n-t.offset}},{key:"eol",value:function(){return this._iterator.eol()}}]),e}();function z(e,t){return new j(e,t).nextGraphemeLength()}function U(e,t){return new j(e,t).prevGraphemeLength()}function K(e,t){t>0&&B(e.charCodeAt(t))&&t--;var n=t+z(e,t);return[n-U(e,n),n]}var q=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function G(e){return q.test(e)}var Q=/^[\t\n\r\x20-\x7E]*$/;function $(e){return Q.test(e)}var Y=/[\u2028\u2029]/;function X(e){return Y.test(e)}function J(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function ee(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}var te=String.fromCharCode(65279);function ne(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function ie(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function re(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function oe(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}var ae=function(){function e(){(0,a.Z)(this,e),this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}return(0,s.Z)(e,[{key:"getGraphemeBreakType",value:function(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;for(var t=this._data,n=t.length/3,i=1;i<=n;)if(et[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}],[{key:"getInstance",value:function(){return e._INSTANCE||(e._INSTANCE=new e),e._INSTANCE}}]),e}();function se(e,t){if(0===e)return 0;var n=function(e,t){var n=new H(t,e),i=n.prevCodePoint();for(;le(i)||65039===i||8419===i;){if(0===n.offset)return;i=n.prevCodePoint()}if(!ee(i))return;var r=n.offset;if(r>0){8205===n.prevCodePoint()&&(r=n.offset)}return r}(e,t);if(void 0!==n)return n;var i=new H(t,e);return i.prevCodePoint(),i.offset}function le(e){return 127995<=e&&e<=127999}ae._INSTANCE=null;var ue="\xa0",ce=function(){function e(t){(0,a.Z)(this,e),this.confusableDictionary=t}return(0,s.Z)(e,[{key:"isAmbiguous",value:function(e){return this.confusableDictionary.has(e)}},{key:"getPrimaryConfusable",value:function(e){return this.confusableDictionary.get(e)}},{key:"getConfusableCodePoints",value:function(){return new Set(this.confusableDictionary.keys())}}],[{key:"getInstance",value:function(t){return e.cache.get(Array.from(t))}},{key:"getLocales",value:function(){return e._locales.getValue()}}]),e}();i=ce,ce.ambiguousCharacterData=new u.o((function(){return JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')})),ce.cache=new l.t((function(e){function t(e){for(var t=new Map,n=0;n1&&void 0!==arguments[1]?arguments[1]:"Unreachable";throw new Error(t)}},54540:function(e,t,n){"use strict";function i(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{A:function(){return r},K:function(){return i}})},72112:function(e,t,n){"use strict";n.d(t,{o:function(){return b},q:function(){return L}});var i,r=n(4942),o=n(60136),a=n(27277),s=n(15671),l=n(43144),u=n(52090),c=n(73616),d=/^\w[\w\d+.-]*$/,h=/^\//,f=/^\/\//;function p(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(e.authority,'", path: "').concat(e.path,'", query: "').concat(e.query,'", fragment: "').concat(e.fragment,'"}'));if(e.scheme&&!d.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!h.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(f.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}function g(e,t){return e||t?e:"file"}function v(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==y&&(t=y+t):t=y}return t}var m="",y="/",_=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,b=function(){function e(t,n,i,r,o){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];(0,s.Z)(this,e),"object"===typeof t?(this.scheme=t.scheme||m,this.authority=t.authority||m,this.path=t.path||m,this.query=t.query||m,this.fragment=t.fragment||m):(this.scheme=g(t,a),this.authority=n||m,this.path=v(this.scheme,i||m),this.query=r||m,this.fragment=o||m,p(this,a))}return(0,l.Z)(e,[{key:"fsPath",get:function(){return L(this,!1)}},{key:"with",value:function(e){if(!e)return this;var t=e.scheme,n=e.authority,i=e.path,r=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=m),void 0===n?n=this.authority:null===n&&(n=m),void 0===i?i=this.path:null===i&&(i=m),void 0===r?r=this.query:null===r&&(r=m),void 0===o?o=this.fragment:null===o&&(o=m),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&o===this.fragment?this:new C(t,n,i,r,o)}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return N(this,e)}},{key:"toJSON",value:function(){return this}}],[{key:"isUri",value:function(t){return t instanceof e||!!t&&("string"===typeof t.authority&&"string"===typeof t.fragment&&"string"===typeof t.path&&"string"===typeof t.query&&"string"===typeof t.scheme&&"string"===typeof t.fsPath&&"function"===typeof t.with&&"function"===typeof t.toString)}},{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=_.exec(e);return n?new C(n[2]||m,I(n[4]||m),I(n[5]||m),I(n[7]||m),I(n[9]||m),t):new C(m,m,m,m,m)}},{key:"file",value:function(e){var t=m;if(c.ED&&(e=e.replace(/\\/g,y)),e[0]===y&&e[1]===y){var n=e.indexOf(y,2);-1===n?(t=e.substring(2),e=y):(t=e.substring(2,n),e=e.substring(n)||y)}return new C("file",t,e,m,m)}},{key:"from",value:function(e){var t=new C(e.scheme,e.authority,e.path,e.query,e.fragment);return p(t,!0),t}},{key:"joinPath",value:function(t){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");for(var n,i,r,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s0&&void 0!==arguments[0]&&arguments[0];return e?N(this,!0):(this._formatted||(this._formatted=N(this,!1)),this._formatted)}},{key:"toJSON",value:function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=k),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}]),n}(b),w=(i={},(0,r.Z)(i,58,"%3A"),(0,r.Z)(i,47,"%2F"),(0,r.Z)(i,63,"%3F"),(0,r.Z)(i,35,"%23"),(0,r.Z)(i,91,"%5B"),(0,r.Z)(i,93,"%5D"),(0,r.Z)(i,64,"%40"),(0,r.Z)(i,33,"%21"),(0,r.Z)(i,36,"%24"),(0,r.Z)(i,38,"%26"),(0,r.Z)(i,39,"%27"),(0,r.Z)(i,40,"%28"),(0,r.Z)(i,41,"%29"),(0,r.Z)(i,42,"%2A"),(0,r.Z)(i,43,"%2B"),(0,r.Z)(i,44,"%2C"),(0,r.Z)(i,59,"%3B"),(0,r.Z)(i,61,"%3D"),(0,r.Z)(i,32,"%20"),i);function S(e,t){for(var n=void 0,i=-1,r=0;r=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));var a=w[o];void 0!==a?(-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),n+=a):-1===i&&(i=r)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function x(e){for(var t=void 0,n=0;n1&&"file"===e.scheme?"//".concat(e.authority).concat(e.path):47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,c.ED&&(n=n.replace(/\//g,"\\")),n}function N(e,t){var n=t?x:S,i="",r=e.scheme,o=e.authority,a=e.path,s=e.query,l=e.fragment;if(r&&(i+=r,i+=":"),(o||"file"===r)&&(i+=y,i+=y),o){var u=o.indexOf("@");if(-1!==u){var c=o.substr(0,u);o=o.substr(u+1),-1===(u=c.indexOf(":"))?i+=n(c,!1):(i+=n(c.substr(0,u),!1),i+=":",i+=n(c.substr(u+1),!1)),i+="@"}-1===(u=(o=o.toLowerCase()).indexOf(":"))?i+=n(o,!1):(i+=n(o.substr(0,u),!1),i+=o.substr(u))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){var d=a.charCodeAt(1);d>=65&&d<=90&&(a="/".concat(String.fromCharCode(d+32),":").concat(a.substr(3)))}else if(a.length>=2&&58===a.charCodeAt(1)){var h=a.charCodeAt(0);h>=65&&h<=90&&(a="".concat(String.fromCharCode(h+32),":").concat(a.substr(2)))}i+=n(a,!0)}return s&&(i+="?",i+=n(s,!1)),l&&(i+="#",i+=t?l:S(l,!1)),i}function D(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+D(e.substr(3)):e}}var E=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function I(e){return e.match(E)?e.replace(E,(function(e){return D(e)})):e}},21671:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});var i=function(){if("object"===typeof crypto&&"function"===typeof crypto.randomUUID)return crypto.randomUUID.bind(crypto);var e;e="object"===typeof crypto&&"function"===typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(var t=0;t.001){D=!1;break}}var A=!0;return D&&k.width!==E&&(A=!1),k.width>b.width&&(A=!1),new m.pR({pixelRatio:c.PixelRatio.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:D,typicalHalfwidthCharacterWidth:i.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:A,spaceWidth:o.width,middotWidth:C.width,wsmiddotWidth:w.width,maxDigitWidth:N},!0)}}]),n}(h.JT),_=function(){function e(){(0,r.Z)(this,e),this._keys=Object.create(null),this._values=Object.create(null)}return(0,o.Z)(e,[{key:"has",value:function(e){var t=e.getId();return!!this._values[t]}},{key:"get",value:function(e){var t=e.getId();return this._values[t]}},{key:"put",value:function(e,t){var n=e.getId();this._keys[n]=e,this._values[n]=t}},{key:"remove",value:function(e){var t=e.getId();delete this._keys[t],delete this._values[t]}},{key:"getValues",value:function(){var e=this;return Object.keys(this._keys).map((function(t){return e._values[t]}))}}]),e}(),b=new y},75735:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var i=n(15671),r=n(43144),o=n(73097),a=new(function(){function e(){(0,i.Z)(this,e),this._tabFocus=!1,this._onDidChangeTabFocus=new o.Q5,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}return(0,r.Z)(e,[{key:"getTabFocusMode",value:function(){return this._tabFocus}},{key:"setTabFocusMode",value:function(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))}}]),e}())},12379:function(e,t,n){"use strict";n.d(t,{Fz:function(){return S},Nl:function(){return C},RA:function(){return k},Tj:function(){return L},pd:function(){return i}});var i,r=n(29439),o=n(11752),a=n(61120),s=n(60136),l=n(27277),u=n(15671),c=n(43144),d=n(62865),h=n(81531),f=n(33813),p=n(60022),g=n(73097),v=n(11860),m=n(62684),y=n(32377),_=n(9235),b=n(23145);!function(e){e.Tap="-monaco-textarea-synthetic-tap"}(i||(i={}));var k={forceCopyWithSyntaxHighlighting:!1},C=function(){function e(){(0,u.Z)(this,e),this._lastState=null}return(0,c.Z)(e,[{key:"set",value:function(e,t){this._lastState={lastCopiedValue:e,data:t}}},{key:"get",value:function(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}]),e}();C.INSTANCE=new C;var w=function(){function e(){(0,u.Z)(this,e),this._lastTypeTextLength=0}return(0,c.Z)(e,[{key:"handleCompositionUpdate",value:function(e){var t={text:e=e||"",replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}]),e}(),S=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i,o,a){var s;(0,u.Z)(this,n),(s=t.call(this))._host=e,s._textArea=i,s._OS=o,s._browser=a,s._onFocus=s._register(new g.Q5),s.onFocus=s._onFocus.event,s._onBlur=s._register(new g.Q5),s.onBlur=s._onBlur.event,s._onKeyDown=s._register(new g.Q5),s.onKeyDown=s._onKeyDown.event,s._onKeyUp=s._register(new g.Q5),s.onKeyUp=s._onKeyUp.event,s._onCut=s._register(new g.Q5),s.onCut=s._onCut.event,s._onPaste=s._register(new g.Q5),s.onPaste=s._onPaste.event,s._onType=s._register(new g.Q5),s.onType=s._onType.event,s._onCompositionStart=s._register(new g.Q5),s.onCompositionStart=s._onCompositionStart.event,s._onCompositionUpdate=s._register(new g.Q5),s.onCompositionUpdate=s._onCompositionUpdate.event,s._onCompositionEnd=s._register(new g.Q5),s.onCompositionEnd=s._onCompositionEnd.event,s._onSelectionChangeRequest=s._register(new g.Q5),s.onSelectionChangeRequest=s._onSelectionChangeRequest.event,s._asyncTriggerCut=s._register(new p.pY((function(){return s._onCut.fire()}),0)),s._asyncFocusGainWriteScreenReaderContent=s._register(new p.pY((function(){return s.writeScreenReaderContent("asyncFocusGain")}),0)),s._textAreaState=_.un.EMPTY,s._selectionChangeListener=null,s.writeScreenReaderContent("ctor"),s._hasFocus=!1,s._currentComposition=null;var l=null;return s._register(s._textArea.onKeyDown((function(e){var t=new f.y(e);(109===t.keyCode||s._currentComposition&&1===t.keyCode)&&t.stopPropagation(),t.equals(9)&&t.preventDefault(),l=t,s._onKeyDown.fire(t)}))),s._register(s._textArea.onKeyUp((function(e){var t=new f.y(e);s._onKeyUp.fire(t)}))),s._register(s._textArea.onCompositionStart((function(e){_.al&&console.log("[compositionstart]",e);var t=new w;if(s._currentComposition)s._currentComposition=t;else{if(s._currentComposition=t,2===s._OS&&l&&l.equals(109)&&s._textAreaState.selectionStart===s._textAreaState.selectionEnd&&s._textAreaState.selectionStart>0&&s._textAreaState.value.substr(s._textAreaState.selectionStart-1,1)===e.data&&("ArrowRight"===l.code||"ArrowLeft"===l.code))return _.al&&console.log("[compositionstart] Handling long press case on macOS + arrow key",e),t.handleCompositionUpdate("x"),void s._onCompositionStart.fire({data:e.data});s._browser.isAndroid,s._onCompositionStart.fire({data:e.data})}}))),s._register(s._textArea.onCompositionUpdate((function(e){_.al&&console.log("[compositionupdate]",e);var t=s._currentComposition;if(t){if(s._browser.isAndroid){var n=_.un.readFromTextArea(s._textArea),i=_.un.deduceAndroidCompositionInput(s._textAreaState,n);return s._textAreaState=n,s._onType.fire(i),void s._onCompositionUpdate.fire(e)}var r=t.handleCompositionUpdate(e.data);s._textAreaState=_.un.readFromTextArea(s._textArea),s._onType.fire(r),s._onCompositionUpdate.fire(e)}}))),s._register(s._textArea.onCompositionEnd((function(e){_.al&&console.log("[compositionend]",e);var t=s._currentComposition;if(t){if(s._currentComposition=null,s._browser.isAndroid){var n=_.un.readFromTextArea(s._textArea),i=_.un.deduceAndroidCompositionInput(s._textAreaState,n);return s._textAreaState=n,s._onType.fire(i),void s._onCompositionEnd.fire()}var r=t.handleCompositionUpdate(e.data);s._textAreaState=_.un.readFromTextArea(s._textArea),s._onType.fire(r),s._onCompositionEnd.fire()}}))),s._register(s._textArea.onInput((function(e){if(_.al&&console.log("[input]",e),s._textArea.setIgnoreSelectionChangeTime("received input event"),!s._currentComposition){var t=_.un.readFromTextArea(s._textArea),n=_.un.deduceInput(s._textAreaState,t,2===s._OS);0===n.replacePrevCharCnt&&1===n.text.length&&y.ZG(n.text.charCodeAt(0))||(s._textAreaState=t,""===n.text&&0===n.replacePrevCharCnt&&0===n.replaceNextCharCnt&&0===n.positionDelta||s._onType.fire(n))}}))),s._register(s._textArea.onCut((function(e){s._textArea.setIgnoreSelectionChangeTime("received cut event"),s._ensureClipboardGetsEditorSelection(e),s._asyncTriggerCut.schedule()}))),s._register(s._textArea.onCopy((function(e){s._ensureClipboardGetsEditorSelection(e)}))),s._register(s._textArea.onPaste((function(e){if(s._textArea.setIgnoreSelectionChangeTime("received paste event"),e.preventDefault(),e.clipboardData){var t=x.getTextData(e.clipboardData),n=(0,r.Z)(t,2),i=n[0],o=n[1];i&&(o=o||C.INSTANCE.get(i),s._onPaste.fire({text:i,metadata:o}))}}))),s._register(s._textArea.onFocus((function(){var e=s._hasFocus;s._setHasFocus(!0),s._browser.isSafari&&!e&&s._hasFocus&&s._asyncFocusGainWriteScreenReaderContent.schedule()}))),s._register(s._textArea.onBlur((function(){s._currentComposition&&(s._currentComposition=null,s.writeScreenReaderContent("blurWithoutCompositionEnd"),s._onCompositionEnd.fire()),s._setHasFocus(!1)}))),s._register(s._textArea.onSyntheticTap((function(){s._browser.isAndroid&&s._currentComposition&&(s._currentComposition=null,s.writeScreenReaderContent("tapWithoutCompositionEnd"),s._onCompositionEnd.fire())}))),s}return(0,c.Z)(n,[{key:"_installSelectionChangeListener",value:function(){var e=this,t=0;return h.addDisposableListener(document,"selectionchange",(function(n){if(e._hasFocus&&!e._currentComposition&&e._browser.isChrome){var i=Date.now(),r=i-t;if(t=i,!(r<5)){var o=i-e._textArea.getIgnoreSelectionChangeTime();if(e._textArea.resetSelectionChangeTime(),!(o<100)&&e._textAreaState.selectionStartPosition&&e._textAreaState.selectionEndPosition){var a=e._textArea.getValue();if(e._textAreaState.value===a){var s=e._textArea.getSelectionStart(),l=e._textArea.getSelectionEnd();if(e._textAreaState.selectionStart!==s||e._textAreaState.selectionEnd!==l){var u=e._textAreaState.deduceEditorPosition(s),c=e._host.deduceModelPosition(u[0],u[1],u[2]),d=e._textAreaState.deduceEditorPosition(l),h=e._host.deduceModelPosition(d[0],d[1],d[2]),f=new b.Y(c.lineNumber,c.column,h.lineNumber,h.column);e._onSelectionChangeRequest.fire(f)}}}}}}))}},{key:"dispose",value:function(){(0,o.Z)((0,a.Z)(n.prototype),"dispose",this).call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}},{key:"focusTextArea",value:function(){this._setHasFocus(!0),this.refreshFocusState()}},{key:"isFocused",value:function(){return this._hasFocus}},{key:"refreshFocusState",value:function(){this._setHasFocus(this._textArea.hasFocus())}},{key:"_setHasFocus",value:function(e){this._hasFocus!==e&&(this._hasFocus=e,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())}},{key:"_setAndWriteTextAreaState",value:function(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}},{key:"writeScreenReaderContent",value:function(e){this._currentComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))}},{key:"_ensureClipboardGetsEditorSelection",value:function(e){var t=this._host.getDataToCopy(),n={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};C.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,"\n"):t.text,n),e.preventDefault(),e.clipboardData&&x.setTextData(e.clipboardData,t.text,t.html,n)}}]),n}(v.JT),x=function(){function e(){(0,u.Z)(this,e)}return(0,c.Z)(e,null,[{key:"getTextData",value:function(e){var t=e.getData(m.v.text),n=null,i=e.getData("vscode-editor-data");if("string"===typeof i)try{1!==(n=JSON.parse(i)).version&&(n=null)}catch(r){}return 0===t.length&&null===n&&e.files.length>0?[Array.prototype.slice.call(e.files,0).map((function(e){return e.name})).join("\n"),null]:[t,n]}},{key:"setTextData",value:function(e,t,n,i){e.setData(m.v.text,t),"string"===typeof n&&e.setData("text/html",n),e.setData("vscode-editor-data",JSON.stringify(i))}}]),e}(),L=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e){var r;return(0,u.Z)(this,n),(r=t.call(this))._actual=e,r.onKeyDown=r._register(h.createEventEmitter(r._actual,"keydown")).event,r.onKeyUp=r._register(h.createEventEmitter(r._actual,"keyup")).event,r.onCompositionStart=r._register(h.createEventEmitter(r._actual,"compositionstart")).event,r.onCompositionUpdate=r._register(h.createEventEmitter(r._actual,"compositionupdate")).event,r.onCompositionEnd=r._register(h.createEventEmitter(r._actual,"compositionend")).event,r.onInput=r._register(h.createEventEmitter(r._actual,"input")).event,r.onCut=r._register(h.createEventEmitter(r._actual,"cut")).event,r.onCopy=r._register(h.createEventEmitter(r._actual,"copy")).event,r.onPaste=r._register(h.createEventEmitter(r._actual,"paste")).event,r.onFocus=r._register(h.createEventEmitter(r._actual,"focus")).event,r.onBlur=r._register(h.createEventEmitter(r._actual,"blur")).event,r._onSyntheticTap=r._register(new g.Q5),r.onSyntheticTap=r._onSyntheticTap.event,r._ignoreSelectionChangeTime=0,r._register(h.addDisposableListener(r._actual,i.Tap,(function(){return r._onSyntheticTap.fire()}))),r}return(0,c.Z)(n,[{key:"hasFocus",value:function(){var e=h.getShadowRoot(this._actual);return e?e.activeElement===this._actual:!!h.isInDOM(this._actual)&&document.activeElement===this._actual}},{key:"setIgnoreSelectionChangeTime",value:function(e){this._ignoreSelectionChangeTime=Date.now()}},{key:"getIgnoreSelectionChangeTime",value:function(){return this._ignoreSelectionChangeTime}},{key:"resetSelectionChangeTime",value:function(){this._ignoreSelectionChangeTime=0}},{key:"getValue",value:function(){return this._actual.value}},{key:"setValue",value:function(e,t){var n=this._actual;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)}},{key:"getSelectionStart",value:function(){return"backward"===this._actual.selectionDirection?this._actual.selectionEnd:this._actual.selectionStart}},{key:"getSelectionEnd",value:function(){return"backward"===this._actual.selectionDirection?this._actual.selectionStart:this._actual.selectionEnd}},{key:"setSelectionRange",value:function(e,t,n){var i=this._actual,r=h.getShadowRoot(i),o=(r?r.activeElement:document.activeElement)===i,a=i.selectionStart,s=i.selectionEnd;if(o&&a===t&&s===n)d.isFirefox&&window.parent!==window&&i.focus();else{if(o)return this.setIgnoreSelectionChangeTime("setSelectionRange"),i.setSelectionRange(t,n),void(d.isFirefox&&window.parent!==window&&i.focus());try{var l=h.saveParentsScrollTop(i);this.setIgnoreSelectionChangeTime("setSelectionRange"),i.focus(),i.setSelectionRange(t,n),h.restoreParentsScrollTop(i,l)}catch(u){}}}}]),n}(v.JT)},9235:function(e,t,n){"use strict";n.d(t,{al:function(){return l},ee:function(){return c},un:function(){return u}});var i=n(15671),r=n(43144),o=n(32377),a=n(38622),s=n(80133),l=!1,u=function(){function e(t,n,r,o,a){(0,i.Z)(this,e),this.value=t,this.selectionStart=n,this.selectionEnd=r,this.selectionStartPosition=o,this.selectionEndPosition=a}return(0,r.Z)(e,[{key:"toString",value:function(){return"[ <".concat(this.value,">, selectionStart: ").concat(this.selectionStart,", selectionEnd: ").concat(this.selectionEnd,"]")}},{key:"collapseSelection",value:function(){return new e(this.value,this.value.length,this.value.length,null,null)}},{key:"writeToTextArea",value:function(e,t,n){l&&console.log("writeToTextArea ".concat(e,": ").concat(this.toString())),t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}},{key:"deduceEditorPosition",value:function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){var n=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,n,1)}var i=this.value.substring(this.selectionStart,e);if(-1===i.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,i,1);var r=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,r,-1)}},{key:"_finishDeduceEditorPosition",value:function(e,t,n){for(var i=0,r=-1;-1!==(r=t.indexOf("\n",r+1));)i++;return[e,n*t.length,i]}}],[{key:"readFromTextArea",value:function(t){return new e(t.getValue(),t.getSelectionStart(),t.getSelectionEnd(),null,null)}},{key:"deduceInput",value:function(e,t,n){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};l&&(console.log("------------------------deduceInput"),console.log("PREVIOUS STATE: ".concat(e.toString())),console.log("CURRENT STATE: ".concat(t.toString())));var i=Math.min(o.Mh(e.value,t.value),e.selectionStart,t.selectionStart),r=Math.min(o.P1(e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd),a=e.value.substring(i,e.value.length-r),s=t.value.substring(i,t.value.length-r),u=e.selectionStart-i,c=e.selectionEnd-i,d=t.selectionStart-i,h=t.selectionEnd-i;if(l&&(console.log("AFTER DIFFING PREVIOUS STATE: <".concat(a,">, selectionStart: ").concat(u,", selectionEnd: ").concat(c)),console.log("AFTER DIFFING CURRENT STATE: <".concat(s,">, selectionStart: ").concat(d,", selectionEnd: ").concat(h))),d===h){var f=e.selectionStart-i;return l&&console.log("REMOVE PREVIOUS: ".concat(f," chars")),{text:s,replacePrevCharCnt:f,replaceNextCharCnt:0,positionDelta:0}}return{text:s,replacePrevCharCnt:c-u,replaceNextCharCnt:0,positionDelta:0}}},{key:"deduceAndroidCompositionInput",value:function(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(l&&(console.log("------------------------deduceAndroidCompositionInput"),console.log("PREVIOUS STATE: ".concat(e.toString())),console.log("CURRENT STATE: ".concat(t.toString()))),e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};var n=Math.min(o.Mh(e.value,t.value),e.selectionEnd),i=Math.min(o.P1(e.value,t.value),e.value.length-e.selectionEnd),r=e.value.substring(n,e.value.length-i),a=t.value.substring(n,t.value.length-i),s=e.selectionStart-n,u=e.selectionEnd-n,c=t.selectionStart-n,d=t.selectionEnd-n;return l&&(console.log("AFTER DIFFING PREVIOUS STATE: <".concat(r,">, selectionStart: ").concat(s,", selectionEnd: ").concat(u)),console.log("AFTER DIFFING CURRENT STATE: <".concat(a,">, selectionStart: ").concat(c,", selectionEnd: ").concat(d))),{text:a,replacePrevCharCnt:u,replaceNextCharCnt:r.length-u,positionDelta:d-a.length}}}]),e}();u.EMPTY=new u("",0,0,null,null);var c=function(){function e(){(0,i.Z)(this,e)}return(0,r.Z)(e,null,[{key:"_getPageOfLine",value:function(e,t){return Math.floor((e-1)/t)}},{key:"_getRangeForPage",value:function(e,t){var n=e*t,i=n+1,r=n+t;return new s.e(i,1,r+1,1)}},{key:"fromEditorSelection",value:function(t,n,i,r,o){var l,c=e._getPageOfLine(i.startLineNumber,r),d=e._getRangeForPage(c,r),h=e._getPageOfLine(i.endLineNumber,r),f=e._getRangeForPage(h,r),p=d.intersectRanges(new s.e(1,1,i.startLineNumber,i.startColumn)),g=n.getValueInRange(p,1),v=n.getLineCount(),m=n.getLineMaxColumn(v),y=f.intersectRanges(new s.e(i.endLineNumber,i.endColumn,v,m)),_=n.getValueInRange(y,1);if(c===h||c+1===h)l=n.getValueInRange(i,1);else{var b=d.intersectRanges(i),k=f.intersectRanges(i);l=n.getValueInRange(b,1)+String.fromCharCode(8230)+n.getValueInRange(k,1)}if(o){var C=500;g.length>C&&(g=g.substring(g.length-C,g.length)),_.length>C&&(_=_.substring(0,C)),l.length>1e3&&(l=l.substring(0,C)+String.fromCharCode(8230)+l.substring(l.length-C,l.length))}return new u(g+l+_,g.length,g.length+l.length,new a.L(i.startLineNumber,i.startColumn),new a.L(i.endLineNumber,i.endColumn))}}]),e}()},79240:function(e,t,n){"use strict";n.r(t),n.d(t,{CoreEditingCommands:function(){return E},CoreEditorCommand:function(){return L},CoreNavigationCommands:function(){return N},EditorScroll_:function(){return i},RevealLine_:function(){return r}});var i,r,o=n(29439),a=n(15671),s=n(43144),l=n(60136),u=n(27277),c=n(27722),d=n(62865),h=n(85294),f=n(4801),p=n(62381),g=n(98596),v=n(21577),m=n(38622),y=n(80133),_=function(){function e(){(0,a.Z)(this,e)}return(0,s.Z)(e,null,[{key:"columnSelect",value:function(e,t,n,i,r,o){for(var a=Math.abs(r-n)+1,s=n>r,l=i>o,u=io)continue;if(_i)continue;if(g0&&r--,e.columnSelect(t,n,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,r)}},{key:"columnSelectRight",value:function(e,t,n){for(var i=0,r=Math.min(n.fromViewLineNumber,n.toViewLineNumber),o=Math.max(n.fromViewLineNumber,n.toViewLineNumber),a=r;a<=o;a++){var s=t.getLineMaxColumn(a),l=e.visibleColumnFromColumn(t,new m.L(a,s));i=Math.max(i,l)}var u=n.toViewVisualColumn;return u=0)&&(n.runDOMCommand(),!0)})),t.addImplementation(0,"generic-dom",(function(e,t){var i=e.get(g.$).getActiveCodeEditor();return!!i&&(i.focus(),n._runEditorCommand(e,i,t))}))}return(0,s.Z)(e,[{key:"_runEditorCommand",value:function(e,t,n){var i=this.runEditorCommand(e,t,n);return i||!0}}]),e}();!function(e){var t=function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this,e))._minimalReveal=e.minimalReveal,i._inSelectionMode=e.inSelectionMode,i}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[k.P.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)])&&e.revealPrimaryCursor(t.source,!0,this._minimalReveal)}}]),n}(L);e.MoveTo=(0,p.fK)(new t({id:"_moveTo",minimalReveal:!0,inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=(0,p.fK)(new t({id:"_moveToSelect",minimalReveal:!1,inSelectionMode:!0,precondition:void 0}));var n=function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement();var n=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);e.setCursorStates(t.source,3,n.viewStates.map((function(e){return v.Vi.fromViewState(e)}))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:n.fromLineNumber,fromViewVisualColumn:n.fromVisualColumn,toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),n.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source)}}]),n}(L);e.ColumnSelect=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"columnSelect",precondition:void 0})}return(0,s.Z)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){var r=e.model.validatePosition(i.position),o=e.coordinatesConverter.validateViewPosition(new m.L(i.viewPosition.lineNumber,i.viewPosition.column),r),a=i.doColumnSelect?n.fromViewLineNumber:o.lineNumber,s=i.doColumnSelect?n.fromViewVisualColumn:i.mouseColumn-1;return _.columnSelect(e.cursorConfig,e,a,s,o.lineNumber,i.mouseColumn-1)}}]),n}(n))),e.CursorColumnSelectLeft=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:3599,linux:{primary:0}}})}return(0,s.Z)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){return _.columnSelectLeft(e.cursorConfig,e,n)}}]),n}(n))),e.CursorColumnSelectRight=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:3601,linux:{primary:0}}})}return(0,s.Z)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){return _.columnSelectRight(e.cursorConfig,e,n)}}]),n}(n)));var o=function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this,e))._isPaged=e.isPaged,i}return(0,s.Z)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){return _.columnSelectUp(e.cursorConfig,e,n,this._isPaged)}}]),n}(n);e.CursorColumnSelectUp=(0,p.fK)(new o({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=(0,p.fK)(new o({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:3595,linux:{primary:0}}}));var h=function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this,e))._isPaged=e.isPaged,i}return(0,s.Z)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){return _.columnSelectDown(e.cursorConfig,e,n,this._isPaged)}}]),n}(n);e.CursorColumnSelectDown=(0,p.fK)(new h({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=(0,p.fK)(new h({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:3596,linux:{primary:0}}}));var g=function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"cursorMove",precondition:void 0,description:k.N.description})}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){var n=k.N.parse(t);n&&this._runCursorMove(e,t.source,n)}},{key:"_runCursorMove",value:function(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,n._move(e,e.getCursorStates(),i)),e.revealPrimaryCursor(t,!0)}}],[{key:"_move",value:function(e,t,n){var i=n.select,r=n.value;switch(n.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return k.P.simpleMove(e,t,n.direction,i,r,n.unit);case 11:case 13:case 12:case 14:return k.P.viewportMove(e,t,n.direction,i,r);default:return null}}}]),n}(L);e.CursorMoveImpl=g,e.CursorMove=(0,p.fK)(new g);var b=function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this,e))._staticArgs=e.args,i}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){var n=this._staticArgs;-1===this._staticArgs.value&&(n={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.pageSize||e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,k.P.simpleMove(e,e.getCursorStates(),n.direction,n.select,n.value,n.unit)),e.revealPrimaryCursor(t.source,!0)}}]),n}(L);e.CursorLeft=(0,p.fK)(new b({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=(0,p.fK)(new b({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:1039}})),e.CursorRight=(0,p.fK)(new b({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=(0,p.fK)(new b({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:1041}})),e.CursorUp=(0,p.fK)(new b({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=(0,p.fK)(new b({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=(0,p.fK)(new b({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:11}})),e.CursorPageUpSelect=(0,p.fK)(new b({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:1035}})),e.CursorDown=(0,p.fK)(new b({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=(0,p.fK)(new b({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=(0,p.fK)(new b({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:12}})),e.CursorPageDownSelect=(0,p.fK)(new b({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:1036}})),e.CreateCursor=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"createCursor",precondition:void 0})}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){var n;n=t.wholeLine?k.P.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):k.P.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);var i=e.getCursorStates();if(i.length>1)for(var r=n.modelState?n.modelState.position:null,o=n.viewState?n.viewState.position:null,a=0,s=i.length;aa&&(o=a);var s=new y.e(o,1,o,e.model.getLineMaxColumn(o)),l=0;if(n.at)switch(n.at){case r.RawAtArgument.Top:l=3;break;case r.RawAtArgument.Center:l=1;break;case r.RawAtArgument.Bottom:l=4}var u=e.coordinatesConverter.convertModelRangeToViewRange(s);e.revealRange(t.source,!1,u,l,0)}}]),n}(L))),e.SelectAll=new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,p.Sq)}return(0,s.Z)(n,[{key:"runDOMCommand",value:function(){d.isFirefox&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}},{key:"runEditorCommand",value:function(e,t,n){var i=t._getViewModel();i&&this.runCoreEditorCommand(i,n)}},{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[k.P.selectAll(e,e.getPrimaryCursorState())])}}]),n}(D)),e.SetSelection=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"setSelection",precondition:void 0})}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[v.Vi.fromModelSelection(t.selection)])}}]),n}(L)))}(N||(N={}));var E,I=S.Ao.and(w.u.textInputFocus,w.u.columnSelection);function T(e,t){x.W.registerKeybindingRule({id:e,primary:t,when:I,weight:1})}function O(e){return e.register(),e}T(N.CursorColumnSelectLeft.id,1039),T(N.CursorColumnSelectRight.id,1041),T(N.CursorColumnSelectUp.id,1040),T(N.CursorColumnSelectPageUp.id,1035),T(N.CursorColumnSelectDown.id,1042),T(N.CursorColumnSelectPageDown.id,1036),function(e){var t=function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"runEditorCommand",value:function(e,t,n){var i=t._getViewModel();i&&this.runCoreEditingCommand(t,i,n||{})}}]),n}(p._l);e.CoreEditingCommand=t,e.LineBreakInsert=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"lineBreakInsert",precondition:w.u.writable,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:0,mac:{primary:301}}})}return(0,s.Z)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,C.u6.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection}))))}}]),n}(t))),e.Outdent=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"outdent",precondition:w.u.writable,kbOpts:{weight:0,kbExpr:S.Ao.and(w.u.editorTextFocus,w.u.tabDoesNotMoveFocus),primary:1026}})}return(0,s.Z)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,C.u6.outdent(t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection})))),e.pushUndoStop()}}]),n}(t))),e.Tab=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"tab",precondition:w.u.writable,kbOpts:{weight:0,kbExpr:S.Ao.and(w.u.editorTextFocus,w.u.tabDoesNotMoveFocus),primary:2}})}return(0,s.Z)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,C.u6.tab(t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection})))),e.pushUndoStop()}}]),n}(t))),e.DeleteLeft=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}return(0,s.Z)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){var i=b.A.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection})),t.getCursorAutoClosedCharacters()),r=(0,o.Z)(i,2),a=r[0],s=r[1];a&&e.pushUndoStop(),e.executeCommands(this.id,s),t.setPrevEditOperationType(2)}}]),n}(t))),e.DeleteRight=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}return(0,s.Z)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){var i=b.A.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection}))),r=(0,o.Z)(i,2),a=r[0],s=r[1];a&&e.pushUndoStop(),e.executeCommands(this.id,s),t.setPrevEditOperationType(3)}}]),n}(t))),e.Undo=new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,p.n_)}return(0,s.Z)(n,[{key:"runDOMCommand",value:function(){document.execCommand("undo")}},{key:"runEditorCommand",value:function(e,t,n){if(t.hasModel()&&!0!==t.getOption(83))return t.getModel().undo()}}]),n}(D)),e.Redo=new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,p.kz)}return(0,s.Z)(n,[{key:"runDOMCommand",value:function(){document.execCommand("redo")}},{key:"runEditorCommand",value:function(e,t,n){if(t.hasModel()&&!0!==t.getOption(83))return t.getModel().redo()}}]),n}(D))}(E||(E={}));var A=function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r){var o;return(0,a.Z)(this,n),(o=t.call(this,{id:e,precondition:void 0,description:r}))._handlerId=i,o}return(0,s.Z)(n,[{key:"runCommand",value:function(e,t){var n=e.get(g.$).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t)}}]),n}(p.mY);function P(e,t){O(new A("default:"+e,e)),O(new A(e,e,t))}P("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),P("replacePreviousChar"),P("compositionType"),P("compositionStart"),P("compositionEnd"),P("paste"),P("cut")},78788:function(e,t,n){"use strict";n.d(t,{Z0:function(){return x},dR:function(){return S},Bo:function(){return C}});var i=n(74165),r=n(37762),o=n(94021),a=n(29671),s=n(70456),l=n(62684),u=n(72112),c=n(15671),d=n(43144),h=n(93433),f=n(18042),p=n(83078),g=n(69077),v="CodeEditors",m="CodeFiles";function y(e){var t,n=[];if(e.dataTransfer&&e.dataTransfer.types.length>0){var i=e.dataTransfer.getData(v);if(i)try{n.push.apply(n,(0,h.Z)((0,f.Q)(i)))}catch(N){}else try{var a=e.dataTransfer.getData(o.g.RESOURCES);n.push.apply(n,(0,h.Z)(function(e){var t=[];if(e){var n,i=JSON.parse(e),o=(0,r.Z)(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.indexOf(":")>0){var s=(0,p.xI)(u.o.parse(a)),l=s.selection,c=s.uri;t.push({resource:c,options:{selection:l}})}}}catch(d){o.e(d)}finally{o.f()}}return t}(a)))}catch(N){}if(null===(t=e.dataTransfer)||void 0===t?void 0:t.files)for(var s=0;s2&&void 0!==arguments[2]&&arguments[2];if(t.dataTransfer&&(i||!e.has(l.v.uriList))){var o,a=y(t).filter((function(e){return e.resource})).map((function(e){return e.resource.toString()})),c=(0,r.Z)(null===(n=t.dataTransfer)||void 0===n?void 0:n.items);try{for(c.s();!(o=c.n()).done;){var d=o.value,h=d.getAsFile();h&&a.push(h.path?u.o.file(h.path).toString():h.name)}}catch(v){c.e(v)}finally{c.f()}a.length&&e.replace(l.v.uriList,(0,s.ZO)(x.create(a)))}var f,p=(0,r.Z)(w);try{for(p.s();!(f=p.n()).done;){var g=f.value;e.delete(g)}}catch(v){p.e(v)}finally{p.f()}}var x=Object.freeze({create:function(e){return(0,a.EB)(e.map((function(e){return e.toString()}))).join("\r\n")},parse:function(e){return e.split("\r\n").filter((function(e){return!e.startsWith("#")}))}})},64314:function(e,t,n){"use strict";n.d(t,{CL:function(){return r},Pi:function(){return a},QI:function(){return o}});var i=n(70956);function r(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===i.g.ICodeEditor}function o(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===i.g.IDiffEditor}function a(e){return r(e)?e:o(e)?e.getModifiedEditor():null}},46190:function(e,t,n){"use strict";n.d(t,{AL:function(){return S},N5:function(){return C},Pp:function(){return b},YN:function(){return g},gy:function(){return k},kG:function(){return _},rU:function(){return v},t7:function(){return x},tC:function(){return w}});var i=n(29439),r=n(37762),o=n(60136),a=n(27277),s=n(15671),l=n(43144),u=n(81531),c=n(1082),d=n(2524),h=n(60022),f=n(11860),p=n(32379),g=function(){function e(t,n){(0,s.Z)(this,e),this.x=t,this.y=n,this._pageCoordinatesBrand=void 0}return(0,l.Z)(e,[{key:"toClientCoordinates",value:function(){return new v(this.x-u.StandardWindow.scrollX,this.y-u.StandardWindow.scrollY)}}]),e}(),v=function(){function e(t,n){(0,s.Z)(this,e),this.clientX=t,this.clientY=n,this._clientCoordinatesBrand=void 0}return(0,l.Z)(e,[{key:"toPageCoordinates",value:function(){return new g(this.clientX+u.StandardWindow.scrollX,this.clientY+u.StandardWindow.scrollY)}}]),e}(),m=(0,l.Z)((function e(t,n,i,r){(0,s.Z)(this,e),this.x=t,this.y=n,this.width=i,this.height=r,this._editorPagePositionBrand=void 0})),y=(0,l.Z)((function e(t,n){(0,s.Z)(this,e),this.x=t,this.y=n,this._positionRelativeToEditorBrand=void 0}));function _(e){var t=u.getDomNodePagePosition(e);return new m(t.left,t.top,t.width,t.height)}function b(e,t,n){var i=t.width/e.offsetWidth,r=t.height/e.offsetHeight,o=(n.x-t.x)/i,a=(n.y-t.y)/r;return new y(o,a)}var k=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,r){var o;return(0,s.Z)(this,n),(o=t.call(this,e))._editorMouseEventBrand=void 0,o.isFromPointerCapture=i,o.pos=new g(o.posx,o.posy),o.editorPos=_(r),o.relativePos=b(r,o.editorPos,o.pos),o}return(0,l.Z)(n)}(d.n),C=function(){function e(t){(0,s.Z)(this,e),this._editorViewDomNode=t}return(0,l.Z)(e,[{key:"_create",value:function(e){return new k(e,!1,this._editorViewDomNode)}},{key:"onContextMenu",value:function(e,t){var n=this;return u.addDisposableListener(e,"contextmenu",(function(e){t(n._create(e))}))}},{key:"onMouseUp",value:function(e,t){var n=this;return u.addDisposableListener(e,"mouseup",(function(e){t(n._create(e))}))}},{key:"onMouseDown",value:function(e,t){var n=this;return u.addDisposableListener(e,u.EventType.MOUSE_DOWN,(function(e){t(n._create(e))}))}},{key:"onPointerDown",value:function(e,t){var n=this;return u.addDisposableListener(e,u.EventType.POINTER_DOWN,(function(e){t(n._create(e),e.pointerId)}))}},{key:"onMouseLeave",value:function(e,t){var n=this;return u.addDisposableListener(e,u.EventType.MOUSE_LEAVE,(function(e){t(n._create(e))}))}},{key:"onMouseMove",value:function(e,t){var n=this;return u.addDisposableListener(e,"mousemove",(function(e){return t(n._create(e))}))}}]),e}(),w=function(){function e(t){(0,s.Z)(this,e),this._editorViewDomNode=t}return(0,l.Z)(e,[{key:"_create",value:function(e){return new k(e,!1,this._editorViewDomNode)}},{key:"onPointerUp",value:function(e,t){var n=this;return u.addDisposableListener(e,"pointerup",(function(e){t(n._create(e))}))}},{key:"onPointerDown",value:function(e,t){var n=this;return u.addDisposableListener(e,u.EventType.POINTER_DOWN,(function(e){t(n._create(e),e.pointerId)}))}},{key:"onPointerLeave",value:function(e,t){var n=this;return u.addDisposableListener(e,u.EventType.POINTER_LEAVE,(function(e){t(n._create(e))}))}},{key:"onPointerMove",value:function(e,t){var n=this;return u.addDisposableListener(e,"pointermove",(function(e){return t(n._create(e))}))}}]),e}(),S=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,s.Z)(this,n),(i=t.call(this))._editorViewDomNode=e,i._globalPointerMoveMonitor=i._register(new c.C),i._keydownListener=null,i}return(0,l.Z)(n,[{key:"startMonitoring",value:function(e,t,n,i,r){var o=this;this._keydownListener=u.addStandardDisposableListener(document,"keydown",(function(e){e.toKeybinding().isModifierKey()||o._globalPointerMoveMonitor.stopMonitoring(!0,e.browserEvent)}),!0),this._globalPointerMoveMonitor.startMonitoring(e,t,n,(function(e){i(new k(e,!0,o._editorViewDomNode))}),(function(e){o._keydownListener.dispose(),r(e)}))}},{key:"stopMonitoring",value:function(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}]),n}(f.JT),x=function(){function e(t){var n=this;(0,s.Z)(this,e),this._editor=t,this._instanceId=++e._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new h.pY((function(){return n.garbageCollect()}),1e3)}return(0,l.Z)(e,[{key:"createClassNameRef",value:function(e){var t=this,n=this.getOrCreateRule(e);return n.increaseRefCount(),{className:n.className,dispose:function(){n.decreaseRefCount(),t._garbageCollectionScheduler.schedule()}}}},{key:"getOrCreateRule",value:function(e){var t=this.computeUniqueKey(e),n=this._rules.get(t);if(!n){var i=this._counter++;n=new L(t,"dyn-rule-".concat(this._instanceId,"-").concat(i),u.isInShadowDOM(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,n)}return n}},{key:"computeUniqueKey",value:function(e){return JSON.stringify(e)}},{key:"garbageCollect",value:function(){var e,t=(0,r.Z)(this._rules.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.hasReferences()||(this._rules.delete(n.key),n.dispose())}}catch(i){t.e(i)}finally{t.f()}}}]),e}();x._idPool=0;var L=function(){function e(t,n,i,r){(0,s.Z)(this,e),this.key=t,this.className=n,this.properties=r,this._referenceCount=0,this._styleElement=u.createStyleSheet(i),this._styleElement.textContent=this.getCssText(this.className,this.properties)}return(0,l.Z)(e,[{key:"getCssText",value:function(e,t){var n=".".concat(e," {");for(var i in t){var r=t[i],o=void 0;o="object"===typeof r?"var(".concat((0,p.QO2)(r.id),")"):r;var a=N(i);n+="\n\t".concat(a,": ").concat(o,";")}return n+="\n}"}},{key:"dispose",value:function(){this._styleElement.remove()}},{key:"increaseRefCount",value:function(){this._referenceCount++}},{key:"decreaseRefCount",value:function(){this._referenceCount--}},{key:"hasReferences",value:function(){return this._referenceCount>0}}]),e}();function N(e){return e.replace(/(^[A-Z])/,(function(e){return(0,i.Z)(e,1)[0].toLowerCase()})).replace(/([A-Z])/g,(function(e){var t=(0,i.Z)(e,1)[0];return"-".concat(t.toLowerCase())}))}},62381:function(e,t,n){"use strict";n.d(t,{AJ:function(){return L},QG:function(){return M},Qr:function(){return A},R6:function(){return E},Sq:function(){return V},Uc:function(){return i},_K:function(){return R},_l:function(){return D},fK:function(){return O},jY:function(){return I},kz:function(){return W},mY:function(){return x},n_:function(){return B},rn:function(){return P},sb:function(){return T}});var i,r=n(93433),o=n(60136),a=n(27277),s=n(37762),l=n(15671),u=n(43144),c=n(27722),d=n(72112),h=n(98596),f=n(38622),p=n(29257),g=n(95011),v=n(48996),m=n(11133),y=n(34509),_=n(36888),b=n(5850),k=n(69077),C=n(15323),w=n(85294),S=n(11561),x=function(){function e(t){(0,l.Z)(this,e),this.id=t.id,this.precondition=t.precondition,this._kbOpts=t.kbOpts,this._menuOpts=t.menuOpts,this._description=t.description}return(0,u.Z)(e,[{key:"register",value:function(){var e=this;if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){var t,n=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts],i=(0,s.Z)(n);try{for(i.s();!(t=i.n()).done;){var r=t.value,o=r.kbExpr;this.precondition&&(o=o?y.Ao.and(o,this.precondition):this.precondition);var a={id:this.id,weight:r.weight,args:r.args,when:o,primary:r.primary,secondary:r.secondary,win:r.win,linux:r.linux,mac:r.mac};b.W.registerKeybindingRule(a)}}catch(l){i.e(l)}finally{i.f()}}m.P0.registerCommand({id:this.id,handler:function(t,n){return e.runCommand(t,n)},description:this._description})}},{key:"_registerMenuItem",value:function(e){v.BH.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}]),e}(),L=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,l.Z)(this,n),(e=t.apply(this,arguments))._implementations=[],e}return(0,u.Z)(n,[{key:"addImplementation",value:function(e,t,n){var i=this;return this._implementations.push({priority:e,name:t,implementation:n}),this._implementations.sort((function(e,t){return t.priority-e.priority})),{dispose:function(){for(var e=0;e1?n-1:0),o=1;o=0}))},e.getDiffEditorContributions=function(){return Z.INSTANCE.getDiffEditorContributions()}}(i||(i={}));var Z=function(){function e(){(0,l.Z)(this,e),this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return(0,u.Z)(e,[{key:"registerEditorContribution",value:function(e,t){this.editorContributions.push({id:e,ctor:t})}},{key:"getEditorContributions",value:function(){return this.editorContributions.slice(0)}},{key:"getDiffEditorContributions",value:function(){return this.diffEditorContributions.slice(0)}},{key:"registerEditorAction",value:function(e){e.register(),this.editorActions.push(e)}},{key:"getEditorActions",value:function(){return this.editorActions.slice(0)}},{key:"registerEditorCommand",value:function(e){e.register(),this.editorCommands[e.id]=e}},{key:"getEditorCommand",value:function(e){return this.editorCommands[e]||null}}]),e}();function F(e){return e.register(),e}Z.INSTANCE=new Z,k.B.add("editor.contributions",Z.INSTANCE);var B=F(new L({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:v.eH.MenubarEditMenu,group:"1_do",title:c.NC({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:v.eH.CommandPalette,group:"",title:c.NC("undo","Undo"),order:1}]}));F(new N(B,{id:"default:undo",precondition:void 0}));var W=F(new L({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:v.eH.MenubarEditMenu,group:"1_do",title:c.NC({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:v.eH.CommandPalette,group:"",title:c.NC("redo","Redo"),order:1}]}));F(new N(W,{id:"default:redo",precondition:void 0}));var V=F(new L({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:v.eH.MenubarSelectionMenu,group:"1_basic",title:c.NC({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:v.eH.CommandPalette,group:"",title:c.NC("selectAll","Select All"),order:1}]}))},23:function(e,t,n){"use strict";n.d(t,{Gl:function(){return h},fo:function(){return d},vu:function(){return c}});var i=n(60136),r=n(27277),o=n(15671),a=n(43144),s=n(36888),l=n(72112),u=n(85294),c=(0,s.yh)("IWorkspaceEditService"),d=function(){function e(t){(0,o.Z)(this,e),this.metadata=t}return(0,a.Z)(e,null,[{key:"convert",value:function(e){return e.edits.map((function(e){if(h.is(e))return h.lift(e);if(f.is(e))return f.lift(e);throw new Error("Unsupported edit")}))}}]),e}(),h=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;return(0,o.Z)(this,n),(r=t.call(this,s)).resource=e,r.textEdit=i,r.versionId=a,r}return(0,a.Z)(n,null,[{key:"is",value:function(e){return e instanceof n||(0,u.Kn)(e)&&l.o.isUri(e.resource)&&(0,u.Kn)(e.textEdit)}},{key:"lift",value:function(e){return e instanceof n?e:new n(e.resource,e.textEdit,e.versionId,e.metadata)}}]),n}(d),f=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;return(0,o.Z)(this,n),(r=t.call(this,s)).oldResource=e,r.newResource=i,r.options=a,r}return(0,a.Z)(n,null,[{key:"is",value:function(e){return e instanceof n||(0,u.Kn)(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}},{key:"lift",value:function(e){return e instanceof n?e:new n(e.oldResource,e.newResource,e.options,e.metadata)}}]),n}(d)},98596:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var i=(0,n(36888).yh)("codeEditorService")},31782:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(15671),r=n(43144),o=function(){function e(t,n,r){(0,i.Z)(this,e),this._visiblePosition=t,this._visiblePositionScrollDelta=n,this._cursorPosition=r}return(0,r.Z)(e,[{key:"restore",value:function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}},{key:"restoreRelativeVerticalPositionOfCursor",value:function(e){var t=e.getPosition();if(this._cursorPosition&&t){var n=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+n)}}}],[{key:"capture",value:function(t){var n=null,i=0;if(0!==t.getScrollTop()){var r=t.getVisibleRanges();if(r.length>0){n=r[0].getStartPosition();var o=t.getTopForPosition(n.lineNumber,n.column);i=t.getScrollTop()-o}}return new e(n,i,t.getPosition())}}]),e}()},36492:function(e,t,n){"use strict";n.d(t,{Gm:function(){return zr}});var i=n(29439),r=n(74165),o=n(37762),a=n(97326),s=n(11752),l=n(61120),u=n(60136),c=n(27277),d=n(15671),h=n(43144),f=n(40729),p=n(62381),g=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},v=function(e,t){return function(n,i){t(n,i,e)}},m=function(){function e(t,n){(0,d.Z)(this,e)}return(0,h.Z)(e,[{key:"dispose",value:function(){}}]),e}();m.ID="editor.contrib.markerDecorations",m=g([v(1,f.i)],m),(0,p._K)(m.ID,m);var y=n(27722),_=n(81531),b=n(14173),k=n(73097),C=n(11860),w=n(84855),S=n(62865),x=n(29671),L=n(63656),N=n(73616),D=n(70423),E=n(44471),I=function(){function e(t,n){(0,d.Z)(this,e),this.key=t,this.migrate=n}return(0,h.Z)(e,[{key:"apply",value:function(t){var n=e._read(t,this.key);this.migrate(n,(function(n){return e._read(t,n)}),(function(n,i){return e._write(t,n,i)}))}}],[{key:"_read",value:function(e,t){if("undefined"!==typeof e){var n=t.indexOf(".");if(n>=0){var i=t.substring(0,n);return this._read(e[i],t.substring(n+1))}return e[t]}}},{key:"_write",value:function(e,t,n){var i=t.indexOf(".");if(i>=0){var r=t.substring(0,i);return e[r]=e[r]||{},void this._write(e[r],t.substring(i+1),n)}e[t]=n}}]),e}();function T(e,t){I.items.push(new I(e,t))}function O(e,t){T(e,(function(n,r,a){if("undefined"!==typeof n){var s,l=(0,o.Z)(t);try{for(l.s();!(s=l.n()).done;){var u=(0,i.Z)(s.value,2),c=u[0],d=u[1];if(n===c)return void a(e,d)}}catch(h){l.e(h)}finally{l.f()}}}))}I.items=[],O("wordWrap",[[!0,"on"],[!1,"off"]]),O("lineNumbers",[[!0,"on"],[!1,"off"]]),O("cursorBlinking",[["visible","solid"]]),O("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),O("renderLineHighlight",[[!0,"line"],[!1,"none"]]),O("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),O("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),O("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),O("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),O("autoIndent",[[!1,"advanced"],[!0,"full"]]),O("matchBrackets",[[!0,"always"],[!1,"never"]]),T("autoClosingBrackets",(function(e,t,n){!1===e&&(n("autoClosingBrackets","never"),"undefined"===typeof t("autoClosingQuotes")&&n("autoClosingQuotes","never"),"undefined"===typeof t("autoSurround")&&n("autoSurround","never"))})),T("renderIndentGuides",(function(e,t,n){"undefined"!==typeof e&&(n("renderIndentGuides",void 0),"undefined"===typeof t("guides.indentation")&&n("guides.indentation",!!e))})),T("highlightActiveIndentGuide",(function(e,t,n){"undefined"!==typeof e&&(n("highlightActiveIndentGuide",void 0),"undefined"===typeof t("guides.highlightActiveIndentation")&&n("guides.highlightActiveIndentation",!!e))}));var A={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};T("suggest.filteredTypes",(function(e,t,n){if(e&&"object"===typeof e){for(var i=0,r=Object.entries(A);i=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},W=function(e,t){return function(n,i){t(n,i,e)}},V=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,o){var a;return(0,d.Z)(this,n),(a=t.call(this))._accessibilityService=o,a._onDidChange=a._register(new k.Q5),a.onDidChange=a._onDidChange.event,a._onDidChangeFast=a._register(new k.Q5),a.onDidChangeFast=a._onDidChangeFast.event,a._isDominatedByLongLines=!1,a._viewLineCount=1,a._lineNumbersDigitCount=1,a._reservedHeight=0,a._computeOptionsMemory=new M.LJ,a.isSimpleWidget=e,a._containerObserver=a._register(new D.I(r,i.dimension)),a._rawOptions=K(i),a._validatedOptions=U.validateOptions(a._rawOptions),a.options=a._computeOptions(),a.options.get(10)&&a._containerObserver.startObserving(),a._register(R.C.onDidChangeZoomLevel((function(){return a._recomputeOptions()}))),a._register(P.n.onDidChangeTabFocus((function(){return a._recomputeOptions()}))),a._register(a._containerObserver.onDidChange((function(){return a._recomputeOptions()}))),a._register(E.g.onDidChange((function(){return a._recomputeOptions()}))),a._register(S.PixelRatio.onDidChange((function(){return a._recomputeOptions()}))),a._register(a._accessibilityService.onDidChangeScreenReaderOptimized((function(){return a._recomputeOptions()}))),a}return(0,h.Z)(n,[{key:"_recomputeOptions",value:function(){var e=this._computeOptions(),t=U.checkEquals(this.options,e);null!==t&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}},{key:"_computeOptions",value:function(){var e=this._readEnvConfiguration(),t=Z.E4.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),n=this._readFontInfo(t),i={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:n,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:P.n.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport};return U.computeOptions(this._validatedOptions,i)}},{key:"_readEnvConfiguration",value:function(){return{extraEditorClassName:H(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:S.isWebKit||S.isFirefox,pixelRatio:S.PixelRatio.value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}},{key:"_readFontInfo",value:function(e){return E.g.readFontInfo(e)}},{key:"getRawOptions",value:function(){return this._rawOptions}},{key:"updateOptions",value:function(e){var t=K(e);U.applyUpdate(this._rawOptions,t)&&(this._validatedOptions=U.validateOptions(this._rawOptions),this._recomputeOptions())}},{key:"observeContainer",value:function(e){this._containerObserver.observe(e)}},{key:"setIsDominatedByLongLines",value:function(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}},{key:"setModelLineCount",value:function(e){var t=function(e){var t=0;for(;e;)e=Math.floor(e/10),t++;return t||1}(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}},{key:"setViewLineCount",value:function(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}},{key:"setReservedHeight",value:function(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions())}}]),n}(C.JT);function H(){var e="";return S.isSafari||S.isWebkitWebView||(e+="no-user-select "),S.isSafari&&(e+="no-minimap-shadow ",e+="enable-user-select "),N.dz&&(e+="mac "),e}V=B([W(3,F.F)],V);var j=function(){function e(){(0,d.Z)(this,e),this._values=[]}return(0,h.Z)(e,[{key:"_read",value:function(e){return this._values[e]}},{key:"get",value:function(e){return this._values[e]}},{key:"_write",value:function(e,t){this._values[e]=t}}]),e}(),z=function(){function e(){(0,d.Z)(this,e),this._values=[]}return(0,h.Z)(e,[{key:"_read",value:function(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}},{key:"get",value:function(e){return this._read(e)}},{key:"_write",value:function(e,t){this._values[e]=t}}]),e}(),U=function(){function e(){(0,d.Z)(this,e)}return(0,h.Z)(e,null,[{key:"validateOptions",value:function(e){var t,n=new j,i=(0,o.Z)(M.Bc);try{for(i.s();!(t=i.n()).done;){var r=t.value,a="_never_"===r.name?void 0:e[r.name];n._write(r.id,r.validate(a))}}catch(s){i.e(s)}finally{i.f()}return n}},{key:"computeOptions",value:function(e,t){var n,i=new z,r=(0,o.Z)(M.Bc);try{for(r.s();!(n=r.n()).done;){var a=n.value;i._write(a.id,a.compute(t,i,e._read(a.id)))}}catch(s){r.e(s)}finally{r.f()}return i}},{key:"_deepEquals",value:function(t,n){if("object"!==typeof t||"object"!==typeof n||!t||!n)return t===n;if(Array.isArray(t)||Array.isArray(n))return!(!Array.isArray(t)||!Array.isArray(n))&&x.fS(t,n);if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var i in t)if(!e._deepEquals(t[i],n[i]))return!1;return!0}},{key:"checkEquals",value:function(t,n){var i,r=[],a=!1,s=(0,o.Z)(M.Bc);try{for(s.s();!(i=s.n()).done;){var l=i.value,u=!e._deepEquals(t._read(l.id),n._read(l.id));r[l.id]=u,u&&(a=!0)}}catch(c){s.e(c)}finally{s.f()}return a?new M.Bb(r):null}},{key:"applyUpdate",value:function(e,t){var n,i=!1,r=(0,o.Z)(M.Bc);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(t.hasOwnProperty(a.name)){var s=a.applyUpdate(e[a.name],t[a.name]);e[a.name]=s.newValue,i=i||s.didChange}}}catch(l){r.e(l)}finally{r.f()}return i}}]),e}();function K(e){var t=L.I8(e);return function(e){I.items.forEach((function(t){return t.apply(e)}))}(t),t}var q=n(98596),G=n(23145),Q=n(25652),$=n(81238),Y=n(2524),X=n(60022),J=n(46190),ee=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;return(0,d.Z)(this,n),(e=t.call(this))._shouldRender=!0,e}return(0,h.Z)(n,[{key:"shouldRender",value:function(){return this._shouldRender}},{key:"forceShouldRender",value:function(){this._shouldRender=!0}},{key:"setShouldRender",value:function(){this._shouldRender=!0}},{key:"onDidRender",value:function(){this._shouldRender=!1}},{key:"onCompositionStart",value:function(e){return!1}},{key:"onCompositionEnd",value:function(e){return!1}},{key:"onConfigurationChanged",value:function(e){return!1}},{key:"onCursorStateChanged",value:function(e){return!1}},{key:"onDecorationsChanged",value:function(e){return!1}},{key:"onFlushed",value:function(e){return!1}},{key:"onFocusChanged",value:function(e){return!1}},{key:"onLanguageConfigurationChanged",value:function(e){return!1}},{key:"onLineMappingChanged",value:function(e){return!1}},{key:"onLinesChanged",value:function(e){return!1}},{key:"onLinesDeleted",value:function(e){return!1}},{key:"onLinesInserted",value:function(e){return!1}},{key:"onRevealRangeRequest",value:function(e){return!1}},{key:"onScrollChanged",value:function(e){return!1}},{key:"onThemeChanged",value:function(e){return!1}},{key:"onTokensChanged",value:function(e){return!1}},{key:"onTokensColorsChanged",value:function(e){return!1}},{key:"onZonesChanged",value:function(e){return!1}},{key:"handleEvents",value:function(e){for(var t=!1,n=0,i=e.length;n=a.left?i.width=Math.max(i.width,a.left+a.width-i.left):(t[n++]=i,i=a)}return t[n++]=i,t}},{key:"_createHorizontalRangesFromClientRects",value:function(e,t,n){if(!e||0===e.length)return null;for(var i=[],r=0,o=e.length;rl)return null;if((t=Math.min(l,Math.max(0,t)))===(i=Math.min(l,Math.max(0,i)))&&n===r&&0===n&&!e.children[t].firstChild){var u=e.children[t].getClientRects();return this._createHorizontalRangesFromClientRects(u,o,a)}t!==i&&i>0&&0===r&&(i--,r=1073741824);var c=e.children[t].firstChild,d=e.children[i].firstChild;if(c&&d||(!c&&0===n&&t>0&&(c=e.children[t-1].firstChild,n=1073741824),!d&&0===r&&i>0&&(d=e.children[i-1].firstChild,r=1073741824)),!c||!d)return null;n=Math.min(c.textContent.length,Math.max(0,n)),r=Math.min(d.textContent.length,Math.max(0,r));var h=this._readClientRects(c,n,d,r,s);return this._createHorizontalRangesFromClientRects(h,o,a)}}]),e}(),ce=n(2029),de=n(15475),he=n(59632),fe=!!N.tY||!(N.IJ||S.isFirefox||S.isSafari),pe=!0,ge=function(){function e(t,n){(0,d.Z)(this,e),this._domNode=t,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1,this.endNode=n}return(0,h.Z)(e,[{key:"readClientRect",value:function(){if(!this._clientRectRead){this._clientRectRead=!0;var e=this._domNode.getBoundingClientRect();this._clientRectDeltaLeft=e.left,this._clientRectScale=e.width/this._domNode.offsetWidth}}},{key:"clientRectDeltaLeft",get:function(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}},{key:"clientRectScale",get:function(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}}]),e}(),ve=function(){function e(t,n){(0,d.Z)(this,e),this.themeType=n;var i=t.options,r=i.get(46);this.renderWhitespace=i.get(90),this.renderControlCharacters=i.get(85),this.spaceWidth=r.spaceWidth,this.middotWidth=r.middotWidth,this.wsmiddotWidth=r.wsmiddotWidth,this.useMonospaceOptimizations=r.isMonospace&&!i.get(29),this.canUseHalfwidthRightwardsArrow=r.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(61),this.stopRenderingLineAfter=i.get(107),this.fontLigatures=i.get(47)}return(0,h.Z)(e,[{key:"equals",value:function(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}]),e}(),me=function(){function e(t){(0,d.Z)(this,e),this._options=t,this._isMaybeInvalid=!0,this._renderedViewLine=null}return(0,h.Z)(e,[{key:"getDomNode",value:function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}},{key:"setDomNode",value:function(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=(0,Q.X)(e)}},{key:"onContentChanged",value:function(){this._isMaybeInvalid=!0}},{key:"onTokensChanged",value:function(){this._isMaybeInvalid=!0}},{key:"onDecorationsChanged",value:function(){this._isMaybeInvalid=!0}},{key:"onOptionsChanged",value:function(e){this._isMaybeInvalid=!0,this._options=e}},{key:"onSelectionChanged",value:function(){return!(!(0,he.c3)(this._options.themeType)&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)}},{key:"renderLine",value:function(t,n,i,r){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;var a=i.getViewLineRenderingData(t),s=this._options,l=ce.Kp.filter(a.inlineDecorations,t,a.minColumn,a.maxColumn),u=null;if((0,he.c3)(s.themeType)||"selection"===this._options.renderWhitespace){var c,d=i.selections,h=(0,o.Z)(d);try{for(h.s();!(c=h.n()).done;){var f=c.value;if(!(f.endLineNumbert)){var p=f.startLineNumber===t?f.startColumn:a.minColumn,g=f.endLineNumber===t?f.endColumn:a.maxColumn;p');var m=(0,de.d1)(v,r);r.appendASCIIString("");var y=null;return pe&&fe&&a.isBasicASCII&&s.useMonospaceOptimizations&&0===m.containsForeignElements&&a.content.length<300&&v.lineTokens.getCount()<100&&(y=new ye(this._renderedViewLine?this._renderedViewLine.domNode:null,v,m.characterMapping)),y||(y=ke(this._renderedViewLine?this._renderedViewLine.domNode:null,v,m.characterMapping,m.containsRTL,m.containsForeignElements)),this._renderedViewLine=y,!0}},{key:"layoutLine",value:function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))}},{key:"getWidth",value:function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0}},{key:"getWidthIsFast",value:function(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}},{key:"needsMonospaceFontCheck",value:function(){return!!this._renderedViewLine&&this._renderedViewLine instanceof ye}},{key:"monospaceAssumptionsAreValid",value:function(){return this._renderedViewLine&&this._renderedViewLine instanceof ye?this._renderedViewLine.monospaceAssumptionsAreValid():pe}},{key:"onMonospaceAssumptionsInvalidated",value:function(){this._renderedViewLine&&this._renderedViewLine instanceof ye&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}},{key:"getVisibleRangesForRange",value:function(e,t,n,i){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),n=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,n));var r=this._renderedViewLine.input.stopRenderingLineAfter,o=!1;-1!==r&&t>r+1&&n>r+1&&(o=!0),-1!==r&&t>r+1&&(t=r+1),-1!==r&&n>r+1&&(n=r+1);var a=this._renderedViewLine.getVisibleRangesForRange(e,t,n,i);return a&&a.length>0?new le(o,a):null}},{key:"getColumnOfNodeOffset",value:function(e,t,n){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,n):1}}]),e}();me.CLASS_NAME="view-line";var ye=function(){function e(t,n,i){(0,d.Z)(this,e),this.domNode=t,this.input=n,this._characterMapping=i,this._charWidth=n.spaceWidth}return(0,h.Z)(e,[{key:"getWidth",value:function(){return Math.round(this._getCharPosition(this._characterMapping.length))}},{key:"getWidthIsFast",value:function(){return!0}},{key:"monospaceAssumptionsAreValid",value:function(){if(!this.domNode)return pe;var e=this.getWidth(),t=this.domNode.domNode.firstChild.offsetWidth;return Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),pe=!1),pe}},{key:"toSlowRenderedLine",value:function(){return ke(this.domNode,this.input,this._characterMapping,!1,0)}},{key:"getVisibleRangesForRange",value:function(e,t,n,i){var r=this._getCharPosition(t),o=this._getCharPosition(n);return[new ae(r,o-r)]}},{key:"_getCharPosition",value:function(e){var t=this._characterMapping.getHorizontalOffset(e);return this._charWidth*t}},{key:"getColumnOfNodeOffset",value:function(e,t,n){for(var i=t.textContent.length,r=-1;t;)t=t.previousSibling,r++;return this._characterMapping.getColumn(new de.Nd(r,n),i)}}]),e}(),_e=function(){function e(t,n,i,r,o){if((0,d.Z)(this,e),this.domNode=t,this.input=n,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(n.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!r||0===this._characterMapping.length){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(var a=0,s=this._characterMapping.length;a<=s;a++)this._pixelOffsetCache[a]=-1}}return(0,h.Z)(e,[{key:"_getReadingTarget",value:function(e){return e.domNode.firstChild}},{key:"getWidth",value:function(){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0}},{key:"getWidthIsFast",value:function(){return-1!==this._cachedWidth}},{key:"getVisibleRangesForRange",value:function(e,t,n,i){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){var r=this._readPixelOffset(this.domNode,e,t,i);if(-1===r)return null;var o=this._readPixelOffset(this.domNode,e,n,i);return-1===o?null:[new ae(r,o-r)]}return this._readVisibleRangesForRange(this.domNode,e,t,n,i)}},{key:"_readVisibleRangesForRange",value:function(e,t,n,i,r){if(n===i){var o=this._readPixelOffset(e,t,n,r);return-1===o?null:[new ae(o,0)]}return this._readRawVisibleRangesForRange(e,n,i,r)}},{key:"_readPixelOffset",value:function(e,t,n,i){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth();var r=this._getReadingTarget(e);return r.firstChild?r.firstChild.offsetWidth:0}if(null!==this._pixelOffsetCache){var o=this._pixelOffsetCache[n];if(-1!==o)return o;var a=this._actualReadPixelOffset(e,t,n,i);return this._pixelOffsetCache[n]=a,a}return this._actualReadPixelOffset(e,t,n,i)}},{key:"_actualReadPixelOffset",value:function(e,t,n,i){if(0===this._characterMapping.length){var r=ue.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,i.clientRectDeltaLeft,i.clientRectScale,i.endNode);return r&&0!==r.length?r[0].left:-1}if(n===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();var o=this._characterMapping.getDomPosition(n),a=ue.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,o.partIndex,o.charIndex,i.clientRectDeltaLeft,i.clientRectScale,i.endNode);if(!a||0===a.length)return-1;var s=a[0].left;if(this.input.isBasicASCII){var l=this._characterMapping.getHorizontalOffset(n),u=Math.round(this.input.spaceWidth*l);if(Math.abs(u-s)<=1)return u}return s}},{key:"_readRawVisibleRangesForRange",value:function(e,t,n,i){if(1===t&&n===this._characterMapping.length)return[new ae(0,this.getWidth())];var r=this._characterMapping.getDomPosition(t),o=this._characterMapping.getDomPosition(n);return ue.readHorizontalRanges(this._getReadingTarget(e),r.partIndex,r.charIndex,o.partIndex,o.charIndex,i.clientRectDeltaLeft,i.clientRectScale,i.endNode)}},{key:"getColumnOfNodeOffset",value:function(e,t,n){for(var i=t.textContent.length,r=-1;t;)t=t.previousSibling,r++;return this._characterMapping.getColumn(new de.Nd(r,n),i)}}]),e}(),be=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,h.Z)(n,[{key:"_readVisibleRangesForRange",value:function(e,t,i,r,o){var a=(0,s.Z)((0,l.Z)(n.prototype),"_readVisibleRangesForRange",this).call(this,e,t,i,r,o);if(!a||0===a.length||i===r||1===i&&r===this._characterMapping.length)return a;if(!this.input.containsRTL){var u=this._readPixelOffset(e,t,r,o);if(-1!==u){var c=a[a.length-1];c.left0&&void 0!==arguments[0]?arguments[0]:null;(0,d.Z)(this,e),this.hitTarget=t,this.type=0})),Ie=(0,h.Z)((function e(t,n,i){(0,d.Z)(this,e),this.position=t,this.spanNode=n,this.injectedText=i,this.type=1}));!function(e){e.createFromDOMInfo=function(e,t,n){var i=e.getPositionFromDOMInfo(t,n);return i?new Ie(i,t,null):new Ee(t)}}(Se||(Se={}));var Te=(0,h.Z)((function e(t,n){(0,d.Z)(this,e),this.lastViewCursorsRenderData=t,this.lastTextareaPosition=n})),Oe=function(){function e(){(0,d.Z)(this,e)}return(0,h.Z)(e,null,[{key:"_deduceRage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return!t&&e?new Le.e(e.lineNumber,e.column,e.lineNumber,e.column):null!==t&&void 0!==t?t:null}},{key:"createUnknown",value:function(e,t,n){return{type:0,element:e,mouseColumn:t,position:n,range:this._deduceRage(n)}}},{key:"createTextarea",value:function(e,t){return{type:1,element:e,mouseColumn:t,position:null,range:null}}},{key:"createMargin",value:function(e,t,n,i,r,o){return{type:e,element:t,mouseColumn:n,position:i,range:r,detail:o}}},{key:"createViewZone",value:function(e,t,n,i,r){return{type:e,element:t,mouseColumn:n,position:i,range:this._deduceRage(i),detail:r}}},{key:"createContentText",value:function(e,t,n,i,r){return{type:6,element:e,mouseColumn:t,position:n,range:this._deduceRage(n,i),detail:r}}},{key:"createContentEmpty",value:function(e,t,n,i){return{type:7,element:e,mouseColumn:t,position:n,range:this._deduceRage(n),detail:i}}},{key:"createContentWidget",value:function(e,t,n){return{type:9,element:e,mouseColumn:t,position:null,range:null,detail:n}}},{key:"createScrollbar",value:function(e,t,n){return{type:11,element:e,mouseColumn:t,position:n,range:this._deduceRage(n)}}},{key:"createOverlayWidget",value:function(e,t,n){return{type:12,element:e,mouseColumn:t,position:null,range:null,detail:n}}},{key:"createOutsideEditor",value:function(e,t){return{type:13,element:null,mouseColumn:e,position:t,range:this._deduceRage(t)}}},{key:"_typeToString",value:function(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"}},{key:"toString",value:function(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+JSON.stringify(e.detail)}}]),e}(),Ae=function(){function e(){(0,d.Z)(this,e)}return(0,h.Z)(e,null,[{key:"isTextArea",value:function(e){return 2===e.length&&3===e[0]&&6===e[1]}},{key:"isChildOfViewLines",value:function(e){return e.length>=4&&3===e[0]&&7===e[3]}},{key:"isStrictChildOfViewLines",value:function(e){return e.length>4&&3===e[0]&&7===e[3]}},{key:"isChildOfScrollableElement",value:function(e){return e.length>=2&&3===e[0]&&5===e[1]}},{key:"isChildOfMinimap",value:function(e){return e.length>=2&&3===e[0]&&8===e[1]}},{key:"isChildOfContentWidgets",value:function(e){return e.length>=4&&3===e[0]&&1===e[3]}},{key:"isChildOfOverflowingContentWidgets",value:function(e){return e.length>=1&&2===e[0]}},{key:"isChildOfOverlayWidgets",value:function(e){return e.length>=2&&3===e[0]&&4===e[1]}}]),e}(),Pe=function(){function e(t,n,i){(0,d.Z)(this,e),this.viewModel=t.viewModel;var r=t.configuration.options;this.layoutInfo=r.get(133),this.viewDomNode=n.viewDomNode,this.lineHeight=r.get(61),this.stickyTabStops=r.get(106),this.typicalHalfwidthCharacterWidth=r.get(46).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=t,this._viewHelper=n}return(0,h.Z)(e,[{key:"getZoneAtCoord",value:function(t){return e.getZoneAtCoord(this._context,t)}},{key:"getFullLineRangeAtCoord",value:function(e){if(this._context.viewLayout.isAfterLines(e)){var t=this._context.viewModel.getLineCount(),n=this._context.viewModel.getLineMaxColumn(t);return{range:new Le.e(t,n,t,n),isAfterLines:!0}}var i=this._context.viewLayout.getLineNumberAtVerticalOffset(e),r=this._context.viewModel.getLineMaxColumn(i);return{range:new Le.e(i,1,i,r),isAfterLines:!1}}},{key:"getLineNumberAtVerticalOffset",value:function(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)}},{key:"isAfterLines",value:function(e){return this._context.viewLayout.isAfterLines(e)}},{key:"isInTopPadding",value:function(e){return this._context.viewLayout.isInTopPadding(e)}},{key:"isInBottomPadding",value:function(e){return this._context.viewLayout.isInBottomPadding(e)}},{key:"getVerticalOffsetForLineNumber",value:function(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)}},{key:"findAttribute",value:function(t,n){return e._findAttribute(t,n,this._viewHelper.viewDomNode)}},{key:"getLineWidth",value:function(e){return this._viewHelper.getLineWidth(e)}},{key:"visibleRangeForPosition",value:function(e,t){return this._viewHelper.visibleRangeForPosition(e,t)}},{key:"getPositionFromDOMInfo",value:function(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)}},{key:"getCurrentScrollTop",value:function(){return this._context.viewLayout.getCurrentScrollTop()}},{key:"getCurrentScrollLeft",value:function(){return this._context.viewLayout.getCurrentScrollLeft()}}],[{key:"getZoneAtCoord",value:function(e,t){var n=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(n){var i,r=n.verticalOffset+n.height/2,o=e.viewModel.getLineCount(),a=null,s=null;return n.afterLineNumber!==o&&(s=new xe.L(n.afterLineNumber+1,1)),n.afterLineNumber>0&&(a=new xe.L(n.afterLineNumber,e.viewModel.getLineMaxColumn(n.afterLineNumber))),i=null===s?a:null===a?s:t0&&void 0!==arguments[0]?arguments[0]:null;return e&&e.column0&&void 0!==arguments[0]?arguments[0]:null;return Oe.createUnknown(this.target,this._getMouseColumn(e),e)}},{key:"fulfillTextarea",value:function(){return Oe.createTextarea(this.target,this._getMouseColumn())}},{key:"fulfillMargin",value:function(e,t,n,i){return Oe.createMargin(e,this.target,this._getMouseColumn(t),t,n,i)}},{key:"fulfillViewZone",value:function(e,t,n){return Oe.createViewZone(e,this.target,this._getMouseColumn(t),t,n)}},{key:"fulfillContentText",value:function(e,t,n){return Oe.createContentText(this.target,this._getMouseColumn(e),e,t,n)}},{key:"fulfillContentEmpty",value:function(e,t){return Oe.createContentEmpty(this.target,this._getMouseColumn(e),e,t)}},{key:"fulfillContentWidget",value:function(e){return Oe.createContentWidget(this.target,this._getMouseColumn(),e)}},{key:"fulfillScrollbar",value:function(e){return Oe.createScrollbar(this.target,this._getMouseColumn(e),e)}},{key:"fulfillOverlayWidget",value:function(e){return Oe.createOverlayWidget(this.target,this._getMouseColumn(),e)}},{key:"withTarget",value:function(e){return new n(this._ctx,this.editorPos,this.pos,this.relativePos,e)}}]),n}((0,h.Z)((function e(t,n,i,r){(0,d.Z)(this,e),this.editorPos=n,this.pos=i,this.relativePos=r,this.mouseVerticalOffset=Math.max(0,t.getCurrentScrollTop()+this.relativePos.y),this.mouseContentHorizontalOffset=t.getCurrentScrollLeft()+this.relativePos.x-t.layoutInfo.contentLeft,this.isInMarginArea=this.relativePos.x=t.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,Fe._getMouseColumn(this.mouseContentHorizontalOffset,t.typicalHalfwidthCharacterWidth))}))),Re={isAfterLines:!0};function Ze(e){return{isAfterLines:!1,horizontalDistanceToText:e}}var Fe=function(){function e(t,n){(0,d.Z)(this,e),this._context=t,this._viewHelper=n}return(0,h.Z)(e,[{key:"mouseTargetIsWidget",value:function(e){var t=e.target,n=ne.collect(t,this._viewHelper.viewDomNode);return!(!Ae.isChildOfContentWidgets(n)&&!Ae.isChildOfOverflowingContentWidgets(n))||!!Ae.isChildOfOverlayWidgets(n)}},{key:"createMouseTarget",value:function(t,n,i,r,o){var a=new Pe(this._context,this._viewHelper,t),s=new Me(a,n,i,r,o);try{return e._createMouseTarget(a,s,!1)}catch(l){return s.fulfillUnknown()}}},{key:"getMouseColumn",value:function(t){var n=this._context.configuration.options,i=n.get(133),r=this._context.viewLayout.getCurrentScrollLeft()+t.x-i.contentLeft;return e._getMouseColumn(r,n.get(46).typicalHalfwidthCharacterWidth)}}],[{key:"_createMouseTarget",value:function(t,n,i){if(null===n.target){if(i)return n.fulfillUnknown();var r=e._doHitTest(t,n);return 1===r.type?e.createMouseTargetFromHitTestPosition(t,n,r.spanNode,r.position,r.injectedText):this._createMouseTarget(t,n.withTarget(r.hitTarget),!0)}var o=n,a=null;return(a=(a=(a=(a=(a=(a=(a=(a=(a=(a=a||e._hitTestContentWidget(t,o))||e._hitTestOverlayWidget(t,o))||e._hitTestMinimap(t,o))||e._hitTestScrollbarSlider(t,o))||e._hitTestViewZone(t,o))||e._hitTestMargin(t,o))||e._hitTestViewCursor(t,o))||e._hitTestTextArea(t,o))||e._hitTestViewLines(t,o,i))||e._hitTestScrollbar(t,o))||n.fulfillUnknown()}},{key:"_hitTestContentWidget",value:function(e,t){if(Ae.isChildOfContentWidgets(t.targetPath)||Ae.isChildOfOverflowingContentWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfillContentWidget(n):t.fulfillUnknown()}return null}},{key:"_hitTestOverlayWidget",value:function(e,t){if(Ae.isChildOfOverlayWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfillOverlayWidget(n):t.fulfillUnknown()}return null}},{key:"_hitTestViewCursor",value:function(e,t){if(t.target){var n,i=e.lastRenderData.lastViewCursorsRenderData,r=(0,o.Z)(i);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(t.target===a.domNode)return t.fulfillContentText(a.position,null,{mightBeForeignElement:!1,injectedText:null})}}catch(p){r.e(p)}finally{r.f()}}if(t.isInContentArea){var s,l=e.lastRenderData.lastViewCursorsRenderData,u=t.mouseContentHorizontalOffset,c=t.mouseVerticalOffset,d=(0,o.Z)(l);try{for(d.s();!(s=d.n()).done;){var h=s.value;if(!(uh.contentLeft+h.width)){var f=e.getVerticalOffsetForLineNumber(h.position.lineNumber);if(f<=c&&c<=f+h.height)return t.fulfillContentText(h.position,null,{mightBeForeignElement:!1,injectedText:null})}}}catch(p){d.e(p)}finally{d.f()}}return null}},{key:"_hitTestViewZone",value:function(e,t){var n=e.getZoneAtCoord(t.mouseVerticalOffset);if(n){var i=t.isInContentArea?8:5;return t.fulfillViewZone(i,n.position,n)}return null}},{key:"_hitTestTextArea",value:function(e,t){return Ae.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}},{key:"_hitTestMargin",value:function(e,t){if(t.isInMarginArea){var n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),i=n.range.getStartPosition(),r=Math.abs(t.relativePos.x),o={isAfterLines:n.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:r};return(r-=e.layoutInfo.glyphMarginLeft)<=e.layoutInfo.glyphMarginWidth?t.fulfillMargin(2,i,n.range,o):(r-=e.layoutInfo.glyphMarginWidth)<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,i,n.range,o):(r-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,i,n.range,o))}return null}},{key:"_hitTestViewLines",value:function(t,n,i){if(!Ae.isChildOfViewLines(n.targetPath))return null;if(t.isInTopPadding(n.mouseVerticalOffset))return n.fulfillContentEmpty(new xe.L(1,1),Re);if(t.isAfterLines(n.mouseVerticalOffset)||t.isInBottomPadding(n.mouseVerticalOffset)){var r=t.viewModel.getLineCount(),o=t.viewModel.getLineMaxColumn(r);return n.fulfillContentEmpty(new xe.L(r,o),Re)}if(i){if(Ae.isStrictChildOfViewLines(n.targetPath)){var a=t.getLineNumberAtVerticalOffset(n.mouseVerticalOffset);if(0===t.viewModel.getLineLength(a)){var s=t.getLineWidth(a),l=Ze(n.mouseContentHorizontalOffset-s);return n.fulfillContentEmpty(new xe.L(a,1),l)}var u=t.getLineWidth(a);if(n.mouseContentHorizontalOffset>=u){var c=Ze(n.mouseContentHorizontalOffset-u),d=new xe.L(a,t.viewModel.getLineMaxColumn(a));return n.fulfillContentEmpty(d,c)}}return n.fulfillUnknown()}var h=e._doHitTest(t,n);return 1===h.type?e.createMouseTargetFromHitTestPosition(t,n,h.spanNode,h.position,h.injectedText):this._createMouseTarget(t,n.withTarget(h.hitTarget),!0)}},{key:"_hitTestMinimap",value:function(e,t){if(Ae.isChildOfMinimap(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.viewModel.getLineMaxColumn(n);return t.fulfillScrollbar(new xe.L(n,i))}return null}},{key:"_hitTestScrollbarSlider",value:function(e,t){if(Ae.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){var n=t.target.className;if(n&&/\b(slider|scrollbar)\b/.test(n)){var i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),r=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new xe.L(i,r))}}return null}},{key:"_hitTestScrollbar",value:function(e,t){if(Ae.isChildOfScrollableElement(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.viewModel.getLineMaxColumn(n);return t.fulfillScrollbar(new xe.L(n,i))}return null}},{key:"_getMouseColumn",value:function(e,t){return e<0?1:Math.round(e/t)+1}},{key:"createMouseTargetFromHitTestPosition",value:function(e,t,n,i,r){var o=i.lineNumber,a=i.column,s=e.getLineWidth(o);if(t.mouseContentHorizontalOffset>s){var l=Ze(t.mouseContentHorizontalOffset-s);return t.fulfillContentEmpty(i,l)}var u=e.visibleRangeForPosition(o,a);if(!u)return t.fulfillUnknown(i);var c=u.left;if(t.mouseContentHorizontalOffset===c)return t.fulfillContentText(i,null,{mightBeForeignElement:!!r,injectedText:r});var d=[];if(d.push({offset:u.left,column:a}),a>1){var h=e.visibleRangeForPosition(o,a-1);h&&d.push({offset:h.left,column:a-1})}if(a=t.editorPos.y+t.editorPos.height&&(r=t.editorPos.y+t.editorPos.height-1);var o=new J.YN(t.pos.x,r),a=this._actualDoHitTestWithCaretRangeFromPoint(e,o.toClientCoordinates());return 1===a.type?a:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())}},{key:"_actualDoHitTestWithCaretRangeFromPoint",value:function(e,t){var n,i=_.getShadowRoot(e.viewDomNode);if(n=i?"undefined"===typeof i.caretRangeFromPoint?function(e,t,n){var i=document.createRange(),r=e.elementFromPoint(t,n);if(null!==r){for(;r&&r.firstChild&&r.firstChild.nodeType!==r.firstChild.TEXT_NODE&&r.lastChild&&r.lastChild.firstChild;)r=r.lastChild;var o,a=r.getBoundingClientRect(),s=window.getComputedStyle(r,null).getPropertyValue("font"),l=r.innerText,u=a.left,c=0;if(t>a.left+a.width)c=l.length;else for(var d=Be.getInstance(),h=0;h0?1:-1;R.C.setZoomLevel(n+i),t.preventDefault(),t.stopPropagation()}}}),{capture:!0,passive:!1})),o._context.addEventHandler((0,a.Z)(o)),o}return(0,h.Z)(n,[{key:"dispose",value:function(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){if(e.hasChanged(133)){var t=this._context.configuration.options.get(133).height;this._height!==t&&(this._height=t,this._mouseDownOperation.onHeightChanged())}return!1}},{key:"onCursorStateChanged",value:function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}},{key:"onFocusChanged",value:function(e){return!1}},{key:"onScrollChanged",value:function(e){return this._mouseDownOperation.onScrollChanged(),!1}},{key:"getTargetAtClientPoint",value:function(e,t){var n=new J.rU(e,t).toPageCoordinates(),i=(0,J.kG)(this.viewHelper.viewDomNode);if(n.yi.y+i.height||n.xi.x+i.width)return null;var r=(0,J.Pp)(this.viewHelper.viewDomNode,i,n);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),i,n,r,null)}},{key:"_createMouseTarget",value:function(e,t){var n=this,i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){var r=_.getShadowRoot(this.viewHelper.viewDomNode);r&&(i=r.elementsFromPoint(e.posx,e.posy).find((function(e){return n.viewHelper.viewDomNode.contains(e)})))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}},{key:"_getMouseColumn",value:function(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}},{key:"_onContextMenu",value:function(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}},{key:"_onMouseMove",value:function(e){(this.mouseTargetFactory.mouseTargetIsWidget(e)||e.preventDefault(),this._mouseDownOperation.isActive())||(e.timestampt.y+t.height){var u=i.getCurrentScrollTop()+e.relativePos.y,c=Pe.getZoneAtCoord(this._context,u);if(c){var d=this._helpPositionJumpOverViewZone(c);if(d)return Oe.createOutsideEditor(r,d)}var h=i.getLineNumberAtVerticalOffset(u);return Oe.createOutsideEditor(r,new xe.L(h,n.getLineMaxColumn(h)))}var f=i.getLineNumberAtVerticalOffset(i.getCurrentScrollTop()+e.relativePos.y);return e.posxt.x+t.width?Oe.createOutsideEditor(r,new xe.L(f,n.getLineMaxColumn(f))):null}},{key:"_findMousePosition",value:function(e,t){var n=this._getPositionOutsideEditor(e);if(n)return n;var i=this._createMouseTarget(e,t);if(!i.position)return null;if(8===i.type||5===i.type){var r=this._helpPositionJumpOverViewZone(i.detail);if(r)return Oe.createViewZone(i.type,i.element,i.mouseColumn,r,i.detail)}return i}},{key:"_helpPositionJumpOverViewZone",value:function(e){var t=new xe.L(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),n=e.positionBefore,i=e.positionAfter;return n&&i?n.isBefore(t)?n:i:null}},{key:"_dispatchMouse",value:function(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:6===e.type&&null!==e.detail.injectedText})}}]),n}(C.JT),He=function(){function e(){(0,d.Z)(this,e),this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}return(0,h.Z)(e,[{key:"altKey",get:function(){return this._altKey}},{key:"ctrlKey",get:function(){return this._ctrlKey}},{key:"metaKey",get:function(){return this._metaKey}},{key:"shiftKey",get:function(){return this._shiftKey}},{key:"leftButton",get:function(){return this._leftButton}},{key:"middleButton",get:function(){return this._middleButton}},{key:"startedOnLineNumbers",get:function(){return this._startedOnLineNumbers}},{key:"count",get:function(){return this._lastMouseDownCount}},{key:"setModifiers",value:function(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}},{key:"setStartButtons",value:function(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}},{key:"setStartedOnLineNumbers",value:function(e){this._startedOnLineNumbers=e}},{key:"trySetCount",value:function(t,n){var i=(new Date).getTime();i-this._lastSetMouseDownCountTime>e.CLEAR_MOUSE_DOWN_COUNT_TIME&&(t=1),this._lastSetMouseDownCountTime=i,t>this._lastMouseDownCount+1&&(t=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(n)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=n,this._lastMouseDownCount=Math.min(t,this._lastMouseDownPositionEqualCount)}}]),e}();He.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var je=n(57572),ze=n(12379),Ue=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r){var o;(0,d.Z)(this,n),(o=t.call(this,e,i,r))._register($.o.addTarget(o.viewHelper.linesContentDomNode)),o._register(_.addDisposableListener(o.viewHelper.linesContentDomNode,$.t.Tap,(function(e){return o.onTap(e)}))),o._register(_.addDisposableListener(o.viewHelper.linesContentDomNode,$.t.Change,(function(e){return o.onChange(e)}))),o._register(_.addDisposableListener(o.viewHelper.linesContentDomNode,$.t.Contextmenu,(function(e){return o._onContextMenu(new J.gy(e,!1,o.viewHelper.viewDomNode),!1)}))),o._lastPointerType="mouse",o._register(_.addDisposableListener(o.viewHelper.linesContentDomNode,"pointerdown",(function(e){var t=e.pointerType;o._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));var a=new J.tC(o.viewHelper.viewDomNode);return o._register(a.onPointerMove(o.viewHelper.viewDomNode,(function(e){return o._onMouseMove(e)}))),o._register(a.onPointerUp(o.viewHelper.viewDomNode,(function(e){return o._onMouseUp(e)}))),o._register(a.onPointerLeave(o.viewHelper.viewDomNode,(function(e){return o._onMouseLeave(e)}))),o._register(a.onPointerDown(o.viewHelper.viewDomNode,(function(e,t){return o._onMouseDown(e,t)}))),o}return(0,h.Z)(n,[{key:"onTap",value:function(e){if(e.initialTarget&&this.viewHelper.linesContentDomNode.contains(e.initialTarget)){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new J.gy(e,!1,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:6===t.type&&null!==t.detail.injectedText})}}},{key:"onChange",value:function(e){"touch"===this._lastPointerType&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}},{key:"_onMouseDown",value:function(e,t){"touch"!==e.browserEvent.pointerType&&(0,s.Z)((0,l.Z)(n.prototype),"_onMouseDown",this).call(this,e,t)}}]),n}(We),Ke=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r){var o;return(0,d.Z)(this,n),(o=t.call(this,e,i,r))._register($.o.addTarget(o.viewHelper.linesContentDomNode)),o._register(_.addDisposableListener(o.viewHelper.linesContentDomNode,$.t.Tap,(function(e){return o.onTap(e)}))),o._register(_.addDisposableListener(o.viewHelper.linesContentDomNode,$.t.Change,(function(e){return o.onChange(e)}))),o._register(_.addDisposableListener(o.viewHelper.linesContentDomNode,$.t.Contextmenu,(function(e){return o._onContextMenu(new J.gy(e,!1,o.viewHelper.viewDomNode),!1)}))),o}return(0,h.Z)(n,[{key:"onTap",value:function(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new J.gy(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){var n=document.createEvent("CustomEvent");n.initEvent(ze.pd.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(n),this.viewController.moveTo(t.position)}}},{key:"onChange",value:function(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}]),n}(We),qe=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r){var o;return(0,d.Z)(this,n),o=t.call(this),N.gn&&je.D.pointerEvents?o.handler=o._register(new Ue(e,i,r)):window.TouchEvent?o.handler=o._register(new Ke(e,i,r)):o.handler=o._register(new We(e,i,r)),o}return(0,h.Z)(n,[{key:"getTargetAtClientPoint",value:function(e,t){return this.handler.getTargetAtClientPoint(e,t)}}]),n}(C.JT),Ge=n(32377),Qe=n(34070),$e=n(9235),Ye=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,h.Z)(n)}(ee),Xe=n(29700),Je=n(64014),et=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,d.Z)(this,n),(i=t.call(this))._context=e,i._readConfig(),i._lastCursorModelPosition=new xe.L(1,1),i._lastCursorViewPosition=new xe.L(1,1),i._renderResult=null,i._activeLineNumber=1,i._context.addEventHandler((0,a.Z)(i)),i}return(0,h.Z)(n,[{key:"_readConfig",value:function(){var e=this._context.configuration.options;this._lineHeight=e.get(61);var t=e.get(62);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(86);var n=e.get(133);this._lineNumbersLeft=n.lineNumbersLeft,this._lineNumbersWidth=n.lineNumbersWidth}},{key:"dispose",value:function(){this._context.removeEventHandler(this),this._renderResult=null,(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){return this._readConfig(),!0}},{key:"onCursorStateChanged",value:function(e){var t=e.selections[0].getPosition();this._lastCursorViewPosition=t,this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);var n=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,n=!0),2!==this._renderLineNumbers&&3!==this._renderLineNumbers||(n=!0),n}},{key:"onFlushed",value:function(e){return!0}},{key:"onLinesChanged",value:function(e){return!0}},{key:"onLinesDeleted",value:function(e){return!0}},{key:"onLinesInserted",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return e.scrollTopChanged}},{key:"onZonesChanged",value:function(e){return!0}},{key:"_getLineRenderLineNumber",value:function(e){var t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new xe.L(e,1));if(1!==t.column)return"";var n=t.lineNumber;return this._renderCustomLineNumbers?this._renderCustomLineNumbers(n):3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===n||n%10===0?String(n):"":String(n)}},{key:"prepareRender",value:function(e){if(0!==this._renderLineNumbers){var t=N.IJ?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,o='',a=null;if(2===this._renderLineNumbers){a=new Array(r-i+1),this._lastCursorViewPosition.lineNumber>=i&&this._lastCursorViewPosition.lineNumber<=r&&(a[this._lastCursorViewPosition.lineNumber-i]=this._lastCursorModelPosition.lineNumber);for(var s=0,l=this._lastCursorViewPosition.lineNumber+1;l<=r;l++){var u=1!==this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new xe.L(l,1)).column;u||s++,l>=i&&(a[l-i]=u?0:s)}for(var c=0,d=this._lastCursorViewPosition.lineNumber-1;d>=i;d--){var h=1!==this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new xe.L(d,1)).column;h||c++,d<=r&&(a[d-i]=h?0:c)}}for(var f=this._context.viewModel.getLineCount(),p=[],g=i;g<=r;g++){var v=g-i;if(this._renderFinalNewline||g!==f||0!==this._context.viewModel.getLineLength(g)){var m=void 0;if(a){var y=a[v];m=this._lastCursorViewPosition.lineNumber===g?'
'.concat(y,""):y?String(y):""}else m=this._getLineRenderLineNumber(g);m?g===this._activeLineNumber?p[v]='
'+m+"
":p[v]=o+m+"
":p[v]=""}else p[v]=""}this._renderResult=p}else this._renderResult=null}},{key:"render",value:function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}]),n}(Ye);et.CLASS_NAME="line-numbers",(0,Je.Ic)((function(e,t){var n=e.getColor(Xe.hw);n&&t.addRule(".monaco-editor .line-numbers { color: ".concat(n,"; }"));var i=e.getColor(Xe.DD);i&&t.addRule(".monaco-editor .line-numbers.active-line-number { color: ".concat(i,"; }"))}));var tt=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;(0,d.Z)(this,n);var r=(i=t.call(this,e))._context.configuration.options,o=r.get(133);return i._canUseLayerHinting=!r.get(28),i._contentLeft=o.contentLeft,i._glyphMarginLeft=o.glyphMarginLeft,i._glyphMarginWidth=o.glyphMarginWidth,i._domNode=(0,Q.X)(document.createElement("div")),i._domNode.setClassName(n.OUTER_CLASS_NAME),i._domNode.setPosition("absolute"),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._glyphMarginBackgroundDomNode=(0,Q.X)(document.createElement("div")),i._glyphMarginBackgroundDomNode.setClassName(n.CLASS_NAME),i._domNode.appendChild(i._glyphMarginBackgroundDomNode),i}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"getDomNode",value:function(){return this._domNode}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options,n=t.get(133);return this._canUseLayerHinting=!t.get(28),this._contentLeft=n.contentLeft,this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0}},{key:"onScrollChanged",value:function(e){return(0,s.Z)((0,l.Z)(n.prototype),"onScrollChanged",this).call(this,e)||e.scrollTopChanged}},{key:"prepareRender",value:function(e){}},{key:"render",value:function(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");var t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);var n=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(n),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(n)}}]),n}(te);tt.CLASS_NAME="glyph-margin",tt.OUTER_CLASS_NAME="margin";var nt=n(3109),it=n(25022),rt=n(12905),ot=n(62458),at=function(){function e(t,n,i,r,o){(0,d.Z)(this,e),this._context=t,this.modelLineNumber=n,this.distanceToModelLineStart=i,this.widthOfHiddenLineTextBefore=r,this.distanceToModelLineEnd=o,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}return(0,h.Z)(e,[{key:"prepareRender",value:function(e){var t=new xe.L(this.modelLineNumber,this.distanceToModelLineStart+1),n=new xe.L(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(n),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}},{key:"definePresentation",value:function(e){return this._previousPresentation||(this._previousPresentation=e||{foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}]),e}(),st=S.isFirefox,lt=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e,r,o){var a;(0,d.Z)(this,n),(a=t.call(this,e))._primaryCursorPosition=new xe.L(1,1),a._primaryCursorVisibleRange=null,a._viewController=r,a._visibleRangeProvider=o,a._scrollLeft=0,a._scrollTop=0;var s=a._context.configuration.options,l=s.get(133);a._setAccessibilityOptions(s),a._contentLeft=l.contentLeft,a._contentWidth=l.contentWidth,a._contentHeight=l.height,a._fontInfo=s.get(46),a._lineHeight=s.get(61),a._emptySelectionClipboard=s.get(33),a._copyWithSyntaxHighlighting=s.get(21),a._visibleTextArea=null,a._selections=[new G.Y(1,1,1,1)],a._modelSelections=[new G.Y(1,1,1,1)],a._lastRenderPosition=null,a.textArea=(0,Q.X)(document.createElement("textarea")),ne.write(a.textArea,6),a.textArea.setClassName("inputarea ".concat(it.S)),a.textArea.setAttribute("wrap","off"),a.textArea.setAttribute("autocorrect","off"),a.textArea.setAttribute("autocapitalize","off"),a.textArea.setAttribute("autocomplete","off"),a.textArea.setAttribute("spellcheck","false"),a.textArea.setAttribute("aria-label",a._getAriaLabel(s)),a.textArea.setAttribute("tabindex",String(s.get(114))),a.textArea.setAttribute("role","textbox"),a.textArea.setAttribute("aria-roledescription",y.NC("editor","editor")),a.textArea.setAttribute("aria-multiline","true"),a.textArea.setAttribute("aria-haspopup","false"),a.textArea.setAttribute("aria-autocomplete","both"),s.get(30)&&s.get(83)&&a.textArea.setAttribute("readonly","true"),a.textAreaCover=(0,Q.X)(document.createElement("div")),a.textAreaCover.setPosition("absolute");var u={getLineCount:function(){return a._context.viewModel.getLineCount()},getLineMaxColumn:function(e){return a._context.viewModel.getLineMaxColumn(e)},getValueInRange:function(e,t){return a._context.viewModel.getValueInRange(e,t)}},c={getDataToCopy:function(){var e=a._context.viewModel.getPlainTextToCopy(a._modelSelections,a._emptySelectionClipboard,N.ED),t=a._context.viewModel.model.getEOL(),n=a._emptySelectionClipboard&&1===a._modelSelections.length&&a._modelSelections[0].isEmpty(),i=Array.isArray(e)?e:null,r=Array.isArray(e)?e.join(t):e,o=void 0,s=null;if(ze.RA.forceCopyWithSyntaxHighlighting||a._copyWithSyntaxHighlighting&&r.length<65536){var l=a._context.viewModel.getRichTextToCopy(a._modelSelections,a._emptySelectionClipboard);l&&(o=l.html,s=l.mode)}return{isFromEmptySelection:n,multicursorText:i,text:r,html:o,mode:s}},getScreenReaderContent:function(e){if(1===a._accessibilitySupport){var t=a._selections[0];if(N.dz&&t.isEmpty()){var n=t.getStartPosition(),r=a._getWordBeforePosition(n);if(0===r.length&&(r=a._getCharacterBeforePosition(n)),r.length>0)return new $e.un(r,r.length,r.length,n,n)}if(S.isSafari&&!t.isEmpty()){var o="vscode-placeholder";return new $e.un(o,0,o.length,null,null)}return $e.un.EMPTY}if(S.isAndroid){var s=a._selections[0];if(s.isEmpty()){var l=s.getStartPosition(),c=a._getAndroidWordAtPosition(l),d=(0,i.Z)(c,2),h=d[0],f=d[1];if(h.length>0)return new $e.un(h,f,f,l,l)}return $e.un.EMPTY}return $e.ee.fromEditorSelection(e,u,a._selections[0],a._accessibilityPageSize,0===a._accessibilitySupport)},deduceModelPosition:function(e,t,n){return a._context.viewModel.deduceModelPositionRelativeToViewPosition(e,t,n)}},h=a._register(new ze.Tj(a.textArea.domNode));return a._textAreaInput=a._register(new ze.Fz(c,h,N.OS,S)),a._register(a._textAreaInput.onKeyDown((function(e){a._viewController.emitKeyDown(e)}))),a._register(a._textAreaInput.onKeyUp((function(e){a._viewController.emitKeyUp(e)}))),a._register(a._textAreaInput.onPaste((function(e){var t=!1,n=null,i=null;e.metadata&&(t=a._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,n="undefined"!==typeof e.metadata.multicursorText?e.metadata.multicursorText:null,i=e.metadata.mode),a._viewController.paste(e.text,t,n,i)}))),a._register(a._textAreaInput.onCut((function(){a._viewController.cut()}))),a._register(a._textAreaInput.onType((function(e){e.replacePrevCharCnt||e.replaceNextCharCnt||e.positionDelta?($e.al&&console.log(" => compositionType: <<".concat(e.text,">>, ").concat(e.replacePrevCharCnt,", ").concat(e.replaceNextCharCnt,", ").concat(e.positionDelta)),a._viewController.compositionType(e.text,e.replacePrevCharCnt,e.replaceNextCharCnt,e.positionDelta)):($e.al&&console.log(" => type: <<".concat(e.text,">>")),a._viewController.type(e.text))}))),a._register(a._textAreaInput.onSelectionChangeRequest((function(e){a._viewController.setSelection(e)}))),a._register(a._textAreaInput.onCompositionStart((function(e){var t=a.textArea.domNode,n=a._modelSelections[0],i=function(){var e=t.value.substring(0,Math.min(t.selectionStart,t.selectionEnd)),i=e.lastIndexOf("\n"),r=e.substring(i+1),o=r.lastIndexOf("\t"),s=r.length-o-1,l=n.getStartPosition(),u=Math.min(l.column-1,s);return{distanceToModelLineStart:l.column-1-u,widthOfHiddenTextBefore:function(e,t){if(0===e.length)return 0;var n=document.createElement("div");n.style.position="absolute",n.style.top="-50000px",n.style.width="50000px";var i=document.createElement("span");(0,Qe.N)(i,t),i.style.whiteSpace="pre",i.append(e),n.appendChild(i),document.body.appendChild(n);var r=i.offsetWidth;return document.body.removeChild(n),r}(r.substring(0,r.length-u),a._fontInfo)}}(),r=i.distanceToModelLineStart,o=i.widthOfHiddenTextBefore,s=function(){var e=t.value.substring(Math.max(t.selectionStart,t.selectionEnd)),i=e.indexOf("\n"),r=-1===i?e:e.substring(0,i),o=r.indexOf("\t"),s=-1===o?r.length:r.length-o-1,l=n.getEndPosition(),u=Math.min(a._context.viewModel.model.getLineMaxColumn(l.lineNumber)-l.column,s);return{distanceToModelLineEnd:a._context.viewModel.model.getLineMaxColumn(l.lineNumber)-l.column-u}}().distanceToModelLineEnd;a._context.viewModel.revealRange("keyboard",!0,Le.e.fromPositions(a._selections[0].getStartPosition()),0,1),a._visibleTextArea=new at(a._context,n.startLineNumber,r,o,s),a._visibleTextArea.prepareRender(a._visibleRangeProvider),a._render(),a.textArea.setClassName("inputarea ".concat(it.S," ime-input")),a._viewController.compositionStart(),a._context.viewModel.onCompositionStart()}))),a._register(a._textAreaInput.onCompositionUpdate((function(e){a._visibleTextArea&&(a._visibleTextArea.prepareRender(a._visibleRangeProvider),a._render())}))),a._register(a._textAreaInput.onCompositionEnd((function(){a._visibleTextArea=null,a._render(),a.textArea.setClassName("inputarea ".concat(it.S)),a._viewController.compositionEnd(),a._context.viewModel.onCompositionEnd()}))),a._register(a._textAreaInput.onFocus((function(){a._context.viewModel.setHasFocus(!0)}))),a._register(a._textAreaInput.onBlur((function(){a._context.viewModel.setHasFocus(!1)}))),a}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"_getAndroidWordAtPosition",value:function(e){for(var t=this._context.viewModel.getLineContent(e.lineNumber),n=(0,nt.u)('`~!@#$%^&*()-=+[{]}\\|;:",.<>/?'),i=!0,r=e.column,o=!0,a=e.column,s=0;s<50&&(i||o);){if(i&&r<=1&&(i=!1),i){var l=t.charCodeAt(r-2);0!==n.get(l)?i=!1:r--}if(o&&a>t.length&&(o=!1),o){var u=t.charCodeAt(a-1);0!==n.get(u)?o=!1:a++}s++}return[t.substring(r-1,a-1),e.column-r]}},{key:"_getWordBeforePosition",value:function(e){for(var t=this._context.viewModel.getLineContent(e.lineNumber),n=(0,nt.u)(this._context.configuration.options.get(119)),i=e.column,r=0;i>1;){var o=t.charCodeAt(i-2);if(0!==n.get(o)||r>50)return t.substring(i-1,e.column-1);r++,i--}return t.substring(0,e.column-1)}},{key:"_getCharacterBeforePosition",value:function(e){if(e.column>1){var t=this._context.viewModel.getLineContent(e.lineNumber).charAt(e.column-2);if(!Ge.ZG(t.charCodeAt(0)))return t}return""}},{key:"_getAriaLabel",value:function(e){return 1===e.get(2)?y.NC("accessibilityOffAriaLabel","The editor is not accessible at this time. Press {0} for options.",N.IJ?"Shift+Alt+F1":"Alt+F1"):e.get(4)}},{key:"_setAccessibilityOptions",value:function(e){this._accessibilitySupport=e.get(2);var t=e.get(3);2===this._accessibilitySupport&&t===M.BH.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options,n=t.get(133);return this._setAccessibilityOptions(t),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._contentHeight=n.height,this._fontInfo=t.get(46),this._lineHeight=t.get(61),this._emptySelectionClipboard=t.get(33),this._copyWithSyntaxHighlighting=t.get(21),this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("tabindex",String(t.get(114))),(e.hasChanged(30)||e.hasChanged(83))&&(t.get(30)&&t.get(83)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0}},{key:"onCursorStateChanged",value:function(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0}},{key:"onDecorationsChanged",value:function(e){return!0}},{key:"onFlushed",value:function(e){return!0}},{key:"onLinesChanged",value:function(e){return!0}},{key:"onLinesDeleted",value:function(e){return!0}},{key:"onLinesInserted",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}},{key:"onZonesChanged",value:function(e){return!0}},{key:"isFocused",value:function(){return this._textAreaInput.isFocused()}},{key:"focusTextArea",value:function(){this._textAreaInput.focusTextArea()}},{key:"getLastRenderData",value:function(){return this._lastRenderPosition}},{key:"setAriaOptions",value:function(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}},{key:"prepareRender",value:function(e){var t;this._primaryCursorPosition=new xe.L(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),null===(t=this._visibleTextArea)||void 0===t||t.prepareRender(e)}},{key:"render",value:function(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()}},{key:"_render",value:function(){if(this._visibleTextArea){var e=this._visibleTextArea.visibleTextareaStart,t=this._visibleTextArea.visibleTextareaEnd,n=this._visibleTextArea.startPosition,i=this._visibleTextArea.endPosition;if(n&&i&&e&&t&&t.left>=this._scrollLeft&&e.left<=this._scrollLeft+this._contentWidth){var r=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,o=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart)),a=this._visibleTextArea.widthOfHiddenLineTextBefore,s=this._contentLeft+e.left-this._scrollLeft,l=t.left-e.left+1;if(sthis._contentWidth&&(l=this._contentWidth);var c=this._context.viewModel.getViewLineData(n.lineNumber),d=c.tokens.findTokenIndexAtOffset(n.column-1),h=d===c.tokens.findTokenIndexAtOffset(i.column-1),f=this._visibleTextArea.definePresentation(h?c.tokens.getPresentation(d):null);this.textArea.domNode.scrollTop=o*this._lineHeight,this.textArea.domNode.scrollLeft=a,this._doRender({lastRenderPosition:null,top:r,left:s,width:l,height:this._lineHeight,useCover:!1,color:(rt.RW.getColorMap()||[])[f.foreground],italic:f.italic,bold:f.bold,underline:f.underline,strikethrough:f.strikethrough})}}else if(this._primaryCursorVisibleRange){var p=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(pthis._contentLeft+this._contentWidth)this._renderAtTopLeft();else{var g=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(g<0||g>this._contentHeight)this._renderAtTopLeft();else if(N.dz){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:g,left:p,width:st?0:1,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;var v=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=v*this._lineHeight}else this._doRender({lastRenderPosition:this._primaryCursorPosition,top:g,left:p,width:st?0:1,height:st?0:1,useCover:!1})}}else this._renderAtTopLeft()}},{key:"_newlinecount",value:function(e){for(var t=0,n=-1;;){if(-1===(n=e.indexOf("\n",n+1)))break;t++}return t}},{key:"_renderAtTopLeft",value:function(){this._doRender({lastRenderPosition:null,top:0,left:0,width:st?0:1,height:st?0:1,useCover:!0})}},{key:"_doRender",value:function(e){this._lastRenderPosition=e.lastRenderPosition;var t=this.textArea,n=this.textAreaCover;(0,Qe.N)(t,this._fontInfo),t.setTop(e.top),t.setLeft(e.left),t.setWidth(e.width),t.setHeight(e.height),t.setColor(e.color?ot.Il.Format.CSS.formatHex(e.color):""),t.setFontStyle(e.italic?"italic":""),e.bold&&t.setFontWeight("bold"),t.setTextDecoration("".concat(e.underline?" underline":"").concat(e.strikethrough?" line-through":"")),n.setTop(e.useCover?e.top:0),n.setLeft(e.useCover?e.left:0),n.setWidth(e.useCover?e.width:0),n.setHeight(e.useCover?e.height:0);var i=this._context.configuration.options;i.get(52)?n.setClassName("monaco-editor-background textAreaCover "+tt.OUTER_CLASS_NAME):0!==i.get(62).renderType?n.setClassName("monaco-editor-background textAreaCover "+et.CLASS_NAME):n.setClassName("monaco-editor-background textAreaCover")}}]),n}(te);var ut,ct=n(79240),dt=function(){function e(t,n,i,r){(0,d.Z)(this,e),this.configuration=t,this.viewModel=n,this.userInputEvents=i,this.commandDelegate=r}return(0,h.Z)(e,[{key:"paste",value:function(e,t,n,i){this.commandDelegate.paste(e,t,n,i)}},{key:"type",value:function(e){this.commandDelegate.type(e)}},{key:"compositionType",value:function(e,t,n,i){this.commandDelegate.compositionType(e,t,n,i)}},{key:"compositionStart",value:function(){this.commandDelegate.startComposition()}},{key:"compositionEnd",value:function(){this.commandDelegate.endComposition()}},{key:"cut",value:function(){this.commandDelegate.cut()}},{key:"setSelection",value:function(e){ct.CoreNavigationCommands.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}},{key:"_validateViewColumn",value:function(e){var t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):2===e.mouseDownCount?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey||i?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)}},{key:"_usualArgs",value:function(e){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e}}},{key:"moveTo",value:function(e){ct.CoreNavigationCommands.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_moveToSelect",value:function(e){ct.CoreNavigationCommands.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_columnSelect",value:function(e,t,n){e=this._validateViewColumn(e),ct.CoreNavigationCommands.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:n})}},{key:"_createCursor",value:function(e,t){e=this._validateViewColumn(e),ct.CoreNavigationCommands.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}},{key:"_lastCursorMoveToSelect",value:function(e){ct.CoreNavigationCommands.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_wordSelect",value:function(e){ct.CoreNavigationCommands.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_wordSelectDrag",value:function(e){ct.CoreNavigationCommands.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_lastCursorWordSelect",value:function(e){ct.CoreNavigationCommands.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_lineSelect",value:function(e){ct.CoreNavigationCommands.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_lineSelectDrag",value:function(e){ct.CoreNavigationCommands.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_lastCursorLineSelect",value:function(e){ct.CoreNavigationCommands.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_lastCursorLineSelectDrag",value:function(e){ct.CoreNavigationCommands.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_selectAll",value:function(){ct.CoreNavigationCommands.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}},{key:"_convertViewToModelPosition",value:function(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}},{key:"emitKeyDown",value:function(e){this.userInputEvents.emitKeyDown(e)}},{key:"emitKeyUp",value:function(e){this.userInputEvents.emitKeyUp(e)}},{key:"emitContextMenu",value:function(e){this.userInputEvents.emitContextMenu(e)}},{key:"emitMouseMove",value:function(e){this.userInputEvents.emitMouseMove(e)}},{key:"emitMouseLeave",value:function(e){this.userInputEvents.emitMouseLeave(e)}},{key:"emitMouseUp",value:function(e){this.userInputEvents.emitMouseUp(e)}},{key:"emitMouseDown",value:function(e){this.userInputEvents.emitMouseDown(e)}},{key:"emitMouseDrag",value:function(e){this.userInputEvents.emitMouseDrag(e)}},{key:"emitMouseDrop",value:function(e){this.userInputEvents.emitMouseDrop(e)}},{key:"emitMouseDropCanceled",value:function(){this.userInputEvents.emitMouseDropCanceled()}},{key:"emitMouseWheel",value:function(e){this.userInputEvents.emitMouseWheel(e)}}]),e}(),ht=function(){function e(t){(0,d.Z)(this,e),this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=t}return(0,h.Z)(e,[{key:"emitKeyDown",value:function(e){var t;null===(t=this.onKeyDown)||void 0===t||t.call(this,e)}},{key:"emitKeyUp",value:function(e){var t;null===(t=this.onKeyUp)||void 0===t||t.call(this,e)}},{key:"emitContextMenu",value:function(e){var t;null===(t=this.onContextMenu)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}},{key:"emitMouseMove",value:function(e){var t;null===(t=this.onMouseMove)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}},{key:"emitMouseLeave",value:function(e){var t;null===(t=this.onMouseLeave)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}},{key:"emitMouseDown",value:function(e){var t;null===(t=this.onMouseDown)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}},{key:"emitMouseUp",value:function(e){var t;null===(t=this.onMouseUp)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}},{key:"emitMouseDrag",value:function(e){var t;null===(t=this.onMouseDrag)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}},{key:"emitMouseDrop",value:function(e){var t;null===(t=this.onMouseDrop)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}},{key:"emitMouseDropCanceled",value:function(){var e;null===(e=this.onMouseDropCanceled)||void 0===e||e.call(this)}},{key:"emitMouseWheel",value:function(e){var t;null===(t=this.onMouseWheel)||void 0===t||t.call(this,e)}},{key:"_convertViewToModelMouseEvent",value:function(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}},{key:"_convertViewToModelMouseTarget",value:function(t){return e.convertViewToModelMouseTarget(t,this._coordinatesConverter)}}],[{key:"convertViewToModelMouseTarget",value:function(e,t){var n=Object.assign({},e);return n.position&&(n.position=t.convertViewPositionToModelPosition(n.position)),n.range&&(n.range=t.convertViewRangeToModelRange(n.range)),n}}]),e}(),ft=n(1293),pt=function(){function e(t){(0,d.Z)(this,e),this._createLine=t,this._set(1,[])}return(0,h.Z)(e,[{key:"flush",value:function(){this._set(1,[])}},{key:"_set",value:function(e,t){this._lines=t,this._rendLineNumberStart=e}},{key:"_get",value:function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}},{key:"getStartLineNumber",value:function(){return this._rendLineNumberStart}},{key:"getEndLineNumber",value:function(){return this._rendLineNumberStart+this._lines.length-1}},{key:"getCount",value:function(){return this._lines.length}},{key:"getLine",value:function(e){var t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]}},{key:"onLinesDeleted",value:function(e,t){if(0===this.getCount())return null;var n=this.getStartLineNumber(),i=this.getEndLineNumber();if(ti)return null;for(var o=0,a=0,s=n;s<=i;s++){var l=s-this._rendLineNumberStart;e<=s&&s<=t&&(0===a?(o=l,a=1):a++)}if(e=i&&a<=r&&(this._lines[a-this._rendLineNumberStart].onContentChanged(),o=!0);return o}},{key:"onLinesInserted",value:function(e,t){if(0===this.getCount())return null;var n=t-e+1,i=this.getStartLineNumber(),r=this.getEndLineNumber();if(e<=i)return this._rendLineNumberStart+=n,null;if(e>r)return null;if(n+e>r)return this._lines.splice(e-this._rendLineNumberStart,r-e+1);for(var o=[],a=0;an))for(var s=Math.max(t,a.fromLineNumber),l=Math.min(n,a.toLineNumber),u=s;u<=l;u++){var c=u-this._rendLineNumberStart;this._lines[c].onTokensChanged(),i=!0}}return i}}]),e}(),gt=function(){function e(t){var n=this;(0,d.Z)(this,e),this._host=t,this.domNode=this._createDomNode(),this._linesCollection=new pt((function(){return n._host.createVisibleLine()}))}return(0,h.Z)(e,[{key:"_createDomNode",value:function(){var e=(0,Q.X)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}},{key:"onConfigurationChanged",value:function(e){return!!e.hasChanged(133)}},{key:"onFlushed",value:function(e){return this._linesCollection.flush(),!0}},{key:"onLinesChanged",value:function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}},{key:"onLinesDeleted",value:function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;nt){var a=t,s=Math.min(n,r.rendLineNumberStart-1);a<=s&&(this._insertLinesBefore(r,a,s,i,t),r.linesLength+=s-a+1)}else if(r.rendLineNumberStart0&&(this._removeLinesBefore(r,l),r.linesLength-=l)}if(r.rendLineNumberStart=t,r.rendLineNumberStart+r.linesLength-1n){var d=Math.max(0,n-r.rendLineNumberStart+1),h=r.linesLength-1-d+1;h>0&&(this._removeLinesAfter(r,h),r.linesLength-=h)}return this._finishRendering(r,!1,i),r}},{key:"_renderUntouchedLines",value:function(e,t,n,i,r){for(var o=e.rendLineNumberStart,a=e.lines,s=t;s<=n;s++){var l=o+s;a[s].layoutLine(l,i[l-r])}}},{key:"_insertLinesBefore",value:function(e,t,n,i,r){for(var o=[],a=0,s=t;s<=n;s++)o[a++]=this.host.createVisibleLine();e.lines=o.concat(e.lines)}},{key:"_removeLinesBefore",value:function(e,t){for(var n=0;n=0;s--){var l=t.lines[s];r[s]&&(l.setDomNode(a),a=a.previousSibling)}}},{key:"_finishRenderingInvalidLines",value:function(t,n,i){var r=document.createElement("div");e._ttPolicy&&(n=e._ttPolicy.createHTML(n)),r.innerHTML=n;for(var o=0;o'),i.appendASCIIString(r),i.appendASCIIString(""),!0)}},{key:"layoutLine",value:function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))}}]),e}(),_t=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;(0,d.Z)(this,n);var r=(i=t.call(this,e))._context.configuration.options.get(133);return i._contentWidth=r.contentWidth,i.domNode.setHeight(0),i}return(0,h.Z)(n,[{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options.get(133);return this._contentWidth=t.contentWidth,(0,s.Z)((0,l.Z)(n.prototype),"onConfigurationChanged",this).call(this,e)||!0}},{key:"onScrollChanged",value:function(e){return(0,s.Z)((0,l.Z)(n.prototype),"onScrollChanged",this).call(this,e)||e.scrollWidthChanged}},{key:"_viewOverlaysRender",value:function(e){(0,s.Z)((0,l.Z)(n.prototype),"_viewOverlaysRender",this).call(this,e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}]),n}(mt),bt=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;(0,d.Z)(this,n);var r=(i=t.call(this,e))._context.configuration.options,o=r.get(133);return i._contentLeft=o.contentLeft,i.domNode.setClassName("margin-view-overlays"),i.domNode.setWidth(1),(0,Qe.N)(i.domNode,r.get(46)),i}return(0,h.Z)(n,[{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options;(0,Qe.N)(this.domNode,t.get(46));var i=t.get(133);return this._contentLeft=i.contentLeft,(0,s.Z)((0,l.Z)(n.prototype),"onConfigurationChanged",this).call(this,e)||!0}},{key:"onScrollChanged",value:function(e){return(0,s.Z)((0,l.Z)(n.prototype),"onScrollChanged",this).call(this,e)||e.scrollHeightChanged}},{key:"_viewOverlaysRender",value:function(e){(0,s.Z)((0,l.Z)(n.prototype),"_viewOverlaysRender",this).call(this,e);var t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}]),n}(mt),kt=(0,h.Z)((function e(t,n){(0,d.Z)(this,e),this._coordinateBrand=void 0,this.top=t,this.left=n})),Ct=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e,i){var r;return(0,d.Z)(this,n),(r=t.call(this,e))._viewDomNode=i,r._widgets={},r.domNode=(0,Q.X)(document.createElement("div")),ne.write(r.domNode,1),r.domNode.setClassName("contentWidgets"),r.domNode.setPosition("absolute"),r.domNode.setTop(0),r.overflowingContentWidgetsDomNode=(0,Q.X)(document.createElement("div")),ne.write(r.overflowingContentWidgetsDomNode,2),r.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),r}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this),this._widgets={}}},{key:"onConfigurationChanged",value:function(e){for(var t=0,n=Object.keys(this._widgets);t0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}},{key:"_layoutBoxInViewport",value:function(e,t,n,i,r){var o=e.top,a=o,s=t.top+this._lineHeight,l=o-i,u=a>=i,c=s,d=r.viewportHeight-s>=i,h=e.left,f=t.left;return h+n>r.scrollLeft+r.viewportWidth&&(h=r.scrollLeft+r.viewportWidth-n),f+n>r.scrollLeft+r.viewportWidth&&(f=r.scrollLeft+r.viewportWidth-n),ho){var s=a-(o-i);a-=s,n-=s}if(a=22,C=c+r<=d.height-22;return this._fixedOverflowWidgets?{fitsAbove:k,aboveTop:Math.max(u,22),aboveLeft:g,fitsBelow:C,belowTop:c,belowLeft:b}:{fitsAbove:k,aboveTop:a,aboveLeft:p,fitsBelow:C,belowTop:s,belowLeft:y}}},{key:"_prepareRenderWidgetAtExactPositionOverflowing",value:function(e){return new kt(e.top,e.left+this._contentLeft)}},{key:"_getTopAndBottomLeft",value:function(e){if(!this._viewRange)return[null,null];var t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||0===t.length)return[null,null];var n,i=t[0],r=t[0],a=(0,o.Z)(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;s.lineNumberr.lineNumber&&(r=s)}}catch(_){a.e(_)}finally{a.f()}var l,u=1073741824,c=(0,o.Z)(i.ranges);try{for(c.s();!(l=c.n()).done;){var d=l.value;d.lefte.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}},{key:"prepareRender",value:function(e){this._renderData=this._prepareRenderWidget(e)}},{key:"render",value:function(e){if(!this._renderData)return this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),void("function"===typeof this._actual.afterRender&&St(this._actual.afterRender,this._actual,null));this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),"function"===typeof this._actual.afterRender&&St(this._actual.afterRender,this._actual,this._renderData.position)}}]),e}();function St(e,t){try{for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r=this._renderData.length?"":this._renderData[n]}},{key:"_shouldRenderInMargin",value:function(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}},{key:"_shouldRenderInContent",value:function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}]),n}(Ye),Lt=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,h.Z)(n,[{key:"_renderOne",value:function(e){var t="current-line"+(this._shouldRenderOther()?" current-line-both":"");return'')}},{key:"_shouldRenderThis",value:function(){return this._shouldRenderInContent()}},{key:"_shouldRenderOther",value:function(){return this._shouldRenderInMargin()}}]),n}(xt),Nt=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,h.Z)(n,[{key:"_renderOne",value:function(e){var t="current-line"+(this._shouldRenderInMargin()?" current-line-margin":"")+(this._shouldRenderOther()?" current-line-margin-both":"");return'')}},{key:"_shouldRenderThis",value:function(){return!0}},{key:"_shouldRenderOther",value:function(){return this._shouldRenderInContent()}}]),n}(xt);(0,Je.Ic)((function(e,t){var n=e.getColor(Xe.Kh);if(n&&(t.addRule(".monaco-editor .view-overlays .current-line { background-color: ".concat(n,"; }")),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: ".concat(n,"; border: none; }"))),!n||n.isTransparent()||e.defines(Xe.Mm)){var i=e.getColor(Xe.Mm);i&&(t.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid ".concat(i,"; }")),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ".concat(i,"; }")),(0,he.c3)(e.type)&&(t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}}));var Dt=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;(0,d.Z)(this,n),(i=t.call(this))._context=e;var r=i._context.configuration.options;return i._lineHeight=r.get(61),i._typicalHalfwidthCharacterWidth=r.get(46).typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler((0,a.Z)(i)),i}return(0,h.Z)(n,[{key:"dispose",value:function(){this._context.removeEventHandler(this),this._renderResult=null,(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options;return this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}},{key:"onDecorationsChanged",value:function(e){return!0}},{key:"onFlushed",value:function(e){return!0}},{key:"onLinesChanged",value:function(e){return!0}},{key:"onLinesDeleted",value:function(e){return!0}},{key:"onLinesInserted",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return e.scrollTopChanged||e.scrollWidthChanged}},{key:"onZonesChanged",value:function(e){return!0}},{key:"prepareRender",value:function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,r=0,o=t.length;rt.options.zIndex)return 1;var n=e.options.className,i=t.options.className;return ni?1:Le.e.compareRangesUsingStarts(e.range,t.range)}));for(var s=e.visibleRange.startLineNumber,l=e.visibleRange.endLineNumber,u=[],c=s;c<=l;c++){u[c-s]=""}this._renderWholeLineDecorations(e,n,u),this._renderNormalDecorations(e,n,u),this._renderResult=u}},{key:"_renderWholeLineDecorations",value:function(e,t,n){for(var i=String(this._lineHeight),r=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,a=0,s=t.length;a',c=Math.max(l.range.startLineNumber,r),d=Math.min(l.range.endLineNumber,o),h=c;h<=d;h++){n[h-r]+=u}}}},{key:"_renderNormalDecorations",value:function(e,t,n){for(var i=String(this._lineHeight),r=e.visibleRange.startLineNumber,o=null,a=!1,s=null,l=0,u=t.length;l';a[d]+=y}}}}},{key:"render",value:function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}]),n}(Ye),Et=n(27338),It=n(32379),Tt=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,o){var a;(0,d.Z)(this,n);var s=(a=t.call(this,e))._context.configuration.options,l=s.get(94),u=s.get(69),c=s.get(36),h=s.get(97),f={listenOnDomNode:r.domNode,className:"editor-scrollable "+(0,Je.m6)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:l.vertical,horizontal:l.horizontal,verticalHasArrows:l.verticalHasArrows,horizontalHasArrows:l.horizontalHasArrows,verticalScrollbarSize:l.verticalScrollbarSize,verticalSliderSize:l.verticalSliderSize,horizontalScrollbarSize:l.horizontalScrollbarSize,horizontalSliderSize:l.horizontalSliderSize,handleMouseWheel:l.handleMouseWheel,alwaysConsumeMouseWheel:l.alwaysConsumeMouseWheel,arrowSize:l.arrowSize,mouseWheelScrollSensitivity:u,fastScrollSensitivity:c,scrollPredominantAxis:h,scrollByPage:l.scrollByPage};a.scrollbar=a._register(new Et.$Z(i.domNode,f,a._context.viewLayout.getScrollable())),ne.write(a.scrollbar.getDomNode(),5),a.scrollbarDomNode=(0,Q.X)(a.scrollbar.getDomNode()),a.scrollbarDomNode.setPosition("absolute"),a._setLayout();var p=function(e,t,n){var i={};if(t){var r=e.scrollTop;r&&(i.scrollTop=a._context.viewLayout.getCurrentScrollTop()+r,e.scrollTop=0)}if(n){var o=e.scrollLeft;o&&(i.scrollLeft=a._context.viewLayout.getCurrentScrollLeft()+o,e.scrollLeft=0)}a._context.viewModel.viewLayout.setScrollPosition(i,1)};return a._register(_.addDisposableListener(r.domNode,"scroll",(function(e){return p(r.domNode,!0,!0)}))),a._register(_.addDisposableListener(i.domNode,"scroll",(function(e){return p(i.domNode,!0,!1)}))),a._register(_.addDisposableListener(o.domNode,"scroll",(function(e){return p(o.domNode,!0,!1)}))),a._register(_.addDisposableListener(a.scrollbarDomNode.domNode,"scroll",(function(e){return p(a.scrollbarDomNode.domNode,!0,!1)}))),a}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"_setLayout",value:function(){var e=this._context.configuration.options,t=e.get(133);this.scrollbarDomNode.setLeft(t.contentLeft),"right"===e.get(67).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}},{key:"getOverviewRulerLayoutInfo",value:function(){return this.scrollbar.getOverviewRulerLayoutInfo()}},{key:"getDomNode",value:function(){return this.scrollbarDomNode}},{key:"delegateVerticalScrollbarPointerDown",value:function(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}},{key:"onConfigurationChanged",value:function(e){if(e.hasChanged(94)||e.hasChanged(69)||e.hasChanged(36)){var t=this._context.configuration.options,n=t.get(94),i=t.get(69),r=t.get(36),o=t.get(97),a={vertical:n.vertical,horizontal:n.horizontal,verticalScrollbarSize:n.verticalScrollbarSize,horizontalScrollbarSize:n.horizontalScrollbarSize,scrollByPage:n.scrollByPage,handleMouseWheel:n.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:r,scrollPredominantAxis:o};this.scrollbar.updateOptions(a)}return e.hasChanged(133)&&this._setLayout(),!0}},{key:"onScrollChanged",value:function(e){return!0}},{key:"onThemeChanged",value:function(e){return this.scrollbar.updateClassName("editor-scrollable "+(0,Je.m6)(this._context.theme.type)),!0}},{key:"prepareRender",value:function(e){}},{key:"render",value:function(e){this.scrollbar.renderNow()}}]),n}(te);(0,Je.Ic)((function(e,t){var n=e.getColor(It._wn);n&&t.addRule("\n\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\tbox-shadow: ".concat(n," 0 6px 6px -6px inset;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\tbox-shadow: ").concat(n," 6px 0 6px -6px inset;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .shadow.top.left {\n\t\t\t\tbox-shadow: ").concat(n," 6px 6px 6px -6px inset;\n\t\t\t}\n\t\t"));var i=e.getColor(It.etL);i&&t.addRule("\n\t\t\t.monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\tbackground: ".concat(i,";\n\t\t\t}\n\t\t"));var r=e.getColor(It.ABB);r&&t.addRule("\n\t\t\t.monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\tbackground: ".concat(r,";\n\t\t\t}\n\t\t"));var o=e.getColor(It.ynu);o&&t.addRule("\n\t\t\t.monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\tbackground: ".concat(o,";\n\t\t\t}\n\t\t"))}));var Ot=(0,h.Z)((function e(t,n,i){(0,d.Z)(this,e),this._decorationToRenderBrand=void 0,this.startLineNumber=+t,this.endLineNumber=+n,this.className=String(i)})),At=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,h.Z)(n,[{key:"_render",value:function(e,t,n){for(var i=[],r=e;r<=t;r++){i[r-e]=[]}if(0===n.length)return i;n.sort((function(e,t){return e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className',a=[],s=t;s<=n;s++){var l=s-t,u=i[l];0===u.length?a[l]="":a[l]='=this._renderResult.length?"":this._renderResult[n]}}]),n}(At),Mt=n(93433),Rt=n(85294),Zt=n(99825),Ft=n(38050),Bt=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;(0,d.Z)(this,n),(i=t.call(this))._context=e,i._primaryPosition=null;var r=i._context.configuration.options,o=r.get(134),s=r.get(46);return i._lineHeight=r.get(61),i._spaceWidth=s.spaceWidth,i._maxIndentLeft=-1===o.wrappingColumn?-1:o.wrappingColumn*s.typicalHalfwidthCharacterWidth,i._bracketPairGuideOptions=r.get(13),i._renderResult=null,i._context.addEventHandler((0,a.Z)(i)),i}return(0,h.Z)(n,[{key:"dispose",value:function(){this._context.removeEventHandler(this),this._renderResult=null,(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options,n=t.get(134),i=t.get(46);return this._lineHeight=t.get(61),this._spaceWidth=i.spaceWidth,this._maxIndentLeft=-1===n.wrappingColumn?-1:n.wrappingColumn*i.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(13),!0}},{key:"onCursorStateChanged",value:function(e){var t,n=e.selections[0].getPosition();return!(null===(t=this._primaryPosition)||void 0===t?void 0:t.equals(n))&&(this._primaryPosition=n,!0)}},{key:"onDecorationsChanged",value:function(e){return!0}},{key:"onFlushed",value:function(e){return!0}},{key:"onLinesChanged",value:function(e){return!0}},{key:"onLinesDeleted",value:function(e){return!0}},{key:"onLinesInserted",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return e.scrollTopChanged}},{key:"onZonesChanged",value:function(e){return!0}},{key:"onLanguageConfigurationChanged",value:function(e){return!0}},{key:"prepareRender",value:function(e){var t,n,i,r;if(this._bracketPairGuideOptions.indentation||!1!==this._bracketPairGuideOptions.bracketPairs){for(var a=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,l=e.scrollWidth,u=this._lineHeight,c=this._primaryPosition,d=this.getGuidesByLine(a,s,c),h=[],f=a;f<=s;f++){var p,g=f-a,v=d[g],m="",y=null!==(n=null===(t=e.visibleRangeForPosition(new xe.L(f,1)))||void 0===t?void 0:t.left)&&void 0!==n?n:0,_=(0,o.Z)(v);try{for(_.s();!(p=_.n()).done;){var b=p.value,k=-1===b.column?y+(b.visibleColumn-1)*this._spaceWidth:e.visibleRangeForPosition(new xe.L(f,b.column)).left;if(k>l||this._maxIndentLeft>0&&k>this._maxIndentLeft)break;var C=b.horizontalLine?b.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",w=b.horizontalLine?(null!==(r=null===(i=e.visibleRangeForPosition(new xe.L(f,b.horizontalLine.endColumn)))||void 0===i?void 0:i.left)&&void 0!==r?r:k+this._spaceWidth)-k:this._spaceWidth;m+='
')}}catch(S){_.e(S)}finally{_.f()}h[g]=m}this._renderResult=h}else this._renderResult=null}},{key:"getGuidesByLine",value:function(e,t,n){var i=this,r=!1!==this._bracketPairGuideOptions.bracketPairs?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,n,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:!0===this._bracketPairGuideOptions.bracketPairsHorizontal?Ft.s6.Enabled:"active"===this._bracketPairGuideOptions.bracketPairsHorizontal?Ft.s6.EnabledForActive:Ft.s6.Disabled,includeInactive:!0===this._bracketPairGuideOptions.bracketPairs}):null,o=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null,a=0,s=0,l=0;if(!1!==this._bracketPairGuideOptions.highlightActiveIndentation&&n){var u=this._context.viewModel.getActiveIndentGuide(n.lineNumber,e,t);a=u.startLineNumber,s=u.endLineNumber,l=u.indent}for(var c=this._context.viewModel.model.getOptions().indentSize,d=[],h=e;h<=t;h++){var f=new Array;d.push(f);for(var p=r?r[h-e]:[],g=new x.H9(p),v=o?o[h-e]:[],m=function(){var e=(y-1)*c+1,t=("always"===i._bracketPairGuideOptions.highlightActiveIndentation||0===p.length)&&a<=h&&h<=s&&y===l;f.push.apply(f,(0,Mt.Z)(g.takeWhile((function(t){return t.visibleColumn
=this._renderResult.length?"":this._renderResult[n]}}]),n}(Ye);function Wt(e){if(!e||!e.isTransparent())return e}(0,Je.Ic)((function(e,t){var n=e.getColor(Xe.tR);n&&t.addRule(".monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 ".concat(n," inset; }"));var i=e.getColor(Xe.Ym)||n;i&&t.addRule(".monaco-editor .lines-content .core-guide-indent-active { box-shadow: 1px 0 0 0 ".concat(i," inset; }"));var r=[{bracketColor:Xe.zJ,guideColor:Xe.oV,guideColorActive:Xe.Qb},{bracketColor:Xe.Vs,guideColor:Xe.m$,guideColorActive:Xe.m3},{bracketColor:Xe.CE,guideColor:Xe.DS,guideColorActive:Xe.To},{bracketColor:Xe.UP,guideColor:Xe.lS,guideColorActive:Xe.L7},{bracketColor:Xe.r0,guideColor:Xe.Jn,guideColorActive:Xe.HV},{bracketColor:Xe.m1,guideColor:Xe.YF,guideColorActive:Xe.f9}],o=new Zt.W,a=r.map((function(t){var n,i,r=e.getColor(t.bracketColor),o=e.getColor(t.guideColor),a=e.getColor(t.guideColorActive),s=Wt(null!==(n=Wt(o))&&void 0!==n?n:null===r||void 0===r?void 0:r.transparent(.3)),l=Wt(null!==(i=Wt(a))&&void 0!==i?i:r);if(s&&l)return{guideColor:s,guideColorActive:l}})).filter(Rt.$K);if(a.length>0){for(var s=0;s<30;s++){var l=a[s%a.length];t.addRule(".monaco-editor .".concat(o.getInlineClassNameOfLevel(s).replace(/ /g,".")," { --guide-color: ").concat(l.guideColor,"; --guide-color-active: ").concat(l.guideColorActive,"; }"))}t.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),t.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .vertical.".concat(o.activeClassName," { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }")),t.addRule(".monaco-editor .horizontal-top.".concat(o.activeClassName," { border-top: 1px solid var(--guide-color-active); }")),t.addRule(".monaco-editor .horizontal-bottom.".concat(o.activeClassName," { border-bottom: 1px solid var(--guide-color-active); }"))}}));var Vt=function(){function e(){(0,d.Z)(this,e),this._currentVisibleRange=new Le.e(1,1,1,1)}return(0,h.Z)(e,[{key:"getCurrentVisibleRange",value:function(){return this._currentVisibleRange}},{key:"setCurrentVisibleRange",value:function(e){this._currentVisibleRange=e}}]),e}(),Ht=(0,h.Z)((function e(t,n,i,r,o,a,s){(0,d.Z)(this,e),this.minimalReveal=t,this.lineNumber=n,this.startColumn=i,this.endColumn=r,this.startScrollTop=o,this.stopScrollTop=a,this.scrollType=s,this.type="range",this.minLineNumber=n,this.maxLineNumber=n})),jt=(0,h.Z)((function e(t,n,i,r,o){(0,d.Z)(this,e),this.minimalReveal=t,this.selections=n,this.startScrollTop=i,this.stopScrollTop=r,this.scrollType=o,this.type="selections";for(var a=n[0].startLineNumber,s=n[0].endLineNumber,l=1,u=n.length;l0&&(this._horizontalRevealRequest=new jt(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;var i=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(n,i),!0}},{key:"onScrollChanged",value:function(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){var t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),n=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopn)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}},{key:"onTokensChanged",value:function(e){return this._visibleLines.onTokensChanged(e)}},{key:"onZonesChanged",value:function(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}},{key:"onThemeChanged",value:function(e){return this._onOptionsMaybeChanged()}},{key:"getPositionFromDOMInfo",value:function(e,t){var n=this._getViewLineDomNode(e);if(null===n)return null;var i=this._getLineNumberFor(n);if(-1===i)return null;if(i<1||i>this._context.viewModel.getLineCount())return null;if(1===this._context.viewModel.getLineMaxColumn(i))return new xe.L(i,1);var r=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber();if(io)return null;var a=this._visibleLines.getVisibleLine(i).getColumnOfNodeOffset(i,e,t),s=this._context.viewModel.getLineMinColumn(i);return an?-1:this._visibleLines.getVisibleLine(e).getWidth()}},{key:"linesVisibleRangesForRange",value:function(e,t){if(this.shouldRender())return null;var n=e.endLineNumber,i=Le.e.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!i)return null;var r=[],o=0,a=new ge(this.domNode.domNode,this._textRangeRestingSpot),s=0;t&&(s=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new xe.L(i.startLineNumber,1)).lineNumber);for(var l=this._visibleLines.getStartLineNumber(),u=this._visibleLines.getEndLineNumber(),c=i.startLineNumber;c<=i.endLineNumber;c++)if(!(cu)){var d=c===i.startLineNumber?i.startColumn:1,h=c===i.endLineNumber?i.endColumn:this._context.viewModel.getLineMaxColumn(c),f=this._visibleLines.getVisibleLine(c).getVisibleRangesForRange(c,d,h,a);if(f){if(t&&cthis._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,n,new ge(this.domNode.domNode,this._textRangeRestingSpot))}},{key:"visibleRangeForPosition",value:function(e){var t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new se(t.outsideRenderedLine,t.ranges[0].left):null}},{key:"updateLineWidths",value:function(){this._updateLineWidths(!1)}},{key:"_updateLineWidthsFast",value:function(){return this._updateLineWidths(!0)}},{key:"_updateLineWidthsSlow",value:function(){this._updateLineWidths(!1)}},{key:"_updateLineWidths",value:function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=1,r=!0,o=t;o<=n;o++){var a=this._visibleLines.getVisibleLine(o);!e||a.getWidthIsFast()?i=Math.max(i,a.getWidth()):r=!1}return r&&1===t&&n===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(i),r}},{key:"_checkMonospaceFontAssumptions",value:function(){for(var e=-1,t=-1,n=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),r=n;r<=i;r++){var o=this._visibleLines.getVisibleLine(r);if(o.needsMonospaceFontCheck()){var a=o.getWidth();a>t&&(t=a,e=r)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(var s=n;s<=i;s++){this._visibleLines.getVisibleLine(s).onMonospaceAssumptionsInvalidated()}}},{key:"prepareRender",value:function(){throw new Error("Not supported")}},{key:"render",value:function(){throw new Error("Not supported")}},{key:"renderText",value:function(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var n=this._computeScrollLeftToReveal(t);n&&(this._isViewportWrapping||this._ensureMaxLineWidth(n.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:n.scrollLeft},t.scrollType))}}if(this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),N.IJ&&!this._asyncCheckMonospaceFontAssumptions.isScheduled())for(var i=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber(),o=i;o<=r;o++){if(this._visibleLines.getVisibleLine(o).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");var a=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-a),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}},{key:"_ensureMaxLineWidth",value:function(e){var t=Math.ceil(e);this._maxLineWidth0){for(var f=r[0].startLineNumber,p=r[0].endLineNumber,g=1,v=r.length;gd){if(!a)return-1;u=s}else if(5===o||6===o)if(6===o&&c<=s&&l<=h)u=c;else{var _=s-Math.max(5*this._lineHeight,.2*d),b=l-d;u=Math.max(b,_)}else if(1===o||2===o)if(2===o&&c<=s&&l<=h)u=c;else{var k=(s+l)/2;u=Math.max(0,k-d/2)}else u=this._computeMinimumScrolling(c,h,s,l,3===o,4===o);return u}},{key:"_computeScrollLeftToReveal",value:function(e){var t=this._context.viewLayout.getCurrentViewport(),i=t.left,r=i+t.width,a=1073741824,s=0;if("range"===e.type){var l=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!l)return null;var u,c=(0,o.Z)(l.ranges);try{for(c.s();!(u=c.n()).done;){var d=u.value;a=Math.min(a,Math.round(d.left)),s=Math.max(s,Math.round(d.left+d.width))}}catch(_){c.e(_)}finally{c.f()}}else{var h,f=(0,o.Z)(e.selections);try{for(f.s();!(h=f.n()).done;){var p=h.value;if(p.startLineNumber!==p.endLineNumber)return null;var g=this._visibleRangesForLineRange(p.startLineNumber,p.startColumn,p.endColumn);if(!g)return null;var v,m=(0,o.Z)(g.ranges);try{for(m.s();!(v=m.n()).done;){var y=v.value;a=Math.min(a,Math.round(y.left)),s=Math.max(s,Math.round(y.left+y.width))}}catch(_){m.e(_)}finally{m.f()}}}catch(_){f.e(_)}finally{f.f()}}return e.minimalReveal||(a=Math.max(0,a-n.HORIZONTAL_EXTRA_PX),s+=this._revealHorizontalRightPadding),"selections"===e.type&&s-a>t.width?null:{scrollLeft:this._computeMinimumScrolling(i,r,a,s),maxHorizontalOffset:s}}},{key:"_computeMinimumScrolling",value:function(e,t,n,i,r,o){r=!!r,o=!!o;var a=(t|=0)-(e|=0);return(i|=0)-(n|=0)t?Math.max(0,i-a):e:n}}]),n}(te);zt.HORIZONTAL_EXTRA_PX=30;var Ut=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;(0,d.Z)(this,n),(i=t.call(this))._context=e;var r=i._context.configuration.options.get(133);return i._decorationsLeft=r.decorationsLeft,i._decorationsWidth=r.decorationsWidth,i._renderResult=null,i._context.addEventHandler((0,a.Z)(i)),i}return(0,h.Z)(n,[{key:"dispose",value:function(){this._context.removeEventHandler(this),this._renderResult=null,(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options.get(133);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}},{key:"onDecorationsChanged",value:function(e){return!0}},{key:"onFlushed",value:function(e){return!0}},{key:"onLinesChanged",value:function(e){return!0}},{key:"onLinesDeleted",value:function(e){return!0}},{key:"onLinesInserted",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return e.scrollTopChanged}},{key:"onZonesChanged",value:function(e){return!0}},{key:"_getDecorations",value:function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,r=0,o=t.length;r ',o=[],a=t;a<=n;a++){for(var s=a-t,l=i[s],u="",c=0,d=l.length;c';r[a]=l}this._renderResult=r}},{key:"render",value:function(e,t){return this._renderResult?this._renderResult[t-e]:""}}]),n}(At),qt=n(1082),Gt=function(){function e(t,n,i,r){(0,d.Z)(this,e),this._rgba8Brand=void 0,this.r=e._clamp(t),this.g=e._clamp(n),this.b=e._clamp(i),this.a=e._clamp(r)}return(0,h.Z)(e,[{key:"equals",value:function(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}}],[{key:"_clamp",value:function(e){return e<0?0:e>255?255:0|e}}]),e}();Gt.Empty=new Gt(0,0,0,0);var Qt=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;return(0,d.Z)(this,n),(e=t.call(this))._onDidChange=new k.Q5,e.onDidChange=e._onDidChange.event,e._updateColorMap(),e._register(rt.RW.onDidChange((function(t){t.changedColorMap&&e._updateColorMap()}))),e}return(0,h.Z)(n,[{key:"_updateColorMap",value:function(){var e=rt.RW.getColorMap();if(!e)return this._colors=[Gt.Empty],void(this._backgroundIsLight=!0);this._colors=[Gt.Empty];for(var t=1;t=.5,this._onDidChange.fire(void 0)}},{key:"getColor",value:function(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}},{key:"backgroundIsLight",value:function(){return this._backgroundIsLight}}],[{key:"getInstance",value:function(){return this._INSTANCE||(this._INSTANCE=(0,C.dk)(new n)),this._INSTANCE}}]),n}(C.JT);Qt._INSTANCE=null;var $t=n(53599),Yt=function(){for(var e=[],t=32;t<=126;t++)e.push(t);return e.push(65533),e}(),Xt=n(54540),Jt=function(){function e(t,n){(0,d.Z)(this,e),this.scale=n,this._minimapCharRendererBrand=void 0,this.charDataNormal=e.soften(t,.8),this.charDataLight=e.soften(t,50/60)}return(0,h.Z)(e,[{key:"renderChar",value:function(e,t,n,i,r,o,a,s,l,u,c){var d=1*this.scale,h=2*this.scale,f=c?1:h;if(t+d>e.width||n+f>e.height)console.warn("bad render request outside image data");else for(var p=u?this.charDataLight:this.charDataNormal,g=function(e,t){return(e-=32)<0||e>96?t<=2?(e+96)%96:95:e}(i,l),v=4*e.width,m=a.r,y=a.g,_=a.b,b=r.r-m,k=r.g-y,C=r.b-_,w=Math.max(o,s),S=e.data,x=g*d*h,L=n*v+4*t,N=0;Ne.width||n+c>e.height)console.warn("bad render request outside image data");else for(var d=4*e.width,h=r/255*.5,f=o.r,p=o.g,g=o.b,v=f+(i.r-f)*h,m=p+(i.g-p)*h,y=g+(i.b-g)*h,_=Math.max(r,a),b=e.data,k=n*d+4*t,C=0;C>1]=tn[e[n]]<<4|15&tn[e[n+1]];return t},rn={1:(0,en.I)((function(){return nn("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")})),2:(0,en.I)((function(){return nn("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")}))},on=function(){function e(){(0,d.Z)(this,e)}return(0,h.Z)(e,null,[{key:"create",value:function(t,n){return this.lastCreated&&t===this.lastCreated.scale&&n===this.lastFontFamily?this.lastCreated:(i=rn[t]?new Jt(rn[t](),t):e.createFromSampleData(e.createSampleData(n).data,t),this.lastFontFamily=n,this.lastCreated=i,i);var i}},{key:"createSampleData",value:function(e){var t=document.createElement("canvas"),n=t.getContext("2d");t.style.height="".concat(16,"px"),t.height=16,t.width=960,t.style.width="960px",n.fillStyle="#ffffff",n.font="bold ".concat(16,"px ",e),n.textBaseline="middle";var i,r=0,a=(0,o.Z)(Yt);try{for(a.s();!(i=a.n()).done;){var s=i.value;n.fillText(String.fromCharCode(s),r,8),r+=10}}catch(l){a.e(l)}finally{a.f()}return n.getImageData(0,0,960,16)}},{key:"createFromSampleData",value:function(t,n){if(61440!==t.length)throw new Error("Unexpected source in MinimapCharRenderer");var i=e._downsample(t,n);return new Jt(i,n)}},{key:"_downsampleChar",value:function(e,t,n,i,r){for(var o=1*r,a=2*r,s=i,l=0,u=0;u0)for(var u=255/s,c=0;c0,S=Math.floor(t.canvasInnerHeight/t.minimapLineHeight);return new e(u,c,w,k,C,_,1,Math.min(s,S))}if(a&&i!==s){var x=i-n+1;h=Math.floor(x*g/p)}else{var L=o/m;h=Math.floor(L*g/p)}f=t.scrollBeyondLastLine?(s-1)*g/p:Math.max(0,s*g/p-h);var N=(f=Math.min(t.minimapHeight-h,f))/(c-o),D=u*N,E=0;t.scrollBeyondLastLine&&(E=o/m-1);if(v>=s+E){return new e(u,c,f>0,N,D,h,1,s)}var I=Math.max(1,Math.floor(n-D*p/g));return d&&d.scrollHeight===c&&(d.scrollTop>u&&(I=Math.min(I,d.startLineNumber)),d.scrollTop0&&this.minimapLines[n-1]>=e;)n--;for(var i=this.modelLineToMinimapLine(t)-1;i+1t)return null}return[n+1,i+1]}},{key:"decorationLineRangeToMinimapLineRange",value:function(e,t){var n=this.modelLineToMinimapLine(e),i=this.modelLineToMinimapLine(t);return e!==t&&i===n&&(i===this.minimapLines.length?n>1&&n--:i++),[n,i]}},{key:"onLinesDeleted",value:function(e){for(var t=e.toLineNumber-e.fromLineNumber+1,n=this.minimapLines.length,i=0,r=this.minimapLines.length-1;r>=0&&!(this.minimapLines[r]=0&&!(this.minimapLines[n]1){for(var d=0,h=s-1;d0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:n,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(i)}},{key:"_recreateLineSampling",value:function(){this._minimapSelections=null;var e=Boolean(this._samplingState),t=hn.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState),n=(0,i.Z)(t,2),r=n[0],a=n[1];if(this._samplingState=r,e&&this._samplingState){var s,l=(0,o.Z)(a);try{for(l.s();!(s=l.n()).done;){var u=s.value;switch(u.type){case"deleted":this._actual.onLinesDeleted(u.deleteFromLineNumber,u.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(u.insertFromLineNumber,u.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}}catch(c){l.e(c)}finally{l.f()}}}},{key:"getLineCount",value:function(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}},{key:"getRealLineCount",value:function(){return this._context.viewModel.getLineCount()}},{key:"getLineContent",value:function(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}},{key:"getLineMaxColumn",value:function(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}},{key:"getMinimapLinesRenderingData",value:function(e,t,n){if(this._samplingState){for(var i=[],r=0,o=t-e+1;r140)i._model.setScrollTop(n.scrollTop);else{var s=e-t;i._model.setScrollTop(n.getDesiredScrollTopFromDelta(s))}};e.pageY!==t&&o(e.pageY,r),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(function(e){return o(e.pageY,e.pageX)}),(function(){i._slider.toggleClassName("active",!1)}))}}},{key:"scrollDueToTouchEvent",value:function(e){var t=this._domNode.domNode.getBoundingClientRect().top,n=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(n)}},{key:"dispose",value:function(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"_getMinimapDomNodeClassName",value:function(){var e=["minimap"];return"always"===this._model.options.showSlider?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.join(" ")}},{key:"getDomNode",value:function(){return this._domNode}},{key:"_applyLayout",value:function(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}},{key:"_getBuffer",value:function(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new dn(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}},{key:"onDidChangeOptions",value:function(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}},{key:"onSelectionChanged",value:function(){return this._renderDecorations=!0,!0}},{key:"onDecorationsChanged",value:function(){return this._renderDecorations=!0,!0}},{key:"onFlushed",value:function(){return this._lastRenderData=null,!0}},{key:"onLinesChanged",value:function(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}},{key:"onLinesDeleted",value:function(e,t){var n;return null===(n=this._lastRenderData)||void 0===n||n.onLinesDeleted(e,t),!0}},{key:"onLinesInserted",value:function(e,t){var n;return null===(n=this._lastRenderData)||void 0===n||n.onLinesInserted(e,t),!0}},{key:"onScrollChanged",value:function(){return this._renderDecorations=!0,!0}},{key:"onThemeChanged",value:function(){return this._selectionColor=this._theme.getColor(It.ov3),this._renderDecorations=!0,!0}},{key:"onTokensChanged",value:function(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}},{key:"onTokensColorsChanged",value:function(){return this._lastRenderData=null,this._buffers=null,!0}},{key:"onZonesChanged",value:function(){return this._lastRenderData=null,!0}},{key:"render",value:function(e){if(0===this._model.options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var t=ln.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(t.sliderNeeded?"block":"none"),this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)}},{key:"renderDecorations",value:function(e){if(this._renderDecorations){this._renderDecorations=!1;var t=this._model.getSelections();t.sort(Le.e.compareRangesUsingStarts);var n=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);n.sort((function(e,t){return(e.options.zIndex||0)-(t.options.zIndex||0)}));var i=this._model.options,r=i.canvasInnerWidth,o=i.canvasInnerHeight,a=this._model.options.minimapLineHeight,s=this._model.options.minimapCharWidth,l=this._model.getOptions().tabSize,u=this._decorationsCanvas.domNode.getContext("2d");u.clearRect(0,0,r,o);var c=new gn(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(u,t,c,e,a),this._renderDecorationsLineHighlights(u,n,c,e,a);var d=new gn(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(u,t,d,e,a,l,s,r),this._renderDecorationsHighlights(u,n,d,e,a,l,s,r)}}},{key:"_renderSelectionLineHighlights",value:function(e,t,n,i,r){if(this._selectionColor&&!this._selectionColor.isTransparent()){e.fillStyle=this._selectionColor.transparent(.5).toString();var a,s=0,l=0,u=(0,o.Z)(t);try{for(u.s();!(a=u.n()).done;){var c=a.value,d=Math.max(i.startLineNumber,c.startLineNumber),h=Math.min(i.endLineNumber,c.endLineNumber);if(!(d>h)){for(var f=d;f<=h;f++)n.set(f,!0);var p=(d-i.startLineNumber)*r,g=(h-i.startLineNumber)*r+r;l>=p||(l>s&&e.fillRect(M.y0,s,e.canvas.width,l-s),s=p),l=g}}}catch(v){u.e(v)}finally{u.f()}l>s&&e.fillRect(M.y0,s,e.canvas.width,l-s)}}},{key:"_renderDecorationsLineHighlights",value:function(e,t,n,i,r){for(var o=new Map,a=t.length-1;a>=0;a--){var s=t[a],l=s.options.minimap;if(l&&l.position===an.F5.Inline){var u=Math.max(i.startLineNumber,s.range.startLineNumber),c=Math.min(i.endLineNumber,s.range.endLineNumber);if(!(u>c)){var d=l.getColor(this._theme.value);if(d&&!d.isTransparent()){var h=o.get(d.toString());h||(h=d.transparent(.5).toString(),o.set(d.toString(),h)),e.fillStyle=h;for(var f=u;f<=c;f++)if(!n.has(f)){n.set(f,!0);var p=(u-i.startLineNumber)*r;e.fillRect(M.y0,p,e.canvas.width,r)}}}}}}},{key:"_renderSelectionsHighlights",value:function(e,t,n,i,r,a,s,l){if(this._selectionColor&&!this._selectionColor.isTransparent()){var u,c=(0,o.Z)(t);try{for(c.s();!(u=c.n()).done;){var d=u.value,h=Math.max(i.startLineNumber,d.startLineNumber),f=Math.min(i.endLineNumber,d.endLineNumber);if(!(h>f))for(var p=h;p<=f;p++)this.renderDecorationOnLine(e,n,d,this._selectionColor,i,p,r,r,a,s,l)}}catch(g){c.e(g)}finally{c.f()}}}},{key:"_renderDecorationsHighlights",value:function(e,t,n,i,r,a,s,l){var u,c=(0,o.Z)(t);try{for(c.s();!(u=c.n()).done;){var d=u.value,h=d.options.minimap;if(h){var f=Math.max(i.startLineNumber,d.range.startLineNumber),p=Math.min(i.endLineNumber,d.range.endLineNumber);if(!(f>p)){var g=h.getColor(this._theme.value);if(g&&!g.isTransparent())for(var v=f;v<=p;v++)switch(h.position){case an.F5.Inline:this.renderDecorationOnLine(e,n,d.range,g,i,v,r,r,a,s,l);continue;case an.F5.Gutter:var m=(v-i.startLineNumber)*r;this.renderDecoration(e,g,2,m,2,r);continue}}}}}catch(y){c.e(y)}finally{c.f()}}},{key:"renderDecorationOnLine",value:function(e,t,n,i,r,o,a,s,l,u,c){var d=(o-r.startLineNumber)*s;if(!(d+a<0||d>this._model.options.canvasInnerHeight)){var h=n.startLineNumber,f=n.endLineNumber,p=h===o?n.startColumn:1,g=f===o?n.endColumn:this._model.getLineMaxColumn(o),v=this.getXOffsetForPosition(t,o,p,l,u,c),m=this.getXOffsetForPosition(t,o,g,l,u,c);this.renderDecoration(e,i,v,d,m-v,a)}}},{key:"getXOffsetForPosition",value:function(e,t,n,i,r,o){if(1===n)return M.y0;if((n-1)*r>=o)return o;var a=e.get(t);if(!a){var s=this._model.getLineContent(t);a=[M.y0];for(var l=M.y0,u=1;u=o){a[u]=o;break}a[u]=d,l=d}e.set(t,a)}return n-1S?Math.floor((o-S)/2):0,L=v.a/255,N=new Gt(Math.round((v.r-g.r)*L+g.r),Math.round((v.g-g.g)*L+g.g),Math.round((v.b-g.b)*L+g.b),255),D=0,E=[],I=0,T=r-t+1;I=0&&xm)return;var N=g.charCodeAt(b);if(9===N){var D=d-(b+k)%d;k+=D-1,_+=D*o}else if(32===N)_+=o;else for(var E=Ge.K7(N)?2:1,I=0;Im)return}}}]),n}(C.JT),gn=function(){function e(t,n,i){(0,d.Z)(this,e),this._startLineNumber=t,this._endLineNumber=n,this._defaultValue=i,this._values=[];for(var r=0,o=this._endLineNumber-this._startLineNumber+1;rthis._endLineNumber||(this._values[e-this._startLineNumber]=t)}},{key:"get",value:function(e){return ethis._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}]),e}();(0,Je.Ic)((function(e,t){var n=e.getColor(It.CA6);n&&t.addRule(".monaco-editor .minimap-slider .minimap-slider-horizontal { background: ".concat(n,"; }"));var i=e.getColor(It.Xy4);i&&t.addRule(".monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ".concat(i,"; }"));var r=e.getColor(It.brw);r&&t.addRule(".monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ".concat(r,"; }"));var o=e.getColor(It._wn);o&&t.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: ".concat(o," -6px 0 6px -6px inset; }"))}));var vn=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;(0,d.Z)(this,n);var r=(i=t.call(this,e))._context.configuration.options.get(133);return i._widgets={},i._verticalScrollbarWidth=r.verticalScrollbarWidth,i._minimapWidth=r.minimap.minimapWidth,i._horizontalScrollbarHeight=r.horizontalScrollbarHeight,i._editorHeight=r.height,i._editorWidth=r.width,i._domNode=(0,Q.X)(document.createElement("div")),ne.write(i._domNode,4),i._domNode.setClassName("overlayWidgets"),i}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this),this._widgets={}}},{key:"getDomNode",value:function(){return this._domNode}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options.get(133);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}},{key:"addWidget",value:function(e){var t=(0,Q.X)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()}},{key:"setWidgetPosition",value:function(e,t){var n=this._widgets[e.getId()];return n.preference!==t&&(n.preference=t,this.setShouldRender(),!0)}},{key:"removeWidget",value:function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t].domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),this.setShouldRender()}}},{key:"_renderWidget",value:function(e){var t=e.domNode;if(null!==e.preference)if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){var n=t.domNode.clientHeight;t.setTop(this._editorHeight-n-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else 2===e.preference&&(t.setTop(0),t.domNode.style.right="50%");else t.setTop("")}},{key:"prepareRender",value:function(e){}},{key:"render",value:function(e){this._domNode.setWidth(this._editorWidth);for(var t=Object.keys(this._widgets),n=0,i=t.length;n=3){var r=Math.floor(i/3),o=Math.floor(i/3),a=i-r-o,s=e+r;return[[0,e,s,e,e+r+a,e,s,e],[0,r,a,r+a,o,r+a+o,a+o,r+a+o]]}if(2===n){var l=Math.floor(i/2),u=i-l;return[[0,e,e,e,e+l,e,e,e],[0,l,l,l,u,l+u,l+u,l+u]]}return[[0,e,e,e,e,e,e,e],[0,i,i,i,i,i,i,i]]}},{key:"equals",value:function(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}]),e}(),yn=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,d.Z)(this,n),(i=t.call(this,e))._domNode=(0,Q.X)(document.createElement("canvas")),i._domNode.setClassName("decorationsOverviewRuler"),i._domNode.setPosition("absolute"),i._domNode.setLayerHinting(!0),i._domNode.setContain("strict"),i._domNode.setAttribute("aria-hidden","true"),i._updateSettings(!1),i._tokensColorTrackerListener=rt.RW.onDidChange((function(e){e.changedColorMap&&i._updateSettings(!0)})),i._cursorPositions=[],i}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this),this._tokensColorTrackerListener.dispose()}},{key:"_updateSettings",value:function(e){var t=new mn(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(t))&&(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}},{key:"onConfigurationChanged",value:function(e){return this._updateSettings(!1)}},{key:"onCursorStateChanged",value:function(e){this._cursorPositions=[];for(var t=0,n=e.selections.length;tt&&(N=t-l),x=N-l,L=N+l}x>_+1||C!==m?(0!==b&&u.fillRect(c[m],y,d[m],_-y),m=C,y=x,_=L):L>_&&(_=L)}u.fillRect(c[m],y,d[m],_-y)}}catch(W){f.e(W)}finally{f.f()}if(!this._settings.hideCursor&&this._settings.cursorColor){var D=2*this._settings.pixelRatio|0,E=D/2|0,I=this._settings.x[7],T=this._settings.w[7];u.fillStyle=this._settings.cursorColor;for(var O=-100,A=-100,P=0,M=this._cursorPositions.length;Pt&&(Z=t-E);var F=Z-E,B=F+D;F>A+1?(0!==P&&u.fillRect(I,O,T,A-O),O=F,A=B):B>A&&(A=B)}u.fillRect(I,O,T,A-O)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(u.beginPath(),u.lineWidth=1,u.strokeStyle=this._settings.borderColor,u.moveTo(0,0),u.lineTo(0,t),u.stroke(),u.moveTo(0,0),u.lineTo(e,0),u.stroke())}}]),n}(te),_n=n(47799),bn=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e,i){var r;(0,d.Z)(this,n),(r=t.call(this))._context=e;var o=r._context.configuration.options;return r._domNode=(0,Q.X)(document.createElement("canvas")),r._domNode.setClassName(i),r._domNode.setPosition("absolute"),r._domNode.setLayerHinting(!0),r._domNode.setContain("strict"),r._zoneManager=new _n.Tj((function(e){return r._context.viewLayout.getVerticalOffsetForLineNumber(e)})),r._zoneManager.setDOMWidth(0),r._zoneManager.setDOMHeight(0),r._zoneManager.setOuterHeight(r._context.viewLayout.getScrollHeight()),r._zoneManager.setLineHeight(o.get(61)),r._zoneManager.setPixelRatio(o.get(131)),r._context.addEventHandler((0,a.Z)(r)),r}return(0,h.Z)(n,[{key:"dispose",value:function(){this._context.removeEventHandler(this),(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options;return e.hasChanged(61)&&(this._zoneManager.setLineHeight(t.get(61)),this._render()),e.hasChanged(131)&&(this._zoneManager.setPixelRatio(t.get(131)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}},{key:"onFlushed",value:function(e){return this._render(),!0}},{key:"onScrollChanged",value:function(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}},{key:"onZonesChanged",value:function(e){return this._render(),!0}},{key:"getDomNode",value:function(){return this._domNode.domNode}},{key:"setLayout",value:function(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);var t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,(t=this._zoneManager.setDOMHeight(e.height)||t)&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}},{key:"setZones",value:function(e){this._zoneManager.setZones(e),this._render()}},{key:"_render",value:function(){if(0===this._zoneManager.getOuterHeight())return!1;var e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),n=this._zoneManager.resolveColorZones(),i=this._zoneManager.getId2Color(),r=this._domNode.domNode.getContext("2d");return r.clearRect(0,0,e,t),n.length>0&&this._renderOneLane(r,n,i,e),!0}},{key:"_renderOneLane",value:function(e,t,n,i){var r,a=0,s=0,l=0,u=(0,o.Z)(t);try{for(u.s();!(r=u.n()).done;){var c=r.value,d=c.colorId,h=c.from,f=c.to;d!==a?(e.fillRect(0,s,i,l-s),a=d,e.fillStyle=n[a],s=h,l=f):l>=h?l=Math.max(l,f):(e.fillRect(0,s,i,l-s),s=h,l=f)}}catch(p){u.e(p)}finally{u.f()}e.fillRect(0,s,i,l-s)}}]),n}(ee),kn=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;(0,d.Z)(this,n),(i=t.call(this,e)).domNode=(0,Q.X)(document.createElement("div")),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i.domNode.setClassName("view-rulers"),i._renderedRulers=[];var r=i._context.configuration.options;return i._rulers=r.get(93),i._typicalHalfwidthCharacterWidth=r.get(46).typicalHalfwidthCharacterWidth,i}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options;return this._rulers=t.get(93),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}},{key:"onScrollChanged",value:function(e){return e.scrollHeightChanged}},{key:"prepareRender",value:function(e){}},{key:"_ensureRulersCount",value:function(){var e=this._renderedRulers.length,t=this._rulers.length;if(e!==t)if(e0;){var r=(0,Q.X)(document.createElement("div"));r.setClassName("view-ruler"),r.setWidth(n),this.domNode.appendChild(r),this._renderedRulers.push(r),i--}else for(var o=e-t;o>0;){var a=this._renderedRulers.pop();this.domNode.removeChild(a),o--}}},{key:"render",value:function(e){this._ensureRulersCount();for(var t=0,n=this._rulers.length;t0;return this._shouldShow!==e&&(this._shouldShow=e,!0)}},{key:"getDomNode",value:function(){return this._domNode}},{key:"_updateWidth",value:function(){var e=this._context.configuration.options.get(133);0===e.minimap.renderMinimap||e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?this._width=e.width:this._width=e.width-e.verticalScrollbarWidth}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options.get(94);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0}},{key:"onScrollChanged",value:function(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}},{key:"prepareRender",value:function(e){}},{key:"render",value:function(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}]),n}(te);(0,Je.Ic)((function(e,t){var n=e.getColor(It._wn);n&&t.addRule(".monaco-editor .scroll-decoration { box-shadow: ".concat(n," 0 6px 6px -6px inset; }"))}));var wn=(0,h.Z)((function e(t){(0,d.Z)(this,e),this.left=t.left,this.width=t.width,this.startStyle=null,this.endStyle=null})),Sn=(0,h.Z)((function e(t,n){(0,d.Z)(this,e),this.lineNumber=t,this.ranges=n}));function xn(e){return new wn(e)}function Ln(e){return new Sn(e.lineNumber,e.ranges.map(xn))}var Nn=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;(0,d.Z)(this,n),(i=t.call(this))._previousFrameVisibleRangesWithStyle=[],i._context=e;var r=i._context.configuration.options;return i._lineHeight=r.get(61),i._roundedSelection=r.get(92),i._typicalHalfwidthCharacterWidth=r.get(46).typicalHalfwidthCharacterWidth,i._selections=[],i._renderResult=null,i._context.addEventHandler((0,a.Z)(i)),i}return(0,h.Z)(n,[{key:"dispose",value:function(){this._context.removeEventHandler(this),this._renderResult=null,(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options;return this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}},{key:"onCursorStateChanged",value:function(e){return this._selections=e.selections.slice(0),!0}},{key:"onDecorationsChanged",value:function(e){return!0}},{key:"onFlushed",value:function(e){return!0}},{key:"onLinesChanged",value:function(e){return!0}},{key:"onLinesDeleted",value:function(e){return!0}},{key:"onLinesInserted",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return e.scrollTopChanged}},{key:"onZonesChanged",value:function(e){return!0}},{key:"_visibleRangesHaveGaps",value:function(e){for(var t=0,n=e.length;t1)return!0}return!1}},{key:"_enrichVisibleRangesWithStyle",value:function(e,t,n){var i=this._typicalHalfwidthCharacterWidth/4,r=null,o=null;if(n&&n.length>0&&t.length>0){var a=t[0].lineNumber;if(a===e.startLineNumber)for(var s=0;!r&&s=0;u--)n[u].lineNumber===l&&(o=n[u].ranges[0]);r&&!r.startStyle&&(r=null),o&&!o.startStyle&&(o=null)}for(var c=0,d=t.length;c0){var m=t[c-1].ranges[0].left,y=t[c-1].ranges[0].left+t[c-1].ranges[0].width;Dn(f-m)m&&(g.top=1),Dn(p-y)'}},{key:"_actualRenderOneSelection",value:function(e,t,i,r){if(0!==r.length)for(var o=!!r[0].ranges[0].startStyle,a=this._lineHeight.toString(),s=(this._lineHeight-1).toString(),l=r[0].lineNumber,u=r[r.length-1].lineNumber,c=0,d=r.length;c1,c)}}this._previousFrameVisibleRangesWithStyle=a,this._renderResult=t.map((function(e){var t=(0,i.Z)(e,2);return t[0]+t[1]}))}},{key:"render",value:function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}]),n}(Ye);function Dn(e){return e<0?-e:e}Nn.SELECTION_CLASS_NAME="selected-text",Nn.SELECTION_TOP_LEFT="top-left-radius",Nn.SELECTION_BOTTOM_LEFT="bottom-left-radius",Nn.SELECTION_TOP_RIGHT="top-right-radius",Nn.SELECTION_BOTTOM_RIGHT="bottom-right-radius",Nn.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",Nn.ROUNDED_PIECE_WIDTH=10,(0,Je.Ic)((function(e,t){var n=e.getColor(It.hEj);n&&t.addRule(".monaco-editor .focused .selected-text { background-color: ".concat(n,"; }"));var i=e.getColor(It.ES4);i&&t.addRule(".monaco-editor .selected-text { background-color: ".concat(i,"; }"));var r=e.getColor(It.yb5);r&&!r.isTransparent()&&t.addRule(".monaco-editor .view-line span.inline-selected-text { color: ".concat(r,"; }"))}));var En=(0,h.Z)((function e(t,n,i,r,o,a){(0,d.Z)(this,e),this.top=t,this.left=n,this.width=i,this.height=r,this.textContent=o,this.textContentClassName=a})),In=function(){function e(t){(0,d.Z)(this,e),this._context=t;var n=this._context.configuration.options,i=n.get(46);this._cursorStyle=n.get(24),this._lineHeight=n.get(61),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(n.get(27),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,Q.X)(document.createElement("div")),this._domNode.setClassName("cursor ".concat(it.S)),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),(0,Qe.N)(this._domNode,i),this._domNode.setDisplay("none"),this._position=new xe.L(1,1),this._lastRenderedContent="",this._renderData=null}return(0,h.Z)(e,[{key:"getDomNode",value:function(){return this._domNode}},{key:"getPosition",value:function(){return this._position}},{key:"show",value:function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}},{key:"hide",value:function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options,n=t.get(46);return this._cursorStyle=t.get(24),this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),(0,Qe.N)(this._domNode,n),!0}},{key:"onCursorPositionChanged",value:function(e){return this._position=e,!0}},{key:"_getGraphemeAwarePosition",value:function(){var e=this._position,t=e.lineNumber,n=e.column,r=this._context.viewModel.getLineContent(t),o=Ge.J_(r,n-1),a=(0,i.Z)(o,2),s=a[0],l=a[1];return[new xe.L(t,s+1),r.substring(s,l)]}},{key:"_prepareRender",value:function(e){var t="",n=this._getGraphemeAwarePosition(),r=(0,i.Z)(n,2),o=r[0],a=r[1];if(this._cursorStyle===M.d2.Line||this._cursorStyle===M.d2.LineThin){var s,l=e.visibleRangeForPosition(o);if(!l||l.outsideRenderedLine)return null;this._cursorStyle===M.d2.Line?(s=_.computeScreenAwareSize(this._lineCursorWidth>0?this._lineCursorWidth:2))>2&&(t=a):s=_.computeScreenAwareSize(1);var u=l.left;s>=2&&u>=1&&(u-=1);var c=e.getVerticalOffsetForLineNumber(o.lineNumber)-e.bigNumbersDelta;return new En(c,u,s,this._lineHeight,t,"")}var d=e.linesVisibleRangesForRange(new Le.e(o.lineNumber,o.column,o.lineNumber,o.column+a.length),!1);if(!d||0===d.length)return null;var h=d[0];if(h.outsideRenderedLine||0===h.ranges.length)return null;var f=h.ranges[0],p="\t"===a||f.width<1?this._typicalHalfwidthCharacterWidth:f.width,g="";if(this._cursorStyle===M.d2.Block){var v=this._context.viewModel.getViewLineData(o.lineNumber);t=a;var m=v.tokens.findTokenIndexAtOffset(o.column-1);g=v.tokens.getClassName(m)}var y=e.getVerticalOffsetForLineNumber(o.lineNumber)-e.bigNumbersDelta,b=this._lineHeight;return this._cursorStyle!==M.d2.Underline&&this._cursorStyle!==M.d2.UnderlineThin||(y+=this._lineHeight-2,b=2),new En(y,f.left,p,b,t,g)}},{key:"prepareRender",value:function(e){this._renderData=this._prepareRender(e)}},{key:"render",value:function(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName("cursor ".concat(it.S," ").concat(this._renderData.textContentClassName)),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}]),e}(),Tn=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;(0,d.Z)(this,n);var r=(i=t.call(this,e))._context.configuration.options;return i._readOnly=r.get(83),i._cursorBlinking=r.get(22),i._cursorStyle=r.get(24),i._cursorSmoothCaretAnimation=r.get(23),i._selectionIsEmpty=!0,i._isComposingInput=!1,i._isVisible=!1,i._primaryCursor=new In(i._context),i._secondaryCursors=[],i._renderData=[],i._domNode=(0,Q.X)(document.createElement("div")),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._updateDomClassName(),i._domNode.appendChild(i._primaryCursor.getDomNode()),i._startCursorBlinkAnimation=new X._F,i._cursorFlatBlinkInterval=new X.zh,i._blinkingEnabled=!1,i._editorHasFocus=!1,i._updateBlinking(),i}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}},{key:"getDomNode",value:function(){return this._domNode}},{key:"onCompositionStart",value:function(e){return this._isComposingInput=!0,this._updateBlinking(),!0}},{key:"onCompositionEnd",value:function(e){return this._isComposingInput=!1,this._updateBlinking(),!0}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(var n=0,i=this._secondaryCursors.length;nt.length)for(var o=this._secondaryCursors.length-t.length,a=0;an)for(var o=t-n,a=0;a=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}},{key:"normalize",value:function(){if(1!==this.cursors.length){for(var e=this.cursors.slice(0),t=[],n=0,i=e.length;nh&&S.index--}}catch(L){w.e(L)}finally{w.f()}e.splice(h,1),t.splice(d,1),this._removeSecondaryCursor(h-1),r--}}}}}}]),e}(),Hn=(0,h.Z)((function e(t,n,i,r){(0,d.Z)(this,e),this._cursorContextBrand=void 0,this.model=t,this.viewModel=n,this.coordinatesConverter=i,this.cursorConfig=r})),jn=n(99046),zn=n(28776),Un=n(86104),Kn=(0,h.Z)((function e(){(0,d.Z)(this,e),this.type=0})),qn=(0,h.Z)((function e(){(0,d.Z)(this,e),this.type=1})),Gn=function(){function e(t){(0,d.Z)(this,e),this.type=2,this._source=t}return(0,h.Z)(e,[{key:"hasChanged",value:function(e){return this._source.hasChanged(e)}}]),e}(),Qn=(0,h.Z)((function e(t,n){(0,d.Z)(this,e),this.type=3,this.selections=t,this.modelSelections=n})),$n=(0,h.Z)((function e(t){(0,d.Z)(this,e),this.type=4,t?(this.affectsMinimap=t.affectsMinimap,this.affectsOverviewRuler=t.affectsOverviewRuler):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0)})),Yn=(0,h.Z)((function e(){(0,d.Z)(this,e),this.type=5})),Xn=(0,h.Z)((function e(t){(0,d.Z)(this,e),this.type=6,this.isFocused=t})),Jn=(0,h.Z)((function e(){(0,d.Z)(this,e),this.type=7})),ei=(0,h.Z)((function e(){(0,d.Z)(this,e),this.type=8})),ti=(0,h.Z)((function e(t,n){(0,d.Z)(this,e),this.fromLineNumber=t,this.count=n,this.type=9})),ni=(0,h.Z)((function e(t,n){(0,d.Z)(this,e),this.type=10,this.fromLineNumber=t,this.toLineNumber=n})),ii=(0,h.Z)((function e(t,n){(0,d.Z)(this,e),this.type=11,this.fromLineNumber=t,this.toLineNumber=n})),ri=(0,h.Z)((function e(t,n,i,r,o,a,s){(0,d.Z)(this,e),this.source=t,this.minimalReveal=n,this.range=i,this.selections=r,this.verticalType=o,this.revealHorizontal=a,this.scrollType=s,this.type=12})),oi=(0,h.Z)((function e(t){(0,d.Z)(this,e),this.type=13,this.scrollWidth=t.scrollWidth,this.scrollLeft=t.scrollLeft,this.scrollHeight=t.scrollHeight,this.scrollTop=t.scrollTop,this.scrollWidthChanged=t.scrollWidthChanged,this.scrollLeftChanged=t.scrollLeftChanged,this.scrollHeightChanged=t.scrollHeightChanged,this.scrollTopChanged=t.scrollTopChanged})),ai=(0,h.Z)((function e(t){(0,d.Z)(this,e),this.theme=t,this.type=14})),si=(0,h.Z)((function e(t){(0,d.Z)(this,e),this.type=15,this.ranges=t})),li=(0,h.Z)((function e(){(0,d.Z)(this,e),this.type=16})),ui=(0,h.Z)((function e(){(0,d.Z)(this,e),this.type=17})),ci=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;return(0,d.Z)(this,n),(e=t.call(this))._onEvent=e._register(new k.Q5),e.onEvent=e._onEvent.event,e._eventHandlers=[],e._viewEventQueue=null,e._isConsumingViewEventQueue=!1,e._collector=null,e._collectorCnt=0,e._outgoingEvents=[],e}return(0,h.Z)(n,[{key:"emitOutgoingEvent",value:function(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}},{key:"_addOutgoingEvent",value:function(e){for(var t=0,n=this._outgoingEvents.length;t0;){if(this._collector||this._isConsumingViewEventQueue)return;var e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}},{key:"addViewEventHandler",value:function(e){for(var t=0,n=this._eventHandlers.length;t0&&this._emitMany(t)}this._emitOutgoingEvents()}},{key:"emitSingleViewEvent",value:function(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}},{key:"_emitMany",value:function(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}},{key:"_consumeViewEventQueue",value:function(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}},{key:"_doConsumeQueue",value:function(){for(;this._viewEventQueue;){var e=this._viewEventQueue;this._viewEventQueue=null;var t,n=this._eventHandlers.slice(0),i=(0,o.Z)(n);try{for(i.s();!(t=i.n()).done;){t.value.handleEvents(e)}}catch(r){i.e(r)}finally{i.f()}}}}]),n}(C.JT),di=function(){function e(){(0,d.Z)(this,e),this.viewEvents=[],this.outgoingEvents=[]}return(0,h.Z)(e,[{key:"emitViewEvent",value:function(e){this.viewEvents.push(e)}},{key:"emitOutgoingEvent",value:function(e){this.outgoingEvents.push(e)}}]),e}(),hi=function(){function e(t,n,i,r){(0,d.Z)(this,e),this.kind=0,this._oldContentWidth=t,this._oldContentHeight=n,this.contentWidth=i,this.contentHeight=r,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return!this.contentWidthChanged&&!this.contentHeightChanged}},{key:"attemptToMerge",value:function(t){return t.kind!==this.kind?null:new e(this._oldContentWidth,this._oldContentHeight,t.contentWidth,t.contentHeight)}}]),e}(),fi=function(){function e(t,n){(0,d.Z)(this,e),this.kind=1,this.oldHasFocus=t,this.hasFocus=n}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return this.oldHasFocus===this.hasFocus}},{key:"attemptToMerge",value:function(t){return t.kind!==this.kind?null:new e(this.oldHasFocus,t.hasFocus)}}]),e}(),pi=function(){function e(t,n,i,r,o,a,s,l){(0,d.Z)(this,e),this.kind=2,this._oldScrollWidth=t,this._oldScrollLeft=n,this._oldScrollHeight=i,this._oldScrollTop=r,this.scrollWidth=o,this.scrollLeft=a,this.scrollHeight=s,this.scrollTop=l,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}},{key:"attemptToMerge",value:function(t){return t.kind!==this.kind?null:new e(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,t.scrollWidth,t.scrollLeft,t.scrollHeight,t.scrollTop)}}]),e}(),gi=function(){function e(){(0,d.Z)(this,e),this.kind=3}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return!1}},{key:"attemptToMerge",value:function(e){return e.kind!==this.kind?null:this}}]),e}(),vi=function(){function e(){(0,d.Z)(this,e),this.kind=4}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return!1}},{key:"attemptToMerge",value:function(e){return e.kind!==this.kind?null:this}}]),e}(),mi=function(){function e(t,n,i,r,o,a,s){(0,d.Z)(this,e),this.kind=6,this.oldSelections=t,this.selections=n,this.oldModelVersionId=i,this.modelVersionId=r,this.source=o,this.reason=a,this.reachedMaxCursorCount=s}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return e._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}},{key:"attemptToMerge",value:function(t){return t.kind!==this.kind?null:new e(this.oldSelections,t.selections,this.oldModelVersionId,t.modelVersionId,t.source,t.reason,this.reachedMaxCursorCount||t.reachedMaxCursorCount)}}],[{key:"_selectionsAreEqual",value:function(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;var n=e.length;if(n!==t.length)return!1;for(var i=0;i0)for(var e=this._cursors.getSelections(),t=0;tn.MAX_CURSOR_COUNT&&(r=r.slice(0,n.MAX_CURSOR_COUNT),o=!0);var a=Li.from(this._model,this);return this._cursors.setStates(r),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,a,o)}},{key:"setCursorColumnSelectData",value:function(e){this._columnSelectData=e}},{key:"revealPrimary",value:function(e,t,n,i,r,o){var a=this._cursors.getViewPositions(),s=null,l=null;a.length>1?l=this._cursors.getViewSelections():s=Le.e.fromPositions(a[0],a[0]),e.emitViewEvent(new ri(t,n,s,l,i,r,o))}},{key:"saveState",value:function(){for(var e=[],t=this._cursors.getSelections(),n=0,i=t.length;n0){var r=Bn.Vi.fromModelSelections(n.resultingSelection);this.setStates(e,"modelChange",n.isUndoing?5:n.isRedoing?6:2,r)&&this.revealPrimary(e,"modelChange",!1,0,!0,0)}else{var o=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,Bn.Vi.fromModelSelections(o))}}}},{key:"getSelection",value:function(){return this._cursors.getPrimaryCursor().modelState.selection}},{key:"getTopMostViewPosition",value:function(){return this._cursors.getTopMostViewPosition()}},{key:"getBottomMostViewPosition",value:function(){return this._cursors.getBottomMostViewPosition()}},{key:"getCursorColumnSelectData",value:function(){if(this._columnSelectData)return this._columnSelectData;var e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),n=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:n.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,n)}}},{key:"getSelections",value:function(){return this._cursors.getSelections()}},{key:"setSelections",value:function(e,t,n,i){this.setStates(e,t,i,Bn.Vi.fromModelSelections(n))}},{key:"getPrevEditOperationType",value:function(){return this._prevEditOperationType}},{key:"setPrevEditOperationType",value:function(e){this._prevEditOperationType=e}},{key:"_pushAutoClosedAction",value:function(e,t){for(var n=[],i=[],r=0,o=e.length;r0&&this._pushAutoClosedAction(n,i),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}}},{key:"_interpretCommandResult",value:function(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}},{key:"_emitStateChangedIfNecessary",value:function(e,t,n,i,r){var o=Li.from(this._model,this);if(o.equals(i))return!1;var a=this._cursors.getSelections(),s=this._cursors.getViewSelections();if(e.emitViewEvent(new Qn(s,a)),!i||i.cursorState.length!==o.cursorState.length||o.cursorState.some((function(e,t){return!e.modelState.equals(i.cursorState[t].modelState)}))){var l=i?i.cursorState.map((function(e){return e.modelState.selection})):null,u=i?i.modelVersionId:0;e.emitOutgoingEvent(new mi(l,a,u,o.modelVersionId,t||"keyboard",n,r))}return!0}},{key:"_findAutoClosingPairs",value:function(e){if(!e.length)return null;for(var t=[],n=0,i=e.length;n=0)return null;var o=r.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!o)return null;var a=o[1],s=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(a);if(!s||1!==s.length)return null;var l=s[0].open,u=r.text.length-o[2].length-1,c=r.text.lastIndexOf(l,u-1);if(-1===c)return null;t.push([c,u])}return t}},{key:"executeEdits",value:function(e,t,n,r){var o=this,a=null;"snippet"===t&&(a=this._findAutoClosingPairs(n)),a&&(n[0]._isTracked=!0);var s=[],l=[],u=this._model.pushEditOperations(this.getSelections(),n,(function(e){if(a)for(var t=0,n=a.length;t0&&this._pushAutoClosedAction(s,l)}},{key:"_executeEdit",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!this.context.cursorConfig.readOnly){var r=Li.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(o){(0,b.dL)(o)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,n,i,r,!1)&&this.revealPrimary(t,n,!1,0,!0,0)}}},{key:"getAutoClosedCharacters",value:function(){return Ni.getAllAutoClosedCharacters(this._autoClosedActions)}},{key:"startComposition",value:function(e){this._compositionState=new Ii(this._model,this.getSelections())}},{key:"endComposition",value:function(e,t){var n=this,i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit((function(){"keyboard"===t&&n._executeEditOperation(zn.u6.compositionEndWithInterceptors(n._prevEditOperationType,n.context.cursorConfig,n._model,i,n.getSelections(),n.getAutoClosedCharacters()))}),e,t)}},{key:"type",value:function(e,t,n){var i=this;this._executeEdit((function(){if("keyboard"===n)for(var e=t.length,r=0;r=t.length)return!1;if(!t[r].strictContainsRange(e[r]))return!1}return!0}}],[{key:"getAllAutoClosedCharacters",value:function(e){var t,n=[],i=(0,o.Z)(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;n=n.concat(r.getAutoClosedCharactersRanges())}}catch(a){i.e(a)}finally{i.f()}return n}}]),e}(),Di=function(){function e(){(0,d.Z)(this,e)}return(0,h.Z)(e,null,[{key:"executeCommands",value:function(e,t,n){for(var i={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},r=this._innerExecuteCommands(i,n),o=0,a=i.trackedRanges.length;o0&&(a[0]._isTracked=!0);var u=e.model.pushEditOperations(e.selectionsBefore,a,(function(n){for(var i=[],r=0;r0?(i[n].sort(u),c[n]=t[n].computeCursorState(e.model,{getInverseEditOperations:function(){return i[n]},getTrackedSelection:function(t){var n=parseInt(t,10),i=e.model._getTrackedRange(e.trackedRanges[n]);return 0===e.trackedRangesDirection[n]?new G.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new G.Y(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn)}})):c[n]=e.selectionsBefore[n]},h=0;h2&&void 0!==arguments[2]&&arguments[2];Le.e.isEmpty(e)&&""===o||i.push({identifier:{major:t,minor:r++},range:e,text:o,forceMoveMarkers:a,isAutoWhitespaceEdit:n.insertsAutoWhitespace})},a=!1,s={addEditOperation:o,addTrackedEditOperation:function(e,t,n){a=!0,o(e,t,n)},trackSelection:function(t,n){var i,r=G.Y.liftSelection(t);if(r.isEmpty())if("boolean"===typeof n)i=n?2:3;else{var o=e.model.getLineMaxColumn(r.startLineNumber);i=r.startColumn===o?2:3}else i=1;var a=e.trackedRanges.length,s=e.model._setTrackedRange(null,r,i);return e.trackedRanges[a]=s,e.trackedRangesDirection[a]=r.getDirection(),a.toString()}};try{n.getEditOperations(e.model,s)}catch(l){return(0,b.dL)(l),{operations:[],hadTrackedEditOperation:!1}}return{operations:i,hadTrackedEditOperation:a}}},{key:"_getLoserCursorMap",value:function(e){(e=e.slice(0)).sort((function(e,t){return-Le.e.compareRangesUsingEnds(e.range,t.range)}));for(var t={},n=1;nr.identifier.major?i.identifier.major:r.identifier.major).toString()]=!0;for(var a=0;a0&&n--}}return t}}]),e}(),Ei=(0,h.Z)((function e(t,n,i){(0,d.Z)(this,e),this.text=t,this.startSelection=n,this.endSelection=i})),Ii=function(){function e(t,n){(0,d.Z)(this,e),this._original=e._capture(t,n)}return(0,h.Z)(e,[{key:"deduceOutcome",value:function(t,n){if(!this._original)return null;var i=e._capture(t,n);if(!i)return null;if(this._original.length!==i.length)return null;for(var r=[],o=0,a=this._original.length;o0||n.length>0)&&(this._minWidth=-1),e.length+t.length+n.length<=1){var i,r=(0,o.Z)(e);try{for(r.s();!(i=r.n()).done;){var a=i.value;this._insertWhitespace(a)}}catch(S){r.e(S)}finally{r.f()}var s,l=(0,o.Z)(t);try{for(l.s();!(s=l.n()).done;){var u=s.value;this._changeOneWhitespace(u.id,u.newAfterLineNumber,u.newHeight)}}catch(S){l.e(S)}finally{l.f()}var c,d=(0,o.Z)(n);try{for(d.s();!(c=d.n()).done;){var h=c.value,f=this._findWhitespaceIndex(h.id);-1!==f&&this._removeWhitespace(f)}}catch(S){d.e(S)}finally{d.f()}}else{var p,g=new Set,v=(0,o.Z)(n);try{for(v.s();!(p=v.n()).done;){var m=p.value;g.add(m.id)}}catch(S){v.e(S)}finally{v.f()}var y,_=new Map,b=(0,o.Z)(t);try{for(b.s();!(y=b.n()).done;){var k=y.value;_.set(k.id,k)}}catch(S){b.e(S)}finally{b.f()}var C=function(e){var t,n=[],i=(0,o.Z)(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;if(!g.has(r.id)){if(_.has(r.id)){var a=_.get(r.id);r.afterLineNumber=a.newAfterLineNumber,r.height=a.newHeight}n.push(r)}}}catch(S){i.e(S)}finally{i.f()}return n},w=C(this._arr).concat(C(e));w.sort((function(e,t){return e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber})),this._arr=w,this._prefixSumValidIndex=-1}}},{key:"_checkPendingChanges",value:function(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}},{key:"_insertWhitespace",value:function(t){var n=e.findInsertionIndex(this._arr,t.afterLineNumber,t.ordinal);this._arr.splice(n,0,t),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,n-1)}},{key:"_findWhitespaceIndex",value:function(e){for(var t=this._arr,n=0,i=t.length;n