function s(e, o, r) {
  typeof r.value == "object" && (r.value = f(r.value)), !r.enumerable || r.get || r.set || !r.configurable || !r.writable || o === "__proto__" ? Object.defineProperty(e, o, r) : e[o] = r.value;
}
function f(e) {
  if (typeof e != "object")
    return e;
  var o = 0, r, n, t, c = Object.prototype.toString.call(e);
  if (c === "[object Object]" ? t = Object.create(e.__proto__ || null) : c === "[object Array]" ? t = Array(e.length) : c === "[object Set]" ? (t = /* @__PURE__ */ new Set(), e.forEach(function(i) {
    t.add(f(i));
  })) : c === "[object Map]" ? (t = /* @__PURE__ */ new Map(), e.forEach(function(i, b) {
    t.set(f(b), f(i));
  })) : c === "[object Date]" ? t = /* @__PURE__ */ new Date(+e) : c === "[object RegExp]" ? t = new RegExp(e.source, e.flags) : c === "[object DataView]" ? t = new e.constructor(f(e.buffer)) : c === "[object ArrayBuffer]" ? t = e.slice(0) : c.slice(-6) === "Array]" && (t = new e.constructor(e)), t) {
    for (n = Object.getOwnPropertySymbols(e); o < n.length; o++)
      s(t, n[o], Object.getOwnPropertyDescriptor(e, n[o]));
    for (o = 0, n = Object.getOwnPropertyNames(e); o < n.length; o++)
      Object.hasOwnProperty.call(t, r = n[o]) && t[r] === e[r] || s(t, r, Object.getOwnPropertyDescriptor(e, r));
  }
  return t || e;
}
export {
  f as klona
};
//# sourceMappingURL=index.mjs.map
