(()=>{vare={50:e=>{vart;self,t=()=>(()=>{"use strict";vare={6:(e,t)=>{functioni(e){try{constt=newURL(e),i=t.password&&t.username?`${t.protocol}//${t.username}:${t.password}@${t.host}`:t.username?`${t.protocol}//${t.username}@${t.host}`:`${t.protocol}//${t.host}`;returne.toLocaleLowerCase().startsWith(i.toLocaleLowerCase())}catch(e){return!1}}Object.defineProperty(t,"__esModule",{value:!0}),t.LinkComputer=t.WebLinkProvider=void0,t.WebLinkProvider=class{constructor(e,t,i,r={}){this._terminal=e,this._regex=t,this._handler=i,this._options=r}provideLinks(e,t){consti=r.computeLink(e,this._regex,this._terminal,this._handler);t(this._addCallbacks(i))}_addCallbacks(e){returne.map(e=>(e.leave=this._options.leave,e.hover=(t,i)=>{if(this._options.hover){const{range:r}=e;this._options.hover(t,i,r)}},e))}};classr{staticcomputeLink(e,t,s,o){constn=newRegExp(t.source,(t.flags||"")+"g"),[a,h]=r._getWindowedLineStrings(e-1,s),l=a.join("");letc;constu=[];for(;c=n.exec(l);){conste=c[0];if(!i(e))continue;const[t,n]=r._mapStrIdx(s,h,0,c.index),[a,l]=r._mapStrIdx(s,t,n,e.length);if(-1===t||-1===n||-1===a||-1===l)continue;constd={start:{x:n+1,y:t+1},end:{x:l,y:a+1}};u.push({range:d,text:e,activate:o})}returnu}static_getWindowedLineStrings(e,t){leti,r=e,s=e,o=0,n="";consta=[];if(i=t.buffer.active.getLine(e)){conste=i.translateToString(!0);if(i.isWrapped&&" "!==e[0]){for(o=0;(i=t.buffer.active.getLine(--r))&&o<2048&&(n=i.translateToString(!0),o+=n.length,a.push(n),i.isWrapped&&-1===n.indexOf(" ")););a.reverse()}for(a.push(e),o=0;(i=t.buffer.active.getLine(++s))&&i.isWrapped&&o<2048&&(n=i.translateToString(!0),o+=n.length,a.push(n),-1===n.indexOf(" ")););}return[a,r]}static_mapStrIdx(e,t,i,r){consts=e.buffer.active,o=s.getNullCell();letn=i;for(;r;){conste=s.getLine(t);if(!e)return[-1,-1];for(leti=n;i<e.length;++i){e.getCell(i,o);constn=o.getChars();if(o.getWidth()&&(r-=n.length||1,i===e.length-1&&""===n)){conste=s.getLine(t+1);e&&e.isWrapped&&(e.getCell(0,o),2===o.getWidth()&&(r+=1))}if(r<0)return[t,i]}t++,n=0}return[t,n]}}t.LinkComputer=r}},t={};functioni(r){vars=t[r];if(void0!==s)returns.exports;varo=t[r]={exports:{}};returne[r](o,o.exports,i),o.exports}varr={};return(()=>{vare=r;Object.defineProperty(e,"__esModule",{value:!0}),e.WebLinksAddon=void0;constt=i(6),s=/(https?|HTTPS?):[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;functiono(e,t){consti=window.open();if(i){try{i.opener=null}catch{}i.location.href=t}elseconsole.warn("Opening link blocked as opener could not be cleared")}e.WebLinksAddon=class{constructor(e=o,t={}){this._handler=e,this._options=t}activate(e){this._terminal=e;consti=this._options,r=i.urlRegex||s;this._linkProvider=this._terminal.registerLinkProvider(newt.WebLinkProvider(this._terminal,r,this._handler,i))}dispose(){this._linkProvider?.dispose()}}})(),r})(),e.exports=t()},59:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebTTY=t.msgSetReconnect=t.msgSetPreferences=t.msgSetWindowTitle=t.msgPong=t.msgOutput=t.msgUnknownOutput=t.msgResizeTerminal=t.msgPing=t.msgInput=t.msgInputUnknown=t.protocols=void0,t.protocols=["webtty"],t.msgInputUnknown="0",t.msgInput="1",t.msgPing="2",t.msgResizeTerminal="3",t.msgUnknownOutput="0",t.msgOutput="1",t.msgPong="2",t.msgSetWindowTitle="3",t.msgSetPreferences="4",t.msgSetReconnect="5";vari=function(){functione(e,t,i,r){this.term=e,this.connectionFactory=t,this.args=i,this.authToken=r,this.reconnect=-1}returne.prototype.open=function(){vare,i,r=this,s=this.connectionFactory.create(),o=function(){s.onOpen(function(){vari=r.term.info();s.send(JSON.stringify({Arguments:r.args,AuthToken:r.authToken}));varo=function(e,i){s.send(t.msgResizeTerminal+JSON.stringify({columns:e,rows:i}))};r.term.onResize(o),o(i.columns,i.rows),r.term.onInput(function(e){s.send(t.msgInput+e)}),e=setInterval(function(){s.send(t.msgPing)},3e4)}),s.onReceive(function(e){vari=e.slice(1);switch(e[0]){caset.msgOutput:r.term.output(atob(i));break;caset.msgPong:break;caset.msgSetWindowTitle:r.term.setWindowTitle(i);break;caset.msgSetP