@google/earthengine 0.1.381 → 0.1.383

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.
@@ -1248,6 +1248,7 @@ goog.readToggleInternalDoNotCallDirectly = function(name) {
1248
1248
  };
1249
1249
  goog.TOGGLE_VAR_ = "_F_toggles";
1250
1250
  goog.TOGGLES_ = goog.global[goog.TOGGLE_VAR_] || [];
1251
+ goog.LEGACY_NAMESPACE_OBJECT_ = goog.global;
1251
1252
  goog.provide = function(name) {
1252
1253
  if (goog.isInModuleLoader_()) {
1253
1254
  throw Error("goog.provide cannot be used within a module.");
@@ -1256,7 +1257,7 @@ goog.provide = function(name) {
1256
1257
  };
1257
1258
  goog.constructNamespace_ = function(name, object, overwriteImplicit) {
1258
1259
  var namespace;
1259
- goog.exportPath_(name, object, overwriteImplicit);
1260
+ goog.exportPath_(name, object, overwriteImplicit, goog.LEGACY_NAMESPACE_OBJECT_);
1260
1261
  };
1261
1262
  goog.NONCE_PATTERN_ = /^[\w+/_-]+[=]{0,2}$/;
1262
1263
  goog.getScriptNonce_ = function(opt_window) {
@@ -1314,7 +1315,7 @@ goog.isInEs6ModuleLoader_ = function() {
1314
1315
  if (goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.ES6) {
1315
1316
  return !0;
1316
1317
  }
1317
- var jscomp = goog.global.$jscomp;
1318
+ var jscomp = goog.LEGACY_NAMESPACE_OBJECT_.$jscomp;
1318
1319
  return jscomp ? "function" != typeof jscomp.getCurrentModulePath ? !1 : !!jscomp.getCurrentModulePath() : !1;
1319
1320
  };
1320
1321
  goog.module.declareLegacyNamespace = function() {
@@ -1324,7 +1325,7 @@ goog.declareModuleId = function(namespace) {
1324
1325
  if (goog.moduleLoaderState_) {
1325
1326
  goog.moduleLoaderState_.moduleName = namespace;
1326
1327
  } else {
1327
- var jscomp = goog.global.$jscomp;
1328
+ var jscomp = goog.LEGACY_NAMESPACE_OBJECT_.$jscomp;
1328
1329
  if (!jscomp || "function" != typeof jscomp.getCurrentModulePath) {
1329
1330
  throw Error('Module with namespace "' + namespace + '" has been loaded incorrectly.');
1330
1331
  }
@@ -2978,8 +2979,8 @@ goog.flags.USE_USER_AGENT_CLIENT_HINTS = module$exports$closure$flags$flags$2eto
2978
2979
  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
2980
  goog.flags.CLIENT_ONLY_WIZ_ATTRIBUTE_SANITIZATION = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_attribute_sanitization__disable : goog.readFlagInternalDoNotUseOrElse(533565600, !0);
2980
2981
  goog.flags.CLIENT_ONLY_WIZ_HOOK_CONTEXT_FIX = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_hook_context_fix__enable : goog.readFlagInternalDoNotUseOrElse(563486499, !1);
2981
- goog.flags.JSPB_DISABLE_SERIALIZING_EMPTY_REPEATED_AND_MAP_FIELDS = 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__jspb_disable_serializing_empty_repeated_and_map_fields__disable) : goog.readFlagInternalDoNotUseOrElse(572417392,
2982
- module$contents$goog$flags_STAGING);
2982
+ goog.flags.JSPB_DISABLE_SERIALIZING_EMPTY_REPEATED_AND_MAP_FIELDS = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_disable_serializing_empty_repeated_and_map_fields__disable : goog.readFlagInternalDoNotUseOrElse(572417392,
2983
+ !0);
2983
2984
  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);
2984
2985
  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);
2985
2986
  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);
@@ -6061,7 +6062,7 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
6061
6062
  };
6062
6063
  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;
6063
6064
  function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
6064
- for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$key = $jscomp$iter$19.next(), $jscomp$loop$m1892927425$0 = {}; !$jscomp$key$key.done; $jscomp$loop$m1892927425$0 = {mapMetadata:$jscomp$loop$m1892927425$0.mapMetadata},
6065
+ for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$key = $jscomp$iter$19.next(), $jscomp$loop$m192531680$0 = {}; !$jscomp$key$key.done; $jscomp$loop$m192531680$0 = {mapMetadata:$jscomp$loop$m192531680$0.mapMetadata},
6065
6066
  $jscomp$key$key = $jscomp$iter$19.next()) {
6066
6067
  var key = $jscomp$key$key.value, value = valueGetter(key, source);
6067
6068
  if (null != value) {
@@ -6074,11 +6075,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
6074
6075
  } else if (objects.hasOwnProperty(key)) {
6075
6076
  copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
6076
6077
  } else if (objectMaps.hasOwnProperty(key)) {
6077
- $jscomp$loop$m1892927425$0.mapMetadata = objectMaps[key], copy = $jscomp$loop$m1892927425$0.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m1892927425$0) {
6078
+ $jscomp$loop$m192531680$0.mapMetadata = objectMaps[key], copy = $jscomp$loop$m192531680$0.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m192531680$0) {
6078
6079
  return function(v) {
6079
- return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m1892927425$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
6080
+ return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
6080
6081
  };
6081
- }($jscomp$loop$m1892927425$0)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m1892927425$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
6082
+ }($jscomp$loop$m192531680$0)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m192531680$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
6082
6083
  } else if (Array.isArray(value)) {
6083
6084
  if (metadata.emptyArrayIsUnset && 0 === value.length) {
6084
6085
  continue;
@@ -6124,39 +6125,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
6124
6125
  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))) {
6125
6126
  return !1;
6126
6127
  }
