"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const APINotImplementedError_1 = require("../../../../../exception/APINotImplementedError");
const _ids_1 = require("../../../../_ids");
const Storage_1 = require("../Storage_");
class _LocalStorage extends Storage_1.default {
    constructor(system) {
        super(system, _ids_1.ID_LOCAL_STORAGE, 'local');
        this._storage = () => {
            const { api: { window: { localStorage }, }, } = this.__system;
            if (!localStorage) {
                throw new APINotImplementedError_1.APINotSupportedError('Local Storage');
            }
            return localStorage;
        };
    }
}
exports.default = _LocalStorage;
//# sourceMappingURL=index.js.map