From 6968ae9295353602ccf6f808882ae286072092a7 Mon Sep 17 00:00:00 2001 From: piotrpekala7 <31202938+piotrpekala7@users.noreply.github.com> Date: Tue, 5 May 2020 23:39:24 +0200 Subject: [PATCH] Release 2020.2.0-beta.2 --- gns3server/static/web-ui/ReleaseNotes.txt | 32 ++++++++++++++++++- gns3server/static/web-ui/index.html | 2 +- ...41a2a8.js => main.055de85ba67022440093.js} | 2 +- ...s.map => main.055de85ba67022440093.js.map} | 2 +- 4 files changed, 34 insertions(+), 4 deletions(-) rename gns3server/static/web-ui/{main.aa6cb03c3f73db41a2a8.js => main.055de85ba67022440093.js} (52%) rename gns3server/static/web-ui/{main.aa6cb03c3f73db41a2a8.js.map => main.055de85ba67022440093.js.map} (66%) diff --git a/gns3server/static/web-ui/ReleaseNotes.txt b/gns3server/static/web-ui/ReleaseNotes.txt index 425fd053..615a4002 100644 --- a/gns3server/static/web-ui/ReleaseNotes.txt +++ b/gns3server/static/web-ui/ReleaseNotes.txt @@ -1,6 +1,36 @@ GNS3 WebUI is web implementation of user interface for GNS3 software. -Current version: GNS3 Web UI 2020.2.0 +Current version: GNS3 Web UI 2020.2.0-beta.2 + +What's New +- Drag & drop to add new nodes on topology +- Option to minimize/maximize and hide console widget +- Ability to add IOS templates +- Node names in HTTP console tabs +- Default settings for templates +- Support for adding IOS images +- Node dialog updated +- Messages with description in toasts +- Adding interfaces to cloud nodes +- Changes in notification box mechanism (once per day option) +- Additional tooltips added +- Copy/paste options in console (only Chrome full support) +- More details for server failed connections + +Bug Fixes +- Fix for console icons +- Fix for creating ethernet switches and hubs +- Fix for opening console from context menu +- Qemu configurator now works properly +- Fixes in snap to grid option +- Symbols preview now works correctly +- Error messages in preferences should be displayed +- Default values for New Ethernet devices in configurator +- Fix for wrong adapter types in Qemu +- Fix for fit in view option on Firefox +- Fix for navigation errors + +GNS3 Web UI 2020.2.0-beta.1 What's New - Support for suspended status added diff --git a/gns3server/static/web-ui/index.html b/gns3server/static/web-ui/index.html index da78fb57..f6a817ae 100644 --- a/gns3server/static/web-ui/index.html +++ b/gns3server/static/web-ui/index.html @@ -48,5 +48,5 @@ gtag('config', 'G-5D6FZL9923'); - + diff --git a/gns3server/static/web-ui/main.aa6cb03c3f73db41a2a8.js b/gns3server/static/web-ui/main.055de85ba67022440093.js similarity index 52% rename from gns3server/static/web-ui/main.aa6cb03c3f73db41a2a8.js rename to gns3server/static/web-ui/main.055de85ba67022440093.js index a81c94cd..3b653c14 100644 --- a/gns3server/static/web-ui/main.aa6cb03c3f73db41a2a8.js +++ b/gns3server/static/web-ui/main.055de85ba67022440093.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+/L5":function(n,e,t){var l=t("t1UP").isCustomProperty,o=t("vd7W").TYPE,i=t("4njK").mode,r=o.Ident,a=o.Hash,u=o.Colon,s=o.Semicolon,d=o.Delim,c=33,p=35,f=36,h=38,m=42,v=43,g=47;function b(n){return this.Raw(n,i.exclamationMarkOrSemicolon,!0)}function _(n){return this.Raw(n,i.exclamationMarkOrSemicolon,!1)}function y(){var n=this.scanner.tokenIndex,e=this.Value();return"Raw"!==e.type&&!1===this.scanner.eof&&this.scanner.tokenType!==s&&!1===this.scanner.isDelim(c)&&!1===this.scanner.isBalanceEdge(n)&&this.error(),e}function C(){var n=this.scanner.tokenStart;if(this.scanner.tokenType===d)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case m:case f:case v:case p:case h:this.scanner.next();break;case g:this.scanner.next(),this.scanner.isDelim(g)&&this.scanner.next()}return this.eat(this.scanner.tokenType===a?a:r),this.scanner.substrToCursor(n)}function w(){this.eat(d),this.scanner.skipSC();var n=this.consume(r);return"important"===n||n}n.exports={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var n,e=this.scanner.tokenStart,t=this.scanner.tokenIndex,o=C.call(this),i=l(o),r=i?this.parseCustomProperty:this.parseValue,a=i?_:b,d=!1;return this.scanner.skipSC(),this.eat(u),i||this.scanner.skipSC(),n=r?this.parseWithFallback(y,a):a.call(this,this.scanner.tokenIndex),this.scanner.isDelim(c)&&(d=w.call(this),this.scanner.skipSC()),!1===this.scanner.eof&&this.scanner.tokenType!==s&&!1===this.scanner.isBalanceEdge(t)&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.scanner.tokenStart),important:d,property:o,value:n}},generate:function(n){this.chunk(n.property),this.chunk(":"),this.node(n.value),n.important&&this.chunk(!0===n.important?"!important":"!"+n.important)},walkContext:"declaration"}},"+Kd2":function(n,e,t){var l=t("vd7W").TYPE,o=t("4njK").mode,i=l.Comma;n.exports=function(){var n=this.createList();return this.scanner.skipSC(),n.push(this.Identifier()),this.scanner.skipSC(),this.scanner.tokenType===i&&(n.push(this.Operator()),n.push(this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,o.exclamationMarkOrSemicolon,!1))),n}},"+gEr":function(n,e,t){"use strict";t.d(e,"a",(function(){return r})),t.d(e,"b",(function(){return a}));var l=t("mrSG"),o=t("MGBS"),i=t("zotm"),r={leading:!0,trailing:!1};function a(n,e){return void 0===e&&(e=r),function(t){return t.lift(new u(n,e.leading,e.trailing))}}var u=function(){function n(n,e,t){this.durationSelector=n,this.leading=e,this.trailing=t}return n.prototype.call=function(n,e){return e.subscribe(new s(n,this.durationSelector,this.leading,this.trailing))},n}(),s=function(n){function e(e,t,l,o){var i=n.call(this,e)||this;return i.destination=e,i.durationSelector=t,i._leading=l,i._trailing=o,i._hasValue=!1,i}return l.c(e,n),e.prototype._next=function(n){this._hasValue=!0,this._sendValue=n,this._throttled||(this._leading?this.send():this.throttle(n))},e.prototype.send=function(){var n=this._sendValue;this._hasValue&&(this.destination.next(n),this.throttle(n)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(n){var e=this.tryDurationSelector(n);e&&this.add(this._throttled=Object(i.a)(this,e))},e.prototype.tryDurationSelector=function(n){try{return this.durationSelector(n)}catch(e){return this.destination.error(e),null}},e.prototype.throttlingDone=function(){var n=this._throttled,e=this._trailing;n&&n.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(n,e,t,l,o){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(o.a)},"+ryv":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t("CcnG");e.HotkeyOptions=new l.InjectionToken("HotkeyOptions")},"+tJ4":function(n,e,t){"use strict";t.d(e,"a",(function(){return l}));var l=function(n){return function(e){for(var t=0,l=n.length;t=0}},"/BcF":function(n,e){n.exports={name:"Selector",structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]},parse:function(){var n=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(n)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(n),children:n}},generate:function(n){this.children(n)}}},"/PH2":function(n,e,t){"use strict";t.d(e,"a",(function(){return r}));var l=t("mrSG"),o=t("MGBS"),i=t("zotm");function r(){for(var n=[],e=0;e0){var r=i.indexOf(t);-1!==r&&i.splice(r,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(n){if(0===this.toRespond.length){var e=[n].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(n){var e;try{e=this.project.apply(this,n)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(o.a)},"/POA":function(n,e,t){window,n.exports=function(n){var e={};function t(l){if(e[l])return e[l].exports;var o=e[l]={i:l,l:!1,exports:{}};return n[l].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=n,t.c=e,t.d=function(n,e,l){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:l})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var l=Object.create(null);if(t.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(l,o,(function(e){return n[e]}).bind(null,o));return l},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=33)}([function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t(14);e.IBufferService=l.createDecorator("BufferService"),e.ICoreMouseService=l.createDecorator("CoreMouseService"),e.ICoreService=l.createDecorator("CoreService"),e.IDirtyRowService=l.createDecorator("DirtyRowService"),e.IInstantiationService=l.createDecorator("InstantiationService"),e.ILogService=l.createDecorator("LogService"),e.IOptionsService=l.createDecorator("OptionsService")},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function n(){this._listeners=[],this._disposed=!1}return Object.defineProperty(n.prototype,"event",{get:function(){var n=this;return this._event||(this._event=function(e){return n._listeners.push(e),{dispose:function(){if(!n._disposed)for(var t=0;t>22},e.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?i.stringFromCodePoint(2097151&this.content):""},e.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},e.prototype.setFromCharData=function(n){this.fg=n[r.CHAR_DATA_ATTR_INDEX],this.bg=0;var e=!1;if(n[r.CHAR_DATA_CHAR_INDEX].length>2)e=!0;else if(2===n[r.CHAR_DATA_CHAR_INDEX].length){var t=n[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=t&&t<=56319){var l=n[r.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=l&&l<=57343?this.content=1024*(t-55296)+l-56320+65536|n[r.CHAR_DATA_WIDTH_INDEX]<<22:e=!0}else e=!0}else this.content=n[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|n[r.CHAR_DATA_WIDTH_INDEX]<<22;e&&(this.combinedData=n[r.CHAR_DATA_CHAR_INDEX],this.content=2097152|n[r.CHAR_DATA_WIDTH_INDEX]<<22)},e.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},e}(t(6).AttributeData);e.CellData=a},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function n(){this.fg=0,this.bg=0}return n.toColorRGB=function(n){return[n>>>16&255,n>>>8&255,255&n]},n.fromColorRGB=function(n){return(255&n[0])<<16|(255&n[1])<<8|255&n[2]},n.prototype.clone=function(){var e=new n;return e.fg=this.fg,e.bg=this.bg,e},n.prototype.isInverse=function(){return 67108864&this.fg},n.prototype.isBold=function(){return 134217728&this.fg},n.prototype.isUnderline=function(){return 268435456&this.fg},n.prototype.isBlink=function(){return 536870912&this.fg},n.prototype.isInvisible=function(){return 1073741824&this.fg},n.prototype.isItalic=function(){return 67108864&this.bg},n.prototype.isDim=function(){return 134217728&this.bg},n.prototype.getFgColorMode=function(){return 50331648&this.fg},n.prototype.getBgColorMode=function(){return 50331648&this.bg},n.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},n.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},n.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},n.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},n.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},n.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},n.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},n.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},n}();e.AttributeData=l},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addDisposableDomListener=function(n,e,t,l){return n.addEventListener(e,t,l),{dispose:function(){t&&n.removeEventListener(e,t,l)}}}},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringFromCodePoint=function(n){return n>65535?(n-=65536,String.fromCharCode(55296+(n>>10))+String.fromCharCode(n%1024+56320)):String.fromCharCode(n)},e.utf32ToString=function(n,e,t){void 0===e&&(e=0),void 0===t&&(t=n.length);for(var l="",o=e;o65535?(i-=65536,l+=String.fromCharCode(55296+(i>>10))+String.fromCharCode(i%1024+56320)):l+=String.fromCharCode(i)}return l};var l=function(){function n(){this._interim=0}return n.prototype.clear=function(){this._interim=0},n.prototype.decode=function(n,e){var t=n.length;if(!t)return 0;var l=0,o=0;this._interim&&(56320<=(a=n.charCodeAt(o++))&&a<=57343?e[l++]=1024*(this._interim-55296)+a-56320+65536:(e[l++]=this._interim,e[l++]=a),this._interim=0);for(var i=o;i=t)return this._interim=r,l;var a;56320<=(a=n.charCodeAt(i))&&a<=57343?e[l++]=1024*(r-55296)+a-56320+65536:(e[l++]=r,e[l++]=a)}else e[l++]=r}return l},n}();e.StringToUtf32=l;var o=function(){function n(){this.interim=new Uint8Array(3)}return n.prototype.clear=function(){this.interim.fill(0)},n.prototype.decode=function(n,e){var t=n.length;if(!t)return 0;var l,o,i,r,a=0,u=0,s=0;if(this.interim[0]){var d=!1,c=this.interim[0];c&=192==(224&c)?31:224==(240&c)?15:7;for(var p=0,f=void 0;(f=63&this.interim[++p])&&p<4;)c<<=6,c|=f;for(var h=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,m=h-p;s=t)return 0;if(128!=(192&(f=n[s++]))){s--,d=!0;break}this.interim[p++]=f,c<<=6,c|=63&f}d||(2===h?c<128?s--:e[a++]=c:3===h?c<2048||c>=55296&&c<=57343||(e[a++]=c):c<65536||c>1114111||(e[a++]=c)),this.interim.fill(0)}for(var v=t-4,g=s;g=t)return this.interim[0]=l,a;if(128!=(192&(o=n[g++]))){g--;continue}if((u=(31&l)<<6|63&o)<128){g--;continue}e[a++]=u}else if(224==(240&l)){if(g>=t)return this.interim[0]=l,a;if(128!=(192&(o=n[g++]))){g--;continue}if(g>=t)return this.interim[0]=l,this.interim[1]=o,a;if(128!=(192&(i=n[g++]))){g--;continue}if((u=(15&l)<<12|(63&o)<<6|63&i)<2048||u>=55296&&u<=57343)continue;e[a++]=u}else if(240==(248&l)){if(g>=t)return this.interim[0]=l,a;if(128!=(192&(o=n[g++]))){g--;continue}if(g>=t)return this.interim[0]=l,this.interim[1]=o,a;if(128!=(192&(i=n[g++]))){g--;continue}if(g>=t)return this.interim[0]=l,this.interim[1]=o,this.interim[2]=i,a;if(128!=(192&(r=n[g++]))){g--;continue}if((u=(7&l)<<18|(63&o)<<12|(63&i)<<6|63&r)<65536||u>1114111)continue;e[a++]=u}}return a},n}();e.Utf8ToUtf32=o},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.INVERTED_DEFAULT_COLOR=257,e.DIM_OPACITY=.5,e.CHAR_ATLAS_CELL_SPACING=1},function(n,e,t){"use strict";function l(n){var e=n.toString(16);return e.length<2?"0"+e:e}function o(n,e,t,o){return void 0!==o?"#"+l(n)+l(e)+l(t)+l(o):"#"+l(n)+l(e)+l(t)}function i(n,e,t,l){return void 0===l&&(l=255),(n<<24|e<<16|t<<8|l)>>>0}function r(n){return[n>>24&255,n>>16&255,n>>8&255,255&n]}function a(n){return u(n>>16&255,n>>8&255,255&n)}function u(n,e,t){var l=n/255,o=e/255,i=t/255;return.2126*(l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4))+.7152*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))+.0722*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))}function s(n,e){return n>8),o=a(e>>8);if(s(l,o)>24&255,o=n>>16&255,i=n>>8&255,r=e>>24&255,a=e>>16&255,d=e>>8&255,c=s(u(r,d,a),u(l,o,i));c0||a>0||d>0);)r-=Math.max(0,Math.ceil(.1*r)),a-=Math.max(0,Math.ceil(.1*a)),c=s(u(r,d-=Math.max(0,Math.ceil(.1*d)),a),u(l,o,i));return(r<<24|a<<16|d<<8|255)>>>0}function f(n,e,t){for(var l=n>>24&255,o=n>>16&255,i=n>>8&255,r=e>>24&255,a=e>>16&255,d=e>>8&255,c=s(u(r,d,a),u(l,o,i));c>>0}Object.defineProperty(e,"__esModule",{value:!0}),e.blend=function(n,e){var t=(255&e.rgba)/255;if(1===t)return{css:e.css,rgba:e.rgba};var l=e.rgba>>16&255,r=e.rgba>>8&255,a=n.rgba>>24&255,u=n.rgba>>16&255,s=n.rgba>>8&255,d=a+Math.round(((e.rgba>>24&255)-a)*t),c=u+Math.round((l-u)*t),p=s+Math.round((r-s)*t);return{css:o(d,c,p),rgba:i(d,c,p)}},e.fromCss=function(n){return{css:n,rgba:(parseInt(n.slice(1),16)<<8|255)>>>0}},e.toPaddedHex=l,e.toCss=o,e.toRgba=i,e.fromRgba=r,e.opaque=function(n){var e=(255|n.rgba)>>>0,t=r(e);return{css:o(t[0],t[1],t[2]),rgba:e}},e.rgbRelativeLuminance=a,e.rgbRelativeLuminance2=u,e.contrastRatio=s,e.rgbaToColor=d,e.ensureContrastRatioRgba=c,e.ensureContrastRatio=function(n,e,t){var l=c(n.rgba,e.rgba,t);if(l)return d(l>>24&255,l>>16&255,l>>8&255)},e.reduceLuminance=p,e.increaseLuminance=f},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l="undefined"==typeof navigator,o=l?"node":navigator.userAgent,i=l?"node":navigator.platform;function r(n,e){return n.indexOf(e)>=0}e.isFirefox=!!~o.indexOf("Firefox"),e.isSafari=/^((?!chrome|android).)*safari/i.test(o),e.isMac=r(["Macintosh","MacIntel","MacPPC","Mac68K"],i),e.isIpad="iPad"===i,e.isIphone="iPhone"===i,e.isWindows=r(["Windows","Win16","Win32","WinCE"],i),e.isLinux=i.indexOf("Linux")>=0},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(n){n.NUL="\0",n.SOH="",n.STX="",n.ETX="",n.EOT="",n.ENQ="",n.ACK="",n.BEL="",n.BS="\b",n.HT="\t",n.LF="\n",n.VT="\v",n.FF="\f",n.CR="\r",n.SO="",n.SI="",n.DLE="",n.DC1="",n.DC2="",n.DC3="",n.DC4="",n.NAK="",n.SYN="",n.ETB="",n.CAN="",n.EM="",n.SUB="",n.ESC="",n.FS="",n.GS="",n.RS="",n.US="",n.SP=" ",n.DEL=""}(e.C0||(e.C0={})),function(n){n.PAD="€",n.HOP="",n.BPH="‚",n.NBH="ƒ",n.IND="„",n.NEL="…",n.SSA="†",n.ESA="‡",n.HTS="ˆ",n.HTJ="‰",n.VTS="Š",n.PLD="‹",n.PLU="Œ",n.RI="",n.SS2="Ž",n.SS3="",n.DCS="",n.PU1="‘",n.PU2="’",n.STS="“",n.CCH="”",n.MW="•",n.SPA="–",n.EPA="—",n.SOS="˜",n.SGCI="™",n.SCI="š",n.CSI="›",n.ST="œ",n.OSC="",n.PM="ž",n.APC="Ÿ"}(e.C1||(e.C1={}))},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t(3),o=t(9),i=t(24),r=t(6),a=t(27),u=t(10),s=function(){function n(n,e,t,l,o,i,r,a){this._container=n,this._alpha=l,this._colors=o,this._rendererId=i,this._bufferService=r,this._optionsService=a,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+e+"-layer"),this._canvas.style.zIndex=t.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return n.prototype.dispose=function(){var n;this._container.removeChild(this._canvas),null===(n=this._charAtlas)||void 0===n||n.dispose()},n.prototype._initCanvas=function(){this._ctx=a.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},n.prototype.onOptionsChanged=function(){},n.prototype.onBlur=function(){},n.prototype.onFocus=function(){},n.prototype.onCursorMove=function(){},n.prototype.onGridChanged=function(n,e){},n.prototype.onSelectionChanged=function(n,e,t){void 0===t&&(t=!1)},n.prototype.setColors=function(n){this._refreshCharAtlas(n)},n.prototype._setTransparency=function(n){if(n!==this._alpha){var e=this._canvas;this._alpha=n,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,e),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},n.prototype._refreshCharAtlas=function(n){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=i.acquireCharAtlas(this._optionsService.options,this._rendererId,n,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},n.prototype.resize=function(n){this._scaledCellWidth=n.scaledCellWidth,this._scaledCellHeight=n.scaledCellHeight,this._scaledCharWidth=n.scaledCharWidth,this._scaledCharHeight=n.scaledCharHeight,this._scaledCharLeft=n.scaledCharLeft,this._scaledCharTop=n.scaledCharTop,this._canvas.width=n.scaledCanvasWidth,this._canvas.height=n.scaledCanvasHeight,this._canvas.style.width=n.canvasWidth+"px",this._canvas.style.height=n.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},n.prototype._fillCells=function(n,e,t,l){this._ctx.fillRect(n*this._scaledCellWidth,e*this._scaledCellHeight,t*this._scaledCellWidth,l*this._scaledCellHeight)},n.prototype._fillBottomLineAtCells=function(n,e,t){void 0===t&&(t=1),this._ctx.fillRect(n*this._scaledCellWidth,(e+1)*this._scaledCellHeight-window.devicePixelRatio-1,t*this._scaledCellWidth,window.devicePixelRatio)},n.prototype._fillLeftLineAtCell=function(n,e){this._ctx.fillRect(n*this._scaledCellWidth,e*this._scaledCellHeight,window.devicePixelRatio,this._scaledCellHeight)},n.prototype._strokeRectAtCell=function(n,e,t,l){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(n*this._scaledCellWidth+window.devicePixelRatio/2,e*this._scaledCellHeight+window.devicePixelRatio/2,t*this._scaledCellWidth-window.devicePixelRatio,l*this._scaledCellHeight-window.devicePixelRatio)},n.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},n.prototype._clearCells=function(n,e,t,l){this._alpha?this._ctx.clearRect(n*this._scaledCellWidth,e*this._scaledCellHeight,t*this._scaledCellWidth,l*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(n*this._scaledCellWidth,e*this._scaledCellHeight,t*this._scaledCellWidth,l*this._scaledCellHeight))},n.prototype._fillCharTrueColor=function(n,e,t){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(t),this._ctx.fillText(n.getChars(),e*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},n.prototype._drawChars=function(n,e,t){var i,r,a=this._getContrastColor(n);a||n.isFgRGB()||n.isBgRGB()?this._drawUncachedChars(n,e,t,a):(n.isInverse()?(i=n.isBgDefault()?o.INVERTED_DEFAULT_COLOR:n.getBgColor(),r=n.isFgDefault()?o.INVERTED_DEFAULT_COLOR:n.getFgColor()):(r=n.isBgDefault()?l.DEFAULT_COLOR:n.getBgColor(),i=n.isFgDefault()?l.DEFAULT_COLOR:n.getFgColor()),i+=this._optionsService.options.drawBoldTextInBrightColors&&n.isBold()&&i<8?8:0,this._currentGlyphIdentifier.chars=n.getChars()||l.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=n.getCode()||l.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=r,this._currentGlyphIdentifier.fg=i,this._currentGlyphIdentifier.bold=!!n.isBold(),this._currentGlyphIdentifier.dim=!!n.isDim(),this._currentGlyphIdentifier.italic=!!n.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,e*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(n,e,t))},n.prototype._drawUncachedChars=function(n,e,t,l){if(this._ctx.save(),this._ctx.font=this._getFont(!!n.isBold(),!!n.isItalic()),this._ctx.textBaseline="middle",n.isInverse())if(l)this._ctx.fillStyle=l.css;else if(n.isBgDefault())this._ctx.fillStyle=u.opaque(this._colors.background).css;else if(n.isBgRGB())this._ctx.fillStyle="rgb("+r.AttributeData.toColorRGB(n.getBgColor()).join(",")+")";else{var i=n.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&n.isBold()&&i<8&&(i+=8),this._ctx.fillStyle=this._colors.ansi[i].css}else if(l)this._ctx.fillStyle=l.css;else if(n.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(n.isFgRGB())this._ctx.fillStyle="rgb("+r.AttributeData.toColorRGB(n.getFgColor()).join(",")+")";else{var a=n.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&n.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}this._clipRow(t),n.isDim()&&(this._ctx.globalAlpha=o.DIM_OPACITY),this._ctx.fillText(n.getChars(),e*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},n.prototype._clipRow=function(n){this._ctx.beginPath(),this._ctx.rect(0,n*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},n.prototype._getFont=function(n,e){return(e?"italic":"")+" "+(n?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},n.prototype._getContrastColor=function(n){if(1!==this._optionsService.options.minimumContrastRatio){var e=this._colors.contrastCache.getColor(n.bg,n.fg);if(void 0!==e)return e||void 0;var t=n.getFgColor(),l=n.getFgColorMode(),o=n.getBgColor(),i=n.getBgColorMode(),r=!!n.isInverse(),a=!!n.isInverse();if(r){var s=t;t=o,o=s;var d=l;l=i,i=d}var c=this._resolveBackgroundRgba(i,o,r),p=this._resolveForegroundRgba(l,t,r,a),f=u.ensureContrastRatioRgba(c,p,this._optionsService.options.minimumContrastRatio);if(f){var h={css:u.toCss(f>>24&255,f>>16&255,f>>8&255),rgba:f};return this._colors.contrastCache.setColor(n.bg,n.fg,h),h}this._colors.contrastCache.setColor(n.bg,n.fg,null)}},n.prototype._resolveBackgroundRgba=function(n,e,t){switch(n){case 16777216:case 33554432:return this._colors.ansi[e].rgba;case 50331648:return e<<8;case 0:default:return t?this._colors.foreground.rgba:this._colors.background.rgba}},n.prototype._resolveForegroundRgba=function(n,e,t,l){switch(n){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&l&&e<8&&(e+=8),this._colors.ansi[e].rgba;case 50331648:return e<<8;case 0:default:return t?this._colors.background.rgba:this._colors.foreground.rgba}},n}();e.BaseRenderLayer=s},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l="di$target",o="di$dependencies";function i(n,e,t){e[l]===e?e[o].push({id:n,index:t}):(e[o]=[{id:n,index:t}],e[l]=e)}e.serviceRegistry=new Map,e.getServiceDependencies=function(n){return n[o]||[]},e.createDecorator=function(n){if(e.serviceRegistry.has(n))return e.serviceRegistry.get(n);var t=function(n,e,l){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");i(t,n,l)};return t.toString=function(){return n},e.serviceRegistry.set(n,t),t}},function(n,e,t){"use strict";function l(n,e,t,l){if(void 0===t&&(t=0),void 0===l&&(l=n.length),t>=n.length)return n;l=l>=n.length?n.length:(n.length+l)%n.length;for(var o=t=(n.length+t)%n.length;o>22,2097152&e?this._combined[n].charCodeAt(this._combined[n].length-1):t]},n.prototype.set=function(n,e){this._data[n*a+1]=e[o.CHAR_DATA_ATTR_INDEX],e[o.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[n]=e[1],this._data[n*a+0]=2097152|n|e[o.CHAR_DATA_WIDTH_INDEX]<<22):this._data[n*a+0]=e[o.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[o.CHAR_DATA_WIDTH_INDEX]<<22},n.prototype.getWidth=function(n){return this._data[n*a+0]>>22},n.prototype.hasWidth=function(n){return 12582912&this._data[n*a+0]},n.prototype.getFg=function(n){return this._data[n*a+1]},n.prototype.getBg=function(n){return this._data[n*a+2]},n.prototype.hasContent=function(n){return 4194303&this._data[n*a+0]},n.prototype.getCodePoint=function(n){var e=this._data[n*a+0];return 2097152&e?this._combined[n].charCodeAt(this._combined[n].length-1):2097151&e},n.prototype.isCombined=function(n){return 2097152&this._data[n*a+0]},n.prototype.getString=function(n){var e=this._data[n*a+0];return 2097152&e?this._combined[n]:2097151&e?l.stringFromCodePoint(2097151&e):""},n.prototype.loadCell=function(n,e){var t=n*a;return e.content=this._data[t+0],e.fg=this._data[t+1],e.bg=this._data[t+2],2097152&e.content&&(e.combinedData=this._combined[n]),e},n.prototype.setCell=function(n,e){2097152&e.content&&(this._combined[n]=e.combinedData),this._data[n*a+0]=e.content,this._data[n*a+1]=e.fg,this._data[n*a+2]=e.bg},n.prototype.setCellFromCodePoint=function(n,e,t,l,o){this._data[n*a+0]=e|t<<22,this._data[n*a+1]=l,this._data[n*a+2]=o},n.prototype.addCodepointToCell=function(n,e){var t=this._data[n*a+0];2097152&t?this._combined[n]+=l.stringFromCodePoint(e):(2097151&t?(this._combined[n]=l.stringFromCodePoint(2097151&t)+l.stringFromCodePoint(e),t&=-2097152,t|=2097152):t=e|1<<22,this._data[n*a+0]=t)},n.prototype.insertCells=function(n,e,t){if(e=0;--o)this.setCell(n+e+o,this.loadCell(n+o,l));for(o=0;othis.length){var t=new Uint32Array(n*a);this.length&&t.set(n*a=n&&delete this._combined[i]}}else this._data=new Uint32Array(0),this._combined={};this.length=n}},n.prototype.fill=function(n){this._combined={};for(var e=0;e=0;--n)if(4194303&this._data[n*a+0])return n+(this._data[n*a+0]>>22);return 0},n.prototype.copyCellsFrom=function(n,e,t,l,o){var i=n._data;if(o)for(var r=l-1;r>=0;r--)for(var u=0;u=e&&(this._combined[d-e+t]=n._combined[d])}},n.prototype.translateToString=function(n,e,t){void 0===n&&(n=!1),void 0===e&&(e=0),void 0===t&&(t=this.length),n&&(t=Math.min(t,this.getTrimmedLength()));for(var i="";e>22||1}return i},n}();e.BufferLine=u},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.promptLabel="Terminal input",e.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CHARSETS={},e.DEFAULT_CHARSET=e.CHARSETS.B,e.CHARSETS[0]={"`":"◆",a:"▒",b:"\t",c:"\f",d:"\r",e:"\n",f:"°",g:"±",h:"␤",i:"\v",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},e.CHARSETS.A={"#":"£"},e.CHARSETS.B=null,e.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},e.CHARSETS.C=e.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},e.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},e.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},e.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},e.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},e.CHARSETS.E=e.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},e.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},e.CHARSETS.H=e.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},e.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t(15);e.wcwidth=function(n){var e=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],t=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],o=0|n.control,i=new Uint8Array(65536);l.fill(i,1),i[0]=n.nul,l.fill(i,n.control,1,32),l.fill(i,n.control,127,160),l.fill(i,2,4352,4448),i[9001]=2,i[9002]=2,l.fill(i,2,11904,42192),i[12351]=1,l.fill(i,2,44032,55204),l.fill(i,2,63744,64256),l.fill(i,2,65040,65050),l.fill(i,2,65072,65136),l.fill(i,2,65280,65377),l.fill(i,2,65504,65511);for(var r=0;re[o][1])return!1;for(;o>=l;)if(n>e[t=l+o>>1][1])l=t+1;else{if(!(n=131072&&e<=196605||e>=196608&&e<=262141?2:1;var e}}({nul:0,control:0}),e.getStringCellWidth=function(n){for(var t=0,l=n.length,o=0;o=l)return t+e.wcwidth(i);var r=n.charCodeAt(o);56320<=r&&r<=57343?i=1024*(i-55296)+r-56320+65536:t+=e.wcwidth(r)}t+=e.wcwidth(i)}return t}},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=256,o=function(){function n(n,e){if(void 0===n&&(n=32),void 0===e&&(e=32),this.maxLength=n,this.maxSubParamsLength=e,e>l)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(n),this.length=0,this._subParams=new Int32Array(e),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(n),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return n.fromArray=function(e){var t=new n;if(!e.length)return t;for(var l=e[0]instanceof Array?1:0;l>8,l=255&this._subParamsIdx[e];l-t>0&&n.push(Array.prototype.slice.call(this._subParams,t,l))}return n},n.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},n.prototype.addParam=function(n){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(n<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=n>2147483647?2147483647:n}},n.prototype.addSubParam=function(n){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(n<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=n>2147483647?2147483647:n,this._subParamsIdx[this.length-1]++}},n.prototype.hasSubParams=function(n){return(255&this._subParamsIdx[n])-(this._subParamsIdx[n]>>8)>0},n.prototype.getSubParams=function(n){var e=this._subParamsIdx[n]>>8,t=255&this._subParamsIdx[n];return t-e>0?this._subParams.subarray(e,t):null},n.prototype.getSubParamsAll=function(){for(var n={},e=0;e>8,l=255&this._subParamsIdx[e];l-t>0&&(n[e]=this._subParams.slice(t,l))}return n},n.prototype.addDigit=function(n){var e;if(!(this._rejectDigits||!(e=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var t=this._digitIsSub?this._subParams:this.params,l=t[e-1];t[e-1]=~l?Math.min(10*l+n,2147483647):n}},n}();e.Params=o},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t(22),o=t(8),i=function(){function n(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return n.prototype.addHandler=function(n,e){void 0===this._handlers[n]&&(this._handlers[n]=[]);var t=this._handlers[n];return t.push(e),{dispose:function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}},n.prototype.setHandler=function(n,e){this._handlers[n]=[e]},n.prototype.clearHandler=function(n){this._handlers[n]&&delete this._handlers[n]},n.prototype.setHandlerFallback=function(n){this._handlerFb=n},n.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},n.prototype.reset=function(){2===this._state&&this.end(!1),this._id=-1,this._state=0},n.prototype._start=function(){var n=this._handlers[this._id];if(n)for(var e=n.length-1;e>=0;e--)n[e].start();else this._handlerFb(this._id,"START")},n.prototype._put=function(n,e,t){var l=this._handlers[this._id];if(l)for(var i=l.length-1;i>=0;i--)l[i].put(n,e,t);else this._handlerFb(this._id,"PUT",o.utf32ToString(n,e,t))},n.prototype._end=function(n){var e=this._handlers[this._id];if(e){for(var t=e.length-1;t>=0&&!1===e[t].end(n);t--);for(t--;t>=0;t--)e[t].end(!1)}else this._handlerFb(this._id,"END",n)},n.prototype.start=function(){this.reset(),this._id=-1,this._state=1},n.prototype.put=function(n,e,t){if(3!==this._state){if(1===this._state)for(;e0&&this._put(n,e,t)}},n.prototype.end=function(n){0!==this._state&&(3!==this._state&&(1===this._state&&this._start(),this._end(n)),this._id=-1,this._state=0)},n}();e.OscParser=i;var r=function(){function n(n){this._handler=n,this._data="",this._hitLimit=!1}return n.prototype.start=function(){this._data="",this._hitLimit=!1},n.prototype.put=function(n,e,t){this._hitLimit||(this._data+=o.utf32ToString(n,e,t),this._data.length>l.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},n.prototype.end=function(n){var e;return this._hitLimit?e=!1:n&&(e=this._handler(this._data)),this._data="",this._hitLimit=!1,e},n}();e.OscHandler=r},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PAYLOAD_LIMIT=1e7},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t(8),o=t(20),i=t(22),r=[],a=function(){function n(){this._handlers=Object.create(null),this._active=r,this._ident=0,this._handlerFb=function(){}}return n.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},n.prototype.addHandler=function(n,e){void 0===this._handlers[n]&&(this._handlers[n]=[]);var t=this._handlers[n];return t.push(e),{dispose:function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}},n.prototype.setHandler=function(n,e){this._handlers[n]=[e]},n.prototype.clearHandler=function(n){this._handlers[n]&&delete this._handlers[n]},n.prototype.setHandlerFallback=function(n){this._handlerFb=n},n.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=r,this._ident=0},n.prototype.hook=function(n,e){if(this.reset(),this._ident=n,this._active=this._handlers[n]||r,this._active.length)for(var t=this._active.length-1;t>=0;t--)this._active[t].hook(e);else this._handlerFb(this._ident,"HOOK",e)},n.prototype.put=function(n,e,t){if(this._active.length)for(var o=this._active.length-1;o>=0;o--)this._active[o].put(n,e,t);else this._handlerFb(this._ident,"PUT",l.utf32ToString(n,e,t))},n.prototype.unhook=function(n){if(this._active.length){for(var e=this._active.length-1;e>=0&&!1===this._active[e].unhook(n);e--);for(e--;e>=0;e--)this._active[e].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",n);this._active=r,this._ident=0},n}();e.DcsParser=a;var u=function(){function n(n){this._handler=n,this._data="",this._hitLimit=!1}return n.prototype.hook=function(n){this._params=n.clone(),this._data="",this._hitLimit=!1},n.prototype.put=function(n,e,t){this._hitLimit||(this._data+=l.utf32ToString(n,e,t),this._data.length>i.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},n.prototype.unhook=function(n){var e;return this._hitLimit?e=!1:n&&(e=this._handler(this._data,this._params?this._params:new o.Params)),this._params=void 0,this._data="",this._hitLimit=!1,e},n}();e.DcsHandler=u},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t(25),o=t(43),i=[];e.acquireCharAtlas=function(n,e,t,r,a){for(var u=l.generateConfig(r,a,n,t),s=0;s=0){if(l.configEquals(c.config,u))return c.atlas;1===c.ownedBy.length?(c.atlas.dispose(),i.splice(s,1)):c.ownedBy.splice(d,1);break}}for(s=0;s>12&15),r=16*(d>>8&15),a=16*(d>>4&15),u=16*(15&d))}else i=(s=parseInt(n.substr(1),16))>>24&255,r=s>>16&255,a=s>>8&255,u=255&s;return{rgba:s,css:l.toCss(i,r,a,u)}}return{css:n,rgba:l.toRgba(o[0],o[1],o[2],o[3])}},n}();e.ColorManager=d},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throwIfFalsy=function(n){if(!n)throw new Error("value must not be falsy");return n}},function(n,e,t){"use strict";var l,o=this&&this.__extends||(l=function(n,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)},function(n,e){function t(){this.constructor=n}l(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(e,"__esModule",{value:!0});var i=t(6),r=t(3),a=t(5),u=function(n){function e(e,t,l){var o=n.call(this)||this;return o.content=0,o.combinedData="",o.fg=e.fg,o.bg=e.bg,o.combinedData=t,o._width=l,o}return o(e,n),e.prototype.isCombined=function(){return 2097152},e.prototype.getWidth=function(){return this._width},e.prototype.getChars=function(){return this.combinedData},e.prototype.getCode=function(){return 2097151},e.prototype.setFromCharData=function(n){throw new Error("not implemented")},e.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},e}(i.AttributeData);e.JoinedCellData=u;var s=function(){function n(n){this._bufferService=n,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new a.CellData}return n.prototype.registerCharacterJoiner=function(n){var e={id:this._nextCharacterJoinerId++,handler:n};return this._characterJoiners.push(e),e.id},n.prototype.deregisterCharacterJoiner=function(n){for(var e=0;e1)for(var c=this._getJoinedRanges(l,a,i,e,o),p=0;p1)for(c=this._getJoinedRanges(l,a,i,e,o),p=0;p=this._line.length))return new s(this._line,n)},n.prototype.translateToString=function(n,e,t){return this._line.translateToString(n,e,t)},n}(),s=function(){function n(n,e){this._line=n,this._x=e}return Object.defineProperty(n.prototype,"char",{get:function(){return this._line.getString(this._x)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"width",{get:function(){return this._line.getWidth(this._x)},enumerable:!0,configurable:!0}),n}(),d=function(){function n(n){this._core=n}return n.prototype.addCsiHandler=function(n,e){return this._core.addCsiHandler(n,(function(n){return e(n.toArray())}))},n.prototype.addDcsHandler=function(n,e){return this._core.addDcsHandler(n,(function(n,t){return e(n,t.toArray())}))},n.prototype.addEscHandler=function(n,e){return this._core.addEscHandler(n,e)},n.prototype.addOscHandler=function(n,e){return this._core.addOscHandler(n,e)},n}()},function(n,e,t){"use strict";var l,o=this&&this.__extends||(l=function(n,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)},function(n,e){function t(){this.constructor=n}l(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(e,"__esModule",{value:!0});var i=t(35),r=t(36),a=t(37),u=t(12),s=t(38),d=t(40),c=t(50),p=t(51),f=t(11),h=t(7),m=t(17),v=t(54),g=t(55),b=t(56),_=t(57),y=t(59),C=t(1),w=t(16),S=t(60),x=t(26),k=t(61),E=t(0),T=t(62),R=t(4),I=t(63),D=t(64),F=t(2),O=t(70),M=t(71),N=t(72),A=t(73),P=t(74),q=t(75),L=t(76),j=t(77),V="undefined"!=typeof window?window.document:null,B=function(n){function e(e){void 0===e&&(e={});var t=n.call(this)||this;return t.browser=f,t.mouseEvents=0,t._keyDownHandled=!1,t._blankLine=null,t._onCursorMove=new C.EventEmitter,t._onData=new C.EventEmitter,t._onBinary=new C.EventEmitter,t._onKey=new C.EventEmitter,t._onLineFeed=new C.EventEmitter,t._onRender=new C.EventEmitter,t._onResize=new C.EventEmitter,t._onScroll=new C.EventEmitter,t._onSelectionChange=new C.EventEmitter,t._onTitleChange=new C.EventEmitter,t._onFocus=new C.EventEmitter,t._onBlur=new C.EventEmitter,t.onA11yCharEmitter=new C.EventEmitter,t.onA11yTabEmitter=new C.EventEmitter,t._instantiationService=new P.InstantiationService,t.optionsService=new T.OptionsService(e),t._instantiationService.setService(E.IOptionsService,t.optionsService),t._bufferService=t._instantiationService.createInstance(D.BufferService),t._instantiationService.setService(E.IBufferService,t._bufferService),t._logService=t._instantiationService.createInstance(N.LogService),t._instantiationService.setService(E.ILogService,t._logService),t._coreService=t._instantiationService.createInstance(M.CoreService,(function(){return t.scrollToBottom()})),t._instantiationService.setService(E.ICoreService,t._coreService),t._coreService.onData((function(n){return t._onData.fire(n)})),t._coreService.onBinary((function(n){return t._onBinary.fire(n)})),t._coreMouseService=t._instantiationService.createInstance(q.CoreMouseService),t._instantiationService.setService(E.ICoreMouseService,t._coreMouseService),t._dirtyRowService=t._instantiationService.createInstance(A.DirtyRowService),t._instantiationService.setService(E.IDirtyRowService,t._dirtyRowService),t._setupOptionsListeners(),t._setup(),t._writeBuffer=new L.WriteBuffer((function(n){return t._inputHandler.parse(n)})),t}return o(e,n),Object.defineProperty(e.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onData",{get:function(){return this._onData.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onA11yChar",{get:function(){return this.onA11yCharEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onA11yTab",{get:function(){return this.onA11yTabEmitter.event},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){var e,t,l,o;this._isDisposed||(n.prototype.dispose.call(this),null===(e=this._windowsMode)||void 0===e||e.dispose(),this._windowsMode=void 0,null===(t=this._renderService)||void 0===t||t.dispose(),this._customKeyEventHandler=null,this.write=function(){},null===(o=null===(l=this.element)||void 0===l?void 0:l.parentNode)||void 0===o||o.removeChild(this.element))},e.prototype._setup=function(){var n=this;this._parent=V?V.body:null,this._customKeyEventHandler=null,this.applicationKeypad=!1,this.originMode=!1,this.insertMode=!1,this.wraparoundMode=!0,this.bracketedPasteMode=!1,this.charset=null,this.gcharset=null,this.glevel=0,this.charsets=[null],this.curAttrData=w.DEFAULT_ATTR_DATA.clone(),this._eraseAttrData=w.DEFAULT_ATTR_DATA.clone(),this.params=[],this.currentParam=0,this._userScrolling=!1,this._inputHandler=new s.InputHandler(this,this._bufferService,this._coreService,this._dirtyRowService,this._logService,this.optionsService,this._coreMouseService),this._inputHandler.onCursorMove((function(){return n._onCursorMove.fire()})),this._inputHandler.onLineFeed((function(){return n._onLineFeed.fire()})),this.register(this._inputHandler),this.linkifier=this.linkifier||new c.Linkifier(this._bufferService,this._logService),this.options.windowsMode&&this._enableWindowsMode()},e.prototype._enableWindowsMode=function(){this._windowsMode||(this._windowsMode=this.onLineFeed(S.handleWindowsModeLineFeed.bind(null,this._bufferService)))},Object.defineProperty(e.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!0,configurable:!0}),e.prototype.eraseAttrData=function(){return this._eraseAttrData.bg&=-67108864,this._eraseAttrData.bg|=67108863&this.curAttrData.bg,this._eraseAttrData},e.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},e.prototype._setupOptionsListeners=function(){var n=this;this.optionsService.onOptionChange((function(e){var t,l,o,i,r;switch(e){case"fontFamily":case"fontSize":null===(t=n._renderService)||void 0===t||t.clear(),null===(l=n._charSizeService)||void 0===l||l.measure();break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":n._renderService&&(n._renderService.clear(),n._renderService.onResize(n.cols,n.rows),n.refresh(0,n.rows-1));break;case"rendererType":n._renderService&&(n._renderService.setRenderer(n._createRenderer()),n._renderService.onResize(n.cols,n.rows));break;case"scrollback":n.buffers.resize(n.cols,n.rows),null===(o=n.viewport)||void 0===o||o.syncScrollArea();break;case"screenReaderMode":n.optionsService.options.screenReaderMode?!n._accessibilityManager&&n._renderService&&(n._accessibilityManager=new b.AccessibilityManager(n,n._renderService)):(null===(i=n._accessibilityManager)||void 0===i||i.dispose(),n._accessibilityManager=null);break;case"tabStopWidth":n.buffers.setupTabStops();break;case"theme":n._setTheme(n.optionsService.options.theme);break;case"windowsMode":n.optionsService.options.windowsMode?n._enableWindowsMode():(null===(r=n._windowsMode)||void 0===r||r.dispose(),n._windowsMode=void 0)}}))},e.prototype._onTextAreaFocus=function(n){this.sendFocus&&this._coreService.triggerDataEvent(u.C0.ESC+"[I"),this.updateCursorStyle(n),this.element.classList.add("focus"),this.showCursor(),this._onFocus.fire()},e.prototype.blur=function(){return this.textarea.blur()},e.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.sendFocus&&this._coreService.triggerDataEvent(u.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},e.prototype._initGlobal=function(){var n=this;this._bindKeys(),this.register(h.addDisposableDomListener(this.element,"copy",(function(e){n.hasSelection()&&a.copyHandler(e,n._selectionService)})));var e=function(e){return a.handlePasteEvent(e,n.textarea,n.bracketedPasteMode,n._coreService)};this.register(h.addDisposableDomListener(this.textarea,"paste",e)),this.register(h.addDisposableDomListener(this.element,"paste",e)),this.register(f.isFirefox?h.addDisposableDomListener(this.element,"mousedown",(function(e){2===e.button&&a.rightClickHandler(e,n.textarea,n.screenElement,n._selectionService,n.options.rightClickSelectsWord)})):h.addDisposableDomListener(this.element,"contextmenu",(function(e){a.rightClickHandler(e,n.textarea,n.screenElement,n._selectionService,n.options.rightClickSelectsWord)}))),f.isLinux&&this.register(h.addDisposableDomListener(this.element,"auxclick",(function(e){1===e.button&&a.moveTextAreaUnderMouseCursor(e,n.textarea,n.screenElement)})))},e.prototype._bindKeys=function(){var n=this;this.register(h.addDisposableDomListener(this.textarea,"keyup",(function(e){return n._keyUp(e)}),!0)),this.register(h.addDisposableDomListener(this.textarea,"keydown",(function(e){return n._keyDown(e)}),!0)),this.register(h.addDisposableDomListener(this.textarea,"keypress",(function(e){return n._keyPress(e)}),!0)),this.register(h.addDisposableDomListener(this.textarea,"compositionstart",(function(){return n._compositionHelper.compositionstart()}))),this.register(h.addDisposableDomListener(this.textarea,"compositionupdate",(function(e){return n._compositionHelper.compositionupdate(e)}))),this.register(h.addDisposableDomListener(this.textarea,"compositionend",(function(){return n._compositionHelper.compositionend()}))),this.register(this.onRender((function(){return n._compositionHelper.updateCompositionElements()}))),this.register(this.onRender((function(e){return n._queueLinkification(e.start,e.end)})))},e.prototype.open=function(n){var e=this;if(this._parent=n||this._parent,!this._parent)throw new Error("Terminal requires a parent element.");V.body.contains(n)||this._logService.warn("Terminal.open was called on an element that was not attached to the DOM"),this._document=this._parent.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),this._parent.appendChild(this.element);var t=V.createDocumentFragment();this._viewportElement=V.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),t.appendChild(this._viewportElement),this._viewportScrollArea=V.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=V.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=V.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),t.appendChild(this.screenElement),this.textarea=V.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",m.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(h.addDisposableDomListener(this.textarea,"focus",(function(n){return e._onTextAreaFocus(n)}))),this.register(h.addDisposableDomListener(this.textarea,"blur",(function(){return e._onTextAreaBlur()}))),this._helperContainer.appendChild(this.textarea);var l=this._instantiationService.createInstance(j.CoreBrowserService,this.textarea);this._instantiationService.setService(R.ICoreBrowserService,l),this._charSizeService=this._instantiationService.createInstance(I.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(R.ICharSizeService,this._charSizeService),this._compositionView=V.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(i.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(t),this._theme=this.options.theme||this._theme,this.options.theme=void 0,this._colorManager=new x.ColorManager(V,this.options.allowTransparency),this.optionsService.onOptionChange((function(n){return e._colorManager.onOptionsChange(n)})),this._colorManager.setTheme(this._theme);var o=this._createRenderer();this._renderService=this._instantiationService.createInstance(k.RenderService,o,this.rows,this.screenElement),this._instantiationService.setService(R.IRenderService,this._renderService),this._renderService.onRender((function(n){return e._onRender.fire(n)})),this.onResize((function(n){return e._renderService.resize(n.cols,n.rows)})),this._soundService=this._instantiationService.createInstance(v.SoundService),this._instantiationService.setService(R.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(O.MouseService),this._instantiationService.setService(R.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(r.Viewport,(function(n,t){return e.scrollLines(n,t)}),this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this.viewport),this.register(this.onCursorMove((function(){return e._renderService.onCursorMove()}))),this.register(this.onResize((function(){return e._renderService.onResize(e.cols,e.rows)}))),this.register(this.onBlur((function(){return e._renderService.onBlur()}))),this.register(this.onFocus((function(){return e._renderService.onFocus()}))),this.register(this._renderService.onDimensionsChange((function(){return e.viewport.syncScrollArea()}))),this._selectionService=this._instantiationService.createInstance(p.SelectionService,(function(n,t){return e.scrollLines(n,t)}),this.element,this.screenElement),this._instantiationService.setService(R.ISelectionService,this._selectionService),this.register(this._selectionService.onSelectionChange((function(){return e._onSelectionChange.fire()}))),this.register(this._selectionService.onRedrawRequest((function(n){return e._renderService.onSelectionChanged(n.start,n.end,n.columnSelectMode)}))),this.register(this._selectionService.onLinuxMouseSelection((function(n){e.textarea.value=n,e.textarea.focus(),e.textarea.select()}))),this.register(this.onScroll((function(){e.viewport.syncScrollArea(),e._selectionService.refresh()}))),this.register(h.addDisposableDomListener(this._viewportElement,"scroll",(function(){return e._selectionService.refresh()}))),this._mouseZoneManager=this._instantiationService.createInstance(g.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll((function(){return e._mouseZoneManager.clearAll()}))),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.register(h.addDisposableDomListener(this.element,"mousedown",(function(n){return e._selectionService.onMouseDown(n)}))),this.mouseEvents?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new b.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},e.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(d.Renderer,this._colorManager.colors,this.screenElement,this.linkifier);case"dom":return this._instantiationService.createInstance(_.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},e.prototype._setTheme=function(n){var e,t,l;this._theme=n,null===(e=this._colorManager)||void 0===e||e.setTheme(n),null===(t=this._renderService)||void 0===t||t.setColors(this._colorManager.colors),null===(l=this.viewport)||void 0===l||l.onThemeChange(this._colorManager.colors)},e.prototype.bindMouse=function(){var n=this,e=this,t=this.element;function l(n){var t,l,o;if(!(t=e._mouseService.getRawByteCoords(n,e.screenElement,e.cols,e.rows)))return!1;switch(n.overrideType||n.type){case"mousemove":o=32,void 0===n.buttons?(l=3,void 0!==n.button&&(l=n.button<3?n.button:3)):l=1&n.buttons?0:4&n.buttons?1:2&n.buttons?2:3;break;case"mouseup":o=0,l=n.button<3?n.button:3;break;case"mousedown":o=1,l=n.button<3?n.button:3;break;case"wheel":0!==n.deltaY&&(o=n.deltaY<0?0:1),l=4;break;default:return!1}return!(void 0===o||void 0===l||l>4)&&e._coreMouseService.triggerMouseEvent({col:t.x-33,row:t.y-33,button:l,action:o,ctrl:n.ctrlKey,alt:n.altKey,shift:n.shiftKey})}var o={mouseup:null,wheel:null,mousedrag:null,mousemove:null},i=function(e){return l(e),e.buttons||(n._document.removeEventListener("mouseup",o.mouseup),o.mousedrag&&n._document.removeEventListener("mousemove",o.mousedrag)),n.cancel(e)},r=function(e){return l(e),e.preventDefault(),n.cancel(e)},a=function(n){n.buttons&&l(n)},s=function(n){n.buttons||l(n)};this._coreMouseService.onProtocolChange((function(e){n.mouseEvents=e,e?("debug"===n.optionsService.options.logLevel&&n._logService.debug("Binding to mouse events:",n._coreMouseService.explainEvents(e)),n.element.classList.add("enable-mouse-events"),n._selectionService.disable()):(n._logService.debug("Unbinding from mouse events."),n.element.classList.remove("enable-mouse-events"),n._selectionService.enable()),8&e?o.mousemove||(t.addEventListener("mousemove",s),o.mousemove=s):(t.removeEventListener("mousemove",o.mousemove),o.mousemove=null),16&e?o.wheel||(t.addEventListener("wheel",r),o.wheel=r):(t.removeEventListener("wheel",o.wheel),o.wheel=null),2&e?o.mouseup||(o.mouseup=i):(n._document.removeEventListener("mouseup",o.mouseup),o.mouseup=null),4&e?o.mousedrag||(o.mousedrag=a):(n._document.removeEventListener("mousemove",o.mousedrag),o.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(h.addDisposableDomListener(t,"mousedown",(function(e){if(e.preventDefault(),n.focus(),n.mouseEvents&&!n._selectionService.shouldForceSelection(e))return l(e),o.mouseup&&n._document.addEventListener("mouseup",o.mouseup),o.mousedrag&&n._document.addEventListener("mousemove",o.mousedrag),n.cancel(e)}))),this.register(h.addDisposableDomListener(t,"wheel",(function(e){if(o.wheel);else if(!n.buffer.hasScrollback){var t=n.viewport.getLinesScrolled(e);if(0===t)return;for(var l=u.C0.ESC+(n._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(e.deltaY<0?"A":"B"),i="",r=0;r=this.buffer.ybase&&(this._userScrolling=!1);var t=this.buffer.ydisp;this.buffer.ydisp=Math.max(Math.min(this.buffer.ydisp+n,this.buffer.ybase),0),t!==this.buffer.ydisp&&(e||this._onScroll.fire(this.buffer.ydisp),this.refresh(0,this.rows-1))},e.prototype.scrollPages=function(n){this.scrollLines(n*(this.rows-1))},e.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},e.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},e.prototype.scrollToLine=function(n){var e=n-this.buffer.ydisp;0!==e&&this.scrollLines(e)},e.prototype.paste=function(n){a.paste(n,this.textarea,this.bracketedPasteMode,this._coreService)},e.prototype.attachCustomKeyEventHandler=function(n){this._customKeyEventHandler=n},e.prototype.addEscHandler=function(n,e){return this._inputHandler.addEscHandler(n,e)},e.prototype.addDcsHandler=function(n,e){return this._inputHandler.addDcsHandler(n,e)},e.prototype.addCsiHandler=function(n,e){return this._inputHandler.addCsiHandler(n,e)},e.prototype.addOscHandler=function(n,e){return this._inputHandler.addOscHandler(n,e)},e.prototype.registerLinkMatcher=function(n,e,t){var l=this.linkifier.registerLinkMatcher(n,e,t);return this.refresh(0,this.rows-1),l},e.prototype.deregisterLinkMatcher=function(n){this.linkifier.deregisterLinkMatcher(n)&&this.refresh(0,this.rows-1)},e.prototype.registerCharacterJoiner=function(n){var e=this._renderService.registerCharacterJoiner(n);return this.refresh(0,this.rows-1),e},e.prototype.deregisterCharacterJoiner=function(n){this._renderService.deregisterCharacterJoiner(n)&&this.refresh(0,this.rows-1)},Object.defineProperty(e.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!0,configurable:!0}),e.prototype.addMarker=function(n){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+n)},e.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},e.prototype.select=function(n,e,t){this._selectionService.setSelection(n,e,t)},e.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},e.prototype.getSelectionPosition=function(){if(this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},e.prototype.clearSelection=function(){var n;null===(n=this._selectionService)||void 0===n||n.clearSelection()},e.prototype.selectAll=function(){var n;null===(n=this._selectionService)||void 0===n||n.selectAll()},e.prototype.selectLines=function(n,e){var t;null===(t=this._selectionService)||void 0===t||t.selectLines(n,e)},e.prototype._keyDown=function(n){if(this._keyDownHandled=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(n))return!1;if(!this._compositionHelper.keydown(n))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var e=y.evaluateKeyboardEvent(n,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(n),3===e.type||2===e.type){var t=this.rows-1;return this.scrollLines(2===e.type?-t:t),this.cancel(n,!0)}return 1===e.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,n)||(e.cancel&&this.cancel(n,!0),!e.key||(e.key!==u.C0.ETX&&e.key!==u.C0.CR||(this.textarea.value=""),this._onKey.fire({key:e.key,domEvent:n}),this.showCursor(),this._coreService.triggerDataEvent(e.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(n,!0)))},e.prototype._isThirdLevelShift=function(n,e){var t=n.isMac&&!this.options.macOptionIsMeta&&e.altKey&&!e.ctrlKey&&!e.metaKey||n.isWindows&&e.altKey&&e.ctrlKey&&!e.metaKey;return"keypress"===e.type?t:t&&(!e.keyCode||e.keyCode>47)},e.prototype.setgLevel=function(n){this.glevel=n,this.charset=this.charsets[n]},e.prototype.setgCharset=function(n,e){this.charsets[n]=e,this.glevel===n&&(this.charset=e)},e.prototype._keyUp=function(n){this._customKeyEventHandler&&!1===this._customKeyEventHandler(n)||(function(n){return 16===n.keyCode||17===n.keyCode||18===n.keyCode}(n)||this.focus(),this.updateCursorStyle(n))},e.prototype._keyPress=function(n){var e;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(n))return!1;if(this.cancel(n),n.charCode)e=n.charCode;else if(null==n.which)e=n.keyCode;else{if(0===n.which||0===n.charCode)return!1;e=n.which}return!(!e||(n.altKey||n.ctrlKey||n.metaKey)&&!this._isThirdLevelShift(this.browser,n)||(e=String.fromCharCode(e),this._onKey.fire({key:e,domEvent:n}),this.showCursor(),this._coreService.triggerDataEvent(e,!0),0))},e.prototype.bell=function(){var n=this;this._soundBell()&&this._soundService.playBellSound(),this._visualBell()&&(this.element.classList.add("visual-bell-active"),clearTimeout(this._visualBellTimer),this._visualBellTimer=window.setTimeout((function(){n.element.classList.remove("visual-bell-active")}),200))},e.prototype.resize=function(n,e){var t;isNaN(n)||isNaN(e)||(n!==this.cols||e!==this.rows?(n=0;a--)(o=n[a])&&(r=(i<3?o(r):i>3?o(e,t,r):o(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},o=this&&this.__param||function(n,e){return function(t,l){e(t,l,n)}};Object.defineProperty(e,"__esModule",{value:!0});var i=t(4),r=t(0),a=function(){function n(n,e,t,l,o,i){this._textarea=n,this._compositionView=e,this._bufferService=t,this._optionsService=l,this._charSizeService=o,this._coreService=i,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return n.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},n.prototype.compositionupdate=function(n){var e=this;this._compositionView.textContent=n.data,this.updateCompositionElements(),setTimeout((function(){e._compositionPosition.end=e._textarea.value.length}),0)},n.prototype.compositionend=function(){this._finalizeComposition(!0)},n.prototype.keydown=function(n){if(this._isComposing||this._isSendingComposition){if(229===n.keyCode)return!1;if(16===n.keyCode||17===n.keyCode||18===n.keyCode)return!1;this._finalizeComposition(!1)}return 229!==n.keyCode||(this._handleAnyTextareaChanges(),!1)},n.prototype._finalizeComposition=function(n){var e=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,this._clearTextareaPosition(),n){var t={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout((function(){var n;e._isSendingComposition&&(e._isSendingComposition=!1,n=e._isComposing?e._textarea.value.substring(t.start,t.end):e._textarea.value.substring(t.start),e._coreService.triggerDataEvent(n,!0))}),0)}else{this._isSendingComposition=!1;var l=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(l,!0)}},n.prototype._handleAnyTextareaChanges=function(){var n=this,e=this._textarea.value;setTimeout((function(){if(!n._isComposing){var t=n._textarea.value.replace(e,"");t.length>0&&n._coreService.triggerDataEvent(t,!0)}}),0)},n.prototype.updateCompositionElements=function(n){var e=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var t=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),l=this._bufferService.buffer.y*t,o=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=o+"px",this._compositionView.style.top=l+"px",this._compositionView.style.height=t+"px",this._compositionView.style.lineHeight=t+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var i=this._compositionView.getBoundingClientRect();this._textarea.style.left=o+"px",this._textarea.style.top=l+"px",this._textarea.style.width=i.width+"px",this._textarea.style.height=i.height+"px",this._textarea.style.lineHeight=i.height+"px"}n||setTimeout((function(){return e.updateCompositionElements(!0)}),0)}},n.prototype._clearTextareaPosition=function(){this._textarea.style.left="",this._textarea.style.top=""},l([o(2,r.IBufferService),o(3,r.IOptionsService),o(4,i.ICharSizeService),o(5,r.ICoreService)],n)}();e.CompositionHelper=a},function(n,e,t){"use strict";var l,o=this&&this.__extends||(l=function(n,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)},function(n,e){function t(){this.constructor=n}l(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}),i=this&&this.__decorate||function(n,e,t,l){var o,i=arguments.length,r=i<3?e:null===l?l=Object.getOwnPropertyDescriptor(e,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(n,e,t,l);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(r=(i<3?o(r):i>3?o(e,t,r):o(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},r=this&&this.__param||function(n,e){return function(t,l){e(t,l,n)}};Object.defineProperty(e,"__esModule",{value:!0});var a=t(2),u=t(7),s=t(4),d=t(0),c=15,p=function(n){function e(e,t,l,o,i,r,a){var s=n.call(this)||this;return s._scrollLines=e,s._viewportElement=t,s._scrollArea=l,s._bufferService=o,s._optionsService=i,s._charSizeService=r,s._renderService=a,s.scrollBarWidth=0,s._currentRowHeight=0,s._lastRecordedBufferLength=0,s._lastRecordedViewportHeight=0,s._lastRecordedBufferHeight=0,s._lastTouchY=0,s._lastScrollTop=0,s._wheelPartialScroll=0,s._refreshAnimationFrame=null,s._ignoreNextScrollEvent=!1,s.scrollBarWidth=s._viewportElement.offsetWidth-s._scrollArea.offsetWidth||c,s.register(u.addDisposableDomListener(s._viewportElement,"scroll",s._onScroll.bind(s))),setTimeout((function(){return s.syncScrollArea()}),0),s}return o(e,n),e.prototype.onThemeChange=function(n){this._viewportElement.style.backgroundColor=n.background.css},e.prototype._refresh=function(n){var e=this;if(n)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame((function(){return e._innerRefresh()})))},e.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var n=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==n&&(this._lastRecordedBufferHeight=n,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var e=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==e&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=e),this._refreshAnimationFrame=null},e.prototype.syncScrollArea=function(n){if(void 0===n&&(n=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(n);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._bufferService.buffer.ydisp*this._currentRowHeight&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(n)},e.prototype._onScroll=function(n){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var e=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(e,!0)}},e.prototype._bubbleScroll=function(n,e){return!(e<0&&0!==this._viewportElement.scrollTop||e>0&&this._viewportElement.scrollTop+this._lastRecordedViewportHeight0?1:-1),this._wheelPartialScroll%=1):n.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._bufferService.rows),e},e.prototype._applyScrollModifier=function(n,e){var t=this._optionsService.options.fastScrollModifier;return"alt"===t&&e.altKey||"ctrl"===t&&e.ctrlKey||"shift"===t&&e.shiftKey?n*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:n*this._optionsService.options.scrollSensitivity},e.prototype.onTouchStart=function(n){this._lastTouchY=n.touches[0].pageY},e.prototype.onTouchMove=function(n){var e=this._lastTouchY-n.touches[0].pageY;return this._lastTouchY=n.touches[0].pageY,0!==e&&(this._viewportElement.scrollTop+=e,this._bubbleScroll(n,e))},i([r(3,d.IBufferService),r(4,d.IOptionsService),r(5,s.ICharSizeService),r(6,s.IRenderService)],e)}(a.Disposable);e.Viewport=p},function(n,e,t){"use strict";function l(n){return n.replace(/\r?\n/g,"\r")}function o(n,e){return e?"[200~"+n+"[201~":n}function i(n,e,t,i){n=o(n=l(n),t),i.triggerDataEvent(n,!0),e.value=""}function r(n,e,t){var l=t.getBoundingClientRect(),o=n.clientX-l.left-10,i=n.clientY-l.top-10;e.style.position="absolute",e.style.width="20px",e.style.height="20px",e.style.left=o+"px",e.style.top=i+"px",e.style.zIndex="1000",e.focus(),setTimeout((function(){e.style.position="",e.style.width="",e.style.height="",e.style.left="",e.style.top="",e.style.zIndex=""}),200)}Object.defineProperty(e,"__esModule",{value:!0}),e.prepareTextForTerminal=l,e.bracketTextForPaste=o,e.copyHandler=function(n,e){n.clipboardData&&n.clipboardData.setData("text/plain",e.selectionText),n.preventDefault()},e.handlePasteEvent=function(n,e,t,l){n.stopPropagation(),n.clipboardData&&i(n.clipboardData.getData("text/plain"),e,t,l)},e.paste=i,e.moveTextAreaUnderMouseCursor=r,e.rightClickHandler=function(n,e,t,l,o){r(n,e,t),o&&!l.isClickInSelection(n)&&l.selectWordAtCursor(n),e.value=l.selectionText,e.select()}},function(n,e,t){"use strict";var l,o=this&&this.__extends||(l=function(n,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)},function(n,e){function t(){this.constructor=n}l(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(e,"__esModule",{value:!0});var i=t(12),r=t(18),a=t(19),u=t(39),s=t(2),d=t(15),c=t(8),p=t(16),f=t(1),h=t(3),m=t(5),v=t(6),g=t(21),b=t(23),_={"(":0,")":1,"*":2,"+":3,"-":1,".":2},y=function(){function n(n,e,t,l){this._bufferService=n,this._coreService=e,this._logService=t,this._optionsService=l,this._data=new Uint32Array(0)}return n.prototype.hook=function(n){this._data=new Uint32Array(0)},n.prototype.put=function(n,e,t){this._data=d.concat(this._data,n.subarray(e,t))},n.prototype.unhook=function(n){if(n){var e=c.utf32ToString(this._data);switch(this._data=new Uint32Array(0),e){case'"q':return this._coreService.triggerDataEvent(i.C0.ESC+'P1$r0"q'+i.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(i.C0.ESC+'P1$r61"p'+i.C0.ESC+"\\");case"r":return this._coreService.triggerDataEvent(i.C0.ESC+"P1$r"+(this._bufferService.buffer.scrollTop+1)+";"+(this._bufferService.buffer.scrollBottom+1)+"r"+i.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(i.C0.ESC+"P1$r0m"+i.C0.ESC+"\\");case" q":var t={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return this._coreService.triggerDataEvent(i.C0.ESC+"P1$r"+(t-=this._optionsService.options.cursorBlink?1:0)+" q"+i.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",e),this._coreService.triggerDataEvent(i.C0.ESC+"P0$r"+i.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},n}(),C=function(n){function e(e,t,l,o,a,s,d,p){void 0===p&&(p=new u.EscapeSequenceParser);var h=n.call(this)||this;h._terminal=e,h._bufferService=t,h._coreService=l,h._dirtyRowService=o,h._logService=a,h._optionsService=s,h._coreMouseService=d,h._parser=p,h._parseBuffer=new Uint32Array(4096),h._stringDecoder=new c.StringToUtf32,h._utf8Decoder=new c.Utf8ToUtf32,h._workCell=new m.CellData,h._onCursorMove=new f.EventEmitter,h._onLineFeed=new f.EventEmitter,h._onScroll=new f.EventEmitter,h.register(h._parser),h._parser.setCsiHandlerFallback((function(n,e){h._logService.debug("Unknown CSI code: ",{identifier:h._parser.identToString(n),params:e.toArray()})})),h._parser.setEscHandlerFallback((function(n){h._logService.debug("Unknown ESC code: ",{identifier:h._parser.identToString(n)})})),h._parser.setExecuteHandlerFallback((function(n){h._logService.debug("Unknown EXECUTE code: ",{code:n})})),h._parser.setOscHandlerFallback((function(n,e,t){h._logService.debug("Unknown OSC code: ",{identifier:n,action:e,data:t})})),h._parser.setDcsHandlerFallback((function(n,e,t){"HOOK"===e&&(t=t.toArray()),h._logService.debug("Unknown DCS code: ",{identifier:h._parser.identToString(n),action:e,payload:t})})),h._parser.setPrintHandler((function(n,e,t){return h.print(n,e,t)})),h._parser.setCsiHandler({final:"@"},(function(n){return h.insertChars(n)})),h._parser.setCsiHandler({intermediates:" ",final:"@"},(function(n){return h.scrollLeft(n)})),h._parser.setCsiHandler({final:"A"},(function(n){return h.cursorUp(n)})),h._parser.setCsiHandler({intermediates:" ",final:"A"},(function(n){return h.scrollRight(n)})),h._parser.setCsiHandler({final:"B"},(function(n){return h.cursorDown(n)})),h._parser.setCsiHandler({final:"C"},(function(n){return h.cursorForward(n)})),h._parser.setCsiHandler({final:"D"},(function(n){return h.cursorBackward(n)})),h._parser.setCsiHandler({final:"E"},(function(n){return h.cursorNextLine(n)})),h._parser.setCsiHandler({final:"F"},(function(n){return h.cursorPrecedingLine(n)})),h._parser.setCsiHandler({final:"G"},(function(n){return h.cursorCharAbsolute(n)})),h._parser.setCsiHandler({final:"H"},(function(n){return h.cursorPosition(n)})),h._parser.setCsiHandler({final:"I"},(function(n){return h.cursorForwardTab(n)})),h._parser.setCsiHandler({final:"J"},(function(n){return h.eraseInDisplay(n)})),h._parser.setCsiHandler({prefix:"?",final:"J"},(function(n){return h.eraseInDisplay(n)})),h._parser.setCsiHandler({final:"K"},(function(n){return h.eraseInLine(n)})),h._parser.setCsiHandler({prefix:"?",final:"K"},(function(n){return h.eraseInLine(n)})),h._parser.setCsiHandler({final:"L"},(function(n){return h.insertLines(n)})),h._parser.setCsiHandler({final:"M"},(function(n){return h.deleteLines(n)})),h._parser.setCsiHandler({final:"P"},(function(n){return h.deleteChars(n)})),h._parser.setCsiHandler({final:"S"},(function(n){return h.scrollUp(n)})),h._parser.setCsiHandler({final:"T"},(function(n){return h.scrollDown(n)})),h._parser.setCsiHandler({final:"X"},(function(n){return h.eraseChars(n)})),h._parser.setCsiHandler({final:"Z"},(function(n){return h.cursorBackwardTab(n)})),h._parser.setCsiHandler({final:"`"},(function(n){return h.charPosAbsolute(n)})),h._parser.setCsiHandler({final:"a"},(function(n){return h.hPositionRelative(n)})),h._parser.setCsiHandler({final:"b"},(function(n){return h.repeatPrecedingCharacter(n)})),h._parser.setCsiHandler({final:"c"},(function(n){return h.sendDeviceAttributesPrimary(n)})),h._parser.setCsiHandler({prefix:">",final:"c"},(function(n){return h.sendDeviceAttributesSecondary(n)})),h._parser.setCsiHandler({final:"d"},(function(n){return h.linePosAbsolute(n)})),h._parser.setCsiHandler({final:"e"},(function(n){return h.vPositionRelative(n)})),h._parser.setCsiHandler({final:"f"},(function(n){return h.hVPosition(n)})),h._parser.setCsiHandler({final:"g"},(function(n){return h.tabClear(n)})),h._parser.setCsiHandler({final:"h"},(function(n){return h.setMode(n)})),h._parser.setCsiHandler({prefix:"?",final:"h"},(function(n){return h.setModePrivate(n)})),h._parser.setCsiHandler({final:"l"},(function(n){return h.resetMode(n)})),h._parser.setCsiHandler({prefix:"?",final:"l"},(function(n){return h.resetModePrivate(n)})),h._parser.setCsiHandler({final:"m"},(function(n){return h.charAttributes(n)})),h._parser.setCsiHandler({final:"n"},(function(n){return h.deviceStatus(n)})),h._parser.setCsiHandler({prefix:"?",final:"n"},(function(n){return h.deviceStatusPrivate(n)})),h._parser.setCsiHandler({intermediates:"!",final:"p"},(function(n){return h.softReset(n)})),h._parser.setCsiHandler({intermediates:" ",final:"q"},(function(n){return h.setCursorStyle(n)})),h._parser.setCsiHandler({final:"r"},(function(n){return h.setScrollRegion(n)})),h._parser.setCsiHandler({final:"s"},(function(n){return h.saveCursor(n)})),h._parser.setCsiHandler({final:"u"},(function(n){return h.restoreCursor(n)})),h._parser.setCsiHandler({intermediates:"'",final:"}"},(function(n){return h.insertColumns(n)})),h._parser.setCsiHandler({intermediates:"'",final:"~"},(function(n){return h.deleteColumns(n)})),h._parser.setExecuteHandler(i.C0.BEL,(function(){return h.bell()})),h._parser.setExecuteHandler(i.C0.LF,(function(){return h.lineFeed()})),h._parser.setExecuteHandler(i.C0.VT,(function(){return h.lineFeed()})),h._parser.setExecuteHandler(i.C0.FF,(function(){return h.lineFeed()})),h._parser.setExecuteHandler(i.C0.CR,(function(){return h.carriageReturn()})),h._parser.setExecuteHandler(i.C0.BS,(function(){return h.backspace()})),h._parser.setExecuteHandler(i.C0.HT,(function(){return h.tab()})),h._parser.setExecuteHandler(i.C0.SO,(function(){return h.shiftOut()})),h._parser.setExecuteHandler(i.C0.SI,(function(){return h.shiftIn()})),h._parser.setExecuteHandler(i.C1.IND,(function(){return h.index()})),h._parser.setExecuteHandler(i.C1.NEL,(function(){return h.nextLine()})),h._parser.setExecuteHandler(i.C1.HTS,(function(){return h.tabSet()})),h._parser.setOscHandler(0,new g.OscHandler((function(n){return h.setTitle(n)}))),h._parser.setOscHandler(2,new g.OscHandler((function(n){return h.setTitle(n)}))),h._parser.setEscHandler({final:"7"},(function(){return h.saveCursor()})),h._parser.setEscHandler({final:"8"},(function(){return h.restoreCursor()})),h._parser.setEscHandler({final:"D"},(function(){return h.index()})),h._parser.setEscHandler({final:"E"},(function(){return h.nextLine()})),h._parser.setEscHandler({final:"H"},(function(){return h.tabSet()})),h._parser.setEscHandler({final:"M"},(function(){return h.reverseIndex()})),h._parser.setEscHandler({final:"="},(function(){return h.keypadApplicationMode()})),h._parser.setEscHandler({final:">"},(function(){return h.keypadNumericMode()})),h._parser.setEscHandler({final:"c"},(function(){return h.reset()})),h._parser.setEscHandler({final:"n"},(function(){return h.setgLevel(2)})),h._parser.setEscHandler({final:"o"},(function(){return h.setgLevel(3)})),h._parser.setEscHandler({final:"|"},(function(){return h.setgLevel(3)})),h._parser.setEscHandler({final:"}"},(function(){return h.setgLevel(2)})),h._parser.setEscHandler({final:"~"},(function(){return h.setgLevel(1)})),h._parser.setEscHandler({intermediates:"%",final:"@"},(function(){return h.selectDefaultCharset()})),h._parser.setEscHandler({intermediates:"%",final:"G"},(function(){return h.selectDefaultCharset()}));var v=function(n){b._parser.setEscHandler({intermediates:"(",final:n},(function(){return h.selectCharset("("+n)})),b._parser.setEscHandler({intermediates:")",final:n},(function(){return h.selectCharset(")"+n)})),b._parser.setEscHandler({intermediates:"*",final:n},(function(){return h.selectCharset("*"+n)})),b._parser.setEscHandler({intermediates:"+",final:n},(function(){return h.selectCharset("+"+n)})),b._parser.setEscHandler({intermediates:"-",final:n},(function(){return h.selectCharset("-"+n)})),b._parser.setEscHandler({intermediates:".",final:n},(function(){return h.selectCharset("."+n)})),b._parser.setEscHandler({intermediates:"/",final:n},(function(){return h.selectCharset("/"+n)}))},b=this;for(var _ in r.CHARSETS)v(_);return h._parser.setEscHandler({intermediates:"#",final:"8"},(function(){return h.screenAlignmentPattern()})),h._parser.setErrorHandler((function(n){return h._logService.error("Parsing error: ",n),n})),h._parser.setDcsHandler({intermediates:"$",final:"q"},new y(h._bufferService,h._coreService,h._logService,h._optionsService)),h}return o(e,n),Object.defineProperty(e.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype.parse=function(n){var e=this._bufferService.buffer,t=e.x,l=e.y;if(this._logService.debug("parsing data",n),this._parseBuffer.length131072)for(var o=0;o=s)if(d)i.x=0,i.y++,i.y===i.scrollBottom+1?(i.y--,this._terminal.scroll(!0)):(i.y>=this._bufferService.rows&&(i.y=this._bufferService.rows-1),i.lines.get(i.y).isWrapped=!0),m=i.lines.get(i.y+i.ybase);else if(i.x=s-1,2===o)continue;if(p&&(m.insertCells(i.x,o,i.getNullCell(f)),2===m.getWidth(s-1)&&m.setCellFromCodePoint(s-1,h.NULL_CELL_CODE,h.NULL_CELL_WIDTH,f.fg,f.bg)),m.setCellFromCodePoint(i.x++,l,o,f.fg,f.bg),o>0)for(;--o;)m.setCellFromCodePoint(i.x++,0,0,f.fg,f.bg)}else m.getWidth(i.x-1)?m.addCodepointToCell(i.x-1,l):m.addCodepointToCell(i.x-2,l)}t&&(m.loadCell(i.x-1,this._workCell),this._parser.precedingCodepoint=2===this._workCell.getWidth()||this._workCell.getCode()>65535?0:this._workCell.isCombined()?this._workCell.getChars().charCodeAt(0):this._workCell.content),this._dirtyRowService.markDirty(i.y)},e.prototype.addCsiHandler=function(n,e){return this._parser.addCsiHandler(n,e)},e.prototype.addDcsHandler=function(n,e){return this._parser.addDcsHandler(n,new b.DcsHandler(e))},e.prototype.addEscHandler=function(n,e){return this._parser.addEscHandler(n,e)},e.prototype.addOscHandler=function(n,e){return this._parser.addOscHandler(n,new g.OscHandler(e))},e.prototype.bell=function(){this._terminal.bell()},e.prototype.lineFeed=function(){var n=this._bufferService.buffer;this._dirtyRowService.markDirty(n.y),this._optionsService.options.convertEol&&(n.x=0),n.y++,n.y===n.scrollBottom+1?(n.y--,this._terminal.scroll()):n.y>=this._bufferService.rows&&(n.y=this._bufferService.rows-1),n.x>=this._bufferService.cols&&n.x--,this._dirtyRowService.markDirty(n.y),this._onLineFeed.fire()},e.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},e.prototype.backspace=function(){this._restrictCursor(),this._bufferService.buffer.x>0&&this._bufferService.buffer.x--},e.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var n=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._terminal.onA11yTabEmitter.fire(this._bufferService.buffer.x-n)}},e.prototype.shiftOut=function(){this._terminal.setgLevel(1)},e.prototype.shiftIn=function(){this._terminal.setgLevel(0)},e.prototype._restrictCursor=function(){this._bufferService.buffer.x=Math.min(this._bufferService.cols-1,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._terminal.originMode?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},e.prototype._setCursor=function(n,e){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._terminal.originMode?(this._bufferService.buffer.x=n,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+e):(this._bufferService.buffer.x=n,this._bufferService.buffer.y=e),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},e.prototype._moveCursor=function(n,e){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+n,this._bufferService.buffer.y+e)},e.prototype.cursorUp=function(n){var e=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;this._moveCursor(0,e>=0?-Math.min(e,n.params[0]||1):-(n.params[0]||1))},e.prototype.cursorDown=function(n){var e=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;this._moveCursor(0,e>=0?Math.min(e,n.params[0]||1):n.params[0]||1)},e.prototype.cursorForward=function(n){this._moveCursor(n.params[0]||1,0)},e.prototype.cursorBackward=function(n){this._moveCursor(-(n.params[0]||1),0)},e.prototype.cursorNextLine=function(n){this.cursorDown(n),this._bufferService.buffer.x=0},e.prototype.cursorPrecedingLine=function(n){this.cursorUp(n),this._bufferService.buffer.x=0},e.prototype.cursorCharAbsolute=function(n){this._setCursor((n.params[0]||1)-1,this._bufferService.buffer.y)},e.prototype.cursorPosition=function(n){this._setCursor(n.length>=2?(n.params[1]||1)-1:0,(n.params[0]||1)-1)},e.prototype.charPosAbsolute=function(n){this._setCursor((n.params[0]||1)-1,this._bufferService.buffer.y)},e.prototype.hPositionRelative=function(n){this._moveCursor(n.params[0]||1,0)},e.prototype.linePosAbsolute=function(n){this._setCursor(this._bufferService.buffer.x,(n.params[0]||1)-1)},e.prototype.vPositionRelative=function(n){this._moveCursor(0,n.params[0]||1)},e.prototype.hVPosition=function(n){this.cursorPosition(n)},e.prototype.tabClear=function(n){var e=n.params[0];0===e?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:3===e&&(this._bufferService.buffer.tabs={})},e.prototype.cursorForwardTab=function(n){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var e=n.params[0]||1;e--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},e.prototype.cursorBackwardTab=function(n){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var e=n.params[0]||1,t=this._bufferService.buffer;e--;)t.x=t.prevStop()},e.prototype._eraseInBufferLine=function(n,e,t,l){void 0===l&&(l=!1);var o=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+n);o.replaceCells(e,t,this._bufferService.buffer.getNullCell(this._terminal.eraseAttrData())),l&&(o.isWrapped=!1)},e.prototype._resetBufferLine=function(n){var e=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+n);e.fill(this._bufferService.buffer.getNullCell(this._terminal.eraseAttrData())),e.isWrapped=!1},e.prototype.eraseInDisplay=function(n){var e;switch(this._restrictCursor(),n.params[0]){case 0:for(this._dirtyRowService.markDirty(e=this._bufferService.buffer.y),this._eraseInBufferLine(e++,this._bufferService.buffer.x,this._bufferService.cols,0===this._bufferService.buffer.x);e=this._bufferService.cols&&(this._bufferService.buffer.lines.get(e+1).isWrapped=!1);e--;)this._resetBufferLine(e);this._dirtyRowService.markDirty(0);break;case 2:for(this._dirtyRowService.markDirty((e=this._bufferService.rows)-1);e--;)this._resetBufferLine(e);this._dirtyRowService.markDirty(0);break;case 3:var t=this._bufferService.buffer.lines.length-this._bufferService.rows;t>0&&(this._bufferService.buffer.lines.trimStart(t),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-t,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-t,0),this._onScroll.fire(0))}},e.prototype.eraseInLine=function(n){switch(this._restrictCursor(),n.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},e.prototype.insertLines=function(n){this._restrictCursor();var e=n.params[0]||1,t=this._bufferService.buffer;if(!(t.y>t.scrollBottom||t.yt.scrollBottom||t.ye.scrollBottom||e.ye.scrollBottom||e.ye.scrollBottom||e.ye.scrollBottom||e.y0||(this._terminal.is("xterm")||this._terminal.is("rxvt-unicode")||this._terminal.is("screen")?this._coreService.triggerDataEvent(i.C0.ESC+"[?1;2c"):this._terminal.is("linux")&&this._coreService.triggerDataEvent(i.C0.ESC+"[?6c"))},e.prototype.sendDeviceAttributesSecondary=function(n){n.params[0]>0||(this._terminal.is("xterm")?this._coreService.triggerDataEvent(i.C0.ESC+"[>0;276;0c"):this._terminal.is("rxvt-unicode")?this._coreService.triggerDataEvent(i.C0.ESC+"[>85;95;0c"):this._terminal.is("linux")?this._coreService.triggerDataEvent(n.params[0]+"c"):this._terminal.is("screen")&&this._coreService.triggerDataEvent(i.C0.ESC+"[>83;40003;0c"))},e.prototype.setMode=function(n){for(var e=0;e=2||2===l[1]&&i+o>=5)break;l[1]&&(o=1)}while(++i+e=30&&e<=37?(l.fg&=-50331904,l.fg|=16777216|e-30):e>=40&&e<=47?(l.bg&=-50331904,l.bg|=16777216|e-40):e>=90&&e<=97?(l.fg&=-50331904,l.fg|=16777224|e-90):e>=100&&e<=107?(l.bg&=-50331904,l.bg|=16777224|e-100):0===e?(l.fg=p.DEFAULT_ATTR_DATA.fg,l.bg=p.DEFAULT_ATTR_DATA.bg):1===e?l.fg|=134217728:3===e?l.bg|=67108864:4===e?l.fg|=268435456:5===e?l.fg|=536870912:7===e?l.fg|=67108864:8===e?l.fg|=1073741824:2===e?l.bg|=134217728:22===e?(l.fg&=-134217729,l.bg&=-134217729):23===e?l.bg&=-67108865:24===e?l.fg&=-268435457:25===e?l.fg&=-536870913:27===e?l.fg&=-67108865:28===e?l.fg&=-1073741825:39===e?(l.fg&=-67108864,l.fg|=16777215&p.DEFAULT_ATTR_DATA.fg):49===e?(l.bg&=-67108864,l.bg|=16777215&p.DEFAULT_ATTR_DATA.bg):38===e||48===e?o+=this._extractColor(n,o,l):100===e?(l.fg&=-67108864,l.fg|=16777215&p.DEFAULT_ATTR_DATA.fg,l.bg&=-67108864,l.bg|=16777215&p.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",e)},e.prototype.deviceStatus=function(n){switch(n.params[0]){case 5:this._coreService.triggerDataEvent(i.C0.ESC+"[0n");break;case 6:this._coreService.triggerDataEvent(i.C0.ESC+"["+(this._bufferService.buffer.y+1)+";"+(this._bufferService.buffer.x+1)+"R")}},e.prototype.deviceStatusPrivate=function(n){switch(n.params[0]){case 6:this._coreService.triggerDataEvent(i.C0.ESC+"[?"+(this._bufferService.buffer.y+1)+";"+(this._bufferService.buffer.x+1)+"R")}},e.prototype.softReset=function(n){this._coreService.isCursorHidden=!1,this._terminal.insertMode=!1,this._terminal.originMode=!1,this._terminal.wraparoundMode=!0,this._terminal.applicationKeypad=!1,this._terminal.viewport&&this._terminal.viewport.syncScrollArea(),this._coreService.decPrivateModes.applicationCursorKeys=!1,this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._terminal.curAttrData=p.DEFAULT_ATTR_DATA.clone(),this._bufferService.buffer.x=this._bufferService.buffer.y=0,this._terminal.charset=null,this._terminal.glevel=0,this._terminal.charsets=[null]},e.prototype.setCursorStyle=function(n){var e=n.params[0]||1;switch(e){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}this._optionsService.options.cursorBlink=e%2==1},e.prototype.setScrollRegion=function(n){var e,t=n.params[0]||1;(n.length<2||(e=n.params[1])>this._bufferService.rows||0===e)&&(e=this._bufferService.rows),e>t&&(this._bufferService.buffer.scrollTop=t-1,this._bufferService.buffer.scrollBottom=e-1,this._setCursor(0,0))},e.prototype.saveCursor=function(n){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._terminal.curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._terminal.curAttrData.bg,this._bufferService.buffer.savedCharset=this._terminal.charset},e.prototype.restoreCursor=function(n){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._terminal.curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._terminal.curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._terminal.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._terminal.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},e.prototype.setTitle=function(n){this._terminal.handleTitle(n)},e.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},e.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._terminal.applicationKeypad=!0,this._terminal.viewport&&this._terminal.viewport.syncScrollArea()},e.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._terminal.applicationKeypad=!1,this._terminal.viewport&&this._terminal.viewport.syncScrollArea()},e.prototype.selectDefaultCharset=function(){this._terminal.setgLevel(0),this._terminal.setgCharset(0,r.DEFAULT_CHARSET)},e.prototype.selectCharset=function(n){2===n.length?"/"!==n[0]&&this._terminal.setgCharset(_[n[0]],r.CHARSETS[n[1]]||r.DEFAULT_CHARSET):this.selectDefaultCharset()},e.prototype.index=function(){this._restrictCursor();var n=this._bufferService.buffer;this._bufferService.buffer.y++,n.y===n.scrollBottom+1?(n.y--,this._terminal.scroll()):n.y>=this._bufferService.rows&&(n.y=this._bufferService.rows-1),this._restrictCursor()},e.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},e.prototype.reverseIndex=function(){this._restrictCursor();var n=this._bufferService.buffer;n.y===n.scrollTop?(n.lines.shiftElements(n.y+n.ybase,n.scrollBottom-n.scrollTop,1),n.lines.set(n.y+n.ybase,n.getBlankLine(this._terminal.eraseAttrData())),this._dirtyRowService.markRangeDirty(n.scrollTop,n.scrollBottom)):(n.y--,this._restrictCursor())},e.prototype.reset=function(){this._parser.reset(),this._terminal.reset()},e.prototype.setgLevel=function(n){this._terminal.setgLevel(n)},e.prototype.screenAlignmentPattern=function(){var n=new m.CellData;n.content=1<<22|"E".charCodeAt(0),n.fg=this._terminal.curAttrData.fg,n.bg=this._terminal.curAttrData.bg;var e=this._bufferService.buffer;this._setCursor(0,0);for(var t=0;t1)throw new Error("only one byte as prefix supported");if((t=n.prefix.charCodeAt(0))&&60>t||t>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(n.intermediates){if(n.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var l=0;lo||o>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");t<<=8,t|=o}}if(1!==n.final.length)throw new Error("final must be a single byte");var i=n.final.charCodeAt(0);if(e[0]>i||i>e[1])throw new Error("final must be in range "+e[0]+" .. "+e[1]);return(t<<=8)|i},t.prototype.identToString=function(n){for(var e=[];n;)e.push(String.fromCharCode(255&n)),n>>=8;return e.reverse().join("")},t.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},t.prototype.setPrintHandler=function(n){this._printHandler=n},t.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},t.prototype.addEscHandler=function(n,e){var t=this._identifier(n,[48,126]);void 0===this._escHandlers[t]&&(this._escHandlers[t]=[]);var l=this._escHandlers[t];return l.push(e),{dispose:function(){var n=l.indexOf(e);-1!==n&&l.splice(n,1)}}},t.prototype.setEscHandler=function(n,e){this._escHandlers[this._identifier(n,[48,126])]=[e]},t.prototype.clearEscHandler=function(n){this._escHandlers[this._identifier(n,[48,126])]&&delete this._escHandlers[this._identifier(n,[48,126])]},t.prototype.setEscHandlerFallback=function(n){this._escHandlerFb=n},t.prototype.setExecuteHandler=function(n,e){this._executeHandlers[n.charCodeAt(0)]=e},t.prototype.clearExecuteHandler=function(n){this._executeHandlers[n.charCodeAt(0)]&&delete this._executeHandlers[n.charCodeAt(0)]},t.prototype.setExecuteHandlerFallback=function(n){this._executeHandlerFb=n},t.prototype.addCsiHandler=function(n,e){var t=this._identifier(n);void 0===this._csiHandlers[t]&&(this._csiHandlers[t]=[]);var l=this._csiHandlers[t];return l.push(e),{dispose:function(){var n=l.indexOf(e);-1!==n&&l.splice(n,1)}}},t.prototype.setCsiHandler=function(n,e){this._csiHandlers[this._identifier(n)]=[e]},t.prototype.clearCsiHandler=function(n){this._csiHandlers[this._identifier(n)]&&delete this._csiHandlers[this._identifier(n)]},t.prototype.setCsiHandlerFallback=function(n){this._csiHandlerFb=n},t.prototype.addDcsHandler=function(n,e){return this._dcsParser.addHandler(this._identifier(n),e)},t.prototype.setDcsHandler=function(n,e){this._dcsParser.setHandler(this._identifier(n),e)},t.prototype.clearDcsHandler=function(n){this._dcsParser.clearHandler(this._identifier(n))},t.prototype.setDcsHandlerFallback=function(n){this._dcsParser.setHandlerFallback(n)},t.prototype.addOscHandler=function(n,e){return this._oscParser.addHandler(n,e)},t.prototype.setOscHandler=function(n,e){this._oscParser.setHandler(n,e)},t.prototype.clearOscHandler=function(n){this._oscParser.clearHandler(n)},t.prototype.setOscHandlerFallback=function(n){this._oscParser.setHandlerFallback(n)},t.prototype.setErrorHandler=function(n){this._errorHandler=n},t.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},t.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},t.prototype.parse=function(n,e){for(var t=0,l=0,o=this.currentState,i=this._oscParser,r=this._dcsParser,a=this._collect,u=this._params,s=this.TRANSITIONS.table,d=0;d>4){case 2:for(var c=d+1;;++c){if(c>=e||(t=n[c])<32||t>126&&t<160){this._printHandler(n,d,c),d=c-1;break}if(++c>=e||(t=n[c])<32||t>126&&t<160){this._printHandler(n,d,c),d=c-1;break}if(++c>=e||(t=n[c])<32||t>126&&t<160){this._printHandler(n,d,c),d=c-1;break}if(++c>=e||(t=n[c])<32||t>126&&t<160){this._printHandler(n,d,c),d=c-1;break}}break;case 3:this._executeHandlers[t]?this._executeHandlers[t]():this._executeHandlerFb(t),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:d,code:t,currentState:o,collect:a,params:u,abort:!1}).abort)return;break;case 7:for(var p=this._csiHandlers[a<<8|t],f=p?p.length-1:-1;f>=0&&!1===p[f](u);f--);f<0&&this._csiHandlerFb(a<<8|t,u),this.precedingCodepoint=0;break;case 8:do{switch(t){case 59:u.addParam(0);break;case 58:u.addSubParam(-1);break;default:u.addDigit(t-48)}}while(++d47&&t<60);d--;break;case 9:a<<=8,a|=t;break;case 10:for(var h=this._escHandlers[a<<8|t],m=h?h.length-1:-1;m>=0&&!1===h[m]();m--);m<0&&this._escHandlerFb(a<<8|t),this.precedingCodepoint=0;break;case 11:u.reset(),u.addParam(0),a=0;break;case 12:r.hook(a<<8|t,u);break;case 13:for(var v=d+1;;++v)if(v>=e||24===(t=n[v])||26===t||27===t||t>127&&t<160){r.put(n,d,v),d=v-1;break}break;case 14:r.unhook(24!==t&&26!==t),27===t&&(l|=1),u.reset(),u.addParam(0),a=0,this.precedingCodepoint=0;break;case 4:i.start();break;case 5:for(var g=d+1;;g++)if(g>=e||(t=n[g])<32||t>127&&t<=159){i.put(n,d,g),d=g-1;break}break;case 6:i.end(24!==t&&26!==t),27===t&&(l|=1),u.reset(),u.addParam(0),a=0,this.precedingCodepoint=0}o=15&l}this._collect=a,this.currentState=o},t}(i.Disposable);e.EscapeSequenceParser=c},function(n,e,t){"use strict";var l,o=this&&this.__extends||(l=function(n,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)},function(n,e){function t(){this.constructor=n}l(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}),i=this&&this.__decorate||function(n,e,t,l){var o,i=arguments.length,r=i<3?e:null===l?l=Object.getOwnPropertyDescriptor(e,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(n,e,t,l);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(r=(i<3?o(r):i>3?o(e,t,r):o(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},r=this&&this.__param||function(n,e){return function(t,l){e(t,l,n)}};Object.defineProperty(e,"__esModule",{value:!0});var a=t(41),u=t(47),s=t(48),d=t(49),c=t(28),p=t(2),f=t(4),h=t(0),m=t(24),v=t(1),g=1,b=function(n){function e(e,t,l,o,i,r,p,f){var h=n.call(this)||this;h._colors=e,h._screenElement=t,h._linkifier=l,h._bufferService=o,h._charSizeService=i,h._optionsService=r,h.coreService=p,h.coreBrowserService=f,h._id=g++,h._onRequestRefreshRows=new v.EventEmitter;var m=h._optionsService.options.allowTransparency;return h._characterJoinerRegistry=new c.CharacterJoinerRegistry(h._bufferService),h._renderLayers=[new a.TextRenderLayer(h._screenElement,0,h._colors,h._characterJoinerRegistry,m,h._id,h._bufferService,r),new u.SelectionRenderLayer(h._screenElement,1,h._colors,h._id,h._bufferService,r),new d.LinkRenderLayer(h._screenElement,2,h._colors,h._id,h._linkifier,h._bufferService,r),new s.CursorRenderLayer(h._screenElement,3,h._colors,h._id,h._onRequestRefreshRows,h._bufferService,r,p,f)],h.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},h._devicePixelRatio=window.devicePixelRatio,h._updateDimensions(),h.onOptionsChanged(),h}return o(e,n),Object.defineProperty(e.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){n.prototype.dispose.call(this),this._renderLayers.forEach((function(n){return n.dispose()})),m.removeTerminalFromCache(this._id)},e.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},e.prototype.setColors=function(n){var e=this;this._colors=n,this._renderLayers.forEach((function(n){n.setColors(e._colors),n.reset()}))},e.prototype.onResize=function(n,e){var t=this;this._updateDimensions(),this._renderLayers.forEach((function(n){return n.resize(t.dimensions)})),this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},e.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},e.prototype.onBlur=function(){this._runOperation((function(n){return n.onBlur()}))},e.prototype.onFocus=function(){this._runOperation((function(n){return n.onFocus()}))},e.prototype.onSelectionChanged=function(n,e,t){void 0===t&&(t=!1),this._runOperation((function(l){return l.onSelectionChanged(n,e,t)}))},e.prototype.onCursorMove=function(){this._runOperation((function(n){return n.onCursorMove()}))},e.prototype.onOptionsChanged=function(){this._runOperation((function(n){return n.onOptionsChanged()}))},e.prototype.clear=function(){this._runOperation((function(n){return n.reset()}))},e.prototype._runOperation=function(n){this._renderLayers.forEach((function(e){return n(e)}))},e.prototype.renderRows=function(n,e){this._renderLayers.forEach((function(t){return t.onGridChanged(n,e)}))},e.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=1===this._optionsService.options.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},e.prototype.registerCharacterJoiner=function(n){return this._characterJoinerRegistry.registerCharacterJoiner(n)},e.prototype.deregisterCharacterJoiner=function(n){return this._characterJoinerRegistry.deregisterCharacterJoiner(n)},i([r(3,h.IBufferService),r(4,f.ICharSizeService),r(5,h.IOptionsService),r(6,h.ICoreService),r(7,f.ICoreBrowserService)],e)}(p.Disposable);e.Renderer=b},function(n,e,t){"use strict";var l,o=this&&this.__extends||(l=function(n,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)},function(n,e){function t(){this.constructor=n}l(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(e,"__esModule",{value:!0});var i=t(42),r=t(13),a=t(6),u=t(3),s=t(28),d=t(5),c=function(n){function e(e,t,l,o,r,a,u,s){var c=n.call(this,e,"text",t,r,l,a,u,s)||this;return c.bufferService=u,c.optionsService=s,c._characterWidth=0,c._characterFont="",c._characterOverlapCache={},c._workCell=new d.CellData,c._state=new i.GridCache,c._characterJoinerRegistry=o,c}return o(e,n),e.prototype.resize=function(e){n.prototype.resize.call(this,e);var t=this._getFont(!1,!1);this._characterWidth===e.scaledCharWidth&&this._characterFont===t||(this._characterWidth=e.scaledCharWidth,this._characterFont=t,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},e.prototype.reset=function(){this._state.clear(),this._clearAll()},e.prototype._forEachCell=function(n,e,t,l){for(var o=n;o<=e;o++)for(var i=o+this._bufferService.buffer.ydisp,r=this._bufferService.buffer.lines.get(i),a=t?t.getJoinedCharacters(i):[],d=0;d0&&d===a[0][0]){p=!0;var h=a.shift();c=new s.JoinedCellData(this._workCell,r.translateToString(!0,h[0],h[1]),h[1]-h[0]),f=h[1]-1}!p&&this._isOverlapping(c)&&fthis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[e]=t,t},e}(r.BaseRenderLayer);e.TextRenderLayer=c},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function n(){this.cache=[]}return n.prototype.resize=function(n,e){for(var t=0;t>>24,o=e.rgba>>>16&255,i=e.rgba>>>8&255,r=0;r=this.capacity)this._unlinkNode(t=this._head),delete this._map[t.key],t.key=n,t.value=e,this._map[n]=t;else{var l=this._nodePool;l.length>0?((t=l.pop()).key=n,t.value=e):t={prev:null,next:null,key:n,value:e},this._map[n]=t,this.size++}this._appendNode(t)},n}();e.LRUMap=l},function(n,e,t){"use strict";var l,o=this&&this.__extends||(l=function(n,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)},function(n,e){function t(){this.constructor=n}l(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(n){function e(e,t,l,o,i,r){var a=n.call(this,e,"selection",t,!0,l,o,i,r)||this;return a.bufferService=i,a.optionsService=r,a._clearState(),a}return o(e,n),e.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},e.prototype.resize=function(e){n.prototype.resize.call(this,e),this._clearState()},e.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},e.prototype.onSelectionChanged=function(n,e,t){if(this._didStateChange(n,e,t,this._bufferService.buffer.ydisp))if(this._clearAll(),n&&e){var l=n[1]-this._bufferService.buffer.ydisp,o=e[1]-this._bufferService.buffer.ydisp,i=Math.max(l,0),r=Math.min(o,this._bufferService.rows-1);if(!(i>=this._bufferService.rows||r<0)){if(this._ctx.fillStyle=this._colors.selection.css,t){var a=n[0];this._fillCells(a,i,e[0]-a,r-i+1)}else{this._fillCells(a=l===i?n[0]:0,i,(i===r?e[0]:this._bufferService.cols)-a,1);var u=Math.max(r-i-1,0);this._fillCells(0,i+1,this._bufferService.cols,u),i!==r&&this._fillCells(0,r,o===r?e[0]:this._bufferService.cols,1)}this._state.start=[n[0],n[1]],this._state.end=[e[0],e[1]],this._state.columnSelectMode=t,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},e.prototype._didStateChange=function(n,e,t,l){return!this._areCoordinatesEqual(n,this._state.start)||!this._areCoordinatesEqual(e,this._state.end)||t!==this._state.columnSelectMode||l!==this._state.ydisp},e.prototype._areCoordinatesEqual=function(n,e){return!(!n||!e)&&n[0]===e[0]&&n[1]===e[1]},e}(t(13).BaseRenderLayer);e.SelectionRenderLayer=i},function(n,e,t){"use strict";var l,o=this&&this.__extends||(l=function(n,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)},function(n,e){function t(){this.constructor=n}l(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(e,"__esModule",{value:!0});var i=t(13),r=t(5),a=function(n){function e(e,t,l,o,i,a,u,s,d){var c=n.call(this,e,"cursor",t,!0,l,o,a,u)||this;return c._onRequestRefreshRowsEvent=i,c.bufferService=a,c.optionsService=u,c._coreService=s,c._coreBrowserService=d,c._cell=new r.CellData,c._state={x:0,y:0,isFocused:!1,style:"",width:0},c._cursorRenderers={bar:c._renderBarCursor.bind(c),block:c._renderBlockCursor.bind(c),underline:c._renderUnderlineCursor.bind(c)},c}return o(e,n),e.prototype.resize=function(e){n.prototype.resize.call(this,e),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},e.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},e.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRefreshRowsEvent.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},e.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRefreshRowsEvent.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},e.prototype.onOptionsChanged=function(){var n,e=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new u(this._coreBrowserService.isFocused,(function(){e._render(!0)}))):(null===(n=this._cursorBlinkStateManager)||void 0===n||n.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRefreshRowsEvent.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},e.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},e.prototype.onGridChanged=function(n,e){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},e.prototype._render=function(n){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var e=this._bufferService.buffer.ybase+this._bufferService.buffer.y,t=e-this._bufferService.buffer.ydisp;if(t<0||t>=this._bufferService.rows)this._clearCursor();else if(this._bufferService.buffer.lines.get(e).loadCell(this._bufferService.buffer.x,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var l=this._optionsService.options.cursorStyle;return l&&"block"!==l?this._cursorRenderers[l](this._bufferService.buffer.x,t,this._cell):this._renderBlurCursor(this._bufferService.buffer.x,t,this._cell),this._ctx.restore(),this._state.x=this._bufferService.buffer.x,this._state.y=t,this._state.isFocused=!1,this._state.style=l,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===this._bufferService.buffer.x&&this._state.y===t&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](this._bufferService.buffer.x,t,this._cell),this._ctx.restore(),this._state.x=this._bufferService.buffer.x,this._state.y=t,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}else this._clearCursor()},e.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},e.prototype._renderBarCursor=function(n,e,t){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(n,e),this._ctx.restore()},e.prototype._renderBlockCursor=function(n,e,t){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(n,e,t.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(t,n,e),this._ctx.restore()},e.prototype._renderUnderlineCursor=function(n,e,t){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(n,e),this._ctx.restore()},e.prototype._renderBlurCursor=function(n,e,t){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(n,e,t.getWidth(),1),this._ctx.restore()},e}(i.BaseRenderLayer);e.CursorRenderLayer=a;var u=function(){function n(n,e){this._renderCallback=e,this.isCursorVisible=!0,n&&this._restartInterval()}return Object.defineProperty(n.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!0,configurable:!0}),n.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},n.prototype.restartBlinkAnimation=function(){var n=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame((function(){n._renderCallback(),n._animationFrame=void 0}))))},n.prototype._restartInterval=function(n){var e=this;void 0===n&&(n=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=setTimeout((function(){if(e._animationTimeRestarted){var n=600-(Date.now()-e._animationTimeRestarted);if(e._animationTimeRestarted=void 0,n>0)return void e._restartInterval(n)}e.isCursorVisible=!1,e._animationFrame=window.requestAnimationFrame((function(){e._renderCallback(),e._animationFrame=void 0})),e._blinkInterval=setInterval((function(){if(e._animationTimeRestarted){var n=600-(Date.now()-e._animationTimeRestarted);return e._animationTimeRestarted=void 0,void e._restartInterval(n)}e.isCursorVisible=!e.isCursorVisible,e._animationFrame=window.requestAnimationFrame((function(){e._renderCallback(),e._animationFrame=void 0}))}),600)}),n)},n.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},n.prototype.resume=function(){this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},n}()},function(n,e,t){"use strict";var l,o=this&&this.__extends||(l=function(n,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)},function(n,e){function t(){this.constructor=n}l(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(e,"__esModule",{value:!0});var i=t(13),r=t(9),a=t(25),u=function(n){function e(e,t,l,o,i,r,a){var u=n.call(this,e,"link",t,!0,l,o,r,a)||this;return u.bufferService=r,u.optionsService=a,i.onLinkHover((function(n){return u._onLinkHover(n)})),i.onLinkLeave((function(n){return u._onLinkLeave(n)})),u}return o(e,n),e.prototype.resize=function(e){n.prototype.resize.call(this,e),this._state=void 0},e.prototype.reset=function(){this._clearCurrentLink()},e.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var n=this._state.y2-this._state.y1-1;n>0&&this._clearCells(0,this._state.y1+1,this._state.cols,n),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},e.prototype._onLinkHover=function(n){if(this._ctx.fillStyle=n.fg===r.INVERTED_DEFAULT_COLOR?this._colors.background.css:n.fg&&a.is256Color(n.fg)?this._colors.ansi[n.fg].css:this._colors.foreground.css,n.y1===n.y2)this._fillBottomLineAtCells(n.x1,n.y1,n.x2-n.x1);else{this._fillBottomLineAtCells(n.x1,n.y1,n.cols-n.x1);for(var e=n.y1+1;e=n.lines.length)){for(var t=n.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,l=Math.ceil(2e3/this._bufferService.cols),o=this._bufferService.buffer.iterator(!1,e,t,l,l);o.hasNext();)for(var i=o.next(),r=0;r=0;e--)if(n.priority<=this._linkMatchers[e].priority)return void this._linkMatchers.splice(e+1,0,n);this._linkMatchers.splice(0,0,n)}else this._linkMatchers.push(n)},n.prototype.deregisterLinkMatcher=function(n){for(var e=0;e>9&511:void 0;t.validationCallback?t.validationCallback(a,(function(n){o._rowsTimeoutId||n&&o._addLink(s[1],s[0]-o._bufferService.buffer.ydisp,a,t,p)})):u._addLink(s[1],s[0]-u._bufferService.buffer.ydisp,a,t,p)},u=this;null!==(l=i.exec(e))&&"break"!==a(););},n.prototype._addLink=function(n,e,t,o,i){var a=this;if(this._mouseZoneManager&&this._element){var u=l.getStringCellWidth(t),s=n%this._bufferService.cols,d=e+Math.floor(n/this._bufferService.cols),c=(s+u)%this._bufferService.cols,p=d+Math.floor((s+u)/this._bufferService.cols);0===c&&(c=this._bufferService.cols,p--),this._mouseZoneManager.add(new r(s+1,d+1,c+1,p+1,(function(n){if(o.handler)return o.handler(n,t);window.open(t,"_blank")}),(function(){a._onLinkHover.fire(a._createLinkHoverEvent(s,d,c,p,i)),a._element.classList.add("xterm-cursor-pointer")}),(function(n){a._onLinkTooltip.fire(a._createLinkHoverEvent(s,d,c,p,i)),o.hoverTooltipCallback&&o.hoverTooltipCallback(n,t,{start:{x:s,y:d},end:{x:c,y:p}})}),(function(){a._onLinkLeave.fire(a._createLinkHoverEvent(s,d,c,p,i)),a._element.classList.remove("xterm-cursor-pointer"),o.hoverLeaveCallback&&o.hoverLeaveCallback()}),(function(n){return!o.willLinkActivate||o.willLinkActivate(n,t)})))}},n.prototype._createLinkHoverEvent=function(n,e,t,l,o){return{x1:n,y1:e,x2:t,y2:l,cols:this._bufferService.cols,fg:o}},n._timeBeforeLatency=200,n}();e.Linkifier=i;var r=function(n,e,t,l,o,i,r,a,u){this.x1=n,this.y1=e,this.x2=t,this.y2=l,this.clickCallback=o,this.hoverCallback=i,this.tooltipCallback=r,this.leaveCallback=a,this.willLinkActivate=u};e.MouseZone=r},function(n,e,t){"use strict";var l=this&&this.__decorate||function(n,e,t,l){var o,i=arguments.length,r=i<3?e:null===l?l=Object.getOwnPropertyDescriptor(e,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(n,e,t,l);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(r=(i<3?o(r):i>3?o(e,t,r):o(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},o=this&&this.__param||function(n,e){return function(t,l){e(t,l,n)}};Object.defineProperty(e,"__esModule",{value:!0});var i=t(11),r=t(52),a=t(5),u=t(1),s=t(4),d=t(0),c=t(29),p=t(53),f=String.fromCharCode(160),h=new RegExp(f,"g"),m=function(){function n(n,e,t,l,o,i,s,d){var c=this;this._scrollLines=n,this._element=e,this._screenElement=t,this._charSizeService=l,this._bufferService=o,this._coreService=i,this._mouseService=s,this._optionsService=d,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new a.CellData,this._mouseDownTimeStamp=0,this._onLinuxMouseSelection=new u.EventEmitter,this._onRedrawRequest=new u.EventEmitter,this._onSelectionChange=new u.EventEmitter,this._mouseMoveListener=function(n){return c._onMouseMove(n)},this._mouseUpListener=function(n){return c._onMouseUp(n)},this._coreService.onUserInput((function(){c.hasSelection&&c.clearSelection()})),this._trimListener=this._bufferService.buffer.lines.onTrim((function(n){return c._onTrim(n)})),this._bufferService.buffers.onBufferActivate((function(n){return c._onBufferActivate(n)})),this.enable(),this._model=new r.SelectionModel(this._bufferService),this._activeSelectionMode=0}return Object.defineProperty(n.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onRedrawRequest",{get:function(){return this._onRedrawRequest.event},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!0,configurable:!0}),n.prototype.dispose=function(){this._removeMouseDownListeners()},n.prototype.reset=function(){this.clearSelection()},n.prototype.disable=function(){this.clearSelection(),this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},Object.defineProperty(n.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasSelection",{get:function(){var n=this._model.finalSelectionStart,e=this._model.finalSelectionEnd;return!(!n||!e||n[0]===e[0]&&n[1]===e[1])},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectionText",{get:function(){var n=this._model.finalSelectionStart,e=this._model.finalSelectionEnd;if(!n||!e)return"";var t=this._bufferService.buffer,l=[];if(3===this._activeSelectionMode){if(n[0]===e[0])return"";for(var o=n[1];o<=e[1];o++){var r=t.translateBufferLineToString(o,!0,n[0],e[0]);l.push(r)}}else{for(l.push(t.translateBufferLineToString(n[1],!0,n[0],n[1]===e[1]?e[0]:void 0)),o=n[1]+1;o<=e[1]-1;o++){var a=t.lines.get(o);r=t.translateBufferLineToString(o,!0),a&&a.isWrapped?l[l.length-1]+=r:l.push(r)}n[1]!==e[1]&&(a=t.lines.get(e[1]),r=t.translateBufferLineToString(e[1],!0,0,e[0]),a&&a.isWrapped?l[l.length-1]+=r:l.push(r))}return l.map((function(n){return n.replace(h," ")})).join(i.isWindows?"\r\n":"\n")},enumerable:!0,configurable:!0}),n.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},n.prototype.refresh=function(n){var e=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame((function(){return e._refresh()}))),i.isLinux&&n&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},n.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},n.prototype.isClickInSelection=function(n){var e=this._getMouseBufferCoords(n),t=this._model.finalSelectionStart,l=this._model.finalSelectionEnd;return!!(t&&l&&e)&&this._areCoordsInSelection(e,t,l)},n.prototype._areCoordsInSelection=function(n,e,t){return n[1]>e[1]&&n[1]=e[0]&&n[0]=e[0]},n.prototype.selectWordAtCursor=function(n){var e=this._getMouseBufferCoords(n);e&&(this._selectWordAt(e,!1),this._model.selectionEnd=void 0,this.refresh(!0))},n.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},n.prototype.selectLines=function(n,e){this._model.clearSelection(),n=Math.max(n,0),e=Math.min(e,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,n],this._model.selectionEnd=[this._bufferService.cols,e],this.refresh(),this._onSelectionChange.fire()},n.prototype._onTrim=function(n){this._model.onTrim(n)&&this.refresh()},n.prototype._getMouseBufferCoords=function(n){var e=this._mouseService.getCoords(n,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(e)return e[0]--,e[1]--,e[1]+=this._bufferService.buffer.ydisp,e},n.prototype._getMouseEventScrollAmount=function(n){var e=c.getCoordsRelativeToElement(n,this._screenElement)[1],t=this._bufferService.rows*Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight);return e>=0&&e<=t?0:(e>t&&(e-=t),e=Math.min(Math.max(e,-50),50),(e/=50)/Math.abs(e)+Math.round(14*e))},n.prototype.shouldForceSelection=function(n){return i.isMac?n.altKey&&this._optionsService.options.macOptionClickForcesSelection:n.shiftKey},n.prototype.onMouseDown=function(n){if(this._mouseDownTimeStamp=n.timeStamp,(2!==n.button||!this.hasSelection)&&0===n.button){if(!this._enabled){if(!this.shouldForceSelection(n))return;n.stopPropagation()}n.preventDefault(),this._dragScrollAmount=0,this._enabled&&n.shiftKey?this._onIncrementalClick(n):1===n.detail?this._onSingleClick(n):2===n.detail?this._onDoubleClick(n):3===n.detail&&this._onTripleClick(n),this._addMouseDownListeners(),this.refresh(!0)}},n.prototype._addMouseDownListeners=function(){var n=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval((function(){return n._dragScroll()}),50)},n.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},n.prototype._onIncrementalClick=function(n){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(n))},n.prototype._onSingleClick=function(n){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(n)?3:0,this._model.selectionStart=this._getMouseBufferCoords(n),this._model.selectionStart){this._model.selectionEnd=void 0;var e=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);e&&e.length!==this._model.selectionStart[0]&&0===e.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},n.prototype._onDoubleClick=function(n){var e=this._getMouseBufferCoords(n);e&&(this._activeSelectionMode=1,this._selectWordAt(e,!0))},n.prototype._onTripleClick=function(n){var e=this._getMouseBufferCoords(n);e&&(this._activeSelectionMode=2,this._selectLineAt(e[1]))},n.prototype.shouldColumnSelect=function(n){return n.altKey&&!(i.isMac&&this._optionsService.options.macOptionClickForcesSelection)},n.prototype._onMouseMove=function(n){if(n.stopImmediatePropagation(),this._model.selectionStart){var e=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(n),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[0]=this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var t=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(n.ydisp+this._bufferService.rows,n.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=n.ydisp),this.refresh()}},n.prototype._onMouseUp=function(n){var e=n.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&e<500){if(n.altKey&&this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var t=this._mouseService.getCoords(n,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(t&&void 0!==t[0]&&void 0!==t[1]){var l=p.moveToCellSequence(t[0]-1,t[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(l,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},n.prototype._onBufferActivate=function(n){var e=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=n.activeBuffer.lines.onTrim((function(n){return e._onTrim(n)}))},n.prototype._convertViewportColToCharacterIndex=function(n,e){for(var t=e[0],l=0;e[0]>=l;l++){var o=n.loadCell(l,this._workCell).getChars().length;0===this._workCell.getWidth()?t--:o>1&&e[0]!==l&&(t+=o-1)}return t},n.prototype.setSelection=function(n,e,t){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[n,e],this._model.selectionStartLength=t,this.refresh()},n.prototype._getWordAt=function(n,e,t,l){if(void 0===t&&(t=!0),void 0===l&&(l=!0),!(n[0]>=this._bufferService.cols)){var o=this._bufferService.buffer,i=o.lines.get(n[1]);if(i){var r=o.translateBufferLineToString(n[1],!1),a=this._convertViewportColToCharacterIndex(i,n),u=a,s=n[0]-a,d=0,c=0,p=0,f=0;if(" "===r.charAt(a)){for(;a>0&&" "===r.charAt(a-1);)a--;for(;u1&&(f+=v-1,u+=v-1);h>0&&a>0&&!this._isCharWordSeparator(i.loadCell(h-1,this._workCell));){i.loadCell(h-1,this._workCell);var g=this._workCell.getChars().length;0===this._workCell.getWidth()?(d++,h--):g>1&&(p+=g-1,a-=g-1),a--,h--}for(;m1&&(f+=b-1,u+=b-1),u++,m++}}u++;var _=a+s-d+p,y=Math.min(this._bufferService.cols,u-a+d+c-p-f);if(e||""!==r.slice(a,u).trim()){if(t&&0===_&&32!==i.getCodePoint(0)){var C=o.lines.get(n[1]-1);if(C&&i.isWrapped&&32!==C.getCodePoint(this._bufferService.cols-1)){var w=this._getWordAt([this._bufferService.cols-1,n[1]-1],!1,!0,!1);if(w){var S=this._bufferService.cols-w.start;_-=S,y+=S}}}if(l&&_+y===this._bufferService.cols&&32!==i.getCodePoint(this._bufferService.cols-1)){var x=o.lines.get(n[1]+1);if(x&&x.isWrapped&&32!==x.getCodePoint(0)){var k=this._getWordAt([0,n[1]+1],!1,!1,!0);k&&(y+=k.length)}}return{start:_,length:y}}}}},n.prototype._selectWordAt=function(n,e){var t=this._getWordAt(n,e);if(t){for(;t.start<0;)t.start+=this._bufferService.cols,n[1]--;this._model.selectionStart=[t.start,n[1]],this._model.selectionStartLength=t.length}},n.prototype._selectToWordAt=function(n){var e=this._getWordAt(n,!0);if(e){for(var t=n[1];e.start<0;)e.start+=this._bufferService.cols,t--;if(!this._model.areSelectionValuesReversed())for(;e.start+e.length>this._bufferService.cols;)e.length-=this._bufferService.cols,t++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?e.start:e.start+e.length,t]}},n.prototype._isCharWordSeparator=function(n){return 0!==n.getWidth()&&this._optionsService.options.wordSeparator.indexOf(n.getChars())>=0},n.prototype._selectLineAt=function(n){var e=this._bufferService.buffer.getWrappedRangeForLine(n);this._model.selectionStart=[0,e.first],this._model.selectionEnd=[this._bufferService.cols,e.last],this._model.selectionStartLength=0},l([o(3,s.ICharSizeService),o(4,d.IBufferService),o(5,d.ICoreService),o(6,s.IMouseService),o(7,d.IOptionsService)],n)}();e.SelectionService=m},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function n(n){this._bufferService=n,this.isSelectAllActive=!1,this.selectionStartLength=0}return n.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(n.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var n=this.selectionStart[0]+this.selectionStartLength;return n>this._bufferService.cols?[n%this._bufferService.cols,this.selectionStart[1]+Math.floor(n/this._bufferService.cols)]:[n,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!0,configurable:!0}),n.prototype.areSelectionValuesReversed=function(){var n=this.selectionStart,e=this.selectionEnd;return!(!n||!e)&&(n[1]>e[1]||n[1]===e[1]&&n[0]>e[0])},n.prototype.onTrim=function(n){return this.selectionStart&&(this.selectionStart[1]-=n),this.selectionEnd&&(this.selectionEnd[1]-=n),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},n}();e.SelectionModel=l},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t(12);function o(n,e,t,l){var o=n-i(t,n),r=e-i(t,e);return d(Math.abs(o-r)-function(n,e,t){for(var l=0,o=n-i(t,n),r=e-i(t,e),u=0;u=0&&e0?l-i(r,l):e,n=t&&ue?"A":"B"}function u(n,e,t,l,o,i){for(var r=n,a=e,u="";r!==t||a!==l;)r+=o?1:-1,o&&r>i.cols-1?(u+=i.buffer.translateBufferLineToString(a,!1,n,r),r=0,n=0,a++):!o&&r<0&&(u+=i.buffer.translateBufferLineToString(a,!1,0,n+1),n=r=i.cols-1,a--);return u+i.buffer.translateBufferLineToString(a,!1,n,r)}function s(n,e){return l.C0.ESC+(e?"O":"[")+n}function d(n,e){n=Math.floor(n);for(var t="",l=0;l0?l-i(a,l):e;var f=l,h=r(n,e,t,l,a,c);return d(u(n,p,t,f,"C"===h,a).length,s(h,c))}(a,c,n,e,t,l)}},function(n,e,t){"use strict";var l=this&&this.__decorate||function(n,e,t,l){var o,i=arguments.length,r=i<3?e:null===l?l=Object.getOwnPropertyDescriptor(e,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(n,e,t,l);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(r=(i<3?o(r):i>3?o(e,t,r):o(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},o=this&&this.__param||function(n,e){return function(t,l){e(t,l,n)}};Object.defineProperty(e,"__esModule",{value:!0});var i=t(0),r=function(){function n(n){this._optionsService=n}return Object.defineProperty(n,"audioContext",{get:function(){if(!n._audioContext){var e=window.AudioContext||window.webkitAudioContext;if(!e)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;n._audioContext=new e}return n._audioContext},enumerable:!0,configurable:!0}),n.prototype.playBellSound=function(){var e=n.audioContext;if(e){var t=e.createBufferSource();e.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),(function(n){t.buffer=n,t.connect(e.destination),t.start(0)}))}},n.prototype._base64ToArrayBuffer=function(n){for(var e=window.atob(n),t=e.length,l=new Uint8Array(t),o=0;o=0;a--)(o=n[a])&&(r=(i<3?o(r):i>3?o(e,t,r):o(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},r=this&&this.__param||function(n,e){return function(t,l){e(t,l,n)}};Object.defineProperty(e,"__esModule",{value:!0});var a=t(2),u=t(7),s=t(4),d=t(0),c=function(n){function e(e,t,l,o,i){var r=n.call(this)||this;return r._element=e,r._screenElement=t,r._bufferService=l,r._mouseService=o,r._selectionService=i,r._zones=[],r._areZonesActive=!1,r._lastHoverCoords=[void 0,void 0],r._initialSelectionLength=0,r.register(u.addDisposableDomListener(r._element,"mousedown",(function(n){return r._onMouseDown(n)}))),r._mouseMoveListener=function(n){return r._onMouseMove(n)},r._mouseLeaveListener=function(n){return r._onMouseLeave(n)},r._clickListener=function(n){return r._onClick(n)},r}return o(e,n),e.prototype.dispose=function(){n.prototype.dispose.call(this),this._deactivate()},e.prototype.add=function(n){this._zones.push(n),1===this._zones.length&&this._activate()},e.prototype.clearAll=function(n,e){if(0!==this._zones.length){n&&e||(n=0,e=this._bufferService.rows-1);for(var t=0;tn&&l.y1<=e+1||l.y2>n&&l.y2<=e+1||l.y1e+1)&&(this._currentZone&&this._currentZone===l&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(t--,1))}0===this._zones.length&&this._deactivate()}},e.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},e.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},e.prototype._onMouseMove=function(n){this._lastHoverCoords[0]===n.pageX&&this._lastHoverCoords[1]===n.pageY||(this._onHover(n),this._lastHoverCoords=[n.pageX,n.pageY])},e.prototype._onHover=function(n){var e=this,t=this._findZoneEventAt(n);t!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),t&&(this._currentZone=t,t.hoverCallback&&t.hoverCallback(n),this._tooltipTimeout=setTimeout((function(){return e._onTooltip(n)}),500)))},e.prototype._onTooltip=function(n){this._tooltipTimeout=void 0;var e=this._findZoneEventAt(n);e&&e.tooltipCallback&&e.tooltipCallback(n)},e.prototype._onMouseDown=function(n){var e;this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive&&(null===(e=this._findZoneEventAt(n))||void 0===e?void 0:e.willLinkActivate(n))&&(n.preventDefault(),n.stopImmediatePropagation())},e.prototype._onMouseLeave=function(n){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},e.prototype._onClick=function(n){var e=this._findZoneEventAt(n),t=this._getSelectionLength();e&&t===this._initialSelectionLength&&(e.clickCallback(n),n.preventDefault(),n.stopImmediatePropagation())},e.prototype._getSelectionLength=function(){var n=this._selectionService.selectionText;return n?n.length:0},e.prototype._findZoneEventAt=function(n){var e=this._mouseService.getCoords(n,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(e)for(var t=e[0],l=e[1],o=0;o=i.x1&&t=i.x1||l===i.y2&&ti.y1&&ln;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},e.prototype._createAccessibilityTreeNode=function(){var n=document.createElement("div");return n.setAttribute("role","listitem"),n.tabIndex=-1,this._refreshRowDimensions(n),n},e.prototype._onTab=function(n){for(var e=0;e0?this._charsToConsume.shift()!==n&&(this._charsToAnnounce+=n):this._charsToAnnounce+=n,"\n"===n&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=i.tooMuchOutput)),r.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout((function(){e._accessibilityTreeRoot.appendChild(e._liveRegion)}),0))},e.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,r.isMac&&this._liveRegion.parentNode&&this._accessibilityTreeRoot.removeChild(this._liveRegion)},e.prototype._onKey=function(n){this._clearLiveRegion(),this._charsToConsume.push(n)},e.prototype._refreshRows=function(n,e){this._renderRowsDebouncer.refresh(n,e,this._terminal.rows)},e.prototype._renderRows=function(n,e){for(var t=this._terminal.buffer,l=t.lines.length.toString(),o=n;o<=e;o++){var i=t.translateBufferLineToString(t.ydisp+o,!0),r=(t.ydisp+o+1).toString(),a=this._rowElements[o];a&&(0===i.length?a.innerHTML=" ":a.textContent=i,a.setAttribute("aria-posinset",r),a.setAttribute("aria-setsize",l))}this._announceCharacters()},e.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var n=0;n=0;a--)(o=n[a])&&(r=(i<3?o(r):i>3?o(e,t,r):o(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},r=this&&this.__param||function(n,e){return function(t,l){e(t,l,n)}};Object.defineProperty(e,"__esModule",{value:!0});var a=t(58),u=t(9),s=t(2),d=t(4),c=t(0),p=t(1),f=t(10),h="xterm-dom-renderer-owner-",m="xterm-rows",v="xterm-selection",g=1,b=function(n){function e(e,t,l,o,i,r,u,s){var d=n.call(this)||this;return d._colors=e,d._element=t,d._screenElement=l,d._viewportElement=o,d._linkifier=i,d._charSizeService=r,d._optionsService=u,d._bufferService=s,d._terminalClass=g++,d._rowElements=[],d._onRequestRefreshRows=new p.EventEmitter,d._rowContainer=document.createElement("div"),d._rowContainer.classList.add(m),d._rowContainer.style.lineHeight="normal",d._rowContainer.setAttribute("aria-hidden","true"),d._refreshRowElements(d._bufferService.cols,d._bufferService.rows),d._selectionContainer=document.createElement("div"),d._selectionContainer.classList.add(v),d._selectionContainer.setAttribute("aria-hidden","true"),d.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},d._updateDimensions(),d._injectCss(),d._rowFactory=new a.DomRendererRowFactory(document,d._optionsService,d._colors),d._element.classList.add(h+d._terminalClass),d._screenElement.appendChild(d._rowContainer),d._screenElement.appendChild(d._selectionContainer),d._linkifier.onLinkHover((function(n){return d._onLinkHover(n)})),d._linkifier.onLinkLeave((function(n){return d._onLinkLeave(n)})),d}return o(e,n),Object.defineProperty(e.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._element.classList.remove(h+this._terminalClass),this._screenElement.removeChild(this._rowContainer),this._screenElement.removeChild(this._selectionContainer),this._screenElement.removeChild(this._themeStyleElement),this._screenElement.removeChild(this._dimensionsStyleElement),n.prototype.dispose.call(this)},e.prototype._updateDimensions=function(){var n=this;this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this._rowElements.forEach((function(e){e.style.width=n.dimensions.canvasWidth+"px",e.style.height=n.dimensions.actualCellHeight+"px",e.style.lineHeight=n.dimensions.actualCellHeight+"px",e.style.overflow="hidden"})),this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement)),this._dimensionsStyleElement.innerHTML=this._terminalSelector+" ."+m+" span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}",this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},e.prototype.setColors=function(n){this._colors=n,this._injectCss()},e.prototype._injectCss=function(){var n=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var e=this._terminalSelector+" ."+m+" { color: "+this._colors.foreground.css+"; background-color: "+this._colors.background.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";e+=this._terminalSelector+" span:not(."+a.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+a.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+a.ITALIC_CLASS+" { font-style: italic;}",e+="@keyframes blink_box_shadow { 50% { box-shadow: none; }}",e+="@keyframes blink_block { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",e+=this._terminalSelector+" ."+m+":not(.xterm-focus) ."+a.CURSOR_CLASS+"."+a.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" ."+m+".xterm-focus ."+a.CURSOR_CLASS+"."+a.CURSOR_BLINK_CLASS+":not(."+a.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow 1s step-end infinite;}"+this._terminalSelector+" ."+m+".xterm-focus ."+a.CURSOR_CLASS+"."+a.CURSOR_BLINK_CLASS+"."+a.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block 1s step-end infinite;}"+this._terminalSelector+" ."+m+".xterm-focus ."+a.CURSOR_CLASS+"."+a.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" ."+m+" ."+a.CURSOR_CLASS+"."+a.CURSOR_STYLE_BAR_CLASS+" { box-shadow: 1px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" ."+m+" ."+a.CURSOR_CLASS+"."+a.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",e+=this._terminalSelector+" ."+v+" { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" ."+v+" div { position: absolute; background-color: "+this._colors.selection.css+";}",this._colors.ansi.forEach((function(t,l){e+=n._terminalSelector+" .xterm-fg-"+l+" { color: "+t.css+"; }"+n._terminalSelector+" .xterm-bg-"+l+" { background-color: "+t.css+"; }"})),e+=this._terminalSelector+" .xterm-fg-"+u.INVERTED_DEFAULT_COLOR+" { color: "+f.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+u.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=e},e.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},e.prototype._refreshRowElements=function(n,e){for(var t=this._rowElements.length;t<=e;t++){var l=document.createElement("div");this._rowContainer.appendChild(l),this._rowElements.push(l)}for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop())},e.prototype.onResize=function(n,e){this._refreshRowElements(n,e),this._updateDimensions()},e.prototype.onCharSizeChanged=function(){this._updateDimensions()},e.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},e.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},e.prototype.onSelectionChanged=function(n,e,t){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(n&&e){var l=n[1]-this._bufferService.buffer.ydisp,o=e[1]-this._bufferService.buffer.ydisp,i=Math.max(l,0),r=Math.min(o,this._bufferService.rows-1);if(!(i>=this._bufferService.rows||r<0)){var a=document.createDocumentFragment();t?a.appendChild(this._createSelectionElement(i,n[0],e[0],r-i+1)):(a.appendChild(this._createSelectionElement(i,l===i?n[0]:0,i===r?e[0]:this._bufferService.cols)),a.appendChild(this._createSelectionElement(i+1,0,this._bufferService.cols,r-i-1)),i!==r&&a.appendChild(this._createSelectionElement(r,0,o===r?e[0]:this._bufferService.cols))),this._selectionContainer.appendChild(a)}}},e.prototype._createSelectionElement=function(n,e,t,l){void 0===l&&(l=1);var o=document.createElement("div");return o.style.height=l*this.dimensions.actualCellHeight+"px",o.style.top=n*this.dimensions.actualCellHeight+"px",o.style.left=e*this.dimensions.actualCellWidth+"px",o.style.width=this.dimensions.actualCellWidth*(t-e)+"px",o},e.prototype.onCursorMove=function(){},e.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},e.prototype.clear=function(){this._rowElements.forEach((function(n){return n.innerHTML=""}))},e.prototype.renderRows=function(n,e){for(var t=this._bufferService.buffer.ybase+this._bufferService.buffer.y,l=this._bufferService.buffer.x,o=this._optionsService.options.cursorBlink,i=n;i<=e;i++){var r=this._rowElements[i];r.innerHTML="";var a=i+this._bufferService.buffer.ydisp,u=this._bufferService.buffer.lines.get(a);r.appendChild(this._rowFactory.createRow(u,a===t,this._optionsService.options.cursorStyle,l,o,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(e.prototype,"_terminalSelector",{get:function(){return"."+h+this._terminalClass},enumerable:!0,configurable:!0}),e.prototype.registerCharacterJoiner=function(n){return-1},e.prototype.deregisterCharacterJoiner=function(n){return!1},e.prototype._onLinkHover=function(n){this._setCellUnderline(n.x1,n.x2,n.y1,n.y2,n.cols,!0)},e.prototype._onLinkLeave=function(n){this._setCellUnderline(n.x1,n.x2,n.y1,n.y2,n.cols,!1)},e.prototype._setCellUnderline=function(n,e,t,l,o,i){for(;n!==e||t!==l;){var r=this._rowElements[t];if(!r)return;var a=r.children[n];a&&(a.style.textDecoration=i?"underline":"none"),++n>=o&&(n=0,t++)}},i([r(5,d.ICharSizeService),r(6,c.IOptionsService),r(7,c.IBufferService)],e)}(s.Disposable);e.DomRenderer=b},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t(9),o=t(3),i=t(5),r=t(10);e.BOLD_CLASS="xterm-bold",e.DIM_CLASS="xterm-dim",e.ITALIC_CLASS="xterm-italic",e.UNDERLINE_CLASS="xterm-underline",e.CURSOR_CLASS="xterm-cursor",e.CURSOR_BLINK_CLASS="xterm-cursor-blink",e.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",e.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",e.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var a=function(){function n(n,e,t){this._document=n,this._optionsService=e,this._colors=t,this._workCell=new i.CellData}return n.prototype.setColors=function(n){this._colors=n},n.prototype.createRow=function(n,t,i,a,s,d,c){for(var p=this._document.createDocumentFragment(),f=0,h=Math.min(n.length,c)-1;h>=0;h--)if(n.loadCell(h,this._workCell).getCode()!==o.NULL_CELL_CODE||t&&h===a){f=h+1;break}for(h=0;h1&&(v.style.width=d*m+"px"),t&&h===a)switch(v.classList.add(e.CURSOR_CLASS),s&&v.classList.add(e.CURSOR_BLINK_CLASS),i){case"bar":v.classList.add(e.CURSOR_STYLE_BAR_CLASS);break;case"underline":v.classList.add(e.CURSOR_STYLE_UNDERLINE_CLASS);break;default:v.classList.add(e.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&v.classList.add(e.BOLD_CLASS),this._workCell.isItalic()&&v.classList.add(e.ITALIC_CLASS),this._workCell.isDim()&&v.classList.add(e.DIM_CLASS),this._workCell.isUnderline()&&v.classList.add(e.UNDERLINE_CLASS),v.textContent=this._workCell.getChars()||o.WHITESPACE_CELL_CHAR;var g=this._workCell.getFgColor(),b=this._workCell.getFgColorMode(),_=this._workCell.getBgColor(),y=this._workCell.getBgColorMode(),C=!!this._workCell.isInverse();if(C){var w=g;g=_,_=w;var S=b;b=y,y=S}switch(b){case 16777216:case 33554432:this._workCell.isBold()&&g<8&&this._optionsService.options.drawBoldTextInBrightColors&&(g+=8),this._applyMinimumContrast(v,this._colors.background,this._colors.ansi[g])||v.classList.add("xterm-fg-"+g);break;case 50331648:var x=r.rgbaToColor(g>>16&255,g>>8&255,255&g);this._applyMinimumContrast(v,this._colors.background,x)||this._addStyle(v,"color:#"+u(g.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(v,this._colors.background,this._colors.foreground)||C&&v.classList.add("xterm-fg-"+l.INVERTED_DEFAULT_COLOR)}switch(y){case 16777216:case 33554432:v.classList.add("xterm-bg-"+_);break;case 50331648:this._addStyle(v,"background-color:#"+u(_.toString(16),"0",6));break;case 0:default:C&&v.classList.add("xterm-bg-"+l.INVERTED_DEFAULT_COLOR)}p.appendChild(v)}}return p},n.prototype._applyMinimumContrast=function(n,e,t){if(1===this._optionsService.options.minimumContrastRatio)return!1;var l=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===l&&(l=r.ensureContrastRatio(e,t,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=l?l:null)),!!l&&(this._addStyle(n,"color:"+l.css),!0)},n.prototype._addStyle=function(n,e){n.setAttribute("style",""+(n.getAttribute("style")||"")+e+";")},n}();function u(n,e,t){for(;n.length"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};e.evaluateKeyboardEvent=function(n,e,t,i){var r={type:0,cancel:!1,key:void 0},a=(n.shiftKey?1:0)|(n.altKey?2:0)|(n.ctrlKey?4:0)|(n.metaKey?8:0);switch(n.keyCode){case 0:"UIKeyInputUpArrow"===n.key?r.key=e?l.C0.ESC+"OA":l.C0.ESC+"[A":"UIKeyInputLeftArrow"===n.key?r.key=e?l.C0.ESC+"OD":l.C0.ESC+"[D":"UIKeyInputRightArrow"===n.key?r.key=e?l.C0.ESC+"OC":l.C0.ESC+"[C":"UIKeyInputDownArrow"===n.key&&(r.key=e?l.C0.ESC+"OB":l.C0.ESC+"[B");break;case 8:if(n.shiftKey){r.key=l.C0.BS;break}if(n.altKey){r.key=l.C0.ESC+l.C0.DEL;break}r.key=l.C0.DEL;break;case 9:if(n.shiftKey){r.key=l.C0.ESC+"[Z";break}r.key=l.C0.HT,r.cancel=!0;break;case 13:r.key=l.C0.CR,r.cancel=!0;break;case 27:r.key=l.C0.ESC,r.cancel=!0;break;case 37:if(n.metaKey)break;a?(r.key=l.C0.ESC+"[1;"+(a+1)+"D",r.key===l.C0.ESC+"[1;3D"&&(r.key=l.C0.ESC+(t?"b":"[1;5D"))):r.key=e?l.C0.ESC+"OD":l.C0.ESC+"[D";break;case 39:if(n.metaKey)break;a?(r.key=l.C0.ESC+"[1;"+(a+1)+"C",r.key===l.C0.ESC+"[1;3C"&&(r.key=l.C0.ESC+(t?"f":"[1;5C"))):r.key=e?l.C0.ESC+"OC":l.C0.ESC+"[C";break;case 38:if(n.metaKey)break;a?(r.key=l.C0.ESC+"[1;"+(a+1)+"A",t||r.key!==l.C0.ESC+"[1;3A"||(r.key=l.C0.ESC+"[1;5A")):r.key=e?l.C0.ESC+"OA":l.C0.ESC+"[A";break;case 40:if(n.metaKey)break;a?(r.key=l.C0.ESC+"[1;"+(a+1)+"B",t||r.key!==l.C0.ESC+"[1;3B"||(r.key=l.C0.ESC+"[1;5B")):r.key=e?l.C0.ESC+"OB":l.C0.ESC+"[B";break;case 45:n.shiftKey||n.ctrlKey||(r.key=l.C0.ESC+"[2~");break;case 46:r.key=a?l.C0.ESC+"[3;"+(a+1)+"~":l.C0.ESC+"[3~";break;case 36:r.key=a?l.C0.ESC+"[1;"+(a+1)+"H":e?l.C0.ESC+"OH":l.C0.ESC+"[H";break;case 35:r.key=a?l.C0.ESC+"[1;"+(a+1)+"F":e?l.C0.ESC+"OF":l.C0.ESC+"[F";break;case 33:n.shiftKey?r.type=2:r.key=l.C0.ESC+"[5~";break;case 34:n.shiftKey?r.type=3:r.key=l.C0.ESC+"[6~";break;case 112:r.key=a?l.C0.ESC+"[1;"+(a+1)+"P":l.C0.ESC+"OP";break;case 113:r.key=a?l.C0.ESC+"[1;"+(a+1)+"Q":l.C0.ESC+"OQ";break;case 114:r.key=a?l.C0.ESC+"[1;"+(a+1)+"R":l.C0.ESC+"OR";break;case 115:r.key=a?l.C0.ESC+"[1;"+(a+1)+"S":l.C0.ESC+"OS";break;case 116:r.key=a?l.C0.ESC+"[15;"+(a+1)+"~":l.C0.ESC+"[15~";break;case 117:r.key=a?l.C0.ESC+"[17;"+(a+1)+"~":l.C0.ESC+"[17~";break;case 118:r.key=a?l.C0.ESC+"[18;"+(a+1)+"~":l.C0.ESC+"[18~";break;case 119:r.key=a?l.C0.ESC+"[19;"+(a+1)+"~":l.C0.ESC+"[19~";break;case 120:r.key=a?l.C0.ESC+"[20;"+(a+1)+"~":l.C0.ESC+"[20~";break;case 121:r.key=a?l.C0.ESC+"[21;"+(a+1)+"~":l.C0.ESC+"[21~";break;case 122:r.key=a?l.C0.ESC+"[23;"+(a+1)+"~":l.C0.ESC+"[23~";break;case 123:r.key=a?l.C0.ESC+"[24;"+(a+1)+"~":l.C0.ESC+"[24~";break;default:if(!n.ctrlKey||n.shiftKey||n.altKey||n.metaKey)if(t&&!i||!n.altKey||n.metaKey)t&&!n.altKey&&!n.ctrlKey&&n.metaKey?65===n.keyCode&&(r.type=1):n.key&&!n.ctrlKey&&!n.altKey&&!n.metaKey&&n.keyCode>=48&&1===n.key.length?r.key=n.key:n.key&&n.ctrlKey&&"_"===n.key&&(r.key=l.C0.US);else{var u=o[n.keyCode],s=u&&u[n.shiftKey?1:0];s?r.key=l.C0.ESC+s:n.keyCode>=65&&n.keyCode<=90&&(r.key=l.C0.ESC+String.fromCharCode(n.ctrlKey?n.keyCode-64:n.keyCode+32))}else n.keyCode>=65&&n.keyCode<=90?r.key=String.fromCharCode(n.keyCode-64):32===n.keyCode?r.key=l.C0.NUL:n.keyCode>=51&&n.keyCode<=55?r.key=String.fromCharCode(n.keyCode-51+27):56===n.keyCode?r.key=l.C0.DEL:219===n.keyCode?r.key=l.C0.ESC:220===n.keyCode?r.key=l.C0.FS:221===n.keyCode&&(r.key=l.C0.GS)}return r}},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t(3);e.handleWindowsModeLineFeed=function(n){var e,t=null===(e=n.buffer.lines.get(n.buffer.ybase+n.buffer.y-1))||void 0===e?void 0:e.get(n.cols-1),o=n.buffer.lines.get(n.buffer.ybase+n.buffer.y);o&&t&&(o.isWrapped=t[l.CHAR_DATA_CODE_INDEX]!==l.NULL_CELL_CODE&&t[l.CHAR_DATA_CODE_INDEX]!==l.WHITESPACE_CELL_CODE)}},function(n,e,t){"use strict";var l,o=this&&this.__extends||(l=function(n,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)},function(n,e){function t(){this.constructor=n}l(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}),i=this&&this.__decorate||function(n,e,t,l){var o,i=arguments.length,r=i<3?e:null===l?l=Object.getOwnPropertyDescriptor(e,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(n,e,t,l);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(r=(i<3?o(r):i>3?o(e,t,r):o(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},r=this&&this.__param||function(n,e){return function(t,l){e(t,l,n)}};Object.defineProperty(e,"__esModule",{value:!0});var a=t(30),u=t(1),s=t(2),d=t(31),c=t(7),p=t(0),f=t(4),h=function(n){function e(e,t,l,o,i){var r=n.call(this)||this;if(r._renderer=e,r._rowCount=t,r.screenElement=l,r.optionsService=o,r.charSizeService=i,r._isPaused=!1,r._needsFullRefresh=!1,r._canvasWidth=0,r._canvasHeight=0,r._onDimensionsChange=new u.EventEmitter,r._onRender=new u.EventEmitter,r._onRefreshRequest=new u.EventEmitter,r._renderDebouncer=new a.RenderDebouncer((function(n,e){return r._renderRows(n,e)})),r.register(r._renderDebouncer),r._screenDprMonitor=new d.ScreenDprMonitor,r._screenDprMonitor.setListener((function(){return r.onDevicePixelRatioChange()})),r.register(r._screenDprMonitor),r.register(o.onOptionChange((function(){return r._renderer.onOptionsChanged()}))),r.register(i.onCharSizeChange((function(){return r.onCharSizeChanged()}))),r._renderer.onRequestRefreshRows((function(n){return r.refreshRows(n.start,n.end)})),r.register(c.addDisposableDomListener(window,"resize",(function(){return r.onDevicePixelRatioChange()}))),"IntersectionObserver"in window){var s=new IntersectionObserver((function(n){return r._onIntersectionChange(n[n.length-1])}),{threshold:0});s.observe(l),r.register({dispose:function(){return s.disconnect()}})}return r}return o(e,n),Object.defineProperty(e.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!0,configurable:!0}),e.prototype._onIntersectionChange=function(n){this._isPaused=0===n.intersectionRatio,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},e.prototype.refreshRows=function(n,e){this._isPaused?this._needsFullRefresh=!0:this._renderDebouncer.refresh(n,e,this._rowCount)},e.prototype._renderRows=function(n,e){this._renderer.renderRows(n,e),this._onRender.fire({start:n,end:e})},e.prototype.resize=function(n,e){this._rowCount=e,this._fireOnCanvasResize()},e.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},e.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},e.prototype.dispose=function(){this._renderer.dispose(),n.prototype.dispose.call(this)},e.prototype.setRenderer=function(n){var e=this;this._renderer.dispose(),this._renderer=n,this._renderer.onRequestRefreshRows((function(n){return e.refreshRows(n.start,n.end)})),this.refreshRows(0,this._rowCount-1)},e.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},e.prototype.setColors=function(n){this._renderer.setColors(n),this._fullRefresh()},e.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},e.prototype.onResize=function(n,e){this._renderer.onResize(n,e),this._fullRefresh()},e.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},e.prototype.onBlur=function(){this._renderer.onBlur()},e.prototype.onFocus=function(){this._renderer.onFocus()},e.prototype.onSelectionChanged=function(n,e,t){this._renderer.onSelectionChanged(n,e,t)},e.prototype.onCursorMove=function(){this._renderer.onCursorMove()},e.prototype.clear=function(){this._renderer.clear()},e.prototype.registerCharacterJoiner=function(n){return this._renderer.registerCharacterJoiner(n)},e.prototype.deregisterCharacterJoiner=function(n){return this._renderer.deregisterCharacterJoiner(n)},i([r(3,p.IOptionsService),r(4,f.ICharSizeService)],e)}(s.Disposable);e.RenderService=h},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t(1),o=t(11),i=t(32);e.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",e.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",bellSound:e.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:o.isMac,rendererType:"canvas",windowsMode:!1,convertEol:!1,termName:"xterm",screenKeys:!1,cancelEvents:!1,useFlowControl:!1,wordSeparator:" ()[]{}',:;\"`"});var r=["cols","rows"],a=function(){function n(n){var t=this;this._onOptionChange=new l.EventEmitter,this.options=i.clone(e.DEFAULT_OPTIONS),Object.keys(n).forEach((function(e){e in t.options&&(t.options[e]=n[e])}))}return Object.defineProperty(n.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!0,configurable:!0}),n.prototype.setOption=function(n,t){if(!(n in e.DEFAULT_OPTIONS))throw new Error('No option with key "'+n+'"');if(-1!==r.indexOf(n))throw new Error('Option "'+n+'" can only be set in the constructor');this.options[n]!==t&&(t=this._sanitizeAndValidateOption(n,t),this.options[n]!==t&&(this.options[n]=t,this._onOptionChange.fire(n)))},n.prototype._sanitizeAndValidateOption=function(n,t){switch(n){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":t||(t=e.DEFAULT_OPTIONS[n]);break;case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(n+" cannot be less than 1, value: "+t);break;case"minimumContrastRatio":t=Math.max(1,Math.min(21,Math.round(10*t)/10));case"scrollback":if((t=Math.min(t,4294967295))<0)throw new Error(n+" cannot be less than 0, value: "+t);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(n+" cannot be less than or equal to 0, value: "+t)}return t},n.prototype.getOption=function(n){if(!(n in e.DEFAULT_OPTIONS))throw new Error('No option with key "'+n+'"');return this.options[n]},n}();e.OptionsService=a},function(n,e,t){"use strict";var l=this&&this.__decorate||function(n,e,t,l){var o,i=arguments.length,r=i<3?e:null===l?l=Object.getOwnPropertyDescriptor(e,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(n,e,t,l);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(r=(i<3?o(r):i>3?o(e,t,r):o(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},o=this&&this.__param||function(n,e){return function(t,l){e(t,l,n)}};Object.defineProperty(e,"__esModule",{value:!0});var i=t(0),r=t(1),a=function(){function n(n,e,t){this.document=n,this.parentElement=e,this._optionsService=t,this.width=0,this.height=0,this._onCharSizeChange=new r.EventEmitter,this._measureStrategy=new u(n,e,this._optionsService)}return Object.defineProperty(n.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!0,configurable:!0}),n.prototype.measure=function(){var n=this._measureStrategy.measure();n.width===this.width&&n.height===this.height||(this.width=n.width,this.height=n.height,this._onCharSizeChange.fire())},l([o(2,i.IOptionsService)],n)}();e.CharSizeService=a;var u=function(){function n(n,e,t){this._document=n,this._parentElement=e,this._optionsService=t,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return n.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var n=this._measureElement.getBoundingClientRect();return 0!==n.width&&0!==n.height&&(this._result.width=n.width,this._result.height=Math.ceil(n.height)),this._result},n}()},function(n,e,t){"use strict";var l=this&&this.__decorate||function(n,e,t,l){var o,i=arguments.length,r=i<3?e:null===l?l=Object.getOwnPropertyDescriptor(e,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(n,e,t,l);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(r=(i<3?o(r):i>3?o(e,t,r):o(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},o=this&&this.__param||function(n,e){return function(t,l){e(t,l,n)}};Object.defineProperty(e,"__esModule",{value:!0});var i=t(0),r=t(65);e.MINIMUM_COLS=2,e.MINIMUM_ROWS=1;var a=function(){function n(n){this._optionsService=n,this.cols=Math.max(n.options.cols,e.MINIMUM_COLS),this.rows=Math.max(n.options.rows,e.MINIMUM_ROWS),this.buffers=new r.BufferSet(n,this)}return Object.defineProperty(n.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!0,configurable:!0}),n.prototype.resize=function(n,e){this.cols=n,this.rows=e},n.prototype.reset=function(){this.buffers=new r.BufferSet(this._optionsService,this)},l([o(0,i.IOptionsService)],n)}();e.BufferService=a},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t(66),o=t(1),i=function(){function n(n,e){this.optionsService=n,this.bufferService=e,this._onBufferActivate=new o.EventEmitter,this._normal=new l.Buffer(!0,n,e),this._normal.fillViewportRows(),this._alt=new l.Buffer(!1,n,e),this._activeBuffer=this._normal,this.setupTabStops()}return Object.defineProperty(n.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"alt",{get:function(){return this._alt},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"normal",{get:function(){return this._normal},enumerable:!0,configurable:!0}),n.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},n.prototype.activateAltBuffer=function(n){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(n),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},n.prototype.resize=function(n,e){this._normal.resize(n,e),this._alt.resize(n,e)},n.prototype.setupTabStops=function(n){this._normal.setupTabStops(n),this._alt.setupTabStops(n)},n}();e.BufferSet=i},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t(67),o=t(16),i=t(5),r=t(3),a=t(68),u=t(69),s=t(18);e.MAX_BUFFER_SIZE=4294967295;var d=function(){function n(n,e,t){this._hasScrollback=n,this._optionsService=e,this._bufferService=t,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=o.DEFAULT_ATTR_DATA.clone(),this.savedCharset=s.DEFAULT_CHARSET,this.markers=[],this._nullCell=i.CellData.fromCharData([0,r.NULL_CELL_CHAR,r.NULL_CELL_WIDTH,r.NULL_CELL_CODE]),this._whitespaceCell=i.CellData.fromCharData([0,r.WHITESPACE_CELL_CHAR,r.WHITESPACE_CELL_WIDTH,r.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new l.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return n.prototype.getNullCell=function(n){return n?(this._nullCell.fg=n.fg,this._nullCell.bg=n.bg):(this._nullCell.fg=0,this._nullCell.bg=0),this._nullCell},n.prototype.getWhitespaceCell=function(n){return n?(this._whitespaceCell.fg=n.fg,this._whitespaceCell.bg=n.bg):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0),this._whitespaceCell},n.prototype.getBlankLine=function(n,e){return new o.BufferLine(this._bufferService.cols,this.getNullCell(n),e)},Object.defineProperty(n.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isCursorInViewport",{get:function(){var n=this.ybase+this.y-this.ydisp;return n>=0&&ne.MAX_BUFFER_SIZE?e.MAX_BUFFER_SIZE:t},n.prototype.fillViewportRows=function(n){if(0===this.lines.length){void 0===n&&(n=o.DEFAULT_ATTR_DATA);for(var e=this._rows;e--;)this.lines.push(this.getBlankLine(n))}},n.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new l.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},n.prototype.resize=function(n,e){var t=this.getNullCell(o.DEFAULT_ATTR_DATA),l=this._getCorrectBufferLength(e);if(l>this.lines.maxLength&&(this.lines.maxLength=l),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+r+1?(this.ybase--,r++,this.ydisp>0&&this.ydisp--):this.lines.push(new o.BufferLine(n,t)));else for(a=this._rows;a>e;a--)this.lines.length>e+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(l0&&(this.lines.trimStart(u),this.ybase=Math.max(this.ybase-u,0),this.ydisp=Math.max(this.ydisp-u,0),this.savedY=Math.max(this.savedY-u,0)),this.lines.maxLength=l}this.x=Math.min(this.x,n-1),this.y=Math.min(this.y,e-1),r&&(this.y+=r),this.savedX=Math.min(this.savedX,n-1),this.scrollTop=0}if(this.scrollBottom=e-1,this._isReflowEnabled&&(this._reflow(n,e),this._cols>n))for(i=0;ithis._cols?this._reflowLarger(n,e):this._reflowSmaller(n,e))},n.prototype._reflowLarger=function(n,e){var t=a.reflowLargerGetLinesToRemove(this.lines,this._cols,n,this.ybase+this.y,this.getNullCell(o.DEFAULT_ATTR_DATA));if(t.length>0){var l=a.reflowLargerCreateNewLayout(this.lines,t);a.reflowLargerApplyNewLayout(this.lines,l.layout),this._reflowLargerAdjustViewport(n,e,l.countRemoved)}},n.prototype._reflowLargerAdjustViewport=function(n,e,t){for(var l=this.getNullCell(o.DEFAULT_ATTR_DATA),i=t;i-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length=0;r--){var u=this.lines.get(r);if(!(!u||!u.isWrapped&&u.getTrimmedLength()<=n)){for(var s=[u];u.isWrapped&&r>0;)u=this.lines.get(--r),s.unshift(u);var d=this.ybase+this.y;if(!(d>=r&&d0&&(l.push({start:r+s.length+i,newLines:m}),i+=m.length),s.push.apply(s,m);var b=f.length-1,_=f[b];0===_&&(_=f[--b]);for(var y=s.length-h-1,C=p;y>=0;){var w=Math.min(C,_);if(s[b].copyCellsFrom(s[y],C-w,_-w,w,!0),0==(_-=w)&&(_=f[--b]),0==(C-=w)){y--;var S=Math.max(y,0);C=a.getWrappedLineTrimmedLength(s,S,this._cols)}}for(v=0;v0;)0===this.ybase?this.y0){var k=[],E=[];for(v=0;v=0;v--)if(D&&D.start>R+F){for(var O=D.newLines.length-1;O>=0;O--)this.lines.set(v--,D.newLines[O]);v++,k.push({index:R+1,amount:D.newLines.length}),F+=D.newLines.length,D=l[++I]}else this.lines.set(v,E[R--]);var M=0;for(v=k.length-1;v>=0;v--)k[v].index+=M,this.lines.onInsertEmitter.fire(k[v]),M+=k[v].amount;var N=Math.max(0,T+i-this.lines.maxLength);N>0&&this.lines.onTrimEmitter.fire(N)}},n.prototype.stringIndexToBufferIndex=function(n,e,t){for(void 0===t&&(t=!1);e;){var l=this.lines.get(n);if(!l)return[-1,-1];for(var o=t?l.getTrimmedLength():l.length,i=0;i0&&this.lines.get(e).isWrapped;)e--;for(;t+10;);return n>=this._cols?this._cols-1:n<0?0:n},n.prototype.nextStop=function(n){for(null==n&&(n=this.x);!this.tabs[++n]&&n=this._cols?this._cols-1:n<0?0:n},n.prototype.addMarker=function(n){var e=this,t=new u.Marker(n);return this.markers.push(t),t.register(this.lines.onTrim((function(n){t.line-=n,t.line<0&&t.dispose()}))),t.register(this.lines.onInsert((function(n){t.line>=n.index&&(t.line+=n.amount)}))),t.register(this.lines.onDelete((function(n){t.line>=n.index&&t.linen.index&&(t.line-=n.amount)}))),t.register(t.onDispose((function(){return e._removeMarker(t)}))),t},n.prototype._removeMarker=function(n){this.markers.splice(this.markers.indexOf(n),1)},n.prototype.iterator=function(n,e,t,l,o){return new c(this,n,e,t,l,o)},n}();e.Buffer=d;var c=function(){function n(n,e,t,l,o,i){void 0===t&&(t=0),void 0===l&&(l=n.lines.length),void 0===o&&(o=0),void 0===i&&(i=0),this._buffer=n,this._trimRight=e,this._startIndex=t,this._endIndex=l,this._startOverscan=o,this._endOverscan=i,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return n.prototype.hasNext=function(){return this._currentthis._endIndex+this._endOverscan&&(n.last=this._endIndex+this._endOverscan),n.first=Math.max(n.first,0),n.last=Math.min(n.last,this._buffer.lines.length);for(var e="",t=n.first;t<=n.last;++t)e+=this._buffer.translateBufferLineToString(t,this._trimRight);return this._current=n.last+1,{range:n,content:e}},n}();e.BufferStringIterator=c},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t(1),o=function(){function n(n){this._maxLength=n,this.onDeleteEmitter=new l.EventEmitter,this.onInsertEmitter=new l.EventEmitter,this.onTrimEmitter=new l.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(n.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"maxLength",{get:function(){return this._maxLength},set:function(n){if(this._maxLength!==n){for(var e=new Array(n),t=0;tthis._length)for(var e=this._length;e=n;o--)this._array[this._getCyclicIndex(o+t.length)]=this._array[this._getCyclicIndex(o)];for(o=0;othis._maxLength){var i=this._length+t.length-this._maxLength;this._startIndex+=i,this._length=this._maxLength,this.onTrimEmitter.fire(i)}else this._length+=t.length},n.prototype.trimStart=function(n){n>this._length&&(n=this._length),this._startIndex+=n,this._length-=n,this.onTrimEmitter.fire(n)},n.prototype.shiftElements=function(n,e,t){if(!(e<=0)){if(n<0||n>=this._length)throw new Error("start argument out of range");if(n+t<0)throw new Error("Cannot shift elements in list beyond index 0");if(t>0){for(var l=e-1;l>=0;l--)this.set(n+l+t,this.get(n+l));var o=n+e+t-this._length;if(o>0)for(this._length+=o;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(l=0;l=a&&o0&&(b>c||0===d[b].getTrimmedLength());b--)g++;g>0&&(r.push(a+d.length-g),r.push(g)),a+=d.length-1}}}return r},e.reflowLargerCreateNewLayout=function(n,e){for(var t=[],l=0,o=e[l],i=0,r=0;rs&&(r-=s,a++);var d=2===n[a].getWidth(r-1);d&&r--;var c=d?t-1:t;o.push(c),u+=c}return o},e.getWrappedLineTrimmedLength=l},function(n,e,t){"use strict";var l,o=this&&this.__extends||(l=function(n,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)},function(n,e){function t(){this.constructor=n}l(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(e,"__esModule",{value:!0});var i=t(1),r=function(n){function e(t){var l=n.call(this)||this;return l.line=t,l._id=e._nextId++,l.isDisposed=!1,l._onDispose=new i.EventEmitter,l}return o(e,n),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},e._nextId=1,e}(t(2).Disposable);e.Marker=r},function(n,e,t){"use strict";var l=this&&this.__decorate||function(n,e,t,l){var o,i=arguments.length,r=i<3?e:null===l?l=Object.getOwnPropertyDescriptor(e,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(n,e,t,l);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(r=(i<3?o(r):i>3?o(e,t,r):o(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},o=this&&this.__param||function(n,e){return function(t,l){e(t,l,n)}};Object.defineProperty(e,"__esModule",{value:!0});var i=t(4),r=t(29),a=function(){function n(n,e){this._renderService=n,this._charSizeService=e}return n.prototype.getCoords=function(n,e,t,l,o){return r.getCoords(n,e,t,l,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,o)},n.prototype.getRawByteCoords=function(n,e,t,l){var o=this.getCoords(n,e,t,l);return r.getRawByteCoords(o)},l([o(0,i.IRenderService),o(1,i.ICharSizeService)],n)}();e.MouseService=a},function(n,e,t){"use strict";var l=this&&this.__decorate||function(n,e,t,l){var o,i=arguments.length,r=i<3?e:null===l?l=Object.getOwnPropertyDescriptor(e,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(n,e,t,l);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(r=(i<3?o(r):i>3?o(e,t,r):o(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},o=this&&this.__param||function(n,e){return function(t,l){e(t,l,n)}};Object.defineProperty(e,"__esModule",{value:!0});var i=t(0),r=t(1),a=t(32),u=Object.freeze({applicationCursorKeys:!1}),s=function(){function n(n,e,t,l){this._scrollToBottom=n,this._bufferService=e,this._logService=t,this._optionsService=l,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=new r.EventEmitter,this._onUserInput=new r.EventEmitter,this._onBinary=new r.EventEmitter,this.decPrivateModes=a.clone(u)}return Object.defineProperty(n.prototype,"onData",{get:function(){return this._onData.event},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!0,configurable:!0}),n.prototype.reset=function(){this.decPrivateModes=a.clone(u)},n.prototype.triggerDataEvent=function(n,e){if(void 0===e&&(e=!1),!this._optionsService.options.disableStdin){var t=this._bufferService.buffer;t.ybase!==t.ydisp&&this._scrollToBottom(),e&&this._onUserInput.fire(),this._logService.debug('sending data "'+n+'"',(function(){return n.split("").map((function(n){return n.charCodeAt(0)}))})),this._onData.fire(n)}},n.prototype.triggerBinaryEvent=function(n){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+n+'"',(function(){return n.split("").map((function(n){return n.charCodeAt(0)}))})),this._onBinary.fire(n))},l([o(1,i.IBufferService),o(2,i.ILogService),o(3,i.IOptionsService)],n)}();e.CoreService=s},function(n,e,t){"use strict";var l=this&&this.__decorate||function(n,e,t,l){var o,i=arguments.length,r=i<3?e:null===l?l=Object.getOwnPropertyDescriptor(e,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(n,e,t,l);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(r=(i<3?o(r):i>3?o(e,t,r):o(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},o=this&&this.__param||function(n,e){return function(t,l){e(t,l,n)}},i=this&&this.__spreadArrays||function(){for(var n=0,e=0,t=arguments.length;e=0;a--)(o=n[a])&&(r=(i<3?o(r):i>3?o(e,t,r):o(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},o=this&&this.__param||function(n,e){return function(t,l){e(t,l,n)}};Object.defineProperty(e,"__esModule",{value:!0});var i=t(0),r=function(){function n(n){this._bufferService=n,this.clearRange()}return Object.defineProperty(n.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),n.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},n.prototype.markDirty=function(n){nthis._end&&(this._end=n)},n.prototype.markRangeDirty=function(n,e){if(n>e){var t=n;n=e,e=t}nthis._end&&(this._end=e)},n.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},l([o(0,i.IBufferService)],n)}();e.DirtyRowService=r},function(n,e,t){"use strict";var l=this&&this.__spreadArrays||function(){for(var n=0,e=0,t=arguments.length;e0?o[0].index:e.length;if(e.length!==c)throw new Error("[createInstance] First service dependency of "+n.name+" at position "+(c+1)+" conflicts with "+e.length+" static arguments");return new(n.bind.apply(n,l([void 0],l(e,r))))},n}();e.InstantiationService=a},function(n,e,t){"use strict";var l=this&&this.__decorate||function(n,e,t,l){var o,i=arguments.length,r=i<3?e:null===l?l=Object.getOwnPropertyDescriptor(e,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(n,e,t,l);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(r=(i<3?o(r):i>3?o(e,t,r):o(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},o=this&&this.__param||function(n,e){return function(t,l){e(t,l,n)}};Object.defineProperty(e,"__esModule",{value:!0});var i=t(0),r=t(1),a={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(n){return 4!==n.button&&1===n.action&&(n.ctrl=!1,n.alt=!1,n.shift=!1,!0)}},VT200:{events:19,restrict:function(n){return 32!==n.action}},DRAG:{events:23,restrict:function(n){return 32!==n.action||3!==n.button}},ANY:{events:31,restrict:function(n){return!0}}};function u(n,e){var t=(n.ctrl?16:0)|(n.shift?4:0)|(n.alt?8:0);return 4===n.button?(t|=64,t|=n.action):(t|=3&n.button,4&n.button&&(t|=64),8&n.button&&(t|=128),32===n.action?t|=32:0!==n.action||e||(t|=3)),t}var s=String.fromCharCode,d={DEFAULT:function(n){var e=[u(n,!1)+32,n.col+32,n.row+32];return e[0]>255||e[1]>255||e[2]>255?"":""+s(e[0])+s(e[1])+s(e[2])},SGR:function(n){var e=0===n.action&&4!==n.button?"m":"M";return"[<"+u(n,!0)+";"+n.col+";"+n.row+e}},c=function(){function n(n,e){var t=this;this._bufferService=n,this._coreService=e,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new r.EventEmitter,this._lastEvent=null,Object.keys(a).forEach((function(n){return t.addProtocol(n,a[n])})),Object.keys(d).forEach((function(n){return t.addEncoding(n,d[n])})),this.reset()}return n.prototype.addProtocol=function(n,e){this._protocols[n]=e},n.prototype.addEncoding=function(n,e){this._encodings[n]=e},Object.defineProperty(n.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(n){if(!this._protocols[n])throw new Error('unknown protocol "'+n+'"');this._activeProtocol=n,this._onProtocolChange.fire(this._protocols[n].events)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(n){if(!this._encodings[n])throw new Error('unknown encoding "'+n+'"');this._activeEncoding=n},enumerable:!0,configurable:!0}),n.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(n.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!0,configurable:!0}),n.prototype.triggerMouseEvent=function(n){if(n.col<0||n.col>=this._bufferService.cols||n.row<0||n.row>=this._bufferService.rows)return!1;if(4===n.button&&32===n.action)return!1;if(3===n.button&&32!==n.action)return!1;if(4!==n.button&&(2===n.action||3===n.action))return!1;if(n.col++,n.row++,32===n.action&&this._lastEvent&&this._compareEvents(this._lastEvent,n))return!1;if(!this._protocols[this._activeProtocol].restrict(n))return!1;var e=this._encodings[this._activeEncoding](n);return e&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(e):this._coreService.triggerDataEvent(e,!0)),this._lastEvent=n,!0},n.prototype.explainEvents=function(n){return{DOWN:!!(1&n),UP:!!(2&n),DRAG:!!(4&n),MOVE:!!(8&n),WHEEL:!!(16&n)}},n.prototype._compareEvents=function(n,e){return n.col===e.col&&n.row===e.row&&n.button===e.button&&n.action===e.action&&n.ctrl===e.ctrl&&n.alt===e.alt&&n.shift===e.shift},l([o(0,i.IBufferService),o(1,i.ICoreService)],n)}();e.CoreMouseService=c},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function n(n){this._action=n,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return n.prototype.writeSync=function(n){if(this._writeBuffer.length){for(var e=this._bufferOffset;e5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout((function(){return t._innerWrite()}))),this._pendingData+=n.length,this._writeBuffer.push(n),this._callbacks.push(e)},n.prototype._innerWrite=function(){for(var n=this,e=Date.now();this._writeBuffer.length>this._bufferOffset;){var t=this._writeBuffer[this._bufferOffset],l=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(t),this._pendingData-=t.length,l&&l(),Date.now()-e>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout((function(){return n._innerWrite()}),0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},n}();e.WriteBuffer=l},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function n(n){this._textarea=n}return Object.defineProperty(n.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!0,configurable:!0}),n}();e.CoreBrowserService=l},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function n(){this._addons=[]}return n.prototype.dispose=function(){for(var n=this._addons.length-1;n>=0;n--)this._addons[n].instance.dispose()},n.prototype.loadAddon=function(n,e){var t=this,l={instance:e,dispose:e.dispose,isDisposed:!1};this._addons.push(l),e.dispose=function(){return t._wrappedAddonDispose(l)},e.activate(n)},n.prototype._wrappedAddonDispose=function(n){if(!n.isDisposed){for(var e=-1,t=0;tthis.total&&this.destination.next(n)},e}(o.a)},"0zd0":function(n,e,t){"use strict";t.d(e,"a",(function(){return a}));var l=t("T1DM"),o=t("3U0i"),i=t("ceCD"),r=t("XlPw");function a(n,e){return void 0===e&&(e=l.a),Object(i.a)(n,Object(r.a)(new o.a),e)}},"14Nl":function(n,e,t){"use strict";t.d(e,"a",(function(){return r}));var l=t("mrSG"),o=t("FFOo"),i=t("b7mW");function r(n){return function(e){return e.lift(new a(n))}}var a=function(){function n(n){if(this._skipCount=n,this._skipCount<0)throw new i.a}return n.prototype.call=function(n,e){return e.subscribe(0===this._skipCount?new o.a(n):new u(n,this._skipCount))},n}(),u=function(n){function e(e,t){var l=n.call(this,e)||this;return l._skipCount=t,l._count=0,l._ring=new Array(t),l}return l.c(e,n),e.prototype._next=function(n){var e=this._skipCount,t=this._count++;if(to&&(p=u-i+3,u=i-2);for(var f=s;f<=d;f++)f>=0&&f0&&l[f].length>p?"…":"")+l[f].substr(p,o-2)+(l[f].length>p+o-1?"…":""));return[t(s,a),new Array(u+c+2).join("-")+"^",t(a,d)].filter(Boolean).join("\n")}n.exports=function(n,e,t,o,i){var r=l("SyntaxError",n);return r.source=e,r.offset=t,r.line=o,r.column=i,r.sourceFragment=function(n){return a(r,isNaN(n)?0:n)},Object.defineProperty(r,"formattedMessage",{get:function(){return"Parse error: "+r.message+"\n"+a(r,2)}}),r.parseError={offset:t,line:o,column:i},r}},"1fDf":function(n,e,t){"use strict";t.d(e,"a",(function(){return o}));var l=t("FFOo");function o(n){for(;n;){var e=n.destination;if(n.closed||n.isStopped)return!1;n=e&&e instanceof l.a?e:null}return!0}},"26FU":function(n,e,t){"use strict";t.d(e,"a",(function(){return r}));var l=t("mrSG"),o=t("K9Ia"),i=t("8g8A"),r=function(n){function e(e){var t=n.call(this)||this;return t._value=e,t}return l.c(e,n),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var t=n.prototype._subscribe.call(this,e);return t&&!t.closed&&e.next(this._value),t},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value},e.prototype.next=function(e){n.prototype.next.call(this,this._value=e)},e}(o.b)},"2Bdj":function(n,e,t){"use strict";function l(n){return"function"==typeof n}t.d(e,"a",(function(){return l}))},"2Gxe":function(n,e,t){var l=t("vd7W").TYPE,o=l.Ident,i=l.String,r=l.Colon,a=l.LeftSquareBracket,u=l.RightSquareBracket,s=36,d=42,c=61,p=94,f=124,h=126;function m(){this.scanner.eof&&this.error("Unexpected end of input");var n=this.scanner.tokenStart,e=!1,t=!0;return this.scanner.isDelim(d)?(e=!0,t=!1,this.scanner.next()):this.scanner.isDelim(f)||this.eat(o),this.scanner.isDelim(f)?this.scanner.source.charCodeAt(this.scanner.tokenStart+1)!==c?(this.scanner.next(),this.eat(o)):e&&this.error("Identifier is expected",this.scanner.tokenEnd):e&&this.error("Vertical line is expected"),t&&this.scanner.tokenType===r&&(this.scanner.next(),this.eat(o)),{type:"Identifier",loc:this.getLocation(n,this.scanner.tokenStart),name:this.scanner.substrToCursor(n)}}function v(){var n=this.scanner.tokenStart,e=this.scanner.source.charCodeAt(n);return e!==c&&e!==h&&e!==p&&e!==s&&e!==d&&e!==f&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.scanner.next(),e!==c&&(this.scanner.isDelim(c)||this.error("Equal sign is expected"),this.scanner.next()),this.scanner.substrToCursor(n)}n.exports={name:"AttributeSelector",structure:{name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]},parse:function(){var n,e=this.scanner.tokenStart,t=null,l=null,r=null;return this.eat(a),this.scanner.skipSC(),n=m.call(this),this.scanner.skipSC(),this.scanner.tokenType!==u&&(this.scanner.tokenType!==o&&(t=v.call(this),this.scanner.skipSC(),l=this.scanner.tokenType===i?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===o&&(r=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC())),this.eat(u),{type:"AttributeSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:n,matcher:t,value:l,flags:r}},generate:function(n){var e=" ";this.chunk("["),this.node(n.name),null!==n.matcher&&(this.chunk(n.matcher),null!==n.value&&(this.node(n.value),"String"===n.value.type&&(e=""))),null!==n.flags&&(this.chunk(e),this.chunk(n.flags)),this.chunk("]")}}},"2TAq":function(n,e,t){var l=t("vd7W").isHexDigit,o=t("vd7W").cmpChar,i=t("vd7W").TYPE,r=i.Ident,a=i.Delim,u=i.Number,s=i.Dimension,d=45,c=63;function p(n,e){return null!==n&&n.type===a&&n.value.charCodeAt(0)===e}function f(n,e){return n.value.charCodeAt(0)===e}function h(n,e,t){for(var o=e,i=0;o0?6:0;if(!l(r))return 0;if(++i>6)return 0}return i}function m(n,e,t){if(!n)return 0;for(;p(t(e),c);){if(++n>6)return 0;e++}return e}n.exports=function(n,e){var t=0;if(null===n||n.type!==r||!o(n.value,0,117))return 0;if(null===(n=e(++t)))return 0;if(p(n,43))return null===(n=e(++t))?0:n.type===r?m(h(n,0,!0),++t,e):p(n,c)?m(1,++t,e):0;if(n.type===u){if(!f(n,43))return 0;var l=h(n,1,!0);return 0===l?0:null===(n=e(++t))?t:n.type===s||n.type===u?f(n,d)&&h(n,1,!1)?t+1:0:m(l,t,e)}return n.type===s&&f(n,43)?m(h(n,1,!0),++t,e):0}},"2WpN":function(n,e,t){"use strict";t.d(e,"a",(function(){return r}));var l=t("mrSG"),o=t("FFOo"),i=t("pugT");function r(n){return function(e){return e.lift(new a(n))}}var a=function(){function n(n){this.callback=n}return n.prototype.call=function(n,e){return e.subscribe(new u(n,this.callback))},n}(),u=function(n){function e(e,t){var l=n.call(this,e)||this;return l.add(new i.a(t)),l}return l.c(e,n),e}(o.a)},"2ePl":function(n,e,t){"use strict";t.d(e,"a",(function(){return l}));var l=function(n){return n&&"number"==typeof n.length&&"function"!=typeof n}},"2pxp":function(n,e){n.exports={parse:function(){return this.createSingleNodeList(this.SelectorList())}}},"2yAJ":function(n,e){function t(n,e){var t=(65535&n)+(65535&e);return(n>>16)+(e>>16)+(t>>16)<<16|65535&t}function l(n,e,l,o,i,r){return t((a=t(t(e,n),t(o,r)))<<(u=i)|a>>>32-u,l);var a,u}function o(n,e,t,o,i,r,a){return l(e&t|~e&o,n,e,i,r,a)}function i(n,e,t,o,i,r,a){return l(e&o|t&~o,n,e,i,r,a)}function r(n,e,t,o,i,r,a){return l(e^t^o,n,e,i,r,a)}function a(n,e,t,o,i,r,a){return l(t^(e|~o),n,e,i,r,a)}function u(n,e){var l,u,s,d,c;n[e>>5]|=128<>>9<<4)]=e;var p=1732584193,f=-271733879,h=-1732584194,m=271733878;for(l=0;l>5]>>>e%32&255);return t}function d(n){var e,t=[];for(t[(n.length>>2)-1]=void 0,e=0;e>5]|=(255&n.charCodeAt(e/8))<>>4&15)+"0123456789abcdef".charAt(15&e);return l}function p(n){return unescape(encodeURIComponent(n))}function f(n){return function(n){return s(u(d(n),8*n.length))}(p(n))}function h(n,e){return function(n,e){var t,l,o=d(n),i=[],r=[];for(i[15]=r[15]=void 0,o.length>16&&(o=u(o,8*n.length)),t=0;t<16;t+=1)i[t]=909522486^o[t],r[t]=1549556828^o[t];return l=u(i.concat(d(e)),512+8*e.length),s(u(r.concat(l),640))}(p(n),p(e))}n.exports=function(n,e,t){return e?t?h(e,n):c(h(e,n)):t?f(n):c(f(n))}},"31qQ":function(n,e,t){"use strict";t.d(e,"a",(function(){return r}));var l=t("mrSG"),o=t("MGBS"),i=t("zotm");function r(){return function(n){return n.lift(new a)}}var a=function(){function n(){}return n.prototype.call=function(n,e){return e.subscribe(new u(n))},n}(),u=function(n){function e(e){var t=n.call(this,e)||this;return t.hasCompleted=!1,t.hasSubscription=!1,t}return l.c(e,n),e.prototype._next=function(n){this.hasSubscription||(this.hasSubscription=!0,this.add(Object(i.a)(this,n)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(n){this.remove(n),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(o.a)},"33Dm":function(n,e,t){var l=t("vd7W").TYPE,o=l.WhiteSpace,i=l.Comment,r=l.Ident,a=l.LeftParenthesis;n.exports={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var n=this.createList(),e=null,t=null;n:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case i:this.scanner.next();continue;case o:t=this.WhiteSpace();continue;case r:e=this.Identifier();break;case a:e=this.MediaFeature();break;default:break n}null!==t&&(n.push(t),t=null),n.push(e)}return null===e&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(n),children:n}},generate:function(n){this.children(n)}}},"3J/R":function(n,e,t){"use strict";t.d(e,"a",(function(){return i}));var l=t("26FU"),o=t("xlPZ");function i(n){return function(e){return Object(o.a)(new l.a(n))(e)}}},"3U0i":function(n,e,t){"use strict";t.d(e,"a",(function(){return l}));var l=function(){function n(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return n.prototype=Object.create(Error.prototype),n}()},"3XNy":function(n,e){var t=0;function l(n){return n>=48&&n<=57}function o(n){return n>=65&&n<=90}function i(n){return n>=97&&n<=122}function r(n){return o(n)||i(n)}function a(n){return n>=128}function u(n){return r(n)||a(n)||95===n}function s(n){return n>=0&&n<=8||11===n||n>=14&&n<=31||127===n}function d(n){return 10===n||13===n||12===n}function c(n){return d(n)||32===n||9===n}function p(n,e){return 92===n&&!d(e)&&e!==t}var f=new Array(128);m.Eof=128,m.WhiteSpace=130,m.Digit=131,m.NameStart=132,m.NonPrintable=133;for(var h=0;h=65&&n<=70||n>=97&&n<=102},isUppercaseLetter:o,isLowercaseLetter:i,isLetter:r,isNonAscii:a,isNameStart:u,isName:function(n){return u(n)||l(n)||45===n},isNonPrintable:s,isNewline:d,isWhiteSpace:c,isValidEscape:p,isIdentifierStart:function(n,e,t){return 45===n?u(e)||45===e||p(e,t):!!u(n)||92===n&&p(n,e)},isNumberStart:function(n,e,t){return 43===n||45===n?l(e)?2:46===e&&l(t)?3:0:46===n?l(e)?2:0:l(n)?1:0},isBOM:function(n){return 65279===n?1:65534===n?1:0},charCodeCategory:m}},"3fWJ":function(n,e,t){"use strict";t.d(e,"a",(function(){return l}));var l=function(){function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n}()},"41IB":function(n,e,t){"use strict";t.d(e,"a",(function(){return i}));var l=t("mrSG"),o=t("FFOo");function i(){return function(n){return n.lift(new r)}}var r=function(){function n(){}return n.prototype.call=function(n,e){return e.subscribe(new a(n))},n}(),a=function(n){function e(e){return n.call(this,e)||this}return l.c(e,n),e.prototype._next=function(n){n.observe(this.destination)},e}(o.a)},"4HHr":function(n,e){var t=Object.prototype.hasOwnProperty,l=function(){};function o(n){return"function"==typeof n?n:l}function i(n,e){return function(t,l,o){t.type===e&&n.call(this,t,l,o)}}function r(n,e){var l=e.structure,o=[];for(var i in l)if(!1!==t.call(l,i)){var r=l[i],a={name:i,type:!1,nullable:!1};Array.isArray(l[i])||(r=[l[i]]);for(var u=0;u=0;--e)t[e]===n&&t.splice(e,1)},v.uninstall=function(){e&&(i.onerror=n,e=!1,n=void 0),t=[]},v}(),o.computeStackTrace=function(){function n(n){if(void 0!==n.stack&&n.stack){for(var e,t,l,o=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack||[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,i=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,r=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,d=/\((\S*)(?::(\d+))(?::(\d+))\)/,c=n.stack.split("\n"),p=[],f=(/^(.*) is undefined$/.exec(n.message),0),h=c.length;f eval")>-1&&(e=u.exec(t[3]))?(t[3]=e[1],t[4]=e[2],t[5]=null):0!==f||t[5]||void 0===n.columnNumber||(p[0].column=n.columnNumber+1),l={url:t[3],func:t[1]||a,args:t[2]?t[2].split(","):[],line:t[4]?+t[4]:null,column:t[5]?+t[5]:null}}if(!l.func&&l.line&&(l.func=a),l.url&&"blob:"===l.url.substr(0,5)){var v=new XMLHttpRequest;if(v.open("GET",l.url,!1),v.send(null),200===v.status){var g=v.responseText||"",b=(g=g.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(b){var _=b[1];"~"===_.charAt(0)&&(_=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+_.slice(1)),l.url=_.slice(0,-4)}}}p.push(l)}return p.length?{name:n.name,message:n.message,url:s(),stack:p}:null}}function e(n,e,t,l){var o={url:e,line:t};if(o.url&&o.line){if(n.incomplete=!1,o.func||(o.func=a),n.stack.length>0&&n.stack[0].url===o.url){if(n.stack[0].line===o.line)return!1;if(!n.stack[0].line&&n.stack[0].func===o.func)return n.stack[0].line=o.line,!1}return n.stack.unshift(o),n.partial=!0,!0}return n.incomplete=!0,!1}function t(n,i){for(var r,u,d=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,c=[],p={},f=!1,h=t.caller;h&&!f;h=h.caller)if(h!==l&&h!==o.report){if(u={url:null,func:a,line:null,column:null},h.name?u.func=h.name:(r=d.exec(h.toString()))&&(u.func=r[1]),void 0===u.func)try{u.func=r.input.substring(0,r.input.indexOf("{"))}catch(v){}p[""+h]?f=!0:p[""+h]=!0,c.push(u)}i&&c.splice(0,i);var m={name:n.name,message:n.message,url:s(),stack:c};return e(m,n.sourceURL||n.fileName,n.line||n.lineNumber),m}function l(e,l){var i=null;l=null==l?0:+l;try{if(i=n(e))return i}catch(r){if(o.debug)throw r}try{if(i=t(e,l+1))return i}catch(r){if(o.debug)throw r}return{name:e.name,message:e.message,url:s()}}return l.augmentStackTraceWithInitialElement=e,l.computeStackTraceFromStackProp=n,l}(),n.exports=o},"4fRq":function(n,e){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var l=new Uint8Array(16);n.exports=function(){return t(l),l}}else{var o=new Array(16);n.exports=function(){for(var n,e=0;e<16;e++)0==(3&e)&&(n=4294967296*Math.random()),o[e]=n>>>((3&e)<<3)&255;return o}}},"4njK":function(n,e,t){var l=t("vd7W").TYPE,o=l.WhiteSpace,i=l.Semicolon,r=l.LeftCurlyBracket,a=l.Delim;function u(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===o?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function s(){return 0}n.exports={name:"Raw",structure:{value:String},parse:function(n,e,t){var l,o=this.scanner.getTokenStart(n);return this.scanner.skip(this.scanner.getRawLength(n,e||s)),l=t&&this.scanner.tokenStart>o?u.call(this):this.scanner.tokenStart,{type:"Raw",loc:this.getLocation(o,l),value:this.scanner.source.substring(o,l)}},generate:function(n){this.chunk(n.value)},mode:{default:s,leftCurlyBracket:function(n){return n===r?1:0},leftCurlyBracketOrSemicolon:function(n){return n===r||n===i?1:0},exclamationMarkOrSemicolon:function(n,e,t){return n===a&&33===e.charCodeAt(t)?1:n===i?1:0},semicolonIncluded:function(n){return n===i?2:0}}}},"4vYp":function(n){n.exports=JSON.parse('{"generic":true,"types":{"absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large","alpha-value":"|","angle-percentage":"|","angular-color-hint":"","angular-color-stop":"&&?","angular-color-stop-list":"[ [, ]?]# , ","animateable-feature":"scroll-position|contents|","attachment":"scroll|fixed|local","attr()":"attr( ? [, ]? )","attr-matcher":"[\'~\'|\'|\'|\'^\'|\'$\'|\'*\']? \'=\'","attr-modifier":"i|s","attribute-selector":"\'[\' \']\'|\'[\' [|] ? \']\'","auto-repeat":"repeat( [auto-fill|auto-fit] , [? ]+ ? )","auto-track-list":"[? [|]]* ? [? [|]]* ?","baseline-position":"[first|last]? baseline","basic-shape":"|||","bg-image":"none|","bg-layer":"|| [/ ]?||||||||","bg-position":"[[left|center|right|top|bottom|]|[left|center|right|] [top|center|bottom|]|[center|[left|right] ?]&&[center|[top|bottom] ?]]","bg-size":"[|auto]{1,2}|cover|contain","blur()":"blur( )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity","box":"border-box|padding-box|content-box","brightness()":"brightness( )","calc()":"calc( )","calc-sum":" [[\'+\'|\'-\'] ]*","calc-product":" [\'*\' |\'/\' ]*","calc-value":"|||( )","cf-final-image":"|","cf-mixing-image":"?&&","circle()":"circle( []? [at ]? )","clamp()":"clamp( #{3} )","class-selector":"\'.\' ","clip-source":"","color":"||||||currentcolor|","color-stop":"|","color-stop-angle":"{1,2}","color-stop-length":"{1,2}","color-stop-list":"[ [, ]?]# , ","combinator":"\'>\'|\'+\'|\'~\'|[\'||\']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat":"searchfield|textarea|push-button|button-bevel|slider-horizontal|checkbox|radio|square-button|menulist|menulist-button|listbox|meter|progress-bar","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[? * [ *]*]!","compound-selector-list":"#","complex-selector":" [? ]*","complex-selector-list":"#","conic-gradient()":"conic-gradient( [from ]? [at ]? , )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[|contents||||counter( , <\'list-style-type\'>? )]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"","contrast()":"contrast( [] )","counter()":"counter( , [|none]? )","counter-style":"|symbols( )","counter-style-name":"","counters()":"counters( , , [|none]? )","cross-fade()":"cross-fade( , ? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( , , , )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( {2,3} ? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( )","ellipse()":"ellipse( [{2}]? [at ]? )","ending-shape":"circle|ellipse","env()":"env( , ? )","explicit-track-list":"[? ]+ ?","family-name":"|+","feature-tag-value":" [|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":" \'{\' \'}\'","feature-value-block-list":"+","feature-value-declaration":" : + ;","feature-value-declaration-list":"","feature-value-name":"","fill-rule":"nonzero|evenodd","filter-function":"|||||||||","filter-function-list":"[|]+","final-bg-layer":"<\'background-color\'>|||| [/ ]?||||||||","fit-content()":"fit-content( [|] )","fixed-breadth":"","fixed-repeat":"repeat( [] , [? ]+ ? )","fixed-size":"|minmax( , )|minmax( , )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|","frequency-percentage":"|","general-enclosed":"[ )]|( )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"|fill-box|stroke-box|view-box","gradient":"|||||<-legacy-gradient>","grayscale()":"grayscale( )","grid-line":"auto||[&&?]|[span&&[||]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( [/ ]? )|hsl( , , , ? )","hsla()":"hsla( [/ ]? )|hsla( , , , ? )","hue":"|","hue-rotate()":"hue-rotate( )","image":"|||||","image()":"image( ? [? , ?]! )","image-set()":"image-set( # )","image-set-option":"[|] ","image-src":"|","image-tags":"ltr|rtl","inflexible-breadth":"||min-content|max-content|auto","inset()":"inset( {1,4} [round <\'border-radius\'>]? )","invert()":"invert( )","keyframes-name":"|","keyframe-block":"# { }","keyframe-block-list":"+","keyframe-selector":"from|to|","leader()":"leader( )","leader-type":"dotted|solid|space|","length-percentage":"|","line-names":"\'[\' * \']\'","line-name-list":"[|]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"|thin|medium|thick","linear-color-hint":"","linear-color-stop":" ?","linear-gradient()":"linear-gradient( [|to ]? , )","mask-layer":"|| [/ ]?||||||[|no-clip]||||","mask-position":"[|left|center|right] [|top|center|bottom]?","mask-reference":"none||","mask-source":"","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( #{6} )","matrix3d()":"matrix3d( #{16} )","max()":"max( # )","media-and":" [and ]+","media-condition":"|||","media-condition-without-or":"||","media-feature":"( [||] )","media-in-parens":"( )||","media-not":"not ","media-or":" [or ]+","media-query":"|[not|only]? [and ]?","media-query-list":"#","media-type":"","mf-boolean":"","mf-name":"","mf-plain":" : ","mf-range":" [\'<\'|\'>\']? \'=\'? | [\'<\'|\'>\']? \'=\'? | \'<\' \'=\'? \'<\' \'=\'? | \'>\' \'=\'? \'>\' \'=\'? ","mf-value":"|||","min()":"min( # )","minmax()":"minmax( [|||min-content|max-content|auto] , [|||min-content|max-content|auto] )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"","ns-prefix":"[|\'*\']? \'|\'","number-percentage":"|","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]","nth":"|even|odd","opacity()":"opacity( [] )","overflow-position":"unsafe|safe","outline-radius":"|","page-body":"? [; ]?| ","page-margin-box":" \'{\' \'}\'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[#]?","page-selector":"+| *","perspective()":"perspective( )","polygon()":"polygon( ? , [ ]# )","position":"[[left|center|right]||[top|center|bottom]|[left|center|right|] [top|center|bottom|]?|[[left|right] ]&&[[top|bottom] ]]","pseudo-class-selector":"\':\' |\':\' \')\'","pseudo-element-selector":"\':\' ","pseudo-page":": [left|right|first|blank]","quote":"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [||]? [at ]? , )","relative-selector":"? ","relative-selector-list":"#","relative-size":"larger|smaller","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-linear-gradient()":"repeating-linear-gradient( [|to ]? , )","repeating-radial-gradient()":"repeating-radial-gradient( [||]? [at ]? , )","rgb()":"rgb( {3} [/ ]? )|rgb( {3} [/ ]? )|rgb( #{3} , ? )|rgb( #{3} , ? )","rgba()":"rgba( {3} [/ ]? )|rgba( {3} [/ ]? )|rgba( #{3} , ? )|rgba( #{3} , ? )","rotate()":"rotate( [|] )","rotate3d()":"rotate3d( , , , [|] )","rotateX()":"rotateX( [|] )","rotateY()":"rotateY( [|] )","rotateZ()":"rotateZ( [|] )","saturate()":"saturate( )","scale()":"scale( , ? )","scale3d()":"scale3d( , , )","scaleX()":"scaleX( )","scaleY()":"scaleY( )","scaleZ()":"scaleZ( )","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"|closest-side|farthest-side","skew()":"skew( [|] , [|]? )","skewX()":"skewX( [|] )","skewY()":"skewY( [|] )","sepia()":"sepia( )","shadow":"inset?&&{2,4}&&?","shadow-t":"[{2,3}&&?]","shape":"rect( , , , )|rect( )","shape-box":"|margin-box","side-or-corner":"[left|right]||[top|bottom]","single-animation":"