@p4ulcristian/iris-layout 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cljs-runtime/cljs.core.js +38746 -0
- package/dist/cljs-runtime/cljs.core.js.map +1 -0
- package/dist/cljs-runtime/cljs.pprint.js +8400 -0
- package/dist/cljs-runtime/cljs.pprint.js.map +1 -0
- package/dist/cljs-runtime/cljs.stacktrace.js +561 -0
- package/dist/cljs-runtime/cljs.stacktrace.js.map +1 -0
- package/dist/cljs-runtime/cljs_env.js +1286 -0
- package/dist/cljs-runtime/clojure.data.js +295 -0
- package/dist/cljs-runtime/clojure.data.js.map +1 -0
- package/dist/cljs-runtime/clojure.set.js +382 -0
- package/dist/cljs-runtime/clojure.set.js.map +1 -0
- package/dist/cljs-runtime/clojure.string.js +480 -0
- package/dist/cljs-runtime/clojure.string.js.map +1 -0
- package/dist/cljs-runtime/clojure.walk.js +132 -0
- package/dist/cljs-runtime/clojure.walk.js.map +1 -0
- package/dist/cljs-runtime/devtools.async.js +90 -0
- package/dist/cljs-runtime/devtools.async.js.map +1 -0
- package/dist/cljs-runtime/devtools.context.js +11 -0
- package/dist/cljs-runtime/devtools.context.js.map +1 -0
- package/dist/cljs-runtime/devtools.core.js +175 -0
- package/dist/cljs-runtime/devtools.core.js.map +1 -0
- package/dist/cljs-runtime/devtools.defaults.js +20 -0
- package/dist/cljs-runtime/devtools.defaults.js.map +1 -0
- package/dist/cljs-runtime/devtools.format.js +631 -0
- package/dist/cljs-runtime/devtools.format.js.map +1 -0
- package/dist/cljs-runtime/devtools.formatters.budgeting.js +182 -0
- package/dist/cljs-runtime/devtools.formatters.budgeting.js.map +1 -0
- package/dist/cljs-runtime/devtools.formatters.core.js +220 -0
- package/dist/cljs-runtime/devtools.formatters.core.js.map +1 -0
- package/dist/cljs-runtime/devtools.formatters.helpers.js +228 -0
- package/dist/cljs-runtime/devtools.formatters.helpers.js.map +1 -0
- package/dist/cljs-runtime/devtools.formatters.js +261 -0
- package/dist/cljs-runtime/devtools.formatters.js.map +1 -0
- package/dist/cljs-runtime/devtools.formatters.markup.js +1174 -0
- package/dist/cljs-runtime/devtools.formatters.markup.js.map +1 -0
- package/dist/cljs-runtime/devtools.formatters.printing.js +313 -0
- package/dist/cljs-runtime/devtools.formatters.printing.js.map +1 -0
- package/dist/cljs-runtime/devtools.formatters.state.js +325 -0
- package/dist/cljs-runtime/devtools.formatters.state.js.map +1 -0
- package/dist/cljs-runtime/devtools.formatters.templating.js +666 -0
- package/dist/cljs-runtime/devtools.formatters.templating.js.map +1 -0
- package/dist/cljs-runtime/devtools.hints.js +193 -0
- package/dist/cljs-runtime/devtools.hints.js.map +1 -0
- package/dist/cljs-runtime/devtools.munging.js +1058 -0
- package/dist/cljs-runtime/devtools.munging.js.map +1 -0
- package/dist/cljs-runtime/devtools.prefs.js +87 -0
- package/dist/cljs-runtime/devtools.prefs.js.map +1 -0
- package/dist/cljs-runtime/devtools.preload.js +11 -0
- package/dist/cljs-runtime/devtools.preload.js.map +1 -0
- package/dist/cljs-runtime/devtools.protocols.js +98 -0
- package/dist/cljs-runtime/devtools.protocols.js.map +1 -0
- package/dist/cljs-runtime/devtools.reporter.js +81 -0
- package/dist/cljs-runtime/devtools.reporter.js.map +1 -0
- package/dist/cljs-runtime/devtools.toolbox.js +141 -0
- package/dist/cljs-runtime/devtools.toolbox.js.map +1 -0
- package/dist/cljs-runtime/devtools.util.js +517 -0
- package/dist/cljs-runtime/devtools.util.js.map +1 -0
- package/dist/cljs-runtime/devtools.version.js +9 -0
- package/dist/cljs-runtime/devtools.version.js.map +1 -0
- package/dist/cljs-runtime/goog.array.array.js +659 -0
- package/dist/cljs-runtime/goog.array.array.js.map +9 -0
- package/dist/cljs-runtime/goog.asserts.asserts.js +133 -0
- package/dist/cljs-runtime/goog.asserts.asserts.js.map +9 -0
- package/dist/cljs-runtime/goog.asserts.dom.js +90 -0
- package/dist/cljs-runtime/goog.asserts.dom.js.map +9 -0
- package/dist/cljs-runtime/goog.async.nexttick.js +93 -0
- package/dist/cljs-runtime/goog.async.nexttick.js.map +9 -0
- package/dist/cljs-runtime/goog.base.js +1261 -0
- package/dist/cljs-runtime/goog.base.js.map +9 -0
- package/dist/cljs-runtime/goog.collections.maps.js +82 -0
- package/dist/cljs-runtime/goog.collections.maps.js.map +9 -0
- package/dist/cljs-runtime/goog.debug.entrypointregistry.js +44 -0
- package/dist/cljs-runtime/goog.debug.entrypointregistry.js.map +9 -0
- package/dist/cljs-runtime/goog.debug.error.js +30 -0
- package/dist/cljs-runtime/goog.debug.error.js.map +9 -0
- package/dist/cljs-runtime/goog.dom.asserts.js +40 -0
- package/dist/cljs-runtime/goog.dom.asserts.js.map +9 -0
- package/dist/cljs-runtime/goog.dom.browserfeature.js +21 -0
- package/dist/cljs-runtime/goog.dom.browserfeature.js.map +9 -0
- package/dist/cljs-runtime/goog.dom.dom.js +1087 -0
- package/dist/cljs-runtime/goog.dom.dom.js.map +9 -0
- package/dist/cljs-runtime/goog.dom.element.js +69 -0
- package/dist/cljs-runtime/goog.dom.element.js.map +9 -0
- package/dist/cljs-runtime/goog.dom.htmlelement.js +7 -0
- package/dist/cljs-runtime/goog.dom.htmlelement.js.map +9 -0
- package/dist/cljs-runtime/goog.dom.nodetype.js +6 -0
- package/dist/cljs-runtime/goog.dom.nodetype.js.map +9 -0
- package/dist/cljs-runtime/goog.dom.safe.js +277 -0
- package/dist/cljs-runtime/goog.dom.safe.js.map +9 -0
- package/dist/cljs-runtime/goog.dom.tagname.js +147 -0
- package/dist/cljs-runtime/goog.dom.tagname.js.map +9 -0
- package/dist/cljs-runtime/goog.dom.tags.js +10 -0
- package/dist/cljs-runtime/goog.dom.tags.js.map +9 -0
- package/dist/cljs-runtime/goog.flags.flags.js +12 -0
- package/dist/cljs-runtime/goog.flags.flags.js.map +9 -0
- package/dist/cljs-runtime/goog.fs.blob.js +38 -0
- package/dist/cljs-runtime/goog.fs.blob.js.map +9 -0
- package/dist/cljs-runtime/goog.fs.url.js +37 -0
- package/dist/cljs-runtime/goog.fs.url.js.map +9 -0
- package/dist/cljs-runtime/goog.functions.functions.js +211 -0
- package/dist/cljs-runtime/goog.functions.functions.js.map +9 -0
- package/dist/cljs-runtime/goog.html.safehtml.js +321 -0
- package/dist/cljs-runtime/goog.html.safehtml.js.map +9 -0
- package/dist/cljs-runtime/goog.html.safescript.js +65 -0
- package/dist/cljs-runtime/goog.html.safescript.js.map +9 -0
- package/dist/cljs-runtime/goog.html.safestyle.js +175 -0
- package/dist/cljs-runtime/goog.html.safestyle.js.map +9 -0
- package/dist/cljs-runtime/goog.html.safestylesheet.js +99 -0
- package/dist/cljs-runtime/goog.html.safestylesheet.js.map +9 -0
- package/dist/cljs-runtime/goog.html.safeurl.js +231 -0
- package/dist/cljs-runtime/goog.html.safeurl.js.map +9 -0
- package/dist/cljs-runtime/goog.html.trustedresourceurl.js +123 -0
- package/dist/cljs-runtime/goog.html.trustedresourceurl.js.map +9 -0
- package/dist/cljs-runtime/goog.html.trustedtypes.js +16 -0
- package/dist/cljs-runtime/goog.html.trustedtypes.js.map +9 -0
- package/dist/cljs-runtime/goog.html.uncheckedconversions.js +52 -0
- package/dist/cljs-runtime/goog.html.uncheckedconversions.js.map +9 -0
- package/dist/cljs-runtime/goog.labs.useragent.browser.js +352 -0
- package/dist/cljs-runtime/goog.labs.useragent.browser.js.map +9 -0
- package/dist/cljs-runtime/goog.labs.useragent.engine.js +73 -0
- package/dist/cljs-runtime/goog.labs.useragent.engine.js.map +9 -0
- package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropydata.js +14 -0
- package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropydata.js.map +9 -0
- package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropyvalue.js +74 -0
- package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropyvalue.js.map +9 -0
- package/dist/cljs-runtime/goog.labs.useragent.platform.js +147 -0
- package/dist/cljs-runtime/goog.labs.useragent.platform.js.map +9 -0
- package/dist/cljs-runtime/goog.labs.useragent.useragent.js +21 -0
- package/dist/cljs-runtime/goog.labs.useragent.useragent.js.map +9 -0
- package/dist/cljs-runtime/goog.labs.useragent.util.js +81 -0
- package/dist/cljs-runtime/goog.labs.useragent.util.js.map +9 -0
- package/dist/cljs-runtime/goog.math.coordinate.js +97 -0
- package/dist/cljs-runtime/goog.math.coordinate.js.map +9 -0
- package/dist/cljs-runtime/goog.math.integer.js +445 -0
- package/dist/cljs-runtime/goog.math.integer.js.map +9 -0
- package/dist/cljs-runtime/goog.math.long.js +437 -0
- package/dist/cljs-runtime/goog.math.long.js.map +9 -0
- package/dist/cljs-runtime/goog.math.math.js +158 -0
- package/dist/cljs-runtime/goog.math.math.js.map +9 -0
- package/dist/cljs-runtime/goog.math.size.js +76 -0
- package/dist/cljs-runtime/goog.math.size.js.map +9 -0
- package/dist/cljs-runtime/goog.object.object.js +284 -0
- package/dist/cljs-runtime/goog.object.object.js.map +9 -0
- package/dist/cljs-runtime/goog.reflect.reflect.js +32 -0
- package/dist/cljs-runtime/goog.reflect.reflect.js.map +9 -0
- package/dist/cljs-runtime/goog.string.const.js +35 -0
- package/dist/cljs-runtime/goog.string.const.js.map +9 -0
- package/dist/cljs-runtime/goog.string.internal.js +119 -0
- package/dist/cljs-runtime/goog.string.internal.js.map +9 -0
- package/dist/cljs-runtime/goog.string.string.js +462 -0
- package/dist/cljs-runtime/goog.string.string.js.map +9 -0
- package/dist/cljs-runtime/goog.string.stringbuffer.js +32 -0
- package/dist/cljs-runtime/goog.string.stringbuffer.js.map +9 -0
- package/dist/cljs-runtime/goog.string.typedstring.js +9 -0
- package/dist/cljs-runtime/goog.string.typedstring.js.map +9 -0
- package/dist/cljs-runtime/goog.structs.structs.js +199 -0
- package/dist/cljs-runtime/goog.structs.structs.js.map +9 -0
- package/dist/cljs-runtime/goog.uri.uri.js +628 -0
- package/dist/cljs-runtime/goog.uri.uri.js.map +9 -0
- package/dist/cljs-runtime/goog.uri.utils.js +326 -0
- package/dist/cljs-runtime/goog.uri.utils.js.map +9 -0
- package/dist/cljs-runtime/goog.useragent.useragent.js +139 -0
- package/dist/cljs-runtime/goog.useragent.useragent.js.map +9 -0
- package/dist/cljs-runtime/iris_layout.components.entity_card_group.js +202 -0
- package/dist/cljs-runtime/iris_layout.components.entity_card_group.js.map +1 -0
- package/dist/cljs-runtime/iris_layout.components.entity_tile.js +295 -0
- package/dist/cljs-runtime/iris_layout.components.entity_tile.js.map +1 -0
- package/dist/cljs-runtime/iris_layout.components.entity_tile_group.js +33 -0
- package/dist/cljs-runtime/iris_layout.components.entity_tile_group.js.map +1 -0
- package/dist/cljs-runtime/iris_layout.components.resizer.js +91 -0
- package/dist/cljs-runtime/iris_layout.components.resizer.js.map +1 -0
- package/dist/cljs-runtime/iris_layout.components.touch_drag.js +399 -0
- package/dist/cljs-runtime/iris_layout.components.touch_drag.js.map +1 -0
- package/dist/cljs-runtime/iris_layout.core.js +1372 -0
- package/dist/cljs-runtime/iris_layout.core.js.map +1 -0
- package/dist/cljs-runtime/iris_layout.layout.js +328 -0
- package/dist/cljs-runtime/iris_layout.layout.js.map +1 -0
- package/dist/cljs-runtime/reagent.core.js +993 -0
- package/dist/cljs-runtime/reagent.core.js.map +1 -0
- package/dist/cljs-runtime/reagent.debug.js +75 -0
- package/dist/cljs-runtime/reagent.debug.js.map +1 -0
- package/dist/cljs-runtime/reagent.impl.batching.js +270 -0
- package/dist/cljs-runtime/reagent.impl.batching.js.map +1 -0
- package/dist/cljs-runtime/reagent.impl.component.js +758 -0
- package/dist/cljs-runtime/reagent.impl.component.js.map +1 -0
- package/dist/cljs-runtime/reagent.impl.input.js +175 -0
- package/dist/cljs-runtime/reagent.impl.input.js.map +1 -0
- package/dist/cljs-runtime/reagent.impl.protocols.js +99 -0
- package/dist/cljs-runtime/reagent.impl.protocols.js.map +1 -0
- package/dist/cljs-runtime/reagent.impl.template.js +660 -0
- package/dist/cljs-runtime/reagent.impl.template.js.map +1 -0
- package/dist/cljs-runtime/reagent.impl.util.js +748 -0
- package/dist/cljs-runtime/reagent.impl.util.js.map +1 -0
- package/dist/cljs-runtime/reagent.ratom.js +1668 -0
- package/dist/cljs-runtime/reagent.ratom.js.map +1 -0
- package/dist/cljs-runtime/shadow.esm.esm_import$react.js +5 -0
- package/dist/cljs-runtime/shadow.module.iris-layout.append.js +2 -0
- package/dist/cljs-runtime/shadow.module.iris-layout.prepend.js +2 -0
- package/dist/iris-layout.js +375 -355
- package/dist/styles.css +287 -9
- package/package.json +1 -1
|
@@ -0,0 +1,1286 @@
|
|
|
1
|
+
globalThis.CLOSURE_DEFINES =
|
|
2
|
+
{"goog.DEBUG":true,"goog.LOCALE":"en","goog.TRANSPILE":"never","goog.ENABLE_DEBUG_LOADER":false}
|
|
3
|
+
;
|
|
4
|
+
globalThis.CLOSURE_NO_DEPS = true;
|
|
5
|
+
var COMPILED = false;
|
|
6
|
+
var goog = goog || {};
|
|
7
|
+
goog.global = globalThis;
|
|
8
|
+
goog.global.CLOSURE_UNCOMPILED_DEFINES;
|
|
9
|
+
goog.global.CLOSURE_DEFINES;
|
|
10
|
+
goog.exportPath_ = function(name, object, overwriteImplicit, objectToExportTo) {
|
|
11
|
+
var parts = name.split(".");
|
|
12
|
+
var cur = objectToExportTo || goog.global;
|
|
13
|
+
if (!(parts[0] in cur) && typeof cur.execScript != "undefined") {
|
|
14
|
+
cur.execScript("var " + parts[0]);
|
|
15
|
+
}
|
|
16
|
+
var part;
|
|
17
|
+
for (; parts.length && (part = parts.shift());) {
|
|
18
|
+
if (!parts.length && object !== undefined) {
|
|
19
|
+
if (!overwriteImplicit && goog.isObject(object) && goog.isObject(cur[part])) {
|
|
20
|
+
var prop;
|
|
21
|
+
for (prop in object) {
|
|
22
|
+
if (object.hasOwnProperty(prop)) {
|
|
23
|
+
cur[part][prop] = object[prop];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
} else {
|
|
27
|
+
cur[part] = object;
|
|
28
|
+
}
|
|
29
|
+
} else if (cur[part] && cur[part] !== Object.prototype[part]) {
|
|
30
|
+
cur = cur[part];
|
|
31
|
+
} else {
|
|
32
|
+
cur = cur[part] = {};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
goog.define = function(name, defaultValue) {
|
|
37
|
+
var value = defaultValue;
|
|
38
|
+
if (!COMPILED) {
|
|
39
|
+
var uncompiledDefines = goog.global.CLOSURE_UNCOMPILED_DEFINES;
|
|
40
|
+
var defines = goog.global.CLOSURE_DEFINES;
|
|
41
|
+
if (uncompiledDefines && uncompiledDefines.nodeType === undefined && Object.prototype.hasOwnProperty.call(uncompiledDefines, name)) {
|
|
42
|
+
value = uncompiledDefines[name];
|
|
43
|
+
} else if (defines && defines.nodeType === undefined && Object.prototype.hasOwnProperty.call(defines, name)) {
|
|
44
|
+
value = defines[name];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return value;
|
|
48
|
+
};
|
|
49
|
+
goog.FEATURESET_YEAR = goog.define("goog.FEATURESET_YEAR", 2012);
|
|
50
|
+
goog.DEBUG = goog.define("goog.DEBUG", true);
|
|
51
|
+
goog.LOCALE = goog.define("goog.LOCALE", "en");
|
|
52
|
+
goog.TRUSTED_SITE = goog.define("goog.TRUSTED_SITE", true);
|
|
53
|
+
goog.DISALLOW_TEST_ONLY_CODE = goog.define("goog.DISALLOW_TEST_ONLY_CODE", COMPILED && !goog.DEBUG);
|
|
54
|
+
goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING = goog.define("goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING", false);
|
|
55
|
+
goog.provide = function(name) {
|
|
56
|
+
if (goog.isInModuleLoader_()) {
|
|
57
|
+
throw new Error("goog.provide cannot be used within a module.");
|
|
58
|
+
}
|
|
59
|
+
if (!COMPILED) {
|
|
60
|
+
if (goog.isProvided_(name)) {
|
|
61
|
+
throw new Error('Namespace "' + name + '" already declared.');
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
goog.constructNamespace_(name);
|
|
65
|
+
};
|
|
66
|
+
goog.constructNamespace_ = function(name, object, overwriteImplicit) {
|
|
67
|
+
if (!COMPILED) {
|
|
68
|
+
delete goog.implicitNamespaces_[name];
|
|
69
|
+
var namespace = name;
|
|
70
|
+
for (; namespace = namespace.substring(0, namespace.lastIndexOf("."));) {
|
|
71
|
+
if (goog.getObjectByName(namespace)) {
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
goog.implicitNamespaces_[namespace] = true;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
goog.exportPath_(name, object, overwriteImplicit);
|
|
78
|
+
};
|
|
79
|
+
goog.NONCE_PATTERN_ = /^[\w+/_-]+[=]{0,2}$/;
|
|
80
|
+
goog.getScriptNonce_ = function(opt_window) {
|
|
81
|
+
var doc = (opt_window || goog.global).document;
|
|
82
|
+
var script = doc.querySelector && doc.querySelector("script[nonce]");
|
|
83
|
+
if (script) {
|
|
84
|
+
var nonce = script["nonce"] || script.getAttribute("nonce");
|
|
85
|
+
if (nonce && goog.NONCE_PATTERN_.test(nonce)) {
|
|
86
|
+
return nonce;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return "";
|
|
90
|
+
};
|
|
91
|
+
goog.VALID_MODULE_RE_ = /^[a-zA-Z_$][a-zA-Z0-9._$]*$/;
|
|
92
|
+
goog.module = function(name) {
|
|
93
|
+
if (typeof name !== "string" || !name || name.search(goog.VALID_MODULE_RE_) == -1) {
|
|
94
|
+
throw new Error("Invalid module identifier");
|
|
95
|
+
}
|
|
96
|
+
if (!goog.isInGoogModuleLoader_()) {
|
|
97
|
+
throw new Error("Module " + name + " has been loaded incorrectly. Note, " + "modules cannot be loaded as normal scripts. They require some kind of " + "pre-processing step. You're likely trying to load a module via a " + "script tag or as a part of a concatenated bundle without rewriting the " + "module. For more info see: " + "https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");
|
|
98
|
+
}
|
|
99
|
+
if (goog.moduleLoaderState_.moduleName) {
|
|
100
|
+
throw new Error("goog.module may only be called once per module.");
|
|
101
|
+
}
|
|
102
|
+
goog.moduleLoaderState_.moduleName = name;
|
|
103
|
+
if (!COMPILED) {
|
|
104
|
+
if (goog.isProvided_(name)) {
|
|
105
|
+
throw new Error('Namespace "' + name + '" already declared.');
|
|
106
|
+
}
|
|
107
|
+
delete goog.implicitNamespaces_[name];
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
goog.module.get = function(name) {
|
|
111
|
+
return goog.module.getInternal_(name);
|
|
112
|
+
};
|
|
113
|
+
goog.module.getInternal_ = function(name) {
|
|
114
|
+
if (!COMPILED) {
|
|
115
|
+
if (name in goog.loadedModules_) {
|
|
116
|
+
return goog.loadedModules_[name].exports;
|
|
117
|
+
} else if (!goog.implicitNamespaces_[name]) {
|
|
118
|
+
var ns = goog.getObjectByName(name);
|
|
119
|
+
return ns != null ? ns : null;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return null;
|
|
123
|
+
};
|
|
124
|
+
goog.ModuleType = {ES6:"es6", GOOG:"goog"};
|
|
125
|
+
goog.moduleLoaderState_ = null;
|
|
126
|
+
goog.isInModuleLoader_ = function() {
|
|
127
|
+
return goog.isInGoogModuleLoader_() || goog.isInEs6ModuleLoader_();
|
|
128
|
+
};
|
|
129
|
+
goog.isInGoogModuleLoader_ = function() {
|
|
130
|
+
return !!goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.GOOG;
|
|
131
|
+
};
|
|
132
|
+
goog.isInEs6ModuleLoader_ = function() {
|
|
133
|
+
var inLoader = !!goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.ES6;
|
|
134
|
+
if (inLoader) {
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
var jscomp = goog.global["$jscomp"];
|
|
138
|
+
if (jscomp) {
|
|
139
|
+
if (typeof jscomp.getCurrentModulePath != "function") {
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
return !!jscomp.getCurrentModulePath();
|
|
143
|
+
}
|
|
144
|
+
return false;
|
|
145
|
+
};
|
|
146
|
+
goog.module.declareLegacyNamespace = function() {
|
|
147
|
+
if (!COMPILED && !goog.isInGoogModuleLoader_()) {
|
|
148
|
+
throw new Error("goog.module.declareLegacyNamespace must be called from " + "within a goog.module");
|
|
149
|
+
}
|
|
150
|
+
if (!COMPILED && !goog.moduleLoaderState_.moduleName) {
|
|
151
|
+
throw new Error("goog.module must be called prior to " + "goog.module.declareLegacyNamespace.");
|
|
152
|
+
}
|
|
153
|
+
goog.moduleLoaderState_.declareLegacyNamespace = true;
|
|
154
|
+
};
|
|
155
|
+
goog.declareModuleId = function(namespace) {
|
|
156
|
+
if (!COMPILED) {
|
|
157
|
+
if (!goog.isInEs6ModuleLoader_()) {
|
|
158
|
+
throw new Error("goog.declareModuleId may only be called from " + "within an ES6 module");
|
|
159
|
+
}
|
|
160
|
+
if (goog.moduleLoaderState_ && goog.moduleLoaderState_.moduleName) {
|
|
161
|
+
throw new Error("goog.declareModuleId may only be called once per module.");
|
|
162
|
+
}
|
|
163
|
+
if (namespace in goog.loadedModules_) {
|
|
164
|
+
throw new Error('Module with namespace "' + namespace + '" already exists.');
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
if (goog.moduleLoaderState_) {
|
|
168
|
+
goog.moduleLoaderState_.moduleName = namespace;
|
|
169
|
+
} else {
|
|
170
|
+
var jscomp = goog.global["$jscomp"];
|
|
171
|
+
if (!jscomp || typeof jscomp.getCurrentModulePath != "function") {
|
|
172
|
+
throw new Error('Module with namespace "' + namespace + '" has been loaded incorrectly.');
|
|
173
|
+
}
|
|
174
|
+
var exports = jscomp.require(jscomp.getCurrentModulePath());
|
|
175
|
+
goog.loadedModules_[namespace] = {exports:exports, type:goog.ModuleType.ES6, moduleId:namespace};
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
goog.setTestOnly = function(opt_message) {
|
|
179
|
+
if (goog.DISALLOW_TEST_ONLY_CODE) {
|
|
180
|
+
opt_message = opt_message || "";
|
|
181
|
+
throw new Error("Importing test-only code into non-debug environment" + (opt_message ? ": " + opt_message : "."));
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
goog.forwardDeclare = function(name) {
|
|
185
|
+
};
|
|
186
|
+
goog.forwardDeclare("Document");
|
|
187
|
+
goog.forwardDeclare("HTMLScriptElement");
|
|
188
|
+
goog.forwardDeclare("XMLHttpRequest");
|
|
189
|
+
if (!COMPILED) {
|
|
190
|
+
goog.isProvided_ = function(name) {
|
|
191
|
+
return name in goog.loadedModules_ || !goog.implicitNamespaces_[name] && goog.getObjectByName(name) != null;
|
|
192
|
+
};
|
|
193
|
+
goog.implicitNamespaces_ = {"goog.module":true};
|
|
194
|
+
}
|
|
195
|
+
goog.getObjectByName = function(name, opt_obj) {
|
|
196
|
+
var parts = name.split(".");
|
|
197
|
+
var cur = opt_obj || goog.global;
|
|
198
|
+
var i = 0;
|
|
199
|
+
for (; i < parts.length; i++) {
|
|
200
|
+
cur = cur[parts[i]];
|
|
201
|
+
if (cur == null) {
|
|
202
|
+
return null;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
return cur;
|
|
206
|
+
};
|
|
207
|
+
goog.addDependency = function(relPath, provides, requires, opt_loadFlags) {
|
|
208
|
+
if (!COMPILED && goog.DEPENDENCIES_ENABLED) {
|
|
209
|
+
goog.debugLoader_.addDependency(relPath, provides, requires, opt_loadFlags);
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
goog.ENABLE_DEBUG_LOADER = goog.define("goog.ENABLE_DEBUG_LOADER", true);
|
|
213
|
+
goog.logToConsole_ = function(msg) {
|
|
214
|
+
if (goog.global.console) {
|
|
215
|
+
goog.global.console["error"](msg);
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
goog.require = function(namespace) {
|
|
219
|
+
if (!COMPILED) {
|
|
220
|
+
if (goog.ENABLE_DEBUG_LOADER) {
|
|
221
|
+
goog.debugLoader_.requested(namespace);
|
|
222
|
+
}
|
|
223
|
+
if (goog.isProvided_(namespace)) {
|
|
224
|
+
if (goog.isInModuleLoader_()) {
|
|
225
|
+
return goog.module.getInternal_(namespace);
|
|
226
|
+
}
|
|
227
|
+
} else if (goog.ENABLE_DEBUG_LOADER) {
|
|
228
|
+
var moduleLoaderState = goog.moduleLoaderState_;
|
|
229
|
+
goog.moduleLoaderState_ = null;
|
|
230
|
+
try {
|
|
231
|
+
goog.debugLoader_.load_(namespace);
|
|
232
|
+
} finally {
|
|
233
|
+
goog.moduleLoaderState_ = moduleLoaderState;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
return null;
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
goog.requireType = function(namespace) {
|
|
240
|
+
return {};
|
|
241
|
+
};
|
|
242
|
+
goog.basePath = "";
|
|
243
|
+
goog.global.CLOSURE_BASE_PATH;
|
|
244
|
+
goog.global.CLOSURE_NO_DEPS;
|
|
245
|
+
goog.global.CLOSURE_IMPORT_SCRIPT;
|
|
246
|
+
goog.abstractMethod = function() {
|
|
247
|
+
throw new Error("unimplemented abstract method");
|
|
248
|
+
};
|
|
249
|
+
goog.addSingletonGetter = function(ctor) {
|
|
250
|
+
ctor.instance_ = undefined;
|
|
251
|
+
ctor.getInstance = function() {
|
|
252
|
+
if (ctor.instance_) {
|
|
253
|
+
return ctor.instance_;
|
|
254
|
+
}
|
|
255
|
+
if (goog.DEBUG) {
|
|
256
|
+
goog.instantiatedSingletons_[goog.instantiatedSingletons_.length] = ctor;
|
|
257
|
+
}
|
|
258
|
+
return ctor.instance_ = new ctor();
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
goog.instantiatedSingletons_ = [];
|
|
262
|
+
goog.LOAD_MODULE_USING_EVAL = goog.define("goog.LOAD_MODULE_USING_EVAL", true);
|
|
263
|
+
goog.SEAL_MODULE_EXPORTS = goog.define("goog.SEAL_MODULE_EXPORTS", goog.DEBUG);
|
|
264
|
+
goog.loadedModules_ = {};
|
|
265
|
+
goog.DEPENDENCIES_ENABLED = !COMPILED && goog.ENABLE_DEBUG_LOADER;
|
|
266
|
+
goog.TRANSPILE = goog.define("goog.TRANSPILE", "detect");
|
|
267
|
+
goog.ASSUME_ES_MODULES_TRANSPILED = goog.define("goog.ASSUME_ES_MODULES_TRANSPILED", false);
|
|
268
|
+
goog.TRUSTED_TYPES_POLICY_NAME = goog.define("goog.TRUSTED_TYPES_POLICY_NAME", "goog");
|
|
269
|
+
goog.hasBadLetScoping = null;
|
|
270
|
+
goog.loadModule = function(moduleDef) {
|
|
271
|
+
var previousState = goog.moduleLoaderState_;
|
|
272
|
+
try {
|
|
273
|
+
goog.moduleLoaderState_ = {moduleName:"", declareLegacyNamespace:false, type:goog.ModuleType.GOOG};
|
|
274
|
+
var origExports = {};
|
|
275
|
+
var exports = origExports;
|
|
276
|
+
if (typeof moduleDef === "function") {
|
|
277
|
+
exports = moduleDef.call(undefined, exports);
|
|
278
|
+
} else if (typeof moduleDef === "string") {
|
|
279
|
+
exports = goog.loadModuleFromSource_.call(undefined, exports, moduleDef);
|
|
280
|
+
} else {
|
|
281
|
+
throw new Error("Invalid module definition");
|
|
282
|
+
}
|
|
283
|
+
var moduleName = goog.moduleLoaderState_.moduleName;
|
|
284
|
+
if (typeof moduleName === "string" && moduleName) {
|
|
285
|
+
if (goog.moduleLoaderState_.declareLegacyNamespace) {
|
|
286
|
+
var isDefaultExport = origExports !== exports;
|
|
287
|
+
goog.constructNamespace_(moduleName, exports, isDefaultExport);
|
|
288
|
+
} else if (goog.SEAL_MODULE_EXPORTS && Object.seal && typeof exports == "object" && exports != null) {
|
|
289
|
+
Object.seal(exports);
|
|
290
|
+
}
|
|
291
|
+
var data = {exports:exports, type:goog.ModuleType.GOOG, moduleId:goog.moduleLoaderState_.moduleName};
|
|
292
|
+
goog.loadedModules_[moduleName] = data;
|
|
293
|
+
} else {
|
|
294
|
+
throw new Error('Invalid module name "' + moduleName + '"');
|
|
295
|
+
}
|
|
296
|
+
} finally {
|
|
297
|
+
goog.moduleLoaderState_ = previousState;
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
goog.loadModuleFromSource_ = function(exports) {
|
|
301
|
+
eval(goog.CLOSURE_EVAL_PREFILTER_.createScript(arguments[1]));
|
|
302
|
+
return exports;
|
|
303
|
+
};
|
|
304
|
+
goog.normalizePath_ = function(path) {
|
|
305
|
+
var components = path.split("/");
|
|
306
|
+
var i = 0;
|
|
307
|
+
for (; i < components.length;) {
|
|
308
|
+
if (components[i] == ".") {
|
|
309
|
+
components.splice(i, 1);
|
|
310
|
+
} else if (i && components[i] == ".." && components[i - 1] && components[i - 1] != "..") {
|
|
311
|
+
components.splice(--i, 2);
|
|
312
|
+
} else {
|
|
313
|
+
i++;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
return components.join("/");
|
|
317
|
+
};
|
|
318
|
+
goog.global.CLOSURE_LOAD_FILE_SYNC;
|
|
319
|
+
goog.loadFileSync_ = function(src) {
|
|
320
|
+
if (goog.global.CLOSURE_LOAD_FILE_SYNC) {
|
|
321
|
+
return goog.global.CLOSURE_LOAD_FILE_SYNC(src);
|
|
322
|
+
} else {
|
|
323
|
+
try {
|
|
324
|
+
var xhr = new goog.global["XMLHttpRequest"]();
|
|
325
|
+
xhr.open("get", src, false);
|
|
326
|
+
xhr.send();
|
|
327
|
+
return xhr.status == 0 || xhr.status == 200 ? xhr.responseText : null;
|
|
328
|
+
} catch (err) {
|
|
329
|
+
return null;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
goog.typeOf = function(value) {
|
|
334
|
+
var s = typeof value;
|
|
335
|
+
if (s != "object") {
|
|
336
|
+
return s;
|
|
337
|
+
}
|
|
338
|
+
if (!value) {
|
|
339
|
+
return "null";
|
|
340
|
+
}
|
|
341
|
+
if (Array.isArray(value)) {
|
|
342
|
+
return "array";
|
|
343
|
+
}
|
|
344
|
+
return s;
|
|
345
|
+
};
|
|
346
|
+
goog.isArrayLike = function(val) {
|
|
347
|
+
var type = goog.typeOf(val);
|
|
348
|
+
return type == "array" || type == "object" && typeof val.length == "number";
|
|
349
|
+
};
|
|
350
|
+
goog.isDateLike = function(val) {
|
|
351
|
+
return goog.isObject(val) && typeof val.getFullYear == "function";
|
|
352
|
+
};
|
|
353
|
+
goog.isObject = function(val) {
|
|
354
|
+
var type = typeof val;
|
|
355
|
+
return type == "object" && val != null || type == "function";
|
|
356
|
+
};
|
|
357
|
+
goog.getUid = function(obj) {
|
|
358
|
+
return Object.prototype.hasOwnProperty.call(obj, goog.UID_PROPERTY_) && obj[goog.UID_PROPERTY_] || (obj[goog.UID_PROPERTY_] = ++goog.uidCounter_);
|
|
359
|
+
};
|
|
360
|
+
goog.hasUid = function(obj) {
|
|
361
|
+
return !!obj[goog.UID_PROPERTY_];
|
|
362
|
+
};
|
|
363
|
+
goog.removeUid = function(obj) {
|
|
364
|
+
if (obj !== null && "removeAttribute" in obj) {
|
|
365
|
+
obj.removeAttribute(goog.UID_PROPERTY_);
|
|
366
|
+
}
|
|
367
|
+
try {
|
|
368
|
+
delete obj[goog.UID_PROPERTY_];
|
|
369
|
+
} catch (ex) {
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
goog.UID_PROPERTY_ = "closure_uid_" + (Math.random() * 1e9 >>> 0);
|
|
373
|
+
goog.uidCounter_ = 0;
|
|
374
|
+
goog.cloneObject = function(obj) {
|
|
375
|
+
var type = goog.typeOf(obj);
|
|
376
|
+
if (type == "object" || type == "array") {
|
|
377
|
+
if (typeof obj.clone === "function") {
|
|
378
|
+
return obj.clone();
|
|
379
|
+
}
|
|
380
|
+
if (typeof Map !== "undefined" && obj instanceof Map) {
|
|
381
|
+
return new Map(obj);
|
|
382
|
+
} else if (typeof Set !== "undefined" && obj instanceof Set) {
|
|
383
|
+
return new Set(obj);
|
|
384
|
+
}
|
|
385
|
+
var clone = type == "array" ? [] : {};
|
|
386
|
+
var key;
|
|
387
|
+
for (key in obj) {
|
|
388
|
+
clone[key] = goog.cloneObject(obj[key]);
|
|
389
|
+
}
|
|
390
|
+
return clone;
|
|
391
|
+
}
|
|
392
|
+
return obj;
|
|
393
|
+
};
|
|
394
|
+
goog.bindNative_ = function(fn, selfObj, var_args) {
|
|
395
|
+
return fn.call.apply(fn.bind, arguments);
|
|
396
|
+
};
|
|
397
|
+
goog.bindJs_ = function(fn, selfObj, var_args) {
|
|
398
|
+
if (!fn) {
|
|
399
|
+
throw new Error();
|
|
400
|
+
}
|
|
401
|
+
if (arguments.length > 2) {
|
|
402
|
+
var boundArgs = Array.prototype.slice.call(arguments, 2);
|
|
403
|
+
return function() {
|
|
404
|
+
var newArgs = Array.prototype.slice.call(arguments);
|
|
405
|
+
Array.prototype.unshift.apply(newArgs, boundArgs);
|
|
406
|
+
return fn.apply(selfObj, newArgs);
|
|
407
|
+
};
|
|
408
|
+
} else {
|
|
409
|
+
return function() {
|
|
410
|
+
return fn.apply(selfObj, arguments);
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
goog.bind = function(fn, selfObj, var_args) {
|
|
415
|
+
if (Function.prototype.bind && Function.prototype.bind.toString().indexOf("native code") != -1) {
|
|
416
|
+
goog.bind = goog.bindNative_;
|
|
417
|
+
} else {
|
|
418
|
+
goog.bind = goog.bindJs_;
|
|
419
|
+
}
|
|
420
|
+
return goog.bind.apply(null, arguments);
|
|
421
|
+
};
|
|
422
|
+
goog.partial = function(fn, var_args) {
|
|
423
|
+
var args = Array.prototype.slice.call(arguments, 1);
|
|
424
|
+
return function() {
|
|
425
|
+
var newArgs = args.slice();
|
|
426
|
+
newArgs.push.apply(newArgs, arguments);
|
|
427
|
+
return fn.apply(this, newArgs);
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
goog.now = function() {
|
|
431
|
+
return Date.now();
|
|
432
|
+
};
|
|
433
|
+
goog.globalEval = function(script) {
|
|
434
|
+
(0,eval)(script);
|
|
435
|
+
};
|
|
436
|
+
goog.cssNameMapping_;
|
|
437
|
+
goog.cssNameMappingStyle_;
|
|
438
|
+
goog.global.CLOSURE_CSS_NAME_MAP_FN;
|
|
439
|
+
goog.getCssName = function(className, opt_modifier) {
|
|
440
|
+
if (String(className).charAt(0) == ".") {
|
|
441
|
+
throw new Error('className passed in goog.getCssName must not start with ".".' + " You passed: " + className);
|
|
442
|
+
}
|
|
443
|
+
var getMapping = function(cssName) {
|
|
444
|
+
return goog.cssNameMapping_[cssName] || cssName;
|
|
445
|
+
};
|
|
446
|
+
var renameByParts = function(cssName) {
|
|
447
|
+
var parts = cssName.split("-");
|
|
448
|
+
var mapped = [];
|
|
449
|
+
var i = 0;
|
|
450
|
+
for (; i < parts.length; i++) {
|
|
451
|
+
mapped.push(getMapping(parts[i]));
|
|
452
|
+
}
|
|
453
|
+
return mapped.join("-");
|
|
454
|
+
};
|
|
455
|
+
var rename;
|
|
456
|
+
if (goog.cssNameMapping_) {
|
|
457
|
+
rename = goog.cssNameMappingStyle_ == "BY_WHOLE" ? getMapping : renameByParts;
|
|
458
|
+
} else {
|
|
459
|
+
rename = function(a) {
|
|
460
|
+
return a;
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
var result = opt_modifier ? className + "-" + rename(opt_modifier) : rename(className);
|
|
464
|
+
if (goog.global.CLOSURE_CSS_NAME_MAP_FN) {
|
|
465
|
+
return goog.global.CLOSURE_CSS_NAME_MAP_FN(result);
|
|
466
|
+
}
|
|
467
|
+
return result;
|
|
468
|
+
};
|
|
469
|
+
goog.setCssNameMapping = function(mapping, opt_style) {
|
|
470
|
+
goog.cssNameMapping_ = mapping;
|
|
471
|
+
goog.cssNameMappingStyle_ = opt_style;
|
|
472
|
+
};
|
|
473
|
+
goog.global.CLOSURE_CSS_NAME_MAPPING;
|
|
474
|
+
if (!COMPILED && goog.global.CLOSURE_CSS_NAME_MAPPING) {
|
|
475
|
+
goog.cssNameMapping_ = goog.global.CLOSURE_CSS_NAME_MAPPING;
|
|
476
|
+
}
|
|
477
|
+
goog.GetMsgOptions = function() {
|
|
478
|
+
};
|
|
479
|
+
goog.GetMsgOptions.prototype.html;
|
|
480
|
+
goog.GetMsgOptions.prototype.unescapeHtmlEntities;
|
|
481
|
+
goog.GetMsgOptions.prototype.original_code;
|
|
482
|
+
goog.GetMsgOptions.prototype.example;
|
|
483
|
+
goog.getMsg = function(str, opt_values, opt_options) {
|
|
484
|
+
if (opt_options && opt_options.html) {
|
|
485
|
+
str = str.replace(/</g, "\x26lt;");
|
|
486
|
+
}
|
|
487
|
+
if (opt_options && opt_options.unescapeHtmlEntities) {
|
|
488
|
+
str = str.replace(/</g, "\x3c").replace(/>/g, "\x3e").replace(/'/g, "'").replace(/"/g, '"').replace(/&/g, "\x26");
|
|
489
|
+
}
|
|
490
|
+
if (opt_values) {
|
|
491
|
+
str = str.replace(/\{\$([^}]+)}/g, function(match, key) {
|
|
492
|
+
return opt_values != null && key in opt_values ? opt_values[key] : match;
|
|
493
|
+
});
|
|
494
|
+
}
|
|
495
|
+
return str;
|
|
496
|
+
};
|
|
497
|
+
goog.getMsgWithFallback = function(a, b) {
|
|
498
|
+
return a;
|
|
499
|
+
};
|
|
500
|
+
goog.exportSymbol = function(publicPath, object, objectToExportTo) {
|
|
501
|
+
goog.exportPath_(publicPath, object, true, objectToExportTo);
|
|
502
|
+
};
|
|
503
|
+
goog.exportProperty = function(object, publicName, symbol) {
|
|
504
|
+
object[publicName] = symbol;
|
|
505
|
+
};
|
|
506
|
+
goog.inherits = function(childCtor, parentCtor) {
|
|
507
|
+
function tempCtor() {
|
|
508
|
+
}
|
|
509
|
+
tempCtor.prototype = parentCtor.prototype;
|
|
510
|
+
childCtor.superClass_ = parentCtor.prototype;
|
|
511
|
+
childCtor.prototype = new tempCtor();
|
|
512
|
+
childCtor.prototype.constructor = childCtor;
|
|
513
|
+
childCtor.base = function(me, methodName, var_args) {
|
|
514
|
+
var args = new Array(arguments.length - 2);
|
|
515
|
+
var i = 2;
|
|
516
|
+
for (; i < arguments.length; i++) {
|
|
517
|
+
args[i - 2] = arguments[i];
|
|
518
|
+
}
|
|
519
|
+
return parentCtor.prototype[methodName].apply(me, args);
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
goog.scope = function(fn) {
|
|
523
|
+
if (goog.isInModuleLoader_()) {
|
|
524
|
+
throw new Error("goog.scope is not supported within a module.");
|
|
525
|
+
}
|
|
526
|
+
fn.call(goog.global);
|
|
527
|
+
};
|
|
528
|
+
if (!COMPILED) {
|
|
529
|
+
goog.global["COMPILED"] = COMPILED;
|
|
530
|
+
}
|
|
531
|
+
goog.defineClass = function(superClass, def) {
|
|
532
|
+
var constructor = def.constructor;
|
|
533
|
+
var statics = def.statics;
|
|
534
|
+
if (!constructor || constructor == Object.prototype.constructor) {
|
|
535
|
+
constructor = function() {
|
|
536
|
+
throw new Error("cannot instantiate an interface (no constructor defined).");
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
var cls = goog.defineClass.createSealingConstructor_(constructor, superClass);
|
|
540
|
+
if (superClass) {
|
|
541
|
+
goog.inherits(cls, superClass);
|
|
542
|
+
}
|
|
543
|
+
delete def.constructor;
|
|
544
|
+
delete def.statics;
|
|
545
|
+
goog.defineClass.applyProperties_(cls.prototype, def);
|
|
546
|
+
if (statics != null) {
|
|
547
|
+
if (statics instanceof Function) {
|
|
548
|
+
statics(cls);
|
|
549
|
+
} else {
|
|
550
|
+
goog.defineClass.applyProperties_(cls, statics);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
return cls;
|
|
554
|
+
};
|
|
555
|
+
goog.defineClass.ClassDescriptor;
|
|
556
|
+
goog.defineClass.SEAL_CLASS_INSTANCES = goog.define("goog.defineClass.SEAL_CLASS_INSTANCES", goog.DEBUG);
|
|
557
|
+
goog.defineClass.createSealingConstructor_ = function(ctr, superClass) {
|
|
558
|
+
if (!goog.defineClass.SEAL_CLASS_INSTANCES) {
|
|
559
|
+
return ctr;
|
|
560
|
+
}
|
|
561
|
+
var wrappedCtr = function() {
|
|
562
|
+
var instance = ctr.apply(this, arguments) || this;
|
|
563
|
+
instance[goog.UID_PROPERTY_] = instance[goog.UID_PROPERTY_];
|
|
564
|
+
return instance;
|
|
565
|
+
};
|
|
566
|
+
return wrappedCtr;
|
|
567
|
+
};
|
|
568
|
+
goog.defineClass.OBJECT_PROTOTYPE_FIELDS_ = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
|
|
569
|
+
goog.defineClass.applyProperties_ = function(target, source) {
|
|
570
|
+
var key;
|
|
571
|
+
for (key in source) {
|
|
572
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
573
|
+
target[key] = source[key];
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
var i = 0;
|
|
577
|
+
for (; i < goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length; i++) {
|
|
578
|
+
key = goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[i];
|
|
579
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
580
|
+
target[key] = source[key];
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
};
|
|
584
|
+
goog.identity_ = function(s) {
|
|
585
|
+
return s;
|
|
586
|
+
};
|
|
587
|
+
goog.createTrustedTypesPolicy = function(name) {
|
|
588
|
+
var policy = null;
|
|
589
|
+
var policyFactory = goog.global.trustedTypes;
|
|
590
|
+
if (!policyFactory || !policyFactory.createPolicy) {
|
|
591
|
+
return policy;
|
|
592
|
+
}
|
|
593
|
+
try {
|
|
594
|
+
policy = policyFactory.createPolicy(name, {createHTML:goog.identity_, createScript:goog.identity_, createScriptURL:goog.identity_});
|
|
595
|
+
} catch (e) {
|
|
596
|
+
goog.logToConsole_(e.message);
|
|
597
|
+
}
|
|
598
|
+
return policy;
|
|
599
|
+
};
|
|
600
|
+
if (!COMPILED && goog.DEPENDENCIES_ENABLED) {
|
|
601
|
+
goog.isEdge_ = function() {
|
|
602
|
+
var userAgent = goog.global.navigator && goog.global.navigator.userAgent ? goog.global.navigator.userAgent : "";
|
|
603
|
+
var edgeRe = /Edge\/(\d+)(\.\d)*/i;
|
|
604
|
+
return !!userAgent.match(edgeRe);
|
|
605
|
+
};
|
|
606
|
+
goog.inHtmlDocument_ = function() {
|
|
607
|
+
var doc = goog.global.document;
|
|
608
|
+
return doc != null && "write" in doc;
|
|
609
|
+
};
|
|
610
|
+
goog.isDocumentLoading_ = function() {
|
|
611
|
+
var doc = goog.global.document;
|
|
612
|
+
return doc.attachEvent ? doc.readyState != "complete" : doc.readyState == "loading";
|
|
613
|
+
};
|
|
614
|
+
goog.findBasePath_ = function() {
|
|
615
|
+
if (goog.global.CLOSURE_BASE_PATH != undefined && typeof goog.global.CLOSURE_BASE_PATH === "string") {
|
|
616
|
+
goog.basePath = goog.global.CLOSURE_BASE_PATH;
|
|
617
|
+
return;
|
|
618
|
+
} else if (!goog.inHtmlDocument_()) {
|
|
619
|
+
return;
|
|
620
|
+
}
|
|
621
|
+
var doc = goog.global.document;
|
|
622
|
+
var currentScript = doc.currentScript;
|
|
623
|
+
if (currentScript) {
|
|
624
|
+
var scripts = [currentScript];
|
|
625
|
+
} else {
|
|
626
|
+
scripts = doc.getElementsByTagName("SCRIPT");
|
|
627
|
+
}
|
|
628
|
+
var i = scripts.length - 1;
|
|
629
|
+
for (; i >= 0; --i) {
|
|
630
|
+
var script = scripts[i];
|
|
631
|
+
var src = script.src;
|
|
632
|
+
var qmark = src.lastIndexOf("?");
|
|
633
|
+
var l = qmark == -1 ? src.length : qmark;
|
|
634
|
+
if (src.slice(l - 7, l) == "base.js") {
|
|
635
|
+
goog.basePath = src.slice(0, l - 7);
|
|
636
|
+
return;
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
};
|
|
640
|
+
goog.findBasePath_();
|
|
641
|
+
goog.protectScriptTag_ = function(str) {
|
|
642
|
+
return str.replace(/<\/(SCRIPT)/ig, "\\x3c/$1");
|
|
643
|
+
};
|
|
644
|
+
goog.DebugLoader_ = function() {
|
|
645
|
+
this.dependencies_ = {};
|
|
646
|
+
this.idToPath_ = {};
|
|
647
|
+
this.written_ = {};
|
|
648
|
+
this.loadingDeps_ = [];
|
|
649
|
+
this.depsToLoad_ = [];
|
|
650
|
+
this.paused_ = false;
|
|
651
|
+
this.factory_ = new goog.DependencyFactory();
|
|
652
|
+
this.deferredCallbacks_ = {};
|
|
653
|
+
this.deferredQueue_ = [];
|
|
654
|
+
};
|
|
655
|
+
goog.DebugLoader_.prototype.bootstrap = function(namespaces, callback) {
|
|
656
|
+
function resolve() {
|
|
657
|
+
if (cb) {
|
|
658
|
+
goog.global.setTimeout(cb, 0);
|
|
659
|
+
cb = null;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
var cb = callback;
|
|
663
|
+
if (!namespaces.length) {
|
|
664
|
+
resolve();
|
|
665
|
+
return;
|
|
666
|
+
}
|
|
667
|
+
var deps = [];
|
|
668
|
+
var i = 0;
|
|
669
|
+
for (; i < namespaces.length; i++) {
|
|
670
|
+
var path = this.getPathFromDeps_(namespaces[i]);
|
|
671
|
+
if (!path) {
|
|
672
|
+
throw new Error("Unregonized namespace: " + namespaces[i]);
|
|
673
|
+
}
|
|
674
|
+
deps.push(this.dependencies_[path]);
|
|
675
|
+
}
|
|
676
|
+
var require = goog.require;
|
|
677
|
+
var loaded = 0;
|
|
678
|
+
i = 0;
|
|
679
|
+
for (; i < namespaces.length; i++) {
|
|
680
|
+
require(namespaces[i]);
|
|
681
|
+
deps[i].onLoad(function() {
|
|
682
|
+
if (++loaded == namespaces.length) {
|
|
683
|
+
resolve();
|
|
684
|
+
}
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
};
|
|
688
|
+
goog.DebugLoader_.prototype.loadClosureDeps = function() {
|
|
689
|
+
var relPath = "deps.js";
|
|
690
|
+
this.depsToLoad_.push(this.factory_.createDependency(goog.normalizePath_(goog.basePath + relPath), relPath, [], [], {}));
|
|
691
|
+
this.loadDeps_();
|
|
692
|
+
};
|
|
693
|
+
goog.DebugLoader_.prototype.requested = function(absPathOrId, opt_force) {
|
|
694
|
+
var path = this.getPathFromDeps_(absPathOrId);
|
|
695
|
+
if (path && (opt_force || this.areDepsLoaded_(this.dependencies_[path].requires))) {
|
|
696
|
+
var callback = this.deferredCallbacks_[path];
|
|
697
|
+
if (callback) {
|
|
698
|
+
delete this.deferredCallbacks_[path];
|
|
699
|
+
callback();
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
};
|
|
703
|
+
goog.DebugLoader_.prototype.setDependencyFactory = function(factory) {
|
|
704
|
+
this.factory_ = factory;
|
|
705
|
+
};
|
|
706
|
+
goog.DebugLoader_.prototype.load_ = function(namespace) {
|
|
707
|
+
if (!this.getPathFromDeps_(namespace)) {
|
|
708
|
+
var errorMessage = "goog.require could not find: " + namespace;
|
|
709
|
+
goog.logToConsole_(errorMessage);
|
|
710
|
+
} else {
|
|
711
|
+
var loader = this;
|
|
712
|
+
var deps = [];
|
|
713
|
+
var visit = function(namespace) {
|
|
714
|
+
var path = loader.getPathFromDeps_(namespace);
|
|
715
|
+
if (!path) {
|
|
716
|
+
throw new Error("Bad dependency path or symbol: " + namespace);
|
|
717
|
+
}
|
|
718
|
+
if (loader.written_[path]) {
|
|
719
|
+
return;
|
|
720
|
+
}
|
|
721
|
+
loader.written_[path] = true;
|
|
722
|
+
var dep = loader.dependencies_[path];
|
|
723
|
+
var i = 0;
|
|
724
|
+
for (; i < dep.requires.length; i++) {
|
|
725
|
+
if (!goog.isProvided_(dep.requires[i])) {
|
|
726
|
+
visit(dep.requires[i]);
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
deps.push(dep);
|
|
730
|
+
};
|
|
731
|
+
visit(namespace);
|
|
732
|
+
var wasLoading = !!this.depsToLoad_.length;
|
|
733
|
+
this.depsToLoad_ = this.depsToLoad_.concat(deps);
|
|
734
|
+
if (!this.paused_ && !wasLoading) {
|
|
735
|
+
this.loadDeps_();
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
};
|
|
739
|
+
goog.DebugLoader_.prototype.loadDeps_ = function() {
|
|
740
|
+
var loader = this;
|
|
741
|
+
var paused = this.paused_;
|
|
742
|
+
for (; this.depsToLoad_.length && !paused;) {
|
|
743
|
+
(function() {
|
|
744
|
+
var loadCallDone = false;
|
|
745
|
+
var dep = loader.depsToLoad_.shift();
|
|
746
|
+
var loaded = false;
|
|
747
|
+
loader.loading_(dep);
|
|
748
|
+
var controller = {pause:function() {
|
|
749
|
+
if (loadCallDone) {
|
|
750
|
+
throw new Error("Cannot call pause after the call to load.");
|
|
751
|
+
} else {
|
|
752
|
+
paused = true;
|
|
753
|
+
}
|
|
754
|
+
}, resume:function() {
|
|
755
|
+
if (loadCallDone) {
|
|
756
|
+
loader.resume_();
|
|
757
|
+
} else {
|
|
758
|
+
paused = false;
|
|
759
|
+
}
|
|
760
|
+
}, loaded:function() {
|
|
761
|
+
if (loaded) {
|
|
762
|
+
throw new Error("Double call to loaded.");
|
|
763
|
+
}
|
|
764
|
+
loaded = true;
|
|
765
|
+
loader.loaded_(dep);
|
|
766
|
+
}, pending:function() {
|
|
767
|
+
var pending = [];
|
|
768
|
+
var i = 0;
|
|
769
|
+
for (; i < loader.loadingDeps_.length; i++) {
|
|
770
|
+
pending.push(loader.loadingDeps_[i]);
|
|
771
|
+
}
|
|
772
|
+
return pending;
|
|
773
|
+
}, setModuleState:function(type) {
|
|
774
|
+
goog.moduleLoaderState_ = {type:type, moduleName:"", declareLegacyNamespace:false};
|
|
775
|
+
}, registerEs6ModuleExports:function(path, exports, opt_closureNamespace) {
|
|
776
|
+
if (opt_closureNamespace) {
|
|
777
|
+
goog.loadedModules_[opt_closureNamespace] = {exports:exports, type:goog.ModuleType.ES6, moduleId:opt_closureNamespace || ""};
|
|
778
|
+
}
|
|
779
|
+
}, registerGoogModuleExports:function(moduleId, exports) {
|
|
780
|
+
goog.loadedModules_[moduleId] = {exports:exports, type:goog.ModuleType.GOOG, moduleId:moduleId};
|
|
781
|
+
}, clearModuleState:function() {
|
|
782
|
+
goog.moduleLoaderState_ = null;
|
|
783
|
+
}, defer:function(callback) {
|
|
784
|
+
if (loadCallDone) {
|
|
785
|
+
throw new Error("Cannot register with defer after the call to load.");
|
|
786
|
+
}
|
|
787
|
+
loader.defer_(dep, callback);
|
|
788
|
+
}, areDepsLoaded:function() {
|
|
789
|
+
return loader.areDepsLoaded_(dep.requires);
|
|
790
|
+
}};
|
|
791
|
+
try {
|
|
792
|
+
dep.load(controller);
|
|
793
|
+
} finally {
|
|
794
|
+
loadCallDone = true;
|
|
795
|
+
}
|
|
796
|
+
})();
|
|
797
|
+
}
|
|
798
|
+
if (paused) {
|
|
799
|
+
this.pause_();
|
|
800
|
+
}
|
|
801
|
+
};
|
|
802
|
+
goog.DebugLoader_.prototype.pause_ = function() {
|
|
803
|
+
this.paused_ = true;
|
|
804
|
+
};
|
|
805
|
+
goog.DebugLoader_.prototype.resume_ = function() {
|
|
806
|
+
if (this.paused_) {
|
|
807
|
+
this.paused_ = false;
|
|
808
|
+
this.loadDeps_();
|
|
809
|
+
}
|
|
810
|
+
};
|
|
811
|
+
goog.DebugLoader_.prototype.loading_ = function(dep) {
|
|
812
|
+
this.loadingDeps_.push(dep);
|
|
813
|
+
};
|
|
814
|
+
goog.DebugLoader_.prototype.loaded_ = function(dep) {
|
|
815
|
+
var i = 0;
|
|
816
|
+
for (; i < this.loadingDeps_.length; i++) {
|
|
817
|
+
if (this.loadingDeps_[i] == dep) {
|
|
818
|
+
this.loadingDeps_.splice(i, 1);
|
|
819
|
+
break;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
i = 0;
|
|
823
|
+
for (; i < this.deferredQueue_.length; i++) {
|
|
824
|
+
if (this.deferredQueue_[i] == dep.path) {
|
|
825
|
+
this.deferredQueue_.splice(i, 1);
|
|
826
|
+
break;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
if (this.loadingDeps_.length == this.deferredQueue_.length && !this.depsToLoad_.length) {
|
|
830
|
+
for (; this.deferredQueue_.length;) {
|
|
831
|
+
this.requested(this.deferredQueue_.shift(), true);
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
dep.loaded();
|
|
835
|
+
};
|
|
836
|
+
goog.DebugLoader_.prototype.areDepsLoaded_ = function(pathsOrIds) {
|
|
837
|
+
var i = 0;
|
|
838
|
+
for (; i < pathsOrIds.length; i++) {
|
|
839
|
+
var path = this.getPathFromDeps_(pathsOrIds[i]);
|
|
840
|
+
if (!path || !(path in this.deferredCallbacks_) && !goog.isProvided_(pathsOrIds[i])) {
|
|
841
|
+
return false;
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
return true;
|
|
845
|
+
};
|
|
846
|
+
goog.DebugLoader_.prototype.getPathFromDeps_ = function(absPathOrId) {
|
|
847
|
+
if (absPathOrId in this.idToPath_) {
|
|
848
|
+
return this.idToPath_[absPathOrId];
|
|
849
|
+
} else if (absPathOrId in this.dependencies_) {
|
|
850
|
+
return absPathOrId;
|
|
851
|
+
} else {
|
|
852
|
+
return null;
|
|
853
|
+
}
|
|
854
|
+
};
|
|
855
|
+
goog.DebugLoader_.prototype.defer_ = function(dependency, callback) {
|
|
856
|
+
this.deferredCallbacks_[dependency.path] = callback;
|
|
857
|
+
this.deferredQueue_.push(dependency.path);
|
|
858
|
+
};
|
|
859
|
+
goog.LoadController = function() {
|
|
860
|
+
};
|
|
861
|
+
goog.LoadController.prototype.pause = function() {
|
|
862
|
+
};
|
|
863
|
+
goog.LoadController.prototype.resume = function() {
|
|
864
|
+
};
|
|
865
|
+
goog.LoadController.prototype.loaded = function() {
|
|
866
|
+
};
|
|
867
|
+
goog.LoadController.prototype.pending = function() {
|
|
868
|
+
};
|
|
869
|
+
goog.LoadController.prototype.registerEs6ModuleExports = function(path, exports, opt_closureNamespace) {
|
|
870
|
+
};
|
|
871
|
+
goog.LoadController.prototype.setModuleState = function(type) {
|
|
872
|
+
};
|
|
873
|
+
goog.LoadController.prototype.clearModuleState = function() {
|
|
874
|
+
};
|
|
875
|
+
goog.LoadController.prototype.defer = function(callback) {
|
|
876
|
+
};
|
|
877
|
+
goog.LoadController.prototype.areDepsLoaded = function() {
|
|
878
|
+
};
|
|
879
|
+
goog.Dependency = function(path, relativePath, provides, requires, loadFlags) {
|
|
880
|
+
this.path = path;
|
|
881
|
+
this.relativePath = relativePath;
|
|
882
|
+
this.provides = provides;
|
|
883
|
+
this.requires = requires;
|
|
884
|
+
this.loadFlags = loadFlags;
|
|
885
|
+
this.loaded_ = false;
|
|
886
|
+
this.loadCallbacks_ = [];
|
|
887
|
+
};
|
|
888
|
+
goog.Dependency.prototype.getPathName = function() {
|
|
889
|
+
var pathName = this.path;
|
|
890
|
+
var protocolIndex = pathName.indexOf("://");
|
|
891
|
+
if (protocolIndex >= 0) {
|
|
892
|
+
pathName = pathName.substring(protocolIndex + 3);
|
|
893
|
+
var slashIndex = pathName.indexOf("/");
|
|
894
|
+
if (slashIndex >= 0) {
|
|
895
|
+
pathName = pathName.substring(slashIndex + 1);
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
return pathName;
|
|
899
|
+
};
|
|
900
|
+
goog.Dependency.prototype.onLoad = function(callback) {
|
|
901
|
+
if (this.loaded_) {
|
|
902
|
+
callback();
|
|
903
|
+
} else {
|
|
904
|
+
this.loadCallbacks_.push(callback);
|
|
905
|
+
}
|
|
906
|
+
};
|
|
907
|
+
goog.Dependency.prototype.loaded = function() {
|
|
908
|
+
this.loaded_ = true;
|
|
909
|
+
var callbacks = this.loadCallbacks_;
|
|
910
|
+
this.loadCallbacks_ = [];
|
|
911
|
+
var i = 0;
|
|
912
|
+
for (; i < callbacks.length; i++) {
|
|
913
|
+
callbacks[i]();
|
|
914
|
+
}
|
|
915
|
+
};
|
|
916
|
+
goog.Dependency.defer_ = false;
|
|
917
|
+
goog.Dependency.callbackMap_ = {};
|
|
918
|
+
goog.Dependency.registerCallback_ = function(callback) {
|
|
919
|
+
var key = Math.random().toString(32);
|
|
920
|
+
goog.Dependency.callbackMap_[key] = callback;
|
|
921
|
+
return key;
|
|
922
|
+
};
|
|
923
|
+
goog.Dependency.unregisterCallback_ = function(key) {
|
|
924
|
+
delete goog.Dependency.callbackMap_[key];
|
|
925
|
+
};
|
|
926
|
+
goog.Dependency.callback_ = function(key, var_args) {
|
|
927
|
+
if (key in goog.Dependency.callbackMap_) {
|
|
928
|
+
var callback = goog.Dependency.callbackMap_[key];
|
|
929
|
+
var args = [];
|
|
930
|
+
var i = 1;
|
|
931
|
+
for (; i < arguments.length; i++) {
|
|
932
|
+
args.push(arguments[i]);
|
|
933
|
+
}
|
|
934
|
+
callback.apply(undefined, args);
|
|
935
|
+
} else {
|
|
936
|
+
var errorMessage = "Callback key " + key + " does not exist (was base.js loaded more than once?).";
|
|
937
|
+
throw Error(errorMessage);
|
|
938
|
+
}
|
|
939
|
+
};
|
|
940
|
+
goog.Dependency.prototype.load = function(controller) {
|
|
941
|
+
if (goog.global.CLOSURE_IMPORT_SCRIPT) {
|
|
942
|
+
if (goog.global.CLOSURE_IMPORT_SCRIPT(this.path)) {
|
|
943
|
+
controller.loaded();
|
|
944
|
+
} else {
|
|
945
|
+
controller.pause();
|
|
946
|
+
}
|
|
947
|
+
return;
|
|
948
|
+
}
|
|
949
|
+
if (!goog.inHtmlDocument_()) {
|
|
950
|
+
goog.logToConsole_("Cannot use default debug loader outside of HTML documents.");
|
|
951
|
+
if (this.relativePath == "deps.js") {
|
|
952
|
+
goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, " + "or setting CLOSURE_NO_DEPS to true.");
|
|
953
|
+
controller.loaded();
|
|
954
|
+
} else {
|
|
955
|
+
controller.pause();
|
|
956
|
+
}
|
|
957
|
+
return;
|
|
958
|
+
}
|
|
959
|
+
var doc = goog.global.document;
|
|
960
|
+
if (doc.readyState == "complete" && !goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING) {
|
|
961
|
+
var isDeps = /\bdeps.js$/.test(this.path);
|
|
962
|
+
if (isDeps) {
|
|
963
|
+
controller.loaded();
|
|
964
|
+
return;
|
|
965
|
+
} else {
|
|
966
|
+
throw Error('Cannot write "' + this.path + '" after document load');
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
var nonce = goog.getScriptNonce_();
|
|
970
|
+
if (!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING && goog.isDocumentLoading_()) {
|
|
971
|
+
var key;
|
|
972
|
+
var callback = function(script) {
|
|
973
|
+
if (script.readyState && script.readyState != "complete") {
|
|
974
|
+
script.onload = callback;
|
|
975
|
+
return;
|
|
976
|
+
}
|
|
977
|
+
goog.Dependency.unregisterCallback_(key);
|
|
978
|
+
controller.loaded();
|
|
979
|
+
};
|
|
980
|
+
key = goog.Dependency.registerCallback_(callback);
|
|
981
|
+
var defer = goog.Dependency.defer_ ? " defer" : "";
|
|
982
|
+
var nonceAttr = nonce ? ' nonce\x3d"' + nonce + '"' : "";
|
|
983
|
+
var script = '\x3cscript src\x3d"' + this.path + '"' + nonceAttr + defer + ' id\x3d"script-' + key + '"\x3e\x3c/script\x3e';
|
|
984
|
+
script = script + ("\x3cscript" + nonceAttr + "\x3e");
|
|
985
|
+
if (goog.Dependency.defer_) {
|
|
986
|
+
script = script + ("document.getElementById('script-" + key + "').onload \x3d function() {\n" + " goog.Dependency.callback_('" + key + "', this);\n" + "};\n");
|
|
987
|
+
} else {
|
|
988
|
+
script = script + ("goog.Dependency.callback_('" + key + "', document.getElementById('script-" + key + "'));");
|
|
989
|
+
}
|
|
990
|
+
script = script + "\x3c/script\x3e";
|
|
991
|
+
doc.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(script) : script);
|
|
992
|
+
} else {
|
|
993
|
+
var scriptEl = doc.createElement("script");
|
|
994
|
+
scriptEl.defer = goog.Dependency.defer_;
|
|
995
|
+
scriptEl.async = false;
|
|
996
|
+
if (nonce) {
|
|
997
|
+
scriptEl.nonce = nonce;
|
|
998
|
+
}
|
|
999
|
+
scriptEl.onload = function() {
|
|
1000
|
+
scriptEl.onload = null;
|
|
1001
|
+
controller.loaded();
|
|
1002
|
+
};
|
|
1003
|
+
scriptEl.src = goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path) : this.path;
|
|
1004
|
+
doc.head.appendChild(scriptEl);
|
|
1005
|
+
}
|
|
1006
|
+
};
|
|
1007
|
+
goog.Es6ModuleDependency = function(path, relativePath, provides, requires, loadFlags) {
|
|
1008
|
+
goog.Es6ModuleDependency.base(this, "constructor", path, relativePath, provides, requires, loadFlags);
|
|
1009
|
+
};
|
|
1010
|
+
goog.inherits(goog.Es6ModuleDependency, goog.Dependency);
|
|
1011
|
+
goog.Es6ModuleDependency.prototype.load = function(controller) {
|
|
1012
|
+
function write(src, contents) {
|
|
1013
|
+
var nonceAttr = "";
|
|
1014
|
+
var nonce = goog.getScriptNonce_();
|
|
1015
|
+
if (nonce) {
|
|
1016
|
+
nonceAttr = ' nonce\x3d"' + nonce + '"';
|
|
1017
|
+
}
|
|
1018
|
+
if (contents) {
|
|
1019
|
+
var script = '\x3cscript type\x3d"module" crossorigin' + nonceAttr + "\x3e" + contents + "\x3c/" + "script\x3e";
|
|
1020
|
+
doc.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(script) : script);
|
|
1021
|
+
} else {
|
|
1022
|
+
script = '\x3cscript type\x3d"module" crossorigin src\x3d"' + src + '"' + nonceAttr + "\x3e\x3c/" + "script\x3e";
|
|
1023
|
+
doc.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(script) : script);
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
function append(src, contents) {
|
|
1027
|
+
var scriptEl = doc.createElement("script");
|
|
1028
|
+
scriptEl.defer = true;
|
|
1029
|
+
scriptEl.async = false;
|
|
1030
|
+
scriptEl.type = "module";
|
|
1031
|
+
scriptEl.setAttribute("crossorigin", true);
|
|
1032
|
+
var nonce = goog.getScriptNonce_();
|
|
1033
|
+
if (nonce) {
|
|
1034
|
+
scriptEl.nonce = nonce;
|
|
1035
|
+
}
|
|
1036
|
+
if (contents) {
|
|
1037
|
+
scriptEl.text = goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createScript(contents) : contents;
|
|
1038
|
+
} else {
|
|
1039
|
+
scriptEl.src = goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createScriptURL(src) : src;
|
|
1040
|
+
}
|
|
1041
|
+
doc.head.appendChild(scriptEl);
|
|
1042
|
+
}
|
|
1043
|
+
if (goog.global.CLOSURE_IMPORT_SCRIPT) {
|
|
1044
|
+
if (goog.global.CLOSURE_IMPORT_SCRIPT(this.path)) {
|
|
1045
|
+
controller.loaded();
|
|
1046
|
+
} else {
|
|
1047
|
+
controller.pause();
|
|
1048
|
+
}
|
|
1049
|
+
return;
|
|
1050
|
+
}
|
|
1051
|
+
if (!goog.inHtmlDocument_()) {
|
|
1052
|
+
goog.logToConsole_("Cannot use default debug loader outside of HTML documents.");
|
|
1053
|
+
controller.pause();
|
|
1054
|
+
return;
|
|
1055
|
+
}
|
|
1056
|
+
var doc = goog.global.document;
|
|
1057
|
+
var dep = this;
|
|
1058
|
+
var create;
|
|
1059
|
+
if (goog.isDocumentLoading_()) {
|
|
1060
|
+
create = write;
|
|
1061
|
+
goog.Dependency.defer_ = true;
|
|
1062
|
+
} else {
|
|
1063
|
+
create = append;
|
|
1064
|
+
}
|
|
1065
|
+
var beforeKey = goog.Dependency.registerCallback_(function() {
|
|
1066
|
+
goog.Dependency.unregisterCallback_(beforeKey);
|
|
1067
|
+
controller.setModuleState(goog.ModuleType.ES6);
|
|
1068
|
+
});
|
|
1069
|
+
create(undefined, 'goog.Dependency.callback_("' + beforeKey + '")');
|
|
1070
|
+
create(this.path, undefined);
|
|
1071
|
+
var registerKey = goog.Dependency.registerCallback_(function(exports) {
|
|
1072
|
+
goog.Dependency.unregisterCallback_(registerKey);
|
|
1073
|
+
controller.registerEs6ModuleExports(dep.path, exports, goog.moduleLoaderState_.moduleName);
|
|
1074
|
+
});
|
|
1075
|
+
create(undefined, 'import * as m from "' + this.path + '"; goog.Dependency.callback_("' + registerKey + '", m)');
|
|
1076
|
+
var afterKey = goog.Dependency.registerCallback_(function() {
|
|
1077
|
+
goog.Dependency.unregisterCallback_(afterKey);
|
|
1078
|
+
controller.clearModuleState();
|
|
1079
|
+
controller.loaded();
|
|
1080
|
+
});
|
|
1081
|
+
create(undefined, 'goog.Dependency.callback_("' + afterKey + '")');
|
|
1082
|
+
};
|
|
1083
|
+
goog.TransformedDependency = function(path, relativePath, provides, requires, loadFlags) {
|
|
1084
|
+
goog.TransformedDependency.base(this, "constructor", path, relativePath, provides, requires, loadFlags);
|
|
1085
|
+
this.contents_ = null;
|
|
1086
|
+
this.lazyFetch_ = !goog.inHtmlDocument_() || !("noModule" in goog.global.document.createElement("script"));
|
|
1087
|
+
};
|
|
1088
|
+
goog.inherits(goog.TransformedDependency, goog.Dependency);
|
|
1089
|
+
goog.TransformedDependency.prototype.load = function(controller) {
|
|
1090
|
+
function fetch() {
|
|
1091
|
+
dep.contents_ = goog.loadFileSync_(dep.path);
|
|
1092
|
+
if (dep.contents_) {
|
|
1093
|
+
dep.contents_ = dep.transform(dep.contents_);
|
|
1094
|
+
if (dep.contents_) {
|
|
1095
|
+
dep.contents_ += "\n//# sourceURL\x3d" + dep.path;
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
function load() {
|
|
1100
|
+
if (dep.lazyFetch_) {
|
|
1101
|
+
fetch();
|
|
1102
|
+
}
|
|
1103
|
+
if (!dep.contents_) {
|
|
1104
|
+
return;
|
|
1105
|
+
}
|
|
1106
|
+
if (isEs6) {
|
|
1107
|
+
controller.setModuleState(goog.ModuleType.ES6);
|
|
1108
|
+
}
|
|
1109
|
+
var namespace;
|
|
1110
|
+
try {
|
|
1111
|
+
var contents = dep.contents_;
|
|
1112
|
+
dep.contents_ = null;
|
|
1113
|
+
goog.globalEval(goog.CLOSURE_EVAL_PREFILTER_.createScript(contents));
|
|
1114
|
+
if (isEs6) {
|
|
1115
|
+
namespace = goog.moduleLoaderState_.moduleName;
|
|
1116
|
+
}
|
|
1117
|
+
} finally {
|
|
1118
|
+
if (isEs6) {
|
|
1119
|
+
controller.clearModuleState();
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
if (isEs6) {
|
|
1123
|
+
goog.global["$jscomp"]["require"]["ensure"]([dep.getPathName()], function() {
|
|
1124
|
+
controller.registerEs6ModuleExports(dep.path, goog.global["$jscomp"]["require"](dep.getPathName()), namespace);
|
|
1125
|
+
});
|
|
1126
|
+
}
|
|
1127
|
+
controller.loaded();
|
|
1128
|
+
}
|
|
1129
|
+
function fetchInOwnScriptThenLoad() {
|
|
1130
|
+
var doc = goog.global.document;
|
|
1131
|
+
var key = goog.Dependency.registerCallback_(function() {
|
|
1132
|
+
goog.Dependency.unregisterCallback_(key);
|
|
1133
|
+
load();
|
|
1134
|
+
});
|
|
1135
|
+
var nonce = goog.getScriptNonce_();
|
|
1136
|
+
var nonceAttr = nonce ? ' nonce\x3d"' + nonce + '"' : "";
|
|
1137
|
+
var script = "\x3cscript" + nonceAttr + "\x3e" + goog.protectScriptTag_('goog.Dependency.callback_("' + key + '");') + "\x3c/" + "script\x3e";
|
|
1138
|
+
doc.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(script) : script);
|
|
1139
|
+
}
|
|
1140
|
+
var dep = this;
|
|
1141
|
+
if (goog.global.CLOSURE_IMPORT_SCRIPT) {
|
|
1142
|
+
fetch();
|
|
1143
|
+
if (this.contents_ && goog.global.CLOSURE_IMPORT_SCRIPT("", this.contents_)) {
|
|
1144
|
+
this.contents_ = null;
|
|
1145
|
+
controller.loaded();
|
|
1146
|
+
} else {
|
|
1147
|
+
controller.pause();
|
|
1148
|
+
}
|
|
1149
|
+
return;
|
|
1150
|
+
}
|
|
1151
|
+
var isEs6 = this.loadFlags["module"] == goog.ModuleType.ES6;
|
|
1152
|
+
if (!this.lazyFetch_) {
|
|
1153
|
+
fetch();
|
|
1154
|
+
}
|
|
1155
|
+
var anythingElsePending = controller.pending().length > 1;
|
|
1156
|
+
var needsAsyncLoading = goog.Dependency.defer_ && (anythingElsePending || goog.isDocumentLoading_());
|
|
1157
|
+
if (needsAsyncLoading) {
|
|
1158
|
+
controller.defer(function() {
|
|
1159
|
+
load();
|
|
1160
|
+
});
|
|
1161
|
+
return;
|
|
1162
|
+
}
|
|
1163
|
+
var doc = goog.global.document;
|
|
1164
|
+
var isInternetExplorerOrEdge = goog.inHtmlDocument_() && ("ActiveXObject" in goog.global || goog.isEdge_());
|
|
1165
|
+
if (isEs6 && goog.inHtmlDocument_() && goog.isDocumentLoading_() && !isInternetExplorerOrEdge) {
|
|
1166
|
+
goog.Dependency.defer_ = true;
|
|
1167
|
+
controller.pause();
|
|
1168
|
+
var oldCallback = doc.onreadystatechange;
|
|
1169
|
+
doc.onreadystatechange = function() {
|
|
1170
|
+
if (doc.readyState == "interactive") {
|
|
1171
|
+
doc.onreadystatechange = oldCallback;
|
|
1172
|
+
load();
|
|
1173
|
+
controller.resume();
|
|
1174
|
+
}
|
|
1175
|
+
if (typeof oldCallback === "function") {
|
|
1176
|
+
oldCallback.apply(undefined, arguments);
|
|
1177
|
+
}
|
|
1178
|
+
};
|
|
1179
|
+
} else {
|
|
1180
|
+
if (!goog.inHtmlDocument_() || !goog.isDocumentLoading_()) {
|
|
1181
|
+
load();
|
|
1182
|
+
} else {
|
|
1183
|
+
fetchInOwnScriptThenLoad();
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
};
|
|
1187
|
+
goog.TransformedDependency.prototype.transform = function(contents) {
|
|
1188
|
+
};
|
|
1189
|
+
goog.PreTranspiledEs6ModuleDependency = function(path, relativePath, provides, requires, loadFlags) {
|
|
1190
|
+
goog.PreTranspiledEs6ModuleDependency.base(this, "constructor", path, relativePath, provides, requires, loadFlags);
|
|
1191
|
+
};
|
|
1192
|
+
goog.inherits(goog.PreTranspiledEs6ModuleDependency, goog.TransformedDependency);
|
|
1193
|
+
goog.PreTranspiledEs6ModuleDependency.prototype.transform = function(contents) {
|
|
1194
|
+
return contents;
|
|
1195
|
+
};
|
|
1196
|
+
goog.GoogModuleDependency = function(path, relativePath, provides, requires, loadFlags) {
|
|
1197
|
+
goog.GoogModuleDependency.base(this, "constructor", path, relativePath, provides, requires, loadFlags);
|
|
1198
|
+
};
|
|
1199
|
+
goog.inherits(goog.GoogModuleDependency, goog.TransformedDependency);
|
|
1200
|
+
goog.GoogModuleDependency.prototype.transform = function(contents) {
|
|
1201
|
+
if (!goog.LOAD_MODULE_USING_EVAL || goog.global.JSON === undefined) {
|
|
1202
|
+
return "" + "goog.loadModule(function(exports) {" + '"use strict";' + contents + "\n" + ";return exports" + "});" + "\n//# sourceURL\x3d" + this.path + "\n";
|
|
1203
|
+
} else {
|
|
1204
|
+
return "" + "goog.loadModule(" + goog.global.JSON.stringify(contents + "\n//# sourceURL\x3d" + this.path + "\n") + ");";
|
|
1205
|
+
}
|
|
1206
|
+
};
|
|
1207
|
+
goog.DebugLoader_.prototype.addDependency = function(relPath, provides, requires, opt_loadFlags) {
|
|
1208
|
+
provides = provides || [];
|
|
1209
|
+
relPath = relPath.replace(/\\/g, "/");
|
|
1210
|
+
var path = goog.normalizePath_(goog.basePath + relPath);
|
|
1211
|
+
if (!opt_loadFlags || typeof opt_loadFlags === "boolean") {
|
|
1212
|
+
opt_loadFlags = opt_loadFlags ? {"module":goog.ModuleType.GOOG} : {};
|
|
1213
|
+
}
|
|
1214
|
+
var dep = this.factory_.createDependency(path, relPath, provides, requires, opt_loadFlags);
|
|
1215
|
+
this.dependencies_[path] = dep;
|
|
1216
|
+
var i = 0;
|
|
1217
|
+
for (; i < provides.length; i++) {
|
|
1218
|
+
this.idToPath_[provides[i]] = path;
|
|
1219
|
+
}
|
|
1220
|
+
this.idToPath_[relPath] = path;
|
|
1221
|
+
};
|
|
1222
|
+
goog.DependencyFactory = function() {
|
|
1223
|
+
};
|
|
1224
|
+
goog.DependencyFactory.prototype.createDependency = function(path, relativePath, provides, requires, loadFlags) {
|
|
1225
|
+
if (loadFlags["module"] == goog.ModuleType.GOOG) {
|
|
1226
|
+
return new goog.GoogModuleDependency(path, relativePath, provides, requires, loadFlags);
|
|
1227
|
+
} else {
|
|
1228
|
+
if (loadFlags["module"] == goog.ModuleType.ES6) {
|
|
1229
|
+
if (goog.ASSUME_ES_MODULES_TRANSPILED) {
|
|
1230
|
+
return new goog.PreTranspiledEs6ModuleDependency(path, relativePath, provides, requires, loadFlags);
|
|
1231
|
+
} else {
|
|
1232
|
+
return new goog.Es6ModuleDependency(path, relativePath, provides, requires, loadFlags);
|
|
1233
|
+
}
|
|
1234
|
+
} else {
|
|
1235
|
+
return new goog.Dependency(path, relativePath, provides, requires, loadFlags);
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
};
|
|
1239
|
+
goog.debugLoader_ = new goog.DebugLoader_();
|
|
1240
|
+
goog.loadClosureDeps = function() {
|
|
1241
|
+
goog.debugLoader_.loadClosureDeps();
|
|
1242
|
+
};
|
|
1243
|
+
goog.setDependencyFactory = function(factory) {
|
|
1244
|
+
goog.debugLoader_.setDependencyFactory(factory);
|
|
1245
|
+
};
|
|
1246
|
+
goog.TRUSTED_TYPES_POLICY_ = goog.TRUSTED_TYPES_POLICY_NAME ? goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME + "#base") : null;
|
|
1247
|
+
if (!goog.global.CLOSURE_NO_DEPS) {
|
|
1248
|
+
goog.debugLoader_.loadClosureDeps();
|
|
1249
|
+
}
|
|
1250
|
+
goog.bootstrap = function(namespaces, callback) {
|
|
1251
|
+
goog.debugLoader_.bootstrap(namespaces, callback);
|
|
1252
|
+
};
|
|
1253
|
+
}
|
|
1254
|
+
if (!COMPILED) {
|
|
1255
|
+
var isChrome87 = false;
|
|
1256
|
+
try {
|
|
1257
|
+
isChrome87 = eval(goog.global.trustedTypes.emptyScript) !== goog.global.trustedTypes.emptyScript;
|
|
1258
|
+
} catch (err) {
|
|
1259
|
+
}
|
|
1260
|
+
goog.CLOSURE_EVAL_PREFILTER_ = goog.global.trustedTypes && isChrome87 && goog.createTrustedTypesPolicy("goog#base#devonly#eval") || {createScript:goog.identity_};
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
globalThis.goog = goog;
|
|
1264
|
+
globalThis.shadow$provide = {};
|
|
1265
|
+
let $CLJS = globalThis.$CLJS = globalThis;
|
|
1266
|
+
var SHADOW_ENV = $CLJS.SHADOW_ENV = (function() {
|
|
1267
|
+
var env = {};
|
|
1268
|
+
|
|
1269
|
+
var loadedFiles = env.loadedFiles = {};
|
|
1270
|
+
|
|
1271
|
+
env.setLoaded = function(name) {
|
|
1272
|
+
loadedFiles[name] = true;
|
|
1273
|
+
};
|
|
1274
|
+
|
|
1275
|
+
env.load = function(opts, paths) {
|
|
1276
|
+
paths.forEach(function(name) {
|
|
1277
|
+
env.setLoaded(name);
|
|
1278
|
+
});
|
|
1279
|
+
};
|
|
1280
|
+
|
|
1281
|
+
env.isLoaded = function(name) {
|
|
1282
|
+
return loadedFiles[name] || false;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
return env;
|
|
1286
|
+
})();
|