"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapIntersectionObserver = wrapIntersectionObserver;
const _1 = require("../Class/$");
function wrapIntersectionObserver(intersectionObserver, system) {
    const observer = new (class IntersectionObserver_ extends _1.$ {
        constructor() {
            super(...arguments);
            this.__ = ['OB'];
        }
        observe(element, callback) {
            intersectionObserver.observe(element);
            return () => {
                intersectionObserver.unobserve(element);
            };
        }
    })(system);
    return observer;
}
//# sourceMappingURL=IntersectionObserver.js.map