v-code-diff 1.4.0 → 1.5.1

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.
@@ -1,5 +1,5 @@
1
1
  (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".code-diff-view{--color-canvas-default-transparent: rgba(255,255,255,0);--color-page-header-bg: #f6f8fa;--color-marketing-icon-primary: #218bff;--color-marketing-icon-secondary: #54aeff;--color-diff-blob-addition-num-text: #24292f;--color-diff-blob-addition-fg: #24292f;--color-diff-blob-addition-num-bg: #ccffd8;--color-diff-blob-addition-line-bg: #e6ffec;--color-diff-blob-addition-word-bg: #abf2bc;--color-diff-blob-deletion-num-text: #24292f;--color-diff-blob-deletion-fg: #24292f;--color-diff-blob-deletion-num-bg: #ffd7d5;--color-diff-blob-deletion-line-bg: #ffebe9;--color-diff-blob-deletion-word-bg: rgba(255,129,130,.4);--color-diff-blob-hunk-num-bg: rgba(84,174,255,.4);--color-diff-blob-expander-icon: #57606a;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(27,31,36,.15);--color-diffstat-addition-border: rgba(27,31,36,.15);--color-diffstat-addition-bg: #2da44e;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-codemirror-text: #24292f;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #57606a;--color-codemirror-cursor: #24292f;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #24292f;--color-codemirror-lines-bg: #ffffff;--color-codemirror-syntax-comment: #24292f;--color-codemirror-syntax-constant: #0550ae;--color-codemirror-syntax-entity: #8250df;--color-codemirror-syntax-keyword: #cf222e;--color-codemirror-syntax-storage: #cf222e;--color-codemirror-syntax-string: #0a3069;--color-codemirror-syntax-support: #0550ae;--color-codemirror-syntax-variable: #953800;--color-checks-bg: #24292f;--color-checks-run-border-width: 0px;--color-checks-container-border-width: 0px;--color-checks-text-primary: #f6f8fa;--color-checks-text-secondary: #8c959f;--color-checks-text-link: #54aeff;--color-checks-btn-icon: #afb8c1;--color-checks-btn-hover-icon: #f6f8fa;--color-checks-btn-hover-bg: rgba(255,255,255,.125);--color-checks-input-text: #eaeef2;--color-checks-input-placeholder-text: #8c959f;--color-checks-input-focus-text: #8c959f;--color-checks-input-bg: #32383f;--color-checks-input-shadow: none;--color-checks-donut-error: #fa4549;--color-checks-donut-pending: #bf8700;--color-checks-donut-success: #2da44e;--color-checks-donut-neutral: #afb8c1;--color-checks-dropdown-text: #afb8c1;--color-checks-dropdown-bg: #32383f;--color-checks-dropdown-border: #424a53;--color-checks-dropdown-shadow: rgba(27,31,36,.3);--color-checks-dropdown-hover-text: #f6f8fa;--color-checks-dropdown-hover-bg: #424a53;--color-checks-dropdown-btn-hover-text: #f6f8fa;--color-checks-dropdown-btn-hover-bg: #32383f;--color-checks-scrollbar-thumb-bg: #57606a;--color-checks-header-label-text: #d0d7de;--color-checks-header-label-open-text: #f6f8fa;--color-checks-header-border: #32383f;--color-checks-header-icon: #8c959f;--color-checks-line-text: #d0d7de;--color-checks-line-num-text: rgba(140,149,159,.75);--color-checks-line-timestamp-text: #8c959f;--color-checks-line-hover-bg: #32383f;--color-checks-line-selected-bg: rgba(33,139,255,.15);--color-checks-line-selected-num-text: #54aeff;--color-checks-line-dt-fm-text: #24292f;--color-checks-line-dt-fm-bg: #9a6700;--color-checks-gate-bg: rgba(125,78,0,.15);--color-checks-gate-text: #d0d7de;--color-checks-gate-waiting-text: #d4a72c;--color-checks-step-header-open-bg: #32383f;--color-checks-step-error-text: #ff8182;--color-checks-step-warning-text: #d4a72c;--color-checks-logline-text: #8c959f;--color-checks-logline-num-text: rgba(140,149,159,.75);--color-checks-logline-debug-text: #c297ff;--color-checks-logline-error-text: #d0d7de;--color-checks-logline-error-num-text: #ff8182;--color-checks-logline-error-bg: rgba(164,14,38,.15);--color-checks-logline-warning-text: #d0d7de;--color-checks-logline-warning-num-text: #d4a72c;--color-checks-logline-warning-bg: rgba(125,78,0,.15);--color-checks-logline-command-text: #54aeff;--color-checks-logline-section-text: #4ac26b;--color-checks-ansi-black: #24292f;--color-checks-ansi-black-bright: #32383f;--color-checks-ansi-white: #d0d7de;--color-checks-ansi-white-bright: #d0d7de;--color-checks-ansi-gray: #8c959f;--color-checks-ansi-red: #ff8182;--color-checks-ansi-red-bright: #ffaba8;--color-checks-ansi-green: #4ac26b;--color-checks-ansi-green-bright: #6fdd8b;--color-checks-ansi-yellow: #d4a72c;--color-checks-ansi-yellow-bright: #eac54f;--color-checks-ansi-blue: #54aeff;--color-checks-ansi-blue-bright: #80ccff;--color-checks-ansi-magenta: #c297ff;--color-checks-ansi-magenta-bright: #d8b9ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #24292f;--color-project-sidebar-bg: #ffffff;--color-project-gradient-in: #ffffff;--color-project-gradient-out: rgba(255,255,255,0);--color-mktg-btn-bg: #1b1f23;--color-mktg-btn-shadow-outline: rgb(0 0 0 / 15%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(0 0 0 / 15%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 3px 2px rgba(0, 0, 0, .07), 0 7px 5px rgba(0, 0, 0, .04), 0 12px 10px rgba(0, 0, 0, .03), 0 22px 18px rgba(0, 0, 0, .03), 0 42px 33px rgba(0, 0, 0, .02), 0 100px 80px rgba(0, 0, 0, .02);--color-mktg-btn-shadow-hover-muted: rgb(0 0 0 / 70%) 0 0 0 2px inset;--color-avatar-bg: #ffffff;--color-avatar-border: rgba(27,31,36,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: -2px -2px 0 rgba(255,255,255,.8);--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: rgba(0,0,0,0);--color-select-menu-tap-highlight: rgba(175,184,193,.5);--color-select-menu-tap-focus-bg: #b6e3ff;--color-overlay-shadow: 0 1px 3px rgba(27,31,36,.12), 0 8px 24px rgba(66,74,83,.12);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #24292f;--color-header-divider: #57606a;--color-header-logo: #ffffff;--color-header-search-bg: #24292f;--color-header-search-border: #57606a;--color-sidenav-selected-bg: #ffffff;--color-menu-bg-active: rgba(0,0,0,0);--color-input-disabled-bg: rgba(175,184,193,.2);--color-timeline-badge-bg: #eaeef2;--color-ansi-black: #24292f;--color-ansi-black-bright: #57606a;--color-ansi-white: #6e7781;--color-ansi-white-bright: #8c959f;--color-ansi-gray: #6e7781;--color-ansi-red: #cf222e;--color-ansi-red-bright: #a40e26;--color-ansi-green: #116329;--color-ansi-green-bright: #1a7f37;--color-ansi-yellow: #4d2d00;--color-ansi-yellow-bright: #633c01;--color-ansi-blue: #0969da;--color-ansi-blue-bright: #218bff;--color-ansi-magenta: #8250df;--color-ansi-magenta-bright: #a475f9;--color-ansi-cyan: #1b7c83;--color-ansi-cyan-bright: #3192aa;--color-btn-text: #24292f;--color-btn-bg: #f6f8fa;--color-btn-border: rgba(27,31,36,.15);--color-btn-shadow: 0 1px 0 rgba(27,31,36,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(27,31,36,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(27,31,36,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-focus-bg: #f6f8fa;--color-btn-focus-border: rgba(27,31,36,.15);--color-btn-focus-shadow: 0 0 0 3px rgba(9,105,218,.3);--color-btn-shadow-active: inset 0 .15em .3em rgba(27,31,36,.15);--color-btn-shadow-input-focus: 0 0 0 .2em rgba(9,105,218,.3);--color-btn-counter-bg: rgba(27,31,36,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #2da44e;--color-btn-primary-border: rgba(27,31,36,.15);--color-btn-primary-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #2c974b;--color-btn-primary-hover-border: rgba(27,31,36,.15);--color-btn-primary-selected-bg: hsla(137,55%,36%,1);--color-btn-primary-selected-shadow: inset 0 1px 0 rgba(0,45,17,.2);--color-btn-primary-disabled-text: rgba(255,255,255,.8);--color-btn-primary-disabled-bg: #94d3a2;--color-btn-primary-disabled-border: rgba(27,31,36,.15);--color-btn-primary-focus-bg: #2da44e;--color-btn-primary-focus-border: rgba(27,31,36,.15);--color-btn-primary-focus-shadow: 0 0 0 3px rgba(45,164,78,.4);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(255,255,255,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(27,31,36,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(255,255,255,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: hsla(212,92%,42%,1);--color-btn-outline-selected-border: rgba(27,31,36,.15);--color-btn-outline-selected-shadow: inset 0 1px 0 rgba(0,33,85,.2);--color-btn-outline-disabled-text: rgba(9,105,218,.5);--color-btn-outline-disabled-bg: #f6f8fa;--color-btn-outline-disabled-counter-bg: rgba(9,105,218,.05);--color-btn-outline-focus-border: rgba(27,31,36,.15);--color-btn-outline-focus-shadow: 0 0 0 3px rgba(5,80,174,.4);--color-btn-outline-counter-bg: rgba(9,105,218,.1);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(27,31,36,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-danger-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: hsla(356,72%,44%,1);--color-btn-danger-selected-border: rgba(27,31,36,.15);--color-btn-danger-selected-shadow: inset 0 1px 0 rgba(76,0,20,.2);--color-btn-danger-disabled-text: rgba(207,34,46,.5);--color-btn-danger-disabled-bg: #f6f8fa;--color-btn-danger-disabled-counter-bg: rgba(207,34,46,.05);--color-btn-danger-focus-border: rgba(27,31,36,.15);--color-btn-danger-focus-shadow: 0 0 0 3px rgba(164,14,38,.4);--color-btn-danger-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--color-underlinenav-icon: #6e7781;--color-underlinenav-border-hover: rgba(175,184,193,.2);--color-action-list-item-inline-divider: rgba(208,215,222,.48);--color-action-list-item-default-hover-bg: rgba(208,215,222,.32);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(208,215,222,.48);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(208,215,222,.24);--color-action-list-item-danger-hover-bg: rgba(255,235,233,.64);--color-action-list-item-danger-active-bg: #ffebe9;--color-action-list-item-danger-hover-text: #cf222e;--color-switch-track-bg: #eaeef2;--color-switch-track-border: #afb8c1;--color-switch-track-checked-bg: #ddf4ff;--color-switch-track-checked-hover-bg: #b6e3ff;--color-switch-track-checked-active-bg: #80ccff;--color-switch-track-checked-border: #54aeff;--color-switch-knob-checked-bg: #0969da;--color-switch-knob-checked-disabled-bg: #6e7781;--color-segmented-control-bg: #eaeef2;--color-segmented-control-button-hover-bg: rgba(175,184,193,.2);--color-segmented-control-button-active-bg: rgba(175,184,193,.4);--color-segmented-control-button-selected-border: #6e7781;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #ffffff;--color-canvas-overlay: #ffffff;--color-canvas-inset: #f6f8fa;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-border-subtle: rgba(27,31,36,.15);--color-shadow-small: 0 1px 0 rgba(27,31,36,.04);--color-shadow-medium: 0 3px 6px rgba(140,149,159,.15);--color-shadow-large: 0 8px 24px rgba(140,149,159,.2);--color-shadow-extra-large: 0 12px 28px rgba(140,149,159,.3);--color-neutral-emphasis-plus: #24292f;--color-neutral-emphasis: #6e7781;--color-neutral-muted: rgba(175,184,193,.2);--color-neutral-subtle: rgba(234,238,242,.5);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-accent-muted: rgba(84,174,255,.4);--color-accent-subtle: #ddf4ff;--color-success-fg: #1a7f37;--color-success-emphasis: #2da44e;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #bf8700;--color-attention-muted: rgba(212,167,44,.4);--color-attention-subtle: #fff8c5;--color-severe-fg: #bc4c00;--color-severe-emphasis: #bc4c00;--color-severe-muted: rgba(251,143,68,.4);--color-severe-subtle: #fff1e5;--color-danger-fg: #cf222e;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #2da44e;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #cf222e;--color-closed-emphasis: #cf222e;--color-closed-muted: rgba(255,129,130,.4);--color-closed-subtle: #ffebe9;--color-done-fg: #8250df;--color-done-emphasis: #8250df;--color-done-muted: rgba(194,151,255,.4);--color-done-subtle: #fbefff;--color-sponsors-fg: #bf3989;--color-sponsors-emphasis: #bf3989;--color-sponsors-muted: rgba(255,128,200,.4);--color-sponsors-subtle: #ffeff7;--color-primer-fg-disabled: #8c959f;--color-primer-canvas-backdrop: rgba(27,31,36,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(27,31,36,.1);--color-primer-shadow-highlight: inset 0 1px 0 rgba(255,255,255,.25);--color-primer-shadow-inset: inset 0 1px 0 rgba(208,215,222,.2);--color-primer-shadow-focus: 0 0 0 3px rgba(9,105,218,.3);--color-scale-black: #1b1f24;--color-scale-white: #ffffff;--color-scale-gray-0: #f6f8fa;--color-scale-gray-1: #eaeef2;--color-scale-gray-2: #d0d7de;--color-scale-gray-3: #afb8c1;--color-scale-gray-4: #8c959f;--color-scale-gray-5: #6e7781;--color-scale-gray-6: #57606a;--color-scale-gray-7: #424a53;--color-scale-gray-8: #32383f;--color-scale-gray-9: #24292f;--color-scale-blue-0: #ddf4ff;--color-scale-blue-1: #b6e3ff;--color-scale-blue-2: #80ccff;--color-scale-blue-3: #54aeff;--color-scale-blue-4: #218bff;--color-scale-blue-5: #0969da;--color-scale-blue-6: #0550ae;--color-scale-blue-7: #033d8b;--color-scale-blue-8: #0a3069;--color-scale-blue-9: #002155;--color-scale-green-0: #dafbe1;--color-scale-green-1: #aceebb;--color-scale-green-2: #6fdd8b;--color-scale-green-3: #4ac26b;--color-scale-green-4: #2da44e;--color-scale-green-5: #1a7f37;--color-scale-green-6: #116329;--color-scale-green-7: #044f1e;--color-scale-green-8: #003d16;--color-scale-green-9: #002d11;--color-scale-yellow-0: #fff8c5;--color-scale-yellow-1: #fae17d;--color-scale-yellow-2: #eac54f;--color-scale-yellow-3: #d4a72c;--color-scale-yellow-4: #bf8700;--color-scale-yellow-5: #9a6700;--color-scale-yellow-6: #7d4e00;--color-scale-yellow-7: #633c01;--color-scale-yellow-8: #4d2d00;--color-scale-yellow-9: #3b2300;--color-scale-orange-0: #fff1e5;--color-scale-orange-1: #ffd8b5;--color-scale-orange-2: #ffb77c;--color-scale-orange-3: #fb8f44;--color-scale-orange-4: #e16f24;--color-scale-orange-5: #bc4c00;--color-scale-orange-6: #953800;--color-scale-orange-7: #762c00;--color-scale-orange-8: #5c2200;--color-scale-orange-9: #471700;--color-scale-red-0: #ffebe9;--color-scale-red-1: #ffcecb;--color-scale-red-2: #ffaba8;--color-scale-red-3: #ff8182;--color-scale-red-4: #fa4549;--color-scale-red-5: #cf222e;--color-scale-red-6: #a40e26;--color-scale-red-7: #82071e;--color-scale-red-8: #660018;--color-scale-red-9: #4c0014;--color-scale-purple-0: #fbefff;--color-scale-purple-1: #ecd8ff;--color-scale-purple-2: #d8b9ff;--color-scale-purple-3: #c297ff;--color-scale-purple-4: #a475f9;--color-scale-purple-5: #8250df;--color-scale-purple-6: #6639ba;--color-scale-purple-7: #512a97;--color-scale-purple-8: #3e1f79;--color-scale-purple-9: #2e1461;--color-scale-pink-0: #ffeff7;--color-scale-pink-1: #ffd3eb;--color-scale-pink-2: #ffadda;--color-scale-pink-3: #ff80c8;--color-scale-pink-4: #e85aad;--color-scale-pink-5: #bf3989;--color-scale-pink-6: #99286e;--color-scale-pink-7: #772057;--color-scale-pink-8: #611347;--color-scale-pink-9: #4d0336;--color-scale-coral-0: #fff0eb;--color-scale-coral-1: #ffd6cc;--color-scale-coral-2: #ffb4a1;--color-scale-coral-3: #fd8c73;--color-scale-coral-4: #ec6547;--color-scale-coral-5: #c4432b;--color-scale-coral-6: #9e2f1c;--color-scale-coral-7: #801f0f;--color-scale-coral-8: #691105;--color-scale-coral-9: #510901}.code-diff-view{position:relative;margin-top:16px;margin-bottom:16px;border:1px solid var(--color-border-default, #ddd);border-radius:6px;overflow-y:auto}.code-diff-view *{position:static;box-sizing:border-box}.code-diff-view .file-header{background-color:var(--color-canvas-subtle);border-bottom:1px solid var(--color-border-default);padding:8px 16px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.code-diff-view .file-header .file-info{display:flex;justify-content:space-between;align-items:center;margin-left:8px;height:24px}.code-diff-view .file-header .file-info .filename{font-size:13px;color:var(--color-fg-default)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-added{color:var(--color-diffstat-addition-bg)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-deleted{color:var(--color-danger-emphasis)}.code-diff-view table{border-spacing:0}.code-diff-view .diff-table{width:100%}.code-diff-view .diff-table .blob-num{position:relative;width:1%;min-width:50px;padding-right:10px;padding-left:10px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:20px;color:var(--color-fg-subtle);text-align:right;white-space:nowrap;vertical-align:top;cursor:pointer;-webkit-user-select:none;user-select:none}.code-diff-view .diff-table .blob-num-deletion{color:var(--color-diff-blob-deletion-num-text);background-color:var(--color-diff-blob-deletion-num-bg);border-color:var(--color-danger-emphasis)}.code-diff-view .diff-table .blob-num-addition{color:var(--color-diff-blob-addition-num-text);background-color:var(--color-diff-blob-addition-num-bg);border-color:var(--color-success-emphasis)}.code-diff-view .diff-table .blob-code{position:relative;padding-right:10px;padding-left:10px;line-height:20px;vertical-align:top}.code-diff-view .diff-table .blob-code .blob-code-inner{display:table-cell;overflow:visible;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;color:var(--color-fg-default);word-wrap:anywhere;white-space:pre-wrap}.code-diff-view .diff-table .blob-code-deletion{background-color:var(--color-diff-blob-deletion-line-bg);outline:1px dashed transparent}.code-diff-view .diff-table .blob-code-deletion .x{color:var(--color-diff-blob-deletion-fg);background-color:var(--color-diff-blob-deletion-word-bg)}.code-diff-view .diff-table .blob-code-addition{background-color:var(--color-diff-blob-addition-line-bg);outline:1px dotted transparent}.code-diff-view .diff-table .blob-code-addition .x{color:var(--color-diff-blob-addition-fg);background-color:var(--color-diff-blob-addition-word-bg)}.code-diff-view .diff-table .blob-code-context,.code-diff-view .diff-table .blob-code-addition,.code-diff-view .diff-table .blob-code-deletion{padding-left:22px!important}.code-diff-view .diff-table .blob-code-marker:before{position:absolute;top:1px;left:8px;padding-right:8px;content:attr(data-code-marker)}.code-diff-view .diff-table .blob-num-hunk{background-color:var(--color-diff-blob-hunk-num-bg)}.code-diff-view .diff-table .blob-code-hunk{background-color:var(--color-accent-subtle)}.code-diff-view .file-diff-split{table-layout:fixed}.code-diff-view .file-diff-split .blob-code+.blob-num{border-left:1px solid var(--color-border-muted)}.code-diff-view .empty-cell{cursor:default;background-color:var(--color-neutral-subtle);border-right-color:var(--color-border-muted)}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#fff;color:#000}.hljs-comment,.hljs-quote,.hljs-variable{color:green}.hljs-built_in,.hljs-keyword,.hljs-name,.hljs-selector-tag,.hljs-tag{color:#00f}.hljs-addition,.hljs-attribute,.hljs-literal,.hljs-section,.hljs-string,.hljs-template-tag,.hljs-template-variable,.hljs-title,.hljs-type{color:#a31515}.hljs-deletion,.hljs-meta,.hljs-selector-attr,.hljs-selector-pseudo{color:#2b91af}.hljs-doctag{color:gray}.hljs-attr{color:red}.hljs-bullet,.hljs-link,.hljs-symbol{color:#00b0e8}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import { defineComponent as we, openBlock as W, createElementBlock as V, createElementVNode as U, normalizeClass as pe, unref as F, toDisplayString as he, Fragment as ge, renderList as ze, createBlock as Le, computed as Te, normalizeStyle as Bn } from "vue";
2
+ import { defineComponent as we, openBlock as W, createElementBlock as V, createElementVNode as P, normalizeClass as pe, unref as F, toDisplayString as he, createCommentVNode as fn, Fragment as ge, renderList as ze, createBlock as Oe, computed as Te, ref as $n, watch as Un, normalizeStyle as Pn } from "vue";
3
3
  function re() {
4
4
  }
5
5
  re.prototype = {
@@ -7,10 +7,10 @@ re.prototype = {
7
7
  var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, h = u.callback;
8
8
  typeof u == "function" && (h = u, u = {}), this.options = u;
9
9
  var n = this;
10
- function r(d) {
10
+ function r(p) {
11
11
  return h ? (setTimeout(function() {
12
- h(void 0, d);
13
- }, 0), !0) : d;
12
+ h(void 0, p);
13
+ }, 0), !0) : p;
14
14
  }
15
15
  t = this.castInput(t), l = this.castInput(l), t = this.removeEmpty(this.tokenize(t)), l = this.removeEmpty(this.tokenize(l));
16
16
  var i = l.length, s = t.length, a = 1, o = i + s;
@@ -25,33 +25,33 @@ re.prototype = {
25
25
  count: l.length
26
26
  }]);
