48 lines
1.0 KiB
JavaScript
48 lines
1.0 KiB
JavaScript
// Metro module 653 (f654).
|
|
import "./Module654";
|
|
let c576_1;
|
|
try {
|
|
if (Date.now == null) {
|
|
Date.now = () => new Date().valueOf();
|
|
}
|
|
} catch ($e) {}
|
|
c576_1 = (() => {
|
|
let navigationStart;
|
|
try {
|
|
navigationStart = global.performance.timing.navigationStart;
|
|
if (navigationStart == null) {
|
|
navigationStart = global.performance.now();
|
|
}
|
|
} catch ($e) {
|
|
return Date.now();
|
|
}
|
|
return navigationStart;
|
|
})();
|
|
export const timeOrigin = (() => {
|
|
let timeOrigin;
|
|
try {
|
|
timeOrigin = global.performance.timeOrigin;
|
|
if (timeOrigin == null) {
|
|
timeOrigin = c576_1;
|
|
}
|
|
} catch ($e) {
|
|
return Date.now();
|
|
}
|
|
return timeOrigin;
|
|
})();
|
|
if (global.performance.timing == null) {
|
|
try {
|
|
global.performance.timing = {
|
|
navigationStart: c576_1
|
|
};
|
|
} catch ($e) {}
|
|
}
|
|
if (global.performance.timeOrigin == null) {
|
|
try {
|
|
global.performance.timeOrigin = timeOrigin;
|
|
} catch ($e) {}
|
|
}
|
|
const performance2 = global.performance;
|
|
export { c576_1 as navigationStart };
|
|
export { performance2 as performance };
|