import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
import {
  __export
} from "./chunk-HSLMI22Q.mjs";

// src/core/activation-event.ts
var activation_event_exports = {};
__export(activation_event_exports, {
  allOf: () => allOf,
  eventKey: () => eventKey,
  getEvents: () => getEvents,
  isAllOf: () => isAllOf,
  isOneOf: () => isOneOf,
  make: () => make,
  oneOf: () => oneOf
});
var make = (id, specifier) => {
  return {
    id,
    specifier
  };
};
var eventKey = (event) => event.specifier ? `${event.id}:${event.specifier}` : event.id;
var oneOf = (...events) => ({
  type: "one-of",
  events
});
var allOf = (...events) => ({
  type: "all-of",
  events
});
var isOneOf = (events) => "type" in events && events.type === "one-of";
var isAllOf = (events) => "type" in events && events.type === "all-of";
var getEvents = (events) => "type" in events ? events.events : [
  events
];

export {
  make,
  eventKey,
  oneOf,
  allOf,
  isOneOf,
  isAllOf,
  getEvents,
  activation_event_exports
};
//# sourceMappingURL=chunk-7OWSHPYK.mjs.map