6127
- for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$m1892927425$1 = {}; !$jscomp$key$key.done; $jscomp$loop$m1892927425$1 = {value2$jscomp$7:$jscomp$loop$m1892927425$1.value2$jscomp$7, mapMetadata$jscomp$2:$jscomp$loop$m1892927425$1.mapMetadata$jscomp$2}, $jscomp$key$key = $jscomp$iter$21.next()) {
6128
+ for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$m192531680$1 = {}; !$jscomp$key$key.done; $jscomp$loop$m192531680$1 = {value2$jscomp$7:$jscomp$loop$m192531680$1.value2$jscomp$7, mapMetadata$jscomp$2:$jscomp$loop$m192531680$1.mapMetadata$jscomp$2}, $jscomp$key$key = $jscomp$iter$21.next()) {
6128
6129
  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);
6129
6130
  if (has1 !== has2) {
6130
6131
  return !1;
6131
6132
  }
6132
6133
  if (has1) {
6133
6134
  var value1 = serializable1.Serializable$get(key);
6134
- $jscomp$loop$m1892927425$1.value2$jscomp$7 = serializable2.Serializable$get(key);
6135
+ $jscomp$loop$m192531680$1.value2$jscomp$7 = serializable2.Serializable$get(key);
6135
6136
  if (arrays1.hasOwnProperty(key)) {
6136
- if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$1.value2$jscomp$7, !0, !0)) {
6137
+ if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !0, !0)) {
6137
6138
  return !1;
6138
6139
  }
6139
6140
  } else if (objects1.hasOwnProperty(key)) {
6140
- if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$1.value2$jscomp$7, !1, !0)) {
6141
+ if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !1, !0)) {
6141
6142
  return !1;
6142
6143
  }
6143
6144
  } else if (objectMaps1.hasOwnProperty(key)) {
6144
- if ($jscomp$loop$m1892927425$1.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m1892927425$1.mapMetadata$jscomp$2.isPropertyArray) {
6145
- if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m1892927425$1.value2$jscomp$7) || value1.some(function($jscomp$loop$m1892927425$1) {
6145
+ if ($jscomp$loop$m192531680$1.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m192531680$1.mapMetadata$jscomp$2.isPropertyArray) {
6146
+ if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$1.value2$jscomp$7) || value1.some(function($jscomp$loop$m192531680$1) {
6146
6147
  return function(v1, i) {
6147
- return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m1892927425$1.value2$jscomp$7[i], $jscomp$loop$m1892927425$1.mapMetadata$jscomp$2);
6148
+ return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$1.value2$jscomp$7[i], $jscomp$loop$m192531680$1.mapMetadata$jscomp$2);
6148
6149
  };
6149
- }($jscomp$loop$m1892927425$1))) {
6150
+ }($jscomp$loop$m192531680$1))) {
6150
6151
  return !1;
6151
6152
  }
6152
- } else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m1892927425$1.value2$jscomp$7, $jscomp$loop$m1892927425$1.mapMetadata$jscomp$2)) {
6153
+ } else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, $jscomp$loop$m192531680$1.mapMetadata$jscomp$2)) {
6153
6154
  return !1;
6154
6155
  }
6155
6156
  } else if (Array.isArray(value1)) {
6156
- if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$1.value2$jscomp$7, !0, !1)) {
6157
+ if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !0, !1)) {
6157
6158
  return !1;
6158
6159
  }
6159
- } else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$1.value2$jscomp$7, !1, !1)) {
6160
+ } else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !1, !1)) {
6160
6161
  return !1;
6161
6162
  }
6162
6163
  }
@@ -6556,9 +6557,9 @@ goog.string.Const.prototype.implementsGoogStringTypedString = !0;
6556
6557
  goog.string.Const.prototype.getTypedStringValue = function() {
6557
6558
  return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_;
6558
6559
  };
6559
- goog.DEBUG && (goog.string.Const.prototype.toString = function() {
6560
+ goog.string.Const.prototype.toString = function() {
6560
6561
  return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_;
6561
- });
6562
+ };
6562
6563
  goog.string.Const.unwrap = function(stringConst) {
6563
6564
  if (stringConst instanceof goog.string.Const && stringConst.constructor === goog.string.Const && stringConst.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_ === goog.string.Const.TYPE_MARKER_) {
6564
6565
  return stringConst.stringConstValueWithSecurityContract__googStringSecurityPrivate_;
@@ -7172,9 +7173,6 @@ module$contents$goog$html$SafeHtml_SafeHtml.htmlEscapePreservingNewlinesAndSpace
7172
7173
  var html = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(textOrHtml);
7173
7174
  return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html)));
7174
7175
  };
7175
- module$contents$goog$html$SafeHtml_SafeHtml.comment = function(text) {
7176
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("\x3c!--" + goog.string.internal.htmlEscape(text) + "--\x3e");
7177
- };
7178
7176
  module$contents$goog$html$SafeHtml_SafeHtml.create = function(tagName, attributes, content) {
7179
7177
  module$contents$goog$html$SafeHtml_SafeHtml.verifyTagName(String(tagName));
7180
7178
  return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(tagName), attributes, content);
