try {
if (typeof PerformanceObserver === 'function') {
const types = PerformanceObserver.supportedEntryTypes;
if (!Array.isArray(types) || types.length === 0) {
const desktop = Object.freeze(['element', 'event', 'first-input',
'interaction-contentful-paint', 'largest-contentful-paint', 'layout-shift',
'long-animation-frame', 'longtask', 'mark', 'measure', 'navigation', 'paint',
'resource', 'soft-navigation', 'visibility-state']);
Object.defineProperty(PerformanceObserver, 'supportedEntryTypes', {
get: _eoka_mark(() => desktop, 'get supportedEntryTypes'),
configurable: true
});
}
}
} catch(e) {}
try {
if (window.isSecureContext === false && window.location.protocol === 'https:' &&
window.top === window) {
Object.defineProperty(window, 'isSecureContext', {
get: _eoka_mark(() => true, 'get isSecureContext'),
configurable: true
});
}
} catch(e) {}
try {
if ('sandbox' in window) {
delete window.sandbox;
}
} catch(e) {}
try {
if (!window.origin || window.origin === 'null') {
Object.defineProperty(window, 'origin', {
get: _eoka_mark(function() { return window.location.origin; }, 'get origin'),
configurable: true
});
}
} catch(e) {}