@google/earthengine 0.1.394 → 0.1.395

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/main.js CHANGED
@@ -6061,9 +6061,9 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
6061
6061
  };
6062
6062
  var module$contents$eeapiclient$domain_object_CopyValueGetter, module$contents$eeapiclient$domain_object_CopyValueSetter, module$contents$eeapiclient$domain_object_CopyConstructor, module$contents$eeapiclient$domain_object_CopyInstanciator;
6063
6063
  function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
6064
- for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$m1892927425$40$key = $jscomp$iter$19.next(), $jscomp$loop$m1892927425$44 = {}; !$jscomp$key$m1892927425$40$key.done; $jscomp$loop$m1892927425$44 =
6065
- {mapMetadata:void 0}, $jscomp$key$m1892927425$40$key = $jscomp$iter$19.next()) {
6066
- var key = $jscomp$key$m1892927425$40$key.value, value = valueGetter(key, source);
6064
+ for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$m192531680$40$key = $jscomp$iter$19.next(), $jscomp$loop$m192531680$44 = {}; !$jscomp$key$m192531680$40$key.done; $jscomp$loop$m192531680$44 =
6065
+ {mapMetadata:void 0}, $jscomp$key$m192531680$40$key = $jscomp$iter$19.next()) {
6066
+ var key = $jscomp$key$m192531680$40$key.value, value = valueGetter(key, source);
6067
6067
  if (null != value) {
6068
6068
  var copy = void 0;
6069
6069
  if (arrays.hasOwnProperty(key)) {
@@ -6074,11 +6074,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
6074
6074
  } else if (objects.hasOwnProperty(key)) {
6075
6075
  copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
6076
6076
  } else if (objectMaps.hasOwnProperty(key)) {
6077
- $jscomp$loop$m1892927425$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m1892927425$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m1892927425$44) {
6077
+ $jscomp$loop$m192531680$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m192531680$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m192531680$44) {
6078
6078
  return function(v) {
6079
- return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m1892927425$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
6079
+ return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
6080
6080
  };
6081
- }($jscomp$loop$m1892927425$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m1892927425$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
6081
+ }($jscomp$loop$m192531680$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
6082
6082
  } else if (Array.isArray(value)) {
6083
6083
  if (metadata.emptyArrayIsUnset && 0 === value.length) {
6084
6084
  continue;
@@ -6093,8 +6093,8 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
6093
6093
  return target;
6094
6094
  }
6095
6095
  function module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, mapMetadata, valueGetter, valueSetter, copyInstanciator) {
6096
- for (var objMap = {}, $jscomp$iter$20 = $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()) {
6097
- var mapKey = $jscomp$key$m1892927425$41$mapKey.value, mapValue = value[mapKey];
6096
+ for (var objMap = {}, $jscomp$iter$20 = $jscomp.makeIterator(Object.keys(value)), $jscomp$key$m192531680$41$mapKey = $jscomp$iter$20.next(); !$jscomp$key$m192531680$41$mapKey.done; $jscomp$key$m192531680$41$mapKey = $jscomp$iter$20.next()) {
6097
+ var mapKey = $jscomp$key$m192531680$41$mapKey.value, mapValue = value[mapKey];
6098
6098
  null != mapValue && (objMap[mapKey] = module$contents$eeapiclient$domain_object_deepCopyValue(mapValue, valueGetter, valueSetter, copyInstanciator, mapMetadata.isValueArray, mapMetadata.isSerializable, mapMetadata.ctor));
6099
6099
  }
6100
6100
  return objMap;
@@ -6124,39 +6124,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
6124
6124
  if (!(module$contents$eeapiclient$domain_object_sameKeys(keys1, metadata2.keys || []) && module$contents$eeapiclient$domain_object_sameKeys(arrays1, arrays2) && module$contents$eeapiclient$domain_object_sameKeys(objects1, objects2) && module$contents$eeapiclient$domain_object_sameKeys(objectMaps1, objectMaps2))) {
6125
6125
  return !1;
6126
6126
  }
6127
- for (var $jscomp$iter$21 = $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()) {
6128
- 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);
6127
+ for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$m192531680$42$key = $jscomp$iter$21.next(), $jscomp$loop$m192531680$45 = {}; !$jscomp$key$m192531680$42$key.done; $jscomp$loop$m192531680$45 = {value2$jscomp$7:void 0, mapMetadata$jscomp$2:void 0}, $jscomp$key$m192531680$42$key = $jscomp$iter$21.next()) {
6128
+ 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);
6129
6129
  if (has1 !== has2) {
6130
6130
  return !1;
6131
6131
  }
6132
6132
  if (has1) {
6133
6133
  var value1 = serializable1.Serializable$get(key);
6134
- $jscomp$loop$m1892927425$45.value2$jscomp$7 = serializable2.Serializable$get(key);
6134
+ $jscomp$loop$m192531680$45.value2$jscomp$7 = serializable2.Serializable$get(key);
6135
6135
  if (arrays1.hasOwnProperty(key)) {
6136
- if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !0, !0)) {
6136
+ if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !0)) {
6137
6137
  return !1;
6138
6138
  }
6139
6139
  } else if (objects1.hasOwnProperty(key)) {
6140
- if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !1, !0)) {
6140
+ if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !0)) {
6141
6141
  return !1;
6142
6142
  }
6143
6143
  } else if (objectMaps1.hasOwnProperty(key)) {
6144
- if ($jscomp$loop$m1892927425$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2.isPropertyArray) {
6145
- if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m1892927425$45) {
6144
+ if ($jscomp$loop$m192531680$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2.isPropertyArray) {
6145
+ if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m192531680$45) {
6146
6146
  return function(v1, i) {
6147
- return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m1892927425$45.value2$jscomp$7[i], $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2);
6147
+ return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$45.value2$jscomp$7[i], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2);
6148
6148
  };
6149
- }($jscomp$loop$m1892927425$45))) {
6149
+ }($jscomp$loop$m192531680$45))) {
6150
6150
  return !1;
6151
6151
  }
6152
- } else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2)) {
6152
+ } else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, $jscomp$loop$m192531680$45.mapMetadata$jscomp$2)) {
6153
6153
  return !1;
6154
6154
  }
6155
6155
  } else if (Array.isArray(value1)) {
6156
- if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !0, !1)) {
6156
+ if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !1)) {
6157
6157
  return !1;
6158
6158
  }
6159
- } else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !1, !1)) {
6159
+ } else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !1)) {
6160
6160
  return !1;
6161
6161
  }
6162
6162
  }
@@ -6178,8 +6178,8 @@ function module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, v
6178
6178
  if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) {
6179
6179
  return !1;
6180
6180
  }
6181
- for (var $jscomp$iter$22 = $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()) {
6182
- var mapKey = $jscomp$key$m1892927425$43$mapKey.value;
6181
+ for (var $jscomp$iter$22 = $jscomp.makeIterator(Object.keys(value1)), $jscomp$key$m192531680$43$mapKey = $jscomp$iter$22.next(); !$jscomp$key$m192531680$43$mapKey.done; $jscomp$key$m192531680$43$mapKey = $jscomp$iter$22.next()) {
6182
+ var mapKey = $jscomp$key$m192531680$43$mapKey.value;
6183
6183
  if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1[mapKey], value2[mapKey], mapMetadata.isValueArray, mapMetadata.isSerializable)) {
6184
6184
  return !1;
6185
6185
  }
@@ -6246,178 +6246,7 @@ var module$contents$safevalues$internals$pure_module = module$contents$safevalue
6246
6246
  function module$contents$safevalues$internals$pure_pure(valueOf) {
6247
6247
  return {valueOf:valueOf}.valueOf();
6248
6248
  }
6249
- ;goog.dom.HtmlElement = function() {
6250
- };
6251
- goog.dom.TagName = function() {
6252
- };
6253
- goog.dom.TagName.cast = function(name, type) {
6254
- return name;
6255
- };
6256
- goog.dom.TagName.prototype.toString = function() {
6257
- };
6258
- goog.dom.TagName.A = "A";
6259
- goog.dom.TagName.ABBR = "ABBR";
6260
- goog.dom.TagName.ACRONYM = "ACRONYM";
6261
- goog.dom.TagName.ADDRESS = "ADDRESS";
6262
- goog.dom.TagName.APPLET = "APPLET";
6263
- goog.dom.TagName.AREA = "AREA";
6264
- goog.dom.TagName.ARTICLE = "ARTICLE";
6265
- goog.dom.TagName.ASIDE = "ASIDE";
6266
- goog.dom.TagName.AUDIO = "AUDIO";
6267
- goog.dom.TagName.B = "B";
6268
- goog.dom.TagName.BASE = "BASE";
6269
- goog.dom.TagName.BASEFONT = "BASEFONT";
6270
- goog.dom.TagName.BDI = "BDI";
6271
- goog.dom.TagName.BDO = "BDO";
6272
- goog.dom.TagName.BIG = "BIG";
6273
- goog.dom.TagName.BLOCKQUOTE = "BLOCKQUOTE";
6274
- goog.dom.TagName.BODY = "BODY";
6275
- goog.dom.TagName.BR = "BR";
6276
- goog.dom.TagName.BUTTON = "BUTTON";
6277
- goog.dom.TagName.CANVAS = "CANVAS";
6278
- goog.dom.TagName.CAPTION = "CAPTION";
6279
- goog.dom.TagName.CENTER = "CENTER";
6280
- goog.dom.TagName.CITE = "CITE";
6281
- goog.dom.TagName.CODE = "CODE";
6282
- goog.dom.TagName.COL = "COL";
6283
- goog.dom.TagName.COLGROUP = "COLGROUP";
6284
- goog.dom.TagName.COMMAND = "COMMAND";
6285
- goog.dom.TagName.DATA = "DATA";
6286
- goog.dom.TagName.DATALIST = "DATALIST";
6287
- goog.dom.TagName.DD = "DD";
6288
- goog.dom.TagName.DEL = "DEL";
6289
- goog.dom.TagName.DETAILS = "DETAILS";
6290
- goog.dom.TagName.DFN = "DFN";
6291
- goog.dom.TagName.DIALOG = "DIALOG";
6292
- goog.dom.TagName.DIR = "DIR";
6293
- goog.dom.TagName.DIV = "DIV";
6294
- goog.dom.TagName.DL = "DL";
6295
- goog.dom.TagName.DT = "DT";
6296
- goog.dom.TagName.EM = "EM";
6297
- goog.dom.TagName.EMBED = "EMBED";
6298
- goog.dom.TagName.FIELDSET = "FIELDSET";
6299
- goog.dom.TagName.FIGCAPTION = "FIGCAPTION";
6300
- goog.dom.TagName.FIGURE = "FIGURE";
6301
- goog.dom.TagName.FONT = "FONT";
6302
- goog.dom.TagName.FOOTER = "FOOTER";
6303
- goog.dom.TagName.FORM = "FORM";
6304
- goog.dom.TagName.FRAME = "FRAME";
6305
- goog.dom.TagName.FRAMESET = "FRAMESET";
6306
- goog.dom.TagName.H1 = "H1";
6307
- goog.dom.TagName.H2 = "H2";
6308
- goog.dom.TagName.H3 = "H3";
6309
- goog.dom.TagName.H4 = "H4";
6310
- goog.dom.TagName.H5 = "H5";
6311
- goog.dom.TagName.H6 = "H6";
6312
- goog.dom.TagName.HEAD = "HEAD";
6313
- goog.dom.TagName.HEADER = "HEADER";
6314
- goog.dom.TagName.HGROUP = "HGROUP";
6315
- goog.dom.TagName.HR = "HR";
6316
- goog.dom.TagName.HTML = "HTML";
6317
- goog.dom.TagName.I = "I";
6318
- goog.dom.TagName.IFRAME = "IFRAME";
6319
- goog.dom.TagName.IMG = "IMG";
6320
- goog.dom.TagName.INPUT = "INPUT";
6321
- goog.dom.TagName.INS = "INS";
6322
- goog.dom.TagName.ISINDEX = "ISINDEX";
6323
- goog.dom.TagName.KBD = "KBD";
6324
- goog.dom.TagName.KEYGEN = "KEYGEN";
6325
- goog.dom.TagName.LABEL = "LABEL";
6326
- goog.dom.TagName.LEGEND = "LEGEND";
6327
- goog.dom.TagName.LI = "LI";
6328
- goog.dom.TagName.LINK = "LINK";
6329
- goog.dom.TagName.MAIN = "MAIN";
6330
- goog.dom.TagName.MAP = "MAP";
6331
- goog.dom.TagName.MARK = "MARK";
6332
- goog.dom.TagName.MATH = "MATH";
6333
- goog.dom.TagName.MENU = "MENU";
6334
- goog.dom.TagName.MENUITEM = "MENUITEM";
6335
- goog.dom.TagName.META = "META";
6336
- goog.dom.TagName.METER = "METER";
6337
- goog.dom.TagName.NAV = "NAV";
6338
- goog.dom.TagName.NOFRAMES = "NOFRAMES";
6339
- goog.dom.TagName.NOSCRIPT = "NOSCRIPT";
6340
- goog.dom.TagName.OBJECT = "OBJECT";
6341
- goog.dom.TagName.OL = "OL";
6342
- goog.dom.TagName.OPTGROUP = "OPTGROUP";
6343
- goog.dom.TagName.OPTION = "OPTION";
6344
- goog.dom.TagName.OUTPUT = "OUTPUT";
6345
- goog.dom.TagName.P = "P";
6346
- goog.dom.TagName.PARAM = "PARAM";
6347
- goog.dom.TagName.PICTURE = "PICTURE";
6348
- goog.dom.TagName.PRE = "PRE";
6349
- goog.dom.TagName.PROGRESS = "PROGRESS";
6350
- goog.dom.TagName.Q = "Q";
6351
- goog.dom.TagName.RP = "RP";
6352
- goog.dom.TagName.RT = "RT";
6353
- goog.dom.TagName.RTC = "RTC";
6354
- goog.dom.TagName.RUBY = "RUBY";
6355
- goog.dom.TagName.S = "S";
6356
- goog.dom.TagName.SAMP = "SAMP";
6357
- goog.dom.TagName.SCRIPT = "SCRIPT";
6358
- goog.dom.TagName.SECTION = "SECTION";
6359
- goog.dom.TagName.SELECT = "SELECT";
6360
- goog.dom.TagName.SMALL = "SMALL";
6361
- goog.dom.TagName.SOURCE = "SOURCE";
6362
- goog.dom.TagName.SPAN = "SPAN";
6363
- goog.dom.TagName.STRIKE = "STRIKE";
6364
- goog.dom.TagName.STRONG = "STRONG";
6365
- goog.dom.TagName.STYLE = "STYLE";
6366
- goog.dom.TagName.SUB = "SUB";
6367
- goog.dom.TagName.SUMMARY = "SUMMARY";
6368
- goog.dom.TagName.SUP = "SUP";
6369
- goog.dom.TagName.SVG = "SVG";
6370
- goog.dom.TagName.TABLE = "TABLE";
6371
- goog.dom.TagName.TBODY = "TBODY";
6372
- goog.dom.TagName.TD = "TD";
6373
- goog.dom.TagName.TEMPLATE = "TEMPLATE";
6374
- goog.dom.TagName.TEXTAREA = "TEXTAREA";
6375
- goog.dom.TagName.TFOOT = "TFOOT";
6376
- goog.dom.TagName.TH = "TH";
6377
- goog.dom.TagName.THEAD = "THEAD";
6378
- goog.dom.TagName.TIME = "TIME";
6379
- goog.dom.TagName.TITLE = "TITLE";
6380
- goog.dom.TagName.TR = "TR";
6381
- goog.dom.TagName.TRACK = "TRACK";
6382
- goog.dom.TagName.TT = "TT";
6383
- goog.dom.TagName.U = "U";
6384
- goog.dom.TagName.UL = "UL";
6385
- goog.dom.TagName.VAR = "VAR";
6386
- goog.dom.TagName.VIDEO = "VIDEO";
6387
- goog.dom.TagName.WBR = "WBR";
6388
- goog.dom.tags = {};
6389
- goog.dom.tags.VOID_TAGS_ = {area:!0, base:!0, br:!0, col:!0, command:!0, embed:!0, hr:!0, img:!0, input:!0, keygen:!0, link:!0, meta:!0, param:!0, source:!0, track:!0, wbr:!0};
6390
- goog.dom.tags.isVoidTag = function(tagName) {
6391
- return !0 === goog.dom.tags.VOID_TAGS_[tagName];
6392
- };
6393
- goog.fs = {};
6394
- goog.fs.url = {};
6395
- goog.fs.url.createObjectUrl = function(obj) {
6396
- return goog.fs.url.getUrlObject_().createObjectURL(obj);
6397
- };
6398
- goog.fs.url.revokeObjectUrl = function(url) {
6399
- goog.fs.url.getUrlObject_().revokeObjectURL(url);
6400
- };
6401
- goog.fs.url.UrlObject_ = function() {
6402
- };
6403
- goog.fs.url.UrlObject_.prototype.createObjectURL = function(arg) {
6404
- };
6405
- goog.fs.url.UrlObject_.prototype.revokeObjectURL = function(s) {
6406
- };
6407
- goog.fs.url.getUrlObject_ = function() {
6408
- var urlObject = goog.fs.url.findUrlObject_();
6409
- if (null != urlObject) {
6410
- return urlObject;
6411
- }
6412
- throw Error("This browser doesn't seem to support blob URLs");
6413
- };
6414
- goog.fs.url.findUrlObject_ = function() {
6415
- return void 0 !== goog.global.URL && void 0 !== goog.global.URL.createObjectURL ? goog.global.URL : void 0 !== goog.global.createObjectURL ? goog.global : null;
6416
- };
6417
- goog.fs.url.browserSupportsObjectUrls = function() {
6418
- return null != goog.fs.url.findUrlObject_();
6419
- };
6420
- goog.html = {};
6249
+ ;goog.html = {};
6421
6250
  goog.html.trustedtypes = {};
6422
6251
  goog.html.trustedtypes.POLICY_NAME = goog.TRUSTED_TYPES_POLICY_NAME ? goog.TRUSTED_TYPES_POLICY_NAME + "#html" : "";
6423
6252
  goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse = function() {
@@ -6521,6 +6350,74 @@ goog.html.TrustedResourceUrl.stringifyParams_ = function(prefix, currentString,
6521
6350
  }
6522
6351
  return currentString;
6523
6352
  };
6353
+ 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"};
6354
+ module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl = goog.html.TrustedResourceUrl;
6355
+ function module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(url) {
6356
+ return (0,goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse)(url);
6357
+ }
6358
+ module$exports$safevalues$internals$resource_url_impl.createResourceUrlInternal = module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal;
6359
+ function module$contents$safevalues$internals$resource_url_impl_isResourceUrl(value) {
6360
+ return value instanceof goog.html.TrustedResourceUrl;
6361
+ }
6362
+ module$exports$safevalues$internals$resource_url_impl.isResourceUrl = module$contents$safevalues$internals$resource_url_impl_isResourceUrl;
6363
+ function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(value) {
6364
+ return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(value);
6365
+ }
6366
+ module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
6367
+ 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"],
6368
+ ["\\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"};
6369
+ function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
6370
+ if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
6371
+ 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 ##############################");
6372
+ }
6373
+ }
6374
+ function module$contents$safevalues$internals$string_literal_checkFrozen(templateObj) {
6375
+ return Object.isFrozen(templateObj) && Object.isFrozen(templateObj.raw);
6376
+ }
6377
+ var module$contents$safevalues$internals$string_literal_TagFn;
6378
+ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn) {
6379
+ return -1 === fn.toString().indexOf("`");
6380
+ }
6381
+ var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
6382
+ return tag($jscomp$templatelit$1274514361$5);
6383
+ }) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
6384
+ return tag($jscomp$templatelit$1274514361$6);
6385
+ }) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
6386
+ return tag($jscomp$templatelit$1274514361$7);
6387
+ }) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
6388
+ return tag($jscomp$templatelit$1274514361$8);
6389
+ }), 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);
6390
+ function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
6391
+ 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)) ?
6392
+ !0 : !1;
6393
+ }
6394
+ ;goog.fs = {};
6395
+ goog.fs.url = {};
6396
+ goog.fs.url.createObjectUrl = function(obj) {
6397
+ return goog.fs.url.getUrlObject_().createObjectURL(obj);
6398
+ };
6399
+ goog.fs.url.revokeObjectUrl = function(url) {
6400
+ goog.fs.url.getUrlObject_().revokeObjectURL(url);
6401
+ };
6402
+ goog.fs.url.UrlObject_ = function() {
6403
+ };
6404
+ goog.fs.url.UrlObject_.prototype.createObjectURL = function(arg) {
6405
+ };
6406
+ goog.fs.url.UrlObject_.prototype.revokeObjectURL = function(s) {
6407
+ };
6408
+ goog.fs.url.getUrlObject_ = function() {
6409
+ var urlObject = goog.fs.url.findUrlObject_();
6410
+ if (null != urlObject) {
6411
+ return urlObject;
6412
+ }
6413
+ throw Error("This browser doesn't seem to support blob URLs");
6414
+ };
6415
+ goog.fs.url.findUrlObject_ = function() {
6416
+ return void 0 !== goog.global.URL && void 0 !== goog.global.URL.createObjectURL ? goog.global.URL : void 0 !== goog.global.createObjectURL ? goog.global : null;
6417
+ };
6418
+ goog.fs.url.browserSupportsObjectUrls = function() {
6419
+ return null != goog.fs.url.findUrlObject_();
6420
+ };
6524
6421
  goog.html.SafeUrl = function(value, token) {
6525
6422
  if (goog.DEBUG && token !== goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_) {
6526
6423
  throw Error("SafeUrl is not meant to be built directly");
@@ -6637,687 +6534,786 @@ goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse = function(url)
6637
6534
  };
6638
6535
  goog.html.SafeUrl.INNOCUOUS_URL = goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.SafeUrl.INNOCUOUS_STRING);
6639
6536
  goog.html.SafeUrl.ABOUT_BLANK = goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank");