@@ -14679,37 +14677,6 @@ goog.dom.BrowserFeature.CAN_USE_CHILDREN_ATTRIBUTE = !0;
14679
14677
  goog.dom.BrowserFeature.CAN_USE_INNER_TEXT = !1;
14680
14678
  goog.dom.BrowserFeature.CAN_USE_PARENT_ELEMENT_PROPERTY = goog.userAgent.IE || goog.userAgent.WEBKIT;
14681
14679
  goog.dom.BrowserFeature.INNER_HTML_NEEDS_SCOPED_ELEMENT = goog.userAgent.IE;
14682
- goog.html.uncheckedconversions = {};
14683
- goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract = function(justification, html) {
14684
- goog.asserts.assertString(goog.string.Const.unwrap(justification), "must provide justification");
14685
- goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(justification)), "must provide non-empty justification");
14686
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(html);
14687
- };
14688
- goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract = function(justification, script) {
14689
- goog.asserts.assertString(goog.string.Const.unwrap(justification), "must provide justification");
14690
- goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(justification)), "must provide non-empty justification");
14691
- return module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(script);
14692
- };
14693
- goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract = function(justification, style) {
14694
- goog.asserts.assertString(goog.string.Const.unwrap(justification), "must provide justification");
14695
- goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(justification)), "must provide non-empty justification");
14696
- return module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(style);
14697
- };
14698
- goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract = function(justification, styleSheet) {
14699
- goog.asserts.assertString(goog.string.Const.unwrap(justification), "must provide justification");
14700
- goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(justification)), "must provide non-empty justification");
14701
- return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(styleSheet);
14702
- };
14703
- goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract = function(justification, url) {
14704
- goog.asserts.assertString(goog.string.Const.unwrap(justification), "must provide justification");
14705
- goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(justification)), "must provide non-empty justification");
14706
- return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(url);
14707
- };
14708
- goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract = function(justification, url) {
14709
- goog.asserts.assertString(goog.string.Const.unwrap(justification), "must provide justification");
14710
- goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(justification)), "must provide non-empty justification");
14711
- return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(url);
14712
- };
14713
14680
  goog.math.Coordinate = function(opt_x, opt_y) {
14714
14681
  this.x = void 0 !== opt_x ? opt_x : 0;
14715
14682
  this.y = void 0 !== opt_y ? opt_y : 0;
@@ -15045,7 +15012,7 @@ goog.dom.createTable_ = function(doc, rows, columns, fillWithNbsp) {
15045
15012
  return table;
15046
15013
  };
15047
15014
  goog.dom.constHtmlToNode = function(var_args) {
15048
- var stringArray = Array.prototype.map.call(arguments, goog.string.Const.unwrap), safeHtml = goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Constant HTML string, that gets turned into a Node later, so it will be automatically balanced."), stringArray.join(""));
15015
+ var stringArray = Array.prototype.map.call(arguments, goog.string.Const.unwrap), safeHtml = module$contents$safevalues$restricted$reviewed_htmlSafeByReview(stringArray.join(""), "Constant HTML string, that gets turned into a Node later, so it will be automatically balanced.");
15049
15016
  return goog.dom.safeHtmlToNode(safeHtml);
15050
15017
  };
15051
15018
  goog.dom.safeHtmlToNode = function(html) {
@@ -17571,8 +17538,8 @@ function module$contents$safevalues$internals$attribute_impl_unwrapAttributePref
17571
17538
  throw Error(message);
17572
17539
  }
17573
17540
  module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
17574
- var $jscomp$templatelit$m425881384$0 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$m425881384$1 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$m425881384$2 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$m425881384$3 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$m425881384$4 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$m425881384$5 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
17575
- ["\\0"]), $jscomp$templatelit$m425881384$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$m425881384$7 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), module$contents$safevalues$internals$string_literal_module = module$contents$safevalues$internals$string_literal_module || {id:"third_party/javascript/safevalues/internals/string_literal.closure.js"};
17541
+ var $jscomp$templatelit$1274514361$0 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$1 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$1274514361$2 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$3 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$1274514361$4 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$5 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
17542
+ ["\\0"]), $jscomp$templatelit$1274514361$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$7 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), module$contents$safevalues$internals$string_literal_module = module$contents$safevalues$internals$string_literal_module || {id:"third_party/javascript/safevalues/internals/string_literal.closure.js"};
17576
17543
  function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
17577
17544
  if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
17578
17545
  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 ##############################");
@@ -17586,14 +17553,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
17586
17553
  return -1 === fn.toString().indexOf("`");
17587
17554
  }
17588
17555
  var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
17589
- return tag($jscomp$templatelit$m425881384$0);
17556
+ return tag($jscomp$templatelit$1274514361$0);
17590
17557
  }) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
17591
- return tag($jscomp$templatelit$m425881384$1);
17558
+ return tag($jscomp$templatelit$1274514361$1);
17592
17559
  }) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
17593
- return tag($jscomp$templatelit$m425881384$2);
17560
+ return tag($jscomp$templatelit$1274514361$2);
17594
17561
  }) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
17595
- return tag($jscomp$templatelit$m425881384$3);
17596
- }), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$4) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$5) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$6) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$7);
17562
+ return tag($jscomp$templatelit$1274514361$3);
17563
+ }), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$4) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$5) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$6) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$7);
17597
17564
  function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
17598
17565
  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)) ?
17599
17566
  !0 : !1;
@@ -17619,7 +17586,43 @@ function module$contents$safevalues$builders$document_fragment_builders_safeFrag
17619
17586
  goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, 0);
