"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.lazy = exports.isInIframe = void 0;
function isInIframe() {
    return window.parent && window.parent !== window;
}
exports.isInIframe = isInIframe;
function lazy(fn) {
    let isCalled = false;
    let v;
    // @ts-ignore
    return () => {
        if (!isCalled) {
            isCalled = true;
            v = fn();
        }
        return v;
    };
}
exports.lazy = lazy;
//# sourceMappingURL=utils.js.map