daiquiri-ui 2025.12.1__py3-none-any.whl → 2026.2.0__py3-none-any.whl

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.
Files changed (143) hide show
  1. daiquiri_ui/__init__.py +0 -1
  2. daiquiri_ui/static/assets/Anchor-0b4a3d33.js +1 -0
  3. daiquiri_ui/static/assets/AutoscaleOption-3cb99678.js +1 -0
  4. daiquiri_ui/static/assets/{BPMVideoStream-7dfae0bb.js → BPMVideoStream-c3e09e8b.js} +1 -1
  5. daiquiri_ui/static/assets/{CanvasEnhancer-16124b1e.js → CanvasEnhancer-dd82c090.js} +1 -1
  6. daiquiri_ui/static/assets/ColorMap-be59ad21.js +1 -0
  7. daiquiri_ui/static/assets/CompositeMap-c93f5466.js +1 -0
  8. daiquiri_ui/static/assets/{ConnectUtils-b8bfa186.js → ConnectUtils-3923fa2f.js} +1 -1
  9. daiquiri_ui/static/assets/{Console-42bf9fd1.js → Console-d0028912.js} +1 -1
  10. daiquiri_ui/static/assets/{Cross-d0a1a410.js → Cross-d5df0df3.js} +1 -1
  11. daiquiri_ui/static/assets/{CrossMarker-2285e102.js → CrossMarker-71cd11cf.js} +2 -2
  12. daiquiri_ui/static/assets/DraggableRect-25d91c7d.js +1 -0
  13. daiquiri_ui/static/assets/DropdownButton-29cc265b.js +1 -0
  14. daiquiri_ui/static/assets/DropdownDetector-5016908a.js +1 -0
  15. daiquiri_ui/static/assets/{Editor-8c26c281.js → Editor-7b500b85.js} +9 -9
  16. daiquiri_ui/static/assets/EditorTree-7fc000d8.js +1 -0
  17. daiquiri_ui/static/assets/H5Viewer-d1305c58.js +1 -0
  18. daiquiri_ui/static/assets/{H5WebCurvePlot-136dfa6f.js → H5WebCurvePlot-61b08211.js} +1 -1
  19. daiquiri_ui/static/assets/HSegment-8d2c001e.js +43 -0
  20. daiquiri_ui/static/assets/HardwareButton-af41c610.js +1 -0
  21. daiquiri_ui/static/assets/Hdf5Plot-bbffc65f.js +1 -0
  22. daiquiri_ui/static/assets/{HistogramDomainSlider-5572e533.js → HistogramDomainSlider-304bdab4.js} +1 -1
  23. daiquiri_ui/static/assets/Image-ee61818a.js +1 -0
  24. daiquiri_ui/static/assets/Label-9d8979b3.js +1 -0
  25. daiquiri_ui/static/assets/{LoadingMessage-e1e479c5.js → LoadingMessage-03b4fa4f.js} +1 -1
  26. daiquiri_ui/static/assets/NewScanButton-0051d220.js +1 -0
  27. daiquiri_ui/static/assets/NewScanButton-57cf0c17.js +1 -0
  28. daiquiri_ui/static/assets/OptionsProcess-da629bfb.js +1 -0
  29. daiquiri_ui/static/assets/ParametersList-2d01832f.js +1 -0
  30. daiquiri_ui/static/assets/RectRoi-3693cc65.js +1 -0
  31. daiquiri_ui/static/assets/RectRuler-1fee3fd8.js +543 -0
  32. daiquiri_ui/static/assets/RulerButton-a95a6035.js +139 -0
  33. daiquiri_ui/static/assets/SampleDCList-dce0bd2b.js +1 -0
  34. daiquiri_ui/static/assets/SampleRegistration-544aa4bd.js +1 -0
  35. daiquiri_ui/static/assets/SavingButton-c3efc92c.js +1 -0
  36. daiquiri_ui/static/assets/ScanDataService-16f29ecd.js +1 -0
  37. daiquiri_ui/static/assets/ScanPlot0d-67c76bfe.js +1 -0
  38. daiquiri_ui/static/assets/ScanPlot0dValue-c0dd01b5.js +1 -0
  39. daiquiri_ui/static/assets/ScanPlot1d-3c930b95.js +1 -0
  40. daiquiri_ui/static/assets/ScanPlot1d-ee33c98b.js +1 -0
  41. daiquiri_ui/static/assets/{ScanPlot2d-c49ba2bc.js → ScanPlot2d-af57d8ad.js} +1 -1
  42. daiquiri_ui/static/assets/{ScanTable-4e677d2b.js → ScanTable-bc13760e.js} +1 -1
  43. daiquiri_ui/static/assets/ScanValue-00aab91b.js +1 -0
  44. daiquiri_ui/static/assets/SceneScale-e2a42af2.js +1 -0
  45. daiquiri_ui/static/assets/SchemaForm-7d897a32.js +1 -0
  46. daiquiri_ui/static/assets/{ScreenScale-ae820d30.js → ScreenScale-b2417934.js} +1 -1
  47. daiquiri_ui/static/assets/{SelectionPoint-d30865f3.js → SelectionPoint-a2cb4dfc.js} +1 -1
  48. daiquiri_ui/static/assets/{StackedNameState-3f198174.js → StackedNameState-4e8dc742.js} +1 -1
  49. daiquiri_ui/static/assets/Statistics.worker-54a0d965.js +46 -0
  50. daiquiri_ui/static/assets/{Synoptic-0f3dac61.js → Synoptic-8a3c67f3.js} +5 -5
  51. daiquiri_ui/static/assets/TomoAlign-b80a68c3.js +7 -0
  52. daiquiri_ui/static/assets/TomoBeamShaping-65a115e9.js +1 -0
  53. daiquiri_ui/static/assets/TomoDetector-500d46af.js +1 -0
  54. daiquiri_ui/static/assets/TomoDetector-e04a5a8b.js +1 -0
  55. daiquiri_ui/static/assets/TomoDetectorView-952499e6.js +64 -0
  56. daiquiri_ui/static/assets/TomoHolo-db2c8449.js +1 -0
  57. daiquiri_ui/static/assets/TomoPusherView-a50e2acd.js +1 -0
  58. daiquiri_ui/static/assets/TomoReconstructedSinogram-deee0779.js +191 -0
  59. daiquiri_ui/static/assets/TomoScanInfo-972a690b.js +1 -0
  60. daiquiri_ui/static/assets/{TomoScanList-d9bea762.js → TomoScanList-ede05c2a.js} +1 -1
  61. daiquiri_ui/static/assets/TomoService-e9741d6a.js +1 -0
  62. daiquiri_ui/static/assets/TomoSinogram-dce5808e.js +1 -0
  63. daiquiri_ui/static/assets/TomoTiling-04701bb7.js +69 -0
  64. daiquiri_ui/static/assets/TwoD-fee9523f.js +3 -0
  65. daiquiri_ui/static/assets/TwoDObject-2f30deac.js +1 -0
  66. daiquiri_ui/static/assets/TwoDObjectList-458e4824.js +1 -0
  67. daiquiri_ui/static/assets/{UseMouseModeInteraction-fc86164b.js → UseMouseModeInteraction-51c6269c.js} +1 -1
  68. daiquiri_ui/static/assets/VLineRoi-b38fe841.js +1 -0
  69. daiquiri_ui/static/assets/{VSegment-cf1ceafc.js → VSegment-f0d42c9a.js} +2 -2
  70. daiquiri_ui/static/assets/VSegmentRoi-d5e035cc.js +1 -0
  71. daiquiri_ui/static/assets/{VideoStream-4b855f43.js → VideoStream-a5200b21.js} +1 -1
  72. daiquiri_ui/static/assets/{VisViewpointRestore-097e2edf.js → VisViewpointRestore-4aa338ea.js} +3 -3
  73. daiquiri_ui/static/assets/{WorldScale-6e6ac5b5.js → WorldScale-23bd1dfb.js} +1 -1
  74. daiquiri_ui/static/assets/{ZoomPanCanvas-8f437b75.js → ZoomPanCanvas-23b61dbb.js} +1 -1
  75. daiquiri_ui/static/assets/{colormap-344855f8.js → colormap-6e43299c.js} +1 -1
  76. daiquiri_ui/static/assets/fontawesomemore-webfont-6ae56ae3.woff2 +0 -0
  77. daiquiri_ui/static/assets/{geometry-1fc3c1a0.js → geometry-cd448ec1.js} +1 -1
  78. daiquiri_ui/static/assets/hooks-171c0765.js +1 -0
  79. daiquiri_ui/static/assets/{hooks-cf59b64f.js → hooks-e0d9229c.js} +1 -1
  80. daiquiri_ui/static/assets/index-779a56ef.css +9 -0
  81. daiquiri_ui/static/assets/{index-a0f7b98c.js → index-a9bb7636.js} +7 -7
  82. daiquiri_ui/static/assets/index-b3c0133a.js +3576 -0
  83. daiquiri_ui/static/assets/{plotly-basic-889d4727.js → plotly-basic-ccc5794d.js} +2 -2
  84. daiquiri_ui/static/assets/{plotly-gl2d-e2e89493.js → plotly-gl2d-345cb34a.js} +2 -2
  85. daiquiri_ui/static/assets/store-5d136a2c.js +1 -0
  86. daiquiri_ui/static/assets/{types-46afffa0.js → types-c366a377.js} +1 -1
  87. daiquiri_ui/static/index.html +2 -2
  88. daiquiri_ui/static/meta.json +1 -1
  89. {daiquiri_ui-2025.12.1.dist-info → daiquiri_ui-2026.2.0.dist-info}/METADATA +1 -1
  90. daiquiri_ui-2026.2.0.dist-info/RECORD +134 -0
  91. {daiquiri_ui-2025.12.1.dist-info → daiquiri_ui-2026.2.0.dist-info}/WHEEL +1 -1
  92. daiquiri_ui/static/assets/Anchor-3fa6d19c.js +0 -1
  93. daiquiri_ui/static/assets/AutoscaleOption-d8d0ca8d.js +0 -1
  94. daiquiri_ui/static/assets/DraggableRect-db33e02e.js +0 -1
  95. daiquiri_ui/static/assets/DropdownButton-d066ece0.js +0 -1
  96. daiquiri_ui/static/assets/DropdownDetector-4ddfa946.js +0 -1
  97. daiquiri_ui/static/assets/EditorTree-b390ece1.js +0 -1
  98. daiquiri_ui/static/assets/H5Viewer-bbcf29f5.js +0 -1
  99. daiquiri_ui/static/assets/HSegment-8966b13f.js +0 -43
  100. daiquiri_ui/static/assets/HardwareButton-2e65150e.js +0 -1
  101. daiquiri_ui/static/assets/Hdf5Plot-3b35de75.js +0 -1
  102. daiquiri_ui/static/assets/Image-1ff7dca9.js +0 -1
  103. daiquiri_ui/static/assets/Label-3c95fb14.js +0 -1
  104. daiquiri_ui/static/assets/NewScanButton-25f65a41.js +0 -1
  105. daiquiri_ui/static/assets/NewScanButton-f40700e9.js +0 -1
  106. daiquiri_ui/static/assets/OptionsProcess-6fd11ce7.js +0 -1
  107. daiquiri_ui/static/assets/ParametersList-c91938bf.js +0 -1
  108. daiquiri_ui/static/assets/RectRoi-19381507.js +0 -1
  109. daiquiri_ui/static/assets/RulerButton-5c2020aa.js +0 -139
  110. daiquiri_ui/static/assets/SampleDCList-64bd9100.js +0 -1
  111. daiquiri_ui/static/assets/SampleRegistration-a354b270.js +0 -1
  112. daiquiri_ui/static/assets/SavingButton-c1839199.js +0 -1
  113. daiquiri_ui/static/assets/ScanPlot0d-d180ecd3.js +0 -1
  114. daiquiri_ui/static/assets/ScanPlot0dValue-0e33cb2c.js +0 -1
  115. daiquiri_ui/static/assets/ScanPlot1d-38bddb23.js +0 -1
  116. daiquiri_ui/static/assets/ScanPlot1d-543e4ac4.js +0 -1
  117. daiquiri_ui/static/assets/ScanValue-a303a86d.js +0 -1
  118. daiquiri_ui/static/assets/SceneScale-33094e68.js +0 -1
  119. daiquiri_ui/static/assets/SchemaForm-b27ccd55.js +0 -1
  120. daiquiri_ui/static/assets/TomoAlign-03e37551.js +0 -4
  121. daiquiri_ui/static/assets/TomoBeamShaping-6ec15838.js +0 -1
  122. daiquiri_ui/static/assets/TomoDetector-aead72a5.js +0 -1
  123. daiquiri_ui/static/assets/TomoDetectorView-aadf1539.js +0 -64
  124. daiquiri_ui/static/assets/TomoHolo-7eb20a1e.js +0 -1
  125. daiquiri_ui/static/assets/TomoReconstructedSinogram-53bbfb3b.js +0 -191
  126. daiquiri_ui/static/assets/TomoScanInfo-5ca06333.js +0 -1
  127. daiquiri_ui/static/assets/TomoSinogram-ecd9dca2.js +0 -1
  128. daiquiri_ui/static/assets/TomoTiling-1b9f4bf4.js +0 -69
  129. daiquiri_ui/static/assets/TwoD-ca5cd677.js +0 -3
  130. daiquiri_ui/static/assets/TwoDObject-86b91ffb.js +0 -1
  131. daiquiri_ui/static/assets/TwoDObjectList-143af6e7.js +0 -1
  132. daiquiri_ui/static/assets/VLineRoi-5130fa5a.js +0 -1
  133. daiquiri_ui/static/assets/colors-2395de5a.js +0 -1
  134. daiquiri_ui/static/assets/fontawesomemore-webfont-97d0220a.woff2 +0 -0
  135. daiquiri_ui/static/assets/hooks-457bfe32.js +0 -1
  136. daiquiri_ui/static/assets/index-0751d893.js +0 -3576
  137. daiquiri_ui/static/assets/index-f085dfca.css +0 -9
  138. daiquiri_ui/static/assets/store-c3eddf46.js +0 -1
  139. daiquiri_ui/static/resources/shaders/compare.frag.glsl +0 -386
  140. daiquiri_ui/static/resources/shaders/compare.vert.glsl +0 -11
  141. daiquiri_ui-2025.12.1.dist-info/RECORD +0 -128
  142. {daiquiri_ui-2025.12.1.dist-info → daiquiri_ui-2026.2.0.dist-info}/licenses/LICENSE +0 -0
  143. {daiquiri_ui-2025.12.1.dist-info → daiquiri_ui-2026.2.0.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- import{j as _r,p as wr,E as Lr,r as gr,dB as mr,c as xr,z as Er,q as Rr}from"./index-0751d893.js";var Cr={exports:{}};(function(Pe,We){(function(pe,ye){Pe.exports=ye()})(self,function(){return(()=>{var pe={4567:function(N,p,x){var c,_=this&&this.__extends||(c=function(t,e){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},c(t,e)},function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}c(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(p,"__esModule",{value:!0}),p.AccessibilityManager=void 0;var d=x(9042),l=x(6114),g=x(9924),v=x(3656),s=x(844),o=x(5596),h=x(9631),a=function(t){function e(r,i){var n=t.call(this)||this;n._terminal=r,n._renderService=i,n._liveRegionLineCount=0,n._charsToConsume=[],n._charsToAnnounce="",n._accessibilityTreeRoot=document.createElement("div"),n._accessibilityTreeRoot.classList.add("xterm-accessibility"),n._accessibilityTreeRoot.tabIndex=0,n._rowContainer=document.createElement("div"),n._rowContainer.setAttribute("role","list"),n._rowContainer.classList.add("xterm-accessibility-tree"),n._rowElements=[];for(var f=0;f<n._terminal.rows;f++)n._rowElements[f]=n._createAccessibilityTreeNode(),n._rowContainer.appendChild(n._rowElements[f]);if(n._topBoundaryFocusListener=function(u){return n._onBoundaryFocus(u,0)},n._bottomBoundaryFocusListener=function(u){return n._onBoundaryFocus(u,1)},n._rowElements[0].addEventListener("focus",n._topBoundaryFocusListener),n._rowElements[n._rowElements.length-1].addEventListener("focus",n._bottomBoundaryFocusListener),n._refreshRowsDimensions(),n._accessibilityTreeRoot.appendChild(n._rowContainer),n._renderRowsDebouncer=new g.TimeBasedDebouncer(n._renderRows.bind(n)),n._refreshRows(),n._liveRegion=document.createElement("div"),n._liveRegion.classList.add("live-region"),n._liveRegion.setAttribute("aria-live","assertive"),n._accessibilityTreeRoot.appendChild(n._liveRegion),!n._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return n._terminal.element.insertAdjacentElement("afterbegin",n._accessibilityTreeRoot),n.register(n._renderRowsDebouncer),n.register(n._terminal.onResize(function(u){return n._onResize(u.rows)})),n.register(n._terminal.onRender(function(u){return n._refreshRows(u.start,u.end)})),n.register(n._terminal.onScroll(function(){return n._refreshRows()})),n.register(n._terminal.onA11yChar(function(u){return n._onChar(u)})),n.register(n._terminal.onLineFeed(function(){return n._onChar(`
1
+ import{j as _r,G as wr,Z as Lr,r as gr,dM as mr,c as xr,V as Er,H as Rr}from"./index-b3c0133a.js";var Cr={exports:{}};(function(Pe,We){(function(pe,ye){Pe.exports=ye()})(self,function(){return(()=>{var pe={4567:function(N,p,x){var c,_=this&&this.__extends||(c=function(t,e){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},c(t,e)},function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}c(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(p,"__esModule",{value:!0}),p.AccessibilityManager=void 0;var d=x(9042),l=x(6114),g=x(9924),v=x(3656),s=x(844),o=x(5596),h=x(9631),a=function(t){function e(r,i){var n=t.call(this)||this;n._terminal=r,n._renderService=i,n._liveRegionLineCount=0,n._charsToConsume=[],n._charsToAnnounce="",n._accessibilityTreeRoot=document.createElement("div"),n._accessibilityTreeRoot.classList.add("xterm-accessibility"),n._accessibilityTreeRoot.tabIndex=0,n._rowContainer=document.createElement("div"),n._rowContainer.setAttribute("role","list"),n._rowContainer.classList.add("xterm-accessibility-tree"),n._rowElements=[];for(var f=0;f<n._terminal.rows;f++)n._rowElements[f]=n._createAccessibilityTreeNode(),n._rowContainer.appendChild(n._rowElements[f]);if(n._topBoundaryFocusListener=function(u){return n._onBoundaryFocus(u,0)},n._bottomBoundaryFocusListener=function(u){return n._onBoundaryFocus(u,1)},n._rowElements[0].addEventListener("focus",n._topBoundaryFocusListener),n._rowElements[n._rowElements.length-1].addEventListener("focus",n._bottomBoundaryFocusListener),n._refreshRowsDimensions(),n._accessibilityTreeRoot.appendChild(n._rowContainer),n._renderRowsDebouncer=new g.TimeBasedDebouncer(n._renderRows.bind(n)),n._refreshRows(),n._liveRegion=document.createElement("div"),n._liveRegion.classList.add("live-region"),n._liveRegion.setAttribute("aria-live","assertive"),n._accessibilityTreeRoot.appendChild(n._liveRegion),!n._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return n._terminal.element.insertAdjacentElement("afterbegin",n._accessibilityTreeRoot),n.register(n._renderRowsDebouncer),n.register(n._terminal.onResize(function(u){return n._onResize(u.rows)})),n.register(n._terminal.onRender(function(u){return n._refreshRows(u.start,u.end)})),n.register(n._terminal.onScroll(function(){return n._refreshRows()})),n.register(n._terminal.onA11yChar(function(u){return n._onChar(u)})),n.register(n._terminal.onLineFeed(function(){return n._onChar(`
2
2
  `)})),n.register(n._terminal.onA11yTab(function(u){return n._onTab(u)})),n.register(n._terminal.onKey(function(u){return n._onKey(u.key)})),n.register(n._terminal.onBlur(function(){return n._clearLiveRegion()})),n.register(n._renderService.onDimensionsChange(function(){return n._refreshRowsDimensions()})),n._screenDprMonitor=new o.ScreenDprMonitor,n.register(n._screenDprMonitor),n._screenDprMonitor.setListener(function(){return n._refreshRowsDimensions()}),n.register((0,v.addDisposableDomListener)(window,"resize",function(){return n._refreshRowsDimensions()})),n}return _(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),(0,h.removeElementFromParent)(this._accessibilityTreeRoot),this._rowElements.length=0},e.prototype._onBoundaryFocus=function(r,i){var n=r.target,f=this._rowElements[i===0?1:this._rowElements.length-2];if(n.getAttribute("aria-posinset")!==(i===0?"1":""+this._terminal.buffer.lines.length)&&r.relatedTarget===f){var u,m;if(i===0?(u=n,m=this._rowElements.pop(),this._rowContainer.removeChild(m)):(u=this._rowElements.shift(),m=n,this._rowContainer.removeChild(u)),u.removeEventListener("focus",this._topBoundaryFocusListener),m.removeEventListener("focus",this._bottomBoundaryFocusListener),i===0){var S=this._createAccessibilityTreeNode();this._rowElements.unshift(S),this._rowContainer.insertAdjacentElement("afterbegin",S)}else S=this._createAccessibilityTreeNode(),this._rowElements.push(S),this._rowContainer.appendChild(S);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(i===0?-1:1),this._rowElements[i===0?1:this._rowElements.length-2].focus(),r.preventDefault(),r.stopImmediatePropagation()}},e.prototype._onResize=function(r){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var i=this._rowContainer.children.length;i<this._terminal.rows;i++)this._rowElements[i]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[i]);for(;this._rowElements.length>r;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},e.prototype._createAccessibilityTreeNode=function(){var r=document.createElement("div");return r.setAttribute("role","listitem"),r.tabIndex=-1,this._refreshRowDimensions(r),r},e.prototype._onTab=function(r){for(var i=0;i<r;i++)this._onChar(" ")},e.prototype._onChar=function(r){var i=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==r&&(this._charsToAnnounce+=r):this._charsToAnnounce+=r,r===`
3
3
  `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=d.tooMuchOutput)),l.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){i._accessibilityTreeRoot.appendChild(i._liveRegion)},0))},e.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,l.isMac&&(0,h.removeElementFromParent)(this._liveRegion)},e.prototype._onKey=function(r){this._clearLiveRegion(),this._charsToConsume.push(r)},e.prototype._refreshRows=function(r,i){this._renderRowsDebouncer.refresh(r,i,this._terminal.rows)},e.prototype._renderRows=function(r,i){for(var n=this._terminal.buffer,f=n.lines.length.toString(),u=r;u<=i;u++){var m=n.translateBufferLineToString(n.ydisp+u,!0),S=(n.ydisp+u+1).toString(),y=this._rowElements[u];y&&(m.length===0?y.innerText=" ":y.textContent=m,y.setAttribute("aria-posinset",S),y.setAttribute("aria-setsize",f))}this._announceCharacters()},e.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var r=0;r<this._terminal.rows;r++)this._refreshRowDimensions(this._rowElements[r])}},e.prototype._refreshRowDimensions=function(r){r.style.height=this._renderService.dimensions.actualCellHeight+"px"},e.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},e}(s.Disposable);p.AccessibilityManager=a},3614:(N,p)=>{function x(l){return l.replace(/\r?\n/g,"\r")}function c(l,g){return g?"\x1B[200~"+l+"\x1B[201~":l}function _(l,g,v){l=c(l=x(l),v.decPrivateModes.bracketedPasteMode),v.triggerDataEvent(l,!0),g.value=""}function d(l,g,v){var s=v.getBoundingClientRect(),o=l.clientX-s.left-10,h=l.clientY-s.top-10;g.style.width="20px",g.style.height="20px",g.style.left=o+"px",g.style.top=h+"px",g.style.zIndex="1000",g.focus()}Object.defineProperty(p,"__esModule",{value:!0}),p.rightClickHandler=p.moveTextAreaUnderMouseCursor=p.paste=p.handlePasteEvent=p.copyHandler=p.bracketTextForPaste=p.prepareTextForTerminal=void 0,p.prepareTextForTerminal=x,p.bracketTextForPaste=c,p.copyHandler=function(l,g){l.clipboardData&&l.clipboardData.setData("text/plain",g.selectionText),l.preventDefault()},p.handlePasteEvent=function(l,g,v){l.stopPropagation(),l.clipboardData&&_(l.clipboardData.getData("text/plain"),g,v)},p.paste=_,p.moveTextAreaUnderMouseCursor=d,p.rightClickHandler=function(l,g,v,s,o){d(l,g,v),o&&s.rightClickSelect(l),g.value=s.selectionText,g.select()}},7239:(N,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ColorContrastCache=void 0;var x=function(){function c(){this._color={},this._rgba={}}return c.prototype.clear=function(){this._color={},this._rgba={}},c.prototype.setCss=function(_,d,l){this._rgba[_]||(this._rgba[_]={}),this._rgba[_][d]=l},c.prototype.getCss=function(_,d){return this._rgba[_]?this._rgba[_][d]:void 0},c.prototype.setColor=function(_,d,l){this._color[_]||(this._color[_]={}),this._color[_][d]=l},c.prototype.getColor=function(_,d){return this._color[_]?this._color[_][d]:void 0},c}();p.ColorContrastCache=x},5680:function(N,p,x){var c=this&&this.__read||function(a,t){var e=typeof Symbol=="function"&&a[Symbol.iterator];if(!e)return a;var r,i,n=e.call(a),f=[];try{for(;(t===void 0||t-- >0)&&!(r=n.next()).done;)f.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(i)throw i.error}}return f};Object.defineProperty(p,"__esModule",{value:!0}),p.ColorManager=p.DEFAULT_ANSI_COLORS=void 0;var _=x(8055),d=x(7239),l=_.css.toColor("#ffffff"),g=_.css.toColor("#000000"),v=_.css.toColor("#ffffff"),s=_.css.toColor("#000000"),o={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};p.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var a=[_.css.toColor("#2e3436"),_.css.toColor("#cc0000"),_.css.toColor("#4e9a06"),_.css.toColor("#c4a000"),_.css.toColor("#3465a4"),_.css.toColor("#75507b"),_.css.toColor("#06989a"),_.css.toColor("#d3d7cf"),_.css.toColor("#555753"),_.css.toColor("#ef2929"),_.css.toColor("#8ae234"),_.css.toColor("#fce94f"),_.css.toColor("#729fcf"),_.css.toColor("#ad7fa8"),_.css.toColor("#34e2e2"),_.css.toColor("#eeeeec")],t=[0,95,135,175,215,255],e=0;e<216;e++){var r=t[e/36%6|0],i=t[e/6%6|0],n=t[e%6];a.push({css:_.channels.toCss(r,i,n),rgba:_.channels.toRgba(r,i,n)})}for(e=0;e<24;e++){var f=8+10*e;a.push({css:_.channels.toCss(f,f,f),rgba:_.channels.toRgba(f,f,f)})}return a}());var h=function(){function a(t,e){this.allowTransparency=e;var r=t.createElement("canvas");r.width=1,r.height=1;var i=r.getContext("2d");if(!i)throw new Error("Could not get rendering context");this._ctx=i,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new d.ColorContrastCache,this.colors={foreground:l,background:g,cursor:v,cursorAccent:s,selectionTransparent:o,selectionOpaque:_.color.blend(g,o),selectionForeground:void 0,ansi:p.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return a.prototype.onOptionsChange=function(t){t==="minimumContrastRatio"&&this._contrastCache.clear()},a.prototype.setTheme=function(t){t===void 0&&(t={}),this.colors.foreground=this._parseColor(t.foreground,l),this.colors.background=this._parseColor(t.background,g),this.colors.cursor=this._parseColor(t.cursor,v,!0),this.colors.cursorAccent=this._parseColor(t.cursorAccent,s,!0),this.colors.selectionTransparent=this._parseColor(t.selection,o,!0),this.colors.selectionOpaque=_.color.blend(this.colors.background,this.colors.selectionTransparent);var e={css:"",rgba:0};this.colors.selectionForeground=t.selectionForeground?this._parseColor(t.selectionForeground,e):void 0,this.colors.selectionForeground===e&&(this.colors.selectionForeground=void 0),_.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=_.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(t.black,p.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(t.red,p.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(t.green,p.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(t.yellow,p.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(t.blue,p.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(t.magenta,p.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(t.cyan,p.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(t.white,p.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(t.brightBlack,p.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(t.brightRed,p.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(t.brightGreen,p.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(t.brightYellow,p.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(t.brightBlue,p.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(t.brightMagenta,p.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(t.brightCyan,p.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(t.brightWhite,p.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},a.prototype.restoreColor=function(t){if(t!==void 0)switch(t){case 256:this.colors.foreground=this._restoreColors.foreground;break;case 257:this.colors.background=this._restoreColors.background;break;case 258:this.colors.cursor=this._restoreColors.cursor;break;default:this.colors.ansi[t]=this._restoreColors.ansi[t]}else for(var e=0;e<this._restoreColors.ansi.length;++e)this.colors.ansi[e]=this._restoreColors.ansi[e]},a.prototype._updateRestoreColors=function(){this._restoreColors={foreground:this.colors.foreground,background:this.colors.background,cursor:this.colors.cursor,ansi:this.colors.ansi.slice()}},a.prototype._parseColor=function(t,e,r){if(r===void 0&&(r=this.allowTransparency),t===void 0)return e;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=t,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+t+" is invalid using fallback "+e.css),e;this._ctx.fillRect(0,0,1,1);var i=this._ctx.getImageData(0,0,1,1).data;if(i[3]!==255){if(!r)return console.warn("Color: "+t+" is using transparency, but allowTransparency is false. Using fallback "+e.css+"."),e;var n=c(this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(b){return Number(b)}),4),f=n[0],u=n[1],m=n[2],S=n[3],y=Math.round(255*S);return{rgba:_.channels.toRgba(f,u,m,y),css:t}}return{css:this._ctx.fillStyle,rgba:_.channels.toRgba(i[0],i[1],i[2],i[3])}},a}();p.ColorManager=h},9631:function(N,p){var x=this&&this.__values||function(c){var _=typeof Symbol=="function"&&Symbol.iterator,d=_&&c[_],l=0;if(d)return d.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&l>=c.length&&(c=void 0),{value:c&&c[l++],done:!c}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(p,"__esModule",{value:!0}),p.removeElementFromParent=void 0,p.removeElementFromParent=function(){for(var c,_,d,l=[],g=0;g<arguments.length;g++)l[g]=arguments[g];try{for(var v=x(l),s=v.next();!s.done;s=v.next()){var o=s.value;(d=o==null?void 0:o.parentElement)===null||d===void 0||d.removeChild(o)}}catch(h){c={error:h}}finally{try{s&&!s.done&&(_=v.return)&&_.call(v)}finally{if(c)throw c.error}}}},3656:(N,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.addDisposableDomListener=void 0,p.addDisposableDomListener=function(x,c,_,d){x.addEventListener(c,_,d);var l=!1;return{dispose:function(){l||(l=!0,x.removeEventListener(c,_,d))}}}},3551:function(N,p,x){var c=this&&this.__decorate||function(s,o,h,a){var t,e=arguments.length,r=e<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,h):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,o,h,a);else for(var i=s.length-1;i>=0;i--)(t=s[i])&&(r=(e<3?t(r):e>3?t(o,h,r):t(o,h))||r);return e>3&&r&&Object.defineProperty(o,h,r),r},_=this&&this.__param||function(s,o){return function(h,a){o(h,a,s)}};Object.defineProperty(p,"__esModule",{value:!0}),p.MouseZone=p.Linkifier=void 0;var d=x(8460),l=x(2585),g=function(){function s(o,h,a){this._bufferService=o,this._logService=h,this._unicodeService=a,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new d.EventEmitter,this._onHideLinkUnderline=new d.EventEmitter,this._onLinkTooltip=new d.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(s.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),s.prototype.attachToDom=function(o,h){this._element=o,this._mouseZoneManager=h},s.prototype.linkifyRows=function(o,h){var a=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=o,this._rowsToLinkify.end=h):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,o),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,h)),this._mouseZoneManager.clearAll(o,h),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return a._linkifyRows()},s._timeBeforeLatency))},s.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var o=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var h=o.ydisp+this._rowsToLinkify.start;if(!(h>=o.lines.length)){for(var a=o.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,t=Math.ceil(2e3/this._bufferService.cols),e=this._bufferService.buffer.iterator(!1,h,a,t,t);e.hasNext();)for(var r=e.next(),i=0;i<this._linkMatchers.length;i++)this._doLinkifyRow(r.range.first,r.content,this._linkMatchers[i]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},s.prototype.registerLinkMatcher=function(o,h,a){if(a===void 0&&(a={}),!h)throw new Error("handler must be defined");var t={id:this._nextLinkMatcherId++,regex:o,handler:h,matchIndex:a.matchIndex,validationCallback:a.validationCallback,hoverTooltipCallback:a.tooltipCallback,hoverLeaveCallback:a.leaveCallback,willLinkActivate:a.willLinkActivate,priority:a.priority||0};return this._addLinkMatcherToList(t),t.id},s.prototype._addLinkMatcherToList=function(o){if(this._linkMatchers.length!==0){for(var h=this._linkMatchers.length-1;h>=0;h--)if(o.priority<=this._linkMatchers[h].priority)return void this._linkMatchers.splice(h+1,0,o);this._linkMatchers.splice(0,0,o)}else this._linkMatchers.push(o)},s.prototype.deregisterLinkMatcher=function(o){for(var h=0;h<this._linkMatchers.length;h++)if(this._linkMatchers[h].id===o)return this._linkMatchers.splice(h,1),!0;return!1},s.prototype._doLinkifyRow=function(o,h,a){for(var t,e=this,r=new RegExp(a.regex.source,(a.regex.flags||"")+"g"),i=-1,n=function(){var u=t[typeof a.matchIndex!="number"?0:a.matchIndex];if(!u)return f._logService.debug("match found without corresponding matchIndex",t,a),"break";if(i=h.indexOf(u,i+1),r.lastIndex=i+u.length,i<0)return"break";var m=f._bufferService.buffer.stringIndexToBufferIndex(o,i);if(m[0]<0)return"break";var S=f._bufferService.buffer.lines.get(m[0]);if(!S)return"break";var y=S.getFg(m[1]),b=y?y>>9&511:void 0;a.validationCallback?a.validationCallback(u,function(C){e._rowsTimeoutId||C&&e._addLink(m[1],m[0]-e._bufferService.buffer.ydisp,u,a,b)}):f._addLink(m[1],m[0]-f._bufferService.buffer.ydisp,u,a,b)},f=this;(t=r.exec(h))!==null&&n()!=="break";);},s.prototype._addLink=function(o,h,a,t,e){var r=this;if(this._mouseZoneManager&&this._element){var i=this._unicodeService.getStringCellWidth(a),n=o%this._bufferService.cols,f=h+Math.floor(o/this._bufferService.cols),u=(n+i)%this._bufferService.cols,m=f+Math.floor((n+i)/this._bufferService.cols);u===0&&(u=this._bufferService.cols,m--),this._mouseZoneManager.add(new v(n+1,f+1,u+1,m+1,function(S){if(t.handler)return t.handler(S,a);var y=window.open();y?(y.opener=null,y.location.href=a):console.warn("Opening link blocked as opener could not be cleared")},function(){r._onShowLinkUnderline.fire(r._createLinkHoverEvent(n,f,u,m,e)),r._element.classList.add("xterm-cursor-pointer")},function(S){r._onLinkTooltip.fire(r._createLinkHoverEvent(n,f,u,m,e)),t.hoverTooltipCallback&&t.hoverTooltipCallback(S,a,{start:{x:n,y:f},end:{x:u,y:m}})},function(){r._onHideLinkUnderline.fire(r._createLinkHoverEvent(n,f,u,m,e)),r._element.classList.remove("xterm-cursor-pointer"),t.hoverLeaveCallback&&t.hoverLeaveCallback()},function(S){return!t.willLinkActivate||t.willLinkActivate(S,a)}))}},s.prototype._createLinkHoverEvent=function(o,h,a,t,e){return{x1:o,y1:h,x2:a,y2:t,cols:this._bufferService.cols,fg:e}},s._timeBeforeLatency=200,s=c([_(0,l.IBufferService),_(1,l.ILogService),_(2,l.IUnicodeService)],s)}();p.Linkifier=g;var v=function(s,o,h,a,t,e,r,i,n){this.x1=s,this.y1=o,this.x2=h,this.y2=a,this.clickCallback=t,this.hoverCallback=e,this.tooltipCallback=r,this.leaveCallback=i,this.willLinkActivate=n};p.MouseZone=v},6465:function(N,p,x){var c,_=this&&this.__extends||(c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var f in n)Object.prototype.hasOwnProperty.call(n,f)&&(i[f]=n[f])},c(e,r)},function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=e}c(e,r),e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}),d=this&&this.__decorate||function(e,r,i,n){var f,u=arguments.length,m=u<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,i):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(e,r,i,n);else for(var S=e.length-1;S>=0;S--)(f=e[S])&&(m=(u<3?f(m):u>3?f(r,i,m):f(r,i))||m);return u>3&&m&&Object.defineProperty(r,i,m),m},l=this&&this.__param||function(e,r){return function(i,n){r(i,n,e)}},g=this&&this.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,i=r&&e[r],n=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},v=this&&this.__read||function(e,r){var i=typeof Symbol=="function"&&e[Symbol.iterator];if(!i)return e;var n,f,u=i.call(e),m=[];try{for(;(r===void 0||r-- >0)&&!(n=u.next()).done;)m.push(n.value)}catch(S){f={error:S}}finally{try{n&&!n.done&&(i=u.return)&&i.call(u)}finally{if(f)throw f.error}}return m};Object.defineProperty(p,"__esModule",{value:!0}),p.Linkifier2=void 0;var s=x(2585),o=x(8460),h=x(844),a=x(3656),t=function(e){function r(i){var n=e.call(this)||this;return n._bufferService=i,n._linkProviders=[],n._linkCacheDisposables=[],n._isMouseOut=!0,n._activeLine=-1,n._onShowLinkUnderline=n.register(new o.EventEmitter),n._onHideLinkUnderline=n.register(new o.EventEmitter),n.register((0,h.getDisposeArrayDisposable)(n._linkCacheDisposables)),n}return _(r,e),Object.defineProperty(r.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),r.prototype.registerLinkProvider=function(i){var n=this;return this._linkProviders.push(i),{dispose:function(){var f=n._linkProviders.indexOf(i);f!==-1&&n._linkProviders.splice(f,1)}}},r.prototype.attachToDom=function(i,n,f){var u=this;this._element=i,this._mouseService=n,this._renderService=f,this.register((0,a.addDisposableDomListener)(this._element,"mouseleave",function(){u._isMouseOut=!0,u._clearCurrentLink()})),this.register((0,a.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,a.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,a.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))},r.prototype._onMouseMove=function(i){if(this._lastMouseEvent=i,this._element&&this._mouseService){var n=this._positionFromMouseEvent(i,this._element,this._mouseService);if(n){this._isMouseOut=!1;for(var f=i.composedPath(),u=0;u<f.length;u++){var m=f[u];if(m.classList.contains("xterm"))break;if(m.classList.contains("xterm-hover"))return}this._lastBufferCell&&n.x===this._lastBufferCell.x&&n.y===this._lastBufferCell.y||(this._onHover(n),this._lastBufferCell=n)}}},r.prototype._onHover=function(i){if(this._activeLine!==i.y)return this._clearCurrentLink(),void this._askForLink(i,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,i)||(this._clearCurrentLink(),this._askForLink(i,!0))},r.prototype._askForLink=function(i,n){var f,u,m,S,y=this;this._activeProviderReplies&&n||((m=this._activeProviderReplies)===null||m===void 0||m.forEach(function(L){L==null||L.forEach(function(A){A.link.dispose&&A.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=i.y);var b=!1,C=function(L,A){n?!((S=M._activeProviderReplies)===null||S===void 0)&&S.get(L)&&(b=M._checkLinkProviderResult(L,i,b)):A.provideLinks(i.y,function(T){var W,z;if(!y._isMouseOut){var j=T==null?void 0:T.map(function(K){return{link:K}});(W=y._activeProviderReplies)===null||W===void 0||W.set(L,j),b=y._checkLinkProviderResult(L,i,b),((z=y._activeProviderReplies)===null||z===void 0?void 0:z.size)===y._linkProviders.length&&y._removeIntersectingLinks(i.y,y._activeProviderReplies)}})},M=this;try{for(var w=g(this._linkProviders.entries()),R=w.next();!R.done;R=w.next()){var E=v(R.value,2);C(E[0],E[1])}}catch(L){f={error:L}}finally{try{R&&!R.done&&(u=w.return)&&u.call(w)}finally{if(f)throw f.error}}},r.prototype._removeIntersectingLinks=function(i,n){for(var f=new Set,u=0;u<n.size;u++){var m=n.get(u);if(m)for(var S=0;S<m.length;S++)for(var y=m[S],b=y.link.range.start.y<i?0:y.link.range.start.x,C=y.link.range.end.y>i?this._bufferService.cols:y.link.range.end.x,M=b;M<=C;M++){if(f.has(M)){m.splice(S--,1);break}f.add(M)}}},r.prototype._checkLinkProviderResult=function(i,n,f){var u,m=this;if(!this._activeProviderReplies)return f;for(var S=this._activeProviderReplies.get(i),y=!1,b=0;b<i;b++)this._activeProviderReplies.has(b)&&!this._activeProviderReplies.get(b)||(y=!0);if(!y&&S){var C=S.find(function(w){return m._linkAtPosition(w.link,n)});C&&(f=!0,this._handleNewLink(C))}if(this._activeProviderReplies.size===this._linkProviders.length&&!f)for(b=0;b<this._activeProviderReplies.size;b++){var M=(u=this._activeProviderReplies.get(b))===null||u===void 0?void 0:u.find(function(w){return m._linkAtPosition(w.link,n)});if(M){f=!0,this._handleNewLink(M);break}}return f},r.prototype._handleMouseDown=function(){this._mouseDownLink=this._currentLink},r.prototype._handleMouseUp=function(i){if(this._element&&this._mouseService&&this._currentLink){var n=this._positionFromMouseEvent(i,this._element,this._mouseService);n&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,n)&&this._currentLink.link.activate(i,this._currentLink.link.text)}},r.prototype._clearCurrentLink=function(i,n){this._element&&this._currentLink&&this._lastMouseEvent&&(!i||!n||this._currentLink.link.range.start.y>=i&&this._currentLink.link.range.end.y<=n)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,h.disposeArray)(this._linkCacheDisposables))},r.prototype._handleNewLink=function(i){var n=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var f=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);f&&this._linkAtPosition(i.link,f)&&(this._currentLink=i,this._currentLink.state={decorations:{underline:i.link.decorations===void 0||i.link.decorations.underline,pointerCursor:i.link.decorations===void 0||i.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,i.link,this._lastMouseEvent),i.link.decorations={},Object.defineProperties(i.link.decorations,{pointerCursor:{get:function(){var u,m;return(m=(u=n._currentLink)===null||u===void 0?void 0:u.state)===null||m===void 0?void 0:m.decorations.pointerCursor},set:function(u){var m,S;!((m=n._currentLink)===null||m===void 0)&&m.state&&n._currentLink.state.decorations.pointerCursor!==u&&(n._currentLink.state.decorations.pointerCursor=u,n._currentLink.state.isHovered&&((S=n._element)===null||S===void 0||S.classList.toggle("xterm-cursor-pointer",u)))}},underline:{get:function(){var u,m;return(m=(u=n._currentLink)===null||u===void 0?void 0:u.state)===null||m===void 0?void 0:m.decorations.underline},set:function(u){var m,S,y;!((m=n._currentLink)===null||m===void 0)&&m.state&&((y=(S=n._currentLink)===null||S===void 0?void 0:S.state)===null||y===void 0?void 0:y.decorations.underline)!==u&&(n._currentLink.state.decorations.underline=u,n._currentLink.state.isHovered&&n._fireUnderlineEvent(i.link,u))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(function(u){var m=u.start===0?0:u.start+1+n._bufferService.buffer.ydisp;n._clearCurrentLink(m,u.end+1+n._bufferService.buffer.ydisp)})))}},r.prototype._linkHover=function(i,n,f){var u;!((u=this._currentLink)===null||u===void 0)&&u.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(n,!0),this._currentLink.state.decorations.pointerCursor&&i.classList.add("xterm-cursor-pointer")),n.hover&&n.hover(f,n.text)},r.prototype._fireUnderlineEvent=function(i,n){var f=i.range,u=this._bufferService.buffer.ydisp,m=this._createLinkUnderlineEvent(f.start.x-1,f.start.y-u-1,f.end.x,f.end.y-u-1,void 0);(n?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(m)},r.prototype._linkLeave=function(i,n,f){var u;!((u=this._currentLink)===null||u===void 0)&&u.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(n,!1),this._currentLink.state.decorations.pointerCursor&&i.classList.remove("xterm-cursor-pointer")),n.leave&&n.leave(f,n.text)},r.prototype._linkAtPosition=function(i,n){var f=i.range.start.y===i.range.end.y,u=i.range.start.y<n.y,m=i.range.end.y>n.y;return(f&&i.range.start.x<=n.x&&i.range.end.x>=n.x||u&&i.range.end.x>=n.x||m&&i.range.start.x<=n.x||u&&m)&&i.range.start.y<=n.y&&i.range.end.y>=n.y},r.prototype._positionFromMouseEvent=function(i,n,f){var u=f.getCoords(i,n,this._bufferService.cols,this._bufferService.rows);if(u)return{x:u[0],y:u[1]+this._bufferService.buffer.ydisp}},r.prototype._createLinkUnderlineEvent=function(i,n,f,u,m){return{x1:i,y1:n,x2:f,y2:u,cols:this._bufferService.cols,fg:m}},d([l(0,s.IBufferService)],r)}(h.Disposable);p.Linkifier2=t},9042:(N,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.tooMuchOutput=p.promptLabel=void 0,p.promptLabel="Terminal input",p.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(N,p,x){var c,_=this&&this.__extends||(c=function(a,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])},c(a,t)},function(a,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=a}c(a,t),a.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}),d=this&&this.__decorate||function(a,t,e,r){var i,n=arguments.length,f=n<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(a,t,e,r);else for(var u=a.length-1;u>=0;u--)(i=a[u])&&(f=(n<3?i(f):n>3?i(t,e,f):i(t,e))||f);return n>3&&f&&Object.defineProperty(t,e,f),f},l=this&&this.__param||function(a,t){return function(e,r){t(e,r,a)}};Object.defineProperty(p,"__esModule",{value:!0}),p.MouseZoneManager=void 0;var g=x(844),v=x(3656),s=x(4725),o=x(2585),h=function(a){function t(e,r,i,n,f,u){var m=a.call(this)||this;return m._element=e,m._screenElement=r,m._bufferService=i,m._mouseService=n,m._selectionService=f,m._optionsService=u,m._zones=[],m._areZonesActive=!1,m._lastHoverCoords=[void 0,void 0],m._initialSelectionLength=0,m.register((0,v.addDisposableDomListener)(m._element,"mousedown",function(S){return m._onMouseDown(S)})),m._mouseMoveListener=function(S){return m._onMouseMove(S)},m._mouseLeaveListener=function(S){return m._onMouseLeave(S)},m._clickListener=function(S){return m._onClick(S)},m}return _(t,a),t.prototype.dispose=function(){a.prototype.dispose.call(this),this._deactivate()},t.prototype.add=function(e){this._zones.push(e),this._zones.length===1&&this._activate()},t.prototype.clearAll=function(e,r){if(this._zones.length!==0){e&&r||(e=0,r=this._bufferService.rows-1);for(var i=0;i<this._zones.length;i++){var n=this._zones[i];(n.y1>e&&n.y1<=r+1||n.y2>e&&n.y2<=r+1||n.y1<e&&n.y2>r+1)&&(this._currentZone&&this._currentZone===n&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(i--,1))}this._zones.length===0&&this._deactivate()}},t.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},t.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},t.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},t.prototype._onHover=function(e){var r=this,i=this._findZoneEventAt(e);i!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),i&&(this._currentZone=i,i.hoverCallback&&i.hoverCallback(e),this._tooltipTimeout=window.setTimeout(function(){return r._onTooltip(e)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},t.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var r=this._findZoneEventAt(e);r==null||r.tooltipCallback(e)},t.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var r=this._findZoneEventAt(e);r!=null&&r.willLinkActivate(e)&&(e.preventDefault(),e.stopImmediatePropagation())}},t.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},t.prototype._onClick=function(e){var r=this._findZoneEventAt(e),i=this._getSelectionLength();r&&i===this._initialSelectionLength&&(r.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},t.prototype._findZoneEventAt=function(e){var r=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(r)for(var i=r[0],n=r[1],f=0;f<this._zones.length;f++){var u=this._zones[f];if(u.y1===u.y2){if(n===u.y1&&i>=u.x1&&i<u.x2)return u}else if(n===u.y1&&i>=u.x1||n===u.y2&&i<u.x2||n>u.y1&&n<u.y2)return u}},d([l(2,o.IBufferService),l(3,s.IMouseService),l(4,s.ISelectionService),l(5,o.IOptionsService)],t)}(g.Disposable);p.MouseZoneManager=h},6193:function(N,p){var x=this&&this.__values||function(_){var d=typeof Symbol=="function"&&Symbol.iterator,l=d&&_[d],g=0;if(l)return l.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&g>=_.length&&(_=void 0),{value:_&&_[g++],done:!_}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(p,"__esModule",{value:!0}),p.RenderDebouncer=void 0;var c=function(){function _(d){this._renderCallback=d,this._refreshCallbacks=[]}return _.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},_.prototype.addRefreshCallback=function(d){var l=this;return this._refreshCallbacks.push(d),this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return l._innerRefresh()})),this._animationFrame},_.prototype.refresh=function(d,l,g){var v=this;this._rowCount=g,d=d!==void 0?d:0,l=l!==void 0?l:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,d):d,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,l):l,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return v._innerRefresh()}))},_.prototype._innerRefresh=function(){if(this._animationFrame=void 0,this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var d=Math.max(this._rowStart,0),l=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(d,l),this._runRefreshCallbacks()}else this._runRefreshCallbacks()},_.prototype._runRefreshCallbacks=function(){var d,l;try{for(var g=x(this._refreshCallbacks),v=g.next();!v.done;v=g.next())(0,v.value)(0)}catch(s){d={error:s}}finally{try{v&&!v.done&&(l=g.return)&&l.call(g)}finally{if(d)throw d.error}}this._refreshCallbacks=[]},_}();p.RenderDebouncer=c},5596:function(N,p,x){var c,_=this&&this.__extends||(c=function(l,g){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,s){v.__proto__=s}||function(v,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(v[o]=s[o])},c(l,g)},function(l,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function v(){this.constructor=l}c(l,g),l.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)});Object.defineProperty(p,"__esModule",{value:!0}),p.ScreenDprMonitor=void 0;var d=function(l){function g(){var v=l!==null&&l.apply(this,arguments)||this;return v._currentDevicePixelRatio=window.devicePixelRatio,v}return _(g,l),g.prototype.setListener=function(v){var s=this;this._listener&&this.clearListener(),this._listener=v,this._outerListener=function(){s._listener&&(s._listener(window.devicePixelRatio,s._currentDevicePixelRatio),s._updateDpr())},this._updateDpr()},g.prototype.dispose=function(){l.prototype.dispose.call(this),this.clearListener()},g.prototype._updateDpr=function(){var v;this._outerListener&&((v=this._resolutionMediaMatchList)===null||v===void 0||v.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},g.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},g}(x(844).Disposable);p.ScreenDprMonitor=d},3236:function(N,p,x){var c,_=this&&this.__extends||(c=function(V,q){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,O){D.__proto__=O}||function(D,O){for(var U in O)Object.prototype.hasOwnProperty.call(O,U)&&(D[U]=O[U])},c(V,q)},function(V,q){if(typeof q!="function"&&q!==null)throw new TypeError("Class extends value "+String(q)+" is not a constructor or null");function D(){this.constructor=V}c(V,q),V.prototype=q===null?Object.create(q):(D.prototype=q.prototype,new D)}),d=this&&this.__values||function(V){var q=typeof Symbol=="function"&&Symbol.iterator,D=q&&V[q],O=0;if(D)return D.call(V);if(V&&typeof V.length=="number")return{next:function(){return V&&O>=V.length&&(V=void 0),{value:V&&V[O++],done:!V}}};throw new TypeError(q?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__read||function(V,q){var D=typeof Symbol=="function"&&V[Symbol.iterator];if(!D)return V;var O,U,Z=D.call(V),J=[];try{for(;(q===void 0||q-- >0)&&!(O=Z.next()).done;)J.push(O.value)}catch(Q){U={error:Q}}finally{try{O&&!O.done&&(D=Z.return)&&D.call(Z)}finally{if(U)throw U.error}}return J},g=this&&this.__spreadArray||function(V,q,D){if(D||arguments.length===2)for(var O,U=0,Z=q.length;U<Z;U++)!O&&U in q||(O||(O=Array.prototype.slice.call(q,0,U)),O[U]=q[U]);return V.concat(O||Array.prototype.slice.call(q))};Object.defineProperty(p,"__esModule",{value:!0}),p.Terminal=void 0;var v=x(2950),s=x(1680),o=x(3614),h=x(2584),a=x(5435),t=x(3525),e=x(3551),r=x(9312),i=x(6114),n=x(3656),f=x(9042),u=x(357),m=x(6954),S=x(4567),y=x(1296),b=x(7399),C=x(8460),M=x(8437),w=x(5680),R=x(3230),E=x(4725),L=x(428),A=x(8934),T=x(6465),W=x(5114),z=x(8969),j=x(8055),K=x(4269),G=x(5941),k=x(3107),$=x(5744),Y=x(9074),le=x(2585),B=typeof window<"u"?window.document:null,ne=function(V){function q(D){D===void 0&&(D={});var O=V.call(this,D)||this;return O.browser=i,O._keyDownHandled=!1,O._keyDownSeen=!1,O._keyPressHandled=!1,O._unprocessedDeadKey=!1,O._onCursorMove=new C.EventEmitter,O._onKey=new C.EventEmitter,O._onRender=new C.EventEmitter,O._onSelectionChange=new C.EventEmitter,O._onTitleChange=new C.EventEmitter,O._onBell=new C.EventEmitter,O._onFocus=new C.EventEmitter,O._onBlur=new C.EventEmitter,O._onA11yCharEmitter=new C.EventEmitter,O._onA11yTabEmitter=new C.EventEmitter,O._setup(),O.linkifier=O._instantiationService.createInstance(e.Linkifier),O.linkifier2=O.register(O._instantiationService.createInstance(T.Linkifier2)),O._decorationService=O._instantiationService.createInstance(Y.DecorationService),O._instantiationService.setService(le.IDecorationService,O._decorationService),O.register(O._inputHandler.onRequestBell(function(){return O.bell()})),O.register(O._inputHandler.onRequestRefreshRows(function(U,Z){return O.refresh(U,Z)})),O.register(O._inputHandler.onRequestSendFocus(function(){return O._reportFocus()})),O.register(O._inputHandler.onRequestReset(function(){return O.reset()})),O.register(O._inputHandler.onRequestWindowsOptionsReport(function(U){return O._reportWindowsOptions(U)})),O.register(O._inputHandler.onColor(function(U){return O._handleColorEvent(U)})),O.register((0,C.forwardEvent)(O._inputHandler.onCursorMove,O._onCursorMove)),O.register((0,C.forwardEvent)(O._inputHandler.onTitleChange,O._onTitleChange)),O.register((0,C.forwardEvent)(O._inputHandler.onA11yChar,O._onA11yCharEmitter)),O.register((0,C.forwardEvent)(O._inputHandler.onA11yTab,O._onA11yTabEmitter)),O.register(O._bufferService.onResize(function(U){return O._afterResize(U.cols,U.rows)})),O}return _(q,V),Object.defineProperty(q.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"onBell",{get:function(){return this._onBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),q.prototype._handleColorEvent=function(D){var O,U,Z,J;if(this._colorManager){try{for(var Q=d(D),ue=Q.next();!ue.done;ue=Q.next()){var me=ue.value,Ce=void 0,X="";switch(me.index){case 256:Ce="foreground",X="10";break;case 257:Ce="background",X="11";break;case 258:Ce="cursor",X="12";break;default:Ce="ansi",X="4;"+me.index}if(Ce)switch(me.type){case 0:var be=j.color.toColorRGB(Ce==="ansi"?this._colorManager.colors.ansi[me.index]:this._colorManager.colors[Ce]);this.coreService.triggerDataEvent(h.C0.ESC+"]"+X+";"+(0,G.toRgbString)(be)+h.C1_ESCAPED.ST);break;case 1:Ce==="ansi"?this._colorManager.colors.ansi[me.index]=j.rgba.toColor.apply(j.rgba,g([],l(me.color),!1)):this._colorManager.colors[Ce]=j.rgba.toColor.apply(j.rgba,g([],l(me.color),!1));break;case 2:this._colorManager.restoreColor(me.index)}}}catch(Me){O={error:Me}}finally{try{ue&&!ue.done&&(U=Q.return)&&U.call(Q)}finally{if(O)throw O.error}}(Z=this._renderService)===null||Z===void 0||Z.setColors(this._colorManager.colors),(J=this.viewport)===null||J===void 0||J.onThemeChange(this._colorManager.colors)}},q.prototype.dispose=function(){var D,O,U;this._isDisposed||(V.prototype.dispose.call(this),(D=this._renderService)===null||D===void 0||D.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(U=(O=this.element)===null||O===void 0?void 0:O.parentNode)===null||U===void 0||U.removeChild(this.element))},q.prototype._setup=function(){V.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(q.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),q.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},q.prototype._updateOptions=function(D){var O,U,Z,J;switch(V.prototype._updateOptions.call(this,D),D){case"fontFamily":case"fontSize":(O=this._renderService)===null||O===void 0||O.clear(),(U=this._charSizeService)===null||U===void 0||U.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"customGlyphs":case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(Z=this.viewport)===null||Z===void 0||Z.syncScrollArea();break;case"screenReaderMode":this.optionsService.rawOptions.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new S.AccessibilityManager(this,this._renderService)):((J=this._accessibilityManager)===null||J===void 0||J.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.rawOptions.theme)}},q.prototype._onTextAreaFocus=function(D){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(h.C0.ESC+"[I"),this.updateCursorStyle(D),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},q.prototype.blur=function(){var D;return(D=this.textarea)===null||D===void 0?void 0:D.blur()},q.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(h.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},q.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService){var D=this.buffer.ybase+this.buffer.y,O=this.buffer.lines.get(D);if(O){var U=Math.min(this.buffer.x,this.cols-1),Z=this._renderService.dimensions.actualCellHeight,J=O.getWidth(U),Q=this._renderService.dimensions.actualCellWidth*J,ue=this.buffer.y*this._renderService.dimensions.actualCellHeight,me=U*this._renderService.dimensions.actualCellWidth;this.textarea.style.left=me+"px",this.textarea.style.top=ue+"px",this.textarea.style.width=Q+"px",this.textarea.style.height=Z+"px",this.textarea.style.lineHeight=Z+"px",this.textarea.style.zIndex="-5"}}},q.prototype._initGlobal=function(){var D=this;this._bindKeys(),this.register((0,n.addDisposableDomListener)(this.element,"copy",function(U){D.hasSelection()&&(0,o.copyHandler)(U,D._selectionService)}));var O=function(U){return(0,o.handlePasteEvent)(U,D.textarea,D.coreService)};this.register((0,n.addDisposableDomListener)(this.textarea,"paste",O)),this.register((0,n.addDisposableDomListener)(this.element,"paste",O)),i.isFirefox?this.register((0,n.addDisposableDomListener)(this.element,"mousedown",function(U){U.button===2&&(0,o.rightClickHandler)(U,D.textarea,D.screenElement,D._selectionService,D.options.rightClickSelectsWord)})):this.register((0,n.addDisposableDomListener)(this.element,"contextmenu",function(U){(0,o.rightClickHandler)(U,D.textarea,D.screenElement,D._selectionService,D.options.rightClickSelectsWord)})),i.isLinux&&this.register((0,n.addDisposableDomListener)(this.element,"auxclick",function(U){U.button===1&&(0,o.moveTextAreaUnderMouseCursor)(U,D.textarea,D.screenElement)}))},q.prototype._bindKeys=function(){var D=this;this.register((0,n.addDisposableDomListener)(this.textarea,"keyup",function(O){return D._keyUp(O)},!0)),this.register((0,n.addDisposableDomListener)(this.textarea,"keydown",function(O){return D._keyDown(O)},!0)),this.register((0,n.addDisposableDomListener)(this.textarea,"keypress",function(O){return D._keyPress(O)},!0)),this.register((0,n.addDisposableDomListener)(this.textarea,"compositionstart",function(){return D._compositionHelper.compositionstart()})),this.register((0,n.addDisposableDomListener)(this.textarea,"compositionupdate",function(O){return D._compositionHelper.compositionupdate(O)})),this.register((0,n.addDisposableDomListener)(this.textarea,"compositionend",function(){return D._compositionHelper.compositionend()})),this.register((0,n.addDisposableDomListener)(this.textarea,"input",function(O){return D._inputEvent(O)},!0)),this.register(this.onRender(function(){return D._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(O){return D._queueLinkification(O.start,O.end)}))},q.prototype.open=function(D){var O=this;if(!D)throw new Error("Terminal requires a parent element.");D.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=D.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),D.appendChild(this.element);var U=B.createDocumentFragment();this._viewportElement=B.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),U.appendChild(this._viewportElement),this._viewportScrollArea=B.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=B.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=B.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),U.appendChild(this.screenElement),this.textarea=B.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",f.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register((0,n.addDisposableDomListener)(this.textarea,"focus",function(Q){return O._onTextAreaFocus(Q)})),this.register((0,n.addDisposableDomListener)(this.textarea,"blur",function(){return O._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Z=this._instantiationService.createInstance(W.CoreBrowserService,this.textarea);this._instantiationService.setService(E.ICoreBrowserService,Z),this._charSizeService=this._instantiationService.createInstance(L.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(E.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new w.ColorManager(B,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(Q){return O._colorManager.onOptionsChange(Q)})),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(K.CharacterJoinerService),this._instantiationService.setService(E.ICharacterJoinerService,this._characterJoinerService);var J=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(R.RenderService,J,this.rows,this.screenElement)),this._instantiationService.setService(E.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(function(Q){return O._onRender.fire(Q)})),this.onResize(function(Q){return O._renderService.resize(Q.cols,Q.rows)}),this._compositionView=B.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(v.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(U),this._soundService=this._instantiationService.createInstance(u.SoundService),this._instantiationService.setService(E.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(A.MouseService),this._instantiationService.setService(E.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(s.Viewport,function(Q){return O.scrollLines(Q,!0,1)},this._viewportElement,this._viewportScrollArea,this.element),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return O.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){O._renderService.onCursorMove(),O._syncTextArea()})),this.register(this.onResize(function(){return O._renderService.onResize(O.cols,O.rows)})),this.register(this.onBlur(function(){return O._renderService.onBlur()})),this.register(this.onFocus(function(){return O._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return O.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(r.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(E.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(Q){return O.scrollLines(Q.amount,Q.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return O._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(Q){return O._renderService.onSelectionChanged(Q.start,Q.end,Q.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(Q){O.textarea.value=Q,O.textarea.focus(),O.textarea.select()})),this.register(this._onScroll.event(function(Q){O.viewport.syncScrollArea(),O._selectionService.refresh()})),this.register((0,n.addDisposableDomListener)(this._viewportElement,"scroll",function(){return O._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(m.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return O._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(k.BufferDecorationRenderer,this.screenElement)),this.register((0,n.addDisposableDomListener)(this.element,"mousedown",function(Q){return O._selectionService.onMouseDown(Q)})),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new S.AccessibilityManager(this,this._renderService)),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this._instantiationService.createInstance($.OverviewRulerRenderer,this._viewportElement,this.screenElement)),this.optionsService.onOptionChange(function(){!O._overviewRulerRenderer&&O.options.overviewRulerWidth&&O._viewportElement&&O.screenElement&&(O._overviewRulerRenderer=O._instantiationService.createInstance($.OverviewRulerRenderer,O._viewportElement,O.screenElement))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},q.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(t.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(y.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},q.prototype._setTheme=function(D){var O,U,Z;this._theme=D,(O=this._colorManager)===null||O===void 0||O.setTheme(D),(U=this._renderService)===null||U===void 0||U.setColors(this._colorManager.colors),(Z=this.viewport)===null||Z===void 0||Z.onThemeChange(this._colorManager.colors)},q.prototype.bindMouse=function(){var D=this,O=this,U=this.element;function Z(X){var be,Me,He=O._mouseService.getRawByteCoords(X,O.screenElement,O.cols,O.rows);if(!He)return!1;switch(X.overrideType||X.type){case"mousemove":Me=32,X.buttons===void 0?(be=3,X.button!==void 0&&(be=X.button<3?X.button:3)):be=1&X.buttons?0:4&X.buttons?1:2&X.buttons?2:3;break;case"mouseup":Me=0,be=X.button<3?X.button:3;break;case"mousedown":Me=1,be=X.button<3?X.button:3;break;case"wheel":if(O.viewport.getLinesScrolled(X)===0)return!1;Me=X.deltaY<0?0:1,be=4;break;default:return!1}return!(Me===void 0||be===void 0||be>4)&&O.coreMouseService.triggerMouseEvent({col:He.x-33,row:He.y-33,button:be,action:Me,ctrl:X.ctrlKey,alt:X.altKey,shift:X.shiftKey})}var J={mouseup:null,wheel:null,mousedrag:null,mousemove:null},Q=function(X){return Z(X),X.buttons||(D._document.removeEventListener("mouseup",J.mouseup),J.mousedrag&&D._document.removeEventListener("mousemove",J.mousedrag)),D.cancel(X)},ue=function(X){return Z(X),D.cancel(X,!0)},me=function(X){X.buttons&&Z(X)},Ce=function(X){X.buttons||Z(X)};this.register(this.coreMouseService.onProtocolChange(function(X){X?(D.optionsService.rawOptions.logLevel==="debug"&&D._logService.debug("Binding to mouse events:",D.coreMouseService.explainEvents(X)),D.element.classList.add("enable-mouse-events"),D._selectionService.disable()):(D._logService.debug("Unbinding from mouse events."),D.element.classList.remove("enable-mouse-events"),D._selectionService.enable()),8&X?J.mousemove||(U.addEventListener("mousemove",Ce),J.mousemove=Ce):(U.removeEventListener("mousemove",J.mousemove),J.mousemove=null),16&X?J.wheel||(U.addEventListener("wheel",ue,{passive:!1}),J.wheel=ue):(U.removeEventListener("wheel",J.wheel),J.wheel=null),2&X?J.mouseup||(J.mouseup=Q):(D._document.removeEventListener("mouseup",J.mouseup),J.mouseup=null),4&X?J.mousedrag||(J.mousedrag=me):(D._document.removeEventListener("mousemove",J.mousedrag),J.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,n.addDisposableDomListener)(U,"mousedown",function(X){if(X.preventDefault(),D.focus(),D.coreMouseService.areMouseEventsActive&&!D._selectionService.shouldForceSelection(X))return Z(X),J.mouseup&&D._document.addEventListener("mouseup",J.mouseup),J.mousedrag&&D._document.addEventListener("mousemove",J.mousedrag),D.cancel(X)})),this.register((0,n.addDisposableDomListener)(U,"wheel",function(X){if(!J.wheel){if(!D.buffer.hasScrollback){var be=D.viewport.getLinesScrolled(X);if(be===0)return;for(var Me=h.C0.ESC+(D.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(X.deltaY<0?"A":"B"),He="",Ue=0;Ue<Math.abs(be);Ue++)He+=Me;return D.coreService.triggerDataEvent(He,!0),D.cancel(X,!0)}return D.viewport.onWheel(X)?D.cancel(X):void 0}},{passive:!1})),this.register((0,n.addDisposableDomListener)(U,"touchstart",function(X){if(!D.coreMouseService.areMouseEventsActive)return D.viewport.onTouchStart(X),D.cancel(X)},{passive:!0})),this.register((0,n.addDisposableDomListener)(U,"touchmove",function(X){if(!D.coreMouseService.areMouseEventsActive)return D.viewport.onTouchMove(X)?void 0:D.cancel(X)},{passive:!1}))},q.prototype.refresh=function(D,O){var U;(U=this._renderService)===null||U===void 0||U.refreshRows(D,O)},q.prototype._queueLinkification=function(D,O){var U;(U=this.linkifier)===null||U===void 0||U.linkifyRows(D,O)},q.prototype.updateCursorStyle=function(D){var O;!((O=this._selectionService)===null||O===void 0)&&O.shouldColumnSelect(D)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},q.prototype._showCursor=function(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},q.prototype.scrollLines=function(D,O,U){U===void 0&&(U=0),V.prototype.scrollLines.call(this,D,O,U),this.refresh(0,this.rows-1)},q.prototype.paste=function(D){(0,o.paste)(D,this.textarea,this.coreService)},q.prototype.attachCustomKeyEventHandler=function(D){this._customKeyEventHandler=D},q.prototype.registerLinkMatcher=function(D,O,U){var Z=this.linkifier.registerLinkMatcher(D,O,U);return this.refresh(0,this.rows-1),Z},q.prototype.deregisterLinkMatcher=function(D){this.linkifier.deregisterLinkMatcher(D)&&this.refresh(0,this.rows-1)},q.prototype.registerLinkProvider=function(D){return this.linkifier2.registerLinkProvider(D)},q.prototype.registerCharacterJoiner=function(D){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");var O=this._characterJoinerService.register(D);return this.refresh(0,this.rows-1),O},q.prototype.deregisterCharacterJoiner=function(D){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(D)&&this.refresh(0,this.rows-1)},Object.defineProperty(q.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),q.prototype.addMarker=function(D){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+D)},q.prototype.registerDecoration=function(D){return this._decorationService.registerDecoration(D)},q.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},q.prototype.select=function(D,O,U){this._selectionService.setSelection(D,O,U)},q.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},q.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},q.prototype.clearSelection=function(){var D;(D=this._selectionService)===null||D===void 0||D.clearSelection()},q.prototype.selectAll=function(){var D;(D=this._selectionService)===null||D===void 0||D.selectAll()},q.prototype.selectLines=function(D,O){var U;(U=this._selectionService)===null||U===void 0||U.selectLines(D,O)},q.prototype._keyDown=function(D){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(D)===!1)return!1;var O=this.browser.isMac&&this.options.macOptionIsMeta&&D.altKey;if(!O&&!this._compositionHelper.keydown(D))return this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;O||D.key!=="Dead"&&D.key!=="AltGraph"||(this._unprocessedDeadKey=!0);var U=(0,b.evaluateKeyboardEvent)(D,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(D),U.type===3||U.type===2){var Z=this.rows-1;return this.scrollLines(U.type===2?-Z:Z),this.cancel(D,!0)}return U.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,D)||(U.cancel&&this.cancel(D,!0),!U.key||!!(D.key&&!D.ctrlKey&&!D.altKey&&!D.metaKey&&D.key.length===1&&D.key.charCodeAt(0)>=65&&D.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(U.key!==h.C0.ETX&&U.key!==h.C0.CR||(this.textarea.value=""),this._onKey.fire({key:U.key,domEvent:D}),this._showCursor(),this.coreService.triggerDataEvent(U.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(D,!0))))},q.prototype._isThirdLevelShift=function(D,O){var U=D.isMac&&!this.options.macOptionIsMeta&&O.altKey&&!O.ctrlKey&&!O.metaKey||D.isWindows&&O.altKey&&O.ctrlKey&&!O.metaKey||D.isWindows&&O.getModifierState("AltGraph");return O.type==="keypress"?U:U&&(!O.keyCode||O.keyCode>47)},q.prototype._keyUp=function(D){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(D)===!1||(function(O){return O.keyCode===16||O.keyCode===17||O.keyCode===18}(D)||this.focus(),this.updateCursorStyle(D),this._keyPressHandled=!1)},q.prototype._keyPress=function(D){var O;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(D)===!1)return!1;if(this.cancel(D),D.charCode)O=D.charCode;else if(D.which===null||D.which===void 0)O=D.keyCode;else{if(D.which===0||D.charCode===0)return!1;O=D.which}return!(!O||(D.altKey||D.ctrlKey||D.metaKey)&&!this._isThirdLevelShift(this.browser,D)||(O=String.fromCharCode(O),this._onKey.fire({key:O,domEvent:D}),this._showCursor(),this.coreService.triggerDataEvent(O,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},q.prototype._inputEvent=function(D){if(D.data&&D.inputType==="insertText"&&(!D.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var O=D.data;return this.coreService.triggerDataEvent(O,!0),this.cancel(D),!0}return!1},q.prototype.bell=function(){var D;this._soundBell()&&((D=this._soundService)===null||D===void 0||D.playBellSound()),this._onBell.fire()},q.prototype.resize=function(D,O){D!==this.cols||O!==this.rows?V.prototype.resize.call(this,D,O):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},q.prototype._afterResize=function(D,O){var U,Z;(U=this._charSizeService)===null||U===void 0||U.measure(),(Z=this.viewport)===null||Z===void 0||Z.syncScrollArea(!0)},q.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var D=1;D<this.rows;D++)this.buffer.lines.push(this.buffer.getBlankLine(M.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}},q.prototype.reset=function(){var D,O;this.options.rows=this.rows,this.options.cols=this.cols;var U=this._customKeyEventHandler;this._setup(),V.prototype.reset.call(this),(D=this._selectionService)===null||D===void 0||D.reset(),this._decorationService.reset(),this._customKeyEventHandler=U,this.refresh(0,this.rows-1),(O=this.viewport)===null||O===void 0||O.syncScrollArea()},q.prototype.clearTextureAtlas=function(){var D;(D=this._renderService)===null||D===void 0||D.clearTextureAtlas()},q.prototype._reportFocus=function(){var D;!((D=this.element)===null||D===void 0)&&D.classList.contains("focus")?this.coreService.triggerDataEvent(h.C0.ESC+"[I"):this.coreService.triggerDataEvent(h.C0.ESC+"[O")},q.prototype._reportWindowsOptions=function(D){if(this._renderService)switch(D){case a.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var O=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),U=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this.coreService.triggerDataEvent(h.C0.ESC+"[4;"+U+";"+O+"t");break;case a.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Z=this._renderService.dimensions.scaledCellWidth.toFixed(0),J=this._renderService.dimensions.scaledCellHeight.toFixed(0);this.coreService.triggerDataEvent(h.C0.ESC+"[6;"+J+";"+Z+"t")}},q.prototype.cancel=function(D,O){if(this.options.cancelEvents||O)return D.preventDefault(),D.stopPropagation(),!1},q.prototype._visualBell=function(){return!1},q.prototype._soundBell=function(){return this.options.bellStyle==="sound"},q}(z.CoreTerminal);p.Terminal=ne},9924:(N,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.TimeBasedDebouncer=void 0;var x=function(){function c(_,d){d===void 0&&(d=1e3),this._renderCallback=_,this._debounceThresholdMS=d,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return c.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},c.prototype.refresh=function(_,d,l){var g=this;this._rowCount=l,_=_!==void 0?_:0,d=d!==void 0?d:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,_):_,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,d):d;var v=Date.now();if(v-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=v,this._innerRefresh();else if(!this._additionalRefreshRequested){var s=v-this._lastRefreshMs,o=this._debounceThresholdMS-s;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){g._lastRefreshMs=Date.now(),g._innerRefresh(),g._additionalRefreshRequested=!1,g._refreshTimeoutID=void 0},o)}},c.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var _=Math.max(this._rowStart,0),d=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(_,d)}},c}();p.TimeBasedDebouncer=x},1680:function(N,p,x){var c,_=this&&this.__extends||(c=function(a,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])},c(a,t)},function(a,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=a}c(a,t),a.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}),d=this&&this.__decorate||function(a,t,e,r){var i,n=arguments.length,f=n<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(a,t,e,r);else for(var u=a.length-1;u>=0;u--)(i=a[u])&&(f=(n<3?i(f):n>3?i(t,e,f):i(t,e))||f);return n>3&&f&&Object.defineProperty(t,e,f),f},l=this&&this.__param||function(a,t){return function(e,r){t(e,r,a)}};Object.defineProperty(p,"__esModule",{value:!0}),p.Viewport=void 0;var g=x(844),v=x(3656),s=x(4725),o=x(2585),h=function(a){function t(e,r,i,n,f,u,m,S){var y=a.call(this)||this;return y._scrollLines=e,y._viewportElement=r,y._scrollArea=i,y._element=n,y._bufferService=f,y._optionsService=u,y._charSizeService=m,y._renderService=S,y.scrollBarWidth=0,y._currentRowHeight=0,y._currentScaledCellHeight=0,y._lastRecordedBufferLength=0,y._lastRecordedViewportHeight=0,y._lastRecordedBufferHeight=0,y._lastTouchY=0,y._lastScrollTop=0,y._wheelPartialScroll=0,y._refreshAnimationFrame=null,y._ignoreNextScrollEvent=!1,y.scrollBarWidth=y._viewportElement.offsetWidth-y._scrollArea.offsetWidth||15,y.register((0,v.addDisposableDomListener)(y._viewportElement,"scroll",y._onScroll.bind(y))),y._activeBuffer=y._bufferService.buffer,y.register(y._bufferService.buffers.onBufferActivate(function(b){return y._activeBuffer=b.activeBuffer})),y._renderDimensions=y._renderService.dimensions,y.register(y._renderService.onDimensionsChange(function(b){return y._renderDimensions=b})),setTimeout(function(){return y.syncScrollArea()},0),y}return _(t,a),t.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},t.prototype._refresh=function(e){var r=this;if(e)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return r._innerRefresh()}))},t.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var r=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==r&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=r),this._refreshAnimationFrame=null},t.prototype.syncScrollArea=function(e){if(e===void 0&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight||this._refresh(e)},t.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var r=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(r)}},t.prototype._bubbleScroll=function(e,r){var i=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(r<0&&this._viewportElement.scrollTop!==0||r>0&&i<this._lastRecordedBufferHeight)||(e.cancelable&&e.preventDefault(),!1)},t.prototype.onWheel=function(e){var r=this._getPixelsScrolled(e);return r!==0&&(this._viewportElement.scrollTop+=r,this._bubbleScroll(e,r))},t.prototype._getPixelsScrolled=function(e){if(e.deltaY===0||e.shiftKey)return 0;var r=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_LINE?r*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(r*=this._currentRowHeight*this._bufferService.rows),r},t.prototype.getLinesScrolled=function(e){if(e.deltaY===0||e.shiftKey)return 0;var r=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(r/=this._currentRowHeight+0,this._wheelPartialScroll+=r,r=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(r*=this._bufferService.rows),r},t.prototype._applyScrollModifier=function(e,r){var i=this._optionsService.rawOptions.fastScrollModifier;return i==="alt"&&r.altKey||i==="ctrl"&&r.ctrlKey||i==="shift"&&r.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity},t.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},t.prototype.onTouchMove=function(e){var r=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,r!==0&&(this._viewportElement.scrollTop+=r,this._bubbleScroll(e,r))},d([l(4,o.IBufferService),l(5,o.IOptionsService),l(6,s.ICharSizeService),l(7,s.IRenderService)],t)}(g.Disposable);p.Viewport=h},3107:function(N,p,x){var c,_=this&&this.__extends||(c=function(t,e){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},c(t,e)},function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}c(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}),d=this&&this.__decorate||function(t,e,r,i){var n,f=arguments.length,u=f<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(t,e,r,i);else for(var m=t.length-1;m>=0;m--)(n=t[m])&&(u=(f<3?n(u):f>3?n(e,r,u):n(e,r))||u);return f>3&&u&&Object.defineProperty(e,r,u),u},l=this&&this.__param||function(t,e){return function(r,i){e(r,i,t)}},g=this&&this.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(p,"__esModule",{value:!0}),p.BufferDecorationRenderer=void 0;var v=x(3656),s=x(4725),o=x(844),h=x(2585),a=function(t){function e(r,i,n,f){var u=t.call(this)||this;return u._screenElement=r,u._bufferService=i,u._decorationService=n,u._renderService=f,u._decorationElements=new Map,u._altBufferIsActive=!1,u._dimensionsChanged=!1,u._container=document.createElement("div"),u._container.classList.add("xterm-decoration-container"),u._screenElement.appendChild(u._container),u.register(u._renderService.onRenderedViewportChange(function(){return u._queueRefresh()})),u.register(u._renderService.onDimensionsChange(function(){u._dimensionsChanged=!0,u._queueRefresh()})),u.register((0,v.addDisposableDomListener)(window,"resize",function(){return u._queueRefresh()})),u.register(u._bufferService.buffers.onBufferActivate(function(){u._altBufferIsActive=u._bufferService.buffer===u._bufferService.buffers.alt})),u.register(u._decorationService.onDecorationRegistered(function(){return u._queueRefresh()})),u.register(u._decorationService.onDecorationRemoved(function(m){return u._removeDecoration(m)})),u}return _(e,t),e.prototype.dispose=function(){this._container.remove(),this._decorationElements.clear(),t.prototype.dispose.call(this)},e.prototype._queueRefresh=function(){var r=this;this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(function(){r.refreshDecorations(),r._animationFrame=void 0}))},e.prototype.refreshDecorations=function(){var r,i;try{for(var n=g(this._decorationService.decorations),f=n.next();!f.done;f=n.next()){var u=f.value;this._renderDecoration(u)}}catch(m){r={error:m}}finally{try{f&&!f.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}this._dimensionsChanged=!1},e.prototype._renderDecoration=function(r){this._refreshStyle(r),this._dimensionsChanged&&this._refreshXPosition(r)},e.prototype._createElement=function(r){var i,n=document.createElement("div");n.classList.add("xterm-decoration"),n.style.width=Math.round((r.options.width||1)*this._renderService.dimensions.actualCellWidth)+"px",n.style.height=(r.options.height||1)*this._renderService.dimensions.actualCellHeight+"px",n.style.top=(r.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.actualCellHeight+"px",n.style.lineHeight=this._renderService.dimensions.actualCellHeight+"px";var f=(i=r.options.x)!==null&&i!==void 0?i:0;return f&&f>this._bufferService.cols&&(n.style.display="none"),this._refreshXPosition(r,n),n},e.prototype._refreshStyle=function(r){var i=this,n=r.marker.line-this._bufferService.buffers.active.ydisp;if(n<0||n>=this._bufferService.rows)r.element&&(r.element.style.display="none",r.onRenderEmitter.fire(r.element));else{var f=this._decorationElements.get(r);f||(r.onDispose(function(){return i._removeDecoration(r)}),f=this._createElement(r),r.element=f,this._decorationElements.set(r,f),this._container.appendChild(f)),f.style.top=n*this._renderService.dimensions.actualCellHeight+"px",f.style.display=this._altBufferIsActive?"none":"block",r.onRenderEmitter.fire(f)}},e.prototype._refreshXPosition=function(r,i){var n;if(i===void 0&&(i=r.element),i){var f=(n=r.options.x)!==null&&n!==void 0?n:0;(r.options.anchor||"left")==="right"?i.style.right=f?f*this._renderService.dimensions.actualCellWidth+"px":"":i.style.left=f?f*this._renderService.dimensions.actualCellWidth+"px":""}},e.prototype._removeDecoration=function(r){var i;(i=this._decorationElements.get(r))===null||i===void 0||i.remove(),this._decorationElements.delete(r)},d([l(1,h.IBufferService),l(2,h.IDecorationService),l(3,s.IRenderService)],e)}(o.Disposable);p.BufferDecorationRenderer=a},5871:function(N,p){var x=this&&this.__values||function(_){var d=typeof Symbol=="function"&&Symbol.iterator,l=d&&_[d],g=0;if(l)return l.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&g>=_.length&&(_=void 0),{value:_&&_[g++],done:!_}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(p,"__esModule",{value:!0}),p.ColorZoneStore=void 0;var c=function(){function _(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}return Object.defineProperty(_.prototype,"zones",{get:function(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones},enumerable:!1,configurable:!0}),_.prototype.clear=function(){this._zones.length=0,this._zonePoolIndex=0},_.prototype.addDecoration=function(d){var l,g;if(d.options.overviewRulerOptions){try{for(var v=x(this._zones),s=v.next();!s.done;s=v.next()){var o=s.value;if(o.color===d.options.overviewRulerOptions.color&&o.position===d.options.overviewRulerOptions.position){if(this._lineIntersectsZone(o,d.marker.line))return;if(this._lineAdjacentToZone(o,d.marker.line,d.options.overviewRulerOptions.position))return void this._addLineToZone(o,d.marker.line)}}}catch(h){l={error:h}}finally{try{s&&!s.done&&(g=v.return)&&g.call(v)}finally{if(l)throw l.error}}if(this._zonePoolIndex<this._zonePool.length)return this._zonePool[this._zonePoolIndex].color=d.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=d.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=d.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=d.marker.line,void this._zones.push(this._zonePool[this._zonePoolIndex++]);this._zones.push({color:d.options.overviewRulerOptions.color,position:d.options.overviewRulerOptions.position,startBufferLine:d.marker.line,endBufferLine:d.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}},_.prototype.setPadding=function(d){this._linePadding=d},_.prototype._lineIntersectsZone=function(d,l){return l>=d.startBufferLine&&l<=d.endBufferLine},_.prototype._lineAdjacentToZone=function(d,l,g){return l>=d.startBufferLine-this._linePadding[g||"full"]&&l<=d.endBufferLine+this._linePadding[g||"full"]},_.prototype._addLineToZone=function(d,l){d.startBufferLine=Math.min(d.startBufferLine,l),d.endBufferLine=Math.max(d.endBufferLine,l)},_}();p.ColorZoneStore=c},5744:function(N,p,x){var c,_=this&&this.__extends||(c=function(n,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,m){u.__proto__=m}||function(u,m){for(var S in m)Object.prototype.hasOwnProperty.call(m,S)&&(u[S]=m[S])},c(n,f)},function(n,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function u(){this.constructor=n}c(n,f),n.prototype=f===null?Object.create(f):(u.prototype=f.prototype,new u)}),d=this&&this.__decorate||function(n,f,u,m){var S,y=arguments.length,b=y<3?f:m===null?m=Object.getOwnPropertyDescriptor(f,u):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(n,f,u,m);else for(var C=n.length-1;C>=0;C--)(S=n[C])&&(b=(y<3?S(b):y>3?S(f,u,b):S(f,u))||b);return y>3&&b&&Object.defineProperty(f,u,b),b},l=this&&this.__param||function(n,f){return function(u,m){f(u,m,n)}},g=this&&this.__values||function(n){var f=typeof Symbol=="function"&&Symbol.iterator,u=f&&n[f],m=0;if(u)return u.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&m>=n.length&&(n=void 0),{value:n&&n[m++],done:!n}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(p,"__esModule",{value:!0}),p.OverviewRulerRenderer=void 0;var v=x(5871),s=x(3656),o=x(4725),h=x(844),a=x(2585),t={full:0,left:0,center:0,right:0},e={full:0,left:0,center:0,right:0},r={full:0,left:0,center:0,right:0},i=function(n){function f(u,m,S,y,b,C){var M,w=n.call(this)||this;w._viewportElement=u,w._screenElement=m,w._bufferService=S,w._decorationService=y,w._renderService=b,w._optionsService=C,w._colorZoneStore=new v.ColorZoneStore,w._shouldUpdateDimensions=!0,w._shouldUpdateAnchor=!0,w._lastKnownBufferLength=0,w._canvas=document.createElement("canvas"),w._canvas.classList.add("xterm-decoration-overview-ruler"),w._refreshCanvasDimensions(),(M=w._viewportElement.parentElement)===null||M===void 0||M.insertBefore(w._canvas,w._viewportElement);var R=w._canvas.getContext("2d");if(!R)throw new Error("Ctx cannot be null");return w._ctx=R,w._registerDecorationListeners(),w._registerBufferChangeListeners(),w._registerDimensionChangeListeners(),w}return _(f,n),Object.defineProperty(f.prototype,"_width",{get:function(){return this._optionsService.options.overviewRulerWidth||0},enumerable:!1,configurable:!0}),f.prototype._registerDecorationListeners=function(){var u=this;this.register(this._decorationService.onDecorationRegistered(function(){return u._queueRefresh(void 0,!0)})),this.register(this._decorationService.onDecorationRemoved(function(){return u._queueRefresh(void 0,!0)}))},f.prototype._registerBufferChangeListeners=function(){var u=this;this.register(this._renderService.onRenderedViewportChange(function(){return u._queueRefresh()})),this.register(this._bufferService.buffers.onBufferActivate(function(){u._canvas.style.display=u._bufferService.buffer===u._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(function(){u._lastKnownBufferLength!==u._bufferService.buffers.normal.lines.length&&(u._refreshDrawHeightConstants(),u._refreshColorZonePadding())}))},f.prototype._registerDimensionChangeListeners=function(){var u=this;this.register(this._renderService.onRender(function(){u._containerHeight&&u._containerHeight===u._screenElement.clientHeight||(u._queueRefresh(!0),u._containerHeight=u._screenElement.clientHeight)})),this.register(this._optionsService.onOptionChange(function(m){m==="overviewRulerWidth"&&u._queueRefresh(!0)})),this.register((0,s.addDisposableDomListener)(window,"resize",function(){u._queueRefresh(!0)})),this._queueRefresh(!0)},f.prototype.dispose=function(){var u;(u=this._canvas)===null||u===void 0||u.remove(),n.prototype.dispose.call(this)},f.prototype._refreshDrawConstants=function(){var u=Math.floor(this._canvas.width/3),m=Math.ceil(this._canvas.width/3);e.full=this._canvas.width,e.left=u,e.center=m,e.right=u,this._refreshDrawHeightConstants(),r.full=0,r.left=0,r.center=e.left,r.right=e.left+e.center},f.prototype._refreshDrawHeightConstants=function(){t.full=Math.round(2*window.devicePixelRatio);var u=this._canvas.height/this._bufferService.buffer.lines.length,m=Math.round(Math.max(Math.min(u,12),6)*window.devicePixelRatio);t.left=m,t.center=m,t.right=m},f.prototype._refreshColorZonePadding=function(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*t.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*t.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*t.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*t.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length},f.prototype._refreshCanvasDimensions=function(){this._canvas.style.width=this._width+"px",this._canvas.width=Math.round(this._width*window.devicePixelRatio),this._canvas.style.height=this._screenElement.clientHeight+"px",this._canvas.height=Math.round(this._screenElement.clientHeight*window.devicePixelRatio),this._refreshDrawConstants(),this._refreshColorZonePadding()},f.prototype._refreshDecorations=function(){var u,m,S,y,b,C;this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();try{for(var M=g(this._decorationService.decorations),w=M.next();!w.done;w=M.next()){var R=w.value;this._colorZoneStore.addDecoration(R)}}catch(j){u={error:j}}finally{try{w&&!w.done&&(m=M.return)&&m.call(M)}finally{if(u)throw u.error}}this._ctx.lineWidth=1;var E=this._colorZoneStore.zones;try{for(var L=g(E),A=L.next();!A.done;A=L.next())(z=A.value).position!=="full"&&this._renderColorZone(z)}catch(j){S={error:j}}finally{try{A&&!A.done&&(y=L.return)&&y.call(L)}finally{if(S)throw S.error}}try{for(var T=g(E),W=T.next();!W.done;W=T.next()){var z;(z=W.value).position==="full"&&this._renderColorZone(z)}}catch(j){b={error:j}}finally{try{W&&!W.done&&(C=T.return)&&C.call(T)}finally{if(b)throw b.error}}this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1},f.prototype._renderColorZone=function(u){this._ctx.fillStyle=u.color,this._ctx.fillRect(r[u.position||"full"],Math.round((this._canvas.height-1)*(u.startBufferLine/this._bufferService.buffers.active.lines.length)-t[u.position||"full"]/2),e[u.position||"full"],Math.round((this._canvas.height-1)*((u.endBufferLine-u.startBufferLine)/this._bufferService.buffers.active.lines.length)+t[u.position||"full"]))},f.prototype._queueRefresh=function(u,m){var S=this;this._shouldUpdateDimensions=u||this._shouldUpdateDimensions,this._shouldUpdateAnchor=m||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=window.requestAnimationFrame(function(){S._refreshDecorations(),S._animationFrame=void 0}))},d([l(2,a.IBufferService),l(3,a.IDecorationService),l(4,o.IRenderService),l(5,a.IOptionsService)],f)}(h.Disposable);p.OverviewRulerRenderer=i},2950:function(N,p,x){var c=this&&this.__decorate||function(v,s,o,h){var a,t=arguments.length,e=t<3?s:h===null?h=Object.getOwnPropertyDescriptor(s,o):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(v,s,o,h);else for(var r=v.length-1;r>=0;r--)(a=v[r])&&(e=(t<3?a(e):t>3?a(s,o,e):a(s,o))||e);return t>3&&e&&Object.defineProperty(s,o,e),e},_=this&&this.__param||function(v,s){return function(o,h){s(o,h,v)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CompositionHelper=void 0;var d=x(4725),l=x(2585),g=function(){function v(s,o,h,a,t,e){this._textarea=s,this._compositionView=o,this._bufferService=h,this._optionsService=a,this._coreService=t,this._renderService=e,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(v.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),v.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},v.prototype.compositionupdate=function(s){var o=this;this._compositionView.textContent=s.data,this.updateCompositionElements(),setTimeout(function(){o._compositionPosition.end=o._textarea.value.length},0)},v.prototype.compositionend=function(){this._finalizeComposition(!0)},v.prototype.keydown=function(s){if(this._isComposing||this._isSendingComposition){if(s.keyCode===229||s.keyCode===16||s.keyCode===17||s.keyCode===18)return!1;this._finalizeComposition(!1)}return s.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},v.prototype._finalizeComposition=function(s){var o=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,s){var h={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(o._isSendingComposition){o._isSendingComposition=!1;var t;h.start+=o._dataAlreadySent.length,(t=o._isComposing?o._textarea.value.substring(h.start,h.end):o._textarea.value.substring(h.start)).length>0&&o._coreService.triggerDataEvent(t,!0)}},0)}else{this._isSendingComposition=!1;var a=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(a,!0)}},v.prototype._handleAnyTextareaChanges=function(){var s=this,o=this._textarea.value;setTimeout(function(){if(!s._isComposing){var h=s._textarea.value.replace(o,"");h.length>0&&(s._dataAlreadySent=h,s._coreService.triggerDataEvent(h,!0))}},0)},v.prototype.updateCompositionElements=function(s){var o=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var h=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),a=this._renderService.dimensions.actualCellHeight,t=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,e=h*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=e+"px",this._compositionView.style.top=t+"px",this._compositionView.style.height=a+"px",this._compositionView.style.lineHeight=a+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var r=this._compositionView.getBoundingClientRect();this._textarea.style.left=e+"px",this._textarea.style.top=t+"px",this._textarea.style.width=Math.max(r.width,1)+"px",this._textarea.style.height=Math.max(r.height,1)+"px",this._textarea.style.lineHeight=r.height+"px"}s||setTimeout(function(){return o.updateCompositionElements(!0)},0)}},c([_(2,l.IBufferService),_(3,l.IOptionsService),_(4,l.ICoreService),_(5,d.IRenderService)],v)}();p.CompositionHelper=g},9806:(N,p)=>{function x(c,_,d){var l=d.getBoundingClientRect(),g=c.getComputedStyle(d),v=parseInt(g.getPropertyValue("padding-left")),s=parseInt(g.getPropertyValue("padding-top"));return[_.clientX-l.left-v,_.clientY-l.top-s]}Object.defineProperty(p,"__esModule",{value:!0}),p.getRawByteCoords=p.getCoords=p.getCoordsRelativeToElement=void 0,p.getCoordsRelativeToElement=x,p.getCoords=function(c,_,d,l,g,v,s,o,h){if(v){var a=x(c,_,d);if(a)return a[0]=Math.ceil((a[0]+(h?s/2:0))/s),a[1]=Math.ceil(a[1]/o),a[0]=Math.min(Math.max(a[0],1),l+(h?1:0)),a[1]=Math.min(Math.max(a[1],1),g),a}},p.getRawByteCoords=function(c){if(c)return{x:c[0]+32,y:c[1]+32}}},9504:(N,p,x)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.moveToCellSequence=void 0;var c=x(2584);function _(o,h,a,t){var e=o-d(a,o),r=h-d(a,h),i=Math.abs(e-r)-function(n,f,u){for(var m=0,S=n-d(u,n),y=f-d(u,f),b=0;b<Math.abs(S-y);b++){var C=l(n,f)==="A"?-1:1,M=u.buffer.lines.get(S+C*b);M!=null&&M.isWrapped&&m++}return m}(o,h,a);return s(i,v(l(o,h),t))}function d(o,h){for(var a=0,t=o.buffer.lines.get(h),e=t==null?void 0:t.isWrapped;e&&h>=0&&h<o.rows;)a++,e=(t=o.buffer.lines.get(--h))==null?void 0:t.isWrapped;return a}function l(o,h){return o>h?"A":"B"}function g(o,h,a,t,e,r){for(var i=o,n=h,f="";i!==a||n!==t;)i+=e?1:-1,e&&i>r.cols-1?(f+=r.buffer.translateBufferLineToString(n,!1,o,i),i=0,o=0,n++):!e&&i<0&&(f+=r.buffer.translateBufferLineToString(n,!1,0,o+1),o=i=r.cols-1,n--);return f+r.buffer.translateBufferLineToString(n,!1,o,i)}function v(o,h){var a=h?"O":"[";return c.C0.ESC+a+o}function s(o,h){o=Math.floor(o);for(var a="",t=0;t<o;t++)a+=h;return a}p.moveToCellSequence=function(o,h,a,t){var e,r=a.buffer.x,i=a.buffer.y;if(!a.buffer.hasScrollback)return function(f,u,m,S,y,b){return _(u,S,y,b).length===0?"":s(g(f,u,f,u-d(y,u),!1,y).length,v("D",b))}(r,i,0,h,a,t)+_(i,h,a,t)+function(f,u,m,S,y,b){var C;C=_(u,S,y,b).length>0?S-d(y,S):u;var M=S,w=function(R,E,L,A,T,W){var z;return z=_(L,A,T,W).length>0?A-d(T,A):E,R<L&&z<=A||R>=L&&z<A?"C":"D"}(f,u,m,S,y,b);return s(g(f,C,m,M,w==="C",y).length,v(w,b))}(r,i,o,h,a,t);if(i===h)return e=r>o?"D":"C",s(Math.abs(r-o),v(e,t));e=i>h?"D":"C";var n=Math.abs(i-h);return s(function(f,u){return u.cols-f}(i>h?o:r,a)+(n-1)*a.cols+1+((i>h?r:o)-1),v(e,t))}},4389:function(N,p,x){var c=this&&this.__assign||function(){return c=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},c.apply(this,arguments)},_=this&&this.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(p,"__esModule",{value:!0}),p.Terminal=void 0;var d=x(3236),l=x(9042),g=x(7975),v=x(7090),s=x(5741),o=x(8285),h=["cols","rows"],a=function(){function t(e){var r=this;this._core=new d.Terminal(e),this._addonManager=new s.AddonManager,this._publicOptions=c({},this._core.options);var i=function(m){return r._core.options[m]},n=function(m,S){r._checkReadonlyOptions(m),r._core.options[m]=S};for(var f in this._core.options){var u={get:i.bind(this,f),set:n.bind(this,f)};Object.defineProperty(this._publicOptions,f,u)}}return t.prototype._checkReadonlyOptions=function(e){if(h.includes(e))throw new Error('Option "'+e+'" can only be set in the constructor')},t.prototype._checkProposedApi=function(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(t.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onWriteParsed",{get:function(){return this._core.onWriteParsed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new g.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unicode",{get:function(){return this._checkProposedApi(),new v.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new o.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"modes",{get:function(){var e=this._core.coreService.decPrivateModes,r="none";switch(this._core.coreMouseService.activeProtocol){case"X10":r="x10";break;case"VT200":r="vt200";break;case"DRAG":r="drag";break;case"ANY":r="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:r,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this._publicOptions},set:function(e){for(var r in e)this._publicOptions[r]=e[r]},enumerable:!1,configurable:!0}),t.prototype.blur=function(){this._core.blur()},t.prototype.focus=function(){this._core.focus()},t.prototype.resize=function(e,r){this._verifyIntegers(e,r),this._core.resize(e,r)},t.prototype.open=function(e){this._core.open(e)},t.prototype.attachCustomKeyEventHandler=function(e){this._core.attachCustomKeyEventHandler(e)},t.prototype.registerLinkMatcher=function(e,r,i){return this._checkProposedApi(),this._core.registerLinkMatcher(e,r,i)},t.prototype.deregisterLinkMatcher=function(e){this._checkProposedApi(),this._core.deregisterLinkMatcher(e)},t.prototype.registerLinkProvider=function(e){return this._checkProposedApi(),this._core.registerLinkProvider(e)},t.prototype.registerCharacterJoiner=function(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)},t.prototype.deregisterCharacterJoiner=function(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)},t.prototype.registerMarker=function(e){return e===void 0&&(e=0),this._checkProposedApi(),this._verifyIntegers(e),this._core.addMarker(e)},t.prototype.registerDecoration=function(e){var r,i,n;return this._checkProposedApi(),this._verifyPositiveIntegers((r=e.x)!==null&&r!==void 0?r:0,(i=e.width)!==null&&i!==void 0?i:0,(n=e.height)!==null&&n!==void 0?n:0),this._core.registerDecoration(e)},t.prototype.addMarker=function(e){return this.registerMarker(e)},t.prototype.hasSelection=function(){return this._core.hasSelection()},t.prototype.select=function(e,r,i){this._verifyIntegers(e,r,i),this._core.select(e,r,i)},t.prototype.getSelection=function(){return this._core.getSelection()},t.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},t.prototype.clearSelection=function(){this._core.clearSelection()},t.prototype.selectAll=function(){this._core.selectAll()},t.prototype.selectLines=function(e,r){this._verifyIntegers(e,r),this._core.selectLines(e,r)},t.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},t.prototype.scrollLines=function(e){this._verifyIntegers(e),this._core.scrollLines(e)},t.prototype.scrollPages=function(e){this._verifyIntegers(e),this._core.scrollPages(e)},t.prototype.scrollToTop=function(){this._core.scrollToTop()},t.prototype.scrollToBottom=function(){this._core.scrollToBottom()},t.prototype.scrollToLine=function(e){this._verifyIntegers(e),this._core.scrollToLine(e)},t.prototype.clear=function(){this._core.clear()},t.prototype.write=function(e,r){this._core.write(e,r)},t.prototype.writeUtf8=function(e,r){this._core.write(e,r)},t.prototype.writeln=function(e,r){this._core.write(e),this._core.write(`\r
4
4
  `,r)},t.prototype.paste=function(e){this._core.paste(e)},t.prototype.getOption=function(e){return this._core.optionsService.getOption(e)},t.prototype.setOption=function(e,r){this._checkReadonlyOptions(e),this._core.optionsService.setOption(e,r)},t.prototype.refresh=function(e,r){this._verifyIntegers(e,r),this._core.refresh(e,r)},t.prototype.reset=function(){this._core.reset()},t.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},t.prototype.loadAddon=function(e){return this._addonManager.loadAddon(this,e)},Object.defineProperty(t,"strings",{get:function(){return l},enumerable:!1,configurable:!0}),t.prototype._verifyIntegers=function(){for(var e,r,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];try{for(var f=_(i),u=f.next();!u.done;u=f.next()){var m=u.value;if(m===1/0||isNaN(m)||m%1!=0)throw new Error("This API only accepts integers")}}catch(S){e={error:S}}finally{try{u&&!u.done&&(r=f.return)&&r.call(f)}finally{if(e)throw e.error}}},t.prototype._verifyPositiveIntegers=function(){for(var e,r,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];try{for(var f=_(i),u=f.next();!u.done;u=f.next()){var m=u.value;if(m&&(m===1/0||isNaN(m)||m%1!=0||m<0))throw new Error("This API only accepts positive integers")}}catch(S){e={error:S}}finally{try{u&&!u.done&&(r=f.return)&&r.call(f)}finally{if(e)throw e.error}}},t}();p.Terminal=a},1546:function(N,p,x){var c=this&&this.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(p,"__esModule",{value:!0}),p.BaseRenderLayer=void 0;var _=x(643),d=x(8803),l=x(1420),g=x(3734),v=x(1752),s=x(8055),o=x(9631),h=x(8978),a=function(){function t(e,r,i,n,f,u,m,S,y){this._container=e,this._alpha=n,this._colors=f,this._rendererId=u,this._bufferService=m,this._optionsService=S,this._decorationService=y,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._columnSelectMode=!1,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+r+"-layer"),this._canvas.style.zIndex=i.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return t.prototype.dispose=function(){var e;(0,o.removeElementFromParent)(this._canvas),(e=this._charAtlas)===null||e===void 0||e.dispose()},t.prototype._initCanvas=function(){this._ctx=(0,v.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},t.prototype.onOptionsChanged=function(){},t.prototype.onBlur=function(){},t.prototype.onFocus=function(){},t.prototype.onCursorMove=function(){},t.prototype.onGridChanged=function(e,r){},t.prototype.onSelectionChanged=function(e,r,i){i===void 0&&(i=!1),this._selectionStart=e,this._selectionEnd=r,this._columnSelectMode=i},t.prototype.setColors=function(e){this._refreshCharAtlas(e)},t.prototype._setTransparency=function(e){if(e!==this._alpha){var r=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,r),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},t.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,l.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},t.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},t.prototype.clearTextureAtlas=function(){var e;(e=this._charAtlas)===null||e===void 0||e.clear()},t.prototype._fillCells=function(e,r,i,n){this._ctx.fillRect(e*this._scaledCellWidth,r*this._scaledCellHeight,i*this._scaledCellWidth,n*this._scaledCellHeight)},t.prototype._fillMiddleLineAtCells=function(e,r,i){i===void 0&&(i=1);var n=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(e*this._scaledCellWidth,(r+1)*this._scaledCellHeight-n-window.devicePixelRatio,i*this._scaledCellWidth,window.devicePixelRatio)},t.prototype._fillBottomLineAtCells=function(e,r,i){i===void 0&&(i=1),this._ctx.fillRect(e*this._scaledCellWidth,(r+1)*this._scaledCellHeight-window.devicePixelRatio-1,i*this._scaledCellWidth,window.devicePixelRatio)},t.prototype._fillLeftLineAtCell=function(e,r,i){this._ctx.fillRect(e*this._scaledCellWidth,r*this._scaledCellHeight,window.devicePixelRatio*i,this._scaledCellHeight)},t.prototype._strokeRectAtCell=function(e,r,i,n){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,r*this._scaledCellHeight+window.devicePixelRatio/2,i*this._scaledCellWidth-window.devicePixelRatio,n*this._scaledCellHeight-window.devicePixelRatio)},t.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},t.prototype._clearCells=function(e,r,i,n){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,r*this._scaledCellHeight,i*this._scaledCellWidth,n*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,r*this._scaledCellHeight,i*this._scaledCellWidth,n*this._scaledCellHeight))},t.prototype._fillCharTrueColor=function(e,r,i){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=d.TEXT_BASELINE,this._clipRow(i);var n=!1;this._optionsService.rawOptions.customGlyphs!==!1&&(n=(0,h.tryDrawCustomChar)(this._ctx,e.getChars(),r*this._scaledCellWidth,i*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),n||this._ctx.fillText(e.getChars(),r*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},t.prototype._drawChars=function(e,r,i){var n,f,u,m=this._getContrastColor(e,r,i);if(m||e.isFgRGB()||e.isBgRGB())this._drawUncachedChars(e,r,i,m);else{var S,y;e.isInverse()?(S=e.isBgDefault()?d.INVERTED_DEFAULT_COLOR:e.getBgColor(),y=e.isFgDefault()?d.INVERTED_DEFAULT_COLOR:e.getFgColor()):(y=e.isBgDefault()?_.DEFAULT_COLOR:e.getBgColor(),S=e.isFgDefault()?_.DEFAULT_COLOR:e.getFgColor()),S+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&S<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||_.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||_.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=y,this._currentGlyphIdentifier.fg=S,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic();var b=!1;try{for(var C=c(this._decorationService.getDecorationsAtCell(r,i)),M=C.next();!M.done;M=C.next()){var w=M.value;if(w.backgroundColorRGB||w.foregroundColorRGB){b=!0;break}}}catch(R){n={error:R}}finally{try{M&&!M.done&&(f=C.return)&&f.call(C)}finally{if(n)throw n.error}}!b&&(!((u=this._charAtlas)===null||u===void 0)&&u.draw(this._ctx,this._currentGlyphIdentifier,r*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(e,r,i)}},t.prototype._drawUncachedChars=function(e,r,i,n){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline=d.TEXT_BASELINE,e.isInverse())if(n)this._ctx.fillStyle=n.css;else if(e.isBgDefault())this._ctx.fillStyle=s.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+g.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var f=e.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&f<8&&(f+=8),this._ctx.fillStyle=this._colors.ansi[f].css}else if(n)this._ctx.fillStyle=n.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+g.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var u=e.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&u<8&&(u+=8),this._ctx.fillStyle=this._colors.ansi[u].css}this._clipRow(i),e.isDim()&&(this._ctx.globalAlpha=d.DIM_OPACITY);var m=!1;this._optionsService.rawOptions.customGlyphs!==!1&&(m=(0,h.tryDrawCustomChar)(this._ctx,e.getChars(),r*this._scaledCellWidth,i*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),m||this._ctx.fillText(e.getChars(),r*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},t.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},t.prototype._getFont=function(e,r){return(r?"italic":"")+" "+(e?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},t.prototype._getContrastColor=function(e,r,i){var n,f,u,m,S=!1;try{for(var y=c(this._decorationService.getDecorationsAtCell(r,i)),b=y.next();!b.done;b=y.next()){var C=b.value;C.options.layer!=="top"&&S||(C.backgroundColorRGB&&(u=C.backgroundColorRGB.rgba),C.foregroundColorRGB&&(m=C.foregroundColorRGB.rgba),S=C.options.layer==="top")}}catch($){n={error:$}}finally{try{b&&!b.done&&(f=y.return)&&f.call(y)}finally{if(n)throw n.error}}if(S||this._colors.selectionForeground&&this._isCellInSelection(r,i)&&(m=this._colors.selectionForeground.rgba),u||m||this._optionsService.rawOptions.minimumContrastRatio!==1&&!(0,v.excludeFromContrastRatioDemands)(e.getCode())){if(!u&&!m){var M=this._colors.contrastCache.getColor(e.bg,e.fg);if(M!==void 0)return M||void 0}var w=e.getFgColor(),R=e.getFgColorMode(),E=e.getBgColor(),L=e.getBgColorMode(),A=!!e.isInverse(),T=!!e.isInverse();if(A){var W=w;w=E,E=W;var z=R;R=L,L=z}var j=this._resolveBackgroundRgba(u!==void 0?50331648:L,u??E,A),K=this._resolveForegroundRgba(R,w,A,T),G=s.rgba.ensureContrastRatio(u??j,m??K,this._optionsService.rawOptions.minimumContrastRatio);if(!G){if(!m)return void this._colors.contrastCache.setColor(e.bg,e.fg,null);G=m}var k={css:s.channels.toCss(G>>24&255,G>>16&255,G>>8&255),rgba:G};return u||m||this._colors.contrastCache.setColor(e.bg,e.fg,k),k}},t.prototype._resolveBackgroundRgba=function(e,r,i){switch(e){case 16777216:case 33554432:return this._colors.ansi[r].rgba;case 50331648:return r<<8;default:return i?this._colors.foreground.rgba:this._colors.background.rgba}},t.prototype._resolveForegroundRgba=function(e,r,i,n){switch(e){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&n&&r<8&&(r+=8),this._colors.ansi[r].rgba;case 50331648:return r<<8;default:return i?this._colors.background.rgba:this._colors.foreground.rgba}},t.prototype._isCellInSelection=function(e,r){var i=this._selectionStart,n=this._selectionEnd;return!(!i||!n)&&(this._columnSelectMode?e>=i[0]&&r>=i[1]&&e<n[0]&&r<n[1]:r>i[1]&&r<n[1]||i[1]===n[1]&&r===i[1]&&e>=i[0]&&e<n[0]||i[1]<n[1]&&r===n[1]&&e<n[0]||i[1]<n[1]&&r===i[1]&&e>=i[0])},t}();p.BaseRenderLayer=a},2512:function(N,p,x){var c,_=this&&this.__extends||(c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var f in n)Object.prototype.hasOwnProperty.call(n,f)&&(i[f]=n[f])},c(e,r)},function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=e}c(e,r),e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}),d=this&&this.__decorate||function(e,r,i,n){var f,u=arguments.length,m=u<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,i):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(e,r,i,n);else for(var S=e.length-1;S>=0;S--)(f=e[S])&&(m=(u<3?f(m):u>3?f(r,i,m):f(r,i))||m);return u>3&&m&&Object.defineProperty(r,i,m),m},l=this&&this.__param||function(e,r){return function(i,n){r(i,n,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CursorRenderLayer=void 0;var g=x(1546),v=x(511),s=x(2585),o=x(4725),h=600,a=function(e){function r(i,n,f,u,m,S,y,b,C,M){var w=e.call(this,i,"cursor",n,!0,f,u,S,y,M)||this;return w._onRequestRedraw=m,w._coreService=b,w._coreBrowserService=C,w._cell=new v.CellData,w._state={x:0,y:0,isFocused:!1,style:"",width:0},w._cursorRenderers={bar:w._renderBarCursor.bind(w),block:w._renderBlockCursor.bind(w),underline:w._renderUnderlineCursor.bind(w)},w}return _(r,e),r.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),e.prototype.dispose.call(this)},r.prototype.resize=function(i){e.prototype.resize.call(this,i),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},r.prototype.reset=function(){var i;this._clearCursor(),(i=this._cursorBlinkStateManager)===null||i===void 0||i.restartBlinkAnimation(),this.onOptionsChanged()},r.prototype.onBlur=function(){var i;(i=this._cursorBlinkStateManager)===null||i===void 0||i.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},r.prototype.onFocus=function(){var i;(i=this._cursorBlinkStateManager)===null||i===void 0||i.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},r.prototype.onOptionsChanged=function(){var i,n=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new t(this._coreBrowserService.isFocused,function(){n._render(!0)})):((i=this._cursorBlinkStateManager)===null||i===void 0||i.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},r.prototype.onCursorMove=function(){var i;(i=this._cursorBlinkStateManager)===null||i===void 0||i.restartBlinkAnimation()},r.prototype.onGridChanged=function(i,n){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},r.prototype._render=function(i){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var n=this._bufferService.buffer.ybase+this._bufferService.buffer.y,f=n-this._bufferService.buffer.ydisp;if(f<0||f>=this._bufferService.rows)this._clearCursor();else{var u=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(n).loadCell(u,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var m=this._optionsService.rawOptions.cursorStyle;return m&&m!=="block"?this._cursorRenderers[m](u,f,this._cell):this._renderBlurCursor(u,f,this._cell),this._ctx.restore(),this._state.x=u,this._state.y=f,this._state.isFocused=!1,this._state.style=m,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===u&&this._state.y===f&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](u,f,this._cell),this._ctx.restore(),this._state.x=u,this._state.y=f,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},r.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},r.prototype._renderBarCursor=function(i,n,f){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(i,n,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},r.prototype._renderBlockCursor=function(i,n,f){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(i,n,f.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(f,i,n),this._ctx.restore()},r.prototype._renderUnderlineCursor=function(i,n,f){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(i,n),this._ctx.restore()},r.prototype._renderBlurCursor=function(i,n,f){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(i,n,f.getWidth(),1),this._ctx.restore()},d([l(5,s.IBufferService),l(6,s.IOptionsService),l(7,s.ICoreService),l(8,o.ICoreBrowserService),l(9,s.IDecorationService)],r)}(g.BaseRenderLayer);p.CursorRenderLayer=a;var t=function(){function e(r,i){this._renderCallback=i,this.isCursorVisible=!0,r&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.restartBlinkAnimation=function(){var r=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){r._renderCallback(),r._animationFrame=void 0})))},e.prototype._restartInterval=function(r){var i=this;r===void 0&&(r=h),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(i._animationTimeRestarted){var n=h-(Date.now()-i._animationTimeRestarted);if(i._animationTimeRestarted=void 0,n>0)return void i._restartInterval(n)}i.isCursorVisible=!1,i._animationFrame=window.requestAnimationFrame(function(){i._renderCallback(),i._animationFrame=void 0}),i._blinkInterval=window.setInterval(function(){if(i._animationTimeRestarted){var f=h-(Date.now()-i._animationTimeRestarted);return i._animationTimeRestarted=void 0,void i._restartInterval(f)}i.isCursorVisible=!i.isCursorVisible,i._animationFrame=window.requestAnimationFrame(function(){i._renderCallback(),i._animationFrame=void 0})},h)},r)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},e}()},8978:function(N,p,x){var c,_,d,l,g,v,s,o,h,a,t,e,r,i,n,f,u,m,S,y,b,C,M,w,R,E,L,A,T,W,z,j,K,G,k,$,Y,le,B,ne,V,q,D,O,U,Z,J,Q,ue,me,Ce,X,be,Me,He,Ue,Wt,Ut,qt,Nt,zt,Gt,It,Ht,qe,Ne,ze,Ge,Ke,Ve,Xe,Ye,Ze,Je,$e,Qe,et,tt,rt,it,nt,ot,st,at,ct,lt,ht,ut,ft,dt,_t,pt,vt,gt,yt,mt,Ct,bt,St,wt,Lt,xt,Et,Rt,Mt,At,kt,Dt,Ot,Tt,Bt,Pt,Ft,jt,Kt,Vt,Xt,Yt,Zt,Jt,$t,Qt,er,tr,rr,ir,nr,or,ar=this&&this.__read||function(H,F){var P=typeof Symbol=="function"&&H[Symbol.iterator];if(!P)return H;var I,ce,fe=P.call(H),oe=[];try{for(;(F===void 0||F-- >0)&&!(I=fe.next()).done;)oe.push(I.value)}catch(de){ce={error:de}}finally{try{I&&!I.done&&(P=fe.return)&&P.call(fe)}finally{if(ce)throw ce.error}}return oe},sr=this&&this.__values||function(H){var F=typeof Symbol=="function"&&Symbol.iterator,P=F&&H[F],I=0;if(P)return P.call(H);if(H&&typeof H.length=="number")return{next:function(){return H&&I>=H.length&&(H=void 0),{value:H&&H[I++],done:!H}}};throw new TypeError(F?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(p,"__esModule",{value:!0}),p.tryDrawCustomChar=p.powerlineDefinitions=p.boxDrawingDefinitions=p.blockElementDefinitions=void 0;var cr=x(1752);p.blockElementDefinitions={"▀":[{x:0,y:0,w:8,h:4}],"▁":[{x:0,y:7,w:8,h:1}],"▂":[{x:0,y:6,w:8,h:2}],"▃":[{x:0,y:5,w:8,h:3}],"▄":[{x:0,y:4,w:8,h:4}],"▅":[{x:0,y:3,w:8,h:5}],"▆":[{x:0,y:2,w:8,h:6}],"▇":[{x:0,y:1,w:8,h:7}],"█":[{x:0,y:0,w:8,h:8}],"▉":[{x:0,y:0,w:7,h:8}],"▊":[{x:0,y:0,w:6,h:8}],"▋":[{x:0,y:0,w:5,h:8}],"▌":[{x:0,y:0,w:4,h:8}],"▍":[{x:0,y:0,w:3,h:8}],"▎":[{x:0,y:0,w:2,h:8}],"▏":[{x:0,y:0,w:1,h:8}],"▐":[{x:4,y:0,w:4,h:8}],"▔":[{x:0,y:0,w:9,h:1}],"▕":[{x:7,y:0,w:1,h:8}],"▖":[{x:0,y:4,w:4,h:4}],"▗":[{x:4,y:4,w:4,h:4}],"▘":[{x:0,y:0,w:4,h:4}],"▙":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"▚":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"▛":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"▜":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"▝":[{x:4,y:0,w:4,h:4}],"▞":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"▟":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"🭰":[{x:1,y:0,w:1,h:8}],"🭱":[{x:2,y:0,w:1,h:8}],"🭲":[{x:3,y:0,w:1,h:8}],"🭳":[{x:4,y:0,w:1,h:8}],"🭴":[{x:5,y:0,w:1,h:8}],"🭵":[{x:6,y:0,w:1,h:8}],"🭶":[{x:0,y:1,w:8,h:1}],"🭷":[{x:0,y:2,w:8,h:1}],"🭸":[{x:0,y:3,w:8,h:1}],"🭹":[{x:0,y:4,w:8,h:1}],"🭺":[{x:0,y:5,w:8,h:1}],"🭻":[{x:0,y:6,w:8,h:1}],"🭼":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🭽":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭾":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭿":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🮀":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮁":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮂":[{x:0,y:0,w:8,h:2}],"🮃":[{x:0,y:0,w:8,h:3}],"🮄":[{x:0,y:0,w:8,h:5}],"🮅":[{x:0,y:0,w:8,h:6}],"🮆":[{x:0,y:0,w:8,h:7}],"🮇":[{x:6,y:0,w:2,h:8}],"🮈":[{x:5,y:0,w:3,h:8}],"🮉":[{x:3,y:0,w:5,h:8}],"🮊":[{x:2,y:0,w:6,h:8}],"🮋":[{x:1,y:0,w:7,h:8}],"🮕":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"🮖":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"🮗":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var lr={"░":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"▒":[[1,0],[0,0],[0,1],[0,0]],"▓":[[0,1],[1,1],[1,0],[1,1]]};p.boxDrawingDefinitions={"─":(c={},c[1]="M0,.5 L1,.5",c),"━":(_={},_[3]="M0,.5 L1,.5",_),"│":(d={},d[1]="M.5,0 L.5,1",d),"┃":(l={},l[3]="M.5,0 L.5,1",l),"┌":(g={},g[1]="M0.5,1 L.5,.5 L1,.5",g),"┏":(v={},v[3]="M0.5,1 L.5,.5 L1,.5",v),"┐":(s={},s[1]="M0,.5 L.5,.5 L.5,1",s),"┓":(o={},o[3]="M0,.5 L.5,.5 L.5,1",o),"└":(h={},h[1]="M.5,0 L.5,.5 L1,.5",h),"┗":(a={},a[3]="M.5,0 L.5,.5 L1,.5",a),"┘":(t={},t[1]="M.5,0 L.5,.5 L0,.5",t),"┛":(e={},e[3]="M.5,0 L.5,.5 L0,.5",e),"├":(r={},r[1]="M.5,0 L.5,1 M.5,.5 L1,.5",r),"┣":(i={},i[3]="M.5,0 L.5,1 M.5,.5 L1,.5",i),"┤":(n={},n[1]="M.5,0 L.5,1 M.5,.5 L0,.5",n),"┫":(f={},f[3]="M.5,0 L.5,1 M.5,.5 L0,.5",f),"┬":(u={},u[1]="M0,.5 L1,.5 M.5,.5 L.5,1",u),"┳":(m={},m[3]="M0,.5 L1,.5 M.5,.5 L.5,1",m),"┴":(S={},S[1]="M0,.5 L1,.5 M.5,.5 L.5,0",S),"┻":(y={},y[3]="M0,.5 L1,.5 M.5,.5 L.5,0",y),"┼":(b={},b[1]="M0,.5 L1,.5 M.5,0 L.5,1",b),"╋":(C={},C[3]="M0,.5 L1,.5 M.5,0 L.5,1",C),"╴":(M={},M[1]="M.5,.5 L0,.5",M),"╸":(w={},w[3]="M.5,.5 L0,.5",w),"╵":(R={},R[1]="M.5,.5 L.5,0",R),"╹":(E={},E[3]="M.5,.5 L.5,0",E),"╶":(L={},L[1]="M.5,.5 L1,.5",L),"╺":(A={},A[3]="M.5,.5 L1,.5",A),"╷":(T={},T[1]="M.5,.5 L.5,1",T),"╻":(W={},W[3]="M.5,.5 L.5,1",W),"═":(z={},z[1]=function(H,F){return"M0,"+(.5-F)+" L1,"+(.5-F)+" M0,"+(.5+F)+" L1,"+(.5+F)},z),"║":(j={},j[1]=function(H,F){return"M"+(.5-H)+",0 L"+(.5-H)+",1 M"+(.5+H)+",0 L"+(.5+H)+",1"},j),"╒":(K={},K[1]=function(H,F){return"M.5,1 L.5,"+(.5-F)+" L1,"+(.5-F)+" M.5,"+(.5+F)+" L1,"+(.5+F)},K),"╓":(G={},G[1]=function(H,F){return"M"+(.5-H)+",1 L"+(.5-H)+",.5 L1,.5 M"+(.5+H)+",.5 L"+(.5+H)+",1"},G),"╔":(k={},k[1]=function(H,F){return"M1,"+(.5-F)+" L"+(.5-H)+","+(.5-F)+" L"+(.5-H)+",1 M1,"+(.5+F)+" L"+(.5+H)+","+(.5+F)+" L"+(.5+H)+",1"},k),"╕":($={},$[1]=function(H,F){return"M0,"+(.5-F)+" L.5,"+(.5-F)+" L.5,1 M0,"+(.5+F)+" L.5,"+(.5+F)},$),"╖":(Y={},Y[1]=function(H,F){return"M"+(.5+H)+",1 L"+(.5+H)+",.5 L0,.5 M"+(.5-H)+",.5 L"+(.5-H)+",1"},Y),"╗":(le={},le[1]=function(H,F){return"M0,"+(.5+F)+" L"+(.5-H)+","+(.5+F)+" L"+(.5-H)+",1 M0,"+(.5-F)+" L"+(.5+H)+","+(.5-F)+" L"+(.5+H)+",1"},le),"╘":(B={},B[1]=function(H,F){return"M.5,0 L.5,"+(.5+F)+" L1,"+(.5+F)+" M.5,"+(.5-F)+" L1,"+(.5-F)},B),"╙":(ne={},ne[1]=function(H,F){return"M1,.5 L"+(.5-H)+",.5 L"+(.5-H)+",0 M"+(.5+H)+",.5 L"+(.5+H)+",0"},ne),"╚":(V={},V[1]=function(H,F){return"M1,"+(.5-F)+" L"+(.5+H)+","+(.5-F)+" L"+(.5+H)+",0 M1,"+(.5+F)+" L"+(.5-H)+","+(.5+F)+" L"+(.5-H)+",0"},V),"╛":(q={},q[1]=function(H,F){return"M0,"+(.5+F)+" L.5,"+(.5+F)+" L.5,0 M0,"+(.5-F)+" L.5,"+(.5-F)},q),"╜":(D={},D[1]=function(H,F){return"M0,.5 L"+(.5+H)+",.5 L"+(.5+H)+",0 M"+(.5-H)+",.5 L"+(.5-H)+",0"},D),"╝":(O={},O[1]=function(H,F){return"M0,"+(.5-F)+" L"+(.5-H)+","+(.5-F)+" L"+(.5-H)+",0 M0,"+(.5+F)+" L"+(.5+H)+","+(.5+F)+" L"+(.5+H)+",0"},O),"╞":(U={},U[1]=function(H,F){return"M.5,0 L.5,1 M.5,"+(.5-F)+" L1,"+(.5-F)+" M.5,"+(.5+F)+" L1,"+(.5+F)},U),"╟":(Z={},Z[1]=function(H,F){return"M"+(.5-H)+",0 L"+(.5-H)+",1 M"+(.5+H)+",0 L"+(.5+H)+",1 M"+(.5+H)+",.5 L1,.5"},Z),"╠":(J={},J[1]=function(H,F){return"M"+(.5-H)+",0 L"+(.5-H)+",1 M1,"+(.5+F)+" L"+(.5+H)+","+(.5+F)+" L"+(.5+H)+",1 M1,"+(.5-F)+" L"+(.5+H)+","+(.5-F)+" L"+(.5+H)+",0"},J),"╡":(Q={},Q[1]=function(H,F){return"M.5,0 L.5,1 M0,"+(.5-F)+" L.5,"+(.5-F)+" M0,"+(.5+F)+" L.5,"+(.5+F)},Q),"╢":(ue={},ue[1]=function(H,F){return"M0,.5 L"+(.5-H)+",.5 M"+(.5-H)+",0 L"+(.5-H)+",1 M"+(.5+H)+",0 L"+(.5+H)+",1"},ue),"╣":(me={},me[1]=function(H,F){return"M"+(.5+H)+",0 L"+(.5+H)+",1 M0,"+(.5+F)+" L"+(.5-H)+","+(.5+F)+" L"+(.5-H)+",1 M0,"+(.5-F)+" L"+(.5-H)+","+(.5-F)+" L"+(.5-H)+",0"},me),"╤":(Ce={},Ce[1]=function(H,F){return"M0,"+(.5-F)+" L1,"+(.5-F)+" M0,"+(.5+F)+" L1,"+(.5+F)+" M.5,"+(.5+F)+" L.5,1"},Ce),"╥":(X={},X[1]=function(H,F){return"M0,.5 L1,.5 M"+(.5-H)+",.5 L"+(.5-H)+",1 M"+(.5+H)+",.5 L"+(.5+H)+",1"},X),"╦":(be={},be[1]=function(H,F){return"M0,"+(.5-F)+" L1,"+(.5-F)+" M0,"+(.5+F)+" L"+(.5-H)+","+(.5+F)+" L"+(.5-H)+",1 M1,"+(.5+F)+" L"+(.5+H)+","+(.5+F)+" L"+(.5+H)+",1"},be),"╧":(Me={},Me[1]=function(H,F){return"M.5,0 L.5,"+(.5-F)+" M0,"+(.5-F)+" L1,"+(.5-F)+" M0,"+(.5+F)+" L1,"+(.5+F)},Me),"╨":(He={},He[1]=function(H,F){return"M0,.5 L1,.5 M"+(.5-H)+",.5 L"+(.5-H)+",0 M"+(.5+H)+",.5 L"+(.5+H)+",0"},He),"╩":(Ue={},Ue[1]=function(H,F){return"M0,"+(.5+F)+" L1,"+(.5+F)+" M0,"+(.5-F)+" L"+(.5-H)+","+(.5-F)+" L"+(.5-H)+",0 M1,"+(.5-F)+" L"+(.5+H)+","+(.5-F)+" L"+(.5+H)+",0"},Ue),"╪":(Wt={},Wt[1]=function(H,F){return"M.5,0 L.5,1 M0,"+(.5-F)+" L1,"+(.5-F)+" M0,"+(.5+F)+" L1,"+(.5+F)},Wt),"╫":(Ut={},Ut[1]=function(H,F){return"M0,.5 L1,.5 M"+(.5-H)+",0 L"+(.5-H)+",1 M"+(.5+H)+",0 L"+(.5+H)+",1"},Ut),"╬":(qt={},qt[1]=function(H,F){return"M0,"+(.5+F)+" L"+(.5-H)+","+(.5+F)+" L"+(.5-H)+",1 M1,"+(.5+F)+" L"+(.5+H)+","+(.5+F)+" L"+(.5+H)+",1 M0,"+(.5-F)+" L"+(.5-H)+","+(.5-F)+" L"+(.5-H)+",0 M1,"+(.5-F)+" L"+(.5+H)+","+(.5-F)+" L"+(.5+H)+",0"},qt),"╱":(Nt={},Nt[1]="M1,0 L0,1",Nt),"╲":(zt={},zt[1]="M0,0 L1,1",zt),"╳":(Gt={},Gt[1]="M1,0 L0,1 M0,0 L1,1",Gt),"╼":(It={},It[1]="M.5,.5 L0,.5",It[3]="M.5,.5 L1,.5",It),"╽":(Ht={},Ht[1]="M.5,.5 L.5,0",Ht[3]="M.5,.5 L.5,1",Ht),"╾":(qe={},qe[1]="M.5,.5 L1,.5",qe[3]="M.5,.5 L0,.5",qe),"╿":(Ne={},Ne[1]="M.5,.5 L.5,1",Ne[3]="M.5,.5 L.5,0",Ne),"┍":(ze={},ze[1]="M.5,.5 L.5,1",ze[3]="M.5,.5 L1,.5",ze),"┎":(Ge={},Ge[1]="M.5,.5 L1,.5",Ge[3]="M.5,.5 L.5,1",Ge),"┑":(Ke={},Ke[1]="M.5,.5 L.5,1",Ke[3]="M.5,.5 L0,.5",Ke),"┒":(Ve={},Ve[1]="M.5,.5 L0,.5",Ve[3]="M.5,.5 L.5,1",Ve),"┕":(Xe={},Xe[1]="M.5,.5 L.5,0",Xe[3]="M.5,.5 L1,.5",Xe),"┖":(Ye={},Ye[1]="M.5,.5 L1,.5",Ye[3]="M.5,.5 L.5,0",Ye),"┙":(Ze={},Ze[1]="M.5,.5 L.5,0",Ze[3]="M.5,.5 L0,.5",Ze),"┚":(Je={},Je[1]="M.5,.5 L0,.5",Je[3]="M.5,.5 L.5,0",Je),"┝":($e={},$e[1]="M.5,0 L.5,1",$e[3]="M.5,.5 L1,.5",$e),"┞":(Qe={},Qe[1]="M0.5,1 L.5,.5 L1,.5",Qe[3]="M.5,.5 L.5,0",Qe),"┟":(et={},et[1]="M.5,0 L.5,.5 L1,.5",et[3]="M.5,.5 L.5,1",et),"┠":(tt={},tt[1]="M.5,.5 L1,.5",tt[3]="M.5,0 L.5,1",tt),"┡":(rt={},rt[1]="M.5,.5 L.5,1",rt[3]="M.5,0 L.5,.5 L1,.5",rt),"┢":(it={},it[1]="M.5,.5 L.5,0",it[3]="M0.5,1 L.5,.5 L1,.5",it),"┥":(nt={},nt[1]="M.5,0 L.5,1",nt[3]="M.5,.5 L0,.5",nt),"┦":(ot={},ot[1]="M0,.5 L.5,.5 L.5,1",ot[3]="M.5,.5 L.5,0",ot),"┧":(st={},st[1]="M.5,0 L.5,.5 L0,.5",st[3]="M.5,.5 L.5,1",st),"┨":(at={},at[1]="M.5,.5 L0,.5",at[3]="M.5,0 L.5,1",at),"┩":(ct={},ct[1]="M.5,.5 L.5,1",ct[3]="M.5,0 L.5,.5 L0,.5",ct),"┪":(lt={},lt[1]="M.5,.5 L.5,0",lt[3]="M0,.5 L.5,.5 L.5,1",lt),"┭":(ht={},ht[1]="M0.5,1 L.5,.5 L1,.5",ht[3]="M.5,.5 L0,.5",ht),"┮":(ut={},ut[1]="M0,.5 L.5,.5 L.5,1",ut[3]="M.5,.5 L1,.5",ut),"┯":(ft={},ft[1]="M.5,.5 L.5,1",ft[3]="M0,.5 L1,.5",ft),"┰":(dt={},dt[1]="M0,.5 L1,.5",dt[3]="M.5,.5 L.5,1",dt),"┱":(_t={},_t[1]="M.5,.5 L1,.5",_t[3]="M0,.5 L.5,.5 L.5,1",_t),"┲":(pt={},pt[1]="M.5,.5 L0,.5",pt[3]="M0.5,1 L.5,.5 L1,.5",pt),"┵":(vt={},vt[1]="M.5,0 L.5,.5 L1,.5",vt[3]="M.5,.5 L0,.5",vt),"┶":(gt={},gt[1]="M.5,0 L.5,.5 L0,.5",gt[3]="M.5,.5 L1,.5",gt),"┷":(yt={},yt[1]="M.5,.5 L.5,0",yt[3]="M0,.5 L1,.5",yt),"┸":(mt={},mt[1]="M0,.5 L1,.5",mt[3]="M.5,.5 L.5,0",mt),"┹":(Ct={},Ct[1]="M.5,.5 L1,.5",Ct[3]="M.5,0 L.5,.5 L0,.5",Ct),"┺":(bt={},bt[1]="M.5,.5 L0,.5",bt[3]="M.5,0 L.5,.5 L1,.5",bt),"┽":(St={},St[1]="M.5,0 L.5,1 M.5,.5 L1,.5",St[3]="M.5,.5 L0,.5",St),"┾":(wt={},wt[1]="M.5,0 L.5,1 M.5,.5 L0,.5",wt[3]="M.5,.5 L1,.5",wt),"┿":(Lt={},Lt[1]="M.5,0 L.5,1",Lt[3]="M0,.5 L1,.5",Lt),"╀":(xt={},xt[1]="M0,.5 L1,.5 M.5,.5 L.5,1",xt[3]="M.5,.5 L.5,0",xt),"╁":(Et={},Et[1]="M.5,.5 L.5,0 M0,.5 L1,.5",Et[3]="M.5,.5 L.5,1",Et),"╂":(Rt={},Rt[1]="M0,.5 L1,.5",Rt[3]="M.5,0 L.5,1",Rt),"╃":(Mt={},Mt[1]="M0.5,1 L.5,.5 L1,.5",Mt[3]="M.5,0 L.5,.5 L0,.5",Mt),"╄":(At={},At[1]="M0,.5 L.5,.5 L.5,1",At[3]="M.5,0 L.5,.5 L1,.5",At),"╅":(kt={},kt[1]="M.5,0 L.5,.5 L1,.5",kt[3]="M0,.5 L.5,.5 L.5,1",kt),"╆":(Dt={},Dt[1]="M.5,0 L.5,.5 L0,.5",Dt[3]="M0.5,1 L.5,.5 L1,.5",Dt),"╇":(Ot={},Ot[1]="M.5,.5 L.5,1",Ot[3]="M.5,.5 L.5,0 M0,.5 L1,.5",Ot),"╈":(Tt={},Tt[1]="M.5,.5 L.5,0",Tt[3]="M0,.5 L1,.5 M.5,.5 L.5,1",Tt),"╉":(Bt={},Bt[1]="M.5,.5 L1,.5",Bt[3]="M.5,0 L.5,1 M.5,.5 L0,.5",Bt),"╊":(Pt={},Pt[1]="M.5,.5 L0,.5",Pt[3]="M.5,0 L.5,1 M.5,.5 L1,.5",Pt),"╌":(Ft={},Ft[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Ft),"╍":(jt={},jt[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",jt),"┄":(Kt={},Kt[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Kt),"┅":(Vt={},Vt[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Vt),"┈":(Xt={},Xt[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",Xt),"┉":(Yt={},Yt[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",Yt),"╎":(Zt={},Zt[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Zt),"╏":(Jt={},Jt[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Jt),"┆":($t={},$t[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",$t),"┇":(Qt={},Qt[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Qt),"┊":(er={},er[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",er),"┋":(tr={},tr[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",tr),"╭":(rr={},rr[1]="C.5,1,.5,.5,1,.5",rr),"╮":(ir={},ir[1]="C.5,1,.5,.5,0,.5",ir),"╯":(nr={},nr[1]="C.5,0,.5,.5,0,.5",nr),"╰":(or={},or[1]="C.5,0,.5,.5,1,.5",or)},p.powerlineDefinitions={"":{d:"M0,0 L1,.5 L0,1",type:0},"":{d:"M0,0 L1,.5 L0,1",type:1,horizontalPadding:.5},"":{d:"M1,0 L0,.5 L1,1",type:0},"":{d:"M1,0 L0,.5 L1,1",type:1,horizontalPadding:.5}},p.tryDrawCustomChar=function(H,F,P,I,ce,fe){var oe=p.blockElementDefinitions[F];if(oe)return function(re,Le,ae,Se,De,Oe){for(var ve=0;ve<Le.length;ve++){var ge=Le[ve],ee=De/8,ie=Oe/8;re.fillRect(ae+ge.x*ee,Se+ge.y*ie,ge.w*ee,ge.h*ie)}}(H,oe,P,I,ce,fe),!0;var de=lr[F];if(de)return function(re,Le,ae,Se,De,Oe){var ve,ge=hr.get(Le);ge||(ge=new Map,hr.set(Le,ge));var ee=re.fillStyle;if(typeof ee!="string")throw new Error('Unexpected fillStyle type "'+ee+'"');var ie=ge.get(ee);if(!ie){var te=Le[0].length,he=Le.length,_e=document.createElement("canvas");_e.width=te,_e.height=he;var xe=(0,cr.throwIfFalsy)(_e.getContext("2d")),we=new ImageData(te,he),Fe=void 0,Ee=void 0,Te=void 0,Ie=void 0;if(ee.startsWith("#"))Fe=parseInt(ee.slice(1,3),16),Ee=parseInt(ee.slice(3,5),16),Te=parseInt(ee.slice(5,7),16),Ie=ee.length>7&&parseInt(ee.slice(7,9),16)||1;else{if(!ee.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+ee+'" when drawing pattern glyph');Fe=(ve=ar(ee.substring(5,ee.length-1).split(",").map(function(Be){return parseFloat(Be)}),4))[0],Ee=ve[1],Te=ve[2],Ie=ve[3]}for(var Re=0;Re<he;Re++)for(var ke=0;ke<te;ke++)we.data[4*(Re*te+ke)]=Fe,we.data[4*(Re*te+ke)+1]=Ee,we.data[4*(Re*te+ke)+2]=Te,we.data[4*(Re*te+ke)+3]=Le[Re][ke]*(255*Ie);xe.putImageData(we,0,0),ie=(0,cr.throwIfFalsy)(re.createPattern(_e,null)),ge.set(ee,ie)}re.fillStyle=ie,re.fillRect(ae,Se,De,Oe)}(H,de,P,I,ce,fe),!0;var se=p.boxDrawingDefinitions[F];if(se)return function(re,Le,ae,Se,De,Oe){var ve,ge,ee,ie;re.strokeStyle=re.fillStyle;try{for(var te=sr(Object.entries(Le)),he=te.next();!he.done;he=te.next()){var _e=ar(he.value,2),xe=_e[0],we=_e[1];re.beginPath(),re.lineWidth=window.devicePixelRatio*Number.parseInt(xe);var Fe=void 0;Fe=typeof we=="function"?we(.15,.15/Oe*De):we;try{for(var Ee=(ee=void 0,sr(Fe.split(" "))),Te=Ee.next();!Te.done;Te=Ee.next()){var Ie=Te.value,Re=Ie[0],ke=ur[Re];if(ke){var Be=Ie.substring(1).split(",");Be[0]&&Be[1]&&ke(re,fr(Be,De,Oe,ae,Se))}else console.error('Could not find drawing instructions for "'+Re+'"')}}catch(je){ee={error:je}}finally{try{Te&&!Te.done&&(ie=Ee.return)&&ie.call(Ee)}finally{if(ee)throw ee.error}}re.stroke(),re.closePath()}}catch(je){ve={error:je}}finally{try{he&&!he.done&&(ge=te.return)&&ge.call(te)}finally{if(ve)throw ve.error}}}(H,se,P,I,ce,fe),!0;var Ae=p.powerlineDefinitions[F];return!!Ae&&(function(re,Le,ae,Se,De,Oe){var ve,ge;re.beginPath(),re.lineWidth=window.devicePixelRatio;try{for(var ee=sr(Le.d.split(" ")),ie=ee.next();!ie.done;ie=ee.next()){var te=ie.value,he=te[0],_e=ur[he];if(_e){var xe=te.substring(1).split(",");xe[0]&&xe[1]&&_e(re,fr(xe,De,Oe,ae,Se,Le.horizontalPadding))}else console.error('Could not find drawing instructions for "'+he+'"')}}catch(we){ve={error:we}}finally{try{ie&&!ie.done&&(ge=ee.return)&&ge.call(ee)}finally{if(ve)throw ve.error}}Le.type===1?(re.strokeStyle=re.fillStyle,re.stroke()):re.fill(),re.closePath()}(H,Ae,P,I,ce,fe),!0)};var hr=new Map;function pr(H,F,P){return P===void 0&&(P=0),Math.max(Math.min(H,F),P)}var ur={C:function(H,F){return H.bezierCurveTo(F[0],F[1],F[2],F[3],F[4],F[5])},L:function(H,F){return H.lineTo(F[0],F[1])},M:function(H,F){return H.moveTo(F[0],F[1])}};function fr(H,F,P,I,ce,fe){fe===void 0&&(fe=0);var oe=H.map(function(Ae){return parseFloat(Ae)||parseInt(Ae)});if(oe.length<2)throw new Error("Too few arguments for instruction");for(var de=0;de<oe.length;de+=2)oe[de]*=F-2*fe*window.devicePixelRatio,oe[de]!==0&&(oe[de]=pr(Math.round(oe[de]+.5)-.5,F,0)),oe[de]+=I+fe*window.devicePixelRatio;for(var se=1;se<oe.length;se+=2)oe[se]*=P,oe[se]!==0&&(oe[se]=pr(Math.round(oe[se]+.5)-.5,P,0)),oe[se]+=ce;return oe}},3700:(N,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.GridCache=void 0;var x=function(){function c(){this.cache=[]}return c.prototype.resize=function(_,d){for(var l=0;l<_;l++){this.cache.length<=l&&this.cache.push([]);for(var g=this.cache[l].length;g<d;g++)this.cache[l].push(void 0);this.cache[l].length=d}this.cache.length=_},c.prototype.clear=function(){for(var _=0;_<this.cache.length;_++)for(var d=0;d<this.cache[_].length;d++)this.cache[_][d]=void 0},c}();p.GridCache=x},5098:function(N,p,x){var c,_=this&&this.__extends||(c=function(a,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])},c(a,t)},function(a,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=a}c(a,t),a.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}),d=this&&this.__decorate||function(a,t,e,r){var i,n=arguments.length,f=n<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(a,t,e,r);else for(var u=a.length-1;u>=0;u--)(i=a[u])&&(f=(n<3?i(f):n>3?i(t,e,f):i(t,e))||f);return n>3&&f&&Object.defineProperty(t,e,f),f},l=this&&this.__param||function(a,t){return function(e,r){t(e,r,a)}};Object.defineProperty(p,"__esModule",{value:!0}),p.LinkRenderLayer=void 0;var g=x(1546),v=x(8803),s=x(2040),o=x(2585),h=function(a){function t(e,r,i,n,f,u,m,S,y){var b=a.call(this,e,"link",r,!0,i,n,m,S,y)||this;return f.onShowLinkUnderline(function(C){return b._onShowLinkUnderline(C)}),f.onHideLinkUnderline(function(C){return b._onHideLinkUnderline(C)}),u.onShowLinkUnderline(function(C){return b._onShowLinkUnderline(C)}),u.onHideLinkUnderline(function(C){return b._onHideLinkUnderline(C)}),b}return _(t,a),t.prototype.resize=function(e){a.prototype.resize.call(this,e),this._state=void 0},t.prototype.reset=function(){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onShowLinkUnderline=function(e){if(e.fg===v.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg&&(0,s.is256Color)(e.fg)?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var r=e.y1+1;r<e.y2;r++)this._fillBottomLineAtCells(0,r,e.cols);this._fillBottomLineAtCells(0,e.y2,e.x2)}this._state=e},t.prototype._onHideLinkUnderline=function(e){this._clearCurrentLink()},d([l(6,o.IBufferService),l(7,o.IOptionsService),l(8,o.IDecorationService)],t)}(g.BaseRenderLayer);p.LinkRenderLayer=h},3525:function(N,p,x){var c,_=this&&this.__extends||(c=function(u,m){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,y){S.__proto__=y}||function(S,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(S[b]=y[b])},c(u,m)},function(u,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function S(){this.constructor=u}c(u,m),u.prototype=m===null?Object.create(m):(S.prototype=m.prototype,new S)}),d=this&&this.__decorate||function(u,m,S,y){var b,C=arguments.length,M=C<3?m:y===null?y=Object.getOwnPropertyDescriptor(m,S):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(u,m,S,y);else for(var w=u.length-1;w>=0;w--)(b=u[w])&&(M=(C<3?b(M):C>3?b(m,S,M):b(m,S))||M);return C>3&&M&&Object.defineProperty(m,S,M),M},l=this&&this.__param||function(u,m){return function(S,y){m(S,y,u)}},g=this&&this.__values||function(u){var m=typeof Symbol=="function"&&Symbol.iterator,S=m&&u[m],y=0;if(S)return S.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&y>=u.length&&(u=void 0),{value:u&&u[y++],done:!u}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(p,"__esModule",{value:!0}),p.Renderer=void 0;var v=x(9596),s=x(4149),o=x(2512),h=x(5098),a=x(844),t=x(4725),e=x(2585),r=x(1420),i=x(8460),n=1,f=function(u){function m(S,y,b,C,M,w,R,E){var L=u.call(this)||this;L._colors=S,L._screenElement=y,L._bufferService=w,L._charSizeService=R,L._optionsService=E,L._id=n++,L._onRequestRedraw=new i.EventEmitter;var A=L._optionsService.rawOptions.allowTransparency;return L._renderLayers=[M.createInstance(v.TextRenderLayer,L._screenElement,0,L._colors,A,L._id),M.createInstance(s.SelectionRenderLayer,L._screenElement,1,L._colors,L._id),M.createInstance(h.LinkRenderLayer,L._screenElement,2,L._colors,L._id,b,C),M.createInstance(o.CursorRenderLayer,L._screenElement,3,L._colors,L._id,L._onRequestRedraw)],L.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},L._devicePixelRatio=window.devicePixelRatio,L._updateDimensions(),L.onOptionsChanged(),L}return _(m,u),Object.defineProperty(m.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),m.prototype.dispose=function(){var S,y;try{for(var b=g(this._renderLayers),C=b.next();!C.done;C=b.next())C.value.dispose()}catch(M){S={error:M}}finally{try{C&&!C.done&&(y=b.return)&&y.call(b)}finally{if(S)throw S.error}}u.prototype.dispose.call(this),(0,r.removeTerminalFromCache)(this._id)},m.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},m.prototype.setColors=function(S){var y,b;this._colors=S;try{for(var C=g(this._renderLayers),M=C.next();!M.done;M=C.next()){var w=M.value;w.setColors(this._colors),w.reset()}}catch(R){y={error:R}}finally{try{M&&!M.done&&(b=C.return)&&b.call(C)}finally{if(y)throw y.error}}},m.prototype.onResize=function(S,y){var b,C;this._updateDimensions();try{for(var M=g(this._renderLayers),w=M.next();!w.done;w=M.next())w.value.resize(this.dimensions)}catch(R){b={error:R}}finally{try{w&&!w.done&&(C=M.return)&&C.call(M)}finally{if(b)throw b.error}}this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},m.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},m.prototype.onBlur=function(){this._runOperation(function(S){return S.onBlur()})},m.prototype.onFocus=function(){this._runOperation(function(S){return S.onFocus()})},m.prototype.onSelectionChanged=function(S,y,b){b===void 0&&(b=!1),this._runOperation(function(C){return C.onSelectionChanged(S,y,b)}),this._colors.selectionForeground&&this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})},m.prototype.onCursorMove=function(){this._runOperation(function(S){return S.onCursorMove()})},m.prototype.onOptionsChanged=function(){this._runOperation(function(S){return S.onOptionsChanged()})},m.prototype.clear=function(){this._runOperation(function(S){return S.reset()})},m.prototype._runOperation=function(S){var y,b;try{for(var C=g(this._renderLayers),M=C.next();!M.done;M=C.next())S(M.value)}catch(w){y={error:w}}finally{try{M&&!M.done&&(b=C.return)&&b.call(C)}finally{if(y)throw y.error}}},m.prototype.renderRows=function(S,y){var b,C;try{for(var M=g(this._renderLayers),w=M.next();!w.done;w=M.next())w.value.onGridChanged(S,y)}catch(R){b={error:R}}finally{try{w&&!w.done&&(C=M.return)&&C.call(M)}finally{if(b)throw b.error}}},m.prototype.clearTextureAtlas=function(){var S,y;try{for(var b=g(this._renderLayers),C=b.next();!C.done;C=b.next())C.value.clearTextureAtlas()}catch(M){S={error:M}}finally{try{C&&!C.done&&(y=b.return)&&y.call(b)}finally{if(S)throw S.error}}},m.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharTop=this._optionsService.rawOptions.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},d([l(4,e.IInstantiationService),l(5,e.IBufferService),l(6,t.ICharSizeService),l(7,e.IOptionsService)],m)}(a.Disposable);p.Renderer=f},1752:(N,p)=>{function x(c){return 57508<=c&&c<=57558}Object.defineProperty(p,"__esModule",{value:!0}),p.excludeFromContrastRatioDemands=p.isPowerlineGlyph=p.throwIfFalsy=void 0,p.throwIfFalsy=function(c){if(!c)throw new Error("value must not be falsy");return c},p.isPowerlineGlyph=x,p.excludeFromContrastRatioDemands=function(c){return x(c)||function(_){return 9472<=_&&_<=9631}(c)}},4149:function(N,p,x){var c,_=this&&this.__extends||(c=function(o,h){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,t){a.__proto__=t}||function(a,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(a[e]=t[e])},c(o,h)},function(o,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function a(){this.constructor=o}c(o,h),o.prototype=h===null?Object.create(h):(a.prototype=h.prototype,new a)}),d=this&&this.__decorate||function(o,h,a,t){var e,r=arguments.length,i=r<3?h:t===null?t=Object.getOwnPropertyDescriptor(h,a):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,h,a,t);else for(var n=o.length-1;n>=0;n--)(e=o[n])&&(i=(r<3?e(i):r>3?e(h,a,i):e(h,a))||i);return r>3&&i&&Object.defineProperty(h,a,i),i},l=this&&this.__param||function(o,h){return function(a,t){h(a,t,o)}};Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionRenderLayer=void 0;var g=x(1546),v=x(2585),s=function(o){function h(a,t,e,r,i,n,f){var u=o.call(this,a,"selection",t,!0,e,r,i,n,f)||this;return u._clearState(),u}return _(h,o),h.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},h.prototype.resize=function(a){o.prototype.resize.call(this,a),this._clearState()},h.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},h.prototype.onSelectionChanged=function(a,t,e){if(o.prototype.onSelectionChanged.call(this,a,t,e),this._didStateChange(a,t,e,this._bufferService.buffer.ydisp))if(this._clearAll(),a&&t){var r=a[1]-this._bufferService.buffer.ydisp,i=t[1]-this._bufferService.buffer.ydisp,n=Math.max(r,0),f=Math.min(i,this._bufferService.rows-1);if(n>=this._bufferService.rows||f<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,e){var u=a[0],m=t[0]-u,S=f-n+1;this._fillCells(u,n,m,S)}else{u=r===n?a[0]:0;var y=n===i?t[0]:this._bufferService.cols;this._fillCells(u,n,y-u,1);var b=Math.max(f-n-1,0);if(this._fillCells(0,n+1,this._bufferService.cols,b),n!==f){var C=i===f?t[0]:this._bufferService.cols;this._fillCells(0,f,C,1)}}this._state.start=[a[0],a[1]],this._state.end=[t[0],t[1]],this._state.columnSelectMode=e,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},h.prototype._didStateChange=function(a,t,e,r){return!this._areCoordinatesEqual(a,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||e!==this._state.columnSelectMode||r!==this._state.ydisp},h.prototype._areCoordinatesEqual=function(a,t){return!(!a||!t)&&a[0]===t[0]&&a[1]===t[1]},d([l(4,v.IBufferService),l(5,v.IOptionsService),l(6,v.IDecorationService)],h)}(g.BaseRenderLayer);p.SelectionRenderLayer=s},9596:function(N,p,x){var c,_=this&&this.__extends||(c=function(n,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,m){u.__proto__=m}||function(u,m){for(var S in m)Object.prototype.hasOwnProperty.call(m,S)&&(u[S]=m[S])},c(n,f)},function(n,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function u(){this.constructor=n}c(n,f),n.prototype=f===null?Object.create(f):(u.prototype=f.prototype,new u)}),d=this&&this.__decorate||function(n,f,u,m){var S,y=arguments.length,b=y<3?f:m===null?m=Object.getOwnPropertyDescriptor(f,u):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(n,f,u,m);else for(var C=n.length-1;C>=0;C--)(S=n[C])&&(b=(y<3?S(b):y>3?S(f,u,b):S(f,u))||b);return y>3&&b&&Object.defineProperty(f,u,b),b},l=this&&this.__param||function(n,f){return function(u,m){f(u,m,n)}},g=this&&this.__values||function(n){var f=typeof Symbol=="function"&&Symbol.iterator,u=f&&n[f],m=0;if(u)return u.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&m>=n.length&&(n=void 0),{value:n&&n[m++],done:!n}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(p,"__esModule",{value:!0}),p.TextRenderLayer=void 0;var v=x(3700),s=x(1546),o=x(3734),h=x(643),a=x(511),t=x(2585),e=x(4725),r=x(4269),i=function(n){function f(u,m,S,y,b,C,M,w,R){var E=n.call(this,u,"text",m,y,S,b,C,M,R)||this;return E._characterJoinerService=w,E._characterWidth=0,E._characterFont="",E._characterOverlapCache={},E._workCell=new a.CellData,E._state=new v.GridCache,E}return _(f,n),f.prototype.resize=function(u){n.prototype.resize.call(this,u);var m=this._getFont(!1,!1);this._characterWidth===u.scaledCharWidth&&this._characterFont===m||(this._characterWidth=u.scaledCharWidth,this._characterFont=m,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},f.prototype.reset=function(){this._state.clear(),this._clearAll()},f.prototype._forEachCell=function(u,m,S){for(var y=u;y<=m;y++)for(var b=y+this._bufferService.buffer.ydisp,C=this._bufferService.buffer.lines.get(b),M=this._characterJoinerService.getJoinedCharacters(b),w=0;w<this._bufferService.cols;w++){C.loadCell(w,this._workCell);var R=this._workCell,E=!1,L=w;if(R.getWidth()!==0){if(M.length>0&&w===M[0][0]){E=!0;var A=M.shift();R=new r.JoinedCellData(this._workCell,C.translateToString(!0,A[0],A[1]),A[1]-A[0]),L=A[1]-1}!E&&this._isOverlapping(R)&&L<C.length-1&&C.getCodePoint(L+1)===h.NULL_CELL_CODE&&(R.content&=-12582913,R.content|=2<<22),S(R,w,y),w=L}}},f.prototype._drawBackground=function(u,m){var S=this,y=this._ctx,b=this._bufferService.cols,C=0,M=0,w=null;y.save(),this._forEachCell(u,m,function(R,E,L){var A,T,W=null;R.isInverse()?W=R.isFgDefault()?S._colors.foreground.css:R.isFgRGB()?"rgb("+o.AttributeData.toColorRGB(R.getFgColor()).join(",")+")":S._colors.ansi[R.getFgColor()].css:R.isBgRGB()?W="rgb("+o.AttributeData.toColorRGB(R.getBgColor()).join(",")+")":R.isBgPalette()&&(W=S._colors.ansi[R.getBgColor()].css);var z=!1;try{for(var j=g(S._decorationService.getDecorationsAtCell(E,S._bufferService.buffer.ydisp+L)),K=j.next();!K.done;K=j.next()){var G=K.value;G.options.layer!=="top"&&z||(G.backgroundColorRGB&&(W=G.backgroundColorRGB.css),z=G.options.layer==="top")}}catch(k){A={error:k}}finally{try{K&&!K.done&&(T=j.return)&&T.call(j)}finally{if(A)throw A.error}}w===null&&(C=E,M=L),L!==M?(y.fillStyle=w||"",S._fillCells(C,M,b-C,1),C=E,M=L):w!==W&&(y.fillStyle=w||"",S._fillCells(C,M,E-C,1),C=E,M=L),w=W}),w!==null&&(y.fillStyle=w,this._fillCells(C,M,b-C,1)),y.restore()},f.prototype._drawForeground=function(u,m){var S=this;this._forEachCell(u,m,function(y,b,C){if(!y.isInvisible()&&(S._drawChars(y,b,C),y.isUnderline()||y.isStrikethrough())){if(S._ctx.save(),y.isInverse())if(y.isBgDefault())S._ctx.fillStyle=S._colors.background.css;else if(y.isBgRGB())S._ctx.fillStyle="rgb("+o.AttributeData.toColorRGB(y.getBgColor()).join(",")+")";else{var M=y.getBgColor();S._optionsService.rawOptions.drawBoldTextInBrightColors&&y.isBold()&&M<8&&(M+=8),S._ctx.fillStyle=S._colors.ansi[M].css}else if(y.isFgDefault())S._ctx.fillStyle=S._colors.foreground.css;else if(y.isFgRGB())S._ctx.fillStyle="rgb("+o.AttributeData.toColorRGB(y.getFgColor()).join(",")+")";else{var w=y.getFgColor();S._optionsService.rawOptions.drawBoldTextInBrightColors&&y.isBold()&&w<8&&(w+=8),S._ctx.fillStyle=S._colors.ansi[w].css}y.isStrikethrough()&&S._fillMiddleLineAtCells(b,C,y.getWidth()),y.isUnderline()&&S._fillBottomLineAtCells(b,C,y.getWidth()),S._ctx.restore()}})},f.prototype.onGridChanged=function(u,m){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,u,this._bufferService.cols,m-u+1),this._drawBackground(u,m),this._drawForeground(u,m))},f.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.rawOptions.allowTransparency)},f.prototype._isOverlapping=function(u){if(u.getWidth()!==1||u.getCode()<256)return!1;var m=u.getChars();if(this._characterOverlapCache.hasOwnProperty(m))return this._characterOverlapCache[m];this._ctx.save(),this._ctx.font=this._characterFont;var S=Math.floor(this._ctx.measureText(m).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[m]=S,S},d([l(5,t.IBufferService),l(6,t.IOptionsService),l(7,e.ICharacterJoinerService),l(8,t.IDecorationService)],f)}(s.BaseRenderLayer);p.TextRenderLayer=i},9616:(N,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.BaseCharAtlas=void 0;var x=function(){function c(){this._didWarmUp=!1}return c.prototype.dispose=function(){},c.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},c.prototype._doWarmUp=function(){},c.prototype.clear=function(){},c.prototype.beginFrame=function(){},c}();p.BaseCharAtlas=x},1420:(N,p,x)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.removeTerminalFromCache=p.acquireCharAtlas=void 0;var c=x(2040),_=x(1906),d=[];p.acquireCharAtlas=function(l,g,v,s,o){for(var h=(0,c.generateConfig)(s,o,l,v),a=0;a<d.length;a++){var t=(e=d[a]).ownedBy.indexOf(g);if(t>=0){if((0,c.configEquals)(e.config,h))return e.atlas;e.ownedBy.length===1?(e.atlas.dispose(),d.splice(a,1)):e.ownedBy.splice(t,1);break}}for(a=0;a<d.length;a++){var e=d[a];if((0,c.configEquals)(e.config,h))return e.ownedBy.push(g),e.atlas}var r={atlas:new _.DynamicCharAtlas(document,h),config:h,ownedBy:[g]};return d.push(r),r.atlas},p.removeTerminalFromCache=function(l){for(var g=0;g<d.length;g++){var v=d[g].ownedBy.indexOf(l);if(v!==-1){d[g].ownedBy.length===1?(d[g].atlas.dispose(),d.splice(g,1)):d[g].ownedBy.splice(v,1);break}}}},2040:(N,p,x)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.is256Color=p.configEquals=p.generateConfig=void 0;var c=x(643);p.generateConfig=function(_,d,l,g){var v={foreground:g.foreground,background:g.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:g.ansi.slice()};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:_,scaledCharHeight:d,fontFamily:l.fontFamily,fontSize:l.fontSize,fontWeight:l.fontWeight,fontWeightBold:l.fontWeightBold,allowTransparency:l.allowTransparency,colors:v}},p.configEquals=function(_,d){for(var l=0;l<_.colors.ansi.length;l++)if(_.colors.ansi[l].rgba!==d.colors.ansi[l].rgba)return!1;return _.devicePixelRatio===d.devicePixelRatio&&_.fontFamily===d.fontFamily&&_.fontSize===d.fontSize&&_.fontWeight===d.fontWeight&&_.fontWeightBold===d.fontWeightBold&&_.allowTransparency===d.allowTransparency&&_.scaledCharWidth===d.scaledCharWidth&&_.scaledCharHeight===d.scaledCharHeight&&_.colors.foreground===d.colors.foreground&&_.colors.background===d.colors.background},p.is256Color=function(_){return _<c.DEFAULT_COLOR}},8803:(N,p,x)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.CHAR_ATLAS_CELL_SPACING=p.TEXT_BASELINE=p.DIM_OPACITY=p.INVERTED_DEFAULT_COLOR=void 0;var c=x(6114);p.INVERTED_DEFAULT_COLOR=257,p.DIM_OPACITY=.5,p.TEXT_BASELINE=c.isFirefox||c.isLegacyEdge?"bottom":"ideographic",p.CHAR_ATLAS_CELL_SPACING=1},1906:function(N,p,x){var c,_=this&&this.__extends||(c=function(u,m){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,y){S.__proto__=y}||function(S,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(S[b]=y[b])},c(u,m)},function(u,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function S(){this.constructor=u}c(u,m),u.prototype=m===null?Object.create(m):(S.prototype=m.prototype,new S)});Object.defineProperty(p,"__esModule",{value:!0}),p.NoneCharAtlas=p.DynamicCharAtlas=p.getGlyphCacheKey=void 0;var d=x(8803),l=x(9616),g=x(5680),v=x(7001),s=x(6114),o=x(1752),h=x(8055),a=1024,t=1024,e={css:"rgba(0, 0, 0, 0)",rgba:0};function r(u){return u.code<<21|u.bg<<12|u.fg<<3|(u.bold?0:4)+(u.dim?0:2)+(u.italic?0:1)}p.getGlyphCacheKey=r;var i=function(u){function m(S,y){var b=u.call(this)||this;b._config=y,b._drawToCacheCount=0,b._glyphsWaitingOnBitmap=[],b._bitmapCommitTimeout=null,b._bitmap=null,b._cacheCanvas=S.createElement("canvas"),b._cacheCanvas.width=a,b._cacheCanvas.height=t,b._cacheCtx=(0,o.throwIfFalsy)(b._cacheCanvas.getContext("2d",{alpha:!0}));var C=S.createElement("canvas");C.width=b._config.scaledCharWidth,C.height=b._config.scaledCharHeight,b._tmpCtx=(0,o.throwIfFalsy)(C.getContext("2d",{alpha:b._config.allowTransparency})),b._width=Math.floor(a/b._config.scaledCharWidth),b._height=Math.floor(t/b._config.scaledCharHeight);var M=b._width*b._height;return b._cacheMap=new v.LRUMap(M),b._cacheMap.prealloc(M),b}return _(m,u),m.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},m.prototype.beginFrame=function(){this._drawToCacheCount=0},m.prototype.clear=function(){if(this._cacheMap.size>0){var S=this._width*this._height;this._cacheMap=new v.LRUMap(S),this._cacheMap.prealloc(S)}this._cacheCtx.clearRect(0,0,a,t),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},m.prototype.draw=function(S,y,b,C){if(y.code===32)return!0;if(!this._canCache(y))return!1;var M=r(y),w=this._cacheMap.get(M);if(w!=null)return this._drawFromCache(S,w,b,C),!0;if(this._drawToCacheCount<100){var R;R=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var E=this._drawToCache(y,R);return this._cacheMap.set(M,E),this._drawFromCache(S,E,b,C),!0}return!1},m.prototype._canCache=function(S){return S.code<256},m.prototype._toCoordinateX=function(S){return S%this._width*this._config.scaledCharWidth},m.prototype._toCoordinateY=function(S){return Math.floor(S/this._width)*this._config.scaledCharHeight},m.prototype._drawFromCache=function(S,y,b,C){if(!y.isEmpty){var M=this._toCoordinateX(y.index),w=this._toCoordinateY(y.index);S.drawImage(y.inBitmap?this._bitmap:this._cacheCanvas,M,w,this._config.scaledCharWidth,this._config.scaledCharHeight,b,C,this._config.scaledCharWidth,this._config.scaledCharHeight)}},m.prototype._getColorFromAnsiIndex=function(S){return S<this._config.colors.ansi.length?this._config.colors.ansi[S]:g.DEFAULT_ANSI_COLORS[S]},m.prototype._getBackgroundColor=function(S){return this._config.allowTransparency?e:S.bg===d.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:S.bg<256?this._getColorFromAnsiIndex(S.bg):this._config.colors.background},m.prototype._getForegroundColor=function(S){return S.fg===d.INVERTED_DEFAULT_COLOR?h.color.opaque(this._config.colors.background):S.fg<256?this._getColorFromAnsiIndex(S.fg):this._config.colors.foreground},m.prototype._drawToCache=function(S,y){this._drawToCacheCount++,this._tmpCtx.save();var b=this._getBackgroundColor(S);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=b.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var C=S.bold?this._config.fontWeightBold:this._config.fontWeight,M=S.italic?"italic":"";this._tmpCtx.font=M+" "+C+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline=d.TEXT_BASELINE,this._tmpCtx.fillStyle=this._getForegroundColor(S).css,S.dim&&(this._tmpCtx.globalAlpha=d.DIM_OPACITY),this._tmpCtx.fillText(S.chars,0,this._config.scaledCharHeight);var w=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),R=!1;if(this._config.allowTransparency||(R=f(w,b)),R&&S.chars==="_"&&!this._config.allowTransparency)for(var E=1;E<=5&&(this._tmpCtx.fillText(S.chars,0,this._config.scaledCharHeight-E),R=f(w=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),b));E++);this._tmpCtx.restore();var L=this._toCoordinateX(y),A=this._toCoordinateY(y);this._cacheCtx.putImageData(w,L,A);var T={index:y,isEmpty:R,inBitmap:!1};return this._addGlyphToBitmap(T),T},m.prototype._addGlyphToBitmap=function(S){var y=this;!("createImageBitmap"in window)||s.isFirefox||s.isSafari||(this._glyphsWaitingOnBitmap.push(S),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return y._generateBitmap()},100)))},m.prototype._generateBitmap=function(){var S=this,y=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(b){S._bitmap=b;for(var C=0;C<y.length;C++)y[C].inBitmap=!0}),this._bitmapCommitTimeout=null},m}(l.BaseCharAtlas);p.DynamicCharAtlas=i;var n=function(u){function m(S,y){return u.call(this)||this}return _(m,u),m.prototype.draw=function(S,y,b,C){return!1},m}(l.BaseCharAtlas);function f(u,m){for(var S=!0,y=m.rgba>>>24,b=m.rgba>>>16&255,C=m.rgba>>>8&255,M=0;M<u.data.length;M+=4)u.data[M]===y&&u.data[M+1]===b&&u.data[M+2]===C?u.data[M+3]=0:S=!1;return S}p.NoneCharAtlas=n},7001:(N,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.LRUMap=void 0;var x=function(){function c(_){this.capacity=_,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return c.prototype._unlinkNode=function(_){var d=_.prev,l=_.next;_===this._head&&(this._head=l),_===this._tail&&(this._tail=d),d!==null&&(d.next=l),l!==null&&(l.prev=d)},c.prototype._appendNode=function(_){var d=this._tail;d!==null&&(d.next=_),_.prev=d,_.next=null,this._tail=_,this._head===null&&(this._head=_)},c.prototype.prealloc=function(_){for(var d=this._nodePool,l=0;l<_;l++)d.push({prev:null,next:null,key:null,value:null})},c.prototype.get=function(_){var d=this._map[_];return d!==void 0?(this._unlinkNode(d),this._appendNode(d),d.value):null},c.prototype.peekValue=function(_){var d=this._map[_];return d!==void 0?d.value:null},c.prototype.peek=function(){var _=this._head;return _===null?null:_.value},c.prototype.set=function(_,d){var l=this._map[_];if(l!==void 0)l=this._map[_],this._unlinkNode(l),l.value=d;else if(this.size>=this.capacity)l=this._head,this._unlinkNode(l),delete this._map[l.key],l.key=_,l.value=d,this._map[_]=l;else{var g=this._nodePool;g.length>0?((l=g.pop()).key=_,l.value=d):l={prev:null,next:null,key:_,value:d},this._map[_]=l,this.size++}this._appendNode(l)},c}();p.LRUMap=x},1296:function(N,p,x){var c,_=this&&this.__extends||(c=function(y,b){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,M){C.__proto__=M}||function(C,M){for(var w in M)Object.prototype.hasOwnProperty.call(M,w)&&(C[w]=M[w])},c(y,b)},function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function C(){this.constructor=y}c(y,b),y.prototype=b===null?Object.create(b):(C.prototype=b.prototype,new C)}),d=this&&this.__decorate||function(y,b,C,M){var w,R=arguments.length,E=R<3?b:M===null?M=Object.getOwnPropertyDescriptor(b,C):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(y,b,C,M);else for(var L=y.length-1;L>=0;L--)(w=y[L])&&(E=(R<3?w(E):R>3?w(b,C,E):w(b,C))||E);return R>3&&E&&Object.defineProperty(b,C,E),E},l=this&&this.__param||function(y,b){return function(C,M){b(C,M,y)}},g=this&&this.__values||function(y){var b=typeof Symbol=="function"&&Symbol.iterator,C=b&&y[b],M=0;if(C)return C.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&M>=y.length&&(y=void 0),{value:y&&y[M++],done:!y}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(p,"__esModule",{value:!0}),p.DomRenderer=void 0;var v=x(3787),s=x(8803),o=x(844),h=x(4725),a=x(2585),t=x(8460),e=x(8055),r=x(9631),i="xterm-dom-renderer-owner-",n="xterm-fg-",f="xterm-bg-",u="xterm-focus",m=1,S=function(y){function b(C,M,w,R,E,L,A,T,W,z){var j=y.call(this)||this;return j._colors=C,j._element=M,j._screenElement=w,j._viewportElement=R,j._linkifier=E,j._linkifier2=L,j._charSizeService=T,j._optionsService=W,j._bufferService=z,j._terminalClass=m++,j._rowElements=[],j._rowContainer=document.createElement("div"),j._rowContainer.classList.add("xterm-rows"),j._rowContainer.style.lineHeight="normal",j._rowContainer.setAttribute("aria-hidden","true"),j._refreshRowElements(j._bufferService.cols,j._bufferService.rows),j._selectionContainer=document.createElement("div"),j._selectionContainer.classList.add("xterm-selection"),j._selectionContainer.setAttribute("aria-hidden","true"),j.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},j._updateDimensions(),j._injectCss(),j._rowFactory=A.createInstance(v.DomRendererRowFactory,document,j._colors),j._element.classList.add(i+j._terminalClass),j._screenElement.appendChild(j._rowContainer),j._screenElement.appendChild(j._selectionContainer),j.register(j._linkifier.onShowLinkUnderline(function(K){return j._onLinkHover(K)})),j.register(j._linkifier.onHideLinkUnderline(function(K){return j._onLinkLeave(K)})),j.register(j._linkifier2.onShowLinkUnderline(function(K){return j._onLinkHover(K)})),j.register(j._linkifier2.onHideLinkUnderline(function(K){return j._onLinkLeave(K)})),j}return _(b,y),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return new t.EventEmitter().event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){this._element.classList.remove(i+this._terminalClass),(0,r.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),y.prototype.dispose.call(this)},b.prototype._updateDimensions=function(){var C,M;this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;try{for(var w=g(this._rowElements),R=w.next();!R.done;R=w.next()){var E=R.value;E.style.width=this.dimensions.canvasWidth+"px",E.style.height=this.dimensions.actualCellHeight+"px",E.style.lineHeight=this.dimensions.actualCellHeight+"px",E.style.overflow="hidden"}}catch(A){C={error:A}}finally{try{R&&!R.done&&(M=w.return)&&M.call(w)}finally{if(C)throw C.error}}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var L=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.textContent=L,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},b.prototype.setColors=function(C){this._colors=C,this._injectCss()},b.prototype._injectCss=function(){var C=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var M=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.rawOptions.fontFamily+"; font-size: "+this._optionsService.rawOptions.fontSize+"px;}";M+=this._terminalSelector+" span:not(."+v.BOLD_CLASS+") { font-weight: "+this._optionsService.rawOptions.fontWeight+";}"+this._terminalSelector+" span."+v.BOLD_CLASS+" { font-weight: "+this._optionsService.rawOptions.fontWeightBold+";}"+this._terminalSelector+" span."+v.ITALIC_CLASS+" { font-style: italic;}",M+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",M+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",M+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_BLINK_CLASS+":not(."+v.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_BLINK_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.rawOptions.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",M+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionOpaque.css+";}",this._colors.ansi.forEach(function(w,R){M+=C._terminalSelector+" ."+n+R+" { color: "+w.css+"; }"+C._terminalSelector+" ."+f+R+" { background-color: "+w.css+"; }"}),M+=this._terminalSelector+" ."+n+s.INVERTED_DEFAULT_COLOR+" { color: "+e.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+f+s.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=M},b.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},b.prototype._refreshRowElements=function(C,M){for(var w=this._rowElements.length;w<=M;w++){var R=document.createElement("div");this._rowContainer.appendChild(R),this._rowElements.push(R)}for(;this._rowElements.length>M;)this._rowContainer.removeChild(this._rowElements.pop())},b.prototype.onResize=function(C,M){this._refreshRowElements(C,M),this._updateDimensions()},b.prototype.onCharSizeChanged=function(){this._updateDimensions()},b.prototype.onBlur=function(){this._rowContainer.classList.remove(u)},b.prototype.onFocus=function(){this._rowContainer.classList.add(u)},b.prototype.onSelectionChanged=function(C,M,w){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.onSelectionChanged(C,M,w),this.renderRows(0,this._bufferService.rows-1),C&&M){var R=C[1]-this._bufferService.buffer.ydisp,E=M[1]-this._bufferService.buffer.ydisp,L=Math.max(R,0),A=Math.min(E,this._bufferService.rows-1);if(!(L>=this._bufferService.rows||A<0)){var T=document.createDocumentFragment();if(w){var W=C[0]>M[0];T.appendChild(this._createSelectionElement(L,W?M[0]:C[0],W?C[0]:M[0],A-L+1))}else{var z=R===L?C[0]:0,j=L===E?M[0]:this._bufferService.cols;T.appendChild(this._createSelectionElement(L,z,j));var K=A-L-1;if(T.appendChild(this._createSelectionElement(L+1,0,this._bufferService.cols,K)),L!==A){var G=E===A?M[0]:this._bufferService.cols;T.appendChild(this._createSelectionElement(A,0,G))}}this._selectionContainer.appendChild(T)}}},b.prototype._createSelectionElement=function(C,M,w,R){R===void 0&&(R=1);var E=document.createElement("div");return E.style.height=R*this.dimensions.actualCellHeight+"px",E.style.top=C*this.dimensions.actualCellHeight+"px",E.style.left=M*this.dimensions.actualCellWidth+"px",E.style.width=this.dimensions.actualCellWidth*(w-M)+"px",E},b.prototype.onCursorMove=function(){},b.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},b.prototype.clear=function(){var C,M;try{for(var w=g(this._rowElements),R=w.next();!R.done;R=w.next())R.value.innerText=""}catch(E){C={error:E}}finally{try{R&&!R.done&&(M=w.return)&&M.call(w)}finally{if(C)throw C.error}}},b.prototype.renderRows=function(C,M){for(var w=this._bufferService.buffer.ybase+this._bufferService.buffer.y,R=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),E=this._optionsService.rawOptions.cursorBlink,L=C;L<=M;L++){var A=this._rowElements[L];A.innerText="";var T=L+this._bufferService.buffer.ydisp,W=this._bufferService.buffer.lines.get(T),z=this._optionsService.rawOptions.cursorStyle;A.appendChild(this._rowFactory.createRow(W,T,T===w,z,R,E,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(b.prototype,"_terminalSelector",{get:function(){return"."+i+this._terminalClass},enumerable:!1,configurable:!0}),b.prototype._onLinkHover=function(C){this._setCellUnderline(C.x1,C.x2,C.y1,C.y2,C.cols,!0)},b.prototype._onLinkLeave=function(C){this._setCellUnderline(C.x1,C.x2,C.y1,C.y2,C.cols,!1)},b.prototype._setCellUnderline=function(C,M,w,R,E,L){for(;C!==M||w!==R;){var A=this._rowElements[w];if(!A)return;var T=A.children[C];T&&(T.style.textDecoration=L?"underline":"none"),++C>=E&&(C=0,w++)}},d([l(6,a.IInstantiationService),l(7,h.ICharSizeService),l(8,a.IOptionsService),l(9,a.IBufferService)],b)}(o.Disposable);p.DomRenderer=S},3787:function(N,p,x){var c=this&&this.__decorate||function(i,n,f,u){var m,S=arguments.length,y=S<3?n:u===null?u=Object.getOwnPropertyDescriptor(n,f):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(i,n,f,u);else for(var b=i.length-1;b>=0;b--)(m=i[b])&&(y=(S<3?m(y):S>3?m(n,f,y):m(n,f))||y);return S>3&&y&&Object.defineProperty(n,f,y),y},_=this&&this.__param||function(i,n){return function(f,u){n(f,u,i)}},d=this&&this.__values||function(i){var n=typeof Symbol=="function"&&Symbol.iterator,f=n&&i[n],u=0;if(f)return f.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&u>=i.length&&(i=void 0),{value:i&&i[u++],done:!i}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(p,"__esModule",{value:!0}),p.DomRendererRowFactory=p.CURSOR_STYLE_UNDERLINE_CLASS=p.CURSOR_STYLE_BAR_CLASS=p.CURSOR_STYLE_BLOCK_CLASS=p.CURSOR_BLINK_CLASS=p.CURSOR_CLASS=p.STRIKETHROUGH_CLASS=p.UNDERLINE_CLASS=p.ITALIC_CLASS=p.DIM_CLASS=p.BOLD_CLASS=void 0;var l=x(8803),g=x(643),v=x(511),s=x(2585),o=x(8055),h=x(4725),a=x(4269),t=x(1752);p.BOLD_CLASS="xterm-bold",p.DIM_CLASS="xterm-dim",p.ITALIC_CLASS="xterm-italic",p.UNDERLINE_CLASS="xterm-underline",p.STRIKETHROUGH_CLASS="xterm-strikethrough",p.CURSOR_CLASS="xterm-cursor",p.CURSOR_BLINK_CLASS="xterm-cursor-blink",p.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",p.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",p.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var e=function(){function i(n,f,u,m,S,y){this._document=n,this._colors=f,this._characterJoinerService=u,this._optionsService=m,this._coreService=S,this._decorationService=y,this._workCell=new v.CellData,this._columnSelectMode=!1}return i.prototype.setColors=function(n){this._colors=n},i.prototype.onSelectionChanged=function(n,f,u){this._selectionStart=n,this._selectionEnd=f,this._columnSelectMode=u},i.prototype.createRow=function(n,f,u,m,S,y,b,C){for(var M,w,R=this._document.createDocumentFragment(),E=this._characterJoinerService.getJoinedCharacters(f),L=0,A=Math.min(n.length,C)-1;A>=0;A--)if(n.loadCell(A,this._workCell).getCode()!==g.NULL_CELL_CODE||u&&A===S){L=A+1;break}for(A=0;A<L;A++){n.loadCell(A,this._workCell);var T=this._workCell.getWidth();if(T!==0){var W=!1,z=A,j=this._workCell;if(E.length>0&&A===E[0][0]){W=!0;var K=E.shift();j=new a.JoinedCellData(this._workCell,n.translateToString(!0,K[0],K[1]),K[1]-K[0]),z=K[1]-1,T=j.getWidth()}var G=this._document.createElement("span");if(T>1&&(G.style.width=b*T+"px"),W&&(G.style.display="inline",S>=A&&S<=z&&(S=A)),!this._coreService.isCursorHidden&&u&&A===S)switch(G.classList.add(p.CURSOR_CLASS),y&&G.classList.add(p.CURSOR_BLINK_CLASS),m){case"bar":G.classList.add(p.CURSOR_STYLE_BAR_CLASS);break;case"underline":G.classList.add(p.CURSOR_STYLE_UNDERLINE_CLASS);break;default:G.classList.add(p.CURSOR_STYLE_BLOCK_CLASS)}j.isBold()&&G.classList.add(p.BOLD_CLASS),j.isItalic()&&G.classList.add(p.ITALIC_CLASS),j.isDim()&&G.classList.add(p.DIM_CLASS),j.isUnderline()&&G.classList.add(p.UNDERLINE_CLASS),j.isInvisible()?G.textContent=g.WHITESPACE_CELL_CHAR:G.textContent=j.getChars()||g.WHITESPACE_CELL_CHAR,j.isStrikethrough()&&G.classList.add(p.STRIKETHROUGH_CLASS);var k=j.getFgColor(),$=j.getFgColorMode(),Y=j.getBgColor(),le=j.getBgColorMode(),B=!!j.isInverse();if(B){var ne=k;k=Y,Y=ne;var V=$;$=le,le=V}var q=void 0,D=void 0,O=!1;try{for(var U=(M=void 0,d(this._decorationService.getDecorationsAtCell(A,f))),Z=U.next();!Z.done;Z=U.next()){var J=Z.value;J.options.layer!=="top"&&O||(J.backgroundColorRGB&&(le=50331648,Y=J.backgroundColorRGB.rgba>>8&16777215,q=J.backgroundColorRGB),J.foregroundColorRGB&&($=50331648,k=J.foregroundColorRGB.rgba>>8&16777215,D=J.foregroundColorRGB),O=J.options.layer==="top")}}catch(Ce){M={error:Ce}}finally{try{Z&&!Z.done&&(w=U.return)&&w.call(U)}finally{if(M)throw M.error}}var Q=this._isCellInSelection(A,f);O||this._colors.selectionForeground&&Q&&($=50331648,k=this._colors.selectionForeground.rgba>>8&16777215,D=this._colors.selectionForeground),Q&&(q=this._colors.selectionOpaque,O=!0),O&&G.classList.add("xterm-decoration-top");var ue=void 0;switch(le){case 16777216:case 33554432:ue=this._colors.ansi[Y],G.classList.add("xterm-bg-"+Y);break;case 50331648:ue=o.rgba.toColor(Y>>16,Y>>8&255,255&Y),this._addStyle(G,"background-color:#"+r((Y>>>0).toString(16),"0",6));break;default:B?(ue=this._colors.foreground,G.classList.add("xterm-bg-"+l.INVERTED_DEFAULT_COLOR)):ue=this._colors.background}switch($){case 16777216:case 33554432:j.isBold()&&k<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(k+=8),this._applyMinimumContrast(G,ue,this._colors.ansi[k],j,q,void 0)||G.classList.add("xterm-fg-"+k);break;case 50331648:var me=o.rgba.toColor(k>>16&255,k>>8&255,255&k);this._applyMinimumContrast(G,ue,me,j,q,D)||this._addStyle(G,"color:#"+r(k.toString(16),"0",6));break;default:this._applyMinimumContrast(G,ue,this._colors.foreground,j,q,void 0)||B&&G.classList.add("xterm-fg-"+l.INVERTED_DEFAULT_COLOR)}R.appendChild(G),A=z}}return R},i.prototype._applyMinimumContrast=function(n,f,u,m,S,y){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,t.excludeFromContrastRatioDemands)(m.getCode()))return!1;var b=void 0;return S||y||(b=this._colors.contrastCache.getColor(f.rgba,u.rgba)),b===void 0&&(b=o.color.ensureContrastRatio(S||f,y||u,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor((S||f).rgba,(y||u).rgba,b??null)),!!b&&(this._addStyle(n,"color:"+b.css),!0)},i.prototype._addStyle=function(n,f){n.setAttribute("style",""+(n.getAttribute("style")||"")+f+";")},i.prototype._isCellInSelection=function(n,f){var u=this._selectionStart,m=this._selectionEnd;return!(!u||!m)&&(this._columnSelectMode?u[0]<=m[0]?n>=u[0]&&f>=u[1]&&n<m[0]&&f<=m[1]:n<u[0]&&f>=u[1]&&n>=m[0]&&f<=m[1]:f>u[1]&&f<m[1]||u[1]===m[1]&&f===u[1]&&n>=u[0]&&n<m[0]||u[1]<m[1]&&f===m[1]&&n<m[0]||u[1]<m[1]&&f===u[1]&&n>=u[0])},c([_(2,h.ICharacterJoinerService),_(3,s.IOptionsService),_(4,s.ICoreService),_(5,s.IDecorationService)],i)}();function r(i,n,f){for(;i.length<f;)i=n+i;return i}p.DomRendererRowFactory=e},456:(N,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionModel=void 0;var x=function(){function c(_){this._bufferService=_,this.isSelectAllActive=!1,this.selectionStartLength=0}return c.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(c.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"finalSelectionEnd",{get:function(){return this.isSelectAllActive?[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?(_=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?_%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(_/this._bufferService.cols)-1]:[_%this._bufferService.cols,this.selectionStart[1]+Math.floor(_/this._bufferService.cols)]:[_,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?(_=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?[_%this._bufferService.cols,this.selectionStart[1]+Math.floor(_/this._bufferService.cols)]:[Math.max(_,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:void 0;var _},enumerable:!1,configurable:!0}),c.prototype.areSelectionValuesReversed=function(){var _=this.selectionStart,d=this.selectionEnd;return!(!_||!d)&&(_[1]>d[1]||_[1]===d[1]&&_[0]>d[0])},c.prototype.onTrim=function(_){return this.selectionStart&&(this.selectionStart[1]-=_),this.selectionEnd&&(this.selectionEnd[1]-=_),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},c}();p.SelectionModel=x},428:function(N,p,x){var c=this&&this.__decorate||function(s,o,h,a){var t,e=arguments.length,r=e<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,h):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,o,h,a);else for(var i=s.length-1;i>=0;i--)(t=s[i])&&(r=(e<3?t(r):e>3?t(o,h,r):t(o,h))||r);return e>3&&r&&Object.defineProperty(o,h,r),r},_=this&&this.__param||function(s,o){return function(h,a){o(h,a,s)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CharSizeService=void 0;var d=x(2585),l=x(8460),g=function(){function s(o,h,a){this._optionsService=a,this.width=0,this.height=0,this._onCharSizeChange=new l.EventEmitter,this._measureStrategy=new v(o,h,this._optionsService)}return Object.defineProperty(s.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),s.prototype.measure=function(){var o=this._measureStrategy.measure();o.width===this.width&&o.height===this.height||(this.width=o.width,this.height=o.height,this._onCharSizeChange.fire())},c([_(2,d.IOptionsService)],s)}();p.CharSizeService=g;var v=function(){function s(o,h,a){this._document=o,this._parentElement=h,this._optionsService=a,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return s.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var o=this._measureElement.getBoundingClientRect();return o.width!==0&&o.height!==0&&(this._result.width=o.width,this._result.height=Math.ceil(o.height)),this._result},s}()},4269:function(N,p,x){var c,_=this&&this.__extends||(c=function(t,e){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},c(t,e)},function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}c(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}),d=this&&this.__decorate||function(t,e,r,i){var n,f=arguments.length,u=f<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(t,e,r,i);else for(var m=t.length-1;m>=0;m--)(n=t[m])&&(u=(f<3?n(u):f>3?n(e,r,u):n(e,r))||u);return f>3&&u&&Object.defineProperty(e,r,u),u},l=this&&this.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CharacterJoinerService=p.JoinedCellData=void 0;var g=x(3734),v=x(643),s=x(511),o=x(2585),h=function(t){function e(r,i,n){var f=t.call(this)||this;return f.content=0,f.combinedData="",f.fg=r.fg,f.bg=r.bg,f.combinedData=i,f._width=n,f}return _(e,t),e.prototype.isCombined=function(){return 2097152},e.prototype.getWidth=function(){return this._width},e.prototype.getChars=function(){return this.combinedData},e.prototype.getCode=function(){return 2097151},e.prototype.setFromCharData=function(r){throw new Error("not implemented")},e.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},e}(g.AttributeData);p.JoinedCellData=h;var a=function(){function t(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new s.CellData}return t.prototype.register=function(e){var r={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(r),r.id},t.prototype.deregister=function(e){for(var r=0;r<this._characterJoiners.length;r++)if(this._characterJoiners[r].id===e)return this._characterJoiners.splice(r,1),!0;return!1},t.prototype.getJoinedCharacters=function(e){if(this._characterJoiners.length===0)return[];var r=this._bufferService.buffer.lines.get(e);if(!r||r.length===0)return[];for(var i=[],n=r.translateToString(!0),f=0,u=0,m=0,S=r.getFg(0),y=r.getBg(0),b=0;b<r.getTrimmedLength();b++)if(r.loadCell(b,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==S||this._workCell.bg!==y){if(b-f>1)for(var C=this._getJoinedRanges(n,m,u,r,f),M=0;M<C.length;M++)i.push(C[M]);f=b,m=u,S=this._workCell.fg,y=this._workCell.bg}u+=this._workCell.getChars().length||v.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-f>1)for(C=this._getJoinedRanges(n,m,u,r,f),M=0;M<C.length;M++)i.push(C[M]);return i},t.prototype._getJoinedRanges=function(e,r,i,n,f){var u=e.substring(r,i),m=[];try{m=this._characterJoiners[0].handler(u)}catch(C){console.error(C)}for(var S=1;S<this._characterJoiners.length;S++)try{for(var y=this._characterJoiners[S].handler(u),b=0;b<y.length;b++)t._mergeRanges(m,y[b])}catch(C){console.error(C)}return this._stringRangesToCellRanges(m,n,f),m},t.prototype._stringRangesToCellRanges=function(e,r,i){var n=0,f=!1,u=0,m=e[n];if(m){for(var S=i;S<this._bufferService.cols;S++){var y=r.getWidth(S),b=r.getString(S).length||v.WHITESPACE_CELL_CHAR.length;if(y!==0){if(!f&&m[0]<=u&&(m[0]=S,f=!0),m[1]<=u){if(m[1]=S,!(m=e[++n]))break;m[0]<=u?(m[0]=S,f=!0):f=!1}u+=b}}m&&(m[1]=this._bufferService.cols)}},t._mergeRanges=function(e,r){for(var i=!1,n=0;n<e.length;n++){var f=e[n];if(i){if(r[1]<=f[0])return e[n-1][1]=r[1],e;if(r[1]<=f[1])return e[n-1][1]=Math.max(r[1],f[1]),e.splice(n,1),e;e.splice(n,1),n--}else{if(r[1]<=f[0])return e.splice(n,0,r),e;if(r[1]<=f[1])return f[0]=Math.min(r[0],f[0]),e;r[0]<f[1]&&(f[0]=Math.min(r[0],f[0]),i=!0)}}return i?e[e.length-1][1]=r[1]:e.push(r),e},t=d([l(0,o.IBufferService)],t)}();p.CharacterJoinerService=a},5114:(N,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.CoreBrowserService=void 0;var x=function(){function c(_){this._textarea=_}return Object.defineProperty(c.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),c}();p.CoreBrowserService=x},8934:function(N,p,x){var c=this&&this.__decorate||function(v,s,o,h){var a,t=arguments.length,e=t<3?s:h===null?h=Object.getOwnPropertyDescriptor(s,o):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(v,s,o,h);else for(var r=v.length-1;r>=0;r--)(a=v[r])&&(e=(t<3?a(e):t>3?a(s,o,e):a(s,o))||e);return t>3&&e&&Object.defineProperty(s,o,e),e},_=this&&this.__param||function(v,s){return function(o,h){s(o,h,v)}};Object.defineProperty(p,"__esModule",{value:!0}),p.MouseService=void 0;var d=x(4725),l=x(9806),g=function(){function v(s,o){this._renderService=s,this._charSizeService=o}return v.prototype.getCoords=function(s,o,h,a,t){return(0,l.getCoords)(window,s,o,h,a,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,t)},v.prototype.getRawByteCoords=function(s,o,h,a){var t=this.getCoords(s,o,h,a);return(0,l.getRawByteCoords)(t)},c([_(0,d.IRenderService),_(1,d.ICharSizeService)],v)}();p.MouseService=g},3230:function(N,p,x){var c,_=this&&this.__extends||(c=function(r,i){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,f){n.__proto__=f}||function(n,f){for(var u in f)Object.prototype.hasOwnProperty.call(f,u)&&(n[u]=f[u])},c(r,i)},function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=r}c(r,i),r.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}),d=this&&this.__decorate||function(r,i,n,f){var u,m=arguments.length,S=m<3?i:f===null?f=Object.getOwnPropertyDescriptor(i,n):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(r,i,n,f);else for(var y=r.length-1;y>=0;y--)(u=r[y])&&(S=(m<3?u(S):m>3?u(i,n,S):u(i,n))||S);return m>3&&S&&Object.defineProperty(i,n,S),S},l=this&&this.__param||function(r,i){return function(n,f){i(n,f,r)}};Object.defineProperty(p,"__esModule",{value:!0}),p.RenderService=void 0;var g=x(6193),v=x(8460),s=x(844),o=x(5596),h=x(3656),a=x(2585),t=x(4725),e=function(r){function i(n,f,u,m,S,y,b){var C=r.call(this)||this;if(C._renderer=n,C._rowCount=f,C._charSizeService=S,C._isPaused=!1,C._needsFullRefresh=!1,C._isNextRenderRedrawOnly=!0,C._needsSelectionRefresh=!1,C._canvasWidth=0,C._canvasHeight=0,C._selectionState={start:void 0,end:void 0,columnSelectMode:!1},C._onDimensionsChange=new v.EventEmitter,C._onRenderedViewportChange=new v.EventEmitter,C._onRender=new v.EventEmitter,C._onRefreshRequest=new v.EventEmitter,C.register({dispose:function(){return C._renderer.dispose()}}),C._renderDebouncer=new g.RenderDebouncer(function(w,R){return C._renderRows(w,R)}),C.register(C._renderDebouncer),C._screenDprMonitor=new o.ScreenDprMonitor,C._screenDprMonitor.setListener(function(){return C.onDevicePixelRatioChange()}),C.register(C._screenDprMonitor),C.register(b.onResize(function(){return C._fullRefresh()})),C.register(b.buffers.onBufferActivate(function(){var w;return(w=C._renderer)===null||w===void 0?void 0:w.clear()})),C.register(m.onOptionChange(function(){return C._handleOptionsChanged()})),C.register(C._charSizeService.onCharSizeChange(function(){return C.onCharSizeChanged()})),C.register(y.onDecorationRegistered(function(){return C._fullRefresh()})),C.register(y.onDecorationRemoved(function(){return C._fullRefresh()})),C._renderer.onRequestRedraw(function(w){return C.refreshRows(w.start,w.end,!0)}),C.register((0,h.addDisposableDomListener)(window,"resize",function(){return C.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var M=new IntersectionObserver(function(w){return C._onIntersectionChange(w[w.length-1])},{threshold:0});M.observe(u),C.register({dispose:function(){return M.disconnect()}})}return C}return _(i,r),Object.defineProperty(i.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onRenderedViewportChange",{get:function(){return this._onRenderedViewportChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),i.prototype._onIntersectionChange=function(n){this._isPaused=n.isIntersecting===void 0?n.intersectionRatio===0:!n.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},i.prototype.refreshRows=function(n,f,u){u===void 0&&(u=!1),this._isPaused?this._needsFullRefresh=!0:(u||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(n,f,this._rowCount))},i.prototype._renderRows=function(n,f){this._renderer.renderRows(n,f),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:n,end:f}),this._onRender.fire({start:n,end:f}),this._isNextRenderRedrawOnly=!0},i.prototype.resize=function(n,f){this._rowCount=f,this._fireOnCanvasResize()},i.prototype._handleOptionsChanged=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},i.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},i.prototype.dispose=function(){r.prototype.dispose.call(this)},i.prototype.setRenderer=function(n){var f=this;this._renderer.dispose(),this._renderer=n,this._renderer.onRequestRedraw(function(u){return f.refreshRows(u.start,u.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},i.prototype.addRefreshCallback=function(n){return this._renderDebouncer.addRefreshCallback(n)},i.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},i.prototype.clearTextureAtlas=function(){var n,f;(f=(n=this._renderer)===null||n===void 0?void 0:n.clearTextureAtlas)===null||f===void 0||f.call(n),this._fullRefresh()},i.prototype.setColors=function(n){this._renderer.setColors(n),this._fullRefresh()},i.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},i.prototype.onResize=function(n,f){this._renderer.onResize(n,f),this._fullRefresh()},i.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},i.prototype.onBlur=function(){this._renderer.onBlur()},i.prototype.onFocus=function(){this._renderer.onFocus()},i.prototype.onSelectionChanged=function(n,f,u){this._selectionState.start=n,this._selectionState.end=f,this._selectionState.columnSelectMode=u,this._renderer.onSelectionChanged(n,f,u)},i.prototype.onCursorMove=function(){this._renderer.onCursorMove()},i.prototype.clear=function(){this._renderer.clear()},d([l(3,a.IOptionsService),l(4,t.ICharSizeService),l(5,a.IDecorationService),l(6,a.IBufferService)],i)}(s.Disposable);p.RenderService=e},9312:function(N,p,x){var c,_=this&&this.__extends||(c=function(m,S){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var C in b)Object.prototype.hasOwnProperty.call(b,C)&&(y[C]=b[C])},c(m,S)},function(m,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function y(){this.constructor=m}c(m,S),m.prototype=S===null?Object.create(S):(y.prototype=S.prototype,new y)}),d=this&&this.__decorate||function(m,S,y,b){var C,M=arguments.length,w=M<3?S:b===null?b=Object.getOwnPropertyDescriptor(S,y):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(m,S,y,b);else for(var R=m.length-1;R>=0;R--)(C=m[R])&&(w=(M<3?C(w):M>3?C(S,y,w):C(S,y))||w);return M>3&&w&&Object.defineProperty(S,y,w),w},l=this&&this.__param||function(m,S){return function(y,b){S(y,b,m)}};Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionService=void 0;var g=x(6114),v=x(456),s=x(511),o=x(8460),h=x(4725),a=x(2585),t=x(9806),e=x(9504),r=x(844),i=x(4841),n=String.fromCharCode(160),f=new RegExp(n,"g"),u=function(m){function S(y,b,C,M,w,R,E,L){var A=m.call(this)||this;return A._element=y,A._screenElement=b,A._linkifier=C,A._bufferService=M,A._coreService=w,A._mouseService=R,A._optionsService=E,A._renderService=L,A._dragScrollAmount=0,A._enabled=!0,A._workCell=new s.CellData,A._mouseDownTimeStamp=0,A._oldHasSelection=!1,A._oldSelectionStart=void 0,A._oldSelectionEnd=void 0,A._onLinuxMouseSelection=A.register(new o.EventEmitter),A._onRedrawRequest=A.register(new o.EventEmitter),A._onSelectionChange=A.register(new o.EventEmitter),A._onRequestScrollLines=A.register(new o.EventEmitter),A._mouseMoveListener=function(T){return A._onMouseMove(T)},A._mouseUpListener=function(T){return A._onMouseUp(T)},A._coreService.onUserInput(function(){A.hasSelection&&A.clearSelection()}),A._trimListener=A._bufferService.buffer.lines.onTrim(function(T){return A._onTrim(T)}),A.register(A._bufferService.buffers.onBufferActivate(function(T){return A._onBufferActivate(T)})),A.enable(),A._model=new v.SelectionModel(A._bufferService),A._activeSelectionMode=0,A}return _(S,m),Object.defineProperty(S.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),S.prototype.dispose=function(){this._removeMouseDownListeners()},S.prototype.reset=function(){this.clearSelection()},S.prototype.disable=function(){this.clearSelection(),this._enabled=!1},S.prototype.enable=function(){this._enabled=!0},Object.defineProperty(S.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"hasSelection",{get:function(){var y=this._model.finalSelectionStart,b=this._model.finalSelectionEnd;return!(!y||!b||y[0]===b[0]&&y[1]===b[1])},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"selectionText",{get:function(){var y=this._model.finalSelectionStart,b=this._model.finalSelectionEnd;if(!y||!b)return"";var C=this._bufferService.buffer,M=[];if(this._activeSelectionMode===3){if(y[0]===b[0])return"";for(var w=y[0]<b[0]?y[0]:b[0],R=y[0]<b[0]?b[0]:y[0],E=y[1];E<=b[1];E++){var L=C.translateBufferLineToString(E,!0,w,R);M.push(L)}}else{var A=y[1]===b[1]?b[0]:void 0;for(M.push(C.translateBufferLineToString(y[1],!0,y[0],A)),E=y[1]+1;E<=b[1]-1;E++){var T=C.lines.get(E);L=C.translateBufferLineToString(E,!0),T!=null&&T.isWrapped?M[M.length-1]+=L:M.push(L)}y[1]!==b[1]&&(T=C.lines.get(b[1]),L=C.translateBufferLineToString(b[1],!0,0,b[0]),T&&T.isWrapped?M[M.length-1]+=L:M.push(L))}return M.map(function(W){return W.replace(f," ")}).join(g.isWindows?`\r
@@ -1 +1 @@
1
- import{j as n}from"./index-0751d893.js";import{H as l}from"./HSegment-8966b13f.js";import{V as h}from"./VSegment-cf1ceafc.js";function c(e){const{centerX:i,centerY:a,width:z,height:x}=e,t=z*.5,d=x*.5;return n.jsxs(n.Fragment,{children:[n.jsx(l,{y:a,x1:i,x2:i-t,color:e.color,gapColor:e.gapColor,dashSize:e.dashSize,gapSize:e.gapSize,lineWidth:e.lineWidth,zIndex:e.zIndex}),n.jsx(l,{y:a,x1:i,x2:i+t,color:e.color,gapColor:e.gapColor,dashSize:e.dashSize,gapSize:e.gapSize,lineWidth:e.lineWidth,zIndex:e.zIndex}),n.jsx(h,{x:i,y1:a,y2:a+d,color:e.color,gapColor:e.gapColor,dashSize:e.dashSize,gapSize:e.gapSize,lineWidth:e.lineWidth,zIndex:e.zIndex}),n.jsx(h,{x:i,y1:a,y2:a-d,color:e.color,gapColor:e.gapColor,dashSize:e.dashSize,gapSize:e.gapSize,lineWidth:e.lineWidth,zIndex:e.zIndex})]})}export{c as C};
1
+ import{j as n}from"./index-b3c0133a.js";import{H as l}from"./HSegment-8d2c001e.js";import{V as h}from"./VSegment-f0d42c9a.js";function c(e){const{centerX:i,centerY:a,width:z,height:x}=e,t=z*.5,d=x*.5;return n.jsxs(n.Fragment,{children:[n.jsx(l,{y:a,x1:i,x2:i-t,color:e.color,gapColor:e.gapColor,dashSize:e.dashSize,gapSize:e.gapSize,lineWidth:e.lineWidth,zIndex:e.zIndex}),n.jsx(l,{y:a,x1:i,x2:i+t,color:e.color,gapColor:e.gapColor,dashSize:e.dashSize,gapSize:e.gapSize,lineWidth:e.lineWidth,zIndex:e.zIndex}),n.jsx(h,{x:i,y1:a,y2:a+d,color:e.color,gapColor:e.gapColor,dashSize:e.dashSize,gapSize:e.gapSize,lineWidth:e.lineWidth,zIndex:e.zIndex}),n.jsx(h,{x:i,y1:a,y2:a-d,color:e.color,gapColor:e.gapColor,dashSize:e.dashSize,gapSize:e.gapSize,lineWidth:e.lineWidth,zIndex:e.zIndex})]})}export{c as C};
@@ -1,4 +1,4 @@
1
- import{aM as f,r as l,aN as h,j as e,aO as u,a_ as x}from"./index-0751d893.js";import{c as v}from"./colors-2395de5a.js";import{S as g}from"./ScreenScale-ae820d30.js";class S extends u{constructor(){super({uniforms:{color:{value:new x},lineWidth:{value:0},sizeInScreen:{value:0}},vertexShader:`
1
+ import{aU as f,r as l,aX as h,j as e,aV as u,aW as x}from"./index-b3c0133a.js";import{c as v}from"./Label-9d8979b3.js";import{S as g}from"./ScreenScale-b2417934.js";class S extends u{constructor(){super({uniforms:{color:{value:new x},lineWidth:{value:0},sizeInScreen:{value:0}},vertexShader:`
2
2
  out vec2 pixelCoord;
3
3
 
4
4
  void main() {
@@ -51,4 +51,4 @@ void main() {
51
51
 
52
52
  gl_FragColor = vec4(color.r, color.g, color.b, alpha * color.a);
53
53
  }
54
- `})}}f({CrossMarkerMaterial:S});function M(i){const{x:c,y:d,color:n="black",opacity:s,sizeInScreen:r,lineWidth:o=1,zIndex:p=0}=i,a=l.useRef(null);return l.useEffect(()=>{const m=v(n,s);if(a.current){const t=a.current.uniforms;t.color.value=m,t.lineWidth.value=o,t.sizeInScreen.value=r,h()}},[n,s,o,r]),e.jsx("group",{position:[c,d,p],children:e.jsx(g,{children:e.jsxs("mesh",{children:[e.jsx("ambientLight",{}),e.jsx("planeGeometry",{attach:"geometry",args:[r+o,r+o,1,1]}),e.jsx("crossMarkerMaterial",{attach:"material",transparent:!0,ref:a})]})})})}export{M as C};
54
+ `})}}f({CrossMarkerMaterial:S});function W(i){const{x:c,y:d,color:n="black",opacity:s,sizeInScreen:r,lineWidth:o=1,zIndex:p=0}=i,a=l.useRef(null);return l.useEffect(()=>{const m=v(n,s);if(a.current){const t=a.current.uniforms;t.color.value=m,t.lineWidth.value=o,t.sizeInScreen.value=r,h()}},[n,s,o,r]),e.jsx("group",{position:[c,d,p],children:e.jsx(g,{children:e.jsxs("mesh",{children:[e.jsx("ambientLight",{}),e.jsx("planeGeometry",{attach:"geometry",args:[r+o,r+o,1,1]}),e.jsx("crossMarkerMaterial",{attach:"material",transparent:!0,ref:a})]})})})}export{W as C};