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