!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;gc;c++)b=a[c],e.push(this.render_component(b));return e},a}(),e(a),c=function(){function b(){}return b.prototype.initialize=function(b,c,d,e){var f,g,h,j,l,m=this;for(this.calc=b,this.element=c,this.math=d,this.buttonsToRender=e,g=i.build({element:this.element,ui_elements:k}),f={},j=g.base10Digits({click:function(a){return m.calc.numberClick(a)}}),h=l=0;9>=l;h=++l)f[""+h]=j[h];return f.negative=g.negative({click:function(){return m.calc.negativeClick()}}),f.decimal=g.decimal({click:function(){return m.calc.decimalClick()}}),f.addition=g.addition({click:function(){return m.calc.additionClick()}}),f.multiplication=g.multiplication({click:function(){return m.calc.multiplicationClick()}}),f.division=g.division({click:function(){return m.calc.divisionClick()}}),f.subtraction=g.subtraction({click:function(){return m.calc.subtractionClick()}}),f.equals=g.equals({click:function(){return m.calc.equalsClick()}}),f.clear=g.clear({click:function(){return m.calc.clearClick()}}),f.square=g.exponent({value:"square",power:"2",click:function(){return m.calc.squareClick()}}),f.square_root=g.root({click:function(){return m.calc.squareRootClick()}}),f.exponent=g.caret({click:function(){return m.calc.exponentClick()}}),f.lparen=g.lparen({click:function(){return m.calc.lparenClick()}}),f.rparen=g.rparen({click:function(){return m.calc.rparenClick()}}),f.pi=g.pi({click:function(){return m.calc.piClick()}}),this.layout=a.build(f,this.buttonsToRender),this.render()},b.prototype.display=function(a){var b,c;return b=this.element.find("figure.jc--display"),b.html(a),b.scrollLeft(9999999),c=a.replace(/-/g,"minus").replace(/\(/g,"left paranthesis").replace(/\)/g,"right paranthesis").replace(/ˆ/g,"to the power of"),$("#statusMessageContent").html(c),$("#messageDescription").html("The following statements are used as status messages and can be ignored.")},b.prototype.render=function(){var a;return this.element.append("
"),a=this.element.find("div."+d),a.append("
0
"),this.layout.render(a)},b}(),e(c),j.widgets.Calculator=b}).call(this)},{}],3:[function(a,b,c){(function(){var a,b;b=thinkthroughmath,a=function(){function a(){}return a.prototype.initialize=function(a){return this.opts=null!=a?a:{},this.ui_elements=this.opts.ui_elements},a.prototype.base10Digits=function(a){var b,c,d,e=this;for(null==a&&(a={}),d=[],b=c=0;9>=c;b=++c)d.push(function(b){return e.button({value:""+b,"class":"jc--button jc--button-number",ariaLabel:""+b},a)}(b));return d},a.prototype.decimal=function(a){return this.button({value:".","class":"jc--button jc--button-decimal",ariaLabel:"Decimal Separator"},a)},a.prototype.negative=function(a){return this.button({value:"negative",label:"(–)","class":"jc--button jc--button-negative",ariaLabel:"Negative"},a)},a.prototype.addition=function(a){return this.button({value:"+","class":"jc--button jc--button-operation jc--button-add",ariaLabel:"Plus"},a)},a.prototype.subtraction=function(a){return this.button({value:"-",label:"−","class":"jc--button jc--button-operation jc--button-subtract",ariaLabel:"Minus"},a)},a.prototype.multiplication=function(a){return this.button({value:"*",label:"×","class":"jc--button jc--button-operation jc--button-multiply",ariaLabel:"Multiply by"},a)},a.prototype.division=function(a){return this.button({value:"/",label:"÷","class":"jc--button jc--button-operation jc--button-divide",ariaLabel:"Divide by"},a)},a.prototype.equals=function(a){return this.button({value:"=","class":"jc--button jc--button-operation jc--button-equal",ariaLabel:"Equals"},a)},a.prototype.lparen=function(a){return this.button({value:"(","class":"jc--button jc--button-other jc--button-rParen",ariaLabel:"Left parenthesis"},a)},a.prototype.rparen=function(a){return this.button({value:")","class":"jc--button jc--button-other jc--button-lParen",ariaLabel:"Right parenthesis"},a)},a.prototype.pi=function(a){return this.button({value:"pi",label:"π","class":"jc--button jc--button-other jc--button-pi",ariaLabel:"Pi"},a)},a.prototype.fraction=function(a){return this.button({value:"fraction",label:"a/b","class":"jc--button jc--button-other jc--button-fraction"},a)},a.prototype.caret=function(a){return this.button({value:"^","class":"jc--button jc--button-other jc--button-caret",ariaLabel:"Caret"},a)},a.prototype.exponent=function(a){var b,c;return b=a.base||"x",c=a.power||"y",this.button({value:"exponent",label:""+b+""+c+"","class":"jc--button jc--button-other jc--button-exponent jc--button-exponent-"+b+"to"+c,ariaLabel:"Square"},a)},a.prototype.root=function(a){var b,c;return b=a.degree?""+a.degree:"",c=a.radicand||"x",this.button({value:"root",label:b?""+b+"√"+c:"√"+c,"class":"jc--button jc--button-other jc--button-root jc--button-root-"+b+"of"+c,ariaLabel:"Square root"},a)},a.prototype.variables=function(a){var b,c;return c=function(){var c,d,e,f,g=this;for(e=a.variables,f=[],c=0,d=e.length;d>c;c++)b=e[c],f.push(function(b){return g.button({value:""+b.name,"class":"jc--button jc--button-variable",variable:b},a)}(b));return f}.call(this)},a.prototype.del=function(a){return this.button({value:"del",label:"Delete","class":"jc--button jc--button-del"},a)},a.prototype.clear=function(a){return this.button({value:"clear",label:"Clear","class":"jc--button jc--button-clear",ariaLabel:"Clear"},a)},a.prototype.button=function(a,b){return this.ui_elements.button_builder.build(_.extend({},a,this.opts,b||{}))},a}(),b.widgets.ButtonBuilder=b.class_mixer(a)}).call(this)},{}],4:[function(a,b,c){(function(){var a,b,c,d;d=thinkthroughmath,a=function(){function a(){}return a.prototype.initialize=function(a){this.opts=null!=a?a:{}},a.prototype.render=function(a){var b;return null==a&&(a={}),a=_.extend({},this.opts,a),b=$(""),b.on("click",function(){return a.click&&a.click(a)}),a.element.append(b)},a}(),d.class_mixer(a),b=function(){function a(){}return a.prototype.initialize=function(a){this.opts=null!=a?a:{}},a.prototype.render=function(a){return null==a&&(a={}),a=_.extend({},this.opts,a),this.figure=$("
"+(a["default"]||"0")+"
"),a.element.append(this.figure),this.figure},a.prototype.update=function(a){return this.figure.html(a)},a}(),d.class_mixer(b),c=function(){function c(){}return c.prototype.button_builder=a,c.prototype.math_display_builder=b,c}(),d.widgets.UIElements=d.class_mixer(c)}).call(this)},{}]},{},[1,2,3,4]);