function i(e) {
  var n;
  return e instanceof Map ? (n = {}, e.forEach(function(t, r) {
    n[r] = t;
  })) : n = e, JSON.stringify(n);
}
var f = "TABS_DQ";
function a(e) {
  return String(e).replace(/"/g, f);
}
function u(e, n, t, r) {
  return (
    // Only editable tabs can be removed
    !(!t || // Tabs cannot be removed when disabled
    r || // closable is false
    e === !1 || // If closable is undefined, the remove button should be hidden when closeIcon is null or false
    e === void 0 && (n === !1 || n === null))
  );
}
export {
  a as genDataNodeKey,
  u as getRemovable,
  i as stringify
};
