(function(){my={};my.Class=function(){var c=arguments.length,a=arguments[c-1],b=c>1?arguments[0]:null,e=c>2,d,g;a.constructor===Object?d=function(){}:(d=a.constructor,delete a.constructor);if(b)g=function(){},g.prototype=b.prototype,d.prototype=new g,d.prototype.constructor=d,d.Super=b,f(d,b,!1);if(e)for(b=1;b<c-1;b++)f(d.prototype,arguments[b].prototype,!1);h(d,a);return d};var h=my.extendClass=function(c,a,b){a.STATIC&&(f(c,a.STATIC,b),delete a.STATIC);f(c.prototype,a,b)},f=function(c,a,b){var e;
if(b===!1)for(e in a)e in c||(c[e]=a[e]);else{for(e in a)c[e]=a[e];if(a.toString!==Object.prototype.toString)c.toString=a.toString}}})();
