@gitkraken/core-gitlens 0.38.2 → 0.38.4

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 (56) hide show
  1. package/CHANGELOG.md +24 -1
  2. package/dist/git/parsers/diffParser.d.ts +25 -0
  3. package/dist/git/parsers/diffParser.js +169 -23
  4. package/dist/git/parsers/diffParser.js.map +1 -1
  5. package/dist/git/providers/diff.d.ts +10 -0
  6. package/dist/git/providers/revision.d.ts +8 -1
  7. package/dist/git-cli/parsers/blameParser.js +25 -5
  8. package/dist/git-cli/parsers/blameParser.js.map +1 -1
  9. package/dist/git-cli/parsers/logParser.js +28 -18
  10. package/dist/git-cli/parsers/logParser.js.map +1 -1
  11. package/dist/git-cli/parsers/statusParser.d.ts +5 -1
  12. package/dist/git-cli/parsers/statusParser.js +17 -6
  13. package/dist/git-cli/parsers/statusParser.js.map +1 -1
  14. package/dist/git-cli/parsers/treeParser.js +5 -3
  15. package/dist/git-cli/parsers/treeParser.js.map +1 -1
  16. package/dist/git-cli/parsers/worktreeParser.js +1 -41
  17. package/dist/git-cli/parsers/worktreeParser.js.map +1 -1
  18. package/dist/git-cli/providers/diff.d.ts +2 -0
  19. package/dist/git-cli/providers/diff.js +10 -7
  20. package/dist/git-cli/providers/diff.js.map +1 -1
  21. package/dist/git-cli/providers/revision.d.ts +3 -1
  22. package/dist/git-cli/providers/revision.js +10 -5
  23. package/dist/git-cli/providers/revision.js.map +1 -1
  24. package/dist/git-cli/providers/status.js +1 -0
  25. package/dist/git-cli/providers/status.js.map +1 -1
  26. package/dist/plus/git-github/providers/github/revision.d.ts +3 -1
  27. package/dist/plus/git-github/providers/github/revision.js +1 -1
  28. package/dist/plus/git-github/providers/github/revision.js.map +1 -1
  29. package/dist/plus/integrations/authentication/configuredIntegrationService.d.ts +2 -0
  30. package/dist/plus/integrations/authentication/configuredIntegrationService.js +23 -1
  31. package/dist/plus/integrations/authentication/configuredIntegrationService.js.map +1 -1
  32. package/dist/plus/integrations/authentication/models.d.ts +1 -0
  33. package/dist/plus/integrations/authentication/models.js.map +1 -1
  34. package/dist/plus/integrations/authentication/observedAuthenticationProvider.js +4 -1
  35. package/dist/plus/integrations/authentication/observedAuthenticationProvider.js.map +1 -1
  36. package/dist/plus/integrations/integrationService.js +7 -1
  37. package/dist/plus/integrations/integrationService.js.map +1 -1
  38. package/dist/plus/integrations/models/integration.d.ts +1 -0
  39. package/dist/plus/integrations/models/integration.js +8 -0
  40. package/dist/plus/integrations/models/integration.js.map +1 -1
  41. package/dist/plus/integrations/models/issuesIntegration.d.ts +5 -0
  42. package/dist/plus/integrations/models/issuesIntegration.js +33 -1
  43. package/dist/plus/integrations/models/issuesIntegration.js.map +1 -1
  44. package/dist/plus/integrations/providers/jira.d.ts +3 -2
  45. package/dist/plus/integrations/providers/jira.js +36 -17
  46. package/dist/plus/integrations/providers/jira.js.map +1 -1
  47. package/dist/plus/integrations/providers/linear.d.ts +1 -0
  48. package/dist/plus/integrations/providers/linear.js +40 -17
  49. package/dist/plus/integrations/providers/linear.js.map +1 -1
  50. package/dist/plus/integrations/providers/utils/discoveryCache.d.ts +6 -3
  51. package/dist/plus/integrations/providers/utils/discoveryCache.js +12 -6
  52. package/dist/plus/integrations/providers/utils/discoveryCache.js.map +1 -1
  53. package/dist/utils/string.d.ts +15 -0
  54. package/dist/utils/string.js +61 -1
  55. package/dist/utils/string.js.map +1 -1
  56. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"string.js","names":[],"sources":["../../../utils/src/string.ts"],"sourcesContent":["import type {\n\tWidthOptions as StringWidthOptions,\n\tTruncationOptions as StringWidthTruncationOptions,\n\tResult as TruncatedStringWidthResult,\n} from 'fast-string-truncated-width';\nimport getTruncatedStringWidth from 'fast-string-truncated-width';\nimport { CharCode } from './charCode.js';\n\nexport function capitalize(s: string): string {\n\treturn `${s[0].toLocaleUpperCase()}${s.slice(1)}`;\n}\n\nlet compareCollator: Intl.Collator | undefined;\nexport function compareIgnoreCase(a: string, b: string): 0 | -1 | 1 {\n\tcompareCollator ??= new Intl.Collator(undefined, { sensitivity: 'accent' });\n\n\tconst result = compareCollator.compare(a, b);\n\t// Intl.Collator.compare isn't guaranteed to always return 1 or -1 on all platforms so normalize it\n\treturn result === 0 ? 0 : result > 0 ? 1 : -1;\n}\n\n/**\n * Removes common leading whitespace from each line in a template string.\n * This allows you to write indented template strings but have them trimmed in the result.\n *\n * @param template The template string to dedent\n * @returns The dedented string\n *\n * @example\n * ```typescript\n * const str = dedent(`\n * Hello\n * World\n * Test\n * `);\n * // Result: \"Hello\\nWorld\\nTest\"\n * ```\n */\nexport function dedent(template: string): string {\n\tconst lines = template.split('\\n');\n\n\t// Remove leading and trailing empty lines\n\twhile (lines.length > 0 && lines[0].trim() === '') {\n\t\tlines.shift();\n\t}\n\twhile (lines.length > 0 && lines.at(-1)?.trim() === '') {\n\t\tlines.pop();\n\t}\n\n\tif (lines.length === 0) return '';\n\n\t// Find the minimum indentation (excluding empty lines)\n\tconst nonEmptyLines = lines.filter(line => line.trim() !== '');\n\tif (nonEmptyLines.length === 0) return '';\n\n\tconst minIndent = Math.min(\n\t\t...nonEmptyLines.map(line => {\n\t\t\tconst match = line.match(/^(\\s*)/);\n\t\t\treturn match ? match[1].length : 0;\n\t\t}),\n\t);\n\n\t// Remove the common indentation from all lines\n\treturn lines.map(line => line.slice(minIndent)).join('\\n');\n}\n\nexport function equalsIgnoreCase(a: string | null | undefined, b: string | null | undefined): boolean {\n\t// Treat `null` & `undefined` as equivalent\n\tif (a == null && b == null) return true;\n\tif (a == null || b == null) return false;\n\treturn compareIgnoreCase(a, b) === 0;\n}\n\nlet sortCollator: Intl.Collator | undefined;\nexport function sortCompare(x: string, y: string): number {\n\tsortCollator ??= new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });\n\treturn sortCollator.compare(x, y);\n}\n\nexport function compareSubstring(\n\ta: string,\n\tb: string,\n\taStart: number = 0,\n\taEnd: number = a.length,\n\tbStart: number = 0,\n\tbEnd: number = b.length,\n): number {\n\tfor (; aStart < aEnd && bStart < bEnd; aStart++, bStart++) {\n\t\tconst codeA = a.charCodeAt(aStart);\n\t\tconst codeB = b.charCodeAt(bStart);\n\t\tif (codeA < codeB) {\n\t\t\treturn -1;\n\t\t} else if (codeA > codeB) {\n\t\t\treturn 1;\n\t\t}\n\t}\n\tconst aLen = aEnd - aStart;\n\tconst bLen = bEnd - bStart;\n\tif (aLen < bLen) {\n\t\treturn -1;\n\t} else if (aLen > bLen) {\n\t\treturn 1;\n\t}\n\treturn 0;\n}\n\nexport function compareSubstringIgnoreCase(\n\ta: string,\n\tb: string,\n\taStart: number = 0,\n\taEnd: number = a.length,\n\tbStart: number = 0,\n\tbEnd: number = b.length,\n): number {\n\tfor (; aStart < aEnd && bStart < bEnd; aStart++, bStart++) {\n\t\tconst codeA = a.charCodeAt(aStart);\n\t\tconst codeB = b.charCodeAt(bStart);\n\n\t\tif (codeA === codeB) {\n\t\t\t// equal\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst diff = codeA - codeB;\n\t\tif (diff === 32 && isUpperAsciiLetter(codeB)) {\n\t\t\t//codeB =[65-90] && codeA =[97-122]\n\t\t\tcontinue;\n\t\t} else if (diff === -32 && isUpperAsciiLetter(codeA)) {\n\t\t\t//codeB =[97-122] && codeA =[65-90]\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (isLowerAsciiLetter(codeA) && isLowerAsciiLetter(codeB)) {\n\t\t\t//\n\t\t\treturn diff;\n\t\t}\n\t\treturn compareSubstring(a.toLowerCase(), b.toLowerCase(), aStart, aEnd, bStart, bEnd);\n\t}\n\n\tconst aLen = aEnd - aStart;\n\tconst bLen = bEnd - bStart;\n\n\tif (aLen < bLen) {\n\t\treturn -1;\n\t} else if (aLen > bLen) {\n\t\treturn 1;\n\t}\n\n\treturn 0;\n}\n\nexport function countOccurrences(s: string, search: string): number {\n\tlet count = 0;\n\tlet position = 0;\n\n\twhile (true) {\n\t\tposition = s.indexOf(search, position);\n\t\tif (position === -1) break;\n\n\t\tcount++;\n\t\tposition += search.length;\n\t}\n\n\treturn count;\n}\n\nexport function encodeHtmlWeak(s: string): string;\nexport function encodeHtmlWeak(s: string | undefined): string | undefined;\nexport function encodeHtmlWeak(s: string | undefined): string | undefined {\n\treturn s?.replace(/[<>&\"]/g, c => {\n\t\tswitch (c) {\n\t\t\tcase '<':\n\t\t\t\treturn '&lt;';\n\t\t\tcase '>':\n\t\t\t\treturn '&gt;';\n\t\t\tcase '&':\n\t\t\t\treturn '&amp;';\n\t\t\tcase '\"':\n\t\t\t\treturn '&quot;';\n\t\t\tdefault:\n\t\t\t\treturn c;\n\t\t}\n\t});\n}\n\nexport function splitMessage(message?: string): { summary: string; body?: string } {\n\tif (!message) return { summary: '' };\n\n\tmessage = message.trim();\n\tconst index = message.indexOf('\\n');\n\tif (index < 0) return { summary: message };\n\n\treturn {\n\t\tsummary: message.substring(0, index),\n\t\tbody: message.substring(index + 1).trim(),\n\t};\n}\n\nexport function escapeRegex(s: string): string {\n\treturn s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&');\n}\n\n/**\n * Distributes a value into one of 100 groups based on a hash of the value\n * @param value The value to distribute (e.g., machine ID)\n * @returns A number between 1-100 representing the distribution group\n */\nexport function getDistributionGroup(value: string): number {\n\t// Simple hash function\n\tlet hash = 0;\n\tfor (let i = 0; i < value.length; i++) {\n\t\thash = (hash << 5) - hash + value.charCodeAt(i);\n\t\thash = hash & hash; // Convert to 32-bit integer\n\t}\n\n\t// Convert hash to a number between 1-100\n\tconst group = Math.abs(hash % 100) + 1;\n\treturn group;\n}\n\nexport function getPossessiveForm(name: string): string {\n\treturn name.endsWith('s') ? `${name}'` : `${name}'s`;\n}\n\nconst defaultTruncationOptions: StringWidthTruncationOptions = {\n\tellipsisWidth: 0,\n\tlimit: 2 ** 30 - 1, // Max number that can be stored in V8's smis (small integers)\n};\n\nconst defaultWidthOptions: StringWidthOptions = {\n\tcontrolWidth: 0,\n\temojiWidth: 2,\n\tregularWidth: 1,\n\twideWidth: 2,\n};\n\nexport function getTruncatedWidth(s: string, limit: number, ellipsisWidth: number): TruncatedStringWidthResult {\n\tif (s == null || s.length === 0) {\n\t\treturn {\n\t\t\ttruncated: false,\n\t\t\tellipsed: false,\n\t\t\twidth: 0,\n\t\t\tindex: 0,\n\t\t};\n\t}\n\n\treturn getTruncatedStringWidth(s, { limit: limit, ellipsisWidth: ellipsisWidth ?? 0 }, defaultWidthOptions);\n}\n\nexport function getWidth(s: string): number {\n\tif (s == null || s.length === 0) return 0;\n\n\tconst result = getTruncatedStringWidth(s, defaultTruncationOptions, defaultWidthOptions);\n\treturn result.width;\n}\n\nconst superscripts = ['\\u00B9', '\\u00B2', '\\u00B3', '\\u2074', '\\u2075', '\\u2076', '\\u2077', '\\u2078', '\\u2079'];\n\nexport function getSuperscript(num: number): string {\n\treturn superscripts[num - 1] ?? '';\n}\n\nconst tokenRegex = /\\$\\{(?:'(.*?[^\\\\])'|(\\W*))?([^|]*?)(?:\\|(\\d+)(-|\\?)?)?(?:'(.*?[^\\\\])'|(\\W*))?\\}/g;\nconst tokenSanitizeRegex = /\\$\\{(?:'.*?[^\\\\]'|\\W*)?(\\w*?)(?:'.*?[^\\\\]'|[\\W\\d]*)\\}/g;\nconst tokenGroupCharacter = \"'\";\nconst tokenGroupCharacterEscapedRegex = /(\\\\')/g;\n\ninterface TokenMatch {\n\tkey: string;\n\tstart: number;\n\tend: number;\n\toptions: TokenOptions;\n}\nconst templateTokenMap = new Map<string, TokenMatch[]>();\n\nexport interface TokenOptions {\n\tcollapseWhitespace: boolean;\n\tpadDirection: 'left' | 'right';\n\tprefix: string | undefined;\n\tsuffix: string | undefined;\n\ttruncateTo: number | undefined;\n}\n\nfunction isWordChar(code: number): boolean {\n\treturn (\n\t\tcode === 95 /* _ */ ||\n\t\t(code >= 0x61 && code <= 0x7a) || // lowercase letters\n\t\t(code >= 0x41 && code <= 0x5a) || // uppercase letters\n\t\t(code >= 0x30 && code <= 0x39) // digits\n\t);\n}\n\nexport function getTokensFromTemplate(template: string): TokenMatch[] {\n\tlet tokens = templateTokenMap.get(template);\n\tif (tokens != null) return tokens;\n\n\ttokens = [];\n\tconst length = template.length;\n\n\tlet position = 0;\n\twhile (position < length) {\n\t\tconst tokenStart = template.indexOf('${', position);\n\t\tif (tokenStart === -1) break;\n\n\t\tconst tokenEnd = template.indexOf('}', tokenStart);\n\t\tif (tokenEnd === -1) break;\n\n\t\tlet tokenPos = tokenStart + 2;\n\n\t\tlet key = '';\n\t\tlet prefix = '';\n\t\tlet truncateTo = '';\n\t\tlet collapseWhitespace = false;\n\t\tlet padDirection: 'left' | 'right' = 'right';\n\t\tlet suffix = '';\n\n\t\tif (template[tokenPos] === \"'\") {\n\t\t\tconst start = ++tokenPos;\n\t\t\ttokenPos = template.indexOf(\"'\", tokenPos);\n\t\t\tif (tokenPos === -1) break;\n\n\t\t\tif (start !== tokenPos) {\n\t\t\t\tprefix = template.slice(start, tokenPos);\n\t\t\t}\n\t\t\ttokenPos++;\n\t\t} else if (!isWordChar(template.charCodeAt(tokenPos))) {\n\t\t\tconst start = tokenPos++;\n\t\t\twhile (tokenPos < tokenEnd && !isWordChar(template.charCodeAt(tokenPos))) {\n\t\t\t\ttokenPos++;\n\t\t\t}\n\n\t\t\tif (start !== tokenPos) {\n\t\t\t\tprefix = template.slice(start, tokenPos);\n\t\t\t}\n\t\t}\n\n\t\twhile (tokenPos < tokenEnd) {\n\t\t\tlet code = template.charCodeAt(tokenPos);\n\t\t\tif (isWordChar(code)) {\n\t\t\t\tkey += template[tokenPos++];\n\t\t\t} else {\n\t\t\t\tif (code !== 0x7c /* | */) break;\n\n\t\t\t\twhile (tokenPos < tokenEnd) {\n\t\t\t\t\tcode = template.charCodeAt(++tokenPos);\n\t\t\t\t\tif (code >= 0x30 && code <= 0x39 /* digits */) {\n\t\t\t\t\t\ttruncateTo += template[tokenPos];\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (code === 0x3f /* ? */) {\n\t\t\t\t\t\tcollapseWhitespace = true;\n\t\t\t\t\t\ttokenPos++;\n\t\t\t\t\t} else if (code === 0x2d /* - */) {\n\t\t\t\t\t\tpadDirection = 'left';\n\t\t\t\t\t\ttokenPos++;\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (tokenPos < tokenEnd) {\n\t\t\tif (template[tokenPos] === \"'\") {\n\t\t\t\tconst start = ++tokenPos;\n\t\t\t\ttokenPos = template.indexOf(\"'\", tokenPos);\n\t\t\t\tif (tokenPos === -1) break;\n\n\t\t\t\tif (start !== tokenPos) {\n\t\t\t\t\tsuffix = template.slice(start, tokenPos);\n\t\t\t\t}\n\t\t\t} else if (!isWordChar(template.charCodeAt(tokenPos))) {\n\t\t\t\tconst start = tokenPos++;\n\t\t\t\twhile (tokenPos < tokenEnd && !isWordChar(template.charCodeAt(tokenPos))) {\n\t\t\t\t\ttokenPos++;\n\t\t\t\t}\n\n\t\t\t\tif (start !== tokenPos) {\n\t\t\t\t\tsuffix = template.slice(start, tokenPos);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tposition = tokenEnd + 1;\n\t\ttokens.push({\n\t\t\tkey: key,\n\t\t\tstart: tokenStart,\n\t\t\tend: position,\n\t\t\toptions: {\n\t\t\t\tprefix: prefix || undefined,\n\t\t\t\tsuffix: suffix || undefined,\n\t\t\t\ttruncateTo: truncateTo ? parseInt(truncateTo, 10) : undefined,\n\t\t\t\tcollapseWhitespace: collapseWhitespace,\n\t\t\t\tpadDirection: padDirection,\n\t\t\t},\n\t\t});\n\t}\n\n\ttemplateTokenMap.set(template, tokens);\n\treturn tokens;\n}\n\n// FYI, this is about twice as slow as getTokensFromTemplate\nexport function getTokensFromTemplateRegex(template: string): TokenMatch[] {\n\tlet tokens = templateTokenMap.get(template);\n\tif (tokens != null) return tokens;\n\n\ttokens = [];\n\n\tlet match;\n\twhile ((match = tokenRegex.exec(template))) {\n\t\tconst [, prefixGroup, prefixNonGroup, key, truncateTo, option, suffixGroup, suffixNonGroup] = match;\n\t\tconst start = match.index;\n\t\tconst end = start + match[0].length;\n\n\t\tlet prefix = prefixGroup || prefixNonGroup || undefined;\n\t\tif (prefix) {\n\t\t\tprefix = prefix.replace(tokenGroupCharacterEscapedRegex, tokenGroupCharacter);\n\t\t}\n\n\t\tlet suffix = suffixGroup || suffixNonGroup || undefined;\n\t\tif (suffix) {\n\t\t\tsuffix = suffix.replace(tokenGroupCharacterEscapedRegex, tokenGroupCharacter);\n\t\t}\n\n\t\ttokens.push({\n\t\t\tkey: key,\n\t\t\tstart: start,\n\t\t\tend: end,\n\t\t\toptions: {\n\t\t\t\tcollapseWhitespace: option === '?',\n\t\t\t\tpadDirection: option === '-' ? 'left' : 'right',\n\t\t\t\tprefix: prefix,\n\t\t\t\tsuffix: suffix,\n\t\t\t\ttruncateTo: truncateTo == null ? undefined : parseInt(truncateTo, 10),\n\t\t\t},\n\t\t});\n\t}\n\n\ttemplateTokenMap.set(template, tokens);\n\treturn tokens;\n}\n\n/**\n * Above this size, a source string split via {@link iterateByDelimiter} has its yielded records\n * flattened (see {@link flattenString}) — below it, the parent-pinning cost of sliced strings is\n * bounded and not worth the copy.\n */\nconst maxDelimiterSourceLength = 128 * 1024;\n\n/**\n * Forces V8 to create a flat copy of `s`, breaking any sliced-string reference to a parent string.\n *\n * V8 represents `substring()` results of 13+ characters as SlicedString views that retain their\n * entire parent string. A single retained field parsed out of a large buffer (e.g. a git walk's\n * full stdout) can therefore keep megabytes alive for as long as that field survives. Flattening\n * copies only the view's own characters, releasing the parent.\n *\n * No-op for strings shorter than `minLength`, where pinning is bounded anyway and the copy isn't\n * worth the allocation.\n */\nexport function flattenString(s: string, minLength = 1024): string {\n\tif (s.length < minLength) return s;\n\n\t// Concatenating a prefix then slicing it off forces V8 to materialize a flat copy of `s` —\n\t// deliberately not a template literal, which V8 can represent as another cons/sliced view.\n\t// oxlint-disable-next-line prefer-template\n\treturn (' ' + s).slice(1);\n}\n\n/**\n * Fast string delimiter iterator\n * Optimized for simple string splitting without generator overhead\n */\nclass StringDelimiterIterator implements IterableIterator<string> {\n\tprivate readonly delimiterLen: number;\n\tprivate readonly flatten: boolean;\n\tprivate index = 0;\n\tprivate done = false;\n\n\tconstructor(\n\t\tprivate readonly data: string,\n\t\tprivate readonly delimiter: string,\n\t) {\n\t\tthis.delimiterLen = delimiter.length;\n\t\t// Yielded substrings are V8 SlicedStrings that retain their parent; when splitting a large\n\t\t// buffer (e.g. a git walk's full stdout) that parent pinning keeps megabytes alive for as\n\t\t// long as any single parsed field survives. Above this threshold, flatten each yielded\n\t\t// record so it only holds its own characters.\n\t\tthis.flatten = data.length > maxDelimiterSourceLength;\n\t}\n\n\tnext(): IteratorResult<string> {\n\t\tif (this.done || this.index >= this.data.length) {\n\t\t\tthis.done = true;\n\t\t\treturn { done: true, value: undefined };\n\t\t}\n\n\t\tconst j = this.data.indexOf(this.delimiter, this.index);\n\t\tconst endIndex = j === -1 ? this.data.length : j;\n\n\t\t// Always flatten here: even a small record pins the entire (potentially huge) parent buffer\n\t\t// through its sliced string, so the minLength guard in flattenString must not apply.\n\t\tconst value = this.flatten\n\t\t\t? flattenString(this.data.substring(this.index, endIndex), 1)\n\t\t\t: this.data.substring(this.index, endIndex);\n\t\tthis.index = endIndex + this.delimiterLen;\n\n\t\treturn { done: false, value: value };\n\t}\n\n\t[Symbol.iterator](): IterableIterator<string> {\n\t\treturn this;\n\t}\n}\n\n/**\n * Iterable delimiter iterator with buffering\n * Handles streaming data by buffering incomplete segments\n */\nclass IterableDelimiterIterator implements IterableIterator<string> {\n\tprivate readonly delimiterLen: number;\n\tprivate readonly iterator: Iterator<string>;\n\tprivate readonly isArray: boolean;\n\tprivate readonly arrayLength: number;\n\n\tprivate arrayCount = 0;\n\tprivate buffer = '';\n\tprivate bufferIndex = 0;\n\tprivate needsMoreData = true;\n\tprivate done = false;\n\n\tconstructor(\n\t\tdata: Iterable<string>,\n\t\tprivate readonly delimiter: string,\n\t) {\n\t\tthis.delimiterLen = delimiter.length;\n\t\tthis.isArray = Array.isArray(data);\n\t\tthis.arrayLength = this.isArray ? (data as string[]).length : 0;\n\t\tthis.iterator = data[Symbol.iterator]();\n\t}\n\n\tnext(): IteratorResult<string> {\n\t\tif (this.done) {\n\t\t\treturn { done: true, value: undefined };\n\t\t}\n\n\t\twhile (true) {\n\t\t\t// Try to find delimiter in current buffer\n\t\t\tif (this.bufferIndex < this.buffer.length) {\n\t\t\t\tconst j = this.buffer.indexOf(this.delimiter, this.bufferIndex);\n\n\t\t\t\tif (j !== -1) {\n\t\t\t\t\t// Found delimiter - return the segment\n\t\t\t\t\tconst value = this.buffer.substring(this.bufferIndex, j);\n\t\t\t\t\tthis.bufferIndex = j + this.delimiterLen;\n\t\t\t\t\treturn { done: false, value: value };\n\t\t\t\t}\n\n\t\t\t\t// No delimiter found in buffer\n\t\t\t\tif (!this.needsMoreData) {\n\t\t\t\t\t// No more data coming - yield rest of buffer\n\t\t\t\t\tif (this.bufferIndex < this.buffer.length) {\n\t\t\t\t\t\tconst value = this.buffer.substring(this.bufferIndex);\n\t\t\t\t\t\tthis.bufferIndex = this.buffer.length;\n\t\t\t\t\t\tthis.done = true;\n\t\t\t\t\t\treturn { done: false, value: value };\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.done = true;\n\t\t\t\t\treturn { done: true, value: undefined };\n\t\t\t\t}\n\n\t\t\t\t// Need more data - keep unprocessed part as leftover\n\t\t\t\tif (this.bufferIndex > 0) {\n\t\t\t\t\tthis.buffer = this.buffer.substring(this.bufferIndex);\n\t\t\t\t\tthis.bufferIndex = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Fetch next chunk if needed\n\t\t\tif (this.needsMoreData) {\n\t\t\t\tconst result = this.iterator.next();\n\n\t\t\t\tif (result.done) {\n\t\t\t\t\tthis.needsMoreData = false;\n\n\t\t\t\t\t// Yield any remaining buffer content\n\t\t\t\t\tif (this.buffer.length > 0) {\n\t\t\t\t\t\tconst value = this.buffer;\n\t\t\t\t\t\tthis.buffer = '';\n\t\t\t\t\t\tthis.done = true;\n\t\t\t\t\t\treturn { done: false, value: value };\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.done = true;\n\t\t\t\t\treturn { done: true, value: undefined };\n\t\t\t\t}\n\n\t\t\t\t// Track array iteration\n\t\t\t\tif (this.isArray) {\n\t\t\t\t\tthis.arrayCount++;\n\t\t\t\t\tif (this.arrayCount === this.arrayLength) {\n\t\t\t\t\t\tthis.needsMoreData = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Append chunk to buffer\n\t\t\t\tthis.buffer += result.value;\n\t\t\t} else {\n\t\t\t\t// No more data and buffer is empty\n\t\t\t\tthis.done = true;\n\t\t\t\treturn { done: true, value: undefined };\n\t\t\t}\n\t\t}\n\t}\n\n\t[Symbol.iterator](): IterableIterator<string> {\n\t\treturn this;\n\t}\n}\n\n/**\n * Iterate over a string or iterable by delimiter without using generators\n * More performant than generator version while maintaining lazy evaluation\n */\nexport function iterateByDelimiter(data: string | Iterable<string>, delimiter: string): IterableIterator<string> {\n\tif (typeof data === 'string') {\n\t\treturn new StringDelimiterIterator(data, delimiter);\n\t}\n\treturn new IterableDelimiterIterator(data, delimiter);\n}\n\n/**\n * Async iterable delimiter iterator with buffering.\n *\n * Buffer strategy: instead of growing a single buffer via concatenation\n * (which causes V8 SlicedString retention — yielded substrings hold\n * references to the entire accumulated buffer, preventing GC), each chunk\n * builds a fresh `remainder + chunk` string. Substrings of this bounded\n * string only retain the current chunk, not the full stream history.\n */\nclass AsyncIterableDelimiterIterator implements AsyncIterableIterator<string> {\n\tprivate readonly delimiterLen: number;\n\tprivate readonly iterator: AsyncIterator<string>;\n\n\tprivate remainder = '';\n\tprivate buffer = '';\n\tprivate searchIndex = 0;\n\tprivate done = false;\n\n\tconstructor(\n\t\tdata: AsyncIterable<string>,\n\t\tprivate readonly delimiter: string,\n\t) {\n\t\tthis.delimiterLen = delimiter.length;\n\t\tthis.iterator = data[Symbol.asyncIterator]();\n\t}\n\n\tasync next(): Promise<IteratorResult<string>> {\n\t\tif (this.done) {\n\t\t\treturn { done: true, value: undefined };\n\t\t}\n\n\t\twhile (true) {\n\t\t\t// Try to find delimiter in current buffer\n\t\t\tconst j = this.buffer.indexOf(this.delimiter, this.searchIndex);\n\t\t\tif (j !== -1) {\n\t\t\t\tconst value = this.buffer.substring(this.searchIndex, j);\n\t\t\t\tthis.searchIndex = j + this.delimiterLen;\n\t\t\t\treturn { done: false, value: value };\n\t\t\t}\n\n\t\t\t// No delimiter — fetch next chunk\n\t\t\tconst result = await this.iterator.next();\n\t\t\tif (result.done) {\n\t\t\t\t// No more data — yield any remaining content\n\t\t\t\tif (this.searchIndex < this.buffer.length) {\n\t\t\t\t\tconst value = this.buffer.substring(this.searchIndex);\n\t\t\t\t\tthis.done = true;\n\t\t\t\t\treturn { done: false, value: value };\n\t\t\t\t}\n\n\t\t\t\tthis.done = true;\n\t\t\t\treturn { done: true, value: undefined };\n\t\t\t}\n\n\t\t\t// Build a fresh buffer from leftover + new chunk so that\n\t\t\t// substrings only retain this bounded string, not a growing chain\n\t\t\tthis.remainder = this.searchIndex < this.buffer.length ? this.buffer.substring(this.searchIndex) : '';\n\t\t\tthis.buffer = this.remainder + result.value;\n\t\t\tthis.searchIndex = 0;\n\t\t}\n\t}\n\n\t[Symbol.asyncIterator](): AsyncIterableIterator<string> {\n\t\treturn this;\n\t}\n}\n\n/**\n * Iterate over an async iterable by delimiter without using generators\n * More performant than generator version while maintaining lazy evaluation\n */\nexport function iterateAsyncByDelimiter(data: AsyncIterable<string>, delimiter: string): AsyncIterableIterator<string> {\n\treturn new AsyncIterableDelimiterIterator(data, delimiter);\n}\n\nexport function interpolate(template: string, context: object | undefined): string {\n\tif (template == null || template.length === 0) return template;\n\tif (context == null) return template.replace(tokenSanitizeRegex, '');\n\n\tconst tokens = getTokensFromTemplate(template);\n\tif (tokens.length === 0) return template;\n\n\tlet position = 0;\n\tlet result = '';\n\tfor (const token of tokens) {\n\t\tresult += template.slice(position, token.start) + ((context as Record<string, string>)[token.key] ?? '');\n\t\tposition = token.end;\n\t}\n\n\tif (position < template.length) {\n\t\tresult += template.slice(position);\n\t}\n\n\treturn result;\n}\n\nexport async function interpolateAsync(template: string, context: object | undefined): Promise<string> {\n\tif (template == null || template.length === 0) return template;\n\tif (context == null) return template.replace(tokenSanitizeRegex, '');\n\n\tconst tokens = getTokensFromTemplate(template);\n\tif (tokens.length === 0) return template;\n\n\tlet position = 0;\n\tlet result = '';\n\tlet value;\n\tfor (const token of tokens) {\n\t\tvalue = (context as Record<string, any>)[token.key];\n\t\tif (value != null && typeof value === 'object' && typeof value.then === 'function') {\n\t\t\tvalue = await value;\n\t\t}\n\n\t\t// oxlint-disable-next-line typescript/restrict-plus-operands\n\t\tresult += template.slice(position, token.start) + (value ?? '');\n\t\tposition = token.end;\n\t}\n\n\tif (position < template.length) {\n\t\tresult += template.slice(position);\n\t}\n\n\treturn result;\n}\n\nexport function isLowerAsciiLetter(code: number): boolean {\n\treturn code >= CharCode.a && code <= CharCode.z;\n}\n\nexport function isUpperAsciiLetter(code: number): boolean {\n\treturn code >= CharCode.A && code <= CharCode.Z;\n}\n\nexport function pad(s: string, before: number = 0, after: number = 0, padding: string = '\\u00a0'): string {\n\tif (before === 0 && after === 0) return s;\n\n\treturn `${before === 0 ? '' : padding.repeat(before)}${s}${after === 0 ? '' : padding.repeat(after)}`;\n}\n\nexport function padOrTruncateEnd(s: string, maxLength: number, fillString?: string): string {\n\tif (s.length === maxLength) return s;\n\tif (s.length > maxLength) return s.substring(0, maxLength);\n\treturn s.padEnd(maxLength, fillString);\n}\n\n// Removes \\ / : * ? \" < > | and C0 and C1 control codes\n// oxlint-disable-next-line no-control-regex\nconst illegalCharsForFSRegex = /[\\\\/:*?\"<>|\\x00-\\x1f\\x80-\\x9f]/g;\n\nexport function sanitizeForFileSystem(s: string, replacement: string = '_'): string {\n\tif (!s) return s;\n\treturn s.replace(illegalCharsForFSRegex, replacement);\n}\n\nexport function splitLast(s: string, splitter: string): string[] {\n\tconst index = s.lastIndexOf(splitter);\n\tif (index === -1) return [s];\n\n\treturn [s.substring(0, index), s.substring(index + splitter.length)];\n}\n\nexport function splitSingle(s: string, splitter: string): string[] {\n\tconst index = s.indexOf(splitter);\n\tif (index === -1) return [s];\n\n\tconst start = s.substring(0, index);\n\tconst rest = s.substring(index + splitter.length);\n\treturn rest != null ? [start, rest] : [start];\n}\n\nexport function truncate(s: string, truncateTo: number, ellipsis: string = '\\u2026', width?: number): string {\n\tif (!s) return s;\n\tif (truncateTo <= 1) return ellipsis;\n\n\twidth = width ?? getWidth(s);\n\tif (width <= truncateTo) return s;\n\tif (width === s.length) return `${s.substring(0, truncateTo - 1)}${ellipsis}`;\n\n\t// Skip ahead to start as far as we can by assuming all the double-width characters won't be truncated\n\tlet chars = Math.floor(truncateTo / (width / s.length));\n\tlet count = getWidth(s.substring(0, chars));\n\twhile (count < truncateTo) {\n\t\tcount += getWidth(s[chars++]);\n\t}\n\n\tif (count >= truncateTo) {\n\t\tchars--;\n\t}\n\n\treturn `${s.substring(0, chars)}${ellipsis}`;\n}\n\nexport function truncateLeft(s: string, truncateTo: number, ellipsis: string = '\\u2026', width?: number): string {\n\tif (!s) return s;\n\tif (truncateTo <= 1) return ellipsis;\n\n\twidth = width ?? getWidth(s);\n\tif (width <= truncateTo) return s;\n\tif (width === s.length) return `${ellipsis}${s.substring(width - truncateTo)}`;\n\n\t// Skip ahead to start as far as we can by assuming all the double-width characters won't be truncated\n\tlet chars = Math.floor(truncateTo / (width / s.length));\n\tlet count = getWidth(s.substring(0, chars));\n\twhile (count < truncateTo) {\n\t\tcount += getWidth(s[chars++]);\n\t}\n\n\tif (count >= truncateTo) {\n\t\tchars--;\n\t}\n\n\treturn `${ellipsis}${s.substring(s.length - chars)}`;\n}\n\nexport function truncateMiddle(s: string, truncateTo: number, ellipsis: string = '\\u2026'): string {\n\tif (!s) return s;\n\tif (truncateTo <= 1) return ellipsis;\n\n\tconst width = getWidth(s);\n\tif (width <= truncateTo) return s;\n\n\treturn `${s.slice(0, Math.floor(truncateTo / 2) - 1)}${ellipsis}${s.slice(width - Math.ceil(truncateTo / 2))}`;\n}\n\n// Below adapted from https://github.com/pieroxy/lz-string\n\n// Pre-computed from:\n// const base64ReverseMap = new Uint8Array(123);\n// const base64Chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n// for (let i = 0; i < base64Chars.length; i++) {\n// \tbase64ReverseMap[base64Chars.charCodeAt(i)] = i;\n// }\n\nconst base64ReverseMap = new Uint8Array([\n\t0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n\t0, 0, 0, 0, 62, 0, 0, 0, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 0, 0, 0, 64, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7,\n\t8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 26, 27, 28, 29, 30, 31, 32,\n\t33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,\n]);\n\nexport function decompressFromBase64LZString(input: string | undefined): string {\n\tif (input == null || input === '') return '';\n\n\tconst result = _decompressLZString(input, 32) ?? '';\n\treturn result;\n}\n\nfunction _decompressLZString(input: string, resetValue: number) {\n\tconst dictionary = new Array<string>(4096);\n\tdictionary[0] = '0';\n\tdictionary[1] = '1';\n\tdictionary[2] = '2';\n\n\tconst result: string[] = [];\n\tconst length = input.length;\n\n\tlet val = base64ReverseMap[input.charCodeAt(0)];\n\tlet position = resetValue;\n\tlet index = 1;\n\n\tfunction readBits(maxpower: number): number {\n\t\tlet bits = 0;\n\t\tlet power = 1;\n\t\tdo {\n\t\t\tbits |= Number((val & position) > 0) * power;\n\t\t\tpower <<= 1;\n\n\t\t\tposition >>= 1;\n\t\t\tif (position === 0) {\n\t\t\t\tposition = resetValue;\n\t\t\t\tval = base64ReverseMap[input.charCodeAt(index++)];\n\t\t\t}\n\t\t} while (power !== maxpower);\n\n\t\treturn bits;\n\t}\n\n\tlet c = readBits(4);\n\n\tswitch (c) {\n\t\tcase 0:\n\t\t\tc = readBits(256);\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tc = readBits(65536);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\treturn '';\n\t}\n\n\tlet w = String.fromCharCode(c);\n\tdictionary[3] = w;\n\tresult.push(w);\n\n\tlet dictSize = 4;\n\tlet enlargeIn = 4;\n\tlet numBits = 3;\n\n\twhile (index <= length) {\n\t\tc = readBits(1 << numBits);\n\n\t\tswitch (c) {\n\t\t\tcase 0:\n\t\t\t\tc = readBits(256);\n\t\t\t\tdictionary[dictSize] = String.fromCharCode(c);\n\t\t\t\tc = dictSize++;\n\t\t\t\tenlargeIn--;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tc = readBits(65536);\n\t\t\t\tdictionary[dictSize] = String.fromCharCode(c);\n\t\t\t\tc = dictSize++;\n\t\t\t\tenlargeIn--;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn result.join('');\n\t\t}\n\n\t\tif (enlargeIn === 0) {\n\t\t\tenlargeIn = 1 << numBits++;\n\t\t}\n\n\t\tlet entry = dictionary[c];\n\t\tif (entry === undefined) {\n\t\t\tif (c !== dictSize) return undefined;\n\n\t\t\tentry = w + w[0];\n\t\t}\n\n\t\tresult.push(entry);\n\t\tdictionary[dictSize++] = w + entry[0];\n\t\tenlargeIn--;\n\t\tw = entry;\n\n\t\tif (enlargeIn === 0) {\n\t\t\tenlargeIn = 1 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QAAQ;EACvB,IAAI,SAAS,KAAK,OAAO;EAEzB,QAAQ,GAAR;GACC,KAAK;IACJ,IAAI,SAAS,GAAG;IAChB,WAAW,YAAY,OAAO,aAAa,CAAC;IAC5C,IAAI;IACJ;IACA;GACD,KAAK;IACJ,IAAI,SAAS,KAAK;IAClB,WAAW,YAAY,OAAO,aAAa,CAAC;IAC5C,IAAI;IACJ;IACA;GACD,KAAK,GACJ,OAAO,OAAO,KAAK,EAAE;EACvB;EAEA,IAAI,cAAc,GACjB,YAAY,KAAK;EAGlB,IAAI,QAAQ,WAAW;EACvB,IAAI,UAAU,KAAA,GAAW;GACxB,IAAI,MAAM,UAAU,OAAO,KAAA;GAE3B,QAAQ,IAAI,EAAE;EACf;EAEA,OAAO,KAAK,KAAK;EACjB,WAAW,cAAc,IAAI,MAAM;EACnC;EACA,IAAI;EAEJ,IAAI,cAAc,GACjB,YAAY,KAAK;CAEnB;AAGD"}
