(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
$.extend(KhanUtil,{initSliceClone:function(e){KhanUtil.pieces=1,KhanUtil.times={};for(var a=0;a<e.length;a++)KhanUtil.times[e[a]]=1},changePieces:function(e){(1!==KhanUtil.pieces||e)&&(KhanUtil.pieces+=e?1:-1,$("#pieces").text(KhanUtil.plural(KhanUtil.pieces,"piece")),KhanUtil.currentGraph=$("#problemarea").find("#parent_block").data("graphie"),rectchart([1,KhanUtil.pieces-1],["#e00","#999"]),KhanUtil.updateGraphAndAnswer())},changeTimes:function(e,a){(1!==KhanUtil.times[a]||e)&&(KhanUtil.times[a]+=e?1:-1,$("#"+a+"_times").text(KhanUtil.plural(KhanUtil.times[a],"time")),KhanUtil.updateGraphAndAnswer())},updateGraphAndAnswer:function(){var e=KhanUtil.pieces;_.each(KhanUtil.times,function(a,t){KhanUtil.currentGraph=$("#problemarea").find("#"+t).data("graphie"),KhanUtil.currentGraph.raphael.clear(),KhanUtil.currentGraph.init({range:[[0,1],[0,1]],scale:[500/e*a,25]}),rectchart([a,0],["#e00","#999"]),$("#"+t+"_answer input").val(KhanUtil.roundTo(3,a/e))})}});
},{}]},{},[1]);
