diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 80d3671..478d152 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -62,5 +62,3 @@ jobs: uses: github/codeql-action/analyze@v3 with: category: "/language:${{matrix.language}}" - - category: "/language:${{matrix.language}}" diff --git a/README.md b/README.md index 2786936..ad1f100 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,34 @@ const orchestrator: TOrchestrator = async function* (ctx: OrchestrationContext, As an aside, you'll also notice that the example orchestration above works with custom business objects. Support for custom business objects includes support for custom classes, custom data classes, and named tuples. Serialization and deserialization of these objects is handled automatically by the SDK. You can find the full sample [here](./examples/human_interaction.ts). +### Durable Entities (Stateful Actors) +Durable entities provide a way to manage small pieces of state with a simple object-oriented programming model: + +```typescript +import { TaskEntity, EntityInstanceId } from "durabletask-js"; + +// Define an entity by extending TaskEntity +class CounterEntity extends TaskEntity<{ value: number }> { + add(amount: number): number { + this.state.value += amount; + return this.state.value; + } + + protected initializeState() { + return { value: 0 }; + } +} + +// From an orchestration, call the entity +const orchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any { + const entityId = new EntityInstanceId("Counter", "myCounter"); + const value: number = yield* ctx.entities.callEntity(entityId, "add", 5); + return value; +}; +``` + +You can find full entity samples [here](./examples/hello-world/entity-counter.ts) and [here](./examples/hello-world/entity-orchestration.ts). ## Feature overview The following features are currently supported: @@ -122,6 +149,10 @@ Orchestrations can wait for external events using the `wait_for_external_event` Orchestrations can be continued as new using the `continue_as_new` API. This API allows an orchestration to restart itself from scratch, optionally with a new input. +### Durable Entities + +Durable entities are stateful objects that can be accessed from orchestrations or directly from clients. They support operations that can read/modify state, and multiple entities can be locked together for atomic cross-entity transactions. See the detailed section below for more information. + ### Suspend, resume, and terminate Orchestrations can be suspended using the `suspend_orchestration` client API and will remain suspended until resumed using the `resume_orchestration` client API. A suspended orchestration will stop processing new events, but will continue to buffer any that happen to arrive until resumed, ensuring that no data is lost. An orchestration can also be terminated using the `terminate_orchestration` client API. Terminated orchestrations will stop processing new events and will discard any buffered events. @@ -130,6 +161,120 @@ Orchestrations can be suspended using the `suspend_orchestration` client API and Orchestrations can specify retry policies for activities and sub-orchestrations. These policies control how many times and how frequently an activity or sub-orchestration will be retried in the event of a transient error. +### Durable Entities + +Durable entities are stateful objects that can be accessed and manipulated from orchestrations or directly from clients. Entities provide a way to manage small pieces of state that need to be accessed and updated reliably. + +#### Defining an Entity + +Entities are defined by extending the `TaskEntity` class: + +```typescript +import { TaskEntity } from "durabletask-js"; + +interface CounterState { + value: number; +} + +class CounterEntity extends TaskEntity { + // Operations are just methods on the class + add(amount: number): number { + this.state.value += amount; + return this.state.value; + } + + get(): number { + return this.state.value; + } + + reset(): void { + this.state.value = 0; + } + + // Required: Initialize the entity state + protected initializeState(): CounterState { + return { value: 0 }; + } +} + +// Register with the worker +worker.addEntity("Counter", () => new CounterEntity()); +``` + +#### Accessing Entities from a Client + +Entities can be signaled (fire-and-forget) or queried from a client: + +```typescript +import { TaskHubGrpcClient, EntityInstanceId } from "durabletask-js"; + +const client = new TaskHubGrpcClient("localhost:4001"); +const entityId = new EntityInstanceId("Counter", "myCounter"); + +// Signal an operation (fire-and-forget) +await client.signalEntity(entityId, "add", 5); + +// Get the entity state +const response = await client.getEntity(entityId); +console.log(`Current value: ${response.state?.value}`); +``` + +#### Calling Entities from Orchestrations + +Orchestrations can call entities and wait for results: + +```typescript +const orchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any { + const entityId = new EntityInstanceId("Counter", "myCounter"); + + // Call entity and wait for result + const currentValue: number = yield* ctx.entities.callEntity(entityId, "get"); + + // Signal entity (fire-and-forget) + ctx.entities.signalEntity(entityId, "add", 10); + + return currentValue; +}; +``` + +#### Entity Locking (Critical Sections) + +Multiple entities can be locked together for atomic operations: + +```typescript +const transferOrchestration: TOrchestrator = async function* ( + ctx: OrchestrationContext, + input: { from: string; to: string; amount: number } +): any { + const fromEntity = new EntityInstanceId("Account", input.from); + const toEntity = new EntityInstanceId("Account", input.to); + + // Lock both entities atomically (sorted to prevent deadlocks) + const lock = yield* ctx.entities.lockEntities(fromEntity, toEntity); + + try { + const fromBalance: number = yield* ctx.entities.callEntity(fromEntity, "getBalance"); + if (fromBalance >= input.amount) { + yield* ctx.entities.callEntity(fromEntity, "withdraw", input.amount); + yield* ctx.entities.callEntity(toEntity, "deposit", input.amount); + } + } finally { + lock.release(); + } +}; +``` + +#### Entity Management + +Clean up empty or unused entities: + +```typescript +// Clean up entities that have been empty for 30 days +await client.cleanEntityStorage({ removeEmptyEntities: true }); +``` + +You can find full entity examples [here](./examples/hello-world/entity-counter.ts) and [here](./examples/hello-world/entity-orchestration.ts). + ## Getting Started ### Prerequisites diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 0000000..c63bd3a --- /dev/null +++ b/examples/README.md @@ -0,0 +1,133 @@ +# Durable Task JavaScript SDK - Examples + +This directory contains examples demonstrating various features of the Durable Task JavaScript SDK. + +## Example Applications + +Each example is a standalone application with its own README and can be run independently. + +### Basic Orchestration Examples + +Located in `hello-world/`: + +- **[Activity Sequence](./hello-world/activity-sequence.ts)**: Basic orchestration that calls three activities in sequence. +- **[Fan-out/Fan-in](./hello-world/fanout-fanin.ts)**: Orchestration that schedules multiple activities in parallel and aggregates results. +- **[Human Interaction](./hello-world/human_interaction.ts)**: Demonstrates waiting for external events in orchestrations. + +### Durable Entities Examples + +Durable Entities are stateful objects with built-in concurrency control: + +- **[Entity Counter](./entity-counter/)**: Simple counter entity demonstrating basic entity operations, signaling, and state management. +- **[Entity Orchestration](./entity-orchestration/)**: Bank transfer scenario using entity locking for atomic cross-entity operations. + +### Azure Integration Examples + +- **[Azure Managed DTS](./azure-managed/)**: Integration with Azure Managed Durable Task Scheduler using Azure authentication. +- **[Azure Managed DTS (Simple)](./azure-managed-dts.ts)**: Simplified version showing Azure DTS connection setup. + +## Prerequisites + +Examples require a Durable Task-compatible backend. Choose one: + +### Option 1: DTS Emulator (Recommended for Testing) + +The DTS Emulator is ideal for local development and testing: + +```bash +docker run --name dts-emulator -i -p 8080:8080 -d --rm mcr.microsoft.com/dts/dts-emulator:latest +``` + +Most standalone examples can run against the emulator using: + +```bash +cd examples/entity-counter +npm run start:emulator +``` + +### Option 2: Local Sidecar + +Install and run locally (requires Go 1.18+): + +```bash +# Install Dapr CLI (includes Durable Task sidecar) +https://docs.dapr.io/getting-started/install-dapr-cli/ + +# Or build from source +git clone https://github.com/microsoft/durabletask-go +cd durabletask-go +go run . start --backend Emulator +``` + +The sidecar runs on `localhost:4001` by default. + +### Option 3: Unofficial Sidecar Docker Image + +For quick local development: + +```bash +docker run \ + --name durabletask-sidecar -d --rm \ + -p 4001:4001 \ + --env 'DURABLETASK_SIDECAR_LOGLEVEL=Debug' \ + kaibocai/durabletask-sidecar:latest start \ + --backend Emulator +``` + +## Running Examples + +### Standalone Applications (Recommended) + +Standalone applications include `entity-counter` and `entity-orchestration`. Each has its own `package.json`: + +```bash +cd examples/entity-counter +npm run start:emulator # Run against DTS emulator +# OR +npm run start # Run against local sidecar on localhost:4001 +``` + +See individual README files for detailed instructions. + +### Single-File Examples + +Basic orchestration examples in `hello-world/` can be run directly: + +```bash +npm run example ./examples/hello-world/activity-sequence.ts +``` + +## Testing Against DTS Emulator + +All entity examples are designed to work with the DTS emulator: + +1. Start the DTS emulator: + ```bash + docker run --name dts-emulator -i -p 8080:8080 -d --rm mcr.microsoft.com/dts/dts-emulator:latest + ``` + +2. Run the example: + ```bash + cd examples/entity-counter + npm run start:emulator + ``` + +The emulator provides a clean, isolated environment for testing without requiring external dependencies. + +## Azure Managed DTS + +For production scenarios with Azure, see the [Azure Managed DTS example](./azure-managed/) which demonstrates: +- Connection string configuration +- Azure authentication with DefaultAzureCredential +- Environment-based configuration + +## Documentation + +For more information about Durable Task concepts: + +- **Orchestrations**: Workflow definitions that coordinate activities +- **Activities**: Units of work executed by orchestrations +- **Entities**: Stateful actors with automatic concurrency control +- **Entity Locking**: Critical sections for atomic multi-entity operations + +See the main [README](../README.md) for comprehensive documentation. diff --git a/examples/TESTING.md b/examples/TESTING.md new file mode 100644 index 0000000..5df267d --- /dev/null +++ b/examples/TESTING.md @@ -0,0 +1,141 @@ +# Testing Entity Examples Against DTS Emulator + +This guide explains how to test the entity examples (`entity-counter` and `entity-orchestration`) against the DTS emulator. + +## Prerequisites + +1. Docker installed and running +2. Node.js 22+ installed (as specified in package.json) +3. Dependencies installed: `npm install` in the repository root + +## Step 1: Start the DTS Emulator + +```bash +docker run --name dts-emulator -i -p 8080:8080 -d --rm mcr.microsoft.com/dts/dts-emulator:latest +``` + +Wait a few seconds for the emulator to be ready. + +## Step 2: Test entity-counter Example + +```bash +cd examples/entity-counter +npm run start:emulator +``` + +### Expected Output + +``` +Connecting to endpoint: localhost:8080, taskHub: default +Worker started successfully + +--- Signaling entity operations --- +Signaled: add(5) +Signaled: add(3) +Signaled: add(-2) + +--- Getting entity state --- +Counter value: 6 +Last modified: [timestamp] + +--- Resetting counter --- +Signaled: reset() +Counter value after reset: 0 + +--- Cleaning up --- +Worker stopped +``` + +## Step 3: Test entity-orchestration Example + +```bash +cd examples/entity-orchestration +npm run start:emulator +``` + +### Expected Output + +``` +Connecting to endpoint: localhost:8080, taskHub: default +Worker started successfully + +--- Initializing accounts --- +Alice balance: 1000 +Bob balance: 500 + +--- Running transfer orchestration --- +Transfer orchestration started: [instance-id] +In critical section: true +Locked entities: BankAccount@alice, BankAccount@bob +From account balance: 1000 +To account balance: 500 +Transfer completed: {"success":true,"fromBalance":750,"toBalance":750,"message":"Transferred 250 from alice to bob"} + +--- Final balances --- +Alice balance: 750 +Bob balance: 750 + +--- Cleaning up --- +Worker stopped +``` + +## Step 4: Clean Up + +Stop the DTS emulator: + +```bash +docker stop dts-emulator +``` + +## Alternative: Test Against Local Sidecar + +If you prefer to test against a local sidecar instead of the emulator: + +1. Start the sidecar on `localhost:4001` (using Dapr CLI or durabletask-go) +2. Run the examples with the default start script: + +```bash +cd examples/entity-counter +npm run start +``` + +## Troubleshooting + +### "Cannot find module" errors + +Make sure dependencies are installed: +```bash +cd /path/to/durabletask-js +npm install +``` + +### "ts-node: command not found" + +The `ts-node` package should be installed as a dev dependency. Run `npm install` in the repository root. + +### Emulator connection errors + +- Verify the emulator is running: `docker ps | grep dts-emulator` +- Check logs: `docker logs dts-emulator` +- Ensure port 8080 is not in use by another process + +### Worker fails to start + +Check that the packages are built: +```bash +npm run build +``` + +## Validation Script + +A validation script is available to check the structure: + +```bash +bash /tmp/validate_examples.sh +``` + +This verifies: +- Example directory structure +- package.json scripts +- Environment variable support +- Required imports and builders diff --git a/examples/entity-counter/README.md b/examples/entity-counter/README.md new file mode 100644 index 0000000..39f0bd8 --- /dev/null +++ b/examples/entity-counter/README.md @@ -0,0 +1,66 @@ +# Entity Counter Example + +This example demonstrates a simple Counter entity using Durable Entities. + +## What are Durable Entities? + +Durable Entities are stateful objects that can be addressed by a unique ID. They process operations one at a time, ensuring consistency without explicit locks. + +## Key Concepts + +This example demonstrates: +- Defining an entity with `TaskEntity` +- Entity operations (add, get, reset) +- Signaling entities from a client (fire-and-forget) +- Getting entity state from a client + +## Prerequisites + +You need a Durable Task-compatible backend. Choose one: + +### Option 1: DTS Emulator (Recommended for testing) + +```bash +docker run --name dts-emulator -i -p 8080:8080 -d --rm mcr.microsoft.com/dts/dts-emulator:latest +``` + +### Option 2: Local Sidecar + +Install and run the [Durable Task Sidecar](https://github.com/microsoft/durabletask-go) or [Dapr CLI](https://docs.dapr.io/getting-started/install-dapr-cli/) on `localhost:4001`. + +## Running the Example + +### With DTS Emulator + +```bash +npm run start:emulator +``` + +### With Local Sidecar + +```bash +npm run start +``` + +## Expected Output + +``` +Connecting to endpoint: localhost:8080, taskHub: default +Worker started successfully + +--- Signaling entity operations --- +Signaled: add(5) +Signaled: add(3) +Signaled: add(-2) + +--- Getting entity state --- +Counter value: 6 +Last modified: [timestamp] + +--- Resetting counter --- +Signaled: reset() +Counter value after reset: 0 + +--- Cleaning up --- +Worker stopped +``` diff --git a/examples/entity-counter/index.ts b/examples/entity-counter/index.ts new file mode 100644 index 0000000..c0cf80e --- /dev/null +++ b/examples/entity-counter/index.ts @@ -0,0 +1,178 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * This example demonstrates a simple Counter entity using Durable Entities. + * + * Durable Entities are stateful objects that can be addressed by a unique ID. + * They process operations one at a time, ensuring consistency without explicit locks. + * + * Key concepts demonstrated: + * - Defining an entity with TaskEntity + * - Entity operations (add, get, reset) + * - Signaling entities from a client (fire-and-forget) + * - Getting entity state from a client + * + * This example can run against: + * 1. DTS Emulator (default with npm run start:emulator) + * docker run --name dts-emulator -i -p 8080:8080 -d --rm mcr.microsoft.com/dts/dts-emulator:latest + * 2. Local sidecar (npm run start with localhost:4001) + */ + +import { TaskEntity, EntityInstanceId } from "@microsoft/durabletask-js"; +import { + DurableTaskAzureManagedClientBuilder, + DurableTaskAzureManagedWorkerBuilder, +} from "@microsoft/durabletask-js-azuremanaged"; + +// Read environment variables for DTS emulator or local sidecar +const endpoint = process.env.ENDPOINT || "localhost:4001"; +const taskHub = process.env.TASKHUB || "default"; + +// ============================================================================ +// Step 1: Define the entity state type +// ============================================================================ + +/** + * The state type for our Counter entity. + */ +interface CounterState { + value: number; +} + +// ============================================================================ +// Step 2: Define the Counter entity class +// ============================================================================ + +/** + * A simple counter entity that can be incremented, decremented, and reset. + * + * Operations are defined as public methods on the class. + * The operation name is the method name (case-insensitive). + */ +class CounterEntity extends TaskEntity { + /** + * Adds a value to the counter. + * @param amount - The amount to add (can be negative to subtract). + * @returns The new counter value. + */ + add(amount: number): number { + this.state.value += amount; + return this.state.value; + } + + /** + * Gets the current counter value. + * @returns The current value. + */ + get(): number { + return this.state.value; + } + + /** + * Resets the counter to zero. + */ + reset(): void { + this.state.value = 0; + } + + /** + * Initializes the entity state when it's first created. + * @returns The initial state with value = 0. + */ + protected initializeState(): CounterState { + return { value: 0 }; + } +} + +// ============================================================================ +// Step 3: Main - Set up worker and client, then interact with the entity +// ============================================================================ + +(async () => { + console.log(`Connecting to endpoint: ${endpoint}, taskHub: ${taskHub}`); + + // Build client and worker for the DTS emulator or local sidecar + const client = new DurableTaskAzureManagedClientBuilder() + .endpoint(endpoint) + .taskHubName(taskHub) + .useGrpc() + .build(); + + const worker = new DurableTaskAzureManagedWorkerBuilder() + .endpoint(endpoint) + .taskHubName(taskHub) + .useGrpc() + .build(); + + // Register the entity with the worker + worker.addNamedEntity("Counter", () => new CounterEntity()); + + try { + await worker.start(); + console.log("Worker started successfully"); + + // Create an entity ID - this identifies a specific counter instance + const counterId = new EntityInstanceId("Counter", "my-counter"); + + // ======================================================================== + // Signal the entity (fire-and-forget operations) + // ======================================================================== + + console.log("\n--- Signaling entity operations ---"); + + // Signal the counter to add 5 (doesn't wait for result) + await client.signalEntity(counterId, "add", 5); + console.log("Signaled: add(5)"); + + // Signal the counter to add 3 + await client.signalEntity(counterId, "add", 3); + console.log("Signaled: add(3)"); + + // Signal the counter to add -2 (subtract) + await client.signalEntity(counterId, "add", -2); + console.log("Signaled: add(-2)"); + + // Wait a moment for signals to be processed + await new Promise((resolve) => setTimeout(resolve, 2000)); + + // ======================================================================== + // Get the entity state + // ======================================================================== + + console.log("\n--- Getting entity state ---"); + + const metadata = await client.getEntity(counterId); + if (metadata.exists) { + console.log(`Counter value: ${metadata.state?.value}`); + console.log(`Last modified: ${metadata.lastModifiedTime}`); + } else { + console.log("Entity does not exist yet"); + } + + // ======================================================================== + // Reset and verify + // ======================================================================== + + console.log("\n--- Resetting counter ---"); + + await client.signalEntity(counterId, "reset"); + console.log("Signaled: reset()"); + + await new Promise((resolve) => setTimeout(resolve, 1000)); + + const afterReset = await client.getEntity(counterId); + console.log(`Counter value after reset: ${afterReset.state?.value}`); + + // ======================================================================== + // Clean up + // ======================================================================== + + console.log("\n--- Cleaning up ---"); + await worker.stop(); + console.log("Worker stopped"); + } catch (error) { + console.error("Error:", error); + await worker.stop(); + } +})(); diff --git a/examples/entity-counter/package.json b/examples/entity-counter/package.json new file mode 100644 index 0000000..ee201b0 --- /dev/null +++ b/examples/entity-counter/package.json @@ -0,0 +1,17 @@ +{ + "name": "entity-counter-example", + "version": "1.0.0", + "description": "Example demonstrating Durable Entities with a simple counter", + "private": true, + "scripts": { + "start": "ts-node --swc index.ts", + "start:emulator": "ENDPOINT=localhost:8080 TASKHUB=default ts-node --swc index.ts" + }, + "dependencies": { + "@microsoft/durabletask-js": "workspace:*", + "@microsoft/durabletask-js-azuremanaged": "workspace:*" + }, + "engines": { + "node": ">=22.0.0" + } +} diff --git a/examples/entity-orchestration/README.md b/examples/entity-orchestration/README.md new file mode 100644 index 0000000..9680450 --- /dev/null +++ b/examples/entity-orchestration/README.md @@ -0,0 +1,87 @@ +# Entity Orchestration Example + +This example demonstrates using Durable Entities from within orchestrations, including entity locking for atomic operations. + +## What You'll Learn + +This example demonstrates: +- Calling entities from orchestrations (request/response) +- Signaling entities from orchestrations (fire-and-forget) +- Entity locking / Critical sections for atomic operations across multiple entities + +## Scenario + +A bank transfer between two accounts (entities). We use entity locking to ensure the transfer is atomic - both the withdrawal and deposit happen together, or neither happens. + +## Prerequisites + +You need a Durable Task-compatible backend. Choose one: + +### Option 1: DTS Emulator (Recommended for testing) + +```bash +docker run --name dts-emulator -i -p 8080:8080 -d --rm mcr.microsoft.com/dts/dts-emulator:latest +``` + +### Option 2: Local Sidecar + +Install and run the [Durable Task Sidecar](https://github.com/microsoft/durabletask-go) or [Dapr CLI](https://docs.dapr.io/getting-started/install-dapr-cli/) on `localhost:4001`. + +## Running the Example + +### With DTS Emulator + +```bash +npm run start:emulator +``` + +### With Local Sidecar + +```bash +npm run start +``` + +## Expected Output + +``` +Connecting to endpoint: localhost:8080, taskHub: default +Worker started successfully + +--- Initializing accounts --- +Alice balance: 1000 +Bob balance: 500 + +--- Running transfer orchestration --- +Transfer orchestration started: [instance-id] +In critical section: true +Locked entities: BankAccount@alice, BankAccount@bob +From account balance: 1000 +To account balance: 500 +Transfer completed: {"success":true,"fromBalance":750,"toBalance":750,"message":"Transferred 250 from alice to bob"} + +--- Final balances --- +Alice balance: 750 +Bob balance: 750 + +--- Cleaning up --- +Worker stopped +``` + +## Key Concepts + +### Entity Locking + +Entity locking ensures that multiple entities can be locked together for atomic operations: + +```typescript +const lock: LockHandle = yield* ctx.entities.lockEntities(fromEntity, toEntity); +try { + // Perform atomic operations + yield* ctx.entities.callEntity(fromEntity, "withdraw", amount); + yield* ctx.entities.callEntity(toEntity, "deposit", amount); +} finally { + lock.release(); +} +``` + +This prevents race conditions when multiple orchestrations try to access the same entities concurrently. diff --git a/examples/entity-orchestration/index.ts b/examples/entity-orchestration/index.ts new file mode 100644 index 0000000..56a667d --- /dev/null +++ b/examples/entity-orchestration/index.ts @@ -0,0 +1,312 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * This example demonstrates using Durable Entities from within an orchestration. + * + * Key concepts demonstrated: + * - Calling entities from orchestrations (request/response) + * - Signaling entities from orchestrations (fire-and-forget) + * - Entity locking / Critical sections (atomic operations across multiple entities) + * + * Scenario: A bank transfer between two accounts (entities). + * We use entity locking to ensure the transfer is atomic. + * + * This example can run against: + * 1. DTS Emulator (default with npm run start:emulator) + * docker run --name dts-emulator -i -p 8080:8080 -d --rm mcr.microsoft.com/dts/dts-emulator:latest + * 2. Local sidecar (npm run start with localhost:4001) + */ + +import { + TaskEntity, + EntityInstanceId, + LockHandle, + OrchestrationContext, + TOrchestrator, +} from "@microsoft/durabletask-js"; +import { + DurableTaskAzureManagedClientBuilder, + DurableTaskAzureManagedWorkerBuilder, +} from "@microsoft/durabletask-js-azuremanaged"; + +// Read environment variables for DTS emulator or local sidecar +const endpoint = process.env.ENDPOINT || "localhost:4001"; +const taskHub = process.env.TASKHUB || "default"; + +// ============================================================================ +// Step 1: Define the BankAccount entity +// ============================================================================ + +interface BankAccountState { + balance: number; + owner: string; +} + +/** + * A bank account entity that supports deposit, withdraw, and balance queries. + */ +class BankAccountEntity extends TaskEntity { + /** + * Deposits money into the account. + * @param amount - The amount to deposit. + * @returns The new balance. + */ + deposit(amount: number): number { + if (amount < 0) { + throw new Error("Deposit amount must be positive"); + } + this.state.balance += amount; + return this.state.balance; + } + + /** + * Withdraws money from the account. + * @param amount - The amount to withdraw. + * @returns The new balance. + * @throws If insufficient funds. + */ + withdraw(amount: number): number { + if (amount < 0) { + throw new Error("Withdrawal amount must be positive"); + } + if (this.state.balance < amount) { + throw new Error(`Insufficient funds: balance=${this.state.balance}, requested=${amount}`); + } + this.state.balance -= amount; + return this.state.balance; + } + + /** + * Gets the current balance. + */ + getBalance(): number { + return this.state.balance; + } + + /** + * Sets the account owner. + */ + setOwner(owner: string): void { + this.state.owner = owner; + } + + protected initializeState(): BankAccountState { + return { balance: 0, owner: "Unknown" }; + } +} + +// ============================================================================ +// Step 2: Define the Transfer orchestration with entity locking +// ============================================================================ + +interface TransferInput { + fromAccount: string; + toAccount: string; + amount: number; +} + +interface TransferResult { + success: boolean; + fromBalance: number; + toBalance: number; + message: string; +} + +/** + * Orchestration that transfers money between two accounts atomically. + * + * Uses entity locking to ensure both accounts are locked during the transfer, + * preventing race conditions with other concurrent transfers. + */ +const transferOrchestration: TOrchestrator = async function* ( + ctx: OrchestrationContext, + input: TransferInput, +): any { + const fromEntity = new EntityInstanceId("BankAccount", input.fromAccount); + const toEntity = new EntityInstanceId("BankAccount", input.toAccount); + + // ======================================================================== + // Lock both accounts for atomic transfer + // ======================================================================== + // Entity locking ensures no other orchestration can access these entities + // until we release the lock. Entities are locked in sorted order to prevent + // deadlocks when multiple orchestrations try to lock the same entities. + + const lock: LockHandle = yield* ctx.entities.lockEntities(fromEntity, toEntity); + + try { + // Check the isInCriticalSection status + const criticalSectionInfo = ctx.entities.isInCriticalSection(); + if (!ctx.isReplaying) { + console.log(`In critical section: ${criticalSectionInfo.inSection}`); + console.log( + `Locked entities: ${criticalSectionInfo.lockedEntities?.map((e) => e.toString()).join(", ")}`, + ); + } + + // ====================================================================== + // Get current balances (within critical section) + // ====================================================================== + + const fromBalance: number = yield* ctx.entities.callEntity(fromEntity, "getBalance"); + const toBalance: number = yield* ctx.entities.callEntity(toEntity, "getBalance"); + + if (!ctx.isReplaying) { + console.log(`From account balance: ${fromBalance}`); + console.log(`To account balance: ${toBalance}`); + } + + // ====================================================================== + // Check if transfer is possible + // ====================================================================== + + if (fromBalance < input.amount) { + return { + success: false, + fromBalance, + toBalance, + message: `Insufficient funds: ${input.fromAccount} has ${fromBalance}, need ${input.amount}`, + } as TransferResult; + } + + // ====================================================================== + // Perform the transfer (within critical section - atomic!) + // ====================================================================== + + const newFromBalance: number = yield* ctx.entities.callEntity( + fromEntity, + "withdraw", + input.amount, + ); + const newToBalance: number = yield* ctx.entities.callEntity(toEntity, "deposit", input.amount); + + return { + success: true, + fromBalance: newFromBalance, + toBalance: newToBalance, + message: `Transferred ${input.amount} from ${input.fromAccount} to ${input.toAccount}`, + } as TransferResult; + } finally { + // ====================================================================== + // Release the locks (always, even on error) + // ====================================================================== + lock.release(); + } +}; + +// ============================================================================ +// Step 3: Example orchestration that signals entities without waiting +// ============================================================================ + +interface NotifyInput { + accounts: string[]; + message: string; +} + +/** + * Orchestration that sends notifications to multiple accounts. + * + * Uses signalEntity which is fire-and-forget (doesn't wait for response). + */ +// eslint-disable-next-line require-yield +const notifyOrchestration: TOrchestrator = async function* ( + ctx: OrchestrationContext, + input: NotifyInput, +): any { + // Signal each account (fire-and-forget, doesn't wait) + for (const account of input.accounts) { + const entityId = new EntityInstanceId("BankAccount", account); + + // signalEntity is synchronous and doesn't yield + ctx.entities.signalEntity(entityId, "setOwner", input.message); + } + + return `Notified ${input.accounts.length} accounts`; +}; + +// ============================================================================ +// Step 4: Main - Set up worker and run the orchestrations +// ============================================================================ + +(async () => { + console.log(`Connecting to endpoint: ${endpoint}, taskHub: ${taskHub}`); + + // Build client and worker for the DTS emulator or local sidecar + const client = new DurableTaskAzureManagedClientBuilder() + .endpoint(endpoint) + .taskHubName(taskHub) + .useGrpc() + .build(); + + const worker = new DurableTaskAzureManagedWorkerBuilder() + .endpoint(endpoint) + .taskHubName(taskHub) + .useGrpc() + .build(); + + // Register entity and orchestrations + worker.addEntity("BankAccount", () => new BankAccountEntity()); + worker.addOrchestrator(transferOrchestration); + worker.addOrchestrator(notifyOrchestration); + + try { + await worker.start(); + console.log("Worker started successfully\n"); + + const aliceAccount = new EntityInstanceId("BankAccount", "alice"); + const bobAccount = new EntityInstanceId("BankAccount", "bob"); + + // ======================================================================== + // Initialize accounts with some balance + // ======================================================================== + + console.log("--- Initializing accounts ---"); + await client.signalEntity(aliceAccount, "deposit", 1000); + await client.signalEntity(bobAccount, "deposit", 500); + await new Promise((r) => setTimeout(r, 1000)); + + const aliceState = await client.getEntity(aliceAccount); + const bobState = await client.getEntity(bobAccount); + console.log(`Alice balance: ${aliceState.state?.balance}`); + console.log(`Bob balance: ${bobState.state?.balance}`); + + // ======================================================================== + // Run transfer orchestration with entity locking + // ======================================================================== + + console.log("\n--- Running transfer orchestration ---"); + const transferInput: TransferInput = { + fromAccount: "alice", + toAccount: "bob", + amount: 250, + }; + + const instanceId = await client.scheduleNewOrchestration(transferOrchestration, transferInput); + console.log(`Transfer orchestration started: ${instanceId}`); + + const result = await client.waitForOrchestrationCompletion(instanceId, undefined, 30); + console.log(`Transfer completed: ${result.serializedOutput}`); + + // ======================================================================== + // Check final balances + // ======================================================================== + + console.log("\n--- Final balances ---"); + const aliceFinal = await client.getEntity(aliceAccount); + const bobFinal = await client.getEntity(bobAccount); + console.log(`Alice balance: ${aliceFinal.state?.balance}`); + console.log(`Bob balance: ${bobFinal.state?.balance}`); + + // ======================================================================== + // Clean up + // ======================================================================== + + console.log("\n--- Cleaning up ---"); + await worker.stop(); + console.log("Worker stopped"); + } catch (error) { + console.error("Error:", error); + await worker.stop(); + } +})(); diff --git a/examples/entity-orchestration/package.json b/examples/entity-orchestration/package.json new file mode 100644 index 0000000..8d82a71 --- /dev/null +++ b/examples/entity-orchestration/package.json @@ -0,0 +1,17 @@ +{ + "name": "entity-orchestration-example", + "version": "1.0.0", + "description": "Example demonstrating Durable Entities with orchestrations and entity locking", + "private": true, + "scripts": { + "start": "ts-node --swc index.ts", + "start:emulator": "ENDPOINT=localhost:8080 TASKHUB=default ts-node --swc index.ts" + }, + "dependencies": { + "@microsoft/durabletask-js": "workspace:*", + "@microsoft/durabletask-js-azuremanaged": "workspace:*" + }, + "engines": { + "node": ">=22.0.0" + } +} diff --git a/examples/hello-world/README.md b/examples/hello-world/README.md index 4b8d04a..e0c2496 100644 --- a/examples/hello-world/README.md +++ b/examples/hello-world/README.md @@ -23,10 +23,10 @@ All the examples assume that you have a Durable Task-compatible sidecar running ## Running the examples -With one of the sidecars running, you can simply execute any of the examples in this directory using `python3`: +With one of the sidecars running, you can simply execute any of the examples in this directory using `ts-node`: ```sh -npm run example ./examples/activity-sequence.ts +npm run example ./examples/hello-world/activity-sequence.ts ``` In some cases, the sample may require command-line parameters or user inputs. In these cases, the sample will print out instructions on how to proceed. @@ -35,38 +35,3 @@ In some cases, the sample may require command-line parameters or user inputs. In - [Activity sequence](./activity-sequence.ts): Orchestration that schedules three activity calls in a sequence. - [Fan-out/fan-in](./fanout-fanin.ts): Orchestration that schedules a dynamic number of activity calls in parallel, waits for all of them to complete, and then performs an aggregation on the results. -- [Azure Managed DTS](./azure-managed-dts.ts): Demonstrates integration with Azure Managed Durable Task Scheduler (DTS) using the portable SDK with Azure authentication. - -## Running the Azure Managed DTS example - -The Azure Managed DTS example requires an Azure Durable Task Scheduler endpoint. You can configure it using a `.env` file (recommended) or environment variables. - -### Option 1: Using a .env file (recommended) - -Create a `.env` file in the `examples` directory with your configuration: - -```env -# Using connection string -AZURE_DTS_CONNECTION_STRING=Endpoint=https://myservice.durabletask.io;Authentication=DefaultAzure;TaskHub=myTaskHub - -# Or using explicit parameters (uses DefaultAzureCredential) -# AZURE_DTS_ENDPOINT=https://myservice.durabletask.io -# AZURE_DTS_TASKHUB=myTaskHub -``` - -Then run the example: - -```sh -npm run example ./examples/azure-managed-dts.ts -``` - -> **Note**: The `.env` file is ignored by git to prevent accidental credential exposure. - -### Option 2: Using environment variables directly - -```sh -export AZURE_DTS_CONNECTION_STRING="Endpoint=https://myservice.durabletask.io;Authentication=DefaultAzure;TaskHub=myTaskHub" -npm run example ./examples/azure-managed-dts.ts -``` - -When using explicit parameters (`AZURE_DTS_ENDPOINT` and `AZURE_DTS_TASKHUB`), the example uses `DefaultAzureCredential` for authentication. Make sure you are logged in via Azure CLI (`az login`) or have appropriate credentials configured. diff --git a/package-lock.json b/package-lock.json index 16ba5eb..60b2dd2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,7347 +1,7347 @@ -{ - "name": "durabletask-js-monorepo", - "version": "0.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "durabletask-js-monorepo", - "version": "0.0.0", - "license": "MIT", - "workspaces": [ - "packages/*" - ], - "devDependencies": { - "@eslint/js": "^9.39.2", - "@swc/core": "^1.3.55", - "@swc/helpers": "^0.5.1", - "@types/jest": "^29.5.1", - "@types/node": "^18.16.1", - "dotenv": "^17.2.3", - "eslint": "^9.39.2", - "globals": "^16.2.0", - "grpc_tools_node_protoc_ts": "^5.3.3", - "grpc-tools": "^1.13.1", - "husky": "^8.0.1", - "jest": "^29.5.0", - "lint-staged": "^15.2.7", - "nodemon": "^3.1.4", - "prettier": "^3.5.3", - "pretty-quick": "^4.0.0", - "ts-jest": "^29.1.0", - "ts-node": "^10.9.1", - "typescript": "^5.0.4", - "typescript-eslint": "^8.54.0" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/@azure/abort-controller": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.1.2.tgz", - "integrity": "sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==", - "license": "MIT", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@azure/core-auth": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.10.1.tgz", - "integrity": "sha512-ykRMW8PjVAn+RS6ww5cmK9U2CyH9p4Q88YJwvUslfuMmN98w/2rdGRLPqJYObapBCdzBVeDgYWdJnFPFb7qzpg==", - "license": "MIT", - "dependencies": { - "@azure/abort-controller": "^2.1.2", - "@azure/core-util": "^1.13.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@azure/core-client": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/@azure/core-client/-/core-client-1.10.1.tgz", - "integrity": "sha512-Nh5PhEOeY6PrnxNPsEHRr9eimxLwgLlpmguQaHKBinFYA/RU9+kOYVOQqOrTsCL+KSxrLLl1gD8Dk5BFW/7l/w==", - "license": "MIT", - "dependencies": { - "@azure/abort-controller": "^2.1.2", - "@azure/core-auth": "^1.10.0", - "@azure/core-rest-pipeline": "^1.22.0", - "@azure/core-tracing": "^1.3.0", - "@azure/core-util": "^1.13.0", - "@azure/logger": "^1.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@azure/core-rest-pipeline": { - "version": "1.22.2", - "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.22.2.tgz", - "integrity": "sha512-MzHym+wOi8CLUlKCQu12de0nwcq9k9Kuv43j4Wa++CsCpJwps2eeBQwD2Bu8snkxTtDKDx4GwjuR9E8yC8LNrg==", - "license": "MIT", - "dependencies": { - "@azure/abort-controller": "^2.1.2", - "@azure/core-auth": "^1.10.0", - "@azure/core-tracing": "^1.3.0", - "@azure/core-util": "^1.13.0", - "@azure/logger": "^1.3.0", - "@typespec/ts-http-runtime": "^0.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@azure/core-tracing": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@azure/core-tracing/-/core-tracing-1.3.1.tgz", - "integrity": "sha512-9MWKevR7Hz8kNzzPLfX4EAtGM2b8mr50HPDBvio96bURP/9C+HjdH3sBlLSNNrvRAr5/k/svoH457gB5IKpmwQ==", - "license": "MIT", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@azure/core-util": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/@azure/core-util/-/core-util-1.13.1.tgz", - "integrity": "sha512-XPArKLzsvl0Hf0CaGyKHUyVgF7oDnhKoP85Xv6M4StF/1AhfORhZudHtOyf2s+FcbuQ9dPRAjB8J2KvRRMUK2A==", - "license": "MIT", - "dependencies": { - "@azure/abort-controller": "^2.1.2", - "@typespec/ts-http-runtime": "^0.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@azure/identity": { - "version": "4.13.0", - "resolved": "https://registry.npmjs.org/@azure/identity/-/identity-4.13.0.tgz", - "integrity": "sha512-uWC0fssc+hs1TGGVkkghiaFkkS7NkTxfnCH+Hdg+yTehTpMcehpok4PgUKKdyCH+9ldu6FhiHRv84Ntqj1vVcw==", - "license": "MIT", - "dependencies": { - "@azure/abort-controller": "^2.0.0", - "@azure/core-auth": "^1.9.0", - "@azure/core-client": "^1.9.2", - "@azure/core-rest-pipeline": "^1.17.0", - "@azure/core-tracing": "^1.0.0", - "@azure/core-util": "^1.11.0", - "@azure/logger": "^1.0.0", - "@azure/msal-browser": "^4.2.0", - "@azure/msal-node": "^3.5.0", - "open": "^10.1.0", - "tslib": "^2.2.0" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@azure/logger": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@azure/logger/-/logger-1.3.0.tgz", - "integrity": "sha512-fCqPIfOcLE+CGqGPd66c8bZpwAji98tZ4JI9i/mlTNTlsIWslCfpg48s/ypyLxZTump5sypjrKn2/kY7q8oAbA==", - "license": "MIT", - "dependencies": { - "@typespec/ts-http-runtime": "^0.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@azure/msal-browser": { - "version": "4.28.1", - "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-4.28.1.tgz", - "integrity": "sha512-al2u2fTchbClq3L4C1NlqLm+vwKfhYCPtZN2LR/9xJVaQ4Mnrwf5vANvuyPSJHcGvw50UBmhuVmYUAhTEetTpA==", - "license": "MIT", - "dependencies": { - "@azure/msal-common": "15.14.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@azure/msal-common": { - "version": "15.14.1", - "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-15.14.1.tgz", - "integrity": "sha512-IkzF7Pywt6QKTS0kwdCv/XV8x8JXknZDvSjj/IccooxnP373T5jaadO3FnOrbWo3S0UqkfIDyZNTaQ/oAgRdXw==", - "license": "MIT", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@azure/msal-node": { - "version": "3.8.6", - "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-3.8.6.tgz", - "integrity": "sha512-XTmhdItcBckcVVTy65Xp+42xG4LX5GK+9AqAsXPXk4IqUNv+LyQo5TMwNjuFYBfAB2GTG9iSQGk+QLc03vhf3w==", - "license": "MIT", - "dependencies": { - "@azure/msal-common": "15.14.1", - "jsonwebtoken": "^9.0.0", - "uuid": "^8.3.0" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.28.6.tgz", - "integrity": "sha512-JYgintcMjRiCvS8mMECzaEn+m3PfoQiyqukOMCCVQtoJGYJw8j/8LBJEiqkHLkfwCcs74E3pbAUFNg7d9VNJ+Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.28.5", - "js-tokens": "^4.0.0", - "picocolors": "^1.1.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.6.tgz", - "integrity": "sha512-2lfu57JtzctfIrcGMz992hyLlByuzgIk58+hhGCxjKZ3rWI82NnVLjXcaTqkI2NvlcvOskZaiZ5kjUALo3Lpxg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.6.tgz", - "integrity": "sha512-H3mcG6ZDLTlYfaSNi0iOKkigqMFvkTKlGUYlD8GW7nNOYRrevuA46iTypPyv+06V3fEmvvazfntkBU34L0azAw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/code-frame": "^7.28.6", - "@babel/generator": "^7.28.6", - "@babel/helper-compilation-targets": "^7.28.6", - "@babel/helper-module-transforms": "^7.28.6", - "@babel/helpers": "^7.28.6", - "@babel/parser": "^7.28.6", - "@babel/template": "^7.28.6", - "@babel/traverse": "^7.28.6", - "@babel/types": "^7.28.6", - "@jridgewell/remapping": "^2.3.5", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/generator": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.6.tgz", - "integrity": "sha512-lOoVRwADj8hjf7al89tvQ2a1lf53Z+7tiXMgpZJL3maQPDxh0DgLMN62B2MKUOFcoodBHLMbDM6WAbKgNy5Suw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.28.6", - "@babel/types": "^7.28.6", - "@jridgewell/gen-mapping": "^0.3.12", - "@jridgewell/trace-mapping": "^0.3.28", - "jsesc": "^3.0.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", - "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.28.6", - "@babel/helper-validator-option": "^7.27.1", - "browserslist": "^4.24.0", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-globals": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", - "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz", - "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.28.6", - "@babel/types": "^7.28.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", - "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.28.6", - "@babel/helper-validator-identifier": "^7.28.5", - "@babel/traverse": "^7.28.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz", - "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", - "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", - "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", - "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz", - "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/template": "^7.28.6", - "@babel/types": "^7.28.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.6.tgz", - "integrity": "sha512-TeR9zWR18BvbfPmGbLampPMW+uW1NZnJlRuuHso8i87QZNq2JRF9i6RgxRqtEq+wQGsS19NNTWr2duhnE49mfQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.28.6" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-bigint": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", - "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.12.13" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", - "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.28.6.tgz", - "integrity": "sha512-jiLC0ma9XkQT3TKJ9uYvlakm66Pamywo+qwL+oL8HJOvc6TWdZXVfhqJr8CCzbSGUAbDOzlGHJC1U+vRfLQDvw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.28.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.28.6.tgz", - "integrity": "sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.28.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", - "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.28.6.tgz", - "integrity": "sha512-+nDNmQye7nlnuuHDboPbGm00Vqg3oO8niRRL27/4LYHUsHYh0zJ1xWOz0uRwNFmM1Avzk8wZbc6rdiYhomzv/A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.28.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/template": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz", - "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.28.6", - "@babel/parser": "^7.28.6", - "@babel/types": "^7.28.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.6.tgz", - "integrity": "sha512-fgWX62k02qtjqdSNTAGxmKYY/7FSL9WAS1o2Hu5+I5m9T0yxZzr4cnrfXQ/MX0rIifthCSs6FKTlzYbJcPtMNg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.28.6", - "@babel/generator": "^7.28.6", - "@babel/helper-globals": "^7.28.0", - "@babel/parser": "^7.28.6", - "@babel/template": "^7.28.6", - "@babel/types": "^7.28.6", - "debug": "^4.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.6.tgz", - "integrity": "sha512-0ZrskXVEHSWIqZM/sQZ4EV3jZJXRkio/WCxaqKZP1g//CEWEPSfeZFcms4XeKBCHU0ZKnIkdJeU/kF+eRp5lBg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@bcoe/v8-coverage": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@cspotcode/source-map-support": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "0.3.9" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", - "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.2", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", - "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/config-array": { - "version": "0.21.1", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz", - "integrity": "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/object-schema": "^2.1.7", - "debug": "^4.3.1", - "minimatch": "^3.1.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/config-helpers": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", - "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/core": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", - "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.3.tgz", - "integrity": "sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.1", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/js": { - "version": "9.39.2", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.2.tgz", - "integrity": "sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", - "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/plugin-kit": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", - "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@grpc/grpc-js": { - "version": "1.14.3", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.14.3.tgz", - "integrity": "sha512-Iq8QQQ/7X3Sac15oB6p0FmUg/klxQvXLeileoqrTRGJYLV+/9tubbr9ipz0GKHjmXVsgFPo/+W+2cA8eNcR+XA==", - "license": "Apache-2.0", - "peer": true, - "dependencies": { - "@grpc/proto-loader": "^0.8.0", - "@js-sdsl/ordered-map": "^4.4.2" - }, - "engines": { - "node": ">=12.10.0" - } - }, - "node_modules/@grpc/proto-loader": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.8.0.tgz", - "integrity": "sha512-rc1hOQtjIWGxcxpb9aHAfLpIctjEnsDehj0DAiVfBlmT84uvR0uUtN2hEi/ecvWVjXUGf5qPF4qEgiLOx1YIMQ==", - "license": "Apache-2.0", - "dependencies": { - "lodash.camelcase": "^4.3.0", - "long": "^5.0.0", - "protobufjs": "^7.5.3", - "yargs": "^17.7.2" - }, - "bin": { - "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/@humanfs/core": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", - "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node": { - "version": "0.16.7", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz", - "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/core": "^0.19.1", - "@humanwhocodes/retry": "^0.4.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", - "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@isaacs/fs-minipass": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", - "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", - "dev": true, - "license": "ISC", - "dependencies": { - "minipass": "^7.0.4" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "license": "MIT", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", - "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/console": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", - "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/core": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", - "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/console": "^29.7.0", - "@jest/reporters": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-changed-files": "^29.7.0", - "jest-config": "^29.7.0", - "jest-haste-map": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-resolve-dependencies": "^29.7.0", - "jest-runner": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "jest-watcher": "^29.7.0", - "micromatch": "^4.0.4", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/@jest/environment": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", - "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-mock": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/expect": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", - "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "expect": "^29.7.0", - "jest-snapshot": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/expect-utils": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", - "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", - "dev": true, - "license": "MIT", - "dependencies": { - "jest-get-type": "^29.6.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/fake-timers": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", - "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "@sinonjs/fake-timers": "^10.0.2", - "@types/node": "*", - "jest-message-util": "^29.7.0", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/globals": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", - "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/expect": "^29.7.0", - "@jest/types": "^29.6.3", - "jest-mock": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/reporters": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", - "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@jridgewell/trace-mapping": "^0.3.18", - "@types/node": "*", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^6.0.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.1.3", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "jest-worker": "^29.7.0", - "slash": "^3.0.0", - "string-length": "^4.0.1", - "strip-ansi": "^6.0.0", - "v8-to-istanbul": "^9.0.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/@jest/schemas": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", - "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@sinclair/typebox": "^0.27.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/source-map": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", - "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.18", - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/test-result": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", - "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/console": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/test-sequencer": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", - "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/test-result": "^29.7.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/transform": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", - "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.11.6", - "@jest/types": "^29.6.3", - "@jridgewell/trace-mapping": "^0.3.18", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^2.0.0", - "fast-json-stable-stringify": "^2.1.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-util": "^29.7.0", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "write-file-atomic": "^4.0.2" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/types": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", - "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/schemas": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.13", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", - "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/remapping": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", - "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", - "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", - "dev": true, - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.31", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", - "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@js-sdsl/ordered-map": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", - "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/js-sdsl" - } - }, - "node_modules/@mapbox/node-pre-gyp": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-2.0.3.tgz", - "integrity": "sha512-uwPAhccfFJlsfCxMYTwOdVfOz3xqyj8xYL3zJj8f0pb30tLohnnFPhLuqp4/qoEz8sNxe4SESZedcBojRefIzg==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "consola": "^3.2.3", - "detect-libc": "^2.0.0", - "https-proxy-agent": "^7.0.5", - "node-fetch": "^2.6.7", - "nopt": "^8.0.0", - "semver": "^7.5.3", - "tar": "^7.4.0" - }, - "bin": { - "node-pre-gyp": "bin/node-pre-gyp" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@microsoft/durabletask-js": { - "resolved": "packages/durabletask-js", - "link": true - }, - "node_modules/@microsoft/durabletask-js-azuremanaged": { - "resolved": "packages/durabletask-js-azuremanaged", - "link": true - }, - "node_modules/@pkgr/core": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.2.9.tgz", - "integrity": "sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/pkgr" - } - }, - "node_modules/@protobufjs/aspromise": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", - "license": "BSD-3-Clause" - }, - "node_modules/@protobufjs/base64": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", - "license": "BSD-3-Clause" - }, - "node_modules/@protobufjs/codegen": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", - "license": "BSD-3-Clause" - }, - "node_modules/@protobufjs/eventemitter": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==", - "license": "BSD-3-Clause" - }, - "node_modules/@protobufjs/fetch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", - "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", - "license": "BSD-3-Clause", - "dependencies": { - "@protobufjs/aspromise": "^1.1.1", - "@protobufjs/inquire": "^1.1.0" - } - }, - "node_modules/@protobufjs/float": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", - "license": "BSD-3-Clause" - }, - "node_modules/@protobufjs/inquire": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==", - "license": "BSD-3-Clause" - }, - "node_modules/@protobufjs/path": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", - "license": "BSD-3-Clause" - }, - "node_modules/@protobufjs/pool": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", - "license": "BSD-3-Clause" - }, - "node_modules/@protobufjs/utf8": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", - "license": "BSD-3-Clause" - }, - "node_modules/@sinclair/typebox": { - "version": "0.27.8", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", - "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@sinonjs/commons": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", - "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "type-detect": "4.0.8" - } - }, - "node_modules/@sinonjs/fake-timers": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", - "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@sinonjs/commons": "^3.0.0" - } - }, - "node_modules/@swc/core": { - "version": "1.15.11", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.15.11.tgz", - "integrity": "sha512-iLmLTodbYxU39HhMPaMUooPwO/zqJWvsqkrXv1ZI38rMb048p6N7qtAtTp37sw9NzSrvH6oli8EdDygo09IZ/w==", - "dev": true, - "hasInstallScript": true, - "license": "Apache-2.0", - "peer": true, - "dependencies": { - "@swc/counter": "^0.1.3", - "@swc/types": "^0.1.25" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/swc" - }, - "optionalDependencies": { - "@swc/core-darwin-arm64": "1.15.11", - "@swc/core-darwin-x64": "1.15.11", - "@swc/core-linux-arm-gnueabihf": "1.15.11", - "@swc/core-linux-arm64-gnu": "1.15.11", - "@swc/core-linux-arm64-musl": "1.15.11", - "@swc/core-linux-x64-gnu": "1.15.11", - "@swc/core-linux-x64-musl": "1.15.11", - "@swc/core-win32-arm64-msvc": "1.15.11", - "@swc/core-win32-ia32-msvc": "1.15.11", - "@swc/core-win32-x64-msvc": "1.15.11" - }, - "peerDependencies": { - "@swc/helpers": ">=0.5.17" - }, - "peerDependenciesMeta": { - "@swc/helpers": { - "optional": true - } - } - }, - "node_modules/@swc/core-darwin-arm64": { - "version": "1.15.11", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.15.11.tgz", - "integrity": "sha512-QoIupRWVH8AF1TgxYyeA5nS18dtqMuxNwchjBIwJo3RdwLEFiJq6onOx9JAxHtuPwUkIVuU2Xbp+jCJ7Vzmgtg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-darwin-x64": { - "version": "1.15.11", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.15.11.tgz", - "integrity": "sha512-S52Gu1QtPSfBYDiejlcfp9GlN+NjTZBRRNsz8PNwBgSE626/FUf2PcllVUix7jqkoMC+t0rS8t+2/aSWlMuQtA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.15.11", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.15.11.tgz", - "integrity": "sha512-lXJs8oXo6Z4yCpimpQ8vPeCjkgoHu5NoMvmJZ8qxDyU99KVdg6KwU9H79vzrmB+HfH+dCZ7JGMqMF//f8Cfvdg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.15.11", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.15.11.tgz", - "integrity": "sha512-chRsz1K52/vj8Mfq/QOugVphlKPWlMh10V99qfH41hbGvwAU6xSPd681upO4bKiOr9+mRIZZW+EfJqY42ZzRyA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.15.11", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.15.11.tgz", - "integrity": "sha512-PYftgsTaGnfDK4m6/dty9ryK1FbLk+LosDJ/RJR2nkXGc8rd+WenXIlvHjWULiBVnS1RsjHHOXmTS4nDhe0v0w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.15.11", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.15.11.tgz", - "integrity": "sha512-DKtnJKIHiZdARyTKiX7zdRjiDS1KihkQWatQiCHMv+zc2sfwb4Glrodx2VLOX4rsa92NLR0Sw8WLcPEMFY1szQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-x64-musl": { - "version": "1.15.11", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.15.11.tgz", - "integrity": "sha512-mUjjntHj4+8WBaiDe5UwRNHuEzLjIWBTSGTw0JT9+C9/Yyuh4KQqlcEQ3ro6GkHmBGXBFpGIj/o5VMyRWfVfWw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.15.11", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.15.11.tgz", - "integrity": "sha512-ZkNNG5zL49YpaFzfl6fskNOSxtcZ5uOYmWBkY4wVAvgbSAQzLRVBp+xArGWh2oXlY/WgL99zQSGTv7RI5E6nzA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.15.11", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.15.11.tgz", - "integrity": "sha512-6XnzORkZCQzvTQ6cPrU7iaT9+i145oLwnin8JrfsLG41wl26+5cNQ2XV3zcbrnFEV6esjOceom9YO1w9mGJByw==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.15.11", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.15.11.tgz", - "integrity": "sha512-IQ2n6af7XKLL6P1gIeZACskSxK8jWtoKpJWLZmdXTDj1MGzktUy4i+FvpdtxFmJWNavRWH1VmTr6kAubRDHeKw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/counter": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", - "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/@swc/helpers": { - "version": "0.5.18", - "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.18.tgz", - "integrity": "sha512-TXTnIcNJQEKwThMMqBXsZ4VGAza6bvN4pa41Rkqoio6QBKMvo+5lexeTMScGCIxtzgQJzElcvIltani+adC5PQ==", - "dev": true, - "license": "Apache-2.0", - "peer": true, - "dependencies": { - "tslib": "^2.8.0" - } - }, - "node_modules/@swc/types": { - "version": "0.1.25", - "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.25.tgz", - "integrity": "sha512-iAoY/qRhNH8a/hBvm3zKj9qQ4oc2+3w1unPJa2XvTK3XjeLXtzcCingVPw/9e5mn1+0yPqxcBGp9Jf0pkfMb1g==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@swc/counter": "^0.1.3" - } - }, - "node_modules/@tsconfig/node10": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.12.tgz", - "integrity": "sha512-UCYBaeFvM11aU2y3YPZ//O5Rhj+xKyzy7mvcIoAjASbigy8mHMryP5cK7dgjlz2hWxh1g5pLw084E0a/wlUSFQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true, - "license": "MIT" - }, - "node_modules/@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "dev": true, - "license": "MIT" - }, - "node_modules/@tsconfig/node16": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", - "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/babel__core": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", - "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", - "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", - "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", - "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.28.2" - } - }, - "node_modules/@types/estree": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", - "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/google-protobuf": { - "version": "3.15.12", - "resolved": "https://registry.npmjs.org/@types/google-protobuf/-/google-protobuf-3.15.12.tgz", - "integrity": "sha512-40um9QqwHjRS92qnOaDpL7RmDK15NuZYo9HihiJRbYkMQZlWnuH8AdvbMy8/o6lgLmKbDUKa+OALCltHdbOTpQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/graceful-fs": { - "version": "4.1.9", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", - "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", - "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/istanbul-lib-report": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", - "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/istanbul-lib-coverage": "*" - } - }, - "node_modules/@types/istanbul-reports": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", - "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@types/jest": { - "version": "29.5.14", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.14.tgz", - "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "expect": "^29.0.0", - "pretty-format": "^29.0.0" - } - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "18.19.130", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.130.tgz", - "integrity": "sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==", - "license": "MIT", - "peer": true, - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/@types/stack-utils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", - "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/yargs": { - "version": "17.0.35", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz", - "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/@types/yargs-parser": { - "version": "21.0.3", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", - "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.54.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.54.0.tgz", - "integrity": "sha512-hAAP5io/7csFStuOmR782YmTthKBJ9ND3WVL60hcOjvtGFb+HJxH4O5huAcmcZ9v9G8P+JETiZ/G1B8MALnWZQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.54.0", - "@typescript-eslint/type-utils": "8.54.0", - "@typescript-eslint/utils": "8.54.0", - "@typescript-eslint/visitor-keys": "8.54.0", - "ignore": "^7.0.5", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.4.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^8.54.0", - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", - "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "8.54.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.54.0.tgz", - "integrity": "sha512-BtE0k6cjwjLZoZixN0t5AKP0kSzlGu7FctRXYuPAm//aaiZhmfq1JwdYpYr1brzEspYyFeF+8XF5j2VK6oalrA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@typescript-eslint/scope-manager": "8.54.0", - "@typescript-eslint/types": "8.54.0", - "@typescript-eslint/typescript-estree": "8.54.0", - "@typescript-eslint/visitor-keys": "8.54.0", - "debug": "^4.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/project-service": { - "version": "8.54.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.54.0.tgz", - "integrity": "sha512-YPf+rvJ1s7MyiWM4uTRhE4DvBXrEV+d8oC3P9Y2eT7S+HBS0clybdMIPnhiATi9vZOYDc7OQ1L/i6ga6NFYK/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.54.0", - "@typescript-eslint/types": "^8.54.0", - "debug": "^4.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "8.54.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.54.0.tgz", - "integrity": "sha512-27rYVQku26j/PbHYcVfRPonmOlVI6gihHtXFbTdB5sb6qA0wdAQAbyXFVarQ5t4HRojIz64IV90YtsjQSSGlQg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.54.0", - "@typescript-eslint/visitor-keys": "8.54.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.54.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.54.0.tgz", - "integrity": "sha512-dRgOyT2hPk/JwxNMZDsIXDgyl9axdJI3ogZ2XWhBPsnZUv+hPesa5iuhdYt2gzwA9t8RE5ytOJ6xB0moV0Ujvw==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "8.54.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.54.0.tgz", - "integrity": "sha512-hiLguxJWHjjwL6xMBwD903ciAwd7DmK30Y9Axs/etOkftC3ZNN9K44IuRD/EB08amu+Zw6W37x9RecLkOo3pMA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.54.0", - "@typescript-eslint/typescript-estree": "8.54.0", - "@typescript-eslint/utils": "8.54.0", - "debug": "^4.4.3", - "ts-api-utils": "^2.4.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/types": { - "version": "8.54.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.54.0.tgz", - "integrity": "sha512-PDUI9R1BVjqu7AUDsRBbKMtwmjWcn4J3le+5LpcFgWULN3LvHC5rkc9gCVxbrsrGmO1jfPybN5s6h4Jy+OnkAA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.54.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.54.0.tgz", - "integrity": "sha512-BUwcskRaPvTk6fzVWgDPdUndLjB87KYDrN5EYGetnktoeAvPtO4ONHlAZDnj5VFnUANg0Sjm7j4usBlnoVMHwA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/project-service": "8.54.0", - "@typescript-eslint/tsconfig-utils": "8.54.0", - "@typescript-eslint/types": "8.54.0", - "@typescript-eslint/visitor-keys": "8.54.0", - "debug": "^4.4.3", - "minimatch": "^9.0.5", - "semver": "^7.7.3", - "tinyglobby": "^0.2.15", - "ts-api-utils": "^2.4.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", - "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "8.54.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.54.0.tgz", - "integrity": "sha512-9Cnda8GS57AQakvRyG0PTejJNlA2xhvyNtEVIMlDWOOeEyBkYWhGPnfrIAnqxLMTSTo6q8g12XVjjev5l1NvMA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.54.0", - "@typescript-eslint/types": "8.54.0", - "@typescript-eslint/typescript-estree": "8.54.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.54.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.54.0.tgz", - "integrity": "sha512-VFlhGSl4opC0bprJiItPQ1RfUhGDIBokcPwaFH4yiBCaNPeld/9VeXbiPO1cLyorQi1G1vL+ecBk1x8o1axORA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.54.0", - "eslint-visitor-keys": "^4.2.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typespec/ts-http-runtime": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@typespec/ts-http-runtime/-/ts-http-runtime-0.3.2.tgz", - "integrity": "sha512-IlqQ/Gv22xUC1r/WQm4StLkYQmaaTsXAhUVsNE0+xiyf0yRFiH5++q78U3bw6bLKDCTmh0uqKB9eG9+Bt75Dkg==", - "license": "MIT", - "dependencies": { - "http-proxy-agent": "^7.0.0", - "https-proxy-agent": "^7.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/abbrev": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-3.0.1.tgz", - "integrity": "sha512-AO2ac6pjRB3SJmGJo+v5/aK6Omggp6fsLrs6wN9bd35ulu4cCwaAU9+7ZhXjeqHVkaHThLuzH0nZr0YpCDhygg==", - "dev": true, - "license": "ISC", - "engines": { - "node": "^18.17.0 || >=20.5.0" - } - }, - "node_modules/acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", - "dev": true, - "license": "MIT", - "peer": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/acorn-walk": { - "version": "8.3.4", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", - "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", - "dev": true, - "license": "MIT", - "dependencies": { - "acorn": "^8.11.0" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/agent-base": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", - "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", - "license": "MIT", - "engines": { - "node": ">= 14" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "license": "ISC", - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true, - "license": "MIT" - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0" - }, - "node_modules/babel-jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", - "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/transform": "^29.7.0", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^29.6.3", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.8.0" - } - }, - "node_modules/babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-plugin-istanbul/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/babel-plugin-jest-hoist": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", - "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.1.14", - "@types/babel__traverse": "^7.0.6" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/babel-preset-current-node-syntax": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz", - "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-import-attributes": "^7.24.7", - "@babel/plugin-syntax-import-meta": "^7.10.4", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5" - }, - "peerDependencies": { - "@babel/core": "^7.0.0 || ^8.0.0-0" - } - }, - "node_modules/babel-preset-jest": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", - "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", - "dev": true, - "license": "MIT", - "dependencies": { - "babel-plugin-jest-hoist": "^29.6.3", - "babel-preset-current-node-syntax": "^1.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/baseline-browser-mapping": { - "version": "2.9.19", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.19.tgz", - "integrity": "sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "baseline-browser-mapping": "dist/cli.js" - } - }, - "node_modules/binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browserslist": { - "version": "4.28.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", - "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "peer": true, - "dependencies": { - "baseline-browser-mapping": "^2.9.0", - "caniuse-lite": "^1.0.30001759", - "electron-to-chromium": "^1.5.263", - "node-releases": "^2.0.27", - "update-browserslist-db": "^1.2.0" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/bs-logger": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", - "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-json-stable-stringify": "2.x" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "node-int64": "^0.4.0" - } - }, - "node_modules/buffer-equal-constant-time": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", - "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", - "license": "BSD-3-Clause" - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/bundle-name": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz", - "integrity": "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==", - "license": "MIT", - "dependencies": { - "run-applescript": "^7.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001766", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001766.tgz", - "integrity": "sha512-4C0lfJ0/YPjJQHagaE9x2Elb69CIqEPZeG0anQt9SIvIoOH4a4uaRl73IavyO+0qZh6MDLH//DrXThEYKHkmYA==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "CC-BY-4.0" - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/char-regex": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/chokidar/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/chownr": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", - "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", - "dev": true, - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=18" - } - }, - "node_modules/ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/cjs-module-lexer": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", - "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/cli-cursor": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz", - "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==", - "dev": true, - "license": "MIT", - "dependencies": { - "restore-cursor": "^5.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cli-truncate": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-4.0.0.tgz", - "integrity": "sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==", - "dev": true, - "license": "MIT", - "dependencies": { - "slice-ansi": "^5.0.0", - "string-width": "^7.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/cliui/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "license": "MIT" - }, - "node_modules/cliui/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", - "dev": true, - "license": "MIT", - "engines": { - "iojs": ">= 1.0.0", - "node": ">= 0.12.0" - } - }, - "node_modules/collect-v8-coverage": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz", - "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==", - "dev": true, - "license": "MIT" - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "license": "MIT" - }, - "node_modules/colorette": { - "version": "2.0.20", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", - "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", - "dev": true, - "license": "MIT" - }, - "node_modules/commander": { - "version": "13.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz", - "integrity": "sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" - }, - "node_modules/consola": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/consola/-/consola-3.4.2.tgz", - "integrity": "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^14.18.0 || >=16.10.0" - } - }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true, - "license": "MIT" - }, - "node_modules/create-jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", - "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-config": "^29.7.0", - "jest-util": "^29.7.0", - "prompts": "^2.0.1" - }, - "bin": { - "create-jest": "bin/create-jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/create-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/dedent": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.1.tgz", - "integrity": "sha512-9JmrhGZpOlEgOLdQgSm0zxFaYoQon408V1v49aqTWuXENVlnCuY9JBZcXZiCsZQWDjTm5Qf/nIvAy77mXDAjEg==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "babel-plugin-macros": "^3.1.0" - }, - "peerDependenciesMeta": { - "babel-plugin-macros": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/default-browser": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.4.0.tgz", - "integrity": "sha512-XDuvSq38Hr1MdN47EDvYtx3U0MTqpCEn+F6ft8z2vYDzMrvQhVp0ui9oQdqW3MvK3vqUETglt1tVGgjLuJ5izg==", - "license": "MIT", - "dependencies": { - "bundle-name": "^4.1.0", - "default-browser-id": "^5.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/default-browser-id": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.1.tgz", - "integrity": "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/define-lazy-prop": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", - "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/detect-libc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", - "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=8" - } - }, - "node_modules/detect-newline": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/diff": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.4.tgz", - "integrity": "sha512-X07nttJQkwkfKfvTPG/KSnE2OMdcUCao6+eXF3wmnIQRn2aPAHH3VxDbDOdegkd6JbPsXqShpvEOHfAT+nCNwQ==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/diff-sequences": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", - "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/dotenv": { - "version": "17.2.3", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.3.tgz", - "integrity": "sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://dotenvx.com" - } - }, - "node_modules/ecdsa-sig-formatter": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", - "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", - "license": "Apache-2.0", - "dependencies": { - "safe-buffer": "^5.0.1" - } - }, - "node_modules/electron-to-chromium": { - "version": "1.5.283", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.283.tgz", - "integrity": "sha512-3vifjt1HgrGW/h76UEeny+adYApveS9dH2h3p57JYzBSXJIKUJAvtmIytDKjcSCt9xHfrNCFJ7gts6vkhuq++w==", - "dev": true, - "license": "ISC" - }, - "node_modules/emittery": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", - "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sindresorhus/emittery?sponsor=1" - } - }, - "node_modules/emoji-regex": { - "version": "10.6.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", - "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==", - "dev": true, - "license": "MIT" - }, - "node_modules/environment": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz", - "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/error-ex": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", - "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "9.39.2", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.2.tgz", - "integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.8.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.21.1", - "@eslint/config-helpers": "^0.4.2", - "@eslint/core": "^0.17.0", - "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.39.2", - "@eslint/plugin-kit": "^0.4.1", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.4.0", - "eslint-visitor-keys": "^4.2.1", - "espree": "^10.4.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, - "node_modules/eslint-scope": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", - "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", - "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", - "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.15.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "license": "BSD-2-Clause", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/esquery": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", - "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eventemitter3": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz", - "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==", - "dev": true, - "license": "MIT" - }, - "node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dev": true, - "license": "MIT", - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/expect": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", - "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/expect-utils": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fb-watchman": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", - "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "bser": "2.1.1" - } - }, - "node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", - "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", - "dev": true, - "license": "ISC" - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true, - "license": "ISC" - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "license": "ISC", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/get-east-asian-width": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.4.0.tgz", - "integrity": "sha512-QZjmEOC+IT1uk6Rx0sX22V6uHWVwbdbxf1faPqJ1QhLdGgsRGCZoyaQBm/piRdJy/D2um6hM1UP7ZEeQ4EkP+Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/get-package-type": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/globals": { - "version": "16.5.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", - "integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/google-protobuf": { - "version": "3.15.8", - "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.15.8.tgz", - "integrity": "sha512-2jtfdqTaSxk0cuBJBtTTWsot4WtR9RVr2rXg7x7OoqiuOKopPrwXpM1G4dXIkLcUNRh3RKzz76C8IOkksZSeOw==", - "dev": true, - "license": "BSD-3-Clause" - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/grpc_tools_node_protoc_ts": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/grpc_tools_node_protoc_ts/-/grpc_tools_node_protoc_ts-5.3.3.tgz", - "integrity": "sha512-M/YrklvVXMtuuj9kb42PxeouZhs7Ul+R4e/31XwrankUcKL8cQQP50Q9q+KEHGyHQaPt6VtKKsxMgLaKbCxeww==", - "dev": true, - "license": "MIT", - "dependencies": { - "google-protobuf": "3.15.8", - "handlebars": "4.7.7" - }, - "bin": { - "protoc-gen-ts": "bin/protoc-gen-ts" - } - }, - "node_modules/grpc-tools": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/grpc-tools/-/grpc-tools-1.13.1.tgz", - "integrity": "sha512-0sttMUxThNIkCTJq5qI0xXMz5zWqV2u3yG1kR3Sj9OokGIoyRBFjoInK9NyW7x5fH7knj48Roh1gq5xbl0VoDQ==", - "dev": true, - "hasInstallScript": true, - "dependencies": { - "@mapbox/node-pre-gyp": "^2.0.0" - }, - "bin": { - "grpc_tools_node_protoc": "bin/protoc.js", - "grpc_tools_node_protoc_plugin": "bin/protoc_plugin.js" - } - }, - "node_modules/handlebars": { - "version": "4.7.7", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", - "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", - "dev": true, - "license": "MIT", - "dependencies": { - "minimist": "^1.2.5", - "neo-async": "^2.6.0", - "source-map": "^0.6.1", - "wordwrap": "^1.0.0" - }, - "bin": { - "handlebars": "bin/handlebars" - }, - "engines": { - "node": ">=0.4.7" - }, - "optionalDependencies": { - "uglify-js": "^3.1.4" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true, - "license": "MIT" - }, - "node_modules/http-proxy-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", - "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.0", - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/https-proxy-agent": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", - "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.2", - "debug": "4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=10.17.0" - } - }, - "node_modules/husky": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", - "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", - "dev": true, - "license": "MIT", - "bin": { - "husky": "lib/bin.js" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/typicode" - } - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/ignore-by-default": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", - "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", - "dev": true, - "license": "ISC" - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-local": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", - "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", - "dev": true, - "license": "MIT", - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", - "dev": true, - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true, - "license": "MIT" - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "license": "MIT", - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-core-module": { - "version": "2.16.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", - "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", - "dev": true, - "license": "MIT", - "dependencies": { - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-docker": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", - "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", - "license": "MIT", - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz", - "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-generator-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", - "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-inside-container": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", - "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", - "license": "MIT", - "dependencies": { - "is-docker": "^3.0.0" - }, - "bin": { - "is-inside-container": "cli.js" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-wsl": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.0.tgz", - "integrity": "sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==", - "license": "MIT", - "dependencies": { - "is-inside-container": "^1.0.0" - }, - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" - }, - "node_modules/istanbul-lib-coverage": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", - "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-instrument": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", - "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@babel/core": "^7.23.9", - "@babel/parser": "^7.23.9", - "@istanbuljs/schema": "^0.1.3", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^7.5.4" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-lib-report": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", - "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^4.0.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-reports": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz", - "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", - "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@jest/core": "^29.7.0", - "@jest/types": "^29.6.3", - "import-local": "^3.0.2", - "jest-cli": "^29.7.0" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/jest-changed-files": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", - "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", - "dev": true, - "license": "MIT", - "dependencies": { - "execa": "^5.0.0", - "jest-util": "^29.7.0", - "p-limit": "^3.1.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-circus": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", - "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/expect": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "dedent": "^1.0.0", - "is-generator-fn": "^2.0.0", - "jest-each": "^29.7.0", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "p-limit": "^3.1.0", - "pretty-format": "^29.7.0", - "pure-rand": "^6.0.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-cli": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", - "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/core": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "create-jest": "^29.7.0", - "exit": "^0.1.2", - "import-local": "^3.0.2", - "jest-config": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "yargs": "^17.3.1" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/jest-config": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", - "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.11.6", - "@jest/test-sequencer": "^29.7.0", - "@jest/types": "^29.6.3", - "babel-jest": "^29.7.0", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-circus": "^29.7.0", - "jest-environment-node": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-runner": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "micromatch": "^4.0.4", - "parse-json": "^5.2.0", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@types/node": "*", - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "ts-node": { - "optional": true - } - } - }, - "node_modules/jest-diff": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", - "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^29.6.3", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-docblock": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", - "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", - "dev": true, - "license": "MIT", - "dependencies": { - "detect-newline": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-each": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", - "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "jest-get-type": "^29.6.3", - "jest-util": "^29.7.0", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-environment-node": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", - "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-get-type": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", - "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-haste-map": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", - "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "@types/graceful-fs": "^4.1.3", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^29.6.3", - "jest-util": "^29.7.0", - "jest-worker": "^29.7.0", - "micromatch": "^4.0.4", - "walker": "^1.0.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "optionalDependencies": { - "fsevents": "^2.3.2" - } - }, - "node_modules/jest-leak-detector": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", - "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", - "dev": true, - "license": "MIT", - "dependencies": { - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-matcher-utils": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", - "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^29.7.0", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-message-util": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", - "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^29.6.3", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-mock": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", - "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-pnp-resolver": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", - "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - }, - "peerDependencies": { - "jest-resolve": "*" - }, - "peerDependenciesMeta": { - "jest-resolve": { - "optional": true - } - } - }, - "node_modules/jest-regex-util": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", - "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-resolve": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", - "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "resolve": "^1.20.0", - "resolve.exports": "^2.0.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-resolve-dependencies": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", - "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", - "dev": true, - "license": "MIT", - "dependencies": { - "jest-regex-util": "^29.6.3", - "jest-snapshot": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-runner": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", - "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/console": "^29.7.0", - "@jest/environment": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "graceful-fs": "^4.2.9", - "jest-docblock": "^29.7.0", - "jest-environment-node": "^29.7.0", - "jest-haste-map": "^29.7.0", - "jest-leak-detector": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-resolve": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-util": "^29.7.0", - "jest-watcher": "^29.7.0", - "jest-worker": "^29.7.0", - "p-limit": "^3.1.0", - "source-map-support": "0.5.13" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-runtime": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", - "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/fake-timers": "^29.7.0", - "@jest/globals": "^29.7.0", - "@jest/source-map": "^29.6.3", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-mock": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "slash": "^3.0.0", - "strip-bom": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-snapshot": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", - "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.11.6", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-jsx": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/types": "^7.3.3", - "@jest/expect-utils": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^29.7.0", - "graceful-fs": "^4.2.9", - "jest-diff": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "natural-compare": "^1.4.0", - "pretty-format": "^29.7.0", - "semver": "^7.5.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-util": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", - "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-validate": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", - "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "camelcase": "^6.2.0", - "chalk": "^4.0.0", - "jest-get-type": "^29.6.3", - "leven": "^3.1.0", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-validate/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/jest-watcher": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", - "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "jest-util": "^29.7.0", - "string-length": "^4.0.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-worker": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", - "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*", - "jest-util": "^29.7.0", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-worker/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/js-yaml": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", - "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsesc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", - "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", - "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "license": "MIT", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsonwebtoken": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.3.tgz", - "integrity": "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g==", - "license": "MIT", - "dependencies": { - "jws": "^4.0.1", - "lodash.includes": "^4.3.0", - "lodash.isboolean": "^3.0.3", - "lodash.isinteger": "^4.0.4", - "lodash.isnumber": "^3.0.3", - "lodash.isplainobject": "^4.0.6", - "lodash.isstring": "^4.0.1", - "lodash.once": "^4.0.0", - "ms": "^2.1.1", - "semver": "^7.5.4" - }, - "engines": { - "node": ">=12", - "npm": ">=6" - } - }, - "node_modules/jwa": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", - "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", - "license": "MIT", - "dependencies": { - "buffer-equal-constant-time": "^1.0.1", - "ecdsa-sig-formatter": "1.0.11", - "safe-buffer": "^5.0.1" - } - }, - "node_modules/jws": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", - "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", - "license": "MIT", - "dependencies": { - "jwa": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/lilconfig": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", - "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/antonk52" - } - }, - "node_modules/lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", - "dev": true, - "license": "MIT" - }, - "node_modules/lint-staged": { - "version": "15.5.2", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-15.5.2.tgz", - "integrity": "sha512-YUSOLq9VeRNAo/CTaVmhGDKG+LBtA8KF1X4K5+ykMSwWST1vDxJRB2kv2COgLb1fvpCo+A/y9A0G0znNVmdx4w==", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^5.4.1", - "commander": "^13.1.0", - "debug": "^4.4.0", - "execa": "^8.0.1", - "lilconfig": "^3.1.3", - "listr2": "^8.2.5", - "micromatch": "^4.0.8", - "pidtree": "^0.6.0", - "string-argv": "^0.3.2", - "yaml": "^2.7.0" - }, - "bin": { - "lint-staged": "bin/lint-staged.js" - }, - "engines": { - "node": ">=18.12.0" - }, - "funding": { - "url": "https://opencollective.com/lint-staged" - } - }, - "node_modules/lint-staged/node_modules/chalk": { - "version": "5.6.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz", - "integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/lint-staged/node_modules/execa": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", - "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", - "dev": true, - "license": "MIT", - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^8.0.1", - "human-signals": "^5.0.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^4.1.0", - "strip-final-newline": "^3.0.0" - }, - "engines": { - "node": ">=16.17" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/lint-staged/node_modules/get-stream": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", - "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lint-staged/node_modules/human-signals": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", - "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=16.17.0" - } - }, - "node_modules/lint-staged/node_modules/is-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lint-staged/node_modules/mimic-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lint-staged/node_modules/npm-run-path": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", - "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lint-staged/node_modules/onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-fn": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lint-staged/node_modules/path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lint-staged/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/lint-staged/node_modules/strip-final-newline": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", - "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/listr2": { - "version": "8.3.3", - "resolved": "https://registry.npmjs.org/listr2/-/listr2-8.3.3.tgz", - "integrity": "sha512-LWzX2KsqcB1wqQ4AHgYb4RsDXauQiqhjLk+6hjbaeHG4zpjjVAB6wC/gz6X0l+Du1cN3pUB5ZlrvTbhGSNnUQQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "cli-truncate": "^4.0.0", - "colorette": "^2.0.20", - "eventemitter3": "^5.0.1", - "log-update": "^6.1.0", - "rfdc": "^1.4.1", - "wrap-ansi": "^9.0.0" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.camelcase": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", - "license": "MIT" - }, - "node_modules/lodash.includes": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", - "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==", - "license": "MIT" - }, - "node_modules/lodash.isboolean": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", - "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==", - "license": "MIT" - }, - "node_modules/lodash.isinteger": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", - "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==", - "license": "MIT" - }, - "node_modules/lodash.isnumber": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", - "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==", - "license": "MIT" - }, - "node_modules/lodash.isplainobject": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", - "license": "MIT" - }, - "node_modules/lodash.isstring": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", - "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", - "license": "MIT" - }, - "node_modules/lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.once": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", - "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", - "license": "MIT" - }, - "node_modules/log-update": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/log-update/-/log-update-6.1.0.tgz", - "integrity": "sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-escapes": "^7.0.0", - "cli-cursor": "^5.0.0", - "slice-ansi": "^7.1.0", - "strip-ansi": "^7.1.0", - "wrap-ansi": "^9.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-update/node_modules/ansi-escapes": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.2.0.tgz", - "integrity": "sha512-g6LhBsl+GBPRWGWsBtutpzBYuIIdBkLEvad5C/va/74Db018+5TZiyA26cZJAr3Rft5lprVqOIPxf5Vid6tqAw==", - "dev": true, - "license": "MIT", - "dependencies": { - "environment": "^1.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-update/node_modules/ansi-regex": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", - "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/log-update/node_modules/ansi-styles": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", - "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/log-update/node_modules/is-fullwidth-code-point": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.1.0.tgz", - "integrity": "sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "get-east-asian-width": "^1.3.1" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-update/node_modules/slice-ansi": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.2.tgz", - "integrity": "sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.2.1", - "is-fullwidth-code-point": "^5.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/log-update/node_modules/strip-ansi": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", - "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/long": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", - "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", - "license": "Apache-2.0" - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/make-dir": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", - "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^7.5.3" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true, - "license": "ISC" - }, - "node_modules/makeerror": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "tmpl": "1.0.5" - } - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true, - "license": "MIT" - }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "license": "MIT", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/mimic-function": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz", - "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/minizlib": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", - "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==", - "dev": true, - "license": "MIT", - "dependencies": { - "minipass": "^7.1.2" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/mri": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", - "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "license": "MIT" - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true, - "license": "MIT" - }, - "node_modules/neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "dev": true, - "license": "MIT" - }, - "node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/node-int64": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true, - "license": "MIT" - }, - "node_modules/node-releases": { - "version": "2.0.27", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", - "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", - "dev": true, - "license": "MIT" - }, - "node_modules/nodemon": { - "version": "3.1.11", - "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.11.tgz", - "integrity": "sha512-is96t8F/1//UHAjNPHpbsNY46ELPpftGUoSVNXwUfMk/qdjSylYrWSu1XavVTBOn526kFiOR733ATgNBCQyH0g==", - "dev": true, - "license": "MIT", - "dependencies": { - "chokidar": "^3.5.2", - "debug": "^4", - "ignore-by-default": "^1.0.1", - "minimatch": "^3.1.2", - "pstree.remy": "^1.1.8", - "semver": "^7.5.3", - "simple-update-notifier": "^2.0.0", - "supports-color": "^5.5.0", - "touch": "^3.1.0", - "undefsafe": "^2.0.5" - }, - "bin": { - "nodemon": "bin/nodemon.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/nodemon" - } - }, - "node_modules/nodemon/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/nodemon/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/nopt": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-8.1.0.tgz", - "integrity": "sha512-ieGu42u/Qsa4TFktmaKEwM6MQH0pOWnaB3htzh0JRtx84+Mebc0cbZYN5bC+6WTZ4+77xrL9Pn5m7CV6VIkV7A==", - "dev": true, - "license": "ISC", - "dependencies": { - "abbrev": "^3.0.0" - }, - "bin": { - "nopt": "bin/nopt.js" - }, - "engines": { - "node": "^18.17.0 || >=20.5.0" - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/open": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/open/-/open-10.2.0.tgz", - "integrity": "sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==", - "license": "MIT", - "dependencies": { - "default-browser": "^5.2.1", - "define-lazy-prop": "^3.0.0", - "is-inside-container": "^1.0.0", - "wsl-utils": "^0.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true, - "license": "MIT" - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pidtree": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz", - "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==", - "dev": true, - "license": "MIT", - "bin": { - "pidtree": "bin/pidtree.js" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/pirates": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", - "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, - "node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pkg-dir/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prettier": { - "version": "3.8.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.1.tgz", - "integrity": "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==", - "dev": true, - "license": "MIT", - "peer": true, - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/pretty-format": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", - "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/schemas": "^29.6.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/pretty-quick": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/pretty-quick/-/pretty-quick-4.2.2.tgz", - "integrity": "sha512-uAh96tBW1SsD34VhhDmWuEmqbpfYc/B3j++5MC/6b3Cb8Ow7NJsvKFhg0eoGu2xXX+o9RkahkTK6sUdd8E7g5w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@pkgr/core": "^0.2.7", - "ignore": "^7.0.5", - "mri": "^1.2.0", - "picocolors": "^1.1.1", - "picomatch": "^4.0.2", - "tinyexec": "^0.3.2", - "tslib": "^2.8.1" - }, - "bin": { - "pretty-quick": "lib/cli.mjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://opencollective.com/pretty-quick" - }, - "peerDependencies": { - "prettier": "^3.0.0" - } - }, - "node_modules/pretty-quick/node_modules/ignore": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", - "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/pretty-quick/node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/protobufjs": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.4.tgz", - "integrity": "sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg==", - "hasInstallScript": true, - "license": "BSD-3-Clause", - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/pstree.remy": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", - "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", - "dev": true, - "license": "MIT" - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/pure-rand": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", - "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/dubzzz" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fast-check" - } - ], - "license": "MIT" - }, - "node_modules/react-is": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", - "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", - "dev": true, - "license": "MIT" - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "license": "MIT", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resolve": { - "version": "1.22.11", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", - "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-core-module": "^2.16.1", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve-cwd/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/resolve.exports": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", - "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/restore-cursor": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz", - "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==", - "dev": true, - "license": "MIT", - "dependencies": { - "onetime": "^7.0.0", - "signal-exit": "^4.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/restore-cursor/node_modules/onetime": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz", - "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-function": "^5.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/restore-cursor/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/rfdc": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz", - "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==", - "dev": true, - "license": "MIT" - }, - "node_modules/run-applescript": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.1.0.tgz", - "integrity": "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/semver": { - "version": "7.7.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", - "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/simple-update-notifier": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", - "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^7.5.3" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true, - "license": "MIT" - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/slice-ansi": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz", - "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.0.0", - "is-fullwidth-code-point": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/slice-ansi/node_modules/ansi-styles": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", - "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.13", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", - "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", - "dev": true, - "license": "MIT", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true, - "license": "BSD-3-Clause" - }, - "node_modules/stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "escape-string-regexp": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/stack-utils/node_modules/escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/string-argv": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", - "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.6.19" - } - }, - "node_modules/string-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/string-width": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", - "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^10.3.0", - "get-east-asian-width": "^1.0.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/string-width/node_modules/ansi-regex": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", - "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/string-width/node_modules/strip-ansi": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", - "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/tar": { - "version": "7.5.7", - "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.7.tgz", - "integrity": "sha512-fov56fJiRuThVFXD6o6/Q354S7pnWMJIVlDBYijsTNx6jKSE4pvrDTs6lUnmGvNyfJwFQQwWy3owKz1ucIhveQ==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/fs-minipass": "^4.0.0", - "chownr": "^3.0.0", - "minipass": "^7.1.2", - "minizlib": "^3.1.0", - "yallist": "^5.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/tar/node_modules/yallist": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", - "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", - "dev": true, - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=18" - } - }, - "node_modules/test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "license": "ISC", - "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tinyexec": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", - "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/tinyglobby": { - "version": "0.2.15", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", - "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "fdir": "^6.5.0", - "picomatch": "^4.0.3" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, - "node_modules/tinyglobby/node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/tinyglobby/node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/tmpl": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "dev": true, - "license": "BSD-3-Clause" - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/touch": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.1.tgz", - "integrity": "sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==", - "dev": true, - "license": "ISC", - "bin": { - "nodetouch": "bin/nodetouch.js" - } - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "dev": true, - "license": "MIT" - }, - "node_modules/ts-api-utils": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.4.0.tgz", - "integrity": "sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.12" - }, - "peerDependencies": { - "typescript": ">=4.8.4" - } - }, - "node_modules/ts-jest": { - "version": "29.4.6", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.4.6.tgz", - "integrity": "sha512-fSpWtOO/1AjSNQguk43hb/JCo16oJDnMJf3CdEGNkqsEX3t0KX96xvyX1D7PfLCpVoKu4MfVrqUkFyblYoY4lA==", - "dev": true, - "license": "MIT", - "dependencies": { - "bs-logger": "^0.2.6", - "fast-json-stable-stringify": "^2.1.0", - "handlebars": "^4.7.8", - "json5": "^2.2.3", - "lodash.memoize": "^4.1.2", - "make-error": "^1.3.6", - "semver": "^7.7.3", - "type-fest": "^4.41.0", - "yargs-parser": "^21.1.1" - }, - "bin": { - "ts-jest": "cli.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0" - }, - "peerDependencies": { - "@babel/core": ">=7.0.0-beta.0 <8", - "@jest/transform": "^29.0.0 || ^30.0.0", - "@jest/types": "^29.0.0 || ^30.0.0", - "babel-jest": "^29.0.0 || ^30.0.0", - "jest": "^29.0.0 || ^30.0.0", - "jest-util": "^29.0.0 || ^30.0.0", - "typescript": ">=4.3 <6" - }, - "peerDependenciesMeta": { - "@babel/core": { - "optional": true - }, - "@jest/transform": { - "optional": true - }, - "@jest/types": { - "optional": true - }, - "babel-jest": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "jest-util": { - "optional": true - } - } - }, - "node_modules/ts-jest/node_modules/handlebars": { - "version": "4.7.8", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", - "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "minimist": "^1.2.5", - "neo-async": "^2.6.2", - "source-map": "^0.6.1", - "wordwrap": "^1.0.0" - }, - "bin": { - "handlebars": "bin/handlebars" - }, - "engines": { - "node": ">=0.4.7" - }, - "optionalDependencies": { - "uglify-js": "^3.1.4" - } - }, - "node_modules/ts-jest/node_modules/type-fest": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", - "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ts-node": { - "version": "10.9.2", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", - "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" - }, - "bin": { - "ts-node": "dist/bin.js", - "ts-node-cwd": "dist/bin-cwd.js", - "ts-node-esm": "dist/bin-esm.js", - "ts-node-script": "dist/bin-script.js", - "ts-node-transpile-only": "dist/bin-transpile.js", - "ts-script": "dist/bin-script-deprecated.js" - }, - "peerDependencies": { - "@swc/core": ">=1.2.50", - "@swc/wasm": ">=1.2.50", - "@types/node": "*", - "typescript": ">=2.7" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "@swc/wasm": { - "optional": true - } - } - }, - "node_modules/tslib": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", - "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "license": "0BSD" - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", - "dev": true, - "license": "Apache-2.0", - "peer": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/typescript-eslint": { - "version": "8.54.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.54.0.tgz", - "integrity": "sha512-CKsJ+g53QpsNPqbzUsfKVgd3Lny4yKZ1pP4qN3jdMOg/sisIDLGyDMezycquXLE5JsEU0wp3dGNdzig0/fmSVQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/eslint-plugin": "8.54.0", - "@typescript-eslint/parser": "8.54.0", - "@typescript-eslint/typescript-estree": "8.54.0", - "@typescript-eslint/utils": "8.54.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/uglify-js": { - "version": "3.19.3", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz", - "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", - "dev": true, - "license": "BSD-2-Clause", - "optional": true, - "bin": { - "uglifyjs": "bin/uglifyjs" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/undefsafe": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", - "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", - "dev": true, - "license": "MIT" - }, - "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", - "license": "MIT" - }, - "node_modules/update-browserslist-db": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", - "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.1" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "dev": true, - "license": "MIT" - }, - "node_modules/v8-to-istanbul": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", - "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", - "dev": true, - "license": "ISC", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.12", - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^2.0.0" - }, - "engines": { - "node": ">=10.12.0" - } - }, - "node_modules/walker": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", - "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "makeerror": "1.0.12" - } - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", - "dev": true, - "license": "BSD-2-Clause" - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dev": true, - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wordwrap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/wrap-ansi": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz", - "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.2.1", - "string-width": "^7.0.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-regex": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", - "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", - "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/strip-ansi": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", - "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/write-file-atomic": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", - "dev": true, - "license": "ISC", - "dependencies": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/wsl-utils": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/wsl-utils/-/wsl-utils-0.1.0.tgz", - "integrity": "sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw==", - "license": "MIT", - "dependencies": { - "is-wsl": "^3.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true, - "license": "ISC" - }, - "node_modules/yaml": { - "version": "2.8.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz", - "integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==", - "dev": true, - "license": "ISC", - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14.6" - }, - "funding": { - "url": "https://github.com/sponsors/eemeli" - } - }, - "node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "license": "MIT", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "license": "MIT" - }, - "node_modules/yargs/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "packages/durabletask-js": { - "name": "@microsoft/durabletask-js", - "version": "0.1.0-alpha.2", - "license": "MIT", - "dependencies": { - "@grpc/grpc-js": "^1.14.3", - "google-protobuf": "^3.21.2" - }, - "devDependencies": { - "@types/google-protobuf": "^3.15.6", - "@types/jest": "^29.5.1", - "@types/node": "^18.16.1", - "jest": "^29.5.0", - "ts-jest": "^29.1.0", - "typescript": "^5.0.4" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "packages/durabletask-js-azuremanaged": { - "name": "@microsoft/durabletask-js-azuremanaged", - "version": "0.1.0-alpha.1", - "license": "MIT", - "dependencies": { - "@azure/identity": "^4.0.0", - "@azure/logger": "^1.0.0" - }, - "devDependencies": { - "@types/jest": "^29.5.1", - "@types/node": "^18.16.1", - "jest": "^29.5.0", - "ts-jest": "^29.1.0", - "typescript": "^5.0.4" - }, - "engines": { - "node": ">=22.0.0" - }, - "peerDependencies": { - "@grpc/grpc-js": "^1.8.14", - "@microsoft/durabletask-js": ">=0.1.0-alpha.2" - } - }, - "packages/durabletask-js/node_modules/google-protobuf": { - "version": "3.21.4", - "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.21.4.tgz", - "integrity": "sha512-MnG7N936zcKTco4Jd2PX2U96Kf9PxygAPKBug+74LHzmHXmceN16MmRcdgZv+DGef/S9YvQAfRsNCn4cjf9yyQ==", - "license": "(BSD-3-Clause AND Apache-2.0)" - } - } -} +{ + "name": "durabletask-js-monorepo", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "durabletask-js-monorepo", + "version": "0.0.0", + "license": "MIT", + "workspaces": [ + "packages/*" + ], + "devDependencies": { + "@eslint/js": "^9.39.2", + "@swc/core": "^1.3.55", + "@swc/helpers": "^0.5.1", + "@types/jest": "^29.5.1", + "@types/node": "^18.16.1", + "dotenv": "^17.2.3", + "eslint": "^9.39.2", + "globals": "^16.2.0", + "grpc_tools_node_protoc_ts": "^5.3.3", + "grpc-tools": "^1.13.1", + "husky": "^8.0.1", + "jest": "^29.5.0", + "lint-staged": "^15.2.7", + "nodemon": "^3.1.4", + "prettier": "^3.5.3", + "pretty-quick": "^4.0.0", + "ts-jest": "^29.1.0", + "ts-node": "^10.9.1", + "typescript": "^5.0.4", + "typescript-eslint": "^8.54.0" + }, + "engines": { + "node": ">=22.0.0" + } + }, + "node_modules/@azure/abort-controller": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.1.2.tgz", + "integrity": "sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==", + "license": "MIT", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@azure/core-auth": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.10.1.tgz", + "integrity": "sha512-ykRMW8PjVAn+RS6ww5cmK9U2CyH9p4Q88YJwvUslfuMmN98w/2rdGRLPqJYObapBCdzBVeDgYWdJnFPFb7qzpg==", + "license": "MIT", + "dependencies": { + "@azure/abort-controller": "^2.1.2", + "@azure/core-util": "^1.13.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@azure/core-client": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/@azure/core-client/-/core-client-1.10.1.tgz", + "integrity": "sha512-Nh5PhEOeY6PrnxNPsEHRr9eimxLwgLlpmguQaHKBinFYA/RU9+kOYVOQqOrTsCL+KSxrLLl1gD8Dk5BFW/7l/w==", + "license": "MIT", + "dependencies": { + "@azure/abort-controller": "^2.1.2", + "@azure/core-auth": "^1.10.0", + "@azure/core-rest-pipeline": "^1.22.0", + "@azure/core-tracing": "^1.3.0", + "@azure/core-util": "^1.13.0", + "@azure/logger": "^1.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@azure/core-rest-pipeline": { + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.22.2.tgz", + "integrity": "sha512-MzHym+wOi8CLUlKCQu12de0nwcq9k9Kuv43j4Wa++CsCpJwps2eeBQwD2Bu8snkxTtDKDx4GwjuR9E8yC8LNrg==", + "license": "MIT", + "dependencies": { + "@azure/abort-controller": "^2.1.2", + "@azure/core-auth": "^1.10.0", + "@azure/core-tracing": "^1.3.0", + "@azure/core-util": "^1.13.0", + "@azure/logger": "^1.3.0", + "@typespec/ts-http-runtime": "^0.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@azure/core-tracing": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@azure/core-tracing/-/core-tracing-1.3.1.tgz", + "integrity": "sha512-9MWKevR7Hz8kNzzPLfX4EAtGM2b8mr50HPDBvio96bURP/9C+HjdH3sBlLSNNrvRAr5/k/svoH457gB5IKpmwQ==", + "license": "MIT", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@azure/core-util": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/@azure/core-util/-/core-util-1.13.1.tgz", + "integrity": "sha512-XPArKLzsvl0Hf0CaGyKHUyVgF7oDnhKoP85Xv6M4StF/1AhfORhZudHtOyf2s+FcbuQ9dPRAjB8J2KvRRMUK2A==", + "license": "MIT", + "dependencies": { + "@azure/abort-controller": "^2.1.2", + "@typespec/ts-http-runtime": "^0.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@azure/identity": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/@azure/identity/-/identity-4.13.0.tgz", + "integrity": "sha512-uWC0fssc+hs1TGGVkkghiaFkkS7NkTxfnCH+Hdg+yTehTpMcehpok4PgUKKdyCH+9ldu6FhiHRv84Ntqj1vVcw==", + "license": "MIT", + "dependencies": { + "@azure/abort-controller": "^2.0.0", + "@azure/core-auth": "^1.9.0", + "@azure/core-client": "^1.9.2", + "@azure/core-rest-pipeline": "^1.17.0", + "@azure/core-tracing": "^1.0.0", + "@azure/core-util": "^1.11.0", + "@azure/logger": "^1.0.0", + "@azure/msal-browser": "^4.2.0", + "@azure/msal-node": "^3.5.0", + "open": "^10.1.0", + "tslib": "^2.2.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@azure/logger": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@azure/logger/-/logger-1.3.0.tgz", + "integrity": "sha512-fCqPIfOcLE+CGqGPd66c8bZpwAji98tZ4JI9i/mlTNTlsIWslCfpg48s/ypyLxZTump5sypjrKn2/kY7q8oAbA==", + "license": "MIT", + "dependencies": { + "@typespec/ts-http-runtime": "^0.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@azure/msal-browser": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-4.28.1.tgz", + "integrity": "sha512-al2u2fTchbClq3L4C1NlqLm+vwKfhYCPtZN2LR/9xJVaQ4Mnrwf5vANvuyPSJHcGvw50UBmhuVmYUAhTEetTpA==", + "license": "MIT", + "dependencies": { + "@azure/msal-common": "15.14.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@azure/msal-common": { + "version": "15.14.1", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-15.14.1.tgz", + "integrity": "sha512-IkzF7Pywt6QKTS0kwdCv/XV8x8JXknZDvSjj/IccooxnP373T5jaadO3FnOrbWo3S0UqkfIDyZNTaQ/oAgRdXw==", + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@azure/msal-node": { + "version": "3.8.6", + "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-3.8.6.tgz", + "integrity": "sha512-XTmhdItcBckcVVTy65Xp+42xG4LX5GK+9AqAsXPXk4IqUNv+LyQo5TMwNjuFYBfAB2GTG9iSQGk+QLc03vhf3w==", + "license": "MIT", + "dependencies": { + "@azure/msal-common": "15.14.1", + "jsonwebtoken": "^9.0.0", + "uuid": "^8.3.0" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.28.6.tgz", + "integrity": "sha512-JYgintcMjRiCvS8mMECzaEn+m3PfoQiyqukOMCCVQtoJGYJw8j/8LBJEiqkHLkfwCcs74E3pbAUFNg7d9VNJ+Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.28.5", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.6.tgz", + "integrity": "sha512-2lfu57JtzctfIrcGMz992hyLlByuzgIk58+hhGCxjKZ3rWI82NnVLjXcaTqkI2NvlcvOskZaiZ5kjUALo3Lpxg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.6.tgz", + "integrity": "sha512-H3mcG6ZDLTlYfaSNi0iOKkigqMFvkTKlGUYlD8GW7nNOYRrevuA46iTypPyv+06V3fEmvvazfntkBU34L0azAw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.28.6", + "@babel/generator": "^7.28.6", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helpers": "^7.28.6", + "@babel/parser": "^7.28.6", + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.6.tgz", + "integrity": "sha512-lOoVRwADj8hjf7al89tvQ2a1lf53Z+7tiXMgpZJL3maQPDxh0DgLMN62B2MKUOFcoodBHLMbDM6WAbKgNy5Suw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.6", + "@babel/types": "^7.28.6", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", + "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.28.6", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz", + "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", + "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-validator-identifier": "^7.28.5", + "@babel/traverse": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz", + "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz", + "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.6.tgz", + "integrity": "sha512-TeR9zWR18BvbfPmGbLampPMW+uW1NZnJlRuuHso8i87QZNq2JRF9i6RgxRqtEq+wQGsS19NNTWr2duhnE49mfQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.6" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.28.6.tgz", + "integrity": "sha512-jiLC0ma9XkQT3TKJ9uYvlakm66Pamywo+qwL+oL8HJOvc6TWdZXVfhqJr8CCzbSGUAbDOzlGHJC1U+vRfLQDvw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.28.6.tgz", + "integrity": "sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.28.6.tgz", + "integrity": "sha512-+nDNmQye7nlnuuHDboPbGm00Vqg3oO8niRRL27/4LYHUsHYh0zJ1xWOz0uRwNFmM1Avzk8wZbc6rdiYhomzv/A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz", + "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.28.6", + "@babel/parser": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.6.tgz", + "integrity": "sha512-fgWX62k02qtjqdSNTAGxmKYY/7FSL9WAS1o2Hu5+I5m9T0yxZzr4cnrfXQ/MX0rIifthCSs6FKTlzYbJcPtMNg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.28.6", + "@babel/generator": "^7.28.6", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.28.6", + "@babel/template": "^7.28.6", + "@babel/types": "^7.28.6", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.6.tgz", + "integrity": "sha512-0ZrskXVEHSWIqZM/sQZ4EV3jZJXRkio/WCxaqKZP1g//CEWEPSfeZFcms4XeKBCHU0ZKnIkdJeU/kF+eRp5lBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", + "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.21.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz", + "integrity": "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.7", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", + "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", + "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.3.tgz", + "integrity": "sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.1", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "9.39.2", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.2.tgz", + "integrity": "sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", + "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", + "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@grpc/grpc-js": { + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.14.3.tgz", + "integrity": "sha512-Iq8QQQ/7X3Sac15oB6p0FmUg/klxQvXLeileoqrTRGJYLV+/9tubbr9ipz0GKHjmXVsgFPo/+W+2cA8eNcR+XA==", + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "@grpc/proto-loader": "^0.8.0", + "@js-sdsl/ordered-map": "^4.4.2" + }, + "engines": { + "node": ">=12.10.0" + } + }, + "node_modules/@grpc/proto-loader": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.8.0.tgz", + "integrity": "sha512-rc1hOQtjIWGxcxpb9aHAfLpIctjEnsDehj0DAiVfBlmT84uvR0uUtN2hEi/ecvWVjXUGf5qPF4qEgiLOx1YIMQ==", + "license": "Apache-2.0", + "dependencies": { + "lodash.camelcase": "^4.3.0", + "long": "^5.0.0", + "protobufjs": "^7.5.3", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz", + "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@isaacs/fs-minipass": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", + "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", + "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.4" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", + "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@js-sdsl/ordered-map": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", + "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/js-sdsl" + } + }, + "node_modules/@mapbox/node-pre-gyp": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-2.0.3.tgz", + "integrity": "sha512-uwPAhccfFJlsfCxMYTwOdVfOz3xqyj8xYL3zJj8f0pb30tLohnnFPhLuqp4/qoEz8sNxe4SESZedcBojRefIzg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "consola": "^3.2.3", + "detect-libc": "^2.0.0", + "https-proxy-agent": "^7.0.5", + "node-fetch": "^2.6.7", + "nopt": "^8.0.0", + "semver": "^7.5.3", + "tar": "^7.4.0" + }, + "bin": { + "node-pre-gyp": "bin/node-pre-gyp" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@microsoft/durabletask-js": { + "resolved": "packages/durabletask-js", + "link": true + }, + "node_modules/@microsoft/durabletask-js-azuremanaged": { + "resolved": "packages/durabletask-js-azuremanaged", + "link": true + }, + "node_modules/@pkgr/core": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.2.9.tgz", + "integrity": "sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/pkgr" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", + "license": "BSD-3-Clause" + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@swc/core": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.15.11.tgz", + "integrity": "sha512-iLmLTodbYxU39HhMPaMUooPwO/zqJWvsqkrXv1ZI38rMb048p6N7qtAtTp37sw9NzSrvH6oli8EdDygo09IZ/w==", + "dev": true, + "hasInstallScript": true, + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "@swc/counter": "^0.1.3", + "@swc/types": "^0.1.25" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/swc" + }, + "optionalDependencies": { + "@swc/core-darwin-arm64": "1.15.11", + "@swc/core-darwin-x64": "1.15.11", + "@swc/core-linux-arm-gnueabihf": "1.15.11", + "@swc/core-linux-arm64-gnu": "1.15.11", + "@swc/core-linux-arm64-musl": "1.15.11", + "@swc/core-linux-x64-gnu": "1.15.11", + "@swc/core-linux-x64-musl": "1.15.11", + "@swc/core-win32-arm64-msvc": "1.15.11", + "@swc/core-win32-ia32-msvc": "1.15.11", + "@swc/core-win32-x64-msvc": "1.15.11" + }, + "peerDependencies": { + "@swc/helpers": ">=0.5.17" + }, + "peerDependenciesMeta": { + "@swc/helpers": { + "optional": true + } + } + }, + "node_modules/@swc/core-darwin-arm64": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.15.11.tgz", + "integrity": "sha512-QoIupRWVH8AF1TgxYyeA5nS18dtqMuxNwchjBIwJo3RdwLEFiJq6onOx9JAxHtuPwUkIVuU2Xbp+jCJ7Vzmgtg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-darwin-x64": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.15.11.tgz", + "integrity": "sha512-S52Gu1QtPSfBYDiejlcfp9GlN+NjTZBRRNsz8PNwBgSE626/FUf2PcllVUix7jqkoMC+t0rS8t+2/aSWlMuQtA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm-gnueabihf": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.15.11.tgz", + "integrity": "sha512-lXJs8oXo6Z4yCpimpQ8vPeCjkgoHu5NoMvmJZ8qxDyU99KVdg6KwU9H79vzrmB+HfH+dCZ7JGMqMF//f8Cfvdg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-gnu": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.15.11.tgz", + "integrity": "sha512-chRsz1K52/vj8Mfq/QOugVphlKPWlMh10V99qfH41hbGvwAU6xSPd681upO4bKiOr9+mRIZZW+EfJqY42ZzRyA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-musl": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.15.11.tgz", + "integrity": "sha512-PYftgsTaGnfDK4m6/dty9ryK1FbLk+LosDJ/RJR2nkXGc8rd+WenXIlvHjWULiBVnS1RsjHHOXmTS4nDhe0v0w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-gnu": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.15.11.tgz", + "integrity": "sha512-DKtnJKIHiZdARyTKiX7zdRjiDS1KihkQWatQiCHMv+zc2sfwb4Glrodx2VLOX4rsa92NLR0Sw8WLcPEMFY1szQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-musl": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.15.11.tgz", + "integrity": "sha512-mUjjntHj4+8WBaiDe5UwRNHuEzLjIWBTSGTw0JT9+C9/Yyuh4KQqlcEQ3ro6GkHmBGXBFpGIj/o5VMyRWfVfWw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-arm64-msvc": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.15.11.tgz", + "integrity": "sha512-ZkNNG5zL49YpaFzfl6fskNOSxtcZ5uOYmWBkY4wVAvgbSAQzLRVBp+xArGWh2oXlY/WgL99zQSGTv7RI5E6nzA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-ia32-msvc": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.15.11.tgz", + "integrity": "sha512-6XnzORkZCQzvTQ6cPrU7iaT9+i145oLwnin8JrfsLG41wl26+5cNQ2XV3zcbrnFEV6esjOceom9YO1w9mGJByw==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-x64-msvc": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.15.11.tgz", + "integrity": "sha512-IQ2n6af7XKLL6P1gIeZACskSxK8jWtoKpJWLZmdXTDj1MGzktUy4i+FvpdtxFmJWNavRWH1VmTr6kAubRDHeKw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/counter": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", + "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/@swc/helpers": { + "version": "0.5.18", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.18.tgz", + "integrity": "sha512-TXTnIcNJQEKwThMMqBXsZ4VGAza6bvN4pa41Rkqoio6QBKMvo+5lexeTMScGCIxtzgQJzElcvIltani+adC5PQ==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "tslib": "^2.8.0" + } + }, + "node_modules/@swc/types": { + "version": "0.1.25", + "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.25.tgz", + "integrity": "sha512-iAoY/qRhNH8a/hBvm3zKj9qQ4oc2+3w1unPJa2XvTK3XjeLXtzcCingVPw/9e5mn1+0yPqxcBGp9Jf0pkfMb1g==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@swc/counter": "^0.1.3" + } + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.12.tgz", + "integrity": "sha512-UCYBaeFvM11aU2y3YPZ//O5Rhj+xKyzy7mvcIoAjASbigy8mHMryP5cK7dgjlz2hWxh1g5pLw084E0a/wlUSFQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/google-protobuf": { + "version": "3.15.12", + "resolved": "https://registry.npmjs.org/@types/google-protobuf/-/google-protobuf-3.15.12.tgz", + "integrity": "sha512-40um9QqwHjRS92qnOaDpL7RmDK15NuZYo9HihiJRbYkMQZlWnuH8AdvbMy8/o6lgLmKbDUKa+OALCltHdbOTpQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "29.5.14", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.14.tgz", + "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "18.19.130", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.130.tgz", + "integrity": "sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==", + "license": "MIT", + "peer": true, + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/yargs": { + "version": "17.0.35", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz", + "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.54.0.tgz", + "integrity": "sha512-hAAP5io/7csFStuOmR782YmTthKBJ9ND3WVL60hcOjvtGFb+HJxH4O5huAcmcZ9v9G8P+JETiZ/G1B8MALnWZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.12.2", + "@typescript-eslint/scope-manager": "8.54.0", + "@typescript-eslint/type-utils": "8.54.0", + "@typescript-eslint/utils": "8.54.0", + "@typescript-eslint/visitor-keys": "8.54.0", + "ignore": "^7.0.5", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.54.0", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.54.0.tgz", + "integrity": "sha512-BtE0k6cjwjLZoZixN0t5AKP0kSzlGu7FctRXYuPAm//aaiZhmfq1JwdYpYr1brzEspYyFeF+8XF5j2VK6oalrA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@typescript-eslint/scope-manager": "8.54.0", + "@typescript-eslint/types": "8.54.0", + "@typescript-eslint/typescript-estree": "8.54.0", + "@typescript-eslint/visitor-keys": "8.54.0", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.54.0.tgz", + "integrity": "sha512-YPf+rvJ1s7MyiWM4uTRhE4DvBXrEV+d8oC3P9Y2eT7S+HBS0clybdMIPnhiATi9vZOYDc7OQ1L/i6ga6NFYK/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.54.0", + "@typescript-eslint/types": "^8.54.0", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.54.0.tgz", + "integrity": "sha512-27rYVQku26j/PbHYcVfRPonmOlVI6gihHtXFbTdB5sb6qA0wdAQAbyXFVarQ5t4HRojIz64IV90YtsjQSSGlQg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.54.0", + "@typescript-eslint/visitor-keys": "8.54.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.54.0.tgz", + "integrity": "sha512-dRgOyT2hPk/JwxNMZDsIXDgyl9axdJI3ogZ2XWhBPsnZUv+hPesa5iuhdYt2gzwA9t8RE5ytOJ6xB0moV0Ujvw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.54.0.tgz", + "integrity": "sha512-hiLguxJWHjjwL6xMBwD903ciAwd7DmK30Y9Axs/etOkftC3ZNN9K44IuRD/EB08amu+Zw6W37x9RecLkOo3pMA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.54.0", + "@typescript-eslint/typescript-estree": "8.54.0", + "@typescript-eslint/utils": "8.54.0", + "debug": "^4.4.3", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.54.0.tgz", + "integrity": "sha512-PDUI9R1BVjqu7AUDsRBbKMtwmjWcn4J3le+5LpcFgWULN3LvHC5rkc9gCVxbrsrGmO1jfPybN5s6h4Jy+OnkAA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.54.0.tgz", + "integrity": "sha512-BUwcskRaPvTk6fzVWgDPdUndLjB87KYDrN5EYGetnktoeAvPtO4ONHlAZDnj5VFnUANg0Sjm7j4usBlnoVMHwA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.54.0", + "@typescript-eslint/tsconfig-utils": "8.54.0", + "@typescript-eslint/types": "8.54.0", + "@typescript-eslint/visitor-keys": "8.54.0", + "debug": "^4.4.3", + "minimatch": "^9.0.5", + "semver": "^7.7.3", + "tinyglobby": "^0.2.15", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.54.0.tgz", + "integrity": "sha512-9Cnda8GS57AQakvRyG0PTejJNlA2xhvyNtEVIMlDWOOeEyBkYWhGPnfrIAnqxLMTSTo6q8g12XVjjev5l1NvMA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.9.1", + "@typescript-eslint/scope-manager": "8.54.0", + "@typescript-eslint/types": "8.54.0", + "@typescript-eslint/typescript-estree": "8.54.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.54.0.tgz", + "integrity": "sha512-VFlhGSl4opC0bprJiItPQ1RfUhGDIBokcPwaFH4yiBCaNPeld/9VeXbiPO1cLyorQi1G1vL+ecBk1x8o1axORA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.54.0", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typespec/ts-http-runtime": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@typespec/ts-http-runtime/-/ts-http-runtime-0.3.2.tgz", + "integrity": "sha512-IlqQ/Gv22xUC1r/WQm4StLkYQmaaTsXAhUVsNE0+xiyf0yRFiH5++q78U3bw6bLKDCTmh0uqKB9eG9+Bt75Dkg==", + "license": "MIT", + "dependencies": { + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/abbrev": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-3.0.1.tgz", + "integrity": "sha512-AO2ac6pjRB3SJmGJo+v5/aK6Omggp6fsLrs6wN9bd35ulu4cCwaAU9+7ZhXjeqHVkaHThLuzH0nZr0YpCDhygg==", + "dev": true, + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "dev": true, + "license": "MIT", + "peer": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.4", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", + "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.11.0" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true, + "license": "MIT" + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/babel-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz", + "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" + }, + "peerDependencies": { + "@babel/core": "^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "dev": true, + "license": "MIT", + "dependencies": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/baseline-browser-mapping": { + "version": "2.9.19", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.19.tgz", + "integrity": "sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.js" + } + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "peer": true, + "dependencies": { + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.2.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause" + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/bundle-name": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz", + "integrity": "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==", + "license": "MIT", + "dependencies": { + "run-applescript": "^7.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001766", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001766.tgz", + "integrity": "sha512-4C0lfJ0/YPjJQHagaE9x2Elb69CIqEPZeG0anQt9SIvIoOH4a4uaRl73IavyO+0qZh6MDLH//DrXThEYKHkmYA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/chownr": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", + "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", + "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/cli-cursor": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz", + "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==", + "dev": true, + "license": "MIT", + "dependencies": { + "restore-cursor": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cli-truncate": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-4.0.0.tgz", + "integrity": "sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==", + "dev": true, + "license": "MIT", + "dependencies": { + "slice-ansi": "^5.0.0", + "string-width": "^7.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/cliui/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/cliui/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz", + "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==", + "dev": true, + "license": "MIT" + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" + }, + "node_modules/colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", + "dev": true, + "license": "MIT" + }, + "node_modules/commander": { + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz", + "integrity": "sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/consola": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/consola/-/consola-3.4.2.tgz", + "integrity": "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.18.0 || >=16.10.0" + } + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/dedent": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.1.tgz", + "integrity": "sha512-9JmrhGZpOlEgOLdQgSm0zxFaYoQon408V1v49aqTWuXENVlnCuY9JBZcXZiCsZQWDjTm5Qf/nIvAy77mXDAjEg==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/default-browser": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.4.0.tgz", + "integrity": "sha512-XDuvSq38Hr1MdN47EDvYtx3U0MTqpCEn+F6ft8z2vYDzMrvQhVp0ui9oQdqW3MvK3vqUETglt1tVGgjLuJ5izg==", + "license": "MIT", + "dependencies": { + "bundle-name": "^4.1.0", + "default-browser-id": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser-id": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.1.tgz", + "integrity": "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/define-lazy-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/diff": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.4.tgz", + "integrity": "sha512-X07nttJQkwkfKfvTPG/KSnE2OMdcUCao6+eXF3wmnIQRn2aPAHH3VxDbDOdegkd6JbPsXqShpvEOHfAT+nCNwQ==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/dotenv": { + "version": "17.2.3", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.3.tgz", + "integrity": "sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.283", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.283.tgz", + "integrity": "sha512-3vifjt1HgrGW/h76UEeny+adYApveS9dH2h3p57JYzBSXJIKUJAvtmIytDKjcSCt9xHfrNCFJ7gts6vkhuq++w==", + "dev": true, + "license": "ISC" + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", + "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==", + "dev": true, + "license": "MIT" + }, + "node_modules/environment": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz", + "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/error-ex": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", + "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.39.2", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.2.tgz", + "integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.21.1", + "@eslint/config-helpers": "^0.4.2", + "@eslint/core": "^0.17.0", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.39.2", + "@eslint/plugin-kit": "^0.4.1", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-scope": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eventemitter3": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz", + "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true, + "license": "ISC" + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true, + "license": "ISC" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-east-asian-width": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.4.0.tgz", + "integrity": "sha512-QZjmEOC+IT1uk6Rx0sX22V6uHWVwbdbxf1faPqJ1QhLdGgsRGCZoyaQBm/piRdJy/D2um6hM1UP7ZEeQ4EkP+Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "16.5.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", + "integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/google-protobuf": { + "version": "3.15.8", + "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.15.8.tgz", + "integrity": "sha512-2jtfdqTaSxk0cuBJBtTTWsot4WtR9RVr2rXg7x7OoqiuOKopPrwXpM1G4dXIkLcUNRh3RKzz76C8IOkksZSeOw==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/grpc_tools_node_protoc_ts": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/grpc_tools_node_protoc_ts/-/grpc_tools_node_protoc_ts-5.3.3.tgz", + "integrity": "sha512-M/YrklvVXMtuuj9kb42PxeouZhs7Ul+R4e/31XwrankUcKL8cQQP50Q9q+KEHGyHQaPt6VtKKsxMgLaKbCxeww==", + "dev": true, + "license": "MIT", + "dependencies": { + "google-protobuf": "3.15.8", + "handlebars": "4.7.7" + }, + "bin": { + "protoc-gen-ts": "bin/protoc-gen-ts" + } + }, + "node_modules/grpc-tools": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/grpc-tools/-/grpc-tools-1.13.1.tgz", + "integrity": "sha512-0sttMUxThNIkCTJq5qI0xXMz5zWqV2u3yG1kR3Sj9OokGIoyRBFjoInK9NyW7x5fH7knj48Roh1gq5xbl0VoDQ==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "@mapbox/node-pre-gyp": "^2.0.0" + }, + "bin": { + "grpc_tools_node_protoc": "bin/protoc.js", + "grpc_tools_node_protoc_plugin": "bin/protoc_plugin.js" + } + }, + "node_modules/handlebars": { + "version": "4.7.7", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", + "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "minimist": "^1.2.5", + "neo-async": "^2.6.0", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" + }, + "engines": { + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true, + "license": "MIT" + }, + "node_modules/http-proxy-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/husky": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", + "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "dev": true, + "license": "MIT", + "bin": { + "husky": "lib/bin.js" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", + "dev": true, + "license": "ISC" + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-local": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", + "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-docker": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz", + "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-inside-container": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", + "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "license": "MIT", + "dependencies": { + "is-docker": "^3.0.0" + }, + "bin": { + "is-inside-container": "cli.js" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-wsl": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.0.tgz", + "integrity": "sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==", + "license": "MIT", + "dependencies": { + "is-inside-container": "^1.0.0" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz", + "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", + "dev": true, + "license": "MIT", + "dependencies": { + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-cli": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-config": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonwebtoken": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.3.tgz", + "integrity": "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g==", + "license": "MIT", + "dependencies": { + "jws": "^4.0.1", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=12", + "npm": ">=6" + } + }, + "node_modules/jwa": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", + "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", + "license": "MIT", + "dependencies": { + "buffer-equal-constant-time": "^1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", + "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", + "license": "MIT", + "dependencies": { + "jwa": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lilconfig": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", + "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, + "node_modules/lint-staged": { + "version": "15.5.2", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-15.5.2.tgz", + "integrity": "sha512-YUSOLq9VeRNAo/CTaVmhGDKG+LBtA8KF1X4K5+ykMSwWST1vDxJRB2kv2COgLb1fvpCo+A/y9A0G0znNVmdx4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^5.4.1", + "commander": "^13.1.0", + "debug": "^4.4.0", + "execa": "^8.0.1", + "lilconfig": "^3.1.3", + "listr2": "^8.2.5", + "micromatch": "^4.0.8", + "pidtree": "^0.6.0", + "string-argv": "^0.3.2", + "yaml": "^2.7.0" + }, + "bin": { + "lint-staged": "bin/lint-staged.js" + }, + "engines": { + "node": ">=18.12.0" + }, + "funding": { + "url": "https://opencollective.com/lint-staged" + } + }, + "node_modules/lint-staged/node_modules/chalk": { + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz", + "integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/lint-staged/node_modules/execa": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", + "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^8.0.1", + "human-signals": "^5.0.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^4.1.0", + "strip-final-newline": "^3.0.0" + }, + "engines": { + "node": ">=16.17" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/lint-staged/node_modules/get-stream": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", + "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lint-staged/node_modules/human-signals": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", + "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=16.17.0" + } + }, + "node_modules/lint-staged/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lint-staged/node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lint-staged/node_modules/npm-run-path": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", + "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lint-staged/node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lint-staged/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lint-staged/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/lint-staged/node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/listr2": { + "version": "8.3.3", + "resolved": "https://registry.npmjs.org/listr2/-/listr2-8.3.3.tgz", + "integrity": "sha512-LWzX2KsqcB1wqQ4AHgYb4RsDXauQiqhjLk+6hjbaeHG4zpjjVAB6wC/gz6X0l+Du1cN3pUB5ZlrvTbhGSNnUQQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "cli-truncate": "^4.0.0", + "colorette": "^2.0.20", + "eventemitter3": "^5.0.1", + "log-update": "^6.1.0", + "rfdc": "^1.4.1", + "wrap-ansi": "^9.0.0" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "license": "MIT" + }, + "node_modules/lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==", + "license": "MIT" + }, + "node_modules/lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==", + "license": "MIT" + }, + "node_modules/lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==", + "license": "MIT" + }, + "node_modules/lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==", + "license": "MIT" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", + "license": "MIT" + }, + "node_modules/lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", + "license": "MIT" + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true, + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", + "license": "MIT" + }, + "node_modules/log-update": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/log-update/-/log-update-6.1.0.tgz", + "integrity": "sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-escapes": "^7.0.0", + "cli-cursor": "^5.0.0", + "slice-ansi": "^7.1.0", + "strip-ansi": "^7.1.0", + "wrap-ansi": "^9.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-update/node_modules/ansi-escapes": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.2.0.tgz", + "integrity": "sha512-g6LhBsl+GBPRWGWsBtutpzBYuIIdBkLEvad5C/va/74Db018+5TZiyA26cZJAr3Rft5lprVqOIPxf5Vid6tqAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "environment": "^1.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-update/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/log-update/node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/log-update/node_modules/is-fullwidth-code-point": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.1.0.tgz", + "integrity": "sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "get-east-asian-width": "^1.3.1" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-update/node_modules/slice-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.2.tgz", + "integrity": "sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.2.1", + "is-fullwidth-code-point": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, + "node_modules/log-update/node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/long": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", + "license": "Apache-2.0" + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true, + "license": "ISC" + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true, + "license": "MIT" + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/mimic-function": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz", + "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/minizlib": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", + "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "minipass": "^7.1.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/mri": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", + "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.27", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", + "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nodemon": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.11.tgz", + "integrity": "sha512-is96t8F/1//UHAjNPHpbsNY46ELPpftGUoSVNXwUfMk/qdjSylYrWSu1XavVTBOn526kFiOR733ATgNBCQyH0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^3.5.2", + "debug": "^4", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.1.2", + "pstree.remy": "^1.1.8", + "semver": "^7.5.3", + "simple-update-notifier": "^2.0.0", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.5" + }, + "bin": { + "nodemon": "bin/nodemon.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nodemon" + } + }, + "node_modules/nodemon/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/nodemon/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/nopt": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-8.1.0.tgz", + "integrity": "sha512-ieGu42u/Qsa4TFktmaKEwM6MQH0pOWnaB3htzh0JRtx84+Mebc0cbZYN5bC+6WTZ4+77xrL9Pn5m7CV6VIkV7A==", + "dev": true, + "license": "ISC", + "dependencies": { + "abbrev": "^3.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/open": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/open/-/open-10.2.0.tgz", + "integrity": "sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==", + "license": "MIT", + "dependencies": { + "default-browser": "^5.2.1", + "define-lazy-prop": "^3.0.0", + "is-inside-container": "^1.0.0", + "wsl-utils": "^0.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pidtree": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz", + "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==", + "dev": true, + "license": "MIT", + "bin": { + "pidtree": "bin/pidtree.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.1.tgz", + "integrity": "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==", + "dev": true, + "license": "MIT", + "peer": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/pretty-quick": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/pretty-quick/-/pretty-quick-4.2.2.tgz", + "integrity": "sha512-uAh96tBW1SsD34VhhDmWuEmqbpfYc/B3j++5MC/6b3Cb8Ow7NJsvKFhg0eoGu2xXX+o9RkahkTK6sUdd8E7g5w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@pkgr/core": "^0.2.7", + "ignore": "^7.0.5", + "mri": "^1.2.0", + "picocolors": "^1.1.1", + "picomatch": "^4.0.2", + "tinyexec": "^0.3.2", + "tslib": "^2.8.1" + }, + "bin": { + "pretty-quick": "lib/cli.mjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://opencollective.com/pretty-quick" + }, + "peerDependencies": { + "prettier": "^3.0.0" + } + }, + "node_modules/pretty-quick/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/pretty-quick/node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/protobufjs": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.4.tgz", + "integrity": "sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg==", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/pstree.remy": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", + "dev": true, + "license": "MIT" + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/pure-rand": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT" + }, + "node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "dev": true, + "license": "MIT" + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.11", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", + "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-cwd/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve.exports": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", + "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/restore-cursor": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz", + "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==", + "dev": true, + "license": "MIT", + "dependencies": { + "onetime": "^7.0.0", + "signal-exit": "^4.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/restore-cursor/node_modules/onetime": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz", + "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-function": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/restore-cursor/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rfdc": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz", + "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==", + "dev": true, + "license": "MIT" + }, + "node_modules/run-applescript": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.1.0.tgz", + "integrity": "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/simple-update-notifier": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", + "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true, + "license": "MIT" + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/slice-ansi": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz", + "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.0.0", + "is-fullwidth-code-point": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, + "node_modules/slice-ansi/node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/string-argv": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", + "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.6.19" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/string-width/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/string-width/node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tar": { + "version": "7.5.7", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.7.tgz", + "integrity": "sha512-fov56fJiRuThVFXD6o6/Q354S7pnWMJIVlDBYijsTNx6jKSE4pvrDTs6lUnmGvNyfJwFQQwWy3owKz1ucIhveQ==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/fs-minipass": "^4.0.0", + "chownr": "^3.0.0", + "minipass": "^7.1.2", + "minizlib": "^3.1.0", + "yallist": "^5.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/tar/node_modules/yallist": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", + "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "license": "ISC", + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tinyexec": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", + "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tinyglobby/node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/tinyglobby/node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/touch": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.1.tgz", + "integrity": "sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==", + "dev": true, + "license": "ISC", + "bin": { + "nodetouch": "bin/nodetouch.js" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "dev": true, + "license": "MIT" + }, + "node_modules/ts-api-utils": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.4.0.tgz", + "integrity": "sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/ts-jest": { + "version": "29.4.6", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.4.6.tgz", + "integrity": "sha512-fSpWtOO/1AjSNQguk43hb/JCo16oJDnMJf3CdEGNkqsEX3t0KX96xvyX1D7PfLCpVoKu4MfVrqUkFyblYoY4lA==", + "dev": true, + "license": "MIT", + "dependencies": { + "bs-logger": "^0.2.6", + "fast-json-stable-stringify": "^2.1.0", + "handlebars": "^4.7.8", + "json5": "^2.2.3", + "lodash.memoize": "^4.1.2", + "make-error": "^1.3.6", + "semver": "^7.7.3", + "type-fest": "^4.41.0", + "yargs-parser": "^21.1.1" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/transform": "^29.0.0 || ^30.0.0", + "@jest/types": "^29.0.0 || ^30.0.0", + "babel-jest": "^29.0.0 || ^30.0.0", + "jest": "^29.0.0 || ^30.0.0", + "jest-util": "^29.0.0 || ^30.0.0", + "typescript": ">=4.3 <6" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@jest/transform": { + "optional": true + }, + "@jest/types": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jest-util": { + "optional": true + } + } + }, + "node_modules/ts-jest/node_modules/handlebars": { + "version": "4.7.8", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", + "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "minimist": "^1.2.5", + "neo-async": "^2.6.2", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" + }, + "engines": { + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" + } + }, + "node_modules/ts-jest/node_modules/type-fest": { + "version": "4.41.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ts-node": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.54.0.tgz", + "integrity": "sha512-CKsJ+g53QpsNPqbzUsfKVgd3Lny4yKZ1pP4qN3jdMOg/sisIDLGyDMezycquXLE5JsEU0wp3dGNdzig0/fmSVQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.54.0", + "@typescript-eslint/parser": "8.54.0", + "@typescript-eslint/typescript-estree": "8.54.0", + "@typescript-eslint/utils": "8.54.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/uglify-js": { + "version": "3.19.3", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz", + "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", + "dev": true, + "license": "BSD-2-Clause", + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/undefsafe": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", + "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", + "dev": true, + "license": "MIT" + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "license": "MIT" + }, + "node_modules/update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true, + "license": "MIT" + }, + "node_modules/v8-to-istanbul": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", + "dev": true, + "license": "ISC", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "dev": true, + "license": "BSD-2-Clause" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dev": true, + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/wrap-ansi": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz", + "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.2.1", + "string-width": "^7.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/wsl-utils": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/wsl-utils/-/wsl-utils-0.1.0.tgz", + "integrity": "sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw==", + "license": "MIT", + "dependencies": { + "is-wsl": "^3.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "node_modules/yaml": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz", + "integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==", + "dev": true, + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" + } + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/yargs/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "packages/durabletask-js": { + "name": "@microsoft/durabletask-js", + "version": "0.1.0-alpha.2", + "license": "MIT", + "dependencies": { + "@grpc/grpc-js": "^1.14.3", + "google-protobuf": "^3.21.2" + }, + "devDependencies": { + "@types/google-protobuf": "^3.15.6", + "@types/jest": "^29.5.1", + "@types/node": "^18.16.1", + "jest": "^29.5.0", + "ts-jest": "^29.1.0", + "typescript": "^5.0.4" + }, + "engines": { + "node": ">=22.0.0" + } + }, + "packages/durabletask-js-azuremanaged": { + "name": "@microsoft/durabletask-js-azuremanaged", + "version": "0.1.0-alpha.1", + "license": "MIT", + "dependencies": { + "@azure/identity": "^4.0.0", + "@azure/logger": "^1.0.0" + }, + "devDependencies": { + "@types/jest": "^29.5.1", + "@types/node": "^18.16.1", + "jest": "^29.5.0", + "ts-jest": "^29.1.0", + "typescript": "^5.0.4" + }, + "engines": { + "node": ">=22.0.0" + }, + "peerDependencies": { + "@grpc/grpc-js": "^1.8.14", + "@microsoft/durabletask-js": ">=0.1.0-alpha.2" + } + }, + "packages/durabletask-js/node_modules/google-protobuf": { + "version": "3.21.4", + "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.21.4.tgz", + "integrity": "sha512-MnG7N936zcKTco4Jd2PX2U96Kf9PxygAPKBug+74LHzmHXmceN16MmRcdgZv+DGef/S9YvQAfRsNCn4cjf9yyQ==", + "license": "(BSD-3-Clause AND Apache-2.0)" + } + } +} diff --git a/packages/durabletask-js/src/client/client.ts b/packages/durabletask-js/src/client/client.ts index bdb4fad..b91bac8 100644 --- a/packages/durabletask-js/src/client/client.ts +++ b/packages/durabletask-js/src/client/client.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import * as grpc from "@grpc/grpc-js"; -import { StringValue } from "google-protobuf/google/protobuf/wrappers_pb"; +import { StringValue, Int32Value } from "google-protobuf/google/protobuf/wrappers_pb"; import { Timestamp } from "google-protobuf/google/protobuf/timestamp_pb"; import * as pb from "../proto/orchestrator_service_pb"; import * as stubs from "../proto/orchestrator_service_grpc_pb"; @@ -29,6 +29,15 @@ import { Logger, ConsoleLogger } from "../types/logger.type"; import { StartOrchestrationOptions } from "../task/options"; import { mapToRecord } from "../utils/tags.util"; import { populateTagsMap } from "../utils/pb-helper.util"; +import { EntityInstanceId } from "../entities/entity-instance-id"; +import { EntityMetadata, createEntityMetadata, createEntityMetadataWithoutState } from "../entities/entity-metadata"; +import { EntityQuery } from "../entities/entity-query"; +import { SignalEntityOptions } from "../entities/signal-entity-options"; +import { + CleanEntityStorageRequest, + CleanEntityStorageResult, + defaultCleanEntityStorageRequest, +} from "../entities/clean-entity-storage"; // Re-export MetadataGenerator for backward compatibility export { MetadataGenerator } from "../utils/grpc-helper.util"; @@ -909,6 +918,238 @@ export class TaskHubGrpcClient { }); } + // ==================== Entity Methods ==================== + + /** + * Signals an entity to perform an operation. + * + * This method sends a one-way message to an entity, triggering the specified operation. + * The method returns as soon as the message has been reliably enqueued; it does not + * wait for the operation to be processed by the receiving entity. + * + * @param id - The ID of the entity to signal. + * @param operationName - The name of the operation to invoke. + * @param input - Optional input data for the operation. + * @param options - Optional signal options (e.g., scheduled time). + */ + async signalEntity( + id: EntityInstanceId, + operationName: string, + input?: unknown, + options?: SignalEntityOptions, + ): Promise { + const req = new pb.SignalEntityRequest(); + req.setInstanceid(id.toString()); + req.setRequestid(randomUUID()); + req.setName(operationName); + + if (input !== undefined) { + const inputValue = new StringValue(); + inputValue.setValue(JSON.stringify(input)); + req.setInput(inputValue); + } + + if (options?.signalTime) { + const ts = new Timestamp(); + ts.fromDate(options.signalTime); + req.setScheduledtime(ts); + } + + const requestTime = new Timestamp(); + requestTime.fromDate(new Date()); + req.setRequesttime(requestTime); + + console.log(`Signaling entity '${id.toString()}' with operation '${operationName}'`); + + await callWithMetadata( + this._stub.signalEntity.bind(this._stub), + req, + this._metadataGenerator, + ); + } + + /** + * Gets the metadata for an entity, optionally including its state. + * + * @param id - The ID of the entity to get. + * @param includeState - Whether to include the entity's state in the response. Defaults to true. + * @returns The entity metadata, or undefined if the entity does not exist. + */ + async getEntity( + id: EntityInstanceId, + includeState: boolean = true, + ): Promise | undefined> { + const req = new pb.GetEntityRequest(); + req.setInstanceid(id.toString()); + req.setIncludestate(includeState); + + console.log(`Getting entity '${id.toString()}'`); + + const res = await callWithMetadata( + this._stub.getEntity.bind(this._stub), + req, + this._metadataGenerator, + ); + + if (!res.getExists()) { + return undefined; + } + + const protoMetadata = res.getEntity(); + if (!protoMetadata) { + return undefined; + } + + return this.convertEntityMetadata(protoMetadata, includeState); + } + + /** + * Queries for entities matching the specified filter criteria. + * + * @param query - Optional query filter. If not provided, returns all entities. + * @returns An AsyncPageable that can be iterated by items or by pages. + * + * @remarks + * This method handles pagination automatically when iterating by items. + * Use `.byPage()` to iterate page by page for more control. + * + * @example + * // Iterate by items + * for await (const entity of client.getEntities(query)) { + * console.log(entity.id); + * } + * + * @example + * // Iterate by pages + * for await (const page of client.getEntities(query).byPage()) { + * console.log(`Got ${page.values.length} items`); + * for (const entity of page.values) { + * console.log(entity.id); + * } + * } + */ + getEntities(query?: EntityQuery): AsyncPageable> { + const includeState = query?.includeState ?? true; + + return createAsyncPageable(async (continuationToken?: string): Promise>> => { + const req = new pb.QueryEntitiesRequest(); + const protoQuery = new pb.EntityQuery(); + + if (query?.instanceIdStartsWith) { + const prefix = new StringValue(); + prefix.setValue(query.instanceIdStartsWith); + protoQuery.setInstanceidstartswith(prefix); + } + + if (query?.lastModifiedFrom) { + const ts = new Timestamp(); + ts.fromDate(query.lastModifiedFrom); + protoQuery.setLastmodifiedfrom(ts); + } + + if (query?.lastModifiedTo) { + const ts = new Timestamp(); + ts.fromDate(query.lastModifiedTo); + protoQuery.setLastmodifiedto(ts); + } + + protoQuery.setIncludestate(includeState); + protoQuery.setIncludetransient(query?.includeTransient ?? false); + + if (query?.pageSize) { + const pageSize = new Int32Value(); + pageSize.setValue(query.pageSize); + protoQuery.setPagesize(pageSize); + } + + // Use provided continuation token or fall back to query's initial token + const tokenToUse = continuationToken ?? query?.continuationToken; + if (tokenToUse) { + const token = new StringValue(); + token.setValue(tokenToUse); + protoQuery.setContinuationtoken(token); + } + + req.setQuery(protoQuery); + + const res = await callWithMetadata( + this._stub.queryEntities.bind(this._stub), + req, + this._metadataGenerator, + ); + + const entities = res.getEntitiesList(); + const values = entities.map((protoMetadata) => this.convertEntityMetadata(protoMetadata, includeState)); + + return new Page(values, res.getContinuationtoken()?.getValue()); + }); + } + + /** + * Cleans entity storage by removing empty entities and/or releasing orphaned locks. + * + * @param request - The clean request specifying what to clean. Defaults to removing empty entities and releasing orphaned locks. + * @param continueUntilComplete - Whether to continue until all cleaning is done, or return after one batch. + * @returns The result of the clean operation. + */ + async cleanEntityStorage( + request?: CleanEntityStorageRequest, + continueUntilComplete: boolean = true, + ): Promise { + const req = request ?? defaultCleanEntityStorageRequest(); + let continuationToken: string | undefined = req.continuationToken; + let emptyEntitiesRemoved = 0; + let orphanedLocksReleased = 0; + + do { + const protoReq = new pb.CleanEntityStorageRequest(); + protoReq.setRemoveemptyentities(req.removeEmptyEntities ?? true); + protoReq.setReleaseorphanedlocks(req.releaseOrphanedLocks ?? true); + + if (continuationToken) { + const token = new StringValue(); + token.setValue(continuationToken); + protoReq.setContinuationtoken(token); + } + + const res = await callWithMetadata( + this._stub.cleanEntityStorage.bind(this._stub), + protoReq, + this._metadataGenerator, + ); + + continuationToken = res.getContinuationtoken()?.getValue(); + emptyEntitiesRemoved += res.getEmptyentitiesremoved(); + orphanedLocksReleased += res.getOrphanedlocksreleased(); + } while (continueUntilComplete && continuationToken); + + return { + continuationToken, + emptyEntitiesRemoved, + orphanedLocksReleased, + }; + } + + /** + * Converts a protobuf EntityMetadata to a typed EntityMetadata. + */ + private convertEntityMetadata(protoMetadata: pb.EntityMetadata, includeState: boolean): EntityMetadata { + const instanceIdStr = protoMetadata.getInstanceid(); + const entityId = EntityInstanceId.fromString(instanceIdStr); + + const lastModifiedTime = protoMetadata.getLastmodifiedtime()?.toDate() ?? new Date(); + const backlogQueueSize = protoMetadata.getBacklogqueuesize(); + const lockedBy = protoMetadata.getLockedby()?.getValue(); + const serializedState = protoMetadata.getSerializedstate()?.getValue(); + + if (includeState && serializedState) { + const state = JSON.parse(serializedState) as T; + return createEntityMetadata(entityId, lastModifiedTime, backlogQueueSize, lockedBy, state); + } else { + return createEntityMetadataWithoutState(entityId, lastModifiedTime, backlogQueueSize, lockedBy) as EntityMetadata; + } + } + /** * Helper method to create an OrchestrationState from a protobuf OrchestrationState. */ @@ -968,4 +1209,4 @@ export class TaskHubGrpcClient { tags, ); } -} +} \ No newline at end of file diff --git a/packages/durabletask-js/src/entities/clean-entity-storage.ts b/packages/durabletask-js/src/entities/clean-entity-storage.ts new file mode 100644 index 0000000..98a1f26 --- /dev/null +++ b/packages/durabletask-js/src/entities/clean-entity-storage.ts @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * Request parameters for cleaning entity storage. + * + * @example + * ```typescript + * // Use default cleaning parameters + * const request = CleanEntityStorageRequest.default(); + * + * // Custom cleaning parameters + * const request: CleanEntityStorageRequest = { + * removeEmptyEntities: true, + * releaseOrphanedLocks: false + * }; + * ``` + */ +export interface CleanEntityStorageRequest { + /** + * Whether to remove empty entities. Defaults to true. + * + * An entity is considered empty, and is removed, if it has no state and is not locked. + */ + removeEmptyEntities?: boolean; + + /** + * Whether to release orphaned locks. Defaults to true. + * + * Locks are considered orphaned, and are released, if the orchestration that holds them + * is not in a running state. This should not happen under normal circumstances, but can + * occur if the orchestration instance holding the lock exhibits replay nondeterminism + * failures, or if it is explicitly purged. + */ + releaseOrphanedLocks?: boolean; + + /** + * The continuation token to resume a previous clean operation. + */ + continuationToken?: string; +} + +/** + * Creates a default CleanEntityStorageRequest with maximal cleaning that is safe to call at all times. + * + * @returns A CleanEntityStorageRequest with removeEmptyEntities and releaseOrphanedLocks both set to true. + */ +export function defaultCleanEntityStorageRequest(): CleanEntityStorageRequest { + return { + removeEmptyEntities: true, + releaseOrphanedLocks: true, + continuationToken: undefined, + }; +} + +/** + * Result of a clean entity storage operation. + */ +export interface CleanEntityStorageResult { + /** + * The number of empty entities that were removed. + */ + emptyEntitiesRemoved: number; + + /** + * The number of orphaned locks that were released. + */ + orphanedLocksReleased: number; + + /** + * The continuation token to continue the clean operation, if not complete. + * If undefined, the clean operation is complete. + */ + continuationToken?: string; +} diff --git a/packages/durabletask-js/src/entities/entity-instance-id.ts b/packages/durabletask-js/src/entities/entity-instance-id.ts new file mode 100644 index 0000000..77c124f --- /dev/null +++ b/packages/durabletask-js/src/entities/entity-instance-id.ts @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * Represents the unique identifier for a durable entity instance. + * + * An entity ID is composed of two parts: + * - **name**: The entity type name (normalized to lowercase) + * - **key**: The entity instance key (case-preserved) + * + * The string representation follows the format: `@{name}@{key}` + * + * @example + * ```typescript + * // Create a new entity ID + * const entityId = new EntityInstanceId("Counter", "user-123"); + * console.log(entityId.name); // "counter" (lowercased) + * console.log(entityId.key); // "user-123" (preserved) + * console.log(entityId.toString()); // "@counter@user-123" + * + * // Parse from string + * const parsed = EntityInstanceId.fromString("@counter@user-123"); + * ``` + */ +export class EntityInstanceId { + /** + * The entity type name. Entity names are normalized to lowercase. + */ + readonly name: string; + + /** + * The entity instance key. Keys are case-preserved. + */ + readonly key: string; + + /** + * Creates a new EntityInstanceId. + * + * @param name - The entity type name. Will be normalized to lowercase. + * Must not be empty and must not contain '@' characters. + * @param key - The entity instance key. Must not be null or undefined. + * @throws {Error} If name is empty or contains '@' characters. + * @throws {Error} If key is null or undefined. + */ + constructor(name: string, key: string) { + if (!name || name.length === 0) { + throw new Error("Entity name must not be empty."); + } + + if (name.includes("@")) { + throw new Error("Entity names may not contain '@' characters."); + } + + if (key === null || key === undefined) { + throw new Error("Entity key must not be null or undefined."); + } + + this.name = name.toLowerCase(); + this.key = key; + } + + /** + * Constructs an EntityInstanceId from its string representation. + * + * @param instanceId - The string representation of the entity ID in the format `@{name}@{key}`. + * @returns The parsed EntityInstanceId. + * @throws {Error} If the instanceId is empty or not in valid format. + * + * @example + * ```typescript + * const entityId = EntityInstanceId.fromString("@counter@user-123"); + * console.log(entityId.name); // "counter" + * console.log(entityId.key); // "user-123" + * ``` + */ + static fromString(instanceId: string): EntityInstanceId { + if (!instanceId || instanceId.length === 0) { + throw new Error("Instance ID must not be empty."); + } + + if (instanceId[0] !== "@") { + throw new Error(`Instance ID '${instanceId}' is not a valid entity ID. Must start with '@'.`); + } + + // Find the second '@' starting from position 1 + const separatorPos = instanceId.indexOf("@", 1); + + if (separatorPos <= 0) { + throw new Error(`Instance ID '${instanceId}' is not a valid entity ID. Expected format: @name@key`); + } + + const entityName = instanceId.substring(1, separatorPos); + const entityKey = instanceId.substring(separatorPos + 1); + + if (entityName.length === 0) { + throw new Error(`Instance ID '${instanceId}' is not a valid entity ID. Entity name is empty.`); + } + + return new EntityInstanceId(entityName, entityKey); + } + + /** + * Returns the string representation of this entity ID. + * + * @returns The entity ID in the format `@{name}@{key}`. + */ + toString(): string { + return `@${this.name}@${this.key}`; + } + + /** + * Returns the JSON representation of this entity ID. + * This is called automatically by JSON.stringify() to produce a compact string representation. + * + * @returns The entity ID as a string in the format `@{name}@{key}`. + */ + toJSON(): string { + return this.toString(); + } + + /** + * Checks equality with another EntityInstanceId. + * + * @param other - The other EntityInstanceId to compare with. + * @returns True if both name and key match, false otherwise. + */ + equals(other: EntityInstanceId | null | undefined): boolean { + if (!other) { + return false; + } + return this.name === other.name && this.key === other.key; + } +} diff --git a/packages/durabletask-js/src/entities/entity-metadata.ts b/packages/durabletask-js/src/entities/entity-metadata.ts new file mode 100644 index 0000000..4c9551c --- /dev/null +++ b/packages/durabletask-js/src/entities/entity-metadata.ts @@ -0,0 +1,118 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { EntityInstanceId } from "./entity-instance-id"; + +/** + * Represents metadata about a durable entity instance. + * + * @typeParam T - The type of the entity state. Defaults to `unknown`. + * + * @example + * ```typescript + * // Metadata with typed state + * const metadata: EntityMetadata = { + * id: new EntityInstanceId("counter", "user-123"), + * lastModifiedTime: new Date(), + * backlogQueueSize: 0, + * includesState: true, + * state: 42 + * }; + * ``` + */ +export interface EntityMetadata { + /** + * The unique identifier of the entity. + */ + readonly id: EntityInstanceId; + + /** + * The time when the entity was last modified. + */ + readonly lastModifiedTime: Date; + + /** + * The size of the backlog queue, if there is a backlog and if that metric is supported by the backend. + */ + readonly backlogQueueSize: number; + + /** + * The instance ID of the orchestration that has locked this entity, or undefined if the entity is not locked. + */ + readonly lockedBy?: string; + + /** + * Indicates whether this metadata response includes the entity state. + * + * Queries can exclude the state of the entity from the metadata that is retrieved. + */ + readonly includesState: boolean; + + /** + * The state of the entity, if {@link includesState} is true. + * + * @throws {Error} If accessed when {@link includesState} is false. + */ + readonly state?: T; +} + +/** + * Creates an EntityMetadata object from raw data. + * + * @param id - The entity instance ID. + * @param lastModifiedTime - The last modified time. + * @param backlogQueueSize - The backlog queue size. + * @param lockedBy - The orchestration instance ID holding the lock, if any. + * @param state - The entity state, if included. + * @returns An EntityMetadata object. + */ +export function createEntityMetadata( + id: EntityInstanceId, + lastModifiedTime: Date, + backlogQueueSize: number, + lockedBy: string | undefined, + state: T | undefined +): EntityMetadata { + const includesState = state !== undefined; + + return { + id, + lastModifiedTime, + backlogQueueSize, + lockedBy, + includesState, + get state(): T | undefined { + if (!includesState) { + throw new Error("Cannot retrieve state when includesState is false"); + } + return state; + }, + }; +} + +/** + * Creates an EntityMetadata object without state. + * + * @param id - The entity instance ID. + * @param lastModifiedTime - The last modified time. + * @param backlogQueueSize - The backlog queue size. + * @param lockedBy - The orchestration instance ID holding the lock, if any. + * @returns An EntityMetadata object with includesState set to false. + */ +export function createEntityMetadataWithoutState( + id: EntityInstanceId, + lastModifiedTime: Date, + backlogQueueSize: number, + lockedBy: string | undefined +): EntityMetadata { + return { + id, + lastModifiedTime, + backlogQueueSize, + lockedBy, + includesState: false, + get state(): never { + throw new Error("Cannot retrieve state when includesState is false"); + }, + }; +} diff --git a/packages/durabletask-js/src/entities/entity-operation-failed-exception.ts b/packages/durabletask-js/src/entities/entity-operation-failed-exception.ts new file mode 100644 index 0000000..35c7308 --- /dev/null +++ b/packages/durabletask-js/src/entities/entity-operation-failed-exception.ts @@ -0,0 +1,103 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { EntityInstanceId } from "./entity-instance-id"; +import * as pb from "../proto/orchestrator_service_pb"; + +/** + * Details about a task failure. + * + * @remarks + * Contains structured information about an error that occurred during + * entity operation execution, including error type, message, and stack trace. + */ +export interface TaskFailureDetails { + /** + * The type of error (e.g., exception type name). + */ + readonly errorType: string; + + /** + * The error message. + */ + readonly errorMessage: string; + + /** + * The stack trace, if available. + */ + readonly stackTrace?: string; + + /** + * Details about an inner failure, if any. + */ + readonly innerFailure?: TaskFailureDetails; +} + +/** + * Creates TaskFailureDetails from a protobuf TaskFailureDetails message. + * + * @param proto - The protobuf TaskFailureDetails message. + * @returns The TaskFailureDetails object. + */ +export function createTaskFailureDetails(proto: pb.TaskFailureDetails | undefined): TaskFailureDetails | undefined { + if (!proto) { + return undefined; + } + + return { + errorType: proto.getErrortype(), + errorMessage: proto.getErrormessage(), + stackTrace: proto.getStacktrace()?.getValue(), + innerFailure: createTaskFailureDetails(proto.getInnerfailure()), + }; +} + +/** + * Exception that gets thrown when an entity operation fails with an unhandled exception. + * + * @remarks + * Detailed information associated with a particular operation failure, including exception details, + * can be found in the `failureDetails` property. + */ +export class EntityOperationFailedException extends Error { + /** + * The ID of the entity. + */ + readonly entityId: EntityInstanceId; + + /** + * The name of the operation that failed. + */ + readonly operationName: string; + + /** + * The details of the task failure, including exception information. + */ + readonly failureDetails: TaskFailureDetails; + + /** + * Creates a new EntityOperationFailedException. + * + * @param entityId - The entity ID. + * @param operationName - The operation name. + * @param failureDetails - The failure details. + */ + constructor(entityId: EntityInstanceId, operationName: string, failureDetails: TaskFailureDetails) { + super(EntityOperationFailedException.getExceptionMessage(operationName, entityId, failureDetails)); + this.name = "EntityOperationFailedException"; + this.entityId = entityId; + this.operationName = operationName; + this.failureDetails = failureDetails; + + // Set the prototype explicitly for proper instanceof checks + Object.setPrototypeOf(this, EntityOperationFailedException.prototype); + } + + private static getExceptionMessage( + operationName: string, + entityId: EntityInstanceId, + failureDetails: TaskFailureDetails, + ): string { + return `Operation '${operationName}' of entity '${entityId.toString()}' failed: ${failureDetails.errorMessage}`; + } +} diff --git a/packages/durabletask-js/src/entities/entity-query.ts b/packages/durabletask-js/src/entities/entity-query.ts new file mode 100644 index 0000000..5c221bf --- /dev/null +++ b/packages/durabletask-js/src/entities/entity-query.ts @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * A query for fetching entities. + * + * @example + * ```typescript + * // Query for all counters + * const query: EntityQuery = { + * instanceIdStartsWith: "counter@", + * includeState: true, + * pageSize: 100 + * }; + * + * // Query for entities with specific key prefix + * const query2: EntityQuery = { + * instanceIdStartsWith: "counter@user-", + * includeState: false + * }; + * ``` + */ +export interface EntityQuery { + /** + * Optional starts-with expression for the entity instance ID. + * + * Entity IDs are expressed as `@{name}@{key}`. The starting "@" may be included or left out. + * + * - To query for an exact entity name, include the separator "@". e.g.: `"exactNameMatch@"`. + * - To query for an entity name starts with, leave out the separator "@". e.g.: `"namePrefixMatch"`. + * - To query for an entity name match **and** a key prefix, include name match, the separator "@", + * and finally the key prefix. e.g. `"exactNameMatch@keyPrefixMatch"`. + * + * Note: The name portion will be normalized to lowercase. + */ + instanceIdStartsWith?: string; + + /** + * Get entity instances which were last modified after the provided time. + */ + lastModifiedFrom?: Date; + + /** + * Get entity instances which were last modified before the provided time. + */ + lastModifiedTo?: Date; + + /** + * Whether to include state in the query results. Defaults to true. + */ + includeState?: boolean; + + /** + * Whether to include metadata about transient entities. Defaults to false. + * + * Transient entities are entities that do not have an application-defined state, + * but for which the storage provider is tracking metadata for synchronization purposes. + * For example, a transient entity may be observed when the entity is in the process + * of being created or deleted, or when the entity has been locked by a critical section. + * By default, transient entities are not included in queries since they are considered + * to "not exist" from the perspective of the user application. + */ + includeTransient?: boolean; + + /** + * The size of each page to return. If undefined, the page size is determined by the backend. + */ + pageSize?: number; + + /** + * The continuation token to resume a previous query. + */ + continuationToken?: string; +} + +/** + * Normalizes the instanceIdStartsWith prefix according to entity ID format rules. + * + * - Prefixes "@" if not already present + * - Lowercases the name portion (everything up to the second "@") + * - Preserves the key portion case + * + * @param prefix - The raw prefix value. + * @returns The normalized prefix, or undefined if input is undefined/null. + * + * @example + * ```typescript + * normalizeInstanceIdPrefix("Counter") // returns "@counter" + * normalizeInstanceIdPrefix("Counter@") // returns "@counter@" + * normalizeInstanceIdPrefix("Counter@User-123") // returns "@counter@User-123" + * normalizeInstanceIdPrefix("@Counter@User-123") // returns "@counter@User-123" + * ``` + */ +export function normalizeInstanceIdPrefix(prefix: string | undefined | null): string | undefined { + if (prefix === undefined || prefix === null) { + return undefined; + } + + // Prefix '@' if filter value provided and not already prefixed with '@' + const prefixed = prefix.length === 0 || prefix[0] !== "@" ? `@${prefix}` : prefix; + + // Check if there is a name-key separator in the string + const separatorPos = prefixed.indexOf("@", 1); + + if (separatorPos !== -1) { + // Selectively normalize only the part up until that separator (the name portion) + const namePart = prefixed.substring(0, separatorPos).toLowerCase(); + const keyPart = prefixed.substring(separatorPos); + return namePart + keyPart; + } else { + // Normalize the entire prefix (it's all name, no key portion) + return prefixed.toLowerCase(); + } +} + +/** + * Creates an EntityQuery with normalized values. + * + * @param query - The raw query parameters. + * @returns A new EntityQuery with normalized instanceIdStartsWith. + */ +export function createEntityQuery(query: EntityQuery): EntityQuery { + return { + ...query, + instanceIdStartsWith: normalizeInstanceIdPrefix(query.instanceIdStartsWith), + }; +} diff --git a/packages/durabletask-js/src/entities/index.ts b/packages/durabletask-js/src/entities/index.ts new file mode 100644 index 0000000..92c3a5f --- /dev/null +++ b/packages/durabletask-js/src/entities/index.ts @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// Core identity types +export { EntityInstanceId } from "./entity-instance-id"; + +// Client-side types (Step 2) +export { + EntityMetadata, + createEntityMetadata, + createEntityMetadataWithoutState, +} from "./entity-metadata"; +export { + EntityQuery, + normalizeInstanceIdPrefix, + createEntityQuery, +} from "./entity-query"; +export { + CleanEntityStorageRequest, + CleanEntityStorageResult, + defaultCleanEntityStorageRequest, +} from "./clean-entity-storage"; + +// Worker-side entity operation types (Step 3) +export { SignalEntityOptions, CallEntityOptions } from "./signal-entity-options"; +export { TaskEntityState } from "./task-entity-state"; +export { TaskEntityContext, StartOrchestrationOptions } from "./task-entity-context"; +export { TaskEntityOperation } from "./task-entity-operation"; + +// Entity interface and base class (Step 4) +export { ITaskEntity, EntityFactory, TaskEntity } from "./task-entity"; + +// Orchestration entity feature (Step 7, 8, 11) +export { + OrchestrationEntityFeature, + CriticalSectionInfo, + LockHandle, +} from "./orchestration-entity-feature"; +export { + EntityOperationFailedException, + TaskFailureDetails, + createTaskFailureDetails, +} from "./entity-operation-failed-exception"; diff --git a/packages/durabletask-js/src/entities/orchestration-entity-feature.ts b/packages/durabletask-js/src/entities/orchestration-entity-feature.ts new file mode 100644 index 0000000..b509b82 --- /dev/null +++ b/packages/durabletask-js/src/entities/orchestration-entity-feature.ts @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { Task } from "../task/task"; +import { EntityInstanceId } from "./entity-instance-id"; +import { CallEntityOptions, SignalEntityOptions } from "./signal-entity-options"; + +/** + * Result of checking if currently in a critical section. + */ +export interface CriticalSectionInfo { + /** + * Whether the orchestration is currently inside a critical section. + */ + inSection: boolean; + + /** + * The entities that are locked in the current critical section. + * Only populated when inSection is true. + */ + lockedEntities?: EntityInstanceId[]; +} + +/** + * A disposable object that releases entity locks when disposed. + * + * @remarks + * Use this to release locks acquired via `lockEntities`. + * Typically used in a try/finally block to ensure locks are released. + */ +export interface LockHandle { + /** + * Releases all entity locks held by this lock handle. + */ + release(): void; +} + +/** + * Feature for interacting with durable entities from an orchestration. + * + * @remarks + * This feature provides methods to call and signal entities from within an orchestration. + * - `callEntity` waits for a response from the entity. + * - `signalEntity` is a one-way (fire-and-forget) operation that doesn't wait for a response. + * - `lockEntities` acquires locks on multiple entities for critical sections. + */ +export interface OrchestrationEntityFeature { + /** + * Calls an operation on an entity and waits for it to complete. + * + * @typeParam TResult - The result type of the entity operation. + * @param id - The target entity instance ID. + * @param operationName - The name of the operation to invoke. + * @param input - Optional input to pass to the operation. + * @param options - Optional call options. + * @returns A task that completes when the entity operation finishes, with the operation result. + * @throws {EntityOperationFailedException} If the entity operation fails with an unhandled exception. + * + * @remarks + * Unlike `signalEntity`, this method waits for the entity to process the operation + * and returns the result. If the entity operation throws an exception, this method + * will throw an `EntityOperationFailedException` containing the failure details. + */ + callEntity( + id: EntityInstanceId, + operationName: string, + input?: unknown, + options?: CallEntityOptions, + ): Task; + + /** + * Signals an operation on an entity without waiting for a response. + * + * @param id - The target entity instance ID. + * @param operationName - The name of the operation to invoke. + * @param input - Optional input to pass to the operation. + * @param options - Optional signal options (e.g., scheduled time). + * + * @remarks + * This is a fire-and-forget operation. The orchestration will not wait for + * the entity operation to complete. Use `callEntity` if you need to wait + * for a response. + */ + signalEntity( + id: EntityInstanceId, + operationName: string, + input?: unknown, + options?: SignalEntityOptions, + ): void; + + /** + * Acquires locks on one or more entities for a critical section. + * + * @param entityIds - The entities to lock. Order doesn't matter; they will be sorted internally. + * @returns A task that completes when all locks are acquired, with a handle to release the locks. + * + * @remarks + * This method acquires exclusive locks on all specified entities, ensuring that no other + * orchestration can access them until the locks are released. Locks are acquired in a + * globally consistent order (sorted by entity ID) to prevent deadlocks. + * + * Use the returned LockHandle to release the locks when the critical section is complete. + * It's recommended to release locks in a finally block to ensure they're always released. + * + * While holding locks: + * - You can call (but not signal) the locked entities + * - You cannot call sub-orchestrations + * - You cannot acquire additional locks (no nested critical sections) + */ + lockEntities(...entityIds: EntityInstanceId[]): Task; + + /** + * Checks whether the orchestration is currently inside a critical section. + * + * @returns Information about the current critical section state. + * + */ + isInCriticalSection(): CriticalSectionInfo; +} diff --git a/packages/durabletask-js/src/entities/signal-entity-options.ts b/packages/durabletask-js/src/entities/signal-entity-options.ts new file mode 100644 index 0000000..8f719d1 --- /dev/null +++ b/packages/durabletask-js/src/entities/signal-entity-options.ts @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * Options for signaling an entity. + * + * @remarks + * Signals are one-way (fire-and-forget) messages sent to entities. + * The signalTime option allows scheduling a signal for future delivery. + */ +export interface SignalEntityOptions { + /** + * The time at which to signal the entity. + * If not specified, the signal is delivered immediately. + */ + readonly signalTime?: Date; +} + +/** + * Options for calling an entity (request/response). + * + * @remarks + * Currently empty, reserved for future extensibility. + * Keeping this interface so we can ship with options in the API + * and add properties later without breaking changes. + */ +// eslint-disable-next-line @typescript-eslint/no-empty-object-type +export interface CallEntityOptions { + // No call options at the moment. Keeping this interface so we can ship with options in the API. + // This will allow us to easily add them later without adjusting API surface. +} diff --git a/packages/durabletask-js/src/entities/task-entity-context.ts b/packages/durabletask-js/src/entities/task-entity-context.ts new file mode 100644 index 0000000..9c5ce68 --- /dev/null +++ b/packages/durabletask-js/src/entities/task-entity-context.ts @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { EntityInstanceId } from "./entity-instance-id"; +import { SignalEntityOptions } from "./signal-entity-options"; + +/** + * Options for scheduling a new orchestration from within an entity. + */ +export interface StartOrchestrationOptions { + /** + * The unique instance ID for the new orchestration. + * If not specified, a new GUID will be generated. + */ + readonly instanceId?: string; + + /** + * The time at which to start the orchestration. + * If not specified, the orchestration starts immediately. + */ + readonly startAt?: Date; +} + +/** + * The context for a TaskEntity, providing access to entity identity + * and methods for signaling other entities or scheduling orchestrations. + * + * @remarks + * This context is available during entity operation execution and allows + * the entity to interact with other entities and orchestrations. + */ +export interface TaskEntityContext { + /** + * Gets the instance ID of this entity. + */ + readonly id: EntityInstanceId; + + /** + * Signals an entity operation (fire-and-forget). + * + * @param id - The entity to signal. + * @param operationName - The name of the operation to invoke. + * @param input - Optional input for the operation. + * @param options - Optional signal options (e.g., scheduled delivery time). + * + * @remarks + * Signals are one-way messages; the caller does not wait for a response. + * The signal will be delivered asynchronously to the target entity. + */ + signalEntity( + id: EntityInstanceId, + operationName: string, + input?: unknown, + options?: SignalEntityOptions, + ): void; + + /** + * Schedules a new orchestration to be started. + * + * @param name - The name of the orchestration to start. + * @param input - Optional input for the orchestration. + * @param options - Optional start options (e.g., instance ID, start time). + * @returns The instance ID of the new orchestration. + * + * @remarks + * The orchestration will be started asynchronously. The returned instance ID + * can be used to query or manage the orchestration. + */ + scheduleNewOrchestration( + name: string, + input?: unknown, + options?: StartOrchestrationOptions, + ): string; +} diff --git a/packages/durabletask-js/src/entities/task-entity-operation.ts b/packages/durabletask-js/src/entities/task-entity-operation.ts new file mode 100644 index 0000000..e376c31 --- /dev/null +++ b/packages/durabletask-js/src/entities/task-entity-operation.ts @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { TaskEntityContext } from "./task-entity-context"; +import { TaskEntityState } from "./task-entity-state"; + +/** + * Describes a single operation for a TaskEntity. + * + * @remarks + * This interface encapsulates all information about an operation request: + * - The operation name + * - The operation input (if any) + * - The entity context (for signaling other entities, scheduling orchestrations) + * - The entity state (for reading/writing persistent state) + */ +export interface TaskEntityOperation { + /** + * Gets the name of the operation. + * + * @remarks + * Operation names are case-insensitive when dispatched by the base TaskEntity class. + */ + readonly name: string; + + /** + * Gets the context for this entity operation. + * + * @remarks + * The context provides access to entity identity and methods for + * signaling other entities or scheduling orchestrations. + */ + readonly context: TaskEntityContext; + + /** + * Gets the state of the entity. + * + * @remarks + * Use the state object to read and write the entity's persistent state. + * Setting state to null/undefined will delete the entity. + */ + readonly state: TaskEntityState; + + /** + * Gets a value indicating whether this operation has input. + * + * @returns true if the operation has input; false otherwise. + */ + readonly hasInput: boolean; + + /** + * Gets the input for this operation. + * + * @typeParam T - The type to deserialize the input as. + * @returns The deserialized input, or undefined if there is no input. + */ + getInput(): T | undefined; +} diff --git a/packages/durabletask-js/src/entities/task-entity-state.ts b/packages/durabletask-js/src/entities/task-entity-state.ts new file mode 100644 index 0000000..f13729c --- /dev/null +++ b/packages/durabletask-js/src/entities/task-entity-state.ts @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * Represents the persisted state of an entity. + * + * @remarks + * This interface provides methods for getting and setting entity state during operation execution. + * Setting state to null or undefined will delete the entity state. + */ +export interface TaskEntityState { + /** + * Gets a value indicating whether this entity currently has state. + * + * @returns true if the entity has state; false if the entity has not been initialized or was deleted. + */ + readonly hasState: boolean; + + /** + * Gets the current state of the entity. + * + * @typeParam T - The type to retrieve the state as. + * @param defaultValue - Optional default value to return if no state is present. + * @returns The entity state, or the default value if no state is present. + * + * @remarks + * If no state is present, the defaultValue will be returned but it will NOT be persisted. + * You must call setState() to persist state changes. + */ + getState(defaultValue?: T): T | undefined; + + /** + * Sets the entity state. + * + * @param state - The state to set. Setting null or undefined will delete the entity state. + * + * @remarks + * Setting state to null or undefined will effectively delete the entity. + * The state will be serialized to JSON for persistence. + */ + setState(state: unknown): void; +} diff --git a/packages/durabletask-js/src/entities/task-entity.ts b/packages/durabletask-js/src/entities/task-entity.ts new file mode 100644 index 0000000..84c7f93 --- /dev/null +++ b/packages/durabletask-js/src/entities/task-entity.ts @@ -0,0 +1,191 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { TaskEntityContext } from "./task-entity-context"; +import { TaskEntityOperation } from "./task-entity-operation"; + +/** + * The task entity contract. + * + * @remarks + * This is the core interface that all entities must implement. + * The state of an entity can be retrieved and updated via the operation's state property. + */ +export interface ITaskEntity { + /** + * Runs an operation for this entity. + * + * @param operation - The operation to run. + * @returns The response to the caller, if any. Can be a Promise for async operations. + */ + run(operation: TaskEntityOperation): unknown | Promise; +} + +/** + * Type for entity factory functions that create entity instances. + */ +export type EntityFactory = () => T; + +/** + * An ITaskEntity which dispatches its operations to methods on the class. + * + * @typeParam TState - The state type held by this entity. + * + * @remarks + * **Method Binding** + * + * When using this base class, all public methods will be considered valid entity operations. + * - Operation matching is case insensitive. + * - Error is thrown if no matching method is found for an operation. + * + * **Entity State** + * + * Entity state will be hydrated into the `state` property. The state is initialized + * via `initializeState()` when there is no current state. + * + * **Implicit Operations** + * + * This class supports the `delete` operation implicitly. When `delete` is called and no + * explicit delete method exists, the entity state is set to null (deleted). + * To override this behavior, implement a `delete()` method on your entity. + */ +export abstract class TaskEntity implements ITaskEntity { + /** + * Gets or sets the state for this entity. + * + * @remarks + * This will be hydrated as part of `run()`. `initializeState()` will be called + * when state is null/undefined at the start of an operation. + * + * Setting to null or undefined will delete the entity state. + */ + protected state!: TState; + + /** + * Gets the entity context. + */ + protected get context(): TaskEntityContext | undefined { + return this._context; + } + + /** + * The current context. Set during run(). + */ + private _context: TaskEntityContext | undefined; + + /** + * Runs an operation for this entity. + * + * @param operation - The operation to run. + * @returns The response to the caller, if any. + */ + async run(operation: TaskEntityOperation): Promise { + this._context = operation.context; + + // Hydrate state + const existingState = operation.state.getState(); + if (existingState === undefined || existingState === null) { + this.state = this.initializeState(); + } else { + this.state = existingState; + } + + // Try to dispatch to a method on this class + const result = this.dispatch(operation); + + // Handle async results + const resolvedResult = await Promise.resolve(result); + operation.state.setState(this.state); + + return resolvedResult; + } + + /** + * Initializes the entity state. This is only called when there is no current state. + * + * @returns The initial entity state. + * + * @remarks + * The default implementation returns an empty object cast to TState. + * Override this method to provide custom initialization logic. + */ + protected initializeState(): TState { + return {} as TState; + } + + /** + * Dispatches the operation to the appropriate method on this class. + * + * @param operation - The operation to dispatch. + * @returns The result of the method invocation. + */ + private dispatch(operation: TaskEntityOperation): unknown { + const operationName = operation.name.toLowerCase(); + + // Find a method that matches the operation name (case-insensitive) + const methodName = this.findMethod(operationName); + + if (methodName) { + // Get the method and invoke it + const method = (this as unknown as Record)[methodName]; + if (typeof method === "function") { + // Bind to this and call with input if present + const boundMethod = method.bind(this); + if (operation.hasInput) { + return boundMethod(operation.getInput()); + } + return boundMethod(); + } + } + + // Try implicit operations + if (this.tryDispatchImplicit(operation)) { + return undefined; + } + + // No matching method found + throw new Error(`No suitable method found for entity operation '${operation.name}'.`); + } + + /** + * Finds a method on this class that matches the operation name (case-insensitive). + * + * @param operationName - The operation name (already lowercased). + * @returns The actual method name if found, undefined otherwise. + */ + private findMethod(operationName: string): string | undefined { + // Get all own property names of this instance and its prototype chain + const proto = Object.getPrototypeOf(this); + const methodNames = Object.getOwnPropertyNames(proto); + + // Find a method that matches case-insensitively + for (const name of methodNames) { + if (name.toLowerCase() === operationName) { + const prop = (this as unknown as Record)[name]; + // Skip non-functions and built-in methods + if (typeof prop === "function" && name !== "constructor" && name !== "run") { + return name; + } + } + } + + return undefined; + } + + /** + * Tries to dispatch implicit operations. + * + * @param operation - The operation to dispatch. + * @returns True if an implicit operation was handled, false otherwise. + */ + private tryDispatchImplicit(operation: TaskEntityOperation): boolean { + // Handle implicit "delete" operation + if (operation.name.toLowerCase() === "delete") { + operation.state.setState(null); + this.state = null as unknown as TState; + return true; + } + + return false; + } +} diff --git a/packages/durabletask-js/src/index.ts b/packages/durabletask-js/src/index.ts index 9c41cd2..5549020 100644 --- a/packages/durabletask-js/src/index.ts +++ b/packages/durabletask-js/src/index.ts @@ -82,6 +82,44 @@ export { TActivity } from "./types/activity.type"; export { TInput } from "./types/input.type"; export { TOutput } from "./types/output.type"; +// Entity types - Core identity (Step 1) +export { EntityInstanceId } from "./entities/entity-instance-id"; + +// Entity types - Client-side types (Step 2) +export { + EntityMetadata, + createEntityMetadata, + createEntityMetadataWithoutState, +} from "./entities/entity-metadata"; +export { + EntityQuery, + normalizeInstanceIdPrefix, + createEntityQuery, +} from "./entities/entity-query"; +export { + CleanEntityStorageRequest, + CleanEntityStorageResult, + defaultCleanEntityStorageRequest, +} from "./entities/clean-entity-storage"; + +// Entity types - Worker-side operation types (Step 3) +export { SignalEntityOptions, CallEntityOptions } from "./entities/signal-entity-options"; +export { TaskEntityState } from "./entities/task-entity-state"; +export { TaskEntityContext } from "./entities/task-entity-context"; +export { TaskEntityOperation } from "./entities/task-entity-operation"; + +// Entity interface and base class (Step 4) +export { ITaskEntity, EntityFactory, TaskEntity } from "./entities/task-entity"; + +// Entity executor and state management (Step 5) +export { TaskEntityShim, EntityAction } from "./worker/entity-executor"; + +// Orchestration entity feature (Step 7) +export { + OrchestrationEntityFeature, + LockHandle, + CriticalSectionInfo, +} from "./entities/orchestration-entity-feature"; // Testing utilities export { InMemoryOrchestrationBackend, TestOrchestrationClient, TestOrchestrationWorker } from "./testing"; export { ParentOrchestrationInstance } from "./types/parent-orchestration-instance.type"; diff --git a/packages/durabletask-js/src/task/context/orchestration-context.ts b/packages/durabletask-js/src/task/context/orchestration-context.ts index 73641cd..98a50f4 100644 --- a/packages/durabletask-js/src/task/context/orchestration-context.ts +++ b/packages/durabletask-js/src/task/context/orchestration-context.ts @@ -8,6 +8,7 @@ import { Logger } from "../../types/logger.type"; import { ReplaySafeLogger } from "../../types/replay-safe-logger"; import { TaskOptions, SubOrchestrationOptions } from "../options"; import { Task } from "../task"; +import { OrchestrationEntityFeature } from "../../entities/orchestration-entity-feature"; import { compareVersions } from "../../utils/versioning.util"; export abstract class OrchestrationContext { @@ -52,6 +53,17 @@ export abstract class OrchestrationContext { */ abstract get isReplaying(): boolean; + /** + * Gets the entity feature for interacting with durable entities. + * + * @returns {OrchestrationEntityFeature} The entity feature for signaling entities. + * + * @remarks + * Use this property to signal entities from within an orchestration. + * Signaling is a one-way (fire-and-forget) operation. + */ + abstract get entities(): OrchestrationEntityFeature; + /** * Gets the version of the current orchestration instance. * diff --git a/packages/durabletask-js/src/utils/async-pageable.ts b/packages/durabletask-js/src/utils/async-pageable.ts new file mode 100644 index 0000000..e43b7cb --- /dev/null +++ b/packages/durabletask-js/src/utils/async-pageable.ts @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * Represents a page of results from a paginated query. + */ +export interface Page { + /** The values in this page. */ + values: T[]; + /** The continuation token for fetching the next page, or undefined if this is the last page. */ + continuationToken?: string; +} + +/** + * A function that fetches a page of results. + * @param continuationToken - The continuation token from the previous page, or undefined for the first page. + * @returns A promise that resolves to the next page of results. + */ +export type PageFetcher = (continuationToken?: string) => Promise>; + +/** + * Represents an asynchronous pageable collection that supports both + * item-by-item iteration and page-by-page iteration. + * + * This is similar to .NET's AsyncPageable from Azure SDK. + * + * @example + * // Iterate by items + * for await (const entity of client.getEntities(query)) { + * console.log(entity.id); + * } + * + * @example + * // Iterate by pages + * for await (const page of client.getEntities(query).byPage()) { + * console.log(`Got ${page.values.length} items`); + * for (const entity of page.values) { + * console.log(entity.id); + * } + * } + */ +export class AsyncPageable { + private readonly fetchPage: PageFetcher; + + /** + * Creates a new AsyncPageable instance. + * @param fetchPage - A function that fetches a page of results given a continuation token. + */ + constructor(fetchPage: PageFetcher) { + this.fetchPage = fetchPage; + } + + /** + * Creates an AsyncPageable from a page fetcher function. + * @param fetchPage - A function that fetches a page of results. + * @returns An AsyncPageable instance. + */ + static create(fetchPage: PageFetcher): AsyncPageable { + return new AsyncPageable(fetchPage); + } + + /** + * Implements the async iterator protocol to iterate over individual items. + * This automatically handles pagination, fetching additional pages as needed. + */ + async *[Symbol.asyncIterator](): AsyncGenerator { + for await (const page of this.byPage()) { + for (const item of page.values) { + yield item; + } + } + } + + /** + * Returns an async generator that yields pages of results. + * Use this when you need access to page boundaries or continuation tokens. + * + * @param options - Optional settings for page iteration. + * @param options.continuationToken - A continuation token to resume from a specific page. + * @returns An async generator that yields pages. + */ + async *byPage(options?: { continuationToken?: string }): AsyncGenerator, void, unknown> { + let continuationToken: string | undefined = options?.continuationToken; + + do { + const page = await this.fetchPage(continuationToken); + yield page; + continuationToken = page.continuationToken; + } while (continuationToken); + } +} diff --git a/packages/durabletask-js/src/utils/pb-helper.util.ts b/packages/durabletask-js/src/utils/pb-helper.util.ts index 731d04f..5f8a58e 100644 --- a/packages/durabletask-js/src/utils/pb-helper.util.ts +++ b/packages/durabletask-js/src/utils/pb-helper.util.ts @@ -423,3 +423,170 @@ export function getOrchestrationStatusStr(status: number): string { return "UNKNOWN"; } + +/** + * Creates a SendEntityMessageAction for signaling an entity (one-way, fire-and-forget). + * + * @param id - The action ID (sequence number). + * @param instanceId - The target entity instance ID string (format: @name@key). + * @param operationName - The name of the operation to invoke. + * @param requestId - A unique request ID for this signal. + * @param encodedInput - Optional JSON-encoded input for the operation. + * @param scheduledTime - Optional scheduled time for delayed delivery. + * @returns The OrchestratorAction containing the SendEntityMessageAction. + * + * @remarks + * This creates an EntityOperationSignaledEvent which is a one-way message. + * The orchestration does not wait for a response. + */ +export function newSendEntityMessageSignalAction( + id: number, + instanceId: string, + operationName: string, + requestId: string, + encodedInput?: string, + scheduledTime?: Date, +): pb.OrchestratorAction { + const signalEvent = new pb.EntityOperationSignaledEvent(); + signalEvent.setRequestid(requestId); + signalEvent.setOperation(operationName); + signalEvent.setInput(getStringValue(encodedInput)); + signalEvent.setTargetinstanceid(getStringValue(instanceId)); + + if (scheduledTime) { + const ts = new Timestamp(); + ts.fromDate(scheduledTime); + signalEvent.setScheduledtime(ts); + } + + const sendEntityMessage = new pb.SendEntityMessageAction(); + sendEntityMessage.setEntityoperationsignaled(signalEvent); + + const action = new pb.OrchestratorAction(); + action.setId(id); + action.setSendentitymessage(sendEntityMessage); + + return action; +} + +/** + * Creates a SendEntityMessageAction for calling an entity (request/response). + * + * @param id - The action ID (sequence number). + * @param instanceId - The target entity instance ID string (format: @name@key). + * @param operationName - The name of the operation to invoke. + * @param requestId - A unique request ID for this call (used to correlate the response). + * @param parentInstanceId - The orchestration instance ID making the call. + * @param encodedInput - Optional JSON-encoded input for the operation. + * @param scheduledTime - Optional scheduled time for delayed delivery. + * @returns The OrchestratorAction containing the SendEntityMessageAction. + * + * @remarks + * This creates an EntityOperationCalledEvent which expects a response. + * The orchestration waits for EntityOperationCompletedEvent or EntityOperationFailedEvent + * with a matching requestId. + */ +export function newSendEntityMessageCallAction( + id: number, + instanceId: string, + operationName: string, + requestId: string, + parentInstanceId: string, + parentExecutionId?: string, + encodedInput?: string, + scheduledTime?: Date, +): pb.OrchestratorAction { + const callEvent = new pb.EntityOperationCalledEvent(); + callEvent.setRequestid(requestId); + callEvent.setOperation(operationName); + callEvent.setInput(getStringValue(encodedInput)); + callEvent.setTargetinstanceid(getStringValue(instanceId)); + callEvent.setParentinstanceid(getStringValue(parentInstanceId)); + callEvent.setParentexecutionid(getStringValue(parentExecutionId)); + + if (scheduledTime) { + const ts = new Timestamp(); + ts.fromDate(scheduledTime); + callEvent.setScheduledtime(ts); + } + + const sendEntityMessage = new pb.SendEntityMessageAction(); + sendEntityMessage.setEntityoperationcalled(callEvent); + + const action = new pb.OrchestratorAction(); + action.setId(id); + action.setSendentitymessage(sendEntityMessage); + + return action; +} + +/** + * Creates a SendEntityMessageAction for requesting entity locks. + * + * @param id - The action ID (sequence number). + * @param criticalSectionId - A unique ID for this critical section (used to correlate lock grant). + * @param lockSet - Array of entity instance ID strings (format: @name@key) to lock, in sorted order. + * @param parentInstanceId - The orchestration instance ID requesting the locks. + * @returns The OrchestratorAction containing the SendEntityMessageAction. + * + * @remarks + * This creates an EntityLockRequestedEvent which is sent to the first entity in the lock set. + * The entity framework will forward the lock request to subsequent entities. + * The orchestration waits for EntityLockGrantedEvent with a matching criticalSectionId. + */ +export function newSendEntityMessageLockAction( + id: number, + criticalSectionId: string, + lockSet: string[], + parentInstanceId: string, +): pb.OrchestratorAction { + const lockEvent = new pb.EntityLockRequestedEvent(); + lockEvent.setCriticalsectionid(criticalSectionId); + lockEvent.setLocksetList(lockSet); + lockEvent.setPosition(0); + lockEvent.setParentinstanceid(getStringValue(parentInstanceId)); + + const sendEntityMessage = new pb.SendEntityMessageAction(); + sendEntityMessage.setEntitylockrequested(lockEvent); + + const action = new pb.OrchestratorAction(); + action.setId(id); + action.setSendentitymessage(sendEntityMessage); + + return action; +} + +/** + * Creates a SendEntityMessageAction for releasing entity locks. + * + * @param id - The action ID (sequence number). + * @param criticalSectionId - The ID of the critical section to release. + * @param targetInstanceId - The entity instance ID string to send the unlock to. + * @param parentInstanceId - The orchestration instance ID releasing the lock. + * @returns The OrchestratorAction containing the SendEntityMessageAction. + * + * @remarks + * This creates an EntityUnlockSentEvent to release a lock held by the orchestration. + * One unlock event should be sent to each entity in the lock set. + */ +export function newSendEntityMessageUnlockAction( + id: number, + criticalSectionId: string, + targetInstanceId: string, + parentInstanceId: string, +): pb.OrchestratorAction { + const unlockEvent = new pb.EntityUnlockSentEvent(); + unlockEvent.setCriticalsectionid(criticalSectionId); + unlockEvent.setTargetinstanceid(getStringValue(targetInstanceId)); + unlockEvent.setParentinstanceid(getStringValue(parentInstanceId)); + + const sendEntityMessage = new pb.SendEntityMessageAction(); + sendEntityMessage.setEntityunlocksent(unlockEvent); + + const action = new pb.OrchestratorAction(); + action.setId(id); + action.setSendentitymessage(sendEntityMessage); + + return action; +} + diff --git a/packages/durabletask-js/src/worker/entity-executor.ts b/packages/durabletask-js/src/worker/entity-executor.ts new file mode 100644 index 0000000..d90aa84 --- /dev/null +++ b/packages/durabletask-js/src/worker/entity-executor.ts @@ -0,0 +1,471 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { ITaskEntity } from "../entities/task-entity"; +import { EntityInstanceId } from "../entities/entity-instance-id"; +import { TaskEntityOperation } from "../entities/task-entity-operation"; +import { TaskEntityState } from "../entities/task-entity-state"; +import { TaskEntityContext, StartOrchestrationOptions } from "../entities/task-entity-context"; +import { SignalEntityOptions } from "../entities/signal-entity-options"; +import * as pb from "../proto/orchestrator_service_pb"; +import { StringValue } from "google-protobuf/google/protobuf/wrappers_pb"; +import { Timestamp } from "google-protobuf/google/protobuf/timestamp_pb"; +import { randomUUID } from "crypto"; + +/** + * Internal type representing actions collected during entity execution. + * + * @remarks + * Values are serialized immediately when action is created (not later), + * requestTime is captured at action creation time, and instanceId is + * converted to string immediately. + */ +export type EntityAction = + | { + type: "signalEntity"; + instanceId: string; + name: string; + input: string | undefined; + scheduledTime?: Date; + requestTime: Date; + } + | { + type: "scheduleOrchestration"; + instanceId: string; + name: string; + input: string | undefined; + scheduledTime?: Date; + requestTime: Date; + }; + + +/** + * Internal state management with checkpoint/rollback support. + * + * @remarks + * Stores state as serialized JSON string for cheap checkpoint, + * uses lazy deserialization with cached value, and checkpoint + * is a simple string copy (O(1) vs O(n) deep clone). + */ +class StateShim implements TaskEntityState { + /** Serialized JSON string of the current state */ + private serializedValue: string | undefined; + + /** Lazy-deserialized object cache */ + private cachedValue: unknown; + + /** Whether cachedValue is valid (needs re-parse after rollback) */ + private cacheValid: boolean; + + /** Serialized JSON string checkpoint for rollback */ + private checkpointValue: string | undefined; + + constructor() { + this.serializedValue = undefined; + this.cachedValue = undefined; + this.cacheValid = false; + this.checkpointValue = undefined; + } + + get hasState(): boolean { + return this.serializedValue !== undefined && this.serializedValue !== null; + } + + getState(defaultValue?: T): T | undefined { + if (!this.hasState) { + return defaultValue; + } + + // Lazy deserialization - only parse when needed + if (!this.cacheValid) { + this.cachedValue = + this.serializedValue !== undefined ? JSON.parse(this.serializedValue) : undefined; + this.cacheValid = true; + } + + return this.cachedValue as T; + } + + setState(state: unknown): void { + this.cachedValue = state; + this.serializedValue = state !== undefined && state !== null ? JSON.stringify(state) : undefined; + this.cacheValid = true; + } + + /** + * Commits the current state as the checkpoint. + * This is a cheap string copy (O(1)), not a deep clone. + */ + commit(): void { + // String assignment is cheap - strings are immutable + this.checkpointValue = this.serializedValue; + } + + /** + * Rolls back state to the last checkpoint. + * Invalidates the cache so next getState() will re-parse. + */ + rollback(): void { + this.serializedValue = this.checkpointValue; + // Invalidate cache - will re-parse on next getState() + this.cachedValue = undefined; + this.cacheValid = false; + } + + /** + * Gets the current serialized state for the result. + * No serialization needed - we already store as string. + */ + getCurrentSerializedState(): string | undefined { + if (!this.hasState) { + return undefined; + } + return this.serializedValue; + } + + /** + * Sets the serialized state value directly. + * Used when loading state from EntityBatchRequest. + */ + setSerializedState(serializedState: string | undefined): void { + this.serializedValue = serializedState; + this.cachedValue = undefined; + this.cacheValid = false; + } +} + +/** + * Internal context management with checkpoint/rollback support for actions. + */ +class ContextShim implements TaskEntityContext { + private actions: EntityAction[] = []; + private checkpointPosition = 0; + private readonly entityId: EntityInstanceId; + + constructor(entityId: EntityInstanceId) { + this.entityId = entityId; + } + + get id(): EntityInstanceId { + return this.entityId; + } + + signalEntity( + id: EntityInstanceId, + operationName: string, + input?: unknown, + options?: SignalEntityOptions, + ): void { + this.actions.push({ + type: "signalEntity", + instanceId: id.toString(), + name: operationName, + input: input !== undefined ? JSON.stringify(input) : undefined, + scheduledTime: options?.signalTime, + requestTime: new Date(), + }); + } + + scheduleNewOrchestration( + name: string, + input?: unknown, + options?: StartOrchestrationOptions, + ): string { + const instanceId = options?.instanceId ?? randomUUID(); + this.actions.push({ + type: "scheduleOrchestration", + instanceId, + name, + input: input !== undefined ? JSON.stringify(input) : undefined, + scheduledTime: options?.startAt, + requestTime: new Date(), + }); + return instanceId; + } + + /** + * Commits the current actions as the checkpoint. + */ + commit(): void { + this.checkpointPosition = this.actions.length; + } + + /** + * Rolls back actions to the last checkpoint. + */ + rollback(): void { + this.actions = this.actions.slice(0, this.checkpointPosition); + } + + /** + * Resets the context for reuse. + */ + reset(): void { + this.actions = []; + this.checkpointPosition = 0; + } + + /** + * Gets all committed actions. + */ + getActions(): EntityAction[] { + return [...this.actions]; + } +} + +/** + * Internal operation wrapper for each operation in the batch. + */ +class OperationShim implements TaskEntityOperation { + private readonly contextShim: ContextShim; + private readonly stateShim: StateShim; + private operationName: string = ""; + private operationInput: unknown = undefined; + + constructor(contextShim: ContextShim, stateShim: StateShim) { + this.contextShim = contextShim; + this.stateShim = stateShim; + } + + get name(): string { + return this.operationName; + } + + get context(): TaskEntityContext { + return this.contextShim; + } + + get state(): TaskEntityState { + return this.stateShim; + } + + get hasInput(): boolean { + return this.operationInput !== undefined; + } + + getInput(): T | undefined { + return this.operationInput as T | undefined; + } + + setNameAndInput(name: string, input: unknown): void { + this.operationName = name; + this.operationInput = input; + } +} + +/** + * Executes entity operations in batch with transactional semantics. + * + * @remarks + * This class implements transactional behavior: + * - Entity is passed to constructor and stored as field + * - Shims are created and reused across operations + * - Each operation is executed independently + * - State is checkpointed before each operation + * - On exception, state and actions are rolled back for that operation + * - Other operations in the batch continue to execute + */ +export class TaskEntityShim { + private readonly entity: ITaskEntity; + private readonly entityId: EntityInstanceId; + private readonly stateShim: StateShim; + private readonly contextShim: ContextShim; + private readonly operationShim: OperationShim; + private readonly results: pb.OperationResult[] = []; + + /** + * Creates a new TaskEntityShim for executing operations on an entity. + * + * @param entity - The entity to execute operations on. + * @param entityId - The ID of the entity. + */ + constructor(entity: ITaskEntity, entityId: EntityInstanceId) { + this.entity = entity; + this.entityId = entityId; + this.stateShim = new StateShim(); + this.contextShim = new ContextShim(entityId); + this.operationShim = new OperationShim(this.contextShim, this.stateShim); + } + + /** + * Executes a batch of operations on the entity. + * + * @param request - The batch request containing operations. + * @returns The batch result containing results for each operation. + */ + async executeAsync(request: pb.EntityBatchRequest): Promise { + // Set the current state, and commit it so we can roll back to it later. + // The commit/rollback mechanism is needed since we treat entity operations transactionally. + // This means that if an operation throws an unhandled exception, all its effects are rolled back. + // In particular, (1) the entity state is reverted to what it was prior to the operation, and + // (2) all of the messages sent by the operation (e.g. if it started a new orchestrations) are discarded. + const requestState = this.getSerializedState(request.getEntitystate()); + if (requestState !== undefined) { + this.stateShim.setSerializedState(requestState); + } + this.stateShim.commit(); // Commit so we can rollback to initial state + + // Clear previous results + this.results.length = 0; + + const operations = request.getOperationsList(); + + for (const opRequest of operations) { + const opResult = await this.executeOperation(opRequest); + this.results.push(opResult); + } + + // Build the batch result + const batchResult = new pb.EntityBatchResult(); + batchResult.setResultsList(this.results); + batchResult.setActionsList(this.convertActionsToProto(this.contextShim.getActions())); + + // Set final entity state + const finalState = this.stateShim.getCurrentSerializedState(); + if (finalState !== undefined) { + const stateValue = new StringValue(); + stateValue.setValue(finalState); + batchResult.setEntitystate(stateValue); + } + + // Reset context for potential reuse + this.contextShim.reset(); + + return batchResult; + } + + /** + * Executes a single operation with transactional semantics. + */ + private async executeOperation(opRequest: pb.OperationRequest): Promise { + const startTime = new Date(); + + // Parse operation input + const inputValue = opRequest.getInput(); + const input = inputValue ? JSON.parse(inputValue.getValue()) : undefined; + + // Set operation details + this.operationShim.setNameAndInput(opRequest.getOperation(), input); + + const result = new pb.OperationResult(); + + try { + // Execute the entity operation + const output = await Promise.resolve(this.entity.run(this.operationShim)); + const endTime = new Date(); + + // Commit state and actions on success + // State was already committed before execution, commit again to capture changes + this.stateShim.commit(); + this.contextShim.commit(); + + // Create success result + const success = new pb.OperationResultSuccess(); + if (output !== undefined && output !== null) { + const resultValue = new StringValue(); + resultValue.setValue(JSON.stringify(output)); + success.setResult(resultValue); + } + success.setStarttimeutc(this.dateToTimestamp(startTime)); + success.setEndtimeutc(this.dateToTimestamp(endTime)); + + result.setSuccess(success); + } catch (error) { + const endTime = new Date(); + + // Rollback state and actions on failure + this.stateShim.rollback(); + this.contextShim.rollback(); + + // Create failure result + const failure = new pb.OperationResultFailure(); + const failureDetails = new pb.TaskFailureDetails(); + + if (error instanceof Error) { + failureDetails.setErrortype(error.name); + failureDetails.setErrormessage(error.message); + if (error.stack) { + failureDetails.setStacktrace(new StringValue().setValue(error.stack)); + } + } else { + failureDetails.setErrortype("Error"); + failureDetails.setErrormessage(String(error)); + } + + failure.setFailuredetails(failureDetails); + failure.setStarttimeutc(this.dateToTimestamp(startTime)); + failure.setEndtimeutc(this.dateToTimestamp(endTime)); + + result.setFailure(failure); + } + + return result; + } + + /** + * Gets the serialized state string from the proto StringValue. + * Does not parse - StateManager stores state as serialized string. + */ + private getSerializedState(stateValue: StringValue | undefined): string | undefined { + if (!stateValue) { + return undefined; + } + const stateStr = stateValue.getValue(); + if (!stateStr) { + return undefined; + } + return stateStr; + } + + /** + * Converts a Date to a protobuf Timestamp. + */ + private dateToTimestamp(date: Date): Timestamp { + const timestamp = new Timestamp(); + timestamp.setSeconds(Math.floor(date.getTime() / 1000)); + timestamp.setNanos((date.getTime() % 1000) * 1000000); + return timestamp; + } + + /** + * Converts EntityActions to proto OperationActions. + */ + private convertActionsToProto(actions: EntityAction[]): pb.OperationAction[] { + return actions.map((action, index) => { + const protoAction = new pb.OperationAction(); + protoAction.setId(index); + + if (action.type === "signalEntity") { + const signalAction = new pb.SendSignalAction(); + signalAction.setInstanceid(action.instanceId); // Already converted to string + signalAction.setName(action.name); + if (action.input !== undefined) { + const inputValue = new StringValue(); + inputValue.setValue(action.input); // Already serialized + signalAction.setInput(inputValue); + } + if (action.scheduledTime) { + signalAction.setScheduledtime(this.dateToTimestamp(action.scheduledTime)); + } + signalAction.setRequesttime(this.dateToTimestamp(action.requestTime)); // Use captured time + protoAction.setSendsignal(signalAction); + } else if (action.type === "scheduleOrchestration") { + const startAction = new pb.StartNewOrchestrationAction(); + startAction.setInstanceid(action.instanceId); + startAction.setName(action.name); + if (action.input !== undefined) { + const inputValue = new StringValue(); + inputValue.setValue(action.input); // Already serialized + startAction.setInput(inputValue); + } + if (action.scheduledTime) { + startAction.setScheduledtime(this.dateToTimestamp(action.scheduledTime)); + } + startAction.setRequesttime(this.dateToTimestamp(action.requestTime)); // Use captured time + protoAction.setStartneworchestration(startAction); + } + + return protoAction; + }); + } +} diff --git a/packages/durabletask-js/src/worker/orchestration-executor.ts b/packages/durabletask-js/src/worker/orchestration-executor.ts index c90d660..da29390 100644 --- a/packages/durabletask-js/src/worker/orchestration-executor.ts +++ b/packages/durabletask-js/src/worker/orchestration-executor.ts @@ -21,6 +21,10 @@ import { OrchestratorNotRegisteredError } from "./exception/orchestrator-not-reg import { StopIterationError } from "./exception/stop-iteration-error"; import { Registry } from "./registry"; import { RuntimeOrchestrationContext } from "./runtime-orchestration-context"; +import { + EntityOperationFailedException, + createTaskFailureDetails, +} from "../entities/entity-operation-failed-exception"; /** * Result of orchestration execution containing actions and optional custom status. @@ -129,6 +133,12 @@ export class OrchestrationExecutor { throw new OrchestratorNotRegisteredError(executionStartedEvent?.getName()); } + // Set the execution ID from the orchestration instance + const executionId = executionStartedEvent?.getOrchestrationinstance()?.getExecutionid()?.getValue(); + if (executionId) { + ctx._executionId = executionId; + } + // Set the version from the execution started event ctx._version = executionStartedEvent?.getVersion()?.getValue() ?? ""; @@ -535,6 +545,175 @@ export class OrchestrationExecutor { ctx.setComplete(encodedOutput, pb.OrchestrationStatus.ORCHESTRATION_STATUS_TERMINATED, true); break; } + // This history event confirms that the entity call was successfully scheduled. + // Remove the action from the pending action list so we don't schedule it again. + case pb.HistoryEvent.EventtypeCase.ENTITYOPERATIONCALLED: + { + const eventId = event.getEventid(); + const action = ctx._pendingActions[eventId]; + delete ctx._pendingActions[eventId]; + + const isSendEntityMessageAction = action?.hasSendentitymessage(); + + if (!action) { + throw getNonDeterminismError(eventId, "callEntity"); + } else if (!isSendEntityMessageAction) { + throw getWrongActionTypeError(eventId, "callEntity", action); + } else if (!action.getSendentitymessage()?.hasEntityoperationcalled()) { + throw getWrongActionTypeError(eventId, "callEntity (EntityOperationCalled)", action); + } + } + break; + // This history event confirms that the entity signal was successfully scheduled. + // Remove the action from the pending action list so we don't schedule it again. + case pb.HistoryEvent.EventtypeCase.ENTITYOPERATIONSIGNALED: + { + const eventId = event.getEventid(); + const action = ctx._pendingActions[eventId]; + delete ctx._pendingActions[eventId]; + + const isSendEntityMessageAction = action?.hasSendentitymessage(); + + if (!action) { + throw getNonDeterminismError(eventId, "signalEntity"); + } else if (!isSendEntityMessageAction) { + throw getWrongActionTypeError(eventId, "signalEntity", action); + } else if (!action.getSendentitymessage()?.hasEntityoperationsignaled()) { + throw getWrongActionTypeError(eventId, "signalEntity (EntityOperationSignaled)", action); + } + } + break; + // This history event confirms that the lock request was successfully scheduled. + // Remove the action from the pending action list so we don't schedule it again. + // The pending lock request in _entityFeature.pendingLockRequests remains to receive the granted event. + case pb.HistoryEvent.EventtypeCase.ENTITYLOCKREQUESTED: + { + const eventId = event.getEventid(); + const action = ctx._pendingActions[eventId]; + delete ctx._pendingActions[eventId]; + + const isSendEntityMessageAction = action?.hasSendentitymessage(); + + if (!action) { + throw getNonDeterminismError(eventId, "lockEntities"); + } else if (!isSendEntityMessageAction) { + throw getWrongActionTypeError(eventId, "lockEntities", action); + } else if (!action.getSendentitymessage()?.hasEntitylockrequested()) { + throw getWrongActionTypeError(eventId, "lockEntities (EntityLockRequested)", action); + } + } + break; + case pb.HistoryEvent.EventtypeCase.ENTITYOPERATIONCOMPLETED: + { + const completedEvent = event.getEntityoperationcompleted(); + const requestId = completedEvent?.getRequestid(); + + if (!requestId) { + console.warn(`${ctx._instanceId}: Ignoring EntityOperationCompletedEvent with no requestId`); + return; + } + + // Find the pending entity call by requestId + const pendingCall = ctx._entityFeature.pendingEntityCalls.get(requestId); + if (!pendingCall) { + // This could happen during replay or if the call was already processed + if (!ctx._isReplaying) { + console.warn( + `${ctx._instanceId}: Ignoring unexpected EntityOperationCompletedEvent with requestId = ${requestId}`, + ); + } + return; + } + + // Remove from pending calls + ctx._entityFeature.pendingEntityCalls.delete(requestId); + + // If in a critical section, recover the lock for this entity + ctx._entityFeature.recoverLockAfterCall(pendingCall.entityId); + + // Parse the result and complete the task + let result; + if (!isEmpty(completedEvent?.getOutput())) { + result = JSON.parse(completedEvent?.getOutput()?.getValue() || "null"); + } + + pendingCall.task.complete(result); + await ctx.resume(); + } + break; + case pb.HistoryEvent.EventtypeCase.ENTITYOPERATIONFAILED: + { + const failedEvent = event.getEntityoperationfailed(); + const requestId = failedEvent?.getRequestid(); + + if (!requestId) { + console.warn(`${ctx._instanceId}: Ignoring EntityOperationFailedEvent with no requestId`); + return; + } + + // Find the pending entity call by requestId + const pendingCall = ctx._entityFeature.pendingEntityCalls.get(requestId); + if (!pendingCall) { + // This could happen during replay or if the call was already processed + if (!ctx._isReplaying) { + console.warn( + `${ctx._instanceId}: Ignoring unexpected EntityOperationFailedEvent with requestId = ${requestId}`, + ); + } + return; + } + + // Remove from pending calls + ctx._entityFeature.pendingEntityCalls.delete(requestId); + + // If in a critical section, recover the lock for this entity + ctx._entityFeature.recoverLockAfterCall(pendingCall.entityId); + + // Convert failure details and throw EntityOperationFailedException + const failureDetails = createTaskFailureDetails(failedEvent?.getFailuredetails()); + if (!failureDetails) { + pendingCall.task.fail( + `Entity operation '${pendingCall.operationName}' failed with unknown error`, + ); + } else { + const exception = new EntityOperationFailedException( + pendingCall.entityId, + pendingCall.operationName, + failureDetails, + ); + pendingCall.task.fail(exception.message, failedEvent?.getFailuredetails()); + } + + await ctx.resume(); + } + break; + case pb.HistoryEvent.EventtypeCase.ENTITYLOCKGRANTED: + { + const lockGrantedEvent = event.getEntitylockgranted(); + const criticalSectionId = lockGrantedEvent?.getCriticalsectionid(); + + if (!criticalSectionId) { + console.warn(`${ctx._instanceId}: Ignoring EntityLockGrantedEvent with no criticalSectionId`); + return; + } + + // Find the pending lock request by criticalSectionId + const pendingRequest = ctx._entityFeature.pendingLockRequests.get(criticalSectionId); + if (!pendingRequest) { + // This could happen during replay or if the lock was already acquired + if (!ctx._isReplaying) { + console.warn( + `${ctx._instanceId}: Ignoring unexpected EntityLockGrantedEvent with criticalSectionId = ${criticalSectionId}`, + ); + } + return; + } + + // Complete the lock acquisition + ctx._entityFeature.completeLockAcquisition(criticalSectionId); + await ctx.resume(); + } + break; default: this._logger.info(`Unknown history event type: ${eventTypeName} (value: ${eventType}), skipping...`); // throw new OrchestrationStateError(`Unknown history event type: ${eventTypeName} (value: ${eventType})`); diff --git a/packages/durabletask-js/src/worker/registry.ts b/packages/durabletask-js/src/worker/registry.ts index 9a82b89..0f01df9 100644 --- a/packages/durabletask-js/src/worker/registry.ts +++ b/packages/durabletask-js/src/worker/registry.ts @@ -5,14 +5,24 @@ import { TActivity } from "../types/activity.type"; import { TInput } from "../types/input.type"; import { TOrchestrator } from "../types/orchestrator.type"; import { TOutput } from "../types/output.type"; - +import { EntityFactory } from "../entities/task-entity"; + +/** + * Registry for orchestrators, activities, and entities. + * + * @remarks + * This class is used by the worker to look up task implementations by name. + * Entity names are normalized to lowercase for case-insensitive matching. + */ export class Registry { private _orchestrators: Record; private _activities: Record>; + private _entities: Record; constructor() { this._orchestrators = {}; this._activities = {}; + this._entities = {}; } addOrchestrator(fn: TOrchestrator): string { @@ -71,6 +81,73 @@ export class Registry { return this._activities[name]; } + /** + * Registers an entity factory with auto-detected name. + * + * @param factory - Factory function that creates entity instances. + * @returns The registered entity name (normalized to lowercase). + * + * @remarks + * The entity name is derived from the factory function name. + * Entity names are normalized to lowercase for case-insensitive matching. + */ + addEntity(factory: EntityFactory): string { + if (!factory) { + throw new Error("An entity factory argument is required."); + } + + const name = this._getFunctionName(factory); + this.addNamedEntity(name, factory); + return name.toLowerCase(); + } + + /** + * Registers an entity factory with a specific name. + * + * @param name - The name to register the entity under. + * @param factory - Factory function that creates entity instances. + * + * @remarks + * Entity names are normalized to lowercase for case-insensitive matching, + * consistent with EntityInstanceId's name normalization. + */ + addNamedEntity(name: string, factory: EntityFactory): void { + if (!name) { + throw new Error("A non-empty entity name is required."); + } + + if (!factory) { + throw new Error("An entity factory argument is required."); + } + + // Normalize to lowercase for case-insensitive matching (like EntityInstanceId) + const normalizedName = name.toLowerCase(); + + if (normalizedName in this._entities) { + throw new Error(`An entity named '${name}' already exists.`); + } + + this._entities[normalizedName] = factory; + } + + /** + * Gets an entity factory by name. + * + * @param name - The name of the entity to look up. + * @returns The entity factory, or undefined if not found. + * + * @remarks + * The name is normalized to lowercase before lookup. + */ + getEntity(name: string): EntityFactory | undefined { + if (!name) { + return undefined; + } + + // Normalize to lowercase for case-insensitive matching + return this._entities[name.toLowerCase()]; + } + // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type _getFunctionName(fn: Function): string { if (fn.name) { diff --git a/packages/durabletask-js/src/worker/runtime-orchestration-context.ts b/packages/durabletask-js/src/worker/runtime-orchestration-context.ts index 8439886..478ce4e 100644 --- a/packages/durabletask-js/src/worker/runtime-orchestration-context.ts +++ b/packages/durabletask-js/src/worker/runtime-orchestration-context.ts @@ -17,6 +17,14 @@ import { Task } from "../task/task"; import { StopIterationError } from "./exception/stop-iteration-error"; import { mapToRecord } from "../utils/tags.util"; +import { + OrchestrationEntityFeature, + CriticalSectionInfo, + LockHandle, +} from "../entities/orchestration-entity-feature"; +import { EntityInstanceId } from "../entities/entity-instance-id"; +import { SignalEntityOptions, CallEntityOptions } from "../entities/signal-entity-options"; + export class RuntimeOrchestrationContext extends OrchestrationContext { _generator?: Generator, any, any>; _previousTask?: Task; @@ -29,6 +37,7 @@ export class RuntimeOrchestrationContext extends OrchestrationContext { _newGuidCounter: number; _currentUtcDatetime: Date; _instanceId: string; + _executionId: string = ""; _version: string; _parent?: ParentOrchestrationInstance; _completionStatus?: pb.OrchestrationStatus; @@ -37,6 +46,7 @@ export class RuntimeOrchestrationContext extends OrchestrationContext { _newInput?: any; _saveEvents: boolean; _customStatus?: any; + _entityFeature: RuntimeOrchestrationEntityFeature; constructor(instanceId: string) { super(); @@ -59,12 +69,17 @@ export class RuntimeOrchestrationContext extends OrchestrationContext { this._newInput = undefined; this._saveEvents = false; this._customStatus = undefined; + this._entityFeature = new RuntimeOrchestrationEntityFeature(this); } get instanceId(): string { return this._instanceId; } + get entities(): OrchestrationEntityFeature { + return this._entityFeature; + } + get parent(): ParentOrchestrationInstance | undefined { return this._parent; } @@ -216,7 +231,6 @@ export class RuntimeOrchestrationContext extends OrchestrationContext { } this._isComplete = true; - this._pendingActions = {}; // Clear any pending actions this._completionStatus = pb.OrchestrationStatus.ORCHESTRATION_STATUS_CONTINUED_AS_NEW; this._newInput = newInput; this._saveEvents = saveEvents; @@ -571,3 +585,373 @@ export class RuntimeOrchestrationContext extends OrchestrationContext { this._pendingTasks[newId] = retryableTask; } } + +/** + * Implementation of OrchestrationEntityFeature for interacting with entities from orchestrations. + * + * @remarks + * This class provides the entity feature for the RuntimeOrchestrationContext. + * It allows orchestrations to call entities (request/response), signal entities (one-way), + * and acquire locks on entities for critical sections. + */ +class RuntimeOrchestrationEntityFeature implements OrchestrationEntityFeature { + private readonly context: RuntimeOrchestrationContext; + /** + * Tracks pending entity calls by requestId. + * Used to correlate responses (EntityOperationCompleted/Failed) with the original call. + */ + readonly pendingEntityCalls: Map< + string, + { task: CompletableTask; entityId: EntityInstanceId; operationName: string } + >; + + /** + * Tracks pending lock acquisitions by criticalSectionId. + * Used to correlate EntityLockGranted events with the original lock request. + */ + readonly pendingLockRequests: Map< + string, + { task: CompletableTask; lockSet: EntityInstanceId[] } + >; + + /** + * Current critical section state. Null if not in a critical section. + */ + private criticalSection: { + id: string; + lockedEntities: EntityInstanceId[]; + availableEntities: Set; // Entity IDs available for calls (not currently in a call) + } | null = null; + + /** + * Whether a lock acquisition is pending (lock request sent but not yet granted). + * This is used to prevent calling entities before the lock is granted. + */ + private lockAcquisitionPending = false; + + constructor(context: RuntimeOrchestrationContext) { + this.context = context; + this.pendingEntityCalls = new Map(); + this.pendingLockRequests = new Map(); + this.criticalSection = null; + this.lockAcquisitionPending = false; + } + + /** + * Whether this orchestration is currently inside a critical section. + */ + get isInsideCriticalSection(): boolean { + return this.criticalSection !== null; + } + + /** + * The ID of the current critical section, or undefined if not in a critical section. + */ + get currentCriticalSectionId(): string | undefined { + return this.criticalSection?.id; + } + + /** + * Calls an operation on an entity and waits for it to complete. + * + * @param id - The target entity instance ID. + * @param operationName - The name of the operation to invoke. + * @param input - Optional input to pass to the operation. + * @param options - Optional call options. + * @returns A task that completes when the entity operation finishes. + * + * @remarks + * This creates a SendEntityMessageAction with an EntityOperationCalledEvent. + * The orchestration waits for EntityOperationCompletedEvent or EntityOperationFailedEvent. + */ + callEntity( + id: EntityInstanceId, + operationName: string, + input?: unknown, + // eslint-disable-next-line @typescript-eslint/no-unused-vars + options?: CallEntityOptions, + ): Task { + // Validate the transition if in a critical section + if (this.criticalSection) { + // Check if lock acquisition is still pending + if (this.lockAcquisitionPending) { + throw new Error( + "Must await the completion of the lock request prior to calling any entity.", + ); + } + + const entityIdStr = id.toString(); + if (!this.criticalSection.availableEntities.has(entityIdStr)) { + // Check if this entity is even in the lock set + const isLocked = this.criticalSection.lockedEntities.some( + (e) => e.toString() === entityIdStr, + ); + if (isLocked) { + throw new Error( + "Must not call an entity from a critical section while a prior call to the same entity is still pending.", + ); + } else { + throw new Error( + "Must not call an entity from a critical section if it is not one of the locked entities.", + ); + } + } + // Mark entity as unavailable until call completes + this.criticalSection.availableEntities.delete(entityIdStr); + } + + const actionId = this.context.nextSequenceNumber(); + const requestId = this.context.newGuid(); + const encodedInput = input !== undefined ? JSON.stringify(input) : undefined; + const instanceIdString = id.toString(); + const parentInstanceId = this.context.instanceId; + const parentExecutionId = this.context._executionId; + + const action = ph.newSendEntityMessageCallAction( + actionId, + instanceIdString, + operationName, + requestId, + parentInstanceId, + parentExecutionId, + encodedInput, + ); + + this.context._pendingActions[action.getId()] = action; + + // Create a completable task that will be completed when the response arrives + const task = new CompletableTask(); + + // Track this pending call so we can correlate the response by requestId + this.pendingEntityCalls.set(requestId, { task, entityId: id, operationName }); + + return task; + } + + /** + * Called after an entity call within a critical section completes. + * Makes the entity available for calls again. + */ + recoverLockAfterCall(entityId: EntityInstanceId): void { + if (this.criticalSection) { + this.criticalSection.availableEntities.add(entityId.toString()); + } + } + + /** + * Signals an operation on an entity without waiting for a response. + * + * @param id - The target entity instance ID. + * @param operationName - The name of the operation to invoke. + * @param input - Optional input to pass to the operation. + * @param options - Optional signal options (e.g., scheduled time). + * + * @remarks + * This creates a SendEntityMessageAction with an EntityOperationSignaledEvent. + * The orchestration does not wait for the entity to process the operation. + */ + signalEntity( + id: EntityInstanceId, + operationName: string, + input?: unknown, + options?: SignalEntityOptions, + ): void { + // Validate: cannot signal a locked entity from within a critical section + if (this.criticalSection) { + const entityIdStr = id.toString(); + const isLocked = this.criticalSection.lockedEntities.some( + (e) => e.toString() === entityIdStr, + ); + if (isLocked) { + throw new Error("Must not signal a locked entity from a critical section."); + } + } + + const actionId = this.context.nextSequenceNumber(); + const requestId = this.context.newGuid(); + const encodedInput = input !== undefined ? JSON.stringify(input) : undefined; + const instanceIdString = id.toString(); + + const action = ph.newSendEntityMessageSignalAction( + actionId, + instanceIdString, + operationName, + requestId, + encodedInput, + options?.signalTime, + ); + + this.context._pendingActions[action.getId()] = action; + } + + /** + * Acquires locks on one or more entities for a critical section. + * + * @param entityIds - The entities to lock. + * @returns A task that completes when all locks are acquired, with a handle to release the locks. + * + * @remarks + * Entities are sorted before lock acquisition to prevent deadlocks. + * Duplicates are removed automatically. + */ + lockEntities(...entityIds: EntityInstanceId[]): Task { + if (entityIds.length === 0) { + throw new Error("The list of entities to lock must not be empty."); + } + + if (this.criticalSection) { + throw new Error("Must not enter another critical section from within a critical section."); + } + + // Sort entities for deterministic ordering (prevents deadlocks) + // Use the string representation for consistent ordering + const sortedEntities = [...entityIds].sort((a, b) => a.toString().localeCompare(b.toString())); + + // Remove duplicates + const uniqueEntities: EntityInstanceId[] = []; + for (const entity of sortedEntities) { + const entityStr = entity.toString(); + if ( + uniqueEntities.length === 0 || + uniqueEntities[uniqueEntities.length - 1].toString() !== entityStr + ) { + uniqueEntities.push(entity); + } + } + + const actionId = this.context.nextSequenceNumber(); + const criticalSectionId = this.context.newGuid(); + const lockSet = uniqueEntities.map((e) => e.toString()); + const parentInstanceId = this.context.instanceId; + + const action = ph.newSendEntityMessageLockAction( + actionId, + criticalSectionId, + lockSet, + parentInstanceId, + ); + + this.context._pendingActions[action.getId()] = action; + + // Initialize critical section state (availableEntities is empty until lock is granted) + this.criticalSection = { + id: criticalSectionId, + lockedEntities: uniqueEntities, + availableEntities: new Set(), // Empty until lock is granted + }; + + // Mark that we're waiting for the lock to be granted + this.lockAcquisitionPending = true; + + // Create a completable task that will be completed when the lock is granted + const task = new CompletableTask(); + + // Track this pending lock request + this.pendingLockRequests.set(criticalSectionId, { task, lockSet: uniqueEntities }); + + return task; + } + + /** + * Called when EntityLockGrantedEvent is received. + * Completes the pending lock request and returns the lock handle. + */ + completeLockAcquisition(criticalSectionId: string): void { + const pendingRequest = this.pendingLockRequests.get(criticalSectionId); + if (pendingRequest) { + this.pendingLockRequests.delete(criticalSectionId); + + // Now that lock is granted, populate availableEntities and clear pending flag + if (this.criticalSection) { + this.criticalSection.availableEntities = new Set( + pendingRequest.lockSet.map((e) => e.toString()), + ); + } + this.lockAcquisitionPending = false; + + // Create the lock releaser + const lockHandle = new EntityLockReleaser(this.context, this, criticalSectionId); + pendingRequest.task.complete(lockHandle); + } + } + + /** + * Checks whether the orchestration is currently inside a critical section. + * + * @returns Information about the current critical section state. + */ + isInCriticalSection(): CriticalSectionInfo { + if (this.criticalSection) { + return { + inSection: true, + lockedEntities: [...this.criticalSection.lockedEntities], + }; + } else { + return { + inSection: false, + }; + } + } + + /** + * Exits the critical section, releasing all locks. + * + * @param criticalSectionId - Optional: only exit if the ID matches. + */ + exitCriticalSection(criticalSectionId?: string): void { + if (!this.criticalSection) { + return; + } + + if (criticalSectionId && criticalSectionId !== this.criticalSection.id) { + return; + } + + // Send unlock messages to all locked entities + for (const entity of this.criticalSection.lockedEntities) { + const actionId = this.context.nextSequenceNumber(); + const action = ph.newSendEntityMessageUnlockAction( + actionId, + this.criticalSection.id, + entity.toString(), + this.context.instanceId, + ); + this.context._pendingActions[action.getId()] = action; + } + + // Clear critical section state + this.criticalSection = null; + } +} + +/** + * Lock releaser that exits the critical section when released. + */ +class EntityLockReleaser implements LockHandle { + private readonly context: RuntimeOrchestrationContext; + private readonly entityFeature: RuntimeOrchestrationEntityFeature; + private readonly criticalSectionId: string; + private released = false; + + constructor( + context: RuntimeOrchestrationContext, + entityFeature: RuntimeOrchestrationEntityFeature, + criticalSectionId: string, + ) { + this.context = context; + this.entityFeature = entityFeature; + this.criticalSectionId = criticalSectionId; + } + + /** + * Releases all entity locks held by this lock handle. + */ + release(): void { + if (this.released) { + return; // Already released + } + + this.released = true; + this.entityFeature.exitCriticalSection(this.criticalSectionId); + } +} \ No newline at end of file diff --git a/packages/durabletask-js/src/worker/task-hub-grpc-worker.ts b/packages/durabletask-js/src/worker/task-hub-grpc-worker.ts index 2a35123..dc4f125 100644 --- a/packages/durabletask-js/src/worker/task-hub-grpc-worker.ts +++ b/packages/durabletask-js/src/worker/task-hub-grpc-worker.ts @@ -15,6 +15,9 @@ import * as pbh from "../utils/pb-helper.util"; import { callWithMetadata, MetadataGenerator } from "../utils/grpc-helper.util"; import { OrchestrationExecutor } from "./orchestration-executor"; import { ActivityExecutor } from "./activity-executor"; +import { TaskEntityShim } from "./entity-executor"; +import { EntityInstanceId } from "../entities/entity-instance-id"; +import { EntityFactory } from "../entities/task-entity"; import { StringValue } from "google-protobuf/google/protobuf/wrappers_pb"; import { Logger, ConsoleLogger } from "../types/logger.type"; import { ExponentialBackoff, sleep, withTimeout } from "../utils/backoff.util"; @@ -248,6 +251,42 @@ export class TaskHubGrpcWorker { return name; } + /** + * Registers an entity with the worker. + * + * @param factory - Factory function that creates entity instances. + * @returns The registered entity name (normalized to lowercase). + * + * @remarks + * Entity names are derived from the factory function name and normalized to lowercase. + */ + addEntity(factory: EntityFactory): string { + if (this._isRunning) { + throw new Error("Cannot add entity while worker is running."); + } + + return this._registry.addEntity(factory); + } + + /** + * Registers a named entity with the worker. + * + * @param name - The name to register the entity under. + * @param factory - Factory function that creates entity instances. + * @returns The registered entity name (normalized to lowercase). + * + * @remarks + * Entity names are normalized to lowercase for case-insensitive matching. + */ + addNamedEntity(name: string, factory: EntityFactory): string { + if (this._isRunning) { + throw new Error("Cannot add entity while worker is running."); + } + + this._registry.addNamedEntity(name, factory); + return name.toLowerCase(); + } + /** * In node.js we don't require a new thread as we have a main event loop * Therefore, we open the stream and simply listen through the eventemitter behind the scenes @@ -299,6 +338,14 @@ export class TaskHubGrpcWorker { } else if (workItem.hasActivityrequest()) { this._logger.info(`Received "Activity Request" work item`); this._executeActivity(workItem.getActivityrequest() as any, completionToken, client.stub); + } else if (workItem.hasEntityrequest()) { + const entityRequest = workItem.getEntityrequest() as pb.EntityBatchRequest; + console.log(`Received "Entity Request" work item for entity '${entityRequest.getInstanceid()}'`); + this._executeEntity(entityRequest, completionToken, client.stub); + } else if (workItem.hasEntityrequestv2()) { + const entityRequestV2 = workItem.getEntityrequestv2() as pb.EntityRequest; + console.log(`Received "Entity Request V2" work item for entity '${entityRequestV2.getInstanceid()}'`); + this._executeEntityV2(entityRequestV2, completionToken, client.stub); } else if (workItem.hasHealthping()) { // Health ping - no-op, just a keep-alive message from the server } else { @@ -681,4 +728,246 @@ export class TaskHubGrpcWorker { ); } } + + /** + * Executes an entity batch request. + * + * @param req - The entity batch request from the sidecar. + * @param completionToken - The completion token for the work item. + * @param stub - The gRPC stub for completing the task. + * @param operationInfos - Optional V2 operation info list to include in the result. + * + * @remarks + * This method looks up the entity by name, creates a TaskEntityShim, executes the batch, + * and sends the result back to the sidecar. + */ + private async _executeEntity( + req: pb.EntityBatchRequest, + completionToken: string, + stub: stubs.TaskHubSidecarServiceClient, + operationInfos?: pb.OperationInfo[], + ): Promise { + const instanceIdString = req.getInstanceid(); + + if (!instanceIdString) { + throw new Error("Entity request does not contain an instance id"); + } + + // Parse the entity instance ID (format: @name@key) + let entityId: EntityInstanceId; + try { + entityId = EntityInstanceId.fromString(instanceIdString); + } catch (e: any) { + console.error(`Failed to parse entity instance id '${instanceIdString}': ${e.message}`); + // Return error result for all operations + const batchResult = this._createEntityNotFoundResult( + req, + completionToken, + `Invalid entity instance id format: '${instanceIdString}'`, + ); + await this._sendEntityResult(batchResult, stub); + return; + } + + let batchResult: pb.EntityBatchResult; + + try { + // Look up the entity factory by name + const factory = this._registry.getEntity(entityId.name); + + if (factory) { + // Create the entity instance and execute the batch + const entity = factory(); + const shim = new TaskEntityShim(entity, entityId); + batchResult = await shim.executeAsync(req); + batchResult.setCompletiontoken(completionToken); + } else { + // Entity not found - return error result for all operations + console.log(`No entity named '${entityId.name}' was found.`); + batchResult = this._createEntityNotFoundResult( + req, + completionToken, + `No entity task named '${entityId.name}' was found.`, + ); + } + } catch (e: any) { + // Framework-level error - return result with failure details + // This will cause the batch to be abandoned and retried + console.error(e); + console.log(`An error occurred while trying to execute entity '${entityId.name}': ${e.message}`); + + const failureDetails = pbh.newFailureDetails(e); + + batchResult = new pb.EntityBatchResult(); + batchResult.setCompletiontoken(completionToken); + batchResult.setFailuredetails(failureDetails); + } + + // Add V2 operationInfos if provided (used by DTS backend) + if (operationInfos && operationInfos.length > 0) { + // Take only as many operationInfos as there are results + const resultsCount = batchResult.getResultsList().length; + const infosToInclude = operationInfos.slice(0, resultsCount || operationInfos.length); + batchResult.setOperationinfosList(infosToInclude); + } + + await this._sendEntityResult(batchResult, stub); + } + + /** + * Executes an entity request (V2 format). + * + * @param req - The entity request (V2) from the sidecar. + * @param completionToken - The completion token for the work item. + * @param stub - The gRPC stub for completing the task. + * + * @remarks + * This method handles the V2 entity request format which uses HistoryEvent + * instead of OperationRequest. It converts the V2 format to V1 format + * (EntityBatchRequest) and delegates to the existing execution logic. + */ + private async _executeEntityV2( + req: pb.EntityRequest, + completionToken: string, + stub: stubs.TaskHubSidecarServiceClient, + ): Promise { + // Convert EntityRequest (V2) to EntityBatchRequest (V1) format + const batchRequest = new pb.EntityBatchRequest(); + batchRequest.setInstanceid(req.getInstanceid()); + + // Copy entity state + const entityState = req.getEntitystate(); + if (entityState) { + batchRequest.setEntitystate(entityState); + } + + // Convert HistoryEvent operations to OperationRequest format + // Also build the operationInfos list for V2 responses + const historyEvents = req.getOperationrequestsList(); + const operations: pb.OperationRequest[] = []; + const operationInfos: pb.OperationInfo[] = []; + + for (const event of historyEvents) { + const eventType = event.getEventtypeCase(); + + if (eventType === pb.HistoryEvent.EventtypeCase.ENTITYOPERATIONSIGNALED) { + const signaled = event.getEntityoperationsignaled(); + if (signaled) { + const opRequest = new pb.OperationRequest(); + opRequest.setOperation(signaled.getOperation()); + opRequest.setRequestid(signaled.getRequestid()); + const input = signaled.getInput(); + if (input) { + opRequest.setInput(input); + } + operations.push(opRequest); + + // Build OperationInfo for signaled operations (no response destination) + const opInfo = new pb.OperationInfo(); + opInfo.setRequestid(signaled.getRequestid()); + // Signals don't send a response, so responseDestination is null + operationInfos.push(opInfo); + } + } else if (eventType === pb.HistoryEvent.EventtypeCase.ENTITYOPERATIONCALLED) { + const called = event.getEntityoperationcalled(); + if (called) { + const opRequest = new pb.OperationRequest(); + opRequest.setOperation(called.getOperation()); + opRequest.setRequestid(called.getRequestid()); + const input = called.getInput(); + if (input) { + opRequest.setInput(input); + } + operations.push(opRequest); + + // Build OperationInfo for called operations (with response destination) + const opInfo = new pb.OperationInfo(); + opInfo.setRequestid(called.getRequestid()); + + // Called operations send responses to the parent orchestration + const parentInstanceId = called.getParentinstanceid(); + const parentExecutionId = called.getParentexecutionid(); + if (parentInstanceId || parentExecutionId) { + const responseDestination = new pb.OrchestrationInstance(); + if (parentInstanceId) { + responseDestination.setInstanceid(parentInstanceId.getValue()); + } + if (parentExecutionId) { + // executionId needs to be wrapped in a StringValue + const execIdValue = new StringValue(); + execIdValue.setValue(parentExecutionId.getValue()); + responseDestination.setExecutionid(execIdValue); + } + opInfo.setResponsedestination(responseDestination); + } + operationInfos.push(opInfo); + } + } else { + console.log(`Skipping unknown entity operation event type: ${eventType}`); + } + } + + batchRequest.setOperationsList(operations); + + // Delegate to the V1 execution logic with V2 operationInfos + await this._executeEntity(batchRequest, completionToken, stub, operationInfos); + } + + /** + * Creates an EntityBatchResult for when an entity is not found. + * + * @remarks + * Returns a non-retriable error for each operation in the batch. + */ + private _createEntityNotFoundResult( + req: pb.EntityBatchRequest, + completionToken: string, + errorMessage: string, + ): pb.EntityBatchResult { + const batchResult = new pb.EntityBatchResult(); + batchResult.setCompletiontoken(completionToken); + + // State is unmodified - return the original state + const originalState = req.getEntitystate(); + if (originalState) { + batchResult.setEntitystate(originalState); + } + + // Create a failure result for each operation in the batch + const operations = req.getOperationsList(); + const results: pb.OperationResult[] = []; + + for (let i = 0; i < operations.length; i++) { + const result = new pb.OperationResult(); + const failure = new pb.OperationResultFailure(); + const failureDetails = new pb.TaskFailureDetails(); + + failureDetails.setErrortype("EntityTaskNotFound"); + failureDetails.setErrormessage(errorMessage); + failureDetails.setIsnonretriable(true); + + failure.setFailuredetails(failureDetails); + result.setFailure(failure); + results.push(result); + } + + batchResult.setResultsList(results); + batchResult.setActionsList([]); + + return batchResult; + } + + /** + * Sends the entity batch result to the sidecar. + */ + private async _sendEntityResult( + batchResult: pb.EntityBatchResult, + stub: stubs.TaskHubSidecarServiceClient, + ): Promise { + try { + await callWithMetadata(stub.completeEntityTask.bind(stub), batchResult, this._metadataGenerator); + } catch (e: any) { + console.error(`Failed to deliver entity response to sidecar: ${e?.message}`); + } + } } diff --git a/packages/durabletask-js/test/clean-entity-storage.spec.ts b/packages/durabletask-js/test/clean-entity-storage.spec.ts new file mode 100644 index 0000000..6a7efc9 --- /dev/null +++ b/packages/durabletask-js/test/clean-entity-storage.spec.ts @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { + CleanEntityStorageRequest, + CleanEntityStorageResult, + defaultCleanEntityStorageRequest, +} from "../src/entities/clean-entity-storage"; + +describe("CleanEntityStorage", () => { + describe("defaultCleanEntityStorageRequest", () => { + it("should return default request with maximal cleaning", () => { + const request = defaultCleanEntityStorageRequest(); + + expect(request.removeEmptyEntities).toBe(true); + expect(request.releaseOrphanedLocks).toBe(true); + expect(request.continuationToken).toBeUndefined(); + }); + }); + + describe("CleanEntityStorageRequest interface", () => { + it("should allow minimal request", () => { + const request: CleanEntityStorageRequest = {}; + + expect(request.removeEmptyEntities).toBeUndefined(); + expect(request.releaseOrphanedLocks).toBeUndefined(); + }); + + it("should allow custom request", () => { + const request: CleanEntityStorageRequest = { + removeEmptyEntities: true, + releaseOrphanedLocks: false, + continuationToken: "token123", + }; + + expect(request.removeEmptyEntities).toBe(true); + expect(request.releaseOrphanedLocks).toBe(false); + expect(request.continuationToken).toBe("token123"); + }); + + it("should allow only removeEmptyEntities", () => { + const request: CleanEntityStorageRequest = { + removeEmptyEntities: true, + }; + + expect(request.removeEmptyEntities).toBe(true); + expect(request.releaseOrphanedLocks).toBeUndefined(); + }); + + it("should allow only releaseOrphanedLocks", () => { + const request: CleanEntityStorageRequest = { + releaseOrphanedLocks: true, + }; + + expect(request.removeEmptyEntities).toBeUndefined(); + expect(request.releaseOrphanedLocks).toBe(true); + }); + }); + + describe("CleanEntityStorageResult interface", () => { + it("should hold result values", () => { + const result: CleanEntityStorageResult = { + emptyEntitiesRemoved: 10, + orphanedLocksReleased: 5, + continuationToken: undefined, + }; + + expect(result.emptyEntitiesRemoved).toBe(10); + expect(result.orphanedLocksReleased).toBe(5); + expect(result.continuationToken).toBeUndefined(); + }); + + it("should hold continuation token when not complete", () => { + const result: CleanEntityStorageResult = { + emptyEntitiesRemoved: 100, + orphanedLocksReleased: 50, + continuationToken: "continue-from-here", + }; + + expect(result.continuationToken).toBe("continue-from-here"); + }); + + it("should hold zero counts", () => { + const result: CleanEntityStorageResult = { + emptyEntitiesRemoved: 0, + orphanedLocksReleased: 0, + }; + + expect(result.emptyEntitiesRemoved).toBe(0); + expect(result.orphanedLocksReleased).toBe(0); + }); + }); +}); diff --git a/packages/durabletask-js/test/entity-client.spec.ts b/packages/durabletask-js/test/entity-client.spec.ts new file mode 100644 index 0000000..88b1c09 --- /dev/null +++ b/packages/durabletask-js/test/entity-client.spec.ts @@ -0,0 +1,316 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { EntityInstanceId } from "../src/entities/entity-instance-id"; +import { EntityQuery } from "../src/entities/entity-query"; +import * as pb from "../src/proto/orchestrator_service_pb"; +import { Timestamp } from "google-protobuf/google/protobuf/timestamp_pb"; +import { StringValue, Int32Value } from "google-protobuf/google/protobuf/wrappers_pb"; + +// Note: These are unit tests for the entity client methods. +// They test the proto request/response conversion logic. +// Integration tests with actual gRPC calls are in e2e tests. + +describe("Entity Client Proto Conversion", () => { + describe("SignalEntityRequest", () => { + it("should create request with required fields", () => { + // Arrange + const entityId = new EntityInstanceId("counter", "my-counter"); + const operationName = "increment"; + + // Act + const req = new pb.SignalEntityRequest(); + req.setInstanceid(entityId.toString()); + req.setName(operationName); + req.setRequestid("test-request-id"); + + // Assert + expect(req.getInstanceid()).toBe("@counter@my-counter"); + expect(req.getName()).toBe("increment"); + expect(req.getRequestid()).toBe("test-request-id"); + }); + + it("should include input when provided", () => { + // Arrange + const entityId = new EntityInstanceId("counter", "my-counter"); + const input = { amount: 5 }; + + // Act + const req = new pb.SignalEntityRequest(); + req.setInstanceid(entityId.toString()); + req.setName("add"); + + const inputValue = new StringValue(); + inputValue.setValue(JSON.stringify(input)); + req.setInput(inputValue); + + // Assert + expect(req.getInput()?.getValue()).toBe('{"amount":5}'); + }); + + it("should include scheduled time when provided", () => { + // Arrange + const scheduledTime = new Date("2026-01-27T12:00:00Z"); + + // Act + const req = new pb.SignalEntityRequest(); + req.setInstanceid("@test@test"); + req.setName("op"); + + const ts = new Timestamp(); + ts.fromDate(scheduledTime); + req.setScheduledtime(ts); + + // Assert + expect(req.hasScheduledtime()).toBe(true); + expect(req.getScheduledtime()?.toDate().toISOString()).toBe(scheduledTime.toISOString()); + }); + }); + + describe("GetEntityRequest", () => { + it("should create request with entity ID", () => { + // Arrange + const entityId = new EntityInstanceId("user", "user-123"); + + // Act + const req = new pb.GetEntityRequest(); + req.setInstanceid(entityId.toString()); + req.setIncludestate(true); + + // Assert + expect(req.getInstanceid()).toBe("@user@user-123"); + expect(req.getIncludestate()).toBe(true); + }); + + it("should support excluding state", () => { + // Arrange + const entityId = new EntityInstanceId("user", "user-123"); + + // Act + const req = new pb.GetEntityRequest(); + req.setInstanceid(entityId.toString()); + req.setIncludestate(false); + + // Assert + expect(req.getIncludestate()).toBe(false); + }); + }); + + describe("GetEntityResponse", () => { + it("should indicate entity exists", () => { + // Arrange & Act + const res = new pb.GetEntityResponse(); + res.setExists(true); + + const metadata = new pb.EntityMetadata(); + metadata.setInstanceid("@counter@test"); + metadata.setBacklogqueuesize(0); + + const ts = new Timestamp(); + ts.fromDate(new Date()); + metadata.setLastmodifiedtime(ts); + + res.setEntity(metadata); + + // Assert + expect(res.getExists()).toBe(true); + expect(res.getEntity()).toBeDefined(); + }); + + it("should indicate entity does not exist", () => { + // Arrange & Act + const res = new pb.GetEntityResponse(); + res.setExists(false); + + // Assert + expect(res.getExists()).toBe(false); + }); + }); + + describe("QueryEntitiesRequest", () => { + it("should create request with all query options", () => { + // Arrange + const query: EntityQuery = { + instanceIdStartsWith: "@counter@", + lastModifiedFrom: new Date("2026-01-01"), + lastModifiedTo: new Date("2026-01-31"), + includeState: true, + includeTransient: false, + pageSize: 100, + }; + + // Act + const req = new pb.QueryEntitiesRequest(); + const protoQuery = new pb.EntityQuery(); + + const prefix = new StringValue(); + prefix.setValue(query.instanceIdStartsWith!); + protoQuery.setInstanceidstartswith(prefix); + + const fromTs = new Timestamp(); + fromTs.fromDate(query.lastModifiedFrom!); + protoQuery.setLastmodifiedfrom(fromTs); + + const toTs = new Timestamp(); + toTs.fromDate(query.lastModifiedTo!); + protoQuery.setLastmodifiedto(toTs); + + protoQuery.setIncludestate(query.includeState!); + protoQuery.setIncludetransient(query.includeTransient!); + + const pageSize = new Int32Value(); + pageSize.setValue(query.pageSize!); + protoQuery.setPagesize(pageSize); + + req.setQuery(protoQuery); + + // Assert + const resultQuery = req.getQuery()!; + expect(resultQuery.getInstanceidstartswith()?.getValue()).toBe("@counter@"); + expect(resultQuery.getIncludestate()).toBe(true); + expect(resultQuery.getIncludetransient()).toBe(false); + expect(resultQuery.getPagesize()?.getValue()).toBe(100); + }); + }); + + describe("QueryEntitiesResponse", () => { + it("should parse entity list", () => { + // Arrange & Act + const res = new pb.QueryEntitiesResponse(); + + const entity1 = new pb.EntityMetadata(); + entity1.setInstanceid("@counter@counter-1"); + entity1.setBacklogqueuesize(0); + + const entity2 = new pb.EntityMetadata(); + entity2.setInstanceid("@counter@counter-2"); + entity2.setBacklogqueuesize(5); + + res.setEntitiesList([entity1, entity2]); + + // Assert + const entities = res.getEntitiesList(); + expect(entities.length).toBe(2); + expect(entities[0].getInstanceid()).toBe("@counter@counter-1"); + expect(entities[1].getInstanceid()).toBe("@counter@counter-2"); + }); + + it("should parse continuation token", () => { + // Arrange & Act + const res = new pb.QueryEntitiesResponse(); + + const token = new StringValue(); + token.setValue("next-page-token"); + res.setContinuationtoken(token); + + // Assert + expect(res.getContinuationtoken()?.getValue()).toBe("next-page-token"); + }); + }); + + describe("CleanEntityStorageRequest", () => { + it("should create request with default options", () => { + // Act + const req = new pb.CleanEntityStorageRequest(); + req.setRemoveemptyentities(true); + req.setReleaseorphanedlocks(true); + + // Assert + expect(req.getRemoveemptyentities()).toBe(true); + expect(req.getReleaseorphanedlocks()).toBe(true); + }); + + it("should support continuation token", () => { + // Act + const req = new pb.CleanEntityStorageRequest(); + const token = new StringValue(); + token.setValue("continue-token"); + req.setContinuationtoken(token); + + // Assert + expect(req.getContinuationtoken()?.getValue()).toBe("continue-token"); + }); + }); + + describe("CleanEntityStorageResponse", () => { + it("should parse cleanup results", () => { + // Act + const res = new pb.CleanEntityStorageResponse(); + res.setEmptyentitiesremoved(10); + res.setOrphanedlocksreleased(3); + + // Assert + expect(res.getEmptyentitiesremoved()).toBe(10); + expect(res.getOrphanedlocksreleased()).toBe(3); + }); + }); + + describe("EntityMetadata proto conversion", () => { + it("should parse all metadata fields", () => { + // Arrange & Act + const metadata = new pb.EntityMetadata(); + metadata.setInstanceid("@counter@my-counter"); + metadata.setBacklogqueuesize(5); + + const ts = new Timestamp(); + ts.fromDate(new Date("2026-01-27T10:00:00Z")); + metadata.setLastmodifiedtime(ts); + + const lockedBy = new StringValue(); + lockedBy.setValue("orchestration-123"); + metadata.setLockedby(lockedBy); + + const state = new StringValue(); + state.setValue('{"value":42}'); + metadata.setSerializedstate(state); + + // Assert + expect(metadata.getInstanceid()).toBe("@counter@my-counter"); + expect(metadata.getBacklogqueuesize()).toBe(5); + expect(metadata.getLockedby()?.getValue()).toBe("orchestration-123"); + expect(metadata.getSerializedstate()?.getValue()).toBe('{"value":42}'); + }); + + it("should handle missing optional fields", () => { + // Arrange & Act + const metadata = new pb.EntityMetadata(); + metadata.setInstanceid("@counter@test"); + metadata.setBacklogqueuesize(0); + + const ts = new Timestamp(); + ts.fromDate(new Date()); + metadata.setLastmodifiedtime(ts); + // No lockedBy or serializedState + + // Assert + expect(metadata.getLockedby()).toBeUndefined(); + expect(metadata.getSerializedstate()).toBeUndefined(); + }); + }); +}); + +describe("EntityInstanceId.fromString", () => { + it("should parse valid entity ID", () => { + // Act + const entityId = EntityInstanceId.fromString("@counter@my-counter"); + + // Assert + expect(entityId.name).toBe("counter"); + expect(entityId.key).toBe("my-counter"); + }); + + it("should handle key with special characters", () => { + // Act + const entityId = EntityInstanceId.fromString("@user@user@domain.com"); + + // Assert + expect(entityId.name).toBe("user"); + expect(entityId.key).toBe("user@domain.com"); + }); + + it("should throw for invalid format", () => { + // Assert + expect(() => EntityInstanceId.fromString("invalid")).toThrow(); + expect(() => EntityInstanceId.fromString("@onlyname")).toThrow(); + }); +}); diff --git a/packages/durabletask-js/test/entity-executor.spec.ts b/packages/durabletask-js/test/entity-executor.spec.ts new file mode 100644 index 0000000..a1da979 --- /dev/null +++ b/packages/durabletask-js/test/entity-executor.spec.ts @@ -0,0 +1,401 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { TaskEntityShim } from "../src/worker/entity-executor"; +import { TaskEntity } from "../src/entities/task-entity"; +import { EntityInstanceId } from "../src/entities/entity-instance-id"; +import * as pb from "../src/proto/orchestrator_service_pb"; +import { StringValue } from "google-protobuf/google/protobuf/wrappers_pb"; + +// Helper to create EntityBatchRequest +function createBatchRequest( + instanceId: string, + operations: { name: string; input?: unknown }[], + initialState?: unknown, +): pb.EntityBatchRequest { + const request = new pb.EntityBatchRequest(); + request.setInstanceid(instanceId); + + if (initialState !== undefined) { + const stateValue = new StringValue(); + stateValue.setValue(JSON.stringify(initialState)); + request.setEntitystate(stateValue); + } + + for (const op of operations) { + const opRequest = new pb.OperationRequest(); + opRequest.setOperation(op.name); + if (op.input !== undefined) { + const inputValue = new StringValue(); + inputValue.setValue(JSON.stringify(op.input)); + opRequest.setInput(inputValue); + } + request.addOperations(opRequest); + } + + return request; +} + +// Simple counter entity for testing +class CounterEntity extends TaskEntity<{ count: number }> { + add(amount: number): number { + this.state.count += amount; + return this.state.count; + } + + get(): number { + return this.state.count; + } + + throwError(): void { + throw new Error("Intentional error"); + } + + signalOther(): void { + this.context?.signalEntity( + new EntityInstanceId("other", "key"), + "ping", + { message: "hello" }, + ); + } + + startOrchestration(): string { + return this.context?.scheduleNewOrchestration("TestOrchestrator", { data: 123 }) ?? ""; + } + + protected initializeState(): { count: number } { + return { count: 0 }; + } +} + +describe("TaskEntityShim", () => { + const entityId = new EntityInstanceId("counter", "test"); + + describe("executeAsync", () => { + it("should execute a single operation successfully", async () => { + const entity = new CounterEntity(); + const shim = new TaskEntityShim(entity, entityId); + const request = createBatchRequest( + entityId.toString(), + [{ name: "add", input: 5 }], + { count: 10 }, + ); + + const result = await shim.executeAsync(request); + + expect(result.getResultsList()).toHaveLength(1); + const opResult = result.getResultsList()[0]; + expect(opResult.hasSuccess()).toBe(true); + expect(opResult.hasFailure()).toBe(false); + + const success = opResult.getSuccess()!; + const resultValue = success.getResult()?.getValue(); + expect(JSON.parse(resultValue!)).toBe(15); // 10 + 5 + }); + + it("should execute multiple operations in order", async () => { + const entity = new CounterEntity(); + const shim = new TaskEntityShim(entity, entityId); + const request = createBatchRequest( + entityId.toString(), + [ + { name: "add", input: 5 }, + { name: "add", input: 3 }, + { name: "get" }, + ], + { count: 0 }, + ); + + const result = await shim.executeAsync(request); + + expect(result.getResultsList()).toHaveLength(3); + + // First add: 0 + 5 = 5 + expect(JSON.parse(result.getResultsList()[0].getSuccess()!.getResult()!.getValue())).toBe(5); + + // Second add: 5 + 3 = 8 + expect(JSON.parse(result.getResultsList()[1].getSuccess()!.getResult()!.getValue())).toBe(8); + + // Get: 8 + expect(JSON.parse(result.getResultsList()[2].getSuccess()!.getResult()!.getValue())).toBe(8); + }); + + it("should initialize state when no initial state provided", async () => { + const entity = new CounterEntity(); + const shim = new TaskEntityShim(entity, entityId); // No initial state + const request = createBatchRequest( + entityId.toString(), + [{ name: "get" }], + // No initial state + ); + + const result = await shim.executeAsync(request); + + expect(result.getResultsList()).toHaveLength(1); + // Should use initializeState() which returns { count: 0 } + expect(JSON.parse(result.getResultsList()[0].getSuccess()!.getResult()!.getValue())).toBe(0); + }); + + it("should persist final state in result", async () => { + const entity = new CounterEntity(); + const shim = new TaskEntityShim(entity, entityId); + const request = createBatchRequest( + entityId.toString(), + [{ name: "add", input: 42 }], + { count: 0 }, + ); + + const result = await shim.executeAsync(request); + + const finalState = result.getEntitystate()?.getValue(); + expect(finalState).toBeDefined(); + expect(JSON.parse(finalState!)).toEqual({ count: 42 }); + }); + }); + + describe("error handling and rollback", () => { + it("should record failure for operation that throws", async () => { + const entity = new CounterEntity(); + const shim = new TaskEntityShim(entity, entityId); + const request = createBatchRequest( + entityId.toString(), + [{ name: "throwError" }], + { count: 0 }, + ); + + const result = await shim.executeAsync(request); + + expect(result.getResultsList()).toHaveLength(1); + const opResult = result.getResultsList()[0]; + expect(opResult.hasSuccess()).toBe(false); + expect(opResult.hasFailure()).toBe(true); + + const failure = opResult.getFailure()!; + expect(failure.getFailuredetails()?.getErrormessage()).toBe("Intentional error"); + }); + + it("should continue executing after failed operation", async () => { + const entity = new CounterEntity(); + const shim = new TaskEntityShim(entity, entityId); + const request = createBatchRequest( + entityId.toString(), + [ + { name: "add", input: 5 }, + { name: "throwError" }, + { name: "add", input: 3 }, + ], + { count: 0 }, + ); + + const result = await shim.executeAsync(request); + + expect(result.getResultsList()).toHaveLength(3); + + // First add succeeds: 0 + 5 = 5 + expect(result.getResultsList()[0].hasSuccess()).toBe(true); + + // Second operation fails + expect(result.getResultsList()[1].hasFailure()).toBe(true); + + // Third add succeeds: state was rolled back to 5, then + 3 = 8 + expect(result.getResultsList()[2].hasSuccess()).toBe(true); + expect(JSON.parse(result.getResultsList()[2].getSuccess()!.getResult()!.getValue())).toBe(8); + }); + + it("should rollback state changes on exception", async () => { + // Create a custom entity that modifies state before throwing + class FailingEntity extends TaskEntity<{ count: number }> { + modifyThenFail(): void { + this.state.count = 999; // Modify state + throw new Error("Fail after modify"); + } + + get(): number { + return this.state.count; + } + + protected initializeState(): { count: number } { + return { count: 0 }; + } + } + + const entity = new FailingEntity(); + const shim = new TaskEntityShim(entity, entityId); + const request = createBatchRequest( + entityId.toString(), + [ + { name: "modifyThenFail" }, + { name: "get" }, + ], + { count: 10 }, + ); + + const result = await shim.executeAsync(request); + + // First operation fails + expect(result.getResultsList()[0].hasFailure()).toBe(true); + + // Second operation should see rolled-back state (10, not 999) + expect(result.getResultsList()[1].hasSuccess()).toBe(true); + expect(JSON.parse(result.getResultsList()[1].getSuccess()!.getResult()!.getValue())).toBe(10); + }); + + it("should rollback actions on exception", async () => { + // Create entity that signals then throws + class SignalThenFailEntity extends TaskEntity<{ count: number }> { + signalThenFail(): void { + this.context?.signalEntity( + new EntityInstanceId("other", "key"), + "shouldNotSee", + ); + throw new Error("Fail after signal"); + } + + signalSuccess(): void { + this.context?.signalEntity( + new EntityInstanceId("other", "key"), + "shouldSee", + ); + } + + protected initializeState(): { count: number } { + return { count: 0 }; + } + } + + const entity = new SignalThenFailEntity(); + const shim = new TaskEntityShim(entity, entityId); + const request = createBatchRequest( + entityId.toString(), + [ + { name: "signalThenFail" }, + { name: "signalSuccess" }, + ], + { count: 0 }, + ); + + const result = await shim.executeAsync(request); + + // Check that only the successful signal is in the actions + const actions = result.getActionsList(); + expect(actions).toHaveLength(1); + + const signalAction = actions[0].getSendsignal()!; + expect(signalAction.getName()).toBe("shouldSee"); + }); + }); + + describe("actions collection", () => { + it("should collect signal actions from entity", async () => { + const entity = new CounterEntity(); + const shim = new TaskEntityShim(entity, entityId); + const request = createBatchRequest( + entityId.toString(), + [{ name: "signalOther" }], + { count: 0 }, + ); + + const result = await shim.executeAsync(request); + + const actions = result.getActionsList(); + expect(actions).toHaveLength(1); + + const action = actions[0]; + expect(action.hasSendsignal()).toBe(true); + + const signalAction = action.getSendsignal()!; + expect(signalAction.getInstanceid()).toBe("@other@key"); + expect(signalAction.getName()).toBe("ping"); + expect(JSON.parse(signalAction.getInput()!.getValue())).toEqual({ message: "hello" }); + }); + + it("should collect orchestration actions from entity", async () => { + const entity = new CounterEntity(); + const shim = new TaskEntityShim(entity, entityId); + const request = createBatchRequest( + entityId.toString(), + [{ name: "startOrchestration" }], + { count: 0 }, + ); + + const result = await shim.executeAsync(request); + + const actions = result.getActionsList(); + expect(actions).toHaveLength(1); + + const action = actions[0]; + expect(action.hasStartneworchestration()).toBe(true); + + const orchAction = action.getStartneworchestration()!; + expect(orchAction.getName()).toBe("TestOrchestrator"); + expect(JSON.parse(orchAction.getInput()!.getValue())).toEqual({ data: 123 }); + }); + + it("should collect multiple actions from multiple operations", async () => { + const entity = new CounterEntity(); + const shim = new TaskEntityShim(entity, entityId); + const request = createBatchRequest( + entityId.toString(), + [ + { name: "signalOther" }, + { name: "startOrchestration" }, + { name: "signalOther" }, + ], + { count: 0 }, + ); + + const result = await shim.executeAsync(request); + + const actions = result.getActionsList(); + expect(actions).toHaveLength(3); + + expect(actions[0].hasSendsignal()).toBe(true); + expect(actions[1].hasStartneworchestration()).toBe(true); + expect(actions[2].hasSendsignal()).toBe(true); + }); + }); + + describe("timing information", () => { + it("should include start and end times in success result", async () => { + const entity = new CounterEntity(); + const shim = new TaskEntityShim(entity, entityId); + const request = createBatchRequest( + entityId.toString(), + [{ name: "get" }], + { count: 0 }, + ); + + const beforeTime = new Date(); + const result = await shim.executeAsync(request); + const afterTime = new Date(); + + const success = result.getResultsList()[0].getSuccess()!; + const startTime = success.getStarttimeutc()!; + const endTime = success.getEndtimeutc()!; + + // Verify timestamps are within expected range + const startMs = startTime.getSeconds() * 1000 + startTime.getNanos() / 1000000; + const endMs = endTime.getSeconds() * 1000 + endTime.getNanos() / 1000000; + + expect(startMs).toBeGreaterThanOrEqual(beforeTime.getTime() - 1000); + expect(endMs).toBeLessThanOrEqual(afterTime.getTime() + 1000); + expect(endMs).toBeGreaterThanOrEqual(startMs); + }); + + it("should include start and end times in failure result", async () => { + const entity = new CounterEntity(); + const shim = new TaskEntityShim(entity, entityId); + const request = createBatchRequest( + entityId.toString(), + [{ name: "throwError" }], + { count: 0 }, + ); + + const result = await shim.executeAsync(request); + + const failure = result.getResultsList()[0].getFailure()!; + expect(failure.getStarttimeutc()).toBeDefined(); + expect(failure.getEndtimeutc()).toBeDefined(); + }); + }); +}); diff --git a/packages/durabletask-js/test/entity-instance-id.spec.ts b/packages/durabletask-js/test/entity-instance-id.spec.ts new file mode 100644 index 0000000..701b860 --- /dev/null +++ b/packages/durabletask-js/test/entity-instance-id.spec.ts @@ -0,0 +1,214 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { EntityInstanceId } from "../src/entities/entity-instance-id"; + +describe("EntityInstanceId", () => { + describe("constructor", () => { + it("should normalize name to lowercase", () => { + const entityId = new EntityInstanceId("Counter", "key1"); + expect(entityId.name).toBe("counter"); + }); + + it("should normalize mixed case name to lowercase", () => { + const entityId = new EntityInstanceId("MyCounterEntity", "key1"); + expect(entityId.name).toBe("mycounterentity"); + }); + + it("should preserve key case", () => { + const entityId = new EntityInstanceId("counter", "MyKey-123"); + expect(entityId.key).toBe("MyKey-123"); + }); + + it("should allow empty key", () => { + const entityId = new EntityInstanceId("counter", ""); + expect(entityId.key).toBe(""); + }); + + it("should throw error when name contains '@'", () => { + expect(() => new EntityInstanceId("counter@invalid", "key1")).toThrow( + "Entity names may not contain '@' characters." + ); + }); + + it("should throw error when name is empty", () => { + expect(() => new EntityInstanceId("", "key1")).toThrow("Entity name must not be empty."); + }); + + it("should throw error when key is null", () => { + expect(() => new EntityInstanceId("counter", null as any)).toThrow( + "Entity key must not be null or undefined." + ); + }); + + it("should throw error when key is undefined", () => { + expect(() => new EntityInstanceId("counter", undefined as any)).toThrow( + "Entity key must not be null or undefined." + ); + }); + }); + + describe("toString", () => { + it("should return correct format @name@key", () => { + const entityId = new EntityInstanceId("counter", "user-123"); + expect(entityId.toString()).toBe("@counter@user-123"); + }); + + it("should use lowercase name in output", () => { + const entityId = new EntityInstanceId("Counter", "Key1"); + expect(entityId.toString()).toBe("@counter@Key1"); + }); + + it("should handle empty key", () => { + const entityId = new EntityInstanceId("counter", ""); + expect(entityId.toString()).toBe("@counter@"); + }); + + it("should handle key with special characters", () => { + const entityId = new EntityInstanceId("counter", "user/123:abc"); + expect(entityId.toString()).toBe("@counter@user/123:abc"); + }); + + it("should handle key containing '@'", () => { + const entityId = new EntityInstanceId("counter", "user@domain.com"); + expect(entityId.toString()).toBe("@counter@user@domain.com"); + }); + }); + + describe("fromString", () => { + it("should parse valid entity ID", () => { + const entityId = EntityInstanceId.fromString("@counter@user-123"); + expect(entityId.name).toBe("counter"); + expect(entityId.key).toBe("user-123"); + }); + + it("should parse entity ID with empty key", () => { + const entityId = EntityInstanceId.fromString("@counter@"); + expect(entityId.name).toBe("counter"); + expect(entityId.key).toBe(""); + }); + + it("should parse entity ID with @ in key", () => { + const entityId = EntityInstanceId.fromString("@counter@user@domain.com"); + expect(entityId.name).toBe("counter"); + expect(entityId.key).toBe("user@domain.com"); + }); + + it("should normalize name to lowercase when parsing", () => { + // Even if the string has uppercase (which shouldn't happen from toString), + // the constructor will lowercase it + const entityId = EntityInstanceId.fromString("@Counter@key1"); + expect(entityId.name).toBe("counter"); + }); + + it("should throw error for empty string", () => { + expect(() => EntityInstanceId.fromString("")).toThrow("Instance ID must not be empty."); + }); + + it("should throw error when not starting with @", () => { + expect(() => EntityInstanceId.fromString("counter@key1")).toThrow( + "Instance ID 'counter@key1' is not a valid entity ID. Must start with '@'." + ); + }); + + it("should throw error when missing second @", () => { + expect(() => EntityInstanceId.fromString("@counterkey1")).toThrow( + "Instance ID '@counterkey1' is not a valid entity ID. Expected format: @name@key" + ); + }); + + it("should throw error when name is empty", () => { + expect(() => EntityInstanceId.fromString("@@key1")).toThrow( + "Instance ID '@@key1' is not a valid entity ID. Entity name is empty." + ); + }); + }); + + describe("equals", () => { + it("should return true for equal entity IDs", () => { + const entityId1 = new EntityInstanceId("counter", "key1"); + const entityId2 = new EntityInstanceId("counter", "key1"); + expect(entityId1.equals(entityId2)).toBe(true); + }); + + it("should return true for same name with different case", () => { + const entityId1 = new EntityInstanceId("Counter", "key1"); + const entityId2 = new EntityInstanceId("COUNTER", "key1"); + expect(entityId1.equals(entityId2)).toBe(true); + }); + + it("should return false for different names", () => { + const entityId1 = new EntityInstanceId("counter", "key1"); + const entityId2 = new EntityInstanceId("timer", "key1"); + expect(entityId1.equals(entityId2)).toBe(false); + }); + + it("should return false for different keys", () => { + const entityId1 = new EntityInstanceId("counter", "key1"); + const entityId2 = new EntityInstanceId("counter", "key2"); + expect(entityId1.equals(entityId2)).toBe(false); + }); + + it("should return false for different key case", () => { + const entityId1 = new EntityInstanceId("counter", "Key1"); + const entityId2 = new EntityInstanceId("counter", "key1"); + expect(entityId1.equals(entityId2)).toBe(false); + }); + + it("should return false for null", () => { + const entityId = new EntityInstanceId("counter", "key1"); + expect(entityId.equals(null)).toBe(false); + }); + + it("should return false for undefined", () => { + const entityId = new EntityInstanceId("counter", "key1"); + expect(entityId.equals(undefined)).toBe(false); + }); + }); + + describe("roundtrip", () => { + it("should roundtrip through toString and fromString", () => { + const original = new EntityInstanceId("MyEntity", "user-123"); + const str = original.toString(); + const parsed = EntityInstanceId.fromString(str); + + expect(parsed.name).toBe(original.name); + expect(parsed.key).toBe(original.key); + expect(parsed.equals(original)).toBe(true); + }); + + it("should roundtrip with special characters in key", () => { + const original = new EntityInstanceId("entity", "key/with:special@chars"); + const str = original.toString(); + const parsed = EntityInstanceId.fromString(str); + + expect(parsed.key).toBe(original.key); + expect(parsed.equals(original)).toBe(true); + }); + }); + + describe("toJSON", () => { + it("should serialize to compact string with JSON.stringify", () => { + const entityId = new EntityInstanceId("counter", "user-123"); + const json = JSON.stringify(entityId); + expect(json).toBe('"@counter@user-123"'); + }); + + it("should serialize correctly when nested in object", () => { + const obj = { + id: new EntityInstanceId("counter", "user-123"), + value: 42, + }; + const json = JSON.stringify(obj); + expect(json).toBe('{"id":"@counter@user-123","value":42}'); + }); + + it("should roundtrip through JSON serialization", () => { + const original = new EntityInstanceId("MyEntity", "key-456"); + const json = JSON.stringify(original); + const parsed = EntityInstanceId.fromString(JSON.parse(json)); + + expect(parsed.equals(original)).toBe(true); + }); + }); +}); diff --git a/packages/durabletask-js/test/entity-locking.spec.ts b/packages/durabletask-js/test/entity-locking.spec.ts new file mode 100644 index 0000000..e2ea7da --- /dev/null +++ b/packages/durabletask-js/test/entity-locking.spec.ts @@ -0,0 +1,644 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { EntityInstanceId } from "../src/entities/entity-instance-id"; +import { LockHandle } from "../src/entities/orchestration-entity-feature"; +import { OrchestrationExecutor } from "../src/worker/orchestration-executor"; +import { Registry } from "../src/worker/registry"; +import * as pb from "../src/proto/orchestrator_service_pb"; +import { Timestamp } from "google-protobuf/google/protobuf/timestamp_pb"; +import { StringValue } from "google-protobuf/google/protobuf/wrappers_pb"; + +// Helper functions for creating history events +function createOrchestratorStartedEvent(timestamp: Date = new Date()): pb.HistoryEvent { + const event = new pb.HistoryEvent(); + event.setEventid(-1); + const ts = new Timestamp(); + ts.fromDate(timestamp); + event.setTimestamp(ts); + const orchStarted = new pb.OrchestratorStartedEvent(); + event.setOrchestratorstarted(orchStarted); + return event; +} + +function createExecutionStartedEvent( + name: string, + input?: unknown, + instanceId: string = "test-instance", +): pb.HistoryEvent { + const event = new pb.HistoryEvent(); + event.setEventid(1); + const ts = new Timestamp(); + ts.fromDate(new Date()); + event.setTimestamp(ts); + + const execStarted = new pb.ExecutionStartedEvent(); + execStarted.setName(name); + if (input !== undefined) { + const inputValue = new StringValue(); + inputValue.setValue(JSON.stringify(input)); + execStarted.setInput(inputValue); + } + + const orchInstance = new pb.OrchestrationInstance(); + orchInstance.setInstanceid(instanceId); + execStarted.setOrchestrationinstance(orchInstance); + + event.setExecutionstarted(execStarted); + return event; +} + +function createEntityLockGrantedEvent(criticalSectionId: string): pb.HistoryEvent { + const event = new pb.HistoryEvent(); + event.setEventid(-1); + const ts = new Timestamp(); + ts.fromDate(new Date()); + event.setTimestamp(ts); + + const lockGranted = new pb.EntityLockGrantedEvent(); + lockGranted.setCriticalsectionid(criticalSectionId); + event.setEntitylockgranted(lockGranted); + return event; +} + +function createEntityLockRequestedEvent( + eventId: number, + criticalSectionId: string, + lockSet: string[], +): pb.HistoryEvent { + const event = new pb.HistoryEvent(); + event.setEventid(eventId); + const ts = new Timestamp(); + ts.fromDate(new Date()); + event.setTimestamp(ts); + + const lockRequested = new pb.EntityLockRequestedEvent(); + lockRequested.setCriticalsectionid(criticalSectionId); + lockRequested.setLocksetList(lockSet); + event.setEntitylockrequested(lockRequested); + return event; +} + +describe("Entity Locking (Critical Sections)", () => { + describe("lockEntities", () => { + it("should throw when entity list is empty", async () => { + // Arrange + const registry = new Registry(); + let errorThrown: Error | null = null; + + registry.addOrchestrator(async function* testOrchestration(ctx: any) { + try { + // This should throw + yield ctx.entities.lockEntities(); + } catch (e) { + errorThrown = e as Error; + } + return "done"; + }); + + const executor = new OrchestrationExecutor(registry); + const newEvents = [ + createOrchestratorStartedEvent(), + createExecutionStartedEvent("testOrchestration"), + ]; + + // Act + await executor.execute("test-instance", [], newEvents); + + // Assert + expect(errorThrown).not.toBeNull(); + expect(errorThrown!.message).toContain("must not be empty"); + }); + + it("should sort entities in lock request for determinism", async () => { + // Arrange + const registry = new Registry(); + let capturedActions: pb.OrchestratorAction[] = []; + + registry.addOrchestrator(async function* testOrchestration(ctx: any) { + // Lock in unsorted order: B, A, C + const entityB = new EntityInstanceId("counter", "b"); + const entityA = new EntityInstanceId("counter", "a"); + const entityC = new EntityInstanceId("counter", "c"); + yield ctx.entities.lockEntities(entityB, entityA, entityC); + }); + + const executor = new OrchestrationExecutor(registry); + const newEvents = [ + createOrchestratorStartedEvent(), + createExecutionStartedEvent("testOrchestration"), + ]; + + // Act + const result = await executor.execute("test-instance", [], newEvents); + capturedActions = result.actions; + + // Assert - Find the lock request action + const lockAction = capturedActions.find( + (a) => a.getSendentitymessage()?.hasEntitylockrequested(), + ); + expect(lockAction).toBeDefined(); + + const lockEvent = lockAction!.getSendentitymessage()!.getEntitylockrequested()!; + const lockSet = lockEvent.getLocksetList(); + + // Should be sorted: a, b, c + expect(lockSet.length).toBe(3); + expect(lockSet[0]).toBe("@counter@a"); + expect(lockSet[1]).toBe("@counter@b"); + expect(lockSet[2]).toBe("@counter@c"); + }); + + it("should remove duplicate entities", async () => { + // Arrange + const registry = new Registry(); + + registry.addOrchestrator(async function* testOrchestration(ctx: any) { + // Lock with duplicates + const entity1 = new EntityInstanceId("counter", "a"); + const entity2 = new EntityInstanceId("counter", "a"); // Duplicate + const entity3 = new EntityInstanceId("counter", "b"); + yield ctx.entities.lockEntities(entity1, entity2, entity3); + }); + + const executor = new OrchestrationExecutor(registry); + const newEvents = [ + createOrchestratorStartedEvent(), + createExecutionStartedEvent("testOrchestration"), + ]; + + // Act + const result = await executor.execute("test-instance", [], newEvents); + + // Assert - Find the lock request action + const lockAction = result.actions.find((a) => a.getSendentitymessage()?.hasEntitylockrequested()); + expect(lockAction).toBeDefined(); + + const lockEvent = lockAction!.getSendentitymessage()!.getEntitylockrequested()!; + const lockSet = lockEvent.getLocksetList(); + + // Should have duplicates removed + expect(lockSet.length).toBe(2); + expect(lockSet).toContain("@counter@a"); + expect(lockSet).toContain("@counter@b"); + }); + + it("should complete lock task when EntityLockGranted is received", async () => { + // Arrange + const registry = new Registry(); + let lockAcquired = false; + const orchestratorStartTime = new Date(); + + registry.addOrchestrator(async function* testOrchestration(ctx: any) { + const entity = new EntityInstanceId("counter", "test"); + const lock: LockHandle = yield ctx.entities.lockEntities(entity); + lockAcquired = true; + lock.release(); + return "completed"; + }); + + const executor = new OrchestrationExecutor(registry); + + // First execution - request lock + const newEvents1 = [ + createOrchestratorStartedEvent(orchestratorStartTime), + createExecutionStartedEvent("testOrchestration"), + ]; + const result1 = await executor.execute("test-instance", [], newEvents1); + + // Find the critical section ID and action ID from the lock request + const lockAction = result1.actions.find((a) => a.getSendentitymessage()?.hasEntitylockrequested()); + const lockRequest = lockAction!.getSendentitymessage()!.getEntitylockrequested()!; + const criticalSectionId = lockRequest.getCriticalsectionid(); + const actionId = lockAction!.getId(); + const lockSet = lockRequest.getLocksetList(); + + // Second execution - lock granted (use same timestamp for determinism) + const executor2 = new OrchestrationExecutor(registry); + const oldEvents = [ + createOrchestratorStartedEvent(orchestratorStartTime), + createExecutionStartedEvent("testOrchestration"), + createEntityLockRequestedEvent(actionId, criticalSectionId, lockSet), + ]; + const newEvents2 = [ + createOrchestratorStartedEvent(), // New timestamp for the new execution + createEntityLockGrantedEvent(criticalSectionId), + ]; + + // Act + const result2 = await executor2.execute("test-instance", oldEvents, newEvents2); + + // Assert + expect(lockAcquired).toBe(true); + + // Should have completion action with unlock action + const completionAction = result2.actions.find((a) => a.hasCompleteorchestration()); + expect(completionAction).toBeDefined(); + expect(completionAction!.getCompleteorchestration()!.getOrchestrationstatus()).toBe( + pb.OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED, + ); + }); + }); + + describe("isInCriticalSection", () => { + it("should return false when not in critical section", async () => { + // Arrange + const registry = new Registry(); + let criticalSectionInfo: any = null; + + // eslint-disable-next-line require-yield + registry.addOrchestrator(async function* testOrchestration(ctx: any) { + criticalSectionInfo = ctx.entities.isInCriticalSection(); + return "done"; + }); + + const executor = new OrchestrationExecutor(registry); + const newEvents = [ + createOrchestratorStartedEvent(), + createExecutionStartedEvent("testOrchestration"), + ]; + + // Act + await executor.execute("test-instance", [], newEvents); + + // Assert + expect(criticalSectionInfo).toEqual({ inSection: false }); + }); + + it("should return true with locked entities when in critical section", async () => { + // Arrange + const registry = new Registry(); + let criticalSectionInfo: any = null; + const orchestratorStartTime = new Date(); + + registry.addOrchestrator(async function* testOrchestration(ctx: any) { + const entityA = new EntityInstanceId("counter", "a"); + const entityB = new EntityInstanceId("counter", "b"); + const lock: LockHandle = yield ctx.entities.lockEntities(entityA, entityB); + criticalSectionInfo = ctx.entities.isInCriticalSection(); + lock.release(); + return "done"; + }); + + const executor = new OrchestrationExecutor(registry); + + // First execution - request lock + const newEvents1 = [ + createOrchestratorStartedEvent(orchestratorStartTime), + createExecutionStartedEvent("testOrchestration"), + ]; + const result1 = await executor.execute("test-instance", [], newEvents1); + + // Find the critical section ID and action ID from the lock request + const lockAction = result1.actions.find((a) => a.getSendentitymessage()?.hasEntitylockrequested()); + const lockRequest = lockAction!.getSendentitymessage()!.getEntitylockrequested()!; + const criticalSectionId = lockRequest.getCriticalsectionid(); + const actionId = lockAction!.getId(); + const lockSet = lockRequest.getLocksetList(); + + // Second execution - lock granted (use same timestamp for determinism) + const executor2 = new OrchestrationExecutor(registry); + const oldEvents = [ + createOrchestratorStartedEvent(orchestratorStartTime), + createExecutionStartedEvent("testOrchestration"), + createEntityLockRequestedEvent(actionId, criticalSectionId, lockSet), + ]; + const newEvents2 = [ + createOrchestratorStartedEvent(), + createEntityLockGrantedEvent(criticalSectionId), + ]; + + // Act + await executor2.execute("test-instance", oldEvents, newEvents2); + + // Assert + expect(criticalSectionInfo.inSection).toBe(true); + expect(criticalSectionInfo.lockedEntities).toHaveLength(2); + expect(criticalSectionInfo.lockedEntities.map((e: EntityInstanceId) => e.toString())).toContain( + "@counter@a", + ); + expect(criticalSectionInfo.lockedEntities.map((e: EntityInstanceId) => e.toString())).toContain( + "@counter@b", + ); + }); + }); + + describe("lock release", () => { + it("should send unlock messages when lock is released", async () => { + // Arrange + const registry = new Registry(); + const orchestratorStartTime = new Date(); + + registry.addOrchestrator(async function* testOrchestration(ctx: any) { + const entityA = new EntityInstanceId("counter", "a"); + const entityB = new EntityInstanceId("counter", "b"); + const lock: LockHandle = yield ctx.entities.lockEntities(entityA, entityB); + lock.release(); + return "done"; + }); + + const executor = new OrchestrationExecutor(registry); + + // First execution - request lock + const newEvents1 = [ + createOrchestratorStartedEvent(orchestratorStartTime), + createExecutionStartedEvent("testOrchestration"), + ]; + const result1 = await executor.execute("test-instance", [], newEvents1); + + // Find the critical section ID and action ID from the lock request + const lockAction = result1.actions.find((a) => a.getSendentitymessage()?.hasEntitylockrequested()); + const lockRequest = lockAction!.getSendentitymessage()!.getEntitylockrequested()!; + const criticalSectionId = lockRequest.getCriticalsectionid(); + const actionId = lockAction!.getId(); + const lockSet = lockRequest.getLocksetList(); + + // Second execution - lock granted (use same timestamp for determinism) + const executor2 = new OrchestrationExecutor(registry); + const oldEvents = [ + createOrchestratorStartedEvent(orchestratorStartTime), + createExecutionStartedEvent("testOrchestration"), + createEntityLockRequestedEvent(actionId, criticalSectionId, lockSet), + ]; + const newEvents2 = [ + createOrchestratorStartedEvent(), + createEntityLockGrantedEvent(criticalSectionId), + ]; + + // Act + const result2 = await executor2.execute("test-instance", oldEvents, newEvents2); + + // Assert - Should have unlock actions for both entities + const unlockActions = result2.actions.filter((a) => a.getSendentitymessage()?.hasEntityunlocksent()); + expect(unlockActions.length).toBe(2); + + const unlockedEntities = unlockActions.map( + (a) => a.getSendentitymessage()!.getEntityunlocksent()!.getTargetinstanceid()!.getValue(), + ); + expect(unlockedEntities).toContain("@counter@a"); + expect(unlockedEntities).toContain("@counter@b"); + }); + + it("should be idempotent - multiple releases should be safe", async () => { + // Arrange + const registry = new Registry(); + const orchestratorStartTime = new Date(); + + registry.addOrchestrator(async function* testOrchestration(ctx: any) { + const entity = new EntityInstanceId("counter", "a"); + const lock: LockHandle = yield ctx.entities.lockEntities(entity); + lock.release(); + lock.release(); // Second release should be no-op + lock.release(); // Third release should be no-op + return "done"; + }); + + const executor = new OrchestrationExecutor(registry); + + // First execution - request lock + const newEvents1 = [ + createOrchestratorStartedEvent(orchestratorStartTime), + createExecutionStartedEvent("testOrchestration"), + ]; + const result1 = await executor.execute("test-instance", [], newEvents1); + + // Find the critical section ID and action ID from the lock request + const lockAction = result1.actions.find((a) => a.getSendentitymessage()?.hasEntitylockrequested()); + const lockRequest = lockAction!.getSendentitymessage()!.getEntitylockrequested()!; + const criticalSectionId = lockRequest.getCriticalsectionid(); + const actionId = lockAction!.getId(); + const lockSet = lockRequest.getLocksetList(); + + // Second execution - lock granted (use same timestamp for determinism) + const executor2 = new OrchestrationExecutor(registry); + const oldEvents = [ + createOrchestratorStartedEvent(orchestratorStartTime), + createExecutionStartedEvent("testOrchestration"), + createEntityLockRequestedEvent(actionId, criticalSectionId, lockSet), + ]; + const newEvents2 = [ + createOrchestratorStartedEvent(), + createEntityLockGrantedEvent(criticalSectionId), + ]; + + // Act + const result2 = await executor2.execute("test-instance", oldEvents, newEvents2); + + // Assert - Should only have one unlock action (not three) + const unlockActions = result2.actions.filter((a) => a.getSendentitymessage()?.hasEntityunlocksent()); + expect(unlockActions.length).toBe(1); + }); + }); + + describe("critical section validation", () => { + it("should throw when trying to enter nested critical section", async () => { + // Arrange + const registry = new Registry(); + let errorThrown: Error | null = null; + const orchestratorStartTime = new Date(); + + registry.addOrchestrator(async function* testOrchestration(ctx: any) { + const entityA = new EntityInstanceId("counter", "a"); + const entityB = new EntityInstanceId("counter", "b"); + const lock: LockHandle = yield ctx.entities.lockEntities(entityA); + + try { + // This should throw - nested critical section + yield ctx.entities.lockEntities(entityB); + } catch (e) { + errorThrown = e as Error; + } + + lock.release(); + return "done"; + }); + + const executor = new OrchestrationExecutor(registry); + + // First execution - request lock + const newEvents1 = [ + createOrchestratorStartedEvent(orchestratorStartTime), + createExecutionStartedEvent("testOrchestration"), + ]; + const result1 = await executor.execute("test-instance", [], newEvents1); + + // Find the critical section ID and action ID from the lock request + const lockAction = result1.actions.find((a) => a.getSendentitymessage()?.hasEntitylockrequested()); + const lockRequest = lockAction!.getSendentitymessage()!.getEntitylockrequested()!; + const criticalSectionId = lockRequest.getCriticalsectionid(); + const actionId = lockAction!.getId(); + const lockSet = lockRequest.getLocksetList(); + + // Second execution - lock granted (use same timestamp for determinism) + const executor2 = new OrchestrationExecutor(registry); + const oldEvents = [ + createOrchestratorStartedEvent(orchestratorStartTime), + createExecutionStartedEvent("testOrchestration"), + createEntityLockRequestedEvent(actionId, criticalSectionId, lockSet), + ]; + const newEvents2 = [ + createOrchestratorStartedEvent(), + createEntityLockGrantedEvent(criticalSectionId), + ]; + + // Act + await executor2.execute("test-instance", oldEvents, newEvents2); + + // Assert + expect(errorThrown).not.toBeNull(); + expect(errorThrown!.message).toContain("Must not enter another critical section"); + }); + + it("should throw when signaling a locked entity from within critical section", async () => { + // Arrange + const registry = new Registry(); + let errorThrown: Error | null = null; + const orchestratorStartTime = new Date(); + + registry.addOrchestrator(async function* testOrchestration(ctx: any) { + const entity = new EntityInstanceId("counter", "a"); + const lock: LockHandle = yield ctx.entities.lockEntities(entity); + + try { + // This should throw - cannot signal a locked entity + ctx.entities.signalEntity(entity, "increment"); + } catch (e) { + errorThrown = e as Error; + } + + lock.release(); + return "done"; + }); + + const executor = new OrchestrationExecutor(registry); + + // First execution - request lock + const newEvents1 = [ + createOrchestratorStartedEvent(orchestratorStartTime), + createExecutionStartedEvent("testOrchestration"), + ]; + const result1 = await executor.execute("test-instance", [], newEvents1); + + // Find the critical section ID and action ID from the lock request + const lockAction = result1.actions.find((a) => a.getSendentitymessage()?.hasEntitylockrequested()); + const lockRequest = lockAction!.getSendentitymessage()!.getEntitylockrequested()!; + const criticalSectionId = lockRequest.getCriticalsectionid(); + const actionId = lockAction!.getId(); + const lockSet = lockRequest.getLocksetList(); + + // Second execution - lock granted (use same timestamp for determinism) + const executor2 = new OrchestrationExecutor(registry); + const oldEvents = [ + createOrchestratorStartedEvent(orchestratorStartTime), + createExecutionStartedEvent("testOrchestration"), + createEntityLockRequestedEvent(actionId, criticalSectionId, lockSet), + ]; + const newEvents2 = [ + createOrchestratorStartedEvent(), + createEntityLockGrantedEvent(criticalSectionId), + ]; + + // Act + await executor2.execute("test-instance", oldEvents, newEvents2); + + // Assert + expect(errorThrown).not.toBeNull(); + expect(errorThrown!.message).toContain("Must not signal a locked entity"); + }); + + it("should throw when calling an unlocked entity from within critical section", async () => { + // Arrange + const registry = new Registry(); + let errorThrown: Error | null = null; + const orchestratorStartTime = new Date(); + + registry.addOrchestrator(async function* testOrchestration(ctx: any) { + const entityA = new EntityInstanceId("counter", "a"); + const entityB = new EntityInstanceId("counter", "b"); // Not locked + const lock: LockHandle = yield ctx.entities.lockEntities(entityA); + + try { + // This should throw - entityB is not in the lock set + yield ctx.entities.callEntity(entityB, "get"); + } catch (e) { + errorThrown = e as Error; + } + + lock.release(); + return "done"; + }); + + const executor = new OrchestrationExecutor(registry); + + // First execution - request lock + const newEvents1 = [ + createOrchestratorStartedEvent(orchestratorStartTime), + createExecutionStartedEvent("testOrchestration"), + ]; + const result1 = await executor.execute("test-instance", [], newEvents1); + + // Find the critical section ID and action ID from the lock request + const lockAction = result1.actions.find((a) => a.getSendentitymessage()?.hasEntitylockrequested()); + const lockRequest = lockAction!.getSendentitymessage()!.getEntitylockrequested()!; + const criticalSectionId = lockRequest.getCriticalsectionid(); + const actionId = lockAction!.getId(); + const lockSet = lockRequest.getLocksetList(); + + // Second execution - lock granted (use same timestamp for determinism) + const executor2 = new OrchestrationExecutor(registry); + const oldEvents = [ + createOrchestratorStartedEvent(orchestratorStartTime), + createExecutionStartedEvent("testOrchestration"), + createEntityLockRequestedEvent(actionId, criticalSectionId, lockSet), + ]; + const newEvents2 = [ + createOrchestratorStartedEvent(), + createEntityLockGrantedEvent(criticalSectionId), + ]; + + // Act + await executor2.execute("test-instance", oldEvents, newEvents2); + + // Assert + expect(errorThrown).not.toBeNull(); + expect(errorThrown!.message).toContain("if it is not one of the locked entities"); + }); + + it("should throw when calling entity before lock is granted", async () => { + // Arrange + const registry = new Registry(); + let errorThrown: Error | null = null; + + registry.addOrchestrator(async function* testOrchestration(ctx: any) { + const entityA = new EntityInstanceId("counter", "a"); + + // Get the lock task but don't yield it yet + const lockTask = ctx.entities.lockEntities(entityA); + + try { + // This should throw - lock not yet granted + ctx.entities.callEntity(entityA, "get"); + } catch (e) { + errorThrown = e as Error; + } + + // Now yield the lock task + yield lockTask; + return "done"; + }); + + const executor = new OrchestrationExecutor(registry); + + // Act - First execution starts the orchestrator + const newEvents1 = [ + createOrchestratorStartedEvent(), + createExecutionStartedEvent("testOrchestration"), + ]; + await executor.execute("test-instance", [], newEvents1); + + // Assert - Error should have been thrown synchronously before yield + expect(errorThrown).not.toBeNull(); + expect(errorThrown!.message).toContain("Must await the completion of the lock request prior to calling any entity"); + }); + }); +}); diff --git a/packages/durabletask-js/test/entity-metadata.spec.ts b/packages/durabletask-js/test/entity-metadata.spec.ts new file mode 100644 index 0000000..dd76665 --- /dev/null +++ b/packages/durabletask-js/test/entity-metadata.spec.ts @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { EntityInstanceId } from "../src/entities/entity-instance-id"; +import { + EntityMetadata, + createEntityMetadata, + createEntityMetadataWithoutState, +} from "../src/entities/entity-metadata"; + +describe("EntityMetadata", () => { + describe("createEntityMetadata", () => { + it("should create metadata with state", () => { + const id = new EntityInstanceId("counter", "user-123"); + const lastModified = new Date("2026-01-26T10:00:00Z"); + const state = { count: 42 }; + + const metadata = createEntityMetadata(id, lastModified, 5, "orchestration-1", state); + + expect(metadata.id.equals(id)).toBe(true); + expect(metadata.lastModifiedTime).toBe(lastModified); + expect(metadata.backlogQueueSize).toBe(5); + expect(metadata.lockedBy).toBe("orchestration-1"); + expect(metadata.includesState).toBe(true); + expect(metadata.state).toEqual({ count: 42 }); + }); + + it("should create metadata with primitive state", () => { + const id = new EntityInstanceId("counter", "user-123"); + const metadata = createEntityMetadata(id, new Date(), 0, undefined, 100); + + expect(metadata.includesState).toBe(true); + expect(metadata.state).toBe(100); + }); + + it("should create metadata with null-ish state as not including state", () => { + const id = new EntityInstanceId("counter", "user-123"); + const metadata = createEntityMetadata(id, new Date(), 0, undefined, undefined); + + expect(metadata.includesState).toBe(false); + }); + + it("should allow undefined lockedBy", () => { + const id = new EntityInstanceId("counter", "user-123"); + const metadata = createEntityMetadata(id, new Date(), 0, undefined, "state"); + + expect(metadata.lockedBy).toBeUndefined(); + }); + }); + + describe("createEntityMetadataWithoutState", () => { + it("should create metadata without state", () => { + const id = new EntityInstanceId("counter", "user-123"); + const lastModified = new Date("2026-01-26T10:00:00Z"); + + const metadata = createEntityMetadataWithoutState(id, lastModified, 3, "orch-1"); + + expect(metadata.id.equals(id)).toBe(true); + expect(metadata.lastModifiedTime).toBe(lastModified); + expect(metadata.backlogQueueSize).toBe(3); + expect(metadata.lockedBy).toBe("orch-1"); + expect(metadata.includesState).toBe(false); + }); + + it("should throw when accessing state", () => { + const id = new EntityInstanceId("counter", "user-123"); + const metadata = createEntityMetadataWithoutState(id, new Date(), 0, undefined); + + expect(() => metadata.state).toThrow("Cannot retrieve state when includesState is false"); + }); + }); + + describe("type safety", () => { + it("should work with typed state", () => { + interface CounterState { + value: number; + lastUpdated: string; + } + + const id = new EntityInstanceId("counter", "user-123"); + const state: CounterState = { value: 42, lastUpdated: "2026-01-26" }; + const metadata: EntityMetadata = createEntityMetadata( + id, + new Date(), + 0, + undefined, + state + ); + + expect(metadata.state?.value).toBe(42); + expect(metadata.state?.lastUpdated).toBe("2026-01-26"); + }); + + it("should work with array state", () => { + const id = new EntityInstanceId("list", "items"); + const state = [1, 2, 3, 4, 5]; + const metadata = createEntityMetadata(id, new Date(), 0, undefined, state); + + expect(metadata.state).toEqual([1, 2, 3, 4, 5]); + }); + }); +}); diff --git a/packages/durabletask-js/test/entity-operation-events.spec.ts b/packages/durabletask-js/test/entity-operation-events.spec.ts new file mode 100644 index 0000000..2766dd0 --- /dev/null +++ b/packages/durabletask-js/test/entity-operation-events.spec.ts @@ -0,0 +1,330 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { OrchestrationExecutor } from "../src/worker/orchestration-executor"; +import { Registry } from "../src/worker/registry"; +import { OrchestrationContext } from "../src/task/context/orchestration-context"; +import { EntityInstanceId } from "../src/entities/entity-instance-id"; +import * as pb from "../src/proto/orchestrator_service_pb"; +import * as ph from "../src/utils/pb-helper.util"; +import { StringValue } from "google-protobuf/google/protobuf/wrappers_pb"; +import { Task } from "../src/task/task"; + +/** + * Creates a new EntityOperationCompletedEvent history event. + */ +function newEntityOperationCompletedEvent( + eventId: number, + requestId: string, + output?: string, +): pb.HistoryEvent { + const completedEvent = new pb.EntityOperationCompletedEvent(); + completedEvent.setRequestid(requestId); + + if (output !== undefined) { + const outputValue = new StringValue(); + outputValue.setValue(output); + completedEvent.setOutput(outputValue); + } + + const event = new pb.HistoryEvent(); + event.setEventid(eventId); + event.setEntityoperationcompleted(completedEvent); + + return event; +} + +/** + * Creates a new EntityOperationFailedEvent history event. + */ +function newEntityOperationFailedEvent( + eventId: number, + requestId: string, + errorType: string, + errorMessage: string, +): pb.HistoryEvent { + const failureDetails = new pb.TaskFailureDetails(); + failureDetails.setErrortype(errorType); + failureDetails.setErrormessage(errorMessage); + + const failedEvent = new pb.EntityOperationFailedEvent(); + failedEvent.setRequestid(requestId); + failedEvent.setFailuredetails(failureDetails); + + const event = new pb.HistoryEvent(); + event.setEventid(eventId); + event.setEntityoperationfailed(failedEvent); + + return event; +} + +describe("OrchestrationExecutor Entity Operation Events", () => { + let registry: Registry; + + beforeEach(() => { + registry = new Registry(); + }); + + describe("ENTITYOPERATIONCOMPLETED", () => { + it("should complete entity call task with result", async () => { + // Arrange + let callResult: number | undefined; + const orchestrator = async function* (ctx: OrchestrationContext): AsyncGenerator, number, number> { + const entityId = new EntityInstanceId("counter", "my-counter"); + const result: number = yield ctx.entities.callEntity(entityId, "get"); + callResult = result; + return result; + }; + + registry.addNamedOrchestrator("TestOrchestrator", orchestrator); + + const executor = new OrchestrationExecutor(registry); + + // Create the initial events + const oldEvents: pb.HistoryEvent[] = []; + const newEvents: pb.HistoryEvent[] = [ + ph.newOrchestratorStartedEvent(new Date()), + ph.newExecutionStartedEvent("TestOrchestrator", "test-instance", undefined), + ]; + + // First execution - should create the callEntity action + const result1 = await executor.execute("test-instance", oldEvents, newEvents); + + // Verify the action was created + expect(result1.actions.length).toBe(1); + const action = result1.actions[0]; + expect(action.hasSendentitymessage()).toBe(true); + expect(action.getSendentitymessage()!.hasEntityoperationcalled()).toBe(true); + + const callEvent = action.getSendentitymessage()!.getEntityoperationcalled()!; + const requestId = callEvent.getRequestid(); + + // Second execution - with the completed event + const oldEvents2 = [...newEvents]; + const newEvents2 = [ + ph.newOrchestratorStartedEvent(new Date()), + newEntityOperationCompletedEvent(100, requestId, "42"), + ]; + + const result2 = await executor.execute("test-instance", oldEvents2, newEvents2); + + // Assert + expect(callResult).toBe(42); + // Note: actions include previously-scheduled entity call (idempotent, has sequence number) + const completeAction = result2.actions.find((a) => a.hasCompleteorchestration()); + expect(completeAction).toBeDefined(); + }); + + it("should handle null result", async () => { + // Arrange + let callResult: unknown = "not-set"; + const orchestrator = async function* (ctx: OrchestrationContext): AsyncGenerator, string, unknown> { + const entityId = new EntityInstanceId("counter", "my-counter"); + const result: unknown = yield ctx.entities.callEntity(entityId, "reset"); + callResult = result; + return "done"; + }; + + registry.addNamedOrchestrator("TestOrchestrator", orchestrator); + + const executor = new OrchestrationExecutor(registry); + + const oldEvents: pb.HistoryEvent[] = []; + const newEvents: pb.HistoryEvent[] = [ + ph.newOrchestratorStartedEvent(new Date()), + ph.newExecutionStartedEvent("TestOrchestrator", "test-instance", undefined), + ]; + + const result1 = await executor.execute("test-instance", oldEvents, newEvents); + const requestId = result1.actions[0].getSendentitymessage()!.getEntityoperationcalled()!.getRequestid(); + + // Complete with no output (null) + const oldEvents2 = [...newEvents]; + const newEvents2 = [ + ph.newOrchestratorStartedEvent(new Date()), + newEntityOperationCompletedEvent(100, requestId, undefined), + ]; + + await executor.execute("test-instance", oldEvents2, newEvents2); + + // Assert + expect(callResult).toBeUndefined(); + }); + + it("should handle complex object result", async () => { + // Arrange + let callResult: unknown; + type Profile = { name: string; age: number }; + const orchestrator = async function* (ctx: OrchestrationContext): AsyncGenerator, Profile, Profile> { + const entityId = new EntityInstanceId("user", "user-123"); + const result: Profile = yield ctx.entities.callEntity(entityId, "getProfile"); + callResult = result; + return result; + }; + + registry.addNamedOrchestrator("TestOrchestrator", orchestrator); + + const executor = new OrchestrationExecutor(registry); + + const oldEvents: pb.HistoryEvent[] = []; + const newEvents: pb.HistoryEvent[] = [ + ph.newOrchestratorStartedEvent(new Date()), + ph.newExecutionStartedEvent("TestOrchestrator", "test-instance", undefined), + ]; + + const result1 = await executor.execute("test-instance", oldEvents, newEvents); + const requestId = result1.actions[0].getSendentitymessage()!.getEntityoperationcalled()!.getRequestid(); + + const resultObject = { name: "John", age: 30 }; + const oldEvents2 = [...newEvents]; + const newEvents2 = [ + ph.newOrchestratorStartedEvent(new Date()), + newEntityOperationCompletedEvent(100, requestId, JSON.stringify(resultObject)), + ]; + + await executor.execute("test-instance", oldEvents2, newEvents2); + + // Assert + expect(callResult).toEqual(resultObject); + }); + }); + + describe("ENTITYOPERATIONFAILED", () => { + it("should fail entity call task with error details", async () => { + // Arrange + let caughtError: Error | undefined; + const orchestrator = async function* (ctx: OrchestrationContext): AsyncGenerator, string, number> { + const entityId = new EntityInstanceId("counter", "my-counter"); + try { + yield ctx.entities.callEntity(entityId, "badOperation"); + } catch (e) { + caughtError = e as Error; + } + return "handled"; + }; + + registry.addNamedOrchestrator("TestOrchestrator", orchestrator); + + const executor = new OrchestrationExecutor(registry); + + const oldEvents: pb.HistoryEvent[] = []; + const newEvents: pb.HistoryEvent[] = [ + ph.newOrchestratorStartedEvent(new Date()), + ph.newExecutionStartedEvent("TestOrchestrator", "test-instance", undefined), + ]; + + const result1 = await executor.execute("test-instance", oldEvents, newEvents); + const requestId = result1.actions[0].getSendentitymessage()!.getEntityoperationcalled()!.getRequestid(); + + // Fail the operation + const oldEvents2 = [...newEvents]; + const newEvents2 = [ + ph.newOrchestratorStartedEvent(new Date()), + newEntityOperationFailedEvent(100, requestId, "InvalidOperationError", "Operation not supported"), + ]; + + await executor.execute("test-instance", oldEvents2, newEvents2); + + // Assert + expect(caughtError).toBeDefined(); + expect(caughtError!.message).toContain("badOperation"); + expect(caughtError!.message).toContain("Operation not supported"); + }); + + it("should propagate failure to orchestration if not caught", async () => { + // Arrange + const orchestrator = async function* (ctx: OrchestrationContext): AsyncGenerator, string, number> { + const entityId = new EntityInstanceId("counter", "my-counter"); + yield ctx.entities.callEntity(entityId, "badOperation"); + return "should not reach here"; + }; + + registry.addNamedOrchestrator("TestOrchestrator", orchestrator); + + const executor = new OrchestrationExecutor(registry); + + const oldEvents: pb.HistoryEvent[] = []; + const newEvents: pb.HistoryEvent[] = [ + ph.newOrchestratorStartedEvent(new Date()), + ph.newExecutionStartedEvent("TestOrchestrator", "test-instance", undefined), + ]; + + const result1 = await executor.execute("test-instance", oldEvents, newEvents); + const requestId = result1.actions[0].getSendentitymessage()!.getEntityoperationcalled()!.getRequestid(); + + // Fail the operation + const oldEvents2 = [...newEvents]; + const newEvents2 = [ + ph.newOrchestratorStartedEvent(new Date()), + newEntityOperationFailedEvent(100, requestId, "Error", "Something went wrong"), + ]; + + const result2 = await executor.execute("test-instance", oldEvents2, newEvents2); + + // Assert - orchestration should fail + // Note: actions include previously-scheduled entity call (idempotent, has sequence number) + const completeActionWrapper = result2.actions.find((a) => a.hasCompleteorchestration()); + expect(completeActionWrapper).toBeDefined(); + const completeAction = completeActionWrapper!.getCompleteorchestration()!; + expect(completeAction.getOrchestrationstatus()).toBe(pb.OrchestrationStatus.ORCHESTRATION_STATUS_FAILED); + }); + }); + + describe("Multiple entity calls", () => { + it("should handle multiple concurrent entity calls", async () => { + // Arrange + let orchResult1: number | undefined; + let orchResult2: number | undefined; + const orchestrator = async function* (ctx: OrchestrationContext): AsyncGenerator, number, number> { + const counter1 = new EntityInstanceId("counter", "counter-1"); + const counter2 = new EntityInstanceId("counter", "counter-2"); + + // Start both calls + const task1 = ctx.entities.callEntity(counter1, "get"); + const task2 = ctx.entities.callEntity(counter2, "get"); + + // Wait for first + orchResult1 = yield task1; + // Wait for second + orchResult2 = yield task2; + + return (orchResult1 ?? 0) + (orchResult2 ?? 0); + }; + + registry.addNamedOrchestrator("TestOrchestrator", orchestrator); + + const executor = new OrchestrationExecutor(registry); + + const oldEvents: pb.HistoryEvent[] = []; + const newEvents: pb.HistoryEvent[] = [ + ph.newOrchestratorStartedEvent(new Date()), + ph.newExecutionStartedEvent("TestOrchestrator", "test-instance", undefined), + ]; + + const execResult1 = await executor.execute("test-instance", oldEvents, newEvents); + + // Verify two actions were created + expect(execResult1.actions.length).toBe(2); + const requestId1 = execResult1.actions[0].getSendentitymessage()!.getEntityoperationcalled()!.getRequestid(); + const requestId2 = execResult1.actions[1].getSendentitymessage()!.getEntityoperationcalled()!.getRequestid(); + + // Complete both calls + const oldEvents2 = [...newEvents]; + const newEvents2 = [ + ph.newOrchestratorStartedEvent(new Date()), + newEntityOperationCompletedEvent(100, requestId1, "10"), + newEntityOperationCompletedEvent(101, requestId2, "20"), + ]; + + const execResult2 = await executor.execute("test-instance", oldEvents2, newEvents2); + + // Assert + expect(orchResult1).toBe(10); + expect(orchResult2).toBe(20); + // Note: actions include previously-scheduled entity calls (idempotent, have sequence numbers) + const completeAction = execResult2.actions.find((a) => a.hasCompleteorchestration()); + expect(completeAction).toBeDefined(); + expect(completeAction!.getCompleteorchestration()!.getResult()?.getValue()).toBe("30"); + }); + }); +}); diff --git a/packages/durabletask-js/test/entity-operation-failed-exception.spec.ts b/packages/durabletask-js/test/entity-operation-failed-exception.spec.ts new file mode 100644 index 0000000..9721df9 --- /dev/null +++ b/packages/durabletask-js/test/entity-operation-failed-exception.spec.ts @@ -0,0 +1,173 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { EntityInstanceId } from "../src/entities/entity-instance-id"; +import { + EntityOperationFailedException, + TaskFailureDetails, + createTaskFailureDetails, +} from "../src/entities/entity-operation-failed-exception"; +import * as pb from "../src/proto/orchestrator_service_pb"; +import { StringValue } from "google-protobuf/google/protobuf/wrappers_pb"; + +describe("EntityOperationFailedException", () => { + describe("constructor", () => { + it("should create exception with correct properties", () => { + // Arrange + const entityId = new EntityInstanceId("counter", "my-counter"); + const operationName = "increment"; + const failureDetails: TaskFailureDetails = { + errorType: "InvalidOperationError", + errorMessage: "Counter cannot be negative", + }; + + // Act + const exception = new EntityOperationFailedException(entityId, operationName, failureDetails); + + // Assert + expect(exception.entityId).toBe(entityId); + expect(exception.operationName).toBe(operationName); + expect(exception.failureDetails).toBe(failureDetails); + expect(exception.name).toBe("EntityOperationFailedException"); + }); + + it("should format message correctly", () => { + // Arrange + const entityId = new EntityInstanceId("user", "user-123"); + const operationName = "updateProfile"; + const failureDetails: TaskFailureDetails = { + errorType: "ValidationError", + errorMessage: "Invalid email format", + }; + + // Act + const exception = new EntityOperationFailedException(entityId, operationName, failureDetails); + + // Assert + expect(exception.message).toBe( + "Operation 'updateProfile' of entity '@user@user-123' failed: Invalid email format", + ); + }); + + it("should be instanceof Error", () => { + // Arrange + const entityId = new EntityInstanceId("counter", "my-counter"); + const failureDetails: TaskFailureDetails = { + errorType: "Error", + errorMessage: "Something went wrong", + }; + + // Act + const exception = new EntityOperationFailedException(entityId, "op", failureDetails); + + // Assert + expect(exception instanceof Error).toBe(true); + expect(exception instanceof EntityOperationFailedException).toBe(true); + }); + + it("should include stack trace", () => { + // Arrange + const entityId = new EntityInstanceId("counter", "my-counter"); + const failureDetails: TaskFailureDetails = { + errorType: "Error", + errorMessage: "Error", + stackTrace: "at SomeClass.method()\n at AnotherClass.call()", + }; + + // Act + const exception = new EntityOperationFailedException(entityId, "op", failureDetails); + + // Assert + expect(exception.failureDetails.stackTrace).toBeDefined(); + expect(exception.failureDetails.stackTrace).toContain("SomeClass.method"); + }); + + it("should include inner failure", () => { + // Arrange + const entityId = new EntityInstanceId("counter", "my-counter"); + const innerFailure: TaskFailureDetails = { + errorType: "InnerError", + errorMessage: "Inner cause", + }; + const failureDetails: TaskFailureDetails = { + errorType: "OuterError", + errorMessage: "Outer error", + innerFailure, + }; + + // Act + const exception = new EntityOperationFailedException(entityId, "op", failureDetails); + + // Assert + expect(exception.failureDetails.innerFailure).toBeDefined(); + expect(exception.failureDetails.innerFailure!.errorType).toBe("InnerError"); + }); + }); +}); + +describe("createTaskFailureDetails", () => { + it("should return undefined for undefined input", () => { + // Act + const result = createTaskFailureDetails(undefined); + + // Assert + expect(result).toBeUndefined(); + }); + + it("should convert protobuf TaskFailureDetails", () => { + // Arrange + const proto = new pb.TaskFailureDetails(); + proto.setErrortype("TestError"); + proto.setErrormessage("Test message"); + + const stackTrace = new StringValue(); + stackTrace.setValue("Stack trace here"); + proto.setStacktrace(stackTrace); + + // Act + const result = createTaskFailureDetails(proto); + + // Assert + expect(result).toBeDefined(); + expect(result!.errorType).toBe("TestError"); + expect(result!.errorMessage).toBe("Test message"); + expect(result!.stackTrace).toBe("Stack trace here"); + }); + + it("should handle nested inner failure", () => { + // Arrange + const innerProto = new pb.TaskFailureDetails(); + innerProto.setErrortype("InnerError"); + innerProto.setErrormessage("Inner message"); + + const proto = new pb.TaskFailureDetails(); + proto.setErrortype("OuterError"); + proto.setErrormessage("Outer message"); + proto.setInnerfailure(innerProto); + + // Act + const result = createTaskFailureDetails(proto); + + // Assert + expect(result).toBeDefined(); + expect(result!.innerFailure).toBeDefined(); + expect(result!.innerFailure!.errorType).toBe("InnerError"); + expect(result!.innerFailure!.errorMessage).toBe("Inner message"); + }); + + it("should handle missing optional fields", () => { + // Arrange + const proto = new pb.TaskFailureDetails(); + proto.setErrortype("Error"); + proto.setErrormessage("Message"); + // No stack trace or inner failure + + // Act + const result = createTaskFailureDetails(proto); + + // Assert + expect(result).toBeDefined(); + expect(result!.stackTrace).toBeUndefined(); + expect(result!.innerFailure).toBeUndefined(); + }); +}); diff --git a/packages/durabletask-js/test/entity-query.spec.ts b/packages/durabletask-js/test/entity-query.spec.ts new file mode 100644 index 0000000..cbc0c34 --- /dev/null +++ b/packages/durabletask-js/test/entity-query.spec.ts @@ -0,0 +1,139 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { + EntityQuery, + normalizeInstanceIdPrefix, + createEntityQuery, +} from "../src/entities/entity-query"; + +describe("EntityQuery", () => { + describe("normalizeInstanceIdPrefix", () => { + it("should return undefined for undefined input", () => { + expect(normalizeInstanceIdPrefix(undefined)).toBeUndefined(); + }); + + it("should return undefined for null input", () => { + expect(normalizeInstanceIdPrefix(null)).toBeUndefined(); + }); + + it("should prefix @ and lowercase for simple name", () => { + expect(normalizeInstanceIdPrefix("Counter")).toBe("@counter"); + }); + + it("should lowercase when @ already present", () => { + expect(normalizeInstanceIdPrefix("@Counter")).toBe("@counter"); + }); + + it("should handle empty string", () => { + expect(normalizeInstanceIdPrefix("")).toBe("@"); + }); + + it("should lowercase name portion only when key separator present", () => { + // "Counter@" means exact name match "counter" with any key + expect(normalizeInstanceIdPrefix("Counter@")).toBe("@counter@"); + }); + + it("should preserve key case when key prefix provided", () => { + // "Counter@User-123" means name "counter" with key starting with "User-123" + expect(normalizeInstanceIdPrefix("Counter@User-123")).toBe("@counter@User-123"); + }); + + it("should preserve key case with @ prefix", () => { + expect(normalizeInstanceIdPrefix("@Counter@User-123")).toBe("@counter@User-123"); + }); + + it("should handle complex key with special characters", () => { + expect(normalizeInstanceIdPrefix("Entity@Key/With:Special@Chars")).toBe( + "@entity@Key/With:Special@Chars" + ); + }); + + it("should handle already lowercase name", () => { + expect(normalizeInstanceIdPrefix("counter")).toBe("@counter"); + }); + + it("should handle mixed case in key", () => { + expect(normalizeInstanceIdPrefix("COUNTER@MyKey")).toBe("@counter@MyKey"); + }); + }); + + describe("createEntityQuery", () => { + it("should normalize instanceIdStartsWith", () => { + const query: EntityQuery = { + instanceIdStartsWith: "Counter@User", + includeState: true, + }; + + const normalized = createEntityQuery(query); + + expect(normalized.instanceIdStartsWith).toBe("@counter@User"); + expect(normalized.includeState).toBe(true); + }); + + it("should preserve other properties", () => { + const lastModifiedFrom = new Date("2026-01-01"); + const lastModifiedTo = new Date("2026-01-31"); + + const query: EntityQuery = { + instanceIdStartsWith: "Counter", + lastModifiedFrom, + lastModifiedTo, + includeState: false, + includeTransient: true, + pageSize: 50, + continuationToken: "token123", + }; + + const normalized = createEntityQuery(query); + + expect(normalized.instanceIdStartsWith).toBe("@counter"); + expect(normalized.lastModifiedFrom).toBe(lastModifiedFrom); + expect(normalized.lastModifiedTo).toBe(lastModifiedTo); + expect(normalized.includeState).toBe(false); + expect(normalized.includeTransient).toBe(true); + expect(normalized.pageSize).toBe(50); + expect(normalized.continuationToken).toBe("token123"); + }); + + it("should handle undefined instanceIdStartsWith", () => { + const query: EntityQuery = { + includeState: true, + }; + + const normalized = createEntityQuery(query); + + expect(normalized.instanceIdStartsWith).toBeUndefined(); + }); + + it("should handle empty query", () => { + const query: EntityQuery = {}; + const normalized = createEntityQuery(query); + + expect(normalized).toEqual({}); + }); + }); + + describe("interface usage", () => { + it("should allow minimal query", () => { + const query: EntityQuery = {}; + expect(query.instanceIdStartsWith).toBeUndefined(); + expect(query.includeState).toBeUndefined(); + }); + + it("should allow full query", () => { + const query: EntityQuery = { + instanceIdStartsWith: "@counter@", + lastModifiedFrom: new Date("2026-01-01"), + lastModifiedTo: new Date("2026-12-31"), + includeState: true, + includeTransient: false, + pageSize: 100, + continuationToken: "abc123", + }; + + expect(query.instanceIdStartsWith).toBe("@counter@"); + expect(query.pageSize).toBe(100); + }); + }); +}); diff --git a/packages/durabletask-js/test/orchestration-entity-feature.spec.ts b/packages/durabletask-js/test/orchestration-entity-feature.spec.ts new file mode 100644 index 0000000..9219fba --- /dev/null +++ b/packages/durabletask-js/test/orchestration-entity-feature.spec.ts @@ -0,0 +1,320 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { RuntimeOrchestrationContext } from "../src/worker/runtime-orchestration-context"; +import { EntityInstanceId } from "../src/entities/entity-instance-id"; + +describe("RuntimeOrchestrationContext", () => { + describe("entities property", () => { + it("should return an entity feature", () => { + // Arrange + const ctx = new RuntimeOrchestrationContext("test-instance"); + + // Act + const entities = ctx.entities; + + // Assert + expect(entities).toBeDefined(); + expect(typeof entities.signalEntity).toBe("function"); + }); + }); + + describe("signalEntity", () => { + it("should create a SendEntityMessageAction with signaled event", () => { + // Arrange + const ctx = new RuntimeOrchestrationContext("test-instance"); + const entityId = new EntityInstanceId("counter", "my-counter"); + + // Act + ctx.entities.signalEntity(entityId, "increment", 5); + + // Assert + const actions = Object.values(ctx._pendingActions); + expect(actions.length).toBe(1); + + const action = actions[0]; + expect(action.getId()).toBe(1); + expect(action.hasSendentitymessage()).toBe(true); + + const sendEntityMessage = action.getSendentitymessage()!; + expect(sendEntityMessage.hasEntityoperationsignaled()).toBe(true); + + const signalEvent = sendEntityMessage.getEntityoperationsignaled()!; + expect(signalEvent.getOperation()).toBe("increment"); + expect(signalEvent.getInput()?.getValue()).toBe("5"); + expect(signalEvent.getTargetinstanceid()?.getValue()).toBe("@counter@my-counter"); + expect(signalEvent.getRequestid()).toBeDefined(); + }); + + it("should handle signal without input", () => { + // Arrange + const ctx = new RuntimeOrchestrationContext("test-instance"); + const entityId = new EntityInstanceId("counter", "my-counter"); + + // Act + ctx.entities.signalEntity(entityId, "reset"); + + // Assert + const actions = Object.values(ctx._pendingActions); + expect(actions.length).toBe(1); + + const sendEntityMessage = actions[0].getSendentitymessage()!; + const signalEvent = sendEntityMessage.getEntityoperationsignaled()!; + expect(signalEvent.getOperation()).toBe("reset"); + expect(signalEvent.getInput()).toBeUndefined(); + }); + + it("should handle complex object input", () => { + // Arrange + const ctx = new RuntimeOrchestrationContext("test-instance"); + const entityId = new EntityInstanceId("user", "user123"); + const input = { name: "John", age: 30, active: true }; + + // Act + ctx.entities.signalEntity(entityId, "updateProfile", input); + + // Assert + const actions = Object.values(ctx._pendingActions); + const signalEvent = actions[0].getSendentitymessage()!.getEntityoperationsignaled()!; + expect(signalEvent.getInput()?.getValue()).toBe(JSON.stringify(input)); + }); + + it("should set scheduled time when provided", () => { + // Arrange + const ctx = new RuntimeOrchestrationContext("test-instance"); + const entityId = new EntityInstanceId("counter", "my-counter"); + const scheduledTime = new Date("2026-01-27T12:00:00Z"); + + // Act + ctx.entities.signalEntity(entityId, "increment", 1, { signalTime: scheduledTime }); + + // Assert + const actions = Object.values(ctx._pendingActions); + const signalEvent = actions[0].getSendentitymessage()!.getEntityoperationsignaled()!; + expect(signalEvent.hasScheduledtime()).toBe(true); + const protoTime = signalEvent.getScheduledtime()!; + expect(protoTime.toDate().toISOString()).toBe(scheduledTime.toISOString()); + }); + + it("should generate unique request IDs for multiple signals", () => { + // Arrange + const ctx = new RuntimeOrchestrationContext("test-instance"); + const entityId = new EntityInstanceId("counter", "my-counter"); + + // Act + ctx.entities.signalEntity(entityId, "increment", 1); + ctx.entities.signalEntity(entityId, "increment", 2); + ctx.entities.signalEntity(entityId, "increment", 3); + + // Assert + const actions = Object.values(ctx._pendingActions); + expect(actions.length).toBe(3); + + const requestIds = actions.map((a) => + a.getSendentitymessage()!.getEntityoperationsignaled()!.getRequestid(), + ); + + // All request IDs should be unique + const uniqueIds = new Set(requestIds); + expect(uniqueIds.size).toBe(3); + }); + + it("should use unique sequence numbers for action IDs", () => { + // Arrange + const ctx = new RuntimeOrchestrationContext("test-instance"); + const entityId = new EntityInstanceId("counter", "my-counter"); + + // Act + ctx.entities.signalEntity(entityId, "op1"); + ctx.entities.signalEntity(entityId, "op2"); + + // Assert + const actions = Object.values(ctx._pendingActions); + // Each signal uses one sequence number for the action ID + // Request GUIDs use a separate counter (_newGuidCounter), not sequence numbers + expect(actions[0].getId()).toBe(1); + expect(actions[1].getId()).toBe(2); + // All action IDs should be unique + const ids = actions.map((a) => a.getId()); + expect(new Set(ids).size).toBe(ids.length); + }); + + it("should signal different entities", () => { + // Arrange + const ctx = new RuntimeOrchestrationContext("test-instance"); + const counter1 = new EntityInstanceId("counter", "counter-1"); + const counter2 = new EntityInstanceId("counter", "counter-2"); + const user = new EntityInstanceId("user", "user-123"); + + // Act + ctx.entities.signalEntity(counter1, "increment", 1); + ctx.entities.signalEntity(counter2, "increment", 2); + ctx.entities.signalEntity(user, "setName", "John"); + + // Assert + const actions = Object.values(ctx._pendingActions); + expect(actions.length).toBe(3); + + const targetIds = actions.map((a) => + a.getSendentitymessage()!.getEntityoperationsignaled()!.getTargetinstanceid()?.getValue(), + ); + + expect(targetIds).toContain("@counter@counter-1"); + expect(targetIds).toContain("@counter@counter-2"); + expect(targetIds).toContain("@user@user-123"); + }); + }); + + describe("newGuid", () => { + it("should generate deterministic GUIDs based on sequence", () => { + // Arrange + const ctx = new RuntimeOrchestrationContext("my-orchestration"); + + // Act + const guid1 = ctx.newGuid(); + const guid2 = ctx.newGuid(); + const guid3 = ctx.newGuid(); + + // Assert - Should be valid UUIDs (UUID v5 format) + const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-5[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i; + expect(guid1).toMatch(uuidRegex); + expect(guid2).toMatch(uuidRegex); + expect(guid3).toMatch(uuidRegex); + + // Each GUID should be unique + expect(guid1).not.toBe(guid2); + expect(guid2).not.toBe(guid3); + }); + + it("should be replayable - same sequence produces same GUIDs", () => { + // Arrange + const ctx1 = new RuntimeOrchestrationContext("replay-test"); + const ctx2 = new RuntimeOrchestrationContext("replay-test"); + + // Act + const guids1 = [ctx1.newGuid(), ctx1.newGuid()]; + const guids2 = [ctx2.newGuid(), ctx2.newGuid()]; + + // Assert + expect(guids1).toEqual(guids2); + }); + }); + + describe("callEntity", () => { + it("should create a SendEntityMessageAction with called event", () => { + // Arrange + const ctx = new RuntimeOrchestrationContext("test-instance"); + const entityId = new EntityInstanceId("counter", "my-counter"); + + // Act + const task = ctx.entities.callEntity(entityId, "get"); + + // Assert + expect(task).toBeDefined(); + const actions = Object.values(ctx._pendingActions); + expect(actions.length).toBe(1); + + const action = actions[0]; + expect(action.getId()).toBe(1); + expect(action.hasSendentitymessage()).toBe(true); + + const sendEntityMessage = action.getSendentitymessage()!; + expect(sendEntityMessage.hasEntityoperationcalled()).toBe(true); + + const callEvent = sendEntityMessage.getEntityoperationcalled()!; + expect(callEvent.getOperation()).toBe("get"); + expect(callEvent.getTargetinstanceid()?.getValue()).toBe("@counter@my-counter"); + expect(callEvent.getParentinstanceid()?.getValue()).toBe("test-instance"); + expect(callEvent.getRequestid()).toBeDefined(); + }); + + it("should include input when provided", () => { + // Arrange + const ctx = new RuntimeOrchestrationContext("test-instance"); + const entityId = new EntityInstanceId("counter", "my-counter"); + + // Act + ctx.entities.callEntity(entityId, "add", 42); + + // Assert + const actions = Object.values(ctx._pendingActions); + const callEvent = actions[0].getSendentitymessage()!.getEntityoperationcalled()!; + expect(callEvent.getInput()?.getValue()).toBe("42"); + }); + + it("should handle complex object input", () => { + // Arrange + const ctx = new RuntimeOrchestrationContext("test-instance"); + const entityId = new EntityInstanceId("user", "user123"); + const input = { name: "John", age: 30 }; + + // Act + ctx.entities.callEntity(entityId, "update", input); + + // Assert + const actions = Object.values(ctx._pendingActions); + const callEvent = actions[0].getSendentitymessage()!.getEntityoperationcalled()!; + expect(callEvent.getInput()?.getValue()).toBe(JSON.stringify(input)); + }); + + it("should return an incomplete task", () => { + // Arrange + const ctx = new RuntimeOrchestrationContext("test-instance"); + const entityId = new EntityInstanceId("counter", "my-counter"); + + // Act + const task = ctx.entities.callEntity(entityId, "get"); + + // Assert + expect(task.isComplete).toBe(false); + expect(task.isFailed).toBe(false); + }); + + it("should track pending entity calls by requestId", () => { + // Arrange + const ctx = new RuntimeOrchestrationContext("test-instance"); + const entityId = new EntityInstanceId("counter", "my-counter"); + + // Act + ctx.entities.callEntity(entityId, "get"); + + // Assert + expect(ctx._entityFeature.pendingEntityCalls.size).toBe(1); + const [requestId, callInfo] = [...ctx._entityFeature.pendingEntityCalls.entries()][0]; + expect(requestId).toBeDefined(); + expect(callInfo.entityId).toBe(entityId); + expect(callInfo.operationName).toBe("get"); + expect(callInfo.task).toBeDefined(); + }); + + it("should generate unique request IDs for multiple calls", () => { + // Arrange + const ctx = new RuntimeOrchestrationContext("test-instance"); + const entityId = new EntityInstanceId("counter", "my-counter"); + + // Act + ctx.entities.callEntity(entityId, "get"); + ctx.entities.callEntity(entityId, "get"); + ctx.entities.callEntity(entityId, "get"); + + // Assert + expect(ctx._entityFeature.pendingEntityCalls.size).toBe(3); + const requestIds = [...ctx._entityFeature.pendingEntityCalls.keys()]; + expect(new Set(requestIds).size).toBe(3); + }); + + it("should not set scheduled time (not supported for calls)", () => { + // Arrange + const ctx = new RuntimeOrchestrationContext("test-instance"); + const entityId = new EntityInstanceId("counter", "my-counter"); + + // Act - calls don't support scheduled time, unlike signals + ctx.entities.callEntity(entityId, "get"); + + // Assert + const actions = Object.values(ctx._pendingActions); + const callEvent = actions[0].getSendentitymessage()!.getEntityoperationcalled()!; + expect(callEvent.hasScheduledtime()).toBe(false); + }); + }); +}); diff --git a/packages/durabletask-js/test/registry.spec.ts b/packages/durabletask-js/test/registry.spec.ts new file mode 100644 index 0000000..748cf81 --- /dev/null +++ b/packages/durabletask-js/test/registry.spec.ts @@ -0,0 +1,195 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { Registry } from "../src/worker/registry"; +import { TaskEntity } from "../src/entities/task-entity"; +import { TaskEntityOperation } from "../src/entities/task-entity-operation"; +import { ITaskEntity, EntityFactory } from "../src/entities/task-entity"; + +/** + * Test entity for registry tests. + */ +class CounterEntity extends TaskEntity { + increment(): number { + this.state++; + return this.state; + } + + protected initializeState(): number { + return 0; + } +} + +/** + * Simple functional entity for testing. + */ +function _simpleEntity(): ITaskEntity { + return { + run(operation: TaskEntityOperation): unknown { + return operation.name; + }, + }; +} + +describe("Registry", () => { + describe("Entity Registration", () => { + describe("addEntity", () => { + it("should register an entity factory with auto-detected name", () => { + // Arrange + const registry = new Registry(); + + // Named factory function + function myCounter(): ITaskEntity { + return new CounterEntity(); + } + + // Act + const name = registry.addEntity(myCounter); + + // Assert + expect(name).toBe("mycounter"); // Normalized to lowercase + expect(registry.getEntity("myCounter")).toBe(myCounter); + expect(registry.getEntity("MYCOUNTER")).toBe(myCounter); + }); + + it("should throw if factory is null", () => { + // Arrange + const registry = new Registry(); + + // Act & Assert + expect(() => registry.addEntity(null as any)).toThrow("An entity factory argument is required."); + }); + + it("should throw if entity with same name already exists", () => { + // Arrange + const registry = new Registry(); + function counter(): ITaskEntity { + return new CounterEntity(); + } + + // Act + registry.addEntity(counter); + + // Assert + expect(() => registry.addEntity(counter)).toThrow("An entity named 'counter' already exists."); + }); + }); + + describe("addNamedEntity", () => { + it("should register an entity factory with explicit name", () => { + // Arrange + const registry = new Registry(); + const factory: EntityFactory = () => new CounterEntity(); + + // Act + registry.addNamedEntity("MyEntity", factory); + + // Assert + expect(registry.getEntity("MyEntity")).toBe(factory); + expect(registry.getEntity("myentity")).toBe(factory); // Case-insensitive + expect(registry.getEntity("MYENTITY")).toBe(factory); // Case-insensitive + }); + + it("should throw if name is empty", () => { + // Arrange + const registry = new Registry(); + const factory: EntityFactory = () => new CounterEntity(); + + // Act & Assert + expect(() => registry.addNamedEntity("", factory)).toThrow("A non-empty entity name is required."); + }); + + it("should throw if factory is null", () => { + // Arrange + const registry = new Registry(); + + // Act & Assert + expect(() => registry.addNamedEntity("test", null as any)).toThrow( + "An entity factory argument is required.", + ); + }); + + it("should throw if entity with same name already exists (case-insensitive)", () => { + // Arrange + const registry = new Registry(); + const factory1: EntityFactory = () => new CounterEntity(); + const factory2: EntityFactory = () => new CounterEntity(); + + // Act + registry.addNamedEntity("Counter", factory1); + + // Assert - same name different case should fail + expect(() => registry.addNamedEntity("COUNTER", factory2)).toThrow( + "An entity named 'COUNTER' already exists.", + ); + }); + }); + + describe("getEntity", () => { + it("should return undefined for non-existent entity", () => { + // Arrange + const registry = new Registry(); + + // Act & Assert + expect(registry.getEntity("nonexistent")).toBeUndefined(); + }); + + it("should return undefined for empty name", () => { + // Arrange + const registry = new Registry(); + + // Act & Assert + expect(registry.getEntity("")).toBeUndefined(); + }); + + it("should return the correct entity factory (case-insensitive)", () => { + // Arrange + const registry = new Registry(); + const factory: EntityFactory = () => new CounterEntity(); + registry.addNamedEntity("counter", factory); + + // Act & Assert + expect(registry.getEntity("counter")).toBe(factory); + expect(registry.getEntity("Counter")).toBe(factory); + expect(registry.getEntity("COUNTER")).toBe(factory); + expect(registry.getEntity("CoUnTeR")).toBe(factory); + }); + }); + }); + + describe("Orchestrator Registration", () => { + it("should not interfere with entity registration", () => { + // Arrange + const registry = new Registry(); + const entityFactory: EntityFactory = () => new CounterEntity(); + const orchestrator = function myOrchestrator(): void {}; + + // Act + registry.addOrchestrator(orchestrator); + registry.addNamedEntity("myEntity", entityFactory); + + // Assert + expect(registry.getOrchestrator("myOrchestrator")).toBe(orchestrator); + expect(registry.getEntity("myEntity")).toBe(entityFactory); + }); + }); + + describe("Activity Registration", () => { + it("should not interfere with entity registration", () => { + // Arrange + const registry = new Registry(); + const entityFactory: EntityFactory = () => new CounterEntity(); + const activity = function myActivity(): string { + return "result"; + }; + + // Act + registry.addActivity(activity); + registry.addNamedEntity("myEntity", entityFactory); + + // Assert + expect(registry.getActivity("myActivity")).toBe(activity); + expect(registry.getEntity("myEntity")).toBe(entityFactory); + }); + }); +}); diff --git a/packages/durabletask-js/test/signal-entity-options.spec.ts b/packages/durabletask-js/test/signal-entity-options.spec.ts new file mode 100644 index 0000000..08035f3 --- /dev/null +++ b/packages/durabletask-js/test/signal-entity-options.spec.ts @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { SignalEntityOptions, CallEntityOptions } from "../src/entities/signal-entity-options"; + +describe("SignalEntityOptions", () => { + describe("interface structure", () => { + it("should have optional signalTime property", () => { + const options: SignalEntityOptions = {}; + expect(options.signalTime).toBeUndefined(); + }); + + it("should accept Date for signalTime", () => { + const futureDate = new Date("2026-02-01T10:00:00Z"); + const options: SignalEntityOptions = { signalTime: futureDate }; + expect(options.signalTime).toEqual(futureDate); + }); + + it("should be usable without any properties", () => { + const options: SignalEntityOptions = {}; + expect(Object.keys(options)).toHaveLength(0); + }); + }); +}); + +describe("CallEntityOptions", () => { + describe("interface structure", () => { + it("should be an empty interface (placeholder for future options)", () => { + const options: CallEntityOptions = {}; + expect(Object.keys(options)).toHaveLength(0); + }); + + it("should be usable as a type constraint", () => { + function acceptOptions(_options: CallEntityOptions): void { + // Just a type check + } + expect(() => acceptOptions({})).not.toThrow(); + }); + }); +}); diff --git a/packages/durabletask-js/test/task-entity-context.spec.ts b/packages/durabletask-js/test/task-entity-context.spec.ts new file mode 100644 index 0000000..57c596e --- /dev/null +++ b/packages/durabletask-js/test/task-entity-context.spec.ts @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { + TaskEntityContext, + StartOrchestrationOptions, +} from "../src/entities/task-entity-context"; +import { EntityInstanceId } from "../src/entities/entity-instance-id"; + +describe("TaskEntityContext", () => { + describe("interface structure", () => { + it("should define id as EntityInstanceId property", () => { + const mockContext: TaskEntityContext = { + id: new EntityInstanceId("test", "key"), + signalEntity: () => {}, + scheduleNewOrchestration: () => "instance-id", + }; + expect(mockContext.id).toBeInstanceOf(EntityInstanceId); + }); + + it("should define signalEntity as a method", () => { + const mockContext: TaskEntityContext = { + id: new EntityInstanceId("test", "key"), + signalEntity: () => {}, + scheduleNewOrchestration: () => "instance-id", + }; + expect(typeof mockContext.signalEntity).toBe("function"); + }); + + it("should define scheduleNewOrchestration as a method returning string", () => { + const mockContext: TaskEntityContext = { + id: new EntityInstanceId("test", "key"), + signalEntity: () => {}, + scheduleNewOrchestration: () => "my-orchestration-id", + }; + expect(typeof mockContext.scheduleNewOrchestration).toBe("function"); + expect(mockContext.scheduleNewOrchestration("test")).toBe("my-orchestration-id"); + }); + }); + + describe("semantic contract", () => { + it("signalEntity should accept entity ID and operation name", () => { + const calls: { id: EntityInstanceId; operationName: string; input?: unknown }[] = []; + const mockContext: TaskEntityContext = { + id: new EntityInstanceId("source", "key"), + signalEntity: (id, operationName, input) => { + calls.push({ id, operationName, input }); + }, + scheduleNewOrchestration: () => "id", + }; + + const targetId = new EntityInstanceId("target", "targetKey"); + mockContext.signalEntity(targetId, "increment", 5); + + expect(calls).toHaveLength(1); + expect(calls[0].id.toString()).toBe(targetId.toString()); + expect(calls[0].operationName).toBe("increment"); + expect(calls[0].input).toBe(5); + }); + + it("signalEntity should accept optional signalTime via options", () => { + let receivedOptions: { signalTime?: Date } | undefined; + const mockContext: TaskEntityContext = { + id: new EntityInstanceId("source", "key"), + signalEntity: (_id, _op, _input, options) => { + receivedOptions = options; + }, + scheduleNewOrchestration: () => "id", + }; + + const futureTime = new Date("2026-02-01"); + mockContext.signalEntity( + new EntityInstanceId("target", "key"), + "reminder", + null, + { signalTime: futureTime }, + ); + + expect(receivedOptions?.signalTime).toEqual(futureTime); + }); + + it("scheduleNewOrchestration should return an instance ID", () => { + const mockContext: TaskEntityContext = { + id: new EntityInstanceId("entity", "key"), + signalEntity: () => {}, + scheduleNewOrchestration: (name, _input, options) => { + return options?.instanceId ?? `generated-for-${name}`; + }, + }; + + expect(mockContext.scheduleNewOrchestration("TestOrch")).toBe("generated-for-TestOrch"); + expect( + mockContext.scheduleNewOrchestration("TestOrch", null, { instanceId: "custom-id" }), + ).toBe("custom-id"); + }); + }); +}); + +describe("StartOrchestrationOptions", () => { + it("should be usable with no properties", () => { + const options: StartOrchestrationOptions = {}; + expect(Object.keys(options)).toHaveLength(0); + }); + + it("should accept instanceId property", () => { + const options: StartOrchestrationOptions = { instanceId: "my-id" }; + expect(options.instanceId).toBe("my-id"); + }); + + it("should accept startAt property", () => { + const startTime = new Date("2026-01-26T12:00:00Z"); + const options: StartOrchestrationOptions = { startAt: startTime }; + expect(options.startAt).toEqual(startTime); + }); + + it("should accept both properties", () => { + const options: StartOrchestrationOptions = { + instanceId: "test-instance", + startAt: new Date("2026-06-01"), + }; + expect(options.instanceId).toBe("test-instance"); + expect(options.startAt).toEqual(new Date("2026-06-01")); + }); +}); diff --git a/packages/durabletask-js/test/task-entity-operation.spec.ts b/packages/durabletask-js/test/task-entity-operation.spec.ts new file mode 100644 index 0000000..6588bfb --- /dev/null +++ b/packages/durabletask-js/test/task-entity-operation.spec.ts @@ -0,0 +1,188 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { TaskEntityOperation } from "../src/entities/task-entity-operation"; +import { TaskEntityContext } from "../src/entities/task-entity-context"; +import { TaskEntityState } from "../src/entities/task-entity-state"; +import { EntityInstanceId } from "../src/entities/entity-instance-id"; + +describe("TaskEntityOperation", () => { + // Helper to create a mock context + function createMockContext(entityId: EntityInstanceId): TaskEntityContext { + return { + id: entityId, + signalEntity: () => {}, + scheduleNewOrchestration: () => "generated-id", + }; + } + + // Helper to create a mock state + function createMockState(initialState: unknown): TaskEntityState { + let currentState = initialState; + let hasState = initialState !== undefined && initialState !== null; + return { + get hasState() { + return hasState; + }, + getState: (defaultValue?: T) => (hasState ? (currentState as T) : defaultValue), + setState: (state) => { + currentState = state; + hasState = state !== undefined && state !== null; + }, + }; + } + + // Helper to create a mock operation + function createMockOperation( + name: string, + input: unknown = undefined, + entityId = new EntityInstanceId("counter", "myCounter"), + initialState: unknown = undefined, + ): TaskEntityOperation { + const context = createMockContext(entityId); + const state = createMockState(initialState); + return { + name, + context, + state, + get hasInput() { + return input !== undefined; + }, + getInput: () => input as T | undefined, + }; + } + + describe("interface structure", () => { + it("should define name as a string property", () => { + const op = createMockOperation("increment"); + expect(typeof op.name).toBe("string"); + }); + + it("should define context property", () => { + const op = createMockOperation("increment"); + expect(op.context).toBeDefined(); + expect(op.context.id).toBeInstanceOf(EntityInstanceId); + }); + + it("should define state property", () => { + const op = createMockOperation("increment"); + expect(op.state).toBeDefined(); + expect(typeof op.state.hasState).toBe("boolean"); + }); + + it("should define hasInput as a boolean property", () => { + const op = createMockOperation("increment"); + expect(typeof op.hasInput).toBe("boolean"); + }); + + it("should define getInput as a method", () => { + const op = createMockOperation("increment"); + expect(typeof op.getInput).toBe("function"); + }); + }); + + describe("semantic contract", () => { + describe("name property", () => { + it("should return the operation name", () => { + const op = createMockOperation("add"); + expect(op.name).toBe("add"); + }); + + it("should preserve case of operation name", () => { + const op = createMockOperation("AddItem"); + expect(op.name).toBe("AddItem"); + }); + }); + + describe("context property", () => { + it("should provide access to entity ID", () => { + const entityId = new EntityInstanceId("myEntity", "key123"); + const op = createMockOperation("test", undefined, entityId); + expect(op.context.id.name).toBe("myentity"); + expect(op.context.id.key).toBe("key123"); + }); + + it("should provide signalEntity method", () => { + const op = createMockOperation("test"); + expect(() => + op.context.signalEntity(new EntityInstanceId("other", "key"), "ping"), + ).not.toThrow(); + }); + + it("should provide scheduleNewOrchestration method", () => { + const op = createMockOperation("test"); + const instanceId = op.context.scheduleNewOrchestration("TestOrch"); + expect(typeof instanceId).toBe("string"); + }); + }); + + describe("state property", () => { + it("should have hasState=false when no initial state", () => { + const op = createMockOperation("test"); + expect(op.state.hasState).toBe(false); + }); + + it("should have hasState=true with initial state", () => { + const op = createMockOperation("test", undefined, undefined, { count: 5 }); + expect(op.state.hasState).toBe(true); + }); + + it("should allow getting state", () => { + const op = createMockOperation("test", undefined, undefined, { count: 10 }); + expect(op.state.getState<{ count: number }>()?.count).toBe(10); + }); + + it("should allow setting state", () => { + const op = createMockOperation("test", undefined, undefined, { count: 0 }); + op.state.setState({ count: 42 }); + expect(op.state.getState<{ count: number }>()?.count).toBe(42); + }); + }); + + describe("hasInput property", () => { + it("should return false when no input provided", () => { + const op = createMockOperation("reset"); + expect(op.hasInput).toBe(false); + }); + + it("should return true when input is provided", () => { + const op = createMockOperation("add", 5); + expect(op.hasInput).toBe(true); + }); + + it("should return true for null input (explicit null is input)", () => { + const op = createMockOperation("setNull", null); + expect(op.hasInput).toBe(true); + }); + + it("should return true for falsy inputs like 0", () => { + const op = createMockOperation("setZero", 0); + expect(op.hasInput).toBe(true); + }); + }); + + describe("getInput method", () => { + it("should return undefined when no input", () => { + const op = createMockOperation("noInput"); + expect(op.getInput()).toBeUndefined(); + }); + + it("should return primitive input", () => { + const op = createMockOperation("addNumber", 42); + expect(op.getInput()).toBe(42); + }); + + it("should return object input", () => { + const op = createMockOperation("update", { name: "Bob", age: 30 }); + const input = op.getInput<{ name: string; age: number }>(); + expect(input?.name).toBe("Bob"); + expect(input?.age).toBe(30); + }); + + it("should return array input", () => { + const op = createMockOperation("setItems", [1, 2, 3]); + expect(op.getInput()).toEqual([1, 2, 3]); + }); + }); + }); +}); diff --git a/packages/durabletask-js/test/task-entity-state.spec.ts b/packages/durabletask-js/test/task-entity-state.spec.ts new file mode 100644 index 0000000..0576278 --- /dev/null +++ b/packages/durabletask-js/test/task-entity-state.spec.ts @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { TaskEntityState } from "../src/entities/task-entity-state"; + +describe("TaskEntityState", () => { + describe("interface structure", () => { + it("should define hasState as a boolean property", () => { + // Type check - the interface requires hasState to be a boolean + const mockState: TaskEntityState = { + hasState: true, + getState: (defaultValue?: T) => defaultValue, + setState: () => {}, + }; + expect(typeof mockState.hasState).toBe("boolean"); + }); + + it("should define getState as a method", () => { + const mockState: TaskEntityState = { + hasState: false, + getState: (defaultValue?: T) => defaultValue, + setState: () => {}, + }; + expect(typeof mockState.getState).toBe("function"); + }); + + it("should define setState as a method", () => { + const mockState: TaskEntityState = { + hasState: false, + getState: (defaultValue?: T) => defaultValue, + setState: () => {}, + }; + expect(typeof mockState.setState).toBe("function"); + }); + }); + + describe("semantic contract", () => { + it("should return default value when no state exists", () => { + const mockState: TaskEntityState = { + hasState: false, + getState: (defaultValue?: T) => defaultValue, + setState: () => {}, + }; + expect(mockState.getState({ count: 42 })).toEqual({ count: 42 }); + }); + + it("should return state when state exists", () => { + const storedState = { count: 10 }; + const mockState: TaskEntityState = { + hasState: true, + getState: () => storedState as unknown as T, + setState: () => {}, + }; + expect(mockState.getState()).toEqual({ count: 10 }); + }); + + it("should track setState calls", () => { + const setStateCalls: unknown[] = []; + const mockState: TaskEntityState = { + hasState: false, + getState: (defaultValue?: T) => defaultValue, + setState: (state) => setStateCalls.push(state), + }; + + mockState.setState({ value: "test" }); + mockState.setState(null); + + expect(setStateCalls).toHaveLength(2); + expect(setStateCalls[0]).toEqual({ value: "test" }); + expect(setStateCalls[1]).toBeNull(); + }); + + it("should document deletion semantics (null deletes state)", () => { + // This test documents the expected behavior: + // Setting state to null or undefined should delete the entity state + let currentState: unknown = { count: 5 }; + let hasState = true; + + const mockState: TaskEntityState = { + get hasState() { + return hasState; + }, + getState: (defaultValue?: T) => (hasState ? (currentState as unknown as T) : defaultValue), + setState: (state) => { + currentState = state; + hasState = state !== null && state !== undefined; + }, + }; + + expect(mockState.hasState).toBe(true); + mockState.setState(null); + expect(mockState.hasState).toBe(false); + }); + }); +}); diff --git a/packages/durabletask-js/test/task-entity.spec.ts b/packages/durabletask-js/test/task-entity.spec.ts new file mode 100644 index 0000000..098499e --- /dev/null +++ b/packages/durabletask-js/test/task-entity.spec.ts @@ -0,0 +1,327 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { ITaskEntity, TaskEntity, EntityFactory } from "../src/entities/task-entity"; +import { TaskEntityOperation } from "../src/entities/task-entity-operation"; +import { TaskEntityContext } from "../src/entities/task-entity-context"; +import { TaskEntityState } from "../src/entities/task-entity-state"; +import { EntityInstanceId } from "../src/entities/entity-instance-id"; + +// Helper to create mock operation +function createMockOperation( + name: string, + input: unknown = undefined, + initialState: unknown = undefined, +): { operation: TaskEntityOperation; stateChanges: unknown[] } { + const stateChanges: unknown[] = []; + let currentState = initialState; + let hasState = initialState !== undefined && initialState !== null; + + const mockState: TaskEntityState = { + get hasState() { + return hasState; + }, + getState: (defaultValue?: T) => (hasState ? (currentState as unknown as T) : defaultValue), + setState: (state) => { + stateChanges.push(state); + currentState = state; + hasState = state !== undefined && state !== null; + }, + }; + + const mockContext: TaskEntityContext = { + id: new EntityInstanceId("testEntity", "testKey"), + signalEntity: () => {}, + scheduleNewOrchestration: () => "generated-id", + }; + + const operation: TaskEntityOperation = { + name, + context: mockContext, + state: mockState, + get hasInput() { + return input !== undefined; + }, + getInput: () => input as T | undefined, + }; + + return { operation, stateChanges }; +} + +describe("ITaskEntity", () => { + it("should define run method that accepts TaskEntityOperation", () => { + const entity: ITaskEntity = { + run: () => Promise.resolve("result"), + }; + expect(typeof entity.run).toBe("function"); + }); + + it("should allow returning Promise from run", async () => { + const entity: ITaskEntity = { + run: async () => "async result", + }; + const { operation } = createMockOperation("test"); + const result = await entity.run(operation); + expect(result).toBe("async result"); + }); + + it("should allow returning synchronous value from run", async () => { + const entity: ITaskEntity = { + run: () => "sync result", + }; + const { operation } = createMockOperation("test"); + const result = await Promise.resolve(entity.run(operation)); + expect(result).toBe("sync result"); + }); +}); + +describe("EntityFactory", () => { + it("should be a function that creates an entity", () => { + const factory: EntityFactory = () => ({ + run: () => Promise.resolve(), + }); + const entity = factory(); + expect(entity.run).toBeDefined(); + }); +}); + +describe("TaskEntity", () => { + // A simple counter entity for testing + class CounterEntity extends TaskEntity<{ count: number }> { + add(amount: number): number { + this.state.count += amount; + return this.state.count; + } + + get(): number { + return this.state.count; + } + + reset(): void { + this.state.count = 0; + } + + protected initializeState(): { count: number } { + return { count: 0 }; + } + } + + describe("method dispatch", () => { + it("should dispatch to method matching operation name", async () => { + const entity = new CounterEntity(); + const { operation } = createMockOperation("add", 5, { count: 10 }); + + const result = await entity.run(operation); + + expect(result).toBe(15); + }); + + it("should be case-insensitive for operation names", async () => { + const entity = new CounterEntity(); + const { operation: op1 } = createMockOperation("ADD", 3, { count: 0 }); + const { operation: op2 } = createMockOperation("Add", 3, { count: 0 }); + const { operation: op3 } = createMockOperation("add", 3, { count: 0 }); + + const result1 = await entity.run(op1); + const result2 = await entity.run(op2); + const result3 = await entity.run(op3); + + expect(result1).toBe(3); + expect(result2).toBe(3); + expect(result3).toBe(3); + }); + + it("should throw error for unknown operation", async () => { + const entity = new CounterEntity(); + const { operation } = createMockOperation("unknownOp", undefined, { count: 0 }); + + await expect(entity.run(operation)).rejects.toThrow( + "No suitable method found for entity operation 'unknownOp'", + ); + }); + + it("should call method without input when no input provided", async () => { + const entity = new CounterEntity(); + const { operation } = createMockOperation("get", undefined, { count: 42 }); + + const result = await entity.run(operation); + + expect(result).toBe(42); + }); + + it("should call method with input when input provided", async () => { + const entity = new CounterEntity(); + const { operation } = createMockOperation("add", 100, { count: 0 }); + + const result = await entity.run(operation); + + expect(result).toBe(100); + }); + }); + + describe("state management", () => { + it("should hydrate state from operation", async () => { + const entity = new CounterEntity(); + const { operation } = createMockOperation("get", undefined, { count: 999 }); + + const result = await entity.run(operation); + + expect(result).toBe(999); + }); + + it("should call initializeState when no state exists", async () => { + const entity = new CounterEntity(); + const { operation } = createMockOperation("get", undefined, undefined); + + const result = await entity.run(operation); + + expect(result).toBe(0); // Default from initializeState + }); + + it("should persist state after operation", async () => { + const entity = new CounterEntity(); + const { operation, stateChanges } = createMockOperation("add", 10, { count: 5 }); + + await entity.run(operation); + + expect(stateChanges).toHaveLength(1); + expect(stateChanges[0]).toEqual({ count: 15 }); + }); + }); + + describe("implicit delete operation", () => { + it("should delete state when 'delete' operation is called", async () => { + const entity = new CounterEntity(); + const { operation, stateChanges } = createMockOperation("delete", undefined, { count: 100 }); + + await entity.run(operation); + + // The last state change should be null (deletion) + expect(stateChanges[stateChanges.length - 1]).toBeNull(); + }); + + it("should handle delete case-insensitively", async () => { + const entity = new CounterEntity(); + const { operation, stateChanges } = createMockOperation("DELETE", undefined, { count: 50 }); + + await entity.run(operation); + + expect(stateChanges[stateChanges.length - 1]).toBeNull(); + }); + }); + + describe("async methods", () => { + class AsyncEntity extends TaskEntity<{ value: string }> { + async fetchData(): Promise { + // Simulate async operation + return new Promise((resolve) => { + setTimeout(() => resolve("async data"), 10); + }); + } + + async processInput(input: string): Promise { + this.state.value = input; + return `processed: ${input}`; + } + + protected initializeState(): { value: string } { + return { value: "" }; + } + } + + it("should handle async methods", async () => { + const entity = new AsyncEntity(); + const { operation } = createMockOperation("fetchData", undefined, { value: "" }); + + const result = await entity.run(operation); + + expect(result).toBe("async data"); + }); + + it("should handle async methods with input", async () => { + const entity = new AsyncEntity(); + const { operation, stateChanges } = createMockOperation( + "processInput", + "test input", + { value: "" }, + ); + + const result = await entity.run(operation); + + expect(result).toBe("processed: test input"); + expect((stateChanges[0] as { value: string }).value).toBe("test input"); + }); + }); + + describe("context access", () => { + class ContextAwareEntity extends TaskEntity<{ signals: number }> { + signalOther(): void { + // Access context to signal another entity + if (this.context) { + this.context.signalEntity( + new EntityInstanceId("other", "key"), + "ping", + ); + this.state.signals++; + } + } + + getId(): string { + return this.context?.id.toString() ?? ""; + } + + protected initializeState(): { signals: number } { + return { signals: 0 }; + } + } + + it("should provide access to context during operation", async () => { + const entity = new ContextAwareEntity(); + const { operation } = createMockOperation("getId", undefined, { signals: 0 }); + + const result = await entity.run(operation); + + expect(result).toBe("@testentity@testKey"); + }); + + it("should allow signaling entities through context", async () => { + const entity = new ContextAwareEntity(); + const { operation, stateChanges } = createMockOperation( + "signalOther", + undefined, + { signals: 0 }, + ); + + await entity.run(operation); + + expect((stateChanges[0] as { signals: number }).signals).toBe(1); + }); + }); + + describe("custom delete override", () => { + class EntityWithCustomDelete extends TaskEntity<{ deleted: boolean }> { + delete(): string { + this.state.deleted = true; + return "custom delete"; + } + + protected initializeState(): { deleted: boolean } { + return { deleted: false }; + } + } + + it("should use custom delete method when defined", async () => { + const entity = new EntityWithCustomDelete(); + const { operation, stateChanges } = createMockOperation( + "delete", + undefined, + { deleted: false }, + ); + + const result = await entity.run(operation); + + expect(result).toBe("custom delete"); + expect((stateChanges[0] as { deleted: boolean }).deleted).toBe(true); + }); + }); +}); diff --git a/packages/durabletask-js/test/worker-entity.spec.ts b/packages/durabletask-js/test/worker-entity.spec.ts new file mode 100644 index 0000000..94d3225 --- /dev/null +++ b/packages/durabletask-js/test/worker-entity.spec.ts @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import { TaskHubGrpcWorker } from "../src/worker/task-hub-grpc-worker"; +import { TaskEntity } from "../src/entities/task-entity"; +import { ITaskEntity, EntityFactory } from "../src/entities/task-entity"; +import { TaskEntityOperation } from "../src/entities/task-entity-operation"; + +/** + * Test entity for worker tests. + */ +class CounterEntity extends TaskEntity { + increment(): number { + this.state++; + return this.state; + } + + protected initializeState(): number { + return 0; + } +} + +describe("TaskHubGrpcWorker", () => { + describe("Entity Registration", () => { + describe("addEntity", () => { + it("should register an entity factory", () => { + // Arrange + const worker = new TaskHubGrpcWorker("localhost:4001"); + + function myCounter(): ITaskEntity { + return new CounterEntity(); + } + + // Act + const name = worker.addEntity(myCounter); + + // Assert + expect(name).toBe("mycounter"); // Normalized to lowercase + }); + + it("should throw if worker is running", async () => { + // Arrange + const worker = new TaskHubGrpcWorker("localhost:4001"); + (worker as any)._isRunning = true; // Simulate running state + + function myCounter(): ITaskEntity { + return new CounterEntity(); + } + + // Act & Assert + expect(() => worker.addEntity(myCounter)).toThrow("Cannot add entity while worker is running."); + }); + + it("should register multiple entities", () => { + // Arrange + const worker = new TaskHubGrpcWorker("localhost:4001"); + + function counter(): ITaskEntity { + return new CounterEntity(); + } + + function greeter(): ITaskEntity { + return { + run: (op: TaskEntityOperation) => `Hello, ${op.name}!`, + }; + } + + // Act + const name1 = worker.addEntity(counter); + const name2 = worker.addEntity(greeter); + + // Assert + expect(name1).toBe("counter"); + expect(name2).toBe("greeter"); + }); + }); + + describe("addNamedEntity", () => { + it("should register an entity with explicit name", () => { + // Arrange + const worker = new TaskHubGrpcWorker("localhost:4001"); + const factory: EntityFactory = () => new CounterEntity(); + + // Act + const name = worker.addNamedEntity("MyCounter", factory); + + // Assert + expect(name).toBe("mycounter"); // Normalized to lowercase + }); + + it("should throw if worker is running", () => { + // Arrange + const worker = new TaskHubGrpcWorker("localhost:4001"); + (worker as any)._isRunning = true; // Simulate running state + const factory: EntityFactory = () => new CounterEntity(); + + // Act & Assert + expect(() => worker.addNamedEntity("MyCounter", factory)).toThrow( + "Cannot add entity while worker is running.", + ); + }); + + it("should throw for duplicate entity names", () => { + // Arrange + const worker = new TaskHubGrpcWorker("localhost:4001"); + const factory1: EntityFactory = () => new CounterEntity(); + const factory2: EntityFactory = () => new CounterEntity(); + + // Act + worker.addNamedEntity("counter", factory1); + + // Assert + expect(() => worker.addNamedEntity("Counter", factory2)).toThrow( + "An entity named 'Counter' already exists.", + ); + }); + }); + }); + + describe("Registration coexistence", () => { + it("should allow registering entities alongside orchestrators and activities", () => { + // Arrange + const worker = new TaskHubGrpcWorker("localhost:4001"); + + // eslint-disable-next-line require-yield + const orchestrator = function* testOrchestrator(): any { + return "done"; + }; + + const activity = function testActivity(): string { + return "result"; + }; + + function testEntity(): ITaskEntity { + return new CounterEntity(); + } + + // Act - should not throw + worker.addOrchestrator(orchestrator); + worker.addActivity(activity); + worker.addEntity(testEntity); + + // Assert - no exceptions thrown, registration successful + expect(true).toBe(true); + }); + }); +}); diff --git a/test/e2e-azuremanaged/entity.spec.ts b/test/e2e-azuremanaged/entity.spec.ts new file mode 100644 index 0000000..794b784 --- /dev/null +++ b/test/e2e-azuremanaged/entity.spec.ts @@ -0,0 +1,1568 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * E2E tests for Durable Entities against Durable Task Scheduler (DTS). + * + * These tests can run against either: + * 1. DTS Emulator (default) - No authentication required + * docker run -i -p 8080:8080 -d mcr.microsoft.com/dts/dts-emulator:latest + * + * 2. Real DTS Scheduler - Requires connection string with authentication + * + * Environment variables: + * - AZURE_DTS_CONNECTION_STRING: Connection string for real DTS (takes precedence) + * Example: Endpoint=https://your-scheduler.eastus.durabletask.io;Authentication=DefaultAzure;TaskHub=your-taskhub + * - ENDPOINT: The endpoint for the DTS emulator (default: localhost:8080) + * - TASKHUB: The task hub name (default: default) + */ + +import { + TaskHubGrpcClient, + TaskHubGrpcWorker, + EntityInstanceId, + TaskEntity, + OrchestrationContext, + TOrchestrator, + ProtoOrchestrationStatus as OrchestrationStatus, + LockHandle, +} from "@microsoft/durabletask-js"; +import { + DurableTaskAzureManagedClientBuilder, + DurableTaskAzureManagedWorkerBuilder, +} from "@microsoft/durabletask-js-azuremanaged"; + +// Read environment variables +// Connection string takes precedence over endpoint/taskHub for real DTS +const connectionString = process.env.AZURE_DTS_CONNECTION_STRING; +const endpoint = process.env.ENDPOINT || "localhost:8080"; +const taskHub = process.env.TASKHUB || "default"; + +// ============================================================================ +// Test Entities +// ============================================================================ + +/** + * Simple counter entity for basic operations testing. + */ +class CounterEntity extends TaskEntity<{ count: number }> { + add(amount: number): number { + this.state.count += amount; + return this.state.count; + } + + subtract(amount: number): number { + this.state.count -= amount; + return this.state.count; + } + + get(): number { + return this.state.count; + } + + set(value: number): void { + this.state.count = value; + } + + reset(): void { + this.state.count = 0; + } + + // Note: Using implicit delete behavior from TaskEntity base class + // When 'delete' operation is called, the entity state will be set to null + + protected initializeState(): { count: number } { + return { count: 0 }; + } +} + +/** + * Bank account entity for more complex state management testing. + */ +interface BankAccountState { + balance: number; + owner: string; + transactionCount: number; +} + +class BankAccountEntity extends TaskEntity { + deposit(amount: number): number { + if (amount <= 0) { + throw new Error("Deposit amount must be positive"); + } + this.state.balance += amount; + this.state.transactionCount++; + return this.state.balance; + } + + withdraw(amount: number): number { + if (amount <= 0) { + throw new Error("Withdrawal amount must be positive"); + } + if (amount > this.state.balance) { + throw new Error(`Insufficient funds: balance=${this.state.balance}, requested=${amount}`); + } + this.state.balance -= amount; + this.state.transactionCount++; + return this.state.balance; + } + + getBalance(): number { + return this.state.balance; + } + + getTransactionCount(): number { + return this.state.transactionCount; + } + + setOwner(owner: string): void { + this.state.owner = owner; + } + + getOwner(): string { + return this.state.owner; + } + + getFullState(): BankAccountState { + return { ...this.state }; + } + + protected initializeState(): BankAccountState { + return { balance: 0, owner: "Unknown", transactionCount: 0 }; + } +} + +/** + * Entity that can signal other entities and start orchestrations. + */ +class CoordinatorEntity extends TaskEntity<{ messages: string[] }> { + sendMessage(message: string): void { + this.state.messages.push(message); + } + + getMessages(): string[] { + return [...this.state.messages]; + } + + signalCounter(args: { counterKey: string; amount: number }): void { + const counterId = new EntityInstanceId("CounterEntity", args.counterKey); + this.context?.signalEntity(counterId, "add", args.amount); + } + + // Start a new orchestration from within the entity + startOrchestration(args: { orchestrationName: string; input: unknown }): string { + return this.context?.scheduleNewOrchestration(args.orchestrationName, args.input) ?? ""; + } + + protected initializeState(): { messages: string[] } { + return { messages: [] }; + } +} + +/** + * Entity with async operations and edge case testing. + */ +class AsyncEntity extends TaskEntity<{ value: number; log: string[] }> { + // Operation with no input + ping(): string { + this.state.log.push("ping"); + return "pong"; + } + + // Async operation using Promise + async asyncAdd(amount: number): Promise { + // Simulate async work + await new Promise((resolve) => setTimeout(resolve, 10)); + this.state.value += amount; + this.state.log.push(`asyncAdd:${amount}`); + return this.state.value; + } + + // Operation with nested complex input + processNested(args: { data: { nested: { value: number } }; meta: { tag: string } }): string { + this.state.value = args.data.nested.value; + this.state.log.push(`nested:${args.meta.tag}`); + return `processed:${args.data.nested.value}:${args.meta.tag}`; + } + + getValue(): number { + return this.state.value; + } + + getLog(): string[] { + return [...this.state.log]; + } + + // Operation that throws an error + failOperation(): void { + throw new Error("This operation intentionally fails"); + } + + protected initializeState(): { value: number; log: string[] } { + return { value: 0, log: [] }; + } +} + +// ============================================================================ +// E2E Tests +// ============================================================================ + +describe("Durable Entities E2E Tests (DTS)", () => { + let taskHubClient: TaskHubGrpcClient; + let taskHubWorker: TaskHubGrpcWorker; + + beforeEach(async () => { + // Create client and worker using the Azure-managed builders + // Use connection string for real DTS, or endpoint for emulator + if (connectionString) { + taskHubClient = new DurableTaskAzureManagedClientBuilder() + .connectionString(connectionString) + .build(); + + taskHubWorker = new DurableTaskAzureManagedWorkerBuilder() + .connectionString(connectionString) + .build(); + } else { + taskHubClient = new DurableTaskAzureManagedClientBuilder() + .endpoint(endpoint, taskHub, null) + .build(); + + taskHubWorker = new DurableTaskAzureManagedWorkerBuilder() + .endpoint(endpoint, taskHub, null) + .build(); + } + }); + + afterEach(async () => { + await taskHubWorker.stop(); + await taskHubClient.stop(); + }); + + describe("Basic Entity Operations", () => { + it("should signal an entity and retrieve its state", async () => { + // Arrange + const entityId = new EntityInstanceId("CounterEntity", `counter-${Date.now()}`); + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + await taskHubWorker.start(); + + // Act - Signal the entity multiple times + await taskHubClient.signalEntity(entityId, "add", 10); + await taskHubClient.signalEntity(entityId, "add", 5); + await taskHubClient.signalEntity(entityId, "subtract", 3); + + // Wait for signals to be processed + await sleep(2000); + + // Assert - Get the entity state + const metadata = await taskHubClient.getEntity<{ count: number }>(entityId); + + expect(metadata).toBeDefined(); + expect(metadata?.state?.count).toBe(12); // 0 + 10 + 5 - 3 = 12 + }, 30000); + + it("should handle multiple entities independently", async () => { + // Arrange + const entityId1 = new EntityInstanceId("CounterEntity", `counter1-${Date.now()}`); + const entityId2 = new EntityInstanceId("CounterEntity", `counter2-${Date.now()}`); + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + await taskHubWorker.start(); + + // Act - Signal different entities + await taskHubClient.signalEntity(entityId1, "add", 100); + await taskHubClient.signalEntity(entityId2, "add", 50); + await taskHubClient.signalEntity(entityId1, "add", 25); + + // Wait for signals to be processed + await sleep(2000); + + // Assert - Each entity has independent state + const metadata1 = await taskHubClient.getEntity<{ count: number }>(entityId1); + const metadata2 = await taskHubClient.getEntity<{ count: number }>(entityId2); + + expect(metadata1?.state?.count).toBe(125); // 100 + 25 + expect(metadata2?.state?.count).toBe(50); + }, 30000); + + it("should return undefined for non-existent entity", async () => { + // Arrange + const entityId = new EntityInstanceId("CounterEntity", `nonexistent-${Date.now()}`); + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + await taskHubWorker.start(); + + // Act + const metadata = await taskHubClient.getEntity<{ count: number }>(entityId); + + // Assert + expect(metadata).toBeUndefined(); + }, 30000); + }); + + describe("Complex State Management", () => { + it("should handle complex entity state with multiple fields", async () => { + // Arrange + const entityId = new EntityInstanceId("BankAccountEntity", `account-${Date.now()}`); + taskHubWorker.addNamedEntity("BankAccountEntity", () => new BankAccountEntity()); + await taskHubWorker.start(); + + // Act + await taskHubClient.signalEntity(entityId, "setOwner", "Alice"); + await taskHubClient.signalEntity(entityId, "deposit", 1000); + await taskHubClient.signalEntity(entityId, "withdraw", 250); + await taskHubClient.signalEntity(entityId, "deposit", 100); + + // Wait for signals to be processed + await sleep(2000); + + // Assert + const metadata = await taskHubClient.getEntity(entityId); + + expect(metadata).toBeDefined(); + expect(metadata?.state?.balance).toBe(850); // 1000 - 250 + 100 + expect(metadata?.state?.owner).toBe("Alice"); + expect(metadata?.state?.transactionCount).toBe(3); // deposit, withdraw, deposit + }, 30000); + + it("should handle operation errors gracefully", async () => { + // Arrange + const entityId = new EntityInstanceId("BankAccountEntity", `account-error-${Date.now()}`); + taskHubWorker.addNamedEntity("BankAccountEntity", () => new BankAccountEntity()); + await taskHubWorker.start(); + + // Act - Deposit, then try to withdraw more than balance + await taskHubClient.signalEntity(entityId, "deposit", 100); + await taskHubClient.signalEntity(entityId, "withdraw", 500); // Should fail - insufficient funds + + // Wait for signals to be processed + await sleep(2000); + + // Assert - State should reflect only successful operations + const metadata = await taskHubClient.getEntity(entityId); + + expect(metadata).toBeDefined(); + // Balance should remain 100 since withdraw failed + expect(metadata?.state?.balance).toBe(100); + }, 30000); + }); + + describe("Entity from Orchestration", () => { + it("should call entity from orchestration and get response", async () => { + // Arrange + const entityId = new EntityInstanceId("CounterEntity", `orch-counter-${Date.now()}`); + + // Orchestration that interacts with an entity + const entityOrchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any { + // Call the entity to add a value and get the result + const result1: number = yield ctx.entities.callEntity(entityId, "add", 50); + + // Call again + const result2: number = yield ctx.entities.callEntity(entityId, "add", 25); + + // Get final value + const finalValue: number = yield ctx.entities.callEntity(entityId, "get"); + + return { result1, result2, finalValue }; + }; + + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + taskHubWorker.addOrchestrator(entityOrchestrator); + await taskHubWorker.start(); + + // Act + const instanceId = await taskHubClient.scheduleNewOrchestration(entityOrchestrator); + const state = await taskHubClient.waitForOrchestrationCompletion(instanceId, undefined, 60); + + // Assert + expect(state).toBeDefined(); + expect(state?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + + const output = state?.serializedOutput ? JSON.parse(state.serializedOutput) : null; + expect(output?.result1).toBe(50); + expect(output?.result2).toBe(75); // 50 + 25 + expect(output?.finalValue).toBe(75); + }, 90000); + + it("should signal entity from orchestration (fire-and-forget)", async () => { + // Arrange + const entityId = new EntityInstanceId("CounterEntity", `signal-orch-${Date.now()}`); + + const signalOrchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any { + // Signal the entity (fire-and-forget) + ctx.entities.signalEntity(entityId, "add", 100); + ctx.entities.signalEntity(entityId, "add", 50); + + // Wait a bit for signals to be processed + const fireAt = new Date(ctx.currentUtcDateTime.getTime() + 2000); + yield ctx.createTimer(fireAt); + + // Now call to get the value + const value: number = yield ctx.entities.callEntity(entityId, "get"); + return value; + }; + + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + taskHubWorker.addOrchestrator(signalOrchestrator); + await taskHubWorker.start(); + + // Act + const instanceId = await taskHubClient.scheduleNewOrchestration(signalOrchestrator); + const state = await taskHubClient.waitForOrchestrationCompletion(instanceId, undefined, 60); + + // Assert + expect(state).toBeDefined(); + expect(state?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + + const output = state?.serializedOutput ? JSON.parse(state.serializedOutput) : null; + expect(output).toBe(150); // 100 + 50 + }, 90000); + }); + + describe("Entity Query", () => { + it("should query entities by name prefix", async () => { + // Arrange + const prefix = `query-test-${Date.now()}`; + const entityId1 = new EntityInstanceId("CounterEntity", `${prefix}-1`); + const entityId2 = new EntityInstanceId("CounterEntity", `${prefix}-2`); + const entityId3 = new EntityInstanceId("CounterEntity", `${prefix}-3`); + + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + await taskHubWorker.start(); + + // Create entities by signaling them + await taskHubClient.signalEntity(entityId1, "add", 10); + await taskHubClient.signalEntity(entityId2, "add", 20); + await taskHubClient.signalEntity(entityId3, "add", 30); + + // Wait for signals to be processed + await sleep(3000); + + // Act - Query for entities + const results: Array<{ id: EntityInstanceId; state: { count: number } }> = []; + for await (const metadata of taskHubClient.getEntities<{ count: number }>({ + instanceIdStartsWith: `@CounterEntity@${prefix}`, + includeState: true, + })) { + results.push({ + id: metadata.id, + state: metadata.state!, + }); + } + + // Assert + expect(results.length).toBe(3); + const counts = results.map((r) => r.state.count).sort((a, b) => a - b); + expect(counts).toEqual([10, 20, 30]); + }, 60000); + + it("should query entities page by page using asPages()", async () => { + // Arrange + const prefix = `page-query-${Date.now()}`; + const entityIds = []; + for (let i = 1; i <= 5; i++) { + entityIds.push(new EntityInstanceId("CounterEntity", `${prefix}-${i}`)); + } + + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + await taskHubWorker.start(); + + // Create entities + for (let i = 0; i < entityIds.length; i++) { + await taskHubClient.signalEntity(entityIds[i], "add", (i + 1) * 10); + } + + // Wait for signals to be processed + await sleep(3000); + + // Act - Query page by page with small page size + const allResults: Array<{ id: EntityInstanceId; state: { count: number } }> = []; + let pageCount = 0; + + for await (const page of taskHubClient.getEntities<{ count: number }>({ + instanceIdStartsWith: `@CounterEntity@${prefix}`, + includeState: true, + pageSize: 2, // Small page size to force multiple pages + }).asPages()) { + pageCount++; + for (const metadata of page.values) { + allResults.push({ + id: metadata.id, + state: metadata.state!, + }); + } + } + + // Assert + expect(allResults.length).toBe(5); + const counts = allResults.map((r) => r.state.count).sort((a, b) => a - b); + expect(counts).toEqual([10, 20, 30, 40, 50]); + // With pageSize=2 and 5 entities, we should have at least 3 pages + expect(pageCount).toBeGreaterThanOrEqual(1); + }, 60000); + }); + + describe("Entity Deletion", () => { + it("should delete entity state via delete operation", async () => { + // Arrange + const entityId = new EntityInstanceId("CounterEntity", `delete-test-${Date.now()}`); + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + await taskHubWorker.start(); + + // Create the entity + await taskHubClient.signalEntity(entityId, "add", 100); + await sleep(1000); + + // Verify it exists + let metadata = await taskHubClient.getEntity<{ count: number }>(entityId); + expect(metadata?.state?.count).toBe(100); + + // Act - Delete the entity + await taskHubClient.signalEntity(entityId, "delete"); + await sleep(2000); + + // Assert - Entity should no longer exist (or have empty state) + metadata = await taskHubClient.getEntity<{ count: number }>(entityId); + // After deletion, getEntity should return undefined or entity with no state + expect(metadata === undefined || metadata.state === undefined).toBe(true); + }, 30000); + }); + + describe("Entity-to-Entity Communication", () => { + it("should allow one entity to signal another entity", async () => { + // Arrange + const coordinatorId = new EntityInstanceId("CoordinatorEntity", `coordinator-${Date.now()}`); + const counterId = new EntityInstanceId("CounterEntity", `target-counter-${Date.now()}`); + + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + taskHubWorker.addNamedEntity("CoordinatorEntity", () => new CoordinatorEntity()); + await taskHubWorker.start(); + + // Act - Signal the coordinator to signal the counter + await taskHubClient.signalEntity(coordinatorId, "signalCounter", { counterKey: counterId.key, amount: 42 }); + + // Wait for the cascading signals to be processed + await sleep(3000); + + // Assert - The counter should have received the signal + const counterMetadata = await taskHubClient.getEntity<{ count: number }>(counterId); + expect(counterMetadata?.state?.count).toBe(42); + }, 30000); + }); + + describe("Concurrent Entity Operations", () => { + it("should process rapid sequential signals in order", async () => { + // Arrange + const entityId = new EntityInstanceId("CounterEntity", `rapid-${Date.now()}`); + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + await taskHubWorker.start(); + + // Act - Send many signals rapidly + const signalCount = 20; + for (let i = 0; i < signalCount; i++) { + await taskHubClient.signalEntity(entityId, "add", 1); + } + + // Wait for all signals to be processed + await sleep(5000); + + // Assert - All signals should be processed exactly once + const metadata = await taskHubClient.getEntity<{ count: number }>(entityId); + expect(metadata?.state?.count).toBe(signalCount); + }, 60000); + + it("should handle concurrent signals from multiple clients", async () => { + // Arrange + const entityId = new EntityInstanceId("CounterEntity", `concurrent-${Date.now()}`); + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + await taskHubWorker.start(); + + // Act - Send signals in parallel (simulate concurrent clients) + const promises = []; + for (let i = 0; i < 10; i++) { + promises.push(taskHubClient.signalEntity(entityId, "add", 5)); + } + await Promise.all(promises); + + // Wait for all signals to be processed + await sleep(3000); + + // Assert - All signals should be processed + const metadata = await taskHubClient.getEntity<{ count: number }>(entityId); + expect(metadata?.state?.count).toBe(50); // 10 * 5 + }, 30000); + }); + + describe("Entity Re-creation", () => { + it("should allow entity to be re-created after deletion", async () => { + // Arrange + const entityId = new EntityInstanceId("CounterEntity", `recreate-${Date.now()}`); + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + await taskHubWorker.start(); + + // Create and verify initial state + await taskHubClient.signalEntity(entityId, "add", 100); + await sleep(1500); + let metadata = await taskHubClient.getEntity<{ count: number }>(entityId); + expect(metadata?.state?.count).toBe(100); + + // Delete the entity + await taskHubClient.signalEntity(entityId, "delete"); + await sleep(2000); + + // Verify deletion + metadata = await taskHubClient.getEntity<{ count: number }>(entityId); + expect(metadata === undefined || metadata.state === undefined).toBe(true); + + // Re-create the entity with new state + await taskHubClient.signalEntity(entityId, "add", 50); + await sleep(1500); + + // Assert - Entity should be re-created with fresh state + metadata = await taskHubClient.getEntity<{ count: number }>(entityId); + expect(metadata?.state?.count).toBe(50); + }, 45000); + }); + + describe("Entity with List State", () => { + it("should handle entity with array/list state", async () => { + // Arrange + const entityId = new EntityInstanceId("CoordinatorEntity", `messages-${Date.now()}`); + taskHubWorker.addNamedEntity("CoordinatorEntity", () => new CoordinatorEntity()); + await taskHubWorker.start(); + + // Act - Add multiple messages + await taskHubClient.signalEntity(entityId, "sendMessage", "Hello"); + await taskHubClient.signalEntity(entityId, "sendMessage", "World"); + await taskHubClient.signalEntity(entityId, "sendMessage", "!"); + + await sleep(2000); + + // Assert + const metadata = await taskHubClient.getEntity<{ messages: string[] }>(entityId); + expect(metadata?.state?.messages).toEqual(["Hello", "World", "!"]); + }, 30000); + }); + + describe("Multiple Orchestrations with Same Entity", () => { + it("should handle multiple orchestrations interacting with same entity", async () => { + // Arrange + const entityId = new EntityInstanceId("CounterEntity", `multi-orch-${Date.now()}`); + + const incrementOrchestrator: TOrchestrator = async function* ( + ctx: OrchestrationContext, + amount: number + ): any { + const result: number = yield ctx.entities.callEntity(entityId, "add", amount); + return result; + }; + + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + taskHubWorker.addOrchestrator(incrementOrchestrator); + await taskHubWorker.start(); + + // Act - Start multiple orchestrations that increment the same entity + const instanceId1 = await taskHubClient.scheduleNewOrchestration(incrementOrchestrator, 10); + const instanceId2 = await taskHubClient.scheduleNewOrchestration(incrementOrchestrator, 20); + const instanceId3 = await taskHubClient.scheduleNewOrchestration(incrementOrchestrator, 30); + + // Wait for all to complete + const [state1, state2, state3] = await Promise.all([ + taskHubClient.waitForOrchestrationCompletion(instanceId1, undefined, 60), + taskHubClient.waitForOrchestrationCompletion(instanceId2, undefined, 60), + taskHubClient.waitForOrchestrationCompletion(instanceId3, undefined, 60), + ]); + + // Assert - All orchestrations completed + expect(state1?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + expect(state2?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + expect(state3?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + + // Entity should have received all increments + const metadata = await taskHubClient.getEntity<{ count: number }>(entityId); + expect(metadata?.state?.count).toBe(60); // 10 + 20 + 30 + }, 90000); + }); + + describe("Entity Reset Operation", () => { + it("should reset entity state to initial value", async () => { + // Arrange + const entityId = new EntityInstanceId("CounterEntity", `reset-${Date.now()}`); + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + await taskHubWorker.start(); + + // Build up some state + await taskHubClient.signalEntity(entityId, "add", 100); + await taskHubClient.signalEntity(entityId, "add", 50); + await sleep(1500); + + let metadata = await taskHubClient.getEntity<{ count: number }>(entityId); + expect(metadata?.state?.count).toBe(150); + + // Act - Reset the entity + await taskHubClient.signalEntity(entityId, "reset"); + await sleep(1500); + + // Assert - State should be reset to initial value + metadata = await taskHubClient.getEntity<{ count: number }>(entityId); + expect(metadata?.state?.count).toBe(0); + }, 30000); + }); + + describe("Entity Call with Response", () => { + it("should get response from entity call in orchestration", async () => { + // Arrange + const entityId = new EntityInstanceId("BankAccountEntity", `call-response-${Date.now()}`); + + const bankOrchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any { + // Set owner and get response + yield ctx.entities.callEntity(entityId, "setOwner", "Bob"); + + // Deposit and get new balance + const balance1: number = yield ctx.entities.callEntity(entityId, "deposit", 500); + + // Withdraw and get new balance + const balance2: number = yield ctx.entities.callEntity(entityId, "withdraw", 200); + + // Get full state + const fullState: BankAccountState = yield ctx.entities.callEntity(entityId, "getFullState"); + + return { balance1, balance2, fullState }; + }; + + taskHubWorker.addNamedEntity("BankAccountEntity", () => new BankAccountEntity()); + taskHubWorker.addOrchestrator(bankOrchestrator); + await taskHubWorker.start(); + + // Act + const instanceId = await taskHubClient.scheduleNewOrchestration(bankOrchestrator); + const state = await taskHubClient.waitForOrchestrationCompletion(instanceId, undefined, 60); + + // Assert + expect(state?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + const output = state?.serializedOutput ? JSON.parse(state.serializedOutput) : null; + expect(output?.balance1).toBe(500); + expect(output?.balance2).toBe(300); // 500 - 200 + expect(output?.fullState?.owner).toBe("Bob"); + expect(output?.fullState?.balance).toBe(300); + expect(output?.fullState?.transactionCount).toBe(2); + }, 90000); + }); + + describe("Entity Mixed Operations", () => { + it("should handle mixed signals and calls to same entity", async () => { + // Arrange + const entityId = new EntityInstanceId("CounterEntity", `mixed-${Date.now()}`); + + const mixedOrchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any { + // Signal (fire-and-forget) + ctx.entities.signalEntity(entityId, "add", 10); + + // Wait a bit + const fireAt = new Date(ctx.currentUtcDateTime.getTime() + 1000); + yield ctx.createTimer(fireAt); + + // Call (wait for response) + const value1: number = yield ctx.entities.callEntity(entityId, "add", 5); + + // Signal again + ctx.entities.signalEntity(entityId, "add", 3); + + // Wait + const fireAt2 = new Date(ctx.currentUtcDateTime.getTime() + 1000); + yield ctx.createTimer(fireAt2); + + // Final call to get value + const finalValue: number = yield ctx.entities.callEntity(entityId, "get"); + + return { value1, finalValue }; + }; + + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + taskHubWorker.addOrchestrator(mixedOrchestrator); + await taskHubWorker.start(); + + // Act + const instanceId = await taskHubClient.scheduleNewOrchestration(mixedOrchestrator); + const state = await taskHubClient.waitForOrchestrationCompletion(instanceId, undefined, 60); + + // Assert + expect(state?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + const output = state?.serializedOutput ? JSON.parse(state.serializedOutput) : null; + // value1 should be 15 (10 from signal + 5 from call) + expect(output?.value1).toBe(15); + // finalValue should be 18 (15 + 3 from second signal) + expect(output?.finalValue).toBe(18); + }, 90000); + }); + + describe("Entity Type Differentiation", () => { + it("should maintain separate state for different entity types with same key", async () => { + // Arrange + const key = `same-key-${Date.now()}`; + const counterId = new EntityInstanceId("CounterEntity", key); + const bankId = new EntityInstanceId("BankAccountEntity", key); + + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + taskHubWorker.addNamedEntity("BankAccountEntity", () => new BankAccountEntity()); + await taskHubWorker.start(); + + // Act - Operate on both entity types with the same key + await taskHubClient.signalEntity(counterId, "add", 100); + await taskHubClient.signalEntity(bankId, "deposit", 500); + await taskHubClient.signalEntity(counterId, "add", 50); + await taskHubClient.signalEntity(bankId, "withdraw", 200); + + await sleep(3000); + + // Assert - Each entity type should have its own independent state + const counterMetadata = await taskHubClient.getEntity<{ count: number }>(counterId); + const bankMetadata = await taskHubClient.getEntity(bankId); + + expect(counterMetadata?.state?.count).toBe(150); // 100 + 50 + expect(bankMetadata?.state?.balance).toBe(300); // 500 - 200 + }, 30000); + }); + + describe("Clean Entity Storage", () => { + it("should clean up empty entities after deletion", async () => { + // Arrange - Create and delete some entities + const prefix = `cleanup-${Date.now()}`; + const entityId1 = new EntityInstanceId("CounterEntity", `${prefix}-1`); + const entityId2 = new EntityInstanceId("CounterEntity", `${prefix}-2`); + + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + await taskHubWorker.start(); + + // Create entities + await taskHubClient.signalEntity(entityId1, "add", 100); + await taskHubClient.signalEntity(entityId2, "add", 200); + await sleep(2000); + + // Delete one entity + await taskHubClient.signalEntity(entityId1, "delete"); + await sleep(2000); + + // Act - Clean entity storage + const cleanResult = await taskHubClient.cleanEntityStorage({ + removeEmptyEntities: true, + releaseOrphanedLocks: true, + }); + + // Assert - Clean should complete (may or may not find empty entities depending on timing) + expect(cleanResult).toBeDefined(); + expect(cleanResult.emptyEntitiesRemoved).toBeGreaterThanOrEqual(0); + expect(cleanResult.orphanedLocksReleased).toBeGreaterThanOrEqual(0); + + // The non-deleted entity should still exist + const metadata = await taskHubClient.getEntity<{ count: number }>(entityId2); + expect(metadata?.state?.count).toBe(200); + }, 45000); + + it("should clean entity storage with default options", async () => { + // Arrange + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + await taskHubWorker.start(); + + // Act - Call cleanEntityStorage with no parameters (uses defaults) + const cleanResult = await taskHubClient.cleanEntityStorage(); + + // Assert - Should return a valid result + expect(cleanResult).toBeDefined(); + expect(typeof cleanResult.emptyEntitiesRemoved).toBe("number"); + expect(typeof cleanResult.orphanedLocksReleased).toBe("number"); + }, 30000); + + it("should clean only empty entities when specified", async () => { + // Arrange + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + await taskHubWorker.start(); + + // Act - Clean only empty entities, not orphaned locks + const cleanResult = await taskHubClient.cleanEntityStorage({ + removeEmptyEntities: true, + releaseOrphanedLocks: false, + }); + + // Assert + expect(cleanResult).toBeDefined(); + expect(typeof cleanResult.emptyEntitiesRemoved).toBe("number"); + }, 30000); + }); + + describe("Entity Locking - Basic Operations", () => { + it("should lock entity and perform operations within critical section", async () => { + // Arrange + const entityId = new EntityInstanceId("CounterEntity", `lock-basic-${Date.now()}`); + + const lockingOrchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any { + // Acquire lock on the entity + const lockHandle: LockHandle = yield ctx.entities.lockEntities(entityId); + + try { + // Check that we're in a critical section + const sectionInfo = ctx.entities.isInCriticalSection(); + const inSection = sectionInfo.inSection; + + // Perform operations while holding the lock + const value1: number = yield ctx.entities.callEntity(entityId, "add", 100); + const value2: number = yield ctx.entities.callEntity(entityId, "add", 50); + + return { inSection, value1, value2 }; + } finally { + // Release the lock + lockHandle.release(); + } + }; + + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + taskHubWorker.addOrchestrator(lockingOrchestrator); + await taskHubWorker.start(); + + // Act + const instanceId = await taskHubClient.scheduleNewOrchestration(lockingOrchestrator); + const state = await taskHubClient.waitForOrchestrationCompletion(instanceId, undefined, 90); + + // Assert + expect(state?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + const output = state?.serializedOutput ? JSON.parse(state.serializedOutput) : null; + expect(output?.inSection).toBe(true); + expect(output?.value1).toBe(100); + expect(output?.value2).toBe(150); + }, 120000); + + it("should lock multiple entities atomically", async () => { + // Arrange + const entityId1 = new EntityInstanceId("CounterEntity", `multi-lock-1-${Date.now()}`); + const entityId2 = new EntityInstanceId("CounterEntity", `multi-lock-2-${Date.now()}`); + + const multiLockOrchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any { + // Acquire locks on multiple entities + const lockHandle: LockHandle = yield ctx.entities.lockEntities(entityId1, entityId2); + + try { + // Check locked entities + const sectionInfo = ctx.entities.isInCriticalSection(); + const lockedCount = sectionInfo.lockedEntities?.length ?? 0; + + // Perform transfer: add to entity1, subtract from entity2 + yield ctx.entities.callEntity(entityId1, "add", 100); + yield ctx.entities.callEntity(entityId2, "add", 200); + + // Get final values + const value1: number = yield ctx.entities.callEntity(entityId1, "get"); + const value2: number = yield ctx.entities.callEntity(entityId2, "get"); + + return { lockedCount, value1, value2 }; + } finally { + lockHandle.release(); + } + }; + + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + taskHubWorker.addOrchestrator(multiLockOrchestrator); + await taskHubWorker.start(); + + // Act + const instanceId = await taskHubClient.scheduleNewOrchestration(multiLockOrchestrator); + const state = await taskHubClient.waitForOrchestrationCompletion(instanceId, undefined, 90); + + // Assert + expect(state?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + const output = state?.serializedOutput ? JSON.parse(state.serializedOutput) : null; + expect(output?.lockedCount).toBe(2); + expect(output?.value1).toBe(100); + expect(output?.value2).toBe(200); + }, 120000); + + it("should show entity as not locked after lock release", async () => { + // Arrange + const entityId = new EntityInstanceId("CounterEntity", `lock-release-${Date.now()}`); + + const lockReleaseOrchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any { + // Check initial state - not in critical section + const beforeLock = ctx.entities.isInCriticalSection(); + + // Acquire and release lock + const lockHandle: LockHandle = yield ctx.entities.lockEntities(entityId); + const duringLock = ctx.entities.isInCriticalSection(); + + yield ctx.entities.callEntity(entityId, "add", 50); + lockHandle.release(); + + const afterRelease = ctx.entities.isInCriticalSection(); + + return { + beforeLock: beforeLock.inSection, + duringLock: duringLock.inSection, + afterRelease: afterRelease.inSection, + }; + }; + + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + taskHubWorker.addOrchestrator(lockReleaseOrchestrator); + await taskHubWorker.start(); + + // Act + const instanceId = await taskHubClient.scheduleNewOrchestration(lockReleaseOrchestrator); + const state = await taskHubClient.waitForOrchestrationCompletion(instanceId, undefined, 90); + + // Assert + expect(state?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + const output = state?.serializedOutput ? JSON.parse(state.serializedOutput) : null; + expect(output?.beforeLock).toBe(false); + expect(output?.duringLock).toBe(true); + expect(output?.afterRelease).toBe(false); + }, 120000); + }); + + describe("Entity Locking - Edge Cases", () => { + it("should handle duplicate lock release gracefully", async () => { + // Arrange + const entityId = new EntityInstanceId("CounterEntity", `dup-release-${Date.now()}`); + + const dupReleaseOrchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any { + const lockHandle: LockHandle = yield ctx.entities.lockEntities(entityId); + + yield ctx.entities.callEntity(entityId, "add", 100); + + // Release multiple times - should not throw + lockHandle.release(); + lockHandle.release(); + lockHandle.release(); + + const finalValue: number = yield ctx.entities.callEntity(entityId, "get"); + return finalValue; + }; + + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + taskHubWorker.addOrchestrator(dupReleaseOrchestrator); + await taskHubWorker.start(); + + // Act + const instanceId = await taskHubClient.scheduleNewOrchestration(dupReleaseOrchestrator); + const state = await taskHubClient.waitForOrchestrationCompletion(instanceId, undefined, 90); + + // Assert - Should complete successfully + expect(state?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + const output = state?.serializedOutput ? JSON.parse(state.serializedOutput) : null; + expect(output).toBe(100); + }, 120000); + + it("should deduplicate entities when locking same entity multiple times", async () => { + // Arrange + const entityId = new EntityInstanceId("CounterEntity", `dedup-lock-${Date.now()}`); + + const dedupOrchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any { + // Try to lock the same entity multiple times + const lockHandle: LockHandle = yield ctx.entities.lockEntities(entityId, entityId, entityId); + + const sectionInfo = ctx.entities.isInCriticalSection(); + const lockedCount = sectionInfo.lockedEntities?.length ?? 0; + + yield ctx.entities.callEntity(entityId, "add", 42); + lockHandle.release(); + + return { lockedCount }; + }; + + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + taskHubWorker.addOrchestrator(dedupOrchestrator); + await taskHubWorker.start(); + + // Act + const instanceId = await taskHubClient.scheduleNewOrchestration(dedupOrchestrator); + const state = await taskHubClient.waitForOrchestrationCompletion(instanceId, undefined, 90); + + // Assert - Duplicates should be removed, so only 1 entity locked + expect(state?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + const output = state?.serializedOutput ? JSON.parse(state.serializedOutput) : null; + expect(output?.lockedCount).toBe(1); + }, 120000); + + it("should sort entities for consistent lock ordering", async () => { + // Arrange - Create entities with keys that would sort differently + const entityA = new EntityInstanceId("CounterEntity", `z-last-${Date.now()}`); + const entityB = new EntityInstanceId("CounterEntity", `a-first-${Date.now()}`); + const entityC = new EntityInstanceId("CounterEntity", `m-middle-${Date.now()}`); + + const sortedLockOrchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any { + // Lock in unsorted order + const lockHandle: LockHandle = yield ctx.entities.lockEntities(entityA, entityB, entityC); + + const sectionInfo = ctx.entities.isInCriticalSection(); + const lockedEntities = sectionInfo.lockedEntities?.map(e => e.key) ?? []; + + yield ctx.entities.callEntity(entityA, "add", 1); + yield ctx.entities.callEntity(entityB, "add", 2); + yield ctx.entities.callEntity(entityC, "add", 3); + lockHandle.release(); + + return { lockedEntities, count: lockedEntities.length }; + }; + + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + taskHubWorker.addOrchestrator(sortedLockOrchestrator); + await taskHubWorker.start(); + + // Act + const instanceId = await taskHubClient.scheduleNewOrchestration(sortedLockOrchestrator); + const state = await taskHubClient.waitForOrchestrationCompletion(instanceId, undefined, 90); + + // Assert - Should have 3 locked entities + expect(state?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + const output = state?.serializedOutput ? JSON.parse(state.serializedOutput) : null; + expect(output?.count).toBe(3); + + // Entities should be sorted + const keys = output?.lockedEntities as string[]; + const sortedKeys = [...keys].sort(); + expect(keys).toEqual(sortedKeys); + }, 120000); + + it("should allow call to locked entity but not signal", async () => { + // Arrange + const lockedEntity = new EntityInstanceId("CounterEntity", `call-vs-signal-${Date.now()}`); + + const callVsSignalOrchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any { + const lockHandle: LockHandle = yield ctx.entities.lockEntities(lockedEntity); + + // Call should work on locked entity + const value: number = yield ctx.entities.callEntity(lockedEntity, "add", 100); + + lockHandle.release(); + return value; + }; + + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + taskHubWorker.addOrchestrator(callVsSignalOrchestrator); + await taskHubWorker.start(); + + // Act + const instanceId = await taskHubClient.scheduleNewOrchestration(callVsSignalOrchestrator); + const state = await taskHubClient.waitForOrchestrationCompletion(instanceId, undefined, 90); + + // Assert + expect(state?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + const output = state?.serializedOutput ? JSON.parse(state.serializedOutput) : null; + expect(output).toBe(100); + }, 120000); + + it("should serialize concurrent access from multiple orchestrations", async () => { + // Arrange - Single entity that will be accessed by multiple orchestrations + // This test demonstrates read-modify-write pattern that would fail without locking + const sharedEntityId = new EntityInstanceId("CounterEntity", `shared-lock-${Date.now()}`); + + const concurrentAccessOrchestrator: TOrchestrator = async function* ( + ctx: OrchestrationContext, + amount: number + ): any { + // Each orchestration locks, reads, modifies, and writes + const lockHandle: LockHandle = yield ctx.entities.lockEntities(sharedEntityId); + + try { + // Read current value + const current: number = yield ctx.entities.callEntity(sharedEntityId, "get"); + + // Simulate some work with a delay - without locking, another orchestration + // could read the same value and cause a lost update + const fireAt = new Date(ctx.currentUtcDateTime.getTime() + 100); + yield ctx.createTimer(fireAt); + + // Write back the computed value (read + amount) + // This is a true read-modify-write: we explicitly set based on what we read + const newValue = current + amount; + yield ctx.entities.callEntity(sharedEntityId, "set", newValue); + + return { before: current, after: newValue, added: amount }; + } finally { + lockHandle.release(); + } + }; + + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + taskHubWorker.addOrchestrator(concurrentAccessOrchestrator); + await taskHubWorker.start(); + + // Act - Start multiple orchestrations that compete for the same lock + const instanceId1 = await taskHubClient.scheduleNewOrchestration(concurrentAccessOrchestrator, 10); + const instanceId2 = await taskHubClient.scheduleNewOrchestration(concurrentAccessOrchestrator, 20); + const instanceId3 = await taskHubClient.scheduleNewOrchestration(concurrentAccessOrchestrator, 30); + + // Wait for all to complete + const [state1, state2, state3] = await Promise.all([ + taskHubClient.waitForOrchestrationCompletion(instanceId1, undefined, 120), + taskHubClient.waitForOrchestrationCompletion(instanceId2, undefined, 120), + taskHubClient.waitForOrchestrationCompletion(instanceId3, undefined, 120), + ]); + + // Assert - All completed + expect(state1?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + expect(state2?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + expect(state3?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + + // Final entity value should be sum of all additions (10 + 20 + 30 = 60) + const metadata = await taskHubClient.getEntity<{ count: number }>(sharedEntityId); + expect(metadata?.state?.count).toBe(60); + }, 180000); + }); + + describe("Entity lockedBy Metadata", () => { + it("should show lockedBy in entity metadata during lock", async () => { + // Arrange + const entityId = new EntityInstanceId("CounterEntity", `locked-by-${Date.now()}`); + + const slowLockOrchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any { + const lockHandle: LockHandle = yield ctx.entities.lockEntities(entityId); + + try { + yield ctx.entities.callEntity(entityId, "add", 100); + + // Hold the lock for a while so we can check metadata from outside + const fireAt = new Date(ctx.currentUtcDateTime.getTime() + 5000); + yield ctx.createTimer(fireAt); + + return "completed"; + } finally { + lockHandle.release(); + } + }; + + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + taskHubWorker.addOrchestrator(slowLockOrchestrator); + await taskHubWorker.start(); + + // Act - Start orchestration that holds lock + const lockingOrchestrationId = await taskHubClient.scheduleNewOrchestration(slowLockOrchestrator); + + // Wait for lock to be acquired and entity operation to complete + await sleep(3000); + + // Check entity metadata while lock is held + const metadataDuringLock = await taskHubClient.getEntity<{ count: number }>(entityId); + + // Verify lockedBy is set to the orchestration holding the lock + expect(metadataDuringLock).toBeDefined(); + expect(metadataDuringLock?.lockedBy).toBe(lockingOrchestrationId); + + // Wait for orchestration to complete + const state = await taskHubClient.waitForOrchestrationCompletion(lockingOrchestrationId, undefined, 90); + + // Assert orchestration completed + expect(state?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + + // After lock release, lockedBy should be undefined + const metadataAfterRelease = await taskHubClient.getEntity<{ count: number }>(entityId); + expect(metadataAfterRelease?.lockedBy).toBeUndefined(); + }, 120000); + }); + + describe("Operation Edge Cases", () => { + it("should handle operation with no input", async () => { + // Arrange + const entityId = new EntityInstanceId("AsyncEntity", `no-input-${Date.now()}`); + + const noInputOrchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any { + // Call operation that takes no parameters + const result: string = yield ctx.entities.callEntity(entityId, "ping"); + const log: string[] = yield ctx.entities.callEntity(entityId, "getLog"); + return { result, log }; + }; + + taskHubWorker.addNamedEntity("AsyncEntity", () => new AsyncEntity()); + taskHubWorker.addOrchestrator(noInputOrchestrator); + await taskHubWorker.start(); + + // Act + const instanceId = await taskHubClient.scheduleNewOrchestration(noInputOrchestrator); + const state = await taskHubClient.waitForOrchestrationCompletion(instanceId, undefined, 60); + + // Assert + expect(state?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + const output = state?.serializedOutput ? JSON.parse(state.serializedOutput) : null; + expect(output?.result).toBe("pong"); + expect(output?.log).toContain("ping"); + }, 90000); + + it("should handle operation name case insensitivity", async () => { + // Arrange + const entityId = new EntityInstanceId("CounterEntity", `case-test-${Date.now()}`); + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + await taskHubWorker.start(); + + // Act - Use different case variations for the same operation + await taskHubClient.signalEntity(entityId, "add", 10); // lowercase + await taskHubClient.signalEntity(entityId, "Add", 5); // Capitalized + await taskHubClient.signalEntity(entityId, "ADD", 3); // UPPERCASE + + await sleep(3000); + + // Assert - All operations should work regardless of case + const metadata = await taskHubClient.getEntity<{ count: number }>(entityId); + expect(metadata?.state?.count).toBe(18); // 10 + 5 + 3 + }, 30000); + + it("should handle complex nested input", async () => { + // Arrange + const entityId = new EntityInstanceId("AsyncEntity", `nested-input-${Date.now()}`); + + const nestedInputOrchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any { + const result: string = yield ctx.entities.callEntity(entityId, "processNested", { + data: { nested: { value: 42 } }, + meta: { tag: "test-tag" }, + }); + const value: number = yield ctx.entities.callEntity(entityId, "getValue"); + return { result, value }; + }; + + taskHubWorker.addNamedEntity("AsyncEntity", () => new AsyncEntity()); + taskHubWorker.addOrchestrator(nestedInputOrchestrator); + await taskHubWorker.start(); + + // Act + const instanceId = await taskHubClient.scheduleNewOrchestration(nestedInputOrchestrator); + const state = await taskHubClient.waitForOrchestrationCompletion(instanceId, undefined, 60); + + // Assert + expect(state?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + const output = state?.serializedOutput ? JSON.parse(state.serializedOutput) : null; + expect(output?.result).toBe("processed:42:test-tag"); + expect(output?.value).toBe(42); + }, 90000); + }); + + describe("Async Entity Operations", () => { + it("should handle async entity operation that returns Promise", async () => { + // Arrange + const entityId = new EntityInstanceId("AsyncEntity", `async-op-${Date.now()}`); + + const asyncOpOrchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any { + const result1: number = yield ctx.entities.callEntity(entityId, "asyncAdd", 10); + const result2: number = yield ctx.entities.callEntity(entityId, "asyncAdd", 20); + const log: string[] = yield ctx.entities.callEntity(entityId, "getLog"); + return { result1, result2, log }; + }; + + taskHubWorker.addNamedEntity("AsyncEntity", () => new AsyncEntity()); + taskHubWorker.addOrchestrator(asyncOpOrchestrator); + await taskHubWorker.start(); + + // Act + const instanceId = await taskHubClient.scheduleNewOrchestration(asyncOpOrchestrator); + const state = await taskHubClient.waitForOrchestrationCompletion(instanceId, undefined, 60); + + // Assert + expect(state?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + const output = state?.serializedOutput ? JSON.parse(state.serializedOutput) : null; + expect(output?.result1).toBe(10); + expect(output?.result2).toBe(30); // 10 + 20 + expect(output?.log).toEqual(["asyncAdd:10", "asyncAdd:20"]); + }, 90000); + }); + + describe("Entity Instance ID Edge Cases", () => { + it("should handle entity key with special characters", async () => { + // Arrange - Keys with various special characters + const key = `special-chars-${Date.now()}-test_key`; + const entityId = new EntityInstanceId("CounterEntity", key); + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + await taskHubWorker.start(); + + // Act + await taskHubClient.signalEntity(entityId, "add", 100); + await sleep(2000); + + // Assert + const metadata = await taskHubClient.getEntity<{ count: number }>(entityId); + expect(metadata?.state?.count).toBe(100); + expect(metadata?.id.key).toBe(key); + }, 30000); + + it("should handle long entity key within limits", async () => { + // Arrange - Long key that stays within 100 char total instance ID limit + // Entity instance ID format: @entityname@key, so key needs to account for prefix + const key = `k-${Date.now()}-${"a".repeat(50)}`; + const entityId = new EntityInstanceId("CounterEntity", key); + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + await taskHubWorker.start(); + + // Act + await taskHubClient.signalEntity(entityId, "add", 50); + await sleep(2000); + + // Assert + const metadata = await taskHubClient.getEntity<{ count: number }>(entityId); + expect(metadata?.state?.count).toBe(50); + }, 30000); + + it("should reject entity key that exceeds length limit", async () => { + // Arrange - Key that makes total instance ID exceed 100 chars + const key = `too-long-${Date.now()}-${"a".repeat(100)}`; + const entityId = new EntityInstanceId("CounterEntity", key); + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + await taskHubWorker.start(); + + // Act & Assert - Should throw an error for overly long instance ID + await expect( + taskHubClient.signalEntity(entityId, "add", 50) + ).rejects.toThrow(/INVALID_ARGUMENT|length/i); + }, 30000); + }); + + describe("Entity Starting Orchestration", () => { + it("should allow entity to schedule a new orchestration", async () => { + // Arrange + const coordinatorId = new EntityInstanceId("CoordinatorEntity", `start-orch-${Date.now()}`); + // Simple orchestration that will be started by the entity + const targetOrchestrator: TOrchestrator = async function* ( + ctx: OrchestrationContext, + input: { message: string } + ): any { + // Use a minimal timer as a proper durable operation + const fireAt = new Date(ctx.currentUtcDateTime.getTime() + 100); + yield ctx.createTimer(fireAt); + return `Received: ${input.message}`; + }; + + // Orchestration that triggers entity to start another orchestration + const triggerOrchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any { + // Call the entity to start an orchestration and get the instance ID back + const startedInstanceId: string = yield ctx.entities.callEntity(coordinatorId, "startOrchestration", { + orchestrationName: "targetOrchestrator", + input: { message: "Hello from entity" }, + }); + + // Wait a bit for the started orchestration to complete + const fireAt = new Date(ctx.currentUtcDateTime.getTime() + 3000); + yield ctx.createTimer(fireAt); + + return { triggerResult: "completed", startedInstanceId }; + }; + + taskHubWorker.addNamedEntity("CoordinatorEntity", () => new CoordinatorEntity()); + taskHubWorker.addOrchestrator(triggerOrchestrator); + taskHubWorker.addNamedOrchestrator("targetOrchestrator", targetOrchestrator); + await taskHubWorker.start(); + + // Act + const instanceId = await taskHubClient.scheduleNewOrchestration(triggerOrchestrator); + const state = await taskHubClient.waitForOrchestrationCompletion(instanceId, undefined, 90); + + // Assert - Trigger orchestration completed + expect(state?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + const triggerOutput = state?.serializedOutput ? JSON.parse(state.serializedOutput) : null; + expect(triggerOutput?.triggerResult).toBe("completed"); + expect(triggerOutput?.startedInstanceId).toBeDefined(); + + // Verify the target orchestration actually ran and completed with correct output + // Use longer timeout since the entity-scheduled orchestration may take time to start + const targetState = await taskHubClient.waitForOrchestrationCompletion( + triggerOutput.startedInstanceId, + undefined, + 60 + ); + expect(targetState?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED); + const targetOutput = targetState?.serializedOutput ? JSON.parse(targetState.serializedOutput) : null; + expect(targetOutput).toBe("Received: Hello from entity"); + }, 120000); + }); + + describe("Operation Ordering (FIFO)", () => { + it("should process operations in order (FIFO)", async () => { + // Arrange + const entityId = new EntityInstanceId("AsyncEntity", `fifo-${Date.now()}`); + taskHubWorker.addNamedEntity("AsyncEntity", () => new AsyncEntity()); + await taskHubWorker.start(); + + // Act - Send numbered operations rapidly + for (let i = 1; i <= 10; i++) { + await taskHubClient.signalEntity(entityId, "asyncAdd", i); + } + + // Wait for all to be processed + await sleep(5000); + + // Assert - Check the log shows operations in order + const metadata = await taskHubClient.getEntity<{ value: number; log: string[] }>(entityId); + expect(metadata?.state?.value).toBe(55); // 1+2+3+4+5+6+7+8+9+10 + + // Log should be in order + const expectedLog = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((n) => `asyncAdd:${n}`); + expect(metadata?.state?.log).toEqual(expectedLog); + }, 60000); + }); + + describe("Error Handling in Entity Operations", () => { + it("should handle entity operation failure gracefully", async () => { + // Arrange + const entityId = new EntityInstanceId("AsyncEntity", `fail-op-${Date.now()}`); + taskHubWorker.addNamedEntity("AsyncEntity", () => new AsyncEntity()); + await taskHubWorker.start(); + + // Act - Signal an operation that throws (signals are fire-and-forget) + await taskHubClient.signalEntity(entityId, "failOperation"); + await sleep(2000); + + // Also do a successful operation + await taskHubClient.signalEntity(entityId, "ping"); + await sleep(2000); + + // Assert - Entity should still work after failed operation + const metadata = await taskHubClient.getEntity<{ value: number; log: string[] }>(entityId); + // The ping operation should have succeeded + expect(metadata?.state?.log).toContain("ping"); + }, 30000); + + it("should fail orchestration when entity call throws an unhandled exception", async () => { + // Arrange - orchestration that calls an entity operation which throws + const entityId = new EntityInstanceId("AsyncEntity", `fail-call-${Date.now()}`); + + taskHubWorker.addNamedEntity("AsyncEntity", () => new AsyncEntity()); + taskHubWorker.addNamedOrchestrator("CallFailingEntity", async function* (ctx): AsyncGenerator { + // This call should throw because failOperation throws an error in the entity + const result = yield ctx.entities.callEntity(entityId, "failOperation"); + return result; + }); + await taskHubWorker.start(); + + // Act - Start the orchestration + const instanceId = await taskHubClient.scheduleNewOrchestration("CallFailingEntity"); + + // Wait for orchestration to complete + const state = await taskHubClient.waitForOrchestrationCompletion(instanceId, undefined, 60); + + // Assert - Orchestration should be failed + expect(state?.runtimeStatus).toBe(OrchestrationStatus.ORCHESTRATION_STATUS_FAILED); + expect(state?.failureDetails?.message).toContain("This operation intentionally fails"); + }, 60000); + }); + + describe("Scheduled Signal Delivery", () => { + it("should deliver signal at scheduled time but not before", async () => { + // Arrange + const entityId = new EntityInstanceId("CounterEntity", `scheduled-${Date.now()}`); + taskHubWorker.addNamedEntity("CounterEntity", () => new CounterEntity()); + await taskHubWorker.start(); + + // Act - Schedule a signal for 8 seconds in the future + const scheduledTime = new Date(Date.now() + 8000); + await taskHubClient.signalEntity(entityId, "add", 100, { signalTime: scheduledTime }); + + // Verify signal is NOT processed before scheduled time (check at 3 seconds) + await sleep(3000); + const metadataBeforeScheduledTime = await taskHubClient.getEntity<{ count: number }>(entityId); + // Entity should either not exist or have count = 0 (not 100) + const countBefore = metadataBeforeScheduledTime?.state?.count ?? 0; + expect(countBefore).toBe(0); + + // Wait past the scheduled time plus buffer for processing + await sleep(8000); + + // Assert - Signal should be processed after scheduled time + const metadataAfterScheduledTime = await taskHubClient.getEntity<{ count: number }>(entityId); + expect(metadataAfterScheduledTime?.state?.count).toBe(100); + }, 30000); + }); +}); + +// Helper function +function sleep(ms: number): Promise { + return new Promise((resolve) => setTimeout(resolve, ms)); +} diff --git a/test/e2e-azuremanaged/query-apis.spec.ts b/test/e2e-azuremanaged/query-apis.spec.ts index 0630329..fd03e0d 100644 --- a/test/e2e-azuremanaged/query-apis.spec.ts +++ b/test/e2e-azuremanaged/query-apis.spec.ts @@ -426,14 +426,13 @@ describe("Query APIs E2E Tests", () => { taskHubWorker.addOrchestrator(simpleOrchestrator); await taskHubWorker.start(); - const beforeTime = new Date(); - await new Promise((resolve) => setTimeout(resolve, 100)); + // Use a wide time window to account for clock differences between client and server + const beforeTime = new Date(Date.now() - 60000); // 1 minute ago const id = await taskHubClient.scheduleNewOrchestration(simpleOrchestrator); await taskHubClient.waitForOrchestrationCompletion(id, undefined, 30); - await new Promise((resolve) => setTimeout(resolve, 100)); - const afterTime = new Date(); + const afterTime = new Date(Date.now() + 60000); // 1 minute from now // List with completed time filter const page = await taskHubClient.listInstanceIds({