text: (function (window, angular, undefined) {
    'use strict';
  
    angular.$$minErr = angular.$$minErr || function minErr(module) {
      return function () {
        var code = arguments[0],
          prefix = '[' + (module ? module + ':' : '') + code + '] ',
          template = arguments[1],
          templateArgs = arguments,
          stringify = function (obj) {
            if (typeof obj === 'function') {
              return obj.toString().replace(/ \{[\s\S]*$/, '');
            } else if (typeof obj === 'undefined') {
              return 'undefined';
            } else if (typeof obj !== 'string') {
              return JSON.stringify(obj);
            }
            return obj;
          },
          message, i;
  
        message = prefix + template.replace(/\{\d+\}/g, function (match) {
          var index = +match.slice(1, -1), arg;
  
          if (index + 2 < templateArgs.length) {
            arg = templateArgs[index + 2];
            if (typeof arg === 'function') {
              return arg.toString().replace(/ ?\{[\s\S]*$/, '');
            } else if (typeof arg === 'undefined') {
              return 'undefined';
            } else if (typeof arg !== 'string') {
              return angular.toJson(arg);
            }
            return arg;
          }
          return match;
        });
  
        message = message + '\nhttp://errors.angularjs.org/' + angular.version.full + '/' +
          (module ? module + '/' : '') + code;
        for (i = 2; i < arguments.length; i++) {
          message = message + (i == 2 ? '?' : '&') + 'p' + (i - 2) + '=' +
            encodeURIComponent(stringify(arguments[i]));
        }
  
        return new Error(message);
      };
    };
  
  
    angular.module('angular-data.DSBinaryHeap', [])
      .provider('DSBinaryHeap', require('./DSBinaryHeap').DSBinaryHeapProvider);
  
    /**
     * @doc overview
     * @id angular-cache
     * @name Overview
     * @description
     * __Version:__ <%= pkg.version %>
     *
     * ## Install
     *
     * #### Bower
     * ```text
     * bower install angular-cache
     * ```
     *
     * Load `dist/angular-cache.js` or `dist/angular-cache.min.js` onto your web page after Angular.js.
     *
     * #### Npm
     * ```text
     * npm install angular-cache
     * ```
     *
     * Load `dist/angular-cache.js` or `dist/angular-cache.min.js` onto your web page after Angular.js. Angular-cache is
     * also consumable by Browserify and you should be able to `require('angular-cache')`. The `main` file is `src/index.js`.
     *
     * #### Manual download
     * Download angular-cache.<%= pkg.version %>.js from the [Releases](https://github.com/jmdobry/angular-cache/releases)
     * section of the angular-cache GitHub project.
     *
     * ## Load into Angular
     * Your Angular app must depend on the module `"angular-data.DSCacheFactory"` in order to use angular-cache. Loading
     * angular-cache into your app allows you to inject the following:
     *
     * - `DSCacheFactory`
     * - `DSBinaryHeap`
     *
     * [DSCacheFactory](/documentation/api/api/DSCacheFactory) is a factory function that produces instances of
     * [DSCache](/documentation/api/api/DSCache), which is API compatible with caches produced by Angular's
     * [$cacheFactory](http://docs.angularjs.org/api/ng/service/$cacheFactory).
     *
     * [DSBinaryHeap](/documentation/api/api/DSBinaryHeap) is a priority queue implemented as a Binary Heap.
     *
     * If you want to use angular-cache with [angular-data](/documentation/api/api/angular-data), then angular-cache must
     * be loaded before angular-data.
     */
    angular.module('angular-data.DSCacheFactory', ['ng', 'angular-data.DSBinaryHeap'])
      .provider('DSCacheFactory', require('./DSCacheFactory'));
  
  })(window, window.angular);
  