function t(){this.__e={}}function s(){this.variabler={},this.funcs={},this.rulas=[]}t.prototype.__e={},t.prototype.emit=function(t){var s=this,e=[].slice.call(arguments,1);return(this.__e[t]||[]).map(function(t){t.map(function(t){t.apply(s,e)})}),this},t.prototype.on=function(t){var s=[].slice.call(arguments,1);return this.__e[t]=this.__e[t]||[],this.__e[t].push(s),this},function t(s,e){function r(){}r.prototype=e.prototype,s.prototype=new r}(s,t),s.prototype.addVariabelSet=function(t,s){return this.variabler[t]=s,this},s.prototype.addVariableTable=function(t,s){return this},s.prototype.addFunction=function(t,s){return this.funcs[t]=s,this},s.prototype.addClause=function(){for(var t,s,e,r,n,o,i=[].slice.call(arguments);i.length;)t=i.shift(),s=Object.keys(t),this.variabler[s[0]]&&(e=Object.keys(this.variabler).indexOf(s[0])),this.variabler[s[1]]&&(r=Object.keys(this.variabler).indexOf(s[1])),n=[],-1s.length||(t.length,s.length)}).shift()},s.prototype.checkPos=function(t,s,e,r){return this.current[this.sos[t]][r]==e},s.prototype.check=function(t,s,e,r){for(var n=0;n<5;n++)if(this.current[this.sos[t]][n]==e)return this.current[this.sos[s]][n]==r;return!1},s.prototype.checkLeft=function(t,s,e,r){for(var n=0;n<4;n++)if(this.current[this.sos[t]][n]==e)return this.current[this.sos[s]][n+1]==r;return!1},s.prototype.checkRight=function(t,s,e,r){for(var n=1;n<5;n++)if(this.current[this.sos[t]][n]==e)return this.current[this.sos[s]][n-1]==r;return!1},s.prototype.checkBoth=function(t,s,e,r){return this.checkLeft(t,s,e,r)||this.checkRight(t,s,e,r)},s.prototype.inner_solve=function(t){for(var s,e,r,n,o,i,c,u,a,l=this,p=(t.length,0),h=l.rulas.length,f=0,b=t.reduce(function(t,s){return s[1].length*t},1),v=0;v",l.sos[t[0][0]],l.sos[t[1][0]],e,n,o)}return!1},s.prototype.solve=function(){var t,s,e,r,n,o,i,c,u=this;for(u.current=this.build("House"),console.log(u.current),t=Object.keys(this.variabler),u.sos=t.map(function(t){return 0}),u.subspace=u.current.length,u.varspace=t.length,s=[],u.rulas.map(function(t){console.log(t),t[1]==t[2]&&s.push(t)}),u.sos=u.sos.map(function(t){return 0}),console.log(s),e=[],r=0;r