diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..53d838a --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +lts/gallium diff --git a/demo/main.bundle.js b/demo/main.bundle.js index 589c691..4de2125 100644 --- a/demo/main.bundle.js +++ b/demo/main.bundle.js @@ -1,15 +1,15 @@ -var STTdiff=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){"use strict";t.exports.makeItArrayIfItsNot=function(t){return"[object Array]"!==Object.prototype.toString.call(t)?[t]:t},t.exports.findIntervalLeftBorderIndex=function(t,e){if(te[e.length-1])return e.length-1;for(var n,r=0,o=e.length-1;o-r!=1;)t>=e[n=r+Math.floor((o-r)/2)]?r=n:o=n;return r}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(3),o=n(13),i=n(15),u=n(16),s=n(17),a=n(23),c=n(24).diffsListToHtml;function l(t){return function(t){return t.trim().replace(/\n\n/g," ").replace(/\n/g," ")}(t).split(" ")}function f(t,e){return function(t,e){var n=t.map((function(t){return o(t.text)})),i=e.map((function(t){return o(t)}));return new r.SequenceMatcher(null,n,i).getOpcodes()}(t,l(e))}function p(t,e){var n=t.words,r=f(n,e),o=l(e);return s(r,n,o)}t.exports=p,t.exports.alignSTT=p,t.exports.diffsList=function(t,e){var n=t.words,r=f(n,e),o=l(e);return u(r,n,o)},t.exports.diffsCount=function(t,e){var n=t.words,r=f(n,e),o=l(e);return i(r,n,o)},t.exports.calculateWordDuration=a,t.exports.diffsListToHtml=c,t.exports.diffsListAsHtml=function(t,e,n){var r=t.words,o=f(r,e),i=l(e),s=u(o,r,i);return c(s,n)}},function(t,e,n){t.exports=n(4)},function(t,e,n){(function(){var t,r,o,i,u,s,a,c,l,f,p,h,d,g,y,v,m,b,w,x,j,E=[].indexOf||function(t){for(var e=0,n=this.length;es;n=0<=s?++i:--i){if(t[n]e[n])return 1}return r-o},j=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},y=function(t){var e,n;for(e=0,n=t.length;e=200)for(n in s=c(u/100)+1,e)e[n].length>s&&(a[n]=!0,delete e[n]);return this.isbjunk=function(t){return j(i,t)},this.isbpopular=function(t){return j(a,t)}},t.prototype.findLongestMatch=function(t,e,n,r){var o,i,u,s,a,c,l,f,p,h,d,g,y,v,m,b,w,x,E,O,S;for(o=(b=[this.a,this.b,this.b2j,this.isbjunk])[0],i=b[1],u=b[2],f=b[3],s=(w=[t,n,0])[0],a=w[1],c=w[2],h={},l=y=t;t<=e?ye;l=t<=e?++y:--y){for(g={},v=0,m=(x=j(u,o[l])?u[o[l]]:[]).length;v=r)break;(d=g[p]=(h[p-1]||0)+1)>c&&(s=(E=[l-d+1,p-d+1,d])[0],a=E[1],c=E[2])}h=g}for(;s>t&&a>n&&!f(i[a-1])&&o[s-1]===i[a-1];)s=(O=[s-1,a-1,c+1])[0],a=O[1],c=O[2];for(;s+ct&&a>n&&f(i[a-1])&&o[s-1]===i[a-1];)s=(S=[s-1,a-1,c+1])[0],a=S[1],c=S[2];for(;s+ca&&(n.push([c,o,p(i,o+t),u,p(s,u+t)]),r.push(n),n=[],o=(v=[f(o,i-t),f(u,s-t)])[0],u=v[1]),n.push([c,o,i,u,s]);return!n.length||1===n.length&&"equal"===n[0][0]||r.push(n),r},t.prototype.ratio=function(){var t,e,n,r;for(t=0,e=0,n=(r=this.getMatchingBlocks()).length;e0&&r++;return m(r,this.a.length+this.b.length)},t.prototype.realQuickRatio=function(){var t,e,n;return n=[this.a.length,this.b.length],m(p(t=n[0],e=n[1]),t+e)},t}(),l=function(t,e,n,o){var i,s,a,c,l,f,p,h,d;if(null==n&&(n=3),null==o&&(o=.6),!(n>0))throw new Error("n must be > 0: ("+n+")");if(!(0<=o&&o<=1))throw new Error("cutoff must be in [0.0, 1.0]: ("+o+")");for(i=[],(s=new u).setSeq2(t),c=0,f=e.length;c=o&&s.quickRatio()>=o&&s.ratio()>=o&&i.push([s.ratio(),a]);for(d=[],l=0,p=(i=r.nlargest(i,n,v)).length;lr;o=n<=r?++i:--i)u.push(t+" "+e[o]);return u},t.prototype._plainReplace=function(t,e,n,r,o,i){var u,a,c,l,f,p,h,d,g,y;for(s(ei;O=o<=i?++_:--_)for(y=r[O],b.setSeq2(y),E=I=e;e<=n?In;E=e<=n?++I:--I)(a=t[E])!==y?(b.setSeq1(a),b.realQuickRatio()>h&&b.quickRatio()>h&&b.ratio()>h&&(h=(Q=[b.ratio(),E,O])[0],d=Q[1],g=Q[2])):null===x&&(x=(G=[E,O])[0],j=G[1]);if(h=0},x=function(t,e){var n,r;return n=t+1,1===(r=e-t)?""+n:(r||n--,n+","+r)},g=function(t,e,n){var r,o,i,s,a,c,l,f,p,h,d,g,y,v,m,b,w,j,E,O,S,T,k,q,A,_,I,M,B,L,P,R,z,D,N,C,F;for(null==(a=(P=null!=n?n:{}).fromfile)&&(a=""),null==(E=P.tofile)&&(E=""),null==(c=P.fromfiledate)&&(c=""),null==(O=P.tofiledate)&&(O=""),null==P.n&&3,null==(m=P.lineterm)&&(m="\n"),v=[],b=!1,S=0,A=(R=new u(null,t,e).getGroupedOpcodes()).length;S=0&&r.push(n.slice(2));return r},e._arrayCmp=v,e.SequenceMatcher=u,e.getCloseMatches=l,e._countLeading=b,e.Differ=t,e.IS_LINE_JUNK=i,e.IS_CHARACTER_JUNK=o,e._formatRangeUnified=x,e.unifiedDiff=g,e._formatRangeContext=w,e.contextDiff=a,e.ndiff=h,e.restore=d}).call(this)},function(t,e,n){t.exports=n(6)},function(t,e,n){var r,o,i;(function(){var n,u,s,a,c,l,f,p,h,d,g,y,v,m,b;s=Math.floor,d=Math.min,u=function(t,e){return te?1:0},h=function(t,e,n,r,o){var i;if(null==n&&(n=0),null==o&&(o=u),n<0)throw new Error("lo must be non-negative");for(null==r&&(r=t.length);nn;0<=n?e++:e--)c.push(e);return c}.apply(this).reverse()).length;rg;0<=g?++l:--l)y.push(c(t,n));return y},m=function(t,e,n,r){var o,i,s;for(null==r&&(r=u),o=t[n];n>e&&r(o,i=t[s=n-1>>1])<0;)t[n]=i,n=s;return t[n]=o},b=function(t,e,n){var r,o,i,s,a;for(null==n&&(n=u),o=t.length,a=e,i=t[e],r=2*e+1;re[e.length-1])return e.length-1;for(var n,r=0,o=e.length-1;o-r!=1;)t>=e[n=r+Math.floor((o-r)/2)]?r=n:o=n;return r}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);es;n=0<=s?++i:--i){if(t[n]e[n])return 1}return r-o},j=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},y=function(t){var e,n;for(e=0,n=t.length;e=200)for(n in s=c(u/100)+1,e)e[n].length>s&&(a[n]=!0,delete e[n]);return this.isbjunk=function(t){return j(i,t)},this.isbpopular=function(t){return j(a,t)}},t.prototype.findLongestMatch=function(t,e,n,r){var o,i,u,s,a,c,l,f,p,h,d,g,y,v,m,b,w,x,O,E,S;for(o=(b=[this.a,this.b,this.b2j,this.isbjunk])[0],i=b[1],u=b[2],f=b[3],s=(w=[t,n,0])[0],a=w[1],c=w[2],h={},l=y=t;t<=e?ye;l=t<=e?++y:--y){for(g={},v=0,m=(x=j(u,o[l])?u[o[l]]:[]).length;v=r)break;(d=g[p]=(h[p-1]||0)+1)>c&&(s=(O=[l-d+1,p-d+1,d])[0],a=O[1],c=O[2])}h=g}for(;s>t&&a>n&&!f(i[a-1])&&o[s-1]===i[a-1];)s=(E=[s-1,a-1,c+1])[0],a=E[1],c=E[2];for(;s+ct&&a>n&&f(i[a-1])&&o[s-1]===i[a-1];)s=(S=[s-1,a-1,c+1])[0],a=S[1],c=S[2];for(;s+ca&&(n.push([c,o,p(i,o+t),u,p(s,u+t)]),r.push(n),n=[],o=(v=[f(o,i-t),f(u,s-t)])[0],u=v[1]),n.push([c,o,i,u,s]);return!n.length||1===n.length&&"equal"===n[0][0]||r.push(n),r},t.prototype.ratio=function(){var t,e,n,r;for(t=0,e=0,n=(r=this.getMatchingBlocks()).length;e0&&r++;return m(r,this.a.length+this.b.length)},t.prototype.realQuickRatio=function(){var t,e,n;return n=[this.a.length,this.b.length],m(p(t=n[0],e=n[1]),t+e)},t}(),l=function(t,e,n,o){var i,s,a,c,l,f,p,h,d;if(null==n&&(n=3),null==o&&(o=.6),!(n>0))throw new Error("n must be > 0: ("+n+")");if(!(0<=o&&o<=1))throw new Error("cutoff must be in [0.0, 1.0]: ("+o+")");for(i=[],(s=new u).setSeq2(t),c=0,f=e.length;c=o&&s.quickRatio()>=o&&s.ratio()>=o&&i.push([s.ratio(),a]);for(d=[],l=0,p=(i=r.nlargest(i,n,v)).length;lr;o=n<=r?++i:--i)u.push(t+" "+e[o]);return u},t.prototype._plainReplace=function(t,e,n,r,o,i){var u,a,c,l,f,p,h,d,g,y;for(s(ei;E=o<=i?++_:--_)for(y=r[E],b.setSeq2(y),O=I=e;e<=n?In;O=e<=n?++I:--I)(a=t[O])!==y?(b.setSeq1(a),b.realQuickRatio()>h&&b.quickRatio()>h&&b.ratio()>h&&(h=(K=[b.ratio(),O,E])[0],d=K[1],g=K[2])):null===x&&(x=(G=[O,E])[0],j=G[1]);if(h=0},x=function(t,e){var n,r;return n=t+1,1===(r=e-t)?""+n:(r||n--,n+","+r)},g=function(t,e,n){var r,o,i,s,a,c,l,f,p,h,d,g,y,v,m,b,w,j,O,E,S,T,k,q,A,_,I,L,M,B,P,R,z,N,D,C,F;for(null==(a=(P=null!=n?n:{}).fromfile)&&(a=""),null==(O=P.tofile)&&(O=""),null==(c=P.fromfiledate)&&(c=""),null==(E=P.tofiledate)&&(E=""),null==P.n&&3,null==(m=P.lineterm)&&(m="\n"),v=[],b=!1,S=0,A=(R=new u(null,t,e).getGroupedOpcodes()).length;S=0&&r.push(n.slice(2));return r},e._arrayCmp=v,e.SequenceMatcher=u,e.getCloseMatches=l,e._countLeading=b,e.Differ=t,e.IS_LINE_JUNK=i,e.IS_CHARACTER_JUNK=o,e._formatRangeUnified=x,e.unifiedDiff=g,e._formatRangeContext=w,e.contextDiff=a,e.ndiff=h,e.restore=d}).call(this)},function(t,e,n){t.exports=n(6)},function(t,e,n){var r,o,i;(function(){var n,u,s,a,c,l,f,p,h,d,g,y,v,m,b;s=Math.floor,d=Math.min,u=function(t,e){return te?1:0},h=function(t,e,n,r,o){var i;if(null==n&&(n=0),null==o&&(o=u),n<0)throw new Error("lo must be non-negative");for(null==r&&(r=t.length);nn;0<=n?e++:e--)c.push(e);return c}.apply(this).reverse()).length;rg;0<=g?++l:--l)y.push(c(t,n));return y},m=function(t,e,n,r){var o,i,s;for(null==r&&(r=u),o=t[n];n>e&&r(o,i=t[s=n-1>>1])<0;)t[n]=i,n=s;return t[n]=o},b=function(t,e,n){var r,o,i,s,a;for(null==n&&(n=u),o=t.length,a=e,i=t[e],r=2*e+1;r * @license MIT - */function o(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o=0;c--)if(l[c]!==f[c])return!1;for(c=l.length-1;c>=0;c--)if(s=l[c],!b(t[s],e[s],n,r))return!1;return!0}(t,e,n,r))}return n?t===e:t==e}function w(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function x(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function j(t,e,n,r){var o;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),o=function(t){var e;try{t()}catch(t){e=t}return e}(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!o&&v(o,n,"Missing expected exception"+r);var i="string"==typeof r,s=!t&&o&&!n;if((!t&&u.isError(o)&&i&&x(o,n)||s)&&v(o,n,"Got unwanted exception"+r),t&&o&&n&&!x(o,n)||!t&&o)throw o}p.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return g(y(t.actual),128)+" "+t.operator+" "+g(y(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,o=d(e),i=r.indexOf("\n"+o);if(i>=0){var u=r.indexOf("\n",i+1);r=r.substring(u+1)}this.stack=r}}},u.inherits(p.AssertionError,Error),p.fail=v,p.ok=m,p.equal=function(t,e,n){t!=e&&v(t,e,n,"==",p.equal)},p.notEqual=function(t,e,n){t==e&&v(t,e,n,"!=",p.notEqual)},p.deepEqual=function(t,e,n){b(t,e,!1)||v(t,e,n,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(t,e,n){b(t,e,!0)||v(t,e,n,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(t,e,n){b(t,e,!1)&&v(t,e,n,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function t(e,n,r){b(e,n,!0)&&v(e,n,r,"notDeepStrictEqual",t)},p.strictEqual=function(t,e,n){t!==e&&v(t,e,n,"===",p.strictEqual)},p.notStrictEqual=function(t,e,n){t===e&&v(t,e,n,"!==",p.notStrictEqual)},p.throws=function(t,e,n){j(!0,t,e,n)},p.doesNotThrow=function(t,e,n){j(!1,t,e,n)},p.ifError=function(t){if(t)throw t},p.strict=r((function t(e,n){e||v(e,!0,n,"==",t)}),p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var E=Object.keys||function(t){var e=[];for(var n in t)s.call(t,n)&&e.push(n);return e}}).call(this,n(1))},function(t,e,n){"use strict"; + */function o(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o=0;c--)if(l[c]!==f[c])return!1;for(c=l.length-1;c>=0;c--)if(s=l[c],!b(t[s],e[s],n,r))return!1;return!0}(t,e,n,r))}return n?t===e:t==e}function w(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function x(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function j(t,e,n,r){var o;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),o=function(t){var e;try{t()}catch(t){e=t}return e}(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!o&&v(o,n,"Missing expected exception"+r);var i="string"==typeof r,s=!t&&o&&!n;if((!t&&u.isError(o)&&i&&x(o,n)||s)&&v(o,n,"Got unwanted exception"+r),t&&o&&n&&!x(o,n)||!t&&o)throw o}p.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return g(y(t.actual),128)+" "+t.operator+" "+g(y(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,o=d(e),i=r.indexOf("\n"+o);if(i>=0){var u=r.indexOf("\n",i+1);r=r.substring(u+1)}this.stack=r}}},u.inherits(p.AssertionError,Error),p.fail=v,p.ok=m,p.equal=function(t,e,n){t!=e&&v(t,e,n,"==",p.equal)},p.notEqual=function(t,e,n){t==e&&v(t,e,n,"!=",p.notEqual)},p.deepEqual=function(t,e,n){b(t,e,!1)||v(t,e,n,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(t,e,n){b(t,e,!0)||v(t,e,n,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(t,e,n){b(t,e,!1)&&v(t,e,n,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function t(e,n,r){b(e,n,!0)&&v(e,n,r,"notDeepStrictEqual",t)},p.strictEqual=function(t,e,n){t!==e&&v(t,e,n,"===",p.strictEqual)},p.notStrictEqual=function(t,e,n){t===e&&v(t,e,n,"!==",p.notStrictEqual)},p.throws=function(t,e,n){j(!0,t,e,n)},p.doesNotThrow=function(t,e,n){j(!1,t,e,n)},p.ifError=function(t){if(t)throw t},p.strict=r((function t(e,n){e||v(e,!0,n,"==",t)}),p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var O=Object.keys||function(t){var e=[];for(var n in t)s.call(t,n)&&e.push(n);return e}}).call(this,n(1))},function(t,e,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT -*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function u(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,a=u(t),c=1;c=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),a=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),d(n)?r.showHidden=n:n&&e._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),l(r,t,r.depth)}function a(t,e){var n=s.styles[e];return n?"["+s.colors[n][0]+"m"+t+"["+s.colors[n][1]+"m":t}function c(t,e){return t}function l(t,n,r){if(t.customInspect&&n&&E(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,t);return v(o)||(o=l(t,o,r)),o}var i=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(v(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(y(e))return t.stylize(""+e,"number");if(d(e))return t.stylize(""+e,"boolean");if(g(e))return t.stylize("null","null")}(t,n);if(i)return i;var u=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(u);if(t.showHidden&&(u=Object.getOwnPropertyNames(n)),j(n)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return f(n);if(0===u.length){if(E(n)){var a=n.name?": "+n.name:"";return t.stylize("[Function"+a+"]","special")}if(b(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return t.stylize(Date.prototype.toString.call(n),"date");if(j(n))return f(n)}var c,w="",O=!1,S=["{","}"];(h(n)&&(O=!0,S=["[","]"]),E(n))&&(w=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(w=" "+RegExp.prototype.toString.call(n)),x(n)&&(w=" "+Date.prototype.toUTCString.call(n)),j(n)&&(w=" "+f(n)),0!==u.length||O&&0!=n.length?r<0?b(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=O?function(t,e,n,r,o){for(var i=[],u=0,s=e.length;u=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(c,w,S)):S[0]+w+S[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,r,o,i){var u,s,a;if((a=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?s=a.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):a.set&&(s=t.stylize("[Setter]","special")),q(r,o)||(u="["+o+"]"),s||(t.seen.indexOf(a.value)<0?(s=g(n)?l(t,a.value,null):l(t,a.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),m(u)){if(i&&o.match(/^\d+$/))return s;(u=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=t.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=t.stylize(u,"string"))}return u+": "+s}function h(t){return Array.isArray(t)}function d(t){return"boolean"==typeof t}function g(t){return null===t}function y(t){return"number"==typeof t}function v(t){return"string"==typeof t}function m(t){return void 0===t}function b(t){return w(t)&&"[object RegExp]"===O(t)}function w(t){return"object"==typeof t&&null!==t}function x(t){return w(t)&&"[object Date]"===O(t)}function j(t){return w(t)&&("[object Error]"===O(t)||t instanceof Error)}function E(t){return"function"==typeof t}function O(t){return Object.prototype.toString.call(t)}function S(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(m(i)&&(i=t.env.NODE_DEBUG||""),n=n.toUpperCase(),!u[n])if(new RegExp("\\b"+n+"\\b","i").test(i)){var r=t.pid;u[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,r,t)}}else u[n]=function(){};return u[n]},e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=h,e.isBoolean=d,e.isNull=g,e.isNullOrUndefined=function(t){return null==t},e.isNumber=y,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=m,e.isRegExp=b,e.isObject=w,e.isDate=x,e.isError=j,e.isFunction=E,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(11);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(){var t=new Date,e=[S(t.getHours()),S(t.getMinutes()),S(t.getSeconds())].join(":");return[t.getDate(),T[t.getMonth()],e].join(" ")}function q(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",k(),e.format.apply(e,arguments))},e.inherits=n(12),e._extend=function(t,e){if(!e||!w(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var A="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function _(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(A&&t[A]){var e;if("function"!=typeof(e=t[A]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,A,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),o=[],i=0;i1)for(var n=1;n=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),a=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),d(n)?r.showHidden=n:n&&e._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),l(r,t,r.depth)}function a(t,e){var n=s.styles[e];return n?"["+s.colors[n][0]+"m"+t+"["+s.colors[n][1]+"m":t}function c(t,e){return t}function l(t,n,r){if(t.customInspect&&n&&O(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,t);return v(o)||(o=l(t,o,r)),o}var i=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(v(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(y(e))return t.stylize(""+e,"number");if(d(e))return t.stylize(""+e,"boolean");if(g(e))return t.stylize("null","null")}(t,n);if(i)return i;var u=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(u);if(t.showHidden&&(u=Object.getOwnPropertyNames(n)),j(n)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return f(n);if(0===u.length){if(O(n)){var a=n.name?": "+n.name:"";return t.stylize("[Function"+a+"]","special")}if(b(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return t.stylize(Date.prototype.toString.call(n),"date");if(j(n))return f(n)}var c,w="",E=!1,S=["{","}"];(h(n)&&(E=!0,S=["[","]"]),O(n))&&(w=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(w=" "+RegExp.prototype.toString.call(n)),x(n)&&(w=" "+Date.prototype.toUTCString.call(n)),j(n)&&(w=" "+f(n)),0!==u.length||E&&0!=n.length?r<0?b(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=E?function(t,e,n,r,o){for(var i=[],u=0,s=e.length;u=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(c,w,S)):S[0]+w+S[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,r,o,i){var u,s,a;if((a=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?s=a.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):a.set&&(s=t.stylize("[Setter]","special")),q(r,o)||(u="["+o+"]"),s||(t.seen.indexOf(a.value)<0?(s=g(n)?l(t,a.value,null):l(t,a.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),m(u)){if(i&&o.match(/^\d+$/))return s;(u=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=t.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=t.stylize(u,"string"))}return u+": "+s}function h(t){return Array.isArray(t)}function d(t){return"boolean"==typeof t}function g(t){return null===t}function y(t){return"number"==typeof t}function v(t){return"string"==typeof t}function m(t){return void 0===t}function b(t){return w(t)&&"[object RegExp]"===E(t)}function w(t){return"object"==typeof t&&null!==t}function x(t){return w(t)&&"[object Date]"===E(t)}function j(t){return w(t)&&("[object Error]"===E(t)||t instanceof Error)}function O(t){return"function"==typeof t}function E(t){return Object.prototype.toString.call(t)}function S(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(m(i)&&(i=t.env.NODE_DEBUG||""),n=n.toUpperCase(),!u[n])if(new RegExp("\\b"+n+"\\b","i").test(i)){var r=t.pid;u[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,r,t)}}else u[n]=function(){};return u[n]},e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=h,e.isBoolean=d,e.isNull=g,e.isNullOrUndefined=function(t){return null==t},e.isNumber=y,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=m,e.isRegExp=b,e.isObject=w,e.isDate=x,e.isError=j,e.isFunction=O,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(11);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(){var t=new Date,e=[S(t.getHours()),S(t.getMinutes()),S(t.getSeconds())].join(":");return[t.getDate(),T[t.getMonth()],e].join(" ")}function q(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",k(),e.format.apply(e,arguments))},e.inherits=n(12),e._extend=function(t,e){if(!e||!w(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var A="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function _(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(A&&t[A]){var e;if("function"!=typeof(e=t[A]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,A,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),o=[],i=0;i1)for(var n=1;no.start&&(t.start=r.end),t}return t}))}(e=e.map((function(t,e){return"start"in t||(t.start=f[e]),"end"in t||(t.end=p[e]),t})))}(i)}},function(t,e,n){"use strict";t.exports.polynomial=n(19),t.exports.linear=n(20),t.exports.linearRegression=n(21),t.exports.step=n(22)},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e,n){var o=[];return(t=r.makeItArrayIfItsNot(t)).forEach((function(t){o.push(function(t,e,n){for(var r=[n],o=1;o").concat(t,"")}function o(t,e){return"").concat(t,"")}return n.push(''),n.push("\n Equal: Some equal text\n
\n Inserted (by STT): an inserted word\n
\n Deleted (not recognised by STT):a deleted word\n
\n Replaced:\n Some\n base\n text\n line\n \n \n replaced\n by\n stt\n hypothesis\n \n
\n
\n
\n "),e&&n.push('')),n.push("\n