"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var ordered_set_exports = {};
__export(ordered_set_exports, {
  OrderedSet: () => OrderedSet
});
module.exports = __toCommonJS(ordered_set_exports);
class OrderedSet {
  constructor(values = []) {
    const seen = /* @__PURE__ */ new Set();
    const ordered = [];
    for (const value of values) {
      if (!seen.has(value)) {
        seen.add(value);
        ordered.push(value);
      }
    }
    this.values = ordered;
  }
  static of(...values) {
    return new OrderedSet(values);
  }
  toArray() {
    return [...this.values];
  }
  [Symbol.iterator]() {
    return this.values[Symbol.iterator]();
  }
}
//# sourceMappingURL=ordered-set.js.map
