(function(){u8.Base.Ranges=function(){this.date=new RangeType({})};$.extend(u8.Base.Ranges,{createType:function(n){return new u8.Base.Ranges.RangeType(n||{})}});u8.Base.Ranges.RangeType=function(e){var t=e.start||"start";var r=e.end||"end";if(typeof t!="function"){t=u(t)}if(typeof r!="function"){r=u(r)}function u(n){return function(e,t){if(arguments.length==1){return e&&e[n]}e[n]=t;return t}}var i=e.cmp||n;function f(n,t){var r=e.create&&e.create()||{};v(r,n);h(r,t);return r}function c(){var n=Array.prototype.slice.call(arguments,0).filter(w);if(!n.length){return undefined}n=[].concat(n);n.sort(o);var e=null,t=[];for(var r=0;r<n.length;r++){var u=n[r];if(e){if(p(e,u)){continue}if(g(e,u)||s(e,u)){t.pop();u=l(e,u)}}t.push(u);e=u}return t}function o(n,e){return i(y(n),y(e))||i(m(n),m(e))}function a(n,e){return R(y(n),y(e))&&R(m(n),m(e))}function l(){var n=Array.prototype.slice.call(arguments,0).filter(w);if(!n.length){return undefined}return f(B(n.map(y)),T(n.map(m)))}function s(n,e){return R(m(n),y(e))||R(y(n),m(e))}function p(n,e){return i(y(n),y(e))<=0&&i(m(e),m(n))<=0}function g(n,e){return i(m(e),y(n))>0&&i(y(e),m(n))<0}function d(n,e,t){if(arguments.length==3){if(!n){n=f()}if(typeof e=="function"){e(n,t)}else{n[e]=t}return t}if(typeof e=="function"){return e(n)}return n&&n[e]}function y(n){return d(n,t)}function v(n,e){return d(n,t,e)}function m(n){return d(n,r)}function h(n,e){return d(n,r,e)}function R(n,e){return i(n,e)==0}function B(n){return n.reduce(function(n,e){return n===null?e:i(e,n)<0?e:n},null)}function T(n){return n.reduce(function(n,e){return n===null?e:i(e,n)>0?e:n},null)}function w(n){return!!n}return{cmp:o,flatten:c,union:l,isInside:p,isOverlapping:g,equals:a}};var n=u8._.cmp([Boolean]).disjunct(u8._.compare)})();