@dao42/d42paas-front 0.5.26 → 0.5.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -174716,7 +174716,6 @@ const EditorLayout = newStyled.div`
174716
174716
  border-right: 1px solid rgb(42 96 231); */
174717
174717
  /* background: red; */
174718
174718
  }
174719
-
174720
174719
  }
174721
174720
  `;
174722
174721
  const ContentLayout = newStyled.div`
@@ -174877,7 +174876,7 @@ const Editor = ({
174877
174876
  setLocalFile(doc2.path, file.value);
174878
174877
  }
174879
174878
  };
174880
- const lspServerInject = (lan, disable) => {
174879
+ const lspServerInject = (_lan, disable) => {
174881
174880
  languages.register({
174882
174881
  id: "ruby",
174883
174882
  extensions: [".rb"],
@@ -182342,13 +182341,10 @@ const Console = (_c2) => {
182342
182341
  }
182343
182342
  }, [terminal]);
182344
182343
  react.exports.useEffect(() => {
182344
+ if (!terminal)
182345
+ return;
182345
182346
  const crdt = CRDTInfo.console;
182346
- if (terminal && crdt) {
182347
- if (crdt.doc.value === "^C") {
182348
- writeText(terminal, crdt.doc.value);
182349
- initTerminalText(terminal, "");
182350
- return;
182351
- }
182347
+ if (crdt) {
182352
182348
  writeText(terminal, crdt.doc.value || "");
182353
182349
  }
182354
182350
  }, [CRDTInfo.console]);
@@ -182357,7 +182353,7 @@ const Console = (_c2) => {
182357
182353
  return;
182358
182354
  if (dockerStatus === "STOP") {
182359
182355
  setTimeout(() => {
182360
- initTerminalText(terminal, "\u5E94\u7528\u672A\u542F\u52A8\r\n");
182356
+ writeText(terminal, "\r\n\u5E94\u7528\u672A\u542F\u52A8\r\n");
182361
182357
  }, 400);
182362
182358
  } else {
182363
182359
  initTerminalText(terminal, "");
@@ -1588,7 +1588,6 @@ ${JSON.stringify(S,void 0,4)}`)});else if(g.changes)for(const S of Object.keys(g
1588
1588
  border-right: 1px solid rgb(42 96 231); */
1589
1589
  /* background: red; */
1590
1590
  }
1591
-
1592
1591
  }
1593
1592
  `,_wt=Ja.div`
1594
1593
  flex: 1;
@@ -1602,7 +1601,8 @@ ${JSON.stringify(S,void 0,4)}`)});else if(g.changes)for(const S of Object.keys(g
1602
1601
  `,c.VT="\v",c.FF="\f",c.CR="\r",c.SO="",c.SI="",c.DLE="",c.DC1="",c.DC2="",c.DC3="",c.DC4="",c.NAK="",c.SYN="",c.ETB="",c.CAN="",c.EM="",c.SUB="",c.ESC="",c.FS="",c.GS="",c.RS="",c.US="",c.SP=" ",c.DEL="\x7F",(l=a.C1||(a.C1={})).PAD="\x80",l.HOP="\x81",l.BPH="\x82",l.NBH="\x83",l.IND="\x84",l.NEL="\x85",l.SSA="\x86",l.ESA="\x87",l.HTS="\x88",l.HTJ="\x89",l.VTS="\x8A",l.PLD="\x8B",l.PLU="\x8C",l.RI="\x8D",l.SS2="\x8E",l.SS3="\x8F",l.DCS="\x90",l.PU1="\x91",l.PU2="\x92",l.STS="\x93",l.CCH="\x94",l.MW="\x95",l.SPA="\x96",l.EPA="\x97",l.SOS="\x98",l.SGCI="\x99",l.SCI="\x9A",l.CSI="\x9B",l.ST="\x9C",l.OSC="\x9D",l.PM="\x9E",l.APC="\x9F"},7399:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.evaluateKeyboardEvent=void 0;var c=l(2584),u={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};a.evaluateKeyboardEvent=function(d,h,g,m){var C={type:0,cancel:!1,key:void 0},y=(d.shiftKey?1:0)|(d.altKey?2:0)|(d.ctrlKey?4:0)|(d.metaKey?8:0);switch(d.keyCode){case 0:d.key==="UIKeyInputUpArrow"?C.key=h?c.C0.ESC+"OA":c.C0.ESC+"[A":d.key==="UIKeyInputLeftArrow"?C.key=h?c.C0.ESC+"OD":c.C0.ESC+"[D":d.key==="UIKeyInputRightArrow"?C.key=h?c.C0.ESC+"OC":c.C0.ESC+"[C":d.key==="UIKeyInputDownArrow"&&(C.key=h?c.C0.ESC+"OB":c.C0.ESC+"[B");break;case 8:if(d.shiftKey){C.key=c.C0.BS;break}if(d.altKey){C.key=c.C0.ESC+c.C0.DEL;break}C.key=c.C0.DEL;break;case 9:if(d.shiftKey){C.key=c.C0.ESC+"[Z";break}C.key=c.C0.HT,C.cancel=!0;break;case 13:C.key=d.altKey?c.C0.ESC+c.C0.CR:c.C0.CR,C.cancel=!0;break;case 27:C.key=c.C0.ESC,d.altKey&&(C.key=c.C0.ESC+c.C0.ESC),C.cancel=!0;break;case 37:if(d.metaKey)break;y?(C.key=c.C0.ESC+"[1;"+(y+1)+"D",C.key===c.C0.ESC+"[1;3D"&&(C.key=c.C0.ESC+(g?"b":"[1;5D"))):C.key=h?c.C0.ESC+"OD":c.C0.ESC+"[D";break;case 39:if(d.metaKey)break;y?(C.key=c.C0.ESC+"[1;"+(y+1)+"C",C.key===c.C0.ESC+"[1;3C"&&(C.key=c.C0.ESC+(g?"f":"[1;5C"))):C.key=h?c.C0.ESC+"OC":c.C0.ESC+"[C";break;case 38:if(d.metaKey)break;y?(C.key=c.C0.ESC+"[1;"+(y+1)+"A",g||C.key!==c.C0.ESC+"[1;3A"||(C.key=c.C0.ESC+"[1;5A")):C.key=h?c.C0.ESC+"OA":c.C0.ESC+"[A";break;case 40:if(d.metaKey)break;y?(C.key=c.C0.ESC+"[1;"+(y+1)+"B",g||C.key!==c.C0.ESC+"[1;3B"||(C.key=c.C0.ESC+"[1;5B")):C.key=h?c.C0.ESC+"OB":c.C0.ESC+"[B";break;case 45:d.shiftKey||d.ctrlKey||(C.key=c.C0.ESC+"[2~");break;case 46:C.key=y?c.C0.ESC+"[3;"+(y+1)+"~":c.C0.ESC+"[3~";break;case 36:C.key=y?c.C0.ESC+"[1;"+(y+1)+"H":h?c.C0.ESC+"OH":c.C0.ESC+"[H";break;case 35:C.key=y?c.C0.ESC+"[1;"+(y+1)+"F":h?c.C0.ESC+"OF":c.C0.ESC+"[F";break;case 33:d.shiftKey?C.type=2:C.key=c.C0.ESC+"[5~";break;case 34:d.shiftKey?C.type=3:C.key=c.C0.ESC+"[6~";break;case 112:C.key=y?c.C0.ESC+"[1;"+(y+1)+"P":c.C0.ESC+"OP";break;case 113:C.key=y?c.C0.ESC+"[1;"+(y+1)+"Q":c.C0.ESC+"OQ";break;case 114:C.key=y?c.C0.ESC+"[1;"+(y+1)+"R":c.C0.ESC+"OR";break;case 115:C.key=y?c.C0.ESC+"[1;"+(y+1)+"S":c.C0.ESC+"OS";break;case 116:C.key=y?c.C0.ESC+"[15;"+(y+1)+"~":c.C0.ESC+"[15~";break;case 117:C.key=y?c.C0.ESC+"[17;"+(y+1)+"~":c.C0.ESC+"[17~";break;case 118:C.key=y?c.C0.ESC+"[18;"+(y+1)+"~":c.C0.ESC+"[18~";break;case 119:C.key=y?c.C0.ESC+"[19;"+(y+1)+"~":c.C0.ESC+"[19~";break;case 120:C.key=y?c.C0.ESC+"[20;"+(y+1)+"~":c.C0.ESC+"[20~";break;case 121:C.key=y?c.C0.ESC+"[21;"+(y+1)+"~":c.C0.ESC+"[21~";break;case 122:C.key=y?c.C0.ESC+"[23;"+(y+1)+"~":c.C0.ESC+"[23~";break;case 123:C.key=y?c.C0.ESC+"[24;"+(y+1)+"~":c.C0.ESC+"[24~";break;default:if(!d.ctrlKey||d.shiftKey||d.altKey||d.metaKey)if(g&&!m||!d.altKey||d.metaKey)!g||d.altKey||d.ctrlKey||d.shiftKey||!d.metaKey?d.key&&!d.ctrlKey&&!d.altKey&&!d.metaKey&&d.keyCode>=48&&d.key.length===1?C.key=d.key:d.key&&d.ctrlKey&&d.key==="_"&&(C.key=c.C0.US):d.keyCode===65&&(C.type=1);else{var S=u[d.keyCode],b=S==null?void 0:S[d.shiftKey?1:0];if(b)C.key=c.C0.ESC+b;else if(d.keyCode>=65&&d.keyCode<=90){var A=d.ctrlKey?d.keyCode-64:d.keyCode+32;C.key=c.C0.ESC+String.fromCharCode(A)}}else d.keyCode>=65&&d.keyCode<=90?C.key=String.fromCharCode(d.keyCode-64):d.keyCode===32?C.key=c.C0.NUL:d.keyCode>=51&&d.keyCode<=55?C.key=String.fromCharCode(d.keyCode-51+27):d.keyCode===56?C.key=c.C0.DEL:d.keyCode===219?C.key=c.C0.ESC:d.keyCode===220?C.key=c.C0.FS:d.keyCode===221&&(C.key=c.C0.GS)}return C}},482:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Utf8ToUtf32=a.StringToUtf32=a.utf32ToString=a.stringFromCodePoint=void 0,a.stringFromCodePoint=function(u){return u>65535?(u-=65536,String.fromCharCode(55296+(u>>10))+String.fromCharCode(u%1024+56320)):String.fromCharCode(u)},a.utf32ToString=function(u,d,h){d===void 0&&(d=0),h===void 0&&(h=u.length);for(var g="",m=d;m<h;++m){var C=u[m];C>65535?(C-=65536,g+=String.fromCharCode(55296+(C>>10))+String.fromCharCode(C%1024+56320)):g+=String.fromCharCode(C)}return g};var l=function(){function u(){this._interim=0}return u.prototype.clear=function(){this._interim=0},u.prototype.decode=function(d,h){var g=d.length;if(!g)return 0;var m=0,C=0;this._interim&&(56320<=(b=d.charCodeAt(C++))&&b<=57343?h[m++]=1024*(this._interim-55296)+b-56320+65536:(h[m++]=this._interim,h[m++]=b),this._interim=0);for(var y=C;y<g;++y){var S=d.charCodeAt(y);if(55296<=S&&S<=56319){if(++y>=g)return this._interim=S,m;var b;56320<=(b=d.charCodeAt(y))&&b<=57343?h[m++]=1024*(S-55296)+b-56320+65536:(h[m++]=S,h[m++]=b)}else S!==65279&&(h[m++]=S)}return m},u}();a.StringToUtf32=l;var c=function(){function u(){this.interim=new Uint8Array(3)}return u.prototype.clear=function(){this.interim.fill(0)},u.prototype.decode=function(d,h){var g=d.length;if(!g)return 0;var m,C,y,S,b=0,A=0,v=0;if(this.interim[0]){var w=!1,T=this.interim[0];T&=(224&T)==192?31:(240&T)==224?15:7;for(var I=0,x=void 0;(x=63&this.interim[++I])&&I<4;)T<<=6,T|=x;for(var L=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,O=L-I;v<O;){if(v>=g)return 0;if((192&(x=d[v++]))!=128){v--,w=!0;break}this.interim[I++]=x,T<<=6,T|=63&x}w||(L===2?T<128?v--:h[b++]=T:L===3?T<2048||T>=55296&&T<=57343||T===65279||(h[b++]=T):T<65536||T>1114111||(h[b++]=T)),this.interim.fill(0)}for(var P=g-4,N=v;N<g;){for(;!(!(N<P)||128&(m=d[N])||128&(C=d[N+1])||128&(y=d[N+2])||128&(S=d[N+3]));)h[b++]=m,h[b++]=C,h[b++]=y,h[b++]=S,N+=4;if((m=d[N++])<128)h[b++]=m;else if((224&m)==192){if(N>=g)return this.interim[0]=m,b;if((192&(C=d[N++]))!=128){N--;continue}if((A=(31&m)<<6|63&C)<128){N--;continue}h[b++]=A}else if((240&m)==224){if(N>=g)return this.interim[0]=m,b;if((192&(C=d[N++]))!=128){N--;continue}if(N>=g)return this.interim[0]=m,this.interim[1]=C,b;if((192&(y=d[N++]))!=128){N--;continue}if((A=(15&m)<<12|(63&C)<<6|63&y)<2048||A>=55296&&A<=57343||A===65279)continue;h[b++]=A}else if((248&m)==240){if(N>=g)return this.interim[0]=m,b;if((192&(C=d[N++]))!=128){N--;continue}if(N>=g)return this.interim[0]=m,this.interim[1]=C,b;if((192&(y=d[N++]))!=128){N--;continue}if(N>=g)return this.interim[0]=m,this.interim[1]=C,this.interim[2]=y,b;if((192&(S=d[N++]))!=128){N--;continue}if((A=(7&m)<<18|(63&C)<<12|(63&y)<<6|63&S)<65536||A>1114111)continue;h[b++]=A}}return b},u}();a.Utf8ToUtf32=c},225:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UnicodeV6=void 0;var c,u=l(8273),d=[[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]],h=[[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]],g=function(){function m(){if(this.version="6",!c){c=new Uint8Array(65536),(0,u.fill)(c,1),c[0]=0,(0,u.fill)(c,0,1,32),(0,u.fill)(c,0,127,160),(0,u.fill)(c,2,4352,4448),c[9001]=2,c[9002]=2,(0,u.fill)(c,2,11904,42192),c[12351]=1,(0,u.fill)(c,2,44032,55204),(0,u.fill)(c,2,63744,64256),(0,u.fill)(c,2,65040,65050),(0,u.fill)(c,2,65072,65136),(0,u.fill)(c,2,65280,65377),(0,u.fill)(c,2,65504,65511);for(var C=0;C<d.length;++C)(0,u.fill)(c,0,d[C][0],d[C][1]+1)}}return m.prototype.wcwidth=function(C){return C<32?0:C<127?1:C<65536?c[C]:function(y,S){var b,A=0,v=S.length-1;if(y<S[0][0]||y>S[v][1])return!1;for(;v>=A;)if(y>S[b=A+v>>1][1])A=b+1;else{if(!(y<S[b][0]))return!0;v=b-1}return!1}(C,h)?0:C>=131072&&C<=196605||C>=196608&&C<=262141?2:1},m}();a.UnicodeV6=g},5981:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.WriteBuffer=void 0;var l=typeof queueMicrotask=="undefined"?function(u){Promise.resolve().then(u)}:queueMicrotask,c=function(){function u(d){this._action=d,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0}return u.prototype.writeSync=function(d,h){if(h!==void 0&&this._syncCalls>h)this._syncCalls=0;else if(this._pendingData+=d.length,this._writeBuffer.push(d),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var g;for(this._isSyncWriting=!0;g=this._writeBuffer.shift();){this._action(g);var m=this._callbacks.shift();m&&m()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},u.prototype.write=function(d,h){var g=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return g._innerWrite()})),this._pendingData+=d.length,this._writeBuffer.push(d),this._callbacks.push(h)},u.prototype._innerWrite=function(d,h){var g=this;d===void 0&&(d=0),h===void 0&&(h=!0);for(var m=d||Date.now();this._writeBuffer.length>this._bufferOffset;){var C=this._writeBuffer[this._bufferOffset],y=this._action(C,h);if(y)return void y.catch(function(b){return l(function(){throw b}),Promise.resolve(!1)}).then(function(b){return Date.now()-m>=12?setTimeout(function(){return g._innerWrite(0,b)}):g._innerWrite(m,b)});var S=this._callbacks[this._bufferOffset];if(S&&S(),this._bufferOffset++,this._pendingData-=C.length,Date.now()-m>=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 g._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0)},u}();a.WriteBuffer=c},5941:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.toRgbString=a.parseColor=void 0;var l=/^([\da-f]{1})\/([\da-f]{1})\/([\da-f]{1})$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,c=/^[\da-f]+$/;function u(d,h){var g=d.toString(16),m=g.length<2?"0"+g:g;switch(h){case 4:return g[0];case 8:return m;case 12:return(m+m).slice(0,3);default:return m+m}}a.parseColor=function(d){if(d){var h=d.toLowerCase();if(h.indexOf("rgb:")===0){h=h.slice(4);var g=l.exec(h);if(g){var m=g[1]?15:g[4]?255:g[7]?4095:65535;return[Math.round(parseInt(g[1]||g[4]||g[7]||g[10],16)/m*255),Math.round(parseInt(g[2]||g[5]||g[8]||g[11],16)/m*255),Math.round(parseInt(g[3]||g[6]||g[9]||g[12],16)/m*255)]}}else if(h.indexOf("#")===0&&(h=h.slice(1),c.exec(h)&&[3,6,9,12].includes(h.length))){for(var C=h.length/3,y=[0,0,0],S=0;S<3;++S){var b=parseInt(h.slice(C*S,C*S+C),16);y[S]=C===1?b<<4:C===2?b:C===3?b>>4:b>>8}return y}}},a.toRgbString=function(d,h){h===void 0&&(h=16);var g=d[0],m=d[1],C=d[2];return"rgb:"+u(g,h)+"/"+u(m,h)+"/"+u(C,h)}},5770:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.PAYLOAD_LIMIT=void 0,a.PAYLOAD_LIMIT=1e7},6351:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DcsHandler=a.DcsParser=void 0;var c=l(482),u=l(8742),d=l(5770),h=[],g=function(){function y(){this._handlers=Object.create(null),this._active=h,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return y.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=h},y.prototype.registerHandler=function(S,b){this._handlers[S]===void 0&&(this._handlers[S]=[]);var A=this._handlers[S];return A.push(b),{dispose:function(){var v=A.indexOf(b);v!==-1&&A.splice(v,1)}}},y.prototype.clearHandler=function(S){this._handlers[S]&&delete this._handlers[S]},y.prototype.setHandlerFallback=function(S){this._handlerFb=S},y.prototype.reset=function(){if(this._active.length)for(var S=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;S>=0;--S)this._active[S].unhook(!1);this._stack.paused=!1,this._active=h,this._ident=0},y.prototype.hook=function(S,b){if(this.reset(),this._ident=S,this._active=this._handlers[S]||h,this._active.length)for(var A=this._active.length-1;A>=0;A--)this._active[A].hook(b);else this._handlerFb(this._ident,"HOOK",b)},y.prototype.put=function(S,b,A){if(this._active.length)for(var v=this._active.length-1;v>=0;v--)this._active[v].put(S,b,A);else this._handlerFb(this._ident,"PUT",(0,c.utf32ToString)(S,b,A))},y.prototype.unhook=function(S,b){if(b===void 0&&(b=!0),this._active.length){var A=!1,v=this._active.length-1,w=!1;if(this._stack.paused&&(v=this._stack.loopPosition-1,A=b,w=this._stack.fallThrough,this._stack.paused=!1),!w&&A===!1){for(;v>=0&&(A=this._active[v].unhook(S))!==!0;v--)if(A instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=v,this._stack.fallThrough=!1,A;v--}for(;v>=0;v--)if((A=this._active[v].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=v,this._stack.fallThrough=!0,A}else this._handlerFb(this._ident,"UNHOOK",S);this._active=h,this._ident=0},y}();a.DcsParser=g;var m=new u.Params;m.addParam(0);var C=function(){function y(S){this._handler=S,this._data="",this._params=m,this._hitLimit=!1}return y.prototype.hook=function(S){this._params=S.length>1||S.params[0]?S.clone():m,this._data="",this._hitLimit=!1},y.prototype.put=function(S,b,A){this._hitLimit||(this._data+=(0,c.utf32ToString)(S,b,A),this._data.length>d.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},y.prototype.unhook=function(S){var b=this,A=!1;if(this._hitLimit)A=!1;else if(S&&(A=this._handler(this._data,this._params))instanceof Promise)return A.then(function(v){return b._params=m,b._data="",b._hitLimit=!1,v});return this._params=m,this._data="",this._hitLimit=!1,A},y}();a.DcsHandler=C},2015:function(s,a,l){var c,u=this&&this.__extends||(c=function(A,v){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var I in T)Object.prototype.hasOwnProperty.call(T,I)&&(w[I]=T[I])},c(A,v)},function(A,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function w(){this.constructor=A}c(A,v),A.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)});Object.defineProperty(a,"__esModule",{value:!0}),a.EscapeSequenceParser=a.VT500_TRANSITION_TABLE=a.TransitionTable=void 0;var d=l(844),h=l(8273),g=l(8742),m=l(6242),C=l(6351),y=function(){function A(v){this.table=new Uint8Array(v)}return A.prototype.setDefault=function(v,w){(0,h.fill)(this.table,v<<4|w)},A.prototype.add=function(v,w,T,I){this.table[w<<8|v]=T<<4|I},A.prototype.addMany=function(v,w,T,I){for(var x=0;x<v.length;x++)this.table[w<<8|v[x]]=T<<4|I},A}();a.TransitionTable=y;var S=160;a.VT500_TRANSITION_TABLE=function(){var A=new y(4095),v=Array.apply(null,Array(256)).map(function(O,P){return P}),w=function(O,P){return v.slice(O,P)},T=w(32,127),I=w(0,24);I.push(25),I.push.apply(I,w(28,32));var x,L=w(0,14);for(x in A.setDefault(1,0),A.addMany(T,0,2,0),L)A.addMany([24,26,153,154],x,3,0),A.addMany(w(128,144),x,3,0),A.addMany(w(144,152),x,3,0),A.add(156,x,0,0),A.add(27,x,11,1),A.add(157,x,4,8),A.addMany([152,158,159],x,0,7),A.add(155,x,11,3),A.add(144,x,11,9);return A.addMany(I,0,3,0),A.addMany(I,1,3,1),A.add(127,1,0,1),A.addMany(I,8,0,8),A.addMany(I,3,3,3),A.add(127,3,0,3),A.addMany(I,4,3,4),A.add(127,4,0,4),A.addMany(I,6,3,6),A.addMany(I,5,3,5),A.add(127,5,0,5),A.addMany(I,2,3,2),A.add(127,2,0,2),A.add(93,1,4,8),A.addMany(T,8,5,8),A.add(127,8,5,8),A.addMany([156,27,24,26,7],8,6,0),A.addMany(w(28,32),8,0,8),A.addMany([88,94,95],1,0,7),A.addMany(T,7,0,7),A.addMany(I,7,0,7),A.add(156,7,0,0),A.add(127,7,0,7),A.add(91,1,11,3),A.addMany(w(64,127),3,7,0),A.addMany(w(48,60),3,8,4),A.addMany([60,61,62,63],3,9,4),A.addMany(w(48,60),4,8,4),A.addMany(w(64,127),4,7,0),A.addMany([60,61,62,63],4,0,6),A.addMany(w(32,64),6,0,6),A.add(127,6,0,6),A.addMany(w(64,127),6,0,0),A.addMany(w(32,48),3,9,5),A.addMany(w(32,48),5,9,5),A.addMany(w(48,64),5,0,6),A.addMany(w(64,127),5,7,0),A.addMany(w(32,48),4,9,5),A.addMany(w(32,48),1,9,2),A.addMany(w(32,48),2,9,2),A.addMany(w(48,127),2,10,0),A.addMany(w(48,80),1,10,0),A.addMany(w(81,88),1,10,0),A.addMany([89,90,92],1,10,0),A.addMany(w(96,127),1,10,0),A.add(80,1,11,9),A.addMany(I,9,0,9),A.add(127,9,0,9),A.addMany(w(28,32),9,0,9),A.addMany(w(32,48),9,9,12),A.addMany(w(48,60),9,8,10),A.addMany([60,61,62,63],9,9,10),A.addMany(I,11,0,11),A.addMany(w(32,128),11,0,11),A.addMany(w(28,32),11,0,11),A.addMany(I,10,0,10),A.add(127,10,0,10),A.addMany(w(28,32),10,0,10),A.addMany(w(48,60),10,8,10),A.addMany([60,61,62,63],10,0,11),A.addMany(w(32,48),10,9,12),A.addMany(I,12,0,12),A.add(127,12,0,12),A.addMany(w(28,32),12,0,12),A.addMany(w(32,48),12,9,12),A.addMany(w(48,64),12,0,11),A.addMany(w(64,127),12,12,13),A.addMany(w(64,127),10,12,13),A.addMany(w(64,127),9,12,13),A.addMany(I,13,13,13),A.addMany(T,13,13,13),A.add(127,13,0,13),A.addMany([27,156,24,26],13,14,0),A.add(S,0,2,0),A.add(S,8,5,8),A.add(S,6,0,6),A.add(S,11,0,11),A.add(S,13,13,13),A}();var b=function(A){function v(w){w===void 0&&(w=a.VT500_TRANSITION_TABLE);var T=A.call(this)||this;return T._transitions=w,T._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},T.initialState=0,T.currentState=T.initialState,T._params=new g.Params,T._params.addParam(0),T._collect=0,T.precedingCodepoint=0,T._printHandlerFb=function(I,x,L){},T._executeHandlerFb=function(I){},T._csiHandlerFb=function(I,x){},T._escHandlerFb=function(I){},T._errorHandlerFb=function(I){return I},T._printHandler=T._printHandlerFb,T._executeHandlers=Object.create(null),T._csiHandlers=Object.create(null),T._escHandlers=Object.create(null),T._oscParser=new m.OscParser,T._dcsParser=new C.DcsParser,T._errorHandler=T._errorHandlerFb,T.registerEscHandler({final:"\\"},function(){return!0}),T}return u(v,A),v.prototype._identifier=function(w,T){T===void 0&&(T=[64,126]);var I=0;if(w.prefix){if(w.prefix.length>1)throw new Error("only one byte as prefix supported");if((I=w.prefix.charCodeAt(0))&&60>I||I>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(w.intermediates){if(w.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var x=0;x<w.intermediates.length;++x){var L=w.intermediates.charCodeAt(x);if(32>L||L>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");I<<=8,I|=L}}if(w.final.length!==1)throw new Error("final must be a single byte");var O=w.final.charCodeAt(0);if(T[0]>O||O>T[1])throw new Error("final must be in range "+T[0]+" .. "+T[1]);return(I<<=8)|O},v.prototype.identToString=function(w){for(var T=[];w;)T.push(String.fromCharCode(255&w)),w>>=8;return T.reverse().join("")},v.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},v.prototype.setPrintHandler=function(w){this._printHandler=w},v.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},v.prototype.registerEscHandler=function(w,T){var I=this._identifier(w,[48,126]);this._escHandlers[I]===void 0&&(this._escHandlers[I]=[]);var x=this._escHandlers[I];return x.push(T),{dispose:function(){var L=x.indexOf(T);L!==-1&&x.splice(L,1)}}},v.prototype.clearEscHandler=function(w){this._escHandlers[this._identifier(w,[48,126])]&&delete this._escHandlers[this._identifier(w,[48,126])]},v.prototype.setEscHandlerFallback=function(w){this._escHandlerFb=w},v.prototype.setExecuteHandler=function(w,T){this._executeHandlers[w.charCodeAt(0)]=T},v.prototype.clearExecuteHandler=function(w){this._executeHandlers[w.charCodeAt(0)]&&delete this._executeHandlers[w.charCodeAt(0)]},v.prototype.setExecuteHandlerFallback=function(w){this._executeHandlerFb=w},v.prototype.registerCsiHandler=function(w,T){var I=this._identifier(w);this._csiHandlers[I]===void 0&&(this._csiHandlers[I]=[]);var x=this._csiHandlers[I];return x.push(T),{dispose:function(){var L=x.indexOf(T);L!==-1&&x.splice(L,1)}}},v.prototype.clearCsiHandler=function(w){this._csiHandlers[this._identifier(w)]&&delete this._csiHandlers[this._identifier(w)]},v.prototype.setCsiHandlerFallback=function(w){this._csiHandlerFb=w},v.prototype.registerDcsHandler=function(w,T){return this._dcsParser.registerHandler(this._identifier(w),T)},v.prototype.clearDcsHandler=function(w){this._dcsParser.clearHandler(this._identifier(w))},v.prototype.setDcsHandlerFallback=function(w){this._dcsParser.setHandlerFallback(w)},v.prototype.registerOscHandler=function(w,T){return this._oscParser.registerHandler(w,T)},v.prototype.clearOscHandler=function(w){this._oscParser.clearHandler(w)},v.prototype.setOscHandlerFallback=function(w){this._oscParser.setHandlerFallback(w)},v.prototype.setErrorHandler=function(w){this._errorHandler=w},v.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},v.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,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])},v.prototype._preserveStack=function(w,T,I,x,L){this._parseStack.state=w,this._parseStack.handlers=T,this._parseStack.handlerPos=I,this._parseStack.transition=x,this._parseStack.chunkPos=L},v.prototype.parse=function(w,T,I){var x,L=0,O=0,P=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,P=this._parseStack.chunkPos+1;else{if(I===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var N=this._parseStack.handlers,M=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(I===!1&&M>-1){for(;M>=0&&(x=N[M](this._params))!==!0;M--)if(x instanceof Promise)return this._parseStack.handlerPos=M,x}this._parseStack.handlers=[];break;case 4:if(I===!1&&M>-1){for(;M>=0&&(x=N[M]())!==!0;M--)if(x instanceof Promise)return this._parseStack.handlerPos=M,x}this._parseStack.handlers=[];break;case 6:if(L=w[this._parseStack.chunkPos],x=this._dcsParser.unhook(L!==24&&L!==26,I))return x;L===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(L=w[this._parseStack.chunkPos],x=this._oscParser.end(L!==24&&L!==26,I))return x;L===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,P=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var W=P;W<T;++W){switch(L=w[W],(O=this._transitions.table[this.currentState<<8|(L<160?L:S)])>>4){case 2:for(var U=W+1;;++U){if(U>=T||(L=w[U])<32||L>126&&L<S){this._printHandler(w,W,U),W=U-1;break}if(++U>=T||(L=w[U])<32||L>126&&L<S){this._printHandler(w,W,U),W=U-1;break}if(++U>=T||(L=w[U])<32||L>126&&L<S){this._printHandler(w,W,U),W=U-1;break}if(++U>=T||(L=w[U])<32||L>126&&L<S){this._printHandler(w,W,U),W=U-1;break}}break;case 3:this._executeHandlers[L]?this._executeHandlers[L]():this._executeHandlerFb(L),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:W,code:L,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:for(var z=(N=this._csiHandlers[this._collect<<8|L])?N.length-1:-1;z>=0&&(x=N[z](this._params))!==!0;z--)if(x instanceof Promise)return this._preserveStack(3,N,z,O,W),x;z<0&&this._csiHandlerFb(this._collect<<8|L,this._params),this.precedingCodepoint=0;break;case 8:do switch(L){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(L-48)}while(++W<T&&(L=w[W])>47&&L<60);W--;break;case 9:this._collect<<=8,this._collect|=L;break;case 10:for(var j=this._escHandlers[this._collect<<8|L],$=j?j.length-1:-1;$>=0&&(x=j[$]())!==!0;$--)if(x instanceof Promise)return this._preserveStack(4,j,$,O,W),x;$<0&&this._escHandlerFb(this._collect<<8|L),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|L,this._params);break;case 13:for(var G=W+1;;++G)if(G>=T||(L=w[G])===24||L===26||L===27||L>127&&L<S){this._dcsParser.put(w,W,G),W=G-1;break}break;case 14:if(x=this._dcsParser.unhook(L!==24&&L!==26))return this._preserveStack(6,[],0,O,W),x;L===27&&(O|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(var J=W+1;;J++)if(J>=T||(L=w[J])<32||L>127&&L<S){this._oscParser.put(w,W,J),W=J-1;break}break;case 6:if(x=this._oscParser.end(L!==24&&L!==26))return this._preserveStack(5,[],0,O,W),x;L===27&&(O|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&O}},v}(d.Disposable);a.EscapeSequenceParser=b},6242:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.OscHandler=a.OscParser=void 0;var c=l(5770),u=l(482),d=[],h=function(){function m(){this._state=0,this._active=d,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return m.prototype.registerHandler=function(C,y){this._handlers[C]===void 0&&(this._handlers[C]=[]);var S=this._handlers[C];return S.push(y),{dispose:function(){var b=S.indexOf(y);b!==-1&&S.splice(b,1)}}},m.prototype.clearHandler=function(C){this._handlers[C]&&delete this._handlers[C]},m.prototype.setHandlerFallback=function(C){this._handlerFb=C},m.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=d},m.prototype.reset=function(){if(this._state===2)for(var C=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;C>=0;--C)this._active[C].end(!1);this._stack.paused=!1,this._active=d,this._id=-1,this._state=0},m.prototype._start=function(){if(this._active=this._handlers[this._id]||d,this._active.length)for(var C=this._active.length-1;C>=0;C--)this._active[C].start();else this._handlerFb(this._id,"START")},m.prototype._put=function(C,y,S){if(this._active.length)for(var b=this._active.length-1;b>=0;b--)this._active[b].put(C,y,S);else this._handlerFb(this._id,"PUT",(0,u.utf32ToString)(C,y,S))},m.prototype.start=function(){this.reset(),this._state=1},m.prototype.put=function(C,y,S){if(this._state!==3){if(this._state===1)for(;y<S;){var b=C[y++];if(b===59){this._state=2,this._start();break}if(b<48||57<b)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+b-48}this._state===2&&S-y>0&&this._put(C,y,S)}},m.prototype.end=function(C,y){if(y===void 0&&(y=!0),this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){var S=!1,b=this._active.length-1,A=!1;if(this._stack.paused&&(b=this._stack.loopPosition-1,S=y,A=this._stack.fallThrough,this._stack.paused=!1),!A&&S===!1){for(;b>=0&&(S=this._active[b].end(C))!==!0;b--)if(S instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=b,this._stack.fallThrough=!1,S;b--}for(;b>=0;b--)if((S=this._active[b].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=b,this._stack.fallThrough=!0,S}else this._handlerFb(this._id,"END",C);this._active=d,this._id=-1,this._state=0}},m}();a.OscParser=h;var g=function(){function m(C){this._handler=C,this._data="",this._hitLimit=!1}return m.prototype.start=function(){this._data="",this._hitLimit=!1},m.prototype.put=function(C,y,S){this._hitLimit||(this._data+=(0,u.utf32ToString)(C,y,S),this._data.length>c.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},m.prototype.end=function(C){var y=this,S=!1;if(this._hitLimit)S=!1;else if(C&&(S=this._handler(this._data))instanceof Promise)return S.then(function(b){return y._data="",y._hitLimit=!1,b});return this._data="",this._hitLimit=!1,S},m}();a.OscHandler=g},8742:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Params=void 0;var l=2147483647,c=function(){function u(d,h){if(d===void 0&&(d=32),h===void 0&&(h=32),this.maxLength=d,this.maxSubParamsLength=h,h>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(d),this.length=0,this._subParams=new Int32Array(h),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(d),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return u.fromArray=function(d){var h=new u;if(!d.length)return h;for(var g=Array.isArray(d[0])?1:0;g<d.length;++g){var m=d[g];if(Array.isArray(m))for(var C=0;C<m.length;++C)h.addSubParam(m[C]);else h.addParam(m)}return h},u.prototype.clone=function(){var d=new u(this.maxLength,this.maxSubParamsLength);return d.params.set(this.params),d.length=this.length,d._subParams.set(this._subParams),d._subParamsLength=this._subParamsLength,d._subParamsIdx.set(this._subParamsIdx),d._rejectDigits=this._rejectDigits,d._rejectSubDigits=this._rejectSubDigits,d._digitIsSub=this._digitIsSub,d},u.prototype.toArray=function(){for(var d=[],h=0;h<this.length;++h){d.push(this.params[h]);var g=this._subParamsIdx[h]>>8,m=255&this._subParamsIdx[h];m-g>0&&d.push(Array.prototype.slice.call(this._subParams,g,m))}return d},u.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},u.prototype.addParam=function(d){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(d<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=d>l?l:d}},u.prototype.addSubParam=function(d){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(d<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=d>l?l:d,this._subParamsIdx[this.length-1]++}},u.prototype.hasSubParams=function(d){return(255&this._subParamsIdx[d])-(this._subParamsIdx[d]>>8)>0},u.prototype.getSubParams=function(d){var h=this._subParamsIdx[d]>>8,g=255&this._subParamsIdx[d];return g-h>0?this._subParams.subarray(h,g):null},u.prototype.getSubParamsAll=function(){for(var d={},h=0;h<this.length;++h){var g=this._subParamsIdx[h]>>8,m=255&this._subParamsIdx[h];m-g>0&&(d[h]=this._subParams.slice(g,m))}return d},u.prototype.addDigit=function(d){var h;if(!(this._rejectDigits||!(h=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var g=this._digitIsSub?this._subParams:this.params,m=g[h-1];g[h-1]=~m?Math.min(10*m+d,l):d}},u}();a.Params=c},5741:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.AddonManager=void 0;var l=function(){function c(){this._addons=[]}return c.prototype.dispose=function(){for(var u=this._addons.length-1;u>=0;u--)this._addons[u].instance.dispose()},c.prototype.loadAddon=function(u,d){var h=this,g={instance:d,dispose:d.dispose,isDisposed:!1};this._addons.push(g),d.dispose=function(){return h._wrappedAddonDispose(g)},d.activate(u)},c.prototype._wrappedAddonDispose=function(u){if(!u.isDisposed){for(var d=-1,h=0;h<this._addons.length;h++)if(this._addons[h]===u){d=h;break}if(d===-1)throw new Error("Could not dispose an addon that has not been loaded");u.isDisposed=!0,u.dispose.apply(u.instance),this._addons.splice(d,1)}},c}();a.AddonManager=l},8771:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferApiView=void 0;var c=l(3785),u=l(511),d=function(){function h(g,m){this._buffer=g,this.type=m}return h.prototype.init=function(g){return this._buffer=g,this},Object.defineProperty(h.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),h.prototype.getLine=function(g){var m=this._buffer.lines.get(g);if(m)return new c.BufferLineApiView(m)},h.prototype.getNullCell=function(){return new u.CellData},h}();a.BufferApiView=d},3785:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferLineApiView=void 0;var c=l(511),u=function(){function d(h){this._line=h}return Object.defineProperty(d.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),d.prototype.getCell=function(h,g){if(!(h<0||h>=this._line.length))return g?(this._line.loadCell(h,g),g):this._line.loadCell(h,new c.CellData)},d.prototype.translateToString=function(h,g,m){return this._line.translateToString(h,g,m)},d}();a.BufferLineApiView=u},8285:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferNamespaceApi=void 0;var c=l(8771),u=l(8460),d=function(){function h(g){var m=this;this._core=g,this._onBufferChange=new u.EventEmitter,this._normal=new c.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new c.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return m._onBufferChange.fire(m.active)})}return Object.defineProperty(h.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"active",{get:function(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),h}();a.BufferNamespaceApi=d},7975:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ParserApi=void 0;var l=function(){function c(u){this._core=u}return c.prototype.registerCsiHandler=function(u,d){return this._core.registerCsiHandler(u,function(h){return d(h.toArray())})},c.prototype.addCsiHandler=function(u,d){return this.registerCsiHandler(u,d)},c.prototype.registerDcsHandler=function(u,d){return this._core.registerDcsHandler(u,function(h,g){return d(h,g.toArray())})},c.prototype.addDcsHandler=function(u,d){return this.registerDcsHandler(u,d)},c.prototype.registerEscHandler=function(u,d){return this._core.registerEscHandler(u,d)},c.prototype.addEscHandler=function(u,d){return this.registerEscHandler(u,d)},c.prototype.registerOscHandler=function(u,d){return this._core.registerOscHandler(u,d)},c.prototype.addOscHandler=function(u,d){return this.registerOscHandler(u,d)},c}();a.ParserApi=l},7090:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UnicodeApi=void 0;var l=function(){function c(u){this._core=u}return c.prototype.register=function(u){this._core.unicodeService.register(u)},Object.defineProperty(c.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(u){this._core.unicodeService.activeVersion=u},enumerable:!1,configurable:!0}),c}();a.UnicodeApi=l},744:function(s,a,l){var c,u=this&&this.__extends||(c=function(b,A){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,w){v.__proto__=w}||function(v,w){for(var T in w)Object.prototype.hasOwnProperty.call(w,T)&&(v[T]=w[T])},c(b,A)},function(b,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function v(){this.constructor=b}c(b,A),b.prototype=A===null?Object.create(A):(v.prototype=A.prototype,new v)}),d=this&&this.__decorate||function(b,A,v,w){var T,I=arguments.length,x=I<3?A:w===null?w=Object.getOwnPropertyDescriptor(A,v):w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(b,A,v,w);else for(var L=b.length-1;L>=0;L--)(T=b[L])&&(x=(I<3?T(x):I>3?T(A,v,x):T(A,v))||x);return I>3&&x&&Object.defineProperty(A,v,x),x},h=this&&this.__param||function(b,A){return function(v,w){A(v,w,b)}};Object.defineProperty(a,"__esModule",{value:!0}),a.BufferService=a.MINIMUM_ROWS=a.MINIMUM_COLS=void 0;var g=l(2585),m=l(5295),C=l(8460),y=l(844);a.MINIMUM_COLS=2,a.MINIMUM_ROWS=1;var S=function(b){function A(v){var w=b.call(this)||this;return w._optionsService=v,w.isUserScrolling=!1,w._onResize=new C.EventEmitter,w._onScroll=new C.EventEmitter,w.cols=Math.max(v.options.cols||0,a.MINIMUM_COLS),w.rows=Math.max(v.options.rows||0,a.MINIMUM_ROWS),w.buffers=new m.BufferSet(v,w),w}return u(A,b),Object.defineProperty(A.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),A.prototype.dispose=function(){b.prototype.dispose.call(this),this.buffers.dispose()},A.prototype.resize=function(v,w){this.cols=v,this.rows=w,this.buffers.resize(v,w),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:v,rows:w})},A.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},A.prototype.scroll=function(v,w){w===void 0&&(w=!1);var T,I=this.buffer;(T=this._cachedBlankLine)&&T.length===this.cols&&T.getFg(0)===v.fg&&T.getBg(0)===v.bg||(T=I.getBlankLine(v,w),this._cachedBlankLine=T),T.isWrapped=w;var x=I.ybase+I.scrollTop,L=I.ybase+I.scrollBottom;if(I.scrollTop===0){var O=I.lines.isFull;L===I.lines.length-1?O?I.lines.recycle().copyFrom(T):I.lines.push(T.clone()):I.lines.splice(L+1,0,T.clone()),O?this.isUserScrolling&&(I.ydisp=Math.max(I.ydisp-1,0)):(I.ybase++,this.isUserScrolling||I.ydisp++)}else{var P=L-x+1;I.lines.shiftElements(x+1,P-1,-1),I.lines.set(L,T.clone())}this.isUserScrolling||(I.ydisp=I.ybase),this._onScroll.fire(I.ydisp)},A.prototype.scrollLines=function(v,w,T){var I=this.buffer;if(v<0){if(I.ydisp===0)return;this.isUserScrolling=!0}else v+I.ydisp>=I.ybase&&(this.isUserScrolling=!1);var x=I.ydisp;I.ydisp=Math.max(Math.min(I.ydisp+v,I.ybase),0),x!==I.ydisp&&(w||this._onScroll.fire(I.ydisp))},A.prototype.scrollPages=function(v){this.scrollLines(v*(this.rows-1))},A.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},A.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},A.prototype.scrollToLine=function(v){var w=v-this.buffer.ydisp;w!==0&&this.scrollLines(w)},d([h(0,g.IOptionsService)],A)}(y.Disposable);a.BufferService=S},7994:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CharsetService=void 0;var l=function(){function c(){this.glevel=0,this._charsets=[]}return c.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},c.prototype.setgLevel=function(u){this.glevel=u,this.charset=this._charsets[u]},c.prototype.setgCharset=function(u,d){this._charsets[u]=d,this.glevel===u&&(this.charset=d)},c}();a.CharsetService=l},1753:function(s,a,l){var c=this&&this.__decorate||function(b,A,v,w){var T,I=arguments.length,x=I<3?A:w===null?w=Object.getOwnPropertyDescriptor(A,v):w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(b,A,v,w);else for(var L=b.length-1;L>=0;L--)(T=b[L])&&(x=(I<3?T(x):I>3?T(A,v,x):T(A,v))||x);return I>3&&x&&Object.defineProperty(A,v,x),x},u=this&&this.__param||function(b,A){return function(v,w){A(v,w,b)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CoreMouseService=void 0;var d=l(2585),h=l(8460),g={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(b){return b.button!==4&&b.action===1&&(b.ctrl=!1,b.alt=!1,b.shift=!1,!0)}},VT200:{events:19,restrict:function(b){return b.action!==32}},DRAG:{events:23,restrict:function(b){return b.action!==32||b.button!==3}},ANY:{events:31,restrict:function(b){return!0}}};function m(b,A){var v=(b.ctrl?16:0)|(b.shift?4:0)|(b.alt?8:0);return b.button===4?(v|=64,v|=b.action):(v|=3&b.button,4&b.button&&(v|=64),8&b.button&&(v|=128),b.action===32?v|=32:b.action!==0||A||(v|=3)),v}var C=String.fromCharCode,y={DEFAULT:function(b){var A=[m(b,!1)+32,b.col+32,b.row+32];return A[0]>255||A[1]>255||A[2]>255?"":""+C(A[0])+C(A[1])+C(A[2])},SGR:function(b){var A=b.action===0&&b.button!==4?"m":"M";return"[<"+m(b,!0)+";"+b.col+";"+b.row+A}},S=function(){function b(A,v){this._bufferService=A,this._coreService=v,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new h.EventEmitter,this._lastEvent=null;for(var w=0,T=Object.keys(g);w<T.length;w++){var I=T[w];this.addProtocol(I,g[I])}for(var x=0,L=Object.keys(y);x<L.length;x++){var O=L[x];this.addEncoding(O,y[O])}this.reset()}return b.prototype.addProtocol=function(A,v){this._protocols[A]=v},b.prototype.addEncoding=function(A,v){this._encodings[A]=v},Object.defineProperty(b.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(A){if(!this._protocols[A])throw new Error('unknown protocol "'+A+'"');this._activeProtocol=A,this._onProtocolChange.fire(this._protocols[A].events)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(A){if(!this._encodings[A])throw new Error('unknown encoding "'+A+'"');this._activeEncoding=A},enumerable:!1,configurable:!0}),b.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(b.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),b.prototype.triggerMouseEvent=function(A){if(A.col<0||A.col>=this._bufferService.cols||A.row<0||A.row>=this._bufferService.rows||A.button===4&&A.action===32||A.button===3&&A.action!==32||A.button!==4&&(A.action===2||A.action===3)||(A.col++,A.row++,A.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,A))||!this._protocols[this._activeProtocol].restrict(A))return!1;var v=this._encodings[this._activeEncoding](A);return v&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(v):this._coreService.triggerDataEvent(v,!0)),this._lastEvent=A,!0},b.prototype.explainEvents=function(A){return{down:!!(1&A),up:!!(2&A),drag:!!(4&A),move:!!(8&A),wheel:!!(16&A)}},b.prototype._compareEvents=function(A,v){return A.col===v.col&&A.row===v.row&&A.button===v.button&&A.action===v.action&&A.ctrl===v.ctrl&&A.alt===v.alt&&A.shift===v.shift},c([u(0,d.IBufferService),u(1,d.ICoreService)],b)}();a.CoreMouseService=S},6975:function(s,a,l){var c,u=this&&this.__extends||(c=function(v,w){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,I){T.__proto__=I}||function(T,I){for(var x in I)Object.prototype.hasOwnProperty.call(I,x)&&(T[x]=I[x])},c(v,w)},function(v,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function T(){this.constructor=v}c(v,w),v.prototype=w===null?Object.create(w):(T.prototype=w.prototype,new T)}),d=this&&this.__decorate||function(v,w,T,I){var x,L=arguments.length,O=L<3?w:I===null?I=Object.getOwnPropertyDescriptor(w,T):I;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")O=Reflect.decorate(v,w,T,I);else for(var P=v.length-1;P>=0;P--)(x=v[P])&&(O=(L<3?x(O):L>3?x(w,T,O):x(w,T))||O);return L>3&&O&&Object.defineProperty(w,T,O),O},h=this&&this.__param||function(v,w){return function(T,I){w(T,I,v)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CoreService=void 0;var g=l(2585),m=l(8460),C=l(1439),y=l(844),S=Object.freeze({insertMode:!1}),b=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),A=function(v){function w(T,I,x,L){var O=v.call(this)||this;return O._bufferService=I,O._logService=x,O._optionsService=L,O.isCursorInitialized=!1,O.isCursorHidden=!1,O._onData=O.register(new m.EventEmitter),O._onUserInput=O.register(new m.EventEmitter),O._onBinary=O.register(new m.EventEmitter),O._scrollToBottom=T,O.register({dispose:function(){return O._scrollToBottom=void 0}}),O.modes=(0,C.clone)(S),O.decPrivateModes=(0,C.clone)(b),O}return u(w,v),Object.defineProperty(w.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),w.prototype.reset=function(){this.modes=(0,C.clone)(S),this.decPrivateModes=(0,C.clone)(b)},w.prototype.triggerDataEvent=function(T,I){if(I===void 0&&(I=!1),!this._optionsService.options.disableStdin){var x=this._bufferService.buffer;x.ybase!==x.ydisp&&this._scrollToBottom(),I&&this._onUserInput.fire(),this._logService.debug('sending data "'+T+'"',function(){return T.split("").map(function(L){return L.charCodeAt(0)})}),this._onData.fire(T)}},w.prototype.triggerBinaryEvent=function(T){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+T+'"',function(){return T.split("").map(function(I){return I.charCodeAt(0)})}),this._onBinary.fire(T))},d([h(1,g.IBufferService),h(2,g.ILogService),h(3,g.IOptionsService)],w)}(y.Disposable);a.CoreService=A},3730:function(s,a,l){var c=this&&this.__decorate||function(g,m,C,y){var S,b=arguments.length,A=b<3?m:y===null?y=Object.getOwnPropertyDescriptor(m,C):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(g,m,C,y);else for(var v=g.length-1;v>=0;v--)(S=g[v])&&(A=(b<3?S(A):b>3?S(m,C,A):S(m,C))||A);return b>3&&A&&Object.defineProperty(m,C,A),A},u=this&&this.__param||function(g,m){return function(C,y){m(C,y,g)}};Object.defineProperty(a,"__esModule",{value:!0}),a.DirtyRowService=void 0;var d=l(2585),h=function(){function g(m){this._bufferService=m,this.clearRange()}return Object.defineProperty(g.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),g.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},g.prototype.markDirty=function(m){m<this._start?this._start=m:m>this._end&&(this._end=m)},g.prototype.markRangeDirty=function(m,C){if(m>C){var y=m;m=C,C=y}m<this._start&&(this._start=m),C>this._end&&(this._end=C)},g.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},c([u(0,d.IBufferService)],g)}();a.DirtyRowService=h},4348:function(s,a,l){var c=this&&this.__spreadArray||function(m,C,y){if(y||arguments.length===2)for(var S,b=0,A=C.length;b<A;b++)!S&&b in C||(S||(S=Array.prototype.slice.call(C,0,b)),S[b]=C[b]);return m.concat(S||Array.prototype.slice.call(C))};Object.defineProperty(a,"__esModule",{value:!0}),a.InstantiationService=a.ServiceCollection=void 0;var u=l(2585),d=l(8343),h=function(){function m(){for(var C=[],y=0;y<arguments.length;y++)C[y]=arguments[y];this._entries=new Map;for(var S=0,b=C;S<b.length;S++){var A=b[S],v=A[0],w=A[1];this.set(v,w)}}return m.prototype.set=function(C,y){var S=this._entries.get(C);return this._entries.set(C,y),S},m.prototype.forEach=function(C){this._entries.forEach(function(y,S){return C(S,y)})},m.prototype.has=function(C){return this._entries.has(C)},m.prototype.get=function(C){return this._entries.get(C)},m}();a.ServiceCollection=h;var g=function(){function m(){this._services=new h,this._services.set(u.IInstantiationService,this)}return m.prototype.setService=function(C,y){this._services.set(C,y)},m.prototype.getService=function(C){return this._services.get(C)},m.prototype.createInstance=function(C){for(var y=[],S=1;S<arguments.length;S++)y[S-1]=arguments[S];for(var b=(0,d.getServiceDependencies)(C).sort(function(L,O){return L.index-O.index}),A=[],v=0,w=b;v<w.length;v++){var T=w[v],I=this._services.get(T.id);if(!I)throw new Error("[createInstance] "+C.name+" depends on UNKNOWN service "+T.id+".");A.push(I)}var x=b.length>0?b[0].index:y.length;if(y.length!==x)throw new Error("[createInstance] First service dependency of "+C.name+" at position "+(x+1)+" conflicts with "+y.length+" static arguments");return new(C.bind.apply(C,c([void 0],c(c([],y,!0),A,!0),!1)))},m}();a.InstantiationService=g},7866:function(s,a,l){var c=this&&this.__decorate||function(C,y,S,b){var A,v=arguments.length,w=v<3?y:b===null?b=Object.getOwnPropertyDescriptor(y,S):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(C,y,S,b);else for(var T=C.length-1;T>=0;T--)(A=C[T])&&(w=(v<3?A(w):v>3?A(y,S,w):A(y,S))||w);return v>3&&w&&Object.defineProperty(y,S,w),w},u=this&&this.__param||function(C,y){return function(S,b){y(S,b,C)}},d=this&&this.__spreadArray||function(C,y,S){if(S||arguments.length===2)for(var b,A=0,v=y.length;A<v;A++)!b&&A in y||(b||(b=Array.prototype.slice.call(y,0,A)),b[A]=y[A]);return C.concat(b||Array.prototype.slice.call(y))};Object.defineProperty(a,"__esModule",{value:!0}),a.LogService=void 0;var h=l(2585),g={debug:h.LogLevelEnum.DEBUG,info:h.LogLevelEnum.INFO,warn:h.LogLevelEnum.WARN,error:h.LogLevelEnum.ERROR,off:h.LogLevelEnum.OFF},m=function(){function C(y){var S=this;this._optionsService=y,this.logLevel=h.LogLevelEnum.OFF,this._updateLogLevel(),this._optionsService.onOptionChange(function(b){b==="logLevel"&&S._updateLogLevel()})}return C.prototype._updateLogLevel=function(){this.logLevel=g[this._optionsService.options.logLevel]},C.prototype._evalLazyOptionalParams=function(y){for(var S=0;S<y.length;S++)typeof y[S]=="function"&&(y[S]=y[S]())},C.prototype._log=function(y,S,b){this._evalLazyOptionalParams(b),y.call.apply(y,d([console,"xterm.js: "+S],b,!1))},C.prototype.debug=function(y){for(var S=[],b=1;b<arguments.length;b++)S[b-1]=arguments[b];this.logLevel<=h.LogLevelEnum.DEBUG&&this._log(console.log,y,S)},C.prototype.info=function(y){for(var S=[],b=1;b<arguments.length;b++)S[b-1]=arguments[b];this.logLevel<=h.LogLevelEnum.INFO&&this._log(console.info,y,S)},C.prototype.warn=function(y){for(var S=[],b=1;b<arguments.length;b++)S[b-1]=arguments[b];this.logLevel<=h.LogLevelEnum.WARN&&this._log(console.warn,y,S)},C.prototype.error=function(y){for(var S=[],b=1;b<arguments.length;b++)S[b-1]=arguments[b];this.logLevel<=h.LogLevelEnum.ERROR&&this._log(console.error,y,S)},c([u(0,h.IOptionsService)],C)}();a.LogService=m},7302:function(s,a,l){var c=this&&this.__assign||function(){return c=Object.assign||function(m){for(var C,y=1,S=arguments.length;y<S;y++)for(var b in C=arguments[y])Object.prototype.hasOwnProperty.call(C,b)&&(m[b]=C[b]);return m},c.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0}),a.OptionsService=a.DEFAULT_OPTIONS=a.DEFAULT_BELL_SOUND=void 0;var u=l(8460),d=l(6114);a.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",a.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,bellSound:a.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:d.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1};var h=["normal","bold","100","200","300","400","500","600","700","800","900"],g=function(){function m(C){for(var y in this._onOptionChange=new u.EventEmitter,this._options=c({},a.DEFAULT_OPTIONS),C)if(y in this._options)try{var S=C[y];this._options[y]=this._sanitizeAndValidateOption(y,S)}catch(b){console.error(b)}this.options=this._setupOptions(this._options)}return Object.defineProperty(m.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),m.prototype._setupOptions=function(C){var y=this,S=c({},C),b=function(v){Object.defineProperty(S,v,{get:function(){if(!(v in a.DEFAULT_OPTIONS))throw new Error('No option with key "'+v+'"');return y._options[v]},set:function(w){if(!(v in a.DEFAULT_OPTIONS))throw new Error('No option with key "'+v+'"');w=y._sanitizeAndValidateOption(v,w),y._options[v]!==w&&(y._options[v]=w,y._onOptionChange.fire(v))}})};for(var A in S)b(A);return S},m.prototype.setOption=function(C,y){this.options[C]=y},m.prototype._sanitizeAndValidateOption=function(C,y){switch(C){case"bellStyle":case"cursorStyle":case"rendererType":case"wordSeparator":y||(y=a.DEFAULT_OPTIONS[C]);break;case"fontWeight":case"fontWeightBold":if(typeof y=="number"&&1<=y&&y<=1e3)break;y=h.includes(y)?y:a.DEFAULT_OPTIONS[C];break;case"cursorWidth":y=Math.floor(y);case"lineHeight":case"tabStopWidth":if(y<1)throw new Error(C+" cannot be less than 1, value: "+y);break;case"minimumContrastRatio":y=Math.max(1,Math.min(21,Math.round(10*y)/10));break;case"scrollback":if((y=Math.min(y,4294967295))<0)throw new Error(C+" cannot be less than 0, value: "+y);break;case"fastScrollSensitivity":case"scrollSensitivity":if(y<=0)throw new Error(C+" cannot be less than or equal to 0, value: "+y);case"rows":case"cols":if(!y&&y!==0)throw new Error(C+" must be numeric, value: "+y)}return y},m.prototype.getOption=function(C){return this.options[C]},m}();a.OptionsService=g},8343:(s,a)=>{function l(c,u,d){u.di$target===u?u.di$dependencies.push({id:c,index:d}):(u.di$dependencies=[{id:c,index:d}],u.di$target=u)}Object.defineProperty(a,"__esModule",{value:!0}),a.createDecorator=a.getServiceDependencies=a.serviceRegistry=void 0,a.serviceRegistry=new Map,a.getServiceDependencies=function(c){return c.di$dependencies||[]},a.createDecorator=function(c){if(a.serviceRegistry.has(c))return a.serviceRegistry.get(c);var u=function(d,h,g){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");l(u,d,g)};return u.toString=function(){return c},a.serviceRegistry.set(c,u),u}},2585:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.IUnicodeService=a.IOptionsService=a.ILogService=a.LogLevelEnum=a.IInstantiationService=a.IDirtyRowService=a.ICharsetService=a.ICoreService=a.ICoreMouseService=a.IBufferService=void 0;var c,u=l(8343);a.IBufferService=(0,u.createDecorator)("BufferService"),a.ICoreMouseService=(0,u.createDecorator)("CoreMouseService"),a.ICoreService=(0,u.createDecorator)("CoreService"),a.ICharsetService=(0,u.createDecorator)("CharsetService"),a.IDirtyRowService=(0,u.createDecorator)("DirtyRowService"),a.IInstantiationService=(0,u.createDecorator)("InstantiationService"),(c=a.LogLevelEnum||(a.LogLevelEnum={}))[c.DEBUG=0]="DEBUG",c[c.INFO=1]="INFO",c[c.WARN=2]="WARN",c[c.ERROR=3]="ERROR",c[c.OFF=4]="OFF",a.ILogService=(0,u.createDecorator)("LogService"),a.IOptionsService=(0,u.createDecorator)("OptionsService"),a.IUnicodeService=(0,u.createDecorator)("UnicodeService")},1480:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UnicodeService=void 0;var c=l(8460),u=l(225),d=function(){function h(){this._providers=Object.create(null),this._active="",this._onChange=new c.EventEmitter;var g=new u.UnicodeV6;this.register(g),this._active=g.version,this._activeProvider=g}return Object.defineProperty(h.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"activeVersion",{get:function(){return this._active},set:function(g){if(!this._providers[g])throw new Error('unknown Unicode version "'+g+'"');this._active=g,this._activeProvider=this._providers[g],this._onChange.fire(g)},enumerable:!1,configurable:!0}),h.prototype.register=function(g){this._providers[g.version]=g},h.prototype.wcwidth=function(g){return this._activeProvider.wcwidth(g)},h.prototype.getStringCellWidth=function(g){for(var m=0,C=g.length,y=0;y<C;++y){var S=g.charCodeAt(y);if(55296<=S&&S<=56319){if(++y>=C)return m+this.wcwidth(S);var b=g.charCodeAt(y);56320<=b&&b<=57343?S=1024*(S-55296)+b-56320+65536:m+=this.wcwidth(b)}m+=this.wcwidth(S)}return m},h}();a.UnicodeService=d}},i={};function r(s){var a=i[s];if(a!==void 0)return a.exports;var l=i[s]={exports:{}};return t[s].call(l.exports,l,l.exports,r),l.exports}var o={};return(()=>{var s=o;Object.defineProperty(s,"__esModule",{value:!0}),s.Terminal=void 0;var a=r(3236),l=r(9042),c=r(7975),u=r(7090),d=r(5741),h=r(8285),g=["cols","rows"],m=function(){function C(y){var S=this;this._core=new a.Terminal(y),this._addonManager=new d.AddonManager,this._publicOptions={};var b=function(w){Object.defineProperty(A._publicOptions,w,{get:function(){return S._core.options[w]},set:function(T){S._checkReadonlyOptions(w),S._core.options[w]=T}})},A=this;for(var v in this._core.options)b(v)}return C.prototype._checkReadonlyOptions=function(y){if(g.includes(y))throw new Error('Option "'+y+'" can only be set in the constructor')},C.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(C.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new c.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"unicode",{get:function(){return this._checkProposedApi(),new u.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new h.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"modes",{get:function(){var y=this._core.coreService.decPrivateModes,S="none";switch(this._core.coreMouseService.activeProtocol){case"X10":S="x10";break;case"VT200":S="vt200";break;case"DRAG":S="drag";break;case"ANY":S="any"}return{applicationCursorKeysMode:y.applicationCursorKeys,applicationKeypadMode:y.applicationKeypad,bracketedPasteMode:y.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:S,originMode:y.origin,reverseWraparoundMode:y.reverseWraparound,sendFocusMode:y.sendFocus,wraparoundMode:y.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"options",{get:function(){return this._publicOptions},set:function(y){for(var S in y)this._publicOptions[S]=y[S]},enumerable:!1,configurable:!0}),C.prototype.blur=function(){this._core.blur()},C.prototype.focus=function(){this._core.focus()},C.prototype.resize=function(y,S){this._verifyIntegers(y,S),this._core.resize(y,S)},C.prototype.open=function(y){this._core.open(y)},C.prototype.attachCustomKeyEventHandler=function(y){this._core.attachCustomKeyEventHandler(y)},C.prototype.registerLinkMatcher=function(y,S,b){return this._checkProposedApi(),this._core.registerLinkMatcher(y,S,b)},C.prototype.deregisterLinkMatcher=function(y){this._checkProposedApi(),this._core.deregisterLinkMatcher(y)},C.prototype.registerLinkProvider=function(y){return this._checkProposedApi(),this._core.registerLinkProvider(y)},C.prototype.registerCharacterJoiner=function(y){return this._checkProposedApi(),this._core.registerCharacterJoiner(y)},C.prototype.deregisterCharacterJoiner=function(y){this._checkProposedApi(),this._core.deregisterCharacterJoiner(y)},C.prototype.registerMarker=function(y){return this._checkProposedApi(),this._verifyIntegers(y),this._core.addMarker(y)},C.prototype.addMarker=function(y){return this.registerMarker(y)},C.prototype.hasSelection=function(){return this._core.hasSelection()},C.prototype.select=function(y,S,b){this._verifyIntegers(y,S,b),this._core.select(y,S,b)},C.prototype.getSelection=function(){return this._core.getSelection()},C.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},C.prototype.clearSelection=function(){this._core.clearSelection()},C.prototype.selectAll=function(){this._core.selectAll()},C.prototype.selectLines=function(y,S){this._verifyIntegers(y,S),this._core.selectLines(y,S)},C.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},C.prototype.scrollLines=function(y){this._verifyIntegers(y),this._core.scrollLines(y)},C.prototype.scrollPages=function(y){this._verifyIntegers(y),this._core.scrollPages(y)},C.prototype.scrollToTop=function(){this._core.scrollToTop()},C.prototype.scrollToBottom=function(){this._core.scrollToBottom()},C.prototype.scrollToLine=function(y){this._verifyIntegers(y),this._core.scrollToLine(y)},C.prototype.clear=function(){this._core.clear()},C.prototype.write=function(y,S){this._core.write(y,S)},C.prototype.writeUtf8=function(y,S){this._core.write(y,S)},C.prototype.writeln=function(y,S){this._core.write(y),this._core.write(`\r
1603
1602
  `,S)},C.prototype.paste=function(y){this._core.paste(y)},C.prototype.getOption=function(y){return this._core.optionsService.getOption(y)},C.prototype.setOption=function(y,S){this._checkReadonlyOptions(y),this._core.optionsService.setOption(y,S)},C.prototype.refresh=function(y,S){this._verifyIntegers(y,S),this._core.refresh(y,S)},C.prototype.reset=function(){this._core.reset()},C.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},C.prototype.loadAddon=function(y){return this._addonManager.loadAddon(this,y)},Object.defineProperty(C,"strings",{get:function(){return l},enumerable:!1,configurable:!0}),C.prototype._verifyIntegers=function(){for(var y=[],S=0;S<arguments.length;S++)y[S]=arguments[S];for(var b=0,A=y;b<A.length;b++){var v=A[b];if(v===1/0||isNaN(v)||v%1!=0)throw new Error("This API only accepts integers")}},C}();s.Terminal=m})(),o})()})})(JZ);var qSe={exports:{}};(function(n,e){(function(t,i){n.exports=i()})(self,function(){return(()=>{var t={775:(r,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.FitAddon=void 0;var s=function(){function a(){}return a.prototype.activate=function(l){this._terminal=l},a.prototype.dispose=function(){},a.prototype.fit=function(){var l=this.proposeDimensions();if(l&&this._terminal){var c=this._terminal._core;this._terminal.rows===l.rows&&this._terminal.cols===l.cols||(c._renderService.clear(),this._terminal.resize(l.cols,l.rows))}},a.prototype.proposeDimensions=function(){if(this._terminal&&this._terminal.element&&this._terminal.element.parentElement){var l=this._terminal._core;if(l._renderService.dimensions.actualCellWidth!==0&&l._renderService.dimensions.actualCellHeight!==0){var c=window.getComputedStyle(this._terminal.element.parentElement),u=parseInt(c.getPropertyValue("height")),d=Math.max(0,parseInt(c.getPropertyValue("width"))),h=window.getComputedStyle(this._terminal.element),g=u-(parseInt(h.getPropertyValue("padding-top"))+parseInt(h.getPropertyValue("padding-bottom"))),m=d-(parseInt(h.getPropertyValue("padding-right"))+parseInt(h.getPropertyValue("padding-left")))-l.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(m/l._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(g/l._renderService.dimensions.actualCellHeight))}}}},a}();o.FitAddon=s}},i={};return function r(o){if(i[o])return i[o].exports;var s=i[o]={exports:{}};return t[o](s,s.exports,r),s.exports}(775)})()})})(qSe);const YSe=r=>{var o=r,{terminal:n,onKey:e,fitHook:t}=o,i=o_(o,["terminal","onKey","fitHook"]);const s=Ht({height:"100%",width:"100%",padding:"5px 20px",backgroundColor:"#1e1e1e"},i),a=new qSe.exports.FitAddon,l=Ae.exports.useRef(null),c=d=>{d.onKey(({key:h,domEvent:g})=>{let m=h;switch(h.charCodeAt(0)){case 13:break;case 27:switch(g.key){case"ArrowLeft":if(d.buffer.active.cursorX<=2)return;break}break;case 8:case 127:d.buffer.active.cursorX>2&&(m="\b");break}e(m)})},u=()=>{try{setTimeout(()=>{a.fit()},0)}catch{}};return Ae.exports.useEffect(()=>{n&&(n.loadAddon(a),c(n),n.open(l.current),u())},[n]),Ae.exports.useEffect(()=>{u()},[t]),Ke(Xc,{children:Ke("div",{style:Ht({},s),ref:l})})},XSe=t=>{var i=t,{options:n}=i,e=o_(i,["options"]);const r=Ht({convertEol:!0,fontSize:12,fontFamily:"Monaco, Menlo, monospace",lineHeight:1,cursorBlink:!0,cursorWidth:1,cursorStyle:"block",rightClickSelectsWord:!0,theme:{background:"#1E1E1E"}},n),[o,s]=Ae.exports.useState(null),{CRDTInfo:a}=In(d=>d),{dockerStatus:l}=In(d=>d),c=(d,h)=>{d.write(`\r
1604
1603
  `),d.clear(),u(d,h)},u=(d,h)=>{d.write(h)};return Ae.exports.useEffect(()=>{if(!o){const d=new JZ.exports.Terminal(r);s(d)}},[]),Ae.exports.useEffect(()=>{!o||(l==="STOP"?c(o,`\u5E94\u7528\u672A\u542F\u52A8\r
1605
- `):c(o,In.getState().dockerInfo.consoleHistory))},[o]),Ae.exports.useEffect(()=>{const d=a.console;if(o&&d){if(d.doc.value==="^C"){u(o,d.doc.value),c(o,"");return}u(o,d.doc.value||"")}},[a.console]),Ae.exports.useEffect(()=>{!o||(l==="STOP"?setTimeout(()=>{c(o,`\u5E94\u7528\u672A\u542F\u52A8\r
1604
+ `):c(o,In.getState().dockerInfo.consoleHistory))},[o]),Ae.exports.useEffect(()=>{if(!o)return;const d=a.console;d&&u(o,d.doc.value||"")},[a.console]),Ae.exports.useEffect(()=>{!o||(l==="STOP"?setTimeout(()=>{u(o,`\r
1605
+ \u5E94\u7528\u672A\u542F\u52A8\r
1606
1606
  `)},400):c(o,""))},[l]),Ke("div",{style:{height:"100%",width:"100%"},children:Ke(YSe,Ht({terminal:o},e))})};var Cwt=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:XSe});const JSe="https://",ywt=Ja.div`
1607
1607
  background-color: white;
1608
1608
  height: 30px;
package/dist/editor.d.ts CHANGED
@@ -126,6 +126,22 @@ export class DaoPaaS {
126
126
  */
127
127
  activePlayground(): void;
128
128
 
129
+ /**
130
+ *
131
+ * Run the playground handler.
132
+ * @memberof DaoPaaS
133
+ *
134
+ */
135
+ runPlayground(): void;
136
+
137
+ /**
138
+ *
139
+ * Stop the playground.
140
+ * @memberof DaoPaaS
141
+ *
142
+ */
143
+ stopPlayground(): void;
144
+
129
145
  /**
130
146
  *
131
147
  * Editor component.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dao42/d42paas-front",
3
- "version": "0.5.26",
3
+ "version": "0.5.27",
4
4
  "description": "> TODO: description",
5
5
  "author": "eric183 <kk297466058@gmail.com>",
6
6
  "homepage": "https://github.com/dao42/d42paas_frontend#readme",