17620
17587
  return document.createRange().createContextualFragment(module$contents$safevalues$internals$html_impl_unwrapHtml(module$contents$safevalues$internals$html_impl_createHtmlInternal(templateObj[0])));
17621
17588
  }
17622
- ;var module$contents$safevalues$internals$pure_module = module$contents$safevalues$internals$pure_module || {id:"third_party/javascript/safevalues/internals/pure.closure.js"};
17589
+ ;var module$exports$safevalues$builders$style_sheet_builders = {}, module$contents$safevalues$builders$style_sheet_builders_module = module$contents$safevalues$builders$style_sheet_builders_module || {id:"third_party/javascript/safevalues/builders/style_sheet_builders.closure.js"}, module$contents$safevalues$builders$style_sheet_builders_Primitive;
17590
+ module$exports$safevalues$builders$style_sheet_builders.safeStyleRule = function(templateObj) {
17591
+ var rest = $jscomp.getRestArguments.apply(1, arguments);
17592
+ goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, rest.length);
17593
+ for (var stringifiedRule = templateObj[0], i = 0; i < templateObj.length - 1; i++) {
17594
+ stringifiedRule += String(rest[i]), stringifiedRule += templateObj[i + 1];
17595
+ }
17596
+ var doc = document.implementation.createHTMLDocument(""), styleEl = doc.createElement("style");
17597
+ doc.head.appendChild(styleEl);
17598
+ var styleSheet = styleEl.sheet;
17599
+ styleSheet.insertRule(stringifiedRule, 0);
17600
+ if (1 !== styleSheet.cssRules.length) {
17601
+ if (goog.DEBUG) {
17602
+ throw Error("safeStyleRule can be used to construct only 1 CSSStyleRule at a time. Use the concatStyle function to create sheet with several rules. Tried to parse: " + stringifiedRule + ("which has " + styleSheet.cssRules.length + " rules: " + styleSheet.cssRules[0].cssText + " #$% " + styleSheet.cssRules[1].cssText + "."));
17603
+ }
17604
+ } else {
17605
+ var styleSheetRule = styleSheet.cssRules[0];
17606
+ if (styleSheetRule instanceof CSSStyleRule) {
17607
+ return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheetRule.cssText.replace(/</g, "\\3C "));
17608
+ }
17609
+ if (goog.DEBUG) {
17610
+ throw Error("safeStyleRule can be used to construct a CSSStyleRule. @-rules should be constructed with the safeStyleSheet builder. Tried to parse: " + stringifiedRule);
17611
+ }
17612
+ }
17613
+ };
17614
+ module$exports$safevalues$builders$style_sheet_builders.safeStyleSheet = function(templateObj) {
17615
+ goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, 0);
17616
+ var styleSheet = templateObj[0];
17617
+ if (goog.DEBUG && /</.test(styleSheet)) {
17618
+ throw Error("'<' character is forbidden in styleSheet string: " + styleSheet);
17619
+ }
17620
+ return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheet);
17621
+ };
17622
+ module$exports$safevalues$builders$style_sheet_builders.concatStyleSheets = function(sheets) {
17623
+ return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(sheets.map(module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet).join(""));
17624
+ };
17625
+ var module$contents$safevalues$internals$pure_module = module$contents$safevalues$internals$pure_module || {id:"third_party/javascript/safevalues/internals/pure.closure.js"};
17623
17626
  function module$contents$safevalues$internals$pure_pure(valueOf) {
17624
17627
  return {valueOf:valueOf}.valueOf();
17625
17628
  }