27
27
  function g() {
28
- for (var d = -1 * a; d <= a; d += 2) {
29
- var b = void 0, E = c[d - 1], v = c[d + 1], y = (v ? v.newPos : 0) - d;
30
- E && (c[d - 1] = void 0);
28
+ for (var p = -1 * a; p <= a; p += 2) {
29
+ var b = void 0, E = c[p - 1], v = c[p + 1], y = (v ? v.newPos : 0) - p;
30
+ E && (c[p - 1] = void 0);
31
31
  var m = E && E.newPos + 1 < i, D = v && 0 <= y && y < s;
32
32
  if (!m && !D) {
33
- c[d] = void 0;
33
+ c[p] = void 0;
34
34
  continue;
35
35
  }
36
- if (!m || D && E.newPos < v.newPos ? (b = Un(v), n.pushComponent(b.components, void 0, !0)) : (b = E, b.newPos++, n.pushComponent(b.components, !0, void 0)), y = n.extractCommon(b, l, t, d), b.newPos + 1 >= i && y + 1 >= s)
37
- return r($n(n, b.components, l, t, n.useLongestToken));
38
- c[d] = b;
36
+ if (!m || D && E.newPos < v.newPos ? (b = Hn(v), n.pushComponent(b.components, void 0, !0)) : (b = E, b.newPos++, n.pushComponent(b.components, !0, void 0)), y = n.extractCommon(b, l, t, p), b.newPos + 1 >= i && y + 1 >= s)
37
+ return r(xn(n, b.components, l, t, n.useLongestToken));
38
+ c[p] = b;
39
39
  }
40
40
  a++;
41
41
  }
42
42
  if (h)
43
- (function d() {
43
+ (function p() {
44
44
  setTimeout(function() {
45
45
  if (a > o)
46
46
  return h();
47
- g() || d();
47
+ g() || p();
48
48
  }, 0);
49
49
  })();
50
50
  else
51
51
  for (; a <= o; ) {
52
- var p = g();
53
- if (p)
54
- return p;
52
+ var d = g();
53
+ if (d)
54
+ return d;
55
55
  }
56
56
  },
57
57
  pushComponent: function(t, l, u) {
@@ -91,7 +91,7 @@ re.prototype = {
91
91
  return t.join("");
92
92
  }
93
93
  };
94
- function $n(e, t, l, u, h) {
94
+ function xn(e, t, l, u, h) {
95
95
  for (var n = 0, r = t.length, i = 0, s = 0; n < r; n++) {
96
96
  var a = t[n];
97
97
  if (a.removed) {
@@ -102,9 +102,9 @@ function $n(e, t, l, u, h) {
102
102
  } else {
103
103
  if (!a.added && h) {
104
104
  var o = l.slice(i, i + a.count);
105
- o = o.map(function(g, p) {
106
- var d = u[s + p];
107
- return d.length > g.length ? d : g;
105
+ o = o.map(function(g, d) {
106
+ var p = u[s + d];
107
+ return p.length > g.length ? p : g;
108
108
  }), a.value = e.join(o);
109
109
  } else
110
110
  a.value = e.join(l.slice(i, i + a.count));
@@ -114,17 +114,17 @@ function $n(e, t, l, u, h) {
114
114
  var f = t[r - 1];
115
115
  return r > 1 && typeof f.value == "string" && (f.added || f.removed) && e.equals("", f.value) && (t[r - 2].value += f.value, t.pop()), t;
116
116
  }
117
- function Un(e) {
117
+ function Hn(e) {
118
118
  return {
119
119
  newPos: e.newPos,
120
120
  components: e.components.slice(0)
121
121
  };
122
122
  }
123
- var Pn = new re();
124
- function xn(e, t, l) {
125
- return Pn.diff(e, t, l);
123
+ var zn = new re();
124
+ function Fn(e, t, l) {
125
+ return zn.diff(e, t, l);
126
126
  }
127
- function Hn(e, t) {
127
+ function Gn(e, t) {
128
128
  if (typeof e == "function")
129
129
  t.callback = e;
130
130
  else if (e)
@@ -141,13 +141,13 @@ Fe.tokenize = function(e) {
141
141
  !t[l + 1] && t[l + 2] && qe.test(t[l]) && qe.test(t[l + 2]) && (t[l] += t[l + 2], t.splice(l + 1, 2), l--);
142
142
  return t;
143
143
  };
144
- function zn(e, t, l) {
145
- return l = Hn(l, {
144
+ function Kn(e, t, l) {
145
+ return l = Gn(l, {
146
146
  ignoreWhitespace: !0
147
147
  }), Fe.diff(e, t, l);
148
148
  }
149
- var fn = new re();
150
- fn.tokenize = function(e) {
149
+ var gn = new re();
150
+ gn.tokenize = function(e) {
151
151
  var t = [], l = e.split(/(\n|\r\n)/);
152
152
  l[l.length - 1] || l.pop();
153
153
  for (var u = 0; u < l.length; u++) {
@@ -156,24 +156,24 @@ fn.tokenize = function(e) {
156
156
  }
157
157
  return t;
158
158
  };
159
- var Fn = new re();
160
- Fn.tokenize = function(e) {
159
+ var Wn = new re();
160
+ Wn.tokenize = function(e) {
161
161
  return e.split(/(\S.+?[.!?])(?=\s+|$)/);
162
162
  };
163
- var Gn = new re();
164
- Gn.tokenize = function(e) {
163
+ var Qn = new re();
164
+ Qn.tokenize = function(e) {
165
165
  return e.split(/([{}:;,]|\s+)/);
166
166
  };
167
- function Oe(e) {
168
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Oe = function(t) {
167
+ function Le(e) {
168
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Le = function(t) {
169
169
  return typeof t;
170
- } : Oe = function(t) {
170
+ } : Le = function(t) {
171
171
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
172
- }, Oe(e);
172
+ }, Le(e);
173
173
  }
174
- var Kn = Object.prototype.toString, _e = new re();
174
+ var Zn = Object.prototype.toString, _e = new re();
175
175
  _e.useLongestToken = !0;
176
- _e.tokenize = fn.tokenize;
176
+ _e.tokenize = gn.tokenize;
177
177
  _e.castInput = function(e) {
178
178
  var t = this.options, l = t.undefinedReplacement, u = t.stringifyReplacer, h = u === void 0 ? function(n, r) {
179
179
  return typeof r == "undefined" ? l : r;
@@ -190,12 +190,12 @@ function xe(e, t, l, u, h) {
190
190
  if (t[n] === e)
191
191
  return l[n];
192
192
  var r;
193
- if (Kn.call(e) === "[object Array]") {
193
+ if (Zn.call(e) === "[object Array]") {
194
194
  for (t.push(e), r = new Array(e.length), l.push(r), n = 0; n < e.length; n += 1)
195
195
  r[n] = xe(e[n], t, l, u, h);
196
196
  return t.pop(), l.pop(), r;
197
197
  }
198
- if (e && e.toJSON && (e = e.toJSON()), Oe(e) === "object" && e !== null) {
198
+ if (e && e.toJSON && (e = e.toJSON()), Le(e) === "object" && e !== null) {
199
199
  t.push(e), r = {}, l.push(r);
200
200
  var i = [], s;
201
201
  for (s in e)
@@ -214,7 +214,7 @@ He.tokenize = function(e) {
214
214
  He.join = He.removeEmpty = function(e) {
215
215
  return e;
216
216
  };
217
- var be = {}, Wn = {
217
+ var be = {}, Yn = {
218
218
  get exports() {
219
219
  return be;
220
220
  },
@@ -240,8 +240,8 @@ var be = {}, Wn = {
240
240
  n = n.substring(c), r = r.substring(c), c = this.diff_commonSuffix(n, r);
241
241
  var g = n.substring(n.length - c);
242
242
  n = n.substring(0, n.length - c), r = r.substring(0, r.length - c);
243
- var p = this.diff_compute_(n, r, o, a);
244
- return f && p.unshift(new t.Diff(h, f)), g && p.push(new t.Diff(h, g)), this.diff_cleanupMerge(p), p;
243
+ var d = this.diff_compute_(n, r, o, a);
244
+ return f && d.unshift(new t.Diff(h, f)), g && d.push(new t.Diff(h, g)), this.diff_cleanupMerge(d), d;
245
245
  }, t.prototype.diff_compute_ = function(n, r, i, s) {
246
246
  var a;
247
247
  if (!n)
@@ -265,7 +265,7 @@ var be = {}, Wn = {
265
265
  ];
266
266
  var g = this.diff_halfMatch_(n, r);
267
267
  if (g) {
268
- var p = g[0], d = g[1], b = g[2], E = g[3], v = g[4], y = this.diff_main(p, b, i, s), m = this.diff_main(d, E, i, s);
268
+ var d = g[0], p = g[1], b = g[2], E = g[3], v = g[4], y = this.diff_main(d, b, i, s), m = this.diff_main(p, E, i, s);
269
269
  return y.concat(
270
270
  [new t.Diff(h, v)],
271
271
  m
@@ -277,13 +277,13 @@ var be = {}, Wn = {
277
277
  n = s.chars1, r = s.chars2;
278
278
  var a = s.lineArray, o = this.diff_main(n, r, !1, i);
279
279
  this.diff_charsToLines_(o, a), this.diff_cleanupSemantic(o), o.push(new t.Diff(h, ""));
280
- for (var c = 0, f = 0, g = 0, p = "", d = ""; c < o.length; ) {
280
+ for (var c = 0, f = 0, g = 0, d = "", p = ""; c < o.length; ) {
281
281
  switch (o[c][0]) {
282
282
  case u:
283
- g++, d += o[c][1];
283
+ g++, p += o[c][1];
284
284
  break;
285
285
  case l:
286
- f++, p += o[c][1];
286
+ f++, d += o[c][1];
287
287
  break;
288
288
  case h:
289
289
  if (f >= 1 && g >= 1) {
@@ -291,20 +291,20 @@ var be = {}, Wn = {
291
291
  c - f - g,
292
292
  f + g
293
293
  ), c = c - f - g;
294
- for (var b = this.diff_main(p, d, !1, i), E = b.length - 1; E >= 0; E--)
294
+ for (var b = this.diff_main(d, p, !1, i), E = b.length - 1; E >= 0; E--)
295
295
  o.splice(c, 0, b[E]);
296
296
  c = c + b.length;
297
297
  }
298
- g = 0, f = 0, p = "", d = "";
298
+ g = 0, f = 0, d = "", p = "";
299
299
  break;
300
300
  }
301
301
  c++;
302
302
  }
303
303
  return o.pop(), o;
304
304
  }, t.prototype.diff_bisect_ = function(n, r, i) {
305
- for (var s = n.length, a = r.length, o = Math.ceil((s + a) / 2), c = o, f = 2 * o, g = new Array(f), p = new Array(f), d = 0; d < f; d++)
306
- g[d] = -1, p[d] = -1;
307
- g[c + 1] = 0, p[c + 1] = 0;
305
+ for (var s = n.length, a = r.length, o = Math.ceil((s + a) / 2), c = o, f = 2 * o, g = new Array(f), d = new Array(f), p = 0; p < f; p++)
306
+ g[p] = -1, d[p] = -1;
307
+ g[c + 1] = 0, d[c + 1] = 0;
308
308
  for (var b = s - a, E = b % 2 != 0, v = 0, y = 0, m = 0, D = 0, S = 0; S < o && !(new Date().getTime() > i); S++) {
309
309
  for (var A = -S + v; A <= S - y; A += 2) {
310
310
  var I = c + A, R;
@@ -316,20 +316,20 @@ var be = {}, Wn = {
316
316
  else if (z > a)
317
317
  v += 2;
318
318
  else if (E) {
319
- var P = c + b - A;
320
- if (P >= 0 && P < f && p[P] != -1) {
321
- var $ = s - p[P];
319
+ var U = c + b - A;
320
+ if (U >= 0 && U < f && d[U] != -1) {
321
+ var $ = s - d[U];
322
322
  if (R >= $)
323
323
  return this.diff_bisectSplit_(n, r, R, z, i);
324
324
  }
325
325
  }
326
326
  }
327
327
  for (var G = -S + m; G <= S - D; G += 2) {
328
- var P = c + G, $;
329
- G == -S || G != S && p[P - 1] < p[P + 1] ? $ = p[P + 1] : $ = p[P - 1] + 1;
328
+ var U = c + G, $;
329
+ G == -S || G != S && d[U - 1] < d[U + 1] ? $ = d[U + 1] : $ = d[U - 1] + 1;
330
330
  for (var Q = $ - G; $ < s && Q < a && n.charAt(s - $ - 1) == r.charAt(a - Q - 1); )
331
331
  $++, Q++;
332
- if (p[P] = $, $ > s)
332
+ if (d[U] = $, $ > s)
333
333
  D += 2;
334
334
  else if (Q > a)
335
335
  m += 2;
@@ -348,19 +348,19 @@ var be = {}, Wn = {
348
348
  new t.Diff(u, r)
349
349
  ];
350
350
  }, t.prototype.diff_bisectSplit_ = function(n, r, i, s, a) {
351
- var o = n.substring(0, i), c = r.substring(0, s), f = n.substring(i), g = r.substring(s), p = this.diff_main(o, c, !1, a), d = this.diff_main(f, g, !1, a);
352
- return p.concat(d);
351
+ var o = n.substring(0, i), c = r.substring(0, s), f = n.substring(i), g = r.substring(s), d = this.diff_main(o, c, !1, a), p = this.diff_main(f, g, !1, a);
352
+ return d.concat(p);
353
353
  }, t.prototype.diff_linesToChars_ = function(n, r) {
354
354
  var i = [], s = {};
355
355
  i[0] = "";
356
356
  function a(g) {
357
- for (var p = "", d = 0, b = -1, E = i.length; b < g.length - 1; ) {
357
+ for (var d = "", p = 0, b = -1, E = i.length; b < g.length - 1; ) {
358
358
  b = g.indexOf(`
359
- `, d), b == -1 && (b = g.length - 1);
360
- var v = g.substring(d, b + 1);
361
- (s.hasOwnProperty ? s.hasOwnProperty(v) : s[v] !== void 0) ? p += String.fromCharCode(s[v]) : (E == o && (v = g.substring(d), b = g.length), p += String.fromCharCode(E), s[v] = E, i[E++] = v), d = b + 1;
359
+ `, p), b == -1 && (b = g.length - 1);
360
+ var v = g.substring(p, b + 1);
361
+ (s.hasOwnProperty ? s.hasOwnProperty(v) : s[v] !== void 0) ? d += String.fromCharCode(s[v]) : (E == o && (v = g.substring(p), b = g.length), d += String.fromCharCode(E), s[v] = E, i[E++] = v), p = b + 1;
362
362
  }
363
- return p;
363
+ return d;
364
364
  }
365
365
  var o = 4e4, c = a(n);
366
366
  o = 65535;
@@ -406,7 +406,7 @@ var be = {}, Wn = {
406
406
  return null;
407
407
  var a = this;
408
408
  function o(y, m, D) {
409
- for (var S = y.substring(D, D + Math.floor(y.length / 4)), A = -1, I = "", R, z, P, $; (A = m.indexOf(S, A + 1)) != -1; ) {
409
+ for (var S = y.substring(D, D + Math.floor(y.length / 4)), A = -1, I = "", R, z, U, $; (A = m.indexOf(S, A + 1)) != -1; ) {
410
410
  var G = a.diff_commonPrefix(
411
411
  y.substring(D),
412
412
  m.substring(A)
@@ -414,12 +414,12 @@ var be = {}, Wn = {
414
414
  y.substring(0, D),
415
415
  m.substring(0, A)
416
416
  );
417
- I.length < Q + G && (I = m.substring(A - Q, A) + m.substring(A, A + G), R = y.substring(0, D - Q), z = y.substring(D + G), P = m.substring(0, A - Q), $ = m.substring(A + G));
417
+ I.length < Q + G && (I = m.substring(A - Q, A) + m.substring(A, A + G), R = y.substring(0, D - Q), z = y.substring(D + G), U = m.substring(0, A - Q), $ = m.substring(A + G));
418
418
  }
419
419
  return I.length * 2 >= y.length ? [
420
420
  R,
421
421
  z,
422
- P,
422
+ U,
423
423
  $,
424
424
  I
425
425
  ] : null;
@@ -436,30 +436,30 @@ var be = {}, Wn = {
436
436
  if (!c && !f)
437
437
  return null;
438
438
  f ? c ? g = c[4].length > f[4].length ? c : f : g = f : g = c;
439
- var p, d, b, E;
440
- n.length > r.length ? (p = g[0], d = g[1], b = g[2], E = g[3]) : (b = g[0], E = g[1], p = g[2], d = g[3]);
439
+ var d, p, b, E;
440
+ n.length > r.length ? (d = g[0], p = g[1], b = g[2], E = g[3]) : (b = g[0], E = g[1], d = g[2], p = g[3]);
441
441
  var v = g[4];
442
- return [p, d, b, E, v];
442
+ return [d, p, b, E, v];
443
443
  }, t.prototype.diff_cleanupSemantic = function(n) {
444
- for (var r = !1, i = [], s = 0, a = null, o = 0, c = 0, f = 0, g = 0, p = 0; o < n.length; )
445
- n[o][0] == h ? (i[s++] = o, c = g, f = p, g = 0, p = 0, a = n[o][1]) : (n[o][0] == u ? g += n[o][1].length : p += n[o][1].length, a && a.length <= Math.max(c, f) && a.length <= Math.max(
444
+ for (var r = !1, i = [], s = 0, a = null, o = 0, c = 0, f = 0, g = 0, d = 0; o < n.length; )
445
+ n[o][0] == h ? (i[s++] = o, c = g, f = d, g = 0, d = 0, a = n[o][1]) : (n[o][0] == u ? g += n[o][1].length : d += n[o][1].length, a && a.length <= Math.max(c, f) && a.length <= Math.max(
446
446
  g,
447
- p
447
+ d
448
448
  ) && (n.splice(
449
449
  i[s - 1],
450
450
  0,
451
451
  new t.Diff(l, a)
452
- ), n[i[s - 1] + 1][0] = u, s--, s--, o = s > 0 ? i[s - 1] : -1, c = 0, f = 0, g = 0, p = 0, a = null, r = !0)), o++;
452
+ ), n[i[s - 1] + 1][0] = u, s--, s--, o = s > 0 ? i[s - 1] : -1, c = 0, f = 0, g = 0, d = 0, a = null, r = !0)), o++;
453
453
  for (r && this.diff_cleanupMerge(n), this.diff_cleanupSemanticLossless(n), o = 1; o < n.length; ) {
454
454
  if (n[o - 1][0] == l && n[o][0] == u) {
455
- var d = n[o - 1][1], b = n[o][1], E = this.diff_commonOverlap_(d, b), v = this.diff_commonOverlap_(b, d);
456
- E >= v ? (E >= d.length / 2 || E >= b.length / 2) && (n.splice(o, 0, new t.Diff(
455
+ var p = n[o - 1][1], b = n[o][1], E = this.diff_commonOverlap_(p, b), v = this.diff_commonOverlap_(b, p);
456
+ E >= v ? (E >= p.length / 2 || E >= b.length / 2) && (n.splice(o, 0, new t.Diff(
457
457
  h,
458
458
  b.substring(0, E)
459
- )), n[o - 1][1] = d.substring(0, d.length - E), n[o + 1][1] = b.substring(E), o++) : (v >= d.length / 2 || v >= b.length / 2) && (n.splice(o, 0, new t.Diff(
459
+ )), n[o - 1][1] = p.substring(0, p.length - E), n[o + 1][1] = b.substring(E), o++) : (v >= p.length / 2 || v >= b.length / 2) && (n.splice(o, 0, new t.Diff(
460
460
  h,
461
- d.substring(0, v)
462
- )), n[o - 1][0] = u, n[o - 1][1] = b.substring(0, b.length - v), n[o + 1][0] = l, n[o + 1][1] = d.substring(v), o++), o++;
461
+ p.substring(0, v)
462
+ )), n[o - 1][0] = u, n[o - 1][1] = b.substring(0, b.length - v), n[o + 1][0] = l, n[o + 1][1] = p.substring(v), o++), o++;
463
463
  }
464
464
  o++;
465
465
  }
@@ -467,8 +467,8 @@ var be = {}, Wn = {
467
467
  function r(v, y) {
468
468
  if (!v || !y)
469
469
  return 6;
470
- var m = v.charAt(v.length - 1), D = y.charAt(0), S = m.match(t.nonAlphaNumericRegex_), A = D.match(t.nonAlphaNumericRegex_), I = S && m.match(t.whitespaceRegex_), R = A && D.match(t.whitespaceRegex_), z = I && m.match(t.linebreakRegex_), P = R && D.match(t.linebreakRegex_), $ = z && v.match(t.blanklineEndRegex_), G = P && y.match(t.blanklineStartRegex_);
471
- return $ || G ? 5 : z || P ? 4 : S && !I && R ? 3 : I || R ? 2 : S || A ? 1 : 0;
470
+ var m = v.charAt(v.length - 1), D = y.charAt(0), S = m.match(t.nonAlphaNumericRegex_), A = D.match(t.nonAlphaNumericRegex_), I = S && m.match(t.whitespaceRegex_), R = A && D.match(t.whitespaceRegex_), z = I && m.match(t.linebreakRegex_), U = R && D.match(t.linebreakRegex_), $ = z && v.match(t.blanklineEndRegex_), G = U && y.match(t.blanklineStartRegex_);
471
+ return $ || G ? 5 : z || U ? 4 : S && !I && R ? 3 : I || R ? 2 : S || A ? 1 : 0;
472
472
  }
473
473
  for (var i = 1; i < n.length - 1; ) {
474
474
  if (n[i - 1][0] == h && n[i + 1][0] == h) {
@@ -477,22 +477,22 @@ var be = {}, Wn = {
477
477
  var f = a.substring(a.length - c);
478
478
  s = s.substring(0, s.length - c), a = f + a.substring(0, a.length - c), o = f + o;
479
479
  }
480
- for (var g = s, p = a, d = o, b = r(s, a) + r(a, o); a.charAt(0) === o.charAt(0); ) {
480
+ for (var g = s, d = a, p = o, b = r(s, a) + r(a, o); a.charAt(0) === o.charAt(0); ) {
481
481
  s += a.charAt(0), a = a.substring(1) + o.charAt(0), o = o.substring(1);
482
482
  var E = r(s, a) + r(a, o);
483
- E >= b && (b = E, g = s, p = a, d = o);
483
+ E >= b && (b = E, g = s, d = a, p = o);
484
484
  }
485
- n[i - 1][1] != g && (g ? n[i - 1][1] = g : (n.splice(i - 1, 1), i--), n[i][1] = p, d ? n[i + 1][1] = d : (n.splice(i + 1, 1), i--));
485
+ n[i - 1][1] != g && (g ? n[i - 1][1] = g : (n.splice(i - 1, 1), i--), n[i][1] = d, p ? n[i + 1][1] = p : (n.splice(i + 1, 1), i--));
486
486
  }
487
487
  i++;
488
488
  }
489
489
  }, t.nonAlphaNumericRegex_ = /[^a-zA-Z0-9]/, t.whitespaceRegex_ = /\s/, t.linebreakRegex_ = /[\r\n]/, t.blanklineEndRegex_ = /\n\r?\n$/, t.blanklineStartRegex_ = /^\r?\n\r?\n/, t.prototype.diff_cleanupEfficiency = function(n) {
490
- for (var r = !1, i = [], s = 0, a = null, o = 0, c = !1, f = !1, g = !1, p = !1; o < n.length; )
491
- n[o][0] == h ? (n[o][1].length < this.Diff_EditCost && (g || p) ? (i[s++] = o, c = g, f = p, a = n[o][1]) : (s = 0, a = null), g = p = !1) : (n[o][0] == l ? p = !0 : g = !0, a && (c && f && g && p || a.length < this.Diff_EditCost / 2 && c + f + g + p == 3) && (n.splice(
490
+ for (var r = !1, i = [], s = 0, a = null, o = 0, c = !1, f = !1, g = !1, d = !1; o < n.length; )
491
+ n[o][0] == h ? (n[o][1].length < this.Diff_EditCost && (g || d) ? (i[s++] = o, c = g, f = d, a = n[o][1]) : (s = 0, a = null), g = d = !1) : (n[o][0] == l ? d = !0 : g = !0, a && (c && f && g && d || a.length < this.Diff_EditCost / 2 && c + f + g + d == 3) && (n.splice(
492
492
  i[s - 1],
493
493
  0,
494
494
  new t.Diff(l, a)
495
- ), n[i[s - 1] + 1][0] = u, s--, a = null, c && f ? (g = p = !0, s = 0) : (s--, o = s > 0 ? i[s - 1] : -1, g = p = !1), r = !0)), o++;
495
+ ), n[i[s - 1] + 1][0] = u, s--, a = null, c && f ? (g = d = !0, s = 0) : (s--, o = s > 0 ? i[s - 1] : -1, g = d = !1), r = !0)), o++;
496
496
  r && this.diff_cleanupMerge(n);
497
497
  }, t.prototype.diff_cleanupMerge = function(n) {
498
498
  n.push(new t.Diff(h, ""));
@@ -531,16 +531,16 @@ var be = {}, Wn = {
531
531
  return n.length != c && n[c][0] === l ? o : o + (r - a);
532
532
  }, t.prototype.diff_prettyHtml = function(n) {
533
533
  for (var r = [], i = /&/g, s = /</g, a = />/g, o = /\n/g, c = 0; c < n.length; c++) {
534
- var f = n[c][0], g = n[c][1], p = g.replace(i, "&amp;").replace(s, "&lt;").replace(a, "&gt;").replace(o, "&para;<br>");
534
+ var f = n[c][0], g = n[c][1], d = g.replace(i, "&amp;").replace(s, "&lt;").replace(a, "&gt;").replace(o, "&para;<br>");
535
535
  switch (f) {
536
536
  case u:
537
- r[c] = '<ins style="background:#e6ffe6;">' + p + "</ins>";
537
+ r[c] = '<ins style="background:#e6ffe6;">' + d + "</ins>";
538
538
  break;
539
539
  case l:
540
- r[c] = '<del style="background:#ffe6e6;">' + p + "</del>";
540
+ r[c] = '<del style="background:#ffe6e6;">' + d + "</del>";
541
541
  break;
542
542
  case h:
543
- r[c] = "<span>" + p + "</span>";
543
+ r[c] = "<span>" + d + "</span>";
544
544
  break;
545
545
  }
546
546
  }
@@ -590,7 +590,7 @@ var be = {}, Wn = {
590
590
  case "+":
591
591
  try {
592
592
  i[s++] = new t.Diff(u, decodeURI(f));
593
- } catch (d) {
593
+ } catch (p) {
594
594
  throw new Error("Illegal escape in diff_fromDelta: " + f);
595
595
  }
596
596
  break;
@@ -599,8 +599,8 @@ var be = {}, Wn = {
599
599
  var g = parseInt(f, 10);
600
600
  if (isNaN(g) || g < 0)
601
601
  throw new Error("Invalid number in diff_fromDelta: " + f);
602
- var p = n.substring(a, a += g);
603
- o[c].charAt(0) == "=" ? i[s++] = new t.Diff(h, p) : i[s++] = new t.Diff(l, p);
602
+ var d = n.substring(a, a += g);
603
+ o[c].charAt(0) == "=" ? i[s++] = new t.Diff(h, d) : i[s++] = new t.Diff(l, d);
604
604
  break;
605
605
  default:
606
606
  if (o[c])
@@ -619,18 +619,18 @@ var be = {}, Wn = {
619
619
  throw new Error("Pattern too long for this browser.");
620
620
  var s = this.match_alphabet_(r), a = this;
621
621
  function o(R, z) {
622
- var P = R / r.length, $ = Math.abs(i - z);
623
- return a.Match_Distance ? P + $ / a.Match_Distance : $ ? 1 : P;
622
+ var U = R / r.length, $ = Math.abs(i - z);
623
+ return a.Match_Distance ? U + $ / a.Match_Distance : $ ? 1 : U;
624
624
  }
625
625
  var c = this.Match_Threshold, f = n.indexOf(r, i);
626
626
  f != -1 && (c = Math.min(o(0, f), c), f = n.lastIndexOf(r, i + r.length), f != -1 && (c = Math.min(o(0, f), c)));
627
627
  var g = 1 << r.length - 1;
628
628
  f = -1;
629
- for (var p, d, b = r.length + n.length, E, v = 0; v < r.length; v++) {
630
- for (p = 0, d = b; p < d; )
631
- o(v, i + d) <= c ? p = d : b = d, d = Math.floor((b - p) / 2 + p);
632
- b = d;
633
- var y = Math.max(1, i - d + 1), m = Math.min(i + d, n.length) + r.length, D = Array(m + 2);
629
+ for (var d, p, b = r.length + n.length, E, v = 0; v < r.length; v++) {
630
+ for (d = 0, p = b; d < p; )
631
+ o(v, i + p) <= c ? d = p : b = p, p = Math.floor((b - d) / 2 + d);
632
+ b = p;
633
+ var y = Math.max(1, i - p + 1), m = Math.min(i + p, n.length) + r.length, D = Array(m + 2);
634
634
  D[m + 1] = (1 << v) - 1;
635
635
  for (var S = m; S >= y; S--) {
636
636
  var A = s[n.charAt(S - 1)];
@@ -697,22 +697,22 @@ var be = {}, Wn = {
697
697
  throw new Error("Unknown call format to patch_make.");
698
698
  if (a.length === 0)
699
699
  return [];
700
- for (var o = [], c = new t.patch_obj(), f = 0, g = 0, p = 0, d = s, b = s, E = 0; E < a.length; E++) {
700
+ for (var o = [], c = new t.patch_obj(), f = 0, g = 0, d = 0, p = s, b = s, E = 0; E < a.length; E++) {
701
701
  var v = a[E][0], y = a[E][1];
702
- switch (!f && v !== h && (c.start1 = g, c.start2 = p), v) {
702
+ switch (!f && v !== h && (c.start1 = g, c.start2 = d), v) {
703
703
  case u:
704
- c.diffs[f++] = a[E], c.length2 += y.length, b = b.substring(0, p) + y + b.substring(p);
704
+ c.diffs[f++] = a[E], c.length2 += y.length, b = b.substring(0, d) + y + b.substring(d);
705
705
  break;
706
706
  case l:
707
- c.length1 += y.length, c.diffs[f++] = a[E], b = b.substring(0, p) + b.substring(p + y.length);
707
+ c.length1 += y.length, c.diffs[f++] = a[E], b = b.substring(0, d) + b.substring(d + y.length);
708
708
  break;
709
709
  case h:
710
- y.length <= 2 * this.Patch_Margin && f && a.length != E + 1 ? (c.diffs[f++] = a[E], c.length1 += y.length, c.length2 += y.length) : y.length >= 2 * this.Patch_Margin && f && (this.patch_addContext_(c, d), o.push(c), c = new t.patch_obj(), f = 0, d = b, g = p);
710
+ y.length <= 2 * this.Patch_Margin && f && a.length != E + 1 ? (c.diffs[f++] = a[E], c.length1 += y.length, c.length2 += y.length) : y.length >= 2 * this.Patch_Margin && f && (this.patch_addContext_(c, p), o.push(c), c = new t.patch_obj(), f = 0, p = b, g = d);
711
711
  break;
712
712
  }
713
- v !== u && (g += y.length), v !== l && (p += y.length);
713
+ v !== u && (g += y.length), v !== l && (d += y.length);
714
714
  }
715
- return f && (this.patch_addContext_(c, d), o.push(c)), o;
715
+ return f && (this.patch_addContext_(c, p), o.push(c)), o;
716
716
  }, t.prototype.patch_deepCopy = function(n) {
717
717
  for (var r = [], i = 0; i < n.length; i++) {
718
718
  var s = n[i], a = new t.patch_obj();
@@ -729,24 +729,24 @@ var be = {}, Wn = {
729
729
  var i = this.patch_addPadding(n);
730
730
  r = i + r + i, this.patch_splitMax(n);
731
731
  for (var s = 0, a = [], o = 0; o < n.length; o++) {
732
- var c = n[o].start2 + s, f = this.diff_text1(n[o].diffs), g, p = -1;
732
+ var c = n[o].start2 + s, f = this.diff_text1(n[o].diffs), g, d = -1;
733
733
  if (f.length > this.Match_MaxBits ? (g = this.match_main(
734
734
  r,
735
735
  f.substring(0, this.Match_MaxBits),
736
736
  c
737
- ), g != -1 && (p = this.match_main(
737
+ ), g != -1 && (d = this.match_main(
738
738
  r,
739
739
  f.substring(f.length - this.Match_MaxBits),
740
740
  c + f.length - this.Match_MaxBits
741
- ), (p == -1 || g >= p) && (g = -1))) : g = this.match_main(r, f, c), g == -1)
741
+ ), (d == -1 || g >= d) && (g = -1))) : g = this.match_main(r, f, c), g == -1)
742
742
  a[o] = !1, s -= n[o].length2 - n[o].length1;
743
743
  else {
744
744
  a[o] = !0, s = g - c;
745
- var d;
746
- if (p == -1 ? d = r.substring(g, g + f.length) : d = r.substring(g, p + this.Match_MaxBits), f == d)
745
+ var p;
746
+ if (d == -1 ? p = r.substring(g, g + f.length) : p = r.substring(g, d + this.Match_MaxBits), f == p)
747
747
  r = r.substring(0, g) + this.diff_text2(n[o].diffs) + r.substring(g + f.length);
748
748
  else {
749
- var b = this.diff_main(f, d, !1);
749
+ var b = this.diff_main(f, p, !1);
750
750
  if (f.length > this.Match_MaxBits && this.diff_levenshtein(b) / f.length > this.Patch_DeleteThreshold)
751
751
  a[o] = !1;
752
752
  else {
@@ -790,11 +790,11 @@ var be = {}, Wn = {
790
790
  for (var a = s.start1, o = s.start2, c = ""; s.diffs.length !== 0; ) {
791
791
  var f = new t.patch_obj(), g = !0;
792
792
  for (f.start1 = a - c.length, f.start2 = o - c.length, c !== "" && (f.length1 = f.length2 = c.length, f.diffs.push(new t.Diff(h, c))); s.diffs.length !== 0 && f.length1 < r - this.Patch_Margin; ) {
793
- var p = s.diffs[0][0], d = s.diffs[0][1];
794
- p === u ? (f.length2 += d.length, o += d.length, f.diffs.push(s.diffs.shift()), g = !1) : p === l && f.diffs.length == 1 && f.diffs[0][0] == h && d.length > 2 * r ? (f.length1 += d.length, a += d.length, g = !1, f.diffs.push(new t.Diff(p, d)), s.diffs.shift()) : (d = d.substring(
793
+ var d = s.diffs[0][0], p = s.diffs[0][1];
794
+ d === u ? (f.length2 += p.length, o += p.length, f.diffs.push(s.diffs.shift()), g = !1) : d === l && f.diffs.length == 1 && f.diffs[0][0] == h && p.length > 2 * r ? (f.length1 += p.length, a += p.length, g = !1, f.diffs.push(new t.Diff(d, p)), s.diffs.shift()) : (p = p.substring(
795
795
  0,
796
796
  r - f.length1 - this.Patch_Margin
797
- ), f.length1 += d.length, a += d.length, p === h ? (f.length2 += d.length, o += d.length) : g = !1, f.diffs.push(new t.Diff(p, d)), d == s.diffs[0][1] ? s.diffs.shift() : s.diffs[0][1] = s.diffs[0][1].substring(d.length));
797
+ ), f.length1 += p.length, a += p.length, d === h ? (f.length2 += p.length, o += p.length) : g = !1, f.diffs.push(new t.Diff(d, p)), p == s.diffs[0][1] ? s.diffs.shift() : s.diffs[0][1] = s.diffs[0][1].substring(p.length));
798
798
  }
799
799
  c = this.diff_text2(f.diffs), c = c.substring(c.length - this.Patch_Margin);
800
800
  var b = this.diff_text1(s.diffs).substring(0, this.Patch_Margin);
@@ -819,7 +819,7 @@ var be = {}, Wn = {
819
819
  var f = i[s].charAt(0);
820
820
  try {
821
821
  var g = decodeURI(i[s].substring(1));
822
- } catch (p) {
822
+ } catch (d) {
823
823
  throw new Error("Illegal escape in patch_fromText: " + g);
824
824
  }
825
825
  if (f == "-")
@@ -861,7 +861,7 @@ var be = {}, Wn = {
861
861
  }
862
862
  return i.join("").replace(/%20/g, " ");
863
863
  }, e.exports = t, e.exports.diff_match_patch = t, e.exports.DIFF_DELETE = l, e.exports.DIFF_INSERT = u, e.exports.DIFF_EQUAL = h;
864
- })(Wn);
864
+ })(Yn);
865
865
  var Ge = { exports: {} };
866
866
  function Ke(e) {
867
867
  return e instanceof Map ? e.clear = e.delete = e.set = function() {
@@ -886,7 +886,7 @@ class nn {
886
886
  this.isMatchIgnored = !0;
887
887
  }
888
888
  }
889
- function gn(e) {
889
+ function hn(e) {
890
890
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
891
891
  }
892
892
  function ae(e, ...t) {
@@ -899,7 +899,7 @@ function ae(e, ...t) {
899
899
  }), /** @type {T} */
900
900
  l;
901
901
  }
902
- const Qn = "</span>", tn = (e) => !!e.scope || e.sublanguage && e.language, Zn = (e, { prefix: t }) => {
902
+ const Xn = "</span>", tn = (e) => !!e.scope || e.sublanguage && e.language, Vn = (e, { prefix: t }) => {
903
903
  if (e.includes(".")) {
904
904
  const l = e.split(".");
905
905
  return [
@@ -909,7 +909,7 @@ const Qn = "</span>", tn = (e) => !!e.scope || e.sublanguage && e.language, Zn =
909
909
  }
910
910
  return `${t}${e}`;
911
911
  };
912
- class Yn {
912
+ class jn {
913
913
  /**
914
914
  * Creates a new HTMLRenderer
915
915
  *
@@ -924,7 +924,7 @@ class Yn {
924
924
  *
925
925
  * @param {string} text */
926
926
  addText(t) {
927
- this.buffer += gn(t);
927
+ this.buffer += hn(t);
928
928
  }
929
929
  /**
930
930
  * Adds a node open to the output stream (if needed)
@@ -934,14 +934,14 @@ class Yn {
934
934
  if (!tn(t))
935
935
  return;
936
936
  let l = "";
937
- t.sublanguage ? l = `language-${t.language}` : l = Zn(t.scope, { prefix: this.classPrefix }), this.span(l);
937
+ t.sublanguage ? l = `language-${t.language}` : l = Vn(t.scope, { prefix: this.classPrefix }), this.span(l);
938
938
  }
939
939
  /**
940
940
  * Adds a node close to the output stream (if needed)
941
941
  *
942
942
  * @param {Node} node */
943
943
  closeNode(t) {
944
- tn(t) && (this.buffer += Qn);
944
+ tn(t) && (this.buffer += Xn);
945
945
  }
946
946
  /**
947
947
  * returns the accumulated buffer
@@ -1015,7 +1015,7 @@ class We {
1015
1015
  }));
1016
1016
  }
1017
1017
  }
1018
- class Xn extends We {
1018
+ class Jn extends We {
1019
1019
  /**
1020
1020
  * @param {*} options
1021
1021
  */
@@ -1044,7 +1044,7 @@ class Xn extends We {
1044
1044
  u.sublanguage = !0, u.language = l, this.add(u);
1045
1045
  }
1046
1046
  toHTML() {
1047
- return new Yn(this, this.options).value();
1047
+ return new jn(this, this.options).value();
1048
1048
  }
1049
1049
  finalize() {
1050
1050
  return !0;
@@ -1053,33 +1053,33 @@ class Xn extends We {
1053
1053
  function Ee(e) {
1054
1054
  return e ? typeof e == "string" ? e : e.source : null;
1055
1055
  }
1056
- function hn(e) {
1056
+ function dn(e) {
1057
1057
  return ce("(?=", e, ")");
1058
1058
  }
1059
- function Vn(e) {
1059
+ function qn(e) {
1060
1060
  return ce("(?:", e, ")*");
1061
1061
  }
1062
- function jn(e) {
1062
+ function et(e) {
1063
1063
  return ce("(?:", e, ")?");
1064
1064
  }
1065
1065
  function ce(...e) {
1066
1066
  return e.map((l) => Ee(l)).join("");
1067
1067
  }
1068
- function Jn(e) {
1068
+ function nt(e) {
1069
1069
  const t = e[e.length - 1];
1070
1070
  return typeof t == "object" && t.constructor === Object ? (e.splice(e.length - 1, 1), t) : {};
1071
1071
  }
1072
1072
  function Qe(...e) {
1073
- return "(" + (Jn(e).capture ? "" : "?:") + e.map((u) => Ee(u)).join("|") + ")";
1073
+ return "(" + (nt(e).capture ? "" : "?:") + e.map((u) => Ee(u)).join("|") + ")";
1074
1074
  }
1075
- function dn(e) {
1075
+ function pn(e) {
1076
1076
  return new RegExp(e.toString() + "|").exec("").length - 1;
1077
1077
  }
1078
- function qn(e, t) {
1078
+ function tt(e, t) {
1079
1079
  const l = e && e.exec(t);
1080
1080
  return l && l.index === 0;
1081
1081
  }
1082
- const et = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
1082
+ const rt = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
1083
1083
  function Ze(e, { joinWith: t }) {
1084
1084
  let l = 0;
1085
1085
  return e.map((u) => {
@@ -1087,7 +1087,7 @@ function Ze(e, { joinWith: t }) {
1087
1087
  const h = l;
1088
1088
  let n = Ee(u), r = "";
1089
1089
  for (; n.length > 0; ) {
1090
- const i = et.exec(n);
1090
+ const i = rt.exec(n);
1091
1091
  if (!i) {
1092
1092
  r += n;
1093
1093
  break;
@@ -1097,7 +1097,7 @@ function Ze(e, { joinWith: t }) {
1097
1097
  return r;
1098
1098
  }).map((u) => `(${u})`).join(t);
1099
1099
  }
1100
- const nt = /\b\B/, pn = "[a-zA-Z]\\w*", Ye = "[a-zA-Z_]\\w*", bn = "\\b\\d+(\\.\\d+)?", _n = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", En = "\\b(0b[01]+)", tt = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", rt = (e = {}) => {
1100
+ const it = /\b\B/, bn = "[a-zA-Z]\\w*", Ye = "[a-zA-Z_]\\w*", _n = "\\b\\d+(\\.\\d+)?", En = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", vn = "\\b(0b[01]+)", st = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", at = (e = {}) => {
1101
1101
  const t = /^#![ ]*\//;
1102
1102
  return e.binary && (e.begin = ce(
1103
1103
  t,
@@ -1117,19 +1117,19 @@ const nt = /\b\B/, pn = "[a-zA-Z]\\w*", Ye = "[a-zA-Z_]\\w*", bn = "\\b\\d+(\\.\
1117
1117
  }, ve = {
1118
1118
  begin: "\\\\[\\s\\S]",
1119
1119
  relevance: 0
1120
- }, it = {
1120
+ }, ot = {
1121
1121
  scope: "string",
1122
1122
  begin: "'",
1123
1123
  end: "'",
1124
1124
  illegal: "\\n",
1125
1125
  contains: [ve]
1126
- }, st = {
1126
+ }, lt = {
1127
1127
  scope: "string",
1128
1128
  begin: '"',
1129
1129
  end: '"',
1130
1130
  illegal: "\\n",
1131
1131
  contains: [ve]
1132
- }, at = {
1132
+ }, ct = {
1133
1133
  begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
1134
1134
  }, ke = function(e, t, l = {}) {
1135
1135
  const u = ae(
@@ -1197,19 +1197,19 @@ const nt = /\b\B/, pn = "[a-zA-Z]\\w*", Ye = "[a-zA-Z_]\\w*", bn = "\\b\\d+(\\.\
1197
1197
  // look for 3 words in a row
1198
1198
  }
1199
1199
  ), u;
1200
- }, ot = ke("//", "$"), lt = ke("/\\*", "\\*/"), ct = ke("#", "$"), ut = {
1201
- scope: "number",
1202
- begin: bn,
1203
- relevance: 0
1204
- }, ft = {
1200
+ }, ut = ke("//", "$"), ft = ke("/\\*", "\\*/"), gt = ke("#", "$"), ht = {
1205
1201
  scope: "number",
1206
1202
  begin: _n,
1207
1203
  relevance: 0
1208
- }, gt = {
1204
+ }, dt = {
1209
1205
  scope: "number",
1210
1206
  begin: En,
1211
1207
  relevance: 0
1212
- }, ht = {
1208
+ }, pt = {
1209
+ scope: "number",
1210
+ begin: vn,
1211
+ relevance: 0
1212
+ }, bt = {
1213
1213
  // this outer rule makes sure we actually have a WHOLE regex and not simply
1214
1214
  // an expression such as:
1215
1215
  //
@@ -1232,19 +1232,19 @@ const nt = /\b\B/, pn = "[a-zA-Z]\\w*", Ye = "[a-zA-Z_]\\w*", bn = "\\b\\d+(\\.\
1232
1232
  }
1233
1233
  ]
1234
1234
  }]
1235
- }, dt = {
1235
+ }, _t = {
1236
1236
  scope: "title",
1237
- begin: pn,
1237
+ begin: bn,
1238
1238
  relevance: 0
1239
- }, pt = {
1239
+ }, Et = {
1240
1240
  scope: "title",
1241
1241
  begin: Ye,
1242
1242
  relevance: 0
1243
- }, bt = {
1243
+ }, vt = {
1244
1244
  // excludes method names from keyword processing
1245
1245
  begin: "\\.\\s*" + Ye,
1246
1246
  relevance: 0
1247
- }, _t = function(e) {
1247
+ }, mt = function(e) {
1248
1248
  return Object.assign(
1249
1249
  e,
1250
1250
  {
@@ -1261,54 +1261,54 @@ const nt = /\b\B/, pn = "[a-zA-Z]\\w*", Ye = "[a-zA-Z_]\\w*", bn = "\\b\\d+(\\.\
1261
1261
  };
1262
1262
  var De = /* @__PURE__ */ Object.freeze({
1263
1263
  __proto__: null,
1264
- MATCH_NOTHING_RE: nt,
1265
- IDENT_RE: pn,
1264
+ MATCH_NOTHING_RE: it,
1265
+ IDENT_RE: bn,
1266
1266
  UNDERSCORE_IDENT_RE: Ye,
1267
- NUMBER_RE: bn,
1268
- C_NUMBER_RE: _n,
1269
- BINARY_NUMBER_RE: En,
1270
- RE_STARTERS_RE: tt,
1271
- SHEBANG: rt,
1267
+ NUMBER_RE: _n,
1268
+ C_NUMBER_RE: En,
1269
+ BINARY_NUMBER_RE: vn,
1270
+ RE_STARTERS_RE: st,
1271
+ SHEBANG: at,
1272
1272
  BACKSLASH_ESCAPE: ve,
1273
- APOS_STRING_MODE: it,
1274
- QUOTE_STRING_MODE: st,
1275
- PHRASAL_WORDS_MODE: at,
1273
+ APOS_STRING_MODE: ot,
1274
+ QUOTE_STRING_MODE: lt,
1275
+ PHRASAL_WORDS_MODE: ct,
1276
1276
  COMMENT: ke,
1277
- C_LINE_COMMENT_MODE: ot,
1278
- C_BLOCK_COMMENT_MODE: lt,
1279
- HASH_COMMENT_MODE: ct,
1280
- NUMBER_MODE: ut,
1281
- C_NUMBER_MODE: ft,
1282
- BINARY_NUMBER_MODE: gt,
1283
- REGEXP_MODE: ht,
1284
- TITLE_MODE: dt,
1285
- UNDERSCORE_TITLE_MODE: pt,
1286
- METHOD_GUARD: bt,
1287
- END_SAME_AS_BEGIN: _t
1277
+ C_LINE_COMMENT_MODE: ut,
1278
+ C_BLOCK_COMMENT_MODE: ft,
1279
+ HASH_COMMENT_MODE: gt,
1280
+ NUMBER_MODE: ht,
1281
+ C_NUMBER_MODE: dt,
1282
+ BINARY_NUMBER_MODE: pt,
1283
+ REGEXP_MODE: bt,
1284
+ TITLE_MODE: _t,
1285
+ UNDERSCORE_TITLE_MODE: Et,
1286
+ METHOD_GUARD: vt,
1287
+ END_SAME_AS_BEGIN: mt
1288
1288
  });
1289
- function Et(e, t) {
1289
+ function wt(e, t) {
1290
1290
  e.input[e.index - 1] === "." && t.ignoreMatch();
1291
1291
  }
1292
- function vt(e, t) {
1292
+ function yt(e, t) {
1293
1293
  e.className !== void 0 && (e.scope = e.className, delete e.className);
1294
1294
  }
1295
- function mt(e, t) {
1296
- t && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = Et, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
1295
+ function Nt(e, t) {
1296
+ t && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = wt, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
1297
1297
  }
1298
- function wt(e, t) {
1298
+ function Mt(e, t) {
1299
1299
  Array.isArray(e.illegal) && (e.illegal = Qe(...e.illegal));
1300
1300
  }
1301
- function yt(e, t) {
1301
+ function At(e, t) {
1302
1302
  if (e.match) {
1303
1303
  if (e.begin || e.end)
1304
1304
  throw new Error("begin & end are not supported with match");
1305
1305
  e.begin = e.match, delete e.match;
1306
1306
  }
1307
1307
  }
1308
- function Nt(e, t) {
1308
+ function Tt(e, t) {
1309
1309
  e.relevance === void 0 && (e.relevance = 1);
1310
1310
  }
1311
- const Mt = (e, t) => {
1311
+ const Dt = (e, t) => {
1312
1312
  if (!e.beforeMatch)
1313
1313
  return;
1314
1314
  if (e.starts)
@@ -1316,13 +1316,13 @@ const Mt = (e, t) => {
1316
1316
  const l = Object.assign({}, e);
1317
1317
  Object.keys(e).forEach((u) => {
1318
1318
  delete e[u];
1319
- }), e.keywords = l.keywords, e.begin = ce(l.beforeMatch, hn(l.begin)), e.starts = {
1319
+ }), e.keywords = l.keywords, e.begin = ce(l.beforeMatch, dn(l.begin)), e.starts = {
1320
1320
  relevance: 0,
1321
1321
  contains: [
1322
1322
  Object.assign(l, { endsParent: !0 })
1323
1323
  ]
1324
1324
  }, e.relevance = 0, delete l.beforeMatch;
1325
- }, At = [
1325
+ }, St = [
1326
1326
  "of",
1327
1327
  "and",
1328
1328
  "for",
@@ -1337,27 +1337,27 @@ const Mt = (e, t) => {
1337
1337
  // common variable name
1338
1338
  "value"
1339
1339
  // common variable name
1340
- ], Tt = "keyword";
1341
- function vn(e, t, l = Tt) {
1340
+ ], Rt = "keyword";
1341
+ function mn(e, t, l = Rt) {
1342
1342
  const u = /* @__PURE__ */ Object.create(null);
1343
1343
  return typeof e == "string" ? h(l, e.split(" ")) : Array.isArray(e) ? h(l, e) : Object.keys(e).forEach(function(n) {
1344
1344
  Object.assign(
1345
1345
  u,
1346
- vn(e[n], t, n)
1346
+ mn(e[n], t, n)
1347
1347
  );
1348
1348
  }), u;
1349
1349
  function h(n, r) {
1350
1350
  t && (r = r.map((i) => i.toLowerCase())), r.forEach(function(i) {
1351
1351
  const s = i.split("|");
1352
- u[s[0]] = [n, Dt(s[0], s[1])];
1352
+ u[s[0]] = [n, Lt(s[0], s[1])];
1353
1353
  });
1354
1354
  }
1355
1355
  }
1356
- function Dt(e, t) {
1357
- return t ? Number(t) : St(e) ? 0 : 1;
1356
+ function Lt(e, t) {
1357
+ return t ? Number(t) : Ot(e) ? 0 : 1;
1358
1358
  }
1359
- function St(e) {
1360
- return At.includes(e.toLowerCase());
1359
+ function Ot(e) {
1360
+ return St.includes(e.toLowerCase());
1361
1361
  }
1362
1362
  const sn = {}, le = (e) => {
1363
1363
  console.error(e);
@@ -1366,38 +1366,38 @@ const sn = {}, le = (e) => {
1366
1366
  }, ue = (e, t) => {
1367
1367
  sn[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), sn[`${e}/${t}`] = !0);
1368
1368
  }, Ce = new Error();
1369
- function mn(e, t, { key: l }) {
1369
+ function wn(e, t, { key: l }) {
1370
1370
  let u = 0;
1371
1371
  const h = e[l], n = {}, r = {};
1372
1372
  for (let i = 1; i <= t.length; i++)
1373
- r[i + u] = h[i], n[i + u] = !0, u += dn(t[i - 1]);
1373
+ r[i + u] = h[i], n[i + u] = !0, u += pn(t[i - 1]);
1374
1374
  e[l] = r, e[l]._emit = n, e[l]._multi = !0;
1375
1375
  }
1376
- function Rt(e) {
1376
+ function Ct(e) {
1377
1377
  if (Array.isArray(e.begin)) {
1378
1378
  if (e.skip || e.excludeBegin || e.returnBegin)
1379
1379
  throw le("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Ce;
1380
1380
  if (typeof e.beginScope != "object" || e.beginScope === null)
1381
1381
  throw le("beginScope must be object"), Ce;
1382
- mn(e, e.begin, { key: "beginScope" }), e.begin = Ze(e.begin, { joinWith: "" });
1382
+ wn(e, e.begin, { key: "beginScope" }), e.begin = Ze(e.begin, { joinWith: "" });
1383
1383
  }
1384
1384
  }
1385
- function Ot(e) {
1385
+ function It(e) {
1386
1386
  if (Array.isArray(e.end)) {
1387
1387
  if (e.skip || e.excludeEnd || e.returnEnd)
1388
1388
  throw le("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Ce;
1389
1389
  if (typeof e.endScope != "object" || e.endScope === null)
1390
1390
  throw le("endScope must be object"), Ce;
1391
- mn(e, e.end, { key: "endScope" }), e.end = Ze(e.end, { joinWith: "" });
1391
+ wn(e, e.end, { key: "endScope" }), e.end = Ze(e.end, { joinWith: "" });
1392
1392
  }
1393
1393
  }
1394
- function Lt(e) {
1394
+ function kt(e) {
1395
1395
  e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
1396
1396
  }
1397
- function Ct(e) {
1398
- Lt(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), Rt(e), Ot(e);
1397
+ function Bt(e) {
1398
+ kt(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), Ct(e), It(e);
1399
1399
  }
1400
- function It(e) {
1400
+ function $t(e) {
1401
1401
  function t(r, i) {
1402
1402
  return new RegExp(
1403
1403
  Ee(r),
@@ -1410,7 +1410,7 @@ function It(e) {
1410
1410
  }
1411
1411
  // @ts-ignore
1412
1412
  addRule(i, s) {
1413
- s.position = this.position++, this.matchIndexes[this.matchAt] = s, this.regexes.push([s, i]), this.matchAt += dn(i) + 1;
1413
+ s.position = this.position++, this.matchIndexes[this.matchAt] = s, this.regexes.push([s, i]), this.matchAt += pn(i) + 1;
1414
1414
  }
1415
1415
  compile() {
1416
1416
  this.regexes.length === 0 && (this.exec = () => null);
@@ -1472,26 +1472,26 @@ function It(e) {
1472
1472
  if (r.isCompiled)
1473
1473
  return s;
1474
1474
  [
1475
- vt,
1475
+ yt,
1476
1476
  // do this early so compiler extensions generally don't have to worry about
1477
1477
  // the distinction between match/begin
1478
- yt,
1479
- Ct,
1480
- Mt
1478
+ At,
1479
+ Bt,
1480
+ Dt
1481
1481
  ].forEach((o) => o(r, i)), e.compilerExtensions.forEach((o) => o(r, i)), r.__beforeBegin = null, [
1482
- mt,
1482
+ Nt,
1483
1483
  // do this later so compiler extensions that come earlier have access to the
1484
1484
  // raw array if they wanted to perhaps manipulate it, etc.
1485
- wt,
1485
+ Mt,
1486
1486
  // default to 1 relevance if not specified
1487
- Nt
1487
+ Tt
1488
1488
  ].forEach((o) => o(r, i)), r.isCompiled = !0;
1489
1489
  let a = null;
1490
- return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), a = r.keywords.$pattern, delete r.keywords.$pattern), a = a || /\w+/, r.keywords && (r.keywords = vn(r.keywords, e.case_insensitive)), s.keywordPatternRe = t(a, !0), i && (r.begin || (r.begin = /\B|\b/), s.beginRe = t(s.begin), !r.end && !r.endsWithParent && (r.end = /\B|\b/), r.end && (s.endRe = t(s.end)), s.terminatorEnd = Ee(s.end) || "", r.endsWithParent && i.terminatorEnd && (s.terminatorEnd += (r.end ? "|" : "") + i.terminatorEnd)), r.illegal && (s.illegalRe = t(
1490
+ return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), a = r.keywords.$pattern, delete r.keywords.$pattern), a = a || /\w+/, r.keywords && (r.keywords = mn(r.keywords, e.case_insensitive)), s.keywordPatternRe = t(a, !0), i && (r.begin || (r.begin = /\B|\b/), s.beginRe = t(s.begin), !r.end && !r.endsWithParent && (r.end = /\B|\b/), r.end && (s.endRe = t(s.end)), s.terminatorEnd = Ee(s.end) || "", r.endsWithParent && i.terminatorEnd && (s.terminatorEnd += (r.end ? "|" : "") + i.terminatorEnd)), r.illegal && (s.illegalRe = t(
1491
1491
  /** @type {RegExp | string} */
1492
1492
  r.illegal
1493
1493
  )), r.contains || (r.contains = []), r.contains = [].concat(...r.contains.map(function(o) {
1494
- return kt(o === "self" ? r : o);
1494
+ return Ut(o === "self" ? r : o);
1495
1495
  })), r.contains.forEach(function(o) {
1496
1496
  n(
1497
1497
  /** @type Mode */
@@ -1507,21 +1507,21 @@ function It(e) {
1507
1507
  e
1508
1508
  );
1509
1509
  }
1510
- function wn(e) {
1511
- return e ? e.endsWithParent || wn(e.starts) : !1;
1510
+ function yn(e) {
1511
+ return e ? e.endsWithParent || yn(e.starts) : !1;
1512
1512
  }
1513
- function kt(e) {
1513
+ function Ut(e) {
1514
1514
  return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(t) {
1515
1515
  return ae(e, { variants: null }, t);
1516
- })), e.cachedVariants ? e.cachedVariants : wn(e) ? ae(e, { starts: e.starts ? ae(e.starts) : null }) : Object.isFrozen(e) ? ae(e) : e;
1516
+ })), e.cachedVariants ? e.cachedVariants : yn(e) ? ae(e, { starts: e.starts ? ae(e.starts) : null }) : Object.isFrozen(e) ? ae(e) : e;
1517
1517
  }
1518
- var Bt = "11.7.0";
1519
- class $t extends Error {
1518
+ var Pt = "11.7.0";
1519
+ class xt extends Error {
1520
1520
  constructor(t, l) {
1521
1521
  super(t), this.name = "HTMLInjectionError", this.html = l;
1522
1522
  }
1523
1523
  }
1524
- const Pe = gn, on = ae, ln = Symbol("nomatch"), Ut = 7, Pt = function(e) {
1524
+ const Pe = hn, on = ae, ln = Symbol("nomatch"), Ht = 7, zt = function(e) {
1525
1525
  const t = /* @__PURE__ */ Object.create(null), l = /* @__PURE__ */ Object.create(null), u = [];
1526
1526
  let h = !0;
1527
1527
  const n = "Could not find the language '{}', did you forget to load/include a language module?", r = { disableAutodetect: !0, name: "Plain text", contains: [] };
@@ -1535,7 +1535,7 @@ const Pe = gn, on = ae, ln = Symbol("nomatch"), Ut = 7, Pt = function(e) {
1535
1535
  languages: null,
1536
1536
  // beta configuration options, subject to change, welcome to discuss
1537
1537
  // https://github.com/highlightjs/highlight.js/issues/1086
1538
- __emitter: Xn
1538
+ __emitter: Jn
1539
1539
  };
1540
1540
  function s(_) {
1541
1541
  return i.noHighlightRe.test(_);
@@ -1543,52 +1543,52 @@ const Pe = gn, on = ae, ln = Symbol("nomatch"), Ut = 7, Pt = function(e) {
1543
1543
  function a(_) {
1544
1544
  let M = _.className + " ";
1545
1545
  M += _.parentNode ? _.parentNode.className : "";
1546
- const L = i.languageDetectRe.exec(M);
1547
- if (L) {
1548
- const k = R(L[1]);
1549
- return k || (an(n.replace("{}", L[1])), an("Falling back to no-highlight mode for this block.", _)), k ? L[1] : "no-highlight";
1546
+ const O = i.languageDetectRe.exec(M);
1547
+ if (O) {
1548
+ const k = R(O[1]);
1549
+ return k || (an(n.replace("{}", O[1])), an("Falling back to no-highlight mode for this block.", _)), k ? O[1] : "no-highlight";
1550
1550
  }
1551
1551
  return M.split(/\s+/).find((k) => s(k) || R(k));
1552
1552
  }
1553
- function o(_, M, L) {
1553
+ function o(_, M, O) {
1554
1554
  let k = "", H = "";
1555
- typeof M == "object" ? (k = _, L = M.ignoreIllegals, H = M.language) : (ue("10.7.0", "highlight(lang, code, ...args) has been deprecated."), ue("10.7.0", `Please use highlight(code, options) instead.
1556
- https://github.com/highlightjs/highlight.js/issues/2277`), H = _, k = M), L === void 0 && (L = !0);
1555
+ typeof M == "object" ? (k = _, O = M.ignoreIllegals, H = M.language) : (ue("10.7.0", "highlight(lang, code, ...args) has been deprecated."), ue("10.7.0", `Please use highlight(code, options) instead.
1556
+ https://github.com/highlightjs/highlight.js/issues/2277`), H = _, k = M), O === void 0 && (O = !0);
1557
1557
  const Y = {
1558
1558
  code: k,
1559
1559
  language: H
1560
1560
  };
1561
1561
  Q("before:highlight", Y);
1562
- const q = Y.result ? Y.result : c(Y.language, Y.code, L);
1562
+ const q = Y.result ? Y.result : c(Y.language, Y.code, O);
1563
1563
  return q.code = Y.code, Q("after:highlight", q), q;
1564
1564
  }
1565
- function c(_, M, L, k) {
1565
+ function c(_, M, O, k) {
1566
1566
  const H = /* @__PURE__ */ Object.create(null);
1567
1567
  function Y(w, T) {
1568
1568
  return w.keywords[T];
1569
1569
  }
1570
1570
  function q() {
1571
- if (!O.keywords) {
1571
+ if (!L.keywords) {
1572
1572
  K.addText(x);
1573
1573
  return;
1574
1574
  }
1575
1575
  let w = 0;
1576
- O.keywordPatternRe.lastIndex = 0;
1577
- let T = O.keywordPatternRe.exec(x), C = "";
1576
+ L.keywordPatternRe.lastIndex = 0;
1577
+ let T = L.keywordPatternRe.exec(x), C = "";
1578
1578
  for (; T; ) {
1579
1579
  C += x.substring(w, T.index);
1580
- const B = se.case_insensitive ? T[0].toLowerCase() : T[0], Z = Y(O, B);
1580
+ const B = se.case_insensitive ? T[0].toLowerCase() : T[0], Z = Y(L, B);
1581
1581
  if (Z) {
1582
- const [ee, In] = Z;
1583
- if (K.addText(C), C = "", H[B] = (H[B] || 0) + 1, H[B] <= Ut && (Ae += In), ee.startsWith("_"))
1582
+ const [ee, kn] = Z;
1583
+ if (K.addText(C), C = "", H[B] = (H[B] || 0) + 1, H[B] <= Ht && (Ae += kn), ee.startsWith("_"))
1584
1584
  C += T[0];
1585
1585
  else {
1586
- const kn = se.classNameAliases[ee] || ee;
1587
- K.addKeyword(T[0], kn);
1586
+ const Bn = se.classNameAliases[ee] || ee;
1587
+ K.addKeyword(T[0], Bn);
1588
1588
  }
1589
1589
  } else
1590
1590
  C += T[0];
1591
- w = O.keywordPatternRe.lastIndex, T = O.keywordPatternRe.exec(x);
1591
+ w = L.keywordPatternRe.lastIndex, T = L.keywordPatternRe.exec(x);
1592
1592
  }
1593
1593
  C += x.substring(w), K.addText(C);
1594
1594
  }
@@ -1596,19 +1596,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = _, k = M), L ===
1596
1596
  if (x === "")
1597
1597
  return;
1598
1598
  let w = null;
1599
- if (typeof O.subLanguage == "string") {
1600
- if (!t[O.subLanguage]) {
1599
+ if (typeof L.subLanguage == "string") {
1600
+ if (!t[L.subLanguage]) {
1601
1601
  K.addText(x);
1602
1602
  return;
1603
1603
  }
1604
- w = c(O.subLanguage, x, !0, Je[O.subLanguage]), Je[O.subLanguage] = /** @type {CompiledMode} */
1604
+ w = c(L.subLanguage, x, !0, Je[L.subLanguage]), Je[L.subLanguage] = /** @type {CompiledMode} */
1605
1605
  w._top;
1606
1606
  } else
1607
- w = g(x, O.subLanguage.length ? O.subLanguage : null);
1608
- O.relevance > 0 && (Ae += w.relevance), K.addSublanguage(w._emitter, w.language);
1607
+ w = g(x, L.subLanguage.length ? L.subLanguage : null);
1608
+ L.relevance > 0 && (Ae += w.relevance), K.addSublanguage(w._emitter, w.language);
1609
1609
  }
1610
1610
  function X() {
1611
- O.subLanguage != null ? Ne() : q(), x = "";
1611
+ L.subLanguage != null ? Ne() : q(), x = "";
1612
1612
  }
1613
1613
  function ie(w, T) {
1614
1614
  let C = 1;
@@ -1623,10 +1623,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = _, k = M), L ===
1623
1623
  }
1624
1624
  }
1625
1625
  function Xe(w, T) {
1626
- return w.scope && typeof w.scope == "string" && K.openNode(se.classNameAliases[w.scope] || w.scope), w.beginScope && (w.beginScope._wrap ? (K.addKeyword(x, se.classNameAliases[w.beginScope._wrap] || w.beginScope._wrap), x = "") : w.beginScope._multi && (ie(w.beginScope, T), x = "")), O = Object.create(w, { parent: { value: O } }), O;
1626
+ return w.scope && typeof w.scope == "string" && K.openNode(se.classNameAliases[w.scope] || w.scope), w.beginScope && (w.beginScope._wrap ? (K.addKeyword(x, se.classNameAliases[w.beginScope._wrap] || w.beginScope._wrap), x = "") : w.beginScope._multi && (ie(w.beginScope, T), x = "")), L = Object.create(w, { parent: { value: L } }), L;
1627
1627
  }
1628
1628
  function Ve(w, T, C) {
1629
- let B = qn(w.endRe, C);
1629
+ let B = tt(w.endRe, C);
1630
1630
  if (B) {
1631
1631
  if (w["on:end"]) {
1632
1632
  const Z = new nn(w);
@@ -1641,30 +1641,30 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = _, k = M), L ===
1641
1641
  if (w.endsWithParent)
1642
1642
  return Ve(w.parent, T, C);
1643
1643
  }
1644
- function Sn(w) {
1645
- return O.matcher.regexIndex === 0 ? (x += w[0], 1) : (Ue = !0, 0);
1646
- }
1647
1644
  function Rn(w) {
1645
+ return L.matcher.regexIndex === 0 ? (x += w[0], 1) : (Ue = !0, 0);
1646
+ }
1647
+ function Ln(w) {
1648
1648
  const T = w[0], C = w.rule, B = new nn(C), Z = [C.__beforeBegin, C["on:begin"]];
1649
1649
  for (const ee of Z)
1650
1650
  if (ee && (ee(w, B), B.isMatchIgnored))
1651
- return Sn(T);
1651
+ return Rn(T);
1652
1652
  return C.skip ? x += T : (C.excludeBegin && (x += T), X(), !C.returnBegin && !C.excludeBegin && (x = T)), Xe(C, w), C.returnBegin ? 0 : T.length;
1653
1653
  }
1654
1654
  function On(w) {
1655
- const T = w[0], C = M.substring(w.index), B = Ve(O, w, C);
1655
+ const T = w[0], C = M.substring(w.index), B = Ve(L, w, C);
1656
1656
  if (!B)
1657
1657
  return ln;
1658
- const Z = O;
1659
- O.endScope && O.endScope._wrap ? (X(), K.addKeyword(T, O.endScope._wrap)) : O.endScope && O.endScope._multi ? (X(), ie(O.endScope, w)) : Z.skip ? x += T : (Z.returnEnd || Z.excludeEnd || (x += T), X(), Z.excludeEnd && (x = T));
1658
+ const Z = L;
1659
+ L.endScope && L.endScope._wrap ? (X(), K.addKeyword(T, L.endScope._wrap)) : L.endScope && L.endScope._multi ? (X(), ie(L.endScope, w)) : Z.skip ? x += T : (Z.returnEnd || Z.excludeEnd || (x += T), X(), Z.excludeEnd && (x = T));
1660
1660
  do
1661
- O.scope && K.closeNode(), !O.skip && !O.subLanguage && (Ae += O.relevance), O = O.parent;
1662
- while (O !== B.parent);
1661
+ L.scope && K.closeNode(), !L.skip && !L.subLanguage && (Ae += L.relevance), L = L.parent;
1662
+ while (L !== B.parent);
1663
1663
  return B.starts && Xe(B.starts, w), Z.returnEnd ? 0 : T.length;
1664
1664
  }
1665
- function Ln() {
1665
+ function Cn() {
1666
1666
  const w = [];
1667
- for (let T = O; T !== se; T = T.parent)
1667
+ for (let T = L; T !== se; T = T.parent)
1668
1668
  T.scope && w.unshift(T.scope);
1669
1669
  w.forEach((T) => K.openNode(T));
1670
1670
  }
@@ -1681,10 +1681,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = _, k = M), L ===
1681
1681
  return 1;
1682
1682
  }
1683
1683
  if (Me = T, T.type === "begin")
1684
- return Rn(T);
1685
- if (T.type === "illegal" && !L) {
1686
- const B = new Error('Illegal lexeme "' + C + '" for mode "' + (O.scope || "<unnamed>") + '"');
1687
- throw B.mode = O, B;
1684
+ return Ln(T);
1685
+ if (T.type === "illegal" && !O) {
1686
+ const B = new Error('Illegal lexeme "' + C + '" for mode "' + (L.scope || "<unnamed>") + '"');
1687
+ throw B.mode = L, B;
1688
1688
  } else if (T.type === "end") {
1689
1689
  const B = On(T);
1690
1690
  if (B !== ln)
@@ -1699,15 +1699,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = _, k = M), L ===
1699
1699
  const se = R(_);
1700
1700
  if (!se)
1701
1701
  throw le(n.replace("{}", _)), new Error('Unknown language: "' + _ + '"');
1702
- const Cn = It(se);
1703
- let Be = "", O = k || Cn;
1702
+ const In = $t(se);
1703
+ let Be = "", L = k || In;
1704
1704
  const Je = {}, K = new i.__emitter(i);
1705
- Ln();
1705
+ Cn();
1706
1706
  let x = "", Ae = 0, oe = 0, $e = 0, Ue = !1;
1707
1707
  try {
1708
- for (O.matcher.considerAll(); ; ) {
1709
- $e++, Ue ? Ue = !1 : O.matcher.considerAll(), O.matcher.lastIndex = oe;
1710
- const w = O.matcher.exec(M);
1708
+ for (L.matcher.considerAll(); ; ) {
1709
+ $e++, Ue ? Ue = !1 : L.matcher.considerAll(), L.matcher.lastIndex = oe;
1710
+ const w = L.matcher.exec(M);
1711
1711
  if (!w)
1712
1712
  break;
1713
1713
  const T = M.substring(oe, w.index), C = je(T, w);
@@ -1719,7 +1719,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = _, k = M), L ===
1719
1719
  relevance: Ae,
1720
1720
  illegal: !1,
1721
1721
  _emitter: K,
1722
- _top: O
1722
+ _top: L
1723
1723
  };
1724
1724
  } catch (w) {
1725
1725
  if (w.message && w.message.includes("Illegal"))
@@ -1745,7 +1745,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = _, k = M), L ===
1745
1745
  relevance: 0,
1746
1746
  errorRaised: w,
1747
1747
  _emitter: K,
1748
- _top: O
1748
+ _top: L
1749
1749
  };
1750
1750
  throw w;
1751
1751
  }
@@ -1762,10 +1762,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = _, k = M), L ===
1762
1762
  }
1763
1763
  function g(_, M) {
1764
1764
  M = M || i.languages || Object.keys(t);
1765
- const L = f(_), k = M.filter(R).filter(P).map(
1765
+ const O = f(_), k = M.filter(R).filter(U).map(
1766
1766
  (X) => c(X, _, !1)
1767
1767
  );
1768
- k.unshift(L);
1768
+ k.unshift(O);
1769
1769
  const H = k.sort((X, ie) => {
1770
1770
  if (X.relevance !== ie.relevance)
1771
1771
  return ie.relevance - X.relevance;
@@ -1779,26 +1779,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = _, k = M), L ===
1779
1779
  }), [Y, q] = H, Ne = Y;
1780
1780
  return Ne.secondBest = q, Ne;
1781
1781
  }
1782
- function p(_, M, L) {
1783
- const k = M && l[M] || L;
1782
+ function d(_, M, O) {
1783
+ const k = M && l[M] || O;
1784
1784
  _.classList.add("hljs"), _.classList.add(`language-${k}`);
1785
1785
  }
1786
- function d(_) {
1786
+ function p(_) {
1787
1787
  let M = null;
1788
- const L = a(_);
1789
- if (s(L))
1788
+ const O = a(_);
1789
+ if (s(O))
1790
1790
  return;
1791
1791
  if (Q(
1792
1792
  "before:highlightElement",
1793
- { el: _, language: L }
1793
+ { el: _, language: O }
1794
1794
  ), _.children.length > 0 && (i.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(_)), i.throwUnescapedHTML))
1795
- throw new $t(
1795
+ throw new xt(
1796
1796
  "One of your code blocks includes unescaped HTML.",
1797
1797
  _.innerHTML
1798
1798
  );
1799
1799
  M = _;
1800
- const k = M.textContent, H = L ? o(k, { language: L, ignoreIllegals: !0 }) : g(k);
1801
- _.innerHTML = H.value, p(_, L, H.language), _.result = {
1800
+ const k = M.textContent, H = O ? o(k, { language: O, ignoreIllegals: !0 }) : g(k);
1801
+ _.innerHTML = H.value, d(_, O, H.language), _.result = {
1802
1802
  language: H.language,
1803
1803
  // TODO: remove with version 11.0
1804
1804
  re: H.relevance,
@@ -1823,24 +1823,24 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = _, k = M), L ===
1823
1823
  y = !0;
1824
1824
  return;
1825
1825
  }
1826
- document.querySelectorAll(i.cssSelector).forEach(d);
1826
+ document.querySelectorAll(i.cssSelector).forEach(p);
1827
1827
  }
1828
1828
  function D() {
1829
1829
  y && m();
1830
1830
  }
1831
1831
  typeof window != "undefined" && window.addEventListener && window.addEventListener("DOMContentLoaded", D, !1);
1832
1832
  function S(_, M) {
1833
- let L = null;
1833
+ let O = null;
1834
1834
  try {
1835
- L = M(e);
1835
+ O = M(e);
1836
1836
  } catch (k) {
1837
1837
  if (le("Language definition for '{}' could not be registered.".replace("{}", _)), h)
1838
1838
  le(k);
1839
1839
  else
1840
1840
  throw k;
1841
- L = r;
1841
+ O = r;
1842
1842
  }
1843
- L.name || (L.name = _), t[_] = L, L.rawDefinition = M.bind(null, e), L.aliases && z(L.aliases, { languageName: _ });
1843
+ O.name || (O.name = _), t[_] = O, O.rawDefinition = M.bind(null, e), O.aliases && z(O.aliases, { languageName: _ });
1844
1844
  }
1845
1845
  function A(_) {
1846
1846
  delete t[_];
@@ -1854,11 +1854,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = _, k = M), L ===
1854
1854
  return _ = (_ || "").toLowerCase(), t[_] || t[l[_]];
1855
1855
  }
1856
1856
  function z(_, { languageName: M }) {
1857
- typeof _ == "string" && (_ = [_]), _.forEach((L) => {
1858
- l[L.toLowerCase()] = M;
1857
+ typeof _ == "string" && (_ = [_]), _.forEach((O) => {
1858
+ l[O.toLowerCase()] = M;
1859
1859
  });
1860
1860
  }
1861
- function P(_) {
1861
+ function U(_) {
1862
1862
  const M = R(_);
1863
1863
  return M && !M.disableAutodetect;
1864
1864
  }
@@ -1877,19 +1877,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = _, k = M), L ===
1877
1877
  $(_), u.push(_);
1878
1878
  }
1879
1879
  function Q(_, M) {
1880
- const L = _;
1880
+ const O = _;
1881
1881
  u.forEach(function(k) {
1882
- k[L] && k[L](M);
1882
+ k[O] && k[O](M);
1883
1883
  });
1884
1884
  }
1885
1885
  function ye(_) {
1886
- return ue("10.7.0", "highlightBlock will be removed entirely in v12.0"), ue("10.7.0", "Please use highlightElement now."), d(_);
1886
+ return ue("10.7.0", "highlightBlock will be removed entirely in v12.0"), ue("10.7.0", "Please use highlightElement now."), p(_);
1887
1887
  }
1888
1888
  Object.assign(e, {
1889
1889
  highlight: o,
1890
1890
  highlightAuto: g,
1891
1891
  highlightAll: m,
1892
- highlightElement: d,
1892
+ highlightElement: p,
1893
1893
  // TODO: Remove with v12 API
1894
1894
  highlightBlock: ye,
1895
1895
  configure: b,
@@ -1900,29 +1900,29 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = _, k = M), L ===
1900
1900
  listLanguages: I,
1901
1901
  getLanguage: R,
1902
1902
  registerAliases: z,
1903
- autoDetection: P,
1903
+ autoDetection: U,
1904
1904
  inherit: on,
1905
1905
  addPlugin: G
1906
1906
  }), e.debugMode = function() {
1907
1907
  h = !1;
1908
1908
  }, e.safeMode = function() {
1909
1909
  h = !0;
1910
- }, e.versionString = Bt, e.regex = {
1910
+ }, e.versionString = Pt, e.regex = {
1911
1911
  concat: ce,
1912
- lookahead: hn,
1912
+ lookahead: dn,
1913
1913
  either: Qe,
1914
- optional: jn,
1915
- anyNumberOfTimes: Vn
1914
+ optional: et,
1915
+ anyNumberOfTimes: qn
1916
1916
  };
1917
1917
  for (const _ in De)
1918
1918
  typeof De[_] == "object" && Ge.exports(De[_]);
1919
1919
  return Object.assign(e, De), e;
1920
1920
  };
1921
- var me = Pt({}), xt = me;
1921
+ var me = zt({}), Ft = me;
1922
1922
  me.HighlightJS = me;
1923
1923
  me.default = me;
1924
- const J = xt;
1925
- function Ht(e) {
1924
+ const J = Ft;
1925
+ function Gt(e) {
1926
1926
  const t = e.regex, l = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), u = /[\p{L}0-9._:-]+/u, h = {
1927
1927
  className: "symbol",
1928
1928
  begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
@@ -2138,7 +2138,7 @@ function Ht(e) {
2138
2138
  ]
2139
2139
  };
2140
2140
  }
2141
- const cn = "[A-Za-z$_][0-9A-Za-z$_]*", zt = [
2141
+ const cn = "[A-Za-z$_][0-9A-Za-z$_]*", Kt = [
2142
2142
  "as",
2143
2143
  // for exports
2144
2144
  "in",
@@ -2181,14 +2181,14 @@ const cn = "[A-Za-z$_][0-9A-Za-z$_]*", zt = [
2181
2181
  "from",
2182
2182
  "export",
2183
2183
  "extends"
2184
- ], Ft = [
2184
+ ], Wt = [
2185
2185
  "true",
2186
2186
  "false",
2187
2187
  "null",
2188
2188
  "undefined",
2189
2189
  "NaN",
2190
2190
  "Infinity"
2191
- ], yn = [
2191
+ ], Nn = [
2192
2192
  // Fundamental objects
2193
2193
  "Object",
2194
2194
  "Function",
@@ -2238,7 +2238,7 @@ const cn = "[A-Za-z$_][0-9A-Za-z$_]*", zt = [
2238
2238
  "Intl",
2239
2239
  // WebAssembly
2240
2240
  "WebAssembly"
2241
- ], Nn = [
2241
+ ], Mn = [
2242
2242
  "Error",
2243
2243
  "EvalError",
2244
2244
  "InternalError",
@@ -2247,7 +2247,7 @@ const cn = "[A-Za-z$_][0-9A-Za-z$_]*", zt = [
2247
2247
  "SyntaxError",
2248
2248
  "TypeError",
2249
2249
  "URIError"
2250
- ], Mn = [
2250
+ ], An = [
2251
2251
  "setInterval",
2252
2252
  "setTimeout",
2253
2253
  "clearInterval",
@@ -2265,7 +2265,7 @@ const cn = "[A-Za-z$_][0-9A-Za-z$_]*", zt = [
2265
2265
  "encodeURIComponent",
2266
2266
  "escape",
2267
2267
  "unescape"
2268
- ], Gt = [
2268
+ ], Qt = [
2269
2269
  "arguments",
2270
2270
  "this",
2271
2271
  "super",
@@ -2276,15 +2276,15 @@ const cn = "[A-Za-z$_][0-9A-Za-z$_]*", zt = [
2276
2276
  "module",
2277
2277
  "global"
2278
2278
  // Node.js
2279
- ], Kt = [].concat(
2280
- Mn,
2281
- yn,
2282
- Nn
2279
+ ], Zt = [].concat(
2280
+ An,
2281
+ Nn,
2282
+ Mn
2283
2283
  );
2284
- function Wt(e) {
2285
- const t = e.regex, l = (M, { after: L }) => {
2284
+ function Yt(e) {
2285
+ const t = e.regex, l = (M, { after: O }) => {
2286
2286
  const k = "</" + M[0].slice(1);
2287
- return M.input.indexOf(k, L) !== -1;
2287
+ return M.input.indexOf(k, O) !== -1;
2288
2288
  }, u = cn, h = {
2289
2289
  begin: "<>",
2290
2290
  end: "</>"
@@ -2295,7 +2295,7 @@ function Wt(e) {
2295
2295
  * @param {RegExpMatchArray} match
2296
2296
  * @param {CallbackResponse} response
2297
2297
  */
2298
- isTrulyOpeningTag: (M, L) => {
2298
+ isTrulyOpeningTag: (M, O) => {
2299
2299
  const k = M[0].length + M.index, H = M.input[k];
2300
2300
  if (
2301
2301
  // HTML should not include another raw `<` inside a tag
@@ -2305,27 +2305,27 @@ function Wt(e) {
2305
2305
  // `<T, A extends keyof T, V>`
2306
2306
  H === ","
2307
2307
  ) {
2308
- L.ignoreMatch();
2308
+ O.ignoreMatch();
2309
2309
  return;
2310
2310
  }
2311
- H === ">" && (l(M, { after: k }) || L.ignoreMatch());
2311
+ H === ">" && (l(M, { after: k }) || O.ignoreMatch());
2312
2312
  let Y;
2313
2313
  const q = M.input.substring(k);
2314
2314
  if (Y = q.match(/^\s*=/)) {
2315
- L.ignoreMatch();
2315
+ O.ignoreMatch();
2316
2316
  return;
2317
2317
  }
2318
2318
  if ((Y = q.match(/^\s+extends\s+/)) && Y.index === 0) {
2319
- L.ignoreMatch();
2319
+ O.ignoreMatch();
2320
2320
  return;
2321
2321
  }
2322
2322
  }
2323
2323
  }, i = {
2324
2324
  $pattern: cn,
2325
- keyword: zt,
2326
- literal: Ft,
2327
- built_in: Kt,
2328
- "variable.language": Gt
2325
+ keyword: Kt,
2326
+ literal: Wt,
2327
+ built_in: Zt,
2328
+ "variable.language": Qt
2329
2329
  }, s = "[0-9](_?[0-9])*", a = `\\.(${s})`, o = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", c = {
2330
2330
  className: "number",
2331
2331
  variants: [
@@ -2362,7 +2362,7 @@ function Wt(e) {
2362
2362
  ],
2363
2363
  subLanguage: "xml"
2364
2364
  }
2365
- }, p = {
2365
+ }, d = {
2366
2366
  begin: "css`",
2367
2367
  end: "",
2368
2368
  starts: {
@@ -2374,7 +2374,7 @@ function Wt(e) {
2374
2374
  ],
2375
2375
  subLanguage: "css"
2376
2376
  }
2377
- }, d = {
2377
+ }, p = {
2378
2378
  className: "string",
2379
2379
  begin: "`",
2380
2380
  end: "`",
@@ -2431,8 +2431,8 @@ function Wt(e) {
2431
2431
  e.APOS_STRING_MODE,
2432
2432
  e.QUOTE_STRING_MODE,
2433
2433
  g,
2434
- p,
2435
2434
  d,
2435
+ p,
2436
2436
  // Skip numbers when they are part of a variable name
2437
2437
  { match: /\$\d+/ },
2438
2438
  c
@@ -2519,8 +2519,8 @@ function Wt(e) {
2519
2519
  keywords: {
2520
2520
  _: [
2521
2521
  // se we still get relevance credit for JS library classes
2522
- ...yn,
2523
- ...Nn
2522
+ ...Nn,
2523
+ ...Mn
2524
2524
  ]
2525
2525
  }
2526
2526
  }, I = {
@@ -2558,14 +2558,14 @@ function Wt(e) {
2558
2558
  match: /\b[A-Z][A-Z_0-9]+\b/,
2559
2559
  className: "variable.constant"
2560
2560
  };
2561
- function P(M) {
2561
+ function U(M) {
2562
2562
  return t.concat("(?!", M.join("|"), ")");
2563
2563
  }
2564
2564
  const $ = {
2565
2565
  match: t.concat(
2566
2566
  /\b/,
2567
- P([
2568
- ...Mn,
2567
+ U([
2568
+ ...An,
2569
2569
  "super",
2570
2570
  "import"
2571
2571
  ]),
@@ -2638,8 +2638,8 @@ function Wt(e) {
2638
2638
  e.APOS_STRING_MODE,
2639
2639
  e.QUOTE_STRING_MODE,
2640
2640
  g,
2641
- p,
2642
2641
  d,
2642
+ p,
2643
2643
  E,
2644
2644
  // Skip numbers when they are part of a variable name
2645
2645
  { match: /\$\d+/ },
@@ -2774,7 +2774,7 @@ function Wt(e) {
2774
2774
  ]
2775
2775
  };
2776
2776
  }
2777
- function Qt(e) {
2777
+ function Xt(e) {
2778
2778
  const t = {
2779
2779
  className: "attr",
2780
2780
  begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
@@ -2808,7 +2808,7 @@ function Qt(e) {
2808
2808
  illegal: "\\S"
2809
2809
  };
2810
2810
  }
2811
- function Zt(e) {
2811
+ function Vt(e) {
2812
2812
  const t = "true false yes no null", l = "[\\w#;/?:@&=+$,.~*'()[\\]]+", u = {
2813
2813
  className: "attr",
2814
2814
  variants: [
@@ -2879,13 +2879,13 @@ function Zt(e) {
2879
2879
  contains: [f],
2880
2880
  illegal: "\\n",
2881
2881
  relevance: 0
2882
- }, p = {
2882
+ }, d = {
2883
2883
  begin: "\\[",
2884
2884
  end: "\\]",
2885
2885
  contains: [f],
2886
2886
  illegal: "\\n",
2887
2887
  relevance: 0
2888
- }, d = [
2888
+ }, p = [
2889
2889
  u,
2890
2890
  {
2891
2891
  className: "meta",
@@ -2962,17 +2962,17 @@ function Zt(e) {
2962
2962
  relevance: 0
2963
2963
  },
2964
2964
  g,
2965
- p,
2965
+ d,
2966
2966
  n
2967
- ], b = [...d];
2967
+ ], b = [...p];
2968
2968
  return b.pop(), b.push(r), f.contains = b, {
2969
2969
  name: "YAML",
2970
2970
  case_insensitive: !0,
2971
2971
  aliases: ["yml"],
2972
- contains: d
2972
+ contains: p
2973
2973
  };
2974
2974
  }
2975
- function Yt(e) {
2975
+ function jt(e) {
2976
2976
  return {
2977
2977
  name: "Plain text",
2978
2978
  aliases: [
@@ -2982,7 +2982,7 @@ function Yt(e) {
2982
2982
  disableAutodetect: !0
2983
2983
  };
2984
2984
  }
2985
- function Xt(e) {
2985
+ function Jt(e) {
2986
2986
  const t = e.regex, l = /[\p{XID_Start}_]\p{XID_Continue}*/u, u = [
2987
2987
  "and",
2988
2988
  "as",
@@ -3208,7 +3208,7 @@ function Xt(e) {
3208
3208
  e.APOS_STRING_MODE,
3209
3209
  e.QUOTE_STRING_MODE
3210
3210
  ]
3211
- }, f = "[0-9](_?[0-9])*", g = `(\\b(${f}))?\\.(${f})|\\b(${f})\\.`, p = `\\b|${u.join("|")}`, d = {
3211
+ }, f = "[0-9](_?[0-9])*", g = `(\\b(${f}))?\\.(${f})|\\b(${f})\\.`, d = `\\b|${u.join("|")}`, p = {
3212
3212
  className: "number",
3213
3213
  relevance: 0,
3214
3214
  variants: [
@@ -3223,7 +3223,7 @@ function Xt(e) {
3223
3223
  // because both MUST contain a decimal point and so cannot be confused with
3224
3224
  // the interior part of an identifier
3225
3225
  {
3226
- begin: `(\\b(${f})|(${g}))[eE][+-]?(${f})[jJ]?(?=${p})`
3226
+ begin: `(\\b(${f})|(${g}))[eE][+-]?(${f})[jJ]?(?=${d})`
3227
3227
  },
3228
3228
  {
3229
3229
  begin: `(${g})[jJ]?`
@@ -3235,21 +3235,21 @@ function Xt(e) {
3235
3235
  // decinteger is optionally imaginary
3236
3236
  // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
3237
3237
  {
3238
- begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${p})`
3238
+ begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${d})`
3239
3239
  },
3240
3240
  {
3241
- begin: `\\b0[bB](_?[01])+[lL]?(?=${p})`
3241
+ begin: `\\b0[bB](_?[01])+[lL]?(?=${d})`
3242
3242
  },
3243
3243
  {
3244
- begin: `\\b0[oO](_?[0-7])+[lL]?(?=${p})`
3244
+ begin: `\\b0[oO](_?[0-7])+[lL]?(?=${d})`
3245
3245
  },
3246
3246
  {
3247
- begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${p})`
3247
+ begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${d})`
3248
3248
  },
3249
3249
  // imagnumber (digitpart-based)
3250
3250
  // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
3251
3251
  {
3252
- begin: `\\b(${f})[jJ](?=${p})`
3252
+ begin: `\\b(${f})[jJ](?=${d})`
3253
3253
  }
3254
3254
  ]
3255
3255
  }, b = {
@@ -3287,7 +3287,7 @@ function Xt(e) {
3287
3287
  contains: [
3288
3288
  "self",
3289
3289
  s,
3290
- d,
3290
+ p,
3291
3291
  c,
3292
3292
  e.HASH_COMMENT_MODE
3293
3293
  ]
@@ -3296,7 +3296,7 @@ function Xt(e) {
3296
3296
  };
3297
3297
  return a.contains = [
3298
3298
  c,
3299
- d,
3299
+ p,
3300
3300
  s
3301
3301
  ], {
3302
3302
  name: "Python",
@@ -3310,7 +3310,7 @@ function Xt(e) {
3310
3310
  illegal: /(<\/|->|\?)|=>/,
3311
3311
  contains: [
3312
3312
  s,
3313
- d,
3313
+ p,
3314
3314
  {
3315
3315
  // very common convention
3316
3316
  begin: /\bself\b/
@@ -3368,7 +3368,7 @@ function Xt(e) {
3368
3368
  begin: /^[\t ]*@/,
3369
3369
  end: /(?=#)|$/,
3370
3370
  contains: [
3371
- d,
3371
+ p,
3372
3372
  E,
3373
3373
  c
3374
3374
  ]
@@ -3399,11 +3399,11 @@ var fe = "[0-9](_*[0-9])*", Se = `\\.(${fe})`, Re = "[0-9a-fA-F](_*[0-9a-fA-F])*
3399
3399
  ],
3400
3400
  relevance: 0
3401
3401
  };
3402
- function An(e, t, l) {
3403
- return l === -1 ? "" : e.replace(t, (u) => An(e, t, l - 1));
3402
+ function Tn(e, t, l) {
3403
+ return l === -1 ? "" : e.replace(t, (u) => Tn(e, t, l - 1));
3404
3404
  }
3405
- function Vt(e) {
3406
- const t = e.regex, l = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", u = l + An("(?:<" + l + "~~~(?:\\s*,\\s*" + l + "~~~)*>)?", /~~~/g, 2), s = {
3405
+ function qt(e) {
3406
+ const t = e.regex, l = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", u = l + Tn("(?:<" + l + "~~~(?:\\s*,\\s*" + l + "~~~)*>)?", /~~~/g, 2), s = {
3407
3407
  keyword: [
3408
3408
  "synchronized",
3409
3409
  "abstract",
@@ -3611,7 +3611,7 @@ function Vt(e) {
3611
3611
  ]
3612
3612
  };
3613
3613
  }
3614
- function jt(e) {
3614
+ function er(e) {
3615
3615
  const t = e.regex, l = {}, u = {
3616
3616
  begin: /\$\{/,
3617
3617
  end: /\}/,
@@ -3712,10 +3712,10 @@ function jt(e) {
3712
3712
  "case",
3713
3713
  "esac",
3714
3714
  "function"
3715
- ], p = [
3715
+ ], d = [
3716
3716
  "true",
3717
3717
  "false"
3718
- ], d = { match: /(\/[a-z._-]+)+/ }, b = [
3718
+ ], p = { match: /(\/[a-z._-]+)+/ }, b = [
3719
3719
  "break",
3720
3720
  "cd",
3721
3721
  "continue",
@@ -3936,7 +3936,7 @@ function jt(e) {
3936
3936
  keywords: {
3937
3937
  $pattern: /\b[a-z][a-z0-9._-]+\b/,
3938
3938
  keyword: g,
3939
- literal: p,
3939
+ literal: d,
3940
3940
  built_in: [
3941
3941
  ...b,
3942
3942
  ...E,
@@ -3956,7 +3956,7 @@ function jt(e) {
3956
3956
  a,
3957
3957
  e.HASH_COMMENT_MODE,
3958
3958
  n,
3959
- d,
3959
+ p,
3960
3960
  r,
3961
3961
  i,
3962
3962
  s,
@@ -3964,7 +3964,7 @@ function jt(e) {
3964
3964
  ]
3965
3965
  };
3966
3966
  }
3967
- function Jt(e) {
3967
+ function nr(e) {
3968
3968
  const t = e.regex, l = e.COMMENT("--", "$"), u = {
3969
3969
  className: "string",
3970
3970
  variants: [
@@ -4513,10 +4513,10 @@ function Jt(e) {
4513
4513
  "nulls last",
4514
4514
  "depth first",
4515
4515
  "breadth first"
4516
- ], g = o, p = [
4516
+ ], g = o, d = [
4517
4517
  ...a,
4518
4518
  ...s
4519
- ].filter((y) => !o.includes(y)), d = {
4519
+ ].filter((y) => !o.includes(y)), p = {
4520
4520
  className: "variable",
4521
4521
  begin: /@[a-z0-9]+/
4522
4522
  }, b = {
@@ -4542,7 +4542,7 @@ function Jt(e) {
4542
4542
  illegal: /[{}]|<\//,
4543
4543
  keywords: {
4544
4544
  $pattern: /\b[\w\.]+/,
4545
- keyword: v(p, { when: (y) => y.length < 3 }),
4545
+ keyword: v(d, { when: (y) => y.length < 3 }),
4546
4546
  literal: n,
4547
4547
  type: i,
4548
4548
  built_in: c
@@ -4553,7 +4553,7 @@ function Jt(e) {
4553
4553
  relevance: 0,
4554
4554
  keywords: {
4555
4555
  $pattern: /[\w\.]+/,
4556
- keyword: p.concat(f),
4556
+ keyword: d.concat(f),
4557
4557
  literal: n,
4558
4558
  type: i
4559
4559
  }
@@ -4563,7 +4563,7 @@ function Jt(e) {
4563
4563
  begin: t.either(...r)
4564
4564
  },
4565
4565
  E,
4566
- d,
4566
+ p,
4567
4567
  u,
4568
4568
  h,
4569
4569
  e.C_NUMBER_MODE,
@@ -4573,20 +4573,20 @@ function Jt(e) {
4573
4573
  ]
4574
4574
  };
4575
4575
  }
4576
- J.registerLanguage("xml", Ht);
4577
- J.registerLanguage("javascript", Wt);
4578
- J.registerLanguage("json", Qt);
4579
- J.registerLanguage("yaml", Zt);
4580
- J.registerLanguage("plaintext", Yt);
4581
- J.registerLanguage("python", Xt);
4582
- J.registerLanguage("java", Vt);
4583
- J.registerLanguage("bash", jt);
4584
- J.registerLanguage("sql", Jt);
4576
+ J.registerLanguage("xml", Gt);
4577
+ J.registerLanguage("javascript", Yt);
4578
+ J.registerLanguage("json", Xt);
4579
+ J.registerLanguage("yaml", Vt);
4580
+ J.registerLanguage("plaintext", jt);
4581
+ J.registerLanguage("python", Jt);
4582
+ J.registerLanguage("java", qt);
4583
+ J.registerLanguage("bash", er);
4584
+ J.registerLanguage("sql", nr);
4585
4585
  var N = /* @__PURE__ */ ((e) => (e.EQUAL = "equal", e.DELETE = "removed", e.ADD = "added", e.EMPTY = "empty", e))(N || {});
4586
- const ne = "<code-diff-modified>", te = "</code-diff-modified>", qt = ne.replace("<", "&lt;").replace(">", "&gt;"), er = te.replace("<", "&lt;").replace(">", "&gt;"), de = (e) => e === void 0 ? N.EQUAL : e.added ? N.ADD : e.removed ? N.DELETE : N.EQUAL, Ie = (e, t, l = "word") => typeof e == "undefined" ? t : typeof t == "undefined" ? e : (l === "char" ? xn : zn)(e, t).filter((h) => de(h) !== N.DELETE).map(
4586
+ const ne = "<code-diff-modified>", te = "</code-diff-modified>", tr = ne.replace("<", "&lt;").replace(">", "&gt;"), rr = te.replace("<", "&lt;").replace(">", "&gt;"), de = (e) => e === void 0 ? N.EQUAL : e.added ? N.ADD : e.removed ? N.DELETE : N.EQUAL, Ie = (e, t, l = "word") => typeof e == "undefined" ? t : typeof t == "undefined" ? e : (l === "char" ? Fn : Kn)(e, t).filter((h) => de(h) !== N.DELETE).map(
4587
4587
  (h) => de(h) === N.ADD ? `${ne}${h.value}${te}` : h.value
4588
4588
  ).join("");
4589
- function Tn(e, t) {
4589
+ function Dn(e, t) {
4590
4590
  const l = new be.diff_match_patch(), u = l.diff_linesToChars_(e, t), h = u.chars1, n = u.chars2, r = u.lineArray, i = l.diff_main(h, n, !1);
4591
4591
  return l.diff_charsToLines_(i, r), i.map((s) => {
4592
4592
  const [a, o] = s;
@@ -4621,16 +4621,16 @@ const j = (e, t) => {
4621
4621
  u = u.slice(te.length), c = c + te, r = !1;
4622
4622
  continue;
4623
4623
  }
4624
- const f = u.match(new RegExp(`(${ne}|${te})`)), g = f && f.index ? f.index : u.length, p = Math.min(g, o.length);
4625
- c = c + u.substring(0, p), u = u.slice(p), o = o.slice(p);
4624
+ const f = u.match(new RegExp(`(${ne}|${te})`)), g = f && f.index ? f.index : u.length, d = Math.min(g, o.length);
4625
+ c = c + u.substring(0, d), u = u.slice(d), o = o.slice(d);
4626
4626
  }
4627
4627
  r && (c = c + te), a.textContent = c;
4628
4628
  }
4629
4629
  });
4630
4630
  };
4631
- return i(n), n.innerHTML.replace(new RegExp(qt, "g"), '<span class="x">').replace(new RegExp(er, "g"), "</span>");
4631
+ return i(n), n.innerHTML.replace(new RegExp(tr, "g"), '<span class="x">').replace(new RegExp(rr, "g"), "</span>");
4632
4632
  };
4633
- function Dn(e) {
4633
+ function Sn(e) {
4634
4634
  const t = (h, n) => (h.match(new RegExp(n, "g")) || []).length;
4635
4635
  let l = 0, u = 0;
4636
4636
  for (const h of e)
@@ -4639,20 +4639,20 @@ function Dn(e) {
4639
4639
  `) + 1);
4640
4640
  return { additionsNum: l, deletionsNum: u };
4641
4641
  }
4642
- function nr(e, t, l = "plaintext", u = "word", h = 10) {
4643
- var p;
4644
- const n = () => ({ type: N.EMPTY }), r = (d, b, E) => ({ type: d, num: b, code: E }), i = Tn(e, t);
4642
+ function ir(e, t, l = "plaintext", u = "word", h = 10) {
4643
+ const n = () => ({ type: N.EMPTY }), r = (p, b, E) => ({ type: p, num: b, code: E }), i = Dn(e, t);
4645
4644
  let s = 0, a = 0, o = !1;
4646
4645
  const c = [], f = {
4647
4646
  changes: c,
4648
- stat: Dn(i)
4647
+ collector: [],
4648
+ stat: Sn(i)
4649
4649
  };
4650
- for (let d = 0; d < i.length; d++) {
4650
+ for (let p = 0; p < i.length; p++) {
4651
4651
  if (o) {
4652
4652
  o = !1;
4653
4653
  continue;
4654
4654
  }
4655
- const [b, E] = [i[d], i[d + 1]], [v, y] = [de(b), de(E)], m = b.value.replace(/\n$/, "").split(`
4655
+ const [b, E] = [i[p], i[p + 1]], [v, y] = [de(b), de(E)], m = b.value.replace(/\n$/, "").split(`
4656
4656
  `);
4657
4657
  if (E === void 0) {
4658
4658
  for (const S of m) {
@@ -4685,7 +4685,7 @@ function nr(e, t, l = "plaintext", u = "word", h = 10) {
4685
4685
  const S = Math.max(b.count, E.count);
4686
4686
  for (let A = 0; A < S; A++) {
4687
4687
  A < b.count && s++, A < E.count && a++;
4688
- const [I, R] = [m[A], D[A]], z = m.length === D.length ? Ie(R, I, u) : I, P = m.length === D.length ? Ie(I, R, u) : R, $ = A < b.count ? r(N.DELETE, s, j(l, z)) : n(), G = A < E.count ? r(N.ADD, a, j(l, P)) : n();
4688
+ const [I, R] = [m[A], D[A]], z = m.length === D.length ? Ie(R, I, u) : I, U = m.length === D.length ? Ie(I, R, u) : R, $ = A < b.count ? r(N.DELETE, s, j(l, z)) : n(), G = A < E.count ? r(N.ADD, a, j(l, U)) : n();
4689
4689
  c.push({ left: $, right: G });
4690
4690
  }
4691
4691
  }
@@ -4698,46 +4698,53 @@ function nr(e, t, l = "plaintext", u = "word", h = 10) {
4698
4698
  });
4699
4699
  }
4700
4700
  if (e === t) {
4701
- for (let d = 0; d < c.length; d++)
4702
- c[d].fold = !1;
4701
+ for (let p = 0; p < c.length; p++)
4702
+ c[p].fold = !1;
4703
4703
  return f;
4704
4704
  }
4705
- for (let d = 0; d < c.length; d++) {
4706
- const b = c[d];
4705
+ for (let p = 0; p < c.length; p++) {
4706
+ const b = c[p];
4707
4707
  if (b.left.type === N.DELETE || b.right.type === N.ADD) {
4708
- const [E, v] = [Math.max(d - h, 0), Math.min(d + h + 1, c.length)];
4708
+ const [E, v] = [Math.max(p - h, 0), Math.min(p + h + 1, c.length)];
4709
4709
  for (let y = E; y < v; y++)
4710
4710
  c[y].fold = !1;
4711
4711
  }
4712
4712
  b.fold === void 0 && (b.fold = !0);
4713
4713
  }
4714
4714
  const g = [];
4715
- for (let d = 0; d < c.length; d++) {
4716
- const b = c[d];
4715
+ let d = [];
4716
+ for (let p = 0; p < c.length; p++) {
4717
+ const b = c[p];
4717
4718
  if (b.fold === !1) {
4718
- g.push(b);
4719
+ d.length && (d[0].hideIndex = f.collector.length, f.collector.push({
4720
+ lines: d,
4721
+ fold: !0
4722
+ }), d = []), g.push(b);
4719
4723
  continue;
4720
4724
  }
4721
- b.fold === !0 && ((p = g[g.length - 1]) == null ? void 0 : p.fold) !== !0 && g.push(b);
4725
+ b.hide = !0, d.push(b), g.push(b);
4722
4726
  }
4723
- return f.changes = g, f;
4727
+ return d.length && (d[0].hideIndex = f.collector.length, f.collector.push({
4728
+ lines: d,
4729
+ fold: !0
4730
+ }), d = []), f.changes = g, f;
4724
4731
  }
4725
- function tr(e, t, l = "plaintext", u = "word", h = 10) {
4726
- var f;
4727
- const n = Tn(e, t);
4732
+ function sr(e, t, l = "plaintext", u = "word", h = 10) {
4733
+ const n = Dn(e, t);
4728
4734
  let r = 0, i = 0, s = !1;
4729
4735
  const a = [], o = {
4730
4736
  changes: a,
4731
- stat: Dn(n)
4737
+ collector: [],
4738
+ stat: Sn(n)
4732
4739
  };
4733
4740
  for (let g = 0; g < n.length; g++) {
4734
4741
  if (s) {
4735
4742
  s = !1;
4736
4743
  continue;
4737
4744
  }
4738
- const [p, d] = [n[g], n[g + 1]], [b, E] = [de(p), de(d)], v = p.value.replace(/\n$/, "").split(`
4745
+ const [d, p] = [n[g], n[g + 1]], [b, E] = [de(d), de(p)], v = d.value.replace(/\n$/, "").split(`
4739
4746
  `);
4740
- if (d === void 0) {
4747
+ if (p === void 0) {
4741
4748
  for (const m of v) {
4742
4749
  b === N.EQUAL && (r++, i++), b === N.DELETE && r++, b === N.ADD && i++;
4743
4750
  const D = j(l, m);
@@ -4756,7 +4763,7 @@ function tr(e, t, l = "plaintext", u = "word", h = 10) {
4756
4763
  const D = j(l, m);
4757
4764
  a.push({ type: N.EQUAL, code: D, delNum: r, addNum: i });
4758
4765
  }
4759
- const y = d.value.replace(/\n$/, "").split(`
4766
+ const y = p.value.replace(/\n$/, "").split(`
4760
4767
  `);
4761
4768
  if (b === N.DELETE)
4762
4769
  if (E === N.ADD && v.length === y.length) {
@@ -4787,13 +4794,13 @@ function tr(e, t, l = "plaintext", u = "word", h = 10) {
4787
4794
  }
4788
4795
  }
4789
4796
  for (let g = 0; g < a.length; g++) {
4790
- const p = a[g];
4791
- if (p.type === N.DELETE || p.type === N.ADD) {
4792
- const [d, b] = [Math.max(g - h, 0), Math.min(g + h + 1, a.length)];
4793
- for (let E = d; E < b; E++)
4797
+ const d = a[g];
4798
+ if (d.type === N.DELETE || d.type === N.ADD) {
4799
+ const [p, b] = [Math.max(g - h, 0), Math.min(g + h + 1, a.length)];
4800
+ for (let E = p; E < b; E++)
4794
4801
  a[E].fold = !1;
4795
4802
  }
4796
- p.fold === void 0 && (p.fold = !0);
4803
+ d.fold === void 0 && (d.fold = !0);
4797
4804
  }
4798
4805
  if (e === t) {
4799
4806
  for (let g = 0; g < a.length; g++)
@@ -4801,55 +4808,69 @@ function tr(e, t, l = "plaintext", u = "word", h = 10) {
4801
4808
  return o;
4802
4809
  }
4803
4810
  const c = [];
4811
+ let f = [];
4804
4812
  for (let g = 0; g < a.length; g++) {
4805
- const p = a[g];
4806
- if (p.fold === !1) {
4807
- c.push(p);
4813
+ const d = a[g];
4814
+ if (d.fold === !1) {
4815
+ f.length && (f[0].hideIndex = o.collector.length, o.collector.push({
4816
+ lines: f,
4817
+ fold: !0
4818
+ }), f = []), c.push(d);
4808
4819
  continue;
4809
4820
  }
4810
- p.fold === !0 && (g === 0 || ((f = c[c.length - 1]) == null ? void 0 : f.fold) !== !0) && c.push(p);
4821
+ d.type === "equal" && (d.hide = !0, f.push(d)), c.push(d);
4811
4822
  }
4812
- return o.changes = c, o;
4823
+ return f.length && (f[0].hideIndex = o.collector.length, o.collector.push({
4824
+ lines: f,
4825
+ fold: !0
4826
+ }), f = []), o.changes = c, o;
4813
4827
  }
4814
- const rr = { key: 0 }, ir = /* @__PURE__ */ U("td", { class: "blob-num blob-num-hunk" }, " > ", -1), sr = /* @__PURE__ */ U("td", { class: "blob-num blob-num-hunk" }, " > ", -1), ar = /* @__PURE__ */ U("td", {
4828
+ const ar = { key: 0 }, or = /* @__PURE__ */ P("td", {
4815
4829
  class: "blob-code blob-code-hunk",
4816
4830
  align: "left"
4817
- }, " ⋯ ", -1), or = [
4818
- ir,
4819
- sr,
4820
- ar
4821
- ], lr = { key: 1 }, cr = ["data-code-marker", "innerHTML"], ur = /* @__PURE__ */ we({
4831
+ }, " ⋯ ", -1), lr = { key: 1 }, cr = ["data-code-marker", "innerHTML"], ur = /* @__PURE__ */ we({
4822
4832
  __name: "UnifiedLine",
4823
4833
  props: {
4824
4834
  line: null
4825
4835
  },
4826
- setup(e) {
4827
- const t = (l) => l === N.DELETE ? "-" : l === N.ADD ? "+" : "";
4828
- return (l, u) => e.line.fold ? (W(), V("tr", rr, or)) : (W(), V("tr", lr, [
4829
- U("td", {
4836
+ emits: ["expand"],
4837
+ setup(e, { emit: t }) {
4838
+ const l = (u) => u === N.DELETE ? "-" : u === N.ADD ? "+" : "";
4839
+ return (u, h) => e.line.hideIndex !== void 0 && e.line.hide ? (W(), V("tr", ar, [
4840
+ P("td", {
4841
+ class: "blob-num blob-num-hunk text-center",
4842
+ colspan: "2",
4843
+ onClick: h[0] || (h[0] = (n) => t("expand", e.line))
4844
+ }, " > "),
4845
+ or
4846
+ ])) : e.line.hide ? fn("", !0) : (W(), V("tr", lr, [
4847
+ P("td", {
4830
4848
  class: pe(["blob-num", {
4831
4849
  "blob-num-deletion": e.line.type === F(N).DELETE,
4832
4850
  "blob-num-addition": e.line.type === F(N).ADD,
4833
- "blob-num-context": e.line.type === F(N).EQUAL
4851
+ "blob-num-context": e.line.type === F(N).EQUAL,
4852
+ "blob-num-hunk": e.line.hide !== void 0
4834
4853
  }])
4835
4854
  }, he(e.line.delNum), 3),
4836
- U("td", {
4855
+ P("td", {
4837
4856
  class: pe(["blob-num", {
4838
4857
  "blob-num-deletion": e.line.type === F(N).DELETE,
4839
4858
  "blob-num-addition": e.line.type === F(N).ADD,
4840
- "blob-num-context": e.line.type === F(N).EQUAL
4859
+ "blob-num-context": e.line.type === F(N).EQUAL,
4860
+ "blob-num-hunk": e.line.hide !== void 0
4841
4861
  }])
4842
4862
  }, he(e.line.addNum), 3),
4843
- U("td", {
4863
+ P("td", {
4844
4864
  class: pe(["blob-code", {
4845
4865
  "blob-code-deletion": e.line.type === F(N).DELETE,
4846
4866
  "blob-code-addition": e.line.type === F(N).ADD,
4847
- "blob-code-context": e.line.type === F(N).EQUAL
4867
+ "blob-code-context": e.line.type === F(N).EQUAL,
4868
+ "blob-code-hunk": e.line.hide !== void 0
4848
4869
  }])
4849
4870
  }, [
4850
- U("span", {
4871
+ P("span", {
4851
4872
  class: "blob-code-inner blob-code-marker",
4852
- "data-code-marker": t(e.line.type),
4873
+ "data-code-marker": l(e.line.type),
4853
4874
  innerHTML: e.line.code
4854
4875
  }, null, 8, cr)
4855
4876
  ], 2)
@@ -4861,88 +4882,112 @@ const rr = { key: 0 }, ir = /* @__PURE__ */ U("td", { class: "blob-num blob-num-
4861
4882
  diffChange: null
4862
4883
  },
4863
4884
  setup(e) {
4864
- return (t, l) => (W(), V("table", fr, [
4865
- U("tbody", null, [
4866
- (W(!0), V(ge, null, ze(e.diffChange, (u, h) => (W(), Le(ur, {
4867
- key: h,
4868
- line: u
4869
- }, null, 8, ["line"]))), 128))
4870
- ])
4871
- ]));
4885
+ const t = e;
4886
+ function l({ hideIndex: u }) {
4887
+ u !== void 0 && t.diffChange.collector[u].lines.forEach((h) => {
4888
+ h.hide = !1, h.fold = !1;
4889
+ });
4890
+ }
4891
+ return (u, h) => {
4892
+ var n;
4893
+ return W(), V("table", fr, [
4894
+ P("tbody", null, [
4895
+ (W(!0), V(ge, null, ze((n = e.diffChange) == null ? void 0 : n.changes, (r, i) => (W(), Oe(ur, {
4896
+ key: i,
4897
+ line: r,
4898
+ onExpand: l
4899
+ }, null, 8, ["line"]))), 128))
4900
+ ])
4901
+ ]);
4902
+ };
4872
4903
  }
4873
- }), hr = { key: 0 }, dr = /* @__PURE__ */ U("td", {
4874
- class: "blob-num blob-num-hunk",
4875
- colspan: "1"
4876
- }, " > ", -1), pr = /* @__PURE__ */ U("td", {
4904
+ }), hr = { key: 0 }, dr = /* @__PURE__ */ P("td", {
4877
4905
  class: "blob-code blob-code-inner blob-code-hunk",
4878
4906
  colspan: "3",
4879
4907
  align: "left"
4880
- }, " ⋯ ", -1), br = [
4881
- dr,
4882
- pr
4883
- ], _r = { key: 1 }, Er = /* @__PURE__ */ U("td", { class: "blob-num blob-num-empty empty-cell" }, null, -1), vr = /* @__PURE__ */ U("td", { class: "blob-code blob-code-empty empty-cell" }, null, -1), mr = ["data-code-marker", "innerHTML"], wr = /* @__PURE__ */ we({
4908
+ }, " ⋯ ", -1), pr = { key: 1 }, br = /* @__PURE__ */ P("td", { class: "blob-num blob-num-empty empty-cell" }, null, -1), _r = /* @__PURE__ */ P("td", { class: "blob-code blob-code-empty empty-cell" }, null, -1), Er = ["data-code-marker", "innerHTML"], vr = /* @__PURE__ */ we({
4884
4909
  __name: "SplitLine",
4885
4910
  props: {
4886
4911
  splitLine: null
4887
4912
  },
4888
- setup(e) {
4889
- const t = (l) => l === N.DELETE ? "-" : l === N.ADD ? "+" : "";
4890
- return (l, u) => e.splitLine.fold ? (W(), V("tr", hr, br)) : (W(), V("tr", _r, [
4891
- (W(!0), V(ge, null, ze([e.splitLine.left, e.splitLine.right], (h) => (W(), V(ge, null, [
4892
- h.type === F(N).EMPTY ? (W(), V(ge, { key: 0 }, [
4893
- Er,
4894
- vr
4913
+ emits: ["expand"],
4914
+ setup(e, { emit: t }) {
4915
+ const l = (u) => u === N.DELETE ? "-" : u === N.ADD ? "+" : "";
4916
+ return (u, h) => e.splitLine.hideIndex !== void 0 && e.splitLine.hide ? (W(), V("tr", hr, [
4917
+ P("td", {
4918
+ class: "blob-num blob-num-hunk",
4919
+ colspan: "1",
4920
+ onClick: h[0] || (h[0] = (n) => t("expand", e.splitLine))
4921
+ }, " > "),
4922
+ dr
4923
+ ])) : e.splitLine.hide ? fn("", !0) : (W(), V("tr", pr, [
4924
+ (W(!0), V(ge, null, ze([e.splitLine.left, e.splitLine.right], (n) => (W(), V(ge, null, [
4925
+ n.type === F(N).EMPTY ? (W(), V(ge, { key: 0 }, [
4926
+ br,
4927
+ _r
4895
4928
  ], 64)) : (W(), V(ge, { key: 1 }, [
4896
- U("td", {
4929
+ P("td", {
4897
4930
  class: pe(["blob-num", {
4898
- "blob-num-deletion": h.type === F(N).DELETE,
4899
- "blob-num-addition": h.type === F(N).ADD,
4900
- "blob-num-context": h.type === F(N).EQUAL
4931
+ "blob-num-deletion": n.type === F(N).DELETE,
4932
+ "blob-num-addition": n.type === F(N).ADD,
4933
+ "blob-num-context": n.type === F(N).EQUAL,
4934
+ "blob-num-hunk": e.splitLine.hide !== void 0
4901
4935
  }])
4902
- }, he(h.num), 3),
4903
- U("td", {
4936
+ }, he(n.num), 3),
4937
+ P("td", {
4904
4938
  class: pe(["blob-code", {
4905
- "blob-code-deletion": h.type === F(N).DELETE,
4906
- "blob-code-addition": h.type === F(N).ADD,
4907
- "blob-code-context": h.type === F(N).EQUAL
4939
+ "blob-code-deletion": n.type === F(N).DELETE,
4940
+ "blob-code-addition": n.type === F(N).ADD,
4941
+ "blob-code-context": n.type === F(N).EQUAL,
4942
+ "blob-code-hunk": e.splitLine.hide !== void 0
4908
4943
  }])
4909
4944
  }, [
4910
- U("span", {
4945
+ P("span", {
4911
4946
  class: "blob-code-inner blob-code-marker",
4912
- "data-code-marker": t(h.type),
4913
- innerHTML: h.code
4914
- }, null, 8, mr)
4947
+ "data-code-marker": l(n.type),
4948
+ innerHTML: n.code
4949
+ }, null, 8, Er)
4915
4950
  ], 2)
4916
4951
  ], 64))
4917
4952
  ], 64))), 256))
4918
4953
  ]));
4919
4954
  }
4920
- }), yr = { class: "file-diff-split diff-table" }, Nr = /* @__PURE__ */ U("colgroup", null, [
4921
- /* @__PURE__ */ U("col", { width: "44" }),
4922
- /* @__PURE__ */ U("col"),
4923
- /* @__PURE__ */ U("col", { width: "44" }),
4924
- /* @__PURE__ */ U("col")
4925
- ], -1), Mr = /* @__PURE__ */ we({
4955
+ }), mr = { class: "file-diff-split diff-table" }, wr = /* @__PURE__ */ P("colgroup", null, [
4956
+ /* @__PURE__ */ P("col", { width: "44" }),
4957
+ /* @__PURE__ */ P("col"),
4958
+ /* @__PURE__ */ P("col", { width: "44" }),
4959
+ /* @__PURE__ */ P("col")
4960
+ ], -1), yr = /* @__PURE__ */ we({
4926
4961
  __name: "SplitViewer",
4927
4962
  props: {
4928
4963
  diffChange: null
4929
4964
  },
4930
4965
  setup(e) {
4931
- return (t, l) => (W(), V("table", yr, [
4932
- Nr,
4933
- U("tbody", null, [
4934
- (W(!0), V(ge, null, ze(e.diffChange, (u, h) => (W(), Le(wr, {
4935
- key: h,
4936
- "split-line": u
4937
- }, null, 8, ["split-line"]))), 128))
4938
- ])
4939
- ]));
4966
+ const t = e;
4967
+ function l({ hideIndex: u }) {
4968
+ u !== void 0 && t.diffChange.collector[u].lines.forEach((h) => {
4969
+ h.hide = !1, h.fold = !1;
4970
+ });
4971
+ }
4972
+ return (u, h) => {
4973
+ var n;
4974
+ return W(), V("table", mr, [
4975
+ wr,
4976
+ P("tbody", null, [
4977
+ (W(!0), V(ge, null, ze((n = e.diffChange) == null ? void 0 : n.changes, (r, i) => (W(), Oe(vr, {
4978
+ key: i,
4979
+ "split-line": r,
4980
+ onExpand: l
4981
+ }, null, 8, ["split-line"]))), 128))
4982
+ ])
4983
+ ]);
4984
+ };
4940
4985
  }
4941
4986
  });
4942
- const Ar = { class: "file-header" }, Tr = { class: "file-info" }, Dr = { class: "filename" }, Sr = { class: "diff-stat" }, Rr = { class: "diff-stat-added" }, Or = {
4987
+ const Nr = { class: "file-header" }, Mr = { class: "file-info" }, Ar = { class: "filename" }, Tr = { class: "diff-stat" }, Dr = { class: "diff-stat-added" }, Sr = {
4943
4988
  class: "diff-stat-deleted",
4944
4989
  style: { "margin-left": "8px" }
4945
- }, Lr = /* @__PURE__ */ we({
4990
+ }, Rr = /* @__PURE__ */ we({
4946
4991
  __name: "CodeDiff",
4947
4992
  props: {
4948
4993
  newString: null,
@@ -4958,45 +5003,47 @@ const Ar = { class: "file-header" }, Tr = { class: "file-info" }, Dr = { class:
4958
5003
  },
4959
5004
  setup(e) {
4960
5005
  const t = e, l = Te(() => t.outputFormat === "line-by-line"), u = Te(() => {
4961
- const r = t.trim ? t.oldString.trim() : t.oldString;
4962
- return t.noDiffLineFeed ? r.replace(/(\r\n)/g, `
4963
- `) : r;
5006
+ let i = t.oldString || "";
5007
+ return i = t.trim ? i.trim() : i, i = t.noDiffLineFeed ? i.replace(/(\r\n)/g, `
5008
+ `) : i, i;
4964
5009
  }), h = Te(() => {
4965
- const r = t.trim ? t.newString.trim() : t.newString;
4966
- return t.noDiffLineFeed ? r.replace(/(\r\n)/g, `
4967
- `) : r;
5010
+ let i = t.newString || "";
5011
+ return i = t.trim ? i.trim() : i, i = t.noDiffLineFeed ? i.replace(/(\r\n)/g, `
5012
+ `) : i, i;
4968
5013
  }), n = Te(
4969
- () => l.value ? tr(u.value, h.value, t.language, t.diffStyle, t.context) : nr(u.value, h.value, t.language, t.diffStyle, t.context)
4970
- );
4971
- return (r, i) => (W(), V("div", {
5014
+ () => l.value ? sr(u.value, h.value, t.language, t.diffStyle, t.context) : ir(u.value, h.value, t.language, t.diffStyle, t.context)
5015
+ ), r = $n(n.value);
5016
+ return Un(() => t, () => {
5017
+ r.value = n.value;
5018
+ }, { deep: !0 }), (i, s) => (W(), V("div", {
4972
5019
  class: "code-diff-view",
4973
- style: Bn({ maxHeight: e.maxHeight })
5020
+ style: Pn({ maxHeight: e.maxHeight })
4974
5021
  }, [
4975
- U("div", Ar, [
4976
- U("div", Tr, [
4977
- U("span", Dr, he(e.filename), 1),
4978
- U("span", Sr, [
4979
- U("span", Rr, "+" + he(F(n).stat.additionsNum) + " additions", 1),
4980
- U("span", Or, "-" + he(F(n).stat.deletionsNum) + " deletions", 1)
5022
+ P("div", Nr, [
5023
+ P("div", Mr, [
5024
+ P("span", Ar, he(e.filename), 1),
5025
+ P("span", Tr, [
5026
+ P("span", Dr, "+" + he(F(r).stat.additionsNum) + " additions", 1),
5027
+ P("span", Sr, "-" + he(F(r).stat.deletionsNum) + " deletions", 1)
4981
5028
  ])
4982
5029
  ])
4983
5030
  ]),
4984
- F(l) ? (W(), Le(gr, {
5031
+ F(l) ? (W(), Oe(gr, {
4985
5032
  key: 0,
4986
- "diff-change": F(n).changes
4987
- }, null, 8, ["diff-change"])) : (W(), Le(Mr, {
5033
+ "diff-change": F(r)
5034
+ }, null, 8, ["diff-change"])) : (W(), Oe(yr, {
4988
5035
  key: 1,
4989
- "diff-change": F(n).changes
5036
+ "diff-change": F(r)
4990
5037
  }, null, 8, ["diff-change"]))
4991
5038
  ], 4));
4992
5039
  }
4993
- }), Cr = (e) => {
4994
- e.component("CodeDiff", Lr);
4995
- }, kr = {
4996
- install: Cr,
5040
+ }), Lr = (e) => {
5041
+ e.component("CodeDiff", Rr);
5042
+ }, Cr = {
5043
+ install: Lr,
4997
5044
  hljs: J
4998
5045
  };
4999
5046
  export {
5000
- Lr as CodeDiff,
5001
- kr as default
5047
+ Rr as CodeDiff,
5048
+ Cr as default
5002
5049
  };