@google/earthengine 1.4.5 → 1.5.0
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/README.md +7 -0
- package/build/browser.js +616 -521
- package/build/ee_api_js.js +293 -293
- package/build/ee_api_js_debug.js +593 -498
- package/build/ee_api_js_npm.js +616 -521
- package/build/main.js +616 -521
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/batch.js +26 -28
- package/src/data.js +0 -9
- package/src/ee.js +0 -2
- package/src/geometry.js +0 -1
- package/src/serializer.js +1 -1
package/build/ee_api_js_npm.js
CHANGED
|
@@ -11,6 +11,7 @@ $jscomp.arrayIterator = function(array) {
|
|
|
11
11
|
};
|
|
12
12
|
$jscomp.ASSUME_ES5 = !1;
|
|
13
13
|
$jscomp.ASSUME_ES6 = !1;
|
|
14
|
+
$jscomp.ASSUME_ES2020 = !1;
|
|
14
15
|
$jscomp.ASSUME_NO_NATIVE_MAP = !1;
|
|
15
16
|
$jscomp.ASSUME_NO_NATIVE_SET = !1;
|
|
16
17
|
$jscomp.ISOLATE_POLYFILLS = !1;
|
|
@@ -35,7 +36,7 @@ $jscomp.getGlobal = function(passedInThis) {
|
|
|
35
36
|
throw Error("Cannot find global object");
|
|
36
37
|
}();
|
|
37
38
|
};
|
|
38
|
-
$jscomp.global = $jscomp.getGlobal(this);
|
|
39
|
+
$jscomp.global = $jscomp.ASSUME_ES2020 ? globalThis : $jscomp.getGlobal(this);
|
|
39
40
|
$jscomp.IS_SYMBOL_NATIVE = typeof Symbol === "function" && typeof Symbol("x") === "symbol";
|
|
40
41
|
$jscomp.TRUST_ES6_POLYFILLS = !$jscomp.ISOLATE_POLYFILLS || $jscomp.IS_SYMBOL_NATIVE;
|
|
41
42
|
$jscomp.polyfills = {};
|
|
@@ -169,7 +170,7 @@ $jscomp.underscoreProtoCanBeSet = function() {
|
|
|
169
170
|
}
|
|
170
171
|
return !1;
|
|
171
172
|
};
|
|
172
|
-
$jscomp.setPrototypeOf = $jscomp.TRUST_ES6_POLYFILLS && typeof Object.setPrototypeOf == "function" ? Object.setPrototypeOf : $jscomp.underscoreProtoCanBeSet() ? function(target, proto) {
|
|
173
|
+
$jscomp.setPrototypeOf = $jscomp.ASSUME_ES6 || $jscomp.TRUST_ES6_POLYFILLS && typeof Object.setPrototypeOf == "function" ? Object.setPrototypeOf : $jscomp.underscoreProtoCanBeSet() ? function(target, proto) {
|
|
173
174
|
target.__proto__ = proto;
|
|
174
175
|
if (target.__proto__ !== proto) {
|
|
175
176
|
throw new TypeError(target + " is not extensible");
|
|
@@ -179,7 +180,7 @@ $jscomp.setPrototypeOf = $jscomp.TRUST_ES6_POLYFILLS && typeof Object.setPrototy
|
|
|
179
180
|
$jscomp.inherits = function(childCtor, parentCtor) {
|
|
180
181
|
childCtor.prototype = $jscomp.objectCreate(parentCtor.prototype);
|
|
181
182
|
childCtor.prototype.constructor = childCtor;
|
|
182
|
-
if ($jscomp.setPrototypeOf) {
|
|
183
|
+
if ($jscomp.ASSUME_ES6 || $jscomp.setPrototypeOf) {
|
|
183
184
|
var setPrototypeOf = $jscomp.setPrototypeOf;
|
|
184
185
|
setPrototypeOf(childCtor, parentCtor);
|
|
185
186
|
} else {
|
|
@@ -467,6 +468,9 @@ $jscomp.getRestArguments = function() {
|
|
|
467
468
|
}
|
|
468
469
|
return restArgs;
|
|
469
470
|
};
|
|
471
|
+
$jscomp.polyfill("globalThis", function(orig) {
|
|
472
|
+
return orig || $jscomp.global;
|
|
473
|
+
}, "es_2020", "es3");
|
|
470
474
|
$jscomp.polyfill("Reflect", function(orig) {
|
|
471
475
|
return orig ? orig : {};
|
|
472
476
|
}, "es6", "es3");
|
|
@@ -768,9 +772,6 @@ $jscomp.polyfill("Array.prototype.keys", function(orig) {
|
|
|
768
772
|
});
|
|
769
773
|
};
|
|
770
774
|
}, "es6", "es3");
|
|
771
|
-
$jscomp.polyfill("globalThis", function(orig) {
|
|
772
|
-
return orig || $jscomp.global;
|
|
773
|
-
}, "es_2020", "es3");
|
|
774
775
|
$jscomp.checkEs6ConformanceViaProxy = function() {
|
|
775
776
|
try {
|
|
776
777
|
var proxied = {}, proxy = Object.create(new $jscomp.global.Proxy(proxied, {get:function(target, key, receiver) {
|
|
@@ -2185,9 +2186,9 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
2185
2186
|
};
|
|
2186
2187
|
var module$contents$eeapiclient$domain_object_CopyValueGetter, module$contents$eeapiclient$domain_object_CopyValueSetter, module$contents$eeapiclient$domain_object_CopyConstructor, module$contents$eeapiclient$domain_object_CopyInstanciator;
|
|
2187
2188
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
2188
|
-
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = (0,$jscomp.makeIterator)(metadata.keys || []), $jscomp$key$
|
|
2189
|
-
{mapMetadata:void 0}, $jscomp$key$
|
|
2190
|
-
var key = $jscomp$key$
|
|
2189
|
+
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = (0,$jscomp.makeIterator)(metadata.keys || []), $jscomp$key$m1892927425$40$key = $jscomp$iter$19.next(), $jscomp$loop$m1892927425$44 = {}; !$jscomp$key$m1892927425$40$key.done; $jscomp$loop$m1892927425$44 =
|
|
2190
|
+
{mapMetadata:void 0}, $jscomp$key$m1892927425$40$key = $jscomp$iter$19.next()) {
|
|
2191
|
+
var key = $jscomp$key$m1892927425$40$key.value, value = valueGetter(key, source);
|
|
2191
2192
|
if (value != null) {
|
|
2192
2193
|
var copy = void 0;
|
|
2193
2194
|
if (arrays.hasOwnProperty(key)) {
|
|
@@ -2198,11 +2199,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2198
2199
|
} else if (objects.hasOwnProperty(key)) {
|
|
2199
2200
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
2200
2201
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
2201
|
-
$jscomp$loop$
|
|
2202
|
+
$jscomp$loop$m1892927425$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m1892927425$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m1892927425$44) {
|
|
2202
2203
|
return function(v) {
|
|
2203
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
2204
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m1892927425$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2204
2205
|
};
|
|
2205
|
-
}($jscomp$loop$
|
|
2206
|
+
}($jscomp$loop$m1892927425$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m1892927425$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2206
2207
|
} else if (Array.isArray(value)) {
|
|
2207
2208
|
if (metadata.emptyArrayIsUnset && value.length === 0) {
|
|
2208
2209
|
continue;
|
|
@@ -2217,8 +2218,8 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2217
2218
|
return target;
|
|
2218
2219
|
}
|
|
2219
2220
|
function module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, mapMetadata, valueGetter, valueSetter, copyInstanciator) {
|
|
2220
|
-
for (var objMap = {}, $jscomp$iter$20 = (0,$jscomp.makeIterator)(Object.keys(value)), $jscomp$key$
|
|
2221
|
-
var mapKey = $jscomp$key$
|
|
2221
|
+
for (var objMap = {}, $jscomp$iter$20 = (0,$jscomp.makeIterator)(Object.keys(value)), $jscomp$key$m1892927425$41$mapKey = $jscomp$iter$20.next(); !$jscomp$key$m1892927425$41$mapKey.done; $jscomp$key$m1892927425$41$mapKey = $jscomp$iter$20.next()) {
|
|
2222
|
+
var mapKey = $jscomp$key$m1892927425$41$mapKey.value, mapValue = value[mapKey];
|
|
2222
2223
|
mapValue != null && (objMap[mapKey] = module$contents$eeapiclient$domain_object_deepCopyValue(mapValue, valueGetter, valueSetter, copyInstanciator, mapMetadata.isValueArray, mapMetadata.isSerializable, mapMetadata.ctor));
|
|
2223
2224
|
}
|
|
2224
2225
|
return objMap;
|
|
@@ -2248,39 +2249,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
2248
2249
|
if (!(module$contents$eeapiclient$domain_object_sameKeys(keys1, metadata2.keys || []) && module$contents$eeapiclient$domain_object_sameKeys(arrays1, arrays2) && module$contents$eeapiclient$domain_object_sameKeys(objects1, objects2) && module$contents$eeapiclient$domain_object_sameKeys(objectMaps1, objectMaps2))) {
|
|
2249
2250
|
return !1;
|
|
2250
2251
|
}
|
|
2251
|
-
for (var $jscomp$iter$21 = (0,$jscomp.makeIterator)(keys1), $jscomp$key$
|
|
2252
|
-
var key = $jscomp$key$
|
|
2252
|
+
for (var $jscomp$iter$21 = (0,$jscomp.makeIterator)(keys1), $jscomp$key$m1892927425$42$key = $jscomp$iter$21.next(), $jscomp$loop$m1892927425$45 = {}; !$jscomp$key$m1892927425$42$key.done; $jscomp$loop$m1892927425$45 = {value2$jscomp$7:void 0, mapMetadata$jscomp$2:void 0}, $jscomp$key$m1892927425$42$key = $jscomp$iter$21.next()) {
|
|
2253
|
+
var key = $jscomp$key$m1892927425$42$key.value, has1 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable1, key, metadata1), has2 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable2, key, metadata2);
|
|
2253
2254
|
if (has1 !== has2) {
|
|
2254
2255
|
return !1;
|
|
2255
2256
|
}
|
|
2256
2257
|
if (has1) {
|
|
2257
2258
|
var value1 = serializable1.Serializable$get(key);
|
|
2258
|
-
$jscomp$loop$
|
|
2259
|
+
$jscomp$loop$m1892927425$45.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
2259
2260
|
if (arrays1.hasOwnProperty(key)) {
|
|
2260
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2261
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !0, !0)) {
|
|
2261
2262
|
return !1;
|
|
2262
2263
|
}
|
|
2263
2264
|
} else if (objects1.hasOwnProperty(key)) {
|
|
2264
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2265
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !1, !0)) {
|
|
2265
2266
|
return !1;
|
|
2266
2267
|
}
|
|
2267
2268
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
2268
|
-
if ($jscomp$loop$
|
|
2269
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
2269
|
+
if ($jscomp$loop$m1892927425$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2.isPropertyArray) {
|
|
2270
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m1892927425$45) {
|
|
2270
2271
|
return function(v1, i) {
|
|
2271
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
2272
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m1892927425$45.value2$jscomp$7[i], $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2);
|
|
2272
2273
|
};
|
|
2273
|
-
}($jscomp$loop$
|
|
2274
|
+
}($jscomp$loop$m1892927425$45))) {
|
|
2274
2275
|
return !1;
|
|
2275
2276
|
}
|
|
2276
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
2277
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2)) {
|
|
2277
2278
|
return !1;
|
|
2278
2279
|
}
|
|
2279
2280
|
} else if (Array.isArray(value1)) {
|
|
2280
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2281
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !0, !1)) {
|
|
2281
2282
|
return !1;
|
|
2282
2283
|
}
|
|
2283
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2284
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !1, !1)) {
|
|
2284
2285
|
return !1;
|
|
2285
2286
|
}
|
|
2286
2287
|
}
|
|
@@ -2302,8 +2303,8 @@ function module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, v
|
|
|
2302
2303
|
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) {
|
|
2303
2304
|
return !1;
|
|
2304
2305
|
}
|
|
2305
|
-
for (var $jscomp$iter$22 = (0,$jscomp.makeIterator)(Object.keys(value1)), $jscomp$key$
|
|
2306
|
-
var mapKey = $jscomp$key$
|
|
2306
|
+
for (var $jscomp$iter$22 = (0,$jscomp.makeIterator)(Object.keys(value1)), $jscomp$key$m1892927425$43$mapKey = $jscomp$iter$22.next(); !$jscomp$key$m1892927425$43$mapKey.done; $jscomp$key$m1892927425$43$mapKey = $jscomp$iter$22.next()) {
|
|
2307
|
+
var mapKey = $jscomp$key$m1892927425$43$mapKey.value;
|
|
2307
2308
|
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1[mapKey], value2[mapKey], mapMetadata.isValueArray, mapMetadata.isSerializable)) {
|
|
2308
2309
|
return !1;
|
|
2309
2310
|
}
|
|
@@ -2384,15 +2385,15 @@ module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.addMetad
|
|
|
2384
2385
|
this._metadataPayload += "Content-Type: application/json; charset=utf-8\r\n\r\n" + JSON.stringify(json) + ("\r\n--" + this._boundary + "\r\n");
|
|
2385
2386
|
};
|
|
2386
2387
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.build = function() {
|
|
2387
|
-
var $jscomp$this$
|
|
2388
|
+
var $jscomp$this$m133342051$6 = this, payload = "--" + this._boundary + "\r\n";
|
|
2388
2389
|
payload += this._metadataPayload;
|
|
2389
2390
|
return Promise.all(this.files.map(function(f) {
|
|
2390
|
-
return $jscomp$this$
|
|
2391
|
+
return $jscomp$this$m133342051$6.encodeFile(f);
|
|
2391
2392
|
})).then(function(filePayloads) {
|
|
2392
|
-
for (var $jscomp$iter$23 = (0,$jscomp.makeIterator)(filePayloads), $jscomp$key$
|
|
2393
|
-
payload += $jscomp$key$
|
|
2393
|
+
for (var $jscomp$iter$23 = (0,$jscomp.makeIterator)(filePayloads), $jscomp$key$m133342051$9$filePayload = $jscomp$iter$23.next(); !$jscomp$key$m133342051$9$filePayload.done; $jscomp$key$m133342051$9$filePayload = $jscomp$iter$23.next()) {
|
|
2394
|
+
payload += $jscomp$key$m133342051$9$filePayload.value;
|
|
2394
2395
|
}
|
|
2395
|
-
return payload += "\r\n--" + $jscomp$this$
|
|
2396
|
+
return payload += "\r\n--" + $jscomp$this$m133342051$6._boundary + "--";
|
|
2396
2397
|
});
|
|
2397
2398
|
};
|
|
2398
2399
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.encodeFile = function(file) {
|
|
@@ -2733,86 +2734,93 @@ goog.object.transpose = function(obj) {
|
|
|
2733
2734
|
goog.object.unsafeClone = module$contents$goog$object_unsafeClone;
|
|
2734
2735
|
goog.string = {};
|
|
2735
2736
|
goog.string.internal = {};
|
|
2736
|
-
goog
|
|
2737
|
+
function module$contents$goog$string$internal_startsWith(str, prefix) {
|
|
2737
2738
|
return str.lastIndexOf(prefix, 0) == 0;
|
|
2738
|
-
}
|
|
2739
|
-
goog
|
|
2739
|
+
}
|
|
2740
|
+
function module$contents$goog$string$internal_endsWith(str, suffix) {
|
|
2740
2741
|
var l = str.length - suffix.length;
|
|
2741
2742
|
return l >= 0 && str.indexOf(suffix, l) == l;
|
|
2742
|
-
}
|
|
2743
|
-
goog
|
|
2744
|
-
return goog
|
|
2745
|
-
}
|
|
2746
|
-
goog
|
|
2747
|
-
return goog
|
|
2748
|
-
}
|
|
2749
|
-
goog
|
|
2743
|
+
}
|
|
2744
|
+
function module$contents$goog$string$internal_caseInsensitiveStartsWith(str, prefix) {
|
|
2745
|
+
return module$contents$goog$string$internal_caseInsensitiveCompare(prefix, str.slice(0, prefix.length)) == 0;
|
|
2746
|
+
}
|
|
2747
|
+
function module$contents$goog$string$internal_caseInsensitiveEndsWith(str, suffix) {
|
|
2748
|
+
return module$contents$goog$string$internal_caseInsensitiveCompare(suffix, str.slice(str.length - suffix.length)) == 0;
|
|
2749
|
+
}
|
|
2750
|
+
function module$contents$goog$string$internal_caseInsensitiveEquals(str1, str2) {
|
|
2750
2751
|
return str1.toLowerCase() == str2.toLowerCase();
|
|
2751
|
-
}
|
|
2752
|
-
goog
|
|
2752
|
+
}
|
|
2753
|
+
function module$contents$goog$string$internal_isEmptyOrWhitespace(str) {
|
|
2753
2754
|
return /^[\s\xa0]*$/.test(str);
|
|
2754
|
-
}
|
|
2755
|
-
goog
|
|
2755
|
+
}
|
|
2756
|
+
var module$contents$goog$string$internal_trim = goog.TRUSTED_SITE && (goog.FEATURESET_YEAR >= 2018 || String.prototype.trim) ? function(str) {
|
|
2756
2757
|
return str.trim();
|
|
2757
2758
|
} : function(str) {
|
|
2758
2759
|
return /^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(str)[1];
|
|
2759
2760
|
};
|
|
2760
|
-
goog
|
|
2761
|
+
function module$contents$goog$string$internal_caseInsensitiveCompare(str1, str2) {
|
|
2761
2762
|
var test1 = String(str1).toLowerCase(), test2 = String(str2).toLowerCase();
|
|
2762
2763
|
return test1 < test2 ? -1 : test1 == test2 ? 0 : 1;
|
|
2763
|
-
}
|
|
2764
|
-
goog
|
|
2764
|
+
}
|
|
2765
|
+
function module$contents$goog$string$internal_newLineToBr(str, opt_xml) {
|
|
2765
2766
|
return str.replace(/(\r\n|\r|\n)/g, opt_xml ? "<br />" : "<br>");
|
|
2766
|
-
}
|
|
2767
|
-
goog
|
|
2767
|
+
}
|
|
2768
|
+
function module$contents$goog$string$internal_htmlEscape(str, opt_isLikelyToContainHtmlChars) {
|
|
2768
2769
|
if (opt_isLikelyToContainHtmlChars) {
|
|
2769
|
-
str = str.replace(goog
|
|
2770
|
+
str = str.replace(module$contents$goog$string$internal_AMP_RE, "&").replace(module$contents$goog$string$internal_LT_RE, "<").replace(module$contents$goog$string$internal_GT_RE, ">").replace(module$contents$goog$string$internal_QUOT_RE, """).replace(module$contents$goog$string$internal_SINGLE_QUOTE_RE, "'").replace(module$contents$goog$string$internal_NULL_RE, "�");
|
|
2770
2771
|
} else {
|
|
2771
|
-
if (!goog
|
|
2772
|
+
if (!module$contents$goog$string$internal_ALL_RE.test(str)) {
|
|
2772
2773
|
return str;
|
|
2773
2774
|
}
|
|
2774
|
-
str.indexOf("&") != -1 && (str = str.replace(goog
|
|
2775
|
-
str.indexOf("<") != -1 && (str = str.replace(goog
|
|
2776
|
-
str.indexOf(">") != -1 && (str = str.replace(goog
|
|
2777
|
-
str.indexOf('"') != -1 && (str = str.replace(goog
|
|
2778
|
-
str.indexOf("'") != -1 && (str = str.replace(goog
|
|
2779
|
-
str.indexOf("\x00") != -1 && (str = str.replace(goog
|
|
2775
|
+
str.indexOf("&") != -1 && (str = str.replace(module$contents$goog$string$internal_AMP_RE, "&"));
|
|
2776
|
+
str.indexOf("<") != -1 && (str = str.replace(module$contents$goog$string$internal_LT_RE, "<"));
|
|
2777
|
+
str.indexOf(">") != -1 && (str = str.replace(module$contents$goog$string$internal_GT_RE, ">"));
|
|
2778
|
+
str.indexOf('"') != -1 && (str = str.replace(module$contents$goog$string$internal_QUOT_RE, """));
|
|
2779
|
+
str.indexOf("'") != -1 && (str = str.replace(module$contents$goog$string$internal_SINGLE_QUOTE_RE, "'"));
|
|
2780
|
+
str.indexOf("\x00") != -1 && (str = str.replace(module$contents$goog$string$internal_NULL_RE, "�"));
|
|
2780
2781
|
}
|
|
2781
2782
|
return str;
|
|
2782
|
-
}
|
|
2783
|
-
goog
|
|
2784
|
-
goog
|
|
2785
|
-
goog.string.internal.GT_RE_ = />/g;
|
|
2786
|
-
goog.string.internal.QUOT_RE_ = /"/g;
|
|
2787
|
-
goog.string.internal.SINGLE_QUOTE_RE_ = /'/g;
|
|
2788
|
-
goog.string.internal.NULL_RE_ = /\x00/g;
|
|
2789
|
-
goog.string.internal.ALL_RE_ = /[\x00&<>"']/;
|
|
2790
|
-
goog.string.internal.whitespaceEscape = function(str, opt_xml) {
|
|
2791
|
-
return goog.string.internal.newLineToBr(str.replace(/ /g, "  "), opt_xml);
|
|
2792
|
-
};
|
|
2793
|
-
goog.string.internal.contains = function(str, subString) {
|
|
2783
|
+
}
|
|
2784
|
+
var module$contents$goog$string$internal_AMP_RE = /&/g, module$contents$goog$string$internal_LT_RE = /</g, module$contents$goog$string$internal_GT_RE = />/g, module$contents$goog$string$internal_QUOT_RE = /"/g, module$contents$goog$string$internal_SINGLE_QUOTE_RE = /'/g, module$contents$goog$string$internal_NULL_RE = /\x00/g, module$contents$goog$string$internal_ALL_RE = /[\x00&<>"']/;
|
|
2785
|
+
function module$contents$goog$string$internal_contains(str, subString) {
|
|
2794
2786
|
return str.indexOf(subString) != -1;
|
|
2795
|
-
}
|
|
2796
|
-
goog
|
|
2797
|
-
return goog
|
|
2798
|
-
}
|
|
2799
|
-
goog
|
|
2800
|
-
for (var order = 0, v1Subs = goog
|
|
2787
|
+
}
|
|
2788
|
+
function module$contents$goog$string$internal_caseInsensitiveContains(str, subString) {
|
|
2789
|
+
return module$contents$goog$string$internal_contains(str.toLowerCase(), subString.toLowerCase());
|
|
2790
|
+
}
|
|
2791
|
+
function module$contents$goog$string$internal_compareVersions(version1, version2) {
|
|
2792
|
+
for (var order = 0, v1Subs = module$contents$goog$string$internal_trim(String(version1)).split("."), v2Subs = module$contents$goog$string$internal_trim(String(version2)).split("."), subCount = Math.max(v1Subs.length, v2Subs.length), subIdx = 0; order == 0 && subIdx < subCount; subIdx++) {
|
|
2801
2793
|
var v1Sub = v1Subs[subIdx] || "", v2Sub = v2Subs[subIdx] || "";
|
|
2802
2794
|
do {
|
|
2803
2795
|
var v1Comp = /(\d*)(\D*)(.*)/.exec(v1Sub) || ["", "", "", ""], v2Comp = /(\d*)(\D*)(.*)/.exec(v2Sub) || ["", "", "", ""];
|
|
2804
2796
|
if (v1Comp[0].length == 0 && v2Comp[0].length == 0) {
|
|
2805
2797
|
break;
|
|
2806
2798
|
}
|
|
2807
|
-
order = goog
|
|
2799
|
+
order = module$contents$goog$string$internal_compareElements(v1Comp[1].length == 0 ? 0 : parseInt(v1Comp[1], 10), v2Comp[1].length == 0 ? 0 : parseInt(v2Comp[1], 10)) || module$contents$goog$string$internal_compareElements(v1Comp[2].length == 0, v2Comp[2].length == 0) || module$contents$goog$string$internal_compareElements(v1Comp[2], v2Comp[2]);
|
|
2808
2800
|
v1Sub = v1Comp[3];
|
|
2809
2801
|
v2Sub = v2Comp[3];
|
|
2810
2802
|
} while (order == 0);
|
|
2811
2803
|
}
|
|
2812
2804
|
return order;
|
|
2813
|
-
}
|
|
2814
|
-
goog
|
|
2805
|
+
}
|
|
2806
|
+
function module$contents$goog$string$internal_compareElements(left, right) {
|
|
2815
2807
|
return left < right ? -1 : left > right ? 1 : 0;
|
|
2808
|
+
}
|
|
2809
|
+
goog.string.internal.caseInsensitiveCompare = module$contents$goog$string$internal_caseInsensitiveCompare;
|
|
2810
|
+
goog.string.internal.caseInsensitiveContains = module$contents$goog$string$internal_caseInsensitiveContains;
|
|
2811
|
+
goog.string.internal.caseInsensitiveEndsWith = module$contents$goog$string$internal_caseInsensitiveEndsWith;
|
|
2812
|
+
goog.string.internal.caseInsensitiveEquals = module$contents$goog$string$internal_caseInsensitiveEquals;
|
|
2813
|
+
goog.string.internal.caseInsensitiveStartsWith = module$contents$goog$string$internal_caseInsensitiveStartsWith;
|
|
2814
|
+
goog.string.internal.compareVersions = module$contents$goog$string$internal_compareVersions;
|
|
2815
|
+
goog.string.internal.contains = module$contents$goog$string$internal_contains;
|
|
2816
|
+
goog.string.internal.endsWith = module$contents$goog$string$internal_endsWith;
|
|
2817
|
+
goog.string.internal.htmlEscape = module$contents$goog$string$internal_htmlEscape;
|
|
2818
|
+
goog.string.internal.isEmptyOrWhitespace = module$contents$goog$string$internal_isEmptyOrWhitespace;
|
|
2819
|
+
goog.string.internal.newLineToBr = module$contents$goog$string$internal_newLineToBr;
|
|
2820
|
+
goog.string.internal.startsWith = module$contents$goog$string$internal_startsWith;
|
|
2821
|
+
goog.string.internal.trim = module$contents$goog$string$internal_trim;
|
|
2822
|
+
goog.string.internal.whitespaceEscape = function(str, opt_xml) {
|
|
2823
|
+
return module$contents$goog$string$internal_newLineToBr(str.replace(/ /g, "  "), opt_xml);
|
|
2816
2824
|
};
|
|
2817
2825
|
/*
|
|
2818
2826
|
|
|
@@ -2897,8 +2905,8 @@ function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUr
|
|
|
2897
2905
|
throw Error(message);
|
|
2898
2906
|
}
|
|
2899
2907
|
module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
2900
|
-
var $jscomp$templatelit$
|
|
2901
|
-
["\\0"]), $jscomp$templatelit$
|
|
2908
|
+
var $jscomp$templatelit$m425881384$5 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$m425881384$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$m425881384$7 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$m425881384$8 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$m425881384$9 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$m425881384$10 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
|
|
2909
|
+
["\\0"]), $jscomp$templatelit$m425881384$11 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$m425881384$12 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), module$contents$safevalues$internals$string_literal_module = module$contents$safevalues$internals$string_literal_module || {id:"third_party/javascript/safevalues/internals/string_literal.closure.js"};
|
|
2902
2910
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
2903
2911
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
2904
2912
|
throw new TypeError("\n ############################## ERROR ##############################\n\n It looks like you are trying to call a template tag function (fn`...`)\n using the normal function syntax (fn(...)), which is not supported.\n\n The functions in the safevalues library are not designed to be called\n like normal functions, and doing so invalidates the security guarantees\n that safevalues provides.\n\n If you are stuck and not sure how to proceed, please reach out to us\n instead through:\n - go/ise-hardening-yaqs (preferred) // LINE-INTERNAL\n - g/ise-hardening // LINE-INTERNAL\n - https://github.com/google/safevalues/issues\n\n ############################## ERROR ##############################");
|
|
@@ -2912,14 +2920,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
2912
2920
|
return fn.toString().indexOf("`") === -1;
|
|
2913
2921
|
}
|
|
2914
2922
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2915
|
-
return tag($jscomp$templatelit$
|
|
2923
|
+
return tag($jscomp$templatelit$m425881384$5);
|
|
2916
2924
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2917
|
-
return tag($jscomp$templatelit$
|
|
2925
|
+
return tag($jscomp$templatelit$m425881384$6);
|
|
2918
2926
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2919
|
-
return tag($jscomp$templatelit$
|
|
2927
|
+
return tag($jscomp$templatelit$m425881384$7);
|
|
2920
2928
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2921
|
-
return tag($jscomp$templatelit$
|
|
2922
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
2929
|
+
return tag($jscomp$templatelit$m425881384$8);
|
|
2930
|
+
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$9) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$10) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$11) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$12);
|
|
2923
2931
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
2924
2932
|
return Array.isArray(templateObj) && Array.isArray(templateObj.raw) && templateObj.length === templateObj.raw.length && (module$contents$safevalues$internals$string_literal_isTranspiled || templateObj !== templateObj.raw) && (module$contents$safevalues$internals$string_literal_isTranspiled && !module$contents$safevalues$internals$string_literal_frozenTSA || module$contents$safevalues$internals$string_literal_checkFrozen(templateObj)) ?
|
|
2925
2933
|
!0 : !1;
|
|
@@ -3162,32 +3170,33 @@ function module$contents$safevalues$dom$elements$button_setButtonFormaction(butt
|
|
|
3162
3170
|
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
3163
3171
|
sanitizedUrl !== void 0 && (button.formAction = sanitizedUrl);
|
|
3164
3172
|
}
|
|
3165
|
-
;var module$
|
|
3166
|
-
module$
|
|
3167
|
-
|
|
3168
|
-
this.privateDoNotAccessOrElseWrappedAttributePrefix = value;
|
|
3169
|
-
};
|
|
3170
|
-
module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix.prototype.toString = function() {
|
|
3171
|
-
return this.privateDoNotAccessOrElseWrappedAttributePrefix;
|
|
3172
|
-
};
|
|
3173
|
-
var module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl = module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix;
|
|
3174
|
-
function module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal(value) {
|
|
3175
|
-
return new module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix(module$exports$safevalues$internals$secrets.secretToken, value);
|
|
3173
|
+
;var module$contents$safevalues$dom$elements$embed_module = module$contents$safevalues$dom$elements$embed_module || {id:"third_party/javascript/safevalues/dom/elements/embed.closure.js"};
|
|
3174
|
+
function module$contents$safevalues$dom$elements$embed_setEmbedSrc(embedEl, url) {
|
|
3175
|
+
embedEl.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url);
|
|
3176
3176
|
}
|
|
3177
|
-
module$exports$safevalues$
|
|
3178
|
-
function module$contents$safevalues$
|
|
3179
|
-
|
|
3177
|
+
;var module$exports$safevalues$dom$elements$form = {}, module$contents$safevalues$dom$elements$form_module = module$contents$safevalues$dom$elements$form_module || {id:"third_party/javascript/safevalues/dom/elements/form.closure.js"};
|
|
3178
|
+
function module$contents$safevalues$dom$elements$form_setFormAction(form, url) {
|
|
3179
|
+
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
3180
|
+
sanitizedUrl !== void 0 && (form.action = sanitizedUrl);
|
|
3180
3181
|
}
|
|
3181
|
-
module$exports$safevalues$
|
|
3182
|
-
function module$contents$safevalues$
|
|
3183
|
-
|
|
3184
|
-
return value.privateDoNotAccessOrElseWrappedAttributePrefix;
|
|
3185
|
-
}
|
|
3186
|
-
var message = "";
|
|
3187
|
-
goog.DEBUG && (message = "Unexpected type when unwrapping SafeAttributePrefix, got '" + value + "' of type '" + typeof value + "'");
|
|
3188
|
-
throw Error(message);
|
|
3182
|
+
module$exports$safevalues$dom$elements$form.setFormAction = module$contents$safevalues$dom$elements$form_setFormAction;
|
|
3183
|
+
function module$contents$safevalues$dom$elements$form_setFormActionLite(form, url) {
|
|
3184
|
+
module$contents$safevalues$builders$url_builders_reportJavaScriptUrl(url) || (form.action = url);
|
|
3189
3185
|
}
|
|
3190
|
-
module$exports$safevalues$
|
|
3186
|
+
module$exports$safevalues$dom$elements$form.setFormActionLite = module$contents$safevalues$dom$elements$form_setFormActionLite;
|
|
3187
|
+
var module$exports$check = {}, module$contents$check_module = module$contents$check_module || {id:"javascript/typescript/contrib/check.closure.js"};
|
|
3188
|
+
function module$contents$check_checkExhaustive(value, msg) {
|
|
3189
|
+
return module$contents$check_checkExhaustiveAllowing(value, msg);
|
|
3190
|
+
}
|
|
3191
|
+
module$exports$check.checkExhaustive = module$contents$check_checkExhaustive;
|
|
3192
|
+
function module$contents$check_checkExhaustiveAllowing(value, msg) {
|
|
3193
|
+
throw Error(msg === void 0 ? "unexpected value " + value + "!" : msg);
|
|
3194
|
+
}
|
|
3195
|
+
module$exports$check.checkExhaustiveAllowing = module$contents$check_checkExhaustiveAllowing;
|
|
3196
|
+
module$exports$check.assumeExhaustive = function(value) {
|
|
3197
|
+
};
|
|
3198
|
+
module$exports$check.assumeExhaustiveAllowing = function(value) {
|
|
3199
|
+
};
|
|
3191
3200
|
var module$exports$safevalues$internals$html_impl = {}, module$contents$safevalues$internals$html_impl_module = module$contents$safevalues$internals$html_impl_module || {id:"third_party/javascript/safevalues/internals/html_impl.closure.js"};
|
|
3192
3201
|
module$exports$safevalues$internals$html_impl.SafeHtml = function(token, value) {
|
|
3193
3202
|
goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
|
|
@@ -3219,84 +3228,6 @@ module$exports$safevalues$internals$html_impl.unwrapHtml = function(value) {
|
|
|
3219
3228
|
goog.DEBUG && (message = "Unexpected type when unwrapping SafeHtml");
|
|
3220
3229
|
throw Error(message);
|
|
3221
3230
|
};
|
|
3222
|
-
var module$exports$safevalues$dom$elements$element = {}, module$contents$safevalues$dom$elements$element_module = module$contents$safevalues$dom$elements$element_module || {id:"third_party/javascript/safevalues/dom/elements/element.closure.js"}, module$contents$safevalues$dom$elements$element_ScriptOrStyle;
|
|
3223
|
-
function module$contents$safevalues$dom$elements$element_setElementInnerHtml(elOrRoot, v) {
|
|
3224
|
-
module$contents$safevalues$dom$elements$element_isElement(elOrRoot) && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(elOrRoot);
|
|
3225
|
-
elOrRoot.innerHTML = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
|
|
3226
|
-
}
|
|
3227
|
-
module$exports$safevalues$dom$elements$element.setElementInnerHtml = module$contents$safevalues$dom$elements$element_setElementInnerHtml;
|
|
3228
|
-
function module$contents$safevalues$dom$elements$element_setElementOuterHtml(e, v) {
|
|
3229
|
-
var parent = e.parentElement;
|
|
3230
|
-
parent !== null && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(parent);
|
|
3231
|
-
e.outerHTML = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
|
|
3232
|
-
}
|
|
3233
|
-
module$exports$safevalues$dom$elements$element.setElementOuterHtml = module$contents$safevalues$dom$elements$element_setElementOuterHtml;
|
|
3234
|
-
function module$contents$safevalues$dom$elements$element_elementInsertAdjacentHtml(element, position, v) {
|
|
3235
|
-
var tagContext = position === "beforebegin" || position === "afterend" ? element.parentElement : element;
|
|
3236
|
-
tagContext !== null && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(tagContext);
|
|
3237
|
-
element.insertAdjacentHTML(position, (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v));
|
|
3238
|
-
}
|
|
3239
|
-
module$exports$safevalues$dom$elements$element.elementInsertAdjacentHtml = module$contents$safevalues$dom$elements$element_elementInsertAdjacentHtml;
|
|
3240
|
-
function module$contents$safevalues$dom$elements$element_buildPrefixedAttributeSetter(prefix) {
|
|
3241
|
-
var prefixes = [prefix].concat((0,$jscomp.arrayFromIterable)($jscomp.getRestArguments.apply(1, arguments)));
|
|
3242
|
-
return function(e, attr, value) {
|
|
3243
|
-
module$contents$safevalues$dom$elements$element_setElementPrefixedAttribute(prefixes, e, attr, value);
|
|
3244
|
-
};
|
|
3245
|
-
}
|
|
3246
|
-
module$exports$safevalues$dom$elements$element.buildPrefixedAttributeSetter = module$contents$safevalues$dom$elements$element_buildPrefixedAttributeSetter;
|
|
3247
|
-
function module$contents$safevalues$dom$elements$element_setElementPrefixedAttribute(attrPrefixes, e, attr, value) {
|
|
3248
|
-
if (attrPrefixes.length === 0) {
|
|
3249
|
-
var message = "";
|
|
3250
|
-
goog.DEBUG && (message = "No prefixes are provided");
|
|
3251
|
-
throw Error(message);
|
|
3252
|
-
}
|
|
3253
|
-
var prefixes = attrPrefixes.map(function(s) {
|
|
3254
|
-
return module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix(s);
|
|
3255
|
-
}), attrLower = attr.toLowerCase();
|
|
3256
|
-
if (prefixes.every(function(p) {
|
|
3257
|
-
return attrLower.indexOf(p) !== 0;
|
|
3258
|
-
})) {
|
|
3259
|
-
throw Error('Attribute "' + attr + '" does not match any of the allowed prefixes.');
|
|
3260
|
-
}
|
|
3261
|
-
e.setAttribute(attr, value);
|
|
3262
|
-
}
|
|
3263
|
-
module$exports$safevalues$dom$elements$element.setElementPrefixedAttribute = module$contents$safevalues$dom$elements$element_setElementPrefixedAttribute;
|
|
3264
|
-
function module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(element) {
|
|
3265
|
-
var message = "", tagName = element.tagName;
|
|
3266
|
-
if (/^(script|style)$/i.test(tagName)) {
|
|
3267
|
-
throw goog.DEBUG && (message = tagName.toLowerCase() === "script" ? "Use setScriptTextContent with a SafeScript." : "Use setStyleTextContent with a SafeStyleSheet."), Error(message);
|
|
3268
|
-
}
|
|
3269
|
-
}
|
|
3270
|
-
function module$contents$safevalues$dom$elements$element_isElement(elOrRoot) {
|
|
3271
|
-
return elOrRoot.nodeType === 1;
|
|
3272
|
-
}
|
|
3273
|
-
;var module$contents$safevalues$dom$elements$embed_module = module$contents$safevalues$dom$elements$embed_module || {id:"third_party/javascript/safevalues/dom/elements/embed.closure.js"};
|
|
3274
|
-
function module$contents$safevalues$dom$elements$embed_setEmbedSrc(embedEl, url) {
|
|
3275
|
-
embedEl.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url);
|
|
3276
|
-
}
|
|
3277
|
-
;var module$exports$safevalues$dom$elements$form = {}, module$contents$safevalues$dom$elements$form_module = module$contents$safevalues$dom$elements$form_module || {id:"third_party/javascript/safevalues/dom/elements/form.closure.js"};
|
|
3278
|
-
function module$contents$safevalues$dom$elements$form_setFormAction(form, url) {
|
|
3279
|
-
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
3280
|
-
sanitizedUrl !== void 0 && (form.action = sanitizedUrl);
|
|
3281
|
-
}
|
|
3282
|
-
module$exports$safevalues$dom$elements$form.setFormAction = module$contents$safevalues$dom$elements$form_setFormAction;
|
|
3283
|
-
function module$contents$safevalues$dom$elements$form_setFormActionLite(form, url) {
|
|
3284
|
-
module$contents$safevalues$builders$url_builders_reportJavaScriptUrl(url) || (form.action = url);
|
|
3285
|
-
}
|
|
3286
|
-
module$exports$safevalues$dom$elements$form.setFormActionLite = module$contents$safevalues$dom$elements$form_setFormActionLite;
|
|
3287
|
-
var module$exports$check = {}, module$contents$check_module = module$contents$check_module || {id:"javascript/typescript/contrib/check.closure.js"};
|
|
3288
|
-
function module$contents$check_checkExhaustive(value, msg) {
|
|
3289
|
-
return module$contents$check_checkExhaustiveAllowing(value, msg);
|
|
3290
|
-
}
|
|
3291
|
-
module$exports$check.checkExhaustive = module$contents$check_checkExhaustive;
|
|
3292
|
-
function module$contents$check_checkExhaustiveAllowing(value, msg) {
|
|
3293
|
-
throw Error(msg === void 0 ? "unexpected value " + value + "!" : msg);
|
|
3294
|
-
}
|
|
3295
|
-
module$exports$check.checkExhaustiveAllowing = module$contents$check_checkExhaustiveAllowing;
|
|
3296
|
-
module$exports$check.assumeExhaustive = function(value) {
|
|
3297
|
-
};
|
|
3298
|
-
module$exports$check.assumeExhaustiveAllowing = function(value) {
|
|
3299
|
-
};
|
|
3300
3231
|
var module$exports$safevalues$dom$elements$iframe = {}, module$contents$safevalues$dom$elements$iframe_module = module$contents$safevalues$dom$elements$iframe_module || {id:"third_party/javascript/safevalues/dom/elements/iframe.closure.js"};
|
|
3301
3232
|
function module$contents$safevalues$dom$elements$iframe_setIframeSrc(iframe, v) {
|
|
3302
3233
|
iframe.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(v).toString();
|
|
@@ -3318,9 +3249,9 @@ function module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(ifr
|
|
|
3318
3249
|
}
|
|
3319
3250
|
}
|
|
3320
3251
|
module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIframeIntentError = function(type, intent) {
|
|
3321
|
-
var $jscomp$tmp$error$
|
|
3322
|
-
this.message = $jscomp$tmp$error$
|
|
3323
|
-
"stack" in $jscomp$tmp$error$
|
|
3252
|
+
var $jscomp$tmp$error$494508883$1 = Error.call(this, type + " cannot be used with intent " + module$exports$safevalues$dom$elements$iframe.IframeIntent[intent]);
|
|
3253
|
+
this.message = $jscomp$tmp$error$494508883$1.message;
|
|
3254
|
+
"stack" in $jscomp$tmp$error$494508883$1 && (this.stack = $jscomp$tmp$error$494508883$1.stack);
|
|
3324
3255
|
this.type = type;
|
|
3325
3256
|
this.intent = intent;
|
|
3326
3257
|
this.name = "TypeCannotBeUsedWithIframeIntentError";
|
|
@@ -3396,25 +3327,7 @@ function module$contents$safevalues$dom$elements$input_setInputFormaction(input,
|
|
|
3396
3327
|
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
3397
3328
|
sanitizedUrl !== void 0 && (input.formAction = sanitizedUrl);
|
|
3398
3329
|
}
|
|
3399
|
-
;var module$
|
|
3400
|
-
function module$contents$safevalues$dom$elements$link_setLinkHrefAndRel(link, url, rel) {
|
|
3401
|
-
if (module$contents$safevalues$internals$resource_url_impl_isResourceUrl(url)) {
|
|
3402
|
-
module$contents$safevalues$dom$elements$link_setLinkWithResourceUrlHrefAndRel(link, url, rel);
|
|
3403
|
-
} else {
|
|
3404
|
-
if (module$contents$safevalues$dom$elements$link_SAFE_URL_REL_VALUES.indexOf(rel) === -1) {
|
|
3405
|
-
throw Error('TrustedResourceUrl href attribute required with rel="' + rel + '"');
|
|
3406
|
-
}
|
|
3407
|
-
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
3408
|
-
sanitizedUrl !== void 0 && (link.href = sanitizedUrl, link.rel = rel);
|
|
3409
|
-
}
|
|
3410
|
-
}
|
|
3411
|
-
module$exports$safevalues$dom$elements$link.setLinkHrefAndRel = module$contents$safevalues$dom$elements$link_setLinkHrefAndRel;
|
|
3412
|
-
function module$contents$safevalues$dom$elements$link_setLinkWithResourceUrlHrefAndRel(link, url, rel) {
|
|
3413
|
-
link.href = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url).toString();
|
|
3414
|
-
link.rel = rel;
|
|
3415
|
-
}
|
|
3416
|
-
module$exports$safevalues$dom$elements$link.setLinkWithResourceUrlHrefAndRel = module$contents$safevalues$dom$elements$link_setLinkWithResourceUrlHrefAndRel;
|
|
3417
|
-
var module$contents$safevalues$dom$elements$object_module = module$contents$safevalues$dom$elements$object_module || {id:"third_party/javascript/safevalues/dom/elements/object.closure.js"};
|
|
3330
|
+
;var module$contents$safevalues$dom$elements$object_module = module$contents$safevalues$dom$elements$object_module || {id:"third_party/javascript/safevalues/dom/elements/object.closure.js"};
|
|
3418
3331
|
function module$contents$safevalues$dom$elements$object_setObjectData(obj, v) {
|
|
3419
3332
|
obj.data = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(v);
|
|
3420
3333
|
}
|
|
@@ -3424,17 +3337,17 @@ function module$contents$safevalues$dom$globals$window_windowOpen(win, url, targ
|
|
|
3424
3337
|
return sanitizedUrl !== void 0 ? win.open(sanitizedUrl, target, features) : null;
|
|
3425
3338
|
}
|
|
3426
3339
|
module$exports$safevalues$dom$globals$window.windowOpen = module$contents$safevalues$dom$globals$window_windowOpen;
|
|
3427
|
-
function module$contents$safevalues$dom$globals$window_getScriptNonce(
|
|
3428
|
-
return module$contents$safevalues$dom$globals$window_getNonceFor("script",
|
|
3340
|
+
function module$contents$safevalues$dom$globals$window_getScriptNonce(doc) {
|
|
3341
|
+
return module$contents$safevalues$dom$globals$window_getNonceFor("script", doc);
|
|
3429
3342
|
}
|
|
3430
3343
|
module$exports$safevalues$dom$globals$window.getScriptNonce = module$contents$safevalues$dom$globals$window_getScriptNonce;
|
|
3431
|
-
function module$contents$safevalues$dom$globals$window_getStyleNonce(
|
|
3432
|
-
return module$contents$safevalues$dom$globals$window_getNonceFor("style",
|
|
3344
|
+
function module$contents$safevalues$dom$globals$window_getStyleNonce(doc) {
|
|
3345
|
+
return module$contents$safevalues$dom$globals$window_getNonceFor("style", doc);
|
|
3433
3346
|
}
|
|
3434
3347
|
module$exports$safevalues$dom$globals$window.getStyleNonce = module$contents$safevalues$dom$globals$window_getStyleNonce;
|
|
3435
|
-
function module$contents$safevalues$dom$globals$window_getNonceFor(elementName,
|
|
3436
|
-
|
|
3437
|
-
var $jscomp$optchain$
|
|
3348
|
+
function module$contents$safevalues$dom$globals$window_getNonceFor(elementName, doc) {
|
|
3349
|
+
doc = doc === void 0 ? document : doc;
|
|
3350
|
+
var $jscomp$optchain$tmpm1987982378$0, $jscomp$optchain$tmpm1987982378$1, el = ($jscomp$optchain$tmpm1987982378$1 = ($jscomp$optchain$tmpm1987982378$0 = doc).querySelector) == null ? void 0 : $jscomp$optchain$tmpm1987982378$1.call($jscomp$optchain$tmpm1987982378$0, elementName + "[nonce]");
|
|
3438
3351
|
return el == null ? "" : el.nonce || el.getAttribute("nonce") || "";
|
|
3439
3352
|
}
|
|
3440
3353
|
;var module$exports$safevalues$internals$script_impl = {}, module$contents$safevalues$internals$script_impl_module = module$contents$safevalues$internals$script_impl_module || {id:"third_party/javascript/safevalues/internals/script_impl.closure.js"};
|
|
@@ -3485,6 +3398,154 @@ function module$contents$safevalues$dom$elements$script_setScriptSrc(script, v,
|
|
|
3485
3398
|
(options == null ? 0 : options.omitNonce) || module$contents$safevalues$dom$elements$script_setNonceForScriptElement(script);
|
|
3486
3399
|
}
|
|
3487
3400
|
module$exports$safevalues$dom$elements$script.setScriptSrc = module$contents$safevalues$dom$elements$script_setScriptSrc;
|
|
3401
|
+
var module$exports$safevalues$internals$attribute_impl = {}, module$contents$safevalues$internals$attribute_impl_module = module$contents$safevalues$internals$attribute_impl_module || {id:"third_party/javascript/safevalues/internals/attribute_impl.closure.js"};
|
|
3402
|
+
module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix = function(token, value) {
|
|
3403
|
+
goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
|
|
3404
|
+
this.privateDoNotAccessOrElseWrappedAttributePrefix = value;
|
|
3405
|
+
};
|
|
3406
|
+
module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix.prototype.toString = function() {
|
|
3407
|
+
return this.privateDoNotAccessOrElseWrappedAttributePrefix;
|
|
3408
|
+
};
|
|
3409
|
+
var module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl = module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix;
|
|
3410
|
+
function module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal(value) {
|
|
3411
|
+
return new module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix(module$exports$safevalues$internals$secrets.secretToken, value);
|
|
3412
|
+
}
|
|
3413
|
+
module$exports$safevalues$internals$attribute_impl.createAttributePrefixInternal = module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal;
|
|
3414
|
+
function module$contents$safevalues$internals$attribute_impl_isAttributePrefix(value) {
|
|
3415
|
+
return value instanceof module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix;
|
|
3416
|
+
}
|
|
3417
|
+
module$exports$safevalues$internals$attribute_impl.isAttributePrefix = module$contents$safevalues$internals$attribute_impl_isAttributePrefix;
|
|
3418
|
+
function module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix(value) {
|
|
3419
|
+
if (module$contents$safevalues$internals$attribute_impl_isAttributePrefix(value)) {
|
|
3420
|
+
return value.privateDoNotAccessOrElseWrappedAttributePrefix;
|
|
3421
|
+
}
|
|
3422
|
+
var message = "";
|
|
3423
|
+
goog.DEBUG && (message = "Unexpected type when unwrapping SafeAttributePrefix, got '" + value + "' of type '" + typeof value + "'");
|
|
3424
|
+
throw Error(message);
|
|
3425
|
+
}
|
|
3426
|
+
module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
|
|
3427
|
+
var module$exports$safevalues$dom$elements$element = {}, module$contents$safevalues$dom$elements$element_module = module$contents$safevalues$dom$elements$element_module || {id:"third_party/javascript/safevalues/dom/elements/element.closure.js"}, module$contents$safevalues$dom$elements$element_ScriptOrStyle;
|
|
3428
|
+
function module$contents$safevalues$dom$elements$element_setElementInnerHtml(elOrRoot, v) {
|
|
3429
|
+
module$contents$safevalues$dom$elements$element_isElement(elOrRoot) && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(elOrRoot);
|
|
3430
|
+
elOrRoot.innerHTML = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
|
|
3431
|
+
}
|
|
3432
|
+
module$exports$safevalues$dom$elements$element.setElementInnerHtml = module$contents$safevalues$dom$elements$element_setElementInnerHtml;
|
|
3433
|
+
function module$contents$safevalues$dom$elements$element_setElementOuterHtml(e, v) {
|
|
3434
|
+
var parent = e.parentElement;
|
|
3435
|
+
parent !== null && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(parent);
|
|
3436
|
+
e.outerHTML = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
|
|
3437
|
+
}
|
|
3438
|
+
module$exports$safevalues$dom$elements$element.setElementOuterHtml = module$contents$safevalues$dom$elements$element_setElementOuterHtml;
|
|
3439
|
+
function module$contents$safevalues$dom$elements$element_elementInsertAdjacentHtml(element, position, v) {
|
|
3440
|
+
var tagContext = position === "beforebegin" || position === "afterend" ? element.parentElement : element;
|
|
3441
|
+
tagContext !== null && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(tagContext);
|
|
3442
|
+
element.insertAdjacentHTML(position, (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v));
|
|
3443
|
+
}
|
|
3444
|
+
module$exports$safevalues$dom$elements$element.elementInsertAdjacentHtml = module$contents$safevalues$dom$elements$element_elementInsertAdjacentHtml;
|
|
3445
|
+
function module$contents$safevalues$dom$elements$element_buildPrefixedAttributeSetter(prefix) {
|
|
3446
|
+
var prefixes = [prefix].concat((0,$jscomp.arrayFromIterable)($jscomp.getRestArguments.apply(1, arguments)));
|
|
3447
|
+
return function(e, attr, value) {
|
|
3448
|
+
module$contents$safevalues$dom$elements$element_setElementPrefixedAttribute(prefixes, e, attr, value);
|
|
3449
|
+
};
|
|
3450
|
+
}
|
|
3451
|
+
module$exports$safevalues$dom$elements$element.buildPrefixedAttributeSetter = module$contents$safevalues$dom$elements$element_buildPrefixedAttributeSetter;
|
|
3452
|
+
function module$contents$safevalues$dom$elements$element_setElementPrefixedAttribute(attrPrefixes, e, attr, value) {
|
|
3453
|
+
if (attrPrefixes.length === 0) {
|
|
3454
|
+
var message = "";
|
|
3455
|
+
goog.DEBUG && (message = "No prefixes are provided");
|
|
3456
|
+
throw Error(message);
|
|
3457
|
+
}
|
|
3458
|
+
var prefixes = attrPrefixes.map(function(s) {
|
|
3459
|
+
return module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix(s);
|
|
3460
|
+
}), attrLower = attr.toLowerCase();
|
|
3461
|
+
if (prefixes.every(function(p) {
|
|
3462
|
+
return attrLower.indexOf(p) !== 0;
|
|
3463
|
+
})) {
|
|
3464
|
+
throw Error('Attribute "' + attr + '" does not match any of the allowed prefixes.');
|
|
3465
|
+
}
|
|
3466
|
+
e.setAttribute(attr, value);
|
|
3467
|
+
}
|
|
3468
|
+
module$exports$safevalues$dom$elements$element.setElementPrefixedAttribute = module$contents$safevalues$dom$elements$element_setElementPrefixedAttribute;
|
|
3469
|
+
function module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(element) {
|
|
3470
|
+
var message = "", tagName = element.tagName;
|
|
3471
|
+
if (/^(script|style)$/i.test(tagName)) {
|
|
3472
|
+
throw goog.DEBUG && (message = tagName.toLowerCase() === "script" ? "Use setScriptTextContent with a SafeScript." : "Use setStyleTextContent with a SafeStyleSheet."), Error(message);
|
|
3473
|
+
}
|
|
3474
|
+
}
|
|
3475
|
+
function module$contents$safevalues$dom$elements$element_isElement(elOrRoot) {
|
|
3476
|
+
return elOrRoot.nodeType === 1;
|
|
3477
|
+
}
|
|
3478
|
+
function module$contents$safevalues$dom$elements$element_setElementAttribute(el, attr, value) {
|
|
3479
|
+
if (el.namespaceURI !== "http://www.w3.org/1999/xhtml") {
|
|
3480
|
+
throw Error("Cannot set attribute '" + attr + "' on '" + el.tagName + "'.Element is not in the HTML namespace");
|
|
3481
|
+
}
|
|
3482
|
+
attr = attr.toLowerCase();
|
|
3483
|
+
switch(el.tagName + " " + attr) {
|
|
3484
|
+
case "A href":
|
|
3485
|
+
module$contents$safevalues$dom$elements$anchor_setAnchorHref(el, value);
|
|
3486
|
+
break;
|
|
3487
|
+
case "AREA href":
|
|
3488
|
+
module$contents$safevalues$dom$elements$area_setAreaHref(el, value);
|
|
3489
|
+
break;
|
|
3490
|
+
case "BASE href":
|
|
3491
|
+
module$contents$safevalues$dom$elements$base_setBaseHref(el, value);
|
|
3492
|
+
break;
|
|
3493
|
+
case "BUTTON formaction":
|
|
3494
|
+
module$contents$safevalues$dom$elements$button_setButtonFormaction(el, value);
|
|
3495
|
+
break;
|
|
3496
|
+
case "EMBED src":
|
|
3497
|
+
module$contents$safevalues$dom$elements$embed_setEmbedSrc(el, value);
|
|
3498
|
+
break;
|
|
3499
|
+
case "FORM action":
|
|
3500
|
+
module$contents$safevalues$dom$elements$form_setFormAction(el, value);
|
|
3501
|
+
break;
|
|
3502
|
+
case "IFRAME src":
|
|
3503
|
+
module$contents$safevalues$dom$elements$iframe_setIframeSrc(el, value);
|
|
3504
|
+
break;
|
|
3505
|
+
case "IFRAME srcdoc":
|
|
3506
|
+
module$contents$safevalues$dom$elements$iframe_setIframeSrcdoc(el, value);
|
|
3507
|
+
break;
|
|
3508
|
+
case "IFRAME sandbox":
|
|
3509
|
+
throw Error("Can't set 'sandbox' on iframe tags. Use setIframeSrcWithIntent or setIframeSrcdocWithIntent instead");
|
|
3510
|
+
case "INPUT formaction":
|
|
3511
|
+
module$contents$safevalues$dom$elements$input_setInputFormaction(el, value);
|
|
3512
|
+
break;
|
|
3513
|
+
case "LINK href":
|
|
3514
|
+
throw Error("Can't set 'href' attribute on link tags. Use setLinkHrefAndRel instead");
|
|
3515
|
+
case "LINK rel":
|
|
3516
|
+
throw Error("Can't set 'rel' attribute on link tags. Use setLinkHrefAndRel instead");
|
|
3517
|
+
case "OBJECT data":
|
|
3518
|
+
module$contents$safevalues$dom$elements$object_setObjectData(el, value);
|
|
3519
|
+
break;
|
|
3520
|
+
case "SCRIPT src":
|
|
3521
|
+
module$contents$safevalues$dom$elements$script_setScriptSrc(el, value);
|
|
3522
|
+
break;
|
|
3523
|
+
default:
|
|
3524
|
+
if (/^on./.test(attr)) {
|
|
3525
|
+
throw Error('Attribute "' + attr + '" looks like an event handler attribute. Please use a safe alternative like addEventListener instead.');
|
|
3526
|
+
}
|
|
3527
|
+
el.setAttribute(attr, value);
|
|
3528
|
+
}
|
|
3529
|
+
}
|
|
3530
|
+
module$exports$safevalues$dom$elements$element.setElementAttribute = module$contents$safevalues$dom$elements$element_setElementAttribute;
|
|
3531
|
+
var module$exports$safevalues$dom$elements$link = {}, module$contents$safevalues$dom$elements$link_module = module$contents$safevalues$dom$elements$link_module || {id:"third_party/javascript/safevalues/dom/elements/link.closure.js"}, module$contents$safevalues$dom$elements$link_SAFE_URL_REL_VALUES = "alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");
|
|
3532
|
+
function module$contents$safevalues$dom$elements$link_setLinkHrefAndRel(link, url, rel) {
|
|
3533
|
+
if (module$contents$safevalues$internals$resource_url_impl_isResourceUrl(url)) {
|
|
3534
|
+
module$contents$safevalues$dom$elements$link_setLinkWithResourceUrlHrefAndRel(link, url, rel);
|
|
3535
|
+
} else {
|
|
3536
|
+
if (module$contents$safevalues$dom$elements$link_SAFE_URL_REL_VALUES.indexOf(rel) === -1) {
|
|
3537
|
+
throw Error('TrustedResourceUrl href attribute required with rel="' + rel + '"');
|
|
3538
|
+
}
|
|
3539
|
+
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
3540
|
+
sanitizedUrl !== void 0 && (link.href = sanitizedUrl, link.rel = rel);
|
|
3541
|
+
}
|
|
3542
|
+
}
|
|
3543
|
+
module$exports$safevalues$dom$elements$link.setLinkHrefAndRel = module$contents$safevalues$dom$elements$link_setLinkHrefAndRel;
|
|
3544
|
+
function module$contents$safevalues$dom$elements$link_setLinkWithResourceUrlHrefAndRel(link, url, rel) {
|
|
3545
|
+
link.href = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url).toString();
|
|
3546
|
+
link.rel = rel;
|
|
3547
|
+
}
|
|
3548
|
+
module$exports$safevalues$dom$elements$link.setLinkWithResourceUrlHrefAndRel = module$contents$safevalues$dom$elements$link_setLinkWithResourceUrlHrefAndRel;
|
|
3488
3549
|
var module$exports$safevalues$internals$style_sheet_impl = {}, module$contents$safevalues$internals$style_sheet_impl_module = module$contents$safevalues$internals$style_sheet_impl_module || {id:"third_party/javascript/safevalues/internals/style_sheet_impl.closure.js"};
|
|
3489
3550
|
module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet = function(token, value) {
|
|
3490
3551
|
goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
|
|
@@ -4120,14 +4181,14 @@ goog.array.concatMap = function(arr, f, opt_obj) {
|
|
|
4120
4181
|
return module$contents$goog$array_concat.apply([], module$contents$goog$array_map(arr, f, opt_obj));
|
|
4121
4182
|
};
|
|
4122
4183
|
goog.debug.errorcontext = {};
|
|
4123
|
-
goog
|
|
4124
|
-
err
|
|
4125
|
-
err
|
|
4126
|
-
}
|
|
4184
|
+
function module$contents$goog$debug$errorcontext_addErrorContext(err, contextKey, contextValue) {
|
|
4185
|
+
err.__closure__error__context__984382 || (err.__closure__error__context__984382 = {});
|
|
4186
|
+
err.__closure__error__context__984382[contextKey] = contextValue;
|
|
4187
|
+
}
|
|
4188
|
+
goog.debug.errorcontext.addErrorContext = module$contents$goog$debug$errorcontext_addErrorContext;
|
|
4127
4189
|
goog.debug.errorcontext.getErrorContext = function(err) {
|
|
4128
|
-
return err
|
|
4190
|
+
return err.__closure__error__context__984382 || {};
|
|
4129
4191
|
};
|
|
4130
|
-
goog.debug.errorcontext.CONTEXT_KEY_ = "__closure__error__context__984382";
|
|
4131
4192
|
goog.debug.LOGGING_ENABLED = goog.DEBUG;
|
|
4132
4193
|
goog.debug.FORCE_SLOPPY_STACKS = !1;
|
|
4133
4194
|
goog.debug.CHECK_FOR_THROWN_EVENT = !1;
|
|
@@ -4287,7 +4348,7 @@ goog.debug.enhanceErrorWithContext = function(err, opt_context) {
|
|
|
4287
4348
|
var error = goog.debug.enhanceError(err);
|
|
4288
4349
|
if (opt_context) {
|
|
4289
4350
|
for (var key in opt_context) {
|
|
4290
|
-
goog
|
|
4351
|
+
module$contents$goog$debug$errorcontext_addErrorContext(error, key, opt_context[key]);
|
|
4291
4352
|
}
|
|
4292
4353
|
}
|
|
4293
4354
|
return error;
|
|
@@ -4724,9 +4785,9 @@ function module$contents$safevalues$dom$globals$dom_parser_domParserParseFromStr
|
|
|
4724
4785
|
module$exports$safevalues$dom$globals$dom_parser.domParserParseFromString = module$contents$safevalues$dom$globals$dom_parser_domParserParseFromString;
|
|
4725
4786
|
var module$exports$safevalues$dom$globals$fetch = {}, module$contents$safevalues$dom$globals$fetch_module = module$contents$safevalues$dom$globals$fetch_module || {id:"third_party/javascript/safevalues/dom/globals/fetch.closure.js"};
|
|
4726
4787
|
module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError = function(url, typeName, contentType) {
|
|
4727
|
-
var $jscomp$tmp$error$
|
|
4728
|
-
this.message = $jscomp$tmp$error$
|
|
4729
|
-
"stack" in $jscomp$tmp$error$
|
|
4788
|
+
var $jscomp$tmp$error$1153895636$25 = Error.call(this, url + " was requested as a " + typeName + ', but the response Content-Type, "' + contentType + " is not appropriate for this type of content.");
|
|
4789
|
+
this.message = $jscomp$tmp$error$1153895636$25.message;
|
|
4790
|
+
"stack" in $jscomp$tmp$error$1153895636$25 && (this.stack = $jscomp$tmp$error$1153895636$25.stack);
|
|
4730
4791
|
this.url = url;
|
|
4731
4792
|
this.typeName = typeName;
|
|
4732
4793
|
this.contentType = contentType;
|
|
@@ -4738,48 +4799,48 @@ function module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(
|
|
|
4738
4799
|
return (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(html);
|
|
4739
4800
|
}
|
|
4740
4801
|
function module$contents$safevalues$dom$globals$fetch_fetchResourceUrl(u, init) {
|
|
4741
|
-
var response, $jscomp$optchain$
|
|
4742
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4743
|
-
if ($jscomp$generator$context$
|
|
4744
|
-
return $jscomp$generator$context$
|
|
4745
|
-
}
|
|
4746
|
-
response = $jscomp$generator$context$
|
|
4747
|
-
mimeType = ($jscomp$optchain$
|
|
4748
|
-
return $jscomp$generator$context$
|
|
4802
|
+
var response, $jscomp$optchain$tmp1153895636$0, $jscomp$optchain$tmp1153895636$1, $jscomp$optchain$tmp1153895636$2, mimeType;
|
|
4803
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$29) {
|
|
4804
|
+
if ($jscomp$generator$context$1153895636$29.nextAddress == 1) {
|
|
4805
|
+
return $jscomp$generator$context$1153895636$29.yield(fetch(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(u).toString(), init), 2);
|
|
4806
|
+
}
|
|
4807
|
+
response = $jscomp$generator$context$1153895636$29.yieldResult;
|
|
4808
|
+
mimeType = ($jscomp$optchain$tmp1153895636$0 = response.headers.get("Content-Type")) == null ? void 0 : ($jscomp$optchain$tmp1153895636$1 = $jscomp$optchain$tmp1153895636$0.split(";", 2)) == null ? void 0 : ($jscomp$optchain$tmp1153895636$2 = $jscomp$optchain$tmp1153895636$1[0]) == null ? void 0 : $jscomp$optchain$tmp1153895636$2.toLowerCase();
|
|
4809
|
+
return $jscomp$generator$context$1153895636$29.return({html:function() {
|
|
4749
4810
|
var text;
|
|
4750
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4751
|
-
if ($jscomp$generator$context$
|
|
4811
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$26) {
|
|
4812
|
+
if ($jscomp$generator$context$1153895636$26.nextAddress == 1) {
|
|
4752
4813
|
if (mimeType !== "text/html") {
|
|
4753
4814
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeHtml", "text/html");
|
|
4754
4815
|
}
|
|
4755
|
-
return $jscomp$generator$context$
|
|
4816
|
+
return $jscomp$generator$context$1153895636$26.yield(response.text(), 2);
|
|
4756
4817
|
}
|
|
4757
|
-
text = $jscomp$generator$context$
|
|
4758
|
-
return $jscomp$generator$context$
|
|
4818
|
+
text = $jscomp$generator$context$1153895636$26.yieldResult;
|
|
4819
|
+
return $jscomp$generator$context$1153895636$26.return(module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(text));
|
|
4759
4820
|
});
|
|
4760
4821
|
}, script:function() {
|
|
4761
4822
|
var text;
|
|
4762
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4763
|
-
if ($jscomp$generator$context$
|
|
4823
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$27) {
|
|
4824
|
+
if ($jscomp$generator$context$1153895636$27.nextAddress == 1) {
|
|
4764
4825
|
if (mimeType !== "text/javascript" && mimeType !== "application/javascript") {
|
|
4765
4826
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeScript", "text/javascript");
|
|
4766
4827
|
}
|
|
4767
|
-
return $jscomp$generator$context$
|
|
4828
|
+
return $jscomp$generator$context$1153895636$27.yield(response.text(), 2);
|
|
4768
4829
|
}
|
|
4769
|
-
text = $jscomp$generator$context$
|
|
4770
|
-
return $jscomp$generator$context$
|
|
4830
|
+
text = $jscomp$generator$context$1153895636$27.yieldResult;
|
|
4831
|
+
return $jscomp$generator$context$1153895636$27.return(module$contents$safevalues$internals$script_impl_createScriptInternal(text));
|
|
4771
4832
|
});
|
|
4772
4833
|
}, styleSheet:function() {
|
|
4773
4834
|
var text;
|
|
4774
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4775
|
-
if ($jscomp$generator$context$
|
|
4835
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$28) {
|
|
4836
|
+
if ($jscomp$generator$context$1153895636$28.nextAddress == 1) {
|
|
4776
4837
|
if (mimeType !== "text/css") {
|
|
4777
4838
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeStyleSheet", "text/css");
|
|
4778
4839
|
}
|
|
4779
|
-
return $jscomp$generator$context$
|
|
4840
|
+
return $jscomp$generator$context$1153895636$28.yield(response.text(), 2);
|
|
4780
4841
|
}
|
|
4781
|
-
text = $jscomp$generator$context$
|
|
4782
|
-
return $jscomp$generator$context$
|
|
4842
|
+
text = $jscomp$generator$context$1153895636$28.yieldResult;
|
|
4843
|
+
return $jscomp$generator$context$1153895636$28.return(module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(text));
|
|
4783
4844
|
});
|
|
4784
4845
|
}});
|
|
4785
4846
|
});
|
|
@@ -4846,6 +4907,7 @@ module$exports$safevalues$dom$index.setBaseHref = module$contents$safevalues$dom
|
|
|
4846
4907
|
module$exports$safevalues$dom$index.setButtonFormaction = module$contents$safevalues$dom$elements$button_setButtonFormaction;
|
|
4847
4908
|
module$exports$safevalues$dom$index.buildPrefixedAttributeSetter = module$contents$safevalues$dom$elements$element_buildPrefixedAttributeSetter;
|
|
4848
4909
|
module$exports$safevalues$dom$index.elementInsertAdjacentHtml = module$contents$safevalues$dom$elements$element_elementInsertAdjacentHtml;
|
|
4910
|
+
module$exports$safevalues$dom$index.setElementAttribute = module$contents$safevalues$dom$elements$element_setElementAttribute;
|
|
4849
4911
|
module$exports$safevalues$dom$index.setElementInnerHtml = module$contents$safevalues$dom$elements$element_setElementInnerHtml;
|
|
4850
4912
|
module$exports$safevalues$dom$index.setElementOuterHtml = module$contents$safevalues$dom$elements$element_setElementOuterHtml;
|
|
4851
4913
|
module$exports$safevalues$dom$index.setElementPrefixedAttribute = module$contents$safevalues$dom$elements$element_setElementPrefixedAttribute;
|
|
@@ -4895,6 +4957,7 @@ safevalues.dom.setBaseHref = module$contents$safevalues$dom$elements$base_setBas
|
|
|
4895
4957
|
safevalues.dom.setButtonFormaction = module$contents$safevalues$dom$elements$button_setButtonFormaction;
|
|
4896
4958
|
safevalues.dom.buildPrefixedAttributeSetter = module$contents$safevalues$dom$elements$element_buildPrefixedAttributeSetter;
|
|
4897
4959
|
safevalues.dom.elementInsertAdjacentHtml = module$contents$safevalues$dom$elements$element_elementInsertAdjacentHtml;
|
|
4960
|
+
safevalues.dom.setElementAttribute = module$contents$safevalues$dom$elements$element_setElementAttribute;
|
|
4898
4961
|
safevalues.dom.setElementInnerHtml = module$contents$safevalues$dom$elements$element_setElementInnerHtml;
|
|
4899
4962
|
safevalues.dom.setElementOuterHtml = module$contents$safevalues$dom$elements$element_setElementOuterHtml;
|
|
4900
4963
|
safevalues.dom.setElementPrefixedAttribute = module$contents$safevalues$dom$elements$element_setElementPrefixedAttribute;
|
|
@@ -4979,11 +5042,11 @@ safevalues.restricted.reviewed.urlSafeByReview = module$contents$safevalues$rest
|
|
|
4979
5042
|
goog.string.DETECT_DOUBLE_ESCAPING = !1;
|
|
4980
5043
|
goog.string.FORCE_NON_DOM_HTML_UNESCAPING = !1;
|
|
4981
5044
|
goog.string.Unicode = {NBSP:"\u00a0", ZERO_WIDTH_SPACE:"\u200b"};
|
|
4982
|
-
goog.string.startsWith = goog
|
|
4983
|
-
goog.string.endsWith = goog
|
|
4984
|
-
goog.string.caseInsensitiveStartsWith = goog
|
|
4985
|
-
goog.string.caseInsensitiveEndsWith = goog
|
|
4986
|
-
goog.string.caseInsensitiveEquals = goog
|
|
5045
|
+
goog.string.startsWith = module$contents$goog$string$internal_startsWith;
|
|
5046
|
+
goog.string.endsWith = module$contents$goog$string$internal_endsWith;
|
|
5047
|
+
goog.string.caseInsensitiveStartsWith = module$contents$goog$string$internal_caseInsensitiveStartsWith;
|
|
5048
|
+
goog.string.caseInsensitiveEndsWith = module$contents$goog$string$internal_caseInsensitiveEndsWith;
|
|
5049
|
+
goog.string.caseInsensitiveEquals = module$contents$goog$string$internal_caseInsensitiveEquals;
|
|
4987
5050
|
goog.string.subs = function(str, var_args) {
|
|
4988
5051
|
for (var splitParts = str.split("%s"), returnString = "", subsArguments = Array.prototype.slice.call(arguments, 1); subsArguments.length && splitParts.length > 1;) {
|
|
4989
5052
|
returnString += splitParts.shift() + subsArguments.shift();
|
|
@@ -4993,7 +5056,7 @@ goog.string.subs = function(str, var_args) {
|
|
|
4993
5056
|
goog.string.collapseWhitespace = function(str) {
|
|
4994
5057
|
return str.replace(/[\s\xa0]+/g, " ").replace(/^\s+|\s+$/g, "");
|
|
4995
5058
|
};
|
|
4996
|
-
goog.string.isEmptyOrWhitespace = goog
|
|
5059
|
+
goog.string.isEmptyOrWhitespace = module$contents$goog$string$internal_isEmptyOrWhitespace;
|
|
4997
5060
|
goog.string.isEmptyString = function(str) {
|
|
4998
5061
|
return str.length == 0;
|
|
4999
5062
|
};
|
|
@@ -5035,14 +5098,14 @@ goog.string.normalizeSpaces = function(str) {
|
|
|
5035
5098
|
goog.string.collapseBreakingSpaces = function(str) {
|
|
5036
5099
|
return str.replace(/[\t\r\n ]+/g, " ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g, "");
|
|
5037
5100
|
};
|
|
5038
|
-
goog.string.trim = goog
|
|
5101
|
+
goog.string.trim = module$contents$goog$string$internal_trim;
|
|
5039
5102
|
goog.string.trimLeft = function(str) {
|
|
5040
5103
|
return str.replace(/^[\s\xa0]+/, "");
|
|
5041
5104
|
};
|
|
5042
5105
|
goog.string.trimRight = function(str) {
|
|
5043
5106
|
return str.replace(/[\s\xa0]+$/, "");
|
|
5044
5107
|
};
|
|
5045
|
-
goog.string.caseInsensitiveCompare = goog
|
|
5108
|
+
goog.string.caseInsensitiveCompare = module$contents$goog$string$internal_caseInsensitiveCompare;
|
|
5046
5109
|
goog.string.numberAwareCompare_ = function(str1, str2, tokenizerRegExp) {
|
|
5047
5110
|
if (str1 == str2) {
|
|
5048
5111
|
return 0;
|
|
@@ -5081,9 +5144,9 @@ goog.string.urlEncode = function(str) {
|
|
|
5081
5144
|
goog.string.urlDecode = function(str) {
|
|
5082
5145
|
return decodeURIComponent(str.replace(/\+/g, " "));
|
|
5083
5146
|
};
|
|
5084
|
-
goog.string.newLineToBr = goog
|
|
5147
|
+
goog.string.newLineToBr = module$contents$goog$string$internal_newLineToBr;
|
|
5085
5148
|
goog.string.htmlEscape = function(str, opt_isLikelyToContainHtmlChars) {
|
|
5086
|
-
str = goog
|
|
5149
|
+
str = module$contents$goog$string$internal_htmlEscape(str, opt_isLikelyToContainHtmlChars);
|
|
5087
5150
|
goog.string.DETECT_DOUBLE_ESCAPING && (str = str.replace(goog.string.E_RE_, "e"));
|
|
5088
5151
|
return str;
|
|
5089
5152
|
};
|
|
@@ -5204,8 +5267,8 @@ goog.string.escapeChar = function(c) {
|
|
|
5204
5267
|
}
|
|
5205
5268
|
return goog.string.jsEscapeCache_[c] = rv;
|
|
5206
5269
|
};
|
|
5207
|
-
goog.string.contains = goog
|
|
5208
|
-
goog.string.caseInsensitiveContains = goog
|
|
5270
|
+
goog.string.contains = module$contents$goog$string$internal_contains;
|
|
5271
|
+
goog.string.caseInsensitiveContains = module$contents$goog$string$internal_caseInsensitiveContains;
|
|
5209
5272
|
goog.string.countOf = function(s, ss) {
|
|
5210
5273
|
return s && ss ? s.split(ss).length - 1 : 0;
|
|
5211
5274
|
};
|
|
@@ -5249,7 +5312,7 @@ goog.string.makeSafe = function(obj) {
|
|
|
5249
5312
|
goog.string.getRandomString = function() {
|
|
5250
5313
|
return Math.floor(Math.random() * 2147483648).toString(36) + Math.abs(Math.floor(Math.random() * 2147483648) ^ goog.now()).toString(36);
|
|
5251
5314
|
};
|
|
5252
|
-
goog.string.compareVersions = goog
|
|
5315
|
+
goog.string.compareVersions = module$contents$goog$string$internal_compareVersions;
|
|
5253
5316
|
goog.string.hashCode = function(str) {
|
|
5254
5317
|
for (var result = 0, i = 0; i < str.length; ++i) {
|
|
5255
5318
|
result = 31 * result + str.charCodeAt(i) >>> 0;
|
|
@@ -6251,8 +6314,8 @@ function module$contents$eeapiclient$request_params_processParams(params) {
|
|
|
6251
6314
|
}
|
|
6252
6315
|
module$exports$eeapiclient$request_params.processParams = module$contents$eeapiclient$request_params_processParams;
|
|
6253
6316
|
function module$contents$eeapiclient$request_params_buildQueryParams(params, mapping, passthroughParams) {
|
|
6254
|
-
for (var urlQueryParams = passthroughParams = passthroughParams === void 0 ? {} : passthroughParams, $jscomp$iter$29 = (0,$jscomp.makeIterator)(Object.entries(mapping)), $jscomp$key$
|
|
6255
|
-
var $jscomp$destructuring$var3 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
6317
|
+
for (var urlQueryParams = passthroughParams = passthroughParams === void 0 ? {} : passthroughParams, $jscomp$iter$29 = (0,$jscomp.makeIterator)(Object.entries(mapping)), $jscomp$key$m125199259$0$ = $jscomp$iter$29.next(); !$jscomp$key$m125199259$0$.done; $jscomp$key$m125199259$0$ = $jscomp$iter$29.next()) {
|
|
6318
|
+
var $jscomp$destructuring$var3 = (0,$jscomp.makeIterator)($jscomp$key$m125199259$0$.value), jsName__tsickle_destructured_1 = $jscomp$destructuring$var3.next().value, urlQueryParamName__tsickle_destructured_2 = $jscomp$destructuring$var3.next().value, jsName = jsName__tsickle_destructured_1, urlQueryParamName = urlQueryParamName__tsickle_destructured_2;
|
|
6256
6319
|
jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]);
|
|
6257
6320
|
}
|
|
6258
6321
|
return urlQueryParams;
|
|
@@ -6263,8 +6326,8 @@ module$exports$eeapiclient$request_params.bypassCorsPreflight = function(params)
|
|
|
6263
6326
|
var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1, hasSafeContentType = !1;
|
|
6264
6327
|
if (params.headers) {
|
|
6265
6328
|
hasContentType = params.headers["Content-Type"] != null;
|
|
6266
|
-
for (var $jscomp$iter$30 = (0,$jscomp.makeIterator)(Object.entries(params.headers)), $jscomp$key$
|
|
6267
|
-
var $jscomp$destructuring$var5 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
6329
|
+
for (var $jscomp$iter$30 = (0,$jscomp.makeIterator)(Object.entries(params.headers)), $jscomp$key$m125199259$1$ = $jscomp$iter$30.next(); !$jscomp$key$m125199259$1$.done; $jscomp$key$m125199259$1$ = $jscomp$iter$30.next()) {
|
|
6330
|
+
var $jscomp$destructuring$var5 = (0,$jscomp.makeIterator)($jscomp$key$m125199259$1$.value), key__tsickle_destructured_3 = $jscomp$destructuring$var5.next().value, value__tsickle_destructured_4 = $jscomp$destructuring$var5.next().value, key = key__tsickle_destructured_3, value = value__tsickle_destructured_4;
|
|
6268
6331
|
module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders.includes(key) ? safeHeaders[key] = value : key === "Content-Type" && module$contents$eeapiclient$request_params_simpleCorsAllowedContentTypes.includes(value) ? (safeHeaders[key] = value, hasSafeContentType = !0) : (unsafeHeaders[key] = value, hasUnsafeHeaders = !0);
|
|
6269
6332
|
}
|
|
6270
6333
|
}
|
|
@@ -6304,9 +6367,9 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$reques
|
|
|
6304
6367
|
return this.$addHooksToRequest(requestParams, this.requestService.send(module$contents$eeapiclient$api_client_toMakeRequestParams(requestParams), responseCtor));
|
|
6305
6368
|
};
|
|
6306
6369
|
module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$uploadRequest = function(requestParams) {
|
|
6307
|
-
var $jscomp$this$
|
|
6370
|
+
var $jscomp$this$m296226325$4 = this, responseCtor = requestParams.responseCtor || void 0;
|
|
6308
6371
|
return this.$addHooksToRequest(requestParams, module$contents$eeapiclient$api_client_toMultipartMakeRequestParams(requestParams).then(function(params) {
|
|
6309
|
-
return $jscomp$this$
|
|
6372
|
+
return $jscomp$this$m296226325$4.requestService.send(params, responseCtor);
|
|
6310
6373
|
}));
|
|
6311
6374
|
};
|
|
6312
6375
|
var module$exports$eeapiclient$promise_request_service = {}, module$contents$eeapiclient$promise_request_service_module = module$contents$eeapiclient$promise_request_service_module || {id:"javascript/typescript/contrib/apiclient/request_service/promise_request_service.closure.js"};
|
|
@@ -6534,14 +6597,14 @@ function module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand(str) {
|
|
|
6534
6597
|
var data = module$contents$goog$labs$userAgent$util_getUserAgentData();
|
|
6535
6598
|
return data ? data.brands.some(function($jscomp$destructuring$var6) {
|
|
6536
6599
|
var brand;
|
|
6537
|
-
return (brand = $jscomp$destructuring$var6.brand) &&
|
|
6600
|
+
return (brand = $jscomp$destructuring$var6.brand) && module$contents$goog$string$internal_contains(brand, str);
|
|
6538
6601
|
}) : !1;
|
|
6539
6602
|
}
|
|
6540
6603
|
function module$contents$goog$labs$userAgent$util_matchUserAgent(str) {
|
|
6541
|
-
return
|
|
6604
|
+
return module$contents$goog$string$internal_contains(module$contents$goog$labs$userAgent$util_getUserAgent(), str);
|
|
6542
6605
|
}
|
|
6543
6606
|
function module$contents$goog$labs$userAgent$util_matchUserAgentIgnoreCase(str) {
|
|
6544
|
-
return
|
|
6607
|
+
return module$contents$goog$string$internal_caseInsensitiveContains(module$contents$goog$labs$userAgent$util_getUserAgent(), str);
|
|
6545
6608
|
}
|
|
6546
6609
|
function module$contents$goog$labs$userAgent$util_extractVersionTuples(userAgent) {
|
|
6547
6610
|
for (var versionRegExp = RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?", "g"), data = [], match; match = versionRegExp.exec(userAgent);) {
|
|
@@ -6623,7 +6686,7 @@ module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version.prototyp
|
|
|
6623
6686
|
return this.versionString_;
|
|
6624
6687
|
};
|
|
6625
6688
|
module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version.prototype.isAtLeast = function(version) {
|
|
6626
|
-
return
|
|
6689
|
+
return module$contents$goog$string$internal_compareVersions(this.versionString_, version) >= 0;
|
|
6627
6690
|
};
|
|
6628
6691
|
var module$exports$goog$labs$userAgent$highEntropy$highEntropyData = {};
|
|
6629
6692
|
module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList = new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue("fullVersionList");
|
|
@@ -6737,7 +6800,7 @@ function module$contents$goog$labs$userAgent$browser_getVersion() {
|
|
|
6737
6800
|
}
|
|
6738
6801
|
goog.labs.userAgent.browser.getVersion = module$contents$goog$labs$userAgent$browser_getVersion;
|
|
6739
6802
|
goog.labs.userAgent.browser.isVersionOrHigher = function(version) {
|
|
6740
|
-
return
|
|
6803
|
+
return module$contents$goog$string$internal_compareVersions(module$contents$goog$labs$userAgent$browser_getVersion(), version) >= 0;
|
|
6741
6804
|
};
|
|
6742
6805
|
function module$contents$goog$labs$userAgent$browser_getIEVersion(userAgent) {
|
|
6743
6806
|
var rv = /rv: *([\d\.]*)/.exec(userAgent);
|
|
@@ -6971,7 +7034,7 @@ goog.labs.userAgent.engine.isPresto = function() {
|
|
|
6971
7034
|
};
|
|
6972
7035
|
goog.labs.userAgent.engine.isTrident = module$contents$goog$labs$userAgent$engine_isTrident;
|
|
6973
7036
|
goog.labs.userAgent.engine.isVersionOrHigher = function(version) {
|
|
6974
|
-
return goog
|
|
7037
|
+
return module$contents$goog$string$internal_compareVersions(module$contents$goog$labs$userAgent$engine_getVersion(), version) >= 0;
|
|
6975
7038
|
};
|
|
6976
7039
|
goog.labs.userAgent.engine.isWebKit = module$contents$goog$labs$userAgent$engine_isWebKit;
|
|
6977
7040
|
goog.labs.userAgent.platform = {};
|
|
@@ -7085,7 +7148,7 @@ goog.labs.userAgent.platform.isKaiOS = module$contents$goog$labs$userAgent$platf
|
|
|
7085
7148
|
goog.labs.userAgent.platform.isLinux = module$contents$goog$labs$userAgent$platform_isLinux;
|
|
7086
7149
|
goog.labs.userAgent.platform.isMacintosh = module$contents$goog$labs$userAgent$platform_isMacintosh;
|
|
7087
7150
|
goog.labs.userAgent.platform.isVersionOrHigher = function(version) {
|
|
7088
|
-
return goog
|
|
7151
|
+
return module$contents$goog$string$internal_compareVersions(module$contents$goog$labs$userAgent$platform_getVersion(), version) >= 0;
|
|
7089
7152
|
};
|
|
7090
7153
|
goog.labs.userAgent.platform.isWindows = module$contents$goog$labs$userAgent$platform_isWindows;
|
|
7091
7154
|
goog.labs.userAgent.platform.version = module$contents$goog$labs$userAgent$platform_version;
|
|
@@ -7203,12 +7266,12 @@ goog.userAgent.getDocumentMode_ = function() {
|
|
|
7203
7266
|
};
|
|
7204
7267
|
goog.userAgent.VERSION = goog.userAgent.determineVersion_();
|
|
7205
7268
|
goog.userAgent.compare = function(v1, v2) {
|
|
7206
|
-
return goog
|
|
7269
|
+
return module$contents$goog$string$internal_compareVersions(v1, v2);
|
|
7207
7270
|
};
|
|
7208
7271
|
goog.userAgent.isVersionOrHigherCache_ = {};
|
|
7209
7272
|
goog.userAgent.isVersionOrHigher = function(version) {
|
|
7210
7273
|
return goog.userAgent.ASSUME_ANY_VERSION || goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_, version, function() {
|
|
7211
|
-
return goog
|
|
7274
|
+
return module$contents$goog$string$internal_compareVersions(goog.userAgent.VERSION, version) >= 0;
|
|
7212
7275
|
});
|
|
7213
7276
|
};
|
|
7214
7277
|
goog.userAgent.isDocumentModeOrHigher = function(documentMode) {
|
|
@@ -7221,18 +7284,19 @@ goog.userAgent.DOCUMENT_MODE = function() {
|
|
|
7221
7284
|
}
|
|
7222
7285
|
}();
|
|
7223
7286
|
goog.events.eventTypeHelpers = {};
|
|
7224
|
-
goog
|
|
7287
|
+
function module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName(eventName) {
|
|
7225
7288
|
return goog.userAgent.WEBKIT ? "webkit" + eventName : eventName.toLowerCase();
|
|
7226
|
-
}
|
|
7289
|
+
}
|
|
7227
7290
|
goog.events.eventTypeHelpers.getPointerFallbackEventName = function(pointerEventName, fallbackEventName) {
|
|
7228
7291
|
return goog.events.BrowserFeature.POINTER_EVENTS ? pointerEventName : fallbackEventName;
|
|
7229
7292
|
};
|
|
7293
|
+
goog.events.eventTypeHelpers.getVendorPrefixedName = module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName;
|
|
7230
7294
|
goog.events.EventType = {CLICK:"click", RIGHTCLICK:"rightclick", DBLCLICK:"dblclick", AUXCLICK:"auxclick", MOUSEDOWN:"mousedown", MOUSEUP:"mouseup", MOUSEOVER:"mouseover", MOUSEOUT:"mouseout", MOUSEMOVE:"mousemove", MOUSEENTER:"mouseenter", MOUSELEAVE:"mouseleave", MOUSECANCEL:"mousecancel", SELECTIONCHANGE:"selectionchange", SELECTSTART:"selectstart", WHEEL:"wheel", KEYPRESS:"keypress", KEYDOWN:"keydown", KEYUP:"keyup", BLUR:"blur", FOCUS:"focus", DEACTIVATE:"deactivate", FOCUSIN:"focusin", FOCUSOUT:"focusout",
|
|
7231
7295
|
CHANGE:"change", RESET:"reset", SELECT:"select", SUBMIT:"submit", INPUT:"input", PROPERTYCHANGE:"propertychange", DRAGSTART:"dragstart", DRAG:"drag", DRAGENTER:"dragenter", DRAGOVER:"dragover", DRAGLEAVE:"dragleave", DROP:"drop", DRAGEND:"dragend", TOUCHSTART:"touchstart", TOUCHMOVE:"touchmove", TOUCHEND:"touchend", TOUCHCANCEL:"touchcancel", BEFOREUNLOAD:"beforeunload", CONSOLEMESSAGE:"consolemessage", CONTEXTMENU:"contextmenu", DEVICECHANGE:"devicechange", DEVICEMOTION:"devicemotion", DEVICEORIENTATION:"deviceorientation",
|
|
7232
7296
|
DOMCONTENTLOADED:"DOMContentLoaded", ERROR:"error", HELP:"help", LOAD:"load", LOSECAPTURE:"losecapture", ORIENTATIONCHANGE:"orientationchange", READYSTATECHANGE:"readystatechange", RESIZE:"resize", SCROLL:"scroll", UNLOAD:"unload", CANPLAY:"canplay", CANPLAYTHROUGH:"canplaythrough", DURATIONCHANGE:"durationchange", EMPTIED:"emptied", ENDED:"ended", LOADEDDATA:"loadeddata", LOADEDMETADATA:"loadedmetadata", PAUSE:"pause", PLAY:"play", PLAYING:"playing", PROGRESS:"progress", RATECHANGE:"ratechange",
|
|
7233
7297
|
SEEKED:"seeked", SEEKING:"seeking", STALLED:"stalled", SUSPEND:"suspend", TIMEUPDATE:"timeupdate", VOLUMECHANGE:"volumechange", WAITING:"waiting", SOURCEOPEN:"sourceopen", SOURCEENDED:"sourceended", SOURCECLOSED:"sourceclosed", ABORT:"abort", UPDATE:"update", UPDATESTART:"updatestart", UPDATEEND:"updateend", HASHCHANGE:"hashchange", PAGEHIDE:"pagehide", PAGESHOW:"pageshow", POPSTATE:"popstate", COPY:"copy", PASTE:"paste", CUT:"cut", BEFORECOPY:"beforecopy", BEFORECUT:"beforecut", BEFOREPASTE:"beforepaste",
|
|
7234
|
-
ONLINE:"online", OFFLINE:"offline", MESSAGE:"message", CONNECT:"connect", INSTALL:"install", ACTIVATE:"activate", FETCH:"fetch", FOREIGNFETCH:"foreignfetch", MESSAGEERROR:"messageerror", STATECHANGE:"statechange", UPDATEFOUND:"updatefound", CONTROLLERCHANGE:"controllerchange", ANIMATIONSTART:goog
|
|
7235
|
-
TRANSITIONEND:goog
|
|
7298
|
+
ONLINE:"online", OFFLINE:"offline", MESSAGE:"message", CONNECT:"connect", INSTALL:"install", ACTIVATE:"activate", FETCH:"fetch", FOREIGNFETCH:"foreignfetch", MESSAGEERROR:"messageerror", STATECHANGE:"statechange", UPDATEFOUND:"updatefound", CONTROLLERCHANGE:"controllerchange", ANIMATIONSTART:module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName("AnimationStart"), ANIMATIONEND:module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName("AnimationEnd"), ANIMATIONITERATION:module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName("AnimationIteration"),
|
|
7299
|
+
TRANSITIONEND:module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName("TransitionEnd"), POINTERDOWN:"pointerdown", POINTERUP:"pointerup", POINTERCANCEL:"pointercancel", POINTERMOVE:"pointermove", POINTEROVER:"pointerover", POINTEROUT:"pointerout", POINTERENTER:"pointerenter", POINTERLEAVE:"pointerleave", GOTPOINTERCAPTURE:"gotpointercapture", LOSTPOINTERCAPTURE:"lostpointercapture", MSGESTURECHANGE:"MSGestureChange", MSGESTUREEND:"MSGestureEnd", MSGESTUREHOLD:"MSGestureHold", MSGESTURESTART:"MSGestureStart",
|
|
7236
7300
|
MSGESTURETAP:"MSGestureTap", MSGOTPOINTERCAPTURE:"MSGotPointerCapture", MSINERTIASTART:"MSInertiaStart", MSLOSTPOINTERCAPTURE:"MSLostPointerCapture", MSPOINTERCANCEL:"MSPointerCancel", MSPOINTERDOWN:"MSPointerDown", MSPOINTERENTER:"MSPointerEnter", MSPOINTERHOVER:"MSPointerHover", MSPOINTERLEAVE:"MSPointerLeave", MSPOINTERMOVE:"MSPointerMove", MSPOINTEROUT:"MSPointerOut", MSPOINTEROVER:"MSPointerOver", MSPOINTERUP:"MSPointerUp", TEXT:"text", TEXTINPUT:"textInput", COMPOSITIONSTART:"compositionstart",
|
|
7237
7301
|
COMPOSITIONUPDATE:"compositionupdate", COMPOSITIONEND:"compositionend", BEFOREINPUT:"beforeinput", FULLSCREENCHANGE:"fullscreenchange", WEBKITBEGINFULLSCREEN:"webkitbeginfullscreen", WEBKITENDFULLSCREEN:"webkitendfullscreen", EXIT:"exit", LOADABORT:"loadabort", LOADCOMMIT:"loadcommit", LOADREDIRECT:"loadredirect", LOADSTART:"loadstart", LOADSTOP:"loadstop", RESPONSIVE:"responsive", SIZECHANGED:"sizechanged", UNRESPONSIVE:"unresponsive", VISIBILITYCHANGE:"visibilitychange", STORAGE:"storage", BEFOREPRINT:"beforeprint",
|
|
7238
7302
|
AFTERPRINT:"afterprint", BEFOREINSTALLPROMPT:"beforeinstallprompt", APPINSTALLED:"appinstalled", CANCEL:"cancel", FINISH:"finish", REMOVE:"remove"};
|
|
@@ -7354,25 +7418,25 @@ goog.events.Listener.prototype.markAsRemoved = function() {
|
|
|
7354
7418
|
this.removed = !0;
|
|
7355
7419
|
this.handler = this.src = this.proxy = this.listener = null;
|
|
7356
7420
|
};
|
|
7357
|
-
goog
|
|
7421
|
+
function module$contents$goog$events$ListenerMap_ListenerMap(src) {
|
|
7358
7422
|
this.src = src;
|
|
7359
7423
|
this.listeners = {};
|
|
7360
7424
|
this.typeCount_ = 0;
|
|
7361
|
-
}
|
|
7362
|
-
goog
|
|
7425
|
+
}
|
|
7426
|
+
module$contents$goog$events$ListenerMap_ListenerMap.prototype.getTypeCount = function() {
|
|
7363
7427
|
return this.typeCount_;
|
|
7364
7428
|
};
|
|
7365
|
-
goog
|
|
7429
|
+
module$contents$goog$events$ListenerMap_ListenerMap.prototype.getListenerCount = function() {
|
|
7366
7430
|
var count = 0, type;
|
|
7367
7431
|
for (type in this.listeners) {
|
|
7368
7432
|
count += this.listeners[type].length;
|
|
7369
7433
|
}
|
|
7370
7434
|
return count;
|
|
7371
7435
|
};
|
|
7372
|
-
goog
|
|
7436
|
+
module$contents$goog$events$ListenerMap_ListenerMap.prototype.add = function(type, listener, callOnce, opt_useCapture, opt_listenerScope) {
|
|
7373
7437
|
var typeStr = type.toString(), listenerArray = this.listeners[typeStr];
|
|
7374
7438
|
listenerArray || (listenerArray = this.listeners[typeStr] = [], this.typeCount_++);
|
|
7375
|
-
var index = goog
|
|
7439
|
+
var index = module$contents$goog$events$ListenerMap_ListenerMap.findListenerIndex_(listenerArray, listener, opt_useCapture, opt_listenerScope);
|
|
7376
7440
|
if (index > -1) {
|
|
7377
7441
|
var listenerObj = listenerArray[index];
|
|
7378
7442
|
callOnce || (listenerObj.callOnce = !1);
|
|
@@ -7381,15 +7445,15 @@ goog.events.ListenerMap.prototype.add = function(type, listener, callOnce, opt_u
|
|
|
7381
7445
|
}
|
|
7382
7446
|
return listenerObj;
|
|
7383
7447
|
};
|
|
7384
|
-
goog
|
|
7448
|
+
module$contents$goog$events$ListenerMap_ListenerMap.prototype.remove = function(type, listener, opt_useCapture, opt_listenerScope) {
|
|
7385
7449
|
var typeStr = type.toString();
|
|
7386
7450
|
if (!(typeStr in this.listeners)) {
|
|
7387
7451
|
return !1;
|
|
7388
7452
|
}
|
|
7389
|
-
var listenerArray = this.listeners[typeStr], index = goog
|
|
7453
|
+
var listenerArray = this.listeners[typeStr], index = module$contents$goog$events$ListenerMap_ListenerMap.findListenerIndex_(listenerArray, listener, opt_useCapture, opt_listenerScope);
|
|
7390
7454
|
return index > -1 ? (listenerArray[index].markAsRemoved(), module$contents$goog$array_removeAt(listenerArray, index), listenerArray.length == 0 && (delete this.listeners[typeStr], this.typeCount_--), !0) : !1;
|
|
7391
7455
|
};
|
|
7392
|
-
goog
|
|
7456
|
+
module$contents$goog$events$ListenerMap_ListenerMap.prototype.removeByKey = function(listener) {
|
|
7393
7457
|
var type = listener.type;
|
|
7394
7458
|
if (!(type in this.listeners)) {
|
|
7395
7459
|
return !1;
|
|
@@ -7398,7 +7462,7 @@ goog.events.ListenerMap.prototype.removeByKey = function(listener) {
|
|
|
7398
7462
|
removed && (listener.markAsRemoved(), this.listeners[type].length == 0 && (delete this.listeners[type], this.typeCount_--));
|
|
7399
7463
|
return removed;
|
|
7400
7464
|
};
|
|
7401
|
-
goog
|
|
7465
|
+
module$contents$goog$events$ListenerMap_ListenerMap.prototype.removeAll = function(opt_type) {
|
|
7402
7466
|
var typeStr = opt_type && opt_type.toString(), count = 0, type;
|
|
7403
7467
|
for (type in this.listeners) {
|
|
7404
7468
|
if (!typeStr || type == typeStr) {
|
|
@@ -7411,7 +7475,7 @@ goog.events.ListenerMap.prototype.removeAll = function(opt_type) {
|
|
|
7411
7475
|
}
|
|
7412
7476
|
return count;
|
|
7413
7477
|
};
|
|
7414
|
-
goog
|
|
7478
|
+
module$contents$goog$events$ListenerMap_ListenerMap.prototype.getListeners = function(type, capture) {
|
|
7415
7479
|
var listenerArray = this.listeners[type.toString()], rv = [];
|
|
7416
7480
|
if (listenerArray) {
|
|
7417
7481
|
for (var i = 0; i < listenerArray.length; ++i) {
|
|
@@ -7421,12 +7485,12 @@ goog.events.ListenerMap.prototype.getListeners = function(type, capture) {
|
|
|
7421
7485
|
}
|
|
7422
7486
|
return rv;
|
|
7423
7487
|
};
|
|
7424
|
-
goog
|
|
7488
|
+
module$contents$goog$events$ListenerMap_ListenerMap.prototype.getListener = function(type, listener, capture, opt_listenerScope) {
|
|
7425
7489
|
var listenerArray = this.listeners[type.toString()], i = -1;
|
|
7426
|
-
listenerArray && (i = goog
|
|
7490
|
+
listenerArray && (i = module$contents$goog$events$ListenerMap_ListenerMap.findListenerIndex_(listenerArray, listener, capture, opt_listenerScope));
|
|
7427
7491
|
return i > -1 ? listenerArray[i] : null;
|
|
7428
7492
|
};
|
|
7429
|
-
goog
|
|
7493
|
+
module$contents$goog$events$ListenerMap_ListenerMap.prototype.hasListener = function(opt_type, opt_capture) {
|
|
7430
7494
|
var hasType = opt_type !== void 0, typeStr = hasType ? opt_type.toString() : "", hasCapture = opt_capture !== void 0;
|
|
7431
7495
|
return module$contents$goog$object_some(this.listeners, function(listenerArray, type) {
|
|
7432
7496
|
for (var i = 0; i < listenerArray.length; ++i) {
|
|
@@ -7437,7 +7501,7 @@ goog.events.ListenerMap.prototype.hasListener = function(opt_type, opt_capture)
|
|
|
7437
7501
|
return !1;
|
|
7438
7502
|
});
|
|
7439
7503
|
};
|
|
7440
|
-
goog
|
|
7504
|
+
module$contents$goog$events$ListenerMap_ListenerMap.findListenerIndex_ = function(listenerArray, listener, opt_useCapture, opt_listenerScope) {
|
|
7441
7505
|
for (var i = 0; i < listenerArray.length; ++i) {
|
|
7442
7506
|
var listenerObj = listenerArray[i];
|
|
7443
7507
|
if (!listenerObj.removed && listenerObj.listener == listener && listenerObj.capture == !!opt_useCapture && listenerObj.handler == opt_listenerScope) {
|
|
@@ -7446,8 +7510,8 @@ goog.events.ListenerMap.findListenerIndex_ = function(listenerArray, listener, o
|
|
|
7446
7510
|
}
|
|
7447
7511
|
return -1;
|
|
7448
7512
|
};
|
|
7513
|
+
goog.events.ListenerMap = module$contents$goog$events$ListenerMap_ListenerMap;
|
|
7449
7514
|
goog.events.Key = {};
|
|
7450
|
-
goog.events.ListenableType = {};
|
|
7451
7515
|
goog.events.LISTENER_MAP_PROP_ = "closure_lm_" + (Math.random() * 1E6 | 0);
|
|
7452
7516
|
goog.events.onString_ = "on";
|
|
7453
7517
|
goog.events.onStringMap_ = {};
|
|
@@ -7471,7 +7535,7 @@ goog.events.listen_ = function(src, type, listener, callOnce, opt_options, opt_h
|
|
|
7471
7535
|
throw Error("Invalid event type");
|
|
7472
7536
|
}
|
|
7473
7537
|
var capture = goog.isObject(opt_options) ? !!opt_options.capture : !!opt_options, listenerMap = goog.events.getListenerMap_(src);
|
|
7474
|
-
listenerMap || (src[goog.events.LISTENER_MAP_PROP_] = listenerMap = new goog
|
|
7538
|
+
listenerMap || (src[goog.events.LISTENER_MAP_PROP_] = listenerMap = new module$contents$goog$events$ListenerMap_ListenerMap(src));
|
|
7475
7539
|
var listenerObj = listenerMap.add(type, listener, callOnce, capture, opt_handler);
|
|
7476
7540
|
if (listenerObj.proxy) {
|
|
7477
7541
|
return listenerObj;
|
|
@@ -7674,7 +7738,7 @@ goog.events.getUniqueId = function(identifier) {
|
|
|
7674
7738
|
};
|
|
7675
7739
|
goog.events.getListenerMap_ = function(src) {
|
|
7676
7740
|
var listenerMap = src[goog.events.LISTENER_MAP_PROP_];
|
|
7677
|
-
return listenerMap instanceof goog
|
|
7741
|
+
return listenerMap instanceof module$contents$goog$events$ListenerMap_ListenerMap ? listenerMap : null;
|
|
7678
7742
|
};
|
|
7679
7743
|
goog.events.LISTENER_WRAPPER_PROP_ = "__closure_events_fn_" + (Math.random() * 1E9 >>> 0);
|
|
7680
7744
|
goog.events.wrapListener = function(listener) {
|
|
@@ -7693,7 +7757,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
|
|
|
7693
7757
|
});
|
|
7694
7758
|
goog.events.EventTarget = function() {
|
|
7695
7759
|
goog.Disposable.call(this);
|
|
7696
|
-
this.eventTargetListeners_ = new goog
|
|
7760
|
+
this.eventTargetListeners_ = new module$contents$goog$events$ListenerMap_ListenerMap(this);
|
|
7697
7761
|
this.actualEventTarget_ = this;
|
|
7698
7762
|
this.parentEventTarget_ = null;
|
|
7699
7763
|
};
|
|
@@ -8168,7 +8232,6 @@ goog.math.safeCeil = function(num, opt_epsilon) {
|
|
|
8168
8232
|
return Math.ceil(num - (opt_epsilon || 2E-15));
|
|
8169
8233
|
};
|
|
8170
8234
|
goog.iter = {};
|
|
8171
|
-
goog.iter.Iterable = {};
|
|
8172
8235
|
goog.iter.Iterator = function() {
|
|
8173
8236
|
};
|
|
8174
8237
|
goog.iter.Iterator.prototype.next = function() {
|
|
@@ -14721,6 +14784,7 @@ goog.async.nextTick = function(callback, opt_context) {
|
|
|
14721
14784
|
cb = goog.async.nextTick.wrapCallback_(cb);
|
|
14722
14785
|
goog.async.nextTick.USE_SET_TIMEOUT ? setTimeout(cb, 0) : (cb = module$exports$common$async$context$propagate.propagateAsyncContext(cb), goog.DEBUG && typeof goog.global.setImmediate === "function" && goog.async.nextTick.useSetImmediate_() ? goog.global.setImmediate(cb) : (goog.async.nextTick.nextTickImpl || (goog.async.nextTick.nextTickImpl = goog.async.nextTick.getNextTickImpl_()), goog.async.nextTick.nextTickImpl(cb)));
|
|
14723
14786
|
};
|
|
14787
|
+
goog.async.nextTick.propagateAsyncContext_ = module$exports$common$async$context$propagate.propagateAsyncContext;
|
|
14724
14788
|
goog.async.nextTick.USE_SET_TIMEOUT = !1;
|
|
14725
14789
|
goog.async.nextTick.useSetImmediate_ = function() {
|
|
14726
14790
|
return goog.global.Window && goog.global.Window.prototype && goog.global.Window.prototype.setImmediate == goog.global.setImmediate ? !1 : !0;
|
|
@@ -15064,6 +15128,20 @@ goog.Promise.prototype.thenAlways = function(onSettled, opt_context) {
|
|
|
15064
15128
|
this.addCallbackEntry_(entry);
|
|
15065
15129
|
return this;
|
|
15066
15130
|
};
|
|
15131
|
+
goog.Promise.prototype.finally = function(onSettled) {
|
|
15132
|
+
var $jscomp$this$m1061044379$32 = this;
|
|
15133
|
+
goog.Promise.LONG_STACK_TRACES && this.addStackTrace_(Error("finally"));
|
|
15134
|
+
onSettled = module$exports$common$async$context$propagate.propagateAsyncContext(onSettled);
|
|
15135
|
+
return new Promise(function(resolve, reject) {
|
|
15136
|
+
$jscomp$this$m1061044379$32.thenVoid(function(value) {
|
|
15137
|
+
onSettled();
|
|
15138
|
+
resolve(value);
|
|
15139
|
+
}, function(cause) {
|
|
15140
|
+
onSettled();
|
|
15141
|
+
reject(cause);
|
|
15142
|
+
});
|
|
15143
|
+
});
|
|
15144
|
+
};
|
|
15067
15145
|
goog.Promise.prototype.thenCatch = function(onRejected, opt_context) {
|
|
15068
15146
|
goog.Promise.LONG_STACK_TRACES && this.addStackTrace_(Error("thenCatch"));
|
|
15069
15147
|
return this.addChildPromise_(null, module$exports$common$async$context$propagate.propagateAsyncContext(onRejected), opt_context);
|
|
@@ -15789,7 +15867,7 @@ goog.string.Const.TYPE_MARKER_ = {};
|
|
|
15789
15867
|
goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ = {};
|
|
15790
15868
|
goog.string.Const.EMPTY = goog.string.Const.from("");
|
|
15791
15869
|
var module$exports$safevalues$builders$sensitive_attributes = {}, module$contents$safevalues$builders$sensitive_attributes_module = module$contents$safevalues$builders$sensitive_attributes_module || {id:"third_party/javascript/safevalues/builders/sensitive_attributes.closure.js"};
|
|
15792
|
-
module$exports$safevalues$builders$sensitive_attributes.SECURITY_SENSITIVE_ATTRIBUTES = "src srcdoc codebase data href rel action formaction sandbox
|
|
15870
|
+
module$exports$safevalues$builders$sensitive_attributes.SECURITY_SENSITIVE_ATTRIBUTES = "src srcdoc codebase data href rel action formaction sandbox icon".split(" ");
|
|
15793
15871
|
var module$contents$safevalues$builders$attribute_builders_module = module$contents$safevalues$builders$attribute_builders_module || {id:"third_party/javascript/safevalues/builders/attribute_builders.closure.js"};
|
|
15794
15872
|
function module$contents$safevalues$builders$attribute_builders_safeAttrPrefix(templ) {
|
|
15795
15873
|
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templ, 0);
|
|
@@ -16034,8 +16112,8 @@ module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
|
|
|
16034
16112
|
this.replacements = new Map();
|
|
16035
16113
|
};
|
|
16036
16114
|
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
|
|
16037
|
-
var $jscomp$this$
|
|
16038
|
-
return $jscomp$this$
|
|
16115
|
+
var $jscomp$this$1018007701$5 = this, openedTags = [], marker = (0,module$exports$safevalues$builders$html_builders.htmlEscape)("_safevalues_format_marker_:").toString(), html = (0,module$exports$safevalues$builders$html_builders.htmlEscape)(format).toString().replace(new RegExp("\\{" + marker + "[\\w&#;]+\\}", "g"), function(match) {
|
|
16116
|
+
return $jscomp$this$1018007701$5.replaceFormattingString(openedTags, match);
|
|
16039
16117
|
});
|
|
16040
16118
|
if (openedTags.length !== 0) {
|
|
16041
16119
|
if (goog.DEBUG) {
|
|
@@ -16253,8 +16331,8 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16253
16331
|
if (Array.isArray(token)) {
|
|
16254
16332
|
tokens.push.apply(tokens, (0,$jscomp.arrayFromIterable)(token));
|
|
16255
16333
|
} else {
|
|
16256
|
-
var $jscomp$optchain$
|
|
16257
|
-
if (token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE || (($jscomp$optchain$
|
|
16334
|
+
var $jscomp$optchain$tmpm282935782$0 = void 0;
|
|
16335
|
+
if (token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE || (($jscomp$optchain$tmpm282935782$0 = lastToken) == null ? void 0 : $jscomp$optchain$tmpm282935782$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE) {
|
|
16258
16336
|
tokens.push(token);
|
|
16259
16337
|
if (token.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF) {
|
|
16260
16338
|
return tokens;
|
|
@@ -16500,9 +16578,9 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16500
16578
|
repr:repr}) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.NUMBER, repr:repr};
|
|
16501
16579
|
};
|
|
16502
16580
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextTwoInputsPointsAreWhitespace = function() {
|
|
16503
|
-
var $jscomp$this$
|
|
16581
|
+
var $jscomp$this$m282935782$26 = this;
|
|
16504
16582
|
return this.nextTwoInputCodePoints().every(function(c) {
|
|
16505
|
-
return $jscomp$this$
|
|
16583
|
+
return $jscomp$this$m282935782$26.isWhitespace(c);
|
|
16506
16584
|
});
|
|
16507
16585
|
};
|
|
16508
16586
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.twoCodePointsAreValidEscape = function(codePoint1, codePoint2) {
|
|
@@ -16609,8 +16687,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16609
16687
|
return null;
|
|
16610
16688
|
}
|
|
16611
16689
|
if (token.lowercaseName === "url") {
|
|
16612
|
-
var nextToken = tokens[i + 1], $jscomp$optchain$
|
|
16613
|
-
if ((($jscomp$optchain$
|
|
16690
|
+
var nextToken = tokens[i + 1], $jscomp$optchain$tmpm1577590584$0 = void 0;
|
|
16691
|
+
if ((($jscomp$optchain$tmpm1577590584$0 = nextToken) == null ? void 0 : $jscomp$optchain$tmpm1577590584$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING) {
|
|
16614
16692
|
return null;
|
|
16615
16693
|
}
|
|
16616
16694
|
var parsedUrl = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(nextToken.value);
|
|
@@ -16633,8 +16711,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16633
16711
|
if (!this.allowKeyframes) {
|
|
16634
16712
|
return null;
|
|
16635
16713
|
}
|
|
16636
|
-
for (var keyframeRules = [], $jscomp$iter$31 = (0,$jscomp.makeIterator)(keyframesRule.cssRules), $jscomp$key$
|
|
16637
|
-
var rule = $jscomp$key$
|
|
16714
|
+
for (var keyframeRules = [], $jscomp$iter$31 = (0,$jscomp.makeIterator)(keyframesRule.cssRules), $jscomp$key$m1577590584$1$rule = $jscomp$iter$31.next(); !$jscomp$key$m1577590584$1$rule.done; $jscomp$key$m1577590584$1$rule = $jscomp$iter$31.next()) {
|
|
16715
|
+
var rule = $jscomp$key$m1577590584$1$rule.value;
|
|
16638
16716
|
if (rule instanceof CSSKeyframeRule) {
|
|
16639
16717
|
var sanitizedRule = this.sanitizeKeyframeRule(rule);
|
|
16640
16718
|
sanitizedRule && keyframeRules.push(sanitizedRule);
|
|
@@ -16646,8 +16724,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16646
16724
|
if (!this.propertyAllowlist.has(name)) {
|
|
16647
16725
|
return !1;
|
|
16648
16726
|
}
|
|
16649
|
-
for (var $jscomp$iter$32 = (0,$jscomp.makeIterator)(this.propertyDiscarders), $jscomp$key$
|
|
16650
|
-
var discarder = $jscomp$key$
|
|
16727
|
+
for (var $jscomp$iter$32 = (0,$jscomp.makeIterator)(this.propertyDiscarders), $jscomp$key$m1577590584$2$discarder = $jscomp$iter$32.next(); !$jscomp$key$m1577590584$2$discarder.done; $jscomp$key$m1577590584$2$discarder = $jscomp$iter$32.next()) {
|
|
16728
|
+
var discarder = $jscomp$key$m1577590584$2$discarder.value;
|
|
16651
16729
|
if (discarder(name)) {
|
|
16652
16730
|
return !1;
|
|
16653
16731
|
}
|
|
@@ -16662,8 +16740,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16662
16740
|
return sanitizedValue ? module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(name) + ": " + sanitizedValue + (isImportant ? " !important" : "") : null;
|
|
16663
16741
|
};
|
|
16664
16742
|
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleDeclaration = function(style, calledFromStyleElement) {
|
|
16665
|
-
for (var sortedPropertyNames = [].concat((0,$jscomp.arrayFromIterable)(style)).sort(), sanitizedProperties = "", $jscomp$iter$33 = (0,$jscomp.makeIterator)(sortedPropertyNames), $jscomp$key$
|
|
16666
|
-
var name = $jscomp$key$
|
|
16743
|
+
for (var sortedPropertyNames = [].concat((0,$jscomp.arrayFromIterable)(style)).sort(), sanitizedProperties = "", $jscomp$iter$33 = (0,$jscomp.makeIterator)(sortedPropertyNames), $jscomp$key$m1577590584$3$name = $jscomp$iter$33.next(); !$jscomp$key$m1577590584$3$name.done; $jscomp$key$m1577590584$3$name = $jscomp$iter$33.next()) {
|
|
16744
|
+
var name = $jscomp$key$m1577590584$3$name.value, value = style.getPropertyValue(name), isImportant = style.getPropertyPriority(name) === "important", sanitizedProperty = this.sanitizeProperty(name, value, isImportant, calledFromStyleElement);
|
|
16667
16745
|
sanitizedProperty && (sanitizedProperties += sanitizedProperty + ";");
|
|
16668
16746
|
}
|
|
16669
16747
|
return sanitizedProperties;
|
|
@@ -16677,8 +16755,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16677
16755
|
return selector + " { " + sanitizedProperties + " }";
|
|
16678
16756
|
};
|
|
16679
16757
|
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleElement = function(cssText) {
|
|
16680
|
-
for (var rules = this.getStyleSheet(cssText).cssRules, output = [], $jscomp$iter$34 = (0,$jscomp.makeIterator)(rules), $jscomp$key$
|
|
16681
|
-
var rule = $jscomp$key$
|
|
16758
|
+
for (var rules = this.getStyleSheet(cssText).cssRules, output = [], $jscomp$iter$34 = (0,$jscomp.makeIterator)(rules), $jscomp$key$m1577590584$4$rule = $jscomp$iter$34.next(); !$jscomp$key$m1577590584$4$rule.done; $jscomp$key$m1577590584$4$rule = $jscomp$iter$34.next()) {
|
|
16759
|
+
var rule = $jscomp$key$m1577590584$4$rule.value;
|
|
16682
16760
|
if (rule instanceof CSSStyleRule) {
|
|
16683
16761
|
var sanitizedRule = this.sanitizeStyleRule(rule);
|
|
16684
16762
|
sanitizedRule && output.push(sanitizedRule);
|
|
@@ -16774,14 +16852,14 @@ module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanit
|
|
|
16774
16852
|
["LINK", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY, conditions:new Map([["rel", new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])], ["SOURCE", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}],
|
|
16775
16853
|
["srcset", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET}]])], ["IMG", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}], ["srcset", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET}]])],
|
|
16776
16854
|
["VIDEO", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}]])], ["AUDIO", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}]])]], module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES =
|
|
16777
|
-
"title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked color cols colspan controls datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
|
|
16855
|
+
"title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
|
|
16778
16856
|
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES = [["dir", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
16779
16857
|
return new Map([["dir", new Set(["auto", "ltr", "rtl"])]]);
|
|
16780
16858
|
})}], ["async", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
16781
16859
|
return new Map([["async", new Set(["async"])]]);
|
|
16782
|
-
})}], ["
|
|
16860
|
+
})}], ["loading", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
16783
16861
|
return new Map([["loading", new Set(["eager", "lazy"])]]);
|
|
16784
|
-
})}], ["
|
|
16862
|
+
})}], ["target", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
16785
16863
|
return new Map([["target", new Set(["_self", "_blank"])]]);
|
|
16786
16864
|
})}]];
|
|
16787
16865
|
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES),
|
|
@@ -16839,8 +16917,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16839
16917
|
return fragment;
|
|
16840
16918
|
};
|
|
16841
16919
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
16842
|
-
for (var $jscomp$this$
|
|
16843
|
-
return $jscomp$this$
|
|
16920
|
+
for (var $jscomp$this$m1085474118$13 = this, dirtyFragment = module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(html, inertDocument), treeWalker = document.createTreeWalker(dirtyFragment, 5, function(n) {
|
|
16921
|
+
return $jscomp$this$m1085474118$13.nodeFilter(n);
|
|
16844
16922
|
}), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; currentNode !== null;) {
|
|
16845
16923
|
var sanitizedNode = void 0;
|
|
16846
16924
|
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
@@ -16875,8 +16953,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16875
16953
|
return this.createTextNode(textNode.data);
|
|
16876
16954
|
};
|
|
16877
16955
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
16878
|
-
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$36 = (0,$jscomp.makeIterator)(dirtyAttributes), $jscomp$key$
|
|
16879
|
-
var $jscomp$destructuring$var31 = $jscomp$key$
|
|
16956
|
+
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$36 = (0,$jscomp.makeIterator)(dirtyAttributes), $jscomp$key$m1085474118$34$ = $jscomp$iter$36.next(); !$jscomp$key$m1085474118$34$.done; $jscomp$key$m1085474118$34$ = $jscomp$iter$36.next()) {
|
|
16957
|
+
var $jscomp$destructuring$var31 = $jscomp$key$m1085474118$34$.value, name = $jscomp$destructuring$var31.name, value = $jscomp$destructuring$var31.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
|
|
16880
16958
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
16881
16959
|
switch(policy.policyAction) {
|
|
16882
16960
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
|
|
@@ -16908,9 +16986,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16908
16986
|
break;
|
|
16909
16987
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET:
|
|
16910
16988
|
if (this.resourceUrlPolicy) {
|
|
16911
|
-
for (var hints$jscomp$0 = {type:module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.HTML_ATTRIBUTE, attributeName:name, elementName:elementName}, srcset = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(value), sanitizedSrcset = {parts:[]}, $jscomp$iter$35 = (0,$jscomp.makeIterator)(srcset.parts), $jscomp$key$
|
|
16989
|
+
for (var hints$jscomp$0 = {type:module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.HTML_ATTRIBUTE, attributeName:name, elementName:elementName}, srcset = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(value), sanitizedSrcset = {parts:[]}, $jscomp$iter$35 = (0,$jscomp.makeIterator)(srcset.parts), $jscomp$key$m1085474118$33$part = $jscomp$iter$35.next(); !$jscomp$key$m1085474118$33$part.done; $jscomp$key$m1085474118$33$part =
|
|
16912
16990
|
$jscomp$iter$35.next()) {
|
|
16913
|
-
var part = $jscomp$key$
|
|
16991
|
+
var part = $jscomp$key$m1085474118$33$part.value, url$jscomp$0 = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(part.url), sanitizedUrl$jscomp$0 = this.resourceUrlPolicy(url$jscomp$0, hints$jscomp$0);
|
|
16914
16992
|
sanitizedUrl$jscomp$0 && sanitizedSrcset.parts.push({url:sanitizedUrl$jscomp$0.toString(), descriptor:part.descriptor});
|
|
16915
16993
|
}
|
|
16916
16994
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset(sanitizedSrcset));
|
|
@@ -16954,8 +17032,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16954
17032
|
if (!conditions) {
|
|
16955
17033
|
return !0;
|
|
16956
17034
|
}
|
|
16957
|
-
for (var $jscomp$iter$37 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$
|
|
16958
|
-
var $jscomp$destructuring$var33 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17035
|
+
for (var $jscomp$iter$37 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$m1085474118$35$ = $jscomp$iter$37.next(); !$jscomp$key$m1085474118$35$.done; $jscomp$key$m1085474118$35$ = $jscomp$iter$37.next()) {
|
|
17036
|
+
var $jscomp$destructuring$var33 = (0,$jscomp.makeIterator)($jscomp$key$m1085474118$35$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var33.next().value, expectedValues = $jscomp$destructuring$var33.next().value, $jscomp$optchain$tmpm1085474118$0 = void 0, value = ($jscomp$optchain$tmpm1085474118$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) == null ? void 0 : $jscomp$optchain$tmpm1085474118$0.value;
|
|
16959
17037
|
if (value && !expectedValues.has(value)) {
|
|
16960
17038
|
return !1;
|
|
16961
17039
|
}
|
|
@@ -16970,8 +17048,8 @@ function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_Srcse
|
|
|
16970
17048
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.Srcset = function() {
|
|
16971
17049
|
};
|
|
16972
17050
|
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(srcset) {
|
|
16973
|
-
for (var parts = [], $jscomp$iter$38 = (0,$jscomp.makeIterator)(srcset.split(",")), $jscomp$key$
|
|
16974
|
-
var $jscomp$destructuring$var34 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17051
|
+
for (var parts = [], $jscomp$iter$38 = (0,$jscomp.makeIterator)(srcset.split(",")), $jscomp$key$m1085474118$36$part = $jscomp$iter$38.next(); !$jscomp$key$m1085474118$36$part.done; $jscomp$key$m1085474118$36$part = $jscomp$iter$38.next()) {
|
|
17052
|
+
var $jscomp$destructuring$var34 = (0,$jscomp.makeIterator)($jscomp$key$m1085474118$36$part.value.trim().split(/\s+/, 2)), url__tsickle_destructured_3 = $jscomp$destructuring$var34.next().value, descriptor__tsickle_destructured_4 = $jscomp$destructuring$var34.next().value;
|
|
16975
17053
|
parts.push({url:url__tsickle_destructured_3, descriptor:descriptor__tsickle_destructured_4});
|
|
16976
17054
|
}
|
|
16977
17055
|
return {parts:parts};
|
|
@@ -17028,8 +17106,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17028
17106
|
this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE;
|
|
17029
17107
|
};
|
|
17030
17108
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowElements = function(elementSet) {
|
|
17031
|
-
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$39 = (0,$jscomp.makeIterator)(elementSet), $jscomp$key$
|
|
17032
|
-
var element = $jscomp$key$
|
|
17109
|
+
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$39 = (0,$jscomp.makeIterator)(elementSet), $jscomp$key$435282654$21$element = $jscomp$iter$39.next(); !$jscomp$key$435282654$21$element.done; $jscomp$key$435282654$21$element = $jscomp$iter$39.next()) {
|
|
17110
|
+
var element = $jscomp$key$435282654$21$element.value;
|
|
17033
17111
|
element = element.toUpperCase();
|
|
17034
17112
|
if (!this.sanitizerTable.isAllowedElement(element)) {
|
|
17035
17113
|
throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
|
|
@@ -17047,8 +17125,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17047
17125
|
throw Error("Element: " + element + " is not a custom element");
|
|
17048
17126
|
}
|
|
17049
17127
|
if (allowedAttributes) {
|
|
17050
|
-
for (var elementPolicy = new Map(), $jscomp$iter$40 = (0,$jscomp.makeIterator)(allowedAttributes), $jscomp$key$
|
|
17051
|
-
elementPolicy.set($jscomp$key$
|
|
17128
|
+
for (var elementPolicy = new Map(), $jscomp$iter$40 = (0,$jscomp.makeIterator)(allowedAttributes), $jscomp$key$435282654$22$attribute = $jscomp$iter$40.next(); !$jscomp$key$435282654$22$attribute.done; $jscomp$key$435282654$22$attribute = $jscomp$iter$40.next()) {
|
|
17129
|
+
elementPolicy.set($jscomp$key$435282654$22$attribute.value.toLowerCase(), {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
|
|
17052
17130
|
}
|
|
17053
17131
|
allowedElementPolicies.set(element, elementPolicy);
|
|
17054
17132
|
} else {
|
|
@@ -17058,15 +17136,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17058
17136
|
return this;
|
|
17059
17137
|
};
|
|
17060
17138
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowAttributes = function(attributeSet) {
|
|
17061
|
-
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$41 = (0,$jscomp.makeIterator)(attributeSet), $jscomp$key$
|
|
17062
|
-
var attribute = $jscomp$key$
|
|
17139
|
+
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$41 = (0,$jscomp.makeIterator)(attributeSet), $jscomp$key$435282654$23$attribute = $jscomp$iter$41.next(); !$jscomp$key$435282654$23$attribute.done; $jscomp$key$435282654$23$attribute = $jscomp$iter$41.next()) {
|
|
17140
|
+
var attribute = $jscomp$key$435282654$23$attribute.value;
|
|
17063
17141
|
this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
|
|
17064
17142
|
this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
|
|
17065
17143
|
}
|
|
17066
|
-
for (var $jscomp$iter$43 = (0,$jscomp.makeIterator)(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$
|
|
17067
|
-
for (var $jscomp$destructuring$var37 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17144
|
+
for (var $jscomp$iter$43 = (0,$jscomp.makeIterator)(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$435282654$25$ = $jscomp$iter$43.next(); !$jscomp$key$435282654$25$.done; $jscomp$key$435282654$25$ = $jscomp$iter$43.next()) {
|
|
17145
|
+
for (var $jscomp$destructuring$var37 = (0,$jscomp.makeIterator)($jscomp$key$435282654$25$.value), elementName__tsickle_destructured_1 = $jscomp$destructuring$var37.next().value, originalElementPolicy__tsickle_destructured_2 = $jscomp$destructuring$var37.next().value, elementName = elementName__tsickle_destructured_1, newElementPolicy = new Map(), $jscomp$iter$42 = (0,$jscomp.makeIterator)(originalElementPolicy__tsickle_destructured_2.entries()), $jscomp$key$435282654$24$ = $jscomp$iter$42.next(); !$jscomp$key$435282654$24$.done; $jscomp$key$435282654$24$ =
|
|
17068
17146
|
$jscomp$iter$42.next()) {
|
|
17069
|
-
var $jscomp$destructuring$var39 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17147
|
+
var $jscomp$destructuring$var39 = (0,$jscomp.makeIterator)($jscomp$key$435282654$24$.value), attribute__tsickle_destructured_3 = $jscomp$destructuring$var39.next().value, attributePolicy__tsickle_destructured_4 = $jscomp$destructuring$var39.next().value, attribute$jscomp$0 = attribute__tsickle_destructured_3, attributePolicy = attributePolicy__tsickle_destructured_4;
|
|
17070
17148
|
attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
|
|
17071
17149
|
}
|
|
17072
17150
|
elementPolicies.set(elementName, newElementPolicy);
|
|
@@ -17075,8 +17153,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17075
17153
|
return this;
|
|
17076
17154
|
};
|
|
17077
17155
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.allowDataAttributes = function(attributes) {
|
|
17078
|
-
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$44 = (0,$jscomp.makeIterator)(attributes), $jscomp$key$
|
|
17079
|
-
var attribute = $jscomp$key$
|
|
17156
|
+
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$44 = (0,$jscomp.makeIterator)(attributes), $jscomp$key$435282654$26$attribute = $jscomp$iter$44.next(); !$jscomp$key$435282654$26$attribute.done; $jscomp$key$435282654$26$attribute = $jscomp$iter$44.next()) {
|
|
17157
|
+
var attribute = $jscomp$key$435282654$26$attribute.value;
|
|
17080
17158
|
if (attribute.indexOf("data-") !== 0) {
|
|
17081
17159
|
throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
|
|
17082
17160
|
}
|
|
@@ -17138,7 +17216,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
17138
17216
|
return this;
|
|
17139
17217
|
};
|
|
17140
17218
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.build = function() {
|
|
17141
|
-
var $jscomp$this$
|
|
17219
|
+
var $jscomp$this$435282654$17 = this;
|
|
17142
17220
|
this.extendSanitizerTableForCss();
|
|
17143
17221
|
var propertyDiscarders = [];
|
|
17144
17222
|
this.animationsAllowed || propertyDiscarders.push(function(property) {
|
|
@@ -17148,9 +17226,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
17148
17226
|
return /^transition(-|$)/.test(property);
|
|
17149
17227
|
});
|
|
17150
17228
|
return new module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(this.sanitizerTable, module$exports$safevalues$internals$secrets.secretToken, function(cssText) {
|
|
17151
|
-
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleElement(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$
|
|
17229
|
+
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleElement(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$435282654$17.resourceUrlPolicy, $jscomp$this$435282654$17.animationsAllowed, propertyDiscarders);
|
|
17152
17230
|
}, function(cssText) {
|
|
17153
|
-
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleAttribute(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$
|
|
17231
|
+
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleAttribute(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$435282654$17.resourceUrlPolicy, propertyDiscarders);
|
|
17154
17232
|
}, this.resourceUrlPolicy);
|
|
17155
17233
|
};
|
|
17156
17234
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.extendSanitizerTableForCss = function() {
|
|
@@ -17368,12 +17446,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
17368
17446
|
}
|
|
17369
17447
|
try {
|
|
17370
17448
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
17371
|
-
} catch ($jscomp$unused$catch$
|
|
17449
|
+
} catch ($jscomp$unused$catch$696273141$0) {
|
|
17372
17450
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
17373
17451
|
}
|
|
17374
17452
|
try {
|
|
17375
17453
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
17376
|
-
} catch ($jscomp$unused$catch$
|
|
17454
|
+
} catch ($jscomp$unused$catch$696273141$1) {
|
|
17377
17455
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
17378
17456
|
}
|
|
17379
17457
|
return !1;
|
|
@@ -18413,6 +18491,18 @@ goog.async.Deferred.prototype.addFinally = function(f, opt_scope) {
|
|
|
18413
18491
|
return result;
|
|
18414
18492
|
}, opt_scope);
|
|
18415
18493
|
};
|
|
18494
|
+
goog.async.Deferred.prototype.finally = function(f) {
|
|
18495
|
+
var $jscomp$this$m1728524513$17 = this;
|
|
18496
|
+
return new Promise(function(resolve, reject) {
|
|
18497
|
+
$jscomp$this$m1728524513$17.addCallbacks(function(v) {
|
|
18498
|
+
f();
|
|
18499
|
+
resolve(v);
|
|
18500
|
+
}, function(err) {
|
|
18501
|
+
f();
|
|
18502
|
+
reject(err);
|
|
18503
|
+
});
|
|
18504
|
+
});
|
|
18505
|
+
};
|
|
18416
18506
|
goog.async.Deferred.prototype.addCallbacks = function(cb, eb, opt_scope) {
|
|
18417
18507
|
goog.asserts.assert(!this.blocking_, "Blocking Deferreds can not be re-used");
|
|
18418
18508
|
var fired = this.hasFired();
|
|
@@ -18843,8 +18933,9 @@ goog.net.XhrLike.prototype.getAllResponseHeaders = function() {
|
|
|
18843
18933
|
};
|
|
18844
18934
|
goog.net.XhrLike.prototype.setTrustToken = function(trustTokenAttribute) {
|
|
18845
18935
|
};
|
|
18846
|
-
goog
|
|
18847
|
-
}
|
|
18936
|
+
function module$contents$goog$net$XmlHttpFactory_XmlHttpFactory() {
|
|
18937
|
+
}
|
|
18938
|
+
goog.net.XmlHttpFactory = module$contents$goog$net$XmlHttpFactory_XmlHttpFactory;
|
|
18848
18939
|
goog.net.XmlHttp = function() {
|
|
18849
18940
|
return goog.net.XmlHttp.factory_.createInstance();
|
|
18850
18941
|
};
|
|
@@ -18854,7 +18945,7 @@ goog.net.XmlHttp.setGlobalFactory = function(factory) {
|
|
|
18854
18945
|
};
|
|
18855
18946
|
goog.net.DefaultXmlHttpFactory = function() {
|
|
18856
18947
|
};
|
|
18857
|
-
goog.inherits(goog.net.DefaultXmlHttpFactory, goog
|
|
18948
|
+
goog.inherits(goog.net.DefaultXmlHttpFactory, module$contents$goog$net$XmlHttpFactory_XmlHttpFactory);
|
|
18858
18949
|
goog.net.DefaultXmlHttpFactory.prototype.createInstance = function() {
|
|
18859
18950
|
return new XMLHttpRequest();
|
|
18860
18951
|
};
|
|
@@ -19216,7 +19307,7 @@ var $jscomp$templatelit$m1153655765$99 = $jscomp.createTemplateTagFirstArg(["htt
|
|
|
19216
19307
|
ee.apiclient = {};
|
|
19217
19308
|
var module$contents$ee$apiclient_apiclient = {};
|
|
19218
19309
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
19219
|
-
ee.apiclient.API_CLIENT_VERSION = "1.
|
|
19310
|
+
ee.apiclient.API_CLIENT_VERSION = "1.5.0";
|
|
19220
19311
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
19221
19312
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
19222
19313
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -19514,8 +19605,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19514
19605
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
19515
19606
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
19516
19607
|
method = method || "POST";
|
|
19517
|
-
var headers = {"Content-Type":contentType}, version = "1.
|
|
19518
|
-
version === "1.
|
|
19608
|
+
var headers = {"Content-Type":contentType}, version = "1.5.0";
|
|
19609
|
+
version === "1.5.0" && (version = "latest");
|
|
19519
19610
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
19520
19611
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
19521
19612
|
if (authToken != null) {
|
|
@@ -20388,26 +20479,27 @@ ee.rpc_convert.processListImagesParams = function(params) {
|
|
|
20388
20479
|
return params;
|
|
20389
20480
|
};
|
|
20390
20481
|
goog.crypt = {};
|
|
20391
|
-
goog
|
|
20482
|
+
function module$contents$goog$crypt$Hash_Hash() {
|
|
20392
20483
|
this.blockSize = -1;
|
|
20393
|
-
}
|
|
20394
|
-
goog.crypt.
|
|
20395
|
-
|
|
20484
|
+
}
|
|
20485
|
+
goog.crypt.Hash = module$contents$goog$crypt$Hash_Hash;
|
|
20486
|
+
function module$contents$goog$crypt$Md5_Md5() {
|
|
20487
|
+
module$contents$goog$crypt$Hash_Hash.call(this);
|
|
20396
20488
|
this.blockSize = 64;
|
|
20397
20489
|
this.chain_ = Array(4);
|
|
20398
20490
|
this.block_ = Array(this.blockSize);
|
|
20399
20491
|
this.totalLength_ = this.blockLength_ = 0;
|
|
20400
20492
|
this.reset();
|
|
20401
|
-
}
|
|
20402
|
-
goog.inherits(goog
|
|
20403
|
-
goog
|
|
20493
|
+
}
|
|
20494
|
+
goog.inherits(module$contents$goog$crypt$Md5_Md5, module$contents$goog$crypt$Hash_Hash);
|
|
20495
|
+
module$contents$goog$crypt$Md5_Md5.prototype.reset = function() {
|
|
20404
20496
|
this.chain_[0] = 1732584193;
|
|
20405
20497
|
this.chain_[1] = 4023233417;
|
|
20406
20498
|
this.chain_[2] = 2562383102;
|
|
20407
20499
|
this.chain_[3] = 271733878;
|
|
20408
20500
|
this.totalLength_ = this.blockLength_ = 0;
|
|
20409
20501
|
};
|
|
20410
|
-
goog
|
|
20502
|
+
module$contents$goog$crypt$Md5_Md5.prototype.compress_ = function(buf, opt_offset) {
|
|
20411
20503
|
opt_offset || (opt_offset = 0);
|
|
20412
20504
|
var X = Array(16);
|
|
20413
20505
|
if (typeof buf === "string") {
|
|
@@ -20552,7 +20644,7 @@ goog.crypt.Md5.prototype.compress_ = function(buf, opt_offset) {
|
|
|
20552
20644
|
this.chain_[2] = this.chain_[2] + C & 4294967295;
|
|
20553
20645
|
this.chain_[3] = this.chain_[3] + D & 4294967295;
|
|
20554
20646
|
};
|
|
20555
|
-
goog
|
|
20647
|
+
module$contents$goog$crypt$Md5_Md5.prototype.update = function(bytes, opt_length) {
|
|
20556
20648
|
opt_length === void 0 && (opt_length = bytes.length);
|
|
20557
20649
|
for (var lengthMinusBlock = opt_length - this.blockSize, block = this.block_, blockLength = this.blockLength_, i = 0; i < opt_length;) {
|
|
20558
20650
|
if (blockLength == 0) {
|
|
@@ -20581,7 +20673,7 @@ goog.crypt.Md5.prototype.update = function(bytes, opt_length) {
|
|
|
20581
20673
|
this.blockLength_ = blockLength;
|
|
20582
20674
|
this.totalLength_ += opt_length;
|
|
20583
20675
|
};
|
|
20584
|
-
goog
|
|
20676
|
+
module$contents$goog$crypt$Md5_Md5.prototype.digest = function() {
|
|
20585
20677
|
var pad = Array((this.blockLength_ < 56 ? this.blockSize : this.blockSize * 2) - this.blockLength_);
|
|
20586
20678
|
pad[0] = 128;
|
|
20587
20679
|
for (var i = 1; i < pad.length - 8; ++i) {
|
|
@@ -20598,6 +20690,7 @@ goog.crypt.Md5.prototype.digest = function() {
|
|
|
20598
20690
|
}
|
|
20599
20691
|
return digest;
|
|
20600
20692
|
};
|
|
20693
|
+
goog.crypt.Md5 = module$contents$goog$crypt$Md5_Md5;
|
|
20601
20694
|
ee.Serializer = function(opt_isCompound) {
|
|
20602
20695
|
this.HASH_KEY = "__ee_hash__";
|
|
20603
20696
|
this.isCompound_ = opt_isCompound !== !1;
|
|
@@ -20610,7 +20703,7 @@ ee.Serializer = function(opt_isCompound) {
|
|
|
20610
20703
|
};
|
|
20611
20704
|
goog.exportSymbol("ee.Serializer", ee.Serializer);
|
|
20612
20705
|
ee.Serializer.jsonSerializer_ = new goog.json.Serializer();
|
|
20613
|
-
ee.Serializer.hash_ = new goog
|
|
20706
|
+
ee.Serializer.hash_ = new module$contents$goog$crypt$Md5_Md5();
|
|
20614
20707
|
ee.Serializer.encode = function(obj, opt_isCompound) {
|
|
20615
20708
|
return (new ee.Serializer(opt_isCompound !== void 0 ? opt_isCompound : !0)).encode_(obj);
|
|
20616
20709
|
};
|
|
@@ -21163,11 +21256,6 @@ goog.singleton.getInstance = function(ctor) {
|
|
|
21163
21256
|
};
|
|
21164
21257
|
goog.singleton.instantiatedSingletons = module$contents$goog$singleton_instantiatedSingletons;
|
|
21165
21258
|
ee.data = {};
|
|
21166
|
-
ee.data.ClassifierTaskConfig = {};
|
|
21167
|
-
ee.data.ImageTaskConfig = {};
|
|
21168
|
-
ee.data.MapTaskConfig = {};
|
|
21169
|
-
ee.data.TableTaskConfig = {};
|
|
21170
|
-
ee.data.VideoTaskConfig = {};
|
|
21171
21259
|
ee.data.authenticateViaOauth = function(clientId, success, opt_error, opt_extraScopes, opt_onImmediateFailed, opt_suppressDefaultScopes) {
|
|
21172
21260
|
var scopes = module$contents$ee$apiclient_apiclient.mergeAuthScopes_(!opt_suppressDefaultScopes, !1, opt_extraScopes || []);
|
|
21173
21261
|
module$contents$ee$apiclient_apiclient.setAuthClient(clientId, scopes);
|
|
@@ -24977,17 +25065,20 @@ goog.fs.FileReader.createDeferred_ = function(reader) {
|
|
|
24977
25065
|
return deferred;
|
|
24978
25066
|
};
|
|
24979
25067
|
goog.dom.vendor = {};
|
|
24980
|
-
goog
|
|
25068
|
+
function module$contents$goog$dom$vendor_getVendorJsPrefix() {
|
|
24981
25069
|
return goog.userAgent.WEBKIT ? "Webkit" : goog.userAgent.GECKO ? "Moz" : null;
|
|
24982
|
-
}
|
|
24983
|
-
goog
|
|
25070
|
+
}
|
|
25071
|
+
function module$contents$goog$dom$vendor_getVendorPrefix() {
|
|
24984
25072
|
return goog.userAgent.WEBKIT ? "-webkit" : goog.userAgent.GECKO ? "-moz" : null;
|
|
25073
|
+
}
|
|
25074
|
+
goog.dom.vendor.getPrefixedEventType = function(eventType) {
|
|
25075
|
+
return ((module$contents$goog$dom$vendor_getVendorJsPrefix() || "") + eventType).toLowerCase();
|
|
24985
25076
|
};
|
|
24986
25077
|
goog.dom.vendor.getPrefixedPropertyName = function(propertyName, opt_object) {
|
|
24987
25078
|
if (opt_object && propertyName in opt_object) {
|
|
24988
25079
|
return propertyName;
|
|
24989
25080
|
}
|
|
24990
|
-
var prefix = goog
|
|
25081
|
+
var prefix = module$contents$goog$dom$vendor_getVendorJsPrefix();
|
|
24991
25082
|
if (prefix) {
|
|
24992
25083
|
prefix = prefix.toLowerCase();
|
|
24993
25084
|
var prefixedPropertyName = prefix + goog.string.toTitleCase(propertyName);
|
|
@@ -24995,100 +25086,99 @@ goog.dom.vendor.getPrefixedPropertyName = function(propertyName, opt_object) {
|
|
|
24995
25086
|
}
|
|
24996
25087
|
return null;
|
|
24997
25088
|
};
|
|
24998
|
-
goog.dom.vendor.
|
|
24999
|
-
|
|
25000
|
-
|
|
25001
|
-
goog.math.Box = function(top, right, bottom, left) {
|
|
25089
|
+
goog.dom.vendor.getVendorJsPrefix = module$contents$goog$dom$vendor_getVendorJsPrefix;
|
|
25090
|
+
goog.dom.vendor.getVendorPrefix = module$contents$goog$dom$vendor_getVendorPrefix;
|
|
25091
|
+
function module$contents$goog$math$Box_Box(top, right, bottom, left) {
|
|
25002
25092
|
this.top = top;
|
|
25003
25093
|
this.right = right;
|
|
25004
25094
|
this.bottom = bottom;
|
|
25005
25095
|
this.left = left;
|
|
25006
|
-
}
|
|
25007
|
-
goog
|
|
25008
|
-
for (var box = new goog
|
|
25096
|
+
}
|
|
25097
|
+
module$contents$goog$math$Box_Box.boundingBox = function(var_args) {
|
|
25098
|
+
for (var box = new module$contents$goog$math$Box_Box(arguments[0].y, arguments[0].x, arguments[0].y, arguments[0].x), i = 1; i < arguments.length; i++) {
|
|
25009
25099
|
box.expandToIncludeCoordinate(arguments[i]);
|
|
25010
25100
|
}
|
|
25011
25101
|
return box;
|
|
25012
25102
|
};
|
|
25013
|
-
goog
|
|
25103
|
+
module$contents$goog$math$Box_Box.prototype.getWidth = function() {
|
|
25014
25104
|
return this.right - this.left;
|
|
25015
25105
|
};
|
|
25016
|
-
goog
|
|
25106
|
+
module$contents$goog$math$Box_Box.prototype.getHeight = function() {
|
|
25017
25107
|
return this.bottom - this.top;
|
|
25018
25108
|
};
|
|
25019
|
-
goog
|
|
25020
|
-
return new goog
|
|
25109
|
+
module$contents$goog$math$Box_Box.prototype.clone = function() {
|
|
25110
|
+
return new module$contents$goog$math$Box_Box(this.top, this.right, this.bottom, this.left);
|
|
25021
25111
|
};
|
|
25022
|
-
goog.DEBUG && (goog
|
|
25112
|
+
goog.DEBUG && (module$contents$goog$math$Box_Box.prototype.toString = function() {
|
|
25023
25113
|
return "(" + this.top + "t, " + this.right + "r, " + this.bottom + "b, " + this.left + "l)";
|
|
25024
25114
|
});
|
|
25025
|
-
goog
|
|
25026
|
-
return goog
|
|
25115
|
+
module$contents$goog$math$Box_Box.prototype.contains = function(other) {
|
|
25116
|
+
return module$contents$goog$math$Box_Box.contains(this, other);
|
|
25027
25117
|
};
|
|
25028
|
-
goog
|
|
25118
|
+
module$contents$goog$math$Box_Box.prototype.expand = function(top, opt_right, opt_bottom, opt_left) {
|
|
25029
25119
|
goog.isObject(top) ? (this.top -= top.top, this.right += top.right, this.bottom += top.bottom, this.left -= top.left) : (this.top -= top, this.right += Number(opt_right), this.bottom += Number(opt_bottom), this.left -= Number(opt_left));
|
|
25030
25120
|
return this;
|
|
25031
25121
|
};
|
|
25032
|
-
goog
|
|
25122
|
+
module$contents$goog$math$Box_Box.prototype.expandToInclude = function(box) {
|
|
25033
25123
|
this.left = Math.min(this.left, box.left);
|
|
25034
25124
|
this.top = Math.min(this.top, box.top);
|
|
25035
25125
|
this.right = Math.max(this.right, box.right);
|
|
25036
25126
|
this.bottom = Math.max(this.bottom, box.bottom);
|
|
25037
25127
|
};
|
|
25038
|
-
goog
|
|
25128
|
+
module$contents$goog$math$Box_Box.prototype.expandToIncludeCoordinate = function(coord) {
|
|
25039
25129
|
this.top = Math.min(this.top, coord.y);
|
|
25040
25130
|
this.right = Math.max(this.right, coord.x);
|
|
25041
25131
|
this.bottom = Math.max(this.bottom, coord.y);
|
|
25042
25132
|
this.left = Math.min(this.left, coord.x);
|
|
25043
25133
|
};
|
|
25044
|
-
goog
|
|
25134
|
+
module$contents$goog$math$Box_Box.equals = function(a, b) {
|
|
25045
25135
|
return a == b ? !0 : a && b ? a.top == b.top && a.right == b.right && a.bottom == b.bottom && a.left == b.left : !1;
|
|
25046
25136
|
};
|
|
25047
|
-
goog
|
|
25048
|
-
return box && other ? other instanceof goog
|
|
25137
|
+
module$contents$goog$math$Box_Box.contains = function(box, other) {
|
|
25138
|
+
return box && other ? other instanceof module$contents$goog$math$Box_Box ? other.left >= box.left && other.right <= box.right && other.top >= box.top && other.bottom <= box.bottom : other.x >= box.left && other.x <= box.right && other.y >= box.top && other.y <= box.bottom : !1;
|
|
25049
25139
|
};
|
|
25050
|
-
goog
|
|
25140
|
+
module$contents$goog$math$Box_Box.relativePositionX = function(box, coord) {
|
|
25051
25141
|
return coord.x < box.left ? coord.x - box.left : coord.x > box.right ? coord.x - box.right : 0;
|
|
25052
25142
|
};
|
|
25053
|
-
goog
|
|
25143
|
+
module$contents$goog$math$Box_Box.relativePositionY = function(box, coord) {
|
|
25054
25144
|
return coord.y < box.top ? coord.y - box.top : coord.y > box.bottom ? coord.y - box.bottom : 0;
|
|
25055
25145
|
};
|
|
25056
|
-
goog
|
|
25057
|
-
var x = goog
|
|
25146
|
+
module$contents$goog$math$Box_Box.distance = function(box, coord) {
|
|
25147
|
+
var x = module$contents$goog$math$Box_Box.relativePositionX(box, coord), y = module$contents$goog$math$Box_Box.relativePositionY(box, coord);
|
|
25058
25148
|
return Math.sqrt(x * x + y * y);
|
|
25059
25149
|
};
|
|
25060
|
-
goog
|
|
25150
|
+
module$contents$goog$math$Box_Box.intersects = function(a, b) {
|
|
25061
25151
|
return a.left <= b.right && b.left <= a.right && a.top <= b.bottom && b.top <= a.bottom;
|
|
25062
25152
|
};
|
|
25063
|
-
goog
|
|
25153
|
+
module$contents$goog$math$Box_Box.intersectsWithPadding = function(a, b, padding) {
|
|
25064
25154
|
return a.left <= b.right + padding && b.left <= a.right + padding && a.top <= b.bottom + padding && b.top <= a.bottom + padding;
|
|
25065
25155
|
};
|
|
25066
|
-
goog
|
|
25156
|
+
module$contents$goog$math$Box_Box.prototype.ceil = function() {
|
|
25067
25157
|
this.top = Math.ceil(this.top);
|
|
25068
25158
|
this.right = Math.ceil(this.right);
|
|
25069
25159
|
this.bottom = Math.ceil(this.bottom);
|
|
25070
25160
|
this.left = Math.ceil(this.left);
|
|
25071
25161
|
return this;
|
|
25072
25162
|
};
|
|
25073
|
-
goog
|
|
25163
|
+
module$contents$goog$math$Box_Box.prototype.floor = function() {
|
|
25074
25164
|
this.top = Math.floor(this.top);
|
|
25075
25165
|
this.right = Math.floor(this.right);
|
|
25076
25166
|
this.bottom = Math.floor(this.bottom);
|
|
25077
25167
|
this.left = Math.floor(this.left);
|
|
25078
25168
|
return this;
|
|
25079
25169
|
};
|
|
25080
|
-
goog
|
|
25170
|
+
module$contents$goog$math$Box_Box.prototype.round = function() {
|
|
25081
25171
|
this.top = Math.round(this.top);
|
|
25082
25172
|
this.right = Math.round(this.right);
|
|
25083
25173
|
this.bottom = Math.round(this.bottom);
|
|
25084
25174
|
this.left = Math.round(this.left);
|
|
25085
25175
|
return this;
|
|
25086
25176
|
};
|
|
25087
|
-
goog
|
|
25177
|
+
module$contents$goog$math$Box_Box.prototype.translate = function(tx, opt_ty) {
|
|
25088
25178
|
tx instanceof goog.math.Coordinate ? (this.left += tx.x, this.right += tx.x, this.top += tx.y, this.bottom += tx.y) : (goog.asserts.assertNumber(tx), this.left += tx, this.right += tx, typeof opt_ty === "number" && (this.top += opt_ty, this.bottom += opt_ty));
|
|
25089
25179
|
return this;
|
|
25090
25180
|
};
|
|
25091
|
-
goog
|
|
25181
|
+
module$contents$goog$math$Box_Box.prototype.scale = function(sx, opt_sy) {
|
|
25092
25182
|
var sy = typeof opt_sy === "number" ? opt_sy : sx;
|
|
25093
25183
|
this.left *= sx;
|
|
25094
25184
|
this.right *= sx;
|
|
@@ -25096,6 +25186,7 @@ goog.math.Box.prototype.scale = function(sx, opt_sy) {
|
|
|
25096
25186
|
this.bottom *= sy;
|
|
25097
25187
|
return this;
|
|
25098
25188
|
};
|
|
25189
|
+
goog.math.Box = module$contents$goog$math$Box_Box;
|
|
25099
25190
|
goog.math.IRect = function() {
|
|
25100
25191
|
};
|
|
25101
25192
|
goog.math.Rect = function(x, y, w, h) {
|
|
@@ -25108,7 +25199,7 @@ goog.math.Rect.prototype.clone = function() {
|
|
|
25108
25199
|
return new goog.math.Rect(this.left, this.top, this.width, this.height);
|
|
25109
25200
|
};
|
|
25110
25201
|
goog.math.Rect.prototype.toBox = function() {
|
|
25111
|
-
return new goog
|
|
25202
|
+
return new module$contents$goog$math$Box_Box(this.top, this.left + this.width, this.top + this.height, this.left);
|
|
25112
25203
|
};
|
|
25113
25204
|
goog.math.Rect.createFromPositionAndSize = function(position, size) {
|
|
25114
25205
|
return new goog.math.Rect(position.x, position.y, size.width, size.height);
|
|
@@ -25254,7 +25345,7 @@ goog.style.getVendorJsStyleName_ = function(element, style) {
|
|
|
25254
25345
|
var camelStyle = goog.string.toCamelCase(style);
|
|
25255
25346
|
propertyName = camelStyle;
|
|
25256
25347
|
if (element.style[camelStyle] === void 0) {
|
|
25257
|
-
var prefixedStyle = goog
|
|
25348
|
+
var prefixedStyle = module$contents$goog$dom$vendor_getVendorJsPrefix() + goog.string.toTitleCase(camelStyle);
|
|
25258
25349
|
element.style[prefixedStyle] !== void 0 && (propertyName = prefixedStyle);
|
|
25259
25350
|
}
|
|
25260
25351
|
goog.style.styleNameCache_[style] = propertyName;
|
|
@@ -25264,9 +25355,9 @@ goog.style.getVendorJsStyleName_ = function(element, style) {
|
|
|
25264
25355
|
goog.style.getVendorStyleName_ = function(element, style) {
|
|
25265
25356
|
var camelStyle = goog.string.toCamelCase(style);
|
|
25266
25357
|
if (element.style[camelStyle] === void 0) {
|
|
25267
|
-
var prefixedStyle = goog
|
|
25358
|
+
var prefixedStyle = module$contents$goog$dom$vendor_getVendorJsPrefix() + goog.string.toTitleCase(camelStyle);
|
|
25268
25359
|
if (element.style[prefixedStyle] !== void 0) {
|
|
25269
|
-
return goog
|
|
25360
|
+
return module$contents$goog$dom$vendor_getVendorPrefix() + "-" + style;
|
|
25270
25361
|
}
|
|
25271
25362
|
}
|
|
25272
25363
|
return style;
|
|
@@ -25355,7 +25446,7 @@ goog.style.getOffsetParent = function(element) {
|
|
|
25355
25446
|
return null;
|
|
25356
25447
|
};
|
|
25357
25448
|
goog.style.getVisibleRectForElement = function(element) {
|
|
25358
|
-
for (var visibleRect = new goog
|
|
25449
|
+
for (var visibleRect = new module$contents$goog$math$Box_Box(0, Infinity, Infinity, 0), dom = goog.dom.getDomHelper(element), body = dom.getDocument().body, documentElement = dom.getDocument().documentElement, scrollEl = dom.getDocumentScrollElement(), el = element; el = goog.style.getOffsetParent(el);) {
|
|
25359
25450
|
if ((!goog.userAgent.WEBKIT || el.clientHeight != 0 || el != body) && el != body && el != documentElement && goog.style.getStyle_(el, "overflow") != "visible") {
|
|
25360
25451
|
var pos = goog.style.getPageOffset(el), client = goog.style.getClientLeftTop(el);
|
|
25361
25452
|
pos.x += client.x;
|
|
@@ -25564,7 +25655,7 @@ goog.style.installSafeStyleSheet = function(safeStyleSheet, opt_node) {
|
|
|
25564
25655
|
head = dh.createDom(goog.dom.TagName.HEAD);
|
|
25565
25656
|
body.parentNode.insertBefore(head, body);
|
|
25566
25657
|
}
|
|
25567
|
-
var el = dh.createDom(goog.dom.TagName.STYLE), nonce = module$contents$safevalues$dom$globals$window_getStyleNonce(
|
|
25658
|
+
var el = dh.createDom(goog.dom.TagName.STYLE), nonce = module$contents$safevalues$dom$globals$window_getStyleNonce(document);
|
|
25568
25659
|
nonce && el.setAttribute("nonce", nonce);
|
|
25569
25660
|
goog.style.setSafeStyleSheet(el, safeStyleSheet);
|
|
25570
25661
|
dh.appendChild(head, el);
|
|
@@ -25641,7 +25732,7 @@ goog.style.getIePixelDistance_ = function(element, propName) {
|
|
|
25641
25732
|
};
|
|
25642
25733
|
goog.style.getBox_ = function(element, stylePrefix) {
|
|
25643
25734
|
var left = goog.style.getComputedStyle(element, stylePrefix + "Left"), right = goog.style.getComputedStyle(element, stylePrefix + "Right"), top = goog.style.getComputedStyle(element, stylePrefix + "Top"), bottom = goog.style.getComputedStyle(element, stylePrefix + "Bottom");
|
|
25644
|
-
return new goog
|
|
25735
|
+
return new module$contents$goog$math$Box_Box(parseFloat(top), parseFloat(right), parseFloat(bottom), parseFloat(left));
|
|
25645
25736
|
};
|
|
25646
25737
|
goog.style.getPaddingBox = function(element) {
|
|
25647
25738
|
return goog.style.getBox_(element, "padding");
|
|
@@ -25659,7 +25750,7 @@ goog.style.getIePixelBorder_ = function(element, prop) {
|
|
|
25659
25750
|
};
|
|
25660
25751
|
goog.style.getBorderBox = function(element) {
|
|
25661
25752
|
var left = goog.style.getComputedStyle(element, "borderLeftWidth"), right = goog.style.getComputedStyle(element, "borderRightWidth"), top = goog.style.getComputedStyle(element, "borderTopWidth"), bottom = goog.style.getComputedStyle(element, "borderBottomWidth");
|
|
25662
|
-
return new goog
|
|
25753
|
+
return new module$contents$goog$math$Box_Box(parseFloat(top), parseFloat(right), parseFloat(bottom), parseFloat(left));
|
|
25663
25754
|
};
|
|
25664
25755
|
goog.style.getFontFamily = function(el) {
|
|
25665
25756
|
var doc = goog.dom.getOwnerDocument(el), font = "";
|
|
@@ -26204,41 +26295,41 @@ module$contents$ee$layers$CloudStorageTileSource_CloudStorageTileSource.BASE_URL
|
|
|
26204
26295
|
module$contents$ee$layers$CloudStorageTileSource_CloudStorageTileSource.MISSING_TILE_ERROR_ = "The specified key does not exist.";
|
|
26205
26296
|
module$contents$ee$layers$CloudStorageTileSource_CloudStorageTileSource.ACCESS_DENIED_ERROR_ = "AccessDenied";
|
|
26206
26297
|
ee.layers.CloudStorageTileSource = module$contents$ee$layers$CloudStorageTileSource_CloudStorageTileSource;
|
|
26207
|
-
goog
|
|
26298
|
+
function module$contents$goog$structs$Queue_Queue() {
|
|
26208
26299
|
this.front_ = [];
|
|
26209
26300
|
this.back_ = [];
|
|
26210
|
-
}
|
|
26211
|
-
goog
|
|
26301
|
+
}
|
|
26302
|
+
module$contents$goog$structs$Queue_Queue.prototype.maybeFlip_ = function() {
|
|
26212
26303
|
this.front_.length === 0 && (this.front_ = this.back_, this.front_.reverse(), this.back_ = []);
|
|
26213
26304
|
};
|
|
26214
|
-
goog
|
|
26305
|
+
module$contents$goog$structs$Queue_Queue.prototype.enqueue = function(element) {
|
|
26215
26306
|
this.back_.push(element);
|
|
26216
26307
|
};
|
|
26217
|
-
goog
|
|
26308
|
+
module$contents$goog$structs$Queue_Queue.prototype.dequeue = function() {
|
|
26218
26309
|
this.maybeFlip_();
|
|
26219
26310
|
return this.front_.pop();
|
|
26220
26311
|
};
|
|
26221
|
-
goog
|
|
26312
|
+
module$contents$goog$structs$Queue_Queue.prototype.peek = function() {
|
|
26222
26313
|
this.maybeFlip_();
|
|
26223
26314
|
return module$contents$goog$array_peek(this.front_);
|
|
26224
26315
|
};
|
|
26225
|
-
goog
|
|
26316
|
+
module$contents$goog$structs$Queue_Queue.prototype.getCount = function() {
|
|
26226
26317
|
return this.front_.length + this.back_.length;
|
|
26227
26318
|
};
|
|
26228
|
-
goog
|
|
26319
|
+
module$contents$goog$structs$Queue_Queue.prototype.isEmpty = function() {
|
|
26229
26320
|
return this.front_.length === 0 && this.back_.length === 0;
|
|
26230
26321
|
};
|
|
26231
|
-
goog
|
|
26322
|
+
module$contents$goog$structs$Queue_Queue.prototype.clear = function() {
|
|
26232
26323
|
this.front_ = [];
|
|
26233
26324
|
this.back_ = [];
|
|
26234
26325
|
};
|
|
26235
|
-
goog
|
|
26326
|
+
module$contents$goog$structs$Queue_Queue.prototype.contains = function(obj) {
|
|
26236
26327
|
return module$contents$goog$array_contains(this.front_, obj) || module$contents$goog$array_contains(this.back_, obj);
|
|
26237
26328
|
};
|
|
26238
|
-
goog
|
|
26329
|
+
module$contents$goog$structs$Queue_Queue.prototype.remove = function(obj) {
|
|
26239
26330
|
return module$contents$goog$array_removeLast(this.front_, obj) || module$contents$goog$array_remove(this.back_, obj);
|
|
26240
26331
|
};
|
|
26241
|
-
goog
|
|
26332
|
+
module$contents$goog$structs$Queue_Queue.prototype.getValues = function() {
|
|
26242
26333
|
for (var res = [], i = this.front_.length - 1; i >= 0; --i) {
|
|
26243
26334
|
res.push(this.front_[i]);
|
|
26244
26335
|
}
|
|
@@ -26247,40 +26338,41 @@ goog.structs.Queue.prototype.getValues = function() {
|
|
|
26247
26338
|
}
|
|
26248
26339
|
return res;
|
|
26249
26340
|
};
|
|
26250
|
-
goog.structs.
|
|
26341
|
+
goog.structs.Queue = module$contents$goog$structs$Queue_Queue;
|
|
26342
|
+
function module$contents$goog$structs$Pool_Pool(opt_minCount, opt_maxCount) {
|
|
26251
26343
|
goog.Disposable.call(this);
|
|
26252
26344
|
this.minCount_ = opt_minCount || 0;
|
|
26253
26345
|
this.maxCount_ = opt_maxCount || 10;
|
|
26254
26346
|
if (this.minCount_ > this.maxCount_) {
|
|
26255
|
-
throw Error(goog
|
|
26347
|
+
throw Error(module$contents$goog$structs$Pool_Pool.ERROR_MIN_MAX_);
|
|
26256
26348
|
}
|
|
26257
|
-
this.freeQueue_ = new goog
|
|
26349
|
+
this.freeQueue_ = new module$contents$goog$structs$Queue_Queue();
|
|
26258
26350
|
this.inUseSet_ = new goog.structs.Set();
|
|
26259
26351
|
this.delay = 0;
|
|
26260
26352
|
this.lastAccess = null;
|
|
26261
26353
|
this.adjustForMinMax();
|
|
26262
|
-
}
|
|
26263
|
-
goog.inherits(goog
|
|
26264
|
-
goog
|
|
26265
|
-
goog
|
|
26266
|
-
goog
|
|
26354
|
+
}
|
|
26355
|
+
goog.inherits(module$contents$goog$structs$Pool_Pool, goog.Disposable);
|
|
26356
|
+
module$contents$goog$structs$Pool_Pool.ERROR_MIN_MAX_ = "[goog.structs.Pool] Min can not be greater than max";
|
|
26357
|
+
module$contents$goog$structs$Pool_Pool.ERROR_DISPOSE_UNRELEASED_OBJS_ = "[goog.structs.Pool] Objects not released";
|
|
26358
|
+
module$contents$goog$structs$Pool_Pool.prototype.setMinimumCount = function(min) {
|
|
26267
26359
|
if (min > this.maxCount_) {
|
|
26268
|
-
throw Error(goog
|
|
26360
|
+
throw Error(module$contents$goog$structs$Pool_Pool.ERROR_MIN_MAX_);
|
|
26269
26361
|
}
|
|
26270
26362
|
this.minCount_ = min;
|
|
26271
26363
|
this.adjustForMinMax();
|
|
26272
26364
|
};
|
|
26273
|
-
goog
|
|
26365
|
+
module$contents$goog$structs$Pool_Pool.prototype.setMaximumCount = function(max) {
|
|
26274
26366
|
if (max < this.minCount_) {
|
|
26275
|
-
throw Error(goog
|
|
26367
|
+
throw Error(module$contents$goog$structs$Pool_Pool.ERROR_MIN_MAX_);
|
|
26276
26368
|
}
|
|
26277
26369
|
this.maxCount_ = max;
|
|
26278
26370
|
this.adjustForMinMax();
|
|
26279
26371
|
};
|
|
26280
|
-
goog
|
|
26372
|
+
module$contents$goog$structs$Pool_Pool.prototype.setDelay = function(delay) {
|
|
26281
26373
|
this.delay = delay;
|
|
26282
26374
|
};
|
|
26283
|
-
goog
|
|
26375
|
+
module$contents$goog$structs$Pool_Pool.prototype.getObject = function() {
|
|
26284
26376
|
var time = Date.now();
|
|
26285
26377
|
if (!(this.lastAccess != null && time - this.lastAccess < this.delay)) {
|
|
26286
26378
|
var obj = this.removeFreeObject_();
|
|
@@ -26288,21 +26380,21 @@ goog.structs.Pool.prototype.getObject = function() {
|
|
|
26288
26380
|
return obj;
|
|
26289
26381
|
}
|
|
26290
26382
|
};
|
|
26291
|
-
goog
|
|
26383
|
+
module$contents$goog$structs$Pool_Pool.prototype.releaseObject = function(obj) {
|
|
26292
26384
|
return this.inUseSet_.remove(obj) ? (this.addFreeObject(obj), !0) : !1;
|
|
26293
26385
|
};
|
|
26294
|
-
goog
|
|
26386
|
+
module$contents$goog$structs$Pool_Pool.prototype.removeFreeObject_ = function() {
|
|
26295
26387
|
for (var obj; this.getFreeCount() > 0 && (obj = this.freeQueue_.dequeue(), !this.objectCanBeReused(obj));) {
|
|
26296
26388
|
this.adjustForMinMax();
|
|
26297
26389
|
}
|
|
26298
26390
|
!obj && this.getCount() < this.maxCount_ && (obj = this.createObject());
|
|
26299
26391
|
return obj;
|
|
26300
26392
|
};
|
|
26301
|
-
goog
|
|
26393
|
+
module$contents$goog$structs$Pool_Pool.prototype.addFreeObject = function(obj) {
|
|
26302
26394
|
this.inUseSet_.remove(obj);
|
|
26303
26395
|
this.objectCanBeReused(obj) && this.getCount() < this.maxCount_ ? this.freeQueue_.enqueue(obj) : this.disposeObject(obj);
|
|
26304
26396
|
};
|
|
26305
|
-
goog
|
|
26397
|
+
module$contents$goog$structs$Pool_Pool.prototype.adjustForMinMax = function() {
|
|
26306
26398
|
for (var freeQueue = this.freeQueue_; this.getCount() < this.minCount_;) {
|
|
26307
26399
|
freeQueue.enqueue(this.createObject());
|
|
26308
26400
|
}
|
|
@@ -26310,10 +26402,10 @@ goog.structs.Pool.prototype.adjustForMinMax = function() {
|
|
|
26310
26402
|
this.disposeObject(freeQueue.dequeue());
|
|
26311
26403
|
}
|
|
26312
26404
|
};
|
|
26313
|
-
goog
|
|
26405
|
+
module$contents$goog$structs$Pool_Pool.prototype.createObject = function() {
|
|
26314
26406
|
return {};
|
|
26315
26407
|
};
|
|
26316
|
-
goog
|
|
26408
|
+
module$contents$goog$structs$Pool_Pool.prototype.disposeObject = function(obj) {
|
|
26317
26409
|
if (typeof obj.dispose == "function") {
|
|
26318
26410
|
obj.dispose();
|
|
26319
26411
|
} else {
|
|
@@ -26322,28 +26414,28 @@ goog.structs.Pool.prototype.disposeObject = function(obj) {
|
|
|
26322
26414
|
}
|
|
26323
26415
|
}
|
|
26324
26416
|
};
|
|
26325
|
-
goog
|
|
26417
|
+
module$contents$goog$structs$Pool_Pool.prototype.objectCanBeReused = function(obj) {
|
|
26326
26418
|
return typeof obj.canBeReused == "function" ? obj.canBeReused() : !0;
|
|
26327
26419
|
};
|
|
26328
|
-
goog
|
|
26420
|
+
module$contents$goog$structs$Pool_Pool.prototype.contains = function(obj) {
|
|
26329
26421
|
return this.freeQueue_.contains(obj) || this.inUseSet_.contains(obj);
|
|
26330
26422
|
};
|
|
26331
|
-
goog
|
|
26423
|
+
module$contents$goog$structs$Pool_Pool.prototype.getCount = function() {
|
|
26332
26424
|
return this.freeQueue_.getCount() + this.inUseSet_.getCount();
|
|
26333
26425
|
};
|
|
26334
|
-
goog
|
|
26426
|
+
module$contents$goog$structs$Pool_Pool.prototype.getInUseCount = function() {
|
|
26335
26427
|
return this.inUseSet_.getCount();
|
|
26336
26428
|
};
|
|
26337
|
-
goog
|
|
26429
|
+
module$contents$goog$structs$Pool_Pool.prototype.getFreeCount = function() {
|
|
26338
26430
|
return this.freeQueue_.getCount();
|
|
26339
26431
|
};
|
|
26340
|
-
goog
|
|
26432
|
+
module$contents$goog$structs$Pool_Pool.prototype.isEmpty = function() {
|
|
26341
26433
|
return this.freeQueue_.isEmpty() && this.inUseSet_.isEmpty();
|
|
26342
26434
|
};
|
|
26343
|
-
goog
|
|
26344
|
-
goog
|
|
26435
|
+
module$contents$goog$structs$Pool_Pool.prototype.disposeInternal = function() {
|
|
26436
|
+
module$contents$goog$structs$Pool_Pool.superClass_.disposeInternal.call(this);
|
|
26345
26437
|
if (this.getInUseCount() > 0) {
|
|
26346
|
-
throw Error(goog
|
|
26438
|
+
throw Error(module$contents$goog$structs$Pool_Pool.ERROR_DISPOSE_UNRELEASED_OBJS_);
|
|
26347
26439
|
}
|
|
26348
26440
|
delete this.inUseSet_;
|
|
26349
26441
|
for (var freeQueue = this.freeQueue_; !freeQueue.isEmpty();) {
|
|
@@ -26351,26 +26443,27 @@ goog.structs.Pool.prototype.disposeInternal = function() {
|
|
|
26351
26443
|
}
|
|
26352
26444
|
delete this.freeQueue_;
|
|
26353
26445
|
};
|
|
26354
|
-
goog.structs.
|
|
26446
|
+
goog.structs.Pool = module$contents$goog$structs$Pool_Pool;
|
|
26447
|
+
function module$contents$goog$structs$Node_Node(key, value) {
|
|
26355
26448
|
this.key_ = key;
|
|
26356
26449
|
this.value_ = value;
|
|
26357
|
-
}
|
|
26358
|
-
goog
|
|
26450
|
+
}
|
|
26451
|
+
module$contents$goog$structs$Node_Node.prototype.getKey = function() {
|
|
26359
26452
|
return this.key_;
|
|
26360
26453
|
};
|
|
26361
|
-
goog
|
|
26454
|
+
module$contents$goog$structs$Node_Node.prototype.getValue = function() {
|
|
26362
26455
|
return this.value_;
|
|
26363
26456
|
};
|
|
26364
|
-
goog
|
|
26365
|
-
return new goog
|
|
26457
|
+
module$contents$goog$structs$Node_Node.prototype.clone = function() {
|
|
26458
|
+
return new module$contents$goog$structs$Node_Node(this.key_, this.value_);
|
|
26366
26459
|
};
|
|
26367
26460
|
var module$contents$goog$structs$Heap_Heap = function(opt_heap) {
|
|
26368
26461
|
this.nodes_ = [];
|
|
26369
26462
|
opt_heap && this.insertAll(opt_heap);
|
|
26370
26463
|
};
|
|
26371
26464
|
module$contents$goog$structs$Heap_Heap.prototype.insert = function(key, value) {
|
|
26372
|
-
var
|
|
26373
|
-
nodes.push(
|
|
26465
|
+
var nodes = this.nodes_;
|
|
26466
|
+
nodes.push(new module$contents$goog$structs$Node_Node(key, value));
|
|
26374
26467
|
this.moveUp_(nodes.length - 1);
|
|
26375
26468
|
};
|
|
26376
26469
|
module$contents$goog$structs$Heap_Heap.prototype.insertAll = function(heap) {
|
|
@@ -26379,7 +26472,7 @@ module$contents$goog$structs$Heap_Heap.prototype.insertAll = function(heap) {
|
|
|
26379
26472
|
var values = heap.getValues();
|
|
26380
26473
|
if (this.getCount() <= 0) {
|
|
26381
26474
|
for (var nodes = this.nodes_, i = 0; i < keys.length; i++) {
|
|
26382
|
-
nodes.push(new goog
|
|
26475
|
+
nodes.push(new module$contents$goog$structs$Node_Node(keys[i], values[i]));
|
|
26383
26476
|
}
|
|
26384
26477
|
return;
|
|
26385
26478
|
}
|
|
@@ -26482,27 +26575,27 @@ module$contents$goog$structs$PriorityQueue_PriorityQueue.prototype.dequeue = fun
|
|
|
26482
26575
|
return this.remove();
|
|
26483
26576
|
};
|
|
26484
26577
|
goog.structs.PriorityQueue = module$contents$goog$structs$PriorityQueue_PriorityQueue;
|
|
26485
|
-
goog
|
|
26578
|
+
function module$contents$goog$structs$PriorityPool_PriorityPool(opt_minCount, opt_maxCount) {
|
|
26486
26579
|
this.delayTimeout_ = void 0;
|
|
26487
26580
|
this.requestQueue_ = new module$contents$goog$structs$PriorityQueue_PriorityQueue();
|
|
26488
|
-
goog
|
|
26489
|
-
}
|
|
26490
|
-
goog.inherits(goog
|
|
26491
|
-
goog
|
|
26492
|
-
goog
|
|
26493
|
-
goog
|
|
26581
|
+
module$contents$goog$structs$Pool_Pool.call(this, opt_minCount, opt_maxCount);
|
|
26582
|
+
}
|
|
26583
|
+
goog.inherits(module$contents$goog$structs$PriorityPool_PriorityPool, module$contents$goog$structs$Pool_Pool);
|
|
26584
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.DEFAULT_PRIORITY_ = 100;
|
|
26585
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.prototype.setDelay = function(delay) {
|
|
26586
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.superClass_.setDelay.call(this, delay);
|
|
26494
26587
|
this.lastAccess != null && (goog.global.clearTimeout(this.delayTimeout_), this.delayTimeout_ = goog.global.setTimeout(goog.bind(this.handleQueueRequests_, this), this.delay + this.lastAccess - Date.now()), this.handleQueueRequests_());
|
|
26495
26588
|
};
|
|
26496
|
-
goog
|
|
26589
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.prototype.getObject = function(opt_callback, opt_priority) {
|
|
26497
26590
|
if (!opt_callback) {
|
|
26498
|
-
var result = goog
|
|
26591
|
+
var result = module$contents$goog$structs$PriorityPool_PriorityPool.superClass_.getObject.call(this);
|
|
26499
26592
|
result && this.delay && (this.delayTimeout_ = goog.global.setTimeout(goog.bind(this.handleQueueRequests_, this), this.delay));
|
|
26500
26593
|
return result;
|
|
26501
26594
|
}
|
|
26502
|
-
this.requestQueue_.enqueue(opt_priority !== void 0 ? opt_priority : goog
|
|
26595
|
+
this.requestQueue_.enqueue(opt_priority !== void 0 ? opt_priority : module$contents$goog$structs$PriorityPool_PriorityPool.DEFAULT_PRIORITY_, opt_callback);
|
|
26503
26596
|
this.handleQueueRequests_();
|
|
26504
26597
|
};
|
|
26505
|
-
goog
|
|
26598
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.prototype.handleQueueRequests_ = function() {
|
|
26506
26599
|
for (var requestQueue = this.requestQueue_; requestQueue.getCount() > 0;) {
|
|
26507
26600
|
var obj = this.getObject();
|
|
26508
26601
|
if (obj) {
|
|
@@ -26512,20 +26605,21 @@ goog.structs.PriorityPool.prototype.handleQueueRequests_ = function() {
|
|
|
26512
26605
|
}
|
|
26513
26606
|
}
|
|
26514
26607
|
};
|
|
26515
|
-
goog
|
|
26516
|
-
goog
|
|
26608
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.prototype.addFreeObject = function(obj) {
|
|
26609
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.superClass_.addFreeObject.call(this, obj);
|
|
26517
26610
|
this.handleQueueRequests_();
|
|
26518
26611
|
};
|
|
26519
|
-
goog
|
|
26520
|
-
goog
|
|
26612
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.prototype.adjustForMinMax = function() {
|
|
26613
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.superClass_.adjustForMinMax.call(this);
|
|
26521
26614
|
this.handleQueueRequests_();
|
|
26522
26615
|
};
|
|
26523
|
-
goog
|
|
26524
|
-
goog
|
|
26616
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.prototype.disposeInternal = function() {
|
|
26617
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.superClass_.disposeInternal.call(this);
|
|
26525
26618
|
goog.global.clearTimeout(this.delayTimeout_);
|
|
26526
26619
|
this.requestQueue_.clear();
|
|
26527
26620
|
this.requestQueue_ = null;
|
|
26528
26621
|
};
|
|
26622
|
+
goog.structs.PriorityPool = module$contents$goog$structs$PriorityPool_PriorityPool;
|
|
26529
26623
|
var module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource = function(mapId, opt_profiler) {
|
|
26530
26624
|
module$exports$ee$layers$AbstractTileSource.call(this);
|
|
26531
26625
|
this.mapId_ = mapId;
|
|
@@ -26571,7 +26665,7 @@ module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.prototype.
|
|
|
26571
26665
|
return this.profiler_ && this.profiler_.isEnabled() ? url + "&profiling=1" : url;
|
|
26572
26666
|
};
|
|
26573
26667
|
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.prototype.getGlobalTokenPool_ = function() {
|
|
26574
|
-
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_ || (module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_ = new goog
|
|
26668
|
+
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_ || (module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_ = new module$contents$goog$structs$PriorityPool_PriorityPool(0, module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.DEFAULT_TOKEN_COUNT_));
|
|
26575
26669
|
return module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_;
|
|
26576
26670
|
};
|
|
26577
26671
|
goog.exportSymbol("ee.layers.EarthEngineTileSource", module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource);
|
|
@@ -26785,9 +26879,9 @@ ee.MapTileManager.Token_.prototype.isActive = function() {
|
|
|
26785
26879
|
return this.active_;
|
|
26786
26880
|
};
|
|
26787
26881
|
ee.MapTileManager.TokenPool_ = function(opt_minCount, opt_maxCount) {
|
|
26788
|
-
goog
|
|
26882
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.call(this, opt_minCount, opt_maxCount);
|
|
26789
26883
|
};
|
|
26790
|
-
$jscomp.inherits(ee.MapTileManager.TokenPool_, goog
|
|
26884
|
+
$jscomp.inherits(ee.MapTileManager.TokenPool_, module$contents$goog$structs$PriorityPool_PriorityPool);
|
|
26791
26885
|
ee.MapTileManager.TokenPool_.prototype.createObject = function() {
|
|
26792
26886
|
return new ee.MapTileManager.Token_();
|
|
26793
26887
|
};
|
|
@@ -26879,46 +26973,47 @@ goog.exportProperty(ee.MapLayerOverlay.prototype, "addTileCallback", ee.MapLayer
|
|
|
26879
26973
|
goog.exportProperty(ee.MapLayerOverlay.prototype, "getTile", ee.MapLayerOverlay.prototype.getTile);
|
|
26880
26974
|
goog.exportProperty(ee.MapLayerOverlay.prototype, "setOpacity", ee.MapLayerOverlay.prototype.setOpacity);
|
|
26881
26975
|
goog.exportProperty(ee.MapLayerOverlay.prototype, "releaseTile", ee.MapLayerOverlay.prototype.releaseTile);
|
|
26882
|
-
goog
|
|
26976
|
+
function module$contents$goog$async$Delay_Delay(listener, opt_interval, opt_handler) {
|
|
26883
26977
|
goog.Disposable.call(this);
|
|
26884
26978
|
this.listener_ = listener;
|
|
26885
26979
|
this.interval_ = opt_interval || 0;
|
|
26886
26980
|
this.handler_ = opt_handler;
|
|
26887
26981
|
this.callback_ = goog.bind(this.doAction_, this);
|
|
26888
|
-
}
|
|
26889
|
-
goog.inherits(goog
|
|
26890
|
-
goog
|
|
26891
|
-
goog
|
|
26892
|
-
goog
|
|
26982
|
+
}
|
|
26983
|
+
goog.inherits(module$contents$goog$async$Delay_Delay, goog.Disposable);
|
|
26984
|
+
module$contents$goog$async$Delay_Delay.prototype.id_ = 0;
|
|
26985
|
+
module$contents$goog$async$Delay_Delay.prototype.disposeInternal = function() {
|
|
26986
|
+
module$contents$goog$async$Delay_Delay.superClass_.disposeInternal.call(this);
|
|
26893
26987
|
this.stop();
|
|
26894
26988
|
delete this.listener_;
|
|
26895
26989
|
delete this.handler_;
|
|
26896
26990
|
};
|
|
26897
|
-
goog
|
|
26991
|
+
module$contents$goog$async$Delay_Delay.prototype.start = function(opt_interval) {
|
|
26898
26992
|
this.stop();
|
|
26899
26993
|
this.id_ = goog.Timer.callOnce(this.callback_, opt_interval !== void 0 ? opt_interval : this.interval_);
|
|
26900
26994
|
};
|
|
26901
|
-
goog
|
|
26995
|
+
module$contents$goog$async$Delay_Delay.prototype.startIfNotActive = function(opt_interval) {
|
|
26902
26996
|
this.isActive() || this.start(opt_interval);
|
|
26903
26997
|
};
|
|
26904
|
-
goog
|
|
26998
|
+
module$contents$goog$async$Delay_Delay.prototype.stop = function() {
|
|
26905
26999
|
this.isActive() && goog.Timer.clear(this.id_);
|
|
26906
27000
|
this.id_ = 0;
|
|
26907
27001
|
};
|
|
26908
|
-
goog
|
|
27002
|
+
module$contents$goog$async$Delay_Delay.prototype.fire = function() {
|
|
26909
27003
|
this.stop();
|
|
26910
27004
|
this.doAction_();
|
|
26911
27005
|
};
|
|
26912
|
-
goog
|
|
27006
|
+
module$contents$goog$async$Delay_Delay.prototype.fireIfActive = function() {
|
|
26913
27007
|
this.isActive() && this.fire();
|
|
26914
27008
|
};
|
|
26915
|
-
goog
|
|
27009
|
+
module$contents$goog$async$Delay_Delay.prototype.isActive = function() {
|
|
26916
27010
|
return this.id_ != 0;
|
|
26917
27011
|
};
|
|
26918
|
-
goog
|
|
27012
|
+
module$contents$goog$async$Delay_Delay.prototype.doAction_ = function() {
|
|
26919
27013
|
this.id_ = 0;
|
|
26920
27014
|
this.listener_ && this.listener_.call(this.handler_);
|
|
26921
27015
|
};
|
|
27016
|
+
goog.async.Delay = module$contents$goog$async$Delay_Delay;
|
|
26922
27017
|
ee.data.Profiler = function(format) {
|
|
26923
27018
|
goog.events.EventTarget.call(this);
|
|
26924
27019
|
this.format_ = format;
|
|
@@ -26928,7 +27023,7 @@ ee.data.Profiler = function(format) {
|
|
|
26928
27023
|
this.tileProfileIds_ = Object.create(null);
|
|
26929
27024
|
this.showInternal_ = !1;
|
|
26930
27025
|
this.profileError_ = null;
|
|
26931
|
-
this.throttledRefresh_ = new goog
|
|
27026
|
+
this.throttledRefresh_ = new module$contents$goog$async$Delay_Delay(goog.bind(this.refresh_, this), ee.data.Profiler.DELAY_BEFORE_REFRESH_);
|
|
26932
27027
|
this.profileData_ = ee.data.Profiler.getEmptyProfile_(format);
|
|
26933
27028
|
this.MAX_RETRY_COUNT_ = 5;
|
|
26934
27029
|
};
|
|
@@ -27029,29 +27124,29 @@ ee.data.Profiler.Format.prototype.toString = function() {
|
|
|
27029
27124
|
ee.data.Profiler.Format.TEXT = new ee.data.Profiler.Format("text");
|
|
27030
27125
|
ee.data.Profiler.Format.JSON = new ee.data.Profiler.Format("json");
|
|
27031
27126
|
(function() {
|
|
27032
|
-
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._apply ee.ApiFunction.lookup ee.ApiFunction._call ee.batch.Export.
|
|
27033
|
-
orderedParamLists = [["name", "namedArgs"], ["name"], ["name", "var_args"], "
|
|
27034
|
-
"
|
|
27035
|
-
|
|
27036
|
-
"collection opt_description opt_bucket opt_fileNamePrefix
|
|
27037
|
-
["
|
|
27038
|
-
"
|
|
27039
|
-
"opt_callback"], ["params", "opt_callback"], ["
|
|
27040
|
-
|
|
27041
|
-
["json"], ["
|
|
27042
|
-
|
|
27043
|
-
"opt_maxError"], ["
|
|
27044
|
-
["
|
|
27045
|
-
["
|
|
27046
|
-
[ee.ApiFunction._apply, ee.ApiFunction.lookup, ee.ApiFunction._call, module$contents$ee$batch_Export.
|
|
27047
|
-
module$contents$ee$batch_Export.
|
|
27048
|
-
ee.ComputedObject.prototype.
|
|
27049
|
-
ee.data.
|
|
27050
|
-
ee.data.
|
|
27051
|
-
ee.Element.prototype.set, ee.Encodable.SourceFrame, ee.Feature.prototype.getInfo, ee.Feature.prototype.getMapId, ee.Feature.prototype.getMap, ee.
|
|
27052
|
-
ee.Filter.
|
|
27053
|
-
ee.Image.prototype.getMapId, ee.Image.prototype.
|
|
27054
|
-
ee.ImageCollection.prototype.
|
|
27127
|
+
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._apply ee.ApiFunction.lookup ee.ApiFunction._call ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.table.toBigQuery ee.batch.Export.image.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toFeatureView ee.batch.Export.video.toDrive ee.batch.Export.table.toDrive ee.batch.Export.image.toDrive ee.batch.Export.table.toCloudStorage ee.batch.Export.table.toAsset ee.batch.Export.classifier.toAsset ee.batch.Export.image.toAsset ee.batch.Export.map.toCloudStorage ee.Collection.prototype.map ee.Collection.prototype.iterate ee.Collection.prototype.filter ee.Collection.prototype.limit ee.Collection.prototype.sort ee.Collection.prototype.filterMetadata ee.Collection.prototype.filterBounds ee.Collection.prototype.filterDate ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.serialize ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.evaluate ee.data.setAssetAcl ee.data.makeThumbUrl ee.data.authenticateViaOauth ee.data.listAssets ee.data.renameAsset ee.data.getMapId ee.data.setAssetProperties ee.data.getTaskList ee.data.getTableDownloadId ee.data.authenticate ee.data.copyAsset ee.data.getTileUrl ee.data.listBuckets ee.data.makeTableDownloadUrl ee.data.getAssetRootQuota ee.data.getTaskListWithLimit ee.data.cancelOperation ee.data.deleteAsset ee.data.startTableIngestion ee.data.listOperations ee.data.getDownloadId ee.data.makeDownloadUrl ee.data.getWorkloadTag ee.data.listImages ee.data.getAssetAcl ee.data.authenticateViaPopup ee.data.getFeatureViewTilesKey ee.data.listFeatures ee.data.getAsset ee.data.getAssetRoots ee.data.authenticateViaPrivateKey ee.data.getOperation ee.data.setWorkloadTag ee.data.createAssetHome ee.data.newTaskId ee.data.getInfo ee.data.createAsset ee.data.computeValue ee.data.getThumbId ee.data.setDefaultWorkloadTag ee.data.cancelTask ee.data.getVideoThumbId ee.data.resetWorkloadTag ee.data.getFilmstripThumbId ee.data.updateAsset ee.data.getTaskStatus ee.data.getList ee.data.updateTask ee.data.startIngestion ee.data.startProcessing ee.data.createFolder ee.Date ee.Deserializer.fromCloudApiJSON ee.Deserializer.fromJSON ee.Deserializer.decode ee.Deserializer.decodeCloudApi ee.Dictionary ee.initialize ee.reset ee.call ee.Algorithms ee.InitState ee.apply ee.TILE_SIZE ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature ee.Feature.prototype.getInfo ee.Feature.prototype.getMapId ee.Feature.prototype.getMap ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.select ee.FeatureCollection ee.FeatureCollection.prototype.getMapId ee.FeatureCollection.prototype.getDownloadURL ee.Filter.and ee.Filter.gt ee.Filter.inList ee.Filter.neq ee.Filter.lt ee.Filter.or ee.Filter.lte ee.Filter.gte ee.Filter.prototype.not ee.Filter.eq ee.Filter ee.Filter.date ee.Filter.metadata ee.Filter.bounds ee.Function.prototype.call ee.Function.prototype.apply ee.Geometry.LinearRing ee.Geometry.prototype.toGeoJSON ee.Geometry.BBox ee.Geometry.prototype.toGeoJSONString ee.Geometry.MultiPoint ee.Geometry ee.Geometry.Rectangle ee.Geometry.LineString ee.Geometry.Polygon ee.Geometry.Point ee.Geometry.prototype.serialize ee.Geometry.MultiPolygon ee.Geometry.MultiLineString ee.Image.prototype.getInfo ee.Image.prototype.getMapId ee.Image.prototype.getMap ee.Image.prototype.rename ee.Image.prototype.expression ee.Image.prototype.clip ee.Image.rgb ee.Image.prototype.getThumbURL ee.Image.cat ee.Image ee.Image.prototype.getDownloadURL ee.Image.prototype.select ee.Image.prototype.getThumbId ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.select ee.ImageCollection.prototype.getMapId ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.linkCollection ee.ImageCollection ee.ImageCollection.prototype.first ee.List ee.Number ee.Serializer.toReadableCloudApiJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.encode ee.Serializer.toJSON ee.Serializer.encodeCloudApi ee.Serializer.toCloudApiJSON ee.Serializer.toReadableJSON ee.String ee.Terrain".split(" "),
|
|
27128
|
+
orderedParamLists = [["name", "namedArgs"], ["name"], ["name", "var_args"], "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles opt_minTimeMachineZoomSubset opt_maxTimeMachineZoomSubset opt_tileWidth opt_tileHeight opt_tileStride opt_videoFormat opt_version opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "), "collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices opt_priority".split(" "),
|
|
27129
|
+
"image opt_description opt_bucket opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "), "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), "collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "),
|
|
27130
|
+
"collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), "image opt_description opt_folder opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "),
|
|
27131
|
+
"collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), ["collection", "opt_description", "opt_assetId", "opt_maxVertices", "opt_priority"], ["classifier", "opt_description", "opt_assetId", "opt_priority"], "image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_priority".split(" "), "image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "),
|
|
27132
|
+
["algorithm", "opt_dropNulls"], ["algorithm", "opt_first"], ["filter"], ["max", "opt_property", "opt_ascending"], ["property", "opt_ascending"], ["name", "operator", "value"], ["geometry"], ["start", "opt_end"], ["opt_callback"], ["legacy"], ["func", "var_args"], ["callback"], ["assetId", "aclUpdate", "opt_callback"], ["id"], "clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "), ["parent", "opt_params", "opt_callback"], ["sourceId", "destinationId",
|
|
27133
|
+
"opt_callback"], ["params", "opt_callback"], ["assetId", "properties", "opt_callback"], ["opt_callback"], ["params", "opt_callback"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["sourceId", "destinationId", "opt_overwrite", "opt_callback"], ["id", "x", "y", "z"], ["project", "opt_callback"], ["id"], ["rootId", "opt_callback"], ["opt_limit", "opt_callback"], ["operationName", "opt_callback"], ["assetId", "opt_callback"], ["taskId", "request", "opt_callback"],
|
|
27134
|
+
["opt_limit", "opt_callback"], ["params", "opt_callback"], ["id"], [], ["parent", "opt_params", "opt_callback"], ["assetId", "opt_callback"], ["opt_success", "opt_error"], ["params", "opt_callback"], ["asset", "params", "opt_callback"], ["id", "opt_callback"], ["opt_callback"], ["privateKey", "opt_success", "opt_error", "opt_extraScopes", "opt_suppressDefaultScopes"], ["operationName", "opt_callback"], ["tag"], ["requestedId", "opt_callback"], ["opt_count", "opt_callback"], ["id", "opt_callback"],
|
|
27135
|
+
["value", "opt_path", "opt_force", "opt_properties", "opt_callback"], ["obj", "opt_callback"], ["params", "opt_callback"], ["tag"], ["taskId", "opt_callback"], ["params", "opt_callback"], ["opt_resetDefault"], ["params", "opt_callback"], ["assetId", "asset", "updateFields", "opt_callback"], ["taskId", "opt_callback"], ["params", "opt_callback"], ["taskId", "action", "opt_callback"], ["taskId", "request", "opt_callback"], ["taskId", "params", "opt_callback"], ["path", "opt_force", "opt_callback"],
|
|
27136
|
+
["date", "opt_tz"], ["json"], ["json"], ["json"], ["json"], ["opt_dict"], "opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "), [], ["func", "var_args"], [], [], ["func", "namedArgs"], [], ["var_args"], [], ["geometry", "opt_properties"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["opt_callback"], ["propertySelectors", "opt_newProperties", "opt_retainGeometry"], ["args",
|
|
27137
|
+
"opt_column"], ["opt_visParams", "opt_callback"], ["opt_format", "opt_selectors", "opt_filename", "opt_callback"], ["var_args"], ["name", "value"], ["opt_leftField", "opt_rightValue", "opt_rightField", "opt_leftValue"], ["name", "value"], ["name", "value"], ["var_args"], ["name", "value"], ["name", "value"], [], ["name", "value"], ["opt_filter"], ["start", "opt_end"], ["name", "operator", "value"], ["geometry", "opt_errorMargin"], ["var_args"], ["namedArgs"], ["coords", "opt_proj", "opt_geodesic",
|
|
27138
|
+
"opt_maxError"], [], ["west", "south", "east", "north"], [], ["coords", "opt_proj"], ["geoJson", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj"], ["legacy"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["opt_callback"],
|
|
27139
|
+
["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["var_args"], ["expression", "opt_map"], ["geometry"], ["r", "g", "b"], ["params", "opt_callback"], ["var_args"], ["opt_args"], ["params", "opt_callback"], ["var_args"], ["params", "opt_callback"], ["params", "opt_callback"], ["opt_callback"], ["selectors", "opt_names"], ["opt_visParams", "opt_callback"], ["params", "opt_callback"], ["opt_visParams", "opt_callback"], ["imageCollection", "opt_linkedBands", "opt_linkedProperties",
|
|
27140
|
+
"opt_matchPropertyName"], ["args"], [], ["list"], ["number"], ["obj"], ["obj"], ["obj", "opt_isCompound"], ["obj"], ["obj"], ["obj"], ["obj"], ["string"], []];
|
|
27141
|
+
[ee.ApiFunction._apply, ee.ApiFunction.lookup, ee.ApiFunction._call, module$contents$ee$batch_Export.videoMap.toCloudStorage, module$contents$ee$batch_Export.table.toBigQuery, module$contents$ee$batch_Export.image.toCloudStorage, module$contents$ee$batch_Export.video.toCloudStorage, module$contents$ee$batch_Export.table.toFeatureView, module$contents$ee$batch_Export.video.toDrive, module$contents$ee$batch_Export.table.toDrive, module$contents$ee$batch_Export.image.toDrive, module$contents$ee$batch_Export.table.toCloudStorage,
|
|
27142
|
+
module$contents$ee$batch_Export.table.toAsset, module$contents$ee$batch_Export.classifier.toAsset, module$contents$ee$batch_Export.image.toAsset, module$contents$ee$batch_Export.map.toCloudStorage, ee.Collection.prototype.map, ee.Collection.prototype.iterate, ee.Collection.prototype.filter, ee.Collection.prototype.limit, ee.Collection.prototype.sort, ee.Collection.prototype.filterMetadata, ee.Collection.prototype.filterBounds, ee.Collection.prototype.filterDate, ee.ComputedObject.prototype.getInfo,
|
|
27143
|
+
ee.ComputedObject.prototype.serialize, ee.ComputedObject.prototype.aside, ee.ComputedObject.prototype.evaluate, ee.data.setAssetAcl, ee.data.makeThumbUrl, ee.data.authenticateViaOauth, ee.data.listAssets, ee.data.renameAsset, ee.data.getMapId, ee.data.setAssetProperties, ee.data.getTaskList, ee.data.getTableDownloadId, ee.data.authenticate, ee.data.copyAsset, ee.data.getTileUrl, ee.data.listBuckets, ee.data.makeTableDownloadUrl, ee.data.getAssetRootQuota, ee.data.getTaskListWithLimit, ee.data.cancelOperation,
|
|
27144
|
+
ee.data.deleteAsset, ee.data.startTableIngestion, ee.data.listOperations, ee.data.getDownloadId, ee.data.makeDownloadUrl, ee.data.getWorkloadTag, ee.data.listImages, ee.data.getAssetAcl, ee.data.authenticateViaPopup, ee.data.getFeatureViewTilesKey, ee.data.listFeatures, ee.data.getAsset, ee.data.getAssetRoots, ee.data.authenticateViaPrivateKey, ee.data.getOperation, ee.data.setWorkloadTag, ee.data.createAssetHome, ee.data.newTaskId, ee.data.getInfo, ee.data.createAsset, ee.data.computeValue, ee.data.getThumbId,
|
|
27145
|
+
ee.data.setDefaultWorkloadTag, ee.data.cancelTask, ee.data.getVideoThumbId, ee.data.resetWorkloadTag, ee.data.getFilmstripThumbId, ee.data.updateAsset, ee.data.getTaskStatus, ee.data.getList, ee.data.updateTask, ee.data.startIngestion, ee.data.startProcessing, ee.data.createFolder, ee.Date, ee.Deserializer.fromCloudApiJSON, ee.Deserializer.fromJSON, ee.Deserializer.decode, ee.Deserializer.decodeCloudApi, ee.Dictionary, ee.initialize, ee.reset, ee.call, ee.Algorithms, ee.InitState, ee.apply, ee.TILE_SIZE,
|
|
27146
|
+
ee.Element.prototype.set, ee.Encodable.SourceFrame, ee.Feature, ee.Feature.prototype.getInfo, ee.Feature.prototype.getMapId, ee.Feature.prototype.getMap, ee.FeatureCollection.prototype.getMap, ee.FeatureCollection.prototype.getInfo, ee.FeatureCollection.prototype.select, ee.FeatureCollection, ee.FeatureCollection.prototype.getMapId, ee.FeatureCollection.prototype.getDownloadURL, ee.Filter.and, ee.Filter.gt, ee.Filter.inList, ee.Filter.neq, ee.Filter.lt, ee.Filter.or, ee.Filter.lte, ee.Filter.gte,
|
|
27147
|
+
ee.Filter.prototype.not, ee.Filter.eq, ee.Filter, ee.Filter.date, ee.Filter.metadata, ee.Filter.bounds, ee.Function.prototype.call, ee.Function.prototype.apply, ee.Geometry.LinearRing, ee.Geometry.prototype.toGeoJSON, ee.Geometry.BBox, ee.Geometry.prototype.toGeoJSONString, ee.Geometry.MultiPoint, ee.Geometry, ee.Geometry.Rectangle, ee.Geometry.LineString, ee.Geometry.Polygon, ee.Geometry.Point, ee.Geometry.prototype.serialize, ee.Geometry.MultiPolygon, ee.Geometry.MultiLineString, ee.Image.prototype.getInfo,
|
|
27148
|
+
ee.Image.prototype.getMapId, ee.Image.prototype.getMap, ee.Image.prototype.rename, ee.Image.prototype.expression, ee.Image.prototype.clip, ee.Image.rgb, ee.Image.prototype.getThumbURL, ee.Image.cat, ee.Image, ee.Image.prototype.getDownloadURL, ee.Image.prototype.select, ee.Image.prototype.getThumbId, ee.ImageCollection.prototype.getVideoThumbURL, ee.ImageCollection.prototype.getInfo, ee.ImageCollection.prototype.select, ee.ImageCollection.prototype.getMapId, ee.ImageCollection.prototype.getFilmstripThumbURL,
|
|
27149
|
+
ee.ImageCollection.prototype.getMap, ee.ImageCollection.prototype.linkCollection, ee.ImageCollection, ee.ImageCollection.prototype.first, ee.List, ee.Number, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.encodeCloudApiPretty, ee.Serializer.encode, ee.Serializer.toJSON, ee.Serializer.encodeCloudApi, ee.Serializer.toCloudApiJSON, ee.Serializer.toReadableJSON, ee.String, ee.Terrain].forEach(function(fn, i) {
|
|
27055
27150
|
fn && (exportedFnInfo[fn.toString()] = {name:orderedFnNames[i], paramNames:orderedParamLists[i]});
|
|
27056
27151
|
});
|
|
27057
27152
|
goog.global.EXPORTED_FN_INFO = exportedFnInfo;
|