"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.fetchUrlParams = void 0;
const BANNED = ['mobile'];
const fetchUrlParams = function () {
  let value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  let nextValue = value;
  if (value.includes('?') && value.endsWith('/')) {
    nextValue = value.substring(0, value.length - 1);
  }
  return Object.fromEntries([...new URLSearchParams(nextValue)].filter(function () {
    let [key] = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
    return !BANNED.includes(key);
  }));
};
exports.fetchUrlParams = fetchUrlParams;
//# sourceMappingURL=fetchUrlParams.js.map