import { __exports as i } from "../../../../../../_virtual/index4.js";
var c;
function d() {
  if (c) return i;
  c = 1;
  var s = Object.prototype.hasOwnProperty, f;
  function o(e) {
    try {
      return decodeURIComponent(e.replace(/\+/g, " "));
    } catch {
      return null;
    }
  }
  function l(e) {
    try {
      return encodeURIComponent(e);
    } catch {
      return null;
    }
  }
  function y(e) {
    for (var t = /([^=?#&]+)=?([^&]*)/g, u = {}, r; r = t.exec(e); ) {
      var n = o(r[1]), a = o(r[2]);
      n === null || a === null || n in u || (u[n] = a);
    }
    return u;
  }
  function p(e, t) {
    t = t || "";
    var u = [], r, n;
    typeof t != "string" && (t = "?");
    for (n in e)
      if (s.call(e, n)) {
        if (r = e[n], !r && (r === null || r === f || isNaN(r)) && (r = ""), n = l(n), r = l(r), n === null || r === null) continue;
        u.push(n + "=" + r);
      }
    return u.length ? t + u.join("&") : "";
  }
  return i.stringify = p, i.parse = y, i;
}
export {
  d as __require
};
//# sourceMappingURL=index.js.map
