e.clone=function(){return t().range(this.start,this.end)},n.prototype.contains=function(t,e){var r=this.start,s=this.end;return t instanceof n?r<=t.start&&(s>t.end||s.isSame(t.end)&&!e):t>=r&&(s>t||s.isSame(t)&&!e)},n.prototype.overlaps=function(t){return null!==this.intersect(t)},n.prototype.intersect=function(t){var e=this.start,r=this.end;return e<=t.start&&t.start<r&&r<t.end?new n(t.start,r):t.start<e&&e<t.end&&t.end<=r?new n(e,t.end):t.start<e&&r>=e&&r<t.end?this:e<=t.start&&t.start<=t.end&&t.end<=r?t: