@google/earthengine 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -765,6 +765,9 @@ $jscomp.polyfill("Array.prototype.keys", function(orig) {
765
765
  });
766
766
  };
767
767
  }, "es6", "es3");
768
+ $jscomp.polyfill("globalThis", function(orig) {
769
+ return orig || $jscomp.global;
770
+ }, "es_2020", "es3");
768
771
  $jscomp.checkEs6ConformanceViaProxy = function() {
769
772
  try {
770
773
  var proxied = {}, proxy = Object.create(new $jscomp.global.Proxy(proxied, {get:function(target, key, receiver) {
@@ -1250,7 +1253,7 @@ $jscomp.polyfill("String.prototype.padStart", function(orig) {
1250
1253
  return $jscomp.stringPadding(opt_padString, targetLength - string.length) + string;
1251
1254
  };
1252
1255
  }, "es8", "es3");
1253
- var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__client_only_wiz_flush_queue_fix__disable:!1, GoogFlags__client_only_wiz_ordered_reaction_execution__disable:!1, GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__enable:!1, GoogFlags__jspb_enable_low_index_extension_writes__disable:!1, GoogFlags__jspb_ignore_implicit_extension_deps__enable:!1, GoogFlags__jspb_readonly_repeated_fields__disable:!1, GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__disable:!1,
1256
+ var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__client_only_wiz_flush_queue_fix__disable:!1, GoogFlags__client_only_wiz_ordered_reaction_execution__disable:!1, GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__disable:!1, GoogFlags__jspb_enable_low_index_extension_writes__disable:!1, GoogFlags__jspb_ignore_implicit_extension_deps__enable:!1, GoogFlags__jspb_readonly_repeated_fields__disable:!1, GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__disable:!1,
1254
1257
  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, GoogFlags__use_user_agent_client_hints__enable:!1, GoogFlags__wiz_enable_native_promise__enable:!1};
1255
1258
  /*
1256
1259
 
@@ -2146,9 +2149,9 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
2146
2149
  };
2147
2150
  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;
2148
2151
  function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
2149
- for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = (0,$jscomp.makeIterator)(metadata.keys || []), $jscomp$key$m192531680$40$key = $jscomp$iter$19.next(), $jscomp$loop$m192531680$44 = {}; !$jscomp$key$m192531680$40$key.done; $jscomp$loop$m192531680$44 =
2150
- {mapMetadata:void 0}, $jscomp$key$m192531680$40$key = $jscomp$iter$19.next()) {
2151
- var key = $jscomp$key$m192531680$40$key.value, value = valueGetter(key, source);
2152
+ for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = (0,$jscomp.makeIterator)(metadata.keys || []), $jscomp$key$m1892927425$40$key = $jscomp$iter$19.next(), $jscomp$loop$m1892927425$44 = {}; !$jscomp$key$m1892927425$40$key.done; $jscomp$loop$m1892927425$44 =
2153
+ {mapMetadata:void 0}, $jscomp$key$m1892927425$40$key = $jscomp$iter$19.next()) {
2154
+ var key = $jscomp$key$m1892927425$40$key.value, value = valueGetter(key, source);
2152
2155
  if (value != null) {
2153
2156
  var copy = void 0;
2154
2157
  if (arrays.hasOwnProperty(key)) {
@@ -2159,11 +2162,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
2159
2162
  } else if (objects.hasOwnProperty(key)) {
2160
2163
  copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
2161
2164
  } else if (objectMaps.hasOwnProperty(key)) {
2162
- $jscomp$loop$m192531680$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m192531680$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m192531680$44) {
2165
+ $jscomp$loop$m1892927425$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m1892927425$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m1892927425$44) {
2163
2166
  return function(v) {
2164
- return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
2167
+ return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m1892927425$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
2165
2168
  };
2166
- }($jscomp$loop$m192531680$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
2169
+ }($jscomp$loop$m1892927425$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m1892927425$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
2167
2170
  } else if (Array.isArray(value)) {
2168
2171
  if (metadata.emptyArrayIsUnset && value.length === 0) {
2169
2172
  continue;
@@ -2178,8 +2181,8 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
2178
2181
  return target;
2179
2182
  }
2180
2183
  function module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, mapMetadata, valueGetter, valueSetter, copyInstanciator) {
2181
- for (var objMap = {}, $jscomp$iter$20 = (0,$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()) {
2182
- var mapKey = $jscomp$key$m192531680$41$mapKey.value, mapValue = value[mapKey];
2184
+ for (var objMap = {}, $jscomp$iter$20 = (0,$jscomp.makeIterator)(Object.keys(value)), $jscomp$key$m1892927425$41$mapKey = $jscomp$iter$20.next(); !$jscomp$key$m1892927425$41$mapKey.done; $jscomp$key$m1892927425$41$mapKey = $jscomp$iter$20.next()) {
2185
+ var mapKey = $jscomp$key$m1892927425$41$mapKey.value, mapValue = value[mapKey];
2183
2186
  mapValue != null && (objMap[mapKey] = module$contents$eeapiclient$domain_object_deepCopyValue(mapValue, valueGetter, valueSetter, copyInstanciator, mapMetadata.isValueArray, mapMetadata.isSerializable, mapMetadata.ctor));
2184
2187
  }
2185
2188
  return objMap;
@@ -2209,39 +2212,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
2209
2212
  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))) {
2210
2213
  return !1;
2211
2214
  }
2212
- for (var $jscomp$iter$21 = (0,$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()) {
2213
- 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);
2215
+ for (var $jscomp$iter$21 = (0,$jscomp.makeIterator)(keys1), $jscomp$key$m1892927425$42$key = $jscomp$iter$21.next(), $jscomp$loop$m1892927425$45 = {}; !$jscomp$key$m1892927425$42$key.done; $jscomp$loop$m1892927425$45 = {value2$jscomp$7:void 0, mapMetadata$jscomp$2:void 0}, $jscomp$key$m1892927425$42$key = $jscomp$iter$21.next()) {
2216
+ var key = $jscomp$key$m1892927425$42$key.value, has1 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable1, key, metadata1), has2 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable2, key, metadata2);
2214
2217
  if (has1 !== has2) {
2215
2218
  return !1;
2216
2219
  }
2217
2220
  if (has1) {
2218
2221
  var value1 = serializable1.Serializable$get(key);
2219
- $jscomp$loop$m192531680$45.value2$jscomp$7 = serializable2.Serializable$get(key);
2222
+ $jscomp$loop$m1892927425$45.value2$jscomp$7 = serializable2.Serializable$get(key);
2220
2223
  if (arrays1.hasOwnProperty(key)) {
2221
- if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !0)) {
2224
+ if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !0, !0)) {
2222
2225
  return !1;
2223
2226
  }
2224
2227
  } else if (objects1.hasOwnProperty(key)) {
2225
- if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !0)) {
2228
+ if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !1, !0)) {
2226
2229
  return !1;
2227
2230
  }
2228
2231
  } else if (objectMaps1.hasOwnProperty(key)) {
2229
- if ($jscomp$loop$m192531680$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2.isPropertyArray) {
2230
- if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m192531680$45) {
2232
+ if ($jscomp$loop$m1892927425$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2.isPropertyArray) {
2233
+ if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m1892927425$45) {
2231
2234
  return function(v1, i) {
2232
- return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$45.value2$jscomp$7[i], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2);
2235
+ return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m1892927425$45.value2$jscomp$7[i], $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2);
2233
2236
  };
2234
- }($jscomp$loop$m192531680$45))) {
2237
+ }($jscomp$loop$m1892927425$45))) {
2235
2238
  return !1;
2236
2239
  }
2237
- } else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, $jscomp$loop$m192531680$45.mapMetadata$jscomp$2)) {
2240
+ } else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2)) {
2238
2241
  return !1;
2239
2242
  }
2240
2243
  } else if (Array.isArray(value1)) {
2241
- if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !1)) {
2244
+ if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !0, !1)) {
2242
2245
  return !1;
2243
2246
  }
2244
- } else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !1)) {
2247
+ } else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !1, !1)) {
2245
2248
  return !1;
2246
2249
  }
2247
2250
  }
@@ -2263,8 +2266,8 @@ function module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, v
2263
2266
  if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) {
2264
2267
  return !1;
2265
2268
  }
2266
- for (var $jscomp$iter$22 = (0,$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()) {
2267
- var mapKey = $jscomp$key$m192531680$43$mapKey.value;
2269
+ for (var $jscomp$iter$22 = (0,$jscomp.makeIterator)(Object.keys(value1)), $jscomp$key$m1892927425$43$mapKey = $jscomp$iter$22.next(); !$jscomp$key$m1892927425$43$mapKey.done; $jscomp$key$m1892927425$43$mapKey = $jscomp$iter$22.next()) {
2270
+ var mapKey = $jscomp$key$m1892927425$43$mapKey.value;
2268
2271
  if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1[mapKey], value2[mapKey], mapMetadata.isValueArray, mapMetadata.isSerializable)) {
2269
2272
  return !1;
2270
2273
  }
@@ -2345,15 +2348,15 @@ module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.addMetad
2345
2348
  this._metadataPayload += "Content-Type: application/json; charset=utf-8\r\n\r\n" + JSON.stringify(json) + ("\r\n--" + this._boundary + "\r\n");
2346
2349
  };
2347
2350
  module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.build = function() {
2348
- var $jscomp$this$m667091202$6 = this, payload = "--" + this._boundary + "\r\n";
2351
+ var $jscomp$this$m133342051$6 = this, payload = "--" + this._boundary + "\r\n";
2349
2352
  payload += this._metadataPayload;
2350
2353
  return Promise.all(this.files.map(function(f) {
2351
- return $jscomp$this$m667091202$6.encodeFile(f);
2354
+ return $jscomp$this$m133342051$6.encodeFile(f);
2352
2355
  })).then(function(filePayloads) {
2353
- for (var $jscomp$iter$23 = (0,$jscomp.makeIterator)(filePayloads), $jscomp$key$m667091202$9$filePayload = $jscomp$iter$23.next(); !$jscomp$key$m667091202$9$filePayload.done; $jscomp$key$m667091202$9$filePayload = $jscomp$iter$23.next()) {
2354
- payload += $jscomp$key$m667091202$9$filePayload.value;
2356
+ for (var $jscomp$iter$23 = (0,$jscomp.makeIterator)(filePayloads), $jscomp$key$m133342051$9$filePayload = $jscomp$iter$23.next(); !$jscomp$key$m133342051$9$filePayload.done; $jscomp$key$m133342051$9$filePayload = $jscomp$iter$23.next()) {
2357
+ payload += $jscomp$key$m133342051$9$filePayload.value;
2355
2358
  }
2356
- return payload += "\r\n--" + $jscomp$this$m667091202$6._boundary + "--";
2359
+ return payload += "\r\n--" + $jscomp$this$m133342051$6._boundary + "--";
2357
2360
  });
2358
2361
  };
2359
2362
  module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.encodeFile = function(file) {
@@ -2786,229 +2789,81 @@ var module$contents$safevalues$internals$pure_module = module$contents$safevalue
2786
2789
  function module$contents$safevalues$internals$pure_pure(valueOf) {
2787
2790
  return {valueOf:valueOf}.valueOf();
2788
2791
  }
2789
- ;goog.debug = {};
2790
- function module$contents$goog$debug$Error_DebugError(msg, cause) {
2791
- if (Error.captureStackTrace) {
2792
- Error.captureStackTrace(this, module$contents$goog$debug$Error_DebugError);
2793
- } else {
2794
- var stack = Error().stack;
2795
- stack && (this.stack = stack);
2792
+ ;var module$exports$safevalues$internals$secrets = {}, module$contents$safevalues$internals$secrets_module = module$contents$safevalues$internals$secrets_module || {id:"third_party/javascript/safevalues/internals/secrets.closure.js"};
2793
+ module$exports$safevalues$internals$secrets.secretToken = {};
2794
+ function module$contents$safevalues$internals$secrets_ensureTokenIsValid(token) {
2795
+ if (goog.DEBUG && token !== module$exports$safevalues$internals$secrets.secretToken) {
2796
+ throw Error("Bad secret");
2796
2797
  }
2797
- msg && (this.message = String(msg));
2798
- cause !== void 0 && (this.cause = cause);
2799
- this.reportErrorToServer = !0;
2800
2798
  }
2801
- goog.inherits(module$contents$goog$debug$Error_DebugError, Error);
2802
- module$contents$goog$debug$Error_DebugError.prototype.name = "CustomError";
2803
- goog.debug.Error = module$contents$goog$debug$Error_DebugError;
2804
- goog.dom = {};
2805
- goog.dom.NodeType = {ELEMENT:1, ATTRIBUTE:2, TEXT:3, CDATA_SECTION:4, ENTITY_REFERENCE:5, ENTITY:6, PROCESSING_INSTRUCTION:7, COMMENT:8, DOCUMENT:9, DOCUMENT_TYPE:10, DOCUMENT_FRAGMENT:11, NOTATION:12};
2806
- goog.asserts = {};
2807
- goog.asserts.ENABLE_ASSERTS = module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS;
2808
- function module$contents$goog$asserts_AssertionError(messagePattern, messageArgs) {
2809
- module$contents$goog$debug$Error_DebugError.call(this, module$contents$goog$asserts_subs(messagePattern, messageArgs));
2810
- this.messagePattern = messagePattern;
2811
- }
2812
- goog.inherits(module$contents$goog$asserts_AssertionError, module$contents$goog$debug$Error_DebugError);
2813
- goog.asserts.AssertionError = module$contents$goog$asserts_AssertionError;
2814
- module$contents$goog$asserts_AssertionError.prototype.name = "AssertionError";
2815
- goog.asserts.DEFAULT_ERROR_HANDLER = function(e) {
2816
- throw e;
2817
- };
2818
- var module$contents$goog$asserts_errorHandler_ = goog.asserts.DEFAULT_ERROR_HANDLER;
2819
- function module$contents$goog$asserts_subs(pattern, subs) {
2820
- for (var splitParts = pattern.split("%s"), returnString = "", subLast = splitParts.length - 1, i = 0; i < subLast; i++) {
2821
- returnString += splitParts[i] + (i < subs.length ? subs[i] : "%s");
2799
+ module$exports$safevalues$internals$secrets.ensureTokenIsValid = module$contents$safevalues$internals$secrets_ensureTokenIsValid;
2800
+ var module$exports$safevalues$internals$trusted_types = {}, module$contents$safevalues$internals$trusted_types_module = module$contents$safevalues$internals$trusted_types_module || {id:"third_party/javascript/safevalues/internals/trusted_types.closure.js"}, module$contents$safevalues$internals$trusted_types_configuredPolicyName = goog.TRUSTED_TYPES_POLICY_NAME ? goog.TRUSTED_TYPES_POLICY_NAME +
2801
+ "#html" : "", module$contents$safevalues$internals$trusted_types_policyName = module$contents$safevalues$internals$trusted_types_configuredPolicyName;
2802
+ module$exports$safevalues$internals$trusted_types.trustedTypes = globalThis.trustedTypes;
2803
+ var module$contents$safevalues$internals$trusted_types_trustedTypesInternal = module$exports$safevalues$internals$trusted_types.trustedTypes, module$contents$safevalues$internals$trusted_types_policy;
2804
+ function module$contents$safevalues$internals$trusted_types_createPolicy() {
2805
+ var policy = null;
2806
+ if (module$contents$safevalues$internals$trusted_types_policyName === "" || !module$contents$safevalues$internals$trusted_types_trustedTypesInternal) {
2807
+ return policy;
2822
2808
  }
2823
- return returnString + splitParts[subLast];
2824
- }
2825
- function module$contents$goog$asserts_doAssertFailure(defaultMessage, defaultArgs, givenMessage, givenArgs) {
2826
- var message = "Assertion failed";
2827
- if (givenMessage) {
2828
- message += ": " + givenMessage;
2829
- var args = givenArgs;
2830
- } else {
2831
- defaultMessage && (message += ": " + defaultMessage, args = defaultArgs);
2809
+ try {
2810
+ var identity = function(x) {
2811
+ return x;
2812
+ };
2813
+ policy = module$contents$safevalues$internals$trusted_types_trustedTypesInternal.createPolicy(module$contents$safevalues$internals$trusted_types_policyName, {createHTML:identity, createScript:identity, createScriptURL:identity});
2814
+ } catch (e) {
2815
+ if (goog.DEBUG) {
2816
+ throw e;
2817
+ }
2832
2818
  }
2833
- var e = new module$contents$goog$asserts_AssertionError("" + message, args || []);
2834
- module$contents$goog$asserts_errorHandler_(e);
2819
+ return policy;
2835
2820
  }
2836
- goog.asserts.setErrorHandler = function(errorHandler) {
2837
- module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && (module$contents$goog$asserts_errorHandler_ = errorHandler);
2838
- };
2839
- goog.asserts.assert = function(condition, opt_message, var_args) {
2840
- module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && !condition && module$contents$goog$asserts_doAssertFailure("", null, opt_message, Array.prototype.slice.call(arguments, 2));
2841
- return condition;
2842
- };
2843
- goog.asserts.assertExists = function(value, opt_message, var_args) {
2844
- module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && value == null && module$contents$goog$asserts_doAssertFailure("Expected to exist: %s.", [value], opt_message, Array.prototype.slice.call(arguments, 2));
2845
- return value;
2846
- };
2847
- goog.asserts.fail = function(opt_message, var_args) {
2848
- module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && module$contents$goog$asserts_errorHandler_(new module$contents$goog$asserts_AssertionError("Failure" + (opt_message ? ": " + opt_message : ""), Array.prototype.slice.call(arguments, 1)));
2849
- };
2850
- goog.asserts.assertNumber = function(value, opt_message, var_args) {
2851
- module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && typeof value !== "number" && module$contents$goog$asserts_doAssertFailure("Expected number but got %s: %s.", [goog.typeOf(value), value], opt_message, Array.prototype.slice.call(arguments, 2));
2852
- return value;
2853
- };
2854
- goog.asserts.assertString = function(value, opt_message, var_args) {
2855
- module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && typeof value !== "string" && module$contents$goog$asserts_doAssertFailure("Expected string but got %s: %s.", [goog.typeOf(value), value], opt_message, Array.prototype.slice.call(arguments, 2));
2856
- return value;
2857
- };
2858
- goog.asserts.assertFunction = function(value, opt_message, var_args) {
2859
- module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && typeof value !== "function" && module$contents$goog$asserts_doAssertFailure("Expected function but got %s: %s.", [goog.typeOf(value), value], opt_message, Array.prototype.slice.call(arguments, 2));
2860
- return value;
2861
- };
2862
- goog.asserts.assertObject = function(value, opt_message, var_args) {
2863
- module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && !goog.isObject(value) && module$contents$goog$asserts_doAssertFailure("Expected object but got %s: %s.", [goog.typeOf(value), value], opt_message, Array.prototype.slice.call(arguments, 2));
2864
- return value;
2865
- };
2866
- goog.asserts.assertArray = function(value, opt_message, var_args) {
2867
- module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && !Array.isArray(value) && module$contents$goog$asserts_doAssertFailure("Expected array but got %s: %s.", [goog.typeOf(value), value], opt_message, Array.prototype.slice.call(arguments, 2));
2868
- return value;
2869
- };
2870
- goog.asserts.assertBoolean = function(value, opt_message, var_args) {
2871
- module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && typeof value !== "boolean" && module$contents$goog$asserts_doAssertFailure("Expected boolean but got %s: %s.", [goog.typeOf(value), value], opt_message, Array.prototype.slice.call(arguments, 2));
2872
- return value;
2873
- };
2874
- goog.asserts.assertElement = function(value, opt_message, var_args) {
2875
- !module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS || goog.isObject(value) && value.nodeType == goog.dom.NodeType.ELEMENT || module$contents$goog$asserts_doAssertFailure("Expected Element but got %s: %s.", [goog.typeOf(value), value], opt_message, Array.prototype.slice.call(arguments, 2));
2876
- return value;
2821
+ function module$contents$safevalues$internals$trusted_types_getPolicy() {
2822
+ module$contents$safevalues$internals$trusted_types_policy === void 0 && (module$contents$safevalues$internals$trusted_types_policy = module$contents$safevalues$internals$trusted_types_createPolicy());
2823
+ return module$contents$safevalues$internals$trusted_types_policy;
2824
+ }
2825
+ module$exports$safevalues$internals$trusted_types.getPolicy = module$contents$safevalues$internals$trusted_types_getPolicy;
2826
+ module$exports$safevalues$internals$trusted_types.TEST_ONLY = {setPolicyName:function(name) {
2827
+ module$contents$safevalues$internals$trusted_types_policyName = name;
2828
+ }, setTrustedTypes:function(mockTrustedTypes) {
2829
+ module$contents$safevalues$internals$trusted_types_trustedTypesInternal = mockTrustedTypes;
2830
+ }, resetDefaults:function() {
2831
+ module$contents$safevalues$internals$trusted_types_policy = void 0;
2832
+ module$contents$safevalues$internals$trusted_types_policyName = module$contents$safevalues$internals$trusted_types_configuredPolicyName;
2833
+ module$contents$safevalues$internals$trusted_types_trustedTypesInternal = module$exports$safevalues$internals$trusted_types.trustedTypes;
2834
+ }};
2835
+ var module$exports$safevalues$internals$resource_url_impl = {}, module$contents$safevalues$internals$resource_url_impl_module = module$contents$safevalues$internals$resource_url_impl_module || {id:"third_party/javascript/safevalues/internals/resource_url_impl.closure.js"};
2836
+ module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl = function(token, value) {
2837
+ goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
2838
+ this.privateDoNotAccessOrElseWrappedResourceUrl = value;
2877
2839
  };
2878
- goog.asserts.assertInstanceof = function(value, type, opt_message, var_args) {
2879
- !module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS || value instanceof type || module$contents$goog$asserts_doAssertFailure("Expected instanceof %s but got %s.", [module$contents$goog$asserts_getType(type), module$contents$goog$asserts_getType(value)], opt_message, Array.prototype.slice.call(arguments, 3));
2880
- return value;
2840
+ module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.prototype.toString = function() {
2841
+ return this.privateDoNotAccessOrElseWrappedResourceUrl + "";
2881
2842
  };
2882
- goog.asserts.assertFinite = function(value, opt_message, var_args) {
2883
- !module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS || typeof value == "number" && isFinite(value) || module$contents$goog$asserts_doAssertFailure("Expected %s to be a finite number but it is not.", [value], opt_message, Array.prototype.slice.call(arguments, 2));
2884
- return value;
2885
- };
2886
- function module$contents$goog$asserts_getType(value) {
2887
- return value instanceof Function ? value.displayName || value.name || "unknown type name" : value instanceof Object ? value.constructor.displayName || value.constructor.name || Object.prototype.toString.call(value) : value === null ? "null" : typeof value;
2843
+ var module$contents$safevalues$internals$resource_url_impl_ResourceUrlImpl = module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl;
2844
+ function module$contents$safevalues$internals$resource_url_impl_constructResourceUrl(value) {
2845
+ return new module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl(module$exports$safevalues$internals$secrets.secretToken, value);
2888
2846
  }
2889
- ;goog.html = {};
2890
- goog.html.trustedtypes = {};
2891
- goog.html.trustedtypes.POLICY_NAME = goog.TRUSTED_TYPES_POLICY_NAME ? goog.TRUSTED_TYPES_POLICY_NAME + "#html" : "";
2892
- goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse = function() {
2893
- if (!goog.html.trustedtypes.POLICY_NAME) {
2894
- return null;
2895
- }
2896
- goog.html.trustedtypes.cachedPolicy_ === void 0 && (goog.html.trustedtypes.cachedPolicy_ = goog.createTrustedTypesPolicy(goog.html.trustedtypes.POLICY_NAME));
2897
- return goog.html.trustedtypes.cachedPolicy_;
2898
- };
2899
- goog.string.Const = function(opt_token, opt_content) {
2900
- this.stringConstValueWithSecurityContract__googStringSecurityPrivate_ = opt_token === goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ && opt_content || "";
2901
- this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_ = goog.string.Const.TYPE_MARKER_;
2902
- };
2903
- goog.string.Const.prototype.toString = function() {
2904
- return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_;
2905
- };
2906
- goog.string.Const.unwrap = function(stringConst) {
2907
- 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_) {
2908
- return stringConst.stringConstValueWithSecurityContract__googStringSecurityPrivate_;
2909
- }
2910
- goog.asserts.fail("expected object of type Const, got '" + stringConst + "'");
2911
- return "type_error:Const";
2912
- };
2913
- goog.string.Const.from = function(s) {
2914
- return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_, s);
2915
- };
2916
- goog.string.Const.TYPE_MARKER_ = {};
2917
- goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ = {};
2918
- goog.string.Const.EMPTY = goog.string.Const.from("");
2919
- var module$contents$goog$html$TrustedResourceUrl_CONSTRUCTOR_TOKEN_PRIVATE_ = {}, module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl = function(value, token) {
2920
- if (goog.DEBUG && token !== module$contents$goog$html$TrustedResourceUrl_CONSTRUCTOR_TOKEN_PRIVATE_) {
2921
- throw Error("TrustedResourceUrl is not meant to be built directly");
2922
- }
2923
- this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_ = value;
2924
- };
2925
- module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.prototype.toString = function() {
2926
- return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_ + "";
2927
- };
2928
- module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.cloneWithParams = function(url, searchParams, opt_hashParams) {
2929
- var urlString = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(url), parts = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.URL_PARAM_PARSER_.exec(urlString), urlHash = parts[3] || "";
2930
- return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(parts[1] + module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.stringifyParams_("?", parts[2] || "", searchParams) + module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.stringifyParams_("#", urlHash, opt_hashParams));
2931
- };
2932
- module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap = function(trustedResourceUrl) {
2933
- return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrapTrustedScriptURL(trustedResourceUrl).toString();
2934
- };
2935
- module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrapTrustedScriptURL = function(trustedResourceUrl) {
2936
- if (trustedResourceUrl instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl && trustedResourceUrl.constructor === module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl) {
2937
- return trustedResourceUrl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_;
2938
- }
2939
- goog.asserts.fail("expected object of type TrustedResourceUrl, got '%s' of type %s", trustedResourceUrl, goog.typeOf(trustedResourceUrl));
2940
- return "type_error:TrustedResourceUrl";
2941
- };
2942
- module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.format = function(format, args) {
2943
- var formatStr = goog.string.Const.unwrap(format);
2944
- if (!module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.BASE_URL_.test(formatStr)) {
2945
- throw Error("Invalid TrustedResourceUrl format: " + formatStr);
2946
- }
2947
- var result = formatStr.replace(module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.FORMAT_MARKER_, function(match, id) {
2948
- if (!Object.prototype.hasOwnProperty.call(args, id)) {
2949
- throw Error('Found marker, "' + id + '", in format string, "' + formatStr + '", but no valid label mapping found in args: ' + JSON.stringify(args));
2950
- }
2951
- var arg = args[id];
2952
- return arg instanceof goog.string.Const ? goog.string.Const.unwrap(arg) : encodeURIComponent(String(arg));
2953
- });
2954
- return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(result);
2955
- };
2956
- module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.FORMAT_MARKER_ = /%{(\w+)}/g;
2957
- module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.BASE_URL_ = RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)", "i");
2958
- module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.URL_PARAM_PARSER_ = /^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/;
2959
- module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.formatWithParams = function(format, args, searchParams, opt_hashParams) {
2960
- var url = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.format(format, args);
2961
- return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.cloneWithParams(url, searchParams, opt_hashParams);
2962
- };
2963
- module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.fromConstant = function(url) {
2964
- return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(url));
2965
- };
2966
- module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.fromConstants = function(parts) {
2967
- for (var unwrapped = "", i = 0; i < parts.length; i++) {
2968
- unwrapped += goog.string.Const.unwrap(parts[i]);
2969
- }
2970
- return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(unwrapped);
2971
- };
2972
- module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse = function(url) {
2973
- var noinlineUrl = url, policy = goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse(), value = policy ? policy.createScriptURL(noinlineUrl) : noinlineUrl;
2974
- return new module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl(value, module$contents$goog$html$TrustedResourceUrl_CONSTRUCTOR_TOKEN_PRIVATE_);
2975
- };
2976
- module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.stringifyParams_ = function(prefix, currentString, params) {
2977
- if (params == null) {
2978
- return currentString;
2979
- }
2980
- if (typeof params === "string") {
2981
- return params ? prefix + encodeURIComponent(params) : "";
2982
- }
2983
- for (var key in params) {
2984
- if (Object.prototype.hasOwnProperty.call(params, key)) {
2985
- for (var value = params[key], outputValues = Array.isArray(value) ? value : [value], i = 0; i < outputValues.length; i++) {
2986
- var outputValue = outputValues[i];
2987
- outputValue != null && (currentString || (currentString = prefix), currentString += (currentString.length > prefix.length ? "&" : "") + encodeURIComponent(key) + "=" + encodeURIComponent(String(outputValue)));
2988
- }
2989
- }
2990
- }
2991
- return currentString;
2992
- };
2993
- goog.html.TrustedResourceUrl = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl;
2994
- var module$exports$goog$html$trustedresourceurl_internals_for_safevalues = {};
2995
- module$exports$goog$html$trustedresourceurl_internals_for_safevalues.createTrustedResourceUrl = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse;
2996
- var module$exports$safevalues$internals$resource_url_impl = {}, module$contents$safevalues$internals$resource_url_impl_module = module$contents$safevalues$internals$resource_url_impl_module || {id:"third_party/javascript/safevalues/internals/resource_url_impl.closure.js"};
2997
- module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl;
2998
- function module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(url) {
2999
- return (0,module$exports$goog$html$trustedresourceurl_internals_for_safevalues.createTrustedResourceUrl)(url);
2847
+ function module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(value) {
2848
+ var noinlineValue = value, policy = module$contents$safevalues$internals$trusted_types_getPolicy();
2849
+ return module$contents$safevalues$internals$resource_url_impl_constructResourceUrl(policy ? policy.createScriptURL(noinlineValue) : noinlineValue);
3000
2850
  }
3001
2851
  module$exports$safevalues$internals$resource_url_impl.createResourceUrlInternal = module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal;
3002
2852
  function module$contents$safevalues$internals$resource_url_impl_isResourceUrl(value) {
3003
- return value instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl;
2853
+ return value instanceof module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl;
3004
2854
  }
3005
2855
  module$exports$safevalues$internals$resource_url_impl.isResourceUrl = module$contents$safevalues$internals$resource_url_impl_isResourceUrl;
3006
2856
  function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(value) {
3007
- return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrapTrustedScriptURL(value);
2857
+ if (module$contents$safevalues$internals$resource_url_impl_isResourceUrl(value)) {
2858
+ return value.privateDoNotAccessOrElseWrappedResourceUrl;
2859
+ }
2860
+ var message = "";
2861
+ goog.DEBUG && (message = "Unexpected type when unwrapping TrustedResourceUrl");
2862
+ throw Error(message);
3008
2863
  }
3009
2864
  module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
3010
- 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"],
3011
- ["\\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"};
2865
+ var $jscomp$templatelit$m425881384$5 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$m425881384$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$m425881384$7 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$m425881384$8 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$m425881384$9 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$m425881384$10 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
2866
+ ["\\0"]), $jscomp$templatelit$m425881384$11 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$m425881384$12 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), module$contents$safevalues$internals$string_literal_module = module$contents$safevalues$internals$string_literal_module || {id:"third_party/javascript/safevalues/internals/string_literal.closure.js"};
3012
2867
  function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
3013
2868
  if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
3014
2869
  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 ##############################");
@@ -3022,27 +2877,19 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
3022
2877
  return fn.toString().indexOf("`") === -1;
3023
2878
  }
3024
2879
  var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
3025
- return tag($jscomp$templatelit$1274514361$5);
2880
+ return tag($jscomp$templatelit$m425881384$5);
3026
2881
  }) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
3027
- return tag($jscomp$templatelit$1274514361$6);
2882
+ return tag($jscomp$templatelit$m425881384$6);
3028
2883
  }) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
3029
- return tag($jscomp$templatelit$1274514361$7);
2884
+ return tag($jscomp$templatelit$m425881384$7);
3030
2885
  }) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
3031
- return tag($jscomp$templatelit$1274514361$8);
3032
- }), 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);
2886
+ return tag($jscomp$templatelit$m425881384$8);
2887
+ }), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$9) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$10) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$11) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$12);
3033
2888
  function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
3034
2889
  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)) ?
3035
2890
  !0 : !1;
3036
2891
  }
3037
- ;var module$exports$safevalues$internals$secrets = {}, module$contents$safevalues$internals$secrets_module = module$contents$safevalues$internals$secrets_module || {id:"third_party/javascript/safevalues/internals/secrets.closure.js"};
3038
- module$exports$safevalues$internals$secrets.secretToken = {};
3039
- function module$contents$safevalues$internals$secrets_ensureTokenIsValid(token) {
3040
- if (goog.DEBUG && token !== module$exports$safevalues$internals$secrets.secretToken) {
3041
- throw Error("Bad secret");
3042
- }
3043
- }
3044
- module$exports$safevalues$internals$secrets.ensureTokenIsValid = module$contents$safevalues$internals$secrets_ensureTokenIsValid;
3045
- var module$exports$safevalues$internals$url_impl = {}, module$contents$safevalues$internals$url_impl_module = module$contents$safevalues$internals$url_impl_module || {id:"third_party/javascript/safevalues/internals/url_impl.closure.js"};
2892
+ ;var module$exports$safevalues$internals$url_impl = {}, module$contents$safevalues$internals$url_impl_module = module$contents$safevalues$internals$url_impl_module || {id:"third_party/javascript/safevalues/internals/url_impl.closure.js"};
3046
2893
  module$exports$safevalues$internals$url_impl.SafeUrl = function(token, value) {
3047
2894
  goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
3048
2895
  this.privateDoNotAccessOrElseWrappedUrl = value;
@@ -3299,7 +3146,7 @@ function module$contents$safevalues$internals$attribute_impl_unwrapAttributePref
3299
3146
  throw Error(message);
3300
3147
  }
3301
3148
  module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
3302
- var module$exports$safevalues$internals$html_impl = {}, module$contents$safevalues$internals$html_impl_module = module$contents$safevalues$internals$html_impl_module || {id:"third_party/javascript/safevalues/internals/html_impl.closure.js"}, module$contents$safevalues$internals$html_impl_trustedTypes = goog.global.trustedTypes;
3149
+ var module$exports$safevalues$internals$html_impl = {}, module$contents$safevalues$internals$html_impl_module = module$contents$safevalues$internals$html_impl_module || {id:"third_party/javascript/safevalues/internals/html_impl.closure.js"};
3303
3150
  module$exports$safevalues$internals$html_impl.SafeHtml = function(token, value) {
3304
3151
  goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
3305
3152
  this.privateDoNotAccessOrElseWrappedHtml = value;
@@ -3312,11 +3159,11 @@ function module$contents$safevalues$internals$html_impl_constructHtml(value) {
3312
3159
  return new module$exports$safevalues$internals$html_impl.SafeHtml(module$exports$safevalues$internals$secrets.secretToken, value);
3313
3160
  }
3314
3161
  module$exports$safevalues$internals$html_impl.createHtmlInternal = function(value) {
3315
- var noinlineValue = value, policy = (0,goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse)();
3162
+ var noinlineValue = value, policy = module$contents$safevalues$internals$trusted_types_getPolicy();
3316
3163
  return module$contents$safevalues$internals$html_impl_constructHtml(policy ? policy.createHTML(noinlineValue) : noinlineValue);
3317
3164
  };
3318
3165
  module$exports$safevalues$internals$html_impl.EMPTY_HTML = module$contents$safevalues$internals$pure_pure(function() {
3319
- return module$contents$safevalues$internals$html_impl_constructHtml(module$contents$safevalues$internals$html_impl_trustedTypes ? module$contents$safevalues$internals$html_impl_trustedTypes.emptyHTML : "");
3166
+ return module$contents$safevalues$internals$html_impl_constructHtml(module$exports$safevalues$internals$trusted_types.trustedTypes ? module$exports$safevalues$internals$trusted_types.trustedTypes.emptyHTML : "");
3320
3167
  });
3321
3168
  function module$contents$safevalues$internals$html_impl_isHtml(value) {
3322
3169
  return value instanceof module$exports$safevalues$internals$html_impl.SafeHtml;
@@ -3449,9 +3296,9 @@ function module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(ifr
3449
3296
  }
3450
3297
  }
3451
3298
  module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError = function(type, intent) {
3452
- var $jscomp$tmp$error$240424914$1 = Error.call(this, type + " cannot be used with intent " + module$exports$safevalues$dom$elements$iframe.Intent[intent]);
3453
- this.message = $jscomp$tmp$error$240424914$1.message;
3454
- "stack" in $jscomp$tmp$error$240424914$1 && (this.stack = $jscomp$tmp$error$240424914$1.stack);
3299
+ var $jscomp$tmp$error$494508883$1 = Error.call(this, type + " cannot be used with intent " + module$exports$safevalues$dom$elements$iframe.Intent[intent]);
3300
+ this.message = $jscomp$tmp$error$494508883$1.message;
3301
+ "stack" in $jscomp$tmp$error$494508883$1 && (this.stack = $jscomp$tmp$error$494508883$1.stack);
3455
3302
  this.type = type;
3456
3303
  this.intent = intent;
3457
3304
  this.name = "TypeCannotBeUsedWithIntentError";
@@ -3461,7 +3308,7 @@ module$exports$safevalues$dom$elements$iframe.setSrcWithIntent = function(elemen
3461
3308
  element.removeAttribute("srcdoc");
3462
3309
  switch(intent) {
3463
3310
  case module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT:
3464
- if (src instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl) {
3311
+ if (src instanceof module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl) {
3465
3312
  throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("TrustedResourceUrl", module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT);
3466
3313
  }
3467
3314
  module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, []);
@@ -3469,7 +3316,7 @@ module$exports$safevalues$dom$elements$iframe.setSrcWithIntent = function(elemen
3469
3316
  sanitizedUrl !== void 0 && (element.src = sanitizedUrl);
3470
3317
  break;
3471
3318
  case module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT:
3472
- if (!(src instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl)) {
3319
+ if (!(src instanceof module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl)) {
3473
3320
  throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError(typeof src, module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT);
3474
3321
  }
3475
3322
  module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, [module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SAME_ORIGIN, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS,
@@ -3477,7 +3324,7 @@ module$exports$safevalues$dom$elements$iframe.setSrcWithIntent = function(elemen
3477
3324
  module$contents$safevalues$dom$elements$iframe_setSrc(element, src);
3478
3325
  break;
3479
3326
  case module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT:
3480
- if (src instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl) {
3327
+ if (src instanceof module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl) {
3481
3328
  throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("TrustedResourceUrl", module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT);
3482
3329
  }
3483
3330
  module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, [module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SAME_ORIGIN, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS,
@@ -3558,10 +3405,10 @@ module$exports$safevalues$dom$globals$window.getStyleNonce = function(win) {
3558
3405
  return module$contents$safevalues$dom$globals$window_getNonceFor("style", win);
3559
3406
  };
3560
3407
  function module$contents$safevalues$dom$globals$window_getNonceFor(elementName, win) {
3561
- var $jscomp$optchain$tmp220578679$0, $jscomp$optchain$tmp220578679$1, el = ($jscomp$optchain$tmp220578679$1 = ($jscomp$optchain$tmp220578679$0 = win.document).querySelector) == null ? void 0 : $jscomp$optchain$tmp220578679$1.call($jscomp$optchain$tmp220578679$0, elementName + "[nonce]");
3408
+ var $jscomp$optchain$tmpm1987982378$0, $jscomp$optchain$tmpm1987982378$1, el = ($jscomp$optchain$tmpm1987982378$1 = ($jscomp$optchain$tmpm1987982378$0 = win.document).querySelector) == null ? void 0 : $jscomp$optchain$tmpm1987982378$1.call($jscomp$optchain$tmpm1987982378$0, elementName + "[nonce]");
3562
3409
  return el ? el.nonce || el.getAttribute("nonce") || "" : "";
3563
3410
  }
3564
- ;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;
3411
+ ;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"};
3565
3412
  module$exports$safevalues$internals$script_impl.SafeScript = function(token, value) {
3566
3413
  goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
3567
3414
  this.privateDoNotAccessOrElseWrappedScript = value;
@@ -3574,12 +3421,12 @@ function module$contents$safevalues$internals$script_impl_constructScript(value)
3574
3421
  return new module$exports$safevalues$internals$script_impl.SafeScript(module$exports$safevalues$internals$secrets.secretToken, value);
3575
3422
  }
3576
3423
  function module$contents$safevalues$internals$script_impl_createScriptInternal(value) {
3577
- var noinlineValue = value, policy = (0,goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse)();
3424
+ var noinlineValue = value, policy = module$contents$safevalues$internals$trusted_types_getPolicy();
3578
3425
  return module$contents$safevalues$internals$script_impl_constructScript(policy ? policy.createScript(noinlineValue) : noinlineValue);
3579
3426
  }
3580
3427
  module$exports$safevalues$internals$script_impl.createScriptInternal = module$contents$safevalues$internals$script_impl_createScriptInternal;
3581
3428
  module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT = module$contents$safevalues$internals$pure_pure(function() {
3582
- return module$contents$safevalues$internals$script_impl_constructScript(module$contents$safevalues$internals$script_impl_trustedTypes ? module$contents$safevalues$internals$script_impl_trustedTypes.emptyScript : "");
3429
+ return module$contents$safevalues$internals$script_impl_constructScript(module$exports$safevalues$internals$trusted_types.trustedTypes ? module$exports$safevalues$internals$trusted_types.trustedTypes.emptyScript : "");
3583
3430
  });
3584
3431
  function module$contents$safevalues$internals$script_impl_isScript(value) {
3585
3432
  return value instanceof module$exports$safevalues$internals$script_impl.SafeScript;
@@ -3647,7 +3494,107 @@ module$exports$safevalues$dom$elements$svg.setAttribute = function(svg, attr, va
3647
3494
  }
3648
3495
  svg.setAttribute(attr, value);
3649
3496
  };
3650
- goog.array = {};
3497
+ goog.debug = {};
3498
+ function module$contents$goog$debug$Error_DebugError(msg, cause) {
3499
+ if (Error.captureStackTrace) {
3500
+ Error.captureStackTrace(this, module$contents$goog$debug$Error_DebugError);
3501
+ } else {
3502
+ var stack = Error().stack;
3503
+ stack && (this.stack = stack);
3504
+ }
3505
+ msg && (this.message = String(msg));
3506
+ cause !== void 0 && (this.cause = cause);
3507
+ this.reportErrorToServer = !0;
3508
+ }
3509
+ goog.inherits(module$contents$goog$debug$Error_DebugError, Error);
3510
+ module$contents$goog$debug$Error_DebugError.prototype.name = "CustomError";
3511
+ goog.debug.Error = module$contents$goog$debug$Error_DebugError;
3512
+ goog.dom = {};
3513
+ goog.dom.NodeType = {ELEMENT:1, ATTRIBUTE:2, TEXT:3, CDATA_SECTION:4, ENTITY_REFERENCE:5, ENTITY:6, PROCESSING_INSTRUCTION:7, COMMENT:8, DOCUMENT:9, DOCUMENT_TYPE:10, DOCUMENT_FRAGMENT:11, NOTATION:12};
3514
+ goog.asserts = {};
3515
+ goog.asserts.ENABLE_ASSERTS = module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS;
3516
+ function module$contents$goog$asserts_AssertionError(messagePattern, messageArgs) {
3517
+ module$contents$goog$debug$Error_DebugError.call(this, module$contents$goog$asserts_subs(messagePattern, messageArgs));
3518
+ this.messagePattern = messagePattern;
3519
+ }
3520
+ goog.inherits(module$contents$goog$asserts_AssertionError, module$contents$goog$debug$Error_DebugError);
3521
+ goog.asserts.AssertionError = module$contents$goog$asserts_AssertionError;
3522
+ module$contents$goog$asserts_AssertionError.prototype.name = "AssertionError";
3523
+ goog.asserts.DEFAULT_ERROR_HANDLER = function(e) {
3524
+ throw e;
3525
+ };
3526
+ var module$contents$goog$asserts_errorHandler_ = goog.asserts.DEFAULT_ERROR_HANDLER;
3527
+ function module$contents$goog$asserts_subs(pattern, subs) {
3528
+ for (var splitParts = pattern.split("%s"), returnString = "", subLast = splitParts.length - 1, i = 0; i < subLast; i++) {
3529
+ returnString += splitParts[i] + (i < subs.length ? subs[i] : "%s");
3530
+ }
3531
+ return returnString + splitParts[subLast];
3532
+ }
3533
+ function module$contents$goog$asserts_doAssertFailure(defaultMessage, defaultArgs, givenMessage, givenArgs) {
3534
+ var message = "Assertion failed";
3535
+ if (givenMessage) {
3536
+ message += ": " + givenMessage;
3537
+ var args = givenArgs;
3538
+ } else {
3539
+ defaultMessage && (message += ": " + defaultMessage, args = defaultArgs);
3540
+ }
3541
+ var e = new module$contents$goog$asserts_AssertionError("" + message, args || []);
3542
+ module$contents$goog$asserts_errorHandler_(e);
3543
+ }
3544
+ goog.asserts.setErrorHandler = function(errorHandler) {
3545
+ module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && (module$contents$goog$asserts_errorHandler_ = errorHandler);
3546
+ };
3547
+ goog.asserts.assert = function(condition, opt_message, var_args) {
3548
+ module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && !condition && module$contents$goog$asserts_doAssertFailure("", null, opt_message, Array.prototype.slice.call(arguments, 2));
3549
+ return condition;
3550
+ };
3551
+ goog.asserts.assertExists = function(value, opt_message, var_args) {
3552
+ module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && value == null && module$contents$goog$asserts_doAssertFailure("Expected to exist: %s.", [value], opt_message, Array.prototype.slice.call(arguments, 2));
3553
+ return value;
3554
+ };
3555
+ goog.asserts.fail = function(opt_message, var_args) {
3556
+ module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && module$contents$goog$asserts_errorHandler_(new module$contents$goog$asserts_AssertionError("Failure" + (opt_message ? ": " + opt_message : ""), Array.prototype.slice.call(arguments, 1)));
3557
+ };
3558
+ goog.asserts.assertNumber = function(value, opt_message, var_args) {
3559
+ module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && typeof value !== "number" && module$contents$goog$asserts_doAssertFailure("Expected number but got %s: %s.", [goog.typeOf(value), value], opt_message, Array.prototype.slice.call(arguments, 2));
3560
+ return value;
3561
+ };
3562
+ goog.asserts.assertString = function(value, opt_message, var_args) {
3563
+ module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && typeof value !== "string" && module$contents$goog$asserts_doAssertFailure("Expected string but got %s: %s.", [goog.typeOf(value), value], opt_message, Array.prototype.slice.call(arguments, 2));
3564
+ return value;
3565
+ };
3566
+ goog.asserts.assertFunction = function(value, opt_message, var_args) {
3567
+ module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && typeof value !== "function" && module$contents$goog$asserts_doAssertFailure("Expected function but got %s: %s.", [goog.typeOf(value), value], opt_message, Array.prototype.slice.call(arguments, 2));
3568
+ return value;
3569
+ };
3570
+ goog.asserts.assertObject = function(value, opt_message, var_args) {
3571
+ module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && !goog.isObject(value) && module$contents$goog$asserts_doAssertFailure("Expected object but got %s: %s.", [goog.typeOf(value), value], opt_message, Array.prototype.slice.call(arguments, 2));
3572
+ return value;
3573
+ };
3574
+ goog.asserts.assertArray = function(value, opt_message, var_args) {
3575
+ module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && !Array.isArray(value) && module$contents$goog$asserts_doAssertFailure("Expected array but got %s: %s.", [goog.typeOf(value), value], opt_message, Array.prototype.slice.call(arguments, 2));
3576
+ return value;
3577
+ };
3578
+ goog.asserts.assertBoolean = function(value, opt_message, var_args) {
3579
+ module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && typeof value !== "boolean" && module$contents$goog$asserts_doAssertFailure("Expected boolean but got %s: %s.", [goog.typeOf(value), value], opt_message, Array.prototype.slice.call(arguments, 2));
3580
+ return value;
3581
+ };
3582
+ goog.asserts.assertElement = function(value, opt_message, var_args) {
3583
+ !module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS || goog.isObject(value) && value.nodeType == goog.dom.NodeType.ELEMENT || module$contents$goog$asserts_doAssertFailure("Expected Element but got %s: %s.", [goog.typeOf(value), value], opt_message, Array.prototype.slice.call(arguments, 2));
3584
+ return value;
3585
+ };
3586
+ goog.asserts.assertInstanceof = function(value, type, opt_message, var_args) {
3587
+ !module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS || value instanceof type || module$contents$goog$asserts_doAssertFailure("Expected instanceof %s but got %s.", [module$contents$goog$asserts_getType(type), module$contents$goog$asserts_getType(value)], opt_message, Array.prototype.slice.call(arguments, 3));
3588
+ return value;
3589
+ };
3590
+ goog.asserts.assertFinite = function(value, opt_message, var_args) {
3591
+ !module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS || typeof value == "number" && isFinite(value) || module$contents$goog$asserts_doAssertFailure("Expected %s to be a finite number but it is not.", [value], opt_message, Array.prototype.slice.call(arguments, 2));
3592
+ return value;
3593
+ };
3594
+ function module$contents$goog$asserts_getType(value) {
3595
+ return value instanceof Function ? value.displayName || value.name || "unknown type name" : value instanceof Object ? value.constructor.displayName || value.constructor.name || Object.prototype.toString.call(value) : value === null ? "null" : typeof value;
3596
+ }
3597
+ ;goog.array = {};
3651
3598
  goog.NATIVE_ARRAY_PROTOTYPES = goog.TRUSTED_SITE;
3652
3599
  var module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS = goog.FEATURESET_YEAR > 2012;
3653
3600
  goog.array.ASSUME_NATIVE_FUNCTIONS = module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS;
@@ -4729,9 +4676,9 @@ function module$contents$safevalues$dom$globals$dom_parser_parseFromString(parse
4729
4676
  module$exports$safevalues$dom$globals$dom_parser.parseFromString = module$contents$safevalues$dom$globals$dom_parser_parseFromString;
4730
4677
  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"};
4731
4678
  module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError = function(url, typeName, contentType) {
4732
- var $jscomp$tmp$error$m991617773$25 = Error.call(this, url + " was requested as a " + typeName + ', but the response Content-Type, "' + contentType + " is not appropriate for this type of content.");
4733
- this.message = $jscomp$tmp$error$m991617773$25.message;
4734
- "stack" in $jscomp$tmp$error$m991617773$25 && (this.stack = $jscomp$tmp$error$m991617773$25.stack);
4679
+ var $jscomp$tmp$error$1153895636$25 = Error.call(this, url + " was requested as a " + typeName + ', but the response Content-Type, "' + contentType + " is not appropriate for this type of content.");
4680
+ this.message = $jscomp$tmp$error$1153895636$25.message;
4681
+ "stack" in $jscomp$tmp$error$1153895636$25 && (this.stack = $jscomp$tmp$error$1153895636$25.stack);
4735
4682
  this.url = url;
4736
4683
  this.typeName = typeName;
4737
4684
  this.contentType = contentType;
@@ -4743,48 +4690,48 @@ function module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(
4743
4690
  return (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(html);
4744
4691
  }
4745
4692
  function module$contents$safevalues$dom$globals$fetch_fetchResourceUrl(u, init) {
4746
- var response, $jscomp$optchain$tmpm991617773$0, $jscomp$optchain$tmpm991617773$1, $jscomp$optchain$tmpm991617773$2, mimeType;
4747
- return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$29) {
4748
- if ($jscomp$generator$context$m991617773$29.nextAddress == 1) {
4749
- return $jscomp$generator$context$m991617773$29.yield(fetch(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(u).toString(), init), 2);
4750
- }
4751
- response = $jscomp$generator$context$m991617773$29.yieldResult;
4752
- mimeType = ($jscomp$optchain$tmpm991617773$0 = response.headers.get("Content-Type")) == null ? void 0 : ($jscomp$optchain$tmpm991617773$1 = $jscomp$optchain$tmpm991617773$0.split(";", 2)) == null ? void 0 : ($jscomp$optchain$tmpm991617773$2 = $jscomp$optchain$tmpm991617773$1[0]) == null ? void 0 : $jscomp$optchain$tmpm991617773$2.toLowerCase();
4753
- return $jscomp$generator$context$m991617773$29.return({html:function() {
4693
+ var response, $jscomp$optchain$tmp1153895636$0, $jscomp$optchain$tmp1153895636$1, $jscomp$optchain$tmp1153895636$2, mimeType;
4694
+ return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$29) {
4695
+ if ($jscomp$generator$context$1153895636$29.nextAddress == 1) {
4696
+ return $jscomp$generator$context$1153895636$29.yield(fetch(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(u).toString(), init), 2);
4697
+ }
4698
+ response = $jscomp$generator$context$1153895636$29.yieldResult;
4699
+ mimeType = ($jscomp$optchain$tmp1153895636$0 = response.headers.get("Content-Type")) == null ? void 0 : ($jscomp$optchain$tmp1153895636$1 = $jscomp$optchain$tmp1153895636$0.split(";", 2)) == null ? void 0 : ($jscomp$optchain$tmp1153895636$2 = $jscomp$optchain$tmp1153895636$1[0]) == null ? void 0 : $jscomp$optchain$tmp1153895636$2.toLowerCase();
4700
+ return $jscomp$generator$context$1153895636$29.return({html:function() {
4754
4701
  var text;
4755
- return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$26) {
4756
- if ($jscomp$generator$context$m991617773$26.nextAddress == 1) {
4702
+ return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$26) {
4703
+ if ($jscomp$generator$context$1153895636$26.nextAddress == 1) {
4757
4704
  if (mimeType !== "text/html") {
4758
4705
  throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeHtml", "text/html");
4759
4706
  }
4760
- return $jscomp$generator$context$m991617773$26.yield(response.text(), 2);
4707
+ return $jscomp$generator$context$1153895636$26.yield(response.text(), 2);
4761
4708
  }
4762
- text = $jscomp$generator$context$m991617773$26.yieldResult;
4763
- return $jscomp$generator$context$m991617773$26.return(module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(text));
4709
+ text = $jscomp$generator$context$1153895636$26.yieldResult;
4710
+ return $jscomp$generator$context$1153895636$26.return(module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(text));
4764
4711
  });
4765
4712
  }, script:function() {
4766
4713
  var text;
4767
- return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$27) {
4768
- if ($jscomp$generator$context$m991617773$27.nextAddress == 1) {
4714
+ return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$27) {
4715
+ if ($jscomp$generator$context$1153895636$27.nextAddress == 1) {
4769
4716
  if (mimeType !== "text/javascript" && mimeType !== "application/javascript") {
4770
4717
  throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeScript", "text/javascript");
4771
4718
  }
4772
- return $jscomp$generator$context$m991617773$27.yield(response.text(), 2);
4719
+ return $jscomp$generator$context$1153895636$27.yield(response.text(), 2);
4773
4720
  }
4774
- text = $jscomp$generator$context$m991617773$27.yieldResult;
4775
- return $jscomp$generator$context$m991617773$27.return(module$contents$safevalues$internals$script_impl_createScriptInternal(text));
4721
+ text = $jscomp$generator$context$1153895636$27.yieldResult;
4722
+ return $jscomp$generator$context$1153895636$27.return(module$contents$safevalues$internals$script_impl_createScriptInternal(text));
4776
4723
  });
4777
4724
  }, styleSheet:function() {
4778
4725
  var text;
4779
- return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$28) {
4780
- if ($jscomp$generator$context$m991617773$28.nextAddress == 1) {
4726
+ return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$28) {
4727
+ if ($jscomp$generator$context$1153895636$28.nextAddress == 1) {
4781
4728
  if (mimeType !== "text/css") {
4782
4729
  throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeStyleSheet", "text/css");
4783
4730
  }
4784
- return $jscomp$generator$context$m991617773$28.yield(response.text(), 2);
4731
+ return $jscomp$generator$context$1153895636$28.yield(response.text(), 2);
4785
4732
  }
4786
- text = $jscomp$generator$context$m991617773$28.yieldResult;
4787
- return $jscomp$generator$context$m991617773$28.return(module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(text));
4733
+ text = $jscomp$generator$context$1153895636$28.yieldResult;
4734
+ return $jscomp$generator$context$1153895636$28.return(module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(text));
4788
4735
  });
4789
4736
  }});
4790
4737
  });
@@ -6206,8 +6153,8 @@ function module$contents$eeapiclient$request_params_processParams(params) {
6206
6153
  }
6207
6154
  module$exports$eeapiclient$request_params.processParams = module$contents$eeapiclient$request_params_processParams;
6208
6155
  function module$contents$eeapiclient$request_params_buildQueryParams(params, mapping, passthroughParams) {
6209
- for (var urlQueryParams = passthroughParams = passthroughParams === void 0 ? {} : passthroughParams, $jscomp$iter$29 = (0,$jscomp.makeIterator)(Object.entries(mapping)), $jscomp$key$1047461284$0$ = $jscomp$iter$29.next(); !$jscomp$key$1047461284$0$.done; $jscomp$key$1047461284$0$ = $jscomp$iter$29.next()) {
6210
- var $jscomp$destructuring$var3 = (0,$jscomp.makeIterator)($jscomp$key$1047461284$0$.value), jsName__tsickle_destructured_1 = $jscomp$destructuring$var3.next().value, urlQueryParamName__tsickle_destructured_2 = $jscomp$destructuring$var3.next().value, jsName = jsName__tsickle_destructured_1, urlQueryParamName = urlQueryParamName__tsickle_destructured_2;
6156
+ for (var urlQueryParams = passthroughParams = passthroughParams === void 0 ? {} : passthroughParams, $jscomp$iter$29 = (0,$jscomp.makeIterator)(Object.entries(mapping)), $jscomp$key$m125199259$0$ = $jscomp$iter$29.next(); !$jscomp$key$m125199259$0$.done; $jscomp$key$m125199259$0$ = $jscomp$iter$29.next()) {
6157
+ var $jscomp$destructuring$var3 = (0,$jscomp.makeIterator)($jscomp$key$m125199259$0$.value), jsName__tsickle_destructured_1 = $jscomp$destructuring$var3.next().value, urlQueryParamName__tsickle_destructured_2 = $jscomp$destructuring$var3.next().value, jsName = jsName__tsickle_destructured_1, urlQueryParamName = urlQueryParamName__tsickle_destructured_2;
6211
6158
  jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]);
6212
6159
  }
6213
6160
  return urlQueryParams;
@@ -6218,8 +6165,8 @@ module$exports$eeapiclient$request_params.bypassCorsPreflight = function(params)
6218
6165
  var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1, hasSafeContentType = !1;
6219
6166
  if (params.headers) {
6220
6167
  hasContentType = params.headers["Content-Type"] != null;
6221
- for (var $jscomp$iter$30 = (0,$jscomp.makeIterator)(Object.entries(params.headers)), $jscomp$key$1047461284$1$ = $jscomp$iter$30.next(); !$jscomp$key$1047461284$1$.done; $jscomp$key$1047461284$1$ = $jscomp$iter$30.next()) {
6222
- var $jscomp$destructuring$var5 = (0,$jscomp.makeIterator)($jscomp$key$1047461284$1$.value), key__tsickle_destructured_3 = $jscomp$destructuring$var5.next().value, value__tsickle_destructured_4 = $jscomp$destructuring$var5.next().value, key = key__tsickle_destructured_3, value = value__tsickle_destructured_4;
6168
+ for (var $jscomp$iter$30 = (0,$jscomp.makeIterator)(Object.entries(params.headers)), $jscomp$key$m125199259$1$ = $jscomp$iter$30.next(); !$jscomp$key$m125199259$1$.done; $jscomp$key$m125199259$1$ = $jscomp$iter$30.next()) {
6169
+ var $jscomp$destructuring$var5 = (0,$jscomp.makeIterator)($jscomp$key$m125199259$1$.value), key__tsickle_destructured_3 = $jscomp$destructuring$var5.next().value, value__tsickle_destructured_4 = $jscomp$destructuring$var5.next().value, key = key__tsickle_destructured_3, value = value__tsickle_destructured_4;
6223
6170
  module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders.includes(key) ? safeHeaders[key] = value : key === "Content-Type" && module$contents$eeapiclient$request_params_simpleCorsAllowedContentTypes.includes(value) ? (safeHeaders[key] = value, hasSafeContentType = !0) : (unsafeHeaders[key] = value, hasUnsafeHeaders = !0);
6224
6171
  }
6225
6172
  }
@@ -6259,9 +6206,9 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$reques
6259
6206
  return this.$addHooksToRequest(requestParams, this.requestService.send(module$contents$eeapiclient$api_client_toMakeRequestParams(requestParams), responseCtor));
6260
6207
  };
6261
6208
  module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$uploadRequest = function(requestParams) {
6262
- var $jscomp$this$1237977804$4 = this, responseCtor = requestParams.responseCtor || void 0;
6209
+ var $jscomp$this$m296226325$4 = this, responseCtor = requestParams.responseCtor || void 0;
6263
6210
  return this.$addHooksToRequest(requestParams, module$contents$eeapiclient$api_client_toMultipartMakeRequestParams(requestParams).then(function(params) {
6264
- return $jscomp$this$1237977804$4.requestService.send(params, responseCtor);
6211
+ return $jscomp$this$m296226325$4.requestService.send(params, responseCtor);
6265
6212
  }));
6266
6213
  };
6267
6214
  var module$exports$eeapiclient$promise_request_service = {}, module$contents$eeapiclient$promise_request_service_module = module$contents$eeapiclient$promise_request_service_module || {id:"javascript/typescript/contrib/apiclient/request_service/promise_request_service.closure.js"};
@@ -6429,7 +6376,7 @@ module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__async_throw_on_un
6429
6376
  module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__disable = !1;
6430
6377
  module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_flush_queue_fix__disable = !1;
6431
6378
  module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_ordered_reaction_execution__disable = !1;
6432
- module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__enable = !1;
6379
+ module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__disable = !1;
6433
6380
  module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_enable_low_index_extension_writes__disable = !1;
6434
6381
  module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__wiz_enable_native_promise__enable = !1;
6435
6382
  module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_readonly_repeated_fields__disable = !1;
@@ -6445,7 +6392,8 @@ goog.flags.ASYNC_THROW_ON_UNICODE_TO_BYTE = module$exports$closure$flags$flags$2
6445
6392
  goog.flags.JSPB_STOP_USING_REPEATED_FIELD_SETS_FROM_GENCODE = 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_stop_using_repeated_field_sets_from_gencode__disable : goog.readFlagInternalDoNotUseOrElse(188588736, !0);
6446
6393
  goog.flags.CLIENT_ONLY_WIZ_FLUSH_QUEUE_FIX = 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_flush_queue_fix__disable : goog.readFlagInternalDoNotUseOrElse(644029907, !0);
6447
6394
  goog.flags.CLIENT_ONLY_WIZ_ORDERED_REACTION_EXECUTION = 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_ordered_reaction_execution__disable : goog.readFlagInternalDoNotUseOrElse(1822726157, !0);
6448
- goog.flags.CLIENT_ONLY_WIZ_SYNC_REACTION_WITHIN_REACTION_THROWS_ERROR = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__enable : goog.readFlagInternalDoNotUseOrElse(661449076, goog.DEBUG);
6395
+ goog.flags.CLIENT_ONLY_WIZ_SYNC_REACTION_WITHIN_REACTION_THROWS_ERROR = 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__client_only_wiz_sync_reaction_within_reaction_throws_error__disable) : goog.readFlagInternalDoNotUseOrElse(661449076,
6396
+ module$contents$goog$flags_STAGING);
6449
6397
  goog.flags.JSPB_ENABLE_LOW_INDEX_EXTENSION_WRITES = 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_enable_low_index_extension_writes__disable : goog.readFlagInternalDoNotUseOrElse(645172343, !0);
6450
6398
  goog.flags.WIZ_ENABLE_NATIVE_PROMISE = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__wiz_enable_native_promise__enable : goog.readFlagInternalDoNotUseOrElse(651175828, goog.DEBUG);
6451
6399
  goog.flags.JSPB_READONLY_REPEATED_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_readonly_repeated_fields__disable) : goog.readFlagInternalDoNotUseOrElse(653718497, module$contents$goog$flags_STAGING);
@@ -12966,13 +12914,14 @@ module$exports$eeapiclient$ee_api_client.TableSource = function(parameters) {
12966
12914
  this.Serializable$set("dateFormat", parameters.dateFormat == null ? null : parameters.dateFormat);
12967
12915
  this.Serializable$set("csvDelimiter", parameters.csvDelimiter == null ? null : parameters.csvDelimiter);
12968
12916
  this.Serializable$set("csvQualifier", parameters.csvQualifier == null ? null : parameters.csvQualifier);
12917
+ this.Serializable$set("simplifyErrorMeters", parameters.simplifyErrorMeters == null ? null : parameters.simplifyErrorMeters);
12969
12918
  };
12970
12919
  $jscomp.inherits(module$exports$eeapiclient$ee_api_client.TableSource, module$exports$eeapiclient$domain_object.Serializable);
12971
12920
  module$exports$eeapiclient$ee_api_client.TableSource.prototype.getConstructor = function() {
12972
12921
  return module$exports$eeapiclient$ee_api_client.TableSource;
12973
12922
  };
12974
12923
  module$exports$eeapiclient$ee_api_client.TableSource.prototype.getPartialClassMetadata = function() {
12975
- return {keys:"charset crs csvDelimiter csvQualifier dateFormat geodesic maxErrorMeters maxVertices primaryGeometryColumn uris xColumn yColumn".split(" ")};
12924
+ return {keys:"charset crs csvDelimiter csvQualifier dateFormat geodesic maxErrorMeters maxVertices primaryGeometryColumn simplifyErrorMeters uris xColumn yColumn".split(" ")};
12976
12925
  };
12977
12926
  $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.TableSource.prototype, {charset:{configurable:!0, enumerable:!0, get:function() {
12978
12927
  return this.Serializable$has("charset") ? this.Serializable$get("charset") : null;
@@ -13010,6 +12959,10 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
13010
12959
  return this.Serializable$has("primaryGeometryColumn") ? this.Serializable$get("primaryGeometryColumn") : null;
13011
12960
  }, set:function(value) {
13012
12961
  this.Serializable$set("primaryGeometryColumn", value);
12962
+ }}, simplifyErrorMeters:{configurable:!0, enumerable:!0, get:function() {
12963
+ return this.Serializable$has("simplifyErrorMeters") ? this.Serializable$get("simplifyErrorMeters") : null;
12964
+ }, set:function(value) {
12965
+ this.Serializable$set("simplifyErrorMeters", value);
13013
12966
  }}, uris:{configurable:!0, enumerable:!0, get:function() {
13014
12967
  return this.Serializable$has("uris") ? this.Serializable$get("uris") : null;
13015
12968
  }, set:function(value) {
@@ -15019,12 +14972,35 @@ goog.dom.tags.VOID_TAGS_ = {area:!0, base:!0, br:!0, col:!0, command:!0, embed:!
15019
14972
  goog.dom.tags.isVoidTag = function(tagName) {
15020
14973
  return goog.dom.tags.VOID_TAGS_[tagName] === !0;
15021
14974
  };
14975
+ goog.string.Const = function(opt_token, opt_content) {
14976
+ this.stringConstValueWithSecurityContract__googStringSecurityPrivate_ = opt_token === goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ && opt_content || "";
14977
+ this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_ = goog.string.Const.TYPE_MARKER_;
14978
+ };
14979
+ goog.string.Const.prototype.toString = function() {
14980
+ return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_;
14981
+ };
14982
+ goog.string.Const.unwrap = function(stringConst) {
14983
+ 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_) {
14984
+ return stringConst.stringConstValueWithSecurityContract__googStringSecurityPrivate_;
14985
+ }
14986
+ goog.asserts.fail("expected object of type Const, got '" + stringConst + "'");
14987
+ return "type_error:Const";
14988
+ };
14989
+ goog.string.Const.from = function(s) {
14990
+ return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_, s);
14991
+ };
14992
+ goog.string.Const.TYPE_MARKER_ = {};
14993
+ goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ = {};
14994
+ goog.string.Const.EMPTY = goog.string.Const.from("");
15022
14995
  var module$exports$safevalues$for_closure$index = {}, module$contents$safevalues$for_closure$index_module = module$contents$safevalues$for_closure$index_module || {id:"third_party/javascript/safevalues/for_closure/index.closure.js"};
15023
14996
  module$exports$safevalues$for_closure$index.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
15024
14997
  module$exports$safevalues$for_closure$index.EMPTY_HTML = module$exports$safevalues$internals$html_impl.EMPTY_HTML;
15025
14998
  module$exports$safevalues$for_closure$index.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
15026
14999
  module$exports$safevalues$for_closure$index.createHtmlInternal = module$exports$safevalues$internals$html_impl.createHtmlInternal;
15027
15000
  module$exports$safevalues$for_closure$index.unwrapHtml = module$exports$safevalues$internals$html_impl.unwrapHtml;
15001
+ module$exports$safevalues$for_closure$index.TrustedResourceUrl = module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl;
15002
+ module$exports$safevalues$for_closure$index.createResourceUrlInternal = module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal;
15003
+ module$exports$safevalues$for_closure$index.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
15028
15004
  module$exports$safevalues$for_closure$index.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
15029
15005
  module$exports$safevalues$for_closure$index.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
15030
15006
  module$exports$safevalues$for_closure$index.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
@@ -15039,6 +15015,9 @@ module$exports$safevalues$for_closure.EMPTY_HTML = module$exports$safevalues$for
15039
15015
  module$exports$safevalues$for_closure.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
15040
15016
  module$exports$safevalues$for_closure.createHtmlInternal = module$exports$safevalues$for_closure$index.createHtmlInternal;
15041
15017
  module$exports$safevalues$for_closure.unwrapHtml = module$exports$safevalues$for_closure$index.unwrapHtml;
15018
+ module$exports$safevalues$for_closure.TrustedResourceUrl = module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl;
15019
+ module$exports$safevalues$for_closure.createResourceUrlInternal = module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal;
15020
+ module$exports$safevalues$for_closure.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
15042
15021
  module$exports$safevalues$for_closure.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
15043
15022
  module$exports$safevalues$for_closure.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
15044
15023
  module$exports$safevalues$for_closure.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
@@ -15047,108 +15026,9 @@ module$exports$safevalues$for_closure.createStyleSheetInternal = module$contents
15047
15026
  module$exports$safevalues$for_closure.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
15048
15027
  module$exports$safevalues$for_closure.SafeUrl = module$exports$safevalues$internals$url_impl.SafeUrl;
15049
15028
  module$exports$safevalues$for_closure.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
15050
- module$exports$safevalues$internals$style_impl.SafeStyle.fromConstant = function(style) {
15051
- var styleString = goog.string.Const.unwrap(style);
15052
- if (styleString.length === 0) {
15053
- return module$exports$safevalues$internals$style_impl.SafeStyle.EMPTY;
15054
- }
15055
- (0,goog.asserts.assert)((0,goog.string.internal.endsWith)(styleString, ";"), "Last character of style string is not ';': " + styleString);
15056
- (0,goog.asserts.assert)((0,goog.string.internal.contains)(styleString, ":"), "Style string must contain at least one ':', to specify a \"name: value\" pair: " + styleString);
15057
- return module$contents$safevalues$internals$style_impl_createStyleInternal(styleString);
15058
- };
15059
- module$exports$safevalues$internals$style_impl.SafeStyle.unwrap = function(safeStyle) {
15060
- return module$contents$safevalues$internals$style_impl_unwrapStyle(safeStyle);
15061
- };
15062
- module$exports$safevalues$internals$style_impl.SafeStyle.create = function(map) {
15063
- var style = "", name;
15064
- for (name in map) {
15065
- if (Object.prototype.hasOwnProperty.call(map, name)) {
15066
- if (!/^[-_a-zA-Z0-9]+$/.test(name)) {
15067
- throw Error("Name allows only [-_a-zA-Z0-9], got: " + name);
15068
- }
15069
- var value = map[name];
15070
- value != null && (value = Array.isArray(value) ? value.map(module$contents$goog$html$SafeStyle_sanitizePropertyValue).join(" ") : module$contents$goog$html$SafeStyle_sanitizePropertyValue(value), style += name + ":" + value + ";");
15071
- }
15072
- }
15073
- return style ? module$contents$safevalues$internals$style_impl_createStyleInternal(style) : module$exports$safevalues$internals$style_impl.SafeStyle.EMPTY;
15074
- };
15075
- module$exports$safevalues$internals$style_impl.SafeStyle.concat = function(var_args) {
15076
- var style = "", addArgument = function(argument) {
15077
- Array.isArray(argument) ? argument.forEach(addArgument) : style += module$exports$safevalues$internals$style_impl.SafeStyle.unwrap(argument);
15078
- };
15079
- Array.prototype.forEach.call(arguments, addArgument);
15080
- return style ? module$contents$safevalues$internals$style_impl_createStyleInternal(style) : module$exports$safevalues$internals$style_impl.SafeStyle.EMPTY;
15081
- };
15082
- module$exports$safevalues$internals$style_impl.SafeStyle.EMPTY = module$contents$safevalues$internals$style_impl_createStyleInternal("");
15083
- module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING = "zClosurez";
15084
- function module$contents$goog$html$SafeStyle_sanitizePropertyValue(value) {
15085
- if (value instanceof module$exports$safevalues$internals$url_impl.SafeUrl) {
15086
- return 'url("' + value.toString().replace(/</g, "%3c").replace(/[\\"]/g, "\\$&") + '")';
15087
- }
15088
- var result = value instanceof goog.string.Const ? goog.string.Const.unwrap(value) : module$contents$goog$html$SafeStyle_sanitizePropertyValueString(String(value));
15089
- if (/[{;}]/.test(result)) {
15090
- throw new module$contents$goog$asserts_AssertionError("Value does not allow [{;}], got: %s.", [result]);
15091
- }
15092
- return result;
15093
- }
15094
- function module$contents$goog$html$SafeStyle_sanitizePropertyValueString(value) {
15095
- var valueWithoutFunctions = value.replace(module$contents$goog$html$SafeStyle_FUNCTIONS_RE, "$1").replace(module$contents$goog$html$SafeStyle_FUNCTIONS_RE, "$1").replace(module$contents$goog$html$SafeStyle_URL_RE, "url");
15096
- if (module$contents$goog$html$SafeStyle_VALUE_RE.test(valueWithoutFunctions)) {
15097
- if (module$contents$goog$html$SafeStyle_COMMENT_RE.test(value)) {
15098
- return (0,goog.asserts.fail)("String value disallows comments, got: " + value), module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING;
15099
- }
15100
- if (!module$contents$goog$html$SafeStyle_hasBalancedQuotes(value)) {
15101
- return (0,goog.asserts.fail)("String value requires balanced quotes, got: " + value), module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING;
15102
- }
15103
- if (!module$contents$goog$html$SafeStyle_hasBalancedSquareBrackets(value)) {
15104
- return (0,goog.asserts.fail)("String value requires balanced square brackets and one identifier per pair of brackets, got: " + value), module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING;
15105
- }
15106
- } else {
15107
- return (0,goog.asserts.fail)("String value allows only [-+,.\"'%_!#/ a-zA-Z0-9\\[\\]] and simple functions, got: " + value), module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING;
15108
- }
15109
- return module$contents$goog$html$SafeStyle_sanitizeUrl(value);
15110
- }
15111
- function module$contents$goog$html$SafeStyle_hasBalancedQuotes(value) {
15112
- for (var outsideSingle = !0, outsideDouble = !0, i = 0; i < value.length; i++) {
15113
- var c = value.charAt(i);
15114
- c == "'" && outsideDouble ? outsideSingle = !outsideSingle : c == '"' && outsideSingle && (outsideDouble = !outsideDouble);
15115
- }
15116
- return outsideSingle && outsideDouble;
15117
- }
15118
- function module$contents$goog$html$SafeStyle_hasBalancedSquareBrackets(value) {
15119
- for (var outside = !0, tokenRe = /^[-_a-zA-Z0-9]$/, i = 0; i < value.length; i++) {
15120
- var c = value.charAt(i);
15121
- if (c == "]") {
15122
- if (outside) {
15123
- return !1;
15124
- }
15125
- outside = !0;
15126
- } else if (c == "[") {
15127
- if (!outside) {
15128
- return !1;
15129
- }
15130
- outside = !1;
15131
- } else if (!outside && !tokenRe.test(c)) {
15132
- return !1;
15133
- }
15134
- }
15135
- return outside;
15136
- }
15137
- var module$contents$goog$html$SafeStyle_VALUE_RE = RegExp("^[-+,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"), module$contents$goog$html$SafeStyle_URL_RE = RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))", "g"), module$contents$goog$html$SafeStyle_FUNCTIONS_RE = RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|steps|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)", "g"), module$contents$goog$html$SafeStyle_COMMENT_RE =
15138
- /\/\*/;
15139
- function module$contents$goog$html$SafeStyle_sanitizeUrl(value) {
15140
- return value.replace(module$contents$goog$html$SafeStyle_URL_RE, function(match, before, url, after) {
15141
- var quote = "";
15142
- url = url.replace(/^(['"])(.*)\1$/, function(match, start, inside) {
15143
- quote = start;
15144
- return inside;
15145
- });
15146
- var sanitized = module$contents$safevalues$builders$url_builders_sanitizeUrl(url).toString();
15147
- return before + quote + sanitized + quote + after;
15148
- });
15149
- }
15150
- goog.html.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
15151
- module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.createRule = function(selector, style) {
15029
+ goog.html = {};
15030
+ goog.html.deprecated = {};
15031
+ goog.html.deprecated.safeStyleSheetCreateRule = function(selector, style) {
15152
15032
  if ((0,goog.string.internal.contains)(selector, "<")) {
15153
15033
  throw Error("Selector does not allow '<', got: " + selector);
15154
15034
  }
@@ -15156,33 +15036,30 @@ module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.createRule =
15156
15036
  if (!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=\\^$|]+$/.test(selectorToCheck)) {
15157
15037
  throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=\\^$|] and strings, got: " + selector);
15158
15038
  }
15159
- if (!module$contents$goog$html$SafeStyleSheet_hasBalancedBrackets(selectorToCheck)) {
15039
+ if (!module$contents$goog$html$deprecated_hasBalancedBrackets(selectorToCheck)) {
15160
15040
  throw Error("() and [] in selector must be balanced, got: " + selector);
15161
15041
  }
15162
- style instanceof module$exports$safevalues$internals$style_impl.SafeStyle || (style = module$exports$safevalues$internals$style_impl.SafeStyle.create(style));
15163
- var styleSheet = selector + "{" + module$exports$safevalues$internals$style_impl.SafeStyle.unwrap(style).replace(/</g, "\\3C ") + "}";
15042
+ var styleStr = style instanceof module$exports$safevalues$internals$style_impl.SafeStyle ? module$contents$safevalues$internals$style_impl_unwrapStyle(style) : Object.entries(style).map(function($jscomp$destructuring$var30) {
15043
+ var $jscomp$destructuring$var31 = (0,$jscomp.makeIterator)($jscomp$destructuring$var30);
15044
+ var k = $jscomp$destructuring$var31.next().value;
15045
+ var v = $jscomp$destructuring$var31.next().value;
15046
+ return k + ":" + v + ";";
15047
+ }).join(""), styleSheet = selector + "{" + styleStr.replace(/</g, "\\3C ") + "}";
15164
15048
  return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheet);
15165
15049
  };
15166
- module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.concat = function(var_args) {
15050
+ goog.html.deprecated.safeStyleSheetConcat = function(var_args) {
15167
15051
  var result = "", addArgument = function(argument) {
15168
- Array.isArray(argument) ? argument.forEach(addArgument) : result += module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.unwrap(argument);
15052
+ Array.isArray(argument) ? argument.forEach(addArgument) : result += module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet(argument);
15169
15053
  };
15170
15054
  Array.prototype.forEach.call(arguments, addArgument);
15171
15055
  return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(result);
15172
15056
  };
15173
- module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.fromConstant = function(styleSheet) {
15057
+ goog.html.deprecated.safeStyleSheetFromConstant = function(styleSheet) {
15174
15058
  var styleSheetString = goog.string.Const.unwrap(styleSheet);
15175
- if (styleSheetString.length === 0) {
15176
- return module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.EMPTY;
15177
- }
15178
15059
  (0,goog.asserts.assert)(!(0,goog.string.internal.contains)(styleSheetString, "<"), "Forbidden '<' character in style sheet string: " + styleSheetString);
15179
15060
  return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheetString);
15180
15061
  };
15181
- module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.unwrap = function(safeStyleSheet) {
15182
- return module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet(safeStyleSheet);
15183
- };
15184
- module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.EMPTY = module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal("");
15185
- function module$contents$goog$html$SafeStyleSheet_hasBalancedBrackets(s) {
15062
+ function module$contents$goog$html$deprecated_hasBalancedBrackets(s) {
15186
15063
  for (var brackets = {"(":")", "[":"]"}, expectedBrackets = [], i = 0; i < s.length; i++) {
15187
15064
  var ch = s[i];
15188
15065
  if (brackets[ch]) {
@@ -15193,7 +15070,68 @@ function module$contents$goog$html$SafeStyleSheet_hasBalancedBrackets(s) {
15193
15070
  }
15194
15071
  return expectedBrackets.length == 0;
15195
15072
  }
15073
+ ;module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.createRule = goog.html.deprecated.safeStyleSheetCreateRule;
15074
+ module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.concat = goog.html.deprecated.safeStyleSheetConcat;
15075
+ module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.fromConstant = goog.html.deprecated.safeStyleSheetFromConstant;
15196
15076
  goog.html.SafeStyleSheet = module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet;
15077
+ module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.cloneWithParams = function(url, searchParams, opt_hashParams) {
15078
+ var urlString = module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.unwrap(url), parts = module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.URL_PARAM_PARSER_.exec(urlString), urlHash = parts[3] || "";
15079
+ return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(parts[1] + module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.stringifyParams_("?", parts[2] || "", searchParams) + module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.stringifyParams_("#", urlHash, opt_hashParams));
15080
+ };
15081
+ module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.unwrap = function(trustedResourceUrl) {
15082
+ return module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(trustedResourceUrl).toString();
15083
+ };
15084
+ module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.unwrapTrustedScriptURL = function(trustedResourceUrl) {
15085
+ return module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(trustedResourceUrl);
15086
+ };
15087
+ module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.format = function(format, args) {
15088
+ var formatStr = goog.string.Const.unwrap(format);
15089
+ if (!module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.BASE_URL_.test(formatStr)) {
15090
+ throw Error("Invalid TrustedResourceUrl format: " + formatStr);
15091
+ }
15092
+ var result = formatStr.replace(module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.FORMAT_MARKER_, function(match, id) {
15093
+ if (!Object.prototype.hasOwnProperty.call(args, id)) {
15094
+ throw Error('Found marker, "' + id + '", in format string, "' + formatStr + '", but no valid label mapping found in args: ' + JSON.stringify(args));
15095
+ }
15096
+ var arg = args[id];
15097
+ return arg instanceof goog.string.Const ? goog.string.Const.unwrap(arg) : encodeURIComponent(String(arg));
15098
+ });
15099
+ return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(result);
15100
+ };
15101
+ module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.FORMAT_MARKER_ = /%{(\w+)}/g;
15102
+ module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.BASE_URL_ = RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)", "i");
15103
+ module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.URL_PARAM_PARSER_ = /^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/;
15104
+ module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.formatWithParams = function(format, args, searchParams, opt_hashParams) {
15105
+ var url = module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.format(format, args);
15106
+ return module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.cloneWithParams(url, searchParams, opt_hashParams);
15107
+ };
15108
+ module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.fromConstant = function(url) {
15109
+ return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(goog.string.Const.unwrap(url));
15110
+ };
15111
+ module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.fromConstants = function(parts) {
15112
+ for (var unwrapped = "", i = 0; i < parts.length; i++) {
15113
+ unwrapped += goog.string.Const.unwrap(parts[i]);
15114
+ }
15115
+ return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(unwrapped);
15116
+ };
15117
+ module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.stringifyParams_ = function(prefix, currentString, params) {
15118
+ if (params == null) {
15119
+ return currentString;
15120
+ }
15121
+ if (typeof params === "string") {
15122
+ return params ? prefix + encodeURIComponent(params) : "";
15123
+ }
15124
+ for (var key in params) {
15125
+ if (Object.prototype.hasOwnProperty.call(params, key)) {
15126
+ for (var value = params[key], outputValues = Array.isArray(value) ? value : [value], i = 0; i < outputValues.length; i++) {
15127
+ var outputValue = outputValues[i];
15128
+ outputValue != null && (currentString || (currentString = prefix), currentString += (currentString.length > prefix.length ? "&" : "") + encodeURIComponent(key) + "=" + encodeURIComponent(String(outputValue)));
15129
+ }
15130
+ }
15131
+ }
15132
+ return currentString;
15133
+ };
15134
+ goog.html.TrustedResourceUrl = module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl;
15197
15135
  module$exports$safevalues$internals$html_impl.SafeHtml.unwrap = function(safeHtml) {
15198
15136
  return (0,module$exports$safevalues$for_closure$index.unwrapHtml)(safeHtml).toString();
15199
15137
  };
@@ -15230,7 +15168,7 @@ module$exports$safevalues$internals$html_impl.SafeHtml.verifyTagName = function(
15230
15168
  }
15231
15169
  };
15232
15170
  module$exports$safevalues$internals$html_impl.SafeHtml.createIframe = function(src, srcdoc, attributes, content) {
15233
- src && module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(src);
15171
+ src && module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(src);
15234
15172
  var fixedAttributes = {};
15235
15173
  fixedAttributes.src = src || null;
15236
15174
  fixedAttributes.srcdoc = srcdoc && module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(srcdoc);
@@ -15252,7 +15190,7 @@ module$exports$safevalues$internals$html_impl.SafeHtml.canUseSandboxIframe = fun
15252
15190
  return goog.global.HTMLIFrameElement && "sandbox" in goog.global.HTMLIFrameElement.prototype;
15253
15191
  };
15254
15192
  module$exports$safevalues$internals$html_impl.SafeHtml.createScriptSrc = function(src, attributes) {
15255
- module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(src);
15193
+ module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(src);
15256
15194
  var combinedAttrs = module$exports$safevalues$internals$html_impl.SafeHtml.combineAttributes({src:src}, {}, attributes);
15257
15195
  return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script", combinedAttrs);
15258
15196
  };
@@ -15260,7 +15198,7 @@ module$exports$safevalues$internals$html_impl.SafeHtml.createStyle = function(st
15260
15198
  var combinedAttrs = module$exports$safevalues$internals$html_impl.SafeHtml.combineAttributes({type:"text/css"}, {}, attributes), content = "";
15261
15199
  styleSheet = module$contents$goog$array_concat(styleSheet);
15262
15200
  for (var i = 0; i < styleSheet.length; i++) {
15263
- content += module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.unwrap(styleSheet[i]);
15201
+ content += module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet(styleSheet[i]);
15264
15202
  }
15265
15203
  var htmlContent = (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(content);
15266
15204
  return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style", combinedAttrs, htmlContent);
@@ -15351,8 +15289,8 @@ function module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, v
15351
15289
  throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" requires goog.string.Const value, "' + value + '" given.' : "");
15352
15290
  }
15353
15291
  if (name.toLowerCase() in module$contents$goog$html$SafeHtml_URL_ATTRIBUTES) {
15354
- if (value instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl) {
15355
- value = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(value);
15292
+ if (value instanceof module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl) {
15293
+ value = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(value).toString();
15356
15294
  } else if (value instanceof module$exports$safevalues$internals$url_impl.SafeUrl) {
15357
15295
  value = module$contents$safevalues$internals$url_impl_unwrapUrl(value);
15358
15296
  } else if (typeof value === "string") {
@@ -15362,8 +15300,8 @@ function module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, v
15362
15300
  }
15363
15301
  }
15364
15302
  }
15365
- goog.asserts.assert(value instanceof module$exports$safevalues$internals$url_impl.SafeUrl || value instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl || value instanceof module$exports$safevalues$internals$style_impl.SafeStyle || value instanceof module$exports$safevalues$internals$html_impl.SafeHtml || typeof value === "string" || typeof value === "number", "String or number value expected, got " +
15366
- typeof value + " with value: " + value);
15303
+ goog.asserts.assert(value instanceof module$exports$safevalues$internals$url_impl.SafeUrl || value instanceof module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl || value instanceof module$exports$safevalues$internals$style_impl.SafeStyle || value instanceof module$exports$safevalues$internals$html_impl.SafeHtml || typeof value === "string" || typeof value ===
15304
+ "number", "String or number value expected, got " + typeof value + " with value: " + value);
15367
15305
  return name + '="' + goog.string.internal.htmlEscape(String(value)) + '"';
15368
15306
  }
15369
15307
  function module$contents$goog$html$SafeHtml_getStyleValue(value) {
@@ -15373,8 +15311,12 @@ function module$contents$goog$html$SafeHtml_getStyleValue(value) {
15373
15311
  if (!goog.isObject(value)) {
15374
15312
  throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'The "style" attribute requires goog.html.SafeStyle or map of style properties, ' + typeof value + " given: " + value : "");
15375
15313
  }
15376
- value instanceof module$exports$safevalues$internals$style_impl.SafeStyle || (value = module$exports$safevalues$internals$style_impl.SafeStyle.create(value));
15377
- return module$exports$safevalues$internals$style_impl.SafeStyle.unwrap(value);
15314
+ return value instanceof module$exports$safevalues$internals$style_impl.SafeStyle ? module$contents$safevalues$internals$style_impl_unwrapStyle(value) : Object.entries(value).map(function($jscomp$destructuring$var32) {
15315
+ var $jscomp$destructuring$var33 = (0,$jscomp.makeIterator)($jscomp$destructuring$var32);
15316
+ var k = $jscomp$destructuring$var33.next().value;
15317
+ var v = $jscomp$destructuring$var33.next().value;
15318
+ return k + ":" + v + ";";
15319
+ }).join("");
15378
15320
  }
15379
15321
  module$exports$safevalues$internals$html_impl.SafeHtml.DOCTYPE_HTML = function() {
15380
15322
  return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)("<!DOCTYPE html>");
@@ -15610,8 +15552,8 @@ module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
15610
15552
  this.replacements = new Map();
15611
15553
  };
15612
15554
  module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
15613
- 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) {
15614
- return $jscomp$this$380122516$5.replaceFormattingString(openedTags, match);
15555
+ var $jscomp$this$1018007701$5 = this, openedTags = [], marker = (0,module$exports$safevalues$builders$html_builders.htmlEscape)("_safevalues_format_marker_:").toString(), html = (0,module$exports$safevalues$builders$html_builders.htmlEscape)(format).toString().replace(new RegExp("\\{" + marker + "[\\w&#;]+\\}", "g"), function(match) {
15556
+ return $jscomp$this$1018007701$5.replaceFormattingString(openedTags, match);
15615
15557
  });
15616
15558
  if (openedTags.length !== 0) {
15617
15559
  if (goog.DEBUG) {
@@ -15829,8 +15771,8 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
15829
15771
  if (Array.isArray(token)) {
15830
15772
  tokens.push.apply(tokens, (0,$jscomp.arrayFromIterable)(token));
15831
15773
  } else {
15832
- var $jscomp$optchain$tmpm583190311$0 = void 0;
15833
- if (token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE || (($jscomp$optchain$tmpm583190311$0 = lastToken) == null ? void 0 : $jscomp$optchain$tmpm583190311$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE) {
15774
+ var $jscomp$optchain$tmpm282935782$0 = void 0;
15775
+ if (token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE || (($jscomp$optchain$tmpm282935782$0 = lastToken) == null ? void 0 : $jscomp$optchain$tmpm282935782$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE) {
15834
15776
  tokens.push(token);
15835
15777
  if (token.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF) {
15836
15778
  return tokens;
@@ -16076,9 +16018,9 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
16076
16018
  repr:repr}) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.NUMBER, repr:repr};
16077
16019
  };
16078
16020
  module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextTwoInputsPointsAreWhitespace = function() {
16079
- var $jscomp$this$m583190311$26 = this;
16021
+ var $jscomp$this$m282935782$26 = this;
16080
16022
  return this.nextTwoInputCodePoints().every(function(c) {
16081
- return $jscomp$this$m583190311$26.isWhitespace(c);
16023
+ return $jscomp$this$m282935782$26.isWhitespace(c);
16082
16024
  });
16083
16025
  };
16084
16026
  module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.twoCodePointsAreValidEscape = function(codePoint1, codePoint2) {
@@ -16185,8 +16127,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
16185
16127
  return null;
16186
16128
  }
16187
16129
  if (token.lowercaseName === "url") {
16188
- var nextToken = tokens[i + 1], $jscomp$optchain$tmpm1877845113$0 = void 0;
16189
- if ((($jscomp$optchain$tmpm1877845113$0 = nextToken) == null ? void 0 : $jscomp$optchain$tmpm1877845113$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING) {
16130
+ var nextToken = tokens[i + 1], $jscomp$optchain$tmpm1577590584$0 = void 0;
16131
+ if ((($jscomp$optchain$tmpm1577590584$0 = nextToken) == null ? void 0 : $jscomp$optchain$tmpm1577590584$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING) {
16190
16132
  return null;
16191
16133
  }
16192
16134
  var parsedUrl = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(nextToken.value);
@@ -16209,8 +16151,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
16209
16151
  if (!this.allowKeyframes) {
16210
16152
  return null;
16211
16153
  }
16212
- for (var keyframeRules = [], $jscomp$iter$31 = (0,$jscomp.makeIterator)(keyframesRule.cssRules), $jscomp$key$m1877845113$1$rule = $jscomp$iter$31.next(); !$jscomp$key$m1877845113$1$rule.done; $jscomp$key$m1877845113$1$rule = $jscomp$iter$31.next()) {
16213
- var rule = $jscomp$key$m1877845113$1$rule.value;
16154
+ for (var keyframeRules = [], $jscomp$iter$31 = (0,$jscomp.makeIterator)(keyframesRule.cssRules), $jscomp$key$m1577590584$1$rule = $jscomp$iter$31.next(); !$jscomp$key$m1577590584$1$rule.done; $jscomp$key$m1577590584$1$rule = $jscomp$iter$31.next()) {
16155
+ var rule = $jscomp$key$m1577590584$1$rule.value;
16214
16156
  if (rule instanceof CSSKeyframeRule) {
16215
16157
  var sanitizedRule = this.sanitizeKeyframeRule(rule);
16216
16158
  sanitizedRule && keyframeRules.push(sanitizedRule);
@@ -16222,8 +16164,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
16222
16164
  if (!this.propertyAllowlist.has(name)) {
16223
16165
  return !1;
16224
16166
  }
16225
- for (var $jscomp$iter$32 = (0,$jscomp.makeIterator)(this.propertyDiscarders), $jscomp$key$m1877845113$2$discarder = $jscomp$iter$32.next(); !$jscomp$key$m1877845113$2$discarder.done; $jscomp$key$m1877845113$2$discarder = $jscomp$iter$32.next()) {
16226
- var discarder = $jscomp$key$m1877845113$2$discarder.value;
16167
+ for (var $jscomp$iter$32 = (0,$jscomp.makeIterator)(this.propertyDiscarders), $jscomp$key$m1577590584$2$discarder = $jscomp$iter$32.next(); !$jscomp$key$m1577590584$2$discarder.done; $jscomp$key$m1577590584$2$discarder = $jscomp$iter$32.next()) {
16168
+ var discarder = $jscomp$key$m1577590584$2$discarder.value;
16227
16169
  if (discarder(name)) {
16228
16170
  return !1;
16229
16171
  }
@@ -16238,8 +16180,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
16238
16180
  return sanitizedValue ? module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(name) + ": " + sanitizedValue + (isImportant ? " !important" : "") : null;
16239
16181
  };
16240
16182
  module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleDeclaration = function(style, calledFromStyleElement) {
16241
- for (var sortedPropertyNames = [].concat((0,$jscomp.arrayFromIterable)(style)).sort(), sanitizedProperties = "", $jscomp$iter$33 = (0,$jscomp.makeIterator)(sortedPropertyNames), $jscomp$key$m1877845113$3$name = $jscomp$iter$33.next(); !$jscomp$key$m1877845113$3$name.done; $jscomp$key$m1877845113$3$name = $jscomp$iter$33.next()) {
16242
- var name = $jscomp$key$m1877845113$3$name.value, value = style.getPropertyValue(name), isImportant = style.getPropertyPriority(name) === "important", sanitizedProperty = this.sanitizeProperty(name, value, isImportant, calledFromStyleElement);
16183
+ for (var sortedPropertyNames = [].concat((0,$jscomp.arrayFromIterable)(style)).sort(), sanitizedProperties = "", $jscomp$iter$33 = (0,$jscomp.makeIterator)(sortedPropertyNames), $jscomp$key$m1577590584$3$name = $jscomp$iter$33.next(); !$jscomp$key$m1577590584$3$name.done; $jscomp$key$m1577590584$3$name = $jscomp$iter$33.next()) {
16184
+ var name = $jscomp$key$m1577590584$3$name.value, value = style.getPropertyValue(name), isImportant = style.getPropertyPriority(name) === "important", sanitizedProperty = this.sanitizeProperty(name, value, isImportant, calledFromStyleElement);
16243
16185
  sanitizedProperty && (sanitizedProperties += sanitizedProperty + ";");
16244
16186
  }
16245
16187
  return sanitizedProperties;
@@ -16253,8 +16195,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
16253
16195
  return selector + " { " + sanitizedProperties + " }";
16254
16196
  };
16255
16197
  module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleElement = function(cssText) {
16256
- for (var rules = this.getStyleSheet(cssText).cssRules, output = [], $jscomp$iter$34 = (0,$jscomp.makeIterator)(rules), $jscomp$key$m1877845113$4$rule = $jscomp$iter$34.next(); !$jscomp$key$m1877845113$4$rule.done; $jscomp$key$m1877845113$4$rule = $jscomp$iter$34.next()) {
16257
- var rule = $jscomp$key$m1877845113$4$rule.value;
16198
+ for (var rules = this.getStyleSheet(cssText).cssRules, output = [], $jscomp$iter$34 = (0,$jscomp.makeIterator)(rules), $jscomp$key$m1577590584$4$rule = $jscomp$iter$34.next(); !$jscomp$key$m1577590584$4$rule.done; $jscomp$key$m1577590584$4$rule = $jscomp$iter$34.next()) {
16199
+ var rule = $jscomp$key$m1577590584$4$rule.value;
16258
16200
  if (rule instanceof CSSStyleRule) {
16259
16201
  var sanitizedRule = this.sanitizeStyleRule(rule);
16260
16202
  sanitizedRule && output.push(sanitizedRule);
@@ -16415,8 +16357,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
16415
16357
  return fragment;
16416
16358
  };
16417
16359
  module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
16418
- for (var $jscomp$this$m1803429925$13 = this, dirtyFragment = module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(html, inertDocument), treeWalker = document.createTreeWalker(dirtyFragment, 5, function(n) {
16419
- return $jscomp$this$m1803429925$13.nodeFilter(n);
16360
+ for (var $jscomp$this$m1085474118$13 = this, dirtyFragment = module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(html, inertDocument), treeWalker = document.createTreeWalker(dirtyFragment, 5, function(n) {
16361
+ return $jscomp$this$m1085474118$13.nodeFilter(n);
16420
16362
  }), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; currentNode !== null;) {
16421
16363
  var sanitizedNode = void 0;
16422
16364
  if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
@@ -16451,8 +16393,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
16451
16393
  return this.createTextNode(textNode.data);
16452
16394
  };
16453
16395
  module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
16454
- for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$36 = (0,$jscomp.makeIterator)(dirtyAttributes), $jscomp$key$m1803429925$34$ = $jscomp$iter$36.next(); !$jscomp$key$m1803429925$34$.done; $jscomp$key$m1803429925$34$ = $jscomp$iter$36.next()) {
16455
- var $jscomp$destructuring$var31 = $jscomp$key$m1803429925$34$.value, name = $jscomp$destructuring$var31.name, value = $jscomp$destructuring$var31.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
16396
+ for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$36 = (0,$jscomp.makeIterator)(dirtyAttributes), $jscomp$key$m1085474118$34$ = $jscomp$iter$36.next(); !$jscomp$key$m1085474118$34$.done; $jscomp$key$m1085474118$34$ = $jscomp$iter$36.next()) {
16397
+ var $jscomp$destructuring$var35 = $jscomp$key$m1085474118$34$.value, name = $jscomp$destructuring$var35.name, value = $jscomp$destructuring$var35.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
16456
16398
  if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
16457
16399
  switch(policy.policyAction) {
16458
16400
  case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
@@ -16484,9 +16426,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
16484
16426
  break;
16485
16427
  case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET:
16486
16428
  if (this.resourceUrlPolicy) {
16487
- for (var hints$jscomp$0 = {type:module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.HTML_ATTRIBUTE, attributeName:name, elementName:elementName}, srcset = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(value), sanitizedSrcset = {parts:[]}, $jscomp$iter$35 = (0,$jscomp.makeIterator)(srcset.parts), $jscomp$key$m1803429925$33$part = $jscomp$iter$35.next(); !$jscomp$key$m1803429925$33$part.done; $jscomp$key$m1803429925$33$part =
16429
+ for (var hints$jscomp$0 = {type:module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.HTML_ATTRIBUTE, attributeName:name, elementName:elementName}, srcset = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(value), sanitizedSrcset = {parts:[]}, $jscomp$iter$35 = (0,$jscomp.makeIterator)(srcset.parts), $jscomp$key$m1085474118$33$part = $jscomp$iter$35.next(); !$jscomp$key$m1085474118$33$part.done; $jscomp$key$m1085474118$33$part =
16488
16430
  $jscomp$iter$35.next()) {
16489
- var part = $jscomp$key$m1803429925$33$part.value, url$jscomp$0 = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(part.url), sanitizedUrl$jscomp$0 = this.resourceUrlPolicy(url$jscomp$0, hints$jscomp$0);
16431
+ var part = $jscomp$key$m1085474118$33$part.value, url$jscomp$0 = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(part.url), sanitizedUrl$jscomp$0 = this.resourceUrlPolicy(url$jscomp$0, hints$jscomp$0);
16490
16432
  sanitizedUrl$jscomp$0 && sanitizedSrcset.parts.push({url:sanitizedUrl$jscomp$0.toString(), descriptor:part.descriptor});
16491
16433
  }
16492
16434
  module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset(sanitizedSrcset));
@@ -16530,8 +16472,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
16530
16472
  if (!conditions) {
16531
16473
  return !0;
16532
16474
  }
16533
- for (var $jscomp$iter$37 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$m1803429925$35$ = $jscomp$iter$37.next(); !$jscomp$key$m1803429925$35$.done; $jscomp$key$m1803429925$35$ = $jscomp$iter$37.next()) {
16534
- var $jscomp$destructuring$var33 = (0,$jscomp.makeIterator)($jscomp$key$m1803429925$35$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var33.next().value, expectedValues = $jscomp$destructuring$var33.next().value, $jscomp$optchain$tmpm1803429925$0 = void 0, value = ($jscomp$optchain$tmpm1803429925$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) == null ? void 0 : $jscomp$optchain$tmpm1803429925$0.value;
16475
+ for (var $jscomp$iter$37 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$m1085474118$35$ = $jscomp$iter$37.next(); !$jscomp$key$m1085474118$35$.done; $jscomp$key$m1085474118$35$ = $jscomp$iter$37.next()) {
16476
+ var $jscomp$destructuring$var37 = (0,$jscomp.makeIterator)($jscomp$key$m1085474118$35$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var37.next().value, expectedValues = $jscomp$destructuring$var37.next().value, $jscomp$optchain$tmpm1085474118$0 = void 0, value = ($jscomp$optchain$tmpm1085474118$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) == null ? void 0 : $jscomp$optchain$tmpm1085474118$0.value;
16535
16477
  if (value && !expectedValues.has(value)) {
16536
16478
  return !1;
16537
16479
  }
@@ -16546,8 +16488,8 @@ function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_Srcse
16546
16488
  module$exports$safevalues$builders$html_sanitizer$html_sanitizer.Srcset = function() {
16547
16489
  };
16548
16490
  function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(srcset) {
16549
- for (var parts = [], $jscomp$iter$38 = (0,$jscomp.makeIterator)(srcset.split(",")), $jscomp$key$m1803429925$36$part = $jscomp$iter$38.next(); !$jscomp$key$m1803429925$36$part.done; $jscomp$key$m1803429925$36$part = $jscomp$iter$38.next()) {
16550
- var $jscomp$destructuring$var34 = (0,$jscomp.makeIterator)($jscomp$key$m1803429925$36$part.value.trim().split(/\s+/, 2)), url__tsickle_destructured_3 = $jscomp$destructuring$var34.next().value, descriptor__tsickle_destructured_4 = $jscomp$destructuring$var34.next().value;
16491
+ for (var parts = [], $jscomp$iter$38 = (0,$jscomp.makeIterator)(srcset.split(",")), $jscomp$key$m1085474118$36$part = $jscomp$iter$38.next(); !$jscomp$key$m1085474118$36$part.done; $jscomp$key$m1085474118$36$part = $jscomp$iter$38.next()) {
16492
+ var $jscomp$destructuring$var38 = (0,$jscomp.makeIterator)($jscomp$key$m1085474118$36$part.value.trim().split(/\s+/, 2)), url__tsickle_destructured_3 = $jscomp$destructuring$var38.next().value, descriptor__tsickle_destructured_4 = $jscomp$destructuring$var38.next().value;
16551
16493
  parts.push({url:url__tsickle_destructured_3, descriptor:descriptor__tsickle_destructured_4});
16552
16494
  }
16553
16495
  return {parts:parts};
@@ -16604,8 +16546,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
16604
16546
  this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE;
16605
16547
  };
16606
16548
  module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowElements = function(elementSet) {
16607
- for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$39 = (0,$jscomp.makeIterator)(elementSet), $jscomp$key$m1412690177$21$element = $jscomp$iter$39.next(); !$jscomp$key$m1412690177$21$element.done; $jscomp$key$m1412690177$21$element = $jscomp$iter$39.next()) {
16608
- var element = $jscomp$key$m1412690177$21$element.value;
16549
+ for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$39 = (0,$jscomp.makeIterator)(elementSet), $jscomp$key$435282654$21$element = $jscomp$iter$39.next(); !$jscomp$key$435282654$21$element.done; $jscomp$key$435282654$21$element = $jscomp$iter$39.next()) {
16550
+ var element = $jscomp$key$435282654$21$element.value;
16609
16551
  element = element.toUpperCase();
16610
16552
  if (!this.sanitizerTable.isAllowedElement(element)) {
16611
16553
  throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
@@ -16623,8 +16565,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
16623
16565
  throw Error("Element: " + element + " is not a custom element");
16624
16566
  }
16625
16567
  if (allowedAttributes) {
16626
- for (var elementPolicy = new Map(), $jscomp$iter$40 = (0,$jscomp.makeIterator)(allowedAttributes), $jscomp$key$m1412690177$22$attribute = $jscomp$iter$40.next(); !$jscomp$key$m1412690177$22$attribute.done; $jscomp$key$m1412690177$22$attribute = $jscomp$iter$40.next()) {
16627
- elementPolicy.set($jscomp$key$m1412690177$22$attribute.value.toLowerCase(), {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
16568
+ for (var elementPolicy = new Map(), $jscomp$iter$40 = (0,$jscomp.makeIterator)(allowedAttributes), $jscomp$key$435282654$22$attribute = $jscomp$iter$40.next(); !$jscomp$key$435282654$22$attribute.done; $jscomp$key$435282654$22$attribute = $jscomp$iter$40.next()) {
16569
+ elementPolicy.set($jscomp$key$435282654$22$attribute.value.toLowerCase(), {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
16628
16570
  }
16629
16571
  allowedElementPolicies.set(element, elementPolicy);
16630
16572
  } else {
@@ -16634,15 +16576,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
16634
16576
  return this;
16635
16577
  };
16636
16578
  module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowAttributes = function(attributeSet) {
16637
- for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$41 = (0,$jscomp.makeIterator)(attributeSet), $jscomp$key$m1412690177$23$attribute = $jscomp$iter$41.next(); !$jscomp$key$m1412690177$23$attribute.done; $jscomp$key$m1412690177$23$attribute = $jscomp$iter$41.next()) {
16638
- var attribute = $jscomp$key$m1412690177$23$attribute.value;
16579
+ for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$41 = (0,$jscomp.makeIterator)(attributeSet), $jscomp$key$435282654$23$attribute = $jscomp$iter$41.next(); !$jscomp$key$435282654$23$attribute.done; $jscomp$key$435282654$23$attribute = $jscomp$iter$41.next()) {
16580
+ var attribute = $jscomp$key$435282654$23$attribute.value;
16639
16581
  this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
16640
16582
  this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
16641
16583
  }
16642
- for (var $jscomp$iter$43 = (0,$jscomp.makeIterator)(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$m1412690177$25$ = $jscomp$iter$43.next(); !$jscomp$key$m1412690177$25$.done; $jscomp$key$m1412690177$25$ = $jscomp$iter$43.next()) {
16643
- for (var $jscomp$destructuring$var37 = (0,$jscomp.makeIterator)($jscomp$key$m1412690177$25$.value), elementName__tsickle_destructured_1 = $jscomp$destructuring$var37.next().value, originalElementPolicy__tsickle_destructured_2 = $jscomp$destructuring$var37.next().value, elementName = elementName__tsickle_destructured_1, newElementPolicy = new Map(), $jscomp$iter$42 = (0,$jscomp.makeIterator)(originalElementPolicy__tsickle_destructured_2.entries()), $jscomp$key$m1412690177$24$ = $jscomp$iter$42.next(); !$jscomp$key$m1412690177$24$.done; $jscomp$key$m1412690177$24$ =
16584
+ for (var $jscomp$iter$43 = (0,$jscomp.makeIterator)(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$435282654$25$ = $jscomp$iter$43.next(); !$jscomp$key$435282654$25$.done; $jscomp$key$435282654$25$ = $jscomp$iter$43.next()) {
16585
+ for (var $jscomp$destructuring$var41 = (0,$jscomp.makeIterator)($jscomp$key$435282654$25$.value), elementName__tsickle_destructured_1 = $jscomp$destructuring$var41.next().value, originalElementPolicy__tsickle_destructured_2 = $jscomp$destructuring$var41.next().value, elementName = elementName__tsickle_destructured_1, newElementPolicy = new Map(), $jscomp$iter$42 = (0,$jscomp.makeIterator)(originalElementPolicy__tsickle_destructured_2.entries()), $jscomp$key$435282654$24$ = $jscomp$iter$42.next(); !$jscomp$key$435282654$24$.done; $jscomp$key$435282654$24$ =
16644
16586
  $jscomp$iter$42.next()) {
16645
- var $jscomp$destructuring$var39 = (0,$jscomp.makeIterator)($jscomp$key$m1412690177$24$.value), attribute__tsickle_destructured_3 = $jscomp$destructuring$var39.next().value, attributePolicy__tsickle_destructured_4 = $jscomp$destructuring$var39.next().value, attribute$jscomp$0 = attribute__tsickle_destructured_3, attributePolicy = attributePolicy__tsickle_destructured_4;
16587
+ var $jscomp$destructuring$var43 = (0,$jscomp.makeIterator)($jscomp$key$435282654$24$.value), attribute__tsickle_destructured_3 = $jscomp$destructuring$var43.next().value, attributePolicy__tsickle_destructured_4 = $jscomp$destructuring$var43.next().value, attribute$jscomp$0 = attribute__tsickle_destructured_3, attributePolicy = attributePolicy__tsickle_destructured_4;
16646
16588
  attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
16647
16589
  }
16648
16590
  elementPolicies.set(elementName, newElementPolicy);
@@ -16651,8 +16593,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
16651
16593
  return this;
16652
16594
  };
16653
16595
  module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.allowDataAttributes = function(attributes) {
16654
- for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$44 = (0,$jscomp.makeIterator)(attributes), $jscomp$key$m1412690177$26$attribute = $jscomp$iter$44.next(); !$jscomp$key$m1412690177$26$attribute.done; $jscomp$key$m1412690177$26$attribute = $jscomp$iter$44.next()) {
16655
- var attribute = $jscomp$key$m1412690177$26$attribute.value;
16596
+ for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$44 = (0,$jscomp.makeIterator)(attributes), $jscomp$key$435282654$26$attribute = $jscomp$iter$44.next(); !$jscomp$key$435282654$26$attribute.done; $jscomp$key$435282654$26$attribute = $jscomp$iter$44.next()) {
16597
+ var attribute = $jscomp$key$435282654$26$attribute.value;
16656
16598
  if (attribute.indexOf("data-") !== 0) {
16657
16599
  throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
16658
16600
  }
@@ -16714,7 +16656,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
16714
16656
  return this;
16715
16657
  };
16716
16658
  module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.build = function() {
16717
- var $jscomp$this$m1412690177$17 = this;
16659
+ var $jscomp$this$435282654$17 = this;
16718
16660
  this.extendSanitizerTableForCss();
16719
16661
  var propertyDiscarders = [];
16720
16662
  this.animationsAllowed || propertyDiscarders.push(function(property) {
@@ -16724,9 +16666,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
16724
16666
  return /^transition(-|$)/.test(property);
16725
16667
  });
16726
16668
  return new module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(this.sanitizerTable, module$exports$safevalues$internals$secrets.secretToken, function(cssText) {
16727
- return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleElement(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$m1412690177$17.resourceUrlPolicy, $jscomp$this$m1412690177$17.animationsAllowed, propertyDiscarders);
16669
+ return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleElement(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$435282654$17.resourceUrlPolicy, $jscomp$this$435282654$17.animationsAllowed, propertyDiscarders);
16728
16670
  }, function(cssText) {
16729
- return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleAttribute(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$m1412690177$17.resourceUrlPolicy, propertyDiscarders);
16671
+ return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleAttribute(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$435282654$17.resourceUrlPolicy, propertyDiscarders);
16730
16672
  }, this.resourceUrlPolicy);
16731
16673
  };
16732
16674
  module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.extendSanitizerTableForCss = function() {
@@ -16976,12 +16918,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
16976
16918
  }
16977
16919
  try {
16978
16920
  module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
16979
- } catch ($jscomp$unused$catch$442189172$0) {
16921
+ } catch ($jscomp$unused$catch$696273141$0) {
16980
16922
  return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
16981
16923
  }
16982
16924
  try {
16983
16925
  module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
16984
- } catch ($jscomp$unused$catch$442189172$1) {
16926
+ } catch ($jscomp$unused$catch$696273141$1) {
16985
16927
  return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
16986
16928
  }
16987
16929
  return !1;
@@ -17057,7 +16999,7 @@ module$exports$safevalues$index.EMPTY_HTML = module$exports$safevalues$internals
17057
16999
  module$exports$safevalues$index.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
17058
17000
  module$exports$safevalues$index.isHtml = module$exports$safevalues$internals$html_impl.isHtml;
17059
17001
  module$exports$safevalues$index.unwrapHtml = module$exports$safevalues$internals$html_impl.unwrapHtml;
17060
- module$exports$safevalues$index.TrustedResourceUrl = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl;
17002
+ module$exports$safevalues$index.TrustedResourceUrl = module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl;
17061
17003
  module$exports$safevalues$index.isResourceUrl = module$contents$safevalues$internals$resource_url_impl_isResourceUrl;
17062
17004
  module$exports$safevalues$index.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
17063
17005
  module$exports$safevalues$index.EMPTY_SCRIPT = module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT;
@@ -17078,26 +17020,26 @@ module$exports$safevalues$index.unwrapUrl = module$contents$safevalues$internals
17078
17020
  module$exports$safevalues$index.reportOnlyHtmlPassthrough = module$contents$safevalues$reporting$reporting_reportOnlyHtmlPassthrough;
17079
17021
  goog.dom.safe = {};
17080
17022
  goog.dom.safe.insertAdjacentHtml = function(node, position, html) {
17081
- node.insertAdjacentHTML(position, module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML(html));
17023
+ node.insertAdjacentHTML(position, module$exports$safevalues$index.unwrapHtml(html));
17082
17024
  };
17083
17025
  goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_ = {MATH:!0, SCRIPT:!0, STYLE:!0, SVG:!0};
17084
17026
  goog.dom.safe.setInnerHtml = function(elem, html) {
17085
17027
  if (module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && elem.tagName && goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[elem.tagName.toUpperCase()]) {
17086
17028
  throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of " + elem.tagName + ".");
17087
17029
  }
17088
- elem.innerHTML = module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML(html);
17030
+ elem.innerHTML = module$exports$safevalues$index.unwrapHtml(html);
17089
17031
  };
17090
17032
  goog.dom.safe.setInnerHtmlFromConstant = function(element, constHtml) {
17091
17033
  goog.dom.safe.setInnerHtml(element, module$contents$safevalues$restricted$reviewed_htmlSafeByReview(goog.string.Const.unwrap(constHtml), {justification:"Constant HTML to be immediatelly used."}));
17092
17034
  };
17093
17035
  goog.dom.safe.setOuterHtml = function(elem, html) {
17094
- elem.outerHTML = module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML(html);
17036
+ elem.outerHTML = module$exports$safevalues$index.unwrapHtml(html);
17095
17037
  };
17096
17038
  goog.dom.safe.setFormElementAction = function(form, url) {
17097
17039
  module$contents$goog$asserts$dom_assertIsHtmlFormElement(form).action = goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
17098
17040
  };
17099
17041
  goog.dom.safe.documentWrite = function(doc, html) {
17100
- doc.write(module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML(html));
17042
+ doc.write(module$exports$safevalues$index.unwrapHtml(html));
17101
17043
  };
17102
17044
  goog.dom.safe.setAnchorHref = function(anchor, url) {
17103
17045
  module$contents$goog$asserts$dom_assertIsHtmlAnchorElement(anchor);
@@ -17105,24 +17047,24 @@ goog.dom.safe.setAnchorHref = function(anchor, url) {
17105
17047
  };
17106
17048
  goog.dom.safe.setIframeSrc = function(iframe, url) {
17107
17049
  module$contents$goog$asserts$dom_assertIsHtmlIFrameElement(iframe);
17108
- iframe.src = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(url);
17050
+ iframe.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url).toString();
17109
17051
  };
17110
17052
  goog.dom.safe.setLinkHrefAndRel = function(link, url, rel) {
17111
17053
  module$contents$goog$asserts$dom_assertIsHtmlLinkElement(link);
17112
17054
  link.rel = rel;
17113
17055
  if (goog.string.internal.caseInsensitiveContains(rel, "stylesheet")) {
17114
- goog.asserts.assert(url instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl, 'URL must be TrustedResourceUrl because "rel" contains "stylesheet"');
17115
- link.href = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(url);
17056
+ goog.asserts.assert(url instanceof module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl, 'URL must be TrustedResourceUrl because "rel" contains "stylesheet"');
17057
+ link.href = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url).toString();
17116
17058
  var nonce = goog.dom.safe.getStyleNonce(link.ownerDocument && link.ownerDocument.defaultView);
17117
17059
  nonce && link.setAttribute("nonce", nonce);
17118
17060
  } else {
17119
- link.href = url instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl ? module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(url) : goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
17061
+ link.href = url instanceof module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl ? module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url).toString() : goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
17120
17062
  }
17121
17063
  };
17122
17064
  goog.dom.safe.setScriptSrc = function(script, url) {
17123
17065
  module$contents$goog$asserts$dom_assertIsHtmlScriptElement(script);
17124
17066
  goog.dom.safe.setNonceForScriptElement_(script);
17125
- script.src = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrapTrustedScriptURL(url);
17067
+ script.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url);
17126
17068
  };
17127
17069
  goog.dom.safe.setNonceForScriptElement_ = function(script) {
17128
17070
  var nonce = goog.dom.safe.getScriptNonce(script.ownerDocument && script.ownerDocument.defaultView);
@@ -17147,7 +17089,7 @@ goog.dom.safe.parseFromStringHtml = function(parser, html) {
17147
17089
  return goog.dom.safe.parseFromString(parser, html, "text/html");
17148
17090
  };
17149
17091
  goog.dom.safe.parseFromString = function(parser, content, type) {
17150
- return parser.parseFromString(module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML(content), type);
17092
+ return parser.parseFromString(module$exports$safevalues$index.unwrapHtml(content), type);
17151
17093
  };
17152
17094
  goog.dom.safe.createImageFromBlob = function(blob) {
17153
17095
  if (!/^image\/.*/g.test(blob.type)) {
@@ -19100,7 +19042,7 @@ safevalues.EMPTY_HTML = module$exports$safevalues$index.EMPTY_HTML;
19100
19042
  safevalues.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
19101
19043
  safevalues.isHtml = module$exports$safevalues$index.isHtml;
19102
19044
  safevalues.unwrapHtml = module$exports$safevalues$index.unwrapHtml;
19103
- safevalues.TrustedResourceUrl = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl;
19045
+ safevalues.TrustedResourceUrl = module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl;
19104
19046
  safevalues.isResourceUrl = module$contents$safevalues$internals$resource_url_impl_isResourceUrl;
19105
19047
  safevalues.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
19106
19048
  safevalues.EMPTY_SCRIPT = module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT;
@@ -19587,7 +19529,7 @@ goog.net.XhrIo.prototype.send = function(url, opt_method, opt_content, opt_heade
19587
19529
  }), contentIsFormData = goog.global.FormData && content instanceof goog.global.FormData;
19588
19530
  !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);
19589
19531
  for (var $jscomp$iter$46 = (0,$jscomp.makeIterator)(headers), $jscomp$key$m71669834$55$ = $jscomp$iter$46.next(); !$jscomp$key$m71669834$55$.done; $jscomp$key$m71669834$55$ = $jscomp$iter$46.next()) {
19590
- var $jscomp$destructuring$var41 = (0,$jscomp.makeIterator)($jscomp$key$m71669834$55$.value), key$jscomp$1 = $jscomp$destructuring$var41.next().value, value = $jscomp$destructuring$var41.next().value;
19532
+ var $jscomp$destructuring$var45 = (0,$jscomp.makeIterator)($jscomp$key$m71669834$55$.value), key$jscomp$1 = $jscomp$destructuring$var45.next().value, value = $jscomp$destructuring$var45.next().value;
19591
19533
  this.xhr_.setRequestHeader(key$jscomp$1, value);
19592
19534
  }
19593
19535
  this.responseType_ && (this.xhr_.responseType = this.responseType_);
@@ -19829,7 +19771,7 @@ var $jscomp$templatelit$m1153655765$99 = $jscomp.createTemplateTagFirstArg(["htt
19829
19771
  ee.apiclient = {};
19830
19772
  var module$contents$ee$apiclient_apiclient = {};
19831
19773
  ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
19832
- ee.apiclient.API_CLIENT_VERSION = "1.0.0";
19774
+ ee.apiclient.API_CLIENT_VERSION = "1.1.0";
19833
19775
  ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
19834
19776
  ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
19835
19777
  ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
@@ -19961,21 +19903,21 @@ module$contents$ee$apiclient_BatchCall.prototype.withDetectPartialError = functi
19961
19903
  return this;
19962
19904
  };
19963
19905
  module$contents$ee$apiclient_BatchCall.prototype.send = function(parts, getResponse) {
19964
- var $jscomp$this$m1153655765$27 = this, batchUrl = module$contents$ee$apiclient_apiclient.getSafeApiUrl() + "/batch", body = parts.map(function($jscomp$destructuring$var42) {
19965
- var $jscomp$destructuring$var43 = (0,$jscomp.makeIterator)($jscomp$destructuring$var42);
19966
- var id = $jscomp$destructuring$var43.next().value;
19967
- var $jscomp$destructuring$var44 = (0,$jscomp.makeIterator)($jscomp$destructuring$var43.next().value);
19968
- var partBody = $jscomp$destructuring$var44.next().value;
19969
- $jscomp$destructuring$var44.next();
19906
+ var $jscomp$this$m1153655765$27 = this, batchUrl = module$contents$ee$apiclient_apiclient.getSafeApiUrl() + "/batch", body = parts.map(function($jscomp$destructuring$var46) {
19907
+ var $jscomp$destructuring$var47 = (0,$jscomp.makeIterator)($jscomp$destructuring$var46);
19908
+ var id = $jscomp$destructuring$var47.next().value;
19909
+ var $jscomp$destructuring$var48 = (0,$jscomp.makeIterator)($jscomp$destructuring$var47.next().value);
19910
+ var partBody = $jscomp$destructuring$var48.next().value;
19911
+ $jscomp$destructuring$var48.next();
19970
19912
  return "--batch_EARTHENGINE_batch\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nMIME-Version: 1.0\r\nContent-ID: <" + id + ">\r\n\r\n" + partBody + "\r\n";
19971
19913
  }).join("") + "--batch_EARTHENGINE_batch--\r\n", deserializeResponses = function(response) {
19972
19914
  var result = {};
19973
- parts.forEach(function($jscomp$destructuring$var45) {
19974
- var $jscomp$destructuring$var46 = (0,$jscomp.makeIterator)($jscomp$destructuring$var45);
19975
- var id = $jscomp$destructuring$var46.next().value;
19976
- var $jscomp$destructuring$var47 = (0,$jscomp.makeIterator)($jscomp$destructuring$var46.next().value);
19977
- $jscomp$destructuring$var47.next();
19978
- var ctor = $jscomp$destructuring$var47.next().value;
19915
+ parts.forEach(function($jscomp$destructuring$var49) {
19916
+ var $jscomp$destructuring$var50 = (0,$jscomp.makeIterator)($jscomp$destructuring$var49);
19917
+ var id = $jscomp$destructuring$var50.next().value;
19918
+ var $jscomp$destructuring$var51 = (0,$jscomp.makeIterator)($jscomp$destructuring$var50.next().value);
19919
+ $jscomp$destructuring$var51.next();
19920
+ var ctor = $jscomp$destructuring$var51.next().value;
19979
19921
  response[id] != null && (result[id] = module$contents$eeapiclient$domain_object_deserialize(ctor, response[id]));
19980
19922
  });
19981
19923
  return getResponse ? getResponse(result) : result;
@@ -20127,8 +20069,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
20127
20069
  var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
20128
20070
  body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
20129
20071
  method = method || "POST";
20130
- var headers = {"Content-Type":contentType}, version = "1.0.0";
20131
- version === "1.0.0" && (version = "latest");
20072
+ var headers = {"Content-Type":contentType}, version = "1.1.0";
20073
+ version === "1.1.0" && (version = "latest");
20132
20074
  headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
20133
20075
  var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
20134
20076
  if (authToken != null) {
@@ -20262,7 +20204,7 @@ module$contents$ee$apiclient_apiclient.handleAuthResult_ = function(success, err
20262
20204
  };
20263
20205
  module$contents$ee$apiclient_apiclient.makeRequest_ = function(params) {
20264
20206
  for (var request = new goog.Uri.QueryData(), $jscomp$iter$48 = (0,$jscomp.makeIterator)(Object.entries(params)), $jscomp$key$m1153655765$101$ = $jscomp$iter$48.next(); !$jscomp$key$m1153655765$101$.done; $jscomp$key$m1153655765$101$ = $jscomp$iter$48.next()) {
20265
- var $jscomp$destructuring$var49 = (0,$jscomp.makeIterator)($jscomp$key$m1153655765$101$.value), name = $jscomp$destructuring$var49.next().value, item = $jscomp$destructuring$var49.next().value;
20207
+ var $jscomp$destructuring$var53 = (0,$jscomp.makeIterator)($jscomp$key$m1153655765$101$.value), name = $jscomp$destructuring$var53.next().value, item = $jscomp$destructuring$var53.next().value;
20266
20208
  request.set(name, item);
20267
20209
  }
20268
20210
  return request;
@@ -20741,10 +20683,10 @@ ee.rpc_convert.legacyPropertiesToAssetUpdate = function(legacyProperties) {
20741
20683
  typeof value !== "string" && value !== null || properties.title != null || (properties.title = asNull(value) || value);
20742
20684
  extractValue("system:description");
20743
20685
  typeof value !== "string" && value !== null || properties.description != null || (properties.description = asNull(value) || value);
20744
- Object.entries(properties).forEach(function($jscomp$destructuring$var50) {
20745
- var $jscomp$destructuring$var51 = (0,$jscomp.makeIterator)($jscomp$destructuring$var50);
20746
- var key = $jscomp$destructuring$var51.next().value;
20747
- var value = $jscomp$destructuring$var51.next().value;
20686
+ Object.entries(properties).forEach(function($jscomp$destructuring$var54) {
20687
+ var $jscomp$destructuring$var55 = (0,$jscomp.makeIterator)($jscomp$destructuring$var54);
20688
+ var key = $jscomp$destructuring$var55.next().value;
20689
+ var value = $jscomp$destructuring$var55.next().value;
20748
20690
  properties[key] = asNull(value) || value;
20749
20691
  });
20750
20692
  asset.properties = properties;
@@ -21330,7 +21272,7 @@ ee.Serializer.encodeCloudApiPretty = function(obj) {
21330
21272
  return object;
21331
21273
  }
21332
21274
  for (var ret = Array.isArray(object) ? [] : {}, isNode = object instanceof Object.getPrototypeOf(module$exports$eeapiclient$ee_api_client.ValueNode), $jscomp$iter$52 = (0,$jscomp.makeIterator)(Object.entries(isNode ? object.Serializable$values : object)), $jscomp$key$m759255156$28$ = $jscomp$iter$52.next(); !$jscomp$key$m759255156$28$.done; $jscomp$key$m759255156$28$ = $jscomp$iter$52.next()) {
21333
- var $jscomp$destructuring$var53 = (0,$jscomp.makeIterator)($jscomp$key$m759255156$28$.value), key = $jscomp$destructuring$var53.next().value, val = $jscomp$destructuring$var53.next().value;
21275
+ var $jscomp$destructuring$var57 = (0,$jscomp.makeIterator)($jscomp$key$m759255156$28$.value), key = $jscomp$destructuring$var57.next().value, val = $jscomp$destructuring$var57.next().value;
21334
21276
  isNode ? val !== null && (ret[key] = key === "functionDefinitionValue" && val.body != null ? {argumentNames:val.argumentNames, body:walkObject(values[val.body])} : key === "functionInvocationValue" && val.functionReference != null ? {arguments:module$contents$goog$object_map(val.arguments, walkObject), functionReference:walkObject(values[val.functionReference])} : key === "constantValue" ? val === module$exports$eeapiclient$domain_object.NULL_VALUE ?
21335
21277
  null : val : walkObject(val)) : ret[key] = walkObject(val);
21336
21278
  }
@@ -21454,7 +21396,7 @@ ExpressionOptimizer.prototype.optimizeValue = function(value, depth) {
21454
21396
  }
21455
21397
  if (value.dictionaryValue != null) {
21456
21398
  for (var values = {}, constantValues = {}, $jscomp$iter$53 = (0,$jscomp.makeIterator)(Object.entries(value.dictionaryValue.values || {})), $jscomp$key$m759255156$29$ = $jscomp$iter$53.next(); !$jscomp$key$m759255156$29$.done; $jscomp$key$m759255156$29$ = $jscomp$iter$53.next()) {
21457
- var $jscomp$destructuring$var55 = (0,$jscomp.makeIterator)($jscomp$key$m759255156$29$.value), k = $jscomp$destructuring$var55.next().value, v = $jscomp$destructuring$var55.next().value;
21399
+ var $jscomp$destructuring$var59 = (0,$jscomp.makeIterator)($jscomp$key$m759255156$29$.value), k = $jscomp$destructuring$var59.next().value, v = $jscomp$destructuring$var59.next().value;
21458
21400
  values[k] = this.optimizeValue(v, depth + 3);
21459
21401
  constantValues !== null && isConst(values[k]) ? constantValues[k] = serializeConst(values[k].constantValue) : constantValues = null;
21460
21402
  }
@@ -21741,9 +21683,9 @@ ee.rpc_convert_batch.buildRankByOneThingRule_ = function(ruleString) {
21741
21683
  if (matches == null) {
21742
21684
  throw Error("Ranking rule format is invalid. Each rule should be defined by a rule type and a direction (ASC or DESC), separated by a space. Valid rule types are: .geometryType, .minZoomLevel, or a feature property name.");
21743
21685
  }
21744
- var $jscomp$destructuring$var56 = (0,$jscomp.makeIterator)(matches);
21745
- $jscomp$destructuring$var56.next();
21746
- var ruleType = $jscomp$destructuring$var56.next().value, direction = $jscomp$destructuring$var56.next().value;
21686
+ var $jscomp$destructuring$var60 = (0,$jscomp.makeIterator)(matches);
21687
+ $jscomp$destructuring$var60.next();
21688
+ var ruleType = $jscomp$destructuring$var60.next().value, direction = $jscomp$destructuring$var60.next().value;
21747
21689
  switch(direction.toUpperCase()) {
21748
21690
  case "ASC":
21749
21691
  rankByOneThingRule.direction = "ASCENDING";
@@ -22004,8 +21946,8 @@ ee.data.getDownloadId = function(params, opt_callback) {
22004
21946
  }) && (params.bands = params.bands.map(function(band) {
22005
21947
  return {id:band};
22006
21948
  }));
22007
- if (params.bands && params.bands.some(function($jscomp$destructuring$var57) {
22008
- return $jscomp$destructuring$var57.id == null;
21949
+ if (params.bands && params.bands.some(function($jscomp$destructuring$var61) {
21950
+ return $jscomp$destructuring$var61.id == null;
22009
21951
  })) {
22010
21952
  throw Error("Each band dictionary must have an id.");
22011
21953
  }
@@ -24637,7 +24579,7 @@ module$contents$ee$batch_Export.prefixImageFormatOptions_ = function(taskConfig,
24637
24579
  throw Error("Parameter specified at least twice: once in config, and once in config format options.");
24638
24580
  }
24639
24581
  for (var prefix = module$contents$ee$batch_FORMAT_PREFIX_MAP[imageFormat], validOptionKeys = module$contents$ee$batch_FORMAT_OPTIONS_MAP[imageFormat], prefixedOptions = {}, $jscomp$iter$56 = (0,$jscomp.makeIterator)(Object.entries(formatOptions)), $jscomp$key$1827622838$35$ = $jscomp$iter$56.next(); !$jscomp$key$1827622838$35$.done; $jscomp$key$1827622838$35$ = $jscomp$iter$56.next()) {
24640
- var $jscomp$destructuring$var60 = (0,$jscomp.makeIterator)($jscomp$key$1827622838$35$.value), key = $jscomp$destructuring$var60.next().value, value = $jscomp$destructuring$var60.next().value;
24582
+ var $jscomp$destructuring$var64 = (0,$jscomp.makeIterator)($jscomp$key$1827622838$35$.value), key = $jscomp$destructuring$var64.next().value, value = $jscomp$destructuring$var64.next().value;
24641
24583
  if (!module$contents$goog$array_contains(validOptionKeys, key)) {
24642
24584
  var validKeysMsg = validOptionKeys.join(", ");
24643
24585
  throw Error('"' + key + '" is not a valid option, the image format "' + imageFormat + '""may have the following options: ' + (validKeysMsg + '".'));