@google/earthengine 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/browser.js +153 -150
- package/build/ee_api_js.js +31 -31
- package/build/ee_api_js_debug.js +132 -128
- package/build/ee_api_js_npm.js +153 -150
- package/build/main.js +153 -150
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/data.js +0 -4
package/build/ee_api_js_debug.js
CHANGED
|
@@ -2186,9 +2186,9 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
2186
2186
|
};
|
|
2187
2187
|
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;
|
|
2188
2188
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
2189
|
-
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = (0,$jscomp.makeIterator)(metadata.keys || []), $jscomp$key$
|
|
2190
|
-
{mapMetadata:void 0}, $jscomp$key$
|
|
2191
|
-
var key = $jscomp$key$
|
|
2189
|
+
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = (0,$jscomp.makeIterator)(metadata.keys || []), $jscomp$key$m192531680$40$key = $jscomp$iter$19.next(), $jscomp$loop$m192531680$44 = {}; !$jscomp$key$m192531680$40$key.done; $jscomp$loop$m192531680$44 =
|
|
2190
|
+
{mapMetadata:void 0}, $jscomp$key$m192531680$40$key = $jscomp$iter$19.next()) {
|
|
2191
|
+
var key = $jscomp$key$m192531680$40$key.value, value = valueGetter(key, source);
|
|
2192
2192
|
if (value != null) {
|
|
2193
2193
|
var copy = void 0;
|
|
2194
2194
|
if (arrays.hasOwnProperty(key)) {
|
|
@@ -2199,11 +2199,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2199
2199
|
} else if (objects.hasOwnProperty(key)) {
|
|
2200
2200
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
2201
2201
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
2202
|
-
$jscomp$loop$
|
|
2202
|
+
$jscomp$loop$m192531680$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m192531680$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m192531680$44) {
|
|
2203
2203
|
return function(v) {
|
|
2204
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
2204
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2205
2205
|
};
|
|
2206
|
-
}($jscomp$loop$
|
|
2206
|
+
}($jscomp$loop$m192531680$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2207
2207
|
} else if (Array.isArray(value)) {
|
|
2208
2208
|
if (metadata.emptyArrayIsUnset && value.length === 0) {
|
|
2209
2209
|
continue;
|
|
@@ -2218,8 +2218,8 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2218
2218
|
return target;
|
|
2219
2219
|
}
|
|
2220
2220
|
function module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, mapMetadata, valueGetter, valueSetter, copyInstanciator) {
|
|
2221
|
-
for (var objMap = {}, $jscomp$iter$20 = (0,$jscomp.makeIterator)(Object.keys(value)), $jscomp$key$
|
|
2222
|
-
var mapKey = $jscomp$key$
|
|
2221
|
+
for (var objMap = {}, $jscomp$iter$20 = (0,$jscomp.makeIterator)(Object.keys(value)), $jscomp$key$m192531680$41$mapKey = $jscomp$iter$20.next(); !$jscomp$key$m192531680$41$mapKey.done; $jscomp$key$m192531680$41$mapKey = $jscomp$iter$20.next()) {
|
|
2222
|
+
var mapKey = $jscomp$key$m192531680$41$mapKey.value, mapValue = value[mapKey];
|
|
2223
2223
|
mapValue != null && (objMap[mapKey] = module$contents$eeapiclient$domain_object_deepCopyValue(mapValue, valueGetter, valueSetter, copyInstanciator, mapMetadata.isValueArray, mapMetadata.isSerializable, mapMetadata.ctor));
|
|
2224
2224
|
}
|
|
2225
2225
|
return objMap;
|
|
@@ -2249,39 +2249,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
2249
2249
|
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))) {
|
|
2250
2250
|
return !1;
|
|
2251
2251
|
}
|
|
2252
|
-
for (var $jscomp$iter$21 = (0,$jscomp.makeIterator)(keys1), $jscomp$key$
|
|
2253
|
-
var key = $jscomp$key$
|
|
2252
|
+
for (var $jscomp$iter$21 = (0,$jscomp.makeIterator)(keys1), $jscomp$key$m192531680$42$key = $jscomp$iter$21.next(), $jscomp$loop$m192531680$45 = {}; !$jscomp$key$m192531680$42$key.done; $jscomp$loop$m192531680$45 = {value2$jscomp$7:void 0, mapMetadata$jscomp$2:void 0}, $jscomp$key$m192531680$42$key = $jscomp$iter$21.next()) {
|
|
2253
|
+
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);
|
|
2254
2254
|
if (has1 !== has2) {
|
|
2255
2255
|
return !1;
|
|
2256
2256
|
}
|
|
2257
2257
|
if (has1) {
|
|
2258
2258
|
var value1 = serializable1.Serializable$get(key);
|
|
2259
|
-
$jscomp$loop$
|
|
2259
|
+
$jscomp$loop$m192531680$45.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
2260
2260
|
if (arrays1.hasOwnProperty(key)) {
|
|
2261
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2261
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !0)) {
|
|
2262
2262
|
return !1;
|
|
2263
2263
|
}
|
|
2264
2264
|
} else if (objects1.hasOwnProperty(key)) {
|
|
2265
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2265
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !0)) {
|
|
2266
2266
|
return !1;
|
|
2267
2267
|
}
|
|
2268
2268
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
2269
|
-
if ($jscomp$loop$
|
|
2270
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
2269
|
+
if ($jscomp$loop$m192531680$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2.isPropertyArray) {
|
|
2270
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m192531680$45) {
|
|
2271
2271
|
return function(v1, i) {
|
|
2272
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
2272
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$45.value2$jscomp$7[i], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2);
|
|
2273
2273
|
};
|
|
2274
|
-
}($jscomp$loop$
|
|
2274
|
+
}($jscomp$loop$m192531680$45))) {
|
|
2275
2275
|
return !1;
|
|
2276
2276
|
}
|
|
2277
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
2277
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, $jscomp$loop$m192531680$45.mapMetadata$jscomp$2)) {
|
|
2278
2278
|
return !1;
|
|
2279
2279
|
}
|
|
2280
2280
|
} else if (Array.isArray(value1)) {
|
|
2281
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2281
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !1)) {
|
|
2282
2282
|
return !1;
|
|
2283
2283
|
}
|
|
2284
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2284
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !1)) {
|
|
2285
2285
|
return !1;
|
|
2286
2286
|
}
|
|
2287
2287
|
}
|
|
@@ -2303,8 +2303,8 @@ function module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, v
|
|
|
2303
2303
|
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) {
|
|
2304
2304
|
return !1;
|
|
2305
2305
|
}
|
|
2306
|
-
for (var $jscomp$iter$22 = (0,$jscomp.makeIterator)(Object.keys(value1)), $jscomp$key$
|
|
2307
|
-
var mapKey = $jscomp$key$
|
|
2306
|
+
for (var $jscomp$iter$22 = (0,$jscomp.makeIterator)(Object.keys(value1)), $jscomp$key$m192531680$43$mapKey = $jscomp$iter$22.next(); !$jscomp$key$m192531680$43$mapKey.done; $jscomp$key$m192531680$43$mapKey = $jscomp$iter$22.next()) {
|
|
2307
|
+
var mapKey = $jscomp$key$m192531680$43$mapKey.value;
|
|
2308
2308
|
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1[mapKey], value2[mapKey], mapMetadata.isValueArray, mapMetadata.isSerializable)) {
|
|
2309
2309
|
return !1;
|
|
2310
2310
|
}
|
|
@@ -2385,15 +2385,15 @@ module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.addMetad
|
|
|
2385
2385
|
this._metadataPayload += "Content-Type: application/json; charset=utf-8\r\n\r\n" + JSON.stringify(json) + ("\r\n--" + this._boundary + "\r\n");
|
|
2386
2386
|
};
|
|
2387
2387
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.build = function() {
|
|
2388
|
-
var $jscomp$this$
|
|
2388
|
+
var $jscomp$this$m667091202$6 = this, payload = "--" + this._boundary + "\r\n";
|
|
2389
2389
|
payload += this._metadataPayload;
|
|
2390
2390
|
return Promise.all(this.files.map(function(f) {
|
|
2391
|
-
return $jscomp$this$
|
|
2391
|
+
return $jscomp$this$m667091202$6.encodeFile(f);
|
|
2392
2392
|
})).then(function(filePayloads) {
|
|
2393
|
-
for (var $jscomp$iter$23 = (0,$jscomp.makeIterator)(filePayloads), $jscomp$key$
|
|
2394
|
-
payload += $jscomp$key$
|
|
2393
|
+
for (var $jscomp$iter$23 = (0,$jscomp.makeIterator)(filePayloads), $jscomp$key$m667091202$9$filePayload = $jscomp$iter$23.next(); !$jscomp$key$m667091202$9$filePayload.done; $jscomp$key$m667091202$9$filePayload = $jscomp$iter$23.next()) {
|
|
2394
|
+
payload += $jscomp$key$m667091202$9$filePayload.value;
|
|
2395
2395
|
}
|
|
2396
|
-
return payload += "\r\n--" + $jscomp$this$
|
|
2396
|
+
return payload += "\r\n--" + $jscomp$this$m667091202$6._boundary + "--";
|
|
2397
2397
|
});
|
|
2398
2398
|
};
|
|
2399
2399
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.encodeFile = function(file) {
|
|
@@ -2905,8 +2905,8 @@ function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUr
|
|
|
2905
2905
|
throw Error(message);
|
|
2906
2906
|
}
|
|
2907
2907
|
module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
2908
|
-
var $jscomp$templatelit$
|
|
2909
|
-
["\\0"]), $jscomp$templatelit$
|
|
2908
|
+
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"],
|
|
2909
|
+
["\\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"};
|
|
2910
2910
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
2911
2911
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
2912
2912
|
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 ##############################");
|
|
@@ -2920,14 +2920,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
2920
2920
|
return fn.toString().indexOf("`") === -1;
|
|
2921
2921
|
}
|
|
2922
2922
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2923
|
-
return tag($jscomp$templatelit$
|
|
2923
|
+
return tag($jscomp$templatelit$1274514361$5);
|
|
2924
2924
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2925
|
-
return tag($jscomp$templatelit$
|
|
2925
|
+
return tag($jscomp$templatelit$1274514361$6);
|
|
2926
2926
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2927
|
-
return tag($jscomp$templatelit$
|
|
2927
|
+
return tag($jscomp$templatelit$1274514361$7);
|
|
2928
2928
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2929
|
-
return tag($jscomp$templatelit$
|
|
2930
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
2929
|
+
return tag($jscomp$templatelit$1274514361$8);
|
|
2930
|
+
}), 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);
|
|
2931
2931
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
2932
2932
|
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)) ?
|
|
2933
2933
|
!0 : !1;
|
|
@@ -3249,9 +3249,9 @@ function module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(ifr
|
|
|
3249
3249
|
}
|
|
3250
3250
|
}
|
|
3251
3251
|
module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIframeIntentError = function(type, intent) {
|
|
3252
|
-
var $jscomp$tmp$error$
|
|
3253
|
-
this.message = $jscomp$tmp$error$
|
|
3254
|
-
"stack" in $jscomp$tmp$error$
|
|
3252
|
+
var $jscomp$tmp$error$240424914$1 = Error.call(this, type + " cannot be used with intent " + module$exports$safevalues$dom$elements$iframe.IframeIntent[intent]);
|
|
3253
|
+
this.message = $jscomp$tmp$error$240424914$1.message;
|
|
3254
|
+
"stack" in $jscomp$tmp$error$240424914$1 && (this.stack = $jscomp$tmp$error$240424914$1.stack);
|
|
3255
3255
|
this.type = type;
|
|
3256
3256
|
this.intent = intent;
|
|
3257
3257
|
this.name = "TypeCannotBeUsedWithIframeIntentError";
|
|
@@ -3347,7 +3347,7 @@ function module$contents$safevalues$dom$globals$window_getStyleNonce(doc) {
|
|
|
3347
3347
|
module$exports$safevalues$dom$globals$window.getStyleNonce = module$contents$safevalues$dom$globals$window_getStyleNonce;
|
|
3348
3348
|
function module$contents$safevalues$dom$globals$window_getNonceFor(elementName, doc) {
|
|
3349
3349
|
doc = doc === void 0 ? document : doc;
|
|
3350
|
-
var $jscomp$optchain$
|
|
3350
|
+
var $jscomp$optchain$tmp220578679$0, $jscomp$optchain$tmp220578679$1, el = ($jscomp$optchain$tmp220578679$1 = ($jscomp$optchain$tmp220578679$0 = doc).querySelector) == null ? void 0 : $jscomp$optchain$tmp220578679$1.call($jscomp$optchain$tmp220578679$0, elementName + "[nonce]");
|
|
3351
3351
|
return el == null ? "" : el.nonce || el.getAttribute("nonce") || "";
|
|
3352
3352
|
}
|
|
3353
3353
|
;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"};
|
|
@@ -4785,9 +4785,9 @@ function module$contents$safevalues$dom$globals$dom_parser_domParserParseFromStr
|
|
|
4785
4785
|
module$exports$safevalues$dom$globals$dom_parser.domParserParseFromString = module$contents$safevalues$dom$globals$dom_parser_domParserParseFromString;
|
|
4786
4786
|
var module$exports$safevalues$dom$globals$fetch = {}, module$contents$safevalues$dom$globals$fetch_module = module$contents$safevalues$dom$globals$fetch_module || {id:"third_party/javascript/safevalues/dom/globals/fetch.closure.js"};
|
|
4787
4787
|
module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError = function(url, typeName, contentType) {
|
|
4788
|
-
var $jscomp$tmp$error$
|
|
4789
|
-
this.message = $jscomp$tmp$error$
|
|
4790
|
-
"stack" in $jscomp$tmp$error$
|
|
4788
|
+
var $jscomp$tmp$error$m991617773$25 = Error.call(this, url + " was requested as a " + typeName + ', but the response Content-Type, "' + contentType + " is not appropriate for this type of content.");
|
|
4789
|
+
this.message = $jscomp$tmp$error$m991617773$25.message;
|
|
4790
|
+
"stack" in $jscomp$tmp$error$m991617773$25 && (this.stack = $jscomp$tmp$error$m991617773$25.stack);
|
|
4791
4791
|
this.url = url;
|
|
4792
4792
|
this.typeName = typeName;
|
|
4793
4793
|
this.contentType = contentType;
|
|
@@ -4799,48 +4799,48 @@ function module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(
|
|
|
4799
4799
|
return (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(html);
|
|
4800
4800
|
}
|
|
4801
4801
|
function module$contents$safevalues$dom$globals$fetch_fetchResourceUrl(u, init) {
|
|
4802
|
-
var response, $jscomp$optchain$
|
|
4803
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4804
|
-
if ($jscomp$generator$context$
|
|
4805
|
-
return $jscomp$generator$context$
|
|
4806
|
-
}
|
|
4807
|
-
response = $jscomp$generator$context$
|
|
4808
|
-
mimeType = ($jscomp$optchain$
|
|
4809
|
-
return $jscomp$generator$context$
|
|
4802
|
+
var response, $jscomp$optchain$tmpm991617773$0, $jscomp$optchain$tmpm991617773$1, $jscomp$optchain$tmpm991617773$2, mimeType;
|
|
4803
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$29) {
|
|
4804
|
+
if ($jscomp$generator$context$m991617773$29.nextAddress == 1) {
|
|
4805
|
+
return $jscomp$generator$context$m991617773$29.yield(fetch(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(u).toString(), init), 2);
|
|
4806
|
+
}
|
|
4807
|
+
response = $jscomp$generator$context$m991617773$29.yieldResult;
|
|
4808
|
+
mimeType = ($jscomp$optchain$tmpm991617773$0 = response.headers.get("Content-Type")) == null ? void 0 : ($jscomp$optchain$tmpm991617773$1 = $jscomp$optchain$tmpm991617773$0.split(";", 2)) == null ? void 0 : ($jscomp$optchain$tmpm991617773$2 = $jscomp$optchain$tmpm991617773$1[0]) == null ? void 0 : $jscomp$optchain$tmpm991617773$2.toLowerCase();
|
|
4809
|
+
return $jscomp$generator$context$m991617773$29.return({html:function() {
|
|
4810
4810
|
var text;
|
|
4811
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4812
|
-
if ($jscomp$generator$context$
|
|
4811
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$26) {
|
|
4812
|
+
if ($jscomp$generator$context$m991617773$26.nextAddress == 1) {
|
|
4813
4813
|
if (mimeType !== "text/html") {
|
|
4814
4814
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeHtml", "text/html");
|
|
4815
4815
|
}
|
|
4816
|
-
return $jscomp$generator$context$
|
|
4816
|
+
return $jscomp$generator$context$m991617773$26.yield(response.text(), 2);
|
|
4817
4817
|
}
|
|
4818
|
-
text = $jscomp$generator$context$
|
|
4819
|
-
return $jscomp$generator$context$
|
|
4818
|
+
text = $jscomp$generator$context$m991617773$26.yieldResult;
|
|
4819
|
+
return $jscomp$generator$context$m991617773$26.return(module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(text));
|
|
4820
4820
|
});
|
|
4821
4821
|
}, script:function() {
|
|
4822
4822
|
var text;
|
|
4823
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4824
|
-
if ($jscomp$generator$context$
|
|
4823
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$27) {
|
|
4824
|
+
if ($jscomp$generator$context$m991617773$27.nextAddress == 1) {
|
|
4825
4825
|
if (mimeType !== "text/javascript" && mimeType !== "application/javascript") {
|
|
4826
4826
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeScript", "text/javascript");
|
|
4827
4827
|
}
|
|
4828
|
-
return $jscomp$generator$context$
|
|
4828
|
+
return $jscomp$generator$context$m991617773$27.yield(response.text(), 2);
|
|
4829
4829
|
}
|
|
4830
|
-
text = $jscomp$generator$context$
|
|
4831
|
-
return $jscomp$generator$context$
|
|
4830
|
+
text = $jscomp$generator$context$m991617773$27.yieldResult;
|
|
4831
|
+
return $jscomp$generator$context$m991617773$27.return(module$contents$safevalues$internals$script_impl_createScriptInternal(text));
|
|
4832
4832
|
});
|
|
4833
4833
|
}, styleSheet:function() {
|
|
4834
4834
|
var text;
|
|
4835
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4836
|
-
if ($jscomp$generator$context$
|
|
4835
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$28) {
|
|
4836
|
+
if ($jscomp$generator$context$m991617773$28.nextAddress == 1) {
|
|
4837
4837
|
if (mimeType !== "text/css") {
|
|
4838
4838
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeStyleSheet", "text/css");
|
|
4839
4839
|
}
|
|
4840
|
-
return $jscomp$generator$context$
|
|
4840
|
+
return $jscomp$generator$context$m991617773$28.yield(response.text(), 2);
|
|
4841
4841
|
}
|
|
4842
|
-
text = $jscomp$generator$context$
|
|
4843
|
-
return $jscomp$generator$context$
|
|
4842
|
+
text = $jscomp$generator$context$m991617773$28.yieldResult;
|
|
4843
|
+
return $jscomp$generator$context$m991617773$28.return(module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(text));
|
|
4844
4844
|
});
|
|
4845
4845
|
}});
|
|
4846
4846
|
});
|
|
@@ -6314,8 +6314,8 @@ function module$contents$eeapiclient$request_params_processParams(params) {
|
|
|
6314
6314
|
}
|
|
6315
6315
|
module$exports$eeapiclient$request_params.processParams = module$contents$eeapiclient$request_params_processParams;
|
|
6316
6316
|
function module$contents$eeapiclient$request_params_buildQueryParams(params, mapping, passthroughParams) {
|
|
6317
|
-
for (var urlQueryParams = passthroughParams = passthroughParams === void 0 ? {} : passthroughParams, $jscomp$iter$29 = (0,$jscomp.makeIterator)(Object.entries(mapping)), $jscomp$key$
|
|
6318
|
-
var $jscomp$destructuring$var3 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
6317
|
+
for (var urlQueryParams = passthroughParams = passthroughParams === void 0 ? {} : passthroughParams, $jscomp$iter$29 = (0,$jscomp.makeIterator)(Object.entries(mapping)), $jscomp$key$1047461284$0$ = $jscomp$iter$29.next(); !$jscomp$key$1047461284$0$.done; $jscomp$key$1047461284$0$ = $jscomp$iter$29.next()) {
|
|
6318
|
+
var $jscomp$destructuring$var3 = (0,$jscomp.makeIterator)($jscomp$key$1047461284$0$.value), jsName__tsickle_destructured_1 = $jscomp$destructuring$var3.next().value, urlQueryParamName__tsickle_destructured_2 = $jscomp$destructuring$var3.next().value, jsName = jsName__tsickle_destructured_1, urlQueryParamName = urlQueryParamName__tsickle_destructured_2;
|
|
6319
6319
|
jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]);
|
|
6320
6320
|
}
|
|
6321
6321
|
return urlQueryParams;
|
|
@@ -6326,8 +6326,8 @@ module$exports$eeapiclient$request_params.bypassCorsPreflight = function(params)
|
|
|
6326
6326
|
var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1, hasSafeContentType = !1;
|
|
6327
6327
|
if (params.headers) {
|
|
6328
6328
|
hasContentType = params.headers["Content-Type"] != null;
|
|
6329
|
-
for (var $jscomp$iter$30 = (0,$jscomp.makeIterator)(Object.entries(params.headers)), $jscomp$key$
|
|
6330
|
-
var $jscomp$destructuring$var5 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
6329
|
+
for (var $jscomp$iter$30 = (0,$jscomp.makeIterator)(Object.entries(params.headers)), $jscomp$key$1047461284$1$ = $jscomp$iter$30.next(); !$jscomp$key$1047461284$1$.done; $jscomp$key$1047461284$1$ = $jscomp$iter$30.next()) {
|
|
6330
|
+
var $jscomp$destructuring$var5 = (0,$jscomp.makeIterator)($jscomp$key$1047461284$1$.value), key__tsickle_destructured_3 = $jscomp$destructuring$var5.next().value, value__tsickle_destructured_4 = $jscomp$destructuring$var5.next().value, key = key__tsickle_destructured_3, value = value__tsickle_destructured_4;
|
|
6331
6331
|
module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders.includes(key) ? safeHeaders[key] = value : key === "Content-Type" && module$contents$eeapiclient$request_params_simpleCorsAllowedContentTypes.includes(value) ? (safeHeaders[key] = value, hasSafeContentType = !0) : (unsafeHeaders[key] = value, hasUnsafeHeaders = !0);
|
|
6332
6332
|
}
|
|
6333
6333
|
}
|
|
@@ -6367,9 +6367,9 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$reques
|
|
|
6367
6367
|
return this.$addHooksToRequest(requestParams, this.requestService.send(module$contents$eeapiclient$api_client_toMakeRequestParams(requestParams), responseCtor));
|
|
6368
6368
|
};
|
|
6369
6369
|
module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$uploadRequest = function(requestParams) {
|
|
6370
|
-
var $jscomp$this$
|
|
6370
|
+
var $jscomp$this$1237977804$4 = this, responseCtor = requestParams.responseCtor || void 0;
|
|
6371
6371
|
return this.$addHooksToRequest(requestParams, module$contents$eeapiclient$api_client_toMultipartMakeRequestParams(requestParams).then(function(params) {
|
|
6372
|
-
return $jscomp$this$
|
|
6372
|
+
return $jscomp$this$1237977804$4.requestService.send(params, responseCtor);
|
|
6373
6373
|
}));
|
|
6374
6374
|
};
|
|
6375
6375
|
var module$exports$eeapiclient$promise_request_service = {}, module$contents$eeapiclient$promise_request_service_module = module$contents$eeapiclient$promise_request_service_module || {id:"javascript/typescript/contrib/apiclient/request_service/promise_request_service.closure.js"};
|
|
@@ -7511,7 +7511,6 @@ module$contents$goog$events$ListenerMap_ListenerMap.findListenerIndex_ = functio
|
|
|
7511
7511
|
return -1;
|
|
7512
7512
|
};
|
|
7513
7513
|
goog.events.ListenerMap = module$contents$goog$events$ListenerMap_ListenerMap;
|
|
7514
|
-
goog.events.Key = {};
|
|
7515
7514
|
goog.events.LISTENER_MAP_PROP_ = "closure_lm_" + (Math.random() * 1E6 | 0);
|
|
7516
7515
|
goog.events.onString_ = "on";
|
|
7517
7516
|
goog.events.onStringMap_ = {};
|
|
@@ -16112,8 +16111,8 @@ module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
|
|
|
16112
16111
|
this.replacements = new Map();
|
|
16113
16112
|
};
|
|
16114
16113
|
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
|
|
16115
|
-
var $jscomp$this$
|
|
16116
|
-
return $jscomp$this$
|
|
16114
|
+
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) {
|
|
16115
|
+
return $jscomp$this$380122516$5.replaceFormattingString(openedTags, match);
|
|
16117
16116
|
});
|
|
16118
16117
|
if (openedTags.length !== 0) {
|
|
16119
16118
|
if (goog.DEBUG) {
|
|
@@ -16331,8 +16330,8 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16331
16330
|
if (Array.isArray(token)) {
|
|
16332
16331
|
tokens.push.apply(tokens, (0,$jscomp.arrayFromIterable)(token));
|
|
16333
16332
|
} else {
|
|
16334
|
-
var $jscomp$optchain$
|
|
16335
|
-
if (token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE || (($jscomp$optchain$
|
|
16333
|
+
var $jscomp$optchain$tmpm583190311$0 = void 0;
|
|
16334
|
+
if (token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE || (($jscomp$optchain$tmpm583190311$0 = lastToken) == null ? void 0 : $jscomp$optchain$tmpm583190311$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE) {
|
|
16336
16335
|
tokens.push(token);
|
|
16337
16336
|
if (token.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF) {
|
|
16338
16337
|
return tokens;
|
|
@@ -16578,9 +16577,9 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16578
16577
|
repr:repr}) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.NUMBER, repr:repr};
|
|
16579
16578
|
};
|
|
16580
16579
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextTwoInputsPointsAreWhitespace = function() {
|
|
16581
|
-
var $jscomp$this$
|
|
16580
|
+
var $jscomp$this$m583190311$26 = this;
|
|
16582
16581
|
return this.nextTwoInputCodePoints().every(function(c) {
|
|
16583
|
-
return $jscomp$this$
|
|
16582
|
+
return $jscomp$this$m583190311$26.isWhitespace(c);
|
|
16584
16583
|
});
|
|
16585
16584
|
};
|
|
16586
16585
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.twoCodePointsAreValidEscape = function(codePoint1, codePoint2) {
|
|
@@ -16687,8 +16686,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16687
16686
|
return null;
|
|
16688
16687
|
}
|
|
16689
16688
|
if (token.lowercaseName === "url") {
|
|
16690
|
-
var nextToken = tokens[i + 1], $jscomp$optchain$
|
|
16691
|
-
if ((($jscomp$optchain$
|
|
16689
|
+
var nextToken = tokens[i + 1], $jscomp$optchain$tmpm1877845113$0 = void 0;
|
|
16690
|
+
if ((($jscomp$optchain$tmpm1877845113$0 = nextToken) == null ? void 0 : $jscomp$optchain$tmpm1877845113$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING) {
|
|
16692
16691
|
return null;
|
|
16693
16692
|
}
|
|
16694
16693
|
var parsedUrl = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(nextToken.value);
|
|
@@ -16711,8 +16710,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16711
16710
|
if (!this.allowKeyframes) {
|
|
16712
16711
|
return null;
|
|
16713
16712
|
}
|
|
16714
|
-
for (var keyframeRules = [], $jscomp$iter$31 = (0,$jscomp.makeIterator)(keyframesRule.cssRules), $jscomp$key$
|
|
16715
|
-
var rule = $jscomp$key$
|
|
16713
|
+
for (var keyframeRules = [], $jscomp$iter$31 = (0,$jscomp.makeIterator)(keyframesRule.cssRules), $jscomp$key$m1877845113$1$rule = $jscomp$iter$31.next(); !$jscomp$key$m1877845113$1$rule.done; $jscomp$key$m1877845113$1$rule = $jscomp$iter$31.next()) {
|
|
16714
|
+
var rule = $jscomp$key$m1877845113$1$rule.value;
|
|
16716
16715
|
if (rule instanceof CSSKeyframeRule) {
|
|
16717
16716
|
var sanitizedRule = this.sanitizeKeyframeRule(rule);
|
|
16718
16717
|
sanitizedRule && keyframeRules.push(sanitizedRule);
|
|
@@ -16724,8 +16723,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16724
16723
|
if (!this.propertyAllowlist.has(name)) {
|
|
16725
16724
|
return !1;
|
|
16726
16725
|
}
|
|
16727
|
-
for (var $jscomp$iter$32 = (0,$jscomp.makeIterator)(this.propertyDiscarders), $jscomp$key$
|
|
16728
|
-
var discarder = $jscomp$key$
|
|
16726
|
+
for (var $jscomp$iter$32 = (0,$jscomp.makeIterator)(this.propertyDiscarders), $jscomp$key$m1877845113$2$discarder = $jscomp$iter$32.next(); !$jscomp$key$m1877845113$2$discarder.done; $jscomp$key$m1877845113$2$discarder = $jscomp$iter$32.next()) {
|
|
16727
|
+
var discarder = $jscomp$key$m1877845113$2$discarder.value;
|
|
16729
16728
|
if (discarder(name)) {
|
|
16730
16729
|
return !1;
|
|
16731
16730
|
}
|
|
@@ -16740,8 +16739,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16740
16739
|
return sanitizedValue ? module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(name) + ": " + sanitizedValue + (isImportant ? " !important" : "") : null;
|
|
16741
16740
|
};
|
|
16742
16741
|
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleDeclaration = function(style, calledFromStyleElement) {
|
|
16743
|
-
for (var sortedPropertyNames = [].concat((0,$jscomp.arrayFromIterable)(style)).sort(), sanitizedProperties = "", $jscomp$iter$33 = (0,$jscomp.makeIterator)(sortedPropertyNames), $jscomp$key$
|
|
16744
|
-
var name = $jscomp$key$
|
|
16742
|
+
for (var sortedPropertyNames = [].concat((0,$jscomp.arrayFromIterable)(style)).sort(), sanitizedProperties = "", $jscomp$iter$33 = (0,$jscomp.makeIterator)(sortedPropertyNames), $jscomp$key$m1877845113$3$name = $jscomp$iter$33.next(); !$jscomp$key$m1877845113$3$name.done; $jscomp$key$m1877845113$3$name = $jscomp$iter$33.next()) {
|
|
16743
|
+
var name = $jscomp$key$m1877845113$3$name.value, value = style.getPropertyValue(name), isImportant = style.getPropertyPriority(name) === "important", sanitizedProperty = this.sanitizeProperty(name, value, isImportant, calledFromStyleElement);
|
|
16745
16744
|
sanitizedProperty && (sanitizedProperties += sanitizedProperty + ";");
|
|
16746
16745
|
}
|
|
16747
16746
|
return sanitizedProperties;
|
|
@@ -16755,8 +16754,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16755
16754
|
return selector + " { " + sanitizedProperties + " }";
|
|
16756
16755
|
};
|
|
16757
16756
|
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleElement = function(cssText) {
|
|
16758
|
-
for (var rules = this.getStyleSheet(cssText).cssRules, output = [], $jscomp$iter$34 = (0,$jscomp.makeIterator)(rules), $jscomp$key$
|
|
16759
|
-
var rule = $jscomp$key$
|
|
16757
|
+
for (var rules = this.getStyleSheet(cssText).cssRules, output = [], $jscomp$iter$34 = (0,$jscomp.makeIterator)(rules), $jscomp$key$m1877845113$4$rule = $jscomp$iter$34.next(); !$jscomp$key$m1877845113$4$rule.done; $jscomp$key$m1877845113$4$rule = $jscomp$iter$34.next()) {
|
|
16758
|
+
var rule = $jscomp$key$m1877845113$4$rule.value;
|
|
16760
16759
|
if (rule instanceof CSSStyleRule) {
|
|
16761
16760
|
var sanitizedRule = this.sanitizeStyleRule(rule);
|
|
16762
16761
|
sanitizedRule && output.push(sanitizedRule);
|
|
@@ -16852,7 +16851,7 @@ module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanit
|
|
|
16852
16851
|
["LINK", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY, conditions:new Map([["rel", new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])], ["SOURCE", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}],
|
|
16853
16852
|
["srcset", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET}]])], ["IMG", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}], ["srcset", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET}]])],
|
|
16854
16853
|
["VIDEO", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}]])], ["AUDIO", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}]])]], module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES =
|
|
16855
|
-
"title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
|
|
16854
|
+
"title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
|
|
16856
16855
|
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES = [["dir", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
16857
16856
|
return new Map([["dir", new Set(["auto", "ltr", "rtl"])]]);
|
|
16858
16857
|
})}], ["async", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
@@ -16882,11 +16881,12 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizer =
|
|
|
16882
16881
|
};
|
|
16883
16882
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.CssSanitizer = function() {
|
|
16884
16883
|
};
|
|
16885
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl = function(sanitizerTable, token, styleElementSanitizer, styleAttributeSanitizer, resourceUrlPolicy) {
|
|
16884
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl = function(sanitizerTable, token, styleElementSanitizer, styleAttributeSanitizer, resourceUrlPolicy, openShadow) {
|
|
16886
16885
|
this.sanitizerTable = sanitizerTable;
|
|
16887
16886
|
this.styleElementSanitizer = styleElementSanitizer;
|
|
16888
16887
|
this.styleAttributeSanitizer = styleAttributeSanitizer;
|
|
16889
16888
|
this.resourceUrlPolicy = resourceUrlPolicy;
|
|
16889
|
+
this.openShadow = openShadow;
|
|
16890
16890
|
this.changes = [];
|
|
16891
16891
|
module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
|
|
16892
16892
|
};
|
|
@@ -16907,7 +16907,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16907
16907
|
return this.styleElementSanitizer && this.styleAttributeSanitizer ? this.sanitizeWithCssToFragment(html, inertDocument) : this.sanitizeToFragmentInternal(html, inertDocument);
|
|
16908
16908
|
};
|
|
16909
16909
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeWithCssToFragment = function(htmlWithCss, inertDocument) {
|
|
16910
|
-
var elem = document.createElement("safevalues-with-css"), shadow = elem.attachShadow({mode:"closed"}), sanitized = this.sanitizeToFragmentInternal(htmlWithCss, inertDocument), internalStyle = document.createElement("style");
|
|
16910
|
+
var elem = document.createElement("safevalues-with-css"), shadow = elem.attachShadow({mode:this.openShadow ? "open" : "closed"}), sanitized = this.sanitizeToFragmentInternal(htmlWithCss, inertDocument), internalStyle = document.createElement("style");
|
|
16911
16911
|
internalStyle.textContent = module$exports$safevalues$builders$html_sanitizer$css$css_isolation.CSS_ISOLATION_STYLESHEET;
|
|
16912
16912
|
internalStyle.id = "safevalues-internal-style";
|
|
16913
16913
|
shadow.appendChild(internalStyle);
|
|
@@ -16917,8 +16917,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16917
16917
|
return fragment;
|
|
16918
16918
|
};
|
|
16919
16919
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
16920
|
-
for (var $jscomp$this$
|
|
16921
|
-
return $jscomp$this$
|
|
16920
|
+
for (var $jscomp$this$m1803429925$13 = this, dirtyFragment = module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(html, inertDocument), treeWalker = document.createTreeWalker(dirtyFragment, 5, function(n) {
|
|
16921
|
+
return $jscomp$this$m1803429925$13.nodeFilter(n);
|
|
16922
16922
|
}), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; currentNode !== null;) {
|
|
16923
16923
|
var sanitizedNode = void 0;
|
|
16924
16924
|
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
@@ -16953,8 +16953,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16953
16953
|
return this.createTextNode(textNode.data);
|
|
16954
16954
|
};
|
|
16955
16955
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
16956
|
-
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$36 = (0,$jscomp.makeIterator)(dirtyAttributes), $jscomp$key$
|
|
16957
|
-
var $jscomp$destructuring$var31 = $jscomp$key$
|
|
16956
|
+
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$36 = (0,$jscomp.makeIterator)(dirtyAttributes), $jscomp$key$m1803429925$34$ = $jscomp$iter$36.next(); !$jscomp$key$m1803429925$34$.done; $jscomp$key$m1803429925$34$ = $jscomp$iter$36.next()) {
|
|
16957
|
+
var $jscomp$destructuring$var31 = $jscomp$key$m1803429925$34$.value, name = $jscomp$destructuring$var31.name, value = $jscomp$destructuring$var31.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
|
|
16958
16958
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
16959
16959
|
switch(policy.policyAction) {
|
|
16960
16960
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
|
|
@@ -16986,9 +16986,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16986
16986
|
break;
|
|
16987
16987
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET:
|
|
16988
16988
|
if (this.resourceUrlPolicy) {
|
|
16989
|
-
for (var hints$jscomp$0 = {type:module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.HTML_ATTRIBUTE, attributeName:name, elementName:elementName}, srcset = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(value), sanitizedSrcset = {parts:[]}, $jscomp$iter$35 = (0,$jscomp.makeIterator)(srcset.parts), $jscomp$key$
|
|
16989
|
+
for (var hints$jscomp$0 = {type:module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.HTML_ATTRIBUTE, attributeName:name, elementName:elementName}, srcset = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(value), sanitizedSrcset = {parts:[]}, $jscomp$iter$35 = (0,$jscomp.makeIterator)(srcset.parts), $jscomp$key$m1803429925$33$part = $jscomp$iter$35.next(); !$jscomp$key$m1803429925$33$part.done; $jscomp$key$m1803429925$33$part =
|
|
16990
16990
|
$jscomp$iter$35.next()) {
|
|
16991
|
-
var part = $jscomp$key$
|
|
16991
|
+
var part = $jscomp$key$m1803429925$33$part.value, url$jscomp$0 = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(part.url), sanitizedUrl$jscomp$0 = this.resourceUrlPolicy(url$jscomp$0, hints$jscomp$0);
|
|
16992
16992
|
sanitizedUrl$jscomp$0 && sanitizedSrcset.parts.push({url:sanitizedUrl$jscomp$0.toString(), descriptor:part.descriptor});
|
|
16993
16993
|
}
|
|
16994
16994
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset(sanitizedSrcset));
|
|
@@ -17032,8 +17032,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
17032
17032
|
if (!conditions) {
|
|
17033
17033
|
return !0;
|
|
17034
17034
|
}
|
|
17035
|
-
for (var $jscomp$iter$37 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$
|
|
17036
|
-
var $jscomp$destructuring$var33 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17035
|
+
for (var $jscomp$iter$37 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$m1803429925$35$ = $jscomp$iter$37.next(); !$jscomp$key$m1803429925$35$.done; $jscomp$key$m1803429925$35$ = $jscomp$iter$37.next()) {
|
|
17036
|
+
var $jscomp$destructuring$var33 = (0,$jscomp.makeIterator)($jscomp$key$m1803429925$35$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var33.next().value, expectedValues = $jscomp$destructuring$var33.next().value, $jscomp$optchain$tmpm1803429925$0 = void 0, value = ($jscomp$optchain$tmpm1803429925$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) == null ? void 0 : $jscomp$optchain$tmpm1803429925$0.value;
|
|
17037
17037
|
if (value && !expectedValues.has(value)) {
|
|
17038
17038
|
return !1;
|
|
17039
17039
|
}
|
|
@@ -17048,8 +17048,8 @@ function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_Srcse
|
|
|
17048
17048
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.Srcset = function() {
|
|
17049
17049
|
};
|
|
17050
17050
|
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(srcset) {
|
|
17051
|
-
for (var parts = [], $jscomp$iter$38 = (0,$jscomp.makeIterator)(srcset.split(",")), $jscomp$key$
|
|
17052
|
-
var $jscomp$destructuring$var34 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17051
|
+
for (var parts = [], $jscomp$iter$38 = (0,$jscomp.makeIterator)(srcset.split(",")), $jscomp$key$m1803429925$36$part = $jscomp$iter$38.next(); !$jscomp$key$m1803429925$36$part.done; $jscomp$key$m1803429925$36$part = $jscomp$iter$38.next()) {
|
|
17052
|
+
var $jscomp$destructuring$var34 = (0,$jscomp.makeIterator)($jscomp$key$m1803429925$36$part.value.trim().split(/\s+/, 2)), url__tsickle_destructured_3 = $jscomp$destructuring$var34.next().value, descriptor__tsickle_destructured_4 = $jscomp$destructuring$var34.next().value;
|
|
17053
17053
|
parts.push({url:url__tsickle_destructured_3, descriptor:descriptor__tsickle_destructured_4});
|
|
17054
17054
|
}
|
|
17055
17055
|
return {parts:parts};
|
|
@@ -17106,8 +17106,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17106
17106
|
this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE;
|
|
17107
17107
|
};
|
|
17108
17108
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowElements = function(elementSet) {
|
|
17109
|
-
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$39 = (0,$jscomp.makeIterator)(elementSet), $jscomp$key$
|
|
17110
|
-
var element = $jscomp$key$
|
|
17109
|
+
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$39 = (0,$jscomp.makeIterator)(elementSet), $jscomp$key$m1412690177$22$element = $jscomp$iter$39.next(); !$jscomp$key$m1412690177$22$element.done; $jscomp$key$m1412690177$22$element = $jscomp$iter$39.next()) {
|
|
17110
|
+
var element = $jscomp$key$m1412690177$22$element.value;
|
|
17111
17111
|
element = element.toUpperCase();
|
|
17112
17112
|
if (!this.sanitizerTable.isAllowedElement(element)) {
|
|
17113
17113
|
throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
|
|
@@ -17125,8 +17125,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17125
17125
|
throw Error("Element: " + element + " is not a custom element");
|
|
17126
17126
|
}
|
|
17127
17127
|
if (allowedAttributes) {
|
|
17128
|
-
for (var elementPolicy = new Map(), $jscomp$iter$40 = (0,$jscomp.makeIterator)(allowedAttributes), $jscomp$key$
|
|
17129
|
-
elementPolicy.set($jscomp$key$
|
|
17128
|
+
for (var elementPolicy = new Map(), $jscomp$iter$40 = (0,$jscomp.makeIterator)(allowedAttributes), $jscomp$key$m1412690177$23$attribute = $jscomp$iter$40.next(); !$jscomp$key$m1412690177$23$attribute.done; $jscomp$key$m1412690177$23$attribute = $jscomp$iter$40.next()) {
|
|
17129
|
+
elementPolicy.set($jscomp$key$m1412690177$23$attribute.value.toLowerCase(), {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
|
|
17130
17130
|
}
|
|
17131
17131
|
allowedElementPolicies.set(element, elementPolicy);
|
|
17132
17132
|
} else {
|
|
@@ -17136,15 +17136,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17136
17136
|
return this;
|
|
17137
17137
|
};
|
|
17138
17138
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowAttributes = function(attributeSet) {
|
|
17139
|
-
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$41 = (0,$jscomp.makeIterator)(attributeSet), $jscomp$key$
|
|
17140
|
-
var attribute = $jscomp$key$
|
|
17139
|
+
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$41 = (0,$jscomp.makeIterator)(attributeSet), $jscomp$key$m1412690177$24$attribute = $jscomp$iter$41.next(); !$jscomp$key$m1412690177$24$attribute.done; $jscomp$key$m1412690177$24$attribute = $jscomp$iter$41.next()) {
|
|
17140
|
+
var attribute = $jscomp$key$m1412690177$24$attribute.value;
|
|
17141
17141
|
this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
|
|
17142
17142
|
this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
|
|
17143
17143
|
}
|
|
17144
|
-
for (var $jscomp$iter$43 = (0,$jscomp.makeIterator)(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$
|
|
17145
|
-
for (var $jscomp$destructuring$var37 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17144
|
+
for (var $jscomp$iter$43 = (0,$jscomp.makeIterator)(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$m1412690177$26$ = $jscomp$iter$43.next(); !$jscomp$key$m1412690177$26$.done; $jscomp$key$m1412690177$26$ = $jscomp$iter$43.next()) {
|
|
17145
|
+
for (var $jscomp$destructuring$var37 = (0,$jscomp.makeIterator)($jscomp$key$m1412690177$26$.value), elementName__tsickle_destructured_1 = $jscomp$destructuring$var37.next().value, originalElementPolicy__tsickle_destructured_2 = $jscomp$destructuring$var37.next().value, elementName = elementName__tsickle_destructured_1, newElementPolicy = new Map(), $jscomp$iter$42 = (0,$jscomp.makeIterator)(originalElementPolicy__tsickle_destructured_2.entries()), $jscomp$key$m1412690177$25$ = $jscomp$iter$42.next(); !$jscomp$key$m1412690177$25$.done; $jscomp$key$m1412690177$25$ =
|
|
17146
17146
|
$jscomp$iter$42.next()) {
|
|
17147
|
-
var $jscomp$destructuring$var39 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17147
|
+
var $jscomp$destructuring$var39 = (0,$jscomp.makeIterator)($jscomp$key$m1412690177$25$.value), attribute__tsickle_destructured_3 = $jscomp$destructuring$var39.next().value, attributePolicy__tsickle_destructured_4 = $jscomp$destructuring$var39.next().value, attribute$jscomp$0 = attribute__tsickle_destructured_3, attributePolicy = attributePolicy__tsickle_destructured_4;
|
|
17148
17148
|
attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
|
|
17149
17149
|
}
|
|
17150
17150
|
elementPolicies.set(elementName, newElementPolicy);
|
|
@@ -17153,8 +17153,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17153
17153
|
return this;
|
|
17154
17154
|
};
|
|
17155
17155
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.allowDataAttributes = function(attributes) {
|
|
17156
|
-
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$44 = (0,$jscomp.makeIterator)(attributes), $jscomp$key$
|
|
17157
|
-
var attribute = $jscomp$key$
|
|
17156
|
+
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$44 = (0,$jscomp.makeIterator)(attributes), $jscomp$key$m1412690177$27$attribute = $jscomp$iter$44.next(); !$jscomp$key$m1412690177$27$attribute.done; $jscomp$key$m1412690177$27$attribute = $jscomp$iter$44.next()) {
|
|
17157
|
+
var attribute = $jscomp$key$m1412690177$27$attribute.value;
|
|
17158
17158
|
if (attribute.indexOf("data-") !== 0) {
|
|
17159
17159
|
throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
|
|
17160
17160
|
}
|
|
@@ -17204,7 +17204,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
17204
17204
|
};
|
|
17205
17205
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder = function() {
|
|
17206
17206
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.apply(this, arguments);
|
|
17207
|
-
this.transitionsAllowed = this.animationsAllowed = !1;
|
|
17207
|
+
this.openShadow = this.transitionsAllowed = this.animationsAllowed = !1;
|
|
17208
17208
|
};
|
|
17209
17209
|
$jscomp.inherits(module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder, module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder);
|
|
17210
17210
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.allowAnimations = function() {
|
|
@@ -17215,8 +17215,12 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
17215
17215
|
this.transitionsAllowed = !0;
|
|
17216
17216
|
return this;
|
|
17217
17217
|
};
|
|
17218
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.withOpenShadow = function() {
|
|
17219
|
+
this.openShadow = !0;
|
|
17220
|
+
return this;
|
|
17221
|
+
};
|
|
17218
17222
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.build = function() {
|
|
17219
|
-
var $jscomp$this$
|
|
17223
|
+
var $jscomp$this$m1412690177$18 = this;
|
|
17220
17224
|
this.extendSanitizerTableForCss();
|
|
17221
17225
|
var propertyDiscarders = [];
|
|
17222
17226
|
this.animationsAllowed || propertyDiscarders.push(function(property) {
|
|
@@ -17226,10 +17230,10 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
17226
17230
|
return /^transition(-|$)/.test(property);
|
|
17227
17231
|
});
|
|
17228
17232
|
return new module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(this.sanitizerTable, module$exports$safevalues$internals$secrets.secretToken, function(cssText) {
|
|
17229
|
-
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleElement(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$
|
|
17233
|
+
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleElement(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$m1412690177$18.resourceUrlPolicy, $jscomp$this$m1412690177$18.animationsAllowed, propertyDiscarders);
|
|
17230
17234
|
}, function(cssText) {
|
|
17231
|
-
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleAttribute(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$
|
|
17232
|
-
}, this.resourceUrlPolicy);
|
|
17235
|
+
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleAttribute(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$m1412690177$18.resourceUrlPolicy, propertyDiscarders);
|
|
17236
|
+
}, this.resourceUrlPolicy, this.openShadow);
|
|
17233
17237
|
};
|
|
17234
17238
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.extendSanitizerTableForCss = function() {
|
|
17235
17239
|
var allowedElements = new Set(this.sanitizerTable.allowedElements), allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), globalAttributePolicies = new Map(this.sanitizerTable.globalAttributePolicies);
|
|
@@ -17446,12 +17450,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
17446
17450
|
}
|
|
17447
17451
|
try {
|
|
17448
17452
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
17449
|
-
} catch ($jscomp$unused$catch$
|
|
17453
|
+
} catch ($jscomp$unused$catch$442189172$0) {
|
|
17450
17454
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
17451
17455
|
}
|
|
17452
17456
|
try {
|
|
17453
17457
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
17454
|
-
} catch ($jscomp$unused$catch$
|
|
17458
|
+
} catch ($jscomp$unused$catch$442189172$1) {
|
|
17455
17459
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
17456
17460
|
}
|
|
17457
17461
|
return !1;
|
|
@@ -19307,7 +19311,7 @@ var $jscomp$templatelit$m1153655765$99 = $jscomp.createTemplateTagFirstArg(["htt
|
|
|
19307
19311
|
ee.apiclient = {};
|
|
19308
19312
|
var module$contents$ee$apiclient_apiclient = {};
|
|
19309
19313
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
19310
|
-
ee.apiclient.API_CLIENT_VERSION = "1.5.
|
|
19314
|
+
ee.apiclient.API_CLIENT_VERSION = "1.5.1";
|
|
19311
19315
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
19312
19316
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
19313
19317
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -19605,8 +19609,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19605
19609
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
19606
19610
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
19607
19611
|
method = method || "POST";
|
|
19608
|
-
var headers = {"Content-Type":contentType}, version = "1.5.
|
|
19609
|
-
version === "1.5.
|
|
19612
|
+
var headers = {"Content-Type":contentType}, version = "1.5.1";
|
|
19613
|
+
version === "1.5.1" && (version = "latest");
|
|
19610
19614
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
19611
19615
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
19612
19616
|
if (authToken != null) {
|
|
@@ -26347,7 +26351,7 @@ function module$contents$goog$structs$Pool_Pool(opt_minCount, opt_maxCount) {
|
|
|
26347
26351
|
throw Error(module$contents$goog$structs$Pool_Pool.ERROR_MIN_MAX_);
|
|
26348
26352
|
}
|
|
26349
26353
|
this.freeQueue_ = new module$contents$goog$structs$Queue_Queue();
|
|
26350
|
-
this.inUseSet_ = new
|
|
26354
|
+
this.inUseSet_ = new Set();
|
|
26351
26355
|
this.delay = 0;
|
|
26352
26356
|
this.lastAccess = null;
|
|
26353
26357
|
this.adjustForMinMax();
|
|
@@ -26381,7 +26385,7 @@ module$contents$goog$structs$Pool_Pool.prototype.getObject = function() {
|
|
|
26381
26385
|
}
|
|
26382
26386
|
};
|
|
26383
26387
|
module$contents$goog$structs$Pool_Pool.prototype.releaseObject = function(obj) {
|
|
26384
|
-
return this.inUseSet_.
|
|
26388
|
+
return this.inUseSet_.delete(obj) ? (this.addFreeObject(obj), !0) : !1;
|
|
26385
26389
|
};
|
|
26386
26390
|
module$contents$goog$structs$Pool_Pool.prototype.removeFreeObject_ = function() {
|
|
26387
26391
|
for (var obj; this.getFreeCount() > 0 && (obj = this.freeQueue_.dequeue(), !this.objectCanBeReused(obj));) {
|
|
@@ -26391,7 +26395,7 @@ module$contents$goog$structs$Pool_Pool.prototype.removeFreeObject_ = function()
|
|
|
26391
26395
|
return obj;
|
|
26392
26396
|
};
|
|
26393
26397
|
module$contents$goog$structs$Pool_Pool.prototype.addFreeObject = function(obj) {
|
|
26394
|
-
this.inUseSet_.
|
|
26398
|
+
this.inUseSet_.delete(obj);
|
|
26395
26399
|
this.objectCanBeReused(obj) && this.getCount() < this.maxCount_ ? this.freeQueue_.enqueue(obj) : this.disposeObject(obj);
|
|
26396
26400
|
};
|
|
26397
26401
|
module$contents$goog$structs$Pool_Pool.prototype.adjustForMinMax = function() {
|
|
@@ -26418,19 +26422,19 @@ module$contents$goog$structs$Pool_Pool.prototype.objectCanBeReused = function(ob
|
|
|
26418
26422
|
return typeof obj.canBeReused == "function" ? obj.canBeReused() : !0;
|
|
26419
26423
|
};
|
|
26420
26424
|
module$contents$goog$structs$Pool_Pool.prototype.contains = function(obj) {
|
|
26421
|
-
return this.freeQueue_.contains(obj) || this.inUseSet_.
|
|
26425
|
+
return this.freeQueue_.contains(obj) || this.inUseSet_.has(obj);
|
|
26422
26426
|
};
|
|
26423
26427
|
module$contents$goog$structs$Pool_Pool.prototype.getCount = function() {
|
|
26424
|
-
return this.
|
|
26428
|
+
return this.getFreeCount() + this.getInUseCount();
|
|
26425
26429
|
};
|
|
26426
26430
|
module$contents$goog$structs$Pool_Pool.prototype.getInUseCount = function() {
|
|
26427
|
-
return this.inUseSet_.
|
|
26431
|
+
return this.inUseSet_.size;
|
|
26428
26432
|
};
|
|
26429
26433
|
module$contents$goog$structs$Pool_Pool.prototype.getFreeCount = function() {
|
|
26430
26434
|
return this.freeQueue_.getCount();
|
|
26431
26435
|
};
|
|
26432
26436
|
module$contents$goog$structs$Pool_Pool.prototype.isEmpty = function() {
|
|
26433
|
-
return this.
|
|
26437
|
+
return this.getFreeCount() === 0 && this.getInUseCount() === 0;
|
|
26434
26438
|
};
|
|
26435
26439
|
module$contents$goog$structs$Pool_Pool.prototype.disposeInternal = function() {
|
|
26436
26440
|
module$contents$goog$structs$Pool_Pool.superClass_.disposeInternal.call(this);
|