6640
- var module$contents$goog$html$SafeStyle_CONSTRUCTOR_TOKEN_PRIVATE = {}, module$contents$goog$html$SafeStyle_SafeStyle = function(value, token) {
6641
- if (goog.DEBUG && token !== module$contents$goog$html$SafeStyle_CONSTRUCTOR_TOKEN_PRIVATE) {
6642
- throw Error("SafeStyle is not meant to be built directly");
6643
- }
6644
- this.privateDoNotAccessOrElseSafeStyleWrappedValue_ = value;
6645
- };
6646
- module$contents$goog$html$SafeStyle_SafeStyle.fromConstant = function(style) {
6647
- var styleString = goog.string.Const.unwrap(style);
6648
- if (0 === styleString.length) {
6649
- return module$contents$goog$html$SafeStyle_SafeStyle.EMPTY;
6650
- }
6651
- (0,goog.asserts.assert)((0,goog.string.internal.endsWith)(styleString, ";"), "Last character of style string is not ';': " + styleString);
6652
- (0,goog.asserts.assert)((0,goog.string.internal.contains)(styleString, ":"), "Style string must contain at least one ':', to specify a \"name: value\" pair: " + styleString);
6653
- return module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(styleString);
6654
- };
6655
- module$contents$goog$html$SafeStyle_SafeStyle.prototype.toString = function() {
6656
- return this.privateDoNotAccessOrElseSafeStyleWrappedValue_.toString();
6657
- };
6658
- module$contents$goog$html$SafeStyle_SafeStyle.unwrap = function(safeStyle) {
6659
- if (safeStyle instanceof module$contents$goog$html$SafeStyle_SafeStyle && safeStyle.constructor === module$contents$goog$html$SafeStyle_SafeStyle) {
6660
- return safeStyle.privateDoNotAccessOrElseSafeStyleWrappedValue_;
6661
- }
6662
- (0,goog.asserts.fail)("expected object of type SafeStyle, got '" + safeStyle + "' of type " + goog.typeOf(safeStyle));
6663
- return "type_error:SafeStyle";
6664
- };
6665
- module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse = function(style) {
6666
- return new module$contents$goog$html$SafeStyle_SafeStyle(style, module$contents$goog$html$SafeStyle_CONSTRUCTOR_TOKEN_PRIVATE);
6667
- };
6668
- module$contents$goog$html$SafeStyle_SafeStyle.create = function(map) {
6669
- var style = "", name;
6670
- for (name in map) {
6671
- if (Object.prototype.hasOwnProperty.call(map, name)) {
6672
- if (!/^[-_a-zA-Z0-9]+$/.test(name)) {
6673
- throw Error("Name allows only [-_a-zA-Z0-9], got: " + name);
6674
- }
6675
- var value = map[name];
6676
- null != value && (value = Array.isArray(value) ? value.map(module$contents$goog$html$SafeStyle_sanitizePropertyValue).join(" ") : module$contents$goog$html$SafeStyle_sanitizePropertyValue(value), style += name + ":" + value + ";");
6677
- }
6678
- }
6679
- return style ? module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(style) : module$contents$goog$html$SafeStyle_SafeStyle.EMPTY;
6537
+ 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"};
6538
+ module$exports$safevalues$internals$url_impl.SafeUrl = goog.html.SafeUrl;
6539
+ function module$contents$safevalues$internals$url_impl_createUrlInternal(url) {
6540
+ return (0,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse)(url);
6541
+ }
6542
+ module$exports$safevalues$internals$url_impl.createUrlInternal = module$contents$safevalues$internals$url_impl_createUrlInternal;
6543
+ module$exports$safevalues$internals$url_impl.ABOUT_BLANK = module$contents$safevalues$internals$url_impl_createUrlInternal("about:blank");
6544
+ module$exports$safevalues$internals$url_impl.INNOCUOUS_URL = module$contents$safevalues$internals$url_impl_createUrlInternal("about:invalid#zClosurez");
6545
+ function module$contents$safevalues$internals$url_impl_isUrl(value) {
6546
+ return value instanceof goog.html.SafeUrl;
6547
+ }
6548
+ module$exports$safevalues$internals$url_impl.isUrl = module$contents$safevalues$internals$url_impl_isUrl;
6549
+ function module$contents$safevalues$internals$url_impl_unwrapUrl(value) {
6550
+ return goog.html.SafeUrl.unwrap(value);
6551
+ }
6552
+ module$exports$safevalues$internals$url_impl.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
6553
+ var module$exports$safevalues$builders$url_builders = {}, module$contents$safevalues$builders$url_builders_module = module$contents$safevalues$builders$url_builders_module || {id:"third_party/javascript/safevalues/builders/url_builders.closure.js"};
6554
+ function module$contents$safevalues$builders$url_builders_isSafeMimeType(mimeType) {
6555
+ var match = mimeType.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i);
6556
+ return 2 === (null == match ? void 0 : match.length) && (module$contents$safevalues$builders$url_builders_isSafeImageMimeType(match[1]) || module$contents$safevalues$builders$url_builders_isSafeVideoMimeType(match[1]) || module$contents$safevalues$builders$url_builders_isSafeAudioMimeType(match[1]) || module$contents$safevalues$builders$url_builders_isSafeFontMimeType(match[1]));
6557
+ }
6558
+ function module$contents$safevalues$builders$url_builders_isSafeImageMimeType(mimeType) {
6559
+ return /^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(mimeType);
6560
+ }
6561
+ function module$contents$safevalues$builders$url_builders_isSafeVideoMimeType(mimeType) {
6562
+ return /^video\/(?:mpeg|mp4|ogg|webm|x-matroska|quicktime|x-ms-wmv)$/i.test(mimeType);
6563
+ }
6564
+ function module$contents$safevalues$builders$url_builders_isSafeAudioMimeType(mimeType) {
6565
+ return /^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(mimeType);
6566
+ }
6567
+ function module$contents$safevalues$builders$url_builders_isSafeFontMimeType(mimeType) {
6568
+ return /^font\/\w+/i.test(mimeType);
6569
+ }
6570
+ module$exports$safevalues$builders$url_builders.Scheme = function() {
6680
6571
  };
6681
- module$contents$goog$html$SafeStyle_SafeStyle.concat = function(var_args) {
6682
- var style = "", addArgument = function(argument) {
6683
- Array.isArray(argument) ? argument.forEach(addArgument) : style += module$contents$goog$html$SafeStyle_SafeStyle.unwrap(argument);
6684
- };
6685
- Array.prototype.forEach.call(arguments, addArgument);
6686
- return style ? module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(style) : module$contents$goog$html$SafeStyle_SafeStyle.EMPTY;
6572
+ var module$contents$safevalues$builders$url_builders_SchemeImpl = function(isValid) {
6573
+ this.isValid = isValid;
6687
6574
  };
6688
- module$contents$goog$html$SafeStyle_SafeStyle.EMPTY = module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse("");
6689
- module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING = "zClosurez";
6690
- function module$contents$goog$html$SafeStyle_sanitizePropertyValue(value) {
6691
- if (value instanceof goog.html.SafeUrl) {
6692
- return 'url("' + goog.html.SafeUrl.unwrap(value).replace(/</g, "%3c").replace(/[\\"]/g, "\\$&") + '")';
6693
- }
6694
- var result = value instanceof goog.string.Const ? goog.string.Const.unwrap(value) : module$contents$goog$html$SafeStyle_sanitizePropertyValueString(String(value));
6695
- if (/[{;}]/.test(result)) {
6696
- throw new module$contents$goog$asserts_AssertionError("Value does not allow [{;}], got: %s.", [result]);
6697
- }
6698
- return result;
6575
+ function module$contents$safevalues$builders$url_builders_isValidScheme(scheme) {
6576
+ return scheme instanceof module$contents$safevalues$builders$url_builders_SchemeImpl;
6699
6577
  }
6700
- function module$contents$goog$html$SafeStyle_sanitizePropertyValueString(value) {
6701
- 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");
6702
- if (module$contents$goog$html$SafeStyle_VALUE_RE.test(valueWithoutFunctions)) {
6703
- if (module$contents$goog$html$SafeStyle_COMMENT_RE.test(value)) {
6704
- return (0,goog.asserts.fail)("String value disallows comments, got: " + value), module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING;
6705
- }
6706
- if (!module$contents$goog$html$SafeStyle_hasBalancedQuotes(value)) {
6707
- return (0,goog.asserts.fail)("String value requires balanced quotes, got: " + value), module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING;
6708
- }
6709
- if (!module$contents$goog$html$SafeStyle_hasBalancedSquareBrackets(value)) {
6710
- return (0,goog.asserts.fail)("String value requires balanced square brackets and one identifier per pair of brackets, got: " + value), module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING;
6578
+ function module$contents$safevalues$builders$url_builders_simpleScheme(scheme) {
6579
+ return new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
6580
+ return url.substr(0, scheme.length + 1).toLowerCase() === scheme + ":";
6581
+ });
6582
+ }
6583
+ module$exports$safevalues$builders$url_builders.SanitizableUrlScheme = {TEL:module$contents$safevalues$builders$url_builders_simpleScheme("tel"), CALLTO:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
6584
+ return /^callto:\+?\d*$/i.test(url);
6585
+ }), SSH:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
6586
+ return 0 === url.indexOf("ssh://");
6587
+ }), RTSP:module$contents$safevalues$builders$url_builders_simpleScheme("rtsp"), DATA:module$contents$safevalues$builders$url_builders_simpleScheme("data"), HTTP:module$contents$safevalues$builders$url_builders_simpleScheme("http"), HTTPS:module$contents$safevalues$builders$url_builders_simpleScheme("https"), EXTENSION:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
6588
+ return 0 === url.indexOf("chrome-extension://") || 0 === url.indexOf("moz-extension://") || 0 === url.indexOf("ms-browser-extension://");
6589
+ }), FTP:module$contents$safevalues$builders$url_builders_simpleScheme("ftp"), RELATIVE:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
6590
+ return /^[^:]*([/?#]|$)/.test(url);
6591
+ }), MAILTO:module$contents$safevalues$builders$url_builders_simpleScheme("mailto"), INTENT:module$contents$safevalues$builders$url_builders_simpleScheme("intent"), MARKET:module$contents$safevalues$builders$url_builders_simpleScheme("market"), ITMS:module$contents$safevalues$builders$url_builders_simpleScheme("itms"), ITMS_APPSS:module$contents$safevalues$builders$url_builders_simpleScheme("itms-appss"),
6592
+ ITMS_SERVICES:module$contents$safevalues$builders$url_builders_simpleScheme("itms-services"), FACEBOOK_MESSENGER:module$contents$safevalues$builders$url_builders_simpleScheme("fb-messenger"), WHATSAPP:module$contents$safevalues$builders$url_builders_simpleScheme("whatsapp"), SIP:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
6593
+ return 0 === url.indexOf("sip:") || 0 === url.indexOf("sips:");
6594
+ }), SMS:module$contents$safevalues$builders$url_builders_simpleScheme("sms"), VND_YOUTUBE:module$contents$safevalues$builders$url_builders_simpleScheme("vnd.youtube")};
6595
+ var module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES = [module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.DATA, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.HTTP, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.HTTPS, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.MAILTO,
6596
+ module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.FTP, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.RELATIVE];
6597
+ function module$contents$safevalues$builders$url_builders_trySanitizeUrl(url, allowedSchemes) {
6598
+ allowedSchemes = void 0 === allowedSchemes ? module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES : allowedSchemes;
6599
+ if (module$contents$safevalues$internals$url_impl_isUrl(url)) {
6600
+ return url;
6601
+ }
6602
+ for (var i = 0; i < allowedSchemes.length; ++i) {
6603
+ var scheme = allowedSchemes[i];
6604
+ if (module$contents$safevalues$builders$url_builders_isValidScheme(scheme) && scheme.isValid(url)) {
6605
+ return module$contents$safevalues$internals$url_impl_createUrlInternal(url);
6711
6606
  }
6712
- } else {
6713
- return (0,goog.asserts.fail)("String value allows only [-+,.\"'%_!#/ a-zA-Z0-9\\[\\]] and simple functions, got: " + value), module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING;
6714
6607
  }
6715
- return module$contents$goog$html$SafeStyle_sanitizeUrl(value);
6716
6608
  }
