on(t,n){var e=[];return this.by(t,function(t){e.push(t)},n),e},n.prototype.by=function(t,n,s){return"string"==typeof t?e.call(this,t,n,s):r.call(this,t,n,s),this},n.prototype.toString=function(){return this.start.format()+"/"+this.end.format()},n.prototype.valueOf=function(){return this.end-this.start},n.prototype.center=function(){var n=this.start+this.diff()/2;return t(n)},n.prototype.toDate=function(){return[this.start.toDate(),this.end.toDate()]},n.prototype.isSame=function(t){return this.start.isSame(t