(function(b,f){"function"===typeof define&&define.amd?define(f):b.Class=f()})(this,function(){var b=!1,f=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/,e=function(){};e.extend=function(c){function d(){!b&&this.init&&this.init.apply(this,arguments)}var e=this.prototype;b=!0;var g=new this;b=!1;for(var a in c)g[a]="function"==typeof c[a]&&"function"==typeof e[a]&&f.test(c[a])?function(a,b){return function(){var c=this._super;this._super=e[a];var d=b.apply(this,arguments);this._super=c;return d}}(a,c[a]): c[a];d.prototype=g;d.constructor=d;d.extend=arguments.callee;return d};return e});