{"version":3,"sources":["jsdelivr-header.js","/npm/ai-workflows@2.1.3/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCwDS,SAAU,kBAAmB,eAAkB,uBAE/C,GAAI,qBAAsB,iBAAkB,uBAA0B,iBAEtE,MAAO,wBAAyB,oBAAqB,sBAAuB,iBAAkB,OAAQ,aAAc,mBAAuB,oBAE3I,KAAM,gBAAmB,mBAEzB,sBAAuB,0BAA6B,sBAEpD,qBAAsB,WAAY,uBAA2B,8BAE7D,gBAAiB,wBAAyB,2BAA+B,+BAEzE,gBAAiB,oBAAqB,mBAAoB,mBAAoB,mBAAoB,qBAAyB,qCAE3H,QAAS,oBAAqB,cAAe,WAAY,WAAY,yBAA6B,sBAElG,gBAAiB,oBAAqB,iBAAkB,oBAAqB,WAAY,0BAA8B","file":"/npm/ai-workflows@2.1.3/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/ai-workflows@2.1.3/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/**\n * ai-workflows - Event-driven workflows with $ context\n *\n * @example\n * ```ts\n * import { Workflow } from 'ai-workflows'\n *\n * // Create a workflow with $ context\n * const workflow = Workflow($ => {\n *   // Register event handlers\n *   $.on.Customer.created(async (customer, $) => {\n *     $.log('New customer:', customer.name)\n *     await $.send('Email.welcome', { to: customer.email })\n *   })\n *\n *   $.on.Order.completed(async (order, $) => {\n *     $.log('Order completed:', order.id)\n *   })\n *\n *   // Register scheduled tasks\n *   $.every.hour(async ($) => {\n *     $.log('Hourly check')\n *   })\n *\n *   $.every.Monday.at9am(async ($) => {\n *     $.log('Weekly standup reminder')\n *   })\n *\n *   $.every.minutes(30)(async ($) => {\n *     $.log('Every 30 minutes')\n *   })\n *\n *   // Natural language scheduling\n *   $.every('first Monday of the month', async ($) => {\n *     $.log('Monthly report')\n *   })\n * })\n *\n * // Start the workflow\n * await workflow.start()\n *\n * // Emit events\n * await workflow.send('Customer.created', { name: 'John', email: 'john@example.com' })\n * ```\n *\n * @example\n * // Alternative: Use standalone on/every for global registration\n * ```ts\n * import { on, every, send } from 'ai-workflows'\n *\n * on.Customer.created(async (customer, $) => {\n *   await $.send('Email.welcome', { to: customer.email })\n * })\n *\n * every.hour(async ($) => {\n *   $.log('Hourly task')\n * })\n *\n * await send('Customer.created', { name: 'John' })\n * ```\n */\n// Main Workflow API\nexport { Workflow, createTestContext, parseEvent } from './workflow.js';\n// Standalone event handling (for global registration)\nexport { on, registerEventHandler, getEventHandlers, clearEventHandlers } from './on.js';\n// Standalone scheduling (for global registration)\nexport { every, registerScheduleHandler, getScheduleHandlers, clearScheduleHandlers, setCronConverter, toCron, intervalToMs, formatInterval, } from './every.js';\n// Event emission\nexport { send, getEventBus } from './send.js';\n// Context\nexport { createWorkflowContext, createIsolatedContext } from './context.js';\n// Cascade Context - Correlation IDs and step metadata\nexport { createCascadeContext, recordStep, withCascadeContext, } from './cascade-context.js';\n// Dependency Graph\nexport { DependencyGraph, CircularDependencyError, MissingDependencyError, } from './dependency-graph.js';\n// Topological Sort - Execution ordering algorithms\nexport { topologicalSort, topologicalSortKahn, topologicalSortDFS, getExecutionLevels, CycleDetectedError, MissingNodeError, } from './graph/topological-sort.js';\n// Barrier/Join Semantics - Parallel step coordination\nexport { Barrier, BarrierTimeoutError, createBarrier, waitForAll, waitForAny, withConcurrencyLimit, } from './barrier.js';\n// Cascade Executor - code -> generative -> agentic -> human pattern\nexport { CascadeExecutor, CascadeTimeoutError, TierSkippedError, AllTiersFailedError, TIER_ORDER, DEFAULT_TIER_TIMEOUTS, } from './cascade-executor.js';\n"]}