(function (e, o) { if (typeof exports === "object") { module.exports = o() } else if (typeof define === "function" && define.amd) { define([], o) } else { e.ol = o() } })(this, function () { var OPENLAYERS = {}; var goog = this.goog = {}; this.CLOSURE_NO_DEPS = true; var COMPILED = false; var goog = goog || {}; goog.global = this; goog.global.CLOSURE_UNCOMPILED_DEFINES; goog.global.CLOSURE_DEFINES; goog.isDef = function (e) { return e !== void 0 }; goog.exportPath_ = function (e, o, t) { var r = e.split("."); var i = t || goog.global; if (!(r[0] in i) && i.execScript) { i.execScript("var " + r[0]) } for (var n; r.length && (n = r.shift());) { if (!r.length && goog.isDef(o)) { i[n] = o } else if (i[n]) { i = i[n] } else { i = i[n] = {} } } }; goog.define = function (e, o) { var t = o; if (!COMPILED) { if (goog.global.CLOSURE_UNCOMPILED_DEFINES && Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_UNCOMPILED_DEFINES, e)) { t = goog.global.CLOSURE_UNCOMPILED_DEFINES[e] } else if (goog.global.CLOSURE_DEFINES && Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_DEFINES, e)) { t = goog.global.CLOSURE_DEFINES[e] } } goog.exportPath_(e, t) }; goog.define("goog.DEBUG", true); goog.define("goog.LOCALE", "en"); goog.define("goog.TRUSTED_SITE", true); goog.define("goog.STRICT_MODE_COMPATIBLE", false); goog.define("goog.DISALLOW_TEST_ONLY_CODE", COMPILED && !goog.DEBUG); goog.define("goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING", false); goog.provide = function (e) { if (!COMPILED) { if (goog.isProvided_(e)) { throw Error('Namespace "' + e + '" already declared.') } } goog.constructNamespace_(e) }; goog.constructNamespace_ = function (e, o) { if (!COMPILED) { delete goog.implicitNamespaces_[e]; var t = e; while (t = t.substring(0, t.lastIndexOf("."))) { if (goog.getObjectByName(t)) { break } goog.implicitNamespaces_[t] = true } } goog.exportPath_(e, o) }; goog.VALID_MODULE_RE_ = /^[a-zA-Z_$][a-zA-Z0-9._$]*$/; goog.module = function (e) { if (!goog.isString(e) || !e || e.search(goog.VALID_MODULE_RE_) == -1) { throw Error("Invalid module identifier") } if (!goog.isInModuleLoader_()) { throw Error("Module " + e + " has been loaded incorrectly.") } if (goog.moduleLoaderState_.moduleName) { throw Error("goog.module may only be called once per module.") } goog.moduleLoaderState_.moduleName = e; if (!COMPILED) { if (goog.isProvided_(e)) { throw Error('Namespace "' + e + '" already declared.') } delete goog.implicitNamespaces_[e] } }; goog.module.get = function (e) { return goog.module.getInternal_(e) }; goog.module.getInternal_ = function (e) { if (!COMPILED) { if (goog.isProvided_(e)) { return e in goog.loadedModules_ ? goog.loadedModules_[e] : goog.getObjectByName(e) } else { return null } } }; goog.moduleLoaderState_ = null; goog.isInModuleLoader_ = function () { return goog.moduleLoaderState_ != null }; goog.module.declareLegacyNamespace = function () { if (!COMPILED && !goog.isInModuleLoader_()) { throw new Error("goog.module.declareLegacyNamespace must be called from " + "within a goog.module") } if (!COMPILED && !goog.moduleLoaderState_.moduleName) { throw Error("goog.module must be called prior to " + "goog.module.declareLegacyNamespace.") } goog.moduleLoaderState_.declareLegacyNamespace = true }; goog.setTestOnly = function (e) { if (goog.DISALLOW_TEST_ONLY_CODE) { e = e || ""; throw Error("Importing test-only code into non-debug environment" + (e ? ": " + e : ".")) } }; goog.forwardDeclare = function (e) { }; goog.forwardDeclare("Document"); goog.forwardDeclare("HTMLScriptElement"); goog.forwardDeclare("XMLHttpRequest"); if (!COMPILED) { goog.isProvided_ = function (e) { return e in goog.loadedModules_ || !goog.implicitNamespaces_[e] && goog.isDefAndNotNull(goog.getObjectByName(e)) }; goog.implicitNamespaces_ = {"goog.module": true} } goog.getObjectByName = function (e, o) { var t = e.split("."); var r = o || goog.global; for (var i; i = t.shift();) { if (goog.isDefAndNotNull(r[i])) { r = r[i] } else { return null } } return r }; goog.globalize = function (e, o) { var t = o || goog.global; for (var r in e) { t[r] = e[r] } }; goog.addDependency = function (e, o, t, r) { if (goog.DEPENDENCIES_ENABLED) { var i, n; var a = e.replace(/\\/g, "/"); var l = goog.dependencies_; if (!r || typeof r === "boolean") { r = r ? {module: "goog"} : {} } for (var s = 0; i = o[s]; s++) { l.nameToPath[i] = a; l.pathIsModule[a] = r["module"] == "goog" } for (var g = 0; n = t[g]; g++) { if (!(a in l.requires)) { l.requires[a] = {} } l.requires[a][n] = true } } }; goog.define("goog.ENABLE_DEBUG_LOADER", true); goog.logToConsole_ = function (e) { if (goog.global.console) { goog.global.console["error"](e) } }; goog.require = function (e) { if (!COMPILED) { if (goog.ENABLE_DEBUG_LOADER && goog.IS_OLD_IE_) { goog.maybeProcessDeferredDep_(e) } if (goog.isProvided_(e)) { if (goog.isInModuleLoader_()) { return goog.module.getInternal_(e) } else { return null } } if (goog.ENABLE_DEBUG_LOADER) { var o = goog.getPathFromDeps_(e); if (o) { goog.writeScripts_(o); return null } } var t = "goog.require could not find: " + e; goog.logToConsole_(t); throw Error(t) } }; goog.basePath = ""; goog.global.CLOSURE_BASE_PATH; goog.global.CLOSURE_NO_DEPS; goog.global.CLOSURE_IMPORT_SCRIPT; goog.nullFunction = function () { }; goog.abstractMethod = function () { throw Error("unimplemented abstract method") }; goog.addSingletonGetter = function (e) { e.getInstance = function () { if (e.instance_) { return e.instance_ } if (goog.DEBUG) { goog.instantiatedSingletons_[goog.instantiatedSingletons_.length] = e } return e.instance_ = new e } }; goog.instantiatedSingletons_ = []; goog.define("goog.LOAD_MODULE_USING_EVAL", true); goog.define("goog.SEAL_MODULE_EXPORTS", goog.DEBUG); goog.loadedModules_ = {}; goog.DEPENDENCIES_ENABLED = !COMPILED && goog.ENABLE_DEBUG_LOADER; if (goog.DEPENDENCIES_ENABLED) { goog.dependencies_ = {pathIsModule: {}, nameToPath: {}, requires: {}, visited: {}, written: {}, deferred: {}}; goog.inHtmlDocument_ = function () { var e = goog.global.document; return e != null && "write" in e }; goog.findBasePath_ = function () { if (goog.isDef(goog.global.CLOSURE_BASE_PATH)) { goog.basePath = goog.global.CLOSURE_BASE_PATH; return } else if (!goog.inHtmlDocument_()) { return } var e = goog.global.document; var o = e.getElementsByTagName("SCRIPT"); for (var t = o.length - 1; t >= 0; --t) { var r = o[t]; var i = r.src; var n = i.lastIndexOf("?"); var a = n == -1 ? i.length : n; if (i.substr(a - 7, 7) == "base.js") { goog.basePath = i.substr(0, a - 7); return } } }; goog.importScript_ = function (e, o) { var t = goog.global.CLOSURE_IMPORT_SCRIPT || goog.writeScriptTag_; if (t(e, o)) { goog.dependencies_.written[e] = true } }; goog.IS_OLD_IE_ = !!(!goog.global.atob && goog.global.document && goog.global.document.all); goog.importModule_ = function (e) { var o = 'goog.retrieveAndExecModule_("' + e + '");'; if (goog.importScript_("", o)) { goog.dependencies_.written[e] = true } }; goog.queuedModules_ = []; goog.wrapModule_ = function (e, o) { if (!goog.LOAD_MODULE_USING_EVAL || !goog.isDef(goog.global.JSON)) { return "" + "goog.loadModule(function(exports) {" + '"use strict";' + o + "\n" + ";return exports" + "});" + "\n//# sourceURL=" + e + "\n" } else { return "" + "goog.loadModule(" + goog.global.JSON.stringify(o + "\n//# sourceURL=" + e + "\n") + ");" } }; goog.loadQueuedModules_ = function () { var e = goog.queuedModules_.length; if (e > 0) { var o = goog.queuedModules_; goog.queuedModules_ = []; for (var t = 0; t < e; t++) { var r = o[t]; goog.maybeProcessDeferredPath_(r) } } }; goog.maybeProcessDeferredDep_ = function (e) { if (goog.isDeferredModule_(e) && goog.allDepsAreAvailable_(e)) { var o = goog.getPathFromDeps_(e); goog.maybeProcessDeferredPath_(goog.basePath + o) } }; goog.isDeferredModule_ = function (e) { var o = goog.getPathFromDeps_(e); if (o && goog.dependencies_.pathIsModule[o]) { var t = goog.basePath + o; return t in goog.dependencies_.deferred } return false }; goog.allDepsAreAvailable_ = function (e) { var o = goog.getPathFromDeps_(e); if (o && o in goog.dependencies_.requires) { for (var t in goog.dependencies_.requires[o]) { if (!goog.isProvided_(t) && !goog.isDeferredModule_(t)) { return false } } } return true }; goog.maybeProcessDeferredPath_ = function (e) { if (e in goog.dependencies_.deferred) { var o = goog.dependencies_.deferred[e]; delete goog.dependencies_.deferred[e]; goog.globalEval(o) } }; goog.loadModuleFromUrl = function (e) { goog.retrieveAndExecModule_(e) }; goog.loadModule = function (e) { var o = goog.moduleLoaderState_; try { goog.moduleLoaderState_ = {moduleName: undefined, declareLegacyNamespace: false}; var t; if (goog.isFunction(e)) { t = e.call(goog.global, {}) } else if (goog.isString(e)) { t = goog.loadModuleFromSource_.call(goog.global, e) } else { throw Error("Invalid module definition") } var r = goog.moduleLoaderState_.moduleName; if (!goog.isString(r) || !r) { throw Error('Invalid module name "' + r + '"') } if (goog.moduleLoaderState_.declareLegacyNamespace) { goog.constructNamespace_(r, t) } else if (goog.SEAL_MODULE_EXPORTS && Object.seal) { Object.seal(t) } goog.loadedModules_[r] = t } finally { goog.moduleLoaderState_ = o } }; goog.loadModuleFromSource_ = function () { "use strict"; var exports = {}; eval(arguments[0]); return exports }; goog.writeScriptSrcNode_ = function (e) { goog.global.document.write('