diffhub 0.1.1 → 0.1.3

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 (163) hide show
  1. package/.next/standalone/apps/web/.next/BUILD_ID +1 -1
  2. package/.next/standalone/apps/web/.next/build-manifest.json +3 -3
  3. package/.next/standalone/apps/web/.next/prerender-manifest.json +3 -3
  4. package/.next/standalone/apps/web/.next/server/app/_global-error.html +1 -1
  5. package/.next/standalone/apps/web/.next/server/app/_global-error.rsc +1 -1
  6. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  7. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  8. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  9. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  10. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  11. package/.next/standalone/apps/web/.next/server/app/_not-found/page.js +1 -1
  12. package/.next/standalone/apps/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  13. package/.next/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  14. package/.next/standalone/apps/web/.next/server/app/_not-found.html +1 -1
  15. package/.next/standalone/apps/web/.next/server/app/_not-found.rsc +17 -16
  16. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_full.segment.rsc +17 -16
  17. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  18. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_index.segment.rsc +6 -5
  19. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  20. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  21. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  22. package/.next/standalone/apps/web/.next/server/app/api/comments/route.js +2 -2
  23. package/.next/standalone/apps/web/.next/server/app/api/comments/route.js.nft.json +1 -1
  24. package/.next/standalone/apps/web/.next/server/app/api/diff/route.js +4 -3
  25. package/.next/standalone/apps/web/.next/server/app/api/diff/route.js.nft.json +1 -1
  26. package/.next/standalone/apps/web/.next/server/app/api/discard/route.js +3 -3
  27. package/.next/standalone/apps/web/.next/server/app/api/discard/route.js.nft.json +1 -1
  28. package/.next/standalone/apps/web/.next/server/app/api/file/route.js +3 -3
  29. package/.next/standalone/apps/web/.next/server/app/api/file/route.js.nft.json +1 -1
  30. package/.next/standalone/apps/web/.next/server/app/api/files/route.js +3 -3
  31. package/.next/standalone/apps/web/.next/server/app/api/files/route.js.nft.json +1 -1
  32. package/.next/standalone/apps/web/.next/server/app/api/open/route.js +1 -1
  33. package/.next/standalone/apps/web/.next/server/app/api/open/route.js.nft.json +1 -1
  34. package/.next/standalone/apps/web/.next/server/app/favicon.ico/route.js +1 -1
  35. package/.next/standalone/apps/web/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  36. package/.next/standalone/apps/web/.next/server/app/index.html +1 -1
  37. package/.next/standalone/apps/web/.next/server/app/index.rsc +16 -15
  38. package/.next/standalone/apps/web/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  39. package/.next/standalone/apps/web/.next/server/app/index.segments/_full.segment.rsc +16 -15
  40. package/.next/standalone/apps/web/.next/server/app/index.segments/_head.segment.rsc +4 -4
  41. package/.next/standalone/apps/web/.next/server/app/index.segments/_index.segment.rsc +6 -5
  42. package/.next/standalone/apps/web/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  43. package/.next/standalone/apps/web/.next/server/app/page/react-loadable-manifest.json +1 -2
  44. package/.next/standalone/apps/web/.next/server/app/page.js +2 -2
  45. package/.next/standalone/apps/web/.next/server/app/page.js.nft.json +1 -1
  46. package/.next/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
  47. package/.next/standalone/apps/web/.next/server/chunks/[externals]_shiki_wasm_0~fgmgp._.js +3 -0
  48. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__01.zj5h._.js +3 -0
  49. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__05ejtyr._.js +3 -0
  50. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0e2dp4h._.js +3 -0
  51. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0egk6ui._.js +3 -0
  52. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0i6i-~n._.js +3 -0
  53. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0sv4hr9._.js +3 -0
  54. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0tbrp5x._.js +13 -0
  55. package/.next/standalone/apps/web/.next/server/chunks/_0r24f4c._.js +69 -0
  56. package/.next/standalone/apps/web/.next/server/chunks/node_modules_@pierre_theme_dist_pierre-dark_mjs_0ojo3_n._.js +3 -0
  57. package/.next/standalone/apps/web/.next/server/chunks/node_modules_@pierre_theme_dist_pierre-light_mjs_0pw9wwg._.js +3 -0
  58. package/.next/standalone/apps/web/.next/server/chunks/ssr/0fuv_@swc_helpers_cjs__interop_require_default_cjs_0ghzfn9._.js +3 -0
  59. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0bit3~x._.js +3 -0
  60. package/.next/standalone/apps/web/.next/server/chunks/ssr/{[root-of-the-server]__06b81~v._.js → [root-of-the-server]__0giwc4b._.js} +2 -2
  61. package/.next/standalone/apps/web/.next/server/chunks/ssr/{apps_web_0b_ykcu._.js → _0m1v4-9._.js} +2 -2
  62. package/.next/standalone/apps/web/.next/server/chunks/ssr/_0oc3qg_._.js +3 -3
  63. package/.next/standalone/apps/web/.next/server/chunks/ssr/{apps_web_08kf15u._.js → apps_web_0758ax4._.js} +2 -2
  64. package/.next/standalone/apps/web/.next/server/middleware-build-manifest.js +3 -3
  65. package/.next/standalone/apps/web/.next/server/pages/404.html +1 -1
  66. package/.next/standalone/apps/web/.next/server/pages/500.html +1 -1
  67. package/.next/standalone/apps/web/.next/server/server-reference-manifest.js +1 -1
  68. package/.next/standalone/apps/web/.next/server/server-reference-manifest.json +1 -1
  69. package/.next/standalone/apps/web/.next/static/chunks/01f1ms~jsc5vh.js +138 -0
  70. package/.next/standalone/apps/web/.next/static/chunks/0c7yx0ttmhb4s.js +63 -0
  71. package/.next/standalone/apps/web/.next/static/chunks/0ogqv_xj2r0c6.js +1 -0
  72. package/.next/standalone/apps/web/.next/static/chunks/0qp8t.3t~v6um.js +1 -0
  73. package/.next/standalone/apps/web/.next/static/chunks/{0syypqto3~pe_.js → 0y0o261rjun_2.js} +8 -8
  74. package/.next/standalone/apps/web/.next/static/chunks/0y5z3t-z1c8ks.js.map +5 -0
  75. package/.next/standalone/apps/web/.next/static/chunks/130i667qy-j80.css +3 -0
  76. package/.next/standalone/apps/web/.next/static/chunks/15uwrard~z-l5.js +16 -0
  77. package/.next/standalone/apps/web/.next/static/chunks/17b.xoi.b6rcl.js +1 -0
  78. package/.next/standalone/apps/web/.next/static/chunks/turbopack-0_n_4n~_4no2a.js +1 -0
  79. package/.next/standalone/apps/web/.next/static/chunks/turbopack-worker-0sjn--fhq~1cg.js +1 -0
  80. package/.next/standalone/apps/web/.next/static/media/diffs.worker.09unk0quktc_5.ts +1 -0
  81. package/.next/standalone/apps/web/package.json +4 -4
  82. package/README.md +10 -3
  83. package/bin/diffhub.mjs +25 -1
  84. package/package.json +4 -4
  85. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__05vwx85._.js +0 -3
  86. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__09vmjc2._.js +0 -3
  87. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0etmu4u._.js +0 -3
  88. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0g-_a7n._.js +0 -3
  89. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0gf_xk6._.js +0 -13
  90. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0mshgfw._.js +0 -3
  91. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0qixima._.js +0 -3
  92. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0f~hmsk._.js +0 -3
  93. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0khyzju._.js +0 -3
  94. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0l2mjim._.js +0 -70
  95. package/.next/standalone/apps/web/.next/server/chunks/ssr/_0kwaklj._.js +0 -3
  96. package/.next/standalone/apps/web/.next/static/chunks/0-ci0c9di0qo8.js +0 -16
  97. package/.next/standalone/apps/web/.next/static/chunks/0.ae0sud8tm7k.js +0 -204
  98. package/.next/standalone/apps/web/.next/static/chunks/07ndp5x2cvqo..css +0 -3
  99. package/.next/standalone/apps/web/.next/static/chunks/0di~ntk7iivm4.js +0 -1
  100. package/.next/standalone/apps/web/.next/static/chunks/0pklg0nmdvay8.js +0 -1
  101. package/.next/standalone/apps/web/.next/static/chunks/0up9_7hiwl_dt.js +0 -1
  102. package/.next/standalone/apps/web/.next/static/chunks/0~984a88e4rp9.js +0 -204
  103. package/.next/standalone/apps/web/.next/static/chunks/13y8355z8m13w.js +0 -1
  104. package/.next/standalone/apps/web/AGENTS.md +0 -60
  105. package/.next/standalone/apps/web/CHANGELOG.md +0 -7
  106. package/.next/standalone/apps/web/CLAUDE.md +0 -1
  107. package/.next/standalone/apps/web/README.md +0 -78
  108. package/.next/standalone/apps/web/app/api/comments/route.ts +0 -20
  109. package/.next/standalone/apps/web/app/api/diff/route.ts +0 -15
  110. package/.next/standalone/apps/web/app/api/discard/route.ts +0 -15
  111. package/.next/standalone/apps/web/app/api/file/route.ts +0 -17
  112. package/.next/standalone/apps/web/app/api/files/route.ts +0 -14
  113. package/.next/standalone/apps/web/app/api/open/route.ts +0 -64
  114. package/.next/standalone/apps/web/app/favicon.ico +0 -0
  115. package/.next/standalone/apps/web/app/globals.css +0 -214
  116. package/.next/standalone/apps/web/app/layout.tsx +0 -52
  117. package/.next/standalone/apps/web/app/page.tsx +0 -6
  118. package/.next/standalone/apps/web/bin/diffhub.mjs +0 -147
  119. package/.next/standalone/apps/web/components/ContextMenu.tsx +0 -161
  120. package/.next/standalone/apps/web/components/DiffApp.tsx +0 -419
  121. package/.next/standalone/apps/web/components/DiffViewer.tsx +0 -565
  122. package/.next/standalone/apps/web/components/FileDiffHeader.tsx +0 -119
  123. package/.next/standalone/apps/web/components/FileList.tsx +0 -455
  124. package/.next/standalone/apps/web/components/KeyboardShortcutsDialog.tsx +0 -79
  125. package/.next/standalone/apps/web/components/SidebarHelpMenu.tsx +0 -86
  126. package/.next/standalone/apps/web/components/StatusBar.tsx +0 -212
  127. package/.next/standalone/apps/web/components/icons/file-status-icons.tsx +0 -48
  128. package/.next/standalone/apps/web/components/theme-provider.tsx +0 -12
  129. package/.next/standalone/apps/web/components/ui/button.tsx +0 -90
  130. package/.next/standalone/apps/web/components/ui/empty.tsx +0 -82
  131. package/.next/standalone/apps/web/components/ui/input.tsx +0 -18
  132. package/.next/standalone/apps/web/components/ui/kbd.tsx +0 -14
  133. package/.next/standalone/apps/web/components/ui/separator.tsx +0 -23
  134. package/.next/standalone/apps/web/components/ui/sheet.tsx +0 -109
  135. package/.next/standalone/apps/web/components/ui/sidebar.tsx +0 -700
  136. package/.next/standalone/apps/web/components/ui/skeleton.tsx +0 -9
  137. package/.next/standalone/apps/web/components/ui/toggle.tsx +0 -35
  138. package/.next/standalone/apps/web/components/ui/tooltip.tsx +0 -52
  139. package/.next/standalone/apps/web/components.json +0 -27
  140. package/.next/standalone/apps/web/lib/comments.ts +0 -52
  141. package/.next/standalone/apps/web/lib/export-comments.ts +0 -13
  142. package/.next/standalone/apps/web/lib/git.ts +0 -201
  143. package/.next/standalone/apps/web/lib/use-mobile.ts +0 -19
  144. package/.next/standalone/apps/web/lib/utils.ts +0 -5
  145. package/.next/standalone/apps/web/next.config.ts +0 -19
  146. package/.next/standalone/apps/web/oxfmt.config.ts +0 -6
  147. package/.next/standalone/apps/web/oxlint.config.ts +0 -13
  148. package/.next/standalone/apps/web/postcss.config.mjs +0 -7
  149. package/.next/standalone/apps/web/public/file.svg +0 -1
  150. package/.next/standalone/apps/web/public/glide-variable-italic.woff2 +0 -0
  151. package/.next/standalone/apps/web/public/glide-variable.woff2 +0 -0
  152. package/.next/standalone/apps/web/public/globe.svg +0 -1
  153. package/.next/standalone/apps/web/public/next.svg +0 -1
  154. package/.next/standalone/apps/web/public/operator-mono-book-italic.woff2 +0 -0
  155. package/.next/standalone/apps/web/public/operator-mono-book.woff2 +0 -0
  156. package/.next/standalone/apps/web/public/operator-mono-medium-italic.woff2 +0 -0
  157. package/.next/standalone/apps/web/public/operator-mono-medium.woff2 +0 -0
  158. package/.next/standalone/apps/web/public/vercel.svg +0 -1
  159. package/.next/standalone/apps/web/public/window.svg +0 -1
  160. package/.next/standalone/apps/web/tsconfig.json +0 -34
  161. /package/.next/standalone/apps/web/.next/static/{ZhI_-YaFho-fQoajjgwSH → C1Ggd_ITpnb7yBHrIOODV}/_buildManifest.js +0 -0
  162. /package/.next/standalone/apps/web/.next/static/{ZhI_-YaFho-fQoajjgwSH → C1Ggd_ITpnb7yBHrIOODV}/_clientMiddlewareManifest.js +0 -0
  163. /package/.next/standalone/apps/web/.next/static/{ZhI_-YaFho-fQoajjgwSH → C1Ggd_ITpnb7yBHrIOODV}/_ssgManifest.js +0 -0
