(e3, t3, i3, u)
| 7307 | let n, a = 0, h = 0, l = false, c = false, d = false, _ = 0; |
| 7308 | t2.CellColorResolver = class { |
| 7309 | constructor(e3, t3, i3, s3, r2, o2) { |
| 7310 | this._terminal = e3, this._optionService = t3, this._selectionRenderModel = i3, this._decorationService = s3, this._coreBrowserService = r2, this._themeService = o2, this.result = { fg: 0, bg: 0, ext: 0 }; |
| 7311 | } |
| 7312 | resolve(e3, t3, i3, u) { |
| 7313 | if (this.result.bg = e3.bg, this.result.fg = e3.fg, this.result.ext = 268435456 & e3.bg ? e3.extended.ext : 0, h = 0, a = 0, c = false, l = false, d = false, n = this._themeService.colors, _ = 0, e3.getCode() !== s2.NULL_CELL_CODE && 4 === e3.extended.underlineStyle) { |
| 7314 | const e4 = Math.max(1, Math.floor(this._optionService.rawOptions.fontSize * this._coreBrowserService.dpr / 15)); |
| 7315 | _ = t3 * u % (2 * Math.round(e4)); |
| 7316 | } |
| 7317 | if (this._decorationService.forEachDecorationAtCell(t3, i3, "bottom", ((e4) => { |
| 7318 | e4.backgroundColorRGB && (h = e4.backgroundColorRGB.rgba >> 8 & 16777215, c = true), e4.foregroundColorRGB && (a = e4.foregroundColorRGB.rgba >> 8 & 16777215, l = true); |
| 7319 | })), d = this._selectionRenderModel.isCellSelected(this._terminal, t3, i3), d) { |
| 7320 | if (67108864 & this.result.fg || 0 != (50331648 & this.result.bg)) { |
| 7321 | if (67108864 & this.result.fg) switch (50331648 & this.result.fg) { |
| 7322 | case 16777216: |
| 7323 | case 33554432: |
| 7324 | h = this._themeService.colors.ansi[255 & this.result.fg].rgba; |
| 7325 | break; |
| 7326 | case 50331648: |
| 7327 | h = (16777215 & this.result.fg) << 8 | 255; |
| 7328 | break; |
| 7329 | default: |
| 7330 | h = this._themeService.colors.foreground.rgba; |
| 7331 | } |
| 7332 | else switch (50331648 & this.result.bg) { |
| 7333 | case 16777216: |
| 7334 | case 33554432: |
| 7335 | h = this._themeService.colors.ansi[255 & this.result.bg].rgba; |
| 7336 | break; |
| 7337 | case 50331648: |
| 7338 | h = (16777215 & this.result.bg) << 8 | 255; |
| 7339 | } |
| 7340 | h = r.rgba.blend(h, 4294967040 & (this._coreBrowserService.isFocused ? n.selectionBackgroundOpaque : n.selectionInactiveBackgroundOpaque).rgba | 128) >> 8 & 16777215; |
| 7341 | } else h = (this._coreBrowserService.isFocused ? n.selectionBackgroundOpaque : n.selectionInactiveBackgroundOpaque).rgba >> 8 & 16777215; |
| 7342 | if (c = true, n.selectionForeground && (a = n.selectionForeground.rgba >> 8 & 16777215, l = true), (0, o.treatGlyphAsBackgroundColor)(e3.getCode())) { |
| 7343 | if (67108864 & this.result.fg && 0 == (50331648 & this.result.bg)) a = (this._coreBrowserService.isFocused ? n.selectionBackgroundOpaque : n.selectionInactiveBackgroundOpaque).rgba >> 8 & 16777215; |
| 7344 | else { |
| 7345 | if (67108864 & this.result.fg) switch (50331648 & this.result.bg) { |
| 7346 | case 16777216: |
| 7347 | case 33554432: |
| 7348 | a = this._themeService.colors.ansi[255 & this.result.bg].rgba; |
| 7349 | break; |
| 7350 | case 50331648: |
| 7351 | a = (16777215 & this.result.bg) << 8 | 255; |
| 7352 | } |
| 7353 | else switch (50331648 & this.result.fg) { |
| 7354 | case 16777216: |
| 7355 | case 33554432: |
| 7356 | a = this._themeService.colors.ansi[255 & this.result.fg].rgba; |
| 7357 | break; |
| 7358 | case 50331648: |
| 7359 | a = (16777215 & this.result.fg) << 8 | 255; |
| 7360 | break; |
| 7361 | default: |
| 7362 | a = this._themeService.colors.foreground.rgba; |
| 7363 | } |
| 7364 | a = r.rgba.blend(a, 4294967040 & (this._coreBrowserService.isFocused ? n.selectionBackgroundOpaque : n.selectionInactiveBackgroundOpaque).rgba | 128) >> 8 & 16777215; |
| 7365 | } |
| 7366 | l = true; |
no test coverage detected