@google/earthengine 0.1.379 → 0.1.382
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/.tmp/BUILD +2 -2
- package/.tmp/METADATA +5 -5
- package/.tmp/VERSION_BUILD +2 -2
- package/build/browser.js +317 -216
- package/build/ee_api_js.js +501 -500
- package/build/ee_api_js_debug.js +295 -194
- package/build/ee_api_js_npm.js +317 -216
- package/build/main.js +317 -216
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/feature.js +25 -7
- package/src/featurecollection.js +29 -11
- package/src/image.js +18 -2
- package/src/imagecollection.js +24 -7
- package/test/ee_test.js +2 -2
package/build/ee_api_js_debug.js
CHANGED
|
@@ -2453,8 +2453,7 @@ goog.debug.normalizeErrorObject = function(err) {
|
|
|
2453
2453
|
}
|
|
2454
2454
|
return {message:message, name:err.name || "UnknownError", lineNumber:lineNumber, fileName:fileName, stack:stack || "Not available"};
|
|
2455
2455
|
}
|
|
2456
|
-
err.
|
|
2457
|
-
return {message:err.message, name:err.name, lineNumber:err.lineNumber, fileName:err.fileName, stack:err.stack};
|
|
2456
|
+
return {message:err.message, name:err.name, lineNumber:err.lineNumber, fileName:err.fileName, stack:stack};
|
|
2458
2457
|
};
|
|
2459
2458
|
goog.debug.serializeErrorStack_ = function(e, seen) {
|
|
2460
2459
|
seen || (seen = {});
|
|
@@ -6062,7 +6061,7 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
6062
6061
|
};
|
|
6063
6062
|
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;
|
|
6064
6063
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
6065
|
-
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 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$key = $jscomp$iter$19.next(), $jscomp$loop$
|
|
6064
|
+
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 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$key = $jscomp$iter$19.next(), $jscomp$loop$m1892927425$0 = {}; !$jscomp$key$key.done; $jscomp$loop$m1892927425$0 = {mapMetadata:$jscomp$loop$m1892927425$0.mapMetadata},
|
|
6066
6065
|
$jscomp$key$key = $jscomp$iter$19.next()) {
|
|
6067
6066
|
var key = $jscomp$key$key.value, value = valueGetter(key, source);
|
|
6068
6067
|
if (null != value) {
|
|
@@ -6075,11 +6074,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
6075
6074
|
} else if (objects.hasOwnProperty(key)) {
|
|
6076
6075
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
6077
6076
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
6078
|
-
$jscomp$loop$
|
|
6077
|
+
$jscomp$loop$m1892927425$0.mapMetadata = objectMaps[key], copy = $jscomp$loop$m1892927425$0.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m1892927425$0) {
|
|
6079
6078
|
return function(v) {
|
|
6080
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
6079
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m1892927425$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6081
6080
|
};
|
|
6082
|
-
}($jscomp$loop$
|
|
6081
|
+
}($jscomp$loop$m1892927425$0)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m1892927425$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6083
6082
|
} else if (Array.isArray(value)) {
|
|
6084
6083
|
if (metadata.emptyArrayIsUnset && 0 === value.length) {
|
|
6085
6084
|
continue;
|
|
@@ -6125,39 +6124,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
6125
6124
|
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))) {
|
|
6126
6125
|
return !1;
|
|
6127
6126
|
}
|
|
6128
|
-
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$
|
|
6127
|
+
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$m1892927425$1 = {}; !$jscomp$key$key.done; $jscomp$loop$m1892927425$1 = {value2$jscomp$7:$jscomp$loop$m1892927425$1.value2$jscomp$7, mapMetadata$jscomp$2:$jscomp$loop$m1892927425$1.mapMetadata$jscomp$2}, $jscomp$key$key = $jscomp$iter$21.next()) {
|
|
6129
6128
|
var key = $jscomp$key$key.value, has1 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable1, key, metadata1), has2 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable2, key, metadata2);
|
|
6130
6129
|
if (has1 !== has2) {
|
|
6131
6130
|
return !1;
|
|
6132
6131
|
}
|
|
6133
6132
|
if (has1) {
|
|
6134
6133
|
var value1 = serializable1.Serializable$get(key);
|
|
6135
|
-
$jscomp$loop$
|
|
6134
|
+
$jscomp$loop$m1892927425$1.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
6136
6135
|
if (arrays1.hasOwnProperty(key)) {
|
|
6137
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6136
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$1.value2$jscomp$7, !0, !0)) {
|
|
6138
6137
|
return !1;
|
|
6139
6138
|
}
|
|
6140
6139
|
} else if (objects1.hasOwnProperty(key)) {
|
|
6141
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6140
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$1.value2$jscomp$7, !1, !0)) {
|
|
6142
6141
|
return !1;
|
|
6143
6142
|
}
|
|
6144
6143
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
6145
|
-
if ($jscomp$loop$
|
|
6146
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
6144
|
+
if ($jscomp$loop$m1892927425$1.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m1892927425$1.mapMetadata$jscomp$2.isPropertyArray) {
|
|
6145
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m1892927425$1.value2$jscomp$7) || value1.some(function($jscomp$loop$m1892927425$1) {
|
|
6147
6146
|
return function(v1, i) {
|
|
6148
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
6147
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m1892927425$1.value2$jscomp$7[i], $jscomp$loop$m1892927425$1.mapMetadata$jscomp$2);
|
|
6149
6148
|
};
|
|
6150
|
-
}($jscomp$loop$
|
|
6149
|
+
}($jscomp$loop$m1892927425$1))) {
|
|
6151
6150
|
return !1;
|
|
6152
6151
|
}
|
|
6153
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
6152
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m1892927425$1.value2$jscomp$7, $jscomp$loop$m1892927425$1.mapMetadata$jscomp$2)) {
|
|
6154
6153
|
return !1;
|
|
6155
6154
|
}
|
|
6156
6155
|
} else if (Array.isArray(value1)) {
|
|
6157
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6156
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$1.value2$jscomp$7, !0, !1)) {
|
|
6158
6157
|
return !1;
|
|
6159
6158
|
}
|
|
6160
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6159
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$1.value2$jscomp$7, !1, !1)) {
|
|
6161
6160
|
return !1;
|
|
6162
6161
|
}
|
|
6163
6162
|
}
|
|
@@ -7362,37 +7361,151 @@ module$contents$goog$html$SafeHtml_SafeHtml.BR = function() {
|
|
|
7362
7361
|
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>");
|
|
7363
7362
|
}();
|
|
7364
7363
|
goog.html.SafeHtml = module$contents$goog$html$SafeHtml_SafeHtml;
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
};
|
|
7371
|
-
goog
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
goog
|
|
7377
|
-
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
return goog
|
|
7390
|
-
}
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7364
|
+
/*
|
|
7365
|
+
|
|
7366
|
+
SPDX-License-Identifier: Apache-2.0
|
|
7367
|
+
*/
|
|
7368
|
+
var module$contents$safevalues$environment$dev_module = module$contents$safevalues$environment$dev_module || {id:"third_party/javascript/safevalues/environment/dev.closure.js"};
|
|
7369
|
+
var module$exports$goog$html$internals = {};
|
|
7370
|
+
module$exports$goog$html$internals.createSafeHtml = module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse;
|
|
7371
|
+
module$exports$goog$html$internals.createSafeScript = module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse;
|
|
7372
|
+
module$exports$goog$html$internals.createSafeStyle = module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse;
|
|
7373
|
+
module$exports$goog$html$internals.createSafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse;
|
|
7374
|
+
module$exports$goog$html$internals.createSafeUrl = goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse;
|
|
7375
|
+
module$exports$goog$html$internals.createTrustedResourceUrl = goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse;
|
|
7376
|
+
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"};
|
|
7377
|
+
module$exports$safevalues$internals$html_impl.SafeHtml = module$contents$goog$html$SafeHtml_SafeHtml;
|
|
7378
|
+
function module$contents$safevalues$internals$html_impl_createHtmlInternal(html) {
|
|
7379
|
+
return (0,module$exports$goog$html$internals.createSafeHtml)(html);
|
|
7380
|
+
}
|
|
7381
|
+
module$exports$safevalues$internals$html_impl.createHtmlInternal = module$contents$safevalues$internals$html_impl_createHtmlInternal;
|
|
7382
|
+
module$exports$safevalues$internals$html_impl.EMPTY_HTML = module$contents$goog$html$SafeHtml_SafeHtml.EMPTY;
|
|
7383
|
+
function module$contents$safevalues$internals$html_impl_isHtml(value) {
|
|
7384
|
+
return value instanceof module$contents$goog$html$SafeHtml_SafeHtml;
|
|
7385
|
+
}
|
|
7386
|
+
module$exports$safevalues$internals$html_impl.isHtml = module$contents$safevalues$internals$html_impl_isHtml;
|
|
7387
|
+
function module$contents$safevalues$internals$html_impl_unwrapHtml(value) {
|
|
7388
|
+
return module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(value);
|
|
7389
|
+
}
|
|
7390
|
+
module$exports$safevalues$internals$html_impl.unwrapHtml = module$contents$safevalues$internals$html_impl_unwrapHtml;
|
|
7391
|
+
var module$exports$safevalues$internals$resource_url_impl = {}, module$contents$safevalues$internals$resource_url_impl_module = module$contents$safevalues$internals$resource_url_impl_module || {id:"third_party/javascript/safevalues/internals/resource_url_impl.closure.js"};
|
|
7392
|
+
module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl = goog.html.TrustedResourceUrl;
|
|
7393
|
+
function module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(url) {
|
|
7394
|
+
return (0,goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse)(url);
|
|
7395
|
+
}
|
|
7396
|
+
module$exports$safevalues$internals$resource_url_impl.createResourceUrlInternal = module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal;
|
|
7397
|
+
function module$contents$safevalues$internals$resource_url_impl_isResourceUrl(value) {
|
|
7398
|
+
return value instanceof goog.html.TrustedResourceUrl;
|
|
7399
|
+
}
|
|
7400
|
+
module$exports$safevalues$internals$resource_url_impl.isResourceUrl = module$contents$safevalues$internals$resource_url_impl_isResourceUrl;
|
|
7401
|
+
function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(value) {
|
|
7402
|
+
return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(value);
|
|
7403
|
+
}
|
|
7404
|
+
module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
7405
|
+
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"};
|
|
7406
|
+
module$exports$safevalues$internals$script_impl.SafeScript = module$contents$goog$html$SafeScript_SafeScript;
|
|
7407
|
+
function module$contents$safevalues$internals$script_impl_createScriptInternal(script) {
|
|
7408
|
+
return (0,module$exports$goog$html$internals.createSafeScript)(script);
|
|
7409
|
+
}
|
|
7410
|
+
module$exports$safevalues$internals$script_impl.createScriptInternal = module$contents$safevalues$internals$script_impl_createScriptInternal;
|
|
7411
|
+
module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT = module$contents$goog$html$SafeScript_SafeScript.EMPTY;
|
|
7412
|
+
function module$contents$safevalues$internals$script_impl_isScript(value) {
|
|
7413
|
+
return value instanceof module$contents$goog$html$SafeScript_SafeScript;
|
|
7414
|
+
}
|
|
7415
|
+
module$exports$safevalues$internals$script_impl.isScript = module$contents$safevalues$internals$script_impl_isScript;
|
|
7416
|
+
function module$contents$safevalues$internals$script_impl_unwrapScript(value) {
|
|
7417
|
+
return module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript(value);
|
|
7418
|
+
}
|
|
7419
|
+
module$exports$safevalues$internals$script_impl.unwrapScript = module$contents$safevalues$internals$script_impl_unwrapScript;
|
|
7420
|
+
var module$exports$safevalues$internals$style_impl = {}, module$contents$safevalues$internals$style_impl_module = module$contents$safevalues$internals$style_impl_module || {id:"third_party/javascript/safevalues/internals/style_impl.closure.js"};
|
|
7421
|
+
module$exports$safevalues$internals$style_impl.SafeStyle = module$contents$goog$html$SafeStyle_SafeStyle;
|
|
7422
|
+
function module$contents$safevalues$internals$style_impl_createStyleInternal(style) {
|
|
7423
|
+
return (0,module$exports$goog$html$internals.createSafeStyle)(style);
|
|
7424
|
+
}
|
|
7425
|
+
module$exports$safevalues$internals$style_impl.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
|
|
7426
|
+
function module$contents$safevalues$internals$style_impl_isStyle(value) {
|
|
7427
|
+
return value instanceof module$contents$goog$html$SafeStyle_SafeStyle;
|
|
7428
|
+
}
|
|
7429
|
+
module$exports$safevalues$internals$style_impl.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
|
|
7430
|
+
function module$contents$safevalues$internals$style_impl_unwrapStyle(value) {
|
|
7431
|
+
return module$contents$goog$html$SafeStyle_SafeStyle.unwrap(value);
|
|
7432
|
+
}
|
|
7433
|
+
module$exports$safevalues$internals$style_impl.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
7434
|
+
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"};
|
|
7435
|
+
module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
|
|
7436
|
+
function module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheet) {
|
|
7437
|
+
return (0,module$exports$goog$html$internals.createSafeStyleSheet)(styleSheet);
|
|
7438
|
+
}
|
|
7439
|
+
module$exports$safevalues$internals$style_sheet_impl.createStyleSheetInternal = module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal;
|
|
7440
|
+
function module$contents$safevalues$internals$style_sheet_impl_isStyleSheet(value) {
|
|
7441
|
+
return value instanceof module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
|
|
7442
|
+
}
|
|
7443
|
+
module$exports$safevalues$internals$style_sheet_impl.isStyleSheet = module$contents$safevalues$internals$style_sheet_impl_isStyleSheet;
|
|
7444
|
+
function module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet(value) {
|
|
7445
|
+
return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(value);
|
|
7446
|
+
}
|
|
7447
|
+
module$exports$safevalues$internals$style_sheet_impl.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
|
|
7448
|
+
var module$exports$safevalues$internals$url_impl = {}, module$contents$safevalues$internals$url_impl_module = module$contents$safevalues$internals$url_impl_module || {id:"third_party/javascript/safevalues/internals/url_impl.closure.js"};
|
|
7449
|
+
module$exports$safevalues$internals$url_impl.SafeUrl = goog.html.SafeUrl;
|
|
7450
|
+
function module$contents$safevalues$internals$url_impl_createUrlInternal(url) {
|
|
7451
|
+
return (0,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse)(url);
|
|
7452
|
+
}
|
|
7453
|
+
module$exports$safevalues$internals$url_impl.createUrlInternal = module$contents$safevalues$internals$url_impl_createUrlInternal;
|
|
7454
|
+
module$exports$safevalues$internals$url_impl.ABOUT_BLANK = goog.html.SafeUrl.ABOUT_BLANK;
|
|
7455
|
+
module$exports$safevalues$internals$url_impl.INNOCUOUS_URL = goog.html.SafeUrl.INNOCUOUS_URL;
|
|
7456
|
+
function module$contents$safevalues$internals$url_impl_isUrl(value) {
|
|
7457
|
+
return value instanceof goog.html.SafeUrl;
|
|
7458
|
+
}
|
|
7459
|
+
module$exports$safevalues$internals$url_impl.isUrl = module$contents$safevalues$internals$url_impl_isUrl;
|
|
7460
|
+
function module$contents$safevalues$internals$url_impl_unwrapUrl(value) {
|
|
7461
|
+
return goog.html.SafeUrl.unwrap(value);
|
|
7462
|
+
}
|
|
7463
|
+
module$exports$safevalues$internals$url_impl.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
7464
|
+
var module$exports$safevalues$restricted$reviewed = {}, module$contents$safevalues$restricted$reviewed_module = module$contents$safevalues$restricted$reviewed_module || {id:"third_party/javascript/safevalues/restricted/reviewed.closure.js"};
|
|
7465
|
+
function module$contents$safevalues$restricted$reviewed_assertValidJustification(justification) {
|
|
7466
|
+
if ("string" !== typeof justification || "" === justification.trim()) {
|
|
7467
|
+
var errMsg;
|
|
7468
|
+
throw Error("Calls to uncheckedconversion functions must go through security review. A justification must be provided to capture what security assumptions are being made. See go/unchecked-conversions");
|
|
7469
|
+
}
|
|
7470
|
+
}
|
|
7471
|
+
function module$contents$safevalues$restricted$reviewed_htmlSafeByReview(html, justification) {
|
|
7472
|
+
goog.DEBUG && module$contents$safevalues$restricted$reviewed_assertValidJustification(justification);
|
|
7473
|
+
return module$contents$safevalues$internals$html_impl_createHtmlInternal(html);
|
|
7474
|
+
}
|
|
7475
|
+
module$exports$safevalues$restricted$reviewed.htmlSafeByReview = module$contents$safevalues$restricted$reviewed_htmlSafeByReview;
|
|
7476
|
+
function module$contents$safevalues$restricted$reviewed_scriptSafeByReview(script, justification) {
|
|
7477
|
+
goog.DEBUG && module$contents$safevalues$restricted$reviewed_assertValidJustification(justification);
|
|
7478
|
+
return module$contents$safevalues$internals$script_impl_createScriptInternal(script);
|
|
7479
|
+
}
|
|
7480
|
+
module$exports$safevalues$restricted$reviewed.scriptSafeByReview = module$contents$safevalues$restricted$reviewed_scriptSafeByReview;
|
|
7481
|
+
function module$contents$safevalues$restricted$reviewed_resourceUrlSafeByReview(url, justification) {
|
|
7482
|
+
goog.DEBUG && module$contents$safevalues$restricted$reviewed_assertValidJustification(justification);
|
|
7483
|
+
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(url);
|
|
7484
|
+
}
|
|
7485
|
+
module$exports$safevalues$restricted$reviewed.resourceUrlSafeByReview = module$contents$safevalues$restricted$reviewed_resourceUrlSafeByReview;
|
|
7486
|
+
function module$contents$safevalues$restricted$reviewed_urlSafeByReview(url, justification) {
|
|
7487
|
+
goog.DEBUG && module$contents$safevalues$restricted$reviewed_assertValidJustification(justification);
|
|
7488
|
+
return module$contents$safevalues$internals$url_impl_createUrlInternal(url);
|
|
7489
|
+
}
|
|
7490
|
+
module$exports$safevalues$restricted$reviewed.urlSafeByReview = module$contents$safevalues$restricted$reviewed_urlSafeByReview;
|
|
7491
|
+
function module$contents$safevalues$restricted$reviewed_styleSafeByReview(style, justification) {
|
|
7492
|
+
goog.DEBUG && module$contents$safevalues$restricted$reviewed_assertValidJustification(justification);
|
|
7493
|
+
return module$contents$safevalues$internals$style_impl_createStyleInternal(style);
|
|
7494
|
+
}
|
|
7495
|
+
module$exports$safevalues$restricted$reviewed.styleSafeByReview = module$contents$safevalues$restricted$reviewed_styleSafeByReview;
|
|
7496
|
+
function module$contents$safevalues$restricted$reviewed_styleSheetSafeByReview(stylesheet, justification) {
|
|
7497
|
+
goog.DEBUG && module$contents$safevalues$restricted$reviewed_assertValidJustification(justification);
|
|
7498
|
+
return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(stylesheet);
|
|
7499
|
+
}
|
|
7500
|
+
module$exports$safevalues$restricted$reviewed.styleSheetSafeByReview = module$contents$safevalues$restricted$reviewed_styleSheetSafeByReview;
|
|
7501
|
+
var safevalues = {restricted:{}};
|
|
7502
|
+
safevalues.restricted.reviewed = {};
|
|
7503
|
+
safevalues.restricted.reviewed.htmlSafeByReview = module$contents$safevalues$restricted$reviewed_htmlSafeByReview;
|
|
7504
|
+
safevalues.restricted.reviewed.scriptSafeByReview = module$contents$safevalues$restricted$reviewed_scriptSafeByReview;
|
|
7505
|
+
safevalues.restricted.reviewed.resourceUrlSafeByReview = module$contents$safevalues$restricted$reviewed_resourceUrlSafeByReview;
|
|
7506
|
+
safevalues.restricted.reviewed.urlSafeByReview = module$contents$safevalues$restricted$reviewed_urlSafeByReview;
|
|
7507
|
+
safevalues.restricted.reviewed.styleSafeByReview = module$contents$safevalues$restricted$reviewed_styleSafeByReview;
|
|
7508
|
+
safevalues.restricted.reviewed.styleSheetSafeByReview = module$contents$safevalues$restricted$reviewed_styleSheetSafeByReview;
|
|
7396
7509
|
goog.dom.safe = {};
|
|
7397
7510
|
goog.dom.safe.InsertAdjacentHtmlPosition = {AFTERBEGIN:"afterbegin", AFTEREND:"afterend", BEFOREBEGIN:"beforebegin", BEFOREEND:"beforeend"};
|
|
7398
7511
|
goog.dom.safe.insertAdjacentHtml = function(node, position, html) {
|
|
@@ -7428,7 +7541,7 @@ goog.dom.safe.setInnerHtml = function(elem, html) {
|
|
|
7428
7541
|
goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(elem, html);
|
|
7429
7542
|
};
|
|
7430
7543
|
goog.dom.safe.setInnerHtmlFromConstant = function(element, constHtml) {
|
|
7431
|
-
goog.dom.safe.setInnerHtml(element,
|
|
7544
|
+
goog.dom.safe.setInnerHtml(element, module$contents$safevalues$restricted$reviewed_htmlSafeByReview(goog.string.Const.unwrap(constHtml), "Constant HTML to be immediatelly used."));
|
|
7432
7545
|
};
|
|
7433
7546
|
goog.dom.safe.setOuterHtml = function(elem, html) {
|
|
7434
7547
|
elem.outerHTML = module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html);
|
|
@@ -7702,7 +7815,7 @@ goog.string.unescapeEntitiesUsingDom_ = function(str, opt_document) {
|
|
|
7702
7815
|
var n = Number("0" + entity.slice(1));
|
|
7703
7816
|
isNaN(n) || (value = String.fromCharCode(n));
|
|
7704
7817
|
}
|
|
7705
|
-
value || (goog.dom.safe.setInnerHtml(div,
|
|
7818
|
+
value || (goog.dom.safe.setInnerHtml(div, module$contents$safevalues$restricted$reviewed_htmlSafeByReview(s + " ", "Single HTML entity.")), value = div.firstChild.nodeValue.slice(0, -1));
|
|
7706
7819
|
return seen[s] = value;
|
|
7707
7820
|
});
|
|
7708
7821
|
};
|
|
@@ -14901,7 +15014,7 @@ goog.dom.createTable_ = function(doc, rows, columns, fillWithNbsp) {
|
|
|
14901
15014
|
return table;
|
|
14902
15015
|
};
|
|
14903
15016
|
goog.dom.constHtmlToNode = function(var_args) {
|
|
14904
|
-
var stringArray = Array.prototype.map.call(arguments, goog.string.Const.unwrap), safeHtml =
|
|
15017
|
+
var stringArray = Array.prototype.map.call(arguments, goog.string.Const.unwrap), safeHtml = module$contents$safevalues$restricted$reviewed_htmlSafeByReview(stringArray.join(""), "Constant HTML string, that gets turned into a Node later, so it will be automatically balanced.");
|
|
14905
15018
|
return goog.dom.safeHtmlToNode(safeHtml);
|
|
14906
15019
|
};
|
|
14907
15020
|
goog.dom.safeHtmlToNode = function(html) {
|
|
@@ -17393,13 +17506,8 @@ goog.net.XhrIo.prototype.formatMsg_ = function(msg) {
|
|
|
17393
17506
|
goog.debug.entryPointRegistry.register(function(transformer) {
|
|
17394
17507
|
goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_ = transformer(goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_);
|
|
17395
17508
|
});
|
|
17396
|
-
/*
|
|
17397
|
-
|
|
17398
|
-
SPDX-License-Identifier: Apache-2.0
|
|
17399
|
-
*/
|
|
17400
17509
|
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"};
|
|
17401
17510
|
module$exports$safevalues$builders$sensitive_attributes.SECURITY_SENSITIVE_ATTRIBUTES = "src srcdoc codebase data href rel action formaction sandbox cite poster icon".split(" ");
|
|
17402
|
-
var module$contents$safevalues$environment$dev_module = module$contents$safevalues$environment$dev_module || {id:"third_party/javascript/safevalues/environment/dev.closure.js"};
|
|
17403
17511
|
var module$exports$safevalues$internals$secrets = {}, module$contents$safevalues$internals$secrets_module = module$contents$safevalues$internals$secrets_module || {id:"third_party/javascript/safevalues/internals/secrets.closure.js"};
|
|
17404
17512
|
module$exports$safevalues$internals$secrets.secretToken = {};
|
|
17405
17513
|
function module$contents$safevalues$internals$secrets_ensureTokenIsValid(token) {
|
|
@@ -17432,8 +17540,8 @@ function module$contents$safevalues$internals$attribute_impl_unwrapAttributePref
|
|
|
17432
17540
|
throw Error(message);
|
|
17433
17541
|
}
|
|
17434
17542
|
module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
|
|
17435
|
-
var $jscomp$templatelit$
|
|
17436
|
-
["\\0"]), $jscomp$templatelit$
|
|
17543
|
+
var $jscomp$templatelit$m425881384$0 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$m425881384$1 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$m425881384$2 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$m425881384$3 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$m425881384$4 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$m425881384$5 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
|
|
17544
|
+
["\\0"]), $jscomp$templatelit$m425881384$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$m425881384$7 = $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"};
|
|
17437
17545
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
17438
17546
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
17439
17547
|
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 ##############################");
|
|
@@ -17447,14 +17555,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
17447
17555
|
return -1 === fn.toString().indexOf("`");
|
|
17448
17556
|
}
|
|
17449
17557
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
17450
|
-
return tag($jscomp$templatelit$
|
|
17558
|
+
return tag($jscomp$templatelit$m425881384$0);
|
|
17451
17559
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
17452
|
-
return tag($jscomp$templatelit$
|
|
17560
|
+
return tag($jscomp$templatelit$m425881384$1);
|
|
17453
17561
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
17454
|
-
return tag($jscomp$templatelit$
|
|
17562
|
+
return tag($jscomp$templatelit$m425881384$2);
|
|
17455
17563
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
17456
|
-
return tag($jscomp$templatelit$
|
|
17457
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
17564
|
+
return tag($jscomp$templatelit$m425881384$3);
|
|
17565
|
+
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$4) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$5) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$6) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$7);
|
|
17458
17566
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
17459
17567
|
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)) ?
|
|
17460
17568
|
!0 : !1;
|
|
@@ -17475,29 +17583,7 @@ function module$contents$safevalues$builders$attribute_builders_safeAttrPrefix(t
|
|
|
17475
17583
|
}
|
|
17476
17584
|
return module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal(attrPrefix);
|
|
17477
17585
|
}
|
|
17478
|
-
;var module$
|
|
17479
|
-
module$exports$goog$html$internals.createSafeHtml = module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse;
|
|
17480
|
-
module$exports$goog$html$internals.createSafeScript = module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse;
|
|
17481
|
-
module$exports$goog$html$internals.createSafeStyle = module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse;
|
|
17482
|
-
module$exports$goog$html$internals.createSafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse;
|
|
17483
|
-
module$exports$goog$html$internals.createSafeUrl = goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse;
|
|
17484
|
-
module$exports$goog$html$internals.createTrustedResourceUrl = goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse;
|
|
17485
|
-
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"};
|
|
17486
|
-
module$exports$safevalues$internals$html_impl.SafeHtml = module$contents$goog$html$SafeHtml_SafeHtml;
|
|
17487
|
-
function module$contents$safevalues$internals$html_impl_createHtmlInternal(html) {
|
|
17488
|
-
return (0,module$exports$goog$html$internals.createSafeHtml)(html);
|
|
17489
|
-
}
|
|
17490
|
-
module$exports$safevalues$internals$html_impl.createHtmlInternal = module$contents$safevalues$internals$html_impl_createHtmlInternal;
|
|
17491
|
-
module$exports$safevalues$internals$html_impl.EMPTY_HTML = module$contents$goog$html$SafeHtml_SafeHtml.EMPTY;
|
|
17492
|
-
function module$contents$safevalues$internals$html_impl_isHtml(value) {
|
|
17493
|
-
return value instanceof module$contents$goog$html$SafeHtml_SafeHtml;
|
|
17494
|
-
}
|
|
17495
|
-
module$exports$safevalues$internals$html_impl.isHtml = module$contents$safevalues$internals$html_impl_isHtml;
|
|
17496
|
-
function module$contents$safevalues$internals$html_impl_unwrapHtml(value) {
|
|
17497
|
-
return module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(value);
|
|
17498
|
-
}
|
|
17499
|
-
module$exports$safevalues$internals$html_impl.unwrapHtml = module$contents$safevalues$internals$html_impl_unwrapHtml;
|
|
17500
|
-
var module$contents$safevalues$builders$document_fragment_builders_module = module$contents$safevalues$builders$document_fragment_builders_module || {id:"third_party/javascript/safevalues/builders/document_fragment_builders.closure.js"};
|
|
17586
|
+
;var module$contents$safevalues$builders$document_fragment_builders_module = module$contents$safevalues$builders$document_fragment_builders_module || {id:"third_party/javascript/safevalues/builders/document_fragment_builders.closure.js"};
|
|
17501
17587
|
function module$contents$safevalues$builders$document_fragment_builders_safeFragment(templateObj) {
|
|
17502
17588
|
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, 0);
|
|
17503
17589
|
return document.createRange().createContextualFragment(module$contents$safevalues$internals$html_impl_unwrapHtml(module$contents$safevalues$internals$html_impl_createHtmlInternal(templateObj[0])));
|
|
@@ -17506,37 +17592,7 @@ function module$contents$safevalues$builders$document_fragment_builders_safeFrag
|
|
|
17506
17592
|
function module$contents$safevalues$internals$pure_pure(valueOf) {
|
|
17507
17593
|
return {valueOf:valueOf}.valueOf();
|
|
17508
17594
|
}
|
|
17509
|
-
;var module$exports$safevalues$
|
|
17510
|
-
module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl = goog.html.TrustedResourceUrl;
|
|
17511
|
-
function module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(url) {
|
|
17512
|
-
return (0,goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse)(url);
|
|
17513
|
-
}
|
|
17514
|
-
module$exports$safevalues$internals$resource_url_impl.createResourceUrlInternal = module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal;
|
|
17515
|
-
function module$contents$safevalues$internals$resource_url_impl_isResourceUrl(value) {
|
|
17516
|
-
return value instanceof goog.html.TrustedResourceUrl;
|
|
17517
|
-
}
|
|
17518
|
-
module$exports$safevalues$internals$resource_url_impl.isResourceUrl = module$contents$safevalues$internals$resource_url_impl_isResourceUrl;
|
|
17519
|
-
function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(value) {
|
|
17520
|
-
return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(value);
|
|
17521
|
-
}
|
|
17522
|
-
module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
17523
|
-
var module$exports$safevalues$internals$url_impl = {}, module$contents$safevalues$internals$url_impl_module = module$contents$safevalues$internals$url_impl_module || {id:"third_party/javascript/safevalues/internals/url_impl.closure.js"};
|
|
17524
|
-
module$exports$safevalues$internals$url_impl.SafeUrl = goog.html.SafeUrl;
|
|
17525
|
-
function module$contents$safevalues$internals$url_impl_createUrlInternal(url) {
|
|
17526
|
-
return (0,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse)(url);
|
|
17527
|
-
}
|
|
17528
|
-
module$exports$safevalues$internals$url_impl.createUrlInternal = module$contents$safevalues$internals$url_impl_createUrlInternal;
|
|
17529
|
-
module$exports$safevalues$internals$url_impl.ABOUT_BLANK = goog.html.SafeUrl.ABOUT_BLANK;
|
|
17530
|
-
module$exports$safevalues$internals$url_impl.INNOCUOUS_URL = goog.html.SafeUrl.INNOCUOUS_URL;
|
|
17531
|
-
function module$contents$safevalues$internals$url_impl_isUrl(value) {
|
|
17532
|
-
return value instanceof goog.html.SafeUrl;
|
|
17533
|
-
}
|
|
17534
|
-
module$exports$safevalues$internals$url_impl.isUrl = module$contents$safevalues$internals$url_impl_isUrl;
|
|
17535
|
-
function module$contents$safevalues$internals$url_impl_unwrapUrl(value) {
|
|
17536
|
-
return goog.html.SafeUrl.unwrap(value);
|
|
17537
|
-
}
|
|
17538
|
-
module$exports$safevalues$internals$url_impl.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
17539
|
-
var module$exports$safevalues$builders$url_builders = {}, module$contents$safevalues$builders$url_builders_module = module$contents$safevalues$builders$url_builders_module || {id:"third_party/javascript/safevalues/builders/url_builders.closure.js"};
|
|
17595
|
+
;var module$exports$safevalues$builders$url_builders = {}, module$contents$safevalues$builders$url_builders_module = module$contents$safevalues$builders$url_builders_module || {id:"third_party/javascript/safevalues/builders/url_builders.closure.js"};
|
|
17540
17596
|
function module$contents$safevalues$builders$url_builders_isSafeMimeType(mimeType) {
|
|
17541
17597
|
var match = mimeType.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i);
|
|
17542
17598
|
return 2 === (null == match ? void 0 : match.length) && (module$contents$safevalues$builders$url_builders_isSafeImageMimeType(match[1]) || module$contents$safevalues$builders$url_builders_isSafeVideoMimeType(match[1]) || module$contents$safevalues$builders$url_builders_isSafeAudioMimeType(match[1]) || module$contents$safevalues$builders$url_builders_isSafeFontMimeType(match[1]));
|
|
@@ -17710,35 +17766,6 @@ function module$contents$safevalues$builders$url_builders_removeJavaScriptUrlSan
|
|
|
17710
17766
|
-1 !== callbackIndex && module$contents$safevalues$builders$url_builders_sanitizationCallbacks.splice(callbackIndex, 1);
|
|
17711
17767
|
}
|
|
17712
17768
|
module$exports$safevalues$builders$url_builders.removeJavaScriptUrlSanitizationCallback = module$contents$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback;
|
|
17713
|
-
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"};
|
|
17714
|
-
module$exports$safevalues$internals$script_impl.SafeScript = module$contents$goog$html$SafeScript_SafeScript;
|
|
17715
|
-
function module$contents$safevalues$internals$script_impl_createScriptInternal(script) {
|
|
17716
|
-
return (0,module$exports$goog$html$internals.createSafeScript)(script);
|
|
17717
|
-
}
|
|
17718
|
-
module$exports$safevalues$internals$script_impl.createScriptInternal = module$contents$safevalues$internals$script_impl_createScriptInternal;
|
|
17719
|
-
module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT = module$contents$goog$html$SafeScript_SafeScript.EMPTY;
|
|
17720
|
-
function module$contents$safevalues$internals$script_impl_isScript(value) {
|
|
17721
|
-
return value instanceof module$contents$goog$html$SafeScript_SafeScript;
|
|
17722
|
-
}
|
|
17723
|
-
module$exports$safevalues$internals$script_impl.isScript = module$contents$safevalues$internals$script_impl_isScript;
|
|
17724
|
-
function module$contents$safevalues$internals$script_impl_unwrapScript(value) {
|
|
17725
|
-
return module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript(value);
|
|
17726
|
-
}
|
|
17727
|
-
module$exports$safevalues$internals$script_impl.unwrapScript = module$contents$safevalues$internals$script_impl_unwrapScript;
|
|
17728
|
-
var module$exports$safevalues$internals$style_impl = {}, module$contents$safevalues$internals$style_impl_module = module$contents$safevalues$internals$style_impl_module || {id:"third_party/javascript/safevalues/internals/style_impl.closure.js"};
|
|
17729
|
-
module$exports$safevalues$internals$style_impl.SafeStyle = module$contents$goog$html$SafeStyle_SafeStyle;
|
|
17730
|
-
function module$contents$safevalues$internals$style_impl_createStyleInternal(style) {
|
|
17731
|
-
return (0,module$exports$goog$html$internals.createSafeStyle)(style);
|
|
17732
|
-
}
|
|
17733
|
-
module$exports$safevalues$internals$style_impl.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
|
|
17734
|
-
function module$contents$safevalues$internals$style_impl_isStyle(value) {
|
|
17735
|
-
return value instanceof module$contents$goog$html$SafeStyle_SafeStyle;
|
|
17736
|
-
}
|
|
17737
|
-
module$exports$safevalues$internals$style_impl.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
|
|
17738
|
-
function module$contents$safevalues$internals$style_impl_unwrapStyle(value) {
|
|
17739
|
-
return module$contents$goog$html$SafeStyle_SafeStyle.unwrap(value);
|
|
17740
|
-
}
|
|
17741
|
-
module$exports$safevalues$internals$style_impl.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
17742
17769
|
var module$exports$safevalues$builders$html_builders = {}, module$contents$safevalues$builders$html_builders_module = module$contents$safevalues$builders$html_builders_module || {id:"third_party/javascript/safevalues/builders/html_builders.closure.js"};
|
|
17743
17770
|
function module$contents$safevalues$builders$html_builders_htmlEscape(value, options) {
|
|
17744
17771
|
options = void 0 === options ? {} : options;
|
|
@@ -17785,8 +17812,9 @@ module$exports$safevalues$builders$html_builders.joinHtmls = module$contents$saf
|
|
|
17785
17812
|
module$exports$safevalues$builders$html_builders.doctypeHtml = function() {
|
|
17786
17813
|
return module$contents$safevalues$internals$html_impl_createHtmlInternal("<!DOCTYPE html>");
|
|
17787
17814
|
};
|
|
17788
|
-
var module$contents$safevalues$builders$
|
|
17789
|
-
module$
|
|
17815
|
+
var module$contents$safevalues$builders$html_builders_TextOrHtml, module$contents$safevalues$builders$html_builders_VALID_TAG_OR_ATTRIBUTE_NAMES = /^[a-z][a-z\d-]*$/i, module$contents$safevalues$builders$html_builders_DISALLOWED_TAG_NAMES = "APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" ");
|
|
17816
|
+
module$exports$safevalues$builders$html_builders.VOID_TAG_NAMES = "AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" ");
|
|
17817
|
+
var module$contents$safevalues$builders$html_builders_URL_ATTRIBUTES = ["action", "formaction", "href"];
|
|
17790
17818
|
function module$contents$safevalues$builders$html_builders_verifyTagName(tagName) {
|
|
17791
17819
|
if (!module$contents$safevalues$builders$html_builders_VALID_TAG_OR_ATTRIBUTE_NAMES.test(tagName)) {
|
|
17792
17820
|
throw Error(goog.DEBUG ? "Invalid tag name <" + tagName + ">." : "");
|
|
@@ -17795,12 +17823,17 @@ function module$contents$safevalues$builders$html_builders_verifyTagName(tagName
|
|
|
17795
17823
|
throw Error(goog.DEBUG ? "Tag name <" + tagName + "> is not allowed for createHtml." : "");
|
|
17796
17824
|
}
|
|
17797
17825
|
}
|
|
17826
|
+
module$exports$safevalues$builders$html_builders.verifyTagName = module$contents$safevalues$builders$html_builders_verifyTagName;
|
|
17827
|
+
function module$contents$safevalues$builders$html_builders_isVoidTag(tagName) {
|
|
17828
|
+
return -1 !== module$exports$safevalues$builders$html_builders.VOID_TAG_NAMES.indexOf(tagName.toUpperCase());
|
|
17829
|
+
}
|
|
17830
|
+
module$exports$safevalues$builders$html_builders.isVoidTag = module$contents$safevalues$builders$html_builders_isVoidTag;
|
|
17798
17831
|
module$exports$safevalues$builders$html_builders.createHtml = function(tagName, attributes, content) {
|
|
17799
17832
|
module$contents$safevalues$builders$html_builders_verifyTagName(tagName);
|
|
17800
17833
|
var result = "<" + tagName;
|
|
17801
17834
|
attributes && (result += module$contents$safevalues$builders$html_builders_stringifyAttributes(tagName, attributes));
|
|
17802
17835
|
Array.isArray(content) || (content = void 0 === content ? [] : [content]);
|
|
17803
|
-
if (
|
|
17836
|
+
if (module$contents$safevalues$builders$html_builders_isVoidTag(tagName)) {
|
|
17804
17837
|
if (goog.DEBUG && 0 < content.length) {
|
|
17805
17838
|
throw Error("Void tag <" + tagName + "> does not allow content.");
|
|
17806
17839
|
}
|
|
@@ -17823,6 +17856,7 @@ function module$contents$safevalues$builders$html_builders_stringifyAttributes(t
|
|
|
17823
17856
|
}
|
|
17824
17857
|
return result;
|
|
17825
17858
|
}
|
|
17859
|
+
module$exports$safevalues$builders$html_builders.stringifyAttributes = module$contents$safevalues$builders$html_builders_stringifyAttributes;
|
|
17826
17860
|
function module$contents$safevalues$builders$html_builders_getAttrNameAndValue(tagName, name, value) {
|
|
17827
17861
|
if (/^on/i.test(name)) {
|
|
17828
17862
|
throw Error(goog.DEBUG ? 'Attribute "' + name + " is forbidden. Inline event handlers can lead to XSS. Please use the 'addEventListener' API instead." : "");
|
|
@@ -17833,6 +17867,82 @@ function module$contents$safevalues$builders$html_builders_getAttrNameAndValue(t
|
|
|
17833
17867
|
}
|
|
17834
17868
|
return name + '="' + module$contents$safevalues$builders$html_builders_htmlEscape(String(value)) + '"';
|
|
17835
17869
|
}
|
|
17870
|
+
;var module$exports$safevalues$builders$html_formatter = {}, module$contents$safevalues$builders$html_formatter_module = module$contents$safevalues$builders$html_formatter_module || {id:"third_party/javascript/safevalues/builders/html_formatter.closure.js"};
|
|
17871
|
+
function module$contents$safevalues$builders$html_formatter_HtmlReplacement() {
|
|
17872
|
+
}
|
|
17873
|
+
function module$contents$safevalues$builders$html_formatter_StartTagReplacement() {
|
|
17874
|
+
}
|
|
17875
|
+
function module$contents$safevalues$builders$html_formatter_EndTagReplacement() {
|
|
17876
|
+
}
|
|
17877
|
+
var module$contents$safevalues$builders$html_formatter_Replacement;
|
|
17878
|
+
module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
|
|
17879
|
+
this.replacements = new Map();
|
|
17880
|
+
};
|
|
17881
|
+
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
|
|
17882
|
+
var $jscomp$this = 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) {
|
|
17883
|
+
return $jscomp$this.replaceFormattingString(openedTags, match);
|
|
17884
|
+
});
|
|
17885
|
+
if (0 !== openedTags.length) {
|
|
17886
|
+
if (goog.DEBUG) {
|
|
17887
|
+
throw Error("Expected no unclosed tags, got <" + openedTags.join(">, <") + ">.");
|
|
17888
|
+
}
|
|
17889
|
+
throw Error();
|
|
17890
|
+
}
|
|
17891
|
+
return module$contents$safevalues$internals$html_impl_createHtmlInternal(html);
|
|
17892
|
+
};
|
|
17893
|
+
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.replaceFormattingString = function(openedTags, match) {
|
|
17894
|
+
var replacement = this.replacements.get(match);
|
|
17895
|
+
if (!replacement) {
|
|
17896
|
+
return match;
|
|
17897
|
+
}
|
|
17898
|
+
var result = "";
|
|
17899
|
+
switch(replacement.type) {
|
|
17900
|
+
case "html":
|
|
17901
|
+
result = replacement.html;
|
|
17902
|
+
break;
|
|
17903
|
+
case "startTag":
|
|
17904
|
+
result = "<" + replacement.tagName + replacement.attributes + ">";
|
|
17905
|
+
goog.DEBUG && ((0,module$exports$safevalues$builders$html_builders.isVoidTag)(replacement.tagName.toLowerCase()) || openedTags.push(replacement.tagName.toLowerCase()));
|
|
17906
|
+
break;
|
|
17907
|
+
case "endTag":
|
|
17908
|
+
result = "</" + replacement.tagName + ">";
|
|
17909
|
+
if (goog.DEBUG) {
|
|
17910
|
+
var lastTag = openedTags.pop();
|
|
17911
|
+
if (lastTag !== replacement.tagName.toLowerCase()) {
|
|
17912
|
+
throw Error("Expected </" + lastTag + ">, got </" + replacement.tagName + ">.");
|
|
17913
|
+
}
|
|
17914
|
+
}
|
|
17915
|
+
break;
|
|
17916
|
+
default:
|
|
17917
|
+
goog.DEBUG && module$contents$safevalues$builders$html_formatter_checkExhaustive(replacement, "type had an unknown value");
|
|
17918
|
+
}
|
|
17919
|
+
return result;
|
|
17920
|
+
};
|
|
17921
|
+
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.startTag = function(tagName, attributes) {
|
|
17922
|
+
(0,module$exports$safevalues$builders$html_builders.verifyTagName)(tagName);
|
|
17923
|
+
return this.storeReplacement({type:"startTag", tagName:tagName, attributes:void 0 !== attributes ? (0,module$exports$safevalues$builders$html_builders.stringifyAttributes)(tagName, attributes) : ""});
|
|
17924
|
+
};
|
|
17925
|
+
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.endTag = function(tagName) {
|
|
17926
|
+
(0,module$exports$safevalues$builders$html_builders.verifyTagName)(tagName);
|
|
17927
|
+
return this.storeReplacement({type:"endTag", tagName:tagName});
|
|
17928
|
+
};
|
|
17929
|
+
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.text = function(text) {
|
|
17930
|
+
return this.storeReplacement({type:"html", html:(0,module$exports$safevalues$builders$html_builders.htmlEscape)(text).toString()});
|
|
17931
|
+
};
|
|
17932
|
+
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.safeHtml = function(safeHtml) {
|
|
17933
|
+
return this.storeReplacement({type:"html", html:module$contents$safevalues$internals$html_impl_unwrapHtml(safeHtml).toString()});
|
|
17934
|
+
};
|
|
17935
|
+
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.storeReplacement = function(replacement) {
|
|
17936
|
+
var marker = "{_safevalues_format_marker_:" + this.replacements.size + "_" + module$contents$safevalues$builders$html_formatter_getRandomString() + "}";
|
|
17937
|
+
this.replacements.set((0,module$exports$safevalues$builders$html_builders.htmlEscape)(marker).toString(), replacement);
|
|
17938
|
+
return marker;
|
|
17939
|
+
};
|
|
17940
|
+
function module$contents$safevalues$builders$html_formatter_getRandomString() {
|
|
17941
|
+
return Math.random().toString(36).slice(2);
|
|
17942
|
+
}
|
|
17943
|
+
function module$contents$safevalues$builders$html_formatter_checkExhaustive(value, msg) {
|
|
17944
|
+
throw Error(void 0 === msg ? "unexpected value " + value + "!" : msg);
|
|
17945
|
+
}
|
|
17836
17946
|
;var module$contents$safevalues$dom$globals$range_module = module$contents$safevalues$dom$globals$range_module || {id:"third_party/javascript/safevalues/dom/globals/range.closure.js"};
|
|
17837
17947
|
function module$contents$safevalues$dom$globals$range_createContextualFragment(range, html) {
|
|
17838
17948
|
return range.createContextualFragment(module$contents$safevalues$internals$html_impl_unwrapHtml(html));
|
|
@@ -18042,7 +18152,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
18042
18152
|
return !0;
|
|
18043
18153
|
}
|
|
18044
18154
|
for (var $jscomp$iter$34 = $jscomp.makeIterator(conditions), $jscomp$key$ = $jscomp$iter$34.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$34.next()) {
|
|
18045
|
-
var $jscomp$destructuring$var35 = $jscomp.makeIterator($jscomp$key$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var35.next().value, expectedValues = $jscomp$destructuring$var35.next().value, $jscomp$optchain$
|
|
18155
|
+
var $jscomp$destructuring$var35 = $jscomp.makeIterator($jscomp$key$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var35.next().value, expectedValues = $jscomp$destructuring$var35.next().value, $jscomp$optchain$tmpm1085474118$0 = void 0, value = null == ($jscomp$optchain$tmpm1085474118$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) ? void 0 : $jscomp$optchain$tmpm1085474118$0.value;
|
|
18046
18156
|
if (value && !expectedValues.has(value)) {
|
|
18047
18157
|
return !1;
|
|
18048
18158
|
}
|
|
@@ -18226,6 +18336,10 @@ function module$contents$safevalues$builders$resource_url_builders_isValidPathSt
|
|
|
18226
18336
|
function module$contents$safevalues$builders$resource_url_builders_isValidRelativePathStart(base) {
|
|
18227
18337
|
return RegExp("^[^:\\s\\\\/]+/").test(base);
|
|
18228
18338
|
}
|
|
18339
|
+
function module$contents$safevalues$builders$resource_url_builders_getUrlSegments(url) {
|
|
18340
|
+
var segments = url.split(/\?|#/), params = /\?/.test(url) ? "?" + segments[1] : "";
|
|
18341
|
+
return {path:segments[0], params:params, hash:/#/.test(url) ? "#" + (params ? segments[2] : segments[1]) : ""};
|
|
18342
|
+
}
|
|
18229
18343
|
function module$contents$safevalues$builders$resource_url_builders_trustedResourceUrl(templateObj) {
|
|
18230
18344
|
var rest = $jscomp.getRestArguments.apply(1, arguments);
|
|
18231
18345
|
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, rest.length);
|
|
@@ -18248,20 +18362,14 @@ function module$contents$safevalues$builders$resource_url_builders_trustedResour
|
|
|
18248
18362
|
}
|
|
18249
18363
|
module$exports$safevalues$builders$resource_url_builders.trustedResourceUrl = module$contents$safevalues$builders$resource_url_builders_trustedResourceUrl;
|
|
18250
18364
|
function module$contents$safevalues$builders$resource_url_builders_appendParams(trustedUrl, params) {
|
|
18251
|
-
var
|
|
18252
|
-
if (/#/.test(url)) {
|
|
18253
|
-
var message = "";
|
|
18254
|
-
goog.DEBUG && (message = "Found a hash in url (" + url + "), appending not supported");
|
|
18255
|
-
throw Error(message);
|
|
18256
|
-
}
|
|
18257
|
-
var separator = /\?/.test(url) ? "&" : "?";
|
|
18365
|
+
var urlSegments = module$contents$safevalues$builders$resource_url_builders_getUrlSegments(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(trustedUrl).toString()), urlParams = urlSegments.params, separator = urlParams.length ? "&" : "?";
|
|
18258
18366
|
params.forEach(function(value, key) {
|
|
18259
18367
|
for (var values = value instanceof Array ? value : [value], i = 0; i < values.length; i++) {
|
|
18260
18368
|
var v = values[i];
|
|
18261
|
-
null !== v && void 0 !== v && (
|
|
18369
|
+
null !== v && void 0 !== v && (urlParams += separator + encodeURIComponent(key) + "=" + encodeURIComponent(String(v)), separator = "&");
|
|
18262
18370
|
}
|
|
18263
18371
|
});
|
|
18264
|
-
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(
|
|
18372
|
+
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(urlSegments.path + urlParams + urlSegments.hash);
|
|
18265
18373
|
}
|
|
18266
18374
|
module$exports$safevalues$builders$resource_url_builders.appendParams = module$contents$safevalues$builders$resource_url_builders_appendParams;
|
|
18267
18375
|
var module$contents$safevalues$builders$resource_url_builders_BEFORE_FRAGMENT_REGEXP = /[^#]*/;
|
|
@@ -18271,10 +18379,8 @@ function module$contents$safevalues$builders$resource_url_builders_replaceFragme
|
|
|
18271
18379
|
}
|
|
18272
18380
|
module$exports$safevalues$builders$resource_url_builders.replaceFragment = module$contents$safevalues$builders$resource_url_builders_replaceFragment;
|
|
18273
18381
|
function module$contents$safevalues$builders$resource_url_builders_appendPathSegment(trustedUrl, pathSegment) {
|
|
18274
|
-
var
|
|
18275
|
-
|
|
18276
|
-
void 0 !== fragVal && (url += "#" + fragVal);
|
|
18277
|
-
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(url);
|
|
18382
|
+
var urlSegments = module$contents$safevalues$builders$resource_url_builders_getUrlSegments(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(trustedUrl).toString()), separator = "/" === urlSegments.path.slice(-1) ? "" : "/", newPath = urlSegments.path + separator + encodeURIComponent(pathSegment);
|
|
18383
|
+
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(newPath + urlSegments.params + urlSegments.hash);
|
|
18278
18384
|
}
|
|
18279
18385
|
module$exports$safevalues$builders$resource_url_builders.appendPathSegment = module$contents$safevalues$builders$resource_url_builders_appendPathSegment;
|
|
18280
18386
|
function module$contents$safevalues$builders$resource_url_builders_objectUrlFromScript(safeScript) {
|
|
@@ -18347,20 +18453,6 @@ function module$contents$safevalues$builders$style_builders_concatStyles(styles)
|
|
|
18347
18453
|
return module$contents$safevalues$internals$style_impl_createStyleInternal(styles.map(module$contents$safevalues$internals$style_impl_unwrapStyle).join(""));
|
|
18348
18454
|
}
|
|
18349
18455
|
module$exports$safevalues$builders$style_builders.concatStyles = module$contents$safevalues$builders$style_builders_concatStyles;
|
|
18350
|
-
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"};
|
|
18351
|
-
module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
|
|
18352
|
-
function module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheet) {
|
|
18353
|
-
return (0,module$exports$goog$html$internals.createSafeStyleSheet)(styleSheet);
|
|
18354
|
-
}
|
|
18355
|
-
module$exports$safevalues$internals$style_sheet_impl.createStyleSheetInternal = module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal;
|
|
18356
|
-
function module$contents$safevalues$internals$style_sheet_impl_isStyleSheet(value) {
|
|
18357
|
-
return value instanceof module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
|
|
18358
|
-
}
|
|
18359
|
-
module$exports$safevalues$internals$style_sheet_impl.isStyleSheet = module$contents$safevalues$internals$style_sheet_impl_isStyleSheet;
|
|
18360
|
-
function module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet(value) {
|
|
18361
|
-
return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(value);
|
|
18362
|
-
}
|
|
18363
|
-
module$exports$safevalues$internals$style_sheet_impl.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
|
|
18364
18456
|
var module$exports$safevalues$builders$style_sheet_builders = {}, module$contents$safevalues$builders$style_sheet_builders_module = module$contents$safevalues$builders$style_sheet_builders_module || {id:"third_party/javascript/safevalues/builders/style_sheet_builders.closure.js"}, module$contents$safevalues$builders$style_sheet_builders_Primitive;
|
|
18365
18457
|
module$exports$safevalues$builders$style_sheet_builders.safeStyleRule = function(templateObj) {
|
|
18366
18458
|
var rest = $jscomp.getRestArguments.apply(1, arguments);
|
|
@@ -18437,12 +18529,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
18437
18529
|
}
|
|
18438
18530
|
try {
|
|
18439
18531
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
18440
|
-
} catch ($jscomp$unused$catch$
|
|
18532
|
+
} catch ($jscomp$unused$catch$696273141$0) {
|
|
18441
18533
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
18442
18534
|
}
|
|
18443
18535
|
try {
|
|
18444
18536
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
18445
|
-
} catch ($jscomp$unused$catch$
|
|
18537
|
+
} catch ($jscomp$unused$catch$696273141$1) {
|
|
18446
18538
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
18447
18539
|
}
|
|
18448
18540
|
return !1;
|
|
@@ -18525,9 +18617,9 @@ module$exports$safevalues$index.isUrl = module$contents$safevalues$internals$url
|
|
|
18525
18617
|
module$exports$safevalues$index.SafeUrl = goog.html.SafeUrl;
|
|
18526
18618
|
module$exports$safevalues$index.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
18527
18619
|
module$exports$safevalues$index.reportOnlyHtmlPassthrough = module$contents$safevalues$reporting$reporting_reportOnlyHtmlPassthrough;
|
|
18620
|
+
module$exports$safevalues$index.HtmlFormatter = module$exports$safevalues$builders$html_formatter.HtmlFormatter;
|
|
18528
18621
|
module$exports$safevalues$index.createHtml = module$exports$safevalues$builders$html_builders.createHtml;
|
|
18529
18622
|
module$exports$safevalues$index.safeStyleRule = module$exports$safevalues$builders$style_sheet_builders.safeStyleRule;
|
|
18530
|
-
var safevalues = {};
|
|
18531
18623
|
safevalues.safeAttrPrefix = module$contents$safevalues$builders$attribute_builders_safeAttrPrefix;
|
|
18532
18624
|
safevalues.safeFragment = module$contents$safevalues$builders$document_fragment_builders_safeFragment;
|
|
18533
18625
|
safevalues.concatHtmls = module$exports$safevalues$index.concatHtmls;
|
|
@@ -18590,13 +18682,14 @@ safevalues.isUrl = module$contents$safevalues$internals$url_impl_isUrl;
|
|
|
18590
18682
|
safevalues.SafeUrl = goog.html.SafeUrl;
|
|
18591
18683
|
safevalues.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
18592
18684
|
safevalues.reportOnlyHtmlPassthrough = module$contents$safevalues$reporting$reporting_reportOnlyHtmlPassthrough;
|
|
18685
|
+
safevalues.HtmlFormatter = module$exports$safevalues$builders$html_formatter.HtmlFormatter;
|
|
18593
18686
|
safevalues.createHtml = module$exports$safevalues$index.createHtml;
|
|
18594
18687
|
safevalues.safeStyleRule = module$exports$safevalues$index.safeStyleRule;
|
|
18595
18688
|
var $jscomp$templatelit$294235699$0 = $jscomp.createTemplateTagFirstArg(["https://apis.google.com/js/client.js?onload=", ""]);
|
|
18596
18689
|
ee.apiclient = {};
|
|
18597
18690
|
var module$contents$ee$apiclient_apiclient = {};
|
|
18598
18691
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
18599
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
18692
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.382";
|
|
18600
18693
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
18601
18694
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
18602
18695
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -18887,8 +18980,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
18887
18980
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
18888
18981
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
18889
18982
|
method = method || "POST";
|
|
18890
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
18891
|
-
"0.1.
|
|
18983
|
+
var headers = {"Content-Type":contentType}, version = "0.1.382";
|
|
18984
|
+
"0.1.382" === version && (version = "latest");
|
|
18892
18985
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
18893
18986
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
18894
18987
|
if (null != authToken) {
|
|
@@ -22377,10 +22470,12 @@ ee.Feature.prototype.getInfo = function(opt_callback) {
|
|
|
22377
22470
|
return ee.Feature.superClass_.getInfo.call(this, opt_callback);
|
|
22378
22471
|
};
|
|
22379
22472
|
goog.exportProperty(ee.Feature.prototype, "getInfo", ee.Feature.prototype.getInfo);
|
|
22380
|
-
ee.Feature.prototype.
|
|
22473
|
+
ee.Feature.prototype.getMapId = function(opt_visParams, opt_callback) {
|
|
22381
22474
|
var args = ee.arguments.extractFromFunction(ee.Feature.prototype.getMap, arguments);
|
|
22382
|
-
return ee.ApiFunction._call("Collection", [this]).
|
|
22475
|
+
return ee.ApiFunction._call("Collection", [this]).getMapId(args.visParams, args.callback);
|
|
22383
22476
|
};
|
|
22477
|
+
goog.exportProperty(ee.Feature.prototype, "getMapId", ee.Feature.prototype.getMapId);
|
|
22478
|
+
ee.Feature.prototype.getMap = ee.Feature.prototype.getMapId;
|
|
22384
22479
|
goog.exportProperty(ee.Feature.prototype, "getMap", ee.Feature.prototype.getMap);
|
|
22385
22480
|
ee.Feature.prototype.name = function() {
|
|
22386
22481
|
return "Feature";
|
|
@@ -22619,7 +22714,7 @@ ee.Image.prototype.getInfo = function(opt_callback) {
|
|
|
22619
22714
|
return ee.Image.superClass_.getInfo.call(this, opt_callback);
|
|
22620
22715
|
};
|
|
22621
22716
|
goog.exportProperty(ee.Image.prototype, "getInfo", ee.Image.prototype.getInfo);
|
|
22622
|
-
ee.Image.prototype.
|
|
22717
|
+
ee.Image.prototype.getMapId = function(opt_visParams, opt_callback) {
|
|
22623
22718
|
var $jscomp$this = this, args = ee.arguments.extractFromFunction(ee.Image.prototype.getMap, arguments), request = ee.data.images.applyVisualization(this, args.visParams);
|
|
22624
22719
|
if (args.callback) {
|
|
22625
22720
|
var callback = args.callback;
|
|
@@ -22633,6 +22728,8 @@ ee.Image.prototype.getMap = function(opt_visParams, opt_callback) {
|
|
|
22633
22728
|
return response;
|
|
22634
22729
|
}
|
|
22635
22730
|
};
|
|
22731
|
+
goog.exportProperty(ee.Image.prototype, "getMapId", ee.Image.prototype.getMapId);
|
|
22732
|
+
ee.Image.prototype.getMap = ee.Image.prototype.getMapId;
|
|
22636
22733
|
goog.exportProperty(ee.Image.prototype, "getMap", ee.Image.prototype.getMap);
|
|
22637
22734
|
ee.Image.prototype.getDownloadURL = function(params, opt_callback) {
|
|
22638
22735
|
var args = ee.arguments.extractFromFunction(ee.Image.prototype.getDownloadURL, arguments), request = args.params ? module$contents$goog$object_clone(args.params) : {};
|
|
@@ -22831,14 +22928,16 @@ ee.FeatureCollection.reset = function() {
|
|
|
22831
22928
|
ee.ApiFunction.clearApi(ee.FeatureCollection);
|
|
22832
22929
|
ee.FeatureCollection.initialized_ = !1;
|
|
22833
22930
|
};
|
|
22834
|
-
ee.FeatureCollection.prototype.
|
|
22835
|
-
var args = ee.arguments.extractFromFunction(ee.FeatureCollection.prototype.
|
|
22931
|
+
ee.FeatureCollection.prototype.getMapId = function(opt_visParams, opt_callback) {
|
|
22932
|
+
var args = ee.arguments.extractFromFunction(ee.FeatureCollection.prototype.getMapId, arguments), painted = ee.ApiFunction._apply("Collection.draw", {collection:this, color:(args.visParams || {}).color || "000000"});
|
|
22836
22933
|
if (args.callback) {
|
|
22837
|
-
painted.
|
|
22934
|
+
painted.getMapId(void 0, args.callback);
|
|
22838
22935
|
} else {
|
|
22839
|
-
return painted.
|
|
22936
|
+
return painted.getMapId();
|
|
22840
22937
|
}
|
|
22841
22938
|
};
|
|
22939
|
+
goog.exportProperty(ee.FeatureCollection.prototype, "getMapId", ee.FeatureCollection.prototype.getMapId);
|
|
22940
|
+
ee.FeatureCollection.prototype.getMap = ee.FeatureCollection.prototype.getMapId;
|
|
22842
22941
|
goog.exportProperty(ee.FeatureCollection.prototype, "getMap", ee.FeatureCollection.prototype.getMap);
|
|
22843
22942
|
ee.FeatureCollection.prototype.getInfo = function(opt_callback) {
|
|
22844
22943
|
return ee.FeatureCollection.superClass_.getInfo.call(this, opt_callback);
|
|
@@ -22967,14 +23066,16 @@ ee.ImageCollection.prototype.getThumbURL_ = function(collection, args, validForm
|
|
|
22967
23066
|
return ee.data.makeThumbUrl(getThumbId(request));
|
|
22968
23067
|
}
|
|
22969
23068
|
};
|
|
22970
|
-
ee.ImageCollection.prototype.
|
|
22971
|
-
var args = ee.arguments.extractFromFunction(ee.ImageCollection.prototype.
|
|
23069
|
+
ee.ImageCollection.prototype.getMapId = function(opt_visParams, opt_callback) {
|
|
23070
|
+
var args = ee.arguments.extractFromFunction(ee.ImageCollection.prototype.getMapId, arguments), mosaic = ee.ApiFunction._call("ImageCollection.mosaic", this);
|
|
22972
23071
|
if (args.callback) {
|
|
22973
|
-
mosaic.
|
|
23072
|
+
mosaic.getMapId(args.visParams, args.callback);
|
|
22974
23073
|
} else {
|
|
22975
|
-
return mosaic.
|
|
23074
|
+
return mosaic.getMapId(args.visParams);
|
|
22976
23075
|
}
|
|
22977
23076
|
};
|
|
23077
|
+
goog.exportProperty(ee.ImageCollection.prototype, "getMapId", ee.ImageCollection.prototype.getMapId);
|
|
23078
|
+
ee.ImageCollection.prototype.getMap = ee.ImageCollection.prototype.getMapId;
|
|
22978
23079
|
goog.exportProperty(ee.ImageCollection.prototype, "getMap", ee.ImageCollection.prototype.getMap);
|
|
22979
23080
|
ee.ImageCollection.prototype.getInfo = function(opt_callback) {
|
|
22980
23081
|
return ee.ImageCollection.superClass_.getInfo.call(this, opt_callback);
|