@@ -17682,7 +17685,9 @@ function module$contents$safevalues$builders$url_builders_trySanitizeUrl(url, al
17682
17685
  module$exports$safevalues$builders$url_builders.trySanitizeUrl = module$contents$safevalues$builders$url_builders_trySanitizeUrl;
17683
17686
  function module$contents$safevalues$builders$url_builders_sanitizeUrl(url, allowedSchemes) {
17684
17687
  allowedSchemes = void 0 === allowedSchemes ? module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES : allowedSchemes;
17685
- return module$contents$safevalues$builders$url_builders_trySanitizeUrl(url, allowedSchemes) || goog.html.SafeUrl.INNOCUOUS_URL;
17688
+ var sanitizedUrl = module$contents$safevalues$builders$url_builders_trySanitizeUrl(url, allowedSchemes);
17689
+ void 0 === sanitizedUrl && module$contents$safevalues$builders$url_builders_triggerCallbacks(url.toString());
17690
+ return sanitizedUrl || goog.html.SafeUrl.INNOCUOUS_URL;
17686
17691
  }
17687
17692
  module$exports$safevalues$builders$url_builders.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
17688
17693
  function module$contents$safevalues$builders$url_builders_objectUrlFromSafeSource(source) {
@@ -17823,7 +17828,11 @@ module$exports$safevalues$builders$html_builders.scriptUrlToHtml = function(src,
17823
17828
  options = void 0 === options ? {} : options;
17824
17829
  var unwrappedSrc = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(src).toString(), stringTag = '<script src="' + module$contents$safevalues$builders$html_builders_htmlEscapeToString(unwrappedSrc) + '"';
17825
17830
  options.async && (stringTag += " async");
17831
+ options.customElement && (stringTag += ' custom-element="' + module$contents$safevalues$builders$html_builders_htmlEscapeToString(options.customElement) + '"');
17832
+ options.defer && (stringTag += " defer");
17833
+ options.id && (stringTag += ' id="' + module$contents$safevalues$builders$html_builders_htmlEscapeToString(options.id) + '"');
17826
17834
  options.nonce && (stringTag += ' nonce="' + module$contents$safevalues$builders$html_builders_htmlEscapeToString(options.nonce) + '"');
17835
+ options.type && (stringTag += ' type="' + module$contents$safevalues$builders$html_builders_htmlEscapeToString(options.type) + '"');
17827
17836
  return module$contents$safevalues$internals$html_impl_createHtmlInternal(stringTag + ">\x3c/script>");
17828
17837
  };
17829
17838
  function module$contents$safevalues$builders$html_builders_htmlEscapeToString(text) {
@@ -17843,8 +17852,9 @@ module$exports$safevalues$builders$html_builders.joinHtmls = module$contents$saf
17843
17852
  module$exports$safevalues$builders$html_builders.doctypeHtml = function() {
17844
17853
  return module$contents$safevalues$internals$html_impl_createHtmlInternal("<!DOCTYPE html>");
17845
17854
  };
17846
- var module$contents$safevalues$builders$html_builders_AttributeValue, module$contents$safevalues$builders$html_builders_TextOrHtml, module$contents$safevalues$builders$html_builders_VALID_TAG_OR_ATTRIBUTE_NAMES = /^[a-z][a-z\d-]*$/i, module$contents$safevalues$builders$html_builders_DISALLOWED_TAG_NAMES = "APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),
17847
- module$contents$safevalues$builders$html_builders_VOID_TAG_NAMES = "AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "), module$contents$safevalues$builders$html_builders_URL_ATTRIBUTES = ["action", "formaction", "href"];
17855
+ var module$contents$safevalues$builders$html_builders_TextOrHtml, module$contents$safevalues$builders$html_builders_VALID_TAG_OR_ATTRIBUTE_NAMES = /^[a-z][a-z\d-]*$/i, module$contents$safevalues$builders$html_builders_DISALLOWED_TAG_NAMES = "APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" ");
17856
+ module$exports$safevalues$builders$html_builders.VOID_TAG_NAMES = "AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" ");
17857
+ var module$contents$safevalues$builders$html_builders_URL_ATTRIBUTES = ["action", "formaction", "href"];
17848
17858
  function module$contents$safevalues$builders$html_builders_verifyTagName(tagName) {
17849
17859
  if (!module$contents$safevalues$builders$html_builders_VALID_TAG_OR_ATTRIBUTE_NAMES.test(tagName)) {
17850
17860
  throw Error(goog.DEBUG ? "Invalid tag name <" + tagName + ">." : "");
@@ -17853,12 +17863,17 @@ function module$contents$safevalues$builders$html_builders_verifyTagName(tagName
17853
17863
  throw Error(goog.DEBUG ? "Tag name <" + tagName + "> is not allowed for createHtml." : "");
17854
17864
  }
17855
17865
  }
17866
+ module$exports$safevalues$builders$html_builders.verifyTagName = module$contents$safevalues$builders$html_builders_verifyTagName;
17867
+ function module$contents$safevalues$builders$html_builders_isVoidTag(tagName) {
17868
+ return -1 !== module$exports$safevalues$builders$html_builders.VOID_TAG_NAMES.indexOf(tagName.toUpperCase());
17869
+ }
17870
+ module$exports$safevalues$builders$html_builders.isVoidTag = module$contents$safevalues$builders$html_builders_isVoidTag;
17856
17871
  module$exports$safevalues$builders$html_builders.createHtml = function(tagName, attributes, content) {
17857
17872
  module$contents$safevalues$builders$html_builders_verifyTagName(tagName);
17858
17873
  var result = "<" + tagName;
17859
17874
  attributes && (result += module$contents$safevalues$builders$html_builders_stringifyAttributes(tagName, attributes));
17860
17875
  Array.isArray(content) || (content = void 0 === content ? [] : [content]);
17861
- if (-1 !== module$contents$safevalues$builders$html_builders_VOID_TAG_NAMES.indexOf(tagName.toUpperCase())) {
17876
+ if (module$contents$safevalues$builders$html_builders_isVoidTag(tagName)) {
17862
17877
  if (goog.DEBUG && 0 < content.length) {
17863
17878
  throw Error("Void tag <" + tagName + "> does not allow content.");
17864
17879
  }
@@ -17871,6 +17886,23 @@ module$exports$safevalues$builders$html_builders.createHtml = function(tagName,
17871
17886
  }
17872
17887
  return module$contents$safevalues$internals$html_impl_createHtmlInternal(result);
17873
17888
  };
17889
+ module$exports$safevalues$builders$html_builders.styleSheetToHtml = function(styleSheet, attributes) {
17890
+ var combinedAttributes = {};
17891
+ if (attributes) {
17892
+ for (var customAttrNames = Object.keys(attributes), i = 0; i < customAttrNames.length; i++) {
17893
+ var name = customAttrNames[i];
17894
+ if ("type" === name.toLowerCase()) {
17895
+ throw Error(goog.DEBUG ? "Cannot override the 'type' attribute with value " + attributes[name] + "." : "");
17896
+ }
17897
+ combinedAttributes[name] = attributes[name];
17898
+ }
17899
+ }
17900
+ combinedAttributes.type = "text/css";
17901
+ var stringifiedAttributes = module$contents$safevalues$builders$html_builders_stringifyAttributes("style", combinedAttributes);
17902
+ Array.isArray(styleSheet) && (styleSheet = (0,module$exports$safevalues$builders$style_sheet_builders.concatStyleSheets)(styleSheet));
17903
+ var styleContent = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet(styleSheet);
17904
+ return module$contents$safevalues$internals$html_impl_createHtmlInternal("<style " + stringifiedAttributes + ">" + styleContent + "</style>");
17905
+ };
17874
17906
  function module$contents$safevalues$builders$html_builders_stringifyAttributes(tagName, attributes) {
17875
17907
  for (var result = "", attrNames = Object.keys(attributes), i = 0; i < attrNames.length; i++) {
17876
17908
  var name = attrNames[i], value = attributes[name];
@@ -17881,6 +17913,7 @@ function module$contents$safevalues$builders$html_builders_stringifyAttributes(t
17881
17913
  }
17882
17914
  return result;
17883
17915
  }
17916
+ module$exports$safevalues$builders$html_builders.stringifyAttributes = module$contents$safevalues$builders$html_builders_stringifyAttributes;
17884
17917
  function module$contents$safevalues$builders$html_builders_getAttrNameAndValue(tagName, name, value) {
17885
17918
  if (/^on/i.test(name)) {
17886
17919
  throw Error(goog.DEBUG ? 'Attribute "' + name + " is forbidden. Inline event handlers can lead to XSS. Please use the 'addEventListener' API instead." : "");
@@ -17891,6 +17924,82 @@ function module$contents$safevalues$builders$html_builders_getAttrNameAndValue(t
17891
17924
  }
17892
17925
  return name + '="' + module$contents$safevalues$builders$html_builders_htmlEscape(String(value)) + '"';
17893
17926
  }
17927
+ ;var module$exports$safevalues$builders$html_formatter = {}, module$contents$safevalues$builders$html_formatter_module = module$contents$safevalues$builders$html_formatter_module || {id:"third_party/javascript/safevalues/builders/html_formatter.closure.js"};
17928
+ function module$contents$safevalues$builders$html_formatter_HtmlReplacement() {
17929
+ }
17930
+ function module$contents$safevalues$builders$html_formatter_StartTagReplacement() {
17931
+ }
17932
+ function module$contents$safevalues$builders$html_formatter_EndTagReplacement() {
17933
+ }
17934
+ var module$contents$safevalues$builders$html_formatter_Replacement;
17935
+ module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
17936
+ this.replacements = new Map();
17937
+ };
17938
+ module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
17939
+ var $jscomp$this = this, openedTags = [], marker = (0,module$exports$safevalues$builders$html_builders.htmlEscape)("_safevalues_format_marker_:").toString(), html = (0,module$exports$safevalues$builders$html_builders.htmlEscape)(format).toString().replace(new RegExp("\\{" + marker + "[\\w&#;]+\\}", "g"), function(match) {
17940
+ return $jscomp$this.replaceFormattingString(openedTags, match);
17941
+ });
17942
+ if (0 !== openedTags.length) {
17943
+ if (goog.DEBUG) {
17944
+ throw Error("Expected no unclosed tags, got <" + openedTags.join(">, <") + ">.");
17945
+ }
17946
+ throw Error();
17947
+ }
17948
+ return module$contents$safevalues$internals$html_impl_createHtmlInternal(html);
17949
+ };
17950
+ module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.replaceFormattingString = function(openedTags, match) {
17951
+ var replacement = this.replacements.get(match);
17952
+ if (!replacement) {
17953
+ return match;
17954
+ }
17955
+ var result = "";
17956
+ switch(replacement.type) {
17957
+ case "html":
17958
+ result = replacement.html;
17959
+ break;
17960
+ case "startTag":
17961
+ result = "<" + replacement.tagName + replacement.attributes + ">";
17962
+ goog.DEBUG && ((0,module$exports$safevalues$builders$html_builders.isVoidTag)(replacement.tagName.toLowerCase()) || openedTags.push(replacement.tagName.toLowerCase()));
17963
+ break;
17964
+ case "endTag":
17965
+ result = "</" + replacement.tagName + ">";
17966
+ if (goog.DEBUG) {
17967
+ var lastTag = openedTags.pop();
17968
+ if (lastTag !== replacement.tagName.toLowerCase()) {
17969
+ throw Error("Expected </" + lastTag + ">, got </" + replacement.tagName + ">.");
17970
+ }
17971
+ }
17972
+ break;
17973
+ default:
17974
+ goog.DEBUG && module$contents$safevalues$builders$html_formatter_checkExhaustive(replacement, "type had an unknown value");
17975
+ }
17976
+ return result;
17977
+ };
17978
+ module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.startTag = function(tagName, attributes) {
17979
+ (0,module$exports$safevalues$builders$html_builders.verifyTagName)(tagName);
17980
+ return this.storeReplacement({type:"startTag", tagName:tagName, attributes:void 0 !== attributes ? (0,module$exports$safevalues$builders$html_builders.stringifyAttributes)(tagName, attributes) : ""});
17981
+ };
17982
+ module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.endTag = function(tagName) {
17983
+ (0,module$exports$safevalues$builders$html_builders.verifyTagName)(tagName);
17984
+ return this.storeReplacement({type:"endTag", tagName:tagName});
17985
+ };
17986
+ module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.text = function(text) {
17987
+ return this.storeReplacement({type:"html", html:(0,module$exports$safevalues$builders$html_builders.htmlEscape)(text).toString()});
17988
+ };
17989
+ module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.safeHtml = function(safeHtml) {
17990
+ return this.storeReplacement({type:"html", html:module$contents$safevalues$internals$html_impl_unwrapHtml(safeHtml).toString()});
17991
+ };
17992
+ module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.storeReplacement = function(replacement) {
17993
+ var marker = "{_safevalues_format_marker_:" + this.replacements.size + "_" + module$contents$safevalues$builders$html_formatter_getRandomString() + "}";
17994
+ this.replacements.set((0,module$exports$safevalues$builders$html_builders.htmlEscape)(marker).toString(), replacement);
17995
+ return marker;
17996
+ };
17997
+ function module$contents$safevalues$builders$html_formatter_getRandomString() {
17998
+ return Math.random().toString(36).slice(2);
17999
+ }
18000
+ function module$contents$safevalues$builders$html_formatter_checkExhaustive(value, msg) {
18001
+ throw Error(void 0 === msg ? "unexpected value " + value + "!" : msg);
18002
+ }
17894
18003
  ;var module$contents$safevalues$dom$globals$range_module = module$contents$safevalues$dom$globals$range_module || {id:"third_party/javascript/safevalues/dom/globals/range.closure.js"};
17895
18004
  function module$contents$safevalues$dom$globals$range_createContextualFragment(range, html) {
17896
18005
  return range.createContextualFragment(module$contents$safevalues$internals$html_impl_unwrapHtml(html));
@@ -18100,7 +18209,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
18100
18209
  return !0;
18101
18210
  }
18102
18211
  for (var $jscomp$iter$34 = $jscomp.makeIterator(conditions), $jscomp$key$ = $jscomp$iter$34.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$34.next()) {
18103
- var $jscomp$destructuring$var35 = $jscomp.makeIterator($jscomp$key$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var35.next().value, expectedValues = $jscomp$destructuring$var35.next().value, $jscomp$optchain$tmpm1085474118$0 = void 0, value = null == ($jscomp$optchain$tmpm1085474118$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) ? void 0 : $jscomp$optchain$tmpm1085474118$0.value;
18212
+ 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;
18104
18213
  if (value && !expectedValues.has(value)) {
18105
18214
  return !1;
18106
18215
  }
@@ -18343,8 +18452,16 @@ function module$contents$safevalues$builders$resource_url_builders_toAbsoluteRes
18343
18452
  module$exports$safevalues$builders$resource_url_builders.toAbsoluteResourceUrl = module$contents$safevalues$builders$resource_url_builders_toAbsoluteResourceUrl;
18344
18453
  var module$exports$safevalues$builders$script_builders = {}, module$contents$safevalues$builders$script_builders_module = module$contents$safevalues$builders$script_builders_module || {id:"third_party/javascript/safevalues/builders/script_builders.closure.js"}, module$contents$safevalues$builders$script_builders_Primitive, module$contents$safevalues$builders$script_builders_Serializable;
18345
18454
  function module$contents$safevalues$builders$script_builders_safeScript(templateObj) {
18346
- goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, 0);
18347
- return module$contents$safevalues$internals$script_impl_createScriptInternal(templateObj[0]);
18455
+ var emptyArgs = $jscomp.getRestArguments.apply(1, arguments);
18456
+ if (goog.DEBUG) {
18457
+ if (emptyArgs.some(function(a) {
18458
+ return "" !== a;
18459
+ })) {
18460
+ throw Error("safeScript only allows empty string expressions to enable inline comments.");
18461
+ }
18462
+ module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, emptyArgs.length);
18463
+ }
18464
+ return module$contents$safevalues$internals$script_impl_createScriptInternal(templateObj.join(""));
18348
18465
  }
18349
18466
  module$exports$safevalues$builders$script_builders.safeScript = module$contents$safevalues$builders$script_builders_safeScript;
18350
18467
  function module$contents$safevalues$builders$script_builders_concatScripts(scripts) {
@@ -18401,42 +18518,6 @@ function module$contents$safevalues$builders$style_builders_concatStyles(styles)
18401
18518
  return module$contents$safevalues$internals$style_impl_createStyleInternal(styles.map(module$contents$safevalues$internals$style_impl_unwrapStyle).join(""));
18402
18519
  }
18403
18520
  module$exports$safevalues$builders$style_builders.concatStyles = module$contents$safevalues$builders$style_builders_concatStyles;
18404
- var module$exports$safevalues$builders$style_sheet_builders = {}, module$contents$safevalues$builders$style_sheet_builders_module = module$contents$safevalues$builders$style_sheet_builders_module || {id:"third_party/javascript/safevalues/builders/style_sheet_builders.closure.js"}, module$contents$safevalues$builders$style_sheet_builders_Primitive;
18405
- module$exports$safevalues$builders$style_sheet_builders.safeStyleRule = function(templateObj) {
18406
- var rest = $jscomp.getRestArguments.apply(1, arguments);
18407
- goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, rest.length);
18408
- for (var stringifiedRule = templateObj[0], i = 0; i < templateObj.length - 1; i++) {
18409
- stringifiedRule += String(rest[i]), stringifiedRule += templateObj[i + 1];
18410
- }
18411
- var doc = document.implementation.createHTMLDocument(""), styleEl = doc.createElement("style");
18412
- doc.head.appendChild(styleEl);
18413
- var styleSheet = styleEl.sheet;
18414
- styleSheet.insertRule(stringifiedRule, 0);
18415
- if (1 !== styleSheet.cssRules.length) {
18416
- if (goog.DEBUG) {
18417
- throw Error("safeStyleRule can be used to construct only 1 CSSStyleRule at a time. Use the concatStyle function to create sheet with several rules. Tried to parse: " + stringifiedRule + ("which has " + styleSheet.cssRules.length + " rules: " + styleSheet.cssRules[0].cssText + " #$% " + styleSheet.cssRules[1].cssText + "."));
18418
- }
18419
- } else {
18420
- var styleSheetRule = styleSheet.cssRules[0];
18421
- if (styleSheetRule instanceof CSSStyleRule) {
18422
- return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheetRule.cssText.replace(/</g, "\\3C "));
18423
- }
18424
- if (goog.DEBUG) {
18425
- throw Error("safeStyleRule can be used to construct a CSSStyleRule. @-rules should be constructed with the safeStyleSheet builder. Tried to parse: " + stringifiedRule);
18426
- }
18427
- }
18428
- };
18429
- module$exports$safevalues$builders$style_sheet_builders.safeStyleSheet = function(templateObj) {
18430
- goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, 0);
18431
- var styleSheet = templateObj[0];
18432
- if (goog.DEBUG && /</.test(styleSheet)) {
18433
- throw Error("'<' character is forbidden in styleSheet string: " + styleSheet);
18434
- }
18435
- return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheet);
18436
- };
18437
- module$exports$safevalues$builders$style_sheet_builders.concatStyleSheets = function(sheets) {
18438
- return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(sheets.map(module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet).join(""));
18439
- };
18440
18521
  var module$exports$safevalues$reporting$reporting = {}, module$contents$safevalues$reporting$reporting_module = module$contents$safevalues$reporting$reporting_module || {id:"third_party/javascript/safevalues/reporting/reporting.closure.js"}, module$contents$safevalues$reporting$reporting_REPORTING_ID_PREFIX_TO_SAMPLING_RATE = {0:1, 1:1}, module$contents$safevalues$reporting$reporting_REPORTING_ID_PREFIX_TO_HEARTBEAT_RATE =
18441
18522
  {0:.1, 1:.1};
18442
18523
  module$exports$safevalues$reporting$reporting.ReportingOptions = function() {
@@ -18477,12 +18558,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
18477
18558
  }
18478
18559
  try {
18479
18560
  module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
18480
- } catch ($jscomp$unused$catch$696273141$0) {
18561
+ } catch ($jscomp$unused$catch$442189172$0) {
18481
18562
  return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
18482
18563
  }
18483
18564
  try {
18484
18565
  module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
18485
- } catch ($jscomp$unused$catch$696273141$1) {
18566
+ } catch ($jscomp$unused$catch$442189172$1) {
18486
18567
  return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
18487
18568
  }
18488
18569
  return !1;
@@ -18565,7 +18646,9 @@ module$exports$safevalues$index.isUrl = module$contents$safevalues$internals$url
18565
18646
  module$exports$safevalues$index.SafeUrl = goog.html.SafeUrl;
18566
18647
  module$exports$safevalues$index.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
18567
18648
  module$exports$safevalues$index.reportOnlyHtmlPassthrough = module$contents$safevalues$reporting$reporting_reportOnlyHtmlPassthrough;
18649
+ module$exports$safevalues$index.HtmlFormatter = module$exports$safevalues$builders$html_formatter.HtmlFormatter;
18568
18650
  module$exports$safevalues$index.createHtml = module$exports$safevalues$builders$html_builders.createHtml;
18651
+ module$exports$safevalues$index.styleSheetToHtml = module$exports$safevalues$builders$html_builders.styleSheetToHtml;
18569
18652
  module$exports$safevalues$index.safeStyleRule = module$exports$safevalues$builders$style_sheet_builders.safeStyleRule;
18570
18653
  safevalues.safeAttrPrefix = module$contents$safevalues$builders$attribute_builders_safeAttrPrefix;
18571
18654
  safevalues.safeFragment = module$contents$safevalues$builders$document_fragment_builders_safeFragment;
@@ -18629,13 +18712,15 @@ safevalues.isUrl = module$contents$safevalues$internals$url_impl_isUrl;
18629
18712
  safevalues.SafeUrl = goog.html.SafeUrl;
18630
18713
  safevalues.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
18631
18714
  safevalues.reportOnlyHtmlPassthrough = module$contents$safevalues$reporting$reporting_reportOnlyHtmlPassthrough;
18715
+ safevalues.HtmlFormatter = module$exports$safevalues$builders$html_formatter.HtmlFormatter;
18632
18716
  safevalues.createHtml = module$exports$safevalues$index.createHtml;
18717
+ safevalues.styleSheetToHtml = module$exports$safevalues$index.styleSheetToHtml;
18633
18718
  safevalues.safeStyleRule = module$exports$safevalues$index.safeStyleRule;
18634
18719
  var $jscomp$templatelit$294235699$0 = $jscomp.createTemplateTagFirstArg(["https://apis.google.com/js/client.js?onload=", ""]);
18635
18720
  ee.apiclient = {};
18636
18721
  var module$contents$ee$apiclient_apiclient = {};
18637
18722
  ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
18638
- ee.apiclient.API_CLIENT_VERSION = "0.1.381";
18723
+ ee.apiclient.API_CLIENT_VERSION = "0.1.383";
18639
18724
  ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
18640
18725
  ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
18641
18726
  ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
@@ -18926,8 +19011,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
18926
19011
  var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
18927
19012
  body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
18928
19013
  method = method || "POST";
18929
- var headers = {"Content-Type":contentType}, version = "0.1.381";
18930
- "0.1.381" === version && (version = "latest");
19014
+ var headers = {"Content-Type":contentType}, version = "0.1.383";
19015
+ "0.1.383" === version && (version = "latest");
18931
19016
  headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
18932
19017
  var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
18933
19018
  if (null != authToken) {