var/*istanbul ignore end*/d=arguments.length<=2||void0===arguments[2]?{}:arguments[2];if("string"==typeofb&&(b=/*istanbul ignore start*/(0,g.parsePatch)(b)),Array.isArray(b)){if(b.length>1)thrownewError("applyPatch only works with a single input.");b=b[0]}
// Search best fit offsets for each hunk based on the previous ones
g||1!==d.newLines||(d.newLines=0),i||1!==d.oldLines||(d.oldLines=0),e.strict){if(g!==d.newLines)thrownewError("Added line count did not match for hunk at line "+(a+1));if(i!==d.oldLines)thrownewError("Removed line count did not match for hunk at line "+(a+1))}returnd}for(/*istanbul ignore start*/