"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.webQuerystring = void 0;
function webQuerystring(window, opt) {
    const querystring = {
        parse: (str) => {
            const urlSearchParams = new URLSearchParams(str);
            const obj = {};
            urlSearchParams.forEach((value, key) => {
                obj[key] = value;
            });
            return obj;
        },
        stringify: (obj) => {
            const urlSearchParams = new URLSearchParams(obj);
            const str = urlSearchParams.toString();
            return str;
        },
    };
    return querystring;
}
exports.webQuerystring = webQuerystring;
//# sourceMappingURL=querystring.js.map