(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,{getCipherMessage:function(e){return[$._("i have learned all kinds of different things from using khan academy"),$._("the world is filled with secrets and mysteries just waiting to be discovered"),$._("when a message contains a single character by itself, it is most likely either the letter i or a"),$._("words which have repeating letters like too and all can also give a hint to what the secret message is"),$._("you have just cracked a caesar cipher and obtained the title of code breaker")][e-1]},applyCaesar:function(e,t){for(var r="",n="abcdefghijklmnopqrstuvwxyz",a="ABCDEFGHIJKLMNOPQRSTUVWXYZ",i=0,o=e.length;o>i;i++)r+=e[i]>="a"&&e[i]<="z"?n[(n.indexOf(e[i])+t)%26]:e[i]>="A"&&e[i]<="Z"?a[(a.indexOf(e[i])+t)%26]:e[i];return r},applyVigenere:function(e,t){for(var r="",n=0,a=0,i="abcdefghijklmnopqrstuvwxyz",o="ABCDEFGHIJKLMNOPQRSTUVWXYZ",s=t.toLowerCase(),h=0,l=e.length,f=s.length;l>h;h++)n=i.indexOf(s[a%f]),e[h]>="a"&&e[h]<="z"?(r+=i[(i.indexOf(e[h])+n)%26],a++):e[h]>="A"&&e[h]<="Z"?(r+=o[(o.indexOf(e[h])+n)%26],a++):r+=e[h];return r},normEnglishLetterFreq:function(e){for(var t=[.08167,.01492,.02782,.04253,.12702,.02228,.02015,.06094,.06966,.00154,.00772,.04024,.02406,.06749,.07507,.01929,95e-5,.05987,.06327,.09056,.02758,.00978,.0236,.0015,.01974,74e-5],r=0,n=t.length;n>r;r++)t[r]=t[r]*e;return t},normCipherLetterFreq:function(e,t){for(var r=e.toLowerCase(),n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=0,i="abcdefghijklmnopqrstuvwxyz",o=0,s=r.length;s>o;o++)r[o]>="a"&&r[o]<="z"&&(n[i.indexOf(r[o])]++,a++);for(var o=0,s=n.length;s>o;o++)n[o]=n[o]/a*t;return n}});
},{}]},{},[1]);
