import {
  has
} from "./chunk-WPJQNT3M.mjs";
import {
  __export
} from "./chunk-QK4PKNB3.mjs";

// src/Show.ts
var Show_exports = {};
__export(Show_exports, {
  getStructShow: () => getStructShow,
  getTupleShow: () => getTupleShow,
  showBoolean: () => showBoolean,
  showNumber: () => showNumber,
  showString: () => showString,
  struct: () => struct,
  tuple: () => tuple
});
var struct = (shows) => ({
  show: (a) => {
    let s = "{";
    for (const k in shows) {
      if (has.call(shows, k)) {
        s += ` ${k}: ${shows[k].show(a[k])},`;
      }
    }
    if (s.length > 1) {
      s = s.slice(0, -1) + " ";
    }
    s += "}";
    return s;
  }
});
var tuple = (...shows) => ({
  show: (t) => `[${t.map((a, i) => shows[i].show(a)).join(", ")}]`
});
var getTupleShow = tuple;
var getStructShow = struct;
var showBoolean = {
  show: (a) => JSON.stringify(a)
};
var showString = {
  show: (a) => JSON.stringify(a)
};
var showNumber = {
  show: (a) => JSON.stringify(a)
};

export {
  struct,
  tuple,
  getTupleShow,
  getStructShow,
  showBoolean,
  showString,
  showNumber,
  Show_exports
};
