var colors=require("./colors"),styles=require("./styles");module.exports=function(){var c=function(f,g){String.prototype.__defineGetter__(f,g)};var b=function b(f,g){return function(){var j=this.split(""),h=0;j=j.map(f);return j.join("")}};var d=function d(g,f){return styles[f].open+g+styles[f].close};c("strip",function(){return colors.strip(this)});c("stripColors",function(){return colors.strip(this)});c("trap",function(){return colors.trap(this)});c("zalgo",function(){return colors.zalgo(this)});c("zebra",function(){return colors.zebra(this)});c("rainbow",function(){return colors.rainbow(this)});c("random",function(){return colors.random(this)});c("america",function(){return colors.america(this)});var a=Object.keys(colors.styles);a.forEach(function(f){c(f,function(){return d(this,f)})});function e(g){var f=["__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","charAt","constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf","charCodeAt","indexOf","lastIndexof","length","localeCompare","match","replace","search","slice","split","substring","toLocaleLowerCase","toLocaleUpperCase","toLowerCase","toUpperCase","trim","trimLeft","trimRight"];Object.keys(g).forEach(function(h){if(f.indexOf(h)!==-1){console.log("warn: ".red+("String.prototype"+h).magenta+" is probably something you don't want to override. Ignoring style name")}else{if(typeof(g[h])==="string"){colors[h]=colors[g[h]];c(h,function(){return colors[g[h]](this)})}else{c(h,function(){var i=this;for(var j=0;j<g[h].length;j++){i=exports[g[h][j]](i)}return i})}}})}colors.setTheme=function(g){if(typeof g==="string"){try{colors.themes[g]=require(g);e(colors.themes[g]);return colors.themes[g]}catch(f){console.log(f);return f}}else{e(g)}}};