1
+ {"version":3,"file":"string.js","names":[],"sources":["../../../utils/src/string.ts"],"sourcesContent":["import type {\n\tWidthOptions as StringWidthOptions,\n\tTruncationOptions as StringWidthTruncationOptions,\n\tResult as TruncatedStringWidthResult,\n} from 'fast-string-truncated-width';\nimport getTruncatedStringWidth from 'fast-string-truncated-width';\nimport { CharCode } from './charCode.js';\n\nexport function capitalize(s: string): string {\n\treturn `${s[0].toLocaleUpperCase()}${s.slice(1)}`;\n}\n\nlet compareCollator: Intl.Collator | undefined;\nexport function compareIgnoreCase(a: string, b: string): 0 | -1 | 1 {\n\tcompareCollator ??= new Intl.Collator(undefined, { sensitivity: 'accent' });\n\n\tconst result = compareCollator.compare(a, b);\n\t// Intl.Collator.compare isn't guaranteed to always return 1 or -1 on all platforms so normalize it\n\treturn result === 0 ? 0 : result > 0 ? 1 : -1;\n}\n\n/**\n * Removes common leading whitespace from each line in a template string.\n * This allows you to write indented template strings but have them trimmed in the result.\n *\n * @param template The template string to dedent\n * @returns The dedented string\n *\n * @example\n * ```typescript\n * const str = dedent(`\n * Hello\n * World\n * Test\n * `);\n * // Result: \"Hello\\nWorld\\nTest\"\n * ```\n */\nexport function dedent(template: string): string {\n\tconst lines = template.split('\\n');\n\n\t// Remove leading and trailing empty lines\n\twhile (lines.length > 0 && lines[0].trim() === '') {\n\t\tlines.shift();\n\t}\n\twhile (lines.length > 0 && lines.at(-1)?.trim() === '') {\n\t\tlines.pop();\n\t}\n\n\tif (lines.length === 0) return '';\n\n\t// Find the minimum indentation (excluding empty lines)\n\tconst nonEmptyLines = lines.filter(line => line.trim() !== '');\n\tif (nonEmptyLines.length === 0) return '';\n\n\tconst minIndent = Math.min(\n\t\t...nonEmptyLines.map(line => {\n\t\t\tconst match = line.match(/^(\\s*)/);\n\t\t\treturn match ? match[1].length : 0;\n\t\t}),\n\t);\n\n\t// Remove the common indentation from all lines\n\treturn lines.map(line => line.slice(minIndent)).join('\\n');\n}\n\nexport function equalsIgnoreCase(a: string | null | undefined, b: string | null | undefined): boolean {\n\t// Treat `null` & `undefined` as equivalent\n\tif (a == null && b == null) return true;\n\tif (a == null || b == null) return false;\n\treturn compareIgnoreCase(a, b) === 0;\n}\n\nlet sortCollator: Intl.Collator | undefined;\nexport function sortCompare(x: string, y: string): number {\n\tsortCollator ??= new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });\n\treturn sortCollator.compare(x, y);\n}\n\nexport function compareSubstring(\n\ta: string,\n\tb: string,\n\taStart: number = 0,\n\taEnd: number = a.length,\n\tbStart: number = 0,\n\tbEnd: number = b.length,\n): number {\n\tfor (; aStart < aEnd && bStart < bEnd; aStart++, bStart++) {\n\t\tconst codeA = a.charCodeAt(aStart);\n\t\tconst codeB = b.charCodeAt(bStart);\n\t\tif (codeA < codeB) {\n\t\t\treturn -1;\n\t\t} else if (codeA > codeB) {\n\t\t\treturn 1;\n\t\t}\n\t}\n\tconst aLen = aEnd - aStart;\n\tconst bLen = bEnd - bStart;\n\tif (aLen < bLen) {\n\t\treturn -1;\n\t} else if (aLen > bLen) {\n\t\treturn 1;\n\t}\n\treturn 0;\n}\n\nexport function compareSubstringIgnoreCase(\n\ta: string,\n\tb: string,\n\taStart: number = 0,\n\taEnd: number = a.length,\n\tbStart: number = 0,\n\tbEnd: number = b.length,\n): number {\n\tfor (; aStart < aEnd && bStart < bEnd; aStart++, bStart++) {\n\t\tconst codeA = a.charCodeAt(aStart);\n\t\tconst codeB = b.charCodeAt(bStart);\n\n\t\tif (codeA === codeB) {\n\t\t\t// equal\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst diff = codeA - codeB;\n\t\tif (diff === 32 && isUpperAsciiLetter(codeB)) {\n\t\t\t//codeB =[65-90] && codeA =[97-122]\n\t\t\tcontinue;\n\t\t} else if (diff === -32 && isUpperAsciiLetter(codeA)) {\n\t\t\t//codeB =[97-122] && codeA =[65-90]\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (isLowerAsciiLetter(codeA) && isLowerAsciiLetter(codeB)) {\n\t\t\t//\n\t\t\treturn diff;\n\t\t}\n\t\treturn compareSubstring(a.toLowerCase(), b.toLowerCase(), aStart, aEnd, bStart, bEnd);\n\t}\n\n\tconst aLen = aEnd - aStart;\n\tconst bLen = bEnd - bStart;\n\n\tif (aLen < bLen) {\n\t\treturn -1;\n\t} else if (aLen > bLen) {\n\t\treturn 1;\n\t}\n\n\treturn 0;\n}\n\nexport function countOccurrences(s: string, search: string): number {\n\tlet count = 0;\n\tlet position = 0;\n\n\twhile (true) {\n\t\tposition = s.indexOf(search, position);\n\t\tif (position === -1) break;\n\n\t\tcount++;\n\t\tposition += search.length;\n\t}\n\n\treturn count;\n}\n\nexport function encodeHtmlWeak(s: string): string;\nexport function encodeHtmlWeak(s: string | undefined): string | undefined;\nexport function encodeHtmlWeak(s: string | undefined): string | undefined {\n\treturn s?.replace(/[<>&\"]/g, c => {\n\t\tswitch (c) {\n\t\t\tcase '<':\n\t\t\t\treturn '&lt;';\n\t\t\tcase '>':\n\t\t\t\treturn '&gt;';\n\t\t\tcase '&':\n\t\t\t\treturn '&amp;';\n\t\t\tcase '\"':\n\t\t\t\treturn '&quot;';\n\t\t\tdefault:\n\t\t\t\treturn c;\n\t\t}\n\t});\n}\n\nexport function splitMessage(message?: string): { summary: string; body?: string } {\n\tif (!message) return { summary: '' };\n\n\tmessage = message.trim();\n\tconst index = message.indexOf('\\n');\n\tif (index < 0) return { summary: message };\n\n\treturn {\n\t\tsummary: message.substring(0, index),\n\t\tbody: message.substring(index + 1).trim(),\n\t};\n}\n\nexport function escapeRegex(s: string): string {\n\treturn s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&');\n}\n\n/**\n * Distributes a value into one of 100 groups based on a hash of the value\n * @param value The value to distribute (e.g., machine ID)\n * @returns A number between 1-100 representing the distribution group\n */\nexport function getDistributionGroup(value: string): number {\n\t// Simple hash function\n\tlet hash = 0;\n\tfor (let i = 0; i < value.length; i++) {\n\t\thash = (hash << 5) - hash + value.charCodeAt(i);\n\t\thash = hash & hash; // Convert to 32-bit integer\n\t}\n\n\t// Convert hash to a number between 1-100\n\tconst group = Math.abs(hash % 100) + 1;\n\treturn group;\n}\n\nexport function getPossessiveForm(name: string): string {\n\treturn name.endsWith('s') ? `${name}'` : `${name}'s`;\n}\n\nconst defaultTruncationOptions: StringWidthTruncationOptions = {\n\tellipsisWidth: 0,\n\tlimit: 2 ** 30 - 1, // Max number that can be stored in V8's smis (small integers)\n};\n\nconst defaultWidthOptions: StringWidthOptions = {\n\tcontrolWidth: 0,\n\temojiWidth: 2,\n\tregularWidth: 1,\n\twideWidth: 2,\n};\n\nexport function getTruncatedWidth(s: string, limit: number, ellipsisWidth: number): TruncatedStringWidthResult {\n\tif (s == null || s.length === 0) {\n\t\treturn {\n\t\t\ttruncated: false,\n\t\t\tellipsed: false,\n\t\t\twidth: 0,\n\t\t\tindex: 0,\n\t\t};\n\t}\n\n\treturn getTruncatedStringWidth(s, { limit: limit, ellipsisWidth: ellipsisWidth ?? 0 }, defaultWidthOptions);\n}\n\nexport function getWidth(s: string): number {\n\tif (s == null || s.length === 0) return 0;\n\n\tconst result = getTruncatedStringWidth(s, defaultTruncationOptions, defaultWidthOptions);\n\treturn result.width;\n}\n\nconst superscripts = ['\\u00B9', '\\u00B2', '\\u00B3', '\\u2074', '\\u2075', '\\u2076', '\\u2077', '\\u2078', '\\u2079'];\n\nexport function getSuperscript(num: number): string {\n\treturn superscripts[num - 1] ?? '';\n}\n\nconst tokenRegex = /\\$\\{(?:'(.*?[^\\\\])'|(\\W*))?([^|]*?)(?:\\|(\\d+)(-|\\?)?)?(?:'(.*?[^\\\\])'|(\\W*))?\\}/g;\nconst tokenSanitizeRegex = /\\$\\{(?:'.*?[^\\\\]'|\\W*)?(\\w*?)(?:'.*?[^\\\\]'|[\\W\\d]*)\\}/g;\nconst tokenGroupCharacter = \"'\";\nconst tokenGroupCharacterEscapedRegex = /(\\\\')/g;\n\ninterface TokenMatch {\n\tkey: string;\n\tstart: number;\n\tend: number;\n\toptions: TokenOptions;\n}\nconst templateTokenMap = new Map<string, TokenMatch[]>();\n\nexport interface TokenOptions {\n\tcollapseWhitespace: boolean;\n\tpadDirection: 'left' | 'right';\n\tprefix: string | undefined;\n\tsuffix: string | undefined;\n\ttruncateTo: number | undefined;\n}\n\nfunction isWordChar(code: number): boolean {\n\treturn (\n\t\tcode === 95 /* _ */ ||\n\t\t(code >= 0x61 && code <= 0x7a) || // lowercase letters\n\t\t(code >= 0x41 && code <= 0x5a) || // uppercase letters\n\t\t(code >= 0x30 && code <= 0x39) // digits\n\t);\n}\n\nexport function getTokensFromTemplate(template: string): TokenMatch[] {\n\tlet tokens = templateTokenMap.get(template);\n\tif (tokens != null) return tokens;\n\n\ttokens = [];\n\tconst length = template.length;\n\n\tlet position = 0;\n\twhile (position < length) {\n\t\tconst tokenStart = template.indexOf('${', position);\n\t\tif (tokenStart === -1) break;\n\n\t\tconst tokenEnd = template.indexOf('}', tokenStart);\n\t\tif (tokenEnd === -1) break;\n\n\t\tlet tokenPos = tokenStart + 2;\n\n\t\tlet key = '';\n\t\tlet prefix = '';\n\t\tlet truncateTo = '';\n\t\tlet collapseWhitespace = false;\n\t\tlet padDirection: 'left' | 'right' = 'right';\n\t\tlet suffix = '';\n\n\t\tif (template[tokenPos] === \"'\") {\n\t\t\tconst start = ++tokenPos;\n\t\t\ttokenPos = template.indexOf(\"'\", tokenPos);\n\t\t\tif (tokenPos === -1) break;\n\n\t\t\tif (start !== tokenPos) {\n\t\t\t\tprefix = template.slice(start, tokenPos);\n\t\t\t}\n\t\t\ttokenPos++;\n\t\t} else if (!isWordChar(template.charCodeAt(tokenPos))) {\n\t\t\tconst start = tokenPos++;\n\t\t\twhile (tokenPos < tokenEnd && !isWordChar(template.charCodeAt(tokenPos))) {\n\t\t\t\ttokenPos++;\n\t\t\t}\n\n\t\t\tif (start !== tokenPos) {\n\t\t\t\tprefix = template.slice(start, tokenPos);\n\t\t\t}\n\t\t}\n\n\t\twhile (tokenPos < tokenEnd) {\n\t\t\tlet code = template.charCodeAt(tokenPos);\n\t\t\tif (isWordChar(code)) {\n\t\t\t\tkey += template[tokenPos++];\n\t\t\t} else {\n\t\t\t\tif (code !== 0x7c /* | */) break;\n\n\t\t\t\twhile (tokenPos < tokenEnd) {\n\t\t\t\t\tcode = template.charCodeAt(++tokenPos);\n\t\t\t\t\tif (code >= 0x30 && code <= 0x39 /* digits */) {\n\t\t\t\t\t\ttruncateTo += template[tokenPos];\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (code === 0x3f /* ? */) {\n\t\t\t\t\t\tcollapseWhitespace = true;\n\t\t\t\t\t\ttokenPos++;\n\t\t\t\t\t} else if (code === 0x2d /* - */) {\n\t\t\t\t\t\tpadDirection = 'left';\n\t\t\t\t\t\ttokenPos++;\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (tokenPos < tokenEnd) {\n\t\t\tif (template[tokenPos] === \"'\") {\n\t\t\t\tconst start = ++tokenPos;\n\t\t\t\ttokenPos = template.indexOf(\"'\", tokenPos);\n\t\t\t\tif (tokenPos === -1) break;\n\n\t\t\t\tif (start !== tokenPos) {\n\t\t\t\t\tsuffix = template.slice(start, tokenPos);\n\t\t\t\t}\n\t\t\t} else if (!isWordChar(template.charCodeAt(tokenPos))) {\n\t\t\t\tconst start = tokenPos++;\n\t\t\t\twhile (tokenPos < tokenEnd && !isWordChar(template.charCodeAt(tokenPos))) {\n\t\t\t\t\ttokenPos++;\n\t\t\t\t}\n\n\t\t\t\tif (start !== tokenPos) {\n\t\t\t\t\tsuffix = template.slice(start, tokenPos);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tposition = tokenEnd + 1;\n\t\ttokens.push({\n\t\t\tkey: key,\n\t\t\tstart: tokenStart,\n\t\t\tend: position,\n\t\t\toptions: {\n\t\t\t\tprefix: prefix || undefined,\n\t\t\t\tsuffix: suffix || undefined,\n\t\t\t\ttruncateTo: truncateTo ? parseInt(truncateTo, 10) : undefined,\n\t\t\t\tcollapseWhitespace: collapseWhitespace,\n\t\t\t\tpadDirection: padDirection,\n\t\t\t},\n\t\t});\n\t}\n\n\ttemplateTokenMap.set(template, tokens);\n\treturn tokens;\n}\n\n// FYI, this is about twice as slow as getTokensFromTemplate\nexport function getTokensFromTemplateRegex(template: string): TokenMatch[] {\n\tlet tokens = templateTokenMap.get(template);\n\tif (tokens != null) return tokens;\n\n\ttokens = [];\n\n\tlet match;\n\twhile ((match = tokenRegex.exec(template))) {\n\t\tconst [, prefixGroup, prefixNonGroup, key, truncateTo, option, suffixGroup, suffixNonGroup] = match;\n\t\tconst start = match.index;\n\t\tconst end = start + match[0].length;\n\n\t\tlet prefix = prefixGroup || prefixNonGroup || undefined;\n\t\tif (prefix) {\n\t\t\tprefix = prefix.replace(tokenGroupCharacterEscapedRegex, tokenGroupCharacter);\n\t\t}\n\n\t\tlet suffix = suffixGroup || suffixNonGroup || undefined;\n\t\tif (suffix) {\n\t\t\tsuffix = suffix.replace(tokenGroupCharacterEscapedRegex, tokenGroupCharacter);\n\t\t}\n\n\t\ttokens.push({\n\t\t\tkey: key,\n\t\t\tstart: start,\n\t\t\tend: end,\n\t\t\toptions: {\n\t\t\t\tcollapseWhitespace: option === '?',\n\t\t\t\tpadDirection: option === '-' ? 'left' : 'right',\n\t\t\t\tprefix: prefix,\n\t\t\t\tsuffix: suffix,\n\t\t\t\ttruncateTo: truncateTo == null ? undefined : parseInt(truncateTo, 10),\n\t\t\t},\n\t\t});\n\t}\n\n\ttemplateTokenMap.set(template, tokens);\n\treturn tokens;\n}\n\n/**\n * Above this size, a source string split via {@link iterateByDelimiter} has its yielded records\n * flattened (see {@link flattenString}) — below it, the parent-pinning cost of sliced strings is\n * bounded and not worth the copy.\n */\nconst maxDelimiterSourceLength = 128 * 1024;\n\n/**\n * Forces V8 to create a flat copy of `s`, breaking any sliced-string reference to a parent string.\n *\n * V8 represents `substring()` results of 13+ characters as SlicedString views that retain their\n * entire parent string. A single retained field parsed out of a large buffer (e.g. a git walk's\n * full stdout) can therefore keep megabytes alive for as long as that field survives. Flattening\n * copies only the view's own characters, releasing the parent.\n *\n * No-op for strings shorter than `minLength`, where pinning is bounded anyway and the copy isn't\n * worth the allocation.\n */\nexport function flattenString(s: string, minLength = 1024): string {\n\tif (s.length < minLength) return s;\n\n\t// Concatenating a prefix then slicing it off forces V8 to materialize a flat copy of `s` —\n\t// deliberately not a template literal, which V8 can represent as another cons/sliced view.\n\t// oxlint-disable-next-line prefer-template\n\treturn (' ' + s).slice(1);\n}\n\n/**\n * Fast string delimiter iterator\n * Optimized for simple string splitting without generator overhead\n */\nclass StringDelimiterIterator implements IterableIterator<string> {\n\tprivate readonly delimiterLen: number;\n\tprivate readonly flatten: boolean;\n\tprivate index = 0;\n\tprivate done = false;\n\n\tconstructor(\n\t\tprivate readonly data: string,\n\t\tprivate readonly delimiter: string,\n\t) {\n\t\tthis.delimiterLen = delimiter.length;\n\t\t// Yielded substrings are V8 SlicedStrings that retain their parent; when splitting a large\n\t\t// buffer (e.g. a git walk's full stdout) that parent pinning keeps megabytes alive for as\n\t\t// long as any single parsed field survives. Above this threshold, flatten each yielded\n\t\t// record so it only holds its own characters.\n\t\tthis.flatten = data.length > maxDelimiterSourceLength;\n\t}\n\n\tnext(): IteratorResult<string> {\n\t\tif (this.done || this.index >= this.data.length) {\n\t\t\tthis.done = true;\n\t\t\treturn { done: true, value: undefined };\n\t\t}\n\n\t\tconst j = this.data.indexOf(this.delimiter, this.index);\n\t\tconst endIndex = j === -1 ? this.data.length : j;\n\n\t\t// Always flatten here: even a small record pins the entire (potentially huge) parent buffer\n\t\t// through its sliced string, so the minLength guard in flattenString must not apply.\n\t\tconst value = this.flatten\n\t\t\t? flattenString(this.data.substring(this.index, endIndex), 1)\n\t\t\t: this.data.substring(this.index, endIndex);\n\t\tthis.index = endIndex + this.delimiterLen;\n\n\t\treturn { done: false, value: value };\n\t}\n\n\t[Symbol.iterator](): IterableIterator<string> {\n\t\treturn this;\n\t}\n}\n\n/**\n * Iterable delimiter iterator with buffering\n * Handles streaming data by buffering incomplete segments\n */\nclass IterableDelimiterIterator implements IterableIterator<string> {\n\tprivate readonly delimiterLen: number;\n\tprivate readonly iterator: Iterator<string>;\n\tprivate readonly isArray: boolean;\n\tprivate readonly arrayLength: number;\n\n\tprivate arrayCount = 0;\n\tprivate buffer = '';\n\tprivate bufferIndex = 0;\n\tprivate needsMoreData = true;\n\tprivate done = false;\n\n\tconstructor(\n\t\tdata: Iterable<string>,\n\t\tprivate readonly delimiter: string,\n\t) {\n\t\tthis.delimiterLen = delimiter.length;\n\t\tthis.isArray = Array.isArray(data);\n\t\tthis.arrayLength = this.isArray ? (data as string[]).length : 0;\n\t\tthis.iterator = data[Symbol.iterator]();\n\t}\n\n\tnext(): IteratorResult<string> {\n\t\tif (this.done) {\n\t\t\treturn { done: true, value: undefined };\n\t\t}\n\n\t\twhile (true) {\n\t\t\t// Try to find delimiter in current buffer\n\t\t\tif (this.bufferIndex < this.buffer.length) {\n\t\t\t\tconst j = this.buffer.indexOf(this.delimiter, this.bufferIndex);\n\n\t\t\t\tif (j !== -1) {\n\t\t\t\t\t// Found delimiter - return the segment\n\t\t\t\t\tconst value = this.buffer.substring(this.bufferIndex, j);\n\t\t\t\t\tthis.bufferIndex = j + this.delimiterLen;\n\t\t\t\t\treturn { done: false, value: value };\n\t\t\t\t}\n\n\t\t\t\t// No delimiter found in buffer\n\t\t\t\tif (!this.needsMoreData) {\n\t\t\t\t\t// No more data coming - yield rest of buffer\n\t\t\t\t\tif (this.bufferIndex < this.buffer.length) {\n\t\t\t\t\t\tconst value = this.buffer.substring(this.bufferIndex);\n\t\t\t\t\t\tthis.bufferIndex = this.buffer.length;\n\t\t\t\t\t\tthis.done = true;\n\t\t\t\t\t\treturn { done: false, value: value };\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.done = true;\n\t\t\t\t\treturn { done: true, value: undefined };\n\t\t\t\t}\n\n\t\t\t\t// Need more data - keep unprocessed part as leftover\n\t\t\t\tif (this.bufferIndex > 0) {\n\t\t\t\t\tthis.buffer = this.buffer.substring(this.bufferIndex);\n\t\t\t\t\tthis.bufferIndex = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Fetch next chunk if needed\n\t\t\tif (this.needsMoreData) {\n\t\t\t\tconst result = this.iterator.next();\n\n\t\t\t\tif (result.done) {\n\t\t\t\t\tthis.needsMoreData = false;\n\n\t\t\t\t\t// Yield any remaining buffer content\n\t\t\t\t\tif (this.buffer.length > 0) {\n\t\t\t\t\t\tconst value = this.buffer;\n\t\t\t\t\t\tthis.buffer = '';\n\t\t\t\t\t\tthis.done = true;\n\t\t\t\t\t\treturn { done: false, value: value };\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.done = true;\n\t\t\t\t\treturn { done: true, value: undefined };\n\t\t\t\t}\n\n\t\t\t\t// Track array iteration\n\t\t\t\tif (this.isArray) {\n\t\t\t\t\tthis.arrayCount++;\n\t\t\t\t\tif (this.arrayCount === this.arrayLength) {\n\t\t\t\t\t\tthis.needsMoreData = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Append chunk to buffer\n\t\t\t\tthis.buffer += result.value;\n\t\t\t} else {\n\t\t\t\t// No more data and buffer is empty\n\t\t\t\tthis.done = true;\n\t\t\t\treturn { done: true, value: undefined };\n\t\t\t}\n\t\t}\n\t}\n\n\t[Symbol.iterator](): IterableIterator<string> {\n\t\treturn this;\n\t}\n}\n\n/**\n * Iterate over a string or iterable by delimiter without using generators\n * More performant than generator version while maintaining lazy evaluation\n */\nexport function iterateByDelimiter(data: string | Iterable<string>, delimiter: string): IterableIterator<string> {\n\tif (typeof data === 'string') {\n\t\treturn new StringDelimiterIterator(data, delimiter);\n\t}\n\treturn new IterableDelimiterIterator(data, delimiter);\n}\n\n/**\n * Async iterable delimiter iterator with buffering.\n *\n * Buffer strategy: instead of growing a single buffer via concatenation\n * (which causes V8 SlicedString retention — yielded substrings hold\n * references to the entire accumulated buffer, preventing GC), each chunk\n * builds a fresh `remainder + chunk` string. Substrings of this bounded\n * string only retain the current chunk, not the full stream history.\n */\nclass AsyncIterableDelimiterIterator implements AsyncIterableIterator<string> {\n\tprivate readonly delimiterLen: number;\n\tprivate readonly iterator: AsyncIterator<string>;\n\n\tprivate remainder = '';\n\tprivate buffer = '';\n\tprivate searchIndex = 0;\n\tprivate done = false;\n\n\tconstructor(\n\t\tdata: AsyncIterable<string>,\n\t\tprivate readonly delimiter: string,\n\t) {\n\t\tthis.delimiterLen = delimiter.length;\n\t\tthis.iterator = data[Symbol.asyncIterator]();\n\t}\n\n\tasync next(): Promise<IteratorResult<string>> {\n\t\tif (this.done) {\n\t\t\treturn { done: true, value: undefined };\n\t\t}\n\n\t\twhile (true) {\n\t\t\t// Try to find delimiter in current buffer\n\t\t\tconst j = this.buffer.indexOf(this.delimiter, this.searchIndex);\n\t\t\tif (j !== -1) {\n\t\t\t\tconst value = this.buffer.substring(this.searchIndex, j);\n\t\t\t\tthis.searchIndex = j + this.delimiterLen;\n\t\t\t\treturn { done: false, value: value };\n\t\t\t}\n\n\t\t\t// No delimiter — fetch next chunk\n\t\t\tconst result = await this.iterator.next();\n\t\t\tif (result.done) {\n\t\t\t\t// No more data — yield any remaining content\n\t\t\t\tif (this.searchIndex < this.buffer.length) {\n\t\t\t\t\tconst value = this.buffer.substring(this.searchIndex);\n\t\t\t\t\tthis.done = true;\n\t\t\t\t\treturn { done: false, value: value };\n\t\t\t\t}\n\n\t\t\t\tthis.done = true;\n\t\t\t\treturn { done: true, value: undefined };\n\t\t\t}\n\n\t\t\t// Build a fresh buffer from leftover + new chunk so that\n\t\t\t// substrings only retain this bounded string, not a growing chain\n\t\t\tthis.remainder = this.searchIndex < this.buffer.length ? this.buffer.substring(this.searchIndex) : '';\n\t\t\tthis.buffer = this.remainder + result.value;\n\t\t\tthis.searchIndex = 0;\n\t\t}\n\t}\n\n\t[Symbol.asyncIterator](): AsyncIterableIterator<string> {\n\t\treturn this;\n\t}\n}\n\n/**\n * Iterate over an async iterable by delimiter without using generators\n * More performant than generator version while maintaining lazy evaluation\n */\nexport function iterateAsyncByDelimiter(data: AsyncIterable<string>, delimiter: string): AsyncIterableIterator<string> {\n\treturn new AsyncIterableDelimiterIterator(data, delimiter);\n}\n\nexport function interpolate(template: string, context: object | undefined): string {\n\tif (template == null || template.length === 0) return template;\n\tif (context == null) return template.replace(tokenSanitizeRegex, '');\n\n\tconst tokens = getTokensFromTemplate(template);\n\tif (tokens.length === 0) return template;\n\n\tlet position = 0;\n\tlet result = '';\n\tfor (const token of tokens) {\n\t\tresult += template.slice(position, token.start) + ((context as Record<string, string>)[token.key] ?? '');\n\t\tposition = token.end;\n\t}\n\n\tif (position < template.length) {\n\t\tresult += template.slice(position);\n\t}\n\n\treturn result;\n}\n\nexport async function interpolateAsync(template: string, context: object | undefined): Promise<string> {\n\tif (template == null || template.length === 0) return template;\n\tif (context == null) return template.replace(tokenSanitizeRegex, '');\n\n\tconst tokens = getTokensFromTemplate(template);\n\tif (tokens.length === 0) return template;\n\n\tlet position = 0;\n\tlet result = '';\n\tlet value;\n\tfor (const token of tokens) {\n\t\tvalue = (context as Record<string, any>)[token.key];\n\t\tif (value != null && typeof value === 'object' && typeof value.then === 'function') {\n\t\t\tvalue = await value;\n\t\t}\n\n\t\t// oxlint-disable-next-line typescript/restrict-plus-operands\n\t\tresult += template.slice(position, token.start) + (value ?? '');\n\t\tposition = token.end;\n\t}\n\n\tif (position < template.length) {\n\t\tresult += template.slice(position);\n\t}\n\n\treturn result;\n}\n\nexport function isLowerAsciiLetter(code: number): boolean {\n\treturn code >= CharCode.a && code <= CharCode.z;\n}\n\nexport function isUpperAsciiLetter(code: number): boolean {\n\treturn code >= CharCode.A && code <= CharCode.Z;\n}\n\nexport function pad(s: string, before: number = 0, after: number = 0, padding: string = '\\u00a0'): string {\n\tif (before === 0 && after === 0) return s;\n\n\treturn `${before === 0 ? '' : padding.repeat(before)}${s}${after === 0 ? '' : padding.repeat(after)}`;\n}\n\nexport function padOrTruncateEnd(s: string, maxLength: number, fillString?: string): string {\n\tif (s.length === maxLength) return s;\n\tif (s.length > maxLength) return s.substring(0, maxLength);\n\treturn s.padEnd(maxLength, fillString);\n}\n\n// Removes \\ / : * ? \" < > | and C0 and C1 control codes\n// oxlint-disable-next-line no-control-regex\nconst illegalCharsForFSRegex = /[\\\\/:*?\"<>|\\x00-\\x1f\\x80-\\x9f]/g;\n\nexport function sanitizeForFileSystem(s: string, replacement: string = '_'): string {\n\tif (!s) return s;\n\treturn s.replace(illegalCharsForFSRegex, replacement);\n}\n\nconst cStyleEscapes: Readonly<Record<string, number>> = {\n\ta: 0x07,\n\tb: 0x08,\n\tt: 0x09,\n\tn: 0x0a,\n\tv: 0x0b,\n\tf: 0x0c,\n\tr: 0x0d,\n\t'\"': 0x22,\n\t'\\\\': 0x5c,\n};\nconst octalEscapeRegex = /^[0-7]{3}/;\nconst utf8Encoder = new TextEncoder();\n// A name can start with U+FEFF, which the decoder would otherwise drop as a byte order mark\nconst utf8Decoder = new TextDecoder('utf-8', { ignoreBOM: true });\n\n/**\n * Reads the string git C-quotes (`\"a\\\"b\\tc\"`) whose opening quote is at `from`, returning it with the index just\n * past its closing quote, or `undefined` when it is malformed. Git writes a quoted name byte by byte, so an octal\n * escape is one byte of the name's UTF-8, while a character it left as it was (every non-ASCII one with\n * `core.quotePath` off) is already text\n */\nexport function readCQuotedString(text: string, from: number): { value: string; end: number } | undefined {\n\tconst bytes: number[] = [];\n\tfor (let i = from + 1; i < text.length; i++) {\n\t\tconst char = text[i];\n\t\tif (char === '\"') return { value: utf8Decoder.decode(new Uint8Array(bytes)), end: i + 1 };\n\n\t\tif (char !== '\\\\') {\n\t\t\tconst code = char.charCodeAt(0);\n\t\t\tif (code < 0x80) {\n\t\t\t\tbytes.push(code);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// A whole code point, so a surrogate pair encodes as one character\n\t\t\tconst codePoint = String.fromCodePoint(text.codePointAt(i)!);\n\t\t\tbytes.push(...utf8Encoder.encode(codePoint));\n\t\t\ti += codePoint.length - 1;\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst octal = octalEscapeRegex.exec(text.substring(i + 1, i + 4));\n\t\tif (octal != null) {\n\t\t\tbytes.push(parseInt(octal[0], 8) & 0xff);\n\t\t\ti += 3;\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst escaped = cStyleEscapes[text[i + 1]];\n\t\tif (escaped == null) return undefined;\n\n\t\tbytes.push(escaped);\n\t\ti++;\n\t}\n\treturn undefined;\n}\n\n/**\n * Reverses git's C-style quoting of a whole value: a value git didn't quote, which can't start with a `\"`, and one\n * that isn't well-formed are returned as they are\n */\nexport function unquoteCString(value: string): string {\n\tif (!value.startsWith('\"')) return value;\n\n\tconst quoted = readCQuotedString(value, 0);\n\treturn quoted != null && quoted.end === value.length ? quoted.value : value;\n}\n\nexport function splitLast(s: string, splitter: string): string[] {\n\tconst index = s.lastIndexOf(splitter);\n\tif (index === -1) return [s];\n\n\treturn [s.substring(0, index), s.substring(index + splitter.length)];\n}\n\nexport function splitSingle(s: string, splitter: string): string[] {\n\tconst index = s.indexOf(splitter);\n\tif (index === -1) return [s];\n\n\tconst start = s.substring(0, index);\n\tconst rest = s.substring(index + splitter.length);\n\treturn rest != null ? [start, rest] : [start];\n}\n\nexport function truncate(s: string, truncateTo: number, ellipsis: string = '\\u2026', width?: number): string {\n\tif (!s) return s;\n\tif (truncateTo <= 1) return ellipsis;\n\n\twidth = width ?? getWidth(s);\n\tif (width <= truncateTo) return s;\n\tif (width === s.length) return `${s.substring(0, truncateTo - 1)}${ellipsis}`;\n\n\t// Skip ahead to start as far as we can by assuming all the double-width characters won't be truncated\n\tlet chars = Math.floor(truncateTo / (width / s.length));\n\tlet count = getWidth(s.substring(0, chars));\n\twhile (count < truncateTo) {\n\t\tcount += getWidth(s[chars++]);\n\t}\n\n\tif (count >= truncateTo) {\n\t\tchars--;\n\t}\n\n\treturn `${s.substring(0, chars)}${ellipsis}`;\n}\n\nexport function truncateLeft(s: string, truncateTo: number, ellipsis: string = '\\u2026', width?: number): string {\n\tif (!s) return s;\n\tif (truncateTo <= 1) return ellipsis;\n\n\twidth = width ?? getWidth(s);\n\tif (width <= truncateTo) return s;\n\tif (width === s.length) return `${ellipsis}${s.substring(width - truncateTo)}`;\n\n\t// Skip ahead to start as far as we can by assuming all the double-width characters won't be truncated\n\tlet chars = Math.floor(truncateTo / (width / s.length));\n\tlet count = getWidth(s.substring(0, chars));\n\twhile (count < truncateTo) {\n\t\tcount += getWidth(s[chars++]);\n\t}\n\n\tif (count >= truncateTo) {\n\t\tchars--;\n\t}\n\n\treturn `${ellipsis}${s.substring(s.length - chars)}`;\n}\n\nexport function truncateMiddle(s: string, truncateTo: number, ellipsis: string = '\\u2026'): string {\n\tif (!s) return s;\n\tif (truncateTo <= 1) return ellipsis;\n\n\tconst width = getWidth(s);\n\tif (width <= truncateTo) return s;\n\n\treturn `${s.slice(0, Math.floor(truncateTo / 2) - 1)}${ellipsis}${s.slice(width - Math.ceil(truncateTo / 2))}`;\n}\n\n// Below adapted from https://github.com/pieroxy/lz-string\n\n// Pre-computed from:\n// const base64ReverseMap = new Uint8Array(123);\n// const base64Chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n// for (let i = 0; i < base64Chars.length; i++) {\n// \tbase64ReverseMap[base64Chars.charCodeAt(i)] = i;\n// }\n\nconst base64ReverseMap = new Uint8Array([\n\t0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n\t0, 0, 0, 0, 62, 0, 0, 0, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 0, 0, 0, 64, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7,\n\t8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 26, 27, 28, 29, 30, 31, 32,\n\t33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,\n]);\n\nexport function decompressFromBase64LZString(input: string | undefined): string {\n\tif (input == null || input === '') return '';\n\n\tconst result = _decompressLZString(input, 32) ?? '';\n\treturn result;\n}\n\nfunction _decompressLZString(input: string, resetValue: number) {\n\tconst dictionary = new Array<string>(4096);\n\tdictionary[0] = '0';\n\tdictionary[1] = '1';\n\tdictionary[2] = '2';\n\n\tconst result: string[] = [];\n\tconst length = input.length;\n\n\tlet val = base64ReverseMap[input.charCodeAt(0)];\n\tlet position = resetValue;\n\tlet index = 1;\n\n\tfunction readBits(maxpower: number): number {\n\t\tlet bits = 0;\n\t\tlet power = 1;\n\t\tdo {\n\t\t\tbits |= Number((val & position) > 0) * power;\n\t\t\tpower <<= 1;\n\n\t\t\tposition >>= 1;\n\t\t\tif (position === 0) {\n\t\t\t\tposition = resetValue;\n\t\t\t\tval = base64ReverseMap[input.charCodeAt(index++)];\n\t\t\t}\n\t\t} while (power !== maxpower);\n\n\t\treturn bits;\n\t}\n\n\tlet c = readBits(4);\n\n\tswitch (c) {\n\t\tcase 0:\n\t\t\tc = readBits(256);\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tc = readBits(65536);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\treturn '';\n\t}\n\n\tlet w = String.fromCharCode(c);\n\tdictionary[3] = w;\n\tresult.push(w);\n\n\tlet dictSize = 4;\n\tlet enlargeIn = 4;\n\tlet numBits = 3;\n\n\twhile (index <= length) {\n\t\tc = readBits(1 << numBits);\n\n\t\tswitch (c) {\n\t\t\tcase 0:\n\t\t\t\tc = readBits(256);\n\t\t\t\tdictionary[dictSize] = String.fromCharCode(c);\n\t\t\t\tc = dictSize++;\n\t\t\t\tenlargeIn--;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tc = readBits(65536);\n\t\t\t\tdictionary[dictSize] = String.fromCharCode(c);\n\t\t\t\tc = dictSize++;\n\t\t\t\tenlargeIn--;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn result.join('');\n\t\t}\n\n\t\tif (enlargeIn === 0) {\n\t\t\tenlargeIn = 1 << numBits++;\n\t\t}\n\n\t\tlet entry = dictionary[c];\n\t\tif (entry === undefined) {\n\t\t\tif (c !== dictSize) return undefined;\n\n\t\t\tentry = w + w[0];\n\t\t}\n\n\t\tresult.push(entry);\n\t\tdictionary[dictSize++] = w + entry[0];\n\t\tenlargeIn--;\n\t\tw = entry;\n\n\t\tif (enlargeIn === 0) {\n\t\t\tenlargeIn = 1 << numBits++;\n\t\t}\n\t}\n\n\treturn undefined;\n}\n"],"mappings":";;;AAQA,SAAgB,WAAW,GAAmB;CAC7C,OAAO,GAAG,EAAE,EAAE,CAAC,kBAAkB,IAAI,EAAE,MAAM,CAA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;GACD,KAAK;IACJ,IAAI,SAAS,KAAK;IAClB,WAAW,YAAY,OAAO,aAAa,CAAC;IAC5C,IAAI;IACJ;IACA;GACD,KAAK,GACJ,OAAO,OAAO,KAAK,EAAE;EACvB;EAEA,IAAI,cAAc,GACjB,YAAY,KAAK;EAGlB,IAAI,QAAQ,WAAW;EACvB,IAAI,UAAU,KAAA,GAAW;GACxB,IAAI,MAAM,UAAU,OAAO,KAAA;GAE3B,QAAQ,IAAI,EAAE;EACf;EAEA,OAAO,KAAK,KAAK;EACjB,WAAW,cAAc,IAAI,MAAM;EACnC;EACA,IAAI;EAEJ,IAAI,cAAc,GACjB,YAAY,KAAK;CAEnB;AAGD"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitkraken/core-gitlens",
3
3
  "description": "GitLens core — shared Git / AI / GitHub primitives for internal GitKraken consumption",
4
- "version": "0.38.2",
4
+ "version": "0.38.4",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": {
7
7
  "name": "GitKraken",