var define, requireModule, require, requirejs; (function() { var registry = {}, seen = {}, state = {}; var FAILED = false; define = function(name, deps, callback) { registry[name] = { deps: deps, callback: callback }; }; requirejs = require = requireModule = function(name) { if (state[name] !== FAILED && seen.hasOwnProperty(name)) { return seen[name]; } if (!registry.hasOwnProperty(name)) { throw new Error('Could not find module ' + name); } var mod = registry[name]; var deps = mod.deps; var callback = mod.callback; var reified = []; var exports; var value; var loaded = false; seen[name] = { }; // enable run-time cycles try { for (var i=0, l=deps.length; i