v-code-diff 1.14.1 → 1.15.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 -0
- package/dist/v2/index.cjs +18 -18
- package/dist/v2/index.es.js +733 -684
- package/dist/v2/index.umd.js +20 -20
- package/dist/v2.7/index.cjs +12 -12
- package/dist/v2.7/index.es.js +219 -189
- package/dist/v2.7/index.umd.js +12 -12
- package/dist/v3/index.cjs +27 -27
- package/dist/v3/index.es.js +1508 -1477
- package/dist/v3/index.umd.js +27 -27
- package/package.json +1 -1
- package/src/CodeDiff.vue +8 -4
- package/src/split/SplitLine.vue +20 -2
- package/src/split/SplitViewer.vue +12 -2
- package/src/types.ts +7 -0
- package/src/unified/UnifiedLine.vue +21 -4
- package/src/unified/UnifiedViewer.vue +12 -2
- package/types/index.d.ts +10 -1
package/dist/v3/index.cjs
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".code-diff-view[theme=light]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--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: #1F2328;--color-diff-blob-addition-fg: #1F2328;--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: #1F2328;--color-diff-blob-deletion-fg: #1F2328;--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: #656d76;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(31,35,40,.15);--color-diffstat-addition-border: rgba(31,35,40,.15);--color-diffstat-addition-bg: #1f883d;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #6639ba;--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: #1F2328;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #656d76;--color-codemirror-cursor: #1F2328;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #1F2328;--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: #1f883d;--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(31,35,40,.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-control-border-color-emphasis: #858F99;--color-avatar-bg: #ffffff;--color-avatar-border: rgba(31,35,40,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: 0 0 0 2px 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(31,35,40,.12), 0 8px 24px rgba(66,74,83,.12);--color-overlay-backdrop: rgba(140,149,159,.2);--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(31,35,40,.15);--color-btn-shadow: 0 1px 0 rgba(31,35,40,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(31,35,40,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(31,35,40,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-counter-bg: rgba(31,35,40,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #1f883d;--color-btn-primary-border: rgba(31,35,40,.15);--color-btn-primary-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #1a7f37;--color-btn-primary-hover-border: rgba(31,35,40,.15);--color-btn-primary-selected-bg: hsla(137,66%,28%,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(31,35,40,.15);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(0,45,17,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(31,35,40,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(31,35,40,.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(31,35,40,.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-counter-bg: #0969da1a;--color-btn-outline-counter-fg: #0550ae;--color-btn-outline-hover-counter-fg: #ffffff;--color-btn-outline-disabled-counter-fg: rgba(9,105,218,.5);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(31,35,40,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(31,35,40,.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(31,35,40,.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-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-counter-fg: #a40e26;--color-btn-danger-hover-counter-fg: #ffffff;--color-btn-danger-disabled-counter-fg: rgba(207,34,46,.5);--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: #d1242f;--color-switch-track-bg: #eaeef2;--color-switch-track-hover-bg: hsla(210,24%,90%,1);--color-switch-track-active-bg: hsla(210,24%,88%,1);--color-switch-track-disabled-bg: #8c959f;--color-switch-track-fg: #656d76;--color-switch-track-disabled-fg: #ffffff;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: #0969da;--color-switch-track-checked-hover-bg: #0860CA;--color-switch-track-checked-active-bg: #0757BA;--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #ffffff;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #ffffff;--color-switch-knob-disabled-bg: #f6f8fa;--color-switch-knob-border: #858F99;--color-switch-knob-checked-bg: #ffffff;--color-switch-knob-checked-disabled-bg: #f6f8fa;--color-switch-knob-checked-border: #0969da;--color-segmented-control-bg: #eaeef2;--color-segmented-control-button-bg: #ffffff;--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: #8c959f;--color-tree-view-item-chevron-hover-bg: rgba(208,215,222,.32);--color-tree-view-item-directory-fill: #54aeff;--color-fg-default: #1F2328;--color-fg-muted: #656d76;--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(31,35,40,.15);--color-shadow-small: 0 1px 0 rgba(31,35,40,.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: #1f883d;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #9a6700;--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: #d1242f;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #1f883d;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #d1242f;--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(31,35,40,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(31,35,40,.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-scale-black: #1F2328;--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[theme=light] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=light] code.hljs{padding:3px 5px}.code-diff-view[theme=light] .hljs{color:#24292e;background:#fff}.code-diff-view[theme=light] .hljs-doctag,.code-diff-view[theme=light] .hljs-keyword,.code-diff-view[theme=light] .hljs-meta .hljs-keyword,.code-diff-view[theme=light] .hljs-template-tag,.code-diff-view[theme=light] .hljs-template-variable,.code-diff-view[theme=light] .hljs-type,.code-diff-view[theme=light] .hljs-variable.language_{color:#d73a49}.code-diff-view[theme=light] .hljs-title,.code-diff-view[theme=light] .hljs-title.class_,.code-diff-view[theme=light] .hljs-title.class_.inherited__,.code-diff-view[theme=light] .hljs-title.function_{color:#6f42c1}.code-diff-view[theme=light] .hljs-attr,.code-diff-view[theme=light] .hljs-attribute,.code-diff-view[theme=light] .hljs-literal,.code-diff-view[theme=light] .hljs-meta,.code-diff-view[theme=light] .hljs-number,.code-diff-view[theme=light] .hljs-operator,.code-diff-view[theme=light] .hljs-variable,.code-diff-view[theme=light] .hljs-selector-attr,.code-diff-view[theme=light] .hljs-selector-class,.code-diff-view[theme=light] .hljs-selector-id{color:#005cc5}.code-diff-view[theme=light] .hljs-regexp,.code-diff-view[theme=light] .hljs-string,.code-diff-view[theme=light] .hljs-meta .hljs-string{color:#032f62}.code-diff-view[theme=light] .hljs-built_in,.code-diff-view[theme=light] .hljs-symbol{color:#e36209}.code-diff-view[theme=light] .hljs-comment,.code-diff-view[theme=light] .hljs-code,.code-diff-view[theme=light] .hljs-formula{color:#6a737d}.code-diff-view[theme=light] .hljs-name,.code-diff-view[theme=light] .hljs-quote,.code-diff-view[theme=light] .hljs-selector-tag,.code-diff-view[theme=light] .hljs-selector-pseudo{color:#22863a}.code-diff-view[theme=light] .hljs-subst{color:#24292e}.code-diff-view[theme=light] .hljs-section{color:#005cc5;font-weight:700}.code-diff-view[theme=light] .hljs-bullet{color:#735c0f}.code-diff-view[theme=light] .hljs-emphasis{color:#24292e;font-style:italic}.code-diff-view[theme=light] .hljs-strong{color:#24292e;font-weight:700}.code-diff-view[theme=light] .hljs-addition{color:#22863a;background-color:#f0fff4}.code-diff-view[theme=light] .hljs-deletion{color:#b31d28;background-color:#ffeef0}.code-diff-view[theme=dark]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--color-canvas-default-transparent: rgba(13,17,23,0);--color-page-header-bg: #0d1117;--color-marketing-icon-primary: #79c0ff;--color-marketing-icon-secondary: #1f6feb;--color-diff-blob-addition-num-text: #e6edf3;--color-diff-blob-addition-fg: #e6edf3;--color-diff-blob-addition-num-bg: rgba(63,185,80,.3);--color-diff-blob-addition-line-bg: rgba(46,160,67,.15);--color-diff-blob-addition-word-bg: rgba(46,160,67,.4);--color-diff-blob-deletion-num-text: #e6edf3;--color-diff-blob-deletion-fg: #e6edf3;--color-diff-blob-deletion-num-bg: rgba(248,81,73,.3);--color-diff-blob-deletion-line-bg: rgba(248,81,73,.1);--color-diff-blob-deletion-word-bg: rgba(248,81,73,.4);--color-diff-blob-hunk-num-bg: rgba(56,139,253,.4);--color-diff-blob-expander-icon: #7d8590;--color-diff-blob-selected-line-highlight-mix-blend-mode: screen;--color-diffstat-deletion-border: rgba(240,246,252,.1);--color-diffstat-addition-border: rgba(240,246,252,.1);--color-diffstat-addition-bg: #3fb950;--color-search-keyword-hl: rgba(210,153,34,.4);--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-codemirror-text: #e6edf3;--color-codemirror-bg: #0d1117;--color-codemirror-gutters-bg: #0d1117;--color-codemirror-guttermarker-text: #0d1117;--color-codemirror-guttermarker-subtle-text: #6e7681;--color-codemirror-linenumber-text: #7d8590;--color-codemirror-cursor: #e6edf3;--color-codemirror-selection-bg: rgba(56,139,253,.4);--color-codemirror-activeline-bg: rgba(110,118,129,.1);--color-codemirror-matchingbracket-text: #e6edf3;--color-codemirror-lines-bg: #0d1117;--color-codemirror-syntax-comment: #8b949e;--color-codemirror-syntax-constant: #79c0ff;--color-codemirror-syntax-entity: #d2a8ff;--color-codemirror-syntax-keyword: #ff7b72;--color-codemirror-syntax-storage: #ff7b72;--color-codemirror-syntax-string: #a5d6ff;--color-codemirror-syntax-support: #79c0ff;--color-codemirror-syntax-variable: #ffa657;--color-checks-bg: #010409;--color-checks-run-border-width: 1px;--color-checks-container-border-width: 1px;--color-checks-text-primary: #e6edf3;--color-checks-text-secondary: #7d8590;--color-checks-text-link: #2f81f7;--color-checks-btn-icon: #7d8590;--color-checks-btn-hover-icon: #e6edf3;--color-checks-btn-hover-bg: rgba(110,118,129,.1);--color-checks-input-text: #7d8590;--color-checks-input-placeholder-text: #6e7681;--color-checks-input-focus-text: #e6edf3;--color-checks-input-bg: #161b22;--color-checks-donut-error: #f85149;--color-checks-donut-pending: #d29922;--color-checks-donut-success: #2ea043;--color-checks-donut-neutral: #8b949e;--color-checks-dropdown-text: #e6edf3;--color-checks-dropdown-bg: #161b22;--color-checks-dropdown-border: #30363d;--color-checks-dropdown-shadow: rgba(1,4,9,.3);--color-checks-dropdown-hover-text: #e6edf3;--color-checks-dropdown-hover-bg: rgba(110,118,129,.1);--color-checks-dropdown-btn-hover-text: #e6edf3;--color-checks-dropdown-btn-hover-bg: rgba(110,118,129,.1);--color-checks-scrollbar-thumb-bg: rgba(110,118,129,.4);--color-checks-header-label-text: #7d8590;--color-checks-header-label-open-text: #e6edf3;--color-checks-header-border: #21262d;--color-checks-header-icon: #7d8590;--color-checks-line-text: #7d8590;--color-checks-line-num-text: #6e7681;--color-checks-line-timestamp-text: #6e7681;--color-checks-line-hover-bg: rgba(110,118,129,.1);--color-checks-line-selected-bg: rgba(56,139,253,.1);--color-checks-line-selected-num-text: #2f81f7;--color-checks-line-dt-fm-text: #ffffff;--color-checks-line-dt-fm-bg: #9e6a03;--color-checks-gate-bg: rgba(187,128,9,.15);--color-checks-gate-text: #7d8590;--color-checks-gate-waiting-text: #d29922;--color-checks-step-header-open-bg: #161b22;--color-checks-step-error-text: #f85149;--color-checks-step-warning-text: #d29922;--color-checks-logline-text: #7d8590;--color-checks-logline-num-text: #6e7681;--color-checks-logline-debug-text: #a371f7;--color-checks-logline-error-text: #7d8590;--color-checks-logline-error-num-text: #6e7681;--color-checks-logline-error-bg: rgba(248,81,73,.1);--color-checks-logline-warning-text: #7d8590;--color-checks-logline-warning-num-text: #d29922;--color-checks-logline-warning-bg: rgba(187,128,9,.15);--color-checks-logline-command-text: #2f81f7;--color-checks-logline-section-text: #3fb950;--color-checks-ansi-black: #0d1117;--color-checks-ansi-black-bright: #161b22;--color-checks-ansi-white: #b1bac4;--color-checks-ansi-white-bright: #b1bac4;--color-checks-ansi-gray: #6e7681;--color-checks-ansi-red: #ff7b72;--color-checks-ansi-red-bright: #ffa198;--color-checks-ansi-green: #3fb950;--color-checks-ansi-green-bright: #56d364;--color-checks-ansi-yellow: #d29922;--color-checks-ansi-yellow-bright: #e3b341;--color-checks-ansi-blue: #58a6ff;--color-checks-ansi-blue-bright: #79c0ff;--color-checks-ansi-magenta: #bc8cff;--color-checks-ansi-magenta-bright: #d2a8ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #0d1117;--color-project-sidebar-bg: #161b22;--color-project-gradient-in: #161b22;--color-project-gradient-out: rgba(22,27,34,0);--color-mktg-btn-bg: #f6f8fa;--color-mktg-btn-shadow-outline: rgb(255 255 255 / 25%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(255 255 255 / 25%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 4px 7px rgba(0, 0, 0, .15), 0 100px 80px rgba(255, 255, 255, .02), 0 42px 33px rgba(255, 255, 255, .024), 0 22px 18px rgba(255, 255, 255, .028), 0 12px 10px rgba(255, 255, 255, .034), 0 7px 5px rgba(255, 255, 255, .04), 0 3px 2px rgba(255, 255, 255, .07);--color-mktg-btn-shadow-hover-muted: rgb(255 255 255) 0 0 0 2px inset;--color-control-border-color-emphasis: #606771;--color-avatar-bg: rgba(255,255,255,.1);--color-avatar-border: rgba(240,246,252,.1);--color-avatar-stack-fade: #30363d;--color-avatar-stack-fade-more: #21262d;--color-avatar-child-shadow: 0 0 0 2px #0d1117;--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: #484f58;--color-select-menu-tap-highlight: rgba(48,54,61,.5);--color-select-menu-tap-focus-bg: #0c2d6b;--color-overlay-shadow: 0 0 0 1px #30363d, 0 16px 32px rgba(1,4,9,.85);--color-overlay-backdrop: rgba(22,27,34,.4);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #161b22;--color-header-divider: #8b949e;--color-header-logo: #f0f6fc;--color-header-search-bg: #0d1117;--color-header-search-border: #30363d;--color-sidenav-selected-bg: #21262d;--color-menu-bg-active: #161b22;--color-input-disabled-bg: rgba(110,118,129,0);--color-timeline-badge-bg: #21262d;--color-ansi-black: #484f58;--color-ansi-black-bright: #6e7681;--color-ansi-white: #b1bac4;--color-ansi-white-bright: #ffffff;--color-ansi-gray: #6e7681;--color-ansi-red: #ff7b72;--color-ansi-red-bright: #ffa198;--color-ansi-green: #3fb950;--color-ansi-green-bright: #56d364;--color-ansi-yellow: #d29922;--color-ansi-yellow-bright: #e3b341;--color-ansi-blue: #58a6ff;--color-ansi-blue-bright: #79c0ff;--color-ansi-magenta: #bc8cff;--color-ansi-magenta-bright: #d2a8ff;--color-ansi-cyan: #39c5cf;--color-ansi-cyan-bright: #56d4dd;--color-btn-text: #c9d1d9;--color-btn-bg: #21262d;--color-btn-border: rgba(240,246,252,.1);--color-btn-shadow: 0 0 transparent;--color-btn-inset-shadow: 0 0 transparent;--color-btn-hover-bg: #30363d;--color-btn-hover-border: #8b949e;--color-btn-active-bg: hsla(212,12%,18%,1);--color-btn-active-border: #6e7681;--color-btn-selected-bg: #161b22;--color-btn-counter-bg: #30363d;--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #238636;--color-btn-primary-border: rgba(240,246,252,.1);--color-btn-primary-shadow: 0 0 transparent;--color-btn-primary-inset-shadow: 0 0 transparent;--color-btn-primary-hover-bg: #2ea043;--color-btn-primary-hover-border: rgba(240,246,252,.1);--color-btn-primary-selected-bg: #238636;--color-btn-primary-selected-shadow: 0 0 transparent;--color-btn-primary-disabled-text: rgba(255,255,255,.5);--color-btn-primary-disabled-bg: rgba(35,134,54,.6);--color-btn-primary-disabled-border: rgba(240,246,252,.1);--color-btn-primary-icon: #ffffff;--color-btn-primary-counter-bg: rgba(4,38,15,.2);--color-btn-outline-text: #388bfd;--color-btn-outline-hover-text: #58a6ff;--color-btn-outline-hover-bg: #30363d;--color-btn-outline-hover-border: rgba(240,246,252,.1);--color-btn-outline-hover-shadow: 0 1px 0 rgba(1,4,9,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(5,29,77,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: #0d419d;--color-btn-outline-selected-border: rgba(240,246,252,.1);--color-btn-outline-selected-shadow: 0 0 transparent;--color-btn-outline-disabled-text: rgba(88,166,255,.5);--color-btn-outline-disabled-bg: #0d1117;--color-btn-outline-disabled-counter-bg: rgba(31,111,235,.05);--color-btn-outline-counter-bg: rgba(5,29,77,.2);--color-btn-outline-hover-counter-fg: #58a6ff;--color-btn-outline-disabled-counter-fg: rgba(47,129,247,.5);--color-btn-outline-counter-fg: #388bfd;--color-btn-danger-text: #f85149;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #da3633;--color-btn-danger-hover-border: #f85149;--color-btn-danger-hover-shadow: 0 0 transparent;--color-btn-danger-hover-inset-shadow: 0 0 transparent;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: #b62324;--color-btn-danger-selected-border: #ff7b72;--color-btn-danger-selected-shadow: 0 0 transparent;--color-btn-danger-disabled-text: rgba(248,81,73,.5);--color-btn-danger-disabled-bg: #0d1117;--color-btn-danger-disabled-counter-bg: rgba(218,54,51,.05);--color-btn-danger-counter-bg: rgba(73,2,2,.2);--color-btn-danger-icon: #f85149;--color-btn-danger-counter-fg: #f85149;--color-btn-danger-disabled-counter-fg: rgba(248,81,73,.5);--color-btn-danger-hover-counter-fg: #ffffff;--color-underlinenav-icon: #6e7681;--color-underlinenav-border-hover: rgba(110,118,129,.4);--color-action-list-item-inline-divider: rgba(48,54,61,.48);--color-action-list-item-default-hover-bg: rgba(177,186,196,.12);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(177,186,196,.2);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(177,186,196,.08);--color-action-list-item-danger-hover-bg: rgba(248,81,73,.16);--color-action-list-item-danger-active-bg: rgba(248,81,73,.24);--color-action-list-item-danger-hover-text: #ff7b72;--color-switch-track-bg: rgba(110,118,129,.1);--color-switch-track-hover-bg: hsla(215,8%,72%,.1);--color-switch-track-active-bg: rgba(110,118,129,.4);--color-switch-track-disabled-bg: #21262d;--color-switch-track-fg: #7d8590;--color-switch-track-disabled-fg: #010409;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: rgba(31,111,235,.35);--color-switch-track-checked-hover-bg: rgba(31,111,235,.5);--color-switch-track-checked-active-bg: rgba(31,111,235,.65);--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #010409;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #0d1117;--color-switch-knob-border: #606771;--color-switch-knob-disabled-bg: #161b22;--color-switch-knob-checked-bg: #0d1117;--color-switch-knob-checked-disabled-bg: #161b22;--color-switch-knob-checked-border: rgba(31,111,235,.35);--color-segmented-control-bg: rgba(110,118,129,.1);--color-segmented-control-button-bg: #0d1117;--color-segmented-control-button-hover-bg: #30363d;--color-segmented-control-button-active-bg: #21262d;--color-segmented-control-button-selected-border: #6e7681;--color-tree-view-item-chevron-hover-bg: rgba(177,186,196,.12);--color-tree-view-item-directory-fill: #7d8590;--color-fg-default: #e6edf3;--color-fg-muted: #7d8590;--color-fg-subtle: #6e7681;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #0d1117;--color-canvas-overlay: #161b22;--color-canvas-inset: #010409;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-border-subtle: rgba(240,246,252,.1);--color-shadow-small: 0 0 transparent;--color-shadow-medium: 0 3px 6px #010409;--color-shadow-large: 0 8px 24px #010409;--color-shadow-extra-large: 0 12px 48px #010409;--color-neutral-emphasis-plus: #6e7681;--color-neutral-emphasis: #6e7681;--color-neutral-muted: rgba(110,118,129,.4);--color-neutral-subtle: rgba(110,118,129,.1);--color-accent-fg: #2f81f7;--color-accent-emphasis: #1f6feb;--color-accent-muted: rgba(56,139,253,.4);--color-accent-subtle: rgba(56,139,253,.1);--color-success-fg: #3fb950;--color-success-emphasis: #238636;--color-success-muted: rgba(46,160,67,.4);--color-success-subtle: rgba(46,160,67,.15);--color-attention-fg: #d29922;--color-attention-emphasis: #9e6a03;--color-attention-muted: rgba(187,128,9,.4);--color-attention-subtle: rgba(187,128,9,.15);--color-severe-fg: #db6d28;--color-severe-emphasis: #bd561d;--color-severe-muted: rgba(219,109,40,.4);--color-severe-subtle: rgba(219,109,40,.1);--color-danger-fg: #f85149;--color-danger-emphasis: #da3633;--color-danger-muted: rgba(248,81,73,.4);--color-danger-subtle: rgba(248,81,73,.1);--color-open-fg: #3fb950;--color-open-emphasis: #238636;--color-open-muted: rgba(46,160,67,.4);--color-open-subtle: rgba(46,160,67,.15);--color-closed-fg: #f85149;--color-closed-emphasis: #da3633;--color-closed-muted: rgba(248,81,73,.4);--color-closed-subtle: rgba(248,81,73,.15);--color-done-fg: #a371f7;--color-done-emphasis: #8957e5;--color-done-muted: rgba(163,113,247,.4);--color-done-subtle: rgba(163,113,247,.1);--color-sponsors-fg: #db61a2;--color-sponsors-emphasis: #bf4b8a;--color-sponsors-muted: rgba(219,97,162,.4);--color-sponsors-subtle: rgba(219,97,162,.1);--color-primer-fg-disabled: #484f58;--color-primer-canvas-backdrop: rgba(1,4,9,.8);--color-primer-canvas-sticky: rgba(13,17,23,.95);--color-primer-border-active: #f78166;--color-primer-border-contrast: rgba(255,255,255,.2);--color-primer-shadow-highlight: 0 0 transparent;--color-primer-shadow-inset: 0 0 transparent;--color-scale-black: #010409;--color-scale-white: #ffffff;--color-scale-gray-0: #f0f6fc;--color-scale-gray-1: #c9d1d9;--color-scale-gray-2: #b1bac4;--color-scale-gray-3: #8b949e;--color-scale-gray-4: #6e7681;--color-scale-gray-5: #484f58;--color-scale-gray-6: #30363d;--color-scale-gray-7: #21262d;--color-scale-gray-8: #161b22;--color-scale-gray-9: #0d1117;--color-scale-blue-0: #cae8ff;--color-scale-blue-1: #a5d6ff;--color-scale-blue-2: #79c0ff;--color-scale-blue-3: #58a6ff;--color-scale-blue-4: #388bfd;--color-scale-blue-5: #1f6feb;--color-scale-blue-6: #1158c7;--color-scale-blue-7: #0d419d;--color-scale-blue-8: #0c2d6b;--color-scale-blue-9: #051d4d;--color-scale-green-0: #aff5b4;--color-scale-green-1: #7ee787;--color-scale-green-2: #56d364;--color-scale-green-3: #3fb950;--color-scale-green-4: #2ea043;--color-scale-green-5: #238636;--color-scale-green-6: #196c2e;--color-scale-green-7: #0f5323;--color-scale-green-8: #033a16;--color-scale-green-9: #04260f;--color-scale-yellow-0: #f8e3a1;--color-scale-yellow-1: #f2cc60;--color-scale-yellow-2: #e3b341;--color-scale-yellow-3: #d29922;--color-scale-yellow-4: #bb8009;--color-scale-yellow-5: #9e6a03;--color-scale-yellow-6: #845306;--color-scale-yellow-7: #693e00;--color-scale-yellow-8: #4b2900;--color-scale-yellow-9: #341a00;--color-scale-orange-0: #ffdfb6;--color-scale-orange-1: #ffc680;--color-scale-orange-2: #ffa657;--color-scale-orange-3: #f0883e;--color-scale-orange-4: #db6d28;--color-scale-orange-5: #bd561d;--color-scale-orange-6: #9b4215;--color-scale-orange-7: #762d0a;--color-scale-orange-8: #5a1e02;--color-scale-orange-9: #3d1300;--color-scale-red-0: #ffdcd7;--color-scale-red-1: #ffc1ba;--color-scale-red-2: #ffa198;--color-scale-red-3: #ff7b72;--color-scale-red-4: #f85149;--color-scale-red-5: #da3633;--color-scale-red-6: #b62324;--color-scale-red-7: #8e1519;--color-scale-red-8: #67060c;--color-scale-red-9: #490202;--color-scale-purple-0: #eddeff;--color-scale-purple-1: #e2c5ff;--color-scale-purple-2: #d2a8ff;--color-scale-purple-3: #bc8cff;--color-scale-purple-4: #a371f7;--color-scale-purple-5: #8957e5;--color-scale-purple-6: #6e40c9;--color-scale-purple-7: #553098;--color-scale-purple-8: #3c1e70;--color-scale-purple-9: #271052;--color-scale-pink-0: #ffdaec;--color-scale-pink-1: #ffbedd;--color-scale-pink-2: #ff9bce;--color-scale-pink-3: #f778ba;--color-scale-pink-4: #db61a2;--color-scale-pink-5: #bf4b8a;--color-scale-pink-6: #9e3670;--color-scale-pink-7: #7d2457;--color-scale-pink-8: #5e103e;--color-scale-pink-9: #42062a;--color-scale-coral-0: #ffddd2;--color-scale-coral-1: #ffc2b2;--color-scale-coral-2: #ffa28b;--color-scale-coral-3: #f78166;--color-scale-coral-4: #ea6045;--color-scale-coral-5: #cf462d;--color-scale-coral-6: #ac3220;--color-scale-coral-7: #872012;--color-scale-coral-8: #640d04;--color-scale-coral-9: #460701}.code-diff-view[theme=dark] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=dark] code.hljs{padding:3px 5px}.code-diff-view[theme=dark] .hljs{color:#c9d1d9;background:#0d1117}.code-diff-view[theme=dark] .hljs-doctag,.code-diff-view[theme=dark] .hljs-keyword,.code-diff-view[theme=dark] .hljs-meta .hljs-keyword,.code-diff-view[theme=dark] .hljs-template-tag,.code-diff-view[theme=dark] .hljs-template-variable,.code-diff-view[theme=dark] .hljs-type,.code-diff-view[theme=dark] .hljs-variable.language_{color:#ff7b72}.code-diff-view[theme=dark] .hljs-title,.code-diff-view[theme=dark] .hljs-title.class_,.code-diff-view[theme=dark] .hljs-title.class_.inherited__,.code-diff-view[theme=dark] .hljs-title.function_{color:#d2a8ff}.code-diff-view[theme=dark] .hljs-attr,.code-diff-view[theme=dark] .hljs-attribute,.code-diff-view[theme=dark] .hljs-literal,.code-diff-view[theme=dark] .hljs-meta,.code-diff-view[theme=dark] .hljs-number,.code-diff-view[theme=dark] .hljs-operator,.code-diff-view[theme=dark] .hljs-variable,.code-diff-view[theme=dark] .hljs-selector-attr,.code-diff-view[theme=dark] .hljs-selector-class,.code-diff-view[theme=dark] .hljs-selector-id{color:#79c0ff}.code-diff-view[theme=dark] .hljs-regexp,.code-diff-view[theme=dark] .hljs-string,.code-diff-view[theme=dark] .hljs-meta .hljs-string{color:#a5d6ff}.code-diff-view[theme=dark] .hljs-built_in,.code-diff-view[theme=dark] .hljs-symbol{color:#ffa657}.code-diff-view[theme=dark] .hljs-comment,.code-diff-view[theme=dark] .hljs-code,.code-diff-view[theme=dark] .hljs-formula{color:#8b949e}.code-diff-view[theme=dark] .hljs-name,.code-diff-view[theme=dark] .hljs-quote,.code-diff-view[theme=dark] .hljs-selector-tag,.code-diff-view[theme=dark] .hljs-selector-pseudo{color:#7ee787}.code-diff-view[theme=dark] .hljs-subst{color:#c9d1d9}.code-diff-view[theme=dark] .hljs-section{color:#1f6feb;font-weight:700}.code-diff-view[theme=dark] .hljs-bullet{color:#f2cc60}.code-diff-view[theme=dark] .hljs-emphasis{color:#c9d1d9;font-style:italic}.code-diff-view[theme=dark] .hljs-strong{color:#c9d1d9;font-weight:700}.code-diff-view[theme=dark] .hljs-addition{color:#aff5b4;background-color:#033a16}.code-diff-view[theme=dark] .hljs-deletion{color:#ffdcd7;background-color:#67060c}.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{position:sticky;top:0;z-index:1;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 .info-left{color:var(--color-fg-default)}.code-diff-view .file-header .file-info .info-right{display:flex;justify-content:space-between;align-items:center;width:50%}.code-diff-view .file-header .file-info .diff-stat{display:inline-flex;align-items:center;gap:8px}.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 .file-header .file-info .diff-stat .diff-stat-ignored{color:var(--color-fg-subtle)}.code-diff-view .file-header .file-info .diff-commandbar{margin-left:auto;margin-right:1rem}.code-diff-view .file-header .file-info .diff-commandbar .command-item-button{background-color:transparent;color:var(--color-fg-subtle);border:none}.code-diff-view .file-header .file-info .diff-commandbar .command-item-button svg{fill:var(--color-fg-subtle)}.code-diff-view .file-header .file-info .diff-commandbar .command-item-button:hover{background-color:var(--color-btn-outline-hover-border)}.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 .current-diff{border:1px solid var(--color-border-muted)}.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 .diff-table .load-more{padding:8px;text-align:center}.code-diff-view .diff-table .load-more-button{padding:4px 12px;color:var(--color-accent-fg);background:transparent;border:1px solid var(--color-border-default);border-radius:4px;cursor:pointer}.code-diff-view .diff-table .load-more-button:hover{background-color:var(--color-accent-muted)}.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 .file-diff-split .no-select{user-select:none}.code-diff-view .empty-cell{cursor:default;background-color:var(--color-neutral-subtle);border-right-color:var(--color-border-muted)}.code-diff-view[data-v-0c5adc58] td:nth-child(1){display:none}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
3
|
-
`));var
|
|
4
|
-
`,p),b==-1&&(b=d.length-1);var v=d.substring(p,b+1);(s.hasOwnProperty?s.hasOwnProperty(v):s[v]!==void 0)?_+=String.fromCharCode(s[v]):(m==a&&(v=d.substring(p),b=d.length),_+=String.fromCharCode(m),s[v]=m,i[m++]=v),p=b+1}return _}var a=4e4,o=l(n);a=65535;var f=l(r);return{chars1:o,chars2:f,lineArray:i}},t.prototype.diff_charsToLines_=function(n,r){for(var i=0;i<n.length;i++){for(var s=n[i][1],l=[],a=0;a<s.length;a++)l[a]=r[s.charCodeAt(a)];n[i][1]=l.join("")}},t.prototype.diff_commonPrefix=function(n,r){if(!n||!r||n.charAt(0)!=r.charAt(0))return 0;for(var i=0,s=Math.min(n.length,r.length),l=s,a=0;i<l;)n.substring(a,l)==r.substring(a,l)?(i=l,a=i):s=l,l=Math.floor((s-i)/2+i);return l},t.prototype.diff_commonSuffix=function(n,r){if(!n||!r||n.charAt(n.length-1)!=r.charAt(r.length-1))return 0;for(var i=0,s=Math.min(n.length,r.length),l=s,a=0;i<l;)n.substring(n.length-l,n.length-a)==r.substring(r.length-l,r.length-a)?(i=l,a=i):s=l,l=Math.floor((s-i)/2+i);return l},t.prototype.diff_commonOverlap_=function(n,r){var i=n.length,s=r.length;if(i==0||s==0)return 0;i>s?n=n.substring(i-s):i<s&&(r=r.substring(0,i));var l=Math.min(i,s);if(n==r)return l;for(var a=0,o=1;;){var f=n.substring(l-o),d=r.indexOf(f);if(d==-1)return a;o+=d,(d==0||n.substring(l-o)==r.substring(0,o))&&(a=o,o++)}},t.prototype.diff_halfMatch_=function(n,r){if(this.Diff_Timeout<=0)return null;var i=n.length>r.length?n:r,s=n.length>r.length?r:n;if(i.length<4||s.length*2<i.length)return null;var l=this;function a(y,w,D){for(var T=y.substring(D,D+Math.floor(y.length/4)),L=-1,B="",S,R,$,U;(L=w.indexOf(T,L+1))!=-1;){var F=l.diff_commonPrefix(y.substring(D),w.substring(L)),K=l.diff_commonSuffix(y.substring(0,D),w.substring(0,L));B.length<K+F&&(B=w.substring(L-K,L)+w.substring(L,L+F),S=y.substring(0,D-K),R=y.substring(D+F),$=w.substring(0,L-K),U=w.substring(L+F))}return B.length*2>=y.length?[S,R,$,U,B]:null}var o=a(i,s,Math.ceil(i.length/4)),f=a(i,s,Math.ceil(i.length/2)),d;if(!o&&!f)return null;f?o?d=o[4].length>f[4].length?o:f:d=f:d=o;var _,p,b,m;n.length>r.length?(_=d[0],p=d[1],b=d[2],m=d[3]):(b=d[0],m=d[1],_=d[2],p=d[3]);var v=d[4];return[_,p,b,m,v]},t.prototype.diff_cleanupSemantic=function(n){for(var r=!1,i=[],s=0,l=null,a=0,o=0,f=0,d=0,_=0;a<n.length;)n[a][0]==h?(i[s++]=a,o=d,f=_,d=0,_=0,l=n[a][1]):(n[a][0]==g?d+=n[a][1].length:_+=n[a][1].length,l&&l.length<=Math.max(o,f)&&l.length<=Math.max(d,_)&&(n.splice(i[s-1],0,new t.Diff(c,l)),n[i[s-1]+1][0]=g,s--,s--,a=s>0?i[s-1]:-1,o=0,f=0,d=0,_=0,l=null,r=!0)),a++;for(r&&this.diff_cleanupMerge(n),this.diff_cleanupSemanticLossless(n),a=1;a<n.length;){if(n[a-1][0]==c&&n[a][0]==g){var p=n[a-1][1],b=n[a][1],m=this.diff_commonOverlap_(p,b),v=this.diff_commonOverlap_(b,p);m>=v?(m>=p.length/2||m>=b.length/2)&&(n.splice(a,0,new t.Diff(h,b.substring(0,m))),n[a-1][1]=p.substring(0,p.length-m),n[a+1][1]=b.substring(m),a++):(v>=p.length/2||v>=b.length/2)&&(n.splice(a,0,new t.Diff(h,p.substring(0,v))),n[a-1][0]=g,n[a-1][1]=b.substring(0,b.length-v),n[a+1][0]=c,n[a+1][1]=p.substring(v),a++),a++}a++}},t.prototype.diff_cleanupSemanticLossless=function(n){function r(v,y){if(!v||!y)return 6;var w=v.charAt(v.length-1),D=y.charAt(0),T=w.match(t.nonAlphaNumericRegex_),L=D.match(t.nonAlphaNumericRegex_),B=T&&w.match(t.whitespaceRegex_),S=L&&D.match(t.whitespaceRegex_),R=B&&w.match(t.linebreakRegex_),$=S&&D.match(t.linebreakRegex_),U=R&&v.match(t.blanklineEndRegex_),F=$&&y.match(t.blanklineStartRegex_);return U||F?5:R||$?4:T&&!B&&S?3:B||S?2:T||L?1:0}for(var i=1;i<n.length-1;){if(n[i-1][0]==h&&n[i+1][0]==h){var s=n[i-1][1],l=n[i][1],a=n[i+1][1],o=this.diff_commonSuffix(s,l);if(o){var f=l.substring(l.length-o);s=s.substring(0,s.length-o),l=f+l.substring(0,l.length-o),a=f+a}for(var d=s,_=l,p=a,b=r(s,l)+r(l,a);l.charAt(0)===a.charAt(0);){s+=l.charAt(0),l=l.substring(1)+a.charAt(0),a=a.substring(1);var m=r(s,l)+r(l,a);m>=b&&(b=m,d=s,_=l,p=a)}n[i-1][1]!=d&&(d?n[i-1][1]=d:(n.splice(i-1,1),i--),n[i][1]=_,p?n[i+1][1]=p:(n.splice(i+1,1),i--))}i++}},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){for(var r=!1,i=[],s=0,l=null,a=0,o=!1,f=!1,d=!1,_=!1;a<n.length;)n[a][0]==h?(n[a][1].length<this.Diff_EditCost&&(d||_)?(i[s++]=a,o=d,f=_,l=n[a][1]):(s=0,l=null),d=_=!1):(n[a][0]==c?_=!0:d=!0,l&&(o&&f&&d&&_||l.length<this.Diff_EditCost/2&&o+f+d+_==3)&&(n.splice(i[s-1],0,new t.Diff(c,l)),n[i[s-1]+1][0]=g,s--,l=null,o&&f?(d=_=!0,s=0):(s--,a=s>0?i[s-1]:-1,d=_=!1),r=!0)),a++;r&&this.diff_cleanupMerge(n)},t.prototype.diff_cleanupMerge=function(n){n.push(new t.Diff(h,""));for(var r=0,i=0,s=0,l="",a="",o;r<n.length;)switch(n[r][0]){case g:s++,a+=n[r][1],r++;break;case c:i++,l+=n[r][1],r++;break;case h:i+s>1?(i!==0&&s!==0&&(o=this.diff_commonPrefix(a,l),o!==0&&(r-i-s>0&&n[r-i-s-1][0]==h?n[r-i-s-1][1]+=a.substring(0,o):(n.splice(0,0,new t.Diff(h,a.substring(0,o))),r++),a=a.substring(o),l=l.substring(o)),o=this.diff_commonSuffix(a,l),o!==0&&(n[r][1]=a.substring(a.length-o)+n[r][1],a=a.substring(0,a.length-o),l=l.substring(0,l.length-o))),r-=i+s,n.splice(r,i+s),l.length&&(n.splice(r,0,new t.Diff(c,l)),r++),a.length&&(n.splice(r,0,new t.Diff(g,a)),r++),r++):r!==0&&n[r-1][0]==h?(n[r-1][1]+=n[r][1],n.splice(r,1)):r++,s=0,i=0,l="",a="";break}n[n.length-1][1]===""&&n.pop();var f=!1;for(r=1;r<n.length-1;)n[r-1][0]==h&&n[r+1][0]==h&&(n[r][1].substring(n[r][1].length-n[r-1][1].length)==n[r-1][1]?(n[r][1]=n[r-1][1]+n[r][1].substring(0,n[r][1].length-n[r-1][1].length),n[r+1][1]=n[r-1][1]+n[r+1][1],n.splice(r-1,1),f=!0):n[r][1].substring(0,n[r+1][1].length)==n[r+1][1]&&(n[r-1][1]+=n[r+1][1],n[r][1]=n[r][1].substring(n[r+1][1].length)+n[r+1][1],n.splice(r+1,1),f=!0)),r++;f&&this.diff_cleanupMerge(n)},t.prototype.diff_xIndex=function(n,r){var i=0,s=0,l=0,a=0,o;for(o=0;o<n.length&&(n[o][0]!==g&&(i+=n[o][1].length),n[o][0]!==c&&(s+=n[o][1].length),!(i>r));o++)l=i,a=s;return n.length!=o&&n[o][0]===c?a:a+(r-l)},t.prototype.diff_prettyHtml=function(n){for(var r=[],i=/&/g,s=/</g,l=/>/g,a=/\n/g,o=0;o<n.length;o++){var f=n[o][0],d=n[o][1],_=d.replace(i,"&").replace(s,"<").replace(l,">").replace(a,"¶<br>");switch(f){case g:r[o]='<ins style="background:#e6ffe6;">'+_+"</ins>";break;case c:r[o]='<del style="background:#ffe6e6;">'+_+"</del>";break;case h:r[o]="<span>"+_+"</span>";break}}return r.join("")},t.prototype.diff_text1=function(n){for(var r=[],i=0;i<n.length;i++)n[i][0]!==g&&(r[i]=n[i][1]);return r.join("")},t.prototype.diff_text2=function(n){for(var r=[],i=0;i<n.length;i++)n[i][0]!==c&&(r[i]=n[i][1]);return r.join("")},t.prototype.diff_levenshtein=function(n){for(var r=0,i=0,s=0,l=0;l<n.length;l++){var a=n[l][0],o=n[l][1];switch(a){case g:i+=o.length;break;case c:s+=o.length;break;case h:r+=Math.max(i,s),i=0,s=0;break}}return r+=Math.max(i,s),r},t.prototype.diff_toDelta=function(n){for(var r=[],i=0;i<n.length;i++)switch(n[i][0]){case g:r[i]="+"+encodeURI(n[i][1]);break;case c:r[i]="-"+n[i][1].length;break;case h:r[i]="="+n[i][1].length;break}return r.join(" ").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(n,r){for(var i=[],s=0,l=0,a=r.split(/\t/g),o=0;o<a.length;o++){var f=a[o].substring(1);switch(a[o].charAt(0)){case"+":try{i[s++]=new t.Diff(g,decodeURI(f))}catch(p){throw new Error("Illegal escape in diff_fromDelta: "+f)}break;case"-":case"=":var d=parseInt(f,10);if(isNaN(d)||d<0)throw new Error("Invalid number in diff_fromDelta: "+f);var _=n.substring(l,l+=d);a[o].charAt(0)=="="?i[s++]=new t.Diff(h,_):i[s++]=new t.Diff(c,_);break;default:if(a[o])throw new Error("Invalid diff operation in diff_fromDelta: "+a[o])}}if(l!=n.length)throw new Error("Delta length ("+l+") does not equal source text length ("+n.length+").");return i},t.prototype.match_main=function(n,r,i){if(n==null||r==null||i==null)throw new Error("Null input. (match_main)");return i=Math.max(0,Math.min(i,n.length)),n==r?0:n.length?n.substring(i,i+r.length)==r?i:this.match_bitap_(n,r,i):-1},t.prototype.match_bitap_=function(n,r,i){if(r.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var s=this.match_alphabet_(r),l=this;function a(S,R){var $=S/r.length,U=Math.abs(i-R);return l.Match_Distance?$+U/l.Match_Distance:U?1:$}var o=this.Match_Threshold,f=n.indexOf(r,i);f!=-1&&(o=Math.min(a(0,f),o),f=n.lastIndexOf(r,i+r.length),f!=-1&&(o=Math.min(a(0,f),o)));var d=1<<r.length-1;f=-1;for(var _,p,b=r.length+n.length,m,v=0;v<r.length;v++){for(_=0,p=b;_<p;)a(v,i+p)<=o?_=p:b=p,p=Math.floor((b-_)/2+_);b=p;var y=Math.max(1,i-p+1),w=Math.min(i+p,n.length)+r.length,D=Array(w+2);D[w+1]=(1<<v)-1;for(var T=w;T>=y;T--){var L=s[n.charAt(T-1)];if(v===0?D[T]=(D[T+1]<<1|1)&L:D[T]=(D[T+1]<<1|1)&L|((m[T+1]|m[T])<<1|1)|m[T+1],D[T]&d){var B=a(v,T-1);if(B<=o)if(o=B,f=T-1,f>i)y=Math.max(1,2*i-f);else break}}if(a(v+1,i)>o)break;m=D}return f},t.prototype.match_alphabet_=function(n){for(var r={},i=0;i<n.length;i++)r[n.charAt(i)]=0;for(var i=0;i<n.length;i++)r[n.charAt(i)]|=1<<n.length-i-1;return r},t.prototype.patch_addContext_=function(n,r){if(r.length!=0){if(n.start2===null)throw Error("patch not initialized");for(var i=r.substring(n.start2,n.start2+n.length1),s=0;r.indexOf(i)!=r.lastIndexOf(i)&&i.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)s+=this.Patch_Margin,i=r.substring(n.start2-s,n.start2+n.length1+s);s+=this.Patch_Margin;var l=r.substring(n.start2-s,n.start2);l&&n.diffs.unshift(new t.Diff(h,l));var a=r.substring(n.start2+n.length1,n.start2+n.length1+s);a&&n.diffs.push(new t.Diff(h,a)),n.start1-=l.length,n.start2-=l.length,n.length1+=l.length+a.length,n.length2+=l.length+a.length}},t.prototype.patch_make=function(n,r,i){var s,l;if(typeof n=="string"&&typeof r=="string"&&typeof i=="undefined")s=n,l=this.diff_main(s,r,!0),l.length>2&&(this.diff_cleanupSemantic(l),this.diff_cleanupEfficiency(l));else if(n&&typeof n=="object"&&typeof r=="undefined"&&typeof i=="undefined")l=n,s=this.diff_text1(l);else if(typeof n=="string"&&r&&typeof r=="object"&&typeof i=="undefined")s=n,l=r;else if(typeof n=="string"&&typeof r=="string"&&i&&typeof i=="object")s=n,l=i;else throw new Error("Unknown call format to patch_make.");if(l.length===0)return[];for(var a=[],o=new t.patch_obj,f=0,d=0,_=0,p=s,b=s,m=0;m<l.length;m++){var v=l[m][0],y=l[m][1];switch(!f&&v!==h&&(o.start1=d,o.start2=_),v){case g:o.diffs[f++]=l[m],o.length2+=y.length,b=b.substring(0,_)+y+b.substring(_);break;case c:o.length1+=y.length,o.diffs[f++]=l[m],b=b.substring(0,_)+b.substring(_+y.length);break;case h:y.length<=2*this.Patch_Margin&&f&&l.length!=m+1?(o.diffs[f++]=l[m],o.length1+=y.length,o.length2+=y.length):y.length>=2*this.Patch_Margin&&f&&(this.patch_addContext_(o,p),a.push(o),o=new t.patch_obj,f=0,p=b,d=_);break}v!==g&&(d+=y.length),v!==c&&(_+=y.length)}return f&&(this.patch_addContext_(o,p),a.push(o)),a},t.prototype.patch_deepCopy=function(n){for(var r=[],i=0;i<n.length;i++){var s=n[i],l=new t.patch_obj;l.diffs=[];for(var a=0;a<s.diffs.length;a++)l.diffs[a]=new t.Diff(s.diffs[a][0],s.diffs[a][1]);l.start1=s.start1,l.start2=s.start2,l.length1=s.length1,l.length2=s.length2,r[i]=l}return r},t.prototype.patch_apply=function(n,r){if(n.length==0)return[r,[]];n=this.patch_deepCopy(n);var i=this.patch_addPadding(n);r=i+r+i,this.patch_splitMax(n);for(var s=0,l=[],a=0;a<n.length;a++){var o=n[a].start2+s,f=this.diff_text1(n[a].diffs),d,_=-1;if(f.length>this.Match_MaxBits?(d=this.match_main(r,f.substring(0,this.Match_MaxBits),o),d!=-1&&(_=this.match_main(r,f.substring(f.length-this.Match_MaxBits),o+f.length-this.Match_MaxBits),(_==-1||d>=_)&&(d=-1))):d=this.match_main(r,f,o),d==-1)l[a]=!1,s-=n[a].length2-n[a].length1;else{l[a]=!0,s=d-o;var p;if(_==-1?p=r.substring(d,d+f.length):p=r.substring(d,_+this.Match_MaxBits),f==p)r=r.substring(0,d)+this.diff_text2(n[a].diffs)+r.substring(d+f.length);else{var b=this.diff_main(f,p,!1);if(f.length>this.Match_MaxBits&&this.diff_levenshtein(b)/f.length>this.Patch_DeleteThreshold)l[a]=!1;else{this.diff_cleanupSemanticLossless(b);for(var m=0,v,y=0;y<n[a].diffs.length;y++){var w=n[a].diffs[y];w[0]!==h&&(v=this.diff_xIndex(b,m)),w[0]===g?r=r.substring(0,d+v)+w[1]+r.substring(d+v):w[0]===c&&(r=r.substring(0,d+v)+r.substring(d+this.diff_xIndex(b,m+w[1].length))),w[0]!==c&&(m+=w[1].length)}}}}}return r=r.substring(i.length,r.length-i.length),[r,l]},t.prototype.patch_addPadding=function(n){for(var r=this.Patch_Margin,i="",s=1;s<=r;s++)i+=String.fromCharCode(s);for(var s=0;s<n.length;s++)n[s].start1+=r,n[s].start2+=r;var l=n[0],a=l.diffs;if(a.length==0||a[0][0]!=h)a.unshift(new t.Diff(h,i)),l.start1-=r,l.start2-=r,l.length1+=r,l.length2+=r;else if(r>a[0][1].length){var o=r-a[0][1].length;a[0][1]=i.substring(a[0][1].length)+a[0][1],l.start1-=o,l.start2-=o,l.length1+=o,l.length2+=o}if(l=n[n.length-1],a=l.diffs,a.length==0||a[a.length-1][0]!=h)a.push(new t.Diff(h,i)),l.length1+=r,l.length2+=r;else if(r>a[a.length-1][1].length){var o=r-a[a.length-1][1].length;a[a.length-1][1]+=i.substring(0,o),l.length1+=o,l.length2+=o}return i},t.prototype.patch_splitMax=function(n){for(var r=this.Match_MaxBits,i=0;i<n.length;i++)if(!(n[i].length1<=r)){var s=n[i];n.splice(i--,1);for(var l=s.start1,a=s.start2,o="";s.diffs.length!==0;){var f=new t.patch_obj,d=!0;for(f.start1=l-o.length,f.start2=a-o.length,o!==""&&(f.length1=f.length2=o.length,f.diffs.push(new t.Diff(h,o)));s.diffs.length!==0&&f.length1<r-this.Patch_Margin;){var _=s.diffs[0][0],p=s.diffs[0][1];_===g?(f.length2+=p.length,a+=p.length,f.diffs.push(s.diffs.shift()),d=!1):_===c&&f.diffs.length==1&&f.diffs[0][0]==h&&p.length>2*r?(f.length1+=p.length,l+=p.length,d=!1,f.diffs.push(new t.Diff(_,p)),s.diffs.shift()):(p=p.substring(0,r-f.length1-this.Patch_Margin),f.length1+=p.length,l+=p.length,_===h?(f.length2+=p.length,a+=p.length):d=!1,f.diffs.push(new t.Diff(_,p)),p==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(p.length))}o=this.diff_text2(f.diffs),o=o.substring(o.length-this.Patch_Margin);var b=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);b!==""&&(f.length1+=b.length,f.length2+=b.length,f.diffs.length!==0&&f.diffs[f.diffs.length-1][0]===h?f.diffs[f.diffs.length-1][1]+=b:f.diffs.push(new t.Diff(h,b))),d||n.splice(++i,0,f)}}},t.prototype.patch_toText=function(n){for(var r=[],i=0;i<n.length;i++)r[i]=n[i];return r.join("")},t.prototype.patch_fromText=function(n){var r=[];if(!n)return r;for(var i=n.split(`
|
|
5
|
-
`),s=0,l=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;s<i.length;){var a=i[s].match(l);if(!a)throw new Error("Invalid patch string: "+i[s]);var
|
|
6
|
-
`],s,l=0;l<this.diffs.length;l++){switch(this.diffs[l][0]){case
|
|
7
|
-
`}return i.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=c,e.exports.DIFF_INSERT=g,e.exports.DIFF_EQUAL=h})(un);var De=un.exports;function fn(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const c=e[t],g=typeof c;(g==="object"||g==="function")&&!Object.isFrozen(c)&&fn(c)}),e}class Xe{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function gn(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ie(e,...t){const c=Object.create(null);for(const g in e)c[g]=e[g];return t.forEach(function(g){for(const h in g)c[h]=g[h]}),c}const Zn="</span>",je=e=>!!e.scope,Yn=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const c=e.split(".");return[`${t}${c.shift()}`,...c.map((g,h)=>`${g}${"_".repeat(h+1)}`)].join(" ")}return`${t}${e}`};class Xn{constructor(t,c){this.buffer="",this.classPrefix=c.classPrefix,t.walk(this)}addText(t){this.buffer+=gn(t)}openNode(t){if(!je(t))return;const c=Yn(t.scope,{prefix:this.classPrefix});this.span(c)}closeNode(t){je(t)&&(this.buffer+=Zn)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const qe=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Pe{constructor(){this.rootNode=qe(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const c=qe({scope:t});this.add(c),this.stack.push(c)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,c){return typeof c=="string"?t.addText(c):c.children&&(t.openNode(c),c.children.forEach(g=>this._walk(t,g)),t.closeNode(c)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(c=>typeof c=="string")?t.children=[t.children.join("")]:t.children.forEach(c=>{Pe._collapse(c)}))}}class jn extends Pe{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,c){const g=t.root;c&&(g.scope=`language:${c}`),this.add(g)}toHTML(){return new Xn(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function de(e){return e?typeof e=="string"?e:e.source:null}function hn(e){return le("(?=",e,")")}function qn(e){return le("(?:",e,")*")}function Jn(e){return le("(?:",e,")?")}function le(...e){return e.map(c=>de(c)).join("")}function et(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Ue(...e){return"("+(et(e).capture?"":"?:")+e.map(g=>de(g)).join("|")+")"}function dn(e){return new RegExp(e.toString()+"|").exec("").length-1}function nt(e,t){const c=e&&e.exec(t);return c&&c.index===0}const tt=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ze(e,{joinWith:t}){let c=0;return e.map(g=>{c+=1;const h=c;let n=de(g),r="";for(;n.length>0;){const i=tt.exec(n);if(!i){r+=n;break}r+=n.substring(0,i.index),n=n.substring(i.index+i[0].length),i[0][0]==="\\"&&i[1]?r+="\\"+String(Number(i[1])+h):(r+=i[0],i[0]==="("&&c++)}return r}).map(g=>`(${g})`).join(t)}const rt=/\b\B/,pn="[a-zA-Z]\\w*",He="[a-zA-Z_]\\w*",_n="\\b\\d+(\\.\\d+)?",bn="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",mn="\\b(0b[01]+)",it="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",st=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=le(t,/.*\b/,e.binary,/\b.*/)),ie({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(c,g)=>{c.index!==0&&g.ignoreMatch()}},e)},pe={begin:"\\\\[\\s\\S]",relevance:0},at={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[pe]},ot={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[pe]},lt={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/},Ae=function(e,t,c={}){const g=ie({scope:"comment",begin:e,end:t,contains:[]},c);g.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const h=Ue("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return g.contains.push({begin:le(/[ ]+/,"(",h,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),g},ct=Ae("//","$"),ut=Ae("/\\*","\\*/"),ft=Ae("#","$"),gt={scope:"number",begin:_n,relevance:0},ht={scope:"number",begin:bn,relevance:0},dt={scope:"number",begin:mn,relevance:0},pt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[pe,{begin:/\[/,end:/\]/,relevance:0,contains:[pe]}]},_t={scope:"title",begin:pn,relevance:0},bt={scope:"title",begin:He,relevance:0},mt={begin:"\\.\\s*"+He,relevance:0},Et=function(e){return Object.assign(e,{"on:begin":(t,c)=>{c.data._beginMatch=t[1]},"on:end":(t,c)=>{c.data._beginMatch!==t[1]&&c.ignoreMatch()}})};var Ee=Object.freeze({__proto__:null,APOS_STRING_MODE:at,BACKSLASH_ESCAPE:pe,BINARY_NUMBER_MODE:dt,BINARY_NUMBER_RE:mn,COMMENT:Ae,C_BLOCK_COMMENT_MODE:ut,C_LINE_COMMENT_MODE:ct,C_NUMBER_MODE:ht,C_NUMBER_RE:bn,END_SAME_AS_BEGIN:Et,HASH_COMMENT_MODE:ft,IDENT_RE:pn,MATCH_NOTHING_RE:rt,METHOD_GUARD:mt,NUMBER_MODE:gt,NUMBER_RE:_n,PHRASAL_WORDS_MODE:lt,QUOTE_STRING_MODE:ot,REGEXP_MODE:pt,RE_STARTERS_RE:it,SHEBANG:st,TITLE_MODE:_t,UNDERSCORE_IDENT_RE:He,UNDERSCORE_TITLE_MODE:bt});function vt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function yt(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function wt(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=vt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Nt(e,t){Array.isArray(e.illegal)&&(e.illegal=Ue(...e.illegal))}function At(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Mt(e,t){e.relevance===void 0&&(e.relevance=1)}const St=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const c=Object.assign({},e);Object.keys(e).forEach(g=>{delete e[g]}),e.keywords=c.keywords,e.begin=le(c.beforeMatch,hn(c.begin)),e.starts={relevance:0,contains:[Object.assign(c,{endsParent:!0})]},e.relevance=0,delete c.beforeMatch},Tt=["of","and","for","in","not","or","if","then","parent","list","value"],Dt="keyword";function En(e,t,c=Dt){const g=Object.create(null);return typeof e=="string"?h(c,e.split(" ")):Array.isArray(e)?h(c,e):Object.keys(e).forEach(function(n){Object.assign(g,En(e[n],t,n))}),g;function h(n,r){t&&(r=r.map(i=>i.toLowerCase())),r.forEach(function(i){const s=i.split("|");g[s[0]]=[n,Lt(s[0],s[1])]})}}function Lt(e,t){return t?Number(t):Ct(e)?0:1}function Ct(e){return Tt.includes(e.toLowerCase())}const Je={},oe=e=>{console.error(e)},en=(e,...t)=>{console.log(`WARN: ${e}`,...t)},ue=(e,t)=>{Je[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Je[`${e}/${t}`]=!0)},Ne=new Error;function vn(e,t,{key:c}){let g=0;const h=e[c],n={},r={};for(let i=1;i<=t.length;i++)r[i+g]=h[i],n[i+g]=!0,g+=dn(t[i-1]);e[c]=r,e[c]._emit=n,e[c]._multi=!0}function Rt(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw oe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ne;if(typeof e.beginScope!="object"||e.beginScope===null)throw oe("beginScope must be object"),Ne;vn(e,e.begin,{key:"beginScope"}),e.begin=ze(e.begin,{joinWith:""})}}function kt(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw oe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ne;if(typeof e.endScope!="object"||e.endScope===null)throw oe("endScope must be object"),Ne;vn(e,e.end,{key:"endScope"}),e.end=ze(e.end,{joinWith:""})}}function Ot(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function It(e){Ot(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Rt(e),kt(e)}function Bt(e){function t(r,i){return new RegExp(de(r),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(i?"g":""))}class c{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(i,s){s.position=this.position++,this.matchIndexes[this.matchAt]=s,this.regexes.push([s,i]),this.matchAt+=dn(i)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const i=this.regexes.map(s=>s[1]);this.matcherRe=t(ze(i,{joinWith:"|"}),!0),this.lastIndex=0}exec(i){this.matcherRe.lastIndex=this.lastIndex;const s=this.matcherRe.exec(i);if(!s)return null;const l=s.findIndex((o,f)=>f>0&&o!==void 0),a=this.matchIndexes[l];return s.splice(0,l),Object.assign(s,a)}}class g{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(i){if(this.multiRegexes[i])return this.multiRegexes[i];const s=new c;return this.rules.slice(i).forEach(([l,a])=>s.addRule(l,a)),s.compile(),this.multiRegexes[i]=s,s}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(i,s){this.rules.push([i,s]),s.type==="begin"&&this.count++}exec(i){const s=this.getMatcher(this.regexIndex);s.lastIndex=this.lastIndex;let l=s.exec(i);if(this.resumingScanAtSamePosition()&&!(l&&l.index===this.lastIndex)){const a=this.getMatcher(0);a.lastIndex=this.lastIndex+1,l=a.exec(i)}return l&&(this.regexIndex+=l.position+1,this.regexIndex===this.count&&this.considerAll()),l}}function h(r){const i=new g;return r.contains.forEach(s=>i.addRule(s.begin,{rule:s,type:"begin"})),r.terminatorEnd&&i.addRule(r.terminatorEnd,{type:"end"}),r.illegal&&i.addRule(r.illegal,{type:"illegal"}),i}function n(r,i){const s=r;if(r.isCompiled)return s;[yt,At,It,St].forEach(a=>a(r,i)),e.compilerExtensions.forEach(a=>a(r,i)),r.__beforeBegin=null,[wt,Nt,Mt].forEach(a=>a(r,i)),r.isCompiled=!0;let l=null;return typeof r.keywords=="object"&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),l=r.keywords.$pattern,delete r.keywords.$pattern),l=l||/\w+/,r.keywords&&(r.keywords=En(r.keywords,e.case_insensitive)),s.keywordPatternRe=t(l,!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=de(s.end)||"",r.endsWithParent&&i.terminatorEnd&&(s.terminatorEnd+=(r.end?"|":"")+i.terminatorEnd)),r.illegal&&(s.illegalRe=t(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map(function(a){return $t(a==="self"?r:a)})),r.contains.forEach(function(a){n(a,s)}),r.starts&&n(r.starts,i),s.matcher=h(s),s}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=ie(e.classNameAliases||{}),n(e)}function yn(e){return e?e.endsWithParent||yn(e.starts):!1}function $t(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return ie(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:yn(e)?ie(e,{starts:e.starts?ie(e.starts):null}):Object.isFrozen(e)?ie(e):e}var Pt="11.10.0";class Ut extends Error{constructor(t,c){super(t),this.name="HTMLInjectionError",this.html=c}}const Le=gn,nn=ie,tn=Symbol("nomatch"),zt=7,wn=function(e){const t=Object.create(null),c=Object.create(null),g=[];let h=!0;const n="Could not find the language '{}', did you forget to load/include a language module?",r={disableAutodetect:!0,name:"Plain text",contains:[]};let i={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:jn};function s(E){return i.noHighlightRe.test(E)}function l(E){let M=E.className+" ";M+=E.parentNode?E.parentNode.className:"";const k=i.languageDetectRe.exec(M);if(k){const P=S(k[1]);return P||(en(n.replace("{}",k[1])),en("Falling back to no-highlight mode for this block.",E)),P?k[1]:"no-highlight"}return M.split(/\s+/).find(P=>s(P)||S(P))}function a(E,M,k){let P="",x="";typeof M=="object"?(P=E,k=M.ignoreIllegals,x=M.language):(ue("10.7.0","highlight(lang, code, ...args) has been deprecated."),ue("10.7.0",`Please use highlight(code, options) instead.
|
|
8
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),x=E,P=M),k===void 0&&(k=!0);const W={code:P,language:x};re("before:highlight",W);const X=W.result?W.result:o(W.language,W.code,k);return X.code=W.code,re("after:highlight",X),X}function o(E,M,k,P){const x=Object.create(null);function W(A,C){return A.keywords[C]}function X(){if(!O.keywords){V.addText(H);return}let A=0;O.keywordPatternRe.lastIndex=0;let C=O.keywordPatternRe.exec(H),I="";for(;C;){I+=H.substring(A,C.index);const z=q.case_insensitive?C[0].toLowerCase():C[0],G=W(O,z);if(G){const[ne,$n]=G;if(V.addText(I),I="",x[z]=(x[z]||0)+1,x[z]<=zt&&(me+=$n),ne.startsWith("_"))I+=C[0];else{const Pn=q.classNameAliases[ne]||ne;j(C[0],Pn)}}else I+=C[0];A=O.keywordPatternRe.lastIndex,C=O.keywordPatternRe.exec(H)}I+=H.substring(A),V.addText(I)}function _e(){if(H==="")return;let A=null;if(typeof O.subLanguage=="string"){if(!t[O.subLanguage]){V.addText(H);return}A=o(O.subLanguage,H,!0,Qe[O.subLanguage]),Qe[O.subLanguage]=A._top}else A=d(H,O.subLanguage.length?O.subLanguage:null);O.relevance>0&&(me+=A.relevance),V.__addSublanguage(A._emitter,A.language)}function Q(){O.subLanguage!=null?_e():X(),H=""}function j(A,C){A!==""&&(V.startScope(C),V.addText(A),V.endScope())}function Ve(A,C){let I=1;const z=C.length-1;for(;I<=z;){if(!A._emit[I]){I++;continue}const G=q.classNameAliases[A[I]]||A[I],ne=C[I];G?j(ne,G):(H=ne,X(),H=""),I++}}function Ge(A,C){return A.scope&&typeof A.scope=="string"&&V.openNode(q.classNameAliases[A.scope]||A.scope),A.beginScope&&(A.beginScope._wrap?(j(H,q.classNameAliases[A.beginScope._wrap]||A.beginScope._wrap),H=""):A.beginScope._multi&&(Ve(A.beginScope,C),H="")),O=Object.create(A,{parent:{value:O}}),O}function Ke(A,C,I){let z=nt(A.endRe,I);if(z){if(A["on:end"]){const G=new Xe(A);A["on:end"](C,G),G.isMatchIgnored&&(z=!1)}if(z){for(;A.endsParent&&A.parent;)A=A.parent;return A}}if(A.endsWithParent)return Ke(A.parent,C,I)}function Rn(A){return O.matcher.regexIndex===0?(H+=A[0],1):(Te=!0,0)}function kn(A){const C=A[0],I=A.rule,z=new Xe(I),G=[I.__beforeBegin,I["on:begin"]];for(const ne of G)if(ne&&(ne(A,z),z.isMatchIgnored))return Rn(C);return I.skip?H+=C:(I.excludeBegin&&(H+=C),Q(),!I.returnBegin&&!I.excludeBegin&&(H=C)),Ge(I,A),I.returnBegin?0:C.length}function On(A){const C=A[0],I=M.substring(A.index),z=Ke(O,A,I);if(!z)return tn;const G=O;O.endScope&&O.endScope._wrap?(Q(),j(C,O.endScope._wrap)):O.endScope&&O.endScope._multi?(Q(),Ve(O.endScope,A)):G.skip?H+=C:(G.returnEnd||G.excludeEnd||(H+=C),Q(),G.excludeEnd&&(H=C));do O.scope&&V.closeNode(),!O.skip&&!O.subLanguage&&(me+=O.relevance),O=O.parent;while(O!==z.parent);return z.starts&&Ge(z.starts,A),G.returnEnd?0:C.length}function In(){const A=[];for(let C=O;C!==q;C=C.parent)C.scope&&A.unshift(C.scope);A.forEach(C=>V.openNode(C))}let be={};function We(A,C){const I=C&&C[0];if(H+=A,I==null)return Q(),0;if(be.type==="begin"&&C.type==="end"&&be.index===C.index&&I===""){if(H+=M.slice(C.index,C.index+1),!h){const z=new Error(`0 width match regex (${E})`);throw z.languageName=E,z.badRule=be.rule,z}return 1}if(be=C,C.type==="begin")return kn(C);if(C.type==="illegal"&&!k){const z=new Error('Illegal lexeme "'+I+'" for mode "'+(O.scope||"<unnamed>")+'"');throw z.mode=O,z}else if(C.type==="end"){const z=On(C);if(z!==tn)return z}if(C.type==="illegal"&&I==="")return 1;if(Se>1e5&&Se>C.index*3)throw new Error("potential infinite loop, way more iterations than matches");return H+=I,I.length}const q=S(E);if(!q)throw oe(n.replace("{}",E)),new Error('Unknown language: "'+E+'"');const Bn=Bt(q);let Me="",O=P||Bn;const Qe={},V=new i.__emitter(i);In();let H="",me=0,ae=0,Se=0,Te=!1;try{if(q.__emitTokens)q.__emitTokens(M,V);else{for(O.matcher.considerAll();;){Se++,Te?Te=!1:O.matcher.considerAll(),O.matcher.lastIndex=ae;const A=O.matcher.exec(M);if(!A)break;const C=M.substring(ae,A.index),I=We(C,A);ae=A.index+I}We(M.substring(ae))}return V.finalize(),Me=V.toHTML(),{language:E,value:Me,relevance:me,illegal:!1,_emitter:V,_top:O}}catch(A){if(A.message&&A.message.includes("Illegal"))return{language:E,value:Le(M),illegal:!0,relevance:0,_illegalBy:{message:A.message,index:ae,context:M.slice(ae-100,ae+100),mode:A.mode,resultSoFar:Me},_emitter:V};if(h)return{language:E,value:Le(M),illegal:!1,relevance:0,errorRaised:A,_emitter:V,_top:O};throw A}}function f(E){const M={value:Le(E),illegal:!1,relevance:0,_top:r,_emitter:new i.__emitter(i)};return M._emitter.addText(E),M}function d(E,M){M=M||i.languages||Object.keys(t);const k=f(E),P=M.filter(S).filter($).map(Q=>o(Q,E,!1));P.unshift(k);const x=P.sort((Q,j)=>{if(Q.relevance!==j.relevance)return j.relevance-Q.relevance;if(Q.language&&j.language){if(S(Q.language).supersetOf===j.language)return 1;if(S(j.language).supersetOf===Q.language)return-1}return 0}),[W,X]=x,_e=W;return _e.secondBest=X,_e}function _(E,M,k){const P=M&&c[M]||k;E.classList.add("hljs"),E.classList.add(`language-${P}`)}function p(E){let M=null;const k=l(E);if(s(k))return;if(re("before:highlightElement",{el:E,language:k}),E.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",E);return}if(E.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(E)),i.throwUnescapedHTML))throw new Ut("One of your code blocks includes unescaped HTML.",E.innerHTML);M=E;const P=M.textContent,x=k?a(P,{language:k,ignoreIllegals:!0}):d(P);E.innerHTML=x.value,E.dataset.highlighted="yes",_(E,k,x.language),E.result={language:x.language,re:x.relevance,relevance:x.relevance},x.secondBest&&(E.secondBest={language:x.secondBest.language,relevance:x.secondBest.relevance}),re("after:highlightElement",{el:E,result:x,text:P})}function b(E){i=nn(i,E)}const m=()=>{w(),ue("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function v(){w(),ue("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let y=!1;function w(){if(document.readyState==="loading"){y=!0;return}document.querySelectorAll(i.cssSelector).forEach(p)}function D(){y&&w()}typeof window!="undefined"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",D,!1);function T(E,M){let k=null;try{k=M(e)}catch(P){if(oe("Language definition for '{}' could not be registered.".replace("{}",E)),h)oe(P);else throw P;k=r}k.name||(k.name=E),t[E]=k,k.rawDefinition=M.bind(null,e),k.aliases&&R(k.aliases,{languageName:E})}function L(E){delete t[E];for(const M of Object.keys(c))c[M]===E&&delete c[M]}function B(){return Object.keys(t)}function S(E){return E=(E||"").toLowerCase(),t[E]||t[c[E]]}function R(E,{languageName:M}){typeof E=="string"&&(E=[E]),E.forEach(k=>{c[k.toLowerCase()]=M})}function $(E){const M=S(E);return M&&!M.disableAutodetect}function U(E){E["before:highlightBlock"]&&!E["before:highlightElement"]&&(E["before:highlightElement"]=M=>{E["before:highlightBlock"](Object.assign({block:M.el},M))}),E["after:highlightBlock"]&&!E["after:highlightElement"]&&(E["after:highlightElement"]=M=>{E["after:highlightBlock"](Object.assign({block:M.el},M))})}function F(E){U(E),g.push(E)}function K(E){const M=g.indexOf(E);M!==-1&&g.splice(M,1)}function re(E,M){const k=E;g.forEach(function(P){P[k]&&P[k](M)})}function ce(E){return ue("10.7.0","highlightBlock will be removed entirely in v12.0"),ue("10.7.0","Please use highlightElement now."),p(E)}Object.assign(e,{highlight:a,highlightAuto:d,highlightAll:w,highlightElement:p,highlightBlock:ce,configure:b,initHighlighting:m,initHighlightingOnLoad:v,registerLanguage:T,unregisterLanguage:L,listLanguages:B,getLanguage:S,registerAliases:R,autoDetection:$,inherit:nn,addPlugin:F,removePlugin:K}),e.debugMode=function(){h=!1},e.safeMode=function(){h=!0},e.versionString=Pt,e.regex={concat:le,lookahead:hn,either:Ue,optional:Jn,anyNumberOfTimes:qn};for(const E in Ee)typeof Ee[E]=="object"&&fn(Ee[E]);return Object.assign(e,Ee),e},ge=wn({});ge.newInstance=()=>wn({});var Ht=ge;ge.HighlightJS=ge;ge.default=ge;const Z=Qn(Ht);function xt(e){const t=e.regex,c=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),g=/[\p{L}0-9._:-]+/u,h={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},n={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},r=e.inherit(n,{begin:/\(/,end:/\)/}),i=e.inherit(e.APOS_STRING_MODE,{className:"string"}),s=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:g,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[h]},{begin:/'/,end:/'/,contains:[h]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[n,s,i,r,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[n,r,s,i]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},h,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[s]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(c,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:c,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(c,/>/))),contains:[{className:"name",begin:c,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const rn="[A-Za-z$_][0-9A-Za-z$_]*",Ft=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Vt=["true","false","null","undefined","NaN","Infinity"],Nn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],An=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Mn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Gt=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Kt=[].concat(Mn,Nn,An);function Wt(e){const t=e.regex,c=(M,{after:k})=>{const P="</"+M[0].slice(1);return M.input.indexOf(P,k)!==-1},g=rn,h={begin:"<>",end:"</>"},n=/<[A-Za-z0-9\\._:-]+\s*\/>/,r={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(M,k)=>{const P=M[0].length+M.index,x=M.input[P];if(x==="<"||x===","){k.ignoreMatch();return}x===">"&&(c(M,{after:P})||k.ignoreMatch());let W;const X=M.input.substring(P);if(W=X.match(/^\s*=/)){k.ignoreMatch();return}if((W=X.match(/^\s+extends\s+/))&&W.index===0){k.ignoreMatch();return}}},i={$pattern:rn,keyword:Ft,literal:Vt,built_in:Kt,"variable.language":Gt},s="[0-9](_?[0-9])*",l=`\\.(${s})`,a="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",o={className:"number",variants:[{begin:`(\\b(${a})((${l})|\\.)?|(${l}))[eE][+-]?(${s})\\b`},{begin:`\\b(${a})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},d={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},_={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},p={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:g+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},y=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,_,p,b,{match:/\$\d+/},o];f.contains=y.concat({begin:/\{/,end:/\}/,keywords:i,contains:["self"].concat(y)});const w=[].concat(v,f.contains),D=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:i,contains:["self"].concat(w)}]),T={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:D},L={variants:[{match:[/class/,/\s+/,g,/\s+/,/extends/,/\s+/,t.concat(g,"(",t.concat(/\./,g),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,g],scope:{1:"keyword",3:"title.class"}}]},B={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Nn,...An]}},S={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},R={variants:[{match:[/function/,/\s+/,g,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[T],illegal:/%/},$={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function U(M){return t.concat("(?!",M.join("|"),")")}const F={match:t.concat(/\b/,U([...Mn,"super","import"].map(M=>`${M}\\s*\\(`)),g,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},K={begin:t.concat(/\./,t.lookahead(t.concat(g,/(?![0-9A-Za-z$_(])/))),end:g,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},re={match:[/get|set/,/\s+/,g,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},T]},ce="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",E={match:[/const|var|let/,/\s+/,g,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ce)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[T]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:i,exports:{PARAMS_CONTAINS:D,CLASS_REFERENCE:B},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),S,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,_,p,b,v,{match:/\$\d+/},o,B,{className:"attr",begin:g+t.lookahead(":"),relevance:0},E,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,e.REGEXP_MODE,{className:"function",begin:ce,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:D}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:h.begin,end:h.end},{match:n},{begin:r.begin,"on:begin":r.isTrulyOpeningTag,end:r.end}],subLanguage:"xml",contains:[{begin:r.begin,end:r.end,skip:!0,contains:["self"]}]}]},R,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[T,e.inherit(e.TITLE_MODE,{begin:g,className:"title.function"})]},{match:/\.\.\./,relevance:0},K,{match:"\\$"+g,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[T]},F,$,L,re,{match:/\$[(.]/}]}}function Qt(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},c={match:/[{}[\],:]/,className:"punctuation",relevance:0},g=["true","false","null"],h={scope:"literal",beginKeywords:g.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:g},contains:[t,c,e.QUOTE_STRING_MODE,h,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function Zt(e){const t="true false yes no null",c="[\\w#;/?:@&=+$,.~*'()[\\]]+",g={className:"attr",variants:[{begin:/\w[\w :()\./-]*:(?=[ \t]|$)/},{begin:/"\w[\w :()\./-]*":(?=[ \t]|$)/},{begin:/'\w[\w :()\./-]*':(?=[ \t]|$)/}]},h={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},n={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,h]},r=e.inherit(n,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),o={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},d={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},_={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},p=[g,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+c},{className:"type",begin:"!<"+c+">"},{className:"type",begin:"!"+c},{className:"type",begin:"!!"+c},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},o,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},d,_,n],b=[...p];return b.pop(),b.push(r),f.contains=b,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:p}}function Yt(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function Xt(e){const t=e.regex,c=/[\p{XID_Start}_]\p{XID_Continue}*/u,g=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],i={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:g,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},s={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:i,illegal:/#/},a={begin:/\{\{/,relevance:0},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,s],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,s,a,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,a,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,a,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,l]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",d=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,_=`\\b|${g.join("|")}`,p={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${d}))[eE][+-]?(${f})[jJ]?(?=${_})`},{begin:`(${d})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${_})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${_})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${_})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${_})`},{begin:`\\b(${f})[jJ](?=${_})`}]},b={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:i,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},m={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:["self",s,p,o,e.HASH_COMMENT_MODE]}]};return l.contains=[o,p,s],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:i,illegal:/(<\/|\?)|=>/,contains:[s,p,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},o,b,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,c],scope:{1:"keyword",3:"title.function"},contains:[m]},{variants:[{match:[/\bclass/,/\s+/,c,/\s*/,/\(\s*/,c,/\s*\)/]},{match:[/\bclass/,/\s+/,c]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[p,m,o]}]}}var fe="[0-9](_*[0-9])*",ve=`\\.(${fe})`,ye="[0-9a-fA-F](_*[0-9a-fA-F])*",sn={className:"number",variants:[{begin:`(\\b(${fe})((${ve})|\\.)?|(${ve}))[eE][+-]?(${fe})[fFdD]?\\b`},{begin:`\\b(${fe})((${ve})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${ve})[fFdD]?\\b`},{begin:`\\b(${fe})[fFdD]\\b`},{begin:`\\b0[xX]((${ye})\\.?|(${ye})?\\.(${ye}))[pP][+-]?(${fe})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${ye})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Sn(e,t,c){return c===-1?"":e.replace(t,g=>Sn(e,t,c-1))}function jt(e){const t=e.regex,c="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",g=c+Sn("(?:<"+c+"~~~(?:\\s*,\\s*"+c+"~~~)*>)?",/~~~/g,2),s={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},l={className:"meta",begin:"@"+c,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},a={className:"params",begin:/\(/,end:/\)/,keywords:s,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:s,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,c],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,c),/\s+/,c,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,c],className:{1:"keyword",3:"title.class"},contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+g+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:s,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:s,relevance:0,contains:[l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,sn,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},sn,l]}}function qt(e){const t=e.regex,c={},g={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[c]}]};Object.assign(c,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},g]});const h={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},n=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),r={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},i={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,c,h]};h.contains.push(i);const s={match:/\\"/},l={className:"string",begin:/'/,end:/'/},a={match:/\\'/},o={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,c]},f=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],d=e.SHEBANG({binary:`(${f.join("|")})`,relevance:10}),_={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},p=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],b=["true","false"],m={match:/(\/[a-z._-]+)+/},v=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],y=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],w=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],D=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:p,literal:b,built_in:[...v,...y,"set","shopt",...w,...D]},contains:[d,e.SHEBANG(),_,o,n,r,m,i,s,l,a,c]}}function Jt(e){const t=e.regex,c=e.COMMENT("--","$"),g={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},h={begin:/"/,end:/"/,contains:[{begin:/""/}]},n=["true","false","unknown"],r=["double precision","large object","with timezone","without timezone"],i=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],s=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],a=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],o=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],d=a,_=[...l,...s].filter(y=>!a.includes(y)),p={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},b={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},m={begin:t.concat(/\b/,t.either(...d),/\s*\(/),relevance:0,keywords:{built_in:d}};function v(y,{exceptions:w,when:D}={}){const T=D;return w=w||[],y.map(L=>L.match(/\|\d+$/)||w.includes(L)?L:T(L)?`${L}|0`:L)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:v(_,{when:y=>y.length<3}),literal:n,type:i,built_in:o},contains:[{begin:t.either(...f),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:_.concat(f),literal:n,type:i}},{className:"type",begin:t.either(...r)},m,p,g,h,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,c,b]}}Z.registerLanguage("xml",xt);Z.registerLanguage("javascript",Wt);Z.registerLanguage("json",Qt);Z.registerLanguage("yaml",Zt);Z.registerLanguage("plaintext",Yt);Z.registerLanguage("python",Xt);Z.registerLanguage("java",jt);Z.registerLanguage("bash",qt);Z.registerLanguage("sql",Jt);var N=(e=>(e.EQUAL="equal",e.DELETE="removed",e.ADD="added",e.EMPTY="empty",e))(N||{});const J="<code-diff-modified>",ee="</code-diff-modified>",er=1e4,Y=1e3,an=J.replace("<","<").replace(">",">"),on=ee.replace("<","<").replace(">",">");function nr(e){const t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,c=>t[c])}function se(e){return e===void 0?N.EQUAL:e.added?N.ADD:e.removed?N.DELETE:N.EQUAL}function Tn(e,t,c="word",g=!1){if(typeof e=="undefined"||typeof t=="undefined")return[e,t];if(!g&&e.length+t.length>er)return[e,t];const n=(c==="char"?Hn:Fn)(e,t),r=n.filter(s=>se(s)!==N.ADD).map(s=>se(s)===N.DELETE?`${J}${s.value}${ee}`:s.value).join(""),i=n.filter(s=>se(s)!==N.DELETE).map(s=>se(s)===N.ADD?`${J}${s.value}${ee}`:s.value).join("");return[r,i]}function Dn(e,t){if(e===t)return e?[{count:e.replace(/\n$/,"").split(`
|
|
9
|
-
`).length,value:e}]:[];const
|
|
10
|
-
`),
|
|
11
|
-
`);
|
|
12
|
-
`),
|
|
13
|
-
`);let
|
|
14
|
-
`)&&
|
|
15
|
-
`)){const
|
|
16
|
-
`):[],r
|
|
17
|
-
`):[],i=new Set(
|
|
18
|
-
`).length,value:
|
|
19
|
-
`));
|
|
20
|
-
`)+1-
|
|
21
|
-
`));
|
|
22
|
-
`)+1-
|
|
23
|
-
`);if(
|
|
24
|
-
`);if(
|
|
25
|
-
`);if(v===void 0){for(const L of
|
|
26
|
-
`);if(y===N.DELETE)if(w===N.ADD&&(D.length===T.length||h)){const L=Math.max(D.length,T.length),B=Array.from({length:L},(S,R)=>Tn(D[R],T[R],g,h));for(let S=0;S<D.length;S++){const R=D[S];l++,f.push({type:s!=null&&s.test(R)?N.EQUAL:N.DELETE,code:B[S][0],delNum:l})}for(let S=0;S<T.length;S++){const R=T[S];a++,f.push({type:s!=null&&s.test(R)?N.EQUAL:N.ADD,code:B[S][1],addNum:a})}o=!0}else for(const L of D)l++,f.push({type:N.DELETE,code:L,delNum:l});if(y===N.ADD)for(const L of D)a++,f.push({type:N.ADD,code:L,addNum:a})}for(let b=0;b<f.length;b++){const m=f[b];if(m.type===N.DELETE||m.type===N.ADD){const[v,y]=[Math.max(b-n,0),Math.min(b+n+1,f.length)];for(let w=v;w<y;w++)f[w].fold=!1}m.fold===void 0&&(m.fold=!0)}if(e===t){for(let b=0;b<f.length;b++)f[b].fold=!1;return f.slice(0,Y).forEach(b=>Oe(b,c)),d}const _=[];let p=[];for(let b=0;b<f.length;b++){const m=f[b];if(m.fold===!1){p.length&&(p[0].hideIndex=d.collector.length,d.collector.push({lines:p,fold:!0}),p=[]),_.push(m);continue}m.type==="equal"&&(m.hide=!0,p.push(m)),_.push(m)}return p.length&&(p[0].hideIndex=d.collector.length,d.collector.push({lines:p,fold:!0}),p=[]),d.changes=_,d.changes.filter(b=>!b.hide).slice(0,Y).forEach(b=>Oe(b,c)),d}const ir={key:0},sr=u.createElementVNode("td",{class:"blob-code blob-code-hunk",align:"left"}," ⋯ ",-1),ar=["data-diff-change"],or=["data-code-marker","innerHTML"],lr=u.defineComponent({__name:"UnifiedLine",props:{line:{}},emits:["expand"],setup(e,{emit:t}){const c=t;function g(h){return h===N.DELETE?"-":h===N.ADD?"+":""}return(h,n)=>h.line.hideIndex!==void 0&&h.line.hide?(u.openBlock(),u.createElementBlock("tr",ir,[u.createElementVNode("td",{class:"blob-num blob-num-hunk text-center",colspan:"2",onClick:n[0]||(n[0]=r=>c("expand",h.line))}," > "),sr])):h.line.hide?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("tr",{key:1,"data-diff-change":h.line.type!==u.unref(N).EQUAL?"":void 0},[u.createElementVNode("td",{class:u.normalizeClass(["blob-num",{"blob-num-deletion":h.line.type===u.unref(N).DELETE,"blob-num-addition":h.line.type===u.unref(N).ADD,"blob-num-context":h.line.type===u.unref(N).EQUAL,"blob-num-hunk":h.line.hide!==void 0}])},u.toDisplayString(h.line.delNum),3),u.createElementVNode("td",{class:u.normalizeClass(["blob-num",{"blob-num-deletion":h.line.type===u.unref(N).DELETE,"blob-num-addition":h.line.type===u.unref(N).ADD,"blob-num-context":h.line.type===u.unref(N).EQUAL,"blob-num-hunk":h.line.hide!==void 0}])},u.toDisplayString(h.line.addNum),3),u.createElementVNode("td",{class:u.normalizeClass(["blob-code",{"blob-code-deletion":h.line.type===u.unref(N).DELETE,"blob-code-addition":h.line.type===u.unref(N).ADD,"blob-code-context":h.line.type===u.unref(N).EQUAL,"blob-code-hunk":h.line.hide!==void 0}])},[u.createElementVNode("span",{class:"blob-code-inner blob-code-marker","data-code-marker":g(h.line.type),innerHTML:h.line.code},null,8,or)],2)],8,ar))}}),cr={class:"diff-table"},ur={key:0},fr={class:"blob-code blob-code-hunk load-more",colspan:"3"},gr=u.defineComponent({__name:"UnifiedViewer",props:{diffChange:{},language:{}},setup(e){const t=e,c=u.ref(Y),g=u.shallowRef(t.diffChange.changes.filter(a=>!a.hide||a.hideIndex!==void 0)),h=u.computed(()=>g.value.slice(0,c.value)),n=u.computed(()=>g.value.length-h.value.length),r=u.computed(()=>Math.min(n.value,Y));u.watch(()=>t.diffChange,a=>{c.value=Y,g.value=a.changes.filter(o=>!o.hide||o.hideIndex!==void 0)});function i(){h.value.forEach(a=>Oe(a,t.language))}function s({hideIndex:a}){a!==void 0&&(t.diffChange.collector[a].lines.forEach(o=>{o.hide=!1,o.fold=!1}),g.value=t.diffChange.changes.filter(o=>!o.hide||o.hideIndex!==void 0),i())}function l(){c.value+=Y,i()}return(a,o)=>(u.openBlock(),u.createElementBlock("table",cr,[u.createElementVNode("tbody",null,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(h),(f,d)=>(u.openBlock(),u.createBlock(lr,{key:d,line:f,onExpand:s},null,8,["line"]))),128)),u.unref(n)?(u.openBlock(),u.createElementBlock("tr",ur,[u.createElementVNode("td",fr,[u.createElementVNode("button",{class:"load-more-button",type:"button",onClick:l}," Show next "+u.toDisplayString(u.unref(r))+" lines ("+u.toDisplayString(u.unref(n))+" remaining) ",1)])])):u.createCommentVNode("",!0)])]))}}),hr={key:0},dr=u.createElementVNode("td",{class:"blob-code blob-code-inner blob-code-hunk",colspan:"3",align:"left"}," ⋯ ",-1),pr=["data-diff-change"],_r=u.createElementVNode("td",{class:"blob-num blob-num-empty empty-cell"},null,-1),br=u.createElementVNode("td",{class:"blob-code blob-code-empty empty-cell"},null,-1),mr=["onMousedown"],Er=["data-code-marker","innerHTML"],vr=u.defineComponent({__name:"SplitLine",props:{splitLine:{}},emits:["expand"],setup(e,{emit:t}){const c=t;function g(n){return n===N.DELETE?"-":n===N.ADD?"+":""}function h(n,r){const i=n.currentTarget.closest(".file-diff-split"),s=i.querySelectorAll(".split-side-left"),l=i.querySelectorAll(".split-side-right");for(const a of l)a.classList.toggle("no-select",r==="left");for(const a of s)a.classList.toggle("no-select",r==="right")}return(n,r)=>n.splitLine.hideIndex!==void 0&&n.splitLine.hide?(u.openBlock(),u.createElementBlock("tr",hr,[u.createElementVNode("td",{class:"blob-num blob-num-hunk",colspan:"1",onClick:r[0]||(r[0]=i=>c("expand",n.splitLine))}," > "),dr])):n.splitLine.hide?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("tr",{key:1,"data-diff-change":n.splitLine.left.type===u.unref(N).DELETE||n.splitLine.right.type===u.unref(N).ADD?"":void 0},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList([n.splitLine.left,n.splitLine.right],(i,s)=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[i.type===u.unref(N).EMPTY?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[_r,br],64)):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createElementVNode("td",{class:u.normalizeClass(["blob-num",{"blob-num-deletion":i.type===u.unref(N).DELETE,"blob-num-addition":i.type===u.unref(N).ADD,"blob-num-context":i.type===u.unref(N).EQUAL,"blob-num-hunk":n.splitLine.hide!==void 0}])},u.toDisplayString(i.num),3),u.createElementVNode("td",{class:u.normalizeClass(["blob-code",{"blob-code-deletion":i.type===u.unref(N).DELETE,"blob-code-addition":i.type===u.unref(N).ADD,"blob-code-context":i.type===u.unref(N).EQUAL,"blob-code-hunk":n.splitLine.hide!==void 0,"split-side-left":s===0,"split-side-right":s===1}]),onMousedown:l=>h(l,s===0?"left":"right")},[u.createElementVNode("span",{class:"blob-code-inner blob-code-marker","data-code-marker":g(i.type),innerHTML:i.code},null,8,Er)],42,mr)],64))],64))),256))],8,pr))}}),yr={class:"file-diff-split diff-table"},wr=u.createElementVNode("colgroup",null,[u.createElementVNode("col",{width:"44"}),u.createElementVNode("col"),u.createElementVNode("col",{width:"44"}),u.createElementVNode("col")],-1),Nr={key:0},Ar={class:"blob-code blob-code-hunk load-more",colspan:"4"},Mr=u.defineComponent({__name:"SplitViewer",props:{diffChange:{},language:{}},setup(e){const t=e,c=u.ref(Y),g=u.shallowRef(t.diffChange.changes.filter(a=>!a.hide||a.hideIndex!==void 0)),h=u.computed(()=>g.value.slice(0,c.value)),n=u.computed(()=>g.value.length-h.value.length),r=u.computed(()=>Math.min(n.value,Y));u.watch(()=>t.diffChange,a=>{c.value=Y,g.value=a.changes.filter(o=>!o.hide||o.hideIndex!==void 0)});function i(){h.value.forEach(a=>Ie(a,t.language))}function s({hideIndex:a}){a!==void 0&&(t.diffChange.collector[a].lines.forEach(o=>{o.hide=!1,o.fold=!1}),g.value=t.diffChange.changes.filter(o=>!o.hide||o.hideIndex!==void 0),i())}function l(){c.value+=Y,i()}return(a,o)=>(u.openBlock(),u.createElementBlock("table",yr,[wr,u.createElementVNode("tbody",null,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(h),(f,d)=>(u.openBlock(),u.createBlock(vr,{key:d,"split-line":f,onExpand:s},null,8,["split-line"]))),128)),u.unref(n)?(u.openBlock(),u.createElementBlock("tr",Nr,[u.createElementVNode("td",Ar,[u.createElementVNode("button",{class:"load-more-button",type:"button",onClick:l}," Show next "+u.toDisplayString(u.unref(r))+" lines ("+u.toDisplayString(u.unref(n))+" remaining) ",1)])])):u.createCommentVNode("",!0)])]))}}),xe=(e,t)=>{const c=e.__vccOpts||e;for(const[g,h]of t)c[g]=h;return c},Sr={name:"DownArrowIcon"},Tr={width:"1rem",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Dr=u.createElementVNode("path",{d:"M383.6,322.7L278.6,423c-5.8,6-13.7,9-22.4,9c-8.7,0-16.5-3-22.4-9L128.4,322.7c-12.5-11.9-12.5-31.3,0-43.2 c12.5-11.9,32.7-11.9,45.2,0l50.4,48.2v-217c0-16.9,14.3-30.6,32-30.6c17.7,0,32,13.7,32,30.6v217l50.4-48.2 c12.5-11.9,32.7-11.9,45.2,0C396.1,291.4,396.1,310.7,383.6,322.7z"},null,-1),Lr=[Dr];function Cr(e,t,c,g,h,n){return u.openBlock(),u.createElementBlock("svg",Tr,Lr)}const ln=xe(Sr,[["render",Cr]]),Rr={name:"UpArrowIcon"},kr={width:"1rem",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Or=u.createElementVNode("path",{d:"M128.4,189.3L233.4,89c5.8-6,13.7-9,22.4-9c8.7,0,16.5,3,22.4,9l105.4,100.3c12.5,11.9,12.5,31.3,0,43.2 c-12.5,11.9-32.7,11.9-45.2,0L288,184.4v217c0,16.9-14.3,30.6-32,30.6c-17.7,0-32-13.7-32-30.6v-217l-50.4,48.2 c-12.5,11.9-32.7,11.9-45.2,0C115.9,220.6,115.9,201.3,128.4,189.3z"},null,-1),Ir=[Or];function Br(e,t,c,g,h,n){return u.openBlock(),u.createElementBlock("svg",kr,Ir)}const cn=xe(Rr,[["render",Br]]),$r=["theme"],Pr={key:0,class:"file-header"},Ur={key:0,class:"file-info"},zr={class:"info-left"},Hr={class:"info-left"},xr={class:"diff-commandbar"},Fr={key:0,class:"diff-stat"},Vr={class:"diff-stat-added"},Gr={class:"diff-stat-deleted"},Kr={key:1,class:"file-info"},Wr={class:"info-left"},Qr={class:"info-right"},Zr={style:{"margin-left":"20px"}},Yr={class:"diff-commandbar"},Xr={key:0,class:"diff-stat"},jr={class:"diff-stat-added"},qr={class:"diff-stat-deleted"},Fe=u.defineComponent({__name:"CodeDiff",props:{newString:{},oldString:{},language:{default:"plaintext"},context:{default:10},diffStyle:{default:"word"},forceInlineComparison:{type:Boolean,default:!1},outputFormat:{default:"line-by-line"},trim:{type:Boolean,default:!1},noDiffLineFeed:{type:Boolean,default:!1},maxHeight:{default:void 0},filename:{default:void 0},newFilename:{default:void 0},hideHeader:{type:Boolean,default:!1},hideStat:{type:Boolean,default:!1},theme:{default:"light"},ignoreMatchingLines:{default:void 0}},emits:["diff"],setup(e,{emit:t}){const c=e,g=t,h=u.computed(()=>c.outputFormat==="line-by-line"),n=u.computed(()=>{let p=c.oldString||"";return p=c.trim?p.trim():p,p=c.noDiffLineFeed?p.replace(/(\r\n)/g,`
|
|
27
|
-
`):
|
|
28
|
-
`):
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("vue");function te(){}te.prototype={diff:function(r,o){var h,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=p.callback;typeof p=="function"&&(t=p,p={}),this.options=p;var n=this;function i(N){return t?(setTimeout(function(){t(void 0,N)},0),!0):N}r=this.castInput(r),o=this.castInput(o),r=this.removeEmpty(this.tokenize(r)),o=this.removeEmpty(this.tokenize(o));var s=o.length,l=r.length,a=1,c=s+l;p.maxEditLength&&(c=Math.min(c,p.maxEditLength));var u=(h=p.timeout)!==null&&h!==void 0?h:1/0,g=Date.now()+u,_=[{oldPos:-1,lastComponent:void 0}],d=this.extractCommon(_[0],o,r,0);if(_[0].oldPos+1>=l&&d+1>=s)return i([{value:this.join(o),count:o.length}]);var m=-1/0,b=1/0;function v(){for(var N=Math.max(m,-a);N<=Math.min(b,a);N+=2){var T=void 0,S=_[N-1],L=_[N+1];S&&(_[N-1]=void 0);var B=!1;if(L){var D=L.oldPos-N;B=L&&0<=D&&D<s}var k=S&&S.oldPos+1<l;if(!B&&!k){_[N]=void 0;continue}if(!k||B&&S.oldPos+1<L.oldPos?T=n.addToPath(L,!0,void 0,0):T=n.addToPath(S,void 0,!0,1),d=n.extractCommon(T,o,r,N),T.oldPos+1>=l&&d+1>=s)return i(Un(n,T.lastComponent,o,r,n.useLongestToken));_[N]=T,T.oldPos+1>=l&&(b=Math.min(b,N-1)),d+1>=s&&(m=Math.max(m,N+1))}a++}if(t)(function N(){setTimeout(function(){if(a>c||Date.now()>g)return t();v()||N()},0)})();else for(;a<=c&&Date.now()<=g;){var y=v();if(y)return y}},addToPath:function(r,o,h,p){var t=r.lastComponent;return t&&t.added===o&&t.removed===h?{oldPos:r.oldPos+p,lastComponent:{count:t.count+1,added:o,removed:h,previousComponent:t.previousComponent}}:{oldPos:r.oldPos+p,lastComponent:{count:1,added:o,removed:h,previousComponent:t}}},extractCommon:function(r,o,h,p){for(var t=o.length,n=h.length,i=r.oldPos,s=i-p,l=0;s+1<t&&i+1<n&&this.equals(o[s+1],h[i+1]);)s++,i++,l++;return l&&(r.lastComponent={count:l,previousComponent:r.lastComponent}),r.oldPos=i,s},equals:function(r,o){return this.options.comparator?this.options.comparator(r,o):r===o||this.options.ignoreCase&&r.toLowerCase()===o.toLowerCase()},removeEmpty:function(r){for(var o=[],h=0;h<r.length;h++)r[h]&&o.push(r[h]);return o},castInput:function(r){return r},tokenize:function(r){return r.split("")},join:function(r){return r.join("")}};function Un(e,r,o,h,p){for(var t=[],n;r;)t.push(r),n=r.previousComponent,delete r.previousComponent,r=n;t.reverse();for(var i=0,s=t.length,l=0,a=0;i<s;i++){var c=t[i];if(c.removed){if(c.value=e.join(h.slice(a,a+c.count)),a+=c.count,i&&t[i-1].added){var g=t[i-1];t[i-1]=t[i],t[i]=g}}else{if(!c.added&&p){var u=o.slice(l,l+c.count);u=u.map(function(d,m){var b=h[a+m];return b.length>d.length?b:d}),c.value=e.join(u)}else c.value=e.join(o.slice(l,l+c.count));l+=c.count,c.added||(a+=c.count)}}var _=t[s-1];return s>1&&typeof _.value=="string"&&(_.added||_.removed)&&e.equals("",_.value)&&(t[s-2].value+=_.value,t.pop()),t}var zn=new te;function Hn(e,r,o){return zn.diff(e,r,o)}function Fn(e,r){if(typeof e=="function")r.callback=e;else if(e)for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);return r}var Ze=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Ye=/\S/,Be=new te;Be.equals=function(e,r){return this.options.ignoreCase&&(e=e.toLowerCase(),r=r.toLowerCase()),e===r||this.options.ignoreWhitespace&&!Ye.test(e)&&!Ye.test(r)};Be.tokenize=function(e){for(var r=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),o=0;o<r.length-1;o++)!r[o+1]&&r[o+2]&&Ze.test(r[o])&&Ze.test(r[o+2])&&(r[o]+=r[o+2],r.splice(o+1,2),o--);return r};function xn(e,r,o){return o=Fn(o,{ignoreWhitespace:!0}),Be.diff(e,r,o)}var $e=new te;$e.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
3
|
+
`));var r=[],o=e.split(/(\n|\r\n)/);o[o.length-1]||o.pop();for(var h=0;h<o.length;h++){var p=o[h];h%2&&!this.options.newlineIsToken?r[r.length-1]+=p:(this.options.ignoreWhitespace&&(p=p.trim()),r.push(p))}return r};function Vn(e,r,o){return $e.diff(e,r,o)}var Gn=new te;Gn.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var Kn=new te;Kn.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function we(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?we=function(r){return typeof r}:we=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},we(e)}var Wn=Object.prototype.toString,he=new te;he.useLongestToken=!0;he.tokenize=$e.tokenize;he.castInput=function(e){var r=this.options,o=r.undefinedReplacement,h=r.stringifyReplacer,p=h===void 0?function(t,n){return typeof n=="undefined"?o:n}:h;return typeof e=="string"?e:JSON.stringify(Ce(e,null,null,p),p," ")};he.equals=function(e,r){return te.prototype.equals.call(he,e.replace(/,([\r\n])/g,"$1"),r.replace(/,([\r\n])/g,"$1"))};function Ce(e,r,o,h,p){r=r||[],o=o||[],h&&(e=h(p,e));var t;for(t=0;t<r.length;t+=1)if(r[t]===e)return o[t];var n;if(Wn.call(e)==="[object Array]"){for(r.push(e),n=new Array(e.length),o.push(n),t=0;t<e.length;t+=1)n[t]=Ce(e[t],r,o,h,p);return r.pop(),o.pop(),n}if(e&&e.toJSON&&(e=e.toJSON()),we(e)==="object"&&e!==null){r.push(e),n={},o.push(n);var i=[],s;for(s in e)e.hasOwnProperty(s)&&i.push(s);for(i.sort(),t=0;t<i.length;t+=1)s=i[t],n[s]=Ce(e[s],r,o,h,s);r.pop(),o.pop()}else n=e;return n}var ke=new te;ke.tokenize=function(e){return e.slice()};ke.join=ke.removeEmpty=function(e){return e};function Qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var un={exports:{}};(function(e){var r=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},o=-1,h=1,p=0;r.Diff=function(t,n){return[t,n]},r.prototype.diff_main=function(t,n,i,s){typeof s=="undefined"&&(this.Diff_Timeout<=0?s=Number.MAX_VALUE:s=new Date().getTime()+this.Diff_Timeout*1e3);var l=s;if(t==null||n==null)throw new Error("Null input. (diff_main)");if(t==n)return t?[new r.Diff(p,t)]:[];typeof i=="undefined"&&(i=!0);var a=i,c=this.diff_commonPrefix(t,n),u=t.substring(0,c);t=t.substring(c),n=n.substring(c),c=this.diff_commonSuffix(t,n);var g=t.substring(t.length-c);t=t.substring(0,t.length-c),n=n.substring(0,n.length-c);var _=this.diff_compute_(t,n,a,l);return u&&_.unshift(new r.Diff(p,u)),g&&_.push(new r.Diff(p,g)),this.diff_cleanupMerge(_),_},r.prototype.diff_compute_=function(t,n,i,s){var l;if(!t)return[new r.Diff(h,n)];if(!n)return[new r.Diff(o,t)];var a=t.length>n.length?t:n,c=t.length>n.length?n:t,u=a.indexOf(c);if(u!=-1)return l=[new r.Diff(h,a.substring(0,u)),new r.Diff(p,c),new r.Diff(h,a.substring(u+c.length))],t.length>n.length&&(l[0][0]=l[2][0]=o),l;if(c.length==1)return[new r.Diff(o,t),new r.Diff(h,n)];var g=this.diff_halfMatch_(t,n);if(g){var _=g[0],d=g[1],m=g[2],b=g[3],v=g[4],y=this.diff_main(_,m,i,s),N=this.diff_main(d,b,i,s);return y.concat([new r.Diff(p,v)],N)}return i&&t.length>100&&n.length>100?this.diff_lineMode_(t,n,s):this.diff_bisect_(t,n,s)},r.prototype.diff_lineMode_=function(t,n,i){var s=this.diff_linesToChars_(t,n);t=s.chars1,n=s.chars2;var l=s.lineArray,a=this.diff_main(t,n,!1,i);this.diff_charsToLines_(a,l),this.diff_cleanupSemantic(a),a.push(new r.Diff(p,""));for(var c=0,u=0,g=0,_="",d="";c<a.length;){switch(a[c][0]){case h:g++,d+=a[c][1];break;case o:u++,_+=a[c][1];break;case p:if(u>=1&&g>=1){a.splice(c-u-g,u+g),c=c-u-g;for(var m=this.diff_main(_,d,!1,i),b=m.length-1;b>=0;b--)a.splice(c,0,m[b]);c=c+m.length}g=0,u=0,_="",d="";break}c++}return a.pop(),a},r.prototype.diff_bisect_=function(t,n,i){for(var s=t.length,l=n.length,a=Math.ceil((s+l)/2),c=a,u=2*a,g=new Array(u),_=new Array(u),d=0;d<u;d++)g[d]=-1,_[d]=-1;g[c+1]=0,_[c+1]=0;for(var m=s-l,b=m%2!=0,v=0,y=0,N=0,T=0,S=0;S<a&&!(new Date().getTime()>i);S++){for(var L=-S+v;L<=S-y;L+=2){var B=c+L,D;L==-S||L!=S&&g[B-1]<g[B+1]?D=g[B+1]:D=g[B-1]+1;for(var k=D-L;D<s&&k<l&&t.charAt(D)==n.charAt(k);)D++,k++;if(g[B]=D,D>s)y+=2;else if(k>l)v+=2;else if(b){var $=c+m-L;if($>=0&&$<u&&_[$]!=-1){var U=s-_[$];if(D>=U)return this.diff_bisectSplit_(t,n,D,k,i)}}}for(var x=-S+N;x<=S-T;x+=2){var $=c+x,U;x==-S||x!=S&&_[$-1]<_[$+1]?U=_[$+1]:U=_[$-1]+1;for(var K=U-x;U<s&&K<l&&t.charAt(s-U-1)==n.charAt(l-K-1);)U++,K++;if(_[$]=U,U>s)T+=2;else if(K>l)N+=2;else if(!b){var B=c+m-x;if(B>=0&&B<u&&g[B]!=-1){var D=g[B],k=c+D-B;if(U=s-U,D>=U)return this.diff_bisectSplit_(t,n,D,k,i)}}}}return[new r.Diff(o,t),new r.Diff(h,n)]},r.prototype.diff_bisectSplit_=function(t,n,i,s,l){var a=t.substring(0,i),c=n.substring(0,s),u=t.substring(i),g=n.substring(s),_=this.diff_main(a,c,!1,l),d=this.diff_main(u,g,!1,l);return _.concat(d)},r.prototype.diff_linesToChars_=function(t,n){var i=[],s={};i[0]="";function l(g){for(var _="",d=0,m=-1,b=i.length;m<g.length-1;){m=g.indexOf(`
|
|
4
|
+
`,d),m==-1&&(m=g.length-1);var v=g.substring(d,m+1);(s.hasOwnProperty?s.hasOwnProperty(v):s[v]!==void 0)?_+=String.fromCharCode(s[v]):(b==a&&(v=g.substring(d),m=g.length),_+=String.fromCharCode(b),s[v]=b,i[b++]=v),d=m+1}return _}var a=4e4,c=l(t);a=65535;var u=l(n);return{chars1:c,chars2:u,lineArray:i}},r.prototype.diff_charsToLines_=function(t,n){for(var i=0;i<t.length;i++){for(var s=t[i][1],l=[],a=0;a<s.length;a++)l[a]=n[s.charCodeAt(a)];t[i][1]=l.join("")}},r.prototype.diff_commonPrefix=function(t,n){if(!t||!n||t.charAt(0)!=n.charAt(0))return 0;for(var i=0,s=Math.min(t.length,n.length),l=s,a=0;i<l;)t.substring(a,l)==n.substring(a,l)?(i=l,a=i):s=l,l=Math.floor((s-i)/2+i);return l},r.prototype.diff_commonSuffix=function(t,n){if(!t||!n||t.charAt(t.length-1)!=n.charAt(n.length-1))return 0;for(var i=0,s=Math.min(t.length,n.length),l=s,a=0;i<l;)t.substring(t.length-l,t.length-a)==n.substring(n.length-l,n.length-a)?(i=l,a=i):s=l,l=Math.floor((s-i)/2+i);return l},r.prototype.diff_commonOverlap_=function(t,n){var i=t.length,s=n.length;if(i==0||s==0)return 0;i>s?t=t.substring(i-s):i<s&&(n=n.substring(0,i));var l=Math.min(i,s);if(t==n)return l;for(var a=0,c=1;;){var u=t.substring(l-c),g=n.indexOf(u);if(g==-1)return a;c+=g,(g==0||t.substring(l-c)==n.substring(0,c))&&(a=c,c++)}},r.prototype.diff_halfMatch_=function(t,n){if(this.Diff_Timeout<=0)return null;var i=t.length>n.length?t:n,s=t.length>n.length?n:t;if(i.length<4||s.length*2<i.length)return null;var l=this;function a(y,N,T){for(var S=y.substring(T,T+Math.floor(y.length/4)),L=-1,B="",D,k,$,U;(L=N.indexOf(S,L+1))!=-1;){var x=l.diff_commonPrefix(y.substring(T),N.substring(L)),K=l.diff_commonSuffix(y.substring(0,T),N.substring(0,L));B.length<K+x&&(B=N.substring(L-K,L)+N.substring(L,L+x),D=y.substring(0,T-K),k=y.substring(T+x),$=N.substring(0,L-K),U=N.substring(L+x))}return B.length*2>=y.length?[D,k,$,U,B]:null}var c=a(i,s,Math.ceil(i.length/4)),u=a(i,s,Math.ceil(i.length/2)),g;if(!c&&!u)return null;u?c?g=c[4].length>u[4].length?c:u:g=u:g=c;var _,d,m,b;t.length>n.length?(_=g[0],d=g[1],m=g[2],b=g[3]):(m=g[0],b=g[1],_=g[2],d=g[3]);var v=g[4];return[_,d,m,b,v]},r.prototype.diff_cleanupSemantic=function(t){for(var n=!1,i=[],s=0,l=null,a=0,c=0,u=0,g=0,_=0;a<t.length;)t[a][0]==p?(i[s++]=a,c=g,u=_,g=0,_=0,l=t[a][1]):(t[a][0]==h?g+=t[a][1].length:_+=t[a][1].length,l&&l.length<=Math.max(c,u)&&l.length<=Math.max(g,_)&&(t.splice(i[s-1],0,new r.Diff(o,l)),t[i[s-1]+1][0]=h,s--,s--,a=s>0?i[s-1]:-1,c=0,u=0,g=0,_=0,l=null,n=!0)),a++;for(n&&this.diff_cleanupMerge(t),this.diff_cleanupSemanticLossless(t),a=1;a<t.length;){if(t[a-1][0]==o&&t[a][0]==h){var d=t[a-1][1],m=t[a][1],b=this.diff_commonOverlap_(d,m),v=this.diff_commonOverlap_(m,d);b>=v?(b>=d.length/2||b>=m.length/2)&&(t.splice(a,0,new r.Diff(p,m.substring(0,b))),t[a-1][1]=d.substring(0,d.length-b),t[a+1][1]=m.substring(b),a++):(v>=d.length/2||v>=m.length/2)&&(t.splice(a,0,new r.Diff(p,d.substring(0,v))),t[a-1][0]=h,t[a-1][1]=m.substring(0,m.length-v),t[a+1][0]=o,t[a+1][1]=d.substring(v),a++),a++}a++}},r.prototype.diff_cleanupSemanticLossless=function(t){function n(v,y){if(!v||!y)return 6;var N=v.charAt(v.length-1),T=y.charAt(0),S=N.match(r.nonAlphaNumericRegex_),L=T.match(r.nonAlphaNumericRegex_),B=S&&N.match(r.whitespaceRegex_),D=L&&T.match(r.whitespaceRegex_),k=B&&N.match(r.linebreakRegex_),$=D&&T.match(r.linebreakRegex_),U=k&&v.match(r.blanklineEndRegex_),x=$&&y.match(r.blanklineStartRegex_);return U||x?5:k||$?4:S&&!B&&D?3:B||D?2:S||L?1:0}for(var i=1;i<t.length-1;){if(t[i-1][0]==p&&t[i+1][0]==p){var s=t[i-1][1],l=t[i][1],a=t[i+1][1],c=this.diff_commonSuffix(s,l);if(c){var u=l.substring(l.length-c);s=s.substring(0,s.length-c),l=u+l.substring(0,l.length-c),a=u+a}for(var g=s,_=l,d=a,m=n(s,l)+n(l,a);l.charAt(0)===a.charAt(0);){s+=l.charAt(0),l=l.substring(1)+a.charAt(0),a=a.substring(1);var b=n(s,l)+n(l,a);b>=m&&(m=b,g=s,_=l,d=a)}t[i-1][1]!=g&&(g?t[i-1][1]=g:(t.splice(i-1,1),i--),t[i][1]=_,d?t[i+1][1]=d:(t.splice(i+1,1),i--))}i++}},r.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,r.whitespaceRegex_=/\s/,r.linebreakRegex_=/[\r\n]/,r.blanklineEndRegex_=/\n\r?\n$/,r.blanklineStartRegex_=/^\r?\n\r?\n/,r.prototype.diff_cleanupEfficiency=function(t){for(var n=!1,i=[],s=0,l=null,a=0,c=!1,u=!1,g=!1,_=!1;a<t.length;)t[a][0]==p?(t[a][1].length<this.Diff_EditCost&&(g||_)?(i[s++]=a,c=g,u=_,l=t[a][1]):(s=0,l=null),g=_=!1):(t[a][0]==o?_=!0:g=!0,l&&(c&&u&&g&&_||l.length<this.Diff_EditCost/2&&c+u+g+_==3)&&(t.splice(i[s-1],0,new r.Diff(o,l)),t[i[s-1]+1][0]=h,s--,l=null,c&&u?(g=_=!0,s=0):(s--,a=s>0?i[s-1]:-1,g=_=!1),n=!0)),a++;n&&this.diff_cleanupMerge(t)},r.prototype.diff_cleanupMerge=function(t){t.push(new r.Diff(p,""));for(var n=0,i=0,s=0,l="",a="",c;n<t.length;)switch(t[n][0]){case h:s++,a+=t[n][1],n++;break;case o:i++,l+=t[n][1],n++;break;case p:i+s>1?(i!==0&&s!==0&&(c=this.diff_commonPrefix(a,l),c!==0&&(n-i-s>0&&t[n-i-s-1][0]==p?t[n-i-s-1][1]+=a.substring(0,c):(t.splice(0,0,new r.Diff(p,a.substring(0,c))),n++),a=a.substring(c),l=l.substring(c)),c=this.diff_commonSuffix(a,l),c!==0&&(t[n][1]=a.substring(a.length-c)+t[n][1],a=a.substring(0,a.length-c),l=l.substring(0,l.length-c))),n-=i+s,t.splice(n,i+s),l.length&&(t.splice(n,0,new r.Diff(o,l)),n++),a.length&&(t.splice(n,0,new r.Diff(h,a)),n++),n++):n!==0&&t[n-1][0]==p?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,s=0,i=0,l="",a="";break}t[t.length-1][1]===""&&t.pop();var u=!1;for(n=1;n<t.length-1;)t[n-1][0]==p&&t[n+1][0]==p&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)==t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),u=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),u=!0)),n++;u&&this.diff_cleanupMerge(t)},r.prototype.diff_xIndex=function(t,n){var i=0,s=0,l=0,a=0,c;for(c=0;c<t.length&&(t[c][0]!==h&&(i+=t[c][1].length),t[c][0]!==o&&(s+=t[c][1].length),!(i>n));c++)l=i,a=s;return t.length!=c&&t[c][0]===o?a:a+(n-l)},r.prototype.diff_prettyHtml=function(t){for(var n=[],i=/&/g,s=/</g,l=/>/g,a=/\n/g,c=0;c<t.length;c++){var u=t[c][0],g=t[c][1],_=g.replace(i,"&").replace(s,"<").replace(l,">").replace(a,"¶<br>");switch(u){case h:n[c]='<ins style="background:#e6ffe6;">'+_+"</ins>";break;case o:n[c]='<del style="background:#ffe6e6;">'+_+"</del>";break;case p:n[c]="<span>"+_+"</span>";break}}return n.join("")},r.prototype.diff_text1=function(t){for(var n=[],i=0;i<t.length;i++)t[i][0]!==h&&(n[i]=t[i][1]);return n.join("")},r.prototype.diff_text2=function(t){for(var n=[],i=0;i<t.length;i++)t[i][0]!==o&&(n[i]=t[i][1]);return n.join("")},r.prototype.diff_levenshtein=function(t){for(var n=0,i=0,s=0,l=0;l<t.length;l++){var a=t[l][0],c=t[l][1];switch(a){case h:i+=c.length;break;case o:s+=c.length;break;case p:n+=Math.max(i,s),i=0,s=0;break}}return n+=Math.max(i,s),n},r.prototype.diff_toDelta=function(t){for(var n=[],i=0;i<t.length;i++)switch(t[i][0]){case h:n[i]="+"+encodeURI(t[i][1]);break;case o:n[i]="-"+t[i][1].length;break;case p:n[i]="="+t[i][1].length;break}return n.join(" ").replace(/%20/g," ")},r.prototype.diff_fromDelta=function(t,n){for(var i=[],s=0,l=0,a=n.split(/\t/g),c=0;c<a.length;c++){var u=a[c].substring(1);switch(a[c].charAt(0)){case"+":try{i[s++]=new r.Diff(h,decodeURI(u))}catch(d){throw new Error("Illegal escape in diff_fromDelta: "+u)}break;case"-":case"=":var g=parseInt(u,10);if(isNaN(g)||g<0)throw new Error("Invalid number in diff_fromDelta: "+u);var _=t.substring(l,l+=g);a[c].charAt(0)=="="?i[s++]=new r.Diff(p,_):i[s++]=new r.Diff(o,_);break;default:if(a[c])throw new Error("Invalid diff operation in diff_fromDelta: "+a[c])}}if(l!=t.length)throw new Error("Delta length ("+l+") does not equal source text length ("+t.length+").");return i},r.prototype.match_main=function(t,n,i){if(t==null||n==null||i==null)throw new Error("Null input. (match_main)");return i=Math.max(0,Math.min(i,t.length)),t==n?0:t.length?t.substring(i,i+n.length)==n?i:this.match_bitap_(t,n,i):-1},r.prototype.match_bitap_=function(t,n,i){if(n.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var s=this.match_alphabet_(n),l=this;function a(D,k){var $=D/n.length,U=Math.abs(i-k);return l.Match_Distance?$+U/l.Match_Distance:U?1:$}var c=this.Match_Threshold,u=t.indexOf(n,i);u!=-1&&(c=Math.min(a(0,u),c),u=t.lastIndexOf(n,i+n.length),u!=-1&&(c=Math.min(a(0,u),c)));var g=1<<n.length-1;u=-1;for(var _,d,m=n.length+t.length,b,v=0;v<n.length;v++){for(_=0,d=m;_<d;)a(v,i+d)<=c?_=d:m=d,d=Math.floor((m-_)/2+_);m=d;var y=Math.max(1,i-d+1),N=Math.min(i+d,t.length)+n.length,T=Array(N+2);T[N+1]=(1<<v)-1;for(var S=N;S>=y;S--){var L=s[t.charAt(S-1)];if(v===0?T[S]=(T[S+1]<<1|1)&L:T[S]=(T[S+1]<<1|1)&L|((b[S+1]|b[S])<<1|1)|b[S+1],T[S]&g){var B=a(v,S-1);if(B<=c)if(c=B,u=S-1,u>i)y=Math.max(1,2*i-u);else break}}if(a(v+1,i)>c)break;b=T}return u},r.prototype.match_alphabet_=function(t){for(var n={},i=0;i<t.length;i++)n[t.charAt(i)]=0;for(var i=0;i<t.length;i++)n[t.charAt(i)]|=1<<t.length-i-1;return n},r.prototype.patch_addContext_=function(t,n){if(n.length!=0){if(t.start2===null)throw Error("patch not initialized");for(var i=n.substring(t.start2,t.start2+t.length1),s=0;n.indexOf(i)!=n.lastIndexOf(i)&&i.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)s+=this.Patch_Margin,i=n.substring(t.start2-s,t.start2+t.length1+s);s+=this.Patch_Margin;var l=n.substring(t.start2-s,t.start2);l&&t.diffs.unshift(new r.Diff(p,l));var a=n.substring(t.start2+t.length1,t.start2+t.length1+s);a&&t.diffs.push(new r.Diff(p,a)),t.start1-=l.length,t.start2-=l.length,t.length1+=l.length+a.length,t.length2+=l.length+a.length}},r.prototype.patch_make=function(t,n,i){var s,l;if(typeof t=="string"&&typeof n=="string"&&typeof i=="undefined")s=t,l=this.diff_main(s,n,!0),l.length>2&&(this.diff_cleanupSemantic(l),this.diff_cleanupEfficiency(l));else if(t&&typeof t=="object"&&typeof n=="undefined"&&typeof i=="undefined")l=t,s=this.diff_text1(l);else if(typeof t=="string"&&n&&typeof n=="object"&&typeof i=="undefined")s=t,l=n;else if(typeof t=="string"&&typeof n=="string"&&i&&typeof i=="object")s=t,l=i;else throw new Error("Unknown call format to patch_make.");if(l.length===0)return[];for(var a=[],c=new r.patch_obj,u=0,g=0,_=0,d=s,m=s,b=0;b<l.length;b++){var v=l[b][0],y=l[b][1];switch(!u&&v!==p&&(c.start1=g,c.start2=_),v){case h:c.diffs[u++]=l[b],c.length2+=y.length,m=m.substring(0,_)+y+m.substring(_);break;case o:c.length1+=y.length,c.diffs[u++]=l[b],m=m.substring(0,_)+m.substring(_+y.length);break;case p:y.length<=2*this.Patch_Margin&&u&&l.length!=b+1?(c.diffs[u++]=l[b],c.length1+=y.length,c.length2+=y.length):y.length>=2*this.Patch_Margin&&u&&(this.patch_addContext_(c,d),a.push(c),c=new r.patch_obj,u=0,d=m,g=_);break}v!==h&&(g+=y.length),v!==o&&(_+=y.length)}return u&&(this.patch_addContext_(c,d),a.push(c)),a},r.prototype.patch_deepCopy=function(t){for(var n=[],i=0;i<t.length;i++){var s=t[i],l=new r.patch_obj;l.diffs=[];for(var a=0;a<s.diffs.length;a++)l.diffs[a]=new r.Diff(s.diffs[a][0],s.diffs[a][1]);l.start1=s.start1,l.start2=s.start2,l.length1=s.length1,l.length2=s.length2,n[i]=l}return n},r.prototype.patch_apply=function(t,n){if(t.length==0)return[n,[]];t=this.patch_deepCopy(t);var i=this.patch_addPadding(t);n=i+n+i,this.patch_splitMax(t);for(var s=0,l=[],a=0;a<t.length;a++){var c=t[a].start2+s,u=this.diff_text1(t[a].diffs),g,_=-1;if(u.length>this.Match_MaxBits?(g=this.match_main(n,u.substring(0,this.Match_MaxBits),c),g!=-1&&(_=this.match_main(n,u.substring(u.length-this.Match_MaxBits),c+u.length-this.Match_MaxBits),(_==-1||g>=_)&&(g=-1))):g=this.match_main(n,u,c),g==-1)l[a]=!1,s-=t[a].length2-t[a].length1;else{l[a]=!0,s=g-c;var d;if(_==-1?d=n.substring(g,g+u.length):d=n.substring(g,_+this.Match_MaxBits),u==d)n=n.substring(0,g)+this.diff_text2(t[a].diffs)+n.substring(g+u.length);else{var m=this.diff_main(u,d,!1);if(u.length>this.Match_MaxBits&&this.diff_levenshtein(m)/u.length>this.Patch_DeleteThreshold)l[a]=!1;else{this.diff_cleanupSemanticLossless(m);for(var b=0,v,y=0;y<t[a].diffs.length;y++){var N=t[a].diffs[y];N[0]!==p&&(v=this.diff_xIndex(m,b)),N[0]===h?n=n.substring(0,g+v)+N[1]+n.substring(g+v):N[0]===o&&(n=n.substring(0,g+v)+n.substring(g+this.diff_xIndex(m,b+N[1].length))),N[0]!==o&&(b+=N[1].length)}}}}}return n=n.substring(i.length,n.length-i.length),[n,l]},r.prototype.patch_addPadding=function(t){for(var n=this.Patch_Margin,i="",s=1;s<=n;s++)i+=String.fromCharCode(s);for(var s=0;s<t.length;s++)t[s].start1+=n,t[s].start2+=n;var l=t[0],a=l.diffs;if(a.length==0||a[0][0]!=p)a.unshift(new r.Diff(p,i)),l.start1-=n,l.start2-=n,l.length1+=n,l.length2+=n;else if(n>a[0][1].length){var c=n-a[0][1].length;a[0][1]=i.substring(a[0][1].length)+a[0][1],l.start1-=c,l.start2-=c,l.length1+=c,l.length2+=c}if(l=t[t.length-1],a=l.diffs,a.length==0||a[a.length-1][0]!=p)a.push(new r.Diff(p,i)),l.length1+=n,l.length2+=n;else if(n>a[a.length-1][1].length){var c=n-a[a.length-1][1].length;a[a.length-1][1]+=i.substring(0,c),l.length1+=c,l.length2+=c}return i},r.prototype.patch_splitMax=function(t){for(var n=this.Match_MaxBits,i=0;i<t.length;i++)if(!(t[i].length1<=n)){var s=t[i];t.splice(i--,1);for(var l=s.start1,a=s.start2,c="";s.diffs.length!==0;){var u=new r.patch_obj,g=!0;for(u.start1=l-c.length,u.start2=a-c.length,c!==""&&(u.length1=u.length2=c.length,u.diffs.push(new r.Diff(p,c)));s.diffs.length!==0&&u.length1<n-this.Patch_Margin;){var _=s.diffs[0][0],d=s.diffs[0][1];_===h?(u.length2+=d.length,a+=d.length,u.diffs.push(s.diffs.shift()),g=!1):_===o&&u.diffs.length==1&&u.diffs[0][0]==p&&d.length>2*n?(u.length1+=d.length,l+=d.length,g=!1,u.diffs.push(new r.Diff(_,d)),s.diffs.shift()):(d=d.substring(0,n-u.length1-this.Patch_Margin),u.length1+=d.length,l+=d.length,_===p?(u.length2+=d.length,a+=d.length):g=!1,u.diffs.push(new r.Diff(_,d)),d==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(d.length))}c=this.diff_text2(u.diffs),c=c.substring(c.length-this.Patch_Margin);var m=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);m!==""&&(u.length1+=m.length,u.length2+=m.length,u.diffs.length!==0&&u.diffs[u.diffs.length-1][0]===p?u.diffs[u.diffs.length-1][1]+=m:u.diffs.push(new r.Diff(p,m))),g||t.splice(++i,0,u)}}},r.prototype.patch_toText=function(t){for(var n=[],i=0;i<t.length;i++)n[i]=t[i];return n.join("")},r.prototype.patch_fromText=function(t){var n=[];if(!t)return n;for(var i=t.split(`
|
|
5
|
+
`),s=0,l=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;s<i.length;){var a=i[s].match(l);if(!a)throw new Error("Invalid patch string: "+i[s]);var c=new r.patch_obj;for(n.push(c),c.start1=parseInt(a[1],10),a[2]===""?(c.start1--,c.length1=1):a[2]=="0"?c.length1=0:(c.start1--,c.length1=parseInt(a[2],10)),c.start2=parseInt(a[3],10),a[4]===""?(c.start2--,c.length2=1):a[4]=="0"?c.length2=0:(c.start2--,c.length2=parseInt(a[4],10)),s++;s<i.length;){var u=i[s].charAt(0);try{var g=decodeURI(i[s].substring(1))}catch(_){throw new Error("Illegal escape in patch_fromText: "+g)}if(u=="-")c.diffs.push(new r.Diff(o,g));else if(u=="+")c.diffs.push(new r.Diff(h,g));else if(u==" ")c.diffs.push(new r.Diff(p,g));else{if(u=="@")break;if(u!=="")throw new Error('Invalid patch mode "'+u+'" in: '+g)}s++}}return n},r.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},r.patch_obj.prototype.toString=function(){var t,n;this.length1===0?t=this.start1+",0":this.length1==1?t=this.start1+1:t=this.start1+1+","+this.length1,this.length2===0?n=this.start2+",0":this.length2==1?n=this.start2+1:n=this.start2+1+","+this.length2;for(var i=["@@ -"+t+" +"+n+` @@
|
|
6
|
+
`],s,l=0;l<this.diffs.length;l++){switch(this.diffs[l][0]){case h:s="+";break;case o:s="-";break;case p:s=" ";break}i[l+1]=s+encodeURI(this.diffs[l][1])+`
|
|
7
|
+
`}return i.join("").replace(/%20/g," ")},e.exports=r,e.exports.diff_match_patch=r,e.exports.DIFF_DELETE=o,e.exports.DIFF_INSERT=h,e.exports.DIFF_EQUAL=p})(un);var Te=un.exports;function fn(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(r=>{const o=e[r],h=typeof o;(h==="object"||h==="function")&&!Object.isFrozen(o)&&fn(o)}),e}class Xe{constructor(r){r.data===void 0&&(r.data={}),this.data=r.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function gn(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ie(e,...r){const o=Object.create(null);for(const h in e)o[h]=e[h];return r.forEach(function(h){for(const p in h)o[p]=h[p]}),o}const Zn="</span>",je=e=>!!e.scope,Yn=(e,{prefix:r})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const o=e.split(".");return[`${r}${o.shift()}`,...o.map((h,p)=>`${h}${"_".repeat(p+1)}`)].join(" ")}return`${r}${e}`};class Xn{constructor(r,o){this.buffer="",this.classPrefix=o.classPrefix,r.walk(this)}addText(r){this.buffer+=gn(r)}openNode(r){if(!je(r))return;const o=Yn(r.scope,{prefix:this.classPrefix});this.span(o)}closeNode(r){je(r)&&(this.buffer+=Zn)}value(){return this.buffer}span(r){this.buffer+=`<span class="${r}">`}}const qe=(e={})=>{const r={children:[]};return Object.assign(r,e),r};class Pe{constructor(){this.rootNode=qe(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(r){this.top.children.push(r)}openNode(r){const o=qe({scope:r});this.add(o),this.stack.push(o)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(r){return this.constructor._walk(r,this.rootNode)}static _walk(r,o){return typeof o=="string"?r.addText(o):o.children&&(r.openNode(o),o.children.forEach(h=>this._walk(r,h)),r.closeNode(o)),r}static _collapse(r){typeof r!="string"&&r.children&&(r.children.every(o=>typeof o=="string")?r.children=[r.children.join("")]:r.children.forEach(o=>{Pe._collapse(o)}))}}class jn extends Pe{constructor(r){super(),this.options=r}addText(r){r!==""&&this.add(r)}startScope(r){this.openNode(r)}endScope(){this.closeNode()}__addSublanguage(r,o){const h=r.root;o&&(h.scope=`language:${o}`),this.add(h)}toHTML(){return new Xn(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function de(e){return e?typeof e=="string"?e:e.source:null}function hn(e){return le("(?=",e,")")}function qn(e){return le("(?:",e,")*")}function Jn(e){return le("(?:",e,")?")}function le(...e){return e.map(o=>de(o)).join("")}function et(e){const r=e[e.length-1];return typeof r=="object"&&r.constructor===Object?(e.splice(e.length-1,1),r):{}}function Ue(...e){return"("+(et(e).capture?"":"?:")+e.map(h=>de(h)).join("|")+")"}function dn(e){return new RegExp(e.toString()+"|").exec("").length-1}function nt(e,r){const o=e&&e.exec(r);return o&&o.index===0}const tt=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ze(e,{joinWith:r}){let o=0;return e.map(h=>{o+=1;const p=o;let t=de(h),n="";for(;t.length>0;){const i=tt.exec(t);if(!i){n+=t;break}n+=t.substring(0,i.index),t=t.substring(i.index+i[0].length),i[0][0]==="\\"&&i[1]?n+="\\"+String(Number(i[1])+p):(n+=i[0],i[0]==="("&&o++)}return n}).map(h=>`(${h})`).join(r)}const rt=/\b\B/,pn="[a-zA-Z]\\w*",He="[a-zA-Z_]\\w*",_n="\\b\\d+(\\.\\d+)?",mn="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",bn="\\b(0b[01]+)",it="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",st=(e={})=>{const r=/^#![ ]*\//;return e.binary&&(e.begin=le(r,/.*\b/,e.binary,/\b.*/)),ie({scope:"meta",begin:r,end:/$/,relevance:0,"on:begin":(o,h)=>{o.index!==0&&h.ignoreMatch()}},e)},pe={begin:"\\\\[\\s\\S]",relevance:0},at={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[pe]},ot={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[pe]},lt={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/},Ae=function(e,r,o={}){const h=ie({scope:"comment",begin:e,end:r,contains:[]},o);h.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const p=Ue("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return h.contains.push({begin:le(/[ ]+/,"(",p,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),h},ct=Ae("//","$"),ut=Ae("/\\*","\\*/"),ft=Ae("#","$"),gt={scope:"number",begin:_n,relevance:0},ht={scope:"number",begin:mn,relevance:0},dt={scope:"number",begin:bn,relevance:0},pt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[pe,{begin:/\[/,end:/\]/,relevance:0,contains:[pe]}]},_t={scope:"title",begin:pn,relevance:0},mt={scope:"title",begin:He,relevance:0},bt={begin:"\\.\\s*"+He,relevance:0},Et=function(e){return Object.assign(e,{"on:begin":(r,o)=>{o.data._beginMatch=r[1]},"on:end":(r,o)=>{o.data._beginMatch!==r[1]&&o.ignoreMatch()}})};var Ee=Object.freeze({__proto__:null,APOS_STRING_MODE:at,BACKSLASH_ESCAPE:pe,BINARY_NUMBER_MODE:dt,BINARY_NUMBER_RE:bn,COMMENT:Ae,C_BLOCK_COMMENT_MODE:ut,C_LINE_COMMENT_MODE:ct,C_NUMBER_MODE:ht,C_NUMBER_RE:mn,END_SAME_AS_BEGIN:Et,HASH_COMMENT_MODE:ft,IDENT_RE:pn,MATCH_NOTHING_RE:rt,METHOD_GUARD:bt,NUMBER_MODE:gt,NUMBER_RE:_n,PHRASAL_WORDS_MODE:lt,QUOTE_STRING_MODE:ot,REGEXP_MODE:pt,RE_STARTERS_RE:it,SHEBANG:st,TITLE_MODE:_t,UNDERSCORE_IDENT_RE:He,UNDERSCORE_TITLE_MODE:mt});function vt(e,r){e.input[e.index-1]==="."&&r.ignoreMatch()}function yt(e,r){e.className!==void 0&&(e.scope=e.className,delete e.className)}function wt(e,r){r&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=vt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Nt(e,r){Array.isArray(e.illegal)&&(e.illegal=Ue(...e.illegal))}function At(e,r){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Mt(e,r){e.relevance===void 0&&(e.relevance=1)}const Dt=(e,r)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const o=Object.assign({},e);Object.keys(e).forEach(h=>{delete e[h]}),e.keywords=o.keywords,e.begin=le(o.beforeMatch,hn(o.begin)),e.starts={relevance:0,contains:[Object.assign(o,{endsParent:!0})]},e.relevance=0,delete o.beforeMatch},St=["of","and","for","in","not","or","if","then","parent","list","value"],Tt="keyword";function En(e,r,o=Tt){const h=Object.create(null);return typeof e=="string"?p(o,e.split(" ")):Array.isArray(e)?p(o,e):Object.keys(e).forEach(function(t){Object.assign(h,En(e[t],r,t))}),h;function p(t,n){r&&(n=n.map(i=>i.toLowerCase())),n.forEach(function(i){const s=i.split("|");h[s[0]]=[t,Lt(s[0],s[1])]})}}function Lt(e,r){return r?Number(r):Ct(e)?0:1}function Ct(e){return St.includes(e.toLowerCase())}const Je={},oe=e=>{console.error(e)},en=(e,...r)=>{console.log(`WARN: ${e}`,...r)},ue=(e,r)=>{Je[`${e}/${r}`]||(console.log(`Deprecated as of ${e}. ${r}`),Je[`${e}/${r}`]=!0)},Ne=new Error;function vn(e,r,{key:o}){let h=0;const p=e[o],t={},n={};for(let i=1;i<=r.length;i++)n[i+h]=p[i],t[i+h]=!0,h+=dn(r[i-1]);e[o]=n,e[o]._emit=t,e[o]._multi=!0}function kt(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw oe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ne;if(typeof e.beginScope!="object"||e.beginScope===null)throw oe("beginScope must be object"),Ne;vn(e,e.begin,{key:"beginScope"}),e.begin=ze(e.begin,{joinWith:""})}}function Rt(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw oe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ne;if(typeof e.endScope!="object"||e.endScope===null)throw oe("endScope must be object"),Ne;vn(e,e.end,{key:"endScope"}),e.end=ze(e.end,{joinWith:""})}}function Ot(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function It(e){Ot(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),kt(e),Rt(e)}function Bt(e){function r(n,i){return new RegExp(de(n),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(i?"g":""))}class o{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(i,s){s.position=this.position++,this.matchIndexes[this.matchAt]=s,this.regexes.push([s,i]),this.matchAt+=dn(i)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const i=this.regexes.map(s=>s[1]);this.matcherRe=r(ze(i,{joinWith:"|"}),!0),this.lastIndex=0}exec(i){this.matcherRe.lastIndex=this.lastIndex;const s=this.matcherRe.exec(i);if(!s)return null;const l=s.findIndex((c,u)=>u>0&&c!==void 0),a=this.matchIndexes[l];return s.splice(0,l),Object.assign(s,a)}}class h{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(i){if(this.multiRegexes[i])return this.multiRegexes[i];const s=new o;return this.rules.slice(i).forEach(([l,a])=>s.addRule(l,a)),s.compile(),this.multiRegexes[i]=s,s}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(i,s){this.rules.push([i,s]),s.type==="begin"&&this.count++}exec(i){const s=this.getMatcher(this.regexIndex);s.lastIndex=this.lastIndex;let l=s.exec(i);if(this.resumingScanAtSamePosition()&&!(l&&l.index===this.lastIndex)){const a=this.getMatcher(0);a.lastIndex=this.lastIndex+1,l=a.exec(i)}return l&&(this.regexIndex+=l.position+1,this.regexIndex===this.count&&this.considerAll()),l}}function p(n){const i=new h;return n.contains.forEach(s=>i.addRule(s.begin,{rule:s,type:"begin"})),n.terminatorEnd&&i.addRule(n.terminatorEnd,{type:"end"}),n.illegal&&i.addRule(n.illegal,{type:"illegal"}),i}function t(n,i){const s=n;if(n.isCompiled)return s;[yt,At,It,Dt].forEach(a=>a(n,i)),e.compilerExtensions.forEach(a=>a(n,i)),n.__beforeBegin=null,[wt,Nt,Mt].forEach(a=>a(n,i)),n.isCompiled=!0;let l=null;return typeof n.keywords=="object"&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),l=n.keywords.$pattern,delete n.keywords.$pattern),l=l||/\w+/,n.keywords&&(n.keywords=En(n.keywords,e.case_insensitive)),s.keywordPatternRe=r(l,!0),i&&(n.begin||(n.begin=/\B|\b/),s.beginRe=r(s.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(s.endRe=r(s.end)),s.terminatorEnd=de(s.end)||"",n.endsWithParent&&i.terminatorEnd&&(s.terminatorEnd+=(n.end?"|":"")+i.terminatorEnd)),n.illegal&&(s.illegalRe=r(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(a){return $t(a==="self"?n:a)})),n.contains.forEach(function(a){t(a,s)}),n.starts&&t(n.starts,i),s.matcher=p(s),s}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=ie(e.classNameAliases||{}),t(e)}function yn(e){return e?e.endsWithParent||yn(e.starts):!1}function $t(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(r){return ie(e,{variants:null},r)})),e.cachedVariants?e.cachedVariants:yn(e)?ie(e,{starts:e.starts?ie(e.starts):null}):Object.isFrozen(e)?ie(e):e}var Pt="11.10.0";class Ut extends Error{constructor(r,o){super(r),this.name="HTMLInjectionError",this.html=o}}const Le=gn,nn=ie,tn=Symbol("nomatch"),zt=7,wn=function(e){const r=Object.create(null),o=Object.create(null),h=[];let p=!0;const t="Could not find the language '{}', did you forget to load/include a language module?",n={disableAutodetect:!0,name:"Plain text",contains:[]};let i={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:jn};function s(E){return i.noHighlightRe.test(E)}function l(E){let M=E.className+" ";M+=E.parentNode?E.parentNode.className:"";const R=i.languageDetectRe.exec(M);if(R){const P=D(R[1]);return P||(en(t.replace("{}",R[1])),en("Falling back to no-highlight mode for this block.",E)),P?R[1]:"no-highlight"}return M.split(/\s+/).find(P=>s(P)||D(P))}function a(E,M,R){let P="",F="";typeof M=="object"?(P=E,R=M.ignoreIllegals,F=M.language):(ue("10.7.0","highlight(lang, code, ...args) has been deprecated."),ue("10.7.0",`Please use highlight(code, options) instead.
|
|
8
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),F=E,P=M),R===void 0&&(R=!0);const W={code:P,language:F};re("before:highlight",W);const X=W.result?W.result:c(W.language,W.code,R);return X.code=W.code,re("after:highlight",X),X}function c(E,M,R,P){const F=Object.create(null);function W(A,C){return A.keywords[C]}function X(){if(!O.keywords){V.addText(H);return}let A=0;O.keywordPatternRe.lastIndex=0;let C=O.keywordPatternRe.exec(H),I="";for(;C;){I+=H.substring(A,C.index);const z=q.case_insensitive?C[0].toLowerCase():C[0],G=W(O,z);if(G){const[ne,$n]=G;if(V.addText(I),I="",F[z]=(F[z]||0)+1,F[z]<=zt&&(be+=$n),ne.startsWith("_"))I+=C[0];else{const Pn=q.classNameAliases[ne]||ne;j(C[0],Pn)}}else I+=C[0];A=O.keywordPatternRe.lastIndex,C=O.keywordPatternRe.exec(H)}I+=H.substring(A),V.addText(I)}function _e(){if(H==="")return;let A=null;if(typeof O.subLanguage=="string"){if(!r[O.subLanguage]){V.addText(H);return}A=c(O.subLanguage,H,!0,Qe[O.subLanguage]),Qe[O.subLanguage]=A._top}else A=g(H,O.subLanguage.length?O.subLanguage:null);O.relevance>0&&(be+=A.relevance),V.__addSublanguage(A._emitter,A.language)}function Q(){O.subLanguage!=null?_e():X(),H=""}function j(A,C){A!==""&&(V.startScope(C),V.addText(A),V.endScope())}function Ve(A,C){let I=1;const z=C.length-1;for(;I<=z;){if(!A._emit[I]){I++;continue}const G=q.classNameAliases[A[I]]||A[I],ne=C[I];G?j(ne,G):(H=ne,X(),H=""),I++}}function Ge(A,C){return A.scope&&typeof A.scope=="string"&&V.openNode(q.classNameAliases[A.scope]||A.scope),A.beginScope&&(A.beginScope._wrap?(j(H,q.classNameAliases[A.beginScope._wrap]||A.beginScope._wrap),H=""):A.beginScope._multi&&(Ve(A.beginScope,C),H="")),O=Object.create(A,{parent:{value:O}}),O}function Ke(A,C,I){let z=nt(A.endRe,I);if(z){if(A["on:end"]){const G=new Xe(A);A["on:end"](C,G),G.isMatchIgnored&&(z=!1)}if(z){for(;A.endsParent&&A.parent;)A=A.parent;return A}}if(A.endsWithParent)return Ke(A.parent,C,I)}function kn(A){return O.matcher.regexIndex===0?(H+=A[0],1):(Se=!0,0)}function Rn(A){const C=A[0],I=A.rule,z=new Xe(I),G=[I.__beforeBegin,I["on:begin"]];for(const ne of G)if(ne&&(ne(A,z),z.isMatchIgnored))return kn(C);return I.skip?H+=C:(I.excludeBegin&&(H+=C),Q(),!I.returnBegin&&!I.excludeBegin&&(H=C)),Ge(I,A),I.returnBegin?0:C.length}function On(A){const C=A[0],I=M.substring(A.index),z=Ke(O,A,I);if(!z)return tn;const G=O;O.endScope&&O.endScope._wrap?(Q(),j(C,O.endScope._wrap)):O.endScope&&O.endScope._multi?(Q(),Ve(O.endScope,A)):G.skip?H+=C:(G.returnEnd||G.excludeEnd||(H+=C),Q(),G.excludeEnd&&(H=C));do O.scope&&V.closeNode(),!O.skip&&!O.subLanguage&&(be+=O.relevance),O=O.parent;while(O!==z.parent);return z.starts&&Ge(z.starts,A),G.returnEnd?0:C.length}function In(){const A=[];for(let C=O;C!==q;C=C.parent)C.scope&&A.unshift(C.scope);A.forEach(C=>V.openNode(C))}let me={};function We(A,C){const I=C&&C[0];if(H+=A,I==null)return Q(),0;if(me.type==="begin"&&C.type==="end"&&me.index===C.index&&I===""){if(H+=M.slice(C.index,C.index+1),!p){const z=new Error(`0 width match regex (${E})`);throw z.languageName=E,z.badRule=me.rule,z}return 1}if(me=C,C.type==="begin")return Rn(C);if(C.type==="illegal"&&!R){const z=new Error('Illegal lexeme "'+I+'" for mode "'+(O.scope||"<unnamed>")+'"');throw z.mode=O,z}else if(C.type==="end"){const z=On(C);if(z!==tn)return z}if(C.type==="illegal"&&I==="")return 1;if(De>1e5&&De>C.index*3)throw new Error("potential infinite loop, way more iterations than matches");return H+=I,I.length}const q=D(E);if(!q)throw oe(t.replace("{}",E)),new Error('Unknown language: "'+E+'"');const Bn=Bt(q);let Me="",O=P||Bn;const Qe={},V=new i.__emitter(i);In();let H="",be=0,ae=0,De=0,Se=!1;try{if(q.__emitTokens)q.__emitTokens(M,V);else{for(O.matcher.considerAll();;){De++,Se?Se=!1:O.matcher.considerAll(),O.matcher.lastIndex=ae;const A=O.matcher.exec(M);if(!A)break;const C=M.substring(ae,A.index),I=We(C,A);ae=A.index+I}We(M.substring(ae))}return V.finalize(),Me=V.toHTML(),{language:E,value:Me,relevance:be,illegal:!1,_emitter:V,_top:O}}catch(A){if(A.message&&A.message.includes("Illegal"))return{language:E,value:Le(M),illegal:!0,relevance:0,_illegalBy:{message:A.message,index:ae,context:M.slice(ae-100,ae+100),mode:A.mode,resultSoFar:Me},_emitter:V};if(p)return{language:E,value:Le(M),illegal:!1,relevance:0,errorRaised:A,_emitter:V,_top:O};throw A}}function u(E){const M={value:Le(E),illegal:!1,relevance:0,_top:n,_emitter:new i.__emitter(i)};return M._emitter.addText(E),M}function g(E,M){M=M||i.languages||Object.keys(r);const R=u(E),P=M.filter(D).filter($).map(Q=>c(Q,E,!1));P.unshift(R);const F=P.sort((Q,j)=>{if(Q.relevance!==j.relevance)return j.relevance-Q.relevance;if(Q.language&&j.language){if(D(Q.language).supersetOf===j.language)return 1;if(D(j.language).supersetOf===Q.language)return-1}return 0}),[W,X]=F,_e=W;return _e.secondBest=X,_e}function _(E,M,R){const P=M&&o[M]||R;E.classList.add("hljs"),E.classList.add(`language-${P}`)}function d(E){let M=null;const R=l(E);if(s(R))return;if(re("before:highlightElement",{el:E,language:R}),E.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",E);return}if(E.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(E)),i.throwUnescapedHTML))throw new Ut("One of your code blocks includes unescaped HTML.",E.innerHTML);M=E;const P=M.textContent,F=R?a(P,{language:R,ignoreIllegals:!0}):g(P);E.innerHTML=F.value,E.dataset.highlighted="yes",_(E,R,F.language),E.result={language:F.language,re:F.relevance,relevance:F.relevance},F.secondBest&&(E.secondBest={language:F.secondBest.language,relevance:F.secondBest.relevance}),re("after:highlightElement",{el:E,result:F,text:P})}function m(E){i=nn(i,E)}const b=()=>{N(),ue("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function v(){N(),ue("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let y=!1;function N(){if(document.readyState==="loading"){y=!0;return}document.querySelectorAll(i.cssSelector).forEach(d)}function T(){y&&N()}typeof window!="undefined"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",T,!1);function S(E,M){let R=null;try{R=M(e)}catch(P){if(oe("Language definition for '{}' could not be registered.".replace("{}",E)),p)oe(P);else throw P;R=n}R.name||(R.name=E),r[E]=R,R.rawDefinition=M.bind(null,e),R.aliases&&k(R.aliases,{languageName:E})}function L(E){delete r[E];for(const M of Object.keys(o))o[M]===E&&delete o[M]}function B(){return Object.keys(r)}function D(E){return E=(E||"").toLowerCase(),r[E]||r[o[E]]}function k(E,{languageName:M}){typeof E=="string"&&(E=[E]),E.forEach(R=>{o[R.toLowerCase()]=M})}function $(E){const M=D(E);return M&&!M.disableAutodetect}function U(E){E["before:highlightBlock"]&&!E["before:highlightElement"]&&(E["before:highlightElement"]=M=>{E["before:highlightBlock"](Object.assign({block:M.el},M))}),E["after:highlightBlock"]&&!E["after:highlightElement"]&&(E["after:highlightElement"]=M=>{E["after:highlightBlock"](Object.assign({block:M.el},M))})}function x(E){U(E),h.push(E)}function K(E){const M=h.indexOf(E);M!==-1&&h.splice(M,1)}function re(E,M){const R=E;h.forEach(function(P){P[R]&&P[R](M)})}function ce(E){return ue("10.7.0","highlightBlock will be removed entirely in v12.0"),ue("10.7.0","Please use highlightElement now."),d(E)}Object.assign(e,{highlight:a,highlightAuto:g,highlightAll:N,highlightElement:d,highlightBlock:ce,configure:m,initHighlighting:b,initHighlightingOnLoad:v,registerLanguage:S,unregisterLanguage:L,listLanguages:B,getLanguage:D,registerAliases:k,autoDetection:$,inherit:nn,addPlugin:x,removePlugin:K}),e.debugMode=function(){p=!1},e.safeMode=function(){p=!0},e.versionString=Pt,e.regex={concat:le,lookahead:hn,either:Ue,optional:Jn,anyNumberOfTimes:qn};for(const E in Ee)typeof Ee[E]=="object"&&fn(Ee[E]);return Object.assign(e,Ee),e},ge=wn({});ge.newInstance=()=>wn({});var Ht=ge;ge.HighlightJS=ge;ge.default=ge;const Z=Qn(Ht);function Ft(e){const r=e.regex,o=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),h=/[\p{L}0-9._:-]+/u,p={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},t={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},n=e.inherit(t,{begin:/\(/,end:/\)/}),i=e.inherit(e.APOS_STRING_MODE,{className:"string"}),s=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:h,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[p]},{begin:/'/,end:/'/,contains:[p]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[t,s,i,n,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[t,n,s,i]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},p,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[s]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(o,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:o,relevance:0,starts:l}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(o,/>/))),contains:[{className:"name",begin:o,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const rn="[A-Za-z$_][0-9A-Za-z$_]*",xt=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Vt=["true","false","null","undefined","NaN","Infinity"],Nn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],An=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Mn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Gt=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Kt=[].concat(Mn,Nn,An);function Wt(e){const r=e.regex,o=(M,{after:R})=>{const P="</"+M[0].slice(1);return M.input.indexOf(P,R)!==-1},h=rn,p={begin:"<>",end:"</>"},t=/<[A-Za-z0-9\\._:-]+\s*\/>/,n={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(M,R)=>{const P=M[0].length+M.index,F=M.input[P];if(F==="<"||F===","){R.ignoreMatch();return}F===">"&&(o(M,{after:P})||R.ignoreMatch());let W;const X=M.input.substring(P);if(W=X.match(/^\s*=/)){R.ignoreMatch();return}if((W=X.match(/^\s+extends\s+/))&&W.index===0){R.ignoreMatch();return}}},i={$pattern:rn,keyword:xt,literal:Vt,built_in:Kt,"variable.language":Gt},s="[0-9](_?[0-9])*",l=`\\.(${s})`,a="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${a})((${l})|\\.)?|(${l}))[eE][+-]?(${s})\\b`},{begin:`\\b(${a})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},u={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},g={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"xml"}},_={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"css"}},d={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,u]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:h+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},y=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,g,_,d,m,{match:/\$\d+/},c];u.contains=y.concat({begin:/\{/,end:/\}/,keywords:i,contains:["self"].concat(y)});const N=[].concat(v,u.contains),T=N.concat([{begin:/(\s*)\(/,end:/\)/,keywords:i,contains:["self"].concat(N)}]),S={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:T},L={variants:[{match:[/class/,/\s+/,h,/\s+/,/extends/,/\s+/,r.concat(h,"(",r.concat(/\./,h),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,h],scope:{1:"keyword",3:"title.class"}}]},B={relevance:0,match:r.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Nn,...An]}},D={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},k={variants:[{match:[/function/,/\s+/,h,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[S],illegal:/%/},$={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function U(M){return r.concat("(?!",M.join("|"),")")}const x={match:r.concat(/\b/,U([...Mn,"super","import"].map(M=>`${M}\\s*\\(`)),h,r.lookahead(/\s*\(/)),className:"title.function",relevance:0},K={begin:r.concat(/\./,r.lookahead(r.concat(h,/(?![0-9A-Za-z$_(])/))),end:h,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},re={match:[/get|set/,/\s+/,h,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},S]},ce="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",E={match:[/const|var|let/,/\s+/,h,/\s*/,/=\s*/,/(async\s*)?/,r.lookahead(ce)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[S]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:i,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:B},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),D,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,g,_,d,m,v,{match:/\$\d+/},c,B,{className:"attr",begin:h+r.lookahead(":"),relevance:0},E,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,e.REGEXP_MODE,{className:"function",begin:ce,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:T}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:p.begin,end:p.end},{match:t},{begin:n.begin,"on:begin":n.isTrulyOpeningTag,end:n.end}],subLanguage:"xml",contains:[{begin:n.begin,end:n.end,skip:!0,contains:["self"]}]}]},k,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[S,e.inherit(e.TITLE_MODE,{begin:h,className:"title.function"})]},{match:/\.\.\./,relevance:0},K,{match:"\\$"+h,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[S]},x,$,L,re,{match:/\$[(.]/}]}}function Qt(e){const r={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},o={match:/[{}[\],:]/,className:"punctuation",relevance:0},h=["true","false","null"],p={scope:"literal",beginKeywords:h.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:h},contains:[r,o,e.QUOTE_STRING_MODE,p,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function Zt(e){const r="true false yes no null",o="[\\w#;/?:@&=+$,.~*'()[\\]]+",h={className:"attr",variants:[{begin:/\w[\w :()\./-]*:(?=[ \t]|$)/},{begin:/"\w[\w :()\./-]*":(?=[ \t]|$)/},{begin:/'\w[\w :()\./-]*':(?=[ \t]|$)/}]},p={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},t={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,p]},n=e.inherit(t,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),c={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},u={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},g={begin:/\{/,end:/\}/,contains:[u],illegal:"\\n",relevance:0},_={begin:"\\[",end:"\\]",contains:[u],illegal:"\\n",relevance:0},d=[h,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+o},{className:"type",begin:"!<"+o+">"},{className:"type",begin:"!"+o},{className:"type",begin:"!!"+o},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},c,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},g,_,t],m=[...d];return m.pop(),m.push(n),u.contains=m,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:d}}function Yt(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function Xt(e){const r=e.regex,o=/[\p{XID_Start}_]\p{XID_Continue}*/u,h=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],i={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:h,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},s={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:i,illegal:/#/},a={begin:/\{\{/,relevance:0},c={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,s],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,s,a,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,a,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,a,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,l]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},u="[0-9](_?[0-9])*",g=`(\\b(${u}))?\\.(${u})|\\b(${u})\\.`,_=`\\b|${h.join("|")}`,d={className:"number",relevance:0,variants:[{begin:`(\\b(${u})|(${g}))[eE][+-]?(${u})[jJ]?(?=${_})`},{begin:`(${g})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${_})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${_})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${_})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${_})`},{begin:`\\b(${u})[jJ](?=${_})`}]},m={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:i,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},b={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:["self",s,d,c,e.HASH_COMMENT_MODE]}]};return l.contains=[c,d,s],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:i,illegal:/(<\/|\?)|=>/,contains:[s,d,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},c,m,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,o],scope:{1:"keyword",3:"title.function"},contains:[b]},{variants:[{match:[/\bclass/,/\s+/,o,/\s*/,/\(\s*/,o,/\s*\)/]},{match:[/\bclass/,/\s+/,o]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[d,b,c]}]}}var fe="[0-9](_*[0-9])*",ve=`\\.(${fe})`,ye="[0-9a-fA-F](_*[0-9a-fA-F])*",sn={className:"number",variants:[{begin:`(\\b(${fe})((${ve})|\\.)?|(${ve}))[eE][+-]?(${fe})[fFdD]?\\b`},{begin:`\\b(${fe})((${ve})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${ve})[fFdD]?\\b`},{begin:`\\b(${fe})[fFdD]\\b`},{begin:`\\b0[xX]((${ye})\\.?|(${ye})?\\.(${ye}))[pP][+-]?(${fe})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${ye})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Dn(e,r,o){return o===-1?"":e.replace(r,h=>Dn(e,r,o-1))}function jt(e){const r=e.regex,o="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",h=o+Dn("(?:<"+o+"~~~(?:\\s*,\\s*"+o+"~~~)*>)?",/~~~/g,2),s={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},l={className:"meta",begin:"@"+o,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},a={className:"params",begin:/\(/,end:/\)/,keywords:s,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:s,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[r.concat(/(?!else)/,o),/\s+/,o,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,o],className:{1:"keyword",3:"title.class"},contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+h+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:s,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:s,relevance:0,contains:[l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,sn,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},sn,l]}}function qt(e){const r=e.regex,o={},h={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[o]}]};Object.assign(o,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},h]});const p={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},t=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),n={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},i={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o,p]};p.contains.push(i);const s={match:/\\"/},l={className:"string",begin:/'/,end:/'/},a={match:/\\'/},c={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,o]},u=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],g=e.SHEBANG({binary:`(${u.join("|")})`,relevance:10}),_={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},d=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],m=["true","false"],b={match:/(\/[a-z._-]+)+/},v=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],y=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],N=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],T=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:d,literal:m,built_in:[...v,...y,"set","shopt",...N,...T]},contains:[g,e.SHEBANG(),_,c,t,n,b,i,s,l,a,o]}}function Jt(e){const r=e.regex,o=e.COMMENT("--","$"),h={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},p={begin:/"/,end:/"/,contains:[{begin:/""/}]},t=["true","false","unknown"],n=["double precision","large object","with timezone","without timezone"],i=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],s=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],a=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],c=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],u=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],g=a,_=[...l,...s].filter(y=>!a.includes(y)),d={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},m={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},b={begin:r.concat(/\b/,r.either(...g),/\s*\(/),relevance:0,keywords:{built_in:g}};function v(y,{exceptions:N,when:T}={}){const S=T;return N=N||[],y.map(L=>L.match(/\|\d+$/)||N.includes(L)?L:S(L)?`${L}|0`:L)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:v(_,{when:y=>y.length<3}),literal:t,type:i,built_in:c},contains:[{begin:r.either(...u),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:_.concat(u),literal:t,type:i}},{className:"type",begin:r.either(...n)},b,d,h,p,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,o,m]}}Z.registerLanguage("xml",Ft);Z.registerLanguage("javascript",Wt);Z.registerLanguage("json",Qt);Z.registerLanguage("yaml",Zt);Z.registerLanguage("plaintext",Yt);Z.registerLanguage("python",Xt);Z.registerLanguage("java",jt);Z.registerLanguage("bash",qt);Z.registerLanguage("sql",Jt);var w=(e=>(e.EQUAL="equal",e.DELETE="removed",e.ADD="added",e.EMPTY="empty",e))(w||{});const J="<code-diff-modified>",ee="</code-diff-modified>",er=1e4,Y=1e3,an=J.replace("<","<").replace(">",">"),on=ee.replace("<","<").replace(">",">");function nr(e){const r={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,o=>r[o])}function se(e){return e===void 0?w.EQUAL:e.added?w.ADD:e.removed?w.DELETE:w.EQUAL}function Sn(e,r,o="word",h=!1){if(typeof e=="undefined"||typeof r=="undefined")return[e,r];if(!h&&e.length+r.length>er)return[e,r];const t=(o==="char"?Hn:xn)(e,r),n=t.filter(s=>se(s)!==w.ADD).map(s=>se(s)===w.DELETE?`${J}${s.value}${ee}`:s.value).join(""),i=t.filter(s=>se(s)!==w.DELETE).map(s=>se(s)===w.ADD?`${J}${s.value}${ee}`:s.value).join("");return[n,i]}function Tn(e,r){if(e===r)return e?[{count:e.replace(/\n$/,"").split(`
|
|
9
|
+
`).length,value:e}]:[];const o=e.endsWith(`
|
|
10
|
+
`),h=r.endsWith(`
|
|
11
|
+
`);o!==h&&(o?e=e.slice(0,-1):r=r.slice(0,-1)),e&&(e+=`
|
|
12
|
+
`),r&&(r+=`
|
|
13
|
+
`);let p;if(e.length+r.length>=1e5&&e.includes(`
|
|
14
|
+
`)&&r.includes(`
|
|
15
|
+
`)){const t=e?e.replace(/\n$/,"").split(`
|
|
16
|
+
`):[],n=r?r.replace(/\n$/,"").split(`
|
|
17
|
+
`):[],i=new Set(t),s=new Set(n),[l,a]=i.size<s.size?[i,s]:[s,i];let c=0;for(const d of l)a.has(d)&&c++;const u=l.size?c/l.size:0,g=i.size>=4e4||i.size+s.size-c>=65535,_=i.size+s.size-c*2;u<.01||g&&_>200?(p=[],e&&p.push({count:t.length,value:e,removed:!0}),r&&p.push({count:n.length,value:r,added:!0})):g&&(p=Vn(e,r))}if(!p){const t=new Te.diff_match_patch,n=t.diff_linesToChars_(e,r),i=n.chars1,s=n.chars2,l=n.lineArray,a=t.diff_main(i,s,!1);t.diff_charsToLines_(a,l),p=a.map(c=>{const[u,g]=c;return{count:g.replace(/\n$/,"").split(`
|
|
18
|
+
`).length,value:g,removed:u===Te.DIFF_DELETE,added:u===Te.DIFF_INSERT}})}return o!==h&&p.push({count:1,value:"",removed:o,added:h}),p}function Re(e,r){if(typeof document=="undefined"||e==="plaintext")return nr(r).replace(new RegExp(an,"g"),'<span class="x">').replace(new RegExp(on,"g"),"</span>");if(!r.match(new RegExp(`(${J}|${ee})`,"g")))return Z.highlight(r,{language:e}).value;let h=r;const p=r.replace(new RegExp(`(${J}|${ee})`,"g"),""),t=document.createElement("div");t.innerHTML=Z.highlight(p,{language:e}).value;let n=!1;const i=s=>{s.childNodes.forEach(l=>{if(l.nodeType===Node.ELEMENT_NODE&&i(l),l.nodeType===Node.TEXT_NODE){if(!l.textContent)return;let a=l.textContent,c="";for(n&&(c=c+J);a.length;){if(h.startsWith(J)){h=h.slice(J.length),c=c+J,n=!0;continue}if(h.startsWith(ee)){h=h.slice(ee.length),c=c+ee,n=!1;continue}const u=h.match(new RegExp(`(${J}|${ee})`)),g=u&&u.index?u.index:h.length,_=Math.min(g,a.length);c=c+h.substring(0,_),h=h.slice(_),a=a.slice(_)}n&&(c=c+ee),l.textContent=c}})};return i(t),t.innerHTML.replace(new RegExp(an,"g"),'<span class="x">').replace(new RegExp(on,"g"),"</span>")}function Oe(e,r){e.highlighted||(e.code=Re(r,e.code),e.highlighted=!0)}function Ie(e,r){if(e.highlighted)return;const o=e.left.code;o!==void 0&&(e.left.code=Re(r,o)),e.right.code!==void 0&&(e.right.code=e.left.type===w.EQUAL&&e.right.type===w.EQUAL&&e.right.code===o?e.left.code:Re(r,e.right.code)),e.highlighted=!0}function Ln(e,r){var s,l;const o=(a,c)=>(a.match(new RegExp(c,"g"))||[]).length,h=a=>a.filter(c=>r==null?void 0:r.test(c)).length;let p=0,t=0,n=0,i=0;for(const a of e){if(a.added){if(!r){p+=(s=a.count)!=null?s:0;continue}const c=h(a.value.trim().split(`
|
|
19
|
+
`));p+=o(a.value.trim(),`
|
|
20
|
+
`)+1-c,n+=c;continue}if(a.removed){if(!r){t+=(l=a.count)!=null?l:0;continue}const c=h(a.value.trim().split(`
|
|
21
|
+
`));t+=o(a.value.trim(),`
|
|
22
|
+
`)+1-c,i+=c;continue}}return{additionsNum:p,deletionsNum:t,ignoreAdditionsNum:n,ignoreDeletionsNum:i}}function tr(e,r,o="plaintext",h="word",p=!1,t=10,n){const i=()=>({type:w.EMPTY}),s=(v,y,N)=>({type:v,num:y,code:N}),l=Tn(e,r),a=n?new RegExp(n):void 0;let c=0,u=0,g=!1;const _=[],d={changes:_,collector:[],stat:Ln(l,a)};for(let v=0;v<l.length;v++){if(g){g=!1;continue}const[y,N]=[l[v],l[v+1]],[T,S]=[se(y),se(N)],L=y.value.replace(/\n$/,"").split(`
|
|
23
|
+
`);if(N===void 0){for(const D of L){let k=i(),$=i();T===w.EQUAL&&(c++,u++,k=s(w.EQUAL,c,D),$=s(w.EQUAL,u,D)),T===w.DELETE&&(c++,k=s(w.DELETE,c,D),$=i()),T===w.ADD&&(u++,k=i(),$=s(w.ADD,u,D)),_.push({left:k,right:$})}break}if(T===w.EQUAL)for(const D of L)c++,u++,_.push({left:s(w.EQUAL,c,D),right:s(w.EQUAL,u,D)});const B=N.value.replace(/\n$/,"").split(`
|
|
24
|
+
`);if(T===w.DELETE){if(S===w.EQUAL)for(const D of L)c++,_.push({left:s(w.DELETE,c,D),right:i()});if(S===w.ADD){g=!0;const D=Math.max(y.count,N.count);for(let k=0;k<D;k++){k<y.count&&c++,k<N.count&&u++;const[$,U]=[L[k],B[k]],x=p||L.length===B.length,[K,re]=x?Sn($,U,h,p):[$,U],ce=a!=null&&a.test($)?w.EQUAL:w.DELETE,E=a!=null&&a.test(U)?w.EQUAL:w.ADD,M=k<y.count?s(ce,c,K):i(),R=k<N.count?s(E,u,re):i();_.push({left:M,right:R})}}}if(T===w.ADD)for(const D of L)u++,_.push({left:i(),right:s(w.ADD,u,D)})}if(e===r){for(let v=0;v<_.length;v++)_[v].fold=!1;return _.slice(0,Y).forEach(v=>Ie(v,o)),d}for(let v=0;v<_.length;v++){const y=_[v];if(y.left.type===w.DELETE||y.right.type===w.ADD){const[N,T]=[Math.max(v-t,0),Math.min(v+t+1,_.length)];for(let S=N;S<T;S++)_[S].fold=!1}y.fold===void 0&&(y.fold=!0)}const m=[];let b=[];for(let v=0;v<_.length;v++){const y=_[v];if(y.fold===!1){b.length&&(b[0].hideIndex=d.collector.length,d.collector.push({lines:b,fold:!0}),b=[]),m.push(y);continue}y.hide=!0,b.push(y),m.push(y)}return b.length&&(b[0].hideIndex=d.collector.length,d.collector.push({lines:b,fold:!0}),b=[]),d.changes=m,d.changes.filter(v=>!v.hide).slice(0,Y).forEach(v=>Ie(v,o)),d}function rr(e,r,o="plaintext",h="word",p=!1,t=10,n){const i=Tn(e,r),s=n?new RegExp(n):void 0;let l=0,a=0,c=!1;const u=[],g={changes:u,collector:[],stat:Ln(i,s)};for(let m=0;m<i.length;m++){if(c){c=!1;continue}const[b,v]=[i[m],i[m+1]],[y,N]=[se(b),se(v)],T=b.value.replace(/\n$/,"").split(`
|
|
25
|
+
`);if(v===void 0){for(const L of T)y===w.EQUAL&&(l++,a++),y===w.DELETE&&l++,y===w.ADD&&a++,u.push({type:y,code:L,addNum:y===w.DELETE?void 0:a,delNum:y===w.ADD?void 0:l});break}if(y===w.EQUAL)for(const L of T)l++,a++,u.push({type:w.EQUAL,code:L,delNum:l,addNum:a});const S=v.value.replace(/\n$/,"").split(`
|
|
26
|
+
`);if(y===w.DELETE)if(N===w.ADD&&(T.length===S.length||p)){const L=Math.max(T.length,S.length),B=Array.from({length:L},(D,k)=>Sn(T[k],S[k],h,p));for(let D=0;D<T.length;D++){const k=T[D];l++,u.push({type:s!=null&&s.test(k)?w.EQUAL:w.DELETE,code:B[D][0],delNum:l})}for(let D=0;D<S.length;D++){const k=S[D];a++,u.push({type:s!=null&&s.test(k)?w.EQUAL:w.ADD,code:B[D][1],addNum:a})}c=!0}else for(const L of T)l++,u.push({type:w.DELETE,code:L,delNum:l});if(y===w.ADD)for(const L of T)a++,u.push({type:w.ADD,code:L,addNum:a})}for(let m=0;m<u.length;m++){const b=u[m];if(b.type===w.DELETE||b.type===w.ADD){const[v,y]=[Math.max(m-t,0),Math.min(m+t+1,u.length)];for(let N=v;N<y;N++)u[N].fold=!1}b.fold===void 0&&(b.fold=!0)}if(e===r){for(let m=0;m<u.length;m++)u[m].fold=!1;return u.slice(0,Y).forEach(m=>Oe(m,o)),g}const _=[];let d=[];for(let m=0;m<u.length;m++){const b=u[m];if(b.fold===!1){d.length&&(d[0].hideIndex=g.collector.length,g.collector.push({lines:d,fold:!0}),d=[]),_.push(b);continue}b.type==="equal"&&(b.hide=!0,d.push(b)),_.push(b)}return d.length&&(d[0].hideIndex=g.collector.length,g.collector.push({lines:d,fold:!0}),d=[]),g.changes=_,g.changes.filter(m=>!m.hide).slice(0,Y).forEach(m=>Oe(m,o)),g}const ir={key:0},sr=f.createElementVNode("td",{class:"blob-code blob-code-hunk",align:"left"}," ⋯ ",-1),ar=["data-diff-change"],or=["data-code-marker","innerHTML"],lr=f.defineComponent({__name:"UnifiedLine",props:{line:{}},emits:["expand","change-click"],setup(e,{emit:r}){const o=e,h=r;function p(n){o.line.type!==w.ADD&&o.line.type!==w.DELETE||h("change-click",{side:o.line.type===w.DELETE?"old":"new",type:o.line.type,lineNumber:o.line.type===w.DELETE?o.line.delNum:o.line.addNum,event:n})}function t(n){return n===w.DELETE?"-":n===w.ADD?"+":""}return(n,i)=>n.line.hideIndex!==void 0&&n.line.hide?(f.openBlock(),f.createElementBlock("tr",ir,[f.createElementVNode("td",{class:"blob-num blob-num-hunk text-center",colspan:"2",onClick:i[0]||(i[0]=s=>h("expand",n.line))}," > "),sr])):n.line.hide?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("tr",{key:1,"data-diff-change":n.line.type!==f.unref(w).EQUAL?"":void 0,onClick:p},[f.createElementVNode("td",{class:f.normalizeClass(["blob-num",{"blob-num-deletion":n.line.type===f.unref(w).DELETE,"blob-num-addition":n.line.type===f.unref(w).ADD,"blob-num-context":n.line.type===f.unref(w).EQUAL,"blob-num-hunk":n.line.hide!==void 0}])},f.toDisplayString(n.line.delNum),3),f.createElementVNode("td",{class:f.normalizeClass(["blob-num",{"blob-num-deletion":n.line.type===f.unref(w).DELETE,"blob-num-addition":n.line.type===f.unref(w).ADD,"blob-num-context":n.line.type===f.unref(w).EQUAL,"blob-num-hunk":n.line.hide!==void 0}])},f.toDisplayString(n.line.addNum),3),f.createElementVNode("td",{class:f.normalizeClass(["blob-code",{"blob-code-deletion":n.line.type===f.unref(w).DELETE,"blob-code-addition":n.line.type===f.unref(w).ADD,"blob-code-context":n.line.type===f.unref(w).EQUAL,"blob-code-hunk":n.line.hide!==void 0}])},[f.createElementVNode("span",{class:"blob-code-inner blob-code-marker","data-code-marker":t(n.line.type),innerHTML:n.line.code},null,8,or)],2)],8,ar))}}),cr={class:"diff-table"},ur={key:0},fr={class:"blob-code blob-code-hunk load-more",colspan:"3"},gr=f.defineComponent({__name:"UnifiedViewer",props:{diffChange:{},language:{}},emits:["change-click"],setup(e,{emit:r}){const o=e,h=r,p=f.ref(Y),t=f.shallowRef(o.diffChange.changes.filter(u=>!u.hide||u.hideIndex!==void 0)),n=f.computed(()=>t.value.slice(0,p.value)),i=f.computed(()=>t.value.length-n.value.length),s=f.computed(()=>Math.min(i.value,Y));f.watch(()=>o.diffChange,u=>{p.value=Y,t.value=u.changes.filter(g=>!g.hide||g.hideIndex!==void 0)});function l(){n.value.forEach(u=>Oe(u,o.language))}function a({hideIndex:u}){u!==void 0&&(o.diffChange.collector[u].lines.forEach(g=>{g.hide=!1,g.fold=!1}),t.value=o.diffChange.changes.filter(g=>!g.hide||g.hideIndex!==void 0),l())}function c(){p.value+=Y,l()}return(u,g)=>(f.openBlock(),f.createElementBlock("table",cr,[f.createElementVNode("tbody",null,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(f.unref(n),(_,d)=>(f.openBlock(),f.createBlock(lr,{key:d,line:_,onExpand:a,onChangeClick:g[0]||(g[0]=m=>h("change-click",m))},null,8,["line"]))),128)),f.unref(i)?(f.openBlock(),f.createElementBlock("tr",ur,[f.createElementVNode("td",fr,[f.createElementVNode("button",{class:"load-more-button",type:"button",onClick:c}," Show next "+f.toDisplayString(f.unref(s))+" lines ("+f.toDisplayString(f.unref(i))+" remaining) ",1)])])):f.createCommentVNode("",!0)])]))}}),hr={key:0},dr=f.createElementVNode("td",{class:"blob-code blob-code-inner blob-code-hunk",colspan:"3",align:"left"}," ⋯ ",-1),pr=["data-diff-change"],_r=f.createElementVNode("td",{class:"blob-num blob-num-empty empty-cell"},null,-1),mr=f.createElementVNode("td",{class:"blob-code blob-code-empty empty-cell"},null,-1),br=["onMousedown","onClick"],Er=["data-code-marker","innerHTML"],vr=f.defineComponent({__name:"SplitLine",props:{splitLine:{}},emits:["expand","change-click"],setup(e,{emit:r}){const o=r;function h(n){return n===w.DELETE?"-":n===w.ADD?"+":""}function p(n,i){const s=n.currentTarget.closest(".file-diff-split"),l=s.querySelectorAll(".split-side-left"),a=s.querySelectorAll(".split-side-right");for(const c of a)c.classList.toggle("no-select",i==="left");for(const c of l)c.classList.toggle("no-select",i==="right")}function t(n,i,s){i.type!==w.ADD&&i.type!==w.DELETE||o("change-click",{side:s,type:i.type,lineNumber:i.num,event:n})}return(n,i)=>n.splitLine.hideIndex!==void 0&&n.splitLine.hide?(f.openBlock(),f.createElementBlock("tr",hr,[f.createElementVNode("td",{class:"blob-num blob-num-hunk",colspan:"1",onClick:i[0]||(i[0]=s=>o("expand",n.splitLine))}," > "),dr])):n.splitLine.hide?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("tr",{key:1,"data-diff-change":n.splitLine.left.type===f.unref(w).DELETE||n.splitLine.right.type===f.unref(w).ADD?"":void 0},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList([n.splitLine.left,n.splitLine.right],(s,l)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[s.type===f.unref(w).EMPTY?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[_r,mr],64)):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createElementVNode("td",{class:f.normalizeClass(["blob-num",{"blob-num-deletion":s.type===f.unref(w).DELETE,"blob-num-addition":s.type===f.unref(w).ADD,"blob-num-context":s.type===f.unref(w).EQUAL,"blob-num-hunk":n.splitLine.hide!==void 0}])},f.toDisplayString(s.num),3),f.createElementVNode("td",{class:f.normalizeClass(["blob-code",{"blob-code-deletion":s.type===f.unref(w).DELETE,"blob-code-addition":s.type===f.unref(w).ADD,"blob-code-context":s.type===f.unref(w).EQUAL,"blob-code-hunk":n.splitLine.hide!==void 0,"split-side-left":l===0,"split-side-right":l===1}]),onMousedown:a=>p(a,l===0?"left":"right"),onClick:a=>t(a,s,l===0?"old":"new")},[f.createElementVNode("span",{class:"blob-code-inner blob-code-marker","data-code-marker":h(s.type),innerHTML:s.code},null,8,Er)],42,br)],64))],64))),256))],8,pr))}}),yr={class:"file-diff-split diff-table"},wr=f.createElementVNode("colgroup",null,[f.createElementVNode("col",{width:"44"}),f.createElementVNode("col"),f.createElementVNode("col",{width:"44"}),f.createElementVNode("col")],-1),Nr={key:0},Ar={class:"blob-code blob-code-hunk load-more",colspan:"4"},Mr=f.defineComponent({__name:"SplitViewer",props:{diffChange:{},language:{}},emits:["change-click"],setup(e,{emit:r}){const o=e,h=r,p=f.ref(Y),t=f.shallowRef(o.diffChange.changes.filter(u=>!u.hide||u.hideIndex!==void 0)),n=f.computed(()=>t.value.slice(0,p.value)),i=f.computed(()=>t.value.length-n.value.length),s=f.computed(()=>Math.min(i.value,Y));f.watch(()=>o.diffChange,u=>{p.value=Y,t.value=u.changes.filter(g=>!g.hide||g.hideIndex!==void 0)});function l(){n.value.forEach(u=>Ie(u,o.language))}function a({hideIndex:u}){u!==void 0&&(o.diffChange.collector[u].lines.forEach(g=>{g.hide=!1,g.fold=!1}),t.value=o.diffChange.changes.filter(g=>!g.hide||g.hideIndex!==void 0),l())}function c(){p.value+=Y,l()}return(u,g)=>(f.openBlock(),f.createElementBlock("table",yr,[wr,f.createElementVNode("tbody",null,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(f.unref(n),(_,d)=>(f.openBlock(),f.createBlock(vr,{key:d,"split-line":_,onExpand:a,onChangeClick:g[0]||(g[0]=m=>h("change-click",m))},null,8,["split-line"]))),128)),f.unref(i)?(f.openBlock(),f.createElementBlock("tr",Nr,[f.createElementVNode("td",Ar,[f.createElementVNode("button",{class:"load-more-button",type:"button",onClick:c}," Show next "+f.toDisplayString(f.unref(s))+" lines ("+f.toDisplayString(f.unref(i))+" remaining) ",1)])])):f.createCommentVNode("",!0)])]))}}),Fe=(e,r)=>{const o=e.__vccOpts||e;for(const[h,p]of r)o[h]=p;return o},Dr={name:"DownArrowIcon"},Sr={width:"1rem",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Tr=f.createElementVNode("path",{d:"M383.6,322.7L278.6,423c-5.8,6-13.7,9-22.4,9c-8.7,0-16.5-3-22.4-9L128.4,322.7c-12.5-11.9-12.5-31.3,0-43.2 c12.5-11.9,32.7-11.9,45.2,0l50.4,48.2v-217c0-16.9,14.3-30.6,32-30.6c17.7,0,32,13.7,32,30.6v217l50.4-48.2 c12.5-11.9,32.7-11.9,45.2,0C396.1,291.4,396.1,310.7,383.6,322.7z"},null,-1),Lr=[Tr];function Cr(e,r,o,h,p,t){return f.openBlock(),f.createElementBlock("svg",Sr,Lr)}const ln=Fe(Dr,[["render",Cr]]),kr={name:"UpArrowIcon"},Rr={width:"1rem",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Or=f.createElementVNode("path",{d:"M128.4,189.3L233.4,89c5.8-6,13.7-9,22.4-9c8.7,0,16.5,3,22.4,9l105.4,100.3c12.5,11.9,12.5,31.3,0,43.2 c-12.5,11.9-32.7,11.9-45.2,0L288,184.4v217c0,16.9-14.3,30.6-32,30.6c-17.7,0-32-13.7-32-30.6v-217l-50.4,48.2 c-12.5,11.9-32.7,11.9-45.2,0C115.9,220.6,115.9,201.3,128.4,189.3z"},null,-1),Ir=[Or];function Br(e,r,o,h,p,t){return f.openBlock(),f.createElementBlock("svg",Rr,Ir)}const cn=Fe(kr,[["render",Br]]),$r=["theme"],Pr={key:0,class:"file-header"},Ur={key:0,class:"file-info"},zr={class:"info-left"},Hr={class:"info-left"},Fr={key:0,class:"diff-commandbar"},xr={key:1,class:"diff-stat"},Vr={class:"diff-stat-added"},Gr={class:"diff-stat-deleted"},Kr={key:1,class:"file-info"},Wr={class:"info-left"},Qr={class:"info-right"},Zr={style:{"margin-left":"20px"}},Yr={key:0,class:"diff-commandbar"},Xr={key:1,class:"diff-stat"},jr={class:"diff-stat-added"},qr={class:"diff-stat-deleted"},xe=f.defineComponent({__name:"CodeDiff",props:{newString:{},oldString:{},language:{default:"plaintext"},context:{default:10},diffStyle:{default:"word"},forceInlineComparison:{type:Boolean,default:!1},outputFormat:{default:"line-by-line"},trim:{type:Boolean,default:!1},noDiffLineFeed:{type:Boolean,default:!1},maxHeight:{default:void 0},filename:{default:void 0},newFilename:{default:void 0},hideHeader:{type:Boolean,default:!1},hideStat:{type:Boolean,default:!1},hideNavigation:{type:Boolean,default:!1},theme:{default:"light"},ignoreMatchingLines:{default:void 0}},emits:["diff","change-click"],setup(e,{emit:r}){const o=e,h=r,p=f.computed(()=>o.outputFormat==="line-by-line"),t=f.computed(()=>{let d=o.oldString||"";return d=o.trim?d.trim():d,d=o.noDiffLineFeed?d.replace(/(\r\n)/g,`
|
|
27
|
+
`):d,d}),n=f.computed(()=>{let d=o.newString||"";return d=o.trim?d.trim():d,d=o.noDiffLineFeed?d.replace(/(\r\n)/g,`
|
|
28
|
+
`):d,d}),i=f.computed(()=>p.value?rr(t.value,n.value,o.language,o.diffStyle,o.forceInlineComparison,o.context,o.ignoreMatchingLines):tr(t.value,n.value,o.language,o.diffStyle,o.forceInlineComparison,o.context,o.ignoreMatchingLines)),s=f.shallowRef(i.value),l=f.computed(()=>s.value.stat.additionsNum===0&&s.value.stat.deletionsNum===0),a=f.ref(-1),c=f.ref();function u(){const d=c.value.querySelectorAll("[data-diff-change]");a.value<d.length-1&&(a.value++,_(d))}function g(){const d=c.value.querySelectorAll("[data-diff-change]");a.value>0&&(a.value--,_(d))}function _(d){c.value.querySelectorAll(".current-diff").forEach(b=>b.classList.remove("current-diff"));const m=d[a.value];m&&(m.querySelectorAll(".blob-code").forEach(b=>b.classList.add("current-diff")),m.scrollIntoView({behavior:"smooth",block:"center"}))}return f.watch(()=>o,()=>{a.value=-1,s.value=i.value,h("diff",{stat:{isChanged:!l.value,addNum:s.value.stat.additionsNum,delNum:s.value.stat.deletionsNum}})},{deep:!0,immediate:!0}),(d,m)=>(f.openBlock(),f.createElementBlock("div",{ref_key:"root",ref:c,class:"code-diff-view",theme:d.theme,style:f.normalizeStyle({maxHeight:d.maxHeight})},[d.hideHeader?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",Pr,[f.unref(p)?(f.openBlock(),f.createElementBlock("div",Ur,[f.createElementVNode("span",null,[f.createElementVNode("div",zr,f.toDisplayString(d.filename),1),f.createElementVNode("div",Hr,f.toDisplayString(d.newFilename),1)]),d.hideNavigation?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("span",Fr,[f.createElementVNode("button",{class:"command-item-button",title:"Next Change",onClick:u},[f.createVNode(ln)]),f.createElementVNode("button",{class:"command-item-button",title:"Previous Change",onClick:g},[f.createVNode(cn)])])),d.hideStat?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("span",xr,[f.renderSlot(d.$slots,"stat",{stat:f.unref(s).stat},()=>[f.createElementVNode("span",Vr,"+"+f.toDisplayString(f.unref(s).stat.additionsNum)+" additions",1),f.createElementVNode("span",Gr,"-"+f.toDisplayString(f.unref(s).stat.deletionsNum)+" deletions",1)])]))])):(f.openBlock(),f.createElementBlock("div",Kr,[f.createElementVNode("span",Wr,f.toDisplayString(d.filename),1),f.createElementVNode("span",Qr,[f.createElementVNode("span",Zr,f.toDisplayString(d.newFilename),1),d.hideNavigation?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("span",Yr,[f.createElementVNode("button",{class:"command-item-button",title:"Next Change",onClick:u},[f.createVNode(ln)]),f.createElementVNode("button",{class:"command-item-button",title:"Previous Change",onClick:g},[f.createVNode(cn)])])),d.hideStat?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("span",Xr,[f.renderSlot(d.$slots,"stat",{stat:f.unref(s).stat},()=>[f.createElementVNode("span",jr,"+"+f.toDisplayString(f.unref(s).stat.additionsNum)+" additions",1),f.createElementVNode("span",qr,"-"+f.toDisplayString(f.unref(s).stat.deletionsNum)+" deletions",1)])]))])]))])),f.unref(p)?(f.openBlock(),f.createBlock(gr,{key:1,"diff-change":f.unref(s),language:d.language,onChangeClick:m[0]||(m[0]=b=>h("change-click",b))},null,8,["diff-change","language"])):(f.openBlock(),f.createBlock(Mr,{key:2,"diff-change":f.unref(s),language:d.language,onChangeClick:m[1]||(m[1]=b=>h("change-click",b))},null,8,["diff-change","language"]))],12,$r))}}),Jr=f.defineComponent({__name:"CodeReader",props:{language:{default:"plaintext"},text:{}},setup(e){return(r,o)=>(f.openBlock(),f.createBlock(xe,{"hide-header":"",language:r.language,"old-string":r.text,"new-string":r.text},null,8,["language","old-string","new-string"]))}}),Cn=Fe(Jr,[["__scopeId","data-v-0c5adc58"]]);function ei(e){e.component("CodeDiff",xe),e.component("CodeReader",Cn)}const ni={install:ei,hljs:Z};exports.CodeDiff=xe;exports.CodeReader=Cn;exports.default=ni;exports.hljs=Z;
|