var CLOSURE_NO_DEPS = true; var COMPILED = false; var goog = goog || {}; goog.global = this; goog.DEBUG = true; goog.LOCALE = "en"; goog.provide = function(name) { if(!COMPILED) { if(goog.isProvided_(name)) { throw new Error('Namespace "' + name + '" already declared.'); } delete goog.implicitNamespaces_[name]; var namespace = name; while(namespace = namespace.substring(0, namespace.lastIndexOf("."))) { if(goog.getObjectByName(namespace)) { break } goog.implicitNamespaces_[namespace] = true } } goog.exportPath_(name) }; goog.setTestOnly = function(opt_message) { if(COMPILED && !goog.DEBUG) { opt_message = opt_message || ""; throw new Error("Importing test-only code into non-debug environment" + opt_message ? ": " + opt_message : "."); } }; if(!COMPILED) { goog.isProvided_ = function(name) { return!goog.implicitNamespaces_[name] && !!goog.getObjectByName(name) }; goog.implicitNamespaces_ = {} } goog.exportPath_ = function(name, opt_object, opt_objectToExportTo) { var parts = name.split("."); var cur = opt_objectToExportTo || goog.global; if(!(parts[0] in cur) && cur.execScript) { cur.execScript("var " + parts[0]) } for(var part;parts.length && (part = parts.shift());) { if(!parts.length && goog.isDef(opt_object)) { cur[part] = opt_object }else { if(cur[part]) { cur = cur[part] }else { cur = cur[part] = {} } } } }; goog.getObjectByName = function(name, opt_obj) { var parts = name.split("."); var cur = opt_obj || goog.global; for(var part;part = parts.shift();) { if(goog.isDefAndNotNull(cur[part])) { cur = cur[part] }else { return null } } return cur }; goog.globalize = function(obj, opt_global) { var global = opt_global || goog.global; for(var x in obj) { global[x] = obj[x] } }; goog.addDependency = function(relPath, provides, requires) { if(!COMPILED) { var provide, require; var path = relPath.replace(/\\/g, "/"); var deps = goog.dependencies_; for(var i = 0;provide = provides[i];i++) { deps.nameToPath[provide] = path; if(!(path in deps.pathToNames)) { deps.pathToNames[path] = {} } deps.pathToNames[path][provide] = true } for(var j = 0;require = requires[j];j++) { if(!(path in deps.requires)) { deps.requires[path] = {} } deps.requires[path][require] = true } } }; goog.ENABLE_DEBUG_LOADER = true; goog.require = function(name) { if(!COMPILED) { if(goog.isProvided_(name)) { return } if(goog.ENABLE_DEBUG_LOADER) { var path = goog.getPathFromDeps_(name); if(path) { goog.included_[path] = true; goog.writeScripts_(); return } } var errorMessage = "goog.require could not find: " + name; if(goog.global.console) { goog.global.console["error"](errorMessage) } throw new Error(errorMessage); } }; goog.basePath = ""; goog.global.CLOSURE_BASE_PATH; goog.global.CLOSURE_NO_DEPS; goog.global.CLOSURE_IMPORT_SCRIPT; goog.nullFunction = function() { }; goog.identityFunction = function(opt_returnValue, var_args) { return opt_returnValue }; goog.abstractMethod = function() { throw new Error("unimplemented abstract method"); }; goog.addSingletonGetter = function(ctor) { ctor.getInstance = function() { if(ctor.instance_) { return ctor.instance_ } if(goog.DEBUG) { goog.instantiatedSingletons_[goog.instantiatedSingletons_.length] = ctor } return ctor.instance_ = new ctor } }; goog.instantiatedSingletons_ = []; if(!COMPILED && goog.ENABLE_DEBUG_LOADER) { goog.included_ = {}; goog.dependencies_ = {pathToNames:{}, nameToPath:{}, requires:{}, visited:{}, written:{}}; goog.inHtmlDocument_ = function() { var doc = goog.global.document; return typeof doc != "undefined" && "write" in doc }; goog.findBasePath_ = function() { if(goog.global.CLOSURE_BASE_PATH) { goog.basePath = goog.global.CLOSURE_BASE_PATH; return }else { if(!goog.inHtmlDocument_()) { return } } var doc = goog.global.document; var scripts = doc.getElementsByTagName("script"); for(var i = scripts.length - 1;i >= 0;--i) { var src = scripts[i].src; var qmark = src.lastIndexOf("?"); var l = qmark == -1 ? src.length : qmark; if(src.substr(l - 7, 7) == "base.js") { goog.basePath = src.substr(0, l - 7); return } } }; goog.importScript_ = function(src) { var importScript = goog.global.CLOSURE_IMPORT_SCRIPT || goog.writeScriptTag_; if(!goog.dependencies_.written[src] && importScript(src)) { goog.dependencies_.written[src] = true } }; goog.writeScriptTag_ = function(src) { if(goog.inHtmlDocument_()) { var doc = goog.global.document; doc.write('