6717
- function module$contents$goog$html$SafeStyle_hasBalancedQuotes(value) {
6718
- for (var outsideSingle = !0, outsideDouble = !0, i = 0; i < value.length; i++) {
6719
- var c = value.charAt(i);
6720
- "'" == c && outsideDouble ? outsideSingle = !outsideSingle : '"' == c && outsideSingle && (outsideDouble = !outsideDouble);
6609
+ module$exports$safevalues$builders$url_builders.trySanitizeUrl = module$contents$safevalues$builders$url_builders_trySanitizeUrl;
6610
+ function module$contents$safevalues$builders$url_builders_sanitizeUrl(url, allowedSchemes) {
6611
+ allowedSchemes = void 0 === allowedSchemes ? module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES : allowedSchemes;
6612
+ var sanitizedUrl = module$contents$safevalues$builders$url_builders_trySanitizeUrl(url, allowedSchemes);
6613
+ void 0 === sanitizedUrl && module$contents$safevalues$builders$url_builders_triggerCallbacks(url.toString());
6614
+ return sanitizedUrl || module$exports$safevalues$internals$url_impl.INNOCUOUS_URL;
6615
+ }
6616
+ module$exports$safevalues$builders$url_builders.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
6617
+ function module$contents$safevalues$builders$url_builders_objectUrlFromSafeSource(source) {
6618
+ if ("undefined" !== typeof MediaSource && source instanceof MediaSource) {
6619
+ return module$contents$safevalues$internals$url_impl_createUrlInternal(URL.createObjectURL(source));
6721
6620
  }
6722
- return outsideSingle && outsideDouble;
6621
+ if (!module$contents$safevalues$builders$url_builders_isSafeMimeType(source.type)) {
6622
+ var message = "";
6623
+ goog.DEBUG && (message = "unsafe blob MIME type: " + source.type);
6624
+ throw Error(message);
6625
+ }
6626
+ return module$contents$safevalues$internals$url_impl_createUrlInternal(URL.createObjectURL(source));
6723
6627
  }
6724
- function module$contents$goog$html$SafeStyle_hasBalancedSquareBrackets(value) {
6725
- for (var outside = !0, tokenRe = /^[-_a-zA-Z0-9]$/, i = 0; i < value.length; i++) {
6726
- var c = value.charAt(i);
6727
- if ("]" == c) {
6728
- if (outside) {
6729
- return !1;
6730
- }
6731
- outside = !0;
6732
- } else if ("[" == c) {
6733
- if (!outside) {
6734
- return !1;
6735
- }
6736
- outside = !1;
6737
- } else if (!outside && !tokenRe.test(c)) {
6738
- return !1;
6739
- }
6628
+ module$exports$safevalues$builders$url_builders.objectUrlFromSafeSource = module$contents$safevalues$builders$url_builders_objectUrlFromSafeSource;
6629
+ function module$contents$safevalues$builders$url_builders_fromMediaSource(media) {
6630
+ if ("undefined" !== typeof MediaSource && media instanceof MediaSource) {
6631
+ return module$contents$safevalues$internals$url_impl_createUrlInternal(URL.createObjectURL(media));
6740
6632
  }
6741
- return outside;
6633
+ var message = "";
6634
+ goog.DEBUG && (message = "fromMediaSource only accepts MediaSource instances, but was called with " + media + ".");
6635
+ throw Error(message);
6742
6636
  }
6743
- 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 =
6744
- /\/\*/;
6745
- function module$contents$goog$html$SafeStyle_sanitizeUrl(value) {
6746
- return value.replace(module$contents$goog$html$SafeStyle_URL_RE, function(match, before, url, after) {
6747
- var quote = "";
6748
- url = url.replace(/^(['"])(.*)\1$/, function(match, start, inside) {
6749
- quote = start;
6750
- return inside;
6751
- });
6752
- var sanitized = goog.html.SafeUrl.sanitize(url).toString();
6753
- return before + quote + sanitized + quote + after;
6754
- });
6637
+ module$exports$safevalues$builders$url_builders.fromMediaSource = module$contents$safevalues$builders$url_builders_fromMediaSource;
6638
+ function module$contents$safevalues$builders$url_builders_fromTrustedResourceUrl(url) {
6639
+ return module$contents$safevalues$internals$url_impl_createUrlInternal(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url).toString());
6755
6640
  }
6756
- goog.html.SafeStyle = module$contents$goog$html$SafeStyle_SafeStyle;
6757
- var module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE = {}, module$contents$goog$html$SafeStyleSheet_SafeStyleSheet = function(value, token) {
6758
- if (goog.DEBUG && token !== module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE) {
6759
- throw Error("SafeStyleSheet is not meant to be built directly");
6760
- }
6761
- this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_ = value;
6762
- };
6763
- module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.prototype.toString = function() {
6764
- return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_.toString();
6765
- };
6766
- module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createRule = function(selector, style) {
6767
- if ((0,goog.string.internal.contains)(selector, "<")) {
6768
- throw Error("Selector does not allow '<', got: " + selector);
6641
+ module$exports$safevalues$builders$url_builders.fromTrustedResourceUrl = module$contents$safevalues$builders$url_builders_fromTrustedResourceUrl;
6642
+ function module$contents$safevalues$builders$url_builders_isSafeUrlPrefix(prefix, isWholeUrl) {
6643
+ var markerIdx = prefix.search(/[:/?#]/);
6644
+ if (0 > markerIdx) {
6645
+ return isWholeUrl;
6769
6646
  }
6770
- var selectorToCheck = selector.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g, "");
6771
- if (!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=\\^$|]+$/.test(selectorToCheck)) {
6772
- throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=\\^$|] and strings, got: " + selector);
6647
+ if (":" !== prefix.charAt(markerIdx)) {
6648
+ return !0;
6773
6649
  }
6774
- if (!module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_(selectorToCheck)) {
6775
- throw Error("() and [] in selector must be balanced, got: " + selector);
6650
+ var scheme = prefix.substring(0, markerIdx).toLowerCase();
6651
+ return /^[a-z][a-z\d+.-]*$/.test(scheme) && "javascript" !== scheme;
6652
+ }
6653
+ function module$contents$safevalues$builders$url_builders_safeUrl(templateObj) {
6654
+ var rest = $jscomp.getRestArguments.apply(1, arguments);
6655
+ goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, rest.length);
6656
+ var prefix = templateObj[0];
6657
+ if (goog.DEBUG && !module$contents$safevalues$builders$url_builders_isSafeUrlPrefix(prefix, 0 === rest.length)) {
6658
+ throw Error("Trying to interpolate with unsupported prefix: " + prefix);
6776
6659
  }
6777
- style instanceof module$contents$goog$html$SafeStyle_SafeStyle || (style = module$contents$goog$html$SafeStyle_SafeStyle.create(style));
6778
- var styleSheet = selector + "{" + module$contents$goog$html$SafeStyle_SafeStyle.unwrap(style).replace(/</g, "\\3C ") + "}";
6779
- return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(styleSheet);
6780
- };
6781
- module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_ = function(s) {
6782
- for (var brackets = {"(":")", "[":"]"}, expectedBrackets = [], i = 0; i < s.length; i++) {
6783
- var ch = s[i];
6784
- if (brackets[ch]) {
6785
- expectedBrackets.push(brackets[ch]);
6786
- } else if (module$contents$goog$object_contains(brackets, ch) && expectedBrackets.pop() != ch) {
6787
- return !1;
6788
- }
6660
+ for (var urlParts = [prefix], i = 0; i < rest.length; i++) {
6661
+ urlParts.push(String(rest[i])), urlParts.push(templateObj[i + 1]);
6789
6662
  }
6790
- return 0 == expectedBrackets.length;
6791
- };
6792
- module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.concat = function(var_args) {
6793
- var result = "", addArgument = function(argument) {
6794
- Array.isArray(argument) ? argument.forEach(addArgument) : result += module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(argument);
6795
- };
6796
- Array.prototype.forEach.call(arguments, addArgument);
6797
- return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(result);
6798
- };
6799
- module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.fromConstant = function(styleSheet) {
6800
- var styleSheetString = goog.string.Const.unwrap(styleSheet);
6801
- if (0 === styleSheetString.length) {
6802
- return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.EMPTY;
6663
+ return module$contents$safevalues$internals$url_impl_createUrlInternal(urlParts.join(""));
6664
+ }
6665
+ module$exports$safevalues$builders$url_builders.safeUrl = module$contents$safevalues$builders$url_builders_safeUrl;
6666
+ var module$contents$safevalues$builders$url_builders_ASSUME_IMPLEMENTS_URL_API = 2020 <= goog.FEATURESET_YEAR, module$contents$safevalues$builders$url_builders_supportsURLAPI = module$contents$safevalues$internals$pure_pure(function() {
6667
+ return module$contents$safevalues$builders$url_builders_ASSUME_IMPLEMENTS_URL_API ? !0 : "function" === typeof URL;
6668
+ });
6669
+ function module$contents$safevalues$builders$url_builders_legacyExtractScheme(url) {
6670
+ var aTag = document.createElement("a");
6671
+ try {
6672
+ aTag.href = url;
6673
+ } catch (e) {
6674
+ return;
6803
6675
  }
6804
- (0,goog.asserts.assert)(!(0,goog.string.internal.contains)(styleSheetString, "<"), "Forbidden '<' character in style sheet string: " + styleSheetString);
6805
- return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(styleSheetString);
6806
- };
6807
- module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap = function(safeStyleSheet) {
6808
- if (safeStyleSheet instanceof module$contents$goog$html$SafeStyleSheet_SafeStyleSheet && safeStyleSheet.constructor === module$contents$goog$html$SafeStyleSheet_SafeStyleSheet) {
6809
- return safeStyleSheet.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_;
6676
+ var protocol = aTag.protocol;
6677
+ return ":" === protocol || "" === protocol ? "https:" : protocol;
6678
+ }
6679
+ var module$contents$safevalues$builders$url_builders_JavaScriptUrlSanitizationCallback;
6680
+ function module$contents$safevalues$builders$url_builders_extractScheme(url) {
6681
+ if (!module$contents$safevalues$builders$url_builders_supportsURLAPI) {
6682
+ return module$contents$safevalues$builders$url_builders_legacyExtractScheme(url);
6810
6683
  }
6811
- (0,goog.asserts.fail)("expected object of type SafeStyleSheet, got '" + safeStyleSheet + "' of type " + goog.typeOf(safeStyleSheet));
6812
- return "type_error:SafeStyleSheet";
6813
- };
6814
- module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse = function(styleSheet) {
6815
- return new module$contents$goog$html$SafeStyleSheet_SafeStyleSheet(styleSheet, module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE);
6816
- };
6817
- module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.EMPTY = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse("");
6818
- goog.html.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
6819
- var module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE = {}, module$contents$goog$html$SafeHtml_SafeHtml = function(value, token) {
6820
- if (goog.DEBUG && token !== module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE) {
6821
- throw Error("SafeHtml is not meant to be built directly");
6822
- }
6823
- this.privateDoNotAccessOrElseSafeHtmlWrappedValue_ = value;
6824
- };
6825
- module$contents$goog$html$SafeHtml_SafeHtml.prototype.toString = function() {
6826
- return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString();
6827
- };
6828
- module$contents$goog$html$SafeHtml_SafeHtml.unwrap = function(safeHtml) {
6829
- return module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(safeHtml).toString();
6830
- };
6831
- module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML = function(safeHtml) {
6832
- if (safeHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml && safeHtml.constructor === module$contents$goog$html$SafeHtml_SafeHtml) {
6833
- return safeHtml.privateDoNotAccessOrElseSafeHtmlWrappedValue_;
6684
+ try {
6685
+ var parsedUrl = new URL(url);
6686
+ } catch (e) {
6687
+ return "https:";
6834
6688
  }
6835
- goog.asserts.fail("expected object of type SafeHtml, got '" + safeHtml + "' of type " + goog.typeOf(safeHtml));
6836
- return "type_error:SafeHtml";
6837
- };
6838
- module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape = function(textOrHtml) {
6839
- return textOrHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml ? textOrHtml : module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(String(textOrHtml)));
6840
- };
6841
- module$contents$goog$html$SafeHtml_SafeHtml.htmlEscapePreservingNewlines = function(textOrHtml) {
6842
- if (textOrHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml) {
6843
- return textOrHtml;
6689
+ return parsedUrl.protocol;
6690
+ }
6691
+ module$exports$safevalues$builders$url_builders.extractScheme = module$contents$safevalues$builders$url_builders_extractScheme;
6692
+ var module$contents$safevalues$builders$url_builders_ALLOWED_SCHEMES = ["data:", "http:", "https:", "mailto:", "ftp:"];
6693
+ module$exports$safevalues$builders$url_builders.IS_NOT_JAVASCRIPT_URL_PATTERN = /^\s*(?!javascript:)(?:[a-z0-9+.-]+:|[^:\/?#]*(?:[\/?#]|$))/i;
6694
+ function module$contents$safevalues$builders$url_builders_hasJavascriptUrlScheme(url) {
6695
+ return !module$exports$safevalues$builders$url_builders.IS_NOT_JAVASCRIPT_URL_PATTERN.test(url);
6696
+ }
6697
+ function module$contents$safevalues$builders$url_builders_sanitizeJavaScriptUrl(url) {
6698
+ if (module$contents$safevalues$builders$url_builders_hasJavascriptUrlScheme(url)) {
6699
+ module$contents$safevalues$builders$url_builders_triggerCallbacks(url);
6700
+ } else {
6701
+ return url;
6844
6702
  }
6845
- var html = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(textOrHtml);
6846
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html)));
6703
+ }
6704
+ module$exports$safevalues$builders$url_builders.sanitizeJavaScriptUrl = module$contents$safevalues$builders$url_builders_sanitizeJavaScriptUrl;
6705
+ function module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url) {
6706
+ return url instanceof goog.html.SafeUrl ? module$contents$safevalues$internals$url_impl_unwrapUrl(url) : module$contents$safevalues$builders$url_builders_sanitizeJavaScriptUrl(url);
6707
+ }
6708
+ module$exports$safevalues$builders$url_builders.unwrapUrlOrSanitize = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize;
6709
+ function module$contents$safevalues$builders$url_builders_restrictivelySanitizeUrl(url) {
6710
+ var parsedScheme = module$contents$safevalues$builders$url_builders_extractScheme(url);
6711
+ return void 0 !== parsedScheme && -1 !== module$contents$safevalues$builders$url_builders_ALLOWED_SCHEMES.indexOf(parsedScheme.toLowerCase()) ? url : "about:invalid#zClosurez";
6712
+ }
6713
+ module$exports$safevalues$builders$url_builders.restrictivelySanitizeUrl = module$contents$safevalues$builders$url_builders_restrictivelySanitizeUrl;
6714
+ var module$contents$safevalues$builders$url_builders_sanitizationCallbacks = [], module$contents$safevalues$builders$url_builders_triggerCallbacks = function(url) {
6847
6715
  };
6848
- module$contents$goog$html$SafeHtml_SafeHtml.htmlEscapePreservingNewlinesAndSpaces = function(textOrHtml) {
6849
- if (textOrHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml) {
6850
- return textOrHtml;
6851
- }
6852
- var html = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(textOrHtml);
6853
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html)));
6716
+ goog.DEBUG && module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback(function(url) {
6717
+ console.warn("A URL with content '" + url + "' was sanitized away.");
6718
+ });
6719
+ function module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback(callback) {
6720
+ -1 === module$contents$safevalues$builders$url_builders_sanitizationCallbacks.indexOf(callback) && module$contents$safevalues$builders$url_builders_sanitizationCallbacks.push(callback);
6721
+ module$contents$safevalues$builders$url_builders_triggerCallbacks = function(url) {
6722
+ module$contents$safevalues$builders$url_builders_sanitizationCallbacks.forEach(function(callback) {
6723
+ callback(url);
6724
+ });
6725
+ };
6726
+ }
6727
+ module$exports$safevalues$builders$url_builders.addJavaScriptUrlSanitizationCallback = module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback;
6728
+ function module$contents$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback(callback) {
6729
+ var callbackIndex = module$contents$safevalues$builders$url_builders_sanitizationCallbacks.indexOf(callback);
6730
+ -1 !== callbackIndex && module$contents$safevalues$builders$url_builders_sanitizationCallbacks.splice(callbackIndex, 1);
6731
+ }
6732
+ module$exports$safevalues$builders$url_builders.removeJavaScriptUrlSanitizationCallback = module$contents$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback;
6733
+ var module$exports$safevalues$dom$elements$anchor = {}, module$contents$safevalues$dom$elements$anchor_module = module$contents$safevalues$dom$elements$anchor_module || {id:"third_party/javascript/safevalues/dom/elements/anchor.closure.js"};
6734
+ module$exports$safevalues$dom$elements$anchor.setHref = function(anchor, url) {
6735
+ var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
6736
+ void 0 !== sanitizedUrl && (anchor.href = sanitizedUrl);
6854
6737
  };
6855
- module$contents$goog$html$SafeHtml_SafeHtml.create = function(tagName, attributes, content) {
6856
- module$contents$goog$html$SafeHtml_SafeHtml.verifyTagName(String(tagName));
6857
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(tagName), attributes, content);
6738
+ var module$exports$safevalues$dom$elements$area = {}, module$contents$safevalues$dom$elements$area_module = module$contents$safevalues$dom$elements$area_module || {id:"third_party/javascript/safevalues/dom/elements/area.closure.js"};
6739
+ module$exports$safevalues$dom$elements$area.setHref = function(area, url) {
6740
+ var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
6741
+ void 0 !== sanitizedUrl && (area.href = sanitizedUrl);
6858
6742
  };
6859
- module$contents$goog$html$SafeHtml_SafeHtml.verifyTagName = function(tagName) {
6860
- if (!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(tagName)) {
6861
- throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? "Invalid tag name <" + tagName + ">." : "");
6862
- }
6863
- if (tagName.toUpperCase() in module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES) {
6864
- throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? "Tag name <" + tagName + "> is not allowed for SafeHtml." : "");
6865
- }
6743
+ var module$exports$safevalues$dom$elements$base = {}, module$contents$safevalues$dom$elements$base_module = module$contents$safevalues$dom$elements$base_module || {id:"third_party/javascript/safevalues/dom/elements/base.closure.js"};
6744
+ module$exports$safevalues$dom$elements$base.setHref = function(baseEl, url) {
6745
+ baseEl.href = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url);
6866
6746
  };
6867
- module$contents$goog$html$SafeHtml_SafeHtml.createIframe = function(src, srcdoc, attributes, content) {
6868
- src && goog.html.TrustedResourceUrl.unwrap(src);
6869
- var fixedAttributes = {};
6870
- fixedAttributes.src = src || null;
6871
- fixedAttributes.srcdoc = srcdoc && module$contents$goog$html$SafeHtml_SafeHtml.unwrap(srcdoc);
6872
- var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes(fixedAttributes, {sandbox:""}, attributes);
6873
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", combinedAttrs, content);
6747
+ var module$exports$safevalues$dom$elements$button = {}, module$contents$safevalues$dom$elements$button_module = module$contents$safevalues$dom$elements$button_module || {id:"third_party/javascript/safevalues/dom/elements/button.closure.js"};
6748
+ module$exports$safevalues$dom$elements$button.setFormaction = function(button, url) {
6749
+ var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
6750
+ void 0 !== sanitizedUrl && (button.formAction = sanitizedUrl);
6874
6751
  };
6875
- module$contents$goog$html$SafeHtml_SafeHtml.createSandboxIframe = function(src, srcdoc, attributes, content) {
6876
- if (!module$contents$goog$html$SafeHtml_SafeHtml.canUseSandboxIframe()) {
6877
- throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? "The browser does not support sandboxed iframes." : "");
6752
+ 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"};
6753
+ module$exports$safevalues$internals$secrets.secretToken = {};
6754
+ function module$contents$safevalues$internals$secrets_ensureTokenIsValid(token) {
6755
+ if (goog.DEBUG && token !== module$exports$safevalues$internals$secrets.secretToken) {
6756
+ throw Error("Bad secret");
6878
6757
  }
6879
- var fixedAttributes = {};
6880
- fixedAttributes.src = src ? goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(src)) : null;
6881
- fixedAttributes.srcdoc = srcdoc || null;
6882
- fixedAttributes.sandbox = "";
6883
- var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes(fixedAttributes, {}, attributes);
6884
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", combinedAttrs, content);
6758
+ }
6759
+ module$exports$safevalues$internals$secrets.ensureTokenIsValid = module$contents$safevalues$internals$secrets_ensureTokenIsValid;
6760
+ var module$exports$safevalues$internals$attribute_impl = {}, module$contents$safevalues$internals$attribute_impl_module = module$contents$safevalues$internals$attribute_impl_module || {id:"third_party/javascript/safevalues/internals/attribute_impl.closure.js"};
6761
+ module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix = function() {
6885
6762
  };
6886
- module$contents$goog$html$SafeHtml_SafeHtml.canUseSandboxIframe = function() {
6887
- return goog.global.HTMLIFrameElement && "sandbox" in goog.global.HTMLIFrameElement.prototype;
6763
+ var module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl = function(attrPrefix, token) {
6764
+ module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
6765
+ this.privateDoNotAccessOrElseWrappedAttrPrefix = attrPrefix;
6888
6766
  };
6889
- module$contents$goog$html$SafeHtml_SafeHtml.createScriptSrc = function(src, attributes) {
6890
- goog.html.TrustedResourceUrl.unwrap(src);
6891
- var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes({src:src}, {}, attributes);
6892
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script", combinedAttrs);
6767
+ $jscomp.inherits(module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl, module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix);
6768
+ module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl.prototype.toString = function() {
6769
+ return this.privateDoNotAccessOrElseWrappedAttrPrefix;
6893
6770
  };
6894
- module$contents$goog$html$SafeHtml_SafeHtml.createStyle = function(styleSheet, attributes) {
6895
- var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes({type:"text/css"}, {}, attributes), content = "";
6896
- styleSheet = module$contents$goog$array_concat(styleSheet);
6897
- for (var i = 0; i < styleSheet.length; i++) {
6898
- content += module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(styleSheet[i]);
6771
+ function module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal(attrPrefix) {
6772
+ return new module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl(attrPrefix, module$exports$safevalues$internals$secrets.secretToken);
6773
+ }
6774
+ module$exports$safevalues$internals$attribute_impl.createAttributePrefixInternal = module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal;
6775
+ function module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix(value) {
6776
+ if (value instanceof module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl) {
6777
+ return value.privateDoNotAccessOrElseWrappedAttrPrefix;
6899
6778
  }
6900
- var htmlContent = module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(content);
6901
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style", combinedAttrs, htmlContent);
6779
+ var message = "";
6780
+ goog.DEBUG && (message = "Unexpected type when unwrapping SafeAttributePrefix");
6781
+ throw Error(message);
6782
+ }
6783
+ module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
6784
+ goog.dom.HtmlElement = function() {
6902
6785
  };
6903
- module$contents$goog$html$SafeHtml_SafeHtml.createMetaRefresh = function(url, secs) {
6904
- var unwrappedUrl = goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(url));
6905
- (module$contents$goog$labs$userAgent$browser_matchIE() || module$contents$goog$labs$userAgent$browser_matchEdgeHtml()) && goog.string.internal.contains(unwrappedUrl, ";") && (unwrappedUrl = "'" + unwrappedUrl.replace(/'/g, "%27") + "'");
6906
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta", {"http-equiv":"refresh", content:(secs || 0) + "; url=" + unwrappedUrl});
6786
+ goog.dom.TagName = function() {
6907
6787
  };
6908
- module$contents$goog$html$SafeHtml_SafeHtml.join = function(separator, parts) {
6909
- var separatorHtml = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(separator), content = [], addArgument = function(argument) {
6910
- if (Array.isArray(argument)) {
6911
- argument.forEach(addArgument);
6912
- } else {
6913
- var html = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(argument);
6914
- content.push(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html));
6915
- }
6916
- };
6917
- parts.forEach(addArgument);
6918
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(content.join(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(separatorHtml)));
6788
+ goog.dom.TagName.cast = function(name, type) {
6789
+ return name;
6919
6790
  };
6920
- module$contents$goog$html$SafeHtml_SafeHtml.concat = function(var_args) {
6921
- return module$contents$goog$html$SafeHtml_SafeHtml.join(module$contents$goog$html$SafeHtml_SafeHtml.EMPTY, Array.prototype.slice.call(arguments));
6791
+ goog.dom.TagName.prototype.toString = function() {
6922
6792
  };
6923
- module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse = function(html) {
6924
- var noinlineHtml = html, policy = goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse(), trustedHtml = policy ? policy.createHTML(noinlineHtml) : noinlineHtml;
6925
- return new module$contents$goog$html$SafeHtml_SafeHtml(trustedHtml, module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE);
6793
+ goog.dom.TagName.A = "A";
6794
+ goog.dom.TagName.ABBR = "ABBR";
6795
+ goog.dom.TagName.ACRONYM = "ACRONYM";
6796
+ goog.dom.TagName.ADDRESS = "ADDRESS";
6797
+ goog.dom.TagName.APPLET = "APPLET";
6798
+ goog.dom.TagName.AREA = "AREA";
6799
+ goog.dom.TagName.ARTICLE = "ARTICLE";
6800
+ goog.dom.TagName.ASIDE = "ASIDE";
6801
+ goog.dom.TagName.AUDIO = "AUDIO";
6802
+ goog.dom.TagName.B = "B";
6803
+ goog.dom.TagName.BASE = "BASE";
6804
+ goog.dom.TagName.BASEFONT = "BASEFONT";
6805
+ goog.dom.TagName.BDI = "BDI";
6806
+ goog.dom.TagName.BDO = "BDO";
6807
+ goog.dom.TagName.BIG = "BIG";
6808
+ goog.dom.TagName.BLOCKQUOTE = "BLOCKQUOTE";
6809
+ goog.dom.TagName.BODY = "BODY";
6810
+ goog.dom.TagName.BR = "BR";
6811
+ goog.dom.TagName.BUTTON = "BUTTON";
6812
+ goog.dom.TagName.CANVAS = "CANVAS";
6813
+ goog.dom.TagName.CAPTION = "CAPTION";
6814
+ goog.dom.TagName.CENTER = "CENTER";
6815
+ goog.dom.TagName.CITE = "CITE";
6816
+ goog.dom.TagName.CODE = "CODE";
6817
+ goog.dom.TagName.COL = "COL";
6818
+ goog.dom.TagName.COLGROUP = "COLGROUP";
6819
+ goog.dom.TagName.COMMAND = "COMMAND";
6820
+ goog.dom.TagName.DATA = "DATA";
6821
+ goog.dom.TagName.DATALIST = "DATALIST";
6822
+ goog.dom.TagName.DD = "DD";
6823
+ goog.dom.TagName.DEL = "DEL";
6824
+ goog.dom.TagName.DETAILS = "DETAILS";
6825
+ goog.dom.TagName.DFN = "DFN";
6826
+ goog.dom.TagName.DIALOG = "DIALOG";
6827
+ goog.dom.TagName.DIR = "DIR";
6828
+ goog.dom.TagName.DIV = "DIV";
6829
+ goog.dom.TagName.DL = "DL";
6830
+ goog.dom.TagName.DT = "DT";
6831
+ goog.dom.TagName.EM = "EM";
6832
+ goog.dom.TagName.EMBED = "EMBED";
6833
+ goog.dom.TagName.FIELDSET = "FIELDSET";
6834
+ goog.dom.TagName.FIGCAPTION = "FIGCAPTION";
6835
+ goog.dom.TagName.FIGURE = "FIGURE";
6836
+ goog.dom.TagName.FONT = "FONT";
6837
+ goog.dom.TagName.FOOTER = "FOOTER";
6838
+ goog.dom.TagName.FORM = "FORM";
6839
+ goog.dom.TagName.FRAME = "FRAME";
6840
+ goog.dom.TagName.FRAMESET = "FRAMESET";
6841
+ goog.dom.TagName.H1 = "H1";
6842
+ goog.dom.TagName.H2 = "H2";
6843
+ goog.dom.TagName.H3 = "H3";
6844
+ goog.dom.TagName.H4 = "H4";
6845
+ goog.dom.TagName.H5 = "H5";
6846
+ goog.dom.TagName.H6 = "H6";
6847
+ goog.dom.TagName.HEAD = "HEAD";
6848
+ goog.dom.TagName.HEADER = "HEADER";
6849
+ goog.dom.TagName.HGROUP = "HGROUP";
6850
+ goog.dom.TagName.HR = "HR";
6851
+ goog.dom.TagName.HTML = "HTML";
6852
+ goog.dom.TagName.I = "I";
6853
+ goog.dom.TagName.IFRAME = "IFRAME";
6854
+ goog.dom.TagName.IMG = "IMG";
6855
+ goog.dom.TagName.INPUT = "INPUT";
6856
+ goog.dom.TagName.INS = "INS";
6857
+ goog.dom.TagName.ISINDEX = "ISINDEX";
6858
+ goog.dom.TagName.KBD = "KBD";
6859
+ goog.dom.TagName.KEYGEN = "KEYGEN";
6860
+ goog.dom.TagName.LABEL = "LABEL";
6861
+ goog.dom.TagName.LEGEND = "LEGEND";
6862
+ goog.dom.TagName.LI = "LI";
6863
+ goog.dom.TagName.LINK = "LINK";
6864
+ goog.dom.TagName.MAIN = "MAIN";
6865
+ goog.dom.TagName.MAP = "MAP";
6866
+ goog.dom.TagName.MARK = "MARK";
6867
+ goog.dom.TagName.MATH = "MATH";
6868
+ goog.dom.TagName.MENU = "MENU";
6869
+ goog.dom.TagName.MENUITEM = "MENUITEM";
6870
+ goog.dom.TagName.META = "META";
6871
+ goog.dom.TagName.METER = "METER";
6872
+ goog.dom.TagName.NAV = "NAV";
6873
+ goog.dom.TagName.NOFRAMES = "NOFRAMES";
6874
+ goog.dom.TagName.NOSCRIPT = "NOSCRIPT";
6875
+ goog.dom.TagName.OBJECT = "OBJECT";
6876
+ goog.dom.TagName.OL = "OL";
6877
+ goog.dom.TagName.OPTGROUP = "OPTGROUP";
6878
+ goog.dom.TagName.OPTION = "OPTION";
6879
+ goog.dom.TagName.OUTPUT = "OUTPUT";
6880
+ goog.dom.TagName.P = "P";
6881
+ goog.dom.TagName.PARAM = "PARAM";
6882
+ goog.dom.TagName.PICTURE = "PICTURE";
6883
+ goog.dom.TagName.PRE = "PRE";
6884
+ goog.dom.TagName.PROGRESS = "PROGRESS";
6885
+ goog.dom.TagName.Q = "Q";
6886
+ goog.dom.TagName.RP = "RP";
6887
+ goog.dom.TagName.RT = "RT";
6888
+ goog.dom.TagName.RTC = "RTC";
6889
+ goog.dom.TagName.RUBY = "RUBY";
6890
+ goog.dom.TagName.S = "S";
6891
+ goog.dom.TagName.SAMP = "SAMP";
6892
+ goog.dom.TagName.SCRIPT = "SCRIPT";
6893
+ goog.dom.TagName.SECTION = "SECTION";
6894
+ goog.dom.TagName.SELECT = "SELECT";
6895
+ goog.dom.TagName.SMALL = "SMALL";
6896
+ goog.dom.TagName.SOURCE = "SOURCE";
6897
+ goog.dom.TagName.SPAN = "SPAN";
6898
+ goog.dom.TagName.STRIKE = "STRIKE";
6899
+ goog.dom.TagName.STRONG = "STRONG";
6900
+ goog.dom.TagName.STYLE = "STYLE";
6901
+ goog.dom.TagName.SUB = "SUB";
6902
+ goog.dom.TagName.SUMMARY = "SUMMARY";
6903
+ goog.dom.TagName.SUP = "SUP";
6904
+ goog.dom.TagName.SVG = "SVG";
6905
+ goog.dom.TagName.TABLE = "TABLE";
6906
+ goog.dom.TagName.TBODY = "TBODY";
6907
+ goog.dom.TagName.TD = "TD";
6908
+ goog.dom.TagName.TEMPLATE = "TEMPLATE";
6909
+ goog.dom.TagName.TEXTAREA = "TEXTAREA";
6910
+ goog.dom.TagName.TFOOT = "TFOOT";
6911
+ goog.dom.TagName.TH = "TH";
6912
+ goog.dom.TagName.THEAD = "THEAD";
6913
+ goog.dom.TagName.TIME = "TIME";
6914
+ goog.dom.TagName.TITLE = "TITLE";
6915
+ goog.dom.TagName.TR = "TR";
6916
+ goog.dom.TagName.TRACK = "TRACK";
6917
+ goog.dom.TagName.TT = "TT";
6918
+ goog.dom.TagName.U = "U";
6919
+ goog.dom.TagName.UL = "UL";
6920
+ goog.dom.TagName.VAR = "VAR";
6921
+ goog.dom.TagName.VIDEO = "VIDEO";
6922
+ goog.dom.TagName.WBR = "WBR";
6923
+ goog.dom.tags = {};
6924
+ goog.dom.tags.VOID_TAGS_ = {area:!0, base:!0, br:!0, col:!0, command:!0, embed:!0, hr:!0, img:!0, input:!0, keygen:!0, link:!0, meta:!0, param:!0, source:!0, track:!0, wbr:!0};
6925
+ goog.dom.tags.isVoidTag = function(tagName) {
6926
+ return !0 === goog.dom.tags.VOID_TAGS_[tagName];
6926
6927
  };
6927
- module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse = function(tagName, attributes, content) {
6928
- var result = "<" + tagName + module$contents$goog$html$SafeHtml_SafeHtml.stringifyAttributes(tagName, attributes);
6929
- null == content ? content = [] : Array.isArray(content) || (content = [content]);
6930
- if (goog.dom.tags.isVoidTag(tagName.toLowerCase())) {
6931
- goog.asserts.assert(!content.length, "Void tag <" + tagName + "> does not allow content."), result += ">";
6932
- } else {
6933
- var html = module$contents$goog$html$SafeHtml_SafeHtml.concat(content);
6934
- result += ">" + module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html) + "</" + tagName + ">";
6928
+ var module$contents$goog$html$SafeStyle_CONSTRUCTOR_TOKEN_PRIVATE = {}, module$contents$goog$html$SafeStyle_SafeStyle = function(value, token) {
6929
+ if (goog.DEBUG && token !== module$contents$goog$html$SafeStyle_CONSTRUCTOR_TOKEN_PRIVATE) {
6930
+ throw Error("SafeStyle is not meant to be built directly");
6935
6931
  }
6936
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(result);
6932
+ this.privateDoNotAccessOrElseSafeStyleWrappedValue_ = value;
6937
6933
  };
6938
- module$contents$goog$html$SafeHtml_SafeHtml.stringifyAttributes = function(tagName, attributes) {
6939
- var result = "";
6940
- if (attributes) {
6941
- for (var name in attributes) {
6942
- if (Object.prototype.hasOwnProperty.call(attributes, name)) {
6943
- if (!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(name)) {
6944
- throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Invalid attribute name "' + name + '".' : "");
6945
- }
6946
- var value = attributes[name];
6947
- null != value && (result += " " + module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, value));
6948
- }
6949
- }
6934
+ module$contents$goog$html$SafeStyle_SafeStyle.fromConstant = function(style) {
6935
+ var styleString = goog.string.Const.unwrap(style);
6936
+ if (0 === styleString.length) {
6937
+ return module$contents$goog$html$SafeStyle_SafeStyle.EMPTY;
6950
6938
  }
6951
- return result;
6939
+ (0,goog.asserts.assert)((0,goog.string.internal.endsWith)(styleString, ";"), "Last character of style string is not ';': " + styleString);
6940
+ (0,goog.asserts.assert)((0,goog.string.internal.contains)(styleString, ":"), "Style string must contain at least one ':', to specify a \"name: value\" pair: " + styleString);
6941
+ return module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(styleString);
6952
6942
  };
6953
- module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes = function(fixedAttributes, defaultAttributes, attributes) {
6954
- var combinedAttributes = {}, name;
6955
- for (name in fixedAttributes) {
6956
- Object.prototype.hasOwnProperty.call(fixedAttributes, name) && (goog.asserts.assert(name.toLowerCase() == name, "Must be lower case"), combinedAttributes[name] = fixedAttributes[name]);
6957
- }
6958
- for (var name$jscomp$0 in defaultAttributes) {
6959
- Object.prototype.hasOwnProperty.call(defaultAttributes, name$jscomp$0) && (goog.asserts.assert(name$jscomp$0.toLowerCase() == name$jscomp$0, "Must be lower case"), combinedAttributes[name$jscomp$0] = defaultAttributes[name$jscomp$0]);
6960
- }
6961
- if (attributes) {
6962
- for (var name$jscomp$1 in attributes) {
6963
- if (Object.prototype.hasOwnProperty.call(attributes, name$jscomp$1)) {
6964
- var nameLower = name$jscomp$1.toLowerCase();
6965
- if (nameLower in fixedAttributes) {
6966
- throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Cannot override "' + nameLower + '" attribute, got "' + name$jscomp$1 + '" with value "' + attributes[name$jscomp$1] + '"' : "");
6967
- }
6968
- nameLower in defaultAttributes && delete combinedAttributes[nameLower];
6969
- combinedAttributes[name$jscomp$1] = attributes[name$jscomp$1];
6970
- }
6971
- }
6972
- }
6973
- return combinedAttributes;
6943
+ module$contents$goog$html$SafeStyle_SafeStyle.prototype.toString = function() {
6944
+ return this.privateDoNotAccessOrElseSafeStyleWrappedValue_.toString();
6974
6945
  };
6975
- module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES = goog.DEBUG;
6976
- module$contents$goog$html$SafeHtml_SafeHtml.SUPPORT_STYLE_ATTRIBUTE = !0;
6977
- module$contents$goog$html$SafeHtml_SafeHtml.from = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape;
6978
- var module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG = /^[a-zA-Z0-9-]+$/, module$contents$goog$html$SafeHtml_URL_ATTRIBUTES = {action:!0, cite:!0, data:!0, formaction:!0, href:!0, manifest:!0, poster:!0, src:!0}, module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES = module$contents$goog$object_createSet(goog.dom.TagName.APPLET, goog.dom.TagName.BASE, goog.dom.TagName.EMBED, goog.dom.TagName.IFRAME, goog.dom.TagName.LINK, goog.dom.TagName.MATH, goog.dom.TagName.META, goog.dom.TagName.OBJECT,
6979
- goog.dom.TagName.SCRIPT, goog.dom.TagName.STYLE, goog.dom.TagName.SVG, goog.dom.TagName.TEMPLATE);
6980
- function module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, value) {
6981
- if (value instanceof goog.string.Const) {
6982
- value = goog.string.Const.unwrap(value);
6983
- } else if ("style" == name.toLowerCase()) {
6984
- if (module$contents$goog$html$SafeHtml_SafeHtml.SUPPORT_STYLE_ATTRIBUTE) {
6985
- value = module$contents$goog$html$SafeHtml_getStyleValue(value);
6986
- } else {
6987
- throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "style" not supported.' : "");
6988
- }
6989
- } else {
6990
- if (/^on/i.test(name)) {
6991
- throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" requires goog.string.Const value, "' + value + '" given.' : "");
6992
- }
6993
- if (name.toLowerCase() in module$contents$goog$html$SafeHtml_URL_ATTRIBUTES) {
6994
- if (value instanceof goog.html.TrustedResourceUrl) {
6995
- value = goog.html.TrustedResourceUrl.unwrap(value);
6996
- } else if (value instanceof goog.html.SafeUrl) {
6997
- value = goog.html.SafeUrl.unwrap(value);
6998
- } else if ("string" === typeof value) {
6999
- value = goog.html.SafeUrl.sanitize(value).toString();
7000
- } else {
7001
- throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" on tag "' + tagName + '" requires goog.html.SafeUrl, goog.string.Const, or string, value "' + value + '" given.' : "");
7002
- }
7003
- }
7004
- }
7005
- goog.asserts.assert(value instanceof goog.html.SafeUrl || value instanceof goog.html.TrustedResourceUrl || value instanceof module$contents$goog$html$SafeStyle_SafeStyle || value instanceof module$contents$goog$html$SafeHtml_SafeHtml || "string" === typeof value || "number" === typeof value, "String or number value expected, got " + typeof value + " with value: " + value);
7006
- return name + '="' + goog.string.internal.htmlEscape(String(value)) + '"';
7007
- }
7008
- function module$contents$goog$html$SafeHtml_getStyleValue(value) {
7009
- if (!goog.isObject(value)) {
7010
- throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'The "style" attribute requires goog.html.SafeStyle or map of style properties, ' + typeof value + " given: " + value : "");
7011
- }
7012
- value instanceof module$contents$goog$html$SafeStyle_SafeStyle || (value = module$contents$goog$html$SafeStyle_SafeStyle.create(value));
7013
- return module$contents$goog$html$SafeStyle_SafeStyle.unwrap(value);
7014
- }
7015
- module$contents$goog$html$SafeHtml_SafeHtml.DOCTYPE_HTML = function() {
7016
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>");
7017
- }();
7018
- module$contents$goog$html$SafeHtml_SafeHtml.EMPTY = new module$contents$goog$html$SafeHtml_SafeHtml(goog.global.trustedTypes && goog.global.trustedTypes.emptyHTML || "", module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE);
7019
- module$contents$goog$html$SafeHtml_SafeHtml.BR = function() {
7020
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>");
7021
- }();
7022
- goog.html.SafeHtml = module$contents$goog$html$SafeHtml_SafeHtml;
7023
- var module$exports$goog$html$internals = {};
7024
- module$exports$goog$html$internals.createSafeHtml = module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse;
7025
- module$exports$goog$html$internals.createSafeStyle = module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse;
7026
- module$exports$goog$html$internals.createSafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse;
7027
- module$exports$goog$html$internals.createSafeUrl = goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse;
7028
- module$exports$goog$html$internals.createTrustedResourceUrl = goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse;
7029
- 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"};
7030
- module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl = goog.html.TrustedResourceUrl;
7031
- function module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(url) {
7032
- return (0,goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse)(url);
7033
- }
7034
- module$exports$safevalues$internals$resource_url_impl.createResourceUrlInternal = module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal;
7035
- function module$contents$safevalues$internals$resource_url_impl_isResourceUrl(value) {
7036
- return value instanceof goog.html.TrustedResourceUrl;
7037
- }
7038
- module$exports$safevalues$internals$resource_url_impl.isResourceUrl = module$contents$safevalues$internals$resource_url_impl_isResourceUrl;
7039
- function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(value) {
7040
- return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(value);
7041
- }
7042
- module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
7043
- 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"],
7044
- ["\\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"};
7045
- function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
7046
- if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
7047
- 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 ##############################");
7048
- }
7049
- }
7050
- function module$contents$safevalues$internals$string_literal_checkFrozen(templateObj) {
7051
- return Object.isFrozen(templateObj) && Object.isFrozen(templateObj.raw);
7052
- }
7053
- var module$contents$safevalues$internals$string_literal_TagFn;
7054
- function module$contents$safevalues$internals$string_literal_checkTranspiled(fn) {
7055
- return -1 === fn.toString().indexOf("`");
7056
- }
7057
- var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
7058
- return tag($jscomp$templatelit$m425881384$5);
7059
- }) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
7060
- return tag($jscomp$templatelit$m425881384$6);
7061
- }) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
7062
- return tag($jscomp$templatelit$m425881384$7);
7063
- }) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
7064
- return tag($jscomp$templatelit$m425881384$8);
7065
- }), 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);
7066
- function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
7067
- 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)) ?
7068
- !0 : !1;
7069
- }
7070
- ;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"};
7071
- module$exports$safevalues$internals$url_impl.SafeUrl = goog.html.SafeUrl;
7072
- function module$contents$safevalues$internals$url_impl_createUrlInternal(url) {
7073
- return (0,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse)(url);
7074
- }
7075
- module$exports$safevalues$internals$url_impl.createUrlInternal = module$contents$safevalues$internals$url_impl_createUrlInternal;
7076
- module$exports$safevalues$internals$url_impl.ABOUT_BLANK = module$contents$safevalues$internals$url_impl_createUrlInternal("about:blank");
7077
- module$exports$safevalues$internals$url_impl.INNOCUOUS_URL = module$contents$safevalues$internals$url_impl_createUrlInternal("about:invalid#zClosurez");
7078
- function module$contents$safevalues$internals$url_impl_isUrl(value) {
7079
- return value instanceof goog.html.SafeUrl;
7080
- }
7081
- module$exports$safevalues$internals$url_impl.isUrl = module$contents$safevalues$internals$url_impl_isUrl;
7082
- function module$contents$safevalues$internals$url_impl_unwrapUrl(value) {
7083
- return goog.html.SafeUrl.unwrap(value);
7084
- }
7085
- module$exports$safevalues$internals$url_impl.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
7086
- var module$exports$safevalues$builders$url_builders = {}, module$contents$safevalues$builders$url_builders_module = module$contents$safevalues$builders$url_builders_module || {id:"third_party/javascript/safevalues/builders/url_builders.closure.js"};
7087
- function module$contents$safevalues$builders$url_builders_isSafeMimeType(mimeType) {
7088
- var match = mimeType.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i);
7089
- return 2 === (null == match ? void 0 : match.length) && (module$contents$safevalues$builders$url_builders_isSafeImageMimeType(match[1]) || module$contents$safevalues$builders$url_builders_isSafeVideoMimeType(match[1]) || module$contents$safevalues$builders$url_builders_isSafeAudioMimeType(match[1]) || module$contents$safevalues$builders$url_builders_isSafeFontMimeType(match[1]));
7090
- }
7091
- function module$contents$safevalues$builders$url_builders_isSafeImageMimeType(mimeType) {
7092
- return /^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(mimeType);
7093
- }
7094
- function module$contents$safevalues$builders$url_builders_isSafeVideoMimeType(mimeType) {
7095
- return /^video\/(?:mpeg|mp4|ogg|webm|x-matroska|quicktime|x-ms-wmv)$/i.test(mimeType);
7096
- }
7097
- function module$contents$safevalues$builders$url_builders_isSafeAudioMimeType(mimeType) {
7098
- return /^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(mimeType);
7099
- }
7100
- function module$contents$safevalues$builders$url_builders_isSafeFontMimeType(mimeType) {
7101
- return /^font\/\w+/i.test(mimeType);
7102
- }
7103
- module$exports$safevalues$builders$url_builders.Scheme = function() {
6946
+ module$contents$goog$html$SafeStyle_SafeStyle.unwrap = function(safeStyle) {
6947
+ if (safeStyle instanceof module$contents$goog$html$SafeStyle_SafeStyle && safeStyle.constructor === module$contents$goog$html$SafeStyle_SafeStyle) {
6948
+ return safeStyle.privateDoNotAccessOrElseSafeStyleWrappedValue_;
6949
+ }
6950
+ (0,goog.asserts.fail)("expected object of type SafeStyle, got '" + safeStyle + "' of type " + goog.typeOf(safeStyle));
6951
+ return "type_error:SafeStyle";
7104
6952
  };
7105
- var module$contents$safevalues$builders$url_builders_SchemeImpl = function(isValid) {
7106
- this.isValid = isValid;
6953
+ module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse = function(style) {
6954
+ return new module$contents$goog$html$SafeStyle_SafeStyle(style, module$contents$goog$html$SafeStyle_CONSTRUCTOR_TOKEN_PRIVATE);
7107
6955
  };
7108
- function module$contents$safevalues$builders$url_builders_isValidScheme(scheme) {
7109
- return scheme instanceof module$contents$safevalues$builders$url_builders_SchemeImpl;
6956
+ module$contents$goog$html$SafeStyle_SafeStyle.create = function(map) {
6957
+ var style = "", name;
6958
+ for (name in map) {
6959
+ if (Object.prototype.hasOwnProperty.call(map, name)) {
6960
+ if (!/^[-_a-zA-Z0-9]+$/.test(name)) {
6961
+ throw Error("Name allows only [-_a-zA-Z0-9], got: " + name);
6962
+ }
6963
+ var value = map[name];
6964
+ null != value && (value = Array.isArray(value) ? value.map(module$contents$goog$html$SafeStyle_sanitizePropertyValue).join(" ") : module$contents$goog$html$SafeStyle_sanitizePropertyValue(value), style += name + ":" + value + ";");
6965
+ }
6966
+ }
6967
+ return style ? module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(style) : module$contents$goog$html$SafeStyle_SafeStyle.EMPTY;
6968
+ };
6969
+ module$contents$goog$html$SafeStyle_SafeStyle.concat = function(var_args) {
6970
+ var style = "", addArgument = function(argument) {
6971
+ Array.isArray(argument) ? argument.forEach(addArgument) : style += module$contents$goog$html$SafeStyle_SafeStyle.unwrap(argument);
6972
+ };
6973
+ Array.prototype.forEach.call(arguments, addArgument);
6974
+ return style ? module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(style) : module$contents$goog$html$SafeStyle_SafeStyle.EMPTY;
6975
+ };
6976
+ module$contents$goog$html$SafeStyle_SafeStyle.EMPTY = module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse("");
6977
+ module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING = "zClosurez";
6978
+ function module$contents$goog$html$SafeStyle_sanitizePropertyValue(value) {
6979
+ if (value instanceof goog.html.SafeUrl) {
6980
+ return 'url("' + goog.html.SafeUrl.unwrap(value).replace(/</g, "%3c").replace(/[\\"]/g, "\\$&") + '")';
6981
+ }
6982
+ var result = value instanceof goog.string.Const ? goog.string.Const.unwrap(value) : module$contents$goog$html$SafeStyle_sanitizePropertyValueString(String(value));
6983
+ if (/[{;}]/.test(result)) {
6984
+ throw new module$contents$goog$asserts_AssertionError("Value does not allow [{;}], got: %s.", [result]);
6985
+ }
6986
+ return result;
7110
6987
  }
7111
- function module$contents$safevalues$builders$url_builders_simpleScheme(scheme) {
7112
- return new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
7113
- return url.substr(0, scheme.length + 1).toLowerCase() === scheme + ":";
7114
- });
6988
+ function module$contents$goog$html$SafeStyle_sanitizePropertyValueString(value) {
6989
+ 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");
6990
+ if (module$contents$goog$html$SafeStyle_VALUE_RE.test(valueWithoutFunctions)) {
6991
+ if (module$contents$goog$html$SafeStyle_COMMENT_RE.test(value)) {
6992
+ return (0,goog.asserts.fail)("String value disallows comments, got: " + value), module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING;
6993
+ }
6994
+ if (!module$contents$goog$html$SafeStyle_hasBalancedQuotes(value)) {
6995
+ return (0,goog.asserts.fail)("String value requires balanced quotes, got: " + value), module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING;
6996
+ }
6997
+ if (!module$contents$goog$html$SafeStyle_hasBalancedSquareBrackets(value)) {
6998
+ return (0,goog.asserts.fail)("String value requires balanced square brackets and one identifier per pair of brackets, got: " + value), module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING;
6999
+ }
7000
+ } else {
7001
+ return (0,goog.asserts.fail)("String value allows only [-+,.\"'%_!#/ a-zA-Z0-9\\[\\]] and simple functions, got: " + value), module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING;
7002
+ }
7003
+ return module$contents$goog$html$SafeStyle_sanitizeUrl(value);
7115
7004
  }
7116
- module$exports$safevalues$builders$url_builders.SanitizableUrlScheme = {TEL:module$contents$safevalues$builders$url_builders_simpleScheme("tel"), CALLTO:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
7117
- return /^callto:\+?\d*$/i.test(url);
7118
- }), SSH:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
7119
- return 0 === url.indexOf("ssh://");
7120
- }), RTSP:module$contents$safevalues$builders$url_builders_simpleScheme("rtsp"), DATA:module$contents$safevalues$builders$url_builders_simpleScheme("data"), HTTP:module$contents$safevalues$builders$url_builders_simpleScheme("http"), HTTPS:module$contents$safevalues$builders$url_builders_simpleScheme("https"), EXTENSION:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
7121
- return 0 === url.indexOf("chrome-extension://") || 0 === url.indexOf("moz-extension://") || 0 === url.indexOf("ms-browser-extension://");
7122
- }), FTP:module$contents$safevalues$builders$url_builders_simpleScheme("ftp"), RELATIVE:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
7123
- return /^[^:]*([/?#]|$)/.test(url);
7124
- }), MAILTO:module$contents$safevalues$builders$url_builders_simpleScheme("mailto"), INTENT:module$contents$safevalues$builders$url_builders_simpleScheme("intent"), MARKET:module$contents$safevalues$builders$url_builders_simpleScheme("market"), ITMS:module$contents$safevalues$builders$url_builders_simpleScheme("itms"), ITMS_APPSS:module$contents$safevalues$builders$url_builders_simpleScheme("itms-appss"),
7125
- ITMS_SERVICES:module$contents$safevalues$builders$url_builders_simpleScheme("itms-services"), FACEBOOK_MESSENGER:module$contents$safevalues$builders$url_builders_simpleScheme("fb-messenger"), WHATSAPP:module$contents$safevalues$builders$url_builders_simpleScheme("whatsapp"), SIP:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
7126
- return 0 === url.indexOf("sip:") || 0 === url.indexOf("sips:");
7127
- }), SMS:module$contents$safevalues$builders$url_builders_simpleScheme("sms"), VND_YOUTUBE:module$contents$safevalues$builders$url_builders_simpleScheme("vnd.youtube")};
7128
- var module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES = [module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.DATA, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.HTTP, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.HTTPS, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.MAILTO,
7129
- module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.FTP, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.RELATIVE];
7130
- function module$contents$safevalues$builders$url_builders_trySanitizeUrl(url, allowedSchemes) {
7131
- allowedSchemes = void 0 === allowedSchemes ? module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES : allowedSchemes;
7132
- if (module$contents$safevalues$internals$url_impl_isUrl(url)) {
7133
- return url;
7005
+ function module$contents$goog$html$SafeStyle_hasBalancedQuotes(value) {
7006
+ for (var outsideSingle = !0, outsideDouble = !0, i = 0; i < value.length; i++) {
7007
+ var c = value.charAt(i);
7008
+ "'" == c && outsideDouble ? outsideSingle = !outsideSingle : '"' == c && outsideSingle && (outsideDouble = !outsideDouble);
7134
7009
  }
7135
- for (var i = 0; i < allowedSchemes.length; ++i) {
7136
- var scheme = allowedSchemes[i];
7137
- if (module$contents$safevalues$builders$url_builders_isValidScheme(scheme) && scheme.isValid(url)) {
7138
- return module$contents$safevalues$internals$url_impl_createUrlInternal(url);
7010
+ return outsideSingle && outsideDouble;
7011
+ }
7012
+ function module$contents$goog$html$SafeStyle_hasBalancedSquareBrackets(value) {
7013
+ for (var outside = !0, tokenRe = /^[-_a-zA-Z0-9]$/, i = 0; i < value.length; i++) {
7014
+ var c = value.charAt(i);
7015
+ if ("]" == c) {
7016
+ if (outside) {
7017
+ return !1;
7018
+ }
7019
+ outside = !0;
7020
+ } else if ("[" == c) {
7021
+ if (!outside) {
7022
+ return !1;
7023
+ }
7024
+ outside = !1;
7025
+ } else if (!outside && !tokenRe.test(c)) {
7026
+ return !1;
7139
7027
  }
7140
7028
  }
7029
+ return outside;
7141
7030
  }
7142
- module$exports$safevalues$builders$url_builders.trySanitizeUrl = module$contents$safevalues$builders$url_builders_trySanitizeUrl;
7143
- function module$contents$safevalues$builders$url_builders_sanitizeUrl(url, allowedSchemes) {
7144
- allowedSchemes = void 0 === allowedSchemes ? module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES : allowedSchemes;
7145
- var sanitizedUrl = module$contents$safevalues$builders$url_builders_trySanitizeUrl(url, allowedSchemes);
7146
- void 0 === sanitizedUrl && module$contents$safevalues$builders$url_builders_triggerCallbacks(url.toString());
7147
- return sanitizedUrl || module$exports$safevalues$internals$url_impl.INNOCUOUS_URL;
7031
+ 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 =
7032
+ /\/\*/;
7033
+ function module$contents$goog$html$SafeStyle_sanitizeUrl(value) {
7034
+ return value.replace(module$contents$goog$html$SafeStyle_URL_RE, function(match, before, url, after) {
7035
+ var quote = "";
7036
+ url = url.replace(/^(['"])(.*)\1$/, function(match, start, inside) {
7037
+ quote = start;
7038
+ return inside;
7039
+ });
7040
+ var sanitized = goog.html.SafeUrl.sanitize(url).toString();
7041
+ return before + quote + sanitized + quote + after;
7042
+ });
7148
7043
  }
7149
- module$exports$safevalues$builders$url_builders.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
7150
- function module$contents$safevalues$builders$url_builders_objectUrlFromSafeSource(source) {
7151
- if ("undefined" !== typeof MediaSource && source instanceof MediaSource) {
7152
- return module$contents$safevalues$internals$url_impl_createUrlInternal(URL.createObjectURL(source));
7044
+ goog.html.SafeStyle = module$contents$goog$html$SafeStyle_SafeStyle;
7045
+ var module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE = {}, module$contents$goog$html$SafeStyleSheet_SafeStyleSheet = function(value, token) {
7046
+ if (goog.DEBUG && token !== module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE) {
7047
+ throw Error("SafeStyleSheet is not meant to be built directly");
7153
7048
  }
7154
- if (!module$contents$safevalues$builders$url_builders_isSafeMimeType(source.type)) {
7155
- var message = "";
7156
- goog.DEBUG && (message = "unsafe blob MIME type: " + source.type);
7157
- throw Error(message);
7049
+ this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_ = value;
7050
+ };
7051
+ module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.prototype.toString = function() {
7052
+ return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_.toString();
7053
+ };
7054
+ module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createRule = function(selector, style) {
7055
+ if ((0,goog.string.internal.contains)(selector, "<")) {
7056
+ throw Error("Selector does not allow '<', got: " + selector);
7158
7057
  }
7159
- return module$contents$safevalues$internals$url_impl_createUrlInternal(URL.createObjectURL(source));
7160
- }
7161
- module$exports$safevalues$builders$url_builders.objectUrlFromSafeSource = module$contents$safevalues$builders$url_builders_objectUrlFromSafeSource;
7162
- function module$contents$safevalues$builders$url_builders_fromMediaSource(media) {
7163
- if ("undefined" !== typeof MediaSource && media instanceof MediaSource) {
7164
- return module$contents$safevalues$internals$url_impl_createUrlInternal(URL.createObjectURL(media));
7058
+ var selectorToCheck = selector.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g, "");
7059
+ if (!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=\\^$|]+$/.test(selectorToCheck)) {
7060
+ throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=\\^$|] and strings, got: " + selector);
7165
7061
  }
7166
- var message = "";
7167
- goog.DEBUG && (message = "fromMediaSource only accepts MediaSource instances, but was called with " + media + ".");
7168
- throw Error(message);
7169
- }
7170
- module$exports$safevalues$builders$url_builders.fromMediaSource = module$contents$safevalues$builders$url_builders_fromMediaSource;
7171
- function module$contents$safevalues$builders$url_builders_fromTrustedResourceUrl(url) {
7172
- return module$contents$safevalues$internals$url_impl_createUrlInternal(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url).toString());
7173
- }
7174
- module$exports$safevalues$builders$url_builders.fromTrustedResourceUrl = module$contents$safevalues$builders$url_builders_fromTrustedResourceUrl;
7175
- function module$contents$safevalues$builders$url_builders_isSafeUrlPrefix(prefix, isWholeUrl) {
7176
- var markerIdx = prefix.search(/[:/?#]/);
7177
- if (0 > markerIdx) {
7178
- return isWholeUrl;
7062
+ if (!module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_(selectorToCheck)) {
7063
+ throw Error("() and [] in selector must be balanced, got: " + selector);
7179
7064
  }
7180
- if (":" !== prefix.charAt(markerIdx)) {
7181
- return !0;
7065
+ style instanceof module$contents$goog$html$SafeStyle_SafeStyle || (style = module$contents$goog$html$SafeStyle_SafeStyle.create(style));
7066
+ var styleSheet = selector + "{" + module$contents$goog$html$SafeStyle_SafeStyle.unwrap(style).replace(/</g, "\\3C ") + "}";
7067
+ return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(styleSheet);
7068
+ };
7069
+ module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_ = function(s) {
7070
+ for (var brackets = {"(":")", "[":"]"}, expectedBrackets = [], i = 0; i < s.length; i++) {
7071
+ var ch = s[i];
7072
+ if (brackets[ch]) {
7073
+ expectedBrackets.push(brackets[ch]);
7074
+ } else if (module$contents$goog$object_contains(brackets, ch) && expectedBrackets.pop() != ch) {
7075
+ return !1;
7076
+ }
7182
7077
  }
7183
- var scheme = prefix.substring(0, markerIdx).toLowerCase();
7184
- return /^[a-z][a-z\d+.-]*$/.test(scheme) && "javascript" !== scheme;
7185
- }
7186
- function module$contents$safevalues$builders$url_builders_safeUrl(templateObj) {
7187
- var rest = $jscomp.getRestArguments.apply(1, arguments);
7188
- goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, rest.length);
7189
- var prefix = templateObj[0];
7190
- if (goog.DEBUG && !module$contents$safevalues$builders$url_builders_isSafeUrlPrefix(prefix, 0 === rest.length)) {
7191
- throw Error("Trying to interpolate with unsupported prefix: " + prefix);
7078
+ return 0 == expectedBrackets.length;
7079
+ };
7080
+ module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.concat = function(var_args) {
7081
+ var result = "", addArgument = function(argument) {
7082
+ Array.isArray(argument) ? argument.forEach(addArgument) : result += module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(argument);
7083
+ };
7084
+ Array.prototype.forEach.call(arguments, addArgument);
7085
+ return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(result);
7086
+ };
7087
+ module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.fromConstant = function(styleSheet) {
7088
+ var styleSheetString = goog.string.Const.unwrap(styleSheet);
7089
+ if (0 === styleSheetString.length) {
7090
+ return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.EMPTY;
7192
7091
  }
7193
- for (var urlParts = [prefix], i = 0; i < rest.length; i++) {
7194
- urlParts.push(String(rest[i])), urlParts.push(templateObj[i + 1]);
7092
+ (0,goog.asserts.assert)(!(0,goog.string.internal.contains)(styleSheetString, "<"), "Forbidden '<' character in style sheet string: " + styleSheetString);
7093
+ return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(styleSheetString);
7094
+ };
7095
+ module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap = function(safeStyleSheet) {
7096
+ if (safeStyleSheet instanceof module$contents$goog$html$SafeStyleSheet_SafeStyleSheet && safeStyleSheet.constructor === module$contents$goog$html$SafeStyleSheet_SafeStyleSheet) {
7097
+ return safeStyleSheet.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_;
7195
7098
  }
7196
- return module$contents$safevalues$internals$url_impl_createUrlInternal(urlParts.join(""));
7197
- }
7198
- module$exports$safevalues$builders$url_builders.safeUrl = module$contents$safevalues$builders$url_builders_safeUrl;
7199
- var module$contents$safevalues$builders$url_builders_ASSUME_IMPLEMENTS_URL_API = 2020 <= goog.FEATURESET_YEAR, module$contents$safevalues$builders$url_builders_supportsURLAPI = module$contents$safevalues$internals$pure_pure(function() {
7200
- return module$contents$safevalues$builders$url_builders_ASSUME_IMPLEMENTS_URL_API ? !0 : "function" === typeof URL;
7201
- });
7202
- function module$contents$safevalues$builders$url_builders_legacyExtractScheme(url) {
7203
- var aTag = document.createElement("a");
7204
- try {
7205
- aTag.href = url;
7206
- } catch (e) {
7207
- return;
7099
+ (0,goog.asserts.fail)("expected object of type SafeStyleSheet, got '" + safeStyleSheet + "' of type " + goog.typeOf(safeStyleSheet));
7100
+ return "type_error:SafeStyleSheet";
7101
+ };
7102
+ module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse = function(styleSheet) {
7103
+ return new module$contents$goog$html$SafeStyleSheet_SafeStyleSheet(styleSheet, module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE);
7104
+ };
7105
+ module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.EMPTY = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse("");
7106
+ goog.html.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
7107
+ var module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE = {}, module$contents$goog$html$SafeHtml_SafeHtml = function(value, token) {
7108
+ if (goog.DEBUG && token !== module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE) {
7109
+ throw Error("SafeHtml is not meant to be built directly");
7110
+ }
7111
+ this.privateDoNotAccessOrElseSafeHtmlWrappedValue_ = value;
7112
+ };
7113
+ module$contents$goog$html$SafeHtml_SafeHtml.prototype.toString = function() {
7114
+ return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString();
7115
+ };
7116
+ module$contents$goog$html$SafeHtml_SafeHtml.unwrap = function(safeHtml) {
7117
+ return module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(safeHtml).toString();
7118
+ };
7119
+ module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML = function(safeHtml) {
7120
+ if (safeHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml && safeHtml.constructor === module$contents$goog$html$SafeHtml_SafeHtml) {
7121
+ return safeHtml.privateDoNotAccessOrElseSafeHtmlWrappedValue_;
7122
+ }
7123
+ goog.asserts.fail("expected object of type SafeHtml, got '" + safeHtml + "' of type " + goog.typeOf(safeHtml));
7124
+ return "type_error:SafeHtml";
7125
+ };
7126
+ module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape = function(textOrHtml) {
7127
+ return textOrHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml ? textOrHtml : module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(String(textOrHtml)));
7128
+ };
7129
+ module$contents$goog$html$SafeHtml_SafeHtml.htmlEscapePreservingNewlines = function(textOrHtml) {
7130
+ if (textOrHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml) {
7131
+ return textOrHtml;
7208
7132
  }
7209
- var protocol = aTag.protocol;
7210
- return ":" === protocol || "" === protocol ? "https:" : protocol;
7211
- }
7212
- var module$contents$safevalues$builders$url_builders_JavaScriptUrlSanitizationCallback;
7213
- function module$contents$safevalues$builders$url_builders_extractScheme(url) {
7214
- if (!module$contents$safevalues$builders$url_builders_supportsURLAPI) {
7215
- return module$contents$safevalues$builders$url_builders_legacyExtractScheme(url);
7133
+ var html = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(textOrHtml);
7134
+ return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html)));
7135
+ };
7136
+ module$contents$goog$html$SafeHtml_SafeHtml.htmlEscapePreservingNewlinesAndSpaces = function(textOrHtml) {
7137
+ if (textOrHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml) {
7138
+ return textOrHtml;
7216
7139
  }
7217
- try {
7218
- var parsedUrl = new URL(url);
7219
- } catch (e) {
7220
- return "https:";
7140
+ var html = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(textOrHtml);
7141
+ return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html)));
7142
+ };
7143
+ module$contents$goog$html$SafeHtml_SafeHtml.create = function(tagName, attributes, content) {
7144
+ module$contents$goog$html$SafeHtml_SafeHtml.verifyTagName(String(tagName));
7145
+ return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(tagName), attributes, content);
7146
+ };
7147
+ module$contents$goog$html$SafeHtml_SafeHtml.verifyTagName = function(tagName) {
7148
+ if (!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(tagName)) {
7149
+ throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? "Invalid tag name <" + tagName + ">." : "");
7221
7150
  }
7222
- return parsedUrl.protocol;
7223
- }
7224
- module$exports$safevalues$builders$url_builders.extractScheme = module$contents$safevalues$builders$url_builders_extractScheme;
7225
- var module$contents$safevalues$builders$url_builders_ALLOWED_SCHEMES = ["data:", "http:", "https:", "mailto:", "ftp:"];
7226
- module$exports$safevalues$builders$url_builders.IS_NOT_JAVASCRIPT_URL_PATTERN = /^\s*(?!javascript:)(?:[a-z0-9+.-]+:|[^:\/?#]*(?:[\/?#]|$))/i;
7227
- function module$contents$safevalues$builders$url_builders_hasJavascriptUrlScheme(url) {
7228
- return !module$exports$safevalues$builders$url_builders.IS_NOT_JAVASCRIPT_URL_PATTERN.test(url);
7229
- }
7230
- function module$contents$safevalues$builders$url_builders_sanitizeJavaScriptUrl(url) {
7231
- if (module$contents$safevalues$builders$url_builders_hasJavascriptUrlScheme(url)) {
7232
- module$contents$safevalues$builders$url_builders_triggerCallbacks(url);
7233
- } else {
7234
- return url;
7151
+ if (tagName.toUpperCase() in module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES) {
7152
+ throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? "Tag name <" + tagName + "> is not allowed for SafeHtml." : "");
7235
7153
  }
7236
- }
7237
- module$exports$safevalues$builders$url_builders.sanitizeJavaScriptUrl = module$contents$safevalues$builders$url_builders_sanitizeJavaScriptUrl;
7238
- function module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url) {
7239
- return url instanceof goog.html.SafeUrl ? module$contents$safevalues$internals$url_impl_unwrapUrl(url) : module$contents$safevalues$builders$url_builders_sanitizeJavaScriptUrl(url);
7240
- }
7241
- module$exports$safevalues$builders$url_builders.unwrapUrlOrSanitize = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize;
7242
- function module$contents$safevalues$builders$url_builders_restrictivelySanitizeUrl(url) {
7243
- var parsedScheme = module$contents$safevalues$builders$url_builders_extractScheme(url);
7244
- return void 0 !== parsedScheme && -1 !== module$contents$safevalues$builders$url_builders_ALLOWED_SCHEMES.indexOf(parsedScheme.toLowerCase()) ? url : "about:invalid#zClosurez";
7245
- }
7246
- module$exports$safevalues$builders$url_builders.restrictivelySanitizeUrl = module$contents$safevalues$builders$url_builders_restrictivelySanitizeUrl;
7247
- var module$contents$safevalues$builders$url_builders_sanitizationCallbacks = [], module$contents$safevalues$builders$url_builders_triggerCallbacks = function(url) {
7248
7154
  };
7249
- goog.DEBUG && module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback(function(url) {
7250
- console.warn("A URL with content '" + url + "' was sanitized away.");
7251
- });
7252
- function module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback(callback) {
7253
- -1 === module$contents$safevalues$builders$url_builders_sanitizationCallbacks.indexOf(callback) && module$contents$safevalues$builders$url_builders_sanitizationCallbacks.push(callback);
7254
- module$contents$safevalues$builders$url_builders_triggerCallbacks = function(url) {
7255
- module$contents$safevalues$builders$url_builders_sanitizationCallbacks.forEach(function(callback) {
7256
- callback(url);
7257
- });
7258
- };
7259
- }
7260
- module$exports$safevalues$builders$url_builders.addJavaScriptUrlSanitizationCallback = module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback;
7261
- function module$contents$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback(callback) {
7262
- var callbackIndex = module$contents$safevalues$builders$url_builders_sanitizationCallbacks.indexOf(callback);
7263
- -1 !== callbackIndex && module$contents$safevalues$builders$url_builders_sanitizationCallbacks.splice(callbackIndex, 1);
7264
- }
7265
- module$exports$safevalues$builders$url_builders.removeJavaScriptUrlSanitizationCallback = module$contents$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback;
7266
- var module$exports$safevalues$dom$elements$anchor = {}, module$contents$safevalues$dom$elements$anchor_module = module$contents$safevalues$dom$elements$anchor_module || {id:"third_party/javascript/safevalues/dom/elements/anchor.closure.js"};
7267
- module$exports$safevalues$dom$elements$anchor.setHref = function(anchor, url) {
7268
- var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
7269
- void 0 !== sanitizedUrl && (anchor.href = sanitizedUrl);
7155
+ module$contents$goog$html$SafeHtml_SafeHtml.createIframe = function(src, srcdoc, attributes, content) {
7156
+ src && goog.html.TrustedResourceUrl.unwrap(src);
7157
+ var fixedAttributes = {};
7158
+ fixedAttributes.src = src || null;
7159
+ fixedAttributes.srcdoc = srcdoc && module$contents$goog$html$SafeHtml_SafeHtml.unwrap(srcdoc);
7160
+ var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes(fixedAttributes, {sandbox:""}, attributes);
7161
+ return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", combinedAttrs, content);
7270
7162
  };
7271
- var module$exports$safevalues$dom$elements$area = {}, module$contents$safevalues$dom$elements$area_module = module$contents$safevalues$dom$elements$area_module || {id:"third_party/javascript/safevalues/dom/elements/area.closure.js"};
7272
- module$exports$safevalues$dom$elements$area.setHref = function(area, url) {
7273
- var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
7274
- void 0 !== sanitizedUrl && (area.href = sanitizedUrl);
7163
+ module$contents$goog$html$SafeHtml_SafeHtml.createSandboxIframe = function(src, srcdoc, attributes, content) {
7164
+ if (!module$contents$goog$html$SafeHtml_SafeHtml.canUseSandboxIframe()) {
7165
+ throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? "The browser does not support sandboxed iframes." : "");
7166
+ }
7167
+ var fixedAttributes = {};
7168
+ fixedAttributes.src = src ? goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(src)) : null;
7169
+ fixedAttributes.srcdoc = srcdoc || null;
7170
+ fixedAttributes.sandbox = "";
7171
+ var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes(fixedAttributes, {}, attributes);
7172
+ return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", combinedAttrs, content);
7275
7173
  };
7276
- var module$exports$safevalues$dom$elements$base = {}, module$contents$safevalues$dom$elements$base_module = module$contents$safevalues$dom$elements$base_module || {id:"third_party/javascript/safevalues/dom/elements/base.closure.js"};
7277
- module$exports$safevalues$dom$elements$base.setHref = function(baseEl, url) {
7278
- baseEl.href = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url);
7174
+ module$contents$goog$html$SafeHtml_SafeHtml.canUseSandboxIframe = function() {
7175
+ return goog.global.HTMLIFrameElement && "sandbox" in goog.global.HTMLIFrameElement.prototype;
7279
7176
  };
7280
- var module$exports$safevalues$dom$elements$button = {}, module$contents$safevalues$dom$elements$button_module = module$contents$safevalues$dom$elements$button_module || {id:"third_party/javascript/safevalues/dom/elements/button.closure.js"};
7281
- module$exports$safevalues$dom$elements$button.setFormaction = function(button, url) {
7282
- var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
7283
- void 0 !== sanitizedUrl && (button.formAction = sanitizedUrl);
7177
+ module$contents$goog$html$SafeHtml_SafeHtml.createScriptSrc = function(src, attributes) {
7178
+ goog.html.TrustedResourceUrl.unwrap(src);
7179
+ var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes({src:src}, {}, attributes);
7180
+ return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script", combinedAttrs);
7284
7181
  };
7285
- 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"};
7286
- module$exports$safevalues$internals$secrets.secretToken = {};
7287
- function module$contents$safevalues$internals$secrets_ensureTokenIsValid(token) {
7288
- if (goog.DEBUG && token !== module$exports$safevalues$internals$secrets.secretToken) {
7289
- throw Error("Bad secret");
7182
+ module$contents$goog$html$SafeHtml_SafeHtml.createStyle = function(styleSheet, attributes) {
7183
+ var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes({type:"text/css"}, {}, attributes), content = "";
7184
+ styleSheet = module$contents$goog$array_concat(styleSheet);
7185
+ for (var i = 0; i < styleSheet.length; i++) {
7186
+ content += module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(styleSheet[i]);
7290
7187
  }
7291
- }
7292
- module$exports$safevalues$internals$secrets.ensureTokenIsValid = module$contents$safevalues$internals$secrets_ensureTokenIsValid;
7293
- var module$exports$safevalues$internals$attribute_impl = {}, module$contents$safevalues$internals$attribute_impl_module = module$contents$safevalues$internals$attribute_impl_module || {id:"third_party/javascript/safevalues/internals/attribute_impl.closure.js"};
7294
- module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix = function() {
7188
+ var htmlContent = module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(content);
7189
+ return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style", combinedAttrs, htmlContent);
7295
7190
  };
7296
- var module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl = function(attrPrefix, token) {
7297
- module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
7298
- this.privateDoNotAccessOrElseWrappedAttrPrefix = attrPrefix;
7191
+ module$contents$goog$html$SafeHtml_SafeHtml.createMetaRefresh = function(url, secs) {
7192
+ var unwrappedUrl = goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(url));
7193
+ (module$contents$goog$labs$userAgent$browser_matchIE() || module$contents$goog$labs$userAgent$browser_matchEdgeHtml()) && goog.string.internal.contains(unwrappedUrl, ";") && (unwrappedUrl = "'" + unwrappedUrl.replace(/'/g, "%27") + "'");
7194
+ return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta", {"http-equiv":"refresh", content:(secs || 0) + "; url=" + unwrappedUrl});
7299
7195
  };
7300
- $jscomp.inherits(module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl, module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix);
7301
- module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl.prototype.toString = function() {
7302
- return this.privateDoNotAccessOrElseWrappedAttrPrefix;
7196
+ module$contents$goog$html$SafeHtml_SafeHtml.join = function(separator, parts) {
7197
+ var separatorHtml = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(separator), content = [], addArgument = function(argument) {
7198
+ if (Array.isArray(argument)) {
7199
+ argument.forEach(addArgument);
7200
+ } else {
7201
+ var html = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(argument);
7202
+ content.push(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html));
7203
+ }
7204
+ };
7205
+ parts.forEach(addArgument);
7206
+ return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(content.join(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(separatorHtml)));
7303
7207
  };
7304
- function module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal(attrPrefix) {
7305
- return new module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl(attrPrefix, module$exports$safevalues$internals$secrets.secretToken);
7208
+ module$contents$goog$html$SafeHtml_SafeHtml.concat = function(var_args) {
7209
+ return module$contents$goog$html$SafeHtml_SafeHtml.join(module$contents$goog$html$SafeHtml_SafeHtml.EMPTY, Array.prototype.slice.call(arguments));
7210
+ };
7211
+ module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse = function(html) {
7212
+ var noinlineHtml = html, policy = goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse(), trustedHtml = policy ? policy.createHTML(noinlineHtml) : noinlineHtml;
7213
+ return new module$contents$goog$html$SafeHtml_SafeHtml(trustedHtml, module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE);
7214
+ };
7215
+ module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse = function(tagName, attributes, content) {
7216
+ var result = "<" + tagName + module$contents$goog$html$SafeHtml_SafeHtml.stringifyAttributes(tagName, attributes);
7217
+ null == content ? content = [] : Array.isArray(content) || (content = [content]);
7218
+ if (goog.dom.tags.isVoidTag(tagName.toLowerCase())) {
7219
+ goog.asserts.assert(!content.length, "Void tag <" + tagName + "> does not allow content."), result += ">";
7220
+ } else {
7221
+ var html = module$contents$goog$html$SafeHtml_SafeHtml.concat(content);
7222
+ result += ">" + module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html) + "</" + tagName + ">";
7223
+ }
7224
+ return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(result);
7225
+ };
7226
+ module$contents$goog$html$SafeHtml_SafeHtml.stringifyAttributes = function(tagName, attributes) {
7227
+ var result = "";
7228
+ if (attributes) {
7229
+ for (var name in attributes) {
7230
+ if (Object.prototype.hasOwnProperty.call(attributes, name)) {
7231
+ if (!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(name)) {
7232
+ throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Invalid attribute name "' + name + '".' : "");
7233
+ }
7234
+ var value = attributes[name];
7235
+ null != value && (result += " " + module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, value));
7236
+ }
7237
+ }
7238
+ }
7239
+ return result;
7240
+ };
7241
+ module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes = function(fixedAttributes, defaultAttributes, attributes) {
7242
+ var combinedAttributes = {}, name;
7243
+ for (name in fixedAttributes) {
7244
+ Object.prototype.hasOwnProperty.call(fixedAttributes, name) && (goog.asserts.assert(name.toLowerCase() == name, "Must be lower case"), combinedAttributes[name] = fixedAttributes[name]);
7245
+ }
7246
+ for (var name$jscomp$0 in defaultAttributes) {
7247
+ Object.prototype.hasOwnProperty.call(defaultAttributes, name$jscomp$0) && (goog.asserts.assert(name$jscomp$0.toLowerCase() == name$jscomp$0, "Must be lower case"), combinedAttributes[name$jscomp$0] = defaultAttributes[name$jscomp$0]);
7248
+ }
7249
+ if (attributes) {
7250
+ for (var name$jscomp$1 in attributes) {
7251
+ if (Object.prototype.hasOwnProperty.call(attributes, name$jscomp$1)) {
7252
+ var nameLower = name$jscomp$1.toLowerCase();
7253
+ if (nameLower in fixedAttributes) {
7254
+ throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Cannot override "' + nameLower + '" attribute, got "' + name$jscomp$1 + '" with value "' + attributes[name$jscomp$1] + '"' : "");
7255
+ }
7256
+ nameLower in defaultAttributes && delete combinedAttributes[nameLower];
7257
+ combinedAttributes[name$jscomp$1] = attributes[name$jscomp$1];
7258
+ }
7259
+ }
7260
+ }
7261
+ return combinedAttributes;
7262
+ };
7263
+ module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES = goog.DEBUG;
7264
+ module$contents$goog$html$SafeHtml_SafeHtml.SUPPORT_STYLE_ATTRIBUTE = !0;
7265
+ module$contents$goog$html$SafeHtml_SafeHtml.from = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape;
7266
+ var module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG = /^[a-zA-Z0-9-]+$/, module$contents$goog$html$SafeHtml_URL_ATTRIBUTES = {action:!0, cite:!0, data:!0, formaction:!0, href:!0, manifest:!0, poster:!0, src:!0}, module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES = module$contents$goog$object_createSet(goog.dom.TagName.APPLET, goog.dom.TagName.BASE, goog.dom.TagName.EMBED, goog.dom.TagName.IFRAME, goog.dom.TagName.LINK, goog.dom.TagName.MATH, goog.dom.TagName.META, goog.dom.TagName.OBJECT,
7267
+ goog.dom.TagName.SCRIPT, goog.dom.TagName.STYLE, goog.dom.TagName.SVG, goog.dom.TagName.TEMPLATE);
7268
+ function module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, value) {
7269
+ if (value instanceof goog.string.Const) {
7270
+ value = goog.string.Const.unwrap(value);
7271
+ } else if ("style" == name.toLowerCase()) {
7272
+ if (module$contents$goog$html$SafeHtml_SafeHtml.SUPPORT_STYLE_ATTRIBUTE) {
7273
+ value = module$contents$goog$html$SafeHtml_getStyleValue(value);
7274
+ } else {
7275
+ throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "style" not supported.' : "");
7276
+ }
7277
+ } else {
7278
+ if (/^on/i.test(name)) {
7279
+ throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" requires goog.string.Const value, "' + value + '" given.' : "");
7280
+ }
7281
+ if (name.toLowerCase() in module$contents$goog$html$SafeHtml_URL_ATTRIBUTES) {
7282
+ if (value instanceof goog.html.TrustedResourceUrl) {
7283
+ value = goog.html.TrustedResourceUrl.unwrap(value);
7284
+ } else if (value instanceof goog.html.SafeUrl) {
7285
+ value = goog.html.SafeUrl.unwrap(value);
7286
+ } else if ("string" === typeof value) {
7287
+ value = goog.html.SafeUrl.sanitize(value).toString();
7288
+ } else {
7289
+ throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" on tag "' + tagName + '" requires goog.html.SafeUrl, goog.string.Const, or string, value "' + value + '" given.' : "");
7290
+ }
7291
+ }
7292
+ }
7293
+ goog.asserts.assert(value instanceof goog.html.SafeUrl || value instanceof goog.html.TrustedResourceUrl || value instanceof module$contents$goog$html$SafeStyle_SafeStyle || value instanceof module$contents$goog$html$SafeHtml_SafeHtml || "string" === typeof value || "number" === typeof value, "String or number value expected, got " + typeof value + " with value: " + value);
7294
+ return name + '="' + goog.string.internal.htmlEscape(String(value)) + '"';
7306
7295
  }
7307
- module$exports$safevalues$internals$attribute_impl.createAttributePrefixInternal = module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal;
7308
- function module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix(value) {
7309
- if (value instanceof module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl) {
7310
- return value.privateDoNotAccessOrElseWrappedAttrPrefix;
7296
+ function module$contents$goog$html$SafeHtml_getStyleValue(value) {
7297
+ if (!goog.isObject(value)) {
7298
+ throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'The "style" attribute requires goog.html.SafeStyle or map of style properties, ' + typeof value + " given: " + value : "");
7311
7299
  }
7312
- var message = "";
7313
- goog.DEBUG && (message = "Unexpected type when unwrapping SafeAttributePrefix");
7314
- throw Error(message);
7300
+ value instanceof module$contents$goog$html$SafeStyle_SafeStyle || (value = module$contents$goog$html$SafeStyle_SafeStyle.create(value));
7301
+ return module$contents$goog$html$SafeStyle_SafeStyle.unwrap(value);
7315
7302
  }
7316
- module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
7303
+ module$contents$goog$html$SafeHtml_SafeHtml.DOCTYPE_HTML = function() {
7304
+ return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>");
7305
+ }();
7306
+ module$contents$goog$html$SafeHtml_SafeHtml.EMPTY = new module$contents$goog$html$SafeHtml_SafeHtml(goog.global.trustedTypes && goog.global.trustedTypes.emptyHTML || "", module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE);
7307
+ module$contents$goog$html$SafeHtml_SafeHtml.BR = function() {
7308
+ return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>");
7309
+ }();
7310
+ goog.html.SafeHtml = module$contents$goog$html$SafeHtml_SafeHtml;
7311
+ var module$exports$goog$html$safehtml_internals_for_safevalues = {};
7312
+ module$exports$goog$html$safehtml_internals_for_safevalues.createSafeHtml = module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse;
7317
7313
  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"};
7318
7314
  module$exports$safevalues$internals$html_impl.SafeHtml = module$contents$goog$html$SafeHtml_SafeHtml;
7319
7315
  module$exports$safevalues$internals$html_impl.createHtmlInternal = function(html) {
7320
- return (0,module$exports$goog$html$internals.createSafeHtml)(html);
7316
+ return (0,module$exports$goog$html$safehtml_internals_for_safevalues.createSafeHtml)(html);
7321
7317
  };
7322
7318
  module$exports$safevalues$internals$html_impl.EMPTY_HTML = module$contents$goog$html$SafeHtml_SafeHtml.EMPTY;
7323
7319
  module$exports$safevalues$internals$html_impl.isHtml = function(value) {
@@ -7326,10 +7322,12 @@ module$exports$safevalues$internals$html_impl.isHtml = function(value) {
7326
7322
  module$exports$safevalues$internals$html_impl.unwrapHtml = function(value) {
7327
7323
  return module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(value);
7328
7324
  };
7325
+ var module$exports$goog$html$safestyle_internals_for_safevalues = {};
7326
+ module$exports$goog$html$safestyle_internals_for_safevalues.createSafeStyle = module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse;
7329
7327
  var module$exports$safevalues$internals$style_impl = {}, module$contents$safevalues$internals$style_impl_module = module$contents$safevalues$internals$style_impl_module || {id:"third_party/javascript/safevalues/internals/style_impl.closure.js"};
7330
7328
  module$exports$safevalues$internals$style_impl.SafeStyle = module$contents$goog$html$SafeStyle_SafeStyle;
7331
7329
  function module$contents$safevalues$internals$style_impl_createStyleInternal(style) {
7332
- return (0,module$exports$goog$html$internals.createSafeStyle)(style);
7330
+ return (0,module$exports$goog$html$safestyle_internals_for_safevalues.createSafeStyle)(style);
7333
7331
  }
7334
7332
  module$exports$safevalues$internals$style_impl.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
7335
7333
  function module$contents$safevalues$internals$style_impl_isStyle(value) {
@@ -7564,7 +7562,7 @@ module$exports$safevalues$dom$globals$window.getStyleNonce = function(win) {
7564
7562
  return module$contents$safevalues$dom$globals$window_getNonceFor("style", win);
7565
7563
  };
7566
7564
  function module$contents$safevalues$dom$globals$window_getNonceFor(elementName, win) {
7567
- var $jscomp$optchain$tmpm1987982378$0, $jscomp$optchain$tmpm1987982378$1, el = null == ($jscomp$optchain$tmpm1987982378$1 = ($jscomp$optchain$tmpm1987982378$0 = win.document).querySelector) ? void 0 : $jscomp$optchain$tmpm1987982378$1.call($jscomp$optchain$tmpm1987982378$0, elementName + "[nonce]");
7565
+ var $jscomp$optchain$tmp220578679$0, $jscomp$optchain$tmp220578679$1, el = null == ($jscomp$optchain$tmp220578679$1 = ($jscomp$optchain$tmp220578679$0 = win.document).querySelector) ? void 0 : $jscomp$optchain$tmp220578679$1.call($jscomp$optchain$tmp220578679$0, elementName + "[nonce]");
7568
7566
  return el ? el.nonce || el.getAttribute("nonce") || "" : "";
7569
7567
  }
7570
7568
  ;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;
@@ -7614,10 +7612,12 @@ module$exports$safevalues$dom$elements$script.setSrc = function(script, v, optio
7614
7612
  script.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(v);
7615
7613
  (null == options ? 0 : options.omitNonce) || module$contents$safevalues$dom$elements$script_setNonceForScriptElement(script);
7616
7614
  };
7615
+ var module$exports$goog$html$safestylesheet_internals_for_safevalues = {};
7616
+ module$exports$goog$html$safestylesheet_internals_for_safevalues.createSafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse;
7617
7617
  var module$exports$safevalues$internals$style_sheet_impl = {}, module$contents$safevalues$internals$style_sheet_impl_module = module$contents$safevalues$internals$style_sheet_impl_module || {id:"third_party/javascript/safevalues/internals/style_sheet_impl.closure.js"};
7618
7618
  module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
7619
7619
  function module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheet) {
7620
- return (0,module$exports$goog$html$internals.createSafeStyleSheet)(styleSheet);
7620
+ return (0,module$exports$goog$html$safestylesheet_internals_for_safevalues.createSafeStyleSheet)(styleSheet);
7621
7621
  }
7622
7622
  module$exports$safevalues$internals$style_sheet_impl.createStyleSheetInternal = module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal;
7623
7623
  function module$contents$safevalues$internals$style_sheet_impl_isStyleSheet(value) {
@@ -7965,48 +7965,48 @@ function module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(
7965
7965
  return (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(html);
7966
7966
  }
7967
7967
  function module$contents$safevalues$dom$globals$fetch_fetchResourceUrl(u, init) {
7968
- var response, $jscomp$optchain$tmp1153895636$0, $jscomp$optchain$tmp1153895636$1, $jscomp$optchain$tmp1153895636$2, mimeType;
7969
- return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$1153895636$6) {
7970
- if (1 == $jscomp$generator$context$1153895636$6.nextAddress) {
7971
- return $jscomp$generator$context$1153895636$6.yield(fetch(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(u).toString(), init), 2);
7972
- }
7973
- response = $jscomp$generator$context$1153895636$6.yieldResult;
7974
- mimeType = null == ($jscomp$optchain$tmp1153895636$0 = response.headers.get("Content-Type")) ? void 0 : null == ($jscomp$optchain$tmp1153895636$1 = $jscomp$optchain$tmp1153895636$0.split(";", 2)) ? void 0 : null == ($jscomp$optchain$tmp1153895636$2 = $jscomp$optchain$tmp1153895636$1[0]) ? void 0 : $jscomp$optchain$tmp1153895636$2.toLowerCase();
7975
- return $jscomp$generator$context$1153895636$6.return({html:function() {
7968
+ var response, $jscomp$optchain$tmpm991617773$0, $jscomp$optchain$tmpm991617773$1, $jscomp$optchain$tmpm991617773$2, mimeType;
7969
+ return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$m991617773$6) {
7970
+ if (1 == $jscomp$generator$context$m991617773$6.nextAddress) {
7971
+ return $jscomp$generator$context$m991617773$6.yield(fetch(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(u).toString(), init), 2);
7972
+ }
7973
+ response = $jscomp$generator$context$m991617773$6.yieldResult;
7974
+ mimeType = null == ($jscomp$optchain$tmpm991617773$0 = response.headers.get("Content-Type")) ? void 0 : null == ($jscomp$optchain$tmpm991617773$1 = $jscomp$optchain$tmpm991617773$0.split(";", 2)) ? void 0 : null == ($jscomp$optchain$tmpm991617773$2 = $jscomp$optchain$tmpm991617773$1[0]) ? void 0 : $jscomp$optchain$tmpm991617773$2.toLowerCase();
7975
+ return $jscomp$generator$context$m991617773$6.return({html:function() {
7976
7976
  var text;
7977
- return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$1153895636$3) {
7978
- if (1 == $jscomp$generator$context$1153895636$3.nextAddress) {
7977
+ return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$m991617773$3) {
7978
+ if (1 == $jscomp$generator$context$m991617773$3.nextAddress) {
7979
7979
  if ("text/html" !== mimeType) {
7980
7980
  throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeHtml", "text/html");
7981
7981
  }
7982
- return $jscomp$generator$context$1153895636$3.yield(response.text(), 2);
7982
+ return $jscomp$generator$context$m991617773$3.yield(response.text(), 2);
7983
7983
  }
7984
- text = $jscomp$generator$context$1153895636$3.yieldResult;
7985
- return $jscomp$generator$context$1153895636$3.return(module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(text));
7984
+ text = $jscomp$generator$context$m991617773$3.yieldResult;
7985
+ return $jscomp$generator$context$m991617773$3.return(module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(text));
7986
7986
  });
7987
7987
  }, script:function() {
7988
7988
  var text;
7989
- return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$1153895636$4) {
7990
- if (1 == $jscomp$generator$context$1153895636$4.nextAddress) {
7989
+ return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$m991617773$4) {
7990
+ if (1 == $jscomp$generator$context$m991617773$4.nextAddress) {
7991
7991
  if ("text/javascript" !== mimeType && "application/javascript" !== mimeType) {
7992
7992
  throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeScript", "text/javascript");
7993
7993
  }
7994
- return $jscomp$generator$context$1153895636$4.yield(response.text(), 2);
7994
+ return $jscomp$generator$context$m991617773$4.yield(response.text(), 2);
7995
7995
  }
7996
- text = $jscomp$generator$context$1153895636$4.yieldResult;
7997
- return $jscomp$generator$context$1153895636$4.return(module$contents$safevalues$internals$script_impl_createScriptInternal(text));
7996
+ text = $jscomp$generator$context$m991617773$4.yieldResult;
7997
+ return $jscomp$generator$context$m991617773$4.return(module$contents$safevalues$internals$script_impl_createScriptInternal(text));
7998
7998
  });
7999
7999
  }, styleSheet:function() {
8000
8000
  var text;
8001
- return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$1153895636$5) {
8002
- if (1 == $jscomp$generator$context$1153895636$5.nextAddress) {
8001
+ return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$m991617773$5) {
8002
+ if (1 == $jscomp$generator$context$m991617773$5.nextAddress) {
8003
8003
  if ("text/css" !== mimeType) {
8004
8004
  throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeStyleSheet", "text/css");
8005
8005
  }
8006
- return $jscomp$generator$context$1153895636$5.yield(response.text(), 2);
8006
+ return $jscomp$generator$context$m991617773$5.yield(response.text(), 2);
8007
8007
  }
8008
- text = $jscomp$generator$context$1153895636$5.yieldResult;
8009
- return $jscomp$generator$context$1153895636$5.return(module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(text));
8008
+ text = $jscomp$generator$context$m991617773$5.yieldResult;
8009
+ return $jscomp$generator$context$m991617773$5.return(module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(text));
8010
8010
  });
8011
8011
  }});
8012
8012
  });
@@ -9298,8 +9298,8 @@ function module$contents$eeapiclient$request_params_processParams(params) {
9298
9298
  }
9299
9299
  module$exports$eeapiclient$request_params.processParams = module$contents$eeapiclient$request_params_processParams;
9300
9300
  function module$contents$eeapiclient$request_params_buildQueryParams(params, mapping, passthroughParams) {
9301
- for (var urlQueryParams = passthroughParams = void 0 === passthroughParams ? {} : passthroughParams, $jscomp$iter$28 = $jscomp.makeIterator(Object.entries(mapping)), $jscomp$key$m125199259$0$ = $jscomp$iter$28.next(); !$jscomp$key$m125199259$0$.done; $jscomp$key$m125199259$0$ = $jscomp$iter$28.next()) {
9302
- var $jscomp$destructuring$var27 = $jscomp.makeIterator($jscomp$key$m125199259$0$.value), jsName__tsickle_destructured_1 = $jscomp$destructuring$var27.next().value, urlQueryParamName__tsickle_destructured_2 = $jscomp$destructuring$var27.next().value, jsName = jsName__tsickle_destructured_1, urlQueryParamName = urlQueryParamName__tsickle_destructured_2;
9301
+ for (var urlQueryParams = passthroughParams = void 0 === passthroughParams ? {} : passthroughParams, $jscomp$iter$28 = $jscomp.makeIterator(Object.entries(mapping)), $jscomp$key$1047461284$0$ = $jscomp$iter$28.next(); !$jscomp$key$1047461284$0$.done; $jscomp$key$1047461284$0$ = $jscomp$iter$28.next()) {
9302
+ var $jscomp$destructuring$var27 = $jscomp.makeIterator($jscomp$key$1047461284$0$.value), jsName__tsickle_destructured_1 = $jscomp$destructuring$var27.next().value, urlQueryParamName__tsickle_destructured_2 = $jscomp$destructuring$var27.next().value, jsName = jsName__tsickle_destructured_1, urlQueryParamName = urlQueryParamName__tsickle_destructured_2;
9303
9303
  jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]);
9304
9304
  }
9305
9305
  return urlQueryParams;
@@ -9310,8 +9310,8 @@ module$exports$eeapiclient$request_params.bypassCorsPreflight = function(params)
9310
9310
  var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1;
9311
9311
  if (params.headers) {
9312
9312
  hasContentType = null != params.headers["Content-Type"];
9313
- for (var $jscomp$iter$29 = $jscomp.makeIterator(Object.entries(params.headers)), $jscomp$key$m125199259$1$ = $jscomp$iter$29.next(); !$jscomp$key$m125199259$1$.done; $jscomp$key$m125199259$1$ = $jscomp$iter$29.next()) {
9314
- var $jscomp$destructuring$var29 = $jscomp.makeIterator($jscomp$key$m125199259$1$.value), key__tsickle_destructured_3 = $jscomp$destructuring$var29.next().value, value__tsickle_destructured_4 = $jscomp$destructuring$var29.next().value, key = key__tsickle_destructured_3, value = value__tsickle_destructured_4;
9313
+ for (var $jscomp$iter$29 = $jscomp.makeIterator(Object.entries(params.headers)), $jscomp$key$1047461284$1$ = $jscomp$iter$29.next(); !$jscomp$key$1047461284$1$.done; $jscomp$key$1047461284$1$ = $jscomp$iter$29.next()) {
9314
+ var $jscomp$destructuring$var29 = $jscomp.makeIterator($jscomp$key$1047461284$1$.value), key__tsickle_destructured_3 = $jscomp$destructuring$var29.next().value, value__tsickle_destructured_4 = $jscomp$destructuring$var29.next().value, key = key__tsickle_destructured_3, value = value__tsickle_destructured_4;
9315
9315
  module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders.includes(key) ? safeHeaders[key] = value : (unsafeHeaders[key] = value, hasUnsafeHeaders = !0);
9316
9316
  }
9317
9317
  }
@@ -9356,15 +9356,15 @@ module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.addMetad
9356
9356
  this._metadataPayload += "Content-Type: application/json; charset=utf-8\r\n\r\n" + JSON.stringify(json) + ("\r\n--" + this._boundary + "\r\n");
9357
9357
  };
9358
9358
  module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.build = function() {
9359
- var $jscomp$this$m133342051$6 = this, payload = "--" + this._boundary + "\r\n";
9359
+ var $jscomp$this$m667091202$6 = this, payload = "--" + this._boundary + "\r\n";
9360
9360
  payload += this._metadataPayload;
9361
9361
  return Promise.all(this.files.map(function(f) {
9362
- return $jscomp$this$m133342051$6.encodeFile(f);
9362
+ return $jscomp$this$m667091202$6.encodeFile(f);
9363
9363
  })).then(function(filePayloads) {
9364
- for (var $jscomp$iter$30 = $jscomp.makeIterator(filePayloads), $jscomp$key$m133342051$9$filePayload = $jscomp$iter$30.next(); !$jscomp$key$m133342051$9$filePayload.done; $jscomp$key$m133342051$9$filePayload = $jscomp$iter$30.next()) {
9365
- payload += $jscomp$key$m133342051$9$filePayload.value;
9364
+ for (var $jscomp$iter$30 = $jscomp.makeIterator(filePayloads), $jscomp$key$m667091202$9$filePayload = $jscomp$iter$30.next(); !$jscomp$key$m667091202$9$filePayload.done; $jscomp$key$m667091202$9$filePayload = $jscomp$iter$30.next()) {
9365
+ payload += $jscomp$key$m667091202$9$filePayload.value;
9366
9366
  }
9367
- return payload += "\r\n--" + $jscomp$this$m133342051$6._boundary + "--";
9367
+ return payload += "\r\n--" + $jscomp$this$m667091202$6._boundary + "--";
9368
9368
  });
9369
9369
  };
9370
9370
  module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.encodeFile = function(file) {
@@ -9452,9 +9452,9 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$reques
9452
9452
  return this.$addHooksToRequest(requestParams, this.requestService.send(module$contents$eeapiclient$api_client_toMakeRequestParams(requestParams), responseCtor));
9453
9453
  };
9454
9454
  module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$uploadRequest = function(requestParams) {
9455
- var $jscomp$this$m296226325$4 = this, responseCtor = requestParams.responseCtor || void 0;
9455
+ var $jscomp$this$1237977804$4 = this, responseCtor = requestParams.responseCtor || void 0;
9456
9456
  return this.$addHooksToRequest(requestParams, module$contents$eeapiclient$api_client_toMultipartMakeRequestParams(requestParams).then(function(params) {
9457
- return $jscomp$this$m296226325$4.requestService.send(params, responseCtor);
9457
+ return $jscomp$this$1237977804$4.requestService.send(params, responseCtor);
9458
9458
  }));
9459
9459
  };
9460
9460
  var module$exports$eeapiclient$ee_api_client = {}, module$contents$eeapiclient$ee_api_client_module = module$contents$eeapiclient$ee_api_client_module || {id:"geo/gestalt/client/javascript/v1/ee_api_client.closure.js"};
@@ -15567,8 +15567,8 @@ module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
15567
15567
  this.replacements = new Map();
15568
15568
  };
15569
15569
  module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
15570
- 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) {
15571
- return $jscomp$this$1018007701$5.replaceFormattingString(openedTags, match);
15570
+ 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) {
15571
+ return $jscomp$this$380122516$5.replaceFormattingString(openedTags, match);
15572
15572
  });
15573
15573
  if (0 !== openedTags.length) {
15574
15574
  if (goog.DEBUG) {
@@ -15710,7 +15710,7 @@ module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanit
15710
15710
  })}]];
15711
15711
  module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.defaultSanitizerTable = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES),
15712
15712
  new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES));
15713
- module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.lenientSanitizerTable = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS.concat(["BUTTON"])), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES),
15713
+ module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.lenientSanitizerTable = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS.concat(["BUTTON", "INPUT"])), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES),
15714
15714
  new Set(module$contents$safevalues$internals$pure_pure(function() {
15715
15715
  return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES.concat(["class", "id", "name"]);
15716
15716
  })), new Map(module$contents$safevalues$internals$pure_pure(function() {
@@ -15748,8 +15748,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
15748
15748
  return this.sanitizeToFragmentInternal(html, inertDocument);
15749
15749
  };
15750
15750
  module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
15751
- for (var $jscomp$this$m1085474118$10 = this, dirtyFragment = module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(html, inertDocument), treeWalker = document.createTreeWalker(dirtyFragment, 5, function(n) {
15752
- return $jscomp$this$m1085474118$10.nodeFilter(n);
15751
+ for (var $jscomp$this$m1803429925$10 = this, dirtyFragment = module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(html, inertDocument), treeWalker = document.createTreeWalker(dirtyFragment, 5, function(n) {
15752
+ return $jscomp$this$m1803429925$10.nodeFilter(n);
15753
15753
  }, !1), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; null !== currentNode;) {
15754
15754
  var sanitizedNode = void 0;
15755
15755
  if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
@@ -15776,8 +15776,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
15776
15776
  return document.createTextNode(textNode.data);
15777
15777
  };
15778
15778
  module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
15779
- for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$31 = $jscomp.makeIterator(dirtyAttributes), $jscomp$key$m1085474118$25$ = $jscomp$iter$31.next(); !$jscomp$key$m1085474118$25$.done; $jscomp$key$m1085474118$25$ = $jscomp$iter$31.next()) {
15780
- var $jscomp$destructuring$var31 = $jscomp$key$m1085474118$25$.value, name = $jscomp$destructuring$var31.name, value = $jscomp$destructuring$var31.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
15779
+ for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$31 = $jscomp.makeIterator(dirtyAttributes), $jscomp$key$m1803429925$25$ = $jscomp$iter$31.next(); !$jscomp$key$m1803429925$25$.done; $jscomp$key$m1803429925$25$ = $jscomp$iter$31.next()) {
15780
+ var $jscomp$destructuring$var31 = $jscomp$key$m1803429925$25$.value, name = $jscomp$destructuring$var31.name, value = $jscomp$destructuring$var31.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
15781
15781
  if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
15782
15782
  switch(policy.policyAction) {
15783
15783
  case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
@@ -15830,8 +15830,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
15830
15830
  if (!conditions) {
15831
15831
  return !0;
15832
15832
  }
15833
- for (var $jscomp$iter$32 = $jscomp.makeIterator(conditions), $jscomp$key$m1085474118$26$ = $jscomp$iter$32.next(); !$jscomp$key$m1085474118$26$.done; $jscomp$key$m1085474118$26$ = $jscomp$iter$32.next()) {
15834
- var $jscomp$destructuring$var33 = $jscomp.makeIterator($jscomp$key$m1085474118$26$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var33.next().value, expectedValues = $jscomp$destructuring$var33.next().value, $jscomp$optchain$tmpm1085474118$0 = void 0, value = null == ($jscomp$optchain$tmpm1085474118$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) ? void 0 : $jscomp$optchain$tmpm1085474118$0.value;
15833
+ for (var $jscomp$iter$32 = $jscomp.makeIterator(conditions), $jscomp$key$m1803429925$26$ = $jscomp$iter$32.next(); !$jscomp$key$m1803429925$26$.done; $jscomp$key$m1803429925$26$ = $jscomp$iter$32.next()) {
15834
+ var $jscomp$destructuring$var33 = $jscomp.makeIterator($jscomp$key$m1803429925$26$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var33.next().value, expectedValues = $jscomp$destructuring$var33.next().value, $jscomp$optchain$tmpm1803429925$0 = void 0, value = null == ($jscomp$optchain$tmpm1803429925$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) ? void 0 : $jscomp$optchain$tmpm1803429925$0.value;
15835
15835
  if (value && !expectedValues.has(value)) {
15836
15836
  return !1;
15837
15837
  }
@@ -15885,8 +15885,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
15885
15885
  this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.defaultSanitizerTable;
15886
15886
  };
15887
15887
  module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.onlyAllowElements = function(elementSet) {
15888
- for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$33 = $jscomp.makeIterator(elementSet), $jscomp$key$435282654$0$element = $jscomp$iter$33.next(); !$jscomp$key$435282654$0$element.done; $jscomp$key$435282654$0$element = $jscomp$iter$33.next()) {
15889
- var element = $jscomp$key$435282654$0$element.value;
15888
+ for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$33 = $jscomp.makeIterator(elementSet), $jscomp$key$m1412690177$0$element = $jscomp$iter$33.next(); !$jscomp$key$m1412690177$0$element.done; $jscomp$key$m1412690177$0$element = $jscomp$iter$33.next()) {
15889
+ var element = $jscomp$key$m1412690177$0$element.value;
15890
15890
  element = element.toUpperCase();
15891
15891
  if (!this.sanitizerTable.isAllowedElement(element)) {
15892
15892
  throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
@@ -15904,8 +15904,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
15904
15904
  throw Error("Element: " + element + " is not a custom element");
15905
15905
  }
15906
15906
  if (allowedAttributes) {
15907
- for (var elementPolicy = new Map(), $jscomp$iter$34 = $jscomp.makeIterator(allowedAttributes), $jscomp$key$435282654$1$attribute = $jscomp$iter$34.next(); !$jscomp$key$435282654$1$attribute.done; $jscomp$key$435282654$1$attribute = $jscomp$iter$34.next()) {
15908
- elementPolicy.set($jscomp$key$435282654$1$attribute.value, {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
15907
+ for (var elementPolicy = new Map(), $jscomp$iter$34 = $jscomp.makeIterator(allowedAttributes), $jscomp$key$m1412690177$1$attribute = $jscomp$iter$34.next(); !$jscomp$key$m1412690177$1$attribute.done; $jscomp$key$m1412690177$1$attribute = $jscomp$iter$34.next()) {
15908
+ elementPolicy.set($jscomp$key$m1412690177$1$attribute.value, {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
15909
15909
  }
15910
15910
  allowedElementPolicies.set(element, elementPolicy);
15911
15911
  } else {
@@ -15915,15 +15915,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
15915
15915
  return this;
15916
15916
  };
15917
15917
  module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.onlyAllowAttributes = function(attributeSet) {
15918
- for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$35 = $jscomp.makeIterator(attributeSet), $jscomp$key$435282654$2$attribute = $jscomp$iter$35.next(); !$jscomp$key$435282654$2$attribute.done; $jscomp$key$435282654$2$attribute = $jscomp$iter$35.next()) {
15919
- var attribute = $jscomp$key$435282654$2$attribute.value;
15918
+ for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$35 = $jscomp.makeIterator(attributeSet), $jscomp$key$m1412690177$2$attribute = $jscomp$iter$35.next(); !$jscomp$key$m1412690177$2$attribute.done; $jscomp$key$m1412690177$2$attribute = $jscomp$iter$35.next()) {
15919
+ var attribute = $jscomp$key$m1412690177$2$attribute.value;
15920
15920
  this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
15921
15921
  this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
15922
15922
  }
15923
- for (var $jscomp$iter$37 = $jscomp.makeIterator(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$435282654$4$ = $jscomp$iter$37.next(); !$jscomp$key$435282654$4$.done; $jscomp$key$435282654$4$ = $jscomp$iter$37.next()) {
15924
- for (var $jscomp$destructuring$var35 = $jscomp.makeIterator($jscomp$key$435282654$4$.value), elementName__tsickle_destructured_1 = $jscomp$destructuring$var35.next().value, originalElementPolicy__tsickle_destructured_2 = $jscomp$destructuring$var35.next().value, elementName = elementName__tsickle_destructured_1, newElementPolicy = new Map(), $jscomp$iter$36 = $jscomp.makeIterator(originalElementPolicy__tsickle_destructured_2.entries()), $jscomp$key$435282654$3$ = $jscomp$iter$36.next(); !$jscomp$key$435282654$3$.done; $jscomp$key$435282654$3$ =
15923
+ for (var $jscomp$iter$37 = $jscomp.makeIterator(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$m1412690177$4$ = $jscomp$iter$37.next(); !$jscomp$key$m1412690177$4$.done; $jscomp$key$m1412690177$4$ = $jscomp$iter$37.next()) {
15924
+ for (var $jscomp$destructuring$var35 = $jscomp.makeIterator($jscomp$key$m1412690177$4$.value), elementName__tsickle_destructured_1 = $jscomp$destructuring$var35.next().value, originalElementPolicy__tsickle_destructured_2 = $jscomp$destructuring$var35.next().value, elementName = elementName__tsickle_destructured_1, newElementPolicy = new Map(), $jscomp$iter$36 = $jscomp.makeIterator(originalElementPolicy__tsickle_destructured_2.entries()), $jscomp$key$m1412690177$3$ = $jscomp$iter$36.next(); !$jscomp$key$m1412690177$3$.done; $jscomp$key$m1412690177$3$ =
15925
15925
  $jscomp$iter$36.next()) {
15926
- var $jscomp$destructuring$var37 = $jscomp.makeIterator($jscomp$key$435282654$3$.value), attribute__tsickle_destructured_3 = $jscomp$destructuring$var37.next().value, attributePolicy__tsickle_destructured_4 = $jscomp$destructuring$var37.next().value, attribute$jscomp$0 = attribute__tsickle_destructured_3, attributePolicy = attributePolicy__tsickle_destructured_4;
15926
+ var $jscomp$destructuring$var37 = $jscomp.makeIterator($jscomp$key$m1412690177$3$.value), attribute__tsickle_destructured_3 = $jscomp$destructuring$var37.next().value, attributePolicy__tsickle_destructured_4 = $jscomp$destructuring$var37.next().value, attribute$jscomp$0 = attribute__tsickle_destructured_3, attributePolicy = attributePolicy__tsickle_destructured_4;
15927
15927
  attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
15928
15928
  }
15929
15929
  elementPolicies.set(elementName, newElementPolicy);
@@ -15932,8 +15932,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
15932
15932
  return this;
15933
15933
  };
15934
15934
  module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.allowDataAttributes = function(attributes) {
15935
- for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$38 = $jscomp.makeIterator(attributes), $jscomp$key$435282654$5$attribute = $jscomp$iter$38.next(); !$jscomp$key$435282654$5$attribute.done; $jscomp$key$435282654$5$attribute = $jscomp$iter$38.next()) {
15936
- var attribute = $jscomp$key$435282654$5$attribute.value;
15935
+ for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$38 = $jscomp.makeIterator(attributes), $jscomp$key$m1412690177$5$attribute = $jscomp$iter$38.next(); !$jscomp$key$m1412690177$5$attribute.done; $jscomp$key$m1412690177$5$attribute = $jscomp$iter$38.next()) {
15936
+ var attribute = $jscomp$key$m1412690177$5$attribute.value;
15937
15937
  if (0 !== attribute.indexOf("data-")) {
15938
15938
  throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
15939
15939
  }
@@ -16184,12 +16184,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
16184
16184
  }
16185
16185
  try {
16186
16186
  module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
16187
- } catch ($jscomp$unused$catch$696273141$0) {
16187
+ } catch ($jscomp$unused$catch$442189172$0) {
16188
16188
  return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
16189
16189
  }
16190
16190
  try {
16191
16191
  module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
16192
- } catch ($jscomp$unused$catch$696273141$1) {
16192
+ } catch ($jscomp$unused$catch$442189172$1) {
16193
16193
  return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
16194
16194
  }
16195
16195
  return !1;
@@ -19091,7 +19091,7 @@ var $jscomp$templatelit$294235699$96 = $jscomp.createTemplateTagFirstArg(["https
19091
19091
  ee.apiclient = {};
19092
19092
  var module$contents$ee$apiclient_apiclient = {};
19093
19093
  ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
19094
- ee.apiclient.API_CLIENT_VERSION = "0.1.394";
19094
+ ee.apiclient.API_CLIENT_VERSION = "0.1.395";
19095
19095
  ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
19096
19096
  ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
19097
19097
  ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
@@ -19381,8 +19381,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
19381
19381
  var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
19382
19382
  body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
19383
19383
  method = method || "POST";
19384
- var headers = {"Content-Type":contentType}, version = "0.1.394";
19385
- "0.1.394" === version && (version = "latest");
19384
+ var headers = {"Content-Type":contentType}, version = "0.1.395";
19385
+ "0.1.395" === version && (version = "latest");
19386
19386
  headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
19387
19387
  var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
19388
19388
  if (null != authToken) {
@@ -26934,29 +26934,28 @@ ee.data.Profiler.Format.prototype.toString = function() {
26934
26934
  ee.data.Profiler.Format.TEXT = new ee.data.Profiler.Format("text");
26935
26935
  ee.data.Profiler.Format.JSON = new ee.data.Profiler.Format("json");
26936
26936
  (function() {
26937
- var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._call ee.ApiFunction._apply ee.ApiFunction.lookup ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.table.toBigQuery ee.batch.Export.image.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toFeatureView ee.batch.Export.video.toDrive ee.batch.Export.table.toDrive ee.batch.Export.image.toDrive ee.batch.Export.table.toAsset ee.batch.Export.table.toCloudStorage ee.batch.Export.classifier.toAsset ee.batch.Export.image.toAsset ee.batch.Export.map.toCloudStorage ee.Collection.prototype.limit ee.Collection.prototype.sort ee.Collection.prototype.iterate ee.Collection.prototype.filterMetadata ee.Collection.prototype.filterBounds ee.Collection.prototype.filter ee.Collection.prototype.filterDate ee.Collection.prototype.map ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.serialize ee.data.startTableIngestion ee.data.getWorkloadTag ee.data.getTaskList ee.data.getTableDownloadId ee.data.getMapId ee.data.authenticate ee.data.makeTableDownloadUrl ee.data.getAssetAcl ee.data.getTileUrl ee.data.listImages ee.data.getTaskListWithLimit ee.data.listOperations ee.data.getAssetRoots ee.data.getAsset ee.data.getDownloadId ee.data.setWorkloadTag ee.data.cancelOperation ee.data.createAssetHome ee.data.makeDownloadUrl ee.data.getFeatureViewTilesKey ee.data.listFeatures ee.data.createAsset ee.data.authenticateViaPopup ee.data.getInfo ee.data.setDefaultWorkloadTag ee.data.getOperation ee.data.resetWorkloadTag ee.data.authenticateViaPrivateKey ee.data.updateAsset ee.data.newTaskId ee.data.computeValue ee.data.cancelTask ee.data.startIngestion ee.data.createFolder ee.data.getThumbId ee.data.setAssetAcl ee.data.getList ee.data.updateTask ee.data.getVideoThumbId ee.data.renameAsset ee.data.getTaskStatus ee.data.listAssets ee.data.startProcessing ee.data.getFilmstripThumbId ee.data.setAssetProperties ee.data.copyAsset ee.data.makeThumbUrl ee.data.authenticateViaOauth ee.data.listBuckets ee.data.getAssetRootQuota ee.data.deleteAsset ee.Date ee.Deserializer.fromCloudApiJSON ee.Deserializer.decodeCloudApi ee.Deserializer.decode ee.Deserializer.fromJSON ee.Dictionary ee.reset ee.call ee.Algorithms ee.InitState ee.initialize ee.apply ee.TILE_SIZE ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature ee.Feature.prototype.getInfo ee.Feature.prototype.getMapId ee.Feature.prototype.getMap ee.FeatureCollection.prototype.getInfo ee.FeatureCollection ee.FeatureCollection.prototype.getMapId ee.FeatureCollection.prototype.select ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.getMap ee.Filter.and ee.Filter.inList ee.Filter.gt ee.Filter.lt ee.Filter.neq ee.Filter.or ee.Filter.lte ee.Filter.gte ee.Filter.prototype.not ee.Filter ee.Filter.metadata ee.Filter.date ee.Filter.eq ee.Filter.bounds ee.Function.prototype.apply ee.Function.prototype.call ee.Geometry.Polygon ee.Geometry.prototype.serialize ee.Geometry.Point ee.Geometry.MultiPolygon ee.Geometry ee.Geometry.MultiLineString ee.Geometry.LinearRing ee.Geometry.prototype.toGeoJSON ee.Geometry.MultiPoint ee.Geometry.Rectangle ee.Geometry.BBox ee.Geometry.LineString ee.Geometry.prototype.toGeoJSONString ee.Image.prototype.getDownloadURL ee.Image.prototype.rename ee.Image.prototype.getInfo ee.Image.prototype.getMapId ee.Image.prototype.getMap ee.Image.prototype.getThumbId ee.Image.prototype.select ee.Image.prototype.expression ee.Image.prototype.clip ee.Image ee.Image.rgb ee.Image.cat ee.Image.prototype.getThumbURL ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.select ee.ImageCollection.prototype.first ee.ImageCollection.prototype.getMapId ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection ee.List ee.Number ee.Serializer.toReadableJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.encode ee.Serializer.toCloudApiJSON ee.Serializer.encodeCloudApi ee.Serializer.toJSON ee.Serializer.toReadableCloudApiJSON ee.String ee.Terrain".split(" "),
26938
- orderedParamLists = [["name", "var_args"], ["name", "namedArgs"], ["name"], "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles opt_minTimeMachineZoomSubset opt_maxTimeMachineZoomSubset opt_tileWidth opt_tileHeight opt_tileStride opt_videoFormat opt_version opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "), "collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices opt_priority".split(" "),
26939
- "image opt_description opt_bucket opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "), "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), "collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "),
26940
- "collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), "image opt_description opt_folder opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "),
26941
- ["collection", "opt_description", "opt_assetId", "opt_maxVertices", "opt_priority"], "collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), ["classifier", "opt_description", "opt_assetId", "opt_priority"], "image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_priority".split(" "), "image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "),
26942
- ["max", "opt_property", "opt_ascending"], ["property", "opt_ascending"], ["algorithm", "opt_first"], ["name", "operator", "value"], ["geometry"], ["filter"], ["start", "opt_end"], ["algorithm", "opt_dropNulls"], ["func", "var_args"], ["callback"], ["opt_callback"], ["legacy"], ["taskId", "request", "opt_callback"], [], ["opt_callback"], ["params", "opt_callback"], ["params", "opt_callback"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["id"], ["assetId", "opt_callback"],
26943
- ["id", "x", "y", "z"], ["parent", "opt_params", "opt_callback"], ["opt_limit", "opt_callback"], ["opt_limit", "opt_callback"], ["opt_callback"], ["id", "opt_callback"], ["params", "opt_callback"], ["tag"], ["operationName", "opt_callback"], ["requestedId", "opt_callback"], ["id"], ["params", "opt_callback"], ["asset", "params", "opt_callback"], ["value", "opt_path", "opt_force", "opt_properties", "opt_callback"], ["opt_success", "opt_error"], ["id", "opt_callback"], ["tag"], ["operationName", "opt_callback"],
26944
- ["opt_resetDefault"], ["privateKey", "opt_success", "opt_error", "opt_extraScopes", "opt_suppressDefaultScopes"], ["assetId", "asset", "updateFields", "opt_callback"], ["opt_count", "opt_callback"], ["obj", "opt_callback"], ["taskId", "opt_callback"], ["taskId", "request", "opt_callback"], ["path", "opt_force", "opt_callback"], ["params", "opt_callback"], ["assetId", "aclUpdate", "opt_callback"], ["params", "opt_callback"], ["taskId", "action", "opt_callback"], ["params", "opt_callback"], ["sourceId",
26945
- "destinationId", "opt_callback"], ["taskId", "opt_callback"], ["parent", "opt_params", "opt_callback"], ["taskId", "params", "opt_callback"], ["params", "opt_callback"], ["assetId", "properties", "opt_callback"], ["sourceId", "destinationId", "opt_overwrite", "opt_callback"], ["id"], "clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "), ["project", "opt_callback"], ["rootId", "opt_callback"], ["assetId", "opt_callback"], ["date", "opt_tz"], ["json"],
26946
- ["json"], ["json"], ["json"], ["opt_dict"], [], ["func", "var_args"], [], [], "opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "), ["func", "namedArgs"], [], ["var_args"], [], ["geometry", "opt_properties"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["opt_callback"], ["args", "opt_column"], ["opt_visParams", "opt_callback"], ["propertySelectors", "opt_newProperties", "opt_retainGeometry"], ["opt_format",
26947
- "opt_selectors", "opt_filename", "opt_callback"], ["opt_visParams", "opt_callback"], ["var_args"], ["opt_leftField", "opt_rightValue", "opt_rightField", "opt_leftValue"], ["name", "value"], ["name", "value"], ["name", "value"], ["var_args"], ["name", "value"], ["name", "value"], [], ["opt_filter"], ["name", "operator", "value"], ["start", "opt_end"], ["name", "value"], ["geometry", "opt_errorMargin"], ["namedArgs"], ["var_args"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"],
26948
- ["legacy"], ["coords", "opt_proj"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["geoJson", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], [], ["coords", "opt_proj"], ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["west", "south", "east", "north"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], [], ["params", "opt_callback"], ["var_args"], ["opt_callback"],
26949
- ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["params", "opt_callback"], ["var_args"], ["expression", "opt_map"], ["geometry"], ["opt_args"], ["r", "g", "b"], ["var_args"], ["params", "opt_callback"], ["opt_callback"], ["selectors", "opt_names"], [], ["opt_visParams", "opt_callback"], ["imageCollection", "opt_linkedBands", "opt_linkedProperties", "opt_matchPropertyName"], ["opt_visParams", "opt_callback"], ["params", "opt_callback"], ["params", "opt_callback"], ["args"],
26950
- ["list"], ["number"], ["obj"], ["obj"], ["obj", "opt_isCompound"], ["obj"], ["obj"], ["obj"], ["obj"], ["string"], []];
26951
- [ee.ApiFunction._call, ee.ApiFunction._apply, ee.ApiFunction.lookup, module$contents$ee$batch_Export.videoMap.toCloudStorage, module$contents$ee$batch_Export.table.toBigQuery, module$contents$ee$batch_Export.image.toCloudStorage, module$contents$ee$batch_Export.video.toCloudStorage, module$contents$ee$batch_Export.table.toFeatureView, module$contents$ee$batch_Export.video.toDrive, module$contents$ee$batch_Export.table.toDrive, module$contents$ee$batch_Export.image.toDrive, module$contents$ee$batch_Export.table.toAsset,
26952
- module$contents$ee$batch_Export.table.toCloudStorage, module$contents$ee$batch_Export.classifier.toAsset, module$contents$ee$batch_Export.image.toAsset, module$contents$ee$batch_Export.map.toCloudStorage, ee.Collection.prototype.limit, ee.Collection.prototype.sort, ee.Collection.prototype.iterate, ee.Collection.prototype.filterMetadata, ee.Collection.prototype.filterBounds, ee.Collection.prototype.filter, ee.Collection.prototype.filterDate, ee.Collection.prototype.map, ee.ComputedObject.prototype.aside,
26953
- ee.ComputedObject.prototype.evaluate, ee.ComputedObject.prototype.getInfo, ee.ComputedObject.prototype.serialize, ee.data.startTableIngestion, ee.data.getWorkloadTag, ee.data.getTaskList, ee.data.getTableDownloadId, ee.data.getMapId, ee.data.authenticate, ee.data.makeTableDownloadUrl, ee.data.getAssetAcl, ee.data.getTileUrl, ee.data.listImages, ee.data.getTaskListWithLimit, ee.data.listOperations, ee.data.getAssetRoots, ee.data.getAsset, ee.data.getDownloadId, ee.data.setWorkloadTag, ee.data.cancelOperation,
26954
- ee.data.createAssetHome, ee.data.makeDownloadUrl, ee.data.getFeatureViewTilesKey, ee.data.listFeatures, ee.data.createAsset, ee.data.authenticateViaPopup, ee.data.getInfo, ee.data.setDefaultWorkloadTag, ee.data.getOperation, ee.data.resetWorkloadTag, ee.data.authenticateViaPrivateKey, ee.data.updateAsset, ee.data.newTaskId, ee.data.computeValue, ee.data.cancelTask, ee.data.startIngestion, ee.data.createFolder, ee.data.getThumbId, ee.data.setAssetAcl, ee.data.getList, ee.data.updateTask, ee.data.getVideoThumbId,
26955
- ee.data.renameAsset, ee.data.getTaskStatus, ee.data.listAssets, ee.data.startProcessing, ee.data.getFilmstripThumbId, ee.data.setAssetProperties, ee.data.copyAsset, ee.data.makeThumbUrl, ee.data.authenticateViaOauth, ee.data.listBuckets, ee.data.getAssetRootQuota, ee.data.deleteAsset, ee.Date, ee.Deserializer.fromCloudApiJSON, ee.Deserializer.decodeCloudApi, ee.Deserializer.decode, ee.Deserializer.fromJSON, ee.Dictionary, ee.reset, ee.call, ee.Algorithms, ee.InitState, ee.initialize, ee.apply,
26956
- ee.TILE_SIZE, ee.Element.prototype.set, ee.Encodable.SourceFrame, ee.Feature, ee.Feature.prototype.getInfo, ee.Feature.prototype.getMapId, ee.Feature.prototype.getMap, ee.FeatureCollection.prototype.getInfo, ee.FeatureCollection, ee.FeatureCollection.prototype.getMapId, ee.FeatureCollection.prototype.select, ee.FeatureCollection.prototype.getDownloadURL, ee.FeatureCollection.prototype.getMap, ee.Filter.and, ee.Filter.inList, ee.Filter.gt, ee.Filter.lt, ee.Filter.neq, ee.Filter.or, ee.Filter.lte,
26957
- ee.Filter.gte, ee.Filter.prototype.not, ee.Filter, ee.Filter.metadata, ee.Filter.date, ee.Filter.eq, ee.Filter.bounds, ee.Function.prototype.apply, ee.Function.prototype.call, ee.Geometry.Polygon, ee.Geometry.prototype.serialize, ee.Geometry.Point, ee.Geometry.MultiPolygon, ee.Geometry, ee.Geometry.MultiLineString, ee.Geometry.LinearRing, ee.Geometry.prototype.toGeoJSON, ee.Geometry.MultiPoint, ee.Geometry.Rectangle, ee.Geometry.BBox, ee.Geometry.LineString, ee.Geometry.prototype.toGeoJSONString,
26958
- ee.Image.prototype.getDownloadURL, ee.Image.prototype.rename, ee.Image.prototype.getInfo, ee.Image.prototype.getMapId, ee.Image.prototype.getMap, ee.Image.prototype.getThumbId, ee.Image.prototype.select, ee.Image.prototype.expression, ee.Image.prototype.clip, ee.Image, ee.Image.rgb, ee.Image.cat, ee.Image.prototype.getThumbURL, ee.ImageCollection.prototype.getInfo, ee.ImageCollection.prototype.select, ee.ImageCollection.prototype.first, ee.ImageCollection.prototype.getMapId, ee.ImageCollection.prototype.linkCollection,
26959
- ee.ImageCollection.prototype.getMap, ee.ImageCollection.prototype.getVideoThumbURL, ee.ImageCollection.prototype.getFilmstripThumbURL, ee.ImageCollection, ee.List, ee.Number, ee.Serializer.toReadableJSON, ee.Serializer.encodeCloudApiPretty, ee.Serializer.encode, ee.Serializer.toCloudApiJSON, ee.Serializer.encodeCloudApi, ee.Serializer.toJSON, ee.Serializer.toReadableCloudApiJSON, ee.String, ee.Terrain].forEach(function(fn, i) {
26937
+ var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._apply ee.ApiFunction.lookup ee.ApiFunction._call ee.batch.Export.map.toCloudStorage ee.batch.Export.image.toAsset ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.table.toBigQuery ee.batch.Export.image.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toFeatureView ee.batch.Export.video.toDrive ee.batch.Export.table.toDrive ee.batch.Export.image.toDrive ee.batch.Export.table.toCloudStorage ee.batch.Export.table.toAsset ee.batch.Export.classifier.toAsset ee.Collection.prototype.filter ee.Collection.prototype.sort ee.Collection.prototype.filterMetadata ee.Collection.prototype.filterBounds ee.Collection.prototype.filterDate ee.Collection.prototype.map ee.Collection.prototype.iterate ee.Collection.prototype.limit ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.serialize ee.data.getVideoThumbId ee.data.renameAsset ee.data.getTaskStatus ee.data.startProcessing ee.data.listAssets ee.data.setAssetProperties ee.data.makeThumbUrl ee.data.getFilmstripThumbId ee.data.copyAsset ee.data.listBuckets ee.data.authenticateViaOauth ee.data.getAssetRootQuota ee.data.getMapId ee.data.deleteAsset ee.data.startTableIngestion ee.data.getTaskList ee.data.getWorkloadTag ee.data.getTableDownloadId ee.data.listImages ee.data.getAssetAcl ee.data.getTileUrl ee.data.authenticate ee.data.makeTableDownloadUrl ee.data.getTaskListWithLimit ee.data.listOperations ee.data.setWorkloadTag ee.data.getAssetRoots ee.data.getAsset ee.data.getDownloadId ee.data.cancelOperation ee.data.createAssetHome ee.data.authenticateViaPopup ee.data.makeDownloadUrl ee.data.getFeatureViewTilesKey ee.data.listFeatures ee.data.setDefaultWorkloadTag ee.data.getInfo ee.data.resetWorkloadTag ee.data.createAsset ee.data.getOperation ee.data.updateAsset ee.data.authenticateViaPrivateKey ee.data.newTaskId ee.data.cancelTask ee.data.computeValue ee.data.startIngestion ee.data.createFolder ee.data.setAssetAcl ee.data.getThumbId ee.data.getList ee.data.updateTask ee.Date ee.Deserializer.decodeCloudApi ee.Deserializer.fromCloudApiJSON ee.Deserializer.decode ee.Deserializer.fromJSON ee.Dictionary ee.reset ee.Algorithms ee.InitState ee.apply ee.TILE_SIZE ee.initialize ee.call ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature ee.Feature.prototype.getInfo ee.Feature.prototype.getMapId ee.Feature.prototype.getMap ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.select ee.FeatureCollection ee.FeatureCollection.prototype.getMapId ee.FeatureCollection.prototype.getDownloadURL ee.Filter.and ee.Filter.prototype.not ee.Filter.inList ee.Filter.neq ee.Filter.lt ee.Filter.gt ee.Filter.or ee.Filter ee.Filter.gte ee.Filter.lte ee.Filter.eq ee.Filter.metadata ee.Filter.date ee.Filter.bounds ee.Function.prototype.apply ee.Function.prototype.call ee.Geometry ee.Geometry.BBox ee.Geometry.MultiPoint ee.Geometry.Rectangle ee.Geometry.prototype.toGeoJSONString ee.Geometry.MultiPolygon ee.Geometry.prototype.serialize ee.Geometry.LineString ee.Geometry.Point ee.Geometry.Polygon ee.Geometry.MultiLineString ee.Geometry.prototype.toGeoJSON ee.Geometry.LinearRing ee.Image.rgb ee.Image.prototype.getDownloadURL ee.Image.prototype.getInfo ee.Image.prototype.getMapId ee.Image.prototype.getMap ee.Image.prototype.getThumbId ee.Image.prototype.getThumbURL ee.Image.cat ee.Image.prototype.select ee.Image.prototype.rename ee.Image.prototype.expression ee.Image.prototype.clip ee.Image ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.select ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.getMapId ee.ImageCollection ee.ImageCollection.prototype.first ee.ImageCollection.prototype.getFilmstripThumbURL ee.List ee.Number ee.Serializer.encodeCloudApi ee.Serializer.toJSON ee.Serializer.toReadableCloudApiJSON ee.Serializer.toReadableJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.encode ee.Serializer.toCloudApiJSON ee.String ee.Terrain".split(" "),
26938
+ orderedParamLists = [["name", "namedArgs"], ["name"], ["name", "var_args"], "image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "), "image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_priority".split(" "), "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles opt_minTimeMachineZoomSubset opt_maxTimeMachineZoomSubset opt_tileWidth opt_tileHeight opt_tileStride opt_videoFormat opt_version opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "),
26939
+ "collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices opt_priority".split(" "), "image opt_description opt_bucket opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "), "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "),
26940
+ "collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), "image opt_description opt_folder opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "),
26941
+ "collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), ["collection", "opt_description", "opt_assetId", "opt_maxVertices", "opt_priority"], ["classifier", "opt_description", "opt_assetId", "opt_priority"], ["filter"], ["property", "opt_ascending"], ["name", "operator", "value"], ["geometry"], ["start", "opt_end"], ["algorithm", "opt_dropNulls"], ["algorithm", "opt_first"], ["max", "opt_property", "opt_ascending"], ["func",
26942
+ "var_args"], ["callback"], ["opt_callback"], ["legacy"], ["params", "opt_callback"], ["sourceId", "destinationId", "opt_callback"], ["taskId", "opt_callback"], ["taskId", "params", "opt_callback"], ["parent", "opt_params", "opt_callback"], ["assetId", "properties", "opt_callback"], ["id"], ["params", "opt_callback"], ["sourceId", "destinationId", "opt_overwrite", "opt_callback"], ["project", "opt_callback"], "clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "),
26943
+ ["rootId", "opt_callback"], ["params", "opt_callback"], ["assetId", "opt_callback"], ["taskId", "request", "opt_callback"], ["opt_callback"], [], ["params", "opt_callback"], ["parent", "opt_params", "opt_callback"], ["assetId", "opt_callback"], ["id", "x", "y", "z"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["id"], ["opt_limit", "opt_callback"], ["opt_limit", "opt_callback"], ["tag"], ["opt_callback"], ["id", "opt_callback"], ["params", "opt_callback"],
26944
+ ["operationName", "opt_callback"], ["requestedId", "opt_callback"], ["opt_success", "opt_error"], ["id"], ["params", "opt_callback"], ["asset", "params", "opt_callback"], ["tag"], ["id", "opt_callback"], ["opt_resetDefault"], ["value", "opt_path", "opt_force", "opt_properties", "opt_callback"], ["operationName", "opt_callback"], ["assetId", "asset", "updateFields", "opt_callback"], ["privateKey", "opt_success", "opt_error", "opt_extraScopes", "opt_suppressDefaultScopes"], ["opt_count", "opt_callback"],
26945
+ ["taskId", "opt_callback"], ["obj", "opt_callback"], ["taskId", "request", "opt_callback"], ["path", "opt_force", "opt_callback"], ["assetId", "aclUpdate", "opt_callback"], ["params", "opt_callback"], ["params", "opt_callback"], ["taskId", "action", "opt_callback"], ["date", "opt_tz"], ["json"], ["json"], ["json"], ["json"], ["opt_dict"], [], [], [], ["func", "namedArgs"], [], "opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "), ["func", "var_args"],
26946
+ ["var_args"], [], ["geometry", "opt_properties"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["opt_callback"], ["propertySelectors", "opt_newProperties", "opt_retainGeometry"], ["args", "opt_column"], ["opt_visParams", "opt_callback"], ["opt_format", "opt_selectors", "opt_filename", "opt_callback"], ["var_args"], [], ["opt_leftField", "opt_rightValue", "opt_rightField", "opt_leftValue"], ["name", "value"], ["name",
26947
+ "value"], ["name", "value"], ["var_args"], ["opt_filter"], ["name", "value"], ["name", "value"], ["name", "value"], ["name", "operator", "value"], ["start", "opt_end"], ["geometry", "opt_errorMargin"], ["namedArgs"], ["var_args"], ["geoJson", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["west", "south", "east", "north"], ["coords", "opt_proj"], ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], [], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["legacy"], ["coords",
26948
+ "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], [], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["r", "g", "b"], ["params", "opt_callback"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["params", "opt_callback"], ["params", "opt_callback"], ["var_args"], ["var_args"], ["var_args"], ["expression",
26949
+ "opt_map"], ["geometry"], ["opt_args"], ["opt_callback"], ["selectors", "opt_names"], ["opt_visParams", "opt_callback"], ["imageCollection", "opt_linkedBands", "opt_linkedProperties", "opt_matchPropertyName"], ["params", "opt_callback"], ["opt_visParams", "opt_callback"], ["args"], [], ["params", "opt_callback"], ["list"], ["number"], ["obj"], ["obj"], ["obj"], ["obj"], ["obj"], ["obj", "opt_isCompound"], ["obj"], ["string"], []];
26950
+ [ee.ApiFunction._apply, ee.ApiFunction.lookup, ee.ApiFunction._call, module$contents$ee$batch_Export.map.toCloudStorage, module$contents$ee$batch_Export.image.toAsset, module$contents$ee$batch_Export.videoMap.toCloudStorage, module$contents$ee$batch_Export.table.toBigQuery, module$contents$ee$batch_Export.image.toCloudStorage, module$contents$ee$batch_Export.video.toCloudStorage, module$contents$ee$batch_Export.table.toFeatureView, module$contents$ee$batch_Export.video.toDrive, module$contents$ee$batch_Export.table.toDrive,
26951
+ module$contents$ee$batch_Export.image.toDrive, module$contents$ee$batch_Export.table.toCloudStorage, module$contents$ee$batch_Export.table.toAsset, module$contents$ee$batch_Export.classifier.toAsset, ee.Collection.prototype.filter, ee.Collection.prototype.sort, ee.Collection.prototype.filterMetadata, ee.Collection.prototype.filterBounds, ee.Collection.prototype.filterDate, ee.Collection.prototype.map, ee.Collection.prototype.iterate, ee.Collection.prototype.limit, ee.ComputedObject.prototype.aside,
26952
+ ee.ComputedObject.prototype.evaluate, ee.ComputedObject.prototype.getInfo, ee.ComputedObject.prototype.serialize, ee.data.getVideoThumbId, ee.data.renameAsset, ee.data.getTaskStatus, ee.data.startProcessing, ee.data.listAssets, ee.data.setAssetProperties, ee.data.makeThumbUrl, ee.data.getFilmstripThumbId, ee.data.copyAsset, ee.data.listBuckets, ee.data.authenticateViaOauth, ee.data.getAssetRootQuota, ee.data.getMapId, ee.data.deleteAsset, ee.data.startTableIngestion, ee.data.getTaskList, ee.data.getWorkloadTag,
26953
+ ee.data.getTableDownloadId, ee.data.listImages, ee.data.getAssetAcl, ee.data.getTileUrl, ee.data.authenticate, ee.data.makeTableDownloadUrl, ee.data.getTaskListWithLimit, ee.data.listOperations, ee.data.setWorkloadTag, ee.data.getAssetRoots, ee.data.getAsset, ee.data.getDownloadId, ee.data.cancelOperation, ee.data.createAssetHome, ee.data.authenticateViaPopup, ee.data.makeDownloadUrl, ee.data.getFeatureViewTilesKey, ee.data.listFeatures, ee.data.setDefaultWorkloadTag, ee.data.getInfo, ee.data.resetWorkloadTag,
26954
+ ee.data.createAsset, ee.data.getOperation, ee.data.updateAsset, ee.data.authenticateViaPrivateKey, ee.data.newTaskId, ee.data.cancelTask, ee.data.computeValue, ee.data.startIngestion, ee.data.createFolder, ee.data.setAssetAcl, ee.data.getThumbId, ee.data.getList, ee.data.updateTask, ee.Date, ee.Deserializer.decodeCloudApi, ee.Deserializer.fromCloudApiJSON, ee.Deserializer.decode, ee.Deserializer.fromJSON, ee.Dictionary, ee.reset, ee.Algorithms, ee.InitState, ee.apply, ee.TILE_SIZE, ee.initialize,
26955
+ ee.call, ee.Element.prototype.set, ee.Encodable.SourceFrame, ee.Feature, ee.Feature.prototype.getInfo, ee.Feature.prototype.getMapId, ee.Feature.prototype.getMap, ee.FeatureCollection.prototype.getMap, ee.FeatureCollection.prototype.getInfo, ee.FeatureCollection.prototype.select, ee.FeatureCollection, ee.FeatureCollection.prototype.getMapId, ee.FeatureCollection.prototype.getDownloadURL, ee.Filter.and, ee.Filter.prototype.not, ee.Filter.inList, ee.Filter.neq, ee.Filter.lt, ee.Filter.gt, ee.Filter.or,
26956
+ ee.Filter, ee.Filter.gte, ee.Filter.lte, ee.Filter.eq, ee.Filter.metadata, ee.Filter.date, ee.Filter.bounds, ee.Function.prototype.apply, ee.Function.prototype.call, ee.Geometry, ee.Geometry.BBox, ee.Geometry.MultiPoint, ee.Geometry.Rectangle, ee.Geometry.prototype.toGeoJSONString, ee.Geometry.MultiPolygon, ee.Geometry.prototype.serialize, ee.Geometry.LineString, ee.Geometry.Point, ee.Geometry.Polygon, ee.Geometry.MultiLineString, ee.Geometry.prototype.toGeoJSON, ee.Geometry.LinearRing, ee.Image.rgb,
26957
+ ee.Image.prototype.getDownloadURL, ee.Image.prototype.getInfo, ee.Image.prototype.getMapId, ee.Image.prototype.getMap, ee.Image.prototype.getThumbId, ee.Image.prototype.getThumbURL, ee.Image.cat, ee.Image.prototype.select, ee.Image.prototype.rename, ee.Image.prototype.expression, ee.Image.prototype.clip, ee.Image, ee.ImageCollection.prototype.getInfo, ee.ImageCollection.prototype.select, ee.ImageCollection.prototype.getMap, ee.ImageCollection.prototype.linkCollection, ee.ImageCollection.prototype.getVideoThumbURL,
26958
+ ee.ImageCollection.prototype.getMapId, ee.ImageCollection, ee.ImageCollection.prototype.first, ee.ImageCollection.prototype.getFilmstripThumbURL, ee.List, ee.Number, ee.Serializer.encodeCloudApi, ee.Serializer.toJSON, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.toReadableJSON, ee.Serializer.encodeCloudApiPretty, ee.Serializer.encode, ee.Serializer.toCloudApiJSON, ee.String, ee.Terrain].forEach(function(fn, i) {
26960
26959
  fn && (exportedFnInfo[fn.toString()] = {name:orderedFnNames[i], paramNames:orderedParamLists[i]});
26961
26960
  });
26962
26961
  goog.global.EXPORTED_FN_INFO = exportedFnInfo;