import { __require as m } from "./index-utils10.js";
var t, c;
function w() {
  if (c) return t;
  c = 1;
  var o = m();
  return t = o.isStandardBrowserEnv() ? (
    // Standard browser envs support document.cookie
    /* @__PURE__ */ (function() {
      return {
        write: function(n, i, u, s, a, f) {
          var e = [];
          e.push(n + "=" + encodeURIComponent(i)), o.isNumber(u) && e.push("expires=" + new Date(u).toGMTString()), o.isString(s) && e.push("path=" + s), o.isString(a) && e.push("domain=" + a), f === !0 && e.push("secure"), document.cookie = e.join("; ");
        },
        read: function(n) {
          var i = document.cookie.match(new RegExp("(^|;\\s*)(" + n + ")=([^;]*)"));
          return i ? decodeURIComponent(i[3]) : null;
        },
        remove: function(n) {
          this.write(n, "", Date.now() - 864e5);
        }
      };
    })()
  ) : (
    // Non standard browser env (web workers, react-native) lack needed support.
    /* @__PURE__ */ (function() {
      return {
        write: function() {
        },
        read: function() {
          return null;
        },
        remove: function() {
        }
      };
    })()
  ), t;
}
export {
  w as __require
};
