@google/earthengine 0.1.386 → 0.1.388
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/build/browser.js +155 -246
- package/build/ee_api_js.js +279 -279
- package/build/ee_api_js_debug.js +133 -224
- package/build/ee_api_js_npm.js +155 -246
- package/build/main.js +155 -246
- package/package.json +1 -1
- package/src/apiclient.js +43 -40
- package/src/data.js +7 -6
- package/src/examples/Demos/TerrainVisualization.js +1 -2
- package/.tmp/BUILD +0 -699
- package/.tmp/METADATA +0 -23
- package/.tmp/VERSION_BUILD +0 -47
package/build/browser.js
CHANGED
|
@@ -6057,9 +6057,9 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
6057
6057
|
};
|
|
6058
6058
|
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;
|
|
6059
6059
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
6060
|
-
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$m192531680$
|
|
6061
|
-
$jscomp$key$key = $jscomp$iter$19.next()) {
|
|
6062
|
-
var key = $jscomp$key$key.value, value = valueGetter(key, source);
|
|
6060
|
+
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$m192531680$40$key = $jscomp$iter$19.next(), $jscomp$loop$m192531680$44 = {}; !$jscomp$key$m192531680$40$key.done; $jscomp$loop$m192531680$44 =
|
|
6061
|
+
{mapMetadata:void 0}, $jscomp$key$m192531680$40$key = $jscomp$iter$19.next()) {
|
|
6062
|
+
var key = $jscomp$key$m192531680$40$key.value, value = valueGetter(key, source);
|
|
6063
6063
|
if (null != value) {
|
|
6064
6064
|
var copy = void 0;
|
|
6065
6065
|
if (arrays.hasOwnProperty(key)) {
|
|
@@ -6070,11 +6070,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
6070
6070
|
} else if (objects.hasOwnProperty(key)) {
|
|
6071
6071
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
6072
6072
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
6073
|
-
$jscomp$loop$m192531680$
|
|
6073
|
+
$jscomp$loop$m192531680$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m192531680$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m192531680$44) {
|
|
6074
6074
|
return function(v) {
|
|
6075
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$
|
|
6075
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6076
6076
|
};
|
|
6077
|
-
}($jscomp$loop$m192531680$
|
|
6077
|
+
}($jscomp$loop$m192531680$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6078
6078
|
} else if (Array.isArray(value)) {
|
|
6079
6079
|
if (metadata.emptyArrayIsUnset && 0 === value.length) {
|
|
6080
6080
|
continue;
|
|
@@ -6089,8 +6089,8 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
6089
6089
|
return target;
|
|
6090
6090
|
}
|
|
6091
6091
|
function module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, mapMetadata, valueGetter, valueSetter, copyInstanciator) {
|
|
6092
|
-
for (var objMap = {}, $jscomp$iter$20 = $jscomp.makeIterator(Object.keys(value)), $jscomp$key$mapKey = $jscomp$iter$20.next(); !$jscomp$key$mapKey.done; $jscomp$key$mapKey = $jscomp$iter$20.next()) {
|
|
6093
|
-
var mapKey = $jscomp$key$mapKey.value, mapValue = value[mapKey];
|
|
6092
|
+
for (var objMap = {}, $jscomp$iter$20 = $jscomp.makeIterator(Object.keys(value)), $jscomp$key$m192531680$41$mapKey = $jscomp$iter$20.next(); !$jscomp$key$m192531680$41$mapKey.done; $jscomp$key$m192531680$41$mapKey = $jscomp$iter$20.next()) {
|
|
6093
|
+
var mapKey = $jscomp$key$m192531680$41$mapKey.value, mapValue = value[mapKey];
|
|
6094
6094
|
null != mapValue && (objMap[mapKey] = module$contents$eeapiclient$domain_object_deepCopyValue(mapValue, valueGetter, valueSetter, copyInstanciator, mapMetadata.isValueArray, mapMetadata.isSerializable, mapMetadata.ctor));
|
|
6095
6095
|
}
|
|
6096
6096
|
return objMap;
|
|
@@ -6120,39 +6120,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
6120
6120
|
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))) {
|
|
6121
6121
|
return !1;
|
|
6122
6122
|
}
|
|
6123
|
-
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$m192531680$
|
|
6124
|
-
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);
|
|
6123
|
+
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$m192531680$42$key = $jscomp$iter$21.next(), $jscomp$loop$m192531680$45 = {}; !$jscomp$key$m192531680$42$key.done; $jscomp$loop$m192531680$45 = {value2$jscomp$7:void 0, mapMetadata$jscomp$2:void 0}, $jscomp$key$m192531680$42$key = $jscomp$iter$21.next()) {
|
|
6124
|
+
var key = $jscomp$key$m192531680$42$key.value, has1 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable1, key, metadata1), has2 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable2, key, metadata2);
|
|
6125
6125
|
if (has1 !== has2) {
|
|
6126
6126
|
return !1;
|
|
6127
6127
|
}
|
|
6128
6128
|
if (has1) {
|
|
6129
6129
|
var value1 = serializable1.Serializable$get(key);
|
|
6130
|
-
$jscomp$loop$m192531680$
|
|
6130
|
+
$jscomp$loop$m192531680$45.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
6131
6131
|
if (arrays1.hasOwnProperty(key)) {
|
|
6132
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$
|
|
6132
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !0)) {
|
|
6133
6133
|
return !1;
|
|
6134
6134
|
}
|
|
6135
6135
|
} else if (objects1.hasOwnProperty(key)) {
|
|
6136
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$
|
|
6136
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !0)) {
|
|
6137
6137
|
return !1;
|
|
6138
6138
|
}
|
|
6139
6139
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
6140
|
-
if ($jscomp$loop$m192531680$
|
|
6141
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$
|
|
6140
|
+
if ($jscomp$loop$m192531680$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2.isPropertyArray) {
|
|
6141
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m192531680$45) {
|
|
6142
6142
|
return function(v1, i) {
|
|
6143
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$
|
|
6143
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$45.value2$jscomp$7[i], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2);
|
|
6144
6144
|
};
|
|
6145
|
-
}($jscomp$loop$m192531680$
|
|
6145
|
+
}($jscomp$loop$m192531680$45))) {
|
|
6146
6146
|
return !1;
|
|
6147
6147
|
}
|
|
6148
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$
|
|
6148
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, $jscomp$loop$m192531680$45.mapMetadata$jscomp$2)) {
|
|
6149
6149
|
return !1;
|
|
6150
6150
|
}
|
|
6151
6151
|
} else if (Array.isArray(value1)) {
|
|
6152
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$
|
|
6152
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !1)) {
|
|
6153
6153
|
return !1;
|
|
6154
6154
|
}
|
|
6155
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$
|
|
6155
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !1)) {
|
|
6156
6156
|
return !1;
|
|
6157
6157
|
}
|
|
6158
6158
|
}
|
|
@@ -6174,8 +6174,8 @@ function module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, v
|
|
|
6174
6174
|
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) {
|
|
6175
6175
|
return !1;
|
|
6176
6176
|
}
|
|
6177
|
-
for (var $jscomp$iter$22 = $jscomp.makeIterator(Object.keys(value1)), $jscomp$key$mapKey = $jscomp$iter$22.next(); !$jscomp$key$mapKey.done; $jscomp$key$mapKey = $jscomp$iter$22.next()) {
|
|
6178
|
-
var mapKey = $jscomp$key$mapKey.value;
|
|
6177
|
+
for (var $jscomp$iter$22 = $jscomp.makeIterator(Object.keys(value1)), $jscomp$key$m192531680$43$mapKey = $jscomp$iter$22.next(); !$jscomp$key$m192531680$43$mapKey.done; $jscomp$key$m192531680$43$mapKey = $jscomp$iter$22.next()) {
|
|
6178
|
+
var mapKey = $jscomp$key$m192531680$43$mapKey.value;
|
|
6179
6179
|
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1[mapKey], value2[mapKey], mapMetadata.isValueArray, mapMetadata.isSerializable)) {
|
|
6180
6180
|
return !1;
|
|
6181
6181
|
}
|
|
@@ -6663,8 +6663,6 @@ goog.html.TrustedResourceUrl.stringifyParams_ = function(prefix, currentString,
|
|
|
6663
6663
|
}
|
|
6664
6664
|
return currentString;
|
|
6665
6665
|
};
|
|
6666
|
-
goog.string.TypedString = function() {
|
|
6667
|
-
};
|
|
6668
6666
|
goog.html.SafeUrl = function(value, token) {
|
|
6669
6667
|
if (goog.DEBUG && token !== goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_) {
|
|
6670
6668
|
throw Error("SafeUrl is not meant to be built directly");
|
|
@@ -6675,10 +6673,6 @@ goog.html.SafeUrl.prototype.toString = function() {
|
|
|
6675
6673
|
return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString();
|
|
6676
6674
|
};
|
|
6677
6675
|
goog.html.SafeUrl.INNOCUOUS_STRING = "about:invalid#zClosurez";
|
|
6678
|
-
goog.html.SafeUrl.prototype.implementsGoogStringTypedString = !0;
|
|
6679
|
-
goog.html.SafeUrl.prototype.getTypedStringValue = function() {
|
|
6680
|
-
return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString();
|
|
6681
|
-
};
|
|
6682
6676
|
goog.html.SafeUrl.unwrap = function(safeUrl) {
|
|
6683
6677
|
if (safeUrl instanceof goog.html.SafeUrl && safeUrl.constructor === goog.html.SafeUrl) {
|
|
6684
6678
|
return safeUrl.privateDoNotAccessOrElseSafeUrlWrappedValue_;
|
|
@@ -6705,11 +6699,6 @@ goog.html.SafeUrl.revokeObjectUrl = function(safeUrl) {
|
|
|
6705
6699
|
var url = safeUrl.toString();
|
|
6706
6700
|
url !== goog.html.SafeUrl.INNOCUOUS_STRING && goog.fs.url.revokeObjectUrl(url);
|
|
6707
6701
|
};
|
|
6708
|
-
goog.html.SafeUrl.fromMediaSource = function(mediaSource) {
|
|
6709
|
-
goog.asserts.assert("MediaSource" in goog.global, "No support for MediaSource");
|
|
6710
|
-
var url = mediaSource instanceof MediaSource ? goog.fs.url.createObjectUrl(mediaSource) : goog.html.SafeUrl.INNOCUOUS_STRING;
|
|
6711
|
-
return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(url);
|
|
6712
|
-
};
|
|
6713
6702
|
goog.html.DATA_URL_PATTERN_ = /^data:(.*);base64,[a-z0-9+\/]+=*$/i;
|
|
6714
6703
|
goog.html.SafeUrl.tryFromDataUrl = function(dataUrl) {
|
|
6715
6704
|
dataUrl = String(dataUrl);
|
|
@@ -6719,61 +6708,14 @@ goog.html.SafeUrl.tryFromDataUrl = function(dataUrl) {
|
|
|
6719
6708
|
goog.html.SafeUrl.fromDataUrl = function(dataUrl) {
|
|
6720
6709
|
return goog.html.SafeUrl.tryFromDataUrl(dataUrl) || goog.html.SafeUrl.INNOCUOUS_URL;
|
|
6721
6710
|
};
|
|
6722
|
-
goog.html.SafeUrl.fromTelUrl = function(telUrl) {
|
|
6723
|
-
goog.string.internal.caseInsensitiveStartsWith(telUrl, "tel:") || (telUrl = goog.html.SafeUrl.INNOCUOUS_STRING);
|
|
6724
|
-
return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(telUrl);
|
|
6725
|
-
};
|
|
6726
6711
|
goog.html.SIP_URL_PATTERN_ = RegExp("^sip[s]?:[+a-z0-9_.!$%&'*\\/=^`{|}~-]+@([a-z0-9-]+\\.)+[a-z0-9]{2,63}$", "i");
|
|
6727
6712
|
goog.html.SafeUrl.fromSipUrl = function(sipUrl) {
|
|
6728
6713
|
goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(sipUrl)) || (sipUrl = goog.html.SafeUrl.INNOCUOUS_STRING);
|
|
6729
6714
|
return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(sipUrl);
|
|
6730
6715
|
};
|
|
6731
|
-
goog.html.SafeUrl.fromFacebookMessengerUrl = function(facebookMessengerUrl) {
|
|
6732
|
-
goog.string.internal.caseInsensitiveStartsWith(facebookMessengerUrl, "fb-messenger://share") || (facebookMessengerUrl = goog.html.SafeUrl.INNOCUOUS_STRING);
|
|
6733
|
-
return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(facebookMessengerUrl);
|
|
6734
|
-
};
|
|
6735
|
-
goog.html.SafeUrl.fromWhatsAppUrl = function(whatsAppUrl) {
|
|
6736
|
-
goog.string.internal.caseInsensitiveStartsWith(whatsAppUrl, "whatsapp://send") || (whatsAppUrl = goog.html.SafeUrl.INNOCUOUS_STRING);
|
|
6737
|
-
return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(whatsAppUrl);
|
|
6738
|
-
};
|
|
6739
|
-
goog.html.SafeUrl.fromSmsUrl = function(smsUrl) {
|
|
6740
|
-
goog.string.internal.caseInsensitiveStartsWith(smsUrl, "sms:") && goog.html.SafeUrl.isSmsUrlBodyValid_(smsUrl) || (smsUrl = goog.html.SafeUrl.INNOCUOUS_STRING);
|
|
6741
|
-
return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(smsUrl);
|
|
6742
|
-
};
|
|
6743
|
-
goog.html.SafeUrl.isSmsUrlBodyValid_ = function(smsUrl) {
|
|
6744
|
-
var hash = smsUrl.indexOf("#");
|
|
6745
|
-
0 < hash && (smsUrl = smsUrl.substring(0, hash));
|
|
6746
|
-
var bodyParams = smsUrl.match(/[?&]body=/gi);
|
|
6747
|
-
if (!bodyParams) {
|
|
6748
|
-
return !0;
|
|
6749
|
-
}
|
|
6750
|
-
if (1 < bodyParams.length) {
|
|
6751
|
-
return !1;
|
|
6752
|
-
}
|
|
6753
|
-
var bodyValue = smsUrl.match(/[?&]body=([^&]*)/)[1];
|
|
6754
|
-
if (!bodyValue) {
|
|
6755
|
-
return !0;
|
|
6756
|
-
}
|
|
6757
|
-
try {
|
|
6758
|
-
decodeURIComponent(bodyValue);
|
|
6759
|
-
} catch (error) {
|
|
6760
|
-
return !1;
|
|
6761
|
-
}
|
|
6762
|
-
return /^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(bodyValue);
|
|
6763
|
-
};
|
|
6764
|
-
goog.html.SafeUrl.fromSshUrl = function(sshUrl) {
|
|
6765
|
-
goog.string.internal.caseInsensitiveStartsWith(sshUrl, "ssh://") || (sshUrl = goog.html.SafeUrl.INNOCUOUS_STRING);
|
|
6766
|
-
return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(sshUrl);
|
|
6767
|
-
};
|
|
6768
6716
|
goog.html.SafeUrl.sanitizeChromeExtensionUrl = function(url, extensionId) {
|
|
6769
6717
|
return goog.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//, url, extensionId);
|
|
6770
6718
|
};
|
|
6771
|
-
goog.html.SafeUrl.sanitizeFirefoxExtensionUrl = function(url, extensionId) {
|
|
6772
|
-
return goog.html.SafeUrl.sanitizeExtensionUrl_(/^moz-extension:\/\/([^\/]+)\//, url, extensionId);
|
|
6773
|
-
};
|
|
6774
|
-
goog.html.SafeUrl.sanitizeEdgeExtensionUrl = function(url, extensionId) {
|
|
6775
|
-
return goog.html.SafeUrl.sanitizeExtensionUrl_(/^ms-browser-extension:\/\/([^\/]+)\//, url, extensionId);
|
|
6776
|
-
};
|
|
6777
6719
|
goog.html.SafeUrl.sanitizeExtensionUrl_ = function(scheme, url, extensionId) {
|
|
6778
6720
|
var matches = scheme.exec(url);
|
|
6779
6721
|
if (matches) {
|
|
@@ -7249,46 +7191,8 @@ goog.html.SafeHtml = module$contents$goog$html$SafeHtml_SafeHtml;
|
|
|
7249
7191
|
SPDX-License-Identifier: Apache-2.0
|
|
7250
7192
|
*/
|
|
7251
7193
|
var module$contents$safevalues$environment$dev_module = module$contents$safevalues$environment$dev_module || {id:"third_party/javascript/safevalues/environment/dev.closure.js"};
|
|
7252
|
-
var module$contents$goog$html$SafeScript_CONSTRUCTOR_TOKEN_PRIVATE = {}, module$contents$goog$html$SafeScript_SafeScript = function(value, token) {
|
|
7253
|
-
if (goog.DEBUG && token !== module$contents$goog$html$SafeScript_CONSTRUCTOR_TOKEN_PRIVATE) {
|
|
7254
|
-
throw Error("SafeScript is not meant to be built directly");
|
|
7255
|
-
}
|
|
7256
|
-
this.privateDoNotAccessOrElseSafeScriptWrappedValue_ = value;
|
|
7257
|
-
};
|
|
7258
|
-
module$contents$goog$html$SafeScript_SafeScript.prototype.toString = function() {
|
|
7259
|
-
return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString();
|
|
7260
|
-
};
|
|
7261
|
-
module$contents$goog$html$SafeScript_SafeScript.fromConstant = function(script) {
|
|
7262
|
-
var scriptString = goog.string.Const.unwrap(script);
|
|
7263
|
-
return 0 === scriptString.length ? module$contents$goog$html$SafeScript_SafeScript.EMPTY : module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(scriptString);
|
|
7264
|
-
};
|
|
7265
|
-
module$contents$goog$html$SafeScript_SafeScript.fromJson = function(val) {
|
|
7266
|
-
return module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(module$contents$goog$html$SafeScript_SafeScript.stringify_(val));
|
|
7267
|
-
};
|
|
7268
|
-
module$contents$goog$html$SafeScript_SafeScript.unwrap = function(safeScript) {
|
|
7269
|
-
return module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript(safeScript).toString();
|
|
7270
|
-
};
|
|
7271
|
-
module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript = function(safeScript) {
|
|
7272
|
-
if (safeScript instanceof module$contents$goog$html$SafeScript_SafeScript && safeScript.constructor === module$contents$goog$html$SafeScript_SafeScript) {
|
|
7273
|
-
return safeScript.privateDoNotAccessOrElseSafeScriptWrappedValue_;
|
|
7274
|
-
}
|
|
7275
|
-
(0,goog.asserts.fail)("expected object of type SafeScript, got '" + safeScript + "' of type " + goog.typeOf(safeScript));
|
|
7276
|
-
return "type_error:SafeScript";
|
|
7277
|
-
};
|
|
7278
|
-
module$contents$goog$html$SafeScript_SafeScript.stringify_ = function(val) {
|
|
7279
|
-
return JSON.stringify(val).replace(/</g, "\\x3c");
|
|
7280
|
-
};
|
|
7281
|
-
module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse = function(script) {
|
|
7282
|
-
var noinlineScript = script, policy = goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse(), trustedScript = policy ? policy.createScript(noinlineScript) : noinlineScript;
|
|
7283
|
-
return new module$contents$goog$html$SafeScript_SafeScript(trustedScript, module$contents$goog$html$SafeScript_CONSTRUCTOR_TOKEN_PRIVATE);
|
|
7284
|
-
};
|
|
7285
|
-
module$contents$goog$html$SafeScript_SafeScript.EMPTY = function() {
|
|
7286
|
-
return module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("");
|
|
7287
|
-
}();
|
|
7288
|
-
goog.html.SafeScript = module$contents$goog$html$SafeScript_SafeScript;
|
|
7289
7194
|
var module$exports$goog$html$internals = {};
|
|
7290
7195
|
module$exports$goog$html$internals.createSafeHtml = module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse;
|
|
7291
|
-
module$exports$goog$html$internals.createSafeScript = module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse;
|
|
7292
7196
|
module$exports$goog$html$internals.createSafeStyle = module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse;
|
|
7293
7197
|
module$exports$goog$html$internals.createSafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse;
|
|
7294
7198
|
module$exports$goog$html$internals.createSafeUrl = goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse;
|
|
@@ -7322,19 +7226,50 @@ function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUr
|
|
|
7322
7226
|
return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(value);
|
|
7323
7227
|
}
|
|
7324
7228
|
module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
7325
|
-
var module$
|
|
7326
|
-
module$
|
|
7229
|
+
var module$contents$safevalues$internals$pure_module = module$contents$safevalues$internals$pure_module || {id:"third_party/javascript/safevalues/internals/pure.closure.js"};
|
|
7230
|
+
function module$contents$safevalues$internals$pure_pure(valueOf) {
|
|
7231
|
+
return {valueOf:valueOf}.valueOf();
|
|
7232
|
+
}
|
|
7233
|
+
;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"};
|
|
7234
|
+
module$exports$safevalues$internals$secrets.secretToken = {};
|
|
7235
|
+
function module$contents$safevalues$internals$secrets_ensureTokenIsValid(token) {
|
|
7236
|
+
if (goog.DEBUG && token !== module$exports$safevalues$internals$secrets.secretToken) {
|
|
7237
|
+
throw Error("Bad secret");
|
|
7238
|
+
}
|
|
7239
|
+
}
|
|
7240
|
+
module$exports$safevalues$internals$secrets.ensureTokenIsValid = module$contents$safevalues$internals$secrets_ensureTokenIsValid;
|
|
7241
|
+
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"}, module$contents$safevalues$internals$script_impl_trustedTypes = goog.global.trustedTypes;
|
|
7242
|
+
module$exports$safevalues$internals$script_impl.SafeScript = function(token) {
|
|
7243
|
+
goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
|
|
7244
|
+
};
|
|
7245
|
+
module$exports$safevalues$internals$script_impl.SafeScript.prototype.toString = function() {
|
|
7246
|
+
return this.privateDoNotAccessOrElseWrappedScript.toString();
|
|
7247
|
+
};
|
|
7248
|
+
var module$contents$safevalues$internals$script_impl_ScriptImpl = module$exports$safevalues$internals$script_impl.SafeScript;
|
|
7249
|
+
function module$contents$safevalues$internals$script_impl_constructScript(contents) {
|
|
7250
|
+
var script = new module$exports$safevalues$internals$script_impl.SafeScript(module$exports$safevalues$internals$secrets.secretToken);
|
|
7251
|
+
script.privateDoNotAccessOrElseWrappedScript = contents;
|
|
7252
|
+
return script;
|
|
7253
|
+
}
|
|
7327
7254
|
function module$contents$safevalues$internals$script_impl_createScriptInternal(script) {
|
|
7328
|
-
|
|
7255
|
+
var noinlineScript = script, policy = (0,goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse)();
|
|
7256
|
+
return module$contents$safevalues$internals$script_impl_constructScript(policy ? policy.createScript(noinlineScript) : noinlineScript);
|
|
7329
7257
|
}
|
|
7330
7258
|
module$exports$safevalues$internals$script_impl.createScriptInternal = module$contents$safevalues$internals$script_impl_createScriptInternal;
|
|
7331
|
-
module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT = module$contents$
|
|
7259
|
+
module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT = module$contents$safevalues$internals$pure_pure(function() {
|
|
7260
|
+
return module$contents$safevalues$internals$script_impl_constructScript(module$contents$safevalues$internals$script_impl_trustedTypes ? module$contents$safevalues$internals$script_impl_trustedTypes.emptyScript : "");
|
|
7261
|
+
});
|
|
7332
7262
|
function module$contents$safevalues$internals$script_impl_isScript(value) {
|
|
7333
|
-
return value instanceof module$
|
|
7263
|
+
return value instanceof module$exports$safevalues$internals$script_impl.SafeScript;
|
|
7334
7264
|
}
|
|
7335
7265
|
module$exports$safevalues$internals$script_impl.isScript = module$contents$safevalues$internals$script_impl_isScript;
|
|
7336
7266
|
function module$contents$safevalues$internals$script_impl_unwrapScript(value) {
|
|
7337
|
-
|
|
7267
|
+
if (value instanceof module$exports$safevalues$internals$script_impl.SafeScript) {
|
|
7268
|
+
return value.privateDoNotAccessOrElseWrappedScript;
|
|
7269
|
+
}
|
|
7270
|
+
var message = "";
|
|
7271
|
+
goog.DEBUG && (message = "Unexpected type when unwrapping SafeScript");
|
|
7272
|
+
throw Error(message);
|
|
7338
7273
|
}
|
|
7339
7274
|
module$exports$safevalues$internals$script_impl.unwrapScript = module$contents$safevalues$internals$script_impl_unwrapScript;
|
|
7340
7275
|
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"};
|
|
@@ -7956,16 +7891,16 @@ module$contents$goog$collections$maps_MapLike.prototype.has = function(key) {
|
|
|
7956
7891
|
goog.collections.maps.MapLike = module$contents$goog$collections$maps_MapLike;
|
|
7957
7892
|
goog.collections.maps.setAll = function(map, entries) {
|
|
7958
7893
|
if (entries) {
|
|
7959
|
-
for (var $jscomp$iter$23 = $jscomp.makeIterator(entries), $jscomp$key$ = $jscomp$iter$23.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$23.next()) {
|
|
7960
|
-
var $jscomp$destructuring$var25 = $jscomp.makeIterator($jscomp$key$.value), k = $jscomp$destructuring$var25.next().value, v = $jscomp$destructuring$var25.next().value;
|
|
7894
|
+
for (var $jscomp$iter$23 = $jscomp.makeIterator(entries), $jscomp$key$1866876209$13$ = $jscomp$iter$23.next(); !$jscomp$key$1866876209$13$.done; $jscomp$key$1866876209$13$ = $jscomp$iter$23.next()) {
|
|
7895
|
+
var $jscomp$destructuring$var25 = $jscomp.makeIterator($jscomp$key$1866876209$13$.value), k = $jscomp$destructuring$var25.next().value, v = $jscomp$destructuring$var25.next().value;
|
|
7961
7896
|
map.set(k, v);
|
|
7962
7897
|
}
|
|
7963
7898
|
}
|
|
7964
7899
|
};
|
|
7965
7900
|
goog.collections.maps.hasValue = function(map, val, valueEqualityFn) {
|
|
7966
7901
|
valueEqualityFn = void 0 === valueEqualityFn ? module$contents$goog$collections$maps_defaultEqualityFn : valueEqualityFn;
|
|
7967
|
-
for (var $jscomp$iter$24 = $jscomp.makeIterator(map.values()), $jscomp$key$v = $jscomp$iter$24.next(); !$jscomp$key$v.done; $jscomp$key$v = $jscomp$iter$24.next()) {
|
|
7968
|
-
if (valueEqualityFn($jscomp$key$v.value, val)) {
|
|
7902
|
+
for (var $jscomp$iter$24 = $jscomp.makeIterator(map.values()), $jscomp$key$1866876209$14$v = $jscomp$iter$24.next(); !$jscomp$key$1866876209$14$v.done; $jscomp$key$1866876209$14$v = $jscomp$iter$24.next()) {
|
|
7903
|
+
if (valueEqualityFn($jscomp$key$1866876209$14$v.value, val)) {
|
|
7969
7904
|
return !0;
|
|
7970
7905
|
}
|
|
7971
7906
|
}
|
|
@@ -7982,8 +7917,8 @@ goog.collections.maps.equals = function(map, otherMap, valueEqualityFn) {
|
|
|
7982
7917
|
if (map.size !== otherMap.size) {
|
|
7983
7918
|
return !1;
|
|
7984
7919
|
}
|
|
7985
|
-
for (var $jscomp$iter$25 = $jscomp.makeIterator(map.keys()), $jscomp$key$key = $jscomp$iter$25.next(); !$jscomp$key$key.done; $jscomp$key$key = $jscomp$iter$25.next()) {
|
|
7986
|
-
var key = $jscomp$key$key.value;
|
|
7920
|
+
for (var $jscomp$iter$25 = $jscomp.makeIterator(map.keys()), $jscomp$key$1866876209$15$key = $jscomp$iter$25.next(); !$jscomp$key$1866876209$15$key.done; $jscomp$key$1866876209$15$key = $jscomp$iter$25.next()) {
|
|
7921
|
+
var key = $jscomp$key$1866876209$15$key.value;
|
|
7987
7922
|
if (!otherMap.has(key) || !valueEqualityFn(map.get(key), otherMap.get(key))) {
|
|
7988
7923
|
return !1;
|
|
7989
7924
|
}
|
|
@@ -7991,15 +7926,15 @@ goog.collections.maps.equals = function(map, otherMap, valueEqualityFn) {
|
|
|
7991
7926
|
return !0;
|
|
7992
7927
|
};
|
|
7993
7928
|
goog.collections.maps.transpose = function(map) {
|
|
7994
|
-
for (var transposed = new Map(), $jscomp$iter$26 = $jscomp.makeIterator(map.keys()), $jscomp$key$key = $jscomp$iter$26.next(); !$jscomp$key$key.done; $jscomp$key$key = $jscomp$iter$26.next()) {
|
|
7995
|
-
var key = $jscomp$key$key.value, val = map.get(key);
|
|
7929
|
+
for (var transposed = new Map(), $jscomp$iter$26 = $jscomp.makeIterator(map.keys()), $jscomp$key$1866876209$16$key = $jscomp$iter$26.next(); !$jscomp$key$1866876209$16$key.done; $jscomp$key$1866876209$16$key = $jscomp$iter$26.next()) {
|
|
7930
|
+
var key = $jscomp$key$1866876209$16$key.value, val = map.get(key);
|
|
7996
7931
|
transposed.set(val, key);
|
|
7997
7932
|
}
|
|
7998
7933
|
return transposed;
|
|
7999
7934
|
};
|
|
8000
7935
|
goog.collections.maps.toObject = function(map) {
|
|
8001
|
-
for (var obj = {}, $jscomp$iter$27 = $jscomp.makeIterator(map.keys()), $jscomp$key$key = $jscomp$iter$27.next(); !$jscomp$key$key.done; $jscomp$key$key = $jscomp$iter$27.next()) {
|
|
8002
|
-
var key = $jscomp$key$key.value;
|
|
7936
|
+
for (var obj = {}, $jscomp$iter$27 = $jscomp.makeIterator(map.keys()), $jscomp$key$1866876209$17$key = $jscomp$iter$27.next(); !$jscomp$key$1866876209$17$key.done; $jscomp$key$1866876209$17$key = $jscomp$iter$27.next()) {
|
|
7937
|
+
var key = $jscomp$key$1866876209$17$key.value;
|
|
8003
7938
|
obj[key] = map.get(key);
|
|
8004
7939
|
}
|
|
8005
7940
|
return obj;
|
|
@@ -8727,8 +8662,8 @@ function module$contents$eeapiclient$request_params_processParams(params) {
|
|
|
8727
8662
|
}
|
|
8728
8663
|
module$exports$eeapiclient$request_params.processParams = module$contents$eeapiclient$request_params_processParams;
|
|
8729
8664
|
function module$contents$eeapiclient$request_params_buildQueryParams(params, mapping, passthroughParams) {
|
|
8730
|
-
for (var urlQueryParams = passthroughParams = void 0 === passthroughParams ? {} : passthroughParams, $jscomp$iter$28 = $jscomp.makeIterator(Object.entries(mapping)), $jscomp$key$ = $jscomp$iter$28.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$28.next()) {
|
|
8731
|
-
var $jscomp$destructuring$var27 = $jscomp.makeIterator($jscomp$key$.value), jsName__tsickle_destructured_1 = $jscomp$destructuring$var27.next().value, urlQueryParamName__tsickle_destructured_2 = $jscomp$destructuring$var27.next().value, jsName = jsName__tsickle_destructured_1, urlQueryParamName = urlQueryParamName__tsickle_destructured_2;
|
|
8665
|
+
for (var urlQueryParams = passthroughParams = void 0 === passthroughParams ? {} : passthroughParams, $jscomp$iter$28 = $jscomp.makeIterator(Object.entries(mapping)), $jscomp$key$1047461284$0$ = $jscomp$iter$28.next(); !$jscomp$key$1047461284$0$.done; $jscomp$key$1047461284$0$ = $jscomp$iter$28.next()) {
|
|
8666
|
+
var $jscomp$destructuring$var27 = $jscomp.makeIterator($jscomp$key$1047461284$0$.value), jsName__tsickle_destructured_1 = $jscomp$destructuring$var27.next().value, urlQueryParamName__tsickle_destructured_2 = $jscomp$destructuring$var27.next().value, jsName = jsName__tsickle_destructured_1, urlQueryParamName = urlQueryParamName__tsickle_destructured_2;
|
|
8732
8667
|
jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]);
|
|
8733
8668
|
}
|
|
8734
8669
|
return urlQueryParams;
|
|
@@ -8739,8 +8674,8 @@ module$exports$eeapiclient$request_params.bypassCorsPreflight = function(params)
|
|
|
8739
8674
|
var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1;
|
|
8740
8675
|
if (params.headers) {
|
|
8741
8676
|
hasContentType = null != params.headers["Content-Type"];
|
|
8742
|
-
for (var $jscomp$iter$29 = $jscomp.makeIterator(Object.entries(params.headers)), $jscomp$key$ = $jscomp$iter$29.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$29.next()) {
|
|
8743
|
-
var $jscomp$destructuring$var29 = $jscomp.makeIterator($jscomp$key$.value), key__tsickle_destructured_3 = $jscomp$destructuring$var29.next().value, value__tsickle_destructured_4 = $jscomp$destructuring$var29.next().value, key = key__tsickle_destructured_3, value = value__tsickle_destructured_4;
|
|
8677
|
+
for (var $jscomp$iter$29 = $jscomp.makeIterator(Object.entries(params.headers)), $jscomp$key$1047461284$1$ = $jscomp$iter$29.next(); !$jscomp$key$1047461284$1$.done; $jscomp$key$1047461284$1$ = $jscomp$iter$29.next()) {
|
|
8678
|
+
var $jscomp$destructuring$var29 = $jscomp.makeIterator($jscomp$key$1047461284$1$.value), key__tsickle_destructured_3 = $jscomp$destructuring$var29.next().value, value__tsickle_destructured_4 = $jscomp$destructuring$var29.next().value, key = key__tsickle_destructured_3, value = value__tsickle_destructured_4;
|
|
8744
8679
|
module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders.includes(key) ? safeHeaders[key] = value : (unsafeHeaders[key] = value, hasUnsafeHeaders = !0);
|
|
8745
8680
|
}
|
|
8746
8681
|
}
|
|
@@ -8790,8 +8725,8 @@ module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.build =
|
|
|
8790
8725
|
return Promise.all(this.files.map(function(f) {
|
|
8791
8726
|
return $jscomp$this$m667091202$6.encodeFile(f);
|
|
8792
8727
|
})).then(function(filePayloads) {
|
|
8793
|
-
for (var $jscomp$iter$30 = $jscomp.makeIterator(filePayloads), $jscomp$key$filePayload = $jscomp$iter$30.next(); !$jscomp$key$filePayload.done; $jscomp$key$filePayload = $jscomp$iter$30.next()) {
|
|
8794
|
-
payload += $jscomp$key$filePayload.value;
|
|
8728
|
+
for (var $jscomp$iter$30 = $jscomp.makeIterator(filePayloads), $jscomp$key$m667091202$9$filePayload = $jscomp$iter$30.next(); !$jscomp$key$m667091202$9$filePayload.done; $jscomp$key$m667091202$9$filePayload = $jscomp$iter$30.next()) {
|
|
8729
|
+
payload += $jscomp$key$m667091202$9$filePayload.value;
|
|
8795
8730
|
}
|
|
8796
8731
|
return payload += "\r\n--" + $jscomp$this$m667091202$6._boundary + "--";
|
|
8797
8732
|
});
|
|
@@ -17188,8 +17123,8 @@ goog.net.XhrIo.prototype.send = function(url, opt_method, opt_content, opt_heade
|
|
|
17188
17123
|
headers.set(key, opt_headers[key]);
|
|
17189
17124
|
}
|
|
17190
17125
|
} else if ("function" === typeof opt_headers.keys && "function" === typeof opt_headers.get) {
|
|
17191
|
-
for (var $jscomp$iter$31 = $jscomp.makeIterator(opt_headers.keys()), $jscomp$key$key = $jscomp$iter$31.next(); !$jscomp$key$key.done; $jscomp$key$key = $jscomp$iter$31.next()) {
|
|
17192
|
-
var key$jscomp$0 = $jscomp$key$key.value;
|
|
17126
|
+
for (var $jscomp$iter$31 = $jscomp.makeIterator(opt_headers.keys()), $jscomp$key$m71669834$55$key = $jscomp$iter$31.next(); !$jscomp$key$m71669834$55$key.done; $jscomp$key$m71669834$55$key = $jscomp$iter$31.next()) {
|
|
17127
|
+
var key$jscomp$0 = $jscomp$key$m71669834$55$key.value;
|
|
17193
17128
|
headers.set(key$jscomp$0, opt_headers.get(key$jscomp$0));
|
|
17194
17129
|
}
|
|
17195
17130
|
} else {
|
|
@@ -17200,8 +17135,8 @@ goog.net.XhrIo.prototype.send = function(url, opt_method, opt_content, opt_heade
|
|
|
17200
17135
|
return goog.string.caseInsensitiveEquals(goog.net.XhrIo.CONTENT_TYPE_HEADER, header);
|
|
17201
17136
|
}), contentIsFormData = goog.global.FormData && content instanceof goog.global.FormData;
|
|
17202
17137
|
!module$contents$goog$array_contains(goog.net.XhrIo.METHODS_WITH_FORM_DATA, method) || contentTypeKey || contentIsFormData || headers.set(goog.net.XhrIo.CONTENT_TYPE_HEADER, goog.net.XhrIo.FORM_CONTENT_TYPE);
|
|
17203
|
-
for (var $jscomp$iter$32 = $jscomp.makeIterator(headers), $jscomp$key$ = $jscomp$iter$32.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$32.next()) {
|
|
17204
|
-
var $jscomp$destructuring$var31 = $jscomp.makeIterator($jscomp$key$.value), key$jscomp$1 = $jscomp$destructuring$var31.next().value, value = $jscomp$destructuring$var31.next().value;
|
|
17138
|
+
for (var $jscomp$iter$32 = $jscomp.makeIterator(headers), $jscomp$key$m71669834$56$ = $jscomp$iter$32.next(); !$jscomp$key$m71669834$56$.done; $jscomp$key$m71669834$56$ = $jscomp$iter$32.next()) {
|
|
17139
|
+
var $jscomp$destructuring$var31 = $jscomp.makeIterator($jscomp$key$m71669834$56$.value), key$jscomp$1 = $jscomp$destructuring$var31.next().value, value = $jscomp$destructuring$var31.next().value;
|
|
17205
17140
|
this.xhr_.setRequestHeader(key$jscomp$1, value);
|
|
17206
17141
|
}
|
|
17207
17142
|
this.responseType_ && (this.xhr_.responseType = this.responseType_);
|
|
@@ -17446,14 +17381,6 @@ goog.debug.entryPointRegistry.register(function(transformer) {
|
|
|
17446
17381
|
});
|
|
17447
17382
|
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"};
|
|
17448
17383
|
module$exports$safevalues$builders$sensitive_attributes.SECURITY_SENSITIVE_ATTRIBUTES = "src srcdoc codebase data href rel action formaction sandbox cite poster icon".split(" ");
|
|
17449
|
-
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"};
|
|
17450
|
-
module$exports$safevalues$internals$secrets.secretToken = {};
|
|
17451
|
-
function module$contents$safevalues$internals$secrets_ensureTokenIsValid(token) {
|
|
17452
|
-
if (goog.DEBUG && token !== module$exports$safevalues$internals$secrets.secretToken) {
|
|
17453
|
-
throw Error("Bad secret");
|
|
17454
|
-
}
|
|
17455
|
-
}
|
|
17456
|
-
module$exports$safevalues$internals$secrets.ensureTokenIsValid = module$contents$safevalues$internals$secrets_ensureTokenIsValid;
|
|
17457
17384
|
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"};
|
|
17458
17385
|
module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix = function() {
|
|
17459
17386
|
};
|
|
@@ -17522,10 +17449,6 @@ function module$contents$safevalues$builders$attribute_builders_safeAttrPrefix(t
|
|
|
17522
17449
|
return module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal(attrPrefix);
|
|
17523
17450
|
}
|
|
17524
17451
|
;var module$exports$safevalues$builders$document_fragment_builders = {}, 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"};
|
|
17525
|
-
function module$contents$safevalues$builders$document_fragment_builders_safeFragment(templateObj) {
|
|
17526
|
-
return module$contents$safevalues$builders$document_fragment_builders_htmlFragment(templateObj);
|
|
17527
|
-
}
|
|
17528
|
-
module$exports$safevalues$builders$document_fragment_builders.safeFragment = module$contents$safevalues$builders$document_fragment_builders_safeFragment;
|
|
17529
17452
|
function module$contents$safevalues$builders$document_fragment_builders_htmlFragment(templateObj) {
|
|
17530
17453
|
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, 0);
|
|
17531
17454
|
return document.createRange().createContextualFragment(module$contents$safevalues$internals$html_impl_unwrapHtml(module$contents$safevalues$internals$html_impl_createHtmlInternal(templateObj[0])));
|
|
@@ -17574,11 +17497,7 @@ module$exports$safevalues$builders$style_sheet_builders.safeStyleSheet = functio
|
|
|
17574
17497
|
module$exports$safevalues$builders$style_sheet_builders.concatStyleSheets = function(sheets) {
|
|
17575
17498
|
return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(sheets.map(module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet).join(""));
|
|
17576
17499
|
};
|
|
17577
|
-
var module$contents$safevalues$
|
|
17578
|
-
function module$contents$safevalues$internals$pure_pure(valueOf) {
|
|
17579
|
-
return {valueOf:valueOf}.valueOf();
|
|
17580
|
-
}
|
|
17581
|
-
;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"};
|
|
17500
|
+
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"};
|
|
17582
17501
|
function module$contents$safevalues$builders$url_builders_isSafeMimeType(mimeType) {
|
|
17583
17502
|
var match = mimeType.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i);
|
|
17584
17503
|
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]));
|
|
@@ -17618,7 +17537,7 @@ module$exports$safevalues$builders$url_builders.SanitizableUrlScheme = {TEL:modu
|
|
|
17618
17537
|
return /^[^:]*([/?#]|$)/.test(url);
|
|
17619
17538
|
}), MAILTO:module$contents$safevalues$builders$url_builders_simpleScheme("mailto"), INTENT:module$contents$safevalues$builders$url_builders_simpleScheme("intent"), MARKET:module$contents$safevalues$builders$url_builders_simpleScheme("market"), ITMS:module$contents$safevalues$builders$url_builders_simpleScheme("itms"), ITMS_APPSS:module$contents$safevalues$builders$url_builders_simpleScheme("itms-appss"),
|
|
17620
17539
|
ITMS_SERVICES:module$contents$safevalues$builders$url_builders_simpleScheme("itms-services"), FACEBOOK_MESSENGER:module$contents$safevalues$builders$url_builders_simpleScheme("fb-messenger"), WHATSAPP:module$contents$safevalues$builders$url_builders_simpleScheme("whatsapp"), SIP:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
|
|
17621
|
-
return 0 === url.indexOf("sip
|
|
17540
|
+
return 0 === url.indexOf("sip:") || 0 === url.indexOf("sips:");
|
|
17622
17541
|
}), SMS:module$contents$safevalues$builders$url_builders_simpleScheme("sms"), VND_YOUTUBE:module$contents$safevalues$builders$url_builders_simpleScheme("vnd.youtube")};
|
|
17623
17542
|
var module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES = [module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.DATA, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.HTTP, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.HTTPS, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.MAILTO,
|
|
17624
17543
|
module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.FTP, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.RELATIVE];
|
|
@@ -18106,8 +18025,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
18106
18025
|
return document.createTextNode(textNode.data);
|
|
18107
18026
|
};
|
|
18108
18027
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
18109
|
-
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$33 = $jscomp.makeIterator(dirtyAttributes), $jscomp$key$ = $jscomp$iter$33.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$33.next()) {
|
|
18110
|
-
var $jscomp$destructuring$var33 = $jscomp$key$.value, name = $jscomp$destructuring$var33.name, value = $jscomp$destructuring$var33.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
|
|
18028
|
+
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$33 = $jscomp.makeIterator(dirtyAttributes), $jscomp$key$m1803429925$25$ = $jscomp$iter$33.next(); !$jscomp$key$m1803429925$25$.done; $jscomp$key$m1803429925$25$ = $jscomp$iter$33.next()) {
|
|
18029
|
+
var $jscomp$destructuring$var33 = $jscomp$key$m1803429925$25$.value, name = $jscomp$destructuring$var33.name, value = $jscomp$destructuring$var33.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
|
|
18111
18030
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
18112
18031
|
switch(policy.policyAction) {
|
|
18113
18032
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
|
|
@@ -18160,8 +18079,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
18160
18079
|
if (!conditions) {
|
|
18161
18080
|
return !0;
|
|
18162
18081
|
}
|
|
18163
|
-
for (var $jscomp$iter$34 = $jscomp.makeIterator(conditions), $jscomp$key$ = $jscomp$iter$34.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$34.next()) {
|
|
18164
|
-
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$tmpm1803429925$0 = void 0, value = null == ($jscomp$optchain$tmpm1803429925$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) ? void 0 : $jscomp$optchain$tmpm1803429925$0.value;
|
|
18082
|
+
for (var $jscomp$iter$34 = $jscomp.makeIterator(conditions), $jscomp$key$m1803429925$26$ = $jscomp$iter$34.next(); !$jscomp$key$m1803429925$26$.done; $jscomp$key$m1803429925$26$ = $jscomp$iter$34.next()) {
|
|
18083
|
+
var $jscomp$destructuring$var35 = $jscomp.makeIterator($jscomp$key$m1803429925$26$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var35.next().value, expectedValues = $jscomp$destructuring$var35.next().value, $jscomp$optchain$tmpm1803429925$0 = void 0, value = null == ($jscomp$optchain$tmpm1803429925$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) ? void 0 : $jscomp$optchain$tmpm1803429925$0.value;
|
|
18165
18084
|
if (value && !expectedValues.has(value)) {
|
|
18166
18085
|
return !1;
|
|
18167
18086
|
}
|
|
@@ -18215,8 +18134,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
18215
18134
|
this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.defaultSanitizerTable;
|
|
18216
18135
|
};
|
|
18217
18136
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.onlyAllowElements = function(elementSet) {
|
|
18218
|
-
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$35 = $jscomp.makeIterator(elementSet), $jscomp$key$element = $jscomp$iter$35.next(); !$jscomp$key$element.done; $jscomp$key$element = $jscomp$iter$35.next()) {
|
|
18219
|
-
var element = $jscomp$key$element.value;
|
|
18137
|
+
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$35 = $jscomp.makeIterator(elementSet), $jscomp$key$m1412690177$0$element = $jscomp$iter$35.next(); !$jscomp$key$m1412690177$0$element.done; $jscomp$key$m1412690177$0$element = $jscomp$iter$35.next()) {
|
|
18138
|
+
var element = $jscomp$key$m1412690177$0$element.value;
|
|
18220
18139
|
element = element.toUpperCase();
|
|
18221
18140
|
if (!this.sanitizerTable.isAllowedElement(element)) {
|
|
18222
18141
|
throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
|
|
@@ -18234,8 +18153,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
18234
18153
|
throw Error("Element: " + element + " is not a custom element");
|
|
18235
18154
|
}
|
|
18236
18155
|
if (allowedAttributes) {
|
|
18237
|
-
for (var elementPolicy = new Map(), $jscomp$iter$36 = $jscomp.makeIterator(allowedAttributes), $jscomp$key$attribute = $jscomp$iter$36.next(); !$jscomp$key$attribute.done; $jscomp$key$attribute = $jscomp$iter$36.next()) {
|
|
18238
|
-
elementPolicy.set($jscomp$key$attribute.value, {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
|
|
18156
|
+
for (var elementPolicy = new Map(), $jscomp$iter$36 = $jscomp.makeIterator(allowedAttributes), $jscomp$key$m1412690177$1$attribute = $jscomp$iter$36.next(); !$jscomp$key$m1412690177$1$attribute.done; $jscomp$key$m1412690177$1$attribute = $jscomp$iter$36.next()) {
|
|
18157
|
+
elementPolicy.set($jscomp$key$m1412690177$1$attribute.value, {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
|
|
18239
18158
|
}
|
|
18240
18159
|
allowedElementPolicies.set(element, elementPolicy);
|
|
18241
18160
|
} else {
|
|
@@ -18245,15 +18164,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
18245
18164
|
return this;
|
|
18246
18165
|
};
|
|
18247
18166
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.onlyAllowAttributes = function(attributeSet) {
|
|
18248
|
-
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$37 = $jscomp.makeIterator(attributeSet), $jscomp$key$attribute = $jscomp$iter$37.next(); !$jscomp$key$attribute.done; $jscomp$key$attribute = $jscomp$iter$37.next()) {
|
|
18249
|
-
var attribute = $jscomp$key$attribute.value;
|
|
18167
|
+
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$37 = $jscomp.makeIterator(attributeSet), $jscomp$key$m1412690177$2$attribute = $jscomp$iter$37.next(); !$jscomp$key$m1412690177$2$attribute.done; $jscomp$key$m1412690177$2$attribute = $jscomp$iter$37.next()) {
|
|
18168
|
+
var attribute = $jscomp$key$m1412690177$2$attribute.value;
|
|
18250
18169
|
this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
|
|
18251
18170
|
this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
|
|
18252
18171
|
}
|
|
18253
|
-
for (var $jscomp$iter$39 = $jscomp.makeIterator(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$ = $jscomp$iter$39.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$39.next()) {
|
|
18254
|
-
for (var $jscomp$destructuring$var37 = $jscomp.makeIterator($jscomp$key$.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$38 = $jscomp.makeIterator(originalElementPolicy__tsickle_destructured_2.entries()), $jscomp$key
|
|
18172
|
+
for (var $jscomp$iter$39 = $jscomp.makeIterator(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$m1412690177$4$ = $jscomp$iter$39.next(); !$jscomp$key$m1412690177$4$.done; $jscomp$key$m1412690177$4$ = $jscomp$iter$39.next()) {
|
|
18173
|
+
for (var $jscomp$destructuring$var37 = $jscomp.makeIterator($jscomp$key$m1412690177$4$.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$38 = $jscomp.makeIterator(originalElementPolicy__tsickle_destructured_2.entries()), $jscomp$key$m1412690177$3$ = $jscomp$iter$38.next(); !$jscomp$key$m1412690177$3$.done; $jscomp$key$m1412690177$3$ =
|
|
18255
18174
|
$jscomp$iter$38.next()) {
|
|
18256
|
-
var $jscomp$destructuring$var39 = $jscomp.makeIterator($jscomp$key
|
|
18175
|
+
var $jscomp$destructuring$var39 = $jscomp.makeIterator($jscomp$key$m1412690177$3$.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;
|
|
18257
18176
|
attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
|
|
18258
18177
|
}
|
|
18259
18178
|
elementPolicies.set(elementName, newElementPolicy);
|
|
@@ -18262,8 +18181,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
18262
18181
|
return this;
|
|
18263
18182
|
};
|
|
18264
18183
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.allowDataAttributes = function(attributes) {
|
|
18265
|
-
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$40 = $jscomp.makeIterator(attributes), $jscomp$key$attribute = $jscomp$iter$40.next(); !$jscomp$key$attribute.done; $jscomp$key$attribute = $jscomp$iter$40.next()) {
|
|
18266
|
-
var attribute = $jscomp$key$attribute.value;
|
|
18184
|
+
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$40 = $jscomp.makeIterator(attributes), $jscomp$key$m1412690177$5$attribute = $jscomp$iter$40.next(); !$jscomp$key$m1412690177$5$attribute.done; $jscomp$key$m1412690177$5$attribute = $jscomp$iter$40.next()) {
|
|
18185
|
+
var attribute = $jscomp$key$m1412690177$5$attribute.value;
|
|
18267
18186
|
if (0 !== attribute.indexOf("data-")) {
|
|
18268
18187
|
throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
|
|
18269
18188
|
}
|
|
@@ -18540,7 +18459,6 @@ module$exports$safevalues$reporting$reporting.TEST_ONLY = {reset:function() {
|
|
|
18540
18459
|
var module$exports$safevalues$index = {}, module$contents$safevalues$index_module = module$contents$safevalues$index_module || {id:"third_party/javascript/safevalues/index.closure.js"};
|
|
18541
18460
|
module$exports$safevalues$index.safeAttrPrefix = module$contents$safevalues$builders$attribute_builders_safeAttrPrefix;
|
|
18542
18461
|
module$exports$safevalues$index.htmlFragment = module$contents$safevalues$builders$document_fragment_builders_htmlFragment;
|
|
18543
|
-
module$exports$safevalues$index.safeFragment = module$contents$safevalues$builders$document_fragment_builders_safeFragment;
|
|
18544
18462
|
module$exports$safevalues$index.svgFragment = module$contents$safevalues$builders$document_fragment_builders_svgFragment;
|
|
18545
18463
|
module$exports$safevalues$index.concatHtmls = module$exports$safevalues$builders$html_builders.concatHtmls;
|
|
18546
18464
|
module$exports$safevalues$index.doctypeHtml = module$exports$safevalues$builders$html_builders.doctypeHtml;
|
|
@@ -18586,7 +18504,7 @@ module$exports$safevalues$index.TrustedResourceUrl = goog.html.TrustedResourceUr
|
|
|
18586
18504
|
module$exports$safevalues$index.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
18587
18505
|
module$exports$safevalues$index.EMPTY_SCRIPT = module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT;
|
|
18588
18506
|
module$exports$safevalues$index.isScript = module$contents$safevalues$internals$script_impl_isScript;
|
|
18589
|
-
module$exports$safevalues$index.SafeScript = module$
|
|
18507
|
+
module$exports$safevalues$index.SafeScript = module$exports$safevalues$internals$script_impl.SafeScript;
|
|
18590
18508
|
module$exports$safevalues$index.unwrapScript = module$contents$safevalues$internals$script_impl_unwrapScript;
|
|
18591
18509
|
module$exports$safevalues$index.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
|
|
18592
18510
|
module$exports$safevalues$index.SafeStyle = module$contents$goog$html$SafeStyle_SafeStyle;
|
|
@@ -18606,7 +18524,6 @@ module$exports$safevalues$index.styleSheetToHtml = module$exports$safevalues$bui
|
|
|
18606
18524
|
module$exports$safevalues$index.safeStyleRule = module$exports$safevalues$builders$style_sheet_builders.safeStyleRule;
|
|
18607
18525
|
safevalues.safeAttrPrefix = module$contents$safevalues$builders$attribute_builders_safeAttrPrefix;
|
|
18608
18526
|
safevalues.htmlFragment = module$contents$safevalues$builders$document_fragment_builders_htmlFragment;
|
|
18609
|
-
safevalues.safeFragment = module$contents$safevalues$builders$document_fragment_builders_safeFragment;
|
|
18610
18527
|
safevalues.svgFragment = module$contents$safevalues$builders$document_fragment_builders_svgFragment;
|
|
18611
18528
|
safevalues.concatHtmls = module$exports$safevalues$index.concatHtmls;
|
|
18612
18529
|
safevalues.doctypeHtml = module$exports$safevalues$index.doctypeHtml;
|
|
@@ -18654,7 +18571,7 @@ safevalues.TrustedResourceUrl = goog.html.TrustedResourceUrl;
|
|
|
18654
18571
|
safevalues.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
18655
18572
|
safevalues.EMPTY_SCRIPT = module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT;
|
|
18656
18573
|
safevalues.isScript = module$contents$safevalues$internals$script_impl_isScript;
|
|
18657
|
-
safevalues.SafeScript = module$
|
|
18574
|
+
safevalues.SafeScript = module$exports$safevalues$internals$script_impl.SafeScript;
|
|
18658
18575
|
safevalues.unwrapScript = module$contents$safevalues$internals$script_impl_unwrapScript;
|
|
18659
18576
|
safevalues.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
|
|
18660
18577
|
safevalues.SafeStyle = module$contents$goog$html$SafeStyle_SafeStyle;
|
|
@@ -18672,11 +18589,11 @@ safevalues.HtmlFormatter = module$exports$safevalues$builders$html_formatter.Htm
|
|
|
18672
18589
|
safevalues.createHtml = module$exports$safevalues$index.createHtml;
|
|
18673
18590
|
safevalues.styleSheetToHtml = module$exports$safevalues$index.styleSheetToHtml;
|
|
18674
18591
|
safevalues.safeStyleRule = module$exports$safevalues$index.safeStyleRule;
|
|
18675
|
-
var $jscomp$templatelit$294235699$
|
|
18592
|
+
var $jscomp$templatelit$294235699$96 = $jscomp.createTemplateTagFirstArg(["https://accounts.google.com/gsi/client"]);
|
|
18676
18593
|
ee.apiclient = {};
|
|
18677
18594
|
var module$contents$ee$apiclient_apiclient = {};
|
|
18678
18595
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
18679
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
18596
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.388";
|
|
18680
18597
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
18681
18598
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
18682
18599
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -18837,8 +18754,8 @@ module$contents$ee$apiclient_BatchRequestService.prototype.send = function(param
|
|
|
18837
18754
|
module$contents$ee$apiclient_BatchRequestService.prototype.makeRequest = function(params) {
|
|
18838
18755
|
};
|
|
18839
18756
|
module$contents$ee$apiclient_apiclient.parseBatchReply = function(contentType, responseText, handle) {
|
|
18840
|
-
for (var boundary = contentType.split("; boundary=")[1], $jscomp$iter$41 = $jscomp.makeIterator(responseText.split("--" + boundary)), $jscomp$key$part = $jscomp$iter$41.next(); !$jscomp$key$part.done; $jscomp$key$part = $jscomp$iter$41.next()) {
|
|
18841
|
-
var groups = $jscomp$key$part.value.split("\r\n\r\n");
|
|
18757
|
+
for (var boundary = contentType.split("; boundary=")[1], $jscomp$iter$41 = $jscomp.makeIterator(responseText.split("--" + boundary)), $jscomp$key$294235699$97$part = $jscomp$iter$41.next(); !$jscomp$key$294235699$97$part.done; $jscomp$key$294235699$97$part = $jscomp$iter$41.next()) {
|
|
18758
|
+
var groups = $jscomp$key$294235699$97$part.value.split("\r\n\r\n");
|
|
18842
18759
|
if (!(3 > groups.length)) {
|
|
18843
18760
|
var id = groups[0].match(/\r\nContent-ID: <response-([^>]*)>/)[1], status = Number(groups[1].match(/^HTTP\S*\s(\d+)\s/)[1]), text = groups.slice(2).join("\r\n\r\n");
|
|
18844
18761
|
handle(id, status, text);
|
|
@@ -18877,13 +18794,12 @@ module$contents$ee$apiclient_apiclient.setAuthToken = function(clientId, tokenTy
|
|
|
18877
18794
|
var tokenObject = {token_type:tokenType, access_token:accessToken, state:scopes.join(" "), expires_in:expiresIn};
|
|
18878
18795
|
module$contents$ee$apiclient_apiclient.handleAuthResult_(void 0, void 0, tokenObject);
|
|
18879
18796
|
!1 === updateAuthLibrary ? callback && callback() : module$contents$ee$apiclient_apiclient.ensureAuthLibLoaded_(function() {
|
|
18880
|
-
goog.global.gapi.client.setToken(tokenObject);
|
|
18881
18797
|
callback && callback();
|
|
18882
18798
|
});
|
|
18883
18799
|
};
|
|
18884
18800
|
module$contents$ee$apiclient_apiclient.refreshAuthToken = function(success, error, onImmediateFailed) {
|
|
18885
18801
|
if (module$contents$ee$apiclient_apiclient.isAuthTokenRefreshingEnabled_()) {
|
|
18886
|
-
var authArgs = {client_id:String(module$contents$ee$apiclient_apiclient.authClientId_),
|
|
18802
|
+
var authArgs = {client_id:String(module$contents$ee$apiclient_apiclient.authClientId_), scope:module$contents$ee$apiclient_apiclient.authScopes_.join(" "), plugin_name:"earthengine"};
|
|
18887
18803
|
module$contents$ee$apiclient_apiclient.authTokenRefresher_(authArgs, function(result) {
|
|
18888
18804
|
if ("immediate_failed" == result.error && onImmediateFailed) {
|
|
18889
18805
|
onImmediateFailed();
|
|
@@ -18892,7 +18808,7 @@ module$contents$ee$apiclient_apiclient.refreshAuthToken = function(success, erro
|
|
|
18892
18808
|
try {
|
|
18893
18809
|
module$contents$ee$apiclient_apiclient.ensureAuthLibLoaded_(function() {
|
|
18894
18810
|
try {
|
|
18895
|
-
|
|
18811
|
+
module$contents$ee$apiclient_apiclient.handleAuthResult_(success, error, result);
|
|
18896
18812
|
} catch (e) {
|
|
18897
18813
|
error(e.toString());
|
|
18898
18814
|
}
|
|
@@ -18967,8 +18883,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
18967
18883
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
18968
18884
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
18969
18885
|
method = method || "POST";
|
|
18970
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
18971
|
-
"0.1.
|
|
18886
|
+
var headers = {"Content-Type":contentType}, version = "0.1.388";
|
|
18887
|
+
"0.1.388" === version && (version = "latest");
|
|
18972
18888
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
18973
18889
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
18974
18890
|
if (null != authToken) {
|
|
@@ -19077,22 +18993,14 @@ module$contents$ee$apiclient_apiclient.handleResponse_ = function(status, getRes
|
|
|
19077
18993
|
};
|
|
19078
18994
|
module$contents$ee$apiclient_apiclient.ensureAuthLibLoaded_ = function(callback) {
|
|
19079
18995
|
var done = function() {
|
|
19080
|
-
|
|
19081
|
-
|
|
18996
|
+
module$contents$ee$apiclient_apiclient.authTokenRefresher_ || module$contents$ee$apiclient_apiclient.setAuthTokenRefresher(function(authArgs, refresherCallback) {
|
|
18997
|
+
goog.global.google.accounts.oauth2.initTokenClient({client_id:authArgs.client_id, callback:refresherCallback, scope:authArgs.scope}).requestAccessToken();
|
|
18998
|
+
});
|
|
19082
18999
|
callback();
|
|
19083
19000
|
};
|
|
19084
|
-
|
|
19085
|
-
done();
|
|
19086
|
-
}
|
|
19087
|
-
for (var callbackName = Date.now().toString(36); callbackName in goog.global;) {
|
|
19088
|
-
callbackName += "_";
|
|
19089
|
-
}
|
|
19090
|
-
goog.global[callbackName] = function() {
|
|
19091
|
-
delete goog.global[callbackName];
|
|
19092
|
-
done();
|
|
19093
|
-
};
|
|
19094
|
-
goog.net.jsloader.safeLoad(module$contents$safevalues$builders$resource_url_builders_trustedResourceUrl($jscomp$templatelit$294235699$94, callbackName));
|
|
19095
|
-
}
|
|
19001
|
+
(function() {
|
|
19002
|
+
goog.isObject(goog.global.default_gsi) ? done() : goog.net.jsloader.safeLoad(module$contents$safevalues$builders$resource_url_builders_trustedResourceUrl($jscomp$templatelit$294235699$96)).addCallback(done);
|
|
19003
|
+
})();
|
|
19096
19004
|
};
|
|
19097
19005
|
module$contents$ee$apiclient_apiclient.handleAuthResult_ = function(success, error, result) {
|
|
19098
19006
|
if (result.access_token) {
|
|
@@ -19109,8 +19017,8 @@ module$contents$ee$apiclient_apiclient.handleAuthResult_ = function(success, err
|
|
|
19109
19017
|
}
|
|
19110
19018
|
};
|
|
19111
19019
|
module$contents$ee$apiclient_apiclient.makeRequest_ = function(params) {
|
|
19112
|
-
for (var request = new goog.Uri.QueryData(), $jscomp$iter$42 = $jscomp.makeIterator(Object.entries(params)), $jscomp$key$ = $jscomp$iter$42.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$42.next()) {
|
|
19113
|
-
var $jscomp$destructuring$var47 = $jscomp.makeIterator($jscomp$key$.value), name = $jscomp$destructuring$var47.next().value, item = $jscomp$destructuring$var47.next().value;
|
|
19020
|
+
for (var request = new goog.Uri.QueryData(), $jscomp$iter$42 = $jscomp.makeIterator(Object.entries(params)), $jscomp$key$294235699$98$ = $jscomp$iter$42.next(); !$jscomp$key$294235699$98$.done; $jscomp$key$294235699$98$ = $jscomp$iter$42.next()) {
|
|
19021
|
+
var $jscomp$destructuring$var47 = $jscomp.makeIterator($jscomp$key$294235699$98$.value), name = $jscomp$destructuring$var47.next().value, item = $jscomp$destructuring$var47.next().value;
|
|
19114
19022
|
request.set(name, item);
|
|
19115
19023
|
}
|
|
19116
19024
|
return request;
|
|
@@ -19209,7 +19117,6 @@ module$contents$ee$apiclient_apiclient.AUTH_SCOPE_ = "https://www.googleapis.com
|
|
|
19209
19117
|
module$contents$ee$apiclient_apiclient.READ_ONLY_AUTH_SCOPE_ = "https://www.googleapis.com/auth/earthengine.readonly";
|
|
19210
19118
|
module$contents$ee$apiclient_apiclient.CLOUD_PLATFORM_SCOPE_ = "https://www.googleapis.com/auth/cloud-platform";
|
|
19211
19119
|
module$contents$ee$apiclient_apiclient.DEFAULT_AUTH_SCOPES_ = [module$contents$ee$apiclient_apiclient.AUTH_SCOPE_, module$contents$ee$apiclient_apiclient.CLOUD_PLATFORM_SCOPE_];
|
|
19212
|
-
module$contents$ee$apiclient_apiclient.AUTH_LIBRARY_URL_ = goog.string.Const.from("https://apis.google.com/js/client.js?onload=%{onload}");
|
|
19213
19120
|
module$contents$ee$apiclient_apiclient.STORAGE_SCOPE_ = "https://www.googleapis.com/auth/devstorage.read_write";
|
|
19214
19121
|
module$contents$ee$apiclient_apiclient.cloudApiKey_ = null;
|
|
19215
19122
|
module$contents$ee$apiclient_apiclient.initialized_ = !1;
|
|
@@ -19228,6 +19135,8 @@ module$contents$ee$apiclient_apiclient.DEFAULT_API_BASE_URL_ = "https://eartheng
|
|
|
19228
19135
|
module$contents$ee$apiclient_apiclient.DEFAULT_TILE_BASE_URL_ = "https://earthengine.googleapis.com";
|
|
19229
19136
|
module$contents$ee$apiclient_apiclient.AuthArgs = function() {
|
|
19230
19137
|
};
|
|
19138
|
+
var module$contents$ee$apiclient_TokenClient = function() {
|
|
19139
|
+
};
|
|
19231
19140
|
module$contents$ee$apiclient_apiclient.AuthResponse = function() {
|
|
19232
19141
|
};
|
|
19233
19142
|
ee.apiclient.Call = module$contents$ee$apiclient_Call;
|
|
@@ -19463,8 +19372,8 @@ ee.rpc_convert.algorithms = function(result) {
|
|
|
19463
19372
|
algorithm.deprecated && (internalAlgorithm.deprecated = algorithm.deprecationReason);
|
|
19464
19373
|
algorithm.sourceCodeUri && (internalAlgorithm.sourceCodeUri = algorithm.sourceCodeUri);
|
|
19465
19374
|
return internalAlgorithm;
|
|
19466
|
-
}, internalAlgorithms = {}, $jscomp$iter$43 = $jscomp.makeIterator(result.algorithms || []), $jscomp$key$algorithm = $jscomp$iter$43.next(); !$jscomp$key$algorithm.done; $jscomp$key$algorithm = $jscomp$iter$43.next()) {
|
|
19467
|
-
var algorithm = $jscomp$key$algorithm.value, name = algorithm.name.replace(/^algorithms\//, "");
|
|
19375
|
+
}, internalAlgorithms = {}, $jscomp$iter$43 = $jscomp.makeIterator(result.algorithms || []), $jscomp$key$1418108943$48$algorithm = $jscomp$iter$43.next(); !$jscomp$key$1418108943$48$algorithm.done; $jscomp$key$1418108943$48$algorithm = $jscomp$iter$43.next()) {
|
|
19376
|
+
var algorithm = $jscomp$key$1418108943$48$algorithm.value, name = algorithm.name.replace(/^algorithms\//, "");
|
|
19468
19377
|
internalAlgorithms[name] = convertAlgorithm(algorithm);
|
|
19469
19378
|
}
|
|
19470
19379
|
return internalAlgorithms;
|
|
@@ -19613,8 +19522,8 @@ ee.rpc_convert.getListToListAssets = function(param) {
|
|
|
19613
19522
|
param.bbox && param.region && console.warn("Multiple request parameters converted to region");
|
|
19614
19523
|
for (var allKeys = "id num starttime endtime bbox region".split(" "), $jscomp$iter$44 = $jscomp.makeIterator(Object.keys(param).filter(function(k) {
|
|
19615
19524
|
return !allKeys.includes(k);
|
|
19616
|
-
})), $jscomp$key$key = $jscomp$iter$44.next(); !$jscomp$key$key.done; $jscomp$key$key = $jscomp$iter$44.next()) {
|
|
19617
|
-
console.warn("Unrecognized key " + $jscomp$key$key.value + " ignored");
|
|
19525
|
+
})), $jscomp$key$1418108943$49$key = $jscomp$iter$44.next(); !$jscomp$key$1418108943$49$key.done; $jscomp$key$1418108943$49$key = $jscomp$iter$44.next()) {
|
|
19526
|
+
console.warn("Unrecognized key " + $jscomp$key$1418108943$49$key.value + " ignored");
|
|
19618
19527
|
}
|
|
19619
19528
|
return ee.rpc_convert.processListImagesParams(assetsRequest);
|
|
19620
19529
|
};
|
|
@@ -19837,8 +19746,8 @@ ee.rpc_convert.parseFilterParamsFromListImages_ = function(params) {
|
|
|
19837
19746
|
})) {
|
|
19838
19747
|
throw Error('Filter parameter "properties" must be an array of strings');
|
|
19839
19748
|
}
|
|
19840
|
-
for (var $jscomp$iter$45 = $jscomp.makeIterator(params.properties), $jscomp$key$propertyQuery = $jscomp$iter$45.next(); !$jscomp$key$propertyQuery.done; $jscomp$key$propertyQuery = $jscomp$iter$45.next()) {
|
|
19841
|
-
queryStrings.push($jscomp$key$propertyQuery.value.trim().replace(/^(properties\.)?/, "properties."));
|
|
19749
|
+
for (var $jscomp$iter$45 = $jscomp.makeIterator(params.properties), $jscomp$key$1418108943$50$propertyQuery = $jscomp$iter$45.next(); !$jscomp$key$1418108943$50$propertyQuery.done; $jscomp$key$1418108943$50$propertyQuery = $jscomp$iter$45.next()) {
|
|
19750
|
+
queryStrings.push($jscomp$key$1418108943$50$propertyQuery.value.trim().replace(/^(properties\.)?/, "properties."));
|
|
19842
19751
|
}
|
|
19843
19752
|
delete params.properties;
|
|
19844
19753
|
}
|
|
@@ -20174,8 +20083,8 @@ ee.Serializer.encodeCloudApiPretty = function(obj) {
|
|
|
20174
20083
|
if (!goog.isObject(object)) {
|
|
20175
20084
|
return object;
|
|
20176
20085
|
}
|
|
20177
|
-
for (var ret = Array.isArray(object) ? [] : {}, isNode = object instanceof Object.getPrototypeOf(module$exports$eeapiclient$ee_api_client.ValueNode), $jscomp$iter$46 = $jscomp.makeIterator(Object.entries(isNode ? object.Serializable$values : object)), $jscomp$key$ = $jscomp$iter$46.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$46.next()) {
|
|
20178
|
-
var $jscomp$destructuring$var51 = $jscomp.makeIterator($jscomp$key$.value), key = $jscomp$destructuring$var51.next().value, val = $jscomp$destructuring$var51.next().value;
|
|
20086
|
+
for (var ret = Array.isArray(object) ? [] : {}, isNode = object instanceof Object.getPrototypeOf(module$exports$eeapiclient$ee_api_client.ValueNode), $jscomp$iter$46 = $jscomp.makeIterator(Object.entries(isNode ? object.Serializable$values : object)), $jscomp$key$1175707268$28$ = $jscomp$iter$46.next(); !$jscomp$key$1175707268$28$.done; $jscomp$key$1175707268$28$ = $jscomp$iter$46.next()) {
|
|
20087
|
+
var $jscomp$destructuring$var51 = $jscomp.makeIterator($jscomp$key$1175707268$28$.value), key = $jscomp$destructuring$var51.next().value, val = $jscomp$destructuring$var51.next().value;
|
|
20179
20088
|
isNode ? null !== val && (ret[key] = "functionDefinitionValue" === key && null != val.body ? {argumentNames:val.argumentNames, body:walkObject(values[val.body])} : "functionInvocationValue" === key && null != val.functionReference ? {arguments:module$contents$goog$object_map(val.arguments, walkObject), functionReference:walkObject(values[val.functionReference])} : "constantValue" === key ? val === module$exports$eeapiclient$domain_object.NULL_VALUE ?
|
|
20180
20089
|
null : val : walkObject(val)) : ret[key] = walkObject(val);
|
|
20181
20090
|
}
|
|
@@ -20298,8 +20207,8 @@ ExpressionOptimizer.prototype.optimizeValue = function(value, depth) {
|
|
|
20298
20207
|
return storeInSourceMap(value, optimized$jscomp$1);
|
|
20299
20208
|
}
|
|
20300
20209
|
if (null != value.dictionaryValue) {
|
|
20301
|
-
for (var values = {}, constantValues = {}, $jscomp$iter$47 = $jscomp.makeIterator(Object.entries(value.dictionaryValue.values || {})), $jscomp$key$ = $jscomp$iter$47.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$47.next()) {
|
|
20302
|
-
var $jscomp$destructuring$var53 = $jscomp.makeIterator($jscomp$key$.value), k = $jscomp$destructuring$var53.next().value, v = $jscomp$destructuring$var53.next().value;
|
|
20210
|
+
for (var values = {}, constantValues = {}, $jscomp$iter$47 = $jscomp.makeIterator(Object.entries(value.dictionaryValue.values || {})), $jscomp$key$1175707268$29$ = $jscomp$iter$47.next(); !$jscomp$key$1175707268$29$.done; $jscomp$key$1175707268$29$ = $jscomp$iter$47.next()) {
|
|
20211
|
+
var $jscomp$destructuring$var53 = $jscomp.makeIterator($jscomp$key$1175707268$29$.value), k = $jscomp$destructuring$var53.next().value, v = $jscomp$destructuring$var53.next().value;
|
|
20303
20212
|
values[k] = this.optimizeValue(v, depth + 3);
|
|
20304
20213
|
null !== constantValues && isConst(values[k]) ? constantValues[k] = serializeConst(values[k].constantValue) : constantValues = null;
|
|
20305
20214
|
}
|
|
@@ -20310,8 +20219,8 @@ ExpressionOptimizer.prototype.optimizeValue = function(value, depth) {
|
|
|
20310
20219
|
return storeInSourceMap(value, optimized$jscomp$2);
|
|
20311
20220
|
}
|
|
20312
20221
|
if (null != value.functionInvocationValue) {
|
|
20313
|
-
for (var inv = value.functionInvocationValue, args = {}, $jscomp$iter$48 = $jscomp.makeIterator(Object.keys(inv.arguments || {})), $jscomp$key$k = $jscomp$iter$48.next(); !$jscomp$key$k.done; $jscomp$key$k = $jscomp$iter$48.next()) {
|
|
20314
|
-
var k$jscomp$0 = $jscomp$key$k.value;
|
|
20222
|
+
for (var inv = value.functionInvocationValue, args = {}, $jscomp$iter$48 = $jscomp.makeIterator(Object.keys(inv.arguments || {})), $jscomp$key$1175707268$30$k = $jscomp$iter$48.next(); !$jscomp$key$1175707268$30$k.done; $jscomp$key$1175707268$30$k = $jscomp$iter$48.next()) {
|
|
20223
|
+
var k$jscomp$0 = $jscomp$key$1175707268$30$k.value;
|
|
20315
20224
|
args[k$jscomp$0] = this.optimizeValue(inv.arguments[k$jscomp$0], depth + 3);
|
|
20316
20225
|
}
|
|
20317
20226
|
var optimized$jscomp$3 = inv.functionName ? ee.rpc_node.functionByName(inv.functionName, args) : ee.rpc_node.functionByReference(this.optimizeReference(inv.functionReference || ""), args);
|
|
@@ -20652,7 +20561,7 @@ ee.data.authenticate = function(clientId, success, opt_error, opt_extraScopes, o
|
|
|
20652
20561
|
};
|
|
20653
20562
|
goog.exportSymbol("ee.data.authenticate", ee.data.authenticate);
|
|
20654
20563
|
ee.data.authenticateViaPopup = function(opt_success, opt_error) {
|
|
20655
|
-
goog.global.
|
|
20564
|
+
goog.global.google.accounts.oauth2.initTokenClient({client_id:module$contents$ee$apiclient_apiclient.getAuthClientId(), callback:goog.partial(module$contents$ee$apiclient_apiclient.handleAuthResult_, opt_success, opt_error), scope:module$contents$ee$apiclient_apiclient.getAuthScopes().join(" ")}).requestAccessToken();
|
|
20656
20565
|
};
|
|
20657
20566
|
goog.exportSymbol("ee.data.authenticateViaPopup", ee.data.authenticateViaPopup);
|
|
20658
20567
|
ee.data.authenticateViaPrivateKey = function(privateKey, opt_success, opt_error, opt_extraScopes, opt_suppressDefaultScopes) {
|
|
@@ -21193,8 +21102,8 @@ ee.data.createAsset = function(value, opt_path, opt_force, opt_properties, opt_c
|
|
|
21193
21102
|
value.gcsLocation && !value.cloudStorageLocation && (value.cloudStorageLocation = value.gcsLocation, delete value.gcsLocation);
|
|
21194
21103
|
value.cloudStorageLocation && (value.cloudStorageLocation = new module$exports$eeapiclient$ee_api_client.CloudStorageLocation(value.cloudStorageLocation));
|
|
21195
21104
|
opt_properties && !value.properties && (value.properties = Object.assign({}, opt_properties));
|
|
21196
|
-
for (var $jscomp$iter$49 = $jscomp.makeIterator(["title", "description"]), $jscomp$key$prop = $jscomp$iter$49.next(); !$jscomp$key$prop.done; $jscomp$key$prop = $jscomp$iter$49.next()) {
|
|
21197
|
-
var prop = $jscomp$key$prop.value;
|
|
21105
|
+
for (var $jscomp$iter$49 = $jscomp.makeIterator(["title", "description"]), $jscomp$key$m358301524$123$prop = $jscomp$iter$49.next(); !$jscomp$key$m358301524$123$prop.done; $jscomp$key$m358301524$123$prop = $jscomp$iter$49.next()) {
|
|
21106
|
+
var prop = $jscomp$key$m358301524$123$prop.value;
|
|
21198
21107
|
if (value[prop]) {
|
|
21199
21108
|
var $jscomp$compprop17 = {};
|
|
21200
21109
|
value.properties = Object.assign(($jscomp$compprop17[prop] = value[prop], $jscomp$compprop17), value.properties || {});
|
|
@@ -23466,8 +23375,8 @@ module$contents$ee$batch_Export.prefixImageFormatOptions_ = function(taskConfig,
|
|
|
23466
23375
|
})) {
|
|
23467
23376
|
throw Error("Parameter specified at least twice: once in config, and once in config format options.");
|
|
23468
23377
|
}
|
|
23469
|
-
for (var prefix = module$contents$ee$batch_FORMAT_PREFIX_MAP[imageFormat], validOptionKeys = module$contents$ee$batch_FORMAT_OPTIONS_MAP[imageFormat], prefixedOptions = {}, $jscomp$iter$50 = $jscomp.makeIterator(Object.entries(formatOptions)), $jscomp$key$ = $jscomp$iter$50.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$50.next()) {
|
|
23470
|
-
var $jscomp$destructuring$var58 = $jscomp.makeIterator($jscomp$key$.value), key = $jscomp$destructuring$var58.next().value, value = $jscomp$destructuring$var58.next().value;
|
|
23378
|
+
for (var prefix = module$contents$ee$batch_FORMAT_PREFIX_MAP[imageFormat], validOptionKeys = module$contents$ee$batch_FORMAT_OPTIONS_MAP[imageFormat], prefixedOptions = {}, $jscomp$iter$50 = $jscomp.makeIterator(Object.entries(formatOptions)), $jscomp$key$m1704548930$35$ = $jscomp$iter$50.next(); !$jscomp$key$m1704548930$35$.done; $jscomp$key$m1704548930$35$ = $jscomp$iter$50.next()) {
|
|
23379
|
+
var $jscomp$destructuring$var58 = $jscomp.makeIterator($jscomp$key$m1704548930$35$.value), key = $jscomp$destructuring$var58.next().value, value = $jscomp$destructuring$var58.next().value;
|
|
23471
23380
|
if (!module$contents$goog$array_contains(validOptionKeys, key)) {
|
|
23472
23381
|
var validKeysMsg = validOptionKeys.join(", ");
|
|
23473
23382
|
throw Error('"' + key + '" is not a valid option, the image format "' + imageFormat + '""may have the following options: ' + (validKeysMsg + '".'));
|
|
@@ -26526,28 +26435,28 @@ ee.data.Profiler.Format.prototype.toString = function() {
|
|
|
26526
26435
|
ee.data.Profiler.Format.TEXT = new ee.data.Profiler.Format("text");
|
|
26527
26436
|
ee.data.Profiler.Format.JSON = new ee.data.Profiler.Format("json");
|
|
26528
26437
|
(function() {
|
|
26529
|
-
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction.
|
|
26530
|
-
orderedParamLists = [["name", "
|
|
26531
|
-
"collection opt_description
|
|
26532
|
-
"collection opt_description
|
|
26533
|
-
"image opt_description
|
|
26534
|
-
["
|
|
26535
|
-
|
|
26536
|
-
|
|
26537
|
-
|
|
26538
|
-
["func", "
|
|
26539
|
-
["name", "value"], [
|
|
26540
|
-
"
|
|
26541
|
-
"
|
|
26542
|
-
[ee.ApiFunction.
|
|
26543
|
-
module$contents$ee$batch_Export.
|
|
26544
|
-
ee.ComputedObject.prototype.
|
|
26545
|
-
ee.data.
|
|
26546
|
-
ee.data.
|
|
26547
|
-
ee.
|
|
26548
|
-
ee.Filter.
|
|
26549
|
-
ee.Image
|
|
26550
|
-
ee.ImageCollection.prototype.
|
|
26438
|
+
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction.lookup ee.ApiFunction._apply ee.ApiFunction._call ee.batch.Export.classifier.toAsset ee.batch.Export.table.toDrive ee.batch.Export.image.toCloudStorage ee.batch.Export.table.toCloudStorage ee.batch.Export.table.toFeatureView ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.image.toDrive ee.batch.Export.table.toBigQuery ee.batch.Export.map.toCloudStorage ee.batch.Export.table.toAsset ee.batch.Export.video.toCloudStorage ee.batch.Export.image.toAsset ee.batch.Export.video.toDrive ee.Collection.prototype.filter ee.Collection.prototype.map ee.Collection.prototype.iterate ee.Collection.prototype.filterBounds ee.Collection.prototype.filterDate ee.Collection.prototype.filterMetadata ee.Collection.prototype.sort ee.Collection.prototype.limit ee.ComputedObject.prototype.serialize ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.evaluate ee.data.startIngestion ee.data.getThumbId ee.data.getTaskStatus ee.data.updateTask ee.data.createFolder ee.data.getVideoThumbId ee.data.startProcessing ee.data.setAssetAcl ee.data.getList ee.data.renameAsset ee.data.getFilmstripThumbId ee.data.listAssets ee.data.setAssetProperties ee.data.makeThumbUrl ee.data.getTaskList ee.data.copyAsset ee.data.authenticateViaOauth ee.data.startTableIngestion ee.data.getMapId ee.data.getAssetRootQuota ee.data.deleteAsset ee.data.getDownloadId ee.data.listImages ee.data.getTaskListWithLimit ee.data.authenticate ee.data.makeDownloadUrl ee.data.listOperations ee.data.getTileUrl ee.data.getWorkloadTag ee.data.listBuckets ee.data.getAssetAcl ee.data.cancelOperation ee.data.getAsset ee.data.getTableDownloadId ee.data.makeTableDownloadUrl ee.data.getAssetRoots ee.data.setWorkloadTag ee.data.authenticateViaPopup ee.data.getInfo ee.data.createAssetHome ee.data.getFeatureViewTilesKey ee.data.getOperation ee.data.createAsset ee.data.newTaskId ee.data.setDefaultWorkloadTag ee.data.listFeatures ee.data.authenticateViaPrivateKey ee.data.resetWorkloadTag ee.data.cancelTask ee.data.updateAsset ee.data.computeValue ee.Date ee.Deserializer.decode ee.Deserializer.decodeCloudApi ee.Deserializer.fromCloudApiJSON ee.Deserializer.fromJSON ee.Dictionary ee.call ee.initialize ee.reset ee.Algorithms ee.apply ee.InitState 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.getMapId ee.FeatureCollection.prototype.select ee.FeatureCollection ee.FeatureCollection.prototype.getDownloadURL ee.Filter.and ee.Filter.gt ee.Filter.neq ee.Filter.lt ee.Filter.or ee.Filter.lte ee.Filter.prototype.not ee.Filter.gte ee.Filter ee.Filter.date ee.Filter.metadata ee.Filter.eq ee.Filter.bounds ee.Filter.inList ee.Function.prototype.call ee.Function.prototype.apply ee.Geometry ee.Geometry.Rectangle ee.Geometry.Polygon ee.Geometry.Point ee.Geometry.MultiLineString ee.Geometry.prototype.toGeoJSON ee.Geometry.LinearRing ee.Geometry.BBox ee.Geometry.MultiPoint ee.Geometry.prototype.toGeoJSONString ee.Geometry.LineString ee.Geometry.prototype.serialize ee.Geometry.MultiPolygon ee.Image.rgb ee.Image.prototype.getInfo ee.Image.prototype.getMapId ee.Image.prototype.expression ee.Image.prototype.rename ee.Image ee.Image.prototype.getMap ee.Image.prototype.getDownloadURL ee.Image.prototype.getThumbId ee.Image.cat ee.Image.prototype.clip ee.Image.prototype.select ee.Image.prototype.getThumbURL ee.ImageCollection.prototype.getMapId ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.first ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.select ee.ImageCollection ee.ImageCollection.prototype.getFilmstripThumbURL ee.List ee.Number ee.Serializer.toJSON ee.Serializer.encodeCloudApi ee.Serializer.toReadableJSON ee.Serializer.toReadableCloudApiJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.encode ee.Serializer.toCloudApiJSON ee.String ee.Terrain".split(" "),
|
|
26439
|
+
orderedParamLists = [["name"], ["name", "namedArgs"], ["name", "var_args"], ["classifier", "opt_description", "opt_assetId"], "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices".split(" "), "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".split(" "), "collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices".split(" "),
|
|
26440
|
+
"collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking".split(" "), "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".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".split(" "),
|
|
26441
|
+
"collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices".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".split(" "), ["collection", "opt_description", "opt_assetId", "opt_maxVertices"], "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "),
|
|
26442
|
+
"image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "), ["filter"], ["algorithm", "opt_dropNulls"], ["algorithm", "opt_first"], ["geometry"], ["start", "opt_end"], ["name", "operator", "value"], ["property", "opt_ascending"],
|
|
26443
|
+
["max", "opt_property", "opt_ascending"], ["legacy"], ["opt_callback"], ["func", "var_args"], ["callback"], ["taskId", "request", "opt_callback"], ["params", "opt_callback"], ["taskId", "opt_callback"], ["taskId", "action", "opt_callback"], ["path", "opt_force", "opt_callback"], ["params", "opt_callback"], ["taskId", "params", "opt_callback"], ["assetId", "aclUpdate", "opt_callback"], ["params", "opt_callback"], ["sourceId", "destinationId", "opt_callback"], ["params", "opt_callback"], ["parent",
|
|
26444
|
+
"opt_params", "opt_callback"], ["assetId", "properties", "opt_callback"], ["id"], ["opt_callback"], ["sourceId", "destinationId", "opt_overwrite", "opt_callback"], "clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "), ["taskId", "request", "opt_callback"], ["params", "opt_callback"], ["rootId", "opt_callback"], ["assetId", "opt_callback"], ["params", "opt_callback"], ["parent", "opt_params", "opt_callback"], ["opt_limit", "opt_callback"], ["clientId",
|
|
26445
|
+
"success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["id"], ["opt_limit", "opt_callback"], ["id", "x", "y", "z"], [], ["project", "opt_callback"], ["assetId", "opt_callback"], ["operationName", "opt_callback"], ["id", "opt_callback"], ["params", "opt_callback"], ["id"], ["opt_callback"], ["tag"], ["opt_success", "opt_error"], ["id", "opt_callback"], ["requestedId", "opt_callback"], ["params", "opt_callback"], ["operationName", "opt_callback"], ["value", "opt_path", "opt_force",
|
|
26446
|
+
"opt_properties", "opt_callback"], ["opt_count", "opt_callback"], ["tag"], ["asset", "params", "opt_callback"], ["privateKey", "opt_success", "opt_error", "opt_extraScopes", "opt_suppressDefaultScopes"], ["opt_resetDefault"], ["taskId", "opt_callback"], ["assetId", "asset", "updateFields", "opt_callback"], ["obj", "opt_callback"], ["date", "opt_tz"], ["json"], ["json"], ["json"], ["json"], ["opt_dict"], ["func", "var_args"], "opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "),
|
|
26447
|
+
[], [], ["func", "namedArgs"], [], [], ["var_args"], [], ["geometry", "opt_properties"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["propertySelectors", "opt_newProperties", "opt_retainGeometry"], ["args", "opt_column"], ["opt_format", "opt_selectors", "opt_filename", "opt_callback"], ["var_args"], ["name", "value"], ["name", "value"], ["name", "value"], ["var_args"],
|
|
26448
|
+
["name", "value"], [], ["name", "value"], ["opt_filter"], ["start", "opt_end"], ["name", "operator", "value"], ["name", "value"], ["geometry", "opt_errorMargin"], ["opt_leftField", "opt_rightValue", "opt_rightField", "opt_leftValue"], ["var_args"], ["namedArgs"], ["geoJson", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj"], ["coords", "opt_proj", "opt_geodesic",
|
|
26449
|
+
"opt_maxError"], [], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["west", "south", "east", "north"], ["coords", "opt_proj"], [], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["legacy"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["r", "g", "b"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["expression", "opt_map"], ["var_args"], ["opt_args"], ["opt_visParams", "opt_callback"], ["params", "opt_callback"], ["params", "opt_callback"], ["var_args"],
|
|
26450
|
+
["geometry"], ["var_args"], ["params", "opt_callback"], ["opt_visParams", "opt_callback"], ["imageCollection", "opt_linkedBands", "opt_linkedProperties", "opt_matchPropertyName"], ["params", "opt_callback"], ["opt_visParams", "opt_callback"], [], ["opt_callback"], ["selectors", "opt_names"], ["args"], ["params", "opt_callback"], ["list"], ["number"], ["obj"], ["obj"], ["obj"], ["obj"], ["obj"], ["obj", "opt_isCompound"], ["obj"], ["string"], []];
|
|
26451
|
+
[ee.ApiFunction.lookup, ee.ApiFunction._apply, ee.ApiFunction._call, module$contents$ee$batch_Export.classifier.toAsset, module$contents$ee$batch_Export.table.toDrive, module$contents$ee$batch_Export.image.toCloudStorage, module$contents$ee$batch_Export.table.toCloudStorage, module$contents$ee$batch_Export.table.toFeatureView, module$contents$ee$batch_Export.videoMap.toCloudStorage, module$contents$ee$batch_Export.image.toDrive, module$contents$ee$batch_Export.table.toBigQuery, module$contents$ee$batch_Export.map.toCloudStorage,
|
|
26452
|
+
module$contents$ee$batch_Export.table.toAsset, module$contents$ee$batch_Export.video.toCloudStorage, module$contents$ee$batch_Export.image.toAsset, module$contents$ee$batch_Export.video.toDrive, ee.Collection.prototype.filter, ee.Collection.prototype.map, ee.Collection.prototype.iterate, ee.Collection.prototype.filterBounds, ee.Collection.prototype.filterDate, ee.Collection.prototype.filterMetadata, ee.Collection.prototype.sort, ee.Collection.prototype.limit, ee.ComputedObject.prototype.serialize,
|
|
26453
|
+
ee.ComputedObject.prototype.getInfo, ee.ComputedObject.prototype.aside, ee.ComputedObject.prototype.evaluate, ee.data.startIngestion, ee.data.getThumbId, ee.data.getTaskStatus, ee.data.updateTask, ee.data.createFolder, ee.data.getVideoThumbId, ee.data.startProcessing, ee.data.setAssetAcl, ee.data.getList, ee.data.renameAsset, ee.data.getFilmstripThumbId, ee.data.listAssets, ee.data.setAssetProperties, ee.data.makeThumbUrl, ee.data.getTaskList, ee.data.copyAsset, ee.data.authenticateViaOauth, ee.data.startTableIngestion,
|
|
26454
|
+
ee.data.getMapId, ee.data.getAssetRootQuota, ee.data.deleteAsset, ee.data.getDownloadId, ee.data.listImages, ee.data.getTaskListWithLimit, ee.data.authenticate, ee.data.makeDownloadUrl, ee.data.listOperations, ee.data.getTileUrl, ee.data.getWorkloadTag, ee.data.listBuckets, ee.data.getAssetAcl, ee.data.cancelOperation, ee.data.getAsset, ee.data.getTableDownloadId, ee.data.makeTableDownloadUrl, ee.data.getAssetRoots, ee.data.setWorkloadTag, ee.data.authenticateViaPopup, ee.data.getInfo, ee.data.createAssetHome,
|
|
26455
|
+
ee.data.getFeatureViewTilesKey, ee.data.getOperation, ee.data.createAsset, ee.data.newTaskId, ee.data.setDefaultWorkloadTag, ee.data.listFeatures, ee.data.authenticateViaPrivateKey, ee.data.resetWorkloadTag, ee.data.cancelTask, ee.data.updateAsset, ee.data.computeValue, ee.Date, ee.Deserializer.decode, ee.Deserializer.decodeCloudApi, ee.Deserializer.fromCloudApiJSON, ee.Deserializer.fromJSON, ee.Dictionary, ee.call, ee.initialize, ee.reset, ee.Algorithms, ee.apply, ee.InitState, ee.TILE_SIZE, ee.Element.prototype.set,
|
|
26456
|
+
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.getMapId, ee.FeatureCollection.prototype.select, ee.FeatureCollection, ee.FeatureCollection.prototype.getDownloadURL, ee.Filter.and, ee.Filter.gt, ee.Filter.neq, ee.Filter.lt, ee.Filter.or, ee.Filter.lte, ee.Filter.prototype.not, ee.Filter.gte, ee.Filter, ee.Filter.date,
|
|
26457
|
+
ee.Filter.metadata, ee.Filter.eq, ee.Filter.bounds, ee.Filter.inList, ee.Function.prototype.call, ee.Function.prototype.apply, ee.Geometry, ee.Geometry.Rectangle, ee.Geometry.Polygon, ee.Geometry.Point, ee.Geometry.MultiLineString, ee.Geometry.prototype.toGeoJSON, ee.Geometry.LinearRing, ee.Geometry.BBox, ee.Geometry.MultiPoint, ee.Geometry.prototype.toGeoJSONString, ee.Geometry.LineString, ee.Geometry.prototype.serialize, ee.Geometry.MultiPolygon, ee.Image.rgb, ee.Image.prototype.getInfo, ee.Image.prototype.getMapId,
|
|
26458
|
+
ee.Image.prototype.expression, ee.Image.prototype.rename, ee.Image, ee.Image.prototype.getMap, ee.Image.prototype.getDownloadURL, ee.Image.prototype.getThumbId, ee.Image.cat, ee.Image.prototype.clip, ee.Image.prototype.select, ee.Image.prototype.getThumbURL, ee.ImageCollection.prototype.getMapId, ee.ImageCollection.prototype.linkCollection, ee.ImageCollection.prototype.getVideoThumbURL, ee.ImageCollection.prototype.getMap, ee.ImageCollection.prototype.first, ee.ImageCollection.prototype.getInfo,
|
|
26459
|
+
ee.ImageCollection.prototype.select, ee.ImageCollection, ee.ImageCollection.prototype.getFilmstripThumbURL, ee.List, ee.Number, ee.Serializer.toJSON, ee.Serializer.encodeCloudApi, ee.Serializer.toReadableJSON, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.encodeCloudApiPretty, ee.Serializer.encode, ee.Serializer.toCloudApiJSON, ee.String, ee.Terrain].forEach(function(fn, i) {
|
|
26551
26460
|
fn && (exportedFnInfo[fn.toString()] = {name:orderedFnNames[i], paramNames:orderedParamLists[i]});
|
|
26552
26461
|
});
|
|
26553
26462
|
goog.global.EXPORTED_FN_INFO = exportedFnInfo;
|