v-code-diff 1.0.0 → 1.1.0
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.
- package/README.md +2 -1
- package/dist/v2/index.cjs.js +3 -3
- package/dist/v2/index.es.js +15 -10
- package/dist/v2.7/index.cjs.js +3 -3
- package/dist/v2.7/index.es.js +190 -189
- package/dist/v3/index.cjs.js +7 -7
- package/dist/v3/index.es.js +173 -173
- package/package.json +7 -3
- package/src/CodeDiff.vue +3 -1
- package/src/split/SplitViewer.vue +11 -13
- package/src/style.scss +88 -88
- package/src/unified/UnifiedViewer.vue +5 -7
- package/src/var.scss +2 -2
package/dist/v3/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".file{--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:static}.code-diff-view .file{position:relative;margin-top:16px;margin-bottom:16px;border:1px solid var(--color-border-default, #ddd);border-radius:2px}.code-diff-view .file table{border-spacing:0}.code-diff-view .file .diff-table{width:100%}.code-diff-view .file .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 .file .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 .file .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 .file .diff-table .blob-code{position:relative;padding-right:10px;padding-left:10px;line-height:20px;vertical-align:top}.code-diff-view .file .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 .file .diff-table .blob-code-deletion{background-color:var(--color-diff-blob-deletion-line-bg);outline:1px dashed transparent}.code-diff-view .file .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 .file .diff-table .blob-code-addition{background-color:var(--color-diff-blob-addition-line-bg);outline:1px dotted transparent}.code-diff-view .file .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 .file .diff-table .blob-code-context,.code-diff-view .file .diff-table .blob-code-addition,.code-diff-view .file .diff-table .blob-code-deletion{padding-left:22px!important}.code-diff-view .file .diff-table .blob-code-marker:before{position:absolute;top:1px;left:8px;padding-right:8px;content:attr(data-code-marker)}.code-diff-view .file .file-diff-split{table-layout:fixed}.code-diff-view .file .file-diff-split .blob-code+.blob-num{border-left:1px solid var(--color-border-muted)}.code-diff-view .file .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 _e, openBlock as P, createElementBlock as G, createElementVNode as k, normalizeClass as ge, unref as $, toDisplayString as $e, Fragment as ue, renderList as He, createBlock as Re, computed as ve } from "vue";
|
|
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}.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 .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 _e, openBlock as P, createElementBlock as G, createElementVNode as k, normalizeClass as ge, unref as $, toDisplayString as $e, Fragment as ue, renderList as He, createBlock as Re, computed as ve, normalizeStyle as Cn } from "vue";
|
|
3
3
|
function j() {
|
|
4
4
|
}
|
|
5
5
|
j.prototype = {
|
|
@@ -33,8 +33,8 @@ j.prototype = {
|
|
|
33
33
|
E[d] = void 0;
|
|
34
34
|
continue;
|
|
35
35
|
}
|
|
36
|
-
if (!R || L && S.newPos < x.newPos ? (T =
|
|
37
|
-
return i(
|
|
36
|
+
if (!R || L && S.newPos < x.newPos ? (T = kn(x), l.pushComponent(T.components, void 0, !0)) : (T = S, T.newPos++, l.pushComponent(T.components, !0, void 0)), y = l.extractCommon(T, t, n, d), T.newPos + 1 >= r && y + 1 >= a)
|
|
37
|
+
return i(In(l, T.components, t, n, l.useLongestToken));
|
|
38
38
|
E[d] = T;
|
|
39
39
|
}
|
|
40
40
|
o++;
|
|
@@ -91,7 +91,7 @@ j.prototype = {
|
|
|
91
91
|
return n.join("");
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
|
-
function
|
|
94
|
+
function In(e, n, t, s, c) {
|
|
95
95
|
for (var l = 0, i = n.length, r = 0, a = 0; l < i; l++) {
|
|
96
96
|
var o = n[l];
|
|
97
97
|
if (o.removed) {
|
|
@@ -114,17 +114,17 @@ function Cn(e, n, t, s, c) {
|
|
|
114
114
|
var p = n[i - 1];
|
|
115
115
|
return i > 1 && typeof p.value == "string" && (p.added || p.removed) && e.equals("", p.value) && (n[i - 2].value += p.value, n.pop()), n;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function kn(e) {
|
|
118
118
|
return {
|
|
119
119
|
newPos: e.newPos,
|
|
120
120
|
components: e.components.slice(0)
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
var
|
|
124
|
-
function
|
|
125
|
-
return
|
|
123
|
+
var Bn = new j();
|
|
124
|
+
function $n(e, n, t) {
|
|
125
|
+
return Bn.diff(e, n, t);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Un(e, n) {
|
|
128
128
|
if (typeof e == "function")
|
|
129
129
|
n.callback = e;
|
|
130
130
|
else if (e)
|
|
@@ -141,8 +141,8 @@ ze.tokenize = function(e) {
|
|
|
141
141
|
!n[t + 1] && n[t + 2] && Je.test(n[t]) && Je.test(n[t + 2]) && (n[t] += n[t + 2], n.splice(t + 1, 2), t--);
|
|
142
142
|
return n;
|
|
143
143
|
};
|
|
144
|
-
function
|
|
145
|
-
return t =
|
|
144
|
+
function Pn(e, n, t) {
|
|
145
|
+
return t = Un(t, {
|
|
146
146
|
ignoreWhitespace: !0
|
|
147
147
|
}), ze.diff(e, n, t);
|
|
148
148
|
}
|
|
@@ -159,12 +159,12 @@ Fe.tokenize = function(e) {
|
|
|
159
159
|
function fn(e, n, t) {
|
|
160
160
|
return Fe.diff(e, n, t);
|
|
161
161
|
}
|
|
162
|
-
var Pn = new j();
|
|
163
|
-
Pn.tokenize = function(e) {
|
|
164
|
-
return e.split(/(\S.+?[.!?])(?=\s+|$)/);
|
|
165
|
-
};
|
|
166
162
|
var Hn = new j();
|
|
167
163
|
Hn.tokenize = function(e) {
|
|
164
|
+
return e.split(/(\S.+?[.!?])(?=\s+|$)/);
|
|
165
|
+
};
|
|
166
|
+
var zn = new j();
|
|
167
|
+
zn.tokenize = function(e) {
|
|
168
168
|
return e.split(/([{}:;,]|\s+)/);
|
|
169
169
|
};
|
|
170
170
|
function Me(e) {
|
|
@@ -174,7 +174,7 @@ function Me(e) {
|
|
|
174
174
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
175
175
|
}, Me(e);
|
|
176
176
|
}
|
|
177
|
-
var
|
|
177
|
+
var Fn = Object.prototype.toString, pe = new j();
|
|
178
178
|
pe.useLongestToken = !0;
|
|
179
179
|
pe.tokenize = Fe.tokenize;
|
|
180
180
|
pe.castInput = function(e) {
|
|
@@ -193,7 +193,7 @@ function Ue(e, n, t, s, c) {
|
|
|
193
193
|
if (n[l] === e)
|
|
194
194
|
return t[l];
|
|
195
195
|
var i;
|
|
196
|
-
if (
|
|
196
|
+
if (Fn.call(e) === "[object Array]") {
|
|
197
197
|
for (n.push(e), i = new Array(e.length), t.push(i), l = 0; l < e.length; l += 1)
|
|
198
198
|
i[l] = Ue(e[l], n, t, s, c);
|
|
199
199
|
return n.pop(), t.pop(), i;
|
|
@@ -254,7 +254,7 @@ function ne(e, ...n) {
|
|
|
254
254
|
}), /** @type {T} */
|
|
255
255
|
t;
|
|
256
256
|
}
|
|
257
|
-
const
|
|
257
|
+
const Gn = "</span>", tn = (e) => !!e.scope || e.sublanguage && e.language, Kn = (e, { prefix: n }) => {
|
|
258
258
|
if (e.includes(".")) {
|
|
259
259
|
const t = e.split(".");
|
|
260
260
|
return [
|
|
@@ -264,7 +264,7 @@ const Fn = "</span>", tn = (e) => !!e.scope || e.sublanguage && e.language, Gn =
|
|
|
264
264
|
}
|
|
265
265
|
return `${n}${e}`;
|
|
266
266
|
};
|
|
267
|
-
class
|
|
267
|
+
class Wn {
|
|
268
268
|
/**
|
|
269
269
|
* Creates a new HTMLRenderer
|
|
270
270
|
*
|
|
@@ -289,14 +289,14 @@ class Kn {
|
|
|
289
289
|
if (!tn(n))
|
|
290
290
|
return;
|
|
291
291
|
let t = "";
|
|
292
|
-
n.sublanguage ? t = `language-${n.language}` : t =
|
|
292
|
+
n.sublanguage ? t = `language-${n.language}` : t = Kn(n.scope, { prefix: this.classPrefix }), this.span(t);
|
|
293
293
|
}
|
|
294
294
|
/**
|
|
295
295
|
* Adds a node close to the output stream (if needed)
|
|
296
296
|
*
|
|
297
297
|
* @param {Node} node */
|
|
298
298
|
closeNode(n) {
|
|
299
|
-
tn(n) && (this.buffer +=
|
|
299
|
+
tn(n) && (this.buffer += Gn);
|
|
300
300
|
}
|
|
301
301
|
/**
|
|
302
302
|
* returns the accumulated buffer
|
|
@@ -370,7 +370,7 @@ class We {
|
|
|
370
370
|
}));
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
class
|
|
373
|
+
class Yn extends We {
|
|
374
374
|
/**
|
|
375
375
|
* @param {*} options
|
|
376
376
|
*/
|
|
@@ -399,7 +399,7 @@ class Wn extends We {
|
|
|
399
399
|
s.sublanguage = !0, s.language = t, this.add(s);
|
|
400
400
|
}
|
|
401
401
|
toHTML() {
|
|
402
|
-
return new
|
|
402
|
+
return new Wn(this, this.options).value();
|
|
403
403
|
}
|
|
404
404
|
finalize() {
|
|
405
405
|
return !0;
|
|
@@ -411,30 +411,30 @@ function be(e) {
|
|
|
411
411
|
function gn(e) {
|
|
412
412
|
return ie("(?=", e, ")");
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Zn(e) {
|
|
415
415
|
return ie("(?:", e, ")*");
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function Qn(e) {
|
|
418
418
|
return ie("(?:", e, ")?");
|
|
419
419
|
}
|
|
420
420
|
function ie(...e) {
|
|
421
421
|
return e.map((t) => be(t)).join("");
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function qn(e) {
|
|
424
424
|
const n = e[e.length - 1];
|
|
425
425
|
return typeof n == "object" && n.constructor === Object ? (e.splice(e.length - 1, 1), n) : {};
|
|
426
426
|
}
|
|
427
427
|
function Ye(...e) {
|
|
428
|
-
return "(" + (
|
|
428
|
+
return "(" + (qn(e).capture ? "" : "?:") + e.map((s) => be(s)).join("|") + ")";
|
|
429
429
|
}
|
|
430
430
|
function pn(e) {
|
|
431
431
|
return new RegExp(e.toString() + "|").exec("").length - 1;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function Xn(e, n) {
|
|
434
434
|
const t = e && e.exec(n);
|
|
435
435
|
return t && t.index === 0;
|
|
436
436
|
}
|
|
437
|
-
const
|
|
437
|
+
const Vn = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
|
438
438
|
function Ze(e, { joinWith: n }) {
|
|
439
439
|
let t = 0;
|
|
440
440
|
return e.map((s) => {
|
|
@@ -442,7 +442,7 @@ function Ze(e, { joinWith: n }) {
|
|
|
442
442
|
const c = t;
|
|
443
443
|
let l = be(s), i = "";
|
|
444
444
|
for (; l.length > 0; ) {
|
|
445
|
-
const r =
|
|
445
|
+
const r = Vn.exec(l);
|
|
446
446
|
if (!r) {
|
|
447
447
|
i += l;
|
|
448
448
|
break;
|
|
@@ -452,7 +452,7 @@ function Ze(e, { joinWith: n }) {
|
|
|
452
452
|
return i;
|
|
453
453
|
}).map((s) => `(${s})`).join(n);
|
|
454
454
|
}
|
|
455
|
-
const
|
|
455
|
+
const jn = /\b\B/, bn = "[a-zA-Z]\\w*", Qe = "[a-zA-Z_]\\w*", hn = "\\b\\d+(\\.\\d+)?", En = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", _n = "\\b(0b[01]+)", Jn = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", et = (e = {}) => {
|
|
456
456
|
const n = /^#![ ]*\//;
|
|
457
457
|
return e.binary && (e.begin = ie(
|
|
458
458
|
n,
|
|
@@ -472,19 +472,19 @@ const Vn = /\b\B/, bn = "[a-zA-Z]\\w*", Qe = "[a-zA-Z_]\\w*", hn = "\\b\\d+(\\.\
|
|
|
472
472
|
}, he = {
|
|
473
473
|
begin: "\\\\[\\s\\S]",
|
|
474
474
|
relevance: 0
|
|
475
|
-
},
|
|
475
|
+
}, nt = {
|
|
476
476
|
scope: "string",
|
|
477
477
|
begin: "'",
|
|
478
478
|
end: "'",
|
|
479
479
|
illegal: "\\n",
|
|
480
480
|
contains: [he]
|
|
481
|
-
},
|
|
481
|
+
}, tt = {
|
|
482
482
|
scope: "string",
|
|
483
483
|
begin: '"',
|
|
484
484
|
end: '"',
|
|
485
485
|
illegal: "\\n",
|
|
486
486
|
contains: [he]
|
|
487
|
-
},
|
|
487
|
+
}, st = {
|
|
488
488
|
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/
|
|
489
489
|
}, Le = function(e, n, t = {}) {
|
|
490
490
|
const s = ne(
|
|
@@ -552,19 +552,19 @@ const Vn = /\b\B/, bn = "[a-zA-Z]\\w*", Qe = "[a-zA-Z_]\\w*", hn = "\\b\\d+(\\.\
|
|
|
552
552
|
// look for 3 words in a row
|
|
553
553
|
}
|
|
554
554
|
), s;
|
|
555
|
-
},
|
|
555
|
+
}, it = Le("//", "$"), rt = Le("/\\*", "\\*/"), at = Le("#", "$"), ot = {
|
|
556
556
|
scope: "number",
|
|
557
557
|
begin: hn,
|
|
558
558
|
relevance: 0
|
|
559
|
-
},
|
|
559
|
+
}, ct = {
|
|
560
560
|
scope: "number",
|
|
561
561
|
begin: En,
|
|
562
562
|
relevance: 0
|
|
563
|
-
},
|
|
563
|
+
}, lt = {
|
|
564
564
|
scope: "number",
|
|
565
565
|
begin: _n,
|
|
566
566
|
relevance: 0
|
|
567
|
-
},
|
|
567
|
+
}, ut = {
|
|
568
568
|
// this outer rule makes sure we actually have a WHOLE regex and not simply
|
|
569
569
|
// an expression such as:
|
|
570
570
|
//
|
|
@@ -587,19 +587,19 @@ const Vn = /\b\B/, bn = "[a-zA-Z]\\w*", Qe = "[a-zA-Z_]\\w*", hn = "\\b\\d+(\\.\
|
|
|
587
587
|
}
|
|
588
588
|
]
|
|
589
589
|
}]
|
|
590
|
-
},
|
|
590
|
+
}, ft = {
|
|
591
591
|
scope: "title",
|
|
592
592
|
begin: bn,
|
|
593
593
|
relevance: 0
|
|
594
|
-
},
|
|
594
|
+
}, dt = {
|
|
595
595
|
scope: "title",
|
|
596
596
|
begin: Qe,
|
|
597
597
|
relevance: 0
|
|
598
|
-
},
|
|
598
|
+
}, gt = {
|
|
599
599
|
// excludes method names from keyword processing
|
|
600
600
|
begin: "\\.\\s*" + Qe,
|
|
601
601
|
relevance: 0
|
|
602
|
-
},
|
|
602
|
+
}, pt = function(e) {
|
|
603
603
|
return Object.assign(
|
|
604
604
|
e,
|
|
605
605
|
{
|
|
@@ -616,54 +616,54 @@ const Vn = /\b\B/, bn = "[a-zA-Z]\\w*", Qe = "[a-zA-Z_]\\w*", hn = "\\b\\d+(\\.\
|
|
|
616
616
|
};
|
|
617
617
|
var Te = /* @__PURE__ */ Object.freeze({
|
|
618
618
|
__proto__: null,
|
|
619
|
-
MATCH_NOTHING_RE:
|
|
619
|
+
MATCH_NOTHING_RE: jn,
|
|
620
620
|
IDENT_RE: bn,
|
|
621
621
|
UNDERSCORE_IDENT_RE: Qe,
|
|
622
622
|
NUMBER_RE: hn,
|
|
623
623
|
C_NUMBER_RE: En,
|
|
624
624
|
BINARY_NUMBER_RE: _n,
|
|
625
|
-
RE_STARTERS_RE:
|
|
626
|
-
SHEBANG:
|
|
625
|
+
RE_STARTERS_RE: Jn,
|
|
626
|
+
SHEBANG: et,
|
|
627
627
|
BACKSLASH_ESCAPE: he,
|
|
628
|
-
APOS_STRING_MODE:
|
|
629
|
-
QUOTE_STRING_MODE:
|
|
630
|
-
PHRASAL_WORDS_MODE:
|
|
628
|
+
APOS_STRING_MODE: nt,
|
|
629
|
+
QUOTE_STRING_MODE: tt,
|
|
630
|
+
PHRASAL_WORDS_MODE: st,
|
|
631
631
|
COMMENT: Le,
|
|
632
|
-
C_LINE_COMMENT_MODE:
|
|
633
|
-
C_BLOCK_COMMENT_MODE:
|
|
634
|
-
HASH_COMMENT_MODE:
|
|
635
|
-
NUMBER_MODE:
|
|
636
|
-
C_NUMBER_MODE:
|
|
637
|
-
BINARY_NUMBER_MODE:
|
|
638
|
-
REGEXP_MODE:
|
|
639
|
-
TITLE_MODE:
|
|
640
|
-
UNDERSCORE_TITLE_MODE:
|
|
641
|
-
METHOD_GUARD:
|
|
642
|
-
END_SAME_AS_BEGIN:
|
|
632
|
+
C_LINE_COMMENT_MODE: it,
|
|
633
|
+
C_BLOCK_COMMENT_MODE: rt,
|
|
634
|
+
HASH_COMMENT_MODE: at,
|
|
635
|
+
NUMBER_MODE: ot,
|
|
636
|
+
C_NUMBER_MODE: ct,
|
|
637
|
+
BINARY_NUMBER_MODE: lt,
|
|
638
|
+
REGEXP_MODE: ut,
|
|
639
|
+
TITLE_MODE: ft,
|
|
640
|
+
UNDERSCORE_TITLE_MODE: dt,
|
|
641
|
+
METHOD_GUARD: gt,
|
|
642
|
+
END_SAME_AS_BEGIN: pt
|
|
643
643
|
});
|
|
644
|
-
function pt(e, n) {
|
|
645
|
-
e.input[e.index - 1] === "." && n.ignoreMatch();
|
|
646
|
-
}
|
|
647
644
|
function bt(e, n) {
|
|
648
|
-
e.
|
|
645
|
+
e.input[e.index - 1] === "." && n.ignoreMatch();
|
|
649
646
|
}
|
|
650
647
|
function ht(e, n) {
|
|
651
|
-
|
|
648
|
+
e.className !== void 0 && (e.scope = e.className, delete e.className);
|
|
652
649
|
}
|
|
653
650
|
function Et(e, n) {
|
|
654
|
-
|
|
651
|
+
n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = bt, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
|
|
655
652
|
}
|
|
656
653
|
function _t(e, n) {
|
|
654
|
+
Array.isArray(e.illegal) && (e.illegal = Ye(...e.illegal));
|
|
655
|
+
}
|
|
656
|
+
function mt(e, n) {
|
|
657
657
|
if (e.match) {
|
|
658
658
|
if (e.begin || e.end)
|
|
659
659
|
throw new Error("begin & end are not supported with match");
|
|
660
660
|
e.begin = e.match, delete e.match;
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function yt(e, n) {
|
|
664
664
|
e.relevance === void 0 && (e.relevance = 1);
|
|
665
665
|
}
|
|
666
|
-
const
|
|
666
|
+
const Nt = (e, n) => {
|
|
667
667
|
if (!e.beforeMatch)
|
|
668
668
|
return;
|
|
669
669
|
if (e.starts)
|
|
@@ -677,7 +677,7 @@ const yt = (e, n) => {
|
|
|
677
677
|
Object.assign(t, { endsParent: !0 })
|
|
678
678
|
]
|
|
679
679
|
}, e.relevance = 0, delete t.beforeMatch;
|
|
680
|
-
},
|
|
680
|
+
}, At = [
|
|
681
681
|
"of",
|
|
682
682
|
"and",
|
|
683
683
|
"for",
|
|
@@ -692,8 +692,8 @@ const yt = (e, n) => {
|
|
|
692
692
|
// common variable name
|
|
693
693
|
"value"
|
|
694
694
|
// common variable name
|
|
695
|
-
],
|
|
696
|
-
function mn(e, n, t =
|
|
695
|
+
], vt = "keyword";
|
|
696
|
+
function mn(e, n, t = vt) {
|
|
697
697
|
const s = /* @__PURE__ */ Object.create(null);
|
|
698
698
|
return typeof e == "string" ? c(t, e.split(" ")) : Array.isArray(e) ? c(t, e) : Object.keys(e).forEach(function(l) {
|
|
699
699
|
Object.assign(
|
|
@@ -704,15 +704,15 @@ function mn(e, n, t = At) {
|
|
|
704
704
|
function c(l, i) {
|
|
705
705
|
n && (i = i.map((r) => r.toLowerCase())), i.forEach(function(r) {
|
|
706
706
|
const a = r.split("|");
|
|
707
|
-
s[a[0]] = [l,
|
|
707
|
+
s[a[0]] = [l, Tt(a[0], a[1])];
|
|
708
708
|
});
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
-
function
|
|
712
|
-
return n ? Number(n) :
|
|
711
|
+
function Tt(e, n) {
|
|
712
|
+
return n ? Number(n) : wt(e) ? 0 : 1;
|
|
713
713
|
}
|
|
714
|
-
function
|
|
715
|
-
return
|
|
714
|
+
function wt(e) {
|
|
715
|
+
return At.includes(e.toLowerCase());
|
|
716
716
|
}
|
|
717
717
|
const rn = {}, se = (e) => {
|
|
718
718
|
console.error(e);
|
|
@@ -728,7 +728,7 @@ function yn(e, n, { key: t }) {
|
|
|
728
728
|
i[r + s] = c[r], l[r + s] = !0, s += pn(n[r - 1]);
|
|
729
729
|
e[t] = i, e[t]._emit = l, e[t]._multi = !0;
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function St(e) {
|
|
732
732
|
if (Array.isArray(e.begin)) {
|
|
733
733
|
if (e.skip || e.excludeBegin || e.returnBegin)
|
|
734
734
|
throw se("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Oe;
|
|
@@ -737,7 +737,7 @@ function wt(e) {
|
|
|
737
737
|
yn(e, e.begin, { key: "beginScope" }), e.begin = Ze(e.begin, { joinWith: "" });
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
|
-
function
|
|
740
|
+
function Mt(e) {
|
|
741
741
|
if (Array.isArray(e.end)) {
|
|
742
742
|
if (e.skip || e.excludeEnd || e.returnEnd)
|
|
743
743
|
throw se("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Oe;
|
|
@@ -746,13 +746,13 @@ function St(e) {
|
|
|
746
746
|
yn(e, e.end, { key: "endScope" }), e.end = Ze(e.end, { joinWith: "" });
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
|
-
function Mt(e) {
|
|
750
|
-
e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
|
|
751
|
-
}
|
|
752
749
|
function Rt(e) {
|
|
753
|
-
|
|
750
|
+
e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
|
|
754
751
|
}
|
|
755
752
|
function Ot(e) {
|
|
753
|
+
Rt(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), St(e), Mt(e);
|
|
754
|
+
}
|
|
755
|
+
function xt(e) {
|
|
756
756
|
function n(i, r) {
|
|
757
757
|
return new RegExp(
|
|
758
758
|
be(i),
|
|
@@ -827,26 +827,26 @@ function Ot(e) {
|
|
|
827
827
|
if (i.isCompiled)
|
|
828
828
|
return a;
|
|
829
829
|
[
|
|
830
|
-
|
|
830
|
+
ht,
|
|
831
831
|
// do this early so compiler extensions generally don't have to worry about
|
|
832
832
|
// the distinction between match/begin
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
833
|
+
mt,
|
|
834
|
+
Ot,
|
|
835
|
+
Nt
|
|
836
836
|
].forEach((b) => b(i, r)), e.compilerExtensions.forEach((b) => b(i, r)), i.__beforeBegin = null, [
|
|
837
|
-
|
|
837
|
+
Et,
|
|
838
838
|
// do this later so compiler extensions that come earlier have access to the
|
|
839
839
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
840
|
-
|
|
840
|
+
_t,
|
|
841
841
|
// default to 1 relevance if not specified
|
|
842
|
-
|
|
842
|
+
yt
|
|
843
843
|
].forEach((b) => b(i, r)), i.isCompiled = !0;
|
|
844
844
|
let o = null;
|
|
845
845
|
return typeof i.keywords == "object" && i.keywords.$pattern && (i.keywords = Object.assign({}, i.keywords), o = i.keywords.$pattern, delete i.keywords.$pattern), o = o || /\w+/, i.keywords && (i.keywords = mn(i.keywords, e.case_insensitive)), a.keywordPatternRe = n(o, !0), r && (i.begin || (i.begin = /\B|\b/), a.beginRe = n(a.begin), !i.end && !i.endsWithParent && (i.end = /\B|\b/), i.end && (a.endRe = n(a.end)), a.terminatorEnd = be(a.end) || "", i.endsWithParent && r.terminatorEnd && (a.terminatorEnd += (i.end ? "|" : "") + r.terminatorEnd)), i.illegal && (a.illegalRe = n(
|
|
846
846
|
/** @type {RegExp | string} */
|
|
847
847
|
i.illegal
|
|
848
848
|
)), i.contains || (i.contains = []), i.contains = [].concat(...i.contains.map(function(b) {
|
|
849
|
-
return
|
|
849
|
+
return Lt(b === "self" ? i : b);
|
|
850
850
|
})), i.contains.forEach(function(b) {
|
|
851
851
|
l(
|
|
852
852
|
/** @type Mode */
|
|
@@ -865,18 +865,18 @@ function Ot(e) {
|
|
|
865
865
|
function Nn(e) {
|
|
866
866
|
return e ? e.endsWithParent || Nn(e.starts) : !1;
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function Lt(e) {
|
|
869
869
|
return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(n) {
|
|
870
870
|
return ne(e, { variants: null }, n);
|
|
871
871
|
})), e.cachedVariants ? e.cachedVariants : Nn(e) ? ne(e, { starts: e.starts ? ne(e.starts) : null }) : Object.isFrozen(e) ? ne(e) : e;
|
|
872
872
|
}
|
|
873
|
-
var
|
|
874
|
-
class
|
|
873
|
+
var Dt = "11.7.0";
|
|
874
|
+
class Ct extends Error {
|
|
875
875
|
constructor(n, t) {
|
|
876
876
|
super(n), this.name = "HTMLInjectionError", this.html = t;
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
|
-
const Be = dn, on = ne, cn = Symbol("nomatch"),
|
|
879
|
+
const Be = dn, on = ne, cn = Symbol("nomatch"), It = 7, kt = function(e) {
|
|
880
880
|
const n = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null), s = [];
|
|
881
881
|
let c = !0;
|
|
882
882
|
const l = "Could not find the language '{}', did you forget to load/include a language module?", i = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
@@ -890,7 +890,7 @@ const Be = dn, on = ne, cn = Symbol("nomatch"), Ct = 7, It = function(e) {
|
|
|
890
890
|
languages: null,
|
|
891
891
|
// beta configuration options, subject to change, welcome to discuss
|
|
892
892
|
// https://github.com/highlightjs/highlight.js/issues/1086
|
|
893
|
-
__emitter:
|
|
893
|
+
__emitter: Yn
|
|
894
894
|
};
|
|
895
895
|
function a(u) {
|
|
896
896
|
return r.noHighlightRe.test(u);
|
|
@@ -935,7 +935,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), I = u, M = h), A ===
|
|
|
935
935
|
const O = ee.case_insensitive ? _[0].toLowerCase() : _[0], H = z(N, O);
|
|
936
936
|
if (H) {
|
|
937
937
|
const [q, Ln] = H;
|
|
938
|
-
if (U.addText(w), w = "", I[O] = (I[O] || 0) + 1, I[O] <=
|
|
938
|
+
if (U.addText(w), w = "", I[O] = (I[O] || 0) + 1, I[O] <= It && (Ae += Ln), q.startsWith("_"))
|
|
939
939
|
w += _[0];
|
|
940
940
|
else {
|
|
941
941
|
const Dn = ee.classNameAliases[q] || q;
|
|
@@ -981,7 +981,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), I = u, M = h), A ===
|
|
|
981
981
|
return f.scope && typeof f.scope == "string" && U.openNode(ee.classNameAliases[f.scope] || f.scope), f.beginScope && (f.beginScope._wrap ? (U.addKeyword(C, ee.classNameAliases[f.beginScope._wrap] || f.beginScope._wrap), C = "") : f.beginScope._multi && (J(f.beginScope, _), C = "")), N = Object.create(f, { parent: { value: N } }), N;
|
|
982
982
|
}
|
|
983
983
|
function Xe(f, _, w) {
|
|
984
|
-
let O =
|
|
984
|
+
let O = Xn(f.endRe, w);
|
|
985
985
|
if (O) {
|
|
986
986
|
if (f["on:end"]) {
|
|
987
987
|
const H = new nn(f);
|
|
@@ -1054,7 +1054,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), I = u, M = h), A ===
|
|
|
1054
1054
|
const ee = W(u);
|
|
1055
1055
|
if (!ee)
|
|
1056
1056
|
throw se(l.replace("{}", u)), new Error('Unknown language: "' + u + '"');
|
|
1057
|
-
const xn =
|
|
1057
|
+
const xn = xt(ee);
|
|
1058
1058
|
let Ce = "", N = M || xn;
|
|
1059
1059
|
const je = {}, U = new r.__emitter(r);
|
|
1060
1060
|
On();
|
|
@@ -1147,7 +1147,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), I = u, M = h), A ===
|
|
|
1147
1147
|
"before:highlightElement",
|
|
1148
1148
|
{ el: u, language: A }
|
|
1149
1149
|
), u.children.length > 0 && (r.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(u)), r.throwUnescapedHTML))
|
|
1150
|
-
throw new
|
|
1150
|
+
throw new Ct(
|
|
1151
1151
|
"One of your code blocks includes unescaped HTML.",
|
|
1152
1152
|
u.innerHTML
|
|
1153
1153
|
);
|
|
@@ -1262,22 +1262,22 @@ https://github.com/highlightjs/highlight.js/issues/2277`), I = u, M = h), A ===
|
|
|
1262
1262
|
c = !1;
|
|
1263
1263
|
}, e.safeMode = function() {
|
|
1264
1264
|
c = !0;
|
|
1265
|
-
}, e.versionString =
|
|
1265
|
+
}, e.versionString = Dt, e.regex = {
|
|
1266
1266
|
concat: ie,
|
|
1267
1267
|
lookahead: gn,
|
|
1268
1268
|
either: Ye,
|
|
1269
|
-
optional:
|
|
1270
|
-
anyNumberOfTimes:
|
|
1269
|
+
optional: Qn,
|
|
1270
|
+
anyNumberOfTimes: Zn
|
|
1271
1271
|
};
|
|
1272
1272
|
for (const u in Te)
|
|
1273
1273
|
typeof Te[u] == "object" && Ge.exports(Te[u]);
|
|
1274
1274
|
return Object.assign(e, Te), e;
|
|
1275
1275
|
};
|
|
1276
|
-
var Ee =
|
|
1276
|
+
var Ee = kt({}), Bt = Ee;
|
|
1277
1277
|
Ee.HighlightJS = Ee;
|
|
1278
1278
|
Ee.default = Ee;
|
|
1279
|
-
const Z =
|
|
1280
|
-
function
|
|
1279
|
+
const Z = Bt;
|
|
1280
|
+
function $t(e) {
|
|
1281
1281
|
const n = e.regex, t = n.concat(/[\p{L}_]/u, n.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), s = /[\p{L}0-9._:-]+/u, c = {
|
|
1282
1282
|
className: "symbol",
|
|
1283
1283
|
begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
|
|
@@ -1493,7 +1493,7 @@ function Bt(e) {
|
|
|
1493
1493
|
]
|
|
1494
1494
|
};
|
|
1495
1495
|
}
|
|
1496
|
-
const ln = "[A-Za-z$_][0-9A-Za-z$_]*",
|
|
1496
|
+
const ln = "[A-Za-z$_][0-9A-Za-z$_]*", Ut = [
|
|
1497
1497
|
"as",
|
|
1498
1498
|
// for exports
|
|
1499
1499
|
"in",
|
|
@@ -1536,7 +1536,7 @@ const ln = "[A-Za-z$_][0-9A-Za-z$_]*", $t = [
|
|
|
1536
1536
|
"from",
|
|
1537
1537
|
"export",
|
|
1538
1538
|
"extends"
|
|
1539
|
-
],
|
|
1539
|
+
], Pt = [
|
|
1540
1540
|
"true",
|
|
1541
1541
|
"false",
|
|
1542
1542
|
"null",
|
|
@@ -1620,7 +1620,7 @@ const ln = "[A-Za-z$_][0-9A-Za-z$_]*", $t = [
|
|
|
1620
1620
|
"encodeURIComponent",
|
|
1621
1621
|
"escape",
|
|
1622
1622
|
"unescape"
|
|
1623
|
-
],
|
|
1623
|
+
], Ht = [
|
|
1624
1624
|
"arguments",
|
|
1625
1625
|
"this",
|
|
1626
1626
|
"super",
|
|
@@ -1631,12 +1631,12 @@ const ln = "[A-Za-z$_][0-9A-Za-z$_]*", $t = [
|
|
|
1631
1631
|
"module",
|
|
1632
1632
|
"global"
|
|
1633
1633
|
// Node.js
|
|
1634
|
-
],
|
|
1634
|
+
], zt = [].concat(
|
|
1635
1635
|
Tn,
|
|
1636
1636
|
An,
|
|
1637
1637
|
vn
|
|
1638
1638
|
);
|
|
1639
|
-
function
|
|
1639
|
+
function Ft(e) {
|
|
1640
1640
|
const n = e.regex, t = (h, { after: A }) => {
|
|
1641
1641
|
const M = "</" + h[0].slice(1);
|
|
1642
1642
|
return h.input.indexOf(M, A) !== -1;
|
|
@@ -1677,10 +1677,10 @@ function zt(e) {
|
|
|
1677
1677
|
}
|
|
1678
1678
|
}, r = {
|
|
1679
1679
|
$pattern: ln,
|
|
1680
|
-
keyword:
|
|
1681
|
-
literal:
|
|
1682
|
-
built_in:
|
|
1683
|
-
"variable.language":
|
|
1680
|
+
keyword: Ut,
|
|
1681
|
+
literal: Pt,
|
|
1682
|
+
built_in: zt,
|
|
1683
|
+
"variable.language": Ht
|
|
1684
1684
|
}, a = "[0-9](_?[0-9])*", o = `\\.(${a})`, b = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", E = {
|
|
1685
1685
|
className: "number",
|
|
1686
1686
|
variants: [
|
|
@@ -2129,7 +2129,7 @@ function zt(e) {
|
|
|
2129
2129
|
]
|
|
2130
2130
|
};
|
|
2131
2131
|
}
|
|
2132
|
-
function
|
|
2132
|
+
function Gt(e) {
|
|
2133
2133
|
const n = {
|
|
2134
2134
|
className: "attr",
|
|
2135
2135
|
begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
@@ -2163,7 +2163,7 @@ function Ft(e) {
|
|
|
2163
2163
|
illegal: "\\S"
|
|
2164
2164
|
};
|
|
2165
2165
|
}
|
|
2166
|
-
function
|
|
2166
|
+
function Kt(e) {
|
|
2167
2167
|
const n = "true false yes no null", t = "[\\w#;/?:@&=+$,.~*'()[\\]]+", s = {
|
|
2168
2168
|
className: "attr",
|
|
2169
2169
|
variants: [
|
|
@@ -2327,7 +2327,7 @@ function Gt(e) {
|
|
|
2327
2327
|
contains: d
|
|
2328
2328
|
};
|
|
2329
2329
|
}
|
|
2330
|
-
function
|
|
2330
|
+
function Wt(e) {
|
|
2331
2331
|
return {
|
|
2332
2332
|
name: "Plain text",
|
|
2333
2333
|
aliases: [
|
|
@@ -2337,7 +2337,7 @@ function Kt(e) {
|
|
|
2337
2337
|
disableAutodetect: !0
|
|
2338
2338
|
};
|
|
2339
2339
|
}
|
|
2340
|
-
function
|
|
2340
|
+
function Yt(e) {
|
|
2341
2341
|
const n = e.regex, t = /[\p{XID_Start}_]\p{XID_Continue}*/u, s = [
|
|
2342
2342
|
"and",
|
|
2343
2343
|
"as",
|
|
@@ -2757,7 +2757,7 @@ var le = "[0-9](_*[0-9])*", we = `\\.(${le})`, Se = "[0-9a-fA-F](_*[0-9a-fA-F])*
|
|
|
2757
2757
|
function wn(e, n, t) {
|
|
2758
2758
|
return t === -1 ? "" : e.replace(n, (s) => wn(e, n, t - 1));
|
|
2759
2759
|
}
|
|
2760
|
-
function
|
|
2760
|
+
function Zt(e) {
|
|
2761
2761
|
const n = e.regex, t = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", s = t + wn("(?:<" + t + "~~~(?:\\s*,\\s*" + t + "~~~)*>)?", /~~~/g, 2), a = {
|
|
2762
2762
|
keyword: [
|
|
2763
2763
|
"synchronized",
|
|
@@ -2966,7 +2966,7 @@ function Yt(e) {
|
|
|
2966
2966
|
]
|
|
2967
2967
|
};
|
|
2968
2968
|
}
|
|
2969
|
-
function
|
|
2969
|
+
function Qt(e) {
|
|
2970
2970
|
const n = e.regex, t = {}, s = {
|
|
2971
2971
|
begin: /\$\{/,
|
|
2972
2972
|
end: /\}/,
|
|
@@ -3319,7 +3319,7 @@ function Zt(e) {
|
|
|
3319
3319
|
]
|
|
3320
3320
|
};
|
|
3321
3321
|
}
|
|
3322
|
-
function
|
|
3322
|
+
function qt(e) {
|
|
3323
3323
|
const n = e.regex, t = e.COMMENT("--", "$"), s = {
|
|
3324
3324
|
className: "string",
|
|
3325
3325
|
variants: [
|
|
@@ -3928,17 +3928,17 @@ function Qt(e) {
|
|
|
3928
3928
|
]
|
|
3929
3929
|
};
|
|
3930
3930
|
}
|
|
3931
|
-
Z.registerLanguage("xml",
|
|
3932
|
-
Z.registerLanguage("javascript",
|
|
3933
|
-
Z.registerLanguage("json",
|
|
3934
|
-
Z.registerLanguage("yaml",
|
|
3935
|
-
Z.registerLanguage("plaintext",
|
|
3936
|
-
Z.registerLanguage("python",
|
|
3937
|
-
Z.registerLanguage("java",
|
|
3938
|
-
Z.registerLanguage("bash",
|
|
3939
|
-
Z.registerLanguage("sql",
|
|
3931
|
+
Z.registerLanguage("xml", $t);
|
|
3932
|
+
Z.registerLanguage("javascript", Ft);
|
|
3933
|
+
Z.registerLanguage("json", Gt);
|
|
3934
|
+
Z.registerLanguage("yaml", Kt);
|
|
3935
|
+
Z.registerLanguage("plaintext", Wt);
|
|
3936
|
+
Z.registerLanguage("python", Yt);
|
|
3937
|
+
Z.registerLanguage("java", Zt);
|
|
3938
|
+
Z.registerLanguage("bash", Qt);
|
|
3939
|
+
Z.registerLanguage("sql", qt);
|
|
3940
3940
|
var g = /* @__PURE__ */ ((e) => (e.EQUAL = "equal", e.DELETE = "removed", e.ADD = "added", e.EMPTY = "empty", e))(g || {});
|
|
3941
|
-
const X = "<code-diff-modified>", V = "</code-diff-modified>",
|
|
3941
|
+
const X = "<code-diff-modified>", V = "</code-diff-modified>", Xt = X.replace("<", "<").replace(">", ">"), Vt = V.replace("<", "<").replace(">", ">"), fe = (e) => e === void 0 ? g.EQUAL : e.added ? g.ADD : e.removed ? g.DELETE : g.EQUAL, xe = (e, n, t = "word") => typeof e > "u" ? n : typeof n > "u" ? e : (t === "char" ? $n : Pn)(e, n).filter((c) => fe(c) !== g.DELETE).map(
|
|
3942
3942
|
(c) => fe(c) === g.ADD ? `${X}${c.value}${V}` : c.value
|
|
3943
3943
|
).join(""), Y = (e, n) => {
|
|
3944
3944
|
if (!n.match(new RegExp(`(${X}|${V})`, "g")))
|
|
@@ -3969,9 +3969,9 @@ const X = "<code-diff-modified>", V = "</code-diff-modified>", qt = X.replace("<
|
|
|
3969
3969
|
}
|
|
3970
3970
|
});
|
|
3971
3971
|
};
|
|
3972
|
-
return r(l), l.innerHTML.replace(new RegExp(
|
|
3972
|
+
return r(l), l.innerHTML.replace(new RegExp(Xt, "g"), '<span class="x">').replace(new RegExp(Vt, "g"), "</span>");
|
|
3973
3973
|
};
|
|
3974
|
-
function
|
|
3974
|
+
function jt(e, n, t = "plaintext", s = "word", c = 10) {
|
|
3975
3975
|
var v;
|
|
3976
3976
|
const l = () => ({ type: g.EMPTY }), i = (m, d, T) => ({ type: m, num: d, code: T }), r = fn(e, n);
|
|
3977
3977
|
let a = 0, o = 0, b = !1;
|
|
@@ -4051,7 +4051,7 @@ function Vt(e, n, t = "plaintext", s = "word", c = 10) {
|
|
|
4051
4051
|
}
|
|
4052
4052
|
return p;
|
|
4053
4053
|
}
|
|
4054
|
-
function
|
|
4054
|
+
function Jt(e, n, t = "plaintext", s = "word", c = 2) {
|
|
4055
4055
|
var E;
|
|
4056
4056
|
const l = fn(e, n);
|
|
4057
4057
|
let i = 0, r = 0, a = !1;
|
|
@@ -4137,21 +4137,21 @@ function jt(e, n, t = "plaintext", s = "word", c = 2) {
|
|
|
4137
4137
|
}
|
|
4138
4138
|
return b;
|
|
4139
4139
|
}
|
|
4140
|
-
const
|
|
4140
|
+
const es = { key: 0 }, ns = /* @__PURE__ */ k("td", { class: "blob-num blob-num-empty empty-cell" }, " > ", -1), ts = /* @__PURE__ */ k("td", { class: "blob-num blob-num-empty empty-cell" }, " > ", -1), ss = /* @__PURE__ */ k("td", {
|
|
4141
4141
|
class: "blob-code blob-code-empty empty-cell",
|
|
4142
4142
|
align: "left"
|
|
4143
|
-
}, " ⋯ ", -1),
|
|
4144
|
-
es,
|
|
4143
|
+
}, " ⋯ ", -1), is = [
|
|
4145
4144
|
ns,
|
|
4146
|
-
ts
|
|
4147
|
-
|
|
4145
|
+
ts,
|
|
4146
|
+
ss
|
|
4147
|
+
], rs = { key: 1 }, as = ["data-code-marker", "innerHTML"], os = /* @__PURE__ */ _e({
|
|
4148
4148
|
__name: "UnifiedLine",
|
|
4149
4149
|
props: {
|
|
4150
4150
|
line: null
|
|
4151
4151
|
},
|
|
4152
4152
|
setup(e) {
|
|
4153
4153
|
const n = (t) => t === g.DELETE ? "-" : t === g.ADD ? "+" : "";
|
|
4154
|
-
return (t, s) => e.line.fold ? (P(), G("tr",
|
|
4154
|
+
return (t, s) => e.line.fold ? (P(), G("tr", es, is)) : (P(), G("tr", rs, [
|
|
4155
4155
|
k("td", {
|
|
4156
4156
|
class: ge(["blob-num", {
|
|
4157
4157
|
"blob-num-deletion": e.line.type === $(g).DELETE,
|
|
@@ -4177,24 +4177,22 @@ const Jt = { key: 0 }, es = /* @__PURE__ */ k("td", { class: "blob-num blob-num-
|
|
|
4177
4177
|
class: "blob-code-inner blob-code-marker",
|
|
4178
4178
|
"data-code-marker": n(e.line.type),
|
|
4179
4179
|
innerHTML: e.line.code
|
|
4180
|
-
}, null, 8,
|
|
4180
|
+
}, null, 8, as)
|
|
4181
4181
|
], 2)
|
|
4182
4182
|
]));
|
|
4183
4183
|
}
|
|
4184
|
-
}),
|
|
4184
|
+
}), cs = { class: "diff-table" }, ls = /* @__PURE__ */ _e({
|
|
4185
4185
|
__name: "UnifiedViewer",
|
|
4186
4186
|
props: {
|
|
4187
4187
|
diffChange: null
|
|
4188
4188
|
},
|
|
4189
4189
|
setup(e) {
|
|
4190
|
-
return (n, t) => (P(), G("
|
|
4191
|
-
k("
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
}, null, 8, ["line"]))), 128))
|
|
4197
|
-
])
|
|
4190
|
+
return (n, t) => (P(), G("table", cs, [
|
|
4191
|
+
k("tbody", null, [
|
|
4192
|
+
(P(!0), G(ue, null, He(e.diffChange, (s, c) => (P(), Re(os, {
|
|
4193
|
+
key: c,
|
|
4194
|
+
line: s
|
|
4195
|
+
}, null, 8, ["line"]))), 128))
|
|
4198
4196
|
])
|
|
4199
4197
|
]));
|
|
4200
4198
|
}
|
|
@@ -4245,31 +4243,29 @@ const Jt = { key: 0 }, es = /* @__PURE__ */ k("td", { class: "blob-num blob-num-
|
|
|
4245
4243
|
], 64))), 256))
|
|
4246
4244
|
]));
|
|
4247
4245
|
}
|
|
4248
|
-
}), ms = { class: "file
|
|
4246
|
+
}), ms = { class: "file-diff-split diff-table" }, ys = /* @__PURE__ */ k("colgroup", null, [
|
|
4249
4247
|
/* @__PURE__ */ k("col", { width: "44" }),
|
|
4250
4248
|
/* @__PURE__ */ k("col"),
|
|
4251
4249
|
/* @__PURE__ */ k("col", { width: "44" }),
|
|
4252
4250
|
/* @__PURE__ */ k("col")
|
|
4253
|
-
], -1),
|
|
4251
|
+
], -1), Ns = /* @__PURE__ */ _e({
|
|
4254
4252
|
__name: "SplitViewer",
|
|
4255
4253
|
props: {
|
|
4256
4254
|
diffChange: null
|
|
4257
4255
|
},
|
|
4258
4256
|
setup(e) {
|
|
4259
|
-
return (n, t) => (P(), G("
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
}, null, 8, ["split-line"]))), 128))
|
|
4267
|
-
])
|
|
4257
|
+
return (n, t) => (P(), G("table", ms, [
|
|
4258
|
+
ys,
|
|
4259
|
+
k("tbody", null, [
|
|
4260
|
+
(P(!0), G(ue, null, He(e.diffChange, (s, c) => (P(), Re(_s, {
|
|
4261
|
+
key: c,
|
|
4262
|
+
"split-line": s
|
|
4263
|
+
}, null, 8, ["split-line"]))), 128))
|
|
4268
4264
|
])
|
|
4269
4265
|
]));
|
|
4270
4266
|
}
|
|
4271
4267
|
});
|
|
4272
|
-
const
|
|
4268
|
+
const As = /* @__PURE__ */ _e({
|
|
4273
4269
|
__name: "CodeDiff",
|
|
4274
4270
|
props: {
|
|
4275
4271
|
newString: null,
|
|
@@ -4279,7 +4275,8 @@ const vs = { class: "code-diff-view" }, Ts = /* @__PURE__ */ _e({
|
|
|
4279
4275
|
diffStyle: { default: "word" },
|
|
4280
4276
|
outputFormat: { default: "line-by-line" },
|
|
4281
4277
|
trim: { type: Boolean, default: !1 },
|
|
4282
|
-
noDiffLineFeed: { type: Boolean, default: !1 }
|
|
4278
|
+
noDiffLineFeed: { type: Boolean, default: !1 },
|
|
4279
|
+
maxHeight: { default: void 0 }
|
|
4283
4280
|
},
|
|
4284
4281
|
setup(e) {
|
|
4285
4282
|
const n = e, t = ve(() => n.outputFormat === "line-by-line"), s = ve(() => {
|
|
@@ -4291,25 +4288,28 @@ const vs = { class: "code-diff-view" }, Ts = /* @__PURE__ */ _e({
|
|
|
4291
4288
|
return n.noDiffLineFeed ? i.replace(/(\r\n)/g, `
|
|
4292
4289
|
`) : i;
|
|
4293
4290
|
}), l = ve(
|
|
4294
|
-
() => t.value ?
|
|
4291
|
+
() => t.value ? Jt(s.value, c.value, n.language, n.diffStyle, n.context) : jt(s.value, c.value, n.language, n.diffStyle, n.context)
|
|
4295
4292
|
);
|
|
4296
|
-
return (i, r) => (P(), G("div",
|
|
4293
|
+
return (i, r) => (P(), G("div", {
|
|
4294
|
+
class: "code-diff-view",
|
|
4295
|
+
style: Cn({ maxHeight: e.maxHeight })
|
|
4296
|
+
}, [
|
|
4297
4297
|
$(t) ? (P(), Re(ls, {
|
|
4298
4298
|
key: 0,
|
|
4299
4299
|
"diff-change": $(l)
|
|
4300
|
-
}, null, 8, ["diff-change"])) : (P(), Re(
|
|
4300
|
+
}, null, 8, ["diff-change"])) : (P(), Re(Ns, {
|
|
4301
4301
|
key: 1,
|
|
4302
4302
|
"diff-change": $(l)
|
|
4303
4303
|
}, null, 8, ["diff-change"]))
|
|
4304
|
-
]));
|
|
4304
|
+
], 4));
|
|
4305
4305
|
}
|
|
4306
|
-
}),
|
|
4307
|
-
e.component("CodeDiff",
|
|
4308
|
-
},
|
|
4309
|
-
install:
|
|
4306
|
+
}), vs = (e) => {
|
|
4307
|
+
e.component("CodeDiff", As);
|
|
4308
|
+
}, ws = {
|
|
4309
|
+
install: vs,
|
|
4310
4310
|
hljs: Z
|
|
4311
4311
|
};
|
|
4312
4312
|
export {
|
|
4313
|
-
|
|
4314
|
-
|
|
4313
|
+
As as CodeDiff,
|
|
4314
|
+
ws as default
|
|
4315
4315
|
};
|