Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

diff2html

Package Overview
Dependencies
Maintainers
1
Versions
208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diff2html - npm Package Compare versions

Comparing version 3.1.4 to 3.1.5

4

bundles/js/diff2html.min.js

@@ -1,2 +0,2 @@

!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("Diff2Html",[],n):"object"==typeof exports?exports.Diff2Html=n():e.Diff2Html=n()}(this,(function(){return function(e){var n={};function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(i,r,function(n){return e[n]}.bind(null,r));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=5)}([function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){e.INSERT="insert",e.DELETE="delete",e.CONTEXT="context"}(n.LineType||(n.LineType={})),n.OutputFormatType={LINE_BY_LINE:"line-by-line",SIDE_BY_SIDE:"side-by-side"},n.LineMatchingType={LINES:"lines",WORDS:"words",NONE:"none"},n.DiffStyleType={WORD:"word",CHAR:"char"}},function(e,n,t){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n};Object.defineProperty(n,"__esModule",{value:!0});var a=r(t(8)),o=t(3),s=r(t(2)),l=t(0);n.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"},n.defaultRenderConfig={matching:l.LineMatchingType.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:l.DiffStyleType.WORD};var f=s.newDistanceFn((function(e){return e.value})),u=s.newMatcherFn(f);function d(e){return-1!==e.indexOf("dev/null")}function c(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function h(e){return e.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function p(e,n,t){void 0===t&&(t=!0);var i=function(e){return e?2:1}(n);return{prefix:e.substring(0,i),content:t?h(e.substring(i)):e.substring(i)}}function b(e){var n=o.unifyPath(e.oldName),t=o.unifyPath(e.newName);if(n===t||d(n)||d(t))return d(t)?n:t;for(var i=[],r=[],a=n.split("/"),s=t.split("/"),l=0,f=a.length-1,u=s.length-1;l<f&&l<u&&a[l]===s[l];)i.push(s[l]),l+=1;for(;f>l&&u>l&&a[f]===s[u];)r.unshift(s[u]),f-=1,u-=1;var c=i.join("/"),h=r.join("/"),p=a.slice(l,f+1).join("/"),b=s.slice(l,u+1).join("/");return c.length&&h.length?c+"/{"+p+" → "+b+"}/"+h:c.length?c+"/{"+p+" → "+b+"}":h.length?"{"+p+" → "+b+"}/"+h:n+" → "+t}n.toCSSClass=function(e){switch(e){case l.LineType.CONTEXT:return n.CSSLineClass.CONTEXT;case l.LineType.INSERT:return n.CSSLineClass.INSERTS;case l.LineType.DELETE:return n.CSSLineClass.DELETES}},n.escapeForHtml=h,n.deconstructLine=p,n.filenameDiff=b,n.getHtmlId=function(e){return"d2h-"+o.hashCode(b(e)).toString().slice(-6)},n.getFileIcon=function(e){var n="file-changed";return e.isRename?n="file-renamed":e.isCopy?n="file-renamed":e.isNew?n="file-added":e.isDeleted?n="file-deleted":e.newName!==e.oldName&&(n="file-renamed"),n},n.diffHighlight=function(e,t,r,o){void 0===o&&(o={});var s=i(i({},n.defaultRenderConfig),o),l=s.matching,d=s.maxLineLengthHighlight,b=s.matchWordsThreshold,g=s.diffStyle,v=p(e,r,!1),m=p(t,r,!1);if(v.content.length>d||m.content.length>d)return{oldLine:{prefix:v.prefix,content:v.content},newLine:{prefix:m.prefix,content:m.content}};var y="char"===g?a.diffChars(v.content,m.content):a.diffWordsWithSpace(v.content,m.content),w=[];if("word"===g&&"words"===l){var x=y.filter((function(e){return e.removed})),L=y.filter((function(e){return e.added}));u(L,x).forEach((function(e){1===e[0].length&&1===e[1].length&&(f(e[0][0],e[1][0])<b&&(w.push(e[0][0]),w.push(e[1][0])))}))}var S,C=y.reduce((function(e,n){var t=n.added?"ins":n.removed?"del":null,i=w.indexOf(n)>-1?' class="d2h-change"':"",r=h(n.value);return null!==t?e+"<"+t+i+">"+r+"</"+t+">":""+e+r}),"");return{oldLine:{prefix:v.prefix,content:(S=C,S.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:m.prefix,content:c(C)}}}},function(e,n,t){"use strict";function i(e,n){if(0===e.length)return n.length;if(0===n.length)return e.length;var t,i,r=[];for(t=0;t<=n.length;t++)r[t]=[t];for(i=0;i<=e.length;i++)r[0][i]=i;for(t=1;t<=n.length;t++)for(i=1;i<=e.length;i++)n.charAt(t-1)===e.charAt(i-1)?r[t][i]=r[t-1][i-1]:r[t][i]=Math.min(r[t-1][i-1]+1,Math.min(r[t][i-1]+1,r[t-1][i]+1));return r[n.length][e.length]}Object.defineProperty(n,"__esModule",{value:!0}),n.levenshtein=i,n.newDistanceFn=function(e){return function(n,t){var r=e(n).trim(),a=e(t).trim();return i(r,a)/(r.length+a.length)}},n.newMatcherFn=function(e){return function n(t,i,r,a){void 0===r&&(r=0),void 0===a&&(a=new Map);var o=function(n,t,i){void 0===i&&(i=new Map);for(var r,a=1/0,o=0;o<n.length;++o)for(var s=0;s<t.length;++s){var l=JSON.stringify([n[o],t[s]]),f=void 0;i.has(l)&&(f=i.get(l))||(f=e(n[o],t[s]),i.set(l,f)),f<a&&(r={indexA:o,indexB:s,score:a=f})}return r}(t,i,a);if(!o||t.length+i.length<3)return[[t,i]];var s=t.slice(0,o.indexA),l=i.slice(0,o.indexB),f=[t[o.indexA]],u=[i[o.indexB]],d=o.indexA+1,c=o.indexB+1,h=t.slice(d),p=i.slice(c),b=n(s,l,r+1,a),g=n(f,u,r+1,a),v=n(h,p,r+1,a),m=g;return(o.indexA>0||o.indexB>0)&&(m=b.concat(m)),(t.length>d||i.length>c)&&(m=m.concat(v)),m}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");n.escapeForRegExp=function(e){return e.replace(i,"\\$&")},n.unifyPath=function(e){return e?e.replace(/\\/g,"/"):e},n.hashCode=function(e){var n,t,i=0;for(n=0,t=e.length;n<t;n++)i=(i<<5)-i+e.charCodeAt(n),i|=0;return i}},function(e,n,t){var i=t(12);i.Template=t(13).Template,i.template=i.Template,e.exports=i},function(e,n,t){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var o=r(t(6)),s=r(t(7)),l=r(t(9)),f=r(t(10)),u=t(0),d=a(t(11));n.defaultDiff2HtmlConfig=i(i(i({},l.defaultLineByLineRendererConfig),f.defaultSideBySideRendererConfig),{outputFormat:u.OutputFormatType.LINE_BY_LINE,drawFileList:!0}),n.parse=function(e,t){return void 0===t&&(t={}),o.parse(e,i(i({},n.defaultDiff2HtmlConfig),t))},n.html=function(e,t){void 0===t&&(t={});var r=i(i({},n.defaultDiff2HtmlConfig),t),a="string"==typeof e?o.parse(e,r):e,u=new d.default(r);return(r.drawFileList?s.render(a,u):"")+("side-by-side"===r.outputFormat?new f.default(u,r).render(a):new l.default(u,r).render(a))}},function(e,n,t){"use strict";var i=this&&this.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var i=Array(e),r=0;for(n=0;n<t;n++)for(var a=arguments[n],o=0,s=a.length;o<s;o++,r++)i[r]=a[o];return i};Object.defineProperty(n,"__esModule",{value:!0});var r=t(0),a=t(3);function o(e,n){var t=e.split(".");return t.length>1?t[t.length-1]:n}function s(e,n){return n.reduce((function(n,t){return n||e.startsWith(t)}),!1)}var l=["a/","b/","i/","w/","c/","o/"];function f(e,n,t){var r=void 0!==t?i(l,[t]):l,o=((n?new RegExp("^"+a.escapeForRegExp(n)+' "?(.+?)"?$'):new RegExp('^"?(.+?)"?$')).exec(e)||[])[1],s=void 0===o?"":o,f=r.find((function(e){return 0===s.indexOf(e)}));return(f?s.slice(f.length):s).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}n.parse=function(e,n){void 0===n&&(n={});var t=[],i=null,a=null,l=null,u=null,d=null,c=null,h=null,p=/^old mode (\d{6})/,b=/^new mode (\d{6})/,g=/^deleted file mode (\d{6})/,v=/^new file mode (\d{6})/,m=/^copy from "?(.+)"?/,y=/^copy to "?(.+)"?/,w=/^rename from "?(.+)"?/,x=/^rename to "?(.+)"?/,L=/^similarity index (\d+)%/,S=/^dissimilarity index (\d+)%/,C=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,T=/^Binary files (.*) and (.*) differ/,N=/^GIT binary patch/,E=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,H=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,k=/^new file mode (\d{6})/,O=/^deleted file mode (\d{6}),(\d{6})/,_=e.replace(/\\ No newline at end of file/g,"").replace(/\r\n?/g,"\n").split("\n");function F(){null!==a&&null!==i&&(i.blocks.push(a),a=null)}function I(){null!==i&&(i.oldName||null===c||(i.oldName=c),i.newName||null===h||(i.newName=h),i.newName&&(t.push(i),i=null)),c=null,h=null}function M(){F(),I(),i={blocks:[],deletedLines:0,addedLines:0}}function P(e){var n;F(),null!==i&&((n=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(i.isCombined=!1,l=parseInt(n[1],10),d=parseInt(n[2],10)):(n=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(i.isCombined=!0,l=parseInt(n[1],10),u=parseInt(n[2],10),d=parseInt(n[3],10)):(e.startsWith("@@")&&console.error("Failed to parse lines, starting in 0!"),l=0,d=0,i.isCombined=!1)),a={lines:[],oldStartLine:l,oldStartLine2:u,newStartLine:d,header:e}}return _.forEach((function(e,t){if(e&&!e.startsWith("*")){var u,F=_[t-1],I=_[t+1],j=_[t+2];if(e.startsWith("diff")){M();if((u=/^diff --git "?(.+)"? "?(.+)"?/.exec(e))&&(c=f(u[1],void 0,n.dstPrefix),h=f(u[2],void 0,n.srcPrefix)),null===i)throw new Error("Where is my file !!!");i.isGitDiff=!0}else{if((!i||!i.isGitDiff&&i&&e.startsWith("--- ")&&I.startsWith("+++ ")&&j.startsWith("@@"))&&M(),e.startsWith("--- ")&&I.startsWith("+++ ")||e.startsWith("+++ ")&&F.startsWith("--- ")){if(i&&!i.oldName&&e.startsWith("--- ")&&(u=function(e,n){return f(e,"---",n)}(e,n.srcPrefix)))return i.oldName=u,void(i.language=o(i.oldName,i.language));if(i&&!i.newName&&e.startsWith("+++ ")&&(u=function(e,n){return f(e,"+++",n)}(e,n.dstPrefix)))return i.newName=u,void(i.language=o(i.newName,i.language))}if(i&&(e.startsWith("@@")||i.isGitDiff&&i.oldName&&i.newName&&!a))P(e);else if(a&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))!function(e){if(null!==i&&null!==a&&null!==l&&null!==d){var n={content:e},t=i.isCombined?["+ "," +","++"]:["+"],o=i.isCombined?["- "," -","--"]:["-"];s(e,t)?(i.addedLines++,n.type=r.LineType.INSERT,n.oldNumber=void 0,n.newNumber=d++):s(e,o)?(i.deletedLines++,n.type=r.LineType.DELETE,n.oldNumber=l++,n.newNumber=void 0):(n.type=r.LineType.CONTEXT,n.oldNumber=l++,n.newNumber=d++),a.lines.push(n)}}(e);else{var D=!function(e,n){for(var t=n;t<_.length-3;){if(e.startsWith("diff"))return!1;if(_[t].startsWith("--- ")&&_[t+1].startsWith("+++ ")&&_[t+2].startsWith("@@"))return!0;t++}return!1}(e,t);if(null===i)throw new Error("Where is my file !!!");(u=p.exec(e))?i.oldMode=u[1]:(u=b.exec(e))?i.newMode=u[1]:(u=g.exec(e))?(i.deletedFileMode=u[1],i.isDeleted=!0):(u=v.exec(e))?(i.newFileMode=u[1],i.isNew=!0):(u=m.exec(e))?(D&&(i.oldName=u[1]),i.isCopy=!0):(u=y.exec(e))?(D&&(i.newName=u[1]),i.isCopy=!0):(u=w.exec(e))?(D&&(i.oldName=u[1]),i.isRename=!0):(u=x.exec(e))?(D&&(i.newName=u[1]),i.isRename=!0):(u=T.exec(e))?(i.isBinary=!0,i.oldName=f(u[1],void 0,n.srcPrefix),i.newName=f(u[2],void 0,n.dstPrefix),P("Binary file")):N.test(e)?(i.isBinary=!0,P(e)):(u=L.exec(e))?i.unchangedPercentage=parseInt(u[1],10):(u=S.exec(e))?i.changedPercentage=parseInt(u[1],10):(u=C.exec(e))?(i.checksumBefore=u[1],i.checksumAfter=u[2],u[3]&&(i.mode=u[3])):(u=E.exec(e))?(i.checksumBefore=[u[2],u[3]],i.checksumAfter=u[1]):(u=H.exec(e))?(i.oldMode=[u[2],u[3]],i.newMode=u[1]):(u=k.exec(e))?(i.newFileMode=u[1],i.isNew=!0):(u=O.exec(e))&&(i.deletedFileMode=u[1],i.isDeleted=!0)}}}})),F(),I(),t}},function(e,n,t){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n};Object.defineProperty(n,"__esModule",{value:!0});var r=i(t(1));n.render=function(e,n){var t=e.map((function(e){return n.render("file-summary","line",{fileHtmlId:r.getHtmlId(e),oldName:e.oldName,newName:e.newName,fileName:r.filenameDiff(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:n.template("icon",r.getFileIcon(e))})})).join("\n");return n.render("file-summary","wrapper",{filesNumber:e.length,files:t})}},function(e,n,t){
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("Diff2Html",[],n):"object"==typeof exports?exports.Diff2Html=n():e.Diff2Html=n()}(this,(function(){return function(e){var n={};function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(i,r,function(n){return e[n]}.bind(null,r));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=5)}([function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){e.INSERT="insert",e.DELETE="delete",e.CONTEXT="context"}(n.LineType||(n.LineType={})),n.OutputFormatType={LINE_BY_LINE:"line-by-line",SIDE_BY_SIDE:"side-by-side"},n.LineMatchingType={LINES:"lines",WORDS:"words",NONE:"none"},n.DiffStyleType={WORD:"word",CHAR:"char"}},function(e,n,t){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n};Object.defineProperty(n,"__esModule",{value:!0});var a=r(t(8)),s=t(3),o=r(t(2)),l=t(0);n.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"},n.defaultRenderConfig={matching:l.LineMatchingType.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:l.DiffStyleType.WORD};var f=o.newDistanceFn((function(e){return e.value})),u=o.newMatcherFn(f);function d(e){return-1!==e.indexOf("dev/null")}function c(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function h(e){return e.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function p(e,n,t){void 0===t&&(t=!0);var i=function(e){return e?2:1}(n);return{prefix:e.substring(0,i),content:t?h(e.substring(i)):e.substring(i)}}function b(e){var n=s.unifyPath(e.oldName),t=s.unifyPath(e.newName);if(n===t||d(n)||d(t))return d(t)?n:t;for(var i=[],r=[],a=n.split("/"),o=t.split("/"),l=0,f=a.length-1,u=o.length-1;l<f&&l<u&&a[l]===o[l];)i.push(o[l]),l+=1;for(;f>l&&u>l&&a[f]===o[u];)r.unshift(o[u]),f-=1,u-=1;var c=i.join("/"),h=r.join("/"),p=a.slice(l,f+1).join("/"),b=o.slice(l,u+1).join("/");return c.length&&h.length?c+"/{"+p+" → "+b+"}/"+h:c.length?c+"/{"+p+" → "+b+"}":h.length?"{"+p+" → "+b+"}/"+h:n+" → "+t}n.toCSSClass=function(e){switch(e){case l.LineType.CONTEXT:return n.CSSLineClass.CONTEXT;case l.LineType.INSERT:return n.CSSLineClass.INSERTS;case l.LineType.DELETE:return n.CSSLineClass.DELETES}},n.escapeForHtml=h,n.deconstructLine=p,n.filenameDiff=b,n.getHtmlId=function(e){return"d2h-"+s.hashCode(b(e)).toString().slice(-6)},n.getFileIcon=function(e){var n="file-changed";return e.isRename||e.isCopy?n="file-renamed":e.isNew?n="file-added":e.isDeleted?n="file-deleted":e.newName!==e.oldName&&(n="file-renamed"),n},n.diffHighlight=function(e,t,r,s){void 0===s&&(s={});var o=i(i({},n.defaultRenderConfig),s),l=o.matching,d=o.maxLineLengthHighlight,b=o.matchWordsThreshold,g=o.diffStyle,v=p(e,r,!1),m=p(t,r,!1);if(v.content.length>d||m.content.length>d)return{oldLine:{prefix:v.prefix,content:v.content},newLine:{prefix:m.prefix,content:m.content}};var y="char"===g?a.diffChars(v.content,m.content):a.diffWordsWithSpace(v.content,m.content),w=[];if("word"===g&&"words"===l){var x=y.filter((function(e){return e.removed})),L=y.filter((function(e){return e.added}));u(L,x).forEach((function(e){1===e[0].length&&1===e[1].length&&(f(e[0][0],e[1][0])<b&&(w.push(e[0][0]),w.push(e[1][0])))}))}var S,C=y.reduce((function(e,n){var t=n.added?"ins":n.removed?"del":null,i=w.indexOf(n)>-1?' class="d2h-change"':"",r=h(n.value);return null!==t?e+"<"+t+i+">"+r+"</"+t+">":""+e+r}),"");return{oldLine:{prefix:v.prefix,content:(S=C,S.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:m.prefix,content:c(C)}}}},function(e,n,t){"use strict";function i(e,n){if(0===e.length)return n.length;if(0===n.length)return e.length;var t,i,r=[];for(t=0;t<=n.length;t++)r[t]=[t];for(i=0;i<=e.length;i++)r[0][i]=i;for(t=1;t<=n.length;t++)for(i=1;i<=e.length;i++)n.charAt(t-1)===e.charAt(i-1)?r[t][i]=r[t-1][i-1]:r[t][i]=Math.min(r[t-1][i-1]+1,Math.min(r[t][i-1]+1,r[t-1][i]+1));return r[n.length][e.length]}Object.defineProperty(n,"__esModule",{value:!0}),n.levenshtein=i,n.newDistanceFn=function(e){return function(n,t){var r=e(n).trim(),a=e(t).trim();return i(r,a)/(r.length+a.length)}},n.newMatcherFn=function(e){return function n(t,i,r,a){void 0===r&&(r=0),void 0===a&&(a=new Map);var s=function(n,t,i){void 0===i&&(i=new Map);for(var r,a=1/0,s=0;s<n.length;++s)for(var o=0;o<t.length;++o){var l=JSON.stringify([n[s],t[o]]),f=void 0;i.has(l)&&(f=i.get(l))||(f=e(n[s],t[o]),i.set(l,f)),f<a&&(r={indexA:s,indexB:o,score:a=f})}return r}(t,i,a);if(!s||t.length+i.length<3)return[[t,i]];var o=t.slice(0,s.indexA),l=i.slice(0,s.indexB),f=[t[s.indexA]],u=[i[s.indexB]],d=s.indexA+1,c=s.indexB+1,h=t.slice(d),p=i.slice(c),b=n(o,l,r+1,a),g=n(f,u,r+1,a),v=n(h,p,r+1,a),m=g;return(s.indexA>0||s.indexB>0)&&(m=b.concat(m)),(t.length>d||i.length>c)&&(m=m.concat(v)),m}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");n.escapeForRegExp=function(e){return e.replace(i,"\\$&")},n.unifyPath=function(e){return e?e.replace(/\\/g,"/"):e},n.hashCode=function(e){var n,t,i=0;for(n=0,t=e.length;n<t;n++)i=(i<<5)-i+e.charCodeAt(n),i|=0;return i}},function(e,n,t){var i=t(12);i.Template=t(13).Template,i.template=i.Template,e.exports=i},function(e,n,t){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var s=r(t(6)),o=r(t(7)),l=r(t(9)),f=r(t(10)),u=t(0),d=a(t(11));n.defaultDiff2HtmlConfig=i(i(i({},l.defaultLineByLineRendererConfig),f.defaultSideBySideRendererConfig),{outputFormat:u.OutputFormatType.LINE_BY_LINE,drawFileList:!0}),n.parse=function(e,t){return void 0===t&&(t={}),s.parse(e,i(i({},n.defaultDiff2HtmlConfig),t))},n.html=function(e,t){void 0===t&&(t={});var r=i(i({},n.defaultDiff2HtmlConfig),t),a="string"==typeof e?s.parse(e,r):e,u=new d.default(r);return(r.drawFileList?o.render(a,u):"")+("side-by-side"===r.outputFormat?new f.default(u,r).render(a):new l.default(u,r).render(a))}},function(e,n,t){"use strict";var i=this&&this.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var i=Array(e),r=0;for(n=0;n<t;n++)for(var a=arguments[n],s=0,o=a.length;s<o;s++,r++)i[r]=a[s];return i};Object.defineProperty(n,"__esModule",{value:!0});var r=t(0),a=t(3);function s(e,n){var t=e.split(".");return t.length>1?t[t.length-1]:n}function o(e,n){return n.reduce((function(n,t){return n||e.startsWith(t)}),!1)}var l=["a/","b/","i/","w/","c/","o/"];function f(e,n,t){var r=void 0!==t?i(l,[t]):l,s=((n?new RegExp("^"+a.escapeForRegExp(n)+' "?(.+?)"?$'):new RegExp('^"?(.+?)"?$')).exec(e)||[])[1],o=void 0===s?"":s,f=r.find((function(e){return 0===o.indexOf(e)}));return(f?o.slice(f.length):o).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}n.parse=function(e,n){void 0===n&&(n={});var t=[],i=null,a=null,l=null,u=null,d=null,c=null,h=null,p=/^old mode (\d{6})/,b=/^new mode (\d{6})/,g=/^deleted file mode (\d{6})/,v=/^new file mode (\d{6})/,m=/^copy from "?(.+)"?/,y=/^copy to "?(.+)"?/,w=/^rename from "?(.+)"?/,x=/^rename to "?(.+)"?/,L=/^similarity index (\d+)%/,S=/^dissimilarity index (\d+)%/,C=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,T=/^Binary files (.*) and (.*) differ/,N=/^GIT binary patch/,E=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,H=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,k=/^new file mode (\d{6})/,O=/^deleted file mode (\d{6}),(\d{6})/,_=e.replace(/\\ No newline at end of file/g,"").replace(/\r\n?/g,"\n").split("\n");function F(){null!==a&&null!==i&&(i.blocks.push(a),a=null)}function I(){null!==i&&(i.oldName||null===c||(i.oldName=c),i.newName||null===h||(i.newName=h),i.newName&&(t.push(i),i=null)),c=null,h=null}function M(){F(),I(),i={blocks:[],deletedLines:0,addedLines:0}}function P(e){var n;F(),null!==i&&((n=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(i.isCombined=!1,l=parseInt(n[1],10),d=parseInt(n[2],10)):(n=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(i.isCombined=!0,l=parseInt(n[1],10),u=parseInt(n[2],10),d=parseInt(n[3],10)):(e.startsWith("@@")&&console.error("Failed to parse lines, starting in 0!"),l=0,d=0,i.isCombined=!1)),a={lines:[],oldStartLine:l,oldStartLine2:u,newStartLine:d,header:e}}return _.forEach((function(e,t){if(e&&!e.startsWith("*")){var u,F=_[t-1],I=_[t+1],j=_[t+2];if(e.startsWith("diff")){M();if((u=/^diff --git "?(.+)"? "?(.+)"?/.exec(e))&&(c=f(u[1],void 0,n.dstPrefix),h=f(u[2],void 0,n.srcPrefix)),null===i)throw new Error("Where is my file !!!");i.isGitDiff=!0}else{if((!i||!i.isGitDiff&&i&&e.startsWith("--- ")&&I.startsWith("+++ ")&&j.startsWith("@@"))&&M(),e.startsWith("--- ")&&I.startsWith("+++ ")||e.startsWith("+++ ")&&F.startsWith("--- ")){if(i&&!i.oldName&&e.startsWith("--- ")&&(u=function(e,n){return f(e,"---",n)}(e,n.srcPrefix)))return i.oldName=u,void(i.language=s(i.oldName,i.language));if(i&&!i.newName&&e.startsWith("+++ ")&&(u=function(e,n){return f(e,"+++",n)}(e,n.dstPrefix)))return i.newName=u,void(i.language=s(i.newName,i.language))}if(i&&(e.startsWith("@@")||i.isGitDiff&&i.oldName&&i.newName&&!a))P(e);else if(a&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))!function(e){if(null!==i&&null!==a&&null!==l&&null!==d){var n={content:e},t=i.isCombined?["+ "," +","++"]:["+"],s=i.isCombined?["- "," -","--"]:["-"];o(e,t)?(i.addedLines++,n.type=r.LineType.INSERT,n.oldNumber=void 0,n.newNumber=d++):o(e,s)?(i.deletedLines++,n.type=r.LineType.DELETE,n.oldNumber=l++,n.newNumber=void 0):(n.type=r.LineType.CONTEXT,n.oldNumber=l++,n.newNumber=d++),a.lines.push(n)}}(e);else{var D=!function(e,n){for(var t=n;t<_.length-3;){if(e.startsWith("diff"))return!1;if(_[t].startsWith("--- ")&&_[t+1].startsWith("+++ ")&&_[t+2].startsWith("@@"))return!0;t++}return!1}(e,t);if(null===i)throw new Error("Where is my file !!!");(u=p.exec(e))?i.oldMode=u[1]:(u=b.exec(e))?i.newMode=u[1]:(u=g.exec(e))?(i.deletedFileMode=u[1],i.isDeleted=!0):(u=v.exec(e))?(i.newFileMode=u[1],i.isNew=!0):(u=m.exec(e))?(D&&(i.oldName=u[1]),i.isCopy=!0):(u=y.exec(e))?(D&&(i.newName=u[1]),i.isCopy=!0):(u=w.exec(e))?(D&&(i.oldName=u[1]),i.isRename=!0):(u=x.exec(e))?(D&&(i.newName=u[1]),i.isRename=!0):(u=T.exec(e))?(i.isBinary=!0,i.oldName=f(u[1],void 0,n.srcPrefix),i.newName=f(u[2],void 0,n.dstPrefix),P("Binary file")):N.test(e)?(i.isBinary=!0,P(e)):(u=L.exec(e))?i.unchangedPercentage=parseInt(u[1],10):(u=S.exec(e))?i.changedPercentage=parseInt(u[1],10):(u=C.exec(e))?(i.checksumBefore=u[1],i.checksumAfter=u[2],u[3]&&(i.mode=u[3])):(u=E.exec(e))?(i.checksumBefore=[u[2],u[3]],i.checksumAfter=u[1]):(u=H.exec(e))?(i.oldMode=[u[2],u[3]],i.newMode=u[1]):(u=k.exec(e))?(i.newFileMode=u[1],i.isNew=!0):(u=O.exec(e))&&(i.deletedFileMode=u[1],i.isDeleted=!0)}}}})),F(),I(),t}},function(e,n,t){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n};Object.defineProperty(n,"__esModule",{value:!0});var r=i(t(1));n.render=function(e,n){var t=e.map((function(e){return n.render("file-summary","line",{fileHtmlId:r.getHtmlId(e),oldName:e.oldName,newName:e.newName,fileName:r.filenameDiff(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:n.template("icon",r.getFileIcon(e))})})).join("\n");return n.render("file-summary","wrapper",{filesNumber:e.length,files:t})}},function(e,n,t){
/*!

@@ -39,2 +39,2 @@

*/
!function(e){"use strict";function n(){}function t(e,n,t,i,r){for(var a=0,o=n.length,s=0,l=0;a<o;a++){var f=n[a];if(f.removed){if(f.value=e.join(i.slice(l,l+f.count)),l+=f.count,a&&n[a-1].added){var u=n[a-1];n[a-1]=n[a],n[a]=u}}else{if(!f.added&&r){var d=t.slice(s,s+f.count);d=d.map((function(e,n){var t=i[l+n];return t.length>e.length?t:e})),f.value=e.join(d)}else f.value=e.join(t.slice(s,s+f.count));s+=f.count,f.added||(l+=f.count)}}var c=n[o-1];return o>1&&"string"==typeof c.value&&(c.added||c.removed)&&e.equals("",c.value)&&(n[o-2].value+=c.value,n.pop()),n}function i(e){return{newPos:e.newPos,components:e.components.slice(0)}}n.prototype={diff:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r.callback;"function"==typeof r&&(a=r,r={}),this.options=r;var o=this;function s(e){return a?(setTimeout((function(){a(void 0,e)}),0),!0):e}e=this.castInput(e),n=this.castInput(n),e=this.removeEmpty(this.tokenize(e));var l=(n=this.removeEmpty(this.tokenize(n))).length,f=e.length,u=1,d=l+f,c=[{newPos:-1,components:[]}],h=this.extractCommon(c[0],n,e,0);if(c[0].newPos+1>=l&&h+1>=f)return s([{value:this.join(n),count:n.length}]);function p(){for(var r=-1*u;r<=u;r+=2){var a=void 0,d=c[r-1],h=c[r+1],p=(h?h.newPos:0)-r;d&&(c[r-1]=void 0);var b=d&&d.newPos+1<l,g=h&&0<=p&&p<f;if(b||g){if(!b||g&&d.newPos<h.newPos?(a=i(h),o.pushComponent(a.components,void 0,!0)):((a=d).newPos++,o.pushComponent(a.components,!0,void 0)),p=o.extractCommon(a,n,e,r),a.newPos+1>=l&&p+1>=f)return s(t(o,a.components,n,e,o.useLongestToken));c[r]=a}else c[r]=void 0}u++}if(a)!function e(){setTimeout((function(){if(u>d)return a();p()||e()}),0)}();else for(;u<=d;){var b=p();if(b)return b}},pushComponent:function(e,n,t){var i=e[e.length-1];i&&i.added===n&&i.removed===t?e[e.length-1]={count:i.count+1,added:n,removed:t}:e.push({count:1,added:n,removed:t})},extractCommon:function(e,n,t,i){for(var r=n.length,a=t.length,o=e.newPos,s=o-i,l=0;o+1<r&&s+1<a&&this.equals(n[o+1],t[s+1]);)o++,s++,l++;return l&&e.components.push({count:l}),e.newPos=o,s},equals:function(e,n){return this.options.comparator?this.options.comparator(e,n):e===n||this.options.ignoreCase&&e.toLowerCase()===n.toLowerCase()},removeEmpty:function(e){for(var n=[],t=0;t<e.length;t++)e[t]&&n.push(e[t]);return n},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var r=new n;function a(e,n){if("function"==typeof e)n.callback=e;else if(e)for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}var o=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,s=/\S/,l=new n;l.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!s.test(e)&&!s.test(n)},l.tokenize=function(e){for(var n=e.split(/(\s+|[()[\]{}'"]|\b)/),t=0;t<n.length-1;t++)!n[t+1]&&n[t+2]&&o.test(n[t])&&o.test(n[t+2])&&(n[t]+=n[t+2],n.splice(t+1,2),t--);return n};var f=new n;function u(e,n,t){return f.diff(e,n,t)}f.tokenize=function(e){var n=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var i=0;i<t.length;i++){var r=t[i];i%2&&!this.options.newlineIsToken?n[n.length-1]+=r:(this.options.ignoreWhitespace&&(r=r.trim()),n.push(r))}return n};var d=new n;d.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var c=new n;function h(e){return(h="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)}function p(e){return function(e){if(Array.isArray(e)){for(var n=0,t=new Array(e.length);n<e.length;n++)t[n]=e[n];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}c.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var b=Object.prototype.toString,g=new n;function v(e,n,t,i,r){var a,o;for(n=n||[],t=t||[],i&&(e=i(r,e)),a=0;a<n.length;a+=1)if(n[a]===e)return t[a];if("[object Array]"===b.call(e)){for(n.push(e),o=new Array(e.length),t.push(o),a=0;a<e.length;a+=1)o[a]=v(e[a],n,t,i,r);return n.pop(),t.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),"object"===h(e)&&null!==e){n.push(e),o={},t.push(o);var s,l=[];for(s in e)e.hasOwnProperty(s)&&l.push(s);for(l.sort(),a=0;a<l.length;a+=1)o[s=l[a]]=v(e[s],n,t,i,s);n.pop(),t.pop()}else o=e;return o}g.useLongestToken=!0,g.tokenize=f.tokenize,g.castInput=function(e){var n=this.options,t=n.undefinedReplacement,i=n.stringifyReplacer,r=void 0===i?function(e,n){return void 0===n?t:n}:i;return"string"==typeof e?e:JSON.stringify(v(e,null,null,r),r," ")},g.equals=function(e,t){return n.prototype.equals.call(g,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var m=new n;function y(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],r=[],a=0;function o(){var e={};for(r.push(e);a<t.length;){var i=t[a];if(/^(\-\-\-|\+\+\+|@@)\s/.test(i))break;var o=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(i);o&&(e.index=o[1]),a++}for(s(e),s(e),e.hunks=[];a<t.length;){var f=t[a];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(f))break;if(/^@@/.test(f))e.hunks.push(l());else{if(f&&n.strict)throw new Error("Unknown line "+(a+1)+" "+JSON.stringify(f));a++}}}function s(e){var n=/^(---|\+\+\+)\s+(.*)$/.exec(t[a]);if(n){var i="---"===n[1]?"old":"new",r=n[2].split("\t",2),o=r[0].replace(/\\\\/g,"\\");/^".*"$/.test(o)&&(o=o.substr(1,o.length-2)),e[i+"FileName"]=o,e[i+"Header"]=(r[1]||"").trim(),a++}}function l(){for(var e=a,r=t[a++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),o={oldStart:+r[1],oldLines:+r[2]||1,newStart:+r[3],newLines:+r[4]||1,lines:[],linedelimiters:[]},s=0,l=0;a<t.length&&!(0===t[a].indexOf("--- ")&&a+2<t.length&&0===t[a+1].indexOf("+++ ")&&0===t[a+2].indexOf("@@"));a++){var f=0==t[a].length&&a!=t.length-1?" ":t[a][0];if("+"!==f&&"-"!==f&&" "!==f&&"\\"!==f)break;o.lines.push(t[a]),o.linedelimiters.push(i[a]||"\n"),"+"===f?s++:"-"===f?l++:" "===f&&(s++,l++)}if(s||1!==o.newLines||(o.newLines=0),l||1!==o.oldLines||(o.oldLines=0),n.strict){if(s!==o.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(l!==o.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return o}for(;a<t.length;)o();return r}function w(e,n,t){var i=!0,r=!1,a=!1,o=1;return function s(){if(i&&!a){if(r?o++:i=!1,e+o<=t)return o;a=!0}if(!r)return a||(i=!0),n<=e-o?-o++:(r=!0,s())}}function x(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n&&(n=y(n)),Array.isArray(n)){if(n.length>1)throw new Error("applyPatch only works with a single input.");n=n[0]}var i,r,a=e.split(/\r\n|[\n\v\f\r\x85]/),o=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],s=n.hunks,l=t.compareLine||function(e,n,t,i){return n===i},f=0,u=t.fuzzFactor||0,d=0,c=0;function h(e,n){for(var t=0;t<e.lines.length;t++){var i=e.lines[t],r=i.length>0?i[0]:" ",o=i.length>0?i.substr(1):i;if(" "===r||"-"===r){if(!l(n+1,a[n],r,o)&&++f>u)return!1;n++}}return!0}for(var p=0;p<s.length;p++){for(var b=s[p],g=a.length-b.oldLines,v=0,m=c+b.oldStart-1,x=w(m,d,g);void 0!==v;v=x())if(h(b,m+v)){b.offset=c+=v;break}if(void 0===v)return!1;d=b.offset+b.oldStart+b.oldLines}for(var L=0,S=0;S<s.length;S++){var C=s[S],T=C.oldStart+C.offset+L-1;L+=C.newLines-C.oldLines,T<0&&(T=0);for(var N=0;N<C.lines.length;N++){var E=C.lines[N],H=E.length>0?E[0]:" ",k=E.length>0?E.substr(1):E,O=C.linedelimiters[N];if(" "===H)T++;else if("-"===H)a.splice(T,1),o.splice(T,1);else if("+"===H)a.splice(T,0,k),o.splice(T,0,O),T++;else if("\\"===H){var _=C.lines[N-1]?C.lines[N-1][0]:null;"+"===_?i=!0:"-"===_&&(r=!0)}}}if(i)for(;!a[a.length-1];)a.pop(),o.pop();else r&&(a.push(""),o.push("\n"));for(var F=0;F<a.length-1;F++)a[F]=a[F]+o[F];return a.join("")}function L(e,n,t,i,r,a,o){o||(o={}),void 0===o.context&&(o.context=4);var s=u(t,i,o);function l(e){return e.map((function(e){return" "+e}))}s.push({value:"",lines:[]});for(var f=[],d=0,c=0,h=[],b=1,g=1,v=function(e){var n=s[e],r=n.lines||n.value.replace(/\n$/,"").split("\n");if(n.lines=r,n.added||n.removed){var a;if(!d){var u=s[e-1];d=b,c=g,u&&(h=o.context>0?l(u.lines.slice(-o.context)):[],d-=h.length,c-=h.length)}(a=h).push.apply(a,p(r.map((function(e){return(n.added?"+":"-")+e})))),n.added?g+=r.length:b+=r.length}else{if(d)if(r.length<=2*o.context&&e<s.length-2){var v;(v=h).push.apply(v,p(l(r)))}else{var m,y=Math.min(r.length,o.context);(m=h).push.apply(m,p(l(r.slice(0,y))));var w={oldStart:d,oldLines:b-d+y,newStart:c,newLines:g-c+y,lines:h};if(e>=s.length-2&&r.length<=o.context){var x=/\n$/.test(t),L=/\n$/.test(i),S=0==r.length&&h.length>w.oldLines;!x&&S&&h.splice(w.oldLines,0,"\\ No newline at end of file"),(x||S)&&L||h.push("\\ No newline at end of file")}f.push(w),d=0,c=0,h=[]}b+=r.length,g+=r.length}},m=0;m<s.length;m++)v(m);return{oldFileName:e,newFileName:n,oldHeader:r,newHeader:a,hunks:f}}function S(e,n,t,i,r,a,o){var s=L(e,n,t,i,r,a,o),l=[];e==n&&l.push("Index: "+e),l.push("==================================================================="),l.push("--- "+s.oldFileName+(void 0===s.oldHeader?"":"\t"+s.oldHeader)),l.push("+++ "+s.newFileName+(void 0===s.newHeader?"":"\t"+s.newHeader));for(var f=0;f<s.hunks.length;f++){var u=s.hunks[f];l.push("@@ -"+u.oldStart+","+u.oldLines+" +"+u.newStart+","+u.newLines+" @@"),l.push.apply(l,u.lines)}return l.join("\n")+"\n"}function C(e,n){if(n.length>e.length)return!1;for(var t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function T(e){var n=function e(n){var t=0,i=0;return n.forEach((function(n){if("string"!=typeof n){var r=e(n.mine),a=e(n.theirs);void 0!==t&&(r.oldLines===a.oldLines?t+=r.oldLines:t=void 0),void 0!==i&&(r.newLines===a.newLines?i+=r.newLines:i=void 0)}else void 0===i||"+"!==n[0]&&" "!==n[0]||i++,void 0===t||"-"!==n[0]&&" "!==n[0]||t++})),{oldLines:t,newLines:i}}(e.lines),t=n.oldLines,i=n.newLines;void 0!==t?e.oldLines=t:delete e.oldLines,void 0!==i?e.newLines=i:delete e.newLines}function N(e,n){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return y(e)[0];if(!n)throw new Error("Must provide a base reference or pass in a patch");return L(void 0,void 0,n,e)}return e}function E(e){return e.newFileName&&e.newFileName!==e.oldFileName}function H(e,n,t){return n===t?n:(e.conflict=!0,{mine:n,theirs:t})}function k(e,n){return e.oldStart<n.oldStart&&e.oldStart+e.oldLines<n.oldStart}function O(e,n){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+n,newLines:e.newLines,lines:e.lines}}function _(e,n,t,i,r){var a={offset:n,lines:t,index:0},o={offset:i,lines:r,index:0};for(P(e,a,o),P(e,o,a);a.index<a.lines.length&&o.index<o.lines.length;){var s=a.lines[a.index],l=o.lines[o.index];if("-"!==s[0]&&"+"!==s[0]||"-"!==l[0]&&"+"!==l[0])if("+"===s[0]&&" "===l[0]){var f;(f=e.lines).push.apply(f,p(D(a)))}else if("+"===l[0]&&" "===s[0]){var u;(u=e.lines).push.apply(u,p(D(o)))}else"-"===s[0]&&" "===l[0]?I(e,a,o):"-"===l[0]&&" "===s[0]?I(e,o,a,!0):s===l?(e.lines.push(s),a.index++,o.index++):M(e,D(a),D(o));else F(e,a,o)}j(e,a),j(e,o),T(e)}function F(e,n,t){var i,r,a=D(n),o=D(t);if(A(a)&&A(o)){var s,l;if(C(a,o)&&R(t,a,a.length-o.length))return void(s=e.lines).push.apply(s,p(a));if(C(o,a)&&R(n,o,o.length-a.length))return void(l=e.lines).push.apply(l,p(o))}else if(r=o,(i=a).length===r.length&&C(i,r)){var f;return void(f=e.lines).push.apply(f,p(a))}M(e,a,o)}function I(e,n,t,i){var r,a=D(n),o=function(e,n){for(var t=[],i=[],r=0,a=!1,o=!1;r<n.length&&e.index<e.lines.length;){var s=e.lines[e.index],l=n[r];if("+"===l[0])break;if(a=a||" "!==s[0],i.push(l),r++,"+"===s[0])for(o=!0;"+"===s[0];)t.push(s),s=e.lines[++e.index];l.substr(1)===s.substr(1)?(t.push(s),e.index++):o=!0}if("+"===(n[r]||"")[0]&&a&&(o=!0),o)return t;for(;r<n.length;)i.push(n[r++]);return{merged:i,changes:t}}(t,a);o.merged?(r=e.lines).push.apply(r,p(o.merged)):M(e,i?o:a,i?a:o)}function M(e,n,t){e.conflict=!0,e.lines.push({conflict:!0,mine:n,theirs:t})}function P(e,n,t){for(;n.offset<t.offset&&n.index<n.lines.length;){var i=n.lines[n.index++];e.lines.push(i),n.offset++}}function j(e,n){for(;n.index<n.lines.length;){var t=n.lines[n.index++];e.lines.push(t)}}function D(e){for(var n=[],t=e.lines[e.index][0];e.index<e.lines.length;){var i=e.lines[e.index];if("-"===t&&"+"===i[0]&&(t="+"),t!==i[0])break;n.push(i),e.index++}return n}function A(e){return e.reduce((function(e,n){return e&&"-"===n[0]}),!0)}function R(e,n,t){for(var i=0;i<t;i++){var r=n[n.length-t+i].substr(1);if(e.lines[e.index+i]!==" "+r)return!1}return e.index+=t,!0}m.tokenize=function(e){return e.slice()},m.join=m.removeEmpty=function(e){return e},e.Diff=n,e.diffChars=function(e,n,t){return r.diff(e,n,t)},e.diffWords=function(e,n,t){return t=a(t,{ignoreWhitespace:!0}),l.diff(e,n,t)},e.diffWordsWithSpace=function(e,n,t){return l.diff(e,n,t)},e.diffLines=u,e.diffTrimmedLines=function(e,n,t){var i=a(t,{ignoreWhitespace:!0});return f.diff(e,n,i)},e.diffSentences=function(e,n,t){return d.diff(e,n,t)},e.diffCss=function(e,n,t){return c.diff(e,n,t)},e.diffJson=function(e,n,t){return g.diff(e,n,t)},e.diffArrays=function(e,n,t){return m.diff(e,n,t)},e.structuredPatch=L,e.createTwoFilesPatch=S,e.createPatch=function(e,n,t,i,r,a){return S(e,e,n,t,i,r,a)},e.applyPatch=x,e.applyPatches=function(e,n){"string"==typeof e&&(e=y(e));var t=0;!function i(){var r=e[t++];if(!r)return n.complete();n.loadFile(r,(function(e,t){if(e)return n.complete(e);var a=x(t,r,n);n.patched(r,a,(function(e){if(e)return n.complete(e);i()}))}))}()},e.parsePatch=y,e.merge=function(e,n,t){e=N(e,t),n=N(n,t);var i={};(e.index||n.index)&&(i.index=e.index||n.index),(e.newFileName||n.newFileName)&&(E(e)?E(n)?(i.oldFileName=H(i,e.oldFileName,n.oldFileName),i.newFileName=H(i,e.newFileName,n.newFileName),i.oldHeader=H(i,e.oldHeader,n.oldHeader),i.newHeader=H(i,e.newHeader,n.newHeader)):(i.oldFileName=e.oldFileName,i.newFileName=e.newFileName,i.oldHeader=e.oldHeader,i.newHeader=e.newHeader):(i.oldFileName=n.oldFileName||e.oldFileName,i.newFileName=n.newFileName||e.newFileName,i.oldHeader=n.oldHeader||e.oldHeader,i.newHeader=n.newHeader||e.newHeader)),i.hunks=[];for(var r=0,a=0,o=0,s=0;r<e.hunks.length||a<n.hunks.length;){var l=e.hunks[r]||{oldStart:1/0},f=n.hunks[a]||{oldStart:1/0};if(k(l,f))i.hunks.push(O(l,o)),r++,s+=l.newLines-l.oldLines;else if(k(f,l))i.hunks.push(O(f,s)),a++,o+=f.newLines-f.oldLines;else{var u={oldStart:Math.min(l.oldStart,f.oldStart),oldLines:0,newStart:Math.min(l.newStart+o,f.oldStart+s),newLines:0,lines:[]};_(u,l.oldStart,l.lines,f.oldStart,f.lines),a++,r++,i.hunks.push(u)}}return i},e.convertChangesToDMP=function(e){for(var n,t,i=[],r=0;r<e.length;r++)t=(n=e[r]).added?1:n.removed?-1:0,i.push([t,n.value]);return i},e.convertChangesToXML=function(e){for(var n=[],t=0;t<e.length;t++){var i=e[t];i.added?n.push("<ins>"):i.removed&&n.push("<del>"),n.push((r=i.value,void 0,r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))),i.added?n.push("</ins>"):i.removed&&n.push("</del>")}var r;return n.join("")},e.canonicalize=v,Object.defineProperty(e,"__esModule",{value:!0})}(n)},function(e,n,t){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n};Object.defineProperty(n,"__esModule",{value:!0});var a=r(t(2)),o=r(t(1)),s=t(0);n.defaultLineByLineRendererConfig=i(i({},o.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});var l=function(){function e(e,t){void 0===t&&(t={}),this.hoganUtils=e,this.config=i(i({},n.defaultLineByLineRendererConfig),t)}return e.prototype.render=function(e){var n=this,t=e.map((function(e){var t;return t=e.blocks.length?n.generateFileHtml(e):n.generateEmptyDiff(),n.makeFileDiffHtml(e,t)})).join("\n");return this.hoganUtils.render("generic","wrapper",{content:t})},e.prototype.makeFileDiffHtml=function(e,n){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var t=this.hoganUtils.template("line-by-line","file-diff"),i=this.hoganUtils.template("generic","file-path"),r=this.hoganUtils.template("icon","file"),a=this.hoganUtils.template("tag",o.getFileIcon(e));return t.render({file:e,fileHtmlId:o.getHtmlId(e),diffs:n,filePath:i.render({fileDiffName:o.filenameDiff(e)},{fileIcon:r,fileTag:a})})},e.prototype.generateEmptyDiff=function(){return this.hoganUtils.render("generic","empty-diff",{contentClass:"d2h-code-line",CSSLineClass:o.CSSLineClass})},e.prototype.generateFileHtml=function(e){var n=this,t=a.newMatcherFn(a.newDistanceFn((function(n){return o.deconstructLine(n.content,e.isCombined).content})));return e.blocks.map((function(i){var r=n.hoganUtils.render("generic","block-header",{CSSLineClass:o.CSSLineClass,blockHeader:i.header,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return n.applyLineGroupping(i).forEach((function(i){var a=i[0],s=i[1],l=i[2];if(s.length&&l.length&&!a.length)n.applyRematchMatching(s,l,t).map((function(t){var i=t[0],a=t[1],o=n.processChangedLines(e.isCombined,i,a),s=o.left,l=o.right;r+=s,r+=l}));else if(a.length)a.forEach((function(t){var i=o.deconstructLine(t.content,e.isCombined),a=i.prefix,s=i.content;r+=n.generateSingleLineHtml({type:o.CSSLineClass.CONTEXT,prefix:a,content:s,oldNumber:t.oldNumber,newNumber:t.newNumber})}));else if(s.length||l.length){var f=n.processChangedLines(e.isCombined,s,l),u=f.left,d=f.right;r+=u,r+=d}else console.error("Unknown state reached while processing groups of lines",a,s,l)})),r})).join("\n")},e.prototype.applyLineGroupping=function(e){for(var n=[],t=[],i=[],r=0;r<e.lines.length;r++){var a=e.lines[r];(a.type!==s.LineType.INSERT&&i.length||a.type===s.LineType.CONTEXT&&t.length>0)&&(n.push([[],t,i]),t=[],i=[]),a.type===s.LineType.CONTEXT?n.push([[a],[],[]]):a.type===s.LineType.INSERT&&0===t.length?n.push([[],[],[a]]):a.type===s.LineType.INSERT&&t.length>0?i.push(a):a.type===s.LineType.DELETE&&t.push(a)}return(t.length||i.length)&&(n.push([[],t,i]),t=[],i=[]),n},e.prototype.applyRematchMatching=function(e,n,t){var i=e.length*n.length,r=Math.max.apply(null,[0].concat(e.concat(n).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?t(e,n):[[e,n]]},e.prototype.processChangedLines=function(e,n,t){for(var r={right:"",left:""},a=Math.max(n.length,t.length),s=0;s<a;s++){var l=n[s],f=t[s],u=void 0!==l&&void 0!==f?o.diffHighlight(l.content,f.content,e,this.config):void 0,d=void 0!==l&&void 0!==l.oldNumber?i(i({},void 0!==u?{prefix:u.oldLine.prefix,content:u.oldLine.content,type:o.CSSLineClass.DELETE_CHANGES}:i(i({},o.deconstructLine(l.content,e)),{type:o.toCSSClass(l.type)})),{oldNumber:l.oldNumber,newNumber:l.newNumber}):void 0,c=void 0!==f&&void 0!==f.newNumber?i(i({},void 0!==u?{prefix:u.newLine.prefix,content:u.newLine.content,type:o.CSSLineClass.INSERT_CHANGES}:i(i({},o.deconstructLine(f.content,e)),{type:o.toCSSClass(f.type)})),{oldNumber:f.oldNumber,newNumber:f.newNumber}):void 0,h=this.generateLineHtml(d,c),p=h.left,b=h.right;r.left+=p,r.right+=b}return r},e.prototype.generateLineHtml=function(e,n){return{left:this.generateSingleLineHtml(e),right:this.generateSingleLineHtml(n)}},e.prototype.generateSingleLineHtml=function(e){if(void 0===e)return"";var n=this.hoganUtils.render("line-by-line","numbers",{oldNumber:e.oldNumber||"",newNumber:e.newNumber||""});return this.hoganUtils.render("generic","line",{type:e.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===e.prefix?"&nbsp;":e.prefix,content:e.content,lineNumber:n})},e}();n.default=l},function(e,n,t){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n};Object.defineProperty(n,"__esModule",{value:!0});var a=r(t(2)),o=r(t(1)),s=t(0);n.defaultSideBySideRendererConfig=i(i({},o.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});var l=function(){function e(e,t){void 0===t&&(t={}),this.hoganUtils=e,this.config=i(i({},n.defaultSideBySideRendererConfig),t)}return e.prototype.render=function(e){var n=this,t=e.map((function(e){var t;return t=e.blocks.length?n.generateFileHtml(e):n.generateEmptyDiff(),n.makeFileDiffHtml(e,t)})).join("\n");return this.hoganUtils.render("generic","wrapper",{content:t})},e.prototype.makeFileDiffHtml=function(e,n){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var t=this.hoganUtils.template("side-by-side","file-diff"),i=this.hoganUtils.template("generic","file-path"),r=this.hoganUtils.template("icon","file"),a=this.hoganUtils.template("tag",o.getFileIcon(e));return t.render({file:e,fileHtmlId:o.getHtmlId(e),diffs:n,filePath:i.render({fileDiffName:o.filenameDiff(e)},{fileIcon:r,fileTag:a})})},e.prototype.generateEmptyDiff=function(){return{right:"",left:this.hoganUtils.render("generic","empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:o.CSSLineClass})}},e.prototype.generateFileHtml=function(e){var n=this,t=a.newMatcherFn(a.newDistanceFn((function(n){return o.deconstructLine(n.content,e.isCombined).content})));return e.blocks.map((function(i){var r={left:n.makeHeaderHtml(i.header),right:n.makeHeaderHtml("")};return n.applyLineGroupping(i).forEach((function(i){var a=i[0],s=i[1],l=i[2];if(s.length&&l.length&&!a.length)n.applyRematchMatching(s,l,t).map((function(t){var i=t[0],a=t[1],o=n.processChangedLines(e.isCombined,i,a),s=o.left,l=o.right;r.left+=s,r.right+=l}));else if(a.length)a.forEach((function(t){var i=o.deconstructLine(t.content,e.isCombined),a=i.prefix,s=i.content,l=n.generateLineHtml({type:o.CSSLineClass.CONTEXT,prefix:a,content:s,number:t.oldNumber},{type:o.CSSLineClass.CONTEXT,prefix:a,content:s,number:t.newNumber}),f=l.left,u=l.right;r.left+=f,r.right+=u}));else if(s.length||l.length){var f=n.processChangedLines(e.isCombined,s,l),u=f.left,d=f.right;r.left+=u,r.right+=d}else console.error("Unknown state reached while processing groups of lines",a,s,l)})),r})).reduce((function(e,n){return{left:e.left+n.left,right:e.right+n.right}}),{left:"",right:""})},e.prototype.applyLineGroupping=function(e){for(var n=[],t=[],i=[],r=0;r<e.lines.length;r++){var a=e.lines[r];(a.type!==s.LineType.INSERT&&i.length||a.type===s.LineType.CONTEXT&&t.length>0)&&(n.push([[],t,i]),t=[],i=[]),a.type===s.LineType.CONTEXT?n.push([[a],[],[]]):a.type===s.LineType.INSERT&&0===t.length?n.push([[],[],[a]]):a.type===s.LineType.INSERT&&t.length>0?i.push(a):a.type===s.LineType.DELETE&&t.push(a)}return(t.length||i.length)&&(n.push([[],t,i]),t=[],i=[]),n},e.prototype.applyRematchMatching=function(e,n,t){var i=e.length*n.length,r=Math.max.apply(null,[0].concat(e.concat(n).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?t(e,n):[[e,n]]},e.prototype.makeHeaderHtml=function(e){return this.hoganUtils.render("generic","block-header",{CSSLineClass:o.CSSLineClass,blockHeader:e,lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})},e.prototype.processChangedLines=function(e,n,t){for(var r={right:"",left:""},a=Math.max(n.length,t.length),s=0;s<a;s++){var l=n[s],f=t[s],u=void 0!==l&&void 0!==f?o.diffHighlight(l.content,f.content,e,this.config):void 0,d=void 0!==l&&void 0!==l.oldNumber?i(i({},void 0!==u?{prefix:u.oldLine.prefix,content:u.oldLine.content,type:o.CSSLineClass.DELETE_CHANGES}:i(i({},o.deconstructLine(l.content,e)),{type:o.toCSSClass(l.type)})),{number:l.oldNumber}):void 0,c=void 0!==f&&void 0!==f.newNumber?i(i({},void 0!==u?{prefix:u.newLine.prefix,content:u.newLine.content,type:o.CSSLineClass.INSERT_CHANGES}:i(i({},o.deconstructLine(f.content,e)),{type:o.toCSSClass(f.type)})),{number:f.newNumber}):void 0,h=this.generateLineHtml(d,c),p=h.left,b=h.right;r.left+=p,r.right+=b}return r},e.prototype.generateLineHtml=function(e,n){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(n)}},e.prototype.generateSingleHtml=function(e){var n,t,i,r,a;return this.hoganUtils.render("generic","line",{type:(null===(n=e)||void 0===n?void 0:n.type)||o.CSSLineClass.CONTEXT+" d2h-emptyplaceholder",lineClass:void 0!==e?"d2h-code-side-linenumber":"d2h-code-side-linenumber d2h-code-side-emptyplaceholder",contentClass:void 0!==e?"d2h-code-side-line":"d2h-code-side-line d2h-code-side-emptyplaceholder",prefix:" "===(null===(t=e)||void 0===t?void 0:t.prefix)?"&nbsp;":null===(i=e)||void 0===i?void 0:i.prefix,content:null===(r=e)||void 0===r?void 0:r.content,lineNumber:null===(a=e)||void 0===a?void 0:a.number})},e}();n.default=l},function(e,n,t){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n};Object.defineProperty(n,"__esModule",{value:!0});var a=r(t(4)),o=t(14),s=function(){function e(e){var n=e.compiledTemplates,t=void 0===n?{}:n,r=e.rawTemplates,s=void 0===r?{}:r,l=Object.entries(s).reduce((function(e,n){var t,r=n[0],o=n[1],s=a.compile(o,{asString:!1});return i(i({},e),((t={})[r]=s,t))}),{});this.preCompiledTemplates=i(i(i({},o.defaultTemplates),t),l)}return e.compile=function(e){return a.compile(e,{asString:!1})},e.prototype.render=function(e,n,t,i,r){var a=this.templateKey(e,n);try{return this.preCompiledTemplates[a].render(t,i,r)}catch(e){throw new Error("Could not find template to render '"+a+"'")}},e.prototype.template=function(e,n){return this.preCompiledTemplates[this.templateKey(e,n)]},e.prototype.templateKey=function(e,n){return e+"-"+n},e}();n.default=s},function(e,n,t){!function(e){var n=/\S/,t=/\"/g,i=/\n/g,r=/\r/g,a=/\\/g,o=/\u2028/,s=/\u2029/;function l(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function f(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function u(e,n,t){if(n.charAt(t)!=e.charAt(0))return!1;for(var i=1,r=e.length;i<r;i++)if(n.charAt(t+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(t,i){var r=t.length,a=0,o=null,s=null,d="",c=[],h=!1,p=0,b=0,g="{{",v="}}";function m(){d.length>0&&(c.push({tag:"_t",text:new String(d)}),d="")}function y(t,i){if(m(),t&&function(){for(var t=!0,i=b;i<c.length;i++)if(!(t=e.tags[c[i].tag]<e.tags._v||"_t"==c[i].tag&&null===c[i].text.match(n)))return!1;return t}())for(var r,a=b;a<c.length;a++)c[a].text&&((r=c[a+1])&&">"==r.tag&&(r.indent=c[a].text.toString()),c.splice(a,1));else i||c.push({tag:"\n"});h=!1,b=c.length}function w(e,n){var t="="+v,i=e.indexOf(t,n),r=f(e.substring(e.indexOf("=",n)+1,i)).split(" ");return g=r[0],v=r[r.length-1],i+t.length-1}for(i&&(i=i.split(" "),g=i[0],v=i[1]),p=0;p<r;p++)0==a?u(g,t,p)?(--p,m(),a=1):"\n"==t.charAt(p)?y(h):d+=t.charAt(p):1==a?(p+=g.length-1,"="==(o=(s=e.tags[t.charAt(p+1)])?t.charAt(p+1):"_v")?(p=w(t,p),a=0):(s&&p++,a=2),h=p):u(v,t,p)?(c.push({tag:o,n:f(d),otag:g,ctag:v,i:"/"==o?h-g.length:p+v.length}),d="",p+=v.length-1,a=0,"{"==o&&("}}"==v?p++:l(c[c.length-1]))):d+=t.charAt(p);return y(h,!0),c};var d={_t:!0,"\n":!0,$:!0,"/":!0};function c(e,n){for(var t=0,i=n.length;t<i;t++)if(n[t].o==e.n)return e.tag="#",!0}function h(e,n,t){for(var i=0,r=t.length;i<r;i++)if(t[i].c==e&&t[i].o==n)return!0}function p(e){var n=[];for(var t in e.partials)n.push('"'+g(t)+'":{name:"'+g(e.partials[t].name)+'", '+p(e.partials[t])+"}");return"partials: {"+n.join(",")+"}, subs: "+function(e){var n=[];for(var t in e)n.push('"'+g(t)+'": function(c,p,t,i) {'+e[t]+"}");return"{ "+n.join(",")+" }"}(e.subs)}e.stringify=function(n,t,i){return"{code: function (c,p,i) { "+e.wrapMain(n.code)+" },"+p(n)+"}"};var b=0;function g(e){return e.replace(a,"\\\\").replace(t,'\\"').replace(i,"\\n").replace(r,"\\r").replace(o,"\\u2028").replace(s,"\\u2029")}function v(e){return~e.indexOf(".")?"d":"f"}function m(e,n){var t="<"+(n.prefix||"")+e.n+b++;return n.partials[t]={name:e.n,partials:{}},n.code+='t.b(t.rp("'+g(t)+'",c,p,"'+(e.indent||"")+'"));',t}function y(e,n){n.code+="t.b(t.t(t."+v(e.n)+'("'+g(e.n)+'",c,p,0)));'}function w(e){return"t.b("+e+");"}e.generate=function(n,t,i){b=0;var r={code:"",subs:{},partials:{}};return e.walk(n,r),i.asString?this.stringify(r,t,i):this.makeTemplate(r,t,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,n,t){var i=this.makePartials(e);return i.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(i,n,this,t)},e.makePartials=function(e){var n,t={subs:{},partials:e.partials,name:e.name};for(n in t.partials)t.partials[n]=this.makePartials(t.partials[n]);for(n in e.subs)t.subs[n]=new Function("c","p","t","i",e.subs[n]);return t},e.codegen={"#":function(n,t){t.code+="if(t.s(t."+v(n.n)+'("'+g(n.n)+'",c,p,1),c,p,0,'+n.i+","+n.end+',"'+n.otag+" "+n.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(n.nodes,t),t.code+="});c.pop();}"},"^":function(n,t){t.code+="if(!t.s(t."+v(n.n)+'("'+g(n.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(n.nodes,t),t.code+="};"},">":m,"<":function(n,t){var i={partials:{},code:"",subs:{},inPartial:!0};e.walk(n.nodes,i);var r=t.partials[m(n,t)];r.subs=i.subs,r.partials=i.partials},$:function(n,t){var i={subs:{},code:"",partials:t.partials,prefix:n.n};e.walk(n.nodes,i),t.subs[n.n]=i.code,t.inPartial||(t.code+='t.sub("'+g(n.n)+'",c,p,i);')},"\n":function(e,n){n.code+=w('"\\n"'+(e.last?"":" + i"))},_v:function(e,n){n.code+="t.b(t.v(t."+v(e.n)+'("'+g(e.n)+'",c,p,0)));'},_t:function(e,n){n.code+=w('"'+g(e.text)+'"')},"{":y,"&":y},e.walk=function(n,t){for(var i,r=0,a=n.length;r<a;r++)(i=e.codegen[n[r].tag])&&i(n[r],t);return t},e.parse=function(n,t,i){return function n(t,i,r,a){var o,s=[],l=null,f=null;for(o=r[r.length-1];t.length>0;){if(f=t.shift(),o&&"<"==o.tag&&!(f.tag in d))throw new Error("Illegal content in < super tag.");if(e.tags[f.tag]<=e.tags.$||c(f,a))r.push(f),f.nodes=n(t,f.tag,r,a);else{if("/"==f.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+f.n);if(l=r.pop(),f.n!=l.n&&!h(f.n,l.n,a))throw new Error("Nesting error: "+l.n+" vs. "+f.n);return l.end=f.i,s}"\n"==f.tag&&(f.last=0==t.length||"\n"==t[0].tag)}s.push(f)}if(r.length>0)throw new Error("missing closing tag: "+r.pop().n);return s}(n,0,[],(i=i||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,n){return[e,!!n.asString,!!n.disableLambda,n.delimiters,!!n.modelGet].join("||")},e.compile=function(n,t){t=t||{};var i=e.cacheKey(n,t),r=this.cache[i];if(r){var a=r.partials;for(var o in a)delete a[o].instance;return r}return r=this.generate(this.parse(this.scan(n,t.delimiters),n,t),n,t),this.cache[i]=r}}(n)},function(e,n,t){!function(e){function n(e,n,t){var i;return n&&"object"==typeof n&&(void 0!==n[e]?i=n[e]:t&&n.get&&"function"==typeof n.get&&(i=n.get(e))),i}e.Template=function(e,n,t,i){e=e||{},this.r=e.code||this.r,this.c=t,this.options=i||{},this.text=n||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,n,t){return""},v:function(e){return e=l(e),s.test(e)?e.replace(t,"&amp;").replace(i,"&lt;").replace(r,"&gt;").replace(a,"&#39;").replace(o,"&quot;"):e},t:l,render:function(e,n,t){return this.ri([e],n||{},t)},ri:function(e,n,t){return this.r(e,n,t)},ep:function(e,n){var t=this.partials[e],i=n[t.name];if(t.instance&&t.base==i)return t.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,t.subs){for(key in n.stackText||(n.stackText={}),t.subs)n.stackText[key]||(n.stackText[key]=void 0!==this.activeSub&&n.stackText[this.activeSub]?n.stackText[this.activeSub]:this.text);i=function(e,n,t,i,r,a){function o(){}function s(){}var l;o.prototype=e,s.prototype=e.subs;var f=new o;for(l in f.subs=new s,f.subsText={},f.buf="",i=i||{},f.stackSubs=i,f.subsText=a,n)i[l]||(i[l]=n[l]);for(l in i)f.subs[l]=i[l];for(l in r=r||{},f.stackPartials=r,t)r[l]||(r[l]=t[l]);for(l in r)f.partials[l]=r[l];return f}(i,t.subs,t.partials,this.stackSubs,this.stackPartials,n.stackText)}return this.partials[e].instance=i,i},rp:function(e,n,t,i){var r=this.ep(e,t);return r?r.ri(n,t,i):""},rs:function(e,n,t){var i=e[e.length-1];if(f(i))for(var r=0;r<i.length;r++)e.push(i[r]),t(e,n,this),e.pop();else t(e,n,this)},s:function(e,n,t,i,r,a,o){var s;return(!f(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,n,t,i,r,a,o)),s=!!e,!i&&s&&n&&n.push("object"==typeof e?e:n[n.length-1]),s)},d:function(e,t,i,r){var a,o=e.split("."),s=this.f(o[0],t,i,r),l=this.options.modelGet,u=null;if("."===e&&f(t[t.length-2]))s=t[t.length-1];else for(var d=1;d<o.length;d++)void 0!==(a=n(o[d],s,l))?(u=s,s=a):s="";return!(r&&!s)&&(r||"function"!=typeof s||(t.push(u),s=this.mv(s,t,i),t.pop()),s)},f:function(e,t,i,r){for(var a=!1,o=!1,s=this.options.modelGet,l=t.length-1;l>=0;l--)if(void 0!==(a=n(e,t[l],s))){o=!0;break}return o?(r||"function"!=typeof a||(a=this.mv(a,t,i)),a):!r&&""},ls:function(e,n,t,i,r){var a=this.options.delimiters;return this.options.delimiters=r,this.b(this.ct(l(e.call(n,i)),n,t)),this.options.delimiters=a,!1},ct:function(e,n,t){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(n,t)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,n,t,i,r,a,o){var s,l=n[n.length-1],f=e.call(l);return"function"==typeof f?!!i||(s=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(f,l,t,s.substring(r,a),o)):f},mv:function(e,n,t){var i=n[n.length-1],r=e.call(i);return"function"==typeof r?this.ct(l(r.call(i)),i,t):r},sub:function(e,n,t,i){var r=this.subs[e];r&&(this.activeSub=e,r(n,t,this,i),this.activeSub=!1)}};var t=/&/g,i=/</g,r=/>/g,a=/\'/g,o=/\"/g,s=/[&<>\"\']/;function l(e){return String(null==e?"":e)}var f=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(n)},function(e,n,t){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n};Object.defineProperty(n,"__esModule",{value:!0});var r=i(t(4));n.defaultTemplates={},n.defaultTemplates["file-summary-line"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<li class="d2h-file-list-line">'),i.b("\n"+t),i.b(' <span class="d2h-file-name-wrapper">'),i.b("\n"+t),i.b(i.rp("<fileIcon0",e,n," ")),i.b(' <a href="#'),i.b(i.v(i.f("fileHtmlId",e,n,0))),i.b('" class="d2h-file-name">'),i.b(i.v(i.f("fileName",e,n,0))),i.b("</a>"),i.b("\n"+t),i.b(' <span class="d2h-file-stats">'),i.b("\n"+t),i.b(' <span class="d2h-lines-added">'),i.b(i.v(i.f("addedLines",e,n,0))),i.b("</span>"),i.b("\n"+t),i.b(' <span class="d2h-lines-deleted">'),i.b(i.v(i.f("deletedLines",e,n,0))),i.b("</span>"),i.b("\n"+t),i.b(" </span>"),i.b("\n"+t),i.b(" </span>"),i.b("\n"+t),i.b("</li>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),n.defaultTemplates["file-summary-wrapper"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div class="d2h-file-list-wrapper">'),i.b("\n"+t),i.b(' <div class="d2h-file-list-header">'),i.b("\n"+t),i.b(' <span class="d2h-file-list-title">Files changed ('),i.b(i.v(i.f("filesNumber",e,n,0))),i.b(")</span>"),i.b("\n"+t),i.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),i.b("\n"+t),i.b(' <a class="d2h-file-switch d2h-show">show</a>'),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <ol class="d2h-file-list">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("files",e,n,0))),i.b("\n"+t),i.b(" </ol>"),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["generic-block-header"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b("<tr>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,n,0))),i.b(" "),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('"></td>'),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,n,0))),i.b(" "),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('">'),i.b(i.t(i.f("blockHeader",e,n,0))),i.b("</div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["generic-empty-diff"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b("<tr>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,n,0))),i.b(" "),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('">'),i.b("\n"+t),i.b(" File without changes"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["generic-file-path"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-file-name-wrapper">'),i.b("\n"+t),i.b(i.rp("<fileIcon0",e,n," ")),i.b(' <span class="d2h-file-name">'),i.b(i.v(i.f("fileDiffName",e,n,0))),i.b("</span>"),i.b("\n"+t),i.b(i.rp("<fileTag1",e,n," ")),i.b("</span>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),n.defaultTemplates["generic-line"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b("<tr>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,n,0))),i.b(" "),i.b(i.v(i.f("type",e,n,0))),i.b('">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("lineNumber",e,n,0))),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.f("type",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,n,0))),i.b(" "),i.b(i.v(i.f("type",e,n,0))),i.b('">'),i.b("\n"+t),i.s(i.f("prefix",e,n,1),e,n,0,171,247,"{{ }}")&&(i.rs(e,n,(function(e,n,i){i.b(' <span class="d2h-code-line-prefix">'),i.b(i.t(i.f("prefix",e,n,0))),i.b("</span>"),i.b("\n"+t)})),e.pop()),i.s(i.f("prefix",e,n,1),e,n,1,0,0,"")||(i.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),i.b("\n"+t)),i.s(i.f("content",e,n,1),e,n,0,380,454,"{{ }}")&&(i.rs(e,n,(function(e,n,i){i.b(' <span class="d2h-code-line-ctn">'),i.b(i.t(i.f("content",e,n,0))),i.b("</span>"),i.b("\n"+t)})),e.pop()),i.s(i.f("content",e,n,1),e,n,1,0,0,"")||(i.b(' <span class="d2h-code-line-ctn"><br></span>'),i.b("\n"+t)),i.b(" </div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["generic-wrapper"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div class="d2h-wrapper">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("content",e,n,0))),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["icon-file-added"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),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"+t),i.b(' width="14">'),i.b("\n"+t),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"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["icon-file-changed"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),i.b("\n"+t),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+t),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"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["icon-file-deleted"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),i.b("\n"+t),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+t),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"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["icon-file-renamed"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),i.b("\n"+t),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+t),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"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["icon-file"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),i.b("\n"+t),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"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["line-by-line-file-diff"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,n,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="d2h-file-header">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("filePath",e,n,0))),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <div class="d2h-file-diff">'),i.b("\n"+t),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+t),i.b(' <table class="d2h-diff-table">'),i.b("\n"+t),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("diffs",e,n,0))),i.b("\n"+t),i.b(" </tbody>"),i.b("\n"+t),i.b(" </table>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["line-by-line-numbers"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div class="line-num1">'),i.b(i.v(i.f("oldNumber",e,n,0))),i.b("</div>"),i.b("\n"+t),i.b('<div class="line-num2">'),i.b(i.v(i.f("newNumber",e,n,0))),i.b("</div>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["side-by-side-file-diff"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,n,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="d2h-file-header">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("filePath",e,n,0))),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <div class="d2h-files-diff">'),i.b("\n"+t),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+t),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+t),i.b(' <table class="d2h-diff-table">'),i.b("\n"+t),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.d("diffs.left",e,n,0))),i.b("\n"+t),i.b(" </tbody>"),i.b("\n"+t),i.b(" </table>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+t),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+t),i.b(' <table class="d2h-diff-table">'),i.b("\n"+t),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.d("diffs.right",e,n,0))),i.b("\n"+t),i.b(" </tbody>"),i.b("\n"+t),i.b(" </table>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["tag-file-added"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),i.fl()},partials:{},subs:{}}),n.defaultTemplates["tag-file-changed"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),i.fl()},partials:{},subs:{}}),n.defaultTemplates["tag-file-deleted"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),i.fl()},partials:{},subs:{}}),n.defaultTemplates["tag-file-renamed"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),i.fl()},partials:{},subs:{}})}])}));
!function(e){"use strict";function n(){}function t(e,n,t,i,r){for(var a=0,s=n.length,o=0,l=0;a<s;a++){var f=n[a];if(f.removed){if(f.value=e.join(i.slice(l,l+f.count)),l+=f.count,a&&n[a-1].added){var u=n[a-1];n[a-1]=n[a],n[a]=u}}else{if(!f.added&&r){var d=t.slice(o,o+f.count);d=d.map((function(e,n){var t=i[l+n];return t.length>e.length?t:e})),f.value=e.join(d)}else f.value=e.join(t.slice(o,o+f.count));o+=f.count,f.added||(l+=f.count)}}var c=n[s-1];return s>1&&"string"==typeof c.value&&(c.added||c.removed)&&e.equals("",c.value)&&(n[s-2].value+=c.value,n.pop()),n}function i(e){return{newPos:e.newPos,components:e.components.slice(0)}}n.prototype={diff:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r.callback;"function"==typeof r&&(a=r,r={}),this.options=r;var s=this;function o(e){return a?(setTimeout((function(){a(void 0,e)}),0),!0):e}e=this.castInput(e),n=this.castInput(n),e=this.removeEmpty(this.tokenize(e));var l=(n=this.removeEmpty(this.tokenize(n))).length,f=e.length,u=1,d=l+f,c=[{newPos:-1,components:[]}],h=this.extractCommon(c[0],n,e,0);if(c[0].newPos+1>=l&&h+1>=f)return o([{value:this.join(n),count:n.length}]);function p(){for(var r=-1*u;r<=u;r+=2){var a=void 0,d=c[r-1],h=c[r+1],p=(h?h.newPos:0)-r;d&&(c[r-1]=void 0);var b=d&&d.newPos+1<l,g=h&&0<=p&&p<f;if(b||g){if(!b||g&&d.newPos<h.newPos?(a=i(h),s.pushComponent(a.components,void 0,!0)):((a=d).newPos++,s.pushComponent(a.components,!0,void 0)),p=s.extractCommon(a,n,e,r),a.newPos+1>=l&&p+1>=f)return o(t(s,a.components,n,e,s.useLongestToken));c[r]=a}else c[r]=void 0}u++}if(a)!function e(){setTimeout((function(){if(u>d)return a();p()||e()}),0)}();else for(;u<=d;){var b=p();if(b)return b}},pushComponent:function(e,n,t){var i=e[e.length-1];i&&i.added===n&&i.removed===t?e[e.length-1]={count:i.count+1,added:n,removed:t}:e.push({count:1,added:n,removed:t})},extractCommon:function(e,n,t,i){for(var r=n.length,a=t.length,s=e.newPos,o=s-i,l=0;s+1<r&&o+1<a&&this.equals(n[s+1],t[o+1]);)s++,o++,l++;return l&&e.components.push({count:l}),e.newPos=s,o},equals:function(e,n){return this.options.comparator?this.options.comparator(e,n):e===n||this.options.ignoreCase&&e.toLowerCase()===n.toLowerCase()},removeEmpty:function(e){for(var n=[],t=0;t<e.length;t++)e[t]&&n.push(e[t]);return n},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var r=new n;function a(e,n){if("function"==typeof e)n.callback=e;else if(e)for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}var s=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,o=/\S/,l=new n;l.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!o.test(e)&&!o.test(n)},l.tokenize=function(e){for(var n=e.split(/(\s+|[()[\]{}'"]|\b)/),t=0;t<n.length-1;t++)!n[t+1]&&n[t+2]&&s.test(n[t])&&s.test(n[t+2])&&(n[t]+=n[t+2],n.splice(t+1,2),t--);return n};var f=new n;function u(e,n,t){return f.diff(e,n,t)}f.tokenize=function(e){var n=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var i=0;i<t.length;i++){var r=t[i];i%2&&!this.options.newlineIsToken?n[n.length-1]+=r:(this.options.ignoreWhitespace&&(r=r.trim()),n.push(r))}return n};var d=new n;d.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var c=new n;function h(e){return(h="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)}function p(e){return function(e){if(Array.isArray(e)){for(var n=0,t=new Array(e.length);n<e.length;n++)t[n]=e[n];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}c.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var b=Object.prototype.toString,g=new n;function v(e,n,t,i,r){var a,s;for(n=n||[],t=t||[],i&&(e=i(r,e)),a=0;a<n.length;a+=1)if(n[a]===e)return t[a];if("[object Array]"===b.call(e)){for(n.push(e),s=new Array(e.length),t.push(s),a=0;a<e.length;a+=1)s[a]=v(e[a],n,t,i,r);return n.pop(),t.pop(),s}if(e&&e.toJSON&&(e=e.toJSON()),"object"===h(e)&&null!==e){n.push(e),s={},t.push(s);var o,l=[];for(o in e)e.hasOwnProperty(o)&&l.push(o);for(l.sort(),a=0;a<l.length;a+=1)s[o=l[a]]=v(e[o],n,t,i,o);n.pop(),t.pop()}else s=e;return s}g.useLongestToken=!0,g.tokenize=f.tokenize,g.castInput=function(e){var n=this.options,t=n.undefinedReplacement,i=n.stringifyReplacer,r=void 0===i?function(e,n){return void 0===n?t:n}:i;return"string"==typeof e?e:JSON.stringify(v(e,null,null,r),r," ")},g.equals=function(e,t){return n.prototype.equals.call(g,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var m=new n;function y(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],r=[],a=0;function s(){var e={};for(r.push(e);a<t.length;){var i=t[a];if(/^(\-\-\-|\+\+\+|@@)\s/.test(i))break;var s=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(i);s&&(e.index=s[1]),a++}for(o(e),o(e),e.hunks=[];a<t.length;){var f=t[a];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(f))break;if(/^@@/.test(f))e.hunks.push(l());else{if(f&&n.strict)throw new Error("Unknown line "+(a+1)+" "+JSON.stringify(f));a++}}}function o(e){var n=/^(---|\+\+\+)\s+(.*)$/.exec(t[a]);if(n){var i="---"===n[1]?"old":"new",r=n[2].split("\t",2),s=r[0].replace(/\\\\/g,"\\");/^".*"$/.test(s)&&(s=s.substr(1,s.length-2)),e[i+"FileName"]=s,e[i+"Header"]=(r[1]||"").trim(),a++}}function l(){for(var e=a,r=t[a++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),s={oldStart:+r[1],oldLines:+r[2]||1,newStart:+r[3],newLines:+r[4]||1,lines:[],linedelimiters:[]},o=0,l=0;a<t.length&&!(0===t[a].indexOf("--- ")&&a+2<t.length&&0===t[a+1].indexOf("+++ ")&&0===t[a+2].indexOf("@@"));a++){var f=0==t[a].length&&a!=t.length-1?" ":t[a][0];if("+"!==f&&"-"!==f&&" "!==f&&"\\"!==f)break;s.lines.push(t[a]),s.linedelimiters.push(i[a]||"\n"),"+"===f?o++:"-"===f?l++:" "===f&&(o++,l++)}if(o||1!==s.newLines||(s.newLines=0),l||1!==s.oldLines||(s.oldLines=0),n.strict){if(o!==s.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(l!==s.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return s}for(;a<t.length;)s();return r}function w(e,n,t){var i=!0,r=!1,a=!1,s=1;return function o(){if(i&&!a){if(r?s++:i=!1,e+s<=t)return s;a=!0}if(!r)return a||(i=!0),n<=e-s?-s++:(r=!0,o())}}function x(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n&&(n=y(n)),Array.isArray(n)){if(n.length>1)throw new Error("applyPatch only works with a single input.");n=n[0]}var i,r,a=e.split(/\r\n|[\n\v\f\r\x85]/),s=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=n.hunks,l=t.compareLine||function(e,n,t,i){return n===i},f=0,u=t.fuzzFactor||0,d=0,c=0;function h(e,n){for(var t=0;t<e.lines.length;t++){var i=e.lines[t],r=i.length>0?i[0]:" ",s=i.length>0?i.substr(1):i;if(" "===r||"-"===r){if(!l(n+1,a[n],r,s)&&++f>u)return!1;n++}}return!0}for(var p=0;p<o.length;p++){for(var b=o[p],g=a.length-b.oldLines,v=0,m=c+b.oldStart-1,x=w(m,d,g);void 0!==v;v=x())if(h(b,m+v)){b.offset=c+=v;break}if(void 0===v)return!1;d=b.offset+b.oldStart+b.oldLines}for(var L=0,S=0;S<o.length;S++){var C=o[S],T=C.oldStart+C.offset+L-1;L+=C.newLines-C.oldLines,T<0&&(T=0);for(var N=0;N<C.lines.length;N++){var E=C.lines[N],H=E.length>0?E[0]:" ",k=E.length>0?E.substr(1):E,O=C.linedelimiters[N];if(" "===H)T++;else if("-"===H)a.splice(T,1),s.splice(T,1);else if("+"===H)a.splice(T,0,k),s.splice(T,0,O),T++;else if("\\"===H){var _=C.lines[N-1]?C.lines[N-1][0]:null;"+"===_?i=!0:"-"===_&&(r=!0)}}}if(i)for(;!a[a.length-1];)a.pop(),s.pop();else r&&(a.push(""),s.push("\n"));for(var F=0;F<a.length-1;F++)a[F]=a[F]+s[F];return a.join("")}function L(e,n,t,i,r,a,s){s||(s={}),void 0===s.context&&(s.context=4);var o=u(t,i,s);function l(e){return e.map((function(e){return" "+e}))}o.push({value:"",lines:[]});for(var f=[],d=0,c=0,h=[],b=1,g=1,v=function(e){var n=o[e],r=n.lines||n.value.replace(/\n$/,"").split("\n");if(n.lines=r,n.added||n.removed){var a;if(!d){var u=o[e-1];d=b,c=g,u&&(h=s.context>0?l(u.lines.slice(-s.context)):[],d-=h.length,c-=h.length)}(a=h).push.apply(a,p(r.map((function(e){return(n.added?"+":"-")+e})))),n.added?g+=r.length:b+=r.length}else{if(d)if(r.length<=2*s.context&&e<o.length-2){var v;(v=h).push.apply(v,p(l(r)))}else{var m,y=Math.min(r.length,s.context);(m=h).push.apply(m,p(l(r.slice(0,y))));var w={oldStart:d,oldLines:b-d+y,newStart:c,newLines:g-c+y,lines:h};if(e>=o.length-2&&r.length<=s.context){var x=/\n$/.test(t),L=/\n$/.test(i),S=0==r.length&&h.length>w.oldLines;!x&&S&&h.splice(w.oldLines,0,"\\ No newline at end of file"),(x||S)&&L||h.push("\\ No newline at end of file")}f.push(w),d=0,c=0,h=[]}b+=r.length,g+=r.length}},m=0;m<o.length;m++)v(m);return{oldFileName:e,newFileName:n,oldHeader:r,newHeader:a,hunks:f}}function S(e,n,t,i,r,a,s){var o=L(e,n,t,i,r,a,s),l=[];e==n&&l.push("Index: "+e),l.push("==================================================================="),l.push("--- "+o.oldFileName+(void 0===o.oldHeader?"":"\t"+o.oldHeader)),l.push("+++ "+o.newFileName+(void 0===o.newHeader?"":"\t"+o.newHeader));for(var f=0;f<o.hunks.length;f++){var u=o.hunks[f];l.push("@@ -"+u.oldStart+","+u.oldLines+" +"+u.newStart+","+u.newLines+" @@"),l.push.apply(l,u.lines)}return l.join("\n")+"\n"}function C(e,n){if(n.length>e.length)return!1;for(var t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function T(e){var n=function e(n){var t=0,i=0;return n.forEach((function(n){if("string"!=typeof n){var r=e(n.mine),a=e(n.theirs);void 0!==t&&(r.oldLines===a.oldLines?t+=r.oldLines:t=void 0),void 0!==i&&(r.newLines===a.newLines?i+=r.newLines:i=void 0)}else void 0===i||"+"!==n[0]&&" "!==n[0]||i++,void 0===t||"-"!==n[0]&&" "!==n[0]||t++})),{oldLines:t,newLines:i}}(e.lines),t=n.oldLines,i=n.newLines;void 0!==t?e.oldLines=t:delete e.oldLines,void 0!==i?e.newLines=i:delete e.newLines}function N(e,n){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return y(e)[0];if(!n)throw new Error("Must provide a base reference or pass in a patch");return L(void 0,void 0,n,e)}return e}function E(e){return e.newFileName&&e.newFileName!==e.oldFileName}function H(e,n,t){return n===t?n:(e.conflict=!0,{mine:n,theirs:t})}function k(e,n){return e.oldStart<n.oldStart&&e.oldStart+e.oldLines<n.oldStart}function O(e,n){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+n,newLines:e.newLines,lines:e.lines}}function _(e,n,t,i,r){var a={offset:n,lines:t,index:0},s={offset:i,lines:r,index:0};for(P(e,a,s),P(e,s,a);a.index<a.lines.length&&s.index<s.lines.length;){var o=a.lines[a.index],l=s.lines[s.index];if("-"!==o[0]&&"+"!==o[0]||"-"!==l[0]&&"+"!==l[0])if("+"===o[0]&&" "===l[0]){var f;(f=e.lines).push.apply(f,p(D(a)))}else if("+"===l[0]&&" "===o[0]){var u;(u=e.lines).push.apply(u,p(D(s)))}else"-"===o[0]&&" "===l[0]?I(e,a,s):"-"===l[0]&&" "===o[0]?I(e,s,a,!0):o===l?(e.lines.push(o),a.index++,s.index++):M(e,D(a),D(s));else F(e,a,s)}j(e,a),j(e,s),T(e)}function F(e,n,t){var i,r,a=D(n),s=D(t);if(A(a)&&A(s)){var o,l;if(C(a,s)&&R(t,a,a.length-s.length))return void(o=e.lines).push.apply(o,p(a));if(C(s,a)&&R(n,s,s.length-a.length))return void(l=e.lines).push.apply(l,p(s))}else if(r=s,(i=a).length===r.length&&C(i,r)){var f;return void(f=e.lines).push.apply(f,p(a))}M(e,a,s)}function I(e,n,t,i){var r,a=D(n),s=function(e,n){for(var t=[],i=[],r=0,a=!1,s=!1;r<n.length&&e.index<e.lines.length;){var o=e.lines[e.index],l=n[r];if("+"===l[0])break;if(a=a||" "!==o[0],i.push(l),r++,"+"===o[0])for(s=!0;"+"===o[0];)t.push(o),o=e.lines[++e.index];l.substr(1)===o.substr(1)?(t.push(o),e.index++):s=!0}if("+"===(n[r]||"")[0]&&a&&(s=!0),s)return t;for(;r<n.length;)i.push(n[r++]);return{merged:i,changes:t}}(t,a);s.merged?(r=e.lines).push.apply(r,p(s.merged)):M(e,i?s:a,i?a:s)}function M(e,n,t){e.conflict=!0,e.lines.push({conflict:!0,mine:n,theirs:t})}function P(e,n,t){for(;n.offset<t.offset&&n.index<n.lines.length;){var i=n.lines[n.index++];e.lines.push(i),n.offset++}}function j(e,n){for(;n.index<n.lines.length;){var t=n.lines[n.index++];e.lines.push(t)}}function D(e){for(var n=[],t=e.lines[e.index][0];e.index<e.lines.length;){var i=e.lines[e.index];if("-"===t&&"+"===i[0]&&(t="+"),t!==i[0])break;n.push(i),e.index++}return n}function A(e){return e.reduce((function(e,n){return e&&"-"===n[0]}),!0)}function R(e,n,t){for(var i=0;i<t;i++){var r=n[n.length-t+i].substr(1);if(e.lines[e.index+i]!==" "+r)return!1}return e.index+=t,!0}m.tokenize=function(e){return e.slice()},m.join=m.removeEmpty=function(e){return e},e.Diff=n,e.diffChars=function(e,n,t){return r.diff(e,n,t)},e.diffWords=function(e,n,t){return t=a(t,{ignoreWhitespace:!0}),l.diff(e,n,t)},e.diffWordsWithSpace=function(e,n,t){return l.diff(e,n,t)},e.diffLines=u,e.diffTrimmedLines=function(e,n,t){var i=a(t,{ignoreWhitespace:!0});return f.diff(e,n,i)},e.diffSentences=function(e,n,t){return d.diff(e,n,t)},e.diffCss=function(e,n,t){return c.diff(e,n,t)},e.diffJson=function(e,n,t){return g.diff(e,n,t)},e.diffArrays=function(e,n,t){return m.diff(e,n,t)},e.structuredPatch=L,e.createTwoFilesPatch=S,e.createPatch=function(e,n,t,i,r,a){return S(e,e,n,t,i,r,a)},e.applyPatch=x,e.applyPatches=function(e,n){"string"==typeof e&&(e=y(e));var t=0;!function i(){var r=e[t++];if(!r)return n.complete();n.loadFile(r,(function(e,t){if(e)return n.complete(e);var a=x(t,r,n);n.patched(r,a,(function(e){if(e)return n.complete(e);i()}))}))}()},e.parsePatch=y,e.merge=function(e,n,t){e=N(e,t),n=N(n,t);var i={};(e.index||n.index)&&(i.index=e.index||n.index),(e.newFileName||n.newFileName)&&(E(e)?E(n)?(i.oldFileName=H(i,e.oldFileName,n.oldFileName),i.newFileName=H(i,e.newFileName,n.newFileName),i.oldHeader=H(i,e.oldHeader,n.oldHeader),i.newHeader=H(i,e.newHeader,n.newHeader)):(i.oldFileName=e.oldFileName,i.newFileName=e.newFileName,i.oldHeader=e.oldHeader,i.newHeader=e.newHeader):(i.oldFileName=n.oldFileName||e.oldFileName,i.newFileName=n.newFileName||e.newFileName,i.oldHeader=n.oldHeader||e.oldHeader,i.newHeader=n.newHeader||e.newHeader)),i.hunks=[];for(var r=0,a=0,s=0,o=0;r<e.hunks.length||a<n.hunks.length;){var l=e.hunks[r]||{oldStart:1/0},f=n.hunks[a]||{oldStart:1/0};if(k(l,f))i.hunks.push(O(l,s)),r++,o+=l.newLines-l.oldLines;else if(k(f,l))i.hunks.push(O(f,o)),a++,s+=f.newLines-f.oldLines;else{var u={oldStart:Math.min(l.oldStart,f.oldStart),oldLines:0,newStart:Math.min(l.newStart+s,f.oldStart+o),newLines:0,lines:[]};_(u,l.oldStart,l.lines,f.oldStart,f.lines),a++,r++,i.hunks.push(u)}}return i},e.convertChangesToDMP=function(e){for(var n,t,i=[],r=0;r<e.length;r++)t=(n=e[r]).added?1:n.removed?-1:0,i.push([t,n.value]);return i},e.convertChangesToXML=function(e){for(var n=[],t=0;t<e.length;t++){var i=e[t];i.added?n.push("<ins>"):i.removed&&n.push("<del>"),n.push((r=i.value,void 0,r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))),i.added?n.push("</ins>"):i.removed&&n.push("</del>")}var r;return n.join("")},e.canonicalize=v,Object.defineProperty(e,"__esModule",{value:!0})}(n)},function(e,n,t){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n};Object.defineProperty(n,"__esModule",{value:!0});var a=r(t(2)),s=r(t(1)),o=t(0);n.defaultLineByLineRendererConfig=i(i({},s.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});var l=function(){function e(e,t){void 0===t&&(t={}),this.hoganUtils=e,this.config=i(i({},n.defaultLineByLineRendererConfig),t)}return e.prototype.render=function(e){var n=this,t=e.map((function(e){var t;return t=e.blocks.length?n.generateFileHtml(e):n.generateEmptyDiff(),n.makeFileDiffHtml(e,t)})).join("\n");return this.hoganUtils.render("generic","wrapper",{content:t})},e.prototype.makeFileDiffHtml=function(e,n){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var t=this.hoganUtils.template("line-by-line","file-diff"),i=this.hoganUtils.template("generic","file-path"),r=this.hoganUtils.template("icon","file"),a=this.hoganUtils.template("tag",s.getFileIcon(e));return t.render({file:e,fileHtmlId:s.getHtmlId(e),diffs:n,filePath:i.render({fileDiffName:s.filenameDiff(e)},{fileIcon:r,fileTag:a})})},e.prototype.generateEmptyDiff=function(){return this.hoganUtils.render("generic","empty-diff",{contentClass:"d2h-code-line",CSSLineClass:s.CSSLineClass})},e.prototype.generateFileHtml=function(e){var n=this,t=a.newMatcherFn(a.newDistanceFn((function(n){return s.deconstructLine(n.content,e.isCombined).content})));return e.blocks.map((function(i){var r=n.hoganUtils.render("generic","block-header",{CSSLineClass:s.CSSLineClass,blockHeader:i.header,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return n.applyLineGroupping(i).forEach((function(i){var a=i[0],o=i[1],l=i[2];if(o.length&&l.length&&!a.length)n.applyRematchMatching(o,l,t).map((function(t){var i=t[0],a=t[1],s=n.processChangedLines(e.isCombined,i,a),o=s.left,l=s.right;r+=o,r+=l}));else if(a.length)a.forEach((function(t){var i=s.deconstructLine(t.content,e.isCombined),a=i.prefix,o=i.content;r+=n.generateSingleLineHtml({type:s.CSSLineClass.CONTEXT,prefix:a,content:o,oldNumber:t.oldNumber,newNumber:t.newNumber})}));else if(o.length||l.length){var f=n.processChangedLines(e.isCombined,o,l),u=f.left,d=f.right;r+=u,r+=d}else console.error("Unknown state reached while processing groups of lines",a,o,l)})),r})).join("\n")},e.prototype.applyLineGroupping=function(e){for(var n=[],t=[],i=[],r=0;r<e.lines.length;r++){var a=e.lines[r];(a.type!==o.LineType.INSERT&&i.length||a.type===o.LineType.CONTEXT&&t.length>0)&&(n.push([[],t,i]),t=[],i=[]),a.type===o.LineType.CONTEXT?n.push([[a],[],[]]):a.type===o.LineType.INSERT&&0===t.length?n.push([[],[],[a]]):a.type===o.LineType.INSERT&&t.length>0?i.push(a):a.type===o.LineType.DELETE&&t.push(a)}return(t.length||i.length)&&(n.push([[],t,i]),t=[],i=[]),n},e.prototype.applyRematchMatching=function(e,n,t){var i=e.length*n.length,r=Math.max.apply(null,[0].concat(e.concat(n).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?t(e,n):[[e,n]]},e.prototype.processChangedLines=function(e,n,t){for(var r={right:"",left:""},a=Math.max(n.length,t.length),o=0;o<a;o++){var l=n[o],f=t[o],u=void 0!==l&&void 0!==f?s.diffHighlight(l.content,f.content,e,this.config):void 0,d=void 0!==l&&void 0!==l.oldNumber?i(i({},void 0!==u?{prefix:u.oldLine.prefix,content:u.oldLine.content,type:s.CSSLineClass.DELETE_CHANGES}:i(i({},s.deconstructLine(l.content,e)),{type:s.toCSSClass(l.type)})),{oldNumber:l.oldNumber,newNumber:l.newNumber}):void 0,c=void 0!==f&&void 0!==f.newNumber?i(i({},void 0!==u?{prefix:u.newLine.prefix,content:u.newLine.content,type:s.CSSLineClass.INSERT_CHANGES}:i(i({},s.deconstructLine(f.content,e)),{type:s.toCSSClass(f.type)})),{oldNumber:f.oldNumber,newNumber:f.newNumber}):void 0,h=this.generateLineHtml(d,c),p=h.left,b=h.right;r.left+=p,r.right+=b}return r},e.prototype.generateLineHtml=function(e,n){return{left:this.generateSingleLineHtml(e),right:this.generateSingleLineHtml(n)}},e.prototype.generateSingleLineHtml=function(e){if(void 0===e)return"";var n=this.hoganUtils.render("line-by-line","numbers",{oldNumber:e.oldNumber||"",newNumber:e.newNumber||""});return this.hoganUtils.render("generic","line",{type:e.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===e.prefix?"&nbsp;":e.prefix,content:e.content,lineNumber:n})},e}();n.default=l},function(e,n,t){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n};Object.defineProperty(n,"__esModule",{value:!0});var a=r(t(2)),s=r(t(1)),o=t(0);n.defaultSideBySideRendererConfig=i(i({},s.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});var l=function(){function e(e,t){void 0===t&&(t={}),this.hoganUtils=e,this.config=i(i({},n.defaultSideBySideRendererConfig),t)}return e.prototype.render=function(e){var n=this,t=e.map((function(e){var t;return t=e.blocks.length?n.generateFileHtml(e):n.generateEmptyDiff(),n.makeFileDiffHtml(e,t)})).join("\n");return this.hoganUtils.render("generic","wrapper",{content:t})},e.prototype.makeFileDiffHtml=function(e,n){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var t=this.hoganUtils.template("side-by-side","file-diff"),i=this.hoganUtils.template("generic","file-path"),r=this.hoganUtils.template("icon","file"),a=this.hoganUtils.template("tag",s.getFileIcon(e));return t.render({file:e,fileHtmlId:s.getHtmlId(e),diffs:n,filePath:i.render({fileDiffName:s.filenameDiff(e)},{fileIcon:r,fileTag:a})})},e.prototype.generateEmptyDiff=function(){return{right:"",left:this.hoganUtils.render("generic","empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:s.CSSLineClass})}},e.prototype.generateFileHtml=function(e){var n=this,t=a.newMatcherFn(a.newDistanceFn((function(n){return s.deconstructLine(n.content,e.isCombined).content})));return e.blocks.map((function(i){var r={left:n.makeHeaderHtml(i.header),right:n.makeHeaderHtml("")};return n.applyLineGroupping(i).forEach((function(i){var a=i[0],o=i[1],l=i[2];if(o.length&&l.length&&!a.length)n.applyRematchMatching(o,l,t).map((function(t){var i=t[0],a=t[1],s=n.processChangedLines(e.isCombined,i,a),o=s.left,l=s.right;r.left+=o,r.right+=l}));else if(a.length)a.forEach((function(t){var i=s.deconstructLine(t.content,e.isCombined),a=i.prefix,o=i.content,l=n.generateLineHtml({type:s.CSSLineClass.CONTEXT,prefix:a,content:o,number:t.oldNumber},{type:s.CSSLineClass.CONTEXT,prefix:a,content:o,number:t.newNumber}),f=l.left,u=l.right;r.left+=f,r.right+=u}));else if(o.length||l.length){var f=n.processChangedLines(e.isCombined,o,l),u=f.left,d=f.right;r.left+=u,r.right+=d}else console.error("Unknown state reached while processing groups of lines",a,o,l)})),r})).reduce((function(e,n){return{left:e.left+n.left,right:e.right+n.right}}),{left:"",right:""})},e.prototype.applyLineGroupping=function(e){for(var n=[],t=[],i=[],r=0;r<e.lines.length;r++){var a=e.lines[r];(a.type!==o.LineType.INSERT&&i.length||a.type===o.LineType.CONTEXT&&t.length>0)&&(n.push([[],t,i]),t=[],i=[]),a.type===o.LineType.CONTEXT?n.push([[a],[],[]]):a.type===o.LineType.INSERT&&0===t.length?n.push([[],[],[a]]):a.type===o.LineType.INSERT&&t.length>0?i.push(a):a.type===o.LineType.DELETE&&t.push(a)}return(t.length||i.length)&&(n.push([[],t,i]),t=[],i=[]),n},e.prototype.applyRematchMatching=function(e,n,t){var i=e.length*n.length,r=Math.max.apply(null,[0].concat(e.concat(n).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?t(e,n):[[e,n]]},e.prototype.makeHeaderHtml=function(e){return this.hoganUtils.render("generic","block-header",{CSSLineClass:s.CSSLineClass,blockHeader:e,lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})},e.prototype.processChangedLines=function(e,n,t){for(var r={right:"",left:""},a=Math.max(n.length,t.length),o=0;o<a;o++){var l=n[o],f=t[o],u=void 0!==l&&void 0!==f?s.diffHighlight(l.content,f.content,e,this.config):void 0,d=void 0!==l&&void 0!==l.oldNumber?i(i({},void 0!==u?{prefix:u.oldLine.prefix,content:u.oldLine.content,type:s.CSSLineClass.DELETE_CHANGES}:i(i({},s.deconstructLine(l.content,e)),{type:s.toCSSClass(l.type)})),{number:l.oldNumber}):void 0,c=void 0!==f&&void 0!==f.newNumber?i(i({},void 0!==u?{prefix:u.newLine.prefix,content:u.newLine.content,type:s.CSSLineClass.INSERT_CHANGES}:i(i({},s.deconstructLine(f.content,e)),{type:s.toCSSClass(f.type)})),{number:f.newNumber}):void 0,h=this.generateLineHtml(d,c),p=h.left,b=h.right;r.left+=p,r.right+=b}return r},e.prototype.generateLineHtml=function(e,n){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(n)}},e.prototype.generateSingleHtml=function(e){return this.hoganUtils.render("generic","line",{type:(null==e?void 0:e.type)||s.CSSLineClass.CONTEXT+" d2h-emptyplaceholder",lineClass:void 0!==e?"d2h-code-side-linenumber":"d2h-code-side-linenumber d2h-code-side-emptyplaceholder",contentClass:void 0!==e?"d2h-code-side-line":"d2h-code-side-line 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}();n.default=l},function(e,n,t){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n};Object.defineProperty(n,"__esModule",{value:!0});var a=r(t(4)),s=t(14),o=function(){function e(e){var n=e.compiledTemplates,t=void 0===n?{}:n,r=e.rawTemplates,o=void 0===r?{}:r,l=Object.entries(o).reduce((function(e,n){var t,r=n[0],s=n[1],o=a.compile(s,{asString:!1});return i(i({},e),((t={})[r]=o,t))}),{});this.preCompiledTemplates=i(i(i({},s.defaultTemplates),t),l)}return e.compile=function(e){return a.compile(e,{asString:!1})},e.prototype.render=function(e,n,t,i,r){var a=this.templateKey(e,n);try{return this.preCompiledTemplates[a].render(t,i,r)}catch(e){throw new Error("Could not find template to render '"+a+"'")}},e.prototype.template=function(e,n){return this.preCompiledTemplates[this.templateKey(e,n)]},e.prototype.templateKey=function(e,n){return e+"-"+n},e}();n.default=o},function(e,n,t){!function(e){var n=/\S/,t=/\"/g,i=/\n/g,r=/\r/g,a=/\\/g,s=/\u2028/,o=/\u2029/;function l(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function f(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function u(e,n,t){if(n.charAt(t)!=e.charAt(0))return!1;for(var i=1,r=e.length;i<r;i++)if(n.charAt(t+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(t,i){var r=t.length,a=0,s=null,o=null,d="",c=[],h=!1,p=0,b=0,g="{{",v="}}";function m(){d.length>0&&(c.push({tag:"_t",text:new String(d)}),d="")}function y(t,i){if(m(),t&&function(){for(var t=!0,i=b;i<c.length;i++)if(!(t=e.tags[c[i].tag]<e.tags._v||"_t"==c[i].tag&&null===c[i].text.match(n)))return!1;return t}())for(var r,a=b;a<c.length;a++)c[a].text&&((r=c[a+1])&&">"==r.tag&&(r.indent=c[a].text.toString()),c.splice(a,1));else i||c.push({tag:"\n"});h=!1,b=c.length}function w(e,n){var t="="+v,i=e.indexOf(t,n),r=f(e.substring(e.indexOf("=",n)+1,i)).split(" ");return g=r[0],v=r[r.length-1],i+t.length-1}for(i&&(i=i.split(" "),g=i[0],v=i[1]),p=0;p<r;p++)0==a?u(g,t,p)?(--p,m(),a=1):"\n"==t.charAt(p)?y(h):d+=t.charAt(p):1==a?(p+=g.length-1,"="==(s=(o=e.tags[t.charAt(p+1)])?t.charAt(p+1):"_v")?(p=w(t,p),a=0):(o&&p++,a=2),h=p):u(v,t,p)?(c.push({tag:s,n:f(d),otag:g,ctag:v,i:"/"==s?h-g.length:p+v.length}),d="",p+=v.length-1,a=0,"{"==s&&("}}"==v?p++:l(c[c.length-1]))):d+=t.charAt(p);return y(h,!0),c};var d={_t:!0,"\n":!0,$:!0,"/":!0};function c(e,n){for(var t=0,i=n.length;t<i;t++)if(n[t].o==e.n)return e.tag="#",!0}function h(e,n,t){for(var i=0,r=t.length;i<r;i++)if(t[i].c==e&&t[i].o==n)return!0}function p(e){var n=[];for(var t in e.partials)n.push('"'+g(t)+'":{name:"'+g(e.partials[t].name)+'", '+p(e.partials[t])+"}");return"partials: {"+n.join(",")+"}, subs: "+function(e){var n=[];for(var t in e)n.push('"'+g(t)+'": function(c,p,t,i) {'+e[t]+"}");return"{ "+n.join(",")+" }"}(e.subs)}e.stringify=function(n,t,i){return"{code: function (c,p,i) { "+e.wrapMain(n.code)+" },"+p(n)+"}"};var b=0;function g(e){return e.replace(a,"\\\\").replace(t,'\\"').replace(i,"\\n").replace(r,"\\r").replace(s,"\\u2028").replace(o,"\\u2029")}function v(e){return~e.indexOf(".")?"d":"f"}function m(e,n){var t="<"+(n.prefix||"")+e.n+b++;return n.partials[t]={name:e.n,partials:{}},n.code+='t.b(t.rp("'+g(t)+'",c,p,"'+(e.indent||"")+'"));',t}function y(e,n){n.code+="t.b(t.t(t."+v(e.n)+'("'+g(e.n)+'",c,p,0)));'}function w(e){return"t.b("+e+");"}e.generate=function(n,t,i){b=0;var r={code:"",subs:{},partials:{}};return e.walk(n,r),i.asString?this.stringify(r,t,i):this.makeTemplate(r,t,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,n,t){var i=this.makePartials(e);return i.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(i,n,this,t)},e.makePartials=function(e){var n,t={subs:{},partials:e.partials,name:e.name};for(n in t.partials)t.partials[n]=this.makePartials(t.partials[n]);for(n in e.subs)t.subs[n]=new Function("c","p","t","i",e.subs[n]);return t},e.codegen={"#":function(n,t){t.code+="if(t.s(t."+v(n.n)+'("'+g(n.n)+'",c,p,1),c,p,0,'+n.i+","+n.end+',"'+n.otag+" "+n.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(n.nodes,t),t.code+="});c.pop();}"},"^":function(n,t){t.code+="if(!t.s(t."+v(n.n)+'("'+g(n.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(n.nodes,t),t.code+="};"},">":m,"<":function(n,t){var i={partials:{},code:"",subs:{},inPartial:!0};e.walk(n.nodes,i);var r=t.partials[m(n,t)];r.subs=i.subs,r.partials=i.partials},$:function(n,t){var i={subs:{},code:"",partials:t.partials,prefix:n.n};e.walk(n.nodes,i),t.subs[n.n]=i.code,t.inPartial||(t.code+='t.sub("'+g(n.n)+'",c,p,i);')},"\n":function(e,n){n.code+=w('"\\n"'+(e.last?"":" + i"))},_v:function(e,n){n.code+="t.b(t.v(t."+v(e.n)+'("'+g(e.n)+'",c,p,0)));'},_t:function(e,n){n.code+=w('"'+g(e.text)+'"')},"{":y,"&":y},e.walk=function(n,t){for(var i,r=0,a=n.length;r<a;r++)(i=e.codegen[n[r].tag])&&i(n[r],t);return t},e.parse=function(n,t,i){return function n(t,i,r,a){var s,o=[],l=null,f=null;for(s=r[r.length-1];t.length>0;){if(f=t.shift(),s&&"<"==s.tag&&!(f.tag in d))throw new Error("Illegal content in < super tag.");if(e.tags[f.tag]<=e.tags.$||c(f,a))r.push(f),f.nodes=n(t,f.tag,r,a);else{if("/"==f.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+f.n);if(l=r.pop(),f.n!=l.n&&!h(f.n,l.n,a))throw new Error("Nesting error: "+l.n+" vs. "+f.n);return l.end=f.i,o}"\n"==f.tag&&(f.last=0==t.length||"\n"==t[0].tag)}o.push(f)}if(r.length>0)throw new Error("missing closing tag: "+r.pop().n);return o}(n,0,[],(i=i||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,n){return[e,!!n.asString,!!n.disableLambda,n.delimiters,!!n.modelGet].join("||")},e.compile=function(n,t){t=t||{};var i=e.cacheKey(n,t),r=this.cache[i];if(r){var a=r.partials;for(var s in a)delete a[s].instance;return r}return r=this.generate(this.parse(this.scan(n,t.delimiters),n,t),n,t),this.cache[i]=r}}(n)},function(e,n,t){!function(e){function n(e,n,t){var i;return n&&"object"==typeof n&&(void 0!==n[e]?i=n[e]:t&&n.get&&"function"==typeof n.get&&(i=n.get(e))),i}e.Template=function(e,n,t,i){e=e||{},this.r=e.code||this.r,this.c=t,this.options=i||{},this.text=n||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,n,t){return""},v:function(e){return e=l(e),o.test(e)?e.replace(t,"&amp;").replace(i,"&lt;").replace(r,"&gt;").replace(a,"&#39;").replace(s,"&quot;"):e},t:l,render:function(e,n,t){return this.ri([e],n||{},t)},ri:function(e,n,t){return this.r(e,n,t)},ep:function(e,n){var t=this.partials[e],i=n[t.name];if(t.instance&&t.base==i)return t.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,t.subs){for(key in n.stackText||(n.stackText={}),t.subs)n.stackText[key]||(n.stackText[key]=void 0!==this.activeSub&&n.stackText[this.activeSub]?n.stackText[this.activeSub]:this.text);i=function(e,n,t,i,r,a){function s(){}function o(){}var l;s.prototype=e,o.prototype=e.subs;var f=new s;for(l in f.subs=new o,f.subsText={},f.buf="",i=i||{},f.stackSubs=i,f.subsText=a,n)i[l]||(i[l]=n[l]);for(l in i)f.subs[l]=i[l];for(l in r=r||{},f.stackPartials=r,t)r[l]||(r[l]=t[l]);for(l in r)f.partials[l]=r[l];return f}(i,t.subs,t.partials,this.stackSubs,this.stackPartials,n.stackText)}return this.partials[e].instance=i,i},rp:function(e,n,t,i){var r=this.ep(e,t);return r?r.ri(n,t,i):""},rs:function(e,n,t){var i=e[e.length-1];if(f(i))for(var r=0;r<i.length;r++)e.push(i[r]),t(e,n,this),e.pop();else t(e,n,this)},s:function(e,n,t,i,r,a,s){var o;return(!f(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,n,t,i,r,a,s)),o=!!e,!i&&o&&n&&n.push("object"==typeof e?e:n[n.length-1]),o)},d:function(e,t,i,r){var a,s=e.split("."),o=this.f(s[0],t,i,r),l=this.options.modelGet,u=null;if("."===e&&f(t[t.length-2]))o=t[t.length-1];else for(var d=1;d<s.length;d++)void 0!==(a=n(s[d],o,l))?(u=o,o=a):o="";return!(r&&!o)&&(r||"function"!=typeof o||(t.push(u),o=this.mv(o,t,i),t.pop()),o)},f:function(e,t,i,r){for(var a=!1,s=!1,o=this.options.modelGet,l=t.length-1;l>=0;l--)if(void 0!==(a=n(e,t[l],o))){s=!0;break}return s?(r||"function"!=typeof a||(a=this.mv(a,t,i)),a):!r&&""},ls:function(e,n,t,i,r){var a=this.options.delimiters;return this.options.delimiters=r,this.b(this.ct(l(e.call(n,i)),n,t)),this.options.delimiters=a,!1},ct:function(e,n,t){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(n,t)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,n,t,i,r,a,s){var o,l=n[n.length-1],f=e.call(l);return"function"==typeof f?!!i||(o=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(f,l,t,o.substring(r,a),s)):f},mv:function(e,n,t){var i=n[n.length-1],r=e.call(i);return"function"==typeof r?this.ct(l(r.call(i)),i,t):r},sub:function(e,n,t,i){var r=this.subs[e];r&&(this.activeSub=e,r(n,t,this,i),this.activeSub=!1)}};var t=/&/g,i=/</g,r=/>/g,a=/\'/g,s=/\"/g,o=/[&<>\"\']/;function l(e){return String(null==e?"":e)}var f=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(n)},function(e,n,t){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n};Object.defineProperty(n,"__esModule",{value:!0});var r=i(t(4));n.defaultTemplates={},n.defaultTemplates["file-summary-line"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<li class="d2h-file-list-line">'),i.b("\n"+t),i.b(' <span class="d2h-file-name-wrapper">'),i.b("\n"+t),i.b(i.rp("<fileIcon0",e,n," ")),i.b(' <a href="#'),i.b(i.v(i.f("fileHtmlId",e,n,0))),i.b('" class="d2h-file-name">'),i.b(i.v(i.f("fileName",e,n,0))),i.b("</a>"),i.b("\n"+t),i.b(' <span class="d2h-file-stats">'),i.b("\n"+t),i.b(' <span class="d2h-lines-added">'),i.b(i.v(i.f("addedLines",e,n,0))),i.b("</span>"),i.b("\n"+t),i.b(' <span class="d2h-lines-deleted">'),i.b(i.v(i.f("deletedLines",e,n,0))),i.b("</span>"),i.b("\n"+t),i.b(" </span>"),i.b("\n"+t),i.b(" </span>"),i.b("\n"+t),i.b("</li>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),n.defaultTemplates["file-summary-wrapper"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div class="d2h-file-list-wrapper">'),i.b("\n"+t),i.b(' <div class="d2h-file-list-header">'),i.b("\n"+t),i.b(' <span class="d2h-file-list-title">Files changed ('),i.b(i.v(i.f("filesNumber",e,n,0))),i.b(")</span>"),i.b("\n"+t),i.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),i.b("\n"+t),i.b(' <a class="d2h-file-switch d2h-show">show</a>'),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <ol class="d2h-file-list">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("files",e,n,0))),i.b("\n"+t),i.b(" </ol>"),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["generic-block-header"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b("<tr>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,n,0))),i.b(" "),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('"></td>'),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,n,0))),i.b(" "),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('">'),i.b(i.t(i.f("blockHeader",e,n,0))),i.b("</div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["generic-empty-diff"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b("<tr>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,n,0))),i.b(" "),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('">'),i.b("\n"+t),i.b(" File without changes"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["generic-file-path"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-file-name-wrapper">'),i.b("\n"+t),i.b(i.rp("<fileIcon0",e,n," ")),i.b(' <span class="d2h-file-name">'),i.b(i.v(i.f("fileDiffName",e,n,0))),i.b("</span>"),i.b("\n"+t),i.b(i.rp("<fileTag1",e,n," ")),i.b("</span>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),n.defaultTemplates["generic-line"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b("<tr>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,n,0))),i.b(" "),i.b(i.v(i.f("type",e,n,0))),i.b('">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("lineNumber",e,n,0))),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.f("type",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,n,0))),i.b(" "),i.b(i.v(i.f("type",e,n,0))),i.b('">'),i.b("\n"+t),i.s(i.f("prefix",e,n,1),e,n,0,171,247,"{{ }}")&&(i.rs(e,n,(function(e,n,i){i.b(' <span class="d2h-code-line-prefix">'),i.b(i.t(i.f("prefix",e,n,0))),i.b("</span>"),i.b("\n"+t)})),e.pop()),i.s(i.f("prefix",e,n,1),e,n,1,0,0,"")||(i.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),i.b("\n"+t)),i.s(i.f("content",e,n,1),e,n,0,380,454,"{{ }}")&&(i.rs(e,n,(function(e,n,i){i.b(' <span class="d2h-code-line-ctn">'),i.b(i.t(i.f("content",e,n,0))),i.b("</span>"),i.b("\n"+t)})),e.pop()),i.s(i.f("content",e,n,1),e,n,1,0,0,"")||(i.b(' <span class="d2h-code-line-ctn"><br></span>'),i.b("\n"+t)),i.b(" </div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["generic-wrapper"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div class="d2h-wrapper">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("content",e,n,0))),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["icon-file-added"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),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"+t),i.b(' width="14">'),i.b("\n"+t),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"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["icon-file-changed"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),i.b("\n"+t),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+t),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"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["icon-file-deleted"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),i.b("\n"+t),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+t),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"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["icon-file-renamed"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),i.b("\n"+t),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+t),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"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["icon-file"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),i.b("\n"+t),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"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["line-by-line-file-diff"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,n,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="d2h-file-header">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("filePath",e,n,0))),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <div class="d2h-file-diff">'),i.b("\n"+t),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+t),i.b(' <table class="d2h-diff-table">'),i.b("\n"+t),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("diffs",e,n,0))),i.b("\n"+t),i.b(" </tbody>"),i.b("\n"+t),i.b(" </table>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["line-by-line-numbers"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div class="line-num1">'),i.b(i.v(i.f("oldNumber",e,n,0))),i.b("</div>"),i.b("\n"+t),i.b('<div class="line-num2">'),i.b(i.v(i.f("newNumber",e,n,0))),i.b("</div>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["side-by-side-file-diff"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,n,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="d2h-file-header">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("filePath",e,n,0))),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <div class="d2h-files-diff">'),i.b("\n"+t),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+t),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+t),i.b(' <table class="d2h-diff-table">'),i.b("\n"+t),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.d("diffs.left",e,n,0))),i.b("\n"+t),i.b(" </tbody>"),i.b("\n"+t),i.b(" </table>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+t),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+t),i.b(' <table class="d2h-diff-table">'),i.b("\n"+t),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.d("diffs.right",e,n,0))),i.b("\n"+t),i.b(" </tbody>"),i.b("\n"+t),i.b(" </table>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),n.defaultTemplates["tag-file-added"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),i.fl()},partials:{},subs:{}}),n.defaultTemplates["tag-file-changed"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),i.fl()},partials:{},subs:{}}),n.defaultTemplates["tag-file-deleted"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),i.fl()},partials:{},subs:{}}),n.defaultTemplates["tag-file-renamed"]=new r.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),i.fl()},partials:{},subs:{}})}])}));

@@ -211,12 +211,11 @@ var __assign = (this && this.__assign) || function () {

SideBySideRenderer.prototype.generateSingleHtml = function (line) {
var _a, _b, _c, _d, _e;
var lineClass = 'd2h-code-side-linenumber';
var contentClass = 'd2h-code-side-line';
return this.hoganUtils.render(genericTemplatesPath, 'line', {
type: ((_a = line) === null || _a === void 0 ? void 0 : _a.type) || renderUtils.CSSLineClass.CONTEXT + " d2h-emptyplaceholder",
type: (line === null || line === void 0 ? void 0 : line.type) || renderUtils.CSSLineClass.CONTEXT + " d2h-emptyplaceholder",
lineClass: line !== undefined ? lineClass : lineClass + " d2h-code-side-emptyplaceholder",
contentClass: line !== undefined ? contentClass : contentClass + " d2h-code-side-emptyplaceholder",
prefix: ((_b = line) === null || _b === void 0 ? void 0 : _b.prefix) === ' ' ? '&nbsp;' : (_c = line) === null || _c === void 0 ? void 0 : _c.prefix,
content: (_d = line) === null || _d === void 0 ? void 0 : _d.content,
lineNumber: (_e = line) === null || _e === void 0 ? void 0 : _e.number,
prefix: (line === null || line === void 0 ? void 0 : line.prefix) === ' ' ? '&nbsp;' : line === null || line === void 0 ? void 0 : line.prefix,
content: line === null || line === void 0 ? void 0 : line.content,
lineNumber: line === null || line === void 0 ? void 0 : line.number,
});

@@ -223,0 +222,0 @@ };

@@ -220,12 +220,11 @@ "use strict";

SideBySideRenderer.prototype.generateSingleHtml = function (line) {
var _a, _b, _c, _d, _e;
var lineClass = 'd2h-code-side-linenumber';
var contentClass = 'd2h-code-side-line';
return this.hoganUtils.render(genericTemplatesPath, 'line', {
type: ((_a = line) === null || _a === void 0 ? void 0 : _a.type) || renderUtils.CSSLineClass.CONTEXT + " d2h-emptyplaceholder",
type: (line === null || line === void 0 ? void 0 : line.type) || renderUtils.CSSLineClass.CONTEXT + " d2h-emptyplaceholder",
lineClass: line !== undefined ? lineClass : lineClass + " d2h-code-side-emptyplaceholder",
contentClass: line !== undefined ? contentClass : contentClass + " d2h-code-side-emptyplaceholder",
prefix: ((_b = line) === null || _b === void 0 ? void 0 : _b.prefix) === ' ' ? '&nbsp;' : (_c = line) === null || _c === void 0 ? void 0 : _c.prefix,
content: (_d = line) === null || _d === void 0 ? void 0 : _d.content,
lineNumber: (_e = line) === null || _e === void 0 ? void 0 : _e.number,
prefix: (line === null || line === void 0 ? void 0 : line.prefix) === ' ' ? '&nbsp;' : line === null || line === void 0 ? void 0 : line.prefix,
content: line === null || line === void 0 ? void 0 : line.content,
lineNumber: line === null || line === void 0 ? void 0 : line.number,
});

@@ -232,0 +231,0 @@ };

{
"name": "diff2html",
"version": "3.1.4",
"version": "3.1.5",
"homepage": "https://diff2html.xyz",

@@ -101,13 +101,13 @@ "description": "Fast Diff to colorized HTML",

"@types/html-webpack-plugin": "3.2.2",
"@types/jest": "25.1.1",
"@types/mini-css-extract-plugin": "0.9.0",
"@types/mkdirp": "0.5.2",
"@types/node": "13.7.0",
"@types/jest": "25.1.4",
"@types/mini-css-extract-plugin": "0.9.1",
"@types/mkdirp": "1.0.0",
"@types/node": "13.9.1",
"@types/nopt": "3.0.29",
"@types/webpack": "4.41.5",
"@typescript-eslint/eslint-plugin": "2.19.0",
"@typescript-eslint/parser": "2.19.0",
"@types/webpack": "4.41.7",
"@typescript-eslint/eslint-plugin": "2.23.0",
"@typescript-eslint/parser": "2.23.0",
"autoprefixer": "9.7.4",
"bulma": "^0.8.0",
"clipboard": "2.0.4",
"clipboard": "2.0.6",
"codacy-coverage": "3.4.0",

@@ -120,4 +120,4 @@ "copy-webpack-plugin": "5.1.1",

"eslint-plugin-import": "2.20.1",
"eslint-plugin-jest": "23.6.0",
"eslint-plugin-json": "2.0.1",
"eslint-plugin-jest": "23.8.2",
"eslint-plugin-json": "2.1.0",
"eslint-plugin-node": "11.0.0",

@@ -127,16 +127,16 @@ "eslint-plugin-optimize-regex": "1.1.7",

"eslint-plugin-sonarjs": "0.5.0",
"file-loader": "5.0.2",
"file-loader": "5.1.0",
"handlebars": "4.7.3",
"handlebars-loader": "1.7.1",
"html-webpack-plugin": "3.2.0",
"husky": "4.2.1",
"husky": "4.2.3",
"image-webpack-loader": "6.0.0",
"is-ci-cli": "2.0.0",
"jest": "25.1.0",
"lint-staged": "10.0.7",
"lint-staged": "10.0.8",
"markdown-toc": "^1.2.0",
"mini-css-extract-plugin": "0.9.0",
"mkdirp": "1.0.3",
"nopt": "4.0.1",
"postcss": "7.0.26",
"nopt": "4.0.3",
"postcss": "7.0.27",
"postcss-cli": "7.1.0",

@@ -147,9 +147,9 @@ "postcss-import": "12.0.1",

"prettier": "1.19.1",
"ts-jest": "25.2.0",
"ts-jest": "25.2.1",
"ts-loader": "6.2.1",
"ts-node": "8.6.2",
"typescript": "3.7.5",
"typescript": "3.8.3",
"url-loader": "3.0.0",
"webpack": "4.41.5",
"webpack-cli": "3.3.10",
"webpack": "4.42.0",
"webpack-cli": "3.3.11",
"webpack-dev-server": "3.10.3",

@@ -159,3 +159,5 @@ "whatwg-fetch": "3.0.0"

"resolutions": {
"lodash": "4.17.15"
"lodash": ">=4.17.15",
"minimist": ">=1.2.2",
"acorn": ">=7.1.1"
},

@@ -162,0 +164,0 @@ "license": "MIT",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc