@sma1lboy/rove 0.9.285-next.202 → 0.9.285
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.
- package/dist/cli/{chunk-kjzdepww.js → chunk-2cx12te3.js} +1 -1
- package/dist/cli/{chunk-ynq3gsap.js → chunk-42z85xck.js} +1 -1
- package/dist/cli/{chunk-358557z1.js → chunk-4j7r3050.js} +1 -1
- package/dist/cli/{chunk-b3q8n73j.js → chunk-5zv1q7by.js} +1 -1
- package/dist/cli/{chunk-kzk86ka6.js → chunk-69jv5abf.js} +1 -1
- package/dist/cli/{chunk-mz5a7w9c.js → chunk-9cywjm27.js} +1 -1
- package/dist/cli/{chunk-3fq5agbv.js → chunk-aamfk80a.js} +1 -1
- package/dist/cli/{chunk-rc3j5h8s.js → chunk-argsfjf6.js} +1 -1
- package/dist/cli/{chunk-ahrw0w2j.js → chunk-by6md9e9.js} +2 -2
- package/dist/cli/{chunk-5t4xh3m2.js → chunk-by7j1tzd.js} +1 -1
- package/dist/cli/{chunk-szf6fr9e.js → chunk-c0t0wpwv.js} +1 -1
- package/dist/cli/{chunk-mp5zk9sy.js → chunk-c34k5fw9.js} +1 -1
- package/dist/cli/{chunk-mrtyrk1h.js → chunk-dyyd7s8w.js} +1 -1
- package/dist/cli/{chunk-b6h7tmb3.js → chunk-evxv5cxn.js} +1 -1
- package/dist/cli/{chunk-0qa59j9m.js → chunk-ezjvpbcm.js} +1 -1
- package/dist/cli/{chunk-4qjp1jhm.js → chunk-ffpbmy09.js} +1 -1
- package/dist/cli/{chunk-cvw4pj4r.js → chunk-fmt5hrw3.js} +1 -1
- package/dist/cli/{chunk-q7bkjz6w.js → chunk-ggjwv4wx.js} +1 -1
- package/dist/cli/{chunk-jwqwhe2j.js → chunk-gzx23swq.js} +2 -2
- package/dist/cli/{chunk-dc2gna8v.js → chunk-hvtge15w.js} +1 -1
- package/dist/cli/{chunk-qj19d29m.js → chunk-jfv4s2v8.js} +2 -2
- package/dist/cli/{chunk-s9wvnp1q.js → chunk-jkgrmxys.js} +1 -1
- package/dist/cli/{chunk-5p03s27c.js → chunk-kensctt6.js} +1 -1
- package/dist/cli/{chunk-8cnyxwcy.js → chunk-kxe65gn6.js} +1 -1
- package/dist/cli/{chunk-9nyf96k4.js → chunk-ma2aq1qp.js} +1 -1
- package/dist/cli/{chunk-50f8n7wt.js → chunk-mtpz8a1s.js} +1 -1
- package/dist/cli/{chunk-bq8832f6.js → chunk-na76tkwk.js} +1 -1
- package/dist/cli/{chunk-ntxs7r91.js → chunk-ptfq1hny.js} +1 -1
- package/dist/cli/{chunk-hd27rwjv.js → chunk-qqesxgnt.js} +1 -1
- package/dist/cli/{chunk-wq1en17j.js → chunk-qxpxqzsn.js} +1 -1
- package/dist/cli/{chunk-rdxqngma.js → chunk-rdmwdnds.js} +1 -1
- package/dist/cli/{chunk-d2zeqk03.js → chunk-rzdv1xn7.js} +2 -2
- package/dist/cli/chunk-vt7rzq32.js +3 -0
- package/dist/cli/{chunk-vkzrfg9s.js → chunk-we49rdrg.js} +1 -1
- package/dist/cli/{chunk-qwpmmhd8.js → chunk-wm1vtkjt.js} +1 -1
- package/dist/cli/{chunk-qt9n8d3z.js → chunk-x1zhs3m9.js} +1 -1
- package/dist/cli/{chunk-b56qb06n.js → chunk-y60bh5en.js} +1 -1
- package/dist/cli/{chunk-0pbtmt71.js → chunk-y7xmqqab.js} +1 -1
- package/dist/cli/{chunk-5bg10vf1.js → chunk-z2e08xym.js} +1 -1
- package/dist/cli/{chunk-3eqcw6jr.js → chunk-z9md1yx4.js} +1 -1
- package/dist/cli/{chunk-q9t9jc47.js → chunk-zhhpr41f.js} +1 -1
- package/dist/cli/{chunk-1tk3wmet.js → chunk-zqmxjvp7.js} +2 -2
- package/dist/cli/{chunk-1sn8dw1w.js → chunk-zwrma6nn.js} +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/cli/rove.js +6 -6
- package/dist/web/assets/index-BVOfppkn.css +1 -0
- package/dist/web/assets/{index-DhxBC_AO.js → index-kdVc_Zi5.js} +26 -26
- package/dist/web/assets/{term-mount-WLPQQECI.js → term-mount-n0WthOpx.js} +1 -1
- package/dist/web/index.html +2 -2
- package/dist/web/relay/index.html +4 -4
- package/package.json +5 -3
- package/dist/cli/chunk-1edrt9g7.js +0 -3
- package/dist/web/assets/index-BGsUB71N.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e,c as t,d as n,f as r,i,l as a,n as o,o as s,r as c,s as l,t as u,u as d}from"./index-
|
|
1
|
+
import{a as e,c as t,d as n,f as r,i,l as a,n as o,o as s,r as c,s as l,t as u,u as d}from"./index-kdVc_Zi5.js";var f=0,p=0,m=0,h=0,g;(e=>{function t(e,t,n,r){return r===void 0?`#${x(e)}${x(t)}${x(n)}`:`#${x(e)}${x(t)}${x(n)}${x(r)}`}e.toCss=t;function n(e,t,n,r=255){return(e<<24|t<<16|n<<8|r)>>>0}e.toRgba=n;function r(t,n,r,i){return{css:e.toCss(t,n,r,i),rgba:e.toRgba(t,n,r,i)}}e.toColor=r})(g||={});var _;(e=>{function t(e,t){if(h=(t.rgba&255)/255,h===1)return{css:t.css,rgba:t.rgba};let n=t.rgba>>24&255,r=t.rgba>>16&255,i=t.rgba>>8&255,a=e.rgba>>24&255,o=e.rgba>>16&255,s=e.rgba>>8&255;return f=a+Math.round((n-a)*h),p=o+Math.round((r-o)*h),m=s+Math.round((i-s)*h),{css:g.toCss(f,p,m),rgba:g.toRgba(f,p,m)}}e.blend=t;function n(e){return(e.rgba&255)==255}e.isOpaque=n;function r(e,t,n){let r=b.ensureContrastRatio(e.rgba,t.rgba,n);if(r)return g.toColor(r>>24&255,r>>16&255,r>>8&255)}e.ensureContrastRatio=r;function i(e){let t=(e.rgba|255)>>>0;return[f,p,m]=b.toChannels(t),{css:g.toCss(f,p,m),rgba:t}}e.opaque=i;function a(e,t){return h=Math.round(t*255),[f,p,m]=b.toChannels(e.rgba),{css:g.toCss(f,p,m,h),rgba:g.toRgba(f,p,m,h)}}e.opacity=a;function o(e,t){return h=e.rgba&255,a(e,h*t/255)}e.multiplyOpacity=o;function s(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}e.toColorRGB=s})(_||={});var v;(e=>{let t,n;try{let e=document.createElement(`canvas`);e.width=1,e.height=1;let r=e.getContext(`2d`,{willReadFrequently:!0});r&&(t=r,t.globalCompositeOperation=`copy`,n=t.createLinearGradient(0,0,1,1))}catch{}function r(e){if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return f=parseInt(e.slice(1,2).repeat(2),16),p=parseInt(e.slice(2,3).repeat(2),16),m=parseInt(e.slice(3,4).repeat(2),16),g.toColor(f,p,m);case 5:return f=parseInt(e.slice(1,2).repeat(2),16),p=parseInt(e.slice(2,3).repeat(2),16),m=parseInt(e.slice(3,4).repeat(2),16),h=parseInt(e.slice(4,5).repeat(2),16),g.toColor(f,p,m,h);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}let r=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(r)return f=parseInt(r[1]),p=parseInt(r[2]),m=parseInt(r[3]),h=Math.round((r[5]===void 0?1:parseFloat(r[5]))*255),g.toColor(f,p,m,h);if(!t||!n||(t.fillStyle=n,t.fillStyle=e,typeof t.fillStyle!=`string`)||(t.fillRect(0,0,1,1),[f,p,m,h]=t.getImageData(0,0,1,1).data,h!==255))throw Error(`css.toColor: Unsupported css format`);return{rgba:g.toRgba(f,p,m,h),css:e}}e.toColor=r})(v||={});var y;(e=>{function t(e){return n(e>>16&255,e>>8&255,e&255)}e.relativeLuminance=t;function n(e,t,n){let r=e/255,i=t/255,a=n/255,o=r<=.03928?r/12.92:((r+.055)/1.055)**2.4,s=i<=.03928?i/12.92:((i+.055)/1.055)**2.4,c=a<=.03928?a/12.92:((a+.055)/1.055)**2.4;return o*.2126+s*.7152+c*.0722}e.relativeLuminance2=n})(y||={});var b;(e=>{function t(e,t){if(h=(t&255)/255,h===1)return t;let n=t>>24&255,r=t>>16&255,i=t>>8&255,a=e>>24&255,o=e>>16&255,s=e>>8&255;return f=a+Math.round((n-a)*h),p=o+Math.round((r-o)*h),m=s+Math.round((i-s)*h),g.toRgba(f,p,m)}e.blend=t;function n(e,t,n){let a=y.relativeLuminance(e>>8),o=y.relativeLuminance(t>>8);if(S(a,o)<n){if(o<a){let o=r(e,t,n),s=S(a,y.relativeLuminance(o>>8));if(s<n){let r=i(e,t,n);return s>S(a,y.relativeLuminance(r>>8))?o:r}return o}let s=i(e,t,n),c=S(a,y.relativeLuminance(s>>8));if(c<n){let i=r(e,t,n);return c>S(a,y.relativeLuminance(i>>8))?s:i}return s}}e.ensureContrastRatio=n;function r(e,t,n){let r=e>>24&255,i=e>>16&255,a=e>>8&255,o=t>>24&255,s=t>>16&255,c=t>>8&255,l=S(y.relativeLuminance2(o,s,c),y.relativeLuminance2(r,i,a));for(;l<n&&(o>0||s>0||c>0);)o-=Math.max(0,Math.ceil(o*.1)),s-=Math.max(0,Math.ceil(s*.1)),c-=Math.max(0,Math.ceil(c*.1)),l=S(y.relativeLuminance2(o,s,c),y.relativeLuminance2(r,i,a));return(o<<24|s<<16|c<<8|255)>>>0}e.reduceLuminance=r;function i(e,t,n){let r=e>>24&255,i=e>>16&255,a=e>>8&255,o=t>>24&255,s=t>>16&255,c=t>>8&255,l=S(y.relativeLuminance2(o,s,c),y.relativeLuminance2(r,i,a));for(;l<n&&(o<255||s<255||c<255);)o=Math.min(255,o+Math.ceil((255-o)*.1)),s=Math.min(255,s+Math.ceil((255-s)*.1)),c=Math.min(255,c+Math.ceil((255-c)*.1)),l=S(y.relativeLuminance2(o,s,c),y.relativeLuminance2(r,i,a));return(o<<24|s<<16|c<<8|255)>>>0}e.increaseLuminance=i;function a(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}e.toChannels=a})(b||={});function x(e){let t=e.toString(16);return t.length<2?`0`+t:t}function S(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}var ee=Object.freeze((()=>{let e=[v.toColor(`#2e3436`),v.toColor(`#cc0000`),v.toColor(`#4e9a06`),v.toColor(`#c4a000`),v.toColor(`#3465a4`),v.toColor(`#75507b`),v.toColor(`#06989a`),v.toColor(`#d3d7cf`),v.toColor(`#555753`),v.toColor(`#ef2929`),v.toColor(`#8ae234`),v.toColor(`#fce94f`),v.toColor(`#729fcf`),v.toColor(`#ad7fa8`),v.toColor(`#34e2e2`),v.toColor(`#eeeeec`)],t=[0,95,135,175,215,255];for(let n=0;n<216;n++){let r=t[n/36%6|0],i=t[n/6%6|0],a=t[n%6];e.push({css:g.toCss(r,i,a),rgba:g.toRgba(r,i,a)})}for(let t=0;t<24;t++){let n=8+t*10;e.push({css:g.toCss(n,n,n),rgba:g.toRgba(n,n,n)})}return e})());function C(e,t,n){return Math.max(t,Math.min(e,n))}function te(e){switch(e){case`&`:return`&`;case`<`:return`<`}return e}var w=class{constructor(e){this._buffer=e}serialize(e,t){let n=this._buffer.getNullCell(),r=this._buffer.getNullCell(),i=n,a=e.start.y,o=e.end.y,s=e.start.x,c=e.end.x;this._beforeSerialize(o-a,a,o);for(let t=a;t<=o;t++){let a=this._buffer.getLine(t);if(a){let o=t===e.start.y?s:0,l=t===e.end.y?c:a.length;for(let e=o;e<l;e++){let o=a.getCell(e,i===n?r:n);if(!o){console.warn(`Can't get cell at row=${t}, col=${e}`);continue}this._nextCell(o,i,t,e),i=o}}this._rowEnd(t,t===o)}return this._afterSerialize(),this._serializeString(t)}_nextCell(e,t,n,r){}_rowEnd(e,t){}_beforeSerialize(e,t,n){}_afterSerialize(){}_serializeString(e){return``}};function T(e,t){return e.getFgColorMode()===t.getFgColorMode()&&e.getFgColor()===t.getFgColor()}function E(e,t){return e.getBgColorMode()===t.getBgColorMode()&&e.getBgColor()===t.getBgColor()}function D(e,t){return e.isInverse()===t.isInverse()&&e.isBold()===t.isBold()&&e.isUnderline()===t.isUnderline()&&e.isOverline()===t.isOverline()&&e.isBlink()===t.isBlink()&&e.isInvisible()===t.isInvisible()&&e.isItalic()===t.isItalic()&&e.isDim()===t.isDim()&&e.isStrikethrough()===t.isStrikethrough()}var ne=class extends w{constructor(e,t){super(e),this._terminal=t,this._rowIndex=0,this._allRows=[],this._allRowSeparators=[],this._currentRow=``,this._nullCellCount=0,this._cursorStyle=this._buffer.getNullCell(),this._cursorStyleRow=0,this._cursorStyleCol=0,this._backgroundCell=this._buffer.getNullCell(),this._firstRow=0,this._lastCursorRow=0,this._lastCursorCol=0,this._lastContentCursorRow=0,this._lastContentCursorCol=0,this._thisRowLastChar=this._buffer.getNullCell(),this._thisRowLastSecondChar=this._buffer.getNullCell(),this._nextRowFirstChar=this._buffer.getNullCell()}_beforeSerialize(e,t,n){this._allRows=Array(e),this._lastContentCursorRow=t,this._lastCursorRow=t,this._firstRow=t}_rowEnd(e,t){this._nullCellCount>0&&!E(this._cursorStyle,this._backgroundCell)&&(this._currentRow+=`\x1B[${this._nullCellCount}X`);let n=``;if(!t){e-this._firstRow>=this._terminal.rows&&this._buffer.getLine(this._cursorStyleRow)?.getCell(this._cursorStyleCol,this._backgroundCell);let t=this._buffer.getLine(e),r=this._buffer.getLine(e+1);if(!r.isWrapped)n=`\r
|
|
2
2
|
`,this._lastCursorRow=e+1,this._lastCursorCol=0;else{n=``;let i=t.getCell(t.length-1,this._thisRowLastChar),a=t.getCell(t.length-2,this._thisRowLastSecondChar),o=r.getCell(0,this._nextRowFirstChar),s=o.getWidth()>1,c=!1;(o.getChars()&&s?this._nullCellCount<=1:this._nullCellCount<=0)&&((i.getChars()||i.getWidth()===0)&&E(i,o)&&(c=!0),s&&(a.getChars()||a.getWidth()===0)&&E(i,o)&&E(a,o)&&(c=!0)),c||(n=`-`.repeat(this._nullCellCount+1),n+=`\x1B[1D\x1B[1X`,this._nullCellCount>0&&(n+=`\x1B[A`,n+=`\x1B[${t.length-this._nullCellCount}C`,n+=`\x1B[${this._nullCellCount}X`,n+=`\x1B[${t.length-this._nullCellCount}D`,n+=`\x1B[B`),this._lastContentCursorRow=e+1,this._lastContentCursorCol=0,this._lastCursorRow=e+1,this._lastCursorCol=0)}}this._allRows[this._rowIndex]=this._currentRow,this._allRowSeparators[this._rowIndex++]=n,this._currentRow=``,this._nullCellCount=0}_diffStyle(e,t){let n=[],r=!T(e,t),i=!E(e,t),a=!D(e,t);if(r||i||a){if(e.isAttributeDefault())t.isAttributeDefault()||n.push(0);else{if(r){let t=e.getFgColor();e.isFgRGB()?n.push(38,2,t>>>16&255,t>>>8&255,t&255):e.isFgPalette()?t>=16?n.push(38,5,t):n.push(t&8?90+(t&7):30+(t&7)):n.push(39)}if(i){let t=e.getBgColor();e.isBgRGB()?n.push(48,2,t>>>16&255,t>>>8&255,t&255):e.isBgPalette()?t>=16?n.push(48,5,t):n.push(t&8?100+(t&7):40+(t&7)):n.push(49)}a&&(e.isInverse()!==t.isInverse()&&n.push(e.isInverse()?7:27),e.isBold()!==t.isBold()&&n.push(e.isBold()?1:22),e.isUnderline()!==t.isUnderline()&&n.push(e.isUnderline()?4:24),e.isOverline()!==t.isOverline()&&n.push(e.isOverline()?53:55),e.isBlink()!==t.isBlink()&&n.push(e.isBlink()?5:25),e.isInvisible()!==t.isInvisible()&&n.push(e.isInvisible()?8:28),e.isItalic()!==t.isItalic()&&n.push(e.isItalic()?3:23),e.isDim()!==t.isDim()&&n.push(e.isDim()?2:22),e.isStrikethrough()!==t.isStrikethrough()&&n.push(e.isStrikethrough()?9:29))}}return n}_nextCell(e,t,n,r){if(e.getWidth()===0)return;let i=e.getChars()===``,a=this._diffStyle(e,this._cursorStyle);if(i?!E(this._cursorStyle,e):a.length>0){this._nullCellCount>0&&(E(this._cursorStyle,this._backgroundCell)||(this._currentRow+=`\x1B[${this._nullCellCount}X`),this._currentRow+=`\x1B[${this._nullCellCount}C`,this._nullCellCount=0),this._lastContentCursorRow=this._lastCursorRow=n,this._lastContentCursorCol=this._lastCursorCol=r,this._currentRow+=`\x1B[${a.join(`;`)}m`;let e=this._buffer.getLine(n);e!==void 0&&(e.getCell(r,this._cursorStyle),this._cursorStyleRow=n,this._cursorStyleCol=r)}i?this._nullCellCount+=e.getWidth():(this._nullCellCount>0&&(E(this._cursorStyle,this._backgroundCell)||(this._currentRow+=`\x1B[${this._nullCellCount}X`),this._currentRow+=`\x1B[${this._nullCellCount}C`,this._nullCellCount=0),this._currentRow+=e.getChars(),this._lastContentCursorRow=this._lastCursorRow=n,this._lastContentCursorCol=this._lastCursorCol=r+e.getWidth())}_serializeString(e){let t=this._allRows.length;this._buffer.length-this._firstRow<=this._terminal.rows&&(t=this._lastContentCursorRow+1-this._firstRow,this._lastCursorCol=this._lastContentCursorCol,this._lastCursorRow=this._lastContentCursorRow);let n=``;for(let e=0;e<t;e++)n+=this._allRows[e],e+1<t&&(n+=this._allRowSeparators[e]);if(!e){let e=this._buffer.baseY+this._buffer.cursorY,t=this._buffer.cursorX;(e!==this._lastCursorRow||t!==this._lastCursorCol)&&((e=>{e>0?n+=`\x1B[${e}B`:e<0&&(n+=`\x1B[${-e}A`)})(e-this._lastCursorRow),(e=>{e>0?n+=`\x1B[${e}C`:e<0&&(n+=`\x1B[${-e}D`)})(t-this._lastCursorCol))}let r=this._terminal._core._inputHandler._curAttrData,i=this._diffStyle(r,this._cursorStyle);return i.length>0&&(n+=`\x1B[${i.join(`;`)}m`),n}},re=class{activate(e){this._terminal=e}_serializeBufferByScrollback(e,t,n){let r=t.length,i=n===void 0?r:C(n+e.rows,0,r);return this._serializeBufferByRange(e,t,{start:r-i,end:r-1},!1)}_serializeBufferByRange(e,t,n,r){return new ne(t,e).serialize({start:{x:0,y:typeof n.start==`number`?n.start:n.start.line},end:{x:e.cols,y:typeof n.end==`number`?n.end:n.end.line}},r)}_serializeBufferAsHTML(e,t){let n=e.buffer.active,r=new ie(n,e,t),i=t.onlySelection??!1,a=t.range;if(a)return r.serialize({start:{x:a.startCol,y:(a.startLine,a.startLine)},end:{x:e.cols,y:(a.endLine,a.endLine)}});if(!i){let i=n.length,a=t.scrollback,o=a===void 0?i:C(a+e.rows,0,i);return r.serialize({start:{x:0,y:i-o},end:{x:e.cols,y:i-1}})}let o=this._terminal?.getSelectionPosition();return o===void 0?``:r.serialize({start:{x:o.start.x,y:o.start.y},end:{x:o.end.x,y:o.end.y}})}_serializeModes(e){let t=``,n=e.modes;if(n.applicationCursorKeysMode&&(t+=`\x1B[?1h`),n.applicationKeypadMode&&(t+=`\x1B[?66h`),n.bracketedPasteMode&&(t+=`\x1B[?2004h`),n.insertMode&&(t+=`\x1B[4h`),n.originMode&&(t+=`\x1B[?6h`),n.reverseWraparoundMode&&(t+=`\x1B[?45h`),n.sendFocusMode&&(t+=`\x1B[?1004h`),n.wraparoundMode===!1&&(t+=`\x1B[?7l`),n.mouseTrackingMode!==`none`)switch(n.mouseTrackingMode){case`x10`:t+=`\x1B[?9h`;break;case`vt200`:t+=`\x1B[?1000h`;break;case`drag`:t+=`\x1B[?1002h`;break;case`any`:t+=`\x1B[?1003h`}return t}serialize(e){if(!this._terminal)throw Error(`Cannot use addon until it has been loaded`);let t=e?.range?this._serializeBufferByRange(this._terminal,this._terminal.buffer.normal,e.range,!0):this._serializeBufferByScrollback(this._terminal,this._terminal.buffer.normal,e?.scrollback);if(!e?.excludeAltBuffer&&this._terminal.buffer.active.type===`alternate`){let e=this._serializeBufferByScrollback(this._terminal,this._terminal.buffer.alternate,void 0);t+=`\x1B[?1049h\x1B[H${e}`}return e?.excludeModes||(t+=this._serializeModes(this._terminal)),t}serializeAsHTML(e){if(!this._terminal)throw Error(`Cannot use addon until it has been loaded`);return this._serializeBufferAsHTML(this._terminal,e||{})}dispose(){}},ie=class extends w{constructor(e,t,n){super(e),this._terminal=t,this._options=n,this._currentRow=``,this._htmlContent=``,this._ansiColors=t._core._themeService?t._core._themeService.colors.ansi:ee}_padStart(e,t,n){return t>>=0,n??=` `,e.length>t?e:(t-=e.length,t>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+e)}_beforeSerialize(e,t,n){this._htmlContent+=`<html><body><!--StartFragment--><pre>`;let r=`#000000`,i=`#ffffff`;(this._options.includeGlobalBackground??!1)&&(r=this._terminal.options.theme?.foreground??`#ffffff`,i=this._terminal.options.theme?.background??`#000000`);let a=[];a.push(`color: `+r+`;`),a.push(`background-color: `+i+`;`),a.push(`font-family: `+this._terminal.options.fontFamily+`;`),a.push(`font-size: `+this._terminal.options.fontSize+`px;`),this._htmlContent+=`<div style='`+a.join(` `)+`'>`}_afterSerialize(){this._htmlContent+=`</div>`,this._htmlContent+=`</pre><!--EndFragment--></body></html>`}_rowEnd(e,t){this._htmlContent+=`<div><span>`+this._currentRow+`</span></div>`,this._currentRow=``}_getHexColor(e,t){let n=t?e.getFgColor():e.getBgColor();if(t?e.isFgRGB():e.isBgRGB())return`#`+[n>>16&255,n>>8&255,n&255].map(e=>this._padStart(e.toString(16),2,`0`)).join(``);if(t?e.isFgPalette():e.isBgPalette())return this._ansiColors[n].css}_diffStyle(e,t){let n=[],r=!T(e,t),i=!E(e,t),a=!D(e,t);if(r||i||a){let t=this._getHexColor(e,!0);t&&n.push(`color: `+t+`;`);let r=this._getHexColor(e,!1);return r&&n.push(`background-color: `+r+`;`),e.isInverse()&&n.push(`color: #000000; background-color: #BFBFBF;`),e.isBold()&&n.push(`font-weight: bold;`),e.isUnderline()&&e.isOverline()?n.push(`text-decoration: overline underline;`):e.isUnderline()?n.push(`text-decoration: underline;`):e.isOverline()&&n.push(`text-decoration: overline;`),e.isBlink()&&n.push(`text-decoration: blink;`),e.isInvisible()&&n.push(`visibility: hidden;`),e.isItalic()&&n.push(`font-style: italic;`),e.isDim()&&n.push(`opacity: 0.5;`),e.isStrikethrough()&&n.push(`text-decoration: line-through;`),n}}_nextCell(e,t,n,r){if(e.getWidth()===0)return;let i=e.getChars()===``,a=this._diffStyle(e,t);a&&(this._currentRow+=a.length===0?`</span><span>`:`</span><span style='`+a.join(` `)+`'>`),i?this._currentRow+=` `:this._currentRow+=te(e.getChars())}_serializeString(){return this._htmlContent}},O=[[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]],k=[[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]],A;function ae(e,t){let n=0,r=t.length-1,i;if(e<t[0][0]||e>t[r][1])return!1;for(;r>=n;)if(i=n+r>>1,e>t[i][1])n=i+1;else if(e<t[i][0])r=i-1;else return!0;return!1}var oe=class{constructor(){if(this.version=`6`,!A){A=new Uint8Array(65536),A.fill(1),A[0]=0,A.fill(0,1,32),A.fill(0,127,160),A.fill(2,4352,4448),A[9001]=2,A[9002]=2,A.fill(2,11904,42192),A[12351]=1,A.fill(2,44032,55204),A.fill(2,63744,64256),A.fill(2,65040,65050),A.fill(2,65072,65136),A.fill(2,65280,65377),A.fill(2,65504,65511);for(let e=0;e<O.length;++e)A.fill(0,O[e][0],O[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?A[e]:ae(e,k)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1}charProperties(e,t){let n=this.wcwidth(e),r=n===0&&t!==0;if(r){let e=We.extractWidth(t);e===0?r=!1:e>n&&(n=e)}return We.createPropertyValue(0,n,r)}},se=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?fe.isErrorNoTelemetry(e)?new fe(e.message+`
|
|
3
3
|
|
|
4
4
|
`+e.stack):Error(e.message+`
|
package/dist/web/index.html
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
12
12
|
<meta name="apple-mobile-web-app-title" content="rove" />
|
|
13
13
|
<title>rove</title>
|
|
14
|
-
<script type="module" crossorigin src="/assets/index-
|
|
15
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-kdVc_Zi5.js"></script>
|
|
15
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BVOfppkn.css">
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
|
18
18
|
<div id="root"></div>
|