<html lang="en">
<head></head>
<body>

<form id="mainForm" method="post" action="https://stackblitz.com/run" target="_self">
<input type="hidden" name="project[files][README.md]" value="# Kitchen Sink Example for RivetKit

Example project demonstrating all RivetKit features with [RivetKit](https://rivetkit.org).

[Learn More →](https://github.com/rivet-dev/rivetkit)

[Discord](https://rivet.dev/discord) — [Documentation](https://rivetkit.org) — [Issues](https://github.com/rivet-dev/rivetkit/issues)

## Getting Started

### Prerequisites

- Node.js 18+ or Bun
- RivetKit development environment

### Installation

```sh
git clone https://github.com/rivet-dev/rivetkit
cd rivetkit/examples/kitchen-sink
npm install
```

### Development

```sh
npm run dev
```

This will start both the backend server (port 8080) and frontend development server (port 5173).

Open [http://localhost:5173](http://localhost:5173) in your browser.

## License

Apache 2.0
">
<input type="hidden" name="project[files][SPEC.md]" value="# Kitchen Sink Example Specification

## Overview
Comprehensive example demonstrating all RivetKit features with a simple React frontend.

## UI Structure

### Header (Always visible)

**Configuration Row 1:**
- **Transport**: WebSocket ↔ SSE toggle
- **Encoding**: JSON ↔ CBOR ↔ Bare dropdown
- **Connection Mode**: Handle ↔ Connection toggle

**Actor Management Row 2:**
- **Actor Name**: dropdown
- **Key**: input
- **Region**: input
- **Input JSON**: textarea
- **Buttons**: `create()` | `get()` | `getOrCreate()` | `getForId()` (when no actor connected)
- **OR Button**: `dispose()` (when actor connected)

**Status Row 3:**
- Connection status indicator with actor info (Name | Key | Actor ID | Status)

### Main Content (8 Tabs - disabled until actor connected)

#### 1. Actions
- Action name dropdown/input
- Arguments JSON textarea
- Call button
- Response display

#### 2. Events
- Event listener controls
- Live event feed with timestamps
- Event type filter

#### 3. Schedule
- `schedule.at()` with timestamp input
- `schedule.after()` with delay input
- Scheduled task history
- Custom alarm data input

#### 4. Sleep
- `sleep()` button
- Sleep timeout configuration
- Lifecycle event display (`onStart`, `onStop`)

#### 5. Connections (Only visible in Connection Mode)
- Connection state display
- Connection info (ID, transport, encoding)
- Connection-specific event history

#### 6. Raw HTTP
- HTTP method dropdown
- Path input
- Headers textarea
- Body textarea
- Send button &amp; response display

#### 7. Raw WebSocket
- Message input (text/binary toggle)
- Send button
- Message history (sent/received with timestamps)

#### 8. Metadata
- Actor name, tags, region display

## User Flow
1. Configure transport/encoding/connection mode
2. Fill actor details (name, key, region, input)
3. Click create/get/getOrCreate/getForId
4. Status shows connection info, tabs become enabled
5. Use tabs to test features
6. Click dispose() to disconnect and return to step 1

## Actors

### 1. `demo` - Main comprehensive actor
- All action types (sync/async/promise)
- Events and state management
- Scheduling capabilities (`schedule.at()`, `schedule.after()`)
- Sleep functionality with configurable timeout
- Connection state support
- Lifecycle hooks (`onStart`, `onStop`, `onConnect`, `onDisconnect`)
- Metadata access

### 2. `http` - Raw HTTP handling
- `onFetch()` handler
- Multiple endpoint examples
- Various HTTP methods support

### 3. `websocket` - Raw WebSocket handling
- `onWebSocket()` handler
- Text and binary message support
- Connection lifecycle management

## Features Demonstrated

### Core Features
- **Actions**: sync, async, promise-based with various input types
- **Events**: broadcasting to connected clients
- **State Management**: actor state + per-connection state
- **Scheduling**: `schedule.at()`, `schedule.after()` with alarm handlers
- **Force Sleep**: `sleep()` method with configurable sleep timeout
- **Lifecycle Hooks**: `onStart`, `onStop`, `onConnect`, `onDisconnect`

### Configuration Options
- **Transport**: WebSocket vs Server-Sent Events
- **Encoding**: JSON, CBOR, Bare

### Raw Protocols
- **Raw HTTP**: Direct HTTP request handling
- **Raw WebSocket**: Direct WebSocket connection handling

### Connection Patterns
- **Handle Mode**: Fire-and-forget action calls
- **Connection Mode**: Persistent connection with real-time events

### Actor Management
- **Create**: `client.actor.create(key, opts)`
- **Get**: `client.actor.get(key, opts)`
- **Get or Create**: `client.actor.getOrCreate(key, opts)`
- **Get by ID**: `client.actor.getForId(actorId, opts)`
- **Dispose**: `client.dispose()` - disconnect all connections">
<input type="hidden" name="project[files][index.html]" value="&lt;!doctype html&gt;
&lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot; /&gt;
    &lt;link rel=&quot;icon&quot; type=&quot;image/svg+xml&quot; href=&quot;/vite.svg&quot; /&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;
    &lt;title&gt;RivetKit Kitchen Sink&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id=&quot;root&quot;&gt;&lt;/div&gt;
    &lt;script type=&quot;module&quot; src=&quot;/src/frontend/main.tsx&quot;&gt;&lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;">
<input type="hidden" name="project[files][package.json]" value="{&quot;name&quot;:&quot;example-kitchen-sink&quot;,&quot;private&quot;:true,&quot;version&quot;:&quot;2.0.20&quot;,&quot;type&quot;:&quot;module&quot;,&quot;scripts&quot;:{&quot;dev&quot;:&quot;concurrently \&quot;npm run dev:backend\&quot; \&quot;npm run dev:frontend\&quot;&quot;,&quot;dev:backend&quot;:&quot;tsx --watch src/backend/server.ts&quot;,&quot;dev:frontend&quot;:&quot;vite&quot;,&quot;build&quot;:&quot;tsc &amp;&amp; vite build&quot;,&quot;preview&quot;:&quot;vite preview&quot;,&quot;check-types&quot;:&quot;tsc --noEmit&quot;},&quot;dependencies&quot;:{&quot;@rivetkit/react&quot;:&quot;https://pkg.pr.new/rivet-dev/rivetkit/@rivetkit/react@54999214372f9ecb3f4251a3be45c7a0eb8dfacf&quot;,&quot;rivetkit&quot;:&quot;https://pkg.pr.new/rivet-dev/rivetkit/rivetkit@54999214372f9ecb3f4251a3be45c7a0eb8dfacf&quot;,&quot;react&quot;:&quot;^18.2.0&quot;,&quot;react-dom&quot;:&quot;^18.2.0&quot;},&quot;devDependencies&quot;:{&quot;@types/react&quot;:&quot;^18.2.66&quot;,&quot;@types/react-dom&quot;:&quot;^18.2.22&quot;,&quot;@vitejs/plugin-react&quot;:&quot;^4.2.1&quot;,&quot;concurrently&quot;:&quot;^8.2.2&quot;,&quot;tsx&quot;:&quot;^4.7.1&quot;,&quot;typescript&quot;:&quot;^5.2.2&quot;,&quot;vite&quot;:&quot;^5.2.0&quot;}}">
<input type="hidden" name="project[files][tsconfig.json]" value="{
  &quot;compilerOptions&quot;: {
    &quot;target&quot;: &quot;ES2020&quot;,
    &quot;useDefineForClassFields&quot;: true,
    &quot;lib&quot;: [&quot;ES2020&quot;, &quot;DOM&quot;, &quot;DOM.Iterable&quot;],
    &quot;module&quot;: &quot;ESNext&quot;,
    &quot;skipLibCheck&quot;: true,
    &quot;moduleResolution&quot;: &quot;bundler&quot;,
    &quot;allowImportingTsExtensions&quot;: true,
    &quot;resolveJsonModule&quot;: true,
    &quot;isolatedModules&quot;: true,
    &quot;noEmit&quot;: true,
    &quot;jsx&quot;: &quot;react-jsx&quot;,
    &quot;strict&quot;: true,
    &quot;noUnusedLocals&quot;: true,
    &quot;noUnusedParameters&quot;: true,
    &quot;noFallthroughCasesInSwitch&quot;: true
  },
  &quot;include&quot;: [&quot;src&quot;],
  &quot;references&quot;: [{ &quot;path&quot;: &quot;./tsconfig.node.json&quot; }]
}
">
<input type="hidden" name="project[files][tsconfig.node.json]" value="{
  &quot;compilerOptions&quot;: {
    &quot;composite&quot;: true,
    &quot;skipLibCheck&quot;: true,
    &quot;module&quot;: &quot;ESNext&quot;,
    &quot;moduleResolution&quot;: &quot;bundler&quot;,
    &quot;allowSyntheticDefaultImports&quot;: true
  },
  &quot;include&quot;: [&quot;vite.config.ts&quot;]
}
">
<input type="hidden" name="project[files][turbo.json]" value="{
  &quot;$schema&quot;: &quot;https://turbo.build/schema.json&quot;,
  &quot;extends&quot;: [&quot;//&quot;]
}
">
<input type="hidden" name="project[files][vite.config.ts]" value="import react from &quot;@vitejs/plugin-react&quot;;
import { defineConfig } from &quot;vite&quot;;

export default defineConfig({
	plugins: [react()],
	server: {
		port: 5173,
	},
});
">
<input type="hidden" name="project[files][.turbo/turbo-build.log]" value="
&gt; example-kitchen-sink@2.0.20 build /home/runner/work/rivetkit/rivetkit/examples/kitchen-sink
&gt; tsc &amp;&amp; vite build

[36mvite v5.4.19 [32mbuilding for production...[36m[39m
transforming...
[32m✓[39m 253 modules transformed.
rendering chunks...
computing gzip size...
[2mdist/[22m[32mindex.html                 [39m[1m[2m  0.47 kB[22m[1m[22m[2m │ gzip:   0.30 kB[22m
[2mdist/[22m[2massets/[22m[35mindex-D9LzmAbN.css  [39m[1m[2m 13.10 kB[22m[1m[22m[2m │ gzip:   3.08 kB[22m
[2mdist/[22m[2massets/[22m[36mindex-eviOFpOs.js   [39m[1m[33m541.44 kB[39m[22m[2m │ gzip: 150.34 kB[22m
[33m
(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.[39m
[32m✓ built in 10.82s[39m
">
<input type="hidden" name="project[files][dist/index.html]" value="&lt;!doctype html&gt;
&lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot; /&gt;
    &lt;link rel=&quot;icon&quot; type=&quot;image/svg+xml&quot; href=&quot;/vite.svg&quot; /&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;
    &lt;title&gt;RivetKit Kitchen Sink&lt;/title&gt;
    &lt;script type=&quot;module&quot; crossorigin src=&quot;/assets/index-eviOFpOs.js&quot;&gt;&lt;/script&gt;
    &lt;link rel=&quot;stylesheet&quot; crossorigin href=&quot;/assets/index-D9LzmAbN.css&quot;&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id=&quot;root&quot;&gt;&lt;/div&gt;
  &lt;/body&gt;
&lt;/html&gt;">
<input type="hidden" name="project[files][dist/assets/index-D9LzmAbN.css]" value="*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Inter,Roboto,sans-serif;background:#000;color:#fff;height:100vh;overflow:hidden;margin:0;padding:0}:root{--primary-color: #007aff;--primary-hover: #0056cc;--primary-light: rgba(0, 122, 255, .1);--success-color: #30d158;--success-light: rgba(48, 209, 88, .1);--danger-color: #ff3b30;--danger-light: rgba(255, 59, 48, .1);--warning-color: #ff9500;--warning-light: rgba(255, 149, 0, .1);--bg-primary: #000000;--bg-secondary: #1c1c1e;--bg-tertiary: #2c2c2e;--bg-quaternary: #3a3a3c;--text-primary: #ffffff;--text-secondary: #8e8e93;--text-tertiary: #64748b;--border-primary: #2c2c2e;--border-secondary: #3a3a3c;--border-tertiary: #48484a;--border-radius: 8px;--border-radius-sm: 6px;--border-radius-lg: 12px;--border-radius-xl: 16px;--shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);--shadow: 0 2px 10px rgba(0, 0, 0, .4);--shadow-lg: 0 4px 20px rgba(0, 0, 0, .5)}.app{display:flex;height:100vh;width:100vw;background:var(--bg-primary);overflow:hidden}.form-group{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}.form-group label{font-weight:600;color:var(--text-secondary);font-size:14px;display:block;margin-bottom:8px}.form-control{width:100%;padding:10px 14px;border:1px solid var(--border-secondary);border-radius:var(--border-radius);font-size:14px;transition:all .2s ease;background:var(--bg-tertiary);color:var(--text-primary)}.form-control:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px var(--primary-light)}.form-control:hover{border-color:var(--border-tertiary)}.form-control::placeholder{color:var(--text-tertiary);opacity:.6}.toggle{display:flex;background:var(--bg-tertiary);border-radius:var(--border-radius);overflow:hidden;border:1px solid var(--border-secondary);box-shadow:var(--shadow-sm)}.toggle button{padding:8px 16px;border:none;background:transparent;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s ease;color:var(--text-secondary)}.toggle button.active{background:var(--primary-color);color:#fff}.toggle-group{display:flex;background:var(--bg-tertiary);border-radius:var(--border-radius);overflow:hidden;border:1px solid var(--border-secondary);padding:2px;gap:2px}.toggle-button{flex:1;padding:8px 12px;border:none;background:transparent;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s ease;color:var(--text-secondary);border-radius:calc(var(--border-radius) - 2px);text-align:center}.toggle-button:hover:not(.active){background:var(--bg-quaternary);color:var(--text-primary)}.toggle-button.active{background:var(--primary-color);color:#fff;box-shadow:0 1px 3px #007aff4d}.btn{padding:10px 20px;border:1px solid var(--border-secondary);border-radius:var(--border-radius);background:var(--bg-tertiary);color:var(--text-primary);cursor:pointer;font-size:14px;font-weight:500;transition:all .2s ease;box-shadow:var(--shadow-sm)}.btn:hover{background:var(--bg-quaternary);border-color:var(--border-tertiary);transform:translateY(-1px);box-shadow:var(--shadow)}.btn-primary{background:var(--primary-color);color:#fff;border-color:var(--primary-color);font-weight:500}.btn-primary:hover{background:var(--primary-hover);border-color:var(--primary-hover);transform:translateY(-1px)}.btn-danger{background:var(--danger-color);color:#fff;border-color:var(--danger-color);font-weight:500}.btn-danger:hover{background:#c82333;border-color:#c82333;transform:translateY(-1px)}.btn-secondary{background:var(--bg-tertiary);color:var(--text-primary);border-color:var(--border-secondary);font-weight:500}.btn-secondary:hover{background:var(--bg-quaternary);border-color:var(--border-tertiary);transform:translateY(-1px)}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none;background:var(--bg-quaternary);border-color:var(--border-secondary);color:var(--text-secondary)}.status{padding:10px;border-radius:4px;font-size:14px;margin-top:10px}.status.connected{background:var(--success-light);color:#155724;border:1px solid #c3e6cb;border-left:4px solid var(--success-color)}.status.disconnected{background:var(--danger-light);color:#721c24;border:1px solid #f5c6cb;border-left:4px solid var(--danger-color)}.tabs{background:var(--bg-secondary);border-radius:0 0 var(--border-radius) var(--border-radius);box-shadow:var(--shadow);border:1px solid var(--border-primary);overflow:hidden;flex:1;display:flex;flex-direction:column}.tab-list{display:flex;border-bottom:1px solid var(--border-primary);overflow-x:auto;background:var(--bg-secondary);flex-shrink:0}.tab-button{padding:16px 24px;border:none;background:none;cursor:pointer;font-size:14px;font-weight:500;border-bottom:3px solid transparent;transition:all .2s ease;white-space:nowrap;color:var(--text-secondary)}.tab-button:hover{background:var(--bg-tertiary);color:var(--text-primary)}.tab-button.active{border-bottom-color:var(--primary-color);color:var(--primary-color);background:var(--primary-light)}.tab-button:disabled{opacity:.4;cursor:not-allowed}.tab-content{padding:20px;background:var(--bg-primary);flex:1;overflow-y:auto}.section{margin-bottom:32px;padding:20px;background:var(--bg-secondary);border-radius:var(--border-radius);border:1px solid var(--border-primary);box-shadow:var(--shadow-sm)}.section:last-child{margin-bottom:0}.section h3{margin:-20px -20px 20px;padding:16px 20px;color:var(--text-primary);font-size:18px;font-weight:600;background:var(--bg-tertiary);border-bottom:1px solid var(--border-primary);border-radius:var(--border-radius) var(--border-radius) 0 0}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:15px;margin-bottom:15px}.textarea{min-height:80px;resize:vertical;font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace;line-height:1.5}.response{background:var(--bg-tertiary);border:1px solid var(--border-secondary);border-radius:var(--border-radius);padding:16px;margin-top:16px;font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace;font-size:13px;line-height:1.5;white-space:pre-wrap;max-height:300px;overflow-y:auto;box-shadow:inset 0 1px 3px #0006;color:var(--text-primary)}.event-list{max-height:400px;overflow-y:auto;border:1px solid var(--border-secondary);border-radius:var(--border-radius);background:var(--bg-tertiary);box-shadow:inset 0 1px 3px #0006}.event-item{padding:12px 16px;border-bottom:1px solid var(--border-primary);font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace;font-size:13px;line-height:1.4;transition:background-color .2s ease;color:var(--text-primary)}.event-item:last-child{border-bottom:none}.event-item:hover{background:var(--bg-secondary)}.event-item .timestamp{color:var(--text-secondary);margin-right:12px;font-size:12px}.event-item .name{color:var(--primary-color);font-weight:600;margin-right:12px}.event-item .name.sent{color:var(--success-color)}.event-item .name.received{color:var(--primary-color)}.disabled-content{opacity:.5;pointer-events:none;filter:grayscale(20%)}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--bg-quaternary);border-radius:3px;transition:background .2s ease}::-webkit-scrollbar-thumb:hover{background:var(--border-tertiary)}*:focus-visible{outline:2px solid var(--primary-color);outline-offset:2px}@media (max-width: 768px){.app{padding:16px}.form-group{flex-direction:column;align-items:stretch;gap:8px}.form-group label{min-width:auto}.tab-list{overflow-x:auto;-webkit-overflow-scrolling:touch}.section{padding:16px;margin-bottom:24px}.section h3{margin:-16px -16px 16px;padding:12px 16px}}select.form-control{background-image:url(&quot;data:image/svg+xml,%3csvg xmlns=&#39;http://www.w3.org/2000/svg&#39; fill=&#39;none&#39; viewBox=&#39;0 0 20 20&#39;%3e%3cpath stroke=&#39;%236b7280&#39; stroke-linecap=&#39;round&#39; stroke-linejoin=&#39;round&#39; stroke-width=&#39;1.5&#39; d=&#39;m6 8 4 4 4-4&#39;/%3e%3c/svg%3e&quot;);background-position:right 8px center;background-repeat:no-repeat;background-size:16px;padding-right:40px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.section:first-child{margin-top:0}.status{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:var(--border-radius-sm);font-size:14px;font-weight:500;margin-top:12px}.status.connected:before{content:&quot;🟢&quot;;font-size:12px}.status.disconnected:before{content:&quot;🔴&quot;;font-size:12px}.toggle button.active{background:var(--primary-color);color:#fff;box-shadow:0 2px 4px #007bff4d}.toggle button:hover:not(.active){background:var(--bg-quaternary);color:var(--text-primary)}.btn-primary:active{transform:translateY(0);box-shadow:0 1px 3px #007bff4d}.btn-danger:active{transform:translateY(0);box-shadow:0 1px 3px #dc35454d}code{background:var(--bg-tertiary);color:var(--text-primary);padding:2px 6px;border-radius:3px;font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace;font-size:.9em}pre{background:var(--bg-tertiary);border:1px solid var(--border-secondary);border-radius:var(--border-radius-sm);padding:16px;overflow-x:auto;font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace;font-size:13px;line-height:1.5;color:var(--text-primary)}.btn[aria-busy=true]{position:relative;color:transparent}.btn[aria-busy=true]:after{content:&quot;&quot;;position:absolute;width:16px;height:16px;top:50%;left:50%;margin-left:-8px;margin-top:-8px;border:2px solid transparent;border-top:2px solid white;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-bottom:20px}@media (max-width: 768px){.form-grid{grid-template-columns:1fr;gap:16px}}.connection-screen{display:flex;align-items:center;justify-content:center;padding:24px;width:100%;height:100%}.connection-modal{max-width:500px;width:100%;background:var(--bg-secondary);border-radius:var(--border-radius-lg);box-shadow:var(--shadow-lg);border:1px solid var(--border-primary);overflow:hidden;max-height:90vh;overflow-y:auto}.modal-header{padding:24px 24px 0;text-align:center}.modal-header h1{margin:0 0 8px;font-size:24px;font-weight:600;color:var(--text-primary)}.modal-header p{margin:0 0 24px;font-size:14px;color:var(--text-secondary)}.modal-content{padding:0 24px 24px}.method-toggle{display:grid;grid-template-columns:repeat(4,1fr)}.method-toggle .toggle-button{font-size:13px;padding:8px;white-space:nowrap}.form-section{margin-bottom:24px}.form-section:last-child{margin-bottom:0}.form-section h3{margin:0 0 16px;color:var(--text-primary);font-size:16px;font-weight:600;border-bottom:1px solid var(--border-primary);padding-bottom:8px}.modal-actions{text-align:center;padding-top:24px;border-top:1px solid var(--border-primary)}.connect-button{font-size:16px;padding:12px 32px;font-weight:600;min-width:160px}.actor-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.actor-actions .btn{padding:10px 16px;font-size:13px;font-weight:500}.interaction-modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#000c;display:flex;align-items:center;justify-content:center;padding:24px;z-index:2000}.interaction-modal{display:flex;flex-direction:column;width:90vw;max-width:1400px;height:85vh;background:var(--bg-primary);border-radius:var(--border-radius-lg);box-shadow:var(--shadow-lg);border:1px solid var(--border-primary);overflow:hidden}.interaction-header{background:var(--bg-secondary);padding:20px;border-bottom:1px solid var(--border-primary);flex-shrink:0}.connection-info{display:flex;justify-content:space-between;align-items:center;gap:20px}.connection-details h2{margin:0 0 8px;color:var(--text-primary);font-size:24px;font-weight:600}.connection-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.actor-name{background:var(--primary-color);color:#fff;padding:4px 12px;border-radius:20px;font-weight:500;font-size:14px}.actor-key{background:var(--bg-tertiary);color:var(--text-secondary);padding:4px 10px;border-radius:16px;font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace;font-size:13px}.transport-info{background:var(--success-light);color:var(--success-color);padding:4px 10px;border-radius:16px;font-weight:500;font-size:12px;text-transform:uppercase}.mode-info{padding:4px 10px;border-radius:16px;font-weight:500;font-size:13px}.mode-info.connection{background:var(--primary-light);color:var(--primary-color)}.mode-info.handle{background:var(--warning-light);color:var(--warning-color)}.connection-actions{display:flex;gap:12px;align-items:center}@media (max-width: 768px){.connection-screen{padding:16px}.connection-modal{max-width:none;width:100%;max-height:95vh}.modal-header{padding:20px 20px 0}.modal-header h1{font-size:20px}.modal-content{padding:0 20px 20px}.form-section{margin-bottom:20px}.actor-actions{grid-template-columns:1fr;gap:8px}.method-toggle{grid-template-columns:repeat(2,1fr);gap:4px}.method-toggle .toggle-button{font-size:12px;padding:8px 6px}.connection-info{flex-direction:column;align-items:stretch;gap:16px}.connection-actions,.connection-meta{justify-content:center}.interaction-modal-overlay{padding:16px}.interaction-modal{width:100%;height:90vh;max-width:none}}
">
<input type="hidden" name="project[files][dist/assets/index-eviOFpOs.js]" value="var zb=Object.defineProperty;var Wp=e=&gt;{throw TypeError(e)};var Tb=(e,t,n)=&gt;t in e?zb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var hn=(e,t,n)=&gt;Tb(e,typeof t!=&quot;symbol&quot;?t+&quot;&quot;:t,n),Nu=(e,t,n)=&gt;t.has(e)||Wp(&quot;Cannot &quot;+n);var w=(e,t,n)=&gt;(Nu(e,t,&quot;read from private field&quot;),n?n.call(e):t.get(e)),pe=(e,t,n)=&gt;t.has(e)?Wp(&quot;Cannot add the same private member more than once&quot;):t instanceof WeakSet?t.add(e):t.set(e,n),ge=(e,t,n,i)=&gt;(Nu(e,t,&quot;write to private field&quot;),i?i.call(e,n):t.set(e,n),n),ve=(e,t,n)=&gt;(Nu(e,t,&quot;access private method&quot;),n);(function(){const t=document.createElement(&quot;link&quot;).relList;if(t&amp;&amp;t.supports&amp;&amp;t.supports(&quot;modulepreload&quot;))return;for(const r of document.querySelectorAll(&#39;link[rel=&quot;modulepreload&quot;]&#39;))i(r);new MutationObserver(r=&gt;{for(const o of r)if(o.type===&quot;childList&quot;)for(const a of o.addedNodes)a.tagName===&quot;LINK&quot;&amp;&amp;a.rel===&quot;modulepreload&quot;&amp;&amp;i(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&amp;&amp;(o.integrity=r.integrity),r.referrerPolicy&amp;&amp;(o.referrerPolicy=r.referrerPolicy),r.crossOrigin===&quot;use-credentials&quot;?o.credentials=&quot;include&quot;:r.crossOrigin===&quot;anonymous&quot;?o.credentials=&quot;omit&quot;:o.credentials=&quot;same-origin&quot;,o}function i(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function Qd(e){return e&amp;&amp;e.__esModule&amp;&amp;Object.prototype.hasOwnProperty.call(e,&quot;default&quot;)?e.default:e}var ev={exports:{}},Vl={},tv={exports:{}},ce={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ma=Symbol.for(&quot;react.element&quot;),Cb=Symbol.for(&quot;react.portal&quot;),Ab=Symbol.for(&quot;react.fragment&quot;),Pb=Symbol.for(&quot;react.strict_mode&quot;),Ub=Symbol.for(&quot;react.profiler&quot;),Db=Symbol.for(&quot;react.provider&quot;),Rb=Symbol.for(&quot;react.context&quot;),Lb=Symbol.for(&quot;react.forward_ref&quot;),Zb=Symbol.for(&quot;react.suspense&quot;),Mb=Symbol.for(&quot;react.memo&quot;),Fb=Symbol.for(&quot;react.lazy&quot;),Hp=Symbol.iterator;function Bb(e){return e===null||typeof e!=&quot;object&quot;?null:(e=Hp&amp;&amp;e[Hp]||e[&quot;@@iterator&quot;],typeof e==&quot;function&quot;?e:null)}var nv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},rv=Object.assign,iv={};function oo(e,t,n){this.props=e,this.context=t,this.refs=iv,this.updater=n||nv}oo.prototype.isReactComponent={};oo.prototype.setState=function(e,t){if(typeof e!=&quot;object&quot;&amp;&amp;typeof e!=&quot;function&quot;&amp;&amp;e!=null)throw Error(&quot;setState(...): takes an object of state variables to update or a function which returns an object of state variables.&quot;);this.updater.enqueueSetState(this,e,t,&quot;setState&quot;)};oo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,&quot;forceUpdate&quot;)};function ov(){}ov.prototype=oo.prototype;function Xd(e,t,n){this.props=e,this.context=t,this.refs=iv,this.updater=n||nv}var Yd=Xd.prototype=new ov;Yd.constructor=Xd;rv(Yd,oo.prototype);Yd.isPureReactComponent=!0;var Kp=Array.isArray,av=Object.prototype.hasOwnProperty,ef={current:null},sv={key:!0,ref:!0,__self:!0,__source:!0};function lv(e,t,n){var i,r={},o=null,a=null;if(t!=null)for(i in t.ref!==void 0&amp;&amp;(a=t.ref),t.key!==void 0&amp;&amp;(o=&quot;&quot;+t.key),t)av.call(t,i)&amp;&amp;!sv.hasOwnProperty(i)&amp;&amp;(r[i]=t[i]);var s=arguments.length-2;if(s===1)r.children=n;else if(1&lt;s){for(var l=Array(s),u=0;u&lt;s;u++)l[u]=arguments[u+2];r.children=l}if(e&amp;&amp;e.defaultProps)for(i in s=e.defaultProps,s)r[i]===void 0&amp;&amp;(r[i]=s[i]);return{$$typeof:Ma,type:e,key:o,ref:a,props:r,_owner:ef.current}}function Vb(e,t){return{$$typeof:Ma,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function tf(e){return typeof e==&quot;object&quot;&amp;&amp;e!==null&amp;&amp;e.$$typeof===Ma}function Wb(e){var t={&quot;=&quot;:&quot;=0&quot;,&quot;:&quot;:&quot;=2&quot;};return&quot;$&quot;+e.replace(/[=:]/g,function(n){return t[n]})}var Jp=/\/+/g;function ju(e,t){return typeof e==&quot;object&quot;&amp;&amp;e!==null&amp;&amp;e.key!=null?Wb(&quot;&quot;+e.key):t.toString(36)}function zs(e,t,n,i,r){var o=typeof e;(o===&quot;undefined&quot;||o===&quot;boolean&quot;)&amp;&amp;(e=null);var a=!1;if(e===null)a=!0;else switch(o){case&quot;string&quot;:case&quot;number&quot;:a=!0;break;case&quot;object&quot;:switch(e.$$typeof){case Ma:case Cb:a=!0}}if(a)return a=e,r=r(a),e=i===&quot;&quot;?&quot;.&quot;+ju(a,0):i,Kp(r)?(n=&quot;&quot;,e!=null&amp;&amp;(n=e.replace(Jp,&quot;$&amp;/&quot;)+&quot;/&quot;),zs(r,t,n,&quot;&quot;,function(u){return u})):r!=null&amp;&amp;(tf(r)&amp;&amp;(r=Vb(r,n+(!r.key||a&amp;&amp;a.key===r.key?&quot;&quot;:(&quot;&quot;+r.key).replace(Jp,&quot;$&amp;/&quot;)+&quot;/&quot;)+e)),t.push(r)),1;if(a=0,i=i===&quot;&quot;?&quot;.&quot;:i+&quot;:&quot;,Kp(e))for(var s=0;s&lt;e.length;s++){o=e[s];var l=i+ju(o,s);a+=zs(o,t,n,l,r)}else if(l=Bb(e),typeof l==&quot;function&quot;)for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=i+ju(o,s++),a+=zs(o,t,n,l,r);else if(o===&quot;object&quot;)throw t=String(e),Error(&quot;Objects are not valid as a React child (found: &quot;+(t===&quot;[object Object]&quot;?&quot;object with keys {&quot;+Object.keys(e).join(&quot;, &quot;)+&quot;}&quot;:t)+&quot;). If you meant to render a collection of children, use an array instead.&quot;);return a}function as(e,t,n){if(e==null)return e;var i=[],r=0;return zs(e,i,&quot;&quot;,&quot;&quot;,function(o){return t.call(n,o,r++)}),i}function Hb(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&amp;&amp;(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&amp;&amp;(e._status=2,e._result=n)}),e._status===-1&amp;&amp;(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var gt={current:null},Ts={transition:null},Kb={ReactCurrentDispatcher:gt,ReactCurrentBatchConfig:Ts,ReactCurrentOwner:ef};function uv(){throw Error(&quot;act(...) is not supported in production builds of React.&quot;)}ce.Children={map:as,forEach:function(e,t,n){as(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return as(e,function(){t++}),t},toArray:function(e){return as(e,function(t){return t})||[]},only:function(e){if(!tf(e))throw Error(&quot;React.Children.only expected to receive a single React element child.&quot;);return e}};ce.Component=oo;ce.Fragment=Ab;ce.Profiler=Ub;ce.PureComponent=Xd;ce.StrictMode=Pb;ce.Suspense=Zb;ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kb;ce.act=uv;ce.cloneElement=function(e,t,n){if(e==null)throw Error(&quot;React.cloneElement(...): The argument must be a React element, but you passed &quot;+e+&quot;.&quot;);var i=rv({},e.props),r=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&amp;&amp;(o=t.ref,a=ef.current),t.key!==void 0&amp;&amp;(r=&quot;&quot;+t.key),e.type&amp;&amp;e.type.defaultProps)var s=e.type.defaultProps;for(l in t)av.call(t,l)&amp;&amp;!sv.hasOwnProperty(l)&amp;&amp;(i[l]=t[l]===void 0&amp;&amp;s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)i.children=n;else if(1&lt;l){s=Array(l);for(var u=0;u&lt;l;u++)s[u]=arguments[u+2];i.children=s}return{$$typeof:Ma,type:e.type,key:r,ref:o,props:i,_owner:a}};ce.createContext=function(e){return e={$$typeof:Rb,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Db,_context:e},e.Consumer=e};ce.createElement=lv;ce.createFactory=function(e){var t=lv.bind(null,e);return t.type=e,t};ce.createRef=function(){return{current:null}};ce.forwardRef=function(e){return{$$typeof:Lb,render:e}};ce.isValidElement=tf;ce.lazy=function(e){return{$$typeof:Fb,_payload:{_status:-1,_result:e},_init:Hb}};ce.memo=function(e,t){return{$$typeof:Mb,type:e,compare:t===void 0?null:t}};ce.startTransition=function(e){var t=Ts.transition;Ts.transition={};try{e()}finally{Ts.transition=t}};ce.unstable_act=uv;ce.useCallback=function(e,t){return gt.current.useCallback(e,t)};ce.useContext=function(e){return gt.current.useContext(e)};ce.useDebugValue=function(){};ce.useDeferredValue=function(e){return gt.current.useDeferredValue(e)};ce.useEffect=function(e,t){return gt.current.useEffect(e,t)};ce.useId=function(){return gt.current.useId()};ce.useImperativeHandle=function(e,t,n){return gt.current.useImperativeHandle(e,t,n)};ce.useInsertionEffect=function(e,t){return gt.current.useInsertionEffect(e,t)};ce.useLayoutEffect=function(e,t){return gt.current.useLayoutEffect(e,t)};ce.useMemo=function(e,t){return gt.current.useMemo(e,t)};ce.useReducer=function(e,t,n){return gt.current.useReducer(e,t,n)};ce.useRef=function(e){return gt.current.useRef(e)};ce.useState=function(e){return gt.current.useState(e)};ce.useSyncExternalStore=function(e,t,n){return gt.current.useSyncExternalStore(e,t,n)};ce.useTransition=function(){return gt.current.useTransition()};ce.version=&quot;18.3.1&quot;;tv.exports=ce;var q=tv.exports;const Jb=Qd(q);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Gb=q,qb=Symbol.for(&quot;react.element&quot;),Qb=Symbol.for(&quot;react.fragment&quot;),Xb=Object.prototype.hasOwnProperty,Yb=Gb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,eS={key:!0,ref:!0,__self:!0,__source:!0};function cv(e,t,n){var i,r={},o=null,a=null;n!==void 0&amp;&amp;(o=&quot;&quot;+n),t.key!==void 0&amp;&amp;(o=&quot;&quot;+t.key),t.ref!==void 0&amp;&amp;(a=t.ref);for(i in t)Xb.call(t,i)&amp;&amp;!eS.hasOwnProperty(i)&amp;&amp;(r[i]=t[i]);if(e&amp;&amp;e.defaultProps)for(i in t=e.defaultProps,t)r[i]===void 0&amp;&amp;(r[i]=t[i]);return{$$typeof:qb,type:e,key:o,ref:a,props:r,_owner:Yb.current}}Vl.Fragment=Qb;Vl.jsx=cv;Vl.jsxs=cv;ev.exports=Vl;var c=ev.exports,pc={},dv={exports:{}},At={},fv={exports:{}},mv={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(z,M){var F=z.length;z.push(M);e:for(;0&lt;F;){var X=F-1&gt;&gt;&gt;1,ee=z[X];if(0&lt;r(ee,M))z[X]=M,z[F]=ee,F=X;else break e}}function n(z){return z.length===0?null:z[0]}function i(z){if(z.length===0)return null;var M=z[0],F=z.pop();if(F!==M){z[0]=F;e:for(var X=0,ee=z.length,Er=ee&gt;&gt;&gt;1;X&lt;Er;){var Nr=2*(X+1)-1,Eu=z[Nr],jr=Nr+1,os=z[jr];if(0&gt;r(Eu,F))jr&lt;ee&amp;&amp;0&gt;r(os,Eu)?(z[X]=os,z[jr]=F,X=jr):(z[X]=Eu,z[Nr]=F,X=Nr);else if(jr&lt;ee&amp;&amp;0&gt;r(os,F))z[X]=os,z[jr]=F,X=jr;else break e}}return M}function r(z,M){var F=z.sortIndex-M.sortIndex;return F!==0?F:z.id-M.id}if(typeof performance==&quot;object&quot;&amp;&amp;typeof performance.now==&quot;function&quot;){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],d=1,h=null,g=3,v=!1,y=!1,E=!1,N=typeof setTimeout==&quot;function&quot;?setTimeout:null,p=typeof clearTimeout==&quot;function&quot;?clearTimeout:null,f=typeof setImmediate&lt;&quot;u&quot;?setImmediate:null;typeof navigator&lt;&quot;u&quot;&amp;&amp;navigator.scheduling!==void 0&amp;&amp;navigator.scheduling.isInputPending!==void 0&amp;&amp;navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(z){for(var M=n(u);M!==null;){if(M.callback===null)i(u);else if(M.startTime&lt;=z)i(u),M.sortIndex=M.expirationTime,t(l,M);else break;M=n(u)}}function k(z){if(E=!1,m(z),!y)if(n(l)!==null)y=!0,D($);else{var M=n(u);M!==null&amp;&amp;U(k,M.startTime-z)}}function $(z,M){y=!1,E&amp;&amp;(E=!1,p(Z),Z=-1),v=!0;var F=g;try{for(m(M),h=n(l);h!==null&amp;&amp;(!(h.expirationTime&gt;M)||z&amp;&amp;!re());){var X=h.callback;if(typeof X==&quot;function&quot;){h.callback=null,g=h.priorityLevel;var ee=X(h.expirationTime&lt;=M);M=e.unstable_now(),typeof ee==&quot;function&quot;?h.callback=ee:h===n(l)&amp;&amp;i(l),m(M)}else i(l);h=n(l)}if(h!==null)var Er=!0;else{var Nr=n(u);Nr!==null&amp;&amp;U(k,Nr.startTime-M),Er=!1}return Er}finally{h=null,g=F,v=!1}}var x=!1,T=null,Z=-1,A=5,H=-1;function re(){return!(e.unstable_now()-H&lt;A)}function je(){if(T!==null){var z=e.unstable_now();H=z;var M=!0;try{M=T(!0,z)}finally{M?b():(x=!1,T=null)}}else x=!1}var b;if(typeof f==&quot;function&quot;)b=function(){f(je)};else if(typeof MessageChannel&lt;&quot;u&quot;){var W=new MessageChannel,P=W.port2;W.port1.onmessage=je,b=function(){P.postMessage(null)}}else b=function(){N(je,0)};function D(z){T=z,x||(x=!0,b())}function U(z,M){Z=N(function(){z(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_continueExecution=function(){y||v||(y=!0,D($))},e.unstable_forceFrameRate=function(z){0&gt;z||125&lt;z?console.error(&quot;forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported&quot;):A=0&lt;z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(z){switch(g){case 1:case 2:case 3:var M=3;break;default:M=g}var F=g;g=M;try{return z()}finally{g=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,M){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var F=g;g=z;try{return M()}finally{g=F}},e.unstable_scheduleCallback=function(z,M,F){var X=e.unstable_now();switch(typeof F==&quot;object&quot;&amp;&amp;F!==null?(F=F.delay,F=typeof F==&quot;number&quot;&amp;&amp;0&lt;F?X+F:X):F=X,z){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=F+ee,z={id:d++,callback:M,priorityLevel:z,startTime:F,expirationTime:ee,sortIndex:-1},F&gt;X?(z.sortIndex=F,t(u,z),n(l)===null&amp;&amp;z===n(u)&amp;&amp;(E?(p(Z),Z=-1):E=!0,U(k,F-X))):(z.sortIndex=ee,t(l,z),y||v||(y=!0,D($))),z},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(z){var M=g;return function(){var F=g;g=M;try{return z.apply(this,arguments)}finally{g=F}}}})(mv);fv.exports=mv;var tS=fv.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var nS=q,Ct=tS;function L(e){for(var t=&quot;https://reactjs.org/docs/error-decoder.html?invariant=&quot;+e,n=1;n&lt;arguments.length;n++)t+=&quot;&amp;args[]=&quot;+encodeURIComponent(arguments[n]);return&quot;Minified React error #&quot;+e+&quot;; visit &quot;+t+&quot; for the full message or use the non-minified dev environment for full errors and additional helpful warnings.&quot;}var pv=new Set,Bo={};function ii(e,t){Bi(e,t),Bi(e+&quot;Capture&quot;,t)}function Bi(e,t){for(Bo[e]=t,e=0;e&lt;t.length;e++)pv.add(t[e])}var Vn=!(typeof window&gt;&quot;u&quot;||typeof window.document&gt;&quot;u&quot;||typeof window.document.createElement&gt;&quot;u&quot;),hc=Object.prototype.hasOwnProperty,rS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Gp={},qp={};function iS(e){return hc.call(qp,e)?!0:hc.call(Gp,e)?!1:rS.test(e)?qp[e]=!0:(Gp[e]=!0,!1)}function oS(e,t,n,i){if(n!==null&amp;&amp;n.type===0)return!1;switch(typeof t){case&quot;function&quot;:case&quot;symbol&quot;:return!0;case&quot;boolean&quot;:return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!==&quot;data-&quot;&amp;&amp;e!==&quot;aria-&quot;);default:return!1}}function aS(e,t,n,i){if(t===null||typeof t&gt;&quot;u&quot;||oS(e,t,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1&gt;t}return!1}function vt(e,t,n,i,r,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var rt={};&quot;children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style&quot;.split(&quot; &quot;).forEach(function(e){rt[e]=new vt(e,0,!1,e,null,!1,!1)});[[&quot;acceptCharset&quot;,&quot;accept-charset&quot;],[&quot;className&quot;,&quot;class&quot;],[&quot;htmlFor&quot;,&quot;for&quot;],[&quot;httpEquiv&quot;,&quot;http-equiv&quot;]].forEach(function(e){var t=e[0];rt[t]=new vt(t,1,!1,e[1],null,!1,!1)});[&quot;contentEditable&quot;,&quot;draggable&quot;,&quot;spellCheck&quot;,&quot;value&quot;].forEach(function(e){rt[e]=new vt(e,2,!1,e.toLowerCase(),null,!1,!1)});[&quot;autoReverse&quot;,&quot;externalResourcesRequired&quot;,&quot;focusable&quot;,&quot;preserveAlpha&quot;].forEach(function(e){rt[e]=new vt(e,2,!1,e,null,!1,!1)});&quot;allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope&quot;.split(&quot; &quot;).forEach(function(e){rt[e]=new vt(e,3,!1,e.toLowerCase(),null,!1,!1)});[&quot;checked&quot;,&quot;multiple&quot;,&quot;muted&quot;,&quot;selected&quot;].forEach(function(e){rt[e]=new vt(e,3,!0,e,null,!1,!1)});[&quot;capture&quot;,&quot;download&quot;].forEach(function(e){rt[e]=new vt(e,4,!1,e,null,!1,!1)});[&quot;cols&quot;,&quot;rows&quot;,&quot;size&quot;,&quot;span&quot;].forEach(function(e){rt[e]=new vt(e,6,!1,e,null,!1,!1)});[&quot;rowSpan&quot;,&quot;start&quot;].forEach(function(e){rt[e]=new vt(e,5,!1,e.toLowerCase(),null,!1,!1)});var nf=/[\-:]([a-z])/g;function rf(e){return e[1].toUpperCase()}&quot;accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height&quot;.split(&quot; &quot;).forEach(function(e){var t=e.replace(nf,rf);rt[t]=new vt(t,1,!1,e,null,!1,!1)});&quot;xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type&quot;.split(&quot; &quot;).forEach(function(e){var t=e.replace(nf,rf);rt[t]=new vt(t,1,!1,e,&quot;http://www.w3.org/1999/xlink&quot;,!1,!1)});[&quot;xml:base&quot;,&quot;xml:lang&quot;,&quot;xml:space&quot;].forEach(function(e){var t=e.replace(nf,rf);rt[t]=new vt(t,1,!1,e,&quot;http://www.w3.org/XML/1998/namespace&quot;,!1,!1)});[&quot;tabIndex&quot;,&quot;crossOrigin&quot;].forEach(function(e){rt[e]=new vt(e,1,!1,e.toLowerCase(),null,!1,!1)});rt.xlinkHref=new vt(&quot;xlinkHref&quot;,1,!1,&quot;xlink:href&quot;,&quot;http://www.w3.org/1999/xlink&quot;,!0,!1);[&quot;src&quot;,&quot;href&quot;,&quot;action&quot;,&quot;formAction&quot;].forEach(function(e){rt[e]=new vt(e,1,!1,e.toLowerCase(),null,!0,!0)});function of(e,t,n,i){var r=rt.hasOwnProperty(t)?rt[t]:null;(r!==null?r.type!==0:i||!(2&lt;t.length)||t[0]!==&quot;o&quot;&amp;&amp;t[0]!==&quot;O&quot;||t[1]!==&quot;n&quot;&amp;&amp;t[1]!==&quot;N&quot;)&amp;&amp;(aS(t,n,r,i)&amp;&amp;(n=null),i||r===null?iS(t)&amp;&amp;(n===null?e.removeAttribute(t):e.setAttribute(t,&quot;&quot;+n)):r.mustUseProperty?e[r.propertyName]=n===null?r.type===3?!1:&quot;&quot;:n:(t=r.attributeName,i=r.attributeNamespace,n===null?e.removeAttribute(t):(r=r.type,n=r===3||r===4&amp;&amp;n===!0?&quot;&quot;:&quot;&quot;+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}var qn=nS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ss=Symbol.for(&quot;react.element&quot;),pi=Symbol.for(&quot;react.portal&quot;),hi=Symbol.for(&quot;react.fragment&quot;),af=Symbol.for(&quot;react.strict_mode&quot;),gc=Symbol.for(&quot;react.profiler&quot;),hv=Symbol.for(&quot;react.provider&quot;),gv=Symbol.for(&quot;react.context&quot;),sf=Symbol.for(&quot;react.forward_ref&quot;),vc=Symbol.for(&quot;react.suspense&quot;),yc=Symbol.for(&quot;react.suspense_list&quot;),lf=Symbol.for(&quot;react.memo&quot;),Yn=Symbol.for(&quot;react.lazy&quot;),vv=Symbol.for(&quot;react.offscreen&quot;),Qp=Symbol.iterator;function po(e){return e===null||typeof e!=&quot;object&quot;?null:(e=Qp&amp;&amp;e[Qp]||e[&quot;@@iterator&quot;],typeof e==&quot;function&quot;?e:null)}var Ae=Object.assign,Ou;function So(e){if(Ou===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ou=t&amp;&amp;t[1]||&quot;&quot;}return`
`+Ou+e}var zu=!1;function Tu(e,t){if(!e||zu)return&quot;&quot;;zu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,&quot;props&quot;,{set:function(){throw Error()}}),typeof Reflect==&quot;object&quot;&amp;&amp;Reflect.construct){try{Reflect.construct(t,[])}catch(u){var i=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){i=u}e.call(t.prototype)}else{try{throw Error()}catch(u){i=u}e()}}catch(u){if(u&amp;&amp;i&amp;&amp;typeof u.stack==&quot;string&quot;){for(var r=u.stack.split(`
`),o=i.stack.split(`
`),a=r.length-1,s=o.length-1;1&lt;=a&amp;&amp;0&lt;=s&amp;&amp;r[a]!==o[s];)s--;for(;1&lt;=a&amp;&amp;0&lt;=s;a--,s--)if(r[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0&gt;s||r[a]!==o[s]){var l=`
`+r[a].replace(&quot; at new &quot;,&quot; at &quot;);return e.displayName&amp;&amp;l.includes(&quot;&lt;anonymous&gt;&quot;)&amp;&amp;(l=l.replace(&quot;&lt;anonymous&gt;&quot;,e.displayName)),l}while(1&lt;=a&amp;&amp;0&lt;=s);break}}}finally{zu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:&quot;&quot;)?So(e):&quot;&quot;}function sS(e){switch(e.tag){case 5:return So(e.type);case 16:return So(&quot;Lazy&quot;);case 13:return So(&quot;Suspense&quot;);case 19:return So(&quot;SuspenseList&quot;);case 0:case 2:case 15:return e=Tu(e.type,!1),e;case 11:return e=Tu(e.type.render,!1),e;case 1:return e=Tu(e.type,!0),e;default:return&quot;&quot;}}function _c(e){if(e==null)return null;if(typeof e==&quot;function&quot;)return e.displayName||e.name||null;if(typeof e==&quot;string&quot;)return e;switch(e){case hi:return&quot;Fragment&quot;;case pi:return&quot;Portal&quot;;case gc:return&quot;Profiler&quot;;case af:return&quot;StrictMode&quot;;case vc:return&quot;Suspense&quot;;case yc:return&quot;SuspenseList&quot;}if(typeof e==&quot;object&quot;)switch(e.$$typeof){case gv:return(e.displayName||&quot;Context&quot;)+&quot;.Consumer&quot;;case hv:return(e._context.displayName||&quot;Context&quot;)+&quot;.Provider&quot;;case sf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||&quot;&quot;,e=e!==&quot;&quot;?&quot;ForwardRef(&quot;+e+&quot;)&quot;:&quot;ForwardRef&quot;),e;case lf:return t=e.displayName||null,t!==null?t:_c(e.type)||&quot;Memo&quot;;case Yn:t=e._payload,e=e._init;try{return _c(e(t))}catch{}}return null}function lS(e){var t=e.type;switch(e.tag){case 24:return&quot;Cache&quot;;case 9:return(t.displayName||&quot;Context&quot;)+&quot;.Consumer&quot;;case 10:return(t._context.displayName||&quot;Context&quot;)+&quot;.Provider&quot;;case 18:return&quot;DehydratedFragment&quot;;case 11:return e=t.render,e=e.displayName||e.name||&quot;&quot;,t.displayName||(e!==&quot;&quot;?&quot;ForwardRef(&quot;+e+&quot;)&quot;:&quot;ForwardRef&quot;);case 7:return&quot;Fragment&quot;;case 5:return t;case 4:return&quot;Portal&quot;;case 3:return&quot;Root&quot;;case 6:return&quot;Text&quot;;case 16:return _c(t);case 8:return t===af?&quot;StrictMode&quot;:&quot;Mode&quot;;case 22:return&quot;Offscreen&quot;;case 12:return&quot;Profiler&quot;;case 21:return&quot;Scope&quot;;case 13:return&quot;Suspense&quot;;case 19:return&quot;SuspenseList&quot;;case 25:return&quot;TracingMarker&quot;;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==&quot;function&quot;)return t.displayName||t.name||null;if(typeof t==&quot;string&quot;)return t}return null}function wr(e){switch(typeof e){case&quot;boolean&quot;:case&quot;number&quot;:case&quot;string&quot;:case&quot;undefined&quot;:return e;case&quot;object&quot;:return e;default:return&quot;&quot;}}function yv(e){var t=e.type;return(e=e.nodeName)&amp;&amp;e.toLowerCase()===&quot;input&quot;&amp;&amp;(t===&quot;checkbox&quot;||t===&quot;radio&quot;)}function uS(e){var t=yv(e)?&quot;checked&quot;:&quot;value&quot;,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=&quot;&quot;+e[t];if(!e.hasOwnProperty(t)&amp;&amp;typeof n&lt;&quot;u&quot;&amp;&amp;typeof n.get==&quot;function&quot;&amp;&amp;typeof n.set==&quot;function&quot;){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(a){i=&quot;&quot;+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(a){i=&quot;&quot;+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ls(e){e._valueTracker||(e._valueTracker=uS(e))}function _v(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i=&quot;&quot;;return e&amp;&amp;(i=yv(e)?e.checked?&quot;true&quot;:&quot;false&quot;:e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Qs(e){if(e=e||(typeof document&lt;&quot;u&quot;?document:void 0),typeof e&gt;&quot;u&quot;)return null;try{return e.activeElement||e.body}catch{return e.body}}function wc(e,t){var n=t.checked;return Ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Xp(e,t){var n=t.defaultValue==null?&quot;&quot;:t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=wr(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type===&quot;checkbox&quot;||t.type===&quot;radio&quot;?t.checked!=null:t.value!=null}}function wv(e,t){t=t.checked,t!=null&amp;&amp;of(e,&quot;checked&quot;,t,!1)}function kc(e,t){wv(e,t);var n=wr(t.value),i=t.type;if(n!=null)i===&quot;number&quot;?(n===0&amp;&amp;e.value===&quot;&quot;||e.value!=n)&amp;&amp;(e.value=&quot;&quot;+n):e.value!==&quot;&quot;+n&amp;&amp;(e.value=&quot;&quot;+n);else if(i===&quot;submit&quot;||i===&quot;reset&quot;){e.removeAttribute(&quot;value&quot;);return}t.hasOwnProperty(&quot;value&quot;)?xc(e,t.type,n):t.hasOwnProperty(&quot;defaultValue&quot;)&amp;&amp;xc(e,t.type,wr(t.defaultValue)),t.checked==null&amp;&amp;t.defaultChecked!=null&amp;&amp;(e.defaultChecked=!!t.defaultChecked)}function Yp(e,t,n){if(t.hasOwnProperty(&quot;value&quot;)||t.hasOwnProperty(&quot;defaultValue&quot;)){var i=t.type;if(!(i!==&quot;submit&quot;&amp;&amp;i!==&quot;reset&quot;||t.value!==void 0&amp;&amp;t.value!==null))return;t=&quot;&quot;+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==&quot;&quot;&amp;&amp;(e.name=&quot;&quot;),e.defaultChecked=!!e._wrapperState.initialChecked,n!==&quot;&quot;&amp;&amp;(e.name=n)}function xc(e,t,n){(t!==&quot;number&quot;||Qs(e.ownerDocument)!==e)&amp;&amp;(n==null?e.defaultValue=&quot;&quot;+e._wrapperState.initialValue:e.defaultValue!==&quot;&quot;+n&amp;&amp;(e.defaultValue=&quot;&quot;+n))}var $o=Array.isArray;function ji(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r&lt;n.length;r++)t[&quot;$&quot;+n[r]]=!0;for(n=0;n&lt;e.length;n++)r=t.hasOwnProperty(&quot;$&quot;+e[n].value),e[n].selected!==r&amp;&amp;(e[n].selected=r),r&amp;&amp;i&amp;&amp;(e[n].defaultSelected=!0)}else{for(n=&quot;&quot;+wr(n),t=null,r=0;r&lt;e.length;r++){if(e[r].value===n){e[r].selected=!0,i&amp;&amp;(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&amp;&amp;(t.selected=!0)}}function bc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(L(91));return Ae({},t,{value:void 0,defaultValue:void 0,children:&quot;&quot;+e._wrapperState.initialValue})}function eh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(L(92));if($o(n)){if(1&lt;n.length)throw Error(L(93));n=n[0]}t=n}t==null&amp;&amp;(t=&quot;&quot;),n=t}e._wrapperState={initialValue:wr(n)}}function kv(e,t){var n=wr(t.value),i=wr(t.defaultValue);n!=null&amp;&amp;(n=&quot;&quot;+n,n!==e.value&amp;&amp;(e.value=n),t.defaultValue==null&amp;&amp;e.defaultValue!==n&amp;&amp;(e.defaultValue=n)),i!=null&amp;&amp;(e.defaultValue=&quot;&quot;+i)}function th(e){var t=e.textContent;t===e._wrapperState.initialValue&amp;&amp;t!==&quot;&quot;&amp;&amp;t!==null&amp;&amp;(e.value=t)}function xv(e){switch(e){case&quot;svg&quot;:return&quot;http://www.w3.org/2000/svg&quot;;case&quot;math&quot;:return&quot;http://www.w3.org/1998/Math/MathML&quot;;default:return&quot;http://www.w3.org/1999/xhtml&quot;}}function Sc(e,t){return e==null||e===&quot;http://www.w3.org/1999/xhtml&quot;?xv(t):e===&quot;http://www.w3.org/2000/svg&quot;&amp;&amp;t===&quot;foreignObject&quot;?&quot;http://www.w3.org/1999/xhtml&quot;:e}var us,bv=function(e){return typeof MSApp&lt;&quot;u&quot;&amp;&amp;MSApp.execUnsafeLocalFunction?function(t,n,i,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,i,r)})}:e}(function(e,t){if(e.namespaceURI!==&quot;http://www.w3.org/2000/svg&quot;||&quot;innerHTML&quot;in e)e.innerHTML=t;else{for(us=us||document.createElement(&quot;div&quot;),us.innerHTML=&quot;&lt;svg&gt;&quot;+t.valueOf().toString()+&quot;&lt;/svg&gt;&quot;,t=us.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vo(e,t){if(t){var n=e.firstChild;if(n&amp;&amp;n===e.lastChild&amp;&amp;n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Co={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cS=[&quot;Webkit&quot;,&quot;ms&quot;,&quot;Moz&quot;,&quot;O&quot;];Object.keys(Co).forEach(function(e){cS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Co[t]=Co[e]})});function Sv(e,t,n){return t==null||typeof t==&quot;boolean&quot;||t===&quot;&quot;?&quot;&quot;:n||typeof t!=&quot;number&quot;||t===0||Co.hasOwnProperty(e)&amp;&amp;Co[e]?(&quot;&quot;+t).trim():t+&quot;px&quot;}function $v(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf(&quot;--&quot;)===0,r=Sv(n,t[n],i);n===&quot;float&quot;&amp;&amp;(n=&quot;cssFloat&quot;),i?e.setProperty(n,r):e[n]=r}}var dS=Ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $c(e,t){if(t){if(dS[e]&amp;&amp;(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!=&quot;object&quot;||!(&quot;__html&quot;in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&amp;&amp;typeof t.style!=&quot;object&quot;)throw Error(L(62))}}function Ic(e,t){if(e.indexOf(&quot;-&quot;)===-1)return typeof t.is==&quot;string&quot;;switch(e){case&quot;annotation-xml&quot;:case&quot;color-profile&quot;:case&quot;font-face&quot;:case&quot;font-face-src&quot;:case&quot;font-face-uri&quot;:case&quot;font-face-format&quot;:case&quot;font-face-name&quot;:case&quot;missing-glyph&quot;:return!1;default:return!0}}var Ec=null;function uf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&amp;&amp;(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Nc=null,Oi=null,zi=null;function nh(e){if(e=Va(e)){if(typeof Nc!=&quot;function&quot;)throw Error(L(280));var t=e.stateNode;t&amp;&amp;(t=Gl(t),Nc(e.stateNode,e.type,t))}}function Iv(e){Oi?zi?zi.push(e):zi=[e]:Oi=e}function Ev(){if(Oi){var e=Oi,t=zi;if(zi=Oi=null,nh(e),t)for(e=0;e&lt;t.length;e++)nh(t[e])}}function Nv(e,t){return e(t)}function jv(){}var Cu=!1;function Ov(e,t,n){if(Cu)return e(t,n);Cu=!0;try{return Nv(e,t,n)}finally{Cu=!1,(Oi!==null||zi!==null)&amp;&amp;(jv(),Ev())}}function Wo(e,t){var n=e.stateNode;if(n===null)return null;var i=Gl(n);if(i===null)return null;n=i[t];e:switch(t){case&quot;onClick&quot;:case&quot;onClickCapture&quot;:case&quot;onDoubleClick&quot;:case&quot;onDoubleClickCapture&quot;:case&quot;onMouseDown&quot;:case&quot;onMouseDownCapture&quot;:case&quot;onMouseMove&quot;:case&quot;onMouseMoveCapture&quot;:case&quot;onMouseUp&quot;:case&quot;onMouseUpCapture&quot;:case&quot;onMouseEnter&quot;:(i=!i.disabled)||(e=e.type,i=!(e===&quot;button&quot;||e===&quot;input&quot;||e===&quot;select&quot;||e===&quot;textarea&quot;)),e=!i;break e;default:e=!1}if(e)return null;if(n&amp;&amp;typeof n!=&quot;function&quot;)throw Error(L(231,t,typeof n));return n}var jc=!1;if(Vn)try{var ho={};Object.defineProperty(ho,&quot;passive&quot;,{get:function(){jc=!0}}),window.addEventListener(&quot;test&quot;,ho,ho),window.removeEventListener(&quot;test&quot;,ho,ho)}catch{jc=!1}function fS(e,t,n,i,r,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Ao=!1,Xs=null,Ys=!1,Oc=null,mS={onError:function(e){Ao=!0,Xs=e}};function pS(e,t,n,i,r,o,a,s,l){Ao=!1,Xs=null,fS.apply(mS,arguments)}function hS(e,t,n,i,r,o,a,s,l){if(pS.apply(this,arguments),Ao){if(Ao){var u=Xs;Ao=!1,Xs=null}else throw Error(L(198));Ys||(Ys=!0,Oc=u)}}function oi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&amp;4098&amp;&amp;(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function zv(e){if(e.tag===13){var t=e.memoizedState;if(t===null&amp;&amp;(e=e.alternate,e!==null&amp;&amp;(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function rh(e){if(oi(e)!==e)throw Error(L(188))}function gS(e){var t=e.alternate;if(!t){if(t=oi(e),t===null)throw Error(L(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return rh(r),e;if(o===i)return rh(r),t;o=o.sibling}throw Error(L(188))}if(n.return!==i.return)n=r,i=o;else{for(var a=!1,s=r.child;s;){if(s===n){a=!0,n=r,i=o;break}if(s===i){a=!0,i=r,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,i=r;break}if(s===i){a=!0,i=o,n=r;break}s=s.sibling}if(!a)throw Error(L(189))}}if(n.alternate!==i)throw Error(L(190))}if(n.tag!==3)throw Error(L(188));return n.stateNode.current===n?e:t}function Tv(e){return e=gS(e),e!==null?Cv(e):null}function Cv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Cv(e);if(t!==null)return t;e=e.sibling}return null}var Av=Ct.unstable_scheduleCallback,ih=Ct.unstable_cancelCallback,vS=Ct.unstable_shouldYield,yS=Ct.unstable_requestPaint,Ze=Ct.unstable_now,_S=Ct.unstable_getCurrentPriorityLevel,cf=Ct.unstable_ImmediatePriority,Pv=Ct.unstable_UserBlockingPriority,el=Ct.unstable_NormalPriority,wS=Ct.unstable_LowPriority,Uv=Ct.unstable_IdlePriority,Wl=null,$n=null;function kS(e){if($n&amp;&amp;typeof $n.onCommitFiberRoot==&quot;function&quot;)try{$n.onCommitFiberRoot(Wl,e,void 0,(e.current.flags&amp;128)===128)}catch{}}var sn=Math.clz32?Math.clz32:SS,xS=Math.log,bS=Math.LN2;function SS(e){return e&gt;&gt;&gt;=0,e===0?32:31-(xS(e)/bS|0)|0}var cs=64,ds=4194304;function Io(e){switch(e&amp;-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&amp;4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&amp;130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function tl(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,r=e.suspendedLanes,o=e.pingedLanes,a=n&amp;268435455;if(a!==0){var s=a&amp;~r;s!==0?i=Io(s):(o&amp;=a,o!==0&amp;&amp;(i=Io(o)))}else a=n&amp;~r,a!==0?i=Io(a):o!==0&amp;&amp;(i=Io(o));if(i===0)return 0;if(t!==0&amp;&amp;t!==i&amp;&amp;!(t&amp;r)&amp;&amp;(r=i&amp;-i,o=t&amp;-t,r&gt;=o||r===16&amp;&amp;(o&amp;4194240)!==0))return t;if(i&amp;4&amp;&amp;(i|=n&amp;16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&amp;=i;0&lt;t;)n=31-sn(t),r=1&lt;&lt;n,i|=e[n],t&amp;=~r;return i}function $S(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function IS(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes;0&lt;o;){var a=31-sn(o),s=1&lt;&lt;a,l=r[a];l===-1?(!(s&amp;n)||s&amp;i)&amp;&amp;(r[a]=$S(s,t)):l&lt;=t&amp;&amp;(e.expiredLanes|=s),o&amp;=~s}}function zc(e){return e=e.pendingLanes&amp;-1073741825,e!==0?e:e&amp;1073741824?1073741824:0}function Dv(){var e=cs;return cs&lt;&lt;=1,!(cs&amp;4194240)&amp;&amp;(cs=64),e}function Au(e){for(var t=[],n=0;31&gt;n;n++)t.push(e);return t}function Fa(e,t,n){e.pendingLanes|=t,t!==536870912&amp;&amp;(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-sn(t),e[t]=n}function ES(e,t){var n=e.pendingLanes&amp;~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&amp;=t,e.mutableReadLanes&amp;=t,e.entangledLanes&amp;=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0&lt;n;){var r=31-sn(n),o=1&lt;&lt;r;t[r]=0,i[r]=-1,e[r]=-1,n&amp;=~o}}function df(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-sn(n),r=1&lt;&lt;i;r&amp;t|e[i]&amp;t&amp;&amp;(e[i]|=t),n&amp;=~r}}var we=0;function Rv(e){return e&amp;=-e,1&lt;e?4&lt;e?e&amp;268435455?16:536870912:4:1}var Lv,ff,Zv,Mv,Fv,Tc=!1,fs=[],cr=null,dr=null,fr=null,Ho=new Map,Ko=new Map,tr=[],NS=&quot;mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit&quot;.split(&quot; &quot;);function oh(e,t){switch(e){case&quot;focusin&quot;:case&quot;focusout&quot;:cr=null;break;case&quot;dragenter&quot;:case&quot;dragleave&quot;:dr=null;break;case&quot;mouseover&quot;:case&quot;mouseout&quot;:fr=null;break;case&quot;pointerover&quot;:case&quot;pointerout&quot;:Ho.delete(t.pointerId);break;case&quot;gotpointercapture&quot;:case&quot;lostpointercapture&quot;:Ko.delete(t.pointerId)}}function go(e,t,n,i,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[r]},t!==null&amp;&amp;(t=Va(t),t!==null&amp;&amp;ff(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&amp;&amp;t.indexOf(r)===-1&amp;&amp;t.push(r),e)}function jS(e,t,n,i,r){switch(t){case&quot;focusin&quot;:return cr=go(cr,e,t,n,i,r),!0;case&quot;dragenter&quot;:return dr=go(dr,e,t,n,i,r),!0;case&quot;mouseover&quot;:return fr=go(fr,e,t,n,i,r),!0;case&quot;pointerover&quot;:var o=r.pointerId;return Ho.set(o,go(Ho.get(o)||null,e,t,n,i,r)),!0;case&quot;gotpointercapture&quot;:return o=r.pointerId,Ko.set(o,go(Ko.get(o)||null,e,t,n,i,r)),!0}return!1}function Bv(e){var t=Ur(e.target);if(t!==null){var n=oi(t);if(n!==null){if(t=n.tag,t===13){if(t=zv(n),t!==null){e.blockedOn=t,Fv(e.priority,function(){Zv(n)});return}}else if(t===3&amp;&amp;n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Cs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0&lt;t.length;){var n=Cc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Ec=i,n.target.dispatchEvent(i),Ec=null}else return t=Va(n),t!==null&amp;&amp;ff(t),e.blockedOn=n,!1;t.shift()}return!0}function ah(e,t,n){Cs(e)&amp;&amp;n.delete(t)}function OS(){Tc=!1,cr!==null&amp;&amp;Cs(cr)&amp;&amp;(cr=null),dr!==null&amp;&amp;Cs(dr)&amp;&amp;(dr=null),fr!==null&amp;&amp;Cs(fr)&amp;&amp;(fr=null),Ho.forEach(ah),Ko.forEach(ah)}function vo(e,t){e.blockedOn===t&amp;&amp;(e.blockedOn=null,Tc||(Tc=!0,Ct.unstable_scheduleCallback(Ct.unstable_NormalPriority,OS)))}function Jo(e){function t(r){return vo(r,e)}if(0&lt;fs.length){vo(fs[0],e);for(var n=1;n&lt;fs.length;n++){var i=fs[n];i.blockedOn===e&amp;&amp;(i.blockedOn=null)}}for(cr!==null&amp;&amp;vo(cr,e),dr!==null&amp;&amp;vo(dr,e),fr!==null&amp;&amp;vo(fr,e),Ho.forEach(t),Ko.forEach(t),n=0;n&lt;tr.length;n++)i=tr[n],i.blockedOn===e&amp;&amp;(i.blockedOn=null);for(;0&lt;tr.length&amp;&amp;(n=tr[0],n.blockedOn===null);)Bv(n),n.blockedOn===null&amp;&amp;tr.shift()}var Ti=qn.ReactCurrentBatchConfig,nl=!0;function zS(e,t,n,i){var r=we,o=Ti.transition;Ti.transition=null;try{we=1,mf(e,t,n,i)}finally{we=r,Ti.transition=o}}function TS(e,t,n,i){var r=we,o=Ti.transition;Ti.transition=null;try{we=4,mf(e,t,n,i)}finally{we=r,Ti.transition=o}}function mf(e,t,n,i){if(nl){var r=Cc(e,t,n,i);if(r===null)Vu(e,t,i,rl,n),oh(e,i);else if(jS(r,e,t,n,i))i.stopPropagation();else if(oh(e,i),t&amp;4&amp;&amp;-1&lt;NS.indexOf(e)){for(;r!==null;){var o=Va(r);if(o!==null&amp;&amp;Lv(o),o=Cc(e,t,n,i),o===null&amp;&amp;Vu(e,t,i,rl,n),o===r)break;r=o}r!==null&amp;&amp;i.stopPropagation()}else Vu(e,t,i,null,n)}}var rl=null;function Cc(e,t,n,i){if(rl=null,e=uf(i),e=Ur(e),e!==null)if(t=oi(e),t===null)e=null;else if(n=t.tag,n===13){if(e=zv(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&amp;&amp;(e=null);return rl=e,null}function Vv(e){switch(e){case&quot;cancel&quot;:case&quot;click&quot;:case&quot;close&quot;:case&quot;contextmenu&quot;:case&quot;copy&quot;:case&quot;cut&quot;:case&quot;auxclick&quot;:case&quot;dblclick&quot;:case&quot;dragend&quot;:case&quot;dragstart&quot;:case&quot;drop&quot;:case&quot;focusin&quot;:case&quot;focusout&quot;:case&quot;input&quot;:case&quot;invalid&quot;:case&quot;keydown&quot;:case&quot;keypress&quot;:case&quot;keyup&quot;:case&quot;mousedown&quot;:case&quot;mouseup&quot;:case&quot;paste&quot;:case&quot;pause&quot;:case&quot;play&quot;:case&quot;pointercancel&quot;:case&quot;pointerdown&quot;:case&quot;pointerup&quot;:case&quot;ratechange&quot;:case&quot;reset&quot;:case&quot;resize&quot;:case&quot;seeked&quot;:case&quot;submit&quot;:case&quot;touchcancel&quot;:case&quot;touchend&quot;:case&quot;touchstart&quot;:case&quot;volumechange&quot;:case&quot;change&quot;:case&quot;selectionchange&quot;:case&quot;textInput&quot;:case&quot;compositionstart&quot;:case&quot;compositionend&quot;:case&quot;compositionupdate&quot;:case&quot;beforeblur&quot;:case&quot;afterblur&quot;:case&quot;beforeinput&quot;:case&quot;blur&quot;:case&quot;fullscreenchange&quot;:case&quot;focus&quot;:case&quot;hashchange&quot;:case&quot;popstate&quot;:case&quot;select&quot;:case&quot;selectstart&quot;:return 1;case&quot;drag&quot;:case&quot;dragenter&quot;:case&quot;dragexit&quot;:case&quot;dragleave&quot;:case&quot;dragover&quot;:case&quot;mousemove&quot;:case&quot;mouseout&quot;:case&quot;mouseover&quot;:case&quot;pointermove&quot;:case&quot;pointerout&quot;:case&quot;pointerover&quot;:case&quot;scroll&quot;:case&quot;toggle&quot;:case&quot;touchmove&quot;:case&quot;wheel&quot;:case&quot;mouseenter&quot;:case&quot;mouseleave&quot;:case&quot;pointerenter&quot;:case&quot;pointerleave&quot;:return 4;case&quot;message&quot;:switch(_S()){case cf:return 1;case Pv:return 4;case el:case wS:return 16;case Uv:return 536870912;default:return 16}default:return 16}}var ar=null,pf=null,As=null;function Wv(){if(As)return As;var e,t=pf,n=t.length,i,r=&quot;value&quot;in ar?ar.value:ar.textContent,o=r.length;for(e=0;e&lt;n&amp;&amp;t[e]===r[e];e++);var a=n-e;for(i=1;i&lt;=a&amp;&amp;t[n-i]===r[o-i];i++);return As=r.slice(e,1&lt;i?1-i:void 0)}function Ps(e){var t=e.keyCode;return&quot;charCode&quot;in e?(e=e.charCode,e===0&amp;&amp;t===13&amp;&amp;(e=13)):e=t,e===10&amp;&amp;(e=13),32&lt;=e||e===13?e:0}function ms(){return!0}function sh(){return!1}function Pt(e){function t(n,i,r,o,a){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&amp;&amp;(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ms:sh,this.isPropagationStopped=sh,this}return Ae(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&amp;&amp;(n.preventDefault?n.preventDefault():typeof n.returnValue!=&quot;unknown&quot;&amp;&amp;(n.returnValue=!1),this.isDefaultPrevented=ms)},stopPropagation:function(){var n=this.nativeEvent;n&amp;&amp;(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!=&quot;unknown&quot;&amp;&amp;(n.cancelBubble=!0),this.isPropagationStopped=ms)},persist:function(){},isPersistent:ms}),t}var ao={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hf=Pt(ao),Ba=Ae({},ao,{view:0,detail:0}),CS=Pt(Ba),Pu,Uu,yo,Hl=Ae({},Ba,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return&quot;movementX&quot;in e?e.movementX:(e!==yo&amp;&amp;(yo&amp;&amp;e.type===&quot;mousemove&quot;?(Pu=e.screenX-yo.screenX,Uu=e.screenY-yo.screenY):Uu=Pu=0,yo=e),Pu)},movementY:function(e){return&quot;movementY&quot;in e?e.movementY:Uu}}),lh=Pt(Hl),AS=Ae({},Hl,{dataTransfer:0}),PS=Pt(AS),US=Ae({},Ba,{relatedTarget:0}),Du=Pt(US),DS=Ae({},ao,{animationName:0,elapsedTime:0,pseudoElement:0}),RS=Pt(DS),LS=Ae({},ao,{clipboardData:function(e){return&quot;clipboardData&quot;in e?e.clipboardData:window.clipboardData}}),ZS=Pt(LS),MS=Ae({},ao,{data:0}),uh=Pt(MS),FS={Esc:&quot;Escape&quot;,Spacebar:&quot; &quot;,Left:&quot;ArrowLeft&quot;,Up:&quot;ArrowUp&quot;,Right:&quot;ArrowRight&quot;,Down:&quot;ArrowDown&quot;,Del:&quot;Delete&quot;,Win:&quot;OS&quot;,Menu:&quot;ContextMenu&quot;,Apps:&quot;ContextMenu&quot;,Scroll:&quot;ScrollLock&quot;,MozPrintableKey:&quot;Unidentified&quot;},BS={8:&quot;Backspace&quot;,9:&quot;Tab&quot;,12:&quot;Clear&quot;,13:&quot;Enter&quot;,16:&quot;Shift&quot;,17:&quot;Control&quot;,18:&quot;Alt&quot;,19:&quot;Pause&quot;,20:&quot;CapsLock&quot;,27:&quot;Escape&quot;,32:&quot; &quot;,33:&quot;PageUp&quot;,34:&quot;PageDown&quot;,35:&quot;End&quot;,36:&quot;Home&quot;,37:&quot;ArrowLeft&quot;,38:&quot;ArrowUp&quot;,39:&quot;ArrowRight&quot;,40:&quot;ArrowDown&quot;,45:&quot;Insert&quot;,46:&quot;Delete&quot;,112:&quot;F1&quot;,113:&quot;F2&quot;,114:&quot;F3&quot;,115:&quot;F4&quot;,116:&quot;F5&quot;,117:&quot;F6&quot;,118:&quot;F7&quot;,119:&quot;F8&quot;,120:&quot;F9&quot;,121:&quot;F10&quot;,122:&quot;F11&quot;,123:&quot;F12&quot;,144:&quot;NumLock&quot;,145:&quot;ScrollLock&quot;,224:&quot;Meta&quot;},VS={Alt:&quot;altKey&quot;,Control:&quot;ctrlKey&quot;,Meta:&quot;metaKey&quot;,Shift:&quot;shiftKey&quot;};function WS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=VS[e])?!!t[e]:!1}function gf(){return WS}var HS=Ae({},Ba,{key:function(e){if(e.key){var t=FS[e.key]||e.key;if(t!==&quot;Unidentified&quot;)return t}return e.type===&quot;keypress&quot;?(e=Ps(e),e===13?&quot;Enter&quot;:String.fromCharCode(e)):e.type===&quot;keydown&quot;||e.type===&quot;keyup&quot;?BS[e.keyCode]||&quot;Unidentified&quot;:&quot;&quot;},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gf,charCode:function(e){return e.type===&quot;keypress&quot;?Ps(e):0},keyCode:function(e){return e.type===&quot;keydown&quot;||e.type===&quot;keyup&quot;?e.keyCode:0},which:function(e){return e.type===&quot;keypress&quot;?Ps(e):e.type===&quot;keydown&quot;||e.type===&quot;keyup&quot;?e.keyCode:0}}),KS=Pt(HS),JS=Ae({},Hl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ch=Pt(JS),GS=Ae({},Ba,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gf}),qS=Pt(GS),QS=Ae({},ao,{propertyName:0,elapsedTime:0,pseudoElement:0}),XS=Pt(QS),YS=Ae({},Hl,{deltaX:function(e){return&quot;deltaX&quot;in e?e.deltaX:&quot;wheelDeltaX&quot;in e?-e.wheelDeltaX:0},deltaY:function(e){return&quot;deltaY&quot;in e?e.deltaY:&quot;wheelDeltaY&quot;in e?-e.wheelDeltaY:&quot;wheelDelta&quot;in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),e$=Pt(YS),t$=[9,13,27,32],vf=Vn&amp;&amp;&quot;CompositionEvent&quot;in window,Po=null;Vn&amp;&amp;&quot;documentMode&quot;in document&amp;&amp;(Po=document.documentMode);var n$=Vn&amp;&amp;&quot;TextEvent&quot;in window&amp;&amp;!Po,Hv=Vn&amp;&amp;(!vf||Po&amp;&amp;8&lt;Po&amp;&amp;11&gt;=Po),dh=&quot; &quot;,fh=!1;function Kv(e,t){switch(e){case&quot;keyup&quot;:return t$.indexOf(t.keyCode)!==-1;case&quot;keydown&quot;:return t.keyCode!==229;case&quot;keypress&quot;:case&quot;mousedown&quot;:case&quot;focusout&quot;:return!0;default:return!1}}function Jv(e){return e=e.detail,typeof e==&quot;object&quot;&amp;&amp;&quot;data&quot;in e?e.data:null}var gi=!1;function r$(e,t){switch(e){case&quot;compositionend&quot;:return Jv(t);case&quot;keypress&quot;:return t.which!==32?null:(fh=!0,dh);case&quot;textInput&quot;:return e=t.data,e===dh&amp;&amp;fh?null:e;default:return null}}function i$(e,t){if(gi)return e===&quot;compositionend&quot;||!vf&amp;&amp;Kv(e,t)?(e=Wv(),As=pf=ar=null,gi=!1,e):null;switch(e){case&quot;paste&quot;:return null;case&quot;keypress&quot;:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&amp;&amp;t.altKey){if(t.char&amp;&amp;1&lt;t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case&quot;compositionend&quot;:return Hv&amp;&amp;t.locale!==&quot;ko&quot;?null:t.data;default:return null}}var o$={color:!0,date:!0,datetime:!0,&quot;datetime-local&quot;:!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function mh(e){var t=e&amp;&amp;e.nodeName&amp;&amp;e.nodeName.toLowerCase();return t===&quot;input&quot;?!!o$[e.type]:t===&quot;textarea&quot;}function Gv(e,t,n,i){Iv(i),t=il(t,&quot;onChange&quot;),0&lt;t.length&amp;&amp;(n=new hf(&quot;onChange&quot;,&quot;change&quot;,null,n,i),e.push({event:n,listeners:t}))}var Uo=null,Go=null;function a$(e){ay(e,0)}function Kl(e){var t=_i(e);if(_v(t))return e}function s$(e,t){if(e===&quot;change&quot;)return t}var qv=!1;if(Vn){var Ru;if(Vn){var Lu=&quot;oninput&quot;in document;if(!Lu){var ph=document.createElement(&quot;div&quot;);ph.setAttribute(&quot;oninput&quot;,&quot;return;&quot;),Lu=typeof ph.oninput==&quot;function&quot;}Ru=Lu}else Ru=!1;qv=Ru&amp;&amp;(!document.documentMode||9&lt;document.documentMode)}function hh(){Uo&amp;&amp;(Uo.detachEvent(&quot;onpropertychange&quot;,Qv),Go=Uo=null)}function Qv(e){if(e.propertyName===&quot;value&quot;&amp;&amp;Kl(Go)){var t=[];Gv(t,Go,e,uf(e)),Ov(a$,t)}}function l$(e,t,n){e===&quot;focusin&quot;?(hh(),Uo=t,Go=n,Uo.attachEvent(&quot;onpropertychange&quot;,Qv)):e===&quot;focusout&quot;&amp;&amp;hh()}function u$(e){if(e===&quot;selectionchange&quot;||e===&quot;keyup&quot;||e===&quot;keydown&quot;)return Kl(Go)}function c$(e,t){if(e===&quot;click&quot;)return Kl(t)}function d$(e,t){if(e===&quot;input&quot;||e===&quot;change&quot;)return Kl(t)}function f$(e,t){return e===t&amp;&amp;(e!==0||1/e===1/t)||e!==e&amp;&amp;t!==t}var dn=typeof Object.is==&quot;function&quot;?Object.is:f$;function qo(e,t){if(dn(e,t))return!0;if(typeof e!=&quot;object&quot;||e===null||typeof t!=&quot;object&quot;||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i&lt;n.length;i++){var r=n[i];if(!hc.call(t,r)||!dn(e[r],t[r]))return!1}return!0}function gh(e){for(;e&amp;&amp;e.firstChild;)e=e.firstChild;return e}function vh(e,t){var n=gh(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e&lt;=t&amp;&amp;i&gt;=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gh(n)}}function Xv(e,t){return e&amp;&amp;t?e===t?!0:e&amp;&amp;e.nodeType===3?!1:t&amp;&amp;t.nodeType===3?Xv(e,t.parentNode):&quot;contains&quot;in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&amp;16):!1:!1}function Yv(){for(var e=window,t=Qs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==&quot;string&quot;}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qs(e.document)}return t}function yf(e){var t=e&amp;&amp;e.nodeName&amp;&amp;e.nodeName.toLowerCase();return t&amp;&amp;(t===&quot;input&quot;&amp;&amp;(e.type===&quot;text&quot;||e.type===&quot;search&quot;||e.type===&quot;tel&quot;||e.type===&quot;url&quot;||e.type===&quot;password&quot;)||t===&quot;textarea&quot;||e.contentEditable===&quot;true&quot;)}function m$(e){var t=Yv(),n=e.focusedElem,i=e.selectionRange;if(t!==n&amp;&amp;n&amp;&amp;n.ownerDocument&amp;&amp;Xv(n.ownerDocument.documentElement,n)){if(i!==null&amp;&amp;yf(n)){if(t=i.start,e=i.end,e===void 0&amp;&amp;(e=t),&quot;selectionStart&quot;in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&amp;&amp;t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,o=Math.min(i.start,r);i=i.end===void 0?o:Math.min(i.end,r),!e.extend&amp;&amp;o&gt;i&amp;&amp;(r=i,i=o,o=r),r=vh(n,o);var a=vh(n,i);r&amp;&amp;a&amp;&amp;(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&amp;&amp;(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),o&gt;i?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&amp;&amp;t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==&quot;function&quot;&amp;&amp;n.focus(),n=0;n&lt;t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var p$=Vn&amp;&amp;&quot;documentMode&quot;in document&amp;&amp;11&gt;=document.documentMode,vi=null,Ac=null,Do=null,Pc=!1;function yh(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pc||vi==null||vi!==Qs(i)||(i=vi,&quot;selectionStart&quot;in i&amp;&amp;yf(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&amp;&amp;i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Do&amp;&amp;qo(Do,i)||(Do=i,i=il(Ac,&quot;onSelect&quot;),0&lt;i.length&amp;&amp;(t=new hf(&quot;onSelect&quot;,&quot;select&quot;,null,t,n),e.push({event:t,listeners:i}),t.target=vi)))}function ps(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[&quot;Webkit&quot;+e]=&quot;webkit&quot;+t,n[&quot;Moz&quot;+e]=&quot;moz&quot;+t,n}var yi={animationend:ps(&quot;Animation&quot;,&quot;AnimationEnd&quot;),animationiteration:ps(&quot;Animation&quot;,&quot;AnimationIteration&quot;),animationstart:ps(&quot;Animation&quot;,&quot;AnimationStart&quot;),transitionend:ps(&quot;Transition&quot;,&quot;TransitionEnd&quot;)},Zu={},ey={};Vn&amp;&amp;(ey=document.createElement(&quot;div&quot;).style,&quot;AnimationEvent&quot;in window||(delete yi.animationend.animation,delete yi.animationiteration.animation,delete yi.animationstart.animation),&quot;TransitionEvent&quot;in window||delete yi.transitionend.transition);function Jl(e){if(Zu[e])return Zu[e];if(!yi[e])return e;var t=yi[e],n;for(n in t)if(t.hasOwnProperty(n)&amp;&amp;n in ey)return Zu[e]=t[n];return e}var ty=Jl(&quot;animationend&quot;),ny=Jl(&quot;animationiteration&quot;),ry=Jl(&quot;animationstart&quot;),iy=Jl(&quot;transitionend&quot;),oy=new Map,_h=&quot;abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel&quot;.split(&quot; &quot;);function Sr(e,t){oy.set(e,t),ii(t,[e])}for(var Mu=0;Mu&lt;_h.length;Mu++){var Fu=_h[Mu],h$=Fu.toLowerCase(),g$=Fu[0].toUpperCase()+Fu.slice(1);Sr(h$,&quot;on&quot;+g$)}Sr(ty,&quot;onAnimationEnd&quot;);Sr(ny,&quot;onAnimationIteration&quot;);Sr(ry,&quot;onAnimationStart&quot;);Sr(&quot;dblclick&quot;,&quot;onDoubleClick&quot;);Sr(&quot;focusin&quot;,&quot;onFocus&quot;);Sr(&quot;focusout&quot;,&quot;onBlur&quot;);Sr(iy,&quot;onTransitionEnd&quot;);Bi(&quot;onMouseEnter&quot;,[&quot;mouseout&quot;,&quot;mouseover&quot;]);Bi(&quot;onMouseLeave&quot;,[&quot;mouseout&quot;,&quot;mouseover&quot;]);Bi(&quot;onPointerEnter&quot;,[&quot;pointerout&quot;,&quot;pointerover&quot;]);Bi(&quot;onPointerLeave&quot;,[&quot;pointerout&quot;,&quot;pointerover&quot;]);ii(&quot;onChange&quot;,&quot;change click focusin focusout input keydown keyup selectionchange&quot;.split(&quot; &quot;));ii(&quot;onSelect&quot;,&quot;focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange&quot;.split(&quot; &quot;));ii(&quot;onBeforeInput&quot;,[&quot;compositionend&quot;,&quot;keypress&quot;,&quot;textInput&quot;,&quot;paste&quot;]);ii(&quot;onCompositionEnd&quot;,&quot;compositionend focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));ii(&quot;onCompositionStart&quot;,&quot;compositionstart focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));ii(&quot;onCompositionUpdate&quot;,&quot;compositionupdate focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));var Eo=&quot;abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting&quot;.split(&quot; &quot;),v$=new Set(&quot;cancel close invalid load scroll toggle&quot;.split(&quot; &quot;).concat(Eo));function wh(e,t,n){var i=e.type||&quot;unknown-event&quot;;e.currentTarget=n,hS(i,t,void 0,e),e.currentTarget=null}function ay(e,t){t=(t&amp;4)!==0;for(var n=0;n&lt;e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var a=i.length-1;0&lt;=a;a--){var s=i[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&amp;&amp;r.isPropagationStopped())break e;wh(r,s,u),o=l}else for(a=0;a&lt;i.length;a++){if(s=i[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==o&amp;&amp;r.isPropagationStopped())break e;wh(r,s,u),o=l}}}if(Ys)throw e=Oc,Ys=!1,Oc=null,e}function be(e,t){var n=t[Zc];n===void 0&amp;&amp;(n=t[Zc]=new Set);var i=e+&quot;__bubble&quot;;n.has(i)||(sy(t,e,2,!1),n.add(i))}function Bu(e,t,n){var i=0;t&amp;&amp;(i|=4),sy(n,e,i,t)}var hs=&quot;_reactListening&quot;+Math.random().toString(36).slice(2);function Qo(e){if(!e[hs]){e[hs]=!0,pv.forEach(function(n){n!==&quot;selectionchange&quot;&amp;&amp;(v$.has(n)||Bu(n,!1,e),Bu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hs]||(t[hs]=!0,Bu(&quot;selectionchange&quot;,!1,t))}}function sy(e,t,n,i){switch(Vv(t)){case 1:var r=zS;break;case 4:r=TS;break;default:r=mf}n=r.bind(null,t,n,e),r=void 0,!jc||t!==&quot;touchstart&quot;&amp;&amp;t!==&quot;touchmove&quot;&amp;&amp;t!==&quot;wheel&quot;||(r=!0),i?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Vu(e,t,n,i,r){var o=i;if(!(t&amp;1)&amp;&amp;!(t&amp;2)&amp;&amp;i!==null)e:for(;;){if(i===null)return;var a=i.tag;if(a===3||a===4){var s=i.stateNode.containerInfo;if(s===r||s.nodeType===8&amp;&amp;s.parentNode===r)break;if(a===4)for(a=i.return;a!==null;){var l=a.tag;if((l===3||l===4)&amp;&amp;(l=a.stateNode.containerInfo,l===r||l.nodeType===8&amp;&amp;l.parentNode===r))return;a=a.return}for(;s!==null;){if(a=Ur(s),a===null)return;if(l=a.tag,l===5||l===6){i=o=a;continue e}s=s.parentNode}}i=i.return}Ov(function(){var u=o,d=uf(n),h=[];e:{var g=oy.get(e);if(g!==void 0){var v=hf,y=e;switch(e){case&quot;keypress&quot;:if(Ps(n)===0)break e;case&quot;keydown&quot;:case&quot;keyup&quot;:v=KS;break;case&quot;focusin&quot;:y=&quot;focus&quot;,v=Du;break;case&quot;focusout&quot;:y=&quot;blur&quot;,v=Du;break;case&quot;beforeblur&quot;:case&quot;afterblur&quot;:v=Du;break;case&quot;click&quot;:if(n.button===2)break e;case&quot;auxclick&quot;:case&quot;dblclick&quot;:case&quot;mousedown&quot;:case&quot;mousemove&quot;:case&quot;mouseup&quot;:case&quot;mouseout&quot;:case&quot;mouseover&quot;:case&quot;contextmenu&quot;:v=lh;break;case&quot;drag&quot;:case&quot;dragend&quot;:case&quot;dragenter&quot;:case&quot;dragexit&quot;:case&quot;dragleave&quot;:case&quot;dragover&quot;:case&quot;dragstart&quot;:case&quot;drop&quot;:v=PS;break;case&quot;touchcancel&quot;:case&quot;touchend&quot;:case&quot;touchmove&quot;:case&quot;touchstart&quot;:v=qS;break;case ty:case ny:case ry:v=RS;break;case iy:v=XS;break;case&quot;scroll&quot;:v=CS;break;case&quot;wheel&quot;:v=e$;break;case&quot;copy&quot;:case&quot;cut&quot;:case&quot;paste&quot;:v=ZS;break;case&quot;gotpointercapture&quot;:case&quot;lostpointercapture&quot;:case&quot;pointercancel&quot;:case&quot;pointerdown&quot;:case&quot;pointermove&quot;:case&quot;pointerout&quot;:case&quot;pointerover&quot;:case&quot;pointerup&quot;:v=ch}var E=(t&amp;4)!==0,N=!E&amp;&amp;e===&quot;scroll&quot;,p=E?g!==null?g+&quot;Capture&quot;:null:g;E=[];for(var f=u,m;f!==null;){m=f;var k=m.stateNode;if(m.tag===5&amp;&amp;k!==null&amp;&amp;(m=k,p!==null&amp;&amp;(k=Wo(f,p),k!=null&amp;&amp;E.push(Xo(f,k,m)))),N)break;f=f.return}0&lt;E.length&amp;&amp;(g=new v(g,y,null,n,d),h.push({event:g,listeners:E}))}}if(!(t&amp;7)){e:{if(g=e===&quot;mouseover&quot;||e===&quot;pointerover&quot;,v=e===&quot;mouseout&quot;||e===&quot;pointerout&quot;,g&amp;&amp;n!==Ec&amp;&amp;(y=n.relatedTarget||n.fromElement)&amp;&amp;(Ur(y)||y[Wn]))break e;if((v||g)&amp;&amp;(g=d.window===d?d:(g=d.ownerDocument)?g.defaultView||g.parentWindow:window,v?(y=n.relatedTarget||n.toElement,v=u,y=y?Ur(y):null,y!==null&amp;&amp;(N=oi(y),y!==N||y.tag!==5&amp;&amp;y.tag!==6)&amp;&amp;(y=null)):(v=null,y=u),v!==y)){if(E=lh,k=&quot;onMouseLeave&quot;,p=&quot;onMouseEnter&quot;,f=&quot;mouse&quot;,(e===&quot;pointerout&quot;||e===&quot;pointerover&quot;)&amp;&amp;(E=ch,k=&quot;onPointerLeave&quot;,p=&quot;onPointerEnter&quot;,f=&quot;pointer&quot;),N=v==null?g:_i(v),m=y==null?g:_i(y),g=new E(k,f+&quot;leave&quot;,v,n,d),g.target=N,g.relatedTarget=m,k=null,Ur(d)===u&amp;&amp;(E=new E(p,f+&quot;enter&quot;,y,n,d),E.target=m,E.relatedTarget=N,k=E),N=k,v&amp;&amp;y)t:{for(E=v,p=y,f=0,m=E;m;m=ui(m))f++;for(m=0,k=p;k;k=ui(k))m++;for(;0&lt;f-m;)E=ui(E),f--;for(;0&lt;m-f;)p=ui(p),m--;for(;f--;){if(E===p||p!==null&amp;&amp;E===p.alternate)break t;E=ui(E),p=ui(p)}E=null}else E=null;v!==null&amp;&amp;kh(h,g,v,E,!1),y!==null&amp;&amp;N!==null&amp;&amp;kh(h,N,y,E,!0)}}e:{if(g=u?_i(u):window,v=g.nodeName&amp;&amp;g.nodeName.toLowerCase(),v===&quot;select&quot;||v===&quot;input&quot;&amp;&amp;g.type===&quot;file&quot;)var $=s$;else if(mh(g))if(qv)$=d$;else{$=u$;var x=l$}else(v=g.nodeName)&amp;&amp;v.toLowerCase()===&quot;input&quot;&amp;&amp;(g.type===&quot;checkbox&quot;||g.type===&quot;radio&quot;)&amp;&amp;($=c$);if($&amp;&amp;($=$(e,u))){Gv(h,$,n,d);break e}x&amp;&amp;x(e,g,u),e===&quot;focusout&quot;&amp;&amp;(x=g._wrapperState)&amp;&amp;x.controlled&amp;&amp;g.type===&quot;number&quot;&amp;&amp;xc(g,&quot;number&quot;,g.value)}switch(x=u?_i(u):window,e){case&quot;focusin&quot;:(mh(x)||x.contentEditable===&quot;true&quot;)&amp;&amp;(vi=x,Ac=u,Do=null);break;case&quot;focusout&quot;:Do=Ac=vi=null;break;case&quot;mousedown&quot;:Pc=!0;break;case&quot;contextmenu&quot;:case&quot;mouseup&quot;:case&quot;dragend&quot;:Pc=!1,yh(h,n,d);break;case&quot;selectionchange&quot;:if(p$)break;case&quot;keydown&quot;:case&quot;keyup&quot;:yh(h,n,d)}var T;if(vf)e:{switch(e){case&quot;compositionstart&quot;:var Z=&quot;onCompositionStart&quot;;break e;case&quot;compositionend&quot;:Z=&quot;onCompositionEnd&quot;;break e;case&quot;compositionupdate&quot;:Z=&quot;onCompositionUpdate&quot;;break e}Z=void 0}else gi?Kv(e,n)&amp;&amp;(Z=&quot;onCompositionEnd&quot;):e===&quot;keydown&quot;&amp;&amp;n.keyCode===229&amp;&amp;(Z=&quot;onCompositionStart&quot;);Z&amp;&amp;(Hv&amp;&amp;n.locale!==&quot;ko&quot;&amp;&amp;(gi||Z!==&quot;onCompositionStart&quot;?Z===&quot;onCompositionEnd&quot;&amp;&amp;gi&amp;&amp;(T=Wv()):(ar=d,pf=&quot;value&quot;in ar?ar.value:ar.textContent,gi=!0)),x=il(u,Z),0&lt;x.length&amp;&amp;(Z=new uh(Z,e,null,n,d),h.push({event:Z,listeners:x}),T?Z.data=T:(T=Jv(n),T!==null&amp;&amp;(Z.data=T)))),(T=n$?r$(e,n):i$(e,n))&amp;&amp;(u=il(u,&quot;onBeforeInput&quot;),0&lt;u.length&amp;&amp;(d=new uh(&quot;onBeforeInput&quot;,&quot;beforeinput&quot;,null,n,d),h.push({event:d,listeners:u}),d.data=T))}ay(h,t)})}function Xo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function il(e,t){for(var n=t+&quot;Capture&quot;,i=[];e!==null;){var r=e,o=r.stateNode;r.tag===5&amp;&amp;o!==null&amp;&amp;(r=o,o=Wo(e,n),o!=null&amp;&amp;i.unshift(Xo(e,o,r)),o=Wo(e,t),o!=null&amp;&amp;i.push(Xo(e,o,r))),e=e.return}return i}function ui(e){if(e===null)return null;do e=e.return;while(e&amp;&amp;e.tag!==5);return e||null}function kh(e,t,n,i,r){for(var o=t._reactName,a=[];n!==null&amp;&amp;n!==i;){var s=n,l=s.alternate,u=s.stateNode;if(l!==null&amp;&amp;l===i)break;s.tag===5&amp;&amp;u!==null&amp;&amp;(s=u,r?(l=Wo(n,o),l!=null&amp;&amp;a.unshift(Xo(n,l,s))):r||(l=Wo(n,o),l!=null&amp;&amp;a.push(Xo(n,l,s)))),n=n.return}a.length!==0&amp;&amp;e.push({event:t,listeners:a})}var y$=/\r\n?/g,_$=/\u0000|\uFFFD/g;function xh(e){return(typeof e==&quot;string&quot;?e:&quot;&quot;+e).replace(y$,`
`).replace(_$,&quot;&quot;)}function gs(e,t,n){if(t=xh(t),xh(e)!==t&amp;&amp;n)throw Error(L(425))}function ol(){}var Uc=null,Dc=null;function Rc(e,t){return e===&quot;textarea&quot;||e===&quot;noscript&quot;||typeof t.children==&quot;string&quot;||typeof t.children==&quot;number&quot;||typeof t.dangerouslySetInnerHTML==&quot;object&quot;&amp;&amp;t.dangerouslySetInnerHTML!==null&amp;&amp;t.dangerouslySetInnerHTML.__html!=null}var Lc=typeof setTimeout==&quot;function&quot;?setTimeout:void 0,w$=typeof clearTimeout==&quot;function&quot;?clearTimeout:void 0,bh=typeof Promise==&quot;function&quot;?Promise:void 0,k$=typeof queueMicrotask==&quot;function&quot;?queueMicrotask:typeof bh&lt;&quot;u&quot;?function(e){return bh.resolve(null).then(e).catch(x$)}:Lc;function x$(e){setTimeout(function(){throw e})}function Wu(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&amp;&amp;r.nodeType===8)if(n=r.data,n===&quot;/$&quot;){if(i===0){e.removeChild(r),Jo(t);return}i--}else n!==&quot;$&quot;&amp;&amp;n!==&quot;$?&quot;&amp;&amp;n!==&quot;$!&quot;||i++;n=r}while(n);Jo(t)}function mr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===&quot;$&quot;||t===&quot;$!&quot;||t===&quot;$?&quot;)break;if(t===&quot;/$&quot;)return null}}return e}function Sh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===&quot;$&quot;||n===&quot;$!&quot;||n===&quot;$?&quot;){if(t===0)return e;t--}else n===&quot;/$&quot;&amp;&amp;t++}e=e.previousSibling}return null}var so=Math.random().toString(36).slice(2),bn=&quot;__reactFiber$&quot;+so,Yo=&quot;__reactProps$&quot;+so,Wn=&quot;__reactContainer$&quot;+so,Zc=&quot;__reactEvents$&quot;+so,b$=&quot;__reactListeners$&quot;+so,S$=&quot;__reactHandles$&quot;+so;function Ur(e){var t=e[bn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Wn]||n[bn]){if(n=t.alternate,t.child!==null||n!==null&amp;&amp;n.child!==null)for(e=Sh(e);e!==null;){if(n=e[bn])return n;e=Sh(e)}return t}e=n,n=e.parentNode}return null}function Va(e){return e=e[bn]||e[Wn],!e||e.tag!==5&amp;&amp;e.tag!==6&amp;&amp;e.tag!==13&amp;&amp;e.tag!==3?null:e}function _i(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(L(33))}function Gl(e){return e[Yo]||null}var Mc=[],wi=-1;function $r(e){return{current:e}}function Ee(e){0&gt;wi||(e.current=Mc[wi],Mc[wi]=null,wi--)}function ke(e,t){wi++,Mc[wi]=e.current,e.current=t}var kr={},lt=$r(kr),kt=$r(!1),Kr=kr;function Vi(e,t){var n=e.type.contextTypes;if(!n)return kr;var i=e.stateNode;if(i&amp;&amp;i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in n)r[o]=t[o];return i&amp;&amp;(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function xt(e){return e=e.childContextTypes,e!=null}function al(){Ee(kt),Ee(lt)}function $h(e,t,n){if(lt.current!==kr)throw Error(L(168));ke(lt,t),ke(kt,n)}function ly(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=&quot;function&quot;)return n;i=i.getChildContext();for(var r in i)if(!(r in t))throw Error(L(108,lS(e)||&quot;Unknown&quot;,r));return Ae({},n,i)}function sl(e){return e=(e=e.stateNode)&amp;&amp;e.__reactInternalMemoizedMergedChildContext||kr,Kr=lt.current,ke(lt,e),ke(kt,kt.current),!0}function Ih(e,t,n){var i=e.stateNode;if(!i)throw Error(L(169));n?(e=ly(e,t,Kr),i.__reactInternalMemoizedMergedChildContext=e,Ee(kt),Ee(lt),ke(lt,e)):Ee(kt),ke(kt,n)}var Pn=null,ql=!1,Hu=!1;function uy(e){Pn===null?Pn=[e]:Pn.push(e)}function $$(e){ql=!0,uy(e)}function Ir(){if(!Hu&amp;&amp;Pn!==null){Hu=!0;var e=0,t=we;try{var n=Pn;for(we=1;e&lt;n.length;e++){var i=n[e];do i=i(!0);while(i!==null)}Pn=null,ql=!1}catch(r){throw Pn!==null&amp;&amp;(Pn=Pn.slice(e+1)),Av(cf,Ir),r}finally{we=t,Hu=!1}}return null}var ki=[],xi=0,ll=null,ul=0,Lt=[],Zt=0,Jr=null,Ln=1,Zn=&quot;&quot;;function zr(e,t){ki[xi++]=ul,ki[xi++]=ll,ll=e,ul=t}function cy(e,t,n){Lt[Zt++]=Ln,Lt[Zt++]=Zn,Lt[Zt++]=Jr,Jr=e;var i=Ln;e=Zn;var r=32-sn(i)-1;i&amp;=~(1&lt;&lt;r),n+=1;var o=32-sn(t)+r;if(30&lt;o){var a=r-r%5;o=(i&amp;(1&lt;&lt;a)-1).toString(32),i&gt;&gt;=a,r-=a,Ln=1&lt;&lt;32-sn(t)+r|n&lt;&lt;r|i,Zn=o+e}else Ln=1&lt;&lt;o|n&lt;&lt;r|i,Zn=e}function _f(e){e.return!==null&amp;&amp;(zr(e,1),cy(e,1,0))}function wf(e){for(;e===ll;)ll=ki[--xi],ki[xi]=null,ul=ki[--xi],ki[xi]=null;for(;e===Jr;)Jr=Lt[--Zt],Lt[Zt]=null,Zn=Lt[--Zt],Lt[Zt]=null,Ln=Lt[--Zt],Lt[Zt]=null}var Tt=null,Ot=null,Oe=!1,on=null;function dy(e,t){var n=Bt(5,null,null,0);n.elementType=&quot;DELETED&quot;,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Eh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Tt=e,Ot=mr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===&quot;&quot;||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Tt=e,Ot=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Jr!==null?{id:Ln,overflow:Zn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Bt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Tt=e,Ot=null,!0):!1;default:return!1}}function Fc(e){return(e.mode&amp;1)!==0&amp;&amp;(e.flags&amp;128)===0}function Bc(e){if(Oe){var t=Ot;if(t){var n=t;if(!Eh(e,t)){if(Fc(e))throw Error(L(418));t=mr(n.nextSibling);var i=Tt;t&amp;&amp;Eh(e,t)?dy(i,n):(e.flags=e.flags&amp;-4097|2,Oe=!1,Tt=e)}}else{if(Fc(e))throw Error(L(418));e.flags=e.flags&amp;-4097|2,Oe=!1,Tt=e}}}function Nh(e){for(e=e.return;e!==null&amp;&amp;e.tag!==5&amp;&amp;e.tag!==3&amp;&amp;e.tag!==13;)e=e.return;Tt=e}function vs(e){if(e!==Tt)return!1;if(!Oe)return Nh(e),Oe=!0,!1;var t;if((t=e.tag!==3)&amp;&amp;!(t=e.tag!==5)&amp;&amp;(t=e.type,t=t!==&quot;head&quot;&amp;&amp;t!==&quot;body&quot;&amp;&amp;!Rc(e.type,e.memoizedProps)),t&amp;&amp;(t=Ot)){if(Fc(e))throw fy(),Error(L(418));for(;t;)dy(e,t),t=mr(t.nextSibling)}if(Nh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===&quot;/$&quot;){if(t===0){Ot=mr(e.nextSibling);break e}t--}else n!==&quot;$&quot;&amp;&amp;n!==&quot;$!&quot;&amp;&amp;n!==&quot;$?&quot;||t++}e=e.nextSibling}Ot=null}}else Ot=Tt?mr(e.stateNode.nextSibling):null;return!0}function fy(){for(var e=Ot;e;)e=mr(e.nextSibling)}function Wi(){Ot=Tt=null,Oe=!1}function kf(e){on===null?on=[e]:on.push(e)}var I$=qn.ReactCurrentBatchConfig;function _o(e,t,n){if(e=n.ref,e!==null&amp;&amp;typeof e!=&quot;function&quot;&amp;&amp;typeof e!=&quot;object&quot;){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(L(309));var i=n.stateNode}if(!i)throw Error(L(147,e));var r=i,o=&quot;&quot;+e;return t!==null&amp;&amp;t.ref!==null&amp;&amp;typeof t.ref==&quot;function&quot;&amp;&amp;t.ref._stringRef===o?t.ref:(t=function(a){var s=r.refs;a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!=&quot;string&quot;)throw Error(L(284));if(!n._owner)throw Error(L(290,e))}return e}function ys(e,t){throw e=Object.prototype.toString.call(t),Error(L(31,e===&quot;[object Object]&quot;?&quot;object with keys {&quot;+Object.keys(t).join(&quot;, &quot;)+&quot;}&quot;:e))}function jh(e){var t=e._init;return t(e._payload)}function my(e){function t(p,f){if(e){var m=p.deletions;m===null?(p.deletions=[f],p.flags|=16):m.push(f)}}function n(p,f){if(!e)return null;for(;f!==null;)t(p,f),f=f.sibling;return null}function i(p,f){for(p=new Map;f!==null;)f.key!==null?p.set(f.key,f):p.set(f.index,f),f=f.sibling;return p}function r(p,f){return p=vr(p,f),p.index=0,p.sibling=null,p}function o(p,f,m){return p.index=m,e?(m=p.alternate,m!==null?(m=m.index,m&lt;f?(p.flags|=2,f):m):(p.flags|=2,f)):(p.flags|=1048576,f)}function a(p){return e&amp;&amp;p.alternate===null&amp;&amp;(p.flags|=2),p}function s(p,f,m,k){return f===null||f.tag!==6?(f=Yu(m,p.mode,k),f.return=p,f):(f=r(f,m),f.return=p,f)}function l(p,f,m,k){var $=m.type;return $===hi?d(p,f,m.props.children,k,m.key):f!==null&amp;&amp;(f.elementType===$||typeof $==&quot;object&quot;&amp;&amp;$!==null&amp;&amp;$.$$typeof===Yn&amp;&amp;jh($)===f.type)?(k=r(f,m.props),k.ref=_o(p,f,m),k.return=p,k):(k=Fs(m.type,m.key,m.props,null,p.mode,k),k.ref=_o(p,f,m),k.return=p,k)}function u(p,f,m,k){return f===null||f.tag!==4||f.stateNode.containerInfo!==m.containerInfo||f.stateNode.implementation!==m.implementation?(f=ec(m,p.mode,k),f.return=p,f):(f=r(f,m.children||[]),f.return=p,f)}function d(p,f,m,k,$){return f===null||f.tag!==7?(f=Br(m,p.mode,k,$),f.return=p,f):(f=r(f,m),f.return=p,f)}function h(p,f,m){if(typeof f==&quot;string&quot;&amp;&amp;f!==&quot;&quot;||typeof f==&quot;number&quot;)return f=Yu(&quot;&quot;+f,p.mode,m),f.return=p,f;if(typeof f==&quot;object&quot;&amp;&amp;f!==null){switch(f.$$typeof){case ss:return m=Fs(f.type,f.key,f.props,null,p.mode,m),m.ref=_o(p,null,f),m.return=p,m;case pi:return f=ec(f,p.mode,m),f.return=p,f;case Yn:var k=f._init;return h(p,k(f._payload),m)}if($o(f)||po(f))return f=Br(f,p.mode,m,null),f.return=p,f;ys(p,f)}return null}function g(p,f,m,k){var $=f!==null?f.key:null;if(typeof m==&quot;string&quot;&amp;&amp;m!==&quot;&quot;||typeof m==&quot;number&quot;)return $!==null?null:s(p,f,&quot;&quot;+m,k);if(typeof m==&quot;object&quot;&amp;&amp;m!==null){switch(m.$$typeof){case ss:return m.key===$?l(p,f,m,k):null;case pi:return m.key===$?u(p,f,m,k):null;case Yn:return $=m._init,g(p,f,$(m._payload),k)}if($o(m)||po(m))return $!==null?null:d(p,f,m,k,null);ys(p,m)}return null}function v(p,f,m,k,$){if(typeof k==&quot;string&quot;&amp;&amp;k!==&quot;&quot;||typeof k==&quot;number&quot;)return p=p.get(m)||null,s(f,p,&quot;&quot;+k,$);if(typeof k==&quot;object&quot;&amp;&amp;k!==null){switch(k.$$typeof){case ss:return p=p.get(k.key===null?m:k.key)||null,l(f,p,k,$);case pi:return p=p.get(k.key===null?m:k.key)||null,u(f,p,k,$);case Yn:var x=k._init;return v(p,f,m,x(k._payload),$)}if($o(k)||po(k))return p=p.get(m)||null,d(f,p,k,$,null);ys(f,k)}return null}function y(p,f,m,k){for(var $=null,x=null,T=f,Z=f=0,A=null;T!==null&amp;&amp;Z&lt;m.length;Z++){T.index&gt;Z?(A=T,T=null):A=T.sibling;var H=g(p,T,m[Z],k);if(H===null){T===null&amp;&amp;(T=A);break}e&amp;&amp;T&amp;&amp;H.alternate===null&amp;&amp;t(p,T),f=o(H,f,Z),x===null?$=H:x.sibling=H,x=H,T=A}if(Z===m.length)return n(p,T),Oe&amp;&amp;zr(p,Z),$;if(T===null){for(;Z&lt;m.length;Z++)T=h(p,m[Z],k),T!==null&amp;&amp;(f=o(T,f,Z),x===null?$=T:x.sibling=T,x=T);return Oe&amp;&amp;zr(p,Z),$}for(T=i(p,T);Z&lt;m.length;Z++)A=v(T,p,Z,m[Z],k),A!==null&amp;&amp;(e&amp;&amp;A.alternate!==null&amp;&amp;T.delete(A.key===null?Z:A.key),f=o(A,f,Z),x===null?$=A:x.sibling=A,x=A);return e&amp;&amp;T.forEach(function(re){return t(p,re)}),Oe&amp;&amp;zr(p,Z),$}function E(p,f,m,k){var $=po(m);if(typeof $!=&quot;function&quot;)throw Error(L(150));if(m=$.call(m),m==null)throw Error(L(151));for(var x=$=null,T=f,Z=f=0,A=null,H=m.next();T!==null&amp;&amp;!H.done;Z++,H=m.next()){T.index&gt;Z?(A=T,T=null):A=T.sibling;var re=g(p,T,H.value,k);if(re===null){T===null&amp;&amp;(T=A);break}e&amp;&amp;T&amp;&amp;re.alternate===null&amp;&amp;t(p,T),f=o(re,f,Z),x===null?$=re:x.sibling=re,x=re,T=A}if(H.done)return n(p,T),Oe&amp;&amp;zr(p,Z),$;if(T===null){for(;!H.done;Z++,H=m.next())H=h(p,H.value,k),H!==null&amp;&amp;(f=o(H,f,Z),x===null?$=H:x.sibling=H,x=H);return Oe&amp;&amp;zr(p,Z),$}for(T=i(p,T);!H.done;Z++,H=m.next())H=v(T,p,Z,H.value,k),H!==null&amp;&amp;(e&amp;&amp;H.alternate!==null&amp;&amp;T.delete(H.key===null?Z:H.key),f=o(H,f,Z),x===null?$=H:x.sibling=H,x=H);return e&amp;&amp;T.forEach(function(je){return t(p,je)}),Oe&amp;&amp;zr(p,Z),$}function N(p,f,m,k){if(typeof m==&quot;object&quot;&amp;&amp;m!==null&amp;&amp;m.type===hi&amp;&amp;m.key===null&amp;&amp;(m=m.props.children),typeof m==&quot;object&quot;&amp;&amp;m!==null){switch(m.$$typeof){case ss:e:{for(var $=m.key,x=f;x!==null;){if(x.key===$){if($=m.type,$===hi){if(x.tag===7){n(p,x.sibling),f=r(x,m.props.children),f.return=p,p=f;break e}}else if(x.elementType===$||typeof $==&quot;object&quot;&amp;&amp;$!==null&amp;&amp;$.$$typeof===Yn&amp;&amp;jh($)===x.type){n(p,x.sibling),f=r(x,m.props),f.ref=_o(p,x,m),f.return=p,p=f;break e}n(p,x);break}else t(p,x);x=x.sibling}m.type===hi?(f=Br(m.props.children,p.mode,k,m.key),f.return=p,p=f):(k=Fs(m.type,m.key,m.props,null,p.mode,k),k.ref=_o(p,f,m),k.return=p,p=k)}return a(p);case pi:e:{for(x=m.key;f!==null;){if(f.key===x)if(f.tag===4&amp;&amp;f.stateNode.containerInfo===m.containerInfo&amp;&amp;f.stateNode.implementation===m.implementation){n(p,f.sibling),f=r(f,m.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else t(p,f);f=f.sibling}f=ec(m,p.mode,k),f.return=p,p=f}return a(p);case Yn:return x=m._init,N(p,f,x(m._payload),k)}if($o(m))return y(p,f,m,k);if(po(m))return E(p,f,m,k);ys(p,m)}return typeof m==&quot;string&quot;&amp;&amp;m!==&quot;&quot;||typeof m==&quot;number&quot;?(m=&quot;&quot;+m,f!==null&amp;&amp;f.tag===6?(n(p,f.sibling),f=r(f,m),f.return=p,p=f):(n(p,f),f=Yu(m,p.mode,k),f.return=p,p=f),a(p)):n(p,f)}return N}var Hi=my(!0),py=my(!1),cl=$r(null),dl=null,bi=null,xf=null;function bf(){xf=bi=dl=null}function Sf(e){var t=cl.current;Ee(cl),e._currentValue=t}function Vc(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&amp;t)!==t?(e.childLanes|=t,i!==null&amp;&amp;(i.childLanes|=t)):i!==null&amp;&amp;(i.childLanes&amp;t)!==t&amp;&amp;(i.childLanes|=t),e===n)break;e=e.return}}function Ci(e,t){dl=e,xf=bi=null,e=e.dependencies,e!==null&amp;&amp;e.firstContext!==null&amp;&amp;(e.lanes&amp;t&amp;&amp;(wt=!0),e.firstContext=null)}function Jt(e){var t=e._currentValue;if(xf!==e)if(e={context:e,memoizedValue:t,next:null},bi===null){if(dl===null)throw Error(L(308));bi=e,dl.dependencies={lanes:0,firstContext:e}}else bi=bi.next=e;return t}var Dr=null;function $f(e){Dr===null?Dr=[e]:Dr.push(e)}function hy(e,t,n,i){var r=t.interleaved;return r===null?(n.next=n,$f(t)):(n.next=r.next,r.next=n),t.interleaved=n,Hn(e,i)}function Hn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&amp;&amp;(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&amp;&amp;(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var er=!1;function If(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function gy(e,t){e=e.updateQueue,t.updateQueue===e&amp;&amp;(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pr(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,he&amp;2){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,Hn(e,n)}return r=i.interleaved,r===null?(t.next=t,$f(i)):(t.next=r.next,r.next=t),i.interleaved=t,Hn(e,n)}function Us(e,t,n){if(t=t.updateQueue,t!==null&amp;&amp;(t=t.shared,(n&amp;4194240)!==0)){var i=t.lanes;i&amp;=e.pendingLanes,n|=i,t.lanes=n,df(e,n)}}function Oh(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&amp;&amp;(i=i.updateQueue,n===i)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?r=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,effects:i.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fl(e,t,n,i){var r=e.updateQueue;er=!1;var o=r.firstBaseUpdate,a=r.lastBaseUpdate,s=r.shared.pending;if(s!==null){r.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var d=e.alternate;d!==null&amp;&amp;(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&amp;&amp;(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l))}if(o!==null){var h=r.baseState;a=0,d=u=l=null,s=o;do{var g=s.lane,v=s.eventTime;if((i&amp;g)===g){d!==null&amp;&amp;(d=d.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,E=s;switch(g=t,v=n,E.tag){case 1:if(y=E.payload,typeof y==&quot;function&quot;){h=y.call(v,h,g);break e}h=y;break e;case 3:y.flags=y.flags&amp;-65537|128;case 0:if(y=E.payload,g=typeof y==&quot;function&quot;?y.call(v,h,g):y,g==null)break e;h=Ae({},h,g);break e;case 2:er=!0}}s.callback!==null&amp;&amp;s.lane!==0&amp;&amp;(e.flags|=64,g=r.effects,g===null?r.effects=[s]:g.push(s))}else v={eventTime:v,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=v,l=h):d=d.next=v,a|=g;if(s=s.next,s===null){if(s=r.shared.pending,s===null)break;g=s,s=g.next,g.next=null,r.lastBaseUpdate=g,r.shared.pending=null}}while(!0);if(d===null&amp;&amp;(l=h),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=d,t=r.shared.interleaved,t!==null){r=t;do a|=r.lane,r=r.next;while(r!==t)}else o===null&amp;&amp;(r.shared.lanes=0);qr|=a,e.lanes=a,e.memoizedState=h}}function zh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t&lt;e.length;t++){var i=e[t],r=i.callback;if(r!==null){if(i.callback=null,i=n,typeof r!=&quot;function&quot;)throw Error(L(191,r));r.call(i)}}}var Wa={},In=$r(Wa),ea=$r(Wa),ta=$r(Wa);function Rr(e){if(e===Wa)throw Error(L(174));return e}function Ef(e,t){switch(ke(ta,t),ke(ea,e),ke(In,Wa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Sc(null,&quot;&quot;);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Sc(t,e)}Ee(In),ke(In,t)}function Ki(){Ee(In),Ee(ea),Ee(ta)}function vy(e){Rr(ta.current);var t=Rr(In.current),n=Sc(t,e.type);t!==n&amp;&amp;(ke(ea,e),ke(In,n))}function Nf(e){ea.current===e&amp;&amp;(Ee(In),Ee(ea))}var Te=$r(0);function ml(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&amp;&amp;(n=n.dehydrated,n===null||n.data===&quot;$?&quot;||n.data===&quot;$!&quot;))return t}else if(t.tag===19&amp;&amp;t.memoizedProps.revealOrder!==void 0){if(t.flags&amp;128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ku=[];function jf(){for(var e=0;e&lt;Ku.length;e++)Ku[e]._workInProgressVersionPrimary=null;Ku.length=0}var Ds=qn.ReactCurrentDispatcher,Ju=qn.ReactCurrentBatchConfig,Gr=0,Ce=null,Je=null,Ye=null,pl=!1,Ro=!1,na=0,E$=0;function it(){throw Error(L(321))}function Of(e,t){if(t===null)return!1;for(var n=0;n&lt;t.length&amp;&amp;n&lt;e.length;n++)if(!dn(e[n],t[n]))return!1;return!0}function zf(e,t,n,i,r,o){if(Gr=o,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ds.current=e===null||e.memoizedState===null?z$:T$,e=n(i,r),Ro){o=0;do{if(Ro=!1,na=0,25&lt;=o)throw Error(L(301));o+=1,Ye=Je=null,t.updateQueue=null,Ds.current=C$,e=n(i,r)}while(Ro)}if(Ds.current=hl,t=Je!==null&amp;&amp;Je.next!==null,Gr=0,Ye=Je=Ce=null,pl=!1,t)throw Error(L(300));return e}function Tf(){var e=na!==0;return na=0,e}function _n(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?Ce.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function Gt(){if(Je===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var t=Ye===null?Ce.memoizedState:Ye.next;if(t!==null)Ye=t,Je=e;else{if(e===null)throw Error(L(310));Je=e,e={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},Ye===null?Ce.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function ra(e,t){return typeof t==&quot;function&quot;?t(e):t}function Gu(e){var t=Gt(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var i=Je,r=i.baseQueue,o=n.pending;if(o!==null){if(r!==null){var a=r.next;r.next=o.next,o.next=a}i.baseQueue=r=o,n.pending=null}if(r!==null){o=r.next,i=i.baseState;var s=a=null,l=null,u=o;do{var d=u.lane;if((Gr&amp;d)===d)l!==null&amp;&amp;(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=h,a=i):l=l.next=h,Ce.lanes|=d,qr|=d}u=u.next}while(u!==null&amp;&amp;u!==o);l===null?a=i:l.next=s,dn(i,t.memoizedState)||(wt=!0),t.memoizedState=i,t.baseState=a,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){r=e;do o=r.lane,Ce.lanes|=o,qr|=o,r=r.next;while(r!==e)}else r===null&amp;&amp;(n.lanes=0);return[t.memoizedState,n.dispatch]}function qu(e){var t=Gt(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,o=t.memoizedState;if(r!==null){n.pending=null;var a=r=r.next;do o=e(o,a.action),a=a.next;while(a!==r);dn(o,t.memoizedState)||(wt=!0),t.memoizedState=o,t.baseQueue===null&amp;&amp;(t.baseState=o),n.lastRenderedState=o}return[o,i]}function yy(){}function _y(e,t){var n=Ce,i=Gt(),r=t(),o=!dn(i.memoizedState,r);if(o&amp;&amp;(i.memoizedState=r,wt=!0),i=i.queue,Cf(xy.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||Ye!==null&amp;&amp;Ye.memoizedState.tag&amp;1){if(n.flags|=2048,ia(9,ky.bind(null,n,i,r,t),void 0,null),et===null)throw Error(L(349));Gr&amp;30||wy(n,t,r)}return r}function wy(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ky(e,t,n,i){t.value=n,t.getSnapshot=i,by(t)&amp;&amp;Sy(e)}function xy(e,t,n){return n(function(){by(t)&amp;&amp;Sy(e)})}function by(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!dn(e,n)}catch{return!0}}function Sy(e){var t=Hn(e,1);t!==null&amp;&amp;ln(t,e,1,-1)}function Th(e){var t=_n();return typeof e==&quot;function&quot;&amp;&amp;(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:e},t.queue=e,e=e.dispatch=O$.bind(null,Ce,e),[t.memoizedState,e]}function ia(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e)),e}function $y(){return Gt().memoizedState}function Rs(e,t,n,i){var r=_n();Ce.flags|=e,r.memoizedState=ia(1|t,n,void 0,i===void 0?null:i)}function Ql(e,t,n,i){var r=Gt();i=i===void 0?null:i;var o=void 0;if(Je!==null){var a=Je.memoizedState;if(o=a.destroy,i!==null&amp;&amp;Of(i,a.deps)){r.memoizedState=ia(t,n,o,i);return}}Ce.flags|=e,r.memoizedState=ia(1|t,n,o,i)}function Ch(e,t){return Rs(8390656,8,e,t)}function Cf(e,t){return Ql(2048,8,e,t)}function Iy(e,t){return Ql(4,2,e,t)}function Ey(e,t){return Ql(4,4,e,t)}function Ny(e,t){if(typeof t==&quot;function&quot;)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function jy(e,t,n){return n=n!=null?n.concat([e]):null,Ql(4,4,Ny.bind(null,t,e),n)}function Af(){}function Oy(e,t){var n=Gt();t=t===void 0?null:t;var i=n.memoizedState;return i!==null&amp;&amp;t!==null&amp;&amp;Of(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function zy(e,t){var n=Gt();t=t===void 0?null:t;var i=n.memoizedState;return i!==null&amp;&amp;t!==null&amp;&amp;Of(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function Ty(e,t,n){return Gr&amp;21?(dn(n,t)||(n=Dv(),Ce.lanes|=n,qr|=n,e.baseState=!0),t):(e.baseState&amp;&amp;(e.baseState=!1,wt=!0),e.memoizedState=n)}function N$(e,t){var n=we;we=n!==0&amp;&amp;4&gt;n?n:4,e(!0);var i=Ju.transition;Ju.transition={};try{e(!1),t()}finally{we=n,Ju.transition=i}}function Cy(){return Gt().memoizedState}function j$(e,t,n){var i=gr(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},Ay(e))Py(t,n);else if(n=hy(e,t,n,i),n!==null){var r=ft();ln(n,e,i,r),Uy(n,t,i)}}function O$(e,t,n){var i=gr(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ay(e))Py(t,r);else{var o=e.alternate;if(e.lanes===0&amp;&amp;(o===null||o.lanes===0)&amp;&amp;(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(r.hasEagerState=!0,r.eagerState=s,dn(s,a)){var l=t.interleaved;l===null?(r.next=r,$f(t)):(r.next=l.next,l.next=r),t.interleaved=r;return}}catch{}finally{}n=hy(e,t,r,i),n!==null&amp;&amp;(r=ft(),ln(n,e,i,r),Uy(n,t,i))}}function Ay(e){var t=e.alternate;return e===Ce||t!==null&amp;&amp;t===Ce}function Py(e,t){Ro=pl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Uy(e,t,n){if(n&amp;4194240){var i=t.lanes;i&amp;=e.pendingLanes,n|=i,t.lanes=n,df(e,n)}}var hl={readContext:Jt,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},z$={readContext:Jt,useCallback:function(e,t){return _n().memoizedState=[e,t===void 0?null:t],e},useContext:Jt,useEffect:Ch,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Rs(4194308,4,Ny.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Rs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Rs(4,2,e,t)},useMemo:function(e,t){var n=_n();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=_n();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=j$.bind(null,Ce,e),[i.memoizedState,e]},useRef:function(e){var t=_n();return e={current:e},t.memoizedState=e},useState:Th,useDebugValue:Af,useDeferredValue:function(e){return _n().memoizedState=e},useTransition:function(){var e=Th(!1),t=e[0];return e=N$.bind(null,e[1]),_n().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=Ce,r=_n();if(Oe){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),et===null)throw Error(L(349));Gr&amp;30||wy(i,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,Ch(xy.bind(null,i,o,e),[e]),i.flags|=2048,ia(9,ky.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=_n(),t=et.identifierPrefix;if(Oe){var n=Zn,i=Ln;n=(i&amp;~(1&lt;&lt;32-sn(i)-1)).toString(32)+n,t=&quot;:&quot;+t+&quot;R&quot;+n,n=na++,0&lt;n&amp;&amp;(t+=&quot;H&quot;+n.toString(32)),t+=&quot;:&quot;}else n=E$++,t=&quot;:&quot;+t+&quot;r&quot;+n.toString(32)+&quot;:&quot;;return e.memoizedState=t},unstable_isNewReconciler:!1},T$={readContext:Jt,useCallback:Oy,useContext:Jt,useEffect:Cf,useImperativeHandle:jy,useInsertionEffect:Iy,useLayoutEffect:Ey,useMemo:zy,useReducer:Gu,useRef:$y,useState:function(){return Gu(ra)},useDebugValue:Af,useDeferredValue:function(e){var t=Gt();return Ty(t,Je.memoizedState,e)},useTransition:function(){var e=Gu(ra)[0],t=Gt().memoizedState;return[e,t]},useMutableSource:yy,useSyncExternalStore:_y,useId:Cy,unstable_isNewReconciler:!1},C$={readContext:Jt,useCallback:Oy,useContext:Jt,useEffect:Cf,useImperativeHandle:jy,useInsertionEffect:Iy,useLayoutEffect:Ey,useMemo:zy,useReducer:qu,useRef:$y,useState:function(){return qu(ra)},useDebugValue:Af,useDeferredValue:function(e){var t=Gt();return Je===null?t.memoizedState=e:Ty(t,Je.memoizedState,e)},useTransition:function(){var e=qu(ra)[0],t=Gt().memoizedState;return[e,t]},useMutableSource:yy,useSyncExternalStore:_y,useId:Cy,unstable_isNewReconciler:!1};function en(e,t){if(e&amp;&amp;e.defaultProps){t=Ae({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&amp;&amp;(t[n]=e[n]);return t}return t}function Wc(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:Ae({},t,n),e.memoizedState=n,e.lanes===0&amp;&amp;(e.updateQueue.baseState=n)}var Xl={isMounted:function(e){return(e=e._reactInternals)?oi(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=ft(),r=gr(e),o=Bn(i,r);o.payload=t,n!=null&amp;&amp;(o.callback=n),t=pr(e,o,r),t!==null&amp;&amp;(ln(t,e,r,i),Us(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=ft(),r=gr(e),o=Bn(i,r);o.tag=1,o.payload=t,n!=null&amp;&amp;(o.callback=n),t=pr(e,o,r),t!==null&amp;&amp;(ln(t,e,r,i),Us(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ft(),i=gr(e),r=Bn(n,i);r.tag=2,t!=null&amp;&amp;(r.callback=t),t=pr(e,r,i),t!==null&amp;&amp;(ln(t,e,i,n),Us(t,e,i))}};function Ah(e,t,n,i,r,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate==&quot;function&quot;?e.shouldComponentUpdate(i,o,a):t.prototype&amp;&amp;t.prototype.isPureReactComponent?!qo(n,i)||!qo(r,o):!0}function Dy(e,t,n){var i=!1,r=kr,o=t.contextType;return typeof o==&quot;object&quot;&amp;&amp;o!==null?o=Jt(o):(r=xt(t)?Kr:lt.current,i=t.contextTypes,o=(i=i!=null)?Vi(e,r):kr),t=new t(n,o),e.memoizedState=t.state!==null&amp;&amp;t.state!==void 0?t.state:null,t.updater=Xl,e.stateNode=t,t._reactInternals=e,i&amp;&amp;(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ph(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps==&quot;function&quot;&amp;&amp;t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps==&quot;function&quot;&amp;&amp;t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&amp;&amp;Xl.enqueueReplaceState(t,t.state,null)}function Hc(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},If(e);var o=t.contextType;typeof o==&quot;object&quot;&amp;&amp;o!==null?r.context=Jt(o):(o=xt(t)?Kr:lt.current,r.context=Vi(e,o)),r.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o==&quot;function&quot;&amp;&amp;(Wc(e,t,o,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps==&quot;function&quot;||typeof r.getSnapshotBeforeUpdate==&quot;function&quot;||typeof r.UNSAFE_componentWillMount!=&quot;function&quot;&amp;&amp;typeof r.componentWillMount!=&quot;function&quot;||(t=r.state,typeof r.componentWillMount==&quot;function&quot;&amp;&amp;r.componentWillMount(),typeof r.UNSAFE_componentWillMount==&quot;function&quot;&amp;&amp;r.UNSAFE_componentWillMount(),t!==r.state&amp;&amp;Xl.enqueueReplaceState(r,r.state,null),fl(e,n,r,i),r.state=e.memoizedState),typeof r.componentDidMount==&quot;function&quot;&amp;&amp;(e.flags|=4194308)}function Ji(e,t){try{var n=&quot;&quot;,i=t;do n+=sS(i),i=i.return;while(i);var r=n}catch(o){r=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:r,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Kc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var A$=typeof WeakMap==&quot;function&quot;?WeakMap:Map;function Ry(e,t,n){n=Bn(-1,n),n.tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){vl||(vl=!0,rd=i),Kc(e,t)},n}function Ly(e,t,n){n=Bn(-1,n),n.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i==&quot;function&quot;){var r=t.value;n.payload=function(){return i(r)},n.callback=function(){Kc(e,t)}}var o=e.stateNode;return o!==null&amp;&amp;typeof o.componentDidCatch==&quot;function&quot;&amp;&amp;(n.callback=function(){Kc(e,t),typeof i!=&quot;function&quot;&amp;&amp;(hr===null?hr=new Set([this]):hr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:&quot;&quot;})}),n}function Uh(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new A$;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&amp;&amp;(r=new Set,i.set(t,r));r.has(n)||(r.add(n),e=J$.bind(null,e,t,n),t.then(e,e))}function Dh(e){do{var t;if((t=e.tag===13)&amp;&amp;(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Rh(e,t,n,i,r){return e.mode&amp;1?(e.flags|=65536,e.lanes=r,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&amp;=-52805,n.tag===1&amp;&amp;(n.alternate===null?n.tag=17:(t=Bn(-1,1),t.tag=2,pr(n,t,1))),n.lanes|=1),e)}var P$=qn.ReactCurrentOwner,wt=!1;function ct(e,t,n,i){t.child=e===null?py(t,null,n,i):Hi(t,e.child,n,i)}function Lh(e,t,n,i,r){n=n.render;var o=t.ref;return Ci(t,r),i=zf(e,t,n,i,o,r),n=Tf(),e!==null&amp;&amp;!wt?(t.updateQueue=e.updateQueue,t.flags&amp;=-2053,e.lanes&amp;=~r,Kn(e,t,r)):(Oe&amp;&amp;n&amp;&amp;_f(t),t.flags|=1,ct(e,t,i,r),t.child)}function Zh(e,t,n,i,r){if(e===null){var o=n.type;return typeof o==&quot;function&quot;&amp;&amp;!Ff(o)&amp;&amp;o.defaultProps===void 0&amp;&amp;n.compare===null&amp;&amp;n.defaultProps===void 0?(t.tag=15,t.type=o,Zy(e,t,o,i,r)):(e=Fs(n.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&amp;r)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:qo,n(a,i)&amp;&amp;e.ref===t.ref)return Kn(e,t,r)}return t.flags|=1,e=vr(o,i),e.ref=t.ref,e.return=t,t.child=e}function Zy(e,t,n,i,r){if(e!==null){var o=e.memoizedProps;if(qo(o,i)&amp;&amp;e.ref===t.ref)if(wt=!1,t.pendingProps=i=o,(e.lanes&amp;r)!==0)e.flags&amp;131072&amp;&amp;(wt=!0);else return t.lanes=e.lanes,Kn(e,t,r)}return Jc(e,t,n,i,r)}function My(e,t,n){var i=t.pendingProps,r=i.children,o=e!==null?e.memoizedState:null;if(i.mode===&quot;hidden&quot;)if(!(t.mode&amp;1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ke($i,Nt),Nt|=n;else{if(!(n&amp;1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ke($i,Nt),Nt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=o!==null?o.baseLanes:n,ke($i,Nt),Nt|=i}else o!==null?(i=o.baseLanes|n,t.memoizedState=null):i=n,ke($i,Nt),Nt|=i;return ct(e,t,r,n),t.child}function Fy(e,t){var n=t.ref;(e===null&amp;&amp;n!==null||e!==null&amp;&amp;e.ref!==n)&amp;&amp;(t.flags|=512,t.flags|=2097152)}function Jc(e,t,n,i,r){var o=xt(n)?Kr:lt.current;return o=Vi(t,o),Ci(t,r),n=zf(e,t,n,i,o,r),i=Tf(),e!==null&amp;&amp;!wt?(t.updateQueue=e.updateQueue,t.flags&amp;=-2053,e.lanes&amp;=~r,Kn(e,t,r)):(Oe&amp;&amp;i&amp;&amp;_f(t),t.flags|=1,ct(e,t,n,r),t.child)}function Mh(e,t,n,i,r){if(xt(n)){var o=!0;sl(t)}else o=!1;if(Ci(t,r),t.stateNode===null)Ls(e,t),Dy(t,n,i),Hc(t,n,i,r),i=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u==&quot;object&quot;&amp;&amp;u!==null?u=Jt(u):(u=xt(n)?Kr:lt.current,u=Vi(t,u));var d=n.getDerivedStateFromProps,h=typeof d==&quot;function&quot;||typeof a.getSnapshotBeforeUpdate==&quot;function&quot;;h||typeof a.UNSAFE_componentWillReceiveProps!=&quot;function&quot;&amp;&amp;typeof a.componentWillReceiveProps!=&quot;function&quot;||(s!==i||l!==u)&amp;&amp;Ph(t,a,i,u),er=!1;var g=t.memoizedState;a.state=g,fl(t,i,a,r),l=t.memoizedState,s!==i||g!==l||kt.current||er?(typeof d==&quot;function&quot;&amp;&amp;(Wc(t,n,d,i),l=t.memoizedState),(s=er||Ah(t,n,s,i,g,l,u))?(h||typeof a.UNSAFE_componentWillMount!=&quot;function&quot;&amp;&amp;typeof a.componentWillMount!=&quot;function&quot;||(typeof a.componentWillMount==&quot;function&quot;&amp;&amp;a.componentWillMount(),typeof a.UNSAFE_componentWillMount==&quot;function&quot;&amp;&amp;a.UNSAFE_componentWillMount()),typeof a.componentDidMount==&quot;function&quot;&amp;&amp;(t.flags|=4194308)):(typeof a.componentDidMount==&quot;function&quot;&amp;&amp;(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=l),a.props=i,a.state=l,a.context=u,i=s):(typeof a.componentDidMount==&quot;function&quot;&amp;&amp;(t.flags|=4194308),i=!1)}else{a=t.stateNode,gy(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:en(t.type,s),a.props=u,h=t.pendingProps,g=a.context,l=n.contextType,typeof l==&quot;object&quot;&amp;&amp;l!==null?l=Jt(l):(l=xt(n)?Kr:lt.current,l=Vi(t,l));var v=n.getDerivedStateFromProps;(d=typeof v==&quot;function&quot;||typeof a.getSnapshotBeforeUpdate==&quot;function&quot;)||typeof a.UNSAFE_componentWillReceiveProps!=&quot;function&quot;&amp;&amp;typeof a.componentWillReceiveProps!=&quot;function&quot;||(s!==h||g!==l)&amp;&amp;Ph(t,a,i,l),er=!1,g=t.memoizedState,a.state=g,fl(t,i,a,r);var y=t.memoizedState;s!==h||g!==y||kt.current||er?(typeof v==&quot;function&quot;&amp;&amp;(Wc(t,n,v,i),y=t.memoizedState),(u=er||Ah(t,n,u,i,g,y,l)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!=&quot;function&quot;&amp;&amp;typeof a.componentWillUpdate!=&quot;function&quot;||(typeof a.componentWillUpdate==&quot;function&quot;&amp;&amp;a.componentWillUpdate(i,y,l),typeof a.UNSAFE_componentWillUpdate==&quot;function&quot;&amp;&amp;a.UNSAFE_componentWillUpdate(i,y,l)),typeof a.componentDidUpdate==&quot;function&quot;&amp;&amp;(t.flags|=4),typeof a.getSnapshotBeforeUpdate==&quot;function&quot;&amp;&amp;(t.flags|=1024)):(typeof a.componentDidUpdate!=&quot;function&quot;||s===e.memoizedProps&amp;&amp;g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=&quot;function&quot;||s===e.memoizedProps&amp;&amp;g===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=y),a.props=i,a.state=y,a.context=l,i=u):(typeof a.componentDidUpdate!=&quot;function&quot;||s===e.memoizedProps&amp;&amp;g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=&quot;function&quot;||s===e.memoizedProps&amp;&amp;g===e.memoizedState||(t.flags|=1024),i=!1)}return Gc(e,t,n,i,o,r)}function Gc(e,t,n,i,r,o){Fy(e,t);var a=(t.flags&amp;128)!==0;if(!i&amp;&amp;!a)return r&amp;&amp;Ih(t,n,!1),Kn(e,t,o);i=t.stateNode,P$.current=t;var s=a&amp;&amp;typeof n.getDerivedStateFromError!=&quot;function&quot;?null:i.render();return t.flags|=1,e!==null&amp;&amp;a?(t.child=Hi(t,e.child,null,o),t.child=Hi(t,null,s,o)):ct(e,t,s,o),t.memoizedState=i.state,r&amp;&amp;Ih(t,n,!0),t.child}function By(e){var t=e.stateNode;t.pendingContext?$h(e,t.pendingContext,t.pendingContext!==t.context):t.context&amp;&amp;$h(e,t.context,!1),Ef(e,t.containerInfo)}function Fh(e,t,n,i,r){return Wi(),kf(r),t.flags|=256,ct(e,t,n,i),t.child}var qc={dehydrated:null,treeContext:null,retryLane:0};function Qc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Vy(e,t,n){var i=t.pendingProps,r=Te.current,o=!1,a=(t.flags&amp;128)!==0,s;if((s=a)||(s=e!==null&amp;&amp;e.memoizedState===null?!1:(r&amp;2)!==0),s?(o=!0,t.flags&amp;=-129):(e===null||e.memoizedState!==null)&amp;&amp;(r|=1),ke(Te,r&amp;1),e===null)return Bc(t),e=t.memoizedState,e!==null&amp;&amp;(e=e.dehydrated,e!==null)?(t.mode&amp;1?e.data===&quot;$!&quot;?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=i.children,e=i.fallback,o?(i=t.mode,o=t.child,a={mode:&quot;hidden&quot;,children:a},!(i&amp;1)&amp;&amp;o!==null?(o.childLanes=0,o.pendingProps=a):o=tu(a,i,0,null),e=Br(e,i,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Qc(n),t.memoizedState=qc,e):Pf(t,a));if(r=e.memoizedState,r!==null&amp;&amp;(s=r.dehydrated,s!==null))return U$(e,t,a,i,s,r,n);if(o){o=i.fallback,a=t.mode,r=e.child,s=r.sibling;var l={mode:&quot;hidden&quot;,children:i.children};return!(a&amp;1)&amp;&amp;t.child!==r?(i=t.child,i.childLanes=0,i.pendingProps=l,t.deletions=null):(i=vr(r,l),i.subtreeFlags=r.subtreeFlags&amp;14680064),s!==null?o=vr(s,o):(o=Br(o,a,n,null),o.flags|=2),o.return=t,i.return=t,i.sibling=o,t.child=i,i=o,o=t.child,a=e.child.memoizedState,a=a===null?Qc(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&amp;~n,t.memoizedState=qc,i}return o=e.child,e=o.sibling,i=vr(o,{mode:&quot;visible&quot;,children:i.children}),!(t.mode&amp;1)&amp;&amp;(i.lanes=n),i.return=t,i.sibling=null,e!==null&amp;&amp;(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Pf(e,t){return t=tu({mode:&quot;visible&quot;,children:t},e.mode,0,null),t.return=e,e.child=t}function _s(e,t,n,i){return i!==null&amp;&amp;kf(i),Hi(t,e.child,null,n),e=Pf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function U$(e,t,n,i,r,o,a){if(n)return t.flags&amp;256?(t.flags&amp;=-257,i=Qu(Error(L(422))),_s(e,t,a,i)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=i.fallback,r=t.mode,i=tu({mode:&quot;visible&quot;,children:i.children},r,0,null),o=Br(o,r,a,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&amp;1&amp;&amp;Hi(t,e.child,null,a),t.child.memoizedState=Qc(a),t.memoizedState=qc,o);if(!(t.mode&amp;1))return _s(e,t,a,null);if(r.data===&quot;$!&quot;){if(i=r.nextSibling&amp;&amp;r.nextSibling.dataset,i)var s=i.dgst;return i=s,o=Error(L(419)),i=Qu(o,i,void 0),_s(e,t,a,i)}if(s=(a&amp;e.childLanes)!==0,wt||s){if(i=et,i!==null){switch(a&amp;-a){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&amp;(i.suspendedLanes|a)?0:r,r!==0&amp;&amp;r!==o.retryLane&amp;&amp;(o.retryLane=r,Hn(e,r),ln(i,e,r,-1))}return Mf(),i=Qu(Error(L(421))),_s(e,t,a,i)}return r.data===&quot;$?&quot;?(t.flags|=128,t.child=e.child,t=G$.bind(null,e),r._reactRetry=t,null):(e=o.treeContext,Ot=mr(r.nextSibling),Tt=t,Oe=!0,on=null,e!==null&amp;&amp;(Lt[Zt++]=Ln,Lt[Zt++]=Zn,Lt[Zt++]=Jr,Ln=e.id,Zn=e.overflow,Jr=t),t=Pf(t,i.children),t.flags|=4096,t)}function Bh(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&amp;&amp;(i.lanes|=t),Vc(e.return,t,n)}function Xu(e,t,n,i,r){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=r)}function Wy(e,t,n){var i=t.pendingProps,r=i.revealOrder,o=i.tail;if(ct(e,t,i.children,n),i=Te.current,i&amp;2)i=i&amp;1|2,t.flags|=128;else{if(e!==null&amp;&amp;e.flags&amp;128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&amp;&amp;Bh(e,n,t);else if(e.tag===19)Bh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&amp;=1}if(ke(Te,i),!(t.mode&amp;1))t.memoizedState=null;else switch(r){case&quot;forwards&quot;:for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&amp;&amp;ml(e)===null&amp;&amp;(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Xu(t,!1,r,n,o);break;case&quot;backwards&quot;:for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&amp;&amp;ml(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Xu(t,!0,n,null,o);break;case&quot;together&quot;:Xu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ls(e,t){!(t.mode&amp;1)&amp;&amp;e!==null&amp;&amp;(e.alternate=null,t.alternate=null,t.flags|=2)}function Kn(e,t,n){if(e!==null&amp;&amp;(t.dependencies=e.dependencies),qr|=t.lanes,!(n&amp;t.childLanes))return null;if(e!==null&amp;&amp;t.child!==e.child)throw Error(L(153));if(t.child!==null){for(e=t.child,n=vr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function D$(e,t,n){switch(t.tag){case 3:By(t),Wi();break;case 5:vy(t);break;case 1:xt(t.type)&amp;&amp;sl(t);break;case 4:Ef(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,r=t.memoizedProps.value;ke(cl,i._currentValue),i._currentValue=r;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(ke(Te,Te.current&amp;1),t.flags|=128,null):n&amp;t.child.childLanes?Vy(e,t,n):(ke(Te,Te.current&amp;1),e=Kn(e,t,n),e!==null?e.sibling:null);ke(Te,Te.current&amp;1);break;case 19:if(i=(n&amp;t.childLanes)!==0,e.flags&amp;128){if(i)return Wy(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&amp;&amp;(r.rendering=null,r.tail=null,r.lastEffect=null),ke(Te,Te.current),i)break;return null;case 22:case 23:return t.lanes=0,My(e,t,n)}return Kn(e,t,n)}var Hy,Xc,Ky,Jy;Hy=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&amp;&amp;n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Xc=function(){};Ky=function(e,t,n,i){var r=e.memoizedProps;if(r!==i){e=t.stateNode,Rr(In.current);var o=null;switch(n){case&quot;input&quot;:r=wc(e,r),i=wc(e,i),o=[];break;case&quot;select&quot;:r=Ae({},r,{value:void 0}),i=Ae({},i,{value:void 0}),o=[];break;case&quot;textarea&quot;:r=bc(e,r),i=bc(e,i),o=[];break;default:typeof r.onClick!=&quot;function&quot;&amp;&amp;typeof i.onClick==&quot;function&quot;&amp;&amp;(e.onclick=ol)}$c(n,i);var a;n=null;for(u in r)if(!i.hasOwnProperty(u)&amp;&amp;r.hasOwnProperty(u)&amp;&amp;r[u]!=null)if(u===&quot;style&quot;){var s=r[u];for(a in s)s.hasOwnProperty(a)&amp;&amp;(n||(n={}),n[a]=&quot;&quot;)}else u!==&quot;dangerouslySetInnerHTML&quot;&amp;&amp;u!==&quot;children&quot;&amp;&amp;u!==&quot;suppressContentEditableWarning&quot;&amp;&amp;u!==&quot;suppressHydrationWarning&quot;&amp;&amp;u!==&quot;autoFocus&quot;&amp;&amp;(Bo.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in i){var l=i[u];if(s=r!=null?r[u]:void 0,i.hasOwnProperty(u)&amp;&amp;l!==s&amp;&amp;(l!=null||s!=null))if(u===&quot;style&quot;)if(s){for(a in s)!s.hasOwnProperty(a)||l&amp;&amp;l.hasOwnProperty(a)||(n||(n={}),n[a]=&quot;&quot;);for(a in l)l.hasOwnProperty(a)&amp;&amp;s[a]!==l[a]&amp;&amp;(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(u,n)),n=l;else u===&quot;dangerouslySetInnerHTML&quot;?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&amp;&amp;s!==l&amp;&amp;(o=o||[]).push(u,l)):u===&quot;children&quot;?typeof l!=&quot;string&quot;&amp;&amp;typeof l!=&quot;number&quot;||(o=o||[]).push(u,&quot;&quot;+l):u!==&quot;suppressContentEditableWarning&quot;&amp;&amp;u!==&quot;suppressHydrationWarning&quot;&amp;&amp;(Bo.hasOwnProperty(u)?(l!=null&amp;&amp;u===&quot;onScroll&quot;&amp;&amp;be(&quot;scroll&quot;,e),o||s===l||(o=[])):(o=o||[]).push(u,l))}n&amp;&amp;(o=o||[]).push(&quot;style&quot;,n);var u=o;(t.updateQueue=u)&amp;&amp;(t.flags|=4)}};Jy=function(e,t,n,i){n!==i&amp;&amp;(t.flags|=4)};function wo(e,t){if(!Oe)switch(e.tailMode){case&quot;hidden&quot;:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&amp;&amp;(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case&quot;collapsed&quot;:n=e.tail;for(var i=null;n!==null;)n.alternate!==null&amp;&amp;(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function ot(e){var t=e.alternate!==null&amp;&amp;e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&amp;14680064,i|=r.flags&amp;14680064,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function R$(e,t,n){var i=t.pendingProps;switch(wf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(t),null;case 1:return xt(t.type)&amp;&amp;al(),ot(t),null;case 3:return i=t.stateNode,Ki(),Ee(kt),Ee(lt),jf(),i.pendingContext&amp;&amp;(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&amp;&amp;(vs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&amp;&amp;!(t.flags&amp;256)||(t.flags|=1024,on!==null&amp;&amp;(ad(on),on=null))),Xc(e,t),ot(t),null;case 5:Nf(t);var r=Rr(ta.current);if(n=t.type,e!==null&amp;&amp;t.stateNode!=null)Ky(e,t,n,i,r),e.ref!==t.ref&amp;&amp;(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(L(166));return ot(t),null}if(e=Rr(In.current),vs(t)){i=t.stateNode,n=t.type;var o=t.memoizedProps;switch(i[bn]=t,i[Yo]=o,e=(t.mode&amp;1)!==0,n){case&quot;dialog&quot;:be(&quot;cancel&quot;,i),be(&quot;close&quot;,i);break;case&quot;iframe&quot;:case&quot;object&quot;:case&quot;embed&quot;:be(&quot;load&quot;,i);break;case&quot;video&quot;:case&quot;audio&quot;:for(r=0;r&lt;Eo.length;r++)be(Eo[r],i);break;case&quot;source&quot;:be(&quot;error&quot;,i);break;case&quot;img&quot;:case&quot;image&quot;:case&quot;link&quot;:be(&quot;error&quot;,i),be(&quot;load&quot;,i);break;case&quot;details&quot;:be(&quot;toggle&quot;,i);break;case&quot;input&quot;:Xp(i,o),be(&quot;invalid&quot;,i);break;case&quot;select&quot;:i._wrapperState={wasMultiple:!!o.multiple},be(&quot;invalid&quot;,i);break;case&quot;textarea&quot;:eh(i,o),be(&quot;invalid&quot;,i)}$c(n,o),r=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a===&quot;children&quot;?typeof s==&quot;string&quot;?i.textContent!==s&amp;&amp;(o.suppressHydrationWarning!==!0&amp;&amp;gs(i.textContent,s,e),r=[&quot;children&quot;,s]):typeof s==&quot;number&quot;&amp;&amp;i.textContent!==&quot;&quot;+s&amp;&amp;(o.suppressHydrationWarning!==!0&amp;&amp;gs(i.textContent,s,e),r=[&quot;children&quot;,&quot;&quot;+s]):Bo.hasOwnProperty(a)&amp;&amp;s!=null&amp;&amp;a===&quot;onScroll&quot;&amp;&amp;be(&quot;scroll&quot;,i)}switch(n){case&quot;input&quot;:ls(i),Yp(i,o,!0);break;case&quot;textarea&quot;:ls(i),th(i);break;case&quot;select&quot;:case&quot;option&quot;:break;default:typeof o.onClick==&quot;function&quot;&amp;&amp;(i.onclick=ol)}i=r,t.updateQueue=i,i!==null&amp;&amp;(t.flags|=4)}else{a=r.nodeType===9?r:r.ownerDocument,e===&quot;http://www.w3.org/1999/xhtml&quot;&amp;&amp;(e=xv(n)),e===&quot;http://www.w3.org/1999/xhtml&quot;?n===&quot;script&quot;?(e=a.createElement(&quot;div&quot;),e.innerHTML=&quot;&lt;script&gt;&lt;\/script&gt;&quot;,e=e.removeChild(e.firstChild)):typeof i.is==&quot;string&quot;?e=a.createElement(n,{is:i.is}):(e=a.createElement(n),n===&quot;select&quot;&amp;&amp;(a=e,i.multiple?a.multiple=!0:i.size&amp;&amp;(a.size=i.size))):e=a.createElementNS(e,n),e[bn]=t,e[Yo]=i,Hy(e,t,!1,!1),t.stateNode=e;e:{switch(a=Ic(n,i),n){case&quot;dialog&quot;:be(&quot;cancel&quot;,e),be(&quot;close&quot;,e),r=i;break;case&quot;iframe&quot;:case&quot;object&quot;:case&quot;embed&quot;:be(&quot;load&quot;,e),r=i;break;case&quot;video&quot;:case&quot;audio&quot;:for(r=0;r&lt;Eo.length;r++)be(Eo[r],e);r=i;break;case&quot;source&quot;:be(&quot;error&quot;,e),r=i;break;case&quot;img&quot;:case&quot;image&quot;:case&quot;link&quot;:be(&quot;error&quot;,e),be(&quot;load&quot;,e),r=i;break;case&quot;details&quot;:be(&quot;toggle&quot;,e),r=i;break;case&quot;input&quot;:Xp(e,i),r=wc(e,i),be(&quot;invalid&quot;,e);break;case&quot;option&quot;:r=i;break;case&quot;select&quot;:e._wrapperState={wasMultiple:!!i.multiple},r=Ae({},i,{value:void 0}),be(&quot;invalid&quot;,e);break;case&quot;textarea&quot;:eh(e,i),r=bc(e,i),be(&quot;invalid&quot;,e);break;default:r=i}$c(n,r),s=r;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o===&quot;style&quot;?$v(e,l):o===&quot;dangerouslySetInnerHTML&quot;?(l=l?l.__html:void 0,l!=null&amp;&amp;bv(e,l)):o===&quot;children&quot;?typeof l==&quot;string&quot;?(n!==&quot;textarea&quot;||l!==&quot;&quot;)&amp;&amp;Vo(e,l):typeof l==&quot;number&quot;&amp;&amp;Vo(e,&quot;&quot;+l):o!==&quot;suppressContentEditableWarning&quot;&amp;&amp;o!==&quot;suppressHydrationWarning&quot;&amp;&amp;o!==&quot;autoFocus&quot;&amp;&amp;(Bo.hasOwnProperty(o)?l!=null&amp;&amp;o===&quot;onScroll&quot;&amp;&amp;be(&quot;scroll&quot;,e):l!=null&amp;&amp;of(e,o,l,a))}switch(n){case&quot;input&quot;:ls(e),Yp(e,i,!1);break;case&quot;textarea&quot;:ls(e),th(e);break;case&quot;option&quot;:i.value!=null&amp;&amp;e.setAttribute(&quot;value&quot;,&quot;&quot;+wr(i.value));break;case&quot;select&quot;:e.multiple=!!i.multiple,o=i.value,o!=null?ji(e,!!i.multiple,o,!1):i.defaultValue!=null&amp;&amp;ji(e,!!i.multiple,i.defaultValue,!0);break;default:typeof r.onClick==&quot;function&quot;&amp;&amp;(e.onclick=ol)}switch(n){case&quot;button&quot;:case&quot;input&quot;:case&quot;select&quot;:case&quot;textarea&quot;:i=!!i.autoFocus;break e;case&quot;img&quot;:i=!0;break e;default:i=!1}}i&amp;&amp;(t.flags|=4)}t.ref!==null&amp;&amp;(t.flags|=512,t.flags|=2097152)}return ot(t),null;case 6:if(e&amp;&amp;t.stateNode!=null)Jy(e,t,e.memoizedProps,i);else{if(typeof i!=&quot;string&quot;&amp;&amp;t.stateNode===null)throw Error(L(166));if(n=Rr(ta.current),Rr(In.current),vs(t)){if(i=t.stateNode,n=t.memoizedProps,i[bn]=t,(o=i.nodeValue!==n)&amp;&amp;(e=Tt,e!==null))switch(e.tag){case 3:gs(i.nodeValue,n,(e.mode&amp;1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&amp;&amp;gs(i.nodeValue,n,(e.mode&amp;1)!==0)}o&amp;&amp;(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[bn]=t,t.stateNode=i}return ot(t),null;case 13:if(Ee(Te),i=t.memoizedState,e===null||e.memoizedState!==null&amp;&amp;e.memoizedState.dehydrated!==null){if(Oe&amp;&amp;Ot!==null&amp;&amp;t.mode&amp;1&amp;&amp;!(t.flags&amp;128))fy(),Wi(),t.flags|=98560,o=!1;else if(o=vs(t),i!==null&amp;&amp;i.dehydrated!==null){if(e===null){if(!o)throw Error(L(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(L(317));o[bn]=t}else Wi(),!(t.flags&amp;128)&amp;&amp;(t.memoizedState=null),t.flags|=4;ot(t),o=!1}else on!==null&amp;&amp;(ad(on),on=null),o=!0;if(!o)return t.flags&amp;65536?t:null}return t.flags&amp;128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&amp;&amp;e.memoizedState!==null)&amp;&amp;i&amp;&amp;(t.child.flags|=8192,t.mode&amp;1&amp;&amp;(e===null||Te.current&amp;1?Ge===0&amp;&amp;(Ge=3):Mf())),t.updateQueue!==null&amp;&amp;(t.flags|=4),ot(t),null);case 4:return Ki(),Xc(e,t),e===null&amp;&amp;Qo(t.stateNode.containerInfo),ot(t),null;case 10:return Sf(t.type._context),ot(t),null;case 17:return xt(t.type)&amp;&amp;al(),ot(t),null;case 19:if(Ee(Te),o=t.memoizedState,o===null)return ot(t),null;if(i=(t.flags&amp;128)!==0,a=o.rendering,a===null)if(i)wo(o,!1);else{if(Ge!==0||e!==null&amp;&amp;e.flags&amp;128)for(e=t.child;e!==null;){if(a=ml(e),a!==null){for(t.flags|=128,wo(o,!1),i=a.updateQueue,i!==null&amp;&amp;(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)o=n,e=i,o.flags&amp;=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ke(Te,Te.current&amp;1|2),t.child}e=e.sibling}o.tail!==null&amp;&amp;Ze()&gt;Gi&amp;&amp;(t.flags|=128,i=!0,wo(o,!1),t.lanes=4194304)}else{if(!i)if(e=ml(a),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&amp;&amp;(t.updateQueue=n,t.flags|=4),wo(o,!0),o.tail===null&amp;&amp;o.tailMode===&quot;hidden&quot;&amp;&amp;!a.alternate&amp;&amp;!Oe)return ot(t),null}else 2*Ze()-o.renderingStartTime&gt;Gi&amp;&amp;n!==1073741824&amp;&amp;(t.flags|=128,i=!0,wo(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ze(),t.sibling=null,n=Te.current,ke(Te,i?n&amp;1|2:n&amp;1),t):(ot(t),null);case 22:case 23:return Zf(),i=t.memoizedState!==null,e!==null&amp;&amp;e.memoizedState!==null!==i&amp;&amp;(t.flags|=8192),i&amp;&amp;t.mode&amp;1?Nt&amp;1073741824&amp;&amp;(ot(t),t.subtreeFlags&amp;6&amp;&amp;(t.flags|=8192)):ot(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function L$(e,t){switch(wf(t),t.tag){case 1:return xt(t.type)&amp;&amp;al(),e=t.flags,e&amp;65536?(t.flags=e&amp;-65537|128,t):null;case 3:return Ki(),Ee(kt),Ee(lt),jf(),e=t.flags,e&amp;65536&amp;&amp;!(e&amp;128)?(t.flags=e&amp;-65537|128,t):null;case 5:return Nf(t),null;case 13:if(Ee(Te),e=t.memoizedState,e!==null&amp;&amp;e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));Wi()}return e=t.flags,e&amp;65536?(t.flags=e&amp;-65537|128,t):null;case 19:return Ee(Te),null;case 4:return Ki(),null;case 10:return Sf(t.type._context),null;case 22:case 23:return Zf(),null;case 24:return null;default:return null}}var ws=!1,at=!1,Z$=typeof WeakSet==&quot;function&quot;?WeakSet:Set,J=null;function Si(e,t){var n=e.ref;if(n!==null)if(typeof n==&quot;function&quot;)try{n(null)}catch(i){Re(e,t,i)}else n.current=null}function Yc(e,t,n){try{n()}catch(i){Re(e,t,i)}}var Vh=!1;function M$(e,t){if(Uc=nl,e=Yv(),yf(e)){if(&quot;selectionStart&quot;in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&amp;&amp;n.defaultView||window;var i=n.getSelection&amp;&amp;n.getSelection();if(i&amp;&amp;i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,d=0,h=e,g=null;t:for(;;){for(var v;h!==n||r!==0&amp;&amp;h.nodeType!==3||(s=a+r),h!==o||i!==0&amp;&amp;h.nodeType!==3||(l=a+i),h.nodeType===3&amp;&amp;(a+=h.nodeValue.length),(v=h.firstChild)!==null;)g=h,h=v;for(;;){if(h===e)break t;if(g===n&amp;&amp;++u===r&amp;&amp;(s=a),g===o&amp;&amp;++d===i&amp;&amp;(l=a),(v=h.nextSibling)!==null)break;h=g,g=h.parentNode}h=v}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Dc={focusedElem:e,selectionRange:n},nl=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&amp;1028)!==0&amp;&amp;e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var y=t.alternate;if(t.flags&amp;1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var E=y.memoizedProps,N=y.memoizedState,p=t.stateNode,f=p.getSnapshotBeforeUpdate(t.elementType===t.type?E:en(t.type,E),N);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent=&quot;&quot;:m.nodeType===9&amp;&amp;m.documentElement&amp;&amp;m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(k){Re(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return y=Vh,Vh=!1,y}function Lo(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&amp;e)===e){var o=r.destroy;r.destroy=void 0,o!==void 0&amp;&amp;Yc(t,n,o)}r=r.next}while(r!==i)}}function Yl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&amp;e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function ed(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==&quot;function&quot;?t(e):t.current=e}}function Gy(e){var t=e.alternate;t!==null&amp;&amp;(e.alternate=null,Gy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&amp;&amp;(t=e.stateNode,t!==null&amp;&amp;(delete t[bn],delete t[Yo],delete t[Zc],delete t[b$],delete t[S$])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function qy(e){return e.tag===5||e.tag===3||e.tag===4}function Wh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&amp;&amp;e.tag!==6&amp;&amp;e.tag!==18;){if(e.flags&amp;2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&amp;2))return e.stateNode}}function td(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ol));else if(i!==4&amp;&amp;(e=e.child,e!==null))for(td(e,t,n),e=e.sibling;e!==null;)td(e,t,n),e=e.sibling}function nd(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&amp;&amp;(e=e.child,e!==null))for(nd(e,t,n),e=e.sibling;e!==null;)nd(e,t,n),e=e.sibling}var tt=null,rn=!1;function Qn(e,t,n){for(n=n.child;n!==null;)Qy(e,t,n),n=n.sibling}function Qy(e,t,n){if($n&amp;&amp;typeof $n.onCommitFiberUnmount==&quot;function&quot;)try{$n.onCommitFiberUnmount(Wl,n)}catch{}switch(n.tag){case 5:at||Si(n,t);case 6:var i=tt,r=rn;tt=null,Qn(e,t,n),tt=i,rn=r,tt!==null&amp;&amp;(rn?(e=tt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):tt.removeChild(n.stateNode));break;case 18:tt!==null&amp;&amp;(rn?(e=tt,n=n.stateNode,e.nodeType===8?Wu(e.parentNode,n):e.nodeType===1&amp;&amp;Wu(e,n),Jo(e)):Wu(tt,n.stateNode));break;case 4:i=tt,r=rn,tt=n.stateNode.containerInfo,rn=!0,Qn(e,t,n),tt=i,rn=r;break;case 0:case 11:case 14:case 15:if(!at&amp;&amp;(i=n.updateQueue,i!==null&amp;&amp;(i=i.lastEffect,i!==null))){r=i=i.next;do{var o=r,a=o.destroy;o=o.tag,a!==void 0&amp;&amp;(o&amp;2||o&amp;4)&amp;&amp;Yc(n,t,a),r=r.next}while(r!==i)}Qn(e,t,n);break;case 1:if(!at&amp;&amp;(Si(n,t),i=n.stateNode,typeof i.componentWillUnmount==&quot;function&quot;))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(s){Re(n,t,s)}Qn(e,t,n);break;case 21:Qn(e,t,n);break;case 22:n.mode&amp;1?(at=(i=at)||n.memoizedState!==null,Qn(e,t,n),at=i):Qn(e,t,n);break;default:Qn(e,t,n)}}function Hh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&amp;&amp;(n=e.stateNode=new Z$),t.forEach(function(i){var r=q$.bind(null,e,i);n.has(i)||(n.add(i),i.then(r,r))})}}function Xt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i&lt;n.length;i++){var r=n[i];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:tt=s.stateNode,rn=!1;break e;case 3:tt=s.stateNode.containerInfo,rn=!0;break e;case 4:tt=s.stateNode.containerInfo,rn=!0;break e}s=s.return}if(tt===null)throw Error(L(160));Qy(o,a,r),tt=null,rn=!1;var l=r.alternate;l!==null&amp;&amp;(l.return=null),r.return=null}catch(u){Re(r,t,u)}}if(t.subtreeFlags&amp;12854)for(t=t.child;t!==null;)Xy(t,e),t=t.sibling}function Xy(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Xt(t,e),gn(e),i&amp;4){try{Lo(3,e,e.return),Yl(3,e)}catch(E){Re(e,e.return,E)}try{Lo(5,e,e.return)}catch(E){Re(e,e.return,E)}}break;case 1:Xt(t,e),gn(e),i&amp;512&amp;&amp;n!==null&amp;&amp;Si(n,n.return);break;case 5:if(Xt(t,e),gn(e),i&amp;512&amp;&amp;n!==null&amp;&amp;Si(n,n.return),e.flags&amp;32){var r=e.stateNode;try{Vo(r,&quot;&quot;)}catch(E){Re(e,e.return,E)}}if(i&amp;4&amp;&amp;(r=e.stateNode,r!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s===&quot;input&quot;&amp;&amp;o.type===&quot;radio&quot;&amp;&amp;o.name!=null&amp;&amp;wv(r,o),Ic(s,a);var u=Ic(s,o);for(a=0;a&lt;l.length;a+=2){var d=l[a],h=l[a+1];d===&quot;style&quot;?$v(r,h):d===&quot;dangerouslySetInnerHTML&quot;?bv(r,h):d===&quot;children&quot;?Vo(r,h):of(r,d,h,u)}switch(s){case&quot;input&quot;:kc(r,o);break;case&quot;textarea&quot;:kv(r,o);break;case&quot;select&quot;:var g=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?ji(r,!!o.multiple,v,!1):g!==!!o.multiple&amp;&amp;(o.defaultValue!=null?ji(r,!!o.multiple,o.defaultValue,!0):ji(r,!!o.multiple,o.multiple?[]:&quot;&quot;,!1))}r[Yo]=o}catch(E){Re(e,e.return,E)}}break;case 6:if(Xt(t,e),gn(e),i&amp;4){if(e.stateNode===null)throw Error(L(162));r=e.stateNode,o=e.memoizedProps;try{r.nodeValue=o}catch(E){Re(e,e.return,E)}}break;case 3:if(Xt(t,e),gn(e),i&amp;4&amp;&amp;n!==null&amp;&amp;n.memoizedState.isDehydrated)try{Jo(t.containerInfo)}catch(E){Re(e,e.return,E)}break;case 4:Xt(t,e),gn(e);break;case 13:Xt(t,e),gn(e),r=e.child,r.flags&amp;8192&amp;&amp;(o=r.memoizedState!==null,r.stateNode.isHidden=o,!o||r.alternate!==null&amp;&amp;r.alternate.memoizedState!==null||(Rf=Ze())),i&amp;4&amp;&amp;Hh(e);break;case 22:if(d=n!==null&amp;&amp;n.memoizedState!==null,e.mode&amp;1?(at=(u=at)||d,Xt(t,e),at=u):Xt(t,e),gn(e),i&amp;8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&amp;&amp;!d&amp;&amp;e.mode&amp;1)for(J=e,d=e.child;d!==null;){for(h=J=d;J!==null;){switch(g=J,v=g.child,g.tag){case 0:case 11:case 14:case 15:Lo(4,g,g.return);break;case 1:Si(g,g.return);var y=g.stateNode;if(typeof y.componentWillUnmount==&quot;function&quot;){i=g,n=g.return;try{t=i,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(E){Re(i,n,E)}}break;case 5:Si(g,g.return);break;case 22:if(g.memoizedState!==null){Jh(h);continue}}v!==null?(v.return=g,J=v):Jh(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{r=h.stateNode,u?(o=r.style,typeof o.setProperty==&quot;function&quot;?o.setProperty(&quot;display&quot;,&quot;none&quot;,&quot;important&quot;):o.display=&quot;none&quot;):(s=h.stateNode,l=h.memoizedProps.style,a=l!=null&amp;&amp;l.hasOwnProperty(&quot;display&quot;)?l.display:null,s.style.display=Sv(&quot;display&quot;,a))}catch(E){Re(e,e.return,E)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?&quot;&quot;:h.memoizedProps}catch(E){Re(e,e.return,E)}}else if((h.tag!==22&amp;&amp;h.tag!==23||h.memoizedState===null||h===e)&amp;&amp;h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&amp;&amp;(d=null),h=h.return}d===h&amp;&amp;(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Xt(t,e),gn(e),i&amp;4&amp;&amp;Hh(e);break;case 21:break;default:Xt(t,e),gn(e)}}function gn(e){var t=e.flags;if(t&amp;2){try{e:{for(var n=e.return;n!==null;){if(qy(n)){var i=n;break e}n=n.return}throw Error(L(160))}switch(i.tag){case 5:var r=i.stateNode;i.flags&amp;32&amp;&amp;(Vo(r,&quot;&quot;),i.flags&amp;=-33);var o=Wh(e);nd(e,o,r);break;case 3:case 4:var a=i.stateNode.containerInfo,s=Wh(e);td(e,s,a);break;default:throw Error(L(161))}}catch(l){Re(e,e.return,l)}e.flags&amp;=-3}t&amp;4096&amp;&amp;(e.flags&amp;=-4097)}function F$(e,t,n){J=e,Yy(e)}function Yy(e,t,n){for(var i=(e.mode&amp;1)!==0;J!==null;){var r=J,o=r.child;if(r.tag===22&amp;&amp;i){var a=r.memoizedState!==null||ws;if(!a){var s=r.alternate,l=s!==null&amp;&amp;s.memoizedState!==null||at;s=ws;var u=at;if(ws=a,(at=l)&amp;&amp;!u)for(J=r;J!==null;)a=J,l=a.child,a.tag===22&amp;&amp;a.memoizedState!==null?Gh(r):l!==null?(l.return=a,J=l):Gh(r);for(;o!==null;)J=o,Yy(o),o=o.sibling;J=r,ws=s,at=u}Kh(e)}else r.subtreeFlags&amp;8772&amp;&amp;o!==null?(o.return=r,J=o):Kh(e)}}function Kh(e){for(;J!==null;){var t=J;if(t.flags&amp;8772){var n=t.alternate;try{if(t.flags&amp;8772)switch(t.tag){case 0:case 11:case 15:at||Yl(5,t);break;case 1:var i=t.stateNode;if(t.flags&amp;4&amp;&amp;!at)if(n===null)i.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:en(t.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&amp;&amp;zh(t,o,i);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}zh(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&amp;&amp;t.flags&amp;4){n=s;var l=t.memoizedProps;switch(t.type){case&quot;button&quot;:case&quot;input&quot;:case&quot;select&quot;:case&quot;textarea&quot;:l.autoFocus&amp;&amp;n.focus();break;case&quot;img&quot;:l.src&amp;&amp;(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&amp;&amp;Jo(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}at||t.flags&amp;512&amp;&amp;ed(t)}catch(g){Re(t,t.return,g)}}if(t===e){J=null;break}if(n=t.sibling,n!==null){n.return=t.return,J=n;break}J=t.return}}function Jh(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var n=t.sibling;if(n!==null){n.return=t.return,J=n;break}J=t.return}}function Gh(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Yl(4,t)}catch(l){Re(t,n,l)}break;case 1:var i=t.stateNode;if(typeof i.componentDidMount==&quot;function&quot;){var r=t.return;try{i.componentDidMount()}catch(l){Re(t,r,l)}}var o=t.return;try{ed(t)}catch(l){Re(t,o,l)}break;case 5:var a=t.return;try{ed(t)}catch(l){Re(t,a,l)}}}catch(l){Re(t,t.return,l)}if(t===e){J=null;break}var s=t.sibling;if(s!==null){s.return=t.return,J=s;break}J=t.return}}var B$=Math.ceil,gl=qn.ReactCurrentDispatcher,Uf=qn.ReactCurrentOwner,Wt=qn.ReactCurrentBatchConfig,he=0,et=null,Be=null,nt=0,Nt=0,$i=$r(0),Ge=0,oa=null,qr=0,eu=0,Df=0,Zo=null,yt=null,Rf=0,Gi=1/0,An=null,vl=!1,rd=null,hr=null,ks=!1,sr=null,yl=0,Mo=0,id=null,Zs=-1,Ms=0;function ft(){return he&amp;6?Ze():Zs!==-1?Zs:Zs=Ze()}function gr(e){return e.mode&amp;1?he&amp;2&amp;&amp;nt!==0?nt&amp;-nt:I$.transition!==null?(Ms===0&amp;&amp;(Ms=Dv()),Ms):(e=we,e!==0||(e=window.event,e=e===void 0?16:Vv(e.type)),e):1}function ln(e,t,n,i){if(50&lt;Mo)throw Mo=0,id=null,Error(L(185));Fa(e,n,i),(!(he&amp;2)||e!==et)&amp;&amp;(e===et&amp;&amp;(!(he&amp;2)&amp;&amp;(eu|=n),Ge===4&amp;&amp;nr(e,nt)),bt(e,i),n===1&amp;&amp;he===0&amp;&amp;!(t.mode&amp;1)&amp;&amp;(Gi=Ze()+500,ql&amp;&amp;Ir()))}function bt(e,t){var n=e.callbackNode;IS(e,t);var i=tl(e,e===et?nt:0);if(i===0)n!==null&amp;&amp;ih(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&amp;-i,e.callbackPriority!==t){if(n!=null&amp;&amp;ih(n),t===1)e.tag===0?$$(qh.bind(null,e)):uy(qh.bind(null,e)),k$(function(){!(he&amp;6)&amp;&amp;Ir()}),n=null;else{switch(Rv(i)){case 1:n=cf;break;case 4:n=Pv;break;case 16:n=el;break;case 536870912:n=Uv;break;default:n=el}n=s_(n,e_.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function e_(e,t){if(Zs=-1,Ms=0,he&amp;6)throw Error(L(327));var n=e.callbackNode;if(Ai()&amp;&amp;e.callbackNode!==n)return null;var i=tl(e,e===et?nt:0);if(i===0)return null;if(i&amp;30||i&amp;e.expiredLanes||t)t=_l(e,i);else{t=i;var r=he;he|=2;var o=n_();(et!==e||nt!==t)&amp;&amp;(An=null,Gi=Ze()+500,Fr(e,t));do try{H$();break}catch(s){t_(e,s)}while(!0);bf(),gl.current=o,he=r,Be!==null?t=0:(et=null,nt=0,t=Ge)}if(t!==0){if(t===2&amp;&amp;(r=zc(e),r!==0&amp;&amp;(i=r,t=od(e,r))),t===1)throw n=oa,Fr(e,0),nr(e,i),bt(e,Ze()),n;if(t===6)nr(e,i);else{if(r=e.current.alternate,!(i&amp;30)&amp;&amp;!V$(r)&amp;&amp;(t=_l(e,i),t===2&amp;&amp;(o=zc(e),o!==0&amp;&amp;(i=o,t=od(e,o))),t===1))throw n=oa,Fr(e,0),nr(e,i),bt(e,Ze()),n;switch(e.finishedWork=r,e.finishedLanes=i,t){case 0:case 1:throw Error(L(345));case 2:Tr(e,yt,An);break;case 3:if(nr(e,i),(i&amp;130023424)===i&amp;&amp;(t=Rf+500-Ze(),10&lt;t)){if(tl(e,0)!==0)break;if(r=e.suspendedLanes,(r&amp;i)!==i){ft(),e.pingedLanes|=e.suspendedLanes&amp;r;break}e.timeoutHandle=Lc(Tr.bind(null,e,yt,An),t);break}Tr(e,yt,An);break;case 4:if(nr(e,i),(i&amp;4194240)===i)break;for(t=e.eventTimes,r=-1;0&lt;i;){var a=31-sn(i);o=1&lt;&lt;a,a=t[a],a&gt;r&amp;&amp;(r=a),i&amp;=~o}if(i=r,i=Ze()-i,i=(120&gt;i?120:480&gt;i?480:1080&gt;i?1080:1920&gt;i?1920:3e3&gt;i?3e3:4320&gt;i?4320:1960*B$(i/1960))-i,10&lt;i){e.timeoutHandle=Lc(Tr.bind(null,e,yt,An),i);break}Tr(e,yt,An);break;case 5:Tr(e,yt,An);break;default:throw Error(L(329))}}}return bt(e,Ze()),e.callbackNode===n?e_.bind(null,e):null}function od(e,t){var n=Zo;return e.current.memoizedState.isDehydrated&amp;&amp;(Fr(e,t).flags|=256),e=_l(e,t),e!==2&amp;&amp;(t=yt,yt=n,t!==null&amp;&amp;ad(t)),e}function ad(e){yt===null?yt=e:yt.push.apply(yt,e)}function V$(e){for(var t=e;;){if(t.flags&amp;16384){var n=t.updateQueue;if(n!==null&amp;&amp;(n=n.stores,n!==null))for(var i=0;i&lt;n.length;i++){var r=n[i],o=r.getSnapshot;r=r.value;try{if(!dn(o(),r))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&amp;16384&amp;&amp;n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function nr(e,t){for(t&amp;=~Df,t&amp;=~eu,e.suspendedLanes|=t,e.pingedLanes&amp;=~t,e=e.expirationTimes;0&lt;t;){var n=31-sn(t),i=1&lt;&lt;n;e[n]=-1,t&amp;=~i}}function qh(e){if(he&amp;6)throw Error(L(327));Ai();var t=tl(e,0);if(!(t&amp;1))return bt(e,Ze()),null;var n=_l(e,t);if(e.tag!==0&amp;&amp;n===2){var i=zc(e);i!==0&amp;&amp;(t=i,n=od(e,i))}if(n===1)throw n=oa,Fr(e,0),nr(e,t),bt(e,Ze()),n;if(n===6)throw Error(L(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tr(e,yt,An),bt(e,Ze()),null}function Lf(e,t){var n=he;he|=1;try{return e(t)}finally{he=n,he===0&amp;&amp;(Gi=Ze()+500,ql&amp;&amp;Ir())}}function Qr(e){sr!==null&amp;&amp;sr.tag===0&amp;&amp;!(he&amp;6)&amp;&amp;Ai();var t=he;he|=1;var n=Wt.transition,i=we;try{if(Wt.transition=null,we=1,e)return e()}finally{we=i,Wt.transition=n,he=t,!(he&amp;6)&amp;&amp;Ir()}}function Zf(){Nt=$i.current,Ee($i)}function Fr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&amp;&amp;(e.timeoutHandle=-1,w$(n)),Be!==null)for(n=Be.return;n!==null;){var i=n;switch(wf(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&amp;&amp;al();break;case 3:Ki(),Ee(kt),Ee(lt),jf();break;case 5:Nf(i);break;case 4:Ki();break;case 13:Ee(Te);break;case 19:Ee(Te);break;case 10:Sf(i.type._context);break;case 22:case 23:Zf()}n=n.return}if(et=e,Be=e=vr(e.current,null),nt=Nt=t,Ge=0,oa=null,Df=eu=qr=0,yt=Zo=null,Dr!==null){for(t=0;t&lt;Dr.length;t++)if(n=Dr[t],i=n.interleaved,i!==null){n.interleaved=null;var r=i.next,o=n.pending;if(o!==null){var a=o.next;o.next=r,i.next=a}n.pending=i}Dr=null}return e}function t_(e,t){do{var n=Be;try{if(bf(),Ds.current=hl,pl){for(var i=Ce.memoizedState;i!==null;){var r=i.queue;r!==null&amp;&amp;(r.pending=null),i=i.next}pl=!1}if(Gr=0,Ye=Je=Ce=null,Ro=!1,na=0,Uf.current=null,n===null||n.return===null){Ge=1,oa=t,Be=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=nt,s.flags|=32768,l!==null&amp;&amp;typeof l==&quot;object&quot;&amp;&amp;typeof l.then==&quot;function&quot;){var u=l,d=s,h=d.tag;if(!(d.mode&amp;1)&amp;&amp;(h===0||h===11||h===15)){var g=d.alternate;g?(d.updateQueue=g.updateQueue,d.memoizedState=g.memoizedState,d.lanes=g.lanes):(d.updateQueue=null,d.memoizedState=null)}var v=Dh(a);if(v!==null){v.flags&amp;=-257,Rh(v,a,s,o,t),v.mode&amp;1&amp;&amp;Uh(o,u,t),t=v,l=u;var y=t.updateQueue;if(y===null){var E=new Set;E.add(l),t.updateQueue=E}else y.add(l);break e}else{if(!(t&amp;1)){Uh(o,u,t),Mf();break e}l=Error(L(426))}}else if(Oe&amp;&amp;s.mode&amp;1){var N=Dh(a);if(N!==null){!(N.flags&amp;65536)&amp;&amp;(N.flags|=256),Rh(N,a,s,o,t),kf(Ji(l,s));break e}}o=l=Ji(l,s),Ge!==4&amp;&amp;(Ge=2),Zo===null?Zo=[o]:Zo.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&amp;=-t,o.lanes|=t;var p=Ry(o,l,t);Oh(o,p);break e;case 1:s=l;var f=o.type,m=o.stateNode;if(!(o.flags&amp;128)&amp;&amp;(typeof f.getDerivedStateFromError==&quot;function&quot;||m!==null&amp;&amp;typeof m.componentDidCatch==&quot;function&quot;&amp;&amp;(hr===null||!hr.has(m)))){o.flags|=65536,t&amp;=-t,o.lanes|=t;var k=Ly(o,s,t);Oh(o,k);break e}}o=o.return}while(o!==null)}i_(n)}catch($){t=$,Be===n&amp;&amp;n!==null&amp;&amp;(Be=n=n.return);continue}break}while(!0)}function n_(){var e=gl.current;return gl.current=hl,e===null?hl:e}function Mf(){(Ge===0||Ge===3||Ge===2)&amp;&amp;(Ge=4),et===null||!(qr&amp;268435455)&amp;&amp;!(eu&amp;268435455)||nr(et,nt)}function _l(e,t){var n=he;he|=2;var i=n_();(et!==e||nt!==t)&amp;&amp;(An=null,Fr(e,t));do try{W$();break}catch(r){t_(e,r)}while(!0);if(bf(),he=n,gl.current=i,Be!==null)throw Error(L(261));return et=null,nt=0,Ge}function W$(){for(;Be!==null;)r_(Be)}function H$(){for(;Be!==null&amp;&amp;!vS();)r_(Be)}function r_(e){var t=a_(e.alternate,e,Nt);e.memoizedProps=e.pendingProps,t===null?i_(e):Be=t,Uf.current=null}function i_(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&amp;32768){if(n=L$(n,t),n!==null){n.flags&amp;=32767,Be=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ge=6,Be=null;return}}else if(n=R$(n,t,Nt),n!==null){Be=n;return}if(t=t.sibling,t!==null){Be=t;return}Be=t=e}while(t!==null);Ge===0&amp;&amp;(Ge=5)}function Tr(e,t,n){var i=we,r=Wt.transition;try{Wt.transition=null,we=1,K$(e,t,n,i)}finally{Wt.transition=r,we=i}return null}function K$(e,t,n,i){do Ai();while(sr!==null);if(he&amp;6)throw Error(L(327));n=e.finishedWork;var r=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(L(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(ES(e,o),e===et&amp;&amp;(Be=et=null,nt=0),!(n.subtreeFlags&amp;2064)&amp;&amp;!(n.flags&amp;2064)||ks||(ks=!0,s_(el,function(){return Ai(),null})),o=(n.flags&amp;15990)!==0,n.subtreeFlags&amp;15990||o){o=Wt.transition,Wt.transition=null;var a=we;we=1;var s=he;he|=4,Uf.current=null,M$(e,n),Xy(n,e),m$(Dc),nl=!!Uc,Dc=Uc=null,e.current=n,F$(n),yS(),he=s,we=a,Wt.transition=o}else e.current=n;if(ks&amp;&amp;(ks=!1,sr=e,yl=r),o=e.pendingLanes,o===0&amp;&amp;(hr=null),kS(n.stateNode),bt(e,Ze()),t!==null)for(i=e.onRecoverableError,n=0;n&lt;t.length;n++)r=t[n],i(r.value,{componentStack:r.stack,digest:r.digest});if(vl)throw vl=!1,e=rd,rd=null,e;return yl&amp;1&amp;&amp;e.tag!==0&amp;&amp;Ai(),o=e.pendingLanes,o&amp;1?e===id?Mo++:(Mo=0,id=e):Mo=0,Ir(),null}function Ai(){if(sr!==null){var e=Rv(yl),t=Wt.transition,n=we;try{if(Wt.transition=null,we=16&gt;e?16:e,sr===null)var i=!1;else{if(e=sr,sr=null,yl=0,he&amp;6)throw Error(L(331));var r=he;for(he|=4,J=e.current;J!==null;){var o=J,a=o.child;if(J.flags&amp;16){var s=o.deletions;if(s!==null){for(var l=0;l&lt;s.length;l++){var u=s[l];for(J=u;J!==null;){var d=J;switch(d.tag){case 0:case 11:case 15:Lo(8,d,o)}var h=d.child;if(h!==null)h.return=d,J=h;else for(;J!==null;){d=J;var g=d.sibling,v=d.return;if(Gy(d),d===u){J=null;break}if(g!==null){g.return=v,J=g;break}J=v}}}var y=o.alternate;if(y!==null){var E=y.child;if(E!==null){y.child=null;do{var N=E.sibling;E.sibling=null,E=N}while(E!==null)}}J=o}}if(o.subtreeFlags&amp;2064&amp;&amp;a!==null)a.return=o,J=a;else e:for(;J!==null;){if(o=J,o.flags&amp;2048)switch(o.tag){case 0:case 11:case 15:Lo(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,J=p;break e}J=o.return}}var f=e.current;for(J=f;J!==null;){a=J;var m=a.child;if(a.subtreeFlags&amp;2064&amp;&amp;m!==null)m.return=a,J=m;else e:for(a=f;J!==null;){if(s=J,s.flags&amp;2048)try{switch(s.tag){case 0:case 11:case 15:Yl(9,s)}}catch($){Re(s,s.return,$)}if(s===a){J=null;break e}var k=s.sibling;if(k!==null){k.return=s.return,J=k;break e}J=s.return}}if(he=r,Ir(),$n&amp;&amp;typeof $n.onPostCommitFiberRoot==&quot;function&quot;)try{$n.onPostCommitFiberRoot(Wl,e)}catch{}i=!0}return i}finally{we=n,Wt.transition=t}}return!1}function Qh(e,t,n){t=Ji(n,t),t=Ry(e,t,1),e=pr(e,t,1),t=ft(),e!==null&amp;&amp;(Fa(e,1,t),bt(e,t))}function Re(e,t,n){if(e.tag===3)Qh(e,e,n);else for(;t!==null;){if(t.tag===3){Qh(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError==&quot;function&quot;||typeof i.componentDidCatch==&quot;function&quot;&amp;&amp;(hr===null||!hr.has(i))){e=Ji(n,e),e=Ly(t,e,1),t=pr(t,e,1),e=ft(),t!==null&amp;&amp;(Fa(t,1,e),bt(t,e));break}}t=t.return}}function J$(e,t,n){var i=e.pingCache;i!==null&amp;&amp;i.delete(t),t=ft(),e.pingedLanes|=e.suspendedLanes&amp;n,et===e&amp;&amp;(nt&amp;n)===n&amp;&amp;(Ge===4||Ge===3&amp;&amp;(nt&amp;130023424)===nt&amp;&amp;500&gt;Ze()-Rf?Fr(e,0):Df|=n),bt(e,t)}function o_(e,t){t===0&amp;&amp;(e.mode&amp;1?(t=ds,ds&lt;&lt;=1,!(ds&amp;130023424)&amp;&amp;(ds=4194304)):t=1);var n=ft();e=Hn(e,t),e!==null&amp;&amp;(Fa(e,t,n),bt(e,n))}function G$(e){var t=e.memoizedState,n=0;t!==null&amp;&amp;(n=t.retryLane),o_(e,n)}function q$(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&amp;&amp;(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(L(314))}i!==null&amp;&amp;i.delete(t),o_(e,n)}var a_;a_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||kt.current)wt=!0;else{if(!(e.lanes&amp;n)&amp;&amp;!(t.flags&amp;128))return wt=!1,D$(e,t,n);wt=!!(e.flags&amp;131072)}else wt=!1,Oe&amp;&amp;t.flags&amp;1048576&amp;&amp;cy(t,ul,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Ls(e,t),e=t.pendingProps;var r=Vi(t,lt.current);Ci(t,n),r=zf(null,t,i,e,r,n);var o=Tf();return t.flags|=1,typeof r==&quot;object&quot;&amp;&amp;r!==null&amp;&amp;typeof r.render==&quot;function&quot;&amp;&amp;r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xt(i)?(o=!0,sl(t)):o=!1,t.memoizedState=r.state!==null&amp;&amp;r.state!==void 0?r.state:null,If(t),r.updater=Xl,t.stateNode=r,r._reactInternals=t,Hc(t,i,e,n),t=Gc(null,t,i,!0,o,n)):(t.tag=0,Oe&amp;&amp;o&amp;&amp;_f(t),ct(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Ls(e,t),e=t.pendingProps,r=i._init,i=r(i._payload),t.type=i,r=t.tag=X$(i),e=en(i,e),r){case 0:t=Jc(null,t,i,e,n);break e;case 1:t=Mh(null,t,i,e,n);break e;case 11:t=Lh(null,t,i,e,n);break e;case 14:t=Zh(null,t,i,en(i.type,e),n);break e}throw Error(L(306,i,&quot;&quot;))}return t;case 0:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:en(i,r),Jc(e,t,i,r,n);case 1:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:en(i,r),Mh(e,t,i,r,n);case 3:e:{if(By(t),e===null)throw Error(L(387));i=t.pendingProps,o=t.memoizedState,r=o.element,gy(e,t),fl(t,i,null,n);var a=t.memoizedState;if(i=a.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&amp;256){r=Ji(Error(L(423)),t),t=Fh(e,t,i,n,r);break e}else if(i!==r){r=Ji(Error(L(424)),t),t=Fh(e,t,i,n,r);break e}else for(Ot=mr(t.stateNode.containerInfo.firstChild),Tt=t,Oe=!0,on=null,n=py(t,null,i,n),t.child=n;n;)n.flags=n.flags&amp;-3|4096,n=n.sibling;else{if(Wi(),i===r){t=Kn(e,t,n);break e}ct(e,t,i,n)}t=t.child}return t;case 5:return vy(t),e===null&amp;&amp;Bc(t),i=t.type,r=t.pendingProps,o=e!==null?e.memoizedProps:null,a=r.children,Rc(i,r)?a=null:o!==null&amp;&amp;Rc(i,o)&amp;&amp;(t.flags|=32),Fy(e,t),ct(e,t,a,n),t.child;case 6:return e===null&amp;&amp;Bc(t),null;case 13:return Vy(e,t,n);case 4:return Ef(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Hi(t,null,i,n):ct(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:en(i,r),Lh(e,t,i,r,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,o=t.memoizedProps,a=r.value,ke(cl,i._currentValue),i._currentValue=a,o!==null)if(dn(o.value,a)){if(o.children===r.children&amp;&amp;!kt.current){t=Kn(e,t,n);break e}}else for(o=t.child,o!==null&amp;&amp;(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=Bn(-1,n&amp;-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&amp;&amp;(l.lanes|=n),Vc(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(L(341));a.lanes|=n,s=a.alternate,s!==null&amp;&amp;(s.lanes|=n),Vc(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}ct(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,Ci(t,n),r=Jt(r),i=i(r),t.flags|=1,ct(e,t,i,n),t.child;case 14:return i=t.type,r=en(i,t.pendingProps),r=en(i.type,r),Zh(e,t,i,r,n);case 15:return Zy(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:en(i,r),Ls(e,t),t.tag=1,xt(i)?(e=!0,sl(t)):e=!1,Ci(t,n),Dy(t,i,r),Hc(t,i,r,n),Gc(null,t,i,!0,e,n);case 19:return Wy(e,t,n);case 22:return My(e,t,n)}throw Error(L(156,t.tag))};function s_(e,t){return Av(e,t)}function Q$(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(e,t,n,i){return new Q$(e,t,n,i)}function Ff(e){return e=e.prototype,!(!e||!e.isReactComponent)}function X$(e){if(typeof e==&quot;function&quot;)return Ff(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sf)return 11;if(e===lf)return 14}return 2}function vr(e,t){var n=e.alternate;return n===null?(n=Bt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&amp;14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fs(e,t,n,i,r,o){var a=2;if(i=e,typeof e==&quot;function&quot;)Ff(e)&amp;&amp;(a=1);else if(typeof e==&quot;string&quot;)a=5;else e:switch(e){case hi:return Br(n.children,r,o,t);case af:a=8,r|=8;break;case gc:return e=Bt(12,n,t,r|2),e.elementType=gc,e.lanes=o,e;case vc:return e=Bt(13,n,t,r),e.elementType=vc,e.lanes=o,e;case yc:return e=Bt(19,n,t,r),e.elementType=yc,e.lanes=o,e;case vv:return tu(n,r,o,t);default:if(typeof e==&quot;object&quot;&amp;&amp;e!==null)switch(e.$$typeof){case hv:a=10;break e;case gv:a=9;break e;case sf:a=11;break e;case lf:a=14;break e;case Yn:a=16,i=null;break e}throw Error(L(130,e==null?e:typeof e,&quot;&quot;))}return t=Bt(a,n,t,r),t.elementType=e,t.type=i,t.lanes=o,t}function Br(e,t,n,i){return e=Bt(7,e,i,t),e.lanes=n,e}function tu(e,t,n,i){return e=Bt(22,e,i,t),e.elementType=vv,e.lanes=n,e.stateNode={isHidden:!1},e}function Yu(e,t,n){return e=Bt(6,e,null,t),e.lanes=n,e}function ec(e,t,n){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Y$(e,t,n,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Au(0),this.expirationTimes=Au(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Au(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Bf(e,t,n,i,r,o,a,s,l){return e=new Y$(e,t,n,s,l),t===1?(t=1,o===!0&amp;&amp;(t|=8)):t=0,o=Bt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},If(o),e}function e1(e,t,n){var i=3&lt;arguments.length&amp;&amp;arguments[3]!==void 0?arguments[3]:null;return{$$typeof:pi,key:i==null?null:&quot;&quot;+i,children:e,containerInfo:t,implementation:n}}function l_(e){if(!e)return kr;e=e._reactInternals;e:{if(oi(e)!==e||e.tag!==1)throw Error(L(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(L(171))}if(e.tag===1){var n=e.type;if(xt(n))return ly(e,n,t)}return t}function u_(e,t,n,i,r,o,a,s,l){return e=Bf(n,i,!0,e,r,o,a,s,l),e.context=l_(null),n=e.current,i=ft(),r=gr(n),o=Bn(i,r),o.callback=t??null,pr(n,o,r),e.current.lanes=r,Fa(e,r,i),bt(e,i),e}function nu(e,t,n,i){var r=t.current,o=ft(),a=gr(r);return n=l_(n),t.context===null?t.context=n:t.pendingContext=n,t=Bn(o,a),t.payload={element:e},i=i===void 0?null:i,i!==null&amp;&amp;(t.callback=i),e=pr(r,t,a),e!==null&amp;&amp;(ln(e,r,a,o),Us(e,r,a)),a}function wl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Xh(e,t){if(e=e.memoizedState,e!==null&amp;&amp;e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&amp;&amp;n&lt;t?n:t}}function Vf(e,t){Xh(e,t),(e=e.alternate)&amp;&amp;Xh(e,t)}function t1(){return null}var c_=typeof reportError==&quot;function&quot;?reportError:function(e){console.error(e)};function Wf(e){this._internalRoot=e}ru.prototype.render=Wf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(L(409));nu(e,t,null,null)};ru.prototype.unmount=Wf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qr(function(){nu(null,e,null,null)}),t[Wn]=null}};function ru(e){this._internalRoot=e}ru.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mv();e={blockedOn:null,target:e,priority:t};for(var n=0;n&lt;tr.length&amp;&amp;t!==0&amp;&amp;t&lt;tr[n].priority;n++);tr.splice(n,0,e),n===0&amp;&amp;Bv(e)}};function Hf(e){return!(!e||e.nodeType!==1&amp;&amp;e.nodeType!==9&amp;&amp;e.nodeType!==11)}function iu(e){return!(!e||e.nodeType!==1&amp;&amp;e.nodeType!==9&amp;&amp;e.nodeType!==11&amp;&amp;(e.nodeType!==8||e.nodeValue!==&quot; react-mount-point-unstable &quot;))}function Yh(){}function n1(e,t,n,i,r){if(r){if(typeof i==&quot;function&quot;){var o=i;i=function(){var u=wl(a);o.call(u)}}var a=u_(t,i,e,0,null,!1,!1,&quot;&quot;,Yh);return e._reactRootContainer=a,e[Wn]=a.current,Qo(e.nodeType===8?e.parentNode:e),Qr(),a}for(;r=e.lastChild;)e.removeChild(r);if(typeof i==&quot;function&quot;){var s=i;i=function(){var u=wl(l);s.call(u)}}var l=Bf(e,0,!1,null,null,!1,!1,&quot;&quot;,Yh);return e._reactRootContainer=l,e[Wn]=l.current,Qo(e.nodeType===8?e.parentNode:e),Qr(function(){nu(t,l,n,i)}),l}function ou(e,t,n,i,r){var o=n._reactRootContainer;if(o){var a=o;if(typeof r==&quot;function&quot;){var s=r;r=function(){var l=wl(a);s.call(l)}}nu(t,a,e,r)}else a=n1(n,t,e,r,i);return wl(a)}Lv=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Io(t.pendingLanes);n!==0&amp;&amp;(df(t,n|1),bt(t,Ze()),!(he&amp;6)&amp;&amp;(Gi=Ze()+500,Ir()))}break;case 13:Qr(function(){var i=Hn(e,1);if(i!==null){var r=ft();ln(i,e,1,r)}}),Vf(e,1)}};ff=function(e){if(e.tag===13){var t=Hn(e,134217728);if(t!==null){var n=ft();ln(t,e,134217728,n)}Vf(e,134217728)}};Zv=function(e){if(e.tag===13){var t=gr(e),n=Hn(e,t);if(n!==null){var i=ft();ln(n,e,t,i)}Vf(e,t)}};Mv=function(){return we};Fv=function(e,t){var n=we;try{return we=e,t()}finally{we=n}};Nc=function(e,t,n){switch(t){case&quot;input&quot;:if(kc(e,n),t=n.name,n.type===&quot;radio&quot;&amp;&amp;t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(&quot;input[name=&quot;+JSON.stringify(&quot;&quot;+t)+&#39;][type=&quot;radio&quot;]&#39;),t=0;t&lt;n.length;t++){var i=n[t];if(i!==e&amp;&amp;i.form===e.form){var r=Gl(i);if(!r)throw Error(L(90));_v(i),kc(i,r)}}}break;case&quot;textarea&quot;:kv(e,n);break;case&quot;select&quot;:t=n.value,t!=null&amp;&amp;ji(e,!!n.multiple,t,!1)}};Nv=Lf;jv=Qr;var r1={usingClientEntryPoint:!1,Events:[Va,_i,Gl,Iv,Ev,Lf]},ko={findFiberByHostInstance:Ur,bundleType:0,version:&quot;18.3.1&quot;,rendererPackageName:&quot;react-dom&quot;},i1={bundleType:ko.bundleType,version:ko.version,rendererPackageName:ko.rendererPackageName,rendererConfig:ko.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:qn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Tv(e),e===null?null:e.stateNode},findFiberByHostInstance:ko.findFiberByHostInstance||t1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:&quot;18.3.1-next-f1338f8080-20240426&quot;};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&lt;&quot;u&quot;){var xs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xs.isDisabled&amp;&amp;xs.supportsFiber)try{Wl=xs.inject(i1),$n=xs}catch{}}At.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r1;At.createPortal=function(e,t){var n=2&lt;arguments.length&amp;&amp;arguments[2]!==void 0?arguments[2]:null;if(!Hf(t))throw Error(L(200));return e1(e,t,null,n)};At.createRoot=function(e,t){if(!Hf(e))throw Error(L(299));var n=!1,i=&quot;&quot;,r=c_;return t!=null&amp;&amp;(t.unstable_strictMode===!0&amp;&amp;(n=!0),t.identifierPrefix!==void 0&amp;&amp;(i=t.identifierPrefix),t.onRecoverableError!==void 0&amp;&amp;(r=t.onRecoverableError)),t=Bf(e,1,!1,null,null,n,!1,i,r),e[Wn]=t.current,Qo(e.nodeType===8?e.parentNode:e),new Wf(t)};At.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==&quot;function&quot;?Error(L(188)):(e=Object.keys(e).join(&quot;,&quot;),Error(L(268,e)));return e=Tv(t),e=e===null?null:e.stateNode,e};At.flushSync=function(e){return Qr(e)};At.hydrate=function(e,t,n){if(!iu(t))throw Error(L(200));return ou(null,e,t,!0,n)};At.hydrateRoot=function(e,t,n){if(!Hf(e))throw Error(L(405));var i=n!=null&amp;&amp;n.hydratedSources||null,r=!1,o=&quot;&quot;,a=c_;if(n!=null&amp;&amp;(n.unstable_strictMode===!0&amp;&amp;(r=!0),n.identifierPrefix!==void 0&amp;&amp;(o=n.identifierPrefix),n.onRecoverableError!==void 0&amp;&amp;(a=n.onRecoverableError)),t=u_(t,null,e,1,n??null,r,!1,o,a),e[Wn]=t.current,Qo(e),i)for(e=0;e&lt;i.length;e++)n=i[e],r=n._getVersion,r=r(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new ru(t)};At.render=function(e,t,n){if(!iu(t))throw Error(L(200));return ou(null,e,t,!1,n)};At.unmountComponentAtNode=function(e){if(!iu(e))throw Error(L(40));return e._reactRootContainer?(Qr(function(){ou(null,null,e,!1,function(){e._reactRootContainer=null,e[Wn]=null})}),!0):!1};At.unstable_batchedUpdates=Lf;At.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!iu(n))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return ou(e,t,n,!1,i)};At.version=&quot;18.3.1-next-f1338f8080-20240426&quot;;function d_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&gt;&quot;u&quot;||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=&quot;function&quot;))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d_)}catch(e){console.error(e)}}d_(),dv.exports=At;var o1=dv.exports,eg=o1;pc.createRoot=eg.createRoot,pc.hydrateRoot=eg.hydrateRoot;var sd=&quot;internal_error&quot;,a1=&quot;Internal error. Read the server logs for more details.&quot;,qi=class extends Error{constructor(n,i,r,o){super(r,{cause:o==null?void 0:o.cause});hn(this,&quot;__type&quot;,&quot;ActorError&quot;);hn(this,&quot;public&quot;);hn(this,&quot;metadata&quot;);hn(this,&quot;statusCode&quot;,500);hn(this,&quot;group&quot;);hn(this,&quot;code&quot;);this.group=n,this.code=i,this.public=(o==null?void 0:o.public)??!1,this.metadata=o==null?void 0:o.metadata,o!=null&amp;&amp;o.public&amp;&amp;(this.statusCode=400)}static isActorError(n){return typeof n==&quot;object&quot;&amp;&amp;n.__type===&quot;ActorError&quot;}toString(){return this.message}},s1=class extends qi{constructor(e){super(&quot;actor&quot;,sd,e)}},l1=class extends s1{constructor(e){super(`Unreachable case: ${e}`)}},u1=class extends qi{constructor(e){super(&quot;message&quot;,&quot;malformed&quot;,`Malformed message: ${e}`,{public:!0,cause:e})}},c1=class extends qi{constructor(e){super(&quot;request&quot;,&quot;invalid&quot;,`Invalid request: ${e}`,{public:!0,cause:e})}},tg=class extends qi{constructor(e){super(&quot;actor&quot;,&quot;not_found&quot;,e?`Actor not found: ${e} (https://www.rivet.dev/docs/actors/clients/#actor-client)`:&quot;Actor not found (https://www.rivet.dev/docs/actors/clients/#actor-client)&quot;,{public:!0})}},d1={};function Mn(e){throw new Error(`Unreachable case: ${e}`)}function f_(e,t,n,i=!1){let r,o,a,s,l,u;return qi.isActorError(e)&amp;&amp;e.public?(r=&quot;statusCode&quot;in e&amp;&amp;e.statusCode?e.statusCode:400,o=!0,a=e.group,s=e.code,l=No(e),u=e.metadata,t.info({msg:&quot;public error&quot;,group:a,code:s,message:l,issues:&quot;https://github.com/rivet-dev/rivetkit/issues&quot;,support:&quot;https://rivet.dev/discord&quot;,...n})):i?qi.isActorError(e)?(r=500,o=!1,a=e.group,s=e.code,l=No(e),u=e.metadata,t.info({msg:&quot;internal error&quot;,group:a,code:s,message:l,issues:&quot;https://github.com/rivet-dev/rivetkit/issues&quot;,support:&quot;https://rivet.dev/discord&quot;,...n})):(r=500,o=!1,a=&quot;internal&quot;,s=sd,l=No(e),t.info({msg:&quot;internal error&quot;,group:a,code:s,message:l,issues:&quot;https://github.com/rivet-dev/rivetkit/issues&quot;,support:&quot;https://rivet.dev/discord&quot;,...n})):(r=500,o=!1,a=&quot;internal&quot;,s=sd,l=a1,u={},t.warn({msg:&quot;internal error&quot;,error:No(e),stack:e==null?void 0:e.stack,issues:&quot;https://github.com/rivet-dev/rivetkit/issues&quot;,support:&quot;https://rivet.dev/discord&quot;,...n})),{__type:&quot;ActorError&quot;,statusCode:r,public:o,group:a,code:s,message:l,metadata:u}}function Pr(e){if(e instanceof Error)return typeof process&lt;&quot;u&quot;&amp;&amp;Me(&quot;_RIVETKIT_ERROR_STACK&quot;)===&quot;1&quot;?`${e.name}: ${e.message}${e.stack?`
${e.stack}`:&quot;&quot;}`:`${e.name}: ${e.message}`;if(typeof e==&quot;string&quot;)return e;if(typeof e==&quot;object&quot;&amp;&amp;e!==null)try{return`${JSON.stringify(e)}`}catch{return&quot;[cannot stringify error]&quot;}else return`Unknown error: ${No(e)}`}function No(e){return e&amp;&amp;typeof e==&quot;object&quot;&amp;&amp;&quot;message&quot;in e&amp;&amp;typeof e.message==&quot;string&quot;?e.message:String(e)}function f1(){return async()=&gt;{}}var m1={version:&quot;2.0.20&quot;},p1=m1.version,tc;function m_(){if(tc!==void 0)return tc;let e=`RivetKit/${p1}`;const t=typeof navigator&lt;&quot;u&quot;?navigator:void 0;return t!=null&amp;&amp;t.userAgent&amp;&amp;(e+=` ${t.userAgent}`),tc=e,e}function Me(e){if(typeof Deno&lt;&quot;u&quot;)return Deno.env.get(e);if(typeof process&lt;&quot;u&quot;)return d1[e]}function nc(){let e,t;return{promise:new Promise((i,r)=&gt;{e=i,t=r}),resolve:e,reject:t}}function p_(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function au(e,t,n){const i=new URL(e),r=t.split(&quot;?&quot;),o=r[0],a=r[1]||&quot;&quot;,s=i.pathname.replace(/\/$/,&quot;&quot;),l=o.startsWith(&quot;/&quot;)?o:`/${o}`,u=(s+l).replace(/\/\//g,&quot;/&quot;),d=[];if(a&amp;&amp;d.push(a),n)for(const[g,v]of Object.entries(n))v!==void 0&amp;&amp;d.push(`${encodeURIComponent(g)}=${encodeURIComponent(v)}`);const h=d.length&gt;0?`?${d.join(&quot;&amp;&quot;)}`:&quot;&quot;;return`${i.protocol}//${i.host}${u}${h}`}var su={exports:{}};function h1(e){try{return JSON.stringify(e)}catch{return&#39;&quot;[Circular]&quot;&#39;}}var g1=v1;function v1(e,t,n){var i=n&amp;&amp;n.stringify||h1,r=1;if(typeof e==&quot;object&quot;&amp;&amp;e!==null){var o=t.length+r;if(o===1)return e;var a=new Array(o);a[0]=i(e);for(var s=1;s&lt;o;s++)a[s]=i(t[s]);return a.join(&quot; &quot;)}if(typeof e!=&quot;string&quot;)return e;var l=t.length;if(l===0)return e;for(var u=&quot;&quot;,d=1-r,h=-1,g=e&amp;&amp;e.length||0,v=0;v&lt;g;){if(e.charCodeAt(v)===37&amp;&amp;v+1&lt;g){switch(h=h&gt;-1?h:0,e.charCodeAt(v+1)){case 100:case 102:if(d&gt;=l||t[d]==null)break;h&lt;v&amp;&amp;(u+=e.slice(h,v)),u+=Number(t[d]),h=v+2,v++;break;case 105:if(d&gt;=l||t[d]==null)break;h&lt;v&amp;&amp;(u+=e.slice(h,v)),u+=Math.floor(Number(t[d])),h=v+2,v++;break;case 79:case 111:case 106:if(d&gt;=l||t[d]===void 0)break;h&lt;v&amp;&amp;(u+=e.slice(h,v));var y=typeof t[d];if(y===&quot;string&quot;){u+=&quot;&#39;&quot;+t[d]+&quot;&#39;&quot;,h=v+2,v++;break}if(y===&quot;function&quot;){u+=t[d].name||&quot;&lt;anonymous&gt;&quot;,h=v+2,v++;break}u+=i(t[d]),h=v+2,v++;break;case 115:if(d&gt;=l)break;h&lt;v&amp;&amp;(u+=e.slice(h,v)),u+=String(t[d]),h=v+2,v++;break;case 37:h&lt;v&amp;&amp;(u+=e.slice(h,v)),u+=&quot;%&quot;,h=v+2,v++,d--;break}++d}++v}return h===-1?e:(h&lt;g&amp;&amp;(u+=e.slice(h)),u)}const ng=g1;su.exports=Jn;const aa=T1().console||{},y1={mapHttpRequest:bs,mapHttpResponse:bs,wrapRequestSerializer:rc,wrapResponseSerializer:rc,wrapErrorSerializer:rc,req:bs,res:bs,err:ig,errWithCause:ig};function lr(e,t){return e===&quot;silent&quot;?1/0:t.levels.values[e]}const Kf=Symbol(&quot;pino.logFuncs&quot;),ld=Symbol(&quot;pino.hierarchy&quot;),_1={error:&quot;log&quot;,fatal:&quot;error&quot;,warn:&quot;error&quot;,info:&quot;log&quot;,debug:&quot;log&quot;,trace:&quot;log&quot;};function rg(e,t){const n={logger:t,parent:e[ld]};t[ld]=n}function w1(e,t,n){const i={};t.forEach(r=&gt;{i[r]=n[r]?n[r]:aa[r]||aa[_1[r]||&quot;log&quot;]||Pi}),e[Kf]=i}function k1(e,t){return Array.isArray(e)?e.filter(function(i){return i!==&quot;!stdSerializers.err&quot;}):e===!0?Object.keys(t):!1}function Jn(e){e=e||{},e.browser=e.browser||{};const t=e.browser.transmit;if(t&amp;&amp;typeof t.send!=&quot;function&quot;)throw Error(&quot;pino: transmit option must have a send function&quot;);const n=e.browser.write||aa;e.browser.write&amp;&amp;(e.browser.asObject=!0);const i=e.serializers||{},r=k1(e.browser.serialize,i);let o=e.browser.serialize;Array.isArray(e.browser.serialize)&amp;&amp;e.browser.serialize.indexOf(&quot;!stdSerializers.err&quot;)&gt;-1&amp;&amp;(o=!1);const a=Object.keys(e.customLevels||{}),s=[&quot;error&quot;,&quot;fatal&quot;,&quot;warn&quot;,&quot;info&quot;,&quot;debug&quot;,&quot;trace&quot;].concat(a);typeof n==&quot;function&quot;&amp;&amp;s.forEach(function(E){n[E]=n}),(e.enabled===!1||e.browser.disabled)&amp;&amp;(e.level=&quot;silent&quot;);const l=e.level||&quot;info&quot;,u=Object.create(n);u.log||(u.log=Pi),w1(u,s,n),rg({},u),Object.defineProperty(u,&quot;levelVal&quot;,{get:h}),Object.defineProperty(u,&quot;level&quot;,{get:g,set:v});const d={transmit:t,serialize:r,asObject:e.browser.asObject,asObjectBindingsOnly:e.browser.asObjectBindingsOnly,formatters:e.browser.formatters,levels:s,timestamp:j1(e),messageKey:e.messageKey||&quot;msg&quot;,onChild:e.onChild||Pi};u.levels=x1(e),u.level=l,u.isLevelEnabled=function(E){return this.levels.values[E]?this.levels.values[E]&gt;=this.levels.values[this.level]:!1},u.setMaxListeners=u.getMaxListeners=u.emit=u.addListener=u.on=u.prependListener=u.once=u.prependOnceListener=u.removeListener=u.removeAllListeners=u.listeners=u.listenerCount=u.eventNames=u.write=u.flush=Pi,u.serializers=i,u._serialize=r,u._stdErrSerialize=o,u.child=function(...E){return y.call(this,d,...E)},t&amp;&amp;(u._logEvent=ud());function h(){return lr(this.level,this)}function g(){return this._level}function v(E){if(E!==&quot;silent&quot;&amp;&amp;!this.levels.values[E])throw Error(&quot;unknown level &quot;+E);this._level=E,Or(this,d,u,&quot;error&quot;),Or(this,d,u,&quot;fatal&quot;),Or(this,d,u,&quot;warn&quot;),Or(this,d,u,&quot;info&quot;),Or(this,d,u,&quot;debug&quot;),Or(this,d,u,&quot;trace&quot;),a.forEach(N=&gt;{Or(this,d,u,N)})}function y(E,N,p){if(!N)throw new Error(&quot;missing bindings for child Pino&quot;);p=p||{},r&amp;&amp;N.serializers&amp;&amp;(p.serializers=N.serializers);const f=p.serializers;if(r&amp;&amp;f){var m=Object.assign({},i,f),k=e.browser.serialize===!0?Object.keys(m):r;delete N.serializers,Jf([N],k,m,this._stdErrSerialize)}function $(T){this._childLevel=(T._childLevel|0)+1,this.bindings=N,m&amp;&amp;(this.serializers=m,this._serialize=k),t&amp;&amp;(this._logEvent=ud([].concat(T._logEvent.bindings,N)))}$.prototype=this;const x=new $(this);return rg(this,x),x.child=function(...T){return y.call(this,E,...T)},x.level=p.level||this.level,E.onChild(x),x}return u}function x1(e){const t=e.customLevels||{},n=Object.assign({},Jn.levels.values,t),i=Object.assign({},Jn.levels.labels,b1(t));return{values:n,labels:i}}function b1(e){const t={};return Object.keys(e).forEach(function(n){t[e[n]]=n}),t}Jn.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:&quot;trace&quot;,20:&quot;debug&quot;,30:&quot;info&quot;,40:&quot;warn&quot;,50:&quot;error&quot;,60:&quot;fatal&quot;}};Jn.stdSerializers=y1;Jn.stdTimeFunctions=Object.assign({},{nullTime:h_,epochTime:g_,unixTime:O1,isoTime:z1});function S1(e){const t=[];e.bindings&amp;&amp;t.push(e.bindings);let n=e[ld];for(;n.parent;)n=n.parent,n.logger.bindings&amp;&amp;t.push(n.logger.bindings);return t.reverse()}function Or(e,t,n,i){if(Object.defineProperty(e,i,{value:lr(e.level,n)&gt;lr(i,n)?Pi:n[Kf][i],writable:!0,enumerable:!0,configurable:!0}),e[i]===Pi){if(!t.transmit)return;const o=t.transmit.level||e.level,a=lr(o,n);if(lr(i,n)&lt;a)return}e[i]=I1(e,t,n,i);const r=S1(e);r.length!==0&amp;&amp;(e[i]=$1(r,e[i]))}function $1(e,t){return function(){return t.apply(this,[...e,...arguments])}}function I1(e,t,n,i){return function(r){return function(){const a=t.timestamp(),s=new Array(arguments.length),l=Object.getPrototypeOf&amp;&amp;Object.getPrototypeOf(this)===aa?aa:this;for(var u=0;u&lt;s.length;u++)s[u]=arguments[u];var d=!1;if(t.serialize&amp;&amp;(Jf(s,this._serialize,this.serializers,this._stdErrSerialize),d=!0),t.asObject||t.formatters?r.call(l,...E1(this,i,s,a,t)):r.apply(l,s),t.transmit){const h=t.transmit.level||e._level,g=lr(h,n),v=lr(i,n);if(v&lt;g)return;N1(this,{ts:a,methodLevel:i,methodValue:v,transmitValue:n.levels.values[t.transmit.level||e._level],send:t.transmit.send,val:lr(e._level,n)},s,d)}}}(e[Kf][i])}function E1(e,t,n,i,r){const{level:o,log:a=h=&gt;h}=r.formatters||{},s=n.slice();let l=s[0];const u={};let d=(e._childLevel|0)+1;if(d&lt;1&amp;&amp;(d=1),i&amp;&amp;(u.time=i),o){const h=o(t,e.levels.values[t]);Object.assign(u,h)}else u.level=e.levels.values[t];if(r.asObjectBindingsOnly){if(l!==null&amp;&amp;typeof l==&quot;object&quot;)for(;d--&amp;&amp;typeof s[0]==&quot;object&quot;;)Object.assign(u,s.shift());return[a(u),...s]}else{if(l!==null&amp;&amp;typeof l==&quot;object&quot;){for(;d--&amp;&amp;typeof s[0]==&quot;object&quot;;)Object.assign(u,s.shift());l=s.length?ng(s.shift(),s):void 0}else typeof l==&quot;string&quot;&amp;&amp;(l=ng(s.shift(),s));return l!==void 0&amp;&amp;(u[r.messageKey]=l),[a(u)]}}function Jf(e,t,n,i){for(const r in e)if(i&amp;&amp;e[r]instanceof Error)e[r]=Jn.stdSerializers.err(e[r]);else if(typeof e[r]==&quot;object&quot;&amp;&amp;!Array.isArray(e[r])&amp;&amp;t)for(const o in e[r])t.indexOf(o)&gt;-1&amp;&amp;o in n&amp;&amp;(e[r][o]=n[o](e[r][o]))}function N1(e,t,n,i=!1){const r=t.send,o=t.ts,a=t.methodLevel,s=t.methodValue,l=t.val,u=e._logEvent.bindings;i||Jf(n,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=o,e._logEvent.messages=n.filter(function(d){return u.indexOf(d)===-1}),e._logEvent.level.label=a,e._logEvent.level.value=s,r(a,e._logEvent,l),e._logEvent=ud(u)}function ud(e){return{ts:0,messages:[],bindings:e||[],level:{label:&quot;&quot;,value:0}}}function ig(e){const t={type:e.constructor.name,msg:e.message,stack:e.stack};for(const n in e)t[n]===void 0&amp;&amp;(t[n]=e[n]);return t}function j1(e){return typeof e.timestamp==&quot;function&quot;?e.timestamp:e.timestamp===!1?h_:g_}function bs(){return{}}function rc(e){return e}function Pi(){}function h_(){return!1}function g_(){return Date.now()}function O1(){return Math.round(Date.now()/1e3)}function z1(){return new Date(Date.now()).toISOString()}function T1(){function e(t){return typeof t&lt;&quot;u&quot;&amp;&amp;t}try{return typeof globalThis&lt;&quot;u&quot;||Object.defineProperty(Object.prototype,&quot;globalThis&quot;,{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return e(self)||e(window)||e(this)||{}}}su.exports.default=Jn;var C1=su.exports.pino=Jn,A1=su.exports,me;(function(e){e.assertEqual=r=&gt;{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=&gt;{const o={};for(const a of r)o[a]=a;return o},e.getValidEnumValues=r=&gt;{const o=e.objectKeys(r).filter(s=&gt;typeof r[r[s]]!=&quot;number&quot;),a={};for(const s of o)a[s]=r[s];return e.objectValues(a)},e.objectValues=r=&gt;e.objectKeys(r).map(function(o){return r[o]}),e.objectKeys=typeof Object.keys==&quot;function&quot;?r=&gt;Object.keys(r):r=&gt;{const o=[];for(const a in r)Object.prototype.hasOwnProperty.call(r,a)&amp;&amp;o.push(a);return o},e.find=(r,o)=&gt;{for(const a of r)if(o(a))return a},e.isInteger=typeof Number.isInteger==&quot;function&quot;?r=&gt;Number.isInteger(r):r=&gt;typeof r==&quot;number&quot;&amp;&amp;Number.isFinite(r)&amp;&amp;Math.floor(r)===r;function i(r,o=&quot; | &quot;){return r.map(a=&gt;typeof a==&quot;string&quot;?`&#39;${a}&#39;`:a).join(o)}e.joinValues=i,e.jsonStringifyReplacer=(r,o)=&gt;typeof o==&quot;bigint&quot;?o.toString():o})(me||(me={}));var cd;(function(e){e.mergeShapes=(t,n)=&gt;({...t,...n})})(cd||(cd={}));const K=me.arrayToEnum([&quot;string&quot;,&quot;nan&quot;,&quot;number&quot;,&quot;integer&quot;,&quot;float&quot;,&quot;boolean&quot;,&quot;date&quot;,&quot;bigint&quot;,&quot;symbol&quot;,&quot;function&quot;,&quot;undefined&quot;,&quot;null&quot;,&quot;array&quot;,&quot;object&quot;,&quot;unknown&quot;,&quot;promise&quot;,&quot;void&quot;,&quot;never&quot;,&quot;map&quot;,&quot;set&quot;]),Un=e=&gt;{switch(typeof e){case&quot;undefined&quot;:return K.undefined;case&quot;string&quot;:return K.string;case&quot;number&quot;:return Number.isNaN(e)?K.nan:K.number;case&quot;boolean&quot;:return K.boolean;case&quot;function&quot;:return K.function;case&quot;bigint&quot;:return K.bigint;case&quot;symbol&quot;:return K.symbol;case&quot;object&quot;:return Array.isArray(e)?K.array:e===null?K.null:e.then&amp;&amp;typeof e.then==&quot;function&quot;&amp;&amp;e.catch&amp;&amp;typeof e.catch==&quot;function&quot;?K.promise:typeof Map&lt;&quot;u&quot;&amp;&amp;e instanceof Map?K.map:typeof Set&lt;&quot;u&quot;&amp;&amp;e instanceof Set?K.set:typeof Date&lt;&quot;u&quot;&amp;&amp;e instanceof Date?K.date:K.object;default:return K.unknown}},R=me.arrayToEnum([&quot;invalid_type&quot;,&quot;invalid_literal&quot;,&quot;custom&quot;,&quot;invalid_union&quot;,&quot;invalid_union_discriminator&quot;,&quot;invalid_enum_value&quot;,&quot;unrecognized_keys&quot;,&quot;invalid_arguments&quot;,&quot;invalid_return_type&quot;,&quot;invalid_date&quot;,&quot;invalid_string&quot;,&quot;too_small&quot;,&quot;too_big&quot;,&quot;invalid_intersection_types&quot;,&quot;not_multiple_of&quot;,&quot;not_finite&quot;]),P1=e=&gt;JSON.stringify(e,null,2).replace(/&quot;([^&quot;]+)&quot;:/g,&quot;$1:&quot;);let un=class v_ extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=&gt;{this.issues=[...this.issues,i]},this.addIssues=(i=[])=&gt;{this.issues=[...this.issues,...i]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name=&quot;ZodError&quot;,this.issues=t}format(t){const n=t||function(o){return o.message},i={_errors:[]},r=o=&gt;{for(const a of o.issues)if(a.code===&quot;invalid_union&quot;)a.unionErrors.map(r);else if(a.code===&quot;invalid_return_type&quot;)r(a.returnTypeError);else if(a.code===&quot;invalid_arguments&quot;)r(a.argumentsError);else if(a.path.length===0)i._errors.push(n(a));else{let s=i,l=0;for(;l&lt;a.path.length;){const u=a.path[l];l===a.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(n(a))):s[u]=s[u]||{_errors:[]},s=s[u],l++}}};return r(this),i}static assert(t){if(!(t instanceof v_))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,me.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=&gt;n.message){const n={},i=[];for(const r of this.issues)if(r.path.length&gt;0){const o=r.path[0];n[o]=n[o]||[],n[o].push(t(r))}else i.push(t(r));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}};un.create=e=&gt;new un(e);const Qi=(e,t)=&gt;{let n;switch(e.code){case R.invalid_type:e.received===K.undefined?n=&quot;Required&quot;:n=`Expected ${e.expected}, received ${e.received}`;break;case R.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,me.jsonStringifyReplacer)}`;break;case R.unrecognized_keys:n=`Unrecognized key(s) in object: ${me.joinValues(e.keys,&quot;, &quot;)}`;break;case R.invalid_union:n=&quot;Invalid input&quot;;break;case R.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${me.joinValues(e.options)}`;break;case R.invalid_enum_value:n=`Invalid enum value. Expected ${me.joinValues(e.options)}, received &#39;${e.received}&#39;`;break;case R.invalid_arguments:n=&quot;Invalid function arguments&quot;;break;case R.invalid_return_type:n=&quot;Invalid function return type&quot;;break;case R.invalid_date:n=&quot;Invalid date&quot;;break;case R.invalid_string:typeof e.validation==&quot;object&quot;?&quot;includes&quot;in e.validation?(n=`Invalid input: must include &quot;${e.validation.includes}&quot;`,typeof e.validation.position==&quot;number&quot;&amp;&amp;(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):&quot;startsWith&quot;in e.validation?n=`Invalid input: must start with &quot;${e.validation.startsWith}&quot;`:&quot;endsWith&quot;in e.validation?n=`Invalid input: must end with &quot;${e.validation.endsWith}&quot;`:me.assertNever(e.validation):e.validation!==&quot;regex&quot;?n=`Invalid ${e.validation}`:n=&quot;Invalid&quot;;break;case R.too_small:e.type===&quot;array&quot;?n=`Array must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at least&quot;:&quot;more than&quot;} ${e.minimum} element(s)`:e.type===&quot;string&quot;?n=`String must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at least&quot;:&quot;over&quot;} ${e.minimum} character(s)`:e.type===&quot;number&quot;?n=`Number must be ${e.exact?&quot;exactly equal to &quot;:e.inclusive?&quot;greater than or equal to &quot;:&quot;greater than &quot;}${e.minimum}`:e.type===&quot;bigint&quot;?n=`Number must be ${e.exact?&quot;exactly equal to &quot;:e.inclusive?&quot;greater than or equal to &quot;:&quot;greater than &quot;}${e.minimum}`:e.type===&quot;date&quot;?n=`Date must be ${e.exact?&quot;exactly equal to &quot;:e.inclusive?&quot;greater than or equal to &quot;:&quot;greater than &quot;}${new Date(Number(e.minimum))}`:n=&quot;Invalid input&quot;;break;case R.too_big:e.type===&quot;array&quot;?n=`Array must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at most&quot;:&quot;less than&quot;} ${e.maximum} element(s)`:e.type===&quot;string&quot;?n=`String must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at most&quot;:&quot;under&quot;} ${e.maximum} character(s)`:e.type===&quot;number&quot;?n=`Number must be ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;less than or equal to&quot;:&quot;less than&quot;} ${e.maximum}`:e.type===&quot;bigint&quot;?n=`BigInt must be ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;less than or equal to&quot;:&quot;less than&quot;} ${e.maximum}`:e.type===&quot;date&quot;?n=`Date must be ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;smaller than or equal to&quot;:&quot;smaller than&quot;} ${new Date(Number(e.maximum))}`:n=&quot;Invalid input&quot;;break;case R.custom:n=&quot;Invalid input&quot;;break;case R.invalid_intersection_types:n=&quot;Intersection results could not be merged&quot;;break;case R.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case R.not_finite:n=&quot;Number must be finite&quot;;break;default:n=t.defaultError,me.assertNever(e)}return{message:n}};let y_=Qi;function U1(e){y_=e}function kl(){return y_}const xl=e=&gt;{const{data:t,path:n,errorMaps:i,issueData:r}=e,o=[...n,...r.path||[]],a={...r,path:o};if(r.message!==void 0)return{...r,path:o,message:r.message};let s=&quot;&quot;;const l=i.filter(u=&gt;!!u).slice().reverse();for(const u of l)s=u(a,{data:t,defaultError:s}).message;return{...r,path:o,message:s}},D1=[];function V(e,t){const n=kl(),i=xl({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Qi?void 0:Qi].filter(r=&gt;!!r)});e.common.issues.push(i)}class ut{constructor(){this.value=&quot;valid&quot;}dirty(){this.value===&quot;valid&quot;&amp;&amp;(this.value=&quot;dirty&quot;)}abort(){this.value!==&quot;aborted&quot;&amp;&amp;(this.value=&quot;aborted&quot;)}static mergeArray(t,n){const i=[];for(const r of n){if(r.status===&quot;aborted&quot;)return te;r.status===&quot;dirty&quot;&amp;&amp;t.dirty(),i.push(r.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){const i=[];for(const r of n){const o=await r.key,a=await r.value;i.push({key:o,value:a})}return ut.mergeObjectSync(t,i)}static mergeObjectSync(t,n){const i={};for(const r of n){const{key:o,value:a}=r;if(o.status===&quot;aborted&quot;||a.status===&quot;aborted&quot;)return te;o.status===&quot;dirty&quot;&amp;&amp;t.dirty(),a.status===&quot;dirty&quot;&amp;&amp;t.dirty(),o.value!==&quot;__proto__&quot;&amp;&amp;(typeof a.value&lt;&quot;u&quot;||r.alwaysSet)&amp;&amp;(i[o.value]=a.value)}return{status:t.value,value:i}}}const te=Object.freeze({status:&quot;aborted&quot;}),Ii=e=&gt;({status:&quot;dirty&quot;,value:e}),mt=e=&gt;({status:&quot;valid&quot;,value:e}),dd=e=&gt;e.status===&quot;aborted&quot;,fd=e=&gt;e.status===&quot;dirty&quot;,Xr=e=&gt;e.status===&quot;valid&quot;,sa=e=&gt;typeof Promise&lt;&quot;u&quot;&amp;&amp;e instanceof Promise;var Y;(function(e){e.errToObj=t=&gt;typeof t==&quot;string&quot;?{message:t}:t||{},e.toString=t=&gt;typeof t==&quot;string&quot;?t:t==null?void 0:t.message})(Y||(Y={}));class Nn{constructor(t,n,i,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const og=(e,t)=&gt;{if(Xr(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error(&quot;Validation failed but no issues detected.&quot;);return{success:!1,get error(){if(this._error)return this._error;const n=new un(e.common.issues);return this._error=n,this._error}}};function ae(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&amp;&amp;(n||i))throw new Error(`Can&#39;t use &quot;invalid_type_error&quot; or &quot;required_error&quot; in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(a,s)=&gt;{const{message:l}=e;return a.code===&quot;invalid_enum_value&quot;?{message:l??s.defaultError}:typeof s.data&gt;&quot;u&quot;?{message:l??i??s.defaultError}:a.code!==&quot;invalid_type&quot;?{message:s.defaultError}:{message:l??n??s.defaultError}},description:r}}let le=class{get description(){return this._def.description}_getType(t){return Un(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Un(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ut,ctx:{common:t.parent.common,data:t.data,parsedType:Un(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(sa(n))throw new Error(&quot;Synchronous parse encountered promise.&quot;);return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){const i={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Un(t)},r=this._parseSync({data:t,path:i.path,parent:i});return og(i,r)}&quot;~validate&quot;(t){var i,r;const n={common:{issues:[],async:!!this[&quot;~standard&quot;].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Un(t)};if(!this[&quot;~standard&quot;].async)try{const o=this._parseSync({data:t,path:[],parent:n});return Xr(o)?{value:o.value}:{issues:n.common.issues}}catch(o){(r=(i=o==null?void 0:o.message)==null?void 0:i.toLowerCase())!=null&amp;&amp;r.includes(&quot;encountered&quot;)&amp;&amp;(this[&quot;~standard&quot;].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(o=&gt;Xr(o)?{value:o.value}:{issues:n.common.issues})}async parseAsync(t,n){const i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){const i={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Un(t)},r=this._parse({data:t,path:i.path,parent:i}),o=await(sa(r)?r:Promise.resolve(r));return og(i,o)}refine(t,n){const i=r=&gt;typeof n==&quot;string&quot;||typeof n&gt;&quot;u&quot;?{message:n}:typeof n==&quot;function&quot;?n(r):n;return this._refinement((r,o)=&gt;{const a=t(r),s=()=&gt;o.addIssue({code:R.custom,...i(r)});return typeof Promise&lt;&quot;u&quot;&amp;&amp;a instanceof Promise?a.then(l=&gt;l?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,n){return this._refinement((i,r)=&gt;t(i)?!0:(r.addIssue(typeof n==&quot;function&quot;?n(i,r):n),!1))}_refinement(t){return new fn({schema:this,typeName:ne.ZodEffects,effect:{type:&quot;refinement&quot;,refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[&quot;~standard&quot;]={version:1,vendor:&quot;zod&quot;,validate:n=&gt;this[&quot;~validate&quot;](n)}}optional(){return En.create(this,this._def)}nullable(){return br.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Yr.create(this)}promise(){return eo.create(this,this._def)}or(t){return pa.create([this,t],this._def)}and(t){return ha.create(this,t,this._def)}transform(t){return new fn({...ae(this._def),schema:this,typeName:ne.ZodEffects,effect:{type:&quot;transform&quot;,transform:t}})}default(t){const n=typeof t==&quot;function&quot;?t:()=&gt;t;return new _a({...ae(this._def),innerType:this,defaultValue:n,typeName:ne.ZodDefault})}brand(){return new Gf({typeName:ne.ZodBranded,type:this,...ae(this._def)})}catch(t){const n=typeof t==&quot;function&quot;?t:()=&gt;t;return new wa({...ae(this._def),innerType:this,catchValue:n,typeName:ne.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Ka.create(this,t)}readonly(){return ka.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};const R1=/^c[^\s-]{8,}$/i,L1=/^[0-9a-z]+$/,Z1=/^[0-9A-HJKMNP-TV-Z]{26}$/i,M1=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,F1=/^[a-z0-9_-]{21}$/i,B1=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,V1=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,W1=/^(?!\.)(?!.*\.\.)([A-Z0-9_&#39;+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,H1=&quot;^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$&quot;;let ic;const K1=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,J1=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,G1=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,q1=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Q1=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,X1=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,__=&quot;((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))&quot;,Y1=new RegExp(`^${__}$`);function w_(e){let t=&quot;[0-5]\\d&quot;;e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&amp;&amp;(t=`${t}(\\.\\d+)?`);const n=e.precision?&quot;+&quot;:&quot;?&quot;;return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function eI(e){return new RegExp(`^${w_(e)}$`)}function k_(e){let t=`${__}T${w_(e)}`;const n=[];return n.push(e.local?&quot;Z?&quot;:&quot;Z&quot;),e.offset&amp;&amp;n.push(&quot;([+-]\\d{2}:?\\d{2})&quot;),t=`${t}(${n.join(&quot;|&quot;)})`,new RegExp(`^${t}$`)}function tI(e,t){return!!((t===&quot;v4&quot;||!t)&amp;&amp;K1.test(e)||(t===&quot;v6&quot;||!t)&amp;&amp;G1.test(e))}function nI(e,t){if(!B1.test(e))return!1;try{const[n]=e.split(&quot;.&quot;);if(!n)return!1;const i=n.replace(/-/g,&quot;+&quot;).replace(/_/g,&quot;/&quot;).padEnd(n.length+(4-n.length%4)%4,&quot;=&quot;),r=JSON.parse(atob(i));return!(typeof r!=&quot;object&quot;||r===null||&quot;typ&quot;in r&amp;&amp;(r==null?void 0:r.typ)!==&quot;JWT&quot;||!r.alg||t&amp;&amp;r.alg!==t)}catch{return!1}}function rI(e,t){return!!((t===&quot;v4&quot;||!t)&amp;&amp;J1.test(e)||(t===&quot;v6&quot;||!t)&amp;&amp;q1.test(e))}let Xi=class jo extends le{_parse(t){if(this._def.coerce&amp;&amp;(t.data=String(t.data)),this._getType(t)!==K.string){const o=this._getOrReturnCtx(t);return V(o,{code:R.invalid_type,expected:K.string,received:o.parsedType}),te}const i=new ut;let r;for(const o of this._def.checks)if(o.kind===&quot;min&quot;)t.data.length&lt;o.value&amp;&amp;(r=this._getOrReturnCtx(t,r),V(r,{code:R.too_small,minimum:o.value,type:&quot;string&quot;,inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind===&quot;max&quot;)t.data.length&gt;o.value&amp;&amp;(r=this._getOrReturnCtx(t,r),V(r,{code:R.too_big,maximum:o.value,type:&quot;string&quot;,inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind===&quot;length&quot;){const a=t.data.length&gt;o.value,s=t.data.length&lt;o.value;(a||s)&amp;&amp;(r=this._getOrReturnCtx(t,r),a?V(r,{code:R.too_big,maximum:o.value,type:&quot;string&quot;,inclusive:!0,exact:!0,message:o.message}):s&amp;&amp;V(r,{code:R.too_small,minimum:o.value,type:&quot;string&quot;,inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind===&quot;email&quot;)W1.test(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{validation:&quot;email&quot;,code:R.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;emoji&quot;)ic||(ic=new RegExp(H1,&quot;u&quot;)),ic.test(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{validation:&quot;emoji&quot;,code:R.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;uuid&quot;)M1.test(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{validation:&quot;uuid&quot;,code:R.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;nanoid&quot;)F1.test(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{validation:&quot;nanoid&quot;,code:R.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;cuid&quot;)R1.test(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{validation:&quot;cuid&quot;,code:R.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;cuid2&quot;)L1.test(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{validation:&quot;cuid2&quot;,code:R.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;ulid&quot;)Z1.test(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{validation:&quot;ulid&quot;,code:R.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;url&quot;)try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),V(r,{validation:&quot;url&quot;,code:R.invalid_string,message:o.message}),i.dirty()}else o.kind===&quot;regex&quot;?(o.regex.lastIndex=0,o.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{validation:&quot;regex&quot;,code:R.invalid_string,message:o.message}),i.dirty())):o.kind===&quot;trim&quot;?t.data=t.data.trim():o.kind===&quot;includes&quot;?t.data.includes(o.value,o.position)||(r=this._getOrReturnCtx(t,r),V(r,{code:R.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind===&quot;toLowerCase&quot;?t.data=t.data.toLowerCase():o.kind===&quot;toUpperCase&quot;?t.data=t.data.toUpperCase():o.kind===&quot;startsWith&quot;?t.data.startsWith(o.value)||(r=this._getOrReturnCtx(t,r),V(r,{code:R.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind===&quot;endsWith&quot;?t.data.endsWith(o.value)||(r=this._getOrReturnCtx(t,r),V(r,{code:R.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind===&quot;datetime&quot;?k_(o).test(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{code:R.invalid_string,validation:&quot;datetime&quot;,message:o.message}),i.dirty()):o.kind===&quot;date&quot;?Y1.test(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{code:R.invalid_string,validation:&quot;date&quot;,message:o.message}),i.dirty()):o.kind===&quot;time&quot;?eI(o).test(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{code:R.invalid_string,validation:&quot;time&quot;,message:o.message}),i.dirty()):o.kind===&quot;duration&quot;?V1.test(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{validation:&quot;duration&quot;,code:R.invalid_string,message:o.message}),i.dirty()):o.kind===&quot;ip&quot;?tI(t.data,o.version)||(r=this._getOrReturnCtx(t,r),V(r,{validation:&quot;ip&quot;,code:R.invalid_string,message:o.message}),i.dirty()):o.kind===&quot;jwt&quot;?nI(t.data,o.alg)||(r=this._getOrReturnCtx(t,r),V(r,{validation:&quot;jwt&quot;,code:R.invalid_string,message:o.message}),i.dirty()):o.kind===&quot;cidr&quot;?rI(t.data,o.version)||(r=this._getOrReturnCtx(t,r),V(r,{validation:&quot;cidr&quot;,code:R.invalid_string,message:o.message}),i.dirty()):o.kind===&quot;base64&quot;?Q1.test(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{validation:&quot;base64&quot;,code:R.invalid_string,message:o.message}),i.dirty()):o.kind===&quot;base64url&quot;?X1.test(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{validation:&quot;base64url&quot;,code:R.invalid_string,message:o.message}),i.dirty()):me.assertNever(o);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(r=&gt;t.test(r),{validation:n,code:R.invalid_string,...Y.errToObj(i)})}_addCheck(t){return new jo({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:&quot;email&quot;,...Y.errToObj(t)})}url(t){return this._addCheck({kind:&quot;url&quot;,...Y.errToObj(t)})}emoji(t){return this._addCheck({kind:&quot;emoji&quot;,...Y.errToObj(t)})}uuid(t){return this._addCheck({kind:&quot;uuid&quot;,...Y.errToObj(t)})}nanoid(t){return this._addCheck({kind:&quot;nanoid&quot;,...Y.errToObj(t)})}cuid(t){return this._addCheck({kind:&quot;cuid&quot;,...Y.errToObj(t)})}cuid2(t){return this._addCheck({kind:&quot;cuid2&quot;,...Y.errToObj(t)})}ulid(t){return this._addCheck({kind:&quot;ulid&quot;,...Y.errToObj(t)})}base64(t){return this._addCheck({kind:&quot;base64&quot;,...Y.errToObj(t)})}base64url(t){return this._addCheck({kind:&quot;base64url&quot;,...Y.errToObj(t)})}jwt(t){return this._addCheck({kind:&quot;jwt&quot;,...Y.errToObj(t)})}ip(t){return this._addCheck({kind:&quot;ip&quot;,...Y.errToObj(t)})}cidr(t){return this._addCheck({kind:&quot;cidr&quot;,...Y.errToObj(t)})}datetime(t){return typeof t==&quot;string&quot;?this._addCheck({kind:&quot;datetime&quot;,precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:&quot;datetime&quot;,precision:typeof(t==null?void 0:t.precision)&gt;&quot;u&quot;?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Y.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:&quot;date&quot;,message:t})}time(t){return typeof t==&quot;string&quot;?this._addCheck({kind:&quot;time&quot;,precision:null,message:t}):this._addCheck({kind:&quot;time&quot;,precision:typeof(t==null?void 0:t.precision)&gt;&quot;u&quot;?null:t==null?void 0:t.precision,...Y.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:&quot;duration&quot;,...Y.errToObj(t)})}regex(t,n){return this._addCheck({kind:&quot;regex&quot;,regex:t,...Y.errToObj(n)})}includes(t,n){return this._addCheck({kind:&quot;includes&quot;,value:t,position:n==null?void 0:n.position,...Y.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:&quot;startsWith&quot;,value:t,...Y.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:&quot;endsWith&quot;,value:t,...Y.errToObj(n)})}min(t,n){return this._addCheck({kind:&quot;min&quot;,value:t,...Y.errToObj(n)})}max(t,n){return this._addCheck({kind:&quot;max&quot;,value:t,...Y.errToObj(n)})}length(t,n){return this._addCheck({kind:&quot;length&quot;,value:t,...Y.errToObj(n)})}nonempty(t){return this.min(1,Y.errToObj(t))}trim(){return new jo({...this._def,checks:[...this._def.checks,{kind:&quot;trim&quot;}]})}toLowerCase(){return new jo({...this._def,checks:[...this._def.checks,{kind:&quot;toLowerCase&quot;}]})}toUpperCase(){return new jo({...this._def,checks:[...this._def.checks,{kind:&quot;toUpperCase&quot;}]})}get isDatetime(){return!!this._def.checks.find(t=&gt;t.kind===&quot;datetime&quot;)}get isDate(){return!!this._def.checks.find(t=&gt;t.kind===&quot;date&quot;)}get isTime(){return!!this._def.checks.find(t=&gt;t.kind===&quot;time&quot;)}get isDuration(){return!!this._def.checks.find(t=&gt;t.kind===&quot;duration&quot;)}get isEmail(){return!!this._def.checks.find(t=&gt;t.kind===&quot;email&quot;)}get isURL(){return!!this._def.checks.find(t=&gt;t.kind===&quot;url&quot;)}get isEmoji(){return!!this._def.checks.find(t=&gt;t.kind===&quot;emoji&quot;)}get isUUID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;uuid&quot;)}get isNANOID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;nanoid&quot;)}get isCUID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;cuid&quot;)}get isCUID2(){return!!this._def.checks.find(t=&gt;t.kind===&quot;cuid2&quot;)}get isULID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;ulid&quot;)}get isIP(){return!!this._def.checks.find(t=&gt;t.kind===&quot;ip&quot;)}get isCIDR(){return!!this._def.checks.find(t=&gt;t.kind===&quot;cidr&quot;)}get isBase64(){return!!this._def.checks.find(t=&gt;t.kind===&quot;base64&quot;)}get isBase64url(){return!!this._def.checks.find(t=&gt;t.kind===&quot;base64url&quot;)}get minLength(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t}};Xi.create=e=&gt;new Xi({checks:[],typeName:ne.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...ae(e)});function iI(e,t){const n=(e.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,i=(t.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,r=n&gt;i?n:i,o=Number.parseInt(e.toFixed(r).replace(&quot;.&quot;,&quot;&quot;)),a=Number.parseInt(t.toFixed(r).replace(&quot;.&quot;,&quot;&quot;));return o%a/10**r}let la=class md extends le{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&amp;&amp;(t.data=Number(t.data)),this._getType(t)!==K.number){const o=this._getOrReturnCtx(t);return V(o,{code:R.invalid_type,expected:K.number,received:o.parsedType}),te}let i;const r=new ut;for(const o of this._def.checks)o.kind===&quot;int&quot;?me.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),V(i,{code:R.invalid_type,expected:&quot;integer&quot;,received:&quot;float&quot;,message:o.message}),r.dirty()):o.kind===&quot;min&quot;?(o.inclusive?t.data&lt;o.value:t.data&lt;=o.value)&amp;&amp;(i=this._getOrReturnCtx(t,i),V(i,{code:R.too_small,minimum:o.value,type:&quot;number&quot;,inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind===&quot;max&quot;?(o.inclusive?t.data&gt;o.value:t.data&gt;=o.value)&amp;&amp;(i=this._getOrReturnCtx(t,i),V(i,{code:R.too_big,maximum:o.value,type:&quot;number&quot;,inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind===&quot;multipleOf&quot;?iI(t.data,o.value)!==0&amp;&amp;(i=this._getOrReturnCtx(t,i),V(i,{code:R.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):o.kind===&quot;finite&quot;?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),V(i,{code:R.not_finite,message:o.message}),r.dirty()):me.assertNever(o);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit(&quot;min&quot;,t,!0,Y.toString(n))}gt(t,n){return this.setLimit(&quot;min&quot;,t,!1,Y.toString(n))}lte(t,n){return this.setLimit(&quot;max&quot;,t,!0,Y.toString(n))}lt(t,n){return this.setLimit(&quot;max&quot;,t,!1,Y.toString(n))}setLimit(t,n,i,r){return new md({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:Y.toString(r)}]})}_addCheck(t){return new md({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:&quot;int&quot;,message:Y.toString(t)})}positive(t){return this._addCheck({kind:&quot;min&quot;,value:0,inclusive:!1,message:Y.toString(t)})}negative(t){return this._addCheck({kind:&quot;max&quot;,value:0,inclusive:!1,message:Y.toString(t)})}nonpositive(t){return this._addCheck({kind:&quot;max&quot;,value:0,inclusive:!0,message:Y.toString(t)})}nonnegative(t){return this._addCheck({kind:&quot;min&quot;,value:0,inclusive:!0,message:Y.toString(t)})}multipleOf(t,n){return this._addCheck({kind:&quot;multipleOf&quot;,value:t,message:Y.toString(n)})}finite(t){return this._addCheck({kind:&quot;finite&quot;,message:Y.toString(t)})}safe(t){return this._addCheck({kind:&quot;min&quot;,inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Y.toString(t)})._addCheck({kind:&quot;max&quot;,inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Y.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=&gt;t.kind===&quot;int&quot;||t.kind===&quot;multipleOf&quot;&amp;&amp;me.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const i of this._def.checks){if(i.kind===&quot;finite&quot;||i.kind===&quot;int&quot;||i.kind===&quot;multipleOf&quot;)return!0;i.kind===&quot;min&quot;?(n===null||i.value&gt;n)&amp;&amp;(n=i.value):i.kind===&quot;max&quot;&amp;&amp;(t===null||i.value&lt;t)&amp;&amp;(t=i.value)}return Number.isFinite(n)&amp;&amp;Number.isFinite(t)}};la.create=e=&gt;new la({checks:[],typeName:ne.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ae(e)});let ua=class pd extends le{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==K.bigint)return this._getInvalidInput(t);let i;const r=new ut;for(const o of this._def.checks)o.kind===&quot;min&quot;?(o.inclusive?t.data&lt;o.value:t.data&lt;=o.value)&amp;&amp;(i=this._getOrReturnCtx(t,i),V(i,{code:R.too_small,type:&quot;bigint&quot;,minimum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind===&quot;max&quot;?(o.inclusive?t.data&gt;o.value:t.data&gt;=o.value)&amp;&amp;(i=this._getOrReturnCtx(t,i),V(i,{code:R.too_big,type:&quot;bigint&quot;,maximum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind===&quot;multipleOf&quot;?t.data%o.value!==BigInt(0)&amp;&amp;(i=this._getOrReturnCtx(t,i),V(i,{code:R.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):me.assertNever(o);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return V(n,{code:R.invalid_type,expected:K.bigint,received:n.parsedType}),te}gte(t,n){return this.setLimit(&quot;min&quot;,t,!0,Y.toString(n))}gt(t,n){return this.setLimit(&quot;min&quot;,t,!1,Y.toString(n))}lte(t,n){return this.setLimit(&quot;max&quot;,t,!0,Y.toString(n))}lt(t,n){return this.setLimit(&quot;max&quot;,t,!1,Y.toString(n))}setLimit(t,n,i,r){return new pd({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:Y.toString(r)}]})}_addCheck(t){return new pd({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:&quot;min&quot;,value:BigInt(0),inclusive:!1,message:Y.toString(t)})}negative(t){return this._addCheck({kind:&quot;max&quot;,value:BigInt(0),inclusive:!1,message:Y.toString(t)})}nonpositive(t){return this._addCheck({kind:&quot;max&quot;,value:BigInt(0),inclusive:!0,message:Y.toString(t)})}nonnegative(t){return this._addCheck({kind:&quot;min&quot;,value:BigInt(0),inclusive:!0,message:Y.toString(t)})}multipleOf(t,n){return this._addCheck({kind:&quot;multipleOf&quot;,value:t,message:Y.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t}};ua.create=e=&gt;new ua({checks:[],typeName:ne.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...ae(e)});let ca=class extends le{_parse(t){if(this._def.coerce&amp;&amp;(t.data=!!t.data),this._getType(t)!==K.boolean){const i=this._getOrReturnCtx(t);return V(i,{code:R.invalid_type,expected:K.boolean,received:i.parsedType}),te}return mt(t.data)}};ca.create=e=&gt;new ca({typeName:ne.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ae(e)});let da=class x_ extends le{_parse(t){if(this._def.coerce&amp;&amp;(t.data=new Date(t.data)),this._getType(t)!==K.date){const o=this._getOrReturnCtx(t);return V(o,{code:R.invalid_type,expected:K.date,received:o.parsedType}),te}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return V(o,{code:R.invalid_date}),te}const i=new ut;let r;for(const o of this._def.checks)o.kind===&quot;min&quot;?t.data.getTime()&lt;o.value&amp;&amp;(r=this._getOrReturnCtx(t,r),V(r,{code:R.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:&quot;date&quot;}),i.dirty()):o.kind===&quot;max&quot;?t.data.getTime()&gt;o.value&amp;&amp;(r=this._getOrReturnCtx(t,r),V(r,{code:R.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:&quot;date&quot;}),i.dirty()):me.assertNever(o);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new x_({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:&quot;min&quot;,value:t.getTime(),message:Y.toString(n)})}max(t,n){return this._addCheck({kind:&quot;max&quot;,value:t.getTime(),message:Y.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t!=null?new Date(t):null}};da.create=e=&gt;new da({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ne.ZodDate,...ae(e)});let bl=class extends le{_parse(t){if(this._getType(t)!==K.symbol){const i=this._getOrReturnCtx(t);return V(i,{code:R.invalid_type,expected:K.symbol,received:i.parsedType}),te}return mt(t.data)}};bl.create=e=&gt;new bl({typeName:ne.ZodSymbol,...ae(e)});let fa=class extends le{_parse(t){if(this._getType(t)!==K.undefined){const i=this._getOrReturnCtx(t);return V(i,{code:R.invalid_type,expected:K.undefined,received:i.parsedType}),te}return mt(t.data)}};fa.create=e=&gt;new fa({typeName:ne.ZodUndefined,...ae(e)});let ma=class extends le{_parse(t){if(this._getType(t)!==K.null){const i=this._getOrReturnCtx(t);return V(i,{code:R.invalid_type,expected:K.null,received:i.parsedType}),te}return mt(t.data)}};ma.create=e=&gt;new ma({typeName:ne.ZodNull,...ae(e)});let Yi=class extends le{constructor(){super(...arguments),this._any=!0}_parse(t){return mt(t.data)}};Yi.create=e=&gt;new Yi({typeName:ne.ZodAny,...ae(e)});let Vr=class extends le{constructor(){super(...arguments),this._unknown=!0}_parse(t){return mt(t.data)}};Vr.create=e=&gt;new Vr({typeName:ne.ZodUnknown,...ae(e)});let Gn=class extends le{_parse(t){const n=this._getOrReturnCtx(t);return V(n,{code:R.invalid_type,expected:K.never,received:n.parsedType}),te}};Gn.create=e=&gt;new Gn({typeName:ne.ZodNever,...ae(e)});let Sl=class extends le{_parse(t){if(this._getType(t)!==K.undefined){const i=this._getOrReturnCtx(t);return V(i,{code:R.invalid_type,expected:K.void,received:i.parsedType}),te}return mt(t.data)}};Sl.create=e=&gt;new Sl({typeName:ne.ZodVoid,...ae(e)});let Yr=class Bs extends le{_parse(t){const{ctx:n,status:i}=this._processInputParams(t),r=this._def;if(n.parsedType!==K.array)return V(n,{code:R.invalid_type,expected:K.array,received:n.parsedType}),te;if(r.exactLength!==null){const a=n.data.length&gt;r.exactLength.value,s=n.data.length&lt;r.exactLength.value;(a||s)&amp;&amp;(V(n,{code:a?R.too_big:R.too_small,minimum:s?r.exactLength.value:void 0,maximum:a?r.exactLength.value:void 0,type:&quot;array&quot;,inclusive:!0,exact:!0,message:r.exactLength.message}),i.dirty())}if(r.minLength!==null&amp;&amp;n.data.length&lt;r.minLength.value&amp;&amp;(V(n,{code:R.too_small,minimum:r.minLength.value,type:&quot;array&quot;,inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),r.maxLength!==null&amp;&amp;n.data.length&gt;r.maxLength.value&amp;&amp;(V(n,{code:R.too_big,maximum:r.maxLength.value,type:&quot;array&quot;,inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((a,s)=&gt;r.type._parseAsync(new Nn(n,a,n.path,s)))).then(a=&gt;ut.mergeArray(i,a));const o=[...n.data].map((a,s)=&gt;r.type._parseSync(new Nn(n,a,n.path,s)));return ut.mergeArray(i,o)}get element(){return this._def.type}min(t,n){return new Bs({...this._def,minLength:{value:t,message:Y.toString(n)}})}max(t,n){return new Bs({...this._def,maxLength:{value:t,message:Y.toString(n)}})}length(t,n){return new Bs({...this._def,exactLength:{value:t,message:Y.toString(n)}})}nonempty(t){return this.min(1,t)}};Yr.create=(e,t)=&gt;new Yr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ne.ZodArray,...ae(t)});function fi(e){if(e instanceof qt){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=En.create(fi(i))}return new qt({...e._def,shape:()=&gt;t})}else return e instanceof Yr?new Yr({...e._def,type:fi(e.element)}):e instanceof En?En.create(fi(e.unwrap())):e instanceof br?br.create(fi(e.unwrap())):e instanceof xr?xr.create(e.items.map(t=&gt;fi(t))):e}let qt=class Yt extends le{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=me.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==K.object){const u=this._getOrReturnCtx(t);return V(u,{code:R.invalid_type,expected:K.object,received:u.parsedType}),te}const{status:i,ctx:r}=this._processInputParams(t),{shape:o,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof Gn&amp;&amp;this._def.unknownKeys===&quot;strip&quot;))for(const u in r.data)a.includes(u)||s.push(u);const l=[];for(const u of a){const d=o[u],h=r.data[u];l.push({key:{status:&quot;valid&quot;,value:u},value:d._parse(new Nn(r,h,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof Gn){const u=this._def.unknownKeys;if(u===&quot;passthrough&quot;)for(const d of s)l.push({key:{status:&quot;valid&quot;,value:d},value:{status:&quot;valid&quot;,value:r.data[d]}});else if(u===&quot;strict&quot;)s.length&gt;0&amp;&amp;(V(r,{code:R.unrecognized_keys,keys:s}),i.dirty());else if(u!==&quot;strip&quot;)throw new Error(&quot;Internal ZodObject error: invalid unknownKeys value.&quot;)}else{const u=this._def.catchall;for(const d of s){const h=r.data[d];l.push({key:{status:&quot;valid&quot;,value:d},value:u._parse(new Nn(r,h,r.path,d)),alwaysSet:d in r.data})}}return r.common.async?Promise.resolve().then(async()=&gt;{const u=[];for(const d of l){const h=await d.key,g=await d.value;u.push({key:h,value:g,alwaysSet:d.alwaysSet})}return u}).then(u=&gt;ut.mergeObjectSync(i,u)):ut.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(t){return Y.errToObj,new Yt({...this._def,unknownKeys:&quot;strict&quot;,...t!==void 0?{errorMap:(n,i)=&gt;{var o,a;const r=((a=(o=this._def).errorMap)==null?void 0:a.call(o,n,i).message)??i.defaultError;return n.code===&quot;unrecognized_keys&quot;?{message:Y.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new Yt({...this._def,unknownKeys:&quot;strip&quot;})}passthrough(){return new Yt({...this._def,unknownKeys:&quot;passthrough&quot;})}extend(t){return new Yt({...this._def,shape:()=&gt;({...this._def.shape(),...t})})}merge(t){return new Yt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=&gt;({...this._def.shape(),...t._def.shape()}),typeName:ne.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Yt({...this._def,catchall:t})}pick(t){const n={};for(const i of me.objectKeys(t))t[i]&amp;&amp;this.shape[i]&amp;&amp;(n[i]=this.shape[i]);return new Yt({...this._def,shape:()=&gt;n})}omit(t){const n={};for(const i of me.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new Yt({...this._def,shape:()=&gt;n})}deepPartial(){return fi(this)}partial(t){const n={};for(const i of me.objectKeys(this.shape)){const r=this.shape[i];t&amp;&amp;!t[i]?n[i]=r:n[i]=r.optional()}return new Yt({...this._def,shape:()=&gt;n})}required(t){const n={};for(const i of me.objectKeys(this.shape))if(t&amp;&amp;!t[i])n[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof En;)o=o._def.innerType;n[i]=o}return new Yt({...this._def,shape:()=&gt;n})}keyof(){return E_(me.objectKeys(this.shape))}};qt.create=(e,t)=&gt;new qt({shape:()=&gt;e,unknownKeys:&quot;strip&quot;,catchall:Gn.create(),typeName:ne.ZodObject,...ae(t)});qt.strictCreate=(e,t)=&gt;new qt({shape:()=&gt;e,unknownKeys:&quot;strict&quot;,catchall:Gn.create(),typeName:ne.ZodObject,...ae(t)});qt.lazycreate=(e,t)=&gt;new qt({shape:e,unknownKeys:&quot;strip&quot;,catchall:Gn.create(),typeName:ne.ZodObject,...ae(t)});let pa=class extends le{_parse(t){const{ctx:n}=this._processInputParams(t),i=this._def.options;function r(o){for(const s of o)if(s.result.status===&quot;valid&quot;)return s.result;for(const s of o)if(s.result.status===&quot;dirty&quot;)return n.common.issues.push(...s.ctx.common.issues),s.result;const a=o.map(s=&gt;new un(s.ctx.common.issues));return V(n,{code:R.invalid_union,unionErrors:a}),te}if(n.common.async)return Promise.all(i.map(async o=&gt;{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(r);{let o;const a=[];for(const l of i){const u={...n,common:{...n.common,issues:[]},parent:null},d=l._parseSync({data:n.data,path:n.path,parent:u});if(d.status===&quot;valid&quot;)return d;d.status===&quot;dirty&quot;&amp;&amp;!o&amp;&amp;(o={result:d,ctx:u}),u.common.issues.length&amp;&amp;a.push(u.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const s=a.map(l=&gt;new un(l));return V(n,{code:R.invalid_union,unionErrors:s}),te}}get options(){return this._def.options}};pa.create=(e,t)=&gt;new pa({options:e,typeName:ne.ZodUnion,...ae(t)});const Cn=e=&gt;e instanceof ga?Cn(e.schema):e instanceof fn?Cn(e.innerType()):e instanceof va?[e.value]:e instanceof Ha?e.options:e instanceof ya?me.objectValues(e.enum):e instanceof _a?Cn(e._def.innerType):e instanceof fa?[void 0]:e instanceof ma?[null]:e instanceof En?[void 0,...Cn(e.unwrap())]:e instanceof br?[null,...Cn(e.unwrap())]:e instanceof Gf||e instanceof ka?Cn(e.unwrap()):e instanceof wa?Cn(e._def.innerType):[];let b_=class S_ extends le{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==K.object)return V(n,{code:R.invalid_type,expected:K.object,received:n.parsedType}),te;const i=this.discriminator,r=n.data[i],o=this.optionsMap.get(r);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(V(n,{code:R.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),te)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,i){const r=new Map;for(const o of n){const a=Cn(o.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of a){if(r.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);r.set(s,o)}}return new S_({typeName:ne.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...ae(i)})}};function hd(e,t){const n=Un(e),i=Un(t);if(e===t)return{valid:!0,data:e};if(n===K.object&amp;&amp;i===K.object){const r=me.objectKeys(t),o=me.objectKeys(e).filter(s=&gt;r.indexOf(s)!==-1),a={...e,...t};for(const s of o){const l=hd(e[s],t[s]);if(!l.valid)return{valid:!1};a[s]=l.data}return{valid:!0,data:a}}else if(n===K.array&amp;&amp;i===K.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let o=0;o&lt;e.length;o++){const a=e[o],s=t[o],l=hd(a,s);if(!l.valid)return{valid:!1};r.push(l.data)}return{valid:!0,data:r}}else return n===K.date&amp;&amp;i===K.date&amp;&amp;+e==+t?{valid:!0,data:e}:{valid:!1}}let ha=class extends le{_parse(t){const{status:n,ctx:i}=this._processInputParams(t),r=(o,a)=&gt;{if(dd(o)||dd(a))return te;const s=hd(o.value,a.value);return s.valid?((fd(o)||fd(a))&amp;&amp;n.dirty(),{status:n.value,value:s.data}):(V(i,{code:R.invalid_intersection_types}),te)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([o,a])=&gt;r(o,a)):r(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};ha.create=(e,t,n)=&gt;new ha({left:e,right:t,typeName:ne.ZodIntersection,...ae(n)});let xr=class $_ extends le{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==K.array)return V(i,{code:R.invalid_type,expected:K.array,received:i.parsedType}),te;if(i.data.length&lt;this._def.items.length)return V(i,{code:R.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:&quot;array&quot;}),te;!this._def.rest&amp;&amp;i.data.length&gt;this._def.items.length&amp;&amp;(V(i,{code:R.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:&quot;array&quot;}),n.dirty());const o=[...i.data].map((a,s)=&gt;{const l=this._def.items[s]||this._def.rest;return l?l._parse(new Nn(i,a,i.path,s)):null}).filter(a=&gt;!!a);return i.common.async?Promise.all(o).then(a=&gt;ut.mergeArray(n,a)):ut.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new $_({...this._def,rest:t})}};xr.create=(e,t)=&gt;{if(!Array.isArray(e))throw new Error(&quot;You must pass an array of schemas to z.tuple([ ... ])&quot;);return new xr({items:e,typeName:ne.ZodTuple,rest:null,...ae(t)})};let I_=class gd extends le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==K.object)return V(i,{code:R.invalid_type,expected:K.object,received:i.parsedType}),te;const r=[],o=this._def.keyType,a=this._def.valueType;for(const s in i.data)r.push({key:o._parse(new Nn(i,s,i.path,s)),value:a._parse(new Nn(i,i.data[s],i.path,s)),alwaysSet:s in i.data});return i.common.async?ut.mergeObjectAsync(n,r):ut.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,i){return n instanceof le?new gd({keyType:t,valueType:n,typeName:ne.ZodRecord,...ae(i)}):new gd({keyType:Xi.create(),valueType:t,typeName:ne.ZodRecord,...ae(n)})}},$l=class extends le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==K.map)return V(i,{code:R.invalid_type,expected:K.map,received:i.parsedType}),te;const r=this._def.keyType,o=this._def.valueType,a=[...i.data.entries()].map(([s,l],u)=&gt;({key:r._parse(new Nn(i,s,i.path,[u,&quot;key&quot;])),value:o._parse(new Nn(i,l,i.path,[u,&quot;value&quot;]))}));if(i.common.async){const s=new Map;return Promise.resolve().then(async()=&gt;{for(const l of a){const u=await l.key,d=await l.value;if(u.status===&quot;aborted&quot;||d.status===&quot;aborted&quot;)return te;(u.status===&quot;dirty&quot;||d.status===&quot;dirty&quot;)&amp;&amp;n.dirty(),s.set(u.value,d.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of a){const u=l.key,d=l.value;if(u.status===&quot;aborted&quot;||d.status===&quot;aborted&quot;)return te;(u.status===&quot;dirty&quot;||d.status===&quot;dirty&quot;)&amp;&amp;n.dirty(),s.set(u.value,d.value)}return{status:n.value,value:s}}}};$l.create=(e,t,n)=&gt;new $l({valueType:t,keyType:e,typeName:ne.ZodMap,...ae(n)});let Il=class vd extends le{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==K.set)return V(i,{code:R.invalid_type,expected:K.set,received:i.parsedType}),te;const r=this._def;r.minSize!==null&amp;&amp;i.data.size&lt;r.minSize.value&amp;&amp;(V(i,{code:R.too_small,minimum:r.minSize.value,type:&quot;set&quot;,inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&amp;&amp;i.data.size&gt;r.maxSize.value&amp;&amp;(V(i,{code:R.too_big,maximum:r.maxSize.value,type:&quot;set&quot;,inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());const o=this._def.valueType;function a(l){const u=new Set;for(const d of l){if(d.status===&quot;aborted&quot;)return te;d.status===&quot;dirty&quot;&amp;&amp;n.dirty(),u.add(d.value)}return{status:n.value,value:u}}const s=[...i.data.values()].map((l,u)=&gt;o._parse(new Nn(i,l,i.path,u)));return i.common.async?Promise.all(s).then(l=&gt;a(l)):a(s)}min(t,n){return new vd({...this._def,minSize:{value:t,message:Y.toString(n)}})}max(t,n){return new vd({...this._def,maxSize:{value:t,message:Y.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};Il.create=(e,t)=&gt;new Il({valueType:e,minSize:null,maxSize:null,typeName:ne.ZodSet,...ae(t)});class Ui extends le{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==K.function)return V(n,{code:R.invalid_type,expected:K.function,received:n.parsedType}),te;function i(s,l){return xl({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,kl(),Qi].filter(u=&gt;!!u),issueData:{code:R.invalid_arguments,argumentsError:l}})}function r(s,l){return xl({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,kl(),Qi].filter(u=&gt;!!u),issueData:{code:R.invalid_return_type,returnTypeError:l}})}const o={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof eo){const s=this;return mt(async function(...l){const u=new un([]),d=await s._def.args.parseAsync(l,o).catch(v=&gt;{throw u.addIssue(i(l,v)),u}),h=await Reflect.apply(a,this,d);return await s._def.returns._def.type.parseAsync(h,o).catch(v=&gt;{throw u.addIssue(r(h,v)),u})})}else{const s=this;return mt(function(...l){const u=s._def.args.safeParse(l,o);if(!u.success)throw new un([i(l,u.error)]);const d=Reflect.apply(a,this,u.data),h=s._def.returns.safeParse(d,o);if(!h.success)throw new un([r(d,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ui({...this._def,args:xr.create(t).rest(Vr.create())})}returns(t){return new Ui({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,i){return new Ui({args:t||xr.create([]).rest(Vr.create()),returns:n||Vr.create(),typeName:ne.ZodFunction,...ae(i)})}}let ga=class extends le{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};ga.create=(e,t)=&gt;new ga({getter:e,typeName:ne.ZodLazy,...ae(t)});let va=class extends le{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return V(n,{received:n.data,code:R.invalid_literal,expected:this._def.value}),te}return{status:&quot;valid&quot;,value:t.data}}get value(){return this._def.value}};va.create=(e,t)=&gt;new va({value:e,typeName:ne.ZodLiteral,...ae(t)});function E_(e,t){return new Ha({values:e,typeName:ne.ZodEnum,...ae(t)})}let Ha=class yd extends le{_parse(t){if(typeof t.data!=&quot;string&quot;){const n=this._getOrReturnCtx(t),i=this._def.values;return V(n,{expected:me.joinValues(i),received:n.parsedType,code:R.invalid_type}),te}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),i=this._def.values;return V(n,{received:n.data,code:R.invalid_enum_value,options:i}),te}return mt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return yd.create(t,{...this._def,...n})}exclude(t,n=this._def){return yd.create(this.options.filter(i=&gt;!t.includes(i)),{...this._def,...n})}};Ha.create=E_;class ya extends le{_parse(t){const n=me.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==K.string&amp;&amp;i.parsedType!==K.number){const r=me.objectValues(n);return V(i,{expected:me.joinValues(r),received:i.parsedType,code:R.invalid_type}),te}if(this._cache||(this._cache=new Set(me.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const r=me.objectValues(n);return V(i,{received:i.data,code:R.invalid_enum_value,options:r}),te}return mt(t.data)}get enum(){return this._def.values}}ya.create=(e,t)=&gt;new ya({values:e,typeName:ne.ZodNativeEnum,...ae(t)});let eo=class extends le{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==K.promise&amp;&amp;n.common.async===!1)return V(n,{code:R.invalid_type,expected:K.promise,received:n.parsedType}),te;const i=n.parsedType===K.promise?n.data:Promise.resolve(n.data);return mt(i.then(r=&gt;this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}};eo.create=(e,t)=&gt;new eo({type:e,typeName:ne.ZodPromise,...ae(t)});class fn extends le{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ne.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:i}=this._processInputParams(t),r=this._def.effect||null,o={addIssue:a=&gt;{V(i,a),a.fatal?n.abort():n.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),r.type===&quot;preprocess&quot;){const a=r.transform(i.data,o);if(i.common.async)return Promise.resolve(a).then(async s=&gt;{if(n.value===&quot;aborted&quot;)return te;const l=await this._def.schema._parseAsync({data:s,path:i.path,parent:i});return l.status===&quot;aborted&quot;?te:l.status===&quot;dirty&quot;||n.value===&quot;dirty&quot;?Ii(l.value):l});{if(n.value===&quot;aborted&quot;)return te;const s=this._def.schema._parseSync({data:a,path:i.path,parent:i});return s.status===&quot;aborted&quot;?te:s.status===&quot;dirty&quot;||n.value===&quot;dirty&quot;?Ii(s.value):s}}if(r.type===&quot;refinement&quot;){const a=s=&gt;{const l=r.refinement(s,o);if(i.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error(&quot;Async refinement encountered during synchronous parse operation. Use .parseAsync instead.&quot;);return s};if(i.common.async===!1){const s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return s.status===&quot;aborted&quot;?te:(s.status===&quot;dirty&quot;&amp;&amp;n.dirty(),a(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=&gt;s.status===&quot;aborted&quot;?te:(s.status===&quot;dirty&quot;&amp;&amp;n.dirty(),a(s.value).then(()=&gt;({status:n.value,value:s.value}))))}if(r.type===&quot;transform&quot;)if(i.common.async===!1){const a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Xr(a))return te;const s=r.transform(a.value,o);if(s instanceof Promise)throw new Error(&quot;Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.&quot;);return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=&gt;Xr(a)?Promise.resolve(r.transform(a.value,o)).then(s=&gt;({status:n.value,value:s})):te);me.assertNever(r)}}fn.create=(e,t,n)=&gt;new fn({schema:e,typeName:ne.ZodEffects,effect:t,...ae(n)});fn.createWithPreprocess=(e,t,n)=&gt;new fn({schema:t,effect:{type:&quot;preprocess&quot;,transform:e},typeName:ne.ZodEffects,...ae(n)});let En=class extends le{_parse(t){return this._getType(t)===K.undefined?mt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};En.create=(e,t)=&gt;new En({innerType:e,typeName:ne.ZodOptional,...ae(t)});let br=class extends le{_parse(t){return this._getType(t)===K.null?mt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};br.create=(e,t)=&gt;new br({innerType:e,typeName:ne.ZodNullable,...ae(t)});let _a=class extends le{_parse(t){const{ctx:n}=this._processInputParams(t);let i=n.data;return n.parsedType===K.undefined&amp;&amp;(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};_a.create=(e,t)=&gt;new _a({innerType:e,typeName:ne.ZodDefault,defaultValue:typeof t.default==&quot;function&quot;?t.default:()=&gt;t.default,...ae(t)});let wa=class extends le{_parse(t){const{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return sa(r)?r.then(o=&gt;({status:&quot;valid&quot;,value:o.status===&quot;valid&quot;?o.value:this._def.catchValue({get error(){return new un(i.common.issues)},input:i.data})})):{status:&quot;valid&quot;,value:r.status===&quot;valid&quot;?r.value:this._def.catchValue({get error(){return new un(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};wa.create=(e,t)=&gt;new wa({innerType:e,typeName:ne.ZodCatch,catchValue:typeof t.catch==&quot;function&quot;?t.catch:()=&gt;t.catch,...ae(t)});let El=class extends le{_parse(t){if(this._getType(t)!==K.nan){const i=this._getOrReturnCtx(t);return V(i,{code:R.invalid_type,expected:K.nan,received:i.parsedType}),te}return{status:&quot;valid&quot;,value:t.data}}};El.create=e=&gt;new El({typeName:ne.ZodNaN,...ae(e)});const oI=Symbol(&quot;zod_brand&quot;);class Gf extends le{_parse(t){const{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ka extends le{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=&gt;{const o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status===&quot;aborted&quot;?te:o.status===&quot;dirty&quot;?(n.dirty(),Ii(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{const r=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return r.status===&quot;aborted&quot;?te:r.status===&quot;dirty&quot;?(n.dirty(),{status:&quot;dirty&quot;,value:r.value}):this._def.out._parseSync({data:r.value,path:i.path,parent:i})}}static create(t,n){return new Ka({in:t,out:n,typeName:ne.ZodPipeline})}}let ka=class extends le{_parse(t){const n=this._def.innerType._parse(t),i=r=&gt;(Xr(r)&amp;&amp;(r.value=Object.freeze(r.value)),r);return sa(n)?n.then(r=&gt;i(r)):i(n)}unwrap(){return this._def.innerType}};ka.create=(e,t)=&gt;new ka({innerType:e,typeName:ne.ZodReadonly,...ae(t)});function ag(e,t){const n=typeof e==&quot;function&quot;?e(t):typeof e==&quot;string&quot;?{message:e}:e;return typeof n==&quot;string&quot;?{message:n}:n}function yr(e,t={},n){return e?Yi.create().superRefine((i,r)=&gt;{const o=e(i);if(o instanceof Promise)return o.then(a=&gt;{if(!a){const s=ag(t,i),l=s.fatal??n??!0;r.addIssue({code:&quot;custom&quot;,...s,fatal:l})}});if(!o){const a=ag(t,i),s=a.fatal??n??!0;r.addIssue({code:&quot;custom&quot;,...a,fatal:s})}}):Yi.create()}const aI={object:qt.lazycreate};var ne;(function(e){e.ZodString=&quot;ZodString&quot;,e.ZodNumber=&quot;ZodNumber&quot;,e.ZodNaN=&quot;ZodNaN&quot;,e.ZodBigInt=&quot;ZodBigInt&quot;,e.ZodBoolean=&quot;ZodBoolean&quot;,e.ZodDate=&quot;ZodDate&quot;,e.ZodSymbol=&quot;ZodSymbol&quot;,e.ZodUndefined=&quot;ZodUndefined&quot;,e.ZodNull=&quot;ZodNull&quot;,e.ZodAny=&quot;ZodAny&quot;,e.ZodUnknown=&quot;ZodUnknown&quot;,e.ZodNever=&quot;ZodNever&quot;,e.ZodVoid=&quot;ZodVoid&quot;,e.ZodArray=&quot;ZodArray&quot;,e.ZodObject=&quot;ZodObject&quot;,e.ZodUnion=&quot;ZodUnion&quot;,e.ZodDiscriminatedUnion=&quot;ZodDiscriminatedUnion&quot;,e.ZodIntersection=&quot;ZodIntersection&quot;,e.ZodTuple=&quot;ZodTuple&quot;,e.ZodRecord=&quot;ZodRecord&quot;,e.ZodMap=&quot;ZodMap&quot;,e.ZodSet=&quot;ZodSet&quot;,e.ZodFunction=&quot;ZodFunction&quot;,e.ZodLazy=&quot;ZodLazy&quot;,e.ZodLiteral=&quot;ZodLiteral&quot;,e.ZodEnum=&quot;ZodEnum&quot;,e.ZodEffects=&quot;ZodEffects&quot;,e.ZodNativeEnum=&quot;ZodNativeEnum&quot;,e.ZodOptional=&quot;ZodOptional&quot;,e.ZodNullable=&quot;ZodNullable&quot;,e.ZodDefault=&quot;ZodDefault&quot;,e.ZodCatch=&quot;ZodCatch&quot;,e.ZodPromise=&quot;ZodPromise&quot;,e.ZodBranded=&quot;ZodBranded&quot;,e.ZodPipeline=&quot;ZodPipeline&quot;,e.ZodReadonly=&quot;ZodReadonly&quot;})(ne||(ne={}));const sI=(e,t={message:`Input not instance of ${e.name}`})=&gt;yr(n=&gt;n instanceof e,t),Ie=Xi.create,tn=la.create,lI=El.create,uI=ua.create,Sn=ca.create,cI=da.create,dI=bl.create,fI=fa.create,mI=ma.create,pI=Yi.create,Ja=Vr.create,hI=Gn.create,gI=Sl.create,N_=Yr.create,Ve=qt.create,vI=qt.strictCreate,qf=pa.create,yI=b_.create,_I=ha.create,wI=xr.create,_d=I_.create,kI=$l.create,xI=Il.create,j_=Ui.create,bI=ga.create,SI=va.create,Ga=Ha.create,$I=ya.create,II=eo.create,sg=fn.create,EI=En.create,NI=br.create,jI=fn.createWithPreprocess,OI=Ka.create,zI=()=&gt;Ie().optional(),TI=()=&gt;tn().optional(),CI=()=&gt;Sn().optional(),AI={string:e=&gt;Xi.create({...e,coerce:!0}),number:e=&gt;la.create({...e,coerce:!0}),boolean:e=&gt;ca.create({...e,coerce:!0}),bigint:e=&gt;ua.create({...e,coerce:!0}),date:e=&gt;da.create({...e,coerce:!0})},PI=te,zn=Object.freeze(Object.defineProperty({__proto__:null,BRAND:oI,DIRTY:Ii,EMPTY_PATH:D1,INVALID:te,NEVER:PI,OK:mt,ParseStatus:ut,Schema:le,ZodAny:Yi,ZodArray:Yr,ZodBigInt:ua,ZodBoolean:ca,ZodBranded:Gf,ZodCatch:wa,ZodDate:da,ZodDefault:_a,ZodDiscriminatedUnion:b_,ZodEffects:fn,ZodEnum:Ha,ZodError:un,get ZodFirstPartyTypeKind(){return ne},ZodFunction:Ui,ZodIntersection:ha,ZodIssueCode:R,ZodLazy:ga,ZodLiteral:va,ZodMap:$l,ZodNaN:El,ZodNativeEnum:ya,ZodNever:Gn,ZodNull:ma,ZodNullable:br,ZodNumber:la,ZodObject:qt,ZodOptional:En,ZodParsedType:K,ZodPipeline:Ka,ZodPromise:eo,ZodReadonly:ka,ZodRecord:I_,ZodSchema:le,ZodSet:Il,ZodString:Xi,ZodSymbol:bl,ZodTransformer:fn,ZodTuple:xr,ZodType:le,ZodUndefined:fa,ZodUnion:pa,ZodUnknown:Vr,ZodVoid:Sl,addIssueToContext:V,any:pI,array:N_,bigint:uI,boolean:Sn,coerce:AI,custom:yr,date:cI,datetimeRegex:k_,defaultErrorMap:Qi,discriminatedUnion:yI,effect:sg,enum:Ga,function:j_,getErrorMap:kl,getParsedType:Un,instanceof:sI,intersection:_I,isAborted:dd,isAsync:sa,isDirty:fd,isValid:Xr,late:aI,lazy:bI,literal:SI,makeIssue:xl,map:kI,nan:lI,nativeEnum:$I,never:hI,null:mI,nullable:NI,number:tn,object:Ve,get objectUtil(){return cd},oboolean:CI,onumber:TI,optional:EI,ostring:zI,pipeline:OI,preprocess:jI,promise:II,quotelessJson:P1,record:_d,set:xI,setErrorMap:U1,strictObject:vI,string:Ie,symbol:dI,transformer:sg,tuple:wI,undefined:fI,union:qf,unknown:Ja,get util(){return me},void:gI},Symbol.toStringTag,{value:&quot;Module&quot;}));function UI(e){let t=&quot;&quot;;const n=Object.entries(e);for(let i=0;i&lt;n.length;i++){const[r,o]=n[i];let a=!1,s;o==null?(a=!0,s=&quot;&quot;):s=o.toString(),s.length&gt;512&amp;&amp;r!==&quot;msg&quot;&amp;&amp;r!==&quot;error&quot;&amp;&amp;(s=`${s.slice(0,512)}...`);const l=s.indexOf(&quot; &quot;)&gt;-1||s.indexOf(&quot;=&quot;)&gt;-1,u=s.indexOf(&#39;&quot;&#39;)&gt;-1||s.indexOf(&quot;\\&quot;)&gt;-1;s=s.replace(/\n/g,&quot;\\n&quot;),u&amp;&amp;(s=s.replace(/[&quot;\\]/g,&quot;\\$&amp;&quot;)),(l||u)&amp;&amp;(s=`&quot;${s}&quot;`),s===&quot;&quot;&amp;&amp;!a&amp;&amp;(s=&#39;&quot;&quot;&#39;),t+=`${r}=${s}`,i!==n.length-1&amp;&amp;(t+=&quot; &quot;)}return t}function DI(e){const t=e.getUTCFullYear(),n=String(e.getUTCMonth()+1).padStart(2,&quot;0&quot;),i=String(e.getUTCDate()).padStart(2,&quot;0&quot;),r=String(e.getUTCHours()).padStart(2,&quot;0&quot;),o=String(e.getUTCMinutes()).padStart(2,&quot;0&quot;),a=String(e.getUTCSeconds()).padStart(2,&quot;0&quot;),s=String(e.getUTCMilliseconds()).padStart(3,&quot;0&quot;);return`${t}-${n}-${i}T${r}:${o}:${a}.${s}Z`}function RI(e){if(typeof e==&quot;string&quot;||typeof e==&quot;number&quot;||typeof e==&quot;bigint&quot;||typeof e==&quot;boolean&quot;||e===null||e===void 0)return e;if(e instanceof Error)return String(e);try{return JSON.stringify(e)}catch{return&quot;[cannot stringify]&quot;}}var wd,kd=new Map,O_=Ga([&quot;trace&quot;,&quot;debug&quot;,&quot;info&quot;,&quot;warn&quot;,&quot;error&quot;,&quot;fatal&quot;,&quot;silent&quot;]);function LI(e){const t=(Me(&quot;LOG_LEVEL&quot;)||&quot;warn&quot;).toString().toLowerCase(),n=O_.safeParse(t);return n.success?n.data:&quot;info&quot;}function ZI(){return Me(&quot;LOG_TARGET&quot;)===&quot;1&quot;}function vn(e,t){const n={};if(Me(&quot;LOG_TIMESTAMP&quot;)===&quot;1&quot;&amp;&amp;t.time){const r=typeof t.time==&quot;number&quot;?new Date(t.time):new Date;n.ts=DI(r)}n.level=e.toUpperCase(),t.target&amp;&amp;(n.target=t.target),t.msg&amp;&amp;(n.msg=t.msg);for(const[r,o]of Object.entries(t))r!==&quot;time&quot;&amp;&amp;r!==&quot;level&quot;&amp;&amp;r!==&quot;target&quot;&amp;&amp;r!==&quot;msg&quot;&amp;&amp;r!==&quot;pid&quot;&amp;&amp;r!==&quot;hostname&quot;&amp;&amp;(n[r]=RI(o));const i=UI(n);console.log(i)}async function MI(e){wd=C1({level:LI(),messageKey:&quot;msg&quot;,base:{},formatters:{level(t,n){return{level:n}}},timestamp:Me(&quot;LOG_TIMESTAMP&quot;)===&quot;1&quot;?A1.stdTimeFunctions.epochTime:!1,browser:{write:{fatal:vn.bind(null,&quot;fatal&quot;),error:vn.bind(null,&quot;error&quot;),warn:vn.bind(null,&quot;warn&quot;),info:vn.bind(null,&quot;info&quot;),debug:vn.bind(null,&quot;debug&quot;),trace:vn.bind(null,&quot;trace&quot;)}},hooks:{logMethod(t,n,i){const o={10:&quot;trace&quot;,20:&quot;debug&quot;,30:&quot;info&quot;,40:&quot;warn&quot;,50:&quot;error&quot;,60:&quot;fatal&quot;}[i]||&quot;info&quot;,a=Me(&quot;LOG_TIMESTAMP&quot;)===&quot;1&quot;?Date.now():void 0;if(t.length&gt;=2){const[s,l]=t;typeof s==&quot;object&quot;&amp;&amp;s!==null?vn(o,{...s,msg:l,time:a}):vn(o,{msg:String(s),time:a})}else if(t.length===1){const[s]=t;typeof s==&quot;object&quot;&amp;&amp;s!==null?vn(o,{...s,time:a}):vn(o,{msg:String(s),time:a})}}}}),kd.clear()}function FI(){return wd||MI(),wd}function Qf(e=&quot;default&quot;){const t=kd.get(e);if(t)return t;const n=FI(),i=ZI()?n.child({target:e}):n;return kd.set(e,i),i}let xd;try{xd=new TextDecoder}catch{}let Q,Wr,O=0;const BI=105,VI=57342,WI=57343,lg=57337,ug=6,ci={};let xo=11281e4,Tn=1681e4,de={},Le,Nl,jl=0,xa=0,qe,Mt,We=[],bd=[],_t,dt,Oo,cg={useRecords:!1,mapsAsObjects:!0},ba=!1,z_=2;try{new Function(&quot;&quot;)}catch{z_=1/0}class Sa{constructor(t){if(t&amp;&amp;((t.keyMap||t._keyMap)&amp;&amp;!t.useRecords&amp;&amp;(t.useRecords=!1,t.mapsAsObjects=!0),t.useRecords===!1&amp;&amp;t.mapsAsObjects===void 0&amp;&amp;(t.mapsAsObjects=!0),t.getStructures&amp;&amp;(t.getShared=t.getStructures),t.getShared&amp;&amp;!t.structures&amp;&amp;((t.structures=[]).uninitialized=!0),t.keyMap)){this.mapKey=new Map;for(let[n,i]of Object.entries(t.keyMap))this.mapKey.set(i,n)}Object.assign(this,t)}decodeKey(t){return this.keyMap&amp;&amp;this.mapKey.get(t)||t}encodeKey(t){return this.keyMap&amp;&amp;this.keyMap.hasOwnProperty(t)?this.keyMap[t]:t}encodeKeys(t){if(!this._keyMap)return t;let n=new Map;for(let[i,r]of Object.entries(t))n.set(this._keyMap.hasOwnProperty(i)?this._keyMap[i]:i,r);return n}decodeKeys(t){if(!this._keyMap||t.constructor.name!=&quot;Map&quot;)return t;if(!this._mapKey){this._mapKey=new Map;for(let[i,r]of Object.entries(this._keyMap))this._mapKey.set(r,i)}let n={};return t.forEach((i,r)=&gt;n[Ft(this._mapKey.has(r)?this._mapKey.get(r):r)]=i),n}mapDecode(t,n){let i=this.decode(t);if(this._keyMap)switch(i.constructor.name){case&quot;Array&quot;:return i.map(r=&gt;this.decodeKeys(r))}return i}decode(t,n){if(Q)return P_(()=&gt;(Ed(),this?this.decode(t,n):Sa.prototype.decode.call(cg,t,n)));Wr=n&gt;-1?n:t.length,O=0,xa=0,Nl=null,qe=null,Q=t;try{dt=t.dataView||(t.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength))}catch(i){throw Q=null,t instanceof Uint8Array?i:new Error(&quot;Source must be a Uint8Array or Buffer but was a &quot;+(t&amp;&amp;typeof t==&quot;object&quot;?t.constructor.name:typeof t))}if(this instanceof Sa){if(de=this,_t=this.sharedValues&amp;&amp;(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return Le=this.structures,Ss();(!Le||Le.length&gt;0)&amp;&amp;(Le=[])}else de=cg,(!Le||Le.length&gt;0)&amp;&amp;(Le=[]),_t=null;return Ss()}decodeMultiple(t,n){let i,r=0;try{let o=t.length;ba=!0;let a=this?this.decode(t,o):em.decode(t,o);if(n){if(n(a)===!1)return;for(;O&lt;o;)if(r=O,n(Ss())===!1)return}else{for(i=[a];O&lt;o;)r=O,i.push(Ss());return i}}catch(o){throw o.lastPosition=r,o.values=i,o}finally{ba=!1,Ed()}}}function Ss(){try{let e=fe();if(qe){if(O&gt;=qe.postBundlePosition){let t=new Error(&quot;Unexpected bundle position&quot;);throw t.incomplete=!0,t}O=qe.postBundlePosition,qe=null}if(O==Wr)Le=null,Q=null,Mt&amp;&amp;(Mt=null);else if(O&gt;Wr){let t=new Error(&quot;Unexpected end of CBOR data&quot;);throw t.incomplete=!0,t}else if(!ba)throw new Error(&quot;Data read, but end of buffer not reached&quot;);return e}catch(e){throw Ed(),(e instanceof RangeError||e.message.startsWith(&quot;Unexpected end of buffer&quot;))&amp;&amp;(e.incomplete=!0),e}}function fe(){let e=Q[O++],t=e&gt;&gt;5;if(e=e&amp;31,e&gt;23)switch(e){case 24:e=Q[O++];break;case 25:if(t==7)return GI();e=dt.getUint16(O),O+=2;break;case 26:if(t==7){let n=dt.getFloat32(O);if(de.useFloat32&gt;2){let i=Yf[(Q[O]&amp;127)&lt;&lt;1|Q[O+1]&gt;&gt;7];return O+=4,(i*n+(n&gt;0?.5:-.5)&gt;&gt;0)/i}return O+=4,n}e=dt.getUint32(O),O+=4;break;case 27:if(t==7){let n=dt.getFloat64(O);return O+=8,n}if(t&gt;1){if(dt.getUint32(O)&gt;0)throw new Error(&quot;JavaScript does not support arrays, maps, or strings with length over 4294967295&quot;);e=dt.getUint32(O+4)}else de.int64AsNumber?(e=dt.getUint32(O)*4294967296,e+=dt.getUint32(O+4)):e=dt.getBigUint64(O);O+=8;break;case 31:switch(t){case 2:case 3:throw new Error(&quot;Indefinite length not supported for byte or text strings&quot;);case 4:let n=[],i,r=0;for(;(i=fe())!=ci;){if(r&gt;=xo)throw new Error(`Array length exceeds ${xo}`);n[r++]=i}return t==4?n:t==3?n.join(&quot;&quot;):Buffer.concat(n);case 5:let o;if(de.mapsAsObjects){let a={},s=0;if(de.keyMap)for(;(o=fe())!=ci;){if(s++&gt;=Tn)throw new Error(`Property count exceeds ${Tn}`);a[Ft(de.decodeKey(o))]=fe()}else for(;(o=fe())!=ci;){if(s++&gt;=Tn)throw new Error(`Property count exceeds ${Tn}`);a[Ft(o)]=fe()}return a}else{Oo&amp;&amp;(de.mapsAsObjects=!0,Oo=!1);let a=new Map;if(de.keyMap){let s=0;for(;(o=fe())!=ci;){if(s++&gt;=Tn)throw new Error(`Map size exceeds ${Tn}`);a.set(de.decodeKey(o),fe())}}else{let s=0;for(;(o=fe())!=ci;){if(s++&gt;=Tn)throw new Error(`Map size exceeds ${Tn}`);a.set(o,fe())}}return a}case 7:return ci;default:throw new Error(&quot;Invalid major type for indefinite length &quot;+t)}default:throw new Error(&quot;Unknown token &quot;+e)}switch(t){case 0:return e;case 1:return~e;case 2:return JI(e);case 3:if(xa&gt;=O)return Nl.slice(O-jl,(O+=e)-jl);if(xa==0&amp;&amp;Wr&lt;140&amp;&amp;e&lt;32){let r=e&lt;16?T_(e):KI(e);if(r!=null)return r}return HI(e);case 4:if(e&gt;=xo)throw new Error(`Array length exceeds ${xo}`);let n=new Array(e);for(let r=0;r&lt;e;r++)n[r]=fe();return n;case 5:if(e&gt;=Tn)throw new Error(`Map size exceeds ${xo}`);if(de.mapsAsObjects){let r={};if(de.keyMap)for(let o=0;o&lt;e;o++)r[Ft(de.decodeKey(fe()))]=fe();else for(let o=0;o&lt;e;o++)r[Ft(fe())]=fe();return r}else{Oo&amp;&amp;(de.mapsAsObjects=!0,Oo=!1);let r=new Map;if(de.keyMap)for(let o=0;o&lt;e;o++)r.set(de.decodeKey(fe()),fe());else for(let o=0;o&lt;e;o++)r.set(fe(),fe());return r}case 6:if(e&gt;=lg){let r=Le[e&amp;8191];if(r)return r.read||(r.read=Sd(r)),r.read();if(e&lt;65536){if(e==WI){let o=Ei(),a=fe(),s=fe();Id(a,s);let l={};if(de.keyMap)for(let u=2;u&lt;o;u++){let d=de.decodeKey(s[u-2]);l[Ft(d)]=fe()}else for(let u=2;u&lt;o;u++){let d=s[u-2];l[Ft(d)]=fe()}return l}else if(e==VI){let o=Ei(),a=fe();for(let s=2;s&lt;o;s++)Id(a++,fe());return fe()}else if(e==lg)return tE();if(de.getShared&amp;&amp;(Xf(),r=Le[e&amp;8191],r))return r.read||(r.read=Sd(r)),r.read()}}let i=We[e];if(i)return i.handlesRead?i(fe):i(fe());{let r=fe();for(let o=0;o&lt;bd.length;o++){let a=bd[o](e,r);if(a!==void 0)return a}return new ei(r,e)}case 7:switch(e){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case 31:default:let r=(_t||Cr())[e];if(r!==void 0)return r;throw new Error(&quot;Unknown token &quot;+e)}default:if(isNaN(e)){let r=new Error(&quot;Unexpected end of CBOR data&quot;);throw r.incomplete=!0,r}throw new Error(&quot;Unknown CBOR token &quot;+e)}}const dg=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function Sd(e){if(!e)throw new Error(&quot;Structure is required in record definition&quot;);function t(){let n=Q[O++];if(n=n&amp;31,n&gt;23)switch(n){case 24:n=Q[O++];break;case 25:n=dt.getUint16(O),O+=2;break;case 26:n=dt.getUint32(O),O+=4;break;default:throw new Error(&quot;Expected array header, but got &quot;+Q[O-1])}let i=this.compiledReader;for(;i;){if(i.propertyCount===n)return i(fe);i=i.next}if(this.slowReads++&gt;=z_){let o=this.length==n?this:this.slice(0,n);return i=de.keyMap?new Function(&quot;r&quot;,&quot;return {&quot;+o.map(a=&gt;de.decodeKey(a)).map(a=&gt;dg.test(a)?Ft(a)+&quot;:r()&quot;:&quot;[&quot;+JSON.stringify(a)+&quot;]:r()&quot;).join(&quot;,&quot;)+&quot;}&quot;):new Function(&quot;r&quot;,&quot;return {&quot;+o.map(a=&gt;dg.test(a)?Ft(a)+&quot;:r()&quot;:&quot;[&quot;+JSON.stringify(a)+&quot;]:r()&quot;).join(&quot;,&quot;)+&quot;}&quot;),this.compiledReader&amp;&amp;(i.next=this.compiledReader),i.propertyCount=n,this.compiledReader=i,i(fe)}let r={};if(de.keyMap)for(let o=0;o&lt;n;o++)r[Ft(de.decodeKey(this[o]))]=fe();else for(let o=0;o&lt;n;o++)r[Ft(this[o])]=fe();return r}return e.slowReads=0,t}function Ft(e){if(typeof e==&quot;string&quot;)return e===&quot;__proto__&quot;?&quot;__proto_&quot;:e;if(typeof e==&quot;number&quot;||typeof e==&quot;boolean&quot;||typeof e==&quot;bigint&quot;)return e.toString();if(e==null)return e+&quot;&quot;;throw new Error(&quot;Invalid property name type &quot;+typeof e)}let HI=$d;function $d(e){let t;if(e&lt;16&amp;&amp;(t=T_(e)))return t;if(e&gt;64&amp;&amp;xd)return xd.decode(Q.subarray(O,O+=e));const n=O+e,i=[];for(t=&quot;&quot;;O&lt;n;){const r=Q[O++];if(!(r&amp;128))i.push(r);else if((r&amp;224)===192){const o=Q[O++]&amp;63;i.push((r&amp;31)&lt;&lt;6|o)}else if((r&amp;240)===224){const o=Q[O++]&amp;63,a=Q[O++]&amp;63;i.push((r&amp;31)&lt;&lt;12|o&lt;&lt;6|a)}else if((r&amp;248)===240){const o=Q[O++]&amp;63,a=Q[O++]&amp;63,s=Q[O++]&amp;63;let l=(r&amp;7)&lt;&lt;18|o&lt;&lt;12|a&lt;&lt;6|s;l&gt;65535&amp;&amp;(l-=65536,i.push(l&gt;&gt;&gt;10&amp;1023|55296),l=56320|l&amp;1023),i.push(l)}else i.push(r);i.length&gt;=4096&amp;&amp;(t+=Qe.apply(String,i),i.length=0)}return i.length&gt;0&amp;&amp;(t+=Qe.apply(String,i)),t}let Qe=String.fromCharCode;function KI(e){let t=O,n=new Array(e);for(let i=0;i&lt;e;i++){const r=Q[O++];if((r&amp;128)&gt;0){O=t;return}n[i]=r}return Qe.apply(String,n)}function T_(e){if(e&lt;4)if(e&lt;2){if(e===0)return&quot;&quot;;{let t=Q[O++];if((t&amp;128)&gt;1){O-=1;return}return Qe(t)}}else{let t=Q[O++],n=Q[O++];if((t&amp;128)&gt;0||(n&amp;128)&gt;0){O-=2;return}if(e&lt;3)return Qe(t,n);let i=Q[O++];if((i&amp;128)&gt;0){O-=3;return}return Qe(t,n,i)}else{let t=Q[O++],n=Q[O++],i=Q[O++],r=Q[O++];if((t&amp;128)&gt;0||(n&amp;128)&gt;0||(i&amp;128)&gt;0||(r&amp;128)&gt;0){O-=4;return}if(e&lt;6){if(e===4)return Qe(t,n,i,r);{let o=Q[O++];if((o&amp;128)&gt;0){O-=5;return}return Qe(t,n,i,r,o)}}else if(e&lt;8){let o=Q[O++],a=Q[O++];if((o&amp;128)&gt;0||(a&amp;128)&gt;0){O-=6;return}if(e&lt;7)return Qe(t,n,i,r,o,a);let s=Q[O++];if((s&amp;128)&gt;0){O-=7;return}return Qe(t,n,i,r,o,a,s)}else{let o=Q[O++],a=Q[O++],s=Q[O++],l=Q[O++];if((o&amp;128)&gt;0||(a&amp;128)&gt;0||(s&amp;128)&gt;0||(l&amp;128)&gt;0){O-=8;return}if(e&lt;10){if(e===8)return Qe(t,n,i,r,o,a,s,l);{let u=Q[O++];if((u&amp;128)&gt;0){O-=9;return}return Qe(t,n,i,r,o,a,s,l,u)}}else if(e&lt;12){let u=Q[O++],d=Q[O++];if((u&amp;128)&gt;0||(d&amp;128)&gt;0){O-=10;return}if(e&lt;11)return Qe(t,n,i,r,o,a,s,l,u,d);let h=Q[O++];if((h&amp;128)&gt;0){O-=11;return}return Qe(t,n,i,r,o,a,s,l,u,d,h)}else{let u=Q[O++],d=Q[O++],h=Q[O++],g=Q[O++];if((u&amp;128)&gt;0||(d&amp;128)&gt;0||(h&amp;128)&gt;0||(g&amp;128)&gt;0){O-=12;return}if(e&lt;14){if(e===12)return Qe(t,n,i,r,o,a,s,l,u,d,h,g);{let v=Q[O++];if((v&amp;128)&gt;0){O-=13;return}return Qe(t,n,i,r,o,a,s,l,u,d,h,g,v)}}else{let v=Q[O++],y=Q[O++];if((v&amp;128)&gt;0||(y&amp;128)&gt;0){O-=14;return}if(e&lt;15)return Qe(t,n,i,r,o,a,s,l,u,d,h,g,v,y);let E=Q[O++];if((E&amp;128)&gt;0){O-=15;return}return Qe(t,n,i,r,o,a,s,l,u,d,h,g,v,y,E)}}}}}function JI(e){return de.copyBuffers?Uint8Array.prototype.slice.call(Q,O,O+=e):Q.subarray(O,O+=e)}let C_=new Float32Array(1),$s=new Uint8Array(C_.buffer,0,4);function GI(){let e=Q[O++],t=Q[O++],n=(e&amp;127)&gt;&gt;2;if(n===31)return t||e&amp;3?NaN:e&amp;128?-1/0:1/0;if(n===0){let i=((e&amp;3)&lt;&lt;8|t)/16777216;return e&amp;128?-i:i}return $s[3]=e&amp;128|(n&gt;&gt;1)+56,$s[2]=(e&amp;7)&lt;&lt;5|t&gt;&gt;3,$s[1]=t&lt;&lt;5,$s[0]=0,C_[0]}new Array(4096);class ei{constructor(t,n){this.value=t,this.tag=n}}We[0]=e=&gt;new Date(e);We[1]=e=&gt;new Date(Math.round(e*1e3));We[2]=e=&gt;{let t=BigInt(0);for(let n=0,i=e.byteLength;n&lt;i;n++)t=BigInt(e[n])+(t&lt;&lt;BigInt(8));return t};We[3]=e=&gt;BigInt(-1)-We[2](e);We[4]=e=&gt;+(e[1]+&quot;e&quot;+e[0]);We[5]=e=&gt;e[1]*Math.exp(e[0]*Math.log(2));const Id=(e,t)=&gt;{e=e-57344;let n=Le[e];n&amp;&amp;n.isShared&amp;&amp;((Le.restoreStructures||(Le.restoreStructures=[]))[e]=n),Le[e]=t,t.read=Sd(t)};We[BI]=e=&gt;{let t=e.length,n=e[1];Id(e[0],n);let i={};for(let r=2;r&lt;t;r++){let o=n[r-2];i[Ft(o)]=e[r]}return i};We[14]=e=&gt;qe?qe[0].slice(qe.position0,qe.position0+=e):new ei(e,14);We[15]=e=&gt;qe?qe[1].slice(qe.position1,qe.position1+=e):new ei(e,15);let qI={Error,RegExp};We[27]=e=&gt;(qI[e[0]]||Error)(e[1],e[2]);const A_=e=&gt;{if(Q[O++]!=132){let n=new Error(&quot;Packed values structure must be followed by a 4 element array&quot;);throw Q.length&lt;O&amp;&amp;(n.incomplete=!0),n}let t=e();if(!t||!t.length){let n=new Error(&quot;Packed values structure must be followed by a 4 element array&quot;);throw n.incomplete=!0,n}return _t=_t?t.concat(_t.slice(t.length)):t,_t.prefixes=e(),_t.suffixes=e(),e()};A_.handlesRead=!0;We[51]=A_;We[ug]=e=&gt;{if(!_t)if(de.getShared)Xf();else return new ei(e,ug);if(typeof e==&quot;number&quot;)return _t[16+(e&gt;=0?2*e:-2*e-1)];let t=new Error(&quot;No support for non-integer packed references yet&quot;);throw e===void 0&amp;&amp;(t.incomplete=!0),t};We[28]=e=&gt;{Mt||(Mt=new Map,Mt.id=0);let t=Mt.id++,n=O,i=Q[O],r;i&gt;&gt;5==4?r=[]:r={};let o={target:r};Mt.set(t,o);let a=e();return o.used?(Object.getPrototypeOf(r)!==Object.getPrototypeOf(a)&amp;&amp;(O=n,r=a,Mt.set(t,{target:r}),a=e()),Object.assign(r,a)):(o.target=a,a)};We[28].handlesRead=!0;We[29]=e=&gt;{let t=Mt.get(e);return t.used=!0,t.target};We[258]=e=&gt;new Set(e);(We[259]=e=&gt;(de.mapsAsObjects&amp;&amp;(de.mapsAsObjects=!1,Oo=!0),e())).handlesRead=!0;function di(e,t){return typeof e==&quot;string&quot;?e+t:e instanceof Array?e.concat(t):Object.assign({},e,t)}function Cr(){if(!_t)if(de.getShared)Xf();else throw new Error(&quot;No packed values available&quot;);return _t}const QI=1399353956;bd.push((e,t)=&gt;{if(e&gt;=225&amp;&amp;e&lt;=255)return di(Cr().prefixes[e-224],t);if(e&gt;=28704&amp;&amp;e&lt;=32767)return di(Cr().prefixes[e-28672],t);if(e&gt;=1879052288&amp;&amp;e&lt;=2147483647)return di(Cr().prefixes[e-1879048192],t);if(e&gt;=216&amp;&amp;e&lt;=223)return di(t,Cr().suffixes[e-216]);if(e&gt;=27647&amp;&amp;e&lt;=28671)return di(t,Cr().suffixes[e-27639]);if(e&gt;=1811940352&amp;&amp;e&lt;=1879048191)return di(t,Cr().suffixes[e-1811939328]);if(e==QI)return{packedValues:_t,structures:Le.slice(0),version:t};if(e==55799)return t});const XI=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,fg=[Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,typeof BigUint64Array&gt;&quot;u&quot;?{name:&quot;BigUint64Array&quot;}:BigUint64Array,Int8Array,Int16Array,Int32Array,typeof BigInt64Array&gt;&quot;u&quot;?{name:&quot;BigInt64Array&quot;}:BigInt64Array,Float32Array,Float64Array],YI=[64,68,69,70,71,72,77,78,79,85,86];for(let e=0;e&lt;fg.length;e++)eE(fg[e],YI[e]);function eE(e,t){let n=&quot;get&quot;+e.name.slice(0,-5),i;typeof e==&quot;function&quot;?i=e.BYTES_PER_ELEMENT:e=null;for(let r=0;r&lt;2;r++){if(!r&amp;&amp;i==1)continue;let o=i==2?1:i==4?2:i==8?3:0;We[r?t:t-4]=i==1||r==XI?a=&gt;{if(!e)throw new Error(&quot;Could not find typed array for code &quot;+t);return!de.copyBuffers&amp;&amp;(i===1||i===2&amp;&amp;!(a.byteOffset&amp;1)||i===4&amp;&amp;!(a.byteOffset&amp;3)||i===8&amp;&amp;!(a.byteOffset&amp;7))?new e(a.buffer,a.byteOffset,a.byteLength&gt;&gt;o):new e(Uint8Array.prototype.slice.call(a,0).buffer)}:a=&gt;{if(!e)throw new Error(&quot;Could not find typed array for code &quot;+t);let s=new DataView(a.buffer,a.byteOffset,a.byteLength),l=a.length&gt;&gt;o,u=new e(l),d=s[n];for(let h=0;h&lt;l;h++)u[h]=d.call(s,h&lt;&lt;o,r);return u}}}function tE(){let e=Ei(),t=O+fe();for(let i=2;i&lt;e;i++){let r=Ei();O+=r}let n=O;return O=t,qe=[$d(Ei()),$d(Ei())],qe.position0=0,qe.position1=0,qe.postBundlePosition=O,O=n,fe()}function Ei(){let e=Q[O++]&amp;31;if(e&gt;23)switch(e){case 24:e=Q[O++];break;case 25:e=dt.getUint16(O),O+=2;break;case 26:e=dt.getUint32(O),O+=4;break}return e}function Xf(){if(de.getShared){let e=P_(()=&gt;(Q=null,de.getShared()))||{},t=e.structures||[];de.sharedVersion=e.version,_t=de.sharedValues=e.packedValues,Le===!0?de.structures=Le=t:Le.splice.apply(Le,[0,t.length].concat(t))}}function P_(e){let t=Wr,n=O,i=jl,r=xa,o=Nl,a=Mt,s=qe,l=new Uint8Array(Q.slice(0,Wr)),u=Le,d=de,h=ba,g=e();return Wr=t,O=n,jl=i,xa=r,Nl=o,Mt=a,qe=s,Q=l,ba=h,Le=u,de=d,dt=new DataView(Q.buffer,Q.byteOffset,Q.byteLength),g}function Ed(){Q=null,Mt=null,Le=null}const Yf=new Array(147);for(let e=0;e&lt;256;e++)Yf[e]=+(&quot;1e&quot;+Math.floor(45.15-e*.30103));let em=new Sa({useRecords:!1});const $a=em.decode;em.decodeMultiple;let Vs;try{Vs=new TextEncoder}catch{}let Nd,U_;const lu=typeof globalThis==&quot;object&quot;&amp;&amp;globalThis.Buffer,qa=typeof lu&lt;&quot;u&quot;,oc=qa?lu.allocUnsafeSlow:Uint8Array,mg=qa?lu:Uint8Array,pg=256,hg=qa?4294967296:2144337920;let ac,I,$e,_=0,Xn,Ke=null;const nE=61440,rE=/[\u0080-\uFFFF]/,St=Symbol(&quot;record-id&quot;);class iE extends Sa{constructor(t){super(t),this.offset=0;let n,i,r,o,a;t=t||{};let s=mg.prototype.utf8Write?function(b,W,P){return I.utf8Write(b,W,P)}:Vs&amp;&amp;Vs.encodeInto?function(b,W){return Vs.encodeInto(b,I.subarray(W)).written}:!1,l=this,u=t.structures||t.saveStructures,d=t.maxSharedStructures;if(d==null&amp;&amp;(d=u?128:0),d&gt;8190)throw new Error(&quot;Maximum maxSharedStructure is 8190&quot;);let h=t.sequential;h&amp;&amp;(d=0),this.structures||(this.structures=[]),this.saveStructures&amp;&amp;(this.saveShared=this.saveStructures);let g,v,y=t.sharedValues,E;if(y){E=Object.create(null);for(let b=0,W=y.length;b&lt;W;b++)E[y[b]]=b}let N=[],p=0,f=0;this.mapEncode=function(b,W){if(this._keyMap&amp;&amp;!this._mapped)switch(b.constructor.name){case&quot;Array&quot;:b=b.map(P=&gt;this.encodeKeys(P));break}return this.encode(b,W)},this.encode=function(b,W){if(I||(I=new oc(8192),$e=new DataView(I.buffer,0,8192),_=0),Xn=I.length-10,Xn-_&lt;2048?(I=new oc(I.length),$e=new DataView(I.buffer,0,I.length),Xn=I.length-10,_=0):W===yg&amp;&amp;(_=_+7&amp;2147483640),n=_,l.useSelfDescribedHeader&amp;&amp;($e.setUint32(_,3654940416),_+=3),a=l.structuredClone?new Map:null,l.bundleStrings&amp;&amp;typeof b!=&quot;string&quot;?(Ke=[],Ke.size=1/0):Ke=null,i=l.structures,i){if(i.uninitialized){let D=l.getShared()||{};l.structures=i=D.structures||[],l.sharedVersion=D.version;let U=l.sharedValues=D.packedValues;if(U){E={};for(let z=0,M=U.length;z&lt;M;z++)E[U[z]]=z}}let P=i.length;if(P&gt;d&amp;&amp;!h&amp;&amp;(P=d),!i.transitions){i.transitions=Object.create(null);for(let D=0;D&lt;P;D++){let U=i[D];if(!U)continue;let z,M=i.transitions;for(let F=0,X=U.length;F&lt;X;F++){M[St]===void 0&amp;&amp;(M[St]=D);let ee=U[F];z=M[ee],z||(z=M[ee]=Object.create(null)),M=z}M[St]=D|1048576}}h||(i.nextId=P)}if(r&amp;&amp;(r=!1),o=i||[],v=E,t.pack){let P=new Map;if(P.values=[],P.encoder=l,P.maxValues=t.maxPrivatePackedValues||(E?16:1/0),P.objectMap=E||!1,P.samplingPackedValues=g,Ws(b,P),P.values.length&gt;0){I[_++]=216,I[_++]=51,wn(4);let D=P.values;m(D),wn(0),wn(0),v=Object.create(E||null);for(let U=0,z=D.length;U&lt;z;U++)v[D[U]]=U}}ac=W&amp;lc;try{if(ac)return;if(m(b),Ke&amp;&amp;vg(n,m),l.offset=_,a&amp;&amp;a.idsToInsert){_+=a.idsToInsert.length*2,_&gt;Xn&amp;&amp;$(_),l.offset=_;let P=sE(I.subarray(n,_),a.idsToInsert);return a=null,P}return W&amp;yg?(I.start=n,I.end=_,I):I.subarray(n,_)}finally{if(i){if(f&lt;10&amp;&amp;f++,i.length&gt;d&amp;&amp;(i.length=d),p&gt;1e4)i.transitions=null,f=0,p=0,N.length&gt;0&amp;&amp;(N=[]);else if(N.length&gt;0&amp;&amp;!h){for(let P=0,D=N.length;P&lt;D;P++)N[P][St]=void 0;N=[]}}if(r&amp;&amp;l.saveShared){l.structures.length&gt;d&amp;&amp;(l.structures=l.structures.slice(0,d));let P=I.subarray(n,_);return l.updateSharedData()===!1?l.encode(b):P}W&amp;lE&amp;&amp;(_=n)}},this.findCommonStringsToPack=()=&gt;(g=new Map,E||(E=Object.create(null)),b=&gt;{let W=b&amp;&amp;b.threshold||4,P=this.pack?b.maxPrivatePackedValues||16:0;y||(y=this.sharedValues=[]);for(let[D,U]of g)U.count&gt;W&amp;&amp;(E[D]=P++,y.push(D),r=!0);for(;this.saveShared&amp;&amp;this.updateSharedData()===!1;);g=null});const m=b=&gt;{_&gt;Xn&amp;&amp;(I=$(_));var W=typeof b,P;if(W===&quot;string&quot;){if(v){let M=v[b];if(M&gt;=0){M&lt;16?I[_++]=M+224:(I[_++]=198,M&amp;1?m(15-M&gt;&gt;1):m(M-16&gt;&gt;1));return}else if(g&amp;&amp;!t.pack){let F=g.get(b);F?F.count++:g.set(b,{count:1})}}let D=b.length;if(Ke&amp;&amp;D&gt;=4&amp;&amp;D&lt;1024){if((Ke.size+=D)&gt;nE){let F,X=(Ke[0]?Ke[0].length*3+Ke[1].length:0)+10;_+X&gt;Xn&amp;&amp;(I=$(_+X)),I[_++]=217,I[_++]=223,I[_++]=249,I[_++]=Ke.position?132:130,I[_++]=26,F=_-n,_+=4,Ke.position&amp;&amp;vg(n,m),Ke=[&quot;&quot;,&quot;&quot;],Ke.size=0,Ke.position=F}let M=rE.test(b);Ke[M?0:1]+=b,I[_++]=M?206:207,m(D);return}let U;D&lt;32?U=1:D&lt;256?U=2:D&lt;65536?U=3:U=5;let z=D*3;if(_+z&gt;Xn&amp;&amp;(I=$(_+z)),D&lt;64||!s){let M,F,X,ee=_+U;for(M=0;M&lt;D;M++)F=b.charCodeAt(M),F&lt;128?I[ee++]=F:F&lt;2048?(I[ee++]=F&gt;&gt;6|192,I[ee++]=F&amp;63|128):(F&amp;64512)===55296&amp;&amp;((X=b.charCodeAt(M+1))&amp;64512)===56320?(F=65536+((F&amp;1023)&lt;&lt;10)+(X&amp;1023),M++,I[ee++]=F&gt;&gt;18|240,I[ee++]=F&gt;&gt;12&amp;63|128,I[ee++]=F&gt;&gt;6&amp;63|128,I[ee++]=F&amp;63|128):(I[ee++]=F&gt;&gt;12|224,I[ee++]=F&gt;&gt;6&amp;63|128,I[ee++]=F&amp;63|128);P=ee-_-U}else P=s(b,_+U,z);P&lt;24?I[_++]=96|P:P&lt;256?(U&lt;2&amp;&amp;I.copyWithin(_+2,_+1,_+1+P),I[_++]=120,I[_++]=P):P&lt;65536?(U&lt;3&amp;&amp;I.copyWithin(_+3,_+2,_+2+P),I[_++]=121,I[_++]=P&gt;&gt;8,I[_++]=P&amp;255):(U&lt;5&amp;&amp;I.copyWithin(_+5,_+3,_+3+P),I[_++]=122,$e.setUint32(_,P),_+=4),_+=P}else if(W===&quot;number&quot;)if(!this.alwaysUseFloat&amp;&amp;b&gt;&gt;&gt;0===b)b&lt;24?I[_++]=b:b&lt;256?(I[_++]=24,I[_++]=b):b&lt;65536?(I[_++]=25,I[_++]=b&gt;&gt;8,I[_++]=b&amp;255):(I[_++]=26,$e.setUint32(_,b),_+=4);else if(!this.alwaysUseFloat&amp;&amp;b&gt;&gt;0===b)b&gt;=-24?I[_++]=31-b:b&gt;=-256?(I[_++]=56,I[_++]=~b):b&gt;=-65536?(I[_++]=57,$e.setUint16(_,~b),_+=2):(I[_++]=58,$e.setUint32(_,~b),_+=4);else{let D;if((D=this.useFloat32)&gt;0&amp;&amp;b&lt;4294967296&amp;&amp;b&gt;=-2147483648){I[_++]=250,$e.setFloat32(_,b);let U;if(D&lt;4||(U=b*Yf[(I[_]&amp;127)&lt;&lt;1|I[_+1]&gt;&gt;7])&gt;&gt;0===U){_+=4;return}else _--}I[_++]=251,$e.setFloat64(_,b),_+=8}else if(W===&quot;object&quot;)if(!b)I[_++]=246;else{if(a){let U=a.get(b);if(U){if(I[_++]=216,I[_++]=29,I[_++]=25,!U.references){let z=a.idsToInsert||(a.idsToInsert=[]);U.references=[],z.push(U)}U.references.push(_-n),_+=2;return}else a.set(b,{offset:_-n})}let D=b.constructor;if(D===Object)k(b);else if(D===Array){P=b.length,P&lt;24?I[_++]=128|P:wn(P);for(let U=0;U&lt;P;U++)m(b[U])}else if(D===Map)if((this.mapsAsObjects?this.useTag259ForMaps!==!1:this.useTag259ForMaps)&amp;&amp;(I[_++]=217,I[_++]=1,I[_++]=3),P=b.size,P&lt;24?I[_++]=160|P:P&lt;256?(I[_++]=184,I[_++]=P):P&lt;65536?(I[_++]=185,I[_++]=P&gt;&gt;8,I[_++]=P&amp;255):(I[_++]=186,$e.setUint32(_,P),_+=4),l.keyMap)for(let[U,z]of b)m(l.encodeKey(U)),m(z);else for(let[U,z]of b)m(U),m(z);else{for(let U=0,z=Nd.length;U&lt;z;U++){let M=U_[U];if(b instanceof M){let F=Nd[U],X=F.tag;X==null&amp;&amp;(X=F.getTag&amp;&amp;F.getTag.call(this,b)),X&lt;24?I[_++]=192|X:X&lt;256?(I[_++]=216,I[_++]=X):X&lt;65536?(I[_++]=217,I[_++]=X&gt;&gt;8,I[_++]=X&amp;255):X&gt;-1&amp;&amp;(I[_++]=218,$e.setUint32(_,X),_+=4),F.encode.call(this,b,m,$);return}}if(b[Symbol.iterator]){if(ac){let U=new Error(&quot;Iterable should be serialized as iterator&quot;);throw U.iteratorNotHandled=!0,U}I[_++]=159;for(let U of b)m(U);I[_++]=255;return}if(b[Symbol.asyncIterator]||sc(b)){let U=new Error(&quot;Iterable/blob should be serialized as iterator&quot;);throw U.iteratorNotHandled=!0,U}if(this.useToJSON&amp;&amp;b.toJSON){const U=b.toJSON();if(U!==b)return m(U)}k(b)}}else if(W===&quot;boolean&quot;)I[_++]=b?245:244;else if(W===&quot;bigint&quot;){if(b&lt;BigInt(1)&lt;&lt;BigInt(64)&amp;&amp;b&gt;=0)I[_++]=27,$e.setBigUint64(_,b);else if(b&gt;-(BigInt(1)&lt;&lt;BigInt(64))&amp;&amp;b&lt;0)I[_++]=59,$e.setBigUint64(_,-b-BigInt(1));else if(this.largeBigIntToFloat)I[_++]=251,$e.setFloat64(_,Number(b));else{b&gt;=BigInt(0)?I[_++]=194:(I[_++]=195,b=BigInt(-1)-b);let D=[];for(;b;)D.push(Number(b&amp;BigInt(255))),b&gt;&gt;=BigInt(8);jd(new Uint8Array(D.reverse()),$);return}_+=8}else if(W===&quot;undefined&quot;)I[_++]=247;else throw new Error(&quot;Unknown type: &quot;+W)},k=this.useRecords===!1?this.variableMapSize?b=&gt;{let W=Object.keys(b),P=Object.values(b),D=W.length;if(D&lt;24?I[_++]=160|D:D&lt;256?(I[_++]=184,I[_++]=D):D&lt;65536?(I[_++]=185,I[_++]=D&gt;&gt;8,I[_++]=D&amp;255):(I[_++]=186,$e.setUint32(_,D),_+=4),l.keyMap)for(let U=0;U&lt;D;U++)m(l.encodeKey(W[U])),m(P[U]);else for(let U=0;U&lt;D;U++)m(W[U]),m(P[U])}:b=&gt;{I[_++]=185;let W=_-n;_+=2;let P=0;if(l.keyMap)for(let D in b)(typeof b.hasOwnProperty!=&quot;function&quot;||b.hasOwnProperty(D))&amp;&amp;(m(l.encodeKey(D)),m(b[D]),P++);else for(let D in b)(typeof b.hasOwnProperty!=&quot;function&quot;||b.hasOwnProperty(D))&amp;&amp;(m(D),m(b[D]),P++);I[W+++n]=P&gt;&gt;8,I[W+n]=P&amp;255}:(b,W)=&gt;{let P,D=o.transitions||(o.transitions=Object.create(null)),U=0,z=0,M,F;if(this.keyMap){F=Object.keys(b).map(ee=&gt;this.encodeKey(ee)),z=F.length;for(let ee=0;ee&lt;z;ee++){let Er=F[ee];P=D[Er],P||(P=D[Er]=Object.create(null),U++),D=P}}else for(let ee in b)(typeof b.hasOwnProperty!=&quot;function&quot;||b.hasOwnProperty(ee))&amp;&amp;(P=D[ee],P||(D[St]&amp;1048576&amp;&amp;(M=D[St]&amp;65535),P=D[ee]=Object.create(null),U++),D=P,z++);let X=D[St];if(X!==void 0)X&amp;=65535,I[_++]=217,I[_++]=X&gt;&gt;8|224,I[_++]=X&amp;255;else if(F||(F=D.__keys__||(D.__keys__=Object.keys(b))),M===void 0?(X=o.nextId++,X||(X=0,o.nextId=1),X&gt;=pg&amp;&amp;(o.nextId=(X=d)+1)):X=M,o[X]=F,X&lt;d){I[_++]=217,I[_++]=X&gt;&gt;8|224,I[_++]=X&amp;255,D=o.transitions;for(let ee=0;ee&lt;z;ee++)(D[St]===void 0||D[St]&amp;1048576)&amp;&amp;(D[St]=X),D=D[F[ee]];D[St]=X|1048576,r=!0}else{if(D[St]=X,$e.setUint32(_,3655335680),_+=3,U&amp;&amp;(p+=f*U),N.length&gt;=pg-d&amp;&amp;(N.shift()[St]=void 0),N.push(D),wn(z+2),m(57344+X),m(F),W)return;for(let ee in b)(typeof b.hasOwnProperty!=&quot;function&quot;||b.hasOwnProperty(ee))&amp;&amp;m(b[ee]);return}if(z&lt;24?I[_++]=128|z:wn(z),!W)for(let ee in b)(typeof b.hasOwnProperty!=&quot;function&quot;||b.hasOwnProperty(ee))&amp;&amp;m(b[ee])},$=b=&gt;{let W;if(b&gt;16777216){if(b-n&gt;hg)throw new Error(&quot;Encoded buffer would be larger than maximum buffer size&quot;);W=Math.min(hg,Math.round(Math.max((b-n)*(b&gt;67108864?1.25:2),4194304)/4096)*4096)}else W=(Math.max(b-n&lt;&lt;2,I.length-1)&gt;&gt;12)+1&lt;&lt;12;let P=new oc(W);return $e=new DataView(P.buffer,0,W),I.copy?I.copy(P,0,n,b):P.set(I.slice(n,b)),_-=n,n=0,Xn=P.length-10,I=P};let x=100,T=1e3;this.encodeAsIterable=function(b,W){return re(b,W,Z)},this.encodeAsAsyncIterable=function(b,W){return re(b,W,je)};function*Z(b,W,P){let D=b.constructor;if(D===Object){let U=l.useRecords!==!1;U?k(b,!0):gg(Object.keys(b).length,160);for(let z in b){let M=b[z];U||m(z),M&amp;&amp;typeof M==&quot;object&quot;?W[z]?yield*Z(M,W[z]):yield*A(M,W,z):m(M)}}else if(D===Array){let U=b.length;wn(U);for(let z=0;z&lt;U;z++){let M=b[z];M&amp;&amp;(typeof M==&quot;object&quot;||_-n&gt;x)?W.element?yield*Z(M,W.element):yield*A(M,W,&quot;element&quot;):m(M)}}else if(b[Symbol.iterator]&amp;&amp;!b.buffer){I[_++]=159;for(let U of b)U&amp;&amp;(typeof U==&quot;object&quot;||_-n&gt;x)?W.element?yield*Z(U,W.element):yield*A(U,W,&quot;element&quot;):m(U);I[_++]=255}else sc(b)?(gg(b.size,64),yield I.subarray(n,_),yield b,H()):b[Symbol.asyncIterator]?(I[_++]=159,yield I.subarray(n,_),yield b,H(),I[_++]=255):m(b);P&amp;&amp;_&gt;n?yield I.subarray(n,_):_-n&gt;x&amp;&amp;(yield I.subarray(n,_),H())}function*A(b,W,P){let D=_-n;try{m(b),_-n&gt;x&amp;&amp;(yield I.subarray(n,_),H())}catch(U){if(U.iteratorNotHandled)W[P]={},_=n+D,yield*Z.call(this,b,W[P]);else throw U}}function H(){x=T,l.encode(null,lc)}function re(b,W,P){return W&amp;&amp;W.chunkThreshold?x=T=W.chunkThreshold:x=100,b&amp;&amp;typeof b==&quot;object&quot;?(l.encode(null,lc),P(b,l.iterateProperties||(l.iterateProperties={}),!0)):[l.encode(b)]}async function*je(b,W){for(let P of Z(b,W,!0)){let D=P.constructor;if(D===mg||D===Uint8Array)yield P;else if(sc(P)){let U=P.stream().getReader(),z;for(;!(z=await U.read()).done;)yield z.value}else if(P[Symbol.asyncIterator])for await(let U of P)H(),U?yield*je(U,W.async||(W.async={})):yield l.encode(U);else yield P}}}useBuffer(t){I=t,$e=new DataView(I.buffer,I.byteOffset,I.byteLength),_=0}clearSharedData(){this.structures&amp;&amp;(this.structures=[]),this.sharedValues&amp;&amp;(this.sharedValues=void 0)}updateSharedData(){let t=this.sharedVersion||0;this.sharedVersion=t+1;let n=this.structures.slice(0),i=new D_(n,this.sharedValues,this.sharedVersion),r=this.saveShared(i,o=&gt;(o&amp;&amp;o.version||0)==t);return r===!1?(i=this.getShared()||{},this.structures=i.structures||[],this.sharedValues=i.packedValues,this.sharedVersion=i.version,this.structures.nextId=this.structures.length):n.forEach((o,a)=&gt;this.structures[a]=o),r}}function gg(e,t){e&lt;24?I[_++]=t|e:e&lt;256?(I[_++]=t|24,I[_++]=e):e&lt;65536?(I[_++]=t|25,I[_++]=e&gt;&gt;8,I[_++]=e&amp;255):(I[_++]=t|26,$e.setUint32(_,e),_+=4)}class D_{constructor(t,n,i){this.structures=t,this.packedValues=n,this.version=i}}function wn(e){e&lt;24?I[_++]=128|e:e&lt;256?(I[_++]=152,I[_++]=e):e&lt;65536?(I[_++]=153,I[_++]=e&gt;&gt;8,I[_++]=e&amp;255):(I[_++]=154,$e.setUint32(_,e),_+=4)}const oE=typeof Blob&gt;&quot;u&quot;?function(){}:Blob;function sc(e){if(e instanceof oE)return!0;let t=e[Symbol.toStringTag];return t===&quot;Blob&quot;||t===&quot;File&quot;}function Ws(e,t){switch(typeof e){case&quot;string&quot;:if(e.length&gt;3){if(t.objectMap[e]&gt;-1||t.values.length&gt;=t.maxValues)return;let i=t.get(e);if(i)++i.count==2&amp;&amp;t.values.push(e);else if(t.set(e,{count:1}),t.samplingPackedValues){let r=t.samplingPackedValues.get(e);r?r.count++:t.samplingPackedValues.set(e,{count:1})}}break;case&quot;object&quot;:if(e)if(e instanceof Array)for(let i=0,r=e.length;i&lt;r;i++)Ws(e[i],t);else{let i=!t.encoder.useRecords;for(var n in e)e.hasOwnProperty(n)&amp;&amp;(i&amp;&amp;Ws(n,t),Ws(e[n],t))}break;case&quot;function&quot;:console.log(e)}}const aE=new Uint8Array(new Uint16Array([1]).buffer)[0]==1;U_=[Date,Set,Error,RegExp,ei,ArrayBuffer,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,typeof BigUint64Array&gt;&quot;u&quot;?function(){}:BigUint64Array,Int8Array,Int16Array,Int32Array,typeof BigInt64Array&gt;&quot;u&quot;?function(){}:BigInt64Array,Float32Array,Float64Array,D_];Nd=[{tag:1,encode(e,t){let n=e.getTime()/1e3;(this.useTimestamp32||e.getMilliseconds()===0)&amp;&amp;n&gt;=0&amp;&amp;n&lt;4294967296?(I[_++]=26,$e.setUint32(_,n),_+=4):(I[_++]=251,$e.setFloat64(_,n),_+=8)}},{tag:258,encode(e,t){let n=Array.from(e);t(n)}},{tag:27,encode(e,t){t([e.name,e.message])}},{tag:27,encode(e,t){t([&quot;RegExp&quot;,e.source,e.flags])}},{getTag(e){return e.tag},encode(e,t){t(e.value)}},{encode(e,t,n){jd(e,n)}},{getTag(e){if(e.constructor===Uint8Array&amp;&amp;(this.tagUint8Array||qa&amp;&amp;this.tagUint8Array!==!1))return 64},encode(e,t,n){jd(e,n)}},yn(68,1),yn(69,2),yn(70,4),yn(71,8),yn(72,1),yn(77,2),yn(78,4),yn(79,8),yn(85,4),yn(86,8),{encode(e,t){let n=e.packedValues||[],i=e.structures||[];if(n.values.length&gt;0){I[_++]=216,I[_++]=51,wn(4);let r=n.values;t(r),wn(0),wn(0),packedObjectMap=Object.create(sharedPackedObjectMap||null);for(let o=0,a=r.length;o&lt;a;o++)packedObjectMap[r[o]]=o}if(i){$e.setUint32(_,3655335424),_+=3;let r=i.slice(0);r.unshift(57344),r.push(new ei(e.version,1399353956)),t(r)}else t(new ei(e.version,1399353956))}}];function yn(e,t){return!aE&amp;&amp;t&gt;1&amp;&amp;(e-=4),{tag:e,encode:function(i,r){let o=i.byteLength,a=i.byteOffset||0,s=i.buffer||i;r(qa?lu.from(s,a,o):new Uint8Array(s,a,o))}}}function jd(e,t){let n=e.byteLength;n&lt;24?I[_++]=64+n:n&lt;256?(I[_++]=88,I[_++]=n):n&lt;65536?(I[_++]=89,I[_++]=n&gt;&gt;8,I[_++]=n&amp;255):(I[_++]=90,$e.setUint32(_,n),_+=4),_+n&gt;=I.length&amp;&amp;t(_+n),I.set(e.buffer?e:new Uint8Array(e),_),_+=n}function sE(e,t){let n,i=t.length*2,r=e.length-i;t.sort((o,a)=&gt;o.offset&gt;a.offset?1:-1);for(let o=0;o&lt;t.length;o++){let a=t[o];a.id=o;for(let s of a.references)e[s++]=o&gt;&gt;8,e[s]=o&amp;255}for(;n=t.pop();){let o=n.offset;e.copyWithin(o+i,o,r),i-=2;let a=o+i;e[a++]=216,e[a++]=28,r=o}return e}function vg(e,t){$e.setUint32(Ke.position+e,_-Ke.position-e+1);let n=Ke;Ke=null,t(n[0]),t(n[1])}let tm=new iE({useRecords:!1});const Ia=tm.encode;tm.encodeAsIterable;tm.encodeAsAsyncIterable;const yg=512,lE=1024,lc=2048;var uE=function(e,t,n,i,r,o,a,s){if(!e){var l;if(t===void 0)l=new Error(&quot;Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.&quot;);else{var u=[n,i,r,o,a,s],d=0;l=new Error(t.replace(/%s/g,function(){return u[d++]})),l.name=&quot;Invariant Violation&quot;}throw l.framesToPop=1,l}},cE=uE;const mn=Qd(cE);function dE(){return Qf(&quot;actor-runtime&quot;)}function _g(e){throw dE().error({msg:&quot;unreachable&quot;,value:`${e}`,stack:new Error().stack}),new l1(e)}function fE(e=32){const t=&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789&quot;;let n=&quot;&quot;;for(let i=0;i&lt;e;i++){const r=Math.floor(Math.random()*t.length);n+=t[r]}return n}var mE=&quot;/connect/websocket&quot;,pE=&quot;/raw/websocket/&quot;,R_=&quot;x-rivet-query&quot;,Ea=&quot;x-rivet-encoding&quot;,Qa=&quot;x-rivet-conn-params&quot;,hE=&quot;x-rivet-actor&quot;,Hs=&quot;x-rivet-conn&quot;,Ks=&quot;x-rivet-conn-token&quot;,gE=&quot;x-rivet-token&quot;,vE=&quot;x-rivet-target&quot;,yE=&quot;x-rivet-actor&quot;,_E=&quot;rivet&quot;,wE=&quot;rivet_target.&quot;,kE=&quot;rivet_actor.&quot;,xE=&quot;rivet_encoding.&quot;,bE=&quot;rivet_conn_params.&quot;,SE=&quot;rivet_conn.&quot;,$E=&quot;rivet_conn_token.&quot;,IE=&quot;rivet_token.&quot;,uu=Ga([&quot;json&quot;,&quot;cbor&quot;,&quot;bare&quot;]);function L_(e){let t=&quot;&quot;;const n=e.byteLength;for(let i=0;i&lt;n;i++)t+=String.fromCharCode(e[i]);return btoa(t)}function EE(e){const t=new Uint8Array(e);return L_(t)}function Z_(e){if(typeof Buffer&lt;&quot;u&quot;)return new Uint8Array(Buffer.from(e,&quot;base64&quot;));const t=atob(e),n=t.length,i=new Uint8Array(n);for(let r=0;r&lt;n;r++)i[r]=t.charCodeAt(r);return i}function NE(e){return Z_(e).buffer}function Od(e){return JSON.stringify(e,(t,n)=&gt;typeof n==&quot;bigint&quot;?[&quot;$BigInt&quot;,n.toString()]:n instanceof ArrayBuffer?[&quot;$ArrayBuffer&quot;,EE(n)]:n instanceof Uint8Array?[&quot;$Uint8Array&quot;,L_(n)]:Array.isArray(n)&amp;&amp;n.length===2&amp;&amp;typeof n[0]==&quot;string&quot;&amp;&amp;n[0].startsWith(&quot;$&quot;)?[&quot;$&quot;+n[0],n[1]]:n)}function wg(e){return JSON.parse(e,(t,n)=&gt;{if(Array.isArray(n)&amp;&amp;n.length===2&amp;&amp;typeof n[0]==&quot;string&quot;&amp;&amp;n[0].startsWith(&quot;$&quot;)){if(n[0]===&quot;$BigInt&quot;)return BigInt(n[1]);if(n[0]===&quot;$ArrayBuffer&quot;)return NE(n[1]);if(n[0]===&quot;$Uint8Array&quot;)return Z_(n[1]);if(n[0].startsWith(&quot;$$&quot;))return[n[0].substring(1),n[1]];throw new Error(`Unknown JSON encoding type: ${n[0]}. This may indicate corrupted data or a version mismatch.`)}return n})}function kg(e){if(typeof Buffer&lt;&quot;u&quot;)return Buffer.from(e).toString(&quot;base64&quot;);let t=&quot;&quot;;const n=e.byteLength;for(let i=0;i&lt;n;i++)t+=String.fromCharCode(e[i]);return btoa(t)}function M_(e){if(e===&quot;json&quot;)return!1;if(e===&quot;cbor&quot;||e===&quot;bare&quot;)return!0;Mn(e)}function jE(e){if(e===&quot;json&quot;)return&quot;application/json&quot;;if(e===&quot;cbor&quot;||e===&quot;bare&quot;)return&quot;application/octet-stream&quot;;Mn(e)}function F_(e,t,n){if(e===&quot;json&quot;)return Od(t);if(e===&quot;cbor&quot;)return Ia(t);if(e===&quot;bare&quot;){if(!n)throw new Error(&quot;VersionedDataHandler is required for &#39;bare&#39; encoding&quot;);return n.serializeWithEmbeddedVersion(t)}else Mn(e)}function zd(e,t,n){if(e===&quot;json&quot;){if(typeof t==&quot;string&quot;)return wg(t);{const r=new TextDecoder(&quot;utf-8&quot;).decode(t);return wg(r)}}else{if(e===&quot;cbor&quot;)return mn(typeof t!=&quot;string&quot;,&quot;buffer cannot be string for cbor encoding&quot;),$a(t);if(e===&quot;bare&quot;){if(mn(typeof t!=&quot;string&quot;,&quot;buffer cannot be string for bare encoding&quot;),!n)throw new Error(&quot;VersionedDataHandler is required for &#39;bare&#39; encoding&quot;);return n.deserializeWithEmbeddedVersion(t)}else Mn(e)}}const B_=Object.freeze({status:&quot;aborted&quot;});function S(e,t,n){function i(s,l){var u;Object.defineProperty(s,&quot;_zod&quot;,{value:s._zod??{},enumerable:!1}),(u=s._zod).traits??(u.traits=new Set),s._zod.traits.add(e),t(s,l);for(const d in a.prototype)d in s||Object.defineProperty(s,d,{value:a.prototype[d].bind(s)});s._zod.constr=a,s._zod.def=l}const r=(n==null?void 0:n.Parent)??Object;class o extends r{}Object.defineProperty(o,&quot;name&quot;,{value:e});function a(s){var l;const u=n!=null&amp;&amp;n.Parent?new o:this;i(u,s),(l=u._zod).deferred??(l.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(a,&quot;init&quot;,{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=&gt;{var l,u;return n!=null&amp;&amp;n.Parent&amp;&amp;s instanceof n.Parent?!0:(u=(l=s==null?void 0:s._zod)==null?void 0:l.traits)==null?void 0:u.has(e)}}),Object.defineProperty(a,&quot;name&quot;,{value:e}),a}const V_=Symbol(&quot;zod_brand&quot;);class to extends Error{constructor(){super(&quot;Encountered Promise during synchronous parse. Use .parseAsync() instead.&quot;)}}const Ol={};function pt(e){return e&amp;&amp;Object.assign(Ol,e),Ol}function OE(e){return e}function zE(e){return e}function TE(e){}function CE(e){throw new Error}function AE(e){}function nm(e){const t=Object.values(e).filter(i=&gt;typeof i==&quot;number&quot;);return Object.entries(e).filter(([i,r])=&gt;t.indexOf(+i)===-1).map(([i,r])=&gt;r)}function B(e,t=&quot;|&quot;){return e.map(n=&gt;se(n)).join(t)}function W_(e,t){return typeof t==&quot;bigint&quot;?t.toString():t}function cu(e){return{get value(){{const t=e();return Object.defineProperty(this,&quot;value&quot;,{value:t}),t}}}}function ai(e){return e==null}function du(e){const t=e.startsWith(&quot;^&quot;)?1:0,n=e.endsWith(&quot;$&quot;)?e.length-1:e.length;return e.slice(t,n)}function H_(e,t){const n=(e.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,i=(t.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,r=n&gt;i?n:i,o=Number.parseInt(e.toFixed(r).replace(&quot;.&quot;,&quot;&quot;)),a=Number.parseInt(t.toFixed(r).replace(&quot;.&quot;,&quot;&quot;));return o%a/10**r}function ye(e,t,n){Object.defineProperty(e,t,{get(){{const i=n();return e[t]=i,i}},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function lo(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function PE(e,t){return t?t.reduce((n,i)=&gt;n==null?void 0:n[i],e):e}function UE(e){const t=Object.keys(e),n=t.map(i=&gt;e[i]);return Promise.all(n).then(i=&gt;{const r={};for(let o=0;o&lt;t.length;o++)r[t[o]]=i[o];return r})}function DE(e=10){const t=&quot;abcdefghijklmnopqrstuvwxyz&quot;;let n=&quot;&quot;;for(let i=0;i&lt;e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function mi(e){return JSON.stringify(e)}const rm=Error.captureStackTrace?Error.captureStackTrace:(...e)=&gt;{};function Na(e){return typeof e==&quot;object&quot;&amp;&amp;e!==null&amp;&amp;!Array.isArray(e)}const K_=cu(()=&gt;{var e;if(typeof navigator&lt;&quot;u&quot;&amp;&amp;((e=navigator==null?void 0:navigator.userAgent)!=null&amp;&amp;e.includes(&quot;Cloudflare&quot;)))return!1;try{const t=Function;return new t(&quot;&quot;),!0}catch{return!1}});function ja(e){if(Na(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(Na(n)===!1||Object.prototype.hasOwnProperty.call(n,&quot;isPrototypeOf&quot;)===!1)}function RE(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;t++;return t}const LE=e=&gt;{const t=typeof e;switch(t){case&quot;undefined&quot;:return&quot;undefined&quot;;case&quot;string&quot;:return&quot;string&quot;;case&quot;number&quot;:return Number.isNaN(e)?&quot;nan&quot;:&quot;number&quot;;case&quot;boolean&quot;:return&quot;boolean&quot;;case&quot;function&quot;:return&quot;function&quot;;case&quot;bigint&quot;:return&quot;bigint&quot;;case&quot;symbol&quot;:return&quot;symbol&quot;;case&quot;object&quot;:return Array.isArray(e)?&quot;array&quot;:e===null?&quot;null&quot;:e.then&amp;&amp;typeof e.then==&quot;function&quot;&amp;&amp;e.catch&amp;&amp;typeof e.catch==&quot;function&quot;?&quot;promise&quot;:typeof Map&lt;&quot;u&quot;&amp;&amp;e instanceof Map?&quot;map&quot;:typeof Set&lt;&quot;u&quot;&amp;&amp;e instanceof Set?&quot;set&quot;:typeof Date&lt;&quot;u&quot;&amp;&amp;e instanceof Date?&quot;date&quot;:typeof File&lt;&quot;u&quot;&amp;&amp;e instanceof File?&quot;file&quot;:&quot;object&quot;;default:throw new Error(`Unknown data type: ${t}`)}},zl=new Set([&quot;string&quot;,&quot;number&quot;,&quot;symbol&quot;]),J_=new Set([&quot;string&quot;,&quot;number&quot;,&quot;bigint&quot;,&quot;boolean&quot;,&quot;symbol&quot;,&quot;undefined&quot;]);function si(e){return e.replace(/[.*+?^${}()|[\]\\]/g,&quot;\\$&amp;&quot;)}function jn(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n!=null&amp;&amp;n.parent)&amp;&amp;(i._zod.parent=e),i}function C(e){const t=e;if(!t)return{};if(typeof t==&quot;string&quot;)return{error:()=&gt;t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error(&quot;Cannot specify both `message` and `error` params&quot;);t.error=t.message}return delete t.message,typeof t.error==&quot;string&quot;?{...t,error:()=&gt;t.error}:t}function ZE(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function se(e){return typeof e==&quot;bigint&quot;?e.toString()+&quot;n&quot;:typeof e==&quot;string&quot;?`&quot;${e}&quot;`:`${e}`}function G_(e){return Object.keys(e).filter(t=&gt;e[t]._zod.optin===&quot;optional&quot;&amp;&amp;e[t]._zod.optout===&quot;optional&quot;)}const q_={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Q_={int64:[BigInt(&quot;-9223372036854775808&quot;),BigInt(&quot;9223372036854775807&quot;)],uint64:[BigInt(0),BigInt(&quot;18446744073709551615&quot;)]};function X_(e,t){const n={},i=e._zod.def;for(const r in t){if(!(r in i.shape))throw new Error(`Unrecognized key: &quot;${r}&quot;`);t[r]&amp;&amp;(n[r]=i.shape[r])}return jn(e,{...e._zod.def,shape:n,checks:[]})}function Y_(e,t){const n={...e._zod.def.shape},i=e._zod.def;for(const r in t){if(!(r in i.shape))throw new Error(`Unrecognized key: &quot;${r}&quot;`);t[r]&amp;&amp;delete n[r]}return jn(e,{...e._zod.def,shape:n,checks:[]})}function e0(e,t){if(!ja(t))throw new Error(&quot;Invalid input to extend: expected a plain object&quot;);const n={...e._zod.def,get shape(){const i={...e._zod.def.shape,...t};return lo(this,&quot;shape&quot;,i),i},checks:[]};return jn(e,n)}function t0(e,t){return jn(e,{...e._zod.def,get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return lo(this,&quot;shape&quot;,n),n},catchall:t._zod.def.catchall,checks:[]})}function n0(e,t,n){const i=t._zod.def.shape,r={...i};if(n)for(const o in n){if(!(o in i))throw new Error(`Unrecognized key: &quot;${o}&quot;`);n[o]&amp;&amp;(r[o]=e?new e({type:&quot;optional&quot;,innerType:i[o]}):i[o])}else for(const o in i)r[o]=e?new e({type:&quot;optional&quot;,innerType:i[o]}):i[o];return jn(t,{...t._zod.def,shape:r,checks:[]})}function r0(e,t,n){const i=t._zod.def.shape,r={...i};if(n)for(const o in n){if(!(o in r))throw new Error(`Unrecognized key: &quot;${o}&quot;`);n[o]&amp;&amp;(r[o]=new e({type:&quot;nonoptional&quot;,innerType:i[o]}))}else for(const o in i)r[o]=new e({type:&quot;nonoptional&quot;,innerType:i[o]});return jn(t,{...t._zod.def,shape:r,checks:[]})}function Di(e,t=0){var n;for(let i=t;i&lt;e.issues.length;i++)if(((n=e.issues[i])==null?void 0:n.continue)!==!0)return!0;return!1}function Vt(e,t){return t.map(n=&gt;{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function zo(e){return typeof e==&quot;string&quot;?e:e==null?void 0:e.message}function pn(e,t,n){var r,o,a,s,l,u;const i={...e,path:e.path??[]};if(!e.message){const d=zo((a=(o=(r=e.inst)==null?void 0:r._zod.def)==null?void 0:o.error)==null?void 0:a.call(o,e))??zo((s=t==null?void 0:t.error)==null?void 0:s.call(t,e))??zo((l=n.customError)==null?void 0:l.call(n,e))??zo((u=n.localeError)==null?void 0:u.call(n,e))??&quot;Invalid input&quot;;i.message=d}return delete i.inst,delete i.continue,t!=null&amp;&amp;t.reportInput||delete i.input,i}function fu(e){return e instanceof Set?&quot;set&quot;:e instanceof Map?&quot;map&quot;:e instanceof File?&quot;file&quot;:&quot;unknown&quot;}function mu(e){return Array.isArray(e)?&quot;array&quot;:typeof e==&quot;string&quot;?&quot;string&quot;:&quot;unknown&quot;}function no(...e){const[t,n,i]=e;return typeof t==&quot;string&quot;?{message:t,code:&quot;custom&quot;,input:n,inst:i}:{...t}}function ME(e){return Object.entries(e).filter(([t,n])=&gt;Number.isNaN(Number.parseInt(t,10))).map(t=&gt;t[1])}class FE{constructor(...t){}}const BE=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:Q_,Class:FE,NUMBER_FORMAT_RANGES:q_,aborted:Di,allowsEval:K_,assert:AE,assertEqual:OE,assertIs:TE,assertNever:CE,assertNotEqual:zE,assignProp:lo,cached:cu,captureStackTrace:rm,cleanEnum:ME,cleanRegex:du,clone:jn,createTransparentProxy:ZE,defineLazy:ye,esc:mi,escapeRegex:si,extend:e0,finalizeIssue:pn,floatSafeRemainder:H_,getElementAtPath:PE,getEnumValues:nm,getLengthableOrigin:mu,getParsedType:LE,getSizableOrigin:fu,isObject:Na,isPlainObject:ja,issue:no,joinValues:B,jsonStringifyReplacer:W_,merge:t0,normalizeParams:C,nullish:ai,numKeys:RE,omit:Y_,optionalKeys:G_,partial:n0,pick:X_,prefixIssues:Vt,primitiveTypes:J_,promiseAllObject:UE,propertyKeyTypes:zl,randomString:DE,required:r0,stringifyPrimitive:se,unwrapMessage:zo},Symbol.toStringTag,{value:&quot;Module&quot;})),i0=(e,t)=&gt;{e.name=&quot;$ZodError&quot;,Object.defineProperty(e,&quot;_zod&quot;,{value:e._zod,enumerable:!1}),Object.defineProperty(e,&quot;issues&quot;,{value:t,enumerable:!1}),Object.defineProperty(e,&quot;message&quot;,{get(){return JSON.stringify(t,W_,2)},enumerable:!0}),Object.defineProperty(e,&quot;toString&quot;,{value:()=&gt;e.message,enumerable:!1})},im=S(&quot;$ZodError&quot;,i0),Xa=S(&quot;$ZodError&quot;,i0,{Parent:Error});function om(e,t=n=&gt;n.message){const n={},i=[];for(const r of e.issues)r.path.length&gt;0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function am(e,t){const n=t||function(o){return o.message},i={_errors:[]},r=o=&gt;{for(const a of o.issues)if(a.code===&quot;invalid_union&quot;&amp;&amp;a.errors.length)a.errors.map(s=&gt;r({issues:s}));else if(a.code===&quot;invalid_key&quot;)r({issues:a.issues});else if(a.code===&quot;invalid_element&quot;)r({issues:a.issues});else if(a.path.length===0)i._errors.push(n(a));else{let s=i,l=0;for(;l&lt;a.path.length;){const u=a.path[l];l===a.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(n(a))):s[u]=s[u]||{_errors:[]},s=s[u],l++}}};return r(e),i}function o0(e,t){const n=t||function(o){return o.message},i={errors:[]},r=(o,a=[])=&gt;{var s,l;for(const u of o.issues)if(u.code===&quot;invalid_union&quot;&amp;&amp;u.errors.length)u.errors.map(d=&gt;r({issues:d},u.path));else if(u.code===&quot;invalid_key&quot;)r({issues:u.issues},u.path);else if(u.code===&quot;invalid_element&quot;)r({issues:u.issues},u.path);else{const d=[...a,...u.path];if(d.length===0){i.errors.push(n(u));continue}let h=i,g=0;for(;g&lt;d.length;){const v=d[g],y=g===d.length-1;typeof v==&quot;string&quot;?(h.properties??(h.properties={}),(s=h.properties)[v]??(s[v]={errors:[]}),h=h.properties[v]):(h.items??(h.items=[]),(l=h.items)[v]??(l[v]={errors:[]}),h=h.items[v]),y&amp;&amp;h.errors.push(n(u)),g++}}};return r(e),i}function a0(e){const t=[];for(const n of e)typeof n==&quot;number&quot;?t.push(`[${n}]`):typeof n==&quot;symbol&quot;?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&amp;&amp;t.push(&quot;.&quot;),t.push(n));return t.join(&quot;&quot;)}function s0(e){var i;const t=[],n=[...e.issues].sort((r,o)=&gt;r.path.length-o.path.length);for(const r of n)t.push(`✖ ${r.message}`),(i=r.path)!=null&amp;&amp;i.length&amp;&amp;t.push(`  → at ${a0(r.path)}`);return t.join(`
`)}const sm=e=&gt;(t,n,i,r)=&gt;{const o=i?Object.assign(i,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new to;if(a.issues.length){const s=new((r==null?void 0:r.Err)??e)(a.issues.map(l=&gt;pn(l,o,pt())));throw rm(s,r==null?void 0:r.callee),s}return a.value},Td=sm(Xa),lm=e=&gt;async(t,n,i,r)=&gt;{const o=i?Object.assign(i,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&amp;&amp;(a=await a),a.issues.length){const s=new((r==null?void 0:r.Err)??e)(a.issues.map(l=&gt;pn(l,o,pt())));throw rm(s,r==null?void 0:r.callee),s}return a.value},Cd=lm(Xa),um=e=&gt;(t,n,i)=&gt;{const r=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new to;return o.issues.length?{success:!1,error:new(e??im)(o.issues.map(a=&gt;pn(a,r,pt())))}:{success:!0,data:o.value}},l0=um(Xa),cm=e=&gt;async(t,n,i)=&gt;{const r=i?Object.assign(i,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&amp;&amp;(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=&gt;pn(a,r,pt())))}:{success:!0,data:o.value}},u0=cm(Xa),c0=/^[cC][^\s-]{8,}$/,d0=/^[0-9a-z]+$/,f0=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,m0=/^[0-9a-vA-V]{20}$/,p0=/^[A-Za-z0-9]{27}$/,h0=/^[a-zA-Z0-9_-]{21}$/,g0=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,VE=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,v0=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ro=e=&gt;e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,WE=ro(4),HE=ro(6),KE=ro(7),y0=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_&#39;+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,JE=/^[a-zA-Z0-9.!#$%&amp;&#39;*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,GE=/^(([^&lt;&gt;()\[\]\\.,;:\s@&quot;]+(\.[^&lt;&gt;()\[\]\\.,;:\s@&quot;]+)*)|(&quot;.+&quot;))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,qE=/^[^\s@&quot;]{1,64}@[^\s@]{1,255}$/u,QE=/^[a-zA-Z0-9.!#$%&amp;&#39;*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,_0=&quot;^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$&quot;;function w0(){return new RegExp(_0,&quot;u&quot;)}const k0=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,x0=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,b0=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,S0=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,$0=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,dm=/^[A-Za-z0-9_-]*$/,I0=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,XE=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,E0=/^\+(?:[0-9]){6,14}[0-9]$/,N0=&quot;(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))&quot;,j0=new RegExp(`^${N0}$`);function O0(e){const t=&quot;(?:[01]\\d|2[0-3]):[0-5]\\d&quot;;return typeof e.precision==&quot;number&quot;?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function z0(e){return new RegExp(`^${O0(e)}$`)}function T0(e){const t=O0({precision:e.precision}),n=[&quot;Z&quot;];e.local&amp;&amp;n.push(&quot;&quot;),e.offset&amp;&amp;n.push(&quot;([+-]\\d{2}:\\d{2})&quot;);const i=`${t}(?:${n.join(&quot;|&quot;)})`;return new RegExp(`^${N0}T(?:${i})$`)}const C0=e=&gt;{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??&quot;&quot;}}`:&quot;[\\s\\S]*&quot;;return new RegExp(`^${t}$`)},A0=/^\d+n?$/,P0=/^\d+$/,U0=/^-?\d+(?:\.\d+)?/i,D0=/true|false/i,R0=/null/i,L0=/undefined/i,Z0=/^[^A-Z]*$/,M0=/^[^a-z]*$/,F0=Object.freeze(Object.defineProperty({__proto__:null,_emoji:_0,base64:$0,base64url:dm,bigint:A0,boolean:D0,browserEmail:QE,cidrv4:b0,cidrv6:S0,cuid:c0,cuid2:d0,date:j0,datetime:T0,domain:XE,duration:g0,e164:E0,email:y0,emoji:w0,extendedDuration:VE,guid:v0,hostname:I0,html5Email:JE,integer:P0,ipv4:k0,ipv6:x0,ksuid:p0,lowercase:Z0,nanoid:h0,null:R0,number:U0,rfc5322Email:GE,string:C0,time:z0,ulid:f0,undefined:L0,unicodeEmail:qE,uppercase:M0,uuid:ro,uuid4:WE,uuid6:HE,uuid7:KE,xid:m0},Symbol.toStringTag,{value:&quot;Module&quot;})),Fe=S(&quot;$ZodCheck&quot;,(e,t)=&gt;{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),B0={number:&quot;number&quot;,bigint:&quot;bigint&quot;,object:&quot;date&quot;},fm=S(&quot;$ZodCheckLessThan&quot;,(e,t)=&gt;{Fe.init(e,t);const n=B0[typeof t.value];e._zod.onattach.push(i=&gt;{const r=i._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value&lt;o&amp;&amp;(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=&gt;{(t.inclusive?i.value&lt;=t.value:i.value&lt;t.value)||i.issues.push({origin:n,code:&quot;too_big&quot;,maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),mm=S(&quot;$ZodCheckGreaterThan&quot;,(e,t)=&gt;{Fe.init(e,t);const n=B0[typeof t.value];e._zod.onattach.push(i=&gt;{const r=i._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value&gt;o&amp;&amp;(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=&gt;{(t.inclusive?i.value&gt;=t.value:i.value&gt;t.value)||i.issues.push({origin:n,code:&quot;too_small&quot;,minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),V0=S(&quot;$ZodCheckMultipleOf&quot;,(e,t)=&gt;{Fe.init(e,t),e._zod.onattach.push(n=&gt;{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=&gt;{if(typeof n.value!=typeof t.value)throw new Error(&quot;Cannot mix number and bigint in multiple_of check.&quot;);(typeof n.value==&quot;bigint&quot;?n.value%t.value===BigInt(0):H_(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:&quot;not_multiple_of&quot;,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),W0=S(&quot;$ZodCheckNumberFormat&quot;,(e,t)=&gt;{var a;Fe.init(e,t),t.format=t.format||&quot;float64&quot;;const n=(a=t.format)==null?void 0:a.includes(&quot;int&quot;),i=n?&quot;int&quot;:&quot;number&quot;,[r,o]=q_[t.format];e._zod.onattach.push(s=&gt;{const l=s._zod.bag;l.format=t.format,l.minimum=r,l.maximum=o,n&amp;&amp;(l.pattern=P0)}),e._zod.check=s=&gt;{const l=s.value;if(n){if(!Number.isInteger(l)){s.issues.push({expected:i,format:t.format,code:&quot;invalid_type&quot;,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l&gt;0?s.issues.push({input:l,code:&quot;too_big&quot;,maximum:Number.MAX_SAFE_INTEGER,note:&quot;Integers must be within the safe integer range.&quot;,inst:e,origin:i,continue:!t.abort}):s.issues.push({input:l,code:&quot;too_small&quot;,minimum:Number.MIN_SAFE_INTEGER,note:&quot;Integers must be within the safe integer range.&quot;,inst:e,origin:i,continue:!t.abort});return}}l&lt;r&amp;&amp;s.issues.push({origin:&quot;number&quot;,input:l,code:&quot;too_small&quot;,minimum:r,inclusive:!0,inst:e,continue:!t.abort}),l&gt;o&amp;&amp;s.issues.push({origin:&quot;number&quot;,input:l,code:&quot;too_big&quot;,maximum:o,inst:e})}}),H0=S(&quot;$ZodCheckBigIntFormat&quot;,(e,t)=&gt;{Fe.init(e,t);const[n,i]=Q_[t.format];e._zod.onattach.push(r=&gt;{const o=r._zod.bag;o.format=t.format,o.minimum=n,o.maximum=i}),e._zod.check=r=&gt;{const o=r.value;o&lt;n&amp;&amp;r.issues.push({origin:&quot;bigint&quot;,input:o,code:&quot;too_small&quot;,minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o&gt;i&amp;&amp;r.issues.push({origin:&quot;bigint&quot;,input:o,code:&quot;too_big&quot;,maximum:i,inst:e})}}),K0=S(&quot;$ZodCheckMaxSize&quot;,(e,t)=&gt;{var n;Fe.init(e,t),(n=e._zod.def).when??(n.when=i=&gt;{const r=i.value;return!ai(r)&amp;&amp;r.size!==void 0}),e._zod.onattach.push(i=&gt;{const r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum&lt;r&amp;&amp;(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=&gt;{const r=i.value;r.size&lt;=t.maximum||i.issues.push({origin:fu(r),code:&quot;too_big&quot;,maximum:t.maximum,input:r,inst:e,continue:!t.abort})}}),J0=S(&quot;$ZodCheckMinSize&quot;,(e,t)=&gt;{var n;Fe.init(e,t),(n=e._zod.def).when??(n.when=i=&gt;{const r=i.value;return!ai(r)&amp;&amp;r.size!==void 0}),e._zod.onattach.push(i=&gt;{const r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum&gt;r&amp;&amp;(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=&gt;{const r=i.value;r.size&gt;=t.minimum||i.issues.push({origin:fu(r),code:&quot;too_small&quot;,minimum:t.minimum,input:r,inst:e,continue:!t.abort})}}),G0=S(&quot;$ZodCheckSizeEquals&quot;,(e,t)=&gt;{var n;Fe.init(e,t),(n=e._zod.def).when??(n.when=i=&gt;{const r=i.value;return!ai(r)&amp;&amp;r.size!==void 0}),e._zod.onattach.push(i=&gt;{const r=i._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=i=&gt;{const r=i.value,o=r.size;if(o===t.size)return;const a=o&gt;t.size;i.issues.push({origin:fu(r),...a?{code:&quot;too_big&quot;,maximum:t.size}:{code:&quot;too_small&quot;,minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),q0=S(&quot;$ZodCheckMaxLength&quot;,(e,t)=&gt;{var n;Fe.init(e,t),(n=e._zod.def).when??(n.when=i=&gt;{const r=i.value;return!ai(r)&amp;&amp;r.length!==void 0}),e._zod.onattach.push(i=&gt;{const r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum&lt;r&amp;&amp;(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=&gt;{const r=i.value;if(r.length&lt;=t.maximum)return;const a=mu(r);i.issues.push({origin:a,code:&quot;too_big&quot;,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Q0=S(&quot;$ZodCheckMinLength&quot;,(e,t)=&gt;{var n;Fe.init(e,t),(n=e._zod.def).when??(n.when=i=&gt;{const r=i.value;return!ai(r)&amp;&amp;r.length!==void 0}),e._zod.onattach.push(i=&gt;{const r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum&gt;r&amp;&amp;(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=&gt;{const r=i.value;if(r.length&gt;=t.minimum)return;const a=mu(r);i.issues.push({origin:a,code:&quot;too_small&quot;,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),X0=S(&quot;$ZodCheckLengthEquals&quot;,(e,t)=&gt;{var n;Fe.init(e,t),(n=e._zod.def).when??(n.when=i=&gt;{const r=i.value;return!ai(r)&amp;&amp;r.length!==void 0}),e._zod.onattach.push(i=&gt;{const r=i._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=i=&gt;{const r=i.value,o=r.length;if(o===t.length)return;const a=mu(r),s=o&gt;t.length;i.issues.push({origin:a,...s?{code:&quot;too_big&quot;,maximum:t.length}:{code:&quot;too_small&quot;,minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Ya=S(&quot;$ZodCheckStringFormat&quot;,(e,t)=&gt;{var n,i;Fe.init(e,t),e._zod.onattach.push(r=&gt;{const o=r._zod.bag;o.format=t.format,t.pattern&amp;&amp;(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=&gt;{t.pattern.lastIndex=0,!t.pattern.test(r.value)&amp;&amp;r.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=&gt;{})}),Y0=S(&quot;$ZodCheckRegex&quot;,(e,t)=&gt;{Ya.init(e,t),e._zod.check=n=&gt;{t.pattern.lastIndex=0,!t.pattern.test(n.value)&amp;&amp;n.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:&quot;regex&quot;,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),ew=S(&quot;$ZodCheckLowerCase&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Z0),Ya.init(e,t)}),tw=S(&quot;$ZodCheckUpperCase&quot;,(e,t)=&gt;{t.pattern??(t.pattern=M0),Ya.init(e,t)}),nw=S(&quot;$ZodCheckIncludes&quot;,(e,t)=&gt;{Fe.init(e,t);const n=si(t.includes),i=new RegExp(typeof t.position==&quot;number&quot;?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=&gt;{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=r=&gt;{r.value.includes(t.includes,t.position)||r.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:&quot;includes&quot;,includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),rw=S(&quot;$ZodCheckStartsWith&quot;,(e,t)=&gt;{Fe.init(e,t);const n=new RegExp(`^${si(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=&gt;{const r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=&gt;{i.value.startsWith(t.prefix)||i.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:&quot;starts_with&quot;,prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),iw=S(&quot;$ZodCheckEndsWith&quot;,(e,t)=&gt;{Fe.init(e,t);const n=new RegExp(`.*${si(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=&gt;{const r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=&gt;{i.value.endsWith(t.suffix)||i.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:&quot;ends_with&quot;,suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function xg(e,t,n){e.issues.length&amp;&amp;t.issues.push(...Vt(n,e.issues))}const ow=S(&quot;$ZodCheckProperty&quot;,(e,t)=&gt;{Fe.init(e,t),e._zod.check=n=&gt;{const i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=&gt;xg(r,n,t.property));xg(i,n,t.property)}}),aw=S(&quot;$ZodCheckMimeType&quot;,(e,t)=&gt;{Fe.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(i=&gt;{i._zod.bag.mime=t.mime}),e._zod.check=i=&gt;{n.has(i.value.type)||i.issues.push({code:&quot;invalid_value&quot;,values:t.mime,input:i.value.type,inst:e})}}),sw=S(&quot;$ZodCheckOverwrite&quot;,(e,t)=&gt;{Fe.init(e,t),e._zod.check=n=&gt;{n.value=t.tx(n.value)}});class lw{constructor(t=[]){this.content=[],this.indent=0,this&amp;&amp;(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t==&quot;function&quot;){t(this,{execution:&quot;sync&quot;}),t(this,{execution:&quot;async&quot;});return}const i=t.split(`
`).filter(a=&gt;a),r=Math.min(...i.map(a=&gt;a.length-a.trimStart().length)),o=i.map(a=&gt;a.slice(r)).map(a=&gt;&quot; &quot;.repeat(this.indent*2)+a);for(const a of o)this.content.push(a)}compile(){const t=Function,n=this==null?void 0:this.args,r=[...((this==null?void 0:this.content)??[&quot;&quot;]).map(o=&gt;`  ${o}`)];return new t(...n,r.join(`
`))}}const uw={major:4,minor:0,patch:0},ie=S(&quot;$ZodType&quot;,(e,t)=&gt;{var r;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=uw;const i=[...e._zod.def.checks??[]];e._zod.traits.has(&quot;$ZodCheck&quot;)&amp;&amp;i.unshift(e);for(const o of i)for(const a of o._zod.onattach)a(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),(r=e._zod.deferred)==null||r.push(()=&gt;{e._zod.run=e._zod.parse});else{const o=(a,s,l)=&gt;{let u=Di(a),d;for(const h of s){if(h._zod.def.when){if(!h._zod.def.when(a))continue}else if(u)continue;const g=a.issues.length,v=h._zod.check(a);if(v instanceof Promise&amp;&amp;(l==null?void 0:l.async)===!1)throw new to;if(d||v instanceof Promise)d=(d??Promise.resolve()).then(async()=&gt;{await v,a.issues.length!==g&amp;&amp;(u||(u=Di(a,g)))});else{if(a.issues.length===g)continue;u||(u=Di(a,g))}}return d?d.then(()=&gt;a):a};e._zod.run=(a,s)=&gt;{const l=e._zod.parse(a,s);if(l instanceof Promise){if(s.async===!1)throw new to;return l.then(u=&gt;o(u,i,s))}return o(l,i,s)}}e[&quot;~standard&quot;]={validate:o=&gt;{var a;try{const s=l0(e,o);return s.success?{value:s.data}:{issues:(a=s.error)==null?void 0:a.issues}}catch{return u0(e,o).then(l=&gt;{var u;return l.success?{value:l.data}:{issues:(u=l.error)==null?void 0:u.issues}})}},vendor:&quot;zod&quot;,version:1}}),es=S(&quot;$ZodString&quot;,(e,t)=&gt;{var n;ie.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??C0(e._zod.bag),e._zod.parse=(i,r)=&gt;{if(t.coerce)try{i.value=String(i.value)}catch{}return typeof i.value==&quot;string&quot;||i.issues.push({expected:&quot;string&quot;,code:&quot;invalid_type&quot;,input:i.value,inst:e}),i}}),xe=S(&quot;$ZodStringFormat&quot;,(e,t)=&gt;{Ya.init(e,t),es.init(e,t)}),cw=S(&quot;$ZodGUID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=v0),xe.init(e,t)}),dw=S(&quot;$ZodUUID&quot;,(e,t)=&gt;{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: &quot;${t.version}&quot;`);t.pattern??(t.pattern=ro(i))}else t.pattern??(t.pattern=ro());xe.init(e,t)}),fw=S(&quot;$ZodEmail&quot;,(e,t)=&gt;{t.pattern??(t.pattern=y0),xe.init(e,t)}),mw=S(&quot;$ZodURL&quot;,(e,t)=&gt;{xe.init(e,t),e._zod.check=n=&gt;{try{const i=n.value,r=new URL(i),o=r.href;t.hostname&amp;&amp;(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;url&quot;,note:&quot;Invalid hostname&quot;,pattern:I0.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&amp;&amp;(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(&quot;:&quot;)?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;url&quot;,note:&quot;Invalid protocol&quot;,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),!i.endsWith(&quot;/&quot;)&amp;&amp;o.endsWith(&quot;/&quot;)?n.value=o.slice(0,-1):n.value=o;return}catch{n.issues.push({code:&quot;invalid_format&quot;,format:&quot;url&quot;,input:n.value,inst:e,continue:!t.abort})}}}),pw=S(&quot;$ZodEmoji&quot;,(e,t)=&gt;{t.pattern??(t.pattern=w0()),xe.init(e,t)}),hw=S(&quot;$ZodNanoID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=h0),xe.init(e,t)}),gw=S(&quot;$ZodCUID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=c0),xe.init(e,t)}),vw=S(&quot;$ZodCUID2&quot;,(e,t)=&gt;{t.pattern??(t.pattern=d0),xe.init(e,t)}),yw=S(&quot;$ZodULID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=f0),xe.init(e,t)}),_w=S(&quot;$ZodXID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=m0),xe.init(e,t)}),ww=S(&quot;$ZodKSUID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=p0),xe.init(e,t)}),kw=S(&quot;$ZodISODateTime&quot;,(e,t)=&gt;{t.pattern??(t.pattern=T0(t)),xe.init(e,t)}),xw=S(&quot;$ZodISODate&quot;,(e,t)=&gt;{t.pattern??(t.pattern=j0),xe.init(e,t)}),bw=S(&quot;$ZodISOTime&quot;,(e,t)=&gt;{t.pattern??(t.pattern=z0(t)),xe.init(e,t)}),Sw=S(&quot;$ZodISODuration&quot;,(e,t)=&gt;{t.pattern??(t.pattern=g0),xe.init(e,t)}),$w=S(&quot;$ZodIPv4&quot;,(e,t)=&gt;{t.pattern??(t.pattern=k0),xe.init(e,t),e._zod.onattach.push(n=&gt;{const i=n._zod.bag;i.format=&quot;ipv4&quot;})}),Iw=S(&quot;$ZodIPv6&quot;,(e,t)=&gt;{t.pattern??(t.pattern=x0),xe.init(e,t),e._zod.onattach.push(n=&gt;{const i=n._zod.bag;i.format=&quot;ipv6&quot;}),e._zod.check=n=&gt;{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:&quot;invalid_format&quot;,format:&quot;ipv6&quot;,input:n.value,inst:e,continue:!t.abort})}}}),Ew=S(&quot;$ZodCIDRv4&quot;,(e,t)=&gt;{t.pattern??(t.pattern=b0),xe.init(e,t)}),Nw=S(&quot;$ZodCIDRv6&quot;,(e,t)=&gt;{t.pattern??(t.pattern=S0),xe.init(e,t),e._zod.check=n=&gt;{const[i,r]=n.value.split(&quot;/&quot;);try{if(!r)throw new Error;const o=Number(r);if(`${o}`!==r)throw new Error;if(o&lt;0||o&gt;128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:&quot;invalid_format&quot;,format:&quot;cidrv6&quot;,input:n.value,inst:e,continue:!t.abort})}}});function pm(e){if(e===&quot;&quot;)return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const jw=S(&quot;$ZodBase64&quot;,(e,t)=&gt;{t.pattern??(t.pattern=$0),xe.init(e,t),e._zod.onattach.push(n=&gt;{n._zod.bag.contentEncoding=&quot;base64&quot;}),e._zod.check=n=&gt;{pm(n.value)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;base64&quot;,input:n.value,inst:e,continue:!t.abort})}});function Ow(e){if(!dm.test(e))return!1;const t=e.replace(/[-_]/g,i=&gt;i===&quot;-&quot;?&quot;+&quot;:&quot;/&quot;),n=t.padEnd(Math.ceil(t.length/4)*4,&quot;=&quot;);return pm(n)}const zw=S(&quot;$ZodBase64URL&quot;,(e,t)=&gt;{t.pattern??(t.pattern=dm),xe.init(e,t),e._zod.onattach.push(n=&gt;{n._zod.bag.contentEncoding=&quot;base64url&quot;}),e._zod.check=n=&gt;{Ow(n.value)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;base64url&quot;,input:n.value,inst:e,continue:!t.abort})}}),Tw=S(&quot;$ZodE164&quot;,(e,t)=&gt;{t.pattern??(t.pattern=E0),xe.init(e,t)});function Cw(e,t=null){try{const n=e.split(&quot;.&quot;);if(n.length!==3)return!1;const[i]=n;if(!i)return!1;const r=JSON.parse(atob(i));return!(&quot;typ&quot;in r&amp;&amp;(r==null?void 0:r.typ)!==&quot;JWT&quot;||!r.alg||t&amp;&amp;(!(&quot;alg&quot;in r)||r.alg!==t))}catch{return!1}}const Aw=S(&quot;$ZodJWT&quot;,(e,t)=&gt;{xe.init(e,t),e._zod.check=n=&gt;{Cw(n.value,t.alg)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;jwt&quot;,input:n.value,inst:e,continue:!t.abort})}}),Pw=S(&quot;$ZodCustomStringFormat&quot;,(e,t)=&gt;{xe.init(e,t),e._zod.check=n=&gt;{t.fn(n.value)||n.issues.push({code:&quot;invalid_format&quot;,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),hm=S(&quot;$ZodNumber&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.pattern=e._zod.bag.pattern??U0,e._zod.parse=(n,i)=&gt;{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r==&quot;number&quot;&amp;&amp;!Number.isNaN(r)&amp;&amp;Number.isFinite(r))return n;const o=typeof r==&quot;number&quot;?Number.isNaN(r)?&quot;NaN&quot;:Number.isFinite(r)?void 0:&quot;Infinity&quot;:void 0;return n.issues.push({expected:&quot;number&quot;,code:&quot;invalid_type&quot;,input:r,inst:e,...o?{received:o}:{}}),n}}),Uw=S(&quot;$ZodNumber&quot;,(e,t)=&gt;{W0.init(e,t),hm.init(e,t)}),gm=S(&quot;$ZodBoolean&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.pattern=D0,e._zod.parse=(n,i)=&gt;{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r==&quot;boolean&quot;||n.issues.push({expected:&quot;boolean&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n}}),vm=S(&quot;$ZodBigInt&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.pattern=A0,e._zod.parse=(n,i)=&gt;{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==&quot;bigint&quot;||n.issues.push({expected:&quot;bigint&quot;,code:&quot;invalid_type&quot;,input:n.value,inst:e}),n}}),Dw=S(&quot;$ZodBigInt&quot;,(e,t)=&gt;{H0.init(e,t),vm.init(e,t)}),Rw=S(&quot;$ZodSymbol&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;return typeof r==&quot;symbol&quot;||n.issues.push({expected:&quot;symbol&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n}}),Lw=S(&quot;$ZodUndefined&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.pattern=L0,e._zod.values=new Set([void 0]),e._zod.optin=&quot;optional&quot;,e._zod.optout=&quot;optional&quot;,e._zod.parse=(n,i)=&gt;{const r=n.value;return typeof r&gt;&quot;u&quot;||n.issues.push({expected:&quot;undefined&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n}}),Zw=S(&quot;$ZodNull&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.pattern=R0,e._zod.values=new Set([null]),e._zod.parse=(n,i)=&gt;{const r=n.value;return r===null||n.issues.push({expected:&quot;null&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n}}),Mw=S(&quot;$ZodAny&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.parse=n=&gt;n}),Tl=S(&quot;$ZodUnknown&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.parse=n=&gt;n}),Fw=S(&quot;$ZodNever&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.parse=(n,i)=&gt;(n.issues.push({expected:&quot;never&quot;,code:&quot;invalid_type&quot;,input:n.value,inst:e}),n)}),Bw=S(&quot;$ZodVoid&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;return typeof r&gt;&quot;u&quot;||n.issues.push({expected:&quot;void&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n}}),Vw=S(&quot;$ZodDate&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.parse=(n,i)=&gt;{if(t.coerce)try{n.value=new Date(n.value)}catch{}const r=n.value,o=r instanceof Date;return o&amp;&amp;!Number.isNaN(r.getTime())||n.issues.push({expected:&quot;date&quot;,code:&quot;invalid_type&quot;,input:r,...o?{received:&quot;Invalid Date&quot;}:{},inst:e}),n}});function bg(e,t,n){e.issues.length&amp;&amp;t.issues.push(...Vt(n,e.issues)),t.value[n]=e.value}const ym=S(&quot;$ZodArray&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:&quot;array&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n;n.value=Array(r.length);const o=[];for(let a=0;a&lt;r.length;a++){const s=r[a],l=t.element._zod.run({value:s,issues:[]},i);l instanceof Promise?o.push(l.then(u=&gt;bg(u,n,a))):bg(l,n,a)}return o.length?Promise.all(o).then(()=&gt;n):n}});function Is(e,t,n){e.issues.length&amp;&amp;t.issues.push(...Vt(n,e.issues)),t.value[n]=e.value}function Sg(e,t,n,i){e.issues.length?i[n]===void 0?n in i?t.value[n]=void 0:t.value[n]=e.value:t.issues.push(...Vt(n,e.issues)):e.value===void 0?n in i&amp;&amp;(t.value[n]=void 0):t.value[n]=e.value}const Ww=S(&quot;$ZodObject&quot;,(e,t)=&gt;{ie.init(e,t);const n=cu(()=&gt;{const h=Object.keys(t.shape);for(const v of h)if(!(t.shape[v]instanceof ie))throw new Error(`Invalid element at key &quot;${v}&quot;: expected a Zod schema`);const g=G_(t.shape);return{shape:t.shape,keys:h,keySet:new Set(h),numKeys:h.length,optionalKeys:new Set(g)}});ye(e._zod,&quot;propValues&quot;,()=&gt;{const h=t.shape,g={};for(const v in h){const y=h[v]._zod;if(y.values){g[v]??(g[v]=new Set);for(const E of y.values)g[v].add(E)}}return g});const i=h=&gt;{const g=new lw([&quot;shape&quot;,&quot;payload&quot;,&quot;ctx&quot;]),v=n.value,y=f=&gt;{const m=mi(f);return`shape[${m}]._zod.run({ value: input[${m}], issues: [] }, ctx)`};g.write(&quot;const input = payload.value;&quot;);const E=Object.create(null);let N=0;for(const f of v.keys)E[f]=`key_${N++}`;g.write(&quot;const newResult = {}&quot;);for(const f of v.keys)if(v.optionalKeys.has(f)){const m=E[f];g.write(`const ${m} = ${y(f)};`);const k=mi(f);g.write(`
        if (${m}.issues.length) {
          if (input[${k}] === undefined) {
            if (${k} in input) {
              newResult[${k}] = undefined;
            }
          } else {
            payload.issues = payload.issues.concat(
              ${m}.issues.map((iss) =&gt; ({
                ...iss,
                path: iss.path ? [${k}, ...iss.path] : [${k}],
              }))
            );
          }
        } else if (${m}.value === undefined) {
          if (${k} in input) newResult[${k}] = undefined;
        } else {
          newResult[${k}] = ${m}.value;
        }
        `)}else{const m=E[f];g.write(`const ${m} = ${y(f)};`),g.write(`
          if (${m}.issues.length) payload.issues = payload.issues.concat(${m}.issues.map(iss =&gt; ({
            ...iss,
            path: iss.path ? [${mi(f)}, ...iss.path] : [${mi(f)}]
          })));`),g.write(`newResult[${mi(f)}] = ${m}.value`)}g.write(&quot;payload.value = newResult;&quot;),g.write(&quot;return payload;&quot;);const p=g.compile();return(f,m)=&gt;p(h,f,m)};let r;const o=Na,a=!Ol.jitless,l=a&amp;&amp;K_.value,u=t.catchall;let d;e._zod.parse=(h,g)=&gt;{d??(d=n.value);const v=h.value;if(!o(v))return h.issues.push({expected:&quot;object&quot;,code:&quot;invalid_type&quot;,input:v,inst:e}),h;const y=[];if(a&amp;&amp;l&amp;&amp;(g==null?void 0:g.async)===!1&amp;&amp;g.jitless!==!0)r||(r=i(t.shape)),h=r(h,g);else{h.value={};const m=d.shape;for(const k of d.keys){const $=m[k],x=$._zod.run({value:v[k],issues:[]},g),T=$._zod.optin===&quot;optional&quot;&amp;&amp;$._zod.optout===&quot;optional&quot;;x instanceof Promise?y.push(x.then(Z=&gt;T?Sg(Z,h,k,v):Is(Z,h,k))):T?Sg(x,h,k,v):Is(x,h,k)}}if(!u)return y.length?Promise.all(y).then(()=&gt;h):h;const E=[],N=d.keySet,p=u._zod,f=p.def.type;for(const m of Object.keys(v)){if(N.has(m))continue;if(f===&quot;never&quot;){E.push(m);continue}const k=p.run({value:v[m],issues:[]},g);k instanceof Promise?y.push(k.then($=&gt;Is($,h,m))):Is(k,h,m)}return E.length&amp;&amp;h.issues.push({code:&quot;unrecognized_keys&quot;,keys:E,input:v,inst:e}),y.length?Promise.all(y).then(()=&gt;h):h}});function $g(e,t,n,i){for(const r of e)if(r.issues.length===0)return t.value=r.value,t;return t.issues.push({code:&quot;invalid_union&quot;,input:t.value,inst:n,errors:e.map(r=&gt;r.issues.map(o=&gt;pn(o,i,pt())))}),t}const _m=S(&quot;$ZodUnion&quot;,(e,t)=&gt;{ie.init(e,t),ye(e._zod,&quot;optin&quot;,()=&gt;t.options.some(n=&gt;n._zod.optin===&quot;optional&quot;)?&quot;optional&quot;:void 0),ye(e._zod,&quot;optout&quot;,()=&gt;t.options.some(n=&gt;n._zod.optout===&quot;optional&quot;)?&quot;optional&quot;:void 0),ye(e._zod,&quot;values&quot;,()=&gt;{if(t.options.every(n=&gt;n._zod.values))return new Set(t.options.flatMap(n=&gt;Array.from(n._zod.values)))}),ye(e._zod,&quot;pattern&quot;,()=&gt;{if(t.options.every(n=&gt;n._zod.pattern)){const n=t.options.map(i=&gt;i._zod.pattern);return new RegExp(`^(${n.map(i=&gt;du(i.source)).join(&quot;|&quot;)})$`)}}),e._zod.parse=(n,i)=&gt;{let r=!1;const o=[];for(const a of t.options){const s=a._zod.run({value:n.value,issues:[]},i);if(s instanceof Promise)o.push(s),r=!0;else{if(s.issues.length===0)return s;o.push(s)}}return r?Promise.all(o).then(a=&gt;$g(a,n,e,i)):$g(o,n,e,i)}}),Hw=S(&quot;$ZodDiscriminatedUnion&quot;,(e,t)=&gt;{_m.init(e,t);const n=e._zod.parse;ye(e._zod,&quot;propValues&quot;,()=&gt;{const r={};for(const o of t.options){const a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index &quot;${t.options.indexOf(o)}&quot;`);for(const[s,l]of Object.entries(a)){r[s]||(r[s]=new Set);for(const u of l)r[s].add(u)}}return r});const i=cu(()=&gt;{const r=t.options,o=new Map;for(const a of r){const s=a._zod.propValues[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index &quot;${t.options.indexOf(a)}&quot;`);for(const l of s){if(o.has(l))throw new Error(`Duplicate discriminator value &quot;${String(l)}&quot;`);o.set(l,a)}}return o});e._zod.parse=(r,o)=&gt;{const a=r.value;if(!Na(a))return r.issues.push({code:&quot;invalid_type&quot;,expected:&quot;object&quot;,input:a,inst:e}),r;const s=i.value.get(a==null?void 0:a[t.discriminator]);return s?s._zod.run(r,o):t.unionFallback?n(r,o):(r.issues.push({code:&quot;invalid_union&quot;,errors:[],note:&quot;No matching discriminator&quot;,input:a,path:[t.discriminator],inst:e}),r)}}),Kw=S(&quot;$ZodIntersection&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value,o=t.left._zod.run({value:r,issues:[]},i),a=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([l,u])=&gt;Ig(n,l,u)):Ig(n,o,a)}});function Ad(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&amp;&amp;t instanceof Date&amp;&amp;+e==+t)return{valid:!0,data:e};if(ja(e)&amp;&amp;ja(t)){const n=Object.keys(t),i=Object.keys(e).filter(o=&gt;n.indexOf(o)!==-1),r={...e,...t};for(const o of i){const a=Ad(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r[o]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&amp;&amp;Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let i=0;i&lt;e.length;i++){const r=e[i],o=t[i],a=Ad(r,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ig(e,t,n){if(t.issues.length&amp;&amp;e.issues.push(...t.issues),n.issues.length&amp;&amp;e.issues.push(...n.issues),Di(e))return e;const i=Ad(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const pu=S(&quot;$ZodTuple&quot;,(e,t)=&gt;{ie.init(e,t);const n=t.items,i=n.length-[...n].reverse().findIndex(r=&gt;r._zod.optin!==&quot;optional&quot;);e._zod.parse=(r,o)=&gt;{const a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:&quot;tuple&quot;,code:&quot;invalid_type&quot;}),r;r.value=[];const s=[];if(!t.rest){const u=a.length&gt;n.length,d=a.length&lt;i-1;if(u||d)return r.issues.push({input:a,inst:e,origin:&quot;array&quot;,...u?{code:&quot;too_big&quot;,maximum:n.length}:{code:&quot;too_small&quot;,minimum:n.length}}),r}let l=-1;for(const u of n){if(l++,l&gt;=a.length&amp;&amp;l&gt;=i)continue;const d=u._zod.run({value:a[l],issues:[]},o);d instanceof Promise?s.push(d.then(h=&gt;Es(h,r,l))):Es(d,r,l)}if(t.rest){const u=a.slice(n.length);for(const d of u){l++;const h=t.rest._zod.run({value:d,issues:[]},o);h instanceof Promise?s.push(h.then(g=&gt;Es(g,r,l))):Es(h,r,l)}}return s.length?Promise.all(s).then(()=&gt;r):r}});function Es(e,t,n){e.issues.length&amp;&amp;t.issues.push(...Vt(n,e.issues)),t.value[n]=e.value}const Jw=S(&quot;$ZodRecord&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;if(!ja(r))return n.issues.push({expected:&quot;record&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n;const o=[];if(t.keyType._zod.values){const a=t.keyType._zod.values;n.value={};for(const l of a)if(typeof l==&quot;string&quot;||typeof l==&quot;number&quot;||typeof l==&quot;symbol&quot;){const u=t.valueType._zod.run({value:r[l],issues:[]},i);u instanceof Promise?o.push(u.then(d=&gt;{d.issues.length&amp;&amp;n.issues.push(...Vt(l,d.issues)),n.value[l]=d.value})):(u.issues.length&amp;&amp;n.issues.push(...Vt(l,u.issues)),n.value[l]=u.value)}let s;for(const l in r)a.has(l)||(s=s??[],s.push(l));s&amp;&amp;s.length&gt;0&amp;&amp;n.issues.push({code:&quot;unrecognized_keys&quot;,input:r,inst:e,keys:s})}else{n.value={};for(const a of Reflect.ownKeys(r)){if(a===&quot;__proto__&quot;)continue;const s=t.keyType._zod.run({value:a,issues:[]},i);if(s instanceof Promise)throw new Error(&quot;Async schemas not supported in object keys currently&quot;);if(s.issues.length){n.issues.push({origin:&quot;record&quot;,code:&quot;invalid_key&quot;,issues:s.issues.map(u=&gt;pn(u,i,pt())),input:a,path:[a],inst:e}),n.value[s.value]=s.value;continue}const l=t.valueType._zod.run({value:r[a],issues:[]},i);l instanceof Promise?o.push(l.then(u=&gt;{u.issues.length&amp;&amp;n.issues.push(...Vt(a,u.issues)),n.value[s.value]=u.value})):(l.issues.length&amp;&amp;n.issues.push(...Vt(a,l.issues)),n.value[s.value]=l.value)}}return o.length?Promise.all(o).then(()=&gt;n):n}}),Gw=S(&quot;$ZodMap&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;if(!(r instanceof Map))return n.issues.push({expected:&quot;map&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n;const o=[];n.value=new Map;for(const[a,s]of r){const l=t.keyType._zod.run({value:a,issues:[]},i),u=t.valueType._zod.run({value:s,issues:[]},i);l instanceof Promise||u instanceof Promise?o.push(Promise.all([l,u]).then(([d,h])=&gt;{Eg(d,h,n,a,r,e,i)})):Eg(l,u,n,a,r,e,i)}return o.length?Promise.all(o).then(()=&gt;n):n}});function Eg(e,t,n,i,r,o,a){e.issues.length&amp;&amp;(zl.has(typeof i)?n.issues.push(...Vt(i,e.issues)):n.issues.push({origin:&quot;map&quot;,code:&quot;invalid_key&quot;,input:r,inst:o,issues:e.issues.map(s=&gt;pn(s,a,pt()))})),t.issues.length&amp;&amp;(zl.has(typeof i)?n.issues.push(...Vt(i,t.issues)):n.issues.push({origin:&quot;map&quot;,code:&quot;invalid_element&quot;,input:r,inst:o,key:i,issues:t.issues.map(s=&gt;pn(s,a,pt()))})),n.value.set(e.value,t.value)}const qw=S(&quot;$ZodSet&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:&quot;set&quot;,code:&quot;invalid_type&quot;}),n;const o=[];n.value=new Set;for(const a of r){const s=t.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(l=&gt;Ng(l,n))):Ng(s,n)}return o.length?Promise.all(o).then(()=&gt;n):n}});function Ng(e,t){e.issues.length&amp;&amp;t.issues.push(...e.issues),t.value.add(e.value)}const Qw=S(&quot;$ZodEnum&quot;,(e,t)=&gt;{ie.init(e,t);const n=nm(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(i=&gt;zl.has(typeof i)).map(i=&gt;typeof i==&quot;string&quot;?si(i):i.toString()).join(&quot;|&quot;)})$`),e._zod.parse=(i,r)=&gt;{const o=i.value;return e._zod.values.has(o)||i.issues.push({code:&quot;invalid_value&quot;,values:n,input:o,inst:e}),i}}),Xw=S(&quot;$ZodLiteral&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=&gt;typeof n==&quot;string&quot;?si(n):n?n.toString():String(n)).join(&quot;|&quot;)})$`),e._zod.parse=(n,i)=&gt;{const r=n.value;return e._zod.values.has(r)||n.issues.push({code:&quot;invalid_value&quot;,values:t.values,input:r,inst:e}),n}}),Yw=S(&quot;$ZodFile&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;return r instanceof File||n.issues.push({expected:&quot;file&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n}}),wm=S(&quot;$ZodTransform&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.parse=(n,i)=&gt;{const r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=&gt;(n.value=a,n));if(r instanceof Promise)throw new to;return n.value=r,n}}),ek=S(&quot;$ZodOptional&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.optin=&quot;optional&quot;,e._zod.optout=&quot;optional&quot;,ye(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ye(e._zod,&quot;pattern&quot;,()=&gt;{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${du(n.source)})?$`):void 0}),e._zod.parse=(n,i)=&gt;t.innerType._zod.optin===&quot;optional&quot;?t.innerType._zod.run(n,i):n.value===void 0?n:t.innerType._zod.run(n,i)}),tk=S(&quot;$ZodNullable&quot;,(e,t)=&gt;{ie.init(e,t),ye(e._zod,&quot;optin&quot;,()=&gt;t.innerType._zod.optin),ye(e._zod,&quot;optout&quot;,()=&gt;t.innerType._zod.optout),ye(e._zod,&quot;pattern&quot;,()=&gt;{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${du(n.source)}|null)$`):void 0}),ye(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=&gt;n.value===null?n:t.innerType._zod.run(n,i)}),nk=S(&quot;$ZodDefault&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.optin=&quot;optional&quot;,ye(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values),e._zod.parse=(n,i)=&gt;{if(n.value===void 0)return n.value=t.defaultValue,n;const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=&gt;jg(o,t)):jg(r,t)}});function jg(e,t){return e.value===void 0&amp;&amp;(e.value=t.defaultValue),e}const rk=S(&quot;$ZodPrefault&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.optin=&quot;optional&quot;,ye(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values),e._zod.parse=(n,i)=&gt;(n.value===void 0&amp;&amp;(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),ik=S(&quot;$ZodNonOptional&quot;,(e,t)=&gt;{ie.init(e,t),ye(e._zod,&quot;values&quot;,()=&gt;{const n=t.innerType._zod.values;return n?new Set([...n].filter(i=&gt;i!==void 0)):void 0}),e._zod.parse=(n,i)=&gt;{const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=&gt;Og(o,e)):Og(r,e)}});function Og(e,t){return!e.issues.length&amp;&amp;e.value===void 0&amp;&amp;e.issues.push({code:&quot;invalid_type&quot;,expected:&quot;nonoptional&quot;,input:e.value,inst:t}),e}const ok=S(&quot;$ZodSuccess&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.parse=(n,i)=&gt;{const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=&gt;(n.value=o.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),ak=S(&quot;$ZodCatch&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.optin=&quot;optional&quot;,ye(e._zod,&quot;optout&quot;,()=&gt;t.innerType._zod.optout),ye(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values),e._zod.parse=(n,i)=&gt;{const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=&gt;(n.value=o.value,o.issues.length&amp;&amp;(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=&gt;pn(a,i,pt()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&amp;&amp;(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=&gt;pn(o,i,pt()))},input:n.value}),n.issues=[]),n)}}),sk=S(&quot;$ZodNaN&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.parse=(n,i)=&gt;((typeof n.value!=&quot;number&quot;||!Number.isNaN(n.value))&amp;&amp;n.issues.push({input:n.value,inst:e,expected:&quot;nan&quot;,code:&quot;invalid_type&quot;}),n)}),km=S(&quot;$ZodPipe&quot;,(e,t)=&gt;{ie.init(e,t),ye(e._zod,&quot;values&quot;,()=&gt;t.in._zod.values),ye(e._zod,&quot;optin&quot;,()=&gt;t.in._zod.optin),ye(e._zod,&quot;optout&quot;,()=&gt;t.out._zod.optout),e._zod.parse=(n,i)=&gt;{const r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=&gt;zg(o,t,i)):zg(r,t,i)}});function zg(e,t,n){return Di(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}const lk=S(&quot;$ZodReadonly&quot;,(e,t)=&gt;{ie.init(e,t),ye(e._zod,&quot;propValues&quot;,()=&gt;t.innerType._zod.propValues),ye(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values),ye(e._zod,&quot;optin&quot;,()=&gt;t.innerType._zod.optin),ye(e._zod,&quot;optout&quot;,()=&gt;t.innerType._zod.optout),e._zod.parse=(n,i)=&gt;{const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(Tg):Tg(r)}});function Tg(e){return e.value=Object.freeze(e.value),e}const uk=S(&quot;$ZodTemplateLiteral&quot;,(e,t)=&gt;{ie.init(e,t);const n=[];for(const i of t.parts)if(i instanceof ie){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);const r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const o=r.startsWith(&quot;^&quot;)?1:0,a=r.endsWith(&quot;$&quot;)?r.length-1:r.length;n.push(r.slice(o,a))}else if(i===null||J_.has(typeof i))n.push(si(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join(&quot;&quot;)}$`),e._zod.parse=(i,r)=&gt;typeof i.value!=&quot;string&quot;?(i.issues.push({input:i.value,inst:e,expected:&quot;template_literal&quot;,code:&quot;invalid_type&quot;}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:&quot;invalid_format&quot;,format:&quot;template_literal&quot;,pattern:e._zod.pattern.source}),i)}),ck=S(&quot;$ZodPromise&quot;,(e,t)=&gt;{ie.init(e,t),e._zod.parse=(n,i)=&gt;Promise.resolve(n.value).then(r=&gt;t.innerType._zod.run({value:r,issues:[]},i))}),dk=S(&quot;$ZodLazy&quot;,(e,t)=&gt;{ie.init(e,t),ye(e._zod,&quot;innerType&quot;,()=&gt;t.getter()),ye(e._zod,&quot;pattern&quot;,()=&gt;e._zod.innerType._zod.pattern),ye(e._zod,&quot;propValues&quot;,()=&gt;e._zod.innerType._zod.propValues),ye(e._zod,&quot;optin&quot;,()=&gt;e._zod.innerType._zod.optin),ye(e._zod,&quot;optout&quot;,()=&gt;e._zod.innerType._zod.optout),e._zod.parse=(n,i)=&gt;e._zod.innerType._zod.run(n,i)}),fk=S(&quot;$ZodCustom&quot;,(e,t)=&gt;{Fe.init(e,t),ie.init(e,t),e._zod.parse=(n,i)=&gt;n,e._zod.check=n=&gt;{const i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(o=&gt;Cg(o,n,i,e));Cg(r,n,i,e)}});function Cg(e,t,n,i){if(!e){const r={code:&quot;custom&quot;,input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&amp;&amp;(r.params=i._zod.def.params),t.issues.push(no(r))}}const YE=()=&gt;{const e={string:{unit:&quot;حرف&quot;,verb:&quot;أن يحوي&quot;},file:{unit:&quot;بايت&quot;,verb:&quot;أن يحوي&quot;},array:{unit:&quot;عنصر&quot;,verb:&quot;أن يحوي&quot;},set:{unit:&quot;عنصر&quot;,verb:&quot;أن يحوي&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;مدخل&quot;,email:&quot;بريد إلكتروني&quot;,url:&quot;رابط&quot;,emoji:&quot;إيموجي&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;تاريخ ووقت بمعيار ISO&quot;,date:&quot;تاريخ بمعيار ISO&quot;,time:&quot;وقت بمعيار ISO&quot;,duration:&quot;مدة بمعيار ISO&quot;,ipv4:&quot;عنوان IPv4&quot;,ipv6:&quot;عنوان IPv6&quot;,cidrv4:&quot;مدى عناوين بصيغة IPv4&quot;,cidrv6:&quot;مدى عناوين بصيغة IPv6&quot;,base64:&quot;نَص بترميز base64-encoded&quot;,base64url:&quot;نَص بترميز base64url-encoded&quot;,json_string:&quot;نَص على هيئة JSON&quot;,e164:&quot;رقم هاتف بمعيار E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;مدخل&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`مدخلات غير مقبولة: يفترض إدخال ${r.expected}، ولكن تم إدخال ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${se(r.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?` أكبر من اللازم: يفترض أن تكون ${r.origin??&quot;القيمة&quot;} ${o} ${r.maximum.toString()} ${a.unit??&quot;عنصر&quot;}`:`أكبر من اللازم: يفترض أن تكون ${r.origin??&quot;القيمة&quot;} ${o} ${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${o} ${r.minimum.toString()} ${a.unit}`:`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${o} ${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`نَص غير مقبول: يجب أن يبدأ بـ &quot;${r.prefix}&quot;`:o.format===&quot;ends_with&quot;?`نَص غير مقبول: يجب أن ينتهي بـ &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`نَص غير مقبول: يجب أن يتضمَّن &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`نَص غير مقبول: يجب أن يطابق النمط ${o.pattern}`:`${i[o.format]??r.format} غير مقبول`}case&quot;not_multiple_of&quot;:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`معرف${r.keys.length&gt;1?&quot;ات&quot;:&quot;&quot;} غريب${r.keys.length&gt;1?&quot;ة&quot;:&quot;&quot;}: ${B(r.keys,&quot;، &quot;)}`;case&quot;invalid_key&quot;:return`معرف غير مقبول في ${r.origin}`;case&quot;invalid_union&quot;:return&quot;مدخل غير مقبول&quot;;case&quot;invalid_element&quot;:return`مدخل غير مقبول في ${r.origin}`;default:return&quot;مدخل غير مقبول&quot;}}};function eN(){return{localeError:YE()}}const tN=()=&gt;{const e={string:{unit:&quot;simvol&quot;,verb:&quot;olmalıdır&quot;},file:{unit:&quot;bayt&quot;,verb:&quot;olmalıdır&quot;},array:{unit:&quot;element&quot;,verb:&quot;olmalıdır&quot;},set:{unit:&quot;element&quot;,verb:&quot;olmalıdır&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;input&quot;,email:&quot;email address&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO datetime&quot;,date:&quot;ISO date&quot;,time:&quot;ISO time&quot;,duration:&quot;ISO duration&quot;,ipv4:&quot;IPv4 address&quot;,ipv6:&quot;IPv6 address&quot;,cidrv4:&quot;IPv4 range&quot;,cidrv6:&quot;IPv6 range&quot;,base64:&quot;base64-encoded string&quot;,base64url:&quot;base64url-encoded string&quot;,json_string:&quot;JSON string&quot;,e164:&quot;E.164 number&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Yanlış dəyər: gözlənilən ${r.expected}, daxil olan ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Yanlış dəyər: gözlənilən ${se(r.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Çox böyük: gözlənilən ${r.origin??&quot;dəyər&quot;} ${o}${r.maximum.toString()} ${a.unit??&quot;element&quot;}`:`Çox böyük: gözlənilən ${r.origin??&quot;dəyər&quot;} ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Çox kiçik: gözlənilən ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`Çox kiçik: gözlənilən ${r.origin} ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Yanlış mətn: &quot;${o.prefix}&quot; ilə başlamalıdır`:o.format===&quot;ends_with&quot;?`Yanlış mətn: &quot;${o.suffix}&quot; ilə bitməlidir`:o.format===&quot;includes&quot;?`Yanlış mətn: &quot;${o.includes}&quot; daxil olmalıdır`:o.format===&quot;regex&quot;?`Yanlış mətn: ${o.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Yanlış ədəd: ${r.divisor} ilə bölünə bilən olmalıdır`;case&quot;unrecognized_keys&quot;:return`Tanınmayan açar${r.keys.length&gt;1?&quot;lar&quot;:&quot;&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`${r.origin} daxilində yanlış açar`;case&quot;invalid_union&quot;:return&quot;Yanlış dəyər&quot;;case&quot;invalid_element&quot;:return`${r.origin} daxilində yanlış dəyər`;default:return&quot;Yanlış dəyər&quot;}}};function nN(){return{localeError:tN()}}function Ag(e,t,n,i){const r=Math.abs(e),o=r%10,a=r%100;return a&gt;=11&amp;&amp;a&lt;=19?i:o===1?t:o&gt;=2&amp;&amp;o&lt;=4?n:i}const rN=()=&gt;{const e={string:{unit:{one:&quot;сімвал&quot;,few:&quot;сімвалы&quot;,many:&quot;сімвалаў&quot;},verb:&quot;мець&quot;},array:{unit:{one:&quot;элемент&quot;,few:&quot;элементы&quot;,many:&quot;элементаў&quot;},verb:&quot;мець&quot;},set:{unit:{one:&quot;элемент&quot;,few:&quot;элементы&quot;,many:&quot;элементаў&quot;},verb:&quot;мець&quot;},file:{unit:{one:&quot;байт&quot;,few:&quot;байты&quot;,many:&quot;байтаў&quot;},verb:&quot;мець&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;лік&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;масіў&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;увод&quot;,email:&quot;email адрас&quot;,url:&quot;URL&quot;,emoji:&quot;эмодзі&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO дата і час&quot;,date:&quot;ISO дата&quot;,time:&quot;ISO час&quot;,duration:&quot;ISO працягласць&quot;,ipv4:&quot;IPv4 адрас&quot;,ipv6:&quot;IPv6 адрас&quot;,cidrv4:&quot;IPv4 дыяпазон&quot;,cidrv6:&quot;IPv6 дыяпазон&quot;,base64:&quot;радок у фармаце base64&quot;,base64url:&quot;радок у фармаце base64url&quot;,json_string:&quot;JSON радок&quot;,e164:&quot;нумар E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;увод&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Няправільны ўвод: чакаўся ${r.expected}, атрымана ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Няправільны ўвод: чакалася ${se(r.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);if(a){const s=Number(r.maximum),l=Ag(s,a.unit.one,a.unit.few,a.unit.many);return`Занадта вялікі: чакалася, што ${r.origin??&quot;значэнне&quot;} павінна ${a.verb} ${o}${r.maximum.toString()} ${l}`}return`Занадта вялікі: чакалася, што ${r.origin??&quot;значэнне&quot;} павінна быць ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);if(a){const s=Number(r.minimum),l=Ag(s,a.unit.one,a.unit.few,a.unit.many);return`Занадта малы: чакалася, што ${r.origin} павінна ${a.verb} ${o}${r.minimum.toString()} ${l}`}return`Занадта малы: чакалася, што ${r.origin} павінна быць ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Няправільны радок: павінен пачынацца з &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Няправільны радок: павінен заканчвацца на &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Няправільны радок: павінен змяшчаць &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Няправільны радок: павінен адпавядаць шаблону ${o.pattern}`:`Няправільны ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Няправільны лік: павінен быць кратным ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Нераспазнаны ${r.keys.length&gt;1?&quot;ключы&quot;:&quot;ключ&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Няправільны ключ у ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Няправільны ўвод&quot;;case&quot;invalid_element&quot;:return`Няправільнае значэнне ў ${r.origin}`;default:return&quot;Няправільны ўвод&quot;}}};function iN(){return{localeError:rN()}}const oN=()=&gt;{const e={string:{unit:&quot;caràcters&quot;,verb:&quot;contenir&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;contenir&quot;},array:{unit:&quot;elements&quot;,verb:&quot;contenir&quot;},set:{unit:&quot;elements&quot;,verb:&quot;contenir&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;entrada&quot;,email:&quot;adreça electrònica&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;data i hora ISO&quot;,date:&quot;data ISO&quot;,time:&quot;hora ISO&quot;,duration:&quot;durada ISO&quot;,ipv4:&quot;adreça IPv4&quot;,ipv6:&quot;adreça IPv6&quot;,cidrv4:&quot;rang IPv4&quot;,cidrv6:&quot;rang IPv6&quot;,base64:&quot;cadena codificada en base64&quot;,base64url:&quot;cadena codificada en base64url&quot;,json_string:&quot;cadena JSON&quot;,e164:&quot;número E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;entrada&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Tipus invàlid: s&#39;esperava ${r.expected}, s&#39;ha rebut ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Valor invàlid: s&#39;esperava ${se(r.values[0])}`:`Opció invàlida: s&#39;esperava una de ${B(r.values,&quot; o &quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;com a màxim&quot;:&quot;menys de&quot;,a=t(r.origin);return a?`Massa gran: s&#39;esperava que ${r.origin??&quot;el valor&quot;} contingués ${o} ${r.maximum.toString()} ${a.unit??&quot;elements&quot;}`:`Massa gran: s&#39;esperava que ${r.origin??&quot;el valor&quot;} fos ${o} ${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;com a mínim&quot;:&quot;més de&quot;,a=t(r.origin);return a?`Massa petit: s&#39;esperava que ${r.origin} contingués ${o} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s&#39;esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Format invàlid: ha de començar amb &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Format invàlid: ha d&#39;acabar amb &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Format invàlid: ha d&#39;incloure &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Format invàlid: ha de coincidir amb el patró ${o.pattern}`:`Format invàlid per a ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Número invàlid: ha de ser múltiple de ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Clau${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} no reconeguda${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Clau invàlida a ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Entrada invàlida&quot;;case&quot;invalid_element&quot;:return`Element invàlid a ${r.origin}`;default:return&quot;Entrada invàlida&quot;}}};function aN(){return{localeError:oN()}}const sN=()=&gt;{const e={string:{unit:&quot;znaků&quot;,verb:&quot;mít&quot;},file:{unit:&quot;bajtů&quot;,verb:&quot;mít&quot;},array:{unit:&quot;prvků&quot;,verb:&quot;mít&quot;},set:{unit:&quot;prvků&quot;,verb:&quot;mít&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;číslo&quot;;case&quot;string&quot;:return&quot;řetězec&quot;;case&quot;boolean&quot;:return&quot;boolean&quot;;case&quot;bigint&quot;:return&quot;bigint&quot;;case&quot;function&quot;:return&quot;funkce&quot;;case&quot;symbol&quot;:return&quot;symbol&quot;;case&quot;undefined&quot;:return&quot;undefined&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;pole&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;regulární výraz&quot;,email:&quot;e-mailová adresa&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;datum a čas ve formátu ISO&quot;,date:&quot;datum ve formátu ISO&quot;,time:&quot;čas ve formátu ISO&quot;,duration:&quot;doba trvání ISO&quot;,ipv4:&quot;IPv4 adresa&quot;,ipv6:&quot;IPv6 adresa&quot;,cidrv4:&quot;rozsah IPv4&quot;,cidrv6:&quot;rozsah IPv6&quot;,base64:&quot;řetězec zakódovaný ve formátu base64&quot;,base64url:&quot;řetězec zakódovaný ve formátu base64url&quot;,json_string:&quot;řetězec ve formátu JSON&quot;,e164:&quot;číslo E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;vstup&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Neplatný vstup: očekáváno ${r.expected}, obdrženo ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Neplatný vstup: očekáváno ${se(r.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Hodnota je příliš velká: ${r.origin??&quot;hodnota&quot;} musí mít ${o}${r.maximum.toString()} ${a.unit??&quot;prvků&quot;}`:`Hodnota je příliš velká: ${r.origin??&quot;hodnota&quot;} musí být ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Hodnota je příliš malá: ${r.origin??&quot;hodnota&quot;} musí mít ${o}${r.minimum.toString()} ${a.unit??&quot;prvků&quot;}`:`Hodnota je příliš malá: ${r.origin??&quot;hodnota&quot;} musí být ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Neplatný řetězec: musí začínat na &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Neplatný řetězec: musí končit na &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Neplatný řetězec: musí obsahovat &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Neplatný řetězec: musí odpovídat vzoru ${o.pattern}`:`Neplatný formát ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Neplatné číslo: musí být násobkem ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Neznámé klíče: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Neplatný klíč v ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Neplatný vstup&quot;;case&quot;invalid_element&quot;:return`Neplatná hodnota v ${r.origin}`;default:return&quot;Neplatný vstup&quot;}}};function lN(){return{localeError:sN()}}const uN=()=&gt;{const e={string:{unit:&quot;Zeichen&quot;,verb:&quot;zu haben&quot;},file:{unit:&quot;Bytes&quot;,verb:&quot;zu haben&quot;},array:{unit:&quot;Elemente&quot;,verb:&quot;zu haben&quot;},set:{unit:&quot;Elemente&quot;,verb:&quot;zu haben&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;Zahl&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;Array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;Eingabe&quot;,email:&quot;E-Mail-Adresse&quot;,url:&quot;URL&quot;,emoji:&quot;Emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO-Datum und -Uhrzeit&quot;,date:&quot;ISO-Datum&quot;,time:&quot;ISO-Uhrzeit&quot;,duration:&quot;ISO-Dauer&quot;,ipv4:&quot;IPv4-Adresse&quot;,ipv6:&quot;IPv6-Adresse&quot;,cidrv4:&quot;IPv4-Bereich&quot;,cidrv6:&quot;IPv6-Bereich&quot;,base64:&quot;Base64-codierter String&quot;,base64url:&quot;Base64-URL-codierter String&quot;,json_string:&quot;JSON-String&quot;,e164:&quot;E.164-Nummer&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;Eingabe&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Ungültige Eingabe: erwartet ${r.expected}, erhalten ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Ungültige Eingabe: erwartet ${se(r.values[0])}`:`Ungültige Option: erwartet eine von ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Zu groß: erwartet, dass ${r.origin??&quot;Wert&quot;} ${o}${r.maximum.toString()} ${a.unit??&quot;Elemente&quot;} hat`:`Zu groß: erwartet, dass ${r.origin??&quot;Wert&quot;} ${o}${r.maximum.toString()} ist`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Ungültiger String: muss mit &quot;${o.prefix}&quot; beginnen`:o.format===&quot;ends_with&quot;?`Ungültiger String: muss mit &quot;${o.suffix}&quot; enden`:o.format===&quot;includes&quot;?`Ungültiger String: muss &quot;${o.includes}&quot; enthalten`:o.format===&quot;regex&quot;?`Ungültiger String: muss dem Muster ${o.pattern} entsprechen`:`Ungültig: ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Ungültige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case&quot;unrecognized_keys&quot;:return`${r.keys.length&gt;1?&quot;Unbekannte Schlüssel&quot;:&quot;Unbekannter Schlüssel&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Ungültiger Schlüssel in ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Ungültige Eingabe&quot;;case&quot;invalid_element&quot;:return`Ungültiger Wert in ${r.origin}`;default:return&quot;Ungültige Eingabe&quot;}}};function cN(){return{localeError:uN()}}const dN=e=&gt;{const t=typeof e;switch(t){case&quot;number&quot;:return Number.isNaN(e)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(e))return&quot;array&quot;;if(e===null)return&quot;null&quot;;if(Object.getPrototypeOf(e)!==Object.prototype&amp;&amp;e.constructor)return e.constructor.name}}return t},fN=()=&gt;{const e={string:{unit:&quot;characters&quot;,verb:&quot;to have&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;to have&quot;},array:{unit:&quot;items&quot;,verb:&quot;to have&quot;},set:{unit:&quot;items&quot;,verb:&quot;to have&quot;}};function t(i){return e[i]??null}const n={regex:&quot;input&quot;,email:&quot;email address&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO datetime&quot;,date:&quot;ISO date&quot;,time:&quot;ISO time&quot;,duration:&quot;ISO duration&quot;,ipv4:&quot;IPv4 address&quot;,ipv6:&quot;IPv6 address&quot;,cidrv4:&quot;IPv4 range&quot;,cidrv6:&quot;IPv6 range&quot;,base64:&quot;base64-encoded string&quot;,base64url:&quot;base64url-encoded string&quot;,json_string:&quot;JSON string&quot;,e164:&quot;E.164 number&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return i=&gt;{switch(i.code){case&quot;invalid_type&quot;:return`Invalid input: expected ${i.expected}, received ${dN(i.input)}`;case&quot;invalid_value&quot;:return i.values.length===1?`Invalid input: expected ${se(i.values[0])}`:`Invalid option: expected one of ${B(i.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const r=i.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,o=t(i.origin);return o?`Too big: expected ${i.origin??&quot;value&quot;} to have ${r}${i.maximum.toString()} ${o.unit??&quot;elements&quot;}`:`Too big: expected ${i.origin??&quot;value&quot;} to be ${r}${i.maximum.toString()}`}case&quot;too_small&quot;:{const r=i.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,o=t(i.origin);return o?`Too small: expected ${i.origin} to have ${r}${i.minimum.toString()} ${o.unit}`:`Too small: expected ${i.origin} to be ${r}${i.minimum.toString()}`}case&quot;invalid_format&quot;:{const r=i;return r.format===&quot;starts_with&quot;?`Invalid string: must start with &quot;${r.prefix}&quot;`:r.format===&quot;ends_with&quot;?`Invalid string: must end with &quot;${r.suffix}&quot;`:r.format===&quot;includes&quot;?`Invalid string: must include &quot;${r.includes}&quot;`:r.format===&quot;regex&quot;?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${n[r.format]??i.format}`}case&quot;not_multiple_of&quot;:return`Invalid number: must be a multiple of ${i.divisor}`;case&quot;unrecognized_keys&quot;:return`Unrecognized key${i.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${B(i.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Invalid key in ${i.origin}`;case&quot;invalid_union&quot;:return&quot;Invalid input&quot;;case&quot;invalid_element&quot;:return`Invalid value in ${i.origin}`;default:return&quot;Invalid input&quot;}}};function mk(){return{localeError:fN()}}const mN=e=&gt;{const t=typeof e;switch(t){case&quot;number&quot;:return Number.isNaN(e)?&quot;NaN&quot;:&quot;nombro&quot;;case&quot;object&quot;:{if(Array.isArray(e))return&quot;tabelo&quot;;if(e===null)return&quot;senvalora&quot;;if(Object.getPrototypeOf(e)!==Object.prototype&amp;&amp;e.constructor)return e.constructor.name}}return t},pN=()=&gt;{const e={string:{unit:&quot;karaktrojn&quot;,verb:&quot;havi&quot;},file:{unit:&quot;bajtojn&quot;,verb:&quot;havi&quot;},array:{unit:&quot;elementojn&quot;,verb:&quot;havi&quot;},set:{unit:&quot;elementojn&quot;,verb:&quot;havi&quot;}};function t(i){return e[i]??null}const n={regex:&quot;enigo&quot;,email:&quot;retadreso&quot;,url:&quot;URL&quot;,emoji:&quot;emoĝio&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO-datotempo&quot;,date:&quot;ISO-dato&quot;,time:&quot;ISO-tempo&quot;,duration:&quot;ISO-daŭro&quot;,ipv4:&quot;IPv4-adreso&quot;,ipv6:&quot;IPv6-adreso&quot;,cidrv4:&quot;IPv4-rango&quot;,cidrv6:&quot;IPv6-rango&quot;,base64:&quot;64-ume kodita karaktraro&quot;,base64url:&quot;URL-64-ume kodita karaktraro&quot;,json_string:&quot;JSON-karaktraro&quot;,e164:&quot;E.164-nombro&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;enigo&quot;};return i=&gt;{switch(i.code){case&quot;invalid_type&quot;:return`Nevalida enigo: atendiĝis ${i.expected}, riceviĝis ${mN(i.input)}`;case&quot;invalid_value&quot;:return i.values.length===1?`Nevalida enigo: atendiĝis ${se(i.values[0])}`:`Nevalida opcio: atendiĝis unu el ${B(i.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const r=i.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,o=t(i.origin);return o?`Tro granda: atendiĝis ke ${i.origin??&quot;valoro&quot;} havu ${r}${i.maximum.toString()} ${o.unit??&quot;elementojn&quot;}`:`Tro granda: atendiĝis ke ${i.origin??&quot;valoro&quot;} havu ${r}${i.maximum.toString()}`}case&quot;too_small&quot;:{const r=i.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,o=t(i.origin);return o?`Tro malgranda: atendiĝis ke ${i.origin} havu ${r}${i.minimum.toString()} ${o.unit}`:`Tro malgranda: atendiĝis ke ${i.origin} estu ${r}${i.minimum.toString()}`}case&quot;invalid_format&quot;:{const r=i;return r.format===&quot;starts_with&quot;?`Nevalida karaktraro: devas komenciĝi per &quot;${r.prefix}&quot;`:r.format===&quot;ends_with&quot;?`Nevalida karaktraro: devas finiĝi per &quot;${r.suffix}&quot;`:r.format===&quot;includes&quot;?`Nevalida karaktraro: devas inkluzivi &quot;${r.includes}&quot;`:r.format===&quot;regex&quot;?`Nevalida karaktraro: devas kongrui kun la modelo ${r.pattern}`:`Nevalida ${n[r.format]??i.format}`}case&quot;not_multiple_of&quot;:return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case&quot;unrecognized_keys&quot;:return`Nekonata${i.keys.length&gt;1?&quot;j&quot;:&quot;&quot;} ŝlosilo${i.keys.length&gt;1?&quot;j&quot;:&quot;&quot;}: ${B(i.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Nevalida ŝlosilo en ${i.origin}`;case&quot;invalid_union&quot;:return&quot;Nevalida enigo&quot;;case&quot;invalid_element&quot;:return`Nevalida valoro en ${i.origin}`;default:return&quot;Nevalida enigo&quot;}}};function hN(){return{localeError:pN()}}const gN=()=&gt;{const e={string:{unit:&quot;caracteres&quot;,verb:&quot;tener&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;tener&quot;},array:{unit:&quot;elementos&quot;,verb:&quot;tener&quot;},set:{unit:&quot;elementos&quot;,verb:&quot;tener&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;número&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;arreglo&quot;;if(r===null)return&quot;nulo&quot;;if(Object.getPrototypeOf(r)!==Object.prototype)return r.constructor.name}}return o},i={regex:&quot;entrada&quot;,email:&quot;dirección de correo electrónico&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;fecha y hora ISO&quot;,date:&quot;fecha ISO&quot;,time:&quot;hora ISO&quot;,duration:&quot;duración ISO&quot;,ipv4:&quot;dirección IPv4&quot;,ipv6:&quot;dirección IPv6&quot;,cidrv4:&quot;rango IPv4&quot;,cidrv6:&quot;rango IPv6&quot;,base64:&quot;cadena codificada en base64&quot;,base64url:&quot;URL codificada en base64&quot;,json_string:&quot;cadena JSON&quot;,e164:&quot;número E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;entrada&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Entrada inválida: se esperaba ${r.expected}, recibido ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Entrada inválida: se esperaba ${se(r.values[0])}`:`Opción inválida: se esperaba una de ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Demasiado grande: se esperaba que ${r.origin??&quot;valor&quot;} tuviera ${o}${r.maximum.toString()} ${a.unit??&quot;elementos&quot;}`:`Demasiado grande: se esperaba que ${r.origin??&quot;valor&quot;} fuera ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Demasiado pequeño: se esperaba que ${r.origin} tuviera ${o}${r.minimum.toString()} ${a.unit}`:`Demasiado pequeño: se esperaba que ${r.origin} fuera ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Cadena inválida: debe comenzar con &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Cadena inválida: debe terminar en &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Cadena inválida: debe incluir &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Cadena inválida: debe coincidir con el patrón ${o.pattern}`:`Inválido ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Número inválido: debe ser múltiplo de ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Llave${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} desconocida${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Llave inválida en ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Entrada inválida&quot;;case&quot;invalid_element&quot;:return`Valor inválido en ${r.origin}`;default:return&quot;Entrada inválida&quot;}}};function vN(){return{localeError:gN()}}const yN=()=&gt;{const e={string:{unit:&quot;کاراکتر&quot;,verb:&quot;داشته باشد&quot;},file:{unit:&quot;بایت&quot;,verb:&quot;داشته باشد&quot;},array:{unit:&quot;آیتم&quot;,verb:&quot;داشته باشد&quot;},set:{unit:&quot;آیتم&quot;,verb:&quot;داشته باشد&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;عدد&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;آرایه&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;ورودی&quot;,email:&quot;آدرس ایمیل&quot;,url:&quot;URL&quot;,emoji:&quot;ایموجی&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;تاریخ و زمان ایزو&quot;,date:&quot;تاریخ ایزو&quot;,time:&quot;زمان ایزو&quot;,duration:&quot;مدت زمان ایزو&quot;,ipv4:&quot;IPv4 آدرس&quot;,ipv6:&quot;IPv6 آدرس&quot;,cidrv4:&quot;IPv4 دامنه&quot;,cidrv6:&quot;IPv6 دامنه&quot;,base64:&quot;base64-encoded رشته&quot;,base64url:&quot;base64url-encoded رشته&quot;,json_string:&quot;JSON رشته&quot;,e164:&quot;E.164 عدد&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;ورودی&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`ورودی نامعتبر: می‌بایست ${r.expected} می‌بود، ${n(r.input)} دریافت شد`;case&quot;invalid_value&quot;:return r.values.length===1?`ورودی نامعتبر: می‌بایست ${se(r.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${B(r.values,&quot;|&quot;)} می‌بود`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`خیلی بزرگ: ${r.origin??&quot;مقدار&quot;} باید ${o}${r.maximum.toString()} ${a.unit??&quot;عنصر&quot;} باشد`:`خیلی بزرگ: ${r.origin??&quot;مقدار&quot;} باید ${o}${r.maximum.toString()} باشد`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`خیلی کوچک: ${r.origin} باید ${o}${r.minimum.toString()} ${a.unit} باشد`:`خیلی کوچک: ${r.origin} باید ${o}${r.minimum.toString()} باشد`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`رشته نامعتبر: باید با &quot;${o.prefix}&quot; شروع شود`:o.format===&quot;ends_with&quot;?`رشته نامعتبر: باید با &quot;${o.suffix}&quot; تمام شود`:o.format===&quot;includes&quot;?`رشته نامعتبر: باید شامل &quot;${o.includes}&quot; باشد`:o.format===&quot;regex&quot;?`رشته نامعتبر: باید با الگوی ${o.pattern} مطابقت داشته باشد`:`${i[o.format]??r.format} نامعتبر`}case&quot;not_multiple_of&quot;:return`عدد نامعتبر: باید مضرب ${r.divisor} باشد`;case&quot;unrecognized_keys&quot;:return`کلید${r.keys.length&gt;1?&quot;های&quot;:&quot;&quot;} ناشناس: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`کلید ناشناس در ${r.origin}`;case&quot;invalid_union&quot;:return&quot;ورودی نامعتبر&quot;;case&quot;invalid_element&quot;:return`مقدار نامعتبر در ${r.origin}`;default:return&quot;ورودی نامعتبر&quot;}}};function _N(){return{localeError:yN()}}const wN=()=&gt;{const e={string:{unit:&quot;merkkiä&quot;,subject:&quot;merkkijonon&quot;},file:{unit:&quot;tavua&quot;,subject:&quot;tiedoston&quot;},array:{unit:&quot;alkiota&quot;,subject:&quot;listan&quot;},set:{unit:&quot;alkiota&quot;,subject:&quot;joukon&quot;},number:{unit:&quot;&quot;,subject:&quot;luvun&quot;},bigint:{unit:&quot;&quot;,subject:&quot;suuren kokonaisluvun&quot;},int:{unit:&quot;&quot;,subject:&quot;kokonaisluvun&quot;},date:{unit:&quot;&quot;,subject:&quot;päivämäärän&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;säännöllinen lauseke&quot;,email:&quot;sähköpostiosoite&quot;,url:&quot;URL-osoite&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO-aikaleima&quot;,date:&quot;ISO-päivämäärä&quot;,time:&quot;ISO-aika&quot;,duration:&quot;ISO-kesto&quot;,ipv4:&quot;IPv4-osoite&quot;,ipv6:&quot;IPv6-osoite&quot;,cidrv4:&quot;IPv4-alue&quot;,cidrv6:&quot;IPv6-alue&quot;,base64:&quot;base64-koodattu merkkijono&quot;,base64url:&quot;base64url-koodattu merkkijono&quot;,json_string:&quot;JSON-merkkijono&quot;,e164:&quot;E.164-luku&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;templaattimerkkijono&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Virheellinen tyyppi: odotettiin ${r.expected}, oli ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Virheellinen syöte: täytyy olla ${se(r.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Liian suuri: ${a.subject} täytyy olla ${o}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon täytyy olla ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Liian pieni: ${a.subject} täytyy olla ${o}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon täytyy olla ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Virheellinen syöte: täytyy alkaa &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Virheellinen syöte: täytyy loppua &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Virheellinen syöte: täytyy sisältää &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${o.pattern}`:`Virheellinen ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Virheellinen luku: täytyy olla luvun ${r.divisor} monikerta`;case&quot;unrecognized_keys&quot;:return`${r.keys.length&gt;1?&quot;Tuntemattomat avaimet&quot;:&quot;Tuntematon avain&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return&quot;Virheellinen avain tietueessa&quot;;case&quot;invalid_union&quot;:return&quot;Virheellinen unioni&quot;;case&quot;invalid_element&quot;:return&quot;Virheellinen arvo joukossa&quot;;default:return&quot;Virheellinen syöte&quot;}}};function kN(){return{localeError:wN()}}const xN=()=&gt;{const e={string:{unit:&quot;caractères&quot;,verb:&quot;avoir&quot;},file:{unit:&quot;octets&quot;,verb:&quot;avoir&quot;},array:{unit:&quot;éléments&quot;,verb:&quot;avoir&quot;},set:{unit:&quot;éléments&quot;,verb:&quot;avoir&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;nombre&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;tableau&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;entrée&quot;,email:&quot;adresse e-mail&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;date et heure ISO&quot;,date:&quot;date ISO&quot;,time:&quot;heure ISO&quot;,duration:&quot;durée ISO&quot;,ipv4:&quot;adresse IPv4&quot;,ipv6:&quot;adresse IPv6&quot;,cidrv4:&quot;plage IPv4&quot;,cidrv6:&quot;plage IPv6&quot;,base64:&quot;chaîne encodée en base64&quot;,base64url:&quot;chaîne encodée en base64url&quot;,json_string:&quot;chaîne JSON&quot;,e164:&quot;numéro E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;entrée&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Entrée invalide : ${r.expected} attendu, ${n(r.input)} reçu`;case&quot;invalid_value&quot;:return r.values.length===1?`Entrée invalide : ${se(r.values[0])} attendu`:`Option invalide : une valeur parmi ${B(r.values,&quot;|&quot;)} attendue`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Trop grand : ${r.origin??&quot;valeur&quot;} doit ${a.verb} ${o}${r.maximum.toString()} ${a.unit??&quot;élément(s)&quot;}`:`Trop grand : ${r.origin??&quot;valeur&quot;} doit être ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${r.origin} doit être ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Chaîne invalide : doit commencer par &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Chaîne invalide : doit se terminer par &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Chaîne invalide : doit inclure &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Chaîne invalide : doit correspondre au modèle ${o.pattern}`:`${i[o.format]??r.format} invalide`}case&quot;not_multiple_of&quot;:return`Nombre invalide : doit être un multiple de ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Clé${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} non reconnue${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} : ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Clé invalide dans ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Entrée invalide&quot;;case&quot;invalid_element&quot;:return`Valeur invalide dans ${r.origin}`;default:return&quot;Entrée invalide&quot;}}};function bN(){return{localeError:xN()}}const SN=()=&gt;{const e={string:{unit:&quot;caractères&quot;,verb:&quot;avoir&quot;},file:{unit:&quot;octets&quot;,verb:&quot;avoir&quot;},array:{unit:&quot;éléments&quot;,verb:&quot;avoir&quot;},set:{unit:&quot;éléments&quot;,verb:&quot;avoir&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;entrée&quot;,email:&quot;adresse courriel&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;date-heure ISO&quot;,date:&quot;date ISO&quot;,time:&quot;heure ISO&quot;,duration:&quot;durée ISO&quot;,ipv4:&quot;adresse IPv4&quot;,ipv6:&quot;adresse IPv6&quot;,cidrv4:&quot;plage IPv4&quot;,cidrv6:&quot;plage IPv6&quot;,base64:&quot;chaîne encodée en base64&quot;,base64url:&quot;chaîne encodée en base64url&quot;,json_string:&quot;chaîne JSON&quot;,e164:&quot;numéro E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;entrée&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Entrée invalide : attendu ${r.expected}, reçu ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Entrée invalide : attendu ${se(r.values[0])}`:`Option invalide : attendu l&#39;une des valeurs suivantes ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;≤&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??&quot;la valeur&quot;} ait ${o}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??&quot;la valeur&quot;} soit ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;≥&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Chaîne invalide : doit commencer par &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Chaîne invalide : doit se terminer par &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Chaîne invalide : doit inclure &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Chaîne invalide : doit correspondre au motif ${o.pattern}`:`${i[o.format]??r.format} invalide`}case&quot;not_multiple_of&quot;:return`Nombre invalide : doit être un multiple de ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Clé${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} non reconnue${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} : ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Clé invalide dans ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Entrée invalide&quot;;case&quot;invalid_element&quot;:return`Valeur invalide dans ${r.origin}`;default:return&quot;Entrée invalide&quot;}}};function $N(){return{localeError:SN()}}const IN=()=&gt;{const e={string:{unit:&quot;אותיות&quot;,verb:&quot;לכלול&quot;},file:{unit:&quot;בייטים&quot;,verb:&quot;לכלול&quot;},array:{unit:&quot;פריטים&quot;,verb:&quot;לכלול&quot;},set:{unit:&quot;פריטים&quot;,verb:&quot;לכלול&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;קלט&quot;,email:&quot;כתובת אימייל&quot;,url:&quot;כתובת רשת&quot;,emoji:&quot;אימוג&#39;י&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;תאריך וזמן ISO&quot;,date:&quot;תאריך ISO&quot;,time:&quot;זמן ISO&quot;,duration:&quot;משך זמן ISO&quot;,ipv4:&quot;כתובת IPv4&quot;,ipv6:&quot;כתובת IPv6&quot;,cidrv4:&quot;טווח IPv4&quot;,cidrv6:&quot;טווח IPv6&quot;,base64:&quot;מחרוזת בבסיס 64&quot;,base64url:&quot;מחרוזת בבסיס 64 לכתובות רשת&quot;,json_string:&quot;מחרוזת JSON&quot;,e164:&quot;מספר E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;קלט&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`קלט לא תקין: צריך ${r.expected}, התקבל ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`קלט לא תקין: צריך ${se(r.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות  ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`גדול מדי: ${r.origin??&quot;value&quot;} צריך להיות ${o}${r.maximum.toString()} ${a.unit??&quot;elements&quot;}`:`גדול מדי: ${r.origin??&quot;value&quot;} צריך להיות ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`קטן מדי: ${r.origin} צריך להיות ${o}${r.minimum.toString()} ${a.unit}`:`קטן מדי: ${r.origin} צריך להיות ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`מחרוזת לא תקינה: חייבת להתחיל ב&quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`מחרוזת לא תקינה: חייבת להסתיים ב &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`מחרוזת לא תקינה: חייבת לכלול &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${o.pattern}`:`${i[o.format]??r.format} לא תקין`}case&quot;not_multiple_of&quot;:return`מספר לא תקין: חייב להיות מכפלה של ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`מפתח${r.keys.length&gt;1?&quot;ות&quot;:&quot;&quot;} לא מזוה${r.keys.length&gt;1?&quot;ים&quot;:&quot;ה&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`מפתח לא תקין ב${r.origin}`;case&quot;invalid_union&quot;:return&quot;קלט לא תקין&quot;;case&quot;invalid_element&quot;:return`ערך לא תקין ב${r.origin}`;default:return&quot;קלט לא תקין&quot;}}};function EN(){return{localeError:IN()}}const NN=()=&gt;{const e={string:{unit:&quot;karakter&quot;,verb:&quot;legyen&quot;},file:{unit:&quot;byte&quot;,verb:&quot;legyen&quot;},array:{unit:&quot;elem&quot;,verb:&quot;legyen&quot;},set:{unit:&quot;elem&quot;,verb:&quot;legyen&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;szám&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;tömb&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;bemenet&quot;,email:&quot;email cím&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO időbélyeg&quot;,date:&quot;ISO dátum&quot;,time:&quot;ISO idő&quot;,duration:&quot;ISO időintervallum&quot;,ipv4:&quot;IPv4 cím&quot;,ipv6:&quot;IPv6 cím&quot;,cidrv4:&quot;IPv4 tartomány&quot;,cidrv6:&quot;IPv6 tartomány&quot;,base64:&quot;base64-kódolt string&quot;,base64url:&quot;base64url-kódolt string&quot;,json_string:&quot;JSON string&quot;,e164:&quot;E.164 szám&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;bemenet&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Érvénytelen bemenet: a várt érték ${r.expected}, a kapott érték ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Érvénytelen bemenet: a várt érték ${se(r.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Túl nagy: ${r.origin??&quot;érték&quot;} mérete túl nagy ${o}${r.maximum.toString()} ${a.unit??&quot;elem&quot;}`:`Túl nagy: a bemeneti érték ${r.origin??&quot;érték&quot;} túl nagy: ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Túl kicsi: a bemeneti érték ${r.origin} mérete túl kicsi ${o}${r.minimum.toString()} ${a.unit}`:`Túl kicsi: a bemeneti érték ${r.origin} túl kicsi ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Érvénytelen string: &quot;${o.prefix}&quot; értékkel kell kezdődnie`:o.format===&quot;ends_with&quot;?`Érvénytelen string: &quot;${o.suffix}&quot; értékkel kell végződnie`:o.format===&quot;includes&quot;?`Érvénytelen string: &quot;${o.includes}&quot; értéket kell tartalmaznia`:o.format===&quot;regex&quot;?`Érvénytelen string: ${o.pattern} mintának kell megfelelnie`:`Érvénytelen ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Érvénytelen szám: ${r.divisor} többszörösének kell lennie`;case&quot;unrecognized_keys&quot;:return`Ismeretlen kulcs${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Érvénytelen kulcs ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Érvénytelen bemenet&quot;;case&quot;invalid_element&quot;:return`Érvénytelen érték: ${r.origin}`;default:return&quot;Érvénytelen bemenet&quot;}}};function jN(){return{localeError:NN()}}const ON=()=&gt;{const e={string:{unit:&quot;karakter&quot;,verb:&quot;memiliki&quot;},file:{unit:&quot;byte&quot;,verb:&quot;memiliki&quot;},array:{unit:&quot;item&quot;,verb:&quot;memiliki&quot;},set:{unit:&quot;item&quot;,verb:&quot;memiliki&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;input&quot;,email:&quot;alamat email&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;tanggal dan waktu format ISO&quot;,date:&quot;tanggal format ISO&quot;,time:&quot;jam format ISO&quot;,duration:&quot;durasi format ISO&quot;,ipv4:&quot;alamat IPv4&quot;,ipv6:&quot;alamat IPv6&quot;,cidrv4:&quot;rentang alamat IPv4&quot;,cidrv6:&quot;rentang alamat IPv6&quot;,base64:&quot;string dengan enkode base64&quot;,base64url:&quot;string dengan enkode base64url&quot;,json_string:&quot;string JSON&quot;,e164:&quot;angka E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Input tidak valid: diharapkan ${r.expected}, diterima ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Input tidak valid: diharapkan ${se(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??&quot;value&quot;} memiliki ${o}${r.maximum.toString()} ${a.unit??&quot;elemen&quot;}`:`Terlalu besar: diharapkan ${r.origin??&quot;value&quot;} menjadi ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`String tidak valid: harus dimulai dengan &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`String tidak valid: harus berakhir dengan &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`String tidak valid: harus menyertakan &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`String tidak valid: harus sesuai pola ${o.pattern}`:`${i[o.format]??r.format} tidak valid`}case&quot;not_multiple_of&quot;:return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Kunci tidak dikenali ${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Kunci tidak valid di ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Input tidak valid&quot;;case&quot;invalid_element&quot;:return`Nilai tidak valid di ${r.origin}`;default:return&quot;Input tidak valid&quot;}}};function zN(){return{localeError:ON()}}const TN=()=&gt;{const e={string:{unit:&quot;caratteri&quot;,verb:&quot;avere&quot;},file:{unit:&quot;byte&quot;,verb:&quot;avere&quot;},array:{unit:&quot;elementi&quot;,verb:&quot;avere&quot;},set:{unit:&quot;elementi&quot;,verb:&quot;avere&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;numero&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;vettore&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;input&quot;,email:&quot;indirizzo email&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;data e ora ISO&quot;,date:&quot;data ISO&quot;,time:&quot;ora ISO&quot;,duration:&quot;durata ISO&quot;,ipv4:&quot;indirizzo IPv4&quot;,ipv6:&quot;indirizzo IPv6&quot;,cidrv4:&quot;intervallo IPv4&quot;,cidrv6:&quot;intervallo IPv6&quot;,base64:&quot;stringa codificata in base64&quot;,base64url:&quot;URL codificata in base64&quot;,json_string:&quot;stringa JSON&quot;,e164:&quot;numero E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Input non valido: atteso ${r.expected}, ricevuto ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Input non valido: atteso ${se(r.values[0])}`:`Opzione non valida: atteso uno tra ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Troppo grande: ${r.origin??&quot;valore&quot;} deve avere ${o}${r.maximum.toString()} ${a.unit??&quot;elementi&quot;}`:`Troppo grande: ${r.origin??&quot;valore&quot;} deve essere ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Stringa non valida: deve iniziare con &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Stringa non valida: deve terminare con &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Stringa non valida: deve includere &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Chiav${r.keys.length&gt;1?&quot;i&quot;:&quot;e&quot;} non riconosciut${r.keys.length&gt;1?&quot;e&quot;:&quot;a&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Chiave non valida in ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Input non valido&quot;;case&quot;invalid_element&quot;:return`Valore non valido in ${r.origin}`;default:return&quot;Input non valido&quot;}}};function CN(){return{localeError:TN()}}const AN=()=&gt;{const e={string:{unit:&quot;文字&quot;,verb:&quot;である&quot;},file:{unit:&quot;バイト&quot;,verb:&quot;である&quot;},array:{unit:&quot;要素&quot;,verb:&quot;である&quot;},set:{unit:&quot;要素&quot;,verb:&quot;である&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;数値&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;配列&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;入力値&quot;,email:&quot;メールアドレス&quot;,url:&quot;URL&quot;,emoji:&quot;絵文字&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO日時&quot;,date:&quot;ISO日付&quot;,time:&quot;ISO時刻&quot;,duration:&quot;ISO期間&quot;,ipv4:&quot;IPv4アドレス&quot;,ipv6:&quot;IPv6アドレス&quot;,cidrv4:&quot;IPv4範囲&quot;,cidrv6:&quot;IPv6範囲&quot;,base64:&quot;base64エンコード文字列&quot;,base64url:&quot;base64urlエンコード文字列&quot;,json_string:&quot;JSON文字列&quot;,e164:&quot;E.164番号&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;入力値&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`無効な入力: ${r.expected}が期待されましたが、${n(r.input)}が入力されました`;case&quot;invalid_value&quot;:return r.values.length===1?`無効な入力: ${se(r.values[0])}が期待されました`:`無効な選択: ${B(r.values,&quot;、&quot;)}のいずれかである必要があります`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;以下である&quot;:&quot;より小さい&quot;,a=t(r.origin);return a?`大きすぎる値: ${r.origin??&quot;値&quot;}は${r.maximum.toString()}${a.unit??&quot;要素&quot;}${o}必要があります`:`大きすぎる値: ${r.origin??&quot;値&quot;}は${r.maximum.toString()}${o}必要があります`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;以上である&quot;:&quot;より大きい&quot;,a=t(r.origin);return a?`小さすぎる値: ${r.origin}は${r.minimum.toString()}${a.unit}${o}必要があります`:`小さすぎる値: ${r.origin}は${r.minimum.toString()}${o}必要があります`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`無効な文字列: &quot;${o.prefix}&quot;で始まる必要があります`:o.format===&quot;ends_with&quot;?`無効な文字列: &quot;${o.suffix}&quot;で終わる必要があります`:o.format===&quot;includes&quot;?`無効な文字列: &quot;${o.includes}&quot;を含む必要があります`:o.format===&quot;regex&quot;?`無効な文字列: パターン${o.pattern}に一致する必要があります`:`無効な${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`無効な数値: ${r.divisor}の倍数である必要があります`;case&quot;unrecognized_keys&quot;:return`認識されていないキー${r.keys.length&gt;1?&quot;群&quot;:&quot;&quot;}: ${B(r.keys,&quot;、&quot;)}`;case&quot;invalid_key&quot;:return`${r.origin}内の無効なキー`;case&quot;invalid_union&quot;:return&quot;無効な入力&quot;;case&quot;invalid_element&quot;:return`${r.origin}内の無効な値`;default:return&quot;無効な入力&quot;}}};function PN(){return{localeError:AN()}}const UN=()=&gt;{const e={string:{unit:&quot;តួអក្សរ&quot;,verb:&quot;គួរមាន&quot;},file:{unit:&quot;បៃ&quot;,verb:&quot;គួរមាន&quot;},array:{unit:&quot;ធាតុ&quot;,verb:&quot;គួរមាន&quot;},set:{unit:&quot;ធាតុ&quot;,verb:&quot;គួរមាន&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;មិនមែនជាលេខ (NaN)&quot;:&quot;លេខ&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;អារេ (Array)&quot;;if(r===null)return&quot;គ្មានតម្លៃ (null)&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;ទិន្នន័យបញ្ចូល&quot;,email:&quot;អាសយដ្ឋានអ៊ីមែល&quot;,url:&quot;URL&quot;,emoji:&quot;សញ្ញាអារម្មណ៍&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;កាលបរិច្ឆេទ និងម៉ោង ISO&quot;,date:&quot;កាលបរិច្ឆេទ ISO&quot;,time:&quot;ម៉ោង ISO&quot;,duration:&quot;រយៈពេល ISO&quot;,ipv4:&quot;អាសយដ្ឋាន IPv4&quot;,ipv6:&quot;អាសយដ្ឋាន IPv6&quot;,cidrv4:&quot;ដែនអាសយដ្ឋាន IPv4&quot;,cidrv6:&quot;ដែនអាសយដ្ឋាន IPv6&quot;,base64:&quot;ខ្សែអក្សរអ៊ិកូដ base64&quot;,base64url:&quot;ខ្សែអក្សរអ៊ិកូដ base64url&quot;,json_string:&quot;ខ្សែអក្សរ JSON&quot;,e164:&quot;លេខ E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;ទិន្នន័យបញ្ចូល&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${r.expected} ប៉ុន្តែទទួលបាន ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${se(r.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`ធំពេក៖ ត្រូវការ ${r.origin??&quot;តម្លៃ&quot;} ${o} ${r.maximum.toString()} ${a.unit??&quot;ធាតុ&quot;}`:`ធំពេក៖ ត្រូវការ ${r.origin??&quot;តម្លៃ&quot;} ${o} ${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`តូចពេក៖ ត្រូវការ ${r.origin} ${o} ${r.minimum.toString()} ${a.unit}`:`តូចពេក៖ ត្រូវការ ${r.origin} ${o} ${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${o.pattern}`:`មិនត្រឹមត្រូវ៖ ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`រកឃើញសោមិនស្គាល់៖ ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`សោមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;case&quot;invalid_union&quot;:return&quot;ទិន្នន័យមិនត្រឹមត្រូវ&quot;;case&quot;invalid_element&quot;:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;default:return&quot;ទិន្នន័យមិនត្រឹមត្រូវ&quot;}}};function DN(){return{localeError:UN()}}const RN=()=&gt;{const e={string:{unit:&quot;문자&quot;,verb:&quot;to have&quot;},file:{unit:&quot;바이트&quot;,verb:&quot;to have&quot;},array:{unit:&quot;개&quot;,verb:&quot;to have&quot;},set:{unit:&quot;개&quot;,verb:&quot;to have&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;입력&quot;,email:&quot;이메일 주소&quot;,url:&quot;URL&quot;,emoji:&quot;이모지&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO 날짜시간&quot;,date:&quot;ISO 날짜&quot;,time:&quot;ISO 시간&quot;,duration:&quot;ISO 기간&quot;,ipv4:&quot;IPv4 주소&quot;,ipv6:&quot;IPv6 주소&quot;,cidrv4:&quot;IPv4 범위&quot;,cidrv6:&quot;IPv6 범위&quot;,base64:&quot;base64 인코딩 문자열&quot;,base64url:&quot;base64url 인코딩 문자열&quot;,json_string:&quot;JSON 문자열&quot;,e164:&quot;E.164 번호&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;입력&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`잘못된 입력: 예상 타입은 ${r.expected}, 받은 타입은 ${n(r.input)}입니다`;case&quot;invalid_value&quot;:return r.values.length===1?`잘못된 입력: 값은 ${se(r.values[0])} 이어야 합니다`:`잘못된 옵션: ${B(r.values,&quot;또는 &quot;)} 중 하나여야 합니다`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;이하&quot;:&quot;미만&quot;,a=o===&quot;미만&quot;?&quot;이어야 합니다&quot;:&quot;여야 합니다&quot;,s=t(r.origin),l=(s==null?void 0:s.unit)??&quot;요소&quot;;return s?`${r.origin??&quot;값&quot;}이 너무 큽니다: ${r.maximum.toString()}${l} ${o}${a}`:`${r.origin??&quot;값&quot;}이 너무 큽니다: ${r.maximum.toString()} ${o}${a}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;이상&quot;:&quot;초과&quot;,a=o===&quot;이상&quot;?&quot;이어야 합니다&quot;:&quot;여야 합니다&quot;,s=t(r.origin),l=(s==null?void 0:s.unit)??&quot;요소&quot;;return s?`${r.origin??&quot;값&quot;}이 너무 작습니다: ${r.minimum.toString()}${l} ${o}${a}`:`${r.origin??&quot;값&quot;}이 너무 작습니다: ${r.minimum.toString()} ${o}${a}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`잘못된 문자열: &quot;${o.prefix}&quot;(으)로 시작해야 합니다`:o.format===&quot;ends_with&quot;?`잘못된 문자열: &quot;${o.suffix}&quot;(으)로 끝나야 합니다`:o.format===&quot;includes&quot;?`잘못된 문자열: &quot;${o.includes}&quot;을(를) 포함해야 합니다`:o.format===&quot;regex&quot;?`잘못된 문자열: 정규식 ${o.pattern} 패턴과 일치해야 합니다`:`잘못된 ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`잘못된 숫자: ${r.divisor}의 배수여야 합니다`;case&quot;unrecognized_keys&quot;:return`인식할 수 없는 키: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`잘못된 키: ${r.origin}`;case&quot;invalid_union&quot;:return&quot;잘못된 입력&quot;;case&quot;invalid_element&quot;:return`잘못된 값: ${r.origin}`;default:return&quot;잘못된 입력&quot;}}};function LN(){return{localeError:RN()}}const ZN=()=&gt;{const e={string:{unit:&quot;знаци&quot;,verb:&quot;да имаат&quot;},file:{unit:&quot;бајти&quot;,verb:&quot;да имаат&quot;},array:{unit:&quot;ставки&quot;,verb:&quot;да имаат&quot;},set:{unit:&quot;ставки&quot;,verb:&quot;да имаат&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;број&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;низа&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;внес&quot;,email:&quot;адреса на е-пошта&quot;,url:&quot;URL&quot;,emoji:&quot;емоџи&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO датум и време&quot;,date:&quot;ISO датум&quot;,time:&quot;ISO време&quot;,duration:&quot;ISO времетраење&quot;,ipv4:&quot;IPv4 адреса&quot;,ipv6:&quot;IPv6 адреса&quot;,cidrv4:&quot;IPv4 опсег&quot;,cidrv6:&quot;IPv6 опсег&quot;,base64:&quot;base64-енкодирана низа&quot;,base64url:&quot;base64url-енкодирана низа&quot;,json_string:&quot;JSON низа&quot;,e164:&quot;E.164 број&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;внес&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Грешен внес: се очекува ${r.expected}, примено ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Invalid input: expected ${se(r.values[0])}`:`Грешана опција: се очекува една ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Премногу голем: се очекува ${r.origin??&quot;вредноста&quot;} да има ${o}${r.maximum.toString()} ${a.unit??&quot;елементи&quot;}`:`Премногу голем: се очекува ${r.origin??&quot;вредноста&quot;} да биде ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Премногу мал: се очекува ${r.origin} да има ${o}${r.minimum.toString()} ${a.unit}`:`Премногу мал: се очекува ${r.origin} да биде ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Неважечка низа: мора да започнува со &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Неважечка низа: мора да завршува со &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Неважечка низа: мора да вклучува &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Неважечка низа: мора да одгоара на патернот ${o.pattern}`:`Invalid ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Грешен број: мора да биде делив со ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`${r.keys.length&gt;1?&quot;Непрепознаени клучеви&quot;:&quot;Непрепознаен клуч&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Грешен клуч во ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Грешен внес&quot;;case&quot;invalid_element&quot;:return`Грешна вредност во ${r.origin}`;default:return&quot;Грешен внес&quot;}}};function MN(){return{localeError:ZN()}}const FN=()=&gt;{const e={string:{unit:&quot;aksara&quot;,verb:&quot;mempunyai&quot;},file:{unit:&quot;bait&quot;,verb:&quot;mempunyai&quot;},array:{unit:&quot;elemen&quot;,verb:&quot;mempunyai&quot;},set:{unit:&quot;elemen&quot;,verb:&quot;mempunyai&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;nombor&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;input&quot;,email:&quot;alamat e-mel&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;tarikh masa ISO&quot;,date:&quot;tarikh ISO&quot;,time:&quot;masa ISO&quot;,duration:&quot;tempoh ISO&quot;,ipv4:&quot;alamat IPv4&quot;,ipv6:&quot;alamat IPv6&quot;,cidrv4:&quot;julat IPv4&quot;,cidrv6:&quot;julat IPv6&quot;,base64:&quot;string dikodkan base64&quot;,base64url:&quot;string dikodkan base64url&quot;,json_string:&quot;string JSON&quot;,e164:&quot;nombor E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Input tidak sah: dijangka ${r.expected}, diterima ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Input tidak sah: dijangka ${se(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??&quot;nilai&quot;} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??&quot;elemen&quot;}`:`Terlalu besar: dijangka ${r.origin??&quot;nilai&quot;} adalah ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`String tidak sah: mesti bermula dengan &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`String tidak sah: mesti berakhir dengan &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`String tidak sah: mesti mengandungi &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${i[o.format]??r.format} tidak sah`}case&quot;not_multiple_of&quot;:return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Kunci tidak dikenali: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Kunci tidak sah dalam ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Input tidak sah&quot;;case&quot;invalid_element&quot;:return`Nilai tidak sah dalam ${r.origin}`;default:return&quot;Input tidak sah&quot;}}};function BN(){return{localeError:FN()}}const VN=()=&gt;{const e={string:{unit:&quot;tekens&quot;},file:{unit:&quot;bytes&quot;},array:{unit:&quot;elementen&quot;},set:{unit:&quot;elementen&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;getal&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;invoer&quot;,email:&quot;emailadres&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO datum en tijd&quot;,date:&quot;ISO datum&quot;,time:&quot;ISO tijd&quot;,duration:&quot;ISO duur&quot;,ipv4:&quot;IPv4-adres&quot;,ipv6:&quot;IPv6-adres&quot;,cidrv4:&quot;IPv4-bereik&quot;,cidrv6:&quot;IPv6-bereik&quot;,base64:&quot;base64-gecodeerde tekst&quot;,base64url:&quot;base64 URL-gecodeerde tekst&quot;,json_string:&quot;JSON string&quot;,e164:&quot;E.164-nummer&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;invoer&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Ongeldige invoer: verwacht ${r.expected}, ontving ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Ongeldige invoer: verwacht ${se(r.values[0])}`:`Ongeldige optie: verwacht één van ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Te lang: verwacht dat ${r.origin??&quot;waarde&quot;} ${o}${r.maximum.toString()} ${a.unit??&quot;elementen&quot;} bevat`:`Te lang: verwacht dat ${r.origin??&quot;waarde&quot;} ${o}${r.maximum.toString()} is`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Te kort: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Ongeldige tekst: moet met &quot;${o.prefix}&quot; beginnen`:o.format===&quot;ends_with&quot;?`Ongeldige tekst: moet op &quot;${o.suffix}&quot; eindigen`:o.format===&quot;includes&quot;?`Ongeldige tekst: moet &quot;${o.includes}&quot; bevatten`:o.format===&quot;regex&quot;?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case&quot;unrecognized_keys&quot;:return`Onbekende key${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Ongeldige key in ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Ongeldige invoer&quot;;case&quot;invalid_element&quot;:return`Ongeldige waarde in ${r.origin}`;default:return&quot;Ongeldige invoer&quot;}}};function WN(){return{localeError:VN()}}const HN=()=&gt;{const e={string:{unit:&quot;tegn&quot;,verb:&quot;å ha&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;å ha&quot;},array:{unit:&quot;elementer&quot;,verb:&quot;å inneholde&quot;},set:{unit:&quot;elementer&quot;,verb:&quot;å inneholde&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;tall&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;liste&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;input&quot;,email:&quot;e-postadresse&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO dato- og klokkeslett&quot;,date:&quot;ISO-dato&quot;,time:&quot;ISO-klokkeslett&quot;,duration:&quot;ISO-varighet&quot;,ipv4:&quot;IPv4-område&quot;,ipv6:&quot;IPv6-område&quot;,cidrv4:&quot;IPv4-spekter&quot;,cidrv6:&quot;IPv6-spekter&quot;,base64:&quot;base64-enkodet streng&quot;,base64url:&quot;base64url-enkodet streng&quot;,json_string:&quot;JSON-streng&quot;,e164:&quot;E.164-nummer&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Ugyldig input: forventet ${r.expected}, fikk ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Ugyldig verdi: forventet ${se(r.values[0])}`:`Ugyldig valg: forventet en av ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`For stor(t): forventet ${r.origin??&quot;value&quot;} til å ha ${o}${r.maximum.toString()} ${a.unit??&quot;elementer&quot;}`:`For stor(t): forventet ${r.origin??&quot;value&quot;} til å ha ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til å ha ${o}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til å ha ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Ugyldig streng: må starte med &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Ugyldig streng: må ende med &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Ugyldig streng: må inneholde &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Ugyldig streng: må matche mønsteret ${o.pattern}`:`Ugyldig ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Ugyldig tall: må være et multiplum av ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`${r.keys.length&gt;1?&quot;Ukjente nøkler&quot;:&quot;Ukjent nøkkel&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Ugyldig nøkkel i ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Ugyldig input&quot;;case&quot;invalid_element&quot;:return`Ugyldig verdi i ${r.origin}`;default:return&quot;Ugyldig input&quot;}}};function KN(){return{localeError:HN()}}const JN=()=&gt;{const e={string:{unit:&quot;harf&quot;,verb:&quot;olmalıdır&quot;},file:{unit:&quot;bayt&quot;,verb:&quot;olmalıdır&quot;},array:{unit:&quot;unsur&quot;,verb:&quot;olmalıdır&quot;},set:{unit:&quot;unsur&quot;,verb:&quot;olmalıdır&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;numara&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;saf&quot;;if(r===null)return&quot;gayb&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;giren&quot;,email:&quot;epostagâh&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO hengâmı&quot;,date:&quot;ISO tarihi&quot;,time:&quot;ISO zamanı&quot;,duration:&quot;ISO müddeti&quot;,ipv4:&quot;IPv4 nişânı&quot;,ipv6:&quot;IPv6 nişânı&quot;,cidrv4:&quot;IPv4 menzili&quot;,cidrv6:&quot;IPv6 menzili&quot;,base64:&quot;base64-şifreli metin&quot;,base64url:&quot;base64url-şifreli metin&quot;,json_string:&quot;JSON metin&quot;,e164:&quot;E.164 sayısı&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;giren&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Fâsit giren: umulan ${r.expected}, alınan ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Fâsit giren: umulan ${se(r.values[0])}`:`Fâsit tercih: mûteberler ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Fazla büyük: ${r.origin??&quot;value&quot;}, ${o}${r.maximum.toString()} ${a.unit??&quot;elements&quot;} sahip olmalıydı.`:`Fazla büyük: ${r.origin??&quot;value&quot;}, ${o}${r.maximum.toString()} olmalıydı.`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Fazla küçük: ${r.origin}, ${o}${r.minimum.toString()} ${a.unit} sahip olmalıydı.`:`Fazla küçük: ${r.origin}, ${o}${r.minimum.toString()} olmalıydı.`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Fâsit metin: &quot;${o.prefix}&quot; ile başlamalı.`:o.format===&quot;ends_with&quot;?`Fâsit metin: &quot;${o.suffix}&quot; ile bitmeli.`:o.format===&quot;includes&quot;?`Fâsit metin: &quot;${o.includes}&quot; ihtivâ etmeli.`:o.format===&quot;regex&quot;?`Fâsit metin: ${o.pattern} nakşına uymalı.`:`Fâsit ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Fâsit sayı: ${r.divisor} katı olmalıydı.`;case&quot;unrecognized_keys&quot;:return`Tanınmayan anahtar ${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`${r.origin} için tanınmayan anahtar var.`;case&quot;invalid_union&quot;:return&quot;Giren tanınamadı.&quot;;case&quot;invalid_element&quot;:return`${r.origin} için tanınmayan kıymet var.`;default:return&quot;Kıymet tanınamadı.&quot;}}};function GN(){return{localeError:JN()}}const qN=()=&gt;{const e={string:{unit:&quot;توکي&quot;,verb:&quot;ولري&quot;},file:{unit:&quot;بایټس&quot;,verb:&quot;ولري&quot;},array:{unit:&quot;توکي&quot;,verb:&quot;ولري&quot;},set:{unit:&quot;توکي&quot;,verb:&quot;ولري&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;عدد&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;ارې&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;ورودي&quot;,email:&quot;بریښنالیک&quot;,url:&quot;یو آر ال&quot;,emoji:&quot;ایموجي&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;نیټه او وخت&quot;,date:&quot;نېټه&quot;,time:&quot;وخت&quot;,duration:&quot;موده&quot;,ipv4:&quot;د IPv4 پته&quot;,ipv6:&quot;د IPv6 پته&quot;,cidrv4:&quot;د IPv4 ساحه&quot;,cidrv6:&quot;د IPv6 ساحه&quot;,base64:&quot;base64-encoded متن&quot;,base64url:&quot;base64url-encoded متن&quot;,json_string:&quot;JSON متن&quot;,e164:&quot;د E.164 شمېره&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;ورودي&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`ناسم ورودي: باید ${r.expected} وای, مګر ${n(r.input)} ترلاسه شو`;case&quot;invalid_value&quot;:return r.values.length===1?`ناسم ورودي: باید ${se(r.values[0])} وای`:`ناسم انتخاب: باید یو له ${B(r.values,&quot;|&quot;)} څخه وای`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`ډیر لوی: ${r.origin??&quot;ارزښت&quot;} باید ${o}${r.maximum.toString()} ${a.unit??&quot;عنصرونه&quot;} ولري`:`ډیر لوی: ${r.origin??&quot;ارزښت&quot;} باید ${o}${r.maximum.toString()} وي`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`ډیر کوچنی: ${r.origin} باید ${o}${r.minimum.toString()} ${a.unit} ولري`:`ډیر کوچنی: ${r.origin} باید ${o}${r.minimum.toString()} وي`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`ناسم متن: باید د &quot;${o.prefix}&quot; سره پیل شي`:o.format===&quot;ends_with&quot;?`ناسم متن: باید د &quot;${o.suffix}&quot; سره پای ته ورسيږي`:o.format===&quot;includes&quot;?`ناسم متن: باید &quot;${o.includes}&quot; ولري`:o.format===&quot;regex&quot;?`ناسم متن: باید د ${o.pattern} سره مطابقت ولري`:`${i[o.format]??r.format} ناسم دی`}case&quot;not_multiple_of&quot;:return`ناسم عدد: باید د ${r.divisor} مضرب وي`;case&quot;unrecognized_keys&quot;:return`ناسم ${r.keys.length&gt;1?&quot;کلیډونه&quot;:&quot;کلیډ&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`ناسم کلیډ په ${r.origin} کې`;case&quot;invalid_union&quot;:return&quot;ناسمه ورودي&quot;;case&quot;invalid_element&quot;:return`ناسم عنصر په ${r.origin} کې`;default:return&quot;ناسمه ورودي&quot;}}};function QN(){return{localeError:qN()}}const XN=()=&gt;{const e={string:{unit:&quot;znaków&quot;,verb:&quot;mieć&quot;},file:{unit:&quot;bajtów&quot;,verb:&quot;mieć&quot;},array:{unit:&quot;elementów&quot;,verb:&quot;mieć&quot;},set:{unit:&quot;elementów&quot;,verb:&quot;mieć&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;liczba&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;tablica&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;wyrażenie&quot;,email:&quot;adres email&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;data i godzina w formacie ISO&quot;,date:&quot;data w formacie ISO&quot;,time:&quot;godzina w formacie ISO&quot;,duration:&quot;czas trwania ISO&quot;,ipv4:&quot;adres IPv4&quot;,ipv6:&quot;adres IPv6&quot;,cidrv4:&quot;zakres IPv4&quot;,cidrv6:&quot;zakres IPv6&quot;,base64:&quot;ciąg znaków zakodowany w formacie base64&quot;,base64url:&quot;ciąg znaków zakodowany w formacie base64url&quot;,json_string:&quot;ciąg znaków w formacie JSON&quot;,e164:&quot;liczba E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;wejście&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Nieprawidłowe dane wejściowe: oczekiwano ${r.expected}, otrzymano ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${se(r.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Za duża wartość: oczekiwano, że ${r.origin??&quot;wartość&quot;} będzie mieć ${o}${r.maximum.toString()} ${a.unit??&quot;elementów&quot;}`:`Zbyt duż(y/a/e): oczekiwano, że ${r.origin??&quot;wartość&quot;} będzie wynosić ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Za mała wartość: oczekiwano, że ${r.origin??&quot;wartość&quot;} będzie mieć ${o}${r.minimum.toString()} ${a.unit??&quot;elementów&quot;}`:`Zbyt mał(y/a/e): oczekiwano, że ${r.origin??&quot;wartość&quot;} będzie wynosić ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Nieprawidłowy ciąg znaków: musi zaczynać się od &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Nieprawidłowy ciąg znaków: musi kończyć się na &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Nieprawidłowy ciąg znaków: musi zawierać &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${o.pattern}`:`Nieprawidłow(y/a/e) ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Nieprawidłowa liczba: musi być wielokrotnością ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Nierozpoznane klucze${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Nieprawidłowy klucz w ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Nieprawidłowe dane wejściowe&quot;;case&quot;invalid_element&quot;:return`Nieprawidłowa wartość w ${r.origin}`;default:return&quot;Nieprawidłowe dane wejściowe&quot;}}};function YN(){return{localeError:XN()}}const ej=()=&gt;{const e={string:{unit:&quot;caracteres&quot;,verb:&quot;ter&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;ter&quot;},array:{unit:&quot;itens&quot;,verb:&quot;ter&quot;},set:{unit:&quot;itens&quot;,verb:&quot;ter&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;número&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;nulo&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;padrão&quot;,email:&quot;endereço de e-mail&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;data e hora ISO&quot;,date:&quot;data ISO&quot;,time:&quot;hora ISO&quot;,duration:&quot;duração ISO&quot;,ipv4:&quot;endereço IPv4&quot;,ipv6:&quot;endereço IPv6&quot;,cidrv4:&quot;faixa de IPv4&quot;,cidrv6:&quot;faixa de IPv6&quot;,base64:&quot;texto codificado em base64&quot;,base64url:&quot;URL codificada em base64&quot;,json_string:&quot;texto JSON&quot;,e164:&quot;número E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;entrada&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Tipo inválido: esperado ${r.expected}, recebido ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Entrada inválida: esperado ${se(r.values[0])}`:`Opção inválida: esperada uma das ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??&quot;valor&quot;} tivesse ${o}${r.maximum.toString()} ${a.unit??&quot;elementos&quot;}`:`Muito grande: esperado que ${r.origin??&quot;valor&quot;} fosse ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Texto inválido: deve começar com &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Texto inválido: deve terminar com &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Texto inválido: deve incluir &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Texto inválido: deve corresponder ao padrão ${o.pattern}`:`${i[o.format]??r.format} inválido`}case&quot;not_multiple_of&quot;:return`Número inválido: deve ser múltiplo de ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Chave${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} desconhecida${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Chave inválida em ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Entrada inválida&quot;;case&quot;invalid_element&quot;:return`Valor inválido em ${r.origin}`;default:return&quot;Campo inválido&quot;}}};function tj(){return{localeError:ej()}}function Pg(e,t,n,i){const r=Math.abs(e),o=r%10,a=r%100;return a&gt;=11&amp;&amp;a&lt;=19?i:o===1?t:o&gt;=2&amp;&amp;o&lt;=4?n:i}const nj=()=&gt;{const e={string:{unit:{one:&quot;символ&quot;,few:&quot;символа&quot;,many:&quot;символов&quot;},verb:&quot;иметь&quot;},file:{unit:{one:&quot;байт&quot;,few:&quot;байта&quot;,many:&quot;байт&quot;},verb:&quot;иметь&quot;},array:{unit:{one:&quot;элемент&quot;,few:&quot;элемента&quot;,many:&quot;элементов&quot;},verb:&quot;иметь&quot;},set:{unit:{one:&quot;элемент&quot;,few:&quot;элемента&quot;,many:&quot;элементов&quot;},verb:&quot;иметь&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;число&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;массив&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;ввод&quot;,email:&quot;email адрес&quot;,url:&quot;URL&quot;,emoji:&quot;эмодзи&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO дата и время&quot;,date:&quot;ISO дата&quot;,time:&quot;ISO время&quot;,duration:&quot;ISO длительность&quot;,ipv4:&quot;IPv4 адрес&quot;,ipv6:&quot;IPv6 адрес&quot;,cidrv4:&quot;IPv4 диапазон&quot;,cidrv6:&quot;IPv6 диапазон&quot;,base64:&quot;строка в формате base64&quot;,base64url:&quot;строка в формате base64url&quot;,json_string:&quot;JSON строка&quot;,e164:&quot;номер E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;ввод&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Неверный ввод: ожидалось ${r.expected}, получено ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Неверный ввод: ожидалось ${se(r.values[0])}`:`Неверный вариант: ожидалось одно из ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);if(a){const s=Number(r.maximum),l=Pg(s,a.unit.one,a.unit.few,a.unit.many);return`Слишком большое значение: ожидалось, что ${r.origin??&quot;значение&quot;} будет иметь ${o}${r.maximum.toString()} ${l}`}return`Слишком большое значение: ожидалось, что ${r.origin??&quot;значение&quot;} будет ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);if(a){const s=Number(r.minimum),l=Pg(s,a.unit.one,a.unit.few,a.unit.many);return`Слишком маленькое значение: ожидалось, что ${r.origin} будет иметь ${o}${r.minimum.toString()} ${l}`}return`Слишком маленькое значение: ожидалось, что ${r.origin} будет ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Неверная строка: должна начинаться с &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Неверная строка: должна заканчиваться на &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Неверная строка: должна содержать &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Неверная строка: должна соответствовать шаблону ${o.pattern}`:`Неверный ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Неверное число: должно быть кратным ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Нераспознанн${r.keys.length&gt;1?&quot;ые&quot;:&quot;ый&quot;} ключ${r.keys.length&gt;1?&quot;и&quot;:&quot;&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Неверный ключ в ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Неверные входные данные&quot;;case&quot;invalid_element&quot;:return`Неверное значение в ${r.origin}`;default:return&quot;Неверные входные данные&quot;}}};function rj(){return{localeError:nj()}}const ij=()=&gt;{const e={string:{unit:&quot;znakov&quot;,verb:&quot;imeti&quot;},file:{unit:&quot;bajtov&quot;,verb:&quot;imeti&quot;},array:{unit:&quot;elementov&quot;,verb:&quot;imeti&quot;},set:{unit:&quot;elementov&quot;,verb:&quot;imeti&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;število&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;tabela&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;vnos&quot;,email:&quot;e-poštni naslov&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO datum in čas&quot;,date:&quot;ISO datum&quot;,time:&quot;ISO čas&quot;,duration:&quot;ISO trajanje&quot;,ipv4:&quot;IPv4 naslov&quot;,ipv6:&quot;IPv6 naslov&quot;,cidrv4:&quot;obseg IPv4&quot;,cidrv6:&quot;obseg IPv6&quot;,base64:&quot;base64 kodiran niz&quot;,base64url:&quot;base64url kodiran niz&quot;,json_string:&quot;JSON niz&quot;,e164:&quot;E.164 številka&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;vnos&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Neveljaven vnos: pričakovano ${r.expected}, prejeto ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Neveljaven vnos: pričakovano ${se(r.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Preveliko: pričakovano, da bo ${r.origin??&quot;vrednost&quot;} imelo ${o}${r.maximum.toString()} ${a.unit??&quot;elementov&quot;}`:`Preveliko: pričakovano, da bo ${r.origin??&quot;vrednost&quot;} ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Premajhno: pričakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${a.unit}`:`Premajhno: pričakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Neveljaven niz: mora se začeti z &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Neveljaven niz: mora se končati z &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Neveljaven niz: mora vsebovati &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Neveljavno število: mora biti večkratnik ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Neprepoznan${r.keys.length&gt;1?&quot;i ključi&quot;:&quot; ključ&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Neveljaven ključ v ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Neveljaven vnos&quot;;case&quot;invalid_element&quot;:return`Neveljavna vrednost v ${r.origin}`;default:return&quot;Neveljaven vnos&quot;}}};function oj(){return{localeError:ij()}}const aj=()=&gt;{const e={string:{unit:&quot;tecken&quot;,verb:&quot;att ha&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;att ha&quot;},array:{unit:&quot;objekt&quot;,verb:&quot;att innehålla&quot;},set:{unit:&quot;objekt&quot;,verb:&quot;att innehålla&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;antal&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;lista&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;reguljärt uttryck&quot;,email:&quot;e-postadress&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO-datum och tid&quot;,date:&quot;ISO-datum&quot;,time:&quot;ISO-tid&quot;,duration:&quot;ISO-varaktighet&quot;,ipv4:&quot;IPv4-intervall&quot;,ipv6:&quot;IPv6-intervall&quot;,cidrv4:&quot;IPv4-spektrum&quot;,cidrv6:&quot;IPv6-spektrum&quot;,base64:&quot;base64-kodad sträng&quot;,base64url:&quot;base64url-kodad sträng&quot;,json_string:&quot;JSON-sträng&quot;,e164:&quot;E.164-nummer&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;mall-literal&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Ogiltig inmatning: förväntat ${r.expected}, fick ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Ogiltig inmatning: förväntat ${se(r.values[0])}`:`Ogiltigt val: förväntade en av ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`För stor(t): förväntade ${r.origin??&quot;värdet&quot;} att ha ${o}${r.maximum.toString()} ${a.unit??&quot;element&quot;}`:`För stor(t): förväntat ${r.origin??&quot;värdet&quot;} att ha ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`För lite(t): förväntade ${r.origin??&quot;värdet&quot;} att ha ${o}${r.minimum.toString()} ${a.unit}`:`För lite(t): förväntade ${r.origin??&quot;värdet&quot;} att ha ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Ogiltig sträng: måste börja med &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Ogiltig sträng: måste sluta med &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Ogiltig sträng: måste innehålla &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Ogiltig sträng: måste matcha mönstret &quot;${o.pattern}&quot;`:`Ogiltig(t) ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Ogiltigt tal: måste vara en multipel av ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`${r.keys.length&gt;1?&quot;Okända nycklar&quot;:&quot;Okänd nyckel&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Ogiltig nyckel i ${r.origin??&quot;värdet&quot;}`;case&quot;invalid_union&quot;:return&quot;Ogiltig input&quot;;case&quot;invalid_element&quot;:return`Ogiltigt värde i ${r.origin??&quot;värdet&quot;}`;default:return&quot;Ogiltig input&quot;}}};function sj(){return{localeError:aj()}}const lj=()=&gt;{const e={string:{unit:&quot;எழுத்துக்கள்&quot;,verb:&quot;கொண்டிருக்க வேண்டும்&quot;},file:{unit:&quot;பைட்டுகள்&quot;,verb:&quot;கொண்டிருக்க வேண்டும்&quot;},array:{unit:&quot;உறுப்புகள்&quot;,verb:&quot;கொண்டிருக்க வேண்டும்&quot;},set:{unit:&quot;உறுப்புகள்&quot;,verb:&quot;கொண்டிருக்க வேண்டும்&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;எண் அல்லாதது&quot;:&quot;எண்&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;அணி&quot;;if(r===null)return&quot;வெறுமை&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;உள்ளீடு&quot;,email:&quot;மின்னஞ்சல் முகவரி&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO தேதி நேரம்&quot;,date:&quot;ISO தேதி&quot;,time:&quot;ISO நேரம்&quot;,duration:&quot;ISO கால அளவு&quot;,ipv4:&quot;IPv4 முகவரி&quot;,ipv6:&quot;IPv6 முகவரி&quot;,cidrv4:&quot;IPv4 வரம்பு&quot;,cidrv6:&quot;IPv6 வரம்பு&quot;,base64:&quot;base64-encoded சரம்&quot;,base64url:&quot;base64url-encoded சரம்&quot;,json_string:&quot;JSON சரம்&quot;,e164:&quot;E.164 எண்&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${r.expected}, பெறப்பட்டது ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${se(r.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${B(r.values,&quot;|&quot;)} இல் ஒன்று`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??&quot;மதிப்பு&quot;} ${o}${r.maximum.toString()} ${a.unit??&quot;உறுப்புகள்&quot;} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??&quot;மதிப்பு&quot;} ${o}${r.maximum.toString()} ஆக இருக்க வேண்டும்`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${o}${r.minimum.toString()} ஆக இருக்க வேண்டும்`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`தவறான சரம்: &quot;${o.prefix}&quot; இல் தொடங்க வேண்டும்`:o.format===&quot;ends_with&quot;?`தவறான சரம்: &quot;${o.suffix}&quot; இல் முடிவடைய வேண்டும்`:o.format===&quot;includes&quot;?`தவறான சரம்: &quot;${o.includes}&quot; ஐ உள்ளடக்க வேண்டும்`:o.format===&quot;regex&quot;?`தவறான சரம்: ${o.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`தவறான எண்: ${r.divisor} இன் பலமாக இருக்க வேண்டும்`;case&quot;unrecognized_keys&quot;:return`அடையாளம் தெரியாத விசை${r.keys.length&gt;1?&quot;கள்&quot;:&quot;&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`${r.origin} இல் தவறான விசை`;case&quot;invalid_union&quot;:return&quot;தவறான உள்ளீடு&quot;;case&quot;invalid_element&quot;:return`${r.origin} இல் தவறான மதிப்பு`;default:return&quot;தவறான உள்ளீடு&quot;}}};function uj(){return{localeError:lj()}}const cj=()=&gt;{const e={string:{unit:&quot;ตัวอักษร&quot;,verb:&quot;ควรมี&quot;},file:{unit:&quot;ไบต์&quot;,verb:&quot;ควรมี&quot;},array:{unit:&quot;รายการ&quot;,verb:&quot;ควรมี&quot;},set:{unit:&quot;รายการ&quot;,verb:&quot;ควรมี&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;ไม่ใช่ตัวเลข (NaN)&quot;:&quot;ตัวเลข&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;อาร์เรย์ (Array)&quot;;if(r===null)return&quot;ไม่มีค่า (null)&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;ข้อมูลที่ป้อน&quot;,email:&quot;ที่อยู่อีเมล&quot;,url:&quot;URL&quot;,emoji:&quot;อิโมจิ&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;วันที่เวลาแบบ ISO&quot;,date:&quot;วันที่แบบ ISO&quot;,time:&quot;เวลาแบบ ISO&quot;,duration:&quot;ช่วงเวลาแบบ ISO&quot;,ipv4:&quot;ที่อยู่ IPv4&quot;,ipv6:&quot;ที่อยู่ IPv6&quot;,cidrv4:&quot;ช่วง IP แบบ IPv4&quot;,cidrv6:&quot;ช่วง IP แบบ IPv6&quot;,base64:&quot;ข้อความแบบ Base64&quot;,base64url:&quot;ข้อความแบบ Base64 สำหรับ URL&quot;,json_string:&quot;ข้อความแบบ JSON&quot;,e164:&quot;เบอร์โทรศัพท์ระหว่างประเทศ (E.164)&quot;,jwt:&quot;โทเคน JWT&quot;,template_literal:&quot;ข้อมูลที่ป้อน&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${r.expected} แต่ได้รับ ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${se(r.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;ไม่เกิน&quot;:&quot;น้อยกว่า&quot;,a=t(r.origin);return a?`เกินกำหนด: ${r.origin??&quot;ค่า&quot;} ควรมี${o} ${r.maximum.toString()} ${a.unit??&quot;รายการ&quot;}`:`เกินกำหนด: ${r.origin??&quot;ค่า&quot;} ควรมี${o} ${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;อย่างน้อย&quot;:&quot;มากกว่า&quot;,a=t(r.origin);return a?`น้อยกว่ากำหนด: ${r.origin} ควรมี${o} ${r.minimum.toString()} ${a.unit}`:`น้อยกว่ากำหนด: ${r.origin} ควรมี${o} ${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี &quot;${o.includes}&quot; อยู่ในข้อความ`:o.format===&quot;regex&quot;?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${o.pattern}`:`รูปแบบไม่ถูกต้อง: ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${r.divisor} ได้ลงตัว`;case&quot;unrecognized_keys&quot;:return`พบคีย์ที่ไม่รู้จัก: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`คีย์ไม่ถูกต้องใน ${r.origin}`;case&quot;invalid_union&quot;:return&quot;ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้&quot;;case&quot;invalid_element&quot;:return`ข้อมูลไม่ถูกต้องใน ${r.origin}`;default:return&quot;ข้อมูลไม่ถูกต้อง&quot;}}};function dj(){return{localeError:cj()}}const fj=e=&gt;{const t=typeof e;switch(t){case&quot;number&quot;:return Number.isNaN(e)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(e))return&quot;array&quot;;if(e===null)return&quot;null&quot;;if(Object.getPrototypeOf(e)!==Object.prototype&amp;&amp;e.constructor)return e.constructor.name}}return t},mj=()=&gt;{const e={string:{unit:&quot;karakter&quot;,verb:&quot;olmalı&quot;},file:{unit:&quot;bayt&quot;,verb:&quot;olmalı&quot;},array:{unit:&quot;öğe&quot;,verb:&quot;olmalı&quot;},set:{unit:&quot;öğe&quot;,verb:&quot;olmalı&quot;}};function t(i){return e[i]??null}const n={regex:&quot;girdi&quot;,email:&quot;e-posta adresi&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO tarih ve saat&quot;,date:&quot;ISO tarih&quot;,time:&quot;ISO saat&quot;,duration:&quot;ISO süre&quot;,ipv4:&quot;IPv4 adresi&quot;,ipv6:&quot;IPv6 adresi&quot;,cidrv4:&quot;IPv4 aralığı&quot;,cidrv6:&quot;IPv6 aralığı&quot;,base64:&quot;base64 ile şifrelenmiş metin&quot;,base64url:&quot;base64url ile şifrelenmiş metin&quot;,json_string:&quot;JSON dizesi&quot;,e164:&quot;E.164 sayısı&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;Şablon dizesi&quot;};return i=&gt;{switch(i.code){case&quot;invalid_type&quot;:return`Geçersiz değer: beklenen ${i.expected}, alınan ${fj(i.input)}`;case&quot;invalid_value&quot;:return i.values.length===1?`Geçersiz değer: beklenen ${se(i.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${B(i.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const r=i.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,o=t(i.origin);return o?`Çok büyük: beklenen ${i.origin??&quot;değer&quot;} ${r}${i.maximum.toString()} ${o.unit??&quot;öğe&quot;}`:`Çok büyük: beklenen ${i.origin??&quot;değer&quot;} ${r}${i.maximum.toString()}`}case&quot;too_small&quot;:{const r=i.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,o=t(i.origin);return o?`Çok küçük: beklenen ${i.origin} ${r}${i.minimum.toString()} ${o.unit}`:`Çok küçük: beklenen ${i.origin} ${r}${i.minimum.toString()}`}case&quot;invalid_format&quot;:{const r=i;return r.format===&quot;starts_with&quot;?`Geçersiz metin: &quot;${r.prefix}&quot; ile başlamalı`:r.format===&quot;ends_with&quot;?`Geçersiz metin: &quot;${r.suffix}&quot; ile bitmeli`:r.format===&quot;includes&quot;?`Geçersiz metin: &quot;${r.includes}&quot; içermeli`:r.format===&quot;regex&quot;?`Geçersiz metin: ${r.pattern} desenine uymalı`:`Geçersiz ${n[r.format]??i.format}`}case&quot;not_multiple_of&quot;:return`Geçersiz sayı: ${i.divisor} ile tam bölünebilmeli`;case&quot;unrecognized_keys&quot;:return`Tanınmayan anahtar${i.keys.length&gt;1?&quot;lar&quot;:&quot;&quot;}: ${B(i.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`${i.origin} içinde geçersiz anahtar`;case&quot;invalid_union&quot;:return&quot;Geçersiz değer&quot;;case&quot;invalid_element&quot;:return`${i.origin} içinde geçersiz değer`;default:return&quot;Geçersiz değer&quot;}}};function pj(){return{localeError:mj()}}const hj=()=&gt;{const e={string:{unit:&quot;символів&quot;,verb:&quot;матиме&quot;},file:{unit:&quot;байтів&quot;,verb:&quot;матиме&quot;},array:{unit:&quot;елементів&quot;,verb:&quot;матиме&quot;},set:{unit:&quot;елементів&quot;,verb:&quot;матиме&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;число&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;масив&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;вхідні дані&quot;,email:&quot;адреса електронної пошти&quot;,url:&quot;URL&quot;,emoji:&quot;емодзі&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;дата та час ISO&quot;,date:&quot;дата ISO&quot;,time:&quot;час ISO&quot;,duration:&quot;тривалість ISO&quot;,ipv4:&quot;адреса IPv4&quot;,ipv6:&quot;адреса IPv6&quot;,cidrv4:&quot;діапазон IPv4&quot;,cidrv6:&quot;діапазон IPv6&quot;,base64:&quot;рядок у кодуванні base64&quot;,base64url:&quot;рядок у кодуванні base64url&quot;,json_string:&quot;рядок JSON&quot;,e164:&quot;номер E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;вхідні дані&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Неправильні вхідні дані: очікується ${r.expected}, отримано ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Неправильні вхідні дані: очікується ${se(r.values[0])}`:`Неправильна опція: очікується одне з ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Занадто велике: очікується, що ${r.origin??&quot;значення&quot;} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??&quot;елементів&quot;}`:`Занадто велике: очікується, що ${r.origin??&quot;значення&quot;} буде ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Занадто мале: очікується, що ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Занадто мале: очікується, що ${r.origin} буде ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Неправильний рядок: повинен починатися з &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Неправильний рядок: повинен закінчуватися на &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Неправильний рядок: повинен містити &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Неправильний рядок: повинен відповідати шаблону ${o.pattern}`:`Неправильний ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Неправильне число: повинно бути кратним ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Нерозпізнаний ключ${r.keys.length&gt;1?&quot;і&quot;:&quot;&quot;}: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Неправильний ключ у ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Неправильні вхідні дані&quot;;case&quot;invalid_element&quot;:return`Неправильне значення у ${r.origin}`;default:return&quot;Неправильні вхідні дані&quot;}}};function gj(){return{localeError:hj()}}const vj=()=&gt;{const e={string:{unit:&quot;حروف&quot;,verb:&quot;ہونا&quot;},file:{unit:&quot;بائٹس&quot;,verb:&quot;ہونا&quot;},array:{unit:&quot;آئٹمز&quot;,verb:&quot;ہونا&quot;},set:{unit:&quot;آئٹمز&quot;,verb:&quot;ہونا&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;نمبر&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;آرے&quot;;if(r===null)return&quot;نل&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;ان پٹ&quot;,email:&quot;ای میل ایڈریس&quot;,url:&quot;یو آر ایل&quot;,emoji:&quot;ایموجی&quot;,uuid:&quot;یو یو آئی ڈی&quot;,uuidv4:&quot;یو یو آئی ڈی وی 4&quot;,uuidv6:&quot;یو یو آئی ڈی وی 6&quot;,nanoid:&quot;نینو آئی ڈی&quot;,guid:&quot;جی یو آئی ڈی&quot;,cuid:&quot;سی یو آئی ڈی&quot;,cuid2:&quot;سی یو آئی ڈی 2&quot;,ulid:&quot;یو ایل آئی ڈی&quot;,xid:&quot;ایکس آئی ڈی&quot;,ksuid:&quot;کے ایس یو آئی ڈی&quot;,datetime:&quot;آئی ایس او ڈیٹ ٹائم&quot;,date:&quot;آئی ایس او تاریخ&quot;,time:&quot;آئی ایس او وقت&quot;,duration:&quot;آئی ایس او مدت&quot;,ipv4:&quot;آئی پی وی 4 ایڈریس&quot;,ipv6:&quot;آئی پی وی 6 ایڈریس&quot;,cidrv4:&quot;آئی پی وی 4 رینج&quot;,cidrv6:&quot;آئی پی وی 6 رینج&quot;,base64:&quot;بیس 64 ان کوڈڈ سٹرنگ&quot;,base64url:&quot;بیس 64 یو آر ایل ان کوڈڈ سٹرنگ&quot;,json_string:&quot;جے ایس او این سٹرنگ&quot;,e164:&quot;ای 164 نمبر&quot;,jwt:&quot;جے ڈبلیو ٹی&quot;,template_literal:&quot;ان پٹ&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`غلط ان پٹ: ${r.expected} متوقع تھا، ${n(r.input)} موصول ہوا`;case&quot;invalid_value&quot;:return r.values.length===1?`غلط ان پٹ: ${se(r.values[0])} متوقع تھا`:`غلط آپشن: ${B(r.values,&quot;|&quot;)} میں سے ایک متوقع تھا`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`بہت بڑا: ${r.origin??&quot;ویلیو&quot;} کے ${o}${r.maximum.toString()} ${a.unit??&quot;عناصر&quot;} ہونے متوقع تھے`:`بہت بڑا: ${r.origin??&quot;ویلیو&quot;} کا ${o}${r.maximum.toString()} ہونا متوقع تھا`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`بہت چھوٹا: ${r.origin} کے ${o}${r.minimum.toString()} ${a.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${r.origin} کا ${o}${r.minimum.toString()} ہونا متوقع تھا`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`غلط سٹرنگ: &quot;${o.prefix}&quot; سے شروع ہونا چاہیے`:o.format===&quot;ends_with&quot;?`غلط سٹرنگ: &quot;${o.suffix}&quot; پر ختم ہونا چاہیے`:o.format===&quot;includes&quot;?`غلط سٹرنگ: &quot;${o.includes}&quot; شامل ہونا چاہیے`:o.format===&quot;regex&quot;?`غلط سٹرنگ: پیٹرن ${o.pattern} سے میچ ہونا چاہیے`:`غلط ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`غلط نمبر: ${r.divisor} کا مضاعف ہونا چاہیے`;case&quot;unrecognized_keys&quot;:return`غیر تسلیم شدہ کی${r.keys.length&gt;1?&quot;ز&quot;:&quot;&quot;}: ${B(r.keys,&quot;، &quot;)}`;case&quot;invalid_key&quot;:return`${r.origin} میں غلط کی`;case&quot;invalid_union&quot;:return&quot;غلط ان پٹ&quot;;case&quot;invalid_element&quot;:return`${r.origin} میں غلط ویلیو`;default:return&quot;غلط ان پٹ&quot;}}};function yj(){return{localeError:vj()}}const _j=()=&gt;{const e={string:{unit:&quot;ký tự&quot;,verb:&quot;có&quot;},file:{unit:&quot;byte&quot;,verb:&quot;có&quot;},array:{unit:&quot;phần tử&quot;,verb:&quot;có&quot;},set:{unit:&quot;phần tử&quot;,verb:&quot;có&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;số&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;mảng&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;đầu vào&quot;,email:&quot;địa chỉ email&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ngày giờ ISO&quot;,date:&quot;ngày ISO&quot;,time:&quot;giờ ISO&quot;,duration:&quot;khoảng thời gian ISO&quot;,ipv4:&quot;địa chỉ IPv4&quot;,ipv6:&quot;địa chỉ IPv6&quot;,cidrv4:&quot;dải IPv4&quot;,cidrv6:&quot;dải IPv6&quot;,base64:&quot;chuỗi mã hóa base64&quot;,base64url:&quot;chuỗi mã hóa base64url&quot;,json_string:&quot;chuỗi JSON&quot;,e164:&quot;số E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;đầu vào&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Đầu vào không hợp lệ: mong đợi ${r.expected}, nhận được ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Đầu vào không hợp lệ: mong đợi ${se(r.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Quá lớn: mong đợi ${r.origin??&quot;giá trị&quot;} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??&quot;phần tử&quot;}`:`Quá lớn: mong đợi ${r.origin??&quot;giá trị&quot;} ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Quá nhỏ: mong đợi ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Quá nhỏ: mong đợi ${r.origin} ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Chuỗi không hợp lệ: phải bắt đầu bằng &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Chuỗi không hợp lệ: phải kết thúc bằng &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Chuỗi không hợp lệ: phải bao gồm &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Chuỗi không hợp lệ: phải khớp với mẫu ${o.pattern}`:`${i[o.format]??r.format} không hợp lệ`}case&quot;not_multiple_of&quot;:return`Số không hợp lệ: phải là bội số của ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Khóa không được nhận dạng: ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Khóa không hợp lệ trong ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Đầu vào không hợp lệ&quot;;case&quot;invalid_element&quot;:return`Giá trị không hợp lệ trong ${r.origin}`;default:return&quot;Đầu vào không hợp lệ&quot;}}};function wj(){return{localeError:_j()}}const kj=()=&gt;{const e={string:{unit:&quot;字符&quot;,verb:&quot;包含&quot;},file:{unit:&quot;字节&quot;,verb:&quot;包含&quot;},array:{unit:&quot;项&quot;,verb:&quot;包含&quot;},set:{unit:&quot;项&quot;,verb:&quot;包含&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;非数字(NaN)&quot;:&quot;数字&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;数组&quot;;if(r===null)return&quot;空值(null)&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;输入&quot;,email:&quot;电子邮件&quot;,url:&quot;URL&quot;,emoji:&quot;表情符号&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO日期时间&quot;,date:&quot;ISO日期&quot;,time:&quot;ISO时间&quot;,duration:&quot;ISO时长&quot;,ipv4:&quot;IPv4地址&quot;,ipv6:&quot;IPv6地址&quot;,cidrv4:&quot;IPv4网段&quot;,cidrv6:&quot;IPv6网段&quot;,base64:&quot;base64编码字符串&quot;,base64url:&quot;base64url编码字符串&quot;,json_string:&quot;JSON字符串&quot;,e164:&quot;E.164号码&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;输入&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`无效输入：期望 ${r.expected}，实际接收 ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`无效输入：期望 ${se(r.values[0])}`:`无效选项：期望以下之一 ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`数值过大：期望 ${r.origin??&quot;值&quot;} ${o}${r.maximum.toString()} ${a.unit??&quot;个元素&quot;}`:`数值过大：期望 ${r.origin??&quot;值&quot;} ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`数值过小：期望 ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`数值过小：期望 ${r.origin} ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`无效字符串：必须以 &quot;${o.prefix}&quot; 开头`:o.format===&quot;ends_with&quot;?`无效字符串：必须以 &quot;${o.suffix}&quot; 结尾`:o.format===&quot;includes&quot;?`无效字符串：必须包含 &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`无效字符串：必须满足正则表达式 ${o.pattern}`:`无效${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`无效数字：必须是 ${r.divisor} 的倍数`;case&quot;unrecognized_keys&quot;:return`出现未知的键(key): ${B(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`${r.origin} 中的键(key)无效`;case&quot;invalid_union&quot;:return&quot;无效输入&quot;;case&quot;invalid_element&quot;:return`${r.origin} 中包含无效值(value)`;default:return&quot;无效输入&quot;}}};function xj(){return{localeError:kj()}}const bj=()=&gt;{const e={string:{unit:&quot;字元&quot;,verb:&quot;擁有&quot;},file:{unit:&quot;位元組&quot;,verb:&quot;擁有&quot;},array:{unit:&quot;項目&quot;,verb:&quot;擁有&quot;},set:{unit:&quot;項目&quot;,verb:&quot;擁有&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;輸入&quot;,email:&quot;郵件地址&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO 日期時間&quot;,date:&quot;ISO 日期&quot;,time:&quot;ISO 時間&quot;,duration:&quot;ISO 期間&quot;,ipv4:&quot;IPv4 位址&quot;,ipv6:&quot;IPv6 位址&quot;,cidrv4:&quot;IPv4 範圍&quot;,cidrv6:&quot;IPv6 範圍&quot;,base64:&quot;base64 編碼字串&quot;,base64url:&quot;base64url 編碼字串&quot;,json_string:&quot;JSON 字串&quot;,e164:&quot;E.164 數值&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;輸入&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`無效的輸入值：預期為 ${r.expected}，但收到 ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`無效的輸入值：預期為 ${se(r.values[0])}`:`無效的選項：預期為以下其中之一 ${B(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`數值過大：預期 ${r.origin??&quot;值&quot;} 應為 ${o}${r.maximum.toString()} ${a.unit??&quot;個元素&quot;}`:`數值過大：預期 ${r.origin??&quot;值&quot;} 應為 ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`數值過小：預期 ${r.origin} 應為 ${o}${r.minimum.toString()} ${a.unit}`:`數值過小：預期 ${r.origin} 應為 ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`無效的字串：必須以 &quot;${o.prefix}&quot; 開頭`:o.format===&quot;ends_with&quot;?`無效的字串：必須以 &quot;${o.suffix}&quot; 結尾`:o.format===&quot;includes&quot;?`無效的字串：必須包含 &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`無效的字串：必須符合格式 ${o.pattern}`:`無效的 ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`無效的數字：必須為 ${r.divisor} 的倍數`;case&quot;unrecognized_keys&quot;:return`無法識別的鍵值${r.keys.length&gt;1?&quot;們&quot;:&quot;&quot;}：${B(r.keys,&quot;、&quot;)}`;case&quot;invalid_key&quot;:return`${r.origin} 中有無效的鍵值`;case&quot;invalid_union&quot;:return&quot;無效的輸入值&quot;;case&quot;invalid_element&quot;:return`${r.origin} 中有無效的值`;default:return&quot;無效的輸入值&quot;}}};function Sj(){return{localeError:bj()}}const pk=Object.freeze(Object.defineProperty({__proto__:null,ar:eN,az:nN,be:iN,ca:aN,cs:lN,de:cN,en:mk,eo:hN,es:vN,fa:_N,fi:kN,fr:bN,frCA:$N,he:EN,hu:jN,id:zN,it:CN,ja:PN,kh:DN,ko:LN,mk:MN,ms:BN,nl:WN,no:KN,ota:GN,pl:YN,ps:QN,pt:tj,ru:rj,sl:oj,sv:sj,ta:uj,th:dj,tr:pj,ua:gj,ur:yj,vi:wj,zhCN:xj,zhTW:Sj},Symbol.toStringTag,{value:&quot;Module&quot;})),hk=Symbol(&quot;ZodOutput&quot;),gk=Symbol(&quot;ZodInput&quot;);class xm{constructor(){this._map=new Map,this._idmap=new Map}add(t,...n){const i=n[0];if(this._map.set(t,i),i&amp;&amp;typeof i==&quot;object&quot;&amp;&amp;&quot;id&quot;in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&amp;&amp;typeof n==&quot;object&quot;&amp;&amp;&quot;id&quot;in n&amp;&amp;this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const i={...this.get(n)??{}};return delete i.id,{...i,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}}function bm(){return new xm}const Lr=bm();function vk(e,t){return new e({type:&quot;string&quot;,...C(t)})}function yk(e,t){return new e({type:&quot;string&quot;,coerce:!0,...C(t)})}function Sm(e,t){return new e({type:&quot;string&quot;,format:&quot;email&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}function Cl(e,t){return new e({type:&quot;string&quot;,format:&quot;guid&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}function $m(e,t){return new e({type:&quot;string&quot;,format:&quot;uuid&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}function Im(e,t){return new e({type:&quot;string&quot;,format:&quot;uuid&quot;,check:&quot;string_format&quot;,abort:!1,version:&quot;v4&quot;,...C(t)})}function Em(e,t){return new e({type:&quot;string&quot;,format:&quot;uuid&quot;,check:&quot;string_format&quot;,abort:!1,version:&quot;v6&quot;,...C(t)})}function Nm(e,t){return new e({type:&quot;string&quot;,format:&quot;uuid&quot;,check:&quot;string_format&quot;,abort:!1,version:&quot;v7&quot;,...C(t)})}function jm(e,t){return new e({type:&quot;string&quot;,format:&quot;url&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}function Om(e,t){return new e({type:&quot;string&quot;,format:&quot;emoji&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}function zm(e,t){return new e({type:&quot;string&quot;,format:&quot;nanoid&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}function Tm(e,t){return new e({type:&quot;string&quot;,format:&quot;cuid&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}function Cm(e,t){return new e({type:&quot;string&quot;,format:&quot;cuid2&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}function Am(e,t){return new e({type:&quot;string&quot;,format:&quot;ulid&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}function Pm(e,t){return new e({type:&quot;string&quot;,format:&quot;xid&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}function Um(e,t){return new e({type:&quot;string&quot;,format:&quot;ksuid&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}function Dm(e,t){return new e({type:&quot;string&quot;,format:&quot;ipv4&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}function Rm(e,t){return new e({type:&quot;string&quot;,format:&quot;ipv6&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}function Lm(e,t){return new e({type:&quot;string&quot;,format:&quot;cidrv4&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}function Zm(e,t){return new e({type:&quot;string&quot;,format:&quot;cidrv6&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}function Mm(e,t){return new e({type:&quot;string&quot;,format:&quot;base64&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}function Fm(e,t){return new e({type:&quot;string&quot;,format:&quot;base64url&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}function Bm(e,t){return new e({type:&quot;string&quot;,format:&quot;e164&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}function Vm(e,t){return new e({type:&quot;string&quot;,format:&quot;jwt&quot;,check:&quot;string_format&quot;,abort:!1,...C(t)})}const _k={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function wk(e,t){return new e({type:&quot;string&quot;,format:&quot;datetime&quot;,check:&quot;string_format&quot;,offset:!1,local:!1,precision:null,...C(t)})}function kk(e,t){return new e({type:&quot;string&quot;,format:&quot;date&quot;,check:&quot;string_format&quot;,...C(t)})}function xk(e,t){return new e({type:&quot;string&quot;,format:&quot;time&quot;,check:&quot;string_format&quot;,precision:null,...C(t)})}function bk(e,t){return new e({type:&quot;string&quot;,format:&quot;duration&quot;,check:&quot;string_format&quot;,...C(t)})}function Sk(e,t){return new e({type:&quot;number&quot;,checks:[],...C(t)})}function $k(e,t){return new e({type:&quot;number&quot;,coerce:!0,checks:[],...C(t)})}function Ik(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;safeint&quot;,...C(t)})}function Ek(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;float32&quot;,...C(t)})}function Nk(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;float64&quot;,...C(t)})}function jk(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;int32&quot;,...C(t)})}function Ok(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;uint32&quot;,...C(t)})}function zk(e,t){return new e({type:&quot;boolean&quot;,...C(t)})}function Tk(e,t){return new e({type:&quot;boolean&quot;,coerce:!0,...C(t)})}function Ck(e,t){return new e({type:&quot;bigint&quot;,...C(t)})}function Ak(e,t){return new e({type:&quot;bigint&quot;,coerce:!0,...C(t)})}function Pk(e,t){return new e({type:&quot;bigint&quot;,check:&quot;bigint_format&quot;,abort:!1,format:&quot;int64&quot;,...C(t)})}function Uk(e,t){return new e({type:&quot;bigint&quot;,check:&quot;bigint_format&quot;,abort:!1,format:&quot;uint64&quot;,...C(t)})}function Dk(e,t){return new e({type:&quot;symbol&quot;,...C(t)})}function Rk(e,t){return new e({type:&quot;undefined&quot;,...C(t)})}function Lk(e,t){return new e({type:&quot;null&quot;,...C(t)})}function Zk(e){return new e({type:&quot;any&quot;})}function Al(e){return new e({type:&quot;unknown&quot;})}function Mk(e,t){return new e({type:&quot;never&quot;,...C(t)})}function Fk(e,t){return new e({type:&quot;void&quot;,...C(t)})}function Bk(e,t){return new e({type:&quot;date&quot;,...C(t)})}function Vk(e,t){return new e({type:&quot;date&quot;,coerce:!0,...C(t)})}function Wk(e,t){return new e({type:&quot;nan&quot;,...C(t)})}function ti(e,t){return new fm({check:&quot;less_than&quot;,...C(t),value:e,inclusive:!1})}function cn(e,t){return new fm({check:&quot;less_than&quot;,...C(t),value:e,inclusive:!0})}function ni(e,t){return new mm({check:&quot;greater_than&quot;,...C(t),value:e,inclusive:!1})}function jt(e,t){return new mm({check:&quot;greater_than&quot;,...C(t),value:e,inclusive:!0})}function Hk(e){return ni(0,e)}function Kk(e){return ti(0,e)}function Jk(e){return cn(0,e)}function Gk(e){return jt(0,e)}function Oa(e,t){return new V0({check:&quot;multiple_of&quot;,...C(t),value:e})}function hu(e,t){return new K0({check:&quot;max_size&quot;,...C(t),maximum:e})}function za(e,t){return new J0({check:&quot;min_size&quot;,...C(t),minimum:e})}function Wm(e,t){return new G0({check:&quot;size_equals&quot;,...C(t),size:e})}function gu(e,t){return new q0({check:&quot;max_length&quot;,...C(t),maximum:e})}function io(e,t){return new Q0({check:&quot;min_length&quot;,...C(t),minimum:e})}function vu(e,t){return new X0({check:&quot;length_equals&quot;,...C(t),length:e})}function Hm(e,t){return new Y0({check:&quot;string_format&quot;,format:&quot;regex&quot;,...C(t),pattern:e})}function Km(e){return new ew({check:&quot;string_format&quot;,format:&quot;lowercase&quot;,...C(e)})}function Jm(e){return new tw({check:&quot;string_format&quot;,format:&quot;uppercase&quot;,...C(e)})}function Gm(e,t){return new nw({check:&quot;string_format&quot;,format:&quot;includes&quot;,...C(t),includes:e})}function qm(e,t){return new rw({check:&quot;string_format&quot;,format:&quot;starts_with&quot;,...C(t),prefix:e})}function Qm(e,t){return new iw({check:&quot;string_format&quot;,format:&quot;ends_with&quot;,...C(t),suffix:e})}function qk(e,t,n){return new ow({check:&quot;property&quot;,property:e,schema:t,...C(n)})}function Xm(e,t){return new aw({check:&quot;mime_type&quot;,mime:e,...C(t)})}function li(e){return new sw({check:&quot;overwrite&quot;,tx:e})}function Ym(e){return li(t=&gt;t.normalize(e))}function ep(){return li(e=&gt;e.trim())}function tp(){return li(e=&gt;e.toLowerCase())}function np(){return li(e=&gt;e.toUpperCase())}function rp(e,t,n){return new e({type:&quot;array&quot;,element:t,...C(n)})}function $j(e,t,n){return new e({type:&quot;union&quot;,options:t,...C(n)})}function Ij(e,t,n,i){return new e({type:&quot;union&quot;,options:n,discriminator:t,...C(i)})}function Ej(e,t,n){return new e({type:&quot;intersection&quot;,left:t,right:n})}function Qk(e,t,n,i){const r=n instanceof ie,o=r?i:n,a=r?n:null;return new e({type:&quot;tuple&quot;,items:t,rest:a,...C(o)})}function Nj(e,t,n,i){return new e({type:&quot;record&quot;,keyType:t,valueType:n,...C(i)})}function jj(e,t,n,i){return new e({type:&quot;map&quot;,keyType:t,valueType:n,...C(i)})}function Oj(e,t,n){return new e({type:&quot;set&quot;,valueType:t,...C(n)})}function zj(e,t,n){const i=Array.isArray(t)?Object.fromEntries(t.map(r=&gt;[r,r])):t;return new e({type:&quot;enum&quot;,entries:i,...C(n)})}function Tj(e,t,n){return new e({type:&quot;enum&quot;,entries:t,...C(n)})}function Cj(e,t,n){return new e({type:&quot;literal&quot;,values:Array.isArray(t)?t:[t],...C(n)})}function Xk(e,t){return new e({type:&quot;file&quot;,...C(t)})}function Aj(e,t){return new e({type:&quot;transform&quot;,transform:t})}function Pj(e,t){return new e({type:&quot;optional&quot;,innerType:t})}function Uj(e,t){return new e({type:&quot;nullable&quot;,innerType:t})}function Dj(e,t,n){return new e({type:&quot;default&quot;,innerType:t,get defaultValue(){return typeof n==&quot;function&quot;?n():n}})}function Rj(e,t,n){return new e({type:&quot;nonoptional&quot;,innerType:t,...C(n)})}function Lj(e,t){return new e({type:&quot;success&quot;,innerType:t})}function Zj(e,t,n){return new e({type:&quot;catch&quot;,innerType:t,catchValue:typeof n==&quot;function&quot;?n:()=&gt;n})}function Mj(e,t,n){return new e({type:&quot;pipe&quot;,in:t,out:n})}function Fj(e,t){return new e({type:&quot;readonly&quot;,innerType:t})}function Bj(e,t,n){return new e({type:&quot;template_literal&quot;,parts:t,...C(n)})}function Vj(e,t){return new e({type:&quot;lazy&quot;,getter:t})}function Wj(e,t){return new e({type:&quot;promise&quot;,innerType:t})}function Yk(e,t,n){const i=C(n);return i.abort??(i.abort=!0),new e({type:&quot;custom&quot;,check:&quot;custom&quot;,fn:t,...i})}function ex(e,t,n){return new e({type:&quot;custom&quot;,check:&quot;custom&quot;,fn:t,...C(n)})}function tx(e,t){const n=C(t);let i=n.truthy??[&quot;true&quot;,&quot;1&quot;,&quot;yes&quot;,&quot;on&quot;,&quot;y&quot;,&quot;enabled&quot;],r=n.falsy??[&quot;false&quot;,&quot;0&quot;,&quot;no&quot;,&quot;off&quot;,&quot;n&quot;,&quot;disabled&quot;];n.case!==&quot;sensitive&quot;&amp;&amp;(i=i.map(y=&gt;typeof y==&quot;string&quot;?y.toLowerCase():y),r=r.map(y=&gt;typeof y==&quot;string&quot;?y.toLowerCase():y));const o=new Set(i),a=new Set(r),s=e.Pipe??km,l=e.Boolean??gm,u=e.String??es,d=e.Transform??wm,h=new d({type:&quot;transform&quot;,transform:(y,E)=&gt;{let N=y;return n.case!==&quot;sensitive&quot;&amp;&amp;(N=N.toLowerCase()),o.has(N)?!0:a.has(N)?!1:(E.issues.push({code:&quot;invalid_value&quot;,expected:&quot;stringbool&quot;,values:[...o,...a],input:E.value,inst:h}),{})},error:n.error}),g=new s({type:&quot;pipe&quot;,in:new u({type:&quot;string&quot;,error:n.error}),out:h,error:n.error});return new s({type:&quot;pipe&quot;,in:g,out:new l({type:&quot;boolean&quot;,error:n.error}),error:n.error})}function nx(e,t,n,i={}){const r=C(i),o={...C(i),check:&quot;string_format&quot;,type:&quot;string&quot;,format:t,fn:typeof n==&quot;function&quot;?n:s=&gt;n.test(s),...r};return n instanceof RegExp&amp;&amp;(o.pattern=n),new e(o)}class rx{constructor(t){this._def=t,this.def=t}implement(t){if(typeof t!=&quot;function&quot;)throw new Error(&quot;implement() must be called with a function&quot;);const n=(...i)=&gt;{const r=this._def.input?Td(this._def.input,i,void 0,{callee:n}):i;if(!Array.isArray(r))throw new Error(&quot;Invalid arguments schema: not an array or tuple schema.&quot;);const o=t(...r);return this._def.output?Td(this._def.output,o,void 0,{callee:n}):o};return n}implementAsync(t){if(typeof t!=&quot;function&quot;)throw new Error(&quot;implement() must be called with a function&quot;);const n=async(...i)=&gt;{const r=this._def.input?await Cd(this._def.input,i,void 0,{callee:n}):i;if(!Array.isArray(r))throw new Error(&quot;Invalid arguments schema: not an array or tuple schema.&quot;);const o=await t(...r);return this._def.output?Cd(this._def.output,o,void 0,{callee:n}):o};return n}input(...t){const n=this.constructor;return Array.isArray(t[0])?new n({type:&quot;function&quot;,input:new pu({type:&quot;tuple&quot;,items:t[0],rest:t[1]}),output:this._def.output}):new n({type:&quot;function&quot;,input:t[0],output:this._def.output})}output(t){const n=this.constructor;return new n({type:&quot;function&quot;,input:this._def.input,output:t})}}function ix(e){return new rx({type:&quot;function&quot;,input:Array.isArray(e==null?void 0:e.input)?Qk(pu,e==null?void 0:e.input):(e==null?void 0:e.input)??rp(ym,Al(Tl)),output:(e==null?void 0:e.output)??Al(Tl)})}class Pd{constructor(t){this.counter=0,this.metadataRegistry=(t==null?void 0:t.metadata)??Lr,this.target=(t==null?void 0:t.target)??&quot;draft-2020-12&quot;,this.unrepresentable=(t==null?void 0:t.unrepresentable)??&quot;throw&quot;,this.override=(t==null?void 0:t.override)??(()=&gt;{}),this.io=(t==null?void 0:t.io)??&quot;output&quot;,this.seen=new Map}process(t,n={path:[],schemaPath:[]}){var h,g,v;var i;const r=t._zod.def,o={guid:&quot;uuid&quot;,url:&quot;uri&quot;,datetime:&quot;date-time&quot;,json_string:&quot;json-string&quot;,regex:&quot;&quot;},a=this.seen.get(t);if(a)return a.count++,n.schemaPath.includes(t)&amp;&amp;(a.cycle=n.path),a.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};this.seen.set(t,s);const l=(g=(h=t._zod).toJSONSchema)==null?void 0:g.call(h);if(l)s.schema=l;else{const y={...n,schemaPath:[...n.schemaPath,t],path:n.path},E=t._zod.parent;if(E)s.ref=E,this.process(E,y),this.seen.get(E).isParent=!0;else{const N=s.schema;switch(r.type){case&quot;string&quot;:{const p=N;p.type=&quot;string&quot;;const{minimum:f,maximum:m,format:k,patterns:$,contentEncoding:x}=t._zod.bag;if(typeof f==&quot;number&quot;&amp;&amp;(p.minLength=f),typeof m==&quot;number&quot;&amp;&amp;(p.maxLength=m),k&amp;&amp;(p.format=o[k]??k,p.format===&quot;&quot;&amp;&amp;delete p.format),x&amp;&amp;(p.contentEncoding=x),$&amp;&amp;$.size&gt;0){const T=[...$];T.length===1?p.pattern=T[0].source:T.length&gt;1&amp;&amp;(s.schema.allOf=[...T.map(Z=&gt;({...this.target===&quot;draft-7&quot;?{type:&quot;string&quot;}:{},pattern:Z.source}))])}break}case&quot;number&quot;:{const p=N,{minimum:f,maximum:m,format:k,multipleOf:$,exclusiveMaximum:x,exclusiveMinimum:T}=t._zod.bag;typeof k==&quot;string&quot;&amp;&amp;k.includes(&quot;int&quot;)?p.type=&quot;integer&quot;:p.type=&quot;number&quot;,typeof T==&quot;number&quot;&amp;&amp;(p.exclusiveMinimum=T),typeof f==&quot;number&quot;&amp;&amp;(p.minimum=f,typeof T==&quot;number&quot;&amp;&amp;(T&gt;=f?delete p.minimum:delete p.exclusiveMinimum)),typeof x==&quot;number&quot;&amp;&amp;(p.exclusiveMaximum=x),typeof m==&quot;number&quot;&amp;&amp;(p.maximum=m,typeof x==&quot;number&quot;&amp;&amp;(x&lt;=m?delete p.maximum:delete p.exclusiveMaximum)),typeof $==&quot;number&quot;&amp;&amp;(p.multipleOf=$);break}case&quot;boolean&quot;:{const p=N;p.type=&quot;boolean&quot;;break}case&quot;bigint&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;BigInt cannot be represented in JSON Schema&quot;);break}case&quot;symbol&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Symbols cannot be represented in JSON Schema&quot;);break}case&quot;null&quot;:{N.type=&quot;null&quot;;break}case&quot;any&quot;:break;case&quot;unknown&quot;:break;case&quot;undefined&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Undefined cannot be represented in JSON Schema&quot;);break}case&quot;void&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Void cannot be represented in JSON Schema&quot;);break}case&quot;never&quot;:{N.not={};break}case&quot;date&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Date cannot be represented in JSON Schema&quot;);break}case&quot;array&quot;:{const p=N,{minimum:f,maximum:m}=t._zod.bag;typeof f==&quot;number&quot;&amp;&amp;(p.minItems=f),typeof m==&quot;number&quot;&amp;&amp;(p.maxItems=m),p.type=&quot;array&quot;,p.items=this.process(r.element,{...y,path:[...y.path,&quot;items&quot;]});break}case&quot;object&quot;:{const p=N;p.type=&quot;object&quot;,p.properties={};const f=r.shape;for(const $ in f)p.properties[$]=this.process(f[$],{...y,path:[...y.path,&quot;properties&quot;,$]});const m=new Set(Object.keys(f)),k=new Set([...m].filter($=&gt;{const x=r.shape[$]._zod;return this.io===&quot;input&quot;?x.optin===void 0:x.optout===void 0}));k.size&gt;0&amp;&amp;(p.required=Array.from(k)),((v=r.catchall)==null?void 0:v._zod.def.type)===&quot;never&quot;?p.additionalProperties=!1:r.catchall?r.catchall&amp;&amp;(p.additionalProperties=this.process(r.catchall,{...y,path:[...y.path,&quot;additionalProperties&quot;]})):this.io===&quot;output&quot;&amp;&amp;(p.additionalProperties=!1);break}case&quot;union&quot;:{const p=N;p.anyOf=r.options.map((f,m)=&gt;this.process(f,{...y,path:[...y.path,&quot;anyOf&quot;,m]}));break}case&quot;intersection&quot;:{const p=N,f=this.process(r.left,{...y,path:[...y.path,&quot;allOf&quot;,0]}),m=this.process(r.right,{...y,path:[...y.path,&quot;allOf&quot;,1]}),k=x=&gt;&quot;allOf&quot;in x&amp;&amp;Object.keys(x).length===1,$=[...k(f)?f.allOf:[f],...k(m)?m.allOf:[m]];p.allOf=$;break}case&quot;tuple&quot;:{const p=N;p.type=&quot;array&quot;;const f=r.items.map(($,x)=&gt;this.process($,{...y,path:[...y.path,&quot;prefixItems&quot;,x]}));if(this.target===&quot;draft-2020-12&quot;?p.prefixItems=f:p.items=f,r.rest){const $=this.process(r.rest,{...y,path:[...y.path,&quot;items&quot;]});this.target===&quot;draft-2020-12&quot;?p.items=$:p.additionalItems=$}r.rest&amp;&amp;(p.items=this.process(r.rest,{...y,path:[...y.path,&quot;items&quot;]}));const{minimum:m,maximum:k}=t._zod.bag;typeof m==&quot;number&quot;&amp;&amp;(p.minItems=m),typeof k==&quot;number&quot;&amp;&amp;(p.maxItems=k);break}case&quot;record&quot;:{const p=N;p.type=&quot;object&quot;,p.propertyNames=this.process(r.keyType,{...y,path:[...y.path,&quot;propertyNames&quot;]}),p.additionalProperties=this.process(r.valueType,{...y,path:[...y.path,&quot;additionalProperties&quot;]});break}case&quot;map&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Map cannot be represented in JSON Schema&quot;);break}case&quot;set&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Set cannot be represented in JSON Schema&quot;);break}case&quot;enum&quot;:{const p=N,f=nm(r.entries);f.every(m=&gt;typeof m==&quot;number&quot;)&amp;&amp;(p.type=&quot;number&quot;),f.every(m=&gt;typeof m==&quot;string&quot;)&amp;&amp;(p.type=&quot;string&quot;),p.enum=f;break}case&quot;literal&quot;:{const p=N,f=[];for(const m of r.values)if(m===void 0){if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Literal `undefined` cannot be represented in JSON Schema&quot;)}else if(typeof m==&quot;bigint&quot;){if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;BigInt literals cannot be represented in JSON Schema&quot;);f.push(Number(m))}else f.push(m);if(f.length!==0)if(f.length===1){const m=f[0];p.type=m===null?&quot;null&quot;:typeof m,p.const=m}else f.every(m=&gt;typeof m==&quot;number&quot;)&amp;&amp;(p.type=&quot;number&quot;),f.every(m=&gt;typeof m==&quot;string&quot;)&amp;&amp;(p.type=&quot;string&quot;),f.every(m=&gt;typeof m==&quot;boolean&quot;)&amp;&amp;(p.type=&quot;string&quot;),f.every(m=&gt;m===null)&amp;&amp;(p.type=&quot;null&quot;),p.enum=f;break}case&quot;file&quot;:{const p=N,f={type:&quot;string&quot;,format:&quot;binary&quot;,contentEncoding:&quot;binary&quot;},{minimum:m,maximum:k,mime:$}=t._zod.bag;m!==void 0&amp;&amp;(f.minLength=m),k!==void 0&amp;&amp;(f.maxLength=k),$?$.length===1?(f.contentMediaType=$[0],Object.assign(p,f)):p.anyOf=$.map(x=&gt;({...f,contentMediaType:x})):Object.assign(p,f);break}case&quot;transform&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Transforms cannot be represented in JSON Schema&quot;);break}case&quot;nullable&quot;:{const p=this.process(r.innerType,y);N.anyOf=[p,{type:&quot;null&quot;}];break}case&quot;nonoptional&quot;:{this.process(r.innerType,y),s.ref=r.innerType;break}case&quot;success&quot;:{const p=N;p.type=&quot;boolean&quot;;break}case&quot;default&quot;:{this.process(r.innerType,y),s.ref=r.innerType,N.default=JSON.parse(JSON.stringify(r.defaultValue));break}case&quot;prefault&quot;:{this.process(r.innerType,y),s.ref=r.innerType,this.io===&quot;input&quot;&amp;&amp;(N._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break}case&quot;catch&quot;:{this.process(r.innerType,y),s.ref=r.innerType;let p;try{p=r.catchValue(void 0)}catch{throw new Error(&quot;Dynamic catch values are not supported in JSON Schema&quot;)}N.default=p;break}case&quot;nan&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;NaN cannot be represented in JSON Schema&quot;);break}case&quot;template_literal&quot;:{const p=N,f=t._zod.pattern;if(!f)throw new Error(&quot;Pattern not found in template literal&quot;);p.type=&quot;string&quot;,p.pattern=f.source;break}case&quot;pipe&quot;:{const p=this.io===&quot;input&quot;?r.in._zod.def.type===&quot;transform&quot;?r.out:r.in:r.out;this.process(p,y),s.ref=p;break}case&quot;readonly&quot;:{this.process(r.innerType,y),s.ref=r.innerType,N.readOnly=!0;break}case&quot;promise&quot;:{this.process(r.innerType,y),s.ref=r.innerType;break}case&quot;optional&quot;:{this.process(r.innerType,y),s.ref=r.innerType;break}case&quot;lazy&quot;:{const p=t._zod.innerType;this.process(p,y),s.ref=p;break}case&quot;custom&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Custom types cannot be represented in JSON Schema&quot;);break}}}}const u=this.metadataRegistry.get(t);return u&amp;&amp;Object.assign(s.schema,u),this.io===&quot;input&quot;&amp;&amp;He(t)&amp;&amp;(delete s.schema.examples,delete s.schema.default),this.io===&quot;input&quot;&amp;&amp;s.schema._prefault&amp;&amp;((i=s.schema).default??(i.default=s.schema._prefault)),delete s.schema._prefault,this.seen.get(t).schema}emit(t,n){var d,h,g,v,y,E;const i={cycles:(n==null?void 0:n.cycles)??&quot;ref&quot;,reused:(n==null?void 0:n.reused)??&quot;inline&quot;,external:(n==null?void 0:n.external)??void 0},r=this.seen.get(t);if(!r)throw new Error(&quot;Unprocessed schema. This is a bug in Zod.&quot;);const o=N=&gt;{var $;const p=this.target===&quot;draft-2020-12&quot;?&quot;$defs&quot;:&quot;definitions&quot;;if(i.external){const x=($=i.external.registry.get(N[0]))==null?void 0:$.id,T=i.external.uri??(A=&gt;A);if(x)return{ref:T(x)};const Z=N[1].defId??N[1].schema.id??`schema${this.counter++}`;return N[1].defId=Z,{defId:Z,ref:`${T(&quot;__shared&quot;)}#/${p}/${Z}`}}if(N[1]===r)return{ref:&quot;#&quot;};const m=`#/${p}/`,k=N[1].schema.id??`__schema${this.counter++}`;return{defId:k,ref:m+k}},a=N=&gt;{if(N[1].schema.$ref)return;const p=N[1],{ref:f,defId:m}=o(N);p.def={...p.schema},m&amp;&amp;(p.defId=m);const k=p.schema;for(const $ in k)delete k[$];k.$ref=f};if(i.cycles===&quot;throw&quot;)for(const N of this.seen.entries()){const p=N[1];if(p.cycle)throw new Error(`Cycle detected: #/${(d=p.cycle)==null?void 0:d.join(&quot;/&quot;)}/&lt;root&gt;

Set the \`cycles\` parameter to \`&quot;ref&quot;\` to resolve cyclical schemas with defs.`)}for(const N of this.seen.entries()){const p=N[1];if(t===N[0]){a(N);continue}if(i.external){const m=(h=i.external.registry.get(N[0]))==null?void 0:h.id;if(t!==N[0]&amp;&amp;m){a(N);continue}}if((g=this.metadataRegistry.get(N[0]))==null?void 0:g.id){a(N);continue}if(p.cycle){a(N);continue}if(p.count&gt;1&amp;&amp;i.reused===&quot;ref&quot;){a(N);continue}}const s=(N,p)=&gt;{const f=this.seen.get(N),m=f.def??f.schema,k={...m};if(f.ref===null)return;const $=f.ref;if(f.ref=null,$){s($,p);const x=this.seen.get($).schema;x.$ref&amp;&amp;p.target===&quot;draft-7&quot;?(m.allOf=m.allOf??[],m.allOf.push(x)):(Object.assign(m,x),Object.assign(m,k))}f.isParent||this.override({zodSchema:N,jsonSchema:m,path:f.path??[]})};for(const N of[...this.seen.entries()].reverse())s(N[0],{target:this.target});const l={};if(this.target===&quot;draft-2020-12&quot;?l.$schema=&quot;https://json-schema.org/draft/2020-12/schema&quot;:this.target===&quot;draft-7&quot;?l.$schema=&quot;http://json-schema.org/draft-07/schema#&quot;:console.warn(`Invalid target: ${this.target}`),(v=i.external)!=null&amp;&amp;v.uri){const N=(y=i.external.registry.get(t))==null?void 0:y.id;if(!N)throw new Error(&quot;Schema is missing an `id` property&quot;);l.$id=i.external.uri(N)}Object.assign(l,r.def);const u=((E=i.external)==null?void 0:E.defs)??{};for(const N of this.seen.entries()){const p=N[1];p.def&amp;&amp;p.defId&amp;&amp;(u[p.defId]=p.def)}i.external||Object.keys(u).length&gt;0&amp;&amp;(this.target===&quot;draft-2020-12&quot;?l.$defs=u:l.definitions=u);try{return JSON.parse(JSON.stringify(l))}catch{throw new Error(&quot;Error converting schema to JSON.&quot;)}}}function ox(e,t){if(e instanceof xm){const i=new Pd(t),r={};for(const s of e._idmap.entries()){const[l,u]=s;i.process(u)}const o={},a={registry:e,uri:t==null?void 0:t.uri,defs:r};for(const s of e._idmap.entries()){const[l,u]=s;o[l]=i.emit(u,{...t,external:a})}if(Object.keys(r).length&gt;0){const s=i.target===&quot;draft-2020-12&quot;?&quot;$defs&quot;:&quot;definitions&quot;;o.__shared={[s]:r}}return{schemas:o}}const n=new Pd(t);return n.process(e),n.emit(e,t)}function He(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;switch(r.type){case&quot;string&quot;:case&quot;number&quot;:case&quot;bigint&quot;:case&quot;boolean&quot;:case&quot;date&quot;:case&quot;symbol&quot;:case&quot;undefined&quot;:case&quot;null&quot;:case&quot;any&quot;:case&quot;unknown&quot;:case&quot;never&quot;:case&quot;void&quot;:case&quot;literal&quot;:case&quot;enum&quot;:case&quot;nan&quot;:case&quot;file&quot;:case&quot;template_literal&quot;:return!1;case&quot;array&quot;:return He(r.element,n);case&quot;object&quot;:{for(const o in r.shape)if(He(r.shape[o],n))return!0;return!1}case&quot;union&quot;:{for(const o of r.options)if(He(o,n))return!0;return!1}case&quot;intersection&quot;:return He(r.left,n)||He(r.right,n);case&quot;tuple&quot;:{for(const o of r.items)if(He(o,n))return!0;return!!(r.rest&amp;&amp;He(r.rest,n))}case&quot;record&quot;:return He(r.keyType,n)||He(r.valueType,n);case&quot;map&quot;:return He(r.keyType,n)||He(r.valueType,n);case&quot;set&quot;:return He(r.valueType,n);case&quot;promise&quot;:case&quot;optional&quot;:case&quot;nonoptional&quot;:case&quot;nullable&quot;:case&quot;readonly&quot;:return He(r.innerType,n);case&quot;lazy&quot;:return He(r.getter(),n);case&quot;default&quot;:return He(r.innerType,n);case&quot;prefault&quot;:return He(r.innerType,n);case&quot;custom&quot;:return!1;case&quot;transform&quot;:return!0;case&quot;pipe&quot;:return He(r.in,n)||He(r.out,n);case&quot;success&quot;:return!1;case&quot;catch&quot;:return!1}throw new Error(`Unknown schema type: ${r.type}`)}const Hj=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:&quot;Module&quot;})),Kj=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:Mw,$ZodArray:ym,$ZodAsyncError:to,$ZodBase64:jw,$ZodBase64URL:zw,$ZodBigInt:vm,$ZodBigIntFormat:Dw,$ZodBoolean:gm,$ZodCIDRv4:Ew,$ZodCIDRv6:Nw,$ZodCUID:gw,$ZodCUID2:vw,$ZodCatch:ak,$ZodCheck:Fe,$ZodCheckBigIntFormat:H0,$ZodCheckEndsWith:iw,$ZodCheckGreaterThan:mm,$ZodCheckIncludes:nw,$ZodCheckLengthEquals:X0,$ZodCheckLessThan:fm,$ZodCheckLowerCase:ew,$ZodCheckMaxLength:q0,$ZodCheckMaxSize:K0,$ZodCheckMimeType:aw,$ZodCheckMinLength:Q0,$ZodCheckMinSize:J0,$ZodCheckMultipleOf:V0,$ZodCheckNumberFormat:W0,$ZodCheckOverwrite:sw,$ZodCheckProperty:ow,$ZodCheckRegex:Y0,$ZodCheckSizeEquals:G0,$ZodCheckStartsWith:rw,$ZodCheckStringFormat:Ya,$ZodCheckUpperCase:tw,$ZodCustom:fk,$ZodCustomStringFormat:Pw,$ZodDate:Vw,$ZodDefault:nk,$ZodDiscriminatedUnion:Hw,$ZodE164:Tw,$ZodEmail:fw,$ZodEmoji:pw,$ZodEnum:Qw,$ZodError:im,$ZodFile:Yw,$ZodFunction:rx,$ZodGUID:cw,$ZodIPv4:$w,$ZodIPv6:Iw,$ZodISODate:xw,$ZodISODateTime:kw,$ZodISODuration:Sw,$ZodISOTime:bw,$ZodIntersection:Kw,$ZodJWT:Aw,$ZodKSUID:ww,$ZodLazy:dk,$ZodLiteral:Xw,$ZodMap:Gw,$ZodNaN:sk,$ZodNanoID:hw,$ZodNever:Fw,$ZodNonOptional:ik,$ZodNull:Zw,$ZodNullable:tk,$ZodNumber:hm,$ZodNumberFormat:Uw,$ZodObject:Ww,$ZodOptional:ek,$ZodPipe:km,$ZodPrefault:rk,$ZodPromise:ck,$ZodReadonly:lk,$ZodRealError:Xa,$ZodRecord:Jw,$ZodRegistry:xm,$ZodSet:qw,$ZodString:es,$ZodStringFormat:xe,$ZodSuccess:ok,$ZodSymbol:Rw,$ZodTemplateLiteral:uk,$ZodTransform:wm,$ZodTuple:pu,$ZodType:ie,$ZodULID:yw,$ZodURL:mw,$ZodUUID:dw,$ZodUndefined:Lw,$ZodUnion:_m,$ZodUnknown:Tl,$ZodVoid:Bw,$ZodXID:_w,$brand:V_,$constructor:S,$input:gk,$output:hk,Doc:lw,JSONSchema:Hj,JSONSchemaGenerator:Pd,NEVER:B_,TimePrecision:_k,_any:Zk,_array:rp,_base64:Mm,_base64url:Fm,_bigint:Ck,_boolean:zk,_catch:Zj,_cidrv4:Lm,_cidrv6:Zm,_coercedBigint:Ak,_coercedBoolean:Tk,_coercedDate:Vk,_coercedNumber:$k,_coercedString:yk,_cuid:Tm,_cuid2:Cm,_custom:Yk,_date:Bk,_default:Dj,_discriminatedUnion:Ij,_e164:Bm,_email:Sm,_emoji:Om,_endsWith:Qm,_enum:zj,_file:Xk,_float32:Ek,_float64:Nk,_gt:ni,_gte:jt,_guid:Cl,_includes:Gm,_int:Ik,_int32:jk,_int64:Pk,_intersection:Ej,_ipv4:Dm,_ipv6:Rm,_isoDate:kk,_isoDateTime:wk,_isoDuration:bk,_isoTime:xk,_jwt:Vm,_ksuid:Um,_lazy:Vj,_length:vu,_literal:Cj,_lowercase:Km,_lt:ti,_lte:cn,_map:jj,_max:cn,_maxLength:gu,_maxSize:hu,_mime:Xm,_min:jt,_minLength:io,_minSize:za,_multipleOf:Oa,_nan:Wk,_nanoid:zm,_nativeEnum:Tj,_negative:Kk,_never:Mk,_nonnegative:Gk,_nonoptional:Rj,_nonpositive:Jk,_normalize:Ym,_null:Lk,_nullable:Uj,_number:Sk,_optional:Pj,_overwrite:li,_parse:sm,_parseAsync:lm,_pipe:Mj,_positive:Hk,_promise:Wj,_property:qk,_readonly:Fj,_record:Nj,_refine:ex,_regex:Hm,_safeParse:um,_safeParseAsync:cm,_set:Oj,_size:Wm,_startsWith:qm,_string:vk,_stringFormat:nx,_stringbool:tx,_success:Lj,_symbol:Dk,_templateLiteral:Bj,_toLowerCase:tp,_toUpperCase:np,_transform:Aj,_trim:ep,_tuple:Qk,_uint32:Ok,_uint64:Uk,_ulid:Am,_undefined:Rk,_union:$j,_unknown:Al,_uppercase:Jm,_url:jm,_uuid:$m,_uuidv4:Im,_uuidv6:Em,_uuidv7:Nm,_void:Fk,_xid:Pm,clone:jn,config:pt,flattenError:om,formatError:am,function:ix,globalConfig:Ol,globalRegistry:Lr,isValidBase64:pm,isValidBase64URL:Ow,isValidJWT:Cw,locales:pk,parse:Td,parseAsync:Cd,prettifyError:s0,regexes:F0,registry:bm,safeParse:l0,safeParseAsync:u0,toDotPath:a0,toJSONSchema:ox,treeifyError:o0,util:BE,version:uw},Symbol.toStringTag,{value:&quot;Module&quot;})),ip=S(&quot;ZodISODateTime&quot;,(e,t)=&gt;{kw.init(e,t),Ne.init(e,t)});function ax(e){return wk(ip,e)}const op=S(&quot;ZodISODate&quot;,(e,t)=&gt;{xw.init(e,t),Ne.init(e,t)});function sx(e){return kk(op,e)}const ap=S(&quot;ZodISOTime&quot;,(e,t)=&gt;{bw.init(e,t),Ne.init(e,t)});function lx(e){return xk(ap,e)}const sp=S(&quot;ZodISODuration&quot;,(e,t)=&gt;{Sw.init(e,t),Ne.init(e,t)});function ux(e){return bk(sp,e)}const Jj=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:op,ZodISODateTime:ip,ZodISODuration:sp,ZodISOTime:ap,date:sx,datetime:ax,duration:ux,time:lx},Symbol.toStringTag,{value:&quot;Module&quot;})),cx=(e,t)=&gt;{im.init(e,t),e.name=&quot;ZodError&quot;,Object.defineProperties(e,{format:{value:n=&gt;am(e,n)},flatten:{value:n=&gt;om(e,n)},addIssue:{value:n=&gt;e.issues.push(n)},addIssues:{value:n=&gt;e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},Gj=S(&quot;ZodError&quot;,cx),ts=S(&quot;ZodError&quot;,cx,{Parent:Error}),dx=sm(ts),fx=lm(ts),mx=um(ts),px=cm(ts),ue=S(&quot;ZodType&quot;,(e,t)=&gt;(ie.init(e,t),e.def=t,Object.defineProperty(e,&quot;_def&quot;,{value:t}),e.check=(...n)=&gt;e.clone({...t,checks:[...t.checks??[],...n.map(i=&gt;typeof i==&quot;function&quot;?{_zod:{check:i,def:{check:&quot;custom&quot;},onattach:[]}}:i)]}),e.clone=(n,i)=&gt;jn(e,n,i),e.brand=()=&gt;e,e.register=(n,i)=&gt;(n.add(e,i),e),e.parse=(n,i)=&gt;dx(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=&gt;mx(e,n,i),e.parseAsync=async(n,i)=&gt;fx(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=&gt;px(e,n,i),e.spa=e.safeParseAsync,e.refine=(n,i)=&gt;e.check(tb(n,i)),e.superRefine=n=&gt;e.check(nb(n)),e.overwrite=n=&gt;e.check(li(n)),e.optional=()=&gt;Dl(e),e.nullable=()=&gt;Rl(e),e.nullish=()=&gt;Dl(Rl(e)),e.nonoptional=n=&gt;Bx(e,n),e.array=()=&gt;Np(e),e.or=n=&gt;Su([e,n]),e.and=n=&gt;jx(e,n),e.transform=n=&gt;Ll(e,Tp(n)),e.default=n=&gt;Zx(e,n),e.prefault=n=&gt;Fx(e,n),e.catch=n=&gt;Hx(e,n),e.pipe=n=&gt;Ll(e,n),e.readonly=()=&gt;Gx(e),e.describe=n=&gt;{const i=e.clone();return Lr.add(i,{description:n}),i},Object.defineProperty(e,&quot;description&quot;,{get(){var n;return(n=Lr.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=&gt;{if(n.length===0)return Lr.get(e);const i=e.clone();return Lr.add(i,n[0]),i},e.isOptional=()=&gt;e.safeParse(void 0).success,e.isNullable=()=&gt;e.safeParse(null).success,e)),lp=S(&quot;_ZodString&quot;,(e,t)=&gt;{es.init(e,t),ue.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=&gt;e.check(Hm(...i)),e.includes=(...i)=&gt;e.check(Gm(...i)),e.startsWith=(...i)=&gt;e.check(qm(...i)),e.endsWith=(...i)=&gt;e.check(Qm(...i)),e.min=(...i)=&gt;e.check(io(...i)),e.max=(...i)=&gt;e.check(gu(...i)),e.length=(...i)=&gt;e.check(vu(...i)),e.nonempty=(...i)=&gt;e.check(io(1,...i)),e.lowercase=i=&gt;e.check(Km(i)),e.uppercase=i=&gt;e.check(Jm(i)),e.trim=()=&gt;e.check(ep()),e.normalize=(...i)=&gt;e.check(Ym(...i)),e.toLowerCase=()=&gt;e.check(tp()),e.toUpperCase=()=&gt;e.check(np())}),yu=S(&quot;ZodString&quot;,(e,t)=&gt;{es.init(e,t),lp.init(e,t),e.email=n=&gt;e.check(Sm(up,n)),e.url=n=&gt;e.check(jm(cp,n)),e.jwt=n=&gt;e.check(Vm($p,n)),e.emoji=n=&gt;e.check(Om(dp,n)),e.guid=n=&gt;e.check(Cl(Pl,n)),e.uuid=n=&gt;e.check($m(Fn,n)),e.uuidv4=n=&gt;e.check(Im(Fn,n)),e.uuidv6=n=&gt;e.check(Em(Fn,n)),e.uuidv7=n=&gt;e.check(Nm(Fn,n)),e.nanoid=n=&gt;e.check(zm(fp,n)),e.guid=n=&gt;e.check(Cl(Pl,n)),e.cuid=n=&gt;e.check(Tm(mp,n)),e.cuid2=n=&gt;e.check(Cm(pp,n)),e.ulid=n=&gt;e.check(Am(hp,n)),e.base64=n=&gt;e.check(Mm(xp,n)),e.base64url=n=&gt;e.check(Fm(bp,n)),e.xid=n=&gt;e.check(Pm(gp,n)),e.ksuid=n=&gt;e.check(Um(vp,n)),e.ipv4=n=&gt;e.check(Dm(yp,n)),e.ipv6=n=&gt;e.check(Rm(_p,n)),e.cidrv4=n=&gt;e.check(Lm(wp,n)),e.cidrv6=n=&gt;e.check(Zm(kp,n)),e.e164=n=&gt;e.check(Bm(Sp,n)),e.datetime=n=&gt;e.check(ax(n)),e.date=n=&gt;e.check(sx(n)),e.time=n=&gt;e.check(lx(n)),e.duration=n=&gt;e.check(ux(n))});function Ud(e){return vk(yu,e)}const Ne=S(&quot;ZodStringFormat&quot;,(e,t)=&gt;{xe.init(e,t),lp.init(e,t)}),up=S(&quot;ZodEmail&quot;,(e,t)=&gt;{fw.init(e,t),Ne.init(e,t)});function qj(e){return Sm(up,e)}const Pl=S(&quot;ZodGUID&quot;,(e,t)=&gt;{cw.init(e,t),Ne.init(e,t)});function Qj(e){return Cl(Pl,e)}const Fn=S(&quot;ZodUUID&quot;,(e,t)=&gt;{dw.init(e,t),Ne.init(e,t)});function Xj(e){return $m(Fn,e)}function Yj(e){return Im(Fn,e)}function eO(e){return Em(Fn,e)}function tO(e){return Nm(Fn,e)}const cp=S(&quot;ZodURL&quot;,(e,t)=&gt;{mw.init(e,t),Ne.init(e,t)});function nO(e){return jm(cp,e)}const dp=S(&quot;ZodEmoji&quot;,(e,t)=&gt;{pw.init(e,t),Ne.init(e,t)});function rO(e){return Om(dp,e)}const fp=S(&quot;ZodNanoID&quot;,(e,t)=&gt;{hw.init(e,t),Ne.init(e,t)});function iO(e){return zm(fp,e)}const mp=S(&quot;ZodCUID&quot;,(e,t)=&gt;{gw.init(e,t),Ne.init(e,t)});function oO(e){return Tm(mp,e)}const pp=S(&quot;ZodCUID2&quot;,(e,t)=&gt;{vw.init(e,t),Ne.init(e,t)});function aO(e){return Cm(pp,e)}const hp=S(&quot;ZodULID&quot;,(e,t)=&gt;{yw.init(e,t),Ne.init(e,t)});function sO(e){return Am(hp,e)}const gp=S(&quot;ZodXID&quot;,(e,t)=&gt;{_w.init(e,t),Ne.init(e,t)});function lO(e){return Pm(gp,e)}const vp=S(&quot;ZodKSUID&quot;,(e,t)=&gt;{ww.init(e,t),Ne.init(e,t)});function uO(e){return Um(vp,e)}const yp=S(&quot;ZodIPv4&quot;,(e,t)=&gt;{$w.init(e,t),Ne.init(e,t)});function cO(e){return Dm(yp,e)}const _p=S(&quot;ZodIPv6&quot;,(e,t)=&gt;{Iw.init(e,t),Ne.init(e,t)});function dO(e){return Rm(_p,e)}const wp=S(&quot;ZodCIDRv4&quot;,(e,t)=&gt;{Ew.init(e,t),Ne.init(e,t)});function fO(e){return Lm(wp,e)}const kp=S(&quot;ZodCIDRv6&quot;,(e,t)=&gt;{Nw.init(e,t),Ne.init(e,t)});function mO(e){return Zm(kp,e)}const xp=S(&quot;ZodBase64&quot;,(e,t)=&gt;{jw.init(e,t),Ne.init(e,t)});function pO(e){return Mm(xp,e)}const bp=S(&quot;ZodBase64URL&quot;,(e,t)=&gt;{zw.init(e,t),Ne.init(e,t)});function hO(e){return Fm(bp,e)}const Sp=S(&quot;ZodE164&quot;,(e,t)=&gt;{Tw.init(e,t),Ne.init(e,t)});function gO(e){return Bm(Sp,e)}const $p=S(&quot;ZodJWT&quot;,(e,t)=&gt;{Aw.init(e,t),Ne.init(e,t)});function vO(e){return Vm($p,e)}const hx=S(&quot;ZodCustomStringFormat&quot;,(e,t)=&gt;{Pw.init(e,t),Ne.init(e,t)});function yO(e,t,n={}){return nx(hx,e,t,n)}const _u=S(&quot;ZodNumber&quot;,(e,t)=&gt;{hm.init(e,t),ue.init(e,t),e.gt=(i,r)=&gt;e.check(ni(i,r)),e.gte=(i,r)=&gt;e.check(jt(i,r)),e.min=(i,r)=&gt;e.check(jt(i,r)),e.lt=(i,r)=&gt;e.check(ti(i,r)),e.lte=(i,r)=&gt;e.check(cn(i,r)),e.max=(i,r)=&gt;e.check(cn(i,r)),e.int=i=&gt;e.check(Dd(i)),e.safe=i=&gt;e.check(Dd(i)),e.positive=i=&gt;e.check(ni(0,i)),e.nonnegative=i=&gt;e.check(jt(0,i)),e.negative=i=&gt;e.check(ti(0,i)),e.nonpositive=i=&gt;e.check(cn(0,i)),e.multipleOf=(i,r)=&gt;e.check(Oa(i,r)),e.step=(i,r)=&gt;e.check(Oa(i,r)),e.finite=()=&gt;e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??&quot;&quot;).includes(&quot;int&quot;)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function gx(e){return Sk(_u,e)}const uo=S(&quot;ZodNumberFormat&quot;,(e,t)=&gt;{Uw.init(e,t),_u.init(e,t)});function Dd(e){return Ik(uo,e)}function _O(e){return Ek(uo,e)}function wO(e){return Nk(uo,e)}function kO(e){return jk(uo,e)}function xO(e){return Ok(uo,e)}const wu=S(&quot;ZodBoolean&quot;,(e,t)=&gt;{gm.init(e,t),ue.init(e,t)});function vx(e){return zk(wu,e)}const ku=S(&quot;ZodBigInt&quot;,(e,t)=&gt;{vm.init(e,t),ue.init(e,t),e.gte=(i,r)=&gt;e.check(jt(i,r)),e.min=(i,r)=&gt;e.check(jt(i,r)),e.gt=(i,r)=&gt;e.check(ni(i,r)),e.gte=(i,r)=&gt;e.check(jt(i,r)),e.min=(i,r)=&gt;e.check(jt(i,r)),e.lt=(i,r)=&gt;e.check(ti(i,r)),e.lte=(i,r)=&gt;e.check(cn(i,r)),e.max=(i,r)=&gt;e.check(cn(i,r)),e.positive=i=&gt;e.check(ni(BigInt(0),i)),e.negative=i=&gt;e.check(ti(BigInt(0),i)),e.nonpositive=i=&gt;e.check(cn(BigInt(0),i)),e.nonnegative=i=&gt;e.check(jt(BigInt(0),i)),e.multipleOf=(i,r)=&gt;e.check(Oa(i,r));const n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function bO(e){return Ck(ku,e)}const Ip=S(&quot;ZodBigIntFormat&quot;,(e,t)=&gt;{Dw.init(e,t),ku.init(e,t)});function SO(e){return Pk(Ip,e)}function $O(e){return Uk(Ip,e)}const yx=S(&quot;ZodSymbol&quot;,(e,t)=&gt;{Rw.init(e,t),ue.init(e,t)});function IO(e){return Dk(yx,e)}const _x=S(&quot;ZodUndefined&quot;,(e,t)=&gt;{Lw.init(e,t),ue.init(e,t)});function EO(e){return Rk(_x,e)}const wx=S(&quot;ZodNull&quot;,(e,t)=&gt;{Zw.init(e,t),ue.init(e,t)});function kx(e){return Lk(wx,e)}const xx=S(&quot;ZodAny&quot;,(e,t)=&gt;{Mw.init(e,t),ue.init(e,t)});function NO(){return Zk(xx)}const bx=S(&quot;ZodUnknown&quot;,(e,t)=&gt;{Tl.init(e,t),ue.init(e,t)});function Ul(){return Al(bx)}const Sx=S(&quot;ZodNever&quot;,(e,t)=&gt;{Fw.init(e,t),ue.init(e,t)});function xu(e){return Mk(Sx,e)}const $x=S(&quot;ZodVoid&quot;,(e,t)=&gt;{Bw.init(e,t),ue.init(e,t)});function jO(e){return Fk($x,e)}const Ep=S(&quot;ZodDate&quot;,(e,t)=&gt;{Vw.init(e,t),ue.init(e,t),e.min=(i,r)=&gt;e.check(jt(i,r)),e.max=(i,r)=&gt;e.check(cn(i,r));const n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function OO(e){return Bk(Ep,e)}const Ix=S(&quot;ZodArray&quot;,(e,t)=&gt;{ym.init(e,t),ue.init(e,t),e.element=t.element,e.min=(n,i)=&gt;e.check(io(n,i)),e.nonempty=n=&gt;e.check(io(1,n)),e.max=(n,i)=&gt;e.check(gu(n,i)),e.length=(n,i)=&gt;e.check(vu(n,i)),e.unwrap=()=&gt;e.element});function Np(e,t){return rp(Ix,e,t)}function zO(e){const t=e._zod.def.shape;return Ux(Object.keys(t))}const bu=S(&quot;ZodObject&quot;,(e,t)=&gt;{Ww.init(e,t),ue.init(e,t),ye(e,&quot;shape&quot;,()=&gt;t.shape),e.keyof=()=&gt;Ax(Object.keys(e._zod.def.shape)),e.catchall=n=&gt;e.clone({...e._zod.def,catchall:n}),e.passthrough=()=&gt;e.clone({...e._zod.def,catchall:Ul()}),e.loose=()=&gt;e.clone({...e._zod.def,catchall:Ul()}),e.strict=()=&gt;e.clone({...e._zod.def,catchall:xu()}),e.strip=()=&gt;e.clone({...e._zod.def,catchall:void 0}),e.extend=n=&gt;e0(e,n),e.merge=n=&gt;t0(e,n),e.pick=n=&gt;X_(e,n),e.omit=n=&gt;Y_(e,n),e.partial=(...n)=&gt;n0(Cp,e,n[0]),e.required=(...n)=&gt;r0(Ap,e,n[0])});function TO(e,t){const n={type:&quot;object&quot;,get shape(){return lo(this,&quot;shape&quot;,{...e}),this.shape},...C(t)};return new bu(n)}function CO(e,t){return new bu({type:&quot;object&quot;,get shape(){return lo(this,&quot;shape&quot;,{...e}),this.shape},catchall:xu(),...C(t)})}function AO(e,t){return new bu({type:&quot;object&quot;,get shape(){return lo(this,&quot;shape&quot;,{...e}),this.shape},catchall:Ul(),...C(t)})}const jp=S(&quot;ZodUnion&quot;,(e,t)=&gt;{_m.init(e,t),ue.init(e,t),e.options=t.options});function Su(e,t){return new jp({type:&quot;union&quot;,options:e,...C(t)})}const Ex=S(&quot;ZodDiscriminatedUnion&quot;,(e,t)=&gt;{jp.init(e,t),Hw.init(e,t)});function PO(e,t,n){return new Ex({type:&quot;union&quot;,options:t,discriminator:e,...C(n)})}const Nx=S(&quot;ZodIntersection&quot;,(e,t)=&gt;{Kw.init(e,t),ue.init(e,t)});function jx(e,t){return new Nx({type:&quot;intersection&quot;,left:e,right:t})}const Ox=S(&quot;ZodTuple&quot;,(e,t)=&gt;{pu.init(e,t),ue.init(e,t),e.rest=n=&gt;e.clone({...e._zod.def,rest:n})});function UO(e,t,n){const i=t instanceof ie,r=i?n:t,o=i?t:null;return new Ox({type:&quot;tuple&quot;,items:e,rest:o,...C(r)})}const Op=S(&quot;ZodRecord&quot;,(e,t)=&gt;{Jw.init(e,t),ue.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function zx(e,t,n){return new Op({type:&quot;record&quot;,keyType:e,valueType:t,...C(n)})}function DO(e,t,n){return new Op({type:&quot;record&quot;,keyType:Su([e,xu()]),valueType:t,...C(n)})}const Tx=S(&quot;ZodMap&quot;,(e,t)=&gt;{Gw.init(e,t),ue.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function RO(e,t,n){return new Tx({type:&quot;map&quot;,keyType:e,valueType:t,...C(n)})}const Cx=S(&quot;ZodSet&quot;,(e,t)=&gt;{qw.init(e,t),ue.init(e,t),e.min=(...n)=&gt;e.check(za(...n)),e.nonempty=n=&gt;e.check(za(1,n)),e.max=(...n)=&gt;e.check(hu(...n)),e.size=(...n)=&gt;e.check(Wm(...n))});function LO(e,t){return new Cx({type:&quot;set&quot;,valueType:e,...C(t)})}const Ta=S(&quot;ZodEnum&quot;,(e,t)=&gt;{Qw.init(e,t),ue.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(i,r)=&gt;{const o={};for(const a of i)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Ta({...t,checks:[],...C(r),entries:o})},e.exclude=(i,r)=&gt;{const o={...t.entries};for(const a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Ta({...t,checks:[],...C(r),entries:o})}});function Ax(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(i=&gt;[i,i])):e;return new Ta({type:&quot;enum&quot;,entries:n,...C(t)})}function ZO(e,t){return new Ta({type:&quot;enum&quot;,entries:e,...C(t)})}const Px=S(&quot;ZodLiteral&quot;,(e,t)=&gt;{Xw.init(e,t),ue.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,&quot;value&quot;,{get(){if(t.values.length&gt;1)throw new Error(&quot;This schema contains multiple valid literal values. Use `.values` instead.&quot;);return t.values[0]}})});function Ux(e,t){return new Px({type:&quot;literal&quot;,values:Array.isArray(e)?e:[e],...C(t)})}const Dx=S(&quot;ZodFile&quot;,(e,t)=&gt;{Yw.init(e,t),ue.init(e,t),e.min=(n,i)=&gt;e.check(za(n,i)),e.max=(n,i)=&gt;e.check(hu(n,i)),e.mime=(n,i)=&gt;e.check(Xm(Array.isArray(n)?n:[n],i))});function MO(e){return Xk(Dx,e)}const zp=S(&quot;ZodTransform&quot;,(e,t)=&gt;{wm.init(e,t),ue.init(e,t),e._zod.parse=(n,i)=&gt;{n.addIssue=o=&gt;{if(typeof o==&quot;string&quot;)n.issues.push(no(o,n.value,t));else{const a=o;a.fatal&amp;&amp;(a.continue=!1),a.code??(a.code=&quot;custom&quot;),a.input??(a.input=n.value),a.inst??(a.inst=e),a.continue??(a.continue=!0),n.issues.push(no(a))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(o=&gt;(n.value=o,n)):(n.value=r,n)}});function Tp(e){return new zp({type:&quot;transform&quot;,transform:e})}const Cp=S(&quot;ZodOptional&quot;,(e,t)=&gt;{ek.init(e,t),ue.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType});function Dl(e){return new Cp({type:&quot;optional&quot;,innerType:e})}const Rx=S(&quot;ZodNullable&quot;,(e,t)=&gt;{tk.init(e,t),ue.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType});function Rl(e){return new Rx({type:&quot;nullable&quot;,innerType:e})}function FO(e){return Dl(Rl(e))}const Lx=S(&quot;ZodDefault&quot;,(e,t)=&gt;{nk.init(e,t),ue.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType,e.removeDefault=e.unwrap});function Zx(e,t){return new Lx({type:&quot;default&quot;,innerType:e,get defaultValue(){return typeof t==&quot;function&quot;?t():t}})}const Mx=S(&quot;ZodPrefault&quot;,(e,t)=&gt;{rk.init(e,t),ue.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType});function Fx(e,t){return new Mx({type:&quot;prefault&quot;,innerType:e,get defaultValue(){return typeof t==&quot;function&quot;?t():t}})}const Ap=S(&quot;ZodNonOptional&quot;,(e,t)=&gt;{ik.init(e,t),ue.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType});function Bx(e,t){return new Ap({type:&quot;nonoptional&quot;,innerType:e,...C(t)})}const Vx=S(&quot;ZodSuccess&quot;,(e,t)=&gt;{ok.init(e,t),ue.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType});function BO(e){return new Vx({type:&quot;success&quot;,innerType:e})}const Wx=S(&quot;ZodCatch&quot;,(e,t)=&gt;{ak.init(e,t),ue.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType,e.removeCatch=e.unwrap});function Hx(e,t){return new Wx({type:&quot;catch&quot;,innerType:e,catchValue:typeof t==&quot;function&quot;?t:()=&gt;t})}const Kx=S(&quot;ZodNaN&quot;,(e,t)=&gt;{sk.init(e,t),ue.init(e,t)});function VO(e){return Wk(Kx,e)}const Pp=S(&quot;ZodPipe&quot;,(e,t)=&gt;{km.init(e,t),ue.init(e,t),e.in=t.in,e.out=t.out});function Ll(e,t){return new Pp({type:&quot;pipe&quot;,in:e,out:t})}const Jx=S(&quot;ZodReadonly&quot;,(e,t)=&gt;{lk.init(e,t),ue.init(e,t)});function Gx(e){return new Jx({type:&quot;readonly&quot;,innerType:e})}const qx=S(&quot;ZodTemplateLiteral&quot;,(e,t)=&gt;{uk.init(e,t),ue.init(e,t)});function WO(e,t){return new qx({type:&quot;template_literal&quot;,parts:e,...C(t)})}const Qx=S(&quot;ZodLazy&quot;,(e,t)=&gt;{dk.init(e,t),ue.init(e,t),e.unwrap=()=&gt;e._zod.def.getter()});function Xx(e){return new Qx({type:&quot;lazy&quot;,getter:e})}const Yx=S(&quot;ZodPromise&quot;,(e,t)=&gt;{ck.init(e,t),ue.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType});function HO(e){return new Yx({type:&quot;promise&quot;,innerType:e})}const $u=S(&quot;ZodCustom&quot;,(e,t)=&gt;{fk.init(e,t),ue.init(e,t)});function eb(e){const t=new Fe({check:&quot;custom&quot;});return t._zod.check=e,t}function KO(e,t){return Yk($u,e??(()=&gt;!0),t)}function tb(e,t={}){return ex($u,e,t)}function nb(e){const t=eb(n=&gt;(n.addIssue=i=&gt;{if(typeof i==&quot;string&quot;)n.issues.push(no(i,n.value,t._zod.def));else{const r=i;r.fatal&amp;&amp;(r.continue=!1),r.code??(r.code=&quot;custom&quot;),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(no(r))}},e(n.value,n)));return t}function JO(e,t={error:`Input not instance of ${e.name}`}){const n=new $u({type:&quot;custom&quot;,check:&quot;custom&quot;,fn:i=&gt;i instanceof e,abort:!0,...C(t)});return n._zod.bag.Class=e,n}const GO=(...e)=&gt;tx({Pipe:Pp,Boolean:wu,String:yu,Transform:zp},...e);function qO(e){const t=Xx(()=&gt;Su([Ud(e),gx(),vx(),kx(),Np(t),zx(Ud(),t)]));return t}function QO(e,t){return Ll(Tp(e),t)}const XO={invalid_type:&quot;invalid_type&quot;,too_big:&quot;too_big&quot;,too_small:&quot;too_small&quot;,invalid_format:&quot;invalid_format&quot;,not_multiple_of:&quot;not_multiple_of&quot;,unrecognized_keys:&quot;unrecognized_keys&quot;,invalid_union:&quot;invalid_union&quot;,invalid_key:&quot;invalid_key&quot;,invalid_element:&quot;invalid_element&quot;,invalid_value:&quot;invalid_value&quot;,custom:&quot;custom&quot;};function YO(e){pt({customError:e})}function ez(){return pt().customError}function tz(e){return yk(yu,e)}function nz(e){return $k(_u,e)}function rz(e){return Tk(wu,e)}function iz(e){return Ak(ku,e)}function oz(e){return Vk(Ep,e)}const az=Object.freeze(Object.defineProperty({__proto__:null,bigint:iz,boolean:rz,date:oz,number:nz,string:tz},Symbol.toStringTag,{value:&quot;Module&quot;}));pt(mk());const j=Object.freeze(Object.defineProperty({__proto__:null,$brand:V_,$input:gk,$output:hk,NEVER:B_,TimePrecision:_k,ZodAny:xx,ZodArray:Ix,ZodBase64:xp,ZodBase64URL:bp,ZodBigInt:ku,ZodBigIntFormat:Ip,ZodBoolean:wu,ZodCIDRv4:wp,ZodCIDRv6:kp,ZodCUID:mp,ZodCUID2:pp,ZodCatch:Wx,ZodCustom:$u,ZodCustomStringFormat:hx,ZodDate:Ep,ZodDefault:Lx,ZodDiscriminatedUnion:Ex,ZodE164:Sp,ZodEmail:up,ZodEmoji:dp,ZodEnum:Ta,ZodError:Gj,ZodFile:Dx,ZodGUID:Pl,ZodIPv4:yp,ZodIPv6:_p,ZodISODate:op,ZodISODateTime:ip,ZodISODuration:sp,ZodISOTime:ap,ZodIntersection:Nx,ZodIssueCode:XO,ZodJWT:$p,ZodKSUID:vp,ZodLazy:Qx,ZodLiteral:Px,ZodMap:Tx,ZodNaN:Kx,ZodNanoID:fp,ZodNever:Sx,ZodNonOptional:Ap,ZodNull:wx,ZodNullable:Rx,ZodNumber:_u,ZodNumberFormat:uo,ZodObject:bu,ZodOptional:Cp,ZodPipe:Pp,ZodPrefault:Mx,ZodPromise:Yx,ZodReadonly:Jx,ZodRealError:ts,ZodRecord:Op,ZodSet:Cx,ZodString:yu,ZodStringFormat:Ne,ZodSuccess:Vx,ZodSymbol:yx,ZodTemplateLiteral:qx,ZodTransform:zp,ZodTuple:Ox,ZodType:ue,ZodULID:hp,ZodURL:cp,ZodUUID:Fn,ZodUndefined:_x,ZodUnion:jp,ZodUnknown:bx,ZodVoid:$x,ZodXID:gp,_ZodString:lp,_default:Zx,any:NO,array:Np,base64:pO,base64url:hO,bigint:bO,boolean:vx,catch:Hx,check:eb,cidrv4:fO,cidrv6:mO,clone:jn,coerce:az,config:pt,core:Kj,cuid:oO,cuid2:aO,custom:KO,date:OO,discriminatedUnion:PO,e164:gO,email:qj,emoji:rO,endsWith:Qm,enum:Ax,file:MO,flattenError:om,float32:_O,float64:wO,formatError:am,function:ix,getErrorMap:ez,globalRegistry:Lr,gt:ni,gte:jt,guid:Qj,includes:Gm,instanceof:JO,int:Dd,int32:kO,int64:SO,intersection:jx,ipv4:cO,ipv6:dO,iso:Jj,json:qO,jwt:vO,keyof:zO,ksuid:uO,lazy:Xx,length:vu,literal:Ux,locales:pk,looseObject:AO,lowercase:Km,lt:ti,lte:cn,map:RO,maxLength:gu,maxSize:hu,mime:Xm,minLength:io,minSize:za,multipleOf:Oa,nan:VO,nanoid:iO,nativeEnum:ZO,negative:Kk,never:xu,nonnegative:Gk,nonoptional:Bx,nonpositive:Jk,normalize:Ym,null:kx,nullable:Rl,nullish:FO,number:gx,object:TO,optional:Dl,overwrite:li,parse:dx,parseAsync:fx,partialRecord:DO,pipe:Ll,positive:Hk,prefault:Fx,preprocess:QO,prettifyError:s0,promise:HO,property:qk,readonly:Gx,record:zx,refine:tb,regex:Hm,regexes:F0,registry:bm,safeParse:mx,safeParseAsync:px,set:LO,setErrorMap:YO,size:Wm,startsWith:qm,strictObject:CO,string:Ud,stringFormat:yO,stringbool:GO,success:BO,superRefine:nb,symbol:IO,templateLiteral:WO,toJSONSchema:ox,toLowerCase:tp,toUpperCase:np,transform:Tp,treeifyError:o0,trim:ep,tuple:UO,uint32:xO,uint64:$O,ulid:sO,undefined:EO,union:Su,unknown:Ul,uppercase:Jm,url:nO,uuid:Xj,uuidv4:Yj,uuidv6:eO,uuidv7:tO,void:jO,xid:lO},Symbol.toStringTag,{value:&quot;Module&quot;}));var rb=128,Up=N_(Ie().max(rb)),sz=Ve({name:Ie(),key:Up,input:Ja().optional(),region:Ie().optional()}),lz=Ve({name:Ie(),key:Up}),uz=Ve({name:Ie(),key:Up,input:Ja().optional(),region:Ie().optional()}),Dp=qf([Ve({getForId:Ve({name:Ie(),actorId:Ie()})}),Ve({getForKey:lz}),Ve({getOrCreateForKey:uz}),Ve({create:sz})]);Ve({query:Dp.describe(R_),encoding:uu.describe(Ea),connParams:Ie().optional().describe(Qa)});Ve({query:Dp.describe(&quot;query&quot;),encoding:uu.describe(&quot;encoding&quot;),connParams:Ja().optional().describe(&quot;conn_params&quot;)});Ve({actorId:Ie().describe(hE),connId:Ie().describe(Hs),encoding:uu.describe(Ea),connToken:Ie().describe(Ks)});Ve({query:Dp.describe(R_),connParams:Ie().optional().describe(Qa)});var cz=j.string().brand(&quot;ActorId&quot;),ib=(e=&gt;(e.Logs=&quot;logs&quot;,e.Config=&quot;config&quot;,e.Connections=&quot;connections&quot;,e.State=&quot;state&quot;,e.Console=&quot;console&quot;,e.Runtime=&quot;runtime&quot;,e.Metrics=&quot;metrics&quot;,e.EventsMonitoring=&quot;events-monitoring&quot;,e.Database=&quot;database&quot;,e))(ib||{});j.object({level:j.string(),message:j.string(),timestamp:j.string(),metadata:j.record(j.string(),j.any()).optional()});j.object({id:cz,name:j.string(),key:j.array(j.string()),tags:j.record(j.string(),j.string()).optional(),region:j.string().optional(),createdAt:j.string().optional(),startedAt:j.string().optional(),destroyedAt:j.string().optional(),features:j.array(j.enum(ib)).optional()});var dz=j.discriminatedUnion(&quot;op&quot;,[j.object({op:j.literal(&quot;remove&quot;),path:j.string()}),j.object({op:j.literal(&quot;add&quot;),path:j.string(),value:j.unknown()}),j.object({op:j.literal(&quot;replace&quot;),path:j.string(),value:j.unknown()}),j.object({op:j.literal(&quot;move&quot;),path:j.string(),from:j.string()}),j.object({op:j.literal(&quot;copy&quot;),path:j.string(),from:j.string()}),j.object({op:j.literal(&quot;test&quot;),path:j.string(),value:j.unknown()})]);j.array(dz);j.object({params:j.record(j.string(),j.any()).optional(),id:j.string(),stateEnabled:j.boolean().optional(),state:j.any().optional(),auth:j.record(j.string(),j.any()).optional()});var fz=j.discriminatedUnion(&quot;type&quot;,[j.object({type:j.literal(&quot;action&quot;),name:j.string(),args:j.array(j.any()),connId:j.string()}),j.object({type:j.literal(&quot;broadcast&quot;),eventName:j.string(),args:j.array(j.any())}),j.object({type:j.literal(&quot;subscribe&quot;),eventName:j.string(),connId:j.string()}),j.object({type:j.literal(&quot;unsubscribe&quot;),eventName:j.string(),connId:j.string()}),j.object({type:j.literal(&quot;event&quot;),eventName:j.string(),args:j.array(j.any()),connId:j.string()})]);fz.and(j.object({id:j.string(),timestamp:j.number()}));j.object({sql:j.string(),args:j.array(j.string().or(j.number()))});var mz=j.object({schema:j.string(),name:j.string(),type:j.enum([&quot;table&quot;,&quot;view&quot;])});j.array(mz);var pz=j.object({cid:j.number(),name:j.string(),type:j.string().toLowerCase().transform(e=&gt;j.enum([&quot;integer&quot;,&quot;text&quot;,&quot;real&quot;,&quot;blob&quot;,&quot;numeric&quot;,&quot;serial&quot;]).parse(e)),notnull:j.coerce.boolean(),dflt_value:j.string().nullable(),pk:j.coerce.boolean().nullable()});j.array(pz);var hz=j.object({id:j.number(),table:j.string(),from:j.string(),to:j.string()});j.array(hz);var gz=j.object({name:j.string(),createdAt:j.string().optional(),tags:j.record(j.string(),j.string()).optional()});j.array(gz);j.object({name:j.string(),key:j.array(j.string().max(rb)),input:j.any()});function G(){return Qf(&quot;actor-client&quot;)}var Ns=null;async function ob(){return Ns!==null||(Ns=(async()=&gt;{let e;if(typeof WebSocket&lt;&quot;u&quot;)e=WebSocket;else try{e=(await import(&quot;ws&quot;)).default,G().debug(&quot;using websocket from npm&quot;)}catch{e=class{constructor(){throw new Error(&#39;WebSocket support requires installing the &quot;ws&quot; peer dependency.&#39;)}},G().debug(&quot;using mock websocket&quot;)}return e})()),Ns}var vz=class extends Error{constructor(e){super(e),this.name=&quot;AssertionError&quot;}};function Rn(e,t){if(!e){const n=new vz(t);throw Error.captureStackTrace&amp;&amp;Error.captureStackTrace(n,Rn),n}}var st=class extends Error{constructor(e,t,n){super(`(byte:${e}) ${t}`),this.name=&quot;BareError&quot;,this.issue=t,this.offset=e,this.cause=n==null?void 0:n.cause}},Ug=10,Dg=8,ab=&quot;invalid UTF-8 string&quot;,sb=&quot;must be canonical&quot;,Rg=&quot;too large buffer&quot;,ur=&quot;too large number&quot;;function yz(e){return Number.isSafeInteger(e)&amp;&amp;e&gt;=0}function _z(e){return e===(e&amp;255)}function js(e){return e===e&gt;&gt;&gt;0}function wz(e){return e===BigInt.asUintN(64,e)}function kz({initialBufferLength:e=1024,maxBufferLength:t=1024*1024*32,textDecoderThreshold:n=256,textEncoderThreshold:i=256}){const r={initialBufferLength:e,maxBufferLength:t,textDecoderThreshold:n,textEncoderThreshold:i};return Rn(js(r.initialBufferLength),ur),Rn(js(r.maxBufferLength),ur),Rn(js(r.textDecoderThreshold),ur),Rn(js(r.textEncoderThreshold),ur),Rn(r.initialBufferLength&lt;=r.maxBufferLength,&quot;initialBufferLength must be lower than or equal to maxBufferLength&quot;),r}var On=class{constructor(e,t){if(e.length&gt;t.maxBufferLength)throw new st(0,Rg);this.bytes=e,this.config=t,this.offset=0,this.view=new DataView(e.buffer,e.byteOffset,e.length)}check(e){if(this.offset+e&gt;this.bytes.length)throw new st(this.offset,&quot;missing bytes&quot;)}reserve(e){const t=this.offset+e|0;if(t&gt;this.bytes.length){if(t&gt;this.config.maxBufferLength)throw new st(0,Rg);const n=Math.min(t&lt;&lt;1,this.config.maxBufferLength),i=new Uint8Array(n);i.set(this.bytes),this.bytes=i,this.view=new DataView(i.buffer)}}read(e){this.check(e);const t=this.offset;return this.offset+=e,this.bytes.subarray(t,t+e)}};function Rp(e){const t=_r(e);if(t&gt;1)throw e.offset--,new st(e.offset,&quot;a bool must be equal to 0 or 1&quot;);return t!==0}function Lp(e,t){an(e,t?1:0)}function _r(e){return e.check(1),e.bytes[e.offset++]}function an(e,t){Rn(_z(t),ur),e.reserve(1),e.bytes[e.offset++]=t}function Zp(e){let t=_r(e);if(t&gt;=128){t&amp;=127;let n=128,i=1,r;do r=_r(e),t+=(r&amp;127)*n,n*=128,i++;while(r&gt;=128&amp;&amp;i&lt;7);let o=0;for(n=1;r&gt;=128&amp;&amp;i&lt;Ug;)r=_r(e),o+=(r&amp;127)*n,n*=128,i++;if(r===0||i===Ug&amp;&amp;r&gt;1)throw e.offset-=i,new st(e.offset,sb);return BigInt(t)+(BigInt(o)&lt;&lt;BigInt(7*7))}return BigInt(t)}function Mp(e,t){Rn(wz(t),ur);let n=Number(BigInt.asUintN(7*7,t)),i=Number(t&gt;&gt;BigInt(7*7)),r=0;for(;n&gt;=128||i!==0;)an(e,128|n&amp;127),n=Math.floor(n/128),r++,r===7&amp;&amp;(n=i,i=0);an(e,n)}function lb(e){let t=_r(e);if(t&gt;=128){t&amp;=127;let n=128,i=1,r;do r=_r(e),t+=(r&amp;127)*n,n*=128,i++;while(r&gt;=128&amp;&amp;i&lt;Dg);if(r===0)throw e.offset-=i-1,new st(e.offset-i+1,sb);if(i===Dg&amp;&amp;r&gt;15)throw e.offset-=i-1,new st(e.offset,ur)}return t}function Rd(e,t){for(Rn(yz(t),ur);t&gt;=128;)an(e,128|t&amp;127),t=Math.floor(t/128);an(e,t)}function xz(e){return Sz(e,lb(e))}function bz(e,t){Rd(e,t.length),ub(e,t)}function Sz(e,t){return e.read(t).slice()}function ub(e,t){const n=t.length;n!==0&amp;&amp;(e.reserve(n),e.bytes.set(t,e.offset),e.offset+=n)}function co(e){return xz(e).buffer}function fo(e,t){bz(e,new Uint8Array(t))}function Ht(e){return $z(e,lb(e))}function Kt(e,t){if(t.length&lt;e.config.textEncoderThreshold){const n=Nz(t);Rd(e,n),e.reserve(n),Ez(e,t)}else{const n=Oz.encode(t);Rd(e,n.length),ub(e,n)}}function $z(e,t){if(t&lt;e.config.textDecoderThreshold)return Iz(e,t);try{return jz.decode(e.read(t))}catch{throw new st(e.offset,ab)}}function Iz(e,t){e.check(t);let n=&quot;&quot;;const i=e.bytes;let r=e.offset;const o=r+t;for(;r&lt;o;){let a=i[r++];if(a&gt;127){let s=!0;const l=a;if(r&lt;o&amp;&amp;a&lt;224){const u=i[r++];a=(l&amp;31)&lt;&lt;6|u&amp;63,s=a&gt;&gt;7===0||l&gt;&gt;5!==6||u&gt;&gt;6!==2}else if(r+1&lt;o&amp;&amp;a&lt;240){const u=i[r++],d=i[r++];a=(l&amp;15)&lt;&lt;12|(u&amp;63)&lt;&lt;6|d&amp;63,s=a&gt;&gt;11===0||a&gt;&gt;11===27||l&gt;&gt;4!==14||u&gt;&gt;6!==2||d&gt;&gt;6!==2}else if(r+2&lt;o){const u=i[r++],d=i[r++],h=i[r++];a=(l&amp;7)&lt;&lt;18|(u&amp;63)&lt;&lt;12|(d&amp;63)&lt;&lt;6|h&amp;63,s=a&gt;&gt;16===0||a&gt;1114111||l&gt;&gt;3!==30||u&gt;&gt;6!==2||d&gt;&gt;6!==2||h&gt;&gt;6!==2}if(s)throw new st(e.offset,ab)}n+=String.fromCodePoint(a)}return e.offset=r,n}function Ez(e,t){const n=e.bytes;let i=e.offset,r=0;for(;r&lt;t.length;){const o=t.codePointAt(r++);o&lt;128?n[i++]=o:(o&lt;2048?n[i++]=192|o&gt;&gt;6:(o&lt;65536?n[i++]=224|o&gt;&gt;12:(n[i++]=240|o&gt;&gt;18,n[i++]=128|o&gt;&gt;12&amp;63,r++),n[i++]=128|o&gt;&gt;6&amp;63),n[i++]=128|o&amp;63)}e.offset=i}function Nz(e){let t=e.length;for(let n=0;n&lt;e.length;n++){const i=e.codePointAt(n);i&gt;127&amp;&amp;(t++,i&gt;2047&amp;&amp;(t++,i&gt;65535&amp;&amp;n++))}return t}var jz=new TextDecoder(&quot;utf-8&quot;,{fatal:!0}),Oz=new TextEncoder,zz=class{constructor(e){this.config=e}serializeWithEmbeddedVersion(e){const t={version:this.config.currentVersion,data:this.config.serializeVersion(e)};return this.embedVersion(t)}deserializeWithEmbeddedVersion(e){const t=this.extractVersion(e);return this.deserialize(t.data,t.version)}serialize(e,t){return this.config.serializeVersion(e)}deserialize(e,t){if(t===this.config.currentVersion)return this.config.deserializeVersion(e);if(t&gt;this.config.currentVersion)throw new Error(`Cannot decode data from version ${t}, current version is ${this.config.currentVersion}`);let n=this.config.deserializeVersion(e),i=t;for(;i&lt;this.config.currentVersion;){const r=this.config.migrations.get(i);if(!r)throw new Error(`No migration found from version ${i} to ${i+1}`);n=r(n),i++}return n}embedVersion(e){const t=new Uint8Array(2);new DataView(t.buffer).setUint16(0,e.version,!0);const n=new Uint8Array(t.length+e.data.length);return n.set(t),n.set(e.data,t.length),n}extractVersion(e){if(e.length&lt;2)throw new Error(&quot;Invalid versioned data: too short&quot;);const t=new DataView(e.buffer,e.byteOffset).getUint16(0,!0),n=e.slice(2);return{version:t,data:n}}};function ns(e){return new zz(e)}var ht=kz({});function Tz(e){return{actorId:Ht(e),connectionId:Ht(e),connectionToken:Ht(e)}}function Cz(e,t){Kt(e,t.actorId),Kt(e,t.connectionId),Kt(e,t.connectionToken)}function cb(e){return Rp(e)?co(e):null}function db(e,t){Lp(e,t!==null),t!==null&amp;&amp;fo(e,t)}function Az(e){return Rp(e)?Zp(e):null}function Pz(e,t){Lp(e,t!==null),t!==null&amp;&amp;Mp(e,t)}function Uz(e){return{group:Ht(e),code:Ht(e),message:Ht(e),metadata:cb(e),actionId:Az(e)}}function Dz(e,t){Kt(e,t.group),Kt(e,t.code),Kt(e,t.message),db(e,t.metadata),Pz(e,t.actionId)}function Rz(e){return{id:Zp(e),output:co(e)}}function Lz(e,t){Mp(e,t.id),fo(e,t.output)}function Zz(e){return{name:Ht(e),args:co(e)}}function Mz(e,t){Kt(e,t.name),fo(e,t.args)}function Fz(e){const t=e.offset;switch(_r(e)){case 0:return{tag:&quot;Init&quot;,val:Tz(e)};case 1:return{tag:&quot;Error&quot;,val:Uz(e)};case 2:return{tag:&quot;ActionResponse&quot;,val:Rz(e)};case 3:return{tag:&quot;Event&quot;,val:Zz(e)};default:throw e.offset=t,new st(t,&quot;invalid tag&quot;)}}function Bz(e,t){switch(t.tag){case&quot;Init&quot;:{an(e,0),Cz(e,t.val);break}case&quot;Error&quot;:{an(e,1),Dz(e,t.val);break}case&quot;ActionResponse&quot;:{an(e,2),Lz(e,t.val);break}case&quot;Event&quot;:{an(e,3),Mz(e,t.val);break}}}function Vz(e){return{body:Fz(e)}}function Wz(e,t){Bz(e,t.body)}function Hz(e){const t=new On(new Uint8Array(ht.initialBufferLength),ht);return Wz(t,e),new Uint8Array(t.view.buffer,t.view.byteOffset,t.offset)}function Kz(e){const t=new On(e,ht),n=Vz(t);if(t.offset&lt;t.view.byteLength)throw new st(t.offset,&quot;remaining bytes&quot;);return n}function Jz(e){return{id:Zp(e),name:Ht(e),args:co(e)}}function Gz(e,t){Mp(e,t.id),Kt(e,t.name),fo(e,t.args)}function qz(e){return{eventName:Ht(e),subscribe:Rp(e)}}function Qz(e,t){Kt(e,t.eventName),Lp(e,t.subscribe)}function Xz(e){const t=e.offset;switch(_r(e)){case 0:return{tag:&quot;ActionRequest&quot;,val:Jz(e)};case 1:return{tag:&quot;SubscriptionRequest&quot;,val:qz(e)};default:throw e.offset=t,new st(t,&quot;invalid tag&quot;)}}function Yz(e,t){switch(t.tag){case&quot;ActionRequest&quot;:{an(e,0),Gz(e,t.val);break}case&quot;SubscriptionRequest&quot;:{an(e,1),Qz(e,t.val);break}}}function eT(e){return{body:Xz(e)}}function tT(e,t){Yz(e,t.body)}function nT(e){const t=new On(new Uint8Array(ht.initialBufferLength),ht);return tT(t,e),new Uint8Array(t.view.buffer,t.view.byteOffset,t.offset)}function rT(e){const t=new On(e,ht),n=eT(t);if(t.offset&lt;t.view.byteLength)throw new st(t.offset,&quot;remaining bytes&quot;);return n}function iT(e){return{args:co(e)}}function oT(e,t){fo(e,t.args)}function aT(e){const t=new On(new Uint8Array(ht.initialBufferLength),ht);return oT(t,e),new Uint8Array(t.view.buffer,t.view.byteOffset,t.offset)}function sT(e){const t=new On(e,ht),n=iT(t);if(t.offset&lt;t.view.byteLength)throw new st(t.offset,&quot;remaining bytes&quot;);return n}function lT(e){return{output:co(e)}}function uT(e,t){fo(e,t.output)}function cT(e){const t=new On(new Uint8Array(ht.initialBufferLength),ht);return uT(t,e),new Uint8Array(t.view.buffer,t.view.byteOffset,t.offset)}function dT(e){const t=new On(e,ht),n=lT(t);if(t.offset&lt;t.view.byteLength)throw new st(t.offset,&quot;remaining bytes&quot;);return n}function fT(e){return{group:Ht(e),code:Ht(e),message:Ht(e),metadata:cb(e)}}function mT(e,t){Kt(e,t.group),Kt(e,t.code),Kt(e,t.message),db(e,t.metadata)}function pT(e){const t=new On(new Uint8Array(ht.initialBufferLength),ht);return mT(t,e),new Uint8Array(t.view.buffer,t.view.byteOffset,t.offset)}function hT(e){const t=new On(e,ht),n=fT(t);if(t.offset&lt;t.view.byteLength)throw new st(t.offset,&quot;remaining bytes&quot;);return n}var rs=1,is=new Map,uc=ns({currentVersion:rs,migrations:is,serializeVersion:e=&gt;nT(e),deserializeVersion:e=&gt;rT(e)}),cc=ns({currentVersion:rs,migrations:is,serializeVersion:e=&gt;Hz(e),deserializeVersion:e=&gt;Kz(e)}),gT=ns({currentVersion:rs,migrations:is,serializeVersion:e=&gt;aT(e),deserializeVersion:e=&gt;sT(e)}),vT=ns({currentVersion:rs,migrations:is,serializeVersion:e=&gt;cT(e),deserializeVersion:e=&gt;dT(e)}),yT=ns({currentVersion:rs,migrations:is,serializeVersion:e=&gt;pT(e),deserializeVersion:e=&gt;hT(e)}),_T=Ga([&quot;websocket&quot;,&quot;sse&quot;]);async function wT(e){if(typeof e==&quot;string&quot;)return e;if(e instanceof Blob){const t=await e.arrayBuffer();return new Uint8Array(t)}else{if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer||e instanceof SharedArrayBuffer)return new Uint8Array(e);throw new u1}}var fb=zn.object({endpoint:zn.string().optional().transform(e=&gt;e??Me(&quot;RIVET_ENGINE&quot;)??Me(&quot;RIVET_ENDPOINT&quot;)),token:zn.string().optional().transform(e=&gt;e??Me(&quot;RIVET_TOKEN&quot;)),namespace:zn.string().default(()=&gt;Me(&quot;RIVET_NAMESPACE&quot;)??&quot;default&quot;),runnerName:zn.string().default(()=&gt;Me(&quot;RIVET_RUNNER&quot;)??&quot;default&quot;),encoding:uu.default(&quot;bare&quot;),transport:_T.default(&quot;websocket&quot;),headers:zn.record(zn.string()).optional().default({}),getUpgradeWebSocket:zn.custom().optional(),disableHealthCheck:zn.boolean().optional().default(!1)}),kT=Ve({runnerKey:Ie().default(()=&gt;Me(&quot;RIVET_RUNNER_KEY&quot;)??crypto.randomUUID()),totalSlots:tn().default(1e5)}).merge(fb).default({}),Lg=()=&gt;{const e=Me(&quot;RIVETKIT_INSPECTOR_TOKEN&quot;);return e||&quot;&quot;},Zg=()=&gt;Me(&quot;NODE_ENV&quot;)!==&quot;production&quot;||!Me(&quot;RIVETKIT_INSPECTOR_DISABLE&quot;),xT=[&quot;http://localhost:43708&quot;,&quot;http://localhost:43709&quot;,&quot;https://studio.rivet.gg&quot;,&quot;https://inspect.rivet.dev&quot;,&quot;https://dashboard.rivet.dev&quot;,&quot;https://dashboard.staging.rivet.dev&quot;],Mg={origin:e=&gt;xT.includes(e)||e.startsWith(&quot;https://&quot;)&amp;&amp;e.endsWith(&quot;rivet-dev.vercel.app&quot;)?e:null,allowMethods:[&quot;GET&quot;,&quot;POST&quot;,&quot;PUT&quot;,&quot;PATCH&quot;,&quot;DELETE&quot;,&quot;OPTIONS&quot;],allowHeaders:[&quot;Authorization&quot;,&quot;Content-Type&quot;,&quot;User-Agent&quot;,&quot;baggage&quot;,&quot;sentry-trace&quot;,&quot;x-rivet-actor&quot;,&quot;x-rivet-target&quot;],maxAge:3600,credentials:!0},bT=Ve({enabled:Sn().or(Ve({actor:Sn().optional().default(!0),manager:Sn().optional().default(!0)})).optional().default(Zg),cors:yr().optional().default(()=&gt;Mg),token:j_().returns(Ie()).optional().default(()=&gt;Lg),defaultEndpoint:Ie().optional()}).optional().default(()=&gt;({enabled:Zg(),token:Lg,cors:Mg})),ST=Ve({name:Ie(),manager:yr(),actor:yr()});Ve({driver:ST.optional(),cors:yr().optional(),maxIncomingMessageSize:tn().optional().default(65536),inspector:bT,disableDefaultServer:Sn().optional().default(!1),defaultServerPort:tn().default(6420),runEngine:Sn().optional().default(()=&gt;Me(&quot;RIVET_RUN_ENGINE&quot;)===&quot;1&quot;),runEngineVersion:Ie().optional().default(()=&gt;Me(&quot;RIVET_RUN_ENGINE_VERSION&quot;)??&quot;25.8.1&quot;),overrideServerAddress:Ie().optional(),disableActorDriver:Sn().optional().default(!1),runnerKind:Ga([&quot;serverless&quot;,&quot;normal&quot;]).optional().default(()=&gt;Me(&quot;RIVET_RUNNER_KIND&quot;)===&quot;serverless&quot;?&quot;serverless&quot;:&quot;normal&quot;),totalSlots:tn().optional(),basePath:Ie().optional().default(&quot;/&quot;),noWelcome:Sn().optional().default(!1),logging:Ve({baseLogger:yr().optional(),level:O_.optional()}).optional().default({}),autoConfigureServerless:qf([Sn(),Ve({url:Ie().optional(),headers:_d(Ie(),Ie()).optional(),maxRunners:tn().optional(),minRunners:tn().optional(),requestLifespan:tn().optional(),runnersMargin:tn().optional(),slotsPerRunner:tn().optional(),metadata:_d(Ja()).optional()})]).optional(),getUpgradeWebSocket:yr().optional()}).merge(kT.removeDefault()).default({});/*!
 * https://github.com/Starcounter-Jack/JSON-Patch
 * (c) 2017-2022 Joachim Wester
 * MIT licensed
 */var $T=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(i,r){i.__proto__=r}||function(i,r){for(var o in r)r.hasOwnProperty(o)&amp;&amp;(i[o]=r[o])},e(t,n)};return function(t,n){e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),IT=Object.prototype.hasOwnProperty;function Ld(e,t){return IT.call(e,t)}function Zd(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n&lt;t.length;n++)t[n]=&quot;&quot;+n;return t}if(Object.keys)return Object.keys(e);var i=[];for(var r in e)Ld(e,r)&amp;&amp;i.push(r);return i}function zt(e){switch(typeof e){case&quot;object&quot;:return JSON.parse(JSON.stringify(e));case&quot;undefined&quot;:return null;default:return e}}function Md(e){for(var t=0,n=e.length,i;t&lt;n;){if(i=e.charCodeAt(t),i&gt;=48&amp;&amp;i&lt;=57){t++;continue}return!1}return!0}function Ar(e){return e.indexOf(&quot;/&quot;)===-1&amp;&amp;e.indexOf(&quot;~&quot;)===-1?e:e.replace(/~/g,&quot;~0&quot;).replace(/\//g,&quot;~1&quot;)}function mb(e){return e.replace(/~1/g,&quot;/&quot;).replace(/~0/g,&quot;~&quot;)}function Fd(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t&lt;n;t++)if(Fd(e[t]))return!0}else if(typeof e==&quot;object&quot;){for(var i=Zd(e),r=i.length,o=0;o&lt;r;o++)if(Fd(e[i[o]]))return!0}}return!1}function Fg(e,t){var n=[e];for(var i in t){var r=typeof t[i]==&quot;object&quot;?JSON.stringify(t[i],null,2):t[i];typeof r&lt;&quot;u&quot;&amp;&amp;n.push(i+&quot;: &quot;+r)}return n.join(`
`)}var pb=function(e){$T(t,e);function t(n,i,r,o,a){var s=this.constructor,l=e.call(this,Fg(n,{name:i,index:r,operation:o,tree:a}))||this;return l.name=i,l.index=r,l.operation=o,l.tree=a,Object.setPrototypeOf(l,s.prototype),l.message=Fg(n,{name:i,index:r,operation:o,tree:a}),l}return t}(Error),De=pb,ET=zt,Ni={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var i=e[t];return delete e[t],{newDocument:n,removed:i}},replace:function(e,t,n){var i=e[t];return e[t]=this.value,{newDocument:n,removed:i}},move:function(e,t,n){var i=Zl(n,this.path);i&amp;&amp;(i=zt(i));var r=Hr(n,{op:&quot;remove&quot;,path:this.from}).removed;return Hr(n,{op:&quot;add&quot;,path:this.path,value:r}),{newDocument:n,removed:i}},copy:function(e,t,n){var i=Zl(n,this.from);return Hr(n,{op:&quot;add&quot;,path:this.path,value:zt(i)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:Ca(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},NT={add:function(e,t,n){return Md(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){var i=e.splice(t,1);return{newDocument:n,removed:i[0]}},replace:function(e,t,n){var i=e[t];return e[t]=this.value,{newDocument:n,removed:i}},move:Ni.move,copy:Ni.copy,test:Ni.test,_get:Ni._get};function Zl(e,t){if(t==&quot;&quot;)return e;var n={op:&quot;_get&quot;,path:t};return Hr(e,n),n.value}function Hr(e,t,n,i,r,o){if(n===void 0&amp;&amp;(n=!1),i===void 0&amp;&amp;(i=!0),r===void 0&amp;&amp;(r=!0),o===void 0&amp;&amp;(o=0),n&amp;&amp;(typeof n==&quot;function&quot;?n(t,0,e,t.path):Ml(t,0)),t.path===&quot;&quot;){var a={newDocument:e};if(t.op===&quot;add&quot;)return a.newDocument=t.value,a;if(t.op===&quot;replace&quot;)return a.newDocument=t.value,a.removed=e,a;if(t.op===&quot;move&quot;||t.op===&quot;copy&quot;)return a.newDocument=Zl(e,t.from),t.op===&quot;move&quot;&amp;&amp;(a.removed=e),a;if(t.op===&quot;test&quot;){if(a.test=Ca(e,t.value),a.test===!1)throw new De(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,o,t,e);return a.newDocument=e,a}else{if(t.op===&quot;remove&quot;)return a.removed=e,a.newDocument=null,a;if(t.op===&quot;_get&quot;)return t.value=e,a;if(n)throw new De(&quot;Operation `op` property is not one of operations defined in RFC-6902&quot;,&quot;OPERATION_OP_INVALID&quot;,o,t,e);return a}}else{i||(e=zt(e));var s=t.path||&quot;&quot;,l=s.split(&quot;/&quot;),u=e,d=1,h=l.length,g=void 0,v=void 0,y=void 0;for(typeof n==&quot;function&quot;?y=n:y=Ml;;){if(v=l[d],v&amp;&amp;v.indexOf(&quot;~&quot;)!=-1&amp;&amp;(v=mb(v)),r&amp;&amp;(v==&quot;__proto__&quot;||v==&quot;prototype&quot;&amp;&amp;d&gt;0&amp;&amp;l[d-1]==&quot;constructor&quot;))throw new TypeError(&quot;JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README&quot;);if(n&amp;&amp;g===void 0&amp;&amp;(u[v]===void 0?g=l.slice(0,d).join(&quot;/&quot;):d==h-1&amp;&amp;(g=t.path),g!==void 0&amp;&amp;y(t,0,e,g)),d++,Array.isArray(u)){if(v===&quot;-&quot;)v=u.length;else{if(n&amp;&amp;!Md(v))throw new De(&quot;Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index&quot;,&quot;OPERATION_PATH_ILLEGAL_ARRAY_INDEX&quot;,o,t,e);Md(v)&amp;&amp;(v=~~v)}if(d&gt;=h){if(n&amp;&amp;t.op===&quot;add&quot;&amp;&amp;v&gt;u.length)throw new De(&quot;The specified index MUST NOT be greater than the number of elements in the array&quot;,&quot;OPERATION_VALUE_OUT_OF_BOUNDS&quot;,o,t,e);var a=NT[t.op].call(t,u,v,e);if(a.test===!1)throw new De(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,o,t,e);return a}}else if(d&gt;=h){var a=Ni[t.op].call(t,u,v,e);if(a.test===!1)throw new De(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,o,t,e);return a}if(u=u[v],n&amp;&amp;d&lt;h&amp;&amp;(!u||typeof u!=&quot;object&quot;))throw new De(&quot;Cannot perform operation at the desired path&quot;,&quot;OPERATION_PATH_UNRESOLVABLE&quot;,o,t,e)}}}function Fp(e,t,n,i,r){if(i===void 0&amp;&amp;(i=!0),r===void 0&amp;&amp;(r=!0),n&amp;&amp;!Array.isArray(t))throw new De(&quot;Patch sequence must be an array&quot;,&quot;SEQUENCE_NOT_AN_ARRAY&quot;);i||(e=zt(e));for(var o=new Array(t.length),a=0,s=t.length;a&lt;s;a++)o[a]=Hr(e,t[a],n,!0,r,a),e=o[a].newDocument;return o.newDocument=e,o}function jT(e,t,n){var i=Hr(e,t);if(i.test===!1)throw new De(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,n,t,e);return i.newDocument}function Ml(e,t,n,i){if(typeof e!=&quot;object&quot;||e===null||Array.isArray(e))throw new De(&quot;Operation is not an object&quot;,&quot;OPERATION_NOT_AN_OBJECT&quot;,t,e,n);if(Ni[e.op]){if(typeof e.path!=&quot;string&quot;)throw new De(&quot;Operation `path` property is not a string&quot;,&quot;OPERATION_PATH_INVALID&quot;,t,e,n);if(e.path.indexOf(&quot;/&quot;)!==0&amp;&amp;e.path.length&gt;0)throw new De(&#39;Operation `path` property must start with &quot;/&quot;&#39;,&quot;OPERATION_PATH_INVALID&quot;,t,e,n);if((e.op===&quot;move&quot;||e.op===&quot;copy&quot;)&amp;&amp;typeof e.from!=&quot;string&quot;)throw new De(&quot;Operation `from` property is not present (applicable in `move` and `copy` operations)&quot;,&quot;OPERATION_FROM_REQUIRED&quot;,t,e,n);if((e.op===&quot;add&quot;||e.op===&quot;replace&quot;||e.op===&quot;test&quot;)&amp;&amp;e.value===void 0)throw new De(&quot;Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)&quot;,&quot;OPERATION_VALUE_REQUIRED&quot;,t,e,n);if((e.op===&quot;add&quot;||e.op===&quot;replace&quot;||e.op===&quot;test&quot;)&amp;&amp;Fd(e.value))throw new De(&quot;Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)&quot;,&quot;OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED&quot;,t,e,n);if(n){if(e.op==&quot;add&quot;){var r=e.path.split(&quot;/&quot;).length,o=i.split(&quot;/&quot;).length;if(r!==o+1&amp;&amp;r!==o)throw new De(&quot;Cannot perform an `add` operation at the desired path&quot;,&quot;OPERATION_PATH_CANNOT_ADD&quot;,t,e,n)}else if(e.op===&quot;replace&quot;||e.op===&quot;remove&quot;||e.op===&quot;_get&quot;){if(e.path!==i)throw new De(&quot;Cannot perform the operation at a path that does not exist&quot;,&quot;OPERATION_PATH_UNRESOLVABLE&quot;,t,e,n)}else if(e.op===&quot;move&quot;||e.op===&quot;copy&quot;){var a={op:&quot;_get&quot;,path:e.from,value:void 0},s=hb([a],n);if(s&amp;&amp;s.name===&quot;OPERATION_PATH_UNRESOLVABLE&quot;)throw new De(&quot;Cannot perform the operation from a path that does not exist&quot;,&quot;OPERATION_FROM_UNRESOLVABLE&quot;,t,e,n)}}}else throw new De(&quot;Operation `op` property is not one of operations defined in RFC-6902&quot;,&quot;OPERATION_OP_INVALID&quot;,t,e,n)}function hb(e,t,n){try{if(!Array.isArray(e))throw new De(&quot;Patch sequence must be an array&quot;,&quot;SEQUENCE_NOT_AN_ARRAY&quot;);if(t)Fp(zt(t),zt(e),n||!0);else{n=n||Ml;for(var i=0;i&lt;e.length;i++)n(e[i],i,t,void 0)}}catch(r){if(r instanceof De)return r;throw r}}function Ca(e,t){if(e===t)return!0;if(e&amp;&amp;t&amp;&amp;typeof e==&quot;object&quot;&amp;&amp;typeof t==&quot;object&quot;){var n=Array.isArray(e),i=Array.isArray(t),r,o,a;if(n&amp;&amp;i){if(o=e.length,o!=t.length)return!1;for(r=o;r--!==0;)if(!Ca(e[r],t[r]))return!1;return!0}if(n!=i)return!1;var s=Object.keys(e);if(o=s.length,o!==Object.keys(t).length)return!1;for(r=o;r--!==0;)if(!t.hasOwnProperty(s[r]))return!1;for(r=o;r--!==0;)if(a=s[r],!Ca(e[a],t[a]))return!1;return!0}return e!==e&amp;&amp;t!==t}const OT=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:De,_areEquals:Ca,applyOperation:Hr,applyPatch:Fp,applyReducer:jT,deepClone:ET,getValueByPointer:Zl,validate:hb,validator:Ml},Symbol.toStringTag,{value:&quot;Module&quot;}));/*!
 * https://github.com/Starcounter-Jack/JSON-Patch
 * (c) 2017-2021 Joachim Wester
 * MIT license
 */var Bp=new WeakMap,zT=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),TT=function(){function e(t,n){this.callback=t,this.observer=n}return e}();function CT(e){return Bp.get(e)}function AT(e,t){return e.observers.get(t)}function PT(e,t){e.observers.delete(t.callback)}function UT(e,t){t.unobserve()}function DT(e,t){var n=[],i,r=CT(e);if(!r)r=new zT(e),Bp.set(e,r);else{var o=AT(r,t);i=o&amp;&amp;o.observer}if(i)return i;if(i={},r.value=zt(e),t){i.callback=t,i.next=null;var a=function(){Bd(i)},s=function(){clearTimeout(i.next),i.next=setTimeout(a)};typeof window&lt;&quot;u&quot;&amp;&amp;(window.addEventListener(&quot;mouseup&quot;,s),window.addEventListener(&quot;keyup&quot;,s),window.addEventListener(&quot;mousedown&quot;,s),window.addEventListener(&quot;keydown&quot;,s),window.addEventListener(&quot;change&quot;,s))}return i.patches=n,i.object=e,i.unobserve=function(){Bd(i),clearTimeout(i.next),PT(r,i),typeof window&lt;&quot;u&quot;&amp;&amp;(window.removeEventListener(&quot;mouseup&quot;,s),window.removeEventListener(&quot;keyup&quot;,s),window.removeEventListener(&quot;mousedown&quot;,s),window.removeEventListener(&quot;keydown&quot;,s),window.removeEventListener(&quot;change&quot;,s))},r.observers.set(t,new TT(t,i)),i}function Bd(e,t){t===void 0&amp;&amp;(t=!1);var n=Bp.get(e.object);Vp(n.value,e.object,e.patches,&quot;&quot;,t),e.patches.length&amp;&amp;Fp(n.value,e.patches);var i=e.patches;return i.length&gt;0&amp;&amp;(e.patches=[],e.callback&amp;&amp;e.callback(i)),i}function Vp(e,t,n,i,r){if(t!==e){typeof t.toJSON==&quot;function&quot;&amp;&amp;(t=t.toJSON());for(var o=Zd(t),a=Zd(e),s=!1,l=a.length-1;l&gt;=0;l--){var u=a[l],d=e[u];if(Ld(t,u)&amp;&amp;!(t[u]===void 0&amp;&amp;d!==void 0&amp;&amp;Array.isArray(t)===!1)){var h=t[u];typeof d==&quot;object&quot;&amp;&amp;d!=null&amp;&amp;typeof h==&quot;object&quot;&amp;&amp;h!=null&amp;&amp;Array.isArray(d)===Array.isArray(h)?Vp(d,h,n,i+&quot;/&quot;+Ar(u),r):d!==h&amp;&amp;(r&amp;&amp;n.push({op:&quot;test&quot;,path:i+&quot;/&quot;+Ar(u),value:zt(d)}),n.push({op:&quot;replace&quot;,path:i+&quot;/&quot;+Ar(u),value:zt(h)}))}else Array.isArray(e)===Array.isArray(t)?(r&amp;&amp;n.push({op:&quot;test&quot;,path:i+&quot;/&quot;+Ar(u),value:zt(d)}),n.push({op:&quot;remove&quot;,path:i+&quot;/&quot;+Ar(u)}),s=!0):(r&amp;&amp;n.push({op:&quot;test&quot;,path:i,value:e}),n.push({op:&quot;replace&quot;,path:i,value:t}))}if(!(!s&amp;&amp;o.length==a.length))for(var l=0;l&lt;o.length;l++){var u=o[l];!Ld(e,u)&amp;&amp;t[u]!==void 0&amp;&amp;n.push({op:&quot;add&quot;,path:i+&quot;/&quot;+Ar(u),value:zt(t[u])})}}}function RT(e,t,n){n===void 0&amp;&amp;(n=!1);var i=[];return Vp(e,t,i,&quot;&quot;,n),i}const LT=Object.freeze(Object.defineProperty({__proto__:null,compare:RT,generate:Bd,observe:DT,unobserve:UT},Symbol.toStringTag,{value:&quot;Module&quot;}));Object.assign({},OT,LT,{JsonPatchError:pb,deepClone:zt,escapePathComponent:Ar,unescapePathComponent:mb});new Set(&quot;.\\+*[^]$()&quot;);var gb={};function Qt(e,t){typeof t==&quot;boolean&quot;&amp;&amp;(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&amp;&amp;t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&amp;&amp;(this._cachedTimeouts=this._timeouts.slice(0))}var ZT=Qt;Qt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Qt.prototype.stop=function(){this._timeout&amp;&amp;clearTimeout(this._timeout),this._timer&amp;&amp;clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Qt.prototype.retry=function(e){if(this._timeout&amp;&amp;clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&amp;&amp;t-this._operationStart&gt;=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error(&quot;RetryOperation timeout occurred&quot;)),!1;this._errors.push(e);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&amp;&amp;(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&amp;&amp;i._timeout.unref()),i._fn(i._attempts)},n),this._options.unref&amp;&amp;this._timer.unref(),!0};Qt.prototype.attempt=function(e,t){this._fn=e,t&amp;&amp;(t.timeout&amp;&amp;(this._operationTimeout=t.timeout),t.cb&amp;&amp;(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&amp;&amp;(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Qt.prototype.try=function(e){console.log(&quot;Using RetryOperation.try() is deprecated&quot;),this.attempt(e)};Qt.prototype.start=function(e){console.log(&quot;Using RetryOperation.start() is deprecated&quot;),this.attempt(e)};Qt.prototype.start=Qt.prototype.try;Qt.prototype.errors=function(){return this._errors};Qt.prototype.attempts=function(){return this._attempts};Qt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,n=0,i=0;i&lt;this._errors.length;i++){var r=this._errors[i],o=r.message,a=(e[o]||0)+1;e[o]=a,a&gt;=n&amp;&amp;(t=r,n=a)}return t};(function(e){var t=ZT;e.operation=function(n){var i=e.timeouts(n);return new t(i,{forever:n&amp;&amp;(n.forever||n.retries===1/0),unref:n&amp;&amp;n.unref,maxRetryTime:n&amp;&amp;n.maxRetryTime})},e.timeouts=function(n){if(n instanceof Array)return[].concat(n);var i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in n)i[r]=n[r];if(i.minTimeout&gt;i.maxTimeout)throw new Error(&quot;minTimeout is greater than maxTimeout&quot;);for(var o=[],a=0;a&lt;i.retries;a++)o.push(this.createTimeout(a,i));return n&amp;&amp;n.forever&amp;&amp;!o.length&amp;&amp;o.push(this.createTimeout(a,i)),o.sort(function(s,l){return s-l}),o},e.createTimeout=function(n,i){var r=i.randomize?Math.random()+1:1,o=Math.round(r*Math.max(i.minTimeout,1)*Math.pow(i.factor,n));return o=Math.min(o,i.maxTimeout),o},e.wrap=function(n,i,r){if(i instanceof Array&amp;&amp;(r=i,i=null),!r){r=[];for(var o in n)typeof n[o]==&quot;function&quot;&amp;&amp;r.push(o)}for(var a=0;a&lt;r.length;a++){var s=r[a],l=n[s];n[s]=(function(d){var h=e.operation(i),g=Array.prototype.slice.call(arguments,1),v=g.pop();g.push(function(y){h.retry(y)||(y&amp;&amp;(arguments[0]=h.mainError()),v.apply(this,arguments))}),h.attempt(function(){d.apply(n,g)})}).bind(n,l),n[s].options=i}}})(gb);var MT=gb;const FT=Qd(MT),BT=Object.prototype.toString,VT=e=&gt;BT.call(e)===&quot;[object Error]&quot;,WT=new Set([&quot;network error&quot;,&quot;Failed to fetch&quot;,&quot;NetworkError when attempting to fetch resource.&quot;,&quot;The Internet connection appears to be offline.&quot;,&quot;Load failed&quot;,&quot;Network request failed&quot;,&quot;fetch failed&quot;,&quot;terminated&quot;]);function HT(e){return e&amp;&amp;VT(e)&amp;&amp;e.name===&quot;TypeError&quot;&amp;&amp;typeof e.message==&quot;string&quot;?e.message===&quot;Load failed&quot;?e.stack===void 0:WT.has(e.message):!1}class KT extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name=&quot;AbortError&quot;,this.message=t}}const Bg=(e,t,n)=&gt;{const i=n.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=i,e};async function JT(e,t){return new Promise((n,i)=&gt;{t={...t},t.onFailedAttempt??(t.onFailedAttempt=()=&gt;{}),t.shouldRetry??(t.shouldRetry=()=&gt;!0),t.retries??(t.retries=10);const r=FT.operation(t),o=()=&gt;{var s;r.stop(),i((s=t.signal)==null?void 0:s.reason)};t.signal&amp;&amp;!t.signal.aborted&amp;&amp;t.signal.addEventListener(&quot;abort&quot;,o,{once:!0});const a=()=&gt;{var s;(s=t.signal)==null||s.removeEventListener(&quot;abort&quot;,o),r.stop()};r.attempt(async s=&gt;{try{const l=await e(s);a(),n(l)}catch(l){try{if(!(l instanceof Error))throw new TypeError(`Non-error was thrown: &quot;${l}&quot;. You should only throw errors.`);if(l instanceof KT)throw l.originalError;if(l instanceof TypeError&amp;&amp;!HT(l))throw l;if(Bg(l,s,t),await t.shouldRetry(l)||(r.stop(),i(l)),await t.onFailedAttempt(l),!r.retry(l))throw r.mainError()}catch(u){Bg(u,s,t),a(),i(u)}}})})}var vb=&quot;/&quot;,Vd=&quot;/&quot;;function Wd(e){return e.length===0?vb:e.map(n=&gt;{if(n===&quot;&quot;)return&quot;\\0&quot;;let i=n.replace(/\\/g,&quot;\\\\&quot;);return i=i.replace(/\//g,`\\${Vd}`),i}).join(Vd)}function GT(e){if(e==null||e===vb)return[];const t=[];let n=&quot;&quot;,i=!1,r=!1;for(let o=0;o&lt;e.length;o++){const a=e[o];i?(a===&quot;0&quot;?r=!0:n+=a,i=!1):a===&quot;\\&quot;?i=!0:a===Vd?(r?(t.push(&quot;&quot;),r=!1):t.push(n),n=&quot;&quot;):n+=a}return i?t.push(n+&quot;\\&quot;):r?t.push(&quot;&quot;):(n!==&quot;&quot;||t.length&gt;0)&amp;&amp;t.push(n),t}var Iu=class extends Error{},dc=class extends Iu{},Aa=class extends Iu{constructor(t,n,i,r){super(i);hn(this,&quot;__type&quot;,&quot;ActorError&quot;);this.group=t,this.code=n,this.metadata=r}},fc=class extends Iu{constructor(e,t){super(`HTTP request error: ${e}`,{cause:t==null?void 0:t.cause})}},qT=class extends Iu{constructor(){super(&quot;Attempting to interact with a disposed actor connection.&quot;)}},Os=null;async function QT(){return Os!==null||(Os=(async()=&gt;{let e;try{e=(await import(&quot;eventsource&quot;)).EventSource,G().debug(&quot;using eventsource from npm&quot;)}catch{e=class{constructor(){throw new Error(&#39;EventSource support requires installing the &quot;eventsource&quot; peer dependency.&#39;)}},G().debug(&quot;using mock eventsource&quot;)}return e})()),Os}async function ri(e,t,n){G().debug({msg:&quot;querying actor&quot;,query:JSON.stringify(t)});let i;if(&quot;getForId&quot;in t){const r=await n.getForId({c:e,name:t.getForId.name,actorId:t.getForId.actorId});if(!r)throw new tg(t.getForId.actorId);i=r}else if(&quot;getForKey&quot;in t){const r=await n.getWithKey({c:e,name:t.getForKey.name,key:t.getForKey.key});if(!r)throw new tg(`${t.getForKey.name}:${JSON.stringify(t.getForKey.key)}`);i=r}else if(&quot;getOrCreateForKey&quot;in t)i={actorId:(await n.getOrCreateWithKey({c:e,name:t.getOrCreateForKey.name,key:t.getOrCreateForKey.key,input:t.getOrCreateForKey.input,region:t.getOrCreateForKey.region})).actorId};else if(&quot;create&quot;in t)i={actorId:(await n.createActor({c:e,name:t.create.name,key:t.create.key,input:t.create.input,region:t.create.region})).actorId};else throw new c1(&quot;Invalid query format&quot;);return G().debug({msg:&quot;actor query result&quot;,actorId:i.actorId}),{actorId:i.actorId}}async function XT(e,t,n,i,r){let o,a=r||{};if(typeof i==&quot;string&quot;)o=i;else if(i instanceof URL)o=i.pathname+i.search;else if(i instanceof Request){const s=new URL(i.url);o=s.pathname+s.search;const l=new Headers(i.headers),u=new Headers((r==null?void 0:r.headers)||{}),d=new Headers(l);for(const[h,g]of u)d.set(h,g);a={method:i.method,body:i.body,mode:i.mode,credentials:i.credentials,redirect:i.redirect,referrer:i.referrer,referrerPolicy:i.referrerPolicy,integrity:i.integrity,keepalive:i.keepalive,signal:i.signal,...a,headers:d},a.body&amp;&amp;(a.duplex=&quot;half&quot;)}else throw new TypeError(&quot;Invalid input type for fetch&quot;);try{const{actorId:s}=await ri(void 0,t,e);G().debug({msg:&quot;found actor for raw http&quot;,actorId:s}),mn(s,&quot;Missing actor ID&quot;);const l=o.startsWith(&quot;/&quot;)?o.slice(1):o,u=new URL(`http://actor/raw/http/${l}`),d=new Headers(a.headers);n&amp;&amp;d.set(Qa,JSON.stringify(n));const h=new Request(u,{...a,headers:d});return e.sendRequest(s,h)}catch(s){const{group:l,code:u,message:d,metadata:h}=f_(s,G(),{},!0);throw new Aa(l,u,d,h)}}async function YT(e,t,n,i,r){const o=&quot;bare&quot;,{actorId:a}=await ri(void 0,t,e);G().debug({msg:&quot;found actor for action&quot;,actorId:a}),mn(a,&quot;Missing actor ID&quot;);let s=&quot;&quot;,l=&quot;&quot;;if(i){const h=i.indexOf(&quot;?&quot;);h!==-1?(s=i.substring(0,h),l=i.substring(h)):s=i,s.startsWith(&quot;/&quot;)&amp;&amp;(s=s.slice(1))}const u=`${pE}${s}${l}`;return G().debug({msg:&quot;opening websocket&quot;,actorId:a,encoding:o,path:u}),await e.openWebSocket(u,a,o,n)}function e4(e){if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer||e instanceof Uint8Array)return e.byteLength;if(typeof e==&quot;string&quot;)return e.length;Mn(e)}async function Fl(e){G().debug({msg:&quot;sending http request&quot;,url:e.url,encoding:e.encoding});let t,n;(e.method===&quot;POST&quot;||e.method===&quot;PUT&quot;)&amp;&amp;(mn(e.body!==void 0,&quot;missing body&quot;),t=jE(e.encoding),n=F_(e.encoding,e.body,e.requestVersionedDataHandler));let i;try{i=await(e.customFetch??fetch)(new Request(e.url,{method:e.method,headers:{...e.headers,...t?{&quot;Content-Type&quot;:t}:{},&quot;User-Agent&quot;:m_()},body:n,credentials:&quot;include&quot;,signal:e.signal}))}catch(r){throw new fc(`Request failed: ${r}`,{cause:r})}if(!i.ok){const r=await i.arrayBuffer();let o;try{o=zd(e.encoding,new Uint8Array(r),yT)}catch{const l=new TextDecoder(&quot;utf-8&quot;,{fatal:!1}).decode(r);throw new fc(`${i.statusText} (${i.status}):
${l}`)}let a;throw o.metadata&amp;&amp;M_(e.encoding)&amp;&amp;(a=$a(new Uint8Array(o.metadata))),new Aa(o.group,o.code,o.message,a)}if(!e.skipParseResponse)try{const r=new Uint8Array(await i.arrayBuffer());return zd(e.encoding,r,e.responseVersionedDataHandler)}catch(r){throw new fc(`Failed to parse response: ${r}`,{cause:r})}}var Ri,nn,rr,Pe,Dn,Jg,t4=(Jg=class{constructor(e,t,n,i,r){pe(this,Ri);pe(this,nn);pe(this,rr);pe(this,Pe);pe(this,Dn);ge(this,Ri,e),ge(this,nn,t),ge(this,rr,i),ge(this,Pe,r),ge(this,Dn,n)}async action(e){try{const{actorId:t}=await ri(void 0,w(this,Pe),w(this,nn));G().debug({msg:&quot;found actor for action&quot;,actorId:t}),mn(t,&quot;Missing actor ID&quot;),G().debug({msg:&quot;handling action&quot;,name:e.name,encoding:w(this,rr)});const n=await Fl({url:`http://actor/action/${encodeURIComponent(e.name)}`,method:&quot;POST&quot;,headers:{[Ea]:w(this,rr),...w(this,Dn)!==void 0?{[Qa]:JSON.stringify(w(this,Dn))}:{}},body:{args:p_(Ia(e.args))},encoding:w(this,rr),customFetch:w(this,nn).sendRequest.bind(w(this,nn),t),signal:e==null?void 0:e.signal,requestVersionedDataHandler:gT,responseVersionedDataHandler:vT});return $a(new Uint8Array(n.output))}catch(t){const{group:n,code:i,message:r,metadata:o}=f_(t,G(),{},!0);throw new Aa(n,i,r,o)}}connect(){G().debug({msg:&quot;establishing connection from handle&quot;,query:w(this,Pe)});const e=new i4(w(this,Ri),w(this,nn),w(this,Dn),w(this,rr),w(this,Pe));return w(this,Ri)[yb](e)}async fetch(e,t){return XT(w(this,nn),w(this,Pe),w(this,Dn),e,t)}async websocket(e,t){return YT(w(this,nn),w(this,Pe),w(this,Dn),e)}async resolve({signal:e}={}){if(&quot;getForKey&quot;in w(this,Pe)||&quot;getOrCreateForKey&quot;in w(this,Pe)){let t;&quot;getForKey&quot;in w(this,Pe)?t=w(this,Pe).getForKey.name:&quot;getOrCreateForKey&quot;in w(this,Pe)?t=w(this,Pe).getOrCreateForKey.name:_g(w(this,Pe));const{actorId:n}=await ri(void 0,w(this,Pe),w(this,nn));return ge(this,Pe,{getForId:{actorId:n,name:t}}),n}else{if(&quot;getForId&quot;in w(this,Pe))return w(this,Pe).getForId.actorId;&quot;create&quot;in w(this,Pe)?mn(!1,&quot;actorQuery cannot be create&quot;):_g(w(this,Pe))}}},Ri=new WeakMap,nn=new WeakMap,rr=new WeakMap,Pe=new WeakMap,Dn=new WeakMap,Jg),Js=Symbol(&quot;actorConns&quot;),yb=Symbol(&quot;createActorConnProxy&quot;),Fo=Symbol(&quot;transport&quot;),Gg,qg,Ua,Li,Da,Zr,To,Qg,n4=(Qg=class{constructor(e,t){pe(this,Zr);pe(this,Ua,!1);hn(this,qg,new Set);pe(this,Li);pe(this,Da);hn(this,Gg);ge(this,Li,e),ge(this,Da,t.encoding??&quot;bare&quot;),this[Fo]=t.transport??&quot;websocket&quot;}getForId(e,t,n){G().debug({msg:&quot;get handle to actor with id&quot;,name:e,actorId:t,params:n==null?void 0:n.params});const i={getForId:{name:e,actorId:t}},r=ve(this,Zr,To).call(this,n==null?void 0:n.params,i);return bo(r)}get(e,t,n){const i=typeof t==&quot;string&quot;?[t]:t||[];G().debug({msg:&quot;get handle to actor&quot;,name:e,key:i,parameters:n==null?void 0:n.params});const r={getForKey:{name:e,key:i}},o=ve(this,Zr,To).call(this,n==null?void 0:n.params,r);return bo(o)}getOrCreate(e,t,n){const i=typeof t==&quot;string&quot;?[t]:t||[];G().debug({msg:&quot;get or create handle to actor&quot;,name:e,key:i,parameters:n==null?void 0:n.params,createInRegion:n==null?void 0:n.createInRegion});const r={getOrCreateForKey:{name:e,key:i,input:n==null?void 0:n.createWithInput,region:n==null?void 0:n.createInRegion}},o=ve(this,Zr,To).call(this,n==null?void 0:n.params,r);return bo(o)}async create(e,t,n){const i=typeof t==&quot;string&quot;?[t]:t||[],r={create:{...n,name:e,key:i}};G().debug({msg:&quot;create actor handle&quot;,name:e,key:i,parameters:n==null?void 0:n.params,create:r.create});const{actorId:o}=await ri(void 0,r,w(this,Li));G().debug({msg:&quot;created actor with ID&quot;,name:e,key:i,actorId:o});const a={getForId:{name:e,actorId:o}},s=ve(this,Zr,To).call(this,n==null?void 0:n.params,a);return bo(s)}[(qg=Js,Gg=Fo,yb)](e){return this[Js].add(e),e[_b](),bo(e)}async dispose(){if(w(this,Ua)){G().warn({msg:&quot;client already disconnected&quot;});return}ge(this,Ua,!0),G().debug({msg:&quot;disposing client&quot;});const e=[];for(const t of this[Js].values())e.push(t.dispose());await Promise.all(e)}},Ua=new WeakMap,Li=new WeakMap,Da=new WeakMap,Zr=new WeakSet,To=function(e,t){return new t4(this,w(this,Li),e,w(this,Da),t)},Qg);function r4(e,t){const n=new n4(e,t);return new Proxy(n,{get:(i,r,o)=&gt;{if(typeof r==&quot;symbol&quot;||r in i){const a=Reflect.get(i,r,o);return typeof a==&quot;function&quot;?a.bind(i):a}if(typeof r==&quot;string&quot;)return{get:(a,s)=&gt;i.get(r,a,s),getOrCreate:(a,s)=&gt;i.getOrCreate(r,a,s),getForId:(a,s)=&gt;i.getForId(r,a,s),create:async(a,s={})=&gt;await i.create(r,a,s)}}})}function bo(e){const t=new Map;return new Proxy(e,{get(n,i,r){if(typeof i==&quot;symbol&quot;)return Reflect.get(n,i,r);if(i===&quot;constructor&quot;||i in n){const o=Reflect.get(n,i,n);return typeof o==&quot;function&quot;?o.bind(n):o}if(typeof i==&quot;string&quot;){if(i===&quot;then&quot;)return;let o=t.get(i);return o||(o=(...a)=&gt;n.action({name:i,args:a}),t.set(i,o)),o}},has(n,i){return typeof i==&quot;string&quot;?!0:Reflect.has(n,i)},getPrototypeOf(n){return Reflect.getPrototypeOf(n)},ownKeys(n){return Reflect.ownKeys(n)},getOwnPropertyDescriptor(n,i){const r=Reflect.getOwnPropertyDescriptor(n,i);if(r)return r;if(typeof i==&quot;string&quot;)return{configurable:!0,enumerable:!1,writable:!1,value:(...o)=&gt;n.action({name:i,args:o})}}})}var _b=Symbol(&quot;connect&quot;),ir,Ra,Zi,kn,Se,Ut,Ue,Dt,$t,xn,Mi,La,Za,It,or,Rt,Mr,Et,Fi,oe,Hd,wb,kb,xb,bb,Kd,Sb,Jd,Gd,$b,Ib,qd,Gs,Eb,Nb,qs,Xg,i4=(Xg=class{constructor(e,t,n,i,r){pe(this,oe);pe(this,ir,!1);pe(this,Ra,new AbortController);pe(this,Zi,!1);pe(this,kn);pe(this,Se);pe(this,Ut);pe(this,Ue);pe(this,Dt,[]);pe(this,$t,new Map);pe(this,xn,new Map);pe(this,Mi,new Set);pe(this,La,0);pe(this,Za);pe(this,It);pe(this,or);pe(this,Rt);pe(this,Mr);pe(this,Et);pe(this,Fi);ge(this,or,e),ge(this,Rt,t),ge(this,Mr,n),ge(this,Et,i),ge(this,Fi,r),ge(this,Za,setInterval(()=&gt;6e4))}async action(e){G().debug({msg:&quot;action&quot;,name:e.name,args:e.args});const t=w(this,La);ge(this,La,w(this,La)+1);const{promise:n,resolve:i,reject:r}=nc();w(this,$t).set(t,{name:e.name,resolve:i,reject:r}),ve(this,oe,Gs).call(this,{body:{tag:&quot;ActionRequest&quot;,val:{id:BigInt(t),name:e.name,args:p_(Ia(e.args))}}});const{id:o,output:a}=await n;if(o!==BigInt(t))throw new Error(`Request ID ${t} does not match response ID ${o}`);return $a(new Uint8Array(a))}[_b](){ve(this,oe,Hd).call(this)}on(e,t){return ve(this,oe,qd).call(this,e,t,!1)}once(e,t){return ve(this,oe,qd).call(this,e,t,!0)}onError(e){return w(this,Mi).add(e),()=&gt;{w(this,Mi).delete(e)}}get actorId(){return w(this,kn)}get connectionId(){return w(this,Se)}async dispose(){if(w(this,ir)){G().warn({msg:&quot;connection already disconnected&quot;});return}if(ge(this,ir,!0),G().debug({msg:&quot;disposing actor conn&quot;}),clearInterval(w(this,Za)),w(this,Ra).abort(),w(this,or)[Js].delete(this),w(this,Ue))if(&quot;websocket&quot;in w(this,Ue)){G().debug(&quot;closing ws&quot;);const e=w(this,Ue).websocket;if(e.readyState===2||e.readyState===3)G().debug({msg:&quot;ws already closed or closing&quot;});else{const{promise:t,resolve:n}=nc();e.addEventListener(&quot;close&quot;,()=&gt;{G().debug({msg:&quot;ws closed&quot;}),n(void 0)}),e.close(1e3,&quot;Normal closure&quot;),await t}}else if(&quot;sse&quot;in w(this,Ue)){if(G().debug(&quot;closing sse&quot;),w(this,Se)&amp;&amp;w(this,Ut))try{await Fl({url:&quot;http://actor/connections/close&quot;,method:&quot;POST&quot;,headers:{[Hs]:w(this,Se),[Ks]:w(this,Ut)},encoding:w(this,Et),skipParseResponse:!0,customFetch:w(this,Rt).sendRequest.bind(w(this,Rt),w(this,kn)),requestVersionedDataHandler:uc,responseVersionedDataHandler:cc})}catch(e){G().warn({msg:&quot;failed to send close request&quot;,error:e})}w(this,Ue).sse.close()}else Mn(w(this,Ue));ge(this,Ue,void 0)}},ir=new WeakMap,Ra=new WeakMap,Zi=new WeakMap,kn=new WeakMap,Se=new WeakMap,Ut=new WeakMap,Ue=new WeakMap,Dt=new WeakMap,$t=new WeakMap,xn=new WeakMap,Mi=new WeakMap,La=new WeakMap,Za=new WeakMap,It=new WeakMap,or=new WeakMap,Rt=new WeakMap,Mr=new WeakMap,Et=new WeakMap,Fi=new WeakMap,oe=new WeakSet,Hd=async function(){ge(this,Zi,!0);try{await JT(ve(this,oe,wb).bind(this),{forever:!0,minTimeout:250,maxTimeout:3e4,onFailedAttempt:e=&gt;{G().warn({msg:&quot;failed to reconnect&quot;,attempt:e.attemptNumber,error:Pr(e)})},signal:w(this,Ra).signal})}catch(e){if(e.name===&quot;AbortError&quot;){G().info({msg:&quot;connection retry aborted&quot;});return}else throw e}ge(this,Zi,!1)},wb=async function(){try{if(w(this,It))throw new Error(&quot;#onOpenPromise already defined&quot;);ge(this,It,nc()),w(this,or)[Fo]===&quot;websocket&quot;?await ve(this,oe,kb).call(this):w(this,or)[Fo]===&quot;sse&quot;?await ve(this,oe,xb).call(this):Mn(w(this,or)[Fo]),await w(this,It).promise}finally{ge(this,It,void 0)}},kb=async function(){const{actorId:e}=await ri(void 0,w(this,Fi),w(this,Rt)),t=w(this,Se)&amp;&amp;w(this,Ut);t&amp;&amp;G().debug({msg:&quot;attempting websocket reconnection&quot;,connectionId:w(this,Se)});const n=await w(this,Rt).openWebSocket(mE,e,w(this,Et),w(this,Mr),t?w(this,Se):void 0,t?w(this,Ut):void 0);G().debug({msg:&quot;transport set to new websocket&quot;,connectionId:w(this,Se),readyState:n.readyState,messageQueueLength:w(this,Dt).length}),ge(this,Ue,{websocket:n}),n.addEventListener(&quot;open&quot;,()=&gt;{G().debug({msg:&quot;client websocket open&quot;,connectionId:w(this,Se)})}),n.addEventListener(&quot;message&quot;,async i=&gt;{try{await ve(this,oe,Kd).call(this,i.data)}catch(r){G().error({msg:&quot;error in websocket message handler&quot;,error:Pr(r)})}}),n.addEventListener(&quot;close&quot;,i=&gt;{try{ve(this,oe,Sb).call(this,i)}catch(r){G().error({msg:&quot;error in websocket close handler&quot;,error:Pr(r)})}}),n.addEventListener(&quot;error&quot;,i=&gt;{try{ve(this,oe,Jd).call(this)}catch(r){G().error({msg:&quot;error in websocket error handler&quot;,error:Pr(r)})}})},xb=async function(){const e=await QT(),{actorId:t}=await ri(void 0,w(this,Fi),w(this,Rt));G().debug({msg:&quot;found actor for sse connection&quot;,actorId:t}),mn(t,&quot;Missing actor ID&quot;),G().debug({msg:&quot;opening sse connection&quot;,actorId:t,encoding:w(this,Et)});const n=w(this,Se)&amp;&amp;w(this,Ut),i=new e(&quot;http://actor/connect/sse&quot;,{fetch:(r,o)=&gt;w(this,Rt).sendRequest(t,new Request(r,{...o,headers:{...o==null?void 0:o.headers,&quot;User-Agent&quot;:m_(),[Ea]:w(this,Et),...w(this,Mr)!==void 0?{[Qa]:JSON.stringify(w(this,Mr))}:{},...n?{[Hs]:w(this,Se),[Ks]:w(this,Ut)}:{}}}))});ge(this,Ue,{sse:i}),i.addEventListener(&quot;message&quot;,r=&gt;{r.type!==&quot;ping&quot;&amp;&amp;ve(this,oe,Kd).call(this,r.data)}),i.addEventListener(&quot;error&quot;,r=&gt;{ve(this,oe,Jd).call(this)})},bb=function(){G().debug({msg:&quot;socket open&quot;,messageQueueLength:w(this,Dt).length,connectionId:w(this,Se)}),w(this,It)?w(this,It).resolve(void 0):G().warn({msg:&quot;#onOpenPromise is undefined&quot;});for(const t of w(this,xn).keys())ve(this,oe,qs).call(this,t,!0);const e=w(this,Dt);ge(this,Dt,[]),G().debug({msg:&quot;flushing message queue&quot;,queueLength:e.length});for(const t of e)ve(this,oe,Gs).call(this,t)},Kd=async function(e){G().trace({msg:&quot;received message&quot;,dataType:typeof e,isBlob:e instanceof Blob,isArrayBuffer:e instanceof ArrayBuffer});const t=await ve(this,oe,Nb).call(this,e);if(G().trace(Me(&quot;_RIVETKIT_LOG_MESSAGE&quot;)?{msg:&quot;parsed message&quot;,message:Od(t).substring(0,100)+&quot;...&quot;}:{msg:&quot;parsed message&quot;}),t.body.tag===&quot;Init&quot;)ge(this,kn,t.body.val.actorId),ge(this,Se,t.body.val.connectionId),ge(this,Ut,t.body.val.connectionToken),G().trace({msg:&quot;received init message&quot;,actorId:w(this,kn),connectionId:w(this,Se)}),ve(this,oe,bb).call(this);else if(t.body.tag===&quot;Error&quot;){const{group:n,code:i,message:r,metadata:o,actionId:a}=t.body.val;if(a){const s=ve(this,oe,Gd).call(this,Number(a));G().warn({msg:&quot;action error&quot;,actionId:a,actionName:s==null?void 0:s.name,group:n,code:i,message:r,metadata:o}),s.reject(new Aa(n,i,r,o))}else{G().warn({msg:&quot;connection error&quot;,group:n,code:i,message:r,metadata:o});const s=new Aa(n,i,r,o);w(this,It)&amp;&amp;w(this,It).reject(s);for(const[l,u]of w(this,$t).entries())u.reject(s),w(this,$t).delete(l);ve(this,oe,Ib).call(this,s)}}else if(t.body.tag===&quot;ActionResponse&quot;){const{id:n}=t.body.val;G().trace({msg:&quot;received action response&quot;,actionId:n});const i=ve(this,oe,Gd).call(this,Number(n));G().trace({msg:&quot;resolving action promise&quot;,actionId:n,actionName:i==null?void 0:i.name}),i.resolve(t.body.val)}else t.body.tag===&quot;Event&quot;?(G().trace({msg:&quot;received event&quot;,name:t.body.val.name}),ve(this,oe,$b).call(this,t.body.val)):Mn(t.body)},Sb=function(e){w(this,It)&amp;&amp;w(this,It).reject(new Error(&quot;Closed&quot;));const t=e,n=t.wasClean;if(G().info({msg:&quot;socket closed&quot;,code:t.code,reason:t.reason,wasClean:n,connectionId:w(this,Se),messageQueueLength:w(this,Dt).length,actionsInFlight:w(this,$t).size}),w(this,$t).size&gt;0){G().debug({msg:&quot;rejecting in-flight actions after disconnect&quot;,count:w(this,$t).size,connectionId:w(this,Se),wasClean:n});const i=new Error(n?&quot;Connection closed&quot;:&quot;Connection lost&quot;);for(const r of w(this,$t).values())r.reject(i);w(this,$t).clear()}ge(this,Ue,void 0),!w(this,ir)&amp;&amp;!w(this,Zi)&amp;&amp;(G().debug({msg:&quot;triggering reconnect&quot;,connectionId:w(this,Se),messageQueueLength:w(this,Dt).length}),ve(this,oe,Hd).call(this))},Jd=function(){w(this,ir)||G().warn(&quot;socket error&quot;)},Gd=function(e){const t=w(this,$t).get(e);if(!t)throw new dc(`No in flight response for ${e}`);return w(this,$t).delete(e),t},$b=function(e){const{name:t,args:n}=e,i=$a(new Uint8Array(n)),r=w(this,xn).get(t);if(r){for(const o of[...r])o.callback(...i),o.once&amp;&amp;r.delete(o);r.size===0&amp;&amp;w(this,xn).delete(t)}},Ib=function(e){for(const t of[...w(this,Mi)])try{t(e)}catch(n){G().error({msg:&quot;error in connection error handler&quot;,error:Pr(n)})}},qd=function(e,t,n){const i={callback:t,once:n};let r=w(this,xn).get(e);return r===void 0&amp;&amp;(r=new Set,w(this,xn).set(e,r),ve(this,oe,qs).call(this,e,!0)),r.add(i),()=&gt;{const o=w(this,xn).get(e);o&amp;&amp;(o.delete(i),o.size===0&amp;&amp;(w(this,xn).delete(e),ve(this,oe,qs).call(this,e,!1)))}},Gs=function(e,t){var n,i;if(w(this,ir))throw new qT;let r=!1;if(!w(this,Ue))G().debug({msg:&quot;no transport, queueing message&quot;}),r=!0;else if(&quot;websocket&quot;in w(this,Ue)){const o=w(this,Ue).websocket.readyState;if(G().debug({msg:&quot;websocket send attempt&quot;,readyState:o,readyStateString:o===0?&quot;CONNECTING&quot;:o===1?&quot;OPEN&quot;:o===2?&quot;CLOSING&quot;:&quot;CLOSED&quot;,connectionId:w(this,Se),messageType:e.body.tag,actionName:(n=e.body.val)==null?void 0:n.name}),o===1)try{const a=F_(w(this,Et),e,uc);w(this,Ue).websocket.send(a),G().trace({msg:&quot;sent websocket message&quot;,len:e4(a)})}catch(a){G().warn({msg:&quot;failed to send message, added to queue&quot;,error:a,connectionId:w(this,Se)}),r=!0}else G().debug({msg:&quot;websocket not open, queueing message&quot;,readyState:o}),r=!0}else&quot;sse&quot;in w(this,Ue)?w(this,Ue).sse.readyState===1?ve(this,oe,Eb).call(this,e,t):r=!0:Mn(w(this,Ue));!(t!=null&amp;&amp;t.ephemeral)&amp;&amp;r&amp;&amp;(w(this,Dt).push(e),G().debug({msg:&quot;queued connection message&quot;,queueLength:w(this,Dt).length,connectionId:w(this,Se),messageType:e.body.tag,actionName:(i=e.body.val)==null?void 0:i.name}))},Eb=async function(e,t){try{if(!w(this,kn)||!w(this,Se)||!w(this,Ut))throw new dc(&quot;Missing connection ID or token.&quot;);G().trace(Me(&quot;_RIVETKIT_LOG_MESSAGE&quot;)?{msg:&quot;sent http message&quot;,message:`${Od(e).substring(0,100)}...`}:{msg:&quot;sent http message&quot;}),G().debug({msg:&quot;sending http message&quot;,actorId:w(this,kn),connectionId:w(this,Se)}),await Fl({url:&quot;http://actor/connections/message&quot;,method:&quot;POST&quot;,headers:{[Ea]:w(this,Et),[Hs]:w(this,Se),[Ks]:w(this,Ut)},body:e,encoding:w(this,Et),skipParseResponse:!0,customFetch:w(this,Rt).sendRequest.bind(w(this,Rt),w(this,kn)),requestVersionedDataHandler:uc,responseVersionedDataHandler:cc})}catch(n){G().warn({msg:&quot;failed to send message, added to queue&quot;,error:n}),t!=null&amp;&amp;t.ephemeral||w(this,Dt).unshift(e)}},Nb=async function(e){if(mn(w(this,Ue),&quot;transport must be defined&quot;),M_(w(this,Et))&amp;&amp;&quot;sse&quot;in w(this,Ue))if(typeof e==&quot;string&quot;){const n=atob(e);e=new Uint8Array([...n].map(i=&gt;i.charCodeAt(0)))}else throw new dc(`Expected data to be a string for SSE, got ${e}.`);const t=await wT(e);return zd(w(this,Et),t,cc)},qs=function(e,t){ve(this,oe,Gs).call(this,{body:{tag:&quot;SubscriptionRequest&quot;,val:{eventName:e,subscribe:t}}},{ephemeral:!0})},Xg);function _e(){return Qf(&quot;remote-manager-driver&quot;)}var o4=class extends Error{constructor(e,t,n){super(n||`Engine API error: ${e}/${t}`),this.group=e,this.code=t,this.name=&quot;EngineApiError&quot;}};function Pa(e){return e.endpoint??&quot;http://127.0.0.1:6420&quot;}async function mo(e,t,n,i){const r=Pa(e),o=au(r,n,{namespace:e.namespace});_e().debug({msg:&quot;making api call&quot;,method:t,url:o});const a={...e.headers};return e.token&amp;&amp;(a.Authorization=`Bearer ${e.token}`),await Fl({method:t,url:o,headers:a,body:i,encoding:&quot;json&quot;,skipParseResponse:!1,requestVersionedDataHandler:void 0,responseVersionedDataHandler:void 0})}async function Vg(e,t,n){const i=new URL(n.url),r=Pa(e),o=au(r,i.pathname+i.search);let a=null;const s=s4(e,n,t);if(n.method!==&quot;GET&quot;&amp;&amp;n.method!==&quot;HEAD&quot;){if(n.bodyUsed)throw new Error(&quot;Request body has already been consumed&quot;);const u=await n.arrayBuffer();u.byteLength!==0&amp;&amp;(a=u,s.delete(&quot;transfer-encoding&quot;),s.set(&quot;content-length&quot;,String(a.byteLength)))}const l=new Request(o,{method:n.method,headers:s,body:a,signal:n.signal});return a4(await fetch(l))}function a4(e){return new Response(e.body,e)}function s4(e,t,n){const i=new Headers;for(const[r,o]of t.headers.entries())i.set(r,o);for(const[r,o]of Object.entries(e.headers))i.set(r,o);return i.set(vE,&quot;actor&quot;),i.set(yE,n),e.token&amp;&amp;i.set(gE,e.token),i}async function l4(e,t,n,i,r,o,a){const s=await ob(),l=Pa(e),u=au(l,t);_e().debug({msg:&quot;opening websocket to actor via guard&quot;,actorId:n,path:t,guardUrl:u});const d=new s(u,jb(e,n,i,r,o,a));return d.binaryType=&quot;arraybuffer&quot;,_e().debug({msg:&quot;websocket connection opened&quot;,actorId:n}),d}function jb(e,t,n,i,r,o){const a=[];return a.push(_E),a.push(`${wE}actor`),a.push(`${kE}${t}`),a.push(`${xE}${n}`),e.token&amp;&amp;a.push(`${IE}${e.token}`),i&amp;&amp;a.push(`${bE}${encodeURIComponent(JSON.stringify(i))}`),r&amp;&amp;a.push(`${SE}${r}`),o&amp;&amp;a.push(`${$E}${o}`),a}async function u4(e,t,n){return mo(e,&quot;GET&quot;,`/actors?actor_ids=${encodeURIComponent(n)}`)}async function c4(e,t,n){const i=Wd(n);return mo(e,&quot;GET&quot;,`/actors?name=${encodeURIComponent(t)}&amp;key=${encodeURIComponent(i)}`)}async function d4(e,t){return mo(e,&quot;PUT&quot;,&quot;/actors&quot;,t)}async function f4(e,t){return mo(e,&quot;POST&quot;,&quot;/actors&quot;,t)}async function m4(e,t){return mo(e,&quot;DELETE&quot;,`/actors/${encodeURIComponent(t)}`)}async function p4(e){return mo(e,&quot;GET&quot;,&quot;/metadata&quot;)}async function h4(e,t,n){const i=await ob(),r={};return{onOpen:async(o,a)=&gt;{if(_e().debug({msg:&quot;client websocket connected&quot;,targetUrl:t}),a.readyState!==1){_e().warn({msg:&quot;client websocket not open on connection&quot;,targetUrl:t,readyState:a.readyState});return}const s=new i(t,n);r.targetWs=s,r.connectPromise=new Promise((l,u)=&gt;{s.addEventListener(&quot;open&quot;,()=&gt;{if(_e().debug({msg:&quot;target websocket connected&quot;,targetUrl:t}),a.readyState!==1){_e().warn({msg:&quot;client websocket closed before target connected&quot;,targetUrl:t,clientReadyState:a.readyState}),s.close(1001,&quot;Client disconnected&quot;),u(new Error(&quot;Client disconnected&quot;));return}l()}),s.addEventListener(&quot;error&quot;,d=&gt;{_e().warn({msg:&quot;target websocket error during connection&quot;,targetUrl:t}),u(d)})}),r.targetWs.addEventListener(&quot;message&quot;,l=&gt;{typeof l.data==&quot;string&quot;||l.data instanceof ArrayBuffer?a.send(l.data):l.data instanceof Blob&amp;&amp;l.data.arrayBuffer().then(u=&gt;{a.send(u)})}),r.targetWs.addEventListener(&quot;close&quot;,l=&gt;{_e().debug({msg:&quot;target websocket closed&quot;,targetUrl:t,code:l.code,reason:l.reason}),mc(a,l.code,l.reason)}),r.targetWs.addEventListener(&quot;error&quot;,l=&gt;{_e().error({msg:&quot;target websocket error&quot;,targetUrl:t,error:Pr(l)}),mc(a,1011,&quot;Target WebSocket error&quot;)})},onMessage:async(o,a)=&gt;{if(!r.targetWs||!r.connectPromise){_e().error({msg:&quot;websocket state not initialized&quot;,targetUrl:t});return}try{await r.connectPromise,r.targetWs.readyState===i.OPEN?r.targetWs.send(o.data):_e().warn({msg:&quot;target websocket not open&quot;,targetUrl:t,readyState:r.targetWs.readyState})}catch(s){_e().error({msg:&quot;failed to connect to target websocket&quot;,targetUrl:t,error:s}),mc(a,1011,&quot;Failed to connect to target&quot;)}},onClose:(o,a)=&gt;{_e().debug({msg:&quot;client websocket closed&quot;,targetUrl:t,code:o.code,reason:o.reason,wasClean:o.wasClean}),r.targetWs&amp;&amp;(r.targetWs.readyState===i.OPEN||r.targetWs.readyState===i.CONNECTING)&amp;&amp;r.targetWs.close(1e3,o.reason||&quot;Client disconnected&quot;)},onError:(o,a)=&gt;{_e().error({msg:&quot;client websocket error&quot;,targetUrl:t,event:o}),r.targetWs&amp;&amp;(r.targetWs.readyState===i.OPEN?r.targetWs.close(1011,&quot;Client WebSocket error&quot;):r.targetWs.readyState===i.CONNECTING&amp;&amp;r.targetWs.close())}}}function mc(e,t,n){(e.readyState===1||&quot;close&quot;in e&amp;&amp;e.readyState===WebSocket.OPEN)&amp;&amp;e.close(t,n)}var Wg=new Map,Xe,ze,Bl,Ob,Yg,g4=(Yg=class{constructor(e){pe(this,Bl);pe(this,Xe);pe(this,ze);Me(&quot;NEXT_PHASE&quot;)===&quot;phase-production-build&quot;&amp;&amp;(_e().info(&quot;detected next.js build phase, disabling health check&quot;),e.disableHealthCheck=!0),ge(this,Xe,e),e.disableHealthCheck||(ge(this,ze,ve(this,Bl,Ob).call(this,e)),w(this,ze).catch(t=&gt;{_e().error({msg:&quot;metadata check failed&quot;,error:t instanceof Error?t.message:String(t)})}))}async getForId({c:e,name:t,actorId:n}){w(this,ze)&amp;&amp;await w(this,ze);const r=(await u4(w(this,Xe),t,n)).actors[0];if(!r)return;if(r.name!==t){_e().debug({msg:&quot;actor name mismatch from api&quot;,actorId:n,apiName:r.name,requestedName:t});return}const o=r.key;mn(o,`actor ${n} should have key`);const a=GT(o);return{actorId:n,name:t,key:a}}async getWithKey({c:e,name:t,key:n}){w(this,ze)&amp;&amp;await w(this,ze),_e().debug({msg:&quot;getWithKey: searching for actor&quot;,name:t,key:n});try{const r=(await c4(w(this,Xe),t,n)).actors[0];if(!r)return;const o=r.actor_id;return _e().debug({msg:&quot;getWithKey: found actor via api&quot;,actorId:o,name:t,key:n}),{actorId:o,name:t,key:n}}catch(i){if(i instanceof o4&amp;&amp;i.group===&quot;actor&quot;&amp;&amp;i.code===&quot;not_found&quot;)return;throw i}}async getOrCreateWithKey(e){w(this,ze)&amp;&amp;await w(this,ze);const{c:t,name:n,key:i,input:r,region:o}=e;_e().info({msg:&quot;getOrCreateWithKey: getting or creating actor via engine api&quot;,name:n,key:i});const{actor:a,created:s}=await d4(w(this,Xe),{name:n,key:Wd(i),runner_name_selector:w(this,Xe).runnerName,input:r?kg(Ia(r)):void 0,crash_policy:&quot;sleep&quot;}),l=a.actor_id;return _e().info({msg:&quot;getOrCreateWithKey: actor ready&quot;,actorId:l,name:n,key:i,created:s}),{actorId:l,name:n,key:i}}async createActor({c:e,name:t,key:n,input:i}){w(this,ze)&amp;&amp;await w(this,ze),_e().info({msg:&quot;creating actor via engine api&quot;,name:t,key:n});const o=(await f4(w(this,Xe),{name:t,runner_name_selector:w(this,Xe).runnerName,key:Wd(n),input:i?kg(Ia(i)):void 0,crash_policy:&quot;sleep&quot;})).actor.actor_id;return _e().info({msg:&quot;actor created&quot;,actorId:o,name:t,key:n}),{actorId:o,name:t,key:n}}async destroyActor(e){w(this,ze)&amp;&amp;await w(this,ze),_e().info({msg:&quot;destroying actor via engine api&quot;,actorId:e}),await m4(w(this,Xe),e),_e().info({msg:&quot;actor destroyed&quot;,actorId:e})}async sendRequest(e,t){return w(this,ze)&amp;&amp;await w(this,ze),await Vg(w(this,Xe),e,t)}async openWebSocket(e,t,n,i,r,o){return w(this,ze)&amp;&amp;await w(this,ze),await l4(w(this,Xe),e,t,n,i,r,o)}async proxyRequest(e,t,n){return w(this,ze)&amp;&amp;await w(this,ze),await Vg(w(this,Xe),n,t)}async proxyWebSocket(e,t,n,i,r,o,a){var s,l;w(this,ze)&amp;&amp;await w(this,ze);const u=(l=(s=w(this,Xe)).getUpgradeWebSocket)==null?void 0:l.call(s);mn(u,&quot;missing getUpgradeWebSocket&quot;);const d=Pa(w(this,Xe)),h=au(d,t),g=h.replace(&quot;http://&quot;,&quot;ws://&quot;);_e().debug({msg:&quot;forwarding websocket to actor via guard&quot;,actorId:n,path:t,guardUrl:h});const v=jb(w(this,Xe),n,i,r,o,a),y=await h4(e,g,v);return await u(()=&gt;y)(e,f1())}displayInformation(){return{name:&quot;Remote&quot;,properties:{}}}getOrCreateInspectorAccessToken(){return fE()}},Xe=new WeakMap,ze=new WeakMap,Bl=new WeakSet,Ob=async function(e){const t=Pa(e),n=Wg.get(t);if(n)return n;const i=(async()=&gt;{try{const r=await p4(e);r.clientEndpoint&amp;&amp;(_e().info({msg:&quot;received new client endpoint from metadata&quot;,endpoint:r.clientEndpoint}),w(this,Xe).endpoint=r.clientEndpoint),_e().info({msg:&quot;connected to rivetkit manager&quot;,runtime:r.runtime,version:r.version,runner:r.runner})}catch(r){_e().error({msg:&quot;health check failed, validate the Rivet endpoint is configured correctly&quot;,endpoint:t,error:Pr(r)})}})();return Wg.set(t,i),i},Yg);function v4(e){const t=e===void 0?{}:typeof e==&quot;string&quot;?{endpoint:e}:e,n=fb.parse(t),i=new g4(n);return r4(i,n)}function y4({onConnect:e}){const[t,n]=q.useState(&quot;getOrCreate&quot;),[i,r]=q.useState(&quot;demo&quot;),[o,a]=q.useState(&quot;&quot;),[s,l]=q.useState(&quot;&quot;),[u,d]=q.useState(&quot;&quot;),[h,g]=q.useState(&quot;&quot;),[v,y]=q.useState(&quot;websocket&quot;),[E,N]=q.useState(&quot;bare&quot;),[p,f]=q.useState(&quot;handle&quot;),[m,k]=q.useState(!1),$=async()=&gt;{k(!0),e({actorMethod:t,actorName:i,actorKey:o,actorId:s,actorRegion:u,createInput:h,transport:v,encoding:E,connectionMode:p,isConnected:!0}),k(!1)};return c.jsx(&quot;div&quot;,{className:&quot;connection-screen&quot;,children:c.jsxs(&quot;div&quot;,{className:&quot;connection-modal&quot;,children:[c.jsxs(&quot;div&quot;,{className:&quot;modal-header&quot;,children:[c.jsx(&quot;h1&quot;,{children:&quot;Connect to Actor&quot;}),c.jsx(&quot;p&quot;,{children:&quot;Configure your RivetKit connection&quot;})]}),c.jsxs(&quot;div&quot;,{className:&quot;modal-content&quot;,children:[c.jsxs(&quot;div&quot;,{className:&quot;form-section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Actor Configuration&quot;}),c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Method&quot;}),c.jsxs(&quot;div&quot;,{className:&quot;toggle-group method-toggle&quot;,children:[c.jsx(&quot;button&quot;,{className:`toggle-button ${t===&quot;get&quot;?&quot;active&quot;:&quot;&quot;}`,onClick:()=&gt;n(&quot;get&quot;),children:&quot;Get&quot;}),c.jsx(&quot;button&quot;,{className:`toggle-button ${t===&quot;getOrCreate&quot;?&quot;active&quot;:&quot;&quot;}`,onClick:()=&gt;n(&quot;getOrCreate&quot;),children:&quot;Get or Create&quot;}),c.jsx(&quot;button&quot;,{className:`toggle-button ${t===&quot;getForId&quot;?&quot;active&quot;:&quot;&quot;}`,onClick:()=&gt;n(&quot;getForId&quot;),children:&quot;Get for ID&quot;}),c.jsx(&quot;button&quot;,{className:`toggle-button ${t===&quot;create&quot;?&quot;active&quot;:&quot;&quot;}`,onClick:()=&gt;n(&quot;create&quot;),children:&quot;Create&quot;})]})]}),c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Actor Name&quot;}),c.jsx(&quot;select&quot;,{className:&quot;form-control&quot;,value:i,onChange:x=&gt;r(x.target.value),children:c.jsx(&quot;option&quot;,{value:&quot;demo&quot;,children:&quot;Demo Actor&quot;})})]}),t===&quot;getForId&quot;?c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Actor ID&quot;}),c.jsx(&quot;input&quot;,{className:&quot;form-control&quot;,type:&quot;text&quot;,value:s,onChange:x=&gt;l(x.target.value),placeholder:&quot;Actor ID&quot;,required:!0})]}):c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Key&quot;}),c.jsx(&quot;input&quot;,{className:&quot;form-control&quot;,type:&quot;text&quot;,value:o,onChange:x=&gt;a(x.target.value),placeholder:&quot;Optional key for actor instance&quot;})]}),(t===&quot;create&quot;||t===&quot;getOrCreate&quot;)&amp;&amp;c.jsxs(c.Fragment,{children:[c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Region&quot;}),c.jsx(&quot;input&quot;,{className:&quot;form-control&quot;,type:&quot;text&quot;,value:u,onChange:x=&gt;d(x.target.value),placeholder:&quot;Optional region&quot;})]}),c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Input Data&quot;}),c.jsx(&quot;textarea&quot;,{className:&quot;form-control textarea&quot;,value:h,onChange:x=&gt;g(x.target.value),placeholder:&quot;Optional JSON input data&quot;,rows:3})]})]})]}),c.jsxs(&quot;div&quot;,{className:&quot;form-section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Connection Settings&quot;}),c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Mode&quot;}),c.jsxs(&quot;div&quot;,{className:&quot;toggle-group&quot;,children:[c.jsx(&quot;button&quot;,{className:`toggle-button ${p===&quot;handle&quot;?&quot;active&quot;:&quot;&quot;}`,onClick:()=&gt;f(&quot;handle&quot;),children:&quot;Handle&quot;}),c.jsx(&quot;button&quot;,{className:`toggle-button ${p===&quot;connection&quot;?&quot;active&quot;:&quot;&quot;}`,onClick:()=&gt;f(&quot;connection&quot;),children:&quot;Connection&quot;})]})]}),p===&quot;connection&quot;&amp;&amp;c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Transport&quot;}),c.jsxs(&quot;div&quot;,{className:&quot;toggle-group&quot;,children:[c.jsx(&quot;button&quot;,{className:`toggle-button ${v===&quot;websocket&quot;?&quot;active&quot;:&quot;&quot;}`,onClick:()=&gt;y(&quot;websocket&quot;),children:&quot;WebSocket&quot;}),c.jsx(&quot;button&quot;,{className:`toggle-button ${v===&quot;sse&quot;?&quot;active&quot;:&quot;&quot;}`,onClick:()=&gt;y(&quot;sse&quot;),children:&quot;SSE&quot;})]})]}),c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Encoding&quot;}),c.jsxs(&quot;div&quot;,{className:&quot;toggle-group&quot;,children:[c.jsx(&quot;button&quot;,{className:`toggle-button ${E===&quot;bare&quot;?&quot;active&quot;:&quot;&quot;}`,onClick:()=&gt;N(&quot;bare&quot;),children:&quot;Bare&quot;}),c.jsx(&quot;button&quot;,{className:`toggle-button ${E===&quot;cbor&quot;?&quot;active&quot;:&quot;&quot;}`,onClick:()=&gt;N(&quot;cbor&quot;),children:&quot;CBOR&quot;}),c.jsx(&quot;button&quot;,{className:`toggle-button ${E===&quot;json&quot;?&quot;active&quot;:&quot;&quot;}`,onClick:()=&gt;N(&quot;json&quot;),children:&quot;JSON&quot;})]})]})]}),c.jsx(&quot;div&quot;,{className:&quot;modal-actions&quot;,children:c.jsx(&quot;button&quot;,{className:&quot;btn btn-primary connect-button&quot;,onClick:$,disabled:m,&quot;aria-busy&quot;:m?&quot;true&quot;:&quot;false&quot;,children:m?&quot;Connecting...&quot;:&quot;Connect to Actor&quot;})})]})]})})}function Hg({state:e,actorHandle:t}){const[n,i]=q.useState({}),[r,o]=q.useState({}),[a,s]=q.useState(&quot;1&quot;),[l,u]=q.useState(&quot;Hello World&quot;),[d,h]=q.useState(&quot;3&quot;),[g,v]=q.useState(&quot;2000&quot;),[y,E]=q.useState(&quot;userAction&quot;),[N,p]=q.useState(&#39;{&quot;type&quot;: &quot;click&quot;, &quot;target&quot;: &quot;button&quot;}&#39;),[f,m]=q.useState(&quot;10&quot;),k=async(A,...H)=&gt;{o(re=&gt;({...re,[A]:!0})),i(re=&gt;({...re,[A]:&quot;&quot;}));try{const re=await t[A](...H);i(je=&gt;({...je,[A]:JSON.stringify(re,null,2)}))}catch(re){i(je=&gt;({...je,[A]:`Error: ${re instanceof Error?re.message:String(re)}`}))}finally{o(re=&gt;({...re,[A]:!1}))}},$=({title:A,description:H,actionName:re,children:je,onCall:b})=&gt;c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:A}),c.jsx(&quot;p&quot;,{style:{fontSize:&quot;14px&quot;,color:&quot;#666&quot;,marginBottom:&quot;10px&quot;},children:H}),je,c.jsx(&quot;button&quot;,{className:&quot;btn btn-primary&quot;,onClick:b,disabled:r[re],style:{marginTop:je?&quot;10px&quot;:&quot;0&quot;},children:r[re]?&quot;Calling...&quot;:`Call ${A}`}),n[re]&amp;&amp;c.jsx(&quot;div&quot;,{className:&quot;response&quot;,style:{marginTop:&quot;10px&quot;},children:n[re]})]}),x=()=&gt;c.jsxs(c.Fragment,{children:[c.jsx($,{title:&quot;getCount&quot;,description:&quot;Get current counter value&quot;,actionName:&quot;getCount&quot;,onCall:()=&gt;k(&quot;getCount&quot;)}),c.jsx($,{title:&quot;increment&quot;,description:&quot;Increment counter by amount&quot;,actionName:&quot;increment&quot;,onCall:()=&gt;k(&quot;increment&quot;,Number(a)),children:c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Amount:&quot;}),c.jsx(&quot;input&quot;,{className:&quot;form-control&quot;,type:&quot;number&quot;,value:a,onChange:A=&gt;s(A.target.value)})]})}),c.jsx($,{title:&quot;setMessage&quot;,description:&quot;Set a message string&quot;,actionName:&quot;setMessage&quot;,onCall:()=&gt;k(&quot;setMessage&quot;,l),children:c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Message:&quot;}),c.jsx(&quot;input&quot;,{className:&quot;form-control&quot;,type:&quot;text&quot;,value:l,onChange:A=&gt;u(A.target.value)})]})}),c.jsx($,{title:&quot;delayedIncrement&quot;,description:&quot;Increment after delay&quot;,actionName:&quot;delayedIncrement&quot;,onCall:()=&gt;k(&quot;delayedIncrement&quot;,Number(d),Number(g)),children:c.jsxs(&quot;div&quot;,{className:&quot;form-grid&quot;,children:[c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Amount:&quot;}),c.jsx(&quot;input&quot;,{className:&quot;form-control&quot;,type:&quot;number&quot;,value:d,onChange:A=&gt;h(A.target.value)})]}),c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Delay (ms):&quot;}),c.jsx(&quot;input&quot;,{className:&quot;form-control&quot;,type:&quot;number&quot;,value:g,onChange:A=&gt;v(A.target.value)})]})]})}),c.jsx($,{title:&quot;promiseAction&quot;,description:&quot;Returns a resolved promise with timestamp&quot;,actionName:&quot;promiseAction&quot;,onCall:()=&gt;k(&quot;promiseAction&quot;)}),c.jsx($,{title:&quot;getState&quot;,description:&quot;Get both actor and connection state&quot;,actionName:&quot;getState&quot;,onCall:()=&gt;k(&quot;getState&quot;)}),c.jsx($,{title:&quot;getLifecycleInfo&quot;,description:&quot;Get start/stop counts&quot;,actionName:&quot;getLifecycleInfo&quot;,onCall:()=&gt;k(&quot;getLifecycleInfo&quot;)}),c.jsx($,{title:&quot;getMetadata&quot;,description:&quot;Get actor metadata&quot;,actionName:&quot;getMetadata&quot;,onCall:()=&gt;k(&quot;getMetadata&quot;)}),c.jsx($,{title:&quot;getInput&quot;,description:&quot;Get input data passed during actor creation&quot;,actionName:&quot;getInput&quot;,onCall:()=&gt;k(&quot;getInput&quot;)}),c.jsx($,{title:&quot;broadcastCustomEvent&quot;,description:&quot;Broadcast custom event&quot;,actionName:&quot;broadcastCustomEvent&quot;,onCall:()=&gt;{try{const A=JSON.parse(N);k(&quot;broadcastCustomEvent&quot;,y,A)}catch{i(H=&gt;({...H,broadcastCustomEvent:&quot;Error: Invalid JSON data&quot;}))}},children:c.jsxs(&quot;div&quot;,{className:&quot;form-grid&quot;,children:[c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Event Name:&quot;}),c.jsx(&quot;input&quot;,{className:&quot;form-control&quot;,type:&quot;text&quot;,value:y,onChange:A=&gt;E(A.target.value)})]}),c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Data (JSON):&quot;}),c.jsx(&quot;input&quot;,{className:&quot;form-control&quot;,type:&quot;text&quot;,value:N,onChange:A=&gt;p(A.target.value)})]})]})})]}),T=()=&gt;c.jsxs(c.Fragment,{children:[c.jsx($,{title:&quot;getStats&quot;,description:&quot;Get HTTP request statistics&quot;,actionName:&quot;getStats&quot;,onCall:()=&gt;k(&quot;getStats&quot;)}),c.jsx($,{title:&quot;clearHistory&quot;,description:&quot;Clear request history&quot;,actionName:&quot;clearHistory&quot;,onCall:()=&gt;k(&quot;clearHistory&quot;)})]}),Z=()=&gt;c.jsxs(c.Fragment,{children:[c.jsx($,{title:&quot;getStats&quot;,description:&quot;Get WebSocket statistics&quot;,actionName:&quot;getStats&quot;,onCall:()=&gt;k(&quot;getStats&quot;)}),c.jsx($,{title:&quot;clearHistory&quot;,description:&quot;Clear message history&quot;,actionName:&quot;clearHistory&quot;,onCall:()=&gt;k(&quot;clearHistory&quot;)}),c.jsx($,{title:&quot;getMessageHistory&quot;,description:&quot;Get recent WebSocket messages&quot;,actionName:&quot;getMessageHistory&quot;,onCall:()=&gt;k(&quot;getMessageHistory&quot;,Number(f)),children:c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Limit:&quot;}),c.jsx(&quot;input&quot;,{className:&quot;form-control&quot;,type:&quot;number&quot;,value:f,onChange:A=&gt;m(A.target.value)})]})})]});return c.jsxs(&quot;div&quot;,{children:[e.actorName===&quot;demo&quot;&amp;&amp;x(),e.actorName===&quot;http&quot;&amp;&amp;T(),e.actorName===&quot;websocket&quot;&amp;&amp;Z()]})}function Kg({actorHandle:e,eventSubscriptions:t,setEventSubscriptions:n,events:i,setEvents:r}){const[o,a]=q.useState(&quot;countChanged&quot;),[s,l]=q.useState(&quot;&quot;),u=q.useRef(0),d=[&quot;countChanged&quot;,&quot;messageChanged&quot;,&quot;preferenceChanged&quot;,&quot;alarmTriggered&quot;],h=(f,m)=&gt;{const k={timestamp:Date.now(),name:f,data:m,id:`event-${++u.current}`};r($=&gt;[...$,k].slice(-100))},g=f=&gt;{if(!e||t.has(f))return;const m=e.on(f,(...k)=&gt;{h(f,k.length===1?k[0]:k)});n(k=&gt;{const $=new Map(k);return $.set(f,{eventName:f,unsubscribe:m}),$})},v=f=&gt;{const m=t.get(f);m&amp;&amp;(m.unsubscribe(),n(k=&gt;{const $=new Map(k);return $.delete(f),$}))},y=()=&gt;{const f=o===&quot;custom&quot;?s.trim():o;f&amp;&amp;(g(f),o===&quot;custom&quot;&amp;&amp;l(&quot;&quot;))},E=()=&gt;{r([])},N=f=&gt;new Date(f).toLocaleTimeString(),p=f=&gt;typeof f==&quot;string&quot;?f:JSON.stringify(f,null,2);return c.jsxs(&quot;div&quot;,{children:[c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Subscribe to Events&quot;}),c.jsxs(&quot;div&quot;,{style:{display:&quot;flex&quot;,gap:&quot;10px&quot;,marginBottom:&quot;15px&quot;},children:[c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,style:{flex:1,marginBottom:0},children:[c.jsx(&quot;label&quot;,{children:&quot;Event Name:&quot;}),c.jsxs(&quot;select&quot;,{className:&quot;form-control&quot;,value:o,onChange:f=&gt;a(f.target.value),children:[d.map(f=&gt;c.jsx(&quot;option&quot;,{value:f,children:f},f)),c.jsx(&quot;option&quot;,{value:&quot;custom&quot;,children:&quot;Custom...&quot;})]})]}),o===&quot;custom&quot;&amp;&amp;c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,style:{flex:1,marginBottom:0},children:[c.jsx(&quot;label&quot;,{children:&quot;Custom Event Name:&quot;}),c.jsx(&quot;input&quot;,{className:&quot;form-control&quot;,type:&quot;text&quot;,value:s,onChange:f=&gt;l(f.target.value),placeholder:&quot;Enter event name...&quot;,onKeyDown:f=&gt;{f.key===&quot;Enter&quot;&amp;&amp;y()}})]}),c.jsx(&quot;div&quot;,{style:{display:&quot;flex&quot;,alignItems:&quot;flex-end&quot;},children:c.jsx(&quot;button&quot;,{className:&quot;btn btn-primary&quot;,onClick:y,disabled:o===&quot;custom&quot;&amp;&amp;!s.trim(),children:&quot;Subscribe&quot;})})]})]}),c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsxs(&quot;h3&quot;,{children:[&quot;Active Subscriptions (&quot;,t.size,&quot;)&quot;]}),t.size===0?c.jsx(&quot;div&quot;,{style:{textAlign:&quot;center&quot;,color:&quot;var(--text-secondary)&quot;,padding:&quot;20px&quot;},children:&quot;No active subscriptions&quot;}):c.jsx(&quot;div&quot;,{style:{display:&quot;flex&quot;,flexWrap:&quot;wrap&quot;,gap:&quot;8px&quot;},children:Array.from(t.values()).map(f=&gt;c.jsxs(&quot;div&quot;,{style:{display:&quot;flex&quot;,alignItems:&quot;center&quot;,gap:&quot;8px&quot;,background:&quot;var(--bg-tertiary)&quot;,border:&quot;1px solid var(--border-secondary)&quot;,borderRadius:&quot;20px&quot;,padding:&quot;6px 12px&quot;,fontSize:&quot;14px&quot;},children:[c.jsx(&quot;span&quot;,{style:{fontFamily:&quot;monospace&quot;},children:f.eventName}),c.jsx(&quot;button&quot;,{onClick:()=&gt;v(f.eventName),style:{background:&quot;none&quot;,border:&quot;none&quot;,color:&quot;var(--danger-color)&quot;,cursor:&quot;pointer&quot;,fontSize:&quot;16px&quot;,padding:0,lineHeight:1,width:&quot;16px&quot;,height:&quot;16px&quot;,display:&quot;flex&quot;,alignItems:&quot;center&quot;,justifyContent:&quot;center&quot;},title:&quot;Unsubscribe&quot;,children:&quot;×&quot;})]},f.eventName))})]}),c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsxs(&quot;h3&quot;,{children:[&quot;Event History (&quot;,i.length,&quot; events)&quot;]}),c.jsx(&quot;div&quot;,{style:{marginBottom:&quot;15px&quot;},children:c.jsxs(&quot;button&quot;,{className:&quot;btn&quot;,onClick:E,children:[&quot;Clear (&quot;,i.length,&quot;)&quot;]})}),i.length===0?c.jsx(&quot;div&quot;,{style:{textAlign:&quot;center&quot;,color:&quot;var(--text-secondary)&quot;,padding:&quot;20px&quot;},children:&quot;No events received yet&quot;}):c.jsx(&quot;div&quot;,{className:&quot;event-list&quot;,children:i.map(f=&gt;c.jsxs(&quot;div&quot;,{className:&quot;event-item&quot;,children:[c.jsx(&quot;span&quot;,{className:&quot;timestamp&quot;,children:N(f.timestamp)}),c.jsx(&quot;span&quot;,{className:&quot;name&quot;,children:f.name}),c.jsx(&quot;div&quot;,{style:{marginTop:&quot;5px&quot;},children:p(f.data)})]},f.id))})]})]})}function _4({state:e,actorHandle:t}){const[n,i]=q.useState(&quot;&quot;),[r,o]=q.useState(&quot;5000&quot;),[a,s]=q.useState(&quot;{}&quot;),[l,u]=q.useState(&quot;&quot;),[d,h]=q.useState(!1),[g,v]=q.useState([]),y=()=&gt;{const x=new Date,T=x.getTimezoneOffset()*6e4;return new Date(x.getTime()-T).toISOString().slice(0,16)},E=x=&gt;{try{return JSON.parse(x)}catch{return{}}},N=async(x,T)=&gt;await t[x](...T),p=async()=&gt;{if(n){h(!0),u(&quot;&quot;);try{const x=new Date(n).getTime(),T=E(a),Z=await N(&quot;scheduleAlarmAt&quot;,[x,T]);u(JSON.stringify(Z,null,2)),v(A=&gt;[...A,{id:Z.id,scheduledFor:Z.scheduledFor,data:T,status:&quot;scheduled&quot;}])}catch(x){u(`Error: ${x instanceof Error?x.message:String(x)}`)}finally{h(!1)}}},f=async()=&gt;{const x=parseInt(r);if(!(isNaN(x)||x&lt;0)){h(!0),u(&quot;&quot;);try{const T=E(a),Z=await N(&quot;scheduleAlarmAfter&quot;,[x,T]);u(JSON.stringify(Z,null,2)),v(A=&gt;[...A,{id:Z.id,scheduledFor:Z.scheduledFor,data:T,status:&quot;scheduled&quot;}])}catch(T){u(`Error: ${T instanceof Error?T.message:String(T)}`)}finally{h(!1)}}},m=async()=&gt;{h(!0),u(&quot;&quot;);try{const x=await N(&quot;getAlarmHistory&quot;,[]);u(JSON.stringify(x,null,2));const T=x.map(Z=&gt;Z.id);v(Z=&gt;Z.map(A=&gt;({...A,status:T.includes(A.id)?&quot;triggered&quot;:A.status})))}catch(x){u(`Error: ${x instanceof Error?x.message:String(x)}`)}finally{h(!1)}},k=async()=&gt;{h(!0),u(&quot;&quot;);try{const x=await N(&quot;clearAlarmHistory&quot;,[]);u(JSON.stringify(x,null,2)),v([])}catch(x){u(`Error: ${x instanceof Error?x.message:String(x)}`)}finally{h(!1)}},$=x=&gt;new Date(x).toLocaleString();return e.actorName!==&quot;demo&quot;?c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Scheduling&quot;}),c.jsxs(&quot;p&quot;,{children:[&quot;Scheduling features are only available for the &quot;,c.jsx(&quot;code&quot;,{children:&quot;demo&quot;}),&quot; actor. Please select the demo actor in the header.&quot;]})]}):c.jsxs(&quot;div&quot;,{children:[c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Schedule Alarm At Specific Time&quot;}),c.jsxs(&quot;div&quot;,{className:&quot;form-grid&quot;,children:[c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Timestamp:&quot;}),c.jsx(&quot;input&quot;,{className:&quot;form-control&quot;,type:&quot;datetime-local&quot;,value:n,onChange:x=&gt;i(x.target.value),min:y()})]}),c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Alarm Data (JSON):&quot;}),c.jsx(&quot;input&quot;,{className:&quot;form-control&quot;,type:&quot;text&quot;,value:a,onChange:x=&gt;s(x.target.value),placeholder:&#39;{&quot;message&quot;: &quot;Hello&quot;}&#39;})]}),c.jsx(&quot;button&quot;,{className:&quot;btn btn-primary&quot;,onClick:p,disabled:d||!n,children:&quot;schedule.at()&quot;})]})]}),c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Schedule Alarm After Delay&quot;}),c.jsxs(&quot;div&quot;,{className:&quot;form-grid&quot;,children:[c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Delay (ms):&quot;}),c.jsx(&quot;input&quot;,{className:&quot;form-control&quot;,type:&quot;number&quot;,value:r,onChange:x=&gt;o(x.target.value),min:&quot;0&quot;,step:&quot;1000&quot;})]}),c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Alarm Data (JSON):&quot;}),c.jsx(&quot;input&quot;,{className:&quot;form-control&quot;,type:&quot;text&quot;,value:a,onChange:x=&gt;s(x.target.value),placeholder:&#39;{&quot;message&quot;: &quot;Hello&quot;}&#39;})]}),c.jsx(&quot;button&quot;,{className:&quot;btn btn-primary&quot;,onClick:f,disabled:d,children:&quot;schedule.after()&quot;})]})]}),c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Alarm Management&quot;}),c.jsxs(&quot;div&quot;,{style:{display:&quot;flex&quot;,gap:&quot;10px&quot;,marginBottom:&quot;15px&quot;},children:[c.jsx(&quot;button&quot;,{className:&quot;btn&quot;,onClick:m,disabled:d,children:&quot;Get Alarm History&quot;}),c.jsx(&quot;button&quot;,{className:&quot;btn&quot;,onClick:k,disabled:d,children:&quot;Clear History&quot;})]}),g.length&gt;0&amp;&amp;c.jsxs(&quot;div&quot;,{children:[c.jsx(&quot;h4&quot;,{children:&quot;Scheduled Alarms&quot;}),c.jsx(&quot;div&quot;,{style:{marginBottom:&quot;15px&quot;},children:g.map(x=&gt;c.jsxs(&quot;div&quot;,{style:{padding:&quot;10px&quot;,border:&quot;1px solid #ddd&quot;,borderRadius:&quot;4px&quot;,marginBottom:&quot;5px&quot;,background:x.status===&quot;triggered&quot;?&quot;#d4edda&quot;:&quot;#fff3cd&quot;},children:[c.jsx(&quot;strong&quot;,{children:x.id}),&quot; - &quot;,x.status===&quot;triggered&quot;?&quot;✅ Triggered&quot;:&quot;⏰ Scheduled&quot;,c.jsx(&quot;br&quot;,{}),&quot;Scheduled for: &quot;,$(x.scheduledFor),x.data&amp;&amp;Object.keys(x.data).length&gt;0&amp;&amp;c.jsxs(c.Fragment,{children:[c.jsx(&quot;br&quot;,{}),&quot;Data: &quot;,JSON.stringify(x.data)]})]},x.id))})]}),l&amp;&amp;c.jsx(&quot;div&quot;,{className:&quot;response&quot;,children:l})]})]})}function w4({state:e,actorHandle:t}){const[n,i]=q.useState(&quot;&quot;),[r,o]=q.useState(!1),a=async(u,d=[])=&gt;await t[u](...d),s=async()=&gt;{o(!0),i(&quot;&quot;);try{const u=await a(&quot;triggerSleep&quot;);i(JSON.stringify(u,null,2))}catch(u){i(`Error: ${u instanceof Error?u.message:String(u)}`)}finally{o(!1)}},l=async()=&gt;{o(!0),i(&quot;&quot;);try{const u=await a(&quot;getLifecycleInfo&quot;);i(JSON.stringify(u,null,2))}catch(u){i(`Error: ${u instanceof Error?u.message:String(u)}`)}finally{o(!1)}};return e.actorName!==&quot;demo&quot;?c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Sleep &amp; Lifecycle&quot;}),c.jsxs(&quot;p&quot;,{children:[&quot;Sleep and lifecycle features are only available for the &quot;,c.jsx(&quot;code&quot;,{children:&quot;demo&quot;}),&quot; actor. Please select the demo actor in the header.&quot;]})]}):c.jsxs(&quot;div&quot;,{children:[c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Force Sleep&quot;}),c.jsxs(&quot;p&quot;,{style:{marginBottom:&quot;15px&quot;},children:[&quot;The &quot;,c.jsx(&quot;code&quot;,{children:&quot;sleep()&quot;}),&quot; method forces an actor to go dormant immediately. This is useful for testing actor lifecycle and persistence.&quot;]}),c.jsx(&quot;button&quot;,{className:&quot;btn btn-primary&quot;,onClick:s,disabled:r,children:r?&quot;Triggering...&quot;:&quot;Trigger Sleep&quot;})]}),c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Lifecycle Information&quot;}),c.jsx(&quot;p&quot;,{style:{marginBottom:&quot;15px&quot;},children:&quot;View how many times the actor has been started and stopped. This demonstrates the actor lifecycle across sleep/wake cycles.&quot;}),c.jsx(&quot;button&quot;,{className:&quot;btn&quot;,onClick:l,disabled:r,children:&quot;Get Lifecycle Info&quot;})]}),n&amp;&amp;c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Response&quot;}),c.jsx(&quot;div&quot;,{className:&quot;response&quot;,children:n})]})]})}function k4({state:e}){const[t,n]=q.useState(&quot;GET&quot;),[i,r]=q.useState(&quot;/api/hello&quot;),[o,a]=q.useState(&quot;{}&quot;),[s,l]=q.useState(&quot;&quot;),[u,d]=q.useState(&quot;&quot;),[h,g]=q.useState(!1),v=m=&gt;{try{return JSON.parse(m)}catch{return{}}},y=()=&gt;{const m=&quot;http://localhost:8080&quot;,k=e.actorKey?`/actors/${e.actorName}/${encodeURIComponent(e.actorKey)}`:`/actors/${e.actorName}`;return`${m}${k}`},E=async()=&gt;{g(!0),d(&quot;&quot;);try{const m=`${y()}${i}`,k=v(o),$={method:t,headers:{&quot;Content-Type&quot;:&quot;application/json&quot;,...k}};t!==&quot;GET&quot;&amp;&amp;t!==&quot;HEAD&quot;&amp;&amp;s&amp;&amp;($.body=s);const x=Date.now(),T=await fetch(m,$),Z=Date.now(),A=Object.fromEntries(T.headers.entries()),H=await T.text(),re={status:T.status,statusText:T.statusText,duration:`${Z-x}ms`,headers:A,body:H,url:m};d(JSON.stringify(re,null,2))}catch(m){d(`Error: ${m instanceof Error?m.message:String(m)}`)}finally{g(!1)}},N=[&quot;/api/hello&quot;,&quot;/api/echo&quot;,&quot;/api/stats&quot;,&quot;/api/headers&quot;,&quot;/api/json&quot;,&quot;/api/custom?param=value&quot;],p=[{name:&quot;Get Hello&quot;,method:&quot;GET&quot;,path:&quot;/api/hello&quot;,headers:&quot;{}&quot;,body:&quot;&quot;},{name:&quot;Echo POST&quot;,method:&quot;POST&quot;,path:&quot;/api/echo&quot;,headers:&#39;{&quot;Content-Type&quot;: &quot;text/plain&quot;}&#39;,body:&quot;Hello from client!&quot;},{name:&quot;JSON POST&quot;,method:&quot;POST&quot;,path:&quot;/api/json&quot;,headers:&#39;{&quot;Content-Type&quot;: &quot;application/json&quot;}&#39;,body:&#39;{&quot;message&quot;: &quot;Hello&quot;, &quot;timestamp&quot;: 1234567890}&#39;},{name:&quot;Get Stats&quot;,method:&quot;GET&quot;,path:&quot;/api/stats&quot;,headers:&quot;{}&quot;,body:&quot;&quot;}],f=m=&gt;{n(m.method),r(m.path),a(m.headers),l(m.body)};return c.jsxs(&quot;div&quot;,{children:[c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Raw HTTP Request Builder&quot;}),c.jsxs(&quot;div&quot;,{className:&quot;form-grid&quot;,children:[c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Method:&quot;}),c.jsxs(&quot;select&quot;,{className:&quot;form-control&quot;,value:t,onChange:m=&gt;n(m.target.value),children:[c.jsx(&quot;option&quot;,{value:&quot;GET&quot;,children:&quot;GET&quot;}),c.jsx(&quot;option&quot;,{value:&quot;POST&quot;,children:&quot;POST&quot;}),c.jsx(&quot;option&quot;,{value:&quot;PUT&quot;,children:&quot;PUT&quot;}),c.jsx(&quot;option&quot;,{value:&quot;DELETE&quot;,children:&quot;DELETE&quot;}),c.jsx(&quot;option&quot;,{value:&quot;PATCH&quot;,children:&quot;PATCH&quot;}),c.jsx(&quot;option&quot;,{value:&quot;HEAD&quot;,children:&quot;HEAD&quot;})]})]}),c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,children:[c.jsx(&quot;label&quot;,{children:&quot;Path:&quot;}),c.jsx(&quot;select&quot;,{className:&quot;form-control&quot;,value:i,onChange:m=&gt;r(m.target.value),children:N.map(m=&gt;c.jsx(&quot;option&quot;,{value:m,children:m},m))})]})]}),c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,style:{marginBottom:&quot;15px&quot;},children:[c.jsx(&quot;label&quot;,{children:&quot;Custom Path:&quot;}),c.jsx(&quot;input&quot;,{className:&quot;form-control&quot;,type:&quot;text&quot;,value:i,onChange:m=&gt;r(m.target.value),placeholder:&quot;/api/custom&quot;})]}),c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,style:{marginBottom:&quot;15px&quot;},children:[c.jsx(&quot;label&quot;,{children:&quot;Headers (JSON):&quot;}),c.jsx(&quot;textarea&quot;,{className:&quot;form-control textarea&quot;,value:o,onChange:m=&gt;a(m.target.value),placeholder:&#39;{&quot;Content-Type&quot;: &quot;application/json&quot;}&#39;,rows:3})]}),t!==&quot;GET&quot;&amp;&amp;t!==&quot;HEAD&quot;&amp;&amp;c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,style:{marginBottom:&quot;15px&quot;},children:[c.jsx(&quot;label&quot;,{children:&quot;Body:&quot;}),c.jsx(&quot;textarea&quot;,{className:&quot;form-control textarea&quot;,value:s,onChange:m=&gt;l(m.target.value),placeholder:&quot;Request body...&quot;,rows:4})]}),c.jsx(&quot;div&quot;,{style:{marginBottom:&quot;15px&quot;},children:c.jsx(&quot;button&quot;,{className:&quot;btn btn-primary&quot;,onClick:E,disabled:h,children:h?&quot;Sending...&quot;:&quot;Send Request&quot;})}),c.jsxs(&quot;div&quot;,{style:{background:&quot;var(--bg-tertiary)&quot;,border:&quot;1px solid var(--border-secondary)&quot;,borderRadius:&quot;4px&quot;,padding:&quot;10px&quot;,marginBottom:&quot;15px&quot;,fontSize:&quot;13px&quot;},children:[c.jsx(&quot;strong&quot;,{children:&quot;Target URL:&quot;}),&quot; &quot;,c.jsxs(&quot;code&quot;,{children:[y(),i]})]})]}),c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Example Requests&quot;}),c.jsx(&quot;div&quot;,{style:{display:&quot;flex&quot;,gap:&quot;10px&quot;,flexWrap:&quot;wrap&quot;,marginBottom:&quot;15px&quot;},children:p.map(m=&gt;c.jsx(&quot;button&quot;,{className:&quot;btn&quot;,onClick:()=&gt;f(m),style:{fontSize:&quot;12px&quot;},children:m.name},m.name))})]}),u&amp;&amp;c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Response&quot;}),c.jsx(&quot;div&quot;,{className:&quot;response&quot;,children:u})]})]})}function x4({state:e}){const[t,n]=q.useState(&#39;{&quot;type&quot;: &quot;ping&quot;, &quot;timestamp&quot;: 0}&#39;),[i,r]=q.useState(!1),[o,a]=q.useState([]),[s,l]=q.useState(!1),[u,d]=q.useState(&quot;disconnected&quot;),[h,g]=q.useState(&quot;&quot;),v=q.useRef(null),y=q.useRef(0),E=()=&gt;{const A=window.location.protocol===&quot;https:&quot;?&quot;wss:&quot;:&quot;ws:&quot;,H=e.actorKey?`/actors/${e.actorName}/${encodeURIComponent(e.actorKey)}/ws`:`/actors/${e.actorName}/ws`;return`${A}//localhost:8080${H}`},N=(A,H,re=!1)=&gt;{const je={id:`msg-${++y.current}`,type:A,data:H,timestamp:Date.now(),isBinary:re};a(b=&gt;[...b,je].slice(-50))},p=()=&gt;{var A;if(((A=v.current)==null?void 0:A.readyState)!==WebSocket.OPEN){d(&quot;connecting&quot;),g(&quot;&quot;);try{const H=new WebSocket(E());v.current=H,H.onopen=()=&gt;{l(!0),d(&quot;connected&quot;),N(&quot;received&quot;,&quot;WebSocket connected&quot;,!1)},H.onmessage=re=&gt;{const je=re.data;if(je instanceof ArrayBuffer||je instanceof Blob)if(je instanceof Blob)je.arrayBuffer().then(W=&gt;{const P=new Uint8Array(W),D=Array.from(P).map(U=&gt;U.toString(16).padStart(2,&quot;0&quot;)).join(&quot; &quot;);N(&quot;received&quot;,`[Binary: ${P.length} bytes] ${D}`,!0)});else{const W=new Uint8Array(je),P=Array.from(W).map(D=&gt;D.toString(16).padStart(2,&quot;0&quot;)).join(&quot; &quot;);N(&quot;received&quot;,`[Binary: ${W.length} bytes] ${P}`,!0)}else N(&quot;received&quot;,String(je),!1)},H.onclose=re=&gt;{l(!1),d(&quot;disconnected&quot;),N(&quot;received&quot;,`WebSocket closed (code: ${re.code}, reason: ${re.reason})`,!1)},H.onerror=()=&gt;{g(&quot;WebSocket error occurred&quot;),N(&quot;received&quot;,&quot;WebSocket error&quot;,!1)}}catch(H){g(H instanceof Error?H.message:&quot;Connection failed&quot;),d(&quot;disconnected&quot;)}}},f=()=&gt;{v.current&amp;&amp;(v.current.close(),v.current=null)},m=()=&gt;{if(!(!v.current||v.current.readyState!==WebSocket.OPEN))try{if(i){const A=t.replace(/\s/g,&quot;&quot;),H=new Uint8Array(A.length/2);for(let re=0;re&lt;A.length;re+=2)H[re/2]=parseInt(A.substr(re,2),16);v.current.send(H),N(&quot;sent&quot;,`[Binary: ${H.length} bytes] ${A}`,!0)}else v.current.send(t),N(&quot;sent&quot;,t,!1)}catch(A){N(&quot;received&quot;,`Send error: ${A instanceof Error?A.message:String(A)}`,!1)}},k=()=&gt;{a([])},$=A=&gt;new Date(A).toLocaleTimeString(),x=()=&gt;{if(t.includes(&#39;&quot;timestamp&quot;&#39;))try{const A=JSON.parse(t);A.timestamp=Date.now(),n(JSON.stringify(A,null,2))}catch{}},T=[{name:&quot;Ping&quot;,data:&#39;{&quot;type&quot;: &quot;ping&quot;, &quot;timestamp&quot;: 0}&#39;,binary:!1},{name:&quot;Echo&quot;,data:&#39;{&quot;type&quot;: &quot;echo&quot;, &quot;message&quot;: &quot;Hello WebSocket!&quot;}&#39;,binary:!1},{name:&quot;Get Stats&quot;,data:&#39;{&quot;type&quot;: &quot;getStats&quot;}&#39;,binary:!1},{name:&quot;Binary Data&quot;,data:&quot;48 65 6c 6c 6f&quot;,binary:!0}],Z=A=&gt;{if(A.name===&quot;Ping&quot;){const H=JSON.parse(A.data);H.timestamp=Date.now(),n(JSON.stringify(H,null,2))}else n(A.data);r(A.binary)};return q.useEffect(()=&gt;()=&gt;{f()},[]),c.jsxs(&quot;div&quot;,{children:[c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;WebSocket Connection&quot;}),c.jsxs(&quot;div&quot;,{style:{marginBottom:&quot;15px&quot;},children:[c.jsxs(&quot;div&quot;,{style:{padding:&quot;10px&quot;,border:&quot;1px solid #ddd&quot;,borderRadius:&quot;4px&quot;,background:s?&quot;#d4edda&quot;:&quot;#f8d7da&quot;,color:s?&quot;#155724&quot;:&quot;#721c24&quot;,marginBottom:&quot;10px&quot;},children:[&quot;Status: &quot;,u===&quot;connecting&quot;?&quot;🟡 Connecting...&quot;:s?&quot;🟢 Connected&quot;:&quot;🔴 Disconnected&quot;,h&amp;&amp;` - ${h}`]}),c.jsxs(&quot;div&quot;,{style:{fontSize:&quot;13px&quot;,color:&quot;#666&quot;,marginBottom:&quot;10px&quot;},children:[&quot;Target: &quot;,c.jsx(&quot;code&quot;,{children:E()})]}),c.jsxs(&quot;div&quot;,{style:{display:&quot;flex&quot;,gap:&quot;10px&quot;},children:[c.jsx(&quot;button&quot;,{className:&quot;btn btn-primary&quot;,onClick:p,disabled:s||u===&quot;connecting&quot;,children:&quot;Connect&quot;}),c.jsx(&quot;button&quot;,{className:&quot;btn&quot;,onClick:f,disabled:!s,children:&quot;Disconnect&quot;})]})]})]}),c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Send Message&quot;}),c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,style:{marginBottom:&quot;15px&quot;},children:[c.jsx(&quot;label&quot;,{children:&quot;Message Type:&quot;}),c.jsxs(&quot;div&quot;,{className:&quot;toggle&quot;,children:[c.jsx(&quot;button&quot;,{className:i?&quot;&quot;:&quot;active&quot;,onClick:()=&gt;r(!1),children:&quot;Text/JSON&quot;}),c.jsx(&quot;button&quot;,{className:i?&quot;active&quot;:&quot;&quot;,onClick:()=&gt;r(!0),children:&quot;Binary (Hex)&quot;})]})]}),c.jsxs(&quot;div&quot;,{className:&quot;form-group&quot;,style:{marginBottom:&quot;15px&quot;},children:[c.jsx(&quot;label&quot;,{children:i?&quot;Binary Data (Hex):&quot;:&quot;Message (Text/JSON):&quot;}),c.jsx(&quot;textarea&quot;,{className:&quot;form-control textarea&quot;,value:t,onChange:A=&gt;n(A.target.value),placeholder:i?&quot;48 65 6c 6c 6f (Hello in hex)&quot;:&#39;{&quot;type&quot;: &quot;ping&quot;}&#39;,rows:4})]}),c.jsxs(&quot;div&quot;,{style:{display:&quot;flex&quot;,gap:&quot;10px&quot;,marginBottom:&quot;15px&quot;},children:[c.jsx(&quot;button&quot;,{className:&quot;btn btn-primary&quot;,onClick:m,disabled:!s||!t.trim(),children:&quot;Send&quot;}),!i&amp;&amp;t.includes(&#39;&quot;timestamp&quot;&#39;)&amp;&amp;c.jsx(&quot;button&quot;,{className:&quot;btn&quot;,onClick:x,children:&quot;Update Timestamp&quot;})]}),c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h4&quot;,{children:&quot;Example Messages&quot;}),c.jsx(&quot;div&quot;,{style:{display:&quot;flex&quot;,gap:&quot;10px&quot;,flexWrap:&quot;wrap&quot;},children:T.map(A=&gt;c.jsx(&quot;button&quot;,{className:&quot;btn&quot;,onClick:()=&gt;Z(A),style:{fontSize:&quot;12px&quot;},children:A.name},A.name))})]})]}),c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsxs(&quot;h3&quot;,{children:[&quot;Message History (&quot;,o.length,&quot;)&quot;]}),c.jsx(&quot;div&quot;,{style:{marginBottom:&quot;15px&quot;},children:c.jsx(&quot;button&quot;,{className:&quot;btn&quot;,onClick:k,children:&quot;Clear History&quot;})}),o.length===0?c.jsx(&quot;div&quot;,{style:{textAlign:&quot;center&quot;,color:&quot;#666&quot;,padding:&quot;20px&quot;},children:&quot;No messages yet. Connect and send a message to see the conversation.&quot;}):c.jsx(&quot;div&quot;,{className:&quot;event-list&quot;,children:o.map(A=&gt;c.jsxs(&quot;div&quot;,{className:&quot;event-item&quot;,children:[c.jsx(&quot;span&quot;,{className:&quot;timestamp&quot;,children:$(A.timestamp)}),c.jsxs(&quot;span&quot;,{className:`name ${A.type===&quot;sent&quot;?&quot;sent&quot;:&quot;received&quot;}`,children:[A.type===&quot;sent&quot;?&quot;→ SENT&quot;:&quot;← RECEIVED&quot;,A.isBinary&amp;&amp;&quot; (BINARY)&quot;]}),c.jsx(&quot;div&quot;,{style:{marginTop:&quot;5px&quot;,color:&quot;#333&quot;,fontFamily:&quot;monospace&quot;,fontSize:&quot;12px&quot;},children:A.data})]},A.id))})]})]})}function b4({state:e,actorHandle:t}){const[n,i]=q.useState(null),[r,o]=q.useState(null),[a,s]=q.useState(null),[l,u]=q.useState({metadata:!1,actorState:!1,connState:!1}),d=async(y,E=[])=&gt;await t[y](...E),h=async()=&gt;{u(y=&gt;({...y,metadata:!0})),i(null);try{const y=await d(&quot;getMetadata&quot;);i(y)}catch(y){i({error:y instanceof Error?y.message:String(y)})}finally{u(y=&gt;({...y,metadata:!1}))}},g=async()=&gt;{u(y=&gt;({...y,actorState:!0})),o(null);try{const y=await d(&quot;getActorState&quot;);o(y)}catch(y){o({error:y instanceof Error?y.message:String(y)})}finally{u(y=&gt;({...y,actorState:!1}))}},v=async()=&gt;{u(y=&gt;({...y,connState:!0})),s(null);try{const y=await d(&quot;getConnState&quot;);s(y)}catch(y){s({error:y instanceof Error?y.message:String(y)})}finally{u(y=&gt;({...y,connState:!1}))}};return e.actorName!==&quot;demo&quot;?c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Metadata&quot;}),c.jsxs(&quot;p&quot;,{children:[&quot;Metadata features are only available for the &quot;,c.jsx(&quot;code&quot;,{children:&quot;demo&quot;}),&quot; actor. Please select the demo actor in the header.&quot;]})]}):c.jsxs(&quot;div&quot;,{children:[c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Actor Metadata&quot;}),c.jsx(&quot;p&quot;,{style:{marginBottom:&quot;15px&quot;},children:&quot;Actors can access metadata about themselves including their name, tags, and region. This information is useful for logging, monitoring, and conditional behavior.&quot;}),c.jsx(&quot;button&quot;,{className:&quot;btn btn-primary&quot;,onClick:h,disabled:l.metadata,children:l.metadata?&quot;Loading...&quot;:&quot;Get Metadata&quot;}),n&amp;&amp;c.jsx(&quot;div&quot;,{className:&quot;response&quot;,children:c.jsx(&quot;pre&quot;,{style:{margin:0,fontSize:&quot;13px&quot;,overflow:&quot;auto&quot;},children:JSON.stringify(n,null,2)})})]}),c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Actor State&quot;}),c.jsx(&quot;p&quot;,{style:{marginBottom:&quot;15px&quot;},children:&quot;Current state of the actor. This state is shared across all connections to the actor.&quot;}),c.jsx(&quot;button&quot;,{className:&quot;btn btn-primary&quot;,onClick:g,disabled:l.actorState,children:l.actorState?&quot;Loading...&quot;:&quot;Get Actor State&quot;}),r&amp;&amp;c.jsx(&quot;div&quot;,{className:&quot;response&quot;,children:c.jsx(&quot;pre&quot;,{style:{margin:0,fontSize:&quot;13px&quot;,overflow:&quot;auto&quot;},children:JSON.stringify(r,null,2)})})]}),c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Connection State&quot;}),c.jsx(&quot;p&quot;,{style:{marginBottom:&quot;15px&quot;},children:&quot;State specific to the current connection. Each connection has its own isolated state.&quot;}),c.jsx(&quot;button&quot;,{className:&quot;btn btn-primary&quot;,onClick:v,disabled:l.connState,children:l.connState?&quot;Loading...&quot;:&quot;Get Connection State&quot;}),a&amp;&amp;c.jsx(&quot;div&quot;,{className:&quot;response&quot;,children:c.jsx(&quot;pre&quot;,{style:{margin:0,fontSize:&quot;13px&quot;,overflow:&quot;auto&quot;},children:JSON.stringify(a,null,2)})})]})]})}function S4({state:e,actorHandle:t}){const[n,i]=q.useState(null),[r,o]=q.useState([]),[a,s]=q.useState(!1);q.useEffect(()=&gt;{t&amp;&amp;e.connectionMode===&quot;connection&quot;?i({isConnected:!0,connectionId:t.connectionId||&quot;N/A&quot;,transport:e.transport,encoding:e.encoding,actorName:e.actorName,actorKey:e.actorKey,actorId:e.actorId,lastActivity:Date.now()}):i(null)},[t,e]);const l=d=&gt;new Date(d).toLocaleString(),u=async()=&gt;{s(!0);try{const d=await t.listConnections();o(d)}catch(d){console.error(&quot;Failed to list connections:&quot;,d),alert(`Failed to list connections: ${d instanceof Error?d.message:String(d)}`)}finally{s(!1)}};return e.actorName!==&quot;demo&quot;?c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Connections&quot;}),c.jsxs(&quot;p&quot;,{children:[&quot;Connection features are only available for the &quot;,c.jsx(&quot;code&quot;,{children:&quot;demo&quot;}),&quot; actor. Please select the demo actor in the header.&quot;]})]}):c.jsxs(&quot;div&quot;,{children:[e.connectionMode===&quot;connection&quot;&amp;&amp;c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;Current Connection&quot;}),n?c.jsxs(&quot;div&quot;,{style:{display:&quot;grid&quot;,gridTemplateColumns:&quot;auto 1fr&quot;,gap:&quot;10px 20px&quot;,alignItems:&quot;center&quot;},children:[c.jsx(&quot;strong&quot;,{children:&quot;Status:&quot;}),c.jsx(&quot;span&quot;,{children:&quot;🟢 Connected&quot;}),c.jsx(&quot;strong&quot;,{children:&quot;Connection ID:&quot;}),c.jsx(&quot;code&quot;,{children:n.connectionId}),c.jsx(&quot;strong&quot;,{children:&quot;Transport:&quot;}),c.jsx(&quot;span&quot;,{children:n.transport.toUpperCase()}),c.jsx(&quot;strong&quot;,{children:&quot;Encoding:&quot;}),c.jsx(&quot;span&quot;,{children:n.encoding.toUpperCase()}),c.jsx(&quot;strong&quot;,{children:&quot;Actor Name:&quot;}),c.jsx(&quot;span&quot;,{children:n.actorName}),c.jsx(&quot;strong&quot;,{children:&quot;Actor Key:&quot;}),c.jsx(&quot;span&quot;,{children:n.actorKey||&quot;(empty)&quot;}),n.actorId&amp;&amp;c.jsxs(c.Fragment,{children:[c.jsx(&quot;strong&quot;,{children:&quot;Actor ID:&quot;}),c.jsx(&quot;code&quot;,{children:n.actorId})]}),c.jsx(&quot;strong&quot;,{children:&quot;Last Activity:&quot;}),c.jsx(&quot;span&quot;,{children:l(n.lastActivity)})]}):c.jsx(&quot;div&quot;,{style:{padding:&quot;20px&quot;,textAlign:&quot;center&quot;,color:&quot;var(--text-secondary)&quot;},children:&quot;No active connection&quot;})]}),c.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[c.jsx(&quot;h3&quot;,{children:&quot;All Connections&quot;}),c.jsx(&quot;p&quot;,{style:{marginBottom:&quot;15px&quot;},children:&quot;List all active connections to this actor instance.&quot;}),c.jsx(&quot;button&quot;,{className:&quot;btn btn-primary&quot;,onClick:u,disabled:a,children:a?&quot;Loading...&quot;:&quot;List All Connections&quot;}),r.length&gt;0&amp;&amp;c.jsx(&quot;div&quot;,{style:{marginTop:&quot;15px&quot;},children:c.jsxs(&quot;table&quot;,{style:{width:&quot;100%&quot;,borderCollapse:&quot;collapse&quot;,fontSize:&quot;14px&quot;},children:[c.jsx(&quot;thead&quot;,{children:c.jsxs(&quot;tr&quot;,{style:{borderBottom:&quot;2px solid #333&quot;},children:[c.jsx(&quot;th&quot;,{style:{padding:&quot;8px&quot;,textAlign:&quot;left&quot;},children:&quot;Connection ID&quot;}),c.jsx(&quot;th&quot;,{style:{padding:&quot;8px&quot;,textAlign:&quot;left&quot;},children:&quot;Connected At&quot;})]})}),c.jsx(&quot;tbody&quot;,{children:r.map(d=&gt;c.jsxs(&quot;tr&quot;,{style:{borderBottom:&quot;1px solid #222&quot;},children:[c.jsx(&quot;td&quot;,{style:{padding:&quot;8px&quot;},children:c.jsx(&quot;code&quot;,{children:d.id})}),c.jsx(&quot;td&quot;,{style:{padding:&quot;8px&quot;},children:d.connectedAt?l(d.connectedAt):&quot;N/A&quot;})]},d.id))})]})})]})]})}function $4({state:e,updateState:t,client:n,actorHandle:i,onDisconnect:r}){var k;const[o,a]=q.useState(&quot;actions&quot;),[s,l]=q.useState(!1),[u,d]=q.useState(new Map),[h,g]=q.useState([]);o===&quot;events&quot;&amp;&amp;e.connectionMode!==&quot;connection&quot;&amp;&amp;a(&quot;actions&quot;);const y=async()=&gt;{l(!0),r(),l(!1)},[E,N]=q.useState(!1),p=async()=&gt;{N(!0);try{const $=e.actorName,x=n[$],T=e.actorKey?[e.actorKey]:[];await x.get(T).dispose(),r()}catch($){console.error(&quot;Failed to dispose actor:&quot;,$),alert(&quot;Failed to dispose actor. See console for details.&quot;)}finally{N(!1)}},f=[{id:&quot;actions&quot;,label:&quot;Actions&quot;,component:Hg,disabled:!1},{id:&quot;events&quot;,label:&quot;Events&quot;,component:Kg,disabled:e.connectionMode!==&quot;connection&quot;},{id:&quot;connections&quot;,label:&quot;Connections&quot;,component:S4,disabled:!1},{id:&quot;schedule&quot;,label:&quot;Schedule&quot;,component:_4,disabled:!1},{id:&quot;sleep&quot;,label:&quot;Sleep&quot;,component:w4,disabled:!1},{id:&quot;raw-http&quot;,label:&quot;Raw HTTP&quot;,component:k4,disabled:!1},{id:&quot;raw-websocket&quot;,label:&quot;Raw WebSocket&quot;,component:x4,disabled:!1},{id:&quot;metadata&quot;,label:&quot;Metadata&quot;,component:b4,disabled:!1}],m=((k=f.find($=&gt;$.id===o))==null?void 0:k.component)||Hg;return c.jsx(&quot;div&quot;,{className:&quot;interaction-modal-overlay&quot;,children:c.jsxs(&quot;div&quot;,{className:&quot;interaction-modal&quot;,children:[c.jsx(&quot;div&quot;,{className:&quot;interaction-header&quot;,children:c.jsxs(&quot;div&quot;,{className:&quot;connection-info&quot;,children:[c.jsxs(&quot;div&quot;,{className:&quot;connection-details&quot;,children:[c.jsx(&quot;h2&quot;,{children:&quot;Connected to Actor&quot;}),c.jsxs(&quot;div&quot;,{className:&quot;connection-meta&quot;,children:[c.jsx(&quot;span&quot;,{className:&quot;actor-name&quot;,children:e.actorName}),e.actorKey&amp;&amp;c.jsxs(&quot;span&quot;,{className:&quot;actor-key&quot;,children:[&quot;#&quot;,e.actorKey]}),c.jsxs(&quot;span&quot;,{className:&quot;transport-info&quot;,children:[e.transport.toUpperCase(),&quot;/&quot;,e.encoding.toUpperCase()]}),c.jsx(&quot;span&quot;,{className:`mode-info ${e.connectionMode}`,children:e.connectionMode===&quot;connection&quot;?&quot;🔗 Connected&quot;:&quot;🔧 Handle&quot;})]})]}),c.jsxs(&quot;div&quot;,{className:&quot;connection-actions&quot;,children:[c.jsx(&quot;button&quot;,{className:&quot;btn&quot;,onClick:p,disabled:E,&quot;aria-busy&quot;:E?&quot;true&quot;:&quot;false&quot;,children:E?&quot;Disposing...&quot;:&quot;Dispose&quot;}),c.jsx(&quot;button&quot;,{className:&quot;btn&quot;,onClick:y,disabled:s,&quot;aria-busy&quot;:s?&quot;true&quot;:&quot;false&quot;,children:s?&quot;Disconnecting...&quot;:&quot;Disconnect&quot;})]})]})}),c.jsxs(&quot;div&quot;,{className:&quot;tabs&quot;,children:[c.jsx(&quot;div&quot;,{className:&quot;tab-list&quot;,children:f.map($=&gt;c.jsx(&quot;button&quot;,{className:`tab-button ${o===$.id?&quot;active&quot;:&quot;&quot;}`,onClick:()=&gt;a($.id),disabled:$.disabled,children:$.label},$.id))}),c.jsx(&quot;div&quot;,{className:&quot;tab-content&quot;,children:o===&quot;events&quot;?c.jsx(Kg,{state:e,updateState:t,client:n,actorHandle:i,eventSubscriptions:u,setEventSubscriptions:d,events:h,setEvents:g}):c.jsx(m,{state:e,updateState:t,client:n,actorHandle:i})})]})]})})}function I4(){const[e,t]=q.useState(null),n=l=&gt;{t(l)},i=()=&gt;{t(null)},r=l=&gt;{t(u=&gt;u?{...u,...l}:null)},o=q.useMemo(()=&gt;e?v4({endpoint:&quot;http://localhost:6420&quot;,encoding:e.encoding,transport:e.transport}):null,[e==null?void 0:e.encoding,e==null?void 0:e.transport]),[a,s]=q.useState(null);return q.useEffect(()=&gt;{if(!e||!o){s(null);return}const l=o[e.actorName],u=e.actorKey?[e.actorKey]:[];(async()=&gt;{let h;switch(e.actorMethod){case&quot;get&quot;:h=l.get(u);break;case&quot;getOrCreate&quot;:{const v=e.createInput?JSON.parse(e.createInput):void 0;h=l.getOrCreate(u,{createWithInput:v});break}case&quot;getForId&quot;:if(!e.actorId)throw new Error(&quot;Actor ID is required for getForId method&quot;);h=l.getForId(e.actorId);break;case&quot;create&quot;:{const v=e.createInput?JSON.parse(e.createInput):void 0;h=await l.create(u,{input:v});break}default:throw new Error(`Unknown actor method: ${e.actorMethod}`)}const g=e.connectionMode===&quot;connection&quot;?h.connect():h;s(g)})()},[e,o]),c.jsxs(&quot;div&quot;,{className:&quot;app&quot;,children:[c.jsx(y4,{onConnect:n}),e&amp;&amp;a&amp;&amp;c.jsx($4,{state:e,updateState:r,client:o,actorHandle:a,onDisconnect:i})]})}pc.createRoot(document.getElementById(&quot;root&quot;)).render(c.jsx(Jb.StrictMode,{children:c.jsx(I4,{})}));
">
<input type="hidden" name="project[files][src/backend/registry.ts]" value="import { setup } from &quot;rivetkit&quot;;
import { demo } from &quot;./actors/demo&quot;;

export const registry = setup({
	use: {
		demo,
	},
});

export type Registry = typeof registry;
">
<input type="hidden" name="project[files][src/backend/server.ts]" value="import { registry } from &quot;./registry&quot;;

registry.start({
	cors: {
		origin: &quot;http://localhost:5173&quot;,
		credentials: true,
	},
});
">
<input type="hidden" name="project[files][src/frontend/App.tsx]" value="import { createClient } from &quot;@rivetkit/react&quot;;
import { useState, useMemo, useEffect } from &quot;react&quot;;
import type { Registry } from &quot;../backend/registry&quot;;
import ConnectionScreen from &quot;./components/ConnectionScreen&quot;;
import InteractionScreen from &quot;./components/InteractionScreen&quot;;

export interface AppState {
  // Configuration
  transport: &quot;websocket&quot; | &quot;sse&quot;;
  encoding: &quot;json&quot; | &quot;cbor&quot; | &quot;bare&quot;;
  connectionMode: &quot;handle&quot; | &quot;connection&quot;;

  // Actor management
  actorMethod: &quot;get&quot; | &quot;getOrCreate&quot; | &quot;getForId&quot; | &quot;create&quot;;
  actorName: string;
  actorKey: string;
  actorId: string;
  actorRegion: string;
  createInput: string;

  // Connection state
  isConnected: boolean;
  connectionError?: string;
}

function App() {
  const [state, setState] = useState&lt;AppState | null&gt;(null);

  const handleConnect = (config: AppState) =&gt; {
    setState(config);
  };

  const handleDisconnect = () =&gt; {
    setState(null);
  };

  const updateState = (updates: Partial&lt;AppState&gt;) =&gt; {
    setState(prev =&gt; prev ? { ...prev, ...updates } : null);
  };

  // Create client with user-selected encoding and transport
  const client = useMemo(() =&gt; {
    if (!state) return null;

    return createClient&lt;Registry&gt;({
      endpoint: &quot;http://localhost:6420&quot;,
      encoding: state.encoding,
      transport: state.transport,
    });
  }, [state?.encoding, state?.transport]);

  // Create the connection/handle once based on state
  const [actorHandle, setActorHandle] = useState&lt;any&gt;(null);

  useEffect(() =&gt; {
    if (!state || !client) {
      setActorHandle(null);
      return;
    }

    const accessor = (client as any)[state.actorName];
    const key = state.actorKey ? [state.actorKey] : [];

    const initHandle = async () =&gt; {
      let baseHandle: any;
      switch (state.actorMethod) {
        case &quot;get&quot;:
          baseHandle = accessor.get(key);
          break;
        case &quot;getOrCreate&quot;: {
          const createInput = state.createInput ? JSON.parse(state.createInput) : undefined;
          baseHandle = accessor.getOrCreate(key, { createWithInput: createInput });
          break;
        }
        case &quot;getForId&quot;:
          if (!state.actorId) {
            throw new Error(&quot;Actor ID is required for getForId method&quot;);
          }
          baseHandle = accessor.getForId(state.actorId);
          break;
        case &quot;create&quot;: {
          const createInput = state.createInput ? JSON.parse(state.createInput) : undefined;
          baseHandle = await accessor.create(key, { input: createInput });
          break;
        }
        default:
          throw new Error(`Unknown actor method: ${state.actorMethod}`);
      }

      // Apply connection mode
      const handle = state.connectionMode === &quot;connection&quot;
        ? baseHandle.connect()
        : baseHandle;

      setActorHandle(handle);
    };

    initHandle();
  }, [state, client]);

  return (
    &lt;div className=&quot;app&quot;&gt;
      &lt;ConnectionScreen onConnect={handleConnect} /&gt;
      {state &amp;&amp; actorHandle &amp;&amp; (
        &lt;InteractionScreen
          state={state}
          updateState={updateState}
          client={client}
          actorHandle={actorHandle}
          onDisconnect={handleDisconnect}
        /&gt;
      )}
    &lt;/div&gt;
  );
}

export default App;
">
<input type="hidden" name="project[files][src/frontend/index.css]" value="* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, &#39;Segoe UI&#39;, &#39;Inter&#39;, Roboto, sans-serif;
  background: #000000;
  color: #ffffff;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #007aff;
  --primary-hover: #0056cc;
  --primary-light: rgba(0, 122, 255, 0.1);
  --success-color: #30d158;
  --success-light: rgba(48, 209, 88, 0.1);
  --danger-color: #ff3b30;
  --danger-light: rgba(255, 59, 48, 0.1);
  --warning-color: #ff9500;
  --warning-light: rgba(255, 149, 0, 0.1);

  --bg-primary: #000000;
  --bg-secondary: #1c1c1e;
  --bg-tertiary: #2c2c2e;
  --bg-quaternary: #3a3a3c;

  --text-primary: #ffffff;
  --text-secondary: #8e8e93;
  --text-tertiary: #64748b;

  --border-primary: #2c2c2e;
  --border-secondary: #3a3a3c;
  --border-tertiary: #48484a;

  --border-radius: 8px;
  --border-radius-sm: 6px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.app {
  display: flex;
  height: 100vh;
  width: 100vw;
  background: var(--bg-primary);
  overflow: hidden;
}

/* Legacy header styles removed - now using ConnectionScreen and InteractionScreen */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-secondary);
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: all 0.2s ease;
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control:hover {
  border-color: var(--border-tertiary);
}

.form-control::placeholder {
  color: var(--text-tertiary);
  opacity: 0.6;
}

.toggle {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-secondary);
  box-shadow: var(--shadow-sm);
}

.toggle button {
  padding: 8px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.toggle button:hover:not(.active) {
  background: var(--bg-quaternary);
  color: var(--text-primary);
}

.toggle button.active {
  background: var(--primary-color);
  color: white;
}

/* New toggle group styling */
.toggle-group {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-secondary);
  padding: 2px;
  gap: 2px;
}

.toggle-button {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  border-radius: calc(var(--border-radius) - 2px);
  text-align: center;
}

.toggle-button:hover:not(.active) {
  background: var(--bg-quaternary);
  color: var(--text-primary);
}

.toggle-button.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 1px 3px rgba(0, 122, 255, 0.3);
}

.btn {
  padding: 10px 20px;
  border: 1px solid var(--border-secondary);
  border-radius: var(--border-radius);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--bg-quaternary);
  border-color: var(--border-tertiary);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger-color);
  color: white;
  border-color: var(--danger-color);
  font-weight: 500;
}

.btn-danger:hover {
  background: #c82333;
  border-color: #c82333;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-secondary);
  font-weight: 500;
}

.btn-secondary:hover {
  background: var(--bg-quaternary);
  border-color: var(--border-tertiary);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  background: var(--bg-quaternary);
  border-color: var(--border-secondary);
  color: var(--text-secondary);
}

.status {
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 10px;
}

.status.connected {
  background: var(--success-light);
  color: #155724;
  border: 1px solid #c3e6cb;
  border-left: 4px solid var(--success-color);
}

.status.disconnected {
  background: var(--danger-light);
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-left: 4px solid var(--danger-color);
}

.tabs {
  background: var(--bg-secondary);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-primary);
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tab-list {
  display: flex;
  border-bottom: 1px solid var(--border-primary);
  overflow-x: auto;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.tab-button {
  padding: 16px 24px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  color: var(--text-secondary);
}

.tab-button:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.tab-button.active {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--primary-light);
}

.tab-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tab-content {
  padding: 20px;
  background: var(--bg-primary);
  flex: 1;
  overflow-y: auto;
}

.section {
  margin-bottom: 32px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
}

.section:last-child {
  margin-bottom: 0;
}

.section h3 {
  margin: -20px -20px 20px -20px;
  padding: 16px 20px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-primary);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.textarea {
  min-height: 80px;
  resize: vertical;
  font-family: &#39;SF Mono&#39;, &#39;Monaco&#39;, &#39;Inconsolata&#39;, &#39;Roboto Mono&#39;, monospace;
  line-height: 1.5;
}

.response {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--border-radius);
  padding: 16px;
  margin-top: 16px;
  font-family: &#39;SF Mono&#39;, &#39;Monaco&#39;, &#39;Inconsolata&#39;, &#39;Roboto Mono&#39;, monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  color: var(--text-primary);
}

.event-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border-secondary);
  border-radius: var(--border-radius);
  background: var(--bg-tertiary);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.event-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-primary);
  font-family: &#39;SF Mono&#39;, &#39;Monaco&#39;, &#39;Inconsolata&#39;, &#39;Roboto Mono&#39;, monospace;
  font-size: 13px;
  line-height: 1.4;
  transition: background-color 0.2s ease;
  color: var(--text-primary);
}

.event-item:last-child {
  border-bottom: none;
}

.event-item:hover {
  background: var(--bg-secondary);
}

.event-item .timestamp {
  color: var(--text-secondary);
  margin-right: 12px;
  font-size: 12px;
}

.event-item .name {
  color: var(--primary-color);
  font-weight: 600;
  margin-right: 12px;
}

.event-item .name.sent {
  color: var(--success-color);
}

.event-item .name.received {
  color: var(--primary-color);
}

.disabled-content {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(20%);
}

/* Modern scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-quaternary);
  border-radius: 3px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-tertiary);
}

/* Modern focus ring */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .app {
    padding: 16px;
  }

  .form-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .form-group label {
    min-width: auto;
  }

  .tab-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .section {
    padding: 16px;
    margin-bottom: 24px;
  }

  .section h3 {
    margin: -16px -16px 16px -16px;
    padding: 12px 16px;
  }
}

/* Enhanced form controls and visual elements */
select.form-control {
  background-image: url(&quot;data:image/svg+xml,%3csvg xmlns=&#39;http://www.w3.org/2000/svg&#39; fill=&#39;none&#39; viewBox=&#39;0 0 20 20&#39;%3e%3cpath stroke=&#39;%236b7280&#39; stroke-linecap=&#39;round&#39; stroke-linejoin=&#39;round&#39; stroke-width=&#39;1.5&#39; d=&#39;m6 8 4 4 4-4&#39;/%3e%3c/svg%3e&quot;);
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  appearance: none;
}

/* Card-like sections with better visual hierarchy */
.section:first-child {
  margin-top: 0;
}

/* Enhanced status indicators */
.status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
}

.status.connected::before {
  content: &#39;🟢&#39;;
  font-size: 12px;
}

.status.disconnected::before {
  content: &#39;🔴&#39;;
  font-size: 12px;
}

/* Modern toggle enhancements */
.toggle button.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.toggle button:hover:not(.active) {
  background: var(--bg-quaternary);
  color: var(--text-primary);
}

/* Enhanced buttons */
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 123, 255, 0.3);
}

.btn-danger:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(220, 53, 69, 0.3);
}

/* Code and monospace improvements */
code {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: &#39;SF Mono&#39;, &#39;Monaco&#39;, &#39;Inconsolata&#39;, &#39;Roboto Mono&#39;, monospace;
  font-size: 0.9em;
}

pre {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  overflow-x: auto;
  font-family: &#39;SF Mono&#39;, &#39;Monaco&#39;, &#39;Inconsolata&#39;, &#39;Roboto Mono&#39;, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Loading states */
.btn[aria-busy=&quot;true&quot;] {
  position: relative;
  color: transparent;
}

.btn[aria-busy=&quot;true&quot;]::after {
  content: &#39;&#39;;
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Form grid improvements */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Connection Screen Styles */
.connection-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  width: 100%;
  height: 100%;
}

.connection-modal {
  max-width: 500px;
  width: 100%;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-primary);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 24px 24px 0 24px;
  text-align: center;
}

.modal-header h1 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-header p {
  margin: 0 0 24px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.modal-content {
  padding: 0 24px 24px 24px;
}

.method-toggle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.method-toggle .toggle-button {
  font-size: 13px;
  padding: 8px 8px;
  white-space: nowrap;
}

.form-section {
  margin-bottom: 24px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section h3 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-primary);
  padding-bottom: 8px;
}

.modal-actions {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-primary);
}

.connect-button {
  font-size: 16px;
  padding: 12px 32px;
  font-weight: 600;
  min-width: 160px;
}

.actor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.actor-actions .btn {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
}

/* Interaction Modal Styles */
.interaction-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
}

.interaction-modal {
  display: flex;
  flex-direction: column;
  width: 90vw;
  max-width: 1400px;
  height: 85vh;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-primary);
  overflow: hidden;
}

.interaction-header {
  background: var(--bg-secondary);
  padding: 20px;
  border-bottom: 1px solid var(--border-primary);
  flex-shrink: 0;
}

.connection-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.connection-details h2 {
  margin: 0 0 8px 0;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
}

.connection-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.actor-name {
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 14px;
}

.actor-key {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 16px;
  font-family: &#39;SF Mono&#39;, &#39;Monaco&#39;, &#39;Inconsolata&#39;, &#39;Roboto Mono&#39;, monospace;
  font-size: 13px;
}

.transport-info {
  background: var(--success-light);
  color: var(--success-color);
  padding: 4px 10px;
  border-radius: 16px;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
}

.mode-info {
  padding: 4px 10px;
  border-radius: 16px;
  font-weight: 500;
  font-size: 13px;
}

.mode-info.connection {
  background: var(--primary-light);
  color: var(--primary-color);
}

.mode-info.handle {
  background: var(--warning-light);
  color: var(--warning-color);
}

.connection-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Mobile responsive adjustments for new screens */
@media (max-width: 768px) {
  .connection-screen {
    padding: 16px;
  }

  .connection-modal {
    max-width: none;
    width: 100%;
    max-height: 95vh;
  }

  .modal-header {
    padding: 20px 20px 0 20px;
  }

  .modal-header h1 {
    font-size: 20px;
  }

  .modal-content {
    padding: 0 20px 20px 20px;
  }

  .form-section {
    margin-bottom: 20px;
  }

  .actor-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .method-toggle {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .method-toggle .toggle-button {
    font-size: 12px;
    padding: 8px 6px;
  }

  .connection-info {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .connection-actions {
    justify-content: center;
  }

  .connection-meta {
    justify-content: center;
  }

  .interaction-modal-overlay {
    padding: 16px;
  }

  .interaction-modal {
    width: 100%;
    height: 90vh;
    max-width: none;
  }
}">
<input type="hidden" name="project[files][src/frontend/main.tsx]" value="import React from &#39;react&#39;
import ReactDOM from &#39;react-dom/client&#39;
import App from &#39;./App.tsx&#39;
import &#39;./index.css&#39;

ReactDOM.createRoot(document.getElementById(&#39;root&#39;)!).render(
  &lt;React.StrictMode&gt;
    &lt;App /&gt;
  &lt;/React.StrictMode&gt;,
)">
<input type="hidden" name="project[files][src/backend/actors/demo.ts]" value="import { actor } from &quot;rivetkit&quot;;
import { handleHttpRequest, httpActions } from &quot;./http&quot;;
import { handleWebSocket, websocketActions } from &quot;./websocket&quot;;

export const demo = actor({
	createState: (_c, input) =&gt; ({
		input,
		count: 0,
		lastMessage: &quot;&quot;,
		alarmHistory: [] as { id: string; time: number; data?: any }[],
		startCount: 0,
		stopCount: 0,
	}),
	connState: {
		connectionTime: 0,
	},
	onStart: (c) =&gt; {
		c.state.startCount += 1;
		c.log.info({ msg: &quot;demo actor started&quot;, startCount: c.state.startCount });
	},
	onStop: (c) =&gt; {
		c.state.stopCount += 1;
		c.log.info({ msg: &quot;demo actor stopped&quot;, stopCount: c.state.stopCount });
	},
	onConnect: (c, conn) =&gt; {
		conn.state.connectionTime = Date.now();
		c.log.info({
			msg: &quot;client connected&quot;,
			connectionTime: conn.state.connectionTime,
		});
	},
	onDisconnect: (c) =&gt; {
		c.log.info(&quot;client disconnected&quot;);
	},
	onFetch: handleHttpRequest,
	onWebSocket: handleWebSocket,
	actions: {
		// Sync actions
		increment: (c, amount: number = 1) =&gt; {
			c.state.count += amount;
			c.broadcast(&quot;countChanged&quot;, { count: c.state.count, amount });
			return c.state.count;
		},
		getCount: (c) =&gt; {
			return c.state.count;
		},
		setMessage: (c, message: string) =&gt; {
			c.state.lastMessage = message;
			c.broadcast(&quot;messageChanged&quot;, { message });
			return message;
		},

		// Async actions
		delayedIncrement: async (c, amount: number = 1, delayMs: number = 1000) =&gt; {
			await new Promise((resolve) =&gt; setTimeout(resolve, delayMs));
			c.state.count += amount;
			c.broadcast(&quot;countChanged&quot;, { count: c.state.count, amount });
			return c.state.count;
		},

		// Promise action
		promiseAction: () =&gt; {
			return Promise.resolve({
				timestamp: Date.now(),
				message: &quot;promise resolved&quot;,
			});
		},

		// State management
		getState: (c) =&gt; {
			return {
				actorState: c.state,
				connectionState: c.conn.state,
			};
		},

		// Scheduling
		scheduleAlarmAt: (c, timestamp: number, data?: any) =&gt; {
			const id = `alarm-${Date.now()}`;
			c.schedule.at(timestamp, &quot;onAlarm&quot;, { id, data });
			return { id, scheduledFor: timestamp };
		},
		scheduleAlarmAfter: (c, delayMs: number, data?: any) =&gt; {
			const id = `alarm-${Date.now()}`;
			c.schedule.after(delayMs, &quot;onAlarm&quot;, { id, data });
			return { id, scheduledFor: Date.now() + delayMs };
		},
		onAlarm: (c, payload: { id: string; data?: any }) =&gt; {
			const alarmEntry = { ...payload, time: Date.now() };
			c.state.alarmHistory.push(alarmEntry);
			c.broadcast(&quot;alarmTriggered&quot;, alarmEntry);
			c.log.info({ msg: &quot;alarm triggered&quot;, ...alarmEntry });
		},
		getAlarmHistory: (c) =&gt; {
			return c.state.alarmHistory;
		},
		clearAlarmHistory: (c) =&gt; {
			c.state.alarmHistory = [];
			return true;
		},

		// Sleep
		triggerSleep: (c) =&gt; {
			c.sleep();
			return &quot;sleep triggered&quot;;
		},

		// Lifecycle info
		getLifecycleInfo: (c) =&gt; {
			return {
				startCount: c.state.startCount,
				stopCount: c.state.stopCount,
			};
		},

		// Metadata
		getMetadata: (c) =&gt; {
			return {
				name: c.name,
			};
		},
		getInput: (c) =&gt; {
			return c.state.input;
		},
		getActorState: (c) =&gt; {
			return c.state;
		},
		getConnState: (c) =&gt; {
			return c.conn.state;
		},

		// Events
		broadcastCustomEvent: (c, eventName: string, data: any) =&gt; {
			c.broadcast(eventName, data);
			return { eventName, data, timestamp: Date.now() };
		},

		// Connections
		listConnections: (c) =&gt; {
			return Array.from(c.conns.values()).map((conn) =&gt; ({
				id: conn.id,
				connectedAt: conn.state.connectionTime,
			}));
		},

		// HTTP actions
		...httpActions,

		// WebSocket actions
		...websocketActions,
	},
	options: {
		sleepTimeout: 2000,
	},
});
">
<input type="hidden" name="project[files][src/backend/actors/http.ts]" value="import type { ActorContext } from &quot;rivetkit&quot;;

export function handleHttpRequest(
	c: ActorContext&lt;any, any, any, any, any, any&gt;,
	request: Request,
) {
	const url = new URL(request.url);
	const method = request.method;
	const path = url.pathname;

	// Track request
	if (!c.state.requestCount) c.state.requestCount = 0;
	if (!c.state.requestHistory) c.state.requestHistory = [];

	c.state.requestCount++;
	c.state.requestHistory.push({
		method,
		path,
		timestamp: Date.now(),
		headers: Object.fromEntries(request.headers.entries()),
	});

	c.log.info({
		msg: &quot;http request received&quot;,
		method,
		path,
		fullUrl: request.url,
		requestCount: c.state.requestCount,
	});

	// Handle different endpoints
	if (path === &quot;/api/hello&quot;) {
		return new Response(
			JSON.stringify({
				message: &quot;Hello from HTTP actor!&quot;,
				timestamp: Date.now(),
				requestCount: c.state.requestCount,
			}),
			{
				headers: { &quot;Content-Type&quot;: &quot;application/json&quot; },
			},
		);
	}

	if (path === &quot;/api/echo&quot; &amp;&amp; method === &quot;POST&quot;) {
		return new Response(request.body, {
			headers: {
				&quot;Content-Type&quot;: request.headers.get(&quot;Content-Type&quot;) || &quot;text/plain&quot;,
				&quot;X-Echo-Timestamp&quot;: Date.now().toString(),
			},
		});
	}

	if (path === &quot;/api/stats&quot;) {
		return new Response(
			JSON.stringify({
				requestCount: c.state.requestCount,
				requestHistory: c.state.requestHistory.slice(-10), // Last 10 requests
			}),
			{
				headers: { &quot;Content-Type&quot;: &quot;application/json&quot; },
			},
		);
	}

	if (path === &quot;/api/headers&quot;) {
		const headers = Object.fromEntries(request.headers.entries());
		return new Response(
			JSON.stringify({
				headers,
				method,
				path,
				timestamp: Date.now(),
			}),
			{
				headers: { &quot;Content-Type&quot;: &quot;application/json&quot; },
			},
		);
	}

	if (path === &quot;/api/json&quot; &amp;&amp; method === &quot;POST&quot;) {
		return request.json().then((body) =&gt; {
			return new Response(
				JSON.stringify({
					received: body,
					method,
					timestamp: Date.now(),
					processed: true,
				}),
				{
					headers: { &quot;Content-Type&quot;: &quot;application/json&quot; },
				},
			);
		});
	}

	// Handle custom paths with query parameters
	if (path.startsWith(&quot;/api/custom&quot;)) {
		const searchParams = Object.fromEntries(url.searchParams.entries());
		return new Response(
			JSON.stringify({
				path,
				method,
				queryParams: searchParams,
				timestamp: Date.now(),
				message: &quot;Custom endpoint response&quot;,
			}),
			{
				headers: { &quot;Content-Type&quot;: &quot;application/json&quot; },
			},
		);
	}

	// Return 404 for unhandled paths
	return new Response(
		JSON.stringify({
			error: &quot;Not Found&quot;,
			path,
			method,
			availableEndpoints: [
				&quot;/api/hello&quot;,
				&quot;/api/echo&quot;,
				&quot;/api/stats&quot;,
				&quot;/api/headers&quot;,
				&quot;/api/json&quot;,
				&quot;/api/custom/*&quot;,
			],
		}),
		{
			status: 404,
			headers: { &quot;Content-Type&quot;: &quot;application/json&quot; },
		},
	);
}

export const httpActions = {
	getHttpStats: (c: any) =&gt; {
		return {
			requestCount: c.state.requestCount || 0,
			requestHistory: c.state.requestHistory || [],
		};
	},
	clearHttpHistory: (c: any) =&gt; {
		c.state.requestHistory = [];
		c.state.requestCount = 0;
		return true;
	},
};
">
<input type="hidden" name="project[files][src/backend/actors/websocket.ts]" value="import type { UniversalWebSocket } from &quot;rivetkit&quot;;

export function handleWebSocket(
	c: any,
	websocket: UniversalWebSocket,
	opts: any,
) {
	const connectionId = `conn-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;

	// Initialize WebSocket state if not exists
	if (!c.state.connectionCount) c.state.connectionCount = 0;
	if (!c.state.messageCount) c.state.messageCount = 0;
	if (!c.state.messageHistory) c.state.messageHistory = [];

	c.state.connectionCount++;
	c.log.info(&quot;websocket connected&quot;, {
		connectionCount: c.state.connectionCount,
		connectionId,
		url: opts.request.url,
	});

	// Send welcome message
	const welcomeMessage = JSON.stringify({
		type: &quot;welcome&quot;,
		connectionId,
		connectionCount: c.state.connectionCount,
		timestamp: Date.now(),
	});

	websocket.send(welcomeMessage);
	c.state.messageHistory.push({
		type: &quot;sent&quot;,
		data: welcomeMessage,
		timestamp: Date.now(),
		connectionId,
	});

	// Handle incoming messages
	websocket.addEventListener(&quot;message&quot;, (event: any) =&gt; {
		c.state.messageCount++;
		const timestamp = Date.now();

		c.log.info(&quot;websocket message received&quot;, {
			messageCount: c.state.messageCount,
			connectionId,
			dataType: typeof event.data,
		});

		// Record received message
		c.state.messageHistory.push({
			type: &quot;received&quot;,
			data: event.data,
			timestamp,
			connectionId,
		});

		const data = event.data;

		if (typeof data === &quot;string&quot;) {
			try {
				const parsed = JSON.parse(data);

				if (parsed.type === &quot;ping&quot;) {
					const pongMessage = JSON.stringify({
						type: &quot;pong&quot;,
						timestamp,
						originalTimestamp: parsed.timestamp,
					});
					websocket.send(pongMessage);
					c.state.messageHistory.push({
						type: &quot;sent&quot;,
						data: pongMessage,
						timestamp,
						connectionId,
					});
				} else if (parsed.type === &quot;echo&quot;) {
					const echoMessage = JSON.stringify({
						type: &quot;echo-response&quot;,
						originalMessage: parsed.message,
						timestamp,
					});
					websocket.send(echoMessage);
					c.state.messageHistory.push({
						type: &quot;sent&quot;,
						data: echoMessage,
						timestamp,
						connectionId,
					});
				} else if (parsed.type === &quot;getStats&quot;) {
					const statsMessage = JSON.stringify({
						type: &quot;stats&quot;,
						connectionCount: c.state.connectionCount,
						messageCount: c.state.messageCount,
						timestamp,
					});
					websocket.send(statsMessage);
					c.state.messageHistory.push({
						type: &quot;sent&quot;,
						data: statsMessage,
						timestamp,
						connectionId,
					});
				} else if (parsed.type === &quot;broadcast&quot;) {
					// Broadcast to all connections would need additional infrastructure
					const broadcastResponse = JSON.stringify({
						type: &quot;broadcast-ack&quot;,
						message: parsed.message,
						timestamp,
					});
					websocket.send(broadcastResponse);
					c.state.messageHistory.push({
						type: &quot;sent&quot;,
						data: broadcastResponse,
						timestamp,
						connectionId,
					});
				} else {
					// Echo back unknown JSON messages
					websocket.send(data);
					c.state.messageHistory.push({
						type: &quot;sent&quot;,
						data: data,
						timestamp,
						connectionId,
					});
				}
			} catch {
				// If not JSON, just echo it back
				websocket.send(data);
				c.state.messageHistory.push({
					type: &quot;sent&quot;,
					data: data,
					timestamp,
					connectionId,
				});
			}
		} else if (data instanceof ArrayBuffer || data instanceof Uint8Array) {
			// Handle binary data - reverse the bytes
			const bytes = new Uint8Array(data);
			const reversed = new Uint8Array(bytes.length);
			for (let i = 0; i &lt; bytes.length; i++) {
				reversed[i] = bytes[bytes.length - 1 - i];
			}
			websocket.send(reversed);
			c.state.messageHistory.push({
				type: &quot;sent&quot;,
				data: `[Binary: ${reversed.length} bytes - reversed]`,
				timestamp,
				connectionId,
			});
		} else {
			// Echo other data types
			websocket.send(data);
			c.state.messageHistory.push({
				type: &quot;sent&quot;,
				data: data,
				timestamp,
				connectionId,
			});
		}
	});

	// Handle connection close
	websocket.addEventListener(&quot;close&quot;, () =&gt; {
		c.state.connectionCount--;
		c.log.info(&quot;websocket disconnected&quot;, {
			connectionCount: c.state.connectionCount,
			connectionId,
		});
	});

	// Handle errors
	websocket.addEventListener(&quot;error&quot;, (error: any) =&gt; {
		c.log.error(&quot;websocket error&quot;, { error: error.message, connectionId });
	});
}

export const websocketActions = {
	getWebSocketStats: (c: any) =&gt; {
		return {
			connectionCount: c.state.connectionCount || 0,
			messageCount: c.state.messageCount || 0,
			messageHistory: (c.state.messageHistory || []).slice(-50), // Last 50 messages
		};
	},
	clearWebSocketHistory: (c: any) =&gt; {
		c.state.messageHistory = [];
		c.state.messageCount = 0;
		return true;
	},
	getWebSocketMessageHistory: (c: any, limit: number = 20) =&gt; {
		return (c.state.messageHistory || []).slice(-limit);
	},
};
">
<input type="hidden" name="project[files][src/frontend/components/ConnectionScreen.tsx]" value="import { useState } from &quot;react&quot;;
import type { AppState } from &quot;../App&quot;;

interface ConnectionScreenProps {
  onConnect: (config: AppState) =&gt; void;
}

type ActorMethod = &quot;get&quot; | &quot;getOrCreate&quot; | &quot;getForId&quot; | &quot;create&quot;;

export default function ConnectionScreen({ onConnect }: ConnectionScreenProps) {
  const [actorMethod, setActorMethod] = useState&lt;ActorMethod&gt;(&quot;getOrCreate&quot;);
  const [actorName, setActorName] = useState(&quot;demo&quot;);
  const [actorKey, setActorKey] = useState(&quot;&quot;);
  const [actorId, setActorId] = useState(&quot;&quot;);
  const [actorRegion, setActorRegion] = useState(&quot;&quot;);
  const [createInput, setCreateInput] = useState(&quot;&quot;);
  const [transport, setTransport] = useState&lt;&quot;websocket&quot; | &quot;sse&quot;&gt;(&quot;websocket&quot;);
  const [encoding, setEncoding] = useState&lt;&quot;json&quot; | &quot;cbor&quot; | &quot;bare&quot;&gt;(&quot;bare&quot;);
  const [connectionMode, setConnectionMode] = useState&lt;&quot;connection&quot; | &quot;handle&quot;&gt;(&quot;handle&quot;);
  const [isConnecting, setIsConnecting] = useState(false);

  const handleConnect = async () =&gt; {
    setIsConnecting(true);

    const config: AppState = {
      actorMethod,
      actorName,
      actorKey,
      actorId,
      actorRegion,
      createInput,
      transport,
      encoding,
      connectionMode,
      isConnected: true,
    };

    onConnect(config);
    setIsConnecting(false);
  };

  return (
    &lt;div className=&quot;connection-screen&quot;&gt;
      &lt;div className=&quot;connection-modal&quot;&gt;
        &lt;div className=&quot;modal-header&quot;&gt;
          &lt;h1&gt;Connect to Actor&lt;/h1&gt;
          &lt;p&gt;Configure your RivetKit connection&lt;/p&gt;
        &lt;/div&gt;

        &lt;div className=&quot;modal-content&quot;&gt;
          &lt;div className=&quot;form-section&quot;&gt;
            &lt;h3&gt;Actor Configuration&lt;/h3&gt;
            &lt;div className=&quot;form-group&quot;&gt;
              &lt;label&gt;Method&lt;/label&gt;
              &lt;div className=&quot;toggle-group method-toggle&quot;&gt;
                &lt;button
                  className={`toggle-button ${actorMethod === &quot;get&quot; ? &quot;active&quot; : &quot;&quot;}`}
                  onClick={() =&gt; setActorMethod(&quot;get&quot;)}
                &gt;
                  Get
                &lt;/button&gt;
                &lt;button
                  className={`toggle-button ${actorMethod === &quot;getOrCreate&quot; ? &quot;active&quot; : &quot;&quot;}`}
                  onClick={() =&gt; setActorMethod(&quot;getOrCreate&quot;)}
                &gt;
                  Get or Create
                &lt;/button&gt;
                &lt;button
                  className={`toggle-button ${actorMethod === &quot;getForId&quot; ? &quot;active&quot; : &quot;&quot;}`}
                  onClick={() =&gt; setActorMethod(&quot;getForId&quot;)}
                &gt;
                  Get for ID
                &lt;/button&gt;
                &lt;button
                  className={`toggle-button ${actorMethod === &quot;create&quot; ? &quot;active&quot; : &quot;&quot;}`}
                  onClick={() =&gt; setActorMethod(&quot;create&quot;)}
                &gt;
                  Create
                &lt;/button&gt;
              &lt;/div&gt;
            &lt;/div&gt;

            &lt;div className=&quot;form-group&quot;&gt;
              &lt;label&gt;Actor Name&lt;/label&gt;
              &lt;select
                className=&quot;form-control&quot;
                value={actorName}
                onChange={(e) =&gt; setActorName(e.target.value)}
              &gt;
                &lt;option value=&quot;demo&quot;&gt;Demo Actor&lt;/option&gt;
              &lt;/select&gt;
            &lt;/div&gt;

            {actorMethod === &quot;getForId&quot; ? (
              &lt;div className=&quot;form-group&quot;&gt;
                &lt;label&gt;Actor ID&lt;/label&gt;
                &lt;input
                  className=&quot;form-control&quot;
                  type=&quot;text&quot;
                  value={actorId}
                  onChange={(e) =&gt; setActorId(e.target.value)}
                  placeholder=&quot;Actor ID&quot;
                  required
                /&gt;
              &lt;/div&gt;
            ) : (
              &lt;div className=&quot;form-group&quot;&gt;
                &lt;label&gt;Key&lt;/label&gt;
                &lt;input
                  className=&quot;form-control&quot;
                  type=&quot;text&quot;
                  value={actorKey}
                  onChange={(e) =&gt; setActorKey(e.target.value)}
                  placeholder=&quot;Optional key for actor instance&quot;
                /&gt;
              &lt;/div&gt;
            )}

            {(actorMethod === &quot;create&quot; || actorMethod === &quot;getOrCreate&quot;) &amp;&amp; (
              &lt;&gt;
                &lt;div className=&quot;form-group&quot;&gt;
                  &lt;label&gt;Region&lt;/label&gt;
                  &lt;input
                    className=&quot;form-control&quot;
                    type=&quot;text&quot;
                    value={actorRegion}
                    onChange={(e) =&gt; setActorRegion(e.target.value)}
                    placeholder=&quot;Optional region&quot;
                  /&gt;
                &lt;/div&gt;
                &lt;div className=&quot;form-group&quot;&gt;
                  &lt;label&gt;Input Data&lt;/label&gt;
                  &lt;textarea
                    className=&quot;form-control textarea&quot;
                    value={createInput}
                    onChange={(e) =&gt; setCreateInput(e.target.value)}
                    placeholder=&quot;Optional JSON input data&quot;
                    rows={3}
                  /&gt;
                &lt;/div&gt;
              &lt;/&gt;
            )}
          &lt;/div&gt;

          &lt;div className=&quot;form-section&quot;&gt;
            &lt;h3&gt;Connection Settings&lt;/h3&gt;
            &lt;div className=&quot;form-group&quot;&gt;
              &lt;label&gt;Mode&lt;/label&gt;
              &lt;div className=&quot;toggle-group&quot;&gt;
                &lt;button
                  className={`toggle-button ${connectionMode === &quot;handle&quot; ? &quot;active&quot; : &quot;&quot;}`}
                  onClick={() =&gt; setConnectionMode(&quot;handle&quot;)}
                &gt;
                  Handle
                &lt;/button&gt;
                &lt;button
                  className={`toggle-button ${connectionMode === &quot;connection&quot; ? &quot;active&quot; : &quot;&quot;}`}
                  onClick={() =&gt; setConnectionMode(&quot;connection&quot;)}
                &gt;
                  Connection
                &lt;/button&gt;
              &lt;/div&gt;
            &lt;/div&gt;

            {connectionMode === &quot;connection&quot; &amp;&amp; (
              &lt;div className=&quot;form-group&quot;&gt;
                &lt;label&gt;Transport&lt;/label&gt;
                &lt;div className=&quot;toggle-group&quot;&gt;
                  &lt;button
                    className={`toggle-button ${transport === &quot;websocket&quot; ? &quot;active&quot; : &quot;&quot;}`}
                    onClick={() =&gt; setTransport(&quot;websocket&quot;)}
                  &gt;
                    WebSocket
                  &lt;/button&gt;
                  &lt;button
                    className={`toggle-button ${transport === &quot;sse&quot; ? &quot;active&quot; : &quot;&quot;}`}
                    onClick={() =&gt; setTransport(&quot;sse&quot;)}
                  &gt;
                    SSE
                  &lt;/button&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            )}

            &lt;div className=&quot;form-group&quot;&gt;
              &lt;label&gt;Encoding&lt;/label&gt;
              &lt;div className=&quot;toggle-group&quot;&gt;
                &lt;button
                  className={`toggle-button ${encoding === &quot;bare&quot; ? &quot;active&quot; : &quot;&quot;}`}
                  onClick={() =&gt; setEncoding(&quot;bare&quot;)}
                &gt;
                  Bare
                &lt;/button&gt;
                &lt;button
                  className={`toggle-button ${encoding === &quot;cbor&quot; ? &quot;active&quot; : &quot;&quot;}`}
                  onClick={() =&gt; setEncoding(&quot;cbor&quot;)}
                &gt;
                  CBOR
                &lt;/button&gt;
                &lt;button
                  className={`toggle-button ${encoding === &quot;json&quot; ? &quot;active&quot; : &quot;&quot;}`}
                  onClick={() =&gt; setEncoding(&quot;json&quot;)}
                &gt;
                  JSON
                &lt;/button&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;


          &lt;div className=&quot;modal-actions&quot;&gt;
            &lt;button
              className=&quot;btn btn-primary connect-button&quot;
              onClick={handleConnect}
              disabled={isConnecting}
              aria-busy={isConnecting ? &quot;true&quot; : &quot;false&quot;}
            &gt;
              {isConnecting ? &quot;Connecting...&quot; : &quot;Connect to Actor&quot;}
            &lt;/button&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  );
}
">
<input type="hidden" name="project[files][src/frontend/components/InteractionScreen.tsx]" value="import { useState } from &quot;react&quot;;
import type { AppState } from &quot;../App&quot;;
import ActionsTab from &quot;./tabs/ActionsTab&quot;;
import EventsTab from &quot;./tabs/EventsTab&quot;;
import ScheduleTab from &quot;./tabs/ScheduleTab&quot;;
import SleepTab from &quot;./tabs/SleepTab&quot;;
import RawHttpTab from &quot;./tabs/RawHttpTab&quot;;
import RawWebSocketTab from &quot;./tabs/RawWebSocketTab&quot;;
import MetadataTab from &quot;./tabs/MetadataTab&quot;;
import ConnectionsTab from &quot;./tabs/ConnectionsTab&quot;;

interface InteractionScreenProps {
  state: AppState;
  updateState: (updates: Partial&lt;AppState&gt;) =&gt; void;
  client: any;
  actorHandle: any;
  onDisconnect: () =&gt; void;
}

export interface EventSubscription {
  eventName: string;
  unsubscribe: () =&gt; void;
}

export interface EventItem {
  timestamp: number;
  name: string;
  data: any;
  id: string;
}

type TabType = &quot;actions&quot; | &quot;events&quot; | &quot;connections&quot; | &quot;schedule&quot; | &quot;sleep&quot; | &quot;raw-http&quot; | &quot;raw-websocket&quot; | &quot;metadata&quot;;

export default function InteractionScreen({
  state,
  updateState,
  client,
  actorHandle,
  onDisconnect
}: InteractionScreenProps) {
  const [activeTab, setActiveTab] = useState&lt;TabType&gt;(&quot;actions&quot;);
  const [isDisconnecting, setIsDisconnecting] = useState(false);
  const [eventSubscriptions, setEventSubscriptions] = useState&lt;Map&lt;string, EventSubscription&gt;&gt;(new Map());
  const [events, setEvents] = useState&lt;EventItem[]&gt;([]);

  // Switch to an enabled tab if current tab becomes disabled
  const isCurrentTabDisabled = activeTab === &quot;events&quot; &amp;&amp; state.connectionMode !== &quot;connection&quot;;
  if (isCurrentTabDisabled) {
    setActiveTab(&quot;actions&quot;);
  }

  const handleDisconnect = async () =&gt; {
    setIsDisconnecting(true);

    onDisconnect();
    setIsDisconnecting(false);
  };

  const [isDisposing, setIsDisposing] = useState(false);

  const handleDispose = async () =&gt; {
    setIsDisposing(true);

    try {
      const actorName = state.actorName as keyof typeof client;
      const accessor = client[actorName];
      const key = state.actorKey ? [state.actorKey] : [];
      await accessor.get(key).dispose();

      // After disposal, go back to connection screen
      onDisconnect();
    } catch (error) {
      console.error(&quot;Failed to dispose actor:&quot;, error);
      alert(&quot;Failed to dispose actor. See console for details.&quot;);
    } finally {
      setIsDisposing(false);
    }
  };

  const tabs = [
    { id: &quot;actions&quot; as const, label: &quot;Actions&quot;, component: ActionsTab, disabled: false },
    { id: &quot;events&quot; as const, label: &quot;Events&quot;, component: EventsTab, disabled: state.connectionMode !== &quot;connection&quot; },
    { id: &quot;connections&quot; as const, label: &quot;Connections&quot;, component: ConnectionsTab, disabled: false },
    { id: &quot;schedule&quot; as const, label: &quot;Schedule&quot;, component: ScheduleTab, disabled: false },
    { id: &quot;sleep&quot; as const, label: &quot;Sleep&quot;, component: SleepTab, disabled: false },
    { id: &quot;raw-http&quot; as const, label: &quot;Raw HTTP&quot;, component: RawHttpTab, disabled: false },
    { id: &quot;raw-websocket&quot; as const, label: &quot;Raw WebSocket&quot;, component: RawWebSocketTab, disabled: false },
    { id: &quot;metadata&quot; as const, label: &quot;Metadata&quot;, component: MetadataTab, disabled: false },
  ];

  const ActiveTabComponent = tabs.find(tab =&gt; tab.id === activeTab)?.component || ActionsTab;

  return (
    &lt;div className=&quot;interaction-modal-overlay&quot;&gt;
      &lt;div className=&quot;interaction-modal&quot;&gt;
        {/* Header with connection info and controls */}
        &lt;div className=&quot;interaction-header&quot;&gt;
          &lt;div className=&quot;connection-info&quot;&gt;
            &lt;div className=&quot;connection-details&quot;&gt;
              &lt;h2&gt;Connected to Actor&lt;/h2&gt;
              &lt;div className=&quot;connection-meta&quot;&gt;
                &lt;span className=&quot;actor-name&quot;&gt;{state.actorName}&lt;/span&gt;
                {state.actorKey &amp;&amp; &lt;span className=&quot;actor-key&quot;&gt;#{state.actorKey}&lt;/span&gt;}
                &lt;span className=&quot;transport-info&quot;&gt;{state.transport.toUpperCase()}/{state.encoding.toUpperCase()}&lt;/span&gt;
                &lt;span className={`mode-info ${state.connectionMode}`}&gt;
                  {state.connectionMode === &quot;connection&quot; ? &quot;🔗 Connected&quot; : &quot;🔧 Handle&quot;}
                &lt;/span&gt;
              &lt;/div&gt;
            &lt;/div&gt;

            &lt;div className=&quot;connection-actions&quot;&gt;
              &lt;button
                className=&quot;btn&quot;
                onClick={handleDispose}
                disabled={isDisposing}
                aria-busy={isDisposing ? &quot;true&quot; : &quot;false&quot;}
              &gt;
                {isDisposing ? &quot;Disposing...&quot; : &quot;Dispose&quot;}
              &lt;/button&gt;
              &lt;button
                className=&quot;btn&quot;
                onClick={handleDisconnect}
                disabled={isDisconnecting}
                aria-busy={isDisconnecting ? &quot;true&quot; : &quot;false&quot;}
              &gt;
                {isDisconnecting ? &quot;Disconnecting...&quot; : &quot;Disconnect&quot;}
              &lt;/button&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;

        {/* Tabs */}
        &lt;div className=&quot;tabs&quot;&gt;
          &lt;div className=&quot;tab-list&quot;&gt;
            {tabs.map(tab =&gt; (
              &lt;button
                key={tab.id}
                className={`tab-button ${activeTab === tab.id ? &quot;active&quot; : &quot;&quot;}`}
                onClick={() =&gt; setActiveTab(tab.id)}
                disabled={tab.disabled}
              &gt;
                {tab.label}
              &lt;/button&gt;
            ))}
          &lt;/div&gt;

          &lt;div className=&quot;tab-content&quot;&gt;
            {activeTab === &quot;events&quot; ? (
              &lt;EventsTab
                state={state}
                updateState={updateState}
                client={client}
                actorHandle={actorHandle}
                eventSubscriptions={eventSubscriptions}
                setEventSubscriptions={setEventSubscriptions}
                events={events}
                setEvents={setEvents}
              /&gt;
            ) : (
              &lt;ActiveTabComponent
                state={state}
                updateState={updateState}
                client={client}
                actorHandle={actorHandle}
                {...({} as any)}
              /&gt;
            )}
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  );
}
">
<input type="hidden" name="project[files][src/frontend/components/tabs/ActionsTab.tsx]" value="import { useState } from &quot;react&quot;;
import type { AppState } from &quot;../../App&quot;;

interface TabProps {
  state: AppState;
  updateState: (updates: Partial&lt;AppState&gt;) =&gt; void;
  client: any;
  actorHandle: any;
}

interface ActionResponse {
  [key: string]: string;
}

export default function ActionsTab({ state, actorHandle }: TabProps) {
  const [responses, setResponses] = useState&lt;ActionResponse&gt;({});
  const [loading, setLoading] = useState&lt;{ [key: string]: boolean }&gt;({});

  // Demo actor state
  const [incrementAmount, setIncrementAmount] = useState(&quot;1&quot;);
  const [message, setMessage] = useState(&quot;Hello World&quot;);
  const [delayAmount, setDelayAmount] = useState(&quot;3&quot;);
  const [delayMs, setDelayMs] = useState(&quot;2000&quot;);
  const [eventName, setEventName] = useState(&quot;userAction&quot;);
  const [eventData, setEventData] = useState(&#39;{&quot;type&quot;: &quot;click&quot;, &quot;target&quot;: &quot;button&quot;}&#39;);

  // WebSocket actor state
  const [messageLimit, setMessageLimit] = useState(&quot;10&quot;);

  const callAction = async (actionName: string, ...args: any[]) =&gt; {
    setLoading((prev) =&gt; ({ ...prev, [actionName]: true }));
    setResponses((prev) =&gt; ({ ...prev, [actionName]: &quot;&quot; }));

    try {
      const result = await actorHandle[actionName](...args);
      setResponses((prev) =&gt; ({
        ...prev,
        [actionName]: JSON.stringify(result, null, 2),
      }));
    } catch (error) {
      setResponses((prev) =&gt; ({
        ...prev,
        [actionName]: `Error: ${error instanceof Error ? error.message : String(error)}`,
      }));
    } finally {
      setLoading((prev) =&gt; ({ ...prev, [actionName]: false }));
    }
  };

  const ActionSection = ({
    title,
    description,
    actionName,
    children,
    onCall,
  }: {
    title: string;
    description: string;
    actionName: string;
    children?: React.ReactNode;
    onCall: () =&gt; void;
  }) =&gt; (
    &lt;div className=&quot;section&quot;&gt;
      &lt;h3&gt;{title}&lt;/h3&gt;
      &lt;p style={{ fontSize: &quot;14px&quot;, color: &quot;#666&quot;, marginBottom: &quot;10px&quot; }}&gt;
        {description}
      &lt;/p&gt;
      {children}
      &lt;button
        className=&quot;btn btn-primary&quot;
        onClick={onCall}
        disabled={loading[actionName]}
        style={{ marginTop: children ? &quot;10px&quot; : &quot;0&quot; }}
      &gt;
        {loading[actionName] ? &quot;Calling...&quot; : `Call ${title}`}
      &lt;/button&gt;
      {responses[actionName] &amp;&amp; (
        &lt;div className=&quot;response&quot; style={{ marginTop: &quot;10px&quot; }}&gt;
          {responses[actionName]}
        &lt;/div&gt;
      )}
    &lt;/div&gt;
  );

  const renderDemoActions = () =&gt; (
    &lt;&gt;
      &lt;ActionSection
        title=&quot;getCount&quot;
        description=&quot;Get current counter value&quot;
        actionName=&quot;getCount&quot;
        onCall={() =&gt; callAction(&quot;getCount&quot;)}
      /&gt;

      &lt;ActionSection
        title=&quot;increment&quot;
        description=&quot;Increment counter by amount&quot;
        actionName=&quot;increment&quot;
        onCall={() =&gt; callAction(&quot;increment&quot;, Number(incrementAmount))}
      &gt;
        &lt;div className=&quot;form-group&quot;&gt;
          &lt;label&gt;Amount:&lt;/label&gt;
          &lt;input
            className=&quot;form-control&quot;
            type=&quot;number&quot;
            value={incrementAmount}
            onChange={(e) =&gt; setIncrementAmount(e.target.value)}
          /&gt;
        &lt;/div&gt;
      &lt;/ActionSection&gt;

      &lt;ActionSection
        title=&quot;setMessage&quot;
        description=&quot;Set a message string&quot;
        actionName=&quot;setMessage&quot;
        onCall={() =&gt; callAction(&quot;setMessage&quot;, message)}
      &gt;
        &lt;div className=&quot;form-group&quot;&gt;
          &lt;label&gt;Message:&lt;/label&gt;
          &lt;input
            className=&quot;form-control&quot;
            type=&quot;text&quot;
            value={message}
            onChange={(e) =&gt; setMessage(e.target.value)}
          /&gt;
        &lt;/div&gt;
      &lt;/ActionSection&gt;

      &lt;ActionSection
        title=&quot;delayedIncrement&quot;
        description=&quot;Increment after delay&quot;
        actionName=&quot;delayedIncrement&quot;
        onCall={() =&gt; callAction(&quot;delayedIncrement&quot;, Number(delayAmount), Number(delayMs))}
      &gt;
        &lt;div className=&quot;form-grid&quot;&gt;
          &lt;div className=&quot;form-group&quot;&gt;
            &lt;label&gt;Amount:&lt;/label&gt;
            &lt;input
              className=&quot;form-control&quot;
              type=&quot;number&quot;
              value={delayAmount}
              onChange={(e) =&gt; setDelayAmount(e.target.value)}
            /&gt;
          &lt;/div&gt;
          &lt;div className=&quot;form-group&quot;&gt;
            &lt;label&gt;Delay (ms):&lt;/label&gt;
            &lt;input
              className=&quot;form-control&quot;
              type=&quot;number&quot;
              value={delayMs}
              onChange={(e) =&gt; setDelayMs(e.target.value)}
            /&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/ActionSection&gt;

      &lt;ActionSection
        title=&quot;promiseAction&quot;
        description=&quot;Returns a resolved promise with timestamp&quot;
        actionName=&quot;promiseAction&quot;
        onCall={() =&gt; callAction(&quot;promiseAction&quot;)}
      /&gt;

      &lt;ActionSection
        title=&quot;getState&quot;
        description=&quot;Get both actor and connection state&quot;
        actionName=&quot;getState&quot;
        onCall={() =&gt; callAction(&quot;getState&quot;)}
      /&gt;

      &lt;ActionSection
        title=&quot;getLifecycleInfo&quot;
        description=&quot;Get start/stop counts&quot;
        actionName=&quot;getLifecycleInfo&quot;
        onCall={() =&gt; callAction(&quot;getLifecycleInfo&quot;)}
      /&gt;

      &lt;ActionSection
        title=&quot;getMetadata&quot;
        description=&quot;Get actor metadata&quot;
        actionName=&quot;getMetadata&quot;
        onCall={() =&gt; callAction(&quot;getMetadata&quot;)}
      /&gt;

      &lt;ActionSection
        title=&quot;getInput&quot;
        description=&quot;Get input data passed during actor creation&quot;
        actionName=&quot;getInput&quot;
        onCall={() =&gt; callAction(&quot;getInput&quot;)}
      /&gt;

      &lt;ActionSection
        title=&quot;broadcastCustomEvent&quot;
        description=&quot;Broadcast custom event&quot;
        actionName=&quot;broadcastCustomEvent&quot;
        onCall={() =&gt; {
          try {
            const data = JSON.parse(eventData);
            callAction(&quot;broadcastCustomEvent&quot;, eventName, data);
          } catch (error) {
            setResponses((prev) =&gt; ({
              ...prev,
              broadcastCustomEvent: `Error: Invalid JSON data`,
            }));
          }
        }}
      &gt;
        &lt;div className=&quot;form-grid&quot;&gt;
          &lt;div className=&quot;form-group&quot;&gt;
            &lt;label&gt;Event Name:&lt;/label&gt;
            &lt;input
              className=&quot;form-control&quot;
              type=&quot;text&quot;
              value={eventName}
              onChange={(e) =&gt; setEventName(e.target.value)}
            /&gt;
          &lt;/div&gt;
          &lt;div className=&quot;form-group&quot;&gt;
            &lt;label&gt;Data (JSON):&lt;/label&gt;
            &lt;input
              className=&quot;form-control&quot;
              type=&quot;text&quot;
              value={eventData}
              onChange={(e) =&gt; setEventData(e.target.value)}
            /&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/ActionSection&gt;
    &lt;/&gt;
  );

  const renderHttpActions = () =&gt; (
    &lt;&gt;
      &lt;ActionSection
        title=&quot;getStats&quot;
        description=&quot;Get HTTP request statistics&quot;
        actionName=&quot;getStats&quot;
        onCall={() =&gt; callAction(&quot;getStats&quot;)}
      /&gt;

      &lt;ActionSection
        title=&quot;clearHistory&quot;
        description=&quot;Clear request history&quot;
        actionName=&quot;clearHistory&quot;
        onCall={() =&gt; callAction(&quot;clearHistory&quot;)}
      /&gt;
    &lt;/&gt;
  );

  const renderWebSocketActions = () =&gt; (
    &lt;&gt;
      &lt;ActionSection
        title=&quot;getStats&quot;
        description=&quot;Get WebSocket statistics&quot;
        actionName=&quot;getStats&quot;
        onCall={() =&gt; callAction(&quot;getStats&quot;)}
      /&gt;

      &lt;ActionSection
        title=&quot;clearHistory&quot;
        description=&quot;Clear message history&quot;
        actionName=&quot;clearHistory&quot;
        onCall={() =&gt; callAction(&quot;clearHistory&quot;)}
      /&gt;

      &lt;ActionSection
        title=&quot;getMessageHistory&quot;
        description=&quot;Get recent WebSocket messages&quot;
        actionName=&quot;getMessageHistory&quot;
        onCall={() =&gt; callAction(&quot;getMessageHistory&quot;, Number(messageLimit))}
      &gt;
        &lt;div className=&quot;form-group&quot;&gt;
          &lt;label&gt;Limit:&lt;/label&gt;
          &lt;input
            className=&quot;form-control&quot;
            type=&quot;number&quot;
            value={messageLimit}
            onChange={(e) =&gt; setMessageLimit(e.target.value)}
          /&gt;
        &lt;/div&gt;
      &lt;/ActionSection&gt;
    &lt;/&gt;
  );

  return (
    &lt;div&gt;
      {state.actorName === &quot;demo&quot; &amp;&amp; renderDemoActions()}
      {state.actorName === &quot;http&quot; &amp;&amp; renderHttpActions()}
      {state.actorName === &quot;websocket&quot; &amp;&amp; renderWebSocketActions()}
    &lt;/div&gt;
  );
}">
<input type="hidden" name="project[files][src/frontend/components/tabs/ConnectionsTab.tsx]" value="import { useState, useEffect } from &quot;react&quot;;
import type { AppState } from &quot;../../App&quot;;

interface TabProps {
  state: AppState;
  updateState: (updates: Partial&lt;AppState&gt;) =&gt; void;
  client: any;
  actorHandle: any;
}

interface ConnectionInfo {
  id: string;
  connectedAt: number;
}

export default function ConnectionsTab({ state, actorHandle }: TabProps) {
  const [currentConnectionInfo, setCurrentConnectionInfo] = useState&lt;any&gt;(null);
  const [allConnections, setAllConnections] = useState&lt;ConnectionInfo[]&gt;([]);
  const [isLoadingConnections, setIsLoadingConnections] = useState(false);

  // Update current connection info when actor handle changes
  useEffect(() =&gt; {
    if (actorHandle &amp;&amp; state.connectionMode === &quot;connection&quot;) {
      setCurrentConnectionInfo({
        isConnected: true,
        connectionId: actorHandle.connectionId || &quot;N/A&quot;,
        transport: state.transport,
        encoding: state.encoding,
        actorName: state.actorName,
        actorKey: state.actorKey,
        actorId: state.actorId,
        lastActivity: Date.now(),
      });
    } else {
      setCurrentConnectionInfo(null);
    }
  }, [actorHandle, state]);

  const formatTimestamp = (timestamp: number) =&gt; {
    return new Date(timestamp).toLocaleString();
  };

  const handleListConnections = async () =&gt; {
    setIsLoadingConnections(true);
    try {
      const connections = await actorHandle.listConnections();
      setAllConnections(connections);
    } catch (error) {
      console.error(&quot;Failed to list connections:&quot;, error);
      alert(`Failed to list connections: ${error instanceof Error ? error.message : String(error)}`);
    } finally {
      setIsLoadingConnections(false);
    }
  };

  if (state.actorName !== &quot;demo&quot;) {
    return (
      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Connections&lt;/h3&gt;
        &lt;p&gt;Connection features are only available for the &lt;code&gt;demo&lt;/code&gt; actor. Please select the demo actor in the header.&lt;/p&gt;
      &lt;/div&gt;
    );
  }

  return (
    &lt;div&gt;
      {/* Current Connection Information */}
      {state.connectionMode === &quot;connection&quot; &amp;&amp; (
        &lt;div className=&quot;section&quot;&gt;
          &lt;h3&gt;Current Connection&lt;/h3&gt;

          {!currentConnectionInfo ? (
            &lt;div style={{
              padding: &quot;20px&quot;,
              textAlign: &quot;center&quot;,
              color: &quot;var(--text-secondary)&quot;
            }}&gt;
              No active connection
            &lt;/div&gt;
          ) : (
            &lt;div style={{ display: &quot;grid&quot;, gridTemplateColumns: &quot;auto 1fr&quot;, gap: &quot;10px 20px&quot;, alignItems: &quot;center&quot; }}&gt;
              &lt;strong&gt;Status:&lt;/strong&gt;
              &lt;span&gt;🟢 Connected&lt;/span&gt;

              &lt;strong&gt;Connection ID:&lt;/strong&gt;
              &lt;code&gt;
                {currentConnectionInfo.connectionId}
              &lt;/code&gt;

              &lt;strong&gt;Transport:&lt;/strong&gt;
              &lt;span&gt;{currentConnectionInfo.transport.toUpperCase()}&lt;/span&gt;

              &lt;strong&gt;Encoding:&lt;/strong&gt;
              &lt;span&gt;{currentConnectionInfo.encoding.toUpperCase()}&lt;/span&gt;

              &lt;strong&gt;Actor Name:&lt;/strong&gt;
              &lt;span&gt;{currentConnectionInfo.actorName}&lt;/span&gt;

              &lt;strong&gt;Actor Key:&lt;/strong&gt;
              &lt;span&gt;{currentConnectionInfo.actorKey || &quot;(empty)&quot;}&lt;/span&gt;

              {currentConnectionInfo.actorId &amp;&amp; (
                &lt;&gt;
                  &lt;strong&gt;Actor ID:&lt;/strong&gt;
                  &lt;code&gt;
                    {currentConnectionInfo.actorId}
                  &lt;/code&gt;
                &lt;/&gt;
              )}

              &lt;strong&gt;Last Activity:&lt;/strong&gt;
              &lt;span&gt;{formatTimestamp(currentConnectionInfo.lastActivity)}&lt;/span&gt;
            &lt;/div&gt;
          )}
        &lt;/div&gt;
      )}

      {/* All Connections */}
      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;All Connections&lt;/h3&gt;
        &lt;p style={{ marginBottom: &quot;15px&quot; }}&gt;
          List all active connections to this actor instance.
        &lt;/p&gt;

        &lt;button
          className=&quot;btn btn-primary&quot;
          onClick={handleListConnections}
          disabled={isLoadingConnections}
        &gt;
          {isLoadingConnections ? &quot;Loading...&quot; : &quot;List All Connections&quot;}
        &lt;/button&gt;

        {allConnections.length &gt; 0 &amp;&amp; (
          &lt;div style={{ marginTop: &quot;15px&quot; }}&gt;
            &lt;table style={{
              width: &quot;100%&quot;,
              borderCollapse: &quot;collapse&quot;,
              fontSize: &quot;14px&quot;
            }}&gt;
              &lt;thead&gt;
                &lt;tr style={{ borderBottom: &quot;2px solid #333&quot; }}&gt;
                  &lt;th style={{ padding: &quot;8px&quot;, textAlign: &quot;left&quot; }}&gt;Connection ID&lt;/th&gt;
                  &lt;th style={{ padding: &quot;8px&quot;, textAlign: &quot;left&quot; }}&gt;Connected At&lt;/th&gt;
                &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;tbody&gt;
                {allConnections.map((conn) =&gt; (
                  &lt;tr key={conn.id} style={{ borderBottom: &quot;1px solid #222&quot; }}&gt;
                    &lt;td style={{ padding: &quot;8px&quot; }}&gt;
                      &lt;code&gt;{conn.id}&lt;/code&gt;
                    &lt;/td&gt;
                    &lt;td style={{ padding: &quot;8px&quot; }}&gt;
                      {conn.connectedAt ? formatTimestamp(conn.connectedAt) : &quot;N/A&quot;}
                    &lt;/td&gt;
                  &lt;/tr&gt;
                ))}
              &lt;/tbody&gt;
            &lt;/table&gt;
          &lt;/div&gt;
        )}
      &lt;/div&gt;
    &lt;/div&gt;
  );
}
">
<input type="hidden" name="project[files][src/frontend/components/tabs/EventsTab.tsx]" value="import { useState, useRef } from &quot;react&quot;;
import type { AppState } from &quot;../../App&quot;;
import type { EventSubscription, EventItem } from &quot;../InteractionScreen&quot;;

interface TabProps {
  state: AppState;
  updateState: (updates: Partial&lt;AppState&gt;) =&gt; void;
  client: any;
  actorHandle: any;
  eventSubscriptions: Map&lt;string, EventSubscription&gt;;
  setEventSubscriptions: React.Dispatch&lt;React.SetStateAction&lt;Map&lt;string, EventSubscription&gt;&gt;&gt;;
  events: EventItem[];
  setEvents: React.Dispatch&lt;React.SetStateAction&lt;EventItem[]&gt;&gt;;
}

export default function EventsTab({
  actorHandle,
  eventSubscriptions,
  setEventSubscriptions,
  events,
  setEvents
}: TabProps) {
  const [selectedEventType, setSelectedEventType] = useState(&quot;countChanged&quot;);
  const [customEventName, setCustomEventName] = useState(&quot;&quot;);
  const eventIdCounter = useRef(0);

  const predefinedEvents = [
    &quot;countChanged&quot;,
    &quot;messageChanged&quot;,
    &quot;preferenceChanged&quot;,
    &quot;alarmTriggered&quot;,
  ];

  const addEvent = (name: string, data: any) =&gt; {
    const event: EventItem = {
      timestamp: Date.now(),
      name,
      data,
      id: `event-${++eventIdCounter.current}`,
    };
    setEvents(prev =&gt; [...prev, event].slice(-100)); // Keep last 100 events
  };

  const subscribe = (eventName: string) =&gt; {
    if (!actorHandle || eventSubscriptions.has(eventName)) return;

    const unsubscribe = actorHandle.on(eventName, (...args: any[]) =&gt; {
      addEvent(eventName, args.length === 1 ? args[0] : args);
    });

    setEventSubscriptions(prev =&gt; {
      const next = new Map(prev);
      next.set(eventName, { eventName, unsubscribe });
      return next;
    });
  };

  const unsubscribe = (eventName: string) =&gt; {
    const subscription = eventSubscriptions.get(eventName);
    if (!subscription) return;

    subscription.unsubscribe();
    setEventSubscriptions(prev =&gt; {
      const next = new Map(prev);
      next.delete(eventName);
      return next;
    });
  };

  const handleSubscribe = () =&gt; {
    const eventName = selectedEventType === &quot;custom&quot; ? customEventName.trim() : selectedEventType;
    if (!eventName) return;

    subscribe(eventName);

    // Reset custom input if it was used
    if (selectedEventType === &quot;custom&quot;) {
      setCustomEventName(&quot;&quot;);
    }
  };

  const clearEvents = () =&gt; {
    setEvents([]);
  };

  const formatTimestamp = (timestamp: number) =&gt; {
    return new Date(timestamp).toLocaleTimeString();
  };

  const formatData = (data: any) =&gt; {
    if (typeof data === &quot;string&quot;) return data;
    return JSON.stringify(data, null, 2);
  };

  return (
    &lt;div&gt;
      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Subscribe to Events&lt;/h3&gt;

        &lt;div style={{ display: &quot;flex&quot;, gap: &quot;10px&quot;, marginBottom: &quot;15px&quot; }}&gt;
          &lt;div className=&quot;form-group&quot; style={{ flex: 1, marginBottom: 0 }}&gt;
            &lt;label&gt;Event Name:&lt;/label&gt;
            &lt;select
              className=&quot;form-control&quot;
              value={selectedEventType}
              onChange={(e) =&gt; setSelectedEventType(e.target.value)}
            &gt;
              {predefinedEvents.map(event =&gt; (
                &lt;option key={event} value={event}&gt;{event}&lt;/option&gt;
              ))}
              &lt;option value=&quot;custom&quot;&gt;Custom...&lt;/option&gt;
            &lt;/select&gt;
          &lt;/div&gt;

          {selectedEventType === &quot;custom&quot; &amp;&amp; (
            &lt;div className=&quot;form-group&quot; style={{ flex: 1, marginBottom: 0 }}&gt;
              &lt;label&gt;Custom Event Name:&lt;/label&gt;
              &lt;input
                className=&quot;form-control&quot;
                type=&quot;text&quot;
                value={customEventName}
                onChange={(e) =&gt; setCustomEventName(e.target.value)}
                placeholder=&quot;Enter event name...&quot;
                onKeyDown={(e) =&gt; {
                  if (e.key === &quot;Enter&quot;) handleSubscribe();
                }}
              /&gt;
            &lt;/div&gt;
          )}

          &lt;div style={{ display: &quot;flex&quot;, alignItems: &quot;flex-end&quot; }}&gt;
            &lt;button
              className=&quot;btn btn-primary&quot;
              onClick={handleSubscribe}
              disabled={selectedEventType === &quot;custom&quot; &amp;&amp; !customEventName.trim()}
            &gt;
              Subscribe
            &lt;/button&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;

      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Active Subscriptions ({eventSubscriptions.size})&lt;/h3&gt;

        {eventSubscriptions.size === 0 ? (
          &lt;div style={{ textAlign: &quot;center&quot;, color: &quot;var(--text-secondary)&quot;, padding: &quot;20px&quot; }}&gt;
            No active subscriptions
          &lt;/div&gt;
        ) : (
          &lt;div style={{
            display: &quot;flex&quot;,
            flexWrap: &quot;wrap&quot;,
            gap: &quot;8px&quot;
          }}&gt;
            {Array.from(eventSubscriptions.values()).map(sub =&gt; (
              &lt;div
                key={sub.eventName}
                style={{
                  display: &quot;flex&quot;,
                  alignItems: &quot;center&quot;,
                  gap: &quot;8px&quot;,
                  background: &quot;var(--bg-tertiary)&quot;,
                  border: &quot;1px solid var(--border-secondary)&quot;,
                  borderRadius: &quot;20px&quot;,
                  padding: &quot;6px 12px&quot;,
                  fontSize: &quot;14px&quot;
                }}
              &gt;
                &lt;span style={{ fontFamily: &quot;monospace&quot; }}&gt;{sub.eventName}&lt;/span&gt;
                &lt;button
                  onClick={() =&gt; unsubscribe(sub.eventName)}
                  style={{
                    background: &quot;none&quot;,
                    border: &quot;none&quot;,
                    color: &quot;var(--danger-color)&quot;,
                    cursor: &quot;pointer&quot;,
                    fontSize: &quot;16px&quot;,
                    padding: 0,
                    lineHeight: 1,
                    width: &quot;16px&quot;,
                    height: &quot;16px&quot;,
                    display: &quot;flex&quot;,
                    alignItems: &quot;center&quot;,
                    justifyContent: &quot;center&quot;
                  }}
                  title=&quot;Unsubscribe&quot;
                &gt;
                  ×
                &lt;/button&gt;
              &lt;/div&gt;
            ))}
          &lt;/div&gt;
        )}
      &lt;/div&gt;

      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Event History ({events.length} events)&lt;/h3&gt;

        &lt;div style={{ marginBottom: &quot;15px&quot; }}&gt;
          &lt;button
            className=&quot;btn&quot;
            onClick={clearEvents}
          &gt;
            Clear ({events.length})
          &lt;/button&gt;
        &lt;/div&gt;

        {events.length === 0 ? (
          &lt;div style={{ textAlign: &quot;center&quot;, color: &quot;var(--text-secondary)&quot;, padding: &quot;20px&quot; }}&gt;
            No events received yet
          &lt;/div&gt;
        ) : (
          &lt;div className=&quot;event-list&quot;&gt;
            {events.map(event =&gt; (
              &lt;div key={event.id} className=&quot;event-item&quot;&gt;
                &lt;span className=&quot;timestamp&quot;&gt;{formatTimestamp(event.timestamp)}&lt;/span&gt;
                &lt;span className=&quot;name&quot;&gt;{event.name}&lt;/span&gt;
                &lt;div style={{ marginTop: &quot;5px&quot; }}&gt;
                  {formatData(event.data)}
                &lt;/div&gt;
              &lt;/div&gt;
            ))}
          &lt;/div&gt;
        )}
      &lt;/div&gt;
    &lt;/div&gt;
  );
}">
<input type="hidden" name="project[files][src/frontend/components/tabs/MetadataTab.tsx]" value="import { useState } from &quot;react&quot;;
import type { AppState } from &quot;../../App&quot;;

interface TabProps {
  state: AppState;
  updateState: (updates: Partial&lt;AppState&gt;) =&gt; void;
  client: any;
  actorHandle: any;
}

export default function MetadataTab({ state, actorHandle }: TabProps) {
  const [metadata, setMetadata] = useState&lt;any&gt;(null);
  const [actorState, setActorState] = useState&lt;any&gt;(null);
  const [connState, setConnState] = useState&lt;any&gt;(null);
  const [loadingStates, setLoadingStates] = useState({
    metadata: false,
    actorState: false,
    connState: false
  });

  const callAction = async (actionName: string, args: any[] = []) =&gt; {
    return await actorHandle[actionName](...args);
  };

  const handleGetMetadata = async () =&gt; {
    setLoadingStates(prev =&gt; ({ ...prev, metadata: true }));
    setMetadata(null);

    try {
      const result = await callAction(&quot;getMetadata&quot;);
      setMetadata(result);
    } catch (error) {
      setMetadata({
        error: error instanceof Error ? error.message : String(error)
      });
    } finally {
      setLoadingStates(prev =&gt; ({ ...prev, metadata: false }));
    }
  };

  const handleGetActorState = async () =&gt; {
    setLoadingStates(prev =&gt; ({ ...prev, actorState: true }));
    setActorState(null);

    try {
      const result = await callAction(&quot;getActorState&quot;);
      setActorState(result);
    } catch (error) {
      setActorState({
        error: error instanceof Error ? error.message : String(error)
      });
    } finally {
      setLoadingStates(prev =&gt; ({ ...prev, actorState: false }));
    }
  };

  const handleGetConnState = async () =&gt; {
    setLoadingStates(prev =&gt; ({ ...prev, connState: true }));
    setConnState(null);

    try {
      const result = await callAction(&quot;getConnState&quot;);
      setConnState(result);
    } catch (error) {
      setConnState({
        error: error instanceof Error ? error.message : String(error)
      });
    } finally {
      setLoadingStates(prev =&gt; ({ ...prev, connState: false }));
    }
  };

  if (state.actorName !== &quot;demo&quot;) {
    return (
      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Metadata&lt;/h3&gt;
        &lt;p&gt;Metadata features are only available for the &lt;code&gt;demo&lt;/code&gt; actor. Please select the demo actor in the header.&lt;/p&gt;
      &lt;/div&gt;
    );
  }

  return (
    &lt;div&gt;
      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Actor Metadata&lt;/h3&gt;
        &lt;p style={{ marginBottom: &quot;15px&quot; }}&gt;
          Actors can access metadata about themselves including their name, tags, and region.
          This information is useful for logging, monitoring, and conditional behavior.
        &lt;/p&gt;

        &lt;button
          className=&quot;btn btn-primary&quot;
          onClick={handleGetMetadata}
          disabled={loadingStates.metadata}
        &gt;
          {loadingStates.metadata ? &quot;Loading...&quot; : &quot;Get Metadata&quot;}
        &lt;/button&gt;

        {metadata &amp;&amp; (
          &lt;div className=&quot;response&quot;&gt;
            &lt;pre style={{ margin: 0, fontSize: &quot;13px&quot;, overflow: &quot;auto&quot; }}&gt;
              {JSON.stringify(metadata, null, 2)}
            &lt;/pre&gt;
          &lt;/div&gt;
        )}
      &lt;/div&gt;

      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Actor State&lt;/h3&gt;
        &lt;p style={{ marginBottom: &quot;15px&quot; }}&gt;
          Current state of the actor. This state is shared across all connections to the actor.
        &lt;/p&gt;

        &lt;button
          className=&quot;btn btn-primary&quot;
          onClick={handleGetActorState}
          disabled={loadingStates.actorState}
        &gt;
          {loadingStates.actorState ? &quot;Loading...&quot; : &quot;Get Actor State&quot;}
        &lt;/button&gt;

        {actorState &amp;&amp; (
          &lt;div className=&quot;response&quot;&gt;
            &lt;pre style={{ margin: 0, fontSize: &quot;13px&quot;, overflow: &quot;auto&quot; }}&gt;
              {JSON.stringify(actorState, null, 2)}
            &lt;/pre&gt;
          &lt;/div&gt;
        )}
      &lt;/div&gt;

      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Connection State&lt;/h3&gt;
        &lt;p style={{ marginBottom: &quot;15px&quot; }}&gt;
          State specific to the current connection. Each connection has its own isolated state.
        &lt;/p&gt;

        &lt;button
          className=&quot;btn btn-primary&quot;
          onClick={handleGetConnState}
          disabled={loadingStates.connState}
        &gt;
          {loadingStates.connState ? &quot;Loading...&quot; : &quot;Get Connection State&quot;}
        &lt;/button&gt;

        {connState &amp;&amp; (
          &lt;div className=&quot;response&quot;&gt;
            &lt;pre style={{ margin: 0, fontSize: &quot;13px&quot;, overflow: &quot;auto&quot; }}&gt;
              {JSON.stringify(connState, null, 2)}
            &lt;/pre&gt;
          &lt;/div&gt;
        )}
      &lt;/div&gt;
    &lt;/div&gt;
  );
}">
<input type="hidden" name="project[files][src/frontend/components/tabs/RawHttpTab.tsx]" value="import { useState } from &quot;react&quot;;
import type { AppState } from &quot;../../App&quot;;

interface TabProps {
  state: AppState;
  updateState: (updates: Partial&lt;AppState&gt;) =&gt; void;
  client: any;
  actorHandle: any;
}

export default function RawHttpTab({ state }: TabProps) {
  const [method, setMethod] = useState(&quot;GET&quot;);
  const [path, setPath] = useState(&quot;/api/hello&quot;);
  const [headers, setHeaders] = useState(&quot;{}&quot;);
  const [body, setBody] = useState(&quot;&quot;);
  const [response, setResponse] = useState(&quot;&quot;);
  const [isLoading, setIsLoading] = useState(false);

  const parseHeaders = (headersString: string) =&gt; {
    try {
      return JSON.parse(headersString);
    } catch {
      return {};
    }
  };

  const getActorUrl = () =&gt; {
    const baseUrl = &quot;http://localhost:8080&quot;;
    const actorPath = state.actorKey ?
      `/actors/${state.actorName}/${encodeURIComponent(state.actorKey)}` :
      `/actors/${state.actorName}`;
    return `${baseUrl}${actorPath}`;
  };

  const handleSendRequest = async () =&gt; {
    setIsLoading(true);
    setResponse(&quot;&quot;);

    try {
      const url = `${getActorUrl()}${path}`;
      const requestHeaders = parseHeaders(headers);

      const requestOptions: RequestInit = {
        method,
        headers: {
          &quot;Content-Type&quot;: &quot;application/json&quot;,
          ...requestHeaders,
        },
      };

      if (method !== &quot;GET&quot; &amp;&amp; method !== &quot;HEAD&quot; &amp;&amp; body) {
        requestOptions.body = body;
      }

      const startTime = Date.now();
      const res = await fetch(url, requestOptions);
      const endTime = Date.now();

      const responseHeaders = Object.fromEntries(res.headers.entries());
      const responseBody = await res.text();

      const responseData = {
        status: res.status,
        statusText: res.statusText,
        duration: `${endTime - startTime}ms`,
        headers: responseHeaders,
        body: responseBody,
        url: url,
      };

      setResponse(JSON.stringify(responseData, null, 2));
    } catch (error) {
      setResponse(`Error: ${error instanceof Error ? error.message : String(error)}`);
    } finally {
      setIsLoading(false);
    }
  };

  const predefinedPaths = [
    &quot;/api/hello&quot;,
    &quot;/api/echo&quot;,
    &quot;/api/stats&quot;,
    &quot;/api/headers&quot;,
    &quot;/api/json&quot;,
    &quot;/api/custom?param=value&quot;,
  ];

  const exampleRequests = [
    {
      name: &quot;Get Hello&quot;,
      method: &quot;GET&quot;,
      path: &quot;/api/hello&quot;,
      headers: &quot;{}&quot;,
      body: &quot;&quot;,
    },
    {
      name: &quot;Echo POST&quot;,
      method: &quot;POST&quot;,
      path: &quot;/api/echo&quot;,
      headers: &#39;{&quot;Content-Type&quot;: &quot;text/plain&quot;}&#39;,
      body: &quot;Hello from client!&quot;,
    },
    {
      name: &quot;JSON POST&quot;,
      method: &quot;POST&quot;,
      path: &quot;/api/json&quot;,
      headers: &#39;{&quot;Content-Type&quot;: &quot;application/json&quot;}&#39;,
      body: &#39;{&quot;message&quot;: &quot;Hello&quot;, &quot;timestamp&quot;: 1234567890}&#39;,
    },
    {
      name: &quot;Get Stats&quot;,
      method: &quot;GET&quot;,
      path: &quot;/api/stats&quot;,
      headers: &quot;{}&quot;,
      body: &quot;&quot;,
    },
  ];

  const loadExample = (example: typeof exampleRequests[0]) =&gt; {
    setMethod(example.method);
    setPath(example.path);
    setHeaders(example.headers);
    setBody(example.body);
  };

  return (
    &lt;div&gt;
      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Raw HTTP Request Builder&lt;/h3&gt;

        &lt;div className=&quot;form-grid&quot;&gt;
          &lt;div className=&quot;form-group&quot;&gt;
            &lt;label&gt;Method:&lt;/label&gt;
            &lt;select
              className=&quot;form-control&quot;
              value={method}
              onChange={(e) =&gt; setMethod(e.target.value)}
            &gt;
              &lt;option value=&quot;GET&quot;&gt;GET&lt;/option&gt;
              &lt;option value=&quot;POST&quot;&gt;POST&lt;/option&gt;
              &lt;option value=&quot;PUT&quot;&gt;PUT&lt;/option&gt;
              &lt;option value=&quot;DELETE&quot;&gt;DELETE&lt;/option&gt;
              &lt;option value=&quot;PATCH&quot;&gt;PATCH&lt;/option&gt;
              &lt;option value=&quot;HEAD&quot;&gt;HEAD&lt;/option&gt;
            &lt;/select&gt;
          &lt;/div&gt;

          &lt;div className=&quot;form-group&quot;&gt;
            &lt;label&gt;Path:&lt;/label&gt;
            &lt;select
              className=&quot;form-control&quot;
              value={path}
              onChange={(e) =&gt; setPath(e.target.value)}
            &gt;
              {predefinedPaths.map(p =&gt; (
                &lt;option key={p} value={p}&gt;{p}&lt;/option&gt;
              ))}
            &lt;/select&gt;
          &lt;/div&gt;
        &lt;/div&gt;

        &lt;div className=&quot;form-group&quot; style={{ marginBottom: &quot;15px&quot; }}&gt;
          &lt;label&gt;Custom Path:&lt;/label&gt;
          &lt;input
            className=&quot;form-control&quot;
            type=&quot;text&quot;
            value={path}
            onChange={(e) =&gt; setPath(e.target.value)}
            placeholder=&quot;/api/custom&quot;
          /&gt;
        &lt;/div&gt;

        &lt;div className=&quot;form-group&quot; style={{ marginBottom: &quot;15px&quot; }}&gt;
          &lt;label&gt;Headers (JSON):&lt;/label&gt;
          &lt;textarea
            className=&quot;form-control textarea&quot;
            value={headers}
            onChange={(e) =&gt; setHeaders(e.target.value)}
            placeholder=&#39;{&quot;Content-Type&quot;: &quot;application/json&quot;}&#39;
            rows={3}
          /&gt;
        &lt;/div&gt;

        {method !== &quot;GET&quot; &amp;&amp; method !== &quot;HEAD&quot; &amp;&amp; (
          &lt;div className=&quot;form-group&quot; style={{ marginBottom: &quot;15px&quot; }}&gt;
            &lt;label&gt;Body:&lt;/label&gt;
            &lt;textarea
              className=&quot;form-control textarea&quot;
              value={body}
              onChange={(e) =&gt; setBody(e.target.value)}
              placeholder=&quot;Request body...&quot;
              rows={4}
            /&gt;
          &lt;/div&gt;
        )}

        &lt;div style={{ marginBottom: &quot;15px&quot; }}&gt;
          &lt;button
            className=&quot;btn btn-primary&quot;
            onClick={handleSendRequest}
            disabled={isLoading}
          &gt;
            {isLoading ? &quot;Sending...&quot; : &quot;Send Request&quot;}
          &lt;/button&gt;
        &lt;/div&gt;

        &lt;div style={{
          background: &quot;var(--bg-tertiary)&quot;,
          border: &quot;1px solid var(--border-secondary)&quot;,
          borderRadius: &quot;4px&quot;,
          padding: &quot;10px&quot;,
          marginBottom: &quot;15px&quot;,
          fontSize: &quot;13px&quot;
        }}&gt;
          &lt;strong&gt;Target URL:&lt;/strong&gt; &lt;code&gt;{getActorUrl()}{path}&lt;/code&gt;
        &lt;/div&gt;
      &lt;/div&gt;

      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Example Requests&lt;/h3&gt;
        &lt;div style={{ display: &quot;flex&quot;, gap: &quot;10px&quot;, flexWrap: &quot;wrap&quot;, marginBottom: &quot;15px&quot; }}&gt;
          {exampleRequests.map(example =&gt; (
            &lt;button
              key={example.name}
              className=&quot;btn&quot;
              onClick={() =&gt; loadExample(example)}
              style={{ fontSize: &quot;12px&quot; }}
            &gt;
              {example.name}
            &lt;/button&gt;
          ))}
        &lt;/div&gt;
      &lt;/div&gt;

      {response &amp;&amp; (
        &lt;div className=&quot;section&quot;&gt;
          &lt;h3&gt;Response&lt;/h3&gt;
          &lt;div className=&quot;response&quot;&gt;
            {response}
          &lt;/div&gt;
        &lt;/div&gt;
      )}
    &lt;/div&gt;
  );
}">
<input type="hidden" name="project[files][src/frontend/components/tabs/RawWebSocketTab.tsx]" value="import { useState, useEffect, useRef } from &quot;react&quot;;
import type { AppState } from &quot;../../App&quot;;

interface TabProps {
  state: AppState;
  updateState: (updates: Partial&lt;AppState&gt;) =&gt; void;
  client: any;
  actorHandle: any;
}

interface Message {
  id: string;
  type: &quot;sent&quot; | &quot;received&quot;;
  data: string;
  timestamp: number;
  isBinary: boolean;
}

export default function RawWebSocketTab({ state }: TabProps) {
  const [message, setMessage] = useState(&#39;{&quot;type&quot;: &quot;ping&quot;, &quot;timestamp&quot;: 0}&#39;);
  const [isBinary, setIsBinary] = useState(false);
  const [messages, setMessages] = useState&lt;Message[]&gt;([]);
  const [isConnected, setIsConnected] = useState(false);
  const [connectionStatus, setConnectionStatus] = useState(&quot;disconnected&quot;);
  const [connectionError, setConnectionError] = useState(&quot;&quot;);

  const websocketRef = useRef&lt;WebSocket | null&gt;(null);
  const messageIdCounter = useRef(0);

  const getWebSocketUrl = () =&gt; {
    const wsProtocol = window.location.protocol === &quot;https:&quot; ? &quot;wss:&quot; : &quot;ws:&quot;;
    const actorPath = state.actorKey ?
      `/actors/${state.actorName}/${encodeURIComponent(state.actorKey)}/ws` :
      `/actors/${state.actorName}/ws`;
    return `${wsProtocol}//localhost:8080${actorPath}`;
  };

  const addMessage = (type: &quot;sent&quot; | &quot;received&quot;, data: string, isBinary = false) =&gt; {
    const message: Message = {
      id: `msg-${++messageIdCounter.current}`,
      type,
      data,
      timestamp: Date.now(),
      isBinary,
    };
    setMessages(prev =&gt; [...prev, message].slice(-50)); // Keep last 50 messages
  };

  const connectWebSocket = () =&gt; {
    if (websocketRef.current?.readyState === WebSocket.OPEN) {
      return;
    }

    setConnectionStatus(&quot;connecting&quot;);
    setConnectionError(&quot;&quot;);

    try {
      const ws = new WebSocket(getWebSocketUrl());
      websocketRef.current = ws;

      ws.onopen = () =&gt; {
        setIsConnected(true);
        setConnectionStatus(&quot;connected&quot;);
        addMessage(&quot;received&quot;, &quot;WebSocket connected&quot;, false);
      };

      ws.onmessage = (event) =&gt; {
        const data = event.data;
        const isBinary = data instanceof ArrayBuffer || data instanceof Blob;

        if (isBinary) {
          // Convert binary data to hex string for display
          if (data instanceof Blob) {
            data.arrayBuffer().then(ab =&gt; {
              const bytes = new Uint8Array(ab);
              const hex = Array.from(bytes).map(b =&gt; b.toString(16).padStart(2, &#39;0&#39;)).join(&#39; &#39;);
              addMessage(&quot;received&quot;, `[Binary: ${bytes.length} bytes] ${hex}`, true);
            });
          } else {
            const bytes = new Uint8Array(data);
            const hex = Array.from(bytes).map(b =&gt; b.toString(16).padStart(2, &#39;0&#39;)).join(&#39; &#39;);
            addMessage(&quot;received&quot;, `[Binary: ${bytes.length} bytes] ${hex}`, true);
          }
        } else {
          addMessage(&quot;received&quot;, String(data), false);
        }
      };

      ws.onclose = (event) =&gt; {
        setIsConnected(false);
        setConnectionStatus(&quot;disconnected&quot;);
        addMessage(&quot;received&quot;, `WebSocket closed (code: ${event.code}, reason: ${event.reason})`, false);
      };

      ws.onerror = () =&gt; {
        setConnectionError(&quot;WebSocket error occurred&quot;);
        addMessage(&quot;received&quot;, &quot;WebSocket error&quot;, false);
      };
    } catch (error) {
      setConnectionError(error instanceof Error ? error.message : &quot;Connection failed&quot;);
      setConnectionStatus(&quot;disconnected&quot;);
    }
  };

  const disconnectWebSocket = () =&gt; {
    if (websocketRef.current) {
      websocketRef.current.close();
      websocketRef.current = null;
    }
  };

  const sendMessage = () =&gt; {
    if (!websocketRef.current || websocketRef.current.readyState !== WebSocket.OPEN) {
      return;
    }

    try {
      if (isBinary) {
        // Convert hex string to binary data
        const hexString = message.replace(/\s/g, &quot;&quot;);
        const bytes = new Uint8Array(hexString.length / 2);
        for (let i = 0; i &lt; hexString.length; i += 2) {
          bytes[i / 2] = parseInt(hexString.substr(i, 2), 16);
        }
        websocketRef.current.send(bytes);
        addMessage(&quot;sent&quot;, `[Binary: ${bytes.length} bytes] ${hexString}`, true);
      } else {
        websocketRef.current.send(message);
        addMessage(&quot;sent&quot;, message, false);
      }
    } catch (error) {
      addMessage(&quot;received&quot;, `Send error: ${error instanceof Error ? error.message : String(error)}`, false);
    }
  };

  const clearMessages = () =&gt; {
    setMessages([]);
  };

  const formatTimestamp = (timestamp: number) =&gt; {
    return new Date(timestamp).toLocaleTimeString();
  };

  // Update ping message timestamp
  const updatePingTimestamp = () =&gt; {
    if (message.includes(&#39;&quot;timestamp&quot;&#39;)) {
      try {
        const parsed = JSON.parse(message);
        parsed.timestamp = Date.now();
        setMessage(JSON.stringify(parsed, null, 2));
      } catch {
        // Not JSON, ignore
      }
    }
  };

  const exampleMessages = [
    { name: &quot;Ping&quot;, data: &#39;{&quot;type&quot;: &quot;ping&quot;, &quot;timestamp&quot;: 0}&#39;, binary: false },
    { name: &quot;Echo&quot;, data: &#39;{&quot;type&quot;: &quot;echo&quot;, &quot;message&quot;: &quot;Hello WebSocket!&quot;}&#39;, binary: false },
    { name: &quot;Get Stats&quot;, data: &#39;{&quot;type&quot;: &quot;getStats&quot;}&#39;, binary: false },
    { name: &quot;Binary Data&quot;, data: &quot;48 65 6c 6c 6f&quot;, binary: true },
  ];

  const loadExample = (example: typeof exampleMessages[0]) =&gt; {
    if (example.name === &quot;Ping&quot;) {
      const pingData = JSON.parse(example.data);
      pingData.timestamp = Date.now();
      setMessage(JSON.stringify(pingData, null, 2));
    } else {
      setMessage(example.data);
    }
    setIsBinary(example.binary);
  };

  // Cleanup on unmount
  useEffect(() =&gt; {
    return () =&gt; {
      disconnectWebSocket();
    };
  }, []);

  return (
    &lt;div&gt;
      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;WebSocket Connection&lt;/h3&gt;

        &lt;div style={{ marginBottom: &quot;15px&quot; }}&gt;
          &lt;div style={{
            padding: &quot;10px&quot;,
            border: &quot;1px solid #ddd&quot;,
            borderRadius: &quot;4px&quot;,
            background: isConnected ? &quot;#d4edda&quot; : &quot;#f8d7da&quot;,
            color: isConnected ? &quot;#155724&quot; : &quot;#721c24&quot;,
            marginBottom: &quot;10px&quot;
          }}&gt;
            Status: {connectionStatus === &quot;connecting&quot; ? &quot;🟡 Connecting...&quot; :
                     isConnected ? &quot;🟢 Connected&quot; : &quot;🔴 Disconnected&quot;}
            {connectionError &amp;&amp; ` - ${connectionError}`}
          &lt;/div&gt;

          &lt;div style={{
            fontSize: &quot;13px&quot;,
            color: &quot;#666&quot;,
            marginBottom: &quot;10px&quot;
          }}&gt;
            Target: &lt;code&gt;{getWebSocketUrl()}&lt;/code&gt;
          &lt;/div&gt;

          &lt;div style={{ display: &quot;flex&quot;, gap: &quot;10px&quot; }}&gt;
            &lt;button
              className=&quot;btn btn-primary&quot;
              onClick={connectWebSocket}
              disabled={isConnected || connectionStatus === &quot;connecting&quot;}
            &gt;
              Connect
            &lt;/button&gt;
            &lt;button
              className=&quot;btn&quot;
              onClick={disconnectWebSocket}
              disabled={!isConnected}
            &gt;
              Disconnect
            &lt;/button&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;

      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Send Message&lt;/h3&gt;

        &lt;div className=&quot;form-group&quot; style={{ marginBottom: &quot;15px&quot; }}&gt;
          &lt;label&gt;Message Type:&lt;/label&gt;
          &lt;div className=&quot;toggle&quot;&gt;
            &lt;button
              className={!isBinary ? &quot;active&quot; : &quot;&quot;}
              onClick={() =&gt; setIsBinary(false)}
            &gt;
              Text/JSON
            &lt;/button&gt;
            &lt;button
              className={isBinary ? &quot;active&quot; : &quot;&quot;}
              onClick={() =&gt; setIsBinary(true)}
            &gt;
              Binary (Hex)
            &lt;/button&gt;
          &lt;/div&gt;
        &lt;/div&gt;

        &lt;div className=&quot;form-group&quot; style={{ marginBottom: &quot;15px&quot; }}&gt;
          &lt;label&gt;{isBinary ? &quot;Binary Data (Hex):&quot; : &quot;Message (Text/JSON):&quot;}&lt;/label&gt;
          &lt;textarea
            className=&quot;form-control textarea&quot;
            value={message}
            onChange={(e) =&gt; setMessage(e.target.value)}
            placeholder={isBinary ? &quot;48 65 6c 6c 6f (Hello in hex)&quot; : &#39;{&quot;type&quot;: &quot;ping&quot;}&#39;}
            rows={4}
          /&gt;
        &lt;/div&gt;

        &lt;div style={{ display: &quot;flex&quot;, gap: &quot;10px&quot;, marginBottom: &quot;15px&quot; }}&gt;
          &lt;button
            className=&quot;btn btn-primary&quot;
            onClick={sendMessage}
            disabled={!isConnected || !message.trim()}
          &gt;
            Send
          &lt;/button&gt;

          {!isBinary &amp;&amp; message.includes(&#39;&quot;timestamp&quot;&#39;) &amp;&amp; (
            &lt;button
              className=&quot;btn&quot;
              onClick={updatePingTimestamp}
            &gt;
              Update Timestamp
            &lt;/button&gt;
          )}
        &lt;/div&gt;

        &lt;div className=&quot;section&quot;&gt;
          &lt;h4&gt;Example Messages&lt;/h4&gt;
          &lt;div style={{ display: &quot;flex&quot;, gap: &quot;10px&quot;, flexWrap: &quot;wrap&quot; }}&gt;
            {exampleMessages.map(example =&gt; (
              &lt;button
                key={example.name}
                className=&quot;btn&quot;
                onClick={() =&gt; loadExample(example)}
                style={{ fontSize: &quot;12px&quot; }}
              &gt;
                {example.name}
              &lt;/button&gt;
            ))}
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;

      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Message History ({messages.length})&lt;/h3&gt;

        &lt;div style={{ marginBottom: &quot;15px&quot; }}&gt;
          &lt;button
            className=&quot;btn&quot;
            onClick={clearMessages}
          &gt;
            Clear History
          &lt;/button&gt;
        &lt;/div&gt;

        {messages.length === 0 ? (
          &lt;div style={{ textAlign: &quot;center&quot;, color: &quot;#666&quot;, padding: &quot;20px&quot; }}&gt;
            No messages yet. Connect and send a message to see the conversation.
          &lt;/div&gt;
        ) : (
          &lt;div className=&quot;event-list&quot;&gt;
            {messages.map(msg =&gt; (
              &lt;div key={msg.id} className=&quot;event-item&quot;&gt;
                &lt;span className=&quot;timestamp&quot;&gt;{formatTimestamp(msg.timestamp)}&lt;/span&gt;
                &lt;span className={`name ${msg.type === &quot;sent&quot; ? &quot;sent&quot; : &quot;received&quot;}`}&gt;
                  {msg.type === &quot;sent&quot; ? &quot;→ SENT&quot; : &quot;← RECEIVED&quot;}
                  {msg.isBinary &amp;&amp; &quot; (BINARY)&quot;}
                &lt;/span&gt;
                &lt;div style={{ marginTop: &quot;5px&quot;, color: &quot;#333&quot;, fontFamily: &quot;monospace&quot;, fontSize: &quot;12px&quot; }}&gt;
                  {msg.data}
                &lt;/div&gt;
              &lt;/div&gt;
            ))}
          &lt;/div&gt;
        )}
      &lt;/div&gt;
    &lt;/div&gt;
  );
}">
<input type="hidden" name="project[files][src/frontend/components/tabs/ScheduleTab.tsx]" value="import { useState } from &quot;react&quot;;
import type { AppState } from &quot;../../App&quot;;

interface TabProps {
  state: AppState;
  updateState: (updates: Partial&lt;AppState&gt;) =&gt; void;
  client: any;
  actorHandle: any;
}

interface AlarmEntry {
  id: string;
  scheduledFor: number;
  data?: any;
  status: &quot;scheduled&quot; | &quot;triggered&quot;;
}

export default function ScheduleTab({ state, actorHandle }: TabProps) {
  const [atTimestamp, setAtTimestamp] = useState(&quot;&quot;);
  const [afterDelay, setAfterDelay] = useState(&quot;5000&quot;);
  const [alarmData, setAlarmData] = useState(&quot;{}&quot;);
  const [response, setResponse] = useState(&quot;&quot;);
  const [isLoading, setIsLoading] = useState(false);
  const [alarmHistory, setAlarmHistory] = useState&lt;AlarmEntry[]&gt;([]);

  const getCurrentTimestamp = () =&gt; {
    const now = new Date();
    const offset = now.getTimezoneOffset() * 60000;
    const localTime = new Date(now.getTime() - offset);
    return localTime.toISOString().slice(0, 16);
  };

  const parseAlarmData = (dataString: string) =&gt; {
    try {
      return JSON.parse(dataString);
    } catch {
      return {};
    }
  };

  const callAction = async (actionName: string, args: any[]) =&gt; {
    return await actorHandle[actionName](...args);
  };

  const handleScheduleAt = async () =&gt; {
    if (!atTimestamp) return;

    setIsLoading(true);
    setResponse(&quot;&quot;);

    try {
      const timestamp = new Date(atTimestamp).getTime();
      const data = parseAlarmData(alarmData);

      const result = await callAction(&quot;scheduleAlarmAt&quot;, [timestamp, data]);
      setResponse(JSON.stringify(result, null, 2));

      // Add to local tracking
      setAlarmHistory(prev =&gt; [...prev, {
        id: result.id,
        scheduledFor: result.scheduledFor,
        data,
        status: &quot;scheduled&quot;,
      }]);
    } catch (error) {
      setResponse(`Error: ${error instanceof Error ? error.message : String(error)}`);
    } finally {
      setIsLoading(false);
    }
  };

  const handleScheduleAfter = async () =&gt; {
    const delay = parseInt(afterDelay);
    if (isNaN(delay) || delay &lt; 0) return;

    setIsLoading(true);
    setResponse(&quot;&quot;);

    try {
      const data = parseAlarmData(alarmData);

      const result = await callAction(&quot;scheduleAlarmAfter&quot;, [delay, data]);
      setResponse(JSON.stringify(result, null, 2));

      // Add to local tracking
      setAlarmHistory(prev =&gt; [...prev, {
        id: result.id,
        scheduledFor: result.scheduledFor,
        data,
        status: &quot;scheduled&quot;,
      }]);
    } catch (error) {
      setResponse(`Error: ${error instanceof Error ? error.message : String(error)}`);
    } finally {
      setIsLoading(false);
    }
  };

  const handleGetHistory = async () =&gt; {
    setIsLoading(true);
    setResponse(&quot;&quot;);

    try {
      const result = await callAction(&quot;getAlarmHistory&quot;, []);
      setResponse(JSON.stringify(result, null, 2));

      // Update status of triggered alarms
      const triggeredIds = result.map((entry: any) =&gt; entry.id);
      setAlarmHistory(prev =&gt; prev.map(alarm =&gt; ({
        ...alarm,
        status: triggeredIds.includes(alarm.id) ? &quot;triggered&quot; : alarm.status,
      })));
    } catch (error) {
      setResponse(`Error: ${error instanceof Error ? error.message : String(error)}`);
    } finally {
      setIsLoading(false);
    }
  };

  const handleClearHistory = async () =&gt; {
    setIsLoading(true);
    setResponse(&quot;&quot;);

    try {
      const result = await callAction(&quot;clearAlarmHistory&quot;, []);
      setResponse(JSON.stringify(result, null, 2));
      setAlarmHistory([]);
    } catch (error) {
      setResponse(`Error: ${error instanceof Error ? error.message : String(error)}`);
    } finally {
      setIsLoading(false);
    }
  };

  const formatTime = (timestamp: number) =&gt; {
    return new Date(timestamp).toLocaleString();
  };

  if (state.actorName !== &quot;demo&quot;) {
    return (
      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Scheduling&lt;/h3&gt;
        &lt;p&gt;Scheduling features are only available for the &lt;code&gt;demo&lt;/code&gt; actor. Please select the demo actor in the header.&lt;/p&gt;
      &lt;/div&gt;
    );
  }

  return (
    &lt;div&gt;
      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Schedule Alarm At Specific Time&lt;/h3&gt;
        &lt;div className=&quot;form-grid&quot;&gt;
          &lt;div className=&quot;form-group&quot;&gt;
            &lt;label&gt;Timestamp:&lt;/label&gt;
            &lt;input
              className=&quot;form-control&quot;
              type=&quot;datetime-local&quot;
              value={atTimestamp}
              onChange={(e) =&gt; setAtTimestamp(e.target.value)}
              min={getCurrentTimestamp()}
            /&gt;
          &lt;/div&gt;

          &lt;div className=&quot;form-group&quot;&gt;
            &lt;label&gt;Alarm Data (JSON):&lt;/label&gt;
            &lt;input
              className=&quot;form-control&quot;
              type=&quot;text&quot;
              value={alarmData}
              onChange={(e) =&gt; setAlarmData(e.target.value)}
              placeholder=&#39;{&quot;message&quot;: &quot;Hello&quot;}&#39;
            /&gt;
          &lt;/div&gt;

          &lt;button
            className=&quot;btn btn-primary&quot;
            onClick={handleScheduleAt}
            disabled={isLoading || !atTimestamp}
          &gt;
            schedule.at()
          &lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;

      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Schedule Alarm After Delay&lt;/h3&gt;
        &lt;div className=&quot;form-grid&quot;&gt;
          &lt;div className=&quot;form-group&quot;&gt;
            &lt;label&gt;Delay (ms):&lt;/label&gt;
            &lt;input
              className=&quot;form-control&quot;
              type=&quot;number&quot;
              value={afterDelay}
              onChange={(e) =&gt; setAfterDelay(e.target.value)}
              min=&quot;0&quot;
              step=&quot;1000&quot;
            /&gt;
          &lt;/div&gt;

          &lt;div className=&quot;form-group&quot;&gt;
            &lt;label&gt;Alarm Data (JSON):&lt;/label&gt;
            &lt;input
              className=&quot;form-control&quot;
              type=&quot;text&quot;
              value={alarmData}
              onChange={(e) =&gt; setAlarmData(e.target.value)}
              placeholder=&#39;{&quot;message&quot;: &quot;Hello&quot;}&#39;
            /&gt;
          &lt;/div&gt;

          &lt;button
            className=&quot;btn btn-primary&quot;
            onClick={handleScheduleAfter}
            disabled={isLoading}
          &gt;
            schedule.after()
          &lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;

      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Alarm Management&lt;/h3&gt;
        &lt;div style={{ display: &quot;flex&quot;, gap: &quot;10px&quot;, marginBottom: &quot;15px&quot; }}&gt;
          &lt;button
            className=&quot;btn&quot;
            onClick={handleGetHistory}
            disabled={isLoading}
          &gt;
            Get Alarm History
          &lt;/button&gt;
          &lt;button
            className=&quot;btn&quot;
            onClick={handleClearHistory}
            disabled={isLoading}
          &gt;
            Clear History
          &lt;/button&gt;
        &lt;/div&gt;

        {alarmHistory.length &gt; 0 &amp;&amp; (
          &lt;div&gt;
            &lt;h4&gt;Scheduled Alarms&lt;/h4&gt;
            &lt;div style={{ marginBottom: &quot;15px&quot; }}&gt;
              {alarmHistory.map(alarm =&gt; (
                &lt;div
                  key={alarm.id}
                  style={{
                    padding: &quot;10px&quot;,
                    border: &quot;1px solid #ddd&quot;,
                    borderRadius: &quot;4px&quot;,
                    marginBottom: &quot;5px&quot;,
                    background: alarm.status === &quot;triggered&quot; ? &quot;#d4edda&quot; : &quot;#fff3cd&quot;,
                  }}
                &gt;
                  &lt;strong&gt;{alarm.id}&lt;/strong&gt; - {alarm.status === &quot;triggered&quot; ? &quot;✅ Triggered&quot; : &quot;⏰ Scheduled&quot;}
                  &lt;br /&gt;
                  Scheduled for: {formatTime(alarm.scheduledFor)}
                  {alarm.data &amp;&amp; Object.keys(alarm.data).length &gt; 0 &amp;&amp; (
                    &lt;&gt;
                      &lt;br /&gt;
                      Data: {JSON.stringify(alarm.data)}
                    &lt;/&gt;
                  )}
                &lt;/div&gt;
              ))}
            &lt;/div&gt;
          &lt;/div&gt;
        )}

        {response &amp;&amp; (
          &lt;div className=&quot;response&quot;&gt;
            {response}
          &lt;/div&gt;
        )}
      &lt;/div&gt;
    &lt;/div&gt;
  );
}">
<input type="hidden" name="project[files][src/frontend/components/tabs/SleepTab.tsx]" value="import { useState } from &quot;react&quot;;
import type { AppState } from &quot;../../App&quot;;

interface TabProps {
  state: AppState;
  updateState: (updates: Partial&lt;AppState&gt;) =&gt; void;
  client: any;
  actorHandle: any;
}

export default function SleepTab({ state, actorHandle }: TabProps) {
  const [response, setResponse] = useState(&quot;&quot;);
  const [isLoading, setIsLoading] = useState(false);

  const callAction = async (actionName: string, args: any[] = []) =&gt; {
    return await actorHandle[actionName](...args);
  };

  const handleTriggerSleep = async () =&gt; {
    setIsLoading(true);
    setResponse(&quot;&quot;);

    try {
      const result = await callAction(&quot;triggerSleep&quot;);
      setResponse(JSON.stringify(result, null, 2));
    } catch (error) {
      setResponse(`Error: ${error instanceof Error ? error.message : String(error)}`);
    } finally {
      setIsLoading(false);
    }
  };

  const handleGetLifecycleInfo = async () =&gt; {
    setIsLoading(true);
    setResponse(&quot;&quot;);

    try {
      const result = await callAction(&quot;getLifecycleInfo&quot;);
      setResponse(JSON.stringify(result, null, 2));
    } catch (error) {
      setResponse(`Error: ${error instanceof Error ? error.message : String(error)}`);
    } finally {
      setIsLoading(false);
    }
  };

  if (state.actorName !== &quot;demo&quot;) {
    return (
      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Sleep &amp; Lifecycle&lt;/h3&gt;
        &lt;p&gt;Sleep and lifecycle features are only available for the &lt;code&gt;demo&lt;/code&gt; actor. Please select the demo actor in the header.&lt;/p&gt;
      &lt;/div&gt;
    );
  }

  return (
    &lt;div&gt;
      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Force Sleep&lt;/h3&gt;
        &lt;p style={{ marginBottom: &quot;15px&quot; }}&gt;
          The &lt;code&gt;sleep()&lt;/code&gt; method forces an actor to go dormant immediately.
          This is useful for testing actor lifecycle and persistence.
        &lt;/p&gt;

        &lt;button
          className=&quot;btn btn-primary&quot;
          onClick={handleTriggerSleep}
          disabled={isLoading}
        &gt;
          {isLoading ? &quot;Triggering...&quot; : &quot;Trigger Sleep&quot;}
        &lt;/button&gt;
      &lt;/div&gt;

      &lt;div className=&quot;section&quot;&gt;
        &lt;h3&gt;Lifecycle Information&lt;/h3&gt;
        &lt;p style={{ marginBottom: &quot;15px&quot; }}&gt;
          View how many times the actor has been started and stopped.
          This demonstrates the actor lifecycle across sleep/wake cycles.
        &lt;/p&gt;

        &lt;button
          className=&quot;btn&quot;
          onClick={handleGetLifecycleInfo}
          disabled={isLoading}
        &gt;
          Get Lifecycle Info
        &lt;/button&gt;
      &lt;/div&gt;

      {response &amp;&amp; (
        &lt;div className=&quot;section&quot;&gt;
          &lt;h3&gt;Response&lt;/h3&gt;
          &lt;div className=&quot;response&quot;&gt;
            {response}
          &lt;/div&gt;
        &lt;/div&gt;
      )}
    &lt;/div&gt;
  );
}">
<input type="hidden" name="project[description]" value="generated by https://pkg.pr.new">
<input type="hidden" name="project[template]" value="node">
<input type="hidden" name="project[title]" value="example-kitchen-sink">
</form>
<script>document.getElementById("mainForm").submit();</script>

</body></html>