text: /*! dynamic-time-warping v1.0.0 | MIT */
  !function(){"use strict";function a(a,b,c){var d,e,f,g=a,h=b,i=c,j=function(){if(void 0!==d)return d;e=[];for(var a=0;a<g.length;a++){e[a]=[];for(var b=0;b<h.length;b++){var c=1/0;a>0?(c=Math.min(c,e[a-1][b]),b>0&&(c=Math.min(c,e[a-1][b-1]),c=Math.min(c,e[a][b-1]))):c=b>0?Math.min(c,e[a][b-1]):0,e[a][b]=c+i(g[a],h[b])}}return e[g.length-1][h.length-1]};this.getDistance=j;var k=function(){if(void 0!==f)return f;void 0===e&&j();var a=g.length-1,b=h.length-1;for(f=[[a,b]];a>0||b>0;)a>0?b>0?e[a-1][b]<e[a-1][b-1]?e[a-1][b]<e[a][b-1]?(f.push([a-1,b]),a--):(f.push([a,b-1]),b--):e[a-1][b-1]<e[a][b-1]?(f.push([a-1,b-1]),a--,b--):(f.push([a,b-1]),b--):(f.push([a-1,b]),a--):(f.push([a,b-1]),b--);return f=f.reverse()};this.getPath=k}var b="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||this;"undefined"==typeof exports||exports.nodeType?b.DynamicTimeWarping=a:("undefined"!=typeof module&&!module.nodeType&&module.exports&&(exports=module.exports=a),exports.DynamicTimeWarping=a),"function"==typeof define&&define.amd&&define("dynamic-time-warping",[],function(){return a})}();