@google/earthengine 0.1.400 → 0.1.402
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 +164 -217
- package/build/ee_api_js.js +657 -659
- package/build/ee_api_js_debug.js +142 -195
- package/build/ee_api_js_npm.js +164 -217
- package/build/main.js +164 -217
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/examples/UserInterface/LandsatExplorer.js +10 -6
- package/src/geometry.js +11 -17
- package/src/layers/abstractoverlay.js +10 -2
- package/src/layers/earthenginetilesource.js +20 -9
package/build/ee_api_js_debug.js
CHANGED
|
@@ -1200,7 +1200,8 @@ $jscomp.polyfill("String.prototype.padStart", function(orig) {
|
|
|
1200
1200
|
return $jscomp.stringPadding(opt_padString, targetLength - string.length) + string;
|
|
1201
1201
|
};
|
|
1202
1202
|
}, "es8", "es3");
|
|
1203
|
-
var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__enable:!1, GoogFlags__override_disable_toggles:!1, GoogFlags__testonly_debug_flag__enable:!1, GoogFlags__testonly_disabled_flag__enable:!1, GoogFlags__testonly_stable_flag__disable:!1, GoogFlags__testonly_staging_flag__disable:!1, GoogFlags__use_toggles:!1,
|
|
1203
|
+
var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__client_only_wiz_component_stacks__enable:!1, GoogFlags__client_only_wiz_reaction_async_await__enable:!1, GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__enable:!1, GoogFlags__override_disable_toggles:!1, GoogFlags__testonly_debug_flag__enable:!1, GoogFlags__testonly_disabled_flag__enable:!1, GoogFlags__testonly_stable_flag__disable:!1, GoogFlags__testonly_staging_flag__disable:!1, GoogFlags__use_toggles:!1,
|
|
1204
|
+
GoogFlags__use_user_agent_client_hints__enable:!1};
|
|
1204
1205
|
/*
|
|
1205
1206
|
|
|
1206
1207
|
Copyright The Closure Library Authors.
|
|
@@ -2968,6 +2969,8 @@ module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_
|
|
|
2968
2969
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_user_agent_client_hints__enable = !1;
|
|
2969
2970
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__async_throw_on_unicode_to_byte__enable = !1;
|
|
2970
2971
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__enable = !1;
|
|
2972
|
+
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_reaction_async_await__enable = !1;
|
|
2973
|
+
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_component_stacks__enable = !1;
|
|
2971
2974
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable = !1;
|
|
2972
2975
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable = !1;
|
|
2973
2976
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_staging_flag__disable = !1;
|
|
@@ -2977,6 +2980,8 @@ var module$contents$goog$flags_STAGING = goog.readFlagInternalDoNotUseOrElse(1,
|
|
|
2977
2980
|
goog.flags.USE_USER_AGENT_CLIENT_HINTS = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_user_agent_client_hints__enable : goog.readFlagInternalDoNotUseOrElse(610401301, !1);
|
|
2978
2981
|
goog.flags.ASYNC_THROW_ON_UNICODE_TO_BYTE = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__async_throw_on_unicode_to_byte__enable : goog.readFlagInternalDoNotUseOrElse(899588437, !1);
|
|
2979
2982
|
goog.flags.JSPB_STOP_USING_REPEATED_FIELD_SETS_FROM_GENCODE = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__enable : goog.readFlagInternalDoNotUseOrElse(188588736, goog.DEBUG);
|
|
2983
|
+
goog.flags.CLIENT_ONLY_WIZ_REACTION_ASYNC_AWAIT = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_reaction_async_await__enable : goog.readFlagInternalDoNotUseOrElse(399321843, goog.DEBUG);
|
|
2984
|
+
goog.flags.CLIENT_ONLY_WIZ_COMPONENT_STACKS = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_component_stacks__enable : goog.readFlagInternalDoNotUseOrElse(628162879, goog.DEBUG);
|
|
2980
2985
|
goog.flags.TESTONLY_DISABLED_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable : goog.readFlagInternalDoNotUseOrElse(2147483644, !1);
|
|
2981
2986
|
goog.flags.TESTONLY_DEBUG_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable : goog.readFlagInternalDoNotUseOrElse(2147483645, goog.DEBUG);
|
|
2982
2987
|
goog.flags.TESTONLY_STAGING_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.FLAGS_STAGING_DEFAULT && (module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_staging_flag__disable) : goog.readFlagInternalDoNotUseOrElse(2147483646, module$contents$goog$flags_STAGING);
|
|
@@ -3806,9 +3811,9 @@ DOMCONTENTLOADED:"DOMContentLoaded", ERROR:"error", HELP:"help", LOAD:"load", LO
|
|
|
3806
3811
|
SEEKED:"seeked", SEEKING:"seeking", STALLED:"stalled", SUSPEND:"suspend", TIMEUPDATE:"timeupdate", VOLUMECHANGE:"volumechange", WAITING:"waiting", SOURCEOPEN:"sourceopen", SOURCEENDED:"sourceended", SOURCECLOSED:"sourceclosed", ABORT:"abort", UPDATE:"update", UPDATESTART:"updatestart", UPDATEEND:"updateend", HASHCHANGE:"hashchange", PAGEHIDE:"pagehide", PAGESHOW:"pageshow", POPSTATE:"popstate", COPY:"copy", PASTE:"paste", CUT:"cut", BEFORECOPY:"beforecopy", BEFORECUT:"beforecut", BEFOREPASTE:"beforepaste",
|
|
3807
3812
|
ONLINE:"online", OFFLINE:"offline", MESSAGE:"message", CONNECT:"connect", INSTALL:"install", ACTIVATE:"activate", FETCH:"fetch", FOREIGNFETCH:"foreignfetch", MESSAGEERROR:"messageerror", STATECHANGE:"statechange", UPDATEFOUND:"updatefound", CONTROLLERCHANGE:"controllerchange", ANIMATIONSTART:goog.events.eventTypeHelpers.getVendorPrefixedName("AnimationStart"), ANIMATIONEND:goog.events.eventTypeHelpers.getVendorPrefixedName("AnimationEnd"), ANIMATIONITERATION:goog.events.eventTypeHelpers.getVendorPrefixedName("AnimationIteration"),
|
|
3808
3813
|
TRANSITIONEND:goog.events.eventTypeHelpers.getVendorPrefixedName("TransitionEnd"), POINTERDOWN:"pointerdown", POINTERUP:"pointerup", POINTERCANCEL:"pointercancel", POINTERMOVE:"pointermove", POINTEROVER:"pointerover", POINTEROUT:"pointerout", POINTERENTER:"pointerenter", POINTERLEAVE:"pointerleave", GOTPOINTERCAPTURE:"gotpointercapture", LOSTPOINTERCAPTURE:"lostpointercapture", MSGESTURECHANGE:"MSGestureChange", MSGESTUREEND:"MSGestureEnd", MSGESTUREHOLD:"MSGestureHold", MSGESTURESTART:"MSGestureStart",
|
|
3809
|
-
MSGESTURETAP:"MSGestureTap", MSGOTPOINTERCAPTURE:"MSGotPointerCapture", MSINERTIASTART:"MSInertiaStart", MSLOSTPOINTERCAPTURE:"MSLostPointerCapture", MSPOINTERCANCEL:"MSPointerCancel", MSPOINTERDOWN:"MSPointerDown", MSPOINTERENTER:"MSPointerEnter", MSPOINTERHOVER:"MSPointerHover", MSPOINTERLEAVE:"MSPointerLeave", MSPOINTERMOVE:"MSPointerMove", MSPOINTEROUT:"MSPointerOut", MSPOINTEROVER:"MSPointerOver", MSPOINTERUP:"MSPointerUp", TEXT:"text", TEXTINPUT:
|
|
3810
|
-
|
|
3811
|
-
|
|
3814
|
+
MSGESTURETAP:"MSGestureTap", MSGOTPOINTERCAPTURE:"MSGotPointerCapture", MSINERTIASTART:"MSInertiaStart", MSLOSTPOINTERCAPTURE:"MSLostPointerCapture", MSPOINTERCANCEL:"MSPointerCancel", MSPOINTERDOWN:"MSPointerDown", MSPOINTERENTER:"MSPointerEnter", MSPOINTERHOVER:"MSPointerHover", MSPOINTERLEAVE:"MSPointerLeave", MSPOINTERMOVE:"MSPointerMove", MSPOINTEROUT:"MSPointerOut", MSPOINTEROVER:"MSPointerOver", MSPOINTERUP:"MSPointerUp", TEXT:"text", TEXTINPUT:"textInput", COMPOSITIONSTART:"compositionstart",
|
|
3815
|
+
COMPOSITIONUPDATE:"compositionupdate", COMPOSITIONEND:"compositionend", BEFOREINPUT:"beforeinput", FULLSCREENCHANGE:"fullscreenchange", WEBKITBEGINFULLSCREEN:"webkitbeginfullscreen", WEBKITENDFULLSCREEN:"webkitendfullscreen", EXIT:"exit", LOADABORT:"loadabort", LOADCOMMIT:"loadcommit", LOADREDIRECT:"loadredirect", LOADSTART:"loadstart", LOADSTOP:"loadstop", RESPONSIVE:"responsive", SIZECHANGED:"sizechanged", UNRESPONSIVE:"unresponsive", VISIBILITYCHANGE:"visibilitychange", STORAGE:"storage", BEFOREPRINT:"beforeprint",
|
|
3816
|
+
AFTERPRINT:"afterprint", BEFOREINSTALLPROMPT:"beforeinstallprompt", APPINSTALLED:"appinstalled", CANCEL:"cancel", FINISH:"finish", REMOVE:"remove"};
|
|
3812
3817
|
goog.events.BrowserEvent = function(opt_e, opt_currentTarget) {
|
|
3813
3818
|
goog.events.Event.call(this, opt_e ? opt_e.type : "");
|
|
3814
3819
|
this.relatedTarget = this.currentTarget = this.target = null;
|
|
@@ -6058,9 +6063,9 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
6058
6063
|
};
|
|
6059
6064
|
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;
|
|
6060
6065
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
6061
|
-
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$
|
|
6062
|
-
{mapMetadata:void 0}, $jscomp$key$
|
|
6063
|
-
var key = $jscomp$key$
|
|
6066
|
+
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 =
|
|
6067
|
+
{mapMetadata:void 0}, $jscomp$key$m192531680$40$key = $jscomp$iter$19.next()) {
|
|
6068
|
+
var key = $jscomp$key$m192531680$40$key.value, value = valueGetter(key, source);
|
|
6064
6069
|
if (null != value) {
|
|
6065
6070
|
var copy = void 0;
|
|
6066
6071
|
if (arrays.hasOwnProperty(key)) {
|
|
@@ -6071,11 +6076,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
6071
6076
|
} else if (objects.hasOwnProperty(key)) {
|
|
6072
6077
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
6073
6078
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
6074
|
-
$jscomp$loop$
|
|
6079
|
+
$jscomp$loop$m192531680$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m192531680$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m192531680$44) {
|
|
6075
6080
|
return function(v) {
|
|
6076
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
6081
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6077
6082
|
};
|
|
6078
|
-
}($jscomp$loop$
|
|
6083
|
+
}($jscomp$loop$m192531680$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6079
6084
|
} else if (Array.isArray(value)) {
|
|
6080
6085
|
if (metadata.emptyArrayIsUnset && 0 === value.length) {
|
|
6081
6086
|
continue;
|
|
@@ -6090,8 +6095,8 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
6090
6095
|
return target;
|
|
6091
6096
|
}
|
|
6092
6097
|
function module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, mapMetadata, valueGetter, valueSetter, copyInstanciator) {
|
|
6093
|
-
for (var objMap = {}, $jscomp$iter$20 = $jscomp.makeIterator(Object.keys(value)), $jscomp$key$
|
|
6094
|
-
var mapKey = $jscomp$key$
|
|
6098
|
+
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()) {
|
|
6099
|
+
var mapKey = $jscomp$key$m192531680$41$mapKey.value, mapValue = value[mapKey];
|
|
6095
6100
|
null != mapValue && (objMap[mapKey] = module$contents$eeapiclient$domain_object_deepCopyValue(mapValue, valueGetter, valueSetter, copyInstanciator, mapMetadata.isValueArray, mapMetadata.isSerializable, mapMetadata.ctor));
|
|
6096
6101
|
}
|
|
6097
6102
|
return objMap;
|
|
@@ -6121,39 +6126,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
6121
6126
|
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))) {
|
|
6122
6127
|
return !1;
|
|
6123
6128
|
}
|
|
6124
|
-
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$
|
|
6125
|
-
var key = $jscomp$key$
|
|
6129
|
+
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()) {
|
|
6130
|
+
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);
|
|
6126
6131
|
if (has1 !== has2) {
|
|
6127
6132
|
return !1;
|
|
6128
6133
|
}
|
|
6129
6134
|
if (has1) {
|
|
6130
6135
|
var value1 = serializable1.Serializable$get(key);
|
|
6131
|
-
$jscomp$loop$
|
|
6136
|
+
$jscomp$loop$m192531680$45.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
6132
6137
|
if (arrays1.hasOwnProperty(key)) {
|
|
6133
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6138
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !0)) {
|
|
6134
6139
|
return !1;
|
|
6135
6140
|
}
|
|
6136
6141
|
} else if (objects1.hasOwnProperty(key)) {
|
|
6137
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6142
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !0)) {
|
|
6138
6143
|
return !1;
|
|
6139
6144
|
}
|
|
6140
6145
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
6141
|
-
if ($jscomp$loop$
|
|
6142
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
6146
|
+
if ($jscomp$loop$m192531680$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2.isPropertyArray) {
|
|
6147
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m192531680$45) {
|
|
6143
6148
|
return function(v1, i) {
|
|
6144
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
6149
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$45.value2$jscomp$7[i], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2);
|
|
6145
6150
|
};
|
|
6146
|
-
}($jscomp$loop$
|
|
6151
|
+
}($jscomp$loop$m192531680$45))) {
|
|
6147
6152
|
return !1;
|
|
6148
6153
|
}
|
|
6149
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
6154
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, $jscomp$loop$m192531680$45.mapMetadata$jscomp$2)) {
|
|
6150
6155
|
return !1;
|
|
6151
6156
|
}
|
|
6152
6157
|
} else if (Array.isArray(value1)) {
|
|
6153
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6158
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !1)) {
|
|
6154
6159
|
return !1;
|
|
6155
6160
|
}
|
|
6156
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6161
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !1)) {
|
|
6157
6162
|
return !1;
|
|
6158
6163
|
}
|
|
6159
6164
|
}
|
|
@@ -6175,8 +6180,8 @@ function module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, v
|
|
|
6175
6180
|
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) {
|
|
6176
6181
|
return !1;
|
|
6177
6182
|
}
|
|
6178
|
-
for (var $jscomp$iter$22 = $jscomp.makeIterator(Object.keys(value1)), $jscomp$key$
|
|
6179
|
-
var mapKey = $jscomp$key$
|
|
6183
|
+
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()) {
|
|
6184
|
+
var mapKey = $jscomp$key$m192531680$43$mapKey.value;
|
|
6180
6185
|
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1[mapKey], value2[mapKey], mapMetadata.isValueArray, mapMetadata.isSerializable)) {
|
|
6181
6186
|
return !1;
|
|
6182
6187
|
}
|
|
@@ -6361,8 +6366,8 @@ function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUr
|
|
|
6361
6366
|
return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(value);
|
|
6362
6367
|
}
|
|
6363
6368
|
module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
6364
|
-
var $jscomp$templatelit$
|
|
6365
|
-
["\\0"]), $jscomp$templatelit$
|
|
6369
|
+
var $jscomp$templatelit$1274514361$5 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$1274514361$7 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$8 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$1274514361$9 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$10 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
|
|
6370
|
+
["\\0"]), $jscomp$templatelit$1274514361$11 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$12 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), module$contents$safevalues$internals$string_literal_module = module$contents$safevalues$internals$string_literal_module || {id:"third_party/javascript/safevalues/internals/string_literal.closure.js"};
|
|
6366
6371
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
6367
6372
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
6368
6373
|
throw new TypeError("\n ############################## ERROR ##############################\n\n It looks like you are trying to call a template tag function (fn`...`)\n using the normal function syntax (fn(...)), which is not supported.\n\n The functions in the safevalues library are not designed to be called\n like normal functions, and doing so invalidates the security guarantees\n that safevalues provides.\n\n If you are stuck and not sure how to proceed, please reach out to us\n instead through:\n - go/ise-hardening-yaqs (preferred) // LINE-INTERNAL\n - g/ise-hardening // LINE-INTERNAL\n - https://github.com/google/safevalues/issues\n\n ############################## ERROR ##############################");
|
|
@@ -6376,14 +6381,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
6376
6381
|
return -1 === fn.toString().indexOf("`");
|
|
6377
6382
|
}
|
|
6378
6383
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
6379
|
-
return tag($jscomp$templatelit$
|
|
6384
|
+
return tag($jscomp$templatelit$1274514361$5);
|
|
6380
6385
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
6381
|
-
return tag($jscomp$templatelit$
|
|
6386
|
+
return tag($jscomp$templatelit$1274514361$6);
|
|
6382
6387
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
6383
|
-
return tag($jscomp$templatelit$
|
|
6388
|
+
return tag($jscomp$templatelit$1274514361$7);
|
|
6384
6389
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
6385
|
-
return tag($jscomp$templatelit$
|
|
6386
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
6390
|
+
return tag($jscomp$templatelit$1274514361$8);
|
|
6391
|
+
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$9) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$10) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$11) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$12);
|
|
6387
6392
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
6388
6393
|
return Array.isArray(templateObj) && Array.isArray(templateObj.raw) && templateObj.length === templateObj.raw.length && (module$contents$safevalues$internals$string_literal_isTranspiled || templateObj !== templateObj.raw) && (module$contents$safevalues$internals$string_literal_isTranspiled && !module$contents$safevalues$internals$string_literal_frozenTSA || module$contents$safevalues$internals$string_literal_checkFrozen(templateObj)) ?
|
|
6389
6394
|
!0 : !1;
|
|
@@ -7070,7 +7075,6 @@ module$contents$goog$html$SafeHtml_SafeHtml.createStyle = function(styleSheet, a
|
|
|
7070
7075
|
};
|
|
7071
7076
|
module$contents$goog$html$SafeHtml_SafeHtml.createMetaRefresh = function(url, secs) {
|
|
7072
7077
|
var unwrappedUrl = module$contents$safevalues$internals$url_impl_unwrapUrl(module$contents$safevalues$builders$url_builders_sanitizeUrl(url));
|
|
7073
|
-
(module$contents$goog$labs$userAgent$browser_matchIE() || module$contents$goog$labs$userAgent$browser_matchEdgeHtml()) && goog.string.internal.contains(unwrappedUrl, ";") && (unwrappedUrl = "'" + unwrappedUrl.replace(/'/g, "%27") + "'");
|
|
7074
7078
|
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta", {"http-equiv":"refresh", content:(secs || 0) + "; url=" + unwrappedUrl});
|
|
7075
7079
|
};
|
|
7076
7080
|
module$contents$goog$html$SafeHtml_SafeHtml.join = function(separator, parts) {
|
|
@@ -7318,9 +7322,9 @@ function module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(ifr
|
|
|
7318
7322
|
}
|
|
7319
7323
|
}
|
|
7320
7324
|
module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError = function(type, intent) {
|
|
7321
|
-
var $jscomp$tmp$error$
|
|
7322
|
-
this.message = $jscomp$tmp$error$
|
|
7323
|
-
"stack" in $jscomp$tmp$error$
|
|
7325
|
+
var $jscomp$tmp$error$240424914$1 = Error.call(this, type + " cannot be used with intent " + module$exports$safevalues$dom$elements$iframe.Intent[intent]);
|
|
7326
|
+
this.message = $jscomp$tmp$error$240424914$1.message;
|
|
7327
|
+
"stack" in $jscomp$tmp$error$240424914$1 && (this.stack = $jscomp$tmp$error$240424914$1.stack);
|
|
7324
7328
|
this.type = type;
|
|
7325
7329
|
this.intent = intent;
|
|
7326
7330
|
this.name = "TypeCannotBeUsedWithIntentError";
|
|
@@ -7442,7 +7446,7 @@ module$exports$safevalues$dom$globals$window.getStyleNonce = function(win) {
|
|
|
7442
7446
|
return module$contents$safevalues$dom$globals$window_getNonceFor("style", win);
|
|
7443
7447
|
};
|
|
7444
7448
|
function module$contents$safevalues$dom$globals$window_getNonceFor(elementName, win) {
|
|
7445
|
-
var $jscomp$optchain$
|
|
7449
|
+
var $jscomp$optchain$tmp220578679$0, $jscomp$optchain$tmp220578679$1, el = null == ($jscomp$optchain$tmp220578679$1 = ($jscomp$optchain$tmp220578679$0 = win.document).querySelector) ? void 0 : $jscomp$optchain$tmp220578679$1.call($jscomp$optchain$tmp220578679$0, elementName + "[nonce]");
|
|
7446
7450
|
return el ? el.nonce || el.getAttribute("nonce") || "" : "";
|
|
7447
7451
|
}
|
|
7448
7452
|
;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;
|
|
@@ -7830,9 +7834,9 @@ function module$contents$safevalues$dom$globals$dom_parser_parseFromString(parse
|
|
|
7830
7834
|
module$exports$safevalues$dom$globals$dom_parser.parseFromString = module$contents$safevalues$dom$globals$dom_parser_parseFromString;
|
|
7831
7835
|
var module$exports$safevalues$dom$globals$fetch = {}, module$contents$safevalues$dom$globals$fetch_module = module$contents$safevalues$dom$globals$fetch_module || {id:"third_party/javascript/safevalues/dom/globals/fetch.closure.js"};
|
|
7832
7836
|
module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError = function(url, typeName, contentType) {
|
|
7833
|
-
var $jscomp$tmp$error$
|
|
7834
|
-
this.message = $jscomp$tmp$error$
|
|
7835
|
-
"stack" in $jscomp$tmp$error$
|
|
7837
|
+
var $jscomp$tmp$error$m991617773$4 = Error.call(this, url + " was requested as a " + typeName + ', but the response Content-Type, "' + contentType + " is not appropriate for this type of content.");
|
|
7838
|
+
this.message = $jscomp$tmp$error$m991617773$4.message;
|
|
7839
|
+
"stack" in $jscomp$tmp$error$m991617773$4 && (this.stack = $jscomp$tmp$error$m991617773$4.stack);
|
|
7836
7840
|
this.url = url;
|
|
7837
7841
|
this.typeName = typeName;
|
|
7838
7842
|
this.contentType = contentType;
|
|
@@ -7844,48 +7848,48 @@ function module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(
|
|
|
7844
7848
|
return (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(html);
|
|
7845
7849
|
}
|
|
7846
7850
|
function module$contents$safevalues$dom$globals$fetch_fetchResourceUrl(u, init) {
|
|
7847
|
-
var response, $jscomp$optchain$
|
|
7848
|
-
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$
|
|
7849
|
-
if (1 == $jscomp$generator$context$
|
|
7850
|
-
return $jscomp$generator$context$
|
|
7851
|
-
}
|
|
7852
|
-
response = $jscomp$generator$context$
|
|
7853
|
-
mimeType = null == ($jscomp$optchain$
|
|
7854
|
-
return $jscomp$generator$context$
|
|
7851
|
+
var response, $jscomp$optchain$tmpm991617773$0, $jscomp$optchain$tmpm991617773$1, $jscomp$optchain$tmpm991617773$2, mimeType;
|
|
7852
|
+
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$m991617773$8) {
|
|
7853
|
+
if (1 == $jscomp$generator$context$m991617773$8.nextAddress) {
|
|
7854
|
+
return $jscomp$generator$context$m991617773$8.yield(fetch(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(u).toString(), init), 2);
|
|
7855
|
+
}
|
|
7856
|
+
response = $jscomp$generator$context$m991617773$8.yieldResult;
|
|
7857
|
+
mimeType = null == ($jscomp$optchain$tmpm991617773$0 = response.headers.get("Content-Type")) ? void 0 : null == ($jscomp$optchain$tmpm991617773$1 = $jscomp$optchain$tmpm991617773$0.split(";", 2)) ? void 0 : null == ($jscomp$optchain$tmpm991617773$2 = $jscomp$optchain$tmpm991617773$1[0]) ? void 0 : $jscomp$optchain$tmpm991617773$2.toLowerCase();
|
|
7858
|
+
return $jscomp$generator$context$m991617773$8.return({html:function() {
|
|
7855
7859
|
var text;
|
|
7856
|
-
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$
|
|
7857
|
-
if (1 == $jscomp$generator$context$
|
|
7860
|
+
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$m991617773$5) {
|
|
7861
|
+
if (1 == $jscomp$generator$context$m991617773$5.nextAddress) {
|
|
7858
7862
|
if ("text/html" !== mimeType) {
|
|
7859
7863
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeHtml", "text/html");
|
|
7860
7864
|
}
|
|
7861
|
-
return $jscomp$generator$context$
|
|
7865
|
+
return $jscomp$generator$context$m991617773$5.yield(response.text(), 2);
|
|
7862
7866
|
}
|
|
7863
|
-
text = $jscomp$generator$context$
|
|
7864
|
-
return $jscomp$generator$context$
|
|
7867
|
+
text = $jscomp$generator$context$m991617773$5.yieldResult;
|
|
7868
|
+
return $jscomp$generator$context$m991617773$5.return(module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(text));
|
|
7865
7869
|
});
|
|
7866
7870
|
}, script:function() {
|
|
7867
7871
|
var text;
|
|
7868
|
-
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$
|
|
7869
|
-
if (1 == $jscomp$generator$context$
|
|
7872
|
+
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$m991617773$6) {
|
|
7873
|
+
if (1 == $jscomp$generator$context$m991617773$6.nextAddress) {
|
|
7870
7874
|
if ("text/javascript" !== mimeType && "application/javascript" !== mimeType) {
|
|
7871
7875
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeScript", "text/javascript");
|
|
7872
7876
|
}
|
|
7873
|
-
return $jscomp$generator$context$
|
|
7877
|
+
return $jscomp$generator$context$m991617773$6.yield(response.text(), 2);
|
|
7874
7878
|
}
|
|
7875
|
-
text = $jscomp$generator$context$
|
|
7876
|
-
return $jscomp$generator$context$
|
|
7879
|
+
text = $jscomp$generator$context$m991617773$6.yieldResult;
|
|
7880
|
+
return $jscomp$generator$context$m991617773$6.return(module$contents$safevalues$internals$script_impl_createScriptInternal(text));
|
|
7877
7881
|
});
|
|
7878
7882
|
}, styleSheet:function() {
|
|
7879
7883
|
var text;
|
|
7880
|
-
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$
|
|
7881
|
-
if (1 == $jscomp$generator$context$
|
|
7884
|
+
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$m991617773$7) {
|
|
7885
|
+
if (1 == $jscomp$generator$context$m991617773$7.nextAddress) {
|
|
7882
7886
|
if ("text/css" !== mimeType) {
|
|
7883
7887
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeStyleSheet", "text/css");
|
|
7884
7888
|
}
|
|
7885
|
-
return $jscomp$generator$context$
|
|
7889
|
+
return $jscomp$generator$context$m991617773$7.yield(response.text(), 2);
|
|
7886
7890
|
}
|
|
7887
|
-
text = $jscomp$generator$context$
|
|
7888
|
-
return $jscomp$generator$context$
|
|
7891
|
+
text = $jscomp$generator$context$m991617773$7.yieldResult;
|
|
7892
|
+
return $jscomp$generator$context$m991617773$7.return(module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(text));
|
|
7889
7893
|
});
|
|
7890
7894
|
}});
|
|
7891
7895
|
});
|
|
@@ -9177,8 +9181,8 @@ function module$contents$eeapiclient$request_params_processParams(params) {
|
|
|
9177
9181
|
}
|
|
9178
9182
|
module$exports$eeapiclient$request_params.processParams = module$contents$eeapiclient$request_params_processParams;
|
|
9179
9183
|
function module$contents$eeapiclient$request_params_buildQueryParams(params, mapping, passthroughParams) {
|
|
9180
|
-
for (var urlQueryParams = passthroughParams = void 0 === passthroughParams ? {} : passthroughParams, $jscomp$iter$28 = $jscomp.makeIterator(Object.entries(mapping)), $jscomp$key$
|
|
9181
|
-
var $jscomp$destructuring$var27 = $jscomp.makeIterator($jscomp$key$
|
|
9184
|
+
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()) {
|
|
9185
|
+
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;
|
|
9182
9186
|
jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]);
|
|
9183
9187
|
}
|
|
9184
9188
|
return urlQueryParams;
|
|
@@ -9189,8 +9193,8 @@ module$exports$eeapiclient$request_params.bypassCorsPreflight = function(params)
|
|
|
9189
9193
|
var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1;
|
|
9190
9194
|
if (params.headers) {
|
|
9191
9195
|
hasContentType = null != params.headers["Content-Type"];
|
|
9192
|
-
for (var $jscomp$iter$29 = $jscomp.makeIterator(Object.entries(params.headers)), $jscomp$key$
|
|
9193
|
-
var $jscomp$destructuring$var29 = $jscomp.makeIterator($jscomp$key$
|
|
9196
|
+
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()) {
|
|
9197
|
+
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;
|
|
9194
9198
|
module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders.includes(key) ? safeHeaders[key] = value : (unsafeHeaders[key] = value, hasUnsafeHeaders = !0);
|
|
9195
9199
|
}
|
|
9196
9200
|
}
|
|
@@ -9235,15 +9239,15 @@ module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.addMetad
|
|
|
9235
9239
|
this._metadataPayload += "Content-Type: application/json; charset=utf-8\r\n\r\n" + JSON.stringify(json) + ("\r\n--" + this._boundary + "\r\n");
|
|
9236
9240
|
};
|
|
9237
9241
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.build = function() {
|
|
9238
|
-
var $jscomp$this$
|
|
9242
|
+
var $jscomp$this$m667091202$6 = this, payload = "--" + this._boundary + "\r\n";
|
|
9239
9243
|
payload += this._metadataPayload;
|
|
9240
9244
|
return Promise.all(this.files.map(function(f) {
|
|
9241
|
-
return $jscomp$this$
|
|
9245
|
+
return $jscomp$this$m667091202$6.encodeFile(f);
|
|
9242
9246
|
})).then(function(filePayloads) {
|
|
9243
|
-
for (var $jscomp$iter$30 = $jscomp.makeIterator(filePayloads), $jscomp$key$
|
|
9244
|
-
payload += $jscomp$key$
|
|
9247
|
+
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()) {
|
|
9248
|
+
payload += $jscomp$key$m667091202$9$filePayload.value;
|
|
9245
9249
|
}
|
|
9246
|
-
return payload += "\r\n--" + $jscomp$this$
|
|
9250
|
+
return payload += "\r\n--" + $jscomp$this$m667091202$6._boundary + "--";
|
|
9247
9251
|
});
|
|
9248
9252
|
};
|
|
9249
9253
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.encodeFile = function(file) {
|
|
@@ -9331,9 +9335,9 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$reques
|
|
|
9331
9335
|
return this.$addHooksToRequest(requestParams, this.requestService.send(module$contents$eeapiclient$api_client_toMakeRequestParams(requestParams), responseCtor));
|
|
9332
9336
|
};
|
|
9333
9337
|
module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$uploadRequest = function(requestParams) {
|
|
9334
|
-
var $jscomp$this$
|
|
9338
|
+
var $jscomp$this$1237977804$4 = this, responseCtor = requestParams.responseCtor || void 0;
|
|
9335
9339
|
return this.$addHooksToRequest(requestParams, module$contents$eeapiclient$api_client_toMultipartMakeRequestParams(requestParams).then(function(params) {
|
|
9336
|
-
return $jscomp$this$
|
|
9340
|
+
return $jscomp$this$1237977804$4.requestService.send(params, responseCtor);
|
|
9337
9341
|
}));
|
|
9338
9342
|
};
|
|
9339
9343
|
var module$exports$eeapiclient$ee_api_client = {}, module$contents$eeapiclient$ee_api_client_module = module$contents$eeapiclient$ee_api_client_module || {id:"geo/gestalt/client/javascript/v1/ee_api_client.closure.js"};
|
|
@@ -15206,8 +15210,8 @@ goog.dom.BrowserFeature.OFFSCREEN_CANVAS_2D = !goog.dom.BrowserFeature.ASSUME_NO
|
|
|
15206
15210
|
goog.dom.BrowserFeature.CAN_ADD_NAME_OR_TYPE_ATTRIBUTES = !0;
|
|
15207
15211
|
goog.dom.BrowserFeature.CAN_USE_CHILDREN_ATTRIBUTE = !0;
|
|
15208
15212
|
goog.dom.BrowserFeature.CAN_USE_INNER_TEXT = !1;
|
|
15209
|
-
goog.dom.BrowserFeature.CAN_USE_PARENT_ELEMENT_PROPERTY = goog.userAgent.
|
|
15210
|
-
goog.dom.BrowserFeature.INNER_HTML_NEEDS_SCOPED_ELEMENT =
|
|
15213
|
+
goog.dom.BrowserFeature.CAN_USE_PARENT_ELEMENT_PROPERTY = goog.userAgent.WEBKIT;
|
|
15214
|
+
goog.dom.BrowserFeature.INNER_HTML_NEEDS_SCOPED_ELEMENT = !1;
|
|
15211
15215
|
goog.dom.asserts = {};
|
|
15212
15216
|
goog.dom.asserts.assertIsLocation = function(o) {
|
|
15213
15217
|
if (goog.asserts.ENABLE_ASSERTS) {
|
|
@@ -15464,8 +15468,8 @@ module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
|
|
|
15464
15468
|
this.replacements = new Map();
|
|
15465
15469
|
};
|
|
15466
15470
|
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
|
|
15467
|
-
var $jscomp$this$
|
|
15468
|
-
return $jscomp$this$
|
|
15471
|
+
var $jscomp$this$380122516$5 = this, openedTags = [], marker = (0,module$exports$safevalues$builders$html_builders.htmlEscape)("_safevalues_format_marker_:").toString(), html = (0,module$exports$safevalues$builders$html_builders.htmlEscape)(format).toString().replace(new RegExp("\\{" + marker + "[\\w&#;]+\\}", "g"), function(match) {
|
|
15472
|
+
return $jscomp$this$380122516$5.replaceFormattingString(openedTags, match);
|
|
15469
15473
|
});
|
|
15470
15474
|
if (0 !== openedTags.length) {
|
|
15471
15475
|
if (goog.DEBUG) {
|
|
@@ -15593,9 +15597,10 @@ module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_tabl
|
|
|
15593
15597
|
var module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table = {}, module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_module = module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/sanitizer_table/default_sanitizer_table.closure.js"},
|
|
15594
15598
|
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS = "ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER ACRONYM BASEFONT BIG DIR HGROUP STRIKE TT".split(" "),
|
|
15595
15599
|
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES = [["A", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}]])], ["AREA", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}]])],
|
|
15596
|
-
["LINK", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL, conditions:new Map([["rel", new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])], ["SOURCE", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]
|
|
15597
|
-
["
|
|
15598
|
-
module$
|
|
15600
|
+
["LINK", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL, conditions:new Map([["rel", new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])], ["SOURCE", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}],
|
|
15601
|
+
["srcset", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]])], ["IMG", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}], ["srcset", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]])],
|
|
15602
|
+
["VIDEO", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]])], ["AUDIO", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]])]], module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES =
|
|
15603
|
+
"title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked color cols colspan controls datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
|
|
15599
15604
|
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES = [["dir", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
15600
15605
|
return new Map([["dir", new Set(["auto", "ltr", "rtl"])]]);
|
|
15601
15606
|
})}], ["async", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
@@ -15645,8 +15650,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
15645
15650
|
return this.sanitizeToFragmentInternal(html, inertDocument);
|
|
15646
15651
|
};
|
|
15647
15652
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
15648
|
-
for (var $jscomp$this$
|
|
15649
|
-
return $jscomp$this$
|
|
15653
|
+
for (var $jscomp$this$m1803429925$10 = this, dirtyFragment = module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(html, inertDocument), treeWalker = document.createTreeWalker(dirtyFragment, 5, function(n) {
|
|
15654
|
+
return $jscomp$this$m1803429925$10.nodeFilter(n);
|
|
15650
15655
|
}, !1), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; null !== currentNode;) {
|
|
15651
15656
|
var sanitizedNode = void 0;
|
|
15652
15657
|
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
@@ -15673,8 +15678,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
15673
15678
|
return document.createTextNode(textNode.data);
|
|
15674
15679
|
};
|
|
15675
15680
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
15676
|
-
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$31 = $jscomp.makeIterator(dirtyAttributes), $jscomp$key$
|
|
15677
|
-
var $jscomp$destructuring$var31 = $jscomp$key$
|
|
15681
|
+
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$31 = $jscomp.makeIterator(dirtyAttributes), $jscomp$key$m1803429925$25$ = $jscomp$iter$31.next(); !$jscomp$key$m1803429925$25$.done; $jscomp$key$m1803429925$25$ = $jscomp$iter$31.next()) {
|
|
15682
|
+
var $jscomp$destructuring$var31 = $jscomp$key$m1803429925$25$.value, name = $jscomp$destructuring$var31.name, value = $jscomp$destructuring$var31.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
|
|
15678
15683
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
15679
15684
|
switch(policy.policyAction) {
|
|
15680
15685
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
|
|
@@ -15727,8 +15732,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
15727
15732
|
if (!conditions) {
|
|
15728
15733
|
return !0;
|
|
15729
15734
|
}
|
|
15730
|
-
for (var $jscomp$iter$32 = $jscomp.makeIterator(conditions), $jscomp$key$
|
|
15731
|
-
var $jscomp$destructuring$var33 = $jscomp.makeIterator($jscomp$key$
|
|
15735
|
+
for (var $jscomp$iter$32 = $jscomp.makeIterator(conditions), $jscomp$key$m1803429925$26$ = $jscomp$iter$32.next(); !$jscomp$key$m1803429925$26$.done; $jscomp$key$m1803429925$26$ = $jscomp$iter$32.next()) {
|
|
15736
|
+
var $jscomp$destructuring$var33 = $jscomp.makeIterator($jscomp$key$m1803429925$26$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var33.next().value, expectedValues = $jscomp$destructuring$var33.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;
|
|
15732
15737
|
if (value && !expectedValues.has(value)) {
|
|
15733
15738
|
return !1;
|
|
15734
15739
|
}
|
|
@@ -15782,8 +15787,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
15782
15787
|
this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.defaultSanitizerTable;
|
|
15783
15788
|
};
|
|
15784
15789
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.onlyAllowElements = function(elementSet) {
|
|
15785
|
-
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$33 = $jscomp.makeIterator(elementSet), $jscomp$key$
|
|
15786
|
-
var element = $jscomp$key$
|
|
15790
|
+
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$33 = $jscomp.makeIterator(elementSet), $jscomp$key$m1412690177$0$element = $jscomp$iter$33.next(); !$jscomp$key$m1412690177$0$element.done; $jscomp$key$m1412690177$0$element = $jscomp$iter$33.next()) {
|
|
15791
|
+
var element = $jscomp$key$m1412690177$0$element.value;
|
|
15787
15792
|
element = element.toUpperCase();
|
|
15788
15793
|
if (!this.sanitizerTable.isAllowedElement(element)) {
|
|
15789
15794
|
throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
|
|
@@ -15801,8 +15806,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
15801
15806
|
throw Error("Element: " + element + " is not a custom element");
|
|
15802
15807
|
}
|
|
15803
15808
|
if (allowedAttributes) {
|
|
15804
|
-
for (var elementPolicy = new Map(), $jscomp$iter$34 = $jscomp.makeIterator(allowedAttributes), $jscomp$key$
|
|
15805
|
-
elementPolicy.set($jscomp$key$
|
|
15809
|
+
for (var elementPolicy = new Map(), $jscomp$iter$34 = $jscomp.makeIterator(allowedAttributes), $jscomp$key$m1412690177$1$attribute = $jscomp$iter$34.next(); !$jscomp$key$m1412690177$1$attribute.done; $jscomp$key$m1412690177$1$attribute = $jscomp$iter$34.next()) {
|
|
15810
|
+
elementPolicy.set($jscomp$key$m1412690177$1$attribute.value, {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
|
|
15806
15811
|
}
|
|
15807
15812
|
allowedElementPolicies.set(element, elementPolicy);
|
|
15808
15813
|
} else {
|
|
@@ -15812,15 +15817,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
15812
15817
|
return this;
|
|
15813
15818
|
};
|
|
15814
15819
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.onlyAllowAttributes = function(attributeSet) {
|
|
15815
|
-
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$35 = $jscomp.makeIterator(attributeSet), $jscomp$key$
|
|
15816
|
-
var attribute = $jscomp$key$
|
|
15820
|
+
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$35 = $jscomp.makeIterator(attributeSet), $jscomp$key$m1412690177$2$attribute = $jscomp$iter$35.next(); !$jscomp$key$m1412690177$2$attribute.done; $jscomp$key$m1412690177$2$attribute = $jscomp$iter$35.next()) {
|
|
15821
|
+
var attribute = $jscomp$key$m1412690177$2$attribute.value;
|
|
15817
15822
|
this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
|
|
15818
15823
|
this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
|
|
15819
15824
|
}
|
|
15820
|
-
for (var $jscomp$iter$37 = $jscomp.makeIterator(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$
|
|
15821
|
-
for (var $jscomp$destructuring$var35 = $jscomp.makeIterator($jscomp$key$
|
|
15825
|
+
for (var $jscomp$iter$37 = $jscomp.makeIterator(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$m1412690177$4$ = $jscomp$iter$37.next(); !$jscomp$key$m1412690177$4$.done; $jscomp$key$m1412690177$4$ = $jscomp$iter$37.next()) {
|
|
15826
|
+
for (var $jscomp$destructuring$var35 = $jscomp.makeIterator($jscomp$key$m1412690177$4$.value), elementName__tsickle_destructured_1 = $jscomp$destructuring$var35.next().value, originalElementPolicy__tsickle_destructured_2 = $jscomp$destructuring$var35.next().value, elementName = elementName__tsickle_destructured_1, newElementPolicy = new Map(), $jscomp$iter$36 = $jscomp.makeIterator(originalElementPolicy__tsickle_destructured_2.entries()), $jscomp$key$m1412690177$3$ = $jscomp$iter$36.next(); !$jscomp$key$m1412690177$3$.done; $jscomp$key$m1412690177$3$ =
|
|
15822
15827
|
$jscomp$iter$36.next()) {
|
|
15823
|
-
var $jscomp$destructuring$var37 = $jscomp.makeIterator($jscomp$key$
|
|
15828
|
+
var $jscomp$destructuring$var37 = $jscomp.makeIterator($jscomp$key$m1412690177$3$.value), attribute__tsickle_destructured_3 = $jscomp$destructuring$var37.next().value, attributePolicy__tsickle_destructured_4 = $jscomp$destructuring$var37.next().value, attribute$jscomp$0 = attribute__tsickle_destructured_3, attributePolicy = attributePolicy__tsickle_destructured_4;
|
|
15824
15829
|
attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
|
|
15825
15830
|
}
|
|
15826
15831
|
elementPolicies.set(elementName, newElementPolicy);
|
|
@@ -15829,8 +15834,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
15829
15834
|
return this;
|
|
15830
15835
|
};
|
|
15831
15836
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.allowDataAttributes = function(attributes) {
|
|
15832
|
-
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$38 = $jscomp.makeIterator(attributes), $jscomp$key$
|
|
15833
|
-
var attribute = $jscomp$key$
|
|
15837
|
+
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$38 = $jscomp.makeIterator(attributes), $jscomp$key$m1412690177$5$attribute = $jscomp$iter$38.next(); !$jscomp$key$m1412690177$5$attribute.done; $jscomp$key$m1412690177$5$attribute = $jscomp$iter$38.next()) {
|
|
15838
|
+
var attribute = $jscomp$key$m1412690177$5$attribute.value;
|
|
15834
15839
|
if (0 !== attribute.indexOf("data-")) {
|
|
15835
15840
|
throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
|
|
15836
15841
|
}
|
|
@@ -16081,12 +16086,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
16081
16086
|
}
|
|
16082
16087
|
try {
|
|
16083
16088
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
16084
|
-
} catch ($jscomp$unused$catch$
|
|
16089
|
+
} catch ($jscomp$unused$catch$442189172$0) {
|
|
16085
16090
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
16086
16091
|
}
|
|
16087
16092
|
try {
|
|
16088
16093
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
16089
|
-
} catch ($jscomp$unused$catch$
|
|
16094
|
+
} catch ($jscomp$unused$catch$442189172$1) {
|
|
16090
16095
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
16091
16096
|
}
|
|
16092
16097
|
return !1;
|
|
@@ -16603,7 +16608,7 @@ goog.dom.getDocumentScroll = function() {
|
|
|
16603
16608
|
};
|
|
16604
16609
|
goog.dom.getDocumentScroll_ = function(doc) {
|
|
16605
16610
|
var el = goog.dom.getDocumentScrollElement_(doc), win = goog.dom.getWindow_(doc);
|
|
16606
|
-
return
|
|
16611
|
+
return new goog.math.Coordinate(win.pageXOffset || el.scrollLeft, win.pageYOffset || el.scrollTop);
|
|
16607
16612
|
};
|
|
16608
16613
|
goog.dom.getDocumentScrollElement = function() {
|
|
16609
16614
|
return goog.dom.getDocumentScrollElement_(document);
|
|
@@ -16670,7 +16675,7 @@ goog.dom.safeHtmlToNode = function(html) {
|
|
|
16670
16675
|
};
|
|
16671
16676
|
goog.dom.safeHtmlToNode_ = function(doc, html) {
|
|
16672
16677
|
var tempDiv = goog.dom.createElement_(doc, goog.dom.TagName.DIV);
|
|
16673
|
-
goog.
|
|
16678
|
+
goog.dom.safe.setInnerHtml(tempDiv, html);
|
|
16674
16679
|
return goog.dom.childrenToNode_(doc, tempDiv);
|
|
16675
16680
|
};
|
|
16676
16681
|
goog.dom.childrenToNode_ = function(doc, tempDiv) {
|
|
@@ -16831,7 +16836,7 @@ goog.dom.isWindow = function(obj) {
|
|
|
16831
16836
|
};
|
|
16832
16837
|
goog.dom.getParentElement = function(element) {
|
|
16833
16838
|
var parent;
|
|
16834
|
-
if (goog.
|
|
16839
|
+
if (goog.userAgent.WEBKIT && (parent = element.parentElement)) {
|
|
16835
16840
|
return parent;
|
|
16836
16841
|
}
|
|
16837
16842
|
parent = element.parentNode;
|
|
@@ -16859,14 +16864,6 @@ goog.dom.compareNodeOrder = function(node1, node2) {
|
|
|
16859
16864
|
if (node1.compareDocumentPosition) {
|
|
16860
16865
|
return node1.compareDocumentPosition(node2) & 2 ? 1 : -1;
|
|
16861
16866
|
}
|
|
16862
|
-
if (goog.userAgent.IE && !goog.userAgent.isDocumentModeOrHigher(9)) {
|
|
16863
|
-
if (node1.nodeType == goog.dom.NodeType.DOCUMENT) {
|
|
16864
|
-
return -1;
|
|
16865
|
-
}
|
|
16866
|
-
if (node2.nodeType == goog.dom.NodeType.DOCUMENT) {
|
|
16867
|
-
return 1;
|
|
16868
|
-
}
|
|
16869
|
-
}
|
|
16870
16867
|
if ("sourceIndex" in node1 || node1.parentNode && "sourceIndex" in node1.parentNode) {
|
|
16871
16868
|
var isElement1 = node1.nodeType == goog.dom.NodeType.ELEMENT, isElement2 = node2.nodeType == goog.dom.NodeType.ELEMENT;
|
|
16872
16869
|
if (isElement1 && isElement2) {
|
|
@@ -17032,8 +17029,7 @@ goog.dom.setFocusableTabIndex = function(element, enable) {
|
|
|
17032
17029
|
enable ? element.tabIndex = 0 : (element.tabIndex = -1, element.removeAttribute("tabIndex"));
|
|
17033
17030
|
};
|
|
17034
17031
|
goog.dom.isFocusable = function(element) {
|
|
17035
|
-
|
|
17036
|
-
return (focusable = goog.dom.nativelySupportsFocus_(element) ? !element.disabled && (!goog.dom.hasSpecifiedTabIndex_(element) || goog.dom.isTabIndexFocusable_(element)) : goog.dom.isFocusableTabIndex(element)) && goog.userAgent.IE ? goog.dom.hasNonZeroBoundingRect_(element) : focusable;
|
|
17032
|
+
return goog.dom.nativelySupportsFocus_(element) ? !element.disabled && (!goog.dom.hasSpecifiedTabIndex_(element) || goog.dom.isTabIndexFocusable_(element)) : goog.dom.isFocusableTabIndex(element);
|
|
17037
17033
|
};
|
|
17038
17034
|
goog.dom.hasSpecifiedTabIndex_ = function(element) {
|
|
17039
17035
|
return element.hasAttribute("tabindex");
|
|
@@ -17046,7 +17042,7 @@ goog.dom.nativelySupportsFocus_ = function(element) {
|
|
|
17046
17042
|
return element.tagName == goog.dom.TagName.A && element.hasAttribute("href") || element.tagName == goog.dom.TagName.INPUT || element.tagName == goog.dom.TagName.TEXTAREA || element.tagName == goog.dom.TagName.SELECT || element.tagName == goog.dom.TagName.BUTTON;
|
|
17047
17043
|
};
|
|
17048
17044
|
goog.dom.hasNonZeroBoundingRect_ = function(element) {
|
|
17049
|
-
var rect = "function" !== typeof element.getBoundingClientRect
|
|
17045
|
+
var rect = "function" !== typeof element.getBoundingClientRect ? {height:element.offsetHeight, width:element.offsetWidth} : element.getBoundingClientRect();
|
|
17050
17046
|
return null != rect && 0 < rect.height && 0 < rect.width;
|
|
17051
17047
|
};
|
|
17052
17048
|
goog.dom.getTextContent = function(node) {
|
|
@@ -17285,7 +17281,7 @@ goog.async.nextTick = function(callback, opt_context, opt_useSetImmediate) {
|
|
|
17285
17281
|
"function" === typeof goog.global.setImmediate && (opt_useSetImmediate || goog.async.nextTick.useSetImmediate_()) ? goog.global.setImmediate(cb) : (goog.async.nextTick.nextTickImpl || (goog.async.nextTick.nextTickImpl = goog.async.nextTick.getNextTickImpl_()), goog.async.nextTick.nextTickImpl(cb));
|
|
17286
17282
|
};
|
|
17287
17283
|
goog.async.nextTick.useSetImmediate_ = function() {
|
|
17288
|
-
return goog.global.Window && goog.global.Window.prototype &&
|
|
17284
|
+
return goog.global.Window && goog.global.Window.prototype && goog.global.Window.prototype.setImmediate == goog.global.setImmediate ? !1 : !0;
|
|
17289
17285
|
};
|
|
17290
17286
|
goog.async.nextTick.getNextTickImpl_ = function() {
|
|
17291
17287
|
var Channel = goog.global.MessageChannel;
|
|
@@ -17307,7 +17303,7 @@ goog.async.nextTick.getNextTickImpl_ = function() {
|
|
|
17307
17303
|
win.postMessage(message, origin);
|
|
17308
17304
|
}};
|
|
17309
17305
|
});
|
|
17310
|
-
if ("undefined" !== typeof Channel
|
|
17306
|
+
if ("undefined" !== typeof Channel) {
|
|
17311
17307
|
var channel = new Channel(), head = {}, tail = head;
|
|
17312
17308
|
channel.port1.onmessage = function() {
|
|
17313
17309
|
if (void 0 !== head.next) {
|
|
@@ -18561,7 +18557,7 @@ goog.net.XhrIo = function(opt_xmlHttpFactory) {
|
|
|
18561
18557
|
this.timeoutInterval_ = 0;
|
|
18562
18558
|
this.timeoutId_ = null;
|
|
18563
18559
|
this.responseType_ = goog.net.XhrIo.ResponseType.DEFAULT;
|
|
18564
|
-
this.
|
|
18560
|
+
this.progressEventsEnabled_ = this.withCredentials_ = !1;
|
|
18565
18561
|
this.attributionReportingOptions_ = this.trustToken_ = null;
|
|
18566
18562
|
};
|
|
18567
18563
|
goog.inherits(goog.net.XhrIo, goog.events.EventTarget);
|
|
@@ -18572,8 +18568,6 @@ goog.net.XhrIo.CONTENT_TRANSFER_ENCODING = "Content-Transfer-Encoding";
|
|
|
18572
18568
|
goog.net.XhrIo.HTTP_SCHEME_PATTERN = /^https?$/i;
|
|
18573
18569
|
goog.net.XhrIo.METHODS_WITH_FORM_DATA = ["POST", "PUT"];
|
|
18574
18570
|
goog.net.XhrIo.FORM_CONTENT_TYPE = "application/x-www-form-urlencoded;charset=utf-8";
|
|
18575
|
-
goog.net.XhrIo.XHR2_TIMEOUT_ = "timeout";
|
|
18576
|
-
goog.net.XhrIo.XHR2_ON_TIMEOUT_ = "ontimeout";
|
|
18577
18571
|
goog.net.XhrIo.sendInstances_ = [];
|
|
18578
18572
|
goog.net.XhrIo.send = function(url, opt_callback, opt_method, opt_content, opt_headers, opt_timeoutInterval, opt_withCredentials) {
|
|
18579
18573
|
var x = new goog.net.XhrIo();
|
|
@@ -18658,8 +18652,8 @@ goog.net.XhrIo.prototype.send = function(url, opt_method, opt_content, opt_heade
|
|
|
18658
18652
|
headers.set(key, opt_headers[key]);
|
|
18659
18653
|
}
|
|
18660
18654
|
} else if ("function" === typeof opt_headers.keys && "function" === typeof opt_headers.get) {
|
|
18661
|
-
for (var $jscomp$iter$39 = $jscomp.makeIterator(opt_headers.keys()), $jscomp$key$m71669834$
|
|
18662
|
-
var key$jscomp$0 = $jscomp$key$m71669834$
|
|
18655
|
+
for (var $jscomp$iter$39 = $jscomp.makeIterator(opt_headers.keys()), $jscomp$key$m71669834$54$key = $jscomp$iter$39.next(); !$jscomp$key$m71669834$54$key.done; $jscomp$key$m71669834$54$key = $jscomp$iter$39.next()) {
|
|
18656
|
+
var key$jscomp$0 = $jscomp$key$m71669834$54$key.value;
|
|
18663
18657
|
headers.set(key$jscomp$0, opt_headers.get(key$jscomp$0));
|
|
18664
18658
|
}
|
|
18665
18659
|
} else {
|
|
@@ -18670,8 +18664,8 @@ goog.net.XhrIo.prototype.send = function(url, opt_method, opt_content, opt_heade
|
|
|
18670
18664
|
return goog.string.caseInsensitiveEquals(goog.net.XhrIo.CONTENT_TYPE_HEADER, header);
|
|
18671
18665
|
}), contentIsFormData = goog.global.FormData && content instanceof goog.global.FormData;
|
|
18672
18666
|
!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);
|
|
18673
|
-
for (var $jscomp$iter$40 = $jscomp.makeIterator(headers), $jscomp$key$m71669834$
|
|
18674
|
-
var $jscomp$destructuring$var39 = $jscomp.makeIterator($jscomp$key$m71669834$
|
|
18667
|
+
for (var $jscomp$iter$40 = $jscomp.makeIterator(headers), $jscomp$key$m71669834$55$ = $jscomp$iter$40.next(); !$jscomp$key$m71669834$55$.done; $jscomp$key$m71669834$55$ = $jscomp$iter$40.next()) {
|
|
18668
|
+
var $jscomp$destructuring$var39 = $jscomp.makeIterator($jscomp$key$m71669834$55$.value), key$jscomp$1 = $jscomp$destructuring$var39.next().value, value = $jscomp$destructuring$var39.next().value;
|
|
18675
18669
|
this.xhr_.setRequestHeader(key$jscomp$1, value);
|
|
18676
18670
|
}
|
|
18677
18671
|
this.responseType_ && (this.xhr_.responseType = this.responseType_);
|
|
@@ -18691,15 +18685,11 @@ goog.net.XhrIo.prototype.send = function(url, opt_method, opt_content, opt_heade
|
|
|
18691
18685
|
}
|
|
18692
18686
|
}
|
|
18693
18687
|
try {
|
|
18694
|
-
this.cleanUpTimeoutTimer_(), 0 < this.timeoutInterval_ && (
|
|
18695
|
-
this)), goog.log.fine(this.logger_, this.formatMsg_("Sending request")), this.inSend_ = !0, this.xhr_.send(content), this.inSend_ = !1;
|
|
18688
|
+
this.cleanUpTimeoutTimer_(), 0 < this.timeoutInterval_ && (goog.log.fine(this.logger_, this.formatMsg_("Will abort after " + this.timeoutInterval_ + "ms if incomplete")), this.timeoutId_ = goog.Timer.callOnce(this.timeout_, this.timeoutInterval_, this)), goog.log.fine(this.logger_, this.formatMsg_("Sending request")), this.inSend_ = !0, this.xhr_.send(content), this.inSend_ = !1;
|
|
18696
18689
|
} catch (err) {
|
|
18697
18690
|
goog.log.fine(this.logger_, this.formatMsg_("Send error: " + err.message)), this.error_(goog.net.ErrorCode.EXCEPTION, err);
|
|
18698
18691
|
}
|
|
18699
18692
|
};
|
|
18700
|
-
goog.net.XhrIo.shouldUseXhr2Timeout_ = function(xhr) {
|
|
18701
|
-
return goog.userAgent.IE && "number" === typeof xhr[goog.net.XhrIo.XHR2_TIMEOUT_] && void 0 !== xhr[goog.net.XhrIo.XHR2_ON_TIMEOUT_];
|
|
18702
|
-
};
|
|
18703
18693
|
goog.net.XhrIo.prototype.createXhr = function() {
|
|
18704
18694
|
return this.xmlHttpFactory_ ? this.xmlHttpFactory_.createInstance() : goog.net.XmlHttp();
|
|
18705
18695
|
};
|
|
@@ -18780,7 +18770,6 @@ goog.net.XhrIo.prototype.cleanUpXhr_ = function(opt_fromDispose) {
|
|
|
18780
18770
|
}
|
|
18781
18771
|
};
|
|
18782
18772
|
goog.net.XhrIo.prototype.cleanUpTimeoutTimer_ = function() {
|
|
18783
|
-
this.xhr_ && this.useXhr2Timeout_ && (this.xhr_[goog.net.XhrIo.XHR2_ON_TIMEOUT_] = null);
|
|
18784
18773
|
this.timeoutId_ && (goog.Timer.clear(this.timeoutId_), this.timeoutId_ = null);
|
|
18785
18774
|
};
|
|
18786
18775
|
goog.net.XhrIo.prototype.isActive = function() {
|
|
@@ -18988,7 +18977,7 @@ var $jscomp$templatelit$294235699$99 = $jscomp.createTemplateTagFirstArg(["https
|
|
|
18988
18977
|
ee.apiclient = {};
|
|
18989
18978
|
var module$contents$ee$apiclient_apiclient = {};
|
|
18990
18979
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
18991
|
-
ee.apiclient.API_CLIENT_VERSION = "
|
|
18980
|
+
ee.apiclient.API_CLIENT_VERSION = "API_CLIENT_VERSION_VALUE";
|
|
18992
18981
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
18993
18982
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
18994
18983
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -19278,8 +19267,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19278
19267
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
19279
19268
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
19280
19269
|
method = method || "POST";
|
|
19281
|
-
var headers = {"Content-Type":contentType}, version = "
|
|
19282
|
-
"
|
|
19270
|
+
var headers = {"Content-Type":contentType}, version = "API_CLIENT_VERSION_VALUE";
|
|
19271
|
+
"API_CLIENT_VERSION_VALUE" === version && (version = "latest");
|
|
19283
19272
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
19284
19273
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
19285
19274
|
if (null != authToken) {
|
|
@@ -22224,7 +22213,7 @@ ee.Geometry = function(geoJson, opt_proj, opt_geodesic, opt_evenOdd) {
|
|
|
22224
22213
|
if (!(this instanceof ee.Geometry)) {
|
|
22225
22214
|
return ee.ComputedObject.construct(ee.Geometry, arguments);
|
|
22226
22215
|
}
|
|
22227
|
-
if (!("type" in geoJson)) {
|
|
22216
|
+
if ("object" !== typeof geoJson || !("type" in geoJson)) {
|
|
22228
22217
|
var args = ee.arguments.extractFromFunction(ee.Geometry, arguments);
|
|
22229
22218
|
geoJson = args.geoJson;
|
|
22230
22219
|
opt_proj = args.proj;
|
|
@@ -25108,8 +25097,7 @@ goog.style.getPosition = function(element) {
|
|
|
25108
25097
|
return new goog.math.Coordinate(element.offsetLeft, element.offsetTop);
|
|
25109
25098
|
};
|
|
25110
25099
|
goog.style.getClientViewportElement = function(opt_node) {
|
|
25111
|
-
|
|
25112
|
-
return !goog.userAgent.IE || goog.userAgent.isDocumentModeOrHigher(9) || goog.dom.getDomHelper(doc).isCss1CompatMode() ? doc.documentElement : doc.body;
|
|
25100
|
+
return (opt_node ? goog.dom.getOwnerDocument(opt_node) : goog.dom.getDocument()).documentElement;
|
|
25113
25101
|
};
|
|
25114
25102
|
goog.style.getViewportPageOffset = function(doc) {
|
|
25115
25103
|
var body = doc.body, documentElement = doc.documentElement;
|
|
@@ -25123,9 +25111,6 @@ goog.style.getBoundingClientRect_ = function(el) {
|
|
|
25123
25111
|
}
|
|
25124
25112
|
};
|
|
25125
25113
|
goog.style.getOffsetParent = function(element) {
|
|
25126
|
-
if (goog.userAgent.IE && !goog.userAgent.isDocumentModeOrHigher(8)) {
|
|
25127
|
-
return goog.asserts.assert(element && "offsetParent" in element), element.offsetParent;
|
|
25128
|
-
}
|
|
25129
25114
|
for (var doc = goog.dom.getOwnerDocument(element), positionStyle = goog.style.getStyle_(element, "position"), skipStatic = "fixed" == positionStyle || "absolute" == positionStyle, parent = element.parentNode; parent && parent != doc; parent = parent.parentNode) {
|
|
25130
25115
|
if (parent.nodeType == goog.dom.NodeType.DOCUMENT_FRAGMENT && parent.host && (parent = parent.host), positionStyle = goog.style.getStyle_(parent, "position"), skipStatic = skipStatic && "static" == positionStyle && parent != doc.documentElement && parent != doc.body, !skipStatic && (parent.scrollWidth > parent.clientWidth || parent.scrollHeight > parent.clientHeight || "fixed" == positionStyle || "absolute" == positionStyle || "relative" == positionStyle)) {
|
|
25131
25116
|
return parent;
|
|
@@ -25135,7 +25120,7 @@ goog.style.getOffsetParent = function(element) {
|
|
|
25135
25120
|
};
|
|
25136
25121
|
goog.style.getVisibleRectForElement = function(element) {
|
|
25137
25122
|
for (var visibleRect = new goog.math.Box(0, Infinity, Infinity, 0), dom = goog.dom.getDomHelper(element), body = dom.getDocument().body, documentElement = dom.getDocument().documentElement, scrollEl = dom.getDocumentScrollElement(), el = element; el = goog.style.getOffsetParent(el);) {
|
|
25138
|
-
if (!
|
|
25123
|
+
if ((!goog.userAgent.WEBKIT || 0 != el.clientHeight || el != body) && el != body && el != documentElement && "visible" != goog.style.getStyle_(el, "overflow")) {
|
|
25139
25124
|
var pos = goog.style.getPageOffset(el), client = goog.style.getClientLeftTop(el);
|
|
25140
25125
|
pos.x += client.x;
|
|
25141
25126
|
pos.y += client.y;
|
|
@@ -25157,7 +25142,6 @@ goog.style.getContainerOffsetToScrollInto = function(element, opt_container, opt
|
|
|
25157
25142
|
var container = opt_container || goog.dom.getDocumentScrollElement(), elementPos = goog.style.getPageOffset(element), containerPos = goog.style.getPageOffset(container), containerBorder = goog.style.getBorderBox(container);
|
|
25158
25143
|
if (container == goog.dom.getDocumentScrollElement()) {
|
|
25159
25144
|
var relX = elementPos.x - container.scrollLeft, relY = elementPos.y - container.scrollTop;
|
|
25160
|
-
goog.userAgent.IE && !goog.userAgent.isDocumentModeOrHigher(10) && (relX += containerBorder.left, relY += containerBorder.top);
|
|
25161
25145
|
} else {
|
|
25162
25146
|
relX = elementPos.x - containerPos.x - containerBorder.left, relY = elementPos.y - containerPos.y - containerBorder.top;
|
|
25163
25147
|
}
|
|
@@ -25208,7 +25192,6 @@ goog.style.translateRectForAnotherFrame = function(rect, origBase, newBase) {
|
|
|
25208
25192
|
if (origBase.getDocument() != newBase.getDocument()) {
|
|
25209
25193
|
var body = origBase.getDocument().body, pos = goog.style.getFramedPageOffset(body, newBase.getWindow());
|
|
25210
25194
|
pos = goog.math.Coordinate.difference(pos, goog.style.getPageOffset(body));
|
|
25211
|
-
!goog.userAgent.IE || goog.userAgent.isDocumentModeOrHigher(9) || origBase.isCss1CompatMode() || (pos = goog.math.Coordinate.difference(pos, origBase.getDocumentScroll()));
|
|
25212
25195
|
rect.left += pos.x;
|
|
25213
25196
|
rect.top += pos.y;
|
|
25214
25197
|
}
|
|
@@ -25338,13 +25321,7 @@ goog.style.isElementShown = function(el) {
|
|
|
25338
25321
|
return "none" != el.style.display;
|
|
25339
25322
|
};
|
|
25340
25323
|
goog.style.installSafeStyleSheet = function(safeStyleSheet, opt_node) {
|
|
25341
|
-
var dh = goog.dom.getDomHelper(opt_node),
|
|
25342
|
-
if (goog.userAgent.IE && doc.createStyleSheet) {
|
|
25343
|
-
var styleSheet = doc.createStyleSheet();
|
|
25344
|
-
goog.style.setSafeStyleSheet(styleSheet, safeStyleSheet);
|
|
25345
|
-
return styleSheet;
|
|
25346
|
-
}
|
|
25347
|
-
var head = dh.getElementsByTagNameAndClass(goog.dom.TagName.HEAD)[0];
|
|
25324
|
+
var dh = goog.dom.getDomHelper(opt_node), head = dh.getElementsByTagNameAndClass(goog.dom.TagName.HEAD)[0];
|
|
25348
25325
|
if (!head) {
|
|
25349
25326
|
var body = dh.getElementsByTagNameAndClass(goog.dom.TagName.BODY)[0];
|
|
25350
25327
|
head = dh.createDom(goog.dom.TagName.HEAD);
|
|
@@ -25361,7 +25338,7 @@ goog.style.uninstallStyles = function(styleSheet) {
|
|
|
25361
25338
|
};
|
|
25362
25339
|
goog.style.setSafeStyleSheet = function(element, safeStyleSheet) {
|
|
25363
25340
|
var stylesString = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(safeStyleSheet);
|
|
25364
|
-
goog.
|
|
25341
|
+
goog.global.trustedTypes ? goog.dom.setTextContent(element, stylesString) : element.innerHTML = stylesString;
|
|
25365
25342
|
};
|
|
25366
25343
|
goog.style.setPreWrap = function(el) {
|
|
25367
25344
|
el.style.whiteSpace = goog.userAgent.GECKO ? "-moz-pre-wrap" : "pre-wrap";
|
|
@@ -25376,7 +25353,7 @@ goog.style.isRightToLeft = function(el) {
|
|
|
25376
25353
|
};
|
|
25377
25354
|
goog.style.unselectableStyle_ = goog.userAgent.GECKO ? "MozUserSelect" : goog.userAgent.WEBKIT || goog.userAgent.EDGE ? "WebkitUserSelect" : null;
|
|
25378
25355
|
goog.style.isUnselectable = function(el) {
|
|
25379
|
-
return goog.style.unselectableStyle_
|
|
25356
|
+
return !(!goog.style.unselectableStyle_ || "none" != el.style[goog.style.unselectableStyle_].toLowerCase());
|
|
25380
25357
|
};
|
|
25381
25358
|
goog.style.setUnselectable = function(el, unselectable, opt_noRecurse) {
|
|
25382
25359
|
var descendants = opt_noRecurse ? null : el.getElementsByTagName("*"), name = goog.style.unselectableStyle_;
|
|
@@ -25388,10 +25365,6 @@ goog.style.setUnselectable = function(el, unselectable, opt_noRecurse) {
|
|
|
25388
25365
|
descendant.style && (descendant.style[name] = value);
|
|
25389
25366
|
}
|
|
25390
25367
|
}
|
|
25391
|
-
} else if (goog.userAgent.IE && (value = unselectable ? "on" : "", el.setAttribute("unselectable", value), descendants)) {
|
|
25392
|
-
for (i = 0; descendant = descendants[i]; i++) {
|
|
25393
|
-
descendant.setAttribute("unselectable", value);
|
|
25394
|
-
}
|
|
25395
25368
|
}
|
|
25396
25369
|
};
|
|
25397
25370
|
goog.style.getBorderBoxSize = function(element) {
|
|
@@ -25401,11 +25374,6 @@ goog.style.setBorderBoxSize = function(element, size) {
|
|
|
25401
25374
|
goog.style.setBoxSizingSize_(element, size, "border-box");
|
|
25402
25375
|
};
|
|
25403
25376
|
goog.style.getContentBoxSize = function(element) {
|
|
25404
|
-
var doc = goog.dom.getOwnerDocument(element), ieCurrentStyle = goog.userAgent.IE && element.currentStyle;
|
|
25405
|
-
if (ieCurrentStyle && goog.dom.getDomHelper(doc).isCss1CompatMode() && "auto" != ieCurrentStyle.width && "auto" != ieCurrentStyle.height && !ieCurrentStyle.boxSizing) {
|
|
25406
|
-
var width = goog.style.getIePixelValue_(element, ieCurrentStyle.width, "width", "pixelWidth"), height = goog.style.getIePixelValue_(element, ieCurrentStyle.height, "height", "pixelHeight");
|
|
25407
|
-
return new goog.math.Size(width, height);
|
|
25408
|
-
}
|
|
25409
25377
|
var borderBoxSize = goog.style.getBorderBoxSize(element), paddingBox = goog.style.getPaddingBox(element), borderBox = goog.style.getBorderBox(element);
|
|
25410
25378
|
return new goog.math.Size(borderBoxSize.width - borderBox.left - paddingBox.left - paddingBox.right - borderBox.right, borderBoxSize.height - borderBox.top - paddingBox.top - paddingBox.bottom - borderBox.bottom);
|
|
25411
25379
|
};
|
|
@@ -25435,14 +25403,7 @@ goog.style.getIePixelDistance_ = function(element, propName) {
|
|
|
25435
25403
|
return value ? goog.style.getIePixelValue_(element, value, "left", "pixelLeft") : 0;
|
|
25436
25404
|
};
|
|
25437
25405
|
goog.style.getBox_ = function(element, stylePrefix) {
|
|
25438
|
-
|
|
25439
|
-
var left = goog.style.getIePixelDistance_(element, stylePrefix + "Left"), right = goog.style.getIePixelDistance_(element, stylePrefix + "Right"), top = goog.style.getIePixelDistance_(element, stylePrefix + "Top"), bottom = goog.style.getIePixelDistance_(element, stylePrefix + "Bottom");
|
|
25440
|
-
return new goog.math.Box(top, right, bottom, left);
|
|
25441
|
-
}
|
|
25442
|
-
left = goog.style.getComputedStyle(element, stylePrefix + "Left");
|
|
25443
|
-
right = goog.style.getComputedStyle(element, stylePrefix + "Right");
|
|
25444
|
-
top = goog.style.getComputedStyle(element, stylePrefix + "Top");
|
|
25445
|
-
bottom = goog.style.getComputedStyle(element, stylePrefix + "Bottom");
|
|
25406
|
+
var left = goog.style.getComputedStyle(element, stylePrefix + "Left"), right = goog.style.getComputedStyle(element, stylePrefix + "Right"), top = goog.style.getComputedStyle(element, stylePrefix + "Top"), bottom = goog.style.getComputedStyle(element, stylePrefix + "Bottom");
|
|
25446
25407
|
return new goog.math.Box(parseFloat(top), parseFloat(right), parseFloat(bottom), parseFloat(left));
|
|
25447
25408
|
};
|
|
25448
25409
|
goog.style.getPaddingBox = function(element) {
|
|
@@ -25460,14 +25421,7 @@ goog.style.getIePixelBorder_ = function(element, prop) {
|
|
|
25460
25421
|
return width in goog.style.ieBorderWidthKeywords_ ? goog.style.ieBorderWidthKeywords_[width] : goog.style.getIePixelValue_(element, width, "left", "pixelLeft");
|
|
25461
25422
|
};
|
|
25462
25423
|
goog.style.getBorderBox = function(element) {
|
|
25463
|
-
|
|
25464
|
-
var left = goog.style.getIePixelBorder_(element, "borderLeft"), right = goog.style.getIePixelBorder_(element, "borderRight"), top = goog.style.getIePixelBorder_(element, "borderTop"), bottom = goog.style.getIePixelBorder_(element, "borderBottom");
|
|
25465
|
-
return new goog.math.Box(top, right, bottom, left);
|
|
25466
|
-
}
|
|
25467
|
-
left = goog.style.getComputedStyle(element, "borderLeftWidth");
|
|
25468
|
-
right = goog.style.getComputedStyle(element, "borderRightWidth");
|
|
25469
|
-
top = goog.style.getComputedStyle(element, "borderTopWidth");
|
|
25470
|
-
bottom = goog.style.getComputedStyle(element, "borderBottomWidth");
|
|
25424
|
+
var left = goog.style.getComputedStyle(element, "borderLeftWidth"), right = goog.style.getComputedStyle(element, "borderRightWidth"), top = goog.style.getComputedStyle(element, "borderTopWidth"), bottom = goog.style.getComputedStyle(element, "borderBottomWidth");
|
|
25471
25425
|
return new goog.math.Box(parseFloat(top), parseFloat(right), parseFloat(bottom), parseFloat(left));
|
|
25472
25426
|
};
|
|
25473
25427
|
goog.style.getFontFamily = function(el) {
|
|
@@ -25498,15 +25452,6 @@ goog.style.getFontSize = function(el) {
|
|
|
25498
25452
|
if (fontSize && "px" == sizeUnits) {
|
|
25499
25453
|
return parseInt(fontSize, 10);
|
|
25500
25454
|
}
|
|
25501
|
-
if (goog.userAgent.IE) {
|
|
25502
|
-
if (String(sizeUnits) in goog.style.ABSOLUTE_CSS_LENGTH_UNITS_) {
|
|
25503
|
-
return goog.style.getIePixelValue_(el, fontSize, "left", "pixelLeft");
|
|
25504
|
-
}
|
|
25505
|
-
if (el.parentNode && el.parentNode.nodeType == goog.dom.NodeType.ELEMENT && String(sizeUnits) in goog.style.CONVERTIBLE_RELATIVE_CSS_UNITS_) {
|
|
25506
|
-
var parentElement = el.parentNode, parentSize = goog.style.getStyle_(parentElement, "fontSize");
|
|
25507
|
-
return goog.style.getIePixelValue_(parentElement, fontSize == parentSize ? "1em" : fontSize, "left", "pixelLeft");
|
|
25508
|
-
}
|
|
25509
|
-
}
|
|
25510
25455
|
var sizeElement = goog.dom.createDom(goog.dom.TagName.SPAN, {style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});
|
|
25511
25456
|
goog.dom.appendChild(el, sizeElement);
|
|
25512
25457
|
fontSize = sizeElement.offsetHeight;
|
|
@@ -25532,10 +25477,10 @@ goog.style.toStyleAttribute = function(obj) {
|
|
|
25532
25477
|
return buffer.join("");
|
|
25533
25478
|
};
|
|
25534
25479
|
goog.style.setFloat = function(el, value) {
|
|
25535
|
-
el.style
|
|
25480
|
+
el.style.cssFloat = value;
|
|
25536
25481
|
};
|
|
25537
25482
|
goog.style.getFloat = function(el) {
|
|
25538
|
-
return el.style
|
|
25483
|
+
return el.style.cssFloat || "";
|
|
25539
25484
|
};
|
|
25540
25485
|
goog.style.getScrollbarWidth = function(opt_className) {
|
|
25541
25486
|
var outerDiv = goog.dom.createElement(goog.dom.TagName.DIV);
|
|
@@ -26345,14 +26290,15 @@ goog.structs.PriorityPool.prototype.disposeInternal = function() {
|
|
|
26345
26290
|
this.requestQueue_.clear();
|
|
26346
26291
|
this.requestQueue_ = null;
|
|
26347
26292
|
};
|
|
26348
|
-
var module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource = function(mapId, opt_profiler) {
|
|
26293
|
+
var module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource = function(mapId, opt_profiler, opt_parallelism) {
|
|
26349
26294
|
module$exports$ee$layers$AbstractTileSource.call(this);
|
|
26350
26295
|
this.mapId_ = mapId;
|
|
26351
26296
|
this.profiler_ = opt_profiler || null;
|
|
26297
|
+
this.token_count_ = opt_parallelism || module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.DEFAULT_TOKEN_COUNT_;
|
|
26352
26298
|
};
|
|
26353
26299
|
$jscomp.inherits(module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource, module$exports$ee$layers$AbstractTileSource);
|
|
26354
26300
|
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.prototype.loadTile = function(tile, opt_priority) {
|
|
26355
|
-
var ProfilerHeader = module$contents$ee$apiclient_apiclient.PROFILE_HEADER.toLowerCase(), key = goog.events.listen(tile, ee.layers.AbstractTile.EventType.STATUS_CHANGED, function() {
|
|
26301
|
+
var $jscomp$this$1134479182$2 = this, ProfilerHeader = module$contents$ee$apiclient_apiclient.PROFILE_HEADER.toLowerCase(), key = goog.events.listen(tile, ee.layers.AbstractTile.EventType.STATUS_CHANGED, function() {
|
|
26356
26302
|
switch(tile.getStatus()) {
|
|
26357
26303
|
case ee.layers.AbstractTile.Status.LOADED:
|
|
26358
26304
|
var profileId = tile.sourceResponseHeaders[ProfilerHeader];
|
|
@@ -26364,14 +26310,15 @@ module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.prototype.
|
|
|
26364
26310
|
}
|
|
26365
26311
|
}, void 0, this);
|
|
26366
26312
|
tile.sourceUrl = this.getTileUrl_(tile.coord, tile.zoom);
|
|
26367
|
-
|
|
26368
|
-
|
|
26313
|
+
this.getGlobalTokenPool_().getObject(function(token) {
|
|
26314
|
+
$jscomp$this$1134479182$2.handleAvailableToken_(tile, token);
|
|
26315
|
+
}, opt_priority);
|
|
26369
26316
|
};
|
|
26370
26317
|
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.prototype.getUniqueId = function() {
|
|
26371
26318
|
return this.mapId_.mapid + "-" + this.mapId_.token;
|
|
26372
26319
|
};
|
|
26373
26320
|
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.prototype.handleAvailableToken_ = function(tile, token) {
|
|
26374
|
-
var tokenPool =
|
|
26321
|
+
var tokenPool = this.getGlobalTokenPool_();
|
|
26375
26322
|
if (tile.isDisposed() || tile.getStatus() == ee.layers.AbstractTile.Status.ABORTED) {
|
|
26376
26323
|
tokenPool.releaseObject(token);
|
|
26377
26324
|
} else {
|
|
@@ -26385,13 +26332,13 @@ module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.prototype.
|
|
|
26385
26332
|
var url = ee.data.getTileUrl(this.mapId_, coord.x, coord.y, zoom);
|
|
26386
26333
|
return this.profiler_ && this.profiler_.isEnabled() ? url + "&profiling=1" : url;
|
|
26387
26334
|
};
|
|
26388
|
-
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.getGlobalTokenPool_ = function() {
|
|
26389
|
-
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_ || (module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_ = new goog.structs.PriorityPool(0,
|
|
26335
|
+
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.prototype.getGlobalTokenPool_ = function() {
|
|
26336
|
+
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_ || (module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_ = new goog.structs.PriorityPool(0, this.token_count_));
|
|
26390
26337
|
return module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_;
|
|
26391
26338
|
};
|
|
26392
26339
|
goog.exportSymbol("ee.layers.EarthEngineTileSource", module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource);
|
|
26393
26340
|
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_ = null;
|
|
26394
|
-
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.
|
|
26341
|
+
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.DEFAULT_TOKEN_COUNT_ = 4;
|
|
26395
26342
|
ee.layers.EarthEngineTileSource = module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource;
|
|
26396
26343
|
ee.layers.FeatureViewTileSource = {};
|
|
26397
26344
|
var module$contents$ee$layers$FeatureViewTileSource_FeatureViewTileSource = function(tilesKey) {
|