v-code-diff 1.2.0 → 1.3.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.
@@ -1,231 +1,876 @@
1
1
  (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".code-diff-view{--color-canvas-default-transparent: rgba(255,255,255,0);--color-page-header-bg: #f6f8fa;--color-marketing-icon-primary: #218bff;--color-marketing-icon-secondary: #54aeff;--color-diff-blob-addition-num-text: #24292f;--color-diff-blob-addition-fg: #24292f;--color-diff-blob-addition-num-bg: #ccffd8;--color-diff-blob-addition-line-bg: #e6ffec;--color-diff-blob-addition-word-bg: #abf2bc;--color-diff-blob-deletion-num-text: #24292f;--color-diff-blob-deletion-fg: #24292f;--color-diff-blob-deletion-num-bg: #ffd7d5;--color-diff-blob-deletion-line-bg: #ffebe9;--color-diff-blob-deletion-word-bg: rgba(255,129,130,.4);--color-diff-blob-hunk-num-bg: rgba(84,174,255,.4);--color-diff-blob-expander-icon: #57606a;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(27,31,36,.15);--color-diffstat-addition-border: rgba(27,31,36,.15);--color-diffstat-addition-bg: #2da44e;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-codemirror-text: #24292f;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #57606a;--color-codemirror-cursor: #24292f;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #24292f;--color-codemirror-lines-bg: #ffffff;--color-codemirror-syntax-comment: #24292f;--color-codemirror-syntax-constant: #0550ae;--color-codemirror-syntax-entity: #8250df;--color-codemirror-syntax-keyword: #cf222e;--color-codemirror-syntax-storage: #cf222e;--color-codemirror-syntax-string: #0a3069;--color-codemirror-syntax-support: #0550ae;--color-codemirror-syntax-variable: #953800;--color-checks-bg: #24292f;--color-checks-run-border-width: 0px;--color-checks-container-border-width: 0px;--color-checks-text-primary: #f6f8fa;--color-checks-text-secondary: #8c959f;--color-checks-text-link: #54aeff;--color-checks-btn-icon: #afb8c1;--color-checks-btn-hover-icon: #f6f8fa;--color-checks-btn-hover-bg: rgba(255,255,255,.125);--color-checks-input-text: #eaeef2;--color-checks-input-placeholder-text: #8c959f;--color-checks-input-focus-text: #8c959f;--color-checks-input-bg: #32383f;--color-checks-input-shadow: none;--color-checks-donut-error: #fa4549;--color-checks-donut-pending: #bf8700;--color-checks-donut-success: #2da44e;--color-checks-donut-neutral: #afb8c1;--color-checks-dropdown-text: #afb8c1;--color-checks-dropdown-bg: #32383f;--color-checks-dropdown-border: #424a53;--color-checks-dropdown-shadow: rgba(27,31,36,.3);--color-checks-dropdown-hover-text: #f6f8fa;--color-checks-dropdown-hover-bg: #424a53;--color-checks-dropdown-btn-hover-text: #f6f8fa;--color-checks-dropdown-btn-hover-bg: #32383f;--color-checks-scrollbar-thumb-bg: #57606a;--color-checks-header-label-text: #d0d7de;--color-checks-header-label-open-text: #f6f8fa;--color-checks-header-border: #32383f;--color-checks-header-icon: #8c959f;--color-checks-line-text: #d0d7de;--color-checks-line-num-text: rgba(140,149,159,.75);--color-checks-line-timestamp-text: #8c959f;--color-checks-line-hover-bg: #32383f;--color-checks-line-selected-bg: rgba(33,139,255,.15);--color-checks-line-selected-num-text: #54aeff;--color-checks-line-dt-fm-text: #24292f;--color-checks-line-dt-fm-bg: #9a6700;--color-checks-gate-bg: rgba(125,78,0,.15);--color-checks-gate-text: #d0d7de;--color-checks-gate-waiting-text: #d4a72c;--color-checks-step-header-open-bg: #32383f;--color-checks-step-error-text: #ff8182;--color-checks-step-warning-text: #d4a72c;--color-checks-logline-text: #8c959f;--color-checks-logline-num-text: rgba(140,149,159,.75);--color-checks-logline-debug-text: #c297ff;--color-checks-logline-error-text: #d0d7de;--color-checks-logline-error-num-text: #ff8182;--color-checks-logline-error-bg: rgba(164,14,38,.15);--color-checks-logline-warning-text: #d0d7de;--color-checks-logline-warning-num-text: #d4a72c;--color-checks-logline-warning-bg: rgba(125,78,0,.15);--color-checks-logline-command-text: #54aeff;--color-checks-logline-section-text: #4ac26b;--color-checks-ansi-black: #24292f;--color-checks-ansi-black-bright: #32383f;--color-checks-ansi-white: #d0d7de;--color-checks-ansi-white-bright: #d0d7de;--color-checks-ansi-gray: #8c959f;--color-checks-ansi-red: #ff8182;--color-checks-ansi-red-bright: #ffaba8;--color-checks-ansi-green: #4ac26b;--color-checks-ansi-green-bright: #6fdd8b;--color-checks-ansi-yellow: #d4a72c;--color-checks-ansi-yellow-bright: #eac54f;--color-checks-ansi-blue: #54aeff;--color-checks-ansi-blue-bright: #80ccff;--color-checks-ansi-magenta: #c297ff;--color-checks-ansi-magenta-bright: #d8b9ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #24292f;--color-project-sidebar-bg: #ffffff;--color-project-gradient-in: #ffffff;--color-project-gradient-out: rgba(255,255,255,0);--color-mktg-btn-bg: #1b1f23;--color-mktg-btn-shadow-outline: rgb(0 0 0 / 15%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(0 0 0 / 15%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 3px 2px rgba(0, 0, 0, .07), 0 7px 5px rgba(0, 0, 0, .04), 0 12px 10px rgba(0, 0, 0, .03), 0 22px 18px rgba(0, 0, 0, .03), 0 42px 33px rgba(0, 0, 0, .02), 0 100px 80px rgba(0, 0, 0, .02);--color-mktg-btn-shadow-hover-muted: rgb(0 0 0 / 70%) 0 0 0 2px inset;--color-avatar-bg: #ffffff;--color-avatar-border: rgba(27,31,36,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: -2px -2px 0 rgba(255,255,255,.8);--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: rgba(0,0,0,0);--color-select-menu-tap-highlight: rgba(175,184,193,.5);--color-select-menu-tap-focus-bg: #b6e3ff;--color-overlay-shadow: 0 1px 3px rgba(27,31,36,.12), 0 8px 24px rgba(66,74,83,.12);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #24292f;--color-header-divider: #57606a;--color-header-logo: #ffffff;--color-header-search-bg: #24292f;--color-header-search-border: #57606a;--color-sidenav-selected-bg: #ffffff;--color-menu-bg-active: rgba(0,0,0,0);--color-input-disabled-bg: rgba(175,184,193,.2);--color-timeline-badge-bg: #eaeef2;--color-ansi-black: #24292f;--color-ansi-black-bright: #57606a;--color-ansi-white: #6e7781;--color-ansi-white-bright: #8c959f;--color-ansi-gray: #6e7781;--color-ansi-red: #cf222e;--color-ansi-red-bright: #a40e26;--color-ansi-green: #116329;--color-ansi-green-bright: #1a7f37;--color-ansi-yellow: #4d2d00;--color-ansi-yellow-bright: #633c01;--color-ansi-blue: #0969da;--color-ansi-blue-bright: #218bff;--color-ansi-magenta: #8250df;--color-ansi-magenta-bright: #a475f9;--color-ansi-cyan: #1b7c83;--color-ansi-cyan-bright: #3192aa;--color-btn-text: #24292f;--color-btn-bg: #f6f8fa;--color-btn-border: rgba(27,31,36,.15);--color-btn-shadow: 0 1px 0 rgba(27,31,36,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(27,31,36,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(27,31,36,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-focus-bg: #f6f8fa;--color-btn-focus-border: rgba(27,31,36,.15);--color-btn-focus-shadow: 0 0 0 3px rgba(9,105,218,.3);--color-btn-shadow-active: inset 0 .15em .3em rgba(27,31,36,.15);--color-btn-shadow-input-focus: 0 0 0 .2em rgba(9,105,218,.3);--color-btn-counter-bg: rgba(27,31,36,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #2da44e;--color-btn-primary-border: rgba(27,31,36,.15);--color-btn-primary-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #2c974b;--color-btn-primary-hover-border: rgba(27,31,36,.15);--color-btn-primary-selected-bg: hsla(137,55%,36%,1);--color-btn-primary-selected-shadow: inset 0 1px 0 rgba(0,45,17,.2);--color-btn-primary-disabled-text: rgba(255,255,255,.8);--color-btn-primary-disabled-bg: #94d3a2;--color-btn-primary-disabled-border: rgba(27,31,36,.15);--color-btn-primary-focus-bg: #2da44e;--color-btn-primary-focus-border: rgba(27,31,36,.15);--color-btn-primary-focus-shadow: 0 0 0 3px rgba(45,164,78,.4);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(255,255,255,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(27,31,36,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(255,255,255,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: hsla(212,92%,42%,1);--color-btn-outline-selected-border: rgba(27,31,36,.15);--color-btn-outline-selected-shadow: inset 0 1px 0 rgba(0,33,85,.2);--color-btn-outline-disabled-text: rgba(9,105,218,.5);--color-btn-outline-disabled-bg: #f6f8fa;--color-btn-outline-disabled-counter-bg: rgba(9,105,218,.05);--color-btn-outline-focus-border: rgba(27,31,36,.15);--color-btn-outline-focus-shadow: 0 0 0 3px rgba(5,80,174,.4);--color-btn-outline-counter-bg: rgba(9,105,218,.1);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(27,31,36,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-danger-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: hsla(356,72%,44%,1);--color-btn-danger-selected-border: rgba(27,31,36,.15);--color-btn-danger-selected-shadow: inset 0 1px 0 rgba(76,0,20,.2);--color-btn-danger-disabled-text: rgba(207,34,46,.5);--color-btn-danger-disabled-bg: #f6f8fa;--color-btn-danger-disabled-counter-bg: rgba(207,34,46,.05);--color-btn-danger-focus-border: rgba(27,31,36,.15);--color-btn-danger-focus-shadow: 0 0 0 3px rgba(164,14,38,.4);--color-btn-danger-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--color-underlinenav-icon: #6e7781;--color-underlinenav-border-hover: rgba(175,184,193,.2);--color-action-list-item-inline-divider: rgba(208,215,222,.48);--color-action-list-item-default-hover-bg: rgba(208,215,222,.32);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(208,215,222,.48);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(208,215,222,.24);--color-action-list-item-danger-hover-bg: rgba(255,235,233,.64);--color-action-list-item-danger-active-bg: #ffebe9;--color-action-list-item-danger-hover-text: #cf222e;--color-switch-track-bg: #eaeef2;--color-switch-track-border: #afb8c1;--color-switch-track-checked-bg: #ddf4ff;--color-switch-track-checked-hover-bg: #b6e3ff;--color-switch-track-checked-active-bg: #80ccff;--color-switch-track-checked-border: #54aeff;--color-switch-knob-checked-bg: #0969da;--color-switch-knob-checked-disabled-bg: #6e7781;--color-segmented-control-bg: #eaeef2;--color-segmented-control-button-hover-bg: rgba(175,184,193,.2);--color-segmented-control-button-active-bg: rgba(175,184,193,.4);--color-segmented-control-button-selected-border: #6e7781;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #ffffff;--color-canvas-overlay: #ffffff;--color-canvas-inset: #f6f8fa;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-border-subtle: rgba(27,31,36,.15);--color-shadow-small: 0 1px 0 rgba(27,31,36,.04);--color-shadow-medium: 0 3px 6px rgba(140,149,159,.15);--color-shadow-large: 0 8px 24px rgba(140,149,159,.2);--color-shadow-extra-large: 0 12px 28px rgba(140,149,159,.3);--color-neutral-emphasis-plus: #24292f;--color-neutral-emphasis: #6e7781;--color-neutral-muted: rgba(175,184,193,.2);--color-neutral-subtle: rgba(234,238,242,.5);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-accent-muted: rgba(84,174,255,.4);--color-accent-subtle: #ddf4ff;--color-success-fg: #1a7f37;--color-success-emphasis: #2da44e;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #bf8700;--color-attention-muted: rgba(212,167,44,.4);--color-attention-subtle: #fff8c5;--color-severe-fg: #bc4c00;--color-severe-emphasis: #bc4c00;--color-severe-muted: rgba(251,143,68,.4);--color-severe-subtle: #fff1e5;--color-danger-fg: #cf222e;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #2da44e;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #cf222e;--color-closed-emphasis: #cf222e;--color-closed-muted: rgba(255,129,130,.4);--color-closed-subtle: #ffebe9;--color-done-fg: #8250df;--color-done-emphasis: #8250df;--color-done-muted: rgba(194,151,255,.4);--color-done-subtle: #fbefff;--color-sponsors-fg: #bf3989;--color-sponsors-emphasis: #bf3989;--color-sponsors-muted: rgba(255,128,200,.4);--color-sponsors-subtle: #ffeff7;--color-primer-fg-disabled: #8c959f;--color-primer-canvas-backdrop: rgba(27,31,36,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(27,31,36,.1);--color-primer-shadow-highlight: inset 0 1px 0 rgba(255,255,255,.25);--color-primer-shadow-inset: inset 0 1px 0 rgba(208,215,222,.2);--color-primer-shadow-focus: 0 0 0 3px rgba(9,105,218,.3);--color-scale-black: #1b1f24;--color-scale-white: #ffffff;--color-scale-gray-0: #f6f8fa;--color-scale-gray-1: #eaeef2;--color-scale-gray-2: #d0d7de;--color-scale-gray-3: #afb8c1;--color-scale-gray-4: #8c959f;--color-scale-gray-5: #6e7781;--color-scale-gray-6: #57606a;--color-scale-gray-7: #424a53;--color-scale-gray-8: #32383f;--color-scale-gray-9: #24292f;--color-scale-blue-0: #ddf4ff;--color-scale-blue-1: #b6e3ff;--color-scale-blue-2: #80ccff;--color-scale-blue-3: #54aeff;--color-scale-blue-4: #218bff;--color-scale-blue-5: #0969da;--color-scale-blue-6: #0550ae;--color-scale-blue-7: #033d8b;--color-scale-blue-8: #0a3069;--color-scale-blue-9: #002155;--color-scale-green-0: #dafbe1;--color-scale-green-1: #aceebb;--color-scale-green-2: #6fdd8b;--color-scale-green-3: #4ac26b;--color-scale-green-4: #2da44e;--color-scale-green-5: #1a7f37;--color-scale-green-6: #116329;--color-scale-green-7: #044f1e;--color-scale-green-8: #003d16;--color-scale-green-9: #002d11;--color-scale-yellow-0: #fff8c5;--color-scale-yellow-1: #fae17d;--color-scale-yellow-2: #eac54f;--color-scale-yellow-3: #d4a72c;--color-scale-yellow-4: #bf8700;--color-scale-yellow-5: #9a6700;--color-scale-yellow-6: #7d4e00;--color-scale-yellow-7: #633c01;--color-scale-yellow-8: #4d2d00;--color-scale-yellow-9: #3b2300;--color-scale-orange-0: #fff1e5;--color-scale-orange-1: #ffd8b5;--color-scale-orange-2: #ffb77c;--color-scale-orange-3: #fb8f44;--color-scale-orange-4: #e16f24;--color-scale-orange-5: #bc4c00;--color-scale-orange-6: #953800;--color-scale-orange-7: #762c00;--color-scale-orange-8: #5c2200;--color-scale-orange-9: #471700;--color-scale-red-0: #ffebe9;--color-scale-red-1: #ffcecb;--color-scale-red-2: #ffaba8;--color-scale-red-3: #ff8182;--color-scale-red-4: #fa4549;--color-scale-red-5: #cf222e;--color-scale-red-6: #a40e26;--color-scale-red-7: #82071e;--color-scale-red-8: #660018;--color-scale-red-9: #4c0014;--color-scale-purple-0: #fbefff;--color-scale-purple-1: #ecd8ff;--color-scale-purple-2: #d8b9ff;--color-scale-purple-3: #c297ff;--color-scale-purple-4: #a475f9;--color-scale-purple-5: #8250df;--color-scale-purple-6: #6639ba;--color-scale-purple-7: #512a97;--color-scale-purple-8: #3e1f79;--color-scale-purple-9: #2e1461;--color-scale-pink-0: #ffeff7;--color-scale-pink-1: #ffd3eb;--color-scale-pink-2: #ffadda;--color-scale-pink-3: #ff80c8;--color-scale-pink-4: #e85aad;--color-scale-pink-5: #bf3989;--color-scale-pink-6: #99286e;--color-scale-pink-7: #772057;--color-scale-pink-8: #611347;--color-scale-pink-9: #4d0336;--color-scale-coral-0: #fff0eb;--color-scale-coral-1: #ffd6cc;--color-scale-coral-2: #ffb4a1;--color-scale-coral-3: #fd8c73;--color-scale-coral-4: #ec6547;--color-scale-coral-5: #c4432b;--color-scale-coral-6: #9e2f1c;--color-scale-coral-7: #801f0f;--color-scale-coral-8: #691105;--color-scale-coral-9: #510901}.code-diff-view{position:relative;margin-top:16px;margin-bottom:16px;border:1px solid var(--color-border-default, #ddd);border-radius:6px;overflow-y:auto}.code-diff-view *{position:static}.code-diff-view .file-header{background-color:var(--color-canvas-subtle);border-bottom:1px solid var(--color-border-default);padding:8px 16px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.code-diff-view .file-header .file-info{display:flex;justify-content:space-between;align-items:center;margin-left:8px;height:24px}.code-diff-view .file-header .file-info .filename{font-size:13px;color:var(--color-fg-default)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-added{color:var(--color-diffstat-addition-bg)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-deleted{color:var(--color-danger-emphasis)}.code-diff-view table{border-spacing:0}.code-diff-view .diff-table{width:100%}.code-diff-view .diff-table .blob-num{position:relative;width:1%;min-width:50px;padding-right:10px;padding-left:10px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:20px;color:var(--color-fg-subtle);text-align:right;white-space:nowrap;vertical-align:top;cursor:pointer;-webkit-user-select:none;user-select:none}.code-diff-view .diff-table .blob-num-deletion{color:var(--color-diff-blob-deletion-num-text);background-color:var(--color-diff-blob-deletion-num-bg);border-color:var(--color-danger-emphasis)}.code-diff-view .diff-table .blob-num-addition{color:var(--color-diff-blob-addition-num-text);background-color:var(--color-diff-blob-addition-num-bg);border-color:var(--color-success-emphasis)}.code-diff-view .diff-table .blob-code{position:relative;padding-right:10px;padding-left:10px;line-height:20px;vertical-align:top}.code-diff-view .diff-table .blob-code .blob-code-inner{display:table-cell;overflow:visible;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;color:var(--color-fg-default);word-wrap:anywhere;white-space:pre-wrap}.code-diff-view .diff-table .blob-code-deletion{background-color:var(--color-diff-blob-deletion-line-bg);outline:1px dashed transparent}.code-diff-view .diff-table .blob-code-deletion .x{color:var(--color-diff-blob-deletion-fg);background-color:var(--color-diff-blob-deletion-word-bg)}.code-diff-view .diff-table .blob-code-addition{background-color:var(--color-diff-blob-addition-line-bg);outline:1px dotted transparent}.code-diff-view .diff-table .blob-code-addition .x{color:var(--color-diff-blob-addition-fg);background-color:var(--color-diff-blob-addition-word-bg)}.code-diff-view .diff-table .blob-code-context,.code-diff-view .diff-table .blob-code-addition,.code-diff-view .diff-table .blob-code-deletion{padding-left:22px!important}.code-diff-view .diff-table .blob-code-marker:before{position:absolute;top:1px;left:8px;padding-right:8px;content:attr(data-code-marker)}.code-diff-view .diff-table .blob-num-hunk{background-color:var(--color-diff-blob-hunk-num-bg)}.code-diff-view .diff-table .blob-code-hunk{background-color:var(--color-accent-subtle)}.code-diff-view .file-diff-split{table-layout:fixed}.code-diff-view .file-diff-split .blob-code+.blob-num{border-left:1px solid var(--color-border-muted)}.code-diff-view .empty-cell{cursor:default;background-color:var(--color-neutral-subtle);border-right-color:var(--color-border-muted)}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#fff;color:#000}.hljs-comment,.hljs-quote,.hljs-variable{color:green}.hljs-built_in,.hljs-keyword,.hljs-name,.hljs-selector-tag,.hljs-tag{color:#00f}.hljs-addition,.hljs-attribute,.hljs-literal,.hljs-section,.hljs-string,.hljs-template-tag,.hljs-template-variable,.hljs-title,.hljs-type{color:#a31515}.hljs-deletion,.hljs-meta,.hljs-selector-attr,.hljs-selector-pseudo{color:#2b91af}.hljs-doctag{color:gray}.hljs-attr{color:red}.hljs-bullet,.hljs-link,.hljs-symbol{color:#00b0e8}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import { defineComponent as ye, openBlock as H, createElementBlock as K, createElementVNode as C, normalizeClass as he, unref as B, toDisplayString as fe, Fragment as ue, renderList as He, createBlock as Oe, computed as we, normalizeStyle as In } from "vue";
3
- function j() {
2
+ import { defineComponent as we, openBlock as W, createElementBlock as V, createElementVNode as U, normalizeClass as pe, unref as F, toDisplayString as he, Fragment as ge, renderList as ze, createBlock as Le, computed as Te, normalizeStyle as Bn } from "vue";
3
+ function re() {
4
4
  }
5
- j.prototype = {
6
- diff: function(n, t) {
7
- var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = s.callback;
8
- typeof s == "function" && (o = s, s = {}), this.options = s;
9
- var l = this;
10
- function i(g) {
11
- return o ? (setTimeout(function() {
12
- o(void 0, g);
13
- }, 0), !0) : g;
5
+ re.prototype = {
6
+ diff: function(t, l) {
7
+ var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, h = u.callback;
8
+ typeof u == "function" && (h = u, u = {}), this.options = u;
9
+ var n = this;
10
+ function r(d) {
11
+ return h ? (setTimeout(function() {
12
+ h(void 0, d);
13
+ }, 0), !0) : d;
14
14
  }
15
- n = this.castInput(n), t = this.castInput(t), n = this.removeEmpty(this.tokenize(n)), t = this.removeEmpty(this.tokenize(t));
16
- var r = t.length, a = n.length, c = 1, b = r + a;
17
- s.maxEditLength && (b = Math.min(b, s.maxEditLength));
18
- var p = [{
15
+ t = this.castInput(t), l = this.castInput(l), t = this.removeEmpty(this.tokenize(t)), l = this.removeEmpty(this.tokenize(l));
16
+ var i = l.length, s = t.length, a = 1, o = i + s;
17
+ u.maxEditLength && (o = Math.min(o, u.maxEditLength));
18
+ var c = [{
19
19
  newPos: -1,
20
20
  components: []
21
- }], y = this.extractCommon(p[0], t, n, 0);
22
- if (p[0].newPos + 1 >= r && y + 1 >= a)
23
- return i([{
24
- value: this.join(t),
25
- count: t.length
21
+ }], f = this.extractCommon(c[0], l, t, 0);
22
+ if (c[0].newPos + 1 >= i && f + 1 >= s)
23
+ return r([{
24
+ value: this.join(l),
25
+ count: l.length
26
26
  }]);
27
- function m() {
28
- for (var g = -1 * c; g <= c; g += 2) {
29
- var _ = void 0, S = p[g - 1], M = p[g + 1], O = (M ? M.newPos : 0) - g;
30
- S && (p[g - 1] = void 0);
31
- var T = S && S.newPos + 1 < r, D = M && 0 <= O && O < a;
32
- if (!T && !D) {
33
- p[g] = void 0;
27
+ function g() {
28
+ for (var d = -1 * a; d <= a; d += 2) {
29
+ var b = void 0, E = c[d - 1], v = c[d + 1], y = (v ? v.newPos : 0) - d;
30
+ E && (c[d - 1] = void 0);
31
+ var m = E && E.newPos + 1 < i, D = v && 0 <= y && y < s;
32
+ if (!m && !D) {
33
+ c[d] = void 0;
34
34
  continue;
35
35
  }
36
- if (!T || D && S.newPos < M.newPos ? (_ = Bn(M), l.pushComponent(_.components, void 0, !0)) : (_ = S, _.newPos++, l.pushComponent(_.components, !0, void 0)), O = l.extractCommon(_, t, n, g), _.newPos + 1 >= r && O + 1 >= a)
37
- return i(kn(l, _.components, t, n, l.useLongestToken));
38
- p[g] = _;
36
+ if (!m || D && E.newPos < v.newPos ? (b = Un(v), n.pushComponent(b.components, void 0, !0)) : (b = E, b.newPos++, n.pushComponent(b.components, !0, void 0)), y = n.extractCommon(b, l, t, d), b.newPos + 1 >= i && y + 1 >= s)
37
+ return r($n(n, b.components, l, t, n.useLongestToken));
38
+ c[d] = b;
39
39
  }
40
- c++;
40
+ a++;
41
41
  }
42
- if (o)
43
- (function g() {
42
+ if (h)
43
+ (function d() {
44
44
  setTimeout(function() {
45
- if (c > b)
46
- return o();
47
- m() || g();
45
+ if (a > o)
46
+ return h();
47
+ g() || d();
48
48
  }, 0);
49
49
  })();
50
50
  else
51
- for (; c <= b; ) {
52
- var N = m();
53
- if (N)
54
- return N;
51
+ for (; a <= o; ) {
52
+ var p = g();
53
+ if (p)
54
+ return p;
55
55
  }
56
56
  },
57
- pushComponent: function(n, t, s) {
58
- var o = n[n.length - 1];
59
- o && o.added === t && o.removed === s ? n[n.length - 1] = {
60
- count: o.count + 1,
61
- added: t,
62
- removed: s
63
- } : n.push({
57
+ pushComponent: function(t, l, u) {
58
+ var h = t[t.length - 1];
59
+ h && h.added === l && h.removed === u ? t[t.length - 1] = {
60
+ count: h.count + 1,
61
+ added: l,
62
+ removed: u
63
+ } : t.push({
64
64
  count: 1,
65
- added: t,
66
- removed: s
65
+ added: l,
66
+ removed: u
67
67
  });
68
68
  },
69
- extractCommon: function(n, t, s, o) {
70
- for (var l = t.length, i = s.length, r = n.newPos, a = r - o, c = 0; r + 1 < l && a + 1 < i && this.equals(t[r + 1], s[a + 1]); )
71
- r++, a++, c++;
72
- return c && n.components.push({
73
- count: c
74
- }), n.newPos = r, a;
69
+ extractCommon: function(t, l, u, h) {
70
+ for (var n = l.length, r = u.length, i = t.newPos, s = i - h, a = 0; i + 1 < n && s + 1 < r && this.equals(l[i + 1], u[s + 1]); )
71
+ i++, s++, a++;
72
+ return a && t.components.push({
73
+ count: a
74
+ }), t.newPos = i, s;
75
75
  },
76
- equals: function(n, t) {
77
- return this.options.comparator ? this.options.comparator(n, t) : n === t || this.options.ignoreCase && n.toLowerCase() === t.toLowerCase();
76
+ equals: function(t, l) {
77
+ return this.options.comparator ? this.options.comparator(t, l) : t === l || this.options.ignoreCase && t.toLowerCase() === l.toLowerCase();
78
78
  },
79
- removeEmpty: function(n) {
80
- for (var t = [], s = 0; s < n.length; s++)
81
- n[s] && t.push(n[s]);
82
- return t;
79
+ removeEmpty: function(t) {
80
+ for (var l = [], u = 0; u < t.length; u++)
81
+ t[u] && l.push(t[u]);
82
+ return l;
83
83
  },
84
- castInput: function(n) {
85
- return n;
84
+ castInput: function(t) {
85
+ return t;
86
86
  },
87
- tokenize: function(n) {
88
- return n.split("");
87
+ tokenize: function(t) {
88
+ return t.split("");
89
89
  },
90
- join: function(n) {
91
- return n.join("");
90
+ join: function(t) {
91
+ return t.join("");
92
92
  }
93
93
  };
94
- function kn(e, n, t, s, o) {
95
- for (var l = 0, i = n.length, r = 0, a = 0; l < i; l++) {
96
- var c = n[l];
97
- if (c.removed) {
98
- if (c.value = e.join(s.slice(a, a + c.count)), a += c.count, l && n[l - 1].added) {
99
- var p = n[l - 1];
100
- n[l - 1] = n[l], n[l] = p;
94
+ function $n(e, t, l, u, h) {
95
+ for (var n = 0, r = t.length, i = 0, s = 0; n < r; n++) {
96
+ var a = t[n];
97
+ if (a.removed) {
98
+ if (a.value = e.join(u.slice(s, s + a.count)), s += a.count, n && t[n - 1].added) {
99
+ var c = t[n - 1];
100
+ t[n - 1] = t[n], t[n] = c;
101
101
  }
102
102
  } else {
103
- if (!c.added && o) {
104
- var b = t.slice(r, r + c.count);
105
- b = b.map(function(m, N) {
106
- var g = s[a + N];
107
- return g.length > m.length ? g : m;
108
- }), c.value = e.join(b);
103
+ if (!a.added && h) {
104
+ var o = l.slice(i, i + a.count);
105
+ o = o.map(function(g, p) {
106
+ var d = u[s + p];
107
+ return d.length > g.length ? d : g;
108
+ }), a.value = e.join(o);
109
109
  } else
110
- c.value = e.join(t.slice(r, r + c.count));
111
- r += c.count, c.added || (a += c.count);
110
+ a.value = e.join(l.slice(i, i + a.count));
111
+ i += a.count, a.added || (s += a.count);
112
112
  }
113
113
  }
114
- var y = n[i - 1];
115
- return i > 1 && typeof y.value == "string" && (y.added || y.removed) && e.equals("", y.value) && (n[i - 2].value += y.value, n.pop()), n;
114
+ var f = t[r - 1];
115
+ return r > 1 && typeof f.value == "string" && (f.added || f.removed) && e.equals("", f.value) && (t[r - 2].value += f.value, t.pop()), t;
116
116
  }
117
- function Bn(e) {
117
+ function Un(e) {
118
118
  return {
119
119
  newPos: e.newPos,
120
120
  components: e.components.slice(0)
121
121
  };
122
122
  }
123
- var $n = new j();
124
- function Un(e, n, t) {
125
- return $n.diff(e, n, t);
123
+ var Pn = new re();
124
+ function xn(e, t, l) {
125
+ return Pn.diff(e, t, l);
126
126
  }
127
- function Pn(e, n) {
127
+ function Hn(e, t) {
128
128
  if (typeof e == "function")
129
- n.callback = e;
129
+ t.callback = e;
130
130
  else if (e)
131
- for (var t in e)
132
- e.hasOwnProperty(t) && (n[t] = e[t]);
133
- return n;
131
+ for (var l in e)
132
+ e.hasOwnProperty(l) && (t[l] = e[l]);
133
+ return t;
134
134
  }
135
- var Je = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/, en = /\S/, ze = new j();
136
- ze.equals = function(e, n) {
137
- return this.options.ignoreCase && (e = e.toLowerCase(), n = n.toLowerCase()), e === n || this.options.ignoreWhitespace && !en.test(e) && !en.test(n);
135
+ var qe = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/, en = /\S/, Fe = new re();
136
+ Fe.equals = function(e, t) {
137
+ return this.options.ignoreCase && (e = e.toLowerCase(), t = t.toLowerCase()), e === t || this.options.ignoreWhitespace && !en.test(e) && !en.test(t);
138
138
  };
139
- ze.tokenize = function(e) {
140
- for (var n = e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/), t = 0; t < n.length - 1; t++)
141
- !n[t + 1] && n[t + 2] && Je.test(n[t]) && Je.test(n[t + 2]) && (n[t] += n[t + 2], n.splice(t + 1, 2), t--);
142
- return n;
139
+ Fe.tokenize = function(e) {
140
+ for (var t = e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/), l = 0; l < t.length - 1; l++)
141
+ !t[l + 1] && t[l + 2] && qe.test(t[l]) && qe.test(t[l + 2]) && (t[l] += t[l + 2], t.splice(l + 1, 2), l--);
142
+ return t;
143
143
  };
144
- function Hn(e, n, t) {
145
- return t = Pn(t, {
144
+ function zn(e, t, l) {
145
+ return l = Hn(l, {
146
146
  ignoreWhitespace: !0
147
- }), ze.diff(e, n, t);
147
+ }), Fe.diff(e, t, l);
148
148
  }
149
- var Fe = new j();
150
- Fe.tokenize = function(e) {
151
- var n = [], t = e.split(/(\n|\r\n)/);
152
- t[t.length - 1] || t.pop();
153
- for (var s = 0; s < t.length; s++) {
154
- var o = t[s];
155
- s % 2 && !this.options.newlineIsToken ? n[n.length - 1] += o : (this.options.ignoreWhitespace && (o = o.trim()), n.push(o));
149
+ var fn = new re();
150
+ fn.tokenize = function(e) {
151
+ var t = [], l = e.split(/(\n|\r\n)/);
152
+ l[l.length - 1] || l.pop();
153
+ for (var u = 0; u < l.length; u++) {
154
+ var h = l[u];
155
+ u % 2 && !this.options.newlineIsToken ? t[t.length - 1] += h : (this.options.ignoreWhitespace && (h = h.trim()), t.push(h));
156
156
  }
157
- return n;
157
+ return t;
158
158
  };
159
- function fn(e, n, t) {
160
- return Fe.diff(e, n, t);
161
- }
162
- var zn = new j();
163
- zn.tokenize = function(e) {
159
+ var Fn = new re();
160
+ Fn.tokenize = function(e) {
164
161
  return e.split(/(\S.+?[.!?])(?=\s+|$)/);
165
162
  };
166
- var Fn = new j();
167
- Fn.tokenize = function(e) {
163
+ var Gn = new re();
164
+ Gn.tokenize = function(e) {
168
165
  return e.split(/([{}:;,]|\s+)/);
169
166
  };
170
- function xe(e) {
171
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? xe = function(n) {
172
- return typeof n;
173
- } : xe = function(n) {
174
- return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
175
- }, xe(e);
167
+ function Oe(e) {
168
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Oe = function(t) {
169
+ return typeof t;
170
+ } : Oe = function(t) {
171
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
172
+ }, Oe(e);
176
173
  }
177
- var Gn = Object.prototype.toString, be = new j();
178
- be.useLongestToken = !0;
179
- be.tokenize = Fe.tokenize;
180
- be.castInput = function(e) {
181
- var n = this.options, t = n.undefinedReplacement, s = n.stringifyReplacer, o = s === void 0 ? function(l, i) {
182
- return typeof i > "u" ? t : i;
183
- } : s;
184
- return typeof e == "string" ? e : JSON.stringify(Ue(e, null, null, o), o, " ");
174
+ var Kn = Object.prototype.toString, _e = new re();
175
+ _e.useLongestToken = !0;
176
+ _e.tokenize = fn.tokenize;
177
+ _e.castInput = function(e) {
178
+ var t = this.options, l = t.undefinedReplacement, u = t.stringifyReplacer, h = u === void 0 ? function(n, r) {
179
+ return typeof r > "u" ? l : r;
180
+ } : u;
181
+ return typeof e == "string" ? e : JSON.stringify(xe(e, null, null, h), h, " ");
185
182
  };
186
- be.equals = function(e, n) {
187
- return j.prototype.equals.call(be, e.replace(/,([\r\n])/g, "$1"), n.replace(/,([\r\n])/g, "$1"));
183
+ _e.equals = function(e, t) {
184
+ return re.prototype.equals.call(_e, e.replace(/,([\r\n])/g, "$1"), t.replace(/,([\r\n])/g, "$1"));
188
185
  };
189
- function Ue(e, n, t, s, o) {
190
- n = n || [], t = t || [], s && (e = s(o, e));
191
- var l;
192
- for (l = 0; l < n.length; l += 1)
193
- if (n[l] === e)
194
- return t[l];
195
- var i;
196
- if (Gn.call(e) === "[object Array]") {
197
- for (n.push(e), i = new Array(e.length), t.push(i), l = 0; l < e.length; l += 1)
198
- i[l] = Ue(e[l], n, t, s, o);
199
- return n.pop(), t.pop(), i;
186
+ function xe(e, t, l, u, h) {
187
+ t = t || [], l = l || [], u && (e = u(h, e));
188
+ var n;
189
+ for (n = 0; n < t.length; n += 1)
190
+ if (t[n] === e)
191
+ return l[n];
192
+ var r;
193
+ if (Kn.call(e) === "[object Array]") {
194
+ for (t.push(e), r = new Array(e.length), l.push(r), n = 0; n < e.length; n += 1)
195
+ r[n] = xe(e[n], t, l, u, h);
196
+ return t.pop(), l.pop(), r;
200
197
  }
201
- if (e && e.toJSON && (e = e.toJSON()), xe(e) === "object" && e !== null) {
202
- n.push(e), i = {}, t.push(i);
203
- var r = [], a;
204
- for (a in e)
205
- e.hasOwnProperty(a) && r.push(a);
206
- for (r.sort(), l = 0; l < r.length; l += 1)
207
- a = r[l], i[a] = Ue(e[a], n, t, s, a);
208
- n.pop(), t.pop();
198
+ if (e && e.toJSON && (e = e.toJSON()), Oe(e) === "object" && e !== null) {
199
+ t.push(e), r = {}, l.push(r);
200
+ var i = [], s;
201
+ for (s in e)
202
+ e.hasOwnProperty(s) && i.push(s);
203
+ for (i.sort(), n = 0; n < i.length; n += 1)
204
+ s = i[n], r[s] = xe(e[s], t, l, u, s);
205
+ t.pop(), l.pop();
209
206
  } else
210
- i = e;
211
- return i;
207
+ r = e;
208
+ return r;
212
209
  }
213
- var Pe = new j();
214
- Pe.tokenize = function(e) {
210
+ var He = new re();
211
+ He.tokenize = function(e) {
215
212
  return e.slice();
216
213
  };
217
- Pe.join = Pe.removeEmpty = function(e) {
214
+ He.join = He.removeEmpty = function(e) {
218
215
  return e;
219
216
  };
217
+ var be = {}, Wn = {
218
+ get exports() {
219
+ return be;
220
+ },
221
+ set exports(e) {
222
+ be = e;
223
+ }
224
+ };
225
+ (function(e) {
226
+ var t = function() {
227
+ this.Diff_Timeout = 1, this.Diff_EditCost = 4, this.Match_Threshold = 0.5, this.Match_Distance = 1e3, this.Patch_DeleteThreshold = 0.5, this.Patch_Margin = 4, this.Match_MaxBits = 32;
228
+ }, l = -1, u = 1, h = 0;
229
+ t.Diff = function(n, r) {
230
+ return [n, r];
231
+ }, t.prototype.diff_main = function(n, r, i, s) {
232
+ typeof s > "u" && (this.Diff_Timeout <= 0 ? s = Number.MAX_VALUE : s = new Date().getTime() + this.Diff_Timeout * 1e3);
233
+ var a = s;
234
+ if (n == null || r == null)
235
+ throw new Error("Null input. (diff_main)");
236
+ if (n == r)
237
+ return n ? [new t.Diff(h, n)] : [];
238
+ typeof i > "u" && (i = !0);
239
+ var o = i, c = this.diff_commonPrefix(n, r), f = n.substring(0, c);
240
+ n = n.substring(c), r = r.substring(c), c = this.diff_commonSuffix(n, r);
241
+ var g = n.substring(n.length - c);
242
+ n = n.substring(0, n.length - c), r = r.substring(0, r.length - c);
243
+ var p = this.diff_compute_(n, r, o, a);
244
+ return f && p.unshift(new t.Diff(h, f)), g && p.push(new t.Diff(h, g)), this.diff_cleanupMerge(p), p;
245
+ }, t.prototype.diff_compute_ = function(n, r, i, s) {
246
+ var a;
247
+ if (!n)
248
+ return [new t.Diff(u, r)];
249
+ if (!r)
250
+ return [new t.Diff(l, n)];
251
+ var o = n.length > r.length ? n : r, c = n.length > r.length ? r : n, f = o.indexOf(c);
252
+ if (f != -1)
253
+ return a = [
254
+ new t.Diff(u, o.substring(0, f)),
255
+ new t.Diff(h, c),
256
+ new t.Diff(
257
+ u,
258
+ o.substring(f + c.length)
259
+ )
260
+ ], n.length > r.length && (a[0][0] = a[2][0] = l), a;
261
+ if (c.length == 1)
262
+ return [
263
+ new t.Diff(l, n),
264
+ new t.Diff(u, r)
265
+ ];
266
+ var g = this.diff_halfMatch_(n, r);
267
+ if (g) {
268
+ var p = g[0], d = g[1], b = g[2], E = g[3], v = g[4], y = this.diff_main(p, b, i, s), m = this.diff_main(d, E, i, s);
269
+ return y.concat(
270
+ [new t.Diff(h, v)],
271
+ m
272
+ );
273
+ }
274
+ return i && n.length > 100 && r.length > 100 ? this.diff_lineMode_(n, r, s) : this.diff_bisect_(n, r, s);
275
+ }, t.prototype.diff_lineMode_ = function(n, r, i) {
276
+ var s = this.diff_linesToChars_(n, r);
277
+ n = s.chars1, r = s.chars2;
278
+ var a = s.lineArray, o = this.diff_main(n, r, !1, i);
279
+ this.diff_charsToLines_(o, a), this.diff_cleanupSemantic(o), o.push(new t.Diff(h, ""));
280
+ for (var c = 0, f = 0, g = 0, p = "", d = ""; c < o.length; ) {
281
+ switch (o[c][0]) {
282
+ case u:
283
+ g++, d += o[c][1];
284
+ break;
285
+ case l:
286
+ f++, p += o[c][1];
287
+ break;
288
+ case h:
289
+ if (f >= 1 && g >= 1) {
290
+ o.splice(
291
+ c - f - g,
292
+ f + g
293
+ ), c = c - f - g;
294
+ for (var b = this.diff_main(p, d, !1, i), E = b.length - 1; E >= 0; E--)
295
+ o.splice(c, 0, b[E]);
296
+ c = c + b.length;
297
+ }
298
+ g = 0, f = 0, p = "", d = "";
299
+ break;
300
+ }
301
+ c++;
302
+ }
303
+ return o.pop(), o;
304
+ }, t.prototype.diff_bisect_ = function(n, r, i) {
305
+ for (var s = n.length, a = r.length, o = Math.ceil((s + a) / 2), c = o, f = 2 * o, g = new Array(f), p = new Array(f), d = 0; d < f; d++)
306
+ g[d] = -1, p[d] = -1;
307
+ g[c + 1] = 0, p[c + 1] = 0;
308
+ for (var b = s - a, E = b % 2 != 0, v = 0, y = 0, m = 0, D = 0, S = 0; S < o && !(new Date().getTime() > i); S++) {
309
+ for (var A = -S + v; A <= S - y; A += 2) {
310
+ var I = c + A, R;
311
+ A == -S || A != S && g[I - 1] < g[I + 1] ? R = g[I + 1] : R = g[I - 1] + 1;
312
+ for (var z = R - A; R < s && z < a && n.charAt(R) == r.charAt(z); )
313
+ R++, z++;
314
+ if (g[I] = R, R > s)
315
+ y += 2;
316
+ else if (z > a)
317
+ v += 2;
318
+ else if (E) {
319
+ var P = c + b - A;
320
+ if (P >= 0 && P < f && p[P] != -1) {
321
+ var $ = s - p[P];
322
+ if (R >= $)
323
+ return this.diff_bisectSplit_(n, r, R, z, i);
324
+ }
325
+ }
326
+ }
327
+ for (var G = -S + m; G <= S - D; G += 2) {
328
+ var P = c + G, $;
329
+ G == -S || G != S && p[P - 1] < p[P + 1] ? $ = p[P + 1] : $ = p[P - 1] + 1;
330
+ for (var Q = $ - G; $ < s && Q < a && n.charAt(s - $ - 1) == r.charAt(a - Q - 1); )
331
+ $++, Q++;
332
+ if (p[P] = $, $ > s)
333
+ D += 2;
334
+ else if (Q > a)
335
+ m += 2;
336
+ else if (!E) {
337
+ var I = c + b - G;
338
+ if (I >= 0 && I < f && g[I] != -1) {
339
+ var R = g[I], z = c + R - I;
340
+ if ($ = s - $, R >= $)
341
+ return this.diff_bisectSplit_(n, r, R, z, i);
342
+ }
343
+ }
344
+ }
345
+ }
346
+ return [
347
+ new t.Diff(l, n),
348
+ new t.Diff(u, r)
349
+ ];
350
+ }, t.prototype.diff_bisectSplit_ = function(n, r, i, s, a) {
351
+ var o = n.substring(0, i), c = r.substring(0, s), f = n.substring(i), g = r.substring(s), p = this.diff_main(o, c, !1, a), d = this.diff_main(f, g, !1, a);
352
+ return p.concat(d);
353
+ }, t.prototype.diff_linesToChars_ = function(n, r) {
354
+ var i = [], s = {};
355
+ i[0] = "";
356
+ function a(g) {
357
+ for (var p = "", d = 0, b = -1, E = i.length; b < g.length - 1; ) {
358
+ b = g.indexOf(`
359
+ `, d), b == -1 && (b = g.length - 1);
360
+ var v = g.substring(d, b + 1);
361
+ (s.hasOwnProperty ? s.hasOwnProperty(v) : s[v] !== void 0) ? p += String.fromCharCode(s[v]) : (E == o && (v = g.substring(d), b = g.length), p += String.fromCharCode(E), s[v] = E, i[E++] = v), d = b + 1;
362
+ }
363
+ return p;
364
+ }
365
+ var o = 4e4, c = a(n);
366
+ o = 65535;
367
+ var f = a(r);
368
+ return { chars1: c, chars2: f, lineArray: i };
369
+ }, t.prototype.diff_charsToLines_ = function(n, r) {
370
+ for (var i = 0; i < n.length; i++) {
371
+ for (var s = n[i][1], a = [], o = 0; o < s.length; o++)
372
+ a[o] = r[s.charCodeAt(o)];
373
+ n[i][1] = a.join("");
374
+ }
375
+ }, t.prototype.diff_commonPrefix = function(n, r) {
376
+ if (!n || !r || n.charAt(0) != r.charAt(0))
377
+ return 0;
378
+ for (var i = 0, s = Math.min(n.length, r.length), a = s, o = 0; i < a; )
379
+ n.substring(o, a) == r.substring(o, a) ? (i = a, o = i) : s = a, a = Math.floor((s - i) / 2 + i);
380
+ return a;
381
+ }, t.prototype.diff_commonSuffix = function(n, r) {
382
+ if (!n || !r || n.charAt(n.length - 1) != r.charAt(r.length - 1))
383
+ return 0;
384
+ for (var i = 0, s = Math.min(n.length, r.length), a = s, o = 0; i < a; )
385
+ n.substring(n.length - a, n.length - o) == r.substring(r.length - a, r.length - o) ? (i = a, o = i) : s = a, a = Math.floor((s - i) / 2 + i);
386
+ return a;
387
+ }, t.prototype.diff_commonOverlap_ = function(n, r) {
388
+ var i = n.length, s = r.length;
389
+ if (i == 0 || s == 0)
390
+ return 0;
391
+ i > s ? n = n.substring(i - s) : i < s && (r = r.substring(0, i));
392
+ var a = Math.min(i, s);
393
+ if (n == r)
394
+ return a;
395
+ for (var o = 0, c = 1; ; ) {
396
+ var f = n.substring(a - c), g = r.indexOf(f);
397
+ if (g == -1)
398
+ return o;
399
+ c += g, (g == 0 || n.substring(a - c) == r.substring(0, c)) && (o = c, c++);
400
+ }
401
+ }, t.prototype.diff_halfMatch_ = function(n, r) {
402
+ if (this.Diff_Timeout <= 0)
403
+ return null;
404
+ var i = n.length > r.length ? n : r, s = n.length > r.length ? r : n;
405
+ if (i.length < 4 || s.length * 2 < i.length)
406
+ return null;
407
+ var a = this;
408
+ function o(y, m, D) {
409
+ for (var S = y.substring(D, D + Math.floor(y.length / 4)), A = -1, I = "", R, z, P, $; (A = m.indexOf(S, A + 1)) != -1; ) {
410
+ var G = a.diff_commonPrefix(
411
+ y.substring(D),
412
+ m.substring(A)
413
+ ), Q = a.diff_commonSuffix(
414
+ y.substring(0, D),
415
+ m.substring(0, A)
416
+ );
417
+ I.length < Q + G && (I = m.substring(A - Q, A) + m.substring(A, A + G), R = y.substring(0, D - Q), z = y.substring(D + G), P = m.substring(0, A - Q), $ = m.substring(A + G));
418
+ }
419
+ return I.length * 2 >= y.length ? [
420
+ R,
421
+ z,
422
+ P,
423
+ $,
424
+ I
425
+ ] : null;
426
+ }
427
+ var c = o(
428
+ i,
429
+ s,
430
+ Math.ceil(i.length / 4)
431
+ ), f = o(
432
+ i,
433
+ s,
434
+ Math.ceil(i.length / 2)
435
+ ), g;
436
+ if (!c && !f)
437
+ return null;
438
+ f ? c ? g = c[4].length > f[4].length ? c : f : g = f : g = c;
439
+ var p, d, b, E;
440
+ n.length > r.length ? (p = g[0], d = g[1], b = g[2], E = g[3]) : (b = g[0], E = g[1], p = g[2], d = g[3]);
441
+ var v = g[4];
442
+ return [p, d, b, E, v];
443
+ }, t.prototype.diff_cleanupSemantic = function(n) {
444
+ for (var r = !1, i = [], s = 0, a = null, o = 0, c = 0, f = 0, g = 0, p = 0; o < n.length; )
445
+ n[o][0] == h ? (i[s++] = o, c = g, f = p, g = 0, p = 0, a = n[o][1]) : (n[o][0] == u ? g += n[o][1].length : p += n[o][1].length, a && a.length <= Math.max(c, f) && a.length <= Math.max(
446
+ g,
447
+ p
448
+ ) && (n.splice(
449
+ i[s - 1],
450
+ 0,
451
+ new t.Diff(l, a)
452
+ ), n[i[s - 1] + 1][0] = u, s--, s--, o = s > 0 ? i[s - 1] : -1, c = 0, f = 0, g = 0, p = 0, a = null, r = !0)), o++;
453
+ for (r && this.diff_cleanupMerge(n), this.diff_cleanupSemanticLossless(n), o = 1; o < n.length; ) {
454
+ if (n[o - 1][0] == l && n[o][0] == u) {
455
+ var d = n[o - 1][1], b = n[o][1], E = this.diff_commonOverlap_(d, b), v = this.diff_commonOverlap_(b, d);
456
+ E >= v ? (E >= d.length / 2 || E >= b.length / 2) && (n.splice(o, 0, new t.Diff(
457
+ h,
458
+ b.substring(0, E)
459
+ )), n[o - 1][1] = d.substring(0, d.length - E), n[o + 1][1] = b.substring(E), o++) : (v >= d.length / 2 || v >= b.length / 2) && (n.splice(o, 0, new t.Diff(
460
+ h,
461
+ d.substring(0, v)
462
+ )), n[o - 1][0] = u, n[o - 1][1] = b.substring(0, b.length - v), n[o + 1][0] = l, n[o + 1][1] = d.substring(v), o++), o++;
463
+ }
464
+ o++;
465
+ }
466
+ }, t.prototype.diff_cleanupSemanticLossless = function(n) {
467
+ function r(v, y) {
468
+ if (!v || !y)
469
+ return 6;
470
+ var m = v.charAt(v.length - 1), D = y.charAt(0), S = m.match(t.nonAlphaNumericRegex_), A = D.match(t.nonAlphaNumericRegex_), I = S && m.match(t.whitespaceRegex_), R = A && D.match(t.whitespaceRegex_), z = I && m.match(t.linebreakRegex_), P = R && D.match(t.linebreakRegex_), $ = z && v.match(t.blanklineEndRegex_), G = P && y.match(t.blanklineStartRegex_);
471
+ return $ || G ? 5 : z || P ? 4 : S && !I && R ? 3 : I || R ? 2 : S || A ? 1 : 0;
472
+ }
473
+ for (var i = 1; i < n.length - 1; ) {
474
+ if (n[i - 1][0] == h && n[i + 1][0] == h) {
475
+ var s = n[i - 1][1], a = n[i][1], o = n[i + 1][1], c = this.diff_commonSuffix(s, a);
476
+ if (c) {
477
+ var f = a.substring(a.length - c);
478
+ s = s.substring(0, s.length - c), a = f + a.substring(0, a.length - c), o = f + o;
479
+ }
480
+ for (var g = s, p = a, d = o, b = r(s, a) + r(a, o); a.charAt(0) === o.charAt(0); ) {
481
+ s += a.charAt(0), a = a.substring(1) + o.charAt(0), o = o.substring(1);
482
+ var E = r(s, a) + r(a, o);
483
+ E >= b && (b = E, g = s, p = a, d = o);
484
+ }
485
+ n[i - 1][1] != g && (g ? n[i - 1][1] = g : (n.splice(i - 1, 1), i--), n[i][1] = p, d ? n[i + 1][1] = d : (n.splice(i + 1, 1), i--));
486
+ }
487
+ i++;
488
+ }
489
+ }, t.nonAlphaNumericRegex_ = /[^a-zA-Z0-9]/, t.whitespaceRegex_ = /\s/, t.linebreakRegex_ = /[\r\n]/, t.blanklineEndRegex_ = /\n\r?\n$/, t.blanklineStartRegex_ = /^\r?\n\r?\n/, t.prototype.diff_cleanupEfficiency = function(n) {
490
+ for (var r = !1, i = [], s = 0, a = null, o = 0, c = !1, f = !1, g = !1, p = !1; o < n.length; )
491
+ n[o][0] == h ? (n[o][1].length < this.Diff_EditCost && (g || p) ? (i[s++] = o, c = g, f = p, a = n[o][1]) : (s = 0, a = null), g = p = !1) : (n[o][0] == l ? p = !0 : g = !0, a && (c && f && g && p || a.length < this.Diff_EditCost / 2 && c + f + g + p == 3) && (n.splice(
492
+ i[s - 1],
493
+ 0,
494
+ new t.Diff(l, a)
495
+ ), n[i[s - 1] + 1][0] = u, s--, a = null, c && f ? (g = p = !0, s = 0) : (s--, o = s > 0 ? i[s - 1] : -1, g = p = !1), r = !0)), o++;
496
+ r && this.diff_cleanupMerge(n);
497
+ }, t.prototype.diff_cleanupMerge = function(n) {
498
+ n.push(new t.Diff(h, ""));
499
+ for (var r = 0, i = 0, s = 0, a = "", o = "", c; r < n.length; )
500
+ switch (n[r][0]) {
501
+ case u:
502
+ s++, o += n[r][1], r++;
503
+ break;
504
+ case l:
505
+ i++, a += n[r][1], r++;
506
+ break;
507
+ case h:
508
+ i + s > 1 ? (i !== 0 && s !== 0 && (c = this.diff_commonPrefix(o, a), c !== 0 && (r - i - s > 0 && n[r - i - s - 1][0] == h ? n[r - i - s - 1][1] += o.substring(0, c) : (n.splice(0, 0, new t.Diff(
509
+ h,
510
+ o.substring(0, c)
511
+ )), r++), o = o.substring(c), a = a.substring(c)), c = this.diff_commonSuffix(o, a), c !== 0 && (n[r][1] = o.substring(o.length - c) + n[r][1], o = o.substring(0, o.length - c), a = a.substring(0, a.length - c))), r -= i + s, n.splice(r, i + s), a.length && (n.splice(
512
+ r,
513
+ 0,
514
+ new t.Diff(l, a)
515
+ ), r++), o.length && (n.splice(
516
+ r,
517
+ 0,
518
+ new t.Diff(u, o)
519
+ ), 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, a = "", o = "";
520
+ break;
521
+ }
522
+ n[n.length - 1][1] === "" && n.pop();
523
+ var f = !1;
524
+ for (r = 1; r < n.length - 1; )
525
+ 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++;
526
+ f && this.diff_cleanupMerge(n);
527
+ }, t.prototype.diff_xIndex = function(n, r) {
528
+ var i = 0, s = 0, a = 0, o = 0, c;
529
+ for (c = 0; c < n.length && (n[c][0] !== u && (i += n[c][1].length), n[c][0] !== l && (s += n[c][1].length), !(i > r)); c++)
530
+ a = i, o = s;
531
+ return n.length != c && n[c][0] === l ? o : o + (r - a);
532
+ }, t.prototype.diff_prettyHtml = function(n) {
533
+ for (var r = [], i = /&/g, s = /</g, a = />/g, o = /\n/g, c = 0; c < n.length; c++) {
534
+ var f = n[c][0], g = n[c][1], p = g.replace(i, "&amp;").replace(s, "&lt;").replace(a, "&gt;").replace(o, "&para;<br>");
535
+ switch (f) {
536
+ case u:
537
+ r[c] = '<ins style="background:#e6ffe6;">' + p + "</ins>";
538
+ break;
539
+ case l:
540
+ r[c] = '<del style="background:#ffe6e6;">' + p + "</del>";
541
+ break;
542
+ case h:
543
+ r[c] = "<span>" + p + "</span>";
544
+ break;
545
+ }
546
+ }
547
+ return r.join("");
548
+ }, t.prototype.diff_text1 = function(n) {
549
+ for (var r = [], i = 0; i < n.length; i++)
550
+ n[i][0] !== u && (r[i] = n[i][1]);
551
+ return r.join("");
552
+ }, t.prototype.diff_text2 = function(n) {
553
+ for (var r = [], i = 0; i < n.length; i++)
554
+ n[i][0] !== l && (r[i] = n[i][1]);
555
+ return r.join("");
556
+ }, t.prototype.diff_levenshtein = function(n) {
557
+ for (var r = 0, i = 0, s = 0, a = 0; a < n.length; a++) {
558
+ var o = n[a][0], c = n[a][1];
559
+ switch (o) {
560
+ case u:
561
+ i += c.length;
562
+ break;
563
+ case l:
564
+ s += c.length;
565
+ break;
566
+ case h:
567
+ r += Math.max(i, s), i = 0, s = 0;
568
+ break;
569
+ }
570
+ }
571
+ return r += Math.max(i, s), r;
572
+ }, t.prototype.diff_toDelta = function(n) {
573
+ for (var r = [], i = 0; i < n.length; i++)
574
+ switch (n[i][0]) {
575
+ case u:
576
+ r[i] = "+" + encodeURI(n[i][1]);
577
+ break;
578
+ case l:
579
+ r[i] = "-" + n[i][1].length;
580
+ break;
581
+ case h:
582
+ r[i] = "=" + n[i][1].length;
583
+ break;
584
+ }
585
+ return r.join(" ").replace(/%20/g, " ");
586
+ }, t.prototype.diff_fromDelta = function(n, r) {
587
+ for (var i = [], s = 0, a = 0, o = r.split(/\t/g), c = 0; c < o.length; c++) {
588
+ var f = o[c].substring(1);
589
+ switch (o[c].charAt(0)) {
590
+ case "+":
591
+ try {
592
+ i[s++] = new t.Diff(u, decodeURI(f));
593
+ } catch {
594
+ throw new Error("Illegal escape in diff_fromDelta: " + f);
595
+ }
596
+ break;
597
+ case "-":
598
+ case "=":
599
+ var g = parseInt(f, 10);
600
+ if (isNaN(g) || g < 0)
601
+ throw new Error("Invalid number in diff_fromDelta: " + f);
602
+ var p = n.substring(a, a += g);
603
+ o[c].charAt(0) == "=" ? i[s++] = new t.Diff(h, p) : i[s++] = new t.Diff(l, p);
604
+ break;
605
+ default:
606
+ if (o[c])
607
+ throw new Error("Invalid diff operation in diff_fromDelta: " + o[c]);
608
+ }
609
+ }
610
+ if (a != n.length)
611
+ throw new Error("Delta length (" + a + ") does not equal source text length (" + n.length + ").");
612
+ return i;
613
+ }, t.prototype.match_main = function(n, r, i) {
614
+ if (n == null || r == null || i == null)
615
+ throw new Error("Null input. (match_main)");
616
+ 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;
617
+ }, t.prototype.match_bitap_ = function(n, r, i) {
618
+ if (r.length > this.Match_MaxBits)
619
+ throw new Error("Pattern too long for this browser.");
620
+ var s = this.match_alphabet_(r), a = this;
621
+ function o(R, z) {
622
+ var P = R / r.length, $ = Math.abs(i - z);
623
+ return a.Match_Distance ? P + $ / a.Match_Distance : $ ? 1 : P;
624
+ }
625
+ var c = this.Match_Threshold, f = n.indexOf(r, i);
626
+ f != -1 && (c = Math.min(o(0, f), c), f = n.lastIndexOf(r, i + r.length), f != -1 && (c = Math.min(o(0, f), c)));
627
+ var g = 1 << r.length - 1;
628
+ f = -1;
629
+ for (var p, d, b = r.length + n.length, E, v = 0; v < r.length; v++) {
630
+ for (p = 0, d = b; p < d; )
631
+ o(v, i + d) <= c ? p = d : b = d, d = Math.floor((b - p) / 2 + p);
632
+ b = d;
633
+ var y = Math.max(1, i - d + 1), m = Math.min(i + d, n.length) + r.length, D = Array(m + 2);
634
+ D[m + 1] = (1 << v) - 1;
635
+ for (var S = m; S >= y; S--) {
636
+ var A = s[n.charAt(S - 1)];
637
+ if (v === 0 ? D[S] = (D[S + 1] << 1 | 1) & A : D[S] = (D[S + 1] << 1 | 1) & A | ((E[S + 1] | E[S]) << 1 | 1) | E[S + 1], D[S] & g) {
638
+ var I = o(v, S - 1);
639
+ if (I <= c)
640
+ if (c = I, f = S - 1, f > i)
641
+ y = Math.max(1, 2 * i - f);
642
+ else
643
+ break;
644
+ }
645
+ }
646
+ if (o(v + 1, i) > c)
647
+ break;
648
+ E = D;
649
+ }
650
+ return f;
651
+ }, t.prototype.match_alphabet_ = function(n) {
652
+ for (var r = {}, i = 0; i < n.length; i++)
653
+ r[n.charAt(i)] = 0;
654
+ for (var i = 0; i < n.length; i++)
655
+ r[n.charAt(i)] |= 1 << n.length - i - 1;
656
+ return r;
657
+ }, t.prototype.patch_addContext_ = function(n, r) {
658
+ if (r.length != 0) {
659
+ if (n.start2 === null)
660
+ throw Error("patch not initialized");
661
+ 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; )
662
+ s += this.Patch_Margin, i = r.substring(
663
+ n.start2 - s,
664
+ n.start2 + n.length1 + s
665
+ );
666
+ s += this.Patch_Margin;
667
+ var a = r.substring(n.start2 - s, n.start2);
668
+ a && n.diffs.unshift(new t.Diff(h, a));
669
+ var o = r.substring(
670
+ n.start2 + n.length1,
671
+ n.start2 + n.length1 + s
672
+ );
673
+ o && n.diffs.push(new t.Diff(h, o)), n.start1 -= a.length, n.start2 -= a.length, n.length1 += a.length + o.length, n.length2 += a.length + o.length;
674
+ }
675
+ }, t.prototype.patch_make = function(n, r, i) {
676
+ var s, a;
677
+ if (typeof n == "string" && typeof r == "string" && typeof i > "u")
678
+ s = /** @type {string} */
679
+ n, a = this.diff_main(
680
+ s,
681
+ /** @type {string} */
682
+ r,
683
+ !0
684
+ ), a.length > 2 && (this.diff_cleanupSemantic(a), this.diff_cleanupEfficiency(a));
685
+ else if (n && typeof n == "object" && typeof r > "u" && typeof i > "u")
686
+ a = /** @type {!Array.<!diff_match_patch.Diff>} */
687
+ n, s = this.diff_text1(a);
688
+ else if (typeof n == "string" && r && typeof r == "object" && typeof i > "u")
689
+ s = /** @type {string} */
690
+ n, a = /** @type {!Array.<!diff_match_patch.Diff>} */
691
+ r;
692
+ else if (typeof n == "string" && typeof r == "string" && i && typeof i == "object")
693
+ s = /** @type {string} */
694
+ n, a = /** @type {!Array.<!diff_match_patch.Diff>} */
695
+ i;
696
+ else
697
+ throw new Error("Unknown call format to patch_make.");
698
+ if (a.length === 0)
699
+ return [];
700
+ for (var o = [], c = new t.patch_obj(), f = 0, g = 0, p = 0, d = s, b = s, E = 0; E < a.length; E++) {
701
+ var v = a[E][0], y = a[E][1];
702
+ switch (!f && v !== h && (c.start1 = g, c.start2 = p), v) {
703
+ case u:
704
+ c.diffs[f++] = a[E], c.length2 += y.length, b = b.substring(0, p) + y + b.substring(p);
705
+ break;
706
+ case l:
707
+ c.length1 += y.length, c.diffs[f++] = a[E], b = b.substring(0, p) + b.substring(p + y.length);
708
+ break;
709
+ case h:
710
+ y.length <= 2 * this.Patch_Margin && f && a.length != E + 1 ? (c.diffs[f++] = a[E], c.length1 += y.length, c.length2 += y.length) : y.length >= 2 * this.Patch_Margin && f && (this.patch_addContext_(c, d), o.push(c), c = new t.patch_obj(), f = 0, d = b, g = p);
711
+ break;
712
+ }
713
+ v !== u && (g += y.length), v !== l && (p += y.length);
714
+ }
715
+ return f && (this.patch_addContext_(c, d), o.push(c)), o;
716
+ }, t.prototype.patch_deepCopy = function(n) {
717
+ for (var r = [], i = 0; i < n.length; i++) {
718
+ var s = n[i], a = new t.patch_obj();
719
+ a.diffs = [];
720
+ for (var o = 0; o < s.diffs.length; o++)
721
+ a.diffs[o] = new t.Diff(s.diffs[o][0], s.diffs[o][1]);
722
+ a.start1 = s.start1, a.start2 = s.start2, a.length1 = s.length1, a.length2 = s.length2, r[i] = a;
723
+ }
724
+ return r;
725
+ }, t.prototype.patch_apply = function(n, r) {
726
+ if (n.length == 0)
727
+ return [r, []];
728
+ n = this.patch_deepCopy(n);
729
+ var i = this.patch_addPadding(n);
730
+ r = i + r + i, this.patch_splitMax(n);
731
+ for (var s = 0, a = [], o = 0; o < n.length; o++) {
732
+ var c = n[o].start2 + s, f = this.diff_text1(n[o].diffs), g, p = -1;
733
+ if (f.length > this.Match_MaxBits ? (g = this.match_main(
734
+ r,
735
+ f.substring(0, this.Match_MaxBits),
736
+ c
737
+ ), g != -1 && (p = this.match_main(
738
+ r,
739
+ f.substring(f.length - this.Match_MaxBits),
740
+ c + f.length - this.Match_MaxBits
741
+ ), (p == -1 || g >= p) && (g = -1))) : g = this.match_main(r, f, c), g == -1)
742
+ a[o] = !1, s -= n[o].length2 - n[o].length1;
743
+ else {
744
+ a[o] = !0, s = g - c;
745
+ var d;
746
+ if (p == -1 ? d = r.substring(g, g + f.length) : d = r.substring(g, p + this.Match_MaxBits), f == d)
747
+ r = r.substring(0, g) + this.diff_text2(n[o].diffs) + r.substring(g + f.length);
748
+ else {
749
+ var b = this.diff_main(f, d, !1);
750
+ if (f.length > this.Match_MaxBits && this.diff_levenshtein(b) / f.length > this.Patch_DeleteThreshold)
751
+ a[o] = !1;
752
+ else {
753
+ this.diff_cleanupSemanticLossless(b);
754
+ for (var E = 0, v, y = 0; y < n[o].diffs.length; y++) {
755
+ var m = n[o].diffs[y];
756
+ m[0] !== h && (v = this.diff_xIndex(b, E)), m[0] === u ? r = r.substring(0, g + v) + m[1] + r.substring(g + v) : m[0] === l && (r = r.substring(0, g + v) + r.substring(g + this.diff_xIndex(
757
+ b,
758
+ E + m[1].length
759
+ ))), m[0] !== l && (E += m[1].length);
760
+ }
761
+ }
762
+ }
763
+ }
764
+ }
765
+ return r = r.substring(i.length, r.length - i.length), [r, a];
766
+ }, t.prototype.patch_addPadding = function(n) {
767
+ for (var r = this.Patch_Margin, i = "", s = 1; s <= r; s++)
768
+ i += String.fromCharCode(s);
769
+ for (var s = 0; s < n.length; s++)
770
+ n[s].start1 += r, n[s].start2 += r;
771
+ var a = n[0], o = a.diffs;
772
+ if (o.length == 0 || o[0][0] != h)
773
+ o.unshift(new t.Diff(h, i)), a.start1 -= r, a.start2 -= r, a.length1 += r, a.length2 += r;
774
+ else if (r > o[0][1].length) {
775
+ var c = r - o[0][1].length;
776
+ o[0][1] = i.substring(o[0][1].length) + o[0][1], a.start1 -= c, a.start2 -= c, a.length1 += c, a.length2 += c;
777
+ }
778
+ if (a = n[n.length - 1], o = a.diffs, o.length == 0 || o[o.length - 1][0] != h)
779
+ o.push(new t.Diff(h, i)), a.length1 += r, a.length2 += r;
780
+ else if (r > o[o.length - 1][1].length) {
781
+ var c = r - o[o.length - 1][1].length;
782
+ o[o.length - 1][1] += i.substring(0, c), a.length1 += c, a.length2 += c;
783
+ }
784
+ return i;
785
+ }, t.prototype.patch_splitMax = function(n) {
786
+ for (var r = this.Match_MaxBits, i = 0; i < n.length; i++)
787
+ if (!(n[i].length1 <= r)) {
788
+ var s = n[i];
789
+ n.splice(i--, 1);
790
+ for (var a = s.start1, o = s.start2, c = ""; s.diffs.length !== 0; ) {
791
+ var f = new t.patch_obj(), g = !0;
792
+ for (f.start1 = a - c.length, f.start2 = o - c.length, c !== "" && (f.length1 = f.length2 = c.length, f.diffs.push(new t.Diff(h, c))); s.diffs.length !== 0 && f.length1 < r - this.Patch_Margin; ) {
793
+ var p = s.diffs[0][0], d = s.diffs[0][1];
794
+ p === u ? (f.length2 += d.length, o += d.length, f.diffs.push(s.diffs.shift()), g = !1) : p === l && f.diffs.length == 1 && f.diffs[0][0] == h && d.length > 2 * r ? (f.length1 += d.length, a += d.length, g = !1, f.diffs.push(new t.Diff(p, d)), s.diffs.shift()) : (d = d.substring(
795
+ 0,
796
+ r - f.length1 - this.Patch_Margin
797
+ ), f.length1 += d.length, a += d.length, p === h ? (f.length2 += d.length, o += d.length) : g = !1, f.diffs.push(new t.Diff(p, d)), d == s.diffs[0][1] ? s.diffs.shift() : s.diffs[0][1] = s.diffs[0][1].substring(d.length));
798
+ }
799
+ c = this.diff_text2(f.diffs), c = c.substring(c.length - this.Patch_Margin);
800
+ var b = this.diff_text1(s.diffs).substring(0, this.Patch_Margin);
801
+ 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))), g || n.splice(++i, 0, f);
802
+ }
803
+ }
804
+ }, t.prototype.patch_toText = function(n) {
805
+ for (var r = [], i = 0; i < n.length; i++)
806
+ r[i] = n[i];
807
+ return r.join("");
808
+ }, t.prototype.patch_fromText = function(n) {
809
+ var r = [];
810
+ if (!n)
811
+ return r;
812
+ for (var i = n.split(`
813
+ `), s = 0, a = /^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/; s < i.length; ) {
814
+ var o = i[s].match(a);
815
+ if (!o)
816
+ throw new Error("Invalid patch string: " + i[s]);
817
+ var c = new t.patch_obj();
818
+ for (r.push(c), c.start1 = parseInt(o[1], 10), o[2] === "" ? (c.start1--, c.length1 = 1) : o[2] == "0" ? c.length1 = 0 : (c.start1--, c.length1 = parseInt(o[2], 10)), c.start2 = parseInt(o[3], 10), o[4] === "" ? (c.start2--, c.length2 = 1) : o[4] == "0" ? c.length2 = 0 : (c.start2--, c.length2 = parseInt(o[4], 10)), s++; s < i.length; ) {
819
+ var f = i[s].charAt(0);
820
+ try {
821
+ var g = decodeURI(i[s].substring(1));
822
+ } catch {
823
+ throw new Error("Illegal escape in patch_fromText: " + g);
824
+ }
825
+ if (f == "-")
826
+ c.diffs.push(new t.Diff(l, g));
827
+ else if (f == "+")
828
+ c.diffs.push(new t.Diff(u, g));
829
+ else if (f == " ")
830
+ c.diffs.push(new t.Diff(h, g));
831
+ else {
832
+ if (f == "@")
833
+ break;
834
+ if (f !== "")
835
+ throw new Error('Invalid patch mode "' + f + '" in: ' + g);
836
+ }
837
+ s++;
838
+ }
839
+ }
840
+ return r;
841
+ }, t.patch_obj = function() {
842
+ this.diffs = [], this.start1 = null, this.start2 = null, this.length1 = 0, this.length2 = 0;
843
+ }, t.patch_obj.prototype.toString = function() {
844
+ var n, r;
845
+ this.length1 === 0 ? n = this.start1 + ",0" : this.length1 == 1 ? n = this.start1 + 1 : n = this.start1 + 1 + "," + this.length1, this.length2 === 0 ? r = this.start2 + ",0" : this.length2 == 1 ? r = this.start2 + 1 : r = this.start2 + 1 + "," + this.length2;
846
+ for (var i = ["@@ -" + n + " +" + r + ` @@
847
+ `], s, a = 0; a < this.diffs.length; a++) {
848
+ switch (this.diffs[a][0]) {
849
+ case u:
850
+ s = "+";
851
+ break;
852
+ case l:
853
+ s = "-";
854
+ break;
855
+ case h:
856
+ s = " ";
857
+ break;
858
+ }
859
+ i[a + 1] = s + encodeURI(this.diffs[a][1]) + `
860
+ `;
861
+ }
862
+ return i.join("").replace(/%20/g, " ");
863
+ }, e.exports = t, e.exports.diff_match_patch = t, e.exports.DIFF_DELETE = l, e.exports.DIFF_INSERT = u, e.exports.DIFF_EQUAL = h;
864
+ })(Wn);
220
865
  var Ge = { exports: {} };
221
866
  function Ke(e) {
222
867
  return e instanceof Map ? e.clear = e.delete = e.set = function() {
223
868
  throw new Error("map is read-only");
224
869
  } : e instanceof Set && (e.add = e.clear = e.delete = function() {
225
870
  throw new Error("set is read-only");
226
- }), Object.freeze(e), Object.getOwnPropertyNames(e).forEach(function(n) {
227
- var t = e[n];
228
- typeof t == "object" && !Object.isFrozen(t) && Ke(t);
871
+ }), Object.freeze(e), Object.getOwnPropertyNames(e).forEach(function(t) {
872
+ var l = e[t];
873
+ typeof l == "object" && !Object.isFrozen(l) && Ke(l);
229
874
  }), e;
230
875
  }
231
876
  Ge.exports = Ke;
@@ -234,35 +879,35 @@ class nn {
234
879
  /**
235
880
  * @param {CompiledMode} mode
236
881
  */
237
- constructor(n) {
238
- n.data === void 0 && (n.data = {}), this.data = n.data, this.isMatchIgnored = !1;
882
+ constructor(t) {
883
+ t.data === void 0 && (t.data = {}), this.data = t.data, this.isMatchIgnored = !1;
239
884
  }
240
885
  ignoreMatch() {
241
886
  this.isMatchIgnored = !0;
242
887
  }
243
888
  }
244
- function dn(e) {
889
+ function gn(e) {
245
890
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
246
891
  }
247
- function ne(e, ...n) {
248
- const t = /* @__PURE__ */ Object.create(null);
249
- for (const s in e)
250
- t[s] = e[s];
251
- return n.forEach(function(s) {
252
- for (const o in s)
253
- t[o] = s[o];
892
+ function ae(e, ...t) {
893
+ const l = /* @__PURE__ */ Object.create(null);
894
+ for (const u in e)
895
+ l[u] = e[u];
896
+ return t.forEach(function(u) {
897
+ for (const h in u)
898
+ l[h] = u[h];
254
899
  }), /** @type {T} */
255
- t;
900
+ l;
256
901
  }
257
- const Kn = "</span>", tn = (e) => !!e.scope || e.sublanguage && e.language, Wn = (e, { prefix: n }) => {
902
+ const Qn = "</span>", tn = (e) => !!e.scope || e.sublanguage && e.language, Zn = (e, { prefix: t }) => {
258
903
  if (e.includes(".")) {
259
- const t = e.split(".");
904
+ const l = e.split(".");
260
905
  return [
261
- `${n}${t.shift()}`,
262
- ...t.map((s, o) => `${s}${"_".repeat(o + 1)}`)
906
+ `${t}${l.shift()}`,
907
+ ...l.map((u, h) => `${u}${"_".repeat(h + 1)}`)
263
908
  ].join(" ");
264
909
  }
265
- return `${n}${e}`;
910
+ return `${t}${e}`;
266
911
  };
267
912
  class Yn {
268
913
  /**
@@ -271,32 +916,32 @@ class Yn {
271
916
  * @param {Tree} parseTree - the parse tree (must support `walk` API)
272
917
  * @param {{classPrefix: string}} options
273
918
  */
274
- constructor(n, t) {
275
- this.buffer = "", this.classPrefix = t.classPrefix, n.walk(this);
919
+ constructor(t, l) {
920
+ this.buffer = "", this.classPrefix = l.classPrefix, t.walk(this);
276
921
  }
277
922
  /**
278
923
  * Adds texts to the output stream
279
924
  *
280
925
  * @param {string} text */
281
- addText(n) {
282
- this.buffer += dn(n);
926
+ addText(t) {
927
+ this.buffer += gn(t);
283
928
  }
284
929
  /**
285
930
  * Adds a node open to the output stream (if needed)
286
931
  *
287
932
  * @param {Node} node */
288
- openNode(n) {
289
- if (!tn(n))
933
+ openNode(t) {
934
+ if (!tn(t))
290
935
  return;
291
- let t = "";
292
- n.sublanguage ? t = `language-${n.language}` : t = Wn(n.scope, { prefix: this.classPrefix }), this.span(t);
936
+ let l = "";
937
+ t.sublanguage ? l = `language-${t.language}` : l = Zn(t.scope, { prefix: this.classPrefix }), this.span(l);
293
938
  }
294
939
  /**
295
940
  * Adds a node close to the output stream (if needed)
296
941
  *
297
942
  * @param {Node} node */
298
- closeNode(n) {
299
- tn(n) && (this.buffer += Kn);
943
+ closeNode(t) {
944
+ tn(t) && (this.buffer += Qn);
300
945
  }
301
946
  /**
302
947
  * returns the accumulated buffer
@@ -309,17 +954,17 @@ class Yn {
309
954
  * Builds a span element
310
955
  *
311
956
  * @param {string} className */
312
- span(n) {
313
- this.buffer += `<span class="${n}">`;
957
+ span(t) {
958
+ this.buffer += `<span class="${t}">`;
314
959
  }
315
960
  }
316
- const sn = (e = {}) => {
317
- const n = { children: [] };
318
- return Object.assign(n, e), n;
961
+ const rn = (e = {}) => {
962
+ const t = { children: [] };
963
+ return Object.assign(t, e), t;
319
964
  };
320
965
  class We {
321
966
  constructor() {
322
- this.rootNode = sn(), this.stack = [this.rootNode];
967
+ this.rootNode = rn(), this.stack = [this.rootNode];
323
968
  }
324
969
  get top() {
325
970
  return this.stack[this.stack.length - 1];
@@ -328,13 +973,13 @@ class We {
328
973
  return this.rootNode;
329
974
  }
330
975
  /** @param {Node} node */
331
- add(n) {
332
- this.top.children.push(n);
976
+ add(t) {
977
+ this.top.children.push(t);
333
978
  }
334
979
  /** @param {string} scope */
335
- openNode(n) {
336
- const t = sn({ scope: n });
337
- this.add(t), this.stack.push(t);
980
+ openNode(t) {
981
+ const l = rn({ scope: t });
982
+ this.add(l), this.stack.push(l);
338
983
  }
339
984
  closeNode() {
340
985
  if (this.stack.length > 1)
@@ -351,52 +996,52 @@ class We {
351
996
  * @typedef { import("./html_renderer").Renderer } Renderer
352
997
  * @param {Renderer} builder
353
998
  */
354
- walk(n) {
355
- return this.constructor._walk(n, this.rootNode);
999
+ walk(t) {
1000
+ return this.constructor._walk(t, this.rootNode);
356
1001
  }
357
1002
  /**
358
1003
  * @param {Renderer} builder
359
1004
  * @param {Node} node
360
1005
  */
361
- static _walk(n, t) {
362
- return typeof t == "string" ? n.addText(t) : t.children && (n.openNode(t), t.children.forEach((s) => this._walk(n, s)), n.closeNode(t)), n;
1006
+ static _walk(t, l) {
1007
+ return typeof l == "string" ? t.addText(l) : l.children && (t.openNode(l), l.children.forEach((u) => this._walk(t, u)), t.closeNode(l)), t;
363
1008
  }
364
1009
  /**
365
1010
  * @param {Node} node
366
1011
  */
367
- static _collapse(n) {
368
- typeof n != "string" && n.children && (n.children.every((t) => typeof t == "string") ? n.children = [n.children.join("")] : n.children.forEach((t) => {
369
- We._collapse(t);
1012
+ static _collapse(t) {
1013
+ typeof t != "string" && t.children && (t.children.every((l) => typeof l == "string") ? t.children = [t.children.join("")] : t.children.forEach((l) => {
1014
+ We._collapse(l);
370
1015
  }));
371
1016
  }
372
1017
  }
373
- class Zn extends We {
1018
+ class Xn extends We {
374
1019
  /**
375
1020
  * @param {*} options
376
1021
  */
377
- constructor(n) {
378
- super(), this.options = n;
1022
+ constructor(t) {
1023
+ super(), this.options = t;
379
1024
  }
380
1025
  /**
381
1026
  * @param {string} text
382
1027
  * @param {string} scope
383
1028
  */
384
- addKeyword(n, t) {
385
- n !== "" && (this.openNode(t), this.addText(n), this.closeNode());
1029
+ addKeyword(t, l) {
1030
+ t !== "" && (this.openNode(l), this.addText(t), this.closeNode());
386
1031
  }
387
1032
  /**
388
1033
  * @param {string} text
389
1034
  */
390
- addText(n) {
391
- n !== "" && this.add(n);
1035
+ addText(t) {
1036
+ t !== "" && this.add(t);
392
1037
  }
393
1038
  /**
394
1039
  * @param {Emitter & {root: DataNode}} emitter
395
1040
  * @param {string} name
396
1041
  */
397
- addSublanguage(n, t) {
398
- const s = n.root;
399
- s.sublanguage = !0, s.language = t, this.add(s);
1042
+ addSublanguage(t, l) {
1043
+ const u = t.root;
1044
+ u.sublanguage = !0, u.language = l, this.add(u);
400
1045
  }
401
1046
  toHTML() {
402
1047
  return new Yn(this, this.options).value();
@@ -408,95 +1053,95 @@ class Zn extends We {
408
1053
  function Ee(e) {
409
1054
  return e ? typeof e == "string" ? e : e.source : null;
410
1055
  }
411
- function gn(e) {
412
- return ie("(?=", e, ")");
1056
+ function hn(e) {
1057
+ return ce("(?=", e, ")");
413
1058
  }
414
- function Qn(e) {
415
- return ie("(?:", e, ")*");
1059
+ function Vn(e) {
1060
+ return ce("(?:", e, ")*");
416
1061
  }
417
- function qn(e) {
418
- return ie("(?:", e, ")?");
1062
+ function jn(e) {
1063
+ return ce("(?:", e, ")?");
419
1064
  }
420
- function ie(...e) {
421
- return e.map((t) => Ee(t)).join("");
1065
+ function ce(...e) {
1066
+ return e.map((l) => Ee(l)).join("");
422
1067
  }
423
- function Xn(e) {
424
- const n = e[e.length - 1];
425
- return typeof n == "object" && n.constructor === Object ? (e.splice(e.length - 1, 1), n) : {};
1068
+ function Jn(e) {
1069
+ const t = e[e.length - 1];
1070
+ return typeof t == "object" && t.constructor === Object ? (e.splice(e.length - 1, 1), t) : {};
426
1071
  }
427
- function Ye(...e) {
428
- return "(" + (Xn(e).capture ? "" : "?:") + e.map((s) => Ee(s)).join("|") + ")";
1072
+ function Qe(...e) {
1073
+ return "(" + (Jn(e).capture ? "" : "?:") + e.map((u) => Ee(u)).join("|") + ")";
429
1074
  }
430
- function pn(e) {
1075
+ function dn(e) {
431
1076
  return new RegExp(e.toString() + "|").exec("").length - 1;
432
1077
  }
433
- function Vn(e, n) {
434
- const t = e && e.exec(n);
435
- return t && t.index === 0;
1078
+ function qn(e, t) {
1079
+ const l = e && e.exec(t);
1080
+ return l && l.index === 0;
436
1081
  }
437
- const jn = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
438
- function Ze(e, { joinWith: n }) {
439
- let t = 0;
440
- return e.map((s) => {
441
- t += 1;
442
- const o = t;
443
- let l = Ee(s), i = "";
444
- for (; l.length > 0; ) {
445
- const r = jn.exec(l);
446
- if (!r) {
447
- i += l;
1082
+ const et = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
1083
+ function Ze(e, { joinWith: t }) {
1084
+ let l = 0;
1085
+ return e.map((u) => {
1086
+ l += 1;
1087
+ const h = l;
1088
+ let n = Ee(u), r = "";
1089
+ for (; n.length > 0; ) {
1090
+ const i = et.exec(n);
1091
+ if (!i) {
1092
+ r += n;
448
1093
  break;
449
1094
  }
450
- i += l.substring(0, r.index), l = l.substring(r.index + r[0].length), r[0][0] === "\\" && r[1] ? i += "\\" + String(Number(r[1]) + o) : (i += r[0], r[0] === "(" && t++);
1095
+ 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] === "(" && l++);
451
1096
  }
452
- return i;
453
- }).map((s) => `(${s})`).join(n);
1097
+ return r;
1098
+ }).map((u) => `(${u})`).join(t);
454
1099
  }
455
- const Jn = /\b\B/, hn = "[a-zA-Z]\\w*", Qe = "[a-zA-Z_]\\w*", bn = "\\b\\d+(\\.\\d+)?", En = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", _n = "\\b(0b[01]+)", et = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", nt = (e = {}) => {
456
- const n = /^#![ ]*\//;
457
- return e.binary && (e.begin = ie(
458
- n,
1100
+ const nt = /\b\B/, pn = "[a-zA-Z]\\w*", Ye = "[a-zA-Z_]\\w*", bn = "\\b\\d+(\\.\\d+)?", _n = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", En = "\\b(0b[01]+)", tt = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", rt = (e = {}) => {
1101
+ const t = /^#![ ]*\//;
1102
+ return e.binary && (e.begin = ce(
1103
+ t,
459
1104
  /.*\b/,
460
1105
  e.binary,
461
1106
  /\b.*/
462
- )), ne({
1107
+ )), ae({
463
1108
  scope: "meta",
464
- begin: n,
1109
+ begin: t,
465
1110
  end: /$/,
466
1111
  relevance: 0,
467
1112
  /** @type {ModeCallback} */
468
- "on:begin": (t, s) => {
469
- t.index !== 0 && s.ignoreMatch();
1113
+ "on:begin": (l, u) => {
1114
+ l.index !== 0 && u.ignoreMatch();
470
1115
  }
471
1116
  }, e);
472
- }, _e = {
1117
+ }, ve = {
473
1118
  begin: "\\\\[\\s\\S]",
474
1119
  relevance: 0
475
- }, tt = {
1120
+ }, it = {
476
1121
  scope: "string",
477
1122
  begin: "'",
478
1123
  end: "'",
479
1124
  illegal: "\\n",
480
- contains: [_e]
1125
+ contains: [ve]
481
1126
  }, st = {
482
1127
  scope: "string",
483
1128
  begin: '"',
484
1129
  end: '"',
485
1130
  illegal: "\\n",
486
- contains: [_e]
487
- }, it = {
1131
+ contains: [ve]
1132
+ }, at = {
488
1133
  begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
489
- }, Ce = function(e, n, t = {}) {
490
- const s = ne(
1134
+ }, ke = function(e, t, l = {}) {
1135
+ const u = ae(
491
1136
  {
492
1137
  scope: "comment",
493
1138
  begin: e,
494
- end: n,
1139
+ end: t,
495
1140
  contains: []
496
1141
  },
497
- t
1142
+ l
498
1143
  );
499
- s.contains.push({
1144
+ u.contains.push({
500
1145
  scope: "doctag",
501
1146
  // hack to avoid the space from being included. the space is necessary to
502
1147
  // match here to prevent the plain text rule below from gobbling up doctags
@@ -505,7 +1150,7 @@ const Jn = /\b\B/, hn = "[a-zA-Z]\\w*", Qe = "[a-zA-Z_]\\w*", bn = "\\b\\d+(\\.\
505
1150
  excludeBegin: !0,
506
1151
  relevance: 0
507
1152
  });
508
- const o = Ye(
1153
+ const h = Qe(
509
1154
  // list of common 1 and 2 letter words in English
510
1155
  "I",
511
1156
  "a",
@@ -526,7 +1171,7 @@ const Jn = /\b\B/, hn = "[a-zA-Z]\\w*", Qe = "[a-zA-Z_]\\w*", bn = "\\b\\d+(\\.\
526
1171
  /[A-Za-z][a-z]{2,}/
527
1172
  // allow capitalized words at beginning of sentences
528
1173
  );
529
- return s.contains.push(
1174
+ return u.contains.push(
530
1175
  {
531
1176
  // TODO: how to include ", (, ) without breaking grammars that use these for
532
1177
  // comment delimiters?
@@ -541,30 +1186,30 @@ const Jn = /\b\B/, hn = "[a-zA-Z]\\w*", Qe = "[a-zA-Z_]\\w*", bn = "\\b\\d+(\\.\
541
1186
  //
542
1187
  // for a visual example please see:
543
1188
  // https://github.com/highlightjs/highlight.js/issues/2827
544
- begin: ie(
1189
+ begin: ce(
545
1190
  /[ ]+/,
546
1191
  // necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
547
1192
  "(",
548
- o,
1193
+ h,
549
1194
  /[.]?[:]?([.][ ]|[ ])/,
550
1195
  "){3}"
551
1196
  )
552
1197
  // look for 3 words in a row
553
1198
  }
554
- ), s;
555
- }, rt = Ce("//", "$"), at = Ce("/\\*", "\\*/"), ot = Ce("#", "$"), ct = {
1199
+ ), u;
1200
+ }, ot = ke("//", "$"), lt = ke("/\\*", "\\*/"), ct = ke("#", "$"), ut = {
556
1201
  scope: "number",
557
1202
  begin: bn,
558
1203
  relevance: 0
559
- }, lt = {
1204
+ }, ft = {
560
1205
  scope: "number",
561
- begin: En,
1206
+ begin: _n,
562
1207
  relevance: 0
563
- }, ut = {
1208
+ }, gt = {
564
1209
  scope: "number",
565
- begin: _n,
1210
+ begin: En,
566
1211
  relevance: 0
567
- }, ft = {
1212
+ }, ht = {
568
1213
  // this outer rule makes sure we actually have a WHOLE regex and not simply
569
1214
  // an expression such as:
570
1215
  //
@@ -578,106 +1223,106 @@ const Jn = /\b\B/, hn = "[a-zA-Z]\\w*", Qe = "[a-zA-Z_]\\w*", bn = "\\b\\d+(\\.\
578
1223
  end: /\/[gimuy]*/,
579
1224
  illegal: /\n/,
580
1225
  contains: [
581
- _e,
1226
+ ve,
582
1227
  {
583
1228
  begin: /\[/,
584
1229
  end: /\]/,
585
1230
  relevance: 0,
586
- contains: [_e]
1231
+ contains: [ve]
587
1232
  }
588
1233
  ]
589
1234
  }]
590
1235
  }, dt = {
591
1236
  scope: "title",
592
- begin: hn,
1237
+ begin: pn,
593
1238
  relevance: 0
594
- }, gt = {
1239
+ }, pt = {
595
1240
  scope: "title",
596
- begin: Qe,
1241
+ begin: Ye,
597
1242
  relevance: 0
598
- }, pt = {
1243
+ }, bt = {
599
1244
  // excludes method names from keyword processing
600
- begin: "\\.\\s*" + Qe,
1245
+ begin: "\\.\\s*" + Ye,
601
1246
  relevance: 0
602
- }, ht = function(e) {
1247
+ }, _t = function(e) {
603
1248
  return Object.assign(
604
1249
  e,
605
1250
  {
606
1251
  /** @type {ModeCallback} */
607
- "on:begin": (n, t) => {
608
- t.data._beginMatch = n[1];
1252
+ "on:begin": (t, l) => {
1253
+ l.data._beginMatch = t[1];
609
1254
  },
610
1255
  /** @type {ModeCallback} */
611
- "on:end": (n, t) => {
612
- t.data._beginMatch !== n[1] && t.ignoreMatch();
1256
+ "on:end": (t, l) => {
1257
+ l.data._beginMatch !== t[1] && l.ignoreMatch();
613
1258
  }
614
1259
  }
615
1260
  );
616
1261
  };
617
- var Se = /* @__PURE__ */ Object.freeze({
1262
+ var De = /* @__PURE__ */ Object.freeze({
618
1263
  __proto__: null,
619
- MATCH_NOTHING_RE: Jn,
620
- IDENT_RE: hn,
621
- UNDERSCORE_IDENT_RE: Qe,
1264
+ MATCH_NOTHING_RE: nt,
1265
+ IDENT_RE: pn,
1266
+ UNDERSCORE_IDENT_RE: Ye,
622
1267
  NUMBER_RE: bn,
623
- C_NUMBER_RE: En,
624
- BINARY_NUMBER_RE: _n,
625
- RE_STARTERS_RE: et,
626
- SHEBANG: nt,
627
- BACKSLASH_ESCAPE: _e,
628
- APOS_STRING_MODE: tt,
1268
+ C_NUMBER_RE: _n,
1269
+ BINARY_NUMBER_RE: En,
1270
+ RE_STARTERS_RE: tt,
1271
+ SHEBANG: rt,
1272
+ BACKSLASH_ESCAPE: ve,
1273
+ APOS_STRING_MODE: it,
629
1274
  QUOTE_STRING_MODE: st,
630
- PHRASAL_WORDS_MODE: it,
631
- COMMENT: Ce,
632
- C_LINE_COMMENT_MODE: rt,
633
- C_BLOCK_COMMENT_MODE: at,
634
- HASH_COMMENT_MODE: ot,
635
- NUMBER_MODE: ct,
636
- C_NUMBER_MODE: lt,
637
- BINARY_NUMBER_MODE: ut,
638
- REGEXP_MODE: ft,
1275
+ PHRASAL_WORDS_MODE: at,
1276
+ COMMENT: ke,
1277
+ C_LINE_COMMENT_MODE: ot,
1278
+ C_BLOCK_COMMENT_MODE: lt,
1279
+ HASH_COMMENT_MODE: ct,
1280
+ NUMBER_MODE: ut,
1281
+ C_NUMBER_MODE: ft,
1282
+ BINARY_NUMBER_MODE: gt,
1283
+ REGEXP_MODE: ht,
639
1284
  TITLE_MODE: dt,
640
- UNDERSCORE_TITLE_MODE: gt,
641
- METHOD_GUARD: pt,
642
- END_SAME_AS_BEGIN: ht
1285
+ UNDERSCORE_TITLE_MODE: pt,
1286
+ METHOD_GUARD: bt,
1287
+ END_SAME_AS_BEGIN: _t
643
1288
  });
644
- function bt(e, n) {
645
- e.input[e.index - 1] === "." && n.ignoreMatch();
1289
+ function Et(e, t) {
1290
+ e.input[e.index - 1] === "." && t.ignoreMatch();
646
1291
  }
647
- function Et(e, n) {
1292
+ function vt(e, t) {
648
1293
  e.className !== void 0 && (e.scope = e.className, delete e.className);
649
1294
  }
650
- function _t(e, n) {
651
- n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = bt, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
1295
+ function mt(e, t) {
1296
+ t && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = Et, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
652
1297
  }
653
- function mt(e, n) {
654
- Array.isArray(e.illegal) && (e.illegal = Ye(...e.illegal));
1298
+ function wt(e, t) {
1299
+ Array.isArray(e.illegal) && (e.illegal = Qe(...e.illegal));
655
1300
  }
656
- function yt(e, n) {
1301
+ function yt(e, t) {
657
1302
  if (e.match) {
658
1303
  if (e.begin || e.end)
659
1304
  throw new Error("begin & end are not supported with match");
660
1305
  e.begin = e.match, delete e.match;
661
1306
  }
662
1307
  }
663
- function Nt(e, n) {
1308
+ function Nt(e, t) {
664
1309
  e.relevance === void 0 && (e.relevance = 1);
665
1310
  }
666
- const At = (e, n) => {
1311
+ const Mt = (e, t) => {
667
1312
  if (!e.beforeMatch)
668
1313
  return;
669
1314
  if (e.starts)
670
1315
  throw new Error("beforeMatch cannot be used with starts");
671
- const t = Object.assign({}, e);
672
- Object.keys(e).forEach((s) => {
673
- delete e[s];
674
- }), e.keywords = t.keywords, e.begin = ie(t.beforeMatch, gn(t.begin)), e.starts = {
1316
+ const l = Object.assign({}, e);
1317
+ Object.keys(e).forEach((u) => {
1318
+ delete e[u];
1319
+ }), e.keywords = l.keywords, e.begin = ce(l.beforeMatch, hn(l.begin)), e.starts = {
675
1320
  relevance: 0,
676
1321
  contains: [
677
- Object.assign(t, { endsParent: !0 })
1322
+ Object.assign(l, { endsParent: !0 })
678
1323
  ]
679
- }, e.relevance = 0, delete t.beforeMatch;
680
- }, vt = [
1324
+ }, e.relevance = 0, delete l.beforeMatch;
1325
+ }, At = [
681
1326
  "of",
682
1327
  "and",
683
1328
  "for",
@@ -693,105 +1338,105 @@ const At = (e, n) => {
693
1338
  "value"
694
1339
  // common variable name
695
1340
  ], Tt = "keyword";
696
- function mn(e, n, t = Tt) {
697
- const s = /* @__PURE__ */ Object.create(null);
698
- return typeof e == "string" ? o(t, e.split(" ")) : Array.isArray(e) ? o(t, e) : Object.keys(e).forEach(function(l) {
1341
+ function vn(e, t, l = Tt) {
1342
+ const u = /* @__PURE__ */ Object.create(null);
1343
+ return typeof e == "string" ? h(l, e.split(" ")) : Array.isArray(e) ? h(l, e) : Object.keys(e).forEach(function(n) {
699
1344
  Object.assign(
700
- s,
701
- mn(e[l], n, l)
1345
+ u,
1346
+ vn(e[n], t, n)
702
1347
  );
703
- }), s;
704
- function o(l, i) {
705
- n && (i = i.map((r) => r.toLowerCase())), i.forEach(function(r) {
706
- const a = r.split("|");
707
- s[a[0]] = [l, wt(a[0], a[1])];
1348
+ }), u;
1349
+ function h(n, r) {
1350
+ t && (r = r.map((i) => i.toLowerCase())), r.forEach(function(i) {
1351
+ const s = i.split("|");
1352
+ u[s[0]] = [n, Dt(s[0], s[1])];
708
1353
  });
709
1354
  }
710
1355
  }
711
- function wt(e, n) {
712
- return n ? Number(n) : St(e) ? 0 : 1;
1356
+ function Dt(e, t) {
1357
+ return t ? Number(t) : St(e) ? 0 : 1;
713
1358
  }
714
1359
  function St(e) {
715
- return vt.includes(e.toLowerCase());
1360
+ return At.includes(e.toLowerCase());
716
1361
  }
717
- const rn = {}, se = (e) => {
1362
+ const sn = {}, le = (e) => {
718
1363
  console.error(e);
719
- }, an = (e, ...n) => {
720
- console.log(`WARN: ${e}`, ...n);
721
- }, ce = (e, n) => {
722
- rn[`${e}/${n}`] || (console.log(`Deprecated as of ${e}. ${n}`), rn[`${e}/${n}`] = !0);
723
- }, Le = new Error();
724
- function yn(e, n, { key: t }) {
725
- let s = 0;
726
- const o = e[t], l = {}, i = {};
727
- for (let r = 1; r <= n.length; r++)
728
- i[r + s] = o[r], l[r + s] = !0, s += pn(n[r - 1]);
729
- e[t] = i, e[t]._emit = l, e[t]._multi = !0;
1364
+ }, an = (e, ...t) => {
1365
+ console.log(`WARN: ${e}`, ...t);
1366
+ }, ue = (e, t) => {
1367
+ sn[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), sn[`${e}/${t}`] = !0);
1368
+ }, Ce = new Error();
1369
+ function mn(e, t, { key: l }) {
1370
+ let u = 0;
1371
+ const h = e[l], n = {}, r = {};
1372
+ for (let i = 1; i <= t.length; i++)
1373
+ r[i + u] = h[i], n[i + u] = !0, u += dn(t[i - 1]);
1374
+ e[l] = r, e[l]._emit = n, e[l]._multi = !0;
730
1375
  }
731
- function Mt(e) {
1376
+ function Rt(e) {
732
1377
  if (Array.isArray(e.begin)) {
733
1378
  if (e.skip || e.excludeBegin || e.returnBegin)
734
- throw se("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Le;
1379
+ throw le("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Ce;
735
1380
  if (typeof e.beginScope != "object" || e.beginScope === null)
736
- throw se("beginScope must be object"), Le;
737
- yn(e, e.begin, { key: "beginScope" }), e.begin = Ze(e.begin, { joinWith: "" });
1381
+ throw le("beginScope must be object"), Ce;
1382
+ mn(e, e.begin, { key: "beginScope" }), e.begin = Ze(e.begin, { joinWith: "" });
738
1383
  }
739
1384
  }
740
- function Rt(e) {
1385
+ function Ot(e) {
741
1386
  if (Array.isArray(e.end)) {
742
1387
  if (e.skip || e.excludeEnd || e.returnEnd)
743
- throw se("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Le;
1388
+ throw le("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Ce;
744
1389
  if (typeof e.endScope != "object" || e.endScope === null)
745
- throw se("endScope must be object"), Le;
746
- yn(e, e.end, { key: "endScope" }), e.end = Ze(e.end, { joinWith: "" });
1390
+ throw le("endScope must be object"), Ce;
1391
+ mn(e, e.end, { key: "endScope" }), e.end = Ze(e.end, { joinWith: "" });
747
1392
  }
748
1393
  }
749
- function xt(e) {
1394
+ function Lt(e) {
750
1395
  e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
751
1396
  }
752
- function Ot(e) {
753
- xt(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), Mt(e), Rt(e);
1397
+ function Ct(e) {
1398
+ Lt(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), Rt(e), Ot(e);
754
1399
  }
755
- function Lt(e) {
756
- function n(i, r) {
1400
+ function It(e) {
1401
+ function t(r, i) {
757
1402
  return new RegExp(
758
- Ee(i),
759
- "m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (r ? "g" : "")
1403
+ Ee(r),
1404
+ "m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (i ? "g" : "")
760
1405
  );
761
1406
  }
762
- class t {
1407
+ class l {
763
1408
  constructor() {
764
1409
  this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
765
1410
  }
766
1411
  // @ts-ignore
767
- addRule(r, a) {
768
- a.position = this.position++, this.matchIndexes[this.matchAt] = a, this.regexes.push([a, r]), this.matchAt += pn(r) + 1;
1412
+ addRule(i, s) {
1413
+ s.position = this.position++, this.matchIndexes[this.matchAt] = s, this.regexes.push([s, i]), this.matchAt += dn(i) + 1;
769
1414
  }
770
1415
  compile() {
771
1416
  this.regexes.length === 0 && (this.exec = () => null);
772
- const r = this.regexes.map((a) => a[1]);
773
- this.matcherRe = n(Ze(r, { joinWith: "|" }), !0), this.lastIndex = 0;
1417
+ const i = this.regexes.map((s) => s[1]);
1418
+ this.matcherRe = t(Ze(i, { joinWith: "|" }), !0), this.lastIndex = 0;
774
1419
  }
775
1420
  /** @param {string} s */
776
- exec(r) {
1421
+ exec(i) {
777
1422
  this.matcherRe.lastIndex = this.lastIndex;
778
- const a = this.matcherRe.exec(r);
779
- if (!a)
1423
+ const s = this.matcherRe.exec(i);
1424
+ if (!s)
780
1425
  return null;
781
- const c = a.findIndex((p, y) => y > 0 && p !== void 0), b = this.matchIndexes[c];
782
- return a.splice(0, c), Object.assign(a, b);
1426
+ const a = s.findIndex((c, f) => f > 0 && c !== void 0), o = this.matchIndexes[a];
1427
+ return s.splice(0, a), Object.assign(s, o);
783
1428
  }
784
1429
  }
785
- class s {
1430
+ class u {
786
1431
  constructor() {
787
1432
  this.rules = [], this.multiRegexes = [], this.count = 0, this.lastIndex = 0, this.regexIndex = 0;
788
1433
  }
789
1434
  // @ts-ignore
790
- getMatcher(r) {
791
- if (this.multiRegexes[r])
792
- return this.multiRegexes[r];
793
- const a = new t();
794
- return this.rules.slice(r).forEach(([c, b]) => a.addRule(c, b)), a.compile(), this.multiRegexes[r] = a, a;
1435
+ getMatcher(i) {
1436
+ if (this.multiRegexes[i])
1437
+ return this.multiRegexes[i];
1438
+ const s = new l();
1439
+ return this.rules.slice(i).forEach(([a, o]) => s.addRule(a, o)), s.compile(), this.multiRegexes[i] = s, s;
795
1440
  }
796
1441
  resumingScanAtSamePosition() {
797
1442
  return this.regexIndex !== 0;
@@ -800,87 +1445,87 @@ function Lt(e) {
800
1445
  this.regexIndex = 0;
801
1446
  }
802
1447
  // @ts-ignore
803
- addRule(r, a) {
804
- this.rules.push([r, a]), a.type === "begin" && this.count++;
1448
+ addRule(i, s) {
1449
+ this.rules.push([i, s]), s.type === "begin" && this.count++;
805
1450
  }
806
1451
  /** @param {string} s */
807
- exec(r) {
808
- const a = this.getMatcher(this.regexIndex);
809
- a.lastIndex = this.lastIndex;
810
- let c = a.exec(r);
811
- if (this.resumingScanAtSamePosition() && !(c && c.index === this.lastIndex)) {
812
- const b = this.getMatcher(0);
813
- b.lastIndex = this.lastIndex + 1, c = b.exec(r);
1452
+ exec(i) {
1453
+ const s = this.getMatcher(this.regexIndex);
1454
+ s.lastIndex = this.lastIndex;
1455
+ let a = s.exec(i);
1456
+ if (this.resumingScanAtSamePosition() && !(a && a.index === this.lastIndex)) {
1457
+ const o = this.getMatcher(0);
1458
+ o.lastIndex = this.lastIndex + 1, a = o.exec(i);
814
1459
  }
815
- return c && (this.regexIndex += c.position + 1, this.regexIndex === this.count && this.considerAll()), c;
1460
+ return a && (this.regexIndex += a.position + 1, this.regexIndex === this.count && this.considerAll()), a;
816
1461
  }
817
1462
  }
818
- function o(i) {
819
- const r = new s();
820
- return i.contains.forEach((a) => r.addRule(a.begin, { rule: a, type: "begin" })), i.terminatorEnd && r.addRule(i.terminatorEnd, { type: "end" }), i.illegal && r.addRule(i.illegal, { type: "illegal" }), r;
1463
+ function h(r) {
1464
+ const i = new u();
1465
+ 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;
821
1466
  }
822
- function l(i, r) {
823
- const a = (
1467
+ function n(r, i) {
1468
+ const s = (
824
1469
  /** @type CompiledMode */
825
- i
1470
+ r
826
1471
  );
827
- if (i.isCompiled)
828
- return a;
1472
+ if (r.isCompiled)
1473
+ return s;
829
1474
  [
830
- Et,
1475
+ vt,
831
1476
  // do this early so compiler extensions generally don't have to worry about
832
1477
  // the distinction between match/begin
833
1478
  yt,
834
- Ot,
835
- At
836
- ].forEach((b) => b(i, r)), e.compilerExtensions.forEach((b) => b(i, r)), i.__beforeBegin = null, [
837
- _t,
1479
+ Ct,
1480
+ Mt
1481
+ ].forEach((o) => o(r, i)), e.compilerExtensions.forEach((o) => o(r, i)), r.__beforeBegin = null, [
1482
+ mt,
838
1483
  // do this later so compiler extensions that come earlier have access to the
839
1484
  // raw array if they wanted to perhaps manipulate it, etc.
840
- mt,
1485
+ wt,
841
1486
  // default to 1 relevance if not specified
842
1487
  Nt
843
- ].forEach((b) => b(i, r)), i.isCompiled = !0;
844
- let c = null;
845
- return typeof i.keywords == "object" && i.keywords.$pattern && (i.keywords = Object.assign({}, i.keywords), c = i.keywords.$pattern, delete i.keywords.$pattern), c = c || /\w+/, i.keywords && (i.keywords = mn(i.keywords, e.case_insensitive)), a.keywordPatternRe = n(c, !0), r && (i.begin || (i.begin = /\B|\b/), a.beginRe = n(a.begin), !i.end && !i.endsWithParent && (i.end = /\B|\b/), i.end && (a.endRe = n(a.end)), a.terminatorEnd = Ee(a.end) || "", i.endsWithParent && r.terminatorEnd && (a.terminatorEnd += (i.end ? "|" : "") + r.terminatorEnd)), i.illegal && (a.illegalRe = n(
1488
+ ].forEach((o) => o(r, i)), r.isCompiled = !0;
1489
+ let a = null;
1490
+ return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), a = r.keywords.$pattern, delete r.keywords.$pattern), a = a || /\w+/, r.keywords && (r.keywords = vn(r.keywords, e.case_insensitive)), s.keywordPatternRe = t(a, !0), i && (r.begin || (r.begin = /\B|\b/), s.beginRe = t(s.begin), !r.end && !r.endsWithParent && (r.end = /\B|\b/), r.end && (s.endRe = t(s.end)), s.terminatorEnd = Ee(s.end) || "", r.endsWithParent && i.terminatorEnd && (s.terminatorEnd += (r.end ? "|" : "") + i.terminatorEnd)), r.illegal && (s.illegalRe = t(
846
1491
  /** @type {RegExp | string} */
847
- i.illegal
848
- )), i.contains || (i.contains = []), i.contains = [].concat(...i.contains.map(function(b) {
849
- return Dt(b === "self" ? i : b);
850
- })), i.contains.forEach(function(b) {
851
- l(
1492
+ r.illegal
1493
+ )), r.contains || (r.contains = []), r.contains = [].concat(...r.contains.map(function(o) {
1494
+ return kt(o === "self" ? r : o);
1495
+ })), r.contains.forEach(function(o) {
1496
+ n(
852
1497
  /** @type Mode */
853
- b,
854
- a
1498
+ o,
1499
+ s
855
1500
  );
856
- }), i.starts && l(i.starts, r), a.matcher = o(a), a;
1501
+ }), r.starts && n(r.starts, i), s.matcher = h(s), s;
857
1502
  }
858
1503
  if (e.compilerExtensions || (e.compilerExtensions = []), e.contains && e.contains.includes("self"))
859
1504
  throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
860
- return e.classNameAliases = ne(e.classNameAliases || {}), l(
1505
+ return e.classNameAliases = ae(e.classNameAliases || {}), n(
861
1506
  /** @type Mode */
862
1507
  e
863
1508
  );
864
1509
  }
865
- function Nn(e) {
866
- return e ? e.endsWithParent || Nn(e.starts) : !1;
1510
+ function wn(e) {
1511
+ return e ? e.endsWithParent || wn(e.starts) : !1;
867
1512
  }
868
- function Dt(e) {
869
- return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(n) {
870
- return ne(e, { variants: null }, n);
871
- })), e.cachedVariants ? e.cachedVariants : Nn(e) ? ne(e, { starts: e.starts ? ne(e.starts) : null }) : Object.isFrozen(e) ? ne(e) : e;
1513
+ function kt(e) {
1514
+ return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(t) {
1515
+ return ae(e, { variants: null }, t);
1516
+ })), e.cachedVariants ? e.cachedVariants : wn(e) ? ae(e, { starts: e.starts ? ae(e.starts) : null }) : Object.isFrozen(e) ? ae(e) : e;
872
1517
  }
873
- var Ct = "11.7.0";
874
- class It extends Error {
875
- constructor(n, t) {
876
- super(n), this.name = "HTMLInjectionError", this.html = t;
1518
+ var Bt = "11.7.0";
1519
+ class $t extends Error {
1520
+ constructor(t, l) {
1521
+ super(t), this.name = "HTMLInjectionError", this.html = l;
877
1522
  }
878
1523
  }
879
- const $e = dn, on = ne, cn = Symbol("nomatch"), kt = 7, Bt = function(e) {
880
- const n = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null), s = [];
881
- let o = !0;
882
- const l = "Could not find the language '{}', did you forget to load/include a language module?", i = { disableAutodetect: !0, name: "Plain text", contains: [] };
883
- let r = {
1524
+ const Pe = gn, on = ae, ln = Symbol("nomatch"), Ut = 7, Pt = function(e) {
1525
+ const t = /* @__PURE__ */ Object.create(null), l = /* @__PURE__ */ Object.create(null), u = [];
1526
+ let h = !0;
1527
+ const n = "Could not find the language '{}', did you forget to load/include a language module?", r = { disableAutodetect: !0, name: "Plain text", contains: [] };
1528
+ let i = {
884
1529
  ignoreUnescapedHTML: !1,
885
1530
  throwUnescapedHTML: !1,
886
1531
  noHighlightRe: /^(no-?highlight)$/i,
@@ -890,398 +1535,398 @@ const $e = dn, on = ne, cn = Symbol("nomatch"), kt = 7, Bt = function(e) {
890
1535
  languages: null,
891
1536
  // beta configuration options, subject to change, welcome to discuss
892
1537
  // https://github.com/highlightjs/highlight.js/issues/1086
893
- __emitter: Zn
1538
+ __emitter: Xn
894
1539
  };
895
- function a(u) {
896
- return r.noHighlightRe.test(u);
1540
+ function s(_) {
1541
+ return i.noHighlightRe.test(_);
897
1542
  }
898
- function c(u) {
899
- let h = u.className + " ";
900
- h += u.parentNode ? u.parentNode.className : "";
901
- const v = r.languageDetectRe.exec(h);
902
- if (v) {
903
- const x = U(v[1]);
904
- return x || (an(l.replace("{}", v[1])), an("Falling back to no-highlight mode for this block.", u)), x ? v[1] : "no-highlight";
1543
+ function a(_) {
1544
+ let M = _.className + " ";
1545
+ M += _.parentNode ? _.parentNode.className : "";
1546
+ const L = i.languageDetectRe.exec(M);
1547
+ if (L) {
1548
+ const k = R(L[1]);
1549
+ return k || (an(n.replace("{}", L[1])), an("Falling back to no-highlight mode for this block.", _)), k ? L[1] : "no-highlight";
905
1550
  }
906
- return h.split(/\s+/).find((x) => a(x) || U(x));
1551
+ return M.split(/\s+/).find((k) => s(k) || R(k));
907
1552
  }
908
- function b(u, h, v) {
909
- let x = "", k = "";
910
- typeof h == "object" ? (x = u, v = h.ignoreIllegals, k = h.language) : (ce("10.7.0", "highlight(lang, code, ...args) has been deprecated."), ce("10.7.0", `Please use highlight(code, options) instead.
911
- https://github.com/highlightjs/highlight.js/issues/2277`), k = u, x = h), v === void 0 && (v = !0);
912
- const F = {
913
- code: x,
914
- language: k
1553
+ function o(_, M, L) {
1554
+ let k = "", H = "";
1555
+ typeof M == "object" ? (k = _, L = M.ignoreIllegals, H = M.language) : (ue("10.7.0", "highlight(lang, code, ...args) has been deprecated."), ue("10.7.0", `Please use highlight(code, options) instead.
1556
+ https://github.com/highlightjs/highlight.js/issues/2277`), H = _, k = M), L === void 0 && (L = !0);
1557
+ const Y = {
1558
+ code: k,
1559
+ language: H
915
1560
  };
916
- oe("before:highlight", F);
917
- const Q = F.result ? F.result : p(F.language, F.code, v);
918
- return Q.code = F.code, oe("after:highlight", Q), Q;
1561
+ Q("before:highlight", Y);
1562
+ const q = Y.result ? Y.result : c(Y.language, Y.code, L);
1563
+ return q.code = Y.code, Q("after:highlight", q), q;
919
1564
  }
920
- function p(u, h, v, x) {
921
- const k = /* @__PURE__ */ Object.create(null);
922
- function F(f, E) {
923
- return f.keywords[E];
1565
+ function c(_, M, L, k) {
1566
+ const H = /* @__PURE__ */ Object.create(null);
1567
+ function Y(w, T) {
1568
+ return w.keywords[T];
924
1569
  }
925
- function Q() {
926
- if (!A.keywords) {
927
- P.addText(I);
1570
+ function q() {
1571
+ if (!O.keywords) {
1572
+ K.addText(x);
928
1573
  return;
929
1574
  }
930
- let f = 0;
931
- A.keywordPatternRe.lastIndex = 0;
932
- let E = A.keywordPatternRe.exec(I), w = "";
933
- for (; E; ) {
934
- w += I.substring(f, E.index);
935
- const L = ee.case_insensitive ? E[0].toLowerCase() : E[0], z = F(A, L);
936
- if (z) {
937
- const [q, Dn] = z;
938
- if (P.addText(w), w = "", k[L] = (k[L] || 0) + 1, k[L] <= kt && (Te += Dn), q.startsWith("_"))
939
- w += E[0];
1575
+ let w = 0;
1576
+ O.keywordPatternRe.lastIndex = 0;
1577
+ let T = O.keywordPatternRe.exec(x), C = "";
1578
+ for (; T; ) {
1579
+ C += x.substring(w, T.index);
1580
+ const B = se.case_insensitive ? T[0].toLowerCase() : T[0], Z = Y(O, B);
1581
+ if (Z) {
1582
+ const [ee, In] = Z;
1583
+ if (K.addText(C), C = "", H[B] = (H[B] || 0) + 1, H[B] <= Ut && (Ae += In), ee.startsWith("_"))
1584
+ C += T[0];
940
1585
  else {
941
- const Cn = ee.classNameAliases[q] || q;
942
- P.addKeyword(E[0], Cn);
1586
+ const kn = se.classNameAliases[ee] || ee;
1587
+ K.addKeyword(T[0], kn);
943
1588
  }
944
1589
  } else
945
- w += E[0];
946
- f = A.keywordPatternRe.lastIndex, E = A.keywordPatternRe.exec(I);
1590
+ C += T[0];
1591
+ w = O.keywordPatternRe.lastIndex, T = O.keywordPatternRe.exec(x);
947
1592
  }
948
- w += I.substring(f), P.addText(w);
1593
+ C += x.substring(w), K.addText(C);
949
1594
  }
950
- function Ae() {
951
- if (I === "")
1595
+ function Ne() {
1596
+ if (x === "")
952
1597
  return;
953
- let f = null;
954
- if (typeof A.subLanguage == "string") {
955
- if (!n[A.subLanguage]) {
956
- P.addText(I);
1598
+ let w = null;
1599
+ if (typeof O.subLanguage == "string") {
1600
+ if (!t[O.subLanguage]) {
1601
+ K.addText(x);
957
1602
  return;
958
1603
  }
959
- f = p(A.subLanguage, I, !0, je[A.subLanguage]), je[A.subLanguage] = /** @type {CompiledMode} */
960
- f._top;
1604
+ w = c(O.subLanguage, x, !0, Je[O.subLanguage]), Je[O.subLanguage] = /** @type {CompiledMode} */
1605
+ w._top;
961
1606
  } else
962
- f = m(I, A.subLanguage.length ? A.subLanguage : null);
963
- A.relevance > 0 && (Te += f.relevance), P.addSublanguage(f._emitter, f.language);
1607
+ w = g(x, O.subLanguage.length ? O.subLanguage : null);
1608
+ O.relevance > 0 && (Ae += w.relevance), K.addSublanguage(w._emitter, w.language);
964
1609
  }
965
- function G() {
966
- A.subLanguage != null ? Ae() : Q(), I = "";
1610
+ function X() {
1611
+ O.subLanguage != null ? Ne() : q(), x = "";
967
1612
  }
968
- function J(f, E) {
969
- let w = 1;
970
- const L = E.length - 1;
971
- for (; w <= L; ) {
972
- if (!f._emit[w]) {
973
- w++;
1613
+ function ie(w, T) {
1614
+ let C = 1;
1615
+ const B = T.length - 1;
1616
+ for (; C <= B; ) {
1617
+ if (!w._emit[C]) {
1618
+ C++;
974
1619
  continue;
975
1620
  }
976
- const z = ee.classNameAliases[f[w]] || f[w], q = E[w];
977
- z ? P.addKeyword(q, z) : (I = q, Q(), I = ""), w++;
1621
+ const Z = se.classNameAliases[w[C]] || w[C], ee = T[C];
1622
+ Z ? K.addKeyword(ee, Z) : (x = ee, q(), x = ""), C++;
978
1623
  }
979
1624
  }
980
- function qe(f, E) {
981
- return f.scope && typeof f.scope == "string" && P.openNode(ee.classNameAliases[f.scope] || f.scope), f.beginScope && (f.beginScope._wrap ? (P.addKeyword(I, ee.classNameAliases[f.beginScope._wrap] || f.beginScope._wrap), I = "") : f.beginScope._multi && (J(f.beginScope, E), I = "")), A = Object.create(f, { parent: { value: A } }), A;
1625
+ function Xe(w, T) {
1626
+ return w.scope && typeof w.scope == "string" && K.openNode(se.classNameAliases[w.scope] || w.scope), w.beginScope && (w.beginScope._wrap ? (K.addKeyword(x, se.classNameAliases[w.beginScope._wrap] || w.beginScope._wrap), x = "") : w.beginScope._multi && (ie(w.beginScope, T), x = "")), O = Object.create(w, { parent: { value: O } }), O;
982
1627
  }
983
- function Xe(f, E, w) {
984
- let L = Vn(f.endRe, w);
985
- if (L) {
986
- if (f["on:end"]) {
987
- const z = new nn(f);
988
- f["on:end"](E, z), z.isMatchIgnored && (L = !1);
1628
+ function Ve(w, T, C) {
1629
+ let B = qn(w.endRe, C);
1630
+ if (B) {
1631
+ if (w["on:end"]) {
1632
+ const Z = new nn(w);
1633
+ w["on:end"](T, Z), Z.isMatchIgnored && (B = !1);
989
1634
  }
990
- if (L) {
991
- for (; f.endsParent && f.parent; )
992
- f = f.parent;
993
- return f;
1635
+ if (B) {
1636
+ for (; w.endsParent && w.parent; )
1637
+ w = w.parent;
1638
+ return w;
994
1639
  }
995
1640
  }
996
- if (f.endsWithParent)
997
- return Xe(f.parent, E, w);
1641
+ if (w.endsWithParent)
1642
+ return Ve(w.parent, T, C);
998
1643
  }
999
- function Mn(f) {
1000
- return A.matcher.regexIndex === 0 ? (I += f[0], 1) : (Be = !0, 0);
1644
+ function Sn(w) {
1645
+ return O.matcher.regexIndex === 0 ? (x += w[0], 1) : (Ue = !0, 0);
1001
1646
  }
1002
- function Rn(f) {
1003
- const E = f[0], w = f.rule, L = new nn(w), z = [w.__beforeBegin, w["on:begin"]];
1004
- for (const q of z)
1005
- if (q && (q(f, L), L.isMatchIgnored))
1006
- return Mn(E);
1007
- return w.skip ? I += E : (w.excludeBegin && (I += E), G(), !w.returnBegin && !w.excludeBegin && (I = E)), qe(w, f), w.returnBegin ? 0 : E.length;
1647
+ function Rn(w) {
1648
+ const T = w[0], C = w.rule, B = new nn(C), Z = [C.__beforeBegin, C["on:begin"]];
1649
+ for (const ee of Z)
1650
+ if (ee && (ee(w, B), B.isMatchIgnored))
1651
+ return Sn(T);
1652
+ return C.skip ? x += T : (C.excludeBegin && (x += T), X(), !C.returnBegin && !C.excludeBegin && (x = T)), Xe(C, w), C.returnBegin ? 0 : T.length;
1008
1653
  }
1009
- function xn(f) {
1010
- const E = f[0], w = h.substring(f.index), L = Xe(A, f, w);
1011
- if (!L)
1012
- return cn;
1013
- const z = A;
1014
- A.endScope && A.endScope._wrap ? (G(), P.addKeyword(E, A.endScope._wrap)) : A.endScope && A.endScope._multi ? (G(), J(A.endScope, f)) : z.skip ? I += E : (z.returnEnd || z.excludeEnd || (I += E), G(), z.excludeEnd && (I = E));
1654
+ function On(w) {
1655
+ const T = w[0], C = M.substring(w.index), B = Ve(O, w, C);
1656
+ if (!B)
1657
+ return ln;
1658
+ const Z = O;
1659
+ O.endScope && O.endScope._wrap ? (X(), K.addKeyword(T, O.endScope._wrap)) : O.endScope && O.endScope._multi ? (X(), ie(O.endScope, w)) : Z.skip ? x += T : (Z.returnEnd || Z.excludeEnd || (x += T), X(), Z.excludeEnd && (x = T));
1015
1660
  do
1016
- A.scope && P.closeNode(), !A.skip && !A.subLanguage && (Te += A.relevance), A = A.parent;
1017
- while (A !== L.parent);
1018
- return L.starts && qe(L.starts, f), z.returnEnd ? 0 : E.length;
1661
+ O.scope && K.closeNode(), !O.skip && !O.subLanguage && (Ae += O.relevance), O = O.parent;
1662
+ while (O !== B.parent);
1663
+ return B.starts && Xe(B.starts, w), Z.returnEnd ? 0 : T.length;
1019
1664
  }
1020
- function On() {
1021
- const f = [];
1022
- for (let E = A; E !== ee; E = E.parent)
1023
- E.scope && f.unshift(E.scope);
1024
- f.forEach((E) => P.openNode(E));
1665
+ function Ln() {
1666
+ const w = [];
1667
+ for (let T = O; T !== se; T = T.parent)
1668
+ T.scope && w.unshift(T.scope);
1669
+ w.forEach((T) => K.openNode(T));
1025
1670
  }
1026
- let ve = {};
1027
- function Ve(f, E) {
1028
- const w = E && E[0];
1029
- if (I += f, w == null)
1030
- return G(), 0;
1031
- if (ve.type === "begin" && E.type === "end" && ve.index === E.index && w === "") {
1032
- if (I += h.slice(E.index, E.index + 1), !o) {
1033
- const L = new Error(`0 width match regex (${u})`);
1034
- throw L.languageName = u, L.badRule = ve.rule, L;
1671
+ let Me = {};
1672
+ function je(w, T) {
1673
+ const C = T && T[0];
1674
+ if (x += w, C == null)
1675
+ return X(), 0;
1676
+ if (Me.type === "begin" && T.type === "end" && Me.index === T.index && C === "") {
1677
+ if (x += M.slice(T.index, T.index + 1), !h) {
1678
+ const B = new Error(`0 width match regex (${_})`);
1679
+ throw B.languageName = _, B.badRule = Me.rule, B;
1035
1680
  }
1036
1681
  return 1;
1037
1682
  }
1038
- if (ve = E, E.type === "begin")
1039
- return Rn(E);
1040
- if (E.type === "illegal" && !v) {
1041
- const L = new Error('Illegal lexeme "' + w + '" for mode "' + (A.scope || "<unnamed>") + '"');
1042
- throw L.mode = A, L;
1043
- } else if (E.type === "end") {
1044
- const L = xn(E);
1045
- if (L !== cn)
1046
- return L;
1683
+ if (Me = T, T.type === "begin")
1684
+ return Rn(T);
1685
+ if (T.type === "illegal" && !L) {
1686
+ const B = new Error('Illegal lexeme "' + C + '" for mode "' + (O.scope || "<unnamed>") + '"');
1687
+ throw B.mode = O, B;
1688
+ } else if (T.type === "end") {
1689
+ const B = On(T);
1690
+ if (B !== ln)
1691
+ return B;
1047
1692
  }
1048
- if (E.type === "illegal" && w === "")
1693
+ if (T.type === "illegal" && C === "")
1049
1694
  return 1;
1050
- if (ke > 1e5 && ke > E.index * 3)
1695
+ if ($e > 1e5 && $e > T.index * 3)
1051
1696
  throw new Error("potential infinite loop, way more iterations than matches");
1052
- return I += w, w.length;
1697
+ return x += C, C.length;
1053
1698
  }
1054
- const ee = U(u);
1055
- if (!ee)
1056
- throw se(l.replace("{}", u)), new Error('Unknown language: "' + u + '"');
1057
- const Ln = Lt(ee);
1058
- let Ie = "", A = x || Ln;
1059
- const je = {}, P = new r.__emitter(r);
1060
- On();
1061
- let I = "", Te = 0, te = 0, ke = 0, Be = !1;
1699
+ const se = R(_);
1700
+ if (!se)
1701
+ throw le(n.replace("{}", _)), new Error('Unknown language: "' + _ + '"');
1702
+ const Cn = It(se);
1703
+ let Be = "", O = k || Cn;
1704
+ const Je = {}, K = new i.__emitter(i);
1705
+ Ln();
1706
+ let x = "", Ae = 0, oe = 0, $e = 0, Ue = !1;
1062
1707
  try {
1063
- for (A.matcher.considerAll(); ; ) {
1064
- ke++, Be ? Be = !1 : A.matcher.considerAll(), A.matcher.lastIndex = te;
1065
- const f = A.matcher.exec(h);
1066
- if (!f)
1708
+ for (O.matcher.considerAll(); ; ) {
1709
+ $e++, Ue ? Ue = !1 : O.matcher.considerAll(), O.matcher.lastIndex = oe;
1710
+ const w = O.matcher.exec(M);
1711
+ if (!w)
1067
1712
  break;
1068
- const E = h.substring(te, f.index), w = Ve(E, f);
1069
- te = f.index + w;
1713
+ const T = M.substring(oe, w.index), C = je(T, w);
1714
+ oe = w.index + C;
1070
1715
  }
1071
- return Ve(h.substring(te)), P.closeAllNodes(), P.finalize(), Ie = P.toHTML(), {
1072
- language: u,
1073
- value: Ie,
1074
- relevance: Te,
1716
+ return je(M.substring(oe)), K.closeAllNodes(), K.finalize(), Be = K.toHTML(), {
1717
+ language: _,
1718
+ value: Be,
1719
+ relevance: Ae,
1075
1720
  illegal: !1,
1076
- _emitter: P,
1077
- _top: A
1721
+ _emitter: K,
1722
+ _top: O
1078
1723
  };
1079
- } catch (f) {
1080
- if (f.message && f.message.includes("Illegal"))
1724
+ } catch (w) {
1725
+ if (w.message && w.message.includes("Illegal"))
1081
1726
  return {
1082
- language: u,
1083
- value: $e(h),
1727
+ language: _,
1728
+ value: Pe(M),
1084
1729
  illegal: !0,
1085
1730
  relevance: 0,
1086
1731
  _illegalBy: {
1087
- message: f.message,
1088
- index: te,
1089
- context: h.slice(te - 100, te + 100),
1090
- mode: f.mode,
1091
- resultSoFar: Ie
1732
+ message: w.message,
1733
+ index: oe,
1734
+ context: M.slice(oe - 100, oe + 100),
1735
+ mode: w.mode,
1736
+ resultSoFar: Be
1092
1737
  },
1093
- _emitter: P
1738
+ _emitter: K
1094
1739
  };
1095
- if (o)
1740
+ if (h)
1096
1741
  return {
1097
- language: u,
1098
- value: $e(h),
1742
+ language: _,
1743
+ value: Pe(M),
1099
1744
  illegal: !1,
1100
1745
  relevance: 0,
1101
- errorRaised: f,
1102
- _emitter: P,
1103
- _top: A
1746
+ errorRaised: w,
1747
+ _emitter: K,
1748
+ _top: O
1104
1749
  };
1105
- throw f;
1750
+ throw w;
1106
1751
  }
1107
1752
  }
1108
- function y(u) {
1109
- const h = {
1110
- value: $e(u),
1753
+ function f(_) {
1754
+ const M = {
1755
+ value: Pe(_),
1111
1756
  illegal: !1,
1112
1757
  relevance: 0,
1113
- _top: i,
1114
- _emitter: new r.__emitter(r)
1758
+ _top: r,
1759
+ _emitter: new i.__emitter(i)
1115
1760
  };
1116
- return h._emitter.addText(u), h;
1761
+ return M._emitter.addText(_), M;
1117
1762
  }
1118
- function m(u, h) {
1119
- h = h || r.languages || Object.keys(n);
1120
- const v = y(u), x = h.filter(U).filter(ae).map(
1121
- (G) => p(G, u, !1)
1763
+ function g(_, M) {
1764
+ M = M || i.languages || Object.keys(t);
1765
+ const L = f(_), k = M.filter(R).filter(P).map(
1766
+ (X) => c(X, _, !1)
1122
1767
  );
1123
- x.unshift(v);
1124
- const k = x.sort((G, J) => {
1125
- if (G.relevance !== J.relevance)
1126
- return J.relevance - G.relevance;
1127
- if (G.language && J.language) {
1128
- if (U(G.language).supersetOf === J.language)
1768
+ k.unshift(L);
1769
+ const H = k.sort((X, ie) => {
1770
+ if (X.relevance !== ie.relevance)
1771
+ return ie.relevance - X.relevance;
1772
+ if (X.language && ie.language) {
1773
+ if (R(X.language).supersetOf === ie.language)
1129
1774
  return 1;
1130
- if (U(J.language).supersetOf === G.language)
1775
+ if (R(ie.language).supersetOf === X.language)
1131
1776
  return -1;
1132
1777
  }
1133
1778
  return 0;
1134
- }), [F, Q] = k, Ae = F;
1135
- return Ae.secondBest = Q, Ae;
1779
+ }), [Y, q] = H, Ne = Y;
1780
+ return Ne.secondBest = q, Ne;
1136
1781
  }
1137
- function N(u, h, v) {
1138
- const x = h && t[h] || v;
1139
- u.classList.add("hljs"), u.classList.add(`language-${x}`);
1782
+ function p(_, M, L) {
1783
+ const k = M && l[M] || L;
1784
+ _.classList.add("hljs"), _.classList.add(`language-${k}`);
1140
1785
  }
1141
- function g(u) {
1142
- let h = null;
1143
- const v = c(u);
1144
- if (a(v))
1786
+ function d(_) {
1787
+ let M = null;
1788
+ const L = a(_);
1789
+ if (s(L))
1145
1790
  return;
1146
- if (oe(
1791
+ if (Q(
1147
1792
  "before:highlightElement",
1148
- { el: u, language: v }
1149
- ), u.children.length > 0 && (r.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(u)), r.throwUnescapedHTML))
1150
- throw new It(
1793
+ { el: _, language: L }
1794
+ ), _.children.length > 0 && (i.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(_)), i.throwUnescapedHTML))
1795
+ throw new $t(
1151
1796
  "One of your code blocks includes unescaped HTML.",
1152
- u.innerHTML
1797
+ _.innerHTML
1153
1798
  );
1154
- h = u;
1155
- const x = h.textContent, k = v ? b(x, { language: v, ignoreIllegals: !0 }) : m(x);
1156
- u.innerHTML = k.value, N(u, v, k.language), u.result = {
1157
- language: k.language,
1799
+ M = _;
1800
+ const k = M.textContent, H = L ? o(k, { language: L, ignoreIllegals: !0 }) : g(k);
1801
+ _.innerHTML = H.value, p(_, L, H.language), _.result = {
1802
+ language: H.language,
1158
1803
  // TODO: remove with version 11.0
1159
- re: k.relevance,
1160
- relevance: k.relevance
1161
- }, k.secondBest && (u.secondBest = {
1162
- language: k.secondBest.language,
1163
- relevance: k.secondBest.relevance
1164
- }), oe("after:highlightElement", { el: u, result: k, text: x });
1804
+ re: H.relevance,
1805
+ relevance: H.relevance
1806
+ }, H.secondBest && (_.secondBest = {
1807
+ language: H.secondBest.language,
1808
+ relevance: H.secondBest.relevance
1809
+ }), Q("after:highlightElement", { el: _, result: H, text: k });
1165
1810
  }
1166
- function _(u) {
1167
- r = on(r, u);
1811
+ function b(_) {
1812
+ i = on(i, _);
1168
1813
  }
1169
- const S = () => {
1170
- T(), ce("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
1814
+ const E = () => {
1815
+ m(), ue("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
1171
1816
  };
1172
- function M() {
1173
- T(), ce("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
1817
+ function v() {
1818
+ m(), ue("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
1174
1819
  }
1175
- let O = !1;
1176
- function T() {
1820
+ let y = !1;
1821
+ function m() {
1177
1822
  if (document.readyState === "loading") {
1178
- O = !0;
1823
+ y = !0;
1179
1824
  return;
1180
1825
  }
1181
- document.querySelectorAll(r.cssSelector).forEach(g);
1826
+ document.querySelectorAll(i.cssSelector).forEach(d);
1182
1827
  }
1183
1828
  function D() {
1184
- O && T();
1829
+ y && m();
1185
1830
  }
1186
1831
  typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", D, !1);
1187
- function $(u, h) {
1188
- let v = null;
1832
+ function S(_, M) {
1833
+ let L = null;
1189
1834
  try {
1190
- v = h(e);
1191
- } catch (x) {
1192
- if (se("Language definition for '{}' could not be registered.".replace("{}", u)), o)
1193
- se(x);
1835
+ L = M(e);
1836
+ } catch (k) {
1837
+ if (le("Language definition for '{}' could not be registered.".replace("{}", _)), h)
1838
+ le(k);
1194
1839
  else
1195
- throw x;
1196
- v = i;
1840
+ throw k;
1841
+ L = r;
1197
1842
  }
1198
- v.name || (v.name = u), n[u] = v, v.rawDefinition = h.bind(null, e), v.aliases && re(v.aliases, { languageName: u });
1843
+ L.name || (L.name = _), t[_] = L, L.rawDefinition = M.bind(null, e), L.aliases && z(L.aliases, { languageName: _ });
1199
1844
  }
1200
- function R(u) {
1201
- delete n[u];
1202
- for (const h of Object.keys(t))
1203
- t[h] === u && delete t[h];
1845
+ function A(_) {
1846
+ delete t[_];
1847
+ for (const M of Object.keys(l))
1848
+ l[M] === _ && delete l[M];
1204
1849
  }
1205
- function W() {
1206
- return Object.keys(n);
1850
+ function I() {
1851
+ return Object.keys(t);
1207
1852
  }
1208
- function U(u) {
1209
- return u = (u || "").toLowerCase(), n[u] || n[t[u]];
1853
+ function R(_) {
1854
+ return _ = (_ || "").toLowerCase(), t[_] || t[l[_]];
1210
1855
  }
1211
- function re(u, { languageName: h }) {
1212
- typeof u == "string" && (u = [u]), u.forEach((v) => {
1213
- t[v.toLowerCase()] = h;
1856
+ function z(_, { languageName: M }) {
1857
+ typeof _ == "string" && (_ = [_]), _.forEach((L) => {
1858
+ l[L.toLowerCase()] = M;
1214
1859
  });
1215
1860
  }
1216
- function ae(u) {
1217
- const h = U(u);
1218
- return h && !h.disableAutodetect;
1861
+ function P(_) {
1862
+ const M = R(_);
1863
+ return M && !M.disableAutodetect;
1219
1864
  }
1220
- function ge(u) {
1221
- u["before:highlightBlock"] && !u["before:highlightElement"] && (u["before:highlightElement"] = (h) => {
1222
- u["before:highlightBlock"](
1223
- Object.assign({ block: h.el }, h)
1865
+ function $(_) {
1866
+ _["before:highlightBlock"] && !_["before:highlightElement"] && (_["before:highlightElement"] = (M) => {
1867
+ _["before:highlightBlock"](
1868
+ Object.assign({ block: M.el }, M)
1224
1869
  );
1225
- }), u["after:highlightBlock"] && !u["after:highlightElement"] && (u["after:highlightElement"] = (h) => {
1226
- u["after:highlightBlock"](
1227
- Object.assign({ block: h.el }, h)
1870
+ }), _["after:highlightBlock"] && !_["after:highlightElement"] && (_["after:highlightElement"] = (M) => {
1871
+ _["after:highlightBlock"](
1872
+ Object.assign({ block: M.el }, M)
1228
1873
  );
1229
1874
  });
1230
1875
  }
1231
- function pe(u) {
1232
- ge(u), s.push(u);
1876
+ function G(_) {
1877
+ $(_), u.push(_);
1233
1878
  }
1234
- function oe(u, h) {
1235
- const v = u;
1236
- s.forEach(function(x) {
1237
- x[v] && x[v](h);
1879
+ function Q(_, M) {
1880
+ const L = _;
1881
+ u.forEach(function(k) {
1882
+ k[L] && k[L](M);
1238
1883
  });
1239
1884
  }
1240
- function Ne(u) {
1241
- return ce("10.7.0", "highlightBlock will be removed entirely in v12.0"), ce("10.7.0", "Please use highlightElement now."), g(u);
1885
+ function ye(_) {
1886
+ return ue("10.7.0", "highlightBlock will be removed entirely in v12.0"), ue("10.7.0", "Please use highlightElement now."), d(_);
1242
1887
  }
1243
1888
  Object.assign(e, {
1244
- highlight: b,
1245
- highlightAuto: m,
1246
- highlightAll: T,
1247
- highlightElement: g,
1889
+ highlight: o,
1890
+ highlightAuto: g,
1891
+ highlightAll: m,
1892
+ highlightElement: d,
1248
1893
  // TODO: Remove with v12 API
1249
- highlightBlock: Ne,
1250
- configure: _,
1251
- initHighlighting: S,
1252
- initHighlightingOnLoad: M,
1253
- registerLanguage: $,
1254
- unregisterLanguage: R,
1255
- listLanguages: W,
1256
- getLanguage: U,
1257
- registerAliases: re,
1258
- autoDetection: ae,
1894
+ highlightBlock: ye,
1895
+ configure: b,
1896
+ initHighlighting: E,
1897
+ initHighlightingOnLoad: v,
1898
+ registerLanguage: S,
1899
+ unregisterLanguage: A,
1900
+ listLanguages: I,
1901
+ getLanguage: R,
1902
+ registerAliases: z,
1903
+ autoDetection: P,
1259
1904
  inherit: on,
1260
- addPlugin: pe
1905
+ addPlugin: G
1261
1906
  }), e.debugMode = function() {
1262
- o = !1;
1907
+ h = !1;
1263
1908
  }, e.safeMode = function() {
1264
- o = !0;
1265
- }, e.versionString = Ct, e.regex = {
1266
- concat: ie,
1267
- lookahead: gn,
1268
- either: Ye,
1269
- optional: qn,
1270
- anyNumberOfTimes: Qn
1909
+ h = !0;
1910
+ }, e.versionString = Bt, e.regex = {
1911
+ concat: ce,
1912
+ lookahead: hn,
1913
+ either: Qe,
1914
+ optional: jn,
1915
+ anyNumberOfTimes: Vn
1271
1916
  };
1272
- for (const u in Se)
1273
- typeof Se[u] == "object" && Ge.exports(Se[u]);
1274
- return Object.assign(e, Se), e;
1917
+ for (const _ in De)
1918
+ typeof De[_] == "object" && Ge.exports(De[_]);
1919
+ return Object.assign(e, De), e;
1275
1920
  };
1276
- var me = Bt({}), $t = me;
1921
+ var me = Pt({}), xt = me;
1277
1922
  me.HighlightJS = me;
1278
1923
  me.default = me;
1279
- const Z = $t;
1280
- function Ut(e) {
1281
- const n = e.regex, t = n.concat(/[\p{L}_]/u, n.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), s = /[\p{L}0-9._:-]+/u, o = {
1924
+ const J = xt;
1925
+ function Ht(e) {
1926
+ const t = e.regex, l = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), u = /[\p{L}0-9._:-]+/u, h = {
1282
1927
  className: "symbol",
1283
1928
  begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
1284
- }, l = {
1929
+ }, n = {
1285
1930
  begin: /\s/,
1286
1931
  contains: [
1287
1932
  {
@@ -1290,17 +1935,17 @@ function Ut(e) {
1290
1935
  illegal: /\n/
1291
1936
  }
1292
1937
  ]
1293
- }, i = e.inherit(l, {
1938
+ }, r = e.inherit(n, {
1294
1939
  begin: /\(/,
1295
1940
  end: /\)/
1296
- }), r = e.inherit(e.APOS_STRING_MODE, { className: "string" }), a = e.inherit(e.QUOTE_STRING_MODE, { className: "string" }), c = {
1941
+ }), i = e.inherit(e.APOS_STRING_MODE, { className: "string" }), s = e.inherit(e.QUOTE_STRING_MODE, { className: "string" }), a = {
1297
1942
  endsWithParent: !0,
1298
1943
  illegal: /</,
1299
1944
  relevance: 0,
1300
1945
  contains: [
1301
1946
  {
1302
1947
  className: "attr",
1303
- begin: s,
1948
+ begin: u,
1304
1949
  relevance: 0
1305
1950
  },
1306
1951
  {
@@ -1314,12 +1959,12 @@ function Ut(e) {
1314
1959
  {
1315
1960
  begin: /"/,
1316
1961
  end: /"/,
1317
- contains: [o]
1962
+ contains: [h]
1318
1963
  },
1319
1964
  {
1320
1965
  begin: /'/,
1321
1966
  end: /'/,
1322
- contains: [o]
1967
+ contains: [h]
1323
1968
  },
1324
1969
  { begin: /[^\s"'=<>`]+/ }
1325
1970
  ]
@@ -1351,10 +1996,10 @@ function Ut(e) {
1351
1996
  end: />/,
1352
1997
  relevance: 10,
1353
1998
  contains: [
1354
- l,
1355
- a,
1356
- r,
1999
+ n,
2000
+ s,
1357
2001
  i,
2002
+ r,
1358
2003
  {
1359
2004
  begin: /\[/,
1360
2005
  end: /\]/,
@@ -1364,10 +2009,10 @@ function Ut(e) {
1364
2009
  begin: /<![a-z]/,
1365
2010
  end: />/,
1366
2011
  contains: [
1367
- l,
1368
- i,
1369
- a,
1370
- r
2012
+ n,
2013
+ r,
2014
+ s,
2015
+ i
1371
2016
  ]
1372
2017
  }
1373
2018
  ]
@@ -1384,7 +2029,7 @@ function Ut(e) {
1384
2029
  end: /\]\]>/,
1385
2030
  relevance: 10
1386
2031
  },
1387
- o,
2032
+ h,
1388
2033
  // xml processing instructions
1389
2034
  {
1390
2035
  className: "meta",
@@ -1394,7 +2039,7 @@ function Ut(e) {
1394
2039
  begin: /<\?xml/,
1395
2040
  relevance: 10,
1396
2041
  contains: [
1397
- a
2042
+ s
1398
2043
  ]
1399
2044
  },
1400
2045
  {
@@ -1412,7 +2057,7 @@ function Ut(e) {
1412
2057
  begin: /<style(?=\s|>)/,
1413
2058
  end: />/,
1414
2059
  keywords: { name: "style" },
1415
- contains: [c],
2060
+ contains: [a],
1416
2061
  starts: {
1417
2062
  end: /<\/style>/,
1418
2063
  returnEnd: !0,
@@ -1428,7 +2073,7 @@ function Ut(e) {
1428
2073
  begin: /<script(?=\s|>)/,
1429
2074
  end: />/,
1430
2075
  keywords: { name: "script" },
1431
- contains: [c],
2076
+ contains: [a],
1432
2077
  starts: {
1433
2078
  end: /<\/script>/,
1434
2079
  returnEnd: !0,
@@ -1447,40 +2092,40 @@ function Ut(e) {
1447
2092
  // open tag
1448
2093
  {
1449
2094
  className: "tag",
1450
- begin: n.concat(
2095
+ begin: t.concat(
1451
2096
  /</,
1452
- n.lookahead(n.concat(
1453
- t,
2097
+ t.lookahead(t.concat(
2098
+ l,
1454
2099
  // <tag/>
1455
2100
  // <tag>
1456
2101
  // <tag ...
1457
- n.either(/\/>/, />/, /\s/)
2102
+ t.either(/\/>/, />/, /\s/)
1458
2103
  ))
1459
2104
  ),
1460
2105
  end: /\/?>/,
1461
2106
  contains: [
1462
2107
  {
1463
2108
  className: "name",
1464
- begin: t,
2109
+ begin: l,
1465
2110
  relevance: 0,
1466
- starts: c
2111
+ starts: a
1467
2112
  }
1468
2113
  ]
1469
2114
  },
1470
2115
  // close tag
1471
2116
  {
1472
2117
  className: "tag",
1473
- begin: n.concat(
2118
+ begin: t.concat(
1474
2119
  /<\//,
1475
- n.lookahead(n.concat(
1476
- t,
2120
+ t.lookahead(t.concat(
2121
+ l,
1477
2122
  />/
1478
2123
  ))
1479
2124
  ),
1480
2125
  contains: [
1481
2126
  {
1482
2127
  className: "name",
1483
- begin: t,
2128
+ begin: l,
1484
2129
  relevance: 0
1485
2130
  },
1486
2131
  {
@@ -1493,7 +2138,7 @@ function Ut(e) {
1493
2138
  ]
1494
2139
  };
1495
2140
  }
1496
- const ln = "[A-Za-z$_][0-9A-Za-z$_]*", Pt = [
2141
+ const cn = "[A-Za-z$_][0-9A-Za-z$_]*", zt = [
1497
2142
  "as",
1498
2143
  // for exports
1499
2144
  "in",
@@ -1536,14 +2181,14 @@ const ln = "[A-Za-z$_][0-9A-Za-z$_]*", Pt = [
1536
2181
  "from",
1537
2182
  "export",
1538
2183
  "extends"
1539
- ], Ht = [
2184
+ ], Ft = [
1540
2185
  "true",
1541
2186
  "false",
1542
2187
  "null",
1543
2188
  "undefined",
1544
2189
  "NaN",
1545
2190
  "Infinity"
1546
- ], An = [
2191
+ ], yn = [
1547
2192
  // Fundamental objects
1548
2193
  "Object",
1549
2194
  "Function",
@@ -1593,7 +2238,7 @@ const ln = "[A-Za-z$_][0-9A-Za-z$_]*", Pt = [
1593
2238
  "Intl",
1594
2239
  // WebAssembly
1595
2240
  "WebAssembly"
1596
- ], vn = [
2241
+ ], Nn = [
1597
2242
  "Error",
1598
2243
  "EvalError",
1599
2244
  "InternalError",
@@ -1602,7 +2247,7 @@ const ln = "[A-Za-z$_][0-9A-Za-z$_]*", Pt = [
1602
2247
  "SyntaxError",
1603
2248
  "TypeError",
1604
2249
  "URIError"
1605
- ], Tn = [
2250
+ ], Mn = [
1606
2251
  "setInterval",
1607
2252
  "setTimeout",
1608
2253
  "clearInterval",
@@ -1620,7 +2265,7 @@ const ln = "[A-Za-z$_][0-9A-Za-z$_]*", Pt = [
1620
2265
  "encodeURIComponent",
1621
2266
  "escape",
1622
2267
  "unescape"
1623
- ], zt = [
2268
+ ], Gt = [
1624
2269
  "arguments",
1625
2270
  "this",
1626
2271
  "super",
@@ -1631,62 +2276,62 @@ const ln = "[A-Za-z$_][0-9A-Za-z$_]*", Pt = [
1631
2276
  "module",
1632
2277
  "global"
1633
2278
  // Node.js
1634
- ], Ft = [].concat(
1635
- Tn,
1636
- An,
1637
- vn
2279
+ ], Kt = [].concat(
2280
+ Mn,
2281
+ yn,
2282
+ Nn
1638
2283
  );
1639
- function Gt(e) {
1640
- const n = e.regex, t = (h, { after: v }) => {
1641
- const x = "</" + h[0].slice(1);
1642
- return h.input.indexOf(x, v) !== -1;
1643
- }, s = ln, o = {
2284
+ function Wt(e) {
2285
+ const t = e.regex, l = (M, { after: L }) => {
2286
+ const k = "</" + M[0].slice(1);
2287
+ return M.input.indexOf(k, L) !== -1;
2288
+ }, u = cn, h = {
1644
2289
  begin: "<>",
1645
2290
  end: "</>"
1646
- }, l = /<[A-Za-z0-9\\._:-]+\s*\/>/, i = {
2291
+ }, n = /<[A-Za-z0-9\\._:-]+\s*\/>/, r = {
1647
2292
  begin: /<[A-Za-z0-9\\._:-]+/,
1648
2293
  end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
1649
2294
  /**
1650
2295
  * @param {RegExpMatchArray} match
1651
2296
  * @param {CallbackResponse} response
1652
2297
  */
1653
- isTrulyOpeningTag: (h, v) => {
1654
- const x = h[0].length + h.index, k = h.input[x];
2298
+ isTrulyOpeningTag: (M, L) => {
2299
+ const k = M[0].length + M.index, H = M.input[k];
1655
2300
  if (
1656
2301
  // HTML should not include another raw `<` inside a tag
1657
2302
  // nested type?
1658
2303
  // `<Array<Array<number>>`, etc.
1659
- k === "<" || // the , gives away that this is not HTML
2304
+ H === "<" || // the , gives away that this is not HTML
1660
2305
  // `<T, A extends keyof T, V>`
1661
- k === ","
2306
+ H === ","
1662
2307
  ) {
1663
- v.ignoreMatch();
2308
+ L.ignoreMatch();
1664
2309
  return;
1665
2310
  }
1666
- k === ">" && (t(h, { after: x }) || v.ignoreMatch());
1667
- let F;
1668
- const Q = h.input.substring(x);
1669
- if (F = Q.match(/^\s*=/)) {
1670
- v.ignoreMatch();
2311
+ H === ">" && (l(M, { after: k }) || L.ignoreMatch());
2312
+ let Y;
2313
+ const q = M.input.substring(k);
2314
+ if (Y = q.match(/^\s*=/)) {
2315
+ L.ignoreMatch();
1671
2316
  return;
1672
2317
  }
1673
- if ((F = Q.match(/^\s+extends\s+/)) && F.index === 0) {
1674
- v.ignoreMatch();
2318
+ if ((Y = q.match(/^\s+extends\s+/)) && Y.index === 0) {
2319
+ L.ignoreMatch();
1675
2320
  return;
1676
2321
  }
1677
2322
  }
1678
- }, r = {
1679
- $pattern: ln,
1680
- keyword: Pt,
1681
- literal: Ht,
1682
- built_in: Ft,
1683
- "variable.language": zt
1684
- }, a = "[0-9](_?[0-9])*", c = `\\.(${a})`, b = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", p = {
2323
+ }, i = {
2324
+ $pattern: cn,
2325
+ keyword: zt,
2326
+ literal: Ft,
2327
+ built_in: Kt,
2328
+ "variable.language": Gt
2329
+ }, s = "[0-9](_?[0-9])*", a = `\\.(${s})`, o = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", c = {
1685
2330
  className: "number",
1686
2331
  variants: [
1687
2332
  // DecimalLiteral
1688
- { begin: `(\\b(${b})((${c})|\\.)?|(${c}))[eE][+-]?(${a})\\b` },
1689
- { begin: `\\b(${b})\\b((${c})\\b|\\.)?|(${c})\\b` },
2333
+ { begin: `(\\b(${o})((${a})|\\.)?|(${a}))[eE][+-]?(${s})\\b` },
2334
+ { begin: `\\b(${o})\\b((${a})\\b|\\.)?|(${a})\\b` },
1690
2335
  // DecimalBigIntegerLiteral
1691
2336
  { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
1692
2337
  // NonDecimalIntegerLiteral
@@ -1698,14 +2343,14 @@ function Gt(e) {
1698
2343
  { begin: "\\b0[0-7]+n?\\b" }
1699
2344
  ],
1700
2345
  relevance: 0
1701
- }, y = {
2346
+ }, f = {
1702
2347
  className: "subst",
1703
2348
  begin: "\\$\\{",
1704
2349
  end: "\\}",
1705
- keywords: r,
2350
+ keywords: i,
1706
2351
  contains: []
1707
2352
  // defined later
1708
- }, m = {
2353
+ }, g = {
1709
2354
  begin: "html`",
1710
2355
  end: "",
1711
2356
  starts: {
@@ -1713,11 +2358,11 @@ function Gt(e) {
1713
2358
  returnEnd: !1,
1714
2359
  contains: [
1715
2360
  e.BACKSLASH_ESCAPE,
1716
- y
2361
+ f
1717
2362
  ],
1718
2363
  subLanguage: "xml"
1719
2364
  }
1720
- }, N = {
2365
+ }, p = {
1721
2366
  begin: "css`",
1722
2367
  end: "",
1723
2368
  starts: {
@@ -1725,19 +2370,19 @@ function Gt(e) {
1725
2370
  returnEnd: !1,
1726
2371
  contains: [
1727
2372
  e.BACKSLASH_ESCAPE,
1728
- y
2373
+ f
1729
2374
  ],
1730
2375
  subLanguage: "css"
1731
2376
  }
1732
- }, g = {
2377
+ }, d = {
1733
2378
  className: "string",
1734
2379
  begin: "`",
1735
2380
  end: "`",
1736
2381
  contains: [
1737
2382
  e.BACKSLASH_ESCAPE,
1738
- y
2383
+ f
1739
2384
  ]
1740
- }, S = {
2385
+ }, E = {
1741
2386
  className: "comment",
1742
2387
  variants: [
1743
2388
  e.COMMENT(
@@ -1764,7 +2409,7 @@ function Gt(e) {
1764
2409
  },
1765
2410
  {
1766
2411
  className: "variable",
1767
- begin: s + "(?=\\s*(-)|$)",
2412
+ begin: u + "(?=\\s*(-)|$)",
1768
2413
  endsParent: !0,
1769
2414
  relevance: 0
1770
2415
  },
@@ -1782,36 +2427,36 @@ function Gt(e) {
1782
2427
  e.C_BLOCK_COMMENT_MODE,
1783
2428
  e.C_LINE_COMMENT_MODE
1784
2429
  ]
1785
- }, M = [
2430
+ }, v = [
1786
2431
  e.APOS_STRING_MODE,
1787
2432
  e.QUOTE_STRING_MODE,
1788
- m,
1789
- N,
1790
2433
  g,
2434
+ p,
2435
+ d,
1791
2436
  // Skip numbers when they are part of a variable name
1792
2437
  { match: /\$\d+/ },
1793
- p
2438
+ c
1794
2439
  // This is intentional:
1795
2440
  // See https://github.com/highlightjs/highlight.js/issues/3288
1796
2441
  // hljs.REGEXP_MODE
1797
2442
  ];
1798
- y.contains = M.concat({
2443
+ f.contains = v.concat({
1799
2444
  // we need to pair up {} inside our subst to prevent
1800
2445
  // it from ending too early by matching another }
1801
2446
  begin: /\{/,
1802
2447
  end: /\}/,
1803
- keywords: r,
2448
+ keywords: i,
1804
2449
  contains: [
1805
2450
  "self"
1806
- ].concat(M)
2451
+ ].concat(v)
1807
2452
  });
1808
- const O = [].concat(S, y.contains), T = O.concat([
2453
+ const y = [].concat(E, f.contains), m = y.concat([
1809
2454
  // eat recursive parens in sub expressions
1810
2455
  {
1811
2456
  begin: /\(/,
1812
2457
  end: /\)/,
1813
- keywords: r,
1814
- contains: ["self"].concat(O)
2458
+ keywords: i,
2459
+ contains: ["self"].concat(y)
1815
2460
  }
1816
2461
  ]), D = {
1817
2462
  className: "params",
@@ -1819,20 +2464,20 @@ function Gt(e) {
1819
2464
  end: /\)/,
1820
2465
  excludeBegin: !0,
1821
2466
  excludeEnd: !0,
1822
- keywords: r,
1823
- contains: T
1824
- }, $ = {
2467
+ keywords: i,
2468
+ contains: m
2469
+ }, S = {
1825
2470
  variants: [
1826
2471
  // class Car extends vehicle
1827
2472
  {
1828
2473
  match: [
1829
2474
  /class/,
1830
2475
  /\s+/,
1831
- s,
2476
+ u,
1832
2477
  /\s+/,
1833
2478
  /extends/,
1834
2479
  /\s+/,
1835
- n.concat(s, "(", n.concat(/\./, s), ")*")
2480
+ t.concat(u, "(", t.concat(/\./, u), ")*")
1836
2481
  ],
1837
2482
  scope: {
1838
2483
  1: "keyword",
@@ -1846,7 +2491,7 @@ function Gt(e) {
1846
2491
  match: [
1847
2492
  /class/,
1848
2493
  /\s+/,
1849
- s
2494
+ u
1850
2495
  ],
1851
2496
  scope: {
1852
2497
  1: "keyword",
@@ -1854,9 +2499,9 @@ function Gt(e) {
1854
2499
  }
1855
2500
  }
1856
2501
  ]
1857
- }, R = {
2502
+ }, A = {
1858
2503
  relevance: 0,
1859
- match: n.either(
2504
+ match: t.either(
1860
2505
  // Hard coded exceptions
1861
2506
  /\bJSON/,
1862
2507
  // Float32Array, OutT
@@ -1874,22 +2519,22 @@ function Gt(e) {
1874
2519
  keywords: {
1875
2520
  _: [
1876
2521
  // se we still get relevance credit for JS library classes
1877
- ...An,
1878
- ...vn
2522
+ ...yn,
2523
+ ...Nn
1879
2524
  ]
1880
2525
  }
1881
- }, W = {
2526
+ }, I = {
1882
2527
  label: "use_strict",
1883
2528
  className: "meta",
1884
2529
  relevance: 10,
1885
2530
  begin: /^\s*['"]use (strict|asm)['"]/
1886
- }, U = {
2531
+ }, R = {
1887
2532
  variants: [
1888
2533
  {
1889
2534
  match: [
1890
2535
  /function/,
1891
2536
  /\s+/,
1892
- s,
2537
+ u,
1893
2538
  /(?=\s*\()/
1894
2539
  ]
1895
2540
  },
@@ -1908,41 +2553,41 @@ function Gt(e) {
1908
2553
  label: "func.def",
1909
2554
  contains: [D],
1910
2555
  illegal: /%/
1911
- }, re = {
2556
+ }, z = {
1912
2557
  relevance: 0,
1913
2558
  match: /\b[A-Z][A-Z_0-9]+\b/,
1914
2559
  className: "variable.constant"
1915
2560
  };
1916
- function ae(h) {
1917
- return n.concat("(?!", h.join("|"), ")");
2561
+ function P(M) {
2562
+ return t.concat("(?!", M.join("|"), ")");
1918
2563
  }
1919
- const ge = {
1920
- match: n.concat(
2564
+ const $ = {
2565
+ match: t.concat(
1921
2566
  /\b/,
1922
- ae([
1923
- ...Tn,
2567
+ P([
2568
+ ...Mn,
1924
2569
  "super",
1925
2570
  "import"
1926
2571
  ]),
1927
- s,
1928
- n.lookahead(/\(/)
2572
+ u,
2573
+ t.lookahead(/\(/)
1929
2574
  ),
1930
2575
  className: "title.function",
1931
2576
  relevance: 0
1932
- }, pe = {
1933
- begin: n.concat(/\./, n.lookahead(
1934
- n.concat(s, /(?![0-9A-Za-z$_(])/)
2577
+ }, G = {
2578
+ begin: t.concat(/\./, t.lookahead(
2579
+ t.concat(u, /(?![0-9A-Za-z$_(])/)
1935
2580
  )),
1936
- end: s,
2581
+ end: u,
1937
2582
  excludeBegin: !0,
1938
2583
  keywords: "prototype",
1939
2584
  className: "property",
1940
2585
  relevance: 0
1941
- }, oe = {
2586
+ }, Q = {
1942
2587
  match: [
1943
2588
  /get|set/,
1944
2589
  /\s+/,
1945
- s,
2590
+ u,
1946
2591
  /(?=\()/
1947
2592
  ],
1948
2593
  className: {
@@ -1956,16 +2601,16 @@ function Gt(e) {
1956
2601
  },
1957
2602
  D
1958
2603
  ]
1959
- }, Ne = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", u = {
2604
+ }, ye = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", _ = {
1960
2605
  match: [
1961
2606
  /const|var|let/,
1962
2607
  /\s+/,
1963
- s,
2608
+ u,
1964
2609
  /\s*/,
1965
2610
  /=\s*/,
1966
2611
  /(async\s*)?/,
1967
2612
  // async is optional
1968
- n.lookahead(Ne)
2613
+ t.lookahead(ye)
1969
2614
  ],
1970
2615
  keywords: "async",
1971
2616
  className: {
@@ -1979,9 +2624,9 @@ function Gt(e) {
1979
2624
  return {
1980
2625
  name: "Javascript",
1981
2626
  aliases: ["js", "jsx", "mjs", "cjs"],
1982
- keywords: r,
2627
+ keywords: i,
1983
2628
  // this will be extended by TypeScript
1984
- exports: { PARAMS_CONTAINS: T, CLASS_REFERENCE: R },
2629
+ exports: { PARAMS_CONTAINS: m, CLASS_REFERENCE: A },
1985
2630
  illegal: /#(?![$_A-z])/,
1986
2631
  contains: [
1987
2632
  e.SHEBANG({
@@ -1989,37 +2634,37 @@ function Gt(e) {
1989
2634
  binary: "node",
1990
2635
  relevance: 5
1991
2636
  }),
1992
- W,
2637
+ I,
1993
2638
  e.APOS_STRING_MODE,
1994
2639
  e.QUOTE_STRING_MODE,
1995
- m,
1996
- N,
1997
2640
  g,
1998
- S,
2641
+ p,
2642
+ d,
2643
+ E,
1999
2644
  // Skip numbers when they are part of a variable name
2000
2645
  { match: /\$\d+/ },
2001
- p,
2002
- R,
2646
+ c,
2647
+ A,
2003
2648
  {
2004
2649
  className: "attr",
2005
- begin: s + n.lookahead(":"),
2650
+ begin: u + t.lookahead(":"),
2006
2651
  relevance: 0
2007
2652
  },
2008
- u,
2653
+ _,
2009
2654
  {
2010
2655
  // "value" container
2011
2656
  begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
2012
2657
  keywords: "return throw case",
2013
2658
  relevance: 0,
2014
2659
  contains: [
2015
- S,
2660
+ E,
2016
2661
  e.REGEXP_MODE,
2017
2662
  {
2018
2663
  className: "function",
2019
2664
  // we have to count the parens to make sure we actually have the
2020
2665
  // correct bounding ( ) before the =>. There could be any number of
2021
2666
  // sub-expressions inside also surrounded by parens.
2022
- begin: Ne,
2667
+ begin: ye,
2023
2668
  returnBegin: !0,
2024
2669
  end: "\\s*=>",
2025
2670
  contains: [
@@ -2040,8 +2685,8 @@ function Gt(e) {
2040
2685
  end: /\)/,
2041
2686
  excludeBegin: !0,
2042
2687
  excludeEnd: !0,
2043
- keywords: r,
2044
- contains: T
2688
+ keywords: i,
2689
+ contains: m
2045
2690
  }
2046
2691
  ]
2047
2692
  }
@@ -2059,21 +2704,21 @@ function Gt(e) {
2059
2704
  {
2060
2705
  // JSX
2061
2706
  variants: [
2062
- { begin: o.begin, end: o.end },
2063
- { match: l },
2707
+ { begin: h.begin, end: h.end },
2708
+ { match: n },
2064
2709
  {
2065
- begin: i.begin,
2710
+ begin: r.begin,
2066
2711
  // we carefully check the opening tag to see if it truly
2067
2712
  // is a tag and not a false positive
2068
- "on:begin": i.isTrulyOpeningTag,
2069
- end: i.end
2713
+ "on:begin": r.isTrulyOpeningTag,
2714
+ end: r.end
2070
2715
  }
2071
2716
  ],
2072
2717
  subLanguage: "xml",
2073
2718
  contains: [
2074
2719
  {
2075
- begin: i.begin,
2076
- end: i.end,
2720
+ begin: r.begin,
2721
+ end: r.end,
2077
2722
  skip: !0,
2078
2723
  contains: ["self"]
2079
2724
  }
@@ -2081,7 +2726,7 @@ function Gt(e) {
2081
2726
  }
2082
2727
  ]
2083
2728
  },
2084
- U,
2729
+ R,
2085
2730
  {
2086
2731
  // prevent this from getting swallowed up by function
2087
2732
  // since they appear "function like"
@@ -2097,7 +2742,7 @@ function Gt(e) {
2097
2742
  label: "func.def",
2098
2743
  contains: [
2099
2744
  D,
2100
- e.inherit(e.TITLE_MODE, { begin: s, className: "title.function" })
2745
+ e.inherit(e.TITLE_MODE, { begin: u, className: "title.function" })
2101
2746
  ]
2102
2747
  },
2103
2748
  // catch ... so it won't trigger the property rule below
@@ -2105,12 +2750,12 @@ function Gt(e) {
2105
2750
  match: /\.\.\./,
2106
2751
  relevance: 0
2107
2752
  },
2108
- pe,
2753
+ G,
2109
2754
  // hack: prevents detection of keywords in some circumstances
2110
2755
  // .keyword()
2111
2756
  // $keyword = x
2112
2757
  {
2113
- match: "\\$" + s,
2758
+ match: "\\$" + u,
2114
2759
  relevance: 0
2115
2760
  },
2116
2761
  {
@@ -2118,10 +2763,10 @@ function Gt(e) {
2118
2763
  className: { 1: "title.function" },
2119
2764
  contains: [D]
2120
2765
  },
2121
- ge,
2122
- re,
2123
2766
  $,
2124
- oe,
2767
+ z,
2768
+ S,
2769
+ Q,
2125
2770
  {
2126
2771
  match: /\$[(.]/
2127
2772
  // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
@@ -2129,33 +2774,33 @@ function Gt(e) {
2129
2774
  ]
2130
2775
  };
2131
2776
  }
2132
- function Kt(e) {
2133
- const n = {
2777
+ function Qt(e) {
2778
+ const t = {
2134
2779
  className: "attr",
2135
2780
  begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
2136
2781
  relevance: 1.01
2137
- }, t = {
2782
+ }, l = {
2138
2783
  match: /[{}[\],:]/,
2139
2784
  className: "punctuation",
2140
2785
  relevance: 0
2141
- }, s = [
2786
+ }, u = [
2142
2787
  "true",
2143
2788
  "false",
2144
2789
  "null"
2145
- ], o = {
2790
+ ], h = {
2146
2791
  scope: "literal",
2147
- beginKeywords: s.join(" ")
2792
+ beginKeywords: u.join(" ")
2148
2793
  };
2149
2794
  return {
2150
2795
  name: "JSON",
2151
2796
  keywords: {
2152
- literal: s
2797
+ literal: u
2153
2798
  },
2154
2799
  contains: [
2155
- n,
2156
2800
  t,
2801
+ l,
2157
2802
  e.QUOTE_STRING_MODE,
2158
- o,
2803
+ h,
2159
2804
  e.C_NUMBER_MODE,
2160
2805
  e.C_LINE_COMMENT_MODE,
2161
2806
  e.C_BLOCK_COMMENT_MODE
@@ -2163,8 +2808,8 @@ function Kt(e) {
2163
2808
  illegal: "\\S"
2164
2809
  };
2165
2810
  }
2166
- function Wt(e) {
2167
- const n = "true false yes no null", t = "[\\w#;/?:@&=+$,.~*'()[\\]]+", s = {
2811
+ function Zt(e) {
2812
+ const t = "true false yes no null", l = "[\\w#;/?:@&=+$,.~*'()[\\]]+", u = {
2168
2813
  className: "attr",
2169
2814
  variants: [
2170
2815
  { begin: "\\w[\\w :\\/.-]*:(?=[ ]|$)" },
@@ -2177,7 +2822,7 @@ function Wt(e) {
2177
2822
  begin: "'\\w[\\w :\\/.-]*':(?=[ ]|$)"
2178
2823
  }
2179
2824
  ]
2180
- }, o = {
2825
+ }, h = {
2181
2826
  className: "template-variable",
2182
2827
  variants: [
2183
2828
  {
@@ -2191,7 +2836,7 @@ function Wt(e) {
2191
2836
  end: /\}/
2192
2837
  }
2193
2838
  ]
2194
- }, l = {
2839
+ }, n = {
2195
2840
  className: "string",
2196
2841
  relevance: 0,
2197
2842
  variants: [
@@ -2207,9 +2852,9 @@ function Wt(e) {
2207
2852
  ],
2208
2853
  contains: [
2209
2854
  e.BACKSLASH_ESCAPE,
2210
- o
2855
+ h
2211
2856
  ]
2212
- }, i = e.inherit(l, { variants: [
2857
+ }, r = e.inherit(n, { variants: [
2213
2858
  {
2214
2859
  begin: /'/,
2215
2860
  end: /'/
@@ -2219,29 +2864,29 @@ function Wt(e) {
2219
2864
  end: /"/
2220
2865
  },
2221
2866
  { begin: /[^\s,{}[\]]+/ }
2222
- ] }), r = "[0-9]{4}(-[0-9][0-9]){0,2}", a = "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?", c = "(\\.[0-9]*)?", b = "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?", p = {
2867
+ ] }), i = "[0-9]{4}(-[0-9][0-9]){0,2}", s = "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?", a = "(\\.[0-9]*)?", o = "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?", c = {
2223
2868
  className: "number",
2224
- begin: "\\b" + r + a + c + b + "\\b"
2225
- }, y = {
2869
+ begin: "\\b" + i + s + a + o + "\\b"
2870
+ }, f = {
2226
2871
  end: ",",
2227
2872
  endsWithParent: !0,
2228
2873
  excludeEnd: !0,
2229
- keywords: n,
2874
+ keywords: t,
2230
2875
  relevance: 0
2231
- }, m = {
2876
+ }, g = {
2232
2877
  begin: /\{/,
2233
2878
  end: /\}/,
2234
- contains: [y],
2879
+ contains: [f],
2235
2880
  illegal: "\\n",
2236
2881
  relevance: 0
2237
- }, N = {
2882
+ }, p = {
2238
2883
  begin: "\\[",
2239
2884
  end: "\\]",
2240
- contains: [y],
2885
+ contains: [f],
2241
2886
  illegal: "\\n",
2242
2887
  relevance: 0
2243
- }, g = [
2244
- s,
2888
+ }, d = [
2889
+ u,
2245
2890
  {
2246
2891
  className: "meta",
2247
2892
  begin: "^---\\s*$",
@@ -2268,23 +2913,23 @@ function Wt(e) {
2268
2913
  {
2269
2914
  // named tags
2270
2915
  className: "type",
2271
- begin: "!\\w+!" + t
2916
+ begin: "!\\w+!" + l
2272
2917
  },
2273
2918
  // https://yaml.org/spec/1.2/spec.html#id2784064
2274
2919
  {
2275
2920
  // verbatim tags
2276
2921
  className: "type",
2277
- begin: "!<" + t + ">"
2922
+ begin: "!<" + l + ">"
2278
2923
  },
2279
2924
  {
2280
2925
  // primary tags
2281
2926
  className: "type",
2282
- begin: "!" + t
2927
+ begin: "!" + l
2283
2928
  },
2284
2929
  {
2285
2930
  // secondary tags
2286
2931
  className: "type",
2287
- begin: "!!" + t
2932
+ begin: "!!" + l
2288
2933
  },
2289
2934
  {
2290
2935
  // fragment id &ref
@@ -2305,10 +2950,10 @@ function Wt(e) {
2305
2950
  },
2306
2951
  e.HASH_COMMENT_MODE,
2307
2952
  {
2308
- beginKeywords: n,
2309
- keywords: { literal: n }
2953
+ beginKeywords: t,
2954
+ keywords: { literal: t }
2310
2955
  },
2311
- p,
2956
+ c,
2312
2957
  // numbers are any valid C-style number that
2313
2958
  // sit isolated from other words
2314
2959
  {
@@ -2316,15 +2961,15 @@ function Wt(e) {
2316
2961
  begin: e.C_NUMBER_RE + "\\b",
2317
2962
  relevance: 0
2318
2963
  },
2319
- m,
2320
- N,
2321
- l
2322
- ], _ = [...g];
2323
- return _.pop(), _.push(i), y.contains = _, {
2964
+ g,
2965
+ p,
2966
+ n
2967
+ ], b = [...d];
2968
+ return b.pop(), b.push(r), f.contains = b, {
2324
2969
  name: "YAML",
2325
2970
  case_insensitive: !0,
2326
2971
  aliases: ["yml"],
2327
- contains: g
2972
+ contains: d
2328
2973
  };
2329
2974
  }
2330
2975
  function Yt(e) {
@@ -2337,8 +2982,8 @@ function Yt(e) {
2337
2982
  disableAutodetect: !0
2338
2983
  };
2339
2984
  }
2340
- function Zt(e) {
2341
- const n = e.regex, t = /[\p{XID_Start}_]\p{XID_Continue}*/u, s = [
2985
+ function Xt(e) {
2986
+ const t = e.regex, l = /[\p{XID_Start}_]\p{XID_Continue}*/u, u = [
2342
2987
  "and",
2343
2988
  "as",
2344
2989
  "assert",
@@ -2373,9 +3018,9 @@ function Zt(e) {
2373
3018
  "while",
2374
3019
  "with",
2375
3020
  "yield"
2376
- ], r = {
3021
+ ], i = {
2377
3022
  $pattern: /[A-Za-z]\w+|__\w+__/,
2378
- keyword: s,
3023
+ keyword: u,
2379
3024
  built_in: [
2380
3025
  "__import__",
2381
3026
  "abs",
@@ -2470,19 +3115,19 @@ function Zt(e) {
2470
3115
  "Type",
2471
3116
  "Union"
2472
3117
  ]
2473
- }, a = {
3118
+ }, s = {
2474
3119
  className: "meta",
2475
3120
  begin: /^(>>>|\.\.\.) /
2476
- }, c = {
3121
+ }, a = {
2477
3122
  className: "subst",
2478
3123
  begin: /\{/,
2479
3124
  end: /\}/,
2480
- keywords: r,
3125
+ keywords: i,
2481
3126
  illegal: /#/
2482
- }, b = {
3127
+ }, o = {
2483
3128
  begin: /\{\{/,
2484
3129
  relevance: 0
2485
- }, p = {
3130
+ }, c = {
2486
3131
  className: "string",
2487
3132
  contains: [e.BACKSLASH_ESCAPE],
2488
3133
  variants: [
@@ -2491,7 +3136,7 @@ function Zt(e) {
2491
3136
  end: /'''/,
2492
3137
  contains: [
2493
3138
  e.BACKSLASH_ESCAPE,
2494
- a
3139
+ s
2495
3140
  ],
2496
3141
  relevance: 10
2497
3142
  },
@@ -2500,7 +3145,7 @@ function Zt(e) {
2500
3145
  end: /"""/,
2501
3146
  contains: [
2502
3147
  e.BACKSLASH_ESCAPE,
2503
- a
3148
+ s
2504
3149
  ],
2505
3150
  relevance: 10
2506
3151
  },
@@ -2509,9 +3154,9 @@ function Zt(e) {
2509
3154
  end: /'''/,
2510
3155
  contains: [
2511
3156
  e.BACKSLASH_ESCAPE,
2512
- a,
2513
- b,
2514
- c
3157
+ s,
3158
+ o,
3159
+ a
2515
3160
  ]
2516
3161
  },
2517
3162
  {
@@ -2519,9 +3164,9 @@ function Zt(e) {
2519
3164
  end: /"""/,
2520
3165
  contains: [
2521
3166
  e.BACKSLASH_ESCAPE,
2522
- a,
2523
- b,
2524
- c
3167
+ s,
3168
+ o,
3169
+ a
2525
3170
  ]
2526
3171
  },
2527
3172
  {
@@ -2547,8 +3192,8 @@ function Zt(e) {
2547
3192
  end: /'/,
2548
3193
  contains: [
2549
3194
  e.BACKSLASH_ESCAPE,
2550
- b,
2551
- c
3195
+ o,
3196
+ a
2552
3197
  ]
2553
3198
  },
2554
3199
  {
@@ -2556,14 +3201,14 @@ function Zt(e) {
2556
3201
  end: /"/,
2557
3202
  contains: [
2558
3203
  e.BACKSLASH_ESCAPE,
2559
- b,
2560
- c
3204
+ o,
3205
+ a
2561
3206
  ]
2562
3207
  },
2563
3208
  e.APOS_STRING_MODE,
2564
3209
  e.QUOTE_STRING_MODE
2565
3210
  ]
2566
- }, y = "[0-9](_?[0-9])*", m = `(\\b(${y}))?\\.(${y})|\\b(${y})\\.`, N = `\\b|${s.join("|")}`, g = {
3211
+ }, f = "[0-9](_?[0-9])*", g = `(\\b(${f}))?\\.(${f})|\\b(${f})\\.`, p = `\\b|${u.join("|")}`, d = {
2567
3212
  className: "number",
2568
3213
  relevance: 0,
2569
3214
  variants: [
@@ -2578,10 +3223,10 @@ function Zt(e) {
2578
3223
  // because both MUST contain a decimal point and so cannot be confused with
2579
3224
  // the interior part of an identifier
2580
3225
  {
2581
- begin: `(\\b(${y})|(${m}))[eE][+-]?(${y})[jJ]?(?=${N})`
3226
+ begin: `(\\b(${f})|(${g}))[eE][+-]?(${f})[jJ]?(?=${p})`
2582
3227
  },
2583
3228
  {
2584
- begin: `(${m})[jJ]?`
3229
+ begin: `(${g})[jJ]?`
2585
3230
  },
2586
3231
  // decinteger, bininteger, octinteger, hexinteger
2587
3232
  // https://docs.python.org/3.9/reference/lexical_analysis.html#integer-literals
@@ -2590,28 +3235,28 @@ function Zt(e) {
2590
3235
  // decinteger is optionally imaginary
2591
3236
  // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
2592
3237
  {
2593
- begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${N})`
3238
+ begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${p})`
2594
3239
  },
2595
3240
  {
2596
- begin: `\\b0[bB](_?[01])+[lL]?(?=${N})`
3241
+ begin: `\\b0[bB](_?[01])+[lL]?(?=${p})`
2597
3242
  },
2598
3243
  {
2599
- begin: `\\b0[oO](_?[0-7])+[lL]?(?=${N})`
3244
+ begin: `\\b0[oO](_?[0-7])+[lL]?(?=${p})`
2600
3245
  },
2601
3246
  {
2602
- begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${N})`
3247
+ begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${p})`
2603
3248
  },
2604
3249
  // imagnumber (digitpart-based)
2605
3250
  // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
2606
3251
  {
2607
- begin: `\\b(${y})[jJ](?=${N})`
3252
+ begin: `\\b(${f})[jJ](?=${p})`
2608
3253
  }
2609
3254
  ]
2610
- }, _ = {
3255
+ }, b = {
2611
3256
  className: "comment",
2612
- begin: n.lookahead(/# type:/),
3257
+ begin: t.lookahead(/# type:/),
2613
3258
  end: /$/,
2614
- keywords: r,
3259
+ keywords: i,
2615
3260
  contains: [
2616
3261
  {
2617
3262
  // prevent keywords from coloring `type`
@@ -2624,7 +3269,7 @@ function Zt(e) {
2624
3269
  endsWithParent: !0
2625
3270
  }
2626
3271
  ]
2627
- }, S = {
3272
+ }, E = {
2628
3273
  className: "params",
2629
3274
  variants: [
2630
3275
  // Exclude params in functions without params
@@ -2638,21 +3283,21 @@ function Zt(e) {
2638
3283
  end: /\)/,
2639
3284
  excludeBegin: !0,
2640
3285
  excludeEnd: !0,
2641
- keywords: r,
3286
+ keywords: i,
2642
3287
  contains: [
2643
3288
  "self",
2644
- a,
2645
- g,
2646
- p,
3289
+ s,
3290
+ d,
3291
+ c,
2647
3292
  e.HASH_COMMENT_MODE
2648
3293
  ]
2649
3294
  }
2650
3295
  ]
2651
3296
  };
2652
- return c.contains = [
2653
- p,
2654
- g,
2655
- a
3297
+ return a.contains = [
3298
+ c,
3299
+ d,
3300
+ s
2656
3301
  ], {
2657
3302
  name: "Python",
2658
3303
  aliases: [
@@ -2661,11 +3306,11 @@ function Zt(e) {
2661
3306
  "ipython"
2662
3307
  ],
2663
3308
  unicodeRegex: !0,
2664
- keywords: r,
3309
+ keywords: i,
2665
3310
  illegal: /(<\/|->|\?)|=>/,
2666
3311
  contains: [
2667
- a,
2668
- g,
3312
+ s,
3313
+ d,
2669
3314
  {
2670
3315
  // very common convention
2671
3316
  begin: /\bself\b/
@@ -2676,20 +3321,20 @@ function Zt(e) {
2676
3321
  beginKeywords: "if",
2677
3322
  relevance: 0
2678
3323
  },
2679
- p,
2680
- _,
3324
+ c,
3325
+ b,
2681
3326
  e.HASH_COMMENT_MODE,
2682
3327
  {
2683
3328
  match: [
2684
3329
  /\bdef/,
2685
3330
  /\s+/,
2686
- t
3331
+ l
2687
3332
  ],
2688
3333
  scope: {
2689
3334
  1: "keyword",
2690
3335
  3: "title.function"
2691
3336
  },
2692
- contains: [S]
3337
+ contains: [E]
2693
3338
  },
2694
3339
  {
2695
3340
  variants: [
@@ -2697,10 +3342,10 @@ function Zt(e) {
2697
3342
  match: [
2698
3343
  /\bclass/,
2699
3344
  /\s+/,
2700
- t,
3345
+ l,
2701
3346
  /\s*/,
2702
3347
  /\(\s*/,
2703
- t,
3348
+ l,
2704
3349
  /\s*\)/
2705
3350
  ]
2706
3351
  },
@@ -2708,7 +3353,7 @@ function Zt(e) {
2708
3353
  match: [
2709
3354
  /\bclass/,
2710
3355
  /\s+/,
2711
- t
3356
+ l
2712
3357
  ]
2713
3358
  }
2714
3359
  ],
@@ -2723,26 +3368,26 @@ function Zt(e) {
2723
3368
  begin: /^[\t ]*@/,
2724
3369
  end: /(?=#)|$/,
2725
3370
  contains: [
2726
- g,
2727
- S,
2728
- p
3371
+ d,
3372
+ E,
3373
+ c
2729
3374
  ]
2730
3375
  }
2731
3376
  ]
2732
3377
  };
2733
3378
  }
2734
- var le = "[0-9](_*[0-9])*", Me = `\\.(${le})`, Re = "[0-9a-fA-F](_*[0-9a-fA-F])*", un = {
3379
+ var fe = "[0-9](_*[0-9])*", Se = `\\.(${fe})`, Re = "[0-9a-fA-F](_*[0-9a-fA-F])*", un = {
2735
3380
  className: "number",
2736
3381
  variants: [
2737
3382
  // DecimalFloatingPointLiteral
2738
3383
  // including ExponentPart
2739
- { begin: `(\\b(${le})((${Me})|\\.)?|(${Me}))[eE][+-]?(${le})[fFdD]?\\b` },
3384
+ { begin: `(\\b(${fe})((${Se})|\\.)?|(${Se}))[eE][+-]?(${fe})[fFdD]?\\b` },
2740
3385
  // excluding ExponentPart
2741
- { begin: `\\b(${le})((${Me})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
2742
- { begin: `(${Me})[fFdD]?\\b` },
2743
- { begin: `\\b(${le})[fFdD]\\b` },
3386
+ { begin: `\\b(${fe})((${Se})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
3387
+ { begin: `(${Se})[fFdD]?\\b` },
3388
+ { begin: `\\b(${fe})[fFdD]\\b` },
2744
3389
  // HexadecimalFloatingPointLiteral
2745
- { begin: `\\b0[xX]((${Re})\\.?|(${Re})?\\.(${Re}))[pP][+-]?(${le})[fFdD]?\\b` },
3390
+ { begin: `\\b0[xX]((${Re})\\.?|(${Re})?\\.(${Re}))[pP][+-]?(${fe})[fFdD]?\\b` },
2746
3391
  // DecimalIntegerLiteral
2747
3392
  { begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
2748
3393
  // HexIntegerLiteral
@@ -2754,11 +3399,11 @@ var le = "[0-9](_*[0-9])*", Me = `\\.(${le})`, Re = "[0-9a-fA-F](_*[0-9a-fA-F])*
2754
3399
  ],
2755
3400
  relevance: 0
2756
3401
  };
2757
- function wn(e, n, t) {
2758
- return t === -1 ? "" : e.replace(n, (s) => wn(e, n, t - 1));
3402
+ function An(e, t, l) {
3403
+ return l === -1 ? "" : e.replace(t, (u) => An(e, t, l - 1));
2759
3404
  }
2760
- function Qt(e) {
2761
- const n = e.regex, t = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", s = t + wn("(?:<" + t + "~~~(?:\\s*,\\s*" + t + "~~~)*>)?", /~~~/g, 2), a = {
3405
+ function Vt(e) {
3406
+ const t = e.regex, l = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", u = l + An("(?:<" + l + "~~~(?:\\s*,\\s*" + l + "~~~)*>)?", /~~~/g, 2), s = {
2762
3407
  keyword: [
2763
3408
  "synchronized",
2764
3409
  "abstract",
@@ -2822,9 +3467,9 @@ function Qt(e) {
2822
3467
  "super",
2823
3468
  "this"
2824
3469
  ]
2825
- }, c = {
3470
+ }, a = {
2826
3471
  className: "meta",
2827
- begin: "@" + t,
3472
+ begin: "@" + l,
2828
3473
  contains: [
2829
3474
  {
2830
3475
  begin: /\(/,
@@ -2833,11 +3478,11 @@ function Qt(e) {
2833
3478
  // allow nested () inside our annotation
2834
3479
  }
2835
3480
  ]
2836
- }, b = {
3481
+ }, o = {
2837
3482
  className: "params",
2838
3483
  begin: /\(/,
2839
3484
  end: /\)/,
2840
- keywords: a,
3485
+ keywords: s,
2841
3486
  relevance: 0,
2842
3487
  contains: [e.C_BLOCK_COMMENT_MODE],
2843
3488
  endsParent: !0
@@ -2845,7 +3490,7 @@ function Qt(e) {
2845
3490
  return {
2846
3491
  name: "Java",
2847
3492
  aliases: ["jsp"],
2848
- keywords: a,
3493
+ keywords: s,
2849
3494
  illegal: /<\/|#/,
2850
3495
  contains: [
2851
3496
  e.COMMENT(
@@ -2886,7 +3531,7 @@ function Qt(e) {
2886
3531
  match: [
2887
3532
  /\b(?:class|interface|enum|extends|implements|new)/,
2888
3533
  /\s+/,
2889
- t
3534
+ l
2890
3535
  ],
2891
3536
  className: {
2892
3537
  1: "keyword",
@@ -2900,9 +3545,9 @@ function Qt(e) {
2900
3545
  },
2901
3546
  {
2902
3547
  begin: [
2903
- n.concat(/(?!else)/, t),
3548
+ t.concat(/(?!else)/, l),
2904
3549
  /\s+/,
2905
- t,
3550
+ l,
2906
3551
  /\s+/,
2907
3552
  /=(?!=)/
2908
3553
  ],
@@ -2916,14 +3561,14 @@ function Qt(e) {
2916
3561
  begin: [
2917
3562
  /record/,
2918
3563
  /\s+/,
2919
- t
3564
+ l
2920
3565
  ],
2921
3566
  className: {
2922
3567
  1: "keyword",
2923
3568
  3: "title.class"
2924
3569
  },
2925
3570
  contains: [
2926
- b,
3571
+ o,
2927
3572
  e.C_LINE_COMMENT_MODE,
2928
3573
  e.C_BLOCK_COMMENT_MODE
2929
3574
  ]
@@ -2936,21 +3581,21 @@ function Qt(e) {
2936
3581
  },
2937
3582
  {
2938
3583
  begin: [
2939
- "(?:" + s + "\\s+)",
3584
+ "(?:" + u + "\\s+)",
2940
3585
  e.UNDERSCORE_IDENT_RE,
2941
3586
  /\s*(?=\()/
2942
3587
  ],
2943
3588
  className: { 2: "title.function" },
2944
- keywords: a,
3589
+ keywords: s,
2945
3590
  contains: [
2946
3591
  {
2947
3592
  className: "params",
2948
3593
  begin: /\(/,
2949
3594
  end: /\)/,
2950
- keywords: a,
3595
+ keywords: s,
2951
3596
  relevance: 0,
2952
3597
  contains: [
2953
- c,
3598
+ a,
2954
3599
  e.APOS_STRING_MODE,
2955
3600
  e.QUOTE_STRING_MODE,
2956
3601
  un,
@@ -2962,41 +3607,41 @@ function Qt(e) {
2962
3607
  ]
2963
3608
  },
2964
3609
  un,
2965
- c
3610
+ a
2966
3611
  ]
2967
3612
  };
2968
3613
  }
2969
- function qt(e) {
2970
- const n = e.regex, t = {}, s = {
3614
+ function jt(e) {
3615
+ const t = e.regex, l = {}, u = {
2971
3616
  begin: /\$\{/,
2972
3617
  end: /\}/,
2973
3618
  contains: [
2974
3619
  "self",
2975
3620
  {
2976
3621
  begin: /:-/,
2977
- contains: [t]
3622
+ contains: [l]
2978
3623
  }
2979
3624
  // default values
2980
3625
  ]
2981
3626
  };
2982
- Object.assign(t, {
3627
+ Object.assign(l, {
2983
3628
  className: "variable",
2984
3629
  variants: [
2985
- { begin: n.concat(
3630
+ { begin: t.concat(
2986
3631
  /\$[\w\d#@][\w\d_]*/,
2987
3632
  // negative look-ahead tries to avoid matching patterns that are not
2988
3633
  // Perl at all like $ident$, @ident@, etc.
2989
3634
  "(?![\\w\\d])(?![$])"
2990
3635
  ) },
2991
- s
3636
+ u
2992
3637
  ]
2993
3638
  });
2994
- const o = {
3639
+ const h = {
2995
3640
  className: "subst",
2996
3641
  begin: /\$\(/,
2997
3642
  end: /\)/,
2998
3643
  contains: [e.BACKSLASH_ESCAPE]
2999
- }, l = {
3644
+ }, n = {
3000
3645
  begin: /<<-?\s*(?=\w+)/,
3001
3646
  starts: { contains: [
3002
3647
  e.END_SAME_AS_BEGIN({
@@ -3005,25 +3650,25 @@ function qt(e) {
3005
3650
  className: "string"
3006
3651
  })
3007
3652
  ] }
3008
- }, i = {
3653
+ }, r = {
3009
3654
  className: "string",
3010
3655
  begin: /"/,
3011
3656
  end: /"/,
3012
3657
  contains: [
3013
3658
  e.BACKSLASH_ESCAPE,
3014
- t,
3015
- o
3659
+ l,
3660
+ h
3016
3661
  ]
3017
3662
  };
3018
- o.contains.push(i);
3019
- const r = {
3663
+ h.contains.push(r);
3664
+ const i = {
3020
3665
  className: "",
3021
3666
  begin: /\\"/
3022
- }, a = {
3667
+ }, s = {
3023
3668
  className: "string",
3024
3669
  begin: /'/,
3025
3670
  end: /'/
3026
- }, c = {
3671
+ }, a = {
3027
3672
  begin: /\$?\(\(/,
3028
3673
  end: /\)\)/,
3029
3674
  contains: [
@@ -3032,9 +3677,9 @@ function qt(e) {
3032
3677
  className: "number"
3033
3678
  },
3034
3679
  e.NUMBER_MODE,
3035
- t
3680
+ l
3036
3681
  ]
3037
- }, b = [
3682
+ }, o = [
3038
3683
  "fish",
3039
3684
  "bash",
3040
3685
  "zsh",
@@ -3044,16 +3689,16 @@ function qt(e) {
3044
3689
  "tcsh",
3045
3690
  "dash",
3046
3691
  "scsh"
3047
- ], p = e.SHEBANG({
3048
- binary: `(${b.join("|")})`,
3692
+ ], c = e.SHEBANG({
3693
+ binary: `(${o.join("|")})`,
3049
3694
  relevance: 10
3050
- }), y = {
3695
+ }), f = {
3051
3696
  className: "function",
3052
3697
  begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
3053
3698
  returnBegin: !0,
3054
3699
  contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
3055
3700
  relevance: 0
3056
- }, m = [
3701
+ }, g = [
3057
3702
  "if",
3058
3703
  "then",
3059
3704
  "else",
@@ -3067,10 +3712,10 @@ function qt(e) {
3067
3712
  "case",
3068
3713
  "esac",
3069
3714
  "function"
3070
- ], N = [
3715
+ ], p = [
3071
3716
  "true",
3072
3717
  "false"
3073
- ], g = { match: /(\/[a-z._-]+)+/ }, _ = [
3718
+ ], d = { match: /(\/[a-z._-]+)+/ }, b = [
3074
3719
  "break",
3075
3720
  "cd",
3076
3721
  "continue",
@@ -3089,7 +3734,7 @@ function qt(e) {
3089
3734
  "trap",
3090
3735
  "umask",
3091
3736
  "unset"
3092
- ], S = [
3737
+ ], E = [
3093
3738
  "alias",
3094
3739
  "bind",
3095
3740
  "builtin",
@@ -3111,7 +3756,7 @@ function qt(e) {
3111
3756
  "typeset",
3112
3757
  "ulimit",
3113
3758
  "unalias"
3114
- ], M = [
3759
+ ], v = [
3115
3760
  "autoload",
3116
3761
  "bg",
3117
3762
  "bindkey",
@@ -3180,7 +3825,7 @@ function qt(e) {
3180
3825
  "zsocket",
3181
3826
  "zstyle",
3182
3827
  "ztcp"
3183
- ], O = [
3828
+ ], y = [
3184
3829
  "chcon",
3185
3830
  "chgrp",
3186
3831
  "chown",
@@ -3290,37 +3935,37 @@ function qt(e) {
3290
3935
  aliases: ["sh"],
3291
3936
  keywords: {
3292
3937
  $pattern: /\b[a-z][a-z0-9._-]+\b/,
3293
- keyword: m,
3294
- literal: N,
3938
+ keyword: g,
3939
+ literal: p,
3295
3940
  built_in: [
3296
- ..._,
3297
- ...S,
3941
+ ...b,
3942
+ ...E,
3298
3943
  // Shell modifiers
3299
3944
  "set",
3300
3945
  "shopt",
3301
- ...M,
3302
- ...O
3946
+ ...v,
3947
+ ...y
3303
3948
  ]
3304
3949
  },
3305
3950
  contains: [
3306
- p,
3951
+ c,
3307
3952
  // to catch known shells and boost relevancy
3308
3953
  e.SHEBANG(),
3309
3954
  // to catch unknown shells but still highlight the shebang
3310
- y,
3311
- c,
3955
+ f,
3956
+ a,
3312
3957
  e.HASH_COMMENT_MODE,
3313
- l,
3314
- g,
3315
- i,
3958
+ n,
3959
+ d,
3316
3960
  r,
3317
- a,
3318
- t
3961
+ i,
3962
+ s,
3963
+ l
3319
3964
  ]
3320
3965
  };
3321
3966
  }
3322
- function Xt(e) {
3323
- const n = e.regex, t = e.COMMENT("--", "$"), s = {
3967
+ function Jt(e) {
3968
+ const t = e.regex, l = e.COMMENT("--", "$"), u = {
3324
3969
  className: "string",
3325
3970
  variants: [
3326
3971
  {
@@ -3329,22 +3974,22 @@ function Xt(e) {
3329
3974
  contains: [{ begin: /''/ }]
3330
3975
  }
3331
3976
  ]
3332
- }, o = {
3977
+ }, h = {
3333
3978
  begin: /"/,
3334
3979
  end: /"/,
3335
3980
  contains: [{ begin: /""/ }]
3336
- }, l = [
3981
+ }, n = [
3337
3982
  "true",
3338
3983
  "false",
3339
3984
  // Not sure it's correct to call NULL literal, and clauses like IS [NOT] NULL look strange that way.
3340
3985
  // "null",
3341
3986
  "unknown"
3342
- ], i = [
3987
+ ], r = [
3343
3988
  "double precision",
3344
3989
  "large object",
3345
3990
  "with timezone",
3346
3991
  "without timezone"
3347
- ], r = [
3992
+ ], i = [
3348
3993
  "bigint",
3349
3994
  "binary",
3350
3995
  "blob",
@@ -3373,7 +4018,7 @@ function Xt(e) {
3373
4018
  "varying",
3374
4019
  // modifier (character varying)
3375
4020
  "varbinary"
3376
- ], a = [
4021
+ ], s = [
3377
4022
  "add",
3378
4023
  "asc",
3379
4024
  "collation",
@@ -3382,7 +4027,7 @@ function Xt(e) {
3382
4027
  "first",
3383
4028
  "last",
3384
4029
  "view"
3385
- ], c = [
4030
+ ], a = [
3386
4031
  "abs",
3387
4032
  "acos",
3388
4033
  "all",
@@ -3749,7 +4394,7 @@ function Xt(e) {
3749
4394
  "within",
3750
4395
  "without",
3751
4396
  "year"
3752
- ], b = [
4397
+ ], o = [
3753
4398
  "abs",
3754
4399
  "acos",
3755
4400
  "array_agg",
@@ -3835,7 +4480,7 @@ function Xt(e) {
3835
4480
  "var_pop",
3836
4481
  "var_samp",
3837
4482
  "width_bucket"
3838
- ], p = [
4483
+ ], c = [
3839
4484
  "current_catalog",
3840
4485
  "current_date",
3841
4486
  "current_default_transform_group",
@@ -3851,7 +4496,7 @@ function Xt(e) {
3851
4496
  "localtime",
3852
4497
  "current_timestamp",
3853
4498
  "localtimestamp"
3854
- ], y = [
4499
+ ], f = [
3855
4500
  "create table",
3856
4501
  "insert into",
3857
4502
  "primary key",
@@ -3868,27 +4513,27 @@ function Xt(e) {
3868
4513
  "nulls last",
3869
4514
  "depth first",
3870
4515
  "breadth first"
3871
- ], m = b, N = [
3872
- ...c,
3873
- ...a
3874
- ].filter((O) => !b.includes(O)), g = {
4516
+ ], g = o, p = [
4517
+ ...a,
4518
+ ...s
4519
+ ].filter((y) => !o.includes(y)), d = {
3875
4520
  className: "variable",
3876
4521
  begin: /@[a-z0-9]+/
3877
- }, _ = {
4522
+ }, b = {
3878
4523
  className: "operator",
3879
4524
  begin: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
3880
4525
  relevance: 0
3881
- }, S = {
3882
- begin: n.concat(/\b/, n.either(...m), /\s*\(/),
4526
+ }, E = {
4527
+ begin: t.concat(/\b/, t.either(...g), /\s*\(/),
3883
4528
  relevance: 0,
3884
- keywords: { built_in: m }
4529
+ keywords: { built_in: g }
3885
4530
  };
3886
- function M(O, {
3887
- exceptions: T,
4531
+ function v(y, {
4532
+ exceptions: m,
3888
4533
  when: D
3889
4534
  } = {}) {
3890
- const $ = D;
3891
- return T = T || [], O.map((R) => R.match(/\|\d+$/) || T.includes(R) ? R : $(R) ? `${R}|0` : R);
4535
+ const S = D;
4536
+ return m = m || [], y.map((A) => A.match(/\|\d+$/) || m.includes(A) ? A : S(A) ? `${A}|0` : A);
3892
4537
  }
3893
4538
  return {
3894
4539
  name: "SQL",
@@ -3897,393 +4542,407 @@ function Xt(e) {
3897
4542
  illegal: /[{}]|<\//,
3898
4543
  keywords: {
3899
4544
  $pattern: /\b[\w\.]+/,
3900
- keyword: M(N, { when: (O) => O.length < 3 }),
3901
- literal: l,
3902
- type: r,
3903
- built_in: p
4545
+ keyword: v(p, { when: (y) => y.length < 3 }),
4546
+ literal: n,
4547
+ type: i,
4548
+ built_in: c
3904
4549
  },
3905
4550
  contains: [
3906
4551
  {
3907
- begin: n.either(...y),
4552
+ begin: t.either(...f),
3908
4553
  relevance: 0,
3909
4554
  keywords: {
3910
4555
  $pattern: /[\w\.]+/,
3911
- keyword: N.concat(y),
3912
- literal: l,
3913
- type: r
4556
+ keyword: p.concat(f),
4557
+ literal: n,
4558
+ type: i
3914
4559
  }
3915
4560
  },
3916
4561
  {
3917
4562
  className: "type",
3918
- begin: n.either(...i)
4563
+ begin: t.either(...r)
3919
4564
  },
3920
- S,
3921
- g,
3922
- s,
3923
- o,
4565
+ E,
4566
+ d,
4567
+ u,
4568
+ h,
3924
4569
  e.C_NUMBER_MODE,
3925
4570
  e.C_BLOCK_COMMENT_MODE,
3926
- t,
3927
- _
4571
+ l,
4572
+ b
3928
4573
  ]
3929
4574
  };
3930
4575
  }
3931
- Z.registerLanguage("xml", Ut);
3932
- Z.registerLanguage("javascript", Gt);
3933
- Z.registerLanguage("json", Kt);
3934
- Z.registerLanguage("yaml", Wt);
3935
- Z.registerLanguage("plaintext", Yt);
3936
- Z.registerLanguage("python", Zt);
3937
- Z.registerLanguage("java", Qt);
3938
- Z.registerLanguage("bash", qt);
3939
- Z.registerLanguage("sql", Xt);
3940
- var d = /* @__PURE__ */ ((e) => (e.EQUAL = "equal", e.DELETE = "removed", e.ADD = "added", e.EMPTY = "empty", e))(d || {});
3941
- const X = "<code-diff-modified>", V = "</code-diff-modified>", Vt = X.replace("<", "&lt;").replace(">", "&gt;"), jt = V.replace("<", "&lt;").replace(">", "&gt;"), de = (e) => e === void 0 ? d.EQUAL : e.added ? d.ADD : e.removed ? d.DELETE : d.EQUAL, De = (e, n, t = "word") => typeof e > "u" ? n : typeof n > "u" ? e : (t === "char" ? Un : Hn)(e, n).filter((o) => de(o) !== d.DELETE).map(
3942
- (o) => de(o) === d.ADD ? `${X}${o.value}${V}` : o.value
3943
- ).join(""), Y = (e, n) => {
3944
- if (!n.match(new RegExp(`(${X}|${V})`, "g")))
3945
- return Z.highlight(n, { language: e }).value;
3946
- let s = n;
3947
- const o = n.replace(new RegExp(`(${X}|${V})`, "g"), ""), l = document.createElement("div");
3948
- l.innerHTML = Z.highlight(o, { language: e }).value;
3949
- let i = !1;
3950
- const r = (a) => {
3951
- a.childNodes.forEach((c) => {
3952
- if (c.nodeType === Node.ELEMENT_NODE && r(c), c.nodeType === Node.TEXT_NODE) {
3953
- if (!c.textContent)
4576
+ J.registerLanguage("xml", Ht);
4577
+ J.registerLanguage("javascript", Wt);
4578
+ J.registerLanguage("json", Qt);
4579
+ J.registerLanguage("yaml", Zt);
4580
+ J.registerLanguage("plaintext", Yt);
4581
+ J.registerLanguage("python", Xt);
4582
+ J.registerLanguage("java", Vt);
4583
+ J.registerLanguage("bash", jt);
4584
+ J.registerLanguage("sql", Jt);
4585
+ var N = /* @__PURE__ */ ((e) => (e.EQUAL = "equal", e.DELETE = "removed", e.ADD = "added", e.EMPTY = "empty", e))(N || {});
4586
+ const ne = "<code-diff-modified>", te = "</code-diff-modified>", qt = ne.replace("<", "&lt;").replace(">", "&gt;"), er = te.replace("<", "&lt;").replace(">", "&gt;"), de = (e) => e === void 0 ? N.EQUAL : e.added ? N.ADD : e.removed ? N.DELETE : N.EQUAL, Ie = (e, t, l = "word") => typeof e > "u" ? t : typeof t > "u" ? e : (l === "char" ? xn : zn)(e, t).filter((h) => de(h) !== N.DELETE).map(
4587
+ (h) => de(h) === N.ADD ? `${ne}${h.value}${te}` : h.value
4588
+ ).join("");
4589
+ function Tn(e, t) {
4590
+ const l = new be.diff_match_patch(), u = l.diff_linesToChars_(e, t), h = u.chars1, n = u.chars2, r = u.lineArray, i = l.diff_main(h, n, !1);
4591
+ return l.diff_charsToLines_(i, r), i.map((s) => {
4592
+ const [a, o] = s;
4593
+ return {
4594
+ count: o.trim().split(`
4595
+ `).length,
4596
+ value: o,
4597
+ removed: a === be.DIFF_DELETE,
4598
+ added: a === be.DIFF_INSERT
4599
+ };
4600
+ });
4601
+ }
4602
+ const j = (e, t) => {
4603
+ if (!t.match(new RegExp(`(${ne}|${te})`, "g")))
4604
+ return J.highlight(t, { language: e }).value;
4605
+ let u = t;
4606
+ const h = t.replace(new RegExp(`(${ne}|${te})`, "g"), ""), n = document.createElement("div");
4607
+ n.innerHTML = J.highlight(h, { language: e }).value;
4608
+ let r = !1;
4609
+ const i = (s) => {
4610
+ s.childNodes.forEach((a) => {
4611
+ if (a.nodeType === Node.ELEMENT_NODE && i(a), a.nodeType === Node.TEXT_NODE) {
4612
+ if (!a.textContent)
3954
4613
  return;
3955
- let b = c.textContent, p = "";
3956
- for (i && (p = p + X); b.length; ) {
3957
- if (s.startsWith(X)) {
3958
- s = s.slice(X.length), p = p + X, i = !0;
4614
+ let o = a.textContent, c = "";
4615
+ for (r && (c = c + ne); o.length; ) {
4616
+ if (u.startsWith(ne)) {
4617
+ u = u.slice(ne.length), c = c + ne, r = !0;
3959
4618
  continue;
3960
4619
  }
3961
- if (s.startsWith(V)) {
3962
- s = s.slice(V.length), p = p + V, i = !1;
4620
+ if (u.startsWith(te)) {
4621
+ u = u.slice(te.length), c = c + te, r = !1;
3963
4622
  continue;
3964
4623
  }
3965
- const y = s.match(new RegExp(`(${X}|${V})`)), m = y && y.index ? y.index : s.length, N = Math.min(m, b.length);
3966
- p = p + s.substring(0, N), s = s.slice(N), b = b.slice(N);
4624
+ const f = u.match(new RegExp(`(${ne}|${te})`)), g = f && f.index ? f.index : u.length, p = Math.min(g, o.length);
4625
+ c = c + u.substring(0, p), u = u.slice(p), o = o.slice(p);
3967
4626
  }
3968
- i && (p = p + V), c.textContent = p;
4627
+ r && (c = c + te), a.textContent = c;
3969
4628
  }
3970
4629
  });
3971
4630
  };
3972
- return r(l), l.innerHTML.replace(new RegExp(Vt, "g"), '<span class="x">').replace(new RegExp(jt, "g"), "</span>");
4631
+ return i(n), n.innerHTML.replace(new RegExp(qt, "g"), '<span class="x">').replace(new RegExp(er, "g"), "</span>");
3973
4632
  };
3974
- function Sn(e) {
3975
- const n = (o, l) => (o.match(new RegExp(l, "g")) || []).length;
3976
- let t = 0, s = 0;
3977
- for (const o of e)
3978
- o.added && (t += n(o.value.trim(), `
3979
- `) + 1), o.removed && (s += n(o.value.trim(), `
4633
+ function Dn(e) {
4634
+ const t = (h, n) => (h.match(new RegExp(n, "g")) || []).length;
4635
+ let l = 0, u = 0;
4636
+ for (const h of e)
4637
+ h.added && (l += t(h.value.trim(), `
4638
+ `) + 1), h.removed && (u += t(h.value.trim(), `
3980
4639
  `) + 1);
3981
- return { additionsNum: t, deletionsNum: s };
4640
+ return { additionsNum: l, deletionsNum: u };
3982
4641
  }
3983
- function Jt(e, n, t = "plaintext", s = "word", o = 10) {
3984
- var N;
3985
- const l = () => ({ type: d.EMPTY }), i = (g, _, S) => ({ type: g, num: _, code: S }), r = fn(e, n);
3986
- let a = 0, c = 0, b = !1;
3987
- const p = [], y = {
3988
- changes: p,
3989
- stat: Sn(r)
4642
+ function nr(e, t, l = "plaintext", u = "word", h = 10) {
4643
+ var p;
4644
+ const n = () => ({ type: N.EMPTY }), r = (d, b, E) => ({ type: d, num: b, code: E }), i = Tn(e, t);
4645
+ let s = 0, a = 0, o = !1;
4646
+ const c = [], f = {
4647
+ changes: c,
4648
+ stat: Dn(i)
3990
4649
  };
3991
- for (let g = 0; g < r.length; g++) {
3992
- if (b) {
3993
- b = !1;
4650
+ for (let d = 0; d < i.length; d++) {
4651
+ if (o) {
4652
+ o = !1;
3994
4653
  continue;
3995
4654
  }
3996
- const [_, S] = [r[g], r[g + 1]], [M, O] = [de(_), de(S)], T = _.value.replace(/\n$/, "").split(`
4655
+ const [b, E] = [i[d], i[d + 1]], [v, y] = [de(b), de(E)], m = b.value.replace(/\n$/, "").split(`
3997
4656
  `);
3998
- if (S === void 0) {
3999
- for (const $ of T) {
4000
- let R = l(), W = l();
4001
- const U = Y(t, $);
4002
- M === d.EQUAL && (a++, c++, R = i(d.EQUAL, a, U), W = i(d.EQUAL, c, U)), M === d.DELETE && (a++, R = i(d.DELETE, a, U), W = l()), M === d.ADD && (c++, R = l(), W = i(d.ADD, c, U)), p.push({ left: R, right: W });
4657
+ if (E === void 0) {
4658
+ for (const S of m) {
4659
+ let A = n(), I = n();
4660
+ const R = j(l, S);
4661
+ v === N.EQUAL && (s++, a++, A = r(N.EQUAL, s, R), I = r(N.EQUAL, a, R)), v === N.DELETE && (s++, A = r(N.DELETE, s, R), I = n()), v === N.ADD && (a++, A = n(), I = r(N.ADD, a, R)), c.push({ left: A, right: I });
4003
4662
  }
4004
4663
  break;
4005
4664
  }
4006
- if (M === d.EQUAL)
4007
- for (const $ of T) {
4008
- a++, c++;
4009
- const R = Y(t, $);
4010
- p.push({
4011
- left: i(d.EQUAL, a, R),
4012
- right: i(d.EQUAL, c, R)
4665
+ if (v === N.EQUAL)
4666
+ for (const S of m) {
4667
+ s++, a++;
4668
+ const A = j(l, S);
4669
+ c.push({
4670
+ left: r(N.EQUAL, s, A),
4671
+ right: r(N.EQUAL, a, A)
4013
4672
  });
4014
4673
  }
4015
- const D = S.value.replace(/\n$/, "").split(`
4674
+ const D = E.value.replace(/\n$/, "").split(`
4016
4675
  `);
4017
- if (M === d.DELETE) {
4018
- if (O === d.EQUAL)
4019
- for (const $ of T)
4020
- a++, p.push({
4021
- left: i(d.DELETE, a, Y(t, $)),
4022
- right: l()
4676
+ if (v === N.DELETE) {
4677
+ if (y === N.EQUAL)
4678
+ for (const S of m)
4679
+ s++, c.push({
4680
+ left: r(N.DELETE, s, j(l, S)),
4681
+ right: n()
4023
4682
  });
4024
- if (O === d.ADD) {
4025
- b = !0;
4026
- const $ = Math.max(_.count, S.count);
4027
- for (let R = 0; R < $; R++) {
4028
- R < _.count && a++, R < S.count && c++;
4029
- const [W, U] = [T[R], D[R]], re = T.length === D.length ? De(U, W, s) : W, ae = T.length === D.length ? De(W, U, s) : U, ge = R < _.count ? i(d.DELETE, a, Y(t, re)) : l(), pe = R < S.count ? i(d.ADD, c, Y(t, ae)) : l();
4030
- p.push({ left: ge, right: pe });
4683
+ if (y === N.ADD) {
4684
+ o = !0;
4685
+ const S = Math.max(b.count, E.count);
4686
+ for (let A = 0; A < S; A++) {
4687
+ A < b.count && s++, A < E.count && a++;
4688
+ const [I, R] = [m[A], D[A]], z = m.length === D.length ? Ie(R, I, u) : I, P = m.length === D.length ? Ie(I, R, u) : R, $ = A < b.count ? r(N.DELETE, s, j(l, z)) : n(), G = A < E.count ? r(N.ADD, a, j(l, P)) : n();
4689
+ c.push({ left: $, right: G });
4031
4690
  }
4032
4691
  }
4033
4692
  }
4034
- if (M === d.ADD)
4035
- for (const $ of T)
4036
- c++, p.push({
4037
- left: l(),
4038
- right: i(d.ADD, c, Y(t, $))
4693
+ if (v === N.ADD)
4694
+ for (const S of m)
4695
+ a++, c.push({
4696
+ left: n(),
4697
+ right: r(N.ADD, a, j(l, S))
4039
4698
  });
4040
4699
  }
4041
- if (e === n) {
4042
- for (let g = 0; g < p.length; g++)
4043
- p[g].fold = !1;
4044
- return y;
4700
+ if (e === t) {
4701
+ for (let d = 0; d < c.length; d++)
4702
+ c[d].fold = !1;
4703
+ return f;
4045
4704
  }
4046
- for (let g = 0; g < p.length; g++) {
4047
- const _ = p[g];
4048
- if (_.left.type === d.DELETE || _.right.type === d.ADD) {
4049
- const [S, M] = [Math.max(g - o, 0), Math.min(g + o + 1, p.length)];
4050
- for (let O = S; O < M; O++)
4051
- p[O].fold = !1;
4705
+ for (let d = 0; d < c.length; d++) {
4706
+ const b = c[d];
4707
+ if (b.left.type === N.DELETE || b.right.type === N.ADD) {
4708
+ const [E, v] = [Math.max(d - h, 0), Math.min(d + h + 1, c.length)];
4709
+ for (let y = E; y < v; y++)
4710
+ c[y].fold = !1;
4052
4711
  }
4053
- _.fold === void 0 && (_.fold = !0);
4712
+ b.fold === void 0 && (b.fold = !0);
4054
4713
  }
4055
- const m = [];
4056
- for (let g = 0; g < p.length; g++) {
4057
- const _ = p[g];
4058
- if (_.fold === !1) {
4059
- m.push(_);
4714
+ const g = [];
4715
+ for (let d = 0; d < c.length; d++) {
4716
+ const b = c[d];
4717
+ if (b.fold === !1) {
4718
+ g.push(b);
4060
4719
  continue;
4061
4720
  }
4062
- _.fold === !0 && ((N = m[m.length - 1]) == null ? void 0 : N.fold) !== !0 && m.push(_);
4721
+ b.fold === !0 && ((p = g[g.length - 1]) == null ? void 0 : p.fold) !== !0 && g.push(b);
4063
4722
  }
4064
- return y.changes = m, y;
4723
+ return f.changes = g, f;
4065
4724
  }
4066
- function es(e, n, t = "plaintext", s = "word", o = 2) {
4067
- var y;
4068
- const l = fn(e, n);
4069
- let i = 0, r = 0, a = !1;
4070
- const c = [], b = {
4071
- changes: c,
4072
- stat: Sn(l)
4725
+ function tr(e, t, l = "plaintext", u = "word", h = 10) {
4726
+ var f;
4727
+ const n = Tn(e, t);
4728
+ let r = 0, i = 0, s = !1;
4729
+ const a = [], o = {
4730
+ changes: a,
4731
+ stat: Dn(n)
4073
4732
  };
4074
- for (let m = 0; m < l.length; m++) {
4075
- if (a) {
4076
- a = !1;
4733
+ for (let g = 0; g < n.length; g++) {
4734
+ if (s) {
4735
+ s = !1;
4077
4736
  continue;
4078
4737
  }
4079
- const [N, g] = [l[m], l[m + 1]], [_, S] = [de(N), de(g)], M = N.value.replace(/\n$/, "").split(`
4738
+ const [p, d] = [n[g], n[g + 1]], [b, E] = [de(p), de(d)], v = p.value.replace(/\n$/, "").split(`
4080
4739
  `);
4081
- if (g === void 0) {
4082
- for (const T of M) {
4083
- _ === d.EQUAL && (i++, r++), _ === d.DELETE && i++, _ === d.ADD && r++;
4084
- const D = Y(t, T);
4085
- c.push({
4086
- type: _,
4740
+ if (d === void 0) {
4741
+ for (const m of v) {
4742
+ b === N.EQUAL && (r++, i++), b === N.DELETE && r++, b === N.ADD && i++;
4743
+ const D = j(l, m);
4744
+ a.push({
4745
+ type: b,
4087
4746
  code: D,
4088
- addNum: _ === d.DELETE ? void 0 : r,
4089
- delNum: _ === d.ADD ? void 0 : i
4747
+ addNum: b === N.DELETE ? void 0 : i,
4748
+ delNum: b === N.ADD ? void 0 : r
4090
4749
  });
4091
4750
  }
4092
4751
  break;
4093
4752
  }
4094
- if (_ === d.EQUAL)
4095
- for (const T of M) {
4096
- i++, r++;
4097
- const D = Y(t, T);
4098
- c.push({ type: d.EQUAL, code: D, delNum: i, addNum: r });
4753
+ if (b === N.EQUAL)
4754
+ for (const m of v) {
4755
+ r++, i++;
4756
+ const D = j(l, m);
4757
+ a.push({ type: N.EQUAL, code: D, delNum: r, addNum: i });
4099
4758
  }
4100
- const O = g.value.replace(/\n$/, "").split(`
4759
+ const y = d.value.replace(/\n$/, "").split(`
4101
4760
  `);
4102
- if (_ === d.DELETE)
4103
- if (S === d.ADD && M.length === O.length) {
4104
- for (let T = 0; T < M.length; T++) {
4105
- const D = M[T], $ = O[T];
4106
- i++;
4107
- const R = Y(t, De($, D, s));
4108
- c.push({ type: d.DELETE, code: R, delNum: i });
4109
- }
4110
- for (let T = 0; T < O.length; T++) {
4111
- const D = M[T], $ = O[T];
4761
+ if (b === N.DELETE)
4762
+ if (E === N.ADD && v.length === y.length) {
4763
+ for (let m = 0; m < v.length; m++) {
4764
+ const D = v[m], S = y[m];
4112
4765
  r++;
4113
- const R = Y(t, De(D, $, s));
4114
- c.push({ type: d.ADD, code: R, addNum: r });
4766
+ const A = j(l, Ie(S, D, u));
4767
+ a.push({ type: N.DELETE, code: A, delNum: r });
4115
4768
  }
4116
- a = !0;
4117
- } else
4118
- for (const T of M) {
4769
+ for (let m = 0; m < y.length; m++) {
4770
+ const D = v[m], S = y[m];
4119
4771
  i++;
4120
- const D = Y(t, T);
4121
- c.push({ type: d.DELETE, code: D, delNum: i });
4772
+ const A = j(l, Ie(D, S, u));
4773
+ a.push({ type: N.ADD, code: A, addNum: i });
4774
+ }
4775
+ s = !0;
4776
+ } else
4777
+ for (const m of v) {
4778
+ r++;
4779
+ const D = j(l, m);
4780
+ a.push({ type: N.DELETE, code: D, delNum: r });
4122
4781
  }
4123
- if (_ === d.ADD)
4124
- for (const T of M) {
4125
- r++;
4126
- const D = Y(t, T);
4127
- c.push({ type: d.ADD, code: D, addNum: r });
4782
+ if (b === N.ADD)
4783
+ for (const m of v) {
4784
+ i++;
4785
+ const D = j(l, m);
4786
+ a.push({ type: N.ADD, code: D, addNum: i });
4128
4787
  }
4129
4788
  }
4130
- for (let m = 0; m < c.length; m++) {
4131
- const N = c[m];
4132
- if (N.type === d.DELETE || N.type === d.ADD) {
4133
- const [g, _] = [Math.max(m - o, 0), Math.min(m + o + 1, c.length)];
4134
- for (let S = g; S < _; S++)
4135
- c[S].fold = !1;
4789
+ for (let g = 0; g < a.length; g++) {
4790
+ const p = a[g];
4791
+ if (p.type === N.DELETE || p.type === N.ADD) {
4792
+ const [d, b] = [Math.max(g - h, 0), Math.min(g + h + 1, a.length)];
4793
+ for (let E = d; E < b; E++)
4794
+ a[E].fold = !1;
4136
4795
  }
4137
- N.fold === void 0 && (N.fold = !0);
4796
+ p.fold === void 0 && (p.fold = !0);
4138
4797
  }
4139
- if (e === n) {
4140
- for (let m = 0; m < c.length; m++)
4141
- c[m].fold = !1;
4142
- return b;
4798
+ if (e === t) {
4799
+ for (let g = 0; g < a.length; g++)
4800
+ a[g].fold = !1;
4801
+ return o;
4143
4802
  }
4144
- const p = [];
4145
- for (let m = 0; m < c.length; m++) {
4146
- const N = c[m];
4147
- if (N.fold === !1) {
4148
- p.push(N);
4803
+ const c = [];
4804
+ for (let g = 0; g < a.length; g++) {
4805
+ const p = a[g];
4806
+ if (p.fold === !1) {
4807
+ c.push(p);
4149
4808
  continue;
4150
4809
  }
4151
- N.fold === !0 && (m === 0 || ((y = p[p.length - 1]) == null ? void 0 : y.fold) !== !0) && p.push(N);
4810
+ p.fold === !0 && (g === 0 || ((f = c[c.length - 1]) == null ? void 0 : f.fold) !== !0) && c.push(p);
4152
4811
  }
4153
- return b.changes = p, b;
4812
+ return o.changes = c, o;
4154
4813
  }
4155
- const ns = { key: 0 }, ts = /* @__PURE__ */ C("td", { class: "blob-num blob-num-hunk" }, " > ", -1), ss = /* @__PURE__ */ C("td", { class: "blob-num blob-num-hunk" }, " > ", -1), is = /* @__PURE__ */ C("td", {
4814
+ const rr = { key: 0 }, ir = /* @__PURE__ */ U("td", { class: "blob-num blob-num-hunk" }, " > ", -1), sr = /* @__PURE__ */ U("td", { class: "blob-num blob-num-hunk" }, " > ", -1), ar = /* @__PURE__ */ U("td", {
4156
4815
  class: "blob-code blob-code-hunk",
4157
4816
  align: "left"
4158
- }, " ⋯ ", -1), rs = [
4159
- ts,
4160
- ss,
4161
- is
4162
- ], as = { key: 1 }, os = ["data-code-marker", "innerHTML"], cs = /* @__PURE__ */ ye({
4817
+ }, " ⋯ ", -1), or = [
4818
+ ir,
4819
+ sr,
4820
+ ar
4821
+ ], lr = { key: 1 }, cr = ["data-code-marker", "innerHTML"], ur = /* @__PURE__ */ we({
4163
4822
  __name: "UnifiedLine",
4164
4823
  props: {
4165
4824
  line: null
4166
4825
  },
4167
4826
  setup(e) {
4168
- const n = (t) => t === d.DELETE ? "-" : t === d.ADD ? "+" : "";
4169
- return (t, s) => e.line.fold ? (H(), K("tr", ns, rs)) : (H(), K("tr", as, [
4170
- C("td", {
4171
- class: he(["blob-num", {
4172
- "blob-num-deletion": e.line.type === B(d).DELETE,
4173
- "blob-num-addition": e.line.type === B(d).ADD,
4174
- "blob-num-context": e.line.type === B(d).EQUAL
4827
+ const t = (l) => l === N.DELETE ? "-" : l === N.ADD ? "+" : "";
4828
+ return (l, u) => e.line.fold ? (W(), V("tr", rr, or)) : (W(), V("tr", lr, [
4829
+ U("td", {
4830
+ class: pe(["blob-num", {
4831
+ "blob-num-deletion": e.line.type === F(N).DELETE,
4832
+ "blob-num-addition": e.line.type === F(N).ADD,
4833
+ "blob-num-context": e.line.type === F(N).EQUAL
4175
4834
  }])
4176
- }, fe(e.line.delNum), 3),
4177
- C("td", {
4178
- class: he(["blob-num", {
4179
- "blob-num-deletion": e.line.type === B(d).DELETE,
4180
- "blob-num-addition": e.line.type === B(d).ADD,
4181
- "blob-num-context": e.line.type === B(d).EQUAL
4835
+ }, he(e.line.delNum), 3),
4836
+ U("td", {
4837
+ class: pe(["blob-num", {
4838
+ "blob-num-deletion": e.line.type === F(N).DELETE,
4839
+ "blob-num-addition": e.line.type === F(N).ADD,
4840
+ "blob-num-context": e.line.type === F(N).EQUAL
4182
4841
  }])
4183
- }, fe(e.line.addNum), 3),
4184
- C("td", {
4185
- class: he(["blob-code", {
4186
- "blob-code-deletion": e.line.type === B(d).DELETE,
4187
- "blob-code-addition": e.line.type === B(d).ADD,
4188
- "blob-code-context": e.line.type === B(d).EQUAL
4842
+ }, he(e.line.addNum), 3),
4843
+ U("td", {
4844
+ class: pe(["blob-code", {
4845
+ "blob-code-deletion": e.line.type === F(N).DELETE,
4846
+ "blob-code-addition": e.line.type === F(N).ADD,
4847
+ "blob-code-context": e.line.type === F(N).EQUAL
4189
4848
  }])
4190
4849
  }, [
4191
- C("span", {
4850
+ U("span", {
4192
4851
  class: "blob-code-inner blob-code-marker",
4193
- "data-code-marker": n(e.line.type),
4852
+ "data-code-marker": t(e.line.type),
4194
4853
  innerHTML: e.line.code
4195
- }, null, 8, os)
4854
+ }, null, 8, cr)
4196
4855
  ], 2)
4197
4856
  ]));
4198
4857
  }
4199
- }), ls = { class: "diff-table" }, us = /* @__PURE__ */ ye({
4858
+ }), fr = { class: "diff-table" }, gr = /* @__PURE__ */ we({
4200
4859
  __name: "UnifiedViewer",
4201
4860
  props: {
4202
4861
  diffChange: null
4203
4862
  },
4204
4863
  setup(e) {
4205
- return (n, t) => (H(), K("table", ls, [
4206
- C("tbody", null, [
4207
- (H(!0), K(ue, null, He(e.diffChange, (s, o) => (H(), Oe(cs, {
4208
- key: o,
4209
- line: s
4864
+ return (t, l) => (W(), V("table", fr, [
4865
+ U("tbody", null, [
4866
+ (W(!0), V(ge, null, ze(e.diffChange, (u, h) => (W(), Le(ur, {
4867
+ key: h,
4868
+ line: u
4210
4869
  }, null, 8, ["line"]))), 128))
4211
4870
  ])
4212
4871
  ]));
4213
4872
  }
4214
- }), fs = { key: 0 }, ds = /* @__PURE__ */ C("td", {
4873
+ }), hr = { key: 0 }, dr = /* @__PURE__ */ U("td", {
4215
4874
  class: "blob-num blob-num-hunk",
4216
4875
  colspan: "1"
4217
- }, " > ", -1), gs = /* @__PURE__ */ C("td", {
4876
+ }, " > ", -1), pr = /* @__PURE__ */ U("td", {
4218
4877
  class: "blob-code blob-code-inner blob-code-hunk",
4219
4878
  colspan: "3",
4220
4879
  align: "left"
4221
- }, " ⋯ ", -1), ps = [
4222
- ds,
4223
- gs
4224
- ], hs = { key: 1 }, bs = /* @__PURE__ */ C("td", { class: "blob-num blob-num-empty empty-cell" }, null, -1), Es = /* @__PURE__ */ C("td", { class: "blob-code blob-code-empty empty-cell" }, null, -1), _s = ["data-code-marker", "innerHTML"], ms = /* @__PURE__ */ ye({
4880
+ }, " ⋯ ", -1), br = [
4881
+ dr,
4882
+ pr
4883
+ ], _r = { key: 1 }, Er = /* @__PURE__ */ U("td", { class: "blob-num blob-num-empty empty-cell" }, null, -1), vr = /* @__PURE__ */ U("td", { class: "blob-code blob-code-empty empty-cell" }, null, -1), mr = ["data-code-marker", "innerHTML"], wr = /* @__PURE__ */ we({
4225
4884
  __name: "SplitLine",
4226
4885
  props: {
4227
4886
  splitLine: null
4228
4887
  },
4229
4888
  setup(e) {
4230
- const n = (t) => t === d.DELETE ? "-" : t === d.ADD ? "+" : "";
4231
- return (t, s) => e.splitLine.fold ? (H(), K("tr", fs, ps)) : (H(), K("tr", hs, [
4232
- (H(!0), K(ue, null, He([e.splitLine.left, e.splitLine.right], (o) => (H(), K(ue, null, [
4233
- o.type === B(d).EMPTY ? (H(), K(ue, { key: 0 }, [
4234
- bs,
4235
- Es
4236
- ], 64)) : (H(), K(ue, { key: 1 }, [
4237
- C("td", {
4238
- class: he(["blob-num", {
4239
- "blob-num-deletion": o.type === B(d).DELETE,
4240
- "blob-num-addition": o.type === B(d).ADD,
4241
- "blob-num-context": o.type === B(d).EQUAL
4889
+ const t = (l) => l === N.DELETE ? "-" : l === N.ADD ? "+" : "";
4890
+ return (l, u) => e.splitLine.fold ? (W(), V("tr", hr, br)) : (W(), V("tr", _r, [
4891
+ (W(!0), V(ge, null, ze([e.splitLine.left, e.splitLine.right], (h) => (W(), V(ge, null, [
4892
+ h.type === F(N).EMPTY ? (W(), V(ge, { key: 0 }, [
4893
+ Er,
4894
+ vr
4895
+ ], 64)) : (W(), V(ge, { key: 1 }, [
4896
+ U("td", {
4897
+ class: pe(["blob-num", {
4898
+ "blob-num-deletion": h.type === F(N).DELETE,
4899
+ "blob-num-addition": h.type === F(N).ADD,
4900
+ "blob-num-context": h.type === F(N).EQUAL
4242
4901
  }])
4243
- }, fe(o.num), 3),
4244
- C("td", {
4245
- class: he(["blob-code", {
4246
- "blob-code-deletion": o.type === B(d).DELETE,
4247
- "blob-code-addition": o.type === B(d).ADD,
4248
- "blob-code-context": o.type === B(d).EQUAL
4902
+ }, he(h.num), 3),
4903
+ U("td", {
4904
+ class: pe(["blob-code", {
4905
+ "blob-code-deletion": h.type === F(N).DELETE,
4906
+ "blob-code-addition": h.type === F(N).ADD,
4907
+ "blob-code-context": h.type === F(N).EQUAL
4249
4908
  }])
4250
4909
  }, [
4251
- C("span", {
4910
+ U("span", {
4252
4911
  class: "blob-code-inner blob-code-marker",
4253
- "data-code-marker": n(o.type),
4254
- innerHTML: o.code
4255
- }, null, 8, _s)
4912
+ "data-code-marker": t(h.type),
4913
+ innerHTML: h.code
4914
+ }, null, 8, mr)
4256
4915
  ], 2)
4257
4916
  ], 64))
4258
4917
  ], 64))), 256))
4259
4918
  ]));
4260
4919
  }
4261
- }), ys = { class: "file-diff-split diff-table" }, Ns = /* @__PURE__ */ C("colgroup", null, [
4262
- /* @__PURE__ */ C("col", { width: "44" }),
4263
- /* @__PURE__ */ C("col"),
4264
- /* @__PURE__ */ C("col", { width: "44" }),
4265
- /* @__PURE__ */ C("col")
4266
- ], -1), As = /* @__PURE__ */ ye({
4920
+ }), yr = { class: "file-diff-split diff-table" }, Nr = /* @__PURE__ */ U("colgroup", null, [
4921
+ /* @__PURE__ */ U("col", { width: "44" }),
4922
+ /* @__PURE__ */ U("col"),
4923
+ /* @__PURE__ */ U("col", { width: "44" }),
4924
+ /* @__PURE__ */ U("col")
4925
+ ], -1), Mr = /* @__PURE__ */ we({
4267
4926
  __name: "SplitViewer",
4268
4927
  props: {
4269
4928
  diffChange: null
4270
4929
  },
4271
4930
  setup(e) {
4272
- return (n, t) => (H(), K("table", ys, [
4273
- Ns,
4274
- C("tbody", null, [
4275
- (H(!0), K(ue, null, He(e.diffChange, (s, o) => (H(), Oe(ms, {
4276
- key: o,
4277
- "split-line": s
4931
+ return (t, l) => (W(), V("table", yr, [
4932
+ Nr,
4933
+ U("tbody", null, [
4934
+ (W(!0), V(ge, null, ze(e.diffChange, (u, h) => (W(), Le(wr, {
4935
+ key: h,
4936
+ "split-line": u
4278
4937
  }, null, 8, ["split-line"]))), 128))
4279
4938
  ])
4280
4939
  ]));
4281
4940
  }
4282
4941
  });
4283
- const vs = { class: "file-header" }, Ts = { class: "file-info" }, ws = { class: "filename" }, Ss = { class: "diff-stat" }, Ms = { class: "diff-stat-added" }, Rs = {
4942
+ const Ar = { class: "file-header" }, Tr = { class: "file-info" }, Dr = { class: "filename" }, Sr = { class: "diff-stat" }, Rr = { class: "diff-stat-added" }, Or = {
4284
4943
  class: "diff-stat-deleted",
4285
4944
  style: { "margin-left": "8px" }
4286
- }, xs = /* @__PURE__ */ ye({
4945
+ }, Lr = /* @__PURE__ */ we({
4287
4946
  __name: "CodeDiff",
4288
4947
  props: {
4289
4948
  newString: null,
@@ -4298,46 +4957,46 @@ const vs = { class: "file-header" }, Ts = { class: "file-info" }, ws = { class:
4298
4957
  filename: { default: void 0 }
4299
4958
  },
4300
4959
  setup(e) {
4301
- const n = e, t = we(() => n.outputFormat === "line-by-line"), s = we(() => {
4302
- const i = n.trim ? n.oldString.trim() : n.oldString;
4303
- return n.noDiffLineFeed ? i.replace(/(\r\n)/g, `
4304
- `) : i;
4305
- }), o = we(() => {
4306
- const i = n.trim ? n.newString.trim() : n.newString;
4307
- return n.noDiffLineFeed ? i.replace(/(\r\n)/g, `
4308
- `) : i;
4309
- }), l = we(
4310
- () => t.value ? es(s.value, o.value, n.language, n.diffStyle, n.context) : Jt(s.value, o.value, n.language, n.diffStyle, n.context)
4960
+ const t = e, l = Te(() => t.outputFormat === "line-by-line"), u = Te(() => {
4961
+ const r = t.trim ? t.oldString.trim() : t.oldString;
4962
+ return t.noDiffLineFeed ? r.replace(/(\r\n)/g, `
4963
+ `) : r;
4964
+ }), h = Te(() => {
4965
+ const r = t.trim ? t.newString.trim() : t.newString;
4966
+ return t.noDiffLineFeed ? r.replace(/(\r\n)/g, `
4967
+ `) : r;
4968
+ }), n = Te(
4969
+ () => l.value ? tr(u.value, h.value, t.language, t.diffStyle, t.context) : nr(u.value, h.value, t.language, t.diffStyle, t.context)
4311
4970
  );
4312
- return (i, r) => (H(), K("div", {
4971
+ return (r, i) => (W(), V("div", {
4313
4972
  class: "code-diff-view",
4314
- style: In({ maxHeight: e.maxHeight })
4973
+ style: Bn({ maxHeight: e.maxHeight })
4315
4974
  }, [
4316
- C("div", vs, [
4317
- C("div", Ts, [
4318
- C("span", ws, fe(e.filename), 1),
4319
- C("span", Ss, [
4320
- C("span", Ms, "+" + fe(B(l).stat.additionsNum) + " additions", 1),
4321
- C("span", Rs, "-" + fe(B(l).stat.deletionsNum) + " deletions", 1)
4975
+ U("div", Ar, [
4976
+ U("div", Tr, [
4977
+ U("span", Dr, he(e.filename), 1),
4978
+ U("span", Sr, [
4979
+ U("span", Rr, "+" + he(F(n).stat.additionsNum) + " additions", 1),
4980
+ U("span", Or, "-" + he(F(n).stat.deletionsNum) + " deletions", 1)
4322
4981
  ])
4323
4982
  ])
4324
4983
  ]),
4325
- B(t) ? (H(), Oe(us, {
4984
+ F(l) ? (W(), Le(gr, {
4326
4985
  key: 0,
4327
- "diff-change": B(l).changes
4328
- }, null, 8, ["diff-change"])) : (H(), Oe(As, {
4986
+ "diff-change": F(n).changes
4987
+ }, null, 8, ["diff-change"])) : (W(), Le(Mr, {
4329
4988
  key: 1,
4330
- "diff-change": B(l).changes
4989
+ "diff-change": F(n).changes
4331
4990
  }, null, 8, ["diff-change"]))
4332
4991
  ], 4));
4333
4992
  }
4334
- }), Os = (e) => {
4335
- e.component("CodeDiff", xs);
4336
- }, Ds = {
4337
- install: Os,
4338
- hljs: Z
4993
+ }), Cr = (e) => {
4994
+ e.component("CodeDiff", Lr);
4995
+ }, kr = {
4996
+ install: Cr,
4997
+ hljs: J
4339
4998
  };
4340
4999
  export {
4341
- xs as CodeDiff,
4342
- Ds as default
5000
+ Lr as CodeDiff,
5001
+ kr as default
4343
5002
  };