2024-08-31 01:03:37 +08:00

1 line
78 KiB
JavaScript
Executable File

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(this,(function(){return e={696:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertChangesToDMP=function(e){for(var t,n,i=[],r=0;r<e.length;r++)n=(t=e[r]).added?1:t.removed?-1:0,i.push([n,t.value]);return i}},826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertChangesToXML=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];i.added?t.push("<ins>"):i.removed&&t.push("<del>"),t.push(i.value.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")),i.added?t.push("</ins>"):i.removed&&t.push("</del>")}return t.join("")}},976:(e,t,n)=>{"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=function(e,t,n){return r.diff(e,t,n)},t.arrayDiff=void 0;var r=new(((i=n(913))&&i.__esModule?i:{default:i}).default);t.arrayDiff=r,r.tokenize=function(e){return e.slice()},r.join=r.removeEmpty=function(e){return e}},913:(e,t)=>{"use strict";function n(){}function i(e,t,n,i,r){for(var a=0,l=t.length,s=0,o=0;a<l;a++){var c=t[a];if(c.removed){if(c.value=e.join(i.slice(o,o+c.count)),o+=c.count,a&&t[a-1].added){var f=t[a-1];t[a-1]=t[a],t[a]=f}}else{if(!c.added&&r){var u=n.slice(s,s+c.count);u=u.map((function(e,t){var n=i[o+t];return n.length>e.length?n:e})),c.value=e.join(u)}else c.value=e.join(n.slice(s,s+c.count));s+=c.count,c.added||(o+=c.count)}}var d=t[l-1];return l>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(t[l-2].value+=d.value,t.pop()),t}function r(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.callback;"function"==typeof n&&(a=n,n={}),this.options=n;var l=this;function s(e){return a?(setTimeout((function(){a(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var o=(t=this.removeEmpty(this.tokenize(t))).length,c=e.length,f=1,u=o+c,d=[{newPos:-1,components:[]}],p=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=o&&p+1>=c)return s([{value:this.join(t),count:t.length}]);function h(){for(var n=-1*f;n<=f;n+=2){var a=void 0,u=d[n-1],p=d[n+1],h=(p?p.newPos:0)-n;u&&(d[n-1]=void 0);var g=u&&u.newPos+1<o,m=p&&0<=h&&h<c;if(g||m){if(!g||m&&u.newPos<p.newPos?(a=r(p),l.pushComponent(a.components,void 0,!0)):((a=u).newPos++,l.pushComponent(a.components,!0,void 0)),h=l.extractCommon(a,t,e,n),a.newPos+1>=o&&h+1>=c)return s(i(l,a.components,t,e,l.useLongestToken));d[n]=a}else d[n]=void 0}f++}if(a)!function e(){setTimeout((function(){if(f>u)return a();h()||e()}),0)}();else for(;f<=u;){var g=h();if(g)return g}},pushComponent:function(e,t,n){var i=e[e.length-1];i&&i.added===t&&i.removed===n?e[e.length-1]={count:i.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,i){for(var r=t.length,a=n.length,l=e.newPos,s=l-i,o=0;l+1<r&&s+1<a&&this.equals(t[l+1],n[s+1]);)l++,s++,o++;return o&&e.components.push({count:o}),e.newPos=l,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},630:(e,t,n)=>{"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return r.diff(e,t,n)},t.characterDiff=void 0;var r=new(((i=n(913))&&i.__esModule?i:{default:i}).default);t.characterDiff=r},852:(e,t,n)=>{"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.diffCss=function(e,t,n){return r.diff(e,t,n)},t.cssDiff=void 0;var r=new(((i=n(913))&&i.__esModule?i:{default:i}).default);t.cssDiff=r,r.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)}},276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffJson=function(e,t,n){return o.diff(e,t,n)},t.canonicalize=c,t.jsonDiff=void 0;var i,r=(i=n(913))&&i.__esModule?i:{default:i},a=n(187);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=Object.prototype.toString,o=new r.default;function c(e,t,n,i,r){var a,o;for(t=t||[],n=n||[],i&&(e=i(r,e)),a=0;a<t.length;a+=1)if(t[a]===e)return n[a];if("[object Array]"===s.call(e)){for(t.push(e),o=new Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=c(e[a],t,n,i,r);return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),"object"===l(e)&&null!==e){t.push(e),o={},n.push(o);var f,u=[];for(f in e)e.hasOwnProperty(f)&&u.push(f);for(u.sort(),a=0;a<u.length;a+=1)o[f=u[a]]=c(e[f],t,n,i,f);t.pop(),n.pop()}else o=e;return o}t.jsonDiff=o,o.useLongestToken=!0,o.tokenize=a.lineDiff.tokenize,o.castInput=function(e){var t=this.options,n=t.undefinedReplacement,i=t.stringifyReplacer,r=void 0===i?function(e,t){return void 0===t?n:t}:i;return"string"==typeof e?e:JSON.stringify(c(e,null,null,r),r," ")},o.equals=function(e,t){return r.default.prototype.equals.call(o,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))}},187:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffLines=function(e,t,n){return l.diff(e,t,n)},t.diffTrimmedLines=function(e,t,n){var i=(0,a.generateOptions)(n,{ignoreWhitespace:!0});return l.diff(e,t,i)},t.lineDiff=void 0;var i,r=(i=n(913))&&i.__esModule?i:{default:i},a=n(9),l=new r.default;t.lineDiff=l,l.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var i=0;i<n.length;i++){var r=n[i];i%2&&!this.options.newlineIsToken?t[t.length-1]+=r:(this.options.ignoreWhitespace&&(r=r.trim()),t.push(r))}return t}},146:(e,t,n)=>{"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.diffSentences=function(e,t,n){return r.diff(e,t,n)},t.sentenceDiff=void 0;var r=new(((i=n(913))&&i.__esModule?i:{default:i}).default);t.sentenceDiff=r,r.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)}},303:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffWords=function(e,t,n){return n=(0,a.generateOptions)(n,{ignoreWhitespace:!0}),o.diff(e,t,n)},t.diffWordsWithSpace=function(e,t,n){return o.diff(e,t,n)},t.wordDiff=void 0;var i,r=(i=n(913))&&i.__esModule?i:{default:i},a=n(9),l=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,s=/\S/,o=new r.default;t.wordDiff=o,o.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!s.test(e)&&!s.test(t)},o.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&l.test(t[n])&&l.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t}},785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Diff",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"diffChars",{enumerable:!0,get:function(){return a.diffChars}}),Object.defineProperty(t,"diffWords",{enumerable:!0,get:function(){return l.diffWords}}),Object.defineProperty(t,"diffWordsWithSpace",{enumerable:!0,get:function(){return l.diffWordsWithSpace}}),Object.defineProperty(t,"diffLines",{enumerable:!0,get:function(){return s.diffLines}}),Object.defineProperty(t,"diffTrimmedLines",{enumerable:!0,get:function(){return s.diffTrimmedLines}}),Object.defineProperty(t,"diffSentences",{enumerable:!0,get:function(){return o.diffSentences}}),Object.defineProperty(t,"diffCss",{enumerable:!0,get:function(){return c.diffCss}}),Object.defineProperty(t,"diffJson",{enumerable:!0,get:function(){return f.diffJson}}),Object.defineProperty(t,"canonicalize",{enumerable:!0,get:function(){return f.canonicalize}}),Object.defineProperty(t,"diffArrays",{enumerable:!0,get:function(){return u.diffArrays}}),Object.defineProperty(t,"applyPatch",{enumerable:!0,get:function(){return d.applyPatch}}),Object.defineProperty(t,"applyPatches",{enumerable:!0,get:function(){return d.applyPatches}}),Object.defineProperty(t,"parsePatch",{enumerable:!0,get:function(){return p.parsePatch}}),Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return h.merge}}),Object.defineProperty(t,"structuredPatch",{enumerable:!0,get:function(){return g.structuredPatch}}),Object.defineProperty(t,"createTwoFilesPatch",{enumerable:!0,get:function(){return g.createTwoFilesPatch}}),Object.defineProperty(t,"createPatch",{enumerable:!0,get:function(){return g.createPatch}}),Object.defineProperty(t,"convertChangesToDMP",{enumerable:!0,get:function(){return m.convertChangesToDMP}}),Object.defineProperty(t,"convertChangesToXML",{enumerable:!0,get:function(){return b.convertChangesToXML}});var i,r=(i=n(913))&&i.__esModule?i:{default:i},a=n(630),l=n(303),s=n(187),o=n(146),c=n(852),f=n(276),u=n(976),d=n(690),p=n(719),h=n(51),g=n(286),m=n(696),b=n(826)},690:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyPatch=l,t.applyPatches=function(e,t){"string"==typeof e&&(e=(0,r.parsePatch)(e));var n=0;!function i(){var r=e[n++];if(!r)return t.complete();t.loadFile(r,(function(e,n){if(e)return t.complete(e);var a=l(n,r,t);t.patched(r,a,(function(e){if(e)return t.complete(e);i()}))}))}()};var i,r=n(719),a=(i=n(495))&&i.__esModule?i:{default:i};function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,r.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var i,l,s=e.split(/\r\n|[\n\v\f\r\x85]/),o=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],c=t.hunks,f=n.compareLine||function(e,t,n,i){return t===i},u=0,d=n.fuzzFactor||0,p=0,h=0;function g(e,t){for(var n=0;n<e.lines.length;n++){var i=e.lines[n],r=i.length>0?i[0]:" ",a=i.length>0?i.substr(1):i;if(" "===r||"-"===r){if(!f(t+1,s[t],r,a)&&++u>d)return!1;t++}}return!0}for(var m=0;m<c.length;m++){for(var b=c[m],v=s.length-b.oldLines,y=0,w=h+b.oldStart-1,x=(0,a.default)(w,p,v);void 0!==y;y=x())if(g(b,w+y)){b.offset=h+=y;break}if(void 0===y)return!1;p=b.offset+b.oldStart+b.oldLines}for(var j=0,L=0;L<c.length;L++){var S=c[L],T=S.oldStart+S.offset+j-1;j+=S.newLines-S.oldLines;for(var C=0;C<S.lines.length;C++){var _=S.lines[C],N=_.length>0?_[0]:" ",k=_.length>0?_.substr(1):_,O=S.linedelimiters[C];if(" "===N)T++;else if("-"===N)s.splice(T,1),o.splice(T,1);else if("+"===N)s.splice(T,0,k),o.splice(T,0,O),T++;else if("\\"===N){var E=S.lines[C-1]?S.lines[C-1][0]:null;"+"===E?i=!0:"-"===E&&(l=!0)}}}if(i)for(;!s[s.length-1];)s.pop(),o.pop();else l&&(s.push(""),o.push("\n"));for(var P=0;P<s.length-1;P++)s[P]=s[P]+o[P];return s.join("")}},286:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.structuredPatch=l,t.formatPatch=s,t.createTwoFilesPatch=o,t.createPatch=function(e,t,n,i,r,a){return o(e,e,t,n,i,r,a)};var i=n(187);function r(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e,t,n,a,l,s,o){o||(o={}),void 0===o.context&&(o.context=4);var c=(0,i.diffLines)(n,a,o);function f(e){return e.map((function(e){return" "+e}))}c.push({value:"",lines:[]});for(var u=[],d=0,p=0,h=[],g=1,m=1,b=function(e){var t=c[e],i=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=i,t.added||t.removed){var l;if(!d){var s=c[e-1];d=g,p=m,s&&(h=o.context>0?f(s.lines.slice(-o.context)):[],d-=h.length,p-=h.length)}(l=h).push.apply(l,r(i.map((function(e){return(t.added?"+":"-")+e})))),t.added?m+=i.length:g+=i.length}else{if(d)if(i.length<=2*o.context&&e<c.length-2){var b;(b=h).push.apply(b,r(f(i)))}else{var v,y=Math.min(i.length,o.context);(v=h).push.apply(v,r(f(i.slice(0,y))));var w={oldStart:d,oldLines:g-d+y,newStart:p,newLines:m-p+y,lines:h};if(e>=c.length-2&&i.length<=o.context){var x=/\n$/.test(n),j=/\n$/.test(a),L=0==i.length&&h.length>w.oldLines;!x&&L&&n.length>0&&h.splice(w.oldLines,0,"\\ No newline at end of file"),(x||L)&&j||h.push("\\ No newline at end of file")}u.push(w),d=0,p=0,h=[]}g+=i.length,m+=i.length}},v=0;v<c.length;v++)b(v);return{oldFileName:e,newFileName:t,oldHeader:l,newHeader:s,hunks:u}}function s(e){var t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+(void 0===e.oldHeader?"":"\t"+e.oldHeader)),t.push("+++ "+e.newFileName+(void 0===e.newHeader?"":"\t"+e.newHeader));for(var n=0;n<e.hunks.length;n++){var i=e.hunks[n];0===i.oldLines&&(i.oldStart-=1),0===i.newLines&&(i.newStart-=1),t.push("@@ -"+i.oldStart+","+i.oldLines+" +"+i.newStart+","+i.newLines+" @@"),t.push.apply(t,i.lines)}return t.join("\n")+"\n"}function o(e,t,n,i,r,a,o){return s(l(e,t,n,i,r,a,o))}},51:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calcLineCount=o,t.merge=function(e,t,n){e=c(e,n),t=c(t,n);var i={};(e.index||t.index)&&(i.index=e.index||t.index),(e.newFileName||t.newFileName)&&(f(e)?f(t)?(i.oldFileName=u(i,e.oldFileName,t.oldFileName),i.newFileName=u(i,e.newFileName,t.newFileName),i.oldHeader=u(i,e.oldHeader,t.oldHeader),i.newHeader=u(i,e.newHeader,t.newHeader)):(i.oldFileName=e.oldFileName,i.newFileName=e.newFileName,i.oldHeader=e.oldHeader,i.newHeader=e.newHeader):(i.oldFileName=t.oldFileName||e.oldFileName,i.newFileName=t.newFileName||e.newFileName,i.oldHeader=t.oldHeader||e.oldHeader,i.newHeader=t.newHeader||e.newHeader)),i.hunks=[];for(var r=0,a=0,l=0,s=0;r<e.hunks.length||a<t.hunks.length;){var o=e.hunks[r]||{oldStart:1/0},g=t.hunks[a]||{oldStart:1/0};if(d(o,g))i.hunks.push(p(o,l)),r++,s+=o.newLines-o.oldLines;else if(d(g,o))i.hunks.push(p(g,s)),a++,l+=g.newLines-g.oldLines;else{var m={oldStart:Math.min(o.oldStart,g.oldStart),oldLines:0,newStart:Math.min(o.newStart+l,g.oldStart+s),newLines:0,lines:[]};h(m,o.oldStart,o.lines,g.oldStart,g.lines),a++,r++,i.hunks.push(m)}}return i};var i=n(286),r=n(719),a=n(780);function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function o(e){var t=L(e.lines),n=t.oldLines,i=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==i?e.newLines=i:delete e.newLines}function c(e,t){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,r.parsePatch)(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return(0,i.structuredPatch)(void 0,void 0,t,e)}return e}function f(e){return e.newFileName&&e.newFileName!==e.oldFileName}function u(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function d(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function p(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function h(e,t,n,i,r){var a={offset:t,lines:n,index:0},s={offset:i,lines:r,index:0};for(v(e,a,s),v(e,s,a);a.index<a.lines.length&&s.index<s.lines.length;){var c=a.lines[a.index],f=s.lines[s.index];if("-"!==c[0]&&"+"!==c[0]||"-"!==f[0]&&"+"!==f[0])if("+"===c[0]&&" "===f[0]){var u;(u=e.lines).push.apply(u,l(w(a)))}else if("+"===f[0]&&" "===c[0]){var d;(d=e.lines).push.apply(d,l(w(s)))}else"-"===c[0]&&" "===f[0]?m(e,a,s):"-"===f[0]&&" "===c[0]?m(e,s,a,!0):c===f?(e.lines.push(c),a.index++,s.index++):b(e,w(a),w(s));else g(e,a,s)}y(e,a),y(e,s),o(e)}function g(e,t,n){var i=w(t),r=w(n);if(x(i)&&x(r)){var s,o;if((0,a.arrayStartsWith)(i,r)&&j(n,i,i.length-r.length))return void(s=e.lines).push.apply(s,l(i));if((0,a.arrayStartsWith)(r,i)&&j(t,r,r.length-i.length))return void(o=e.lines).push.apply(o,l(r))}else if((0,a.arrayEqual)(i,r)){var c;return void(c=e.lines).push.apply(c,l(i))}b(e,i,r)}function m(e,t,n,i){var r,a=w(t),s=function(e,t){for(var n=[],i=[],r=0,a=!1,l=!1;r<t.length&&e.index<e.lines.length;){var s=e.lines[e.index],o=t[r];if("+"===o[0])break;if(a=a||" "!==s[0],i.push(o),r++,"+"===s[0])for(l=!0;"+"===s[0];)n.push(s),s=e.lines[++e.index];o.substr(1)===s.substr(1)?(n.push(s),e.index++):l=!0}if("+"===(t[r]||"")[0]&&a&&(l=!0),l)return n;for(;r<t.length;)i.push(t[r++]);return{merged:i,changes:n}}(n,a);s.merged?(r=e.lines).push.apply(r,l(s.merged)):b(e,i?s:a,i?a:s)}function b(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function v(e,t,n){for(;t.offset<n.offset&&t.index<t.lines.length;){var i=t.lines[t.index++];e.lines.push(i),t.offset++}}function y(e,t){for(;t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n)}}function w(e){for(var t=[],n=e.lines[e.index][0];e.index<e.lines.length;){var i=e.lines[e.index];if("-"===n&&"+"===i[0]&&(n="+"),n!==i[0])break;t.push(i),e.index++}return t}function x(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function j(e,t,n){for(var i=0;i<n;i++){var r=t[t.length-n+i].substr(1);if(e.lines[e.index+i]!==" "+r)return!1}return e.index+=n,!0}function L(e){var t=0,n=0;return e.forEach((function(e){if("string"!=typeof e){var i=L(e.mine),r=L(e.theirs);void 0!==t&&(i.oldLines===r.oldLines?t+=i.oldLines:t=void 0),void 0!==n&&(i.newLines===r.newLines?n+=i.newLines:n=void 0)}else void 0===n||"+"!==e[0]&&" "!==e[0]||n++,void 0===t||"-"!==e[0]&&" "!==e[0]||t++})),{oldLines:t,newLines:n}}},719:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parsePatch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],r=[],a=0;function l(){var e={};for(r.push(e);a<n.length;){var i=n[a];if(/^(\-\-\-|\+\+\+|@@)\s/.test(i))break;var l=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(i);l&&(e.index=l[1]),a++}for(s(e),s(e),e.hunks=[];a<n.length;){var c=n[a];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(c))break;if(/^@@/.test(c))e.hunks.push(o());else{if(c&&t.strict)throw new Error("Unknown line "+(a+1)+" "+JSON.stringify(c));a++}}}function s(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[a]);if(t){var i="---"===t[1]?"old":"new",r=t[2].split("\t",2),l=r[0].replace(/\\\\/g,"\\");/^".*"$/.test(l)&&(l=l.substr(1,l.length-2)),e[i+"FileName"]=l,e[i+"Header"]=(r[1]||"").trim(),a++}}function o(){var e=a,r=n[a++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),l={oldStart:+r[1],oldLines:void 0===r[2]?1:+r[2],newStart:+r[3],newLines:void 0===r[4]?1:+r[4],lines:[],linedelimiters:[]};0===l.oldLines&&(l.oldStart+=1),0===l.newLines&&(l.newStart+=1);for(var s=0,o=0;a<n.length&&!(0===n[a].indexOf("--- ")&&a+2<n.length&&0===n[a+1].indexOf("+++ ")&&0===n[a+2].indexOf("@@"));a++){var c=0==n[a].length&&a!=n.length-1?" ":n[a][0];if("+"!==c&&"-"!==c&&" "!==c&&"\\"!==c)break;l.lines.push(n[a]),l.linedelimiters.push(i[a]||"\n"),"+"===c?s++:"-"===c?o++:" "===c&&(s++,o++)}if(s||1!==l.newLines||(l.newLines=0),o||1!==l.oldLines||(l.oldLines=0),t.strict){if(s!==l.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(o!==l.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return l}for(;a<n.length;)l();return r}},780:(e,t)=>{"use strict";function n(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayEqual=function(e,t){return e.length===t.length&&n(e,t)},t.arrayStartsWith=n},495:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var i=!0,r=!1,a=!1,l=1;return function s(){if(i&&!a){if(r?l++:i=!1,e+l<=n)return l;a=!0}if(!r)return a||(i=!0),t<=e-l?-l++:(r=!0,s())}}},9:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateOptions=function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}},397:(e,t)=>{!function(e){var t=/\S/,n=/\"/g,i=/\n/g,r=/\r/g,a=/\\/g,l=/\u2028/,s=/\u2029/;function o(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function c(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var i=1,r=e.length;i<r;i++)if(t.charAt(n+i)!=e.charAt(i))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(n,i){var r,a=n.length,l=0,s=null,f=null,u="",d=[],p=!1,h=0,g=0,m="{{",b="}}";function v(){u.length>0&&(d.push({tag:"_t",text:new String(u)}),u="")}function y(n,i){if(v(),n&&function(){for(var n=!0,i=g;i<d.length;i++)if(!(n=e.tags[d[i].tag]<e.tags._v||"_t"==d[i].tag&&null===d[i].text.match(t)))return!1;return n}())for(var r,a=g;a<d.length;a++)d[a].text&&((r=d[a+1])&&">"==r.tag&&(r.indent=d[a].text.toString()),d.splice(a,1));else i||d.push({tag:"\n"});p=!1,g=d.length}function w(e,t){var n="="+b,i=e.indexOf(n,t),r=o(e.substring(e.indexOf("=",t)+1,i)).split(" ");return m=r[0],b=r[r.length-1],i+n.length-1}for(i&&(i=i.split(" "),m=i[0],b=i[1]),h=0;h<a;h++)0==l?c(m,n,h)?(--h,v(),l=1):"\n"==n.charAt(h)?y(p):u+=n.charAt(h):1==l?(h+=m.length-1,"="==(s=(f=e.tags[n.charAt(h+1)])?n.charAt(h+1):"_v")?(h=w(n,h),l=0):(f&&h++,l=2),p=h):c(b,n,h)?(d.push({tag:s,n:o(u),otag:m,ctag:b,i:"/"==s?p-m.length:h+b.length}),u="",h+=b.length-1,l=0,"{"==s&&("}}"==b?h++:"}"===(r=d[d.length-1]).n.substr(r.n.length-1)&&(r.n=r.n.substring(0,r.n.length-1)))):u+=n.charAt(h);return y(p,!0),d};var f={_t:!0,"\n":!0,$:!0,"/":!0};function u(t,n,i,r){var a,l=[],s=null,o=null;for(a=i[i.length-1];t.length>0;){if(o=t.shift(),a&&"<"==a.tag&&!(o.tag in f))throw new Error("Illegal content in < super tag.");if(e.tags[o.tag]<=e.tags.$||d(o,r))i.push(o),o.nodes=u(t,o.tag,i,r);else{if("/"==o.tag){if(0===i.length)throw new Error("Closing tag without opener: /"+o.n);if(s=i.pop(),o.n!=s.n&&!p(o.n,s.n,r))throw new Error("Nesting error: "+s.n+" vs. "+o.n);return s.end=o.i,l}"\n"==o.tag&&(o.last=0==t.length||"\n"==t[0].tag)}l.push(o)}if(i.length>0)throw new Error("missing closing tag: "+i.pop().n);return l}function d(e,t){for(var n=0,i=t.length;n<i;n++)if(t[n].o==e.n)return e.tag="#",!0}function p(e,t,n){for(var i=0,r=n.length;i<r;i++)if(n[i].c==e&&n[i].o==t)return!0}function h(e){var t=[];for(var n in e.partials)t.push('"'+m(n)+'":{name:"'+m(e.partials[n].name)+'", '+h(e.partials[n])+"}");return"partials: {"+t.join(",")+"}, subs: "+function(e){var t=[];for(var n in e)t.push('"'+m(n)+'": function(c,p,t,i) {'+e[n]+"}");return"{ "+t.join(",")+" }"}(e.subs)}e.stringify=function(t,n,i){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+h(t)+"}"};var g=0;function m(e){return e.replace(a,"\\\\").replace(n,'\\"').replace(i,"\\n").replace(r,"\\r").replace(l,"\\u2028").replace(s,"\\u2029")}function b(e){return~e.indexOf(".")?"d":"f"}function v(e,t){var n="<"+(t.prefix||"")+e.n+g++;return t.partials[n]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+m(n)+'",c,p,"'+(e.indent||"")+'"));',n}function y(e,t){t.code+="t.b(t.t(t."+b(e.n)+'("'+m(e.n)+'",c,p,0)));'}function w(e){return"t.b("+e+");"}e.generate=function(t,n,i){g=0;var r={code:"",subs:{},partials:{}};return e.walk(t,r),i.asString?this.stringify(r,n,i):this.makeTemplate(r,n,i)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,n){var i=this.makePartials(e);return i.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(i,t,this,n)},e.makePartials=function(e){var t,n={subs:{},partials:e.partials,name:e.name};for(t in n.partials)n.partials[t]=this.makePartials(n.partials[t]);for(t in e.subs)n.subs[t]=new Function("c","p","t","i",e.subs[t]);return n},e.codegen={"#":function(t,n){n.code+="if(t.s(t."+b(t.n)+'("'+m(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,n),n.code+="});c.pop();}"},"^":function(t,n){n.code+="if(!t.s(t."+b(t.n)+'("'+m(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,n),n.code+="};"},">":v,"<":function(t,n){var i={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,i);var r=n.partials[v(t,n)];r.subs=i.subs,r.partials=i.partials},$:function(t,n){var i={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,i),n.subs[t.n]=i.code,n.inPartial||(n.code+='t.sub("'+m(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=w('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+b(e.n)+'("'+m(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=w('"'+m(e.text)+'"')},"{":y,"&":y},e.walk=function(t,n){for(var i,r=0,a=t.length;r<a;r++)(i=e.codegen[t[r].tag])&&i(t[r],n);return n},e.parse=function(e,t,n){return u(e,0,[],(n=n||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,n){n=n||{};var i=e.cacheKey(t,n),r=this.cache[i];if(r){var a=r.partials;for(var l in a)delete a[l].instance;return r}return r=this.generate(this.parse(this.scan(t,n.delimiters),t,n),t,n),this.cache[i]=r}}(t)},485:(e,t,n)=>{var i=n(397);i.Template=n(882).Template,i.template=i.Template,e.exports=i},882:(e,t)=>{!function(e){function t(e,t,n){var i;return t&&"object"==typeof t&&(void 0!==t[e]?i=t[e]:n&&t.get&&"function"==typeof t.get&&(i=t.get(e))),i}e.Template=function(e,t,n,i){e=e||{},this.r=e.code||this.r,this.c=n,this.options=i||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,n){return""},v:function(e){return e=o(e),s.test(e)?e.replace(n,"&amp;").replace(i,"&lt;").replace(r,"&gt;").replace(a,"&#39;").replace(l,"&quot;"):e},t:o,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var n=this.partials[e],i=t[n.name];if(n.instance&&n.base==i)return n.instance;if("string"==typeof i){if(!this.c)throw new Error("No compiler available.");i=this.c.compile(i,this.options)}if(!i)return null;if(this.partials[e].base=i,n.subs){for(key in t.stackText||(t.stackText={}),n.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);i=function(e,t,n,i,r,a){function l(){}function s(){}var o;l.prototype=e,s.prototype=e.subs;var c=new l;for(o in c.subs=new s,c.subsText={},c.buf="",i=i||{},c.stackSubs=i,c.subsText=a,t)i[o]||(i[o]=t[o]);for(o in i)c.subs[o]=i[o];for(o in r=r||{},c.stackPartials=r,n)r[o]||(r[o]=n[o]);for(o in r)c.partials[o]=r[o];return c}(i,n.subs,n.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=i,i},rp:function(e,t,n,i){var r=this.ep(e,n);return r?r.ri(t,n,i):""},rs:function(e,t,n){var i=e[e.length-1];if(c(i))for(var r=0;r<i.length;r++)e.push(i[r]),n(e,t,this),e.pop();else n(e,t,this)},s:function(e,t,n,i,r,a,l){var s;return(!c(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,n,i,r,a,l)),s=!!e,!i&&s&&t&&t.push("object"==typeof e?e:t[t.length-1]),s)},d:function(e,n,i,r){var a,l=e.split("."),s=this.f(l[0],n,i,r),o=this.options.modelGet,f=null;if("."===e&&c(n[n.length-2]))s=n[n.length-1];else for(var u=1;u<l.length;u++)void 0!==(a=t(l[u],s,o))?(f=s,s=a):s="";return!(r&&!s)&&(r||"function"!=typeof s||(n.push(f),s=this.mv(s,n,i),n.pop()),s)},f:function(e,n,i,r){for(var a=!1,l=!1,s=this.options.modelGet,o=n.length-1;o>=0;o--)if(void 0!==(a=t(e,n[o],s))){l=!0;break}return l?(r||"function"!=typeof a||(a=this.mv(a,n,i)),a):!r&&""},ls:function(e,t,n,i,r){var a=this.options.delimiters;return this.options.delimiters=r,this.b(this.ct(o(e.call(t,i)),t,n)),this.options.delimiters=a,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,i,r,a,l){var s,o=t[t.length-1],c=e.call(o);return"function"==typeof c?!!i||(s=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,o,n,s.substring(r,a),l)):c},mv:function(e,t,n){var i=t[t.length-1],r=e.call(i);return"function"==typeof r?this.ct(o(r.call(i)),i,n):r},sub:function(e,t,n,i){var r=this.subs[e];r&&(this.activeSub=e,r(t,n,this,i),this.activeSub=!1)}};var n=/&/g,i=/</g,r=/>/g,a=/\'/g,l=/\"/g,s=/[&<>\"\']/;function o(e){return String(null==e?"":e)}var c=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)},468:function(e,t,n){"use strict";var i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,a=t.length;r<a;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;var r=n(699),a=n(593);function l(e,t){var n=e.split(".");return n.length>1?n[n.length-1]:t}function s(e,t){return t.reduce((function(t,n){return t||e.startsWith(n)}),!1)}var o=["a/","b/","i/","w/","c/","o/"];function c(e,t,n){var r=void 0!==n?i(i([],o,!0),[n],!1):o,l=((t?new RegExp("^"+(0,a.escapeForRegExp)(t)+' "?(.+?)"?$'):new RegExp('^"?(.+?)"?$')).exec(e)||[])[1],s=void 0===l?"":l,c=r.find((function(e){return 0===s.indexOf(e)}));return(c?s.slice(c.length):s).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}t.parse=function(e,t){void 0===t&&(t={});var n=[],i=null,a=null,o=null,f=null,u=null,d=null,p=null,h="--- ",g="+++ ",m="@@",b=/^old mode (\d{6})/,v=/^new mode (\d{6})/,y=/^deleted file mode (\d{6})/,w=/^new file mode (\d{6})/,x=/^copy from "?(.+)"?/,j=/^copy to "?(.+)"?/,L=/^rename from "?(.+)"?/,S=/^rename to "?(.+)"?/,T=/^similarity index (\d+)%/,C=/^dissimilarity index (\d+)%/,_=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,N=/^Binary files (.*) and (.*) differ/,k=/^GIT binary patch/,O=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,E=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,P=/^new file mode (\d{6})/,M=/^deleted file mode (\d{6}),(\d{6})/,H=e.replace(/\\ No newline at end of file/g,"").replace(/\r\n?/g,"\n").split("\n");function D(){null!==a&&null!==i&&(i.blocks.push(a),a=null)}function F(){null!==i&&(i.oldName||null===d||(i.oldName=d),i.newName||null===p||(i.newName=p),i.newName&&(n.push(i),i=null)),d=null,p=null}function I(){D(),F(),i={blocks:[],deletedLines:0,addedLines:0}}function A(e){var t;D(),null!==i&&((t=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(i.isCombined=!1,o=parseInt(t[1],10),u=parseInt(t[2],10)):(t=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(i.isCombined=!0,o=parseInt(t[1],10),f=parseInt(t[2],10),u=parseInt(t[3],10)):(e.startsWith(m)&&console.error("Failed to parse lines, starting in 0!"),o=0,u=0,i.isCombined=!1)),a={lines:[],oldStartLine:o,oldStartLine2:f,newStartLine:u,header:e}}return H.forEach((function(e,f){if(e&&!e.startsWith("*")){var D,F=H[f-1],q=H[f+1],z=H[f+2];if(e.startsWith("diff")){if(I(),(D=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(e))&&(d=c(D[1],void 0,t.dstPrefix),p=c(D[2],void 0,t.srcPrefix)),null===i)throw new Error("Where is my file !!!");i.isGitDiff=!0}else if((!i||!i.isGitDiff&&i&&e.startsWith(h)&&q.startsWith(g)&&z.startsWith(m))&&I(),!(null==i?void 0:i.isTooBig)){if(i&&("number"==typeof t.diffMaxChanges&&i.addedLines+i.deletedLines>t.diffMaxChanges||"number"==typeof t.diffMaxLineLength&&e.length>t.diffMaxLineLength))return i.isTooBig=!0,i.addedLines=0,i.deletedLines=0,i.blocks=[],a=null,void A("function"==typeof t.diffTooBigMessage?t.diffTooBigMessage(n.length):"Diff too big to be displayed");if(e.startsWith(h)&&q.startsWith(g)||e.startsWith(g)&&F.startsWith(h)){if(i&&!i.oldName&&e.startsWith("--- ")&&(D=function(e,t){return c(e,"---",t)}(e,t.srcPrefix)))return i.oldName=D,void(i.language=l(i.oldName,i.language));if(i&&!i.newName&&e.startsWith("+++ ")&&(D=function(e,t){return c(e,"+++",t)}(e,t.dstPrefix)))return i.newName=D,void(i.language=l(i.newName,i.language))}if(i&&(e.startsWith(m)||i.isGitDiff&&i.oldName&&i.newName&&!a))A(e);else if(a&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))!function(e){if(null!==i&&null!==a&&null!==o&&null!==u){var t={content:e},n=i.isCombined?["+ "," +","++"]:["+"],l=i.isCombined?["- "," -","--"]:["-"];s(e,n)?(i.addedLines++,t.type=r.LineType.INSERT,t.oldNumber=void 0,t.newNumber=u++):s(e,l)?(i.deletedLines++,t.type=r.LineType.DELETE,t.oldNumber=o++,t.newNumber=void 0):(t.type=r.LineType.CONTEXT,t.oldNumber=o++,t.newNumber=u++),a.lines.push(t)}}(e);else{var W=!function(e,t){for(var n=t;n<H.length-3;){if(e.startsWith("diff"))return!1;if(H[n].startsWith(h)&&H[n+1].startsWith(g)&&H[n+2].startsWith(m))return!0;n++}return!1}(e,f);if(null===i)throw new Error("Where is my file !!!");(D=b.exec(e))?i.oldMode=D[1]:(D=v.exec(e))?i.newMode=D[1]:(D=y.exec(e))?(i.deletedFileMode=D[1],i.isDeleted=!0):(D=w.exec(e))?(i.newFileMode=D[1],i.isNew=!0):(D=x.exec(e))?(W&&(i.oldName=D[1]),i.isCopy=!0):(D=j.exec(e))?(W&&(i.newName=D[1]),i.isCopy=!0):(D=L.exec(e))?(W&&(i.oldName=D[1]),i.isRename=!0):(D=S.exec(e))?(W&&(i.newName=D[1]),i.isRename=!0):(D=N.exec(e))?(i.isBinary=!0,i.oldName=c(D[1],void 0,t.srcPrefix),i.newName=c(D[2],void 0,t.dstPrefix),A("Binary file")):k.test(e)?(i.isBinary=!0,A(e)):(D=T.exec(e))?i.unchangedPercentage=parseInt(D[1],10):(D=C.exec(e))?i.changedPercentage=parseInt(D[1],10):(D=_.exec(e))?(i.checksumBefore=D[1],i.checksumAfter=D[2],D[3]&&(i.mode=D[3])):(D=O.exec(e))?(i.checksumBefore=[D[2],D[3]],i.checksumAfter=D[1]):(D=E.exec(e))?(i.oldMode=[D[2],D[3]],i.newMode=D[1]):(D=P.exec(e))?(i.newFileMode=D[1],i.isNew=!0):(D=M.exec(e))&&(i.deletedFileMode=D[1],i.isDeleted=!0)}}}})),D(),F(),n}},979:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTemplates=void 0;var l=a(n(485));t.defaultTemplates={},t.defaultTemplates["file-summary-line"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<li class="d2h-file-list-line">'),i.b("\n"+n),i.b(' <span class="d2h-file-name-wrapper">'),i.b("\n"+n),i.b(i.rp("<fileIcon0",e,t," ")),i.b(' <a href="#'),i.b(i.v(i.f("fileHtmlId",e,t,0))),i.b('" class="d2h-file-name">'),i.b(i.v(i.f("fileName",e,t,0))),i.b("</a>"),i.b("\n"+n),i.b(' <span class="d2h-file-stats">'),i.b("\n"+n),i.b(' <span class="d2h-lines-added">'),i.b(i.v(i.f("addedLines",e,t,0))),i.b("</span>"),i.b("\n"+n),i.b(' <span class="d2h-lines-deleted">'),i.b(i.v(i.f("deletedLines",e,t,0))),i.b("</span>"),i.b("\n"+n),i.b(" </span>"),i.b("\n"+n),i.b(" </span>"),i.b("\n"+n),i.b("</li>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),t.defaultTemplates["file-summary-wrapper"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div class="d2h-file-list-wrapper">'),i.b("\n"+n),i.b(' <div class="d2h-file-list-header">'),i.b("\n"+n),i.b(' <span class="d2h-file-list-title">Files changed ('),i.b(i.v(i.f("filesNumber",e,t,0))),i.b(")</span>"),i.b("\n"+n),i.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),i.b("\n"+n),i.b(' <a class="d2h-file-switch d2h-show">show</a>'),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(' <ol class="d2h-file-list">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("files",e,t,0))),i.b("\n"+n),i.b(" </ol>"),i.b("\n"+n),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-block-header"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b("<tr>"),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,t,0))),i.b(" "),i.b(i.v(i.d("CSSLineClass.INFO",e,t,0))),i.b('"></td>'),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,t,0))),i.b('">'),i.b(i.t(i.f("blockHeader",e,t,0))),i.b("</div>"),i.b("\n"+n),i.b(" </td>"),i.b("\n"+n),i.b("</tr>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-empty-diff"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b("<tr>"),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,t,0))),i.b('">'),i.b("\n"+n),i.b(" File without changes"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </td>"),i.b("\n"+n),i.b("</tr>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-file-path"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-file-name-wrapper">'),i.b("\n"+n),i.b(i.rp("<fileIcon0",e,t," ")),i.b(' <span class="d2h-file-name">'),i.b(i.v(i.f("fileDiffName",e,t,0))),i.b("</span>"),i.b("\n"+n),i.b(i.rp("<fileTag1",e,t," ")),i.b("</span>"),i.b("\n"+n),i.b('<label class="d2h-file-collapse">'),i.b("\n"+n),i.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),i.b("\n"+n),i.b(" Viewed"),i.b("\n"+n),i.b("</label>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),t.defaultTemplates["generic-line"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b("<tr>"),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,t,0))),i.b(" "),i.b(i.v(i.f("type",e,t,0))),i.b('">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("lineNumber",e,t,0))),i.b("\n"+n),i.b(" </td>"),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.f("type",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,t,0))),i.b('">'),i.b("\n"+n),i.s(i.f("prefix",e,t,1),e,t,0,162,238,"{{ }}")&&(i.rs(e,t,(function(e,t,i){i.b(' <span class="d2h-code-line-prefix">'),i.b(i.t(i.f("prefix",e,t,0))),i.b("</span>"),i.b("\n"+n)})),e.pop()),i.s(i.f("prefix",e,t,1),e,t,1,0,0,"")||(i.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),i.b("\n"+n)),i.s(i.f("content",e,t,1),e,t,0,371,445,"{{ }}")&&(i.rs(e,t,(function(e,t,i){i.b(' <span class="d2h-code-line-ctn">'),i.b(i.t(i.f("content",e,t,0))),i.b("</span>"),i.b("\n"+n)})),e.pop()),i.s(i.f("content",e,t,1),e,t,1,0,0,"")||(i.b(' <span class="d2h-code-line-ctn"><br></span>'),i.b("\n"+n)),i.b(" </div>"),i.b("\n"+n),i.b(" </td>"),i.b("\n"+n),i.b("</tr>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-wrapper"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div class="d2h-wrapper">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("content",e,t,0))),i.b("\n"+n),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-added"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),i.b("\n"+n),i.b(' width="14">'),i.b("\n"+n),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-changed"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),i.b("\n"+n),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+n),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-deleted"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),i.b("\n"+n),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+n),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-renamed"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),i.b("\n"+n),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+n),i.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),i.b("\n"+n),i.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["line-by-line-file-diff"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,t,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="d2h-file-header">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("filePath",e,t,0))),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(' <div class="d2h-file-diff">'),i.b("\n"+n),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+n),i.b(' <table class="d2h-diff-table">'),i.b("\n"+n),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("diffs",e,t,0))),i.b("\n"+n),i.b(" </tbody>"),i.b("\n"+n),i.b(" </table>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["line-by-line-numbers"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div class="line-num1">'),i.b(i.v(i.f("oldNumber",e,t,0))),i.b("</div>"),i.b("\n"+n),i.b('<div class="line-num2">'),i.b(i.v(i.f("newNumber",e,t,0))),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["side-by-side-file-diff"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,t,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="d2h-file-header">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("filePath",e,t,0))),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(' <div class="d2h-files-diff">'),i.b("\n"+n),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+n),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+n),i.b(' <table class="d2h-diff-table">'),i.b("\n"+n),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.d("diffs.left",e,t,0))),i.b("\n"+n),i.b(" </tbody>"),i.b("\n"+n),i.b(" </table>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+n),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+n),i.b(' <table class="d2h-diff-table">'),i.b("\n"+n),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.d("diffs.right",e,t,0))),i.b("\n"+n),i.b(" </tbody>"),i.b("\n"+n),i.b(" </table>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-added"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),i.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-changed"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),i.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-deleted"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),i.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-renamed"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),i.fl()},partials:{},subs:{}})},834:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.html=t.parse=t.defaultDiff2HtmlConfig=void 0;var o=l(n(468)),c=l(n(479)),f=l(n(378)),u=l(n(170)),d=n(699),p=s(n(63));t.defaultDiff2HtmlConfig=i(i(i({},f.defaultLineByLineRendererConfig),u.defaultSideBySideRendererConfig),{outputFormat:d.OutputFormatType.LINE_BY_LINE,drawFileList:!0}),t.parse=function(e,n){return void 0===n&&(n={}),o.parse(e,i(i({},t.defaultDiff2HtmlConfig),n))},t.html=function(e,n){void 0===n&&(n={});var r=i(i({},t.defaultDiff2HtmlConfig),n),a="string"==typeof e?o.parse(e,r):e,l=new p.default(r);return(r.drawFileList?c.render(a,l):"")+("side-by-side"===r.outputFormat?new u.default(l,r).render(a):new f.default(l,r).render(a))}},479:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.render=void 0;var l=a(n(741)),s="file-summary";t.render=function(e,t){var n=e.map((function(e){return t.render(s,"line",{fileHtmlId:l.getHtmlId(e),oldName:e.oldName,newName:e.newName,fileName:l.filenameDiff(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:t.template("icon",l.getFileIcon(e))})})).join("\n");return t.render(s,"wrapper",{filesNumber:e.length,files:n})}},63:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var s=l(n(485)),o=n(979),c=function(){function e(e){var t=e.compiledTemplates,n=void 0===t?{}:t,r=e.rawTemplates,a=void 0===r?{}:r,l=Object.entries(a).reduce((function(e,t){var n,r=t[0],a=t[1],l=s.compile(a,{asString:!1});return i(i({},e),((n={})[r]=l,n))}),{});this.preCompiledTemplates=i(i(i({},o.defaultTemplates),n),l)}return e.compile=function(e){return s.compile(e,{asString:!1})},e.prototype.render=function(e,t,n,i,r){var a=this.templateKey(e,t);try{return this.preCompiledTemplates[a].render(n,i,r)}catch(e){throw new Error("Could not find template to render '"+a+"'")}},e.prototype.template=function(e,t){return this.preCompiledTemplates[this.templateKey(e,t)]},e.prototype.templateKey=function(e,t){return e+"-"+t},e}();t.default=c},378:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultLineByLineRendererConfig=void 0;var s=l(n(483)),o=l(n(741)),c=n(699);t.defaultLineByLineRendererConfig=i(i({},o.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});var f="generic",u="line-by-line",d=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=i(i({},t.defaultLineByLineRendererConfig),n)}return e.prototype.render=function(e){var t=this,n=e.map((function(e){var n;return n=e.blocks.length?t.generateFileHtml(e):t.generateEmptyDiff(),t.makeFileDiffHtml(e,n)})).join("\n");return this.hoganUtils.render(f,"wrapper",{content:n})},e.prototype.makeFileDiffHtml=function(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var n=this.hoganUtils.template(u,"file-diff"),i=this.hoganUtils.template(f,"file-path"),r=this.hoganUtils.template("icon","file"),a=this.hoganUtils.template("tag",o.getFileIcon(e));return n.render({file:e,fileHtmlId:o.getHtmlId(e),diffs:t,filePath:i.render({fileDiffName:o.filenameDiff(e)},{fileIcon:r,fileTag:a})})},e.prototype.generateEmptyDiff=function(){return this.hoganUtils.render(f,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:o.CSSLineClass})},e.prototype.generateFileHtml=function(e){var t=this,n=s.newMatcherFn(s.newDistanceFn((function(t){return o.deconstructLine(t.content,e.isCombined).content})));return e.blocks.map((function(i){var r=t.hoganUtils.render(f,"block-header",{CSSLineClass:o.CSSLineClass,blockHeader:e.isTooBig?i.header:o.escapeForHtml(i.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return t.applyLineGroupping(i).forEach((function(i){var a=i[0],l=i[1],s=i[2];if(l.length&&s.length&&!a.length)t.applyRematchMatching(l,s,n).map((function(n){var i=n[0],a=n[1],l=t.processChangedLines(e.isCombined,i,a),s=l.left,o=l.right;r+=s,r+=o}));else if(a.length)a.forEach((function(n){var i=o.deconstructLine(n.content,e.isCombined),a=i.prefix,l=i.content;r+=t.generateSingleLineHtml({type:o.CSSLineClass.CONTEXT,prefix:a,content:l,oldNumber:n.oldNumber,newNumber:n.newNumber})}));else if(l.length||s.length){var c=t.processChangedLines(e.isCombined,l,s),f=c.left,u=c.right;r+=f,r+=u}else console.error("Unknown state reached while processing groups of lines",a,l,s)})),r})).join("\n")},e.prototype.applyLineGroupping=function(e){for(var t=[],n=[],i=[],r=0;r<e.lines.length;r++){var a=e.lines[r];(a.type!==c.LineType.INSERT&&i.length||a.type===c.LineType.CONTEXT&&n.length>0)&&(t.push([[],n,i]),n=[],i=[]),a.type===c.LineType.CONTEXT?t.push([[a],[],[]]):a.type===c.LineType.INSERT&&0===n.length?t.push([[],[],[a]]):a.type===c.LineType.INSERT&&n.length>0?i.push(a):a.type===c.LineType.DELETE&&n.push(a)}return(n.length||i.length)&&(t.push([[],n,i]),n=[],i=[]),t},e.prototype.applyRematchMatching=function(e,t,n){var i=e.length*t.length,r=Math.max.apply(null,[0].concat(e.concat(t).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?n(e,t):[[e,t]]},e.prototype.processChangedLines=function(e,t,n){for(var r={right:"",left:""},a=Math.max(t.length,n.length),l=0;l<a;l++){var s=t[l],c=n[l],f=void 0!==s&&void 0!==c?o.diffHighlight(s.content,c.content,e,this.config):void 0,u=void 0!==s&&void 0!==s.oldNumber?i(i({},void 0!==f?{prefix:f.oldLine.prefix,content:f.oldLine.content,type:o.CSSLineClass.DELETE_CHANGES}:i(i({},o.deconstructLine(s.content,e)),{type:o.toCSSClass(s.type)})),{oldNumber:s.oldNumber,newNumber:s.newNumber}):void 0,d=void 0!==c&&void 0!==c.newNumber?i(i({},void 0!==f?{prefix:f.newLine.prefix,content:f.newLine.content,type:o.CSSLineClass.INSERT_CHANGES}:i(i({},o.deconstructLine(c.content,e)),{type:o.toCSSClass(c.type)})),{oldNumber:c.oldNumber,newNumber:c.newNumber}):void 0,p=this.generateLineHtml(u,d),h=p.left,g=p.right;r.left+=h,r.right+=g}return r},e.prototype.generateLineHtml=function(e,t){return{left:this.generateSingleLineHtml(e),right:this.generateSingleLineHtml(t)}},e.prototype.generateSingleLineHtml=function(e){if(void 0===e)return"";var t=this.hoganUtils.render(u,"numbers",{oldNumber:e.oldNumber||"",newNumber:e.newNumber||""});return this.hoganUtils.render(f,"line",{type:e.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===e.prefix?"&nbsp;":e.prefix,content:e.content,lineNumber:t})},e}();t.default=d},483:(e,t)=>{"use strict";function n(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;var n,i,r=[];for(n=0;n<=t.length;n++)r[n]=[n];for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}Object.defineProperty(t,"__esModule",{value:!0}),t.newMatcherFn=t.newDistanceFn=t.levenshtein=void 0,t.levenshtein=n,t.newDistanceFn=function(e){return function(t,i){var r=e(t).trim(),a=e(i).trim();return n(r,a)/(r.length+a.length)}},t.newMatcherFn=function(e){return function t(n,i,r,a){void 0===r&&(r=0),void 0===a&&(a=new Map);var l=function(t,n,i){void 0===i&&(i=new Map);for(var r,a=1/0,l=0;l<t.length;++l)for(var s=0;s<n.length;++s){var o=JSON.stringify([t[l],n[s]]),c=void 0;i.has(o)&&(c=i.get(o))||(c=e(t[l],n[s]),i.set(o,c)),c<a&&(r={indexA:l,indexB:s,score:a=c})}return r}(n,i,a);if(!l||n.length+i.length<3)return[[n,i]];var s=n.slice(0,l.indexA),o=i.slice(0,l.indexB),c=[n[l.indexA]],f=[i[l.indexB]],u=l.indexA+1,d=l.indexB+1,p=n.slice(u),h=i.slice(d),g=t(s,o,r+1,a),m=t(c,f,r+1,a),b=t(p,h,r+1,a),v=m;return(l.indexA>0||l.indexB>0)&&(v=g.concat(v)),(n.length>u||i.length>d)&&(v=v.concat(b)),v}}},741:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.diffHighlight=t.getFileIcon=t.getHtmlId=t.filenameDiff=t.deconstructLine=t.escapeForHtml=t.toCSSClass=t.defaultRenderConfig=t.CSSLineClass=void 0;var s=l(n(785)),o=n(593),c=l(n(483)),f=n(699);t.CSSLineClass={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},t.defaultRenderConfig={matching:f.LineMatchingType.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:f.DiffStyleType.WORD};var u="/",d=c.newDistanceFn((function(e){return e.value})),p=c.newMatcherFn(d);function h(e){return-1!==e.indexOf("dev/null")}function g(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function m(e){return e.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function b(e,t,n){void 0===n&&(n=!0);var i=function(e){return e?2:1}(t);return{prefix:e.substring(0,i),content:n?m(e.substring(i)):e.substring(i)}}function v(e){var t=(0,o.unifyPath)(e.oldName),n=(0,o.unifyPath)(e.newName);if(t===n||h(t)||h(n))return h(n)?t:n;for(var i=[],r=[],a=t.split(u),l=n.split(u),s=0,c=a.length-1,f=l.length-1;s<c&&s<f&&a[s]===l[s];)i.push(l[s]),s+=1;for(;c>s&&f>s&&a[c]===l[f];)r.unshift(l[f]),c-=1,f-=1;var d=i.join(u),p=r.join(u),g=a.slice(s,c+1).join(u),m=l.slice(s,f+1).join(u);return d.length&&p.length?d+u+"{"+g+" → "+m+"}"+u+p:d.length?d+u+"{"+g+" → "+m+"}":p.length?"{"+g+" → "+m+"}"+u+p:t+" → "+n}t.toCSSClass=function(e){switch(e){case f.LineType.CONTEXT:return t.CSSLineClass.CONTEXT;case f.LineType.INSERT:return t.CSSLineClass.INSERTS;case f.LineType.DELETE:return t.CSSLineClass.DELETES}},t.escapeForHtml=m,t.deconstructLine=b,t.filenameDiff=v,t.getHtmlId=function(e){return"d2h-"+(0,o.hashCode)(v(e)).toString().slice(-6)},t.getFileIcon=function(e){var t="file-changed";return e.isRename||e.isCopy?t="file-renamed":e.isNew?t="file-added":e.isDeleted?t="file-deleted":e.newName!==e.oldName&&(t="file-renamed"),t},t.diffHighlight=function(e,n,r,a){void 0===a&&(a={});var l=i(i({},t.defaultRenderConfig),a),o=l.matching,c=l.maxLineLengthHighlight,f=l.matchWordsThreshold,u=l.diffStyle,h=b(e,r,!1),v=b(n,r,!1);if(h.content.length>c||v.content.length>c)return{oldLine:{prefix:h.prefix,content:m(h.content)},newLine:{prefix:v.prefix,content:m(v.content)}};var y="char"===u?s.diffChars(h.content,v.content):s.diffWordsWithSpace(h.content,v.content),w=[];if("word"===u&&"words"===o){var x=y.filter((function(e){return e.removed})),j=y.filter((function(e){return e.added}));p(j,x).forEach((function(e){1===e[0].length&&1===e[1].length&&d(e[0][0],e[1][0])<f&&(w.push(e[0][0]),w.push(e[1][0]))}))}var L,S=y.reduce((function(e,t){var n=t.added?"ins":t.removed?"del":null,i=w.indexOf(t)>-1?' class="d2h-change"':"",r=m(t.value);return null!==n?e+"<"+n+i+">"+r+"</"+n+">":""+e+r}),"");return{oldLine:{prefix:h.prefix,content:(L=S,L.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:v.prefix,content:g(S)}}}},170:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultSideBySideRendererConfig=void 0;var s=l(n(483)),o=l(n(741)),c=n(699);t.defaultSideBySideRendererConfig=i(i({},o.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});var f="generic",u=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=i(i({},t.defaultSideBySideRendererConfig),n)}return e.prototype.render=function(e){var t=this,n=e.map((function(e){var n;return n=e.blocks.length?t.generateFileHtml(e):t.generateEmptyDiff(),t.makeFileDiffHtml(e,n)})).join("\n");return this.hoganUtils.render(f,"wrapper",{content:n})},e.prototype.makeFileDiffHtml=function(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var n=this.hoganUtils.template("side-by-side","file-diff"),i=this.hoganUtils.template(f,"file-path"),r=this.hoganUtils.template("icon","file"),a=this.hoganUtils.template("tag",o.getFileIcon(e));return n.render({file:e,fileHtmlId:o.getHtmlId(e),diffs:t,filePath:i.render({fileDiffName:o.filenameDiff(e)},{fileIcon:r,fileTag:a})})},e.prototype.generateEmptyDiff=function(){return{right:"",left:this.hoganUtils.render(f,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:o.CSSLineClass})}},e.prototype.generateFileHtml=function(e){var t=this,n=s.newMatcherFn(s.newDistanceFn((function(t){return o.deconstructLine(t.content,e.isCombined).content})));return e.blocks.map((function(i){var r={left:t.makeHeaderHtml(i.header,e),right:t.makeHeaderHtml("")};return t.applyLineGroupping(i).forEach((function(i){var a=i[0],l=i[1],s=i[2];if(l.length&&s.length&&!a.length)t.applyRematchMatching(l,s,n).map((function(n){var i=n[0],a=n[1],l=t.processChangedLines(e.isCombined,i,a),s=l.left,o=l.right;r.left+=s,r.right+=o}));else if(a.length)a.forEach((function(n){var i=o.deconstructLine(n.content,e.isCombined),a=i.prefix,l=i.content,s=t.generateLineHtml({type:o.CSSLineClass.CONTEXT,prefix:a,content:l,number:n.oldNumber},{type:o.CSSLineClass.CONTEXT,prefix:a,content:l,number:n.newNumber}),c=s.left,f=s.right;r.left+=c,r.right+=f}));else if(l.length||s.length){var c=t.processChangedLines(e.isCombined,l,s),f=c.left,u=c.right;r.left+=f,r.right+=u}else console.error("Unknown state reached while processing groups of lines",a,l,s)})),r})).reduce((function(e,t){return{left:e.left+t.left,right:e.right+t.right}}),{left:"",right:""})},e.prototype.applyLineGroupping=function(e){for(var t=[],n=[],i=[],r=0;r<e.lines.length;r++){var a=e.lines[r];(a.type!==c.LineType.INSERT&&i.length||a.type===c.LineType.CONTEXT&&n.length>0)&&(t.push([[],n,i]),n=[],i=[]),a.type===c.LineType.CONTEXT?t.push([[a],[],[]]):a.type===c.LineType.INSERT&&0===n.length?t.push([[],[],[a]]):a.type===c.LineType.INSERT&&n.length>0?i.push(a):a.type===c.LineType.DELETE&&n.push(a)}return(n.length||i.length)&&(t.push([[],n,i]),n=[],i=[]),t},e.prototype.applyRematchMatching=function(e,t,n){var i=e.length*t.length,r=Math.max.apply(null,[0].concat(e.concat(t).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?n(e,t):[[e,t]]},e.prototype.makeHeaderHtml=function(e,t){return this.hoganUtils.render(f,"block-header",{CSSLineClass:o.CSSLineClass,blockHeader:(null==t?void 0:t.isTooBig)?e:o.escapeForHtml(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})},e.prototype.processChangedLines=function(e,t,n){for(var r={right:"",left:""},a=Math.max(t.length,n.length),l=0;l<a;l++){var s=t[l],c=n[l],f=void 0!==s&&void 0!==c?o.diffHighlight(s.content,c.content,e,this.config):void 0,u=void 0!==s&&void 0!==s.oldNumber?i(i({},void 0!==f?{prefix:f.oldLine.prefix,content:f.oldLine.content,type:o.CSSLineClass.DELETE_CHANGES}:i(i({},o.deconstructLine(s.content,e)),{type:o.toCSSClass(s.type)})),{number:s.oldNumber}):void 0,d=void 0!==c&&void 0!==c.newNumber?i(i({},void 0!==f?{prefix:f.newLine.prefix,content:f.newLine.content,type:o.CSSLineClass.INSERT_CHANGES}:i(i({},o.deconstructLine(c.content,e)),{type:o.toCSSClass(c.type)})),{number:c.newNumber}):void 0,p=this.generateLineHtml(u,d),h=p.left,g=p.right;r.left+=h,r.right+=g}return r},e.prototype.generateLineHtml=function(e,t){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(t)}},e.prototype.generateSingleHtml=function(e){var t="d2h-code-side-linenumber",n="d2h-code-side-line";return this.hoganUtils.render(f,"line",{type:(null==e?void 0:e.type)||o.CSSLineClass.CONTEXT+" d2h-emptyplaceholder",lineClass:void 0!==e?t:t+" d2h-code-side-emptyplaceholder",contentClass:void 0!==e?n:n+" d2h-code-side-emptyplaceholder",prefix:" "===(null==e?void 0:e.prefix)?"&nbsp;":null==e?void 0:e.prefix,content:null==e?void 0:e.content,lineNumber:null==e?void 0:e.number})},e}();t.default=u},699:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiffStyleType=t.LineMatchingType=t.OutputFormatType=t.LineType=void 0,(n=t.LineType||(t.LineType={})).INSERT="insert",n.DELETE="delete",n.CONTEXT="context",t.OutputFormatType={LINE_BY_LINE:"line-by-line",SIDE_BY_SIDE:"side-by-side"},t.LineMatchingType={LINES:"lines",WORDS:"words",NONE:"none"},t.DiffStyleType={WORD:"word",CHAR:"char"}},169:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Diff2HtmlUI=t.defaultDiff2HtmlUIConfig=void 0;var r=n(529),a=n(834);t.defaultDiff2HtmlUIConfig=i(i({},a.defaultDiff2HtmlConfig),{synchronisedScroll:!0,highlight:!0,fileListToggle:!0,fileListStartVisible:!1,smartSelection:!0,fileContentToggle:!0});var l=function(){function e(e,n,r,l){void 0===r&&(r={}),this.hljs=null,this.currentSelectionColumnId=-1,this.config=i(i({},t.defaultDiff2HtmlUIConfig),r),this.diffHtml=void 0!==n?(0,a.html)(n,this.config):e.innerHTML,this.targetElement=e,void 0!==l&&(this.hljs=l)}return e.prototype.draw=function(){this.targetElement.innerHTML=this.diffHtml,this.config.synchronisedScroll&&this.synchronisedScroll(),this.config.highlight&&this.highlightCode(),this.config.fileListToggle&&this.fileListToggle(this.config.fileListStartVisible),this.config.fileContentToggle&&this.fileContentToggle()},e.prototype.synchronisedScroll=function(){this.targetElement.querySelectorAll(".d2h-file-wrapper").forEach((function(e){var t=Array().slice.call(e.querySelectorAll(".d2h-file-side-diff")),n=t[0],i=t[1];if(void 0!==n&&void 0!==i){var r=function(e){null!==e&&null!==e.target&&(e.target===n?(i.scrollTop=n.scrollTop,i.scrollLeft=n.scrollLeft):(n.scrollTop=i.scrollTop,n.scrollLeft=i.scrollLeft))};n.addEventListener("scroll",r),i.addEventListener("scroll",r)}}))},e.prototype.fileListToggle=function(e){var t=this.targetElement.querySelector(".d2h-show"),n=this.targetElement.querySelector(".d2h-hide"),i=this.targetElement.querySelector(".d2h-file-list");if(null!==t&&null!==n&&null!==i){var r=function(){t.style.display="none",n.style.display="inline",i.style.display="block"},a=function(){t.style.display="inline",n.style.display="none",i.style.display="none"};t.addEventListener("click",(function(){return r()})),n.addEventListener("click",(function(){return a()}));var l=this.getHashTag();"files-summary-show"===l?r():"files-summary-hide"===l?a():e?r():a()}},e.prototype.fileContentToggle=function(){this.targetElement.querySelectorAll(".d2h-file-collapse").forEach((function(e){e.style.display="flex";var t=function(t){var n,i=null===(n=e.closest(".d2h-file-wrapper"))||void 0===n?void 0:n.querySelector(t);null!=i&&(e.classList.toggle("d2h-selected"),i.classList.toggle("d2h-d-none"))};e.addEventListener("click",(function(n){return function(n){e!==n.target&&(t(".d2h-file-diff"),t(".d2h-files-diff"))}(n)}))}))},e.prototype.highlightCode=function(){var e=this;if(null===this.hljs)throw new Error("Missing a `highlight.js` implementation. Please provide one when instantiating Diff2HtmlUI.");this.targetElement.querySelectorAll(".d2h-file-wrapper").forEach((function(t){if(null!==e.hljs){var n=t.getAttribute("data-lang"),i=n?(0,r.getLanguage)(n):"plaintext";t.querySelectorAll(".d2h-code-line-ctn").forEach((function(t){if(null!==e.hljs){var n=t.textContent,a=t.parentNode;if(null!==n&&null!==a&&e.isElement(a)){var l=(0,r.closeTags)(e.hljs.highlight(n,{language:i,ignoreIllegals:!0})),s=(0,r.nodeStream)(t);if(s.length){var o=document.createElementNS("http://www.w3.org/1999/xhtml","div");o.innerHTML=l.value,l.value=(0,r.mergeStreams)(s,(0,r.nodeStream)(o),n)}t.classList.add("hljs"),l.language&&t.classList.add(l.language),t.innerHTML=l.value}}}))}}))},e.prototype.smartSelection=function(){console.warn("Smart selection is now enabled by default with CSS. No need to call this method anymore.")},e.prototype.getHashTag=function(){var e=document.URL,t=e.indexOf("#"),n=null;return-1!==t&&(n=e.substr(t+1)),n},e.prototype.isElement=function(e){var t;return null!==e&&void 0!==(null===(t=e)||void 0===t?void 0:t.classList)},e}();t.Diff2HtmlUI=l},529:(e,t)=>{"use strict";function n(e){return e.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function i(e){return e.nodeName.toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),t.getLanguage=t.closeTags=t.mergeStreams=t.nodeStream=void 0,t.nodeStream=function(e){var t=[],n=function(e,r){for(var a=e.firstChild;a;a=a.nextSibling)3===a.nodeType&&null!==a.nodeValue?r+=a.nodeValue.length:1===a.nodeType&&(t.push({event:"start",offset:r,node:a}),r=n(a,r),i(a).match(/br|hr|img|input/)||t.push({event:"stop",offset:r,node:a}));return r};return n(e,0),t},t.mergeStreams=function(e,t,r){var a=0,l="",s=[];function o(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function c(e){if(null===(t=e)||void 0===(null===(r=t)||void 0===r?void 0:r.attributes))throw new Error("Node is not an Element");var t,r;l+="<"+i(e)+" "+Array().map.call(e.attributes,(function(e){return e.nodeName+'="'+n(e.value).replace(/"/g,"&quot;")+'"'})).join(" ")+">"}function f(e){l+="</"+i(e)+">"}function u(e){("start"===e.event?c:f)(e.node)}for(;e.length||t.length;){var d=o();if(l+=n(r.substring(a,d[0].offset)),a=d[0].offset,d===e){s.reverse().forEach(f);do{u(d.splice(0,1)[0]),d=o()}while(d===e&&d.length&&d[0].offset===a);s.reverse().forEach(c)}else"start"===d[0].event?s.push(d[0].node):s.pop(),u(d.splice(0,1)[0])}return l+n(r.substr(a))},t.closeTags=function(e){var t=new Array;return e.value=e.value.split("\n").map((function(e){var n=t.map((function(e){return'<span class="'+e+'">'})).join(""),i=e.matchAll(/(<span class="(.*?)">|<\/span>)/g);return Array.from(i).forEach((function(e){"</span>"===e[0]?t.shift():t.unshift(e[2])})),n+e+"</span>".repeat(t.length)})).join("\n"),e};var r={"1c":"1c",abnf:"abnf",accesslog:"accesslog",as:"actionscript",adb:"ada",ada:"ada",ads:"ada",angelscript:"angelscript",apache:"apache",applescript:"applescript",scpt:"applescript",arcade:"arcade",cpp:"cpp",hpp:"cpp",arduino:"arduino",ino:"arduino",armasm:"armasm",arm:"armasm",xml:"xml",html:"xml",xhtml:"xml",rss:"xml",atom:"xml",xjb:"xml",xsd:"xml",xsl:"xml",plist:"xml",svg:"xml",asciidoc:"asciidoc",adoc:"asciidoc",asc:"asciidoc",aspectj:"aspectj",ahk:"autohotkey",ahkl:"autohotkey",au3:"autoit",avrasm:"avrasm",awk:"awk",axapta:"axapta","x++":"axapta",bash:"bash",sh:"bash",zsh:"bash",b:"basic",bnf:"bnf",bf:"brainfuck",c:"c",h:"c",cats:"c",idc:"c",cal:"cal",capnproto:"capnproto",capnp:"capnproto",ceylon:"ceylon",clean:"clean",clj:"clojure",boot:"clojure",cl2:"clojure",cljc:"clojure",cljs:"clojure","cljs.hl":"clojure",cljscm:"clojure",cljx:"clojure",hic:"clojure","clojure-repl":"clojure-repl",cmake:"cmake","cmake.in":"cmake",coffee:"coffeescript",_coffee:"coffeescript",cake:"coffeescript",cjsx:"coffeescript",iced:"coffeescript",cson:"coffeescript",coq:"coq",cos:"cos",cls:"cos",crmsh:"crmsh",crm:"crmsh",pcmk:"crmsh",cr:"crystal",cs:"csharp",csx:"csharp",csp:"csp",css:"css",d:"d",di:"d",md:"markdown",markdown:"markdown",mdown:"markdown",mdwn:"markdown",mkd:"markdown",mkdn:"markdown",mkdown:"markdown",ronn:"markdown",workbook:"markdown",dart:"dart",dpr:"delphi",dfm:"delphi",pas:"delphi",pascal:"delphi",diff:"diff",patch:"diff",django:"django",jinja:"django",dns:"dns",zone:"dns",bind:"dns",dockerfile:"dockerfile",docker:"dockerfile",dos:"dos",bat:"dos",cmd:"dos",dsconfig:"dsconfig",dts:"dts",dust:"dust",dst:"dust",ebnf:"ebnf",ex:"elixir",exs:"elixir",elm:"elm",rb:"ruby",builder:"ruby",eye:"ruby",gemspec:"ruby",god:"ruby",jbuilder:"ruby",mspec:"ruby",pluginspec:"ruby",podspec:"ruby",rabl:"ruby",rake:"ruby",rbuild:"ruby",rbw:"ruby",rbx:"ruby",ru:"ruby",ruby:"ruby",spec:"ruby",thor:"ruby",watchr:"ruby",erb:"erb","erlang-repl":"erlang-repl",erl:"erlang","app.src":"erlang",escript:"erlang",hrl:"erlang",xrl:"erlang",yrl:"erlang",excel:"excel",xls:"excel",xlsx:"excel",fix:"fix",flix:"flix",f90:"fortran",f:"fortran",f03:"fortran",f08:"fortran",f77:"fortran",f95:"fortran",for:"fortran",fpp:"fortran",fs:"fsharp",fsx:"fsharp",gams:"gams",gms:"gams",gauss:"gauss",gss:"gauss",gcode:"gcode",nc:"gcode",gherkin:"gherkin",glsl:"glsl",fp:"glsl",frag:"glsl",frg:"glsl",fsh:"glsl",fshader:"glsl",geo:"glsl",geom:"glsl",glslv:"glsl",gshader:"glsl",shader:"glsl",tesc:"glsl",tese:"glsl",vert:"glsl",vrx:"glsl",vsh:"glsl",vshader:"glsl",gml:"gml",go:"go",bal:"go",golo:"golo",gololang:"golo",gradle:"gradle",groovy:"groovy",grt:"groovy",gtpl:"groovy",gvy:"groovy",haml:"haml","haml.deface":"haml",handlebars:"handlebars",hbs:"handlebars","html.hbs":"handlebars","html.handlebars":"handlebars",hs:"haskell",hsc:"haskell",idr:"haskell",purs:"haskell",hx:"haxe",hxsl:"haxe",hsp:"hsp",htmlbars:"htmlbars",http:"http",https:"http",hy:"hy",inform7:"inform7",i7:"inform7",ini:"ini",toml:"ini",cfg:"ini",prefs:"ini",irpf90:"irpf90",isbl:"isbl",java:"java",jsp:"java",js:"javascript",jsx:"javascript",_js:"javascript",bones:"javascript",es:"javascript",es6:"javascript",gs:"javascript",jake:"javascript",jsb:"javascript",jscad:"javascript",jsfl:"javascript",jsm:"javascript",jss:"javascript",mjs:"javascript",njs:"javascript",pac:"javascript",sjs:"javascript",ssjs:"javascript",xsjs:"javascript",xsjslib:"javascript",cfc:"javascript","jboss-cli":"jboss-cli",json:"json",avsc:"json",geojson:"json",gltf:"json","JSON-tmLanguage":"json",jsonl:"json",tfstate:"json","tfstate.backup":"json",topojson:"json",webapp:"json",webmanifest:"json",jl:"julia","julia-repl":"julia-repl",kt:"kotlin",ktm:"kotlin",kts:"kotlin",lasso:"lasso",lassoscript:"lasso",tex:"latex",ldif:"ldif",leaf:"leaf",less:"less",lisp:"lisp",factor:"lisp",livecodeserver:"livecodeserver",ls:"livescript",_ls:"livescript",llvm:"llvm",lsl:"lsl",lua:"lua",nse:"lua",p8:"lua",pd_lua:"lua",rbxs:"lua",wlua:"lua",mak:"makefile",make:"makefile",mk:"makefile",mkfile:"makefile",mathematica:"mathematica",mma:"mathematica",wl:"mathematica",matlab:"matlab",maxima:"maxima",mel:"mel",mercury:"mercury",mipsasm:"mipsasm",miz:"mizar",voc:"mizar",al:"perl",cgi:"perl",fcgi:"perl",perl:"perl",ph:"perl",plx:"perl",pl:"perl",pm:"perl",psgi:"perl",t:"perl",mojolicious:"mojolicious",monkey:"monkey",monkey2:"monkey",moonscript:"moonscript",moon:"moonscript",n1ql:"n1ql",nginxconf:"nginx",nim:"nim",nimrod:"nim",nix:"nix",nsi:"nsis",nsh:"nsis",m:"objectivec",objc:"objectivec",mm:"objectivec","obj-c":"objectivec","obj-c++":"objectivec","objective-c++":"objectivec",fun:"ocaml",sig:"ocaml",ml:"ocaml",mli:"ocaml",eliom:"ocaml",eliomi:"ocaml",ml4:"ocaml",mll:"ocaml",mly:"ocaml",openscad:"openscad",oxygene:"oxygene",parser3:"parser3",pf:"pf","pf.conf":"pf",pgsql:"pgsql",postgres:"pgsql",postgresql:"pgsql",php:"php",aw:"php",ctp:"php",inc:"php",php3:"php",php4:"php",php5:"php",phps:"php",phpt:"php","php-template":"php-template",plaintext:"plaintext",txt:"plaintext",text:"plaintext",pony:"pony",ps:"powershell",ps1:"powershell",psd1:"powershell",psm1:"powershell",pde:"processing",profile:"profile",pro:"prolog",prolog:"prolog",yap:"prolog",properties:"properties",proto:"protobuf",puppet:"puppet",pp:"puppet",purebasic:"purebasic",py:"python",bzl:"python",gyp:"python",gypi:"python",lmi:"python",py3:"python",pyde:"python",pyi:"python",pyp:"python",pyt:"python",pyw:"python",rpy:"python",tac:"python",wsgi:"python",xpy:"python","python-repl":"python-repl",pycon:"python-repl",q:"q",k:"q",kdb:"q",qml:"qml",r:"r",rd:"r",rsx:"r",reasonml:"reasonml",re:"reasonml",rib:"rib",roboconf:"roboconf",graph:"roboconf",instances:"roboconf",routeros:"routeros",rsl:"rsl",ruleslanguage:"ruleslanguage",rs:"rust","rs.in":"rust",sas:"sas",scala:"scala",kojo:"scala",sbt:"scala",sc:"scala",scm:"scheme",sch:"scheme",sld:"scheme",sls:"scheme",sps:"scheme",ss:"scheme",rkt:"scheme",scilab:"scilab",scss:"scss",shell:"shell",smali:"smali",st:"smalltalk",sml:"sml",sqf:"sqf",sql:"sql",cql:"sql",ddl:"sql",mysql:"sql",prc:"sql",tab:"sql",udf:"sql",viw:"sql",stan:"stan",stanfuncs:"stan",stata:"stata",step21:"step21",step:"step21",stp:"step21",styl:"stylus",subunit:"subunit",swift:"swift",taggerscript:"taggerscript",yml:"yaml",mir:"yaml",reek:"yaml",rviz:"yaml","sublime-syntax":"yaml",syntax:"yaml",yaml:"yaml","yaml-tmlanguage":"yaml","yml.mysql":"yaml",tap:"tap",tcl:"tcl",adp:"tcl",tm:"tcl",thrift:"thrift",tp:"tp",twig:"twig",craftcms:"twig",ts:"typescript",tsx:"typescript",vala:"vala",vbnet:"vbnet",vb:"vbnet",vbscript:"vbscript",vbs:"vbscript","vbscript-html":"vbscript-html",v:"verilog",veo:"verilog",vhdl:"vhdl",vhd:"vhdl",vhf:"vhdl",vhi:"vhdl",vho:"vhdl",vhs:"vhdl",vht:"vhdl",vhw:"vhdl",vim:"vim",x86asm:"x86asm",xl:"xl",xquery:"xquery",xpath:"xquery",xq:"xquery",zephir:"zephir",zep:"zephir"};t.getLanguage=function(e){var t;return null!==(t=r[e])&&void 0!==t?t:"plaintext"}},593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashCode=t.unifyPath=t.escapeForRegExp=void 0;var n=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");t.escapeForRegExp=function(e){return e.replace(n,"\\$&")},t.unifyPath=function(e){return e?e.replace(/\\/g,"/"):e},t.hashCode=function(e){var t,n,i=0;for(t=0,n=e.length;t<n;t++)i=(i<<5)-i+e.charCodeAt(t),i|=0;return i}}},t={},function n(i){var r=t[i];if(void 0!==r)return r.exports;var a=t[i]={exports:{}};return e[i].call(a.exports,a,a.exports,n),a.exports}(169);var e,t}));