@@ -0,0 +1,69 @@
1
+ module.exports=[91260,e=>{"use strict";e.s(["default",0,"@layer base, theme, rendered, unsafe;\n\n@layer base {\n :host {\n --diffs-font-fallback:\n 'SF Mono', Monaco, Consolas, 'Ubuntu Mono', 'Liberation Mono',\n 'Courier New', monospace;\n --diffs-header-font-fallback:\n system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',\n 'Noto Sans', 'Liberation Sans', Arial, sans-serif;\n\n --diffs-mixer: light-dark(black, white);\n --diffs-gap-fallback: 8px;\n\n --diffs-added-light: #0dbe4e;\n --diffs-added-dark: #5ecc71;\n --diffs-modified-light: #009fff;\n --diffs-modified-dark: #69b1ff;\n --diffs-deleted-light: #ff2e3f;\n --diffs-deleted-dark: #ff6762;\n\n /*\n // Available CSS Color Overrides\n --diffs-bg-buffer-override\n --diffs-bg-hover-override\n --diffs-bg-context-override\n --diffs-bg-separator-override\n\n --diffs-fg-number-override\n --diffs-fg-number-addition-override\n --diffs-fg-number-deletion-override\n --diffs-fg-conflict-marker-override\n\n --diffs-deletion-color-override\n --diffs-addition-color-override\n --diffs-modified-color-override\n\n --diffs-bg-deletion-override\n --diffs-bg-deletion-number-override\n --diffs-bg-deletion-hover-override\n --diffs-bg-deletion-emphasis-override\n\n --diffs-bg-addition-override\n --diffs-bg-addition-number-override\n --diffs-bg-addition-hover-override\n --diffs-bg-addition-emphasis-override\n\n // Line Selection Color Overrides (for enableLineSelection)\n --diffs-selection-color-override\n --diffs-bg-selection-override\n --diffs-bg-selection-number-override\n --diffs-bg-selection-background-override\n --diffs-bg-selection-number-background-override\n\n // Available CSS Layout Overrides\n --diffs-gap-inline\n --diffs-gap-block\n --diffs-gap-style\n --diffs-tab-size\n */\n\n color-scheme: light dark;\n display: block;\n font-family: var(\n --diffs-header-font-family,\n var(--diffs-header-font-fallback)\n );\n font-size: var(--diffs-font-size, 13px);\n line-height: var(--diffs-line-height, 20px);\n font-feature-settings: var(--diffs-font-features);\n\n /* NOTE(amadeus): we cannot use 'in oklch' because current versions of cursor\n * and vscode use an older build of chrome that appears to have a bug with\n * color-mix and 'in oklch', so use 'in lab' instead */\n --diffs-bg: light-dark(\n var(--diffs-light-bg, #fff),\n var(--diffs-dark-bg, #000)\n );\n --diffs-bg-buffer: var(\n --diffs-bg-buffer-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer)),\n color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer))\n )\n );\n --diffs-bg-hover: var(\n --diffs-bg-hover-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg) 97%, var(--diffs-mixer)),\n color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-mixer))\n )\n );\n\n --diffs-bg-context: var(\n --diffs-bg-context-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg) 98.5%, var(--diffs-mixer)),\n color-mix(in lab, var(--diffs-bg) 92.5%, var(--diffs-mixer))\n )\n );\n --diffs-bg-context-number: var(\n --diffs-bg-context-number-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg-context) 80%, var(--diffs-bg)),\n color-mix(in lab, var(--diffs-bg-context) 60%, var(--diffs-bg))\n )\n );\n --diffs-bg-conflict-marker: var(\n --diffs-bg-conflict-marker-override,\n light-dark(\n color-mix(\n in lab,\n var(--diffs-bg-context) 88%,\n var(--diffs-modified-base)\n ),\n color-mix(\n in lab,\n var(--diffs-bg-context) 80%,\n var(--diffs-modified-base)\n )\n )\n );\n --diffs-bg-conflict-current: var(\n --diffs-bg-conflict-current-override,\n light-dark(#e5f8ea, #274432)\n );\n --diffs-bg-conflict-base: var(\n --diffs-bg-conflict-base-override,\n light-dark(\n color-mix(\n in lab,\n var(--diffs-bg-context) 90%,\n var(--diffs-modified-base)\n ),\n color-mix(\n in lab,\n var(--diffs-bg-context) 82%,\n var(--diffs-modified-base)\n )\n )\n );\n --diffs-bg-conflict-incoming: var(\n --diffs-bg-conflict-incoming-override,\n light-dark(#e6f1ff, #253b5a)\n );\n --diffs-bg-conflict-marker-number: var(\n --diffs-bg-conflict-marker-number-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg-conflict-marker) 72%, var(--diffs-bg)),\n color-mix(in lab, var(--diffs-bg-conflict-marker) 54%, var(--diffs-bg))\n )\n );\n --diffs-bg-conflict-current-number: var(\n --diffs-bg-conflict-current-number-override,\n light-dark(#d7f1de, #30533d)\n );\n --diffs-bg-conflict-base-number: var(\n --diffs-bg-conflict-base-number-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg-conflict-base) 72%, var(--diffs-bg)),\n color-mix(in lab, var(--diffs-bg-conflict-base) 54%, var(--diffs-bg))\n )\n );\n --diffs-bg-conflict-incoming-number: var(\n --diffs-bg-conflict-incoming-number-override,\n light-dark(#d8e8ff, #2f4b73)\n );\n --conflict-bg-current: var(\n --conflict-bg-current-override,\n var(--diffs-bg-addition)\n );\n --conflict-bg-incoming: var(\n --conflict-bg-incoming-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-modified-base)),\n color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-modified-base))\n )\n );\n --conflict-bg-current-number: var(\n --conflict-bg-current-number-override,\n var(--diffs-bg-addition-number)\n );\n --conflict-bg-incoming-number: var(\n --conflict-bg-incoming-number-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-modified-base)),\n color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-modified-base))\n )\n );\n --conflict-bg-current-header: var(\n --conflict-bg-current-header-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg) 78%, var(--diffs-addition-base)),\n color-mix(in lab, var(--diffs-bg) 68%, var(--diffs-addition-base))\n )\n );\n --conflict-bg-incoming-header: var(\n --conflict-bg-incoming-header-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg) 78%, var(--diffs-modified-base)),\n color-mix(in lab, var(--diffs-bg) 68%, var(--diffs-modified-base))\n )\n );\n --conflict-bg-current-header-number: var(\n --conflict-bg-current-header-number-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg) 72%, var(--diffs-addition-base)),\n color-mix(in lab, var(--diffs-bg) 62%, var(--diffs-addition-base))\n )\n );\n --conflict-bg-incoming-header-number: var(\n --conflict-bg-incoming-header-number-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg) 72%, var(--diffs-modified-base)),\n color-mix(in lab, var(--diffs-bg) 62%, var(--diffs-modified-base))\n )\n );\n\n --diffs-bg-separator: var(\n --diffs-bg-separator-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg) 96%, var(--diffs-mixer)),\n color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-mixer))\n )\n );\n\n --diffs-fg: light-dark(var(--diffs-light, #000), var(--diffs-dark, #fff));\n --diffs-fg-number: var(\n --diffs-fg-number-override,\n light-dark(\n color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg)),\n color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg))\n )\n );\n --diffs-fg-conflict-marker: var(\n --diffs-fg-conflict-marker-override,\n var(--diffs-fg-number)\n );\n\n --diffs-deletion-base: var(\n --diffs-deletion-color-override,\n light-dark(\n var(\n --diffs-light-deletion-color,\n var(--diffs-deletion-color, var(--diffs-deleted-light))\n ),\n var(\n --diffs-dark-deletion-color,\n var(--diffs-deletion-color, var(--diffs-deleted-dark))\n )\n )\n );\n --diffs-addition-base: var(\n --diffs-addition-color-override,\n light-dark(\n var(\n --diffs-light-addition-color,\n var(--diffs-addition-color, var(--diffs-added-light))\n ),\n var(\n --diffs-dark-addition-color,\n var(--diffs-addition-color, var(--diffs-added-dark))\n )\n )\n );\n --diffs-modified-base: var(\n --diffs-modified-color-override,\n light-dark(\n var(\n --diffs-light-modified-color,\n var(--diffs-modified-color, var(--diffs-modified-light))\n ),\n var(\n --diffs-dark-modified-color,\n var(--diffs-modified-color, var(--diffs-modified-dark))\n )\n )\n );\n\n /* NOTE(amadeus): we cannot use 'in oklch' because current versions of cursor\n * and vscode use an older build of chrome that appears to have a bug with\n * color-mix and 'in oklch', so use 'in lab' instead */\n --diffs-bg-deletion: var(\n --diffs-bg-deletion-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-deletion-base)),\n color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-deletion-base))\n )\n );\n --diffs-bg-deletion-number: var(\n --diffs-bg-deletion-number-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-deletion-base)),\n color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-deletion-base))\n )\n );\n --diffs-bg-deletion-hover: var(\n --diffs-bg-deletion-hover-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-deletion-base)),\n color-mix(in lab, var(--diffs-bg) 75%, var(--diffs-deletion-base))\n )\n );\n --diffs-bg-deletion-emphasis: var(\n --diffs-bg-deletion-emphasis-override,\n light-dark(\n rgb(from var(--diffs-deletion-base) r g b / 0.15),\n rgb(from var(--diffs-deletion-base) r g b / 0.2)\n )\n );\n\n --diffs-bg-addition: var(\n --diffs-bg-addition-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-addition-base)),\n color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-addition-base))\n )\n );\n --diffs-bg-addition-number: var(\n --diffs-bg-addition-number-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-addition-base)),\n color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-addition-base))\n )\n );\n --diffs-bg-addition-hover: var(\n --diffs-bg-addition-hover-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-addition-base)),\n color-mix(in lab, var(--diffs-bg) 70%, var(--diffs-addition-base))\n )\n );\n --diffs-bg-addition-emphasis: var(\n --diffs-bg-addition-emphasis-override,\n light-dark(\n rgb(from var(--diffs-addition-base) r g b / 0.15),\n rgb(from var(--diffs-addition-base) r g b / 0.2)\n )\n );\n\n --diffs-selection-base: var(--diffs-modified-base);\n --diffs-selection-number-fg: light-dark(\n color-mix(in lab, var(--diffs-selection-base) 65%, var(--diffs-mixer)),\n color-mix(in lab, var(--diffs-selection-base) 75%, var(--diffs-mixer))\n );\n --diffs-bg-selection: var(\n --diffs-bg-selection-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg) 82%, var(--diffs-selection-base)),\n color-mix(in lab, var(--diffs-bg) 75%, var(--diffs-selection-base))\n )\n );\n --diffs-bg-selection-number: var(\n --diffs-bg-selection-number-override,\n light-dark(\n color-mix(in lab, var(--diffs-bg) 75%, var(--diffs-selection-base)),\n color-mix(in lab, var(--diffs-bg) 60%, var(--diffs-selection-base))\n )\n );\n\n background-color: var(--diffs-bg);\n color: var(--diffs-fg);\n }\n\n /* NOTE(mdo): Some semantic HTML elements (e.g. `pre`, `code`) have default\n * user-agent styles. These must be overridden to use our custom styles. */\n pre,\n code,\n [data-error-wrapper] {\n isolation: isolate;\n margin: 0;\n padding: 0;\n display: block;\n outline: none;\n font-family: var(--diffs-font-family, var(--diffs-font-fallback));\n }\n\n pre,\n code {\n background-color: var(--diffs-bg);\n }\n\n code {\n contain: content;\n }\n\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n\n [data-icon-sprite] {\n display: none;\n }\n\n /* NOTE(mdo): Headers and separators are within pre/code, so we need to reset\n * their font-family explicitly. */\n [data-diffs-header],\n [data-separator] {\n font-family: var(\n --diffs-header-font-family,\n var(--diffs-header-font-fallback)\n );\n }\n\n [data-file-info] {\n padding: 10px;\n font-weight: 700;\n color: var(--fg);\n /* NOTE(amadeus): we cannot use 'in oklch' because current versions of cursor\n * and vscode use an older build of chrome that appears to have a bug with\n * color-mix and 'in oklch', so use 'in lab' instead */\n background-color: color-mix(in lab, var(--bg) 98%, var(--fg));\n border-block: 1px solid color-mix(in lab, var(--bg) 95%, var(--fg));\n }\n\n [data-diff],\n [data-file] {\n /* This feels a bit crazy to me... so I need to think about it a bit more... */\n --diffs-grid-number-column-width: minmax(min-content, max-content);\n --diffs-code-grid: var(--diffs-grid-number-column-width) 1fr;\n\n &[data-dehydrated] {\n --diffs-code-grid: var(--diffs-grid-number-column-width) minmax(0, 1fr);\n }\n\n &:hover [data-code]::-webkit-scrollbar-thumb {\n background-color: var(--diffs-bg-context);\n }\n }\n\n [data-line] span {\n color: light-dark(\n var(--diffs-token-light, var(--diffs-light)),\n var(--diffs-token-dark, var(--diffs-dark))\n );\n background-color: light-dark(\n var(--diffs-token-light-bg, inherit),\n var(--diffs-token-dark-bg, inherit)\n );\n font-weight: light-dark(\n var(--diffs-token-light-font-weight, inherit),\n var(--diffs-token-dark-font-weight, inherit)\n );\n font-style: light-dark(\n var(--diffs-token-light-font-style, inherit),\n var(--diffs-token-dark-font-style, inherit)\n );\n -webkit-text-decoration: light-dark(\n var(--diffs-token-light-text-decoration, inherit),\n var(--diffs-token-dark-text-decoration, inherit)\n );\n text-decoration: light-dark(\n var(--diffs-token-light-text-decoration, inherit),\n var(--diffs-token-dark-text-decoration, inherit)\n );\n }\n\n [data-line],\n [data-gutter-buffer],\n [data-line-annotation],\n [data-no-newline] {\n color: var(--diffs-fg);\n background-color: var(--diffs-line-bg, var(--diffs-bg));\n }\n\n [data-no-newline] {\n -webkit-user-select: none;\n user-select: none;\n\n span {\n opacity: 0.6;\n }\n }\n\n [data-diff-type='split'][data-overflow='scroll'] {\n display: grid;\n grid-template-columns: 1fr 1fr;\n\n [data-additions] {\n border-left: 1px solid var(--diffs-bg);\n }\n\n [data-deletions] {\n border-right: 1px solid var(--diffs-bg);\n }\n }\n\n [data-code] {\n display: grid;\n grid-auto-flow: dense;\n grid-template-columns: var(--diffs-code-grid);\n overflow: scroll clip;\n overscroll-behavior-x: none;\n tab-size: var(--diffs-tab-size, 2);\n align-self: flex-start;\n padding-top: var(--diffs-gap-block, var(--diffs-gap-fallback));\n padding-bottom: max(\n 0px,\n calc(var(--diffs-gap-block, var(--diffs-gap-fallback)) - 6px)\n );\n }\n\n [data-container-size] {\n container-type: inline-size;\n }\n\n [data-code]::-webkit-scrollbar {\n width: 0;\n height: 6px;\n }\n\n [data-code]::-webkit-scrollbar-track {\n background: transparent;\n }\n\n [data-code]::-webkit-scrollbar-thumb {\n background-color: transparent;\n border: 1px solid transparent;\n background-clip: content-box;\n border-radius: 3px;\n }\n\n [data-code]::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n\n /*\n * If we apply these rules globally it will mean that webkit will opt into the\n * standards compliant version of custom css scrollbars, which we do not want\n * because the custom stuff will look better\n */\n @supports (-moz-appearance: none) {\n [data-code] {\n scrollbar-width: thin;\n scrollbar-color: var(--diffs-bg-context) transparent;\n padding-bottom: var(--diffs-gap-block, var(--diffs-gap-fallback));\n }\n }\n\n [data-diffs-header] ~ [data-diff],\n [data-diffs-header] ~ [data-file] {\n [data-code],\n &[data-overflow='wrap'] {\n padding-top: 0;\n }\n }\n\n [data-gutter] {\n display: grid;\n grid-template-rows: subgrid;\n grid-template-columns: subgrid;\n grid-column: 1;\n z-index: 3;\n position: relative;\n background-color: var(--diffs-bg);\n\n [data-gutter-buffer],\n [data-column-number] {\n border-right: var(--diffs-gap-style, 2px solid var(--diffs-bg));\n }\n }\n\n [data-content] {\n display: grid;\n grid-template-rows: subgrid;\n grid-template-columns: subgrid;\n grid-column: 2;\n min-width: 0;\n }\n\n [data-diff-type='split'][data-overflow='wrap'] {\n display: grid;\n grid-auto-flow: dense;\n grid-template-columns: repeat(2, var(--diffs-code-grid));\n padding-block: var(--diffs-gap-block, var(--diffs-gap-fallback));\n\n [data-deletions] {\n display: contents;\n\n [data-gutter] {\n grid-column: 1;\n }\n\n [data-content] {\n grid-column: 2;\n border-right: 1px solid var(--diffs-bg);\n }\n }\n\n [data-additions] {\n display: contents;\n\n [data-gutter] {\n grid-column: 3;\n border-left: 1px solid var(--diffs-bg);\n }\n\n [data-content] {\n grid-column: 4;\n }\n }\n }\n\n [data-overflow='scroll'] [data-gutter] {\n position: sticky;\n left: 0;\n }\n\n [data-line-annotation][data-selected-line] {\n background-color: unset;\n\n &::before {\n content: '';\n /* FIXME(amadeus): This needs to be audited ... */\n position: sticky;\n top: 0;\n left: 0;\n display: block;\n border-right: var(--diffs-gap-style, 1px solid var(--diffs-bg));\n background-color: var(--diffs-bg-selection-number);\n }\n\n [data-annotation-content] {\n background-color: var(--diffs-bg-selection);\n }\n }\n\n [data-interactive-lines] [data-line] {\n cursor: pointer;\n }\n\n [data-content-buffer],\n [data-gutter-buffer] {\n position: relative;\n -webkit-user-select: none;\n user-select: none;\n min-height: 1lh;\n }\n\n [data-gutter-buffer='annotation'] {\n min-height: 0;\n }\n\n [data-gutter-buffer='buffer'] {\n background-size: 8px 8px;\n background-position: 0 0;\n background-origin: border-box;\n background-color: var(--diffs-bg);\n /* This is incredibley expensive... */\n background-image: repeating-linear-gradient(\n -45deg,\n transparent,\n transparent calc(3px * 1.414),\n rgb(from var(--diffs-bg-buffer) r g b / 0.8) calc(3px * 1.414),\n rgb(from var(--diffs-bg-buffer) r g b / 0.8) calc(4px * 1.414)\n );\n }\n\n [data-content-buffer] {\n grid-column: 1;\n /* We multiply by 1.414 (√2) to better approximate the diagonal repeat distance */\n background-size: 8px 8px;\n background-position: 5px 0;\n background-origin: border-box;\n background-color: var(--diffs-bg);\n /* This is incredibley expensive... */\n background-image: repeating-linear-gradient(\n -45deg,\n transparent,\n transparent calc(3px * 1.414),\n var(--diffs-bg-buffer) calc(3px * 1.414),\n var(--diffs-bg-buffer) calc(4px * 1.414)\n );\n }\n\n [data-separator] {\n box-sizing: content-box;\n background-color: var(--diffs-bg);\n }\n\n [data-separator='simple'] {\n min-height: 4px;\n }\n\n [data-separator='line-info'],\n [data-separator='line-info-basic'],\n [data-separator='metadata'],\n [data-separator='simple'] {\n background-color: var(--diffs-bg-separator);\n }\n\n [data-separator='line-info'],\n [data-separator='line-info-basic'],\n [data-separator='metadata'] {\n height: 32px;\n position: relative;\n }\n\n [data-separator-wrapper] {\n -webkit-user-select: none;\n user-select: none;\n fill: currentColor;\n position: absolute;\n inset-inline: 0;\n display: flex;\n align-items: center;\n background-color: var(--diffs-bg);\n height: 100%;\n }\n\n [data-content] [data-separator-wrapper] {\n display: none;\n }\n\n [data-separator='metadata'] [data-separator-wrapper] {\n inset-inline: 100% auto;\n padding-inline: 1ch;\n height: 100%;\n background-color: var(--diffs-bg-separator);\n color: var(--diffs-fg-number);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: min-content;\n }\n\n [data-separator='line-info'] {\n margin-block: var(--diffs-gap-block, var(--diffs-gap-fallback));\n }\n\n [data-separator='line-info-basic'],\n [data-separator='metadata'] {\n margin-block: 0;\n }\n\n [data-separator='line-info'][data-separator-first] {\n margin-top: 0;\n }\n\n [data-separator='line-info'][data-separator-last] {\n margin-bottom: 0;\n }\n\n [data-expand-index] [data-separator-wrapper] {\n display: grid;\n grid-template-columns: 32px auto;\n }\n\n [data-expand-index] [data-separator-wrapper][data-separator-multi-button] {\n grid-template-columns: 32px 32px auto;\n }\n\n [data-expand-button],\n [data-separator-content] {\n display: flex;\n flex: 0 0 auto;\n align-items: center;\n background-color: var(--diffs-bg-separator);\n }\n\n [data-expand-index] [data-separator-content]:hover {\n text-decoration: underline;\n cursor: pointer;\n }\n\n [data-expand-button] {\n justify-content: center;\n flex-shrink: 0;\n cursor: pointer;\n min-width: 32px;\n align-self: stretch;\n color: var(--diffs-fg-number);\n border-right: 2px solid var(--diffs-bg);\n\n &:hover {\n color: var(--diffs-fg);\n }\n\n &[data-expand-all-button] {\n display: none;\n }\n }\n\n [data-expand-down] [data-icon] {\n transform: scaleY(-1);\n }\n\n [data-separator-content] {\n flex: 1 1 auto;\n padding: 0 1ch;\n height: 100%;\n color: var(--diffs-fg-number);\n\n overflow: hidden;\n justify-content: flex-start;\n }\n\n [data-separator='line-info'],\n [data-separator='line-info-basic'] {\n [data-separator-content] {\n height: 100%;\n -webkit-user-select: none;\n user-select: none;\n overflow: clip;\n }\n }\n\n @supports (width: 1cqi) {\n [data-unified] {\n [data-separator='line-info'] [data-separator-wrapper] {\n padding-inline: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n width: 100cqi;\n\n [data-separator-content] {\n border-radius: 6px;\n }\n }\n\n [data-separator='line-info'][data-expand-index]\n [data-separator-wrapper]\n [data-separator-content] {\n border-top-left-radius: unset;\n border-bottom-left-radius: unset;\n }\n }\n\n [data-gutter] {\n [data-separator='line-info'] [data-separator-wrapper] {\n padding-left: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n }\n\n [data-separator='line-info'] [data-separator-content] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n [data-separator='line-info'][data-expand-index] [data-separator-content] {\n border-top-left-radius: unset;\n border-bottom-left-radius: unset;\n }\n }\n\n [data-additions] {\n [data-content] [data-separator='line-info'] {\n background-color: var(--diffs-bg);\n\n [data-separator-wrapper] {\n display: none;\n }\n }\n\n [data-gutter] [data-separator='line-info'] [data-separator-wrapper] {\n display: block;\n height: 100%;\n background-color: var(--diffs-bg-separator);\n border-top-right-radius: 6px;\n border-bottom-right-radius: 6px;\n\n [data-separator-content],\n [data-expand-button] {\n display: none;\n }\n }\n }\n\n [data-overflow='scroll']\n [data-additions]\n [data-gutter]\n [data-separator='line-info']\n [data-separator-wrapper] {\n width: calc(100cqi - var(--diffs-gap-inline, var(--diffs-gap-fallback)));\n }\n\n [data-overflow='wrap']\n [data-additions]\n [data-content]\n [data-separator='line-info']\n [data-separator-wrapper] {\n background-color: var(--diffs-bg-separator);\n display: block;\n height: 100%;\n margin-right: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n border-top-right-radius: 6px;\n border-bottom-right-radius: 6px;\n\n [data-separator-content],\n [data-expand-button] {\n display: none;\n }\n }\n\n [data-separator='line-info'] [data-separator-wrapper] {\n [data-expand-both],\n [data-expand-down],\n [data-expand-up] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n }\n\n @media (pointer: fine) {\n [data-separator='line-info'] [data-separator-wrapper] {\n &[data-separator-multi-button] {\n [data-expand-up] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: unset;\n }\n\n [data-expand-down] {\n border-bottom-left-radius: 6px;\n border-top-left-radius: unset;\n }\n }\n }\n }\n }\n\n @media (pointer: coarse) {\n [data-separator='line-info-basic']\n [data-separator-wrapper][data-separator-multi-button] {\n grid-template-columns: 34px 34px auto;\n\n [data-separator-content] {\n grid-column: unset;\n grid-row: unset;\n }\n }\n\n @supports (width: 1cqi) {\n [data-separator='line-info'] [data-separator-wrapper] {\n [data-expand-both],\n [data-expand-down],\n [data-expand-up] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n &[data-separator-multi-button] {\n [data-expand-up] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n [data-expand-down] {\n border-bottom-left-radius: unset;\n border-top-left-radius: unset;\n }\n }\n }\n }\n }\n\n @media (pointer: fine) {\n [data-separator-wrapper][data-separator-multi-button] {\n display: grid;\n grid-template-rows: 50% 50%;\n\n [data-separator-content] {\n grid-column: 2;\n grid-row: 1 / -1;\n min-width: min-content;\n }\n\n [data-expand-button] {\n grid-column: 1;\n }\n }\n\n [data-separator='line-info'] [data-separator-wrapper],\n [data-separator='line-info']\n [data-separator-wrapper][data-separator-multi-button] {\n grid-template-columns: 34px auto;\n }\n\n [data-separator='line-info-basic'][data-expand-index]\n [data-separator-wrapper] {\n grid-template-columns: 100% auto;\n }\n\n [data-separator='line-info'],\n [data-separator='line-info-basic'] {\n [data-separator-multi-button] {\n [data-expand-up] {\n border-bottom: 1px solid var(--diffs-bg);\n border-right: 2px solid var(--diffs-bg);\n }\n [data-expand-down] {\n border-top: 1px solid var(--diffs-bg);\n border-right: 2px solid var(--diffs-bg);\n }\n }\n }\n }\n\n [data-additions] [data-gutter] [data-separator-wrapper],\n [data-additions] [data-separator='line-info-basic'] [data-separator-wrapper],\n [data-content] [data-separator-wrapper] {\n display: none;\n }\n\n [data-line-annotation],\n [data-gutter-buffer='annotation'] {\n --diffs-line-bg: var(--diffs-bg-context);\n }\n\n [data-merge-conflict-actions],\n [data-gutter-buffer='merge-conflict-action'] {\n --diffs-line-bg: var(--diffs-bg-context);\n }\n\n [data-has-merge-conflict] [data-line-annotation],\n [data-has-merge-conflict] [data-gutter-buffer='annotation'] {\n --diffs-line-bg: var(--diffs-bg);\n }\n\n [data-has-merge-conflict] [data-gutter-buffer='merge-conflict-action'] {\n --diffs-line-bg: var(--diffs-bg);\n }\n\n [data-line-annotation] {\n min-height: var(--diffs-annotation-min-height, 0);\n z-index: 2;\n }\n\n [data-merge-conflict-actions] {\n z-index: 2;\n }\n\n [data-separator='custom'] {\n display: grid;\n grid-template-columns: subgrid;\n }\n\n [data-line],\n [data-column-number],\n [data-no-newline] {\n position: relative;\n padding-inline: 1ch;\n }\n\n [data-indicators='classic'] [data-line] {\n padding-inline-start: 2ch;\n }\n\n [data-indicators='classic'] {\n [data-line-type='change-addition'],\n [data-line-type='change-deletion'] {\n &[data-no-newline],\n &[data-line] {\n &::before {\n display: inline-block;\n width: 1ch;\n height: 1lh;\n position: absolute;\n top: 0;\n left: 0;\n -webkit-user-select: none;\n user-select: none;\n }\n }\n }\n\n [data-line-type='change-addition'] {\n &[data-line],\n &[data-no-newline] {\n &::before {\n content: '+';\n color: var(--diffs-addition-base);\n }\n }\n }\n\n [data-line-type='change-deletion'] {\n &[data-line],\n &[data-no-newline] {\n &::before {\n content: '-';\n color: var(--diffs-deletion-base);\n }\n }\n }\n }\n\n [data-indicators='bars'] {\n [data-line-type='change-deletion'],\n [data-line-type='change-addition'] {\n &[data-column-number] {\n &::before {\n content: '';\n display: block;\n width: 4px;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n -webkit-user-select: none;\n user-select: none;\n contain: strict;\n }\n }\n }\n\n [data-line-type='change-deletion'] {\n &[data-column-number] {\n &::before {\n background-image: linear-gradient(\n 0deg,\n var(--diffs-bg-deletion) 50%,\n var(--diffs-deletion-base) 50%\n );\n background-repeat: repeat;\n background-size: 2px 2px;\n background-size: calc(1lh / round(1lh / 2px))\n calc(1lh / round(1lh / 2px));\n }\n }\n }\n\n [data-line-type='change-addition'] {\n &[data-column-number] {\n &::before {\n background-color: var(--diffs-addition-base);\n }\n }\n }\n }\n\n [data-overflow='wrap'] {\n [data-line],\n [data-annotation-content] {\n white-space: pre-wrap;\n word-break: break-word;\n }\n }\n\n [data-overflow='scroll'] [data-line] {\n white-space: pre;\n min-height: 1lh;\n }\n\n [data-column-number] {\n box-sizing: content-box;\n text-align: right;\n -webkit-user-select: none;\n user-select: none;\n background-color: var(--diffs-bg);\n color: var(--diffs-fg-number);\n padding-left: 2ch;\n }\n\n [data-line-number-content] {\n display: inline-block;\n min-width: var(\n --diffs-min-number-column-width,\n var(--diffs-min-number-column-width-default, 3ch)\n );\n }\n\n [data-disable-line-numbers] {\n [data-column-number] {\n min-width: 4px;\n padding: 0;\n }\n\n [data-line-number-content] {\n display: none;\n }\n\n [data-gutter-utility-slot] {\n right: unset;\n left: 0;\n justify-content: flex-start;\n }\n\n &[data-indicators='bars'] [data-gutter-utility-slot] {\n /* Using 5px here because theres a 1px separator after the bar */\n left: 5px;\n }\n }\n\n [data-file][data-disable-line-numbers] {\n [data-gutter-buffer],\n [data-column-number] {\n min-width: 0;\n border-right: 0;\n }\n }\n\n [data-interactive-line-numbers] [data-column-number] {\n cursor: pointer;\n }\n\n [data-diff-span] {\n border-radius: 3px;\n -webkit-box-decoration-break: clone;\n box-decoration-break: clone;\n }\n\n [data-line-type='change-addition'] {\n &[data-column-number] {\n color: var(\n --diffs-fg-number-addition-override,\n var(--diffs-addition-base)\n );\n }\n\n [data-diff-span] {\n background-color: var(--diffs-bg-addition-emphasis);\n }\n }\n\n [data-line-type='change-deletion'] {\n &[data-column-number] {\n color: var(\n --diffs-fg-number-deletion-override,\n var(--diffs-deletion-base)\n );\n }\n\n [data-diff-span] {\n background-color: var(--diffs-bg-deletion-emphasis);\n }\n }\n\n [data-background] [data-line-type='change-addition'] {\n --diffs-line-bg: var(--diffs-bg-addition);\n\n &[data-column-number] {\n background-color: var(--diffs-bg-addition-number);\n }\n }\n\n [data-background] [data-line-type='change-deletion'] {\n --diffs-line-bg: var(--diffs-bg-deletion);\n\n &[data-column-number] {\n background-color: var(--diffs-bg-deletion-number);\n }\n }\n\n [data-merge-conflict='marker-start'],\n [data-merge-conflict='marker-base'],\n [data-merge-conflict='marker-separator'],\n [data-merge-conflict='marker-end'] {\n padding-left: 1ch;\n color: var(--diffs-fg);\n }\n\n [data-merge-conflict='marker-start'],\n [data-merge-conflict='marker-end'] {\n display: flex;\n align-items: center;\n\n &::after {\n color: var(--diffs-fg-conflict-marker);\n font-style: normal;\n font-size: 0.75rem;\n line-height: 1.25rem;\n padding-left: 1ch;\n font-family: var(\n --diffs-header-font-family,\n var(--diffs-header-font-fallback)\n );\n }\n }\n\n [data-merge-conflict='marker-start']::after {\n content: '(Current Change)';\n }\n\n [data-merge-conflict='marker-end']::after {\n content: '(Incoming Change)';\n }\n\n [data-merge-conflict='marker-base'],\n [data-merge-conflict='marker-end'] {\n &[data-line],\n &[data-no-newline] {\n background-color: var(--diffs-bg-conflict-marker);\n }\n\n &[data-column-number] {\n background-color: var(--diffs-bg-conflict-marker-number);\n color: var(--diffs-fg-conflict-marker);\n\n [data-line-number-content] {\n color: var(--diffs-fg-conflict-marker);\n }\n }\n }\n\n [data-merge-conflict='current'] {\n &[data-line],\n &[data-no-newline] {\n background-color: var(--conflict-bg-current);\n }\n\n &[data-column-number] {\n background-color: var(--conflict-bg-current-number);\n color: var(--diffs-addition-base);\n }\n }\n\n [data-gutter-buffer='merge-conflict-marker-start'],\n [data-merge-conflict='marker-start'] {\n background-color: var(--conflict-bg-current-header);\n }\n\n [data-gutter-buffer='merge-conflict-marker-end'],\n [data-merge-conflict='marker-end'] {\n background-color: var(--conflict-bg-incoming-header);\n }\n\n [data-merge-conflict='marker-separator'] {\n &[data-line],\n &[data-no-newline] {\n background-color: var(--diffs-bg);\n }\n\n &[data-column-number] {\n background-color: var(--diffs-bg);\n }\n }\n\n [data-merge-conflict='base'] {\n &[data-line],\n &[data-no-newline] {\n background-color: var(--diffs-bg-conflict-base);\n }\n\n &[data-column-number] {\n background-color: var(--diffs-bg-conflict-base-number);\n color: var(--diffs-modified-base);\n }\n }\n\n [data-merge-conflict='incoming'] {\n &[data-line],\n &[data-no-newline] {\n background-color: var(--conflict-bg-incoming);\n }\n\n &[data-column-number] {\n background-color: var(--conflict-bg-incoming-number);\n color: var(--diffs-modified-base);\n }\n }\n\n @media (pointer: fine) {\n [data-column-number],\n [data-line] {\n &[data-hovered] {\n background-color: var(--diffs-bg-hover);\n }\n }\n\n [data-background] {\n [data-column-number],\n [data-line] {\n &[data-hovered] {\n &[data-line-type='change-deletion'] {\n background-color: var(--diffs-bg-deletion-hover);\n }\n\n &[data-line-type='change-addition'] {\n background-color: var(--diffs-bg-addition-hover);\n }\n }\n }\n }\n }\n\n [data-diffs-header='default'] {\n position: relative;\n background-color: var(--diffs-bg);\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n gap: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n min-height: calc(\n 1lh + (var(--diffs-gap-block, var(--diffs-gap-fallback)) * 3)\n );\n padding-inline: 16px;\n top: 0;\n z-index: 2;\n }\n\n [data-header-content] {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n min-width: 0;\n white-space: nowrap;\n }\n\n [data-header-content] [data-prev-name],\n [data-header-content] [data-title] {\n direction: rtl;\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 0;\n white-space: nowrap;\n }\n\n [data-prev-name] {\n opacity: 0.7;\n }\n\n [data-rename-icon] {\n fill: currentColor;\n flex-shrink: 0;\n flex-grow: 0;\n }\n\n [data-diffs-header='default'] [data-metadata] {\n display: flex;\n align-items: center;\n gap: 1ch;\n white-space: nowrap;\n }\n\n [data-diffs-header='default'] [data-additions-count] {\n font-family: var(--diffs-font-family, var(--diffs-font-fallback));\n color: var(--diffs-addition-base);\n }\n\n [data-diffs-header='default'] [data-deletions-count] {\n font-family: var(--diffs-font-family, var(--diffs-font-fallback));\n color: var(--diffs-deletion-base);\n }\n\n [data-annotation-content] {\n position: relative;\n display: flow-root;\n align-self: flex-start;\n z-index: 2;\n min-width: 0;\n isolation: isolate;\n }\n\n [data-merge-conflict-actions-content] {\n display: flex;\n align-items: center;\n gap: 0.25rem;\n padding-inline: 0.5rem;\n min-height: 1.75rem;\n font-family: var(\n --diffs-header-font-family,\n var(--diffs-header-font-fallback)\n );\n font-size: 0.75rem;\n line-height: 1.2;\n color: var(--diffs-fg);\n }\n\n [data-merge-conflict-action] {\n appearance: none;\n border: 0;\n background: transparent;\n color: var(--diffs-fg-number);\n font: inherit;\n font-style: normal;\n cursor: pointer;\n padding: 0;\n }\n\n [data-merge-conflict-action]:hover {\n color: var(--diffs-fg);\n }\n\n [data-merge-conflict-action='current']:hover {\n color: var(--diffs-addition-base);\n }\n\n [data-merge-conflict-action='incoming']:hover {\n color: var(--diffs-modified-base);\n }\n\n [data-merge-conflict-action-separator] {\n color: var(--diffs-fg-number);\n opacity: 0.6;\n -webkit-user-select: none;\n user-select: none;\n }\n\n /* Sticky positioning has a composite costs, so we should _only_ pay it if we\n * need to */\n [data-overflow='scroll'] [data-annotation-content] {\n position: sticky;\n width: var(--diffs-column-content-width, auto);\n left: var(--diffs-column-number-width, 0);\n }\n\n [data-overflow='scroll'] [data-merge-conflict-actions-content] {\n position: sticky;\n width: var(--diffs-column-content-width, auto);\n left: var(--diffs-column-number-width, 0);\n }\n\n /* Undo some of the stuff that the 'pre' tag does */\n [data-annotation-slot] {\n text-wrap-mode: wrap;\n word-break: normal;\n white-space-collapse: collapse;\n }\n\n [data-change-icon] {\n fill: currentColor;\n flex-shrink: 0;\n }\n\n [data-change-icon='change'],\n [data-change-icon='rename-pure'],\n [data-change-icon='rename-changed'] {\n color: var(--diffs-modified-base);\n }\n\n [data-change-icon='new'] {\n color: var(--diffs-addition-base);\n }\n\n [data-change-icon='deleted'] {\n color: var(--diffs-deletion-base);\n }\n\n [data-change-icon='file'] {\n opacity: 0.6;\n }\n\n /* Line selection highlighting */\n [data-selected-line] {\n &[data-gutter-buffer='annotation'],\n &[data-column-number] {\n color: var(--diffs-selection-number-fg);\n background-color: var(--diffs-bg-selection-number);\n }\n\n &[data-line] {\n background-color: var(--diffs-bg-selection);\n }\n }\n\n [data-line-type='change-addition'],\n [data-line-type='change-deletion'] {\n &[data-selected-line] {\n &[data-line],\n &[data-line][data-hovered] {\n background-color: light-dark(\n color-mix(\n in lab,\n var(--diffs-line-bg, var(--diffs-bg)) 82%,\n var(--diffs-selection-base)\n ),\n color-mix(\n in lab,\n var(--diffs-line-bg, var(--diffs-bg)) 75%,\n var(--diffs-selection-base)\n )\n );\n }\n\n &[data-column-number],\n &[data-column-number][data-hovered] {\n color: var(--diffs-selection-number-fg);\n background-color: light-dark(\n color-mix(\n in lab,\n var(--diffs-line-bg, var(--diffs-bg)) 75%,\n var(--diffs-selection-base)\n ),\n color-mix(\n in lab,\n var(--diffs-line-bg, var(--diffs-bg)) 60%,\n var(--diffs-selection-base)\n )\n );\n }\n }\n }\n\n [data-gutter-utility-slot] {\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n display: flex;\n justify-content: flex-end;\n }\n\n [data-unmodified-lines] {\n display: block;\n overflow: hidden;\n min-width: 0;\n text-overflow: ellipsis;\n white-space: nowrap;\n flex: 0 1 auto;\n }\n\n [data-error-wrapper] {\n overflow: auto;\n padding: var(--diffs-gap-block, var(--diffs-gap-fallback))\n var(--diffs-gap-inline, var(--diffs-gap-fallback));\n max-height: 400px;\n scrollbar-width: none;\n\n [data-error-message] {\n font-weight: bold;\n font-size: 18px;\n color: var(--diffs-deletion-base);\n }\n\n [data-error-stack] {\n color: var(--diffs-fg-number);\n }\n }\n\n [data-placeholder] {\n contain: strict;\n }\n\n [data-utility-button] {\n display: flex;\n align-items: center;\n justify-content: center;\n border: none;\n appearance: none;\n width: 1lh;\n height: 1lh;\n margin-right: calc((1lh - 1ch) * -1);\n padding: 0;\n cursor: pointer;\n font-size: var(--diffs-font-size, 13px);\n line-height: var(--diffs-line-height, 20px);\n border-radius: 4px;\n background-color: var(--diffs-modified-base);\n color: var(--diffs-bg);\n fill: currentColor;\n position: relative;\n z-index: 4;\n }\n}\n"])},10787,e=>{"use strict";var n=e.i(91260);let t="@layer base, theme, rendered, unsafe;";e.s(["wrapCoreCSS",0,function(e){return`${t}
2
+ ${n.default}
3
+ @layer theme {
4
+ ${e}
5
+ }`},"wrapThemeCSS",0,function(e,n="system"){return`${t}
6
+ @layer rendered {
7
+ :host {${"system"===n?"":`
8
+ color-scheme: ${n};`}
9
+ ${e}
10
+ }
11
+ }`},"wrapUnsafeCSS",0,function(e){return`${t}
12
+ @layer unsafe {
13
+ ${e}
14
+ }`}])},90578,e=>{"use strict";let n=Object.freeze({fromStart:0,fromEnd:0});e.s(["ALTERNATE_FILE_NAMES_GIT",0,/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,"COMMIT_METADATA_SPLIT",0,/(?=^From [a-f0-9]+ .+$)/m,"CORE_CSS_ATTRIBUTE",0,"data-core-css","CUSTOM_HEADER_SLOT_ID",0,"header-custom","DEFAULT_COLLAPSED_CONTEXT_THRESHOLD",0,1,"DEFAULT_EXPANDED_REGION",0,n,"DEFAULT_RENDER_RANGE",0,{startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},"DEFAULT_THEMES",0,{dark:"pierre-dark",light:"pierre-light"},"DIFFS_TAG_NAME",0,"diffs-container","EMPTY_RENDER_RANGE",0,{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},"FILENAME_HEADER_REGEX",0,/^(---|\+\+\+)\s+([^\t\r\n]+)/,"FILENAME_HEADER_REGEX_GIT",0,/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,"FILE_CONTEXT_BLOB",0,/(?=^@@ )/gm,"GIT_DIFF_FILE_BREAK_REGEX",0,/(?=^diff --git)/gm,"HEADER_METADATA_SLOT_ID",0,"header-metadata","HEADER_PREFIX_SLOT_ID",0,"header-prefix","HUNK_HEADER",0,/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m,"INDEX_LINE_METADATA",0,/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,"SPLIT_WITH_NEWLINES",0,/(?<=\n)/,"THEME_CSS_ATTRIBUTE",0,"data-theme-css","UNIFIED_DIFF_FILE_BREAK_REGEX",0,/(?=^---\s+\S)/gm,"UNSAFE_CSS_ATTRIBUTE",0,"data-unsafe-css"])},52205,e=>{"use strict";function n(e){return{type:"text",value:e}}function t({tagName:e,children:n=[],properties:i={}}){return{type:"element",tagName:e,properties:i,children:n}}e.s(["createGutterGap",0,function(e,n,i){return t({tagName:"div",properties:{"data-gutter-buffer":n,"data-buffer-size":i,"data-line-type":"annotation"===n?void 0:e,style:"annotation"===n?`grid-row: span ${i};`:`grid-row: span ${i};min-height:calc(${i} * 1lh);`}})},"createGutterItem",0,function(e,i,r,o={}){return t({tagName:"div",properties:{"data-line-type":e,"data-column-number":i,"data-line-index":r,...o},children:null!=i?[t({tagName:"span",properties:{"data-line-number-content":""},children:[n(`${i}`)]})]:void 0})},"createGutterWrapper",0,function(e){return t({tagName:"div",properties:{"data-gutter":""},children:e})},"createHastElement",0,t,"createIconElement",0,function({name:e,width:n=16,height:i=16,properties:r}){return t({tagName:"svg",properties:{width:n,height:i,viewBox:"0 0 16 16",...r},children:[t({tagName:"use",properties:{href:`#${e.replace(/^#/,"")}`}})]})},"createTextNodeElement",0,n,"findCodeElement",0,function(e){let n=e.children[0];for(;null!=n;){if("element"===n.type&&"code"===n.tagName)return n;n="children"in n?n.children[0]:null}}])},26705,e=>{"use strict";let n=new Map,t=new Map,i=new Map,r=new Set;e.s(["AttachedLanguages",0,r,"RegisteredCustomLanguages",0,i,"ResolvedLanguages",0,n,"ResolvingLanguages",0,t])},82430,e=>{"use strict";var n=e.i(26705);e.s(["areLanguagesAttached",0,function(e){for(let t of Array.isArray(e)?e:[e])if(!n.AttachedLanguages.has(t))return!1;return!0}])},91710,e=>{"use strict";var n=e.i(26705);e.s(["attachResolvedLanguages",0,function(e,t){for(let i of e=Array.isArray(e)?e:[e]){if(n.AttachedLanguages.has(i.name))continue;let e=n.ResolvedLanguages.get(i.name);null==e&&(e=i,n.ResolvedLanguages.set(i.name,e)),n.AttachedLanguages.add(e.name),t.loadLanguageSync(e.data)}}])},42399,e=>{"use strict";var n=e.i(26705);e.s(["cleanUpResolvedLanguages",0,function(){n.ResolvedLanguages.clear(),n.AttachedLanguages.clear()}])},24110,e=>{"use strict";e.s(["isWorkerContext",0,function(){return"u">typeof WorkerGlobalScope&&"u">typeof self&&self instanceof WorkerGlobalScope}])},21958,e=>e.a(async(n,t)=>{try{var i=e.i(26705),r=e.i(24110),o=e.i(5104),a=n([o]);async function l(e){if((0,r.isWorkerContext)())throw Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let n=i.ResolvingLanguages.get(e);if(null!=n)return n;try{let n=i.RegisteredCustomLanguages.get(e);if(null==n&&Object.prototype.hasOwnProperty.call(o.bundledLanguages,e)&&(n=o.bundledLanguages[e]),null==n)throw Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);let t=n().then(({default:n})=>{let t={name:e,data:n};return i.ResolvedLanguages.has(e)||i.ResolvedLanguages.set(e,t),t});return i.ResolvingLanguages.set(e,t),await t}finally{i.ResolvingLanguages.delete(e)}}[o]=a.then?(await a)():a,e.s(["resolveLanguage",0,l]),t()}catch(e){t(e)}},!1),42751,e=>e.a(async(n,t)=>{try{var i=e.i(26705),r=e.i(21958),o=n([r]);[r]=o.then?(await o)():o,e.s(["getResolvedOrResolveLanguage",0,function(e){return i.ResolvedLanguages.get(e)??(0,r.resolveLanguage)(e)}]),t()}catch(e){t(e)}},!1),89065,e=>{"use strict";let n=new Map,t=new Map,i=new Map,r=new Set;e.s(["AttachedThemes",0,r,"RegisteredCustomThemes",0,i,"ResolvedThemes",0,n,"ResolvingThemes",0,t])},5716,e=>{"use strict";var n=e.i(89065);e.s(["attachResolvedThemes",0,function(e,t){for(let i of e=Array.isArray(e)?e:[e]){let e;if("string"==typeof i){if(null==(e=n.ResolvedThemes.get(i)))throw Error(`loadResolvedThemes: ${i} is not resolved, you must resolve it before calling loadResolvedThemes`)}else e=i,i=i.name,n.ResolvedThemes.has(i)||n.ResolvedThemes.set(i,e);n.AttachedThemes.has(i)||(n.AttachedThemes.add(i),t.loadThemeSync(e))}}])},2479,e=>{"use strict";var n=e.i(89065);e.s(["cleanUpResolvedThemes",0,function(){n.ResolvedThemes.clear(),n.AttachedThemes.clear()}])},34096,e=>e.a(async(n,t)=>{try{var i=e.i(24110),r=e.i(89065),o=e.i(5104),a=n([o]);async function l(e){if((0,i.isWorkerContext)())throw Error(`resolveTheme("${e}") cannot be called from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let n=r.ResolvingThemes.get(e);if(null!=n)return n;try{let n=r.RegisteredCustomThemes.get(e)??o.bundledThemes[e];if(null==n)throw Error(`resolveTheme: No valid loader for ${e}`);let t=n().then(n=>{var t,i;let a;return t=e,i="default"in n?n.default:n,a=r.ResolvedThemes.get(t),null!=a?a:(i=(0,o.normalizeTheme)(i),r.ResolvedThemes.set(t,i),i)});r.ResolvingThemes.set(e,t);let i=await t;if(i.name!==e)throw Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${i.name}`);return r.ResolvedThemes.set(i.name,i),i}finally{r.ResolvingThemes.delete(e)}}[o]=a.then?(await a)():a,e.s(["resolveTheme",0,l]),t()}catch(e){t(e)}},!1),68755,e=>e.a(async(n,t)=>{try{var i=e.i(89065),r=e.i(34096),o=n([r]);[r]=o.then?(await o)():o,e.s(["getResolvedOrResolveTheme",0,function(e){return i.ResolvedThemes.get(e)??(0,r.resolveTheme)(e)}]),t()}catch(e){t(e)}},!1),50524,e=>{"use strict";var n=e.i(89065);e.s(["registerCustomTheme",0,function(e,t){n.RegisteredCustomThemes.has(e)?console.error("SharedHighlight.registerCustomTheme: theme name already registered",e):n.RegisteredCustomThemes.set(e,t)}])},27505,e=>e.a(async(n,t)=>{try{let c;var i=e.i(91710);e.i(42399);var r=e.i(42751),o=e.i(5716);e.i(2479);var a=e.i(68755),l=e.i(50524),s=e.i(5104),d=n([r,a,s]);async function u({themes:n,langs:t,preferredHighlighter:l="shiki-js"}){c??=(0,s.createHighlighter)({themes:[],langs:["text"],engine:"shiki-wasm"===l?(0,s.createOnigurumaEngine)(e.A(95590)):(0,s.createJavaScriptRegexEngine)()});let d=!function(e=c){return null!=e&&"then"in e}(c)?c:await c;c=d;let f=[];for(let e of t){if("text"===e||"ansi"===e)continue;let n=(0,r.getResolvedOrResolveLanguage)(e);"then"in n?f.push(n):(0,i.attachResolvedLanguages)(n,d)}let h=[];for(let e of n){let n=(0,a.getResolvedOrResolveTheme)(e);"then"in n?h.push(n):(0,o.attachResolvedThemes)(n,c)}return(f.length>0||h.length>0)&&await Promise.all([Promise.all(f).then(e=>{(0,i.attachResolvedLanguages)(e,d)}),Promise.all(h).then(e=>{(0,o.attachResolvedThemes)(e,d)})]),d}[r,a,s]=d.then?(await d)():d,(0,l.registerCustomTheme)("pierre-dark",async()=>{let{default:n}=await e.A(81094);return{...n,name:"pierre-dark"}}),(0,l.registerCustomTheme)("pierre-light",async()=>{let{default:n}=await e.A(35355);return{...n,name:"pierre-light"}}),e.s(["getHighlighterIfLoaded",0,function(){if(null!=c&&!("then"in c))return c},"getSharedHighlighter",0,u]),t()}catch(e){t(e)}},!1),35092,e=>{"use strict";var n=e.i(90578);e.s(["getThemes",0,function(e=n.DEFAULT_THEMES){let t=[];return"string"==typeof e?t.push(e):(t.push(e.dark),t.push(e.light)),t}])},10498,e=>{"use strict";var n=e.i(89065),t=e.i(35092);e.s(["areThemesAttached",0,function(e){for(let i of(0,t.getThemes)(e))if(!n.AttachedThemes.has(i))return!1;return!0}])},199,e=>{"use strict";e.s(["areRenderRangesEqual",0,function(e,n){return null==e||null==n?e===n:e.startingLine===n.startingLine&&e.totalLines===n.totalLines&&e.bufferBefore===n.bufferBefore&&e.bufferAfter===n.bufferAfter}])},63063,e=>{"use strict";var n=e.i(52205);e.s(["createAnnotationElement",0,function(e){return(0,n.createHastElement)({tagName:"div",children:[(0,n.createHastElement)({tagName:"div",children:e.annotations?.map(e=>(0,n.createHastElement)({tagName:"slot",properties:{name:e}})),properties:{"data-annotation-content":""}})],properties:{"data-line-annotation":`${e.hunkIndex},${e.lineIndex}`}})}])},89880,e=>{"use strict";var n=e.i(52205);e.s(["createContentColumn",0,function(e,t){return(0,n.createHastElement)({tagName:"div",children:e,properties:{"data-content":"",style:`grid-row: span ${t}`}})}])},58337,e=>{"use strict";var n=e.i(90578),t=e.i(52205);e.s(["createFileHeaderElement",0,function({fileOrDiff:e,mode:i}){let r="type"in e?e:void 0,o={"data-diffs-header":i,"data-change-type":r?.type};return(0,t.createHastElement)({tagName:"div",children:["custom"===i?(0,t.createHastElement)({tagName:"slot",properties:{name:n.CUSTOM_HEADER_SLOT_ID}}):function({name:e,prevName:i,iconType:r}){let o=[(0,t.createHastElement)({tagName:"slot",properties:{name:n.HEADER_PREFIX_SLOT_ID}}),(0,t.createIconElement)({name:function(e){switch(e){case"file":return"diffs-icon-file-code";case"change":return"diffs-icon-symbol-modified";case"new":return"diffs-icon-symbol-added";case"deleted":return"diffs-icon-symbol-deleted";case"rename-pure":case"rename-changed":return"diffs-icon-symbol-moved"}}(r),properties:{"data-change-icon":r}})];return null!=i&&(o.push((0,t.createHastElement)({tagName:"div",children:[(0,t.createHastElement)({tagName:"bdi",children:[(0,t.createTextNodeElement)(i)]})],properties:{"data-prev-name":""}})),o.push((0,t.createIconElement)({name:"diffs-icon-arrow-right-short",properties:{"data-rename-icon":""}}))),o.push((0,t.createHastElement)({tagName:"div",children:[(0,t.createHastElement)({tagName:"bdi",children:[(0,t.createTextNodeElement)(e)]})],properties:{"data-title":""}})),(0,t.createHastElement)({tagName:"div",children:o,properties:{"data-header-content":""}})}({name:e.name,prevName:"prevName"in e?e.prevName:void 0,iconType:r?.type??"file"}),..."custom"===i?[]:[function(e){let i=[];if(null!=e){let n=0,r=0;for(let t of e.hunks)n+=t.additionLines,r+=t.deletionLines;(r>0||0===n)&&i.push((0,t.createHastElement)({tagName:"span",children:[(0,t.createTextNodeElement)(`-${r}`)],properties:{"data-deletions-count":""}})),(n>0||0===r)&&i.push((0,t.createHastElement)({tagName:"span",children:[(0,t.createTextNodeElement)(`+${n}`)],properties:{"data-additions-count":""}}))}return i.push((0,t.createHastElement)({tagName:"slot",properties:{name:n.HEADER_METADATA_SLOT_ID}})),(0,t.createHastElement)({tagName:"div",children:i,properties:{"data-metadata":""}})}(r)]],properties:o})}],58337)},43530,e=>{"use strict";var n=e.i(52205);e.s(["createPreElement",0,function(e){return(0,n.createHastElement)({tagName:"pre",properties:function({diffIndicators:e,disableBackground:n,disableLineNumbers:t,overflow:i,split:r,totalLines:o,type:a,customProperties:l}){return{...l,"data-diff":"diff"===a?"":void 0,"data-file":"file"===a?"":void 0,"data-diff-type":"diff"===a?r?"split":"single":void 0,"data-overflow":i,"data-disable-line-numbers":t?"":void 0,"data-background":n?void 0:"","data-indicators":"bars"===e||"classic"===e?e:void 0,tabIndex:0,style:`--diffs-min-number-column-width-default:${`${o}`.length}ch;`}}(e)})}])},72215,e=>{"use strict";let n=new Map,t={"1c":"1c",abap:"abap",as:"actionscript-3",ada:"ada",adb:"ada",ads:"ada",adoc:"asciidoc",asciidoc:"asciidoc","component.html":"angular-html","component.ts":"angular-ts",conf:"nginx",htaccess:"apache",cls:"tex",trigger:"apex",apl:"apl",applescript:"applescript",scpt:"applescript",ara:"ara",asm:"asm",s:"riscv",astro:"astro",awk:"awk",bal:"ballerina",sh:"zsh",bash:"zsh",bat:"cmd",cmd:"cmd",be:"berry",beancount:"beancount",bib:"bibtex",bicep:"bicep","blade.php":"blade",bsl:"bsl",c:"c",h:"objective-cpp",cs:"csharp",cpp:"cpp",hpp:"cpp",cc:"cpp",cxx:"cpp",hh:"cpp",cdc:"cdc",cairo:"cairo",clar:"clarity",clj:"clojure",cljs:"clojure",cljc:"clojure",soy:"soy",cmake:"cmake","CMakeLists.txt":"cmake",cob:"cobol",cbl:"cobol",cobol:"cobol",CODEOWNERS:"codeowners",ql:"ql",coffee:"coffeescript",lisp:"lisp",cl:"lisp",lsp:"lisp",log:"log",v:"verilog",cql:"cql",cr:"crystal",css:"css",csv:"csv",cue:"cue",cypher:"cypher",cyp:"cypher",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",patch:"diff",Dockerfile:"dockerfile",dockerfile:"dockerfile",env:"dotenv",dm:"dream-maker",edge:"edge",el:"emacs-lisp",ex:"elixir",exs:"elixir",elm:"elm",erb:"erb",erl:"erlang",hrl:"erlang",f:"fortran-fixed-form",for:"fortran-fixed-form",fs:"fsharp",fsi:"fsharp",fsx:"fsharp",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"fortran-free-form",f95:"fortran-free-form",fnl:"fennel",fish:"fish",ftl:"ftl",tres:"gdresource",res:"gdresource",gd:"gdscript",gdshader:"gdshader",gs:"genie",feature:"gherkin",COMMIT_EDITMSG:"git-commit","git-rebase-todo":"git-rebase",gjs:"glimmer-js",gleam:"gleam",gts:"glimmer-ts",glsl:"glsl",vert:"glsl",frag:"glsl",shader:"shaderlab",gp:"gnuplot",plt:"gnuplot",gnuplot:"gnuplot",go:"go",graphql:"graphql",gql:"graphql",groovy:"groovy",gvy:"groovy",hack:"hack",haml:"haml",hbs:"handlebars",handlebars:"handlebars",hs:"haskell",lhs:"haskell",hx:"haxe",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",fx:"hlsl",html:"html",htm:"html",http:"http",rest:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",cfg:"ini",jade:"pug",pug:"pug",java:"java",js:"javascript",mjs:"javascript",cjs:"javascript",jinja:"jinja",jinja2:"jinja",j2:"jinja",jison:"jison",jl:"julia",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",libsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",kt:"kotlin",kts:"kts",kql:"kusto",tex:"tex",ltx:"tex",lean:"lean4",less:"less",liquid:"liquid",lit:"lit",ll:"llvm",logo:"logo",lua:"lua",luau:"luau",Makefile:"makefile",mk:"makefile",makefile:"makefile",md:"markdown",markdown:"markdown",marko:"marko",m:"wolfram",mat:"matlab",mdc:"mdc",mdx:"mdx",wiki:"wikitext",mediawiki:"wikitext",mmd:"mermaid",mermaid:"mermaid",mips:"mipsasm",mojo:"mojo","🔥":"mojo",move:"move",nar:"narrat",nf:"nextflow",nim:"nim",nims:"nim",nimble:"nim",nix:"nix",nu:"nushell",mm:"objective-cpp",ml:"ocaml",mli:"ocaml",mll:"ocaml",mly:"ocaml",pas:"pascal",p:"pascal",pl:"prolog",pm:"perl",t:"perl",raku:"raku",p6:"raku",pl6:"raku",php:"php",phtml:"php",pls:"plsql",sql:"sql",po:"po",polar:"polar",pcss:"postcss",pot:"pot",potx:"potx",pq:"powerquery",pqm:"powerquery",ps1:"powershell",psm1:"powershell",psd1:"powershell",prisma:"prisma",pro:"prolog",P:"prolog",properties:"properties",proto:"protobuf",pp:"puppet",purs:"purescript",py:"python",pyw:"python",pyi:"python",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",R:"r",rkt:"racket",rktl:"racket",razor:"razor",cshtml:"razor",rb:"ruby",rbw:"ruby",reg:"reg",regex:"regexp",rel:"rel",rs:"rust",rst:"rst",rake:"ruby",gemspec:"ruby",sas:"sas",sass:"sass",scala:"scala",sc:"scala",scm:"scheme",ss:"scheme",sld:"scheme",scss:"scss",sdbl:"sdbl",shadergraph:"shader",st:"smalltalk",sol:"solidity",sparql:"sparql",rq:"sparql",spl:"splunk",config:"ssh-config",do:"stata",ado:"stata",dta:"stata",styl:"stylus",stylus:"stylus",svelte:"svelte",swift:"swift",sv:"system-verilog",svh:"system-verilog",service:"systemd",socket:"systemd",device:"systemd",timer:"systemd",talon:"talonscript",tasl:"tasl",tcl:"tcl",templ:"templ",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"typescript",tsp:"typespec",tsv:"tsv",tsx:"tsx",ttl:"turtle",twig:"twig",typ:"typst",vv:"v",vala:"vala",vapi:"vala",vb:"vb",vbs:"vb",bas:"vb",vh:"verilog",vhd:"vhdl",vhdl:"vhdl",vim:"vimscript",vue:"vue","vine.ts":"vue-vine",vy:"vyper",wasm:"wasm",wat:"wasm",wy:"文言",wgsl:"wgsl",wit:"wit",wl:"wolfram",nb:"wolfram",xml:"xml",xsl:"xsl",xslt:"xsl",yaml:"yaml",yml:"yml",zs:"zenscript",zig:"zig",zsh:"zsh",sty:"tex"};e.s(["getFiletypeFromFileName",0,function(e){if(n.has(e))return n.get(e)??"text";if(null!=t[e])return t[e];let i=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(null!=i){if(n.has(i[1]))return n.get(i[1])??"text";if(null!=t[i[1]])return t[i[1]]??"text"}let r=e.match(/\.([^.]+)$/)?.[1]??"";return n.has(r)?n.get(r)??"text":t[r]??"text"}])},49896,e=>{"use strict";var n=e.i(35092);e.s(["getHighlighterOptions",0,function(e,{theme:t,preferredHighlighter:i="shiki-js"}){return{langs:[e??"text"],themes:(0,n.getThemes)(t),preferredHighlighter:i}}])},59808,e=>{"use strict";e.s(["getLineAnnotationName",0,function(e){return`annotation-${"side"in e?`${e.side}-`:""}${e.lineNumber}`}])},78127,e=>{"use strict";e.s(["shouldUseTokenTransformer",0,function(e){return!0===e.useTokenTransformer||null!=e.onTokenClick||null!=e.onTokenEnter||null!=e.onTokenLeave}])},10817,e=>{"use strict";e.s(["areDiffRenderOptionsEqual",0,function(e,n){var t,i;return t=e.theme,i=n.theme,(null==t||null==i||"string"==typeof t||"string"==typeof i?t===i:t.dark===i.dark&&t.light===i.light)&&e.useTokenTransformer===n.useTokenTransformer&&e.tokenizeMaxLineLength===n.tokenizeMaxLineLength&&e.lineDiffType===n.lineDiffType&&e.maxLineDiffLength===n.maxLineDiffLength}],10817)},10363,e=>{"use strict";var n=e.i(52205);e.s(["createEmptyRowBuffer",0,function(e){return(0,n.createHastElement)({tagName:"div",properties:{"data-content-buffer":"","data-buffer-size":e,style:`grid-row: span ${e};min-height:calc(${e} * 1lh)`}})}])},3717,e=>{"use strict";var n=e.i(52205);e.s(["createNoNewlineElement",0,function(e){return(0,n.createHastElement)({tagName:"div",children:[(0,n.createHastElement)({tagName:"span",children:[(0,n.createTextNodeElement)("No newline at end of file")]})],properties:{"data-no-newline":"","data-line-type":e,"data-column-content":""}})}])},87838,e=>{"use strict";var n=e.i(52205);function t(e){return(0,n.createHastElement)({tagName:"div",children:[(0,n.createIconElement)({name:"both"===e?"diffs-icon-expand-all":"diffs-icon-expand",properties:{"data-icon":""}})],properties:{role:"button","data-expand-button":"","data-expand-both":"both"===e?"":void 0,"data-expand-up":"up"===e?"":void 0,"data-expand-down":"down"===e?"":void 0}})}e.s(["createSeparator",0,function({type:e,content:i,expandIndex:r,chunked:o=!1,slotName:a,isFirstHunk:l,isLastHunk:s}){let d=0,u=[];if("metadata"===e&&null!=i&&u.push((0,n.createHastElement)({tagName:"div",children:[(0,n.createTextNodeElement)(i)],properties:{"data-separator-wrapper":""}})),("line-info"===e||"line-info-basic"===e)&&null!=i){let e=[];null!=r&&(o?(!l&&(e.push(t("up")),d++),!s&&(e.push(t("down")),d++)):(e.push(t(l||s?l?"down":"up":"both")),d++)),e.push((0,n.createHastElement)({tagName:"div",children:[(0,n.createHastElement)({tagName:"span",children:[(0,n.createTextNodeElement)(i)],properties:{"data-unmodified-lines":""}})],properties:{"data-separator-content":""}})),o&&null!=r&&e.push((0,n.createHastElement)({tagName:"div",children:[(0,n.createTextNodeElement)("Expand all")],properties:{role:"button","data-expand-button":"","data-expand-all-button":""}})),u.push((0,n.createHastElement)({tagName:"div",children:e,properties:{"data-separator-wrapper":"","data-separator-multi-button":d>1?"":void 0}}))}return"custom"===e&&null!=a&&u.push((0,n.createHastElement)({tagName:"slot",properties:{name:a}})),(0,n.createHastElement)({tagName:"div",children:u,properties:{"data-separator":0===u.length?"simple":e,"data-expand-index":r,"data-separator-first":l?"":void 0,"data-separator-last":s?"":void 0}})}])},20354,e=>{"use strict";e.s(["getHunkSeparatorSlotName",0,function(e,n){return`hunk-separator-${e}-${n}`}])},4940,e=>{"use strict";e.s(["getTotalLineCountFromHunks",0,function(e){let n=e.at(-1);return null==n?0:Math.max(n.additionStart+n.additionCount,n.deletionStart+n.deletionCount)}])},28818,e=>{"use strict";e.s(["isDefaultRenderRange",0,function(e){return 0===e.startingLine&&e.totalLines===1/0&&0===e.bufferBefore&&0===e.bufferAfter}])},1337,e=>{"use strict";var n=e.i(72215);e.s(["isDiffPlainText",0,function(e){let t=e.lang??(0,n.getFiletypeFromFileName)(e.name),i=e.lang??(null!=e.prevName?(0,n.getFiletypeFromFileName)(e.prevName):"text");return"text"===t&&"text"===i}])},69767,e=>{"use strict";var n=e.i(90578);function t(e,n,t,i,r){if(0===(n=Math.max(n,0))||e)return{fromStart:0,fromEnd:0,rangeSize:n,collapsedLines:Math.max(n,0)};if(!0===t||n<=r)return{fromStart:n,fromEnd:0,rangeSize:n,collapsedLines:0};let o=t?.get(i),a=Math.min(Math.max(o?.fromStart??0,0),n),l=Math.min(Math.max(o?.fromEnd??0,0),n),s=a+l,d=s>=n;return{fromStart:d?n:a,fromEnd:d?0:l,rangeSize:n,collapsedLines:Math.max(n-s,0)}}e.s(["iterateOverDiff",0,function({diff:e,diffStyle:i,startingLine:r=0,totalLines:o=1/0,expandedHunks:a,collapsedContextThreshold:l=n.DEFAULT_COLLAPSED_CONTEXT_THRESHOLD,callback:s}){let d={finalHunk:e.hunks.at(-1),viewportStart:r,viewportEnd:r+o,isWindowedHighlight:r>0||o<1/0,splitCount:0,unifiedCount:0,shouldBreak(){if(!d.isWindowedHighlight)return!1;let e=d.unifiedCount>=r+o,n=d.splitCount>=r+o;return"unified"===i?e:"split"===i?n:e&&n},shouldSkip(e,n){if(!d.isWindowedHighlight)return!1;let t=d.unifiedCount+e<r,o=d.splitCount+n<r;return"unified"===i?t:"split"===i?o:t&&o},incrementCounts(e,n){("unified"===i||"both"===i)&&(d.unifiedCount+=e),("split"===i||"both"===i)&&(d.splitCount+=n)},isInWindow(e,n){if(!d.isWindowedHighlight)return!0;let t=d.isInUnifiedWindow(e),r=d.isInSplitWindow(n);return"unified"===i?t:"split"===i?r:t||r},isInUnifiedWindow:e=>!d.isWindowedHighlight||d.unifiedCount>=r-e&&d.unifiedCount<r+o,isInSplitWindow:e=>!d.isWindowedHighlight||d.splitCount>=r-e&&d.splitCount<r+o,emit:(e,n=!1)=>(n||("unified"===i?d.incrementCounts(1,0):"split"===i?d.incrementCounts(0,1):d.incrementCounts(1,1)),s(e)??!1)};e:for(let[n,r]of e.hunks.entries()){if(d.shouldBreak())break;let o=t(e.isPartial,r.collapsedBefore,a,n,l),s=(()=>{if(r!==d.finalHunk||!function(e){let n=e.hunks.at(-1);return null!=n&&!e.isPartial&&0!==e.additionLines.length&&0!==e.deletionLines.length&&(n.additionLineIndex+n.additionCount<e.additionLines.length||n.deletionLineIndex+n.deletionCount<e.deletionLines.length)}(e))return;let n=e.additionLines.length-(r.additionLineIndex+r.additionCount),i=e.deletionLines.length-(r.deletionLineIndex+r.deletionCount);if(n!==i)throw Error(`iterateOverDiff: trailing context mismatch (additions=${n}, deletions=${i}) for ${e.name}`);let o=Math.min(n,i);return t(e.isPartial,o,a,e.hunks.length,l)})(),f=o.fromStart+o.fromEnd;function u(e,n){return null==s||s.collapsedLines<=0||s.fromStart+s.fromEnd>0?0:"unified"===i?e===r.unifiedLineStart+r.unifiedLineCount-1?s.collapsedLines:0:n===r.splitLineStart+r.splitLineCount-1?s.collapsedLines:0}function c(){if(0===o.collapsedLines)return 0;let e=o.collapsedLines;return o.collapsedLines=0,e}if(d.shouldSkip(f,f))d.incrementCounts(f,f),c();else{let e=r.unifiedLineStart-o.rangeSize,t=r.splitLineStart-o.rangeSize,i=r.deletionLineIndex-o.rangeSize,a=r.additionLineIndex-o.rangeSize,l=r.deletionStart-o.rangeSize,s=r.additionStart-o.rangeSize,u=0;for(;u<o.fromStart;){if(d.isInWindow(0,0)){if(d.emit({hunkIndex:n,hunk:r,collapsedBefore:0,collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:l+u,lineIndex:i+u,noEOFCR:!1,unifiedLineIndex:e+u,splitLineIndex:t+u},additionLine:{unifiedLineIndex:e+u,splitLineIndex:t+u,lineIndex:a+u,lineNumber:s+u,noEOFCR:!1}}))break e}else d.incrementCounts(1,1);u++}for(e=r.unifiedLineStart-o.fromEnd,t=r.splitLineStart-o.fromEnd,i=r.deletionLineIndex-o.fromEnd,a=r.additionLineIndex-o.fromEnd,l=r.deletionStart-o.fromEnd,s=r.additionStart-o.fromEnd,u=0;u<o.fromEnd;){if(d.isInWindow(0,0)){if(d.emit({hunkIndex:n,hunk:r,collapsedBefore:c(),collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:l+u,lineIndex:i+u,noEOFCR:!1,unifiedLineIndex:e+u,splitLineIndex:t+u},additionLine:{unifiedLineIndex:e+u,splitLineIndex:t+u,lineIndex:a+u,lineNumber:s+u,noEOFCR:!1}}))break e}else d.incrementCounts(1,1);u++}}let h=r.unifiedLineStart,p=r.splitLineStart,m=r.deletionLineIndex,g=r.additionLineIndex,v=r.deletionStart,b=r.additionStart,y=r.hunkContent.at(-1);for(let e of r.hunkContent){if(d.shouldBreak())break e;let t=e===y;if("context"===e.type){if(d.shouldSkip(e.lines,e.lines))d.incrementCounts(e.lines,e.lines),c();else{let i=0;for(;i<e.lines;){if(d.isInWindow(0,0)){let o=t&&i===e.lines-1,a=h+i,l=p+i;if(d.emit({hunkIndex:n,hunk:r,collapsedBefore:c(),collapsedAfter:u(a,l),type:"context",deletionLine:{lineNumber:v+i,lineIndex:m+i,noEOFCR:o&&r.noEOFCRDeletions,unifiedLineIndex:a,splitLineIndex:l},additionLine:{unifiedLineIndex:a,splitLineIndex:l,lineIndex:g+i,lineNumber:b+i,noEOFCR:o&&r.noEOFCRAdditions}}))break e}else d.incrementCounts(1,1);i++}}h+=e.lines,p+=e.lines,m+=e.lines,g+=e.lines,v+=e.lines,b+=e.lines}else{let o=Math.max(e.deletions,e.additions),a=e.deletions+e.additions;if(!d.shouldSkip(a,o))for(let[l,s]of function(e,n,t){if(!e.isWindowedHighlight)return[[0,"unified"===t?n.deletions+n.additions:Math.max(n.deletions,n.additions)]];let i="unified"===t?"unified":"split",r=[];function o(n,t){if(n+t<=e.viewportStart||n>=e.viewportEnd)return;let i=Math.max(0,e.viewportStart-n),r=Math.min(t,e.viewportEnd-n);return r>i?[i,r]:void 0}function a(e,t){if(null==e)return;let[o,a]="split"===i?e:"additions"===t?[e[0]+n.deletions,e[1]+n.deletions]:e;a>o&&r.push([o,a])}if("split"!==t&&(a(o(e.unifiedCount,n.deletions),"deletions"),a(o(e.unifiedCount+n.deletions,n.additions),"additions")),"unified"!==t&&(a(o(e.splitCount,n.deletions),"deletions"),a(o(e.splitCount,n.additions),"additions")),0===r.length)return r;r.sort((e,n)=>e[0]-n[0]);let l=[r[0]];for(let[e,n]of r.slice(1)){let t=l[l.length-1];e<=t[1]?t[1]=Math.max(t[1],n):l.push([e,n])}return l}(d,e,i))for(let f=l;f<s;f++){let l=u(h+f,"unified"===i?p+(f<e.deletions?f:f-e.deletions):p+f);if(d.emit(function({hunkIndex:e,hunk:n,collapsedAfter:t,collapsedBefore:i,diffStyle:r,index:o,unifiedLineIndex:a,splitLineIndex:l,additionLineIndex:s,deletionLineIndex:d,additionLineNumber:u,deletionLineNumber:c,content:f,isLastContent:h,unifiedCount:p,splitCount:m}){let g=o<f.deletions?a+o:void 0,v="unified"===r?o>=f.deletions?a+o:void 0:o<f.additions?a+f.deletions+o:void 0,b="unified"===r?l+(o<f.deletions?o:o-f.deletions):l+o,y=o<f.deletions?d+o:void 0,x=o<f.deletions?c+o:void 0,C="unified"===r?o>=f.deletions?s+(o-f.deletions):void 0:o<f.additions?s+o:void 0,k="unified"===r?o>=f.deletions?u+(o-f.deletions):void 0:o<f.additions?u+o:void 0,S="unified"===r?h&&o===f.deletions-1&&n.noEOFCRDeletions:h&&o===m-1&&n.noEOFCRDeletions,L="unified"===r?h&&o===p-1&&n.noEOFCRAdditions:h&&o===m-1&&n.noEOFCRAdditions,E=null!=y&&null!=x&&null!=g?{lineNumber:x,lineIndex:y,noEOFCR:S,unifiedLineIndex:g,splitLineIndex:b}:void 0,w=null!=C&&null!=k&&null!=v?{unifiedLineIndex:v,splitLineIndex:b,lineIndex:C,lineNumber:k,noEOFCR:L}:void 0;if(null==E&&null!=w)return{type:"change",hunkIndex:e,hunk:n,collapsedAfter:t,collapsedBefore:i,deletionLine:void 0,additionLine:w};if(null!=E&&null==w)return{type:"change",hunkIndex:e,hunk:n,collapsedAfter:t,collapsedBefore:i,deletionLine:E,additionLine:void 0};if(null==E||null==w)throw Error("iterateOverDiff: missing change line data");return{type:"change",hunkIndex:e,hunk:n,collapsedAfter:t,collapsedBefore:i,deletionLine:E,additionLine:w}}({hunkIndex:n,hunk:r,collapsedBefore:c(),collapsedAfter:l,diffStyle:i,index:f,unifiedLineIndex:h,splitLineIndex:p,additionLineIndex:g,deletionLineIndex:m,additionLineNumber:b,deletionLineNumber:v,content:e,isLastContent:t,unifiedCount:a,splitCount:o}),!0))break e}c(),d.incrementCounts(a,o),h+=a,p+=o,m+=e.deletions,g+=e.additions,v+=e.deletions,b+=e.additions}}if(null!=s){let{collapsedLines:n,fromStart:t,fromEnd:i}=s,r=t+i,o=0;for(;o<r;){if(d.shouldBreak())break e;if(d.isInWindow(0,0)){let t=o===r-1;if(d.emit({hunkIndex:e.hunks.length,hunk:void 0,collapsedBefore:0,collapsedAfter:t?n:0,type:"context-expanded",deletionLine:{lineNumber:v+o,lineIndex:m+o,noEOFCR:!1,unifiedLineIndex:h+o,splitLineIndex:p+o},additionLine:{unifiedLineIndex:h+o,splitLineIndex:p+o,lineIndex:g+o,lineNumber:b+o,noEOFCR:!1}}))break e}else d.incrementCounts(1,1);o++}}}}])},92447,e=>{"use strict";e.s(["cleanLastNewline",0,function(e){return e.replace(/\n$|\r\n$/,"")}])},52666,e=>{"use strict";class n{diff(e,n,t={}){let i;"function"==typeof t?(i=t,t={}):"callback"in t&&(i=t.callback);let r=this.castInput(e,t),o=this.castInput(n,t),a=this.removeEmpty(this.tokenize(r,t)),l=this.removeEmpty(this.tokenize(o,t));return this.diffWithOptionsObj(a,l,t,i)}diffWithOptionsObj(e,n,t,i){var r;let o=e=>(e=this.postProcess(e,t),i)?void setTimeout(function(){i(e)},0):e,a=n.length,l=e.length,s=1,d=a+l;null!=t.maxEditLength&&(d=Math.min(d,t.maxEditLength));let u=null!=(r=t.timeout)?r:1/0,c=Date.now()+u,f=[{oldPos:-1,lastComponent:void 0}],h=this.extractCommon(f[0],n,e,0,t);if(f[0].oldPos+1>=l&&h+1>=a)return o(this.buildValues(f[0].lastComponent,n,e));let p=-1/0,m=1/0,g=()=>{for(let i=Math.max(p,-s);i<=Math.min(m,s);i+=2){let r,s=f[i-1],d=f[i+1];s&&(f[i-1]=void 0);let u=!1;if(d){let e=d.oldPos-i;u=d&&0<=e&&e<a}let c=s&&s.oldPos+1<l;if(!u&&!c){f[i]=void 0;continue}if(r=!c||u&&s.oldPos<d.oldPos?this.addToPath(d,!0,!1,0,t):this.addToPath(s,!1,!0,1,t),h=this.extractCommon(r,n,e,i,t),r.oldPos+1>=l&&h+1>=a)return o(this.buildValues(r.lastComponent,n,e))||!0;f[i]=r,r.oldPos+1>=l&&(m=Math.min(m,i-1)),h+1>=a&&(p=Math.max(p,i+1))}s++};if(i)!function e(){setTimeout(function(){if(s>d||Date.now()>c)return i(void 0);g()||e()},0)}();else for(;s<=d&&Date.now()<=c;){let e=g();if(e)return e}}addToPath(e,n,t,i,r){let o=e.lastComponent;return o&&!r.oneChangePerToken&&o.added===n&&o.removed===t?{oldPos:e.oldPos+i,lastComponent:{count:o.count+1,added:n,removed:t,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+i,lastComponent:{count:1,added:n,removed:t,previousComponent:o}}}extractCommon(e,n,t,i,r){let o=n.length,a=t.length,l=e.oldPos,s=l-i,d=0;for(;s+1<o&&l+1<a&&this.equals(t[l+1],n[s+1],r);)s++,l++,d++,r.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return d&&!r.oneChangePerToken&&(e.lastComponent={count:d,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=l,s}equals(e,n,t){return t.comparator?t.comparator(e,n):e===n||!!t.ignoreCase&&e.toLowerCase()===n.toLowerCase()}removeEmpty(e){let n=[];for(let t=0;t<e.length;t++)e[t]&&n.push(e[t]);return n}castInput(e,n){return e}tokenize(e,n){return Array.from(e)}join(e){return e.join("")}postProcess(e,n){return e}get useLongestToken(){return!1}buildValues(e,n,t){let i,r=[];for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let o=r.length,a=0,l=0,s=0;for(;a<o;a++){let e=r[a];if(e.removed)e.value=this.join(t.slice(s,s+e.count)),s+=e.count;else{if(!e.added&&this.useLongestToken){let i=n.slice(l,l+e.count);i=i.map(function(e,n){let i=t[s+n];return i.length>e.length?i:e}),e.value=this.join(i)}else e.value=this.join(n.slice(l,l+e.count));l+=e.count,e.added||(s+=e.count)}}return r}}e.s(["default",()=>n])},86710,e=>{"use strict";var n=e.i(90578),t=e.i(72215),i=e.i(92447),r=e.i(52205);let o=Symbol("no-token"),a=Symbol("multiple-tokens");function l(e){if("element"===e.type)for(let n of(e.properties["data-char"]=void 0,e.children))l(n)}let s=function(e={}){let{classPrefix:n="__shiki_",classSuffix:t="",classReplacer:i=e=>e}=e,r=new Map;function o(e){return Object.entries(e).map(([e,n])=>`${e}:${n}`).join(";")}function a(e){let a=n+function(e,n=0){let t=0xdeadbeef^n,i=0x41c6ce57^n;for(let n=0,r;n<e.length;n++)t=Math.imul(t^(r=e.charCodeAt(n)),0x9e3779b1),i=Math.imul(i^r,0x5f356495);return t=Math.imul(t^t>>>16,0x85ebca6b)^Math.imul(i^i>>>13,0xc2b2ae35),(0x100000000*(2097151&(i=Math.imul(i^i>>>16,0x85ebca6b)^Math.imul(t^t>>>13,0xc2b2ae35)))+(t>>>0)).toString(36).slice(0,6)}("string"==typeof e?e:o(e))+t;return a=i(a),r.has(a)||r.set(a,"string"==typeof e?e:{...e}),a}return{name:"@shikijs/transformers:style-to-class",pre(e){if(!e.properties.style)return;let n=a(e.properties.style);delete e.properties.style,this.addClassToHast(e,n)},tokens(e){for(let n of e)for(let e of n){if(!e.htmlStyle)continue;let n=a(e.htmlStyle);e.htmlStyle={},e.htmlAttrs||={},e.htmlAttrs.class?e.htmlAttrs.class+=` ${n}`:e.htmlAttrs.class=n}},getClassRegistry:()=>r,getCSS(){let e="";for(let[n,t]of r.entries())e+=`.${n}{${"string"==typeof t?t:o(t)}}`;return e},clearRegistry(){r.clear()}}}({classPrefix:"hl-"}),d={name:"token-style-normalizer",tokens(e){for(let n of e)for(let e of n){if(null!=e.htmlStyle)continue;let n={};null!=e.color&&(n.color=e.color),null!=e.bgColor&&(n["background-color"]=e.bgColor),null!=e.fontStyle&&0!==e.fontStyle&&((1&e.fontStyle)!=0&&(n["font-style"]="italic"),(2&e.fontStyle)!=0&&(n["font-weight"]="bold"),(4&e.fontStyle)!=0&&(n["text-decoration"]="underline")),Object.keys(n).length>0&&(e.htmlStyle=n)}}};function u(e){return`--${"token"===e?"diffs-token":"diffs"}-`}function c(e,n){n=null!=n?`${n}-`:"";let t="",i=e.colors?.["gitDecoration.addedResourceForeground"]??e.colors?.["terminal.ansiGreen"];null!=i&&(t+=`${u("global")}${n}addition-color:${i};`);let r=e.colors?.["gitDecoration.deletedResourceForeground"]??e.colors?.["terminal.ansiRed"];null!=r&&(t+=`${u("global")}${n}deletion-color:${r};`);let o=e.colors?.["gitDecoration.modifiedResourceForeground"]??e.colors?.["terminal.ansiBlue"];return null!=o&&(t+=`${u("global")}${n}modified-color:${o};`),t}function f(e){let n=e.children[0];for(;null!=n;){if("element"===n.type&&"code"===n.tagName)return n.children;n="children"in n?n.children[0]:null}throw console.error(e),Error("getLineNodes: Unable to find children")}var h=e.i(69767);function p({line:e,spanStart:n,spanLength:t}){return{start:{line:e,character:n},end:{line:e,character:n+t},properties:{"data-diff-span":""},alwaysWrap:!0}}function m({item:e,arr:n,enableJoin:t,isNeutral:i=!1,isLastItem:r=!1}){let o=n[n.length-1];if(null==o||r||!t)return void n.push([+!i,e.value]);let a=0===o[0];if(i===a||i&&1===e.value.length&&!a){o[1]+=e.value;return}n.push([+!i,e.value])}var g=e.i(52666);class v extends g.default{}let b=new v;var y=g;function x(e,n){let t;for(t=0;t<e.length&&t<n.length&&e[t]==n[t];t++);return e.slice(0,t)}function C(e,n){let t;if(!e||!n||e[e.length-1]!=n[n.length-1])return"";for(t=0;t<e.length&&t<n.length&&e[e.length-(t+1)]==n[n.length-(t+1)];t++);return e.slice(-t)}function k(e,n,t){if(e.slice(0,n.length)!=n)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(n)}; this is a bug`);return t+e.slice(n.length)}function S(e,n,t){if(!n)return e+t;if(e.slice(-n.length)!=n)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(n)}; this is a bug`);return e.slice(0,-n.length)+t}function L(e,n){return k(e,n,"")}function E(e,n){return n.slice(0,function(e,n){let t=0;e.length>n.length&&(t=e.length-n.length);let i=n.length;e.length<n.length&&(i=e.length);let r=Array(i),o=0;r[0]=0;for(let e=1;e<i;e++){for(n[e]==n[o]?r[e]=r[o]:r[e]=o;o>0&&n[e]!=n[o];)o=r[o];n[e]==n[o]&&o++}o=0;for(let i=t;i<e.length;i++){for(;o>0&&e[i]!=n[o];)o=r[o];e[i]==n[o]&&o++}return o}(e,n))}function w(e){let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function A(e){let n=e.match(/^\s*/);return n?n[0]:""}let T="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",I=RegExp(`[${T}]+|\\s+|[^${T}]`,"ug");class R extends y.default{equals(e,n,t){return t.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e.trim()===n.trim()}tokenize(e,n={}){let t;if(n.intlSegmenter){let i=n.intlSegmenter;if("word"!=i.resolvedOptions().granularity)throw Error('The segmenter passed must have a granularity of "word"');for(let n of(t=[],Array.from(i.segment(e)))){let e=n.segment;t.length&&/\s/.test(t[t.length-1])&&/\s/.test(e)?t[t.length-1]+=e:t.push(e)}}else t=e.match(I)||[];let i=[],r=null;return t.forEach(e=>{/\s/.test(e)?null==r?i.push(e):i.push(i.pop()+e):null!=r&&/\s/.test(r)?i[i.length-1]==r?i.push(i.pop()+e):i.push(r+e):i.push(e),r=e}),i}join(e){return e.map((e,n)=>0==n?e:e.replace(/^\s+/,"")).join("")}postProcess(e,n){if(!e||n.oneChangePerToken)return e;let t=null,i=null,r=null;return e.forEach(e=>{e.added?i=e:e.removed?r=e:((i||r)&&N(t,r,i,e),t=e,i=null,r=null)}),(i||r)&&N(t,r,i,null),e}}function N(e,n,t,i){var r,o,a,l;if(n&&t){let a=A(n.value),l=w(n.value),s=A(t.value),d=w(t.value);if(e){let i=x(a,s);e.value=S(e.value,s,i),n.value=L(n.value,i),t.value=L(t.value,i)}if(i){let e=C(l,d);i.value=k(i.value,d,e),r=n.value,n.value=S(r,e,""),o=t.value,t.value=S(o,e,"")}}else if(t){if(e){let e=A(t.value);t.value=t.value.substring(e.length)}if(i){let e=A(i.value);i.value=i.value.substring(e.length)}}else if(e&&i){let t=A(i.value),r=A(n.value),o=w(n.value),l=x(t,r);n.value=L(n.value,l);let s=C(L(t,l),o);a=n.value,n.value=S(a,s,""),i.value=k(i.value,t,s),e.value=S(e.value,t,t.slice(0,t.length-s.length))}else if(i){let e=A(i.value),t=E(w(n.value),e);l=n.value,n.value=S(l,t,"")}else if(e){let t=E(w(e.value),A(n.value));n.value=L(n.value,t)}}new R;class D extends y.default{tokenize(e){let n=RegExp(`(\\r?\\n)|[${T}]+|[^\\S\\n\\r]+|[^${T}]`,"ug");return e.match(n)||[]}}let M=new D,P={forcePlainText:!1};e.s(["renderDiffWithHighlighter",0,function(e,g,v,{forcePlainText:y,startingLine:x,totalLines:C,expandedHunks:k,collapsedContextThreshold:S=n.DEFAULT_COLLAPSED_CONTEXT_THRESHOLD}=P){y?(x??=0,C??=1/0):(x=0,C=1/0);let L=x>0||C<1/0,E="string"==typeof v.theme?g.getTheme(v.theme).type:void 0,w=function({theme:e=n.DEFAULT_THEMES,highlighter:t,prefix:i}){let r="";if("string"==typeof e){let n=t.getTheme(e);r+=`color:${n.fg};`,r+=`background-color:${n.bg};`,r+=`${u("global")}fg:${n.fg};`,r+=`${u("global")}bg:${n.bg};`,r+=c(n,i)}else{let n=t.getTheme(e.dark);r+=`${u("global")}dark:${n.fg};`,r+=`${u("global")}dark-bg:${n.bg};`,r+=c(n,"dark"),n=t.getTheme(e.light),r+=`${u("global")}light:${n.fg};`,r+=`${u("global")}light-bg:${n.bg};`,r+=c(n,"light")}return r}({theme:v.theme,highlighter:g}),A=y&&!L&&(e.unifiedLineCount>1e3||e.splitLineCount>1e3)?"none":v.lineDiffType,T={deletionLines:[],additionLines:[]},{maxLineDiffLength:I}=v,R=!y&&!e.isPartial,N=new Map;function D(e,n,t,i){if(L){let e=t.at(-1);(null==e||e.targetIndex+e.count!==n)&&(e={targetIndex:n,originalOffset:i.length,count:0},t.push(e)),e.count++}i.push(e)}for(let c of((0,h.iterateOverDiff)({diff:e,diffStyle:"both",startingLine:x,totalLines:C,expandedHunks:!L||(y?k:void 0),collapsedContextThreshold:S,callback:({hunkIndex:n,additionLine:t,deletionLine:r,type:o})=>{let a,l,s=(a=R?0:n,l=N.get(a)??{deletionContent:{push(e){this.value+=e,this.length++},value:"",length:0},additionContent:{push(e){this.value+=e,this.length++},value:"",length:0},deletionInfo:[],additionInfo:[],deletionDecorations:[],additionDecorations:[],deletionSegments:[],additionSegments:[]},N.set(a,l),l),d=null!=t?t.splitLineIndex:r.splitLineIndex;"change"===o&&null!=t&&null!=r&&function({deletionLine:e,additionLine:n,deletionLineIndex:t,additionLineIndex:r,deletionDecorations:o,additionDecorations:a,lineDiffType:l,maxLineDiffLength:s}){var d,u,c,f;if(null==e||null==n||"none"===l||(e=(0,i.cleanLastNewline)(e),n=(0,i.cleanLastNewline)(n),e.length>s||n.length>s))return;let h="char"===l?(d=e,u=n,b.diff(d,u,void 0)):(c=e,f=n,M.diff(c,f,void 0)),g=[],v=[],y="word-alt"===l,x=h.at(-1);for(let e of h){let n=e===x;e.added||e.removed?e.removed?m({item:e,arr:g,enableJoin:y,isLastItem:n}):m({item:e,arr:v,enableJoin:y,isLastItem:n}):(m({item:e,arr:g,enableJoin:y,isNeutral:!0,isLastItem:n}),m({item:e,arr:v,enableJoin:y,isNeutral:!0,isLastItem:n}))}let C=0;for(let e of g)1===e[0]&&o.push(p({line:t,spanStart:C,spanLength:e[1].length})),C+=e[1].length;for(let e of(C=0,v))1===e[0]&&a.push(p({line:r,spanStart:C,spanLength:e[1].length})),C+=e[1].length}({additionLine:e.additionLines[t.lineIndex],deletionLine:e.deletionLines[r.lineIndex],deletionLineIndex:s.deletionContent.length,additionLineIndex:s.additionContent.length,deletionDecorations:s.deletionDecorations,additionDecorations:s.additionDecorations,lineDiffType:A,maxLineDiffLength:I}),null!=r&&(D(e.deletionLines[r.lineIndex],r.lineIndex,s.deletionSegments,s.deletionContent),s.deletionInfo.push({type:"change"===o?"change-deletion":o,lineNumber:r.lineNumber,altLineNumber:"change"===o?void 0:t.lineNumber??void 0,lineIndex:`${r.unifiedLineIndex},${d}`})),null!=t&&(D(e.additionLines[t.lineIndex],t.lineIndex,s.additionSegments,s.additionContent),s.additionInfo.push({type:"change"===o?"change-addition":o,lineNumber:t.lineNumber,altLineNumber:"change"===o?void 0:r.lineNumber??void 0,lineIndex:`${t.unifiedLineIndex},${d}`}))}}),N.values())){if(0===c.deletionContent.length&&0===c.additionContent.length)continue;let h={name:e.prevName??e.name,contents:c.deletionContent.value},p={name:e.name,contents:c.additionContent.value},{deletionLines:m,additionLines:b}=function({deletionFile:e,additionFile:c,deletionInfo:h,additionInfo:p,highlighter:m,deletionDecorations:g,additionDecorations:v,languageOverride:b,options:{theme:y=n.DEFAULT_THEMES,...x}}){let C=b??(0,t.getFiletypeFromFileName)(e.name),k=b??(0,t.getFiletypeFromFileName)(c.name),{state:S,transformers:L}=function(e=!1,n=!1){let t={lineInfo:[]},i=[{line:e=>(delete e.properties.class,e),pre(n){let i=(0,r.findCodeElement)(n),s=[];if(null!=i){let n=1;for(let d of i.children)"element"===d.type&&(e&&function e(n){let t,i=function(e){let n=e.properties["data-char"];if("number"==typeof n)return n}(n);if(null!=i)return i;let s=o,d=[],u=[],c=()=>{if(0===u.length||null==t){u=[],t=void 0;return}if(1===u.length){let i=u[0];if(i?.type==="element"){var e,n;for(let r of(e=i,n=t,e.properties["data-char"]=n,i.children))l(r)}else l(i);d.push(i),u=[],t=void 0;return}for(let e of u)l(e);d.push((0,r.createHastElement)({tagName:"span",properties:{"data-char":t},children:u})),u=[],t=void 0},f=e=>{if(e!==o){if(e===a){s=a;return}if(s===o){s=e;return}s!==e&&(s=a)}};for(let i of n.children){let n="element"===i.type?e(i):o;if(f(n),"number"!=typeof n){c(),d.push(i);continue}null!=t&&t!==n&&c(),t??=n,u.push(i)}return c(),n.children=d,s}(d),s.push(function(e,n,t){let i="function"==typeof t.lineInfo?t.lineInfo(n):t.lineInfo[n-1];if(null==i){let i=`processLine: line ${n}, contains no state.lineInfo`;throw console.error(i,{node:e,line:n,state:t}),Error(i)}return e.tagName="div",e.properties["data-line"]=i.lineNumber,e.properties["data-alt-line"]=i.altLineNumber,e.properties["data-line-type"]=i.type,e.properties["data-line-index"]=i.lineIndex,0===e.children.length&&e.children.push((0,r.createTextNodeElement)("\n")),e}(d,n,t)),n++);i.children=s}return n},...e?{tokens(e){for(let n of e){let e=0;for(let t of n)t.__lineChar??=e,e+=t.content.length}},preprocess(e,n){n.mergeWhitespaces="never"},span(e,n,t,i,r){if(r?.offset!=null&&null!=r.content){let n=r.__lineChar;null!=n&&(e.properties["data-char"]=n)}return e}}:null}];return n&&i.push(d,s),{state:t,transformers:i,toClass:s}}(x.useTokenTransformer),E="string"==typeof y?{...x,lang:"text",theme:y,transformers:L,decorations:void 0,defaultColor:!1,cssVariablePrefix:u("token")}:{...x,lang:"text",themes:y,transformers:L,decorations:void 0,defaultColor:!1,cssVariablePrefix:u("token")};return{deletionLines:""===e.contents?[]:(E.lang=C,S.lineInfo=h,E.decorations=g,f(m.codeToHast((0,i.cleanLastNewline)(e.contents),E))),additionLines:""===c.contents?[]:(E.lang=k,E.decorations=v,S.lineInfo=p,f(m.codeToHast((0,i.cleanLastNewline)(c.contents),E)))}}({deletionFile:h,deletionInfo:c.deletionInfo,deletionDecorations:c.deletionDecorations,additionFile:p,additionInfo:c.additionInfo,additionDecorations:c.additionDecorations,highlighter:g,options:v,languageOverride:y?"text":e.lang});if(R){T.deletionLines=m,T.additionLines=b;continue}if(c.deletionSegments.length>0)for(let e of c.deletionSegments)for(let n=0;n<e.count;n++)T.deletionLines[e.targetIndex+n]=m[e.originalOffset+n];else T.deletionLines.push(...m);if(c.additionSegments.length>0)for(let e of c.additionSegments)for(let n=0;n<e.count;n++)T.additionLines[e.targetIndex+n]=b[e.originalOffset+n];else T.additionLines.push(...b)}return{code:T,themeStyles:w,baseThemeType:E}}],86710)},36680,e=>{"use strict";let n,t=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class i{constructor(e,n,t){this.normal=n,this.property=e,t&&(this.space=t)}}function r(e,n){let t={},r={};for(let n of e)Object.assign(t,n.property),Object.assign(r,n.normal);return new i(t,r,n)}function o(e){return e.toLowerCase()}i.prototype.normal={},i.prototype.property={},i.prototype.space=void 0;class a{constructor(e,n){this.attribute=n,this.property=e}}a.prototype.attribute="",a.prototype.booleanish=!1,a.prototype.boolean=!1,a.prototype.commaOrSpaceSeparated=!1,a.prototype.commaSeparated=!1,a.prototype.defined=!1,a.prototype.mustUseProperty=!1,a.prototype.number=!1,a.prototype.overloadedBoolean=!1,a.prototype.property="",a.prototype.spaceSeparated=!1,a.prototype.space=void 0;let l=0,s=m(),d=m(),u=m(),c=m(),f=m(),h=m(),p=m();function m(){return 2**++l}e.s(["boolean",0,s,"booleanish",0,d,"commaOrSpaceSeparated",0,p,"commaSeparated",0,h,"number",0,c,"overloadedBoolean",0,u,"spaceSeparated",0,f],58776);var g=e.i(58776);let v=Object.keys(g);class b extends a{constructor(e,n,t,i){let r=-1;if(super(e,n),function(e,n,t){t&&(e[n]=t)}(this,"space",i),"number"==typeof t)for(;++r<v.length;){const e=v[r];!function(e,n,t){t&&(e[n]=t)}(this,v[r],(t&g[e])===g[e])}}}function y(e){let n={},t={};for(let[i,r]of Object.entries(e.properties)){let a=new b(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),n[i]=a,t[o(i)]=i,t[o(a.attribute)]=i}return new i(n,t,e.space)}b.prototype.defined=!0;let x=y({properties:{ariaActiveDescendant:null,ariaAtomic:d,ariaAutoComplete:null,ariaBusy:d,ariaChecked:d,ariaColCount:c,ariaColIndex:c,ariaColSpan:c,ariaControls:f,ariaCurrent:null,ariaDescribedBy:f,ariaDetails:null,ariaDisabled:d,ariaDropEffect:f,ariaErrorMessage:null,ariaExpanded:d,ariaFlowTo:f,ariaGrabbed:d,ariaHasPopup:null,ariaHidden:d,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:f,ariaLevel:c,ariaLive:null,ariaModal:d,ariaMultiLine:d,ariaMultiSelectable:d,ariaOrientation:null,ariaOwns:f,ariaPlaceholder:null,ariaPosInSet:c,ariaPressed:d,ariaReadOnly:d,ariaRelevant:null,ariaRequired:d,ariaRoleDescription:f,ariaRowCount:c,ariaRowIndex:c,ariaRowSpan:c,ariaSelected:d,ariaSetSize:c,ariaSort:null,ariaValueMax:c,ariaValueMin:c,ariaValueNow:c,ariaValueText:null,role:null},transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase()});function C(e,n){return n in e?e[n]:n}function k(e,n){return C(e,n.toLowerCase())}let S=y({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:h,acceptCharset:f,accessKey:f,action:null,allow:null,allowFullScreen:s,allowPaymentRequest:s,allowUserMedia:s,alt:null,as:null,async:s,autoCapitalize:null,autoComplete:f,autoFocus:s,autoPlay:s,blocking:f,capture:null,charSet:null,checked:s,cite:null,className:f,cols:c,colSpan:null,content:null,contentEditable:d,controls:s,controlsList:f,coords:c|h,crossOrigin:null,data:null,dateTime:null,decoding:null,default:s,defer:s,dir:null,dirName:null,disabled:s,download:u,draggable:d,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:s,formTarget:null,headers:f,height:c,hidden:u,high:c,href:null,hrefLang:null,htmlFor:f,httpEquiv:f,id:null,imageSizes:null,imageSrcSet:null,inert:s,inputMode:null,integrity:null,is:null,isMap:s,itemId:null,itemProp:f,itemRef:f,itemScope:s,itemType:f,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:s,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:s,muted:s,name:null,nonce:null,noModule:s,noValidate:s,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:s,optimum:c,pattern:null,ping:f,placeholder:null,playsInline:s,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:s,referrerPolicy:null,rel:f,required:s,reversed:s,rows:c,rowSpan:c,sandbox:f,scope:null,scoped:s,seamless:s,selected:s,shadowRootClonable:s,shadowRootDelegatesFocus:s,shadowRootMode:null,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:d,src:null,srcDoc:null,srcLang:null,srcSet:null,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:s,useMap:null,value:d,width:c,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:f,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:s,declare:s,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:s,noHref:s,noShade:s,noWrap:s,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:d,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:s,disableRemotePlayback:s,prefix:null,property:null,results:c,security:null,unselectable:null},space:"html",transform:k}),L=y({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:p,accentHeight:c,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:c,amplitude:c,arabicForm:null,ascent:c,attributeName:null,attributeType:null,azimuth:c,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:c,by:null,calcMode:null,capHeight:c,className:f,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:c,diffuseConstant:c,direction:null,display:null,dur:null,divisor:c,dominantBaseline:null,download:s,dx:null,dy:null,edgeMode:null,editable:null,elevation:c,enableBackground:null,end:null,event:null,exponent:c,externalResourcesRequired:null,fill:null,fillOpacity:c,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:h,g2:h,glyphName:h,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:c,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:c,horizOriginX:c,horizOriginY:c,id:null,ideographic:c,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:c,k:c,k1:c,k2:c,k3:c,k4:c,kernelMatrix:p,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:c,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:c,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:c,overlineThickness:c,paintOrder:null,panose1:null,path:null,pathLength:c,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:f,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:c,pointsAtY:c,pointsAtZ:c,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:p,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:p,rev:p,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:p,requiredFeatures:p,requiredFonts:p,requiredFormats:p,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:c,specularExponent:c,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:c,strikethroughThickness:c,string:null,stroke:null,strokeDashArray:p,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:c,strokeOpacity:c,strokeWidth:null,style:null,surfaceScale:c,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:p,tabIndex:c,tableValues:null,target:null,targetX:c,targetY:c,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:p,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:c,underlineThickness:c,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:c,values:null,vAlphabetic:c,vMathematical:c,vectorEffect:null,vHanging:c,vIdeographic:c,version:null,vertAdvY:c,vertOriginX:c,vertOriginY:c,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:c,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:C}),E=y({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,n)=>"xlink:"+n.slice(5).toLowerCase()}),w=y({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:k}),A=y({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase()}),T=r([x,S,E,w,A],"html"),I=r([x,L,E,w,A],"svg"),R={}.hasOwnProperty,N=/["&'<>`]/g,D=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,M=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,P=/[|\\{}()[\]^$+*?.]/g,H=new WeakMap,O=/[\dA-Fa-f]/,F=/\d/,U=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],B={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},_=["cent","copy","divide","gt","lt","not","para","times"],z={}.hasOwnProperty,$={};for(n in B)z.call(B,n)&&($[B[n]]=n);let G=/[^\dA-Za-z]/;function j(e,n,t){var i,r;let o,a,l=(i=t.omitOptionalSemicolons,o="&#x"+e.toString(16).toUpperCase(),i&&n&&!O.test(String.fromCharCode(n))?o:o+";");if((t.useNamedReferences||t.useShortestReferences)&&(a=function(e,n,t,i){let r=String.fromCharCode(e);if(z.call($,r)){let e=$[r],o="&"+e;return t&&U.includes(e)&&!_.includes(e)&&(!i||n&&61!==n&&G.test(String.fromCharCode(n)))?o:o+";"}return""}(e,n,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!a)&&t.useShortestReferences){let i,o=(r=t.omitOptionalSemicolons,i="&#"+String(e),r&&n&&!F.test(String.fromCharCode(n))?i:i+";");o.length<l.length&&(l=o)}return a&&(!t.useShortestReferences||a.length<l.length)?a:l}function W(e,n){let t;var i,r=e,o=Object.assign({format:j},n);if(r=r.replace(o.subset?(i=o.subset,(t=H.get(i))||(t=function(e){let n=[],t=-1;for(;++t<e.length;)n.push(e[t].replace(P,"\\$&"));return RegExp("(?:"+n.join("|")+")","g")}(i),H.set(i,t)),t):N,a),o.subset||o.escapeOnly)return r;return r.replace(D,function(e,n,t){return o.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,t.charCodeAt(n+2),o)}).replace(M,a);function a(e,n,t){return o.format(e.charCodeAt(0),t.charCodeAt(n+1),o)}}let q=/^>|^->|<!--|-->|--!>|<!-$/g,K=[">"],V=["<",">"];function X(e,n){let t=String(e);if("string"!=typeof n)throw TypeError("Expected character");let i=0,r=t.indexOf(n);for(;-1!==r;)i++,r=t.indexOf(n,r+n.length);return i}let Y=/[A-Z]/g,Z=/-[a-z]/g,J=/^data[-\w.:]+$/i;function Q(e){return"-"+e.toLowerCase()}function ee(e){return e.charAt(1).toUpperCase()}let en=/[ \t\n\f\r]/g;function et(e){return"object"==typeof e?"text"===e.type&&ei(e.value):ei(e)}function ei(e){return""===e.replace(en,"")}let er=el(1),eo=el(-1),ea=[];function el(e){return function(n,t,i){let r=n?n.children:ea,o=(t||0)+e,a=r[o];if(!i)for(;a&&et(a);)o+=e,a=r[o];return a}}let es={}.hasOwnProperty;function ed(e){return function(n,t,i){return es.call(e,n.tagName)&&e[n.tagName](n,t,i)}}let eu=ed({body:function(e,n,t){let i=er(t,n);return!i||"comment"!==i.type},caption:ec,colgroup:ec,dd:function(e,n,t){let i=er(t,n);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName)},dt:function(e,n,t){let i=er(t,n);return!!(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName))},head:ec,html:function(e,n,t){let i=er(t,n);return!i||"comment"!==i.type},li:function(e,n,t){let i=er(t,n);return!i||"element"===i.type&&"li"===i.tagName},optgroup:function(e,n,t){let i=er(t,n);return!i||"element"===i.type&&"optgroup"===i.tagName},option:function(e,n,t){let i=er(t,n);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName)},p:function(e,n,t){let i=er(t,n);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!t||"element"!==t.type||"a"!==t.tagName&&"audio"!==t.tagName&&"del"!==t.tagName&&"ins"!==t.tagName&&"map"!==t.tagName&&"noscript"!==t.tagName&&"video"!==t.tagName},rp:ef,rt:ef,tbody:function(e,n,t){let i=er(t,n);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName)},td:eh,tfoot:function(e,n,t){return!er(t,n)},th:eh,thead:function(e,n,t){let i=er(t,n);return!!(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName))},tr:function(e,n,t){let i=er(t,n);return!i||"element"===i.type&&"tr"===i.tagName}});function ec(e,n,t){let i=er(t,n,!0);return!i||"comment"!==i.type&&!("text"===i.type&&et(i.value.charAt(0)))}function ef(e,n,t){let i=er(t,n);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName)}function eh(e,n,t){let i=er(t,n);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName)}let ep=ed({body:function(e){let n=er(e,-1,!0);return!n||"comment"!==n.type&&!("text"===n.type&&et(n.value.charAt(0)))&&("element"!==n.type||"meta"!==n.tagName&&"link"!==n.tagName&&"script"!==n.tagName&&"style"!==n.tagName&&"template"!==n.tagName)},colgroup:function(e,n,t){let i=eo(t,n),r=er(e,-1,!0);return!(t&&i&&"element"===i.type&&"colgroup"===i.tagName&&eu(i,t.children.indexOf(i),t))&&!!(r&&"element"===r.type&&"col"===r.tagName)},head:function(e){let n=new Set;for(let t of e.children)if("element"===t.type&&("base"===t.tagName||"title"===t.tagName)){if(n.has(t.tagName))return!1;n.add(t.tagName)}let t=e.children[0];return!t||"element"===t.type},html:function(e){let n=er(e,-1);return!n||"comment"!==n.type},tbody:function(e,n,t){let i=eo(t,n),r=er(e,-1);return!(t&&i&&"element"===i.type&&("thead"===i.tagName||"tbody"===i.tagName)&&eu(i,t.children.indexOf(i),t))&&!!(r&&"element"===r.type&&"tr"===r.tagName)}}),em={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},eg=["<","&"];function ev(e,n,t,i){return t&&"element"===t.type&&("script"===t.tagName||"style"===t.tagName)?e.value:W(e.value,Object.assign({},i.settings.characterReferences,{subset:eg}))}let eb=function(e,n){let t=n||{};function i(n,...t){let r=i.invalid,o=i.handlers;if(n&&R.call(n,e)){let t=String(n[e]);r=R.call(o,t)?o[t]:i.unknown}if(r)return r.call(this,n,...t)}return i.handlers=t.handlers||{},i.invalid=t.invalid,i.unknown=t.unknown,i}("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,n,t,i){return i.settings.bogusComments?"<?"+W(e.value,Object.assign({},i.settings.characterReferences,{subset:K}))+">":"<!--"+e.value.replace(q,function(e){return W(e,Object.assign({},i.settings.characterReferences,{subset:V}))})+"-->"},doctype:function(e,n,t,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"},element:function(e,n,t,i){let r,l=i.schema,s="svg"!==l.space&&i.settings.omitOptionalTags,d="svg"===l.space?i.settings.closeEmptyElements:i.settings.voids.includes(e.tagName.toLowerCase()),u=[];"html"===l.space&&"svg"===e.tagName&&(i.schema=I);let c=function(e,n){let t,i=[],r=-1;if(n){for(t in n)if(null!==n[t]&&void 0!==n[t]){let r=function(e,n,t){let i,r=function(e,n){let t=o(n),i=n,r=a;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&"data"===t.slice(0,4)&&J.test(n)){if("-"===n.charAt(4)){let e=n.slice(5).replace(Z,ee);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=n.slice(4);if(!Z.test(e)){let t=e.replace(Y,Q);"-"!==t.charAt(0)&&(t="-"+t),n="data"+t}}r=b}return new r(i,n)}(e.schema,n),l=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,s=+!e.settings.allowDangerousCharacters,d=e.quote;if(r.overloadedBoolean&&(t===r.attribute||""===t)?t=!0:(r.boolean||r.overloadedBoolean)&&("string"!=typeof t||t===r.attribute||""===t)&&(t=!!t),null==t||!1===t||"number"==typeof t&&Number.isNaN(t))return"";let u=W(r.attribute,Object.assign({},e.settings.characterReferences,{subset:em.name[l][s]}));return!0===t||(t=Array.isArray(t)?(r.commaSeparated?function(e,n){let t=n||{};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}:function(e){return e.join(" ").trim()})(t,{padLeft:!e.settings.tightCommaSeparatedLists}):String(t),e.settings.collapseEmptyAttributes&&!t)?u:(e.settings.preferUnquoted&&(i=W(t,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:em.unquoted[l][s]}))),i!==t&&(e.settings.quoteSmart&&X(t,d)>X(t,e.alternative)&&(d=e.alternative),i=d+W(t,Object.assign({},e.settings.characterReferences,{subset:("'"===d?em.single:em.double)[l][s],attribute:!0}))+d),u+(i?"="+i:i))}(e,t,n[t]);r&&i.push(r)}}for(;++r<i.length;){let n=e.settings.tightAttributes?i[r].charAt(i[r].length-1):void 0;r!==i.length-1&&'"'!==n&&"'"!==n&&(i[r]+=" ")}return i.join("")}(i,e.properties),f=i.all("html"===l.space&&"template"===e.tagName?e.content:e);return i.schema=l,f&&(d=!1),!c&&s&&ep(e,n,t)||(u.push("<",e.tagName,c?" "+c:""),d&&("svg"===l.space||i.settings.closeSelfClosing)&&(r=c.charAt(c.length-1),(!i.settings.tightSelfClosing||"/"===r||r&&'"'!==r&&"'"!==r)&&u.push(" "),u.push("/")),u.push(">")),u.push(f),d||s&&eu(e,n,t)||u.push("</"+e.tagName+">"),u.join("")},raw:function(e,n,t,i){return i.settings.allowDangerousHtml?e.value:ev(e,n,t,i)},root:function(e,n,t,i){return i.all(e)},text:ev}}),ey={},ex={},eC=[];function ek(e,n,t){return eb(e,n,t,this)}function eS(e){let n=[],t=e&&e.children||eC,i=-1;for(;++i<t.length;)n[i]=this.one(t[i],i,e);return n.join("")}e.s(["toHtml",0,function(e,n){let i=n||ey,r=i.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:ek,all:eS,settings:{omitOptionalTags:i.omitOptionalTags||!1,allowParseErrors:i.allowParseErrors||!1,allowDangerousCharacters:i.allowDangerousCharacters||!1,quoteSmart:i.quoteSmart||!1,preferUnquoted:i.preferUnquoted||!1,tightAttributes:i.tightAttributes||!1,upperDoctype:i.upperDoctype||!1,tightDoctype:i.tightDoctype||!1,bogusComments:i.bogusComments||!1,tightCommaSeparatedLists:i.tightCommaSeparatedLists||!1,tightSelfClosing:i.tightSelfClosing||!1,collapseEmptyAttributes:i.collapseEmptyAttributes||!1,allowDangerousHtml:i.allowDangerousHtml||!1,voids:i.voids||t,characterReferences:i.characterReferences||ex,closeSelfClosing:i.closeSelfClosing||!1,closeEmptyElements:i.closeEmptyElements||!1},schema:"svg"===i.space?I:T,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}],36680)},8704,e=>e.a(async(n,t)=>{try{var i=e.i(90578),r=e.i(52205),o=e.i(82430),a=e.i(27505),l=e.i(10498),s=e.i(199),d=e.i(63063),u=e.i(89880),c=e.i(58337),f=e.i(43530),h=e.i(72215),p=e.i(49896),m=e.i(59808),g=e.i(78127),v=e.i(10817),b=e.i(10363),y=e.i(3717),x=e.i(87838),C=e.i(20354),k=e.i(4940),S=e.i(28818),L=e.i(1337),E=e.i(69767),w=e.i(86710),A=e.i(36680),T=n([a]);[a]=T.then?(await T)():T;let O=-1;var I=class{__id=`diff-hunks-renderer:${++O}`;highlighter;diff;expandedHunks=new Map;deletionAnnotations={};additionAnnotations={};computedLang="text";renderCache;constructor(e={theme:i.DEFAULT_THEMES},n,t){this.options=e,this.onRenderUpdate=n,this.workerManager=t,t?.isWorkingPool()!==!0&&(this.highlighter=(0,l.areThemesAttached)(e.theme??i.DEFAULT_THEMES)?(0,a.getHighlighterIfLoaded)():void 0)}cleanUp(){this.highlighter=void 0,this.diff=void 0,this.renderCache=void 0,this.workerManager?.cleanUpPendingTasks(this),this.workerManager=void 0,this.onRenderUpdate=void 0}recycle(){this.highlighter=void 0,this.diff=void 0,this.renderCache=void 0,this.workerManager?.cleanUpPendingTasks(this)}setOptions(e){this.options=e}mergeOptions(e){this.options={...this.options,...e}}expandHunk(e,n,t=this.getOptionsWithDefaults().expansionLineCount){let i={...this.expandedHunks.get(e)??{fromStart:0,fromEnd:0}};("up"===n||"both"===n)&&(i.fromStart+=t),("down"===n||"both"===n)&&(i.fromEnd+=t),this.renderCache?.highlighted!==!0&&(this.renderCache=void 0),this.expandedHunks.set(e,i)}getExpandedHunk(e){return this.expandedHunks.get(e)??i.DEFAULT_EXPANDED_REGION}getExpandedHunksMap(){return this.expandedHunks}setLineAnnotations(e){for(let n of(this.additionAnnotations={},this.deletionAnnotations={},e)){let e=(()=>{switch(n.side){case"deletions":return this.deletionAnnotations;case"additions":return this.additionAnnotations}})(),t=e[n.lineNumber]??[];e[n.lineNumber]=t,t.push(n)}}getUnifiedLineDecoration({lineType:e}){return{gutterLineType:e}}getSplitLineDecoration({side:e,type:n}){return"change"!==n?{gutterLineType:n}:{gutterLineType:"deletions"===e?"change-deletion":"change-addition"}}createAnnotationElement(e){return(0,d.createAnnotationElement)(e)}getOptionsWithDefaults(){let{diffIndicators:e="bars",diffStyle:n="split",disableBackground:t=!1,disableFileHeader:r=!1,disableLineNumbers:o=!1,disableVirtualizationBuffers:a=!1,collapsed:l=!1,expandUnchanged:s=!1,collapsedContextThreshold:d=i.DEFAULT_COLLAPSED_CONTEXT_THRESHOLD,expansionLineCount:u=100,hunkSeparators:c="line-info",lineDiffType:f="word-alt",maxLineDiffLength:h=1e3,overflow:p="scroll",theme:m=i.DEFAULT_THEMES,headerRenderMode:g="default",tokenizeMaxLineLength:v=1e3,useTokenTransformer:b=!1,useCSSClasses:y=!1}=this.options;return{diffIndicators:e,diffStyle:n,disableBackground:t,disableFileHeader:r,disableLineNumbers:o,disableVirtualizationBuffers:a,collapsed:l,expandUnchanged:s,collapsedContextThreshold:d,expansionLineCount:u,hunkSeparators:c,lineDiffType:f,maxLineDiffLength:h,overflow:p,theme:this.workerManager?.getDiffRenderOptions().theme??m,headerRenderMode:g,tokenizeMaxLineLength:v,useTokenTransformer:b,useCSSClasses:y}}async initializeHighlighter(){return this.highlighter=await (0,a.getSharedHighlighter)((0,p.getHighlighterOptions)(this.computedLang,this.options)),this.highlighter}hydrate(e){if(null==e)return;this.diff=e;let{options:n}=this.getRenderOptions(e),t=this.workerManager?.getDiffResultCache(e);null==t||(0,v.areDiffRenderOptionsEqual)(n,t.options)||(t=void 0),this.renderCache??={diff:e,highlighted:!(0,L.isDiffPlainText)(e),options:n,result:t?.result,renderRange:void 0},this.workerManager?.isWorkingPool()===!0?null==this.renderCache.result&&this.workerManager.highlightDiffAST(this,this.diff):null==this.highlighter&&(this.computedLang=e.lang??(0,h.getFiletypeFromFileName)(e.name),this.initializeHighlighter())}getRenderOptions(e){let n=(()=>{if(this.workerManager?.isWorkingPool()===!0)return this.workerManager.getDiffRenderOptions();let{theme:e,tokenizeMaxLineLength:n,lineDiffType:t,maxLineDiffLength:i}=this.getOptionsWithDefaults();return{theme:e,useTokenTransformer:(0,g.shouldUseTokenTransformer)(this.options),tokenizeMaxLineLength:n,lineDiffType:t,maxLineDiffLength:i}})();this.getOptionsWithDefaults();let{renderCache:t}=this;return t?.result!=null&&e===t.diff&&(0,v.areDiffRenderOptionsEqual)(n,t.options)?{options:n,forceRender:!1}:{options:n,forceRender:!0}}renderDiff(e=this.renderCache?.diff,n=i.DEFAULT_RENDER_RANGE){if(null==e)return;let{expandUnchanged:t=!1,collapsedContextThreshold:r}=this.getOptionsWithDefaults(),a=this.workerManager?.getDiffResultCache(e);null!=a&&null==this.renderCache&&(this.renderCache={diff:e,highlighted:!0,renderRange:void 0,...a});let{options:d,forceRender:u}=this.getRenderOptions(e);if(this.renderCache??={diff:e,highlighted:!1,options:d,result:void 0,renderRange:void 0},this.workerManager?.isWorkingPool()===!0)null!=this.renderCache.result&&(this.renderCache.highlighted||e===this.renderCache.diff&&(0,s.areRenderRangesEqual)(this.renderCache.renderRange,n))||(this.renderCache.diff=e,this.renderCache.result=this.workerManager.getPlainDiffAST(e,n.startingLine,n.totalLines,!!(0,S.isDefaultRenderRange)(n)||!!t||this.expandedHunks,r),this.renderCache.renderRange=n),n.totalLines>0&&(!this.renderCache.highlighted||u)&&this.workerManager.highlightDiffAST(this,e);else{this.computedLang=e.lang??(0,h.getFiletypeFromFileName)(e.name);let n=null!=this.highlighter&&(0,l.areThemesAttached)(d.theme),t=null!=this.highlighter&&(0,o.areLanguagesAttached)(this.computedLang);if(null!=this.highlighter&&n&&(u||!this.renderCache.highlighted&&t||null==this.renderCache.result)){let{result:n,options:i}=this.renderDiffWithHighlighter(e,this.highlighter,!t);this.renderCache={diff:e,options:i,highlighted:t,result:n,renderRange:void 0}}n&&t||this.asyncHighlight(e).then(({result:n,options:t})=>{null!=this.renderCache&&(this.renderCache.highlighted=!1),this.onHighlightSuccess(e,n,t)})}return null!=this.renderCache.result?this.processDiffResult(this.renderCache.diff,n,this.renderCache.result):void 0}async asyncRender(e,n=i.DEFAULT_RENDER_RANGE){let{result:t}=await this.asyncHighlight(e);return this.processDiffResult(e,n,t)}createPreElement(e,n,t){let{diffIndicators:i,disableBackground:r,disableLineNumbers:o,overflow:a}=this.getOptionsWithDefaults();return(0,f.createPreElement)({type:"diff",diffIndicators:i,disableBackground:r,disableLineNumbers:o,overflow:a,split:e,totalLines:n,customProperties:t})}async asyncHighlight(e){this.computedLang=e.lang??(0,h.getFiletypeFromFileName)(e.name);let n=null!=this.highlighter&&(0,l.areThemesAttached)(this.options.theme??i.DEFAULT_THEMES),t=null!=this.highlighter&&(0,o.areLanguagesAttached)(this.computedLang);return null!=this.highlighter&&n&&t||(this.highlighter=await this.initializeHighlighter()),this.renderDiffWithHighlighter(e,this.highlighter)}renderDiffWithHighlighter(e,n,t=!1){let{options:i}=this.getRenderOptions(e),{collapsedContextThreshold:r}=this.getOptionsWithDefaults();return{result:(0,w.renderDiffWithHighlighter)(e,n,i,{forcePlainText:t,expandedHunks:!!t||void 0,collapsedContextThreshold:r}),options:i}}onHighlightSuccess(e,n,t){if(null==this.renderCache)return;let i=!this.renderCache.highlighted||!(0,v.areDiffRenderOptionsEqual)(this.renderCache.options,t)||this.renderCache.diff!==e;this.renderCache={diff:e,options:t,highlighted:!0,result:n,renderRange:void 0},i&&this.onRenderUpdate?.()}onHighlightError(e){console.error(e)}processDiffResult(e,n,{code:t,themeStyles:i,baseThemeType:o}){let{diffStyle:a,disableFileHeader:l,expandUnchanged:s,expansionLineCount:d,collapsedContextThreshold:u,hunkSeparators:c}=this.getOptionsWithDefaults();this.diff=e;let f="unified"===a,h=[],p=[],m=[],g=[],{additionLines:v,deletionLines:x}=t,C={rowCount:0,hunkSeparators:c,additionsContentAST:h,deletionsContentAST:p,unifiedContentAST:m,unifiedGutterAST:(0,r.createGutterWrapper)(),deletionsGutterAST:(0,r.createGutterWrapper)(),additionsGutterAST:(0,r.createGutterWrapper)(),expansionLineCount:d,hunkData:g,incrementRowCount(e=1){C.rowCount+=e},pushToGutter(e,n){switch(e){case"unified":C.unifiedGutterAST.children.push(n);break;case"deletions":C.deletionsGutterAST.children.push(n);break;case"additions":C.additionsGutterAST.children.push(n)}}},S=function(e){let n=e.hunks.at(-1);if(null==n||e.isPartial||0===e.additionLines.length||0===e.deletionLines.length)return 0;let t=e.additionLines.length-(n.additionLineIndex+n.additionCount),i=e.deletionLines.length-(n.deletionLineIndex+n.deletionCount);if(t!==i)throw Error(`DiffHunksRenderer.processDiffResult: trailing context mismatch (additions=${t}, deletions=${i}) for ${e.name}`);return Math.min(t,i)}(e),L={size:0,side:void 0,increment(){this.size+=1},flush(){if("unified"!==a){if(this.size<=0||null==this.side){this.side=void 0,this.size=0;return}"additions"===this.side?(C.pushToGutter("additions",(0,r.createGutterGap)(void 0,"buffer",this.size)),h?.push((0,b.createEmptyRowBuffer)(this.size))):(C.pushToGutter("deletions",(0,r.createGutterGap)(void 0,"buffer",this.size)),p?.push((0,b.createEmptyRowBuffer)(this.size))),this.size=0,this.side=void 0}}},w=(e,n,t,i,o)=>{C.pushToGutter(e,(0,r.createGutterItem)(n,t,i,o))};function A(e){L.flush(),"unified"===a?P("unified",e,C):(P("deletions",e,C),P("additions",e,C))}(0,E.iterateOverDiff)({diff:e,diffStyle:a,startingLine:n.startingLine,totalLines:n.totalLines,expandedHunks:!!s||this.expandedHunks,collapsedContextThreshold:u,callback:({hunkIndex:n,hunk:t,collapsedBefore:i,collapsedAfter:o,additionLine:l,deletionLine:s,type:d})=>{let u=null!=s?s.splitLineIndex:l.splitLineIndex,f=null!=l?l.unifiedLineIndex:s.unifiedLineIndex;"split"===a&&"change"!==d&&L.flush(),i>0&&A({hunkIndex:n,collapsedLines:i,rangeSize:Math.max(t?.collapsedBefore??0,0),hunkSpecs:t?.hunkSpecs,isFirstHunk:0===n,isLastHunk:!1,isExpandable:!e.isPartial});let h="unified"===a?f:u,p={type:d,hunkIndex:n,lineIndex:h,unifiedLineIndex:f,splitLineIndex:u,deletionLine:s,additionLine:l};if("unified"===a){let t=this.getUnifiedInjectedRowsForLine?.(p);t?.before!=null&&N(t.before,C);let i=null!=s?x[s.lineIndex]:void 0,r=null!=l?v[l.lineIndex]:void 0;if(null==i&&null==r){let n="DiffHunksRenderer.processDiffResult: deletionLine and additionLine are null, something is wrong";throw console.error(n,{file:e.name}),Error(n)}let o="change"===d?null!=l?"change-addition":"change-deletion":d,a=this.getUnifiedLineDecoration({type:d,lineType:o,additionLineIndex:l?.lineIndex,deletionLineIndex:s?.lineIndex});w("unified",a.gutterLineType,null!=l?l.lineNumber:s.lineNumber,`${f},${u}`,a.gutterProperties),null!=r?r=H(r,a.contentProperties):null!=i&&(i=H(i,a.contentProperties)),M({diffStyle:"unified",type:d,deletionLine:i,additionLine:r,unifiedSpan:this.getAnnotations("unified",s?.lineNumber,l?.lineNumber,n,h),createAnnotationElement:e=>this.createAnnotationElement(e),context:C}),t?.after!=null&&N(t.after,C)}else{let t=this.getSplitInjectedRowsForLine?.(p);t?.before!=null&&D(t.before,C,L);let i=null!=s?x[s.lineIndex]:void 0,r=null!=l?v[l.lineIndex]:void 0,o=this.getSplitLineDecoration({side:"deletions",type:d,lineIndex:s?.lineIndex}),a=this.getSplitLineDecoration({side:"additions",type:d,lineIndex:l?.lineIndex});if(null==i&&null==r){let n="DiffHunksRenderer.processDiffResult: deletionLine and additionLine are null, something is wrong";throw console.error(n,{file:e.name}),Error(n)}let c=(()=>{if("change"===d){if(null==r)return"additions";else if(null==i)return"deletions"}})();if(null!=c){if(null!=L.side&&L.side!==c)throw Error("DiffHunksRenderer.processDiffResult: iterateOverDiff, invalid pending splits");L.side=c,L.increment()}let f=this.getAnnotations("split",s?.lineNumber,l?.lineNumber,n,h);if(null!=f&&L.size>0&&L.flush(),null!=s){let e=H(i,o.contentProperties);w("deletions",o.gutterLineType,s.lineNumber,`${s.unifiedLineIndex},${u}`,o.gutterProperties),null!=e&&(i=e)}if(null!=l){let e=H(r,a.contentProperties);w("additions",a.gutterLineType,l.lineNumber,`${l.unifiedLineIndex},${u}`,a.gutterProperties),null!=e&&(r=e)}M({diffStyle:"split",type:d,additionLine:r,deletionLine:i,...f,createAnnotationElement:e=>this.createAnnotationElement(e),context:C}),t?.after!=null&&D(t.after,C,L)}let m=s?.noEOFCR??!1,g=l?.noEOFCR??!1;if(g||m){if(m){let e="context"===d||"context-expanded"===d?d:"change-deletion";"unified"===a?(C.unifiedContentAST.push((0,y.createNoNewlineElement)(e)),C.pushToGutter("unified",(0,r.createGutterGap)(e,"metadata",1))):(C.deletionsContentAST.push((0,y.createNoNewlineElement)(e)),C.pushToGutter("deletions",(0,r.createGutterGap)(e,"metadata",1)),g||(C.pushToGutter("additions",(0,r.createGutterGap)(void 0,"buffer",1)),C.additionsContentAST.push((0,b.createEmptyRowBuffer)(1))))}if(g){let e="context"===d||"context-expanded"===d?d:"change-addition";"unified"===a?(C.unifiedContentAST.push((0,y.createNoNewlineElement)(e)),C.pushToGutter("unified",(0,r.createGutterGap)(e,"metadata",1))):(C.additionsContentAST.push((0,y.createNoNewlineElement)(e)),C.pushToGutter("additions",(0,r.createGutterGap)(e,"metadata",1)),m||(C.pushToGutter("deletions",(0,r.createGutterGap)(void 0,"buffer",1)),C.deletionsContentAST.push((0,b.createEmptyRowBuffer)(1))))}C.incrementRowCount(1)}o>0&&"simple"!==c&&A({hunkIndex:"context-expanded"===d?n:n+1,collapsedLines:o,rangeSize:S,hunkSpecs:void 0,isFirstHunk:!1,isLastHunk:!0,isExpandable:!e.isPartial}),C.incrementRowCount(1)}}),"split"===a&&L.flush();let T=Math.max((0,k.getTotalLineCountFromHunks)(e.hunks),e.additionLines.length??0,e.deletionLines.length??0),I=n.bufferBefore>0||n.bufferAfter>0,R=!f&&"deleted"!==e.type,O=!f&&"new"!==e.type,F=C.rowCount>0||I;h=R&&F?h:void 0,p=O&&F?p:void 0,m=f&&F?m:void 0;let U=this.createPreElement(null!=p&&null!=h,T);return{unifiedGutterAST:f&&F?C.unifiedGutterAST.children:void 0,unifiedContentAST:m,deletionsGutterAST:O&&F?C.deletionsGutterAST.children:void 0,deletionsContentAST:p,additionsGutterAST:R&&F?C.additionsGutterAST.children:void 0,additionsContentAST:h,hunkData:g,preNode:U,themeStyles:i,baseThemeType:o,headerElement:l?void 0:this.renderHeader(this.diff),totalLines:T,rowCount:C.rowCount,bufferBefore:n.bufferBefore,bufferAfter:n.bufferAfter,css:""}}renderCodeAST(e,n){let t="unified"===e?n.unifiedGutterAST:"deletions"===e?n.deletionsGutterAST:n.additionsGutterAST,i="unified"===e?n.unifiedContentAST:"deletions"===e?n.deletionsContentAST:n.additionsContentAST;if(null==t||null==i)return;let o=(0,r.createGutterWrapper)(t);return o.properties.style=`grid-row: span ${n.rowCount}`,[o,(0,u.createContentColumn)(i,n.rowCount)]}renderFullAST(e,n=[]){let t="line-info"===this.getOptionsWithDefaults().hunkSeparators,i=this.renderCodeAST("unified",e);if(null!=i)return n.push((0,r.createHastElement)({tagName:"code",children:i,properties:{"data-code":"","data-container-size":t?"":void 0,"data-unified":""}})),{...e.preNode,children:n};let o=this.renderCodeAST("deletions",e);null!=o&&n.push((0,r.createHastElement)({tagName:"code",children:o,properties:{"data-code":"","data-container-size":t?"":void 0,"data-deletions":""}}));let a=this.renderCodeAST("additions",e);return null!=a&&n.push((0,r.createHastElement)({tagName:"code",children:a,properties:{"data-code":"","data-container-size":t?"":void 0,"data-additions":""}})),{...e.preNode,children:n}}renderFullHTML(e,n=[]){return(0,A.toHtml)(this.renderFullAST(e,n))}renderPartialHTML(e,n){return null==n?(0,A.toHtml)(e):(0,A.toHtml)((0,r.createHastElement)({tagName:"code",children:e,properties:{"data-code":"","data-container-size":"line-info"===this.getOptionsWithDefaults().hunkSeparators?"":void 0,[`data-${n}`]:""}}))}getAnnotations(e,n,t,i,r){let o={type:"annotation",hunkIndex:i,lineIndex:r,annotations:[]};if(null!=n)for(let e of this.deletionAnnotations[n]??[])o.annotations.push((0,m.getLineAnnotationName)(e));let a={type:"annotation",hunkIndex:i,lineIndex:r,annotations:[]};if(null!=t)for(let n of this.additionAnnotations[t]??[])("unified"===e?o:a).annotations.push((0,m.getLineAnnotationName)(n));return"unified"===e?o.annotations.length>0?o:void 0:0!==a.annotations.length||0!==o.annotations.length?{deletionSpan:o,additionSpan:a}:void 0}renderHeader(e){let{headerRenderMode:n}=this.getOptionsWithDefaults();return(0,c.createFileHeaderElement)({fileOrDiff:e,mode:n})}};function R(e){return`${e} unmodified line${e>1?"s":""}`}function N(e,n){for(let t of e)n.unifiedContentAST.push(t.content),n.pushToGutter("unified",t.gutter),n.incrementRowCount(1)}function D(e,n,t){for(let{deletion:i,addition:r}of e){if(null==i&&null==r)continue;let e=null!=i&&null!=r?void 0:null==i?"deletions":"additions";(null==e||t.side!==e)&&t.flush(),null!=i&&(n.deletionsContentAST.push(i.content),n.pushToGutter("deletions",i.gutter)),null!=r&&(n.additionsContentAST.push(r.content),n.pushToGutter("additions",r.gutter)),null!=e&&(t.side=e,t.increment()),n.incrementRowCount(1)}}function M({diffStyle:e,type:n,deletionLine:t,additionLine:i,unifiedSpan:o,deletionSpan:a,additionSpan:l,createAnnotationElement:s,context:d}){let u=!1;"unified"===e?(null!=i?d.unifiedContentAST.push(i):null!=t&&d.unifiedContentAST.push(t),null!=o&&(d.unifiedContentAST.push(s(o)),d.pushToGutter("unified",(0,r.createGutterGap)("change"===n?null!=t?"change-deletion":"change-addition":n,"annotation",1)),u=!0)):"split"===e&&(null!=t&&d.deletionsContentAST.push(t),null!=i&&d.additionsContentAST.push(i),null!=a&&(d.deletionsContentAST.push(s(a)),d.pushToGutter("deletions",(0,r.createGutterGap)("change"===n?null!=t?"change-deletion":"context":n,"annotation",1)),u=!0),null!=l&&(d.additionsContentAST.push(s(l)),d.pushToGutter("additions",(0,r.createGutterGap)("change"===n?null!=i?"change-addition":"context":n,"annotation",1)),u=!0)),u&&d.incrementRowCount(1)}function P(e,{hunkIndex:n,collapsedLines:t,rangeSize:i,hunkSpecs:r,isFirstHunk:o,isLastHunk:a,isExpandable:l},s){if(t<=0)return;let d="unified"===e?s.unifiedContentAST:"deletions"===e?s.deletionsContentAST:s.additionsContentAST;if("metadata"===s.hunkSeparators){null!=r&&(s.pushToGutter(e,(0,x.createSeparator)({type:"metadata",content:r,isFirstHunk:o,isLastHunk:a})),d.push((0,x.createSeparator)({type:"metadata",content:r,isFirstHunk:o,isLastHunk:a})),"additions"!==e&&s.incrementRowCount(1));return}if("simple"===s.hunkSeparators){n>0&&(s.pushToGutter(e,(0,x.createSeparator)({type:"simple",isFirstHunk:o,isLastHunk:!1})),d.push((0,x.createSeparator)({type:"simple",isFirstHunk:o,isLastHunk:!1})),"additions"!==e&&s.incrementRowCount(1));return}let u=(0,C.getHunkSeparatorSlotName)(e,n),c=i>s.expansionLineCount,f=l?n:void 0;s.pushToGutter(e,(0,x.createSeparator)({type:s.hunkSeparators,content:R(t),expandIndex:f,chunked:c,slotName:u,isFirstHunk:o,isLastHunk:a})),d.push((0,x.createSeparator)({type:s.hunkSeparators,content:R(t),expandIndex:f,chunked:c,slotName:u,isFirstHunk:o,isLastHunk:a})),"additions"!==e&&s.incrementRowCount(1),s.hunkData.push({slotName:u,hunkIndex:n,lines:t,type:e,expandable:l?{up:!o,down:!a,chunked:c}:void 0})}function H(e,n){return null==e||"element"!==e.type||null==n?e:{...e,properties:{...e.properties,...n}}}e.s(["DiffHunksRenderer",0,I]),t()}catch(e){t(e)}},!1),40103,e=>{"use strict";var n=e.i(90578),t=e.i(92447);function i(e,{cacheKey:o,isGitDiff:a=n.GIT_DIFF_FILE_BREAK_REGEX.test(e),oldFile:l,newFile:s,throwOnError:d=!1}={}){let u,c=0,f=e.split(n.FILE_CONTEXT_BLOB),h=null==l||null==s,p=0,m=0;for(let e of f){let i,f,g=e.split(n.SPLIT_WITH_NEWLINES),v=g.shift();if(null==v){if(d)throw Error("parsePatchContent: invalid hunk");console.error("parsePatchContent: invalid hunk",e);continue}let b=v.match(n.HUNK_HEADER),y=0,x=0;if(null==b||null==u){if(null!=u){if(d)throw Error("parsePatchContent: Invalid hunk");console.error("parsePatchContent: Invalid hunk",e);continue}for(let e of(1===(u={name:"",type:"change",hunks:[],splitLineCount:0,unifiedLineCount:0,isPartial:h,additionLines:h||null==l||null==s?[]:s.contents.split(n.SPLIT_WITH_NEWLINES),deletionLines:h||null==l||null==s?[]:l.contents.split(n.SPLIT_WITH_NEWLINES),cacheKey:o}).additionLines.length&&s?.contents===""&&(u.additionLines.length=0),1===u.deletionLines.length&&l?.contents===""&&(u.deletionLines.length=0),g.unshift(v),g)){let t=e.match(a?n.FILENAME_HEADER_REGEX_GIT:n.FILENAME_HEADER_REGEX);if(e.startsWith("diff --git")){let[,,t,,i]=e.trim().match(n.ALTERNATE_FILE_NAMES_GIT)??[];u.name=i.trim(),t!==i&&(u.prevName=t.trim())}else if(null!=t){let[,e,n]=t;"---"===e&&"/dev/null"!==n?(u.prevName=n.trim(),u.name=n.trim()):"+++"===e&&"/dev/null"!==n&&(u.name=n.trim())}else if(a){if(e.startsWith("new mode ")&&(u.mode=e.replace("new mode","").trim()),e.startsWith("old mode ")&&(u.prevMode=e.replace("old mode","").trim()),e.startsWith("new file mode")&&(u.type="new",u.mode=e.replace("new file mode","").trim()),e.startsWith("deleted file mode")&&(u.type="deleted",u.mode=e.replace("deleted file mode","").trim()),e.startsWith("similarity index")&&(e.startsWith("similarity index 100%")?u.type="rename-pure":u.type="rename-changed"),e.startsWith("index ")){let[,t,i,r]=e.trim().match(n.INDEX_LINE_METADATA)??[];null!=t&&(u.prevObjectId=t),null!=i&&(u.newObjectId=i),null!=r&&(u.mode=r)}e.startsWith("rename from ")&&(u.prevName=e.replace("rename from ","").trim()),e.startsWith("rename to ")&&(u.name=e.replace("rename to ","").trim())}}continue}for(;g.length>0&&("\n"===g[g.length-1]||"\r"===g[g.length-1]||"\r\n"===g[g.length-1]||""===g[g.length-1]);)g.pop();let C=parseInt(b[3]),k=parseInt(b[1]);p=h?p:k-1,m=h?m:C-1;let S={collapsedBefore:0,splitLineCount:0,splitLineStart:0,unifiedLineCount:0,unifiedLineStart:0,additionCount:parseInt(b[4]??"1"),additionStart:C,additionLines:y,deletionCount:parseInt(b[2]??"1"),deletionStart:k,deletionLines:x,deletionLineIndex:p,additionLineIndex:m,hunkContent:[],hunkContext:b[5],hunkSpecs:v,noEOFCRAdditions:!1,noEOFCRDeletions:!1};if(isNaN(S.additionCount)||isNaN(S.deletionCount)||isNaN(S.additionStart)||isNaN(S.deletionStart)){if(d)throw Error("parsePatchContent: invalid hunk metadata");console.error("parsePatchContent: invalid hunk metadata",S);continue}for(let e of g){let n=function(e){let n=e[0];if("+"!==n&&"-"!==n&&" "!==n&&"\\"!==n)return void console.error(`parseLineType: Invalid firstChar: "${n}", full line: "${e}"`);let t=e.substring(1);return{line:""===t?"\n":t,type:" "===n?"context":"\\"===n?"metadata":"+"===n?"addition":"deletion"}}(e);if(null==n){console.error("processFile: invalid rawLine:",e);continue}let{type:o,line:a}=n;if("addition"===o)(null==i||"change"!==i.type)&&(i=r("change",p,m),S.hunkContent.push(i)),m++,h&&u.additionLines.push(a),i.additions++,y++,f="addition";else if("deletion"===o)(null==i||"change"!==i.type)&&(i=r("change",p,m),S.hunkContent.push(i)),p++,h&&u.deletionLines.push(a),i.deletions++,x++,f="deletion";else if("context"===o)(null==i||"context"!==i.type)&&(i=r("context",p,m),S.hunkContent.push(i)),m++,p++,h&&(u.deletionLines.push(a),u.additionLines.push(a)),i.lines++,f="context";else if("metadata"===o&&null!=i){if("context"===i.type?(S.noEOFCRAdditions=!0,S.noEOFCRDeletions=!0):"deletion"===f?S.noEOFCRDeletions=!0:"addition"===f&&(S.noEOFCRAdditions=!0),h&&("addition"===f||"context"===f)){let e=u.additionLines.length-1;e>=0&&(u.additionLines[e]=(0,t.cleanLastNewline)(u.additionLines[e]))}if(h&&("deletion"===f||"context"===f)){let e=u.deletionLines.length-1;e>=0&&(u.deletionLines[e]=(0,t.cleanLastNewline)(u.deletionLines[e]))}}}for(let e of(S.additionLines=y,S.deletionLines=x,S.collapsedBefore=Math.max(S.additionStart-1-c,0),u.hunks.push(S),c=S.additionStart+S.additionCount-1,S.hunkContent))"context"===e.type?(S.splitLineCount+=e.lines,S.unifiedLineCount+=e.lines):(S.splitLineCount+=Math.max(e.additions,e.deletions),S.unifiedLineCount+=e.deletions+e.additions);S.splitLineStart=u.splitLineCount+S.collapsedBefore,S.unifiedLineStart=u.unifiedLineCount+S.collapsedBefore,u.splitLineCount+=S.collapsedBefore+S.splitLineCount,u.unifiedLineCount+=S.collapsedBefore+S.unifiedLineCount}if(null!=u){if(u.hunks.length>0&&!h&&u.additionLines.length>0&&u.deletionLines.length>0){let e=u.hunks[u.hunks.length-1],n=e.additionStart+e.additionCount-1,t=Math.max(u.additionLines.length-n,0);u.splitLineCount+=t,u.unifiedLineCount+=t}return a||(null!=u.prevName&&u.name!==u.prevName?u.hunks.length>0?u.type="rename-changed":u.type="rename-pure":null!=s&&""===s.contents?u.type="deleted":null!=l&&""===l.contents&&(u.type="new")),"rename-pure"!==u.type&&"rename-changed"!==u.type&&(u.prevName=void 0),u}}function r(e,n,t){return"change"===e?{type:"change",additions:0,deletions:0,additionLineIndex:t,deletionLineIndex:n}:{type:"context",lines:0,additionLineIndex:t,deletionLineIndex:n}}e.s(["parsePatchFiles",0,function(e,t,r=!1){let o=[];for(let a of e.split(n.COMMIT_METADATA_SPLIT))try{o.push(function(e,t,r=!1){let o,a=n.GIT_DIFF_FILE_BREAK_REGEX.test(e),l=e.split(a?n.GIT_DIFF_FILE_BREAK_REGEX:n.UNIFIED_DIFF_FILE_BREAK_REGEX),s=[];for(let e of l){if(a&&!n.GIT_DIFF_FILE_BREAK_REGEX.test(e)||!a&&!n.UNIFIED_DIFF_FILE_BREAK_REGEX.test(e)){if(null==o)o=e;else if(r)throw Error("parsePatchContent: unknown file blob");else console.error("parsePatchContent: unknown file blob:",e);continue}let l=i(e,{cacheKey:null!=t?`${t}-${s.length}`:void 0,isGitDiff:a,throwOnError:r});null!=l&&s.push(l)}return{patchMetadata:o,files:s}}(a,null!=t?`${t}-${o.length}`:void 0,r))}catch(e){if(r)throw e;console.error(e)}return o},"processFile",0,i],40103)},67997,e=>{"use strict";var n=e.i(40103),t=e.i(52666);class i extends t.default{constructor(){super(...arguments),this.tokenize=o}equals(e,n,t){return t.ignoreWhitespace?(t.newlineIsToken&&e.includes("\n")||(e=e.trim()),t.newlineIsToken&&n.includes("\n")||(n=n.trim())):t.ignoreNewlineAtEof&&!t.newlineIsToken&&(e.endsWith("\n")&&(e=e.slice(0,-1)),n.endsWith("\n")&&(n=n.slice(0,-1))),super.equals(e,n,t)}}let r=new i;function o(e,n){n.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));let t=[],i=e.split(/(\n|\r\n)/);i[i.length-1]||i.pop();for(let e=0;e<i.length;e++){let r=i[e];e%2&&!n.newlineIsToken?t[t.length-1]+=r:t.push(r)}return t}let a={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function l(e,n,t,i,o,a,l){var s;let d;void 0===(d=l?"function"==typeof l?{callback:l}:l:{}).context&&(d.context=4);let u=d.context;if(d.newlineIsToken)throw Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(!d.callback)return c(r.diff(t,i,d));{let{callback:e}=d;s=Object.assign(Object.assign({},d),{callback:n=>{e(c(n))}}),r.diff(t,i,s)}function c(t){if(!t)return;function i(e){return e.map(function(e){return" "+e})}t.push({value:"",lines:[]});let r=[],l=0,s=0,d=[],c=1,f=1;for(let e=0;e<t.length;e++){let n=t[e],o=n.lines||function(e){let n=e.endsWith("\n"),t=e.split("\n").map(e=>e+"\n");return n?t.pop():t.push(t.pop().slice(0,-1)),t}(n.value);if(n.lines=o,n.added||n.removed){if(!l){let n=t[e-1];l=c,s=f,n&&(l-=(d=u>0?i(n.lines.slice(-u)):[]).length,s-=d.length)}for(let e of o)d.push((n.added?"+":"-")+e);n.added?f+=o.length:c+=o.length}else{if(l)if(o.length<=2*u&&e<t.length-2)for(let e of i(o))d.push(e);else{let e=Math.min(o.length,u);for(let n of i(o.slice(0,e)))d.push(n);let n={oldStart:l,oldLines:c-l+e,newStart:s,newLines:f-s+e,lines:d};r.push(n),l=0,s=0,d=[]}c+=o.length,f+=o.length}}for(let e of r)for(let n=0;n<e.lines.length;n++)e.lines[n].endsWith("\n")?e.lines[n]=e.lines[n].slice(0,-1):(e.lines.splice(n+1,0,"\"),n++);return{oldFileName:e,newFileName:n,oldHeader:o,newHeader:a,hunks:r}}}function s(e,n){if(n||(n=a),Array.isArray(e)){if(e.length>1&&!n.includeFileHeaders)throw Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map(e=>s(e,n)).join("\n")}let t=[];n.includeIndex&&e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),n.includeUnderline&&t.push("==================================================================="),n.includeFileHeaders&&(t.push("--- "+e.oldFileName+(void 0===e.oldHeader?"":" "+e.oldHeader)),t.push("+++ "+e.newFileName+(void 0===e.newHeader?"":" "+e.newHeader)));for(let n=0;n<e.hunks.length;n++){let i=e.hunks[n];for(let e of(0===i.oldLines&&(i.oldStart-=1),0===i.newLines&&(i.newStart-=1),t.push("@@ -"+i.oldStart+","+i.oldLines+" +"+i.newStart+","+i.newLines+" @@"),i.lines))t.push(e)}return t.join("\n")+"\n"}e.s(["parseDiffFromFile",0,function(e,t,i,r=!1){let o=(0,n.processFile)(function(e,n,t,i,r,o,a){if("function"==typeof a&&(a={callback:a}),null==a?void 0:a.callback){let{callback:d}=a;l(e,n,t,i,r,o,Object.assign(Object.assign({},a),{callback:e=>{e?d(s(e,a.headerOptions)):d(void 0)}}))}else{let d=l(e,n,t,i,r,o,a);if(!d)return;return s(d,null==a?void 0:a.headerOptions)}}(e.name,t.name,e.contents,t.contents,e.header,t.header,i),{cacheKey:(()=>{if(null!=e.cacheKey&&null!=t.cacheKey)return`${e.cacheKey}:${t.cacheKey}`})(),oldFile:e,newFile:t,throwOnError:r});if(null==o)throw Error("parseDiffFrom: FileInvalid diff -- probably need to fix something -- if the files are the same maybe?");return null!=t.lang&&(o.lang=t.lang),o}],67997)},58975,e=>{"use strict";function n(e,n,t){let i=e.conflictStack[e.conflictStack.length-1];if(null==i)return n.length>=7&&60===n.charCodeAt(0)&&"start"===c(n)?void s(e,n,t):void a(e,n);let r=c(n);if("start"===r)return void s(e,n,t);if("base"===r){i.stage="base",i.baseMarkerLineIndex=t,i.markerLines.base=n;return}if("separator"===r){i.stage="incoming",i.separatorLineIndex=t,i.markerLines.separator=n;return}if("end"===r){let i=e.conflictStack.pop();if(null==i)throw Error("parseMergeConflictDiffFromFile: encountered end marker before start marker");var o=e,d=i,u=t,f=n;if(null==d.separatorLineIndex||null==d.markerLines.separator)throw Error(`parseMergeConflictDiffFromFile: conflict ${d.conflictIndex} is missing a separator marker`);let r=o.conflictBuilders[d.conflictIndex];if(null==r)throw Error(`parseMergeConflictDiffFromFile: failed to finalize conflict ${d.conflictIndex}`);let a=r.action;a.markerLines.separator=d.markerLines.separator,a.markerLines.end=f,null!=d.markerLines.base&&(a.markerLines.base=d.markerLines.base),a.conflict={conflictIndex:d.conflictIndex,startLineIndex:d.startLineIndex,startLineNumber:d.startLineIndex+1,separatorLineIndex:d.separatorLineIndex,separatorLineNumber:d.separatorLineIndex+1,endLineIndex:u,endLineNumber:u+1,baseMarkerLineIndex:d.baseMarkerLineIndex,baseMarkerLineNumber:null!=d.baseMarkerLineIndex?d.baseMarkerLineIndex+1:void 0};let l=a.currentContentIndex??a.incomingContentIndex;if(a.currentContentIndex??=l,a.incomingContentIndex??=l,a.startContentIndex<0&&null!=l&&(a.startContentIndex=l),a.endContentIndex<0&&null!=l&&(a.endContentIndex=l),a.endMarkerContentIndex<0&&null!=l&&(a.endMarkerContentIndex=l),a.hunkIndex<0||a.startContentIndex<0||a.endContentIndex<0||a.endMarkerContentIndex<0)throw Error(`parseMergeConflictDiffFromFile: failed to anchor merge conflict ${d.conflictIndex}`);o.actions[a.conflictIndex]=a,r.completed=!0;return}"current"===i.stage?l(e,"deletion",n,i.conflictIndex,"current"):"base"===i.stage?a(e,n,i.conflictIndex):l(e,"addition",n,i.conflictIndex,"incoming")}function t(e){return e.activeHunk??=d(e.additionLines.length+1,e.deletionLines.length+1),e.activeHunk}function i(e,n,t,i){let r=e.conflictBuilders[n];if(null==r)throw Error(`parseMergeConflictDiffFromFile: failed to locate conflict action ${n}`);let o=r.action,a=e.hunks.length;if(o.hunkIndex<0)o.hunkIndex=a;else if(o.hunkIndex!==a)throw Error(`parseMergeConflictDiffFromFile: conflict ${n} spans multiple hunks and cannot be anchored`);if(o.startContentIndex<0&&(o.startContentIndex=i),o.endContentIndex=i,o.endMarkerContentIndex=i,"current"===t){o.currentContentIndex??=i;return}if("base"===t){o.baseContentIndex??=i;return}o.incomingContentIndex=i}function r(e,n,t){let r,o=n.contextBufferCount,a=n.contextBufferAdditionStart,l=n.contextBufferDeletionStart;if("leading"===t&&o>e.maxContextLines){let t=o-e.maxContextLines;a+=t,l+=t,o=e.maxContextLines,n.additionStart+=t,n.deletionStart+=t,n.additionLineIndex+=t,n.deletionLineIndex+=t}if("trailing"===t&&o>e.maxContextLines&&(o=e.maxContextLines),0===o){n.contextBufferCount=0,n.contextBufferBaseConflicts=void 0;return}let s=n.hunkContent,d=s[s.length-1];d?.type==="context"?d.lines+=o:s.push({type:"context",lines:o,additionLineIndex:a,deletionLineIndex:l}),r=s.length-1,n.additionCount+=o,n.deletionCount+=o;let u=n.contextBufferBaseConflicts;if(null!=u){let t=a-n.contextBufferAdditionStart;for(let[n,a]of u)n>=t&&n<t+o&&i(e,a,"base",r)}n.contextBufferCount=0,n.contextBufferBaseConflicts=void 0}function o(e){if(null==e.activeHunk)return;let n=e.activeHunk;if(e.activeHunk=void 0,0===n.hunkContent.length)return;let t=0,i=0;for(let e of n.hunkContent)"context"===e.type?(t+=e.lines,i+=e.lines):(t+=Math.max(e.additions,e.deletions),i+=e.additions+e.deletions);let r=Math.max(n.additionStart-1-e.lastHunkEnd,0),o={collapsedBefore:r,additionStart:n.additionStart,additionCount:n.additionCount,additionLines:n.additionLines,additionLineIndex:n.additionLineIndex,deletionStart:n.deletionStart,deletionCount:n.deletionCount,deletionLines:n.deletionLines,deletionLineIndex:n.deletionLineIndex,hunkContent:n.hunkContent,hunkContext:void 0,hunkSpecs:`@@ -${u(n.deletionStart,n.deletionCount)} +${u(n.additionStart,n.additionCount)} @@
15
+ `,splitLineStart:e.splitLineCount+r,splitLineCount:t,unifiedLineStart:e.unifiedLineCount+r,unifiedLineCount:i,noEOFCRAdditions:!1,noEOFCRDeletions:!1};e.hunks.push(o),e.splitLineCount+=r+t,e.unifiedLineCount+=r+i,e.lastHunkEnd=n.additionStart+n.additionCount-1}function a(e,n,i=-1){let r=t(e);0===r.contextBufferCount&&(r.contextBufferAdditionStart=e.additionLines.length,r.contextBufferDeletionStart=e.deletionLines.length),e.additionLines.push(n),e.deletionLines.push(n),i>=0&&(r.contextBufferBaseConflicts??=new Map,r.contextBufferBaseConflicts.set(r.contextBufferCount,i)),r.contextBufferCount++}function l(e,n,a,l,s){let u,c,f=t(e);f.hunkContent.length>0&&f.contextBufferCount>e.maxContextLines2&&(!function(e){let n;if(null==e.activeHunk)return;let t=e.activeHunk,i=t.contextBufferCount,a=i-e.maxContextLines2,l=t.contextBufferAdditionStart+i-e.maxContextLines,s=t.contextBufferDeletionStart+i-e.maxContextLines;if(null!=t.contextBufferBaseConflicts){let r=i-e.maxContextLines;for(let[e,i]of t.contextBufferBaseConflicts)e>=r&&(n??=new Map).set(e-r,i)}r(e,t,"trailing");let u=t.additionCount,c=t.deletionCount;o(e),e.activeHunk=d(t.additionStart+u+a,t.deletionStart+c+a),e.activeHunk.contextBufferAdditionStart=l,e.activeHunk.contextBufferDeletionStart=s,e.activeHunk.contextBufferCount=e.maxContextLines,e.activeHunk.contextBufferBaseConflicts=n}(e),f=e.activeHunk),r(e,f,0===f.hunkContent.length?"leading":"before-change");let h=e.additionLines.length,p=e.deletionLines.length;"addition"===n?e.additionLines.push(a):e.deletionLines.push(a);let m=(c=(u=f.hunkContent)[u.length-1],c?.type==="change"?"addition"===n?c.additions++:c.deletions++:u.push({type:"change",additions:+("addition"===n),deletions:+("deletion"===n),additionLineIndex:h,deletionLineIndex:p}),u.length-1);"addition"===n?(f.additionCount++,f.additionLines++):(f.deletionCount++,f.deletionLines++),i(e,l,s,m)}function s(e,n,t){let i=e.nextConflictIndex;e.nextConflictIndex++,e.conflictStack.push({conflictIndex:i,stage:"current",startLineIndex:t,markerLines:{start:n}}),e.conflictBuilders[i]={completed:!1,action:{conflict:{conflictIndex:i,startLineIndex:t,startLineNumber:t+1,separatorLineIndex:t,separatorLineNumber:t+1,endLineIndex:t,endLineNumber:t+1,baseMarkerLineIndex:void 0,baseMarkerLineNumber:void 0},conflictIndex:i,hunkIndex:-1,startContentIndex:-1,endContentIndex:-1,endMarkerContentIndex:-1,markerLines:{start:n,separator:"",end:""}}}}function d(e,n){return{additionStart:e,deletionStart:n,additionCount:0,deletionCount:0,additionLines:0,deletionLines:0,additionLineIndex:Math.max(e-1,0),deletionLineIndex:Math.max(n-1,0),hunkContent:[],contextBufferAdditionStart:Math.max(e-1,0),contextBufferDeletionStart:Math.max(n-1,0),contextBufferCount:0,contextBufferBaseConflicts:void 0}}function u(e,n){return 1===n?`${e}`:`${e},${n}`}function c(e){var n,t;let i;if(e.length<7)return;let r=e.charCodeAt(0);if(60!==r&&62!==r&&61!==r&&124!==r)return;let o=((i=(n=e).length)>0&&10===n.charCodeAt(i-1)&&i--,i>0&&13===n.charCodeAt(i-1)&&i--,i);if(o<7)return;let a=1;for(;a<o&&e.charCodeAt(a)===r;)a++;if(!(a<7)){if(61===r)return a===o?"separator":void 0;if(a===o||9===(t=e.charCodeAt(a))||10===t||11===t||12===t||13===t||32===t)return 60===r?"start":62===r?"end":"base"}}function f(e,n,t){return{...e,contents:t,cacheKey:null!=e.cacheKey?`${e.cacheKey}:merge-conflict-${n}`:void 0}}function h(e,n){let t=[],i=Array(e.hunks.length),r=(n,t)=>{let r=e.hunks[n];if(null==r)return 0;let o=i[n];if(null==o){o=Array(r.hunkContent.length+1);let e=r.unifiedLineStart;o[0]=e;for(let n=0;n<r.hunkContent.length;n++){let t=r.hunkContent[n];e+="context"===t.type?t.lines:t.deletions+t.additions,o[n+1]=e}i[n]=o}return o[Math.max(t,0)]??r.unifiedLineStart},o=(e,n)=>Math.max(r(e,n),(i[e]?.[Math.max(n+1,0)]??r(e,n+1))-1);for(let i of n){if(null==i)continue;let n=e.hunks[i.hunkIndex];if(null==n)continue;let a=r(i.hunkIndex,i.startContentIndex);if(t.push(p(i,"marker-start",i.startContentIndex,i.markerLines.start,a)),null!=i.baseContentIndex){let e=i.currentContentIndex,a=i.incomingContentIndex;if(null==e||null==a)continue;let l=i.markerLines.base;if(null==l)continue;let s=n.hunkContent[e],d=n.hunkContent[i.baseContentIndex],u=n.hunkContent[a];if(s?.type!=="change"||d?.type!=="context"||u?.type!=="change")continue;let c=r(i.hunkIndex,e),f=r(i.hunkIndex,a);t.push(p(i,"marker-base",i.baseContentIndex,l,c+s.deletions)),t.push(p(i,"marker-separator",i.baseContentIndex,i.markerLines.separator,f),p(i,"marker-end",i.endMarkerContentIndex,i.markerLines.end,o(i.hunkIndex,i.endMarkerContentIndex)));continue}let l=i.currentContentIndex;if(null==l)continue;let s=n.hunkContent[l];if(s?.type!=="change")continue;let d=r(i.hunkIndex,l),u=s.deletions>0?d+s.deletions:a;t.push(p(i,"marker-separator",l,i.markerLines.separator,u),p(i,"marker-end",i.endMarkerContentIndex,i.markerLines.end,o(i.hunkIndex,i.endMarkerContentIndex)))}return t}function p(e,n,t,i,r){return{type:n,hunkIndex:e.hunkIndex,contentIndex:t,conflictIndex:e.conflictIndex,lineText:i,lineIndex:r}}e.s(["buildMergeConflictMarkerRows",0,h,"getMergeConflictActionAnchor",0,function(e,n){let t=n.hunks[e.hunkIndex];if(null!=t)return{hunkIndex:e.hunkIndex,lineIndex:function(e,n){let t=e.unifiedLineStart;for(let i=0;i<n;i++){let n=e.hunkContent[i];t+="context"===n.type?n.lines:n.deletions+n.additions}return t}(t,e.startContentIndex)}},"parseMergeConflictDiffFromFile",0,function(e,t=6){let i={deletionLines:[],additionLines:[],conflictStack:[],conflictBuilders:[],actions:[],hunks:[],nextConflictIndex:0,splitLineCount:0,unifiedLineCount:0,lastHunkEnd:0,activeHunk:void 0,maxContextLines:t=Math.max(t,1),maxContextLines2:2*t},a=e.contents,l=a.length;if(l>0){let e=0,t=0,r=a.indexOf("\n",e);for(;-1!==r;)n(i,a.slice(e,r+1),t),e=r+1,t++,r=a.indexOf("\n",e);e<l&&n(i,a.slice(e),t)}if(i.conflictStack.length>0)throw Error("parseMergeConflictDiffFromFile: unfinished merge conflict marker stack");null!=i.activeHunk&&i.activeHunk.hunkContent.length>0&&(r(i,i.activeHunk,"trailing"),o(i));for(let e=0;e<i.conflictBuilders.length;e++){let n=i.conflictBuilders[e];if(null==n||!n.completed)throw Error(`parseMergeConflictDiffFromFile: failed to build merge conflict action ${e}`)}if(i.hunks.length>0&&i.additionLines.length>0&&i.deletionLines.length>0){let e=i.hunks[i.hunks.length-1],n=Math.max(i.additionLines.length-(e.additionStart+e.additionCount-1),0);i.splitLineCount+=n,i.unifiedLineCount+=n}let s=i.deletionLines.join(""),d=i.additionLines.join(""),u=f(e,"current",s),c=f(e,"incoming",d),p="change";""===d?p="deleted":""===s&&(p="new");let m={name:e.name,prevName:void 0,type:p,hunks:i.hunks,splitLineCount:i.splitLineCount,unifiedLineCount:i.unifiedLineCount,isPartial:!1,deletionLines:i.deletionLines,additionLines:i.additionLines,cacheKey:null!=e.cacheKey?`${e.cacheKey}:merge-conflict-diff`:void 0};return{fileDiff:m,currentFile:u,incomingFile:c,actions:i.actions,markerRows:h(m,i.actions)}}])},2391,e=>{"use strict";e.s(["getMergeConflictActionSlotName",0,function({hunkIndex:e,lineIndex:n,conflictIndex:t}){return`merge-conflict-action-${e}-${n}-${t}`}])},84661,e=>e.a(async(n,t)=>{try{var i=e.i(90578),r=e.i(52205),o=e.i(8704),a=e.i(2391),l=e.i(58975),s=n([o]);[o]=s.then?(await s)():s;var d=class extends o.DiffHunksRenderer{pendingConflictActions=[];pendingMarkerRows=[];injectedRows=new Map;options;constructor(e={theme:i.DEFAULT_THEMES},n,t){super(void 0,n,t),this.options=e}setConflictState(e,n,t){this.pendingConflictActions=e,this.pendingMarkerRows=n,this.syncInjectedRows(e,n,t)}syncInjectedRows(e,n,t){for(let n of(this.injectedRows.clear(),e)){let e=null!=n?(0,l.getMergeConflictActionAnchor)(n,t):void 0;if(null==n||null==e)continue;let i={type:"actions",hunkIndex:e.hunkIndex,lineIndex:e.lineIndex,conflictIndex:n.conflictIndex};this.addInjectedRow(i)}for(let e of n)this.addInjectedRow(e)}addInjectedRow(e){let n=`${e.hunkIndex}:${e.lineIndex}`,t=this.injectedRows.get(n);null==t?this.injectedRows.set(n,[e]):t.push(e)}renderDiff(e,n=i.DEFAULT_RENDER_RANGE){return null!=e&&this.syncInjectedRows(this.pendingConflictActions,this.pendingMarkerRows,e),super.renderDiff(e,n)}async asyncRender(e,n=i.DEFAULT_RENDER_RANGE){return this.syncInjectedRows(this.pendingConflictActions,this.pendingMarkerRows,e),super.asyncRender(e,n)}createPreElement(e,n){return super.createPreElement(e,n,{"data-has-merge-conflict":""})}getUnifiedLineDecoration({type:e,lineType:n}){let t="change"===e?"change-deletion"===n?"current":"incoming":void 0;return{gutterLineType:"change"===e?"context":n,gutterProperties:u(t),contentProperties:c(e,t)}}getSplitLineDecoration({side:e,type:n}){let t="change"===n?"deletions"===e?"current":"incoming":void 0;return{gutterLineType:"change"===n?"context":n,gutterProperties:u(t),contentProperties:c(n,t)}}getUnifiedInjectedRowsForLine=e=>{let n=this.injectedRows.get(`${e.hunkIndex}:${e.lineIndex}`);if(null==n||0===n.length)return;let{mergeConflictActionsType:t}=this.getOptionsWithDefaults(),i=[],o=[];for(let e of n){var l;if("actions"===e.type){i.push({content:function({row:e,includeDefaultActions:n,includeSlot:t}){var i;let o=n?(i=e.conflictIndex,[h({resolution:"current",label:"Accept current change",conflictIndex:i}),p(),h({resolution:"incoming",label:"Accept incoming change",conflictIndex:i}),p(),h({resolution:"both",label:"Accept both",conflictIndex:i})]):[];return t&&o.push((0,r.createHastElement)({tagName:"slot",properties:{name:(0,a.getMergeConflictActionSlotName)({hunkIndex:e.hunkIndex,lineIndex:e.lineIndex,conflictIndex:e.conflictIndex}),"data-merge-conflict-action-slot":""}})),(0,r.createHastElement)({tagName:"div",properties:{"data-merge-conflict-actions":""},children:[(0,r.createHastElement)({tagName:"div",properties:{"data-merge-conflict-actions-content":""},children:o})]})}({row:e,includeDefaultActions:"default"===t,includeSlot:!0}),gutter:f("action")});continue}("marker-end"===e.type?o:i).push({content:(l=e,(0,r.createHastElement)({tagName:"div",properties:{"data-merge-conflict":l.type,"data-merge-conflict-marker-row":""},children:[(0,r.createTextNodeElement)(l.lineText.replace(/(?:\r\n|\n|\r)$/,""))]})),gutter:f("marker",e.type)})}return{before:i.length>0?i:void 0,after:o.length>0?o:void 0}};getOptionsWithDefaults(){let e=super.getOptionsWithDefaults();return e.diffStyle="unified",e.lineDiffType="none",e.mergeConflictActionsType=this.options.mergeConflictActionsType??"default",e}};function u(e){return null!=e?{"data-merge-conflict":e}:void 0}function c(e,n){if(null!=n){if("change"===e)return"current"===n||"incoming"===n?{"data-line-type":"context","data-merge-conflict":n}:void 0;if("marker-start"===n||"marker-base"===n||"marker-separator"===n||"marker-end"===n)return{"data-merge-conflict":n}}}function f(e,n){let t=(0,r.createGutterGap)(void 0,"annotation",1);return t.properties["data-gutter-buffer"]="action"===e?"merge-conflict-action":`merge-conflict-${n??"marker"}`,t}function h({resolution:e,label:n,conflictIndex:t}){return(0,r.createHastElement)({tagName:"button",properties:{type:"button","data-merge-conflict-action":e,"data-merge-conflict-conflict-index":`${t}`},children:[(0,r.createTextNodeElement)(n)]})}function p(){return(0,r.createHastElement)({tagName:"span",properties:{"data-merge-conflict-action-separator":""},children:[(0,r.createTextNodeElement)("|")]})}e.s(["UnresolvedFileHunksRenderer",0,d]),t()}catch(e){t(e)}},!1),27763,e=>{"use strict";function n(e,n){return e?.start===n?.start&&e?.end===n?.end&&e?.side===n?.side&&e?.endSide===n?.endSide}var t=e.i(52205),i=e.i(36680),r=class{hoveredLine;hoveredToken;pre;gutterUtilityContainer;gutterUtilityButton;gutterUtilitySlot;interactiveLinesAttr=!1;interactiveLineNumbersAttr=!1;hasPointerListeners=!1;hasDocumentPointerListeners=!1;selectedRange=null;renderedSelectionRange;selectionAnchor;queuedSelectionRender;pointerSession={mode:"idle"};constructor(e,n){this.mode=e,this.options=n}setOptions(e){this.options=e}cleanUp(){this.pre?.removeEventListener("click",this.handlePointerClick),this.pre?.removeEventListener("pointerdown",this.handlePointerDown),this.pre?.removeEventListener("pointermove",this.handlePointerMove),this.pre?.removeEventListener("pointerleave",this.handlePointerLeave),this.pre?.removeAttribute("data-interactive-lines"),this.pre?.removeAttribute("data-interactive-line-numbers"),this.pre=void 0,this.gutterUtilityContainer?.remove(),this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.clearHoveredLine(),this.clearHoveredToken(),this.detachDocumentPointerListeners(),this.clearPointerSession(),null!=this.queuedSelectionRender&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.interactiveLinesAttr=!1,this.interactiveLineNumbersAttr=!1,this.hasPointerListeners=!1}setup(e){this.setSelectionDirty();let{usesCustomGutterUtility:n=!1,enableGutterUtility:t=!1}=this.options;this.pre!==e&&(this.cleanUp(),this.pre=e),t?this.ensureGutterUtilityNode(n):null!=this.gutterUtilityContainer&&(this.gutterUtilityContainer.remove(),this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,"gutterSelecting"===this.pointerSession.mode&&(this.clearPointerSession(),this.detachDocumentPointerListeners())),this.syncPointerListeners(e),this.updateInteractiveLineAttributes(),this.renderSelection()}setSelectionDirty(){this.renderedSelectionRange=void 0}isSelectionDirty(){return null===this.renderedSelectionRange}setSelection(e){let t=!(e===this.selectedRange||n(e??void 0,this.selectedRange??void 0));(this.isSelectionDirty()||t)&&(this.selectedRange=e,this.renderSelection(),t&&this.notifySelectionCommitted())}getSelection(){return this.selectedRange}getHoveredLine=()=>{if(null!=this.hoveredLine){if("diff"===this.mode&&"diff-line"===this.hoveredLine.type)return{lineNumber:this.hoveredLine.lineNumber,side:this.hoveredLine.annotationSide};if("file"===this.mode&&"line"===this.hoveredLine.type)return{lineNumber:this.hoveredLine.lineNumber}}};handlePointerClick=e=>{let{onHunkExpand:n,onLineClick:t,onLineNumberClick:i,onTokenClick:r,onMergeConflictActionClick:o}=this.options;null==n&&null==t&&null==i&&null==o&&null==r||null!=this.options.onGutterUtilityClick&&c(e.composedPath())||(f(this.options.__debugPointerEvents,"click","FileDiff.DEBUG.handlePointerClick:",e),this.handlePointerEvent({eventType:"click",event:e}))};handlePointerMove=e=>{let{lineHoverHighlight:n="disabled",onLineEnter:t,onLineLeave:i,onTokenEnter:r,onTokenLeave:o,enableGutterUtility:a=!1}=this.options;("disabled"!==n||a||null!=t||null!=i||null!=r||null!=o)&&(f(this.options.__debugPointerEvents,"move","FileDiff.DEBUG.handlePointerMove:",e),this.handlePointerEvent({eventType:"move",event:e}))};handlePointerLeave=e=>{let{__debugPointerEvents:n}=this.options;(f(n,"move","FileDiff.DEBUG.handlePointerLeave: no event"),null==this.hoveredLine&&null==this.hoveredToken)?f(n,"move","FileDiff.DEBUG.handlePointerLeave: returned early, no hovered line or token"):(this.gutterUtilityContainer?.remove(),null!=this.hoveredToken&&(this.options.onTokenLeave?.(this.hoveredToken,e),this.clearHoveredToken()),null!=this.hoveredLine&&(this.options.onLineLeave?.({...this.hoveredLine,event:e}),this.clearHoveredLine()))};handlePointerEvent({eventType:e,event:n}){let{__debugPointerEvents:t}=this.options,i=n.composedPath();f(t,e,"FileDiff.DEBUG.handlePointerEvent:",{eventType:e,composedPath:i});let r=this.resolvePointerTarget(i);f(t,e,"FileDiff.DEBUG.handlePointerEvent: resolvePointerTarget result:",r);let{onLineClick:o,onLineNumberClick:s,onLineEnter:d,onLineLeave:u,onTokenClick:c,onTokenEnter:h,onTokenLeave:p,onHunkExpand:m,onMergeConflictActionClick:g}=this.options;switch(e){case"move":{let e=l(r)&&this.hoveredLine?.lineElement===r.lineElement;!(a(r)&&this.hoveredToken?.tokenElement===r.tokenElement)&&(null!=this.hoveredToken&&(p?.(this.hoveredToken,n),this.clearHoveredToken()),a(r)&&(this.setHoveredToken(this.toTokenEventBaseProps(r)),h?.(this.hoveredToken,n))),!e&&(null!=this.hoveredLine&&(this.gutterUtilityContainer?.remove(),u?.({...this.hoveredLine,event:n}),this.clearHoveredLine()),l(r)&&(this.setHoveredLine(this.toEventBaseProps(r)),null!=this.gutterUtilityContainer&&r.numberElement.appendChild(this.gutterUtilityContainer),d?.({...this.hoveredLine,event:n})));break}case"click":{var v,b;if(null==r)break;if("kind"in(v=r)&&"merge-conflict-action"===v.kind&&null!=g){g(r);break}if("type"in(b=r)&&"line-info"===b.type&&null!=m){m(r.hunkIndex,r.all||n.shiftKey?"both":r.direction,r.all||n.shiftKey?1/0:void 0);break}if(!l(r))break;a(r)&&null!=c&&c(this.toTokenEventBaseProps(r),n);let e=this.toEventBaseProps(r);null!=s&&r.numberColumn?s({...e,event:n}):null!=o&&o({...e,event:n})}}}syncPointerListeners(e){let{__debugPointerEvents:n,lineHoverHighlight:t="disabled",onLineClick:i,onLineNumberClick:r,onLineEnter:o,onLineLeave:a,onTokenClick:l,onTokenEnter:s,onTokenLeave:d,onHunkExpand:u,onMergeConflictActionClick:c,enableGutterUtility:h=!1,enableLineSelection:p=!1,onGutterUtilityClick:m}=this.options,g=null!=m,v="disabled"!==t||null!=i||null!=r||null!=o||null!=a||null!=l||null!=s||null!=d||null!=u||null!=c||h||p||g;if(v&&!this.hasPointerListeners){let t;e.addEventListener("click",this.handlePointerClick),e.addEventListener("pointerdown",this.handlePointerDown),e.addEventListener("pointermove",this.handlePointerMove),e.addEventListener("pointerleave",this.handlePointerLeave),this.hasPointerListeners=!0,f(n,"click","FileDiff.DEBUG.attachEventListeners: Attaching click events for:",(t=[],("both"===n||"click"===n)&&(null!=i&&t.push("onLineClick"),null!=r&&t.push("onLineNumberClick"),null!=u&&t.push("expandable hunk separators"),null!=c&&t.push("merge conflict actions")),t)),f(n,"move","FileDiff.DEBUG.attachEventListeners: Attaching pointer move event"),f(n,"move","FileDiff.DEBUG.attachEventListeners: Attaching pointer leave event")}else!v&&this.hasPointerListeners&&(e.removeEventListener("click",this.handlePointerClick),e.removeEventListener("pointerdown",this.handlePointerDown),e.removeEventListener("pointermove",this.handlePointerMove),e.removeEventListener("pointerleave",this.handlePointerLeave),this.hasPointerListeners=!1);let b="selecting"===this.pointerSession.mode||"pendingSingleLineUnselect"===this.pointerSession.mode,y="gutterSelecting"===this.pointerSession.mode;(!p&&b||!g&&y)&&(this.clearPointerSession(),this.detachDocumentPointerListeners(),this.selectionAnchor=void 0,this.clearPendingSingleLineState())}updateInteractiveLineAttributes(){if(null==this.pre)return;let{onLineClick:e,onLineNumberClick:n,enableLineSelection:t=!1}=this.options,i=null!=e,r=null!=n||t;i&&!this.interactiveLinesAttr?(this.pre.setAttribute("data-interactive-lines",""),this.interactiveLinesAttr=!0):!i&&this.interactiveLinesAttr&&(this.pre.removeAttribute("data-interactive-lines"),this.interactiveLinesAttr=!1),r&&!this.interactiveLineNumbersAttr?(this.pre.setAttribute("data-interactive-line-numbers",""),this.interactiveLineNumbersAttr=!0):!r&&this.interactiveLineNumbersAttr&&(this.pre.removeAttribute("data-interactive-line-numbers"),this.interactiveLineNumbersAttr=!1)}handlePointerDown=e=>{if("mouse"===e.pointerType&&0!==e.button||null==this.pre||"idle"!==this.pointerSession.mode)return;let n=e.composedPath();c(n)&&null!=this.options.onGutterUtilityClick?this.startGutterSelectionFromPointerDown(e,n):this.startLineSelectionFromPointerDown(e,n)};startLineSelectionFromPointerDown(e,n){let{enableLineSelection:t=!1}=this.options;if(!t)return;let i=this.getSelectionPointerInfo(n,!0);if(null==i)return;let{pre:r}=this;if(null==r)return;e.preventDefault();let{lineNumber:o,eventSide:a,lineIndex:l}=i;if(e.shiftKey&&null!=this.selectedRange){let n=this.getIndexesFromSelection(this.selectedRange,"split"===r.getAttribute("data-diff-type"));if(null==n)return;let t=n.start<=n.end?l>=n.start:l<=n.end;this.selectionAnchor={lineNumber:t?this.selectedRange.start:this.selectedRange.end,side:t?this.selectedRange.side:this.selectedRange.endSide??this.selectedRange.side},this.updateSelection(o,a,!1),this.notifySelectionStart(this.selectedRange),this.pointerSession={mode:"selecting",pointerId:e.pointerId},this.attachDocumentPointerListeners();return}if(this.selectedRange?.start===o&&this.selectedRange?.end===o){let n={lineNumber:o,side:a};this.selectionAnchor=n,this.pointerSession={mode:"pendingSingleLineUnselect",pointerId:e.pointerId,anchor:n,pending:n},this.attachDocumentPointerListeners();return}this.selectedRange=null,this.selectionAnchor={lineNumber:o,side:a},this.updateSelection(o,a,!1),this.notifySelectionStart(this.selectedRange),this.pointerSession={mode:"selecting",pointerId:e.pointerId},this.attachDocumentPointerListeners()}startGutterSelectionFromPointerDown(e,n){let{enableLineSelection:t=!1,onGutterUtilityClick:i}=this.options;if(null==i)return;let r=this.getSelectionPointFromPath(n);null!=r&&(e.preventDefault(),e.stopPropagation(),this.pointerSession={mode:"gutterSelecting",pointerId:e.pointerId,anchor:r,current:r},t&&(this.selectionAnchor={lineNumber:r.lineNumber,side:r.side},this.updateSelection(r.lineNumber,r.side,!1),this.notifySelectionStart(this.selectedRange)),this.attachDocumentPointerListeners())}handleDocumentPointerMove=e=>{let{enableLineSelection:n=!1}=this.options;switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":{if(e.pointerId!==this.pointerSession.pointerId)return;let t=this.getSelectionPointFromPath(e.composedPath());if(null==t)return;this.pointerSession.current=t,!0===n&&this.updateSelection(t.lineNumber,t.side);return}case"selecting":{if(e.pointerId!==this.pointerSession.pointerId)return;let n=this.getSelectionPointerInfo(e.composedPath(),!1);if(null==n||null==this.selectionAnchor)return;this.updateSelection(n.lineNumber,n.eventSide);return}case"pendingSingleLineUnselect":{var t;if(e.pointerId!==this.pointerSession.pointerId)return;let n=this.getSelectionPointerInfo(e.composedPath(),!1);if(null==n||null==this.selectionAnchor)return;let i={lineNumber:n.lineNumber,side:n.eventSide};if(t=this.pointerSession.pending,t.lineNumber===i.lineNumber&&t.side===i.side)return;this.updateSelection(n.lineNumber,n.eventSide,!1),this.notifySelectionStart(this.selectedRange),this.notifySelectionChangeDelta(),this.pointerSession={mode:"selecting",pointerId:e.pointerId};return}}};handleDocumentPointerUp=e=>{let{enableLineSelection:n=!1,onGutterUtilityClick:t}=this.options;switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":{if(e.pointerId!==this.pointerSession.pointerId)return;let i=this.getSelectionPointFromPath(e.composedPath());null!=i&&(this.pointerSession.current=i,n&&this.updateSelection(i.lineNumber,i.side)),t?.(this.buildSelectedLineRange(this.pointerSession.anchor,this.pointerSession.current)),this.selectionAnchor=void 0,n&&(this.notifySelectionEnd(this.selectedRange),this.notifySelectionCommitted()),this.clearPointerSession(),this.detachDocumentPointerListeners();return}case"pendingSingleLineUnselect":if(e.pointerId!==this.pointerSession.pointerId)return;this.updateSelection(null,void 0,!1),this.selectionAnchor=void 0,this.clearPendingSingleLineState(),this.detachDocumentPointerListeners(),this.notifySelectionEnd(this.selectedRange),this.notifySelectionCommitted();return;case"selecting":if(e.pointerId!==this.pointerSession.pointerId)return;this.selectionAnchor=void 0,this.detachDocumentPointerListeners(),this.clearPointerSession(),this.notifySelectionEnd(this.selectedRange),this.notifySelectionCommitted()}};handleDocumentPointerCancel=e=>{switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":case"selecting":case"pendingSingleLineUnselect":if("pointerId"in this.pointerSession&&e.pointerId!==this.pointerSession.pointerId)return;this.selectionAnchor=void 0,this.clearPendingSingleLineState(),this.clearPointerSession(),this.detachDocumentPointerListeners()}};clearHoveredLine(){null!=this.hoveredLine&&(this.hoveredLine.lineElement.removeAttribute("data-hovered"),this.hoveredLine.numberElement.removeAttribute("data-hovered"),this.hoveredLine=void 0)}setHoveredLine(e){let{lineHoverHighlight:n="disabled"}=this.options;null!=this.hoveredLine&&this.clearHoveredLine(),this.hoveredLine=e,"disabled"!==n&&(("both"===n||"line"===n)&&this.hoveredLine.lineElement.setAttribute("data-hovered",""),("both"===n||"number"===n)&&this.hoveredLine.numberElement.setAttribute("data-hovered",""))}clearHoveredToken(){null!=this.hoveredToken&&(this.hoveredToken=void 0)}setHoveredToken(e){null!=this.hoveredToken&&this.clearHoveredToken(),this.hoveredToken=e}ensureGutterUtilityNode(e){if(null==this.gutterUtilityContainer&&(this.gutterUtilityContainer=document.createElement("div"),this.gutterUtilityContainer.setAttribute("data-gutter-utility-slot","")),e)null!=this.gutterUtilityButton&&(this.gutterUtilityButton.remove(),this.gutterUtilityButton=void 0),null==this.gutterUtilitySlot&&(this.gutterUtilitySlot=document.createElement("slot"),this.gutterUtilitySlot.name="gutter-utility-slot"),this.gutterUtilitySlot.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilitySlot);else{if(this.gutterUtilitySlot?.remove(),this.gutterUtilitySlot=void 0,null==this.gutterUtilityButton){let e=document.createElement("div");e.innerHTML=(0,i.toHtml)((0,t.createHastElement)({tagName:"button",properties:{"data-utility-button":"",type:"button"},children:[(0,t.createIconElement)({name:"diffs-icon-plus",properties:{"data-icon":""}})]}));let n=e.firstElementChild;if(!(n instanceof HTMLButtonElement))throw Error("InteractionManager.ensureGutterUtilityNode: Node element should be a button");n.remove(),this.gutterUtilityButton=n}this.gutterUtilityButton.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilityButton)}}attachDocumentPointerListeners(){this.hasDocumentPointerListeners||(document.addEventListener("pointermove",this.handleDocumentPointerMove),document.addEventListener("pointerup",this.handleDocumentPointerUp),document.addEventListener("pointercancel",this.handleDocumentPointerCancel),this.hasDocumentPointerListeners=!0)}detachDocumentPointerListeners(){this.hasDocumentPointerListeners&&(document.removeEventListener("pointermove",this.handleDocumentPointerMove),document.removeEventListener("pointerup",this.handleDocumentPointerUp),document.removeEventListener("pointercancel",this.handleDocumentPointerCancel),this.hasDocumentPointerListeners=!1)}clearPointerSession(){this.pointerSession={mode:"idle"}}clearPendingSingleLineState(){"pendingSingleLineUnselect"===this.pointerSession.mode&&(this.pointerSession={mode:"idle"})}getSelectionPointerInfo(e,n){let t=this.resolvePointerTarget(e);if(o(t)&&(!n||t.numberColumn)&&null!=t.splitLineIndex)return{lineIndex:t.splitLineIndex,lineNumber:t.lineNumber,eventSide:"diff"===this.mode?t.side:void 0}}getSelectionPointFromPath(e){let n=this.resolvePointerTarget(e);if(o(n))return{lineNumber:n.lineNumber,side:"diff"===this.mode?n.side:void 0}}getLineIndex(e,n){let{getLineIndex:t}=this.options;return null!=t?t(e,n):[e-1,e-1]}updateSelection(e,t,i=!0){let r,{selectedRange:o}=this;if(null==e)r=null;else{let n=this.selectionAnchor?.side??t,i=this.selectionAnchor?.lineNumber??e;r=this.buildSelectionRange(i,e,n,t)}n(o??void 0,r??void 0)||(this.selectedRange=r,i&&this.notifySelectionChangeDelta(),this.queuedSelectionRender??=requestAnimationFrame(this.renderSelection))}getIndexesFromSelection(e,n){if(null==this.pre)return;let t=this.getLineIndex(e.start,e.side),i=this.getLineIndex(e.end,e.endSide??e.side);return null!=t&&null!=i?{start:n?t[1]:t[0],end:n?i[1]:i[0]}:void 0}renderSelection=()=>{if(null!=this.queuedSelectionRender&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),null==this.pre||this.renderedSelectionRange===this.selectedRange)return;for(let e of this.pre.querySelectorAll("[data-selected-line]"))e.removeAttribute("data-selected-line");if(this.renderedSelectionRange=this.selectedRange,null==this.selectedRange)return;let{children:e}=this.pre;if(0===e.length)return;if(e.length>2)throw console.error(e),Error("InteractionManager.renderSelection: Somehow there are more than 2 code elements...");let n="split"===this.pre.getAttribute("data-diff-type"),t=this.getIndexesFromSelection(this.selectedRange,n);if(null==t)throw console.error({rowRange:t,selectedRange:this.selectedRange}),Error("InteractionManager.renderSelection: No valid rowRange");let i=t.start===t.end,r=Math.min(t.start,t.end),o=Math.max(t.start,t.end);for(let t of e){let[e,a]=t.children,l=a.children.length;if(l!==e.children.length)throw Error("InteractionManager.renderSelection: gutter and content children dont match, something is wrong");for(let t=0;t<l;t++){let l=a.children[t],s=e.children[t];if(!(l instanceof HTMLElement)||!(s instanceof HTMLElement))continue;let d=this.parseLineIndex(l,n);if((d??0)>o)break;if(null==d||d<r)continue;let u=i?"single":d===r?"first":d===o?"last":"";l.setAttribute("data-selected-line",u),s.setAttribute("data-selected-line",u),s.nextSibling instanceof HTMLElement&&l.nextSibling instanceof HTMLElement&&(l.nextSibling.hasAttribute("data-line-annotation")||l.nextSibling.hasAttribute("data-merge-conflict-actions"))&&(i?(u="last",l.setAttribute("data-selected-line","first")):d===r?u="":d===o&&l.setAttribute("data-selected-line",""),l.nextSibling.setAttribute("data-selected-line",u),s.nextSibling.setAttribute("data-selected-line",u))}}};notifySelectionCommitted(){this.options.onLineSelected?.(this.selectedRange??null)}notifySelectionChangeDelta(){this.options.onLineSelectionChange?.(this.selectedRange??null)}notifySelectionStart(e){this.options.onLineSelectionStart?.(e)}notifySelectionEnd(e){this.options.onLineSelectionEnd?.(e)}toEventBaseProps(e){return"file"===this.mode?{type:"line",lineElement:e.lineElement,lineNumber:e.lineNumber,numberColumn:e.numberColumn,numberElement:e.numberElement}:{type:"diff-line",annotationSide:e.side,lineType:e.lineType,lineElement:e.lineElement,numberElement:e.numberElement,lineNumber:e.lineNumber,numberColumn:e.numberColumn}}toTokenEventBaseProps({lineCharEnd:e,lineCharStart:n,lineNumber:t,side:i,tokenElement:r,tokenText:o}){return"file"===this.mode?{type:"token",lineCharEnd:e,lineCharStart:n,lineNumber:t,tokenElement:r,tokenText:o}:{type:"token",lineCharEnd:e,lineCharStart:n,lineNumber:t,side:i,tokenElement:r,tokenText:o}}buildSelectedLineRange(e,n){return this.buildSelectionRange(e.lineNumber,n.lineNumber,e.side,n.side)}buildSelectionRange(e,n,t,i){return{start:e,end:n,...null!=t?{side:t}:{},...t!==i&&null!=i?{endSide:i}:{}}}resolvePointerTarget(e){let n,t,i,r,o,a,l,c,f,h,p=!1;for(let s of e){if(!(s instanceof HTMLElement))continue;if(null==h&&s.hasAttribute("data-merge-conflict-action")){var m;let e=s.getAttribute("data-merge-conflict-action")??void 0,n=s.getAttribute("data-merge-conflict-conflict-index")??void 0,t=null!=n?Number.parseInt(n,10):NaN;("current"===(m=e)||"incoming"===m||"both"===m)&&Number.isFinite(t)&&(h={kind:"merge-conflict-action",resolution:e,conflictIndex:t})}if(null==a&&s.hasAttribute("data-char")){a=s;let e=s.getAttribute("data-char");if(null!=e){let n=Number.parseInt(e,10);if(!Number.isNaN(n)){let e=s.textContent??"",t=n+e.length;(""!==e.trim()||!0===this.options.enableTokenInteractionsOnWhitespace)&&(l={tokenElement:a,lineCharStart:n,lineCharEnd:t,tokenText:e});continue}}}let e=null==o?s.getAttribute("data-column-number")??void 0:void 0;if(null!=e){o=s,f=Number.parseInt(e,10),p=!0,n=u(s),r=s.getAttribute("data-line-index")??void 0;continue}let d=null==i?s.getAttribute("data-line")??void 0:void 0;if(null!=d){i=s,f=Number.parseInt(d,10),n=u(s),r=s.getAttribute("data-line-index")??void 0;continue}if(null==c&&(s.hasAttribute("data-expand-button")||s.hasAttribute("data-unmodified-lines"))){c={hunkIndex:void 0,direction:s.hasAttribute("data-expand-up")?"up":s.hasAttribute("data-expand-down")?"down":"both",all:s.hasAttribute("data-expand-all-button")};continue}let g=null!=c?s.getAttribute("data-expand-index")??void 0:void 0;if(null!=c&&null!=g){let e=Number.parseInt(g,10);Number.isNaN(e)||(c.hunkIndex=e);continue}if(null==t&&s.hasAttribute("data-code")){t=s;break}}if(null!=h)return h;if(c?.hunkIndex!=null)return{type:"line-info",hunkIndex:c.hunkIndex,direction:c.direction,all:c.all};if(i??=null!=r?s(t,`[data-line][data-line-index="${r}"]`):void 0,o??=null!=r?s(t,`[data-column-number][data-line-index="${r}"]`):void 0,null==t||null==i||null==o||null==n||null==f||Number.isNaN(f))return;let g=this.parseLineIndex(i,this.isSplitDiff());return null!=l?"file"===this.mode?{kind:"token",lineType:n,lineElement:i,lineNumber:f,numberColumn:p,numberElement:o,side:void 0,splitLineIndex:g,...l}:{kind:"token",lineType:n,lineElement:i,lineNumber:f,numberColumn:p,numberElement:o,side:d(n,t),splitLineIndex:g,...l}:"file"===this.mode?{kind:"line",lineType:n,lineElement:i,lineNumber:f,numberColumn:p,numberElement:o,side:void 0,splitLineIndex:g}:{kind:"line",lineType:n,lineElement:i,lineNumber:f,numberColumn:p,numberElement:o,side:d(n,t),splitLineIndex:g}}isSplitDiff(){return this.pre?.getAttribute("data-diff-type")==="split"}parseLineIndex(e,n){let t=(e.getAttribute("data-line-index")??"").split(",").map(e=>Number.parseInt(e,10)).filter(e=>!Number.isNaN(e));return n&&2===t.length?t[1]:n?void 0:t[0]}};function o(e){return null!=e&&"kind"in e&&"line"===e.kind}function a(e){return null!=e&&"kind"in e&&"token"===e.kind}function l(e){return o(e)||a(e)}function s(e,n){let t=e?.querySelector(n);return t instanceof HTMLElement?t:void 0}function d(e,n){switch(e){case"change-deletion":return"deletions";case"change-addition":return"additions";default:return n.hasAttribute("data-deletions")?"deletions":"additions"}}function u(e){let n=e.getAttribute("data-line-type");if(null!=n)switch(n){case"change-deletion":case"change-addition":case"context":case"context-expanded":return n;default:return}}function c(e){for(let n of e)if(n instanceof HTMLElement&&n.hasAttribute("data-utility-button"))return!0;return!1}function f(e="none",n,...t){switch(e){case"none":return;case"both":break;case"click":if("click"!==n)return;break;case"move":if("move"!==n)return}console.log(...t)}e.s(["InteractionManager",0,r,"pluckInteractionOptions",0,function({enableTokenInteractionsOnWhitespace:e,enableGutterUtility:n,enableHoverUtility:t,lineHoverHighlight:i,onGutterUtilityClick:r,onLineClick:o,onLineEnter:a,onLineLeave:l,onLineNumberClick:s,onTokenClick:d,onTokenEnter:u,onTokenLeave:c,renderGutterUtility:f,renderHoverUtility:h,__debugPointerEvents:p,enableLineSelection:m,onLineSelected:g,onLineSelectionStart:v,onLineSelectionChange:b,onLineSelectionEnd:y},x,C,k){return{enableTokenInteractionsOnWhitespace:e,enableGutterUtility:function({enableGutterUtility:e,enableHoverUtility:n,renderGutterUtility:t,renderHoverUtility:i,onGutterUtilityClick:r}){if(void 0!==e&&void 0!==n)throw Error("Cannot use both 'enableGutterUtility' and deprecated 'enableHoverUtility'. Use only 'enableGutterUtility'.");if(null!=t&&null!=i)throw Error("Cannot use both 'renderGutterUtility' and deprecated 'renderHoverUtility'. Use only 'renderGutterUtility'.");if(null!=r&&(null!=t||null!=i))throw Error("Cannot use both 'onGutterUtilityClick' and render utility callbacks ('renderGutterUtility'/'renderHoverUtility'). Use only one gutter utility API.");return e??n??!1}({enableGutterUtility:n,enableHoverUtility:t,renderGutterUtility:f,renderHoverUtility:h,onGutterUtilityClick:r}),usesCustomGutterUtility:null!=f||null!=h,lineHoverHighlight:i,onGutterUtilityClick:r,onHunkExpand:x,onMergeConflictActionClick:k,onLineClick:o,onLineEnter:a,onLineLeave:l,onLineNumberClick:s,onTokenClick:d,onTokenEnter:u,onTokenLeave:c,__debugPointerEvents:p,enableLineSelection:m,onLineSelected:g,onLineSelectionStart:v,onLineSelectionChange:b,onLineSelectionEnd:y,getLineIndex:C}}],27763)},58498,e=>{"use strict";var n=e.i(90578);e.s(["splitFileContents",0,function(e){return""!==e?e.split(n.SPLIT_WITH_NEWLINES):[]}])},76493,e=>{"use strict";e.s(["areFilesEqual",0,function(e,n){return e?.cacheKey===n?.cacheKey&&e?.contents===n?.contents&&e?.name===n?.name&&e?.lang===n?.lang}])},65597,e=>{"use strict";e.s(["createAnnotationWrapperNode",0,function(e){let n=document.createElement("div");return n.dataset.annotationSlot="",n.slot=e,n.style.whiteSpace="normal",n}])},56752,e=>{"use strict";var n=class{observedNodes=new Map;queuedUpdates=new Map;cleanUp(){this.resizeObserver?.disconnect(),this.observedNodes.clear(),this.queuedUpdates.clear()}resizeObserver;setup(e,n){this.resizeObserver??=new ResizeObserver(this.handleResizeObserver);let t=e.querySelectorAll("code"),i=new Map(this.observedNodes);for(let e of(this.observedNodes.clear(),t)){let n=i.get(e);if(null!=n&&"code"!==n.type)throw Error("ResizeManager.setup: somehow a code node is being used for an annotation, should be impossible");let t=e.firstElementChild;t instanceof HTMLElement||(t=null),null!=n?(this.observedNodes.set(e,n),i.delete(e),n.numberElement!==t?(null!=n.numberElement&&this.resizeObserver.unobserve(n.numberElement),null!=t&&(this.resizeObserver.observe(t),i.delete(t),this.observedNodes.set(t,n)),n.numberElement=t):null!=n.numberElement&&(i.delete(n.numberElement),this.observedNodes.set(n.numberElement,n))):(n={type:"code",codeElement:e,numberElement:t,codeWidth:"auto",numberWidth:0},this.observedNodes.set(e,n),this.resizeObserver.observe(e),null!=t&&(this.observedNodes.set(t,n),this.resizeObserver.observe(t)))}if(t.length>1&&!n){let n=e.querySelectorAll('[data-line-annotation*=","]'),t=new Map;for(let e of n){if(!(e instanceof HTMLElement))continue;let{lineAnnotation:n=""}=e.dataset;if(!/^\d+,\d+$/.test(n)){console.error("DiffFileRenderer.setupResizeObserver: Invalid element or annotation",{lineAnnotation:n,element:e});continue}let i=t.get(n);null==i&&(i=[],t.set(n,i)),i.push(e)}for(let[e,n]of t){if(2!==n.length){console.error("DiffFileRenderer.setupResizeObserver: Bad Pair",e,n);continue}let[t,r]=n,o=t.firstElementChild,a=r.firstElementChild;if(!(t instanceof HTMLElement)||!(r instanceof HTMLElement)||!(o instanceof HTMLElement)||!(a instanceof HTMLElement))continue;let l=i.get(o);if(null!=l){this.observedNodes.set(o,l),this.observedNodes.set(a,l),i.delete(o),i.delete(a);continue}let s=Math.max((l={type:"annotations",column1:{container:t,child:o,childHeight:o.getBoundingClientRect().height},column2:{container:r,child:a,childHeight:a.getBoundingClientRect().height},currentHeight:"auto"}).column1.childHeight,l.column2.childHeight);this.applyNewHeight(l,s),this.observedNodes.set(o,l),this.observedNodes.set(a,l),this.resizeObserver.observe(o),this.resizeObserver.observe(a)}}for(let e of i.keys())e.isConnected&&(e.style.removeProperty("--diffs-column-content-width"),e.style.removeProperty("--diffs-column-number-width"),e.style.removeProperty("--diffs-column-width"),e.parentElement instanceof HTMLElement&&e.parentElement.style.removeProperty("--diffs-annotation-min-height")),this.resizeObserver.unobserve(e);i.clear()}handleResizeObserver=e=>{for(let n of e){let{target:e,borderBoxSize:t}=n;if(!(e instanceof HTMLElement)){console.error("FileDiff.handleResizeObserver: Invalid element for ResizeObserver",n);continue}let i=this.observedNodes.get(e);if(null==i){console.error("FileDiff.handleResizeObserver: Not a valid observed node",n);continue}let r=t[0];if("annotations"===i.type){let n=e===i.column1.child?i.column1:e===i.column2.child?i.column2:void 0;if(null==n){console.error("FileDiff.handleResizeObserver: Couldn't find a column for",{item:i,target:e});continue}n.childHeight=r.blockSize;let t=Math.max(i.column1.childHeight,i.column2.childHeight);this.applyNewHeight(i,t)}else if("code"===i.type){let n=[e,r.inlineSize],t=this.queuedUpdates.get(i)??[];t.push(n),this.queuedUpdates.set(i,t)}}this.handleColumnChange()};handleColumnChange=()=>{for(let[e,n]of this.queuedUpdates)for(let[t,i]of n)if(t===e.codeElement){let t=Math.max(Math.floor(i),0);if(t!==e.codeWidth){let n=Math.max(t-e.numberWidth,0);e.codeWidth=0===t?"auto":t,e.codeElement.style.setProperty("--diffs-column-content-width",`${n>0?`${n}px`:"auto"}`),e.codeElement.style.setProperty("--diffs-column-width",`${"number"==typeof e.codeWidth?`${e.codeWidth}px`:"auto"}`)}null!=e.numberElement&&"number"==typeof e.codeWidth&&0===e.numberWidth&&n.push([e.numberElement,e.numberElement.getBoundingClientRect().width])}else if(t===e.numberElement){let n=Math.max(Math.ceil(i),0);if(n!==e.numberWidth&&(e.numberWidth=n,e.codeElement.style.setProperty("--diffs-column-number-width",`${0===e.numberWidth?"auto":`${e.numberWidth}px`}`),"auto"!==e.codeWidth)){let n=Math.max(e.codeWidth-e.numberWidth,0);e.codeElement.style.setProperty("--diffs-column-content-width",`${0===n?"auto":`${n}px`}`)}}this.queuedUpdates.clear()};applyNewHeight(e,n){n!==e.currentHeight&&(e.currentHeight=Math.max(n,0),e.column1.container.style.setProperty("--diffs-annotation-min-height",`${e.currentHeight}px`),e.column2.container.style.setProperty("--diffs-annotation-min-height",`${e.currentHeight}px`))}};e.s(["ResizeManager",0,n])},37403,e=>{"use strict";let n=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
16
+ <symbol id="diffs-icon-arrow-right-short" viewBox="0 0 16 16">
17
+ <path d="M8.47 4.22a.75.75 0 0 0 0 1.06l1.97 1.97H3.75a.75.75 0 0 0 0 1.5h6.69l-1.97 1.97a.75.75 0 1 0 1.06 1.06l3.25-3.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0"/>
18
+ </symbol>
19
+ <symbol id="diffs-icon-brand-github" viewBox="0 0 16 16">
20
+ <path d="M8 0c4.42 0 8 3.58 8 8a8.01 8.01 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27s-1.36.09-2 .27c-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8"/>
21
+ </symbol>
22
+ <symbol id="diffs-icon-chevron" viewBox="0 0 16 16">
23
+ <path d="M1.47 4.47a.75.75 0 0 1 1.06 0L8 9.94l5.47-5.47a.75.75 0 1 1 1.06 1.06l-6 6a.75.75 0 0 1-1.06 0l-6-6a.75.75 0 0 1 0-1.06"/>
24
+ </symbol>
25
+ <symbol id="diffs-icon-chevrons-narrow" viewBox="0 0 10 16">
26
+ <path d="M4.47 2.22a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1-1.06 1.06L5 3.81 2.28 6.53a.75.75 0 0 1-1.06-1.06zM1.22 9.47a.75.75 0 0 1 1.06 0L5 12.19l2.72-2.72a.75.75 0 0 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0l-3.25-3.25a.75.75 0 0 1 0-1.06"/>
27
+ </symbol>
28
+ <symbol id="diffs-icon-diff-split" viewBox="0 0 16 16">
29
+ <path d="M14 0H8.5v16H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2m-1.5 6.5v1h1a.5.5 0 0 1 0 1h-1v1a.5.5 0 0 1-1 0v-1h-1a.5.5 0 0 1 0-1h1v-1a.5.5 0 0 1 1 0"/><path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h5.5V0zm.5 7.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1" opacity=".3"/>
30
+ </symbol>
31
+ <symbol id="diffs-icon-diff-unified" viewBox="0 0 16 16">
32
+ <path fill-rule="evenodd" d="M16 14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8.5h16zm-8-4a.5.5 0 0 0-.5.5v1h-1a.5.5 0 0 0 0 1h1v1a.5.5 0 0 0 1 0v-1h1a.5.5 0 0 0 0-1h-1v-1A.5.5 0 0 0 8 10" clip-rule="evenodd"/><path fill-rule="evenodd" d="M14 0a2 2 0 0 1 2 2v5.5H0V2a2 2 0 0 1 2-2zM6.5 3.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z" clip-rule="evenodd" opacity=".4"/>
33
+ </symbol>
34
+ <symbol id="diffs-icon-expand" viewBox="0 0 16 16">
35
+ <path d="M3.47 5.47a.75.75 0 0 1 1.06 0L8 8.94l3.47-3.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06"/>
36
+ </symbol>
37
+ <symbol id="diffs-icon-expand-all" viewBox="0 0 16 16">
38
+ <path d="M11.47 9.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06L8 12.94zM7.526 1.418a.75.75 0 0 1 1.004.052l4 4a.75.75 0 1 1-1.06 1.06L8 3.06 4.53 6.53a.75.75 0 1 1-1.06-1.06l4-4z"/>
39
+ </symbol>
40
+ <symbol id="diffs-icon-file-code" viewBox="0 0 16 16">
41
+ <path d="M10.75 0c.199 0 .39.08.53.22l3.5 3.5c.14.14.22.331.22.53v9A2.75 2.75 0 0 1 12.25 16h-8.5A2.75 2.75 0 0 1 1 13.25V2.75A2.75 2.75 0 0 1 3.75 0zm-7 1.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h8.5c.69 0 1.25-.56 1.25-1.25V5h-1.25A2.25 2.25 0 0 1 10 2.75V1.5z"/><path d="M7.248 6.19a.75.75 0 0 1 .063 1.058L5.753 9l1.558 1.752a.75.75 0 0 1-1.122.996l-2-2.25a.75.75 0 0 1 0-.996l2-2.25a.75.75 0 0 1 1.06-.063M8.69 7.248a.75.75 0 1 1 1.12-.996l2 2.25a.75.75 0 0 1 0 .996l-2 2.25a.75.75 0 1 1-1.12-.996L10.245 9z"/>
42
+ </symbol>
43
+ <symbol id="diffs-icon-plus" viewBox="0 0 16 16">
44
+ <path d="M8 3a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 8 3"/>
45
+ </symbol>
46
+ <symbol id="diffs-icon-symbol-added" viewBox="0 0 16 16">
47
+ <path d="M8 4a.75.75 0 0 1 .75.75v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5A.75.75 0 0 1 8 4"/><path d="M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8"/>
48
+ </symbol>
49
+ <symbol id="diffs-icon-symbol-deleted" viewBox="0 0 16 16">
50
+ <path d="M4 8a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 4 8"/><path d="M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8"/>
51
+ </symbol>
52
+ <symbol id="diffs-icon-symbol-diffstat" viewBox="0 0 16 16">
53
+ <path d="M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8"/><path d="M8.75 4.296a.75.75 0 0 0-1.5 0V6.25h-2a.75.75 0 0 0 0 1.5h2v1.5h1.5v-1.5h2a.75.75 0 0 0 0-1.5h-2zM5.25 10a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5z"/>
54
+ </symbol>
55
+ <symbol id="diffs-icon-symbol-ignored" viewBox="0 0 16 16">
56
+ <path d="M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m11.53-2.47a.75.75 0 0 0-1.06-1.06l-6 6a.75.75 0 1 0 1.06 1.06z"/>
57
+ </symbol>
58
+ <symbol id="diffs-icon-symbol-modified" viewBox="0 0 16 16">
59
+ <path d="M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m8 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6"/>
60
+ </symbol>
61
+ <symbol id="diffs-icon-symbol-moved" viewBox="0 0 16 16">
62
+ <path d="M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8"/><path d="M8.495 4.695a.75.75 0 0 0-.05 1.06L10.486 8l-2.041 2.246a.75.75 0 0 0 1.11 1.008l2.5-2.75a.75.75 0 0 0 0-1.008l-2.5-2.75a.75.75 0 0 0-1.06-.051m-4 0a.75.75 0 0 0-.05 1.06l2.044 2.248-1.796 1.995a.75.75 0 0 0 1.114 1.004l2.25-2.5a.75.75 0 0 0-.002-1.007l-2.5-2.75a.75.75 0 0 0-1.06-.05"/>
63
+ </symbol>
64
+ <symbol id="diffs-icon-symbol-ref" viewBox="0 0 16 16">
65
+ <path d="M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706.286.286.71.54 1.41.73V1.86c-.7.19-1.124.444-1.41.73-.324.325-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8m4 6.397c.697.07 1.522.103 2.5.103 1.613 0 2.806-.088 3.704-.288.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5c-.978 0-1.803.033-2.5.103zM0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m7-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z"/>
66
+ </symbol>
67
+ </svg>`;e.s(["SVGSpriteSheet",0,n])},33574,e=>{"use strict";let n={};e.s(["arePrePropertiesEqual",0,function(e,t){return null==e||null==t?e===t:function(e=n,t=n){if(e===t)return!0;let i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;for(let n of i)if(e[n]!==t[n])return!1;return!0}(e.customProperties,t.customProperties)&&e.type===t.type&&e.diffIndicators===t.diffIndicators&&e.disableBackground===t.disableBackground&&e.disableLineNumbers===t.disableLineNumbers&&e.overflow===t.overflow&&e.split===t.split&&e.totalLines===t.totalLines}])},22555,e=>{"use strict";e.s(["createGutterUtilityContentNode",0,function(){let e=document.createElement("div");return e.slot="gutter-utility-slot",e.style.position="absolute",e.style.top="0",e.style.bottom="0",e.style.textAlign="center",e.style.whiteSpace="normal",e}])},68382,e=>{"use strict";var n=e.i(90578);e.s(["createUnsafeCSSStyleNode",0,function(){let e=document.createElement("style");return e.setAttribute(n.UNSAFE_CSS_ATTRIBUTE,""),e}])},55740,e=>{"use strict";e.s(["getOrCreateCodeNode",0,function({code:e,pre:n,columnType:t,rowSpan:i,containerSize:r=!1}={}){return null==e&&((e=document.createElement("code")).setAttribute("data-code",""),null!=t&&e.setAttribute(`data-${t}`,""),n?.appendChild(e)),null!=i?e.style.setProperty("grid-row",`span ${i}`):e.style.removeProperty("grid-row"),r?e.setAttribute("data-container-size",""):e.removeAttribute("data-container-size"),e}])},2756,e=>{"use strict";var n=e.i(90578);e.s(["upsertHostThemeStyle",0,function({shadowRoot:e,currentNode:t,themeCSS:i}){let r;return""===i.trim()?void t?.remove():((t??=((r=document.createElement("style")).setAttribute(n.THEME_CSS_ATTRIBUTE,""),r)).textContent=i,t.parentNode!==e&&e.appendChild(t),t)}])},54337,e=>{"use strict";e.s(["prerenderHTMLIfNecessary",0,function(e,n){if(null==n)return;let t=e.shadowRoot??e.attachShadow({mode:"open"});""===t.innerHTML&&(t.innerHTML=n)}])},28695,e=>{"use strict";e.s(["setPreNodeProperties",0,function(e,{type:n,diffIndicators:t,disableBackground:i,disableLineNumbers:r,overflow:o,split:a,totalLines:l,customProperties:s}){if(null!=s)for(let n in s){let t=s[n];null!=t&&e.setAttribute(n,`${t}`)}switch("diff"===n?(e.setAttribute("data-diff",""),e.removeAttribute("data-file")):(e.setAttribute("data-file",""),e.removeAttribute("data-diff")),t){case"bars":case"classic":e.setAttribute("data-indicators",t);break;case"none":e.removeAttribute("data-indicators")}return r?e.setAttribute("data-disable-line-numbers",""):e.removeAttribute("data-disable-line-numbers"),i?e.removeAttribute("data-background"):e.setAttribute("data-background",""),"diff"===n?e.setAttribute("data-diff-type",a?"split":"single"):e.removeAttribute("data-diff-type"),e.setAttribute("data-overflow",o),e.tabIndex=0,e.style.setProperty("--diffs-min-number-column-width-default",`${`${l}`.length}ch`),e}])},57360,e=>{"use strict";var n=e.i(90578),t=e.i(91260);if("u">typeof HTMLElement&&null==customElements.get(n.DIFFS_TAG_NAME)){let e;class i extends HTMLElement{constructor(){if(super(),null!=this.shadowRoot)return;const n=this.attachShadow({mode:"open"});null==e&&(e=new CSSStyleSheet).replaceSync(t.default),n.adoptedStyleSheets=[e]}}customElements.define(n.DIFFS_TAG_NAME,i)}e.s(["DiffsContainerLoaded",0,!0])},88860,e=>{"use strict";var n=class{isDeletionsScrolling=!1;isAdditionsScrolling=!1;timeoutId=-1;codeDeletions;codeAdditions;enabled=!1;cleanUp(){this.enabled&&(this.codeDeletions?.removeEventListener("scroll",this.handleDeletionsScroll),this.codeAdditions?.removeEventListener("scroll",this.handleAdditionsScroll),clearTimeout(this.timeoutId),this.codeDeletions=void 0,this.codeAdditions=void 0,this.enabled=!1)}setup(e,n,t){if(null==n||null==t)for(let i of e.children??[])i instanceof HTMLElement&&("deletions"in i.dataset?n=i:"additions"in i.dataset&&(t=i));null==t||null==n?this.cleanUp():(this.codeDeletions!==n&&(this.codeDeletions?.removeEventListener("scroll",this.handleDeletionsScroll),this.codeDeletions=n,n.addEventListener("scroll",this.handleDeletionsScroll,{passive:!0})),this.codeAdditions!==t&&(this.codeAdditions?.removeEventListener("scroll",this.handleAdditionsScroll),this.codeAdditions=t,t.addEventListener("scroll",this.handleAdditionsScroll,{passive:!0})),this.enabled=!0)}handleDeletionsScroll=()=>{this.isAdditionsScrolling||(this.isDeletionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isDeletionsScrolling=!1},300),this.codeAdditions?.scrollTo({left:this.codeDeletions?.scrollLeft}))};handleAdditionsScroll=()=>{this.isDeletionsScrolling||(this.isAdditionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isAdditionsScrolling=!1},300),this.codeDeletions?.scrollTo({left:this.codeAdditions?.scrollLeft}))}};e.s(["ScrollSyncManager",0,n])},55594,e=>{"use strict";e.s(["areDiffLineAnnotationsEqual",0,function(e,n){return e.lineNumber===n.lineNumber&&e.side===n.side&&e.metadata===n.metadata}])},49667,e=>{"use strict";e.s(["areHunkDataEqual",0,function(e,n){return e.slotName===n.slotName&&e.hunkIndex===n.hunkIndex&&e.lines===n.lines&&e.type===n.type&&e.expandable?.chunked===n.expandable?.chunked&&e.expandable?.up===n.expandable?.up&&e.expandable?.down===n.expandable?.down}])},49889,e=>e.a(async(n,t)=>{try{var i=e.i(90578),r=e.i(27763),o=e.i(56752),a=e.i(199),l=e.i(59808),s=e.i(37403),d=e.i(76493),u=e.i(33574),c=e.i(65597),f=e.i(22555),h=e.i(68382),p=e.i(10787),m=e.i(55740),g=e.i(2756),v=e.i(54337),b=e.i(28695),y=e.i(57360),x=e.i(88860),C=e.i(8704),k=e.i(55594),S=e.i(49667),L=e.i(67997),E=e.i(36680),w=n([C]);[C]=w.then?(await w)():w;let I=-1;var A=class{static LoadedCustomComponent=y.DiffsContainerLoaded;__id=`file-diff:${++I}`;fileContainer;spriteSVG;pre;codeUnified;codeDeletions;codeAdditions;bufferBefore;bufferAfter;themeCSSStyle;appliedThemeCSS;unsafeCSSStyle;appliedUnsafeCSS;gutterUtilityContent;headerElement;headerPrefix;headerMetadata;headerCustom;separatorCache=new Map;errorWrapper;placeHolder;hunksRenderer;resizeManager;scrollSyncManager;interactionManager;annotationCache=new Map;lineAnnotations=[];deletionFile;additionFile;fileDiff;renderRange;appliedPreAttributes;lastRenderedHeaderHTML;lastRowCount;enabled=!0;constructor(e={theme:i.DEFAULT_THEMES},n,t=!1){this.options=e,this.workerManager=n,this.isContainerManaged=t,this.hunksRenderer=this.createHunksRenderer(e),this.resizeManager=new o.ResizeManager,this.scrollSyncManager=new x.ScrollSyncManager,this.interactionManager=new r.InteractionManager("diff",(0,r.pluckInteractionOptions)(e,"function"==typeof e.hunkSeparators||(e.hunkSeparators??"line-info")==="line-info"||"line-info-basic"===e.hunkSeparators?this.handleExpandHunk:void 0,this.getLineIndex)),this.workerManager?.subscribeToThemeChanges(this),this.enabled=!0}handleHighlightRender=()=>{this.rerender()};getHunksRendererOptions(e){return{...e,headerRenderMode:null!=e.renderCustomHeader?"custom":"default",hunkSeparators:"function"==typeof e.hunkSeparators?"custom":e.hunkSeparators}}createHunksRenderer(e){return new C.DiffHunksRenderer(this.getHunksRendererOptions(e),this.handleHighlightRender,this.workerManager)}getLineIndex=(e,n="additions")=>{let t,i;if(null==this.fileDiff)return;let r=this.fileDiff.hunks.at(-1);e:for(let o of this.fileDiff.hunks){let a="deletions"===n?o.deletionStart:o.additionStart,l="deletions"===n?o.deletionCount:o.additionCount,s=o.splitLineStart,d=o.unifiedLineStart;if(e<a){let n=a-e;t=Math.max(d-n,0),i=Math.max(s-n,0);break}if(e>=a+l){if(o===r){let n=e-(a+l);t=d+o.unifiedLineCount+n,i=s+o.splitLineCount+n;break}continue}for(let r of o.hunkContent)if("context"===r.type)if(e<a+r.lines){let n=e-a;i=s+n,t=d+n;break e}else a+=r.lines,s+=r.lines,d+=r.lines;else{let o="deletions"===n?r.deletions:r.additions;if(e<a+o){let o=e-a;t=d+("additions"===n?r.deletions:0)+o,i=s+o;break e}a+=o,s+=Math.max(r.deletions,r.additions),d+=r.deletions+r.additions}break}if(null!=t&&null!=i)return[t,i]};setOptions(e){null!=e&&(this.options=e,this.hunksRenderer.setOptions(this.getHunksRendererOptions(e)),this.interactionManager.setOptions((0,r.pluckInteractionOptions)(e,"function"==typeof e.hunkSeparators||(e.hunkSeparators??"line-info")==="line-info"||"line-info-basic"===e.hunkSeparators?this.handleExpandHunk:void 0,this.getLineIndex)))}mergeOptions(e){this.options={...this.options,...e}}setThemeType(e){(this.options.themeType??"system")===e||(this.mergeOptions({themeType:e}),"string"!=typeof this.options.theme&&null!=this.fileContainer&&null!=this.appliedThemeCSS&&this.applyThemeState(this.fileContainer,this.appliedThemeCSS.themeStyles,e,this.appliedThemeCSS.baseThemeType))}getHoveredLine=()=>this.interactionManager.getHoveredLine();setLineAnnotations(e){this.lineAnnotations=e}canPartiallyRender(e,n,t){return!e&&!n&&!t&&"function"!=typeof this.options.hunkSeparators}setSelectedLines(e){this.interactionManager.setSelection(e)}cleanUp(e=!1){this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.workerManager?.unsubscribeToThemeChanges(this),this.renderRange=void 0,this.isContainerManaged||this.fileContainer?.remove(),this.fileContainer?.shadowRoot!=null&&(this.fileContainer.shadowRoot.innerHTML=""),this.fileContainer=void 0,null!=this.pre&&(this.pre.innerHTML="",this.pre=void 0),this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0,this.bufferBefore=void 0,this.bufferAfter=void 0,this.appliedPreAttributes=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.lastRenderedHeaderHTML=void 0,this.errorWrapper=void 0,this.spriteSVG=void 0,this.lastRowCount=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,e?this.hunksRenderer.recycle():(this.hunksRenderer.cleanUp(),this.workerManager=void 0,this.fileDiff=void 0,this.deletionFile=void 0,this.additionFile=void 0),this.enabled=!1}virtualizedSetup(){this.enabled=!0,this.workerManager?.subscribeToThemeChanges(this)}hydrate(e){let{fileContainer:n,prerenderedHTML:t,preventEmit:i=!1,lineAnnotations:r,oldFile:o,newFile:a,fileDiff:l}=e;this.hydrateElements(n,t),null==this.pre&&null==this.headerElement?this.render({...e,preventEmit:!0}):this.hydrationSetup({fileDiff:l,oldFile:o,newFile:a,lineAnnotations:r}),i||this.emitPostRender()}hydrateElements(e,n){for(let t of((0,v.prerenderHTMLIfNecessary)(e,n),e.shadowRoot?.children??[])){if(t instanceof SVGElement){this.spriteSVG=t;continue}if(t instanceof HTMLElement){if(t instanceof HTMLPreElement){for(let e of(this.pre=t,t.children))e instanceof HTMLElement&&"code"===e.tagName.toLowerCase()&&("deletions"in e.dataset&&(this.codeDeletions=e),"additions"in e.dataset&&(this.codeAdditions=e),"unified"in e.dataset&&(this.codeUnified=e));continue}if("diffsHeader"in t.dataset){this.headerElement=t;continue}if(t instanceof HTMLStyleElement&&t.hasAttribute(i.THEME_CSS_ATTRIBUTE)){this.themeCSSStyle=t;continue}if(t instanceof HTMLStyleElement&&t.hasAttribute(i.UNSAFE_CSS_ATTRIBUTE)){this.unsafeCSSStyle=t,this.appliedUnsafeCSS=t.textContent;continue}}}null!=this.pre&&(this.syncCodeNodesFromPre(this.pre),this.pre.removeAttribute("data-dehydrated")),(null!=this.pre||null!=this.headerElement)&&(this.fileContainer=e)}hydrationSetup({fileDiff:e,oldFile:n,newFile:t,lineAnnotations:i}){let{diffStyle:r="split",overflow:o="scroll"}=this.options;this.lineAnnotations=i??this.lineAnnotations,this.additionFile=t,this.deletionFile=n,this.fileDiff=e??(null!=n&&null!=t?(0,L.parseDiffFromFile)(n,t,this.options.parseDiffOptions):void 0),null!=this.pre&&(this.hunksRenderer.hydrate(this.fileDiff),this.renderAnnotations(),this.renderGutterUtility(),this.injectUnsafeCSS(),this.interactionManager.setup(this.pre),this.resizeManager.setup(this.pre,"wrap"===o),"scroll"===o&&"split"===r&&this.scrollSyncManager.setup(this.pre,this.codeDeletions,this.codeAdditions))}rerender(){this.enabled&&(null!=this.fileDiff||null!=this.additionFile||null!=this.deletionFile)&&this.render({forceRender:!0,renderRange:this.renderRange})}handleExpandHunk=(e,n,t)=>{this.expandHunk(e,n,t)};expandHunk=(e,n,t)=>{this.hunksRenderer.expandHunk(e,n,t),this.rerender()};render({oldFile:e,newFile:n,fileDiff:t,forceRender:r=!1,preventEmit:o=!1,lineAnnotations:l,fileContainer:s,containerWrapper:u,renderRange:c}){if(!this.enabled)throw Error("FileDiff.render: attempting to call render after cleaned up");let{collapsed:f=!1}=this.options,h=f?void 0:c,p=null!=e&&null!=n&&(!(0,d.areFilesEqual)(e,this.deletionFile)||!(0,d.areFilesEqual)(n,this.additionFile)),m=null!=t&&t!==this.fileDiff,g=null!=l&&(l.length>0||this.lineAnnotations.length>0)&&l!==this.lineAnnotations;if(!f&&(0,a.areRenderRangesEqual)(h,this.renderRange)&&!r&&!g&&(null!=t&&t===this.fileDiff||null==t&&!p))return!1;let{renderRange:v}=this;if(this.renderRange=h,this.deletionFile=e,this.additionFile=n,null!=t?this.fileDiff=t:null!=e&&null!=n&&p&&(m=!0,this.fileDiff=(0,L.parseDiffFromFile)(e,n,this.options.parseDiffOptions)),null!=l&&this.setLineAnnotations(l),null==this.fileDiff)return!1;this.hunksRenderer.setOptions(this.getHunksRendererOptions(this.options)),this.hunksRenderer.setLineAnnotations(this.lineAnnotations);let{diffStyle:b="split",disableErrorHandling:y=!1,disableFileHeader:x=!1,overflow:C="scroll",themeType:k="system"}=this.options;if(x&&(null!=this.headerElement&&(this.headerElement.remove(),this.headerElement=void 0,this.lastRenderedHeaderHTML=void 0),this.clearHeaderSlots()),s=this.getOrCreateFileContainer(s,u),f){this.removeRenderedCode(),this.clearAuxiliaryNodes();try{let e=this.hunksRenderer.renderDiff(this.fileDiff,i.EMPTY_RENDER_RANGE);null!=e&&this.applyThemeState(s,e.themeStyles,k,e.baseThemeType),e?.headerElement!=null&&this.applyHeaderToDOM(e.headerElement,s),this.renderSeparators([]),this.injectUnsafeCSS()}catch(e){if(y)throw e;console.error(e),e instanceof Error&&this.applyErrorToDOM(e,s)}return o||this.emitPostRender(),!0}try{let e=this.getOrCreatePreNode(s);if(!(this.canPartiallyRender(r,g,p||m)&&this.applyPartialRender({previousRenderRange:v,renderRange:h}))){let n=this.hunksRenderer.renderDiff(this.fileDiff,h);if(null==n)return this.workerManager?.isInitialized()===!1&&this.workerManager.initialize().then(()=>this.rerender()),!1;this.applyThemeState(s,n.themeStyles,k,n.baseThemeType),null!=n.headerElement&&this.applyHeaderToDOM(n.headerElement,s),null!=n.additionsContentAST||null!=n.deletionsContentAST||null!=n.unifiedContentAST?this.applyHunksToDOM(e,n):null!=this.pre&&(this.pre.remove(),this.pre=void 0),this.renderSeparators(n.hunkData)}this.applyBuffers(e,h),this.injectUnsafeCSS(),this.renderAnnotations(),this.renderGutterUtility(),this.interactionManager.setup(e),this.resizeManager.setup(e,"wrap"===C),"scroll"===C&&"split"===b?this.scrollSyncManager.setup(e,this.codeDeletions,this.codeAdditions):this.scrollSyncManager.cleanUp()}catch(e){if(y)throw e;console.error(e),e instanceof Error&&this.applyErrorToDOM(e,s)}return o||this.emitPostRender(),!0}emitPostRender(){null!=this.fileContainer&&this.options.onPostRender?.(this.fileContainer,this)}removeRenderedCode(){this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferBefore?.remove(),this.bufferBefore=void 0,this.bufferAfter?.remove(),this.bufferAfter=void 0,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0,this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0}clearAuxiliaryNodes(){for(let{element:e}of this.separatorCache.values())e.remove();for(let{element:e}of(this.separatorCache.clear(),this.annotationCache.values()))e.remove();this.annotationCache.clear(),this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0}renderPlaceholder(e){if(null==this.fileContainer)return!1;if(this.cleanChildNodes(),null==this.placeHolder){let e=this.fileContainer.shadowRoot??this.fileContainer.attachShadow({mode:"open"});this.placeHolder=document.createElement("div"),this.placeHolder.dataset.placeholder="",e.appendChild(this.placeHolder)}return this.placeHolder.style.setProperty("height",`${e}px`),!0}cleanChildNodes(){this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferAfter?.remove(),this.bufferBefore?.remove(),this.codeAdditions?.remove(),this.codeDeletions?.remove(),this.codeUnified?.remove(),this.errorWrapper?.remove(),this.headerElement?.remove(),this.gutterUtilityContent?.remove(),this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.pre?.remove(),this.spriteSVG?.remove(),this.themeCSSStyle?.remove(),this.unsafeCSSStyle?.remove(),this.bufferAfter=void 0,this.bufferBefore=void 0,this.codeAdditions=void 0,this.codeDeletions=void 0,this.codeUnified=void 0,this.errorWrapper=void 0,this.headerElement=void 0,this.gutterUtilityContent=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.pre=void 0,this.spriteSVG=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.lastRenderedHeaderHTML=void 0,this.lastRowCount=void 0}renderSeparators(e){let{hunkSeparators:n}=this.options;if(this.isContainerManaged||null==this.fileContainer||"function"!=typeof n){for(let{element:e}of this.separatorCache.values())e.remove();this.separatorCache.clear();return}let t=new Map(this.separatorCache);for(let i of e){let e=i.slotName,r=this.separatorCache.get(e);if(null==r||!(0,S.areHunkDataEqual)(i,r.hunkData)){r?.element.remove();let t=document.createElement("div");t.style.display="contents",t.slot=i.slotName;let o=n(i,this);null!=o&&t.appendChild(o),this.fileContainer.appendChild(t),r={element:t,hunkData:i},this.separatorCache.set(e,r)}t.delete(e)}for(let[e,{element:n}]of t.entries())this.separatorCache.delete(e),n.remove()}renderAnnotations(){if(this.isContainerManaged||null==this.fileContainer){for(let{element:e}of this.annotationCache.values())e.remove();this.annotationCache.clear();return}let e=new Map(this.annotationCache),{renderAnnotation:n}=this.options;if(null!=n&&this.lineAnnotations.length>0)for(let[t,i]of this.lineAnnotations.entries()){let r=`${t}-${(0,l.getLineAnnotationName)(i)}`,o=this.annotationCache.get(r);if(null==o||!(0,k.areDiffLineAnnotationsEqual)(i,o.annotation)){o?.element.remove();let e=n(i);if(null==e)continue;(o={element:(0,c.createAnnotationWrapperNode)((0,l.getLineAnnotationName)(i)),annotation:i}).element.appendChild(e),this.fileContainer.appendChild(o.element),this.annotationCache.set(r,o)}e.delete(r)}for(let[n,{element:t}]of e.entries())this.annotationCache.delete(n),t.remove()}renderGutterUtility(){let e=this.options.renderGutterUtility??this.options.renderHoverUtility;if(null==this.fileContainer||null==e){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let n=e(this.interactionManager.getHoveredLine);if(null!=n&&null!=this.gutterUtilityContent)return;if(null==n){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let t=(0,f.createGutterUtilityContentNode)();t.appendChild(n),this.fileContainer.appendChild(t),this.gutterUtilityContent=t}getOrCreateFileContainer(e,n){let t=this.fileContainer;if(this.fileContainer=e??this.fileContainer??document.createElement(i.DIFFS_TAG_NAME),null!=t&&t!==this.fileContainer&&(this.lastRenderedHeaderHTML=void 0,this.headerElement=void 0),null!=n&&this.fileContainer.parentNode!==n&&n.appendChild(this.fileContainer),null==this.spriteSVG){let e=document.createElement("div");e.innerHTML=s.SVGSpriteSheet;let n=e.firstChild;n instanceof SVGElement&&(this.spriteSVG=n,this.fileContainer.shadowRoot?.appendChild(this.spriteSVG))}return this.fileContainer}getFileContainer(){return this.fileContainer}getOrCreatePreNode(e){let n=e.shadowRoot??e.attachShadow({mode:"open"});return null==this.pre?(this.pre=document.createElement("pre"),this.appliedPreAttributes=void 0,this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0,n.appendChild(this.pre)):this.pre.parentNode!==n&&(n.appendChild(this.pre),this.appliedPreAttributes=void 0),this.placeHolder?.remove(),this.placeHolder=void 0,this.pre}syncCodeNodesFromPre(e){for(let n of(this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0,Array.from(e.children)))n instanceof HTMLElement&&(n.hasAttribute("data-unified")?this.codeUnified=n:n.hasAttribute("data-deletions")?this.codeDeletions=n:n.hasAttribute("data-additions")&&(this.codeAdditions=n))}applyHeaderToDOM(e,n){this.cleanupErrorWrapper(),this.placeHolder?.remove(),this.placeHolder=void 0;let{fileDiff:t}=this,r=(0,E.toHtml)(e);if(r!==this.lastRenderedHeaderHTML){let e=document.createElement("div");e.innerHTML=r;let t=e.firstElementChild;if(!(t instanceof HTMLElement))return;null!=this.headerElement?n.shadowRoot?.replaceChild(t,this.headerElement):n.shadowRoot?.prepend(t),this.headerElement=t,this.lastRenderedHeaderHTML=r}if(this.isContainerManaged||null==t)return;let{renderCustomHeader:o,renderHeaderPrefix:a,renderHeaderMetadata:l}=this.options;if(null!=o){let e=o(t)??void 0;this.headerCustom=this.upsertHeaderSlotElement(n,this.headerCustom,i.CUSTOM_HEADER_SLOT_ID,e),this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerPrefix=void 0,this.headerMetadata=void 0;return}let s=a?.(t)??void 0,d=l?.(t)??void 0;this.headerPrefix=this.upsertHeaderSlotElement(n,this.headerPrefix,i.HEADER_PREFIX_SLOT_ID,s),this.headerMetadata=this.upsertHeaderSlotElement(n,this.headerMetadata,i.HEADER_METADATA_SLOT_ID,d),this.headerCustom?.remove(),this.headerCustom=void 0}clearHeaderSlots(){this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0}upsertHeaderSlotElement(e,n,t,i){if(null==i)return void n?.remove();let r=n??this.createHeaderSlotElement(t);return null==n&&e.appendChild(r),this.replaceHeaderSlotContent(r,i),r}replaceHeaderSlotContent(e,n){e.replaceChildren(),n instanceof Element?e.appendChild(n):e.innerText=`${n}`}createHeaderSlotElement(e){let n=document.createElement("div");return n.slot=e,n}injectUnsafeCSS(){let{unsafeCSS:e}=this.options,n=this.fileContainer?.shadowRoot;if(null!=n){if(null==e||""===e){null!=this.unsafeCSSStyle&&(this.unsafeCSSStyle.remove(),this.unsafeCSSStyle=void 0),this.appliedUnsafeCSS=void 0;return}(this.unsafeCSSStyle?.parentNode!==n||this.appliedUnsafeCSS!==e)&&(this.unsafeCSSStyle??=(0,h.createUnsafeCSSStyleNode)(),this.unsafeCSSStyle.parentNode!==n&&n.appendChild(this.unsafeCSSStyle),this.unsafeCSSStyle.textContent=(0,p.wrapUnsafeCSS)(e),this.appliedUnsafeCSS=e)}}applyThemeState(e,n,t,i){let r=e.shadowRoot??e.attachShadow({mode:"open"}),o=i??t;(this.themeCSSStyle?.parentNode!==r||this.appliedThemeCSS?.themeStyles!==n||this.appliedThemeCSS.themeType!==o)&&(this.themeCSSStyle=(0,g.upsertHostThemeStyle)({shadowRoot:r,currentNode:this.themeCSSStyle,themeCSS:(0,p.wrapThemeCSS)(n,o)}),this.appliedThemeCSS=null!=this.themeCSSStyle?{themeStyles:n,themeType:o,baseThemeType:i}:void 0)}applyHunksToDOM(e,n){let{overflow:t="scroll"}=this.options,i=(this.options.hunkSeparators??"line-info")==="line-info",r="wrap"===t?n.rowCount:void 0;this.cleanupErrorWrapper(),this.applyPreNodeAttributes(e,n);let o=!1,a=[],l=this.hunksRenderer.renderCodeAST("unified",n),s=this.hunksRenderer.renderCodeAST("deletions",n),d=this.hunksRenderer.renderCodeAST("additions",n);null!=l?(o=null==this.codeUnified||null!=this.codeAdditions||null!=this.codeDeletions,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0,this.codeUnified=(0,m.getOrCreateCodeNode)({code:this.codeUnified,columnType:"unified",rowSpan:r,containerSize:i}),this.codeUnified.innerHTML=this.hunksRenderer.renderPartialHTML(l),a.push(this.codeUnified)):null!=s||null!=d?(null!=s?(o=null==this.codeDeletions||null!=this.codeUnified,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions=(0,m.getOrCreateCodeNode)({code:this.codeDeletions,columnType:"deletions",rowSpan:r,containerSize:i}),this.codeDeletions.innerHTML=this.hunksRenderer.renderPartialHTML(s),a.push(this.codeDeletions)):(this.codeDeletions?.remove(),this.codeDeletions=void 0),null!=d?(o=o||null==this.codeAdditions||null!=this.codeUnified,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeAdditions=(0,m.getOrCreateCodeNode)({code:this.codeAdditions,columnType:"additions",rowSpan:r,containerSize:i}),this.codeAdditions.innerHTML=this.hunksRenderer.renderPartialHTML(d),a.push(this.codeAdditions)):(this.codeAdditions?.remove(),this.codeAdditions=void 0)):(this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0),0===a.length?e.textContent="":o&&e.replaceChildren(...a),this.lastRowCount=n.rowCount}applyPartialRender({previousRenderRange:e,renderRange:n}){let{pre:t,codeUnified:i,codeAdditions:r,codeDeletions:o,options:{diffStyle:a="split"}}=this;if(null==t||null==e||null==n||!Number.isFinite(e.totalLines)||!Number.isFinite(n.totalLines)||null==this.lastRowCount)return!1;let l=this.getCodeColumns(a,i,o,r);if(null==l)return!1;let s=e.startingLine,d=n.startingLine,u=s+e.totalLines,c=d+n.totalLines,f=Math.max(s,d),h=Math.min(u,c);if(h<=f)return!1;let p=Math.max(0,f-s),m=Math.max(0,u-h),g=this.trimColumns({columns:l,trimStart:p,trimEnd:m,previousStart:s,overlapStart:f,overlapEnd:h,diffStyle:a});if(g<0)throw Error("applyPartialRender: failed to trim to overlap");if(this.lastRowCount<g)throw Error("applyPartialRender: trimmed beyond DOM row count");let v=this.lastRowCount-g,b=(e,n)=>{if(!(n<=0)&&null!=this.fileDiff)return this.hunksRenderer.renderDiff(this.fileDiff,{startingLine:e,totalLines:n,bufferBefore:0,bufferAfter:0})},y=b(d,Math.max(f-d,0));if(null==y&&d<f)return!1;let x=b(h,Math.max(c-h,0));if(null==x&&c>h)return!1;let C=(e,n)=>{if(null!=e){if("unified"!==a||Array.isArray(l))if("split"===a&&Array.isArray(l))this.insertPartialHTML(a,l,e,n);else throw Error("FileDiff.applyPartialRender.applyChunk: invalid chunk application");else this.insertPartialHTML(a,l,e,n);v+=e.rowCount}};return this.cleanupErrorWrapper(),C(y,"afterbegin"),C(x,"beforeend"),this.lastRowCount!==v&&(this.applyRowSpan(a,l,v),this.lastRowCount=v),!0}insertPartialHTML(e,n,t,i){if("unified"!==e||Array.isArray(n))if("split"===e&&Array.isArray(n)){let e=this.hunksRenderer.renderCodeAST("deletions",t),r=this.hunksRenderer.renderCodeAST("additions",t);this.renderPartialColumn(n[0],e,i),this.renderPartialColumn(n[1],r,i)}else throw Error("FileDiff.insertPartialHTML: Invalid argument composition");else{let e=this.hunksRenderer.renderCodeAST("unified",t);this.renderPartialColumn(n,e,i)}}renderPartialColumn(e,n,t){if(null==e||null==n)return;let i=T(n[0]),r=T(n[1]);if(null==i||null==r)throw Error("FileDiff.insertPartialHTML: Unexpected AST structure");let o=r.at(0);"beforeend"===t&&o?.type==="element"&&"number"==typeof o.properties["data-buffer-size"]&&this.mergeBuffersIfNecessary(o.properties["data-buffer-size"],e.content.children[e.content.children.length-1],e.gutter.children[e.gutter.children.length-1],i,r,!0);let a=r.at(-1);"afterbegin"===t&&a?.type==="element"&&"number"==typeof a.properties["data-buffer-size"]&&this.mergeBuffersIfNecessary(a.properties["data-buffer-size"],e.content.children[0],e.gutter.children[0],i,r,!1),e.gutter.insertAdjacentHTML(t,this.hunksRenderer.renderPartialHTML(i)),e.content.insertAdjacentHTML(t,this.hunksRenderer.renderPartialHTML(r))}mergeBuffersIfNecessary(e,n,t,i,r,o){if(!(n instanceof HTMLElement)||!(t instanceof HTMLElement))return;let a=this.getBufferSize(n.dataset);null!=a&&(o?(i.shift(),r.shift()):(i.pop(),r.pop()),this.updateBufferSize(n,a+e),this.updateBufferSize(t,a+e))}applyRowSpan(e,n,t){let i=e=>{null!=e&&(e.gutter.style.setProperty("grid-row",`span ${t}`),e.content.style.setProperty("grid-row",`span ${t}`))};if("unified"!==e||Array.isArray(n))if("split"===e&&Array.isArray(n))i(n[0]),i(n[1]);else throw Error("dun fuuuuked up");else i(n)}trimColumnRows(e,n,t){let i=0,r=0,o=0,a=!1,l=t>=0;if(null==e)return 0;let s=Array.from(e.content.children),d=Array.from(e.gutter.children);if(s.length!==d.length)throw Error("FileDiff.trimColumnRows: columns do not match");for(;o<s.length&&(!(n<=0)||l||a);){let e=d[o],u=s[o];if(o++,!(e instanceof HTMLElement)||!(u instanceof HTMLElement))throw console.error({gutterElement:e,contentElement:u}),Error("FileDiff.trimColumnRows: invalid row elements");if(a&&(a=!1,"annotation"===e.dataset.gutterBuffer&&"lineAnnotation"in u.dataset||"metadata"===e.dataset.gutterBuffer&&"noNewline"in u.dataset)){e.remove(),u.remove(),r++;continue}if("lineIndex"in e.dataset&&"lineIndex"in u.dataset){(n>0||l&&i>=t)&&(e.remove(),u.remove(),n>0&&(n--,0===n&&(a=!0)),r++),i++;continue}if("separator"in e.dataset&&"separator"in u.dataset||"annotation"===e.dataset.gutterBuffer&&"lineAnnotation"in u.dataset||"metadata"===e.dataset.gutterBuffer&&"noNewline"in u.dataset){(n>0||l&&i>=t)&&(e.remove(),u.remove(),r++);continue}if("buffer"===e.dataset.gutterBuffer&&"contentBuffer"in u.dataset){let o=this.getBufferSize(u.dataset);if(null==o)throw Error("FileDiff.trimColumnRows: invalid element");if(n>0){let t=Math.min(n,o),i=o-t;i>0?(this.updateBufferSize(e,i),this.updateBufferSize(u,i),r+=t):(e.remove(),u.remove(),r+=o),n-=t}else if(l){let n=i,a=i+o-1;if(t<=n)e.remove(),u.remove(),r+=o;else if(t<=a){let n=a-t+1,i=o-n;this.updateBufferSize(e,i),this.updateBufferSize(u,i),r+=n}}i+=o;continue}throw console.error({gutterElement:e,contentElement:u}),Error("FileDiff.trimColumnRows: unknown row elements")}return r}trimColumns({columns:e,diffStyle:n,overlapEnd:t,overlapStart:i,previousStart:r,trimEnd:o,trimStart:a}){let l=Math.max(0,i-r),s=t-r;if(s<0)throw Error("FileDiff.trimColumns: overlap ends before previous");let d=a>0,u=o>0;if(!d&&!u)return 0;let c=d?l:0,f=u?s:-1;if("unified"===n&&!Array.isArray(e))return this.trimColumnRows(e,c,f);if("split"===n&&Array.isArray(e)){let n=this.trimColumnRows(e[0],c,f),t=this.trimColumnRows(e[1],c,f);if(null!=e[0]&&null!=e[1]&&n!==t)throw Error("FileDiff.trimColumns: split columns out of sync");return null!=e[0]?n:t}throw console.error({diffStyle:n,columns:e}),Error("FileDiff.trimColumns: Invalid columns for diffType")}getBufferSize(e){let n=Number.parseInt(e?.bufferSize??"",10);return Number.isNaN(n)?void 0:n}updateBufferSize(e,n){e.dataset.bufferSize=`${n}`,e.style.setProperty("grid-row",`span ${n}`),e.style.setProperty("min-height",`calc(${n} * 1lh)`)}getCodeColumns(e,n,t,i){function r(e){if(null==e)return;let n=e.children[0],t=e.children[1];if(n instanceof HTMLElement&&t instanceof HTMLElement&&null!=n.dataset.gutter&&null!=t.dataset.content)return{gutter:n,content:t}}if("unified"===e)return r(n);{let e=r(t),n=r(i);return null!=e||null!=n?[e,n]:void 0}}applyBuffers(e,n){let{disableVirtualizationBuffers:t=!1}=this.options;if(t||null==n){null!=this.bufferBefore&&(this.bufferBefore.remove(),this.bufferBefore=void 0),null!=this.bufferAfter&&(this.bufferAfter.remove(),this.bufferAfter=void 0);return}n.bufferBefore>0?(null==this.bufferBefore&&(this.bufferBefore=document.createElement("div"),this.bufferBefore.dataset.virtualizerBuffer="before",e.before(this.bufferBefore)),this.bufferBefore.style.setProperty("height",`${n.bufferBefore}px`),this.bufferBefore.style.setProperty("contain","strict")):null!=this.bufferBefore&&(this.bufferBefore.remove(),this.bufferBefore=void 0),n.bufferAfter>0?(null==this.bufferAfter&&(this.bufferAfter=document.createElement("div"),this.bufferAfter.dataset.virtualizerBuffer="after",e.after(this.bufferAfter)),this.bufferAfter.style.setProperty("height",`${n.bufferAfter}px`),this.bufferAfter.style.setProperty("contain","strict")):null!=this.bufferAfter&&(this.bufferAfter.remove(),this.bufferAfter=void 0)}applyPreNodeAttributes(e,{additionsContentAST:n,deletionsContentAST:t,totalLines:i},r){let{diffIndicators:o="bars",disableBackground:a=!1,disableLineNumbers:l=!1,overflow:s="scroll",diffStyle:d="split"}=this.options,c={type:"diff",diffIndicators:o,disableBackground:a,disableLineNumbers:l,overflow:s,split:"unified"!==d&&null!=n&&null!=t,totalLines:i,customProperties:r};(0,u.arePrePropertiesEqual)(c,this.appliedPreAttributes)||((0,b.setPreNodeProperties)(e,c),this.appliedPreAttributes=c)}applyErrorToDOM(e,n){this.cleanupErrorWrapper();let t=this.getOrCreatePreNode(n);t.innerHTML="",t.remove(),this.pre=void 0,this.appliedPreAttributes=void 0;let i=n.shadowRoot??n.attachShadow({mode:"open"});this.errorWrapper??=document.createElement("div"),this.errorWrapper.dataset.errorWrapper="",this.errorWrapper.innerHTML="",i.appendChild(this.errorWrapper);let r=document.createElement("div");r.dataset.errorMessage="",r.innerText=e.message,this.errorWrapper.appendChild(r);let o=document.createElement("pre");o.dataset.errorStack="",o.innerText=e.stack??"No Error Stack",this.errorWrapper.appendChild(o)}cleanupErrorWrapper(){this.errorWrapper?.remove(),this.errorWrapper=void 0}};function T(e){if(null!=e&&"element"===e.type)return e.children??[]}e.s(["FileDiff",0,A]),t()}catch(e){t(e)}},!1),19657,e=>{"use strict";e.s(["areMergeConflictActionsEqual",0,function(e,n){var t,i;return e.hunkIndex===n.hunkIndex&&e.startContentIndex===n.startContentIndex&&e.endContentIndex===n.endContentIndex&&e.currentContentIndex===n.currentContentIndex&&e.baseContentIndex===n.baseContentIndex&&e.incomingContentIndex===n.incomingContentIndex&&e.endMarkerContentIndex===n.endMarkerContentIndex&&e.conflictIndex===n.conflictIndex&&(t=e.conflict,i=n.conflict,t.conflictIndex===i.conflictIndex&&t.startLineIndex===i.startLineIndex&&t.startLineNumber===i.startLineNumber&&t.separatorLineIndex===i.separatorLineIndex&&t.separatorLineNumber===i.separatorLineNumber&&t.endLineIndex===i.endLineIndex&&t.endLineNumber===i.endLineNumber&&t.baseMarkerLineIndex===i.baseMarkerLineIndex&&t.baseMarkerLineNumber===i.baseMarkerLineNumber)}])},52719,e=>{"use strict";function n(e,n,t,i,r,o){for(let a=0;a<o;a++){let o=n[i+a],l=t[r+a];if(null==o||null==l)throw Error("pushCollapsedContextLines: missing collapsed context line");e.deletionLines.push(o),e.additionLines.push(l)}}function t(e,n,t,i){if("context"===e.type)for(let t=0;t<e.lines;t++){let r=i[e.additionLineIndex+t];if(null==r)throw console.error({additionLines:i,content:e,i:t}),Error("pushContentLinesToDiff: Context line does not exist");n.deletionLines.push(r),n.additionLines.push(r)}else{let r=Math.max(e.deletions,e.additions);for(let o=0;o<r;o++){if(o<e.deletions){let i=t[e.deletionLineIndex+o];if(null==i)throw console.error({deletionLines:t,content:e,i:o}),Error("pushContentLinesToDiff: Deletion line does not exist");n.deletionLines.push(i)}if(o<e.additions){let t=i[e.additionLineIndex+o];if(null==t)throw console.error({additionLines:i,content:e,i:o}),Error("pushContentLinesToDiff: Addition line does not exist");n.additionLines.push(t)}}}}function i(e,n,t){"context"===e.type?(n.nextAdditionLineIndex+=e.lines,n.nextDeletionLineIndex+=e.lines,n.nextAdditionStart+=e.lines,n.nextDeletionStart+=e.lines,n.splitLineCount+=e.lines,n.unifiedLineCount+=e.lines,t.additionCount+=e.lines,t.deletionCount+=e.lines,t.splitLineCount+=e.lines,t.unifiedLineCount+=e.lines):(n.nextAdditionLineIndex+=e.additions,n.nextDeletionLineIndex+=e.deletions,n.nextAdditionStart+=e.additions,n.nextDeletionStart+=e.deletions,n.splitLineCount+=Math.max(e.deletions,e.additions),n.unifiedLineCount+=e.deletions+e.additions,t.deletionCount+=e.deletions,t.deletionLines+=e.deletions,t.additionCount+=e.additions,t.additionLines+=e.additions,t.splitLineCount+=Math.max(e.deletions,e.additions),t.unifiedLineCount+=e.deletions+e.additions)}e.s(["resolveConflict",0,function(e,r,o){var a;let l,s;return function(e,r){let{resolution:o,hunkIndex:a,startContentIndex:l,endContentIndex:s,indexesToDelete:d=new Set}=r,u=e.hunks[a];if(null==u)throw console.error({diff:e,hunkIndex:a}),Error(`resolveRegion: Invalid hunk index: ${a}`);if(l<0||s>=u.hunkContent.length||l>s)throw Error(`resolveRegion: Invalid content range, ${l}, ${s}`);let{hunks:c,additionLines:f,deletionLines:h}=e,p={...e,hunks:[],deletionLines:[],additionLines:[],splitLineCount:0,unifiedLineCount:0,cacheKey:null!=e.cacheKey?`${e.cacheKey}:${o[0]}-${a}:${l}-${s}`:void 0},m={nextAdditionLineIndex:0,nextDeletionLineIndex:0,nextAdditionStart:1,nextDeletionStart:1,splitLineCount:0,unifiedLineCount:0},g=a===c.length-1&&s===u.hunkContent.length-1,v=!e.isPartial;for(let[r,u]of c.entries()){var b,y,x,C,k,S,L;b=e,y=p,x=m,C=u.deletionLineIndex-u.collapsedBefore,k=u.additionLineIndex-u.collapsedBefore,S=u.collapsedBefore,L=v,S<=0||(L&&(n(y,b.deletionLines,b.additionLines,C,k,S),x.nextAdditionLineIndex+=S,x.nextDeletionLineIndex+=S),x.nextAdditionStart+=S,x.nextDeletionStart+=S,x.splitLineCount+=S,x.unifiedLineCount+=S);let c={...u,hunkContent:[],additionStart:m.nextAdditionStart,deletionStart:m.nextDeletionStart,additionLineIndex:m.nextAdditionLineIndex,deletionLineIndex:m.nextDeletionLineIndex,additionCount:0,deletionCount:0,deletionLines:0,additionLines:0,splitLineStart:m.splitLineCount,unifiedLineStart:m.unifiedLineCount,splitLineCount:0,unifiedLineCount:0};for(let[e,n]of u.hunkContent.entries())if(r!==a||e<l||e>s){t(n,p,h,f);let e={...n,additionLineIndex:m.nextAdditionLineIndex,deletionLineIndex:m.nextDeletionLineIndex};c.hunkContent.push(e),i(e,m,c)}else if(d.has(e))c.hunkContent.push({type:"context",lines:0,deletionLineIndex:m.nextDeletionLineIndex,additionLineIndex:m.nextAdditionLineIndex});else if("context"===n.type){t(n,p,h,f);let e={...n,deletionLineIndex:m.nextDeletionLineIndex,additionLineIndex:m.nextAdditionLineIndex};c.hunkContent.push(e),i(e,m,c)}else{var E=o,w=n,A=p,T=h,I=f;if("deletions"===E||"both"===E)for(let e=0;e<w.deletions;e++){let n=T[w.deletionLineIndex+e];if(null==n)throw console.error({deletionLines:T,content:w,i:e}),Error("pushResolveLinesToDiff: Deletion line does not exist");A.deletionLines.push(n),A.additionLines.push(n)}if("additions"===E||"both"===E)for(let e=0;e<w.additions;e++){let n=I[w.additionLineIndex+e];if(null==n)throw console.error({additionLines:I,content:w,i:e}),Error("pushResolveLinesToDiff: Addition line does not exist");A.deletionLines.push(n),A.additionLines.push(n)}let e={type:"context",lines:"deletions"===o?n.deletions:"additions"===o?n.additions:n.deletions+n.additions,deletionLineIndex:m.nextDeletionLineIndex,additionLineIndex:m.nextAdditionLineIndex};c.hunkContent.push(e),i(e,m,c)}if(r===a&&g){let e="deletions"===o?u.noEOFCRDeletions:u.noEOFCRAdditions;c.noEOFCRAdditions=e,c.noEOFCRDeletions=e}p.hunks.push(c)}let R=c.at(-1);return null==R||e.isPartial||n(p,h,f,R.deletionLineIndex+R.deletionCount,R.additionLineIndex+R.additionCount,Math.min(h.length-(R.deletionLineIndex+R.deletionCount),f.length-(R.additionLineIndex+R.additionCount))),p.splitLineCount=m.splitLineCount,p.unifiedLineCount=m.unifiedLineCount,p}(e,{resolution:"accept"===(l="string"==typeof o?o:o.type)||"incoming"===l?"additions":"reject"===l||"current"===l?"deletions":"both",hunkIndex:r.hunkIndex,startContentIndex:r.startContentIndex,endContentIndex:r.endContentIndex,indexesToDelete:(a=r,s=new Set,null!=a.baseContentIndex&&s.add(a.baseContentIndex),a.endMarkerContentIndex!==a.endContentIndex&&s.add(a.endMarkerContentIndex),s)})}],52719)},1062,e=>e.a(async(n,t)=>{try{e.i(90578),e.i(27763),e.i(58498),e.i(76493),e.i(65597);var i=e.i(49889),r=(e.i(2391),e.i(58975),e.i(84661)),o=(e.i(19657),e.i(52719),n([i,r]));[i,r]=o.then?(await o)():o;i.FileDiff;e.s(["getUnresolvedDiffHunksRendererOptions",0,function(e,n){return{...n,...e,hunkSeparators:"function"==typeof e?.hunkSeparators?"custom":e?.hunkSeparators,mergeConflictActionsType:"function"==typeof e?.mergeConflictActionsType?"custom":e?.mergeConflictActionsType}}]),t()}catch(e){t(e)}},!1),52831,e=>{"use strict";var n=e.i(90578),t=e.i(52205),i=e.i(10787);e.s(["createStyleElement",0,function(e,r=!1){return(0,t.createHastElement)({tagName:"style",children:[(0,t.createTextNodeElement)(r?(0,i.wrapCoreCSS)(e):(0,i.wrapUnsafeCSS)(e))],properties:{[n.CORE_CSS_ATTRIBUTE]:r?"":void 0,[n.UNSAFE_CSS_ATTRIBUTE]:r?void 0:""}})},"createThemeStyleElement",0,function(e){return(0,t.createHastElement)({tagName:"style",children:[(0,t.createTextNodeElement)(e)],properties:{[n.THEME_CSS_ATTRIBUTE]:""}})}])},76160,e=>{"use strict";var n=e.i(40103);e.s(["getSingularPatch",0,function(e){let t=(0,n.parsePatchFiles)(e);if(1!==t.length)throw console.error(t),Error("PatchDiff: Provided patch must include only 1 patch, with 1 diff");let{files:i}=t[0];if(1!==i.length)throw console.error(i),Error("FileDiff: Provided patch must contain exactly 1 file diff");return i[0]}])},34208,e=>{"use strict";var n=e.i(37403),t=e.i(36680);e.s(["renderHTML",0,function(e){return`${n.SVGSpriteSheet}${(0,t.toHtml)(e)}`}])},30788,e=>e.a(async(n,t)=>{try{var i=e.i(10787),r=e.i(8704),o=e.i(67997);e.i(58975);var a=e.i(84661),l=e.i(1062),s=e.i(52831),d=e.i(76160),u=e.i(34208),c=n([r,a,l]);async function f({fileDiff:e,oldFile:n,newFile:t,options:a,annotations:l}){var d,c,h,p,m;let g,v;if(null==e&&null!=n&&null!=t&&(e=(0,o.parseDiffFromFile)(n,t,a?.parseDiffOptions)),null==e)throw Error("preloadFileDiff: You must pass at least a fileDiff prop or oldFile/newFile props");let b=new r.DiffHunksRenderer({...d=a,headerRenderMode:d?.renderCustomHeader!=null?"custom":"default",hunkSeparators:"function"==typeof d?.hunkSeparators?"custom":d?.hunkSeparators});return null!=l&&l.length>0&&b.setLineAnnotations(l),(0,u.renderHTML)((c=await b.asyncRender(e),h=b,p=a?.unsafeCSS,m=a?.themeType??"system",(g=[(0,s.createStyleElement)(c.css,!0)]).push((0,s.createThemeStyleElement)((0,i.wrapThemeCSS)(c.themeStyles,c.baseThemeType??m))),null!=p&&g.push((0,s.createStyleElement)(p)),null!=c.headerElement&&g.push(c.headerElement),(v=h.renderFullAST(c)).properties["data-dehydrated"]="",g.push(v),g))}async function h({patch:e,options:n,annotations:t}){return{patch:e,options:n,annotations:t,prerenderedHTML:await f({fileDiff:(0,d.getSingularPatch)(e),options:n,annotations:t})}}[r,a,l]=c.then?(await c)():c,e.s(["preloadPatchDiff",0,h]),t()}catch(e){t(e)}},!1),8720,e=>e.a(async(n,t)=>{try{var i=e.i(30788),r=n([i]);[i]=r.then?(await r)():r;let o=e=>({diffStyle:"split"===e?"split":"unified",disableFileHeader:!0,disableLineNumbers:!1,expansionLineCount:20,hunkSeparators:"line-info",lineDiffType:"char",maxLineDiffLength:500,overflow:"scroll",theme:{dark:"github-dark",light:"github-light"},unsafeCSS:"[data-diff-span] { border-radius: 0; }"}),a=async e=>{let[n,t]=await Promise.all([(0,i.preloadPatchDiff)({options:o("split"),patch:e}),(0,i.preloadPatchDiff)({options:o("stacked"),patch:e})]);return{split:n.prerenderedHTML,stacked:t.prerenderedHTML}};e.s(["preloadPatchHtmlByLayout",0,a]),t()}catch(e){t(e)}},!1),90072,e=>e.a(async(n,t)=>{try{var i=e.i(29950),r=e.i(69951),o=e.i(8720),a=n([o]);[o]=a.then?(await a)():a;let l=async e=>{let{searchParams:n}=new URL(e.url),t=n.get("base")??void 0,a=n.get("file")??void 0,l="uncommitted"===n.get("mode")?"uncommitted":void 0,s="ignore"===n.get("ws")?"ignore":void 0;try{let e=a?await (0,r.getDiffForFile)(a,t,l,s):await (0,r.getDiff)(t,l,s),n=a&&e.patch?await (0,o.preloadPatchHtmlByLayout)(e.patch):void 0;return i.NextResponse.json({...e,...n?{prerenderedHTML:n}:{}})}catch(e){return i.NextResponse.json({error:String(e)},{status:500})}};e.s(["GET",0,l]),t()}catch(e){t(e)}},!1),78713,e=>e.a(async(n,t)=>{try{var i=e.i(31173),r=e.i(62205),o=e.i(9467),a=e.i(68273),l=e.i(18601),s=e.i(67822),d=e.i(94179),u=e.i(86434),c=e.i(34044),f=e.i(282),h=e.i(63625),p=e.i(62788),m=e.i(60321),g=e.i(21422),v=e.i(91917),b=e.i(93695);e.i(93930);var y=e.i(82490),x=e.i(90072),C=n([x]);[x]=C.then?(await C)():C;let S=new i.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/diff/route",pathname:"/api/diff",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/apps/web/app/api/diff/route.ts",nextConfigOutput:"standalone",userland:x,...{}}),{workAsyncStorage:L,workUnitAsyncStorage:E,serverHooks:w}=S;async function k(e,n,t){t.requestMeta&&(0,a.setRequestMeta)(e,t.requestMeta),S.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let i="/api/diff/route";i=i.replace(/\/index$/,"")||"/";let o=await S.prepare(e,n,{srcPage:i,multiZoneDraftMode:!1});if(!o)return n.statusCode=400,n.end("Bad Request"),null==t.waitUntil||t.waitUntil.call(t,Promise.resolve()),null;let{buildId:x,params:C,nextConfig:k,parsedUrl:L,isDraftMode:E,prerenderManifest:w,routerServerContext:A,isOnDemandRevalidate:T,revalidateOnlyGenerated:I,resolvedPathname:R,clientReferenceManifest:N,serverActionsManifest:D}=o,M=(0,d.normalizeAppPath)(i),P=!!(w.dynamicRoutes[M]||w.routes[R]),H=async()=>((null==A?void 0:A.render404)?await A.render404(e,n,L,!1):n.end("This page could not be found"),null);if(P&&!E){let e=!!w.routes[R],n=w.dynamicRoutes[M];if(n&&!1===n.fallback&&!e){if(k.adapterPath)return await H();throw new b.NoFallbackError}}let O=null;!P||S.isDev||E||(O=R,O="/index"===O?"/":O);let F=!0===S.isDev||!P,U=P&&!F;D&&N&&(0,s.setManifestsSingleton)({page:i,clientReferenceManifest:N,serverActionsManifest:D});let B=e.method||"GET",_=(0,l.getTracer)(),z=_.getActiveScopeSpan(),$=!!(null==A?void 0:A.isWrappedByNextServer),G=!!(0,a.getRequestMeta)(e,"minimalMode"),j=(0,a.getRequestMeta)(e,"incrementalCache")||await S.getIncrementalCache(e,k,w,G);null==j||j.resetRequestCache(),globalThis.__incrementalCache=j;let W={params:C,previewProps:w.preview,renderOpts:{experimental:{authInterrupts:!!k.experimental.authInterrupts},cacheComponents:!!k.cacheComponents,supportsDynamicResponse:F,incrementalCache:j,cacheLifeProfiles:k.cacheLife,waitUntil:t.waitUntil,onClose:e=>{n.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(n,t,i,r)=>S.onRequestError(e,n,i,r,A)},sharedContext:{buildId:x}},q=new u.NodeNextRequest(e),K=new u.NodeNextResponse(n),V=c.NextRequestAdapter.fromNodeNextRequest(q,(0,c.signalFromNodeResponse)(n));try{let o,a=async e=>S.handle(V,W).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":n.statusCode,"next.rsc":!1});let t=_.getRootSpanAttributes();if(!t)return;if(t.get("next.span_type")!==f.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${t.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let r=t.get("next.route");if(r){let n=`${B} ${r}`;e.setAttributes({"next.route":r,"http.route":r,"next.span_name":n}),e.updateName(n),o&&o!==e&&(o.setAttribute("http.route",r),o.updateName(n))}else e.updateName(`${B} ${i}`)}),s=async o=>{var l,s;let d=async({previousCacheEntry:r})=>{try{if(!G&&T&&I&&!r)return n.statusCode=404,n.setHeader("x-nextjs-cache","REVALIDATED"),n.end("This page could not be found"),null;let i=await a(o);e.fetchMetrics=W.renderOpts.fetchMetrics;let l=W.renderOpts.pendingWaitUntil;l&&t.waitUntil&&(t.waitUntil(l),l=void 0);let s=W.renderOpts.collectedTags;if(!P)return await (0,p.sendResponse)(q,K,i,W.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),n=(0,m.toNodeOutgoingHttpHeaders)(i.headers);s&&(n[v.NEXT_CACHE_TAGS_HEADER]=s),!n["content-type"]&&e.type&&(n["content-type"]=e.type);let t=void 0!==W.renderOpts.collectedRevalidate&&!(W.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&W.renderOpts.collectedRevalidate,r=void 0===W.renderOpts.collectedExpire||W.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:W.renderOpts.collectedExpire;return{value:{kind:y.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:n},cacheControl:{revalidate:t,expire:r}}}}catch(n){throw(null==r?void 0:r.isStale)&&await S.onRequestError(e,n,{routerKind:"App Router",routePath:i,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:T})},!1,A),n}},u=await S.handleResponse({req:e,nextConfig:k,cacheKey:O,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:w,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:I,responseGenerator:d,waitUntil:t.waitUntil,isMinimalMode:G});if(!P)return null;if((null==u||null==(l=u.value)?void 0:l.kind)!==y.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(s=u.value)?void 0:s.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});G||n.setHeader("x-nextjs-cache",T?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),E&&n.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,m.fromNodeOutgoingHttpHeaders)(u.value.headers);return G&&P||c.delete(v.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||n.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,g.getCacheControlHeader)(u.cacheControl)),await (0,p.sendResponse)(q,K,new Response(u.value.body,{headers:c,status:u.value.status||200})),null};$&&z?await s(z):(o=_.getActiveScopeSpan(),await _.withPropagatedContext(e.headers,()=>_.trace(f.BaseServerSpan.handleRequest,{spanName:`${B} ${i}`,kind:l.SpanKind.SERVER,attributes:{"http.method":B,"http.target":e.url}},s),void 0,!$))}catch(n){if(n instanceof b.NoFallbackError||await S.onRequestError(e,n,{routerKind:"App Router",routePath:M,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:T})},!1,A),P)throw n;return await (0,p.sendResponse)(q,K,new Response(null,{status:500})),null}}e.s(["handler",0,k,"patchFetch",0,function(){return(0,o.patchFetch)({workAsyncStorage:L,workUnitAsyncStorage:E})},"routeModule",0,S,"serverHooks",0,w,"workAsyncStorage",0,L,"workUnitAsyncStorage",0,E]),t()}catch(e){t(e)}},!1)];
68
+
69
+ //# sourceMappingURL=_0r24f4c._.js.map