diff --git a/docs/COMMANDS.md b/docs/COMMANDS.md index 645db88b1..a62468dea 100644 --- a/docs/COMMANDS.md +++ b/docs/COMMANDS.md @@ -4,7 +4,7 @@ | Command | Implemented Flags | Missing Flags | Prerequisites | Basic Logic | Test Cases | Status | |---------|-------------------|---------------|---------------|-------------|------------|--------| -| `run-instances` | `--image-id`, `--instance-type`, `--count` (Min/MaxCount), `--key-name`, `--user-data`, `--block-device-mappings` (DeviceName, VolumeSize, VolumeType, Iops, DeleteOnTermination) | `--security-group-ids`, `--subnet-id`, `--placement`, `--tag-specifications`, `--dry-run`, `--client-token`, `--disable-api-termination`, `--ebs-optimized`, `--iam-instance-profile`, `--network-interfaces`, `--private-ip-address`, `--monitoring`, `--credit-specification`, `--cpu-options`, `--metadata-options`, `--launch-template`, `--hibernate-options` | `describe-images` (AMI must exist), `create-key-pair` (optional), VPC/SG (optional) | Gateway parses AWS query → NATS `ec2.runinstances` → daemon creates QEMU/KVM VM with viperblock-backed root volume via NBD → cloud-init injects user-data/keys → returns reservation with instance ID | 1. Launch with valid AMI and key pair
2. Launch with invalid AMI ID (error)
3. Launch with block device mappings (custom volume size)
4. Launch multiple instances (MinCount/MaxCount)
5. DryRun returns validation-only
6. Invalid instance type returns error | **DONE** | +| `run-instances` | `--image-id`, `--instance-type`, `--count` (Min/MaxCount), `--key-name`, `--user-data`, `--subnet-id` (auto-creates ENI, assigns private IP), `--block-device-mappings` (DeviceName, VolumeSize, VolumeType, Iops, DeleteOnTermination) | `--security-group-ids`, `--placement`, `--tag-specifications`, `--dry-run`, `--client-token`, `--disable-api-termination`, `--ebs-optimized`, `--iam-instance-profile`, `--network-interfaces`, `--private-ip-address`, `--monitoring`, `--credit-specification`, `--cpu-options`, `--metadata-options`, `--launch-template`, `--hibernate-options` | `describe-images` (AMI must exist), `create-key-pair` (optional), VPC/SG (optional) | Gateway parses AWS query → NATS `ec2.runinstances` → daemon creates QEMU/KVM VM with viperblock-backed root volume via NBD → if SubnetId provided, auto-creates ENI with private IP → cloud-init injects user-data/keys → returns reservation with instance ID | 1. Launch with valid AMI and key pair
2. Launch with invalid AMI ID (error)
3. Launch with block device mappings (custom volume size)
4. Launch multiple instances (MinCount/MaxCount)
5. Launch with subnet-id (auto-creates ENI)
6. Invalid instance type returns error | **DONE** | | `describe-instances` | `--instance-ids` | `--filters`, `--max-results`, `--next-token`, `--dry-run` | None | Gateway fans out NATS `ec2.DescribeInstances` to all nodes (no queue group) → each daemon returns local instances → gateway aggregates and returns combined list | 1. Describe all instances (no filter)
2. Describe by instance ID
3. Describe with filters (e.g. instance-state-name)
4. Instance not found returns empty set
5. Multi-node aggregation returns instances from all nodes | **DONE** | | `start-instances` | `--instance-ids` | `--dry-run`, `--force` | `run-instances` (instance must exist in stopped state) | Gateway sends NATS `ec2.cmd.{instance-id}` → daemon restarts stopped QEMU process with same config → state transitions stopped→pending→running | 1. Start a stopped instance
2. Start already-running instance (error: IncorrectInstanceState)
3. Start with invalid instance ID
4. Verify volumes re-mount on start | **DONE** | | `stop-instances` | `--instance-ids` | `--force`, `--hibernate`, `--dry-run` | `run-instances` (instance must be running) | Gateway sends NATS to target node → daemon issues QMP `system_powerdown` for graceful shutdown → monitors heartbeat until QEMU exits → state transitions running→stopping→stopped | 1. Graceful stop of running instance
2. Force stop (kills QEMU process)
3. Stop already-stopped instance (error)
4. Verify ~30s heartbeat detection | **DONE** | @@ -12,7 +12,7 @@ | `reboot-instances` | — | `--instance-ids`, `--dry-run` | `run-instances` (instance must be running) | Gateway sends NATS to target node → daemon issues QMP `system_reset` → instance reboots without stopping | 1. Reboot running instance
2. Reboot stopped instance (error)
3. Verify instance stays in running state after reboot | **NOT STARTED** (parser test exists) | | `describe-instance-types` | `--filters` (capacity filter only) | `--instance-types`, `--max-results`, `--next-token`, `--dry-run`, all other filters | None | Gateway fans out NATS `ec2.DescribeInstanceTypes` to all nodes → each daemon reports supported types (t3.micro/small/medium/large) with vCPU/memory specs → gateway deduplicates and returns | 1. List all instance types
2. Filter by specific type
3. Filter with `capacity=true` shows available slots
4. Verify vCPU/memory specs match hardware | **DONE** | | `modify-instance-attribute` | `--instance-id`, `--instance-type`, `--user-data` | `--disable-api-termination`, `--ebs-optimized`, `--source-dest-check`, `--instance-initiated-shutdown-behavior`, `--block-device-mappings`, `--groups`, `--ena-support`, `--sriov-net-support` | Instance must be stopped (in NATS KV) | Gateway validates input (exactly one attribute per call, instance ID format) → NATS `ec2.ModifyInstanceAttribute` with `hive-workers` queue group → daemon loads stopped instance from JetStream KV → applies attribute change → writes back to KV → returns `{}` on success. **InstanceType**: updates vm.InstanceType, Config, and Instance fields; clears StateReason (enables recovery from instance-type-missing bug). **UserData**: stores decoded content in vm.UserData and re-encodes to base64 for RunInstancesInput (cloud-init on next start). No instance type pre-validation (matches AWS — invalid types accepted, fail at StartInstances time). | 1. Change instance type while stopped
2. Change user data while stopped
3. Modify running instance (error: NotFound — running instances not in KV)
4. Instance not found (error: InvalidInstanceID.NotFound)
5. Instance not stopped (error: IncorrectInstanceState)
6. Invalid instance type accepted (fails on start with InsufficientInstanceCapacity)
7. StateReason cleared on type change (recovery from capacity-unavailable)
8. Missing/malformed instance ID (error: InvalidInstanceID.Malformed)
9. No attribute set (error: InvalidParameterValue)
10. Multiple attributes in one call (error: InvalidParameterValue) | **DONE** | -| `get-console-output` | `--instance-id` | `--latest` (always returns latest), `--dry-run` | Instance must be running on a node, serial console access must be enabled via `enable-serial-console-access` | Gateway sends NATS `ec2.{instanceId}.GetConsoleOutput` (per-instance topic, routed to owning node) → daemon checks account-level serial console access → reads console log file from disk → returns last 64KB base64-encoded with timestamp. Respects `enable-serial-console-access` / `disable-serial-console-access` toggle. | 1. Get output from running instance
2. Empty log file returns empty output
3. Instance not found (error: InvalidInstanceID.NotFound)
4. Serial console disabled (error: SerialConsoleSessionUnavailable)
5. Enable then disable serial console access toggle | **DONE** | +| `get-console-output` | `--instance-id` | `--latest` (always returns latest), `--dry-run` | Instance must be running on a node | Gateway sends NATS `ec2.{instanceId}.GetConsoleOutput` (per-instance topic, routed to owning node) → daemon reads console log file from disk → returns last 64KB base64-encoded with timestamp. Always available regardless of serial console access setting (matches AWS behavior). | 1. Get output from running instance
2. Empty log file returns empty output
3. Instance not found (error: InvalidInstanceID.NotFound) | **DONE** | | `monitor-instances` | — | `--instance-ids` | Instance must exist | Enable basic monitoring (CPU, disk, network) → store metrics in NATS KV → return monitoring state | 1. Enable monitoring
2. Verify monitoring state in describe-instances | **NOT STARTED** | | `unmonitor-instances` | — | `--instance-ids` | Instance must exist | Disable detailed monitoring → revert to basic monitoring → return monitoring state | 1. Disable monitoring
2. Verify monitoring state reverts in describe-instances | **NOT STARTED** | @@ -29,8 +29,8 @@ | Command | Implemented Flags | Missing Flags | Prerequisites | Basic Logic | Test Cases | Status | |---------|-------------------|---------------|---------------|-------------|------------|--------| -| `describe-images` | `--image-ids` (format validation only) | `--owners`, `--executable-users`, `--filters`, `--include-deprecated`, `--include-disabled`, `--max-results`, `--next-token`, `--dry-run` | None | NATS `ec2.DescribeImages` → daemon reads AMI metadata from Predastore S3 buckets (ami-*) → returns image list with state, architecture, block device mappings | 1. List all images
2. Filter by image ID
3. Filter by owner (self/amazon)
4. Non-existent AMI returns empty
5. Verify metadata fields (architecture, state, rootDeviceName) | **DONE** | -| `create-image` | — | `--instance-id`, `--name`, `--description`, `--no-reboot`, `--block-device-mappings`, `--tag-specifications` | Instance must exist | Stop instance (unless --no-reboot) → snapshot root volume via viperblock → create AMI metadata in S3 → register as new AMI → restart instance → return ami-ID | 1. Create image from running instance
2. Create with --no-reboot
3. Invalid instance ID (error)
4. Verify new AMI appears in describe-images
5. Launch new instance from created AMI | **NOT STARTED** | +| `describe-images` | `--image-ids` (format validation only), `--owners` (self, account ID, alias) | `--executable-users`, `--filters`, `--include-deprecated`, `--include-disabled`, `--max-results`, `--next-token`, `--dry-run` | None | NATS `ec2.DescribeImages` → daemon reads AMI metadata from Predastore S3 buckets (ami-*) → filters by ImageIds and Owners → returns image list with state, architecture, block device mappings | 1. List all images
2. Filter by image ID
3. Filter by owner (self/amazon)
4. Non-existent AMI returns empty
5. Verify metadata fields (architecture, state, rootDeviceName) | **DONE** | +| `create-image` | `--instance-id`, `--name`, `--description`, `--tag-specifications` | `--no-reboot`, `--block-device-mappings`, `--dry-run` | Instance must exist (running or stopped) | Gateway validates input → NATS `ec2.{instanceId}.CreateImage` (per-instance topic) → daemon extracts root volume → snapshots via `ebs.snapshot` NATS (running) or offline S3 copy (stopped) → creates AMI metadata in S3 (`{amiId}/config.json`) → stores tags → returns ami-ID. Duplicate AMI name validation enforced. | 1. Create image from running instance
2. Create image from stopped instance
3. Invalid instance ID (error)
4. Duplicate AMI name (error)
5. Verify new AMI appears in describe-images
6. Launch new instance from created AMI | **DONE** | | `register-image` | — | `--name`, `--description`, `--architecture`, `--root-device-name`, `--virtualization-type`, `--block-device-mappings`, `--boot-mode`, `--ena-support`, `--sriov-net-support`, `--tpm-support`, `--imds-support` | Image data must exist in S3 | Create AMI metadata entry in Predastore → assign ami-ID → set state to available → return ami-ID | 1. Register with valid metadata
2. Missing required name (error)
3. Verify registered image in describe-images | **NOT STARTED** | | `deregister-image` | — | `--image-id`, `--dry-run` | AMI must exist, no instances using it | Mark AMI metadata as deregistered in S3 → AMI no longer available for new launches → existing instances unaffected | 1. Deregister existing AMI
2. Deregister non-existent AMI (error)
3. Verify deregistered AMI not in describe-images
4. Existing instances from AMI still run | **NOT STARTED** | | `copy-image` | — | `--source-image-id`, `--source-region`, `--name`, `--description`, `--encrypted`, `--kms-key-id`, `--client-token`, `--copy-image-tags`, `--tag-specifications` | Source AMI must exist | Copy AMI data between regions/nodes in Predastore → create new AMI metadata with new ami-ID → return new ami-ID | 1. Copy image within same region
2. Copy non-existent image (error)
3. Verify copied image independent of source | **NOT STARTED** | @@ -45,7 +45,7 @@ |---------|-------------------|---------------|---------------|-------------|------------|--------| | `describe-volumes` | `--volume-ids` (fast-path lookup), `DeleteOnTermination` (from persisted VolumeMetadata) | `--filters`, `--max-results`, `--next-token`, `--dry-run` | None | NATS `ec2.DescribeVolumes` → daemon queries viperblock for volume metadata → returns volume list with state, size, attachments, type, DeleteOnTermination flag | 1. List all volumes
2. Filter by volume ID
3. Filter by attachment state
4. Non-existent volume returns empty
5. DeleteOnTermination reflects persisted value | **DONE** | | `modify-volume` | `--volume-id`, `--size`, `--volume-type`, `--iops` | `--throughput`, `--dry-run`, `--multi-attach-enabled` | Volume must exist | NATS `ec2.ModifyVolume` → daemon sends resize request to viperblock → NBD does not support live resize, instance must be stopped → returns modification state | 1. Increase volume size
2. Modify volume type
3. Decrease size (error - not supported)
4. Modify attached volume (requires stop/start) | **DONE** | -| `create-volume` | `--size`, `--availability-zone`, `--volume-type` (gp3 only) | `--iops`, `--encrypted`, `--snapshot-id`, `--tag-specifications` | Valid AZ configured via `hive init` | Gateway validates input → NATS `ec2.CreateVolume` → daemon generates vol-ID via viperblock → creates empty volume of specified size → persists config.json to Predastore S3 → returns vol-ID with state=available | 1. Create 80GB gp3 volume
2. Boundary sizes (1 GiB min, 16384 GiB max)
3. Invalid AZ (error)
4. Verify volume in describe-volumes
5. Unsupported volume type (error - only gp3)
6. Size out of range (error) | **DONE** | +| `create-volume` | `--size`, `--availability-zone`, `--volume-type` (gp3 only), `--snapshot-id` (creates volume from snapshot) | `--iops` (hardcoded 3000), `--encrypted` (hardcoded false), `--throughput`, `--tag-specifications` | Valid AZ configured via `hive init` | Gateway validates input → NATS `ec2.CreateVolume` → daemon generates vol-ID via viperblock → creates volume (empty or from snapshot) of specified size → persists config.json to Predastore S3 → returns vol-ID with state=available | 1. Create 80GB gp3 volume
2. Boundary sizes (1 GiB min, 16384 GiB max)
3. Invalid AZ (error)
4. Verify volume in describe-volumes
5. Unsupported volume type (error - only gp3)
6. Size out of range (error)
7. Create from snapshot | **DONE** | | `delete-volume` | `--volume-id` | `--dry-run` | Volume must exist and be detached (state=available) | Gateway validates vol- prefix → NATS `ec2.DeleteVolume` → daemon confirms state=available and no AttachedInstance → NATS `ebs.delete` to viperblockd (stops nbdkit/WAL) → deletes S3 objects under vol-id/, vol-id-efi/, vol-id-cloudinit/ → returns success | 1. Delete detached volume
2. Delete attached volume (error: VolumeInUse)
3. Delete non-existent volume (error: InvalidVolume.NotFound)
4. Verify volume gone from describe-volumes
5. Malformed volume ID (error: InvalidVolumeID.Malformed)
6. Double delete (idempotent NotFound) | **DONE** | | `attach-volume` | `--volume-id`, `--instance-id`, `--device` (optional, auto-assigns `/dev/sd[f-p]`) | `--dry-run` | Volume must exist (available), instance must exist (running) | Gateway sends to `ec2.cmd.{instanceId}` → daemon validates volume (Predastore) → `ebs.mount` via NATS (viperblock starts NBD server) → QMP `blockdev-add` (nbd-{volId}) → QMP `device_add` (virtio-blk-pci, vdisk-{volId}) → three-phase rollback on failure → update EBSRequests + BlockDeviceMappings → persist to JetStream + Predastore → respond with VolumeAttachment | 1. Attach volume to running instance
2. Auto-assign device name
3. Attach already-attached volume (VolumeInUse)
4. Attach to non-existent instance (InvalidInstanceID.NotFound)
5. Attach to stopped instance (IncorrectInstanceState)
6. Volume not found (InvalidVolume.NotFound)
7. All device slots full (AttachmentLimitExceeded)
8. Volume persists across stop/start | **DONE** | | `detach-volume` | `--volume-id`, `--instance-id` (optional, resolved via DescribeVolumes), `--device` (optional cross-check), `--force` | `--dry-run` | Volume must be attached, instance must be running | Gateway resolves InstanceId if omitted (via DescribeVolumes) → sends to `ec2.cmd.{instanceId}` → daemon validates (running, attached, not boot/EFI/CloudInit, device match) → three-phase hot-unplug: QMP `device_del` (force continues on failure) → QMP `blockdev-del` (abort if fails, preserves state to prevent double-attach) → `ebs.unmount` via NATS (best-effort) → remove from EBSRequests + BlockDeviceMappings → update volume metadata to available → persist state → respond with VolumeAttachment (state=detaching) | 1. Detach with explicit InstanceId
2. Detach without InstanceId (gateway resolution)
3. Detach with correct --device cross-check
4. Missing VolumeId (InvalidParameterValue)
5. Volume not attached (IncorrectState)
6. Nonexistent volume (InvalidVolume.NotFound)
7. Nonexistent instance (InvalidInstanceID.NotFound)
8. Instance not running (IncorrectInstanceState)
9. Device mismatch (InvalidParameterValue)
10. Boot volume protection (OperationNotPermitted)
11. Force flag (continues past device_del failure)
12. Volume reusability (re-attach after detach) | **DONE** | @@ -92,8 +92,8 @@ Persistence layer works (NATS JetStream KV), but stored values are not yet enfor | `enable-ebs-encryption-by-default` | *(no flags needed)* | `--dry-run` | None | Gateway validates input → NATS `ec2.EnableEbsEncryptionByDefault` with `hive-workers` queue group → daemon stores `EbsEncryptionByDefault=true` in JetStream KV (`hive-ec2-account-settings` bucket) → return `EbsEncryptionByDefault=true`. Enforcement deferred: stored value not yet checked by CreateVolume/CreateSnapshot. | 1. Enable encryption
2. Verify via get | **STARTED** (enforcement pending) | | `disable-ebs-encryption-by-default` | *(no flags needed)* | `--dry-run` | None | Gateway validates input → NATS `ec2.DisableEbsEncryptionByDefault` with `hive-workers` queue group → daemon stores `EbsEncryptionByDefault=false` in JetStream KV → return `EbsEncryptionByDefault=false`. | 1. Disable encryption
2. Verify via get | **STARTED** (enforcement pending) | | `get-ebs-encryption-by-default` | *(no flags needed)* | `--dry-run` | None | Gateway validates input → NATS `ec2.GetEbsEncryptionByDefault` with `hive-workers` queue group → daemon reads `EbsEncryptionByDefault` from JetStream KV → return current state. | 1. Get default state
2. Verify matches last enable/disable | **STARTED** (enforcement pending) | -| `enable-serial-console-access` | *(no flags needed)* | `--dry-run` | None | Gateway validates input → NATS `ec2.EnableSerialConsoleAccess` with `hive-workers` queue group → daemon stores `SerialConsoleAccessEnabled=true` in JetStream KV (`hive-ec2-account-settings` bucket) → return enabled=true. Controls `get-console-output` access. | 1. Enable access
2. Verify via get | **DONE** | -| `disable-serial-console-access` | *(no flags needed)* | `--dry-run` | None | Gateway validates input → NATS `ec2.DisableSerialConsoleAccess` with `hive-workers` queue group → daemon stores `SerialConsoleAccessEnabled=false` in JetStream KV → return enabled=false. Causes `get-console-output` to return `SerialConsoleSessionUnavailable`. | 1. Disable access
2. Verify via get
3. get-console-output blocked when disabled | **DONE** | +| `enable-serial-console-access` | *(no flags needed)* | `--dry-run` | None | Gateway validates input → NATS `ec2.EnableSerialConsoleAccess` with `hive-workers` queue group → daemon stores `SerialConsoleAccessEnabled=true` in JetStream KV (`hive-ec2-account-settings` bucket) → return enabled=true. Stored for future interactive serial console support (not currently enforced by any operation). | 1. Enable access
2. Verify via get | **STARTED** (enforcement pending) | +| `disable-serial-console-access` | *(no flags needed)* | `--dry-run` | None | Gateway validates input → NATS `ec2.DisableSerialConsoleAccess` with `hive-workers` queue group → daemon stores `SerialConsoleAccessEnabled=false` in JetStream KV → return enabled=false. Stored for future interactive serial console support (not currently enforced by any operation). | 1. Disable access
2. Verify via get | **STARTED** (enforcement pending) | | `get-serial-console-access-status` | *(no flags needed)* | `--dry-run` | None | Gateway validates input → NATS `ec2.GetSerialConsoleAccessStatus` with `hive-workers` queue group → daemon reads `SerialConsoleAccessEnabled` from JetStream KV → return current state. | 1. Get current status
2. Verify matches last enable/disable | **DONE** | | `enable-snapshot-block-public-access` | — | `--state` | None | Store snapshot block public access state in JetStream KV | 1. Enable with block-all-sharing
2. Enable with block-new-sharing | **NOT STARTED** (enforcement pending) | | `disable-snapshot-block-public-access` | — | `--dry-run` | None | Clear snapshot block public access state in JetStream KV | 1. Disable access | **NOT STARTED** (enforcement pending) | diff --git a/hive/daemon/daemon_handlers_console.go b/hive/daemon/daemon_handlers_console.go index 86a4fe159..df724f42e 100644 --- a/hive/daemon/daemon_handlers_console.go +++ b/hive/daemon/daemon_handlers_console.go @@ -31,18 +31,6 @@ func (d *Daemon) handleEC2GetConsoleOutput(msg *nats.Msg) { return } - // Check account-level serial console access - status, err := d.accountService.GetSerialConsoleAccessStatus(&ec2.GetSerialConsoleAccessStatusInput{}) - if err != nil { - slog.Error("Failed to check serial console access status", "err", err) - respondWithError(msg, awserrors.ErrorServerInternal) - return - } - if status.SerialConsoleAccessEnabled == nil || !*status.SerialConsoleAccessEnabled { - respondWithError(msg, awserrors.ErrorSerialConsoleSessionUnavailable) - return - } - instanceID := *input.InstanceId // Find the instance on this node diff --git a/hive/daemon/daemon_handlers_test.go b/hive/daemon/daemon_handlers_test.go index dfdc3beb4..0760af67a 100644 --- a/hive/daemon/daemon_handlers_test.go +++ b/hive/daemon/daemon_handlers_test.go @@ -1309,10 +1309,6 @@ func TestHandleEC2GetConsoleOutput(t *testing.T) { natsURL := sharedNATSURL daemon := createFullTestDaemon(t, natsURL) - // Enable serial console access - _, err := daemon.accountService.EnableSerialConsoleAccess(&ec2.EnableSerialConsoleAccessInput{}) - require.NoError(t, err) - instanceID := "i-console-test-001" // Create a temp console log file @@ -1361,10 +1357,6 @@ func TestHandleEC2GetConsoleOutput_EmptyLog(t *testing.T) { natsURL := sharedNATSURL daemon := createFullTestDaemon(t, natsURL) - // Enable serial console access - _, err := daemon.accountService.EnableSerialConsoleAccess(&ec2.EnableSerialConsoleAccessInput{}) - require.NoError(t, err) - instanceID := "i-console-empty-001" // Instance exists but no log file yet @@ -1402,10 +1394,6 @@ func TestHandleEC2GetConsoleOutput_NotFound(t *testing.T) { natsURL := sharedNATSURL daemon := createFullTestDaemon(t, natsURL) - // Enable serial console access - _, err := daemon.accountService.EnableSerialConsoleAccess(&ec2.EnableSerialConsoleAccessInput{}) - require.NoError(t, err) - instanceID := "i-nonexistent-console" topic := fmt.Sprintf("ec2.%s.GetConsoleOutput", instanceID) sub, err := daemon.natsConn.Subscribe(topic, daemon.handleEC2GetConsoleOutput) @@ -1423,84 +1411,6 @@ func TestHandleEC2GetConsoleOutput_NotFound(t *testing.T) { assert.Contains(t, string(reply.Data), "InvalidInstanceID.NotFound") } -func TestHandleEC2GetConsoleOutput_SerialConsoleDisabled(t *testing.T) { - natsURL := sharedNATSURL - daemon := createFullTestDaemon(t, natsURL) - - // Serial console access defaults to disabled — do NOT enable it - - instanceID := "i-console-disabled-001" - daemon.Instances.Mu.Lock() - daemon.Instances.VMS[instanceID] = &vm.VM{ - ID: instanceID, - Status: vm.StateRunning, - Config: vm.Config{ - ConsoleLogPath: "/tmp/some-log.log", - }, - } - daemon.Instances.Mu.Unlock() - - topic := fmt.Sprintf("ec2.%s.GetConsoleOutput", instanceID) - sub, err := daemon.natsConn.Subscribe(topic, daemon.handleEC2GetConsoleOutput) - require.NoError(t, err) - defer sub.Unsubscribe() - - input := &ec2.GetConsoleOutputInput{ - InstanceId: aws.String(instanceID), - } - reqData, _ := json.Marshal(input) - reply, err := daemon.natsConn.Request(topic, reqData, 5*time.Second) - require.NoError(t, err) - - assert.Contains(t, string(reply.Data), "SerialConsoleSessionUnavailable") -} - -func TestHandleEC2GetConsoleOutput_EnableThenDisable(t *testing.T) { - natsURL := sharedNATSURL - daemon := createFullTestDaemon(t, natsURL) - - instanceID := "i-console-toggle-001" - tmpDir := t.TempDir() - logPath := tmpDir + "/console.log" - require.NoError(t, os.WriteFile(logPath, []byte("console output"), 0644)) - - daemon.Instances.Mu.Lock() - daemon.Instances.VMS[instanceID] = &vm.VM{ - ID: instanceID, - Status: vm.StateRunning, - Config: vm.Config{ - ConsoleLogPath: logPath, - }, - } - daemon.Instances.Mu.Unlock() - - topic := fmt.Sprintf("ec2.%s.GetConsoleOutput", instanceID) - sub, err := daemon.natsConn.Subscribe(topic, daemon.handleEC2GetConsoleOutput) - require.NoError(t, err) - defer sub.Unsubscribe() - - // Enable serial console access — GetConsoleOutput should succeed - _, err = daemon.accountService.EnableSerialConsoleAccess(&ec2.EnableSerialConsoleAccessInput{}) - require.NoError(t, err) - - input := &ec2.GetConsoleOutputInput{InstanceId: aws.String(instanceID)} - reqData, _ := json.Marshal(input) - reply, err := daemon.natsConn.Request(topic, reqData, 5*time.Second) - require.NoError(t, err) - - var output ec2.GetConsoleOutputOutput - require.NoError(t, json.Unmarshal(reply.Data, &output)) - assert.NotEmpty(t, *output.Output) - - // Disable serial console access — GetConsoleOutput should fail - _, err = daemon.accountService.DisableSerialConsoleAccess(&ec2.DisableSerialConsoleAccessInput{}) - require.NoError(t, err) - - reply, err = daemon.natsConn.Request(topic, reqData, 5*time.Second) - require.NoError(t, err) - assert.Contains(t, string(reply.Data), "SerialConsoleSessionUnavailable") -} - // TestAttachVolume_ZoneMismatch verifies that attaching a volume in a different AZ // returns InvalidVolume.ZoneMismatch instead of proceeding. func TestAttachVolume_ZoneMismatch(t *testing.T) { diff --git a/hive/services/hiveui/frontend/dist/assets/_.js b/hive/services/hiveui/frontend/dist/assets/_.js index 361f69a8a..5a56b77d5 100644 --- a/hive/services/hiveui/frontend/dist/assets/_.js +++ b/hive/services/hiveui/frontend/dist/assets/_.js @@ -1 +1 @@ -import{c as B,aE as $,aF as F,aB as C,j as s,aA as K,aG as b,aH as k,L as E}from"./index.js";import{u as L}from"./useSuspenseQuery.js";import{B as A}from"./back-link.js";import{E as O}from"./error-banner.js";import{a as S}from"./s3.js";import{U,F as R,O as I}from"./upload-button.js";import"./alert-dialog.js";import"./download.js";import"./trash-2.js";function J(){const e=B.c(24),{bucket:n,_splat:v}=$.useParams(),a=F(v||""),{data:m}=L(C(n,a)),r=S();let d;e[0]!==m.Contents?(d=m.Contents||[],e[0]=m.Contents,e[1]=d):d=e[1];const o=d;let p;e[2]!==m.CommonPrefixes?(p=m.CommonPrefixes||[],e[2]=m.CommonPrefixes,e[3]=p):p=e[3];const i=p,u=a.split("/").filter(Boolean),y=[{name:n,path:`/s3/ls/${n}`},...u.map((t,l)=>{const c=`${u.slice(0,l+1).join("/")}/`;return{name:t,path:`/s3/ls/${n}/${c}`}})],P=u.length>1?`/s3/ls/${n}/${u.slice(0,-1).join("/")}/`:`/s3/ls/${n}`;let f;e[4]!==P?(f=s.jsx(A,{to:P,children:"Back"}),e[4]=P,e[5]=f):f=e[5];let x;e[6]!==n||e[7]!==a||e[8]!==r.isPending||e[9]!==r.mutateAsync?(x=s.jsx(U,{bucket:n,isPending:r.isPending,onUpload:r.mutateAsync,prefix:a}),e[6]=n,e[7]=a,e[8]=r.isPending,e[9]=r.mutateAsync,e[10]=x):x=e[10];let h;e[11]!==r.error?(h=r.error&&s.jsx(O,{error:r.error,msg:"Failed to upload object"}),e[11]=r.error,e[12]=h):h=e[12];let g;e[13]!==n||e[14]!==i||e[15]!==a?(g=i.length>0&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Folders"}),s.jsx("div",{className:"space-y-2",children:i.map(t=>{if(!t.Prefix)return null;const l=K(b(t.Prefix,a)),c=k(t.Prefix,a);return s.jsx(R,{bucketName:n,folderName:l,fullPrefix:c},t.Prefix)})})]}),e[13]=n,e[14]=i,e[15]=a,e[16]=g):g=e[16];let j;e[17]!==n||e[18]!==o||e[19]!==a?(j=o.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Objects"}),o.map(t=>{if(!t.Key)return null;const l=b(t.Key,a),c=k(t.Key,a);return s.jsx(I,{bucketName:n,displayName:l,fullKey:c,object:t},t.Key)})]}),e[17]=n,e[18]=o,e[19]=a,e[20]=j):j=e[20];let N;return e[21]!==i.length||e[22]!==o.length?(N=o.length===0&&i.length===0&&s.jsx("p",{className:"text-muted-foreground",children:"No objects found in this folder."}),e[21]=i.length,e[22]=o.length,e[23]=N):N=e[23],s.jsxs(s.Fragment,{children:[f,s.jsx("div",{className:"mb-6",children:s.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[s.jsx("div",{className:"flex items-center gap-2 text-muted-foreground text-sm",children:y.map((t,l)=>s.jsxs("div",{className:"flex items-center gap-2",children:[l>0&&s.jsx("span",{children:"/"}),l===y.length-1?s.jsx("span",{className:"text-foreground",children:t.name}):s.jsx(E,{className:"hover:text-foreground",to:t.path,children:t.name})]},t.path))}),x]})}),h,g,j,N]})}export{J as component}; +import{c as B,y as $,z as C,v as F,j as s,t as K,A as b,C as v,L}from"./index.js";import{u as A}from"./useSuspenseQuery.js";import{B as E}from"./back-link.js";import{E as O}from"./error-banner.js";import{a as S}from"./s3.js";import{U,F as R,O as I}from"./upload-button.js";import"./alert-dialog.js";import"./download.js";import"./trash-2.js";function J(){const e=B.c(24),{bucket:n,_splat:k}=$.useParams(),r=C(k||""),{data:m}=A(F(n,r)),a=S();let d;e[0]!==m.Contents?(d=m.Contents||[],e[0]=m.Contents,e[1]=d):d=e[1];const o=d;let p;e[2]!==m.CommonPrefixes?(p=m.CommonPrefixes||[],e[2]=m.CommonPrefixes,e[3]=p):p=e[3];const i=p,u=r.split("/").filter(Boolean),y=[{name:n,path:`/s3/ls/${n}`},...u.map((t,l)=>{const c=`${u.slice(0,l+1).join("/")}/`;return{name:t,path:`/s3/ls/${n}/${c}`}})],P=u.length>1?`/s3/ls/${n}/${u.slice(0,-1).join("/")}/`:`/s3/ls/${n}`;let f;e[4]!==P?(f=s.jsx(E,{to:P,children:"Back"}),e[4]=P,e[5]=f):f=e[5];let x;e[6]!==n||e[7]!==r||e[8]!==a.isPending||e[9]!==a.mutateAsync?(x=s.jsx(U,{bucket:n,isPending:a.isPending,onUpload:a.mutateAsync,prefix:r}),e[6]=n,e[7]=r,e[8]=a.isPending,e[9]=a.mutateAsync,e[10]=x):x=e[10];let h;e[11]!==a.error?(h=a.error&&s.jsx(O,{error:a.error,msg:"Failed to upload object"}),e[11]=a.error,e[12]=h):h=e[12];let g;e[13]!==n||e[14]!==i||e[15]!==r?(g=i.length>0&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Folders"}),s.jsx("div",{className:"space-y-2",children:i.map(t=>{if(!t.Prefix)return null;const l=K(b(t.Prefix,r)),c=v(t.Prefix,r);return s.jsx(R,{bucketName:n,folderName:l,fullPrefix:c},t.Prefix)})})]}),e[13]=n,e[14]=i,e[15]=r,e[16]=g):g=e[16];let j;e[17]!==n||e[18]!==o||e[19]!==r?(j=o.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Objects"}),o.map(t=>{if(!t.Key)return null;const l=b(t.Key,r),c=v(t.Key,r);return s.jsx(I,{bucketName:n,displayName:l,fullKey:c,object:t},t.Key)})]}),e[17]=n,e[18]=o,e[19]=r,e[20]=j):j=e[20];let N;return e[21]!==i.length||e[22]!==o.length?(N=o.length===0&&i.length===0&&s.jsx("p",{className:"text-muted-foreground",children:"No objects found in this folder."}),e[21]=i.length,e[22]=o.length,e[23]=N):N=e[23],s.jsxs(s.Fragment,{children:[f,s.jsx("div",{className:"mb-6",children:s.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[s.jsx("div",{className:"flex items-center gap-2 text-muted-foreground text-sm",children:y.map((t,l)=>s.jsxs("div",{className:"flex items-center gap-2",children:[l>0&&s.jsx("span",{children:"/"}),l===y.length-1?s.jsx("span",{className:"text-foreground",children:t.name}):s.jsx(L,{className:"hover:text-foreground",to:t.path,children:t.name})]},t.path))}),x]})}),h,g,j,N]})}export{J as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id.js b/hive/services/hiveui/frontend/dist/assets/_id.js index 5afe4ce5c..e240ba3e8 100644 --- a/hive/services/hiveui/frontend/dist/assets/_id.js +++ b/hive/services/hiveui/frontend/dist/assets/_id.js @@ -1 +1 @@ -import{c as T,bm as q,u as D,j as s,bn as J,B as Q}from"./index.js";import{a as K,u as U,I as W,F as X,b as Y,c as Z}from"./field.js";import{u as ee}from"./useSuspenseQuery.js";import{B as H}from"./back-link.js";import{E as se}from"./error-banner.js";import{P as te}from"./page-heading.js";import{d as ie}from"./ec2.js";import{m as re}from"./ec22.js";function fe(){const e=T.c(58),{id:R}=q.useParams(),o=D();let S;e[0]!==R?(S=J(R),e[0]=R,e[1]=S):S=e[1];const{data:L}=ee(S),A=L.Volumes?.[0],t=A?.VolumeId,r=ie(),i=A?.Size??1;let n;e[2]!==i?(n=K(re.refine(l=>l.size>i,{message:`New size must be greater than current size (${i} GiB)`,path:["size"]})),e[2]=i,e[3]=n):n=e[3];let a;e[4]!==i?(a={size:i},e[4]=i,e[5]=a):a=e[5];let B;e[6]!==n||e[7]!==a?(B={resolver:n,defaultValues:a},e[6]=n,e[7]=a,e[8]=B):B=e[8];const{handleSubmit:k,register:E,formState:O}=U(B),{errors:V,isSubmitting:$}=O;if(!t){let l;return e[9]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs(s.Fragment,{children:[s.jsx(H,{to:"/ec2/describe-volumes",children:"Back to volumes"}),s.jsx("p",{className:"text-muted-foreground",children:"Volume not found."})]}),e[9]=l):l=e[9],l}let F;e[10]!==r||e[11]!==o||e[12]!==t?(F=async l=>{await r.mutateAsync({...l,volumeId:t}),o({to:"/ec2/describe-volumes/$id",params:{id:t}})},e[10]=r,e[11]=o,e[12]=t,e[13]=F):F=e[13];const w=F;let m,c;e[14]!==t?(m=s.jsx(H,{params:{id:t},to:"/ec2/describe-volumes/$id",children:"Back to volume"}),c=s.jsx(te,{subtitle:t,title:"Resize Volume"}),e[14]=t,e[15]=m,e[16]=c):(m=e[15],c=e[16]);let u;e[17]!==r.error?(u=r.error&&s.jsx(se,{error:r.error,msg:"Failed to resize volume"}),e[17]=r.error,e[18]=u):u=e[18];let d;e[19]!==k||e[20]!==w?(d=k(w),e[19]=k,e[20]=w,e[21]=d):d=e[21];let f;e[22]!==i?(f=s.jsx("div",{className:"space-y-2",children:s.jsxs("p",{className:"text-muted-foreground text-sm",children:["Current size: ",i," GiB"]})}),e[22]=i,e[23]=f):f=e[23];let N;e[24]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(Y,{children:s.jsx("label",{htmlFor:"size",children:"New size (GiB)"})}),e[24]=N):N=e[24];const I=!!V.size,_=i+1;let p;e[25]!==E?(p=E("size",{valueAsNumber:!0}),e[25]=E,e[26]=p):p=e[26];let x;e[27]!==I||e[28]!==_||e[29]!==p?(x=s.jsx(W,{"aria-invalid":I,id:"size",min:_,type:"number",...p}),e[27]=I,e[28]=_,e[29]=p,e[30]=x):x=e[30];let b;e[31]!==V.size?(b=s.jsx(X,{errors:[V.size]}),e[31]=V.size,e[32]=b):b=e[32];let h;e[33]!==x||e[34]!==b?(h=s.jsxs(Z,{children:[N,x,b]}),e[33]=x,e[34]=b,e[35]=h):h=e[35];const C=$||r.isPending;let j;e[36]!==o||e[37]!==t?(j=()=>o({to:"/ec2/describe-volumes/$id",params:{id:t}}),e[36]=o,e[37]=t,e[38]=j):j=e[38];let z;e[39]!==C||e[40]!==j?(z=s.jsx(Q,{disabled:C,onClick:j,type:"button",variant:"outline",children:"Cancel"}),e[39]=C,e[40]=j,e[41]=z):z=e[41];const G=$||r.isPending,M=$||r.isPending?"Resizing…":"Resize Volume";let g;e[42]!==G||e[43]!==M?(g=s.jsx(Q,{disabled:G,type:"submit",children:M}),e[42]=G,e[43]=M,e[44]=g):g=e[44];let v;e[45]!==z||e[46]!==g?(v=s.jsxs("div",{className:"flex gap-2",children:[z,g]}),e[45]=z,e[46]=g,e[47]=v):v=e[47];let y;e[48]!==f||e[49]!==h||e[50]!==v||e[51]!==d?(y=s.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:d,children:[f,h,v]}),e[48]=f,e[49]=h,e[50]=v,e[51]=d,e[52]=y):y=e[52];let P;return e[53]!==y||e[54]!==m||e[55]!==c||e[56]!==u?(P=s.jsxs(s.Fragment,{children:[m,c,u,y]}),e[53]=y,e[54]=m,e[55]=c,e[56]=u,e[57]=P):P=e[57],P}export{fe as component}; +import{ak as D,u as g,al as b,p as f,r as v,j as e,B as C,L as I}from"./index.js";import{u as d}from"./useSuspenseQuery.js";import{B as u}from"./back-link.js";import{D as l,a as t}from"./detail-row.js";import{E as V}from"./error-banner.js";import{P as S}from"./page-heading.js";import{S as y}from"./state-badge.js";import{g as P,f as A,b as k,a as B,c as w,d as N,e as T,h as O}from"./alert-dialog.js";import{g as H}from"./ec2.js";import{T as R}from"./trash-2.js";function q(){const{id:r}=D.useParams(),x=g(),{data:p}=d(b(r)),{data:m}=d(f),s=p.Vpcs?.[0],n=H(),[j,i]=v.useState(!1),o=m.Subnets?.filter(a=>a.VpcId===r)??[],h=async()=>{try{await n.mutateAsync(r),x({to:"/ec2/describe-vpcs"})}finally{i(!1)}};if(!s?.VpcId)return e.jsxs(e.Fragment,{children:[e.jsx(u,{to:"/ec2/describe-vpcs",children:"Back to VPCs"}),e.jsx("p",{className:"text-muted-foreground",children:"VPC not found."})]});const c=s.Tags?.find(a=>a.Key==="Name")?.Value;return e.jsxs(e.Fragment,{children:[e.jsx(u,{to:"/ec2/describe-vpcs",children:"Back to VPCs"}),n.error&&e.jsx(V,{error:n.error,msg:"Failed to delete VPC"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(S,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(C,{onClick:()=>i(!0),size:"sm",variant:"destructive",children:[e.jsx(R,{className:"size-4"}),"Delete"]}),e.jsx(y,{state:s.State})]}),subtitle:"VPC Details",title:c?`${s.VpcId} (${c})`:s.VpcId}),e.jsxs(l,{children:[e.jsx(l.Header,{children:"VPC Information"}),e.jsxs(l.Content,{children:[e.jsx(t,{label:"VPC ID",value:s.VpcId}),e.jsx(t,{label:"State",value:s.State}),e.jsx(t,{label:"CIDR Block",value:s.CidrBlock}),e.jsx(t,{label:"Is Default",value:s.IsDefault?"Yes":"No"}),e.jsx(t,{label:"DHCP Options ID",value:s.DhcpOptionsId}),e.jsx(t,{label:"Instance Tenancy",value:s.InstanceTenancy}),e.jsx(t,{label:"Owner ID",value:s.OwnerId})]})]}),o.length>0&&e.jsxs(l,{children:[e.jsxs(l.Header,{children:["Subnets (",o.length,")"]}),o.map(a=>a.SubnetId?e.jsxs(l.Content,{children:[e.jsx(t,{label:"Subnet ID",value:e.jsx(I,{className:"text-primary hover:underline",params:{id:a.SubnetId},to:"/ec2/describe-subnets/$id",children:a.SubnetId})}),e.jsx(t,{label:"CIDR Block",value:a.CidrBlock}),e.jsx(t,{label:"Availability Zone",value:a.AvailabilityZone}),e.jsx(t,{label:"State",value:a.State})]},a.SubnetId):null)]})]}),e.jsx(P,{onOpenChange:i,open:j,children:e.jsxs(A,{children:[e.jsxs(k,{children:[e.jsx(B,{children:"Delete VPC"}),e.jsxs(w,{children:['Are you sure you want to delete the VPC "',s.VpcId,'"? This action cannot be undone. The VPC must have no associated subnets or internet gateways.']})]}),e.jsxs(N,{children:[e.jsx(T,{children:"Cancel"}),e.jsx(O,{disabled:n.isPending,onClick:h,children:n.isPending?"Deleting…":"Delete"})]})]})})]})}export{q as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id2.js b/hive/services/hiveui/frontend/dist/assets/_id2.js index 8e8af820f..468abc630 100644 --- a/hive/services/hiveui/frontend/dist/assets/_id2.js +++ b/hive/services/hiveui/frontend/dist/assets/_id2.js @@ -1 +1 @@ -import{by as D,u as b,bn as p,r as g,j as e,bz as r,B as c,L as f,bA as A}from"./index.js";import{u as y}from"./useSuspenseQuery.js";import{B as m}from"./back-link.js";import{D as t,a as l}from"./detail-row.js";import{E as V}from"./error-banner.js";import{P as I}from"./page-heading.js";import{g as S,f as T,b as C,a as B,c as N,d as k,e as z,h as E}from"./alert-dialog.js";import{B as w}from"./badge.js";import{e as P}from"./ec2.js";import{T as R}from"./trash-2.js";function G(){const{id:n}=D.useParams(),u=b(),{data:d}=y(p(n)),a=d.Volumes?.[0],i=P(),[x,o]=g.useState(!1),j=a?.State==="available"&&(!a.Attachments||a.Attachments.length===0),h=async()=>{try{await i.mutateAsync(n),u({to:"/ec2/describe-volumes"})}finally{o(!1)}};if(!a?.VolumeId)return e.jsxs(e.Fragment,{children:[e.jsx(m,{to:"/ec2/describe-volumes",children:"Back to volumes"}),e.jsx("p",{className:"text-muted-foreground",children:"Volume not found."})]});const v=r(a.CreateTime);return e.jsxs(e.Fragment,{children:[e.jsx(m,{to:"/ec2/describe-volumes",children:"Back to volumes"}),i.error&&e.jsx(V,{error:i.error,msg:"Failed to delete volume"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(I,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(c,{disabled:!j,onClick:()=>o(!0),size:"sm",variant:"destructive",children:[e.jsx(R,{className:"size-4"}),"Delete"]}),a.State==="available"?e.jsx(f,{className:A({variant:"outline"}),params:{id:a.VolumeId},to:"/ec2/modify-volume/$id",children:"Resize Volume"}):e.jsx(c,{disabled:!0,variant:"outline",children:"Resize Volume"}),a.State&&e.jsx(w,{variant:a.State==="available"?"default":"outline",children:a.State})]}),subtitle:"EC2 Volume Details",title:a.VolumeId}),e.jsxs(t,{children:[e.jsx(t.Header,{children:"Volume Information"}),e.jsxs(t.Content,{children:[e.jsx(l,{label:"Volume ID",value:a.VolumeId}),e.jsx(l,{label:"Size",value:`${a.Size} GiB`}),e.jsx(l,{label:"Volume Type",value:a.VolumeType}),e.jsx(l,{label:"State",value:a.State}),e.jsx(l,{label:"Availability Zone",value:a.AvailabilityZone}),e.jsx(l,{label:"Create Time",value:v}),e.jsx(l,{label:"Encrypted",value:a.Encrypted?"Yes":"No"}),e.jsx(l,{label:"KMS Key ID",value:a.KmsKeyId})]})]}),a.Attachments&&a.Attachments.length>0&&e.jsxs(t,{children:[e.jsx(t.Header,{children:"Attachments"}),a.Attachments.map(s=>e.jsxs(t.Content,{children:[e.jsx(l,{label:"Instance ID",value:s.InstanceId}),e.jsx(l,{label:"Device",value:s.Device}),e.jsx(l,{label:"Status",value:s.State}),e.jsx(l,{label:"Attach Time",value:r(s.AttachTime)}),e.jsx(l,{label:"Delete on Termination",value:s.DeleteOnTermination?"Yes":"No"})]},s.InstanceId))]})]}),e.jsx(S,{onOpenChange:o,open:x,children:e.jsxs(T,{children:[e.jsxs(C,{children:[e.jsx(B,{children:"Delete Volume"}),e.jsxs(N,{children:['Are you sure you want to delete the volume "',a.VolumeId,'"? This action cannot be undone.']})]}),e.jsxs(k,{children:[e.jsx(z,{children:"Cancel"}),e.jsx(E,{disabled:i.isPending,onClick:h,children:i.isPending?"Deleting…":"Delete"})]})]})})]})}export{G as component}; +import{c as T,am as q,u as D,j as s,an as J,B as Q}from"./index.js";import{a as K,u as U}from"./zod.js";import{u as W}from"./useSuspenseQuery.js";import{B as H}from"./back-link.js";import{E as X}from"./error-banner.js";import{P as Y}from"./page-heading.js";import{F as Z,a as ee,b as se}from"./field.js";import{I as te}from"./input.js";import{h as ie}from"./ec2.js";import{m as re}from"./ec22.js";function xe(){const e=T.c(58),{id:R}=q.useParams(),o=D();let S;e[0]!==R?(S=J(R),e[0]=R,e[1]=S):S=e[1];const{data:L}=W(S),A=L.Volumes?.[0],t=A?.VolumeId,r=ie(),i=A?.Size??1;let a;e[2]!==i?(a=K(re.refine(l=>l.size>i,{message:`New size must be greater than current size (${i} GiB)`,path:["size"]})),e[2]=i,e[3]=a):a=e[3];let n;e[4]!==i?(n={size:i},e[4]=i,e[5]=n):n=e[5];let B;e[6]!==a||e[7]!==n?(B={resolver:a,defaultValues:n},e[6]=a,e[7]=n,e[8]=B):B=e[8];const{handleSubmit:k,register:E,formState:O}=U(B),{errors:V,isSubmitting:$}=O;if(!t){let l;return e[9]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs(s.Fragment,{children:[s.jsx(H,{to:"/ec2/describe-volumes",children:"Back to volumes"}),s.jsx("p",{className:"text-muted-foreground",children:"Volume not found."})]}),e[9]=l):l=e[9],l}let F;e[10]!==r||e[11]!==o||e[12]!==t?(F=async l=>{await r.mutateAsync({...l,volumeId:t}),o({to:"/ec2/describe-volumes/$id",params:{id:t}})},e[10]=r,e[11]=o,e[12]=t,e[13]=F):F=e[13];const w=F;let m,c;e[14]!==t?(m=s.jsx(H,{params:{id:t},to:"/ec2/describe-volumes/$id",children:"Back to volume"}),c=s.jsx(Y,{subtitle:t,title:"Resize Volume"}),e[14]=t,e[15]=m,e[16]=c):(m=e[15],c=e[16]);let u;e[17]!==r.error?(u=r.error&&s.jsx(X,{error:r.error,msg:"Failed to resize volume"}),e[17]=r.error,e[18]=u):u=e[18];let d;e[19]!==k||e[20]!==w?(d=k(w),e[19]=k,e[20]=w,e[21]=d):d=e[21];let f;e[22]!==i?(f=s.jsx("div",{className:"space-y-2",children:s.jsxs("p",{className:"text-muted-foreground text-sm",children:["Current size: ",i," GiB"]})}),e[22]=i,e[23]=f):f=e[23];let N;e[24]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(ee,{children:s.jsx("label",{htmlFor:"size",children:"New size (GiB)"})}),e[24]=N):N=e[24];const I=!!V.size,_=i+1;let p;e[25]!==E?(p=E("size",{valueAsNumber:!0}),e[25]=E,e[26]=p):p=e[26];let x;e[27]!==I||e[28]!==_||e[29]!==p?(x=s.jsx(te,{"aria-invalid":I,id:"size",min:_,type:"number",...p}),e[27]=I,e[28]=_,e[29]=p,e[30]=x):x=e[30];let h;e[31]!==V.size?(h=s.jsx(Z,{errors:[V.size]}),e[31]=V.size,e[32]=h):h=e[32];let b;e[33]!==x||e[34]!==h?(b=s.jsxs(se,{children:[N,x,h]}),e[33]=x,e[34]=h,e[35]=b):b=e[35];const C=$||r.isPending;let j;e[36]!==o||e[37]!==t?(j=()=>o({to:"/ec2/describe-volumes/$id",params:{id:t}}),e[36]=o,e[37]=t,e[38]=j):j=e[38];let z;e[39]!==C||e[40]!==j?(z=s.jsx(Q,{disabled:C,onClick:j,type:"button",variant:"outline",children:"Cancel"}),e[39]=C,e[40]=j,e[41]=z):z=e[41];const G=$||r.isPending,M=$||r.isPending?"Resizing…":"Resize Volume";let g;e[42]!==G||e[43]!==M?(g=s.jsx(Q,{disabled:G,type:"submit",children:M}),e[42]=G,e[43]=M,e[44]=g):g=e[44];let v;e[45]!==z||e[46]!==g?(v=s.jsxs("div",{className:"flex gap-2",children:[z,g]}),e[45]=z,e[46]=g,e[47]=v):v=e[47];let y;e[48]!==f||e[49]!==b||e[50]!==v||e[51]!==d?(y=s.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:d,children:[f,b,v]}),e[48]=f,e[49]=b,e[50]=v,e[51]=d,e[52]=y):y=e[52];let P;return e[53]!==y||e[54]!==m||e[55]!==c||e[56]!==u?(P=s.jsxs(s.Fragment,{children:[m,c,u,y]}),e[53]=y,e[54]=m,e[55]=c,e[56]=u,e[57]=P):P=e[57],P}export{xe as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id3.js b/hive/services/hiveui/frontend/dist/assets/_id3.js index 9ed2dc8c4..23ec55cd9 100644 --- a/hive/services/hiveui/frontend/dist/assets/_id3.js +++ b/hive/services/hiveui/frontend/dist/assets/_id3.js @@ -1 +1 @@ -import{bB as x,u as p,bC as h,r as j,j as e,bz as g,B as D}from"./index.js";import{u as K}from"./useSuspenseQuery.js";import{B as o}from"./back-link.js";import{D as s,a as r}from"./detail-row.js";import{E as f}from"./error-banner.js";import{P as b}from"./page-heading.js";import{g as P,f as k,b as C,a as T,c as A,d as v,e as B,h as N}from"./alert-dialog.js";import{f as w}from"./ec2.js";import{T as F}from"./trash-2.js";function M(){const{id:l}=x.useParams(),c=p(),{data:d}=K(h(l)),a=d.KeyPairs?.[0],i=w(),[y,t]=j.useState(!1),m=async()=>{try{await i.mutateAsync(l),c({to:"/ec2/describe-key-pairs"})}finally{t(!1)}};if(!a?.KeyPairId)return e.jsxs(e.Fragment,{children:[e.jsx(o,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),e.jsx("p",{className:"text-muted-foreground",children:"Key pair not found."})]});const u=g(a.CreateTime);return e.jsxs(e.Fragment,{children:[e.jsx(o,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),i.error&&e.jsx(f,{error:i.error,msg:"Failed to delete key pair"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(b,{actions:e.jsxs(D,{onClick:()=>t(!0),size:"sm",variant:"destructive",children:[e.jsx(F,{className:"size-4"}),"Delete"]}),subtitle:"EC2 Key Pair Details",title:a.KeyName??""}),e.jsxs(s,{children:[e.jsx(s.Header,{children:"Key Pair Information"}),e.jsxs(s.Content,{children:[e.jsx(r,{label:"Key Name",value:a.KeyName}),e.jsx(r,{label:"Key Pair ID",value:a.KeyPairId}),e.jsx(r,{label:"Key Type",value:a.KeyType}),e.jsx(r,{label:"Key Fingerprint",value:a.KeyFingerprint}),e.jsx(r,{label:"Creation Date",value:u})]})]}),a.Tags&&a.Tags.length>0&&e.jsxs(s,{children:[e.jsx(s.Header,{children:"Tags"}),e.jsx(s.Content,{children:a.Tags.map(n=>e.jsx(r,{label:n.Key||"",value:n.Value},n.Key))})]})]}),e.jsx(P,{onOpenChange:t,open:y,children:e.jsxs(k,{children:[e.jsxs(C,{children:[e.jsx(T,{children:"Delete Key Pair"}),e.jsxs(A,{children:['Are you sure you want to delete the key pair "',a.KeyName,'"? This action cannot be undone. Any instances using this key pair will no longer be able to be accessed with it.']})]}),e.jsxs(v,{children:[e.jsx(B,{children:"Cancel"}),e.jsx(N,{disabled:i.isPending,onClick:m,children:i.isPending?"Deleting…":"Delete"})]})]})})]})}export{M as component}; +import{k as O,av as Z,u as q,an as G,x as J,r as m,j as e,B as u,L as y,aw as z,ax as U,ay as w}from"./index.js";import{u as B}from"./useSuspenseQuery.js";import{B as M}from"./back-link.js";import{D as l,a as s}from"./detail-row.js";import{E as D}from"./error-banner.js";import{P as W}from"./page-heading.js";import{S as X}from"./state-badge.js";import{g as f,f as A,b,a as V,c as k,d as C,e as S,h as N}from"./alert-dialog.js";import{b as P,a as E}from"./field.js";import{I as ee}from"./input.js";import{S as ae,a as te,b as se,c as ne,d as le}from"./select.js";import{i as ie,j as ce,k as oe}from"./ec2.js";import{T as re}from"./trash-2.js";import"./check.js";const de=[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],he=O("link-2-off",de);const me=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],ue=O("link-2",me);function Se(){const{id:r}=Z.useParams(),H=q(),{data:L}=B(G(r)),{data:R}=B(J),t=L.Volumes?.[0],i=ie(),c=ce(),o=oe(),[x,d]=m.useState(null),[j,v]=m.useState(""),[T,p]=m.useState(""),[F,g]=m.useState(!1),K=R.Reservations?.flatMap(a=>a.Instances?.filter(h=>h.State?.Name==="running")??[])??[],I=t?.State==="available"&&(!t.Attachments||t.Attachments.length===0),n=()=>d(null),$=async()=>{try{await i.mutateAsync(r),H({to:"/ec2/describe-volumes"})}finally{n()}},_=async()=>{try{await c.mutateAsync({volumeId:r,instanceId:j,device:T||void 0}),n(),v(""),p("")}catch{}},Q=async()=>{const a=t?.Attachments?.[0]?.InstanceId;try{await o.mutateAsync({volumeId:r,instanceId:a||void 0,force:F||void 0}),n(),g(!1)}catch{}};return t?.VolumeId?e.jsxs(e.Fragment,{children:[e.jsx(M,{to:"/ec2/describe-volumes",children:"Back to volumes"}),i.error&&e.jsx(D,{error:i.error,msg:"Failed to delete volume"}),c.error&&e.jsx(D,{error:c.error,msg:"Failed to attach volume"}),o.error&&e.jsx(D,{error:o.error,msg:"Failed to detach volume"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(W,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(u,{disabled:!I,onClick:()=>d("delete"),size:"sm",variant:"destructive",children:[e.jsx(re,{className:"size-4"}),"Delete"]}),I?e.jsx(y,{className:z({variant:"outline"}),params:{id:t.VolumeId},to:"/ec2/modify-volume/$id",children:"Resize Volume"}):e.jsx(u,{disabled:!0,variant:"outline",children:"Resize Volume"}),I?e.jsxs(u,{onClick:()=>d("attach"),size:"sm",variant:"outline",children:[e.jsx(ue,{className:"size-4"}),"Attach"]}):null,t.Attachments&&t.Attachments.length>0?e.jsxs(u,{onClick:()=>d("detach"),size:"sm",variant:"outline",children:[e.jsx(he,{className:"size-4"}),"Detach"]}):null,e.jsxs(y,{className:z({variant:"outline",size:"sm"}),search:{volumeId:t.VolumeId},to:"/ec2/create-snapshot",children:[e.jsx(U,{className:"size-4"}),"Create Snapshot"]}),e.jsx(X,{state:t.State})]}),subtitle:"EC2 Volume Details",title:t.VolumeId}),e.jsxs(l,{children:[e.jsx(l.Header,{children:"Volume Information"}),e.jsxs(l.Content,{children:[e.jsx(s,{label:"Volume ID",value:t.VolumeId}),e.jsx(s,{label:"Size",value:`${t.Size} GiB`}),e.jsx(s,{label:"Volume Type",value:t.VolumeType}),e.jsx(s,{label:"State",value:t.State}),e.jsx(s,{label:"Availability Zone",value:t.AvailabilityZone}),e.jsx(s,{label:"Create Time",value:w(t.CreateTime)}),e.jsx(s,{label:"Encrypted",value:t.Encrypted?"Yes":"No"}),e.jsx(s,{label:"KMS Key ID",value:t.KmsKeyId})]})]}),t.Attachments&&t.Attachments.length>0&&e.jsxs(l,{children:[e.jsx(l.Header,{children:"Attachments"}),t.Attachments.map(a=>e.jsxs(l.Content,{children:[e.jsx(s,{label:"Instance ID",value:a.InstanceId?e.jsx(y,{className:"text-primary hover:underline",params:{id:a.InstanceId},to:"/ec2/describe-instances/$id",children:a.InstanceId}):void 0}),e.jsx(s,{label:"Device",value:a.Device}),e.jsx(s,{label:"Status",value:a.State}),e.jsx(s,{label:"Attach Time",value:w(a.AttachTime)}),e.jsx(s,{label:"Delete on Termination",value:a.DeleteOnTermination?"Yes":"No"})]},a.InstanceId))]})]}),e.jsx(f,{onOpenChange:a=>{a||n()},open:x==="delete",children:e.jsxs(A,{children:[e.jsxs(b,{children:[e.jsx(V,{children:"Delete Volume"}),e.jsxs(k,{children:['Are you sure you want to delete the volume "',t.VolumeId,'"? This action cannot be undone.']})]}),e.jsxs(C,{children:[e.jsx(S,{children:"Cancel"}),e.jsx(N,{disabled:i.isPending,onClick:$,children:i.isPending?"Deleting…":"Delete"})]})]})}),e.jsx(f,{onOpenChange:a=>{a||(n(),v(""),p(""))},open:x==="attach",children:e.jsxs(A,{children:[e.jsxs(b,{children:[e.jsx(V,{children:"Attach Volume"}),e.jsx(k,{children:"Attach this volume to a running instance."})]}),e.jsxs(P,{children:[e.jsx(E,{children:e.jsx("label",{htmlFor:"attachInstance",children:"Instance"})}),e.jsxs(ae,{onValueChange:a=>v(a??""),value:j,children:[e.jsx(te,{className:"w-full",id:"attachInstance",children:e.jsx(se,{placeholder:"Select an instance"})}),e.jsx(ne,{children:K.map(a=>{const h=a.Tags?.find(Y=>Y.Key==="Name")?.Value;return e.jsxs(le,{value:a.InstanceId??"",children:[a.InstanceId,h?` (${h})`:""]},a.InstanceId)})})]})]}),e.jsxs(P,{children:[e.jsx(E,{children:e.jsx("label",{htmlFor:"attachDevice",children:"Device (optional)"})}),e.jsx(ee,{id:"attachDevice",onChange:a=>p(a.target.value),placeholder:"/dev/sdf",value:T})]}),e.jsxs(C,{children:[e.jsx(S,{children:"Cancel"}),e.jsx(N,{disabled:c.isPending||!j,onClick:_,children:c.isPending?"Attaching…":"Attach"})]})]})}),e.jsx(f,{onOpenChange:a=>{a||(n(),g(!1))},open:x==="detach",children:e.jsxs(A,{children:[e.jsxs(b,{children:[e.jsx(V,{children:"Detach Volume"}),e.jsxs(k,{children:['Are you sure you want to detach the volume "',t.VolumeId,'" from instance "',t.Attachments?.[0]?.InstanceId,'"?']})]}),e.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[e.jsx("input",{checked:F,onChange:a=>g(a.target.checked),type:"checkbox"}),"Force detach"]}),e.jsxs(C,{children:[e.jsx(S,{children:"Cancel"}),e.jsx(N,{disabled:o.isPending,onClick:Q,children:o.isPending?"Detaching…":"Detach"})]})]})})]}):e.jsxs(e.Fragment,{children:[e.jsx(M,{to:"/ec2/describe-volumes",children:"Back to volumes"}),e.jsx("p",{className:"text-muted-foreground",children:"Volume not found."})]})}export{Se as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id4.js b/hive/services/hiveui/frontend/dist/assets/_id4.js index 51886a956..6754c4eb0 100644 --- a/hive/services/hiveui/frontend/dist/assets/_id4.js +++ b/hive/services/hiveui/frontend/dist/assets/_id4.js @@ -1 +1 @@ -import{g as R,c as $,j as s,B as A,bN as H,bz as F,bO as Q,bP as V}from"./index.js";import{u as L}from"./useSuspenseQuery.js";import{B as O}from"./back-link.js";import{D as M,a as g}from"./detail-row.js";import{P as Z}from"./page-heading.js";import{S as q}from"./state-badge.js";import{A as G}from"./ami-details.js";import{E as w}from"./error-banner.js";import{g as Y,h as J,i as K,j as U}from"./ec2.js";import{T as W}from"./trash-2.js";const X=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],ee=R("pause",X);const te=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],se=R("play",te);const ne=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],ae=R("rotate-cw",ne),ie=["pending","stopping","shutting-down","terminated"];function le(e){const t=$.c(35),{instanceId:l,state:a}=e,n=Y(),o=J(),r=K(),u=U();if(ie.includes(a||"")&&a!=="terminated"){let i;return t[0]!==a?(i=s.jsx("div",{className:"rounded-lg border bg-muted/50 p-4",children:s.jsxs("p",{className:"text-center text-muted-foreground text-sm",children:["Instance is ",a,". Actions will be available once the operation completes."]})}),t[0]=a,t[1]=i):i=t[1],i}if(a==="terminated"){let i;return t[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"rounded-lg border bg-muted/50 p-4",children:s.jsx("p",{className:"text-center text-muted-foreground text-sm",children:"This instance has been terminated and cannot be managed."})}),t[2]=i):i=t[2],i}let j;t[3]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("h2",{className:"mb-4 font-semibold",children:"Instance Actions"}),t[3]=j):j=t[3];let h;t[4]!==n.error?(h=n.error&&s.jsx(w,{error:n.error,msg:"Failed to start instance"}),t[4]=n.error,t[5]=h):h=t[5];let p;t[6]!==o.error?(p=o.error&&s.jsx(w,{error:o.error,msg:"Failed to stop instance"}),t[6]=o.error,t[7]=p):p=t[7];let I;t[8]!==r.error?(I=r.error&&s.jsx(w,{error:r.error,msg:"Failed to reboot instance"}),t[8]=r.error,t[9]=I):I=t[9];let c;t[10]!==u.error?(c=u.error&&s.jsx(w,{error:u.error,msg:"Failed to terminate instance"}),t[10]=u.error,t[11]=c):c=t[11];let d;t[12]!==l||t[13]!==n||t[14]!==a?(d=a==="stopped"&&s.jsxs(A,{disabled:n.isPending,onClick:()=>n.mutate(l),size:"sm",variant:"default",children:[s.jsx(se,{className:"size-4"}),n.isPending?"Starting":"Start"]}),t[12]=l,t[13]=n,t[14]=a,t[15]=d):d=t[15];let b;t[16]!==l||t[17]!==r||t[18]!==a||t[19]!==o?(b=a==="running"&&s.jsxs(s.Fragment,{children:[s.jsxs(A,{disabled:o.isPending,onClick:()=>o.mutate(l),size:"sm",variant:"outline",children:[s.jsx(ee,{className:"size-4"}),o.isPending?"Stopping":"Stop"]}),s.jsxs(A,{disabled:r.isPending,onClick:()=>r.mutate(l),size:"sm",variant:"outline",children:[s.jsx(ae,{className:"size-4"}),r.isPending?"Rebooting":"Reboot"]})]}),t[16]=l,t[17]=r,t[18]=a,t[19]=o,t[20]=b):b=t[20];let m;t[21]!==l||t[22]!==a||t[23]!==u?(m=(a==="stopped"||a==="running")&&s.jsxs(A,{disabled:u.isPending,onClick:()=>u.mutate(l),size:"sm",variant:"destructive",children:[s.jsx(W,{className:"size-4"}),u.isPending?"Terminating":"Terminate"]}),t[21]=l,t[22]=a,t[23]=u,t[24]=m):m=t[24];let f;t[25]!==d||t[26]!==b||t[27]!==m?(f=s.jsxs("div",{className:"flex flex-wrap gap-2",children:[d,b,m]}),t[25]=d,t[26]=b,t[27]=m,t[28]=f):f=t[28];let x;return t[29]!==h||t[30]!==p||t[31]!==I||t[32]!==c||t[33]!==f?(x=s.jsxs("div",{className:"rounded-lg border bg-card p-4",children:[j,h,p,I,c,f]}),t[29]=h,t[30]=p,t[31]=I,t[32]=c,t[33]=f,t[34]=x):x=t[34],x}function he(){const e=$.c(48),{id:t}=H.useParams();let l;e[0]!==t?(l=Q(t),e[0]=t,e[1]=l):l=e[1];const{data:a}=L(l),n=a.Reservations?.[0]?.Instances?.[0],o=n?.ImageId;let r;e[2]!==o?(r=V(o),e[2]=o,e[3]=r):r=e[3];const{data:u}=L(r),_=u?.Images?.[0];if(!n?.InstanceId){let C;return e[4]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsxs(s.Fragment,{children:[s.jsx(O,{to:"/ec2/describe-instances",children:"Back to instances"}),s.jsx("p",{className:"text-muted-foreground",children:"Instance not found."})]}),e[4]=C):C=e[4],C}let j;e[5]!==n.LaunchTime?(j=F(n.LaunchTime),e[5]=n.LaunchTime,e[6]=j):j=e[6];const h=j;let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(O,{to:"/ec2/describe-instances",children:"Back to instances"}),e[7]=p):p=e[7];const I=n.State?.Name;let c;e[8]!==I?(c=s.jsx(q,{state:I}),e[8]=I,e[9]=c):c=e[9];let d;e[10]!==n.InstanceId||e[11]!==c?(d=s.jsx(Z,{actions:c,subtitle:"EC2 Instance Details",title:n.InstanceId}),e[10]=n.InstanceId,e[11]=c,e[12]=d):d=e[12];const b=n.State?.Name;let m;e[13]!==n.InstanceId||e[14]!==b?(m=s.jsx(le,{instanceId:n.InstanceId,state:b}),e[13]=n.InstanceId,e[14]=b,e[15]=m):m=e[15];let f;e[16]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(M.Header,{children:"Instance Information"}),e[16]=f):f=e[16];let x;e[17]!==n.InstanceId?(x=s.jsx(g,{label:"Instance ID",value:n.InstanceId}),e[17]=n.InstanceId,e[18]=x):x=e[18];let i;e[19]!==n.InstanceType?(i=s.jsx(g,{label:"Instance Type",value:n.InstanceType}),e[19]=n.InstanceType,e[20]=i):i=e[20];const z=n.State?.Name;let v;e[21]!==z?(v=s.jsx(g,{label:"Instance State",value:z}),e[21]=z,e[22]=v):v=e[22];let S;e[23]!==n.State?.Code?(S=n.State?.Code?.toString(),e[23]=n.State?.Code,e[24]=S):S=e[24];let N;e[25]!==S?(N=s.jsx(g,{label:"State Code",value:S}),e[25]=S,e[26]=N):N=e[26];let T;e[27]!==h?(T=s.jsx(g,{label:"Launch Time",value:h}),e[27]=h,e[28]=T):T=e[28];const E=n.Placement?.AvailabilityZone;let k;e[29]!==E?(k=s.jsx(g,{label:"Availability Zone",value:E}),e[29]=E,e[30]=k):k=e[30];let y;e[31]!==x||e[32]!==i||e[33]!==v||e[34]!==N||e[35]!==T||e[36]!==k?(y=s.jsxs(M,{children:[f,s.jsxs(M.Content,{children:[x,i,v,N,T,k]})]}),e[31]=x,e[32]=i,e[33]=v,e[34]=N,e[35]=T,e[36]=k,e[37]=y):y=e[37];let D;e[38]!==n.BlockDeviceMappings?(D=n.BlockDeviceMappings&&n.BlockDeviceMappings.length>0&&s.jsxs(M,{children:[s.jsx(M.Header,{children:"Block Device Mappings"}),s.jsxs(M.Content,{children:[s.jsx(g,{label:"Device Name",value:n.BlockDeviceMappings[0]?.DeviceName}),s.jsx(g,{label:"Volume ID",value:n.BlockDeviceMappings[0]?.Ebs?.VolumeId}),s.jsx(g,{label:"Status",value:n.BlockDeviceMappings[0]?.Ebs?.Status}),s.jsx(g,{label:"Attach Time",value:F(n.BlockDeviceMappings[0]?.Ebs?.AttachTime)}),s.jsx(g,{label:"Delete on Termination",value:n.BlockDeviceMappings[0]?.Ebs?.DeleteOnTermination?"Yes":"No"})]})]}),e[38]=n.BlockDeviceMappings,e[39]=D):D=e[39];let B;e[40]!==_?(B=_&&s.jsx(G,{image:_}),e[40]=_,e[41]=B):B=e[41];let P;return e[42]!==y||e[43]!==D||e[44]!==B||e[45]!==d||e[46]!==m?(P=s.jsxs(s.Fragment,{children:[p,s.jsxs("div",{className:"space-y-6",children:[d,m,y,D,B]})]}),e[42]=y,e[43]=D,e[44]=B,e[45]=d,e[46]=m,e[47]=P):P=e[47],P}export{he as component}; +import{az as x,u as j,aA as p,r as h,j as e,B as D,L as g}from"./index.js";import{u as S}from"./useSuspenseQuery.js";import{B as o}from"./back-link.js";import{D as l,a as s}from"./detail-row.js";import{E as f}from"./error-banner.js";import{P as v}from"./page-heading.js";import{S as A}from"./state-badge.js";import{g as I,f as y,b as C,a as B,c as P,d as k,e as N,h as w}from"./alert-dialog.js";import{l as F}from"./ec2.js";import{T as L}from"./trash-2.js";function Q(){const{id:r}=x.useParams(),c=j(),{data:u}=S(p(r)),t=u.Subnets?.[0],a=F(),[d,n]=h.useState(!1),b=async()=>{try{await a.mutateAsync(r),c({to:"/ec2/describe-subnets"})}finally{n(!1)}};if(!t?.SubnetId)return e.jsxs(e.Fragment,{children:[e.jsx(o,{to:"/ec2/describe-subnets",children:"Back to Subnets"}),e.jsx("p",{className:"text-muted-foreground",children:"Subnet not found."})]});const i=t.Tags?.find(m=>m.Key==="Name")?.Value;return e.jsxs(e.Fragment,{children:[e.jsx(o,{to:"/ec2/describe-subnets",children:"Back to Subnets"}),a.error&&e.jsx(f,{error:a.error,msg:"Failed to delete subnet"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(v,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(D,{onClick:()=>n(!0),size:"sm",variant:"destructive",children:[e.jsx(L,{className:"size-4"}),"Delete"]}),e.jsx(A,{state:t.State})]}),subtitle:"Subnet Details",title:i?`${t.SubnetId} (${i})`:t.SubnetId}),e.jsxs(l,{children:[e.jsx(l.Header,{children:"Subnet Information"}),e.jsxs(l.Content,{children:[e.jsx(s,{label:"Subnet ID",value:t.SubnetId}),e.jsx(s,{label:"VPC ID",value:t.VpcId?e.jsx(g,{className:"text-primary hover:underline",params:{id:t.VpcId},to:"/ec2/describe-vpcs/$id",children:t.VpcId}):"—"}),e.jsx(s,{label:"State",value:t.State}),e.jsx(s,{label:"CIDR Block",value:t.CidrBlock}),e.jsx(s,{label:"Availability Zone",value:t.AvailabilityZone}),e.jsx(s,{label:"Available IP Count",value:t.AvailableIpAddressCount?.toString()}),e.jsx(s,{label:"Map Public IP on Launch",value:t.MapPublicIpOnLaunch?"Yes":"No"}),e.jsx(s,{label:"Default for AZ",value:t.DefaultForAz?"Yes":"No"})]})]})]}),e.jsx(I,{onOpenChange:n,open:d,children:e.jsxs(y,{children:[e.jsxs(C,{children:[e.jsx(B,{children:"Delete Subnet"}),e.jsxs(P,{children:['Are you sure you want to delete the subnet "',t.SubnetId,'"? This action cannot be undone.']})]}),e.jsxs(k,{children:[e.jsx(N,{children:"Cancel"}),e.jsx(w,{disabled:a.isPending,onClick:b,children:a.isPending?"Deleting…":"Delete"})]})]})})]})}export{Q as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id5.js b/hive/services/hiveui/frontend/dist/assets/_id5.js index 0c60bd405..f6d6acf22 100644 --- a/hive/services/hiveui/frontend/dist/assets/_id5.js +++ b/hive/services/hiveui/frontend/dist/assets/_id5.js @@ -1 +1 @@ -import{c as g,c8 as u,j as s,bP as p}from"./index.js";import{u as x}from"./useSuspenseQuery.js";import{B as d}from"./back-link.js";import{P as I}from"./page-heading.js";import{B as j}from"./badge.js";import{A as h}from"./ami-details.js";import"./detail-row.js";function E(){const e=g.c(14),{id:c}=u.useParams();let o;e[0]!==c?(o=p(c),e[0]=c,e[1]=o):o=e[1];const{data:f}=x(o),t=f?.Images?.[0];if(!t?.ImageId){let n;return e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs(s.Fragment,{children:[s.jsx(d,{to:"/ec2/describe-images",children:"Back to images"}),s.jsx("p",{className:"text-muted-foreground",children:"Image not found."})]}),e[2]=n):n=e[2],n}let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(d,{to:"/ec2/describe-images",children:"Back to images"}),e[3]=r):r=e[3];let a;e[4]!==t.State?(a=t.State?s.jsx(j,{variant:t.State==="available"?"default":"outline",children:t.State}):void 0,e[4]=t.State,e[5]=a):a=e[5];let i;e[6]!==t.ImageId||e[7]!==a?(i=s.jsx(I,{actions:a,subtitle:"EC2 Image Details",title:t.ImageId}),e[6]=t.ImageId,e[7]=a,e[8]=i):i=e[8];let m;e[9]!==t?(m=s.jsx(h,{image:t,showExtendedDetails:!0}),e[9]=t,e[10]=m):m=e[10];let l;return e[11]!==i||e[12]!==m?(l=s.jsxs(s.Fragment,{children:[r,s.jsxs("div",{className:"space-y-6",children:[i,m]})]}),e[11]=i,e[12]=m,e[13]=l):l=e[13],l}export{E as component}; +import{k as z,aB as E,u as V,aC as O,e as L,r as l,j as e,ay as H,B as u,L as M}from"./index.js";import{u as m}from"./useSuspenseQuery.js";import{B as x}from"./back-link.js";import{D as c,a as t}from"./detail-row.js";import{E as j}from"./error-banner.js";import{P as Q}from"./page-heading.js";import{S as _}from"./state-badge.js";import{g,f as y,b as D,a as S,c as f,d as C,e as b,h as v}from"./alert-dialog.js";import{b as $,a as G}from"./field.js";import{I as Y}from"./input.js";import{m as q,n as J}from"./ec2.js";import{T as K}from"./trash-2.js";const U=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],W=z("copy",U);function de(){const{id:n}=E.useParams(),I=V(),{data:k}=m(O(n)),{data:A}=m(L),s=k.Snapshots?.[0],a=q(),o=J(),[w,i]=l.useState(!1),[B,r]=l.useState(!1),[d,p]=l.useState(""),N=A.Regions?.[0]?.RegionName??"ap-southeast-2",h=s?.State==="completed",P=async()=>{try{await a.mutateAsync(n),I({to:"/ec2/describe-snapshots"})}finally{i(!1)}},T=async()=>{try{await o.mutateAsync({sourceSnapshotId:n,sourceRegion:N,description:d||void 0}),r(!1),p("")}catch{}};if(!s?.SnapshotId)return e.jsxs(e.Fragment,{children:[e.jsx(x,{to:"/ec2/describe-snapshots",children:"Back to snapshots"}),e.jsx("p",{className:"text-muted-foreground",children:"Snapshot not found."})]});const F=H(s.StartTime);return e.jsxs(e.Fragment,{children:[e.jsx(x,{to:"/ec2/describe-snapshots",children:"Back to snapshots"}),a.error&&e.jsx(j,{error:a.error,msg:"Failed to delete snapshot"}),o.error&&e.jsx(j,{error:o.error,msg:"Failed to copy snapshot"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(Q,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(u,{disabled:!h,onClick:()=>i(!0),size:"sm",variant:"destructive",children:[e.jsx(K,{className:"size-4"}),"Delete"]}),e.jsxs(u,{disabled:!h,onClick:()=>r(!0),size:"sm",variant:"outline",children:[e.jsx(W,{className:"size-4"}),"Copy Snapshot"]}),e.jsx(_,{state:s.State})]}),subtitle:"EC2 Snapshot Details",title:s.SnapshotId}),e.jsxs(c,{children:[e.jsx(c.Header,{children:"Snapshot Information"}),e.jsxs(c.Content,{children:[e.jsx(t,{label:"Snapshot ID",value:s.SnapshotId}),e.jsx(t,{label:"Volume ID",value:s.VolumeId?e.jsx(M,{className:"text-primary hover:underline",params:{id:s.VolumeId},to:"/ec2/describe-volumes/$id",children:s.VolumeId}):void 0}),e.jsx(t,{label:"Volume Size",value:`${s.VolumeSize} GiB`}),e.jsx(t,{label:"State",value:s.State}),e.jsx(t,{label:"Description",value:s.Description}),e.jsx(t,{label:"Progress",value:s.Progress}),e.jsx(t,{label:"Start Time",value:F}),e.jsx(t,{label:"Owner ID",value:s.OwnerId}),e.jsx(t,{label:"Encrypted",value:s.Encrypted?"Yes":"No"})]})]})]}),e.jsx(g,{onOpenChange:i,open:w,children:e.jsxs(y,{children:[e.jsxs(D,{children:[e.jsx(S,{children:"Delete Snapshot"}),e.jsxs(f,{children:['Are you sure you want to delete the snapshot "',s.SnapshotId,'"? This action cannot be undone.']})]}),e.jsxs(C,{children:[e.jsx(b,{children:"Cancel"}),e.jsx(v,{disabled:a.isPending,onClick:P,children:a.isPending?"Deleting…":"Delete"})]})]})}),e.jsx(g,{onOpenChange:r,open:B,children:e.jsxs(y,{children:[e.jsxs(D,{children:[e.jsx(S,{children:"Copy Snapshot"}),e.jsx(f,{children:"Create a copy of this snapshot in the current region."})]}),e.jsxs($,{children:[e.jsx(G,{children:e.jsx("label",{htmlFor:"copyDescription",children:"Description (optional)"})}),e.jsx(Y,{id:"copyDescription",onChange:R=>p(R.target.value),placeholder:"Description for the snapshot copy",value:d})]}),e.jsxs(C,{children:[e.jsx(b,{children:"Cancel"}),e.jsx(v,{disabled:o.isPending,onClick:T,children:o.isPending?"Copying…":"Copy Snapshot"})]})]})})]})}export{de as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id6.js b/hive/services/hiveui/frontend/dist/assets/_id6.js new file mode 100644 index 000000000..eb070e443 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/_id6.js @@ -0,0 +1 @@ +import{aD as x,u as p,aE as h,r as j,j as e,ay as g,B as D}from"./index.js";import{u as K}from"./useSuspenseQuery.js";import{B as o}from"./back-link.js";import{D as s,a as r}from"./detail-row.js";import{E as f}from"./error-banner.js";import{P as b}from"./page-heading.js";import{g as P,f as k,b as T,a as A,c as C,d as v,e as N,h as w}from"./alert-dialog.js";import{o as B}from"./ec2.js";import{T as E}from"./trash-2.js";function M(){const{id:l}=x.useParams(),c=p(),{data:d}=K(h(l)),a=d.KeyPairs?.[0],i=B(),[y,t]=j.useState(!1),m=async()=>{try{await i.mutateAsync(l),c({to:"/ec2/describe-key-pairs"})}finally{t(!1)}};if(!a?.KeyPairId)return e.jsxs(e.Fragment,{children:[e.jsx(o,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),e.jsx("p",{className:"text-muted-foreground",children:"Key pair not found."})]});const u=g(a.CreateTime);return e.jsxs(e.Fragment,{children:[e.jsx(o,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),i.error&&e.jsx(f,{error:i.error,msg:"Failed to delete key pair"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(b,{actions:e.jsxs(D,{onClick:()=>t(!0),size:"sm",variant:"destructive",children:[e.jsx(E,{className:"size-4"}),"Delete"]}),subtitle:"EC2 Key Pair Details",title:a.KeyName??""}),e.jsxs(s,{children:[e.jsx(s.Header,{children:"Key Pair Information"}),e.jsxs(s.Content,{children:[e.jsx(r,{label:"Key Name",value:a.KeyName}),e.jsx(r,{label:"Key Pair ID",value:a.KeyPairId}),e.jsx(r,{label:"Key Type",value:a.KeyType}),e.jsx(r,{label:"Key Fingerprint",value:a.KeyFingerprint}),e.jsx(r,{label:"Creation Date",value:u})]})]}),a.Tags&&a.Tags.length>0&&e.jsxs(s,{children:[e.jsx(s.Header,{children:"Tags"}),e.jsx(s.Content,{children:a.Tags.map(n=>e.jsx(r,{label:n.Key||"",value:n.Value},n.Key))})]})]}),e.jsx(P,{onOpenChange:t,open:y,children:e.jsxs(k,{children:[e.jsxs(T,{children:[e.jsx(A,{children:"Delete Key Pair"}),e.jsxs(C,{children:['Are you sure you want to delete the key pair "',a.KeyName,'"? This action cannot be undone. Any instances using this key pair will no longer be able to be accessed with it.']})]}),e.jsxs(v,{children:[e.jsx(N,{children:"Cancel"}),e.jsx(w,{disabled:i.isPending,onClick:m,children:i.isPending?"Deleting…":"Delete"})]})]})})]})}export{M as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id7.js b/hive/services/hiveui/frontend/dist/assets/_id7.js new file mode 100644 index 000000000..f63fce450 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/_id7.js @@ -0,0 +1 @@ +import{k as D,r as S,j as e,c as K,B as C,aF as Z,aG as Y,aH as J,n as U,ay as _,L as k}from"./index.js";import{u as P}from"./useSuspenseQuery.js";import{B as z}from"./back-link.js";import{D as x,a as r}from"./detail-row.js";import{E as T}from"./error-banner.js";import{P as W}from"./page-heading.js";import{S as X}from"./state-badge.js";import{g as O,f as V,b as E,a as B,c as R,d as $,e as H,h as G}from"./alert-dialog.js";import{b as A,a as w}from"./field.js";import{S as ee,a as se,b as te,c as ae,d as ne}from"./select.js";import{p as ie,q as re,r as le,s as oe,t as ce,v as de,w as me}from"./ec2.js";import{A as ue}from"./ami-details.js";import{I as pe}from"./input.js";import{T as he}from"./textarea.js";import{T as xe}from"./trash-2.js";import"./check.js";const ge=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],je=D("image-plus",ge);const Ie=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],ye=D("pause",Ie);const fe=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],be=D("play",fe);const ve=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],Se=D("rotate-cw",ve);const Ce=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],Ne=D("settings-2",Ce);const Te=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],De=D("terminal",Te);function ke({instanceId:b,open:s,onOpenChange:t}){const n=ie(),[c,d]=S.useState(""),[l,i]=S.useState(""),[g,p]=S.useState(null);function m(o){o||(d(""),i(""),p(null)),t(o)}async function u(){try{const o=await n.mutateAsync({instanceId:b,name:c,description:l||void 0});p(o.ImageId??null),d(""),i("")}catch{}}return e.jsx(O,{onOpenChange:m,open:s,children:e.jsxs(V,{children:[e.jsxs(E,{children:[e.jsx(B,{children:g?"Image Created":"Create Image (AMI)"}),e.jsx(R,{children:g?`Image "${g}" was created successfully.`:`Create an AMI from instance "${b}".`})]}),!g&&e.jsxs(e.Fragment,{children:[e.jsxs(A,{children:[e.jsx(w,{children:e.jsx("label",{htmlFor:"imageName",children:"Name"})}),e.jsx(pe,{id:"imageName",onChange:o=>d(o.target.value),placeholder:"my-image",value:c})]}),e.jsxs(A,{children:[e.jsx(w,{children:e.jsx("label",{htmlFor:"imageDescription",children:"Description"})}),e.jsx(he,{id:"imageDescription",onChange:o=>i(o.target.value),placeholder:"Optional description",rows:2,value:l})]})]}),e.jsxs($,{children:[e.jsx(H,{children:g?"Close":"Cancel"}),!g&&e.jsx(G,{disabled:n.isPending||!c.trim(),onClick:u,children:n.isPending?"Creating…":"Create Image"})]})]})})}const Pe=["pending","stopping","shutting-down","terminated"];function Ae(b){const s=K.c(35),{instanceId:t,state:n}=b,c=re(),d=le(),l=oe(),i=ce();if(Pe.includes(n||"")&&n!=="terminated"){let h;return s[0]!==n?(h=e.jsx("div",{className:"rounded-lg border bg-muted/50 p-4",children:e.jsxs("p",{className:"text-center text-muted-foreground text-sm",children:["Instance is ",n,". Actions will be available once the operation completes."]})}),s[0]=n,s[1]=h):h=s[1],h}if(n==="terminated"){let h;return s[2]===Symbol.for("react.memo_cache_sentinel")?(h=e.jsx("div",{className:"rounded-lg border bg-muted/50 p-4",children:e.jsx("p",{className:"text-center text-muted-foreground text-sm",children:"This instance has been terminated and cannot be managed."})}),s[2]=h):h=s[2],h}let p;s[3]===Symbol.for("react.memo_cache_sentinel")?(p=e.jsx("h2",{className:"mb-4 font-semibold",children:"Instance Actions"}),s[3]=p):p=s[3];let m;s[4]!==c.error?(m=c.error&&e.jsx(T,{error:c.error,msg:"Failed to start instance"}),s[4]=c.error,s[5]=m):m=s[5];let u;s[6]!==d.error?(u=d.error&&e.jsx(T,{error:d.error,msg:"Failed to stop instance"}),s[6]=d.error,s[7]=u):u=s[7];let o;s[8]!==l.error?(o=l.error&&e.jsx(T,{error:l.error,msg:"Failed to reboot instance"}),s[8]=l.error,s[9]=o):o=s[9];let j;s[10]!==i.error?(j=i.error&&e.jsx(T,{error:i.error,msg:"Failed to terminate instance"}),s[10]=i.error,s[11]=j):j=s[11];let I;s[12]!==t||s[13]!==c||s[14]!==n?(I=n==="stopped"&&e.jsxs(C,{disabled:c.isPending,onClick:()=>c.mutate(t),size:"sm",variant:"default",children:[e.jsx(be,{className:"size-4"}),c.isPending?"Starting":"Start"]}),s[12]=t,s[13]=c,s[14]=n,s[15]=I):I=s[15];let y;s[16]!==t||s[17]!==l||s[18]!==n||s[19]!==d?(y=n==="running"&&e.jsxs(e.Fragment,{children:[e.jsxs(C,{disabled:d.isPending,onClick:()=>d.mutate(t),size:"sm",variant:"outline",children:[e.jsx(ye,{className:"size-4"}),d.isPending?"Stopping":"Stop"]}),e.jsxs(C,{disabled:l.isPending,onClick:()=>l.mutate(t),size:"sm",variant:"outline",children:[e.jsx(Se,{className:"size-4"}),l.isPending?"Rebooting":"Reboot"]})]}),s[16]=t,s[17]=l,s[18]=n,s[19]=d,s[20]=y):y=s[20];let v;s[21]!==t||s[22]!==n||s[23]!==i?(v=(n==="stopped"||n==="running")&&e.jsxs(C,{disabled:i.isPending,onClick:()=>i.mutate(t),size:"sm",variant:"destructive",children:[e.jsx(xe,{className:"size-4"}),i.isPending?"Terminating":"Terminate"]}),s[21]=t,s[22]=n,s[23]=i,s[24]=v):v=s[24];let f;s[25]!==I||s[26]!==y||s[27]!==v?(f=e.jsxs("div",{className:"flex flex-wrap gap-2",children:[I,y,v]}),s[25]=I,s[26]=y,s[27]=v,s[28]=f):f=s[28];let N;return s[29]!==m||s[30]!==u||s[31]!==o||s[32]!==j||s[33]!==f?(N=e.jsxs("div",{className:"rounded-lg border bg-card p-4",children:[p,m,u,o,j,f]}),s[29]=m,s[30]=u,s[31]=o,s[32]=j,s[33]=f,s[34]=N):N=s[34],N}function Ke(){const{id:b}=Z.useParams(),{data:s}=P(Y(b)),t=s.Reservations?.[0]?.Instances?.[0],{data:n}=P(J(t?.ImageId)),c=n?.Images?.[0],{data:d}=P(U),l=de(),i=me(),[g,p]=S.useState(!1),[m,u]=S.useState(""),[o,j]=S.useState(!1),[I,y]=S.useState(null),[v,f]=S.useState(!1),N=[...new Set(d.InstanceTypes?.flatMap(a=>a.InstanceType?[a.InstanceType]:[]))].toSorted();if(!t?.InstanceId)return e.jsxs(e.Fragment,{children:[e.jsx(z,{to:"/ec2/describe-instances",children:"Back to instances"}),e.jsx("p",{className:"text-muted-foreground",children:"Instance not found."})]});const h=_(t.LaunchTime),M=t.State?.Name==="running",F=t.State?.Name==="stopped";async function L(){try{await l.mutateAsync({instanceId:b,instanceType:m}),p(!1),u("")}catch{}}async function Q(){try{const a=await i.mutateAsync(b),q=a.Output?atob(a.Output):"(no output)";y(q),j(!0)}catch{}}return e.jsxs(e.Fragment,{children:[e.jsx(z,{to:"/ec2/describe-instances",children:"Back to instances"}),l.error&&e.jsx(T,{error:l.error,msg:"Failed to modify instance"}),i.error&&e.jsx(T,{error:i.error,msg:"Failed to get console output"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(W,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[M&&e.jsxs(C,{disabled:i.isPending,onClick:Q,size:"sm",variant:"outline",children:[e.jsx(De,{className:"size-4"}),i.isPending?"Fetching…":"View Console"]}),(M||F)&&e.jsxs(C,{onClick:()=>f(!0),size:"sm",variant:"outline",children:[e.jsx(je,{className:"size-4"}),"Create Image"]}),F&&e.jsxs(C,{onClick:()=>{u(t.InstanceType??""),p(!0)},size:"sm",variant:"outline",children:[e.jsx(Ne,{className:"size-4"}),"Modify Instance"]}),e.jsx(X,{state:t.State?.Name})]}),subtitle:"EC2 Instance Details",title:t.InstanceId}),e.jsx(Ae,{instanceId:t.InstanceId,state:t.State?.Name}),o&&I!==null&&e.jsxs(x,{children:[e.jsx(x.Header,{children:e.jsxs("div",{className:"flex items-center justify-between",children:["Console Output",e.jsx(C,{onClick:()=>{j(!1),y(null)},size:"sm",variant:"ghost",children:"Hide"})]})}),e.jsx("div",{className:"p-4",children:e.jsx("pre",{className:"max-h-96 overflow-y-auto whitespace-pre-wrap rounded bg-muted p-3 font-mono text-xs",children:I})})]}),e.jsxs(x,{children:[e.jsx(x.Header,{children:"Instance Information"}),e.jsxs(x.Content,{children:[e.jsx(r,{label:"Instance ID",value:t.InstanceId}),e.jsx(r,{label:"Instance Type",value:t.InstanceType}),e.jsx(r,{label:"Instance State",value:t.State?.Name}),e.jsx(r,{label:"State Code",value:t.State?.Code?.toString()}),e.jsx(r,{label:"Launch Time",value:h}),e.jsx(r,{label:"Availability Zone",value:t.Placement?.AvailabilityZone})]})]}),(t.PrivateIpAddress||t.PublicIpAddress||t.VpcId||t.SubnetId||t.SecurityGroups&&t.SecurityGroups.length>0)&&e.jsxs(x,{children:[e.jsx(x.Header,{children:"Network & Security"}),e.jsxs(x.Content,{children:[e.jsx(r,{label:"Private IP Address",value:t.PrivateIpAddress}),e.jsx(r,{label:"Public IP Address",value:t.PublicIpAddress}),e.jsx(r,{label:"Private DNS",value:t.PrivateDnsName}),e.jsx(r,{label:"Public DNS",value:t.PublicDnsName}),e.jsx(r,{label:"VPC ID",value:t.VpcId?e.jsx(k,{className:"text-primary hover:underline",params:{id:t.VpcId},to:"/ec2/describe-vpcs/$id",children:t.VpcId}):void 0}),e.jsx(r,{label:"Subnet ID",value:t.SubnetId?e.jsx(k,{className:"text-primary hover:underline",params:{id:t.SubnetId},to:"/ec2/describe-subnets/$id",children:t.SubnetId}):void 0}),e.jsx(r,{label:"Key Name",value:t.KeyName}),e.jsx(r,{label:"Security Groups",value:t.SecurityGroups?.map(a=>a.GroupName).join(", ")})]})]}),t.BlockDeviceMappings&&t.BlockDeviceMappings.length>0&&e.jsxs(x,{children:[e.jsx(x.Header,{children:"Block Device Mappings"}),t.BlockDeviceMappings.map(a=>e.jsxs(x.Content,{children:[e.jsx(r,{label:"Device Name",value:a.DeviceName}),e.jsx(r,{label:"Volume ID",value:a.Ebs?.VolumeId?e.jsx(k,{className:"text-primary hover:underline",params:{id:a.Ebs.VolumeId},to:"/ec2/describe-volumes/$id",children:a.Ebs.VolumeId}):void 0}),e.jsx(r,{label:"Status",value:a.Ebs?.Status}),e.jsx(r,{label:"Attach Time",value:_(a.Ebs?.AttachTime)}),e.jsx(r,{label:"Delete on Termination",value:a.Ebs?.DeleteOnTermination?"Yes":"No"})]},a.DeviceName))]}),c&&e.jsx(ue,{image:c})]}),e.jsx(O,{onOpenChange:a=>{a||(p(!1),u(""))},open:g,children:e.jsxs(V,{children:[e.jsxs(E,{children:[e.jsx(B,{children:"Modify Instance"}),e.jsxs(R,{children:['Select a new instance type for "',t.InstanceId,'". The instance must be stopped to modify its attributes.']})]}),e.jsxs(A,{children:[e.jsx(w,{children:e.jsx("label",{htmlFor:"instanceType",children:"Instance Type"})}),e.jsxs(ee,{onValueChange:a=>u(a??""),value:m,children:[e.jsx(se,{className:"w-full",id:"instanceType",children:e.jsx(te,{})}),e.jsx(ae,{children:N.map(a=>e.jsx(ne,{value:a,children:a},a))})]})]}),e.jsxs($,{children:[e.jsx(H,{children:"Cancel"}),e.jsx(G,{disabled:l.isPending||!m||m===t.InstanceType,onClick:L,children:l.isPending?"Saving…":"Save Changes"})]})]})}),e.jsx(ke,{instanceId:t.InstanceId,onOpenChange:f,open:v})]})}export{Ke as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id8.js b/hive/services/hiveui/frontend/dist/assets/_id8.js new file mode 100644 index 000000000..06501acd2 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/_id8.js @@ -0,0 +1 @@ +import{c as f,cz as u,j as t,aH as p}from"./index.js";import{u as x}from"./useSuspenseQuery.js";import{B as d}from"./back-link.js";import{P as I}from"./page-heading.js";import{S as j}from"./state-badge.js";import{A as h}from"./ami-details.js";import"./detail-row.js";function _(){const e=f.c(14),{id:n}=u.useParams();let o;e[0]!==n?(o=p(n),e[0]=n,e[1]=o):o=e[1];const{data:g}=x(o),s=g?.Images?.[0];if(!s?.ImageId){let l;return e[2]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsxs(t.Fragment,{children:[t.jsx(d,{to:"/ec2/describe-images",children:"Back to images"}),t.jsx("p",{className:"text-muted-foreground",children:"Image not found."})]}),e[2]=l):l=e[2],l}let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(d,{to:"/ec2/describe-images",children:"Back to images"}),e[3]=r):r=e[3];let a;e[4]!==s.State?(a=t.jsx(j,{state:s.State}),e[4]=s.State,e[5]=a):a=e[5];let i;e[6]!==s.ImageId||e[7]!==a?(i=t.jsx(I,{actions:a,subtitle:"EC2 Image Details",title:s.ImageId}),e[6]=s.ImageId,e[7]=a,e[8]=i):i=e[8];let m;e[9]!==s?(m=t.jsx(h,{image:s,showExtendedDetails:!0}),e[9]=s,e[10]=m):m=e[10];let c;return e[11]!==i||e[12]!==m?(c=t.jsxs(t.Fragment,{children:[r,t.jsxs("div",{className:"space-y-6",children:[i,m]})]}),e[11]=i,e[12]=m,e[13]=c):c=e[13],c}export{_ as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/alert-dialog.js b/hive/services/hiveui/frontend/dist/assets/alert-dialog.js index caf6543fb..e990a27a0 100644 --- a/hive/services/hiveui/frontend/dist/assets/alert-dialog.js +++ b/hive/services/hiveui/frontend/dist/assets/alert-dialog.js @@ -1 +1 @@ -import{bD as z,Z as j,bE as C,bF as N,r as h,j as i,bG as v,c as d,a as g,bH as A,bI as P,bJ as y,bK as $,B as x,bL as w,bM as R}from"./index.js";function I(s){const{children:e,open:t,defaultOpen:a=!1,onOpenChange:l,onOpenChangeComplete:o,actionsRef:c,handle:n,triggerId:r,defaultTriggerId:f=null}=s,p=z(),m=!!p,u=j(()=>n?.store??new C({open:a,openProp:t,activeTriggerId:f,triggerIdProp:r,modal:!0,disablePointerDismissal:!0,nested:m,role:"alertdialog"})).current;u.useControlledProp("openProp",t),u.useControlledProp("triggerIdProp",r),u.useSyncedValue("nested",m),u.useContextCallback("onOpenChange",l),u.useContextCallback("onOpenChangeComplete",o);const D=u.useState("payload");N({store:u,actionsRef:c,parentContext:p?.store.context});const b=h.useMemo(()=>({store:u}),[u]);return i.jsx(v.Provider,{value:b,children:typeof e=="function"?e({payload:D}):e})}function T(s){const e=d.c(4);let t;e[0]!==s?({...t}=s,e[0]=s,e[1]=t):t=e[1];let a;return e[2]!==t?(a=i.jsx(I,{"data-slot":"alert-dialog",...t}),e[2]=t,e[3]=a):a=e[3],a}function k(s){const e=d.c(4);let t;e[0]!==s?({...t}=s,e[0]=s,e[1]=t):t=e[1];let a;return e[2]!==t?(a=i.jsx(w,{"data-slot":"alert-dialog-portal",...t}),e[2]=t,e[3]=a):a=e[3],a}function O(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 isolate z-50 bg-black/80 duration-100 data-closed:animate-out data-open:animate-in supports-backdrop-filter:backdrop-blur-xs",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx(R,{className:l,"data-slot":"alert-dialog-overlay",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function B(s){const e=d.c(11);let t,a,l;e[0]!==s?({className:t,size:l,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=l):(t=e[1],a=e[2],l=e[3]);const o=l===void 0?"default":l;let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(O,{}),e[4]=c):c=e[4];let n;e[5]!==t?(n=g("data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-background p-4 outline-none ring-1 ring-foreground/10 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-closed:animate-out data-open:animate-in data-[size=default]:sm:max-w-sm",t),e[5]=t,e[6]=n):n=e[6];let r;return e[7]!==a||e[8]!==o||e[9]!==n?(r=i.jsxs(k,{children:[c,i.jsx(A,{className:n,"data-size":o,"data-slot":"alert-dialog-content",...a})]}),e[7]=a,e[8]=o,e[9]=n,e[10]=r):r=e[10],r}function E(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx("div",{className:l,"data-slot":"alert-dialog-header",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function S(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx("div",{className:l,"data-slot":"alert-dialog-footer",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function M(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("mb-2 inline-flex size-8 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx("div",{className:l,"data-slot":"alert-dialog-media",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function F(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("font-medium text-sm sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx(P,{className:l,"data-slot":"alert-dialog-title",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function H(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("text-balance text-muted-foreground text-xs/relaxed md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx(y,{className:l,"data-slot":"alert-dialog-description",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function V(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g(t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx(x,{className:l,"data-slot":"alert-dialog-action",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function G(s){const e=d.c(14);let t,a,l,o;e[0]!==s?({className:t,variant:l,size:o,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=l,e[4]=o):(t=e[1],a=e[2],l=e[3],o=e[4]);const c=l===void 0?"outline":l,n=o===void 0?"default":o;let r;e[5]!==t?(r=g(t),e[5]=t,e[6]=r):r=e[6];let f;e[7]!==n||e[8]!==c?(f=i.jsx(x,{size:n,variant:c}),e[7]=n,e[8]=c,e[9]=f):f=e[9];let p;return e[10]!==a||e[11]!==r||e[12]!==f?(p=i.jsx($,{className:r,"data-slot":"alert-dialog-cancel",render:f,...a}),e[10]=a,e[11]=r,e[12]=f,e[13]=p):p=e[13],p}export{M as A,F as a,E as b,H as c,S as d,G as e,B as f,T as g,V as h}; +import{bT as z,bg as j,bU as C,bV as N,r as h,j as i,bW as v,c as d,a as g,bX as A,bY as P,bZ as $,b_ as y,B as x,b$ as w,c0 as R}from"./index.js";function k(s){const{children:e,open:t,defaultOpen:a=!1,onOpenChange:l,onOpenChangeComplete:o,actionsRef:c,handle:n,triggerId:r,defaultTriggerId:f=null}=s,p=z(),m=!!p,u=j(()=>n?.store??new C({open:a,openProp:t,activeTriggerId:f,triggerIdProp:r,modal:!0,disablePointerDismissal:!0,nested:m,role:"alertdialog"})).current;u.useControlledProp("openProp",t),u.useControlledProp("triggerIdProp",r),u.useSyncedValue("nested",m),u.useContextCallback("onOpenChange",l),u.useContextCallback("onOpenChangeComplete",o);const D=u.useState("payload");N({store:u,actionsRef:c,parentContext:p?.store.context});const b=h.useMemo(()=>({store:u}),[u]);return i.jsx(v.Provider,{value:b,children:typeof e=="function"?e({payload:D}):e})}function T(s){const e=d.c(4);let t;e[0]!==s?({...t}=s,e[0]=s,e[1]=t):t=e[1];let a;return e[2]!==t?(a=i.jsx(k,{"data-slot":"alert-dialog",...t}),e[2]=t,e[3]=a):a=e[3],a}function I(s){const e=d.c(4);let t;e[0]!==s?({...t}=s,e[0]=s,e[1]=t):t=e[1];let a;return e[2]!==t?(a=i.jsx(w,{"data-slot":"alert-dialog-portal",...t}),e[2]=t,e[3]=a):a=e[3],a}function _(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 isolate z-50 bg-black/80 duration-100 data-closed:animate-out data-open:animate-in supports-backdrop-filter:backdrop-blur-xs",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx(R,{className:l,"data-slot":"alert-dialog-overlay",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function B(s){const e=d.c(11);let t,a,l;e[0]!==s?({className:t,size:l,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=l):(t=e[1],a=e[2],l=e[3]);const o=l===void 0?"default":l;let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(_,{}),e[4]=c):c=e[4];let n;e[5]!==t?(n=g("data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-background p-4 outline-none ring-1 ring-foreground/10 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-closed:animate-out data-open:animate-in data-[size=default]:sm:max-w-sm",t),e[5]=t,e[6]=n):n=e[6];let r;return e[7]!==a||e[8]!==o||e[9]!==n?(r=i.jsxs(I,{children:[c,i.jsx(A,{className:n,"data-size":o,"data-slot":"alert-dialog-content",...a})]}),e[7]=a,e[8]=o,e[9]=n,e[10]=r):r=e[10],r}function S(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx("div",{className:l,"data-slot":"alert-dialog-header",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function E(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx("div",{className:l,"data-slot":"alert-dialog-footer",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function V(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("mb-2 inline-flex size-8 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx("div",{className:l,"data-slot":"alert-dialog-media",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function M(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("font-medium text-sm sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx(P,{className:l,"data-slot":"alert-dialog-title",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function W(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("text-balance text-muted-foreground text-xs/relaxed md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx($,{className:l,"data-slot":"alert-dialog-description",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function F(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g(t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx(x,{className:l,"data-slot":"alert-dialog-action",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function H(s){const e=d.c(14);let t,a,l,o;e[0]!==s?({className:t,variant:l,size:o,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=l,e[4]=o):(t=e[1],a=e[2],l=e[3],o=e[4]);const c=l===void 0?"outline":l,n=o===void 0?"default":o;let r;e[5]!==t?(r=g(t),e[5]=t,e[6]=r):r=e[6];let f;e[7]!==n||e[8]!==c?(f=i.jsx(x,{size:n,variant:c}),e[7]=n,e[8]=c,e[9]=f):f=e[9];let p;return e[10]!==a||e[11]!==r||e[12]!==f?(p=i.jsx(y,{className:r,"data-slot":"alert-dialog-cancel",render:f,...a}),e[10]=a,e[11]=r,e[12]=f,e[13]=p):p=e[13],p}export{V as A,M as a,S as b,W as c,E as d,H as e,B as f,T as g,F as h}; diff --git a/hive/services/hiveui/frontend/dist/assets/ami-details.js b/hive/services/hiveui/frontend/dist/assets/ami-details.js index 6f1009454..2c39afa1e 100644 --- a/hive/services/hiveui/frontend/dist/assets/ami-details.js +++ b/hive/services/hiveui/frontend/dist/assets/ami-details.js @@ -1 +1 @@ -import{c as S,bz as M,j as t}from"./index.js";import{D as T,a}from"./detail-row.js";function C(i){const e=S.c(55),{image:l,showExtendedDetails:P}=i,s=P===void 0?!1:P;let y;e[0]!==l.CreationDate?(y=M(l.CreationDate),e[0]=l.CreationDate,e[1]=y):y=e[1];const V=y,R=s?"AMI Information":"AMI Details";let o;e[2]!==R?(o=t.jsx(T.Header,{children:R}),e[2]=R,e[3]=o):o=e[3];let r;e[4]!==l.ImageId?(r=t.jsx(a,{label:"AMI ID",value:l.ImageId}),e[4]=l.ImageId,e[5]=r):r=e[5];let c;e[6]!==l.Name?(c=t.jsx(a,{label:"AMI Name",value:l.Name}),e[6]=l.Name,e[7]=c):c=e[7];let n;e[8]!==l.Description?(n=t.jsx(a,{label:"Description",value:l.Description}),e[8]=l.Description,e[9]=n):n=e[9];let u;e[10]!==l.Architecture?(u=t.jsx(a,{label:"Architecture",value:l.Architecture}),e[10]=l.Architecture,e[11]=u):u=e[11];let D;e[12]!==l.VirtualizationType?(D=t.jsx(a,{label:"Virtualization Type",value:l.VirtualizationType}),e[12]=l.VirtualizationType,e[13]=D):D=e[13];const A=l.Platform||"Linux";let v;e[14]!==A?(v=t.jsx(a,{label:"Platform",value:A}),e[14]=A,e[15]=v):v=e[15];let m;e[16]!==l.PlatformDetails?(m=t.jsx(a,{label:"Platform Details",value:l.PlatformDetails}),e[16]=l.PlatformDetails,e[17]=m):m=e[17];let x;e[18]!==l.ImageType?(x=t.jsx(a,{label:"Image Type",value:l.ImageType}),e[18]=l.ImageType,e[19]=x):x=e[19];let b;e[20]!==l.RootDeviceType?(b=t.jsx(a,{label:"Root Device Type",value:l.RootDeviceType}),e[20]=l.RootDeviceType,e[21]=b):b=e[21];let f;e[22]!==l.RootDeviceName?(f=t.jsx(a,{label:"Root Device Name",value:l.RootDeviceName}),e[22]=l.RootDeviceName,e[23]=f):f=e[23];let j;e[24]!==l.OwnerId?(j=t.jsx(a,{label:"Owner",value:l.OwnerId}),e[24]=l.OwnerId,e[25]=j):j=e[25];let d;e[26]!==l.State?(d=t.jsx(a,{label:"State",value:l.State}),e[26]=l.State,e[27]=d):d=e[27];let I;e[28]!==V||e[29]!==l.Public||e[30]!==s?(I=s&&t.jsxs(t.Fragment,{children:[t.jsx(a,{label:"Creation Date",value:V}),t.jsx(a,{label:"Public",value:l.Public?"Yes":"No"})]}),e[28]=V,e[29]=l.Public,e[30]=s,e[31]=I):I=e[31];let h;e[32]!==v||e[33]!==m||e[34]!==x||e[35]!==b||e[36]!==f||e[37]!==j||e[38]!==d||e[39]!==I||e[40]!==r||e[41]!==c||e[42]!==n||e[43]!==u||e[44]!==D?(h=t.jsxs(T.Content,{children:[r,c,n,u,D,v,m,x,b,f,j,d,I]}),e[32]=v,e[33]=m,e[34]=x,e[35]=b,e[36]=f,e[37]=j,e[38]=d,e[39]=I,e[40]=r,e[41]=c,e[42]=n,e[43]=u,e[44]=D,e[45]=h):h=e[45];let N;e[46]!==h||e[47]!==o?(N=t.jsxs(T,{children:[o,h]}),e[46]=h,e[47]=o,e[48]=N):N=e[48];let p;e[49]!==l.BlockDeviceMappings||e[50]!==s?(p=s&&l.BlockDeviceMappings&&l.BlockDeviceMappings.length>0&&l.BlockDeviceMappings.map(z),e[49]=l.BlockDeviceMappings,e[50]=s,e[51]=p):p=e[51];let E;return e[52]!==N||e[53]!==p?(E=t.jsxs(t.Fragment,{children:[N,p]}),e[52]=N,e[53]=p,e[54]=E):E=e[54],E}function z(i){return t.jsxs(T,{children:[t.jsxs(T.Header,{children:["Block Device: ",i.DeviceName]}),t.jsxs(T.Content,{children:[t.jsx(a,{label:"Device Name",value:i.DeviceName}),i.Ebs&&t.jsxs(t.Fragment,{children:[t.jsx(a,{label:"Volume Size",value:i.Ebs.VolumeSize?`${i.Ebs.VolumeSize} GB`:void 0}),t.jsx(a,{label:"Volume Type",value:i.Ebs.VolumeType}),t.jsx(a,{label:"Delete On Termination",value:i.Ebs.DeleteOnTermination?"Yes":"No"}),t.jsx(a,{label:"Encrypted",value:i.Ebs.Encrypted?"Yes":"No"}),i.Ebs.SnapshotId&&t.jsx(a,{label:"Snapshot ID",value:i.Ebs.SnapshotId})]}),i.VirtualName&&t.jsx(a,{label:"Virtual Name",value:i.VirtualName})]})]},i.DeviceName)}export{C as A}; +import{c as g,ay as k,j as t,L as M}from"./index.js";import{D as T,a}from"./detail-row.js";function C(s){const e=g.c(58),{image:l,showExtendedDetails:P}=s,i=P===void 0?!1:P;let E;e[0]!==l.CreationDate?(E=k(l.CreationDate),e[0]=l.CreationDate,e[1]=E):E=e[1];const R=E,S=i?"AMI Information":"AMI Details";let o;e[2]!==S?(o=t.jsx(T.Header,{children:S}),e[2]=S,e[3]=o):o=e[3];let r;e[4]!==l.ImageId||e[5]!==i?(r=l.ImageId&&!i?t.jsx(M,{className:"text-primary hover:underline",params:{id:l.ImageId},to:"/ec2/describe-images/$id",children:l.ImageId}):l.ImageId,e[4]=l.ImageId,e[5]=i,e[6]=r):r=e[6];let c;e[7]!==r?(c=t.jsx(a,{label:"AMI ID",value:r}),e[7]=r,e[8]=c):c=e[8];let n;e[9]!==l.Name?(n=t.jsx(a,{label:"AMI Name",value:l.Name}),e[9]=l.Name,e[10]=n):n=e[10];let u;e[11]!==l.Description?(u=t.jsx(a,{label:"Description",value:l.Description}),e[11]=l.Description,e[12]=u):u=e[12];let m;e[13]!==l.Architecture?(m=t.jsx(a,{label:"Architecture",value:l.Architecture}),e[13]=l.Architecture,e[14]=m):m=e[14];let v;e[15]!==l.VirtualizationType?(v=t.jsx(a,{label:"Virtualization Type",value:l.VirtualizationType}),e[15]=l.VirtualizationType,e[16]=v):v=e[16];const A=l.Platform||"Linux";let D;e[17]!==A?(D=t.jsx(a,{label:"Platform",value:A}),e[17]=A,e[18]=D):D=e[18];let d;e[19]!==l.PlatformDetails?(d=t.jsx(a,{label:"Platform Details",value:l.PlatformDetails}),e[19]=l.PlatformDetails,e[20]=d):d=e[20];let x;e[21]!==l.ImageType?(x=t.jsx(a,{label:"Image Type",value:l.ImageType}),e[21]=l.ImageType,e[22]=x):x=e[22];let b;e[23]!==l.RootDeviceType?(b=t.jsx(a,{label:"Root Device Type",value:l.RootDeviceType}),e[23]=l.RootDeviceType,e[24]=b):b=e[24];let j;e[25]!==l.RootDeviceName?(j=t.jsx(a,{label:"Root Device Name",value:l.RootDeviceName}),e[25]=l.RootDeviceName,e[26]=j):j=e[26];let f;e[27]!==l.OwnerId?(f=t.jsx(a,{label:"Owner",value:l.OwnerId}),e[27]=l.OwnerId,e[28]=f):f=e[28];let I;e[29]!==l.State?(I=t.jsx(a,{label:"State",value:l.State}),e[29]=l.State,e[30]=I):I=e[30];let h;e[31]!==R||e[32]!==l.Public||e[33]!==i?(h=i&&t.jsxs(t.Fragment,{children:[t.jsx(a,{label:"Creation Date",value:R}),t.jsx(a,{label:"Public",value:l.Public?"Yes":"No"})]}),e[31]=R,e[32]=l.Public,e[33]=i,e[34]=h):h=e[34];let p;e[35]!==v||e[36]!==D||e[37]!==d||e[38]!==x||e[39]!==b||e[40]!==j||e[41]!==f||e[42]!==I||e[43]!==h||e[44]!==c||e[45]!==n||e[46]!==u||e[47]!==m?(p=t.jsxs(T.Content,{children:[c,n,u,m,v,D,d,x,b,j,f,I,h]}),e[35]=v,e[36]=D,e[37]=d,e[38]=x,e[39]=b,e[40]=j,e[41]=f,e[42]=I,e[43]=h,e[44]=c,e[45]=n,e[46]=u,e[47]=m,e[48]=p):p=e[48];let N;e[49]!==p||e[50]!==o?(N=t.jsxs(T,{children:[o,p]}),e[49]=p,e[50]=o,e[51]=N):N=e[51];let y;e[52]!==l.BlockDeviceMappings||e[53]!==i?(y=i&&l.BlockDeviceMappings&&l.BlockDeviceMappings.length>0&&l.BlockDeviceMappings.map(w),e[52]=l.BlockDeviceMappings,e[53]=i,e[54]=y):y=e[54];let V;return e[55]!==N||e[56]!==y?(V=t.jsxs(t.Fragment,{children:[N,y]}),e[55]=N,e[56]=y,e[57]=V):V=e[57],V}function w(s){return t.jsxs(T,{children:[t.jsxs(T.Header,{children:["Block Device: ",s.DeviceName]}),t.jsxs(T.Content,{children:[t.jsx(a,{label:"Device Name",value:s.DeviceName}),s.Ebs&&t.jsxs(t.Fragment,{children:[t.jsx(a,{label:"Volume Size",value:s.Ebs.VolumeSize?`${s.Ebs.VolumeSize} GB`:void 0}),t.jsx(a,{label:"Volume Type",value:s.Ebs.VolumeType}),t.jsx(a,{label:"Delete On Termination",value:s.Ebs.DeleteOnTermination?"Yes":"No"}),t.jsx(a,{label:"Encrypted",value:s.Ebs.Encrypted?"Yes":"No"}),s.Ebs.SnapshotId&&t.jsx(a,{label:"Snapshot ID",value:t.jsx(M,{className:"text-primary hover:underline",params:{id:s.Ebs.SnapshotId},to:"/ec2/describe-snapshots/$id",children:s.Ebs.SnapshotId})})]}),s.VirtualName&&t.jsx(a,{label:"Virtual Name",value:s.VirtualName})]})]},s.DeviceName)}export{C as A}; diff --git a/hive/services/hiveui/frontend/dist/assets/back-link.js b/hive/services/hiveui/frontend/dist/assets/back-link.js index 23cc2c5f2..221bb2065 100644 --- a/hive/services/hiveui/frontend/dist/assets/back-link.js +++ b/hive/services/hiveui/frontend/dist/assets/back-link.js @@ -1 +1 @@ -import{g as o,c as r,j as l,L as a}from"./index.js";const m=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],x=o("arrow-left",m);function p(i){const e=r.c(7);let s,t;e[0]!==i?({children:s,...t}=i,e[0]=i,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=l.jsx(x,{className:"size-4"}),e[3]=n):n=e[3];let c;return e[4]!==s||e[5]!==t?(c=l.jsxs(a,{className:"mb-6 inline-flex items-center gap-2 text-sm",...t,children:[n,s]}),e[4]=s,e[5]=t,e[6]=c):c=e[6],c}export{p as B}; +import{k as o,c as r,j as l,L as a}from"./index.js";const m=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],x=o("arrow-left",m);function p(i){const e=r.c(7);let s,t;e[0]!==i?({children:s,...t}=i,e[0]=i,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=l.jsx(x,{className:"size-4"}),e[3]=n):n=e[3];let c;return e[4]!==s||e[5]!==t?(c=l.jsxs(a,{className:"mb-6 inline-flex items-center gap-2 text-sm",...t,children:[n,s]}),e[4]=s,e[5]=t,e[6]=c):c=e[6],c}export{p as B}; diff --git a/hive/services/hiveui/frontend/dist/assets/badge.js b/hive/services/hiveui/frontend/dist/assets/badge.js deleted file mode 100644 index 59d658974..000000000 --- a/hive/services/hiveui/frontend/dist/assets/badge.js +++ /dev/null @@ -1 +0,0 @@ -import{c as g,a5 as f,a as b,bx as p,c9 as m}from"./index.js";const h=p("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-full border border-transparent px-2 py-0.5 font-medium text-[0.625rem] transition-all transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-2.5!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border bg-input/20 text-foreground dark:bg-input/30 [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function y(d){const e=g.c(13);let t,i,a,s,r;if(e[0]!==d){const{className:l,variant:u,render:v,...c}=d;t=v,r=u===void 0?"default":u,s=m,i="span",a=f({className:b(h({className:l,variant:r}))},c),e[0]=d,e[1]=t,e[2]=i,e[3]=a,e[4]=s,e[5]=r}else t=e[1],i=e[2],a=e[3],s=e[4],r=e[5];let n;e[6]!==r?(n={slot:"badge",variant:r},e[6]=r,e[7]=n):n=e[7];let o;return e[8]!==t||e[9]!==i||e[10]!==a||e[11]!==n?(o={defaultTagName:i,props:a,render:t,state:n},e[8]=t,e[9]=i,e[10]=a,e[11]=n,e[12]=o):o=e[12],s(o)}export{y as B}; diff --git a/hive/services/hiveui/frontend/dist/assets/check.js b/hive/services/hiveui/frontend/dist/assets/check.js index 054ae9869..96372f83c 100644 --- a/hive/services/hiveui/frontend/dist/assets/check.js +++ b/hive/services/hiveui/frontend/dist/assets/check.js @@ -1 +1 @@ -import{g as c}from"./index.js";const e=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],t=c("check",e);export{t as C}; +import{k as c}from"./index.js";const e=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],t=c("check",e);export{t as C}; diff --git a/hive/services/hiveui/frontend/dist/assets/create-bucket.js b/hive/services/hiveui/frontend/dist/assets/create-bucket.js index 694a5c0d0..7c3f0cea9 100644 --- a/hive/services/hiveui/frontend/dist/assets/create-bucket.js +++ b/hive/services/hiveui/frontend/dist/assets/create-bucket.js @@ -1 +1 @@ -import{o as M,f as $,c as I,u as R,j as t,B as E}from"./index.js";import{a as A,u as H,I as L,F as O,b as T,c as q}from"./field.js";import{B as D}from"./back-link.js";import{E as G}from"./error-banner.js";import{P as J}from"./page-heading.js";import{u as K}from"./s3.js";const Q=M({bucketName:$().min(3,"Bucket name must be at least 3 characters").max(63,"Bucket name must be at most 63 characters").regex(/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/,"Must start and end with a lowercase letter or number").regex(/^[a-z0-9.-]+$/,"Only lowercase letters, numbers, hyphens, and periods allowed").refine(e=>!e.includes(".."),"Must not contain consecutive periods").refine(e=>!(e.includes(".-")||e.includes("-.")),"Must not contain adjacent period and hyphen")});function ee(){const e=I.c(40),a=R(),s=K();let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={resolver:A(Q)},e[0]=x):x=e[0];const{handleSubmit:y,register:N,formState:P}=H(x),{errors:h,isSubmitting:S}=P;let k;e[1]!==s||e[2]!==a?(k=async z=>{await s.mutateAsync(z),a({to:"/s3/ls"})},e[1]=s,e[2]=a,e[3]=k):k=e[3];const F=k;let p,j;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(D,{to:"/s3/ls",children:"Back to buckets"}),j=t.jsx(J,{title:"Create Bucket"}),e[4]=p,e[5]=j):(p=e[4],j=e[5]);let r;e[6]!==s.error?(r=s.error&&t.jsx(G,{error:s.error,msg:"Failed to create bucket"}),e[6]=s.error,e[7]=r):r=e[7];let i;e[8]!==y||e[9]!==F?(i=y(F),e[8]=y,e[9]=F,e[10]=i):i=e[10];let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(T,{children:t.jsx("label",{htmlFor:"bucketName",children:"Bucket Name"})}),e[11]=g):g=e[11];const v=!!h.bucketName;let l;e[12]!==N?(l=N("bucketName"),e[12]=N,e[13]=l):l=e[13];let n;e[14]!==v||e[15]!==l?(n=t.jsx(L,{"aria-invalid":v,id:"bucketName",placeholder:"my-bucket",type:"text",...l}),e[14]=v,e[15]=l,e[16]=n):n=e[16];let c;e[17]!==h.bucketName?(c=t.jsx(O,{errors:[h.bucketName]}),e[17]=h.bucketName,e[18]=c):c=e[18];let o;e[19]!==n||e[20]!==c?(o=t.jsxs(q,{children:[g,n,c]}),e[19]=n,e[20]=c,e[21]=o):o=e[21];const C=S||s.isPending;let m;e[22]!==a?(m=()=>a({to:"/s3/ls"}),e[22]=a,e[23]=m):m=e[23];let u;e[24]!==C||e[25]!==m?(u=t.jsx(E,{disabled:C,onClick:m,type:"button",variant:"outline",children:"Cancel"}),e[24]=C,e[25]=m,e[26]=u):u=e[26];const w=S||s.isPending,_=S||s.isPending?"Creating…":"Create Bucket";let d;e[27]!==w||e[28]!==_?(d=t.jsx(E,{disabled:w,type:"submit",children:_}),e[27]=w,e[28]=_,e[29]=d):d=e[29];let f;e[30]!==u||e[31]!==d?(f=t.jsxs("div",{className:"flex gap-2",children:[u,d]}),e[30]=u,e[31]=d,e[32]=f):f=e[32];let b;e[33]!==o||e[34]!==f||e[35]!==i?(b=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:i,children:[o,f]}),e[33]=o,e[34]=f,e[35]=i,e[36]=b):b=e[36];let B;return e[37]!==b||e[38]!==r?(B=t.jsxs(t.Fragment,{children:[p,j,r,b]}),e[37]=b,e[38]=r,e[39]=B):B=e[39],B}export{ee as component}; +import{o as M,f as $,c as I,u as R,j as t,B as E}from"./index.js";import{a as A,u as H}from"./zod.js";import{B as L}from"./back-link.js";import{E as O}from"./error-banner.js";import{P as T}from"./page-heading.js";import{F as q,a as D,b as G}from"./field.js";import{I as J}from"./input.js";import{u as K}from"./s3.js";const Q=M({bucketName:$().min(3,"Bucket name must be at least 3 characters").max(63,"Bucket name must be at most 63 characters").regex(/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/,"Must start and end with a lowercase letter or number").regex(/^[a-z0-9.-]+$/,"Only lowercase letters, numbers, hyphens, and periods allowed").refine(e=>!e.includes(".."),"Must not contain consecutive periods").refine(e=>!(e.includes(".-")||e.includes("-.")),"Must not contain adjacent period and hyphen")});function se(){const e=I.c(40),r=R(),s=K();let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p={resolver:A(Q)},e[0]=p):p=e[0];const{handleSubmit:y,register:N,formState:P}=H(p),{errors:x,isSubmitting:S}=P;let h;e[1]!==s||e[2]!==r?(h=async z=>{await s.mutateAsync(z),r({to:"/s3/ls"})},e[1]=s,e[2]=r,e[3]=h):h=e[3];const F=h;let k,j;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(L,{to:"/s3/ls",children:"Back to buckets"}),j=t.jsx(T,{title:"Create Bucket"}),e[4]=k,e[5]=j):(k=e[4],j=e[5]);let a;e[6]!==s.error?(a=s.error&&t.jsx(O,{error:s.error,msg:"Failed to create bucket"}),e[6]=s.error,e[7]=a):a=e[7];let i;e[8]!==y||e[9]!==F?(i=y(F),e[8]=y,e[9]=F,e[10]=i):i=e[10];let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(D,{children:t.jsx("label",{htmlFor:"bucketName",children:"Bucket Name"})}),e[11]=g):g=e[11];const v=!!x.bucketName;let l;e[12]!==N?(l=N("bucketName"),e[12]=N,e[13]=l):l=e[13];let n;e[14]!==v||e[15]!==l?(n=t.jsx(J,{"aria-invalid":v,id:"bucketName",placeholder:"my-bucket",type:"text",...l}),e[14]=v,e[15]=l,e[16]=n):n=e[16];let o;e[17]!==x.bucketName?(o=t.jsx(q,{errors:[x.bucketName]}),e[17]=x.bucketName,e[18]=o):o=e[18];let c;e[19]!==n||e[20]!==o?(c=t.jsxs(G,{children:[g,n,o]}),e[19]=n,e[20]=o,e[21]=c):c=e[21];const C=S||s.isPending;let m;e[22]!==r?(m=()=>r({to:"/s3/ls"}),e[22]=r,e[23]=m):m=e[23];let u;e[24]!==C||e[25]!==m?(u=t.jsx(E,{disabled:C,onClick:m,type:"button",variant:"outline",children:"Cancel"}),e[24]=C,e[25]=m,e[26]=u):u=e[26];const w=S||s.isPending,_=S||s.isPending?"Creating…":"Create Bucket";let d;e[27]!==w||e[28]!==_?(d=t.jsx(E,{disabled:w,type:"submit",children:_}),e[27]=w,e[28]=_,e[29]=d):d=e[29];let f;e[30]!==u||e[31]!==d?(f=t.jsxs("div",{className:"flex gap-2",children:[u,d]}),e[30]=u,e[31]=d,e[32]=f):f=e[32];let b;e[33]!==c||e[34]!==f||e[35]!==i?(b=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:i,children:[c,f]}),e[33]=c,e[34]=f,e[35]=i,e[36]=b):b=e[36];let B;return e[37]!==b||e[38]!==a?(B=t.jsxs(t.Fragment,{children:[k,j,a,b]}),e[37]=b,e[38]=a,e[39]=B):B=e[39],B}export{se as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/create-key-pair.js b/hive/services/hiveui/frontend/dist/assets/create-key-pair.js index 8cd6a5a14..e14248068 100644 --- a/hive/services/hiveui/frontend/dist/assets/create-key-pair.js +++ b/hive/services/hiveui/frontend/dist/assets/create-key-pair.js @@ -1 +1 @@ -import{g as U,c as R,u as L,r as O,j as a,B as E}from"./index.js";import{a as I,u as z,I as Y,F as $,b as H,c as q}from"./field.js";import{B as G}from"./back-link.js";import{E as J}from"./error-banner.js";import{P as Q}from"./page-heading.js";import{b as V}from"./ec2.js";import{a as W}from"./ec22.js";import{A as X,a as Z,b as ee,c as te,d as ae,e as se,f as le,g as ie}from"./alert-dialog.js";import{T as re}from"./textarea.js";import{C as oe}from"./check.js";import{D as ne}from"./download.js";const ce=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],me=U("triangle-alert",ce),de=2e3;function fe(e){const t=R.c(36),{open:s,keyName:l,keyMaterial:d}=e,b=L(),[P,S]=O.useState(!1);let _;t[0]!==d?(_=async()=>{await navigator.clipboard.writeText(d),S(!0),setTimeout(()=>S(!1),de)},t[0]=d,t[1]=_):_=t[1];const g=_;let N;t[2]!==d||t[3]!==l?(N=()=>{const K=new Blob([d],{type:"text/plain"}),k=URL.createObjectURL(K),u=document.createElement("a");u.href=k,u.download=`${l}.pem`,u.click(),URL.revokeObjectURL(k)},t[2]=d,t[3]=l,t[4]=N):N=t[4];const C=N;let v;t[5]!==b?(v=()=>{b({to:"/ec2/describe-key-pairs"})},t[5]=b,t[6]=v):v=t[6];const w=v;let j,f;t[7]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(X,{children:a.jsx(me,{className:"text-destructive"})}),f=a.jsx(Z,{children:"Save Your Private Key"}),t[7]=j,t[8]=f):(j=t[7],f=t[8]);let i;t[9]!==l?(i=a.jsxs(ee,{children:[j,f,a.jsxs(te,{children:["This is your only chance to save the private key file for"," ",a.jsx("strong",{children:l}),". Please download or copy it now. You won't be able to retrieve it again."]})]}),t[9]=l,t[10]=i):i=t[10];let y;t[11]!==d?(y=a.jsx(re,{className:"font-mono text-xs",readOnly:!0,rows:12,value:d}),t[11]=d,t[12]=y):y=t[12];let x;t[13]!==P?(x=P?a.jsxs(a.Fragment,{children:[a.jsx(oe,{className:"mr-2 size-4"}),"Copied!"]}):"Copy to Clipboard",t[13]=P,t[14]=x):x=t[14];let r;t[15]!==g||t[16]!==x?(r=a.jsx(E,{className:"flex-1",onClick:g,type:"button",variant:"outline",children:x}),t[15]=g,t[16]=x,t[17]=r):r=t[17];let p;t[18]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(ne,{className:"mr-2 size-4"}),t[18]=p):p=t[18];let o;t[19]!==C?(o=a.jsxs(E,{className:"flex-1",onClick:C,type:"button",variant:"outline",children:[p,"Download .pem File"]}),t[19]=C,t[20]=o):o=t[20];let n;t[21]!==o||t[22]!==r?(n=a.jsxs("div",{className:"flex gap-2",children:[r,o]}),t[21]=o,t[22]=r,t[23]=n):n=t[23];let h;t[24]!==n||t[25]!==y?(h=a.jsxs("div",{className:"space-y-3",children:[y,n]}),t[24]=n,t[25]=y,t[26]=h):h=t[26];let c;t[27]!==w?(c=a.jsx(ae,{children:a.jsx(se,{onClick:w,children:"Close and Continue"})}),t[27]=w,t[28]=c):c=t[28];let m;t[29]!==h||t[30]!==c||t[31]!==i?(m=a.jsxs(le,{className:"max-w-2xl",children:[i,h,c]}),t[29]=h,t[30]=c,t[31]=i,t[32]=m):m=t[32];let D;return t[33]!==s||t[34]!==m?(D=a.jsx(ie,{open:s,children:m}),t[33]=s,t[34]=m,t[35]=D):D=t[35],D}function ve(){const e=R.c(42),t=L(),s=V(),[l,d]=O.useState(null);let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={resolver:I(W)},e[0]=b):b=e[0];const{handleSubmit:P,register:S,formState:_}=z(b),{errors:g,isSubmitting:N}=_;let C;e[1]!==s?(C=async T=>{const B=await s.mutateAsync(T);B.KeyMaterial&&d({keyName:T.keyName,material:B.KeyMaterial})},e[1]=s,e[2]=C):C=e[2];const v=C;let w,j;e[3]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(G,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),j=a.jsx(Q,{title:"Create Key Pair"}),e[3]=w,e[4]=j):(w=e[3],j=e[4]);let f;e[5]!==s.error?(f=s.error&&a.jsx(J,{error:s.error,msg:"Failed to create key pair"}),e[5]=s.error,e[6]=f):f=e[6];let i;e[7]!==P||e[8]!==v?(i=P(v),e[7]=P,e[8]=v,e[9]=i):i=e[9];let y;e[10]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(H,{children:a.jsx("label",{htmlFor:"keyName",children:"Key Pair Name"})}),e[10]=y):y=e[10];const x=!!g.keyName;let r;e[11]!==S?(r=S("keyName"),e[11]=S,e[12]=r):r=e[12];let p;e[13]!==x||e[14]!==r?(p=a.jsx(Y,{"aria-invalid":x,id:"keyName",placeholder:"my-key-pair…",...r}),e[13]=x,e[14]=r,e[15]=p):p=e[15];let o;e[16]!==g.keyName?(o=a.jsx($,{errors:[g.keyName]}),e[16]=g.keyName,e[17]=o):o=e[17];let n;e[18]!==p||e[19]!==o?(n=a.jsxs(q,{children:[y,p,o]}),e[18]=p,e[19]=o,e[20]=n):n=e[20];const h=N||s.isPending;let c;e[21]!==t?(c=()=>t({to:"/ec2/describe-key-pairs"}),e[21]=t,e[22]=c):c=e[22];let m;e[23]!==h||e[24]!==c?(m=a.jsx(E,{disabled:h,onClick:c,type:"button",variant:"outline",children:"Cancel"}),e[23]=h,e[24]=c,e[25]=m):m=e[25];const D=N||s.isPending,K=N||s.isPending?"Creating…":"Create Key Pair";let k;e[26]!==D||e[27]!==K?(k=a.jsx(E,{disabled:D,type:"submit",children:K}),e[26]=D,e[27]=K,e[28]=k):k=e[28];let u;e[29]!==m||e[30]!==k?(u=a.jsxs("div",{className:"flex gap-2",children:[m,k]}),e[29]=m,e[30]=k,e[31]=u):u=e[31];let A;e[32]!==n||e[33]!==u||e[34]!==i?(A=a.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:i,children:[n,u]}),e[32]=n,e[33]=u,e[34]=i,e[35]=A):A=e[35];let F;e[36]!==l?(F=l&&a.jsx(fe,{keyMaterial:l.material,keyName:l.keyName,open:!!l}),e[36]=l,e[37]=F):F=e[37];let M;return e[38]!==A||e[39]!==F||e[40]!==f?(M=a.jsxs(a.Fragment,{children:[w,j,f,A,F]}),e[38]=A,e[39]=F,e[40]=f,e[41]=M):M=e[41],M}export{ve as component}; +import{k as U,c as R,u as L,r as O,j as a,B as E}from"./index.js";import{a as I,u as z}from"./zod.js";import{B as Y}from"./back-link.js";import{E as $}from"./error-banner.js";import{P as H}from"./page-heading.js";import{F as q,a as G,b as J}from"./field.js";import{I as Q}from"./input.js";import{e as V}from"./ec2.js";import{e as W}from"./ec22.js";import{A as X,a as Z,b as ee,c as te,d as ae,e as se,f as le,g as ie}from"./alert-dialog.js";import{T as re}from"./textarea.js";import{C as oe}from"./check.js";import{D as ne}from"./download.js";const ce=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],me=U("triangle-alert",ce),de=2e3;function fe(e){const t=R.c(36),{open:s,keyName:l,keyMaterial:d}=e,b=L(),[P,S]=O.useState(!1);let _;t[0]!==d?(_=async()=>{await navigator.clipboard.writeText(d),S(!0),setTimeout(()=>S(!1),de)},t[0]=d,t[1]=_):_=t[1];const g=_;let N;t[2]!==d||t[3]!==l?(N=()=>{const K=new Blob([d],{type:"text/plain"}),k=URL.createObjectURL(K),u=document.createElement("a");u.href=k,u.download=`${l}.pem`,u.click(),URL.revokeObjectURL(k)},t[2]=d,t[3]=l,t[4]=N):N=t[4];const C=N;let v;t[5]!==b?(v=()=>{b({to:"/ec2/describe-key-pairs"})},t[5]=b,t[6]=v):v=t[6];const w=v;let j,f;t[7]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(X,{children:a.jsx(me,{className:"text-destructive"})}),f=a.jsx(Z,{children:"Save Your Private Key"}),t[7]=j,t[8]=f):(j=t[7],f=t[8]);let i;t[9]!==l?(i=a.jsxs(ee,{children:[j,f,a.jsxs(te,{children:["This is your only chance to save the private key file for"," ",a.jsx("strong",{children:l}),". Please download or copy it now. You won't be able to retrieve it again."]})]}),t[9]=l,t[10]=i):i=t[10];let p;t[11]!==d?(p=a.jsx(re,{className:"font-mono text-xs",readOnly:!0,rows:12,value:d}),t[11]=d,t[12]=p):p=t[12];let x;t[13]!==P?(x=P?a.jsxs(a.Fragment,{children:[a.jsx(oe,{className:"mr-2 size-4"}),"Copied!"]}):"Copy to Clipboard",t[13]=P,t[14]=x):x=t[14];let r;t[15]!==g||t[16]!==x?(r=a.jsx(E,{className:"flex-1",onClick:g,type:"button",variant:"outline",children:x}),t[15]=g,t[16]=x,t[17]=r):r=t[17];let y;t[18]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(ne,{className:"mr-2 size-4"}),t[18]=y):y=t[18];let o;t[19]!==C?(o=a.jsxs(E,{className:"flex-1",onClick:C,type:"button",variant:"outline",children:[y,"Download .pem File"]}),t[19]=C,t[20]=o):o=t[20];let n;t[21]!==o||t[22]!==r?(n=a.jsxs("div",{className:"flex gap-2",children:[r,o]}),t[21]=o,t[22]=r,t[23]=n):n=t[23];let h;t[24]!==n||t[25]!==p?(h=a.jsxs("div",{className:"space-y-3",children:[p,n]}),t[24]=n,t[25]=p,t[26]=h):h=t[26];let c;t[27]!==w?(c=a.jsx(ae,{children:a.jsx(se,{onClick:w,children:"Close and Continue"})}),t[27]=w,t[28]=c):c=t[28];let m;t[29]!==h||t[30]!==c||t[31]!==i?(m=a.jsxs(le,{className:"max-w-2xl",children:[i,h,c]}),t[29]=h,t[30]=c,t[31]=i,t[32]=m):m=t[32];let D;return t[33]!==s||t[34]!==m?(D=a.jsx(ie,{open:s,children:m}),t[33]=s,t[34]=m,t[35]=D):D=t[35],D}function De(){const e=R.c(42),t=L(),s=V(),[l,d]=O.useState(null);let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={resolver:I(W)},e[0]=b):b=e[0];const{handleSubmit:P,register:S,formState:_}=z(b),{errors:g,isSubmitting:N}=_;let C;e[1]!==s?(C=async T=>{const B=await s.mutateAsync(T);B.KeyMaterial&&d({keyName:T.keyName,material:B.KeyMaterial})},e[1]=s,e[2]=C):C=e[2];const v=C;let w,j;e[3]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(Y,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),j=a.jsx(H,{title:"Create Key Pair"}),e[3]=w,e[4]=j):(w=e[3],j=e[4]);let f;e[5]!==s.error?(f=s.error&&a.jsx($,{error:s.error,msg:"Failed to create key pair"}),e[5]=s.error,e[6]=f):f=e[6];let i;e[7]!==P||e[8]!==v?(i=P(v),e[7]=P,e[8]=v,e[9]=i):i=e[9];let p;e[10]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(G,{children:a.jsx("label",{htmlFor:"keyName",children:"Key Pair Name"})}),e[10]=p):p=e[10];const x=!!g.keyName;let r;e[11]!==S?(r=S("keyName"),e[11]=S,e[12]=r):r=e[12];let y;e[13]!==x||e[14]!==r?(y=a.jsx(Q,{"aria-invalid":x,id:"keyName",placeholder:"my-key-pair…",...r}),e[13]=x,e[14]=r,e[15]=y):y=e[15];let o;e[16]!==g.keyName?(o=a.jsx(q,{errors:[g.keyName]}),e[16]=g.keyName,e[17]=o):o=e[17];let n;e[18]!==y||e[19]!==o?(n=a.jsxs(J,{children:[p,y,o]}),e[18]=y,e[19]=o,e[20]=n):n=e[20];const h=N||s.isPending;let c;e[21]!==t?(c=()=>t({to:"/ec2/describe-key-pairs"}),e[21]=t,e[22]=c):c=e[22];let m;e[23]!==h||e[24]!==c?(m=a.jsx(E,{disabled:h,onClick:c,type:"button",variant:"outline",children:"Cancel"}),e[23]=h,e[24]=c,e[25]=m):m=e[25];const D=N||s.isPending,K=N||s.isPending?"Creating…":"Create Key Pair";let k;e[26]!==D||e[27]!==K?(k=a.jsx(E,{disabled:D,type:"submit",children:K}),e[26]=D,e[27]=K,e[28]=k):k=e[28];let u;e[29]!==m||e[30]!==k?(u=a.jsxs("div",{className:"flex gap-2",children:[m,k]}),e[29]=m,e[30]=k,e[31]=u):u=e[31];let A;e[32]!==n||e[33]!==u||e[34]!==i?(A=a.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:i,children:[n,u]}),e[32]=n,e[33]=u,e[34]=i,e[35]=A):A=e[35];let F;e[36]!==l?(F=l&&a.jsx(fe,{keyMaterial:l.material,keyName:l.keyName,open:!!l}),e[36]=l,e[37]=F):F=e[37];let M;return e[38]!==A||e[39]!==F||e[40]!==f?(M=a.jsxs(a.Fragment,{children:[w,j,f,A,F]}),e[38]=A,e[39]=F,e[40]=f,e[41]=M):M=e[41],M}export{De as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/create-snapshot.js b/hive/services/hiveui/frontend/dist/assets/create-snapshot.js new file mode 100644 index 000000000..e67dfe583 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/create-snapshot.js @@ -0,0 +1 @@ +import{c as q,u as J,i as K,R as U,j as t,B as G}from"./index.js";import{a as W,u as X,C as Y}from"./zod.js";import{u as Z}from"./useSuspenseQuery.js";import{B as ee}from"./back-link.js";import{E as te}from"./error-banner.js";import{P as se}from"./page-heading.js";import{F as le,b as H,a as L}from"./field.js";import{S as oe,a as re,b as ie,c as ae,d as ne}from"./select.js";import{T as ce}from"./textarea.js";import{c as me}from"./ec2.js";import{d as de}from"./ec22.js";import"./check.js";function ye(){const e=q.c(51),l=J(),{data:B}=Z(K),s=me();let j;e[0]!==B.Volumes?(j=B.Volumes??[],e[0]=B.Volumes,e[1]=j):j=e[1];const b=j,{volumeId:M}=U.useSearch(),E=M??b[0]?.VolumeId??"";let v;e[2]===Symbol.for("react.memo_cache_sentinel")?(v=W(de),e[2]=v):v=e[2];let I;e[3]!==E?(I={resolver:v,defaultValues:{volumeId:E,description:""}},e[3]=E,e[4]=I):I=e[4];const{control:P,handleSubmit:k,register:N,formState:O}=X(I),{errors:o,isSubmitting:R}=O;let g;e[5]!==s||e[6]!==l?(g=async z=>{await s.mutateAsync(z),l({to:"/ec2/describe-snapshots"})},e[5]=s,e[6]=l,e[7]=g):g=e[7];const T=g;let V,C;e[8]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(ee,{to:"/ec2/describe-snapshots",children:"Back to snapshots"}),C=t.jsx(se,{title:"Create Snapshot"}),e[8]=V,e[9]=C):(V=e[8],C=e[9]);let r;e[10]!==s.error?(r=s.error&&t.jsx(te,{error:s.error,msg:"Failed to create snapshot"}),e[10]=s.error,e[11]=r):r=e[11];let i;e[12]!==k||e[13]!==T?(i=k(T),e[12]=k,e[13]=T,e[14]=i):i=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(L,{children:t.jsx("label",{htmlFor:"volumeId",children:"Volume"})}),e[15]=y):y=e[15];let a;e[16]!==o.volumeId||e[17]!==b?(a=z=>{const{field:A}=z;return t.jsxs(oe,{onValueChange:$=>A.onChange($),value:A.value??"",children:[t.jsx(re,{"aria-invalid":!!o.volumeId,className:"w-full",id:"volumeId",children:t.jsx(ie,{})}),t.jsx(ae,{children:b.map(ue)})]})},e[16]=o.volumeId,e[17]=b,e[18]=a):a=e[18];let n;e[19]!==P||e[20]!==a?(n=t.jsx(Y,{control:P,name:"volumeId",render:a}),e[19]=P,e[20]=a,e[21]=n):n=e[21];let c;e[22]!==o.volumeId?(c=t.jsx(le,{errors:[o.volumeId]}),e[22]=o.volumeId,e[23]=c):c=e[23];let m;e[24]!==n||e[25]!==c?(m=t.jsxs(H,{children:[y,n,c]}),e[24]=n,e[25]=c,e[26]=m):m=e[26];let F;e[27]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(L,{children:t.jsx("label",{htmlFor:"description",children:"Description (optional)"})}),e[27]=F):F=e[27];let d;e[28]!==N?(d=N("description"),e[28]=N,e[29]=d):d=e[29];let u;e[30]!==d?(u=t.jsxs(H,{children:[F,t.jsx(ce,{id:"description",placeholder:"Snapshot description",...d})]}),e[30]=d,e[31]=u):u=e[31];const w=R||s.isPending;let f;e[32]!==l?(f=()=>l({to:"/ec2/describe-snapshots"}),e[32]=l,e[33]=f):f=e[33];let p;e[34]!==w||e[35]!==f?(p=t.jsx(G,{disabled:w,onClick:f,type:"button",variant:"outline",children:"Cancel"}),e[34]=w,e[35]=f,e[36]=p):p=e[36];const D=R||s.isPending,Q=R||s.isPending?"Creating…":"Create Snapshot";let h;e[37]!==D||e[38]!==Q?(h=t.jsx(G,{disabled:D,type:"submit",children:Q}),e[37]=D,e[38]=Q,e[39]=h):h=e[39];let x;e[40]!==p||e[41]!==h?(x=t.jsxs("div",{className:"flex gap-2",children:[p,h]}),e[40]=p,e[41]=h,e[42]=x):x=e[42];let S;e[43]!==m||e[44]!==u||e[45]!==x||e[46]!==i?(S=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:i,children:[m,u,x]}),e[43]=m,e[44]=u,e[45]=x,e[46]=i,e[47]=S):S=e[47];let _;return e[48]!==S||e[49]!==r?(_=t.jsxs(t.Fragment,{children:[V,C,r,S]}),e[48]=S,e[49]=r,e[50]=_):_=e[50],_}function ue(e){return t.jsxs(ne,{value:e.VolumeId??"",children:[e.VolumeId," (",e.Size," GiB)"]},e.VolumeId)}export{ye as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/create-subnet.js b/hive/services/hiveui/frontend/dist/assets/create-subnet.js new file mode 100644 index 000000000..6c8cd6e12 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/create-subnet.js @@ -0,0 +1 @@ +import{c as oe,u as ce,h as de,g as me,j as t,B as Y}from"./index.js";import{a as ue,u as fe,C as ee}from"./zod.js";import{u as te}from"./useSuspenseQuery.js";import{B as pe}from"./back-link.js";import{E as be}from"./error-banner.js";import{P as he}from"./page-heading.js";import{F as se,a as U,b as W}from"./field.js";import{I as xe}from"./input.js";import{S as le,a as ie,b as ne,c as re,d as X}from"./select.js";import{b as je}from"./ec2.js";import{b as ve}from"./ec22.js";import"./check.js";function Ee(){const e=oe.c(66),s=ce(),{data:Q}=te(de),{data:R}=te(me),l=je();let V;e[0]!==Q.Vpcs?(V=Q.Vpcs??[],e[0]=Q.Vpcs,e[1]=V):V=e[1];const k=V;let _;e[2]!==R.AvailabilityZones?(_=R.AvailabilityZones??[],e[2]=R.AvailabilityZones,e[3]=_):_=e[3];const T=_;let Z;e[4]===Symbol.for("react.memo_cache_sentinel")?(Z=ue(ve),e[4]=Z):Z=e[4];const O=k[0]?.VpcId??"";let F;e[5]!==O?(F={resolver:Z,defaultValues:{vpcId:O,cidrBlock:"10.0.1.0/24",availabilityZone:""}},e[5]=O,e[6]=F):F=e[6];const{control:r,handleSubmit:H,register:K,formState:ae}=fe(F),{errors:i,isSubmitting:L}=ae;let N;e[7]!==l||e[8]!==s?(N=async B=>{const n=(await l.mutateAsync(B)).Subnet?.SubnetId;s(n?{to:"/ec2/describe-subnets/$id",params:{id:n}}:{to:"/ec2/describe-subnets"})},e[7]=l,e[8]=s,e[9]=N):N=e[9];const M=N;let A,P;e[10]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(pe,{to:"/ec2/describe-subnets",children:"Back to Subnets"}),P=t.jsx(he,{title:"Create Subnet"}),e[10]=A,e[11]=P):(A=e[10],P=e[11]);let a;e[12]!==l.error?(a=l.error&&t.jsx(be,{error:l.error,msg:"Failed to create subnet"}),e[12]=l.error,e[13]=a):a=e[13];let o;e[14]!==H||e[15]!==M?(o=H(M),e[14]=H,e[15]=M,e[16]=o):o=e[16];let $;e[17]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(U,{children:t.jsx("label",{htmlFor:"vpcId",children:"VPC"})}),e[17]=$):$=e[17];let c;e[18]!==i.vpcId||e[19]!==k?(c=B=>{const{field:C}=B;return t.jsxs(le,{onValueChange:n=>C.onChange(n),value:C.value??"",children:[t.jsx(ie,{"aria-invalid":!!i.vpcId,className:"w-full",id:"vpcId",children:t.jsx(ne,{})}),t.jsx(re,{children:k.map(ye)})]})},e[18]=i.vpcId,e[19]=k,e[20]=c):c=e[20];let d;e[21]!==r||e[22]!==c?(d=t.jsx(ee,{control:r,name:"vpcId",render:c}),e[21]=r,e[22]=c,e[23]=d):d=e[23];let m;e[24]!==i.vpcId?(m=t.jsx(se,{errors:[i.vpcId]}),e[24]=i.vpcId,e[25]=m):m=e[25];let u;e[26]!==d||e[27]!==m?(u=t.jsxs(W,{children:[$,d,m]}),e[26]=d,e[27]=m,e[28]=u):u=e[28];let E;e[29]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(U,{children:t.jsx("label",{htmlFor:"cidrBlock",children:"CIDR Block"})}),e[29]=E):E=e[29];const q=!!i.cidrBlock;let f;e[30]!==K?(f=K("cidrBlock"),e[30]=K,e[31]=f):f=e[31];let p;e[32]!==q||e[33]!==f?(p=t.jsx(xe,{"aria-invalid":q,id:"cidrBlock",placeholder:"10.0.1.0/24",...f}),e[32]=q,e[33]=f,e[34]=p):p=e[34];let b;e[35]!==i.cidrBlock?(b=t.jsx(se,{errors:[i.cidrBlock]}),e[35]=i.cidrBlock,e[36]=b):b=e[36];let h;e[37]!==p||e[38]!==b?(h=t.jsxs(W,{children:[E,p,b]}),e[37]=p,e[38]=b,e[39]=h):h=e[39];let w;e[40]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(U,{children:t.jsx("label",{htmlFor:"availabilityZone",children:"Availability Zone (optional)"})}),e[40]=w):w=e[40];let x;e[41]!==T?(x=B=>{const{field:C}=B;return t.jsxs(le,{onValueChange:n=>C.onChange(n==="none"?"":n),value:C.value||"none",children:[t.jsx(ie,{className:"w-full",id:"availabilityZone",children:t.jsx(ne,{})}),t.jsxs(re,{children:[t.jsx(X,{value:"none",children:"none"}),T.map(Se)]})]})},e[41]=T,e[42]=x):x=e[42];let j;e[43]!==r||e[44]!==x?(j=t.jsxs(W,{children:[w,t.jsx(ee,{control:r,name:"availabilityZone",render:x})]}),e[43]=r,e[44]=x,e[45]=j):j=e[45];const z=L||l.isPending;let v;e[46]!==s?(v=()=>s({to:"/ec2/describe-subnets"}),e[46]=s,e[47]=v):v=e[47];let S;e[48]!==z||e[49]!==v?(S=t.jsx(Y,{disabled:z,onClick:v,type:"button",variant:"outline",children:"Cancel"}),e[48]=z,e[49]=v,e[50]=S):S=e[50];const G=L||l.isPending,J=L||l.isPending?"Creating…":"Create Subnet";let y;e[51]!==G||e[52]!==J?(y=t.jsx(Y,{disabled:G,type:"submit",children:J}),e[51]=G,e[52]=J,e[53]=y):y=e[53];let g;e[54]!==S||e[55]!==y?(g=t.jsxs("div",{className:"flex gap-2",children:[S,y]}),e[54]=S,e[55]=y,e[56]=g):g=e[56];let I;e[57]!==o||e[58]!==u||e[59]!==h||e[60]!==j||e[61]!==g?(I=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:o,children:[u,h,j,g]}),e[57]=o,e[58]=u,e[59]=h,e[60]=j,e[61]=g,e[62]=I):I=e[62];let D;return e[63]!==I||e[64]!==a?(D=t.jsxs(t.Fragment,{children:[A,P,a,I]}),e[63]=I,e[64]=a,e[65]=D):D=e[65],D}function Se(e){return t.jsx(X,{value:e.ZoneName??"",children:e.ZoneName},e.ZoneName)}function ye(e){const s=e.Tags?.find(ge)?.Value;return t.jsx(X,{value:e.VpcId??"",children:s?`${e.VpcId} (${s})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function ge(e){return e.Key==="Name"}export{Ee as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/create-volume.js b/hive/services/hiveui/frontend/dist/assets/create-volume.js index 3275325e8..25e340a2a 100644 --- a/hive/services/hiveui/frontend/dist/assets/create-volume.js +++ b/hive/services/hiveui/frontend/dist/assets/create-volume.js @@ -1 +1 @@ -import{c as $,u as q,j as t,B as I}from"./index.js";import{a as D,u as J,I as R,F as G,b as H,c as L}from"./field.js";import{B as K}from"./back-link.js";import{E as O}from"./error-banner.js";import{P as Q}from"./page-heading.js";import{u as U}from"./ec2.js";import{c as W}from"./ec22.js";function ae(){const e=$.c(52),s=q(),i=U();let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g={resolver:D(W),defaultValues:{size:1,availabilityZone:""}},e[0]=g):g=e[0];const{handleSubmit:C,register:a,formState:M}=J(g),{errors:l,isSubmitting:V}=M;let S;e[1]!==i||e[2]!==s?(S=async T=>{await i.mutateAsync(T),s({to:"/ec2/describe-volumes"})},e[1]=i,e[2]=s,e[3]=S):S=e[3];const E=S;let z,F;e[4]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx(K,{to:"/ec2/describe-volumes",children:"Back to volumes"}),F=t.jsx(Q,{title:"Create Volume"}),e[4]=z,e[5]=F):(z=e[4],F=e[5]);let r;e[6]!==i.error?(r=i.error&&t.jsx(O,{error:i.error,msg:"Failed to create volume"}),e[6]=i.error,e[7]=r):r=e[7];let o;e[8]!==C||e[9]!==E?(o=C(E),e[8]=C,e[9]=E,e[10]=o):o=e[10];let Z;e[11]===Symbol.for("react.memo_cache_sentinel")?(Z=t.jsx(H,{children:t.jsx("label",{htmlFor:"size",children:"Size (GiB)"})}),e[11]=Z):Z=e[11];const P=!!l.size;let n;e[12]!==a?(n=a("size",{valueAsNumber:!0}),e[12]=a,e[13]=n):n=e[13];let c;e[14]!==P||e[15]!==n?(c=t.jsx(R,{"aria-invalid":P,id:"size",max:16384,min:1,type:"number",...n}),e[14]=P,e[15]=n,e[16]=c):c=e[16];let m;e[17]!==l.size?(m=t.jsx(G,{errors:[l.size]}),e[17]=l.size,e[18]=m):m=e[18];let u;e[19]!==c||e[20]!==m?(u=t.jsxs(L,{children:[Z,c,m]}),e[19]=c,e[20]=m,e[21]=u):u=e[21];let _;e[22]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(H,{children:t.jsx("label",{htmlFor:"availabilityZone",children:"Availability Zone"})}),e[22]=_):_=e[22];const k=!!l.availabilityZone;let f;e[23]!==a?(f=a("availabilityZone"),e[23]=a,e[24]=f):f=e[24];let d;e[25]!==k||e[26]!==f?(d=t.jsx(R,{"aria-invalid":k,id:"availabilityZone",placeholder:"ap-southeast-2a",type:"text",...f}),e[25]=k,e[26]=f,e[27]=d):d=e[27];let b;e[28]!==l.availabilityZone?(b=t.jsx(G,{errors:[l.availabilityZone]}),e[28]=l.availabilityZone,e[29]=b):b=e[29];let x;e[30]!==d||e[31]!==b?(x=t.jsxs(L,{children:[_,d,b]}),e[30]=d,e[31]=b,e[32]=x):x=e[32];const N=V||i.isPending;let h;e[33]!==s?(h=()=>s({to:"/ec2/describe-volumes"}),e[33]=s,e[34]=h):h=e[34];let v;e[35]!==N||e[36]!==h?(v=t.jsx(I,{disabled:N,onClick:h,type:"button",variant:"outline",children:"Cancel"}),e[35]=N,e[36]=h,e[37]=v):v=e[37];const A=V||i.isPending,w=V||i.isPending?"Creating…":"Create Volume";let p;e[38]!==A||e[39]!==w?(p=t.jsx(I,{disabled:A,type:"submit",children:w}),e[38]=A,e[39]=w,e[40]=p):p=e[40];let j;e[41]!==v||e[42]!==p?(j=t.jsxs("div",{className:"flex gap-2",children:[v,p]}),e[41]=v,e[42]=p,e[43]=j):j=e[43];let y;e[44]!==u||e[45]!==x||e[46]!==j||e[47]!==o?(y=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:o,children:[u,x,j]}),e[44]=u,e[45]=x,e[46]=j,e[47]=o,e[48]=y):y=e[48];let B;return e[49]!==y||e[50]!==r?(B=t.jsxs(t.Fragment,{children:[z,F,r,y]}),e[49]=y,e[50]=r,e[51]=B):B=e[51],B}export{ae as component}; +import{c as K,u as U,g as W,j as t,B as L}from"./index.js";import{a as X,u as Y,C as ee}from"./zod.js";import{u as te}from"./useSuspenseQuery.js";import{B as ie}from"./back-link.js";import{E as le}from"./error-banner.js";import{P as ae}from"./page-heading.js";import{F as M,a as O,b as $}from"./field.js";import{I as se}from"./input.js";import{S as re,a as oe,b as ne,c as me,d as ce}from"./select.js";import{a as ue}from"./ec2.js";import{a as fe}from"./ec22.js";import"./check.js";function Fe(){const e=K.c(57),a=U(),{data:V}=te(W),i=ue();let j;e[0]!==V.AvailabilityZones?(j=V.AvailabilityZones??[],e[0]=V.AvailabilityZones,e[1]=j):j=e[1];const Z=j,B=Z[0]?.ZoneName??"";let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=X(fe),e[2]=g):g=e[2];let S;e[3]!==B?(S={resolver:g,defaultValues:{size:1,availabilityZone:B}},e[3]=B,e[4]=S):S=e[4];const{control:E,handleSubmit:P,register:k,formState:q}=Y(S),{errors:l,isSubmitting:w}=q;let C;e[5]!==i||e[6]!==a?(C=async G=>{await i.mutateAsync(G),a({to:"/ec2/describe-volumes"})},e[5]=i,e[6]=a,e[7]=C):C=e[7];const I=C;let z,F;e[8]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx(ie,{to:"/ec2/describe-volumes",children:"Back to volumes"}),F=t.jsx(ae,{title:"Create Volume"}),e[8]=z,e[9]=F):(z=e[8],F=e[9]);let s;e[10]!==i.error?(s=i.error&&t.jsx(le,{error:i.error,msg:"Failed to create volume"}),e[10]=i.error,e[11]=s):s=e[11];let r;e[12]!==P||e[13]!==I?(r=P(I),e[12]=P,e[13]=I,e[14]=r):r=e[14];let N;e[15]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(O,{children:t.jsx("label",{htmlFor:"size",children:"Size (GiB)"})}),e[15]=N):N=e[15];const Q=!!l.size;let o;e[16]!==k?(o=k("size",{valueAsNumber:!0}),e[16]=k,e[17]=o):o=e[17];let n;e[18]!==Q||e[19]!==o?(n=t.jsx(se,{"aria-invalid":Q,id:"size",max:16384,min:1,type:"number",...o}),e[18]=Q,e[19]=o,e[20]=n):n=e[20];let m;e[21]!==l.size?(m=t.jsx(M,{errors:[l.size]}),e[21]=l.size,e[22]=m):m=e[22];let c;e[23]!==n||e[24]!==m?(c=t.jsxs($,{children:[N,n,m]}),e[23]=n,e[24]=m,e[25]=c):c=e[25];let _;e[26]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(O,{children:t.jsx("label",{htmlFor:"availabilityZone",children:"Availability Zone"})}),e[26]=_):_=e[26];let u;e[27]!==Z||e[28]!==l.availabilityZone?(u=G=>{const{field:H}=G;return t.jsxs(re,{onValueChange:J=>H.onChange(J),value:H.value??"",children:[t.jsx(oe,{"aria-invalid":!!l.availabilityZone,className:"w-full",id:"availabilityZone",children:t.jsx(ne,{})}),t.jsx(me,{children:Z.map(de)})]})},e[27]=Z,e[28]=l.availabilityZone,e[29]=u):u=e[29];let f;e[30]!==E||e[31]!==u?(f=t.jsx(ee,{control:E,name:"availabilityZone",render:u}),e[30]=E,e[31]=u,e[32]=f):f=e[32];let d;e[33]!==l.availabilityZone?(d=t.jsx(M,{errors:[l.availabilityZone]}),e[33]=l.availabilityZone,e[34]=d):d=e[34];let b;e[35]!==f||e[36]!==d?(b=t.jsxs($,{children:[_,f,d]}),e[35]=f,e[36]=d,e[37]=b):b=e[37];const R=w||i.isPending;let v;e[38]!==a?(v=()=>a({to:"/ec2/describe-volumes"}),e[38]=a,e[39]=v):v=e[39];let x;e[40]!==R||e[41]!==v?(x=t.jsx(L,{disabled:R,onClick:v,type:"button",variant:"outline",children:"Cancel"}),e[40]=R,e[41]=v,e[42]=x):x=e[42];const T=w||i.isPending,D=w||i.isPending?"Creating…":"Create Volume";let y;e[43]!==T||e[44]!==D?(y=t.jsx(L,{disabled:T,type:"submit",children:D}),e[43]=T,e[44]=D,e[45]=y):y=e[45];let p;e[46]!==x||e[47]!==y?(p=t.jsxs("div",{className:"flex gap-2",children:[x,y]}),e[46]=x,e[47]=y,e[48]=p):p=e[48];let h;e[49]!==c||e[50]!==b||e[51]!==p||e[52]!==r?(h=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:r,children:[c,b,p]}),e[49]=c,e[50]=b,e[51]=p,e[52]=r,e[53]=h):h=e[53];let A;return e[54]!==h||e[55]!==s?(A=t.jsxs(t.Fragment,{children:[z,F,s,h]}),e[54]=h,e[55]=s,e[56]=A):A=e[56],A}function de(e){return t.jsx(ce,{value:e.ZoneName??"",children:e.ZoneName},e.ZoneName)}export{Fe as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/create-vpc.js b/hive/services/hiveui/frontend/dist/assets/create-vpc.js new file mode 100644 index 000000000..0cbb3676d --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/create-vpc.js @@ -0,0 +1 @@ +import{c as M,u as T,j as t,B as w}from"./index.js";import{a as q,u as z}from"./zod.js";import{B as G}from"./back-link.js";import{E as J}from"./error-banner.js";import{P as K}from"./page-heading.js";import{F as O,b as $,a as A}from"./field.js";import{I as D}from"./input.js";import{u as Q}from"./ec2.js";import{c as U}from"./ec22.js";function ce(){const e=M.c(46),r=T(),s=Q();let j;e[0]===Symbol.for("react.memo_cache_sentinel")?(j={resolver:q(U),defaultValues:{cidrBlock:"10.0.0.0/16",name:""}},e[0]=j):j=e[0];const{handleSubmit:V,register:l,formState:H}=z(j),{errors:B,isSubmitting:F}=H;let g;e[1]!==s||e[2]!==r?(g=async L=>{const R=(await s.mutateAsync(L)).Vpc?.VpcId;r(R?{to:"/ec2/describe-vpcs/$id",params:{id:R}}:{to:"/ec2/describe-vpcs"})},e[1]=s,e[2]=r,e[3]=g):g=e[3];const P=g;let k,v;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(G,{to:"/ec2/describe-vpcs",children:"Back to VPCs"}),v=t.jsx(K,{title:"Create VPC"}),e[4]=k,e[5]=v):(k=e[4],v=e[5]);let i;e[6]!==s.error?(i=s.error&&t.jsx(J,{error:s.error,msg:"Failed to create VPC"}),e[6]=s.error,e[7]=i):i=e[7];let c;e[8]!==V||e[9]!==P?(c=V(P),e[8]=V,e[9]=P,e[10]=c):c=e[10];let C;e[11]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(A,{children:t.jsx("label",{htmlFor:"cidrBlock",children:"CIDR Block"})}),e[11]=C):C=e[11];const _=!!B.cidrBlock;let o;e[12]!==l?(o=l("cidrBlock"),e[12]=l,e[13]=o):o=e[13];let a;e[14]!==_||e[15]!==o?(a=t.jsx(D,{"aria-invalid":_,id:"cidrBlock",placeholder:"10.0.0.0/16",...o}),e[14]=_,e[15]=o,e[16]=a):a=e[16];let n;e[17]!==B.cidrBlock?(n=t.jsx(O,{errors:[B.cidrBlock]}),e[17]=B.cidrBlock,e[18]=n):n=e[18];let m;e[19]!==a||e[20]!==n?(m=t.jsxs($,{children:[C,a,n]}),e[19]=a,e[20]=n,e[21]=m):m=e[21];let y;e[22]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(A,{children:t.jsx("label",{htmlFor:"name",children:"Name (optional)"})}),e[22]=y):y=e[22];let d;e[23]!==l?(d=l("name"),e[23]=l,e[24]=d):d=e[24];let f;e[25]!==d?(f=t.jsxs($,{children:[y,t.jsx(D,{id:"name",placeholder:"my-vpc",...d})]}),e[25]=d,e[26]=f):f=e[26];const E=F||s.isPending;let p;e[27]!==r?(p=()=>r({to:"/ec2/describe-vpcs"}),e[27]=r,e[28]=p):p=e[28];let u;e[29]!==E||e[30]!==p?(u=t.jsx(w,{disabled:E,onClick:p,type:"button",variant:"outline",children:"Cancel"}),e[29]=E,e[30]=p,e[31]=u):u=e[31];const I=F||s.isPending,N=F||s.isPending?"Creating…":"Create VPC";let x;e[32]!==I||e[33]!==N?(x=t.jsx(w,{disabled:I,type:"submit",children:N}),e[32]=I,e[33]=N,e[34]=x):x=e[34];let h;e[35]!==u||e[36]!==x?(h=t.jsxs("div",{className:"flex gap-2",children:[u,x]}),e[35]=u,e[36]=x,e[37]=h):h=e[37];let b;e[38]!==m||e[39]!==f||e[40]!==h||e[41]!==c?(b=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:c,children:[m,f,h]}),e[38]=m,e[39]=f,e[40]=h,e[41]=c,e[42]=b):b=e[42];let S;return e[43]!==b||e[44]!==i?(S=t.jsxs(t.Fragment,{children:[k,v,i,b]}),e[43]=b,e[44]=i,e[45]=S):S=e[45],S}export{ce as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/download.js b/hive/services/hiveui/frontend/dist/assets/download.js index 39be8b7d8..ce7522ea2 100644 --- a/hive/services/hiveui/frontend/dist/assets/download.js +++ b/hive/services/hiveui/frontend/dist/assets/download.js @@ -1 +1 @@ -import{g as o}from"./index.js";const a=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],e=o("download",a);export{e as D}; +import{k as o}from"./index.js";const a=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],e=o("download",a);export{e as D}; diff --git a/hive/services/hiveui/frontend/dist/assets/ec2.js b/hive/services/hiveui/frontend/dist/assets/ec2.js index 41fd20778..519defaaa 100644 --- a/hive/services/hiveui/frontend/dist/assets/ec2.js +++ b/hive/services/hiveui/frontend/dist/assets/ec2.js @@ -1 +1 @@ -import{aK as o,bQ as c,aM as r,bR as I,bS as p,bT as f,bU as E,bV as w,bW as b,bX as K,bY as P,bZ as S,b_ as v,b$ as h,c as i,bl as u,c0 as m,aD as d,ax as y}from"./index.js";import{u as l}from"./error-banner.js";class q extends o.classBuilder().ep(c).m(function(n,t,s,a){return[r(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateKeyPair",{}).n("EC2Client","CreateKeyPairCommand").sc(I).build(){}class $ extends o.classBuilder().ep(c).m(function(n,t,s,a){return[r(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateVolume",{}).n("EC2Client","CreateVolumeCommand").sc(p).build(){}class F extends o.classBuilder().ep(c).m(function(n,t,s,a){return[r(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DeleteKeyPair",{}).n("EC2Client","DeleteKeyPairCommand").sc(f).build(){}class g extends o.classBuilder().ep(c).m(function(n,t,s,a){return[r(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DeleteVolume",{}).n("EC2Client","DeleteVolumeCommand").sc(E).build(){}class R extends o.classBuilder().ep(c).m(function(n,t,s,a){return[r(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","ImportKeyPair",{}).n("EC2Client","ImportKeyPairCommand").sc(w).build(){}class V extends o.classBuilder().ep(c).m(function(n,t,s,a){return[r(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","ModifyVolume",{}).n("EC2Client","ModifyVolumeCommand").sc(b).build(){}class Q extends o.classBuilder().ep(c).m(function(n,t,s,a){return[r(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","RebootInstances",{}).n("EC2Client","RebootInstancesCommand").sc(K).build(){}class x extends o.classBuilder().ep(c).m(function(n,t,s,a){return[r(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","RunInstances",{}).n("EC2Client","RunInstancesCommand").sc(P).build(){}class z extends o.classBuilder().ep(c).m(function(n,t,s,a){return[r(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","StartInstances",{}).n("EC2Client","StartInstancesCommand").sc(S).build(){}class D extends o.classBuilder().ep(c).m(function(n,t,s,a){return[r(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","StopInstances",{}).n("EC2Client","StopInstancesCommand").sc(v).build(){}class A extends o.classBuilder().ep(c).m(function(n,t,s,a){return[r(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","TerminateInstances",{}).n("EC2Client","TerminateInstancesCommand").sc(h).build(){}const _=/\s+/;function Y(){const e=i.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:T,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}async function T(e){try{const n=new z({InstanceIds:[e]});return await m().send(n)}catch{throw new Error("Failed to start instance")}}function J(){const e=i.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:B,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}async function B(e){try{const n=new D({InstanceIds:[e]});return await m().send(n)}catch{throw new Error("Failed to stop instance")}}function L(){const e=i.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:M,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}async function M(e){try{const n=new A({InstanceIds:[e]});return await m().send(n)}catch{throw new Error("Failed to terminate instance")}}function ee(){const e=i.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:k,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}async function k(e){try{const n=new Q({InstanceIds:[e]});return await m().send(n)}catch{throw new Error("Failed to reboot instance")}}function ne(){const e=i.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:N,onSuccess:async s=>{await n.cancelQueries(d);const a=n.getQueryData(d.queryKey);if(a&&s.Instances){const C={Instances:s.Instances,OwnerId:s.OwnerId,RequesterId:s.RequesterId,ReservationId:s.ReservationId,Groups:[]};n.setQueryData(d.queryKey,{...a,Reservations:[...a.Reservations||[],C]})}n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}async function N(e){try{const n=new x({ImageId:e.imageId,InstanceType:e.instanceType,KeyName:e.keyName,MinCount:e.count,MaxCount:e.count,SecurityGroupIds:e.securityGroupIds,SubnetId:e.subnetId});return await m().send(n)}catch{throw new Error("Failed to create instance")}}function te(){const e=i.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:G,onSuccess:()=>{n.invalidateQueries(y)}},e[0]=n,e[1]=t):t=e[1],l(t)}async function G(e){try{const n=new q({KeyName:e.keyName,KeyType:"rsa"});return await m().send(n)}catch{throw new Error("Failed to create key pair")}}function se(){const e=i.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:O,onSuccess:()=>{n.invalidateQueries(y)}},e[0]=n,e[1]=t):t=e[1],l(t)}async function O(e){try{const t=e.publicKeyMaterial.trim().split(_).slice(0,2).join(" "),s=new R({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return await m().send(s)}catch{throw new Error("Failed to import key pair")}}function ae(){const e=i.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:Z,onSuccess:()=>{n.invalidateQueries(y)}},e[0]=n,e[1]=t):t=e[1],l(t)}async function Z(e){try{const n=new F({KeyPairId:e});return await m().send(n)}catch{throw new Error("Failed to delete key pair")}}function oe(){const e=i.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:j,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}async function j(e){try{const n=new $({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:"gp3"});return await m().send(n)}catch{throw new Error("Failed to create volume")}}function ce(){const e=i.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:W,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}async function W(e){try{const n=new V({VolumeId:e.volumeId,Size:e.size});return await m().send(n)}catch{throw new Error("Failed to modify volume")}}function re(){const e=i.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:X,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}async function X(e){try{const n=new g({VolumeId:e});return await m().send(n)}catch{throw new Error("Failed to delete volume")}}export{se as a,te as b,ne as c,ce as d,re as e,ae as f,Y as g,J as h,ee as i,L as j,oe as u}; +import{E as c,c1 as i,G as a,c2 as $,c3 as v,ah as h,ag as V,a1 as g,c4 as q,ai as K,c5 as D,c6 as w,c7 as A,c8 as x,c9 as R,ca as _,cb as z,cc as B,cd as F,ce as Q,cf as M,cg as T,ch as k,ci as U,cj as N,ck as O,cl as G,cm as j,cn as Z,co as H,cp as L,cq as W,c as u,aj as m,cr as r,m as E}from"./index.js";import{u as l}from"./error-banner.js";class X extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","AttachVolume",{}).n("EC2Client","AttachVolumeCommand").sc($).build(){}function J(e){const{port:n,query:t}=e;let{protocol:s,path:o,hostname:p}=e;s&&s.slice(-1)!==":"&&(s+=":"),n&&(p+=`:${n}`),o&&o.charAt(0)!=="/"&&(o=`/${o}`);let d=t?v(t):"";d&&d[0]!=="?"&&(d=`?${d}`);let y="";if(e.username!=null||e.password!=null){const S=e.username??"",I=e.password??"";y=`${S}:${I}@`}let f="";return e.fragment&&(f=`#${e.fragment}`),`${s}//${y}${p}${o}${d}${f}`}const Y="2016-11-15";function ee(e){return(n,t)=>async s=>{const{input:o}=s;if(!o.PresignedUrl){const p=await e.region(),d=await h(o,{getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}},{...e,region:o.SourceRegion}),y=typeof e.endpoint=="function"?await e.endpoint():V(d),f=new g({...y,protocol:"https",headers:{host:y.hostname},query:{...Object.entries(o).reduce((C,[b,P])=>(C[b]=String(P??""),C),{}),Action:"CopySnapshot",Version:Y,DestinationRegion:p}}),I=await new q({credentials:e.credentials,region:o.SourceRegion,service:"ec2",sha256:e.sha256,uriEscapePath:e.signingEscapePath}).presign(f,{expiresIn:3600});if(s={...s,input:{...s.input,DestinationRegion:p,PresignedUrl:J(I)}},g.isInstance(s.request)){const{request:C}=s;(C.body??"").includes("DestinationRegion=")||(C.body+=`&DestinationRegion=${p}`),(C.body??"").includes("PresignedUrl=")||(C.body+=`&PresignedUrl=${K(s.input.PresignedUrl)}`)}}return n(s)}}const ne={step:"serialize",tags:["CROSS_REGION_PRESIGNED_URL"],name:"crossRegionPresignedUrlMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"},te=e=>({applyToStack:n=>{n.add(ee(e),ne)}});class se extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions()),te(s)]}).s("AmazonEC2","CopySnapshot",{}).n("EC2Client","CopySnapshotCommand").sc(D).build(){}class oe extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateImage",{}).n("EC2Client","CreateImageCommand").sc(w).build(){}class ce extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateKeyPair",{}).n("EC2Client","CreateKeyPairCommand").sc(A).build(){}class ie extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateSnapshot",{}).n("EC2Client","CreateSnapshotCommand").sc(x).build(){}class ae extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateSubnet",{}).n("EC2Client","CreateSubnetCommand").sc(R).build(){}class ue extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateVolume",{}).n("EC2Client","CreateVolumeCommand").sc(_).build(){}class re extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateVpc",{}).n("EC2Client","CreateVpcCommand").sc(z).build(){}class le extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DeleteKeyPair",{}).n("EC2Client","DeleteKeyPairCommand").sc(B).build(){}class me extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DeleteSnapshot",{}).n("EC2Client","DeleteSnapshotCommand").sc(F).build(){}class de extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DeleteSubnet",{}).n("EC2Client","DeleteSubnetCommand").sc(Q).build(){}class Ce extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DeleteVolume",{}).n("EC2Client","DeleteVolumeCommand").sc(M).build(){}class pe extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DeleteVpc",{}).n("EC2Client","DeleteVpcCommand").sc(T).build(){}class ye extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DetachVolume",{}).n("EC2Client","DetachVolumeCommand").sc(k).build(){}class fe extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","GetConsoleOutput",{}).n("EC2Client","GetConsoleOutputCommand").sc(U).build(){}class Ie extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","ImportKeyPair",{}).n("EC2Client","ImportKeyPairCommand").sc(N).build(){}class Ee extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","ModifyInstanceAttribute",{}).n("EC2Client","ModifyInstanceAttributeCommand").sc(O).build(){}class Se extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","ModifyVolume",{}).n("EC2Client","ModifyVolumeCommand").sc(G).build(){}class ge extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","RebootInstances",{}).n("EC2Client","RebootInstancesCommand").sc(j).build(){}class be extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","RunInstances",{}).n("EC2Client","RunInstancesCommand").sc(Z).build(){}class Pe extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","StartInstances",{}).n("EC2Client","StartInstancesCommand").sc(H).build(){}class $e extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","StopInstances",{}).n("EC2Client","StopInstancesCommand").sc(L).build(){}class ve extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","TerminateInstances",{}).n("EC2Client","TerminateInstancesCommand").sc(W).build(){}const he=/\s+/;function Xe(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Ve,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Ve(e){const n=new Pe({InstanceIds:[e]});return r().send(n)}function Je(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:qe,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function qe(e){const n=new $e({InstanceIds:[e]});return r().send(n)}function Ye(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Ke,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Ke(e){const n=new ve({InstanceIds:[e]});return r().send(n)}function en(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:De,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function De(e){const n=new ge({InstanceIds:[e]});return r().send(n)}function nn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:we,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function we(e){const n=new be({ImageId:e.imageId,InstanceType:e.instanceType,KeyName:e.keyName,MinCount:e.count,MaxCount:e.count,SubnetId:e.subnetId||void 0});return r().send(n)}function tn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Ae,onSuccess:()=>{n.invalidateQueries(E)}},e[0]=n,e[1]=t):t=e[1],l(t)}function Ae(e){const n=new ce({KeyName:e.keyName,KeyType:"rsa"});return r().send(n)}function sn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:xe,onSuccess:()=>{n.invalidateQueries(E)}},e[0]=n,e[1]=t):t=e[1],l(t)}function xe(e){const t=e.publicKeyMaterial.trim().split(he).slice(0,2).join(" "),s=new Ie({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return r().send(s)}function on(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Re,onSuccess:()=>{n.invalidateQueries(E)}},e[0]=n,e[1]=t):t=e[1],l(t)}function Re(e){const n=new le({KeyPairId:e});return r().send(n)}function cn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:_e,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function _e(e){const n=new ue({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:"gp3"});return r().send(n)}function an(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:ze,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function ze(e){const n=new Se({VolumeId:e.volumeId,Size:e.size});return r().send(n)}function un(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Be,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Be(e){const n=new Ce({VolumeId:e});return r().send(n)}function rn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Fe,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","snapshots"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Fe(e){const n=new ie({VolumeId:e.volumeId,Description:e.description||void 0});return r().send(n)}function ln(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Qe,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","snapshots"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Qe(e){const n=new me({SnapshotId:e});return r().send(n)}function mn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Me,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","snapshots"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Me(e){const n=new se({SourceSnapshotId:e.sourceSnapshotId,SourceRegion:e.sourceRegion,Description:e.description||void 0});return r().send(n)}function dn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Te,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]}),n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Te(e){const n=new X({VolumeId:e.volumeId,InstanceId:e.instanceId,Device:e.device||void 0});return r().send(n)}function Cn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:ke,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]}),n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function ke(e){const n=new ye({VolumeId:e.volumeId,InstanceId:e.instanceId||void 0,Force:e.force});return r().send(n)}function pn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Ue,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Ue(e){const{instanceId:n,...t}=e,s=new Ee({InstanceId:n,InstanceType:{Value:t.instanceType}});return r().send(s)}function yn(){const e=u.c(1);let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n={mutationFn:Ne},e[0]=n):n=e[0],l(n)}function Ne(e){const n=new fe({InstanceId:e});return r().send(n)}function fn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Oe,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","images"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Oe(e){const n=new oe({InstanceId:e.instanceId,Name:e.name,Description:e.description||void 0});return r().send(n)}function In(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Ge,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","vpcs"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Ge(e){const n=new re({CidrBlock:e.cidrBlock,TagSpecifications:e.name?[{ResourceType:"vpc",Tags:[{Key:"Name",Value:e.name}]}]:void 0});return r().send(n)}function En(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:je,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","vpcs"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function je(e){const n=new pe({VpcId:e});return r().send(n)}function Sn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Ze,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","subnets"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Ze(e){const n=new ae({VpcId:e.vpcId,CidrBlock:e.cidrBlock,AvailabilityZone:e.availabilityZone||void 0});return r().send(n)}function gn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:He,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","subnets"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function He(e){const n=new de({SubnetId:e});return r().send(n)}export{cn as a,Sn as b,rn as c,sn as d,tn as e,nn as f,En as g,an as h,un as i,dn as j,Cn as k,gn as l,ln as m,mn as n,on as o,fn as p,Xe as q,Je as r,en as s,Ye as t,In as u,pn as v,yn as w}; diff --git a/hive/services/hiveui/frontend/dist/assets/ec22.js b/hive/services/hiveui/frontend/dist/assets/ec22.js index b94fb56d0..35e29af6b 100644 --- a/hive/services/hiveui/frontend/dist/assets/ec22.js +++ b/hive/services/hiveui/frontend/dist/assets/ec22.js @@ -1 +1 @@ -import{o as a,f as e,bo as t,bp as s}from"./index.js";const m=a({imageId:e("Please select an Image"),instanceType:e("Please select an instance type"),keyName:e("Please select a key pair"),count:s("Instance count must be a whole number").min(1,"Instance count must be at least 1")}),c=a({keyName:e().min(1,"Key name is required").max(255,"Key name must be 255 characters or less").regex(/^[\w\s._\-:/()#,@[\]+=&;{}!$*]+$/,"Key name contains invalid characters")}),r=a({keyName:e().min(1,"Key name is required").max(255,"Key name must be 255 characters or less").regex(/^[\w\s._\-:/()#,@[\]+=&;{}!$*]+$/,"Key name contains invalid characters"),publicKeyMaterial:e().min(1,"Public key is required").refine(i=>i.trim().length>0,"Public key cannot be empty")}),o=a({size:t().int("Size must be a whole number").min(1,"Size must be at least 1 GiB").max(16384,"Size must be at most 16384 GiB"),availabilityZone:e().min(1,"Availability zone is required")}),l=a({size:t().int("Size must be a whole number").min(1,"Size must be at least 1 GiB")});export{c as a,m as b,o as c,r as i,l as m}; +import{o as i,f as e,ao as a,ap as s,aq as t}from"./index.js";const r=i({imageId:e("Please select an Image"),instanceType:e("Please select an instance type"),keyName:e("Please select a key pair"),subnetId:e().optional(),count:s("Instance count must be a whole number").min(1,"Instance count must be at least 1")}),c=i({keyName:e().min(1,"Key name is required").max(255,"Key name must be 255 characters or less").regex(/^[\w\s._\-:/()#,@[\]+=&;{}!$*]+$/,"Key name contains invalid characters")}),m=i({keyName:e().min(1,"Key name is required").max(255,"Key name must be 255 characters or less").regex(/^[\w\s._\-:/()#,@[\]+=&;{}!$*]+$/,"Key name contains invalid characters"),publicKeyMaterial:e().min(1,"Public key is required").refine(n=>n.trim().length>0,"Public key cannot be empty")}),l=i({size:a().int("Size must be a whole number").min(1,"Size must be at least 1 GiB").max(16384,"Size must be at most 16384 GiB"),availabilityZone:e().min(1,"Availability zone is required")}),u=i({size:a().int("Size must be a whole number").min(1,"Size must be at least 1 GiB")}),d=i({volumeId:e().min(1,"Volume is required"),description:e().optional()});i({sourceSnapshotId:e().min(1,"Source snapshot is required"),sourceRegion:e().min(1,"Source region is required"),description:e().optional()});i({volumeId:e().min(1,"Volume is required"),instanceId:e().min(1,"Instance is required"),device:e().optional()});i({volumeId:e().min(1,"Volume is required"),instanceId:e().optional(),force:t().optional()});i({instanceType:e().min(1,"Instance type is required")});i({name:e().min(1,"Name is required"),description:e().optional()});const b=i({vpcId:e().min(1,"VPC is required"),cidrBlock:e().min(1,"CIDR block is required").regex(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2}$/,"Must be a valid CIDR block (e.g. 10.0.1.0/24)"),availabilityZone:e().optional()}),p=i({cidrBlock:e().min(1,"CIDR block is required").regex(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2}$/,"Must be a valid CIDR block (e.g. 10.0.0.0/16)"),name:e().optional()});export{l as a,b,p as c,d,c as e,r as f,m as i,u as m}; diff --git a/hive/services/hiveui/frontend/dist/assets/error-banner.js b/hive/services/hiveui/frontend/dist/assets/error-banner.js index 654719c39..46ac5cfea 100644 --- a/hive/services/hiveui/frontend/dist/assets/error-banner.js +++ b/hive/services/hiveui/frontend/dist/assets/error-banner.js @@ -1 +1 @@ -import{c1 as d,c2 as m,c3 as u,c4 as p,c5 as c,bl as b,r as a,c6 as v,c7 as f,c as y,j as h}from"./index.js";var x=class extends d{#s;#i=void 0;#t;#e;constructor(s,t){super(),this.#s=s,this.setOptions(t),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){const t=this.options;this.options=this.#s.defaultMutationOptions(s),m(this.options,t)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),t?.mutationKey&&this.options.mutationKey&&u(t.mutationKey)!==u(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(s){this.#r(),this.#o(s)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(s,t){return this.#e=t,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(s)}#r(){const s=this.#t?.state??p();this.#i={...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset}}#o(s){c.batch(()=>{if(this.#e&&this.hasListeners()){const t=this.#i.variables,r=this.#i.context,i={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};if(s?.type==="success"){try{this.#e.onSuccess?.(s.data,t,r,i)}catch(e){Promise.reject(e)}try{this.#e.onSettled?.(s.data,null,t,r,i)}catch(e){Promise.reject(e)}}else if(s?.type==="error"){try{this.#e.onError?.(s.error,t,r,i)}catch(e){Promise.reject(e)}try{this.#e.onSettled?.(void 0,s.error,t,r,i)}catch(e){Promise.reject(e)}}}this.listeners.forEach(t=>{t(this.#i)})})}};function g(s,t){const r=b(),[i]=a.useState(()=>new x(r,s));a.useEffect(()=>{i.setOptions(s)},[i,s]);const e=a.useSyncExternalStore(a.useCallback(n=>i.subscribe(c.batchCalls(n)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=a.useCallback((n,l)=>{i.mutate(n,l).catch(v)},[i]);if(e.error&&f(i.options.throwOnError,[e.error]))throw e.error;return{...e,mutate:o,mutateAsync:e.mutate}}function E(s){const t=y.c(7),{msg:r,error:i}=s;let e;t[0]!==r?(e=r&&h.jsx("h2",{className:"text-destructive text-sm",children:r}),t[0]=r,t[1]=e):e=t[1];let o;t[2]!==i?(o=i&&h.jsx("p",{className:"text-destructive text-sm",children:i.message}),t[2]=i,t[3]=o):o=t[3];let n;return t[4]!==e||t[5]!==o?(n=h.jsxs("div",{className:"mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4",children:[e,o]}),t[4]=e,t[5]=o,t[6]=n):n=t[6],n}export{E,g as u}; +import{cs as d,ct as m,cu as c,cv as p,cw as l,aj as b,r as h,cx as v,cy as f,c as y,j as u}from"./index.js";var x=class extends d{#e;#i=void 0;#t;#s;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),m(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),t?.mutationKey&&this.options.mutationKey&&c(t.mutationKey)!==c(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(e){this.#r(),this.#o(e)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(e,t){return this.#s=t,this.#t?.removeObserver(this),this.#t=this.#e.getMutationCache().build(this.#e,this.options),this.#t.addObserver(this),this.#t.execute(e)}#r(){const e=this.#t?.state??p();this.#i={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#o(e){l.batch(()=>{if(this.#s&&this.hasListeners()){const t=this.#i.variables,r=this.#i.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#s.onSuccess?.(e.data,t,r,s)}catch(i){Promise.reject(i)}try{this.#s.onSettled?.(e.data,null,t,r,s)}catch(i){Promise.reject(i)}}else if(e?.type==="error"){try{this.#s.onError?.(e.error,t,r,s)}catch(i){Promise.reject(i)}try{this.#s.onSettled?.(void 0,e.error,t,r,s)}catch(i){Promise.reject(i)}}}this.listeners.forEach(t=>{t(this.#i)})})}};function E(e,t){const r=b(),[s]=h.useState(()=>new x(r,e));h.useEffect(()=>{s.setOptions(e)},[s,e]);const i=h.useSyncExternalStore(h.useCallback(o=>s.subscribe(l.batchCalls(o)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),n=h.useCallback((o,a)=>{s.mutate(o,a).catch(v)},[s]);if(i.error&&f(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:n,mutateAsync:i.mutate}}function g(e){const t=y.c(7),{msg:r,error:s}=e;let i;s&&(i=s.name!=="Error"?s.name:s.message);let n;t[0]!==r?(n=r&&u.jsx("h2",{className:"text-destructive text-sm",children:r}),t[0]=r,t[1]=n):n=t[1];let o;t[2]!==i?(o=i&&u.jsx("p",{className:"text-destructive text-sm",children:i}),t[2]=i,t[3]=o):o=t[3];let a;return t[4]!==n||t[5]!==o?(a=u.jsxs("div",{className:"mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4",children:[n,o]}),t[4]=n,t[5]=o,t[6]=a):a=t[6],a}export{g as E,E as u}; diff --git a/hive/services/hiveui/frontend/dist/assets/field.js b/hive/services/hiveui/frontend/dist/assets/field.js index 16a5532bb..f46456975 100644 --- a/hive/services/hiveui/frontend/dist/assets/field.js +++ b/hive/services/hiveui/frontend/dist/assets/field.js @@ -1 +1 @@ -import{r as K,bq as re,U as Wt,E as rt,br as Ht,Z as $t,H as Vt,F as ge,bs as zt,aq as Kt,J as Yt,K as Zt,ac as Gt,w as Jt,aa as Qt,j as oe,c as _e,a as xe,bt as x,bu as Xt,bv as er,bw as tr,bx as rr}from"./index.js";let st=(function(e){return e.disabled="data-disabled",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});const sr={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},ir={valid(e){return e===null?null:e?{[st.valid]:""}:{[st.invalid]:""}}},ar=K.createContext({invalid:void 0,name:void 0,validityData:{state:sr,errors:[],error:"",value:"",initialValue:null},setValidityData:re,disabled:void 0,touched:!1,setTouched:re,dirty:!1,setDirty:re,filled:!1,setFilled:re,focused:!1,setFocused:re,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:{disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},markedDirtyRef:{current:!1},validation:{getValidationProps:(e=rt)=>e,getInputValidationProps:(e=rt)=>e,inputRef:{current:null},commit:async()=>{}}});function _t(e=!0){const r=K.useContext(ar);if(r.setValidityData===re&&!e)throw new Error(Wt(28));return r}const nr=K.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:re,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function lr(){return K.useContext(nr)}const or=K.createContext({controlId:void 0,registerControlId:re,labelId:void 0,setLabelId:re,messageIds:[],setMessageIds:re,getDescriptionProps:e=>e});function xt(){return K.useContext(or)}function ur(e,r){return{...e,state:{...e.state,valid:!r&&e.state.valid}}}function dr({controlled:e,default:r,name:t,state:s="value"}){const{current:n}=K.useRef(e!==void 0),[a,o]=K.useState(r),d=n?e:a,b=K.useCallback(_=>{n||o(_)},[]);return[d,b]}function fr(e={}){const{id:r,implicit:t=!1,controlRef:s}=e,{controlId:n,registerControlId:a}=xt(),o=Ht(r),d=t?n:void 0,b=$t(()=>Symbol("labelable-control")),_=K.useRef(!1),k=K.useRef(r!=null),v=Vt(()=>{!_.current||a===re||(_.current=!1,a(b.current,void 0))});return ge(()=>{if(a===re)return;let V;if(t){const m=s?.current;zt(m)&&m.closest("label")!=null?V=r??null:V=d??o}else if(r!=null)k.current=!0,V=r;else if(k.current)V=o;else{v();return}if(V===void 0){v();return}_.current=!0,a(b.current,V)},[r,s,d,a,t,o,b,v]),K.useEffect(()=>v,[v]),n??o}function cr(e){const{enabled:r=!0,value:t,id:s,name:n,controlRef:a,commit:o}=e,{formRef:d}=lr(),{invalid:b,markedDirtyRef:_,validityData:k,setValidityData:v}=_t(),V=Vt(e.getValue);ge(()=>{if(!r)return;let m=t;m===void 0&&(m=V()),k.initialValue===null&&m!==null&&v(I=>({...I,initialValue:m}))},[r,v,t,k.initialValue,V]),ge(()=>{!r||!s||d.current.fields.set(s,{getValue:V,name:n,controlRef:a,validityData:ur(k,b),validate(m=!0){let I=t;I===void 0&&(I=V()),_.current=!0,m?Kt.flushSync(()=>o(I)):o(I)}})},[o,a,r,d,V,s,b,_,n,k,t]),ge(()=>{const m=d.current.fields;return()=>{s&&m.delete(s)}},[d,s])}const yr=K.forwardRef(function(r,t){const{render:s,className:n,id:a,name:o,value:d,disabled:b=!1,onValueChange:_,defaultValue:k,autoFocus:v=!1,...V}=r,{state:m,name:I,disabled:N,setTouched:L,setDirty:U,validityData:w,setFocused:P,setFilled:p,validationMode:E,validation:O}=_t(),Q=N||b,X=I??o,ee={...m,disabled:Q},{labelId:Y}=xt(),ue=fr({id:a});ge(()=>{const S=d!=null;O.inputRef.current?.value||S&&d!==""?p(!0):S&&d===""&&p(!1)},[O.inputRef,p,d]);const F=K.useRef(null);ge(()=>{v&&F.current===Yt(Zt(F.current))&&P(!0)},[v,P]);const[C]=dr({controlled:d,default:k,name:"FieldControl",state:"value"}),M=d!==void 0,W=M?C:void 0;return cr({id:ue,name:X,commit:O.commit,value:W,getValue:()=>O.inputRef.current?.value,controlRef:O.inputRef}),Gt("input",r,{ref:[t,F],state:ee,props:[{id:ue,disabled:Q,name:X,ref:O.inputRef,"aria-labelledby":Y,autoFocus:v,...M?{value:W}:{defaultValue:k},onChange(S){const ae=S.currentTarget.value;_?.(ae,Jt(Qt,S.nativeEvent)),U(ae!==w.initialValue),p(ae!=="")},onFocus(){P(!0)},onBlur(S){L(!0),P(!1),E==="onBlur"&&O.commit(S.currentTarget.value)},onKeyDown(S){S.currentTarget.tagName==="INPUT"&&S.key==="Enter"&&(L(!0),O.commit(S.currentTarget.value))}},O.getInputValidationProps(),V],stateAttributesMapping:ir})}),gr=K.forwardRef(function(r,t){return oe.jsx(yr,{ref:t,...r})});function Wr(e){const r=_e.c(10);let t,s,n;r[0]!==e?({className:t,type:n,...s}=e,r[0]=e,r[1]=t,r[2]=s,r[3]=n):(t=r[1],s=r[2],n=r[3]);let a;r[4]!==t?(a=xe("h-7 w-full min-w-0 rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm outline-none transition-colors file:inline-flex file:h-6 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-xs/relaxed placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",t),r[4]=t,r[5]=a):a=r[5];let o;return r[6]!==s||r[7]!==a||r[8]!==n?(o=oe.jsx(gr,{className:a,"data-slot":"input",type:n,...s}),r[6]=s,r[7]=a,r[8]=n,r[9]=o):o=r[9],o}var pe=e=>e.type==="checkbox",fe=e=>e instanceof Date,Z=e=>e==null;const pt=e=>typeof e=="object";var q=e=>!Z(e)&&!Array.isArray(e)&&pt(e)&&!fe(e),Ft=e=>q(e)&&e.target?pe(e.target)?e.target.checked:e.target.value:e,vr=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,wt=(e,r)=>e.has(vr(r)),mr=e=>{const r=e.constructor&&e.constructor.prototype;return q(r)&&r.hasOwnProperty("isPrototypeOf")},Ue=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function B(e){if(e instanceof Date)return new Date(e);const r=typeof FileList<"u"&&e instanceof FileList;if(Ue&&(e instanceof Blob||r))return e;const t=Array.isArray(e);if(!t&&!(q(e)&&mr(e)))return e;const s=t?[]:Object.create(Object.getPrototypeOf(e));for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(s[n]=B(e[n]));return s}var ke=e=>/^\w*$/.test(e),T=e=>e===void 0,Le=e=>Array.isArray(e)?e.filter(Boolean):[],Pe=e=>Le(e.replace(/["|']|\]/g,"").split(/\.|\[/)),y=(e,r,t)=>{if(!r||!q(e))return t;const s=(ke(r)?[r]:Pe(r)).reduce((n,a)=>Z(n)?n:n[a],e);return T(s)||s===e?T(e[r])?t:e[r]:s},G=e=>typeof e=="boolean",z=e=>typeof e=="function",R=(e,r,t)=>{let s=-1;const n=ke(r)?[r]:Pe(r),a=n.length,o=a-1;for(;++sx.useContext(Et);var kt=(e,r,t,s=!0)=>{const n={defaultValues:r._defaultValues};for(const a in e)Object.defineProperty(n,a,{get:()=>{const o=a;return r._proxyFormState[o]!==se.all&&(r._proxyFormState[o]=!s||se.all),t&&(t[o]=!0),e[o]}});return n};const je=typeof window<"u"?x.useLayoutEffect:x.useEffect;function hr(e){const r=Be(),{control:t=r,disabled:s,name:n,exact:a}=e||{},[o,d]=x.useState(t._formState),b=x.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return je(()=>t._subscribe({name:n,formState:b.current,exact:a,callback:_=>{!s&&d({...t._formState,..._})}}),[n,s,a]),x.useEffect(()=>{b.current.isValid&&t._setValid(!0)},[t]),x.useMemo(()=>kt(o,t,b.current,!1),[o,t])}var J=e=>typeof e=="string",Oe=(e,r,t,s,n)=>J(e)?(s&&r.watch.add(e),y(t,e,n)):Array.isArray(e)?e.map(a=>(s&&r.watch.add(a),y(t,a))):(s&&(r.watchAll=!0),t),Te=e=>Z(e)||!pt(e);function ie(e,r,t=new WeakSet){if(Te(e)||Te(r))return Object.is(e,r);if(fe(e)&&fe(r))return Object.is(e.getTime(),r.getTime());const s=Object.keys(e),n=Object.keys(r);if(s.length!==n.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const a of s){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const d=r[a];if(fe(o)&&fe(d)||q(o)&&q(d)||Array.isArray(o)&&Array.isArray(d)?!ie(o,d,t):!Object.is(o,d))return!1}}return!0}function br(e){const r=Be(),{control:t=r,name:s,defaultValue:n,disabled:a,exact:o,compute:d}=e||{},b=x.useRef(n),_=x.useRef(d),k=x.useRef(void 0),v=x.useRef(t),V=x.useRef(s);_.current=d;const[m,I]=x.useState(()=>{const p=t._getWatch(s,b.current);return _.current?_.current(p):p}),N=x.useCallback(p=>{const E=Oe(s,t._names,p||t._formValues,!1,b.current);return _.current?_.current(E):E},[t._formValues,t._names,s]),L=x.useCallback(p=>{if(!a){const E=Oe(s,t._names,p||t._formValues,!1,b.current);if(_.current){const O=_.current(E);ie(O,k.current)||(I(O),k.current=O)}else I(E)}},[t._formValues,t._names,a,s]);je(()=>((v.current!==t||!ie(V.current,s))&&(v.current=t,V.current=s,L()),t._subscribe({name:s,formState:{values:!0},exact:o,callback:p=>{L(p.values)}})),[t,o,s,L]),x.useEffect(()=>t._removeUnmounted());const U=v.current!==t,w=V.current,P=x.useMemo(()=>{if(a)return null;const p=!U&&!ie(w,s);return U||p?N():null},[a,U,s,w,N]);return P!==null?P:m}function Vr(e){const r=Be(),{name:t,disabled:s,control:n=r,shouldUnregister:a,defaultValue:o,exact:d=!0}=e,b=wt(n._names.array,t),_=x.useMemo(()=>y(n._formValues,t,y(n._defaultValues,t,o)),[n,t,o]),k=br({control:n,name:t,defaultValue:_,exact:d}),v=hr({control:n,name:t,exact:d}),V=x.useRef(e),m=x.useRef(void 0),I=x.useRef(n.register(t,{...e.rules,value:k,...G(e.disabled)?{disabled:e.disabled}:{}}));V.current=e;const N=x.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!y(v.errors,t)},isDirty:{enumerable:!0,get:()=>!!y(v.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!y(v.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!y(v.validatingFields,t)},error:{enumerable:!0,get:()=>y(v.errors,t)}}),[v,t]),L=x.useCallback(p=>I.current.onChange({target:{value:Ft(p),name:t},type:Fe.CHANGE}),[t]),U=x.useCallback(()=>I.current.onBlur({target:{value:y(n._formValues,t),name:t},type:Fe.BLUR}),[t,n._formValues]),w=x.useCallback(p=>{const E=y(n._fields,t);E&&E._f&&p&&(E._f.ref={focus:()=>z(p.focus)&&p.focus(),select:()=>z(p.select)&&p.select(),setCustomValidity:O=>z(p.setCustomValidity)&&p.setCustomValidity(O),reportValidity:()=>z(p.reportValidity)&&p.reportValidity()})},[n._fields,t]),P=x.useMemo(()=>({name:t,value:k,...G(s)||v.disabled?{disabled:v.disabled||s}:{},onChange:L,onBlur:U,ref:w}),[t,s,v.disabled,L,U,w,k]);return x.useEffect(()=>{const p=n._options.shouldUnregister||a,E=m.current;E&&E!==t&&!b&&n.unregister(E),n.register(t,{...V.current.rules,...G(V.current.disabled)?{disabled:V.current.disabled}:{}});const O=(Q,X)=>{const ee=y(n._fields,Q);ee&&ee._f&&(ee._f.mount=X)};if(O(t,!0),p){const Q=B(y(n._options.defaultValues,t,V.current.defaultValue));R(n._defaultValues,t,Q),T(y(n._formValues,t))&&R(n._formValues,t,Q)}return!b&&n.register(t),m.current=t,()=>{(b?p&&!n._state.action:p)?n.unregister(t):O(t,!1)}},[t,n,b,a]),x.useEffect(()=>{n._setDisabledField({disabled:s,name:t})},[s,t,n]),x.useMemo(()=>({field:P,formState:v,fieldState:N}),[P,v,N])}const Hr=e=>e.render(Vr(e)),_r=x.createContext(null);_r.displayName="HookFormContext";var qe=(e,r,t,s,n)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[s]:n||!0}}:{},be=e=>Array.isArray(e)?e:[e],it=()=>{let e=[];return{get observers(){return e},next:n=>{for(const a of e)a.next&&a.next(n)},subscribe:n=>(e.push(n),{unsubscribe:()=>{e=e.filter(a=>a!==n)}}),unsubscribe:()=>{e=[]}}};function Ct(e,r){const t={};for(const s in e)if(e.hasOwnProperty(s)){const n=e[s],a=r[s];if(n&&q(n)&&a){const o=Ct(n,a);q(o)&&(t[s]=o)}else e[s]&&(t[s]=a)}return t}var $=e=>q(e)&&!Object.keys(e).length,We=e=>e.type==="file",we=e=>{if(!Ue)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},At=e=>e.type==="select-multiple",He=e=>e.type==="radio",xr=e=>He(e)||pe(e),Ie=e=>we(e)&&e.isConnected;function pr(e,r){const t=r.slice(0,-1).length;let s=0;for(;s{for(const r in e)if(z(e[r]))return!0;return!1};function Dt(e){return Array.isArray(e)||q(e)&&!wr(e)}function Me(e,r={}){for(const t in e){const s=e[t];Dt(s)?(r[t]=Array.isArray(s)?[]:{},Me(s,r[t])):T(s)||(r[t]=!0)}return r}function ye(e,r,t){t||(t=Me(r));for(const s in e){const n=e[s];if(Dt(n))T(r)||Te(t[s])?t[s]=Me(n,Array.isArray(n)?[]:{}):ye(n,Z(r)?{}:r[s],t[s]);else{const a=r[s];t[s]=!ie(n,a)}}return t}const at={value:!1,isValid:!1},nt={value:!0,isValid:!0};var Rt=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!T(e[0].attributes.value)?T(e[0].value)||e[0].value===""?nt:{value:e[0].value,isValid:!0}:nt:at}return at},St=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:s})=>T(e)?e:r?e===""?NaN:e&&+e:t&&J(e)?new Date(e):s?s(e):e;const lt={isValid:!1,value:null};var It=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,lt):lt;function ot(e){const r=e.ref;return We(r)?r.files:He(r)?It(e.refs).value:At(r)?[...r.selectedOptions].map(({value:t})=>t):pe(r)?Rt(e.refs).value:St(T(r.value)?e.ref.value:r.value,e)}var Er=(e,r,t,s)=>{const n={};for(const a of e){const o=y(r,a);o&&R(n,a,o._f)}return{criteriaMode:t,names:[...e],fields:n,shouldUseNativeValidation:s}},Ee=e=>e instanceof RegExp,he=e=>T(e)?e:Ee(e)?e.source:q(e)?Ee(e.value)?e.value.source:e.value:e,ut=e=>({isOnSubmit:!e||e===se.onSubmit,isOnBlur:e===se.onBlur,isOnChange:e===se.onChange,isOnAll:e===se.all,isOnTouch:e===se.onTouched});const dt="AsyncFunction";var kr=e=>!!e&&!!e.validate&&!!(z(e.validate)&&e.validate.constructor.name===dt||q(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===dt)),Cr=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),ft=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const Ve=(e,r,t,s)=>{for(const n of t||Object.keys(e)){const a=y(e,n);if(a){const{_f:o,...d}=a;if(o){if(o.refs&&o.refs[0]&&r(o.refs[0],n)&&!s)return!0;if(o.ref&&r(o.ref,o.name)&&!s)return!0;if(Ve(d,r))break}else if(q(d)&&Ve(d,r))break}}};function ct(e,r,t){const s=y(e,t);if(s||ke(t))return{error:s,name:t};const n=t.split(".");for(;n.length;){const a=n.join("."),o=y(r,a),d=y(e,a);if(o&&!Array.isArray(o)&&t!==a)return{name:t};if(d&&d.type)return{name:a,error:d};if(d&&d.root&&d.root.type)return{name:`${a}.root`,error:d.root};n.pop()}return{name:t}}var Ar=(e,r,t,s)=>{t(e);const{name:n,...a}=e;return $(a)||Object.keys(a).length>=Object.keys(r).length||Object.keys(a).find(o=>r[o]===(!s||se.all))},Dr=(e,r,t)=>!e||!r||e===r||be(e).some(s=>s&&(t?s===r:s.startsWith(r)||r.startsWith(s))),Rr=(e,r,t,s,n)=>n.isOnAll?!1:!t&&n.isOnTouch?!(r||e):(t?s.isOnBlur:n.isOnBlur)?!e:(t?s.isOnChange:n.isOnChange)?e:!0,Sr=(e,r)=>!Le(y(e,r)).length&&j(e,r),Ir=(e,r,t)=>{const s=be(y(e,t));return R(s,"root",r[t]),R(e,t,s),e};function yt(e,r,t="validate"){if(J(e)||Array.isArray(e)&&e.every(J)||G(e)&&!e)return{type:t,message:J(e)?e:"",ref:r}}var ce=e=>q(e)&&!Ee(e)?e:{value:e,message:""},gt=async(e,r,t,s,n,a)=>{const{ref:o,refs:d,required:b,maxLength:_,minLength:k,min:v,max:V,pattern:m,validate:I,name:N,valueAsNumber:L,mount:U}=e._f,w=y(t,N);if(!U||r.has(N))return{};const P=d?d[0]:o,p=F=>{n&&P.reportValidity&&(P.setCustomValidity(G(F)?"":F||""),P.reportValidity())},E={},O=He(o),Q=pe(o),X=O||Q,ee=(L||We(o))&&T(o.value)&&T(w)||we(o)&&o.value===""||w===""||Array.isArray(w)&&!w.length,Y=qe.bind(null,N,s,E),ue=(F,C,M,W=ne.maxLength,te=ne.minLength)=>{const S=F?C:M;E[N]={type:F?W:te,message:S,ref:o,...Y(F?W:te,S)}};if(a?!Array.isArray(w)||!w.length:b&&(!X&&(ee||Z(w))||G(w)&&!w||Q&&!Rt(d).isValid||O&&!It(d).isValid)){const{value:F,message:C}=J(b)?{value:!!b,message:b}:ce(b);if(F&&(E[N]={type:ne.required,message:C,ref:P,...Y(ne.required,C)},!s))return p(C),E}if(!ee&&(!Z(v)||!Z(V))){let F,C;const M=ce(V),W=ce(v);if(!Z(w)&&!isNaN(w)){const te=o.valueAsNumber||w&&+w;Z(M.value)||(F=te>M.value),Z(W.value)||(C=tenew Date(new Date().toDateString()+" "+me),ae=o.type=="time",ve=o.type=="week";J(M.value)&&w&&(F=ae?S(w)>S(M.value):ve?w>M.value:te>new Date(M.value)),J(W.value)&&w&&(C=ae?S(w)+F.value,W=!Z(C.value)&&w.length<+C.value;if((M||W)&&(ue(M,F.message,C.message),!s))return p(E[N].message),E}if(m&&!ee&&J(w)){const{value:F,message:C}=ce(m);if(Ee(F)&&!w.match(F)&&(E[N]={type:ne.pattern,message:C,ref:o,...Y(ne.pattern,C)},!s))return p(C),E}if(I){if(z(I)){const F=await I(w,t),C=yt(F,P);if(C&&(E[N]={...C,...Y(ne.validate,C.message)},!s))return p(C.message),E}else if(q(I)){let F={};for(const C in I){if(!$(F)&&!s)break;const M=yt(await I[C](w,t),P,C);M&&(F={...M,...Y(C,M.message)},p(M.message),s&&(E[N]=F))}if(!$(F)&&(E[N]={ref:P,...F},!s))return E}}return p(!0),E};const Or={mode:se.onSubmit,reValidateMode:se.onChange,shouldFocusError:!0};function Tr(e={}){let r={...Or,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:z(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},s={},n=q(r.defaultValues)||q(r.values)?B(r.defaultValues||r.values)||{}:{},a=r.shouldUnregister?{}:B(n),o={action:!1,mount:!1,watch:!1,keepIsValid:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},b,_=0;const k={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={...k};let V={...v};const m={array:it(),state:it()},I=r.criteriaMode===se.all,N=i=>l=>{clearTimeout(_),_=setTimeout(i,l)},L=async i=>{if(!o.keepIsValid&&!r.disabled&&(v.isValid||V.isValid||i)){let l;r.resolver?(l=$((await X()).errors),U()):l=await Y(s,!0),l!==t.isValid&&m.state.next({isValid:l})}},U=(i,l)=>{!r.disabled&&(v.isValidating||v.validatingFields||V.isValidating||V.validatingFields)&&((i||Array.from(d.mount)).forEach(u=>{u&&(l?R(t.validatingFields,u,l):j(t.validatingFields,u))}),m.state.next({validatingFields:t.validatingFields,isValidating:!$(t.validatingFields)}))},w=(i,l=[],u,g,c=!0,f=!0)=>{if(g&&u&&!r.disabled){if(o.action=!0,f&&Array.isArray(y(s,i))){const h=u(y(s,i),g.argA,g.argB);c&&R(s,i,h)}if(f&&Array.isArray(y(t.errors,i))){const h=u(y(t.errors,i),g.argA,g.argB);c&&R(t.errors,i,h),Sr(t.errors,i)}if((v.touchedFields||V.touchedFields)&&f&&Array.isArray(y(t.touchedFields,i))){const h=u(y(t.touchedFields,i),g.argA,g.argB);c&&R(t.touchedFields,i,h)}(v.dirtyFields||V.dirtyFields)&&(t.dirtyFields=ye(n,a)),m.state.next({name:i,isDirty:F(i,l),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else R(a,i,l)},P=(i,l)=>{R(t.errors,i,l),m.state.next({errors:t.errors})},p=i=>{t.errors=i,m.state.next({errors:t.errors,isValid:!1})},E=(i,l,u,g)=>{const c=y(s,i);if(c){const f=y(a,i,T(u)?y(n,i):u);T(f)||g&&g.defaultChecked||l?R(a,i,l?f:ot(c._f)):W(i,f),o.mount&&!o.action&&L()}},O=(i,l,u,g,c)=>{let f=!1,h=!1;const A={name:i};if(!r.disabled){if(!u||g){(v.isDirty||V.isDirty)&&(h=t.isDirty,t.isDirty=A.isDirty=F(),f=h!==A.isDirty);const D=ie(y(n,i),l);h=!!y(t.dirtyFields,i),D?j(t.dirtyFields,i):R(t.dirtyFields,i,!0),A.dirtyFields=t.dirtyFields,f=f||(v.dirtyFields||V.dirtyFields)&&h!==!D}if(u){const D=y(t.touchedFields,i);D||(R(t.touchedFields,i,u),A.touchedFields=t.touchedFields,f=f||(v.touchedFields||V.touchedFields)&&D!==u)}f&&c&&m.state.next(A)}return f?A:{}},Q=(i,l,u,g)=>{const c=y(t.errors,i),f=(v.isValid||V.isValid)&&G(l)&&t.isValid!==l;if(r.delayError&&u?(b=N(()=>P(i,u)),b(r.delayError)):(clearTimeout(_),b=null,u?R(t.errors,i,u):j(t.errors,i)),(u?!ie(c,u):c)||!$(g)||f){const h={...g,...f&&G(l)?{isValid:l}:{},errors:t.errors,name:i};t={...t,...h},m.state.next(h)}},X=async i=>(U(i,!0),await r.resolver(a,r.context,Er(i||d.mount,s,r.criteriaMode,r.shouldUseNativeValidation))),ee=async i=>{const{errors:l}=await X(i);if(U(i),i)for(const u of i){const g=y(l,u);g?R(t.errors,u,g):j(t.errors,u)}else t.errors=l;return l},Y=async(i,l,u={valid:!0})=>{for(const g in i){const c=i[g];if(c){const{_f:f,...h}=c;if(f){const A=d.array.has(f.name),D=c._f&&kr(c._f);D&&v.validatingFields&&U([f.name],!0);const H=await gt(c,d.disabled,a,I,r.shouldUseNativeValidation&&!l,A);if(D&&v.validatingFields&&U([f.name]),H[f.name]&&(u.valid=!1,l||e.shouldUseNativeValidation))break;!l&&(y(H,f.name)?A?Ir(t.errors,H,f.name):R(t.errors,f.name,H[f.name]):j(t.errors,f.name))}!$(h)&&await Y(h,l,u)}}return u.valid},ue=()=>{for(const i of d.unMount){const l=y(s,i);l&&(l._f.refs?l._f.refs.every(u=>!Ie(u)):!Ie(l._f.ref))&&Ce(i)}d.unMount=new Set},F=(i,l)=>!r.disabled&&(i&&l&&R(a,i,l),!ie($e(),n)),C=(i,l,u)=>Oe(i,d,{...o.mount?a:T(l)?n:J(i)?{[i]:l}:l},u,l),M=i=>Le(y(o.mount?a:n,i,r.shouldUnregister?y(n,i,[]):[])),W=(i,l,u={})=>{const g=y(s,i);let c=l;if(g){const f=g._f;f&&(!f.disabled&&R(a,i,St(l,f)),c=we(f.ref)&&Z(l)?"":l,At(f.ref)?[...f.ref.options].forEach(h=>h.selected=c.includes(h.value)):f.refs?pe(f.ref)?f.refs.forEach(h=>{(!h.defaultChecked||!h.disabled)&&(Array.isArray(c)?h.checked=!!c.find(A=>A===h.value):h.checked=c===h.value||!!c)}):f.refs.forEach(h=>h.checked=h.value===c):We(f.ref)?f.ref.value="":(f.ref.value=c,f.ref.type||m.state.next({name:i,values:B(a)})))}(u.shouldDirty||u.shouldTouch)&&O(i,c,u.shouldTouch,u.shouldDirty,!0),u.shouldValidate&&me(i)},te=(i,l,u)=>{for(const g in l){if(!l.hasOwnProperty(g))return;const c=l[g],f=i+"."+g,h=y(s,f);(d.array.has(i)||q(c)||h&&!h._f)&&!fe(c)?te(f,c,u):W(f,c,u)}},S=(i,l,u={})=>{const g=y(s,i),c=d.array.has(i),f=B(l);R(a,i,f),c?(m.array.next({name:i,values:B(a)}),(v.isDirty||v.dirtyFields||V.isDirty||V.dirtyFields)&&u.shouldDirty&&m.state.next({name:i,dirtyFields:ye(n,a),isDirty:F(i,f)})):g&&!g._f&&!Z(f)?te(i,f,u):W(i,f,u),ft(i,d)?m.state.next({...t,name:i,values:B(a)}):m.state.next({name:o.mount?i:void 0,values:B(a)})},ae=async i=>{o.mount=!0;const l=i.target;let u=l.name,g=!0;const c=y(s,u),f=D=>{g=Number.isNaN(D)||fe(D)&&isNaN(D.getTime())||ie(D,y(a,u,D))},h=ut(r.mode),A=ut(r.reValidateMode);if(c){let D,H;const de=l.type?ot(c._f):Ft(i),le=i.type===Fe.BLUR||i.type===Fe.FOCUS_OUT,Bt=!Cr(c._f)&&!r.resolver&&!y(t.errors,u)&&!c._f.deps||Rr(le,y(t.touchedFields,u),t.isSubmitted,A,h),Re=ft(u,d,le);R(a,u,de),le?(!l||!l.readOnly)&&(c._f.onBlur&&c._f.onBlur(i),b&&b(0)):c._f.onChange&&c._f.onChange(i);const Se=O(u,de,le),jt=!$(Se)||Re;if(!le&&m.state.next({name:u,type:i.type,values:B(a)}),Bt)return(v.isValid||V.isValid)&&(r.mode==="onBlur"?le&&L():le||L()),jt&&m.state.next({name:u,...Re?{}:Se});if(!le&&Re&&m.state.next({...t}),r.resolver){const{errors:et}=await X([u]);if(U([u]),f(de),g){const qt=ct(t.errors,s,u),tt=ct(et,s,qt.name||u);D=tt.error,u=tt.name,H=$(et)}}else U([u],!0),D=(await gt(c,d.disabled,a,I,r.shouldUseNativeValidation))[u],U([u]),f(de),g&&(D?H=!1:(v.isValid||V.isValid)&&(H=await Y(s,!0)));g&&(c._f.deps&&(!Array.isArray(c._f.deps)||c._f.deps.length>0)&&me(c._f.deps),Q(u,H,D,Se))}},ve=(i,l)=>{if(y(t.errors,l)&&i.focus)return i.focus(),1},me=async(i,l={})=>{let u,g;const c=be(i);if(r.resolver){const f=await ee(T(i)?i:c);u=$(f),g=i?!c.some(h=>y(f,h)):u}else i?(g=(await Promise.all(c.map(async f=>{const h=y(s,f);return await Y(h&&h._f?{[f]:h}:h)}))).every(Boolean),!(!g&&!t.isValid)&&L()):g=u=await Y(s);return m.state.next({...!J(i)||(v.isValid||V.isValid)&&u!==t.isValid?{}:{name:i},...r.resolver||!i?{isValid:u}:{},errors:t.errors}),l.shouldFocus&&!g&&Ve(s,ve,i?c:d.mount),g},$e=(i,l)=>{let u={...o.mount?a:n};return l&&(u=Ct(l.dirtyFields?t.dirtyFields:t.touchedFields,u)),T(i)?u:J(i)?y(u,i):i.map(g=>y(u,g))},ze=(i,l)=>({invalid:!!y((l||t).errors,i),isDirty:!!y((l||t).dirtyFields,i),error:y((l||t).errors,i),isValidating:!!y(t.validatingFields,i),isTouched:!!y((l||t).touchedFields,i)}),Ot=i=>{const l=i?be(i):void 0;l?.forEach(u=>j(t.errors,u)),l?l.forEach(u=>{m.state.next({name:u,errors:t.errors})}):m.state.next({errors:{}})},Ke=(i,l,u)=>{const g=(y(s,i,{_f:{}})._f||{}).ref,c=y(t.errors,i)||{},{ref:f,message:h,type:A,...D}=c;R(t.errors,i,{...D,...l,ref:g}),m.state.next({name:i,errors:t.errors,isValid:!1}),u&&u.shouldFocus&&g&&g.focus&&g.focus()},Tt=(i,l)=>z(i)?m.state.subscribe({next:u=>"values"in u&&i(C(void 0,l),u)}):C(i,l,!0),Ye=i=>m.state.subscribe({next:l=>{Dr(i.name,l.name,i.exact)&&Ar(l,i.formState||v,Pt,i.reRenderRoot)&&i.callback({values:{...a},...t,...l,defaultValues:n})}}).unsubscribe,Mt=i=>(o.mount=!0,V={...V,...i.formState},Ye({...i,formState:{...k,...i.formState}})),Ce=(i,l={})=>{for(const u of i?be(i):d.mount)d.mount.delete(u),d.array.delete(u),l.keepValue||(j(s,u),j(a,u)),!l.keepError&&j(t.errors,u),!l.keepDirty&&j(t.dirtyFields,u),!l.keepTouched&&j(t.touchedFields,u),!l.keepIsValidating&&j(t.validatingFields,u),!r.shouldUnregister&&!l.keepDefaultValue&&j(n,u);m.state.next({values:B(a)}),m.state.next({...t,...l.keepDirty?{isDirty:F()}:{}}),!l.keepIsValid&&L()},Ze=({disabled:i,name:l})=>{if(G(i)&&o.mount||i||d.disabled.has(l)){const c=d.disabled.has(l)!==!!i;i?d.disabled.add(l):d.disabled.delete(l),c&&o.mount&&!o.action&&L()}},Ae=(i,l={})=>{let u=y(s,i);const g=G(l.disabled)||G(r.disabled);return R(s,i,{...u||{},_f:{...u&&u._f?u._f:{ref:{name:i}},name:i,mount:!0,...l}}),d.mount.add(i),u?Ze({disabled:G(l.disabled)?l.disabled:r.disabled,name:i}):E(i,!0,l.value),{...g?{disabled:l.disabled||r.disabled}:{},...r.progressive?{required:!!l.required,min:he(l.min),max:he(l.max),minLength:he(l.minLength),maxLength:he(l.maxLength),pattern:he(l.pattern)}:{},name:i,onChange:ae,onBlur:ae,ref:c=>{if(c){Ae(i,l),u=y(s,i);const f=T(c.value)&&c.querySelectorAll&&c.querySelectorAll("input,select,textarea")[0]||c,h=xr(f),A=u._f.refs||[];if(h?A.find(D=>D===f):f===u._f.ref)return;R(s,i,{_f:{...u._f,...h?{refs:[...A.filter(Ie),f,...Array.isArray(y(n,i))?[{}]:[]],ref:{type:f.type,name:i}}:{ref:f}}}),E(i,!1,void 0,f)}else u=y(s,i,{}),u._f&&(u._f.mount=!1),(r.shouldUnregister||l.shouldUnregister)&&!(wt(d.array,i)&&o.action)&&d.unMount.add(i)}}},De=()=>r.shouldFocusError&&Ve(s,ve,d.mount),Nt=i=>{G(i)&&(m.state.next({disabled:i}),Ve(s,(l,u)=>{const g=y(s,u);g&&(l.disabled=g._f.disabled||i,Array.isArray(g._f.refs)&&g._f.refs.forEach(c=>{c.disabled=g._f.disabled||i}))},0,!1))},Ge=(i,l)=>async u=>{let g;u&&(u.preventDefault&&u.preventDefault(),u.persist&&u.persist());let c=B(a);if(m.state.next({isSubmitting:!0}),r.resolver){const{errors:f,values:h}=await X();U(),t.errors=f,c=B(h)}else await Y(s);if(d.disabled.size)for(const f of d.disabled)j(c,f);if(j(t.errors,"root"),$(t.errors)){m.state.next({errors:{}});try{await i(c,u)}catch(f){g=f}}else l&&await l({...t.errors},u),De(),setTimeout(De);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$(t.errors)&&!g,submitCount:t.submitCount+1,errors:t.errors}),g)throw g},Ut=(i,l={})=>{y(s,i)&&(T(l.defaultValue)?S(i,B(y(n,i))):(S(i,l.defaultValue),R(n,i,B(l.defaultValue))),l.keepTouched||j(t.touchedFields,i),l.keepDirty||(j(t.dirtyFields,i),t.isDirty=l.defaultValue?F(i,B(y(n,i))):F()),l.keepError||(j(t.errors,i),v.isValid&&L()),m.state.next({...t}))},Je=(i,l={})=>{const u=i?B(i):n,g=B(u),c=$(i),f=c?n:g;if(l.keepDefaultValues||(n=u),!l.keepValues){if(l.keepDirtyValues){const h=new Set([...d.mount,...Object.keys(ye(n,a))]);for(const A of Array.from(h)){const D=y(t.dirtyFields,A),H=y(a,A),de=y(f,A);D&&!T(H)?R(f,A,H):!D&&!T(de)&&S(A,de)}}else{if(Ue&&T(i))for(const h of d.mount){const A=y(s,h);if(A&&A._f){const D=Array.isArray(A._f.refs)?A._f.refs[0]:A._f.ref;if(we(D)){const H=D.closest("form");if(H){H.reset();break}}}}if(l.keepFieldsRef)for(const h of d.mount)S(h,y(f,h));else s={}}a=r.shouldUnregister?l.keepDefaultValues?B(n):{}:B(f),m.array.next({values:{...f}}),m.state.next({values:{...f}})}d={mount:l.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!v.isValid||!!l.keepIsValid||!!l.keepDirtyValues||!r.shouldUnregister&&!$(f),o.watch=!!r.shouldUnregister,o.keepIsValid=!!l.keepIsValid,o.action=!1,l.keepErrors||(t.errors={}),m.state.next({submitCount:l.keepSubmitCount?t.submitCount:0,isDirty:c?!1:l.keepDirty?t.isDirty:!!(l.keepDefaultValues&&!ie(i,n)),isSubmitted:l.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:c?{}:l.keepDirtyValues?l.keepDefaultValues&&a?ye(n,a):t.dirtyFields:l.keepDefaultValues&&i?ye(n,i):l.keepDirty?t.dirtyFields:{},touchedFields:l.keepTouched?t.touchedFields:{},errors:l.keepErrors?t.errors:{},isSubmitSuccessful:l.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:n})},Qe=(i,l)=>Je(z(i)?i(a):i,{...r.resetOptions,...l}),Lt=(i,l={})=>{const u=y(s,i),g=u&&u._f;if(g){const c=g.refs?g.refs[0]:g.ref;c.focus&&setTimeout(()=>{c.focus(),l.shouldSelect&&z(c.select)&&c.select()})}},Pt=i=>{t={...t,...i}},Xe={control:{register:Ae,unregister:Ce,getFieldState:ze,handleSubmit:Ge,setError:Ke,_subscribe:Ye,_runSchema:X,_updateIsValidating:U,_focusError:De,_getWatch:C,_getDirty:F,_setValid:L,_setFieldArray:w,_setDisabledField:Ze,_setErrors:p,_getFieldArray:M,_reset:Je,_resetDefaultValues:()=>z(r.defaultValues)&&r.defaultValues().then(i=>{Qe(i,r.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:ue,_disableForm:Nt,_subjects:m,_proxyFormState:v,get _fields(){return s},get _formValues(){return a},get _state(){return o},set _state(i){o=i},get _defaultValues(){return n},get _names(){return d},set _names(i){d=i},get _formState(){return t},get _options(){return r},set _options(i){r={...r,...i}}},subscribe:Mt,trigger:me,register:Ae,handleSubmit:Ge,watch:Tt,setValue:S,getValues:$e,reset:Qe,resetField:Ut,clearErrors:Ot,unregister:Ce,setError:Ke,setFocus:Lt,getFieldState:ze};return{...Xe,formControl:Xe}}function $r(e={}){const r=x.useRef(void 0),t=x.useRef(void 0),[s,n]=x.useState({isDirty:!1,isValidating:!1,isLoading:z(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:z(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:s},e.defaultValues&&!z(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:o,...d}=Tr(e);r.current={...d,formState:s}}const a=r.current.control;return a._options=e,je(()=>{const o=a._subscribe({formState:a._proxyFormState,callback:()=>n({...a._formState}),reRenderRoot:!0});return n(d=>({...d,isReady:!0})),a._formState.isReady=!0,o},[a]),x.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),x.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),x.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),x.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),x.useEffect(()=>{if(a._proxyFormState.isDirty){const o=a._getDirty();o!==s.isDirty&&a._subjects.state.next({isDirty:o})}},[a,s.isDirty]),x.useEffect(()=>{var o;e.values&&!ie(e.values,t.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),!((o=a._options.resetOptions)===null||o===void 0)&&o.keepIsValid||a._setValid(),t.current=e.values,n(d=>({...d}))):a._resetDefaultValues()},[a,e.values]),x.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),r.current.formState=x.useMemo(()=>kt(s,a),[a,s]),r.current}const vt=(e,r,t)=>{if(e&&"reportValidity"in e){const s=y(t,r);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},Ne=(e,r)=>{for(const t in r.fields){const s=r.fields[t];s&&s.ref&&"reportValidity"in s.ref?vt(s.ref,t,e):s&&s.refs&&s.refs.forEach(n=>vt(n,t,e))}},mt=(e,r)=>{r.shouldUseNativeValidation&&Ne(e,r);const t={};for(const s in e){const n=y(r.fields,s),a=Object.assign(e[s]||{},{ref:n&&n.ref});if(Mr(r.names||Object.keys(e),s)){const o=Object.assign({},y(t,s));R(o,"root",a),R(t,s,o)}else R(t,s,a)}return t},Mr=(e,r)=>{const t=ht(r);return e.some(s=>ht(s).match(`^${t}\\.\\d+`))};function ht(e){return e.replace(/\]|\[/g,"")}function bt(e,r){try{var t=e()}catch(s){return r(s)}return t&&t.then?t.then(void 0,r):t}function Nr(e,r){for(var t={};e.length;){var s=e[0],n=s.code,a=s.message,o=s.path.join(".");if(!t[o])if("unionErrors"in s){var d=s.unionErrors[0].errors[0];t[o]={message:d.message,type:d.code}}else t[o]={message:a,type:n};if("unionErrors"in s&&s.unionErrors.forEach(function(k){return k.errors.forEach(function(v){return e.push(v)})}),r){var b=t[o].types,_=b&&b[s.code];t[o]=qe(o,r,t,n,_?[].concat(_,s.message):s.message)}e.shift()}return t}function Ur(e,r){for(var t={};e.length;){var s=e[0],n=s.code,a=s.message,o=s.path.join(".");if(!t[o])if(s.code==="invalid_union"&&s.errors.length>0){var d=s.errors[0][0];t[o]={message:d.message,type:d.code}}else t[o]={message:a,type:n};if(s.code==="invalid_union"&&s.errors.forEach(function(k){return k.forEach(function(v){return e.push(v)})}),r){var b=t[o].types,_=b&&b[s.code];t[o]=qe(o,r,t,n,_?[].concat(_,s.message):s.message)}e.shift()}return t}function zr(e,r,t){if(t===void 0&&(t={}),(function(s){return"_def"in s&&typeof s._def=="object"&&"typeName"in s._def})(e))return function(s,n,a){try{return Promise.resolve(bt(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](s,r)).then(function(o){return a.shouldUseNativeValidation&&Ne({},a),{errors:{},values:t.raw?Object.assign({},s):o}})},function(o){if((function(d){return Array.isArray(d?.issues)})(o))return{values:{},errors:mt(Nr(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}};if((function(s){return"_zod"in s&&typeof s._zod=="object"})(e))return function(s,n,a){try{return Promise.resolve(bt(function(){return Promise.resolve((t.mode==="sync"?Xt:er)(e,s,r)).then(function(o){return a.shouldUseNativeValidation&&Ne({},a),{errors:{},values:t.raw?Object.assign({},s):o}})},function(o){if((function(d){return d instanceof tr})(o))return{values:{},errors:mt(Ur(o.issues,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}};throw new Error("Invalid input: not a Zod schema")}function Kr(e){const r=_e.c(8);let t,s;r[0]!==e?({className:t,...s}=e,r[0]=e,r[1]=t,r[2]=s):(t=r[1],s=r[2]);let n;r[3]!==t?(n=xe("group/field-group @container/field-group flex w-full flex-col gap-4 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4",t),r[3]=t,r[4]=n):n=r[4];let a;return r[5]!==s||r[6]!==n?(a=oe.jsx("div",{className:n,"data-slot":"field-group",...s}),r[5]=s,r[6]=n,r[7]=a):a=r[7],a}const Lr=rr("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:"flex-col [&>*]:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start [&>[data-slot=field-label]]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"@md/field-group:flex-row flex-col @md/field-group:items-center @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:[&>*]:w-auto [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:[&>[data-slot=field-label]]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});function Yr(e){const r=_e.c(11);let t,s,n;r[0]!==e?({className:t,orientation:n,...s}=e,r[0]=e,r[1]=t,r[2]=s,r[3]=n):(t=r[1],s=r[2],n=r[3]);const a=n===void 0?"vertical":n;let o;r[4]!==t||r[5]!==a?(o=xe(Lr({orientation:a}),t),r[4]=t,r[5]=a,r[6]=o):o=r[6];let d;return r[7]!==a||r[8]!==s||r[9]!==o?(d=oe.jsx("div",{className:o,"data-orientation":a,"data-slot":"field",role:"group",...s}),r[7]=a,r[8]=s,r[9]=o,r[10]=d):d=r[10],d}function Zr(e){const r=_e.c(8);let t,s;r[0]!==e?({className:t,...s}=e,r[0]=e,r[1]=t,r[2]=s):(t=r[1],s=r[2]);let n;r[3]!==t?(n=xe("flex w-fit items-center gap-2 font-medium text-xs/relaxed leading-snug group-data-[disabled=true]/field:opacity-50",t),r[3]=t,r[4]=n):n=r[4];let a;return r[5]!==s||r[6]!==n?(a=oe.jsx("div",{className:n,"data-slot":"field-label",...s}),r[5]=s,r[6]=n,r[7]=a):a=r[7],a}function Gr(e){const r=_e.c(15);let t,s,n,a;r[0]!==e?({className:s,children:t,errors:n,...a}=e,r[0]=e,r[1]=t,r[2]=s,r[3]=n,r[4]=a):(t=r[1],s=r[2],n=r[3],a=r[4]);let o;e:{if(t){o=t;break e}if(!n?.length){o=null;break e}let k;r[5]!==n?(k=[...new Map(n.map(Br)).values()],r[5]=n,r[6]=k):k=r[6];const v=k;if(v?.length===1){o=v[0]?.message;break e}let V;r[7]!==v?(V=oe.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:v.map(Pr)}),r[7]=v,r[8]=V):V=r[8],o=V}const d=o;if(!d)return null;let b;r[9]!==s?(b=xe("font-normal text-destructive text-xs/relaxed",s),r[9]=s,r[10]=b):b=r[10];let _;return r[11]!==d||r[12]!==a||r[13]!==b?(_=oe.jsx("div",{className:b,"data-slot":"field-error",role:"alert",...a,children:d}),r[11]=d,r[12]=a,r[13]=b,r[14]=_):_=r[14],_}function Pr(e){return e?.message&&oe.jsx("li",{children:e.message},e.message)}function Br(e){return[e?.message,e]}export{Hr as C,Gr as F,Wr as I,zr as a,Zr as b,Yr as c,Kr as d,lr as e,_t as f,fr as g,dr as h,cr as i,xt as j,ir as k,$r as u}; +import{r as p,bP as m,bb as E,aV as y,bQ as w,bg as C,b0 as V,a_ as b,bR as M,bJ as S,c as h,j as v,a as I,bS as k}from"./index.js";let R=(function(t){return t.disabled="data-disabled",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t})({});const N={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},J={valid(t){return t===null?null:t?{[R.valid]:""}:{[R.invalid]:""}}},F=p.createContext({invalid:void 0,name:void 0,validityData:{state:N,errors:[],error:"",value:"",initialValue:null},setValidityData:m,disabled:void 0,touched:!1,setTouched:m,dirty:!1,setDirty:m,filled:!1,setFilled:m,focused:!1,setFocused:m,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:{disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},markedDirtyRef:{current:!1},validation:{getValidationProps:(t=y)=>t,getInputValidationProps:(t=y)=>t,inputRef:{current:null},commit:async()=>{}}});function T(t=!0){const e=p.useContext(F);if(e.setValidityData===m&&!t)throw new Error(E(28));return e}const j=p.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:m,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function L(){return p.useContext(j)}const D=p.createContext({controlId:void 0,registerControlId:m,labelId:void 0,setLabelId:m,messageIds:[],setMessageIds:m,getDescriptionProps:t=>t});function P(){return p.useContext(D)}function O(t,e){return{...t,state:{...t.state,valid:!e&&t.state.valid}}}function Y({controlled:t,default:e,name:a,state:l="value"}){const{current:s}=p.useRef(t!==void 0),[n,i]=p.useState(e),o=s?t:n,d=p.useCallback(f=>{s||i(f)},[]);return[o,d]}function q(t={}){const{id:e,implicit:a=!1,controlRef:l}=t,{controlId:s,registerControlId:n}=P(),i=w(e),o=a?s:void 0,d=C(()=>Symbol("labelable-control")),f=p.useRef(!1),c=p.useRef(e!=null),u=V(()=>{!f.current||n===m||(f.current=!1,n(d.current,void 0))});return b(()=>{if(n===m)return;let r;if(a){const x=l?.current;M(x)&&x.closest("label")!=null?r=e??null:r=o??i}else if(e!=null)c.current=!0,r=e;else if(c.current)r=i;else{u();return}if(r===void 0){u();return}f.current=!0,n(d.current,r)},[e,l,o,n,a,i,d,u]),p.useEffect(()=>u,[u]),s??i}function z(t){const{enabled:e=!0,value:a,id:l,name:s,controlRef:n,commit:i}=t,{formRef:o}=L(),{invalid:d,markedDirtyRef:f,validityData:c,setValidityData:u}=T(),r=V(t.getValue);b(()=>{if(!e)return;let x=a;x===void 0&&(x=r()),c.initialValue===null&&x!==null&&u(g=>({...g,initialValue:x}))},[e,u,a,c.initialValue,r]),b(()=>{!e||!l||o.current.fields.set(l,{getValue:r,name:s,controlRef:n,validityData:O(c,d),validate(x=!0){let g=a;g===void 0&&(g=r()),f.current=!0,x?S.flushSync(()=>i(g)):i(g)}})},[i,n,e,o,r,l,d,f,s,c,a]),b(()=>{const x=o.current.fields;return()=>{l&&x.delete(l)}},[o,l])}function G(t){const e=h.c(8);let a,l;e[0]!==t?({className:a,...l}=t,e[0]=t,e[1]=a,e[2]=l):(a=e[1],l=e[2]);let s;e[3]!==a?(s=I("group/field-group @container/field-group flex w-full flex-col gap-4 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4",a),e[3]=a,e[4]=s):s=e[4];let n;return e[5]!==l||e[6]!==s?(n=v.jsx("div",{className:s,"data-slot":"field-group",...l}),e[5]=l,e[6]=s,e[7]=n):n=e[7],n}const U=k("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:"flex-col [&>*]:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start [&>[data-slot=field-label]]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"@md/field-group:flex-row flex-col @md/field-group:items-center @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:[&>*]:w-auto [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:[&>[data-slot=field-label]]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});function Q(t){const e=h.c(11);let a,l,s;e[0]!==t?({className:a,orientation:s,...l}=t,e[0]=t,e[1]=a,e[2]=l,e[3]=s):(a=e[1],l=e[2],s=e[3]);const n=s===void 0?"vertical":s;let i;e[4]!==a||e[5]!==n?(i=I(U({orientation:n}),a),e[4]=a,e[5]=n,e[6]=i):i=e[6];let o;return e[7]!==n||e[8]!==l||e[9]!==i?(o=v.jsx("div",{className:i,"data-orientation":n,"data-slot":"field",role:"group",...l}),e[7]=n,e[8]=l,e[9]=i,e[10]=o):o=e[10],o}function W(t){const e=h.c(8);let a,l;e[0]!==t?({className:a,...l}=t,e[0]=t,e[1]=a,e[2]=l):(a=e[1],l=e[2]);let s;e[3]!==a?(s=I("flex w-fit items-center gap-2 font-medium text-xs/relaxed leading-snug group-data-[disabled=true]/field:opacity-50",a),e[3]=a,e[4]=s):s=e[4];let n;return e[5]!==l||e[6]!==s?(n=v.jsx("div",{className:s,"data-slot":"field-label",...l}),e[5]=l,e[6]=s,e[7]=n):n=e[7],n}function H(t){const e=h.c(15);let a,l,s,n;e[0]!==t?({className:l,children:a,errors:s,...n}=t,e[0]=t,e[1]=a,e[2]=l,e[3]=s,e[4]=n):(a=e[1],l=e[2],s=e[3],n=e[4]);let i;e:{if(a){i=a;break e}if(!s?.length){i=null;break e}let c;e[5]!==s?(c=[...new Map(s.map($)).values()],e[5]=s,e[6]=c):c=e[6];const u=c;if(u?.length===1){i=u[0]?.message;break e}let r;e[7]!==u?(r=v.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:u.map(_)}),e[7]=u,e[8]=r):r=e[8],i=r}const o=i;if(!o)return null;let d;e[9]!==l?(d=I("font-normal text-destructive text-xs/relaxed",l),e[9]=l,e[10]=d):d=e[10];let f;return e[11]!==o||e[12]!==n||e[13]!==d?(f=v.jsx("div",{className:d,"data-slot":"field-error",role:"alert",...n,children:o}),e[11]=o,e[12]=n,e[13]=d,e[14]=f):f=e[14],f}function _(t){return t?.message&&v.jsx("li",{children:t.message},t.message)}function $(t){return[t?.message,t]}export{H as F,W as a,Q as b,G as c,T as d,q as e,Y as f,z as g,P as h,J as i,L as u}; diff --git a/hive/services/hiveui/frontend/dist/assets/import-key-pair.js b/hive/services/hiveui/frontend/dist/assets/import-key-pair.js index f855db03d..010a65aef 100644 --- a/hive/services/hiveui/frontend/dist/assets/import-key-pair.js +++ b/hive/services/hiveui/frontend/dist/assets/import-key-pair.js @@ -1 +1 @@ -import{c as O,u as $,j as t,B as H}from"./index.js";import{a as q,u as G,I as J,F as Q,b as R,c as z}from"./field.js";import{B as U}from"./back-link.js";import{E as V}from"./error-banner.js";import{P as W}from"./page-heading.js";import{T as X}from"./textarea.js";import{a as Y}from"./ec2.js";import{i as Z}from"./ec22.js";function ce(){const e=O.c(53),s=$(),i=Y();let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g={resolver:q(Z)},e[0]=g):g=e[0];const{handleSubmit:_,register:l,formState:D}=G(g),{errors:r,isSubmitting:M}=D;let A;e[1]!==i||e[2]!==s?(A=async L=>{await i.mutateAsync(L),s({to:"/ec2/describe-key-pairs"})},e[1]=i,e[2]=s,e[3]=A):A=e[3];const v=A;let K,N;e[4]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx(U,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),N=t.jsx(W,{title:"Import Key Pair"}),e[4]=K,e[5]=N):(K=e[4],N=e[5]);let a;e[6]!==i.error?(a=i.error&&t.jsx(V,{error:i.error,msg:"Failed to import key pair"}),e[6]=i.error,e[7]=a):a=e[7];let o;e[8]!==_||e[9]!==v?(o=_(v),e[8]=_,e[9]=v,e[10]=o):o=e[10];let P;e[11]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(R,{children:t.jsx("label",{htmlFor:"keyName",children:"Key Pair Name"})}),e[11]=P):P=e[11];const I=!!r.keyName;let c;e[12]!==l?(c=l("keyName"),e[12]=l,e[13]=c):c=e[13];let n;e[14]!==I||e[15]!==c?(n=t.jsx(J,{"aria-invalid":I,id:"keyName",placeholder:"my-key-pair…",...c}),e[14]=I,e[15]=c,e[16]=n):n=e[16];let m;e[17]!==r.keyName?(m=t.jsx(Q,{errors:[r.keyName]}),e[17]=r.keyName,e[18]=m):m=e[18];let p;e[19]!==n||e[20]!==m?(p=t.jsxs(z,{children:[P,n,m]}),e[19]=n,e[20]=m,e[21]=p):p=e[21];let S,B;e[22]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(R,{children:t.jsx("label",{htmlFor:"publicKeyMaterial",children:"Public Key"})}),B=t.jsx("p",{className:"text-muted-foreground text-xs",id:"publicKey-description",children:"Paste your OpenSSH public key (e.g. the contents of id_rsa.pub)"}),e[22]=S,e[23]=B):(S=e[22],B=e[23]);const E=!!r.publicKeyMaterial;let d;e[24]!==l?(d=l("publicKeyMaterial"),e[24]=l,e[25]=d):d=e[25];let y;e[26]!==E||e[27]!==d?(y=t.jsx(X,{"aria-invalid":E,id:"publicKeyMaterial",placeholder:"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC…",rows:8,...d}),e[26]=E,e[27]=d,e[28]=y):y=e[28];let f;e[29]!==r.publicKeyMaterial?(f=t.jsx(Q,{errors:[r.publicKeyMaterial]}),e[29]=r.publicKeyMaterial,e[30]=f):f=e[30];let u;e[31]!==y||e[32]!==f?(u=t.jsxs(z,{children:[S,B,y,f]}),e[31]=y,e[32]=f,e[33]=u):u=e[33];const C=M||i.isPending;let x;e[34]!==s?(x=()=>s({to:"/ec2/describe-key-pairs"}),e[34]=s,e[35]=x):x=e[35];let b;e[36]!==C||e[37]!==x?(b=t.jsx(H,{disabled:C,onClick:x,type:"button",variant:"outline",children:"Cancel"}),e[36]=C,e[37]=x,e[38]=b):b=e[38];const w=M||i.isPending,T=M||i.isPending?"Importing…":"Import Key Pair";let h;e[39]!==w||e[40]!==T?(h=t.jsx(H,{disabled:w,type:"submit",children:T}),e[39]=w,e[40]=T,e[41]=h):h=e[41];let j;e[42]!==b||e[43]!==h?(j=t.jsxs("div",{className:"flex gap-2",children:[b,h]}),e[42]=b,e[43]=h,e[44]=j):j=e[44];let k;e[45]!==p||e[46]!==u||e[47]!==j||e[48]!==o?(k=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:o,children:[p,u,j]}),e[45]=p,e[46]=u,e[47]=j,e[48]=o,e[49]=k):k=e[49];let F;return e[50]!==k||e[51]!==a?(F=t.jsxs(t.Fragment,{children:[K,N,a,k]}),e[50]=k,e[51]=a,e[52]=F):F=e[52],F}export{ce as component}; +import{c as O,u as $,j as t,B as H}from"./index.js";import{a as q,u as G}from"./zod.js";import{B as J}from"./back-link.js";import{E as U}from"./error-banner.js";import{P as V}from"./page-heading.js";import{F as Q,a as R,b as z}from"./field.js";import{I as W}from"./input.js";import{T as X}from"./textarea.js";import{d as Y}from"./ec2.js";import{i as Z}from"./ec22.js";function me(){const e=O.c(53),s=$(),i=Y();let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g={resolver:q(Z)},e[0]=g):g=e[0];const{handleSubmit:_,register:l,formState:D}=G(g),{errors:r,isSubmitting:M}=D;let A;e[1]!==i||e[2]!==s?(A=async L=>{await i.mutateAsync(L),s({to:"/ec2/describe-key-pairs"})},e[1]=i,e[2]=s,e[3]=A):A=e[3];const v=A;let K,N;e[4]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx(J,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),N=t.jsx(V,{title:"Import Key Pair"}),e[4]=K,e[5]=N):(K=e[4],N=e[5]);let a;e[6]!==i.error?(a=i.error&&t.jsx(U,{error:i.error,msg:"Failed to import key pair"}),e[6]=i.error,e[7]=a):a=e[7];let o;e[8]!==_||e[9]!==v?(o=_(v),e[8]=_,e[9]=v,e[10]=o):o=e[10];let P;e[11]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(R,{children:t.jsx("label",{htmlFor:"keyName",children:"Key Pair Name"})}),e[11]=P):P=e[11];const I=!!r.keyName;let c;e[12]!==l?(c=l("keyName"),e[12]=l,e[13]=c):c=e[13];let n;e[14]!==I||e[15]!==c?(n=t.jsx(W,{"aria-invalid":I,id:"keyName",placeholder:"my-key-pair…",...c}),e[14]=I,e[15]=c,e[16]=n):n=e[16];let m;e[17]!==r.keyName?(m=t.jsx(Q,{errors:[r.keyName]}),e[17]=r.keyName,e[18]=m):m=e[18];let p;e[19]!==n||e[20]!==m?(p=t.jsxs(z,{children:[P,n,m]}),e[19]=n,e[20]=m,e[21]=p):p=e[21];let S,B;e[22]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(R,{children:t.jsx("label",{htmlFor:"publicKeyMaterial",children:"Public Key"})}),B=t.jsx("p",{className:"text-muted-foreground text-xs",id:"publicKey-description",children:"Paste your OpenSSH public key (e.g. the contents of id_rsa.pub)"}),e[22]=S,e[23]=B):(S=e[22],B=e[23]);const E=!!r.publicKeyMaterial;let d;e[24]!==l?(d=l("publicKeyMaterial"),e[24]=l,e[25]=d):d=e[25];let f;e[26]!==E||e[27]!==d?(f=t.jsx(X,{"aria-invalid":E,id:"publicKeyMaterial",placeholder:"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC…",rows:8,...d}),e[26]=E,e[27]=d,e[28]=f):f=e[28];let y;e[29]!==r.publicKeyMaterial?(y=t.jsx(Q,{errors:[r.publicKeyMaterial]}),e[29]=r.publicKeyMaterial,e[30]=y):y=e[30];let u;e[31]!==f||e[32]!==y?(u=t.jsxs(z,{children:[S,B,f,y]}),e[31]=f,e[32]=y,e[33]=u):u=e[33];const C=M||i.isPending;let x;e[34]!==s?(x=()=>s({to:"/ec2/describe-key-pairs"}),e[34]=s,e[35]=x):x=e[35];let b;e[36]!==C||e[37]!==x?(b=t.jsx(H,{disabled:C,onClick:x,type:"button",variant:"outline",children:"Cancel"}),e[36]=C,e[37]=x,e[38]=b):b=e[38];const w=M||i.isPending,T=M||i.isPending?"Importing…":"Import Key Pair";let h;e[39]!==w||e[40]!==T?(h=t.jsx(H,{disabled:w,type:"submit",children:T}),e[39]=w,e[40]=T,e[41]=h):h=e[41];let j;e[42]!==b||e[43]!==h?(j=t.jsxs("div",{className:"flex gap-2",children:[b,h]}),e[42]=b,e[43]=h,e[44]=j):j=e[44];let k;e[45]!==p||e[46]!==u||e[47]!==j||e[48]!==o?(k=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:o,children:[p,u,j]}),e[45]=p,e[46]=u,e[47]=j,e[48]=o,e[49]=k):k=e[49];let F;return e[50]!==k||e[51]!==a?(F=t.jsxs(t.Fragment,{children:[K,N,a,k]}),e[50]=k,e[51]=a,e[52]=F):F=e[52],F}export{me as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index.css b/hive/services/hiveui/frontend/dist/assets/index.css index 540168f6d..11e5aafd0 100644 --- a/hive/services/hiveui/frontend/dist/assets/index.css +++ b/hive/services/hiveui/frontend/dist/assets/index.css @@ -1 +1 @@ -@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-green-100:oklch(96.2% .044 156.743);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-2xl:42rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--radius-sm:calc(var(--radius) - 2px);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-xs:4px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{overscroll-behavior:none;border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring) 50%,transparent)}}*{scrollbar-width:thin}body{background-color:var(--background);width:100%;min-height:100svh;color:var(--foreground);font-family:var(--font-sans),sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.font-mono{font-family:var(--font-mono),monospace}button:not(:disabled),[role=button]:not(:disabled){cursor:pointer}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.\@container\/field-group{container:field-group/inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.end\!{inset-inline-end:var(--spacing)!important}.top-0{top:calc(var(--spacing) * 0)}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-3\.5{top:calc(var(--spacing) * 3.5)}.top-4{top:calc(var(--spacing) * 4)}.right-0{right:calc(var(--spacing) * 0)}.right-1{right:calc(var(--spacing) * 1)}.right-2{right:calc(var(--spacing) * 2)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-1{bottom:calc(var(--spacing) * 1)}.left-0{left:calc(var(--spacing) * 0)}.left-1\/2{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.order-first{order:-9999}.order-last{order:9999}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-3\.5{margin-inline:calc(var(--spacing) * 3.5)}.mx-auto{margin-inline:auto}.-my-2{margin-block:calc(var(--spacing) * -2)}.my-1{margin-block:calc(var(--spacing) * 1)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.field-sizing-content{field-sizing:content}.aspect-square{aspect-ratio:1}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-\[1\.2rem\]{width:1.2rem;height:1.2rem}.size-full{width:100%;height:100%}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-\[calc\(--spacing\(4\.75\)\)\]{height:calc(calc(var(--spacing) * 4.75))}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-\(--available-height\){max-height:var(--available-height)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-\[min\(calc\(--spacing\(72\)---spacing\(9\)\)\,calc\(var\(--available-height\)---spacing\(9\)\)\)\]{max-height:min(calc(calc(var(--spacing) * 72) - calc(var(--spacing) * 9)),calc(var(--available-height) - calc(var(--spacing) * 9)))}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-svh{min-height:100svh}.w-\(--anchor-width\){width:var(--anchor-width)}.w-\(--radix-dropdown-menu-trigger-width\){width:var(--radix-dropdown-menu-trigger-width)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-8{width:calc(var(--spacing) * 8)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\(--available-width\){max-width:var(--available-width)}.max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-5{min-width:calc(var(--spacing) * 5)}.min-w-16{min-width:calc(var(--spacing) * 16)}.min-w-32{min-width:calc(var(--spacing) * 32)}.min-w-56{min-width:calc(var(--spacing) * 56)}.min-w-\[calc\(var\(--anchor-width\)\+--spacing\(7\)\)\]{min-width:calc(var(--anchor-width) + calc(var(--spacing) * 7))}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-\(--transform-origin\){transform-origin:var(--transform-origin)}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[calc\(-50\%-2px\)\]{--tw-translate-y: calc(-50% - 2px) ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-none{translate:none}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-3d{scale:var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)}.rotate-0{rotate:none}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-default{cursor:default}.cursor-text{cursor:text}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)}.resize{resize:both}.resize-none{resize:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing) * 1)}.scroll-py-1{scroll-padding-block:calc(var(--spacing) * 1)}.list-disc{list-style-type:disc}.auto-rows-min{grid-auto-rows:min-content}.grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing) * 0)}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-px{gap:1px}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}:where(.-space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * -2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * -2) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded-\[2px\]{border-radius:2px}.rounded-\[calc\(var\(--radius-sm\)\+2px\)\]{border-radius:calc(var(--radius-sm) + 2px)}.rounded-\[calc\(var\(--radius-sm\)-2px\)\]{border-radius:calc(var(--radius-sm) - 2px)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:calc(var(--radius) + 2px)}.rounded-md{border-radius:var(--radius)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:calc(var(--radius) + 2px);border-top-right-radius:calc(var(--radius) + 2px)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:calc(var(--radius) + 2px);border-bottom-left-radius:calc(var(--radius) + 2px)}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-bs{border-block-start-style:var(--tw-border-style);border-block-start-width:1px}.border-be{border-block-end-style:var(--tw-border-style);border-block-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-border{border-color:var(--border)}.border-destructive{border-color:var(--destructive)}.border-input{border-color:var(--input)}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:#0000}.bg-background{background-color:var(--background)}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\/80{background-color:color-mix(in oklab,var(--color-black) 80%,transparent)}}.bg-border,.bg-border\/50{background-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.bg-border\/50{background-color:color-mix(in oklab,var(--border) 50%,transparent)}}.bg-card{background-color:var(--card)}.bg-destructive,.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.bg-destructive\/10{background-color:color-mix(in oklab,var(--destructive) 10%,transparent)}}.bg-foreground{background-color:var(--foreground)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-green-100{background-color:var(--color-green-100)}.bg-input\/20{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.bg-input\/20{background-color:color-mix(in oklab,var(--input) 20%,transparent)}}.bg-muted{background-color:var(--muted)}.bg-muted-foreground\/10{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/10{background-color:color-mix(in oklab,var(--muted-foreground) 10%,transparent)}}.bg-muted\/20{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/20{background-color:color-mix(in oklab,var(--muted) 20%,transparent)}}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted) 50%,transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-red-100{background-color:var(--color-red-100)}.bg-secondary{background-color:var(--secondary)}.bg-sidebar{background-color:var(--sidebar)}.bg-sidebar-border{background-color:var(--sidebar-border)}.bg-transparent{background-color:#0000}.bg-clip-padding{background-clip:padding-box}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-foreground{fill:var(--foreground)}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-4{padding-block:calc(var(--spacing) * 4)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pl-2{padding-left:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\/relaxed{font-size:var(--text-sm);line-height:var(--leading-relaxed)}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-xs\/relaxed{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.text-\[0\.625rem\]{font-size:.625rem}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-wrap{text-wrap:wrap}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-background{color:var(--background)}.text-card-foreground{color:var(--card-foreground)}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-gray-800{color:var(--color-gray-800)}.text-green-800{color:var(--color-green-800)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-800{color:var(--color-red-800)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab,red,red)){.text-sidebar-foreground\/70{color:color-mix(in oklab,var(--sidebar-foreground) 70%,transparent)}}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.opacity-50{opacity:.5}.bg-blend-color{background-blend-mode:color}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-background{--tw-ring-color:var(--background)}.ring-foreground\/10{--tw-ring-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.ring-foreground\/10{--tw-ring-color:color-mix(in oklab, var(--foreground) 10%, transparent)}}.ring-sidebar-ring{--tw-ring-color:var(--sidebar-ring)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter\!{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)!important}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.ring-inset{--tw-ring-inset:inset}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media(hover:hover){.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-focus\/dropdown-menu-item\:text-accent-foreground:is(:where(.group\/dropdown-menu-item):focus *){color:var(--accent-foreground)}.group-has-data-\[orientation\=horizontal\]\/field\:text-balance:is(:where(.group\/field):has([data-orientation=horizontal]) *){text-wrap:balance}.group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--spacing) * 8)}.group-has-data-\[size\=lg\]\/avatar-group\:size-10:is(:where(.group\/avatar-group):has([data-size=lg]) *){width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.group-has-data-\[size\=sm\]\/avatar-group\:size-6:is(:where(.group\/avatar-group):has([data-size=sm]) *){width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.group-has-data-\[slot\=combobox-clear\]\/input-group\:hidden:is(:where(.group\/input-group):has([data-slot=combobox-clear]) *){display:none}.group-has-\[\>input\]\/input-group\:pt-2:is(:where(.group\/input-group):has(>input) *){padding-top:calc(var(--spacing) * 2)}.group-has-\[\>input\]\/input-group\:pb-2:is(:where(.group\/input-group):has(>input) *){padding-bottom:calc(var(--spacing) * 2)}.group-data-empty\/combobox-content\:flex:is(:where(.group\/combobox-content)[data-empty] *){display:flex}.group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible=icon] *){margin-top:calc(var(--spacing) * -8)}.group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible=icon] *){display:none}.group-data-\[collapsible\=icon\]\:size-8\!:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--spacing) * 8)!important;height:calc(var(--spacing) * 8)!important}.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-collapsible=icon] *){width:var(--sidebar-width-icon)}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)))}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)) + 2px)}.group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible=icon] *){overflow:hidden}.group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 0)!important}.group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 2)!important}.group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible=icon] *){opacity:0}.group-data-\[collapsible\=offExamples\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offExamples] *){right:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offExamples\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offExamples] *){left:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offExamples\]\:w-0:is(:where(.group)[data-collapsible=offExamples] *){width:calc(var(--spacing) * 0)}.group-data-\[collapsible\=offExamples\]\:translate-x-0:is(:where(.group)[data-collapsible=offExamples] *){--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *),.group-data-\[disabled\=true\]\/field\:opacity-50:is(:where(.group\/field)[data-disabled=true] *),.group-data-\[disabled\=true\]\/input-group\:opacity-50:is(:where(.group\/input-group)[data-disabled=true] *){opacity:.5}.group-data-\[side\=left\]\:-right-4:is(:where(.group)[data-side=left] *){right:calc(var(--spacing) * -4)}.group-data-\[side\=left\]\:border-r:is(:where(.group)[data-side=left] *){border-right-style:var(--tw-border-style);border-right-width:1px}.group-data-\[side\=right\]\:left-0:is(:where(.group)[data-side=right] *){left:calc(var(--spacing) * 0)}.group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side=right] *){rotate:180deg}.group-data-\[side\=right\]\:border-l:is(:where(.group)[data-side=right] *){border-left-style:var(--tw-border-style);border-left-width:1px}.group-data-\[size\=default\]\/avatar\:size-2\.5:is(:where(.group\/avatar)[data-size=default] *){width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.group-data-\[size\=lg\]\/avatar\:size-3:is(:where(.group\/avatar)[data-size=lg] *){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.group-data-\[size\=sm\]\/alert-dialog-content\:grid:is(:where(.group\/alert-dialog-content)[data-size=sm] *){display:grid}.group-data-\[size\=sm\]\/alert-dialog-content\:grid-cols-2:is(:where(.group\/alert-dialog-content)[data-size=sm] *){grid-template-columns:repeat(2,minmax(0,1fr))}.group-data-\[size\=sm\]\/avatar\:size-2:is(:where(.group\/avatar)[data-size=sm] *){width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.group-data-\[size\=sm\]\/avatar\:text-xs:is(:where(.group\/avatar)[data-size=sm] *){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.group-data-\[size\=sm\]\/card\:px-3:is(:where(.group\/card)[data-size=sm] *){padding-inline:calc(var(--spacing) * 3)}.group-data-\[variant\=floating\]\:rounded-lg:is(:where(.group)[data-variant=floating] *){border-radius:calc(var(--radius) + 2px)}.group-data-\[variant\=floating\]\:shadow-sm:is(:where(.group)[data-variant=floating] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[variant\=floating\]\:ring-1:is(:where(.group)[data-variant=floating] *){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[variant\=floating\]\:ring-sidebar-border:is(:where(.group)[data-variant=floating] *){--tw-ring-color:var(--sidebar-border)}.group-data-\[variant\=outline\]\/field-group\:-mb-2:is(:where(.group\/field-group)[data-variant=outline] *){margin-bottom:calc(var(--spacing) * -2)}@media(hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--sidebar-accent-foreground)}}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.peer-data-active\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active]~*){color:var(--sidebar-accent-foreground)}.peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.peer\/menu-button)[data-size=default]~*){top:calc(var(--spacing) * 1.5)}.peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.peer\/menu-button)[data-size=lg]~*){top:calc(var(--spacing) * 2.5)}.peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size=sm]~*){top:calc(var(--spacing) * 1)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-6::file-selector-button{height:calc(var(--spacing) * 6)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-xs\/relaxed::file-selector-button{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing) * -2)}.after\:inset-0:after{content:var(--tw-content);inset:calc(var(--spacing) * 0)}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing) * 0)}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.after\:rounded-full:after{content:var(--tw-content);border-radius:3.40282e38px}.after\:border:after{content:var(--tw-content);border-style:var(--tw-border-style);border-width:1px}.after\:border-border:after{content:var(--tw-content);border-color:var(--border)}.after\:mix-blend-darken:after{content:var(--tw-content);mix-blend-mode:darken}.group-data-\[collapsible\=offExamples\]\:after\:left-full:is(:where(.group)[data-collapsible=offExamples] *):after{content:var(--tw-content);left:100%}.last\:mt-0:last-child{margin-top:calc(var(--spacing) * 0)}.focus-within\:border-ring:focus-within{border-color:var(--ring)}.focus-within\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}@media(hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive\/20:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/20:hover{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive) 90%,transparent)}}.hover\:bg-input\/50:hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-input\/50:hover{background-color:color-mix(in oklab,var(--input) 50%,transparent)}}.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:bg-primary\/80:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/80:hover{background-color:color-mix(in oklab,var(--primary) 80%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary) 80%,transparent)}}.hover\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-muted-foreground:hover{color:var(--muted-foreground)}.hover\:text-sidebar-accent-foreground:hover{color:var(--sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-accent)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:group-data-\[collapsible\=offExamples\]\:bg-sidebar:hover:is(:where(.group)[data-collapsible=offExamples] *){background-color:var(--sidebar)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:var(--sidebar-border)}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus,:is(.focus\:\*\*\:text-accent-foreground:focus *),:is(.not-data-\[variant\=destructive\]\:focus\:\*\*\:text-accent-foreground:not([data-variant=destructive]):focus *){color:var(--accent-foreground)}.focus-visible\:border-destructive\/40:focus-visible{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:border-destructive\/40:focus-visible{border-color:color-mix(in oklab,var(--destructive) 40%,transparent)}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-2:focus-visible,.focus-visible\:ring-\[2px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.active\:bg-sidebar-accent:active{background-color:var(--sidebar-accent)}.active\:text-sidebar-accent-foreground:active{color:var(--sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}:where([data-side=left]) .in-data-\[side\=left\]\:cursor-w-resize{cursor:w-resize}:where([data-side=right]) .in-data-\[side\=right\]\:cursor-e-resize{cursor:e-resize}:where([data-slot=combobox-content]) .in-data-\[slot\=combobox-content\]\:focus-within\:border-inherit:focus-within{border-color:inherit}:where([data-slot=combobox-content]) .in-data-\[slot\=combobox-content\]\:focus-within\:ring-0:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-disabled\:pointer-events-none:has(:disabled){pointer-events:none}.has-disabled\:cursor-not-allowed:has(:disabled){cursor:not-allowed}.has-disabled\:opacity-50:has(:disabled){opacity:.5}.has-aria-invalid\:border-destructive:has([aria-invalid=true]){border-color:var(--destructive)}.has-aria-invalid\:ring-2:has([aria-invalid=true]){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.has-data-checked\:bg-primary\/5:has([data-checked]){background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.has-data-checked\:bg-primary\/5:has([data-checked]){background-color:color-mix(in oklab,var(--primary) 5%,transparent)}}.has-data-\[align\=block-end\]\:rounded-md:has([data-align=block-end]),.has-data-\[align\=block-start\]\:rounded-md:has([data-align=block-start]){border-radius:var(--radius)}.has-data-\[icon\=inline-end\]\:pr-1\.5:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-end\]\:pr-2:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 2)}.has-data-\[icon\=inline-start\]\:pl-1\.5:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-start\]\:pl-2:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 2)}.has-data-\[slot\=alert-dialog-media\]\:grid-rows-\[auto_auto_1fr\]:has([data-slot=alert-dialog-media]){grid-template-rows:auto auto 1fr}.has-data-\[slot\=alert-dialog-media\]\:gap-x-4:has([data-slot=alert-dialog-media]){column-gap:calc(var(--spacing) * 4)}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-data-\[slot\=card-description\]\:grid-rows-\[auto_auto\]:has([data-slot=card-description]){grid-template-rows:auto auto}.has-data-\[slot\=combobox-chip\]\:px-1:has([data-slot=combobox-chip]){padding-inline:calc(var(--spacing) * 1)}.has-data-\[slot\=combobox-chip-remove\]\:pr-0:has([data-slot=combobox-chip-remove]){padding-right:calc(var(--spacing) * 0)}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--sidebar)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:border-ring:has([data-slot=input-group-control]:focus-visible){border-color:var(--ring)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-2:has([data-slot=input-group-control]:focus-visible){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/30:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/30:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:border-destructive:has([data-slot][aria-invalid=true]){border-color:var(--destructive)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-2:has([data-slot][aria-invalid=true]){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.has-\[textarea\]\:rounded-md:has(:is(textarea)){border-radius:var(--radius)}.has-\[\>\[data-align\=block-end\]\]\:h-auto:has(>[data-align=block-end]){height:auto}.has-\[\>\[data-align\=block-end\]\]\:flex-col:has(>[data-align=block-end]){flex-direction:column}.has-\[\>\[data-align\=block-start\]\]\:h-auto:has(>[data-align=block-start]){height:auto}.has-\[\>\[data-align\=block-start\]\]\:flex-col:has(>[data-align=block-start]){flex-direction:column}.has-\[\>\[data-slot\=checkbox-group\]\]\:gap-3:has(>[data-slot=checkbox-group]){gap:calc(var(--spacing) * 3)}.has-\[\>\[data-slot\=field-content\]\]\:items-start:has(>[data-slot=field-content]){align-items:flex-start}.has-\[\>\[data-slot\=field\]\]\:w-full:has(>[data-slot=field]){width:100%}.has-\[\>\[data-slot\=field\]\]\:flex-col:has(>[data-slot=field]){flex-direction:column}.has-\[\>\[data-slot\=field\]\]\:rounded-md:has(>[data-slot=field]){border-radius:var(--radius)}.has-\[\>\[data-slot\=field\]\]\:border:has(>[data-slot=field]){border-style:var(--tw-border-style);border-width:1px}.has-\[\>\[data-slot\=radio-group\]\]\:gap-3:has(>[data-slot=radio-group]){gap:calc(var(--spacing) * 3)}.has-\[\>button\]\:mr-\[-0\.275rem\]:has(>button){margin-right:-.275rem}.has-\[\>button\]\:ml-\[-0\.275rem\]:has(>button){margin-left:-.275rem}.has-\[\>img\:first-child\]\:pt-0:has(>img:first-child){padding-top:calc(var(--spacing) * 0)}.has-\[\>kbd\]\:mr-\[-0\.275rem\]:has(>kbd){margin-right:-.275rem}.has-\[\>kbd\]\:ml-\[-0\.275rem\]:has(>kbd){margin-left:-.275rem}.has-\[\>svg\]\:p-0:has(>svg){padding:calc(var(--spacing) * 0)}.has-\[\>textarea\]\:h-auto:has(>textarea){height:auto}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-expanded\:bg-muted[aria-expanded=true]{background-color:var(--muted)}.aria-expanded\:bg-secondary[aria-expanded=true]{background-color:var(--secondary)}.aria-expanded\:text-foreground[aria-expanded=true]{color:var(--foreground)}.aria-expanded\:text-secondary-foreground[aria-expanded=true]{color:var(--secondary-foreground)}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-0[aria-invalid=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.aria-invalid\:ring-2[aria-invalid=true],.aria-invalid\:ring-\[2px\][aria-invalid=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.data-active\:bg-sidebar-accent[data-active]{background-color:var(--sidebar-accent)}.data-active\:font-medium[data-active]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-active\:text-sidebar-accent-foreground[data-active]{color:var(--sidebar-accent-foreground)}.data-closed\:overflow-hidden[data-closed]{overflow:hidden}.data-disabled\:pointer-events-none[data-disabled]{pointer-events:none}.data-disabled\:opacity-50[data-disabled]{opacity:.5}.data-empty\:p-0[data-empty]{padding:calc(var(--spacing) * 0)}.data-ending-style\:opacity-0[data-ending-style]{opacity:0}.data-highlighted\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-highlighted\:text-accent-foreground[data-highlighted],:is(.not-data-\[variant\=destructive\]\:data-highlighted\:\*\*\:text-accent-foreground:not([data-variant=destructive])[data-highlighted] *){color:var(--accent-foreground)}.data-inset\:pl-8[data-inset]{padding-left:calc(var(--spacing) * 8)}.data-open\:bg-accent[data-open]{background-color:var(--accent)}.data-open\:text-accent-foreground[data-open]{color:var(--accent-foreground)}.data-open\:opacity-100[data-open]{opacity:1}@media(hover:hover){.data-open\:hover\:bg-sidebar-accent[data-open]:hover{background-color:var(--sidebar-accent)}.data-open\:hover\:text-sidebar-accent-foreground[data-open]:hover{color:var(--sidebar-accent-foreground)}}.data-placeholder\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-pressed\:bg-transparent[data-pressed]{background-color:#0000}.data-starting-style\:opacity-0[data-starting-style]{opacity:0}.data-\[chips\=true\]\:min-w-\(--anchor-width\)[data-chips=true]{min-width:var(--anchor-width)}.data-\[invalid\=true\]\:text-destructive[data-invalid=true]{color:var(--destructive)}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[orientation\=vertical\]\:self-stretch[data-orientation=vertical]{align-self:stretch}.data-\[side\=bottom\]\:inset-x-0[data-side=bottom]{inset-inline:calc(var(--spacing) * 0)}.data-\[side\=bottom\]\:top-1[data-side=bottom]{top:calc(var(--spacing) * 1)}.data-\[side\=bottom\]\:bottom-0[data-side=bottom]{bottom:calc(var(--spacing) * 0)}.data-\[side\=bottom\]\:h-auto[data-side=bottom]{height:auto}.data-\[side\=bottom\]\:border-t[data-side=bottom]{border-top-style:var(--tw-border-style);border-top-width:1px}.data-\[side\=left\]\:inset-y-0[data-side=left]{inset-block:calc(var(--spacing) * 0)}.data-\[side\=left\]\:top-1\/2\![data-side=left]{top:50%!important}.data-\[side\=left\]\:-right-1[data-side=left]{right:calc(var(--spacing) * -1)}.data-\[side\=left\]\:left-0[data-side=left]{left:calc(var(--spacing) * 0)}.data-\[side\=left\]\:h-full[data-side=left]{height:100%}.data-\[side\=left\]\:w-3\/4[data-side=left]{width:75%}.data-\[side\=left\]\:-translate-y-1\/2[data-side=left]{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:border-r[data-side=left]{border-right-style:var(--tw-border-style);border-right-width:1px}.data-\[side\=right\]\:inset-y-0[data-side=right]{inset-block:calc(var(--spacing) * 0)}.data-\[side\=right\]\:top-1\/2\![data-side=right]{top:50%!important}.data-\[side\=right\]\:right-0[data-side=right]{right:calc(var(--spacing) * 0)}.data-\[side\=right\]\:-left-1[data-side=right]{left:calc(var(--spacing) * -1)}.data-\[side\=right\]\:h-full[data-side=right]{height:100%}.data-\[side\=right\]\:w-3\/4[data-side=right]{width:75%}.data-\[side\=right\]\:-translate-y-1\/2[data-side=right]{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:border-l[data-side=right]{border-left-style:var(--tw-border-style);border-left-width:1px}.data-\[side\=top\]\:inset-x-0[data-side=top]{inset-inline:calc(var(--spacing) * 0)}.data-\[side\=top\]\:top-0[data-side=top]{top:calc(var(--spacing) * 0)}.data-\[side\=top\]\:-bottom-2\.5[data-side=top]{bottom:calc(var(--spacing) * -2.5)}.data-\[side\=top\]\:h-auto[data-side=top]{height:auto}.data-\[side\=top\]\:border-b[data-side=top]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.data-\[size\=default\]\:h-7[data-size=default]{height:calc(var(--spacing) * 7)}.data-\[size\=default\]\:max-w-xs[data-size=default]{max-width:var(--container-xs)}.data-\[size\=lg\]\:size-10[data-size=lg]{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.data-\[size\=md\]\:text-xs[data-size=md]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.data-\[size\=sm\]\:size-6[data-size=sm]{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.data-\[size\=sm\]\:h-6[data-size=sm]{height:calc(var(--spacing) * 6)}.data-\[size\=sm\]\:max-w-64[data-size=sm]{max-width:calc(var(--spacing) * 64)}.data-\[size\=sm\]\:gap-3[data-size=sm]{gap:calc(var(--spacing) * 3)}.data-\[size\=sm\]\:py-3[data-size=sm]{padding-block:calc(var(--spacing) * 3)}.data-\[size\=sm\]\:text-xs[data-size=sm]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}:is(.\*\:data-\[slot\=avatar\]\:ring-2>*)[data-slot=avatar]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(.\*\:data-\[slot\=avatar\]\:ring-background>*)[data-slot=avatar]{--tw-ring-color:var(--background)}.data-\[slot\=checkbox-group\]\:gap-3[data-slot=checkbox-group]{gap:calc(var(--spacing) * 3)}:is(.\*\:data-\[slot\=field\]\:p-2>*)[data-slot=field]{padding:calc(var(--spacing) * 2)}:is(.\*\:data-\[slot\=field-group\]\:gap-4>*)[data-slot=field-group]{gap:calc(var(--spacing) * 4)}:is(.\*\:data-\[slot\=input-group\]\:m-1>*)[data-slot=input-group]{margin:calc(var(--spacing) * 1)}:is(.\*\:data-\[slot\=input-group\]\:mb-0>*)[data-slot=input-group]{margin-bottom:calc(var(--spacing) * 0)}:is(.\*\:data-\[slot\=input-group\]\:h-7>*)[data-slot=input-group]{height:calc(var(--spacing) * 7)}:is(.\*\:data-\[slot\=input-group\]\:border-none>*)[data-slot=input-group]{--tw-border-style:none;border-style:none}:is(.\*\:data-\[slot\=input-group\]\:bg-input\/20>*)[data-slot=input-group]{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){:is(.\*\:data-\[slot\=input-group\]\:bg-input\/20>*)[data-slot=input-group]{background-color:color-mix(in oklab,var(--input) 20%,transparent)}}:is(.\*\:data-\[slot\=input-group\]\:shadow-none>*)[data-slot=input-group]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(.\*\*\:data-\[slot\=kbd\]\:rounded-\[calc\(var\(--radius-sm\)-2px\)\] *)[data-slot=kbd]{border-radius:calc(var(--radius-sm) - 2px)}:is(.\*\*\:data-\[slot\=kbd\]\:rounded-md *)[data-slot=kbd]{border-radius:var(--radius)}:is(.\*\*\:data-\[slot\=kbd\]\:bg-muted-foreground\/10 *)[data-slot=kbd]{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){:is(.\*\*\:data-\[slot\=kbd\]\:bg-muted-foreground\/10 *)[data-slot=kbd]{background-color:color-mix(in oklab,var(--muted-foreground) 10%,transparent)}}:is(.\*\*\:data-\[slot\=kbd\]\:px-1 *)[data-slot=kbd]{padding-inline:calc(var(--spacing) * 1)}:is(.\*\*\:data-\[slot\=kbd\]\:text-\[0\.625rem\] *)[data-slot=kbd]{font-size:.625rem}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-1\.5>*)[data-slot=select-value]{gap:calc(var(--spacing) * 1.5)}.data-\[state\=open\]\:bg-sidebar-accent[data-state=open]{background-color:var(--sidebar-accent)}.data-\[state\=open\]\:text-sidebar-accent-foreground[data-state=open]{color:var(--sidebar-accent-foreground)}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive) 10%,transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}.data-\[variant\=label\]\:text-xs\/relaxed[data-variant=label]{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.data-\[variant\=legend\]\:text-sm[data-variant=legend]{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.nth-last-2\:-mt-1:nth-last-child(2){margin-top:calc(var(--spacing) * -1)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.supports-backdrop-filter\:backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}}@media(min-width:40rem){.sm\:flex{display:flex}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:row-span-2:is(:where(.group\/alert-dialog-content)[data-size=default] *){grid-row:span 2/span 2}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:place-items-start:is(:where(.group\/alert-dialog-content)[data-size=default] *){place-items:start}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:text-left:is(:where(.group\/alert-dialog-content)[data-size=default] *){text-align:left}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:group-has-data-\[slot\=alert-dialog-media\]\/alert-dialog-content\:col-start-2:is(:where(.group\/alert-dialog-content)[data-size=default] *):is(:where(.group\/alert-dialog-content):has([data-slot=alert-dialog-media]) *){grid-column-start:2}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:has-data-\[slot\=alert-dialog-media\]\:grid-rows-\[auto_1fr\]:is(:where(.group\/alert-dialog-content)[data-size=default] *):has([data-slot=alert-dialog-media]){grid-template-rows:auto 1fr}.data-\[side\=left\]\:sm\:max-w-sm[data-side=left],.data-\[side\=right\]\:sm\:max-w-sm[data-side=right],.data-\[size\=default\]\:sm\:max-w-sm[data-size=default]{max-width:var(--container-sm)}}@media(min-width:48rem){.md\:block{display:block}.md\:flex{display:flex}.md\:text-xs\/relaxed{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.md\:text-pretty{text-wrap:pretty}.md\:opacity-0{opacity:0}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing) * 2)}.md\:peer-data-\[variant\=inset\]\:ml-0:is(:where(.peer)[data-variant=inset]~*){margin-left:calc(var(--spacing) * 0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:calc(var(--radius) + 4px)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ml-2:is(:where(.peer)[data-variant=inset]~*):is(:where(.peer)[data-state=collapsed]~*){margin-left:calc(var(--spacing) * 2)}.md\:after\:hidden:after{content:var(--tw-content);display:none}}@container field-group (min-width:28rem){.\@md\/field-group\:flex-row{flex-direction:row}.\@md\/field-group\:items-center{align-items:center}.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:items-start:has(>[data-slot=field-content]){align-items:flex-start}}@media(prefers-color-scheme:dark){.dark\:scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.dark\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.dark\:-rotate-90{rotate:-90deg}.dark\:rotate-0{rotate:none}.dark\:bg-destructive\/20{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/20{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}.dark\:bg-gray-800{background-color:var(--color-gray-800)}.dark\:bg-green-900{background-color:var(--color-green-900)}.dark\:bg-input\/30{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-input\/30{background-color:color-mix(in oklab,var(--input) 30%,transparent)}}.dark\:bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-muted\/30{background-color:color-mix(in oklab,var(--muted) 30%,transparent)}}.dark\:bg-popover{background-color:var(--popover)}.dark\:bg-red-900{background-color:var(--color-red-900)}.dark\:bg-transparent{background-color:#0000}.dark\:text-gray-100{color:var(--color-gray-100)}.dark\:text-green-100{color:var(--color-green-100)}.dark\:text-red-100{color:var(--color-red-100)}.dark\:after\:mix-blend-lighten:after{content:var(--tw-content);mix-blend-mode:lighten}@media(hover:hover){.dark\:hover\:bg-destructive\/30:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-destructive\/30:hover{background-color:color-mix(in oklab,var(--destructive) 30%,transparent)}}.dark\:hover\:bg-input\/50:hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-input\/50:hover{background-color:color-mix(in oklab,var(--input) 50%,transparent)}}.dark\:hover\:bg-muted\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-muted\/50:hover{background-color:color-mix(in oklab,var(--muted) 50%,transparent)}}}.dark\:focus-visible\:ring-destructive\/40:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-destructive\/40:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:has-aria-invalid\:border-destructive\/50:has([aria-invalid=true]){border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:has-aria-invalid\:border-destructive\/50:has([aria-invalid=true]){border-color:color-mix(in oklab,var(--destructive) 50%,transparent)}}.dark\:has-aria-invalid\:ring-destructive\/40:has([aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:has-aria-invalid\:ring-destructive\/40:has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:has-data-checked\:bg-primary\/10:has([data-checked]){background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.dark\:has-data-checked\:bg-primary\/10:has([data-checked]){background-color:color-mix(in oklab,var(--primary) 10%,transparent)}}.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:has([data-slot][aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:aria-invalid\:border-destructive\/50[aria-invalid=true]{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:border-destructive\/50[aria-invalid=true]{border-color:color-mix(in oklab,var(--destructive) 50%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:ring-destructive\/40[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-2\.5 svg:not([class*=size-]){width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5 svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\.border-b\]\:pb-2.border-b{padding-bottom:calc(var(--spacing) * 2)}.\[\.border-b\]\:pb-4.border-b{padding-bottom:calc(var(--spacing) * 4)}.group-data-\[size\=sm\]\/card\:\[\.border-b\]\:pb-3:is(:where(.group\/card)[data-size=sm] *).border-b{padding-bottom:calc(var(--spacing) * 3)}.\[\.border-t\]\:pt-2.border-t{padding-top:calc(var(--spacing) * 2)}.\[\.border-t\]\:pt-4.border-t{padding-top:calc(var(--spacing) * 4)}.group-data-\[size\=sm\]\/card\:\[\.border-t\]\:pt-3:is(:where(.group\/card)[data-size=sm] *).border-t{padding-top:calc(var(--spacing) * 3)}:is(.\*\:\[a\]\:underline>*):is(a){text-decoration-line:underline}:is(.\*\:\[a\]\:underline-offset-3>*):is(a){text-underline-offset:3px}@media(hover:hover){.\[a\]\:hover\:bg-destructive\/20:is(a):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.\[a\]\:hover\:bg-destructive\/20:is(a):hover{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}.\[a\]\:hover\:bg-muted:is(a):hover{background-color:var(--muted)}.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:color-mix(in oklab,var(--primary) 80%,transparent)}}.\[a\]\:hover\:bg-secondary\/80:is(a):hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.\[a\]\:hover\:bg-secondary\/80:is(a):hover{background-color:color-mix(in oklab,var(--secondary) 80%,transparent)}}.\[a\]\:hover\:text-muted-foreground:is(a):hover{color:var(--muted-foreground)}:is(.\*\:\[a\]\:hover\:text-foreground>*):is(a):hover{color:var(--foreground)}}:is(.\*\:\[img\:first-child\]\:rounded-t-lg>*):is(img:first-child){border-top-left-radius:calc(var(--radius) + 2px);border-top-right-radius:calc(var(--radius) + 2px)}:is(.\*\:\[img\:last-child\]\:rounded-b-lg>*):is(img:last-child){border-bottom-right-radius:calc(var(--radius) + 2px);border-bottom-left-radius:calc(var(--radius) + 2px)}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing) * 2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)}:is(.\*\:\[svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4>*):is(svg:not([class*=size-])){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>\*\]\:w-full>*{width:100%}@container field-group (min-width:28rem){.\@md\/field-group\:\[\&\>\*\]\:w-auto>*{width:auto}}.\[\&\>\.sr-only\]\:w-auto>.sr-only{width:auto}.\[\&\>\[data-slot\=field-label\]\]\:flex-auto>[data-slot=field-label]{flex:auto}@container field-group (min-width:28rem){.\@md\/field-group\:\[\&\>\[data-slot\=field-label\]\]\:flex-auto>[data-slot=field-label]{flex:auto}}.has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content])>[role=checkbox],.has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content]) [role=radio]{margin-top:1px}@container field-group (min-width:28rem){.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content])>[role=checkbox],.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content]) [role=radio]{margin-top:1px}}.\[\&\>a\]\:underline>a{text-decoration-line:underline}.\[\&\>a\]\:underline-offset-4>a{text-underline-offset:4px}.\[\&\>a\:hover\]\:text-primary>a:hover{color:var(--primary)}.\[\&\>button\]\:hidden>button{display:none}.has-\[\>\[data-align\=block-end\]\]\:\[\&\>input\]\:pt-3:has(>[data-align=block-end])>input{padding-top:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=block-start\]\]\:\[\&\>input\]\:pb-3:has(>[data-align=block-start])>input{padding-bottom:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=inline-end\]\]\:\[\&\>input\]\:pr-1\.5:has(>[data-align=inline-end])>input{padding-right:calc(var(--spacing) * 1.5)}.has-\[\>\[data-align\=inline-start\]\]\:\[\&\>input\]\:pl-1\.5:has(>[data-align=inline-start])>input{padding-left:calc(var(--spacing) * 1.5)}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-2\.5\!>svg{width:calc(var(--spacing) * 2.5)!important;height:calc(var(--spacing) * 2.5)!important}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--sidebar-accent-foreground)}.group-has-data-\[size\=lg\]\/avatar-group\:\[\&\>svg\]\:size-5:is(:where(.group\/avatar-group):has([data-size=lg]) *)>svg{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.group-has-data-\[size\=sm\]\/avatar-group\:\[\&\>svg\]\:size-3:is(:where(.group\/avatar-group):has([data-size=sm]) *)>svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.group-data-\[size\=default\]\/avatar\:\[\&\>svg\]\:size-2:is(:where(.group\/avatar)[data-size=default] *)>svg,.group-data-\[size\=lg\]\/avatar\:\[\&\>svg\]\:size-2:is(:where(.group\/avatar)[data-size=lg] *)>svg{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.group-data-\[size\=sm\]\/avatar\:\[\&\>svg\]\:hidden:is(:where(.group\/avatar)[data-size=sm] *)>svg{display:none}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3>svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5>svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}[data-side=left][data-collapsible=offExamples] .\[\[data-side\=left\]\[data-collapsible\=offExamples\]_\&\]\:-right-2{right:calc(var(--spacing) * -2)}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=right][data-collapsible=offExamples] .\[\[data-side\=right\]\[data-collapsible\=offExamples\]_\&\]\:-left-2{left:calc(var(--spacing) * -2)}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-variant=legend]+.\[\[data-variant\=legend\]\+\&\]\:-mt-1\.5{margin-top:calc(var(--spacing) * -1.5)}}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(data:font/woff2;base64,d09GMgABAAAAAAfsABQAAAAAEAwAAAeCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoP0hWQVJbBmA/U1RBVIFiJyYAdC9qEQgKhGSEAAsgADCGCAE2AiQDOgQgBYlMB4EUDAcbLQ4onoexrSC/2ZyLAa8p8VHB8/x3Vue+V0hVJalMJg2nx/TCrQXxBeqLjQG7FyM1WEa/X1tEXN7cFz9EJEMmMUz3RihWSSKeQCbcIou0izz/C8v+fq3VfajEa9gDD11CImXS7qL/RJFVzC1qiB6KmKeD6TZdQ6IRGv78dL6uSVVCfgni5mzu7kcgQBgAEAQTQRCoL++STTYybkJxNfQxAAIAGu8OdEB9teW2jh4BpgDqFjAeSEByW3zFP0CBBgNMsMCGEDjgggdhiEAUAeIIED7ABTDUEnkIE9Q9ahFgKttcVhApo4ACB4qobHaccgDfEjFO6aaWUhjMLt2SyIvHKoDqoA4CSUwEIYQCEjhAO9R1G6keDeDZGjNo+AhxOjCEGTr1WeIF3kYBiLAOKvkJSMiKX0VdAyQt3SDJClCkxJCHkCzfqyVTriJZLcolS32JZHUekq2TYNkYtCtjYHMQXSxGjXDz2t/yLWXzDzxz+o3zFwDEaN23F+13pyMdQAEaSKAR9vcGq4A4MTSKCElGW+M7UcY7xqkggITb28ZJhlqc9q2twYKTt0NjixBgYvO9BIihEBLYuOFXQzfIQ7dXGUEEEgFDooBfAzqiQbpJrhiWSuKJCRFKYbHCyJKI2G5GiZbNAvgAu5pc3vwx4G+g3aDkhklABiSz0BICXrYghtYhx/cdJ+44rY2oZ0aMNRFz3VZjb6W33F3gzltqtOCV8tTHSpOeXuItfvr5lCdfzFpqtEitvqdcdGGFd28ZqqC0tPbeChGXgrIlnhSWu/eUso4uKWFLugyDzQJhflY4659+WjQ++6x72WUMv9G8mw6QJl7BVxX5fe/kpUsOvnZwee9uQ0cGXYd0o89XB2748sDSnt8d2VphdOTTgceDVvOds0v9P/s7HPq15aGun/6Vllb56f1dl0t1LejqrNkpdRZsG8TOnM5vkBG5oiVyVGnS8LHps5cfNWJs6qKPfaNSxiQNBUm3cKNWROr0GSur7Za31k1vieq7LH11VF+jXdRIasRKflc7jkobm1Z9te1IyZA0pDkhLR98+H37Zf1c/8at+dB7x+7GfVyTfJMPiYztsnl59Y5l4j+0n1RXlpHnF3Tq7HecmNF/CJodEMAikruxiyJaGLvHOdAfoA+oDvpjBm2b91cHGRZMU9n25xEU0A8fgEEAdKI3Q1iDtc034sug5YVMkE2jsE+BIkwSoQ3gxXMqz9tELp48bd0cFKOKS7xYjEuXBnZP5ia7DyiO/X/YI+PQSbt2uSdqAkWL9nQbV1XB94/+uPfdZz8dnXYFBYrcTl2SIR/ybxJNJPz/Gupb0JaZeens2ekC7EKr8t+Ls/P5VJPYJdHKyqfg2nqU6bhlidzcddQV/7MmecTzJ5VPcKXkNKSEogHjYFx6QZ7rQ+FSe8njaiNuOnXS8H2ScQ619c2mC3VTtauL0rRbXd/CkSOP37FY9Zkjz8+GibYUMOEWF+RdrFS8Ecv1SHOpPUPZGEIpjPvFyU5cXKjd6OXqorTqy9GwRd++HVufPGnVsW+aO3vggKZ18jR9sXaTC1PWTEsVUaK0FkNySbTQDqlm2PfDjZcu4aalnSLKjnOoYQ0nUlqqXcGpPu/4VgV/xU2pAqW4BW3qzhQ8/hFKhV2qE3+BKAtDqBXjfgnVdH4y0wg5tbVNRenNdTWOrenWLcupQdmsbq5b+18piTe/xRdp1xbILxNPJGInm2z6hoB21Lal0i+ePTtd7B45+3XhFJ329evskXm7qurUVREotqSluSo/L29d3qDhI4YOQqWhI4YNvBNfsMHeXKemXrxQfKeuPOGRVayA3JtkJKEgbPp+dXUDluddutRYLFoXGXWX6N3WFaGLbQtRSitVYNacTNSdy7AaG/HSaUEANcBoGXNdcZvZsOqQ1icBDv21/gzAoYPHH/WDW0qNR3QTYKEAEHig6o13NXbND06CQPlRtYjGNnSktRc09k1mAMDvAlDKfQjgy6fssInlfzmNAjKkDxoxHOBLdVRAIVt9j4qo+hA1w9T1aNBNTUOTTNUHLbqokE+UAfJXCIGw/IxCSL5GRUJeR40rL/UxTm4Q08H6MbCs70ObuNyIIXrINHQYInF06UUlevTjbQzTh5upiDMzMMogUtEnjPs/Y7jAHCJeB0GBHh04tC6FiB6ZFB1oArUSIoFoqhzCeAN6lHwm0T4C3VVPWvjpSMXReuWesMEcoqrmgtNBGd2noWeV0hNAz9rFeShNJxHGsPa3HXeKTk8b55hahySYHaYKKFFLpCfN8rsoaJn01CR04Gkc+5k7KVTCmClX8Q10HCrUEkVlSX+XO33oQR9609tJ516H497WSobWs5Up6TLaS10/dessIskgJSLiDlWvHVUywpkQ7hdPZqGyiEF0uVQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/b2kP/IYX8oR2mcFvv2GtBV3JXgd437AQAA)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-greek-wght-normal.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-vietnamese-wght-normal.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--font-sans:"Geist Variable", sans-serif;--font-mono:"JetBrains Mono Variable", monospace;--background:#f4f1ec;--foreground:#1d2930;--card:#f9f8f6;--card-foreground:#1d2930;--popover:#fbfaf9;--popover-foreground:#1d2930;--primary:#305030;--primary-foreground:#f5f3ef;--secondary:#eae5d7;--secondary-foreground:#263740;--muted:#e9e7e2;--muted-foreground:#576b75;--accent:#e7e2da;--accent-foreground:#1d2930;--destructive:#c32222;--destructive-foreground:#fff;--border:#b6c9b6;--input:#dedbd3;--ring:#3e743e;--chart-1:#2e6b2e;--chart-2:#cfa117;--chart-3:#297aa3;--chart-4:#cc8c33;--chart-5:#b82e2e;--radius:.25rem;--sidebar:#f5f3f0;--sidebar-background:#f5f3f0;--sidebar-foreground:#263740;--sidebar-primary:#305030;--sidebar-primary-foreground:#f5f3ef;--sidebar-accent:#e7e2da;--sidebar-accent-foreground:#1d2930;--sidebar-border:#c4d4c4;--sidebar-ring:#3e743e;--tactical-amber:#c2940a;--tactical-amber-dim:#d6b85c;--tactical-green:#267326;--tactical-green-dim:#7ab87a;--tactical-cyan:#24868f;--tactical-cyan-dim:#5eb2ba;--tactical-red:#bd2828;--tactical-olive:#64783a;--scanline-opacity:.015}.dark{--background:#0d1012;--foreground:#e0ddd1;--card:#14181a;--card-foreground:#e0ddd1;--popover:#111517;--popover-foreground:#e0ddd1;--primary:#fa0;--primary-foreground:#0d1012;--secondary:#323922;--secondary-foreground:#c6d2ac;--muted:#202527;--muted-foreground:#819098;--accent:#292f32;--accent-foreground:#ebe8e0;--destructive:#c32222;--destructive-foreground:#fff;--border:#203c32;--input:#292f32;--ring:#ffbf00;--chart-1:#ffbf00;--chart-2:#22c38e;--chart-3:#1aa1e6;--chart-4:#86ac39;--chart-5:#d92626;--sidebar:#111517;--sidebar-background:#111517;--sidebar-foreground:#e0ddd1;--sidebar-primary:#ffbf00;--sidebar-primary-foreground:#0d1012;--sidebar-accent:#292f32;--sidebar-accent-foreground:#ebe8e0;--sidebar-border:#203c32;--sidebar-ring:#ffbf00;--tactical-amber:#ffbf00;--tactical-amber-dim:#a17d12;--tactical-green:#22c38e;--tactical-green-dim:#20604a;--tactical-cyan:#17bfcf;--tactical-cyan-dim:#196066;--tactical-red:#d92626;--tactical-olive:#576b2e;--scanline-opacity:.03}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes pulse{50%{opacity:.5}} +@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-900:oklch(42.1% .095 57.708);--color-green-100:oklch(96.2% .044 156.743);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-800:oklch(27.8% .033 256.848);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-800:oklch(27.4% .006 286.033);--color-black:#000;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-2xl:42rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--radius-sm:calc(var(--radius) - 2px);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-xs:4px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{overscroll-behavior:none;border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring) 50%,transparent)}}*{scrollbar-width:thin}body{background-color:var(--background);width:100%;min-height:100svh;color:var(--foreground);font-family:var(--font-sans),sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.font-mono{font-family:var(--font-mono),monospace}button:not(:disabled),[role=button]:not(:disabled){cursor:pointer}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.\@container\/field-group{container:field-group/inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.end\!{inset-inline-end:var(--spacing)!important}.top-0{top:calc(var(--spacing) * 0)}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-3\.5{top:calc(var(--spacing) * 3.5)}.top-4{top:calc(var(--spacing) * 4)}.right-0{right:calc(var(--spacing) * 0)}.right-1{right:calc(var(--spacing) * 1)}.right-2{right:calc(var(--spacing) * 2)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-1{bottom:calc(var(--spacing) * 1)}.left-0{left:calc(var(--spacing) * 0)}.left-1\/2{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.order-first{order:-9999}.order-last{order:9999}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-3\.5{margin-inline:calc(var(--spacing) * 3.5)}.mx-auto{margin-inline:auto}.-my-2{margin-block:calc(var(--spacing) * -2)}.my-1{margin-block:calc(var(--spacing) * 1)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.field-sizing-content{field-sizing:content}.aspect-square{aspect-ratio:1}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-\[1\.2rem\]{width:1.2rem;height:1.2rem}.size-full{width:100%;height:100%}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-\[calc\(--spacing\(4\.75\)\)\]{height:calc(calc(var(--spacing) * 4.75))}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-\(--available-height\){max-height:var(--available-height)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[min\(calc\(--spacing\(72\)---spacing\(9\)\)\,calc\(var\(--available-height\)---spacing\(9\)\)\)\]{max-height:min(calc(calc(var(--spacing) * 72) - calc(var(--spacing) * 9)),calc(var(--available-height) - calc(var(--spacing) * 9)))}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-svh{min-height:100svh}.w-\(--anchor-width\){width:var(--anchor-width)}.w-\(--radix-dropdown-menu-trigger-width\){width:var(--radix-dropdown-menu-trigger-width)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-8{width:calc(var(--spacing) * 8)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\(--available-width\){max-width:var(--available-width)}.max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-5{min-width:calc(var(--spacing) * 5)}.min-w-16{min-width:calc(var(--spacing) * 16)}.min-w-32{min-width:calc(var(--spacing) * 32)}.min-w-56{min-width:calc(var(--spacing) * 56)}.min-w-\[calc\(var\(--anchor-width\)\+--spacing\(7\)\)\]{min-width:calc(var(--anchor-width) + calc(var(--spacing) * 7))}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-\(--transform-origin\){transform-origin:var(--transform-origin)}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[calc\(-50\%-2px\)\]{--tw-translate-y: calc(-50% - 2px) ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-none{translate:none}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-3d{scale:var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)}.rotate-0{rotate:none}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-default{cursor:default}.cursor-text{cursor:text}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)}.resize{resize:both}.resize-none{resize:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing) * 1)}.scroll-py-1{scroll-padding-block:calc(var(--spacing) * 1)}.list-disc{list-style-type:disc}.auto-rows-min{grid-auto-rows:min-content}.grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing) * 0)}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-px{gap:1px}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}:where(.-space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * -2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * -2) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[calc\(var\(--radius-sm\)\+2px\)\]{border-radius:calc(var(--radius-sm) + 2px)}.rounded-\[calc\(var\(--radius-sm\)-2px\)\]{border-radius:calc(var(--radius-sm) - 2px)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:calc(var(--radius) + 2px)}.rounded-md{border-radius:var(--radius)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:calc(var(--radius) + 2px);border-top-right-radius:calc(var(--radius) + 2px)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:calc(var(--radius) + 2px);border-bottom-left-radius:calc(var(--radius) + 2px)}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-bs{border-block-start-style:var(--tw-border-style);border-block-start-width:1px}.border-be{border-block-end-style:var(--tw-border-style);border-block-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-border{border-color:var(--border)}.border-destructive{border-color:var(--destructive)}.border-input{border-color:var(--input)}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:#0000}.bg-background{background-color:var(--background)}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\/80{background-color:color-mix(in oklab,var(--color-black) 80%,transparent)}}.bg-border,.bg-border\/50{background-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.bg-border\/50{background-color:color-mix(in oklab,var(--border) 50%,transparent)}}.bg-card{background-color:var(--card)}.bg-destructive,.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.bg-destructive\/10{background-color:color-mix(in oklab,var(--destructive) 10%,transparent)}}.bg-foreground{background-color:var(--foreground)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-green-100{background-color:var(--color-green-100)}.bg-input\/20{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.bg-input\/20{background-color:color-mix(in oklab,var(--input) 20%,transparent)}}.bg-muted{background-color:var(--muted)}.bg-muted-foreground\/10{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/10{background-color:color-mix(in oklab,var(--muted-foreground) 10%,transparent)}}.bg-muted\/20{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/20{background-color:color-mix(in oklab,var(--muted) 20%,transparent)}}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted) 50%,transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-red-100{background-color:var(--color-red-100)}.bg-secondary{background-color:var(--secondary)}.bg-sidebar{background-color:var(--sidebar)}.bg-sidebar-border{background-color:var(--sidebar-border)}.bg-transparent{background-color:#0000}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-clip-padding{background-clip:padding-box}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-foreground{fill:var(--foreground)}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-4{padding-block:calc(var(--spacing) * 4)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pl-2{padding-left:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\/relaxed{font-size:var(--text-sm);line-height:var(--leading-relaxed)}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-xs\/relaxed{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.text-\[0\.625rem\]{font-size:.625rem}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-wrap{text-wrap:wrap}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-background{color:var(--background)}.text-card-foreground{color:var(--card-foreground)}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-gray-800{color:var(--color-gray-800)}.text-green-800{color:var(--color-green-800)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-800{color:var(--color-red-800)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab,red,red)){.text-sidebar-foreground\/70{color:color-mix(in oklab,var(--sidebar-foreground) 70%,transparent)}}.text-yellow-800{color:var(--color-yellow-800)}.text-zinc-500{color:var(--color-zinc-500)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.opacity-50{opacity:.5}.bg-blend-color{background-blend-mode:color}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-background{--tw-ring-color:var(--background)}.ring-foreground\/10{--tw-ring-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.ring-foreground\/10{--tw-ring-color:color-mix(in oklab, var(--foreground) 10%, transparent)}}.ring-sidebar-ring{--tw-ring-color:var(--sidebar-ring)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter\!{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)!important}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.ring-inset{--tw-ring-inset:inset}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media(hover:hover){.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-focus\/dropdown-menu-item\:text-accent-foreground:is(:where(.group\/dropdown-menu-item):focus *){color:var(--accent-foreground)}.group-has-data-\[orientation\=horizontal\]\/field\:text-balance:is(:where(.group\/field):has([data-orientation=horizontal]) *){text-wrap:balance}.group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--spacing) * 8)}.group-has-data-\[size\=lg\]\/avatar-group\:size-10:is(:where(.group\/avatar-group):has([data-size=lg]) *){width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.group-has-data-\[size\=sm\]\/avatar-group\:size-6:is(:where(.group\/avatar-group):has([data-size=sm]) *){width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.group-has-data-\[slot\=combobox-clear\]\/input-group\:hidden:is(:where(.group\/input-group):has([data-slot=combobox-clear]) *){display:none}.group-has-\[\>input\]\/input-group\:pt-2:is(:where(.group\/input-group):has(>input) *){padding-top:calc(var(--spacing) * 2)}.group-has-\[\>input\]\/input-group\:pb-2:is(:where(.group\/input-group):has(>input) *){padding-bottom:calc(var(--spacing) * 2)}.group-data-empty\/combobox-content\:flex:is(:where(.group\/combobox-content)[data-empty] *){display:flex}.group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible=icon] *){margin-top:calc(var(--spacing) * -8)}.group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible=icon] *){display:none}.group-data-\[collapsible\=icon\]\:size-8\!:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--spacing) * 8)!important;height:calc(var(--spacing) * 8)!important}.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-collapsible=icon] *){width:var(--sidebar-width-icon)}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)))}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)) + 2px)}.group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible=icon] *){overflow:hidden}.group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 0)!important}.group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 2)!important}.group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible=icon] *){opacity:0}.group-data-\[collapsible\=offExamples\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offExamples] *){right:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offExamples\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offExamples] *){left:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offExamples\]\:w-0:is(:where(.group)[data-collapsible=offExamples] *){width:calc(var(--spacing) * 0)}.group-data-\[collapsible\=offExamples\]\:translate-x-0:is(:where(.group)[data-collapsible=offExamples] *){--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *),.group-data-\[disabled\=true\]\/field\:opacity-50:is(:where(.group\/field)[data-disabled=true] *),.group-data-\[disabled\=true\]\/input-group\:opacity-50:is(:where(.group\/input-group)[data-disabled=true] *){opacity:.5}.group-data-\[side\=left\]\:-right-4:is(:where(.group)[data-side=left] *){right:calc(var(--spacing) * -4)}.group-data-\[side\=left\]\:border-r:is(:where(.group)[data-side=left] *){border-right-style:var(--tw-border-style);border-right-width:1px}.group-data-\[side\=right\]\:left-0:is(:where(.group)[data-side=right] *){left:calc(var(--spacing) * 0)}.group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side=right] *){rotate:180deg}.group-data-\[side\=right\]\:border-l:is(:where(.group)[data-side=right] *){border-left-style:var(--tw-border-style);border-left-width:1px}.group-data-\[size\=default\]\/avatar\:size-2\.5:is(:where(.group\/avatar)[data-size=default] *){width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.group-data-\[size\=lg\]\/avatar\:size-3:is(:where(.group\/avatar)[data-size=lg] *){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.group-data-\[size\=sm\]\/alert-dialog-content\:grid:is(:where(.group\/alert-dialog-content)[data-size=sm] *){display:grid}.group-data-\[size\=sm\]\/alert-dialog-content\:grid-cols-2:is(:where(.group\/alert-dialog-content)[data-size=sm] *){grid-template-columns:repeat(2,minmax(0,1fr))}.group-data-\[size\=sm\]\/avatar\:size-2:is(:where(.group\/avatar)[data-size=sm] *){width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.group-data-\[size\=sm\]\/avatar\:text-xs:is(:where(.group\/avatar)[data-size=sm] *){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.group-data-\[size\=sm\]\/card\:px-3:is(:where(.group\/card)[data-size=sm] *){padding-inline:calc(var(--spacing) * 3)}.group-data-\[variant\=floating\]\:rounded-lg:is(:where(.group)[data-variant=floating] *){border-radius:calc(var(--radius) + 2px)}.group-data-\[variant\=floating\]\:shadow-sm:is(:where(.group)[data-variant=floating] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[variant\=floating\]\:ring-1:is(:where(.group)[data-variant=floating] *){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[variant\=floating\]\:ring-sidebar-border:is(:where(.group)[data-variant=floating] *){--tw-ring-color:var(--sidebar-border)}.group-data-\[variant\=outline\]\/field-group\:-mb-2:is(:where(.group\/field-group)[data-variant=outline] *){margin-bottom:calc(var(--spacing) * -2)}@media(hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--sidebar-accent-foreground)}}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.peer-data-active\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active]~*){color:var(--sidebar-accent-foreground)}.peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.peer\/menu-button)[data-size=default]~*){top:calc(var(--spacing) * 1.5)}.peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.peer\/menu-button)[data-size=lg]~*){top:calc(var(--spacing) * 2.5)}.peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size=sm]~*){top:calc(var(--spacing) * 1)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-6::file-selector-button{height:calc(var(--spacing) * 6)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-xs\/relaxed::file-selector-button{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing) * -2)}.after\:inset-0:after{content:var(--tw-content);inset:calc(var(--spacing) * 0)}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing) * 0)}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.after\:rounded-full:after{content:var(--tw-content);border-radius:3.40282e38px}.after\:border:after{content:var(--tw-content);border-style:var(--tw-border-style);border-width:1px}.after\:border-border:after{content:var(--tw-content);border-color:var(--border)}.after\:mix-blend-darken:after{content:var(--tw-content);mix-blend-mode:darken}.group-data-\[collapsible\=offExamples\]\:after\:left-full:is(:where(.group)[data-collapsible=offExamples] *):after{content:var(--tw-content);left:100%}.last\:mt-0:last-child{margin-top:calc(var(--spacing) * 0)}.focus-within\:border-ring:focus-within{border-color:var(--ring)}.focus-within\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}@media(hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive\/20:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/20:hover{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive) 90%,transparent)}}.hover\:bg-input\/50:hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-input\/50:hover{background-color:color-mix(in oklab,var(--input) 50%,transparent)}}.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:bg-primary\/80:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/80:hover{background-color:color-mix(in oklab,var(--primary) 80%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary) 80%,transparent)}}.hover\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-muted-foreground:hover{color:var(--muted-foreground)}.hover\:text-sidebar-accent-foreground:hover{color:var(--sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-accent)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:group-data-\[collapsible\=offExamples\]\:bg-sidebar:hover:is(:where(.group)[data-collapsible=offExamples] *){background-color:var(--sidebar)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:var(--sidebar-border)}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus,:is(.focus\:\*\*\:text-accent-foreground:focus *),:is(.not-data-\[variant\=destructive\]\:focus\:\*\*\:text-accent-foreground:not([data-variant=destructive]):focus *){color:var(--accent-foreground)}.focus-visible\:border-destructive\/40:focus-visible{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:border-destructive\/40:focus-visible{border-color:color-mix(in oklab,var(--destructive) 40%,transparent)}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-2:focus-visible,.focus-visible\:ring-\[2px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.active\:bg-sidebar-accent:active{background-color:var(--sidebar-accent)}.active\:text-sidebar-accent-foreground:active{color:var(--sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}:where([data-side=left]) .in-data-\[side\=left\]\:cursor-w-resize{cursor:w-resize}:where([data-side=right]) .in-data-\[side\=right\]\:cursor-e-resize{cursor:e-resize}:where([data-slot=combobox-content]) .in-data-\[slot\=combobox-content\]\:focus-within\:border-inherit:focus-within{border-color:inherit}:where([data-slot=combobox-content]) .in-data-\[slot\=combobox-content\]\:focus-within\:ring-0:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-disabled\:pointer-events-none:has(:disabled){pointer-events:none}.has-disabled\:cursor-not-allowed:has(:disabled){cursor:not-allowed}.has-disabled\:opacity-50:has(:disabled){opacity:.5}.has-aria-invalid\:border-destructive:has([aria-invalid=true]){border-color:var(--destructive)}.has-aria-invalid\:ring-2:has([aria-invalid=true]){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.has-data-checked\:bg-primary\/5:has([data-checked]){background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.has-data-checked\:bg-primary\/5:has([data-checked]){background-color:color-mix(in oklab,var(--primary) 5%,transparent)}}.has-data-\[align\=block-end\]\:rounded-md:has([data-align=block-end]),.has-data-\[align\=block-start\]\:rounded-md:has([data-align=block-start]){border-radius:var(--radius)}.has-data-\[icon\=inline-end\]\:pr-1\.5:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-end\]\:pr-2:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 2)}.has-data-\[icon\=inline-start\]\:pl-1\.5:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-start\]\:pl-2:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 2)}.has-data-\[slot\=alert-dialog-media\]\:grid-rows-\[auto_auto_1fr\]:has([data-slot=alert-dialog-media]){grid-template-rows:auto auto 1fr}.has-data-\[slot\=alert-dialog-media\]\:gap-x-4:has([data-slot=alert-dialog-media]){column-gap:calc(var(--spacing) * 4)}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-data-\[slot\=card-description\]\:grid-rows-\[auto_auto\]:has([data-slot=card-description]){grid-template-rows:auto auto}.has-data-\[slot\=combobox-chip\]\:px-1:has([data-slot=combobox-chip]){padding-inline:calc(var(--spacing) * 1)}.has-data-\[slot\=combobox-chip-remove\]\:pr-0:has([data-slot=combobox-chip-remove]){padding-right:calc(var(--spacing) * 0)}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--sidebar)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:border-ring:has([data-slot=input-group-control]:focus-visible){border-color:var(--ring)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-2:has([data-slot=input-group-control]:focus-visible){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/30:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/30:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:border-destructive:has([data-slot][aria-invalid=true]){border-color:var(--destructive)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-2:has([data-slot][aria-invalid=true]){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.has-\[textarea\]\:rounded-md:has(:is(textarea)){border-radius:var(--radius)}.has-\[\>\[data-align\=block-end\]\]\:h-auto:has(>[data-align=block-end]){height:auto}.has-\[\>\[data-align\=block-end\]\]\:flex-col:has(>[data-align=block-end]){flex-direction:column}.has-\[\>\[data-align\=block-start\]\]\:h-auto:has(>[data-align=block-start]){height:auto}.has-\[\>\[data-align\=block-start\]\]\:flex-col:has(>[data-align=block-start]){flex-direction:column}.has-\[\>\[data-slot\=checkbox-group\]\]\:gap-3:has(>[data-slot=checkbox-group]){gap:calc(var(--spacing) * 3)}.has-\[\>\[data-slot\=field-content\]\]\:items-start:has(>[data-slot=field-content]){align-items:flex-start}.has-\[\>\[data-slot\=field\]\]\:w-full:has(>[data-slot=field]){width:100%}.has-\[\>\[data-slot\=field\]\]\:flex-col:has(>[data-slot=field]){flex-direction:column}.has-\[\>\[data-slot\=field\]\]\:rounded-md:has(>[data-slot=field]){border-radius:var(--radius)}.has-\[\>\[data-slot\=field\]\]\:border:has(>[data-slot=field]){border-style:var(--tw-border-style);border-width:1px}.has-\[\>\[data-slot\=radio-group\]\]\:gap-3:has(>[data-slot=radio-group]){gap:calc(var(--spacing) * 3)}.has-\[\>button\]\:mr-\[-0\.275rem\]:has(>button){margin-right:-.275rem}.has-\[\>button\]\:ml-\[-0\.275rem\]:has(>button){margin-left:-.275rem}.has-\[\>img\:first-child\]\:pt-0:has(>img:first-child){padding-top:calc(var(--spacing) * 0)}.has-\[\>kbd\]\:mr-\[-0\.275rem\]:has(>kbd){margin-right:-.275rem}.has-\[\>kbd\]\:ml-\[-0\.275rem\]:has(>kbd){margin-left:-.275rem}.has-\[\>svg\]\:p-0:has(>svg){padding:calc(var(--spacing) * 0)}.has-\[\>textarea\]\:h-auto:has(>textarea){height:auto}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-expanded\:bg-muted[aria-expanded=true]{background-color:var(--muted)}.aria-expanded\:bg-secondary[aria-expanded=true]{background-color:var(--secondary)}.aria-expanded\:text-foreground[aria-expanded=true]{color:var(--foreground)}.aria-expanded\:text-secondary-foreground[aria-expanded=true]{color:var(--secondary-foreground)}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-0[aria-invalid=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.aria-invalid\:ring-2[aria-invalid=true],.aria-invalid\:ring-\[2px\][aria-invalid=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.data-active\:bg-sidebar-accent[data-active]{background-color:var(--sidebar-accent)}.data-active\:font-medium[data-active]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-active\:text-sidebar-accent-foreground[data-active]{color:var(--sidebar-accent-foreground)}.data-closed\:overflow-hidden[data-closed]{overflow:hidden}.data-disabled\:pointer-events-none[data-disabled]{pointer-events:none}.data-disabled\:opacity-50[data-disabled]{opacity:.5}.data-empty\:p-0[data-empty]{padding:calc(var(--spacing) * 0)}.data-ending-style\:opacity-0[data-ending-style]{opacity:0}.data-highlighted\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-highlighted\:text-accent-foreground[data-highlighted],:is(.not-data-\[variant\=destructive\]\:data-highlighted\:\*\*\:text-accent-foreground:not([data-variant=destructive])[data-highlighted] *){color:var(--accent-foreground)}.data-inset\:pl-8[data-inset]{padding-left:calc(var(--spacing) * 8)}.data-open\:bg-accent[data-open]{background-color:var(--accent)}.data-open\:text-accent-foreground[data-open]{color:var(--accent-foreground)}.data-open\:opacity-100[data-open]{opacity:1}@media(hover:hover){.data-open\:hover\:bg-sidebar-accent[data-open]:hover{background-color:var(--sidebar-accent)}.data-open\:hover\:text-sidebar-accent-foreground[data-open]:hover{color:var(--sidebar-accent-foreground)}}.data-placeholder\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-pressed\:bg-transparent[data-pressed]{background-color:#0000}.data-starting-style\:opacity-0[data-starting-style]{opacity:0}.data-\[chips\=true\]\:min-w-\(--anchor-width\)[data-chips=true]{min-width:var(--anchor-width)}.data-\[invalid\=true\]\:text-destructive[data-invalid=true]{color:var(--destructive)}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[orientation\=vertical\]\:self-stretch[data-orientation=vertical]{align-self:stretch}.data-\[side\=bottom\]\:inset-x-0[data-side=bottom]{inset-inline:calc(var(--spacing) * 0)}.data-\[side\=bottom\]\:top-1[data-side=bottom]{top:calc(var(--spacing) * 1)}.data-\[side\=bottom\]\:bottom-0[data-side=bottom]{bottom:calc(var(--spacing) * 0)}.data-\[side\=bottom\]\:h-auto[data-side=bottom]{height:auto}.data-\[side\=bottom\]\:border-t[data-side=bottom]{border-top-style:var(--tw-border-style);border-top-width:1px}.data-\[side\=left\]\:inset-y-0[data-side=left]{inset-block:calc(var(--spacing) * 0)}.data-\[side\=left\]\:top-1\/2\![data-side=left]{top:50%!important}.data-\[side\=left\]\:-right-1[data-side=left]{right:calc(var(--spacing) * -1)}.data-\[side\=left\]\:left-0[data-side=left]{left:calc(var(--spacing) * 0)}.data-\[side\=left\]\:h-full[data-side=left]{height:100%}.data-\[side\=left\]\:w-3\/4[data-side=left]{width:75%}.data-\[side\=left\]\:-translate-y-1\/2[data-side=left]{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:border-r[data-side=left]{border-right-style:var(--tw-border-style);border-right-width:1px}.data-\[side\=right\]\:inset-y-0[data-side=right]{inset-block:calc(var(--spacing) * 0)}.data-\[side\=right\]\:top-1\/2\![data-side=right]{top:50%!important}.data-\[side\=right\]\:right-0[data-side=right]{right:calc(var(--spacing) * 0)}.data-\[side\=right\]\:-left-1[data-side=right]{left:calc(var(--spacing) * -1)}.data-\[side\=right\]\:h-full[data-side=right]{height:100%}.data-\[side\=right\]\:w-3\/4[data-side=right]{width:75%}.data-\[side\=right\]\:-translate-y-1\/2[data-side=right]{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:border-l[data-side=right]{border-left-style:var(--tw-border-style);border-left-width:1px}.data-\[side\=top\]\:inset-x-0[data-side=top]{inset-inline:calc(var(--spacing) * 0)}.data-\[side\=top\]\:top-0[data-side=top]{top:calc(var(--spacing) * 0)}.data-\[side\=top\]\:-bottom-2\.5[data-side=top]{bottom:calc(var(--spacing) * -2.5)}.data-\[side\=top\]\:h-auto[data-side=top]{height:auto}.data-\[side\=top\]\:border-b[data-side=top]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.data-\[size\=default\]\:h-7[data-size=default]{height:calc(var(--spacing) * 7)}.data-\[size\=default\]\:max-w-xs[data-size=default]{max-width:var(--container-xs)}.data-\[size\=lg\]\:size-10[data-size=lg]{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.data-\[size\=md\]\:text-xs[data-size=md]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.data-\[size\=sm\]\:size-6[data-size=sm]{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.data-\[size\=sm\]\:h-6[data-size=sm]{height:calc(var(--spacing) * 6)}.data-\[size\=sm\]\:max-w-64[data-size=sm]{max-width:calc(var(--spacing) * 64)}.data-\[size\=sm\]\:gap-3[data-size=sm]{gap:calc(var(--spacing) * 3)}.data-\[size\=sm\]\:py-3[data-size=sm]{padding-block:calc(var(--spacing) * 3)}.data-\[size\=sm\]\:text-xs[data-size=sm]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}:is(.\*\:data-\[slot\=avatar\]\:ring-2>*)[data-slot=avatar]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(.\*\:data-\[slot\=avatar\]\:ring-background>*)[data-slot=avatar]{--tw-ring-color:var(--background)}.data-\[slot\=checkbox-group\]\:gap-3[data-slot=checkbox-group]{gap:calc(var(--spacing) * 3)}:is(.\*\:data-\[slot\=field\]\:p-2>*)[data-slot=field]{padding:calc(var(--spacing) * 2)}:is(.\*\:data-\[slot\=field-group\]\:gap-4>*)[data-slot=field-group]{gap:calc(var(--spacing) * 4)}:is(.\*\:data-\[slot\=input-group\]\:m-1>*)[data-slot=input-group]{margin:calc(var(--spacing) * 1)}:is(.\*\:data-\[slot\=input-group\]\:mb-0>*)[data-slot=input-group]{margin-bottom:calc(var(--spacing) * 0)}:is(.\*\:data-\[slot\=input-group\]\:h-7>*)[data-slot=input-group]{height:calc(var(--spacing) * 7)}:is(.\*\:data-\[slot\=input-group\]\:border-none>*)[data-slot=input-group]{--tw-border-style:none;border-style:none}:is(.\*\:data-\[slot\=input-group\]\:bg-input\/20>*)[data-slot=input-group]{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){:is(.\*\:data-\[slot\=input-group\]\:bg-input\/20>*)[data-slot=input-group]{background-color:color-mix(in oklab,var(--input) 20%,transparent)}}:is(.\*\:data-\[slot\=input-group\]\:shadow-none>*)[data-slot=input-group]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(.\*\*\:data-\[slot\=kbd\]\:rounded-\[calc\(var\(--radius-sm\)-2px\)\] *)[data-slot=kbd]{border-radius:calc(var(--radius-sm) - 2px)}:is(.\*\*\:data-\[slot\=kbd\]\:rounded-md *)[data-slot=kbd]{border-radius:var(--radius)}:is(.\*\*\:data-\[slot\=kbd\]\:bg-muted-foreground\/10 *)[data-slot=kbd]{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){:is(.\*\*\:data-\[slot\=kbd\]\:bg-muted-foreground\/10 *)[data-slot=kbd]{background-color:color-mix(in oklab,var(--muted-foreground) 10%,transparent)}}:is(.\*\*\:data-\[slot\=kbd\]\:px-1 *)[data-slot=kbd]{padding-inline:calc(var(--spacing) * 1)}:is(.\*\*\:data-\[slot\=kbd\]\:text-\[0\.625rem\] *)[data-slot=kbd]{font-size:.625rem}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-1\.5>*)[data-slot=select-value]{gap:calc(var(--spacing) * 1.5)}.data-\[state\=open\]\:bg-sidebar-accent[data-state=open]{background-color:var(--sidebar-accent)}.data-\[state\=open\]\:text-sidebar-accent-foreground[data-state=open]{color:var(--sidebar-accent-foreground)}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive) 10%,transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}.data-\[variant\=label\]\:text-xs\/relaxed[data-variant=label]{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.data-\[variant\=legend\]\:text-sm[data-variant=legend]{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.nth-last-2\:-mt-1:nth-last-child(2){margin-top:calc(var(--spacing) * -1)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.supports-backdrop-filter\:backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}}@media(min-width:40rem){.sm\:flex{display:flex}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:row-span-2:is(:where(.group\/alert-dialog-content)[data-size=default] *){grid-row:span 2/span 2}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:place-items-start:is(:where(.group\/alert-dialog-content)[data-size=default] *){place-items:start}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:text-left:is(:where(.group\/alert-dialog-content)[data-size=default] *){text-align:left}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:group-has-data-\[slot\=alert-dialog-media\]\/alert-dialog-content\:col-start-2:is(:where(.group\/alert-dialog-content)[data-size=default] *):is(:where(.group\/alert-dialog-content):has([data-slot=alert-dialog-media]) *){grid-column-start:2}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:has-data-\[slot\=alert-dialog-media\]\:grid-rows-\[auto_1fr\]:is(:where(.group\/alert-dialog-content)[data-size=default] *):has([data-slot=alert-dialog-media]){grid-template-rows:auto 1fr}.data-\[side\=left\]\:sm\:max-w-sm[data-side=left],.data-\[side\=right\]\:sm\:max-w-sm[data-side=right],.data-\[size\=default\]\:sm\:max-w-sm[data-size=default]{max-width:var(--container-sm)}}@media(min-width:48rem){.md\:block{display:block}.md\:flex{display:flex}.md\:text-xs\/relaxed{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.md\:text-pretty{text-wrap:pretty}.md\:opacity-0{opacity:0}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing) * 2)}.md\:peer-data-\[variant\=inset\]\:ml-0:is(:where(.peer)[data-variant=inset]~*){margin-left:calc(var(--spacing) * 0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:calc(var(--radius) + 4px)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ml-2:is(:where(.peer)[data-variant=inset]~*):is(:where(.peer)[data-state=collapsed]~*){margin-left:calc(var(--spacing) * 2)}.md\:after\:hidden:after{content:var(--tw-content);display:none}}@container field-group (min-width:28rem){.\@md\/field-group\:flex-row{flex-direction:row}.\@md\/field-group\:items-center{align-items:center}.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:items-start:has(>[data-slot=field-content]){align-items:flex-start}}@media(prefers-color-scheme:dark){.dark\:scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.dark\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.dark\:-rotate-90{rotate:-90deg}.dark\:rotate-0{rotate:none}.dark\:bg-destructive\/20{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/20{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}.dark\:bg-gray-800{background-color:var(--color-gray-800)}.dark\:bg-green-900{background-color:var(--color-green-900)}.dark\:bg-input\/30{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-input\/30{background-color:color-mix(in oklab,var(--input) 30%,transparent)}}.dark\:bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-muted\/30{background-color:color-mix(in oklab,var(--muted) 30%,transparent)}}.dark\:bg-popover{background-color:var(--popover)}.dark\:bg-red-900{background-color:var(--color-red-900)}.dark\:bg-transparent{background-color:#0000}.dark\:bg-yellow-900{background-color:var(--color-yellow-900)}.dark\:bg-zinc-800{background-color:var(--color-zinc-800)}.dark\:text-gray-100{color:var(--color-gray-100)}.dark\:text-green-100{color:var(--color-green-100)}.dark\:text-red-100{color:var(--color-red-100)}.dark\:text-yellow-100{color:var(--color-yellow-100)}.dark\:text-zinc-400{color:var(--color-zinc-400)}.dark\:after\:mix-blend-lighten:after{content:var(--tw-content);mix-blend-mode:lighten}@media(hover:hover){.dark\:hover\:bg-destructive\/30:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-destructive\/30:hover{background-color:color-mix(in oklab,var(--destructive) 30%,transparent)}}.dark\:hover\:bg-input\/50:hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-input\/50:hover{background-color:color-mix(in oklab,var(--input) 50%,transparent)}}.dark\:hover\:bg-muted\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-muted\/50:hover{background-color:color-mix(in oklab,var(--muted) 50%,transparent)}}}.dark\:focus-visible\:ring-destructive\/40:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-destructive\/40:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:has-aria-invalid\:border-destructive\/50:has([aria-invalid=true]){border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:has-aria-invalid\:border-destructive\/50:has([aria-invalid=true]){border-color:color-mix(in oklab,var(--destructive) 50%,transparent)}}.dark\:has-aria-invalid\:ring-destructive\/40:has([aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:has-aria-invalid\:ring-destructive\/40:has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:has-data-checked\:bg-primary\/10:has([data-checked]){background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.dark\:has-data-checked\:bg-primary\/10:has([data-checked]){background-color:color-mix(in oklab,var(--primary) 10%,transparent)}}.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:has([data-slot][aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:aria-invalid\:border-destructive\/50[aria-invalid=true]{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:border-destructive\/50[aria-invalid=true]{border-color:color-mix(in oklab,var(--destructive) 50%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:ring-destructive\/40[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-2\.5 svg:not([class*=size-]){width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5 svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\.border-b\]\:pb-2.border-b{padding-bottom:calc(var(--spacing) * 2)}.\[\.border-b\]\:pb-4.border-b{padding-bottom:calc(var(--spacing) * 4)}.group-data-\[size\=sm\]\/card\:\[\.border-b\]\:pb-3:is(:where(.group\/card)[data-size=sm] *).border-b{padding-bottom:calc(var(--spacing) * 3)}.\[\.border-t\]\:pt-2.border-t{padding-top:calc(var(--spacing) * 2)}.\[\.border-t\]\:pt-4.border-t{padding-top:calc(var(--spacing) * 4)}.group-data-\[size\=sm\]\/card\:\[\.border-t\]\:pt-3:is(:where(.group\/card)[data-size=sm] *).border-t{padding-top:calc(var(--spacing) * 3)}:is(.\*\:\[a\]\:underline>*):is(a){text-decoration-line:underline}:is(.\*\:\[a\]\:underline-offset-3>*):is(a){text-underline-offset:3px}@media(hover:hover){.\[a\]\:hover\:bg-destructive\/20:is(a):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.\[a\]\:hover\:bg-destructive\/20:is(a):hover{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}.\[a\]\:hover\:bg-muted:is(a):hover{background-color:var(--muted)}.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:color-mix(in oklab,var(--primary) 80%,transparent)}}.\[a\]\:hover\:bg-secondary\/80:is(a):hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.\[a\]\:hover\:bg-secondary\/80:is(a):hover{background-color:color-mix(in oklab,var(--secondary) 80%,transparent)}}.\[a\]\:hover\:text-muted-foreground:is(a):hover{color:var(--muted-foreground)}:is(.\*\:\[a\]\:hover\:text-foreground>*):is(a):hover{color:var(--foreground)}}:is(.\*\:\[img\:first-child\]\:rounded-t-lg>*):is(img:first-child){border-top-left-radius:calc(var(--radius) + 2px);border-top-right-radius:calc(var(--radius) + 2px)}:is(.\*\:\[img\:last-child\]\:rounded-b-lg>*):is(img:last-child){border-bottom-right-radius:calc(var(--radius) + 2px);border-bottom-left-radius:calc(var(--radius) + 2px)}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing) * 2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)}:is(.\*\:\[svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4>*):is(svg:not([class*=size-])){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>\*\]\:w-full>*{width:100%}@container field-group (min-width:28rem){.\@md\/field-group\:\[\&\>\*\]\:w-auto>*{width:auto}}.\[\&\>\.sr-only\]\:w-auto>.sr-only{width:auto}.\[\&\>\[data-slot\=field-label\]\]\:flex-auto>[data-slot=field-label]{flex:auto}@container field-group (min-width:28rem){.\@md\/field-group\:\[\&\>\[data-slot\=field-label\]\]\:flex-auto>[data-slot=field-label]{flex:auto}}.has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content])>[role=checkbox],.has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content]) [role=radio]{margin-top:1px}@container field-group (min-width:28rem){.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content])>[role=checkbox],.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content]) [role=radio]{margin-top:1px}}.\[\&\>a\]\:underline>a{text-decoration-line:underline}.\[\&\>a\]\:underline-offset-4>a{text-underline-offset:4px}.\[\&\>a\:hover\]\:text-primary>a:hover{color:var(--primary)}.\[\&\>button\]\:hidden>button{display:none}.has-\[\>\[data-align\=block-end\]\]\:\[\&\>input\]\:pt-3:has(>[data-align=block-end])>input{padding-top:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=block-start\]\]\:\[\&\>input\]\:pb-3:has(>[data-align=block-start])>input{padding-bottom:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=inline-end\]\]\:\[\&\>input\]\:pr-1\.5:has(>[data-align=inline-end])>input{padding-right:calc(var(--spacing) * 1.5)}.has-\[\>\[data-align\=inline-start\]\]\:\[\&\>input\]\:pl-1\.5:has(>[data-align=inline-start])>input{padding-left:calc(var(--spacing) * 1.5)}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-2\.5\!>svg{width:calc(var(--spacing) * 2.5)!important;height:calc(var(--spacing) * 2.5)!important}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--sidebar-accent-foreground)}.group-has-data-\[size\=lg\]\/avatar-group\:\[\&\>svg\]\:size-5:is(:where(.group\/avatar-group):has([data-size=lg]) *)>svg{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.group-has-data-\[size\=sm\]\/avatar-group\:\[\&\>svg\]\:size-3:is(:where(.group\/avatar-group):has([data-size=sm]) *)>svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.group-data-\[size\=default\]\/avatar\:\[\&\>svg\]\:size-2:is(:where(.group\/avatar)[data-size=default] *)>svg,.group-data-\[size\=lg\]\/avatar\:\[\&\>svg\]\:size-2:is(:where(.group\/avatar)[data-size=lg] *)>svg{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.group-data-\[size\=sm\]\/avatar\:\[\&\>svg\]\:hidden:is(:where(.group\/avatar)[data-size=sm] *)>svg{display:none}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3>svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5>svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}[data-side=left][data-collapsible=offExamples] .\[\[data-side\=left\]\[data-collapsible\=offExamples\]_\&\]\:-right-2{right:calc(var(--spacing) * -2)}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=right][data-collapsible=offExamples] .\[\[data-side\=right\]\[data-collapsible\=offExamples\]_\&\]\:-left-2{left:calc(var(--spacing) * -2)}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-variant=legend]+.\[\[data-variant\=legend\]\+\&\]\:-mt-1\.5{margin-top:calc(var(--spacing) * -1.5)}}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(data:font/woff2;base64,d09GMgABAAAAAAfsABQAAAAAEAwAAAeCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoP0hWQVJbBmA/U1RBVIFiJyYAdC9qEQgKhGSEAAsgADCGCAE2AiQDOgQgBYlMB4EUDAcbLQ4onoexrSC/2ZyLAa8p8VHB8/x3Vue+V0hVJalMJg2nx/TCrQXxBeqLjQG7FyM1WEa/X1tEXN7cFz9EJEMmMUz3RihWSSKeQCbcIou0izz/C8v+fq3VfajEa9gDD11CImXS7qL/RJFVzC1qiB6KmKeD6TZdQ6IRGv78dL6uSVVCfgni5mzu7kcgQBgAEAQTQRCoL++STTYybkJxNfQxAAIAGu8OdEB9teW2jh4BpgDqFjAeSEByW3zFP0CBBgNMsMCGEDjgggdhiEAUAeIIED7ABTDUEnkIE9Q9ahFgKttcVhApo4ACB4qobHaccgDfEjFO6aaWUhjMLt2SyIvHKoDqoA4CSUwEIYQCEjhAO9R1G6keDeDZGjNo+AhxOjCEGTr1WeIF3kYBiLAOKvkJSMiKX0VdAyQt3SDJClCkxJCHkCzfqyVTriJZLcolS32JZHUekq2TYNkYtCtjYHMQXSxGjXDz2t/yLWXzDzxz+o3zFwDEaN23F+13pyMdQAEaSKAR9vcGq4A4MTSKCElGW+M7UcY7xqkggITb28ZJhlqc9q2twYKTt0NjixBgYvO9BIihEBLYuOFXQzfIQ7dXGUEEEgFDooBfAzqiQbpJrhiWSuKJCRFKYbHCyJKI2G5GiZbNAvgAu5pc3vwx4G+g3aDkhklABiSz0BICXrYghtYhx/cdJ+44rY2oZ0aMNRFz3VZjb6W33F3gzltqtOCV8tTHSpOeXuItfvr5lCdfzFpqtEitvqdcdGGFd28ZqqC0tPbeChGXgrIlnhSWu/eUso4uKWFLugyDzQJhflY4659+WjQ++6x72WUMv9G8mw6QJl7BVxX5fe/kpUsOvnZwee9uQ0cGXYd0o89XB2748sDSnt8d2VphdOTTgceDVvOds0v9P/s7HPq15aGun/6Vllb56f1dl0t1LejqrNkpdRZsG8TOnM5vkBG5oiVyVGnS8LHps5cfNWJs6qKPfaNSxiQNBUm3cKNWROr0GSur7Za31k1vieq7LH11VF+jXdRIasRKflc7jkobm1Z9te1IyZA0pDkhLR98+H37Zf1c/8at+dB7x+7GfVyTfJMPiYztsnl59Y5l4j+0n1RXlpHnF3Tq7HecmNF/CJodEMAikruxiyJaGLvHOdAfoA+oDvpjBm2b91cHGRZMU9n25xEU0A8fgEEAdKI3Q1iDtc034sug5YVMkE2jsE+BIkwSoQ3gxXMqz9tELp48bd0cFKOKS7xYjEuXBnZP5ia7DyiO/X/YI+PQSbt2uSdqAkWL9nQbV1XB94/+uPfdZz8dnXYFBYrcTl2SIR/ybxJNJPz/Gupb0JaZeens2ekC7EKr8t+Ls/P5VJPYJdHKyqfg2nqU6bhlidzcddQV/7MmecTzJ5VPcKXkNKSEogHjYFx6QZ7rQ+FSe8njaiNuOnXS8H2ScQ619c2mC3VTtauL0rRbXd/CkSOP37FY9Zkjz8+GibYUMOEWF+RdrFS8Ecv1SHOpPUPZGEIpjPvFyU5cXKjd6OXqorTqy9GwRd++HVufPGnVsW+aO3vggKZ18jR9sXaTC1PWTEsVUaK0FkNySbTQDqlm2PfDjZcu4aalnSLKjnOoYQ0nUlqqXcGpPu/4VgV/xU2pAqW4BW3qzhQ8/hFKhV2qE3+BKAtDqBXjfgnVdH4y0wg5tbVNRenNdTWOrenWLcupQdmsbq5b+18piTe/xRdp1xbILxNPJGInm2z6hoB21Lal0i+ePTtd7B45+3XhFJ329evskXm7qurUVREotqSluSo/L29d3qDhI4YOQqWhI4YNvBNfsMHeXKemXrxQfKeuPOGRVayA3JtkJKEgbPp+dXUDluddutRYLFoXGXWX6N3WFaGLbQtRSitVYNacTNSdy7AaG/HSaUEANcBoGXNdcZvZsOqQ1icBDv21/gzAoYPHH/WDW0qNR3QTYKEAEHig6o13NXbND06CQPlRtYjGNnSktRc09k1mAMDvAlDKfQjgy6fssInlfzmNAjKkDxoxHOBLdVRAIVt9j4qo+hA1w9T1aNBNTUOTTNUHLbqokE+UAfJXCIGw/IxCSL5GRUJeR40rL/UxTm4Q08H6MbCs70ObuNyIIXrINHQYInF06UUlevTjbQzTh5upiDMzMMogUtEnjPs/Y7jAHCJeB0GBHh04tC6FiB6ZFB1oArUSIoFoqhzCeAN6lHwm0T4C3VVPWvjpSMXReuWesMEcoqrmgtNBGd2noWeV0hNAz9rFeShNJxHGsPa3HXeKTk8b55hahySYHaYKKFFLpCfN8rsoaJn01CR04Gkc+5k7KVTCmClX8Q10HCrUEkVlSX+XO33oQR9609tJ516H497WSobWs5Up6TLaS10/dessIskgJSLiDlWvHVUywpkQ7hdPZqGyiEF0uVQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/b2kP/IYX8oR2mcFvv2GtBV3JXgd437AQAA)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-greek-wght-normal.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-vietnamese-wght-normal.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--font-sans:"Geist Variable", sans-serif;--font-mono:"JetBrains Mono Variable", monospace;--background:#f4f1ec;--foreground:#1d2930;--card:#f9f8f6;--card-foreground:#1d2930;--popover:#fbfaf9;--popover-foreground:#1d2930;--primary:#305030;--primary-foreground:#f5f3ef;--secondary:#eae5d7;--secondary-foreground:#263740;--muted:#e9e7e2;--muted-foreground:#576b75;--accent:#e7e2da;--accent-foreground:#1d2930;--destructive:#c32222;--destructive-foreground:#fff;--border:#b6c9b6;--input:#dedbd3;--ring:#3e743e;--chart-1:#2e6b2e;--chart-2:#cfa117;--chart-3:#297aa3;--chart-4:#cc8c33;--chart-5:#b82e2e;--radius:.25rem;--sidebar:#f5f3f0;--sidebar-background:#f5f3f0;--sidebar-foreground:#263740;--sidebar-primary:#305030;--sidebar-primary-foreground:#f5f3ef;--sidebar-accent:#e7e2da;--sidebar-accent-foreground:#1d2930;--sidebar-border:#c4d4c4;--sidebar-ring:#3e743e;--tactical-amber:#c2940a;--tactical-amber-dim:#d6b85c;--tactical-green:#267326;--tactical-green-dim:#7ab87a;--tactical-cyan:#24868f;--tactical-cyan-dim:#5eb2ba;--tactical-red:#bd2828;--tactical-olive:#64783a;--scanline-opacity:.015}.dark{--background:#0d1012;--foreground:#e0ddd1;--card:#14181a;--card-foreground:#e0ddd1;--popover:#111517;--popover-foreground:#e0ddd1;--primary:#fa0;--primary-foreground:#0d1012;--secondary:#323922;--secondary-foreground:#c6d2ac;--muted:#202527;--muted-foreground:#819098;--accent:#292f32;--accent-foreground:#ebe8e0;--destructive:#c32222;--destructive-foreground:#fff;--border:#203c32;--input:#292f32;--ring:#ffbf00;--chart-1:#ffbf00;--chart-2:#22c38e;--chart-3:#1aa1e6;--chart-4:#86ac39;--chart-5:#d92626;--sidebar:#111517;--sidebar-background:#111517;--sidebar-foreground:#e0ddd1;--sidebar-primary:#ffbf00;--sidebar-primary-foreground:#0d1012;--sidebar-accent:#292f32;--sidebar-accent-foreground:#ebe8e0;--sidebar-border:#203c32;--sidebar-ring:#ffbf00;--tactical-amber:#ffbf00;--tactical-amber-dim:#a17d12;--tactical-green:#22c38e;--tactical-green-dim:#20604a;--tactical-cyan:#17bfcf;--tactical-cyan-dim:#196066;--tactical-red:#d92626;--tactical-olive:#576b2e;--scanline-opacity:.03}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes pulse{50%{opacity:.5}} diff --git a/hive/services/hiveui/frontend/dist/assets/index.js b/hive/services/hiveui/frontend/dist/assets/index.js index 5eb2838de..e7702f965 100644 --- a/hive/services/hiveui/frontend/dist/assets/index.js +++ b/hive/services/hiveui/frontend/dist/assets/index.js @@ -1,13 +1,13 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login.js","assets/field.js","assets/index3.js","assets/useSuspenseQuery.js","assets/page-heading.js","assets/index4.js","assets/list-card.js","assets/create-bucket.js","assets/back-link.js","assets/error-banner.js","assets/s3.js","assets/create-volume.js","assets/ec2.js","assets/ec22.js","assets/import-key-pair.js","assets/textarea.js","assets/create-key-pair.js","assets/alert-dialog.js","assets/check.js","assets/download.js","assets/run-instances.js","assets/index5.js","assets/upload-button.js","assets/trash-2.js","assets/index6.js","assets/badge.js","assets/index7.js","assets/index8.js","assets/state-badge.js","assets/index9.js","assets/_.js","assets/_id.js","assets/_id2.js","assets/detail-row.js","assets/_id3.js","assets/_id4.js","assets/ami-details.js","assets/_id5.js"])))=>i.map(i=>d[i]); -function YL(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const c of i)if(c.type==="childList")for(const l of c.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const c={};return i.integrity&&(c.integrity=i.integrity),i.referrerPolicy&&(c.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?c.credentials="include":i.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(i){if(i.ep)return;i.ep=!0;const c=n(i);fetch(i.href,c)}})();var Ove=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function LI(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Mve(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Yy={exports:{}},Pu={};var wR;function QL(){if(wR)return Pu;wR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,c){var l=null;if(c!==void 0&&(l=""+c),i.key!==void 0&&(l=""+i.key),"key"in i){c={};for(var f in i)f!=="key"&&(c[f]=i[f])}else c=i;return i=c.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:c}}return Pu.Fragment=t,Pu.jsx=n,Pu.jsxs=n,Pu}var xR;function XL(){return xR||(xR=1,Yy.exports=QL()),Yy.exports}var U=XL(),kp=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},WL={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},JL=class{#e=WL;#n=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},mb=new JL;function eB(e){setTimeout(e,0)}var Pp=typeof window>"u"||"Deno"in globalThis;function _r(){}function tB(e,t){return typeof e=="function"?e(t):e}function nB(e){return typeof e=="number"&&e>=0&&e!==1/0}function sB(e,t){return Math.max(e+(t||0)-Date.now(),0)}function gb(e,t){return typeof e=="function"?e(t):e}function rB(e,t){return typeof e=="function"?e(t):e}function ER(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:c,queryKey:l,stale:f}=e;if(l){if(r){if(t.queryHash!==sv(l,t.options))return!1}else if(!cf(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||i&&i!==t.state.fetchStatus||c&&!c(t))}function RR(e,t){const{exact:n,status:r,predicate:i,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(n){if(af(t.options.mutationKey)!==af(c))return!1}else if(!cf(t.options.mutationKey,c))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function sv(e,t){return(t?.queryKeyHashFn||af)(e)}function af(e){return JSON.stringify(e,(t,n)=>yb(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function cf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>cf(e[n],t[n])):!1}var oB=Object.prototype.hasOwnProperty;function BI(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=CR(e)&&CR(t);if(!r&&!(yb(e)&&yb(t)))return t;const c=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),f=l.length,d=r?new Array(f):{};let h=0;for(let y=0;y{mb.setTimeout(t,e)})}function aB(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?BI(e,t):t}function cB(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function lB(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var rv=Symbol();function $I(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===rv?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function kve(e,t){return typeof e=="function"?e(...t):!!e}function uB(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var fB=class extends kp{#e;#n;#t;constructor(){super(),this.#t=e=>{if(!Pp&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},UI=new fB;function dB(){let e,t;const n=new Promise((i,c)=>{e=i,t=c});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var hB=eB;function pB(){let e=[],t=0,n=f=>{f()},r=f=>{f()},i=hB;const c=f=>{t?e.push(f):i(()=>{n(f)})},l=()=>{const f=e;e=[],f.length&&i(()=>{r(()=>{f.forEach(d=>{n(d)})})})};return{batch:f=>{let d;t++;try{d=f()}finally{t--,t||l()}return d},batchCalls:f=>(...d)=>{c(()=>{f(...d)})},schedule:c,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f},setScheduler:f=>{i=f}}}var is=pB(),mB=class extends kp{#e=!0;#n;#t;constructor(){super(),this.#t=e=>{if(!Pp&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Gh=new mB;function gB(e){return Math.min(1e3*2**e,3e4)}function jI(e){return(e??"online")==="online"?Gh.isOnline():!0}var bb=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function HI(e){let t=!1,n=0,r;const i=dB(),c=()=>i.status!=="pending",l=x=>{if(!c()){const R=new bb(x);b(R),e.onCancel?.(R)}},f=()=>{t=!0},d=()=>{t=!1},h=()=>UI.isFocused()&&(e.networkMode==="always"||Gh.isOnline())&&e.canRun(),y=()=>jI(e.networkMode)&&e.canRun(),g=x=>{c()||(r?.(),i.resolve(x))},b=x=>{c()||(r?.(),i.reject(x))},v=()=>new Promise(x=>{r=R=>{(c()||h())&&x(R)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let x;const R=n===0?e.initialPromise:void 0;try{x=R??e.fn()}catch(C){x=Promise.reject(C)}Promise.resolve(x).then(g).catch(C=>{if(c())return;const I=e.retry??(Pp?0:3),D=e.retryDelay??gB,A=typeof D=="function"?D(n,C):D,B=I===!0||typeof I=="number"&&nh()?void 0:v()).then(()=>{t?b(C):_()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(r?.(),i),cancelRetry:f,continueRetry:d,canStart:y,start:()=>(y()?_():v().then(_),i)}}var FI=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),nB(this.gcTime)&&(this.#e=mb.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Pp?1/0:300*1e3))}clearGcTimeout(){this.#e&&(mb.clearTimeout(this.#e),this.#e=void 0)}},yB=class extends FI{#e;#n;#t;#r;#s;#i;#a;constructor(e){super(),this.#a=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#t=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=IR(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#s?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=IR(this.options);t.data!==void 0&&(this.setState(AR(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(e,t){const n=aB(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#s?.promise;return this.#s?.cancel(e),t?t.then(_r).catch(_r):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>rB(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===rv||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>gb(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!sB(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#s&&(this.#a?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#s?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,r=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},i=()=>{const f=$I(this.options,t),h=(()=>{const y={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(y),y})();return this.#a=!1,this.options.persister?this.options.persister(f,h,this):f(h)},l=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(f),f})();this.options.behavior?.onFetch(l,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#o({type:"fetch",meta:l.fetchOptions?.meta}),this.#s=HI({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:f=>{f instanceof bb&&f.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(f,d)=>{this.#o({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const f=await this.#s.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#t.config.onSuccess?.(f,this),this.#t.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof bb){if(f.silent)return this.#s.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#o({type:"error",error:f}),this.#t.config.onError?.(f,this),this.#t.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...bB(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...AR(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?r:void 0,r;case"error":const i=e.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),is.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:e})})}};function bB(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:jI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function AR(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function IR(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}function OR(e){return{onFetch:(t,n)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},d=0;const h=async()=>{let y=!1;const g=_=>{uB(_,()=>t.signal,()=>y=!0)},b=$I(t.options,t.fetchOptions),v=async(_,x,R)=>{if(y)return Promise.reject();if(x==null&&_.pages.length)return Promise.resolve(_);const I=(()=>{const j={client:t.client,queryKey:t.queryKey,pageParam:x,direction:R?"backward":"forward",meta:t.options.meta};return g(j),j})(),D=await b(I),{maxPages:A}=t.options,B=R?lB:cB;return{pages:B(_.pages,D,A),pageParams:B(_.pageParams,x,A)}};if(i&&c.length){const _=i==="backward",x=_?vB:MR,R={pages:c,pageParams:l},C=x(r,R);f=await v(R,C,_)}else{const _=e??c.length;do{const x=d===0?l[0]??r.initialPageParam:MR(r,f);if(d>0&&x==null)break;f=await v(f,x),d++}while(d<_)}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=h}}}function MR(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function vB(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var SB=class extends FI{#e;#n;#t;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#n=[],this.state=e.state||_B(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#s({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=HI({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(c,l)=>{this.#s({type:"failed",failureCount:c,error:l})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const r=this.state.status==="pending",i=!this.#r.canStart();try{if(r)t();else{this.#s({type:"pending",variables:e,isPaused:i}),this.#t.config.onMutate&&await this.#t.config.onMutate(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#s({type:"pending",context:l,variables:e,isPaused:i})}const c=await this.#r.start();return await this.#t.config.onSuccess?.(c,e,this.state.context,this,n),await this.options.onSuccess?.(c,e,this.state.context,n),await this.#t.config.onSettled?.(c,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(c,null,e,this.state.context,n),this.#s({type:"success",data:c}),c}catch(c){try{await this.#t.config.onError?.(c,e,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onError?.(c,e,this.state.context,n)}catch(l){Promise.reject(l)}try{await this.#t.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,c,e,this.state.context,n)}catch(l){Promise.reject(l)}throw this.#s({type:"error",error:c}),c}finally{this.#t.runNext(this)}}#s(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),is.batch(()=>{this.#n.forEach(n=>{n.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function _B(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wB=class extends kp{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(e,t,n){const r=new SB({client:e,mutationCache:this,mutationId:++this.#t,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=uh(e);if(typeof t=="string"){const n=this.#n.get(t);n?n.push(e):this.#n.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=uh(e);if(typeof t=="string"){const n=this.#n.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#n.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=uh(e);if(typeof t=="string"){const r=this.#n.get(t)?.find(i=>i.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=uh(e);return typeof t=="string"?this.#n.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){is.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>RR(t,n))}findAll(e={}){return this.getAll().filter(t=>RR(e,t))}notify(e){is.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return is.batch(()=>Promise.all(e.map(t=>t.continue().catch(_r))))}};function uh(e){return e.options.scope?.id}var xB=class extends kp{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,i=t.queryHash??sv(r,t);let c=this.get(i);return c||(c=new yB({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(c)),c}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){is.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>ER(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>ER(e,n)):t}notify(e){is.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){is.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){is.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},EB=class{#e;#n;#t;#r;#s;#i;#a;#o;constructor(e={}){this.#e=e.queryCache||new xB,this.#n=e.mutationCache||new wB,this.#t=e.defaultOptions||{},this.#r=new Map,this.#s=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#a=UI.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=Gh.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(gb(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(r.queryHash)?.state.data,l=tB(t,c);if(l!==void 0)return this.#e.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return is.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;is.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return is.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=is.batch(()=>this.#e.findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(_r).catch(_r)}invalidateQueries(e,t={}){return is.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=is.batch(()=>this.#e.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let c=i.fetch(void 0,n);return n.throwOnError||(c=c.catch(_r)),i.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(r).then(_r)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(gb(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_r).catch(_r)}fetchInfiniteQuery(e){return e.behavior=OR(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_r).catch(_r)}ensureInfiniteQueryData(e){return e.behavior=OR(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Gh.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#n}getDefaultOptions(){return this.#t}setDefaultOptions(e){this.#t=e}setQueryDefaults(e,t){this.#r.set(af(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{cf(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#s.set(af(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(r=>{cf(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#t.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=sv(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===rv&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#t.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},Qy={exports:{}},Ve={};var DR;function RB(){if(DR)return Ve;DR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function v(z){return z===null||typeof z!="object"?null:(z=b&&z[b]||z["@@iterator"],typeof z=="function"?z:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,R={};function C(z,ee,ge){this.props=z,this.context=ee,this.refs=R,this.updater=ge||_}C.prototype.isReactComponent={},C.prototype.setState=function(z,ee){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,ee,"setState")},C.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function I(){}I.prototype=C.prototype;function D(z,ee,ge){this.props=z,this.context=ee,this.refs=R,this.updater=ge||_}var A=D.prototype=new I;A.constructor=D,x(A,C.prototype),A.isPureReactComponent=!0;var B=Array.isArray;function j(){}var H={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function Q(z,ee,ge){var be=ge.ref;return{$$typeof:e,type:z,key:ee,ref:be!==void 0?be:null,props:ge}}function ne(z,ee){return Q(z.type,ee,z.props)}function re(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function G(z){var ee={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(ge){return ee[ge]})}var te=/\/+/g;function ue(z,ee){return typeof z=="object"&&z!==null&&z.key!=null?G(""+z.key):ee.toString(36)}function me(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(j,j):(z.status="pending",z.then(function(ee){z.status==="pending"&&(z.status="fulfilled",z.value=ee)},function(ee){z.status==="pending"&&(z.status="rejected",z.reason=ee)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function F(z,ee,ge,be,Ee){var _e=typeof z;(_e==="undefined"||_e==="boolean")&&(z=null);var Ie=!1;if(z===null)Ie=!0;else switch(_e){case"bigint":case"string":case"number":Ie=!0;break;case"object":switch(z.$$typeof){case e:case t:Ie=!0;break;case y:return Ie=z._init,F(Ie(z._payload),ee,ge,be,Ee)}}if(Ie)return Ee=Ee(z),Ie=be===""?"."+ue(z,0):be,B(Ee)?(ge="",Ie!=null&&(ge=Ie.replace(te,"$&/")+"/"),F(Ee,ee,ge,"",function(it){return it})):Ee!=null&&(re(Ee)&&(Ee=ne(Ee,ge+(Ee.key==null||z&&z.key===Ee.key?"":(""+Ee.key).replace(te,"$&/")+"/")+Ie)),ee.push(Ee)),1;Ie=0;var Xe=be===""?".":be+":";if(B(z))for(var Se=0;Se{const t=O.useContext(qI);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},CB=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),U.jsx(qI.Provider,{value:e,children:t}));var qt=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(qt||{});function GI({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:c,checkDirty:l,shallowPropagate:f};function r(h,y,g){const b=y.depsTail;if(b!==void 0&&b.dep===h)return;const v=b!==void 0?b.nextDep:y.deps;if(v!==void 0&&v.dep===h){v.version=g,y.depsTail=v;return}const _=h.subsTail;if(_!==void 0&&_.version===g&&_.sub===y)return;const x=y.depsTail=h.subsTail={version:g,dep:h,sub:y,prevDep:b,nextDep:v,prevSub:_,nextSub:void 0};v!==void 0&&(v.prevDep=x),b!==void 0?b.nextDep=x:y.deps=x,_!==void 0?_.nextSub=x:h.subs=x}function i(h,y=h.sub){const g=h.dep,b=h.prevDep,v=h.nextDep,_=h.nextSub,x=h.prevSub;return v!==void 0?v.prevDep=b:y.depsTail=b,b!==void 0?b.nextDep=v:y.deps=v,_!==void 0?_.prevSub=x:g.subsTail=x,x!==void 0?x.nextSub=_:(g.subs=_)===void 0&&n(g),v}function c(h){let y=h.nextSub,g;e:do{const b=h.sub;let v=b.flags;if(v&60?v&12?v&4?!(v&48)&&d(h,b)?(b.flags=v|40,v&=1):v=0:b.flags=v&-9|32:v=0:b.flags=v|32,v&2&&t(b),v&1){const _=b.subs;if(_!==void 0){const x=(h=_).nextSub;x!==void 0&&(g={value:y,prev:g},y=x);continue}}if((h=y)!==void 0){y=h.nextSub;continue}for(;g!==void 0;)if(h=g.value,g=g.prev,h!==void 0){y=h.nextSub;continue e}break}while(!0)}function l(h,y){let g,b=0,v=!1;e:do{const _=h.dep,x=_.flags;if(y.flags&16)v=!0;else if((x&17)===17){if(e(_)){const R=_.subs;R.nextSub!==void 0&&f(R),v=!0}}else if((x&33)===33){(h.nextSub!==void 0||h.prevSub!==void 0)&&(g={value:h,prev:g}),h=_.deps,y=_,++b;continue}if(!v){const R=h.nextDep;if(R!==void 0){h=R;continue}}for(;b--;){const R=y.subs,C=R.nextSub!==void 0;if(C?(h=g.value,g=g.prev):h=R,v){if(e(y)){C&&f(R),y=h.sub;continue}v=!1}else y.flags&=-33;y=h.sub;const I=h.nextDep;if(I!==void 0){h=I;continue e}}return v}while(!0)}function f(h){do{const y=h.sub,g=y.flags;(g&48)===32&&(y.flags=g|16,(g&6)===2&&t(y))}while((h=h.nextSub)!==void 0)}function d(h,y){let g=y.depsTail;for(;g!==void 0;){if(g===h)return!0;g=g.prevDep}return!1}}let iv=0,_a=0,Yu=0;const bo=[],{link:Pve,unlink:KI,propagate:Nve,checkDirty:TB,shallowPropagate:zve}=GI({update(e){return e.depsTail!==void 0?MB(e):DB(e)},notify(e){let t=Yu,n=t;do if(bo[t++]=e,e.flags&=-3,e=e.subs?.sub,e===void 0||!(e.flags&2))break;while(!0);for(Yu=t;n<--t;){const r=bo[n];bo[n++]=bo[t],bo[t]=r}},unwatched(e){e.flags&1?e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,Np(e)):NB.call(e)}});function AB(){return iv}function IB(){++iv}function OB(){--iv||PB()}function MB(e){e.depsTail=void 0,e.flags=5;try{const t=e.value;return t!==(e.value=e.getter(t))}finally{e.flags&=-5,Np(e)}}function DB(e){return e.flags=1,e.currentValue!==(e.currentValue=e.pendingValue)}function kB(e){const t=e.flags;if(t&16||t&32&&TB(e.deps,e)){e.depsTail=void 0,e.flags=6;try{e.fn()}finally{e.flags&=-5,Np(e)}}else e.flags=2}function PB(){try{for(;_a0)){for(;fh{i.get(),f.current?l.next?.(i._snapshot):f.current=!0});return{unsubscribe:()=>{d.stop()}}},_update(c){const l=Mr,f=Object.is;Mr=i,++Ph,i.depsTail=void 0,n&&(i.flags=qt.Mutable|qt.RecursedCheck);try{const d=i._snapshot,h=typeof c=="function"?c(d):c===void 0&&n?r(d):c;return d===void 0||!f(d,h)?(i._snapshot=h,!0):!1}finally{Mr=l,n&&(i.flags&=~qt.RecursedCheck),Kh(i)}}};return n?(i.flags=qt.Mutable|qt.Dirty,i.get=function(){const c=i.flags;if(c&qt.Dirty||c&qt.Pending&&YI(i.deps,i)){if(i._update()){const l=i.subs;l!==void 0&&NR(l)}}else c&qt.Pending&&(i.flags=c&~qt.Pending);return Mr!==void 0&&PR(i,Mr,Ph),i._snapshot}):i.set=function(c){if(i._update(c)){const l=i.subs;l!==void 0&&(LB(l),NR(l),QI())}},i}function $B(e){const t=()=>{const r=Mr;Mr=n,++Ph,n.depsTail=void 0,n.flags=qt.Watching|qt.RecursedCheck;try{return e()}finally{Mr=r,n.flags&=~qt.RecursedCheck,Kh(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:qt.Watching|qt.RecursedCheck,notify(){const r=this.flags;r&qt.Dirty||r&qt.Pending&&YI(this.deps,this)?t():this.flags=qt.Watching},stop(){this.flags=qt.None,this.depsTail=void 0,Kh(this)}};return t(),n}let UB=class{constructor(t){this.atom=BB(t)}setState(t){this.atom.set(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(ZI(t))}};function jB(e){try{IB(),e()}finally{OB(),QI()}}const ki="__TSR_index",zR="popstate",LR="beforeunload";function HB(e){let t=e.getLocation();const n=new Set,r=l=>{t=e.getLocation(),n.forEach(f=>f({location:t,action:l}))},i=l=>{e.notifyOnIndexChange??!0?r(l):t=e.getLocation()},c=async({task:l,navigateOpts:f,...d})=>{if(f?.ignoreBlocker??!1){l();return}const y=e.getBlockers?.()??[],g=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&y.length&&g)for(const b of y){const v=Zh(d.path,d.state);if(await b.blockerFn({currentLocation:t,nextLocation:v,action:d.type})){e.onBlocked?.();return}}l()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:l=>(n.add(l),()=>{n.delete(l)}),push:(l,f,d)=>{const h=t.state[ki];f=BR(h+1,f),c({task:()=>{e.pushState(l,f),r({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:l,state:f})},replace:(l,f,d)=>{const h=t.state[ki];f=BR(h,f),c({task:()=>{e.replaceState(l,f),r({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:l,state:f})},go:(l,f)=>{c({task:()=>{e.go(l),i({type:"GO",index:l})},navigateOpts:f,type:"GO"})},back:l=>{c({task:()=>{e.back(l?.ignoreBlocker??!1),i({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{c({task:()=>{e.forward(l?.ignoreBlocker??!1),i({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>t.state[ki]!==0,createHref:l=>e.createHref(l),block:l=>{if(!e.setBlockers)return()=>{};const f=e.getBlockers?.()??[];return e.setBlockers([...f,l]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(h=>h!==l))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function BR(e,t){t||(t={});const n=av();return{...t,key:n,__TSR_key:n,[ki]:e}}function FB(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let i=[];const c=()=>i,l=k=>i=k,f=(k=>k),d=(()=>Zh(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const k=av();t.history.replaceState({[ki]:0,key:k,__TSR_key:k},"")}let h=d(),y,g=!1,b=!1,v=!1,_=!1;const x=()=>h;let R,C;const I=()=>{R&&(H._ignoreSubscribers=!0,(R.isPush?t.history.pushState:t.history.replaceState)(R.state,"",R.href),H._ignoreSubscribers=!1,R=void 0,C=void 0,y=void 0)},D=(k,Q,ne)=>{const re=f(Q);C||(y=h),h=Zh(Q,ne),R={href:re,state:ne,isPush:R?.isPush||k==="push"},C||(C=Promise.resolve().then(()=>I()))},A=k=>{h=d(),H.notify({type:k})},B=async()=>{if(b){b=!1;return}const k=d(),Q=k.state[ki]-h.state[ki],ne=Q===1,re=Q===-1,G=!ne&&!re||g;g=!1;const te=G?"GO":re?"BACK":"FORWARD",ue=G?{type:"GO",index:Q}:{type:re?"BACK":"FORWARD"};if(v)v=!1;else{const me=c();if(typeof document<"u"&&me.length){for(const F of me)if(await F.blockerFn({currentLocation:h,nextLocation:k,action:te})){b=!0,t.history.go(1),H.notify(ue);return}}}h=d(),H.notify(ue)},j=k=>{if(_){_=!1;return}let Q=!1;const ne=c();if(typeof document<"u"&&ne.length)for(const re of ne){const G=re.enableBeforeUnload??!0;if(G===!0){Q=!0;break}if(typeof G=="function"&&G()===!0){Q=!0;break}}if(Q)return k.preventDefault(),k.returnValue=""},H=HB({getLocation:x,getLength:()=>t.history.length,pushState:(k,Q)=>D("push",k,Q),replaceState:(k,Q)=>D("replace",k,Q),back:k=>(k&&(v=!0),_=!0,t.history.back()),forward:k=>{k&&(v=!0),_=!0,t.history.forward()},go:k=>{g=!0,t.history.go(k)},createHref:k=>f(k),flush:I,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(LR,j,{capture:!0}),t.removeEventListener(zR,B)},onBlocked:()=>{y&&h!==y&&(h=y)},getBlockers:c,setBlockers:l,notifyOnIndexChange:!1});return t.addEventListener(LR,j,{capture:!0}),t.addEventListener(zR,B),t.history.pushState=function(...k){const Q=n.apply(t.history,k);return H._ignoreSubscribers||A("PUSH"),Q},t.history.replaceState=function(...k){const Q=r.apply(t.history,k);return H._ignoreSubscribers||A("REPLACE"),Q},H}function qB(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Zh(e,t){const n=qB(e),r=n.indexOf("#"),i=n.indexOf("?"),c=av();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):"",search:i>-1?n.slice(i,r===-1?void 0:r):"",state:t||{[ki]:0,key:c,__TSR_key:c}}}function av(){return(Math.random()+1).toString(36).substring(7)}const VB=!1;function Qu(e){let t;return jB(()=>{t=e()}),t}function lf(e){return e[e.length-1]}function GB(e){return typeof e=="function"}function Ai(e,t){return GB(e)?e(t):e}const KB=Object.prototype.hasOwnProperty,$R=Object.prototype.propertyIsEnumerable;function Ds(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=t,i=HR(e)&&HR(r);if(!i&&!(Yh(e)&&Yh(r)))return r;const c=i?e:UR(e);if(!c)return r;const l=i?r:UR(r);if(!l)return r;const f=c.length,d=l.length,h=i?new Array(d):{};let y=0;for(let g=0;g"u")return!0;const n=t.prototype;return!(!jR(n)||!n.hasOwnProperty("isPrototypeOf"))}function jR(e){return Object.prototype.toString.call(e)==="[object Object]"}function HR(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ma(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;ri||!Ma(e[l],t[l],n)))return!1;return i===c}return!1}function il(e){let t,n;const r=new Promise((i,c)=>{t=i,n=c});return r.status="pending",r.resolve=i=>{r.status="resolved",r.value=i,t(i),e?.(i)},r.reject=i=>{r.status="rejected",n(i)},r}function ZB(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function Xc(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function YB(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function FR(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return YB(t)}const QB=["http:","https:","mailto:","tel:"];function Qh(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}const XB={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},WB=/[&><\u2028\u2029]/g;function JB(e){return e.replace(WB,t=>XB[t])}function Nu(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,r="",i;for(;(i=t.exec(e))!==null;)r+=FR(e.slice(n,i.index))+i[0],n=t.lastIndex;r=r+FR(n?e.slice(n):e);let c=!1;return r.startsWith("//")&&(c=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:c}}function e6(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}var t6="Invariant failed";function xo(e,t){if(!e)throw new Error(t6)}function Xh(e){const t=new Map;let n,r;const i=c=>{c.next&&(c.prev?(c.prev.next=c.next,c.next.prev=c.prev,c.next=void 0,r&&(r.next=c,c.prev=r)):(c.next.prev=void 0,n=c.next,c.next=void 0,r&&(c.prev=r,r.next=c)),r=c)};return{get(c){const l=t.get(c);if(l)return i(l),l.value},set(c,l){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===r&&(r=void 0)}const f=t.get(c);if(f)f.value=l,i(f);else{const d={key:c,value:l,prev:r};r&&(r.next=d),r=d,n||(n=d),t.set(c,d)}},clear(){t.clear(),n=void 0,r=void 0}}}const al=0,za=1,La=2,uf=3,Ta=4,XI=5;function n6(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function cv(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),i=r===-1?e.length:r,c=e.substring(t,i);if(!c||!c.includes("$"))return n[0]=al,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(c==="$"){const f=e.length;return n[0]=La,n[1]=t,n[2]=t,n[3]=f,n[4]=f,n[5]=f,n}if(c.charCodeAt(0)===36)return n[0]=za,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;const l=n6(c);if(l){const[f,d]=l,h=c.charCodeAt(f+1);if(h===45){if(f+2!k.skipOnParamError&&k.caseSensitive===A&&k.prefix===B&&k.suffix===j);if(H)_=H;else{const k=Wy(za,n.fullPath??n.from,A,B,j);_=k,k.depth=c,k.parent=i,i.dynamic??=[],i.dynamic.push(k)}break}case uf:{const I=d.substring(x,v[1]),D=d.substring(v[4],R),A=y&&!!(I||D),B=I?A?I:I.toLowerCase():void 0,j=D?A?D:D.toLowerCase():void 0,H=!g&&i.optional?.find(k=>!k.skipOnParamError&&k.caseSensitive===A&&k.prefix===B&&k.suffix===j);if(H)_=H;else{const k=Wy(uf,n.fullPath??n.from,A,B,j);_=k,k.parent=i,k.depth=c,i.optional??=[],i.optional.push(k)}break}case La:{const I=d.substring(x,v[1]),D=d.substring(v[4],R),A=y&&!!(I||D),B=I?A?I:I.toLowerCase():void 0,j=D?A?D:D.toLowerCase():void 0,H=Wy(La,n.fullPath??n.from,A,B,j);_=H,H.parent=i,H.depth=c,i.wildcard??=[],i.wildcard.push(H)}}i=_}if(g&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const v=Aa(n.fullPath??n.from);v.kind=XI,v.parent=i,c++,v.depth=c,i.pathless??=[],i.pathless.push(v),i=v}const b=(n.path||!n.children)&&!n.isRoot;if(b&&d.endsWith("/")){const v=Aa(n.fullPath??n.from);v.kind=Ta,v.parent=i,c++,v.depth=c,i.index=v,i=v}i.parse=n.options?.params?.parse??null,i.skipOnParamError=g,i.parsingPriority=n.options?.skipRouteOnParseError?.priority??0,b&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(const d of n.children)zp(e,t,d,f,i,c,l)}function Xy(e,t){if(e.skipOnParamError&&!t.skipOnParamError)return-1;if(!e.skipOnParamError&&t.skipOnParamError)return 1;if(e.skipOnParamError&&t.skipOnParamError&&(e.parsingPriority||t.parsingPriority))return t.parsingPriority-e.parsingPriority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Ti(e){if(e.pathless)for(const t of e.pathless)Ti(t);if(e.static)for(const t of e.static.values())Ti(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())Ti(t);if(e.dynamic?.length){e.dynamic.sort(Xy);for(const t of e.dynamic)Ti(t)}if(e.optional?.length){e.optional.sort(Xy);for(const t of e.optional)Ti(t)}if(e.wildcard?.length){e.wildcard.sort(Xy);for(const t of e.wildcard)Ti(t)}}function Aa(e){return{kind:al,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function Wy(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:n,prefix:r,suffix:i}}function s6(e,t){const n=Aa("/"),r=new Uint16Array(6);for(const i of e)zp(!1,r,i,1,n,0);Ti(n),t.masksTree=n,t.flatCache=Xh(1e3)}function r6(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const r=lv(e,t.masksTree);return t.flatCache.set(e,r),r}function o6(e,t,n,r,i){e||="/",r||="/";const c=t?`case\0${e}`:e;let l=i.singleCache.get(c);if(!l){l=Aa("/");const f=new Uint16Array(6);zp(t,f,{from:e},1,l,0),i.singleCache.set(c,l)}return lv(r,l,n)}function i6(e,t,n=!1){const r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||="/";let c;try{c=lv(e,t.segmentTree,n)}catch(l){if(l instanceof URIError)c=null;else throw l}return c&&(c.branch=l6(c.route)),t.matchCache.set(r,c),c}function a6(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function c6(e,t=!1,n){const r=Aa(e.fullPath),i=new Uint16Array(6),c={},l={};let f=0;return zp(t,i,e,1,r,0,h=>{if(n?.(h,f),xo(!(h.id in c),`Duplicate routes found with id: ${String(h.id)}`),c[h.id]=h,f!==0&&h.path){const y=a6(h.fullPath);(!l[y]||h.fullPath.endsWith("/"))&&(l[y]=h)}f++}),Ti(r),{processedTree:{segmentTree:r,singleCache:Xh(1e3),matchCache:Xh(1e3),flatCache:null,masksTree:null},routesById:c,routesByPath:l}}function lv(e,t,n=!1){const r=e.split("/"),i=f6(e,r,t,n);if(!i)return null;const[c]=WI(e,r,i);return{route:i.node.route,rawParams:c,parsedParams:i.parsedParams}}function WI(e,t,n){const r=u6(n.node);let i=null;const c={};let l=n.extract?.part??0,f=n.extract?.node??0,d=n.extract?.path??0,h=n.extract?.segment??0;for(;f=0;re--){const G=b.optional[re];f.push({node:G,index:v,skipped:Q,depth:ne,statics:R,dynamics:C,optionals:I,extract:D,rawParams:A,parsedParams:B})}if(!j)for(let re=b.optional.length-1;re>=0;re--){const G=b.optional[re],{prefix:te,suffix:ue}=G;if(te||ue){const me=G.caseSensitive?H:k??=H.toLowerCase();if(te&&!me.startsWith(te)||ue&&!me.endsWith(ue))continue}f.push({node:G,index:v+1,skipped:_,depth:ne,statics:R,dynamics:C,optionals:I+1,extract:D,rawParams:A,parsedParams:B})}}if(!j&&b.dynamic&&H)for(let Q=b.dynamic.length-1;Q>=0;Q--){const ne=b.dynamic[Q],{prefix:re,suffix:G}=ne;if(re||G){const te=ne.caseSensitive?H:k??=H.toLowerCase();if(re&&!te.startsWith(re)||G&&!te.endsWith(G))continue}f.push({node:ne,index:v+1,skipped:_,depth:x+1,statics:R,dynamics:C+1,optionals:I,extract:D,rawParams:A,parsedParams:B})}if(!j&&b.staticInsensitive){const Q=b.staticInsensitive.get(k??=H.toLowerCase());Q&&f.push({node:Q,index:v+1,skipped:_,depth:x+1,statics:R+1,dynamics:C,optionals:I,extract:D,rawParams:A,parsedParams:B})}if(!j&&b.static){const Q=b.static.get(H);Q&&f.push({node:Q,index:v+1,skipped:_,depth:x+1,statics:R+1,dynamics:C,optionals:I,extract:D,rawParams:A,parsedParams:B})}if(b.pathless){const Q=x+1;for(let ne=b.pathless.length-1;ne>=0;ne--){const re=b.pathless[ne];f.push({node:re,index:v,skipped:_,depth:Q,statics:R,dynamics:C,optionals:I,extract:D,rawParams:A,parsedParams:B})}}}if(y&&d)return zu(d,y)?y:d;if(y)return y;if(d)return d;if(r&&h){let g=h.index;for(let v=0;ve.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Ta)>(e.node.kind===Ta)||t.node.kind===Ta==(e.node.kind===Ta)&&t.depth>e.depth))):!0}function Nh(e){return uv(e.filter(t=>t!==void 0).join("/"))}function uv(e){return e.replace(/\/{2,}/g,"/")}function JI(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function So(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function e2(e){return So(JI(e))}function Wh(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function d6(e,t,n){return Wh(e,n)===Wh(t,n)}function h6({base:e,to:t,trailingSlash:n="never",cache:r}){const i=t.startsWith("/"),c=!i&&t===".";let l;if(r){l=i?t:c?e:e+"\0"+t;const g=r.get(l);if(g)return g}let f;if(c)f=e.split("/");else if(i)f=t.split("/");else{for(f=e.split("/");f.length>1&&lf(f)==="";)f.pop();const g=t.split("/");for(let b=0,v=g.length;b1&&(lf(f)===""?n==="never"&&f.pop():n==="always"&&f.push(""));let d,h="";for(let g=0;g0&&(h+="/");const b=f[g];if(!b)continue;d=cv(b,0,d);const v=d[0];if(v===al){h+=b;continue}const _=d[5],x=b.substring(0,d[1]),R=b.substring(d[4],_),C=b.substring(d[2],d[3]);v===za?h+=x||R?`${x}{$${C}}${R}`:`$${C}`:v===La?h+=x||R?`${x}{$}${R}`:"$":h+=`${x}{-$${C}}${R}`}h=uv(h);const y=h||"/";return l&&r&&r.set(l,y),y}function p6(e){const t=new Map(e.map(i=>[encodeURIComponent(i),i])),n=Array.from(t.keys()).map(i=>i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(n,"g");return i=>i.replace(r,c=>t.get(c)??c)}function e0(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(i=>qR(i,n)).join("/"):qR(r,n)}function t0({path:e,params:t,decoder:n,...r}){let i=!1;const c={};if(!e||e==="/")return{interpolatedPath:"/",usedParams:c,isMissingParams:i};if(!e.includes("$"))return{interpolatedPath:e,usedParams:c,isMissingParams:i};const l=e.length;let f=0,d,h="";for(;f{let n;return(...r)=>{n||(n=setTimeout(()=>{e(...r),n=null},t))}};function y6(){const e=m6();if(!e)return null;const t=e.getItem(_b);let n=t?JSON.parse(t):{};return{state:n,set:r=>{n=Ai(r,n)||n;try{e.setItem(_b,JSON.stringify(n))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const dh=y6(),b6=e=>e.state.__TSR_key||e.href;function v6(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let Jh=!1;function S6({storageKey:e,key:t,behavior:n,shouldScrollRestoration:r,scrollToTopSelectors:i,location:c}){let l;try{l=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(h){console.error(h);return}const f=t||window.history.state?.__TSR_key,d=l[f];Jh=!0;e:{if(r&&d&&Object.keys(d).length>0){for(const g in d){const b=d[g];if(g==="window")window.scrollTo({top:b.scrollY,left:b.scrollX,behavior:n});else if(g){const v=document.querySelector(g);v&&(v.scrollLeft=b.scrollX,v.scrollTop=b.scrollY)}}break e}const h=(c??window.location).hash.split("#",2)[1];if(h){const g=window.history.state?.__hashScrollIntoViewOptions??!0;if(g){const b=document.getElementById(h);b&&b.scrollIntoView(g)}break e}const y={top:0,left:0,behavior:n};if(window.scrollTo(y),i)for(const g of i){if(g==="window")continue;const b=typeof g=="function"?g():document.querySelector(g);b&&b.scrollTo(y)}}Jh=!1}function _6(e,t){if(!dh||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!dh))return;e.isScrollRestorationSetup=!0,Jh=!1;const r=e.options.getScrollRestorationKey||b6;window.history.scrollRestoration="manual";const i=c=>{if(Jh||!e.isScrollRestoring)return;let l="";if(c.target===document||c.target===window)l="window";else{const d=c.target.getAttribute("data-scroll-restoration-id");d?l=`[data-scroll-restoration-id="${d}"]`:l=v6(c.target)}const f=r(e.state.location);dh.set(d=>{const h=d[f]||={},y=h[l]||={};if(l==="window")y.scrollX=window.scrollX||0,y.scrollY=window.scrollY||0;else if(l){const g=document.querySelector(l);g&&(y.scrollX=g.scrollLeft||0,y.scrollY=g.scrollTop||0)}return d})};typeof document<"u"&&document.addEventListener("scroll",g6(i,100),!0),e.subscribe("onRendered",c=>{const l=r(c.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(S6({storageKey:_b,key:l,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&dh.set(f=>(f[l]||={},f)))})}function w6(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function x6(e,t=String){const n=new URLSearchParams;for(const r in e){const i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function n0(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function E6(e){const t=new URLSearchParams(e),n={};for(const[r,i]of t.entries()){const c=n[r];c==null?n[r]=n0(i):Array.isArray(c)?c.push(n0(i)):n[r]=[c,n0(i)]}return n}const R6=T6(JSON.parse),C6=A6(JSON.stringify,JSON.parse);function T6(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=E6(t);for(const r in n){const i=n[r];if(typeof i=="string")try{n[r]=e(i)}catch{}}return n}}function A6(e,t){const n=typeof t=="function";function r(i){if(typeof i=="object"&&i!==null)try{return e(i)}catch{}else if(n&&typeof i=="string")try{return t(i),e(i)}catch{}return i}return i=>{const c=x6(i,r);return c?`?${c}`:""}}const rr="__root__";function fv(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function ar(e){return e instanceof Response&&!!e.options}const zh=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Lp=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),Wc=(e,t,n=!0)=>{const r={...e.router.options.context??{}},i=n?t:t-1;for(let c=0;c<=i;c++){const l=e.matches[c];if(!l)continue;const f=e.router.getMatch(l.id);f&&Object.assign(r,f.__routeContext,f.__beforeLoadContext)}return r},t2=(e,t,n)=>{const r=e.router.routesById[t.routeId??""]??e.router.routeTree;!r.options.notFoundComponent&&e.router.options?.defaultNotFoundComponent&&(r.options.notFoundComponent=e.router.options.defaultNotFoundComponent);const i=n==="BEFORE_LOAD"&&r.parentRoute;i||xo(r.options.notFoundComponent);const c=e.matches.find(l=>l.routeId===r.id);xo(c,"Could not find match for route: "+r.id),e.updateMatch(c.id,l=>({...l,status:"notFound",error:t,isFetching:!1})),i&&(t.routeId=r.parentRoute.id,t2(e,t,n))},Ii=(e,t,n,r)=>{if(!(!ar(n)&&!Ls(n))){if(ar(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const i=ar(n)?"redirected":"notFound";t._nonReactive.error=n,e.updateMatch(t.id,c=>({...c,status:i,context:Wc(e,t.index),isFetching:!1,error:n})),Ls(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()}throw ar(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(t2(e,n,r),n)}},n2=(e,t)=>!!e.router.getMatch(t)._nonReactive.dehydrated,Lu=(e,t,n,r)=>{const{id:i,routeId:c}=e.matches[t],l=e.router.looseRoutesById[c];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,Ii(e,e.router.getMatch(i),n,r);try{l.options.onError?.(n)}catch(f){n=f,Ii(e,e.router.getMatch(i),n,r)}e.updateMatch(i,f=>(f._nonReactive.beforeLoadPromise?.resolve(),f._nonReactive.beforeLoadPromise=void 0,f._nonReactive.loadPromise?.resolve(),{...f,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},s2=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const i=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!Lp(e,t)&&(n.options.loader||n.options.beforeLoad||i2(n))&&typeof i=="number"&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent))){const l=setTimeout(()=>{zh(e)},i);r._nonReactive.pendingTimeout=l}},I6=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;s2(e,t,n,r);const i=()=>{const c=e.router.getMatch(t);c.preload&&(c.status==="redirected"||c.status==="notFound")&&Ii(e,c,c.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},O6=(e,t,n,r)=>{const i=e.router.getMatch(t),c=i._nonReactive.loadPromise;i._nonReactive.loadPromise=il(()=>{c?.resolve()});const{paramsError:l,searchError:f}=i;l&&Lu(e,n,l,"PARSE_PARAMS"),f&&Lu(e,n,f,"VALIDATE_SEARCH"),s2(e,t,r,i);const d=new AbortController;let h=!1;const y=()=>{h||(h=!0,e.updateMatch(t,A=>({...A,isFetching:"beforeLoad",fetchCount:A.fetchCount+1,abortController:d})))},g=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,A=>({...A,isFetching:!1}))};if(!r.options.beforeLoad){Qu(()=>{y(),g()});return}i._nonReactive.beforeLoadPromise=il();const b={...Wc(e,n,!1),...i.__routeContext},{search:v,params:_,cause:x}=i,R=Lp(e,t),C={search:v,abortController:d,params:_,preload:R,context:b,location:e.location,navigate:A=>e.router.navigate({...A,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:R?"preload":x,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},I=A=>{if(A===void 0){Qu(()=>{y(),g()});return}(ar(A)||Ls(A))&&(y(),Lu(e,n,A,"BEFORE_LOAD")),Qu(()=>{y(),e.updateMatch(t,B=>({...B,__beforeLoadContext:A})),g()})};let D;try{if(D=r.options.beforeLoad(C),Xc(D))return y(),D.catch(A=>{Lu(e,n,A,"BEFORE_LOAD")}).then(I)}catch(A){y(),Lu(e,n,A,"BEFORE_LOAD")}I(D)},M6=(e,t)=>{const{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],c=()=>f(),l=()=>O6(e,n,t,i),f=()=>{if(n2(e,n))return;const d=I6(e,n,i);return Xc(d)?d.then(l):l()};return c()},D6=(e,t,n)=>{const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([c,l,f])=>{const d=c?.meta,h=c?.links,y=c?.scripts,g=c?.styles;return{meta:d,links:h,headScripts:y,headers:f,scripts:l,styles:g}})},r2=(e,t,n,r)=>{const i=e.matchPromises[n-1],{params:c,loaderDeps:l,abortController:f,cause:d}=e.router.getMatch(t),h=Wc(e,n),y=Lp(e,t);return{params:c,deps:l,preload:!!y,parentMatchPromise:i,abortController:f,context:h,location:e.location,navigate:g=>e.router.navigate({...g,_fromLocation:e.location}),cause:y?"preload":d,route:r,...e.router.options.additionalContext}},VR=async(e,t,n,r)=>{try{const i=e.router.getMatch(t);try{(!(VB??e.router.isServer)||i.ssr===!0)&&o2(r);const c=r.options.loader?.(r2(e,t,n,r)),l=r.options.loader&&Xc(c);if((l||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||i._nonReactive.minPendingPromise)&&e.updateMatch(t,h=>({...h,isFetching:"loader"})),r.options.loader){const h=l?await c:c;Ii(e,e.router.getMatch(t),h),h!==void 0&&e.updateMatch(t,y=>({...y,loaderData:h}))}r._lazyPromise&&await r._lazyPromise;const d=i._nonReactive.minPendingPromise;d&&await d,r._componentsPromise&&await r._componentsPromise,e.updateMatch(t,h=>({...h,error:void 0,context:Wc(e,n),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(c){let l=c;if(l?.name==="AbortError"){if(i.abortController.signal.aborted){i._nonReactive.loaderPromise?.resolve(),i._nonReactive.loaderPromise=void 0;return}e.updateMatch(t,d=>({...d,status:d.status==="pending"?"success":d.status,isFetching:!1,context:Wc(e,n)}));return}const f=i._nonReactive.minPendingPromise;f&&await f,Ls(c)&&await r.options.notFoundComponent?.preload?.(),Ii(e,e.router.getMatch(t),c);try{r.options.onError?.(c)}catch(d){l=d,Ii(e,e.router.getMatch(t),d)}e.updateMatch(t,d=>({...d,error:l,context:Wc(e,n),status:"error",isFetching:!1}))}}catch(i){const c=e.router.getMatch(t);c&&(c._nonReactive.loaderPromise=void 0),Ii(e,c,i)}},k6=async(e,t)=>{async function n(y,g,b,v){const _=Date.now()-g.updatedAt,x=y?v.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:v.options.staleTime??e.router.options.defaultStaleTime??0,R=v.options.shouldReload,C=typeof R=="function"?R(r2(e,r,t,v)):R,{status:I,invalid:D}=b;c=I==="success"&&(D||(C??_>x)),y&&v.options.preload===!1||(c&&!e.sync?(l=!0,(async()=>{try{await VR(e,r,t,v);const A=e.router.getMatch(r);A._nonReactive.loaderPromise?.resolve(),A._nonReactive.loadPromise?.resolve(),A._nonReactive.loaderPromise=void 0}catch(A){ar(A)&&await e.router.navigate(A.options)}})()):(I!=="success"||c&&e.sync)&&await VR(e,r,t,v))}const{id:r,routeId:i}=e.matches[t];let c=!1,l=!1;const f=e.router.looseRoutesById[i];if(!n2(e,r)){const y=e.router.getMatch(r),g=Lp(e,r);if(y._nonReactive.loaderPromise){if(y.status==="success"&&!e.sync&&!y.preload)return y;await y._nonReactive.loaderPromise;const b=e.router.getMatch(r),v=b._nonReactive.error||b.error;v&&Ii(e,b,v),b.status==="pending"&&await n(g,y,b,f)}else{const b=g&&!e.router.state.matches.some(_=>_.id===r),v=e.router.getMatch(r);v._nonReactive.loaderPromise=il(),b!==v.preload&&e.updateMatch(r,_=>({..._,preload:b})),await n(g,y,v,f)}}const d=e.router.getMatch(r);l||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve()),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,l||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;const h=l?d.isFetching:!1;return h!==d.isFetching||d.invalid!==!1?(e.updateMatch(r,y=>({...y,isFetching:h,invalid:!1})),e.router.getMatch(r)):d};async function GR(e){const t=Object.assign(e,{matchPromises:[]});t.router.state.matches.some(n=>n._forcePending)&&zh(t);try{for(let f=0;ff.status==="rejected").map(f=>f.reason);let c;for(const f of i){if(ar(f))throw f;!c&&Ls(f)&&(c=f)}for(const f of t.matches){const{id:d,routeId:h}=f,y=t.router.looseRoutesById[h];try{const g=D6(t,d,y);if(g){const b=await g;t.updateMatch(d,v=>({...v,...b}))}}catch(g){console.error(`Error executing head for route ${h}:`,g)}}if(c)throw c;const l=zh(t);Xc(l)&&await l}catch(n){if(Ls(n)&&!t.preload){const r=zh(t);throw Xc(r)&&await r,n}if(ar(n))throw n}return t.matches}async function o2(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{const n=[];for(const r of a2){const i=e.options[r]?.preload;i&&n.push(i())}if(n.length)return Promise.all(n).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function i2(e){for(const t of a2)if(e.options[t]?.preload)return!0;return!1}const a2=["component","errorComponent","pendingComponent","notFoundComponent"];function P6(e){return{input:({url:t})=>{for(const n of e)t=wb(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=c2(e[n],t);return t}}}function N6(e){const t=e2(e.basepath),n=`/${t}`,r=`${n}/`,i=e.caseSensitive?n:n.toLowerCase(),c=e.caseSensitive?r:r.toLowerCase();return{input:({url:l})=>{const f=e.caseSensitive?l.pathname:l.pathname.toLowerCase();return f===i?l.pathname="/":f.startsWith(c)&&(l.pathname=l.pathname.slice(n.length)),l},output:({url:l})=>(l.pathname=Nh(["/",t,l.pathname]),l)}}function wb(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function c2(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Da(e){const t=e.resolvedLocation,n=e.location,r=t?.pathname!==n.pathname,i=t?.href!==n.href,c=t?.hash!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:r,hrefChanged:i,hashChanged:c}}function z6(e){const t=e.filter(n=>n.status!=="redirected");return t.length===e.length?e:t}class L6{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>n(),this.update=n=>{n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const r=this.options,i=this.basepath??r?.basepath??"/",c=this.basepath===void 0,l=r?.rewrite;if(this.options={...r,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=p6(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=FB()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let b;this.resolvePathCache=Xh(1e3),b=this.buildRouteTree(),this.setRoutes(b)}!this.__store&&this.latestLocation&&(this.__store=new UB($6(this.latestLocation)),_6(this));let f=!1;const d=this.options.basepath??"/",h=this.options.rewrite;if(c||i!==d||l!==h){this.basepath=d;const b=[],v=e2(d);v&&v!=="/"&&b.push(N6({basepath:d})),h&&b.push(h),this.rewrite=b.length===0?void 0:b.length===1?b[0]:P6(b),this.history&&this.updateLatestLocation(),f=!0}f&&this.__store&&this.__store.setState(b=>({...b,location:this.latestLocation})),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=c6(this.routeTree,this.options.caseSensitive,(r,i)=>{r.init({originalIndex:i})});return this.options.routeMasks&&s6(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,r)=>{const i={eventType:n,fn:r};return this.subscribers.add(i),()=>{this.subscribers.delete(i)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const i=({pathname:d,search:h,hash:y,href:g,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(d)){const I=this.options.parseSearch(h),D=this.options.stringifySearch(I);return{href:d+D+y,publicHref:g,pathname:Nu(d).path,external:!1,searchStr:D,search:Ds(r?.search,I),hash:Nu(y.slice(1)).path,state:Ds(r?.state,b)}}const v=new URL(g,this.origin),_=wb(this.rewrite,v),x=this.options.parseSearch(_.search),R=this.options.stringifySearch(x);return _.search=R,{href:_.href.replace(_.origin,""),publicHref:g,pathname:Nu(_.pathname).path,external:!!this.rewrite&&_.origin!==this.origin,searchStr:R,search:Ds(r?.search,x),hash:Nu(_.hash.slice(1)).path,state:Ds(r?.state,b)}},c=i(n),{__tempLocation:l,__tempKey:f}=c.state;if(l&&(!f||f===this.tempLocationKey)){const d=i(l);return d.state.key=c.state.key,d.state.__TSR_key=c.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:c}}return c},this.resolvePathWithBase=(n,r)=>h6({base:n,to:uv(r),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,r,i)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},i):this.matchRoutesInternal(n,r),this.getMatchedRoutes=n=>U6({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const n=this.state.matches.filter(c=>c.status==="pending"),r=this.state.matches.filter(c=>c.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...r]).forEach(c=>{this.cancelMatch(c.id)})},this.buildLocation=n=>{const r=(c={})=>{const l=c._fromLocation||this.pendingBuiltLocation||this.latestLocation,f=this.matchRoutesLightweight(l);c.from;const d=c.unsafeRelative==="path"?l.pathname:c.from??f.fullPath,h=this.resolvePathWithBase(d,"."),y=f.search,g={...f.params},b=c.to?this.resolvePathWithBase(h,`${c.to}`):this.resolvePathWithBase(h,"."),v=c.params===!1||c.params===null?{}:(c.params??!0)===!0?g:Object.assign(g,Ai(c.params,g)),_=t0({path:b,params:v,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath,x=this.getMatchedRoutes(_);let R=x.matchedRoutes;(x.foundRoute?x.foundRoute.path!=="/"&&x.routeParams["**"]:So(_))&&this.options.notFoundRoute&&(R=[...R,this.options.notFoundRoute]);let I=!1;if(Object.keys(v).length>0)for(const te of R){const ue=te.options.params?.stringify??te.options.stringifyParams;ue&&(I=!0,Object.assign(v,ue(v)))}const D=n.leaveParams?b:Nu(I?t0({path:b,params:v,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath:_).path;let A=y;if(n._includeValidateSearch&&this.options.search?.strict){const te={};R.forEach(ue=>{if(ue.options.validateSearch)try{Object.assign(te,Lh(ue.options.validateSearch,{...te,...A}))}catch{}}),A=te}A=j6({search:A,dest:c,destRoutes:R,_includeValidateSearch:n._includeValidateSearch}),A=Ds(y,A);const B=this.options.stringifySearch(A),j=c.hash===!0?l.hash:c.hash?Ai(c.hash,l.hash):void 0,H=j?`#${j}`:"";let k=c.state===!0?l.state:c.state?Ai(c.state,l.state):{};k=Ds(l.state,k);const Q=`${D}${B}${H}`;let ne,re,G=!1;if(this.rewrite){const te=new URL(Q,this.origin),ue=c2(this.rewrite,te);ne=te.href.replace(te.origin,""),ue.origin!==this.origin?(re=ue.href,G=!0):re=ue.pathname+ue.search+ue.hash}else ne=e6(Q),re=ne;return{publicHref:re,href:ne,pathname:D,search:A,searchStr:B,state:k,hash:j??"",external:G,unmaskOnReload:c.unmaskOnReload}},i=(c={},l)=>{const f=r(c);let d=l?r(l):void 0;if(!d){const h={};if(this.options.routeMasks){const y=r6(f.pathname,this.processedTree);if(y){Object.assign(h,y.rawParams);const{from:g,params:b,...v}=y.route,_=b===!1||b===null?{}:(b??!0)===!0?h:Object.assign(h,Ai(b,h));l={from:n.from,...v,params:_},d=r(l)}}}return d&&(f.maskedLocation=d),f};return n.mask?i(n,{from:n.from,...n.mask}):i(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:r,...i})=>{const c=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(y=>{i.state[y]=this.latestLocation.state[y]});const h=Ma(i.state,this.latestLocation.state);return d.forEach(y=>{delete i.state[y]}),h},l=So(this.latestLocation.href)===So(i.href),f=this.commitLocationPromise;if(this.commitLocationPromise=il(()=>{f?.resolve()}),l&&c())this.load();else{let{maskedLocation:d,hashScrollIntoView:h,...y}=i;d&&(y={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...y,search:y.searchStr,state:{...y.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(y.unmaskOnReload??this.options.unmaskOnReload??!1)&&(y.state.__tempKey=this.tempLocationKey)),y.state.__hashScrollIntoViewOptions=h??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[i.replace?"replace":"push"](y.publicHref,y.state,{ignoreBlocker:r})}return this.resetNextScroll=i.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:i,viewTransition:c,ignoreBlocker:l,href:f,...d}={})=>{if(f){const g=this.history.location.state.__TSR_index,b=Zh(f,{__TSR_index:n?g:g+1}),v=new URL(b.pathname,this.origin),_=wb(this.rewrite,v);d.to=_.pathname,d.search=this.options.parseSearch(b.search),d.hash=b.hash.slice(1)}const h=this.buildLocation({...d,_includeValidateSearch:!0});this.pendingBuiltLocation=h;const y=this.commitLocation({...h,viewTransition:c,replace:n,resetScroll:r,hashScrollIntoView:i,ignoreBlocker:l});return Promise.resolve().then(()=>{this.pendingBuiltLocation===h&&(this.pendingBuiltLocation=void 0)}),y},this.navigate=async({to:n,reloadDocument:r,href:i,publicHref:c,...l})=>{let f=!1;if(i)try{new URL(`${i}`),f=!0}catch{}if(f&&!r&&(r=!0),r){if(n!==void 0||!i){const h=this.buildLocation({to:n,...l});i=i??h.publicHref,c=c??h.publicHref}const d=!f&&c?c:i;if(Qh(d,this.protocolAllowlist))return Promise.resolve();if(!l.ignoreBlocker){const y=this.history.getBlockers?.()??[];for(const g of y)if(g?.blockerFn&&await g.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return l.replace?window.location.replace(d):window.location.href=d,Promise.resolve()}return this.buildAndCommitLocation({...l,href:i,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation);this.__store.setState(r=>({...r,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:r.cachedMatches.filter(i=>!n.some(c=>c.id===i.id))}))},this.load=async n=>{let r,i,c;for(c=new Promise(f=>{this.startTransition(async()=>{try{this.beforeLoad();const d=this.latestLocation,h=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Da({resolvedLocation:h,location:d})}),this.emit({type:"onBeforeLoad",...Da({resolvedLocation:h,location:d})}),await GR({router:this,sync:n?.sync,matches:this.state.pendingMatches,location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let y=[],g=[],b=[];Qu(()=>{this.__store.setState(v=>{const _=v.matches,x=v.pendingMatches||v.matches;return y=_.filter(R=>!x.some(C=>C.id===R.id)),g=x.filter(R=>!_.some(C=>C.id===R.id)),b=x.filter(R=>_.some(C=>C.id===R.id)),{...v,isLoading:!1,loadedAt:Date.now(),matches:x,pendingMatches:void 0,cachedMatches:[...v.cachedMatches,...y.filter(R=>R.status!=="error"&&R.status!=="notFound"&&R.status!=="redirected")]}}),this.clearExpiredCache()}),[[y,"onLeave"],[g,"onEnter"],[b,"onStay"]].forEach(([v,_])=>{v.forEach(x=>{this.looseRoutesById[x.routeId].options[_]?.(x)})})})})}})}catch(d){ar(d)?(r=d,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):Ls(d)&&(i=d),this.__store.setState(h=>({...h,statusCode:r?r.status:i?404:h.matches.some(y=>y.status==="error")?500:200,redirect:r}))}this.latestLoadPromise===c&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),f()})}),this.latestLoadPromise=c,await c;this.latestLoadPromise&&c!==this.latestLoadPromise;)await this.latestLoadPromise;let l;this.hasNotFoundMatch()?l=404:this.__store.state.matches.some(f=>f.status==="error")&&(l=500),l!==void 0&&this.__store.setState(f=>({...f,statusCode:l}))},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let i;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const c=this.latestLocation,l=this.state.resolvedLocation,f=typeof r.types=="function"?r.types(Da({resolvedLocation:l,location:c})):r.types;if(f===!1){n();return}i={update:n,types:f}}else i=n;document.startViewTransition(i)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{const i=this.state.pendingMatches?.some(c=>c.id===n)?"pendingMatches":this.state.matches.some(c=>c.id===n)?"matches":this.state.cachedMatches.some(c=>c.id===n)?"cachedMatches":"";i&&(i==="cachedMatches"?this.__store.setState(c=>({...c,cachedMatches:z6(c.cachedMatches.map(l=>l.id===n?r(l):l))})):this.__store.setState(c=>({...c,[i]:c[i]?.map(l=>l.id===n?r(l):l)})))})},this.getMatch=n=>{const r=i=>i.id===n;return this.state.cachedMatches.find(r)??this.state.pendingMatches?.find(r)??this.state.matches.find(r)},this.invalidate=n=>{const r=i=>n?.filter?.(i)??!0?{...i,invalid:!0,...n?.forcePending||i.status==="error"||i.status==="notFound"?{status:"pending",error:void 0}:void 0}:i;return this.__store.setState(i=>({...i,matches:i.matches.map(r),cachedMatches:i.cachedMatches.map(r),pendingMatches:i.pendingMatches?.map(r)})),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const r=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const i=n.options._builtLocation??this.buildLocation(n.options),c=this.getParsedLocationHref(i);n.options.href=c,n.headers.set("Location",c)}else if(r)try{const i=new URL(r);if(this.origin&&i.origin===this.origin){const c=i.pathname+i.search+i.hash;n.options.href=c,n.headers.set("Location",c)}}catch{}if(n.options.href&&!n.options._builtLocation&&Qh(n.options.href,this.protocolAllowlist))throw new Error(`Redirect blocked: unsafe protocol in href "${n.options.href}". Allowed protocols: ${Array.from(this.protocolAllowlist).join(", ")}.`);return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const r=n?.filter;r!==void 0?this.__store.setState(i=>({...i,cachedMatches:i.cachedMatches.filter(c=>!r(c))})):this.__store.setState(i=>({...i,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=r=>{const i=this.looseRoutesById[r.routeId];if(!i.options.loader)return!0;const c=(r.preload?i.options.preloadGcTime??this.options.defaultPreloadGcTime:i.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:Date.now()-r.updatedAt>=c};this.clearCache({filter:n})},this.loadRouteChunk=o2,this.preloadRoute=async n=>{const r=n._builtLocation??this.buildLocation(n);let i=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const c=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(f=>f.id)),l=new Set([...c,...this.state.cachedMatches.map(f=>f.id)]);Qu(()=>{i.forEach(f=>{l.has(f.id)||this.__store.setState(d=>({...d,cachedMatches:[...d.cachedMatches,f]}))})});try{return i=await GR({router:this,matches:i,location:r,preload:!0,updateMatch:(f,d)=>{c.has(f)?i=i.map(h=>h.id===f?d(h):h):this.updateMatch(f,d)}}),i}catch(f){if(ar(f))return f.options.reloadDocument?void 0:await this.preloadRoute({...f.options,_fromLocation:r});Ls(f)||console.error(f);return}},this.matchRoute=(n,r)=>{const i={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},c=this.buildLocation(i);if(r?.pending&&this.state.status!=="pending")return!1;const f=(r?.pending===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,d=o6(c.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,f.pathname,this.processedTree);return!d||n.params&&!Ma(d.rawParams,n.params,{partial:!0})?!1:r?.includeSearch??!0?Ma(f.search,c.search,{partial:!0})?d.rawParams:!1:d.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??C6,parseSearch:t.parseSearch??R6,protocolAllowlist:t.protocolAllowlist??QB}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:t,routesByPath:n,processedTree:r}){this.routesById=t,this.routesByPath=n,this.processedTree=r;const i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999}),this.routesById[i.id]=i)}get looseRoutesById(){return this.routesById}getParentContext(t){return t?.id?t.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,n){const r=this.getMatchedRoutes(t.pathname),{foundRoute:i,routeParams:c,parsedParams:l}=r;let{matchedRoutes:f}=r,d=!1;(i?i.path!=="/"&&c["**"]:So(t.pathname))&&(this.options.notFoundRoute?f=[...f,this.options.notFoundRoute]:d=!0);const h=d?F6(this.options.notFoundMode,f):void 0,y=new Array(f.length),g=new Map(this.state.matches.map(b=>[b.routeId,b]));for(let b=0;bthis.navigate({...A,_fromLocation:t}),buildLocation:this.buildLocation,cause:v.cause,abortController:v.abortController,preload:!!v.preload,matches:y,routeId:_.id};v.__routeContext=_.options.context(D)??void 0}v.context={...I,...v.__routeContext,...v.__beforeLoadContext}}}return y}matchRoutesLightweight(t){const{matchedRoutes:n,routeParams:r,parsedParams:i}=this.getMatchedRoutes(t.pathname),c=lf(n),l={...t.search};for(const y of n)try{Object.assign(l,Lh(y.options.validateSearch,l))}catch{}const f=lf(this.state.matches),d=f&&f.routeId===c.id&&t.pathname===this.state.location.pathname;let h;if(d)h=f.params;else{const y={...r};for(const g of n)try{KR(g,r,i??{},y)}catch{}h=y}return{matchedRoutes:n,fullPath:c.fullPath,search:l,params:h}}}class ep extends Error{}class B6 extends Error{}function $6(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Lh(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new ep("Async validation not supported");if(n.issues)throw new ep(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function U6({pathname:e,routesById:t,processedTree:n}){const r={},i=So(e);let c,l;const f=i6(i,n,!0);return f&&(c=f.route,Object.assign(r,f.rawParams),l=Object.assign({},f.parsedParams)),{matchedRoutes:f?.branch||[t[rr]],routeParams:r,foundRoute:c,parsedParams:l}}function j6({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return H6(n)(e,t,r??!1)}function H6(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const i of e){if("search"in i.options)i.options.search?.middlewares&&t.middlewares.push(...i.options.search.middlewares);else if(i.options.preSearchFilters||i.options.postSearchFilters){const c=({search:l,next:f})=>{let d=l;"preSearchFilters"in i.options&&i.options.preSearchFilters&&(d=i.options.preSearchFilters.reduce((y,g)=>g(y),l));const h=f(d);return"postSearchFilters"in i.options&&i.options.postSearchFilters?i.options.postSearchFilters.reduce((y,g)=>g(y),h):h};t.middlewares.push(c)}if(i.options.validateSearch){const c=({search:l,next:f})=>{const d=f(l);if(!t._includeValidateSearch)return d;try{return{...d,...Lh(i.options.validateSearch,d)??void 0}}catch{return d}};t.middlewares.push(c)}}const n=({search:i})=>{const c=t.dest;return c.search?c.search===!0?i:Ai(c.search,i):{}};t.middlewares.push(n);const r=(i,c,l)=>{if(i>=l.length)return c;const f=l[i];return f({search:c,next:h=>r(i+1,h,l)})};return function(c,l,f){return t.dest=l,t._includeValidateSearch=f,r(0,c,t.middlewares)}}function F6(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.children)return r.id}return rr}function KR(e,t,n,r){const i=e.options.params?.parse??e.options.parseParams;if(i)if(e.options.skipRouteOnParseError)for(const c in t)c in n&&(r[c]=n[c]);else{const c=i(r);Object.assign(r,c)}}const q6="Error preloading route! ☝️";class l2{constructor(t){if(this.init=n=>{this.originalIndex=n.originalIndex;const r=this.options,i=!r?.path&&!r?.id;this.parentRoute=this.options.getParentRoute?.(),i?this._path=rr:this.parentRoute||xo(!1);let c=i?rr:r?.path;c&&c!=="/"&&(c=JI(c));const l=r?.id||c;let f=i?rr:Nh([this.parentRoute.id===rr?"":this.parentRoute.id,l]);c===rr&&(c="/"),f!==rr&&(f=Nh(["/",f]));const d=f===rr?"/":Nh([this.parentRoute.fullPath,c]);this._path=c,this._id=f,this._fullPath=d,this._to=So(d)},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.redirect=n=>fv({from:this.fullPath,...n}),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class V6 extends l2{constructor(t){super(t)}}const G6="use",ZR=ov[G6],hh=typeof window<"u"?O.useLayoutEffect:O.useEffect;function s0(e){const t=O.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function K6(e,t,n={},r={}){O.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const i=new IntersectionObserver(([c])=>{t(c)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function Z6(e){const t=O.useRef(null);return O.useImperativeHandle(e,()=>t.current,[]),t}function dv(e){const t=e.errorComponent??hv;return U.jsx(Y6,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?O.createElement(t,{error:n,reset:r}):e.children})}class Y6 extends O.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function hv({error:e}){const[t,n]=O.useState(!1);return U.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[U.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),U.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),U.jsx("div",{style:{height:".25rem"}}),t?U.jsx("div",{children:U.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?U.jsx("code",{children:e.message}):null})}):null]})}function Q6({children:e,fallback:t=null}){return pv()?U.jsx(ol.Fragment,{children:e}):U.jsx(ol.Fragment,{children:t})}function pv(){return ol.useSyncExternalStore(X6,()=>!0,()=>!1)}function X6(){return()=>{}}var r0={exports:{}},o0={},i0={exports:{}},a0={};var YR;function W6(){if(YR)return a0;YR=1;var e=yl();function t(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,c=e.useLayoutEffect,l=e.useDebugValue;function f(g,b){var v=b(),_=r({inst:{value:v,getSnapshot:b}}),x=_[0].inst,R=_[1];return c(function(){x.value=v,x.getSnapshot=b,d(x)&&R({inst:x})},[g,v,b]),i(function(){return d(x)&&R({inst:x}),g(function(){d(x)&&R({inst:x})})},[g]),l(v),v}function d(g){var b=g.getSnapshot;g=g.value;try{var v=b();return!n(g,v)}catch{return!0}}function h(g,b){return b()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return a0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,a0}var QR;function u2(){return QR||(QR=1,i0.exports=W6()),i0.exports}var XR;function J6(){if(XR)return o0;XR=1;var e=yl(),t=u2();function n(h,y){return h===y&&(h!==0||1/h===1/y)||h!==h&&y!==y}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,c=e.useRef,l=e.useEffect,f=e.useMemo,d=e.useDebugValue;return o0.useSyncExternalStoreWithSelector=function(h,y,g,b,v){var _=c(null);if(_.current===null){var x={hasValue:!1,value:null};_.current=x}else x=_.current;_=f(function(){function C(j){if(!I){if(I=!0,D=j,j=b(j),v!==void 0&&x.hasValue){var H=x.value;if(v(H,j))return A=H}return A=j}if(H=A,r(D,j))return H;var k=b(j);return v!==void 0&&v(H,k)?(D=j,H):(D=j,A=k)}var I=!1,D,A,B=g===void 0?null:g;return[function(){return C(y())},B===null?void 0:function(){return C(B())}]},[y,g,b,v]);var R=i(h,_[0],_[1]);return l(function(){x.hasValue=!0,x.value=R},[R]),d(R),R},o0}var WR;function e$(){return WR||(WR=1,r0.exports=J6()),r0.exports}var f2=e$();function t$(e,t){return e===t}function n$(e,t,n=t$){const r=O.useCallback(l=>{if(!e)return()=>{};const{unsubscribe:f}=e.subscribe(l);return f},[e]),i=O.useCallback(()=>e?.get(),[e]);return f2.useSyncExternalStoreWithSelector(r,i,i,t,n)}const c0=O.createContext(null);function d2(){return typeof document>"u"?c0:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=c0,c0)}function es(e){const t=O.useContext(d2());return e?.warn,t}function An(e){const t=es({warn:e?.router===void 0}),n=e?.router||t,r=O.useRef(void 0);return n$(n.__store,i=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const c=Ds(r.current,e.select(i));return r.current=c,c}return e.select(i)}return i})}const Bp=O.createContext(void 0),s$=O.createContext(void 0);function Lr(e){const t=O.useContext(e.from?s$:Bp);return An({select:r=>{const i=r.matches.find(c=>e.from?e.from===c.routeId:c.id===t);if(xo(!((e.shouldThrow??!0)&&!i),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),i!==void 0)return e.select?e.select(i):i},structuralSharing:e.structuralSharing})}function mv(e){return Lr({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function gv(e){const{select:t,...n}=e;return Lr({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function yv(e){return Lr({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function bv(e){return Lr({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function $p(e){const t=es();return O.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}var l0={exports:{}},Kn={};var JR;function r$(){if(JR)return Kn;JR=1;var e=yl();function t(d){var h="https://react.dev/errors/"+d;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),l0.exports=r$(),l0.exports}var Bi=h2();function o$(e,t){const n=es(),r=Z6(t),{activeProps:i,inactiveProps:c,activeOptions:l,to:f,preload:d,preloadDelay:h,hashScrollIntoView:y,replace:g,startTransition:b,resetScroll:v,viewTransition:_,children:x,target:R,disabled:C,style:I,className:D,onClick:A,onFocus:B,onMouseEnter:j,onMouseLeave:H,onTouchStart:k,ignoreBlocker:Q,params:ne,search:re,hash:G,state:te,mask:ue,reloadDocument:me,unsafeRelative:F,from:oe,_fromLocation:J,...ve}=e,fe=pv(),z=An({select:dt=>{const kt=dt.matches[dt.matches.length-1];return{search:kt?.search,hash:dt.location.hash,path:kt?.pathname}},structuralSharing:!0}),ee=e.from,ge=O.useMemo(()=>({...e,from:ee}),[n,z,ee,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),be=O.useMemo(()=>n.buildLocation({...ge}),[n,ge]),Ee=be.maskedLocation?be.maskedLocation.publicHref:be.publicHref,_e=be.maskedLocation?be.maskedLocation.external:be.external,Ie=O.useMemo(()=>f$(Ee,_e,n.history,C),[C,_e,Ee,n.history]),Xe=O.useMemo(()=>{if(Ie?.external)return Qh(Ie.href,n.protocolAllowlist)?void 0:Ie.href;if(!d$(f)&&!(typeof f!="string"||f.indexOf(":")===-1))try{return new URL(f),Qh(f,n.protocolAllowlist)?void 0:f}catch{}},[f,Ie,n.protocolAllowlist]),Se=An({select:dt=>{if(Xe)return!1;if(l?.exact){if(!d6(dt.location.pathname,be.pathname,n.basepath))return!1}else{const kt=Wh(dt.location.pathname,n.basepath),mt=Wh(be.pathname,n.basepath);if(!(kt.startsWith(mt)&&(kt.length===mt.length||kt[mt.length]==="/")))return!1}return(l?.includeSearch??!0)&&!Ma(dt.location.search,be.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?fe&&dt.location.hash===be.hash:!0}}),it=Se?Ai(i,{})??i$:u0,zt=Se?u0:Ai(c,{})??u0,ye=[D,it.className,zt.className].filter(Boolean).join(" "),xe=(I||it.style||zt.style)&&{...I,...it.style,...zt.style},[we,We]=O.useState(!1),Me=O.useRef(!1),He=e.reloadDocument||Xe?!1:d??n.options.defaultPreload,Pe=h??n.options.defaultPreloadDelay??0,tt=O.useCallback(()=>{n.preloadRoute({...ge,_builtLocation:be}).catch(dt=>{console.warn(dt),console.warn(q6)})},[n,ge,be]),Dt=O.useCallback(dt=>{dt?.isIntersecting&&tt()},[tt]);K6(r,Dt,u$,{disabled:!!C||He!=="viewport"}),O.useEffect(()=>{Me.current||!C&&He==="render"&&(tt(),Me.current=!0)},[C,tt,He]);const Ye=dt=>{const kt=dt.currentTarget.getAttribute("target"),mt=R!==void 0?R:kt;if(!C&&!h$(dt)&&!dt.defaultPrevented&&(!mt||mt==="_self")&&dt.button===0){dt.preventDefault(),Bi.flushSync(()=>{We(!0)});const Es=n.subscribe("onResolved",()=>{Es(),We(!1)});n.navigate({...ge,replace:g,resetScroll:v,hashScrollIntoView:y,startTransition:b,viewTransition:_,ignoreBlocker:Q})}};if(Xe)return{...ve,ref:r,href:Xe,...x&&{children:x},...R&&{target:R},...C&&{disabled:C},...I&&{style:I},...D&&{className:D},...A&&{onClick:A},...B&&{onFocus:B},...j&&{onMouseEnter:j},...H&&{onMouseLeave:H},...k&&{onTouchStart:k}};const wt=dt=>{C||He&&tt()},wn=wt,xt=dt=>{if(!(C||!He))if(!Pe)tt();else{const kt=dt.target;if(Bu.has(kt))return;const mt=setTimeout(()=>{Bu.delete(kt),tt()},Pe);Bu.set(kt,mt)}},pr=dt=>{if(C||!He||!Pe)return;const kt=dt.target,mt=Bu.get(kt);mt&&(clearTimeout(mt),Bu.delete(kt))};return{...ve,...it,...zt,href:Ie?.href,ref:r,onClick:$u([A,Ye]),onFocus:$u([B,wt]),onMouseEnter:$u([j,xt]),onMouseLeave:$u([H,pr]),onTouchStart:$u([k,wn]),disabled:!!C,target:R,...xe&&{style:xe},...ye&&{className:ye},...C&&a$,...Se&&c$,...fe&&we&&l$}}const u0={},i$={className:"active"},a$={role:"link","aria-disabled":!0},c$={"data-status":"active","aria-current":"page"},l$={"data-transitioning":"transitioning"},Bu=new WeakMap,u$={rootMargin:"100px"},$u=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function f$(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function d$(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}const Dr=O.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:i,...c}=o$(r,t),l=typeof r.children=="function"?r.children({isActive:c["data-status"]==="active"}):r.children;if(!n){const{disabled:f,...d}=c;return O.createElement("a",d,l)}return O.createElement(n,c,l)});function h$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let p$=class extends l2{constructor(t){super(t),this.useMatch=n=>Lr({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Lr({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>bv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>yv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>gv({...n,from:this.id}),this.useLoaderData=n=>mv({...n,from:this.id}),this.useNavigate=()=>$p({from:this.fullPath}),this.Link=ol.forwardRef((n,r)=>U.jsx(Dr,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}};function m$(e){return new p$(e)}function g$(){return e=>b$(e)}class y$ extends V6{constructor(t){super(t),this.useMatch=n=>Lr({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Lr({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>bv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>yv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>gv({...n,from:this.id}),this.useLoaderData=n=>mv({...n,from:this.id}),this.useNavigate=()=>$p({from:this.fullPath}),this.Link=ol.forwardRef((n,r)=>U.jsx(Dr,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function b$(e){return new y$(e)}function Yt(e){return typeof e=="object"?new tC(e,{silent:!0}).createRoute(e):new tC(e,{silent:!0}).createRoute}class tC{constructor(t,n){this.path=t,this.createRoute=r=>{this.silent;const i=m$(r);return i.isRoot=!1,i},this.silent=n?.silent}}class nC{constructor(t){this.useMatch=n=>Lr({select:n?.select,from:this.options.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Lr({from:this.options.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>bv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useParams=n=>yv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>gv({...n,from:this.options.id}),this.useLoaderData=n=>mv({...n,from:this.options.id}),this.useNavigate=()=>{const n=es();return $p({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function sC(e){return typeof e=="object"?new nC(e):t=>new nC({id:e,...t})}function on(e,t){let n,r,i,c;const l=()=>(n||(n=e().then(d=>{n=void 0,r=d[t]}).catch(d=>{if(i=d,ZB(i)&&i instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const h=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(h)||(sessionStorage.setItem(h,"1"),c=!0)}})),n),f=function(h){if(c)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(ZR)ZR(l());else throw l();return O.createElement(r,h)};return f.preload=l,f}function v$(){const e=es(),t=O.useRef({router:e,mounted:!1}),[n,r]=O.useState(!1),{hasPendingMatches:i,isLoading:c}=An({select:g=>({isLoading:g.isLoading,hasPendingMatches:g.matches.some(b=>b.status==="pending")}),structuralSharing:!0}),l=s0(c),f=c||n||i,d=s0(f),h=c||i,y=s0(h);return e.startTransition=g=>{r(!0),O.startTransition(()=>{g(),r(!1)})},O.useEffect(()=>{const g=e.history.subscribe(e.load),b=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return So(e.latestLocation.publicHref)!==So(b.publicHref)&&e.commitLocation({...b,replace:!0}),()=>{g()}},[e,e.history]),hh(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(b){console.error(b)}})()},[e]),hh(()=>{l&&!c&&e.emit({type:"onLoad",...Da(e.state)})},[l,e,c]),hh(()=>{y&&!h&&e.emit({type:"onBeforeRouteMount",...Da(e.state)})},[h,y,e]),hh(()=>{if(d&&!f){const g=Da(e.state);e.emit({type:"onResolved",...g}),e.__store.setState(b=>({...b,status:"idle",resolvedLocation:b.location})),g.hrefChanged&&w6(e)}},[f,d,e]),null}function S$(e){const t=An({select:n=>`not-found-${n.location.pathname}-${n.status}`});return U.jsx(dv,{getResetKey:()=>t,onCatch:(n,r)=>{if(Ls(n))e.onCatch?.(n,r);else throw n},errorComponent:({error:n})=>{if(Ls(n))return e.fallback?.(n);throw n},children:e.children})}function _$(){return U.jsx("p",{children:"Not Found"})}function Zc(e){return U.jsx(U.Fragment,{children:e.children})}function p2(e,t,n){return t.options.notFoundComponent?U.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?U.jsx(e.options.defaultNotFoundComponent,{...n}):U.jsx(_$,{})}function w$(){return es().isScrollRestoring,null}const m2=O.memo(function({matchId:t}){const n=es(),r=An({select:x=>{const R=x.matches.findIndex(I=>I.id===t),C=x.matches[R];return xo(C),{routeId:C.routeId,ssr:C.ssr,_displayPending:C._displayPending,resetKey:x.loadedAt,parentRouteId:x.matches[R-1]?.routeId}},structuralSharing:!0}),i=n.routesById[r.routeId],c=i.options.pendingComponent??n.options.defaultPendingComponent,l=c?U.jsx(c,{}):null,f=i.options.errorComponent??n.options.defaultErrorComponent,d=i.options.onCatch??n.options.defaultOnCatch,h=i.isRoot?i.options.notFoundComponent??n.options.notFoundRoute?.options.component:i.options.notFoundComponent,y=r.ssr===!1||r.ssr==="data-only",g=(!i.isRoot||i.options.wrapInSuspense||y)&&(i.options.wrapInSuspense??c??(i.options.errorComponent?.preload||y))?O.Suspense:Zc,b=f?dv:Zc,v=h?S$:Zc,_=i.isRoot?i.options.shellComponent??Zc:Zc;return U.jsxs(_,{children:[U.jsx(Bp.Provider,{value:t,children:U.jsx(g,{fallback:l,children:U.jsx(b,{getResetKey:()=>r.resetKey,errorComponent:f||hv,onCatch:(x,R)=>{if(Ls(x))throw x;d?.(x,R)},children:U.jsx(v,{fallback:x=>{if(!h||x.routeId&&x.routeId!==r.routeId||!x.routeId&&!i.isRoot)throw x;return O.createElement(h,x)},children:y||r._displayPending?U.jsx(Q6,{fallback:l,children:U.jsx(rC,{matchId:t})}):U.jsx(rC,{matchId:t})})})})}),r.parentRouteId===rr&&n.options.scrollRestoration?U.jsxs(U.Fragment,{children:[U.jsx(x$,{}),U.jsx(w$,{})]}):null]})});function x$(){const e=es(),t=O.useRef(void 0);return U.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...Da(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const rC=O.memo(function({matchId:t}){const n=es(),{match:r,key:i,routeId:c}=An({select:d=>{const h=d.matches.find(_=>_.id===t),y=h.routeId,b=(n.routesById[y].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:y,loaderDeps:h.loaderDeps,params:h._strictParams,search:h._strictSearch});return{key:b?JSON.stringify(b):void 0,routeId:y,match:{id:h.id,status:h.status,error:h.error,invalid:h.invalid,_forcePending:h._forcePending,_displayPending:h._displayPending}}},structuralSharing:!0}),l=n.routesById[c],f=O.useMemo(()=>{const d=l.options.component??n.options.defaultComponent;return d?U.jsx(d,{},i):U.jsx(g2,{})},[i,l.options.component,n.options.defaultComponent]);if(r._displayPending)throw n.getMatch(r.id)?._nonReactive.displayPendingPromise;if(r._forcePending)throw n.getMatch(r.id)?._nonReactive.minPendingPromise;if(r.status==="pending"){const d=l.options.pendingMinMs??n.options.defaultPendingMinMs;if(d){const h=n.getMatch(r.id);if(h&&!h._nonReactive.minPendingPromise){const y=il();h._nonReactive.minPendingPromise=y,setTimeout(()=>{y.resolve(),h._nonReactive.minPendingPromise=void 0},d)}}throw n.getMatch(r.id)?._nonReactive.loadPromise}if(r.status==="notFound")return xo(Ls(r.error)),p2(n,l,r.error);if(r.status==="redirected")throw xo(ar(r.error)),n.getMatch(r.id)?._nonReactive.loadPromise;if(r.status==="error")throw r.error;return f}),g2=O.memo(function(){const t=es(),n=O.useContext(Bp),r=An({select:h=>h.matches.find(y=>y.id===n)?.routeId}),i=t.routesById[r],c=An({select:h=>{const g=h.matches.find(b=>b.id===n);return xo(g),g.globalNotFound}}),l=An({select:h=>{const y=h.matches,g=y.findIndex(b=>b.id===n);return y[g+1]?.id}}),f=t.options.defaultPendingComponent?U.jsx(t.options.defaultPendingComponent,{}):null;if(c)return p2(t,i,void 0);if(!l)return null;const d=U.jsx(m2,{matchId:l});return r===rr?U.jsx(O.Suspense,{fallback:f,children:d}):d});function E$(){const e=es(),n=e.routesById[rr].options.pendingComponent??e.options.defaultPendingComponent,r=n?U.jsx(n,{}):null,i=typeof document<"u"&&e.ssr?Zc:O.Suspense,c=U.jsxs(i,{fallback:r,children:[U.jsx(v$,{}),U.jsx(R$,{})]});return e.options.InnerWrap?U.jsx(e.options.InnerWrap,{children:c}):c}function R$(){const e=es(),t=An({select:i=>i.matches[0]?.id}),n=An({select:i=>i.loadedAt}),r=t?U.jsx(m2,{matchId:t}):null;return U.jsx(Bp.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:U.jsx(dv,{getResetKey:()=>n,errorComponent:hv,onCatch:i=>{i.message||i.toString()},children:r})})}const C$=e=>new T$(e);class T$ extends L6{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=Yt,globalThis.createLazyFileRoute=sC):typeof window<"u"&&(window.createFileRoute=Yt,window.createLazyFileRoute=sC);function A$({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=d2(),i=U.jsx(r.Provider,{value:e,children:t});return e.options.Wrap?U.jsx(e.options.Wrap,{children:i}):i}function I$({router:e,...t}){return U.jsx(A$,{router:e,...t,children:U.jsx(E$,{})})}function O$(e){return An({select:t=>e?.select?e.select(t.location):t.location})}function M$({tag:e,attrs:t,children:n,nonce:r}){switch(e){case"title":return U.jsx("title",{...t,suppressHydrationWarning:!0,children:n});case"meta":return U.jsx("meta",{...t,suppressHydrationWarning:!0});case"link":return U.jsx("link",{...t,nonce:r,suppressHydrationWarning:!0});case"style":return U.jsx("style",{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case"script":return U.jsx(D$,{attrs:t,children:n});default:return null}}function D$({attrs:e,children:t}){es();const n=pv(),r=typeof e?.type=="string"&&e.type!==""&&e.type!=="text/javascript"&&e.type!=="module";if(O.useEffect(()=>{if(!r){if(e?.src){const i=(()=>{try{const f=document.baseURI||window.location.href;return new URL(e.src,f).href}catch{return e.src}})();if(Array.from(document.querySelectorAll("script[src]")).find(f=>f.src===i))return;const l=document.createElement("script");for(const[f,d]of Object.entries(e))f!=="suppressHydrationWarning"&&d!==void 0&&d!==!1&&l.setAttribute(f,typeof d=="boolean"?"":String(d));return document.head.appendChild(l),()=>{l.parentNode&&l.parentNode.removeChild(l)}}if(typeof t=="string"){const i=typeof e?.type=="string"?e.type:"text/javascript",c=typeof e?.nonce=="string"?e.nonce:void 0;if(Array.from(document.querySelectorAll("script:not([src])")).find(d=>{if(!(d instanceof HTMLScriptElement))return!1;const h=d.getAttribute("type")??"text/javascript",y=d.getAttribute("nonce")??void 0;return d.textContent===t&&h===i&&y===c}))return;const f=document.createElement("script");if(f.textContent=t,e)for(const[d,h]of Object.entries(e))d!=="suppressHydrationWarning"&&h!==void 0&&h!==!1&&f.setAttribute(d,typeof h=="boolean"?"":String(h));return document.head.appendChild(f),()=>{f.parentNode&&f.parentNode.removeChild(f)}}}},[e,t,r]),r&&typeof t=="string")return U.jsx("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!n){if(e?.src)return U.jsx("script",{...e,suppressHydrationWarning:!0});if(typeof t=="string")return U.jsx("script",{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}const k$=()=>{const e=es(),t=e.options.ssr?.nonce,n=An({select:d=>d.matches.map(h=>h.meta).filter(Boolean)}),r=O.useMemo(()=>{const d=[],h={};let y;for(let g=n.length-1;g>=0;g--){const b=n[g];for(let v=b.length-1;v>=0;v--){const _=b[v];if(_)if(_.title)y||(y={tag:"title",children:_.title});else if("script:ld+json"in _)try{const x=JSON.stringify(_["script:ld+json"]);d.push({tag:"script",attrs:{type:"application/ld+json"},children:JB(x)})}catch{}else{const x=_.name??_.property;if(x){if(h[x])continue;h[x]=!0}d.push({tag:"meta",attrs:{..._,nonce:t}})}}}return y&&d.push(y),t&&d.push({tag:"meta",attrs:{property:"csp-nonce",content:t}}),d.reverse(),d},[n,t]),i=An({select:d=>{const h=d.matches.map(b=>b.links).filter(Boolean).flat(1).map(b=>({tag:"link",attrs:{...b,nonce:t}})),y=e.ssr?.manifest,g=d.matches.map(b=>y?.routes[b.routeId]?.assets??[]).filter(Boolean).flat(1).filter(b=>b.tag==="link").map(b=>({tag:"link",attrs:{...b.attrs,suppressHydrationWarning:!0,nonce:t}}));return[...h,...g]},structuralSharing:!0}),c=An({select:d=>{const h=[];return d.matches.map(y=>e.looseRoutesById[y.routeId]).forEach(y=>e.ssr?.manifest?.routes[y.id]?.preloads?.filter(Boolean).forEach(g=>{h.push({tag:"link",attrs:{rel:"modulepreload",href:g,nonce:t}})})),h},structuralSharing:!0}),l=An({select:d=>d.matches.map(h=>h.styles).flat(1).filter(Boolean).map(({children:h,...y})=>({tag:"style",attrs:{...y,nonce:t},children:h})),structuralSharing:!0}),f=An({select:d=>d.matches.map(h=>h.headScripts).flat(1).filter(Boolean).map(({children:h,...y})=>({tag:"script",attrs:{...y,nonce:t},children:h})),structuralSharing:!0});return P$([...r,...c,...i,...l,...f],d=>JSON.stringify(d))};function P$(e,t){const n=new Set;return e.filter(r=>{const i=t(r);return n.has(i)?!1:(n.add(i),!0)})}function N$(){const e=k$(),n=es().options.ssr?.nonce;return U.jsx(U.Fragment,{children:e.map(r=>O.createElement(M$,{...r,key:`tsr-meta-${JSON.stringify(r)}`,nonce:n}))})}var f0={exports:{}},Uu={},d0={exports:{}},h0={};var oC;function z$(){return oC||(oC=1,(function(e){function t(F,oe){var J=F.length;F.push(oe);e:for(;0>>1,fe=F[ve];if(0>>1;vei(ge,J))bei(Ee,ge)?(F[ve]=Ee,F[be]=J,ve=be):(F[ve]=ge,F[ee]=J,ve=ee);else if(bei(Ee,J))F[ve]=Ee,F[be]=J,ve=be;else break e}}return oe}function i(F,oe){var J=F.sortIndex-oe.sortIndex;return J!==0?J:F.id-oe.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var l=Date,f=l.now();e.unstable_now=function(){return l.now()-f}}var d=[],h=[],y=1,g=null,b=3,v=!1,_=!1,x=!1,R=!1,C=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function A(F){for(var oe=n(h);oe!==null;){if(oe.callback===null)r(h);else if(oe.startTime<=F)r(h),oe.sortIndex=oe.expirationTime,t(d,oe);else break;oe=n(h)}}function B(F){if(x=!1,A(F),!_)if(n(d)!==null)_=!0,j||(j=!0,G());else{var oe=n(h);oe!==null&&me(B,oe.startTime-F)}}var j=!1,H=-1,k=5,Q=-1;function ne(){return R?!0:!(e.unstable_now()-QF&&ne());){var ve=g.callback;if(typeof ve=="function"){g.callback=null,b=g.priorityLevel;var fe=ve(g.expirationTime<=F);if(F=e.unstable_now(),typeof fe=="function"){g.callback=fe,A(F),oe=!0;break t}g===n(d)&&r(d),A(F)}else r(d);g=n(d)}if(g!==null)oe=!0;else{var z=n(h);z!==null&&me(B,z.startTime-F),oe=!1}}break e}finally{g=null,b=J,v=!1}oe=void 0}}finally{oe?G():j=!1}}}var G;if(typeof D=="function")G=function(){D(re)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ue=te.port2;te.port1.onmessage=re,G=function(){ue.postMessage(null)}}else G=function(){C(re,0)};function me(F,oe){H=C(function(){F(e.unstable_now())},oe)}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(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125ve?(F.sortIndex=J,t(h,F),n(d)===null&&F===n(h)&&(x?(I(H),H=-1):x=!0,me(B,J-ve))):(F.sortIndex=fe,t(d,F),_||v||(_=!0,j||(j=!0,G()))),F},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(F){var oe=b;return function(){var J=b;b=oe;try{return F.apply(this,arguments)}finally{b=J}}}})(h0)),h0}var iC;function L$(){return iC||(iC=1,d0.exports=z$()),d0.exports}var aC;function B$(){if(aC)return Uu;aC=1;var e=L$(),t=yl(),n=h2();function r(s){var o="https://react.dev/errors/"+s;if(1fe||(s.current=ve[fe],ve[fe]=null,fe--)}function ge(s,o){fe++,ve[fe]=s.current,s.current=o}var be=z(null),Ee=z(null),_e=z(null),Ie=z(null);function Xe(s,o){switch(ge(_e,o),ge(Ee,s),ge(be,null),o.nodeType){case 9:case 11:s=(s=o.documentElement)&&(s=s.namespaceURI)?V1(s):0;break;default:if(s=o.tagName,o=o.namespaceURI)o=V1(o),s=G1(o,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}ee(be),ge(be,s)}function Se(){ee(be),ee(Ee),ee(_e)}function it(s){s.memoizedState!==null&&ge(Ie,s);var o=be.current,a=G1(o,s.type);o!==a&&(ge(Ee,s),ge(be,a))}function zt(s){Ee.current===s&&(ee(be),ee(Ee)),Ie.current===s&&(ee(Ie),Ou._currentValue=J)}var ye,xe;function we(s){if(ye===void 0)try{throw Error()}catch(a){var o=a.stack.trim().match(/\n( *(at )?)/);ye=o&&o[1]||"",xe=-1i.map(i=>d[i]); +function O$(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const c of i)if(c.type==="childList")for(const l of c.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const c={};return i.integrity&&(c.integrity=i.integrity),i.referrerPolicy&&(c.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?c.credentials="include":i.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(i){if(i.ep)return;i.ep=!0;const c=n(i);fetch(i.href,c)}})();var _Re=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function O2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wRe(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var O0={exports:{}},ef={};var mC;function M$(){if(mC)return ef;mC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,c){var l=null;if(c!==void 0&&(l=""+c),i.key!==void 0&&(l=""+i.key),"key"in i){c={};for(var f in i)f!=="key"&&(c[f]=i[f])}else c=i;return i=c.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:c}}return ef.Fragment=t,ef.jsx=n,ef.jsxs=n,ef}var gC;function D$(){return gC||(gC=1,O0.exports=M$()),O0.exports}var N=D$(),pm=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},k$={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},P$=class{#e=k$;#n=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Kb=new P$;function N$(e){setTimeout(e,0)}var hm=typeof window>"u"||"Deno"in globalThis;function Nr(){}function L$(e,t){return typeof e=="function"?e(t):e}function z$(e){return typeof e=="number"&&e>=0&&e!==1/0}function B$(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Qb(e,t){return typeof e=="function"?e(t):e}function $$(e,t){return typeof e=="function"?e(t):e}function yC(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:c,queryKey:l,stale:f}=e;if(l){if(r){if(t.queryHash!==Lv(l,t.options))return!1}else if(!Mf(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||i&&i!==t.state.fetchStatus||c&&!c(t))}function bC(e,t){const{exact:n,status:r,predicate:i,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(n){if(Of(t.options.mutationKey)!==Of(c))return!1}else if(!Mf(t.options.mutationKey,c))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Lv(e,t){return(t?.queryKeyHashFn||Of)(e)}function Of(e){return JSON.stringify(e,(t,n)=>Yb(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Mf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Mf(e[n],t[n])):!1}var U$=Object.prototype.hasOwnProperty;function M2(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=vC(e)&&vC(t);if(!r&&!(Yb(e)&&Yb(t)))return t;const c=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),f=l.length,d=r?new Array(f):{};let p=0;for(let b=0;b{Kb.setTimeout(t,e)})}function H$(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?M2(e,t):t}function V$(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function F$(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var zv=Symbol();function D2(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===zv?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function xRe(e,t){return typeof e=="function"?e(...t):!!e}function q$(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var G$=class extends pm{#e;#n;#t;constructor(){super(),this.#t=e=>{if(!hm&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},k2=new G$;function Z$(){let e,t;const n=new Promise((i,c)=>{e=i,t=c});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var K$=N$;function Q$(){let e=[],t=0,n=f=>{f()},r=f=>{f()},i=K$;const c=f=>{t?e.push(f):i(()=>{n(f)})},l=()=>{const f=e;e=[],f.length&&i(()=>{r(()=>{f.forEach(d=>{n(d)})})})};return{batch:f=>{let d;t++;try{d=f()}finally{t--,t||l()}return d},batchCalls:f=>(...d)=>{c(()=>{f(...d)})},schedule:c,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f},setScheduler:f=>{i=f}}}var cs=Q$(),Y$=class extends pm{#e=!0;#n;#t;constructor(){super(),this.#t=e=>{if(!hm&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Ch=new Y$;function X$(e){return Math.min(1e3*2**e,3e4)}function P2(e){return(e??"online")==="online"?Ch.isOnline():!0}var Xb=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function N2(e){let t=!1,n=0,r;const i=Z$(),c=()=>i.status!=="pending",l=E=>{if(!c()){const R=new Xb(E);v(R),e.onCancel?.(R)}},f=()=>{t=!0},d=()=>{t=!1},p=()=>k2.isFocused()&&(e.networkMode==="always"||Ch.isOnline())&&e.canRun(),b=()=>P2(e.networkMode)&&e.canRun(),g=E=>{c()||(r?.(),i.resolve(E))},v=E=>{c()||(r?.(),i.reject(E))},S=()=>new Promise(E=>{r=R=>{(c()||p())&&E(R)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),w=()=>{if(c())return;let E;const R=n===0?e.initialPromise:void 0;try{E=R??e.fn()}catch(C){E=Promise.reject(C)}Promise.resolve(E).then(g).catch(C=>{if(c())return;const O=e.retry??(hm?0:3),k=e.retryDelay??X$,T=typeof k=="function"?k(n,C):k,$=O===!0||typeof O=="number"&&np()?void 0:S()).then(()=>{t?v(C):w()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(r?.(),i),cancelRetry:f,continueRetry:d,canStart:b,start:()=>(b()?w():S().then(w),i)}}var L2=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),z$(this.gcTime)&&(this.#e=Kb.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(hm?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Kb.clearTimeout(this.#e),this.#e=void 0)}},W$=class extends L2{#e;#n;#t;#r;#s;#i;#a;constructor(e){super(),this.#a=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#t=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=wC(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#s?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=wC(this.options);t.data!==void 0&&(this.setState(_C(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(e,t){const n=H$(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#s?.promise;return this.#s?.cancel(e),t?t.then(Nr).catch(Nr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>$$(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===zv||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Qb(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!B$(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#s&&(this.#a?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#s?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,r=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},i=()=>{const f=D2(this.options,t),p=(()=>{const b={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(b),b})();return this.#a=!1,this.options.persister?this.options.persister(f,p,this):f(p)},l=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(f),f})();this.options.behavior?.onFetch(l,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#o({type:"fetch",meta:l.fetchOptions?.meta}),this.#s=N2({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:f=>{f instanceof Xb&&f.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(f,d)=>{this.#o({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const f=await this.#s.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#t.config.onSuccess?.(f,this),this.#t.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof Xb){if(f.silent)return this.#s.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#o({type:"error",error:f}),this.#t.config.onError?.(f,this),this.#t.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...J$(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,..._C(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?r:void 0,r;case"error":const i=e.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),cs.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:e})})}};function J$(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:P2(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function _C(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function wC(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}function EC(e){return{onFetch:(t,n)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},d=0;const p=async()=>{let b=!1;const g=w=>{q$(w,()=>t.signal,()=>b=!0)},v=D2(t.options,t.fetchOptions),S=async(w,E,R)=>{if(b)return Promise.reject();if(E==null&&w.pages.length)return Promise.resolve(w);const O=(()=>{const j={client:t.client,queryKey:t.queryKey,pageParam:E,direction:R?"backward":"forward",meta:t.options.meta};return g(j),j})(),k=await v(O),{maxPages:T}=t.options,$=R?F$:V$;return{pages:$(w.pages,k,T),pageParams:$(w.pageParams,E,T)}};if(i&&c.length){const w=i==="backward",E=w?e6:xC,R={pages:c,pageParams:l},C=E(r,R);f=await S(R,C,w)}else{const w=e??c.length;do{const E=d===0?l[0]??r.initialPageParam:xC(r,f);if(d>0&&E==null)break;f=await S(f,E),d++}while(dt.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=p}}}function xC(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function e6(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var t6=class extends L2{#e;#n;#t;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#n=[],this.state=e.state||n6(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#s({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=N2({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(c,l)=>{this.#s({type:"failed",failureCount:c,error:l})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const r=this.state.status==="pending",i=!this.#r.canStart();try{if(r)t();else{this.#s({type:"pending",variables:e,isPaused:i}),this.#t.config.onMutate&&await this.#t.config.onMutate(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#s({type:"pending",context:l,variables:e,isPaused:i})}const c=await this.#r.start();return await this.#t.config.onSuccess?.(c,e,this.state.context,this,n),await this.options.onSuccess?.(c,e,this.state.context,n),await this.#t.config.onSettled?.(c,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(c,null,e,this.state.context,n),this.#s({type:"success",data:c}),c}catch(c){try{await this.#t.config.onError?.(c,e,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onError?.(c,e,this.state.context,n)}catch(l){Promise.reject(l)}try{await this.#t.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,c,e,this.state.context,n)}catch(l){Promise.reject(l)}throw this.#s({type:"error",error:c}),c}finally{this.#t.runNext(this)}}#s(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),cs.batch(()=>{this.#n.forEach(n=>{n.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function n6(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var s6=class extends pm{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(e,t,n){const r=new t6({client:e,mutationCache:this,mutationId:++this.#t,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Vp(e);if(typeof t=="string"){const n=this.#n.get(t);n?n.push(e):this.#n.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Vp(e);if(typeof t=="string"){const n=this.#n.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#n.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Vp(e);if(typeof t=="string"){const r=this.#n.get(t)?.find(i=>i.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Vp(e);return typeof t=="string"?this.#n.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){cs.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>bC(t,n))}findAll(e={}){return this.getAll().filter(t=>bC(e,t))}notify(e){cs.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return cs.batch(()=>Promise.all(e.map(t=>t.continue().catch(Nr))))}};function Vp(e){return e.options.scope?.id}var r6=class extends pm{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,i=t.queryHash??Lv(r,t);let c=this.get(i);return c||(c=new W$({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(c)),c}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){cs.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>yC(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>yC(e,n)):t}notify(e){cs.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){cs.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){cs.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},o6=class{#e;#n;#t;#r;#s;#i;#a;#o;constructor(e={}){this.#e=e.queryCache||new r6,this.#n=e.mutationCache||new s6,this.#t=e.defaultOptions||{},this.#r=new Map,this.#s=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#a=k2.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=Ch.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Qb(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(r.queryHash)?.state.data,l=L$(t,c);if(l!==void 0)return this.#e.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return cs.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;cs.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return cs.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=cs.batch(()=>this.#e.findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Nr).catch(Nr)}invalidateQueries(e,t={}){return cs.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=cs.batch(()=>this.#e.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let c=i.fetch(void 0,n);return n.throwOnError||(c=c.catch(Nr)),i.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(r).then(Nr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Qb(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Nr).catch(Nr)}fetchInfiniteQuery(e){return e.behavior=EC(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Nr).catch(Nr)}ensureInfiniteQueryData(e){return e.behavior=EC(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ch.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#n}getDefaultOptions(){return this.#t}setDefaultOptions(e){this.#t=e}setQueryDefaults(e,t){this.#r.set(Of(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Mf(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#s.set(Of(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(r=>{Mf(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#t.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Lv(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===zv&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#t.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},M0={exports:{}},Ze={};var RC;function i6(){if(RC)return Ze;RC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function S(B){return B===null||typeof B!="object"?null:(B=v&&B[v]||B["@@iterator"],typeof B=="function"?B:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,R={};function C(B,ee,ge){this.props=B,this.context=ee,this.refs=R,this.updater=ge||w}C.prototype.isReactComponent={},C.prototype.setState=function(B,ee){if(typeof B!="object"&&typeof B!="function"&&B!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,ee,"setState")},C.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function O(){}O.prototype=C.prototype;function k(B,ee,ge){this.props=B,this.context=ee,this.refs=R,this.updater=ge||w}var T=k.prototype=new O;T.constructor=k,E(T,C.prototype),T.isPureReactComponent=!0;var $=Array.isArray;function j(){}var H={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function Y(B,ee,ge){var be=ge.ref;return{$$typeof:e,type:B,key:ee,ref:be!==void 0?be:null,props:ge}}function ne(B,ee){return Y(B.type,ee,B.props)}function re(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function G(B){var ee={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(ge){return ee[ge]})}var te=/\/+/g;function ue(B,ee){return typeof B=="object"&&B!==null&&B.key!=null?G(""+B.key):ee.toString(36)}function ye(B){switch(B.status){case"fulfilled":return B.value;case"rejected":throw B.reason;default:switch(typeof B.status=="string"?B.then(j,j):(B.status="pending",B.then(function(ee){B.status==="pending"&&(B.status="fulfilled",B.value=ee)},function(ee){B.status==="pending"&&(B.status="rejected",B.reason=ee)})),B.status){case"fulfilled":return B.value;case"rejected":throw B.reason}}throw B}function V(B,ee,ge,be,xe){var _e=typeof B;(_e==="undefined"||_e==="boolean")&&(B=null);var Te=!1;if(B===null)Te=!0;else switch(_e){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(B.$$typeof){case e:case t:Te=!0;break;case b:return Te=B._init,V(Te(B._payload),ee,ge,be,xe)}}if(Te)return xe=xe(B),Te=be===""?"."+ue(B,0):be,$(xe)?(ge="",Te!=null&&(ge=Te.replace(te,"$&/")+"/"),V(xe,ee,ge,"",function(Xe){return Xe})):xe!=null&&(re(xe)&&(xe=ne(xe,ge+(xe.key==null||B&&B.key===xe.key?"":(""+xe.key).replace(te,"$&/")+"/")+Te)),ee.push(xe)),1;Te=0;var Fe=be===""?".":be+":";if($(B))for(var Se=0;Se{const t=M.useContext(z2);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},a6=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.jsx(z2.Provider,{value:e,children:t}));var Yt=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(Yt||{});function $2({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:c,checkDirty:l,shallowPropagate:f};function r(p,b,g){const v=b.depsTail;if(v!==void 0&&v.dep===p)return;const S=v!==void 0?v.nextDep:b.deps;if(S!==void 0&&S.dep===p){S.version=g,b.depsTail=S;return}const w=p.subsTail;if(w!==void 0&&w.version===g&&w.sub===b)return;const E=b.depsTail=p.subsTail={version:g,dep:p,sub:b,prevDep:v,nextDep:S,prevSub:w,nextSub:void 0};S!==void 0&&(S.prevDep=E),v!==void 0?v.nextDep=E:b.deps=E,w!==void 0?w.nextSub=E:p.subs=E}function i(p,b=p.sub){const g=p.dep,v=p.prevDep,S=p.nextDep,w=p.nextSub,E=p.prevSub;return S!==void 0?S.prevDep=v:b.depsTail=v,v!==void 0?v.nextDep=S:b.deps=S,w!==void 0?w.prevSub=E:g.subsTail=E,E!==void 0?E.nextSub=w:(g.subs=w)===void 0&&n(g),S}function c(p){let b=p.nextSub,g;e:do{const v=p.sub;let S=v.flags;if(S&60?S&12?S&4?!(S&48)&&d(p,v)?(v.flags=S|40,S&=1):S=0:v.flags=S&-9|32:S=0:v.flags=S|32,S&2&&t(v),S&1){const w=v.subs;if(w!==void 0){const E=(p=w).nextSub;E!==void 0&&(g={value:b,prev:g},b=E);continue}}if((p=b)!==void 0){b=p.nextSub;continue}for(;g!==void 0;)if(p=g.value,g=g.prev,p!==void 0){b=p.nextSub;continue e}break}while(!0)}function l(p,b){let g,v=0,S=!1;e:do{const w=p.dep,E=w.flags;if(b.flags&16)S=!0;else if((E&17)===17){if(e(w)){const R=w.subs;R.nextSub!==void 0&&f(R),S=!0}}else if((E&33)===33){(p.nextSub!==void 0||p.prevSub!==void 0)&&(g={value:p,prev:g}),p=w.deps,b=w,++v;continue}if(!S){const R=p.nextDep;if(R!==void 0){p=R;continue}}for(;v--;){const R=b.subs,C=R.nextSub!==void 0;if(C?(p=g.value,g=g.prev):p=R,S){if(e(b)){C&&f(R),b=p.sub;continue}S=!1}else b.flags&=-33;b=p.sub;const O=p.nextDep;if(O!==void 0){p=O;continue e}}return S}while(!0)}function f(p){do{const b=p.sub,g=b.flags;(g&48)===32&&(b.flags=g|16,(g&6)===2&&t(b))}while((p=p.nextSub)!==void 0)}function d(p,b){let g=b.depsTail;for(;g!==void 0;){if(g===p)return!0;g=g.prevDep}return!1}}let $v=0,Va=0,vf=0;const Po=[],{link:RRe,unlink:U2,propagate:CRe,checkDirty:c6,shallowPropagate:ARe}=$2({update(e){return e.depsTail!==void 0?d6(e):p6(e)},notify(e){let t=vf,n=t;do if(Po[t++]=e,e.flags&=-3,e=e.subs?.sub,e===void 0||!(e.flags&2))break;while(!0);for(vf=t;n<--t;){const r=Po[n];Po[n++]=Po[t],Po[t]=r}},unwatched(e){e.flags&1?e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,mm(e)):g6.call(e)}});function l6(){return $v}function u6(){++$v}function f6(){--$v||m6()}function d6(e){e.depsTail=void 0,e.flags=5;try{const t=e.value;return t!==(e.value=e.getter(t))}finally{e.flags&=-5,mm(e)}}function p6(e){return e.flags=1,e.currentValue!==(e.currentValue=e.pendingValue)}function h6(e){const t=e.flags;if(t&16||t&32&&c6(e.deps,e)){e.depsTail=void 0,e.flags=6;try{e.fn()}finally{e.flags&=-5,mm(e)}}else e.flags=2}function m6(){try{for(;Va0)){for(;Fp{i.get(),f.current?l.next?.(i._snapshot):f.current=!0});return{unsubscribe:()=>{d.stop()}}},_update(c){const l=Zr,f=Object.is;Zr=i,++hh,i.depsTail=void 0,n&&(i.flags=Yt.Mutable|Yt.RecursedCheck);try{const d=i._snapshot,p=typeof c=="function"?c(d):c===void 0&&n?r(d):c;return d===void 0||!f(d,p)?(i._snapshot=p,!0):!1}finally{Zr=l,n&&(i.flags&=~Yt.RecursedCheck),Ah(i)}}};return n?(i.flags=Yt.Mutable|Yt.Dirty,i.get=function(){const c=i.flags;if(c&Yt.Dirty||c&Yt.Pending&&H2(i.deps,i)){if(i._update()){const l=i.subs;l!==void 0&&TC(l)}}else c&Yt.Pending&&(i.flags=c&~Yt.Pending);return Zr!==void 0&&AC(i,Zr,hh),i._snapshot}):i.set=function(c){if(i._update(c)){const l=i.subs;l!==void 0&&(b6(l),TC(l),V2())}},i}function S6(e){const t=()=>{const r=Zr;Zr=n,++hh,n.depsTail=void 0,n.flags=Yt.Watching|Yt.RecursedCheck;try{return e()}finally{Zr=r,n.flags&=~Yt.RecursedCheck,Ah(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Yt.Watching|Yt.RecursedCheck,notify(){const r=this.flags;r&Yt.Dirty||r&Yt.Pending&&H2(this.deps,this)?t():this.flags=Yt.Watching},stop(){this.flags=Yt.None,this.depsTail=void 0,Ah(this)}};return t(),n}let _6=class{constructor(t){this.atom=v6(t)}setState(t){this.atom.set(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(j2(t))}};function w6(e){try{u6(),e()}finally{f6(),V2()}}const Xi="__TSR_index",IC="popstate",OC="beforeunload";function E6(e){let t=e.getLocation();const n=new Set,r=l=>{t=e.getLocation(),n.forEach(f=>f({location:t,action:l}))},i=l=>{e.notifyOnIndexChange??!0?r(l):t=e.getLocation()},c=async({task:l,navigateOpts:f,...d})=>{if(f?.ignoreBlocker??!1){l();return}const b=e.getBlockers?.()??[],g=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&b.length&&g)for(const v of b){const S=Th(d.path,d.state);if(await v.blockerFn({currentLocation:t,nextLocation:S,action:d.type})){e.onBlocked?.();return}}l()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:l=>(n.add(l),()=>{n.delete(l)}),push:(l,f,d)=>{const p=t.state[Xi];f=MC(p+1,f),c({task:()=>{e.pushState(l,f),r({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:l,state:f})},replace:(l,f,d)=>{const p=t.state[Xi];f=MC(p,f),c({task:()=>{e.replaceState(l,f),r({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:l,state:f})},go:(l,f)=>{c({task:()=>{e.go(l),i({type:"GO",index:l})},navigateOpts:f,type:"GO"})},back:l=>{c({task:()=>{e.back(l?.ignoreBlocker??!1),i({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{c({task:()=>{e.forward(l?.ignoreBlocker??!1),i({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>t.state[Xi]!==0,createHref:l=>e.createHref(l),block:l=>{if(!e.setBlockers)return()=>{};const f=e.getBlockers?.()??[];return e.setBlockers([...f,l]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(p=>p!==l))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function MC(e,t){t||(t={});const n=Uv();return{...t,key:n,__TSR_key:n,[Xi]:e}}function x6(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let i=[];const c=()=>i,l=P=>i=P,f=(P=>P),d=(()=>Th(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const P=Uv();t.history.replaceState({[Xi]:0,key:P,__TSR_key:P},"")}let p=d(),b,g=!1,v=!1,S=!1,w=!1;const E=()=>p;let R,C;const O=()=>{R&&(H._ignoreSubscribers=!0,(R.isPush?t.history.pushState:t.history.replaceState)(R.state,"",R.href),H._ignoreSubscribers=!1,R=void 0,C=void 0,b=void 0)},k=(P,Y,ne)=>{const re=f(Y);C||(b=p),p=Th(Y,ne),R={href:re,state:ne,isPush:R?.isPush||P==="push"},C||(C=Promise.resolve().then(()=>O()))},T=P=>{p=d(),H.notify({type:P})},$=async()=>{if(v){v=!1;return}const P=d(),Y=P.state[Xi]-p.state[Xi],ne=Y===1,re=Y===-1,G=!ne&&!re||g;g=!1;const te=G?"GO":re?"BACK":"FORWARD",ue=G?{type:"GO",index:Y}:{type:re?"BACK":"FORWARD"};if(S)S=!1;else{const ye=c();if(typeof document<"u"&&ye.length){for(const V of ye)if(await V.blockerFn({currentLocation:p,nextLocation:P,action:te})){v=!0,t.history.go(1),H.notify(ue);return}}}p=d(),H.notify(ue)},j=P=>{if(w){w=!1;return}let Y=!1;const ne=c();if(typeof document<"u"&&ne.length)for(const re of ne){const G=re.enableBeforeUnload??!0;if(G===!0){Y=!0;break}if(typeof G=="function"&&G()===!0){Y=!0;break}}if(Y)return P.preventDefault(),P.returnValue=""},H=E6({getLocation:E,getLength:()=>t.history.length,pushState:(P,Y)=>k("push",P,Y),replaceState:(P,Y)=>k("replace",P,Y),back:P=>(P&&(S=!0),w=!0,t.history.back()),forward:P=>{P&&(S=!0),w=!0,t.history.forward()},go:P=>{g=!0,t.history.go(P)},createHref:P=>f(P),flush:O,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(OC,j,{capture:!0}),t.removeEventListener(IC,$)},onBlocked:()=>{b&&p!==b&&(p=b)},getBlockers:c,setBlockers:l,notifyOnIndexChange:!1});return t.addEventListener(OC,j,{capture:!0}),t.addEventListener(IC,$),t.history.pushState=function(...P){const Y=n.apply(t.history,P);return H._ignoreSubscribers||T("PUSH"),Y},t.history.replaceState=function(...P){const Y=r.apply(t.history,P);return H._ignoreSubscribers||T("REPLACE"),Y},H}function R6(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Th(e,t){const n=R6(e),r=n.indexOf("#"),i=n.indexOf("?"),c=Uv();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):"",search:i>-1?n.slice(i,r===-1?void 0:r):"",state:t||{[Xi]:0,key:c,__TSR_key:c}}}function Uv(){return(Math.random()+1).toString(36).substring(7)}const C6=!1;function Sf(e){let t;return w6(()=>{t=e()}),t}function Df(e){return e[e.length-1]}function A6(e){return typeof e=="function"}function Gi(e,t){return A6(e)?e(t):e}const T6=Object.prototype.hasOwnProperty,DC=Object.prototype.propertyIsEnumerable;function Bs(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=t,i=NC(e)&&NC(r);if(!i&&!(Ih(e)&&Ih(r)))return r;const c=i?e:kC(e);if(!c)return r;const l=i?r:kC(r);if(!l)return r;const f=c.length,d=l.length,p=i?new Array(d):{};let b=0;for(let g=0;g"u")return!0;const n=t.prototype;return!(!PC(n)||!n.hasOwnProperty("isPrototypeOf"))}function PC(e){return Object.prototype.toString.call(e)==="[object Object]"}function NC(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Xa(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;ri||!Xa(e[l],t[l],n)))return!1;return i===c}return!1}function Cl(e){let t,n;const r=new Promise((i,c)=>{t=i,n=c});return r.status="pending",r.resolve=i=>{r.status="resolved",r.value=i,t(i),e?.(i)},r.reject=i=>{r.status="rejected",n(i)},r}function I6(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function yl(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function O6(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function LC(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return O6(t)}const M6=["http:","https:","mailto:","tel:"];function Oh(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}const D6={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},k6=/[&><\u2028\u2029]/g;function P6(e){return e.replace(k6,t=>D6[t])}function tf(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,r="",i;for(;(i=t.exec(e))!==null;)r+=LC(e.slice(n,i.index))+i[0],n=t.lastIndex;r=r+LC(n?e.slice(n):e);let c=!1;return r.startsWith("//")&&(c=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:c}}function N6(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}var L6="Invariant failed";function $o(e,t){if(!e)throw new Error(L6)}function Mh(e){const t=new Map;let n,r;const i=c=>{c.next&&(c.prev?(c.prev.next=c.next,c.next.prev=c.prev,c.next=void 0,r&&(r.next=c,c.prev=r)):(c.next.prev=void 0,n=c.next,c.next=void 0,r&&(c.prev=r,r.next=c)),r=c)};return{get(c){const l=t.get(c);if(l)return i(l),l.value},set(c,l){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===r&&(r=void 0)}const f=t.get(c);if(f)f.value=l,i(f);else{const d={key:c,value:l,prev:r};r&&(r.next=d),r=d,n||(n=d),t.set(c,d)}},clear(){t.clear(),n=void 0,r=void 0}}}const Al=0,nc=1,sc=2,kf=3,Za=4,F2=5;function z6(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function jv(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),i=r===-1?e.length:r,c=e.substring(t,i);if(!c||!c.includes("$"))return n[0]=Al,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(c==="$"){const f=e.length;return n[0]=sc,n[1]=t,n[2]=t,n[3]=f,n[4]=f,n[5]=f,n}if(c.charCodeAt(0)===36)return n[0]=nc,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;const l=z6(c);if(l){const[f,d]=l,p=c.charCodeAt(f+1);if(p===45){if(f+2!P.skipOnParamError&&P.caseSensitive===T&&P.prefix===$&&P.suffix===j);if(H)w=H;else{const P=k0(nc,n.fullPath??n.from,T,$,j);w=P,P.depth=c,P.parent=i,i.dynamic??=[],i.dynamic.push(P)}break}case kf:{const O=d.substring(E,S[1]),k=d.substring(S[4],R),T=b&&!!(O||k),$=O?T?O:O.toLowerCase():void 0,j=k?T?k:k.toLowerCase():void 0,H=!g&&i.optional?.find(P=>!P.skipOnParamError&&P.caseSensitive===T&&P.prefix===$&&P.suffix===j);if(H)w=H;else{const P=k0(kf,n.fullPath??n.from,T,$,j);w=P,P.parent=i,P.depth=c,i.optional??=[],i.optional.push(P)}break}case sc:{const O=d.substring(E,S[1]),k=d.substring(S[4],R),T=b&&!!(O||k),$=O?T?O:O.toLowerCase():void 0,j=k?T?k:k.toLowerCase():void 0,H=k0(sc,n.fullPath??n.from,T,$,j);w=H,H.parent=i,H.depth=c,i.wildcard??=[],i.wildcard.push(H)}}i=w}if(g&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const S=Ka(n.fullPath??n.from);S.kind=F2,S.parent=i,c++,S.depth=c,i.pathless??=[],i.pathless.push(S),i=S}const v=(n.path||!n.children)&&!n.isRoot;if(v&&d.endsWith("/")){const S=Ka(n.fullPath??n.from);S.kind=Za,S.parent=i,c++,S.depth=c,i.index=S,i=S}i.parse=n.options?.params?.parse??null,i.skipOnParamError=g,i.parsingPriority=n.options?.skipRouteOnParseError?.priority??0,v&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(const d of n.children)gm(e,t,d,f,i,c,l)}function D0(e,t){if(e.skipOnParamError&&!t.skipOnParamError)return-1;if(!e.skipOnParamError&&t.skipOnParamError)return 1;if(e.skipOnParamError&&t.skipOnParamError&&(e.parsingPriority||t.parsingPriority))return t.parsingPriority-e.parsingPriority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function qi(e){if(e.pathless)for(const t of e.pathless)qi(t);if(e.static)for(const t of e.static.values())qi(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())qi(t);if(e.dynamic?.length){e.dynamic.sort(D0);for(const t of e.dynamic)qi(t)}if(e.optional?.length){e.optional.sort(D0);for(const t of e.optional)qi(t)}if(e.wildcard?.length){e.wildcard.sort(D0);for(const t of e.wildcard)qi(t)}}function Ka(e){return{kind:Al,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function k0(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:n,prefix:r,suffix:i}}function B6(e,t){const n=Ka("/"),r=new Uint16Array(6);for(const i of e)gm(!1,r,i,1,n,0);qi(n),t.masksTree=n,t.flatCache=Mh(1e3)}function $6(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const r=Hv(e,t.masksTree);return t.flatCache.set(e,r),r}function U6(e,t,n,r,i){e||="/",r||="/";const c=t?`case\0${e}`:e;let l=i.singleCache.get(c);if(!l){l=Ka("/");const f=new Uint16Array(6);gm(t,f,{from:e},1,l,0),i.singleCache.set(c,l)}return Hv(r,l,n)}function j6(e,t,n=!1){const r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||="/";let c;try{c=Hv(e,t.segmentTree,n)}catch(l){if(l instanceof URIError)c=null;else throw l}return c&&(c.branch=F6(c.route)),t.matchCache.set(r,c),c}function H6(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function V6(e,t=!1,n){const r=Ka(e.fullPath),i=new Uint16Array(6),c={},l={};let f=0;return gm(t,i,e,1,r,0,p=>{if(n?.(p,f),$o(!(p.id in c),`Duplicate routes found with id: ${String(p.id)}`),c[p.id]=p,f!==0&&p.path){const b=H6(p.fullPath);(!l[b]||p.fullPath.endsWith("/"))&&(l[b]=p)}f++}),qi(r),{processedTree:{segmentTree:r,singleCache:Mh(1e3),matchCache:Mh(1e3),flatCache:null,masksTree:null},routesById:c,routesByPath:l}}function Hv(e,t,n=!1){const r=e.split("/"),i=G6(e,r,t,n);if(!i)return null;const[c]=q2(e,r,i);return{route:i.node.route,rawParams:c,parsedParams:i.parsedParams}}function q2(e,t,n){const r=q6(n.node);let i=null;const c={};let l=n.extract?.part??0,f=n.extract?.node??0,d=n.extract?.path??0,p=n.extract?.segment??0;for(;f=0;re--){const G=v.optional[re];f.push({node:G,index:S,skipped:Y,depth:ne,statics:R,dynamics:C,optionals:O,extract:k,rawParams:T,parsedParams:$})}if(!j)for(let re=v.optional.length-1;re>=0;re--){const G=v.optional[re],{prefix:te,suffix:ue}=G;if(te||ue){const ye=G.caseSensitive?H:P??=H.toLowerCase();if(te&&!ye.startsWith(te)||ue&&!ye.endsWith(ue))continue}f.push({node:G,index:S+1,skipped:w,depth:ne,statics:R,dynamics:C,optionals:O+1,extract:k,rawParams:T,parsedParams:$})}}if(!j&&v.dynamic&&H)for(let Y=v.dynamic.length-1;Y>=0;Y--){const ne=v.dynamic[Y],{prefix:re,suffix:G}=ne;if(re||G){const te=ne.caseSensitive?H:P??=H.toLowerCase();if(re&&!te.startsWith(re)||G&&!te.endsWith(G))continue}f.push({node:ne,index:S+1,skipped:w,depth:E+1,statics:R,dynamics:C+1,optionals:O,extract:k,rawParams:T,parsedParams:$})}if(!j&&v.staticInsensitive){const Y=v.staticInsensitive.get(P??=H.toLowerCase());Y&&f.push({node:Y,index:S+1,skipped:w,depth:E+1,statics:R+1,dynamics:C,optionals:O,extract:k,rawParams:T,parsedParams:$})}if(!j&&v.static){const Y=v.static.get(H);Y&&f.push({node:Y,index:S+1,skipped:w,depth:E+1,statics:R+1,dynamics:C,optionals:O,extract:k,rawParams:T,parsedParams:$})}if(v.pathless){const Y=E+1;for(let ne=v.pathless.length-1;ne>=0;ne--){const re=v.pathless[ne];f.push({node:re,index:S,skipped:w,depth:Y,statics:R,dynamics:C,optionals:O,extract:k,rawParams:T,parsedParams:$})}}}if(b&&d)return nf(d,b)?b:d;if(b)return b;if(d)return d;if(r&&p){let g=p.index;for(let S=0;Se.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Za)>(e.node.kind===Za)||t.node.kind===Za==(e.node.kind===Za)&&t.depth>e.depth))):!0}function mh(e){return Vv(e.filter(t=>t!==void 0).join("/"))}function Vv(e){return e.replace(/\/{2,}/g,"/")}function G2(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Lo(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function Z2(e){return Lo(G2(e))}function Dh(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function Z6(e,t,n){return Dh(e,n)===Dh(t,n)}function K6({base:e,to:t,trailingSlash:n="never",cache:r}){const i=t.startsWith("/"),c=!i&&t===".";let l;if(r){l=i?t:c?e:e+"\0"+t;const g=r.get(l);if(g)return g}let f;if(c)f=e.split("/");else if(i)f=t.split("/");else{for(f=e.split("/");f.length>1&&Df(f)==="";)f.pop();const g=t.split("/");for(let v=0,S=g.length;v1&&(Df(f)===""?n==="never"&&f.pop():n==="always"&&f.push(""));let d,p="";for(let g=0;g0&&(p+="/");const v=f[g];if(!v)continue;d=jv(v,0,d);const S=d[0];if(S===Al){p+=v;continue}const w=d[5],E=v.substring(0,d[1]),R=v.substring(d[4],w),C=v.substring(d[2],d[3]);S===nc?p+=E||R?`${E}{$${C}}${R}`:`$${C}`:S===sc?p+=E||R?`${E}{$}${R}`:"$":p+=`${E}{-$${C}}${R}`}p=Vv(p);const b=p||"/";return l&&r&&r.set(l,b),b}function Q6(e){const t=new Map(e.map(i=>[encodeURIComponent(i),i])),n=Array.from(t.keys()).map(i=>i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(n,"g");return i=>i.replace(r,c=>t.get(c)??c)}function N0(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(i=>zC(i,n)).join("/"):zC(r,n)}function L0({path:e,params:t,decoder:n,...r}){let i=!1;const c={};if(!e||e==="/")return{interpolatedPath:"/",usedParams:c,isMissingParams:i};if(!e.includes("$"))return{interpolatedPath:e,usedParams:c,isMissingParams:i};const l=e.length;let f=0,d,p="";for(;f{let n;return(...r)=>{n||(n=setTimeout(()=>{e(...r),n=null},t))}};function W6(){const e=Y6();if(!e)return null;const t=e.getItem(ev);let n=t?JSON.parse(t):{};return{state:n,set:r=>{n=Gi(r,n)||n;try{e.setItem(ev,JSON.stringify(n))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const qp=W6(),J6=e=>e.state.__TSR_key||e.href;function eU(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let kh=!1;function tU({storageKey:e,key:t,behavior:n,shouldScrollRestoration:r,scrollToTopSelectors:i,location:c}){let l;try{l=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(p){console.error(p);return}const f=t||window.history.state?.__TSR_key,d=l[f];kh=!0;e:{if(r&&d&&Object.keys(d).length>0){for(const g in d){const v=d[g];if(g==="window")window.scrollTo({top:v.scrollY,left:v.scrollX,behavior:n});else if(g){const S=document.querySelector(g);S&&(S.scrollLeft=v.scrollX,S.scrollTop=v.scrollY)}}break e}const p=(c??window.location).hash.split("#",2)[1];if(p){const g=window.history.state?.__hashScrollIntoViewOptions??!0;if(g){const v=document.getElementById(p);v&&v.scrollIntoView(g)}break e}const b={top:0,left:0,behavior:n};if(window.scrollTo(b),i)for(const g of i){if(g==="window")continue;const v=typeof g=="function"?g():document.querySelector(g);v&&v.scrollTo(b)}}kh=!1}function nU(e,t){if(!qp||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!qp))return;e.isScrollRestorationSetup=!0,kh=!1;const r=e.options.getScrollRestorationKey||J6;window.history.scrollRestoration="manual";const i=c=>{if(kh||!e.isScrollRestoring)return;let l="";if(c.target===document||c.target===window)l="window";else{const d=c.target.getAttribute("data-scroll-restoration-id");d?l=`[data-scroll-restoration-id="${d}"]`:l=eU(c.target)}const f=r(e.state.location);qp.set(d=>{const p=d[f]||={},b=p[l]||={};if(l==="window")b.scrollX=window.scrollX||0,b.scrollY=window.scrollY||0;else if(l){const g=document.querySelector(l);g&&(b.scrollX=g.scrollLeft||0,b.scrollY=g.scrollTop||0)}return d})};typeof document<"u"&&document.addEventListener("scroll",X6(i,100),!0),e.subscribe("onRendered",c=>{const l=r(c.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(tU({storageKey:ev,key:l,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&qp.set(f=>(f[l]||={},f)))})}function sU(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function rU(e,t=String){const n=new URLSearchParams;for(const r in e){const i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function z0(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function oU(e){const t=new URLSearchParams(e),n={};for(const[r,i]of t.entries()){const c=n[r];c==null?n[r]=z0(i):Array.isArray(c)?c.push(z0(i)):n[r]=[c,z0(i)]}return n}const iU=cU(JSON.parse),aU=lU(JSON.stringify,JSON.parse);function cU(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=oU(t);for(const r in n){const i=n[r];if(typeof i=="string")try{n[r]=e(i)}catch{}}return n}}function lU(e,t){const n=typeof t=="function";function r(i){if(typeof i=="object"&&i!==null)try{return e(i)}catch{}else if(n&&typeof i=="string")try{return t(i),e(i)}catch{}return i}return i=>{const c=rU(i,r);return c?`?${c}`:""}}const hr="__root__";function Fv(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function yr(e){return e instanceof Response&&!!e.options}const gh=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},ym=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),bl=(e,t,n=!0)=>{const r={...e.router.options.context??{}},i=n?t:t-1;for(let c=0;c<=i;c++){const l=e.matches[c];if(!l)continue;const f=e.router.getMatch(l.id);f&&Object.assign(r,f.__routeContext,f.__beforeLoadContext)}return r},K2=(e,t,n)=>{const r=e.router.routesById[t.routeId??""]??e.router.routeTree;!r.options.notFoundComponent&&e.router.options?.defaultNotFoundComponent&&(r.options.notFoundComponent=e.router.options.defaultNotFoundComponent);const i=n==="BEFORE_LOAD"&&r.parentRoute;i||$o(r.options.notFoundComponent);const c=e.matches.find(l=>l.routeId===r.id);$o(c,"Could not find match for route: "+r.id),e.updateMatch(c.id,l=>({...l,status:"notFound",error:t,isFetching:!1})),i&&(t.routeId=r.parentRoute.id,K2(e,t,n))},Zi=(e,t,n,r)=>{if(!(!yr(n)&&!Fs(n))){if(yr(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const i=yr(n)?"redirected":"notFound";t._nonReactive.error=n,e.updateMatch(t.id,c=>({...c,status:i,context:bl(e,t.index),isFetching:!1,error:n})),Fs(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()}throw yr(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(K2(e,n,r),n)}},Q2=(e,t)=>!!e.router.getMatch(t)._nonReactive.dehydrated,sf=(e,t,n,r)=>{const{id:i,routeId:c}=e.matches[t],l=e.router.looseRoutesById[c];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,Zi(e,e.router.getMatch(i),n,r);try{l.options.onError?.(n)}catch(f){n=f,Zi(e,e.router.getMatch(i),n,r)}e.updateMatch(i,f=>(f._nonReactive.beforeLoadPromise?.resolve(),f._nonReactive.beforeLoadPromise=void 0,f._nonReactive.loadPromise?.resolve(),{...f,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},Y2=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const i=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!ym(e,t)&&(n.options.loader||n.options.beforeLoad||J2(n))&&typeof i=="number"&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent))){const l=setTimeout(()=>{gh(e)},i);r._nonReactive.pendingTimeout=l}},uU=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Y2(e,t,n,r);const i=()=>{const c=e.router.getMatch(t);c.preload&&(c.status==="redirected"||c.status==="notFound")&&Zi(e,c,c.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},fU=(e,t,n,r)=>{const i=e.router.getMatch(t),c=i._nonReactive.loadPromise;i._nonReactive.loadPromise=Cl(()=>{c?.resolve()});const{paramsError:l,searchError:f}=i;l&&sf(e,n,l,"PARSE_PARAMS"),f&&sf(e,n,f,"VALIDATE_SEARCH"),Y2(e,t,r,i);const d=new AbortController;let p=!1;const b=()=>{p||(p=!0,e.updateMatch(t,T=>({...T,isFetching:"beforeLoad",fetchCount:T.fetchCount+1,abortController:d})))},g=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,T=>({...T,isFetching:!1}))};if(!r.options.beforeLoad){Sf(()=>{b(),g()});return}i._nonReactive.beforeLoadPromise=Cl();const v={...bl(e,n,!1),...i.__routeContext},{search:S,params:w,cause:E}=i,R=ym(e,t),C={search:S,abortController:d,params:w,preload:R,context:v,location:e.location,navigate:T=>e.router.navigate({...T,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:R?"preload":E,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},O=T=>{if(T===void 0){Sf(()=>{b(),g()});return}(yr(T)||Fs(T))&&(b(),sf(e,n,T,"BEFORE_LOAD")),Sf(()=>{b(),e.updateMatch(t,$=>({...$,__beforeLoadContext:T})),g()})};let k;try{if(k=r.options.beforeLoad(C),yl(k))return b(),k.catch(T=>{sf(e,n,T,"BEFORE_LOAD")}).then(O)}catch(T){b(),sf(e,n,T,"BEFORE_LOAD")}O(k)},dU=(e,t)=>{const{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],c=()=>f(),l=()=>fU(e,n,t,i),f=()=>{if(Q2(e,n))return;const d=uU(e,n,i);return yl(d)?d.then(l):l()};return c()},pU=(e,t,n)=>{const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([c,l,f])=>{const d=c?.meta,p=c?.links,b=c?.scripts,g=c?.styles;return{meta:d,links:p,headScripts:b,headers:f,scripts:l,styles:g}})},X2=(e,t,n,r)=>{const i=e.matchPromises[n-1],{params:c,loaderDeps:l,abortController:f,cause:d}=e.router.getMatch(t),p=bl(e,n),b=ym(e,t);return{params:c,deps:l,preload:!!b,parentMatchPromise:i,abortController:f,context:p,location:e.location,navigate:g=>e.router.navigate({...g,_fromLocation:e.location}),cause:b?"preload":d,route:r,...e.router.options.additionalContext}},BC=async(e,t,n,r)=>{try{const i=e.router.getMatch(t);try{(!(C6??e.router.isServer)||i.ssr===!0)&&W2(r);const c=r.options.loader?.(X2(e,t,n,r)),l=r.options.loader&&yl(c);if((l||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||i._nonReactive.minPendingPromise)&&e.updateMatch(t,p=>({...p,isFetching:"loader"})),r.options.loader){const p=l?await c:c;Zi(e,e.router.getMatch(t),p),p!==void 0&&e.updateMatch(t,b=>({...b,loaderData:p}))}r._lazyPromise&&await r._lazyPromise;const d=i._nonReactive.minPendingPromise;d&&await d,r._componentsPromise&&await r._componentsPromise,e.updateMatch(t,p=>({...p,error:void 0,context:bl(e,n),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(c){let l=c;if(l?.name==="AbortError"){if(i.abortController.signal.aborted){i._nonReactive.loaderPromise?.resolve(),i._nonReactive.loaderPromise=void 0;return}e.updateMatch(t,d=>({...d,status:d.status==="pending"?"success":d.status,isFetching:!1,context:bl(e,n)}));return}const f=i._nonReactive.minPendingPromise;f&&await f,Fs(c)&&await r.options.notFoundComponent?.preload?.(),Zi(e,e.router.getMatch(t),c);try{r.options.onError?.(c)}catch(d){l=d,Zi(e,e.router.getMatch(t),d)}e.updateMatch(t,d=>({...d,error:l,context:bl(e,n),status:"error",isFetching:!1}))}}catch(i){const c=e.router.getMatch(t);c&&(c._nonReactive.loaderPromise=void 0),Zi(e,c,i)}},hU=async(e,t)=>{async function n(b,g,v,S){const w=Date.now()-g.updatedAt,E=b?S.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:S.options.staleTime??e.router.options.defaultStaleTime??0,R=S.options.shouldReload,C=typeof R=="function"?R(X2(e,r,t,S)):R,{status:O,invalid:k}=v;c=O==="success"&&(k||(C??w>E)),b&&S.options.preload===!1||(c&&!e.sync?(l=!0,(async()=>{try{await BC(e,r,t,S);const T=e.router.getMatch(r);T._nonReactive.loaderPromise?.resolve(),T._nonReactive.loadPromise?.resolve(),T._nonReactive.loaderPromise=void 0}catch(T){yr(T)&&await e.router.navigate(T.options)}})()):(O!=="success"||c&&e.sync)&&await BC(e,r,t,S))}const{id:r,routeId:i}=e.matches[t];let c=!1,l=!1;const f=e.router.looseRoutesById[i];if(!Q2(e,r)){const b=e.router.getMatch(r),g=ym(e,r);if(b._nonReactive.loaderPromise){if(b.status==="success"&&!e.sync&&!b.preload)return b;await b._nonReactive.loaderPromise;const v=e.router.getMatch(r),S=v._nonReactive.error||v.error;S&&Zi(e,v,S),v.status==="pending"&&await n(g,b,v,f)}else{const v=g&&!e.router.state.matches.some(w=>w.id===r),S=e.router.getMatch(r);S._nonReactive.loaderPromise=Cl(),v!==S.preload&&e.updateMatch(r,w=>({...w,preload:v})),await n(g,b,S,f)}}const d=e.router.getMatch(r);l||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve()),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,l||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;const p=l?d.isFetching:!1;return p!==d.isFetching||d.invalid!==!1?(e.updateMatch(r,b=>({...b,isFetching:p,invalid:!1})),e.router.getMatch(r)):d};async function $C(e){const t=Object.assign(e,{matchPromises:[]});t.router.state.matches.some(n=>n._forcePending)&&gh(t);try{for(let f=0;ff.status==="rejected").map(f=>f.reason);let c;for(const f of i){if(yr(f))throw f;!c&&Fs(f)&&(c=f)}for(const f of t.matches){const{id:d,routeId:p}=f,b=t.router.looseRoutesById[p];try{const g=pU(t,d,b);if(g){const v=await g;t.updateMatch(d,S=>({...S,...v}))}}catch(g){console.error(`Error executing head for route ${p}:`,g)}}if(c)throw c;const l=gh(t);yl(l)&&await l}catch(n){if(Fs(n)&&!t.preload){const r=gh(t);throw yl(r)&&await r,n}if(yr(n))throw n}return t.matches}async function W2(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{const n=[];for(const r of eO){const i=e.options[r]?.preload;i&&n.push(i())}if(n.length)return Promise.all(n).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function J2(e){for(const t of eO)if(e.options[t]?.preload)return!0;return!1}const eO=["component","errorComponent","pendingComponent","notFoundComponent"];function mU(e){return{input:({url:t})=>{for(const n of e)t=tv(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=tO(e[n],t);return t}}}function gU(e){const t=Z2(e.basepath),n=`/${t}`,r=`${n}/`,i=e.caseSensitive?n:n.toLowerCase(),c=e.caseSensitive?r:r.toLowerCase();return{input:({url:l})=>{const f=e.caseSensitive?l.pathname:l.pathname.toLowerCase();return f===i?l.pathname="/":f.startsWith(c)&&(l.pathname=l.pathname.slice(n.length)),l},output:({url:l})=>(l.pathname=mh(["/",t,l.pathname]),l)}}function tv(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function tO(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Wa(e){const t=e.resolvedLocation,n=e.location,r=t?.pathname!==n.pathname,i=t?.href!==n.href,c=t?.hash!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:r,hrefChanged:i,hashChanged:c}}function yU(e){const t=e.filter(n=>n.status!=="redirected");return t.length===e.length?e:t}class bU{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>n(),this.update=n=>{n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const r=this.options,i=this.basepath??r?.basepath??"/",c=this.basepath===void 0,l=r?.rewrite;if(this.options={...r,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Q6(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=x6()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let v;this.resolvePathCache=Mh(1e3),v=this.buildRouteTree(),this.setRoutes(v)}!this.__store&&this.latestLocation&&(this.__store=new _6(SU(this.latestLocation)),nU(this));let f=!1;const d=this.options.basepath??"/",p=this.options.rewrite;if(c||i!==d||l!==p){this.basepath=d;const v=[],S=Z2(d);S&&S!=="/"&&v.push(gU({basepath:d})),p&&v.push(p),this.rewrite=v.length===0?void 0:v.length===1?v[0]:mU(v),this.history&&this.updateLatestLocation(),f=!0}f&&this.__store&&this.__store.setState(v=>({...v,location:this.latestLocation})),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=V6(this.routeTree,this.options.caseSensitive,(r,i)=>{r.init({originalIndex:i})});return this.options.routeMasks&&B6(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,r)=>{const i={eventType:n,fn:r};return this.subscribers.add(i),()=>{this.subscribers.delete(i)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const i=({pathname:d,search:p,hash:b,href:g,state:v})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(d)){const O=this.options.parseSearch(p),k=this.options.stringifySearch(O);return{href:d+k+b,publicHref:g,pathname:tf(d).path,external:!1,searchStr:k,search:Bs(r?.search,O),hash:tf(b.slice(1)).path,state:Bs(r?.state,v)}}const S=new URL(g,this.origin),w=tv(this.rewrite,S),E=this.options.parseSearch(w.search),R=this.options.stringifySearch(E);return w.search=R,{href:w.href.replace(w.origin,""),publicHref:g,pathname:tf(w.pathname).path,external:!!this.rewrite&&w.origin!==this.origin,searchStr:R,search:Bs(r?.search,E),hash:tf(w.hash.slice(1)).path,state:Bs(r?.state,v)}},c=i(n),{__tempLocation:l,__tempKey:f}=c.state;if(l&&(!f||f===this.tempLocationKey)){const d=i(l);return d.state.key=c.state.key,d.state.__TSR_key=c.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:c}}return c},this.resolvePathWithBase=(n,r)=>K6({base:n,to:Vv(r),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,r,i)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},i):this.matchRoutesInternal(n,r),this.getMatchedRoutes=n=>_U({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const n=this.state.matches.filter(c=>c.status==="pending"),r=this.state.matches.filter(c=>c.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...r]).forEach(c=>{this.cancelMatch(c.id)})},this.buildLocation=n=>{const r=(c={})=>{const l=c._fromLocation||this.pendingBuiltLocation||this.latestLocation,f=this.matchRoutesLightweight(l);c.from;const d=c.unsafeRelative==="path"?l.pathname:c.from??f.fullPath,p=this.resolvePathWithBase(d,"."),b=f.search,g={...f.params},v=c.to?this.resolvePathWithBase(p,`${c.to}`):this.resolvePathWithBase(p,"."),S=c.params===!1||c.params===null?{}:(c.params??!0)===!0?g:Object.assign(g,Gi(c.params,g)),w=L0({path:v,params:S,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath,E=this.getMatchedRoutes(w);let R=E.matchedRoutes;(E.foundRoute?E.foundRoute.path!=="/"&&E.routeParams["**"]:Lo(w))&&this.options.notFoundRoute&&(R=[...R,this.options.notFoundRoute]);let O=!1;if(Object.keys(S).length>0)for(const te of R){const ue=te.options.params?.stringify??te.options.stringifyParams;if(ue)try{Object.assign(S,ue(S)),O=!0}catch{}}const k=n.leaveParams?v:tf(O?L0({path:v,params:S,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath:w).path;let T=b;if(n._includeValidateSearch&&this.options.search?.strict){const te={};R.forEach(ue=>{if(ue.options.validateSearch)try{Object.assign(te,yh(ue.options.validateSearch,{...te,...T}))}catch{}}),T=te}T=wU({search:T,dest:c,destRoutes:R,_includeValidateSearch:n._includeValidateSearch}),T=Bs(b,T);const $=this.options.stringifySearch(T),j=c.hash===!0?l.hash:c.hash?Gi(c.hash,l.hash):void 0,H=j?`#${j}`:"";let P=c.state===!0?l.state:c.state?Gi(c.state,l.state):{};P=Bs(l.state,P);const Y=`${k}${$}${H}`;let ne,re,G=!1;if(this.rewrite){const te=new URL(Y,this.origin),ue=tO(this.rewrite,te);ne=te.href.replace(te.origin,""),ue.origin!==this.origin?(re=ue.href,G=!0):re=ue.pathname+ue.search+ue.hash}else ne=N6(Y),re=ne;return{publicHref:re,href:ne,pathname:k,search:T,searchStr:$,state:P,hash:j??"",external:G,unmaskOnReload:c.unmaskOnReload}},i=(c={},l)=>{const f=r(c);let d=l?r(l):void 0;if(!d){const p={};if(this.options.routeMasks){const b=$6(f.pathname,this.processedTree);if(b){Object.assign(p,b.rawParams);const{from:g,params:v,...S}=b.route,w=v===!1||v===null?{}:(v??!0)===!0?p:Object.assign(p,Gi(v,p));l={from:n.from,...S,params:w},d=r(l)}}}return d&&(f.maskedLocation=d),f};return n.mask?i(n,{from:n.from,...n.mask}):i(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:r,...i})=>{const c=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(b=>{i.state[b]=this.latestLocation.state[b]});const p=Xa(i.state,this.latestLocation.state);return d.forEach(b=>{delete i.state[b]}),p},l=Lo(this.latestLocation.href)===Lo(i.href),f=this.commitLocationPromise;if(this.commitLocationPromise=Cl(()=>{f?.resolve()}),l&&c())this.load();else{let{maskedLocation:d,hashScrollIntoView:p,...b}=i;d&&(b={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...b,search:b.searchStr,state:{...b.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(b.unmaskOnReload??this.options.unmaskOnReload??!1)&&(b.state.__tempKey=this.tempLocationKey)),b.state.__hashScrollIntoViewOptions=p??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[i.replace?"replace":"push"](b.publicHref,b.state,{ignoreBlocker:r})}return this.resetNextScroll=i.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:i,viewTransition:c,ignoreBlocker:l,href:f,...d}={})=>{if(f){const g=this.history.location.state.__TSR_index,v=Th(f,{__TSR_index:n?g:g+1}),S=new URL(v.pathname,this.origin),w=tv(this.rewrite,S);d.to=w.pathname,d.search=this.options.parseSearch(v.search),d.hash=v.hash.slice(1)}const p=this.buildLocation({...d,_includeValidateSearch:!0});this.pendingBuiltLocation=p;const b=this.commitLocation({...p,viewTransition:c,replace:n,resetScroll:r,hashScrollIntoView:i,ignoreBlocker:l});return Promise.resolve().then(()=>{this.pendingBuiltLocation===p&&(this.pendingBuiltLocation=void 0)}),b},this.navigate=async({to:n,reloadDocument:r,href:i,publicHref:c,...l})=>{let f=!1;if(i)try{new URL(`${i}`),f=!0}catch{}if(f&&!r&&(r=!0),r){if(n!==void 0||!i){const p=this.buildLocation({to:n,...l});i=i??p.publicHref,c=c??p.publicHref}const d=!f&&c?c:i;if(Oh(d,this.protocolAllowlist))return Promise.resolve();if(!l.ignoreBlocker){const b=this.history.getBlockers?.()??[];for(const g of b)if(g?.blockerFn&&await g.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return l.replace?window.location.replace(d):window.location.href=d,Promise.resolve()}return this.buildAndCommitLocation({...l,href:i,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation);this.__store.setState(r=>({...r,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:r.cachedMatches.filter(i=>!n.some(c=>c.id===i.id))}))},this.load=async n=>{let r,i,c;for(c=new Promise(f=>{this.startTransition(async()=>{try{this.beforeLoad();const d=this.latestLocation,p=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Wa({resolvedLocation:p,location:d})}),this.emit({type:"onBeforeLoad",...Wa({resolvedLocation:p,location:d})}),await $C({router:this,sync:n?.sync,matches:this.state.pendingMatches,location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=[],g=[],v=[];Sf(()=>{this.__store.setState(S=>{const w=S.matches,E=S.pendingMatches||S.matches;return b=w.filter(R=>!E.some(C=>C.id===R.id)),g=E.filter(R=>!w.some(C=>C.id===R.id)),v=E.filter(R=>w.some(C=>C.id===R.id)),{...S,isLoading:!1,loadedAt:Date.now(),matches:E,pendingMatches:void 0,cachedMatches:[...S.cachedMatches,...b.filter(R=>R.status!=="error"&&R.status!=="notFound"&&R.status!=="redirected")]}}),this.clearExpiredCache()}),[[b,"onLeave"],[g,"onEnter"],[v,"onStay"]].forEach(([S,w])=>{S.forEach(E=>{this.looseRoutesById[E.routeId].options[w]?.(E)})})})})}})}catch(d){yr(d)?(r=d,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):Fs(d)&&(i=d),this.__store.setState(p=>({...p,statusCode:r?r.status:i?404:p.matches.some(b=>b.status==="error")?500:200,redirect:r}))}this.latestLoadPromise===c&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),f()})}),this.latestLoadPromise=c,await c;this.latestLoadPromise&&c!==this.latestLoadPromise;)await this.latestLoadPromise;let l;this.hasNotFoundMatch()?l=404:this.__store.state.matches.some(f=>f.status==="error")&&(l=500),l!==void 0&&this.__store.setState(f=>({...f,statusCode:l}))},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let i;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const c=this.latestLocation,l=this.state.resolvedLocation,f=typeof r.types=="function"?r.types(Wa({resolvedLocation:l,location:c})):r.types;if(f===!1){n();return}i={update:n,types:f}}else i=n;document.startViewTransition(i)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{const i=this.state.pendingMatches?.some(c=>c.id===n)?"pendingMatches":this.state.matches.some(c=>c.id===n)?"matches":this.state.cachedMatches.some(c=>c.id===n)?"cachedMatches":"";i&&(i==="cachedMatches"?this.__store.setState(c=>({...c,cachedMatches:yU(c.cachedMatches.map(l=>l.id===n?r(l):l))})):this.__store.setState(c=>({...c,[i]:c[i]?.map(l=>l.id===n?r(l):l)})))})},this.getMatch=n=>{const r=i=>i.id===n;return this.state.cachedMatches.find(r)??this.state.pendingMatches?.find(r)??this.state.matches.find(r)},this.invalidate=n=>{const r=i=>n?.filter?.(i)??!0?{...i,invalid:!0,...n?.forcePending||i.status==="error"||i.status==="notFound"?{status:"pending",error:void 0}:void 0}:i;return this.__store.setState(i=>({...i,matches:i.matches.map(r),cachedMatches:i.cachedMatches.map(r),pendingMatches:i.pendingMatches?.map(r)})),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const r=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const i=n.options._builtLocation??this.buildLocation(n.options),c=this.getParsedLocationHref(i);n.options.href=c,n.headers.set("Location",c)}else if(r)try{const i=new URL(r);if(this.origin&&i.origin===this.origin){const c=i.pathname+i.search+i.hash;n.options.href=c,n.headers.set("Location",c)}}catch{}if(n.options.href&&!n.options._builtLocation&&Oh(n.options.href,this.protocolAllowlist))throw new Error(`Redirect blocked: unsafe protocol in href "${n.options.href}". Allowed protocols: ${Array.from(this.protocolAllowlist).join(", ")}.`);return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const r=n?.filter;r!==void 0?this.__store.setState(i=>({...i,cachedMatches:i.cachedMatches.filter(c=>!r(c))})):this.__store.setState(i=>({...i,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=r=>{const i=this.looseRoutesById[r.routeId];if(!i.options.loader)return!0;const c=(r.preload?i.options.preloadGcTime??this.options.defaultPreloadGcTime:i.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:Date.now()-r.updatedAt>=c};this.clearCache({filter:n})},this.loadRouteChunk=W2,this.preloadRoute=async n=>{const r=n._builtLocation??this.buildLocation(n);let i=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const c=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(f=>f.id)),l=new Set([...c,...this.state.cachedMatches.map(f=>f.id)]);Sf(()=>{i.forEach(f=>{l.has(f.id)||this.__store.setState(d=>({...d,cachedMatches:[...d.cachedMatches,f]}))})});try{return i=await $C({router:this,matches:i,location:r,preload:!0,updateMatch:(f,d)=>{c.has(f)?i=i.map(p=>p.id===f?d(p):p):this.updateMatch(f,d)}}),i}catch(f){if(yr(f))return f.options.reloadDocument?void 0:await this.preloadRoute({...f.options,_fromLocation:r});Fs(f)||console.error(f);return}},this.matchRoute=(n,r)=>{const i={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},c=this.buildLocation(i);if(r?.pending&&this.state.status!=="pending")return!1;const f=(r?.pending===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,d=U6(c.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,f.pathname,this.processedTree);return!d||n.params&&!Xa(d.rawParams,n.params,{partial:!0})?!1:r?.includeSearch??!0?Xa(f.search,c.search,{partial:!0})?d.rawParams:!1:d.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??aU,parseSearch:t.parseSearch??iU,protocolAllowlist:t.protocolAllowlist??M6}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:t,routesByPath:n,processedTree:r}){this.routesById=t,this.routesByPath=n,this.processedTree=r;const i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999}),this.routesById[i.id]=i)}get looseRoutesById(){return this.routesById}getParentContext(t){return t?.id?t.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,n){const r=this.getMatchedRoutes(t.pathname),{foundRoute:i,routeParams:c,parsedParams:l}=r;let{matchedRoutes:f}=r,d=!1;(i?i.path!=="/"&&c["**"]:Lo(t.pathname))&&(this.options.notFoundRoute?f=[...f,this.options.notFoundRoute]:d=!0);const p=d?xU(this.options.notFoundMode,f):void 0,b=new Array(f.length),g=new Map(this.state.matches.map(v=>[v.routeId,v]));for(let v=0;vthis.navigate({...T,_fromLocation:t}),buildLocation:this.buildLocation,cause:S.cause,abortController:S.abortController,preload:!!S.preload,matches:b,routeId:w.id};S.__routeContext=w.options.context(k)??void 0}S.context={...O,...S.__routeContext,...S.__beforeLoadContext}}}return b}matchRoutesLightweight(t){const{matchedRoutes:n,routeParams:r,parsedParams:i}=this.getMatchedRoutes(t.pathname),c=Df(n),l={...t.search};for(const b of n)try{Object.assign(l,yh(b.options.validateSearch,l))}catch{}const f=Df(this.state.matches),d=f&&f.routeId===c.id&&t.pathname===this.state.location.pathname;let p;if(d)p=f.params;else{const b={...r};for(const g of n)try{UC(g,r,i??{},b)}catch{}p=b}return{matchedRoutes:n,fullPath:c.fullPath,search:l,params:p}}}class Ph extends Error{}class vU extends Error{}function SU(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function yh(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Ph("Async validation not supported");if(n.issues)throw new Ph(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function _U({pathname:e,routesById:t,processedTree:n}){const r={},i=Lo(e);let c,l;const f=j6(i,n,!0);return f&&(c=f.route,Object.assign(r,f.rawParams),l=Object.assign({},f.parsedParams)),{matchedRoutes:f?.branch||[t[hr]],routeParams:r,foundRoute:c,parsedParams:l}}function wU({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return EU(n)(e,t,r??!1)}function EU(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const i of e){if("search"in i.options)i.options.search?.middlewares&&t.middlewares.push(...i.options.search.middlewares);else if(i.options.preSearchFilters||i.options.postSearchFilters){const c=({search:l,next:f})=>{let d=l;"preSearchFilters"in i.options&&i.options.preSearchFilters&&(d=i.options.preSearchFilters.reduce((b,g)=>g(b),l));const p=f(d);return"postSearchFilters"in i.options&&i.options.postSearchFilters?i.options.postSearchFilters.reduce((b,g)=>g(b),p):p};t.middlewares.push(c)}if(i.options.validateSearch){const c=({search:l,next:f})=>{const d=f(l);if(!t._includeValidateSearch)return d;try{return{...d,...yh(i.options.validateSearch,d)??void 0}}catch{return d}};t.middlewares.push(c)}}const n=({search:i})=>{const c=t.dest;return c.search?c.search===!0?i:Gi(c.search,i):{}};t.middlewares.push(n);const r=(i,c,l)=>{if(i>=l.length)return c;const f=l[i];return f({search:c,next:p=>r(i+1,p,l)})};return function(c,l,f){return t.dest=l,t._includeValidateSearch=f,r(0,c,t.middlewares)}}function xU(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.children)return r.id}return hr}function UC(e,t,n,r){const i=e.options.params?.parse??e.options.parseParams;if(i)if(e.options.skipRouteOnParseError)for(const c in t)c in n&&(r[c]=n[c]);else{const c=i(r);Object.assign(r,c)}}const RU="Error preloading route! ☝️";class nO{constructor(t){if(this.init=n=>{this.originalIndex=n.originalIndex;const r=this.options,i=!r?.path&&!r?.id;this.parentRoute=this.options.getParentRoute?.(),i?this._path=hr:this.parentRoute||$o(!1);let c=i?hr:r?.path;c&&c!=="/"&&(c=G2(c));const l=r?.id||c;let f=i?hr:mh([this.parentRoute.id===hr?"":this.parentRoute.id,l]);c===hr&&(c="/"),f!==hr&&(f=mh(["/",f]));const d=f===hr?"/":mh([this.parentRoute.fullPath,c]);this._path=c,this._id=f,this._fullPath=d,this._to=Lo(d)},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.redirect=n=>Fv({from:this.fullPath,...n}),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class CU extends nO{constructor(t){super(t)}}const AU="use",jC=Bv[AU],Gp=typeof window<"u"?M.useLayoutEffect:M.useEffect;function B0(e){const t=M.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function TU(e,t,n={},r={}){M.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const i=new IntersectionObserver(([c])=>{t(c)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function IU(e){const t=M.useRef(null);return M.useImperativeHandle(e,()=>t.current,[]),t}function qv(e){const t=e.errorComponent??Gv;return N.jsx(OU,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?M.createElement(t,{error:n,reset:r}):e.children})}class OU extends M.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Gv({error:e}){const[t,n]=M.useState(!1);return N.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[N.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[N.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),N.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),N.jsx("div",{style:{height:".25rem"}}),t?N.jsx("div",{children:N.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?N.jsx("code",{children:e.message}):null})}):null]})}function MU({children:e,fallback:t=null}){return Zv()?N.jsx(Rl.Fragment,{children:e}):N.jsx(Rl.Fragment,{children:t})}function Zv(){return Rl.useSyncExternalStore(DU,()=>!0,()=>!1)}function DU(){return()=>{}}var $0={exports:{}},U0={},j0={exports:{}},H0={};var HC;function kU(){if(HC)return H0;HC=1;var e=zl();function t(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,c=e.useLayoutEffect,l=e.useDebugValue;function f(g,v){var S=v(),w=r({inst:{value:S,getSnapshot:v}}),E=w[0].inst,R=w[1];return c(function(){E.value=S,E.getSnapshot=v,d(E)&&R({inst:E})},[g,S,v]),i(function(){return d(E)&&R({inst:E}),g(function(){d(E)&&R({inst:E})})},[g]),l(S),S}function d(g){var v=g.getSnapshot;g=g.value;try{var S=v();return!n(g,S)}catch{return!0}}function p(g,v){return v()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:f;return H0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:b,H0}var VC;function sO(){return VC||(VC=1,j0.exports=kU()),j0.exports}var FC;function PU(){if(FC)return U0;FC=1;var e=zl(),t=sO();function n(p,b){return p===b&&(p!==0||1/p===1/b)||p!==p&&b!==b}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,c=e.useRef,l=e.useEffect,f=e.useMemo,d=e.useDebugValue;return U0.useSyncExternalStoreWithSelector=function(p,b,g,v,S){var w=c(null);if(w.current===null){var E={hasValue:!1,value:null};w.current=E}else E=w.current;w=f(function(){function C(j){if(!O){if(O=!0,k=j,j=v(j),S!==void 0&&E.hasValue){var H=E.value;if(S(H,j))return T=H}return T=j}if(H=T,r(k,j))return H;var P=v(j);return S!==void 0&&S(H,P)?(k=j,H):(k=j,T=P)}var O=!1,k,T,$=g===void 0?null:g;return[function(){return C(b())},$===null?void 0:function(){return C($())}]},[b,g,v,S]);var R=i(p,w[0],w[1]);return l(function(){E.hasValue=!0,E.value=R},[R]),d(R),R},U0}var qC;function NU(){return qC||(qC=1,$0.exports=PU()),$0.exports}var rO=NU();function LU(e,t){return e===t}function zU(e,t,n=LU){const r=M.useCallback(l=>{if(!e)return()=>{};const{unsubscribe:f}=e.subscribe(l);return f},[e]),i=M.useCallback(()=>e?.get(),[e]);return rO.useSyncExternalStoreWithSelector(r,i,i,t,n)}const V0=M.createContext(null);function oO(){return typeof document>"u"?V0:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=V0,V0)}function ns(e){const t=M.useContext(oO());return e?.warn,t}function Mn(e){const t=ns({warn:e?.router===void 0}),n=e?.router||t,r=M.useRef(void 0);return zU(n.__store,i=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const c=Bs(r.current,e.select(i));return r.current=c,c}return e.select(i)}return i})}const bm=M.createContext(void 0),BU=M.createContext(void 0);function Wr(e){const t=M.useContext(e.from?BU:bm);return Mn({select:r=>{const i=r.matches.find(c=>e.from?e.from===c.routeId:c.id===t);if($o(!((e.shouldThrow??!0)&&!i),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),i!==void 0)return e.select?e.select(i):i},structuralSharing:e.structuralSharing})}function Kv(e){return Wr({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Qv(e){const{select:t,...n}=e;return Wr({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function Yv(e){return Wr({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Xv(e){return Wr({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function vm(e){const t=ns();return M.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}var F0={exports:{}},Qn={};var GC;function $U(){if(GC)return Qn;GC=1;var e=zl();function t(d){var p="https://react.dev/errors/"+d;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),F0.exports=$U(),F0.exports}var na=iO();function UU(e,t){const n=ns(),r=IU(t),{activeProps:i,inactiveProps:c,activeOptions:l,to:f,preload:d,preloadDelay:p,hashScrollIntoView:b,replace:g,startTransition:v,resetScroll:S,viewTransition:w,children:E,target:R,disabled:C,style:O,className:k,onClick:T,onFocus:$,onMouseEnter:j,onMouseLeave:H,onTouchStart:P,ignoreBlocker:Y,params:ne,search:re,hash:G,state:te,mask:ue,reloadDocument:ye,unsafeRelative:V,from:oe,_fromLocation:J,...ve}=e,fe=Zv(),B=Mn({select:dt=>{const $t=dt.matches[dt.matches.length-1];return{search:$t?.search,hash:dt.location.hash,path:$t?.pathname}},structuralSharing:!0}),ee=e.from,ge=M.useMemo(()=>({...e,from:ee}),[n,B,ee,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),be=M.useMemo(()=>n.buildLocation({...ge}),[n,ge]),xe=be.maskedLocation?be.maskedLocation.publicHref:be.publicHref,_e=be.maskedLocation?be.maskedLocation.external:be.external,Te=M.useMemo(()=>GU(xe,_e,n.history,C),[C,_e,xe,n.history]),Fe=M.useMemo(()=>{if(Te?.external)return Oh(Te.href,n.protocolAllowlist)?void 0:Te.href;if(!ZU(f)&&!(typeof f!="string"||f.indexOf(":")===-1))try{return new URL(f),Oh(f,n.protocolAllowlist)?void 0:f}catch{}},[f,Te,n.protocolAllowlist]),Se=Mn({select:dt=>{if(Fe)return!1;if(l?.exact){if(!Z6(dt.location.pathname,be.pathname,n.basepath))return!1}else{const $t=Dh(dt.location.pathname,n.basepath),mt=Dh(be.pathname,n.basepath);if(!($t.startsWith(mt)&&($t.length===mt.length||$t[mt.length]==="/")))return!1}return(l?.includeSearch??!0)&&!Xa(dt.location.search,be.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?fe&&dt.location.hash===be.hash:!0}}),Xe=Se?Gi(i,{})??jU:q0,_t=Se?q0:Gi(c,{})??q0,me=[k,Xe.className,_t.className].filter(Boolean).join(" "),Ee=(O||Xe.style||_t.style)&&{...O,...Xe.style,..._t.style},[we,qe]=M.useState(!1),Oe=M.useRef(!1),je=e.reloadDocument||Fe?!1:d??n.options.defaultPreload,De=p??n.options.defaultPreloadDelay??0,nt=M.useCallback(()=>{n.preloadRoute({...ge,_builtLocation:be}).catch(dt=>{console.warn(dt),console.warn(RU)})},[n,ge,be]),Bt=M.useCallback(dt=>{dt?.isIntersecting&&nt()},[nt]);TU(r,Bt,qU,{disabled:!!C||je!=="viewport"}),M.useEffect(()=>{Oe.current||!C&&je==="render"&&(nt(),Oe.current=!0)},[C,nt,je]);const We=dt=>{const $t=dt.currentTarget.getAttribute("target"),mt=R!==void 0?R:$t;if(!C&&!KU(dt)&&!dt.defaultPrevented&&(!mt||mt==="_self")&&dt.button===0){dt.preventDefault(),na.flushSync(()=>{qe(!0)});const Os=n.subscribe("onResolved",()=>{Os(),qe(!1)});n.navigate({...ge,replace:g,resetScroll:S,hashScrollIntoView:b,startTransition:v,viewTransition:w,ignoreBlocker:Y})}};if(Fe)return{...ve,ref:r,href:Fe,...E&&{children:E},...R&&{target:R},...C&&{disabled:C},...O&&{style:O},...k&&{className:k},...T&&{onClick:T},...$&&{onFocus:$},...j&&{onMouseEnter:j},...H&&{onMouseLeave:H},...P&&{onTouchStart:P}};const Tt=dt=>{C||je&&nt()},Rn=Tt,It=dt=>{if(!(C||!je))if(!De)nt();else{const $t=dt.target;if(rf.has($t))return;const mt=setTimeout(()=>{rf.delete($t),nt()},De);rf.set($t,mt)}},Tr=dt=>{if(C||!je||!De)return;const $t=dt.target,mt=rf.get($t);mt&&(clearTimeout(mt),rf.delete($t))};return{...ve,...Xe,..._t,href:Te?.href,ref:r,onClick:of([T,We]),onFocus:of([$,Tt]),onMouseEnter:of([j,It]),onMouseLeave:of([H,Tr]),onTouchStart:of([P,Rn]),disabled:!!C,target:R,...Ee&&{style:Ee},...me&&{className:me},...C&&HU,...Se&&VU,...fe&&we&&FU}}const q0={},jU={className:"active"},HU={role:"link","aria-disabled":!0},VU={"data-status":"active","aria-current":"page"},FU={"data-transitioning":"transitioning"},rf=new WeakMap,qU={rootMargin:"100px"},of=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function GU(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function ZU(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}const $s=M.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:i,...c}=UU(r,t),l=typeof r.children=="function"?r.children({isActive:c["data-status"]==="active"}):r.children;if(!n){const{disabled:f,...d}=c;return M.createElement("a",d,l)}return M.createElement(n,c,l)});function KU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let QU=class extends nO{constructor(t){super(t),this.useMatch=n=>Wr({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Wr({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Xv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>Yv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Qv({...n,from:this.id}),this.useLoaderData=n=>Kv({...n,from:this.id}),this.useNavigate=()=>vm({from:this.fullPath}),this.Link=Rl.forwardRef((n,r)=>N.jsx($s,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}};function YU(e){return new QU(e)}function XU(){return e=>JU(e)}class WU extends CU{constructor(t){super(t),this.useMatch=n=>Wr({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Wr({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Xv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>Yv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Qv({...n,from:this.id}),this.useLoaderData=n=>Kv({...n,from:this.id}),this.useNavigate=()=>vm({from:this.fullPath}),this.Link=Rl.forwardRef((n,r)=>N.jsx($s,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function JU(e){return new WU(e)}function St(e){return typeof e=="object"?new KC(e,{silent:!0}).createRoute(e):new KC(e,{silent:!0}).createRoute}class KC{constructor(t,n){this.path=t,this.createRoute=r=>{this.silent;const i=YU(r);return i.isRoot=!1,i},this.silent=n?.silent}}class QC{constructor(t){this.useMatch=n=>Wr({select:n?.select,from:this.options.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Wr({from:this.options.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Xv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useParams=n=>Yv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>Qv({...n,from:this.options.id}),this.useLoaderData=n=>Kv({...n,from:this.options.id}),this.useNavigate=()=>{const n=ns();return vm({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function YC(e){return typeof e=="object"?new QC(e):t=>new QC({id:e,...t})}function At(e,t){let n,r,i,c;const l=()=>(n||(n=e().then(d=>{n=void 0,r=d[t]}).catch(d=>{if(i=d,I6(i)&&i instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const p=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(p)||(sessionStorage.setItem(p,"1"),c=!0)}})),n),f=function(p){if(c)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(jC)jC(l());else throw l();return M.createElement(r,p)};return f.preload=l,f}function e8(){const e=ns(),t=M.useRef({router:e,mounted:!1}),[n,r]=M.useState(!1),{hasPendingMatches:i,isLoading:c}=Mn({select:g=>({isLoading:g.isLoading,hasPendingMatches:g.matches.some(v=>v.status==="pending")}),structuralSharing:!0}),l=B0(c),f=c||n||i,d=B0(f),p=c||i,b=B0(p);return e.startTransition=g=>{r(!0),M.startTransition(()=>{g(),r(!1)})},M.useEffect(()=>{const g=e.history.subscribe(e.load),v=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Lo(e.latestLocation.publicHref)!==Lo(v.publicHref)&&e.commitLocation({...v,replace:!0}),()=>{g()}},[e,e.history]),Gp(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(v){console.error(v)}})()},[e]),Gp(()=>{l&&!c&&e.emit({type:"onLoad",...Wa(e.state)})},[l,e,c]),Gp(()=>{b&&!p&&e.emit({type:"onBeforeRouteMount",...Wa(e.state)})},[p,b,e]),Gp(()=>{if(d&&!f){const g=Wa(e.state);e.emit({type:"onResolved",...g}),e.__store.setState(v=>({...v,status:"idle",resolvedLocation:v.location})),g.hrefChanged&&sU(e)}},[f,d,e]),null}function t8(e){const t=Mn({select:n=>`not-found-${n.location.pathname}-${n.status}`});return N.jsx(qv,{getResetKey:()=>t,onCatch:(n,r)=>{if(Fs(n))e.onCatch?.(n,r);else throw n},errorComponent:({error:n})=>{if(Fs(n))return e.fallback?.(n);throw n},children:e.children})}function n8(){return N.jsx("p",{children:"Not Found"})}function hl(e){return N.jsx(N.Fragment,{children:e.children})}function aO(e,t,n){return t.options.notFoundComponent?N.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?N.jsx(e.options.defaultNotFoundComponent,{...n}):N.jsx(n8,{})}function s8(){return ns().isScrollRestoring,null}const cO=M.memo(function({matchId:t}){const n=ns(),r=Mn({select:E=>{const R=E.matches.findIndex(O=>O.id===t),C=E.matches[R];return $o(C),{routeId:C.routeId,ssr:C.ssr,_displayPending:C._displayPending,resetKey:E.loadedAt,parentRouteId:E.matches[R-1]?.routeId}},structuralSharing:!0}),i=n.routesById[r.routeId],c=i.options.pendingComponent??n.options.defaultPendingComponent,l=c?N.jsx(c,{}):null,f=i.options.errorComponent??n.options.defaultErrorComponent,d=i.options.onCatch??n.options.defaultOnCatch,p=i.isRoot?i.options.notFoundComponent??n.options.notFoundRoute?.options.component:i.options.notFoundComponent,b=r.ssr===!1||r.ssr==="data-only",g=(!i.isRoot||i.options.wrapInSuspense||b)&&(i.options.wrapInSuspense??c??(i.options.errorComponent?.preload||b))?M.Suspense:hl,v=f?qv:hl,S=p?t8:hl,w=i.isRoot?i.options.shellComponent??hl:hl;return N.jsxs(w,{children:[N.jsx(bm.Provider,{value:t,children:N.jsx(g,{fallback:l,children:N.jsx(v,{getResetKey:()=>r.resetKey,errorComponent:f||Gv,onCatch:(E,R)=>{if(Fs(E))throw E;d?.(E,R)},children:N.jsx(S,{fallback:E=>{if(!p||E.routeId&&E.routeId!==r.routeId||!E.routeId&&!i.isRoot)throw E;return M.createElement(p,E)},children:b||r._displayPending?N.jsx(MU,{fallback:l,children:N.jsx(XC,{matchId:t})}):N.jsx(XC,{matchId:t})})})})}),r.parentRouteId===hr&&n.options.scrollRestoration?N.jsxs(N.Fragment,{children:[N.jsx(r8,{}),N.jsx(s8,{})]}):null]})});function r8(){const e=ns(),t=M.useRef(void 0);return N.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...Wa(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const XC=M.memo(function({matchId:t}){const n=ns(),{match:r,key:i,routeId:c}=Mn({select:d=>{const p=d.matches.find(w=>w.id===t),b=p.routeId,v=(n.routesById[b].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:b,loaderDeps:p.loaderDeps,params:p._strictParams,search:p._strictSearch});return{key:v?JSON.stringify(v):void 0,routeId:b,match:{id:p.id,status:p.status,error:p.error,invalid:p.invalid,_forcePending:p._forcePending,_displayPending:p._displayPending}}},structuralSharing:!0}),l=n.routesById[c],f=M.useMemo(()=>{const d=l.options.component??n.options.defaultComponent;return d?N.jsx(d,{},i):N.jsx(lO,{})},[i,l.options.component,n.options.defaultComponent]);if(r._displayPending)throw n.getMatch(r.id)?._nonReactive.displayPendingPromise;if(r._forcePending)throw n.getMatch(r.id)?._nonReactive.minPendingPromise;if(r.status==="pending"){const d=l.options.pendingMinMs??n.options.defaultPendingMinMs;if(d){const p=n.getMatch(r.id);if(p&&!p._nonReactive.minPendingPromise){const b=Cl();p._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),p._nonReactive.minPendingPromise=void 0},d)}}throw n.getMatch(r.id)?._nonReactive.loadPromise}if(r.status==="notFound")return $o(Fs(r.error)),aO(n,l,r.error);if(r.status==="redirected")throw $o(yr(r.error)),n.getMatch(r.id)?._nonReactive.loadPromise;if(r.status==="error")throw r.error;return f}),lO=M.memo(function(){const t=ns(),n=M.useContext(bm),r=Mn({select:p=>p.matches.find(b=>b.id===n)?.routeId}),i=t.routesById[r],c=Mn({select:p=>{const g=p.matches.find(v=>v.id===n);return $o(g),g.globalNotFound}}),l=Mn({select:p=>{const b=p.matches,g=b.findIndex(v=>v.id===n);return b[g+1]?.id}}),f=t.options.defaultPendingComponent?N.jsx(t.options.defaultPendingComponent,{}):null;if(c)return aO(t,i,void 0);if(!l)return null;const d=N.jsx(cO,{matchId:l});return r===hr?N.jsx(M.Suspense,{fallback:f,children:d}):d});function o8(){const e=ns(),n=e.routesById[hr].options.pendingComponent??e.options.defaultPendingComponent,r=n?N.jsx(n,{}):null,i=typeof document<"u"&&e.ssr?hl:M.Suspense,c=N.jsxs(i,{fallback:r,children:[N.jsx(e8,{}),N.jsx(i8,{})]});return e.options.InnerWrap?N.jsx(e.options.InnerWrap,{children:c}):c}function i8(){const e=ns(),t=Mn({select:i=>i.matches[0]?.id}),n=Mn({select:i=>i.loadedAt}),r=t?N.jsx(cO,{matchId:t}):null;return N.jsx(bm.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:N.jsx(qv,{getResetKey:()=>n,errorComponent:Gv,onCatch:i=>{i.message||i.toString()},children:r})})}const a8=e=>new c8(e);class c8 extends bU{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=St,globalThis.createLazyFileRoute=YC):typeof window<"u"&&(window.createFileRoute=St,window.createLazyFileRoute=YC);function l8({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=oO(),i=N.jsx(r.Provider,{value:e,children:t});return e.options.Wrap?N.jsx(e.options.Wrap,{children:i}):i}function u8({router:e,...t}){return N.jsx(l8,{router:e,...t,children:N.jsx(o8,{})})}function f8(e){return Mn({select:t=>e?.select?e.select(t.location):t.location})}function d8({tag:e,attrs:t,children:n,nonce:r}){switch(e){case"title":return N.jsx("title",{...t,suppressHydrationWarning:!0,children:n});case"meta":return N.jsx("meta",{...t,suppressHydrationWarning:!0});case"link":return N.jsx("link",{...t,nonce:r,suppressHydrationWarning:!0});case"style":return N.jsx("style",{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case"script":return N.jsx(p8,{attrs:t,children:n});default:return null}}function p8({attrs:e,children:t}){ns();const n=Zv(),r=typeof e?.type=="string"&&e.type!==""&&e.type!=="text/javascript"&&e.type!=="module";if(M.useEffect(()=>{if(!r){if(e?.src){const i=(()=>{try{const f=document.baseURI||window.location.href;return new URL(e.src,f).href}catch{return e.src}})();if(Array.from(document.querySelectorAll("script[src]")).find(f=>f.src===i))return;const l=document.createElement("script");for(const[f,d]of Object.entries(e))f!=="suppressHydrationWarning"&&d!==void 0&&d!==!1&&l.setAttribute(f,typeof d=="boolean"?"":String(d));return document.head.appendChild(l),()=>{l.parentNode&&l.parentNode.removeChild(l)}}if(typeof t=="string"){const i=typeof e?.type=="string"?e.type:"text/javascript",c=typeof e?.nonce=="string"?e.nonce:void 0;if(Array.from(document.querySelectorAll("script:not([src])")).find(d=>{if(!(d instanceof HTMLScriptElement))return!1;const p=d.getAttribute("type")??"text/javascript",b=d.getAttribute("nonce")??void 0;return d.textContent===t&&p===i&&b===c}))return;const f=document.createElement("script");if(f.textContent=t,e)for(const[d,p]of Object.entries(e))d!=="suppressHydrationWarning"&&p!==void 0&&p!==!1&&f.setAttribute(d,typeof p=="boolean"?"":String(p));return document.head.appendChild(f),()=>{f.parentNode&&f.parentNode.removeChild(f)}}}},[e,t,r]),r&&typeof t=="string")return N.jsx("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!n){if(e?.src)return N.jsx("script",{...e,suppressHydrationWarning:!0});if(typeof t=="string")return N.jsx("script",{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}const h8=()=>{const e=ns(),t=e.options.ssr?.nonce,n=Mn({select:d=>d.matches.map(p=>p.meta).filter(Boolean)}),r=M.useMemo(()=>{const d=[],p={};let b;for(let g=n.length-1;g>=0;g--){const v=n[g];for(let S=v.length-1;S>=0;S--){const w=v[S];if(w)if(w.title)b||(b={tag:"title",children:w.title});else if("script:ld+json"in w)try{const E=JSON.stringify(w["script:ld+json"]);d.push({tag:"script",attrs:{type:"application/ld+json"},children:P6(E)})}catch{}else{const E=w.name??w.property;if(E){if(p[E])continue;p[E]=!0}d.push({tag:"meta",attrs:{...w,nonce:t}})}}}return b&&d.push(b),t&&d.push({tag:"meta",attrs:{property:"csp-nonce",content:t}}),d.reverse(),d},[n,t]),i=Mn({select:d=>{const p=d.matches.map(v=>v.links).filter(Boolean).flat(1).map(v=>({tag:"link",attrs:{...v,nonce:t}})),b=e.ssr?.manifest,g=d.matches.map(v=>b?.routes[v.routeId]?.assets??[]).filter(Boolean).flat(1).filter(v=>v.tag==="link").map(v=>({tag:"link",attrs:{...v.attrs,suppressHydrationWarning:!0,nonce:t}}));return[...p,...g]},structuralSharing:!0}),c=Mn({select:d=>{const p=[];return d.matches.map(b=>e.looseRoutesById[b.routeId]).forEach(b=>e.ssr?.manifest?.routes[b.id]?.preloads?.filter(Boolean).forEach(g=>{p.push({tag:"link",attrs:{rel:"modulepreload",href:g,nonce:t}})})),p},structuralSharing:!0}),l=Mn({select:d=>d.matches.map(p=>p.styles).flat(1).filter(Boolean).map(({children:p,...b})=>({tag:"style",attrs:{...b,nonce:t},children:p})),structuralSharing:!0}),f=Mn({select:d=>d.matches.map(p=>p.headScripts).flat(1).filter(Boolean).map(({children:p,...b})=>({tag:"script",attrs:{...b,nonce:t},children:p})),structuralSharing:!0});return m8([...r,...c,...i,...l,...f],d=>JSON.stringify(d))};function m8(e,t){const n=new Set;return e.filter(r=>{const i=t(r);return n.has(i)?!1:(n.add(i),!0)})}function g8(){const e=h8(),n=ns().options.ssr?.nonce;return N.jsx(N.Fragment,{children:e.map(r=>M.createElement(d8,{...r,key:`tsr-meta-${JSON.stringify(r)}`,nonce:n}))})}var G0={exports:{}},af={},Z0={exports:{}},K0={};var WC;function y8(){return WC||(WC=1,(function(e){function t(V,oe){var J=V.length;V.push(oe);e:for(;0>>1,fe=V[ve];if(0>>1;vei(ge,J))bei(xe,ge)?(V[ve]=xe,V[be]=J,ve=be):(V[ve]=ge,V[ee]=J,ve=ee);else if(bei(xe,J))V[ve]=xe,V[be]=J,ve=be;else break e}}return oe}function i(V,oe){var J=V.sortIndex-oe.sortIndex;return J!==0?J:V.id-oe.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var l=Date,f=l.now();e.unstable_now=function(){return l.now()-f}}var d=[],p=[],b=1,g=null,v=3,S=!1,w=!1,E=!1,R=!1,C=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function T(V){for(var oe=n(p);oe!==null;){if(oe.callback===null)r(p);else if(oe.startTime<=V)r(p),oe.sortIndex=oe.expirationTime,t(d,oe);else break;oe=n(p)}}function $(V){if(E=!1,T(V),!w)if(n(d)!==null)w=!0,j||(j=!0,G());else{var oe=n(p);oe!==null&&ye($,oe.startTime-V)}}var j=!1,H=-1,P=5,Y=-1;function ne(){return R?!0:!(e.unstable_now()-YV&&ne());){var ve=g.callback;if(typeof ve=="function"){g.callback=null,v=g.priorityLevel;var fe=ve(g.expirationTime<=V);if(V=e.unstable_now(),typeof fe=="function"){g.callback=fe,T(V),oe=!0;break t}g===n(d)&&r(d),T(V)}else r(d);g=n(d)}if(g!==null)oe=!0;else{var B=n(p);B!==null&&ye($,B.startTime-V),oe=!1}}break e}finally{g=null,v=J,S=!1}oe=void 0}}finally{oe?G():j=!1}}}var G;if(typeof k=="function")G=function(){k(re)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ue=te.port2;te.port1.onmessage=re,G=function(){ue.postMessage(null)}}else G=function(){C(re,0)};function ye(V,oe){H=C(function(){V(e.unstable_now())},oe)}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(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125ve?(V.sortIndex=J,t(p,V),n(d)===null&&V===n(p)&&(E?(O(H),H=-1):E=!0,ye($,J-ve))):(V.sortIndex=fe,t(d,V),w||S||(w=!0,j||(j=!0,G()))),V},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(V){var oe=v;return function(){var J=v;v=oe;try{return V.apply(this,arguments)}finally{v=J}}}})(K0)),K0}var JC;function b8(){return JC||(JC=1,Z0.exports=y8()),Z0.exports}var eA;function v8(){if(eA)return af;eA=1;var e=b8(),t=zl(),n=iO();function r(s){var o="https://react.dev/errors/"+s;if(1fe||(s.current=ve[fe],ve[fe]=null,fe--)}function ge(s,o){fe++,ve[fe]=s.current,s.current=o}var be=B(null),xe=B(null),_e=B(null),Te=B(null);function Fe(s,o){switch(ge(_e,o),ge(xe,s),ge(be,null),o.nodeType){case 9:case 11:s=(s=o.documentElement)&&(s=s.namespaceURI)?BR(s):0;break;default:if(s=o.tagName,o=o.namespaceURI)o=BR(o),s=$R(o,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}ee(be),ge(be,s)}function Se(){ee(be),ee(xe),ee(_e)}function Xe(s){s.memoizedState!==null&&ge(Te,s);var o=be.current,a=$R(o,s.type);o!==a&&(ge(xe,s),ge(be,a))}function _t(s){xe.current===s&&(ee(be),ee(xe)),Te.current===s&&(ee(Te),Yu._currentValue=J)}var me,Ee;function we(s){if(me===void 0)try{throw Error()}catch(a){var o=a.stack.trim().match(/\n( *(at )?)/);me=o&&o[1]||"",Ee=-1)":-1p||N[u]!==Z[p]){var ie=` -`+N[u].replace(" at new "," at ");return s.displayName&&ie.includes("")&&(ie=ie.replace("",s.displayName)),ie}while(1<=u&&0<=p);break}}}finally{We=!1,Error.prepareStackTrace=a}return(a=s?s.displayName||s.name:"")?we(a):""}function He(s,o){switch(s.tag){case 26:case 27:case 5:return we(s.type);case 16:return we("Lazy");case 13:return s.child!==o&&o!==null?we("Suspense Fallback"):we("Suspense");case 19:return we("SuspenseList");case 0:case 15:return Me(s.type,!1);case 11:return Me(s.type.render,!1);case 1:return Me(s.type,!0);case 31:return we("Activity");default:return""}}function Pe(s){try{var o="",a=null;do o+=He(s,a),a=s,s=s.return;while(s);return o}catch(u){return` +`+me+s+Ee}var qe=!1;function Oe(s,o){if(!s||qe)return"";qe=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(o){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(se){var Q=se}Reflect.construct(s,[],de)}else{try{de.call()}catch(se){Q=se}s.call(de.prototype)}}else{try{throw Error()}catch(se){Q=se}(de=s())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(se){if(se&&Q&&typeof se.stack=="string")return[se.stack,Q.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=u.DetermineComponentFrameRoot(),x=m[0],A=m[1];if(x&&A){var z=x.split(` +`),K=A.split(` +`);for(h=u=0;uh||z[u]!==K[h]){var ie=` +`+z[u].replace(" at new "," at ");return s.displayName&&ie.includes("")&&(ie=ie.replace("",s.displayName)),ie}while(1<=u&&0<=h);break}}}finally{qe=!1,Error.prepareStackTrace=a}return(a=s?s.displayName||s.name:"")?we(a):""}function je(s,o){switch(s.tag){case 26:case 27:case 5:return we(s.type);case 16:return we("Lazy");case 13:return s.child!==o&&o!==null?we("Suspense Fallback"):we("Suspense");case 19:return we("SuspenseList");case 0:case 15:return Oe(s.type,!1);case 11:return Oe(s.type.render,!1);case 1:return Oe(s.type,!0);case 31:return we("Activity");default:return""}}function De(s){try{var o="",a=null;do o+=je(s,a),a=s,s=s.return;while(s);return o}catch(u){return` Error generating stack: `+u.message+` -`+u.stack}}var tt=Object.prototype.hasOwnProperty,Dt=e.unstable_scheduleCallback,Ye=e.unstable_cancelCallback,wt=e.unstable_shouldYield,wn=e.unstable_requestPaint,xt=e.unstable_now,pr=e.unstable_getCurrentPriorityLevel,dt=e.unstable_ImmediatePriority,kt=e.unstable_UserBlockingPriority,mt=e.unstable_NormalPriority,Es=e.unstable_LowPriority,js=e.unstable_IdlePriority,Vr=e.log,Gf=e.unstable_setDisableYieldValue,Zo=null,qn=null;function mr(s){if(typeof Vr=="function"&&Gf(s),qn&&typeof qn.setStrictMode=="function")try{qn.setStrictMode(Zo,s)}catch{}}var Vn=Math.clz32?Math.clz32:Hs,Bt=Math.log,Gn=Math.LN2;function Hs(s){return s>>>=0,s===0?32:31-(Bt(s)/Gn|0)|0}var kn=256,us=262144,Gr=4194304;function Fs(s){var o=s&42;if(o!==0)return o;switch(s&-s){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function Yo(s,o,a){var u=s.pendingLanes;if(u===0)return 0;var p=0,m=s.suspendedLanes,E=s.pingedLanes;s=s.warmLanes;var T=u&134217727;return T!==0?(u=T&~m,u!==0?p=Fs(u):(E&=T,E!==0?p=Fs(E):a||(a=T&~s,a!==0&&(p=Fs(a))))):(T=u&~m,T!==0?p=Fs(T):E!==0?p=Fs(E):a||(a=u&~s,a!==0&&(p=Fs(a)))),p===0?0:o!==0&&o!==p&&(o&m)===0&&(m=p&-p,a=o&-o,m>=a||m===32&&(a&4194048)!==0)?o:p}function Qo(s,o){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&o)===0}function $m(s,o){switch(s){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32: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 o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Kf(){var s=Gr;return Gr<<=1,(Gr&62914560)===0&&(Gr=4194304),s}function jl(s){for(var o=[],a=0;31>a;a++)o.push(s);return o}function sa(s,o){s.pendingLanes|=o,o!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Hl(s,o,a,u,p,m){var E=s.pendingLanes;s.pendingLanes=a,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=a,s.entangledLanes&=a,s.errorRecoveryDisabledLanes&=a,s.shellSuspendCounter=0;var T=s.entanglements,N=s.expirationTimes,Z=s.hiddenUpdates;for(a=E&~a;0"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var Fz=/[\n"\\]/g;function Vs(s){return s.replace(Fz,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Fm(s,o,a,u,p,m,E,T){s.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?s.type=E:s.removeAttribute("type"),o!=null?E==="number"?(o===0&&s.value===""||s.value!=o)&&(s.value=""+qs(o)):s.value!==""+qs(o)&&(s.value=""+qs(o)):E!=="submit"&&E!=="reset"||s.removeAttribute("value"),o!=null?qm(s,E,qs(o)):a!=null?qm(s,E,qs(a)):u!=null&&s.removeAttribute("value"),p==null&&m!=null&&(s.defaultChecked=!!m),p!=null&&(s.checked=p&&typeof p!="function"&&typeof p!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?s.name=""+qs(T):s.removeAttribute("name")}function $w(s,o,a,u,p,m,E,T){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(s.type=m),o!=null||a!=null){if(!(m!=="submit"&&m!=="reset"||o!=null)){Hm(s);return}a=a!=null?""+qs(a):"",o=o!=null?""+qs(o):a,T||o===s.value||(s.value=o),s.defaultValue=o}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,s.checked=T?s.checked:!!u,s.defaultChecked=!!u,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(s.name=E),Hm(s)}function qm(s,o,a){o==="number"&&ed(s.ownerDocument)===s||s.defaultValue===""+a||(s.defaultValue=""+a)}function uc(s,o,a,u){if(s=s.options,o){o={};for(var p=0;p"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ym=!1;if(Qr)try{var Zl={};Object.defineProperty(Zl,"passive",{get:function(){Ym=!0}}),window.addEventListener("test",Zl,Zl),window.removeEventListener("test",Zl,Zl)}catch{Ym=!1}var Wo=null,Qm=null,nd=null;function Gw(){if(nd)return nd;var s,o=Qm,a=o.length,u,p="value"in Wo?Wo.value:Wo.textContent,m=p.length;for(s=0;s=Xl),Ww=" ",Jw=!1;function ex(s,o){switch(s){case"keyup":return y4.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tx(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var pc=!1;function v4(s,o){switch(s){case"compositionend":return tx(o);case"keypress":return o.which!==32?null:(Jw=!0,Ww);case"textInput":return s=o.data,s===Ww&&Jw?null:s;default:return null}}function S4(s,o){if(pc)return s==="compositionend"||!tg&&ex(s,o)?(s=Gw(),nd=Qm=Wo=null,pc=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:a,offset:o-s};s=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=lx(a)}}function fx(s,o){return s&&o?s===o?!0:s&&s.nodeType===3?!1:o&&o.nodeType===3?fx(s,o.parentNode):"contains"in s?s.contains(o):s.compareDocumentPosition?!!(s.compareDocumentPosition(o)&16):!1:!1}function dx(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var o=ed(s.document);o instanceof s.HTMLIFrameElement;){try{var a=typeof o.contentWindow.location.href=="string"}catch{a=!1}if(a)s=o.contentWindow;else break;o=ed(s.document)}return o}function rg(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o&&(o==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||o==="textarea"||s.contentEditable==="true")}var A4=Qr&&"documentMode"in document&&11>=document.documentMode,mc=null,og=null,tu=null,ig=!1;function hx(s,o,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ig||mc==null||mc!==ed(u)||(u=mc,"selectionStart"in u&&rg(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),tu&&eu(tu,u)||(tu=u,u=Yd(og,"onSelect"),0>=E,p-=E,Er=1<<32-Vn(o)+p|a<Qe?(ct=Le,Le=null):ct=Le.sibling;var bt=Y(V,Le,K[Qe],le);if(bt===null){Le===null&&(Le=ct);break}s&&Le&&bt.alternate===null&&o(V,Le),q=m(bt,q,Qe),yt===null?Be=bt:yt.sibling=bt,yt=bt,Le=ct}if(Qe===K.length)return a(V,Le),ut&&Wr(V,Qe),Be;if(Le===null){for(;QeQe?(ct=Le,Le=null):ct=Le.sibling;var Si=Y(V,Le,bt.value,le);if(Si===null){Le===null&&(Le=ct);break}s&&Le&&Si.alternate===null&&o(V,Le),q=m(Si,q,Qe),yt===null?Be=Si:yt.sibling=Si,yt=Si,Le=ct}if(bt.done)return a(V,Le),ut&&Wr(V,Qe),Be;if(Le===null){for(;!bt.done;Qe++,bt=K.next())bt=de(V,bt.value,le),bt!==null&&(q=m(bt,q,Qe),yt===null?Be=bt:yt.sibling=bt,yt=bt);return ut&&Wr(V,Qe),Be}for(Le=u(Le);!bt.done;Qe++,bt=K.next())bt=se(Le,V,Qe,bt.value,le),bt!==null&&(s&&bt.alternate!==null&&Le.delete(bt.key===null?Qe:bt.key),q=m(bt,q,Qe),yt===null?Be=bt:yt.sibling=bt,yt=bt);return s&&Le.forEach(function(ZL){return o(V,ZL)}),ut&&Wr(V,Qe),Be}function Ot(V,q,K,le){if(typeof K=="object"&&K!==null&&K.type===x&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case v:e:{for(var Be=K.key;q!==null;){if(q.key===Be){if(Be=K.type,Be===x){if(q.tag===7){a(V,q.sibling),le=p(q,K.props.children),le.return=V,V=le;break e}}else if(q.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===k&&pa(Be)===q.type){a(V,q.sibling),le=p(q,K.props),au(le,K),le.return=V,V=le;break e}a(V,q);break}else o(V,q);q=q.sibling}K.type===x?(le=la(K.props.children,V.mode,le,K.key),le.return=V,V=le):(le=dd(K.type,K.key,K.props,null,V.mode,le),au(le,K),le.return=V,V=le)}return E(V);case _:e:{for(Be=K.key;q!==null;){if(q.key===Be)if(q.tag===4&&q.stateNode.containerInfo===K.containerInfo&&q.stateNode.implementation===K.implementation){a(V,q.sibling),le=p(q,K.children||[]),le.return=V,V=le;break e}else{a(V,q);break}else o(V,q);q=q.sibling}le=hg(K,V.mode,le),le.return=V,V=le}return E(V);case k:return K=pa(K),Ot(V,q,K,le)}if(me(K))return De(V,q,K,le);if(G(K)){if(Be=G(K),typeof Be!="function")throw Error(r(150));return K=Be.call(K),je(V,q,K,le)}if(typeof K.then=="function")return Ot(V,q,vd(K),le);if(K.$$typeof===D)return Ot(V,q,md(V,K),le);Sd(V,K)}return typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint"?(K=""+K,q!==null&&q.tag===6?(a(V,q.sibling),le=p(q,K),le.return=V,V=le):(a(V,q),le=dg(K,V.mode,le),le.return=V,V=le),E(V)):a(V,q)}return function(V,q,K,le){try{iu=0;var Be=Ot(V,q,K,le);return Cc=null,Be}catch(Le){if(Le===Rc||Le===yd)throw Le;var yt=Cs(29,Le,null,V.mode);return yt.lanes=le,yt.return=V,yt}}}var ga=zx(!0),Lx=zx(!1),si=!1;function Rg(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cg(s,o){s=s.updateQueue,o.updateQueue===s&&(o.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function ri(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function oi(s,o,a){var u=s.updateQueue;if(u===null)return null;if(u=u.shared,(vt&2)!==0){var p=u.pending;return p===null?o.next=o:(o.next=p.next,p.next=o),u.pending=o,o=fd(s),Sx(s,null,a),o}return ud(s,u,o,a),fd(s)}function cu(s,o,a){if(o=o.updateQueue,o!==null&&(o=o.shared,(a&4194048)!==0)){var u=o.lanes;u&=s.pendingLanes,a|=u,o.lanes=a,Zf(s,a)}}function Tg(s,o){var a=s.updateQueue,u=s.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var p=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var E={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};m===null?p=m=E:m=m.next=E,a=a.next}while(a!==null);m===null?p=m=o:m=m.next=o}else p=m=o;a={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:m,shared:u.shared,callbacks:u.callbacks},s.updateQueue=a;return}s=a.lastBaseUpdate,s===null?a.firstBaseUpdate=o:s.next=o,a.lastBaseUpdate=o}var Ag=!1;function lu(){if(Ag){var s=Ec;if(s!==null)throw s}}function uu(s,o,a,u){Ag=!1;var p=s.updateQueue;si=!1;var m=p.firstBaseUpdate,E=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var N=T,Z=N.next;N.next=null,E===null?m=Z:E.next=Z,E=N;var ie=s.alternate;ie!==null&&(ie=ie.updateQueue,T=ie.lastBaseUpdate,T!==E&&(T===null?ie.firstBaseUpdate=Z:T.next=Z,ie.lastBaseUpdate=N))}if(m!==null){var de=p.baseState;E=0,ie=Z=N=null,T=m;do{var Y=T.lane&-536870913,se=Y!==T.lane;if(se?(at&Y)===Y:(u&Y)===Y){Y!==0&&Y===xc&&(Ag=!0),ie!==null&&(ie=ie.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var De=s,je=T;Y=o;var Ot=a;switch(je.tag){case 1:if(De=je.payload,typeof De=="function"){de=De.call(Ot,de,Y);break e}de=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=je.payload,Y=typeof De=="function"?De.call(Ot,de,Y):De,Y==null)break e;de=g({},de,Y);break e;case 2:si=!0}}Y=T.callback,Y!==null&&(s.flags|=64,se&&(s.flags|=8192),se=p.callbacks,se===null?p.callbacks=[Y]:se.push(Y))}else se={lane:Y,tag:T.tag,payload:T.payload,callback:T.callback,next:null},ie===null?(Z=ie=se,N=de):ie=ie.next=se,E|=Y;if(T=T.next,T===null){if(T=p.shared.pending,T===null)break;se=T,T=se.next,se.next=null,p.lastBaseUpdate=se,p.shared.pending=null}}while(!0);ie===null&&(N=de),p.baseState=N,p.firstBaseUpdate=Z,p.lastBaseUpdate=ie,m===null&&(p.shared.lanes=0),ui|=E,s.lanes=E,s.memoizedState=de}}function Bx(s,o){if(typeof s!="function")throw Error(r(191,s));s.call(o)}function $x(s,o){var a=s.callbacks;if(a!==null)for(s.callbacks=null,s=0;sm?m:8;var E=F.T,T={};F.T=T,Kg(s,!1,o,a);try{var N=p(),Z=F.S;if(Z!==null&&Z(T,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var ie=L4(N,u);hu(s,o,ie,Ms(s))}else hu(s,o,u,Ms(s))}catch(de){hu(s,o,{then:function(){},status:"rejected",reason:de},Ms())}finally{oe.p=m,E!==null&&T.types!==null&&(E.types=T.types),F.T=E}}function F4(){}function Vg(s,o,a,u){if(s.tag!==5)throw Error(r(476));var p=yE(s).queue;gE(s,p,o,J,a===null?F4:function(){return bE(s),a(u)})}function yE(s){var o=s.memoizedState;if(o!==null)return o;o={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:no,lastRenderedState:J},next:null};var a={};return o.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:no,lastRenderedState:a},next:null},s.memoizedState=o,s=s.alternate,s!==null&&(s.memoizedState=o),o}function bE(s){var o=yE(s);o.next===null&&(o=s.alternate.memoizedState),hu(s,o.next.queue,{},Ms())}function Gg(){return zn(Ou)}function vE(){return tn().memoizedState}function SE(){return tn().memoizedState}function q4(s){for(var o=s.return;o!==null;){switch(o.tag){case 24:case 3:var a=Ms();s=ri(a);var u=oi(o,s,a);u!==null&&(ys(u,o,a),cu(u,o,a)),o={cache:_g()},s.payload=o;return}o=o.return}}function V4(s,o,a){var u=Ms();a={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Od(s)?wE(o,a):(a=ug(s,o,a,u),a!==null&&(ys(a,s,u),xE(a,o,u)))}function _E(s,o,a){var u=Ms();hu(s,o,a,u)}function hu(s,o,a,u){var p={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Od(s))wE(o,p);else{var m=s.alternate;if(s.lanes===0&&(m===null||m.lanes===0)&&(m=o.lastRenderedReducer,m!==null))try{var E=o.lastRenderedState,T=m(E,a);if(p.hasEagerState=!0,p.eagerState=T,Rs(T,E))return ud(s,o,p,0),Pt===null&&ld(),!1}catch{}if(a=ug(s,o,p,u),a!==null)return ys(a,s,u),xE(a,o,u),!0}return!1}function Kg(s,o,a,u){if(u={lane:2,revertLane:Ry(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Od(s)){if(o)throw Error(r(479))}else o=ug(s,a,u,2),o!==null&&ys(o,s,2)}function Od(s){var o=s.alternate;return s===Ke||o!==null&&o===Ke}function wE(s,o){Ac=xd=!0;var a=s.pending;a===null?o.next=o:(o.next=a.next,a.next=o),s.pending=o}function xE(s,o,a){if((a&4194048)!==0){var u=o.lanes;u&=s.pendingLanes,a|=u,o.lanes=a,Zf(s,a)}}var pu={readContext:zn,use:Cd,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useLayoutEffect:Xt,useInsertionEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useSyncExternalStore:Xt,useId:Xt,useHostTransitionStatus:Xt,useFormState:Xt,useActionState:Xt,useOptimistic:Xt,useMemoCache:Xt,useCacheRefresh:Xt};pu.useEffectEvent=Xt;var EE={readContext:zn,use:Cd,useCallback:function(s,o){return ns().memoizedState=[s,o===void 0?null:o],s},useContext:zn,useEffect:aE,useImperativeHandle:function(s,o,a){a=a!=null?a.concat([s]):null,Ad(4194308,4,fE.bind(null,o,s),a)},useLayoutEffect:function(s,o){return Ad(4194308,4,s,o)},useInsertionEffect:function(s,o){Ad(4,2,s,o)},useMemo:function(s,o){var a=ns();o=o===void 0?null:o;var u=s();if(ya){mr(!0);try{s()}finally{mr(!1)}}return a.memoizedState=[u,o],u},useReducer:function(s,o,a){var u=ns();if(a!==void 0){var p=a(o);if(ya){mr(!0);try{a(o)}finally{mr(!1)}}}else p=o;return u.memoizedState=u.baseState=p,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:p},u.queue=s,s=s.dispatch=V4.bind(null,Ke,s),[u.memoizedState,s]},useRef:function(s){var o=ns();return s={current:s},o.memoizedState=s},useState:function(s){s=Ug(s);var o=s.queue,a=_E.bind(null,Ke,o);return o.dispatch=a,[s.memoizedState,a]},useDebugValue:Fg,useDeferredValue:function(s,o){var a=ns();return qg(a,s,o)},useTransition:function(){var s=Ug(!1);return s=gE.bind(null,Ke,s.queue,!0,!1),ns().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,o,a){var u=Ke,p=ns();if(ut){if(a===void 0)throw Error(r(407));a=a()}else{if(a=o(),Pt===null)throw Error(r(349));(at&127)!==0||Vx(u,o,a)}p.memoizedState=a;var m={value:a,getSnapshot:o};return p.queue=m,aE(Kx.bind(null,u,m,s),[s]),u.flags|=2048,Oc(9,{destroy:void 0},Gx.bind(null,u,m,a,o),null),a},useId:function(){var s=ns(),o=Pt.identifierPrefix;if(ut){var a=Rr,u=Er;a=(u&~(1<<32-Vn(u)-1)).toString(32)+a,o="_"+o+"R_"+a,a=Ed++,0<\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof u.is=="string"?E.createElement("select",{is:u.is}):E.createElement("select"),u.multiple?m.multiple=!0:u.size&&(m.size=u.size);break;default:m=typeof u.is=="string"?E.createElement(p,{is:u.is}):E.createElement(p)}}m[Pn]=o,m[fs]=u;e:for(E=o.child;E!==null;){if(E.tag===5||E.tag===6)m.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===o)break e;for(;E.sibling===null;){if(E.return===null||E.return===o)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}o.stateNode=m;e:switch(Bn(m,p,u),p){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&ro(o)}}return Ut(o),ay(o,o.type,s===null?null:s.memoizedProps,o.pendingProps,a),null;case 6:if(s&&o.stateNode!=null)s.memoizedProps!==u&&ro(o);else{if(typeof u!="string"&&o.stateNode===null)throw Error(r(166));if(s=_e.current,_c(o)){if(s=o.stateNode,a=o.memoizedProps,u=null,p=Nn,p!==null)switch(p.tag){case 27:case 5:u=p.memoizedProps}s[Pn]=o,s=!!(s.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||F1(s.nodeValue,a)),s||ti(o,!0)}else s=Qd(s).createTextNode(u),s[Pn]=o,o.stateNode=s}return Ut(o),null;case 31:if(a=o.memoizedState,s===null||s.memoizedState!==null){if(u=_c(o),a!==null){if(s===null){if(!u)throw Error(r(318));if(s=o.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(557));s[Pn]=o}else ua(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Ut(o),s=!1}else a=yg(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=a),s=!0;if(!s)return o.flags&256?(As(o),o):(As(o),null);if((o.flags&128)!==0)throw Error(r(558))}return Ut(o),null;case 13:if(u=o.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(p=_c(o),u!==null&&u.dehydrated!==null){if(s===null){if(!p)throw Error(r(318));if(p=o.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[Pn]=o}else ua(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Ut(o),p=!1}else p=yg(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=p),p=!0;if(!p)return o.flags&256?(As(o),o):(As(o),null)}return As(o),(o.flags&128)!==0?(o.lanes=a,o):(a=u!==null,s=s!==null&&s.memoizedState!==null,a&&(u=o.child,p=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(p=u.alternate.memoizedState.cachePool.pool),m=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==p&&(u.flags|=2048)),a!==s&&a&&(o.child.flags|=8192),Nd(o,o.updateQueue),Ut(o),null);case 4:return Se(),s===null&&Iy(o.stateNode.containerInfo),Ut(o),null;case 10:return eo(o.type),Ut(o),null;case 19:if(ee(en),u=o.memoizedState,u===null)return Ut(o),null;if(p=(o.flags&128)!==0,m=u.rendering,m===null)if(p)gu(u,!1);else{if(Wt!==0||s!==null&&(s.flags&128)!==0)for(s=o.child;s!==null;){if(m=wd(s),m!==null){for(o.flags|=128,gu(u,!1),s=m.updateQueue,o.updateQueue=s,Nd(o,s),o.subtreeFlags=0,s=a,a=o.child;a!==null;)_x(a,s),a=a.sibling;return ge(en,en.current&1|2),ut&&Wr(o,u.treeForkCount),o.child}s=s.sibling}u.tail!==null&&xt()>Ud&&(o.flags|=128,p=!0,gu(u,!1),o.lanes=4194304)}else{if(!p)if(s=wd(m),s!==null){if(o.flags|=128,p=!0,s=s.updateQueue,o.updateQueue=s,Nd(o,s),gu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!m.alternate&&!ut)return Ut(o),null}else 2*xt()-u.renderingStartTime>Ud&&a!==536870912&&(o.flags|=128,p=!0,gu(u,!1),o.lanes=4194304);u.isBackwards?(m.sibling=o.child,o.child=m):(s=u.last,s!==null?s.sibling=m:o.child=m,u.last=m)}return u.tail!==null?(s=u.tail,u.rendering=s,u.tail=s.sibling,u.renderingStartTime=xt(),s.sibling=null,a=en.current,ge(en,p?a&1|2:a&1),ut&&Wr(o,u.treeForkCount),s):(Ut(o),null);case 22:case 23:return As(o),Og(),u=o.memoizedState!==null,s!==null?s.memoizedState!==null!==u&&(o.flags|=8192):u&&(o.flags|=8192),u?(a&536870912)!==0&&(o.flags&128)===0&&(Ut(o),o.subtreeFlags&6&&(o.flags|=8192)):Ut(o),a=o.updateQueue,a!==null&&Nd(o,a.retryQueue),a=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(a=s.memoizedState.cachePool.pool),u=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),u!==a&&(o.flags|=2048),s!==null&&ee(ha),null;case 24:return a=null,s!==null&&(a=s.memoizedState.cache),o.memoizedState.cache!==a&&(o.flags|=2048),eo(an),Ut(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function Q4(s,o){switch(mg(o),o.tag){case 1:return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 3:return eo(an),Se(),s=o.flags,(s&65536)!==0&&(s&128)===0?(o.flags=s&-65537|128,o):null;case 26:case 27:case 5:return zt(o),null;case 31:if(o.memoizedState!==null){if(As(o),o.alternate===null)throw Error(r(340));ua()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 13:if(As(o),s=o.memoizedState,s!==null&&s.dehydrated!==null){if(o.alternate===null)throw Error(r(340));ua()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 19:return ee(en),null;case 4:return Se(),null;case 10:return eo(o.type),null;case 22:case 23:return As(o),Og(),s!==null&&ee(ha),s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 24:return eo(an),null;case 25:return null;default:return null}}function ZE(s,o){switch(mg(o),o.tag){case 3:eo(an),Se();break;case 26:case 27:case 5:zt(o);break;case 4:Se();break;case 31:o.memoizedState!==null&&As(o);break;case 13:As(o);break;case 19:ee(en);break;case 10:eo(o.type);break;case 22:case 23:As(o),Og(),s!==null&&ee(ha);break;case 24:eo(an)}}function yu(s,o){try{var a=o.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var p=u.next;a=p;do{if((a.tag&s)===s){u=void 0;var m=a.create,E=a.inst;u=m(),E.destroy=u}a=a.next}while(a!==p)}}catch(T){Rt(o,o.return,T)}}function ci(s,o,a){try{var u=o.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var m=p.next;u=m;do{if((u.tag&s)===s){var E=u.inst,T=E.destroy;if(T!==void 0){E.destroy=void 0,p=o;var N=a,Z=T;try{Z()}catch(ie){Rt(p,N,ie)}}}u=u.next}while(u!==m)}}catch(ie){Rt(o,o.return,ie)}}function YE(s){var o=s.updateQueue;if(o!==null){var a=s.stateNode;try{$x(o,a)}catch(u){Rt(s,s.return,u)}}}function QE(s,o,a){a.props=ba(s.type,s.memoizedProps),a.state=s.memoizedState;try{a.componentWillUnmount()}catch(u){Rt(s,o,u)}}function bu(s,o){try{var a=s.ref;if(a!==null){switch(s.tag){case 26:case 27:case 5:var u=s.stateNode;break;case 30:u=s.stateNode;break;default:u=s.stateNode}typeof a=="function"?s.refCleanup=a(u):a.current=u}}catch(p){Rt(s,o,p)}}function Cr(s,o){var a=s.ref,u=s.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(p){Rt(s,o,p)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(p){Rt(s,o,p)}else a.current=null}function XE(s){var o=s.type,a=s.memoizedProps,u=s.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":a.autoFocus&&u.focus();break e;case"img":a.src?u.src=a.src:a.srcSet&&(u.srcset=a.srcSet)}}catch(p){Rt(s,s.return,p)}}function cy(s,o,a){try{var u=s.stateNode;bL(u,s.type,a,o),u[fs]=o}catch(p){Rt(s,s.return,p)}}function WE(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&mi(s.type)||s.tag===4}function ly(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||WE(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&mi(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function uy(s,o,a){var u=s.tag;if(u===5||u===6)s=s.stateNode,o?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(s,o):(o=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,o.appendChild(s),a=a._reactRootContainer,a!=null||o.onclick!==null||(o.onclick=Yr));else if(u!==4&&(u===27&&mi(s.type)&&(a=s.stateNode,o=null),s=s.child,s!==null))for(uy(s,o,a),s=s.sibling;s!==null;)uy(s,o,a),s=s.sibling}function zd(s,o,a){var u=s.tag;if(u===5||u===6)s=s.stateNode,o?a.insertBefore(s,o):a.appendChild(s);else if(u!==4&&(u===27&&mi(s.type)&&(a=s.stateNode),s=s.child,s!==null))for(zd(s,o,a),s=s.sibling;s!==null;)zd(s,o,a),s=s.sibling}function JE(s){var o=s.stateNode,a=s.memoizedProps;try{for(var u=s.type,p=o.attributes;p.length;)o.removeAttributeNode(p[0]);Bn(o,u,a),o[Pn]=s,o[fs]=a}catch(m){Rt(s,s.return,m)}}var oo=!1,un=!1,fy=!1,e1=typeof WeakSet=="function"?WeakSet:Set,En=null;function X4(s,o){if(s=s.containerInfo,Dy=sh,s=dx(s),rg(s)){if("selectionStart"in s)var a={start:s.selectionStart,end:s.selectionEnd};else e:{a=(a=s.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var p=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var E=0,T=-1,N=-1,Z=0,ie=0,de=s,Y=null;t:for(;;){for(var se;de!==a||p!==0&&de.nodeType!==3||(T=E+p),de!==m||u!==0&&de.nodeType!==3||(N=E+u),de.nodeType===3&&(E+=de.nodeValue.length),(se=de.firstChild)!==null;)Y=de,de=se;for(;;){if(de===s)break t;if(Y===a&&++Z===p&&(T=E),Y===m&&++ie===u&&(N=E),(se=de.nextSibling)!==null)break;de=Y,Y=de.parentNode}de=se}a=T===-1||N===-1?null:{start:T,end:N}}else a=null}a=a||{start:0,end:0}}else a=null;for(ky={focusedElem:s,selectionRange:a},sh=!1,En=o;En!==null;)if(o=En,s=o.child,(o.subtreeFlags&1028)!==0&&s!==null)s.return=o,En=s;else for(;En!==null;){switch(o=En,m=o.alternate,s=o.flags,o.tag){case 0:if((s&4)!==0&&(s=o.updateQueue,s=s!==null?s.events:null,s!==null))for(a=0;a title"))),Bn(m,u,a),m[Pn]=s,xn(m),u=m;break e;case"link":var E=iR("link","href",p).get(u+(a.href||""));if(E){for(var T=0;TOt&&(E=Ot,Ot=je,je=E);var V=ux(T,je),q=ux(T,Ot);if(V&&q&&(se.rangeCount!==1||se.anchorNode!==V.node||se.anchorOffset!==V.offset||se.focusNode!==q.node||se.focusOffset!==q.offset)){var K=de.createRange();K.setStart(V.node,V.offset),se.removeAllRanges(),je>Ot?(se.addRange(K),se.extend(q.node,q.offset)):(K.setEnd(q.node,q.offset),se.addRange(K))}}}}for(de=[],se=T;se=se.parentNode;)se.nodeType===1&&de.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;Ta?32:a,F.T=null,a=by,by=null;var m=di,E=uo;if(vn=0,Nc=di=null,uo=0,(vt&6)!==0)throw Error(r(331));var T=vt;if(vt|=4,f1(m.current),c1(m,m.current,E,a),vt=T,Eu(0,!1),qn&&typeof qn.onPostCommitFiberRoot=="function")try{qn.onPostCommitFiberRoot(Zo,m)}catch{}return!0}finally{oe.p=p,F.T=u,I1(s,o)}}function M1(s,o,a){o=Ks(a,o),o=Xg(s.stateNode,o,2),s=oi(s,o,2),s!==null&&(sa(s,2),Tr(s))}function Rt(s,o,a){if(s.tag===3)M1(s,s,a);else for(;o!==null;){if(o.tag===3){M1(o,s,a);break}else if(o.tag===1){var u=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(fi===null||!fi.has(u))){s=Ks(a,s),a=DE(2),u=oi(o,a,2),u!==null&&(kE(a,u,o,s),sa(u,2),Tr(u));break}}o=o.return}}function wy(s,o,a){var u=s.pingCache;if(u===null){u=s.pingCache=new eL;var p=new Set;u.set(o,p)}else p=u.get(o),p===void 0&&(p=new Set,u.set(o,p));p.has(a)||(py=!0,p.add(a),s=oL.bind(null,s,o,a),o.then(s,s))}function oL(s,o,a){var u=s.pingCache;u!==null&&u.delete(o),s.pingedLanes|=s.suspendedLanes&a,s.warmLanes&=~a,Pt===s&&(at&a)===a&&(Wt===4||Wt===3&&(at&62914560)===at&&300>xt()-$d?(vt&2)===0&&zc(s,0):my|=a,Pc===at&&(Pc=0)),Tr(s)}function D1(s,o){o===0&&(o=Kf()),s=ca(s,o),s!==null&&(sa(s,o),Tr(s))}function iL(s){var o=s.memoizedState,a=0;o!==null&&(a=o.retryLane),D1(s,a)}function aL(s,o){var a=0;switch(s.tag){case 31:case 13:var u=s.stateNode,p=s.memoizedState;p!==null&&(a=p.retryLane);break;case 19:u=s.stateNode;break;case 22:u=s.stateNode._retryCache;break;default:throw Error(r(314))}u!==null&&u.delete(o),D1(s,a)}function cL(s,o){return Dt(s,o)}var Gd=null,Bc=null,xy=!1,Kd=!1,Ey=!1,pi=0;function Tr(s){s!==Bc&&s.next===null&&(Bc===null?Gd=Bc=s:Bc=Bc.next=s),Kd=!0,xy||(xy=!0,uL())}function Eu(s,o){if(!Ey&&Kd){Ey=!0;do for(var a=!1,u=Gd;u!==null;){if(s!==0){var p=u.pendingLanes;if(p===0)var m=0;else{var E=u.suspendedLanes,T=u.pingedLanes;m=(1<<31-Vn(42|s)+1)-1,m&=p&~(E&~T),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(a=!0,z1(u,m))}else m=at,m=Yo(u,u===Pt?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||Qo(u,m)||(a=!0,z1(u,m));u=u.next}while(a);Ey=!1}}function lL(){k1()}function k1(){Kd=xy=!1;var s=0;pi!==0&&SL()&&(s=pi);for(var o=xt(),a=null,u=Gd;u!==null;){var p=u.next,m=P1(u,o);m===0?(u.next=null,a===null?Gd=p:a.next=p,p===null&&(Bc=a)):(a=u,(s!==0||(m&3)!==0)&&(Kd=!0)),u=p}vn!==0&&vn!==5||Eu(s),pi!==0&&(pi=0)}function P1(s,o){for(var a=s.suspendedLanes,u=s.pingedLanes,p=s.expirationTimes,m=s.pendingLanes&-62914561;0T)break;var ie=N.transferSize,de=N.initiatorType;ie&&q1(de)&&(N=N.responseEnd,E+=ie*(N"u"?null:document;function nR(s,o,a){var u=$c;if(u&&typeof o=="string"&&o){var p=Vs(o);p='link[rel="'+s+'"][href="'+p+'"]',typeof a=="string"&&(p+='[crossorigin="'+a+'"]'),tR.has(p)||(tR.add(p),s={rel:s,crossOrigin:a,href:o},u.querySelector(p)===null&&(o=u.createElement("link"),Bn(o,"link",s),xn(o),u.head.appendChild(o)))}}function IL(s){fo.D(s),nR("dns-prefetch",s,null)}function OL(s,o){fo.C(s,o),nR("preconnect",s,o)}function ML(s,o,a){fo.L(s,o,a);var u=$c;if(u&&s&&o){var p='link[rel="preload"][as="'+Vs(o)+'"]';o==="image"&&a&&a.imageSrcSet?(p+='[imagesrcset="'+Vs(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(p+='[imagesizes="'+Vs(a.imageSizes)+'"]')):p+='[href="'+Vs(s)+'"]';var m=p;switch(o){case"style":m=Uc(s);break;case"script":m=jc(s)}Js.has(m)||(s=g({rel:"preload",href:o==="image"&&a&&a.imageSrcSet?void 0:s,as:o},a),Js.set(m,s),u.querySelector(p)!==null||o==="style"&&u.querySelector(Au(m))||o==="script"&&u.querySelector(Iu(m))||(o=u.createElement("link"),Bn(o,"link",s),xn(o),u.head.appendChild(o)))}}function DL(s,o){fo.m(s,o);var a=$c;if(a&&s){var u=o&&typeof o.as=="string"?o.as:"script",p='link[rel="modulepreload"][as="'+Vs(u)+'"][href="'+Vs(s)+'"]',m=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=jc(s)}if(!Js.has(m)&&(s=g({rel:"modulepreload",href:s},o),Js.set(m,s),a.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Iu(m)))return}u=a.createElement("link"),Bn(u,"link",s),xn(u),a.head.appendChild(u)}}}function kL(s,o,a){fo.S(s,o,a);var u=$c;if(u&&s){var p=cc(u).hoistableStyles,m=Uc(s);o=o||"default";var E=p.get(m);if(!E){var T={loading:0,preload:null};if(E=u.querySelector(Au(m)))T.loading=5;else{s=g({rel:"stylesheet",href:s,"data-precedence":o},a),(a=Js.get(m))&&Uy(s,a);var N=E=u.createElement("link");xn(N),Bn(N,"link",s),N._p=new Promise(function(Z,ie){N.onload=Z,N.onerror=ie}),N.addEventListener("load",function(){T.loading|=1}),N.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Wd(E,o,u)}E={type:"stylesheet",instance:E,count:1,state:T},p.set(m,E)}}}function PL(s,o){fo.X(s,o);var a=$c;if(a&&s){var u=cc(a).hoistableScripts,p=jc(s),m=u.get(p);m||(m=a.querySelector(Iu(p)),m||(s=g({src:s,async:!0},o),(o=Js.get(p))&&jy(s,o),m=a.createElement("script"),xn(m),Bn(m,"link",s),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(p,m))}}function NL(s,o){fo.M(s,o);var a=$c;if(a&&s){var u=cc(a).hoistableScripts,p=jc(s),m=u.get(p);m||(m=a.querySelector(Iu(p)),m||(s=g({src:s,async:!0,type:"module"},o),(o=Js.get(p))&&jy(s,o),m=a.createElement("script"),xn(m),Bn(m,"link",s),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(p,m))}}function sR(s,o,a,u){var p=(p=_e.current)?Xd(p):null;if(!p)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(o=Uc(a.href),a=cc(p).hoistableStyles,u=a.get(o),u||(u={type:"style",instance:null,count:0,state:null},a.set(o,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){s=Uc(a.href);var m=cc(p).hoistableStyles,E=m.get(s);if(E||(p=p.ownerDocument||p,E={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(s,E),(m=p.querySelector(Au(s)))&&!m._p&&(E.instance=m,E.state.loading=5),Js.has(s)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Js.set(s,a),m||zL(p,s,a,E.state))),o&&u===null)throw Error(r(528,""));return E}if(o&&u!==null)throw Error(r(529,""));return null;case"script":return o=a.async,a=a.src,typeof a=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=jc(a),a=cc(p).hoistableScripts,u=a.get(o),u||(u={type:"script",instance:null,count:0,state:null},a.set(o,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function Uc(s){return'href="'+Vs(s)+'"'}function Au(s){return'link[rel="stylesheet"]['+s+"]"}function rR(s){return g({},s,{"data-precedence":s.precedence,precedence:null})}function zL(s,o,a,u){s.querySelector('link[rel="preload"][as="style"]['+o+"]")?u.loading=1:(o=s.createElement("link"),u.preload=o,o.addEventListener("load",function(){return u.loading|=1}),o.addEventListener("error",function(){return u.loading|=2}),Bn(o,"link",a),xn(o),s.head.appendChild(o))}function jc(s){return'[src="'+Vs(s)+'"]'}function Iu(s){return"script[async]"+s}function oR(s,o,a){if(o.count++,o.instance===null)switch(o.type){case"style":var u=s.querySelector('style[data-href~="'+Vs(a.href)+'"]');if(u)return o.instance=u,xn(u),u;var p=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(s.ownerDocument||s).createElement("style"),xn(u),Bn(u,"style",p),Wd(u,a.precedence,s),o.instance=u;case"stylesheet":p=Uc(a.href);var m=s.querySelector(Au(p));if(m)return o.state.loading|=4,o.instance=m,xn(m),m;u=rR(a),(p=Js.get(p))&&Uy(u,p),m=(s.ownerDocument||s).createElement("link"),xn(m);var E=m;return E._p=new Promise(function(T,N){E.onload=T,E.onerror=N}),Bn(m,"link",u),o.state.loading|=4,Wd(m,a.precedence,s),o.instance=m;case"script":return m=jc(a.src),(p=s.querySelector(Iu(m)))?(o.instance=p,xn(p),p):(u=a,(p=Js.get(m))&&(u=g({},a),jy(u,p)),s=s.ownerDocument||s,p=s.createElement("script"),xn(p),Bn(p,"link",u),s.head.appendChild(p),o.instance=p);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(u=o.instance,o.state.loading|=4,Wd(u,a.precedence,s));return o.instance}function Wd(s,o,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,m=p,E=0;E title"):null)}function LL(s,o,a){if(a===1||o.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;return o.rel==="stylesheet"?(s=o.disabled,typeof o.precedence=="string"&&s==null):!0;case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function cR(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function BL(s,o,a,u){if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var p=Uc(u.href),m=o.querySelector(Au(p));if(m){o=m._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(s.count++,s=eh.bind(s),o.then(s,s)),a.state.loading|=4,a.instance=m,xn(m);return}m=o.ownerDocument||o,u=rR(u),(p=Js.get(p))&&Uy(u,p),m=m.createElement("link"),xn(m);var E=m;E._p=new Promise(function(T,N){E.onload=T,E.onerror=N}),Bn(m,"link",u),a.instance=m}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(a,o),(o=a.state.preload)&&(a.state.loading&3)===0&&(s.count++,a=eh.bind(s),o.addEventListener("load",a),o.addEventListener("error",a))}}var Hy=0;function $L(s,o){return s.stylesheets&&s.count===0&&nh(s,s.stylesheets),0Hy?50:800)+o);return s.unsuspend=a,function(){s.unsuspend=null,clearTimeout(u),clearTimeout(p)}}:null}function eh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nh(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var th=null;function nh(s,o){s.stylesheets=null,s.unsuspend!==null&&(s.count++,th=new Map,o.forEach(UL,s),th=null,eh.call(s))}function UL(s,o){if(!(o.state.loading&4)){var a=th.get(s);if(a)var u=a.get(null);else{a=new Map,th.set(s,a);for(var p=s.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),f0.exports=B$(),f0.exports}var U$=$$();const j$=LI(U$);var p0={exports:{}},m0={};var lC;function H$(){if(lC)return m0;lC=1;var e=yl().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return m0.c=function(t){return e.H.useMemoCache(t)},m0}var uC;function F$(){return uC||(uC=1,p0.exports=H$()),p0.exports}var Tt=F$();const y2=O.createContext(void 0);function q$(e,t){try{const n=localStorage.getItem(e);if(n==="light"||n==="dark"||n==="system")return n}catch{}return t}function V$(e){const t=Tt.c(14),{children:n,defaultTheme:r,storageKey:i}=e,c=r===void 0?"system":r,l=i===void 0?"ui-theme":i;let f;t[0]!==c||t[1]!==l?(f=()=>q$(l,c),t[0]=c,t[1]=l,t[2]=f):f=t[2];const[d,h]=O.useState(f);let y,g;t[3]!==d?(y=()=>{const R=window.document.documentElement;if(R.classList.remove("light","dark"),d==="system"){const C=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";R.classList.add(C);return}R.classList.add(d)},g=[d],t[3]=d,t[4]=y,t[5]=g):(y=t[4],g=t[5]),O.useEffect(y,g);let b;t[6]!==l?(b=R=>{try{localStorage.setItem(l,R)}catch{}h(R)},t[6]=l,t[7]=b):b=t[7];let v;t[8]!==b||t[9]!==d?(v={theme:d,setTheme:b},t[8]=b,t[9]=d,t[10]=v):v=t[10];const _=v;let x;return t[11]!==n||t[12]!==_?(x=U.jsx(y2.Provider,{value:_,children:n}),t[11]=n,t[12]=_,t[13]=x):x=t[13],x}function G$(){const e=O.useContext(y2);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}function xb(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}const Xu={};function Up(e,t,n,r,i){let c={...Eb(e,Xu)};return t&&(c=Gu(c,t)),n&&(c=Gu(c,n)),r&&(c=Gu(c,r)),i&&(c=Gu(c,i)),c}function K$(e){if(e.length===0)return Xu;if(e.length===1)return Eb(e[0],Xu);let t={...Eb(e[0],Xu)};for(let n=1;n=65&&i<=90&&(typeof t=="function"||typeof t>"u")}function b2(e){return typeof e=="function"}function Eb(e,t){return b2(e)?e(t):e??Xu}function Q$(e,t){return t?e?n=>{if(X$(n)){const i=n;Rb(i);const c=t(i);return i.baseUIHandlerPrevented||e?.(i),c}const r=t(n);return e?.(n),r}:t:e}function Rb(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function v2(e,t){return t?e?t+" "+e:t:e}function X$(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Ao(e,...t){const n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(r=>n.searchParams.append("args[]",r)),`Base UI error #${e}; visit ${n} for the full message.`}const fC={};function lr(e,t){const n=O.useRef(fC);return n.current===fC&&(n.current=e(t)),n}function tp(e,t,n,r){const i=lr(S2).current;return J$(i,e,t,n,r)&&_2(i,[e,t,n,r]),i.callback}function W$(e){const t=lr(S2).current;return eU(t,e)&&_2(t,e),t.callback}function S2(){return{callback:null,cleanup:null,refs:[]}}function J$(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function eU(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function _2(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let i=0;i{for(let i=0;i=e}function dC(e){if(!O.isValidElement(e))return null;const t=e,n=t.props;return(vv(19)?n?.ref:t.ref)??null}function nU(e,t){const n={};for(const r in e){const i=e[r];if(t?.hasOwnProperty(r)){const c=t[r](i);c!=null&&Object.assign(n,c);continue}i===!0?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function sU(e,t){return typeof e=="function"?e(t):e}function rU(e,t){return typeof e=="function"?e(t):e}function w2(){}const $ve=Object.freeze([]),Ns=Object.freeze({}),oU={style:{transition:"none"}},iU="data-base-ui-click-trigger",Uve={fallbackAxisSide:"none"},aU={fallbackAxisSide:"end"},cU={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function ur(e,t,n={}){const r=t.render,i=lU(t,n);if(n.enabled===!1)return null;const c=n.state??Ns;return fU(e,r,i,c)}function lU(e,t={}){const{className:n,style:r,render:i}=e,{state:c=Ns,ref:l,props:f,stateAttributesMapping:d,enabled:h=!0}=t,y=h?sU(n,c):void 0,g=h?rU(r,c):void 0,b=h?nU(c,d):Ns,v=h?xb(b,Array.isArray(f)?K$(f):f)??Ns:Ns;return typeof document<"u"&&(h?Array.isArray(l)?v.ref=W$([v.ref,dC(i),...l]):v.ref=tp(v.ref,dC(i),l):tp(null,null)),h?(y!==void 0&&(v.className=v2(v.className,y)),g!==void 0&&(v.style=xb(v.style,g)),v):Ns}const uU=Symbol.for("react.lazy");function fU(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const i=Up(n,t.props);i.ref=n.ref;let c=t;return c?.$$typeof===uU&&(c=O.Children.toArray(t)[0]),O.cloneElement(c,i)}if(e&&typeof e=="string")return dU(e,n);throw new Error(Ao(8))}function dU(e,t){return e==="button"?O.createElement("button",{type:"button",...t,key:t.key}):e==="img"?O.createElement("img",{alt:"",...t,key:t.key}):O.createElement(e,t)}function x2(e){return ur(e.defaultTagName??"div",e,e)}function E2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,pC=R2,C2=(e,t)=>n=>{var r;if(t?.variants==null)return pC(e,n?.class,n?.className);const{variants:i,defaultVariants:c}=t,l=Object.keys(i).map(h=>{const y=n?.[h],g=c?.[h];if(y===null)return null;const b=hC(y)||hC(g);return i[h][b]}),f=n&&Object.entries(n).reduce((h,y)=>{let[g,b]=y;return b===void 0||(h[g]=b),h},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((h,y)=>{let{class:g,className:b,...v}=y;return Object.entries(v).every(_=>{let[x,R]=_;return Array.isArray(R)?R.includes({...c,...f}[x]):{...c,...f}[x]===R})?[...h,g,b]:h},[]);return pC(e,l,d,n?.class,n?.className)};const T2=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const hU=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const pU=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const mC=e=>{const t=pU(e);return t.charAt(0).toUpperCase()+t.slice(1)};var mU={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const gU=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const yU=O.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:c,iconNode:l,...f},d)=>O.createElement("svg",{ref:d,...mU,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:T2("lucide",i),...!c&&!gU(f)&&{"aria-hidden":"true"},...f},[...l.map(([h,y])=>O.createElement(h,y)),...Array.isArray(c)?c:[c]]));const xr=(e,t)=>{const n=O.forwardRef(({className:r,...i},c)=>O.createElement(yU,{ref:c,iconNode:t,className:T2(`lucide-${hU(mC(e))}`,`lucide-${e}`,r),...i}));return n.displayName=mC(e),n};const bU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],vU=xr("circle-alert",bU);const SU=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],_U=xr("hard-drive",SU);const wU=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],xU=xr("house",wU);const EU=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],RU=xr("image",EU);const CU=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],TU=xr("key",CU);const AU=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],IU=xr("log-out",AU);const OU=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],MU=xr("moon",OU);const DU=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],kU=xr("panel-left",DU);const PU=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],gC=xr("server",PU);const NU=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],zU=xr("sun",NU);const LU=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],BU=xr("x",LU);function jp(){return typeof window<"u"}function $i(e){return Sv(e)?(e.nodeName||"").toLowerCase():"#document"}function mn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $r(e){var t;return(t=(Sv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Sv(e){return jp()?e instanceof Node||e instanceof mn(e).Node:!1}function St(e){return jp()?e instanceof Element||e instanceof mn(e).Element:!1}function dn(e){return jp()?e instanceof HTMLElement||e instanceof mn(e).HTMLElement:!1}function Cb(e){return!jp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof mn(e).ShadowRoot}const $U=new Set(["inline","contents"]);function Ui(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=$s(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!$U.has(i)}const UU=new Set(["table","td","th"]);function jU(e){return UU.has($i(e))}const HU=[":popover-open",":modal"];function Hp(e){return HU.some(t=>{try{return e.matches(t)}catch{return!1}})}const FU=["transform","translate","scale","rotate","perspective"],qU=["transform","translate","scale","rotate","perspective","filter"],VU=["paint","layout","strict","content"];function _v(e){const t=Fp(),n=St(e)?$s(e):e;return FU.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||qU.some(r=>(n.willChange||"").includes(r))||VU.some(r=>(n.contain||"").includes(r))}function GU(e){let t=Eo(e);for(;dn(t)&&!wo(t);){if(_v(t))return t;if(Hp(t))return null;t=Eo(t)}return null}function Fp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const KU=new Set(["html","body","#document"]);function wo(e){return KU.has($i(e))}function $s(e){return mn(e).getComputedStyle(e)}function qp(e){return St(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Eo(e){if($i(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Cb(e)&&e.host||$r(e);return Cb(t)?t.host:t}function A2(e){const t=Eo(e);return wo(t)?e.ownerDocument?e.ownerDocument.body:e.body:dn(t)&&Ui(t)?t:A2(t)}function Pi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=A2(e),c=i===((r=e.ownerDocument)==null?void 0:r.body),l=mn(i);if(c){const f=Tb(l);return t.concat(l,l.visualViewport||[],Ui(i)?i:[],f&&n?Pi(f):[])}return t.concat(i,Pi(i,[],n))}function Tb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const g0=ov[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],ZU=g0&&g0!==O.useLayoutEffect?g0:e=>e();function qe(e){const t=lr(YU).current;return t.next=e,ZU(t.effect),t.trampoline}function YU(){const e={next:void 0,callback:QU,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function QU(){}const XU={...ov},WU=()=>{},pt=typeof document<"u"?O.useLayoutEffect:WU,JU=O.createContext(void 0);function e5(e=!1){const t=O.useContext(JU);if(t===void 0&&!e)throw new Error(Ao(16));return t}function t5(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:c}=e,l=r&&t!==!1,f=r&&t===!1;return{props:O.useMemo(()=>{const h={onKeyDown(y){n&&t&&y.key!=="Tab"&&y.preventDefault()}};return r||(h.tabIndex=i,!c&&n&&(h.tabIndex=t?i:-1)),(c&&(t||l)||!c&&n)&&(h["aria-disabled"]=n),c&&(!t||f)&&(h.disabled=n),h},[r,n,t,l,f,c,i])}}function I2(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0}=e,c=O.useRef(null),l=e5(!0)!==void 0,f=qe(()=>{const b=c.current;return!!(b?.tagName==="A"&&b?.href)}),{props:d}=t5({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:r,isNativeButton:i}),h=O.useCallback(()=>{const b=c.current;n5(b)&&l&&t&&d.disabled===void 0&&b.disabled&&(b.disabled=!1)},[t,d.disabled,l]);pt(h,[h]);const y=O.useCallback((b={})=>{const{onClick:v,onMouseDown:_,onKeyUp:x,onKeyDown:R,onPointerDown:C,...I}=b;return Up({type:i?"button":void 0,onClick(A){if(t){A.preventDefault();return}v?.(A)},onMouseDown(A){t||_?.(A)},onKeyDown(A){if(t||(Rb(A),R?.(A)),A.baseUIHandlerPrevented)return;const B=A.target===A.currentTarget&&!i&&!f()&&!t,j=A.key==="Enter",H=A.key===" ";B&&((H||j)&&A.preventDefault(),j&&v?.(A))},onKeyUp(A){t||(Rb(A),x?.(A)),!A.baseUIHandlerPrevented&&A.target===A.currentTarget&&!i&&!t&&A.key===" "&&v?.(A)},onPointerDown(A){if(t){A.preventDefault();return}C?.(A)}},i?void 0:{role:"button"},d,I)},[t,d,i,f]),g=qe(b=>{c.current=b,h()});return{getButtonProps:y,buttonRef:g}}function n5(e){return dn(e)&&e.tagName==="BUTTON"}const s5=O.forwardRef(function(t,n){const{render:r,className:i,disabled:c=!1,focusableWhenDisabled:l=!1,nativeButton:f=!0,...d}=t,{getButtonProps:h,buttonRef:y}=I2({disabled:c,focusableWhenDisabled:l,native:f});return ur("button",t,{state:{disabled:c},ref:[n,y],props:[d,h]})}),r5=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r({classGroupId:e,validator:t}),O2=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),np="-",yC=[],i5="arbitrary..",a5=e=>{const t=l5(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return c5(l);const f=l.split(np),d=f[0]===""&&f.length>1?1:0;return M2(f,d,t)},getConflictingClassGroupIds:(l,f)=>{if(f){const d=r[l],h=n[l];return d?h?r5(h,d):d:h||yC}return n[l]||yC}}},M2=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],c=n.nextPart.get(i);if(c){const h=M2(e,t+1,c);if(h)return h}const l=n.validators;if(l===null)return;const f=t===0?e.join(np):e.slice(t).join(np),d=l.length;for(let h=0;he.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?i5+r:void 0})(),l5=e=>{const{theme:t,classGroups:n}=e;return u5(n,t)},u5=(e,t)=>{const n=O2();for(const r in e){const i=e[r];wv(i,n,r,t)}return n},wv=(e,t,n,r)=>{const i=e.length;for(let c=0;c{if(typeof e=="string"){d5(e,t,n);return}if(typeof e=="function"){h5(e,t,n,r);return}p5(e,t,n,r)},d5=(e,t,n)=>{const r=e===""?t:D2(t,e);r.classGroupId=n},h5=(e,t,n,r)=>{if(m5(e)){wv(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(o5(n,e))},p5=(e,t,n,r)=>{const i=Object.entries(e),c=i.length;for(let l=0;l{let n=e;const r=t.split(np),i=r.length;for(let c=0;c"isThemeGetter"in e&&e.isThemeGetter===!0,g5=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(c,l)=>{n[c]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(c){let l=n[c];if(l!==void 0)return l;if((l=r[c])!==void 0)return i(c,l),l},set(c,l){c in n?n[c]=l:i(c,l)}}},Ab="!",bC=":",y5=[],vC=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),b5=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const c=[];let l=0,f=0,d=0,h;const y=i.length;for(let x=0;xd?h-d:void 0;return vC(c,v,b,_)};if(t){const i=t+bC,c=r;r=l=>l.startsWith(i)?c(l.slice(i.length)):vC(y5,!1,l,void 0,!0)}if(n){const i=r;r=c=>n({className:c,parseClassName:i})}return r},v5=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let c=0;c0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},S5=e=>({cache:g5(e.cacheSize),parseClassName:b5(e),sortModifiers:v5(e),...a5(e)}),_5=/\s+/,w5=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:c}=t,l=[],f=e.trim().split(_5);let d="";for(let h=f.length-1;h>=0;h-=1){const y=f[h],{isExternal:g,modifiers:b,hasImportantModifier:v,baseClassName:_,maybePostfixModifierPosition:x}=n(y);if(g){d=y+(d.length>0?" "+d:d);continue}let R=!!x,C=r(R?_.substring(0,x):_);if(!C){if(!R){d=y+(d.length>0?" "+d:d);continue}if(C=r(_),!C){d=y+(d.length>0?" "+d:d);continue}R=!1}const I=b.length===0?"":b.length===1?b[0]:c(b).join(":"),D=v?I+Ab:I,A=D+C;if(l.indexOf(A)>-1)continue;l.push(A);const B=i(C,R);for(let j=0;j0?" "+d:d)}return d},x5=(...e)=>{let t=0,n,r,i="";for(;t{if(typeof e=="string")return e;let t,n="";for(let r=0;r{let n,r,i,c;const l=d=>{const h=t.reduce((y,g)=>g(y),e());return n=S5(h),r=n.cache.get,i=n.cache.set,c=f,f(d)},f=d=>{const h=r(d);if(h)return h;const y=w5(d,n);return i(d,y),y};return c=l,(...d)=>c(x5(...d))},R5=[],Sn=e=>{const t=n=>n[e]||R5;return t.isThemeGetter=!0,t},P2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,N2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,C5=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,T5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,A5=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,I5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,O5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,M5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_i=e=>C5.test(e),et=e=>!!e&&!Number.isNaN(Number(e)),wi=e=>!!e&&Number.isInteger(Number(e)),y0=e=>e.endsWith("%")&&et(e.slice(0,-1)),ho=e=>T5.test(e),z2=()=>!0,D5=e=>A5.test(e)&&!I5.test(e),xv=()=>!1,k5=e=>O5.test(e),P5=e=>M5.test(e),N5=e=>!ke(e)&&!Ne(e),z5=e=>ji(e,$2,xv),ke=e=>P2.test(e),wa=e=>ji(e,U2,D5),SC=e=>ji(e,q5,et),L5=e=>ji(e,H2,z2),B5=e=>ji(e,j2,xv),_C=e=>ji(e,L2,xv),$5=e=>ji(e,B2,P5),ph=e=>ji(e,F2,k5),Ne=e=>N2.test(e),ju=e=>qa(e,U2),U5=e=>qa(e,j2),wC=e=>qa(e,L2),j5=e=>qa(e,$2),H5=e=>qa(e,B2),mh=e=>qa(e,F2,!0),F5=e=>qa(e,H2,!0),ji=(e,t,n)=>{const r=P2.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},qa=(e,t,n=!1)=>{const r=N2.exec(e);return r?r[1]?t(r[1]):n:!1},L2=e=>e==="position"||e==="percentage",B2=e=>e==="image"||e==="url",$2=e=>e==="length"||e==="size"||e==="bg-size",U2=e=>e==="length",q5=e=>e==="number",j2=e=>e==="family-name",H2=e=>e==="number"||e==="weight",F2=e=>e==="shadow",V5=()=>{const e=Sn("color"),t=Sn("font"),n=Sn("text"),r=Sn("font-weight"),i=Sn("tracking"),c=Sn("leading"),l=Sn("breakpoint"),f=Sn("container"),d=Sn("spacing"),h=Sn("radius"),y=Sn("shadow"),g=Sn("inset-shadow"),b=Sn("text-shadow"),v=Sn("drop-shadow"),_=Sn("blur"),x=Sn("perspective"),R=Sn("aspect"),C=Sn("ease"),I=Sn("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...A(),Ne,ke],j=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],k=()=>[Ne,ke,d],Q=()=>[_i,"full","auto",...k()],ne=()=>[wi,"none","subgrid",Ne,ke],re=()=>["auto",{span:["full",wi,Ne,ke]},wi,Ne,ke],G=()=>[wi,"auto",Ne,ke],te=()=>["auto","min","max","fr",Ne,ke],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],me=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...k()],oe=()=>[_i,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],J=()=>[_i,"screen","full","dvw","lvw","svw","min","max","fit",...k()],ve=()=>[_i,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],fe=()=>[e,Ne,ke],z=()=>[...A(),wC,_C,{position:[Ne,ke]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ge=()=>["auto","cover","contain",j5,z5,{size:[Ne,ke]}],be=()=>[y0,ju,wa],Ee=()=>["","none","full",h,Ne,ke],_e=()=>["",et,ju,wa],Ie=()=>["solid","dashed","dotted","double"],Xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>[et,y0,wC,_C],it=()=>["","none",_,Ne,ke],zt=()=>["none",et,Ne,ke],ye=()=>["none",et,Ne,ke],xe=()=>[et,Ne,ke],we=()=>[_i,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ho],breakpoint:[ho],color:[z2],container:[ho],"drop-shadow":[ho],ease:["in","out","in-out"],font:[N5],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ho],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ho],shadow:[ho],spacing:["px",et],text:[ho],"text-shadow":[ho],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",_i,ke,Ne,R]}],container:["container"],columns:[{columns:[et,ke,Ne,f]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:B()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Q()}],"inset-x":[{"inset-x":Q()}],"inset-y":[{"inset-y":Q()}],start:[{"inset-s":Q(),start:Q()}],end:[{"inset-e":Q(),end:Q()}],"inset-bs":[{"inset-bs":Q()}],"inset-be":[{"inset-be":Q()}],top:[{top:Q()}],right:[{right:Q()}],bottom:[{bottom:Q()}],left:[{left:Q()}],visibility:["visible","invisible","collapse"],z:[{z:[wi,"auto",Ne,ke]}],basis:[{basis:[_i,"full","auto",f,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[et,_i,"auto","initial","none",ke]}],grow:[{grow:["",et,Ne,ke]}],shrink:[{shrink:["",et,Ne,ke]}],order:[{order:[wi,"first","last","none",Ne,ke]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...me(),"normal"]}],"justify-self":[{"justify-self":["auto",...me()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...me(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...me(),"baseline"]}],"place-self":[{"place-self":["auto",...me()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:oe()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...ve()]}],"min-block-size":[{"min-block":["auto",...ve()]}],"max-block-size":[{"max-block":["none",...ve()]}],w:[{w:[f,"screen",...oe()]}],"min-w":[{"min-w":[f,"screen","none",...oe()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[l]},...oe()]}],h:[{h:["screen","lh",...oe()]}],"min-h":[{"min-h":["screen","lh","none",...oe()]}],"max-h":[{"max-h":["screen","lh",...oe()]}],"font-size":[{text:["base",n,ju,wa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,F5,L5]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",y0,ke]}],"font-family":[{font:[U5,B5,t]}],"font-features":[{"font-features":[ke]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Ne,ke]}],"line-clamp":[{"line-clamp":[et,"none",Ne,SC]}],leading:[{leading:[c,...k()]}],"list-image":[{"list-image":["none",Ne,ke]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ne,ke]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:fe()}],"text-color":[{text:fe()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[et,"from-font","auto",Ne,wa]}],"text-decoration-color":[{decoration:fe()}],"underline-offset":[{"underline-offset":[et,"auto",Ne,ke]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ne,ke]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ne,ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:ge()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},wi,Ne,ke],radial:["",Ne,ke],conic:[wi,Ne,ke]},H5,$5]}],"bg-color":[{bg:fe()}],"gradient-from-pos":[{from:be()}],"gradient-via-pos":[{via:be()}],"gradient-to-pos":[{to:be()}],"gradient-from":[{from:fe()}],"gradient-via":[{via:fe()}],"gradient-to":[{to:fe()}],rounded:[{rounded:Ee()}],"rounded-s":[{"rounded-s":Ee()}],"rounded-e":[{"rounded-e":Ee()}],"rounded-t":[{"rounded-t":Ee()}],"rounded-r":[{"rounded-r":Ee()}],"rounded-b":[{"rounded-b":Ee()}],"rounded-l":[{"rounded-l":Ee()}],"rounded-ss":[{"rounded-ss":Ee()}],"rounded-se":[{"rounded-se":Ee()}],"rounded-ee":[{"rounded-ee":Ee()}],"rounded-es":[{"rounded-es":Ee()}],"rounded-tl":[{"rounded-tl":Ee()}],"rounded-tr":[{"rounded-tr":Ee()}],"rounded-br":[{"rounded-br":Ee()}],"rounded-bl":[{"rounded-bl":Ee()}],"border-w":[{border:_e()}],"border-w-x":[{"border-x":_e()}],"border-w-y":[{"border-y":_e()}],"border-w-s":[{"border-s":_e()}],"border-w-e":[{"border-e":_e()}],"border-w-bs":[{"border-bs":_e()}],"border-w-be":[{"border-be":_e()}],"border-w-t":[{"border-t":_e()}],"border-w-r":[{"border-r":_e()}],"border-w-b":[{"border-b":_e()}],"border-w-l":[{"border-l":_e()}],"divide-x":[{"divide-x":_e()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":_e()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ie(),"hidden","none"]}],"divide-style":[{divide:[...Ie(),"hidden","none"]}],"border-color":[{border:fe()}],"border-color-x":[{"border-x":fe()}],"border-color-y":[{"border-y":fe()}],"border-color-s":[{"border-s":fe()}],"border-color-e":[{"border-e":fe()}],"border-color-bs":[{"border-bs":fe()}],"border-color-be":[{"border-be":fe()}],"border-color-t":[{"border-t":fe()}],"border-color-r":[{"border-r":fe()}],"border-color-b":[{"border-b":fe()}],"border-color-l":[{"border-l":fe()}],"divide-color":[{divide:fe()}],"outline-style":[{outline:[...Ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[et,Ne,ke]}],"outline-w":[{outline:["",et,ju,wa]}],"outline-color":[{outline:fe()}],shadow:[{shadow:["","none",y,mh,ph]}],"shadow-color":[{shadow:fe()}],"inset-shadow":[{"inset-shadow":["none",g,mh,ph]}],"inset-shadow-color":[{"inset-shadow":fe()}],"ring-w":[{ring:_e()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:fe()}],"ring-offset-w":[{"ring-offset":[et,wa]}],"ring-offset-color":[{"ring-offset":fe()}],"inset-ring-w":[{"inset-ring":_e()}],"inset-ring-color":[{"inset-ring":fe()}],"text-shadow":[{"text-shadow":["none",b,mh,ph]}],"text-shadow-color":[{"text-shadow":fe()}],opacity:[{opacity:[et,Ne,ke]}],"mix-blend":[{"mix-blend":[...Xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Xe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[et]}],"mask-image-linear-from-pos":[{"mask-linear-from":Se()}],"mask-image-linear-to-pos":[{"mask-linear-to":Se()}],"mask-image-linear-from-color":[{"mask-linear-from":fe()}],"mask-image-linear-to-color":[{"mask-linear-to":fe()}],"mask-image-t-from-pos":[{"mask-t-from":Se()}],"mask-image-t-to-pos":[{"mask-t-to":Se()}],"mask-image-t-from-color":[{"mask-t-from":fe()}],"mask-image-t-to-color":[{"mask-t-to":fe()}],"mask-image-r-from-pos":[{"mask-r-from":Se()}],"mask-image-r-to-pos":[{"mask-r-to":Se()}],"mask-image-r-from-color":[{"mask-r-from":fe()}],"mask-image-r-to-color":[{"mask-r-to":fe()}],"mask-image-b-from-pos":[{"mask-b-from":Se()}],"mask-image-b-to-pos":[{"mask-b-to":Se()}],"mask-image-b-from-color":[{"mask-b-from":fe()}],"mask-image-b-to-color":[{"mask-b-to":fe()}],"mask-image-l-from-pos":[{"mask-l-from":Se()}],"mask-image-l-to-pos":[{"mask-l-to":Se()}],"mask-image-l-from-color":[{"mask-l-from":fe()}],"mask-image-l-to-color":[{"mask-l-to":fe()}],"mask-image-x-from-pos":[{"mask-x-from":Se()}],"mask-image-x-to-pos":[{"mask-x-to":Se()}],"mask-image-x-from-color":[{"mask-x-from":fe()}],"mask-image-x-to-color":[{"mask-x-to":fe()}],"mask-image-y-from-pos":[{"mask-y-from":Se()}],"mask-image-y-to-pos":[{"mask-y-to":Se()}],"mask-image-y-from-color":[{"mask-y-from":fe()}],"mask-image-y-to-color":[{"mask-y-to":fe()}],"mask-image-radial":[{"mask-radial":[Ne,ke]}],"mask-image-radial-from-pos":[{"mask-radial-from":Se()}],"mask-image-radial-to-pos":[{"mask-radial-to":Se()}],"mask-image-radial-from-color":[{"mask-radial-from":fe()}],"mask-image-radial-to-color":[{"mask-radial-to":fe()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[et]}],"mask-image-conic-from-pos":[{"mask-conic-from":Se()}],"mask-image-conic-to-pos":[{"mask-conic-to":Se()}],"mask-image-conic-from-color":[{"mask-conic-from":fe()}],"mask-image-conic-to-color":[{"mask-conic-to":fe()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:ge()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ne,ke]}],filter:[{filter:["","none",Ne,ke]}],blur:[{blur:it()}],brightness:[{brightness:[et,Ne,ke]}],contrast:[{contrast:[et,Ne,ke]}],"drop-shadow":[{"drop-shadow":["","none",v,mh,ph]}],"drop-shadow-color":[{"drop-shadow":fe()}],grayscale:[{grayscale:["",et,Ne,ke]}],"hue-rotate":[{"hue-rotate":[et,Ne,ke]}],invert:[{invert:["",et,Ne,ke]}],saturate:[{saturate:[et,Ne,ke]}],sepia:[{sepia:["",et,Ne,ke]}],"backdrop-filter":[{"backdrop-filter":["","none",Ne,ke]}],"backdrop-blur":[{"backdrop-blur":it()}],"backdrop-brightness":[{"backdrop-brightness":[et,Ne,ke]}],"backdrop-contrast":[{"backdrop-contrast":[et,Ne,ke]}],"backdrop-grayscale":[{"backdrop-grayscale":["",et,Ne,ke]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[et,Ne,ke]}],"backdrop-invert":[{"backdrop-invert":["",et,Ne,ke]}],"backdrop-opacity":[{"backdrop-opacity":[et,Ne,ke]}],"backdrop-saturate":[{"backdrop-saturate":[et,Ne,ke]}],"backdrop-sepia":[{"backdrop-sepia":["",et,Ne,ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ne,ke]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[et,"initial",Ne,ke]}],ease:[{ease:["linear","initial",C,Ne,ke]}],delay:[{delay:[et,Ne,ke]}],animate:[{animate:["none",I,Ne,ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,Ne,ke]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:zt()}],"rotate-x":[{"rotate-x":zt()}],"rotate-y":[{"rotate-y":zt()}],"rotate-z":[{"rotate-z":zt()}],scale:[{scale:ye()}],"scale-x":[{"scale-x":ye()}],"scale-y":[{"scale-y":ye()}],"scale-z":[{"scale-z":ye()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[Ne,ke,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":["translate-none"],accent:[{accent:fe()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:fe()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ne,ke]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ne,ke]}],fill:[{fill:["none",...fe()]}],"stroke-w":[{stroke:[et,ju,wa,SC]}],stroke:[{stroke:["none",...fe()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},G5=E5(V5);function sn(...e){return G5(R2(e))}function jve(e){return e?new Date(e).toLocaleString(void 0,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}):"Unknown"}function Hve(e){if(e===0)return"0 B";const t=["B","KB","MB","GB","TB"],n=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**n).toFixed(2)} ${t[n]}`}const K5=/\/$/;function Fve(e){return e.replace(K5,"")}function Z5(e){return e&&(e.endsWith("/")?e:`${e}/`)}function Y5(e,t){return e.startsWith(t)?e:`${t}${e}`}function qve(e,t){return e.startsWith(t)?e.slice(t.length):e}const Q5=C2("group/button inline-flex shrink-0 select-none items-center justify-center whitespace-nowrap rounded-md border border-transparent bg-clip-padding font-medium text-xs/relaxed outline-none transition-all focus-visible:border-ring focus-visible:ring-[2px] focus-visible:ring-ring/30 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:bg-input/30",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 dark:hover:bg-destructive/30",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",xs:"h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5",sm:"h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",lg:"h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4",icon:"size-7 [&_svg:not([class*='size-'])]:size-3.5","icon-xs":"size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5","icon-sm":"size-6 [&_svg:not([class*='size-'])]:size-3","icon-lg":"size-8 [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default",size:"default"}});function cl(e){const t=Tt.c(12);let n,r,i,c;t[0]!==e?({className:n,variant:i,size:c,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c):(n=t[1],r=t[2],i=t[3],c=t[4]);const l=i===void 0?"default":i,f=c===void 0?"default":c;let d;t[5]!==n||t[6]!==f||t[7]!==l?(d=sn(Q5({variant:l,size:f,className:n})),t[5]=n,t[6]=f,t[7]=l,t[8]=d):d=t[8];let h;return t[9]!==r||t[10]!==d?(h=U.jsx(s5,{className:d,"data-slot":"button",...r}),t[9]=r,t[10]=d,t[11]=h):h=t[11],h}let xC=0;function X5(e,t="mui"){const[n,r]=O.useState(e),i=e||n;return O.useEffect(()=>{n==null&&(xC+=1,r(`${t}-${xC}`))},[n,t]),i}const EC=XU.useId;function Ef(e,t){if(EC!==void 0){const n=EC();return e??(t?`${t}-${n}`:n)}return X5(e,t)}function Ev(e){return Ef(e,"base-ui")}const W5=[];function Rv(e){O.useEffect(e,W5)}const Hu=0;class Br{static create(){return new Br}currentId=Hu;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Hu,n()},t)}isStarted(){return this.currentId!==Hu}clear=()=>{this.currentId!==Hu&&(clearTimeout(this.currentId),this.currentId=Hu)};disposeEffect=()=>this.clear}function ll(){const e=lr(Br.create).current;return Rv(e.disposeEffect),e}function Ht(e){return e?.ownerDocument||document}const bl=typeof navigator<"u",b0=e8(),q2=n8(),V2=t8(),G2=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),K2=b0.platform==="MacIntel"&&b0.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(b0.platform),Z2=bl&&/apple/i.test(navigator.vendor),Ib=bl&&/android/i.test(q2)||/android/i.test(V2),J5=bl&&q2.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,Y2=V2.includes("jsdom/");function e8(){if(!bl)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function t8(){if(!bl)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function n8(){if(!bl)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const Ob="data-base-ui-focusable",Q2="active",X2="selected",W2="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Vve="ArrowLeft",Gve="ArrowRight",Kve="ArrowUp",Zve="ArrowDown";function go(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function gt(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Cb(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function sp(e,t){if(!St(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute("data-trigger-disabled");for(const[,r]of t.entries())if(gt(r,n))return!r.hasAttribute("data-trigger-disabled");return!1}function bs(e){return"composedPath"in e?e.composedPath()[0]:e.target}function vr(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function s8(e){return e.matches("html,body")}function Cv(e){return dn(e)&&e.matches(W2)}function RC(e){return e?e.getAttribute("role")==="combobox"&&Cv(e):!1}function r8(e){if(!e||Y2)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Mb(e){return e?e.hasAttribute(Ob)?e:e.querySelector(`[${Ob}]`)||e:null}function ka(e,t,n=!0){return e.filter(i=>i.parentId===t&&(!n||i.context?.open)).flatMap(i=>[i,...ka(e,i.id,n)])}function CC(e,t){let n=[],r=e.find(i=>i.id===t)?.parentId;for(;r;){const i=e.find(c=>c.id===r);r=i?.parentId,i&&(n=n.concat(i))}return n}function o8(e){e.preventDefault(),e.stopPropagation()}function i8(e){return"nativeEvent"in e}function a8(e){return e.pointerType===""&&e.isTrusted?!0:Ib&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function c8(e){return Y2?!1:!Ib&&e.width===0&&e.height===0||Ib&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function ff(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function l8(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const u8=["top","right","bottom","left"],ul=Math.min,Ps=Math.max,rp=Math.round,gh=Math.floor,Nr=e=>({x:e,y:e}),f8={left:"right",right:"left",bottom:"top",top:"bottom"},d8={start:"end",end:"start"};function Db(e,t,n){return Ps(e,ul(t,n))}function Ro(e,t){return typeof e=="function"?e(t):e}function _s(e){return e.split("-")[0]}function Hi(e){return e.split("-")[1]}function Tv(e){return e==="x"?"y":"x"}function Av(e){return e==="y"?"height":"width"}const h8=new Set(["top","bottom"]);function cr(e){return h8.has(_s(e))?"y":"x"}function Iv(e){return Tv(cr(e))}function p8(e,t,n){n===void 0&&(n=!1);const r=Hi(e),i=Iv(e),c=Av(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(l=op(l)),[l,op(l)]}function m8(e){const t=op(e);return[kb(e),t,kb(t)]}function kb(e){return e.replace(/start|end/g,t=>d8[t])}const TC=["left","right"],AC=["right","left"],g8=["top","bottom"],y8=["bottom","top"];function b8(e,t,n){switch(e){case"top":case"bottom":return n?t?AC:TC:t?TC:AC;case"left":case"right":return t?g8:y8;default:return[]}}function v8(e,t,n,r){const i=Hi(e);let c=b8(_s(e),n==="start",r);return i&&(c=c.map(l=>l+"-"+i),t&&(c=c.concat(c.map(kb)))),c}function op(e){return e.replace(/left|right|bottom|top/g,t=>f8[t])}function S8(e){return{top:0,right:0,bottom:0,left:0,...e}}function J2(e){return typeof e!="number"?S8(e):{top:e,right:e,bottom:e,left:e}}function ip(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}var _8=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ap=_8.join(","),eO=typeof Element>"u",fl=eO?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,cp=!eO&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},lp=function(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),c=i===""||i==="true",l=c||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):lp(t.parentNode));return l},w8=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},tO=function(t,n,r){if(lp(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(ap));return n&&fl.call(t,ap)&&i.unshift(t),i=i.filter(r),i},up=function(t,n,r){for(var i=[],c=Array.from(t);c.length;){var l=c.shift();if(!lp(l,!1))if(l.tagName==="SLOT"){var f=l.assignedElements(),d=f.length?f:l.children,h=up(d,!0,r);r.flatten?i.push.apply(i,h):i.push({scopeParent:l,candidates:h})}else{var y=fl.call(l,ap);y&&r.filter(l)&&(n||!t.includes(l))&&i.push(l);var g=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),b=!lp(g,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(g&&b){var v=up(g===!0?l.children:g.children,!0,r);r.flatten?i.push.apply(i,v):i.push({scopeParent:l,candidates:v})}else c.unshift.apply(c,l.children)}}return i},nO=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},sO=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||w8(t))&&!nO(t)?0:t.tabIndex},x8=function(t,n){var r=sO(t);return r<0&&n&&!nO(t)?0:r},E8=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},rO=function(t){return t.tagName==="INPUT"},R8=function(t){return rO(t)&&t.type==="hidden"},C8=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},T8=function(t,n){for(var r=0;rsummary:first-of-type"),f=l?t.parentElement:t;if(fl.call(f,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var d=t;t;){var h=t.parentElement,y=cp(t);if(h&&!h.shadowRoot&&i(h)===!0)return IC(t);t.assignedSlot?t=t.assignedSlot:!h&&y!==t.ownerDocument?t=y.host:t=h}t=d}if(M8(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return IC(t);return!1},k8=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},oO=function(t){var n=[],r=[];return t.forEach(function(i,c){var l=!!i.scopeParent,f=l?i.scopeParent:i,d=x8(f,l),h=l?oO(i.candidates):f;d===0?l?n.push.apply(n,h):n.push(f):r.push({documentOrder:c,tabIndex:d,item:i,isScope:l,content:h})}),r.sort(E8).reduce(function(i,c){return c.isScope?i.push.apply(i,c.content):i.push(c.content),i},[]).concat(n)},Vp=function(t,n){n=n||{};var r;return n.getShadowRoot?r=up([t],n.includeContainer,{filter:Nb.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:P8}):r=tO(t,n.includeContainer,Nb.bind(null,n)),oO(r)},N8=function(t,n){n=n||{};var r;return n.getShadowRoot?r=up([t],n.includeContainer,{filter:Pb.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=tO(t,n.includeContainer,Pb.bind(null,n)),r},iO=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return fl.call(t,ap)===!1?!1:Nb(n,t)};const Rf=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function aO(e,t){const n=Vp(e,Rf()),r=n.length;if(r===0)return;const i=go(Ht(e)),c=n.indexOf(i),l=c===-1?t===1?0:r-1:c+t;return n[l]}function cO(e){return aO(Ht(e).body,1)||e}function lO(e){return aO(Ht(e).body,-1)||e}function Wu(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!gt(n,r)}function z8(e){Vp(e,Rf()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function OC(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const yh=null;class L8{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let i=0;i=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const bh=new L8;class kr{static create(){return new kr}static request(t){return bh.request(t)}static cancel(t){return bh.cancel(t)}currentId=yh;request(t){this.cancel(),this.currentId=bh.request(()=>{this.currentId=yh,t()})}cancel=()=>{this.currentId!==yh&&(bh.cancel(this.currentId),this.currentId=yh)};disposeEffect=()=>this.cancel}function uO(){const e=lr(kr.create).current;return Rv(e.disposeEffect),e}function mo(e){return e==null?e:"current"in e?e.current:e}let df=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const B8={[df.startingStyle]:""},$8={[df.endingStyle]:""},Ov={transitionStatus(e){return e==="starting"?B8:e==="ending"?$8:null}};function U8(e,t=!1,n=!0){const r=uO();return qe((i,c=null)=>{r.cancel();function l(){Bi.flushSync(i)}const f=mo(e);if(f==null)return;const d=f;if(typeof d.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)i();else{let h=function(){const g=df.startingStyle;if(!d.hasAttribute(g)){r.request(y);return}const b=new MutationObserver(()=>{d.hasAttribute(g)||(b.disconnect(),y())});b.observe(d,{attributes:!0,attributeFilter:[g]}),c?.addEventListener("abort",()=>b.disconnect(),{once:!0})},y=function(){Promise.all(d.getAnimations().map(g=>g.finished)).then(()=>{c?.aborted||l()}).catch(()=>{const g=d.getAnimations();if(n){if(c?.aborted)return;l()}else g.length>0&&g.some(b=>b.pending||b.playState!=="finished")&&y()})};if(t){h();return}r.request(y)}})}function Mv(e){const{enabled:t=!0,open:n,ref:r,onComplete:i}=e,c=qe(i),l=U8(r,n,!1);O.useEffect(()=>{if(!t)return;const f=new AbortController;return l(c,f.signal),()=>{f.abort()}},[t,n,c,l])}function j8(e,t=!1,n=!1){const[r,i]=O.useState(e&&t?"idle":void 0),[c,l]=O.useState(e);return e&&!c&&(l(!0),i("starting")),!e&&c&&r!=="ending"&&!n&&i("ending"),!e&&!c&&r==="ending"&&i(void 0),pt(()=>{if(!e&&c&&r!=="ending"&&n){const f=kr.request(()=>{i("ending")});return()=>{kr.cancel(f)}}},[e,c,r,n]),pt(()=>{if(!e||t)return;const f=kr.request(()=>{i(void 0)});return()=>{kr.cancel(f)}},[t,e]),pt(()=>{if(!e||!t)return;e&&c&&r!=="idle"&&i("starting");const f=kr.request(()=>{i("idle")});return()=>{kr.cancel(f)}},[t,e,c,i,r]),O.useMemo(()=>({mounted:c,setMounted:l,transitionStatus:r}),[c,r])}const Dv="none",fp="trigger-press",wr="trigger-hover",Bh="trigger-focus",fO="outside-press",Yve="item-press",H8="close-press",dO="focus-out",kv="escape-key",Qve="list-navigation",Xve="cancel-open",F8="disabled",hO="imperative-action",Wve="window-resize";function Kt(e,t,n,r){let i=!1,c=!1;const l=Ns;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){c=!0},get isCanceled(){return i},get isPropagationAllowed(){return c},trigger:n,...l}}const pO=O.createContext(void 0);function Va(e){const t=O.useContext(pO);if(e===!1&&t===void 0)throw new Error(Ao(27));return t}let Ia=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=df.startingStyle]="startingStyle",e[e.endingStyle=df.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),dp=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const q8={[dp.popupOpen]:""},V8={[dp.popupOpen]:"",[dp.pressed]:""},G8={[Ia.open]:""},K8={[Ia.closed]:""},Z8={[Ia.anchorHidden]:""},Y8={open(e){return e?q8:null}},Jve={open(e){return e?V8:null}},Cf={open(e){return e?G8:K8},anchorHidden(e){return e?Z8:null}},Q8={...Cf,...Ov},X8=O.forwardRef(function(t,n){const{render:r,className:i,forceRender:c=!1,...l}=t,{store:f}=Va(),d=f.useState("open"),h=f.useState("nested"),y=f.useState("mounted"),g=f.useState("transitionStatus");return ur("div",t,{state:{open:d,transitionStatus:g},ref:[f.context.backdropRef,n],stateAttributesMapping:Q8,props:[{role:"presentation",hidden:!y,style:{userSelect:"none",WebkitUserSelect:"none"}},l],enabled:c||!h})}),W8=O.forwardRef(function(t,n){const{render:r,className:i,disabled:c=!1,nativeButton:l=!0,...f}=t,{store:d}=Va(),h=d.useState("open");function y(_){h&&d.setOpen(!1,Kt(H8,_.nativeEvent))}const{getButtonProps:g,buttonRef:b}=I2({disabled:c,native:l});return ur("button",t,{state:{disabled:c},ref:[n,b],props:[{onClick:y},f,g]})}),J8=O.forwardRef(function(t,n){const{render:r,className:i,id:c,...l}=t,{store:f}=Va(),d=Ev(c);return f.useSyncedValueWithCleanup("descriptionElementId",d),ur("p",t,{ref:n,props:[{id:d},l]})});function Pr(e){const t=lr(ej,e).current;return t.next=e,pt(t.effect),t}function ej(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function tj(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}const nj=O.createContext(null),sj=O.createContext(null),Gp=()=>O.useContext(nj)?.id||null,Tf=e=>{const t=O.useContext(sj);return e??t};function dl(e){return`data-base-ui-${e}`}function $h(e,t,n){if(n&&!ff(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r?.[t]}return e?.[t]}const mO=O.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Br,currentIdRef:{current:null},currentContextRef:{current:null}});function rj(e){const{children:t,delay:n,timeoutMs:r=0}=e,i=O.useRef(n),c=O.useRef(n),l=O.useRef(null),f=O.useRef(null),d=ll();return U.jsx(mO.Provider,{value:O.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:c,currentIdRef:l,timeoutMs:r,currentContextRef:f,timeout:d}),[r,d]),children:t})}function oj(e,t={open:!1}){const n="rootStore"in e?e.rootStore:e,r=n.useState("floatingId"),{open:i}=t,c=O.useContext(mO),{currentIdRef:l,delayRef:f,timeoutMs:d,initialDelayRef:h,currentContextRef:y,hasProvider:g,timeout:b}=c,[v,_]=O.useState(!1);return pt(()=>{function x(){_(!1),y.current?.setIsInstantPhase(!1),l.current=null,y.current=null,f.current=h.current}if(l.current&&!i&&l.current===r){if(_(!1),d){const R=r;return b.start(d,()=>{n.select("open")||l.current&&l.current!==R||x()}),()=>{b.clear()}}x()}},[i,r,l,f,d,h,y,b,n]),pt(()=>{if(!i)return;const x=y.current,R=l.current;b.clear(),y.current={onOpenChange:n.setOpen,setIsInstantPhase:_},l.current=r,f.current={open:0,close:$h(h.current,"close")},R!==null&&R!==r?(_(!0),x?.setIsInstantPhase(!0),x?.onOpenChange(!1,Kt(Dv))):(_(!1),x?.setIsInstantPhase(!1))},[i,r,n,l,f,d,h,y,b]),pt(()=>()=>{y.current=null},[y]),O.useMemo(()=>({hasProvider:g,delayRef:f,isInstantPhase:v}),[g,f,v])}const gO={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},yO={...gO,position:"fixed",top:0,left:0},eSe={...gO,position:"absolute"},hp=O.forwardRef(function(t,n){const[r,i]=O.useState();pt(()=>{Z2&&i("button")},[]);const c={tabIndex:0,role:r};return U.jsx("span",{...t,ref:n,style:yO,"aria-hidden":r?void 0:!0,...c,"data-base-ui-focus-guard":""})});let MC=0;function v0(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(MC);const c=()=>e?.focus({preventScroll:n});i?c():MC=requestAnimationFrame(c)}const Jc={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function DC(e){return e==="inert"?Jc.inert:e==="aria-hidden"?Jc["aria-hidden"]:Jc.none}let vh=new WeakSet,Sh={},S0=0;const bO=e=>e&&(e.host||bO(e.parentNode)),ij=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=bO(n);return e.contains(r)?r:null}).filter(n=>n!=null);function aj(e,t,n,r){const i="data-base-ui-inert",c=r?"inert":n?"aria-hidden":null,l=ij(t,e),f=new Set,d=new Set(l),h=[];Sh[i]||(Sh[i]=new WeakMap);const y=Sh[i];l.forEach(g),b(t),f.clear();function g(v){!v||f.has(v)||(f.add(v),v.parentNode&&g(v.parentNode))}function b(v){!v||d.has(v)||[].forEach.call(v.children,_=>{if($i(_)!=="script")if(f.has(_))b(_);else{const x=c?_.getAttribute(c):null,R=x!==null&&x!=="false",C=DC(c),I=(C.get(_)||0)+1,D=(y.get(_)||0)+1;C.set(_,I),y.set(_,D),h.push(_),I===1&&R&&vh.add(_),D===1&&_.setAttribute(i,""),!R&&c&&_.setAttribute(c,c==="inert"?"":"true")}})}return S0+=1,()=>{h.forEach(v=>{const _=DC(c),R=(_.get(v)||0)-1,C=(y.get(v)||0)-1;_.set(v,R),y.set(v,C),R||(!vh.has(v)&&c&&v.removeAttribute(c),vh.delete(v)),C||v.removeAttribute(i)}),S0-=1,S0||(Jc.inert=new WeakMap,Jc["aria-hidden"]=new WeakMap,Jc.none=new WeakMap,vh=new WeakSet,Sh={})}}function cj(e,t=!1,n=!1){const r=Ht(e[0]).body;return aj(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const vO=O.createContext(null),SO=()=>O.useContext(vO),lj=dl("portal");function _O(e={}){const{ref:t,container:n,componentProps:r=Ns,elementProps:i}=e,c=Ef(),f=SO()?.portalNode,[d,h]=O.useState(null),[y,g]=O.useState(null),b=qe(R=>{R!==null&&g(R)}),v=O.useRef(null);pt(()=>{if(n===null){v.current&&(v.current=null,g(null),h(null));return}if(c==null)return;const R=(n&&(Sv(n)?n:n.current))??f??document.body;if(R==null){v.current&&(v.current=null,g(null),h(null));return}v.current!==R&&(v.current=R,g(null),h(R))},[n,f,c]);const _=ur("div",r,{ref:[t,b],props:[{id:c,[lj]:""},i]});return{portalNode:y,portalSubtree:d&&_?Bi.createPortal(_,d):null}}const uj=O.forwardRef(function(t,n){const{children:r,container:i,className:c,render:l,renderGuards:f,...d}=t,{portalNode:h,portalSubtree:y}=_O({container:i,ref:n,componentProps:t,elementProps:d}),g=O.useRef(null),b=O.useRef(null),v=O.useRef(null),_=O.useRef(null),[x,R]=O.useState(null),C=x?.modal,I=x?.open,D=typeof f=="boolean"?f:!!x&&!x.modal&&x.open&&!!h;O.useEffect(()=>{if(!h||C)return;function B(j){h&&j.relatedTarget&&Wu(j)&&(j.type==="focusin"?OC:z8)(h)}return h.addEventListener("focusin",B,!0),h.addEventListener("focusout",B,!0),()=>{h.removeEventListener("focusin",B,!0),h.removeEventListener("focusout",B,!0)}},[h,C]),O.useEffect(()=>{!h||I||OC(h)},[I,h]);const A=O.useMemo(()=>({beforeOutsideRef:g,afterOutsideRef:b,beforeInsideRef:v,afterInsideRef:_,portalNode:h,setFocusManagerState:R}),[h]);return U.jsxs(O.Fragment,{children:[y,U.jsxs(vO.Provider,{value:A,children:[D&&h&&U.jsx(hp,{"data-type":"outside",ref:g,onFocus:B=>{if(Wu(B,h))v.current?.focus();else{const j=x?x.domReference:null;lO(j)?.focus()}}}),D&&h&&U.jsx("span",{"aria-owns":h.id,style:cU}),h&&Bi.createPortal(r,h),D&&h&&U.jsx(hp,{"data-type":"outside",ref:b,onFocus:B=>{if(Wu(B,h))_.current?.focus();else{const j=x?x.domReference:null;cO(j)?.focus(),x?.closeOnFocusOut&&x?.onOpenChange(!1,Kt(dO,B.nativeEvent))}}})]})]})});function fj(e,t){const n=mn(e.target);return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const kC=20;let Oi=[];function Pv(){Oi=Oi.filter(e=>e.deref()?.isConnected)}function dj(e){Pv(),e&&$i(e)!=="body"&&(Oi.push(new WeakRef(e)),Oi.length>kC&&(Oi=Oi.slice(-kC)))}function _0(){return Pv(),Oi[Oi.length-1]?.deref()}function hj(e){if(!e)return null;const t=Rf();return iO(e,t)?e:Vp(e,t)[0]||e}function pj(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():$s(e).display!=="none"}function PC(e,t){if(!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;const n=Rf(),i=N8(e,n).filter(l=>{const f=l.getAttribute("data-tabindex")||"";return iO(l,n)||l.hasAttribute("data-tabindex")&&!f.startsWith("-")}),c=e.getAttribute("tabindex");t.current.includes("floating")||i.length===0?c!=="0"&&e.setAttribute("tabindex","0"):(c!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function mj(e){const{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:c=!0,restoreFocus:l=!1,modal:f=!0,closeOnFocusOut:d=!0,openInteractionType:h="",nextFocusableElement:y,previousFocusableElement:g,beforeContentFocusGuardRef:b,externalTree:v}=e,_="rootStore"in t?t.rootStore:t,x=_.useState("open"),R=_.useState("domReferenceElement"),C=_.useState("floatingElement"),{events:I,dataRef:D}=_.context,A=qe(()=>D.current.floatingContext?.nodeId),B=i===!1,j=RC(R)&&B,H=O.useRef(["content"]),k=Pr(i),Q=Pr(c),ne=Pr(h),re=Tf(v),G=SO(),te=O.useRef(null),ue=O.useRef(null),me=O.useRef(!1),F=O.useRef(!1),oe=O.useRef(!1),J=O.useRef(-1),ve=O.useRef(""),fe=O.useRef(""),z=O.useRef(null),ee=O.useRef(null),ge=tp(z,b,G?.beforeInsideRef),be=tp(ee,G?.afterInsideRef),Ee=ll(),_e=ll(),Ie=uO(),Xe=G!=null,Se=Mb(C),it=qe((xe=Se)=>xe?Vp(xe,Rf()):[]),zt=qe(xe=>{const we=it(xe);return H.current.map(()=>we).filter(Boolean).flat()});O.useEffect(()=>{if(r||!f)return;function xe(We){We.key==="Tab"&>(Se,go(Ht(Se)))&&it().length===0&&!j&&o8(We)}const we=Ht(Se);return we.addEventListener("keydown",xe),()=>{we.removeEventListener("keydown",xe)}},[r,R,Se,f,H,j,it,zt]),O.useEffect(()=>{if(r||!x)return;const xe=Ht(Se);function we(){oe.current=!1}function We(He){const Pe=bs(He),tt=gt(C,Pe)||gt(R,Pe)||gt(G?.portalNode,Pe);oe.current=!tt,fe.current=He.pointerType||"keyboard",Pe?.closest(`[${iU}]`)&&(F.current=!0)}function Me(){fe.current="keyboard"}return xe.addEventListener("pointerdown",We,!0),xe.addEventListener("pointerup",we,!0),xe.addEventListener("pointercancel",we,!0),xe.addEventListener("keydown",Me,!0),()=>{xe.removeEventListener("pointerdown",We,!0),xe.removeEventListener("pointerup",we,!0),xe.removeEventListener("pointercancel",we,!0),xe.removeEventListener("keydown",Me,!0)}},[r,C,R,Se,x,G]),O.useEffect(()=>{if(r||!d)return;const xe=Ht(Se);function we(){F.current=!0,_e.start(0,()=>{F.current=!1})}function We(Dt){const Ye=bs(Dt),wn=it().indexOf(Ye);wn!==-1&&(J.current=wn)}function Me(Dt){const Ye=Dt.relatedTarget,wt=Dt.currentTarget,wn=bs(Dt);queueMicrotask(()=>{const xt=A(),pr=_.context.triggerElements,dt=Ye?.hasAttribute(dl("focus-guard"))&&[z.current,ee.current,G?.beforeInsideRef.current,G?.afterInsideRef.current,G?.beforeOutsideRef.current,G?.afterOutsideRef.current,mo(g),mo(y)].includes(Ye),kt=!(gt(R,Ye)||gt(C,Ye)||gt(Ye,C)||gt(G?.portalNode,Ye)||Ye!=null&&pr.hasElement(Ye)||pr.hasMatchingElement(mt=>gt(mt,Ye))||dt||re&&(ka(re.nodesRef.current,xt).find(mt=>gt(mt.context?.elements.floating,Ye)||gt(mt.context?.elements.domReference,Ye))||CC(re.nodesRef.current,xt).find(mt=>[mt.context?.elements.floating,Mb(mt.context?.elements.floating)].includes(Ye)||mt.context?.elements.domReference===Ye)));if(wt===R&&Se&&PC(Se,H),l&&wt!==R&&!pj(wn)&&go(xe)===xe.body){if(dn(Se)&&(Se.focus(),l==="popup")){Ie.request(()=>{Se.focus()});return}const mt=J.current,Es=it(),js=Es[mt]||Es[Es.length-1]||Se;dn(js)&&js.focus()}if(D.current.insideReactTree){D.current.insideReactTree=!1;return}(j||!f)&&Ye&&kt&&!F.current&&(j||Ye!==_0())&&(me.current=!0,_.setOpen(!1,Kt(dO,Dt)))})}function He(){oe.current||(D.current.insideReactTree=!0,Ee.start(0,()=>{D.current.insideReactTree=!1}))}const Pe=dn(R)?R:null,tt=[];if(!(!C&&!Pe))return Pe&&(Pe.addEventListener("focusout",Me),Pe.addEventListener("pointerdown",we),tt.push(()=>{Pe.removeEventListener("focusout",Me),Pe.removeEventListener("pointerdown",we)})),C&&(C.addEventListener("focusin",We),C.addEventListener("focusout",Me),G&&(C.addEventListener("focusout",He,!0),tt.push(()=>{C.removeEventListener("focusout",He,!0)})),tt.push(()=>{C.removeEventListener("focusin",We),C.removeEventListener("focusout",Me)})),()=>{tt.forEach(Dt=>{Dt()})}},[r,R,C,Se,f,re,G,_,d,l,it,j,A,H,D,Ee,_e,Ie,y,g]),O.useEffect(()=>{if(r||!C||!x)return;const xe=Array.from(G?.portalNode?.querySelectorAll(`[${dl("portal")}]`)||[]),We=(re?CC(re.nodesRef.current,A()):[]).find(He=>RC(He.context?.elements.domReference||null))?.context?.elements.domReference,Me=[C,We,...xe,te.current,ue.current,z.current,ee.current,G?.beforeOutsideRef.current,G?.afterOutsideRef.current,mo(g),mo(y),j?R:null].filter(He=>He!=null);return cj(Me,f||j)},[x,r,R,C,f,H,G,j,re,A,y,g]),pt(()=>{if(!x||r||!dn(Se))return;const xe=Ht(Se),we=go(xe);queueMicrotask(()=>{const We=zt(Se),Me=k.current,He=typeof Me=="function"?Me(ne.current||""):Me;if(He===void 0||He===!1)return;let Pe;He===!0||He===null?Pe=We[0]||Se:Pe=mo(He),Pe=Pe||We[0]||Se,!gt(Se,we)&&v0(Pe,{preventScroll:Pe===Se})})},[r,x,Se,B,zt,k,ne]),pt(()=>{if(r||!Se)return;const xe=Ht(Se),we=go(xe);dj(we);function We(Pe){if(Pe.open||(ve.current=fj(Pe.nativeEvent,fe.current)),Pe.reason===wr&&Pe.nativeEvent.type==="mouseleave"&&(me.current=!0),Pe.reason===fO)if(Pe.nested)me.current=!1;else if(a8(Pe.nativeEvent)||c8(Pe.nativeEvent))me.current=!1;else{let tt=!1;document.createElement("div").focus({get preventScroll(){return tt=!0,!1}}),tt?me.current=!1:me.current=!0}}I.on("openchange",We);const Me=xe.createElement("span");Me.setAttribute("tabindex","-1"),Me.setAttribute("aria-hidden","true"),Object.assign(Me.style,yO),Xe&&R&&R.insertAdjacentElement("afterend",Me);function He(){const Pe=Q.current;let tt=typeof Pe=="function"?Pe(ve.current):Pe;if(tt===void 0||tt===!1)return null;if(tt===null&&(tt=!0),typeof tt=="boolean"){const Ye=R||_0();return Ye&&Ye.isConnected?Ye:Me}const Dt=R||_0()||Me;return mo(tt)||Dt}return()=>{I.off("openchange",We);const Pe=go(xe),tt=gt(C,Pe)||re&&ka(re.nodesRef.current,A(),!1).some(Ye=>gt(Ye.context?.elements.floating,Pe)),Dt=He();queueMicrotask(()=>{const Ye=hj(Dt),wt=typeof Q.current!="boolean";Q.current&&!me.current&&dn(Ye)&&(!(!wt&&Ye!==Pe&&Pe!==xe.body)||tt)&&Ye.focus({preventScroll:!0}),Me.remove(),me.current=!1})}},[r,C,Se,Q,D,I,re,Xe,R,A]),pt(()=>{if(!G2||x||!C)return;const xe=go(Ht(C));!dn(xe)||!Cv(xe)||gt(C,xe)&&xe.blur()},[x,C]),pt(()=>{if(!(r||!G))return G.setFocusManagerState({modal:f,closeOnFocusOut:d,open:x,onOpenChange:_.setOpen,domReference:R}),()=>{G.setFocusManagerState(null)}},[r,G,f,x,_,d,R]),pt(()=>{if(!(r||!Se))return PC(Se,H),()=>{queueMicrotask(Pv)}},[r,Se,H]);const ye=!r&&(f?!j:!0)&&(Xe||f);return U.jsxs(O.Fragment,{children:[ye&&U.jsx(hp,{"data-type":"inside",ref:ge,onFocus:xe=>{if(f){const we=zt();v0(we[we.length-1])}else G?.portalNode&&(me.current=!1,Wu(xe,G.portalNode)?cO(R)?.focus():mo(g??G.beforeOutsideRef)?.focus())}}),n,ye&&U.jsx(hp,{"data-type":"inside",ref:be,onFocus:xe=>{f?v0(zt()[0]):G?.portalNode&&(d&&(me.current=!0),Wu(xe,G.portalNode)?lO(R)?.focus():mo(y??G.afterOutsideRef)?.focus())}})]})}function gj(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){const c=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},l=t.axis==="x"||t.axis==="both",f=t.axis==="y"||t.axis==="both",d=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch";let h=c.width,y=c.height,g=c.x,b=c.y;return n==null&&t.x&&l&&(n=c.x-t.x),r==null&&t.y&&f&&(r=c.y-t.y),g-=n||0,b-=r||0,h=0,y=0,!i||d?(h=t.axis==="y"?c.width:0,y=t.axis==="x"?c.height:0,g=l&&t.x!=null?t.x:g,b=f&&t.y!=null?t.y:b):i&&!d&&(y=t.axis==="x"?c.height:y,h=t.axis==="y"?c.width:h),i=!0,{width:h,height:y,x:g,y:b,top:b,right:g+h,bottom:b+y,left:g}}}}function NC(e){return e!=null&&e.clientX!=null}function yj(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),c=n.useState("domReferenceElement"),l=n.context.dataRef,{enabled:f=!0,axis:d="both"}=t,h=O.useRef(!1),y=O.useRef(null),[g,b]=O.useState(),[v,_]=O.useState([]),x=qe((A,B,j)=>{h.current||l.current.openEvent&&!NC(l.current.openEvent)||n.set("positionReference",gj(j??c,{x:A,y:B,axis:d,dataRef:l,pointerType:g}))}),R=qe(A=>{r?y.current||_([]):x(A.clientX,A.clientY,A.currentTarget)}),C=ff(g)?i:r,I=O.useCallback(()=>{if(!C||!f)return;const A=mn(i);function B(j){const H=bs(j);gt(i,H)?(A.removeEventListener("mousemove",B),y.current=null):x(j.clientX,j.clientY)}if(!l.current.openEvent||NC(l.current.openEvent)){A.addEventListener("mousemove",B);const j=()=>{A.removeEventListener("mousemove",B),y.current=null};return y.current=j,j}n.set("positionReference",c)},[C,f,i,l,c,n,x]);O.useEffect(()=>I(),[I,v]),O.useEffect(()=>{f&&!i&&(h.current=!1)},[f,i]),O.useEffect(()=>{!f&&r&&(h.current=!0)},[f,r]);const D=O.useMemo(()=>{function A(B){b(B.pointerType)}return{onPointerDown:A,onPointerEnter:A,onMouseMove:R,onMouseEnter:R}},[R]);return O.useMemo(()=>f?{reference:D,trigger:D}:{},[f,D])}function zC(e,t,n){let{reference:r,floating:i}=e;const c=cr(t),l=Iv(t),f=Av(l),d=_s(t),h=c==="y",y=r.x+r.width/2-i.width/2,g=r.y+r.height/2-i.height/2,b=r[f]/2-i[f]/2;let v;switch(d){case"top":v={x:y,y:r.y-i.height};break;case"bottom":v={x:y,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:g};break;case"left":v={x:r.x-i.width,y:g};break;default:v={x:r.x,y:r.y}}switch(Hi(t)){case"start":v[l]-=b*(n&&h?-1:1);break;case"end":v[l]+=b*(n&&h?-1:1);break}return v}async function bj(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:c,rects:l,elements:f,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:y="viewport",elementContext:g="floating",altBoundary:b=!1,padding:v=0}=Ro(t,e),_=J2(v),R=f[b?g==="floating"?"reference":"floating":g],C=ip(await c.getClippingRect({element:(n=await(c.isElement==null?void 0:c.isElement(R)))==null||n?R:R.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:h,rootBoundary:y,strategy:d})),I=g==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,D=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),A=await(c.isElement==null?void 0:c.isElement(D))?await(c.getScale==null?void 0:c.getScale(D))||{x:1,y:1}:{x:1,y:1},B=ip(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:I,offsetParent:D,strategy:d}):I);return{top:(C.top-B.top+_.top)/A.y,bottom:(B.bottom-C.bottom+_.bottom)/A.y,left:(C.left-B.left+_.left)/A.x,right:(B.right-C.right+_.right)/A.x}}const vj=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:c=[],platform:l}=n,f=c.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let h=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:y,y:g}=zC(h,r,d),b=r,v={},_=0;for(let R=0;Rue<=0)){var re,G;const ue=(((re=c.flip)==null?void 0:re.index)||0)+1,me=H[ue];if(me&&(!(g==="alignment"?I!==cr(me):!1)||ne.every(J=>cr(J.placement)===I?J.overflows[0]>0:!0)))return{data:{index:ue,overflows:ne},reset:{placement:me}};let F=(G=ne.filter(oe=>oe.overflows[0]<=0).sort((oe,J)=>oe.overflows[1]-J.overflows[1])[0])==null?void 0:G.placement;if(!F)switch(v){case"bestFit":{var te;const oe=(te=ne.filter(J=>{if(j){const ve=cr(J.placement);return ve===I||ve==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(ve=>ve>0).reduce((ve,fe)=>ve+fe,0)]).sort((J,ve)=>J[1]-ve[1])[0])==null?void 0:te[0];oe&&(F=oe);break}case"initialPlacement":F=f;break}if(i!==F)return{reset:{placement:F}}}return{}}}};function LC(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function BC(e){return u8.some(t=>e[t]>=0)}const _j=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...c}=Ro(e,t);switch(i){case"referenceHidden":{const l=await r.detectOverflow(t,{...c,elementContext:"reference"}),f=LC(l,n.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:BC(f)}}}case"escaped":{const l=await r.detectOverflow(t,{...c,altBoundary:!0}),f=LC(l,n.floating);return{data:{escapedOffsets:f,escaped:BC(f)}}}default:return{}}}}},wO=new Set(["left","top"]);async function wj(e,t){const{placement:n,platform:r,elements:i}=e,c=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=_s(n),f=Hi(n),d=cr(n)==="y",h=wO.has(l)?-1:1,y=c&&d?-1:1,g=Ro(t,e);let{mainAxis:b,crossAxis:v,alignmentAxis:_}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof _=="number"&&(v=f==="end"?_*-1:_),d?{x:v*y,y:b*h}:{x:b*h,y:v*y}}const xj=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:c,placement:l,middlewareData:f}=t,d=await wj(t,e);return l===((n=f.offset)==null?void 0:n.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:c+d.y,data:{...d,placement:l}}}}},Ej=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:c}=t,{mainAxis:l=!0,crossAxis:f=!1,limiter:d={fn:C=>{let{x:I,y:D}=C;return{x:I,y:D}}},...h}=Ro(e,t),y={x:n,y:r},g=await c.detectOverflow(t,h),b=cr(_s(i)),v=Tv(b);let _=y[v],x=y[b];if(l){const C=v==="y"?"top":"left",I=v==="y"?"bottom":"right",D=_+g[C],A=_-g[I];_=Db(D,_,A)}if(f){const C=b==="y"?"top":"left",I=b==="y"?"bottom":"right",D=x+g[C],A=x-g[I];x=Db(D,x,A)}const R=d.fn({...t,[v]:_,[b]:x});return{...R,data:{x:R.x-n,y:R.y-r,enabled:{[v]:l,[b]:f}}}}}},Rj=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:c,middlewareData:l}=t,{offset:f=0,mainAxis:d=!0,crossAxis:h=!0}=Ro(e,t),y={x:n,y:r},g=cr(i),b=Tv(g);let v=y[b],_=y[g];const x=Ro(f,t),R=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(d){const D=b==="y"?"height":"width",A=c.reference[b]-c.floating[D]+R.mainAxis,B=c.reference[b]+c.reference[D]-R.mainAxis;vB&&(v=B)}if(h){var C,I;const D=b==="y"?"width":"height",A=wO.has(_s(i)),B=c.reference[g]-c.floating[D]+(A&&((C=l.offset)==null?void 0:C[g])||0)+(A?0:R.crossAxis),j=c.reference[g]+c.reference[D]+(A?0:((I=l.offset)==null?void 0:I[g])||0)-(A?R.crossAxis:0);_j&&(_=j)}return{[b]:v,[g]:_}}}},Cj=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:c,platform:l,elements:f}=t,{apply:d=()=>{},...h}=Ro(e,t),y=await l.detectOverflow(t,h),g=_s(i),b=Hi(i),v=cr(i)==="y",{width:_,height:x}=c.floating;let R,C;g==="top"||g==="bottom"?(R=g,C=b===(await(l.isRTL==null?void 0:l.isRTL(f.floating))?"start":"end")?"left":"right"):(C=g,R=b==="end"?"top":"bottom");const I=x-y.top-y.bottom,D=_-y.left-y.right,A=ul(x-y[R],I),B=ul(_-y[C],D),j=!t.middlewareData.shift;let H=A,k=B;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=D),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(H=I),j&&!b){const ne=Ps(y.left,0),re=Ps(y.right,0),G=Ps(y.top,0),te=Ps(y.bottom,0);v?k=_-2*(ne!==0||re!==0?ne+re:Ps(y.left,y.right)):H=x-2*(G!==0||te!==0?G+te:Ps(y.top,y.bottom))}await d({...t,availableWidth:k,availableHeight:H});const Q=await l.getDimensions(f.floating);return _!==Q.width||x!==Q.height?{reset:{rects:!0}}:{}}}};function xO(e){const t=$s(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=dn(e),c=i?e.offsetWidth:n,l=i?e.offsetHeight:r,f=rp(n)!==c||rp(r)!==l;return f&&(n=c,r=l),{width:n,height:r,$:f}}function Nv(e){return St(e)?e:e.contextElement}function el(e){const t=Nv(e);if(!dn(t))return Nr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:c}=xO(t);let l=(c?rp(n.width):n.width)/r,f=(c?rp(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!f||!Number.isFinite(f))&&(f=1),{x:l,y:f}}const Tj=Nr(0);function EO(e){const t=mn(e);return!Fp()||!t.visualViewport?Tj:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Aj(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==mn(e)?!1:t}function Ba(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),c=Nv(e);let l=Nr(1);t&&(r?St(r)&&(l=el(r)):l=el(e));const f=Aj(c,n,r)?EO(c):Nr(0);let d=(i.left+f.x)/l.x,h=(i.top+f.y)/l.y,y=i.width/l.x,g=i.height/l.y;if(c){const b=mn(c),v=r&&St(r)?mn(r):r;let _=b,x=Tb(_);for(;x&&r&&v!==_;){const R=el(x),C=x.getBoundingClientRect(),I=$s(x),D=C.left+(x.clientLeft+parseFloat(I.paddingLeft))*R.x,A=C.top+(x.clientTop+parseFloat(I.paddingTop))*R.y;d*=R.x,h*=R.y,y*=R.x,g*=R.y,d+=D,h+=A,_=mn(x),x=Tb(_)}}return ip({width:y,height:g,x:d,y:h})}function Kp(e,t){const n=qp(e).scrollLeft;return t?t.left+n:Ba($r(e)).left+n}function RO(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Kp(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Ij(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const c=i==="fixed",l=$r(r),f=t?Hp(t.floating):!1;if(r===l||f&&c)return n;let d={scrollLeft:0,scrollTop:0},h=Nr(1);const y=Nr(0),g=dn(r);if((g||!g&&!c)&&(($i(r)!=="body"||Ui(l))&&(d=qp(r)),dn(r))){const v=Ba(r);h=el(r),y.x=v.x+r.clientLeft,y.y=v.y+r.clientTop}const b=l&&!g&&!c?RO(l,d):Nr(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+y.x+b.x,y:n.y*h.y-d.scrollTop*h.y+y.y+b.y}}function Oj(e){return Array.from(e.getClientRects())}function Mj(e){const t=$r(e),n=qp(e),r=e.ownerDocument.body,i=Ps(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),c=Ps(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Kp(e);const f=-n.scrollTop;return $s(r).direction==="rtl"&&(l+=Ps(t.clientWidth,r.clientWidth)-i),{width:i,height:c,x:l,y:f}}const $C=25;function Dj(e,t){const n=mn(e),r=$r(e),i=n.visualViewport;let c=r.clientWidth,l=r.clientHeight,f=0,d=0;if(i){c=i.width,l=i.height;const y=Fp();(!y||y&&t==="fixed")&&(f=i.offsetLeft,d=i.offsetTop)}const h=Kp(r);if(h<=0){const y=r.ownerDocument,g=y.body,b=getComputedStyle(g),v=y.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,_=Math.abs(r.clientWidth-g.clientWidth-v);_<=$C&&(c-=_)}else h<=$C&&(c+=h);return{width:c,height:l,x:f,y:d}}const kj=new Set(["absolute","fixed"]);function Pj(e,t){const n=Ba(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,c=dn(e)?el(e):Nr(1),l=e.clientWidth*c.x,f=e.clientHeight*c.y,d=i*c.x,h=r*c.y;return{width:l,height:f,x:d,y:h}}function UC(e,t,n){let r;if(t==="viewport")r=Dj(e,n);else if(t==="document")r=Mj($r(e));else if(St(t))r=Pj(t,n);else{const i=EO(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ip(r)}function CO(e,t){const n=Eo(e);return n===t||!St(n)||wo(n)?!1:$s(n).position==="fixed"||CO(n,t)}function Nj(e,t){const n=t.get(e);if(n)return n;let r=Pi(e,[],!1).filter(f=>St(f)&&$i(f)!=="body"),i=null;const c=$s(e).position==="fixed";let l=c?Eo(e):e;for(;St(l)&&!wo(l);){const f=$s(l),d=_v(l);!d&&f.position==="fixed"&&(i=null),(c?!d&&!i:!d&&f.position==="static"&&!!i&&kj.has(i.position)||Ui(l)&&!d&&CO(e,l))?r=r.filter(y=>y!==l):i=f,l=Eo(l)}return t.set(e,r),r}function zj(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?Hp(t)?[]:Nj(t,this._c):[].concat(n),r],f=l[0],d=l.reduce((h,y)=>{const g=UC(t,y,i);return h.top=Ps(g.top,h.top),h.right=ul(g.right,h.right),h.bottom=ul(g.bottom,h.bottom),h.left=Ps(g.left,h.left),h},UC(t,f,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Lj(e){const{width:t,height:n}=xO(e);return{width:t,height:n}}function Bj(e,t,n){const r=dn(t),i=$r(t),c=n==="fixed",l=Ba(e,!0,c,t);let f={scrollLeft:0,scrollTop:0};const d=Nr(0);function h(){d.x=Kp(i)}if(r||!r&&!c)if(($i(t)!=="body"||Ui(i))&&(f=qp(t)),r){const v=Ba(t,!0,c,t);d.x=v.x+t.clientLeft,d.y=v.y+t.clientTop}else i&&h();c&&!r&&i&&h();const y=i&&!r&&!c?RO(i,f):Nr(0),g=l.left+f.scrollLeft-d.x-y.x,b=l.top+f.scrollTop-d.y-y.y;return{x:g,y:b,width:l.width,height:l.height}}function w0(e){return $s(e).position==="static"}function jC(e,t){if(!dn(e)||$s(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return $r(e)===n&&(n=n.ownerDocument.body),n}function TO(e,t){const n=mn(e);if(Hp(e))return n;if(!dn(e)){let i=Eo(e);for(;i&&!wo(i);){if(St(i)&&!w0(i))return i;i=Eo(i)}return n}let r=jC(e,t);for(;r&&jU(r)&&w0(r);)r=jC(r,t);return r&&wo(r)&&w0(r)&&!_v(r)?n:r||GU(e)||n}const $j=async function(e){const t=this.getOffsetParent||TO,n=this.getDimensions,r=await n(e.floating);return{reference:Bj(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Uj(e){return $s(e).direction==="rtl"}const jj={convertOffsetParentRelativeRectToViewportRelativeRect:Ij,getDocumentElement:$r,getClippingRect:zj,getOffsetParent:TO,getElementRects:$j,getClientRects:Oj,getDimensions:Lj,getScale:el,isElement:St,isRTL:Uj};function AO(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Hj(e,t){let n=null,r;const i=$r(e);function c(){var f;clearTimeout(r),(f=n)==null||f.disconnect(),n=null}function l(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),c();const h=e.getBoundingClientRect(),{left:y,top:g,width:b,height:v}=h;if(f||t(),!b||!v)return;const _=gh(g),x=gh(i.clientWidth-(y+b)),R=gh(i.clientHeight-(g+v)),C=gh(y),D={rootMargin:-_+"px "+-x+"px "+-R+"px "+-C+"px",threshold:Ps(0,ul(1,d))||1};let A=!0;function B(j){const H=j[0].intersectionRatio;if(H!==d){if(!A)return l();H?l(!1,H):r=setTimeout(()=>{l(!1,1e-7)},1e3)}H===1&&!AO(h,e.getBoundingClientRect())&&l(),A=!1}try{n=new IntersectionObserver(B,{...D,root:i.ownerDocument})}catch{n=new IntersectionObserver(B,D)}n.observe(e)}return l(!0),c}function HC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:c=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=Nv(e),y=i||c?[...h?Pi(h):[],...Pi(t)]:[];y.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),c&&C.addEventListener("resize",n)});const g=h&&f?Hj(h,n):null;let b=-1,v=null;l&&(v=new ResizeObserver(C=>{let[I]=C;I&&I.target===h&&v&&(v.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var D;(D=v)==null||D.observe(t)})),n()}),h&&!d&&v.observe(h),v.observe(t));let _,x=d?Ba(e):null;d&&R();function R(){const C=Ba(e);x&&!AO(x,C)&&n(),x=C,_=requestAnimationFrame(R)}return n(),()=>{var C;y.forEach(I=>{i&&I.removeEventListener("scroll",n),c&&I.removeEventListener("resize",n)}),g?.(),(C=v)==null||C.disconnect(),v=null,d&&cancelAnimationFrame(_)}}const Fj=xj,qj=Ej,Vj=Sj,Gj=Cj,Kj=_j,Zj=Rj,Yj=(e,t,n)=>{const r=new Map,i={platform:jj,...n},c={...i.platform,_c:r};return vj(e,t,{...i,platform:c})};var Qj=typeof document<"u",Xj=function(){},Uh=Qj?O.useLayoutEffect:Xj;function pp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!pp(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const c=i[r];if(!(c==="_owner"&&e.$$typeof)&&!pp(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}function IO(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function FC(e,t){const n=IO(e);return Math.round(t*n)/n}function x0(e){const t=O.useRef(e);return Uh(()=>{t.current=e}),t}function Wj(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:c,floating:l}={},transform:f=!0,whileElementsMounted:d,open:h}=e,[y,g]=O.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,v]=O.useState(r);pp(b,r)||v(r);const[_,x]=O.useState(null),[R,C]=O.useState(null),I=O.useCallback(J=>{J!==j.current&&(j.current=J,x(J))},[]),D=O.useCallback(J=>{J!==H.current&&(H.current=J,C(J))},[]),A=c||_,B=l||R,j=O.useRef(null),H=O.useRef(null),k=O.useRef(y),Q=d!=null,ne=x0(d),re=x0(i),G=x0(h),te=O.useCallback(()=>{if(!j.current||!H.current)return;const J={placement:t,strategy:n,middleware:b};re.current&&(J.platform=re.current),Yj(j.current,H.current,J).then(ve=>{const fe={...ve,isPositioned:G.current!==!1};ue.current&&!pp(k.current,fe)&&(k.current=fe,Bi.flushSync(()=>{g(fe)}))})},[b,t,n,re,G]);Uh(()=>{h===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,g(J=>({...J,isPositioned:!1})))},[h]);const ue=O.useRef(!1);Uh(()=>(ue.current=!0,()=>{ue.current=!1}),[]),Uh(()=>{if(A&&(j.current=A),B&&(H.current=B),A&&B){if(ne.current)return ne.current(A,B,te);te()}},[A,B,te,ne,Q]);const me=O.useMemo(()=>({reference:j,floating:H,setReference:I,setFloating:D}),[I,D]),F=O.useMemo(()=>({reference:A,floating:B}),[A,B]),oe=O.useMemo(()=>{const J={position:n,left:0,top:0};if(!F.floating)return J;const ve=FC(F.floating,y.x),fe=FC(F.floating,y.y);return f?{...J,transform:"translate("+ve+"px, "+fe+"px)",...IO(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ve,top:fe}},[n,f,F.floating,y.x,y.y]);return O.useMemo(()=>({...y,update:te,refs:me,elements:F,floatingStyles:oe}),[y,te,me,F,oe])}const Jj=(e,t)=>({...Fj(e),options:[e,t]}),e9=(e,t)=>({...qj(e),options:[e,t]}),t9=(e,t)=>({...Zj(e),options:[e,t]}),n9=(e,t)=>({...Vj(e),options:[e,t]}),s9=(e,t)=>({...Gj(e),options:[e,t]}),r9=(e,t)=>({...Kj(e),options:[e,t]}),o9={intentional:"onClick",sloppy:"onPointerDown"};function i9(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function OO(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),c=n.useState("referenceElement"),l=n.useState("domReferenceElement"),{onOpenChange:f,dataRef:d}=n.context,{enabled:h=!0,escapeKey:y=!0,outsidePress:g=!0,outsidePressEvent:b="sloppy",referencePress:v=!1,referencePressEvent:_="sloppy",ancestorScroll:x=!1,bubbles:R,externalTree:C}=t,I=Tf(C),D=qe(typeof g=="function"?g:()=>!1),A=typeof g=="function"?D:g,B=O.useRef(!1),{escapeKey:j,outsidePress:H}=i9(R),k=O.useRef(null),Q=ll(),ne=ll(),re=qe(()=>{ne.clear(),d.current.insideReactTree=!1}),G=O.useRef(!1),te=O.useRef(""),ue=qe(ye=>{te.current=ye.pointerType}),me=qe(()=>{const ye=te.current,xe=ye==="pen"||!ye?"mouse":ye,we=typeof b=="function"?b():b;return typeof we=="string"?we:we[xe]}),F=qe(ye=>{if(!r||!h||!y||ye.key!=="Escape"||G.current)return;const xe=d.current.floatingContext?.nodeId,we=I?ka(I.nodesRef.current,xe):[];if(!j&&we.length>0){let He=!0;if(we.forEach(Pe=>{Pe.context?.open&&!Pe.context.dataRef.current.__escapeKeyBubbles&&(He=!1)}),!He)return}const We=i8(ye)?ye.nativeEvent:ye,Me=Kt(kv,We);n.setOpen(!1,Me),!j&&!Me.isPropagationAllowed&&ye.stopPropagation()}),oe=qe(ye=>{const xe=me();return xe==="intentional"&&ye.type!=="click"||xe==="sloppy"&&ye.type==="click"}),J=qe(()=>{d.current.insideReactTree=!0,ne.start(0,re)}),ve=qe((ye,xe=!1)=>{if(oe(ye)){re();return}if(d.current.insideReactTree){re();return}if(me()==="intentional"&&xe||typeof A=="function"&&!A(ye))return;const we=bs(ye),We=`[${dl("inert")}]`,Me=Ht(n.select("floatingElement")).querySelectorAll(We),He=n.context.triggerElements;if(we&&(He.hasElement(we)||He.hasMatchingElement(wt=>gt(wt,we))))return;let Pe=St(we)?we:null;for(;Pe&&!wo(Pe);){const wt=Eo(Pe);if(wo(wt)||!St(wt))break;Pe=wt}if(Me.length&&St(we)&&!s8(we)&&!gt(we,n.select("floatingElement"))&&Array.from(Me).every(wt=>!gt(Pe,wt)))return;if(dn(we)&&!("touches"in ye)){const wt=wo(we),wn=$s(we),xt=/auto|scroll/,pr=wt||xt.test(wn.overflowX),dt=wt||xt.test(wn.overflowY),kt=pr&&we.clientWidth>0&&we.scrollWidth>we.clientWidth,mt=dt&&we.clientHeight>0&&we.scrollHeight>we.clientHeight,Es=wn.direction==="rtl",js=mt&&(Es?ye.offsetX<=we.offsetWidth-we.clientWidth:ye.offsetX>we.clientWidth),Vr=kt&&ye.offsetY>we.clientHeight;if(js||Vr)return}const tt=d.current.floatingContext?.nodeId,Dt=I&&ka(I.nodesRef.current,tt).some(wt=>vr(ye,wt.context?.elements.floating));if(vr(ye,n.select("floatingElement"))||vr(ye,n.select("domReferenceElement"))||Dt)return;const Ye=I?ka(I.nodesRef.current,tt):[];if(Ye.length>0){let wt=!0;if(Ye.forEach(wn=>{wn.context?.open&&!wn.context.dataRef.current.__outsidePressBubbles&&(wt=!1)}),!wt)return}n.setOpen(!1,Kt(fO,ye)),re()}),fe=qe(ye=>{me()!=="sloppy"||ye.pointerType==="touch"||!n.select("open")||!h||vr(ye,n.select("floatingElement"))||vr(ye,n.select("domReferenceElement"))||ve(ye)}),z=qe(ye=>{if(me()!=="sloppy"||!n.select("open")||!h||vr(ye,n.select("floatingElement"))||vr(ye,n.select("domReferenceElement")))return;const xe=ye.touches[0];xe&&(k.current={startTime:Date.now(),startX:xe.clientX,startY:xe.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},Q.start(1e3,()=>{k.current&&(k.current.dismissOnTouchEnd=!1,k.current.dismissOnMouseDown=!1)}))}),ee=qe(ye=>{const xe=bs(ye);function we(){z(ye),xe?.removeEventListener(ye.type,we)}xe?.addEventListener(ye.type,we)}),ge=qe(ye=>{const xe=B.current;if(B.current=!1,Q.clear(),ye.type==="mousedown"&&k.current&&!k.current.dismissOnMouseDown)return;const we=bs(ye);function We(){ye.type==="pointerdown"?fe(ye):ve(ye,xe),we?.removeEventListener(ye.type,We)}we?.addEventListener(ye.type,We)}),be=qe(ye=>{if(me()!=="sloppy"||!k.current||vr(ye,n.select("floatingElement"))||vr(ye,n.select("domReferenceElement")))return;const xe=ye.touches[0];if(!xe)return;const we=Math.abs(xe.clientX-k.current.startX),We=Math.abs(xe.clientY-k.current.startY),Me=Math.sqrt(we*we+We*We);Me>5&&(k.current.dismissOnTouchEnd=!0),Me>10&&(ve(ye),Q.clear(),k.current=null)}),Ee=qe(ye=>{const xe=bs(ye);function we(){be(ye),xe?.removeEventListener(ye.type,we)}xe?.addEventListener(ye.type,we)}),_e=qe(ye=>{me()!=="sloppy"||!k.current||vr(ye,n.select("floatingElement"))||vr(ye,n.select("domReferenceElement"))||(k.current.dismissOnTouchEnd&&ve(ye),Q.clear(),k.current=null)}),Ie=qe(ye=>{const xe=bs(ye);function we(){_e(ye),xe?.removeEventListener(ye.type,we)}xe?.addEventListener(ye.type,we)});O.useEffect(()=>{if(!r||!h)return;d.current.__escapeKeyBubbles=j,d.current.__outsidePressBubbles=H;const ye=new Br;function xe(Pe){n.setOpen(!1,Kt(Dv,Pe))}function we(){ye.clear(),G.current=!0}function We(){ye.start(Fp()?5:0,()=>{G.current=!1})}const Me=Ht(i);Me.addEventListener("pointerdown",ue,!0),y&&(Me.addEventListener("keydown",F),Me.addEventListener("compositionstart",we),Me.addEventListener("compositionend",We)),A&&(Me.addEventListener("click",ge,!0),Me.addEventListener("pointerdown",ge,!0),Me.addEventListener("touchstart",ee,!0),Me.addEventListener("touchmove",Ee,!0),Me.addEventListener("touchend",Ie,!0),Me.addEventListener("mousedown",ge,!0));let He=[];return x&&(St(l)&&(He=Pi(l)),St(i)&&(He=He.concat(Pi(i))),!St(c)&&c&&c.contextElement&&(He=He.concat(Pi(c.contextElement)))),He=He.filter(Pe=>Pe!==Me.defaultView?.visualViewport),He.forEach(Pe=>{Pe.addEventListener("scroll",xe,{passive:!0})}),()=>{Me.removeEventListener("pointerdown",ue,!0),y&&(Me.removeEventListener("keydown",F),Me.removeEventListener("compositionstart",we),Me.removeEventListener("compositionend",We)),A&&(Me.removeEventListener("click",ge,!0),Me.removeEventListener("pointerdown",ge,!0),Me.removeEventListener("touchstart",ee,!0),Me.removeEventListener("touchmove",Ee,!0),Me.removeEventListener("touchend",Ie,!0),Me.removeEventListener("mousedown",ge,!0)),He.forEach(Pe=>{Pe.removeEventListener("scroll",xe)}),ye.clear(),B.current=!1}},[d,i,c,l,y,A,r,f,x,h,j,H,F,ve,ge,fe,ee,Ee,Ie,ue,n]),O.useEffect(re,[A,re]);const Xe=O.useMemo(()=>({onKeyDown:F,...v&&{[o9[_]]:ye=>{n.setOpen(!1,Kt(fp,ye.nativeEvent))},..._!=="intentional"&&{onClick(ye){n.setOpen(!1,Kt(fp,ye.nativeEvent))}}}}),[F,n,v,_]),Se=qe(ye=>{const xe=bs(ye.nativeEvent);!gt(n.select("floatingElement"),xe)||ye.button!==0||(B.current=!0)}),it=qe(ye=>{!r||!h||ye.button!==0||(B.current=!0)}),zt=O.useMemo(()=>({onKeyDown:F,onPointerDown:Se,onMouseDown:Se,onMouseUp:Se,onClickCapture:J,onMouseDownCapture(ye){J(),it(ye)},onPointerDownCapture(ye){J(),it(ye)},onMouseUpCapture:J,onTouchEndCapture:J,onTouchMoveCapture:J}),[F,Se,J,it]);return O.useMemo(()=>h?{reference:Xe,floating:zt,trigger:Xe}:{},[h,Xe,zt])}var mp=Symbol("NOT_FOUND");function a9(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function c9(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function l9(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var qC=e=>Array.isArray(e)?e:[e];function u9(e){const t=Array.isArray(e[0])?e[0]:e;return l9(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function f9(e,t){const n=[],{length:r}=e;for(let i=0;it(f,h.key));if(d>-1){const h=n[d];return d>0&&(n.splice(d,1),n.unshift(h)),h.value}return mp}function i(f,d){r(f)===mp&&(n.unshift({key:f,value:d}),n.length>e&&n.pop())}function c(){return n}function l(){n=[]}return{get:r,put:i,getEntries:c,clear:l}}var p9=(e,t)=>e===t;function m9(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:i}=n;for(let c=0;cc(v.value,y));b&&(y=b.value,f!==0&&f--)}d.put(arguments,y)}return y}return h.clearCache=()=>{d.clear(),h.resetResultsCount()},h.resultsCount=()=>f,h.resetResultsCount=()=>{f=0},h}var y9=class{constructor(e){this.value=e}deref(){return this.value}},b9=typeof WeakRef<"u"?WeakRef:y9,v9=0,VC=1;function _h(){return{s:v9,v:void 0,o:null,p:null}}function MO(e,t={}){let n=_h();const{resultEqualityCheck:r}=t;let i,c=0;function l(){let f=n;const{length:d}=arguments;for(let g=0,b=d;g{n=_h(),l.resetResultsCount()},l.resultsCount=()=>c,l.resetResultsCount=()=>{c=0},l}function DO(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let c=0,l=0,f,d={},h=i.pop();typeof h=="object"&&(d=h,h=i.pop()),a9(h,`createSelector expects an output function after the inputs, but received: [${typeof h}]`);const y={...n,...d},{memoize:g,memoizeOptions:b=[],argsMemoize:v=MO,argsMemoizeOptions:_=[]}=y,x=qC(b),R=qC(_),C=u9(i),I=g(function(){return c++,h.apply(null,arguments)},...x),D=v(function(){l++;const B=f9(C,arguments);return f=I.apply(null,B),f},...R);return Object.assign(D,{resultFunc:h,memoizedResultFunc:I,dependencies:C,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>f,recomputations:()=>c,resetRecomputations:()=>{c=0},memoize:g,argsMemoize:v})};return Object.assign(r,{withTypes:()=>r}),r}var S9=DO(MO),_9=Object.assign((e,t=S9)=>{c9(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(c=>e[c]);return t(r,(...c)=>c.reduce((l,f,d)=>(l[n[d]]=f,l),{}))},{withTypes:()=>_9});DO({memoize:g9,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const ot=(e,t,n,r,i,c,...l)=>{if(l.length>0)throw new Error(Ao(1));let f;if(e)f=e;else throw new Error("Missing arguments");return f};var kO=u2();const zb=[];let Lb;function w9(){return Lb}function x9(e){zb.push(e)}function PO(e){const t=(n,r)=>{const i=lr(R9).current;let c;try{Lb=i;for(const l of zb)l.before(i);c=e(n,r);for(const l of zb)l.after(i);i.didInitialize=!0}finally{Lb=void 0}return c};return t.displayName=e.displayName||e.name,t}function E9(e){return O.forwardRef(PO(e))}function R9(){return{didInitialize:!1}}const C9=vv(19),T9=C9?I9:O9;function NO(e,t,n,r,i){return T9(e,t,n,r,i)}function A9(e,t,n,r,i){const c=O.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return kO.useSyncExternalStore(e.subscribe,c,c)}x9({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{const n=new Set;for(const i of e.syncHooks)n.add(i.store);const r=[];for(const i of n)r.push(i.subscribe(t));return()=>{for(const i of r)i()}}),kO.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function I9(e,t,n,r,i){const c=w9();if(!c)return A9(e,t,n,r,i);const l=c.syncIndex;c.syncIndex+=1;let f;return c.didInitialize?(f=c.syncHooks[l],(f.store!==e||f.selector!==t||!Object.is(f.a1,n)||!Object.is(f.a2,r)||!Object.is(f.a3,i))&&(f.store!==e&&(c.didChangeStore=!0),f.store=e,f.selector=t,f.a1=n,f.a2=r,f.a3=i,f.didChange=!0)):(f={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},c.syncHooks.push(f)),f.value}function O9(e,t,n,r,i){return f2.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,c=>t(c,n,r,i))}class M9{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,r,i){return NO(this,t,n,r,i)}}class zv extends M9{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}useSyncedValue(t,n){O.useDebugValue(t),pt(()=>{this.state[t]!==n&&this.set(t,n)},[t,n])}useSyncedValueWithCleanup(t,n){const r=this;pt(()=>(r.state[t]!==n&&r.set(t,n),()=>{r.set(t,void 0)}),[r,t,n])}useSyncedValues(t){const n=this,r=Object.values(t);pt(()=>{n.update(t)},[n,...r])}useControlledProp(t,n){O.useDebugValue(t);const r=n!==void 0;pt(()=>{r&&!Object.is(this.state[t],n)&&super.setState({...this.state,[t]:n})},[t,n,r])}select(t,n,r,i){const c=this.selectors[t];return c(this.state,n,r,i)}useState(t,n,r,i){return O.useDebugValue(t),NO(this,this.selectors[t],n,r,i)}useContextCallback(t,n){O.useDebugValue(t);const r=qe(n??w2);this.context[t]=r}useStateSetter(t){const n=O.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t=="function"?r=t:r=this.selectors[t];let i=r(this.state);return n(i,i,this),this.subscribe(c=>{const l=r(c);if(!Object.is(i,l)){const f=i;i=l,n(l,f,this)}})}}const D9={open:ot(e=>e.open),domReferenceElement:ot(e=>e.domReferenceElement),referenceElement:ot(e=>e.positionReference??e.referenceElement),floatingElement:ot(e=>e.floatingElement),floatingId:ot(e=>e.floatingId)};class Lv extends zv{constructor(t){const{nested:n,noEmit:r,onOpenChange:i,triggerElements:c,...l}=t;super({...l,positionReference:l.referenceElement,domReferenceElement:l.referenceElement},{onOpenChange:i,dataRef:{current:{}},events:tj(),nested:n,noEmit:r,triggerElements:c},D9)}setOpen=(t,n)=>{if((!t||!this.state.open||l8(n.event))&&(this.context.dataRef.current.openEvent=t?n.event:void 0),!this.context.noEmit){const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)}this.context.onOpenChange?.(t,n)}}function k9(e,t){const n=O.useRef(null),r=O.useRef(null);return O.useCallback(i=>{if(e!==void 0){if(n.current!==null){const c=n.current,l=r.current,f=t.context.triggerElements.getById(c);l&&f===l&&t.context.triggerElements.delete(c),n.current=null,r.current=null}i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i))}},[t,e])}function P9(e,t,n,r){const i=n.useState("isMountedByTrigger",e),c=k9(e,n),l=qe(f=>{if(c(f),!f||!n.select("open"))return;const d=n.select("activeTriggerId");if(d===e){n.update({activeTriggerElement:f,...r});return}d==null&&n.update({activeTriggerId:e,activeTriggerElement:f,...r})});return pt(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:l,isMountedByThisTrigger:i}}function zO(e){const t=e.useState("open");pt(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const n=e.context.triggerElements.entries().next();if(!n.done){const[r,i]=n.value;e.update({activeTriggerId:r,activeTriggerElement:i})}}},[t,e])}function LO(e,t,n){const{mounted:r,setMounted:i,transitionStatus:c}=j8(e);t.useSyncedValues({mounted:r,transitionStatus:c});const l=qe(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),f=t.useState("preventUnmountingOnClose");return Mv({enabled:!f,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:c}}class Zp{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elementsSet.delete(r),this.elementsSet.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elementsSet.delete(n),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(const n of this.elementsSet)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function N9(){return new Lv({open:!1,floatingElement:null,referenceElement:null,triggerElements:new Zp,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function BO(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:"idle",floatingRootContext:N9(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Ns,inactiveTriggerProps:Ns,popupProps:Ns}}const wh=ot(e=>e.triggerIdProp??e.activeTriggerId),$O={open:ot(e=>e.openProp??e.open),mounted:ot(e=>e.mounted),transitionStatus:ot(e=>e.transitionStatus),floatingRootContext:ot(e=>e.floatingRootContext),preventUnmountingOnClose:ot(e=>e.preventUnmountingOnClose),payload:ot(e=>e.payload),activeTriggerId:wh,activeTriggerElement:ot(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:ot((e,t)=>t!==void 0&&wh(e)===t),isOpenedByTrigger:ot((e,t)=>t!==void 0&&wh(e)===t&&e.open),isMountedByTrigger:ot((e,t)=>t!==void 0&&wh(e)===t&&e.mounted),triggerProps:ot((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:ot(e=>e.popupProps),popupElement:ot(e=>e.popupElement),positionerElement:ot(e=>e.positionerElement)};function z9(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Ef(),c=Gp()!=null,l=lr(()=>new Lv({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Zp,floatingId:i,nested:c,noEmit:!1})).current;return pt(()=>{const f={open:t,floatingId:i};r.reference!==void 0&&(f.referenceElement=r.reference,f.domReferenceElement=St(r.reference)?r.reference:null),r.floating!==void 0&&(f.floatingElement=r.floating),l.update(f)},[t,i,r.reference,r.floating,l]),l.context.onOpenChange=n,l.context.nested=c,l.context.noEmit=!1,l}function L9(e={}){const{nodeId:t,externalTree:n}=e,r=z9(e),i=e.rootContext||r,c={reference:i.useState("referenceElement"),floating:i.useState("floatingElement"),domReference:i.useState("domReferenceElement")},[l,f]=O.useState(null),d=O.useRef(null),h=Tf(n);pt(()=>{c.domReference&&(d.current=c.domReference)},[c.domReference]);const y=Wj({...e,elements:{...c,...l&&{reference:l}}}),g=O.useCallback(H=>{const k=St(H)?{getBoundingClientRect:()=>H.getBoundingClientRect(),getClientRects:()=>H.getClientRects(),contextElement:H}:H;f(k),y.refs.setReference(k)},[y.refs]),[b,v]=O.useState(null),[_,x]=O.useState(null);i.useSyncedValue("referenceElement",b),i.useSyncedValue("domReferenceElement",St(b)?b:null),i.useSyncedValue("floatingElement",_);const R=O.useCallback(H=>{(St(H)||H===null)&&(d.current=H,v(H)),(St(y.refs.reference.current)||y.refs.reference.current===null||H!==null&&!St(H))&&y.refs.setReference(H)},[y.refs,v]),C=O.useCallback(H=>{x(H),y.refs.setFloating(H)},[y.refs]),I=O.useMemo(()=>({...y.refs,setReference:R,setFloating:C,setPositionReference:g,domReference:d}),[y.refs,R,C,g]),D=O.useMemo(()=>({...y.elements,domReference:c.domReference}),[y.elements,c.domReference]),A=i.useState("open"),B=i.useState("floatingId"),j=O.useMemo(()=>({...y,dataRef:i.context.dataRef,open:A,onOpenChange:i.setOpen,events:i.context.events,floatingId:B,refs:I,elements:D,nodeId:t,rootStore:i}),[y,I,D,t,i,A,B]);return pt(()=>{i.context.dataRef.current.floatingContext=j;const H=h?.nodesRef.current.find(k=>k.id===t);H&&(H.context=j)}),O.useMemo(()=>({...y,context:j,refs:I,elements:D,rootStore:i}),[y,I,D,j,i])}function UO(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:i}=e,c=Ef(),l=Gp()!=null,f=t.useState("open"),d=t.useState("activeTriggerElement"),h=t.useState(r?"popupElement":"positionerElement"),y=t.context.triggerElements,g=lr(()=>new Lv({open:f,referenceElement:d,floatingElement:h,triggerElements:y,onOpenChange:i,floatingId:c,nested:l,noEmit:n})).current;return pt(()=>{const b={open:f,floatingId:c,referenceElement:d,floatingElement:h};St(d)&&(b.domReferenceElement=d),g.state.positionReference===g.state.referenceElement&&(b.positionReference=d),g.update(b)},[f,c,d,h,g]),g.context.onOpenChange=i,g.context.nested=l,g.context.noEmit=n,g}const E0=J5&&Z2;function B9(e,t={}){const n="rootStore"in e?e.rootStore:e,{events:r,dataRef:i}=n.context,{enabled:c=!0,delay:l}=t,f=O.useRef(!1),d=O.useRef(null),h=ll(),y=O.useRef(!0);O.useEffect(()=>{const b=n.select("domReferenceElement");if(!c)return;const v=mn(b);function _(){const C=n.select("domReferenceElement");!n.select("open")&&dn(C)&&C===go(Ht(C))&&(f.current=!0)}function x(){y.current=!0}function R(){y.current=!1}return v.addEventListener("blur",_),E0&&(v.addEventListener("keydown",x,!0),v.addEventListener("pointerdown",R,!0)),()=>{v.removeEventListener("blur",_),E0&&(v.removeEventListener("keydown",x,!0),v.removeEventListener("pointerdown",R,!0))}},[n,c]),O.useEffect(()=>{if(!c)return;function b(v){if(v.reason===fp||v.reason===kv){const _=n.select("domReferenceElement");St(_)&&(d.current=_,f.current=!0)}}return r.on("openchange",b),()=>{r.off("openchange",b)}},[r,c,n]);const g=O.useMemo(()=>({onMouseLeave(){f.current=!1,d.current=null},onFocus(b){const v=b.currentTarget;if(f.current){if(d.current===v)return;f.current=!1,d.current=null}const _=bs(b.nativeEvent);if(St(_)){if(E0&&!b.relatedTarget){if(!y.current&&!Cv(_))return}else if(!r8(_))return}const x=sp(b.relatedTarget,n.context.triggerElements),{nativeEvent:R,currentTarget:C}=b,I=typeof l=="function"?l():l;if(n.select("open")&&x||I===0||I===void 0){n.setOpen(!0,Kt(Bh,R,C));return}h.start(I,()=>{f.current||n.setOpen(!0,Kt(Bh,R,C))})},onBlur(b){f.current=!1,d.current=null;const v=b.relatedTarget,_=b.nativeEvent,x=St(v)&&v.hasAttribute(dl("focus-guard"))&&v.getAttribute("data-type")==="outside";h.start(0,()=>{const R=n.select("domReferenceElement"),C=go(R?R.ownerDocument:document);!v&&C===R||gt(i.current.floatingContext?.refs.floating.current,C)||gt(R,C)||x||sp(v??C,n.context.triggerElements)||n.setOpen(!1,Kt(Bh,_))})}}),[i,n,h,l]);return O.useMemo(()=>c?{reference:g,trigger:g}:{},[c,g])}const Bb=dl("safe-polygon"),$9=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${W2}`;function U9(e){return e?!!e.closest($9):!1}class Bv{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.unbindMouseMove=()=>{},this.restTimeoutPending=!1,this.openChangeTimeout=new Br,this.restTimeout=new Br,this.handleCloseOptions=void 0}static create(){return new Bv}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}function jO(e){const t=lr(Bv.create).current,n=e.context.dataRef.current;return n.hoverInteractionState||(n.hoverInteractionState=t),Rv(n.hoverInteractionState.disposeEffect),n.hoverInteractionState}const j9=new Set(["click","mousedown"]);function H9(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),c=n.useState("domReferenceElement"),{dataRef:l}=n.context,{enabled:f=!0,closeDelay:d=0}=t,h=jO(n),y=Tf(),g=Gp(),b=qe(()=>h.interactedInside?!0:l.current.openEvent?j9.has(l.current.openEvent.type):!1),v=qe(()=>{const D=l.current.openEvent?.type;return D?.includes("mouse")&&D!=="mousedown"}),_=qe(D=>sp(D,n.context.triggerElements)),x=O.useCallback((D,A=!0)=>{const B=F9(d,h.pointerType);B&&!h.handler?h.openChangeTimeout.start(B,()=>n.setOpen(!1,Kt(wr,D))):A&&(h.openChangeTimeout.clear(),n.setOpen(!1,Kt(wr,D)))},[d,n,h]),R=qe(()=>{h.unbindMouseMove(),h.handler=void 0}),C=qe(()=>{if(h.performedPointerEventsMutation){const D=Ht(i).body;D.style.pointerEvents="",D.removeAttribute(Bb),h.performedPointerEventsMutation=!1}}),I=qe(D=>{const A=bs(D);if(!U9(A)){h.interactedInside=!1;return}h.interactedInside=!0});pt(()=>{r||(h.pointerType=void 0,h.restTimeoutPending=!1,h.interactedInside=!1,R(),C())},[r,h,R,C]),O.useEffect(()=>()=>{R()},[R]),O.useEffect(()=>C,[C]),pt(()=>{if(f&&r&&h.handleCloseOptions?.blockPointerEvents&&v()&&St(c)&&i){h.performedPointerEventsMutation=!0;const D=Ht(i).body;D.setAttribute(Bb,"");const A=c,B=i,j=y?.nodesRef.current.find(H=>H.id===g)?.context?.elements.floating;return j&&(j.style.pointerEvents=""),D.style.pointerEvents="none",A.style.pointerEvents="auto",B.style.pointerEvents="auto",()=>{D.style.pointerEvents="",A.style.pointerEvents="",B.style.pointerEvents=""}}},[f,r,c,i,h,v,y,g]),O.useEffect(()=>{if(!f)return;function D(H){b()||!l.current.floatingContext||!n.select("open")||_(H.relatedTarget)||(C(),R(),b()||x(H))}function A(H){h.openChangeTimeout.clear(),C(),h.handler?.(H),R()}function B(H){b()||x(H,!1)}const j=i;return j&&(j.addEventListener("mouseleave",D),j.addEventListener("mouseenter",A),j.addEventListener("mouseleave",B),j.addEventListener("pointerdown",I,!0)),()=>{j&&(j.removeEventListener("mouseleave",D),j.removeEventListener("mouseenter",A),j.removeEventListener("mouseleave",B),j.removeEventListener("pointerdown",I,!0))}},[f,i,n,l,b,_,x,C,R,I,h])}function F9(e,t){return t&&!ff(t)?0:typeof e=="function"?e():e}function R0(e){return typeof e=="function"?e():e}const q9={current:null};function V9(e,t={}){const n="rootStore"in e?e.rootStore:e,{dataRef:r,events:i}=n.context,{enabled:c=!0,delay:l=0,handleClose:f=null,mouseOnly:d=!1,restMs:h=0,move:y=!0,triggerElementRef:g=q9,externalTree:b,isActiveTrigger:v=!0}=t,_=Tf(b),x=jO(n),R=Pr(f),C=Pr(l),I=Pr(h),D=Pr(c);v&&(x.handleCloseOptions=R.current?.__options);const A=qe(()=>x.interactedInside?!0:r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1),B=qe(ne=>sp(ne,n.context.triggerElements)),j=O.useCallback((ne,re=!0)=>{const G=$h(C.current,"close",x.pointerType);G&&!x.handler?x.openChangeTimeout.start(G,()=>n.setOpen(!1,Kt(wr,ne))):re&&(x.openChangeTimeout.clear(),n.setOpen(!1,Kt(wr,ne)))},[C,n,x]),H=qe(()=>{x.unbindMouseMove(),x.handler=void 0}),k=qe(()=>{if(x.performedPointerEventsMutation){const ne=Ht(n.select("domReferenceElement")).body;ne.style.pointerEvents="",ne.removeAttribute(Bb),x.performedPointerEventsMutation=!1}});O.useEffect(()=>{if(!c)return;function ne(re){re.open||(x.openChangeTimeout.clear(),x.restTimeout.clear(),x.blockMouseMove=!0,x.restTimeoutPending=!1)}return i.on("openchange",ne),()=>{i.off("openchange",ne)}},[c,i,x]);const Q=qe(ne=>{if(A()||!r.current.floatingContext||B(ne.relatedTarget))return;const re=g.current;R.current?.({...r.current.floatingContext,tree:_,x:ne.clientX,y:ne.clientY,onClose(){k(),H(),!A()&&re===n.select("domReferenceElement")&&j(ne)}})(ne)});return O.useEffect(()=>{if(!c)return;const ne=g.current??(v?n.select("domReferenceElement"):null);if(!St(ne))return;function re(ue){if(x.openChangeTimeout.clear(),x.blockMouseMove=!1,d&&!ff(x.pointerType)||R0(I.current)>0&&!$h(C.current,"open"))return;const me=$h(C.current,"open",x.pointerType),F=n.select("domReferenceElement"),oe=n.context.triggerElements,J=(oe.hasElement(ue.target)||oe.hasMatchingElement(ee=>gt(ee,ue.target)))&&(!F||!gt(F,ue.target)),ve=ue.currentTarget??null,fe=n.select("open"),z=!fe||J;J&&fe?n.setOpen(!0,Kt(wr,ue,ve)):me?x.openChangeTimeout.start(me,()=>{z&&n.setOpen(!0,Kt(wr,ue,ve))}):z&&n.setOpen(!0,Kt(wr,ue,ve))}function G(ue){if(A()){k();return}x.unbindMouseMove();const me=n.select("domReferenceElement"),F=Ht(me);if(x.restTimeout.clear(),x.restTimeoutPending=!1,B(ue.relatedTarget))return;if(R.current&&r.current.floatingContext){n.select("open")||x.openChangeTimeout.clear();const J=g.current;x.handler=R.current({...r.current.floatingContext,tree:_,x:ue.clientX,y:ue.clientY,onClose(){k(),H(),D.current&&!A()&&J===n.select("domReferenceElement")&&j(ue,!0)}});const ve=x.handler;ve(ue),F.addEventListener("mousemove",ve),x.unbindMouseMove=()=>{F.removeEventListener("mousemove",ve)};return}(x.pointerType!=="touch"||!gt(n.select("floatingElement"),ue.relatedTarget))&&j(ue)}function te(ue){Q(ue)}return n.select("open")&&ne.addEventListener("mouseleave",te),y&&ne.addEventListener("mousemove",re,{once:!0}),ne.addEventListener("mouseenter",re),ne.addEventListener("mouseleave",G),()=>{ne.removeEventListener("mouseleave",te),y&&ne.removeEventListener("mousemove",re),ne.removeEventListener("mouseenter",re),ne.removeEventListener("mouseleave",G)}},[H,k,r,C,j,n,c,R,Q,x,v,A,B,d,y,I,g,_,D]),O.useMemo(()=>{if(!c)return;function ne(re){x.pointerType=re.pointerType}return{onPointerDown:ne,onPointerEnter:ne,onMouseMove(re){const{nativeEvent:G}=re,te=re.currentTarget,ue=n.select("domReferenceElement"),me=n.context.triggerElements,F=n.select("open"),oe=(me.hasElement(re.target)||me.hasMatchingElement(ve=>gt(ve,re.target)))&&(!ue||!gt(ue,re.target));if(d&&!ff(x.pointerType)||F&&!oe||R0(I.current)===0||!oe&&x.restTimeoutPending&&re.movementX**2+re.movementY**2<2)return;x.restTimeout.clear();function J(){if(x.restTimeoutPending=!1,A())return;const ve=n.select("open");!x.blockMouseMove&&(!ve||oe)&&n.setOpen(!0,Kt(wr,G,te))}x.pointerType==="touch"?Bi.flushSync(()=>{J()}):oe&&F?J():(x.restTimeoutPending=!0,x.restTimeout.start(R0(I.current),J))}}},[c,x,A,d,n,I])}function HO(e=[]){const t=e.map(h=>h?.reference),n=e.map(h=>h?.floating),r=e.map(h=>h?.item),i=e.map(h=>h?.trigger),c=O.useCallback(h=>xh(h,e,"reference"),t),l=O.useCallback(h=>xh(h,e,"floating"),n),f=O.useCallback(h=>xh(h,e,"item"),r),d=O.useCallback(h=>xh(h,e,"trigger"),i);return O.useMemo(()=>({getReferenceProps:c,getFloatingProps:l,getItemProps:f,getTriggerProps:d}),[c,l,f,d])}function xh(e,t,n){const r=new Map,i=n==="item",c={};n==="floating"&&(c.tabIndex=-1,c[Ob]="");for(const l in e)i&&e&&(l===Q2||l===X2)||(c[l]=e[l]);for(let l=0;lr.get(i)?.map(f=>f(...l)).find(f=>f!==void 0))):e[i]=c)}}const G9=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function K9(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingId"),c=n.useState("domReferenceElement"),l=n.useState("floatingElement"),{role:f="dialog"}=t,d=Ef(),h=c?.id||d,y=O.useMemo(()=>Mb(l)?.id||i,[l,i]),g=G9.get(f)??f,v=Gp()!=null,_=O.useMemo(()=>g==="tooltip"||f==="label"?Ns:{"aria-haspopup":g==="alertdialog"?"dialog":g,"aria-expanded":"false",...g==="listbox"&&{role:"combobox"},...g==="menu"&&v&&{role:"menuitem"},...f==="select"&&{"aria-autocomplete":"none"},...f==="combobox"&&{"aria-autocomplete":"list"}},[g,v,f]),x=O.useMemo(()=>g==="tooltip"||f==="label"?{[`aria-${f==="label"?"labelledby":"describedby"}`]:r?y:void 0}:{..._,"aria-expanded":r?"true":"false","aria-controls":r?y:void 0,...g==="menu"&&{id:h}},[g,y,r,h,f,_]),R=O.useMemo(()=>{const I={id:y,...g&&{role:g}};return g==="tooltip"||f==="label"?I:{...I,...g==="menu"&&{"aria-labelledby":h}}},[g,y,h,f]),C=O.useCallback(({active:I,selected:D})=>{const A={role:"option",...I&&{id:`${y}-fui-option`}};switch(f){case"select":case"combobox":return{...A,"aria-selected":D}}return{}},[y,f]);return O.useMemo(()=>({reference:x,floating:R,item:C,trigger:_}),[x,R,_,C])}function KC(e,t){const[n,r]=e;let i=!1;const c=t.length;for(let l=0,f=c-1;l=r!=g>=r&&n<=(y-d)*(r-h)/(g-h)+d&&(i=!i)}return i}function Z9(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Y9(e={}){const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i=new Br;let c=!1,l=null,f=null,d=typeof performance<"u"?performance.now():0;function h(g,b){const v=performance.now(),_=v-d;if(l===null||f===null||_===0)return l=g,f=b,d=v,null;const x=g-l,R=b-f,I=Math.sqrt(x*x+R*R)/_;return l=g,f=b,d=v,I}const y=({x:g,y:b,placement:v,elements:_,onClose:x,nodeId:R,tree:C})=>function(D){function A(){i.clear(),x()}if(i.clear(),!_.domReference||!_.floating||v==null||g==null||b==null)return;const{clientX:B,clientY:j}=D,H=[B,j],k=bs(D),Q=D.type==="mouseleave",ne=gt(_.floating,k),re=gt(_.domReference,k),G=_.domReference.getBoundingClientRect(),te=_.floating.getBoundingClientRect(),ue=v.split("-")[0],me=g>te.right-te.width/2,F=b>te.bottom-te.height/2,oe=Z9(H,G),J=te.width>G.width,ve=te.height>G.height,fe=(J?G:te).left,z=(J?G:te).right,ee=(ve?G:te).top,ge=(ve?G:te).bottom;if(ne&&(c=!0,!Q))return;if(re&&(c=!1),re&&!Q){c=!0;return}if(Q&&St(D.relatedTarget)&>(_.floating,D.relatedTarget)||C&&ka(C.nodesRef.current,R).some(({context:_e})=>_e?.open))return;if(ue==="top"&&b>=G.bottom-1||ue==="bottom"&&b<=G.top+1||ue==="left"&&g>=G.right-1||ue==="right"&&g<=G.left+1)return A();let be=[];switch(ue){case"top":be=[[fe,G.top+1],[fe,te.bottom-1],[z,te.bottom-1],[z,G.top+1]];break;case"bottom":be=[[fe,te.top+1],[fe,G.bottom-1],[z,G.bottom-1],[z,te.top+1]];break;case"left":be=[[te.right-1,ge],[te.right-1,ee],[G.left+1,ee],[G.left+1,ge]];break;case"right":be=[[G.right-1,ge],[G.right-1,ee],[te.left+1,ee],[te.left+1,ge]];break}function Ee([_e,Ie]){switch(ue){case"top":{const Xe=[J?_e+t/2:me?_e+t*4:_e-t*4,Ie+t+1],Se=[J?_e-t/2:me?_e+t*4:_e-t*4,Ie+t+1],it=[[te.left,me||J?te.bottom-t:te.top],[te.right,me?J?te.bottom-t:te.top:te.bottom-t]];return[Xe,Se,...it]}case"bottom":{const Xe=[J?_e+t/2:me?_e+t*4:_e-t*4,Ie-t],Se=[J?_e-t/2:me?_e+t*4:_e-t*4,Ie-t],it=[[te.left,me||J?te.top+t:te.bottom],[te.right,me?J?te.top+t:te.bottom:te.top+t]];return[Xe,Se,...it]}case"left":{const Xe=[_e+t+1,ve?Ie+t/2:F?Ie+t*4:Ie-t*4],Se=[_e+t+1,ve?Ie-t/2:F?Ie+t*4:Ie-t*4];return[...[[F||ve?te.right-t:te.left,te.top],[F?ve?te.right-t:te.left:te.right-t,te.bottom]],Xe,Se]}case"right":{const Xe=[_e-t,ve?Ie+t/2:F?Ie+t*4:Ie-t*4],Se=[_e-t,ve?Ie-t/2:F?Ie+t*4:Ie-t*4],it=[[F||ve?te.left+t:te.right,te.top],[F?ve?te.left+t:te.right:te.left+t,te.bottom]];return[Xe,Se,...it]}default:return[]}}if(!KC([B,j],be)){if(c&&!oe)return A();if(!Q&&r){const _e=h(D.clientX,D.clientY);if(_e!==null&&_e<.1)return A()}KC([B,j],Ee([g,b]))?!c&&r&&i.start(40,A):A()}};return y.__options={blockPointerEvents:n},y}let Q9=(function(e){return e.nestedDialogs="--nested-dialogs",e})({}),X9=(function(e){return e[e.open=Ia.open]="open",e[e.closed=Ia.closed]="closed",e[e.startingStyle=Ia.startingStyle]="startingStyle",e[e.endingStyle=Ia.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});const FO=O.createContext(void 0);function W9(){const e=O.useContext(FO);if(e===void 0)throw new Error(Ao(26));return e}const qO="ArrowUp",VO="ArrowDown",GO="ArrowLeft",KO="ArrowRight",ZO="Home",YO="End",J9=new Set([GO,KO]),eH=new Set([qO,VO]),tH=new Set([...J9,...eH]);[...tH];const nH=new Set([qO,VO,GO,KO,ZO,YO]),sH={...Cf,...Ov,nestedDialogOpen(e){return e?{[X9.nestedDialogOpen]:""}:null}},rH=O.forwardRef(function(t,n){const{className:r,finalFocus:i,initialFocus:c,render:l,...f}=t,{store:d}=Va(),h=d.useState("descriptionElementId"),y=d.useState("disablePointerDismissal"),g=d.useState("floatingRootContext"),b=d.useState("popupProps"),v=d.useState("modal"),_=d.useState("mounted"),x=d.useState("nested"),R=d.useState("nestedOpenDialogCount"),C=d.useState("open"),I=d.useState("openMethod"),D=d.useState("titleElementId"),A=d.useState("transitionStatus"),B=d.useState("role");W9(),Mv({open:C,ref:d.context.popupRef,onComplete(){C&&d.context.onOpenChangeComplete?.(!0)}});function j(re){return re==="touch"?d.context.popupRef.current:!0}const H=c===void 0?j:c,k=R>0,ne=ur("div",t,{state:{open:C,nested:x,transitionStatus:A,nestedDialogOpen:k},props:[b,{"aria-labelledby":D??void 0,"aria-describedby":h??void 0,role:B,tabIndex:-1,hidden:!_,onKeyDown(re){nH.has(re.key)&&re.stopPropagation()},style:{[Q9.nestedDialogs]:R}},f],ref:[n,d.context.popupRef,d.useStateSetter("popupElement")],stateAttributesMapping:sH});return U.jsx(mj,{context:g,openInteractionType:I,disabled:!_,closeOnFocusOut:!y,initialFocus:H,returnFocus:i,modal:v!==!1,restoreFocus:"popup",children:ne})});function oH(e){return vv(19)?e:e?"true":void 0}const iH=O.forwardRef(function(t,n){const{cutout:r,...i}=t;let c;if(r){const l=r?.getBoundingClientRect();c=`polygon( +`+u.stack}}var nt=Object.prototype.hasOwnProperty,Bt=e.unstable_scheduleCallback,We=e.unstable_cancelCallback,Tt=e.unstable_shouldYield,Rn=e.unstable_requestPaint,It=e.unstable_now,Tr=e.unstable_getCurrentPriorityLevel,dt=e.unstable_ImmediatePriority,$t=e.unstable_UserBlockingPriority,mt=e.unstable_NormalPriority,Os=e.unstable_LowPriority,Xs=e.unstable_IdlePriority,ao=e.log,Rd=e.unstable_setDisableYieldValue,fi=null,Gn=null;function Ir(s){if(typeof ao=="function"&&Rd(s),Gn&&typeof Gn.setStrictMode=="function")try{Gn.setStrictMode(fi,s)}catch{}}var Zn=Math.clz32?Math.clz32:Ws,Ft=Math.log,Kn=Math.LN2;function Ws(s){return s>>>=0,s===0?32:31-(Ft(s)/Kn|0)|0}var Nn=256,ds=262144,co=4194304;function Js(s){var o=s&42;if(o!==0)return o;switch(s&-s){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function di(s,o,a){var u=s.pendingLanes;if(u===0)return 0;var h=0,m=s.suspendedLanes,x=s.pingedLanes;s=s.warmLanes;var A=u&134217727;return A!==0?(u=A&~m,u!==0?h=Js(u):(x&=A,x!==0?h=Js(x):a||(a=A&~s,a!==0&&(h=Js(a))))):(A=u&~m,A!==0?h=Js(A):x!==0?h=Js(x):a||(a=u&~s,a!==0&&(h=Js(a)))),h===0?0:o!==0&&o!==h&&(o&m)===0&&(m=h&-h,a=o&-o,m>=a||m===32&&(a&4194048)!==0)?o:h}function pi(s,o){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&o)===0}function Sg(s,o){switch(s){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32: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 o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Cd(){var s=co;return co<<=1,(co&62914560)===0&&(co=4194304),s}function au(s){for(var o=[],a=0;31>a;a++)o.push(s);return o}function Ra(s,o){s.pendingLanes|=o,o!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function cu(s,o,a,u,h,m){var x=s.pendingLanes;s.pendingLanes=a,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=a,s.entangledLanes&=a,s.errorRecoveryDisabledLanes&=a,s.shellSuspendCounter=0;var A=s.entanglements,z=s.expirationTimes,K=s.hiddenUpdates;for(a=x&~a;0"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var x4=/[\n"\\]/g;function tr(s){return s.replace(x4,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function xg(s,o,a,u,h,m,x,A){s.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?s.type=x:s.removeAttribute("type"),o!=null?x==="number"?(o===0&&s.value===""||s.value!=o)&&(s.value=""+er(o)):s.value!==""+er(o)&&(s.value=""+er(o)):x!=="submit"&&x!=="reset"||s.removeAttribute("value"),o!=null?Rg(s,x,er(o)):a!=null?Rg(s,x,er(a)):u!=null&&s.removeAttribute("value"),h==null&&m!=null&&(s.defaultChecked=!!m),h!=null&&(s.checked=h&&typeof h!="function"&&typeof h!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?s.name=""+er(A):s.removeAttribute("name")}function DE(s,o,a,u,h,m,x,A){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(s.type=m),o!=null||a!=null){if(!(m!=="submit"&&m!=="reset"||o!=null)){Eg(s);return}a=a!=null?""+er(a):"",o=o!=null?""+er(o):a,A||o===s.value||(s.value=o),s.defaultValue=o}u=u??h,u=typeof u!="function"&&typeof u!="symbol"&&!!u,s.checked=A?s.checked:!!u,s.defaultChecked=!!u,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(s.name=x),Eg(s)}function Rg(s,o,a){o==="number"&&kd(s.ownerDocument)===s||s.defaultValue===""+a||(s.defaultValue=""+a)}function Oc(s,o,a,u){if(s=s.options,o){o={};for(var h=0;h"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Og=!1;if(po)try{var hu={};Object.defineProperty(hu,"passive",{get:function(){Og=!0}}),window.addEventListener("test",hu,hu),window.removeEventListener("test",hu,hu)}catch{Og=!1}var mi=null,Mg=null,Nd=null;function $E(){if(Nd)return Nd;var s,o=Mg,a=o.length,u,h="value"in mi?mi.value:mi.textContent,m=h.length;for(s=0;s=yu),qE=" ",GE=!1;function ZE(s,o){switch(s){case"keyup":return W4.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function KE(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Pc=!1;function eB(s,o){switch(s){case"compositionend":return KE(o);case"keypress":return o.which!==32?null:(GE=!0,qE);case"textInput":return s=o.data,s===qE&&GE?null:s;default:return null}}function tB(s,o){if(Pc)return s==="compositionend"||!Lg&&ZE(s,o)?(s=$E(),Nd=Mg=mi=null,Pc=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:a,offset:o-s};s=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=nx(a)}}function rx(s,o){return s&&o?s===o?!0:s&&s.nodeType===3?!1:o&&o.nodeType===3?rx(s,o.parentNode):"contains"in s?s.contains(o):s.compareDocumentPosition?!!(s.compareDocumentPosition(o)&16):!1:!1}function ox(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var o=kd(s.document);o instanceof s.HTMLIFrameElement;){try{var a=typeof o.contentWindow.location.href=="string"}catch{a=!1}if(a)s=o.contentWindow;else break;o=kd(s.document)}return o}function $g(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o&&(o==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||o==="textarea"||s.contentEditable==="true")}var lB=po&&"documentMode"in document&&11>=document.documentMode,Nc=null,Ug=null,_u=null,jg=!1;function ix(s,o,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;jg||Nc==null||Nc!==kd(u)||(u=Nc,"selectionStart"in u&&$g(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),_u&&Su(_u,u)||(_u=u,u=Tp(Ug,"onSelect"),0>=x,h-=x,Br=1<<32-Zn(o)+h|a<Je?(ct=Be,Be=null):ct=Be.sibling;var vt=Q(q,Be,Z[Je],le);if(vt===null){Be===null&&(Be=ct);break}s&&Be&&vt.alternate===null&&o(q,Be),F=m(vt,F,Je),bt===null?$e=vt:bt.sibling=vt,bt=vt,Be=ct}if(Je===Z.length)return a(q,Be),ut&&mo(q,Je),$e;if(Be===null){for(;JeJe?(ct=Be,Be=null):ct=Be.sibling;var zi=Q(q,Be,vt.value,le);if(zi===null){Be===null&&(Be=ct);break}s&&Be&&zi.alternate===null&&o(q,Be),F=m(zi,F,Je),bt===null?$e=zi:bt.sibling=zi,bt=zi,Be=ct}if(vt.done)return a(q,Be),ut&&mo(q,Je),$e;if(Be===null){for(;!vt.done;Je++,vt=Z.next())vt=de(q,vt.value,le),vt!==null&&(F=m(vt,F,Je),bt===null?$e=vt:bt.sibling=vt,bt=vt);return ut&&mo(q,Je),$e}for(Be=u(Be);!vt.done;Je++,vt=Z.next())vt=se(Be,q,Je,vt.value,le),vt!==null&&(s&&vt.alternate!==null&&Be.delete(vt.key===null?Je:vt.key),F=m(vt,F,Je),bt===null?$e=vt:bt.sibling=vt,bt=vt);return s&&Be.forEach(function(I$){return o(q,I$)}),ut&&mo(q,Je),$e}function Lt(q,F,Z,le){if(typeof Z=="object"&&Z!==null&&Z.type===E&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case S:e:{for(var $e=Z.key;F!==null;){if(F.key===$e){if($e=Z.type,$e===E){if(F.tag===7){a(q,F.sibling),le=h(F,Z.props.children),le.return=q,q=le;break e}}else if(F.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===P&&La($e)===F.type){a(q,F.sibling),le=h(F,Z.props),Au(le,Z),le.return=q,q=le;break e}a(q,F);break}else o(q,F);F=F.sibling}Z.type===E?(le=Ma(Z.props.children,q.mode,le,Z.key),le.return=q,q=le):(le=qd(Z.type,Z.key,Z.props,null,q.mode,le),Au(le,Z),le.return=q,q=le)}return x(q);case w:e:{for($e=Z.key;F!==null;){if(F.key===$e)if(F.tag===4&&F.stateNode.containerInfo===Z.containerInfo&&F.stateNode.implementation===Z.implementation){a(q,F.sibling),le=h(F,Z.children||[]),le.return=q,q=le;break e}else{a(q,F);break}else o(q,F);F=F.sibling}le=Kg(Z,q.mode,le),le.return=q,q=le}return x(q);case P:return Z=La(Z),Lt(q,F,Z,le)}if(ye(Z))return Pe(q,F,Z,le);if(G(Z)){if($e=G(Z),typeof $e!="function")throw Error(r(150));return Z=$e.call(Z),He(q,F,Z,le)}if(typeof Z.then=="function")return Lt(q,F,Wd(Z),le);if(Z.$$typeof===k)return Lt(q,F,Kd(q,Z),le);Jd(q,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,F!==null&&F.tag===6?(a(q,F.sibling),le=h(F,Z),le.return=q,q=le):(a(q,F),le=Zg(Z,q.mode,le),le.return=q,q=le),x(q)):a(q,F)}return function(q,F,Z,le){try{Cu=0;var $e=Lt(q,F,Z,le);return Gc=null,$e}catch(Be){if(Be===qc||Be===Yd)throw Be;var bt=Ds(29,Be,null,q.mode);return bt.lanes=le,bt.return=q,bt}}}var Ba=Ix(!0),Ox=Ix(!1),Si=!1;function iy(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ay(s,o){s=s.updateQueue,o.updateQueue===s&&(o.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function _i(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function wi(s,o,a){var u=s.updateQueue;if(u===null)return null;if(u=u.shared,(wt&2)!==0){var h=u.pending;return h===null?o.next=o:(o.next=h.next,h.next=o),u.pending=o,o=Fd(s),px(s,null,a),o}return Vd(s,u,o,a),Fd(s)}function Tu(s,o,a){if(o=o.updateQueue,o!==null&&(o=o.shared,(a&4194048)!==0)){var u=o.lanes;u&=s.pendingLanes,a|=u,o.lanes=a,Ad(s,a)}}function cy(s,o){var a=s.updateQueue,u=s.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var h=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var x={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};m===null?h=m=x:m=m.next=x,a=a.next}while(a!==null);m===null?h=m=o:m=m.next=o}else h=m=o;a={baseState:u.baseState,firstBaseUpdate:h,lastBaseUpdate:m,shared:u.shared,callbacks:u.callbacks},s.updateQueue=a;return}s=a.lastBaseUpdate,s===null?a.firstBaseUpdate=o:s.next=o,a.lastBaseUpdate=o}var ly=!1;function Iu(){if(ly){var s=Fc;if(s!==null)throw s}}function Ou(s,o,a,u){ly=!1;var h=s.updateQueue;Si=!1;var m=h.firstBaseUpdate,x=h.lastBaseUpdate,A=h.shared.pending;if(A!==null){h.shared.pending=null;var z=A,K=z.next;z.next=null,x===null?m=K:x.next=K,x=z;var ie=s.alternate;ie!==null&&(ie=ie.updateQueue,A=ie.lastBaseUpdate,A!==x&&(A===null?ie.firstBaseUpdate=K:A.next=K,ie.lastBaseUpdate=z))}if(m!==null){var de=h.baseState;x=0,ie=K=z=null,A=m;do{var Q=A.lane&-536870913,se=Q!==A.lane;if(se?(at&Q)===Q:(u&Q)===Q){Q!==0&&Q===Vc&&(ly=!0),ie!==null&&(ie=ie.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var Pe=s,He=A;Q=o;var Lt=a;switch(He.tag){case 1:if(Pe=He.payload,typeof Pe=="function"){de=Pe.call(Lt,de,Q);break e}de=Pe;break e;case 3:Pe.flags=Pe.flags&-65537|128;case 0:if(Pe=He.payload,Q=typeof Pe=="function"?Pe.call(Lt,de,Q):Pe,Q==null)break e;de=g({},de,Q);break e;case 2:Si=!0}}Q=A.callback,Q!==null&&(s.flags|=64,se&&(s.flags|=8192),se=h.callbacks,se===null?h.callbacks=[Q]:se.push(Q))}else se={lane:Q,tag:A.tag,payload:A.payload,callback:A.callback,next:null},ie===null?(K=ie=se,z=de):ie=ie.next=se,x|=Q;if(A=A.next,A===null){if(A=h.shared.pending,A===null)break;se=A,A=se.next,se.next=null,h.lastBaseUpdate=se,h.shared.pending=null}}while(!0);ie===null&&(z=de),h.baseState=z,h.firstBaseUpdate=K,h.lastBaseUpdate=ie,m===null&&(h.shared.lanes=0),Ai|=x,s.lanes=x,s.memoizedState=de}}function Mx(s,o){if(typeof s!="function")throw Error(r(191,s));s.call(o)}function Dx(s,o){var a=s.callbacks;if(a!==null)for(s.callbacks=null,s=0;sm?m:8;var x=V.T,A={};V.T=A,Ty(s,!1,o,a);try{var z=h(),K=V.S;if(K!==null&&K(A,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var ie=bB(z,u);ku(s,o,ie,zs(s))}else ku(s,o,u,zs(s))}catch(de){ku(s,o,{then:function(){},status:"rejected",reason:de},zs())}finally{oe.p=m,x!==null&&A.types!==null&&(x.types=A.types),V.T=x}}function xB(){}function Cy(s,o,a,u){if(s.tag!==5)throw Error(r(476));var h=u1(s).queue;l1(s,h,o,J,a===null?xB:function(){return f1(s),a(u)})}function u1(s){var o=s.memoizedState;if(o!==null)return o;o={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:J},next:null};var a={};return o.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:a},next:null},s.memoizedState=o,s=s.alternate,s!==null&&(s.memoizedState=o),o}function f1(s){var o=u1(s);o.next===null&&(o=s.alternate.memoizedState),ku(s,o.next.queue,{},zs())}function Ay(){return Bn(Yu)}function d1(){return on().memoizedState}function p1(){return on().memoizedState}function RB(s){for(var o=s.return;o!==null;){switch(o.tag){case 24:case 3:var a=zs();s=_i(a);var u=wi(o,s,a);u!==null&&(vs(u,o,a),Tu(u,o,a)),o={cache:ny()},s.payload=o;return}o=o.return}}function CB(s,o,a){var u=zs();a={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},lp(s)?m1(o,a):(a=qg(s,o,a,u),a!==null&&(vs(a,s,u),g1(a,o,u)))}function h1(s,o,a){var u=zs();ku(s,o,a,u)}function ku(s,o,a,u){var h={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(lp(s))m1(o,h);else{var m=s.alternate;if(s.lanes===0&&(m===null||m.lanes===0)&&(m=o.lastRenderedReducer,m!==null))try{var x=o.lastRenderedState,A=m(x,a);if(h.hasEagerState=!0,h.eagerState=A,Ms(A,x))return Vd(s,o,h,0),Ut===null&&Hd(),!1}catch{}if(a=qg(s,o,h,u),a!==null)return vs(a,s,u),g1(a,o,u),!0}return!1}function Ty(s,o,a,u){if(u={lane:2,revertLane:i0(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},lp(s)){if(o)throw Error(r(479))}else o=qg(s,a,u,2),o!==null&&vs(o,s,2)}function lp(s){var o=s.alternate;return s===Qe||o!==null&&o===Qe}function m1(s,o){Kc=np=!0;var a=s.pending;a===null?o.next=o:(o.next=a.next,a.next=o),s.pending=o}function g1(s,o,a){if((a&4194048)!==0){var u=o.lanes;u&=s.pendingLanes,a|=u,o.lanes=a,Ad(s,a)}}var Pu={readContext:Bn,use:op,useCallback:nn,useContext:nn,useEffect:nn,useImperativeHandle:nn,useLayoutEffect:nn,useInsertionEffect:nn,useMemo:nn,useReducer:nn,useRef:nn,useState:nn,useDebugValue:nn,useDeferredValue:nn,useTransition:nn,useSyncExternalStore:nn,useId:nn,useHostTransitionStatus:nn,useFormState:nn,useActionState:nn,useOptimistic:nn,useMemoCache:nn,useCacheRefresh:nn};Pu.useEffectEvent=nn;var y1={readContext:Bn,use:op,useCallback:function(s,o){return rs().memoizedState=[s,o===void 0?null:o],s},useContext:Bn,useEffect:e1,useImperativeHandle:function(s,o,a){a=a!=null?a.concat([s]):null,ap(4194308,4,r1.bind(null,o,s),a)},useLayoutEffect:function(s,o){return ap(4194308,4,s,o)},useInsertionEffect:function(s,o){ap(4,2,s,o)},useMemo:function(s,o){var a=rs();o=o===void 0?null:o;var u=s();if($a){Ir(!0);try{s()}finally{Ir(!1)}}return a.memoizedState=[u,o],u},useReducer:function(s,o,a){var u=rs();if(a!==void 0){var h=a(o);if($a){Ir(!0);try{a(o)}finally{Ir(!1)}}}else h=o;return u.memoizedState=u.baseState=h,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:h},u.queue=s,s=s.dispatch=CB.bind(null,Qe,s),[u.memoizedState,s]},useRef:function(s){var o=rs();return s={current:s},o.memoizedState=s},useState:function(s){s=_y(s);var o=s.queue,a=h1.bind(null,Qe,o);return o.dispatch=a,[s.memoizedState,a]},useDebugValue:xy,useDeferredValue:function(s,o){var a=rs();return Ry(a,s,o)},useTransition:function(){var s=_y(!1);return s=l1.bind(null,Qe,s.queue,!0,!1),rs().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,o,a){var u=Qe,h=rs();if(ut){if(a===void 0)throw Error(r(407));a=a()}else{if(a=o(),Ut===null)throw Error(r(349));(at&127)!==0||Bx(u,o,a)}h.memoizedState=a;var m={value:a,getSnapshot:o};return h.queue=m,e1(Ux.bind(null,u,m,s),[s]),u.flags|=2048,Yc(9,{destroy:void 0},$x.bind(null,u,m,a,o),null),a},useId:function(){var s=rs(),o=Ut.identifierPrefix;if(ut){var a=$r,u=Br;a=(u&~(1<<32-Zn(u)-1)).toString(32)+a,o="_"+o+"R_"+a,a=sp++,0<\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof u.is=="string"?x.createElement("select",{is:u.is}):x.createElement("select"),u.multiple?m.multiple=!0:u.size&&(m.size=u.size);break;default:m=typeof u.is=="string"?x.createElement(h,{is:u.is}):x.createElement(h)}}m[Ln]=o,m[ps]=u;e:for(x=o.child;x!==null;){if(x.tag===5||x.tag===6)m.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===o)break e;for(;x.sibling===null;){if(x.return===null||x.return===o)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}o.stateNode=m;e:switch(Un(m,h,u),h){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&_o(o)}}return Gt(o),Hy(o,o.type,s===null?null:s.memoizedProps,o.pendingProps,a),null;case 6:if(s&&o.stateNode!=null)s.memoizedProps!==u&&_o(o);else{if(typeof u!="string"&&o.stateNode===null)throw Error(r(166));if(s=_e.current,jc(o)){if(s=o.stateNode,a=o.memoizedProps,u=null,h=zn,h!==null)switch(h.tag){case 27:case 5:u=h.memoizedProps}s[Ln]=o,s=!!(s.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||LR(s.nodeValue,a)),s||bi(o,!0)}else s=Ip(s).createTextNode(u),s[Ln]=o,o.stateNode=s}return Gt(o),null;case 31:if(a=o.memoizedState,s===null||s.memoizedState!==null){if(u=jc(o),a!==null){if(s===null){if(!u)throw Error(r(318));if(s=o.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(557));s[Ln]=o}else Da(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Gt(o),s=!1}else a=Wg(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=a),s=!0;if(!s)return o.flags&256?(Ps(o),o):(Ps(o),null);if((o.flags&128)!==0)throw Error(r(558))}return Gt(o),null;case 13:if(u=o.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(h=jc(o),u!==null&&u.dehydrated!==null){if(s===null){if(!h)throw Error(r(318));if(h=o.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(r(317));h[Ln]=o}else Da(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Gt(o),h=!1}else h=Wg(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=h),h=!0;if(!h)return o.flags&256?(Ps(o),o):(Ps(o),null)}return Ps(o),(o.flags&128)!==0?(o.lanes=a,o):(a=u!==null,s=s!==null&&s.memoizedState!==null,a&&(u=o.child,h=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(h=u.alternate.memoizedState.cachePool.pool),m=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==h&&(u.flags|=2048)),a!==s&&a&&(o.child.flags|=8192),hp(o,o.updateQueue),Gt(o),null);case 4:return Se(),s===null&&u0(o.stateNode.containerInfo),Gt(o),null;case 10:return yo(o.type),Gt(o),null;case 19:if(ee(rn),u=o.memoizedState,u===null)return Gt(o),null;if(h=(o.flags&128)!==0,m=u.rendering,m===null)if(h)Lu(u,!1);else{if(sn!==0||s!==null&&(s.flags&128)!==0)for(s=o.child;s!==null;){if(m=tp(s),m!==null){for(o.flags|=128,Lu(u,!1),s=m.updateQueue,o.updateQueue=s,hp(o,s),o.subtreeFlags=0,s=a,a=o.child;a!==null;)hx(a,s),a=a.sibling;return ge(rn,rn.current&1|2),ut&&mo(o,u.treeForkCount),o.child}s=s.sibling}u.tail!==null&&It()>vp&&(o.flags|=128,h=!0,Lu(u,!1),o.lanes=4194304)}else{if(!h)if(s=tp(m),s!==null){if(o.flags|=128,h=!0,s=s.updateQueue,o.updateQueue=s,hp(o,s),Lu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!m.alternate&&!ut)return Gt(o),null}else 2*It()-u.renderingStartTime>vp&&a!==536870912&&(o.flags|=128,h=!0,Lu(u,!1),o.lanes=4194304);u.isBackwards?(m.sibling=o.child,o.child=m):(s=u.last,s!==null?s.sibling=m:o.child=m,u.last=m)}return u.tail!==null?(s=u.tail,u.rendering=s,u.tail=s.sibling,u.renderingStartTime=It(),s.sibling=null,a=rn.current,ge(rn,h?a&1|2:a&1),ut&&mo(o,u.treeForkCount),s):(Gt(o),null);case 22:case 23:return Ps(o),fy(),u=o.memoizedState!==null,s!==null?s.memoizedState!==null!==u&&(o.flags|=8192):u&&(o.flags|=8192),u?(a&536870912)!==0&&(o.flags&128)===0&&(Gt(o),o.subtreeFlags&6&&(o.flags|=8192)):Gt(o),a=o.updateQueue,a!==null&&hp(o,a.retryQueue),a=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(a=s.memoizedState.cachePool.pool),u=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),u!==a&&(o.flags|=2048),s!==null&&ee(Na),null;case 24:return a=null,s!==null&&(a=s.memoizedState.cache),o.memoizedState.cache!==a&&(o.flags|=2048),yo(dn),Gt(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function MB(s,o){switch(Yg(o),o.tag){case 1:return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 3:return yo(dn),Se(),s=o.flags,(s&65536)!==0&&(s&128)===0?(o.flags=s&-65537|128,o):null;case 26:case 27:case 5:return _t(o),null;case 31:if(o.memoizedState!==null){if(Ps(o),o.alternate===null)throw Error(r(340));Da()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 13:if(Ps(o),s=o.memoizedState,s!==null&&s.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Da()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 19:return ee(rn),null;case 4:return Se(),null;case 10:return yo(o.type),null;case 22:case 23:return Ps(o),fy(),s!==null&&ee(Na),s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 24:return yo(dn),null;case 25:return null;default:return null}}function j1(s,o){switch(Yg(o),o.tag){case 3:yo(dn),Se();break;case 26:case 27:case 5:_t(o);break;case 4:Se();break;case 31:o.memoizedState!==null&&Ps(o);break;case 13:Ps(o);break;case 19:ee(rn);break;case 10:yo(o.type);break;case 22:case 23:Ps(o),fy(),s!==null&&ee(Na);break;case 24:yo(dn)}}function zu(s,o){try{var a=o.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var h=u.next;a=h;do{if((a.tag&s)===s){u=void 0;var m=a.create,x=a.inst;u=m(),x.destroy=u}a=a.next}while(a!==h)}}catch(A){Mt(o,o.return,A)}}function Ri(s,o,a){try{var u=o.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var m=h.next;u=m;do{if((u.tag&s)===s){var x=u.inst,A=x.destroy;if(A!==void 0){x.destroy=void 0,h=o;var z=a,K=A;try{K()}catch(ie){Mt(h,z,ie)}}}u=u.next}while(u!==m)}}catch(ie){Mt(o,o.return,ie)}}function H1(s){var o=s.updateQueue;if(o!==null){var a=s.stateNode;try{Dx(o,a)}catch(u){Mt(s,s.return,u)}}}function V1(s,o,a){a.props=Ua(s.type,s.memoizedProps),a.state=s.memoizedState;try{a.componentWillUnmount()}catch(u){Mt(s,o,u)}}function Bu(s,o){try{var a=s.ref;if(a!==null){switch(s.tag){case 26:case 27:case 5:var u=s.stateNode;break;case 30:u=s.stateNode;break;default:u=s.stateNode}typeof a=="function"?s.refCleanup=a(u):a.current=u}}catch(h){Mt(s,o,h)}}function Ur(s,o){var a=s.ref,u=s.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(h){Mt(s,o,h)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(h){Mt(s,o,h)}else a.current=null}function F1(s){var o=s.type,a=s.memoizedProps,u=s.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":a.autoFocus&&u.focus();break e;case"img":a.src?u.src=a.src:a.srcSet&&(u.srcset=a.srcSet)}}catch(h){Mt(s,s.return,h)}}function Vy(s,o,a){try{var u=s.stateNode;JB(u,s.type,a,o),u[ps]=o}catch(h){Mt(s,s.return,h)}}function q1(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&Di(s.type)||s.tag===4}function Fy(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||q1(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&Di(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function qy(s,o,a){var u=s.tag;if(u===5||u===6)s=s.stateNode,o?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(s,o):(o=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,o.appendChild(s),a=a._reactRootContainer,a!=null||o.onclick!==null||(o.onclick=fo));else if(u!==4&&(u===27&&Di(s.type)&&(a=s.stateNode,o=null),s=s.child,s!==null))for(qy(s,o,a),s=s.sibling;s!==null;)qy(s,o,a),s=s.sibling}function mp(s,o,a){var u=s.tag;if(u===5||u===6)s=s.stateNode,o?a.insertBefore(s,o):a.appendChild(s);else if(u!==4&&(u===27&&Di(s.type)&&(a=s.stateNode),s=s.child,s!==null))for(mp(s,o,a),s=s.sibling;s!==null;)mp(s,o,a),s=s.sibling}function G1(s){var o=s.stateNode,a=s.memoizedProps;try{for(var u=s.type,h=o.attributes;h.length;)o.removeAttributeNode(h[0]);Un(o,u,a),o[Ln]=s,o[ps]=a}catch(m){Mt(s,s.return,m)}}var wo=!1,mn=!1,Gy=!1,Z1=typeof WeakSet=="function"?WeakSet:Set,An=null;function DB(s,o){if(s=s.containerInfo,p0=Lp,s=ox(s),$g(s)){if("selectionStart"in s)var a={start:s.selectionStart,end:s.selectionEnd};else e:{a=(a=s.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var h=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var x=0,A=-1,z=-1,K=0,ie=0,de=s,Q=null;t:for(;;){for(var se;de!==a||h!==0&&de.nodeType!==3||(A=x+h),de!==m||u!==0&&de.nodeType!==3||(z=x+u),de.nodeType===3&&(x+=de.nodeValue.length),(se=de.firstChild)!==null;)Q=de,de=se;for(;;){if(de===s)break t;if(Q===a&&++K===h&&(A=x),Q===m&&++ie===u&&(z=x),(se=de.nextSibling)!==null)break;de=Q,Q=de.parentNode}de=se}a=A===-1||z===-1?null:{start:A,end:z}}else a=null}a=a||{start:0,end:0}}else a=null;for(h0={focusedElem:s,selectionRange:a},Lp=!1,An=o;An!==null;)if(o=An,s=o.child,(o.subtreeFlags&1028)!==0&&s!==null)s.return=o,An=s;else for(;An!==null;){switch(o=An,m=o.alternate,s=o.flags,o.tag){case 0:if((s&4)!==0&&(s=o.updateQueue,s=s!==null?s.events:null,s!==null))for(a=0;a title"))),Un(m,u,a),m[Ln]=s,Cn(m),u=m;break e;case"link":var x=JR("link","href",h).get(u+(a.href||""));if(x){for(var A=0;ALt&&(x=Lt,Lt=He,He=x);var q=sx(A,He),F=sx(A,Lt);if(q&&F&&(se.rangeCount!==1||se.anchorNode!==q.node||se.anchorOffset!==q.offset||se.focusNode!==F.node||se.focusOffset!==F.offset)){var Z=de.createRange();Z.setStart(q.node,q.offset),se.removeAllRanges(),He>Lt?(se.addRange(Z),se.extend(F.node,F.offset)):(Z.setEnd(F.node,F.offset),se.addRange(Z))}}}}for(de=[],se=A;se=se.parentNode;)se.nodeType===1&&de.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;Aa?32:a,V.T=null,a=Jy,Jy=null;var m=Ii,x=Ao;if(wn=0,tl=Ii=null,Ao=0,(wt&6)!==0)throw Error(r(331));var A=wt;if(wt|=4,rR(m.current),tR(m,m.current,x,a),wt=A,Fu(0,!1),Gn&&typeof Gn.onPostCommitFiberRoot=="function")try{Gn.onPostCommitFiberRoot(fi,m)}catch{}return!0}finally{oe.p=h,V.T=u,wR(s,o)}}function xR(s,o,a){o=sr(a,o),o=Dy(s.stateNode,o,2),s=wi(s,o,2),s!==null&&(Ra(s,2),jr(s))}function Mt(s,o,a){if(s.tag===3)xR(s,s,a);else for(;o!==null;){if(o.tag===3){xR(o,s,a);break}else if(o.tag===1){var u=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Ti===null||!Ti.has(u))){s=sr(a,s),a=R1(2),u=wi(o,a,2),u!==null&&(C1(a,u,o,s),Ra(u,2),jr(u));break}}o=o.return}}function s0(s,o,a){var u=s.pingCache;if(u===null){u=s.pingCache=new NB;var h=new Set;u.set(o,h)}else h=u.get(o),h===void 0&&(h=new Set,u.set(o,h));h.has(a)||(Qy=!0,h.add(a),s=UB.bind(null,s,o,a),o.then(s,s))}function UB(s,o,a){var u=s.pingCache;u!==null&&u.delete(o),s.pingedLanes|=s.suspendedLanes&a,s.warmLanes&=~a,Ut===s&&(at&a)===a&&(sn===4||sn===3&&(at&62914560)===at&&300>It()-bp?(wt&2)===0&&nl(s,0):Yy|=a,el===at&&(el=0)),jr(s)}function RR(s,o){o===0&&(o=Cd()),s=Oa(s,o),s!==null&&(Ra(s,o),jr(s))}function jB(s){var o=s.memoizedState,a=0;o!==null&&(a=o.retryLane),RR(s,a)}function HB(s,o){var a=0;switch(s.tag){case 31:case 13:var u=s.stateNode,h=s.memoizedState;h!==null&&(a=h.retryLane);break;case 19:u=s.stateNode;break;case 22:u=s.stateNode._retryCache;break;default:throw Error(r(314))}u!==null&&u.delete(o),RR(s,a)}function VB(s,o){return Bt(s,o)}var Rp=null,rl=null,r0=!1,Cp=!1,o0=!1,Mi=0;function jr(s){s!==rl&&s.next===null&&(rl===null?Rp=rl=s:rl=rl.next=s),Cp=!0,r0||(r0=!0,qB())}function Fu(s,o){if(!o0&&Cp){o0=!0;do for(var a=!1,u=Rp;u!==null;){if(s!==0){var h=u.pendingLanes;if(h===0)var m=0;else{var x=u.suspendedLanes,A=u.pingedLanes;m=(1<<31-Zn(42|s)+1)-1,m&=h&~(x&~A),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(a=!0,IR(u,m))}else m=at,m=di(u,u===Ut?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||pi(u,m)||(a=!0,IR(u,m));u=u.next}while(a);o0=!1}}function FB(){CR()}function CR(){Cp=r0=!1;var s=0;Mi!==0&&t$()&&(s=Mi);for(var o=It(),a=null,u=Rp;u!==null;){var h=u.next,m=AR(u,o);m===0?(u.next=null,a===null?Rp=h:a.next=h,h===null&&(rl=a)):(a=u,(s!==0||(m&3)!==0)&&(Cp=!0)),u=h}wn!==0&&wn!==5||Fu(s),Mi!==0&&(Mi=0)}function AR(s,o){for(var a=s.suspendedLanes,u=s.pingedLanes,h=s.expirationTimes,m=s.pendingLanes&-62914561;0A)break;var ie=z.transferSize,de=z.initiatorType;ie&&zR(de)&&(z=z.responseEnd,x+=ie*(z"u"?null:document;function QR(s,o,a){var u=ol;if(u&&typeof o=="string"&&o){var h=tr(o);h='link[rel="'+s+'"][href="'+h+'"]',typeof a=="string"&&(h+='[crossorigin="'+a+'"]'),KR.has(h)||(KR.add(h),s={rel:s,crossOrigin:a,href:o},u.querySelector(h)===null&&(o=u.createElement("link"),Un(o,"link",s),Cn(o),u.head.appendChild(o)))}}function u$(s){To.D(s),QR("dns-prefetch",s,null)}function f$(s,o){To.C(s,o),QR("preconnect",s,o)}function d$(s,o,a){To.L(s,o,a);var u=ol;if(u&&s&&o){var h='link[rel="preload"][as="'+tr(o)+'"]';o==="image"&&a&&a.imageSrcSet?(h+='[imagesrcset="'+tr(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(h+='[imagesizes="'+tr(a.imageSizes)+'"]')):h+='[href="'+tr(s)+'"]';var m=h;switch(o){case"style":m=il(s);break;case"script":m=al(s)}lr.has(m)||(s=g({rel:"preload",href:o==="image"&&a&&a.imageSrcSet?void 0:s,as:o},a),lr.set(m,s),u.querySelector(h)!==null||o==="style"&&u.querySelector(Ku(m))||o==="script"&&u.querySelector(Qu(m))||(o=u.createElement("link"),Un(o,"link",s),Cn(o),u.head.appendChild(o)))}}function p$(s,o){To.m(s,o);var a=ol;if(a&&s){var u=o&&typeof o.as=="string"?o.as:"script",h='link[rel="modulepreload"][as="'+tr(u)+'"][href="'+tr(s)+'"]',m=h;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=al(s)}if(!lr.has(m)&&(s=g({rel:"modulepreload",href:s},o),lr.set(m,s),a.querySelector(h)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Qu(m)))return}u=a.createElement("link"),Un(u,"link",s),Cn(u),a.head.appendChild(u)}}}function h$(s,o,a){To.S(s,o,a);var u=ol;if(u&&s){var h=Tc(u).hoistableStyles,m=il(s);o=o||"default";var x=h.get(m);if(!x){var A={loading:0,preload:null};if(x=u.querySelector(Ku(m)))A.loading=5;else{s=g({rel:"stylesheet",href:s,"data-precedence":o},a),(a=lr.get(m))&&_0(s,a);var z=x=u.createElement("link");Cn(z),Un(z,"link",s),z._p=new Promise(function(K,ie){z.onload=K,z.onerror=ie}),z.addEventListener("load",function(){A.loading|=1}),z.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Mp(x,o,u)}x={type:"stylesheet",instance:x,count:1,state:A},h.set(m,x)}}}function m$(s,o){To.X(s,o);var a=ol;if(a&&s){var u=Tc(a).hoistableScripts,h=al(s),m=u.get(h);m||(m=a.querySelector(Qu(h)),m||(s=g({src:s,async:!0},o),(o=lr.get(h))&&w0(s,o),m=a.createElement("script"),Cn(m),Un(m,"link",s),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(h,m))}}function g$(s,o){To.M(s,o);var a=ol;if(a&&s){var u=Tc(a).hoistableScripts,h=al(s),m=u.get(h);m||(m=a.querySelector(Qu(h)),m||(s=g({src:s,async:!0,type:"module"},o),(o=lr.get(h))&&w0(s,o),m=a.createElement("script"),Cn(m),Un(m,"link",s),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(h,m))}}function YR(s,o,a,u){var h=(h=_e.current)?Op(h):null;if(!h)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(o=il(a.href),a=Tc(h).hoistableStyles,u=a.get(o),u||(u={type:"style",instance:null,count:0,state:null},a.set(o,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){s=il(a.href);var m=Tc(h).hoistableStyles,x=m.get(s);if(x||(h=h.ownerDocument||h,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(s,x),(m=h.querySelector(Ku(s)))&&!m._p&&(x.instance=m,x.state.loading=5),lr.has(s)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},lr.set(s,a),m||y$(h,s,a,x.state))),o&&u===null)throw Error(r(528,""));return x}if(o&&u!==null)throw Error(r(529,""));return null;case"script":return o=a.async,a=a.src,typeof a=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=al(a),a=Tc(h).hoistableScripts,u=a.get(o),u||(u={type:"script",instance:null,count:0,state:null},a.set(o,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function il(s){return'href="'+tr(s)+'"'}function Ku(s){return'link[rel="stylesheet"]['+s+"]"}function XR(s){return g({},s,{"data-precedence":s.precedence,precedence:null})}function y$(s,o,a,u){s.querySelector('link[rel="preload"][as="style"]['+o+"]")?u.loading=1:(o=s.createElement("link"),u.preload=o,o.addEventListener("load",function(){return u.loading|=1}),o.addEventListener("error",function(){return u.loading|=2}),Un(o,"link",a),Cn(o),s.head.appendChild(o))}function al(s){return'[src="'+tr(s)+'"]'}function Qu(s){return"script[async]"+s}function WR(s,o,a){if(o.count++,o.instance===null)switch(o.type){case"style":var u=s.querySelector('style[data-href~="'+tr(a.href)+'"]');if(u)return o.instance=u,Cn(u),u;var h=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(s.ownerDocument||s).createElement("style"),Cn(u),Un(u,"style",h),Mp(u,a.precedence,s),o.instance=u;case"stylesheet":h=il(a.href);var m=s.querySelector(Ku(h));if(m)return o.state.loading|=4,o.instance=m,Cn(m),m;u=XR(a),(h=lr.get(h))&&_0(u,h),m=(s.ownerDocument||s).createElement("link"),Cn(m);var x=m;return x._p=new Promise(function(A,z){x.onload=A,x.onerror=z}),Un(m,"link",u),o.state.loading|=4,Mp(m,a.precedence,s),o.instance=m;case"script":return m=al(a.src),(h=s.querySelector(Qu(m)))?(o.instance=h,Cn(h),h):(u=a,(h=lr.get(m))&&(u=g({},a),w0(u,h)),s=s.ownerDocument||s,h=s.createElement("script"),Cn(h),Un(h,"link",u),s.head.appendChild(h),o.instance=h);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(u=o.instance,o.state.loading|=4,Mp(u,a.precedence,s));return o.instance}function Mp(s,o,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=u.length?u[u.length-1]:null,m=h,x=0;x title"):null)}function b$(s,o,a){if(a===1||o.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;return o.rel==="stylesheet"?(s=o.disabled,typeof o.precedence=="string"&&s==null):!0;case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function tC(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function v$(s,o,a,u){if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var h=il(u.href),m=o.querySelector(Ku(h));if(m){o=m._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(s.count++,s=kp.bind(s),o.then(s,s)),a.state.loading|=4,a.instance=m,Cn(m);return}m=o.ownerDocument||o,u=XR(u),(h=lr.get(h))&&_0(u,h),m=m.createElement("link"),Cn(m);var x=m;x._p=new Promise(function(A,z){x.onload=A,x.onerror=z}),Un(m,"link",u),a.instance=m}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(a,o),(o=a.state.preload)&&(a.state.loading&3)===0&&(s.count++,a=kp.bind(s),o.addEventListener("load",a),o.addEventListener("error",a))}}var E0=0;function S$(s,o){return s.stylesheets&&s.count===0&&Np(s,s.stylesheets),0E0?50:800)+o);return s.unsuspend=a,function(){s.unsuspend=null,clearTimeout(u),clearTimeout(h)}}:null}function kp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Np(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var Pp=null;function Np(s,o){s.stylesheets=null,s.unsuspend!==null&&(s.count++,Pp=new Map,o.forEach(_$,s),Pp=null,kp.call(s))}function _$(s,o){if(!(o.state.loading&4)){var a=Pp.get(s);if(a)var u=a.get(null);else{a=new Map,Pp.set(s,a);for(var h=s.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),G0.exports=v8(),G0.exports}var _8=S8();const w8=O2(_8);var Q0={exports:{}},Y0={};var nA;function E8(){if(nA)return Y0;nA=1;var e=zl().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Y0.c=function(t){return e.H.useMemoCache(t)},Y0}var sA;function x8(){return sA||(sA=1,Q0.exports=E8()),Q0.exports}var kt=x8();const uO=M.createContext(void 0);function R8(e,t){try{const n=localStorage.getItem(e);if(n==="light"||n==="dark"||n==="system")return n}catch{}return t}function C8(e){const t=kt.c(14),{children:n,defaultTheme:r,storageKey:i}=e,c=r===void 0?"system":r,l=i===void 0?"ui-theme":i;let f;t[0]!==c||t[1]!==l?(f=()=>R8(l,c),t[0]=c,t[1]=l,t[2]=f):f=t[2];const[d,p]=M.useState(f);let b,g;t[3]!==d?(b=()=>{const R=window.document.documentElement;if(R.classList.remove("light","dark"),d==="system"){const C=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";R.classList.add(C);return}R.classList.add(d)},g=[d],t[3]=d,t[4]=b,t[5]=g):(b=t[4],g=t[5]),M.useEffect(b,g);let v;t[6]!==l?(v=R=>{try{localStorage.setItem(l,R)}catch{}p(R)},t[6]=l,t[7]=v):v=t[7];let S;t[8]!==v||t[9]!==d?(S={theme:d,setTheme:v},t[8]=v,t[9]=d,t[10]=S):S=t[10];const w=S;let E;return t[11]!==n||t[12]!==w?(E=N.jsx(uO.Provider,{value:w,children:n}),t[11]=n,t[12]=w,t[13]=E):E=t[13],E}function A8(){const e=M.useContext(uO);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}function nv(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}const _f={};function Sm(e,t,n,r,i){let c={...sv(e,_f)};return t&&(c=gf(c,t)),n&&(c=gf(c,n)),r&&(c=gf(c,r)),i&&(c=gf(c,i)),c}function T8(e){if(e.length===0)return _f;if(e.length===1)return sv(e[0],_f);let t={...sv(e[0],_f)};for(let n=1;n=65&&i<=90&&(typeof t=="function"||typeof t>"u")}function fO(e){return typeof e=="function"}function sv(e,t){return fO(e)?e(t):e??_f}function M8(e,t){return t?e?n=>{if(D8(n)){const i=n;rv(i);const c=t(i);return i.baseUIHandlerPrevented||e?.(i),c}const r=t(n);return e?.(n),r}:t:e}function rv(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function dO(e,t){return t?e?t+" "+e:t:e}function D8(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Fo(e,...t){const n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(r=>n.searchParams.append("args[]",r)),`Base UI error #${e}; visit ${n} for the full message.`}const rA={};function vr(e,t){const n=M.useRef(rA);return n.current===rA&&(n.current=e(t)),n}function Nh(e,t,n,r){const i=vr(pO).current;return P8(i,e,t,n,r)&&hO(i,[e,t,n,r]),i.callback}function k8(e){const t=vr(pO).current;return N8(t,e)&&hO(t,e),t.callback}function pO(){return{callback:null,cleanup:null,refs:[]}}function P8(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function N8(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function hO(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let i=0;i{for(let i=0;i=e}function oA(e){if(!M.isValidElement(e))return null;const t=e,n=t.props;return(Wv(19)?n?.ref:t.ref)??null}function z8(e,t){const n={};for(const r in e){const i=e[r];if(t?.hasOwnProperty(r)){const c=t[r](i);c!=null&&Object.assign(n,c);continue}i===!0?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function B8(e,t){return typeof e=="function"?e(t):e}function $8(e,t){return typeof e=="function"?e(t):e}function mO(){}const ORe=Object.freeze([]),Hs=Object.freeze({}),U8={style:{transition:"none"}},j8="data-base-ui-click-trigger",MRe={fallbackAxisSide:"none"},H8={fallbackAxisSide:"end"},V8={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function Sr(e,t,n={}){const r=t.render,i=F8(t,n);if(n.enabled===!1)return null;const c=n.state??Hs;return G8(e,r,i,c)}function F8(e,t={}){const{className:n,style:r,render:i}=e,{state:c=Hs,ref:l,props:f,stateAttributesMapping:d,enabled:p=!0}=t,b=p?B8(n,c):void 0,g=p?$8(r,c):void 0,v=p?z8(c,d):Hs,S=p?nv(v,Array.isArray(f)?T8(f):f)??Hs:Hs;return typeof document<"u"&&(p?Array.isArray(l)?S.ref=k8([S.ref,oA(i),...l]):S.ref=Nh(S.ref,oA(i),l):Nh(null,null)),p?(b!==void 0&&(S.className=dO(S.className,b)),g!==void 0&&(S.style=nv(S.style,g)),S):Hs}const q8=Symbol.for("react.lazy");function G8(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const i=Sm(n,t.props);i.ref=n.ref;let c=t;return c?.$$typeof===q8&&(c=M.Children.toArray(t)[0]),M.cloneElement(c,i)}if(e&&typeof e=="string")return Z8(e,n);throw new Error(Fo(8))}function Z8(e,t){return e==="button"?M.createElement("button",{type:"button",...t,key:t.key}):e==="img"?M.createElement("img",{alt:"",...t,key:t.key}):M.createElement(e,t)}function gO(e){return Sr(e.defaultTagName??"div",e,e)}function yO(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,aA=bO,vO=(e,t)=>n=>{var r;if(t?.variants==null)return aA(e,n?.class,n?.className);const{variants:i,defaultVariants:c}=t,l=Object.keys(i).map(p=>{const b=n?.[p],g=c?.[p];if(b===null)return null;const v=iA(b)||iA(g);return i[p][v]}),f=n&&Object.entries(n).reduce((p,b)=>{let[g,v]=b;return v===void 0||(p[g]=v),p},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((p,b)=>{let{class:g,className:v,...S}=b;return Object.entries(S).every(w=>{let[E,R]=w;return Array.isArray(R)?R.includes({...c,...f}[E]):{...c,...f}[E]===R})?[...p,g,v]:p},[]);return aA(e,l,d,n?.class,n?.className)};const SO=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const K8=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Q8=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const cA=e=>{const t=Q8(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Y8={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const X8=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const W8=M.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:c,iconNode:l,...f},d)=>M.createElement("svg",{ref:d,...Y8,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:SO("lucide",i),...!c&&!X8(f)&&{"aria-hidden":"true"},...f},[...l.map(([p,b])=>M.createElement(p,b)),...Array.isArray(c)?c:[c]]));const xs=(e,t)=>{const n=M.forwardRef(({className:r,...i},c)=>M.createElement(W8,{ref:c,iconNode:t,className:SO(`lucide-${K8(cA(e))}`,`lucide-${e}`,r),...i}));return n.displayName=cA(e),n};const J8=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],e5=xs("camera",J8);const t5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],n5=xs("circle-alert",t5);const s5=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],r5=xs("hard-drive",s5);const o5=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],i5=xs("house",o5);const a5=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],c5=xs("image",a5);const l5=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],u5=xs("key",l5);const f5=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],d5=xs("layout-grid",f5);const p5=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],h5=xs("log-out",p5);const m5=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],g5=xs("moon",m5);const y5=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],b5=xs("network",y5);const v5=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],S5=xs("panel-left",v5);const _5=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],lA=xs("server",_5);const w5=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],E5=xs("sun",w5);const x5=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],R5=xs("x",x5);function _m(){return typeof window<"u"}function sa(e){return Jv(e)?(e.nodeName||"").toLowerCase():"#document"}function Sn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function eo(e){var t;return(t=(Jv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jv(e){return _m()?e instanceof Node||e instanceof Sn(e).Node:!1}function Et(e){return _m()?e instanceof Element||e instanceof Sn(e).Element:!1}function yn(e){return _m()?e instanceof HTMLElement||e instanceof Sn(e).HTMLElement:!1}function ov(e){return!_m()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Sn(e).ShadowRoot}const C5=new Set(["inline","contents"]);function ra(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Gs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!C5.has(i)}const A5=new Set(["table","td","th"]);function T5(e){return A5.has(sa(e))}const I5=[":popover-open",":modal"];function wm(e){return I5.some(t=>{try{return e.matches(t)}catch{return!1}})}const O5=["transform","translate","scale","rotate","perspective"],M5=["transform","translate","scale","rotate","perspective","filter"],D5=["paint","layout","strict","content"];function eS(e){const t=Em(),n=Et(e)?Gs(e):e;return O5.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||M5.some(r=>(n.willChange||"").includes(r))||D5.some(r=>(n.contain||"").includes(r))}function k5(e){let t=Uo(e);for(;yn(t)&&!Bo(t);){if(eS(t))return t;if(wm(t))return null;t=Uo(t)}return null}function Em(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const P5=new Set(["html","body","#document"]);function Bo(e){return P5.has(sa(e))}function Gs(e){return Sn(e).getComputedStyle(e)}function xm(e){return Et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Uo(e){if(sa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ov(e)&&e.host||eo(e);return ov(t)?t.host:t}function _O(e){const t=Uo(e);return Bo(t)?e.ownerDocument?e.ownerDocument.body:e.body:yn(t)&&ra(t)?t:_O(t)}function Wi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=_O(e),c=i===((r=e.ownerDocument)==null?void 0:r.body),l=Sn(i);if(c){const f=iv(l);return t.concat(l,l.visualViewport||[],ra(i)?i:[],f&&n?Wi(f):[])}return t.concat(i,Wi(i,[],n))}function iv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const X0=Bv[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],N5=X0&&X0!==M.useLayoutEffect?X0:e=>e();function Ge(e){const t=vr(L5).current;return t.next=e,N5(t.effect),t.trampoline}function L5(){const e={next:void 0,callback:z5,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function z5(){}const B5={...Bv},$5=()=>{},ht=typeof document<"u"?M.useLayoutEffect:$5,U5=M.createContext(void 0);function j5(e=!1){const t=M.useContext(U5);if(t===void 0&&!e)throw new Error(Fo(16));return t}function H5(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:c}=e,l=r&&t!==!1,f=r&&t===!1;return{props:M.useMemo(()=>{const p={onKeyDown(b){n&&t&&b.key!=="Tab"&&b.preventDefault()}};return r||(p.tabIndex=i,!c&&n&&(p.tabIndex=t?i:-1)),(c&&(t||l)||!c&&n)&&(p["aria-disabled"]=n),c&&(!t||f)&&(p.disabled=n),p},[r,n,t,l,f,c,i])}}function wO(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0}=e,c=M.useRef(null),l=j5(!0)!==void 0,f=Ge(()=>{const v=c.current;return!!(v?.tagName==="A"&&v?.href)}),{props:d}=H5({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:r,isNativeButton:i}),p=M.useCallback(()=>{const v=c.current;V5(v)&&l&&t&&d.disabled===void 0&&v.disabled&&(v.disabled=!1)},[t,d.disabled,l]);ht(p,[p]);const b=M.useCallback((v={})=>{const{onClick:S,onMouseDown:w,onKeyUp:E,onKeyDown:R,onPointerDown:C,...O}=v;return Sm({type:i?"button":void 0,onClick(T){if(t){T.preventDefault();return}S?.(T)},onMouseDown(T){t||w?.(T)},onKeyDown(T){if(t||(rv(T),R?.(T)),T.baseUIHandlerPrevented)return;const $=T.target===T.currentTarget&&!i&&!f()&&!t,j=T.key==="Enter",H=T.key===" ";$&&((H||j)&&T.preventDefault(),j&&S?.(T))},onKeyUp(T){t||(rv(T),E?.(T)),!T.baseUIHandlerPrevented&&T.target===T.currentTarget&&!i&&!t&&T.key===" "&&S?.(T)},onPointerDown(T){if(t){T.preventDefault();return}C?.(T)}},i?void 0:{role:"button"},d,O)},[t,d,i,f]),g=Ge(v=>{c.current=v,p()});return{getButtonProps:b,buttonRef:g}}function V5(e){return yn(e)&&e.tagName==="BUTTON"}const F5=M.forwardRef(function(t,n){const{render:r,className:i,disabled:c=!1,focusableWhenDisabled:l=!1,nativeButton:f=!0,...d}=t,{getButtonProps:p,buttonRef:b}=wO({disabled:c,focusableWhenDisabled:l,native:f});return Sr("button",t,{state:{disabled:c},ref:[n,b],props:[d,p]})}),q5=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r({classGroupId:e,validator:t}),EO=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Lh="-",uA=[],Z5="arbitrary..",K5=e=>{const t=Y5(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Q5(l);const f=l.split(Lh),d=f[0]===""&&f.length>1?1:0;return xO(f,d,t)},getConflictingClassGroupIds:(l,f)=>{if(f){const d=r[l],p=n[l];return d?p?q5(p,d):d:p||uA}return n[l]||uA}}},xO=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],c=n.nextPart.get(i);if(c){const p=xO(e,t+1,c);if(p)return p}const l=n.validators;if(l===null)return;const f=t===0?e.join(Lh):e.slice(t).join(Lh),d=l.length;for(let p=0;pe.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Z5+r:void 0})(),Y5=e=>{const{theme:t,classGroups:n}=e;return X5(n,t)},X5=(e,t)=>{const n=EO();for(const r in e){const i=e[r];tS(i,n,r,t)}return n},tS=(e,t,n,r)=>{const i=e.length;for(let c=0;c{if(typeof e=="string"){J5(e,t,n);return}if(typeof e=="function"){ej(e,t,n,r);return}tj(e,t,n,r)},J5=(e,t,n)=>{const r=e===""?t:RO(t,e);r.classGroupId=n},ej=(e,t,n,r)=>{if(nj(e)){tS(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(G5(n,e))},tj=(e,t,n,r)=>{const i=Object.entries(e),c=i.length;for(let l=0;l{let n=e;const r=t.split(Lh),i=r.length;for(let c=0;c"isThemeGetter"in e&&e.isThemeGetter===!0,sj=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(c,l)=>{n[c]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(c){let l=n[c];if(l!==void 0)return l;if((l=r[c])!==void 0)return i(c,l),l},set(c,l){c in n?n[c]=l:i(c,l)}}},av="!",fA=":",rj=[],dA=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),oj=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const c=[];let l=0,f=0,d=0,p;const b=i.length;for(let E=0;Ed?p-d:void 0;return dA(c,S,v,w)};if(t){const i=t+fA,c=r;r=l=>l.startsWith(i)?c(l.slice(i.length)):dA(rj,!1,l,void 0,!0)}if(n){const i=r;r=c=>n({className:c,parseClassName:i})}return r},ij=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let c=0;c0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},aj=e=>({cache:sj(e.cacheSize),parseClassName:oj(e),sortModifiers:ij(e),...K5(e)}),cj=/\s+/,lj=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:c}=t,l=[],f=e.trim().split(cj);let d="";for(let p=f.length-1;p>=0;p-=1){const b=f[p],{isExternal:g,modifiers:v,hasImportantModifier:S,baseClassName:w,maybePostfixModifierPosition:E}=n(b);if(g){d=b+(d.length>0?" "+d:d);continue}let R=!!E,C=r(R?w.substring(0,E):w);if(!C){if(!R){d=b+(d.length>0?" "+d:d);continue}if(C=r(w),!C){d=b+(d.length>0?" "+d:d);continue}R=!1}const O=v.length===0?"":v.length===1?v[0]:c(v).join(":"),k=S?O+av:O,T=k+C;if(l.indexOf(T)>-1)continue;l.push(T);const $=i(C,R);for(let j=0;j<$.length;++j){const H=$[j];l.push(k+H)}d=b+(d.length>0?" "+d:d)}return d},uj=(...e)=>{let t=0,n,r,i="";for(;t{if(typeof e=="string")return e;let t,n="";for(let r=0;r{let n,r,i,c;const l=d=>{const p=t.reduce((b,g)=>g(b),e());return n=aj(p),r=n.cache.get,i=n.cache.set,c=f,f(d)},f=d=>{const p=r(d);if(p)return p;const b=lj(d,n);return i(d,b),b};return c=l,(...d)=>c(uj(...d))},dj=[],En=e=>{const t=n=>n[e]||dj;return t.isThemeGetter=!0,t},AO=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,TO=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pj=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,hj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mj=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,yj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Bi=e=>pj.test(e),tt=e=>!!e&&!Number.isNaN(Number(e)),$i=e=>!!e&&Number.isInteger(Number(e)),W0=e=>e.endsWith("%")&&tt(e.slice(0,-1)),Io=e=>hj.test(e),IO=()=>!0,vj=e=>mj.test(e)&&!gj.test(e),nS=()=>!1,Sj=e=>yj.test(e),_j=e=>bj.test(e),wj=e=>!Ne(e)&&!Le(e),Ej=e=>oa(e,DO,nS),Ne=e=>AO.test(e),Fa=e=>oa(e,kO,vj),pA=e=>oa(e,Mj,tt),xj=e=>oa(e,NO,IO),Rj=e=>oa(e,PO,nS),hA=e=>oa(e,OO,nS),Cj=e=>oa(e,MO,_j),Zp=e=>oa(e,LO,Sj),Le=e=>TO.test(e),cf=e=>uc(e,kO),Aj=e=>uc(e,PO),mA=e=>uc(e,OO),Tj=e=>uc(e,DO),Ij=e=>uc(e,MO),Kp=e=>uc(e,LO,!0),Oj=e=>uc(e,NO,!0),oa=(e,t,n)=>{const r=AO.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},uc=(e,t,n=!1)=>{const r=TO.exec(e);return r?r[1]?t(r[1]):n:!1},OO=e=>e==="position"||e==="percentage",MO=e=>e==="image"||e==="url",DO=e=>e==="length"||e==="size"||e==="bg-size",kO=e=>e==="length",Mj=e=>e==="number",PO=e=>e==="family-name",NO=e=>e==="number"||e==="weight",LO=e=>e==="shadow",Dj=()=>{const e=En("color"),t=En("font"),n=En("text"),r=En("font-weight"),i=En("tracking"),c=En("leading"),l=En("breakpoint"),f=En("container"),d=En("spacing"),p=En("radius"),b=En("shadow"),g=En("inset-shadow"),v=En("text-shadow"),S=En("drop-shadow"),w=En("blur"),E=En("perspective"),R=En("aspect"),C=En("ease"),O=En("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],$=()=>[...T(),Le,Ne],j=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],P=()=>[Le,Ne,d],Y=()=>[Bi,"full","auto",...P()],ne=()=>[$i,"none","subgrid",Le,Ne],re=()=>["auto",{span:["full",$i,Le,Ne]},$i,Le,Ne],G=()=>[$i,"auto",Le,Ne],te=()=>["auto","min","max","fr",Le,Ne],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ye=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...P()],oe=()=>[Bi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],J=()=>[Bi,"screen","full","dvw","lvw","svw","min","max","fit",...P()],ve=()=>[Bi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],fe=()=>[e,Le,Ne],B=()=>[...T(),mA,hA,{position:[Le,Ne]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ge=()=>["auto","cover","contain",Tj,Ej,{size:[Le,Ne]}],be=()=>[W0,cf,Fa],xe=()=>["","none","full",p,Le,Ne],_e=()=>["",tt,cf,Fa],Te=()=>["solid","dashed","dotted","double"],Fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>[tt,W0,mA,hA],Xe=()=>["","none",w,Le,Ne],_t=()=>["none",tt,Le,Ne],me=()=>["none",tt,Le,Ne],Ee=()=>[tt,Le,Ne],we=()=>[Bi,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Io],breakpoint:[Io],color:[IO],container:[Io],"drop-shadow":[Io],ease:["in","out","in-out"],font:[wj],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Io],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Io],shadow:[Io],spacing:["px",tt],text:[Io],"text-shadow":[Io],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Bi,Ne,Le,R]}],container:["container"],columns:[{columns:[tt,Ne,Le,f]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:$()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{"inset-s":Y(),start:Y()}],end:[{"inset-e":Y(),end:Y()}],"inset-bs":[{"inset-bs":Y()}],"inset-be":[{"inset-be":Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[$i,"auto",Le,Ne]}],basis:[{basis:[Bi,"full","auto",f,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[tt,Bi,"auto","initial","none",Ne]}],grow:[{grow:["",tt,Le,Ne]}],shrink:[{shrink:["",tt,Le,Ne]}],order:[{order:[$i,"first","last","none",Le,Ne]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...ye(),"normal"]}],"justify-self":[{"justify-self":["auto",...ye()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...ye(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ye(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...ye(),"baseline"]}],"place-self":[{"place-self":["auto",...ye()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:oe()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...ve()]}],"min-block-size":[{"min-block":["auto",...ve()]}],"max-block-size":[{"max-block":["none",...ve()]}],w:[{w:[f,"screen",...oe()]}],"min-w":[{"min-w":[f,"screen","none",...oe()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[l]},...oe()]}],h:[{h:["screen","lh",...oe()]}],"min-h":[{"min-h":["screen","lh","none",...oe()]}],"max-h":[{"max-h":["screen","lh",...oe()]}],"font-size":[{text:["base",n,cf,Fa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Oj,xj]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",W0,Ne]}],"font-family":[{font:[Aj,Rj,t]}],"font-features":[{"font-features":[Ne]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Le,Ne]}],"line-clamp":[{"line-clamp":[tt,"none",Le,pA]}],leading:[{leading:[c,...P()]}],"list-image":[{"list-image":["none",Le,Ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Le,Ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:fe()}],"text-color":[{text:fe()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Te(),"wavy"]}],"text-decoration-thickness":[{decoration:[tt,"from-font","auto",Le,Fa]}],"text-decoration-color":[{decoration:fe()}],"underline-offset":[{"underline-offset":[tt,"auto",Le,Ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Le,Ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Le,Ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:ge()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$i,Le,Ne],radial:["",Le,Ne],conic:[$i,Le,Ne]},Ij,Cj]}],"bg-color":[{bg:fe()}],"gradient-from-pos":[{from:be()}],"gradient-via-pos":[{via:be()}],"gradient-to-pos":[{to:be()}],"gradient-from":[{from:fe()}],"gradient-via":[{via:fe()}],"gradient-to":[{to:fe()}],rounded:[{rounded:xe()}],"rounded-s":[{"rounded-s":xe()}],"rounded-e":[{"rounded-e":xe()}],"rounded-t":[{"rounded-t":xe()}],"rounded-r":[{"rounded-r":xe()}],"rounded-b":[{"rounded-b":xe()}],"rounded-l":[{"rounded-l":xe()}],"rounded-ss":[{"rounded-ss":xe()}],"rounded-se":[{"rounded-se":xe()}],"rounded-ee":[{"rounded-ee":xe()}],"rounded-es":[{"rounded-es":xe()}],"rounded-tl":[{"rounded-tl":xe()}],"rounded-tr":[{"rounded-tr":xe()}],"rounded-br":[{"rounded-br":xe()}],"rounded-bl":[{"rounded-bl":xe()}],"border-w":[{border:_e()}],"border-w-x":[{"border-x":_e()}],"border-w-y":[{"border-y":_e()}],"border-w-s":[{"border-s":_e()}],"border-w-e":[{"border-e":_e()}],"border-w-bs":[{"border-bs":_e()}],"border-w-be":[{"border-be":_e()}],"border-w-t":[{"border-t":_e()}],"border-w-r":[{"border-r":_e()}],"border-w-b":[{"border-b":_e()}],"border-w-l":[{"border-l":_e()}],"divide-x":[{"divide-x":_e()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":_e()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Te(),"hidden","none"]}],"divide-style":[{divide:[...Te(),"hidden","none"]}],"border-color":[{border:fe()}],"border-color-x":[{"border-x":fe()}],"border-color-y":[{"border-y":fe()}],"border-color-s":[{"border-s":fe()}],"border-color-e":[{"border-e":fe()}],"border-color-bs":[{"border-bs":fe()}],"border-color-be":[{"border-be":fe()}],"border-color-t":[{"border-t":fe()}],"border-color-r":[{"border-r":fe()}],"border-color-b":[{"border-b":fe()}],"border-color-l":[{"border-l":fe()}],"divide-color":[{divide:fe()}],"outline-style":[{outline:[...Te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[tt,Le,Ne]}],"outline-w":[{outline:["",tt,cf,Fa]}],"outline-color":[{outline:fe()}],shadow:[{shadow:["","none",b,Kp,Zp]}],"shadow-color":[{shadow:fe()}],"inset-shadow":[{"inset-shadow":["none",g,Kp,Zp]}],"inset-shadow-color":[{"inset-shadow":fe()}],"ring-w":[{ring:_e()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:fe()}],"ring-offset-w":[{"ring-offset":[tt,Fa]}],"ring-offset-color":[{"ring-offset":fe()}],"inset-ring-w":[{"inset-ring":_e()}],"inset-ring-color":[{"inset-ring":fe()}],"text-shadow":[{"text-shadow":["none",v,Kp,Zp]}],"text-shadow-color":[{"text-shadow":fe()}],opacity:[{opacity:[tt,Le,Ne]}],"mix-blend":[{"mix-blend":[...Fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[tt]}],"mask-image-linear-from-pos":[{"mask-linear-from":Se()}],"mask-image-linear-to-pos":[{"mask-linear-to":Se()}],"mask-image-linear-from-color":[{"mask-linear-from":fe()}],"mask-image-linear-to-color":[{"mask-linear-to":fe()}],"mask-image-t-from-pos":[{"mask-t-from":Se()}],"mask-image-t-to-pos":[{"mask-t-to":Se()}],"mask-image-t-from-color":[{"mask-t-from":fe()}],"mask-image-t-to-color":[{"mask-t-to":fe()}],"mask-image-r-from-pos":[{"mask-r-from":Se()}],"mask-image-r-to-pos":[{"mask-r-to":Se()}],"mask-image-r-from-color":[{"mask-r-from":fe()}],"mask-image-r-to-color":[{"mask-r-to":fe()}],"mask-image-b-from-pos":[{"mask-b-from":Se()}],"mask-image-b-to-pos":[{"mask-b-to":Se()}],"mask-image-b-from-color":[{"mask-b-from":fe()}],"mask-image-b-to-color":[{"mask-b-to":fe()}],"mask-image-l-from-pos":[{"mask-l-from":Se()}],"mask-image-l-to-pos":[{"mask-l-to":Se()}],"mask-image-l-from-color":[{"mask-l-from":fe()}],"mask-image-l-to-color":[{"mask-l-to":fe()}],"mask-image-x-from-pos":[{"mask-x-from":Se()}],"mask-image-x-to-pos":[{"mask-x-to":Se()}],"mask-image-x-from-color":[{"mask-x-from":fe()}],"mask-image-x-to-color":[{"mask-x-to":fe()}],"mask-image-y-from-pos":[{"mask-y-from":Se()}],"mask-image-y-to-pos":[{"mask-y-to":Se()}],"mask-image-y-from-color":[{"mask-y-from":fe()}],"mask-image-y-to-color":[{"mask-y-to":fe()}],"mask-image-radial":[{"mask-radial":[Le,Ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":Se()}],"mask-image-radial-to-pos":[{"mask-radial-to":Se()}],"mask-image-radial-from-color":[{"mask-radial-from":fe()}],"mask-image-radial-to-color":[{"mask-radial-to":fe()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[tt]}],"mask-image-conic-from-pos":[{"mask-conic-from":Se()}],"mask-image-conic-to-pos":[{"mask-conic-to":Se()}],"mask-image-conic-from-color":[{"mask-conic-from":fe()}],"mask-image-conic-to-color":[{"mask-conic-to":fe()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:ge()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Le,Ne]}],filter:[{filter:["","none",Le,Ne]}],blur:[{blur:Xe()}],brightness:[{brightness:[tt,Le,Ne]}],contrast:[{contrast:[tt,Le,Ne]}],"drop-shadow":[{"drop-shadow":["","none",S,Kp,Zp]}],"drop-shadow-color":[{"drop-shadow":fe()}],grayscale:[{grayscale:["",tt,Le,Ne]}],"hue-rotate":[{"hue-rotate":[tt,Le,Ne]}],invert:[{invert:["",tt,Le,Ne]}],saturate:[{saturate:[tt,Le,Ne]}],sepia:[{sepia:["",tt,Le,Ne]}],"backdrop-filter":[{"backdrop-filter":["","none",Le,Ne]}],"backdrop-blur":[{"backdrop-blur":Xe()}],"backdrop-brightness":[{"backdrop-brightness":[tt,Le,Ne]}],"backdrop-contrast":[{"backdrop-contrast":[tt,Le,Ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",tt,Le,Ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[tt,Le,Ne]}],"backdrop-invert":[{"backdrop-invert":["",tt,Le,Ne]}],"backdrop-opacity":[{"backdrop-opacity":[tt,Le,Ne]}],"backdrop-saturate":[{"backdrop-saturate":[tt,Le,Ne]}],"backdrop-sepia":[{"backdrop-sepia":["",tt,Le,Ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Le,Ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[tt,"initial",Le,Ne]}],ease:[{ease:["linear","initial",C,Le,Ne]}],delay:[{delay:[tt,Le,Ne]}],animate:[{animate:["none",O,Le,Ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,Le,Ne]}],"perspective-origin":[{"perspective-origin":$()}],rotate:[{rotate:_t()}],"rotate-x":[{"rotate-x":_t()}],"rotate-y":[{"rotate-y":_t()}],"rotate-z":[{"rotate-z":_t()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[Le,Ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:$()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":["translate-none"],accent:[{accent:fe()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:fe()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Le,Ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Le,Ne]}],fill:[{fill:["none",...fe()]}],"stroke-w":[{stroke:[tt,cf,Fa,pA]}],stroke:[{stroke:["none",...fe()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},kj=fj(Dj);function cn(...e){return kj(bO(e))}function DRe(e){return e?new Date(e).toLocaleString(void 0,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}):"Unknown"}function kRe(e){if(e===0)return"0 B";const t=["B","KB","MB","GB","TB"],n=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**n).toFixed(2)} ${t[n]}`}const Pj=/\/$/;function PRe(e){return e.replace(Pj,"")}function Nj(e){return e&&(e.endsWith("/")?e:`${e}/`)}function Lj(e,t){return e.startsWith(t)?e:`${t}${e}`}function NRe(e,t){return e.startsWith(t)?e.slice(t.length):e}const zj=vO("group/button inline-flex shrink-0 select-none items-center justify-center whitespace-nowrap rounded-md border border-transparent bg-clip-padding font-medium text-xs/relaxed outline-none transition-all focus-visible:border-ring focus-visible:ring-[2px] focus-visible:ring-ring/30 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:bg-input/30",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 dark:hover:bg-destructive/30",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",xs:"h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5",sm:"h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",lg:"h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4",icon:"size-7 [&_svg:not([class*='size-'])]:size-3.5","icon-xs":"size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5","icon-sm":"size-6 [&_svg:not([class*='size-'])]:size-3","icon-lg":"size-8 [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default",size:"default"}});function Tl(e){const t=kt.c(12);let n,r,i,c;t[0]!==e?({className:n,variant:i,size:c,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c):(n=t[1],r=t[2],i=t[3],c=t[4]);const l=i===void 0?"default":i,f=c===void 0?"default":c;let d;t[5]!==n||t[6]!==f||t[7]!==l?(d=cn(zj({variant:l,size:f,className:n})),t[5]=n,t[6]=f,t[7]=l,t[8]=d):d=t[8];let p;return t[9]!==r||t[10]!==d?(p=N.jsx(F5,{className:d,"data-slot":"button",...r}),t[9]=r,t[10]=d,t[11]=p):p=t[11],p}let gA=0;function Bj(e,t="mui"){const[n,r]=M.useState(e),i=e||n;return M.useEffect(()=>{n==null&&(gA+=1,r(`${t}-${gA}`))},[n,t]),i}const yA=B5.useId;function Zf(e,t){if(yA!==void 0){const n=yA();return e??(t?`${t}-${n}`:n)}return Bj(e,t)}function sS(e){return Zf(e,"base-ui")}const $j=[];function rS(e){M.useEffect(e,$j)}const lf=0;class Jr{static create(){return new Jr}currentId=lf;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=lf,n()},t)}isStarted(){return this.currentId!==lf}clear=()=>{this.currentId!==lf&&(clearTimeout(this.currentId),this.currentId=lf)};disposeEffect=()=>this.clear}function Il(){const e=vr(Jr.create).current;return rS(e.disposeEffect),e}function Kt(e){return e?.ownerDocument||document}const Bl=typeof navigator<"u",J0=jj(),zO=Vj(),BO=Hj(),$O=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),UO=J0.platform==="MacIntel"&&J0.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(J0.platform),jO=Bl&&/apple/i.test(navigator.vendor),cv=Bl&&/android/i.test(zO)||/android/i.test(BO),Uj=Bl&&zO.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,HO=BO.includes("jsdom/");function jj(){if(!Bl)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function Hj(){if(!Bl)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function Vj(){if(!Bl)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const lv="data-base-ui-focusable",VO="active",FO="selected",qO="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",LRe="ArrowLeft",zRe="ArrowRight",BRe="ArrowUp",$Re="ArrowDown";function Do(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function gt(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&ov(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function zh(e,t){if(!Et(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute("data-trigger-disabled");for(const[,r]of t.entries())if(gt(r,n))return!r.hasAttribute("data-trigger-disabled");return!1}function Ss(e){return"composedPath"in e?e.composedPath()[0]:e.target}function kr(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Fj(e){return e.matches("html,body")}function oS(e){return yn(e)&&e.matches(qO)}function bA(e){return e?e.getAttribute("role")==="combobox"&&oS(e):!1}function qj(e){if(!e||HO)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function uv(e){return e?e.hasAttribute(lv)?e:e.querySelector(`[${lv}]`)||e:null}function Ja(e,t,n=!0){return e.filter(i=>i.parentId===t&&(!n||i.context?.open)).flatMap(i=>[i,...Ja(e,i.id,n)])}function vA(e,t){let n=[],r=e.find(i=>i.id===t)?.parentId;for(;r;){const i=e.find(c=>c.id===r);r=i?.parentId,i&&(n=n.concat(i))}return n}function Gj(e){e.preventDefault(),e.stopPropagation()}function Zj(e){return"nativeEvent"in e}function Kj(e){return e.pointerType===""&&e.isTrusted?!0:cv&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Qj(e){return HO?!1:!cv&&e.width===0&&e.height===0||cv&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Pf(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Yj(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const Xj=["top","right","bottom","left"],Ol=Math.min,js=Math.max,Bh=Math.round,Qp=Math.floor,Yr=e=>({x:e,y:e}),Wj={left:"right",right:"left",bottom:"top",top:"bottom"},Jj={start:"end",end:"start"};function fv(e,t,n){return js(e,Ol(t,n))}function jo(e,t){return typeof e=="function"?e(t):e}function Es(e){return e.split("-")[0]}function ia(e){return e.split("-")[1]}function iS(e){return e==="x"?"y":"x"}function aS(e){return e==="y"?"height":"width"}const e9=new Set(["top","bottom"]);function br(e){return e9.has(Es(e))?"y":"x"}function cS(e){return iS(br(e))}function t9(e,t,n){n===void 0&&(n=!1);const r=ia(e),i=cS(e),c=aS(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(l=$h(l)),[l,$h(l)]}function n9(e){const t=$h(e);return[dv(e),t,dv(t)]}function dv(e){return e.replace(/start|end/g,t=>Jj[t])}const SA=["left","right"],_A=["right","left"],s9=["top","bottom"],r9=["bottom","top"];function o9(e,t,n){switch(e){case"top":case"bottom":return n?t?_A:SA:t?SA:_A;case"left":case"right":return t?s9:r9;default:return[]}}function i9(e,t,n,r){const i=ia(e);let c=o9(Es(e),n==="start",r);return i&&(c=c.map(l=>l+"-"+i),t&&(c=c.concat(c.map(dv)))),c}function $h(e){return e.replace(/left|right|bottom|top/g,t=>Wj[t])}function a9(e){return{top:0,right:0,bottom:0,left:0,...e}}function GO(e){return typeof e!="number"?a9(e):{top:e,right:e,bottom:e,left:e}}function Uh(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}var c9=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],jh=c9.join(","),ZO=typeof Element>"u",Ml=ZO?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Hh=!ZO&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Vh=function(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),c=i===""||i==="true",l=c||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Vh(t.parentNode));return l},l9=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},KO=function(t,n,r){if(Vh(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(jh));return n&&Ml.call(t,jh)&&i.unshift(t),i=i.filter(r),i},Fh=function(t,n,r){for(var i=[],c=Array.from(t);c.length;){var l=c.shift();if(!Vh(l,!1))if(l.tagName==="SLOT"){var f=l.assignedElements(),d=f.length?f:l.children,p=Fh(d,!0,r);r.flatten?i.push.apply(i,p):i.push({scopeParent:l,candidates:p})}else{var b=Ml.call(l,jh);b&&r.filter(l)&&(n||!t.includes(l))&&i.push(l);var g=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),v=!Vh(g,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(g&&v){var S=Fh(g===!0?l.children:g.children,!0,r);r.flatten?i.push.apply(i,S):i.push({scopeParent:l,candidates:S})}else c.unshift.apply(c,l.children)}}return i},QO=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},YO=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||l9(t))&&!QO(t)?0:t.tabIndex},u9=function(t,n){var r=YO(t);return r<0&&n&&!QO(t)?0:r},f9=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},XO=function(t){return t.tagName==="INPUT"},d9=function(t){return XO(t)&&t.type==="hidden"},p9=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},h9=function(t,n){for(var r=0;rsummary:first-of-type"),f=l?t.parentElement:t;if(Ml.call(f,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var d=t;t;){var p=t.parentElement,b=Hh(t);if(p&&!p.shadowRoot&&i(p)===!0)return wA(t);t.assignedSlot?t=t.assignedSlot:!p&&b!==t.ownerDocument?t=b.host:t=p}t=d}if(b9(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return wA(t);return!1},S9=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},WO=function(t){var n=[],r=[];return t.forEach(function(i,c){var l=!!i.scopeParent,f=l?i.scopeParent:i,d=u9(f,l),p=l?WO(i.candidates):f;d===0?l?n.push.apply(n,p):n.push(f):r.push({documentOrder:c,tabIndex:d,item:i,isScope:l,content:p})}),r.sort(f9).reduce(function(i,c){return c.isScope?i.push.apply(i,c.content):i.push(c.content),i},[]).concat(n)},Rm=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Fh([t],n.includeContainer,{filter:hv.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:_9}):r=KO(t,n.includeContainer,hv.bind(null,n)),WO(r)},w9=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Fh([t],n.includeContainer,{filter:pv.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=KO(t,n.includeContainer,pv.bind(null,n)),r},JO=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ml.call(t,jh)===!1?!1:hv(n,t)};const Kf=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function eM(e,t){const n=Rm(e,Kf()),r=n.length;if(r===0)return;const i=Do(Kt(e)),c=n.indexOf(i),l=c===-1?t===1?0:r-1:c+t;return n[l]}function tM(e){return eM(Kt(e).body,1)||e}function nM(e){return eM(Kt(e).body,-1)||e}function wf(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!gt(n,r)}function E9(e){Rm(e,Kf()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function EA(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Yp=null;class x9{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let i=0;i=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const Xp=new x9;class Kr{static create(){return new Kr}static request(t){return Xp.request(t)}static cancel(t){return Xp.cancel(t)}currentId=Yp;request(t){this.cancel(),this.currentId=Xp.request(()=>{this.currentId=Yp,t()})}cancel=()=>{this.currentId!==Yp&&(Xp.cancel(this.currentId),this.currentId=Yp)};disposeEffect=()=>this.cancel}function sM(){const e=vr(Kr.create).current;return rS(e.disposeEffect),e}function Mo(e){return e==null?e:"current"in e?e.current:e}let Nf=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const R9={[Nf.startingStyle]:""},C9={[Nf.endingStyle]:""},lS={transitionStatus(e){return e==="starting"?R9:e==="ending"?C9:null}};function A9(e,t=!1,n=!0){const r=sM();return Ge((i,c=null)=>{r.cancel();function l(){na.flushSync(i)}const f=Mo(e);if(f==null)return;const d=f;if(typeof d.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)i();else{let p=function(){const g=Nf.startingStyle;if(!d.hasAttribute(g)){r.request(b);return}const v=new MutationObserver(()=>{d.hasAttribute(g)||(v.disconnect(),b())});v.observe(d,{attributes:!0,attributeFilter:[g]}),c?.addEventListener("abort",()=>v.disconnect(),{once:!0})},b=function(){Promise.all(d.getAnimations().map(g=>g.finished)).then(()=>{c?.aborted||l()}).catch(()=>{const g=d.getAnimations();if(n){if(c?.aborted)return;l()}else g.length>0&&g.some(v=>v.pending||v.playState!=="finished")&&b()})};if(t){p();return}r.request(b)}})}function uS(e){const{enabled:t=!0,open:n,ref:r,onComplete:i}=e,c=Ge(i),l=A9(r,n,!1);M.useEffect(()=>{if(!t)return;const f=new AbortController;return l(c,f.signal),()=>{f.abort()}},[t,n,c,l])}function T9(e,t=!1,n=!1){const[r,i]=M.useState(e&&t?"idle":void 0),[c,l]=M.useState(e);return e&&!c&&(l(!0),i("starting")),!e&&c&&r!=="ending"&&!n&&i("ending"),!e&&!c&&r==="ending"&&i(void 0),ht(()=>{if(!e&&c&&r!=="ending"&&n){const f=Kr.request(()=>{i("ending")});return()=>{Kr.cancel(f)}}},[e,c,r,n]),ht(()=>{if(!e||t)return;const f=Kr.request(()=>{i(void 0)});return()=>{Kr.cancel(f)}},[t,e]),ht(()=>{if(!e||!t)return;e&&c&&r!=="idle"&&i("starting");const f=Kr.request(()=>{i("idle")});return()=>{Kr.cancel(f)}},[t,e,c,i,r]),M.useMemo(()=>({mounted:c,setMounted:l,transitionStatus:r}),[c,r])}const fS="none",qh="trigger-press",Lr="trigger-hover",bh="trigger-focus",rM="outside-press",URe="item-press",I9="close-press",oM="focus-out",dS="escape-key",jRe="list-navigation",HRe="cancel-open",O9="disabled",iM="imperative-action",VRe="window-resize";function Jt(e,t,n,r){let i=!1,c=!1;const l=Hs;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){c=!0},get isCanceled(){return i},get isPropagationAllowed(){return c},trigger:n,...l}}const aM=M.createContext(void 0);function fc(e){const t=M.useContext(aM);if(e===!1&&t===void 0)throw new Error(Fo(27));return t}let Qa=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Nf.startingStyle]="startingStyle",e[e.endingStyle=Nf.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),Gh=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const M9={[Gh.popupOpen]:""},D9={[Gh.popupOpen]:"",[Gh.pressed]:""},k9={[Qa.open]:""},P9={[Qa.closed]:""},N9={[Qa.anchorHidden]:""},L9={open(e){return e?M9:null}},FRe={open(e){return e?D9:null}},Qf={open(e){return e?k9:P9},anchorHidden(e){return e?N9:null}},z9={...Qf,...lS},B9=M.forwardRef(function(t,n){const{render:r,className:i,forceRender:c=!1,...l}=t,{store:f}=fc(),d=f.useState("open"),p=f.useState("nested"),b=f.useState("mounted"),g=f.useState("transitionStatus");return Sr("div",t,{state:{open:d,transitionStatus:g},ref:[f.context.backdropRef,n],stateAttributesMapping:z9,props:[{role:"presentation",hidden:!b,style:{userSelect:"none",WebkitUserSelect:"none"}},l],enabled:c||!p})}),$9=M.forwardRef(function(t,n){const{render:r,className:i,disabled:c=!1,nativeButton:l=!0,...f}=t,{store:d}=fc(),p=d.useState("open");function b(w){p&&d.setOpen(!1,Jt(I9,w.nativeEvent))}const{getButtonProps:g,buttonRef:v}=wO({disabled:c,native:l});return Sr("button",t,{state:{disabled:c},ref:[n,v],props:[{onClick:b},f,g]})}),U9=M.forwardRef(function(t,n){const{render:r,className:i,id:c,...l}=t,{store:f}=fc(),d=sS(c);return f.useSyncedValueWithCleanup("descriptionElementId",d),Sr("p",t,{ref:n,props:[{id:d},l]})});function Qr(e){const t=vr(j9,e).current;return t.next=e,ht(t.effect),t}function j9(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function H9(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}const V9=M.createContext(null),F9=M.createContext(null),Cm=()=>M.useContext(V9)?.id||null,Yf=e=>{const t=M.useContext(F9);return e??t};function Dl(e){return`data-base-ui-${e}`}function vh(e,t,n){if(n&&!Pf(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r?.[t]}return e?.[t]}const cM=M.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Jr,currentIdRef:{current:null},currentContextRef:{current:null}});function q9(e){const{children:t,delay:n,timeoutMs:r=0}=e,i=M.useRef(n),c=M.useRef(n),l=M.useRef(null),f=M.useRef(null),d=Il();return N.jsx(cM.Provider,{value:M.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:c,currentIdRef:l,timeoutMs:r,currentContextRef:f,timeout:d}),[r,d]),children:t})}function G9(e,t={open:!1}){const n="rootStore"in e?e.rootStore:e,r=n.useState("floatingId"),{open:i}=t,c=M.useContext(cM),{currentIdRef:l,delayRef:f,timeoutMs:d,initialDelayRef:p,currentContextRef:b,hasProvider:g,timeout:v}=c,[S,w]=M.useState(!1);return ht(()=>{function E(){w(!1),b.current?.setIsInstantPhase(!1),l.current=null,b.current=null,f.current=p.current}if(l.current&&!i&&l.current===r){if(w(!1),d){const R=r;return v.start(d,()=>{n.select("open")||l.current&&l.current!==R||E()}),()=>{v.clear()}}E()}},[i,r,l,f,d,p,b,v,n]),ht(()=>{if(!i)return;const E=b.current,R=l.current;v.clear(),b.current={onOpenChange:n.setOpen,setIsInstantPhase:w},l.current=r,f.current={open:0,close:vh(p.current,"close")},R!==null&&R!==r?(w(!0),E?.setIsInstantPhase(!0),E?.onOpenChange(!1,Jt(fS))):(w(!1),E?.setIsInstantPhase(!1))},[i,r,n,l,f,d,p,b,v]),ht(()=>()=>{b.current=null},[b]),M.useMemo(()=>({hasProvider:g,delayRef:f,isInstantPhase:S}),[g,f,S])}const lM={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},uM={...lM,position:"fixed",top:0,left:0},qRe={...lM,position:"absolute"},Zh=M.forwardRef(function(t,n){const[r,i]=M.useState();ht(()=>{jO&&i("button")},[]);const c={tabIndex:0,role:r};return N.jsx("span",{...t,ref:n,style:uM,"aria-hidden":r?void 0:!0,...c,"data-base-ui-focus-guard":""})});let xA=0;function eb(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(xA);const c=()=>e?.focus({preventScroll:n});i?c():xA=requestAnimationFrame(c)}const vl={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function RA(e){return e==="inert"?vl.inert:e==="aria-hidden"?vl["aria-hidden"]:vl.none}let Wp=new WeakSet,Jp={},tb=0;const fM=e=>e&&(e.host||fM(e.parentNode)),Z9=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=fM(n);return e.contains(r)?r:null}).filter(n=>n!=null);function K9(e,t,n,r){const i="data-base-ui-inert",c=r?"inert":n?"aria-hidden":null,l=Z9(t,e),f=new Set,d=new Set(l),p=[];Jp[i]||(Jp[i]=new WeakMap);const b=Jp[i];l.forEach(g),v(t),f.clear();function g(S){!S||f.has(S)||(f.add(S),S.parentNode&&g(S.parentNode))}function v(S){!S||d.has(S)||[].forEach.call(S.children,w=>{if(sa(w)!=="script")if(f.has(w))v(w);else{const E=c?w.getAttribute(c):null,R=E!==null&&E!=="false",C=RA(c),O=(C.get(w)||0)+1,k=(b.get(w)||0)+1;C.set(w,O),b.set(w,k),p.push(w),O===1&&R&&Wp.add(w),k===1&&w.setAttribute(i,""),!R&&c&&w.setAttribute(c,c==="inert"?"":"true")}})}return tb+=1,()=>{p.forEach(S=>{const w=RA(c),R=(w.get(S)||0)-1,C=(b.get(S)||0)-1;w.set(S,R),b.set(S,C),R||(!Wp.has(S)&&c&&S.removeAttribute(c),Wp.delete(S)),C||S.removeAttribute(i)}),tb-=1,tb||(vl.inert=new WeakMap,vl["aria-hidden"]=new WeakMap,vl.none=new WeakMap,Wp=new WeakSet,Jp={})}}function Q9(e,t=!1,n=!1){const r=Kt(e[0]).body;return K9(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const dM=M.createContext(null),pM=()=>M.useContext(dM),Y9=Dl("portal");function hM(e={}){const{ref:t,container:n,componentProps:r=Hs,elementProps:i}=e,c=Zf(),f=pM()?.portalNode,[d,p]=M.useState(null),[b,g]=M.useState(null),v=Ge(R=>{R!==null&&g(R)}),S=M.useRef(null);ht(()=>{if(n===null){S.current&&(S.current=null,g(null),p(null));return}if(c==null)return;const R=(n&&(Jv(n)?n:n.current))??f??document.body;if(R==null){S.current&&(S.current=null,g(null),p(null));return}S.current!==R&&(S.current=R,g(null),p(R))},[n,f,c]);const w=Sr("div",r,{ref:[t,v],props:[{id:c,[Y9]:""},i]});return{portalNode:b,portalSubtree:d&&w?na.createPortal(w,d):null}}const X9=M.forwardRef(function(t,n){const{children:r,container:i,className:c,render:l,renderGuards:f,...d}=t,{portalNode:p,portalSubtree:b}=hM({container:i,ref:n,componentProps:t,elementProps:d}),g=M.useRef(null),v=M.useRef(null),S=M.useRef(null),w=M.useRef(null),[E,R]=M.useState(null),C=E?.modal,O=E?.open,k=typeof f=="boolean"?f:!!E&&!E.modal&&E.open&&!!p;M.useEffect(()=>{if(!p||C)return;function $(j){p&&j.relatedTarget&&wf(j)&&(j.type==="focusin"?EA:E9)(p)}return p.addEventListener("focusin",$,!0),p.addEventListener("focusout",$,!0),()=>{p.removeEventListener("focusin",$,!0),p.removeEventListener("focusout",$,!0)}},[p,C]),M.useEffect(()=>{!p||O||EA(p)},[O,p]);const T=M.useMemo(()=>({beforeOutsideRef:g,afterOutsideRef:v,beforeInsideRef:S,afterInsideRef:w,portalNode:p,setFocusManagerState:R}),[p]);return N.jsxs(M.Fragment,{children:[b,N.jsxs(dM.Provider,{value:T,children:[k&&p&&N.jsx(Zh,{"data-type":"outside",ref:g,onFocus:$=>{if(wf($,p))S.current?.focus();else{const j=E?E.domReference:null;nM(j)?.focus()}}}),k&&p&&N.jsx("span",{"aria-owns":p.id,style:V8}),p&&na.createPortal(r,p),k&&p&&N.jsx(Zh,{"data-type":"outside",ref:v,onFocus:$=>{if(wf($,p))w.current?.focus();else{const j=E?E.domReference:null;tM(j)?.focus(),E?.closeOnFocusOut&&E?.onOpenChange(!1,Jt(oM,$.nativeEvent))}}})]})]})});function W9(e,t){const n=Sn(e.target);return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const CA=20;let Ki=[];function pS(){Ki=Ki.filter(e=>e.deref()?.isConnected)}function J9(e){pS(),e&&sa(e)!=="body"&&(Ki.push(new WeakRef(e)),Ki.length>CA&&(Ki=Ki.slice(-CA)))}function nb(){return pS(),Ki[Ki.length-1]?.deref()}function eH(e){if(!e)return null;const t=Kf();return JO(e,t)?e:Rm(e,t)[0]||e}function tH(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():Gs(e).display!=="none"}function AA(e,t){if(!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;const n=Kf(),i=w9(e,n).filter(l=>{const f=l.getAttribute("data-tabindex")||"";return JO(l,n)||l.hasAttribute("data-tabindex")&&!f.startsWith("-")}),c=e.getAttribute("tabindex");t.current.includes("floating")||i.length===0?c!=="0"&&e.setAttribute("tabindex","0"):(c!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function nH(e){const{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:c=!0,restoreFocus:l=!1,modal:f=!0,closeOnFocusOut:d=!0,openInteractionType:p="",nextFocusableElement:b,previousFocusableElement:g,beforeContentFocusGuardRef:v,externalTree:S}=e,w="rootStore"in t?t.rootStore:t,E=w.useState("open"),R=w.useState("domReferenceElement"),C=w.useState("floatingElement"),{events:O,dataRef:k}=w.context,T=Ge(()=>k.current.floatingContext?.nodeId),$=i===!1,j=bA(R)&&$,H=M.useRef(["content"]),P=Qr(i),Y=Qr(c),ne=Qr(p),re=Yf(S),G=pM(),te=M.useRef(null),ue=M.useRef(null),ye=M.useRef(!1),V=M.useRef(!1),oe=M.useRef(!1),J=M.useRef(-1),ve=M.useRef(""),fe=M.useRef(""),B=M.useRef(null),ee=M.useRef(null),ge=Nh(B,v,G?.beforeInsideRef),be=Nh(ee,G?.afterInsideRef),xe=Il(),_e=Il(),Te=sM(),Fe=G!=null,Se=uv(C),Xe=Ge((Ee=Se)=>Ee?Rm(Ee,Kf()):[]),_t=Ge(Ee=>{const we=Xe(Ee);return H.current.map(()=>we).filter(Boolean).flat()});M.useEffect(()=>{if(r||!f)return;function Ee(qe){qe.key==="Tab"&>(Se,Do(Kt(Se)))&&Xe().length===0&&!j&&Gj(qe)}const we=Kt(Se);return we.addEventListener("keydown",Ee),()=>{we.removeEventListener("keydown",Ee)}},[r,R,Se,f,H,j,Xe,_t]),M.useEffect(()=>{if(r||!E)return;const Ee=Kt(Se);function we(){oe.current=!1}function qe(je){const De=Ss(je),nt=gt(C,De)||gt(R,De)||gt(G?.portalNode,De);oe.current=!nt,fe.current=je.pointerType||"keyboard",De?.closest(`[${j8}]`)&&(V.current=!0)}function Oe(){fe.current="keyboard"}return Ee.addEventListener("pointerdown",qe,!0),Ee.addEventListener("pointerup",we,!0),Ee.addEventListener("pointercancel",we,!0),Ee.addEventListener("keydown",Oe,!0),()=>{Ee.removeEventListener("pointerdown",qe,!0),Ee.removeEventListener("pointerup",we,!0),Ee.removeEventListener("pointercancel",we,!0),Ee.removeEventListener("keydown",Oe,!0)}},[r,C,R,Se,E,G]),M.useEffect(()=>{if(r||!d)return;const Ee=Kt(Se);function we(){V.current=!0,_e.start(0,()=>{V.current=!1})}function qe(Bt){const We=Ss(Bt),Rn=Xe().indexOf(We);Rn!==-1&&(J.current=Rn)}function Oe(Bt){const We=Bt.relatedTarget,Tt=Bt.currentTarget,Rn=Ss(Bt);queueMicrotask(()=>{const It=T(),Tr=w.context.triggerElements,dt=We?.hasAttribute(Dl("focus-guard"))&&[B.current,ee.current,G?.beforeInsideRef.current,G?.afterInsideRef.current,G?.beforeOutsideRef.current,G?.afterOutsideRef.current,Mo(g),Mo(b)].includes(We),$t=!(gt(R,We)||gt(C,We)||gt(We,C)||gt(G?.portalNode,We)||We!=null&&Tr.hasElement(We)||Tr.hasMatchingElement(mt=>gt(mt,We))||dt||re&&(Ja(re.nodesRef.current,It).find(mt=>gt(mt.context?.elements.floating,We)||gt(mt.context?.elements.domReference,We))||vA(re.nodesRef.current,It).find(mt=>[mt.context?.elements.floating,uv(mt.context?.elements.floating)].includes(We)||mt.context?.elements.domReference===We)));if(Tt===R&&Se&&AA(Se,H),l&&Tt!==R&&!tH(Rn)&&Do(Ee)===Ee.body){if(yn(Se)&&(Se.focus(),l==="popup")){Te.request(()=>{Se.focus()});return}const mt=J.current,Os=Xe(),Xs=Os[mt]||Os[Os.length-1]||Se;yn(Xs)&&Xs.focus()}if(k.current.insideReactTree){k.current.insideReactTree=!1;return}(j||!f)&&We&&$t&&!V.current&&(j||We!==nb())&&(ye.current=!0,w.setOpen(!1,Jt(oM,Bt)))})}function je(){oe.current||(k.current.insideReactTree=!0,xe.start(0,()=>{k.current.insideReactTree=!1}))}const De=yn(R)?R:null,nt=[];if(!(!C&&!De))return De&&(De.addEventListener("focusout",Oe),De.addEventListener("pointerdown",we),nt.push(()=>{De.removeEventListener("focusout",Oe),De.removeEventListener("pointerdown",we)})),C&&(C.addEventListener("focusin",qe),C.addEventListener("focusout",Oe),G&&(C.addEventListener("focusout",je,!0),nt.push(()=>{C.removeEventListener("focusout",je,!0)})),nt.push(()=>{C.removeEventListener("focusin",qe),C.removeEventListener("focusout",Oe)})),()=>{nt.forEach(Bt=>{Bt()})}},[r,R,C,Se,f,re,G,w,d,l,Xe,j,T,H,k,xe,_e,Te,b,g]),M.useEffect(()=>{if(r||!C||!E)return;const Ee=Array.from(G?.portalNode?.querySelectorAll(`[${Dl("portal")}]`)||[]),qe=(re?vA(re.nodesRef.current,T()):[]).find(je=>bA(je.context?.elements.domReference||null))?.context?.elements.domReference,Oe=[C,qe,...Ee,te.current,ue.current,B.current,ee.current,G?.beforeOutsideRef.current,G?.afterOutsideRef.current,Mo(g),Mo(b),j?R:null].filter(je=>je!=null);return Q9(Oe,f||j)},[E,r,R,C,f,H,G,j,re,T,b,g]),ht(()=>{if(!E||r||!yn(Se))return;const Ee=Kt(Se),we=Do(Ee);queueMicrotask(()=>{const qe=_t(Se),Oe=P.current,je=typeof Oe=="function"?Oe(ne.current||""):Oe;if(je===void 0||je===!1)return;let De;je===!0||je===null?De=qe[0]||Se:De=Mo(je),De=De||qe[0]||Se,!gt(Se,we)&&eb(De,{preventScroll:De===Se})})},[r,E,Se,$,_t,P,ne]),ht(()=>{if(r||!Se)return;const Ee=Kt(Se),we=Do(Ee);J9(we);function qe(De){if(De.open||(ve.current=W9(De.nativeEvent,fe.current)),De.reason===Lr&&De.nativeEvent.type==="mouseleave"&&(ye.current=!0),De.reason===rM)if(De.nested)ye.current=!1;else if(Kj(De.nativeEvent)||Qj(De.nativeEvent))ye.current=!1;else{let nt=!1;document.createElement("div").focus({get preventScroll(){return nt=!0,!1}}),nt?ye.current=!1:ye.current=!0}}O.on("openchange",qe);const Oe=Ee.createElement("span");Oe.setAttribute("tabindex","-1"),Oe.setAttribute("aria-hidden","true"),Object.assign(Oe.style,uM),Fe&&R&&R.insertAdjacentElement("afterend",Oe);function je(){const De=Y.current;let nt=typeof De=="function"?De(ve.current):De;if(nt===void 0||nt===!1)return null;if(nt===null&&(nt=!0),typeof nt=="boolean"){const We=R||nb();return We&&We.isConnected?We:Oe}const Bt=R||nb()||Oe;return Mo(nt)||Bt}return()=>{O.off("openchange",qe);const De=Do(Ee),nt=gt(C,De)||re&&Ja(re.nodesRef.current,T(),!1).some(We=>gt(We.context?.elements.floating,De)),Bt=je();queueMicrotask(()=>{const We=eH(Bt),Tt=typeof Y.current!="boolean";Y.current&&!ye.current&&yn(We)&&(!(!Tt&&We!==De&&De!==Ee.body)||nt)&&We.focus({preventScroll:!0}),Oe.remove(),ye.current=!1})}},[r,C,Se,Y,k,O,re,Fe,R,T]),ht(()=>{if(!$O||E||!C)return;const Ee=Do(Kt(C));!yn(Ee)||!oS(Ee)||gt(C,Ee)&&Ee.blur()},[E,C]),ht(()=>{if(!(r||!G))return G.setFocusManagerState({modal:f,closeOnFocusOut:d,open:E,onOpenChange:w.setOpen,domReference:R}),()=>{G.setFocusManagerState(null)}},[r,G,f,E,w,d,R]),ht(()=>{if(!(r||!Se))return AA(Se,H),()=>{queueMicrotask(pS)}},[r,Se,H]);const me=!r&&(f?!j:!0)&&(Fe||f);return N.jsxs(M.Fragment,{children:[me&&N.jsx(Zh,{"data-type":"inside",ref:ge,onFocus:Ee=>{if(f){const we=_t();eb(we[we.length-1])}else G?.portalNode&&(ye.current=!1,wf(Ee,G.portalNode)?tM(R)?.focus():Mo(g??G.beforeOutsideRef)?.focus())}}),n,me&&N.jsx(Zh,{"data-type":"inside",ref:be,onFocus:Ee=>{f?eb(_t()[0]):G?.portalNode&&(d&&(ye.current=!0),wf(Ee,G.portalNode)?nM(R)?.focus():Mo(b??G.afterOutsideRef)?.focus())}})]})}function sH(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){const c=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},l=t.axis==="x"||t.axis==="both",f=t.axis==="y"||t.axis==="both",d=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch";let p=c.width,b=c.height,g=c.x,v=c.y;return n==null&&t.x&&l&&(n=c.x-t.x),r==null&&t.y&&f&&(r=c.y-t.y),g-=n||0,v-=r||0,p=0,b=0,!i||d?(p=t.axis==="y"?c.width:0,b=t.axis==="x"?c.height:0,g=l&&t.x!=null?t.x:g,v=f&&t.y!=null?t.y:v):i&&!d&&(b=t.axis==="x"?c.height:b,p=t.axis==="y"?c.width:p),i=!0,{width:p,height:b,x:g,y:v,top:v,right:g+p,bottom:v+b,left:g}}}}function TA(e){return e!=null&&e.clientX!=null}function rH(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),c=n.useState("domReferenceElement"),l=n.context.dataRef,{enabled:f=!0,axis:d="both"}=t,p=M.useRef(!1),b=M.useRef(null),[g,v]=M.useState(),[S,w]=M.useState([]),E=Ge((T,$,j)=>{p.current||l.current.openEvent&&!TA(l.current.openEvent)||n.set("positionReference",sH(j??c,{x:T,y:$,axis:d,dataRef:l,pointerType:g}))}),R=Ge(T=>{r?b.current||w([]):E(T.clientX,T.clientY,T.currentTarget)}),C=Pf(g)?i:r,O=M.useCallback(()=>{if(!C||!f)return;const T=Sn(i);function $(j){const H=Ss(j);gt(i,H)?(T.removeEventListener("mousemove",$),b.current=null):E(j.clientX,j.clientY)}if(!l.current.openEvent||TA(l.current.openEvent)){T.addEventListener("mousemove",$);const j=()=>{T.removeEventListener("mousemove",$),b.current=null};return b.current=j,j}n.set("positionReference",c)},[C,f,i,l,c,n,E]);M.useEffect(()=>O(),[O,S]),M.useEffect(()=>{f&&!i&&(p.current=!1)},[f,i]),M.useEffect(()=>{!f&&r&&(p.current=!0)},[f,r]);const k=M.useMemo(()=>{function T($){v($.pointerType)}return{onPointerDown:T,onPointerEnter:T,onMouseMove:R,onMouseEnter:R}},[R]);return M.useMemo(()=>f?{reference:k,trigger:k}:{},[f,k])}function IA(e,t,n){let{reference:r,floating:i}=e;const c=br(t),l=cS(t),f=aS(l),d=Es(t),p=c==="y",b=r.x+r.width/2-i.width/2,g=r.y+r.height/2-i.height/2,v=r[f]/2-i[f]/2;let S;switch(d){case"top":S={x:b,y:r.y-i.height};break;case"bottom":S={x:b,y:r.y+r.height};break;case"right":S={x:r.x+r.width,y:g};break;case"left":S={x:r.x-i.width,y:g};break;default:S={x:r.x,y:r.y}}switch(ia(t)){case"start":S[l]-=v*(n&&p?-1:1);break;case"end":S[l]+=v*(n&&p?-1:1);break}return S}async function oH(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:c,rects:l,elements:f,strategy:d}=e,{boundary:p="clippingAncestors",rootBoundary:b="viewport",elementContext:g="floating",altBoundary:v=!1,padding:S=0}=jo(t,e),w=GO(S),R=f[v?g==="floating"?"reference":"floating":g],C=Uh(await c.getClippingRect({element:(n=await(c.isElement==null?void 0:c.isElement(R)))==null||n?R:R.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:p,rootBoundary:b,strategy:d})),O=g==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,k=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),T=await(c.isElement==null?void 0:c.isElement(k))?await(c.getScale==null?void 0:c.getScale(k))||{x:1,y:1}:{x:1,y:1},$=Uh(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:O,offsetParent:k,strategy:d}):O);return{top:(C.top-$.top+w.top)/T.y,bottom:($.bottom-C.bottom+w.bottom)/T.y,left:(C.left-$.left+w.left)/T.x,right:($.right-C.right+w.right)/T.x}}const iH=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:c=[],platform:l}=n,f=c.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let p=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:b,y:g}=IA(p,r,d),v=r,S={},w=0;for(let R=0;Rue<=0)){var re,G;const ue=(((re=c.flip)==null?void 0:re.index)||0)+1,ye=H[ue];if(ye&&(!(g==="alignment"?O!==br(ye):!1)||ne.every(J=>br(J.placement)===O?J.overflows[0]>0:!0)))return{data:{index:ue,overflows:ne},reset:{placement:ye}};let V=(G=ne.filter(oe=>oe.overflows[0]<=0).sort((oe,J)=>oe.overflows[1]-J.overflows[1])[0])==null?void 0:G.placement;if(!V)switch(S){case"bestFit":{var te;const oe=(te=ne.filter(J=>{if(j){const ve=br(J.placement);return ve===O||ve==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(ve=>ve>0).reduce((ve,fe)=>ve+fe,0)]).sort((J,ve)=>J[1]-ve[1])[0])==null?void 0:te[0];oe&&(V=oe);break}case"initialPlacement":V=f;break}if(i!==V)return{reset:{placement:V}}}return{}}}};function OA(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function MA(e){return Xj.some(t=>e[t]>=0)}const cH=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...c}=jo(e,t);switch(i){case"referenceHidden":{const l=await r.detectOverflow(t,{...c,elementContext:"reference"}),f=OA(l,n.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:MA(f)}}}case"escaped":{const l=await r.detectOverflow(t,{...c,altBoundary:!0}),f=OA(l,n.floating);return{data:{escapedOffsets:f,escaped:MA(f)}}}default:return{}}}}},mM=new Set(["left","top"]);async function lH(e,t){const{placement:n,platform:r,elements:i}=e,c=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=Es(n),f=ia(n),d=br(n)==="y",p=mM.has(l)?-1:1,b=c&&d?-1:1,g=jo(t,e);let{mainAxis:v,crossAxis:S,alignmentAxis:w}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof w=="number"&&(S=f==="end"?w*-1:w),d?{x:S*b,y:v*p}:{x:v*p,y:S*b}}const uH=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:c,placement:l,middlewareData:f}=t,d=await lH(t,e);return l===((n=f.offset)==null?void 0:n.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:c+d.y,data:{...d,placement:l}}}}},fH=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:c}=t,{mainAxis:l=!0,crossAxis:f=!1,limiter:d={fn:C=>{let{x:O,y:k}=C;return{x:O,y:k}}},...p}=jo(e,t),b={x:n,y:r},g=await c.detectOverflow(t,p),v=br(Es(i)),S=iS(v);let w=b[S],E=b[v];if(l){const C=S==="y"?"top":"left",O=S==="y"?"bottom":"right",k=w+g[C],T=w-g[O];w=fv(k,w,T)}if(f){const C=v==="y"?"top":"left",O=v==="y"?"bottom":"right",k=E+g[C],T=E-g[O];E=fv(k,E,T)}const R=d.fn({...t,[S]:w,[v]:E});return{...R,data:{x:R.x-n,y:R.y-r,enabled:{[S]:l,[v]:f}}}}}},dH=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:c,middlewareData:l}=t,{offset:f=0,mainAxis:d=!0,crossAxis:p=!0}=jo(e,t),b={x:n,y:r},g=br(i),v=iS(g);let S=b[v],w=b[g];const E=jo(f,t),R=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(d){const k=v==="y"?"height":"width",T=c.reference[v]-c.floating[k]+R.mainAxis,$=c.reference[v]+c.reference[k]-R.mainAxis;S$&&(S=$)}if(p){var C,O;const k=v==="y"?"width":"height",T=mM.has(Es(i)),$=c.reference[g]-c.floating[k]+(T&&((C=l.offset)==null?void 0:C[g])||0)+(T?0:R.crossAxis),j=c.reference[g]+c.reference[k]+(T?0:((O=l.offset)==null?void 0:O[g])||0)-(T?R.crossAxis:0);w<$?w=$:w>j&&(w=j)}return{[v]:S,[g]:w}}}},pH=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:c,platform:l,elements:f}=t,{apply:d=()=>{},...p}=jo(e,t),b=await l.detectOverflow(t,p),g=Es(i),v=ia(i),S=br(i)==="y",{width:w,height:E}=c.floating;let R,C;g==="top"||g==="bottom"?(R=g,C=v===(await(l.isRTL==null?void 0:l.isRTL(f.floating))?"start":"end")?"left":"right"):(C=g,R=v==="end"?"top":"bottom");const O=E-b.top-b.bottom,k=w-b.left-b.right,T=Ol(E-b[R],O),$=Ol(w-b[C],k),j=!t.middlewareData.shift;let H=T,P=$;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(H=O),j&&!v){const ne=js(b.left,0),re=js(b.right,0),G=js(b.top,0),te=js(b.bottom,0);S?P=w-2*(ne!==0||re!==0?ne+re:js(b.left,b.right)):H=E-2*(G!==0||te!==0?G+te:js(b.top,b.bottom))}await d({...t,availableWidth:P,availableHeight:H});const Y=await l.getDimensions(f.floating);return w!==Y.width||E!==Y.height?{reset:{rects:!0}}:{}}}};function gM(e){const t=Gs(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=yn(e),c=i?e.offsetWidth:n,l=i?e.offsetHeight:r,f=Bh(n)!==c||Bh(r)!==l;return f&&(n=c,r=l),{width:n,height:r,$:f}}function hS(e){return Et(e)?e:e.contextElement}function Sl(e){const t=hS(e);if(!yn(t))return Yr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:c}=gM(t);let l=(c?Bh(n.width):n.width)/r,f=(c?Bh(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!f||!Number.isFinite(f))&&(f=1),{x:l,y:f}}const hH=Yr(0);function yM(e){const t=Sn(e);return!Em()||!t.visualViewport?hH:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mH(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Sn(e)?!1:t}function rc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),c=hS(e);let l=Yr(1);t&&(r?Et(r)&&(l=Sl(r)):l=Sl(e));const f=mH(c,n,r)?yM(c):Yr(0);let d=(i.left+f.x)/l.x,p=(i.top+f.y)/l.y,b=i.width/l.x,g=i.height/l.y;if(c){const v=Sn(c),S=r&&Et(r)?Sn(r):r;let w=v,E=iv(w);for(;E&&r&&S!==w;){const R=Sl(E),C=E.getBoundingClientRect(),O=Gs(E),k=C.left+(E.clientLeft+parseFloat(O.paddingLeft))*R.x,T=C.top+(E.clientTop+parseFloat(O.paddingTop))*R.y;d*=R.x,p*=R.y,b*=R.x,g*=R.y,d+=k,p+=T,w=Sn(E),E=iv(w)}}return Uh({width:b,height:g,x:d,y:p})}function Am(e,t){const n=xm(e).scrollLeft;return t?t.left+n:rc(eo(e)).left+n}function bM(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Am(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function gH(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const c=i==="fixed",l=eo(r),f=t?wm(t.floating):!1;if(r===l||f&&c)return n;let d={scrollLeft:0,scrollTop:0},p=Yr(1);const b=Yr(0),g=yn(r);if((g||!g&&!c)&&((sa(r)!=="body"||ra(l))&&(d=xm(r)),yn(r))){const S=rc(r);p=Sl(r),b.x=S.x+r.clientLeft,b.y=S.y+r.clientTop}const v=l&&!g&&!c?bM(l,d):Yr(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-d.scrollLeft*p.x+b.x+v.x,y:n.y*p.y-d.scrollTop*p.y+b.y+v.y}}function yH(e){return Array.from(e.getClientRects())}function bH(e){const t=eo(e),n=xm(e),r=e.ownerDocument.body,i=js(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),c=js(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Am(e);const f=-n.scrollTop;return Gs(r).direction==="rtl"&&(l+=js(t.clientWidth,r.clientWidth)-i),{width:i,height:c,x:l,y:f}}const DA=25;function vH(e,t){const n=Sn(e),r=eo(e),i=n.visualViewport;let c=r.clientWidth,l=r.clientHeight,f=0,d=0;if(i){c=i.width,l=i.height;const b=Em();(!b||b&&t==="fixed")&&(f=i.offsetLeft,d=i.offsetTop)}const p=Am(r);if(p<=0){const b=r.ownerDocument,g=b.body,v=getComputedStyle(g),S=b.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,w=Math.abs(r.clientWidth-g.clientWidth-S);w<=DA&&(c-=w)}else p<=DA&&(c+=p);return{width:c,height:l,x:f,y:d}}const SH=new Set(["absolute","fixed"]);function _H(e,t){const n=rc(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,c=yn(e)?Sl(e):Yr(1),l=e.clientWidth*c.x,f=e.clientHeight*c.y,d=i*c.x,p=r*c.y;return{width:l,height:f,x:d,y:p}}function kA(e,t,n){let r;if(t==="viewport")r=vH(e,n);else if(t==="document")r=bH(eo(e));else if(Et(t))r=_H(t,n);else{const i=yM(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Uh(r)}function vM(e,t){const n=Uo(e);return n===t||!Et(n)||Bo(n)?!1:Gs(n).position==="fixed"||vM(n,t)}function wH(e,t){const n=t.get(e);if(n)return n;let r=Wi(e,[],!1).filter(f=>Et(f)&&sa(f)!=="body"),i=null;const c=Gs(e).position==="fixed";let l=c?Uo(e):e;for(;Et(l)&&!Bo(l);){const f=Gs(l),d=eS(l);!d&&f.position==="fixed"&&(i=null),(c?!d&&!i:!d&&f.position==="static"&&!!i&&SH.has(i.position)||ra(l)&&!d&&vM(e,l))?r=r.filter(b=>b!==l):i=f,l=Uo(l)}return t.set(e,r),r}function EH(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?wm(t)?[]:wH(t,this._c):[].concat(n),r],f=l[0],d=l.reduce((p,b)=>{const g=kA(t,b,i);return p.top=js(g.top,p.top),p.right=Ol(g.right,p.right),p.bottom=Ol(g.bottom,p.bottom),p.left=js(g.left,p.left),p},kA(t,f,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function xH(e){const{width:t,height:n}=gM(e);return{width:t,height:n}}function RH(e,t,n){const r=yn(t),i=eo(t),c=n==="fixed",l=rc(e,!0,c,t);let f={scrollLeft:0,scrollTop:0};const d=Yr(0);function p(){d.x=Am(i)}if(r||!r&&!c)if((sa(t)!=="body"||ra(i))&&(f=xm(t)),r){const S=rc(t,!0,c,t);d.x=S.x+t.clientLeft,d.y=S.y+t.clientTop}else i&&p();c&&!r&&i&&p();const b=i&&!r&&!c?bM(i,f):Yr(0),g=l.left+f.scrollLeft-d.x-b.x,v=l.top+f.scrollTop-d.y-b.y;return{x:g,y:v,width:l.width,height:l.height}}function sb(e){return Gs(e).position==="static"}function PA(e,t){if(!yn(e)||Gs(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return eo(e)===n&&(n=n.ownerDocument.body),n}function SM(e,t){const n=Sn(e);if(wm(e))return n;if(!yn(e)){let i=Uo(e);for(;i&&!Bo(i);){if(Et(i)&&!sb(i))return i;i=Uo(i)}return n}let r=PA(e,t);for(;r&&T5(r)&&sb(r);)r=PA(r,t);return r&&Bo(r)&&sb(r)&&!eS(r)?n:r||k5(e)||n}const CH=async function(e){const t=this.getOffsetParent||SM,n=this.getDimensions,r=await n(e.floating);return{reference:RH(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function AH(e){return Gs(e).direction==="rtl"}const TH={convertOffsetParentRelativeRectToViewportRelativeRect:gH,getDocumentElement:eo,getClippingRect:EH,getOffsetParent:SM,getElementRects:CH,getClientRects:yH,getDimensions:xH,getScale:Sl,isElement:Et,isRTL:AH};function _M(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function IH(e,t){let n=null,r;const i=eo(e);function c(){var f;clearTimeout(r),(f=n)==null||f.disconnect(),n=null}function l(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),c();const p=e.getBoundingClientRect(),{left:b,top:g,width:v,height:S}=p;if(f||t(),!v||!S)return;const w=Qp(g),E=Qp(i.clientWidth-(b+v)),R=Qp(i.clientHeight-(g+S)),C=Qp(b),k={rootMargin:-w+"px "+-E+"px "+-R+"px "+-C+"px",threshold:js(0,Ol(1,d))||1};let T=!0;function $(j){const H=j[0].intersectionRatio;if(H!==d){if(!T)return l();H?l(!1,H):r=setTimeout(()=>{l(!1,1e-7)},1e3)}H===1&&!_M(p,e.getBoundingClientRect())&&l(),T=!1}try{n=new IntersectionObserver($,{...k,root:i.ownerDocument})}catch{n=new IntersectionObserver($,k)}n.observe(e)}return l(!0),c}function NA(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:c=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=hS(e),b=i||c?[...p?Wi(p):[],...Wi(t)]:[];b.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),c&&C.addEventListener("resize",n)});const g=p&&f?IH(p,n):null;let v=-1,S=null;l&&(S=new ResizeObserver(C=>{let[O]=C;O&&O.target===p&&S&&(S.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var k;(k=S)==null||k.observe(t)})),n()}),p&&!d&&S.observe(p),S.observe(t));let w,E=d?rc(e):null;d&&R();function R(){const C=rc(e);E&&!_M(E,C)&&n(),E=C,w=requestAnimationFrame(R)}return n(),()=>{var C;b.forEach(O=>{i&&O.removeEventListener("scroll",n),c&&O.removeEventListener("resize",n)}),g?.(),(C=S)==null||C.disconnect(),S=null,d&&cancelAnimationFrame(w)}}const OH=uH,MH=fH,DH=aH,kH=pH,PH=cH,NH=dH,LH=(e,t,n)=>{const r=new Map,i={platform:TH,...n},c={...i.platform,_c:r};return iH(e,t,{...i,platform:c})};var zH=typeof document<"u",BH=function(){},Sh=zH?M.useLayoutEffect:BH;function Kh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Kh(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const c=i[r];if(!(c==="_owner"&&e.$$typeof)&&!Kh(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}function wM(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function LA(e,t){const n=wM(e);return Math.round(t*n)/n}function rb(e){const t=M.useRef(e);return Sh(()=>{t.current=e}),t}function $H(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:c,floating:l}={},transform:f=!0,whileElementsMounted:d,open:p}=e,[b,g]=M.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,S]=M.useState(r);Kh(v,r)||S(r);const[w,E]=M.useState(null),[R,C]=M.useState(null),O=M.useCallback(J=>{J!==j.current&&(j.current=J,E(J))},[]),k=M.useCallback(J=>{J!==H.current&&(H.current=J,C(J))},[]),T=c||w,$=l||R,j=M.useRef(null),H=M.useRef(null),P=M.useRef(b),Y=d!=null,ne=rb(d),re=rb(i),G=rb(p),te=M.useCallback(()=>{if(!j.current||!H.current)return;const J={placement:t,strategy:n,middleware:v};re.current&&(J.platform=re.current),LH(j.current,H.current,J).then(ve=>{const fe={...ve,isPositioned:G.current!==!1};ue.current&&!Kh(P.current,fe)&&(P.current=fe,na.flushSync(()=>{g(fe)}))})},[v,t,n,re,G]);Sh(()=>{p===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,g(J=>({...J,isPositioned:!1})))},[p]);const ue=M.useRef(!1);Sh(()=>(ue.current=!0,()=>{ue.current=!1}),[]),Sh(()=>{if(T&&(j.current=T),$&&(H.current=$),T&&$){if(ne.current)return ne.current(T,$,te);te()}},[T,$,te,ne,Y]);const ye=M.useMemo(()=>({reference:j,floating:H,setReference:O,setFloating:k}),[O,k]),V=M.useMemo(()=>({reference:T,floating:$}),[T,$]),oe=M.useMemo(()=>{const J={position:n,left:0,top:0};if(!V.floating)return J;const ve=LA(V.floating,b.x),fe=LA(V.floating,b.y);return f?{...J,transform:"translate("+ve+"px, "+fe+"px)",...wM(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ve,top:fe}},[n,f,V.floating,b.x,b.y]);return M.useMemo(()=>({...b,update:te,refs:ye,elements:V,floatingStyles:oe}),[b,te,ye,V,oe])}const UH=(e,t)=>({...OH(e),options:[e,t]}),jH=(e,t)=>({...MH(e),options:[e,t]}),HH=(e,t)=>({...NH(e),options:[e,t]}),VH=(e,t)=>({...DH(e),options:[e,t]}),FH=(e,t)=>({...kH(e),options:[e,t]}),qH=(e,t)=>({...PH(e),options:[e,t]}),GH={intentional:"onClick",sloppy:"onPointerDown"};function ZH(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function EM(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),c=n.useState("referenceElement"),l=n.useState("domReferenceElement"),{onOpenChange:f,dataRef:d}=n.context,{enabled:p=!0,escapeKey:b=!0,outsidePress:g=!0,outsidePressEvent:v="sloppy",referencePress:S=!1,referencePressEvent:w="sloppy",ancestorScroll:E=!1,bubbles:R,externalTree:C}=t,O=Yf(C),k=Ge(typeof g=="function"?g:()=>!1),T=typeof g=="function"?k:g,$=M.useRef(!1),{escapeKey:j,outsidePress:H}=ZH(R),P=M.useRef(null),Y=Il(),ne=Il(),re=Ge(()=>{ne.clear(),d.current.insideReactTree=!1}),G=M.useRef(!1),te=M.useRef(""),ue=Ge(me=>{te.current=me.pointerType}),ye=Ge(()=>{const me=te.current,Ee=me==="pen"||!me?"mouse":me,we=typeof v=="function"?v():v;return typeof we=="string"?we:we[Ee]}),V=Ge(me=>{if(!r||!p||!b||me.key!=="Escape"||G.current)return;const Ee=d.current.floatingContext?.nodeId,we=O?Ja(O.nodesRef.current,Ee):[];if(!j&&we.length>0){let je=!0;if(we.forEach(De=>{De.context?.open&&!De.context.dataRef.current.__escapeKeyBubbles&&(je=!1)}),!je)return}const qe=Zj(me)?me.nativeEvent:me,Oe=Jt(dS,qe);n.setOpen(!1,Oe),!j&&!Oe.isPropagationAllowed&&me.stopPropagation()}),oe=Ge(me=>{const Ee=ye();return Ee==="intentional"&&me.type!=="click"||Ee==="sloppy"&&me.type==="click"}),J=Ge(()=>{d.current.insideReactTree=!0,ne.start(0,re)}),ve=Ge((me,Ee=!1)=>{if(oe(me)){re();return}if(d.current.insideReactTree){re();return}if(ye()==="intentional"&&Ee||typeof T=="function"&&!T(me))return;const we=Ss(me),qe=`[${Dl("inert")}]`,Oe=Kt(n.select("floatingElement")).querySelectorAll(qe),je=n.context.triggerElements;if(we&&(je.hasElement(we)||je.hasMatchingElement(Tt=>gt(Tt,we))))return;let De=Et(we)?we:null;for(;De&&!Bo(De);){const Tt=Uo(De);if(Bo(Tt)||!Et(Tt))break;De=Tt}if(Oe.length&&Et(we)&&!Fj(we)&&!gt(we,n.select("floatingElement"))&&Array.from(Oe).every(Tt=>!gt(De,Tt)))return;if(yn(we)&&!("touches"in me)){const Tt=Bo(we),Rn=Gs(we),It=/auto|scroll/,Tr=Tt||It.test(Rn.overflowX),dt=Tt||It.test(Rn.overflowY),$t=Tr&&we.clientWidth>0&&we.scrollWidth>we.clientWidth,mt=dt&&we.clientHeight>0&&we.scrollHeight>we.clientHeight,Os=Rn.direction==="rtl",Xs=mt&&(Os?me.offsetX<=we.offsetWidth-we.clientWidth:me.offsetX>we.clientWidth),ao=$t&&me.offsetY>we.clientHeight;if(Xs||ao)return}const nt=d.current.floatingContext?.nodeId,Bt=O&&Ja(O.nodesRef.current,nt).some(Tt=>kr(me,Tt.context?.elements.floating));if(kr(me,n.select("floatingElement"))||kr(me,n.select("domReferenceElement"))||Bt)return;const We=O?Ja(O.nodesRef.current,nt):[];if(We.length>0){let Tt=!0;if(We.forEach(Rn=>{Rn.context?.open&&!Rn.context.dataRef.current.__outsidePressBubbles&&(Tt=!1)}),!Tt)return}n.setOpen(!1,Jt(rM,me)),re()}),fe=Ge(me=>{ye()!=="sloppy"||me.pointerType==="touch"||!n.select("open")||!p||kr(me,n.select("floatingElement"))||kr(me,n.select("domReferenceElement"))||ve(me)}),B=Ge(me=>{if(ye()!=="sloppy"||!n.select("open")||!p||kr(me,n.select("floatingElement"))||kr(me,n.select("domReferenceElement")))return;const Ee=me.touches[0];Ee&&(P.current={startTime:Date.now(),startX:Ee.clientX,startY:Ee.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},Y.start(1e3,()=>{P.current&&(P.current.dismissOnTouchEnd=!1,P.current.dismissOnMouseDown=!1)}))}),ee=Ge(me=>{const Ee=Ss(me);function we(){B(me),Ee?.removeEventListener(me.type,we)}Ee?.addEventListener(me.type,we)}),ge=Ge(me=>{const Ee=$.current;if($.current=!1,Y.clear(),me.type==="mousedown"&&P.current&&!P.current.dismissOnMouseDown)return;const we=Ss(me);function qe(){me.type==="pointerdown"?fe(me):ve(me,Ee),we?.removeEventListener(me.type,qe)}we?.addEventListener(me.type,qe)}),be=Ge(me=>{if(ye()!=="sloppy"||!P.current||kr(me,n.select("floatingElement"))||kr(me,n.select("domReferenceElement")))return;const Ee=me.touches[0];if(!Ee)return;const we=Math.abs(Ee.clientX-P.current.startX),qe=Math.abs(Ee.clientY-P.current.startY),Oe=Math.sqrt(we*we+qe*qe);Oe>5&&(P.current.dismissOnTouchEnd=!0),Oe>10&&(ve(me),Y.clear(),P.current=null)}),xe=Ge(me=>{const Ee=Ss(me);function we(){be(me),Ee?.removeEventListener(me.type,we)}Ee?.addEventListener(me.type,we)}),_e=Ge(me=>{ye()!=="sloppy"||!P.current||kr(me,n.select("floatingElement"))||kr(me,n.select("domReferenceElement"))||(P.current.dismissOnTouchEnd&&ve(me),Y.clear(),P.current=null)}),Te=Ge(me=>{const Ee=Ss(me);function we(){_e(me),Ee?.removeEventListener(me.type,we)}Ee?.addEventListener(me.type,we)});M.useEffect(()=>{if(!r||!p)return;d.current.__escapeKeyBubbles=j,d.current.__outsidePressBubbles=H;const me=new Jr;function Ee(De){n.setOpen(!1,Jt(fS,De))}function we(){me.clear(),G.current=!0}function qe(){me.start(Em()?5:0,()=>{G.current=!1})}const Oe=Kt(i);Oe.addEventListener("pointerdown",ue,!0),b&&(Oe.addEventListener("keydown",V),Oe.addEventListener("compositionstart",we),Oe.addEventListener("compositionend",qe)),T&&(Oe.addEventListener("click",ge,!0),Oe.addEventListener("pointerdown",ge,!0),Oe.addEventListener("touchstart",ee,!0),Oe.addEventListener("touchmove",xe,!0),Oe.addEventListener("touchend",Te,!0),Oe.addEventListener("mousedown",ge,!0));let je=[];return E&&(Et(l)&&(je=Wi(l)),Et(i)&&(je=je.concat(Wi(i))),!Et(c)&&c&&c.contextElement&&(je=je.concat(Wi(c.contextElement)))),je=je.filter(De=>De!==Oe.defaultView?.visualViewport),je.forEach(De=>{De.addEventListener("scroll",Ee,{passive:!0})}),()=>{Oe.removeEventListener("pointerdown",ue,!0),b&&(Oe.removeEventListener("keydown",V),Oe.removeEventListener("compositionstart",we),Oe.removeEventListener("compositionend",qe)),T&&(Oe.removeEventListener("click",ge,!0),Oe.removeEventListener("pointerdown",ge,!0),Oe.removeEventListener("touchstart",ee,!0),Oe.removeEventListener("touchmove",xe,!0),Oe.removeEventListener("touchend",Te,!0),Oe.removeEventListener("mousedown",ge,!0)),je.forEach(De=>{De.removeEventListener("scroll",Ee)}),me.clear(),$.current=!1}},[d,i,c,l,b,T,r,f,E,p,j,H,V,ve,ge,fe,ee,xe,Te,ue,n]),M.useEffect(re,[T,re]);const Fe=M.useMemo(()=>({onKeyDown:V,...S&&{[GH[w]]:me=>{n.setOpen(!1,Jt(qh,me.nativeEvent))},...w!=="intentional"&&{onClick(me){n.setOpen(!1,Jt(qh,me.nativeEvent))}}}}),[V,n,S,w]),Se=Ge(me=>{const Ee=Ss(me.nativeEvent);!gt(n.select("floatingElement"),Ee)||me.button!==0||($.current=!0)}),Xe=Ge(me=>{!r||!p||me.button!==0||($.current=!0)}),_t=M.useMemo(()=>({onKeyDown:V,onPointerDown:Se,onMouseDown:Se,onMouseUp:Se,onClickCapture:J,onMouseDownCapture(me){J(),Xe(me)},onPointerDownCapture(me){J(),Xe(me)},onMouseUpCapture:J,onTouchEndCapture:J,onTouchMoveCapture:J}),[V,Se,J,Xe]);return M.useMemo(()=>p?{reference:Fe,floating:_t,trigger:Fe}:{},[p,Fe,_t])}var Qh=Symbol("NOT_FOUND");function KH(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function QH(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function YH(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var zA=e=>Array.isArray(e)?e:[e];function XH(e){const t=Array.isArray(e[0])?e[0]:e;return YH(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function WH(e,t){const n=[],{length:r}=e;for(let i=0;it(f,p.key));if(d>-1){const p=n[d];return d>0&&(n.splice(d,1),n.unshift(p)),p.value}return Qh}function i(f,d){r(f)===Qh&&(n.unshift({key:f,value:d}),n.length>e&&n.pop())}function c(){return n}function l(){n=[]}return{get:r,put:i,getEntries:c,clear:l}}var tV=(e,t)=>e===t;function nV(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:i}=n;for(let c=0;cc(S.value,b));v&&(b=v.value,f!==0&&f--)}d.put(arguments,b)}return b}return p.clearCache=()=>{d.clear(),p.resetResultsCount()},p.resultsCount=()=>f,p.resetResultsCount=()=>{f=0},p}var rV=class{constructor(e){this.value=e}deref(){return this.value}},oV=typeof WeakRef<"u"?WeakRef:rV,iV=0,BA=1;function eh(){return{s:iV,v:void 0,o:null,p:null}}function xM(e,t={}){let n=eh();const{resultEqualityCheck:r}=t;let i,c=0;function l(){let f=n;const{length:d}=arguments;for(let g=0,v=d;g{n=eh(),l.resetResultsCount()},l.resultsCount=()=>c,l.resetResultsCount=()=>{c=0},l}function RM(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let c=0,l=0,f,d={},p=i.pop();typeof p=="object"&&(d=p,p=i.pop()),KH(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const b={...n,...d},{memoize:g,memoizeOptions:v=[],argsMemoize:S=xM,argsMemoizeOptions:w=[]}=b,E=zA(v),R=zA(w),C=XH(i),O=g(function(){return c++,p.apply(null,arguments)},...E),k=S(function(){l++;const $=WH(C,arguments);return f=O.apply(null,$),f},...R);return Object.assign(k,{resultFunc:p,memoizedResultFunc:O,dependencies:C,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>f,recomputations:()=>c,resetRecomputations:()=>{c=0},memoize:g,argsMemoize:S})};return Object.assign(r,{withTypes:()=>r}),r}var aV=RM(xM),cV=Object.assign((e,t=aV)=>{QH(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(c=>e[c]);return t(r,(...c)=>c.reduce((l,f,d)=>(l[n[d]]=f,l),{}))},{withTypes:()=>cV});RM({memoize:sV,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const it=(e,t,n,r,i,c,...l)=>{if(l.length>0)throw new Error(Fo(1));let f;if(e)f=e;else throw new Error("Missing arguments");return f};var CM=sO();const mv=[];let gv;function lV(){return gv}function uV(e){mv.push(e)}function AM(e){const t=(n,r)=>{const i=vr(dV).current;let c;try{gv=i;for(const l of mv)l.before(i);c=e(n,r);for(const l of mv)l.after(i);i.didInitialize=!0}finally{gv=void 0}return c};return t.displayName=e.displayName||e.name,t}function fV(e){return M.forwardRef(AM(e))}function dV(){return{didInitialize:!1}}const pV=Wv(19),hV=pV?gV:yV;function TM(e,t,n,r,i){return hV(e,t,n,r,i)}function mV(e,t,n,r,i){const c=M.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return CM.useSyncExternalStore(e.subscribe,c,c)}uV({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{const n=new Set;for(const i of e.syncHooks)n.add(i.store);const r=[];for(const i of n)r.push(i.subscribe(t));return()=>{for(const i of r)i()}}),CM.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function gV(e,t,n,r,i){const c=lV();if(!c)return mV(e,t,n,r,i);const l=c.syncIndex;c.syncIndex+=1;let f;return c.didInitialize?(f=c.syncHooks[l],(f.store!==e||f.selector!==t||!Object.is(f.a1,n)||!Object.is(f.a2,r)||!Object.is(f.a3,i))&&(f.store!==e&&(c.didChangeStore=!0),f.store=e,f.selector=t,f.a1=n,f.a2=r,f.a3=i,f.didChange=!0)):(f={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},c.syncHooks.push(f)),f.value}function yV(e,t,n,r,i){return rO.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,c=>t(c,n,r,i))}class bV{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,r,i){return TM(this,t,n,r,i)}}class mS extends bV{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}useSyncedValue(t,n){M.useDebugValue(t),ht(()=>{this.state[t]!==n&&this.set(t,n)},[t,n])}useSyncedValueWithCleanup(t,n){const r=this;ht(()=>(r.state[t]!==n&&r.set(t,n),()=>{r.set(t,void 0)}),[r,t,n])}useSyncedValues(t){const n=this,r=Object.values(t);ht(()=>{n.update(t)},[n,...r])}useControlledProp(t,n){M.useDebugValue(t);const r=n!==void 0;ht(()=>{r&&!Object.is(this.state[t],n)&&super.setState({...this.state,[t]:n})},[t,n,r])}select(t,n,r,i){const c=this.selectors[t];return c(this.state,n,r,i)}useState(t,n,r,i){return M.useDebugValue(t),TM(this,this.selectors[t],n,r,i)}useContextCallback(t,n){M.useDebugValue(t);const r=Ge(n??mO);this.context[t]=r}useStateSetter(t){const n=M.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t=="function"?r=t:r=this.selectors[t];let i=r(this.state);return n(i,i,this),this.subscribe(c=>{const l=r(c);if(!Object.is(i,l)){const f=i;i=l,n(l,f,this)}})}}const vV={open:it(e=>e.open),domReferenceElement:it(e=>e.domReferenceElement),referenceElement:it(e=>e.positionReference??e.referenceElement),floatingElement:it(e=>e.floatingElement),floatingId:it(e=>e.floatingId)};class gS extends mS{constructor(t){const{nested:n,noEmit:r,onOpenChange:i,triggerElements:c,...l}=t;super({...l,positionReference:l.referenceElement,domReferenceElement:l.referenceElement},{onOpenChange:i,dataRef:{current:{}},events:H9(),nested:n,noEmit:r,triggerElements:c},vV)}setOpen=(t,n)=>{if((!t||!this.state.open||Yj(n.event))&&(this.context.dataRef.current.openEvent=t?n.event:void 0),!this.context.noEmit){const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)}this.context.onOpenChange?.(t,n)}}function SV(e,t){const n=M.useRef(null),r=M.useRef(null);return M.useCallback(i=>{if(e!==void 0){if(n.current!==null){const c=n.current,l=r.current,f=t.context.triggerElements.getById(c);l&&f===l&&t.context.triggerElements.delete(c),n.current=null,r.current=null}i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i))}},[t,e])}function _V(e,t,n,r){const i=n.useState("isMountedByTrigger",e),c=SV(e,n),l=Ge(f=>{if(c(f),!f||!n.select("open"))return;const d=n.select("activeTriggerId");if(d===e){n.update({activeTriggerElement:f,...r});return}d==null&&n.update({activeTriggerId:e,activeTriggerElement:f,...r})});return ht(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:l,isMountedByThisTrigger:i}}function IM(e){const t=e.useState("open");ht(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const n=e.context.triggerElements.entries().next();if(!n.done){const[r,i]=n.value;e.update({activeTriggerId:r,activeTriggerElement:i})}}},[t,e])}function OM(e,t,n){const{mounted:r,setMounted:i,transitionStatus:c}=T9(e);t.useSyncedValues({mounted:r,transitionStatus:c});const l=Ge(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),f=t.useState("preventUnmountingOnClose");return uS({enabled:!f,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:c}}class Tm{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elementsSet.delete(r),this.elementsSet.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elementsSet.delete(n),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(const n of this.elementsSet)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function wV(){return new gS({open:!1,floatingElement:null,referenceElement:null,triggerElements:new Tm,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function MM(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:"idle",floatingRootContext:wV(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Hs,inactiveTriggerProps:Hs,popupProps:Hs}}const th=it(e=>e.triggerIdProp??e.activeTriggerId),DM={open:it(e=>e.openProp??e.open),mounted:it(e=>e.mounted),transitionStatus:it(e=>e.transitionStatus),floatingRootContext:it(e=>e.floatingRootContext),preventUnmountingOnClose:it(e=>e.preventUnmountingOnClose),payload:it(e=>e.payload),activeTriggerId:th,activeTriggerElement:it(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:it((e,t)=>t!==void 0&&th(e)===t),isOpenedByTrigger:it((e,t)=>t!==void 0&&th(e)===t&&e.open),isMountedByTrigger:it((e,t)=>t!==void 0&&th(e)===t&&e.mounted),triggerProps:it((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:it(e=>e.popupProps),popupElement:it(e=>e.popupElement),positionerElement:it(e=>e.positionerElement)};function EV(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Zf(),c=Cm()!=null,l=vr(()=>new gS({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Tm,floatingId:i,nested:c,noEmit:!1})).current;return ht(()=>{const f={open:t,floatingId:i};r.reference!==void 0&&(f.referenceElement=r.reference,f.domReferenceElement=Et(r.reference)?r.reference:null),r.floating!==void 0&&(f.floatingElement=r.floating),l.update(f)},[t,i,r.reference,r.floating,l]),l.context.onOpenChange=n,l.context.nested=c,l.context.noEmit=!1,l}function xV(e={}){const{nodeId:t,externalTree:n}=e,r=EV(e),i=e.rootContext||r,c={reference:i.useState("referenceElement"),floating:i.useState("floatingElement"),domReference:i.useState("domReferenceElement")},[l,f]=M.useState(null),d=M.useRef(null),p=Yf(n);ht(()=>{c.domReference&&(d.current=c.domReference)},[c.domReference]);const b=$H({...e,elements:{...c,...l&&{reference:l}}}),g=M.useCallback(H=>{const P=Et(H)?{getBoundingClientRect:()=>H.getBoundingClientRect(),getClientRects:()=>H.getClientRects(),contextElement:H}:H;f(P),b.refs.setReference(P)},[b.refs]),[v,S]=M.useState(null),[w,E]=M.useState(null);i.useSyncedValue("referenceElement",v),i.useSyncedValue("domReferenceElement",Et(v)?v:null),i.useSyncedValue("floatingElement",w);const R=M.useCallback(H=>{(Et(H)||H===null)&&(d.current=H,S(H)),(Et(b.refs.reference.current)||b.refs.reference.current===null||H!==null&&!Et(H))&&b.refs.setReference(H)},[b.refs,S]),C=M.useCallback(H=>{E(H),b.refs.setFloating(H)},[b.refs]),O=M.useMemo(()=>({...b.refs,setReference:R,setFloating:C,setPositionReference:g,domReference:d}),[b.refs,R,C,g]),k=M.useMemo(()=>({...b.elements,domReference:c.domReference}),[b.elements,c.domReference]),T=i.useState("open"),$=i.useState("floatingId"),j=M.useMemo(()=>({...b,dataRef:i.context.dataRef,open:T,onOpenChange:i.setOpen,events:i.context.events,floatingId:$,refs:O,elements:k,nodeId:t,rootStore:i}),[b,O,k,t,i,T,$]);return ht(()=>{i.context.dataRef.current.floatingContext=j;const H=p?.nodesRef.current.find(P=>P.id===t);H&&(H.context=j)}),M.useMemo(()=>({...b,context:j,refs:O,elements:k,rootStore:i}),[b,O,k,j,i])}function kM(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:i}=e,c=Zf(),l=Cm()!=null,f=t.useState("open"),d=t.useState("activeTriggerElement"),p=t.useState(r?"popupElement":"positionerElement"),b=t.context.triggerElements,g=vr(()=>new gS({open:f,referenceElement:d,floatingElement:p,triggerElements:b,onOpenChange:i,floatingId:c,nested:l,noEmit:n})).current;return ht(()=>{const v={open:f,floatingId:c,referenceElement:d,floatingElement:p};Et(d)&&(v.domReferenceElement=d),g.state.positionReference===g.state.referenceElement&&(v.positionReference=d),g.update(v)},[f,c,d,p,g]),g.context.onOpenChange=i,g.context.nested=l,g.context.noEmit=n,g}const ob=Uj&&jO;function RV(e,t={}){const n="rootStore"in e?e.rootStore:e,{events:r,dataRef:i}=n.context,{enabled:c=!0,delay:l}=t,f=M.useRef(!1),d=M.useRef(null),p=Il(),b=M.useRef(!0);M.useEffect(()=>{const v=n.select("domReferenceElement");if(!c)return;const S=Sn(v);function w(){const C=n.select("domReferenceElement");!n.select("open")&&yn(C)&&C===Do(Kt(C))&&(f.current=!0)}function E(){b.current=!0}function R(){b.current=!1}return S.addEventListener("blur",w),ob&&(S.addEventListener("keydown",E,!0),S.addEventListener("pointerdown",R,!0)),()=>{S.removeEventListener("blur",w),ob&&(S.removeEventListener("keydown",E,!0),S.removeEventListener("pointerdown",R,!0))}},[n,c]),M.useEffect(()=>{if(!c)return;function v(S){if(S.reason===qh||S.reason===dS){const w=n.select("domReferenceElement");Et(w)&&(d.current=w,f.current=!0)}}return r.on("openchange",v),()=>{r.off("openchange",v)}},[r,c,n]);const g=M.useMemo(()=>({onMouseLeave(){f.current=!1,d.current=null},onFocus(v){const S=v.currentTarget;if(f.current){if(d.current===S)return;f.current=!1,d.current=null}const w=Ss(v.nativeEvent);if(Et(w)){if(ob&&!v.relatedTarget){if(!b.current&&!oS(w))return}else if(!qj(w))return}const E=zh(v.relatedTarget,n.context.triggerElements),{nativeEvent:R,currentTarget:C}=v,O=typeof l=="function"?l():l;if(n.select("open")&&E||O===0||O===void 0){n.setOpen(!0,Jt(bh,R,C));return}p.start(O,()=>{f.current||n.setOpen(!0,Jt(bh,R,C))})},onBlur(v){f.current=!1,d.current=null;const S=v.relatedTarget,w=v.nativeEvent,E=Et(S)&&S.hasAttribute(Dl("focus-guard"))&&S.getAttribute("data-type")==="outside";p.start(0,()=>{const R=n.select("domReferenceElement"),C=Do(R?R.ownerDocument:document);!S&&C===R||gt(i.current.floatingContext?.refs.floating.current,C)||gt(R,C)||E||zh(S??C,n.context.triggerElements)||n.setOpen(!1,Jt(bh,w))})}}),[i,n,p,l]);return M.useMemo(()=>c?{reference:g,trigger:g}:{},[c,g])}const yv=Dl("safe-polygon"),CV=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${qO}`;function AV(e){return e?!!e.closest(CV):!1}class yS{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.unbindMouseMove=()=>{},this.restTimeoutPending=!1,this.openChangeTimeout=new Jr,this.restTimeout=new Jr,this.handleCloseOptions=void 0}static create(){return new yS}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}function PM(e){const t=vr(yS.create).current,n=e.context.dataRef.current;return n.hoverInteractionState||(n.hoverInteractionState=t),rS(n.hoverInteractionState.disposeEffect),n.hoverInteractionState}const TV=new Set(["click","mousedown"]);function IV(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),c=n.useState("domReferenceElement"),{dataRef:l}=n.context,{enabled:f=!0,closeDelay:d=0}=t,p=PM(n),b=Yf(),g=Cm(),v=Ge(()=>p.interactedInside?!0:l.current.openEvent?TV.has(l.current.openEvent.type):!1),S=Ge(()=>{const k=l.current.openEvent?.type;return k?.includes("mouse")&&k!=="mousedown"}),w=Ge(k=>zh(k,n.context.triggerElements)),E=M.useCallback((k,T=!0)=>{const $=OV(d,p.pointerType);$&&!p.handler?p.openChangeTimeout.start($,()=>n.setOpen(!1,Jt(Lr,k))):T&&(p.openChangeTimeout.clear(),n.setOpen(!1,Jt(Lr,k)))},[d,n,p]),R=Ge(()=>{p.unbindMouseMove(),p.handler=void 0}),C=Ge(()=>{if(p.performedPointerEventsMutation){const k=Kt(i).body;k.style.pointerEvents="",k.removeAttribute(yv),p.performedPointerEventsMutation=!1}}),O=Ge(k=>{const T=Ss(k);if(!AV(T)){p.interactedInside=!1;return}p.interactedInside=!0});ht(()=>{r||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,R(),C())},[r,p,R,C]),M.useEffect(()=>()=>{R()},[R]),M.useEffect(()=>C,[C]),ht(()=>{if(f&&r&&p.handleCloseOptions?.blockPointerEvents&&S()&&Et(c)&&i){p.performedPointerEventsMutation=!0;const k=Kt(i).body;k.setAttribute(yv,"");const T=c,$=i,j=b?.nodesRef.current.find(H=>H.id===g)?.context?.elements.floating;return j&&(j.style.pointerEvents=""),k.style.pointerEvents="none",T.style.pointerEvents="auto",$.style.pointerEvents="auto",()=>{k.style.pointerEvents="",T.style.pointerEvents="",$.style.pointerEvents=""}}},[f,r,c,i,p,S,b,g]),M.useEffect(()=>{if(!f)return;function k(H){v()||!l.current.floatingContext||!n.select("open")||w(H.relatedTarget)||(C(),R(),v()||E(H))}function T(H){p.openChangeTimeout.clear(),C(),p.handler?.(H),R()}function $(H){v()||E(H,!1)}const j=i;return j&&(j.addEventListener("mouseleave",k),j.addEventListener("mouseenter",T),j.addEventListener("mouseleave",$),j.addEventListener("pointerdown",O,!0)),()=>{j&&(j.removeEventListener("mouseleave",k),j.removeEventListener("mouseenter",T),j.removeEventListener("mouseleave",$),j.removeEventListener("pointerdown",O,!0))}},[f,i,n,l,v,w,E,C,R,O,p])}function OV(e,t){return t&&!Pf(t)?0:typeof e=="function"?e():e}function ib(e){return typeof e=="function"?e():e}const MV={current:null};function DV(e,t={}){const n="rootStore"in e?e.rootStore:e,{dataRef:r,events:i}=n.context,{enabled:c=!0,delay:l=0,handleClose:f=null,mouseOnly:d=!1,restMs:p=0,move:b=!0,triggerElementRef:g=MV,externalTree:v,isActiveTrigger:S=!0}=t,w=Yf(v),E=PM(n),R=Qr(f),C=Qr(l),O=Qr(p),k=Qr(c);S&&(E.handleCloseOptions=R.current?.__options);const T=Ge(()=>E.interactedInside?!0:r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1),$=Ge(ne=>zh(ne,n.context.triggerElements)),j=M.useCallback((ne,re=!0)=>{const G=vh(C.current,"close",E.pointerType);G&&!E.handler?E.openChangeTimeout.start(G,()=>n.setOpen(!1,Jt(Lr,ne))):re&&(E.openChangeTimeout.clear(),n.setOpen(!1,Jt(Lr,ne)))},[C,n,E]),H=Ge(()=>{E.unbindMouseMove(),E.handler=void 0}),P=Ge(()=>{if(E.performedPointerEventsMutation){const ne=Kt(n.select("domReferenceElement")).body;ne.style.pointerEvents="",ne.removeAttribute(yv),E.performedPointerEventsMutation=!1}});M.useEffect(()=>{if(!c)return;function ne(re){re.open||(E.openChangeTimeout.clear(),E.restTimeout.clear(),E.blockMouseMove=!0,E.restTimeoutPending=!1)}return i.on("openchange",ne),()=>{i.off("openchange",ne)}},[c,i,E]);const Y=Ge(ne=>{if(T()||!r.current.floatingContext||$(ne.relatedTarget))return;const re=g.current;R.current?.({...r.current.floatingContext,tree:w,x:ne.clientX,y:ne.clientY,onClose(){P(),H(),!T()&&re===n.select("domReferenceElement")&&j(ne)}})(ne)});return M.useEffect(()=>{if(!c)return;const ne=g.current??(S?n.select("domReferenceElement"):null);if(!Et(ne))return;function re(ue){if(E.openChangeTimeout.clear(),E.blockMouseMove=!1,d&&!Pf(E.pointerType)||ib(O.current)>0&&!vh(C.current,"open"))return;const ye=vh(C.current,"open",E.pointerType),V=n.select("domReferenceElement"),oe=n.context.triggerElements,J=(oe.hasElement(ue.target)||oe.hasMatchingElement(ee=>gt(ee,ue.target)))&&(!V||!gt(V,ue.target)),ve=ue.currentTarget??null,fe=n.select("open"),B=!fe||J;J&&fe?n.setOpen(!0,Jt(Lr,ue,ve)):ye?E.openChangeTimeout.start(ye,()=>{B&&n.setOpen(!0,Jt(Lr,ue,ve))}):B&&n.setOpen(!0,Jt(Lr,ue,ve))}function G(ue){if(T()){P();return}E.unbindMouseMove();const ye=n.select("domReferenceElement"),V=Kt(ye);if(E.restTimeout.clear(),E.restTimeoutPending=!1,$(ue.relatedTarget))return;if(R.current&&r.current.floatingContext){n.select("open")||E.openChangeTimeout.clear();const J=g.current;E.handler=R.current({...r.current.floatingContext,tree:w,x:ue.clientX,y:ue.clientY,onClose(){P(),H(),k.current&&!T()&&J===n.select("domReferenceElement")&&j(ue,!0)}});const ve=E.handler;ve(ue),V.addEventListener("mousemove",ve),E.unbindMouseMove=()=>{V.removeEventListener("mousemove",ve)};return}(E.pointerType!=="touch"||!gt(n.select("floatingElement"),ue.relatedTarget))&&j(ue)}function te(ue){Y(ue)}return n.select("open")&&ne.addEventListener("mouseleave",te),b&&ne.addEventListener("mousemove",re,{once:!0}),ne.addEventListener("mouseenter",re),ne.addEventListener("mouseleave",G),()=>{ne.removeEventListener("mouseleave",te),b&&ne.removeEventListener("mousemove",re),ne.removeEventListener("mouseenter",re),ne.removeEventListener("mouseleave",G)}},[H,P,r,C,j,n,c,R,Y,E,S,T,$,d,b,O,g,w,k]),M.useMemo(()=>{if(!c)return;function ne(re){E.pointerType=re.pointerType}return{onPointerDown:ne,onPointerEnter:ne,onMouseMove(re){const{nativeEvent:G}=re,te=re.currentTarget,ue=n.select("domReferenceElement"),ye=n.context.triggerElements,V=n.select("open"),oe=(ye.hasElement(re.target)||ye.hasMatchingElement(ve=>gt(ve,re.target)))&&(!ue||!gt(ue,re.target));if(d&&!Pf(E.pointerType)||V&&!oe||ib(O.current)===0||!oe&&E.restTimeoutPending&&re.movementX**2+re.movementY**2<2)return;E.restTimeout.clear();function J(){if(E.restTimeoutPending=!1,T())return;const ve=n.select("open");!E.blockMouseMove&&(!ve||oe)&&n.setOpen(!0,Jt(Lr,G,te))}E.pointerType==="touch"?na.flushSync(()=>{J()}):oe&&V?J():(E.restTimeoutPending=!0,E.restTimeout.start(ib(O.current),J))}}},[c,E,T,d,n,O])}function NM(e=[]){const t=e.map(p=>p?.reference),n=e.map(p=>p?.floating),r=e.map(p=>p?.item),i=e.map(p=>p?.trigger),c=M.useCallback(p=>nh(p,e,"reference"),t),l=M.useCallback(p=>nh(p,e,"floating"),n),f=M.useCallback(p=>nh(p,e,"item"),r),d=M.useCallback(p=>nh(p,e,"trigger"),i);return M.useMemo(()=>({getReferenceProps:c,getFloatingProps:l,getItemProps:f,getTriggerProps:d}),[c,l,f,d])}function nh(e,t,n){const r=new Map,i=n==="item",c={};n==="floating"&&(c.tabIndex=-1,c[lv]="");for(const l in e)i&&e&&(l===VO||l===FO)||(c[l]=e[l]);for(let l=0;lr.get(i)?.map(f=>f(...l)).find(f=>f!==void 0))):e[i]=c)}}const kV=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function PV(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingId"),c=n.useState("domReferenceElement"),l=n.useState("floatingElement"),{role:f="dialog"}=t,d=Zf(),p=c?.id||d,b=M.useMemo(()=>uv(l)?.id||i,[l,i]),g=kV.get(f)??f,S=Cm()!=null,w=M.useMemo(()=>g==="tooltip"||f==="label"?Hs:{"aria-haspopup":g==="alertdialog"?"dialog":g,"aria-expanded":"false",...g==="listbox"&&{role:"combobox"},...g==="menu"&&S&&{role:"menuitem"},...f==="select"&&{"aria-autocomplete":"none"},...f==="combobox"&&{"aria-autocomplete":"list"}},[g,S,f]),E=M.useMemo(()=>g==="tooltip"||f==="label"?{[`aria-${f==="label"?"labelledby":"describedby"}`]:r?b:void 0}:{...w,"aria-expanded":r?"true":"false","aria-controls":r?b:void 0,...g==="menu"&&{id:p}},[g,b,r,p,f,w]),R=M.useMemo(()=>{const O={id:b,...g&&{role:g}};return g==="tooltip"||f==="label"?O:{...O,...g==="menu"&&{"aria-labelledby":p}}},[g,b,p,f]),C=M.useCallback(({active:O,selected:k})=>{const T={role:"option",...O&&{id:`${b}-fui-option`}};switch(f){case"select":case"combobox":return{...T,"aria-selected":k}}return{}},[b,f]);return M.useMemo(()=>({reference:E,floating:R,item:C,trigger:w}),[E,R,w,C])}function UA(e,t){const[n,r]=e;let i=!1;const c=t.length;for(let l=0,f=c-1;l=r!=g>=r&&n<=(b-d)*(r-p)/(g-p)+d&&(i=!i)}return i}function NV(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function LV(e={}){const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i=new Jr;let c=!1,l=null,f=null,d=typeof performance<"u"?performance.now():0;function p(g,v){const S=performance.now(),w=S-d;if(l===null||f===null||w===0)return l=g,f=v,d=S,null;const E=g-l,R=v-f,O=Math.sqrt(E*E+R*R)/w;return l=g,f=v,d=S,O}const b=({x:g,y:v,placement:S,elements:w,onClose:E,nodeId:R,tree:C})=>function(k){function T(){i.clear(),E()}if(i.clear(),!w.domReference||!w.floating||S==null||g==null||v==null)return;const{clientX:$,clientY:j}=k,H=[$,j],P=Ss(k),Y=k.type==="mouseleave",ne=gt(w.floating,P),re=gt(w.domReference,P),G=w.domReference.getBoundingClientRect(),te=w.floating.getBoundingClientRect(),ue=S.split("-")[0],ye=g>te.right-te.width/2,V=v>te.bottom-te.height/2,oe=NV(H,G),J=te.width>G.width,ve=te.height>G.height,fe=(J?G:te).left,B=(J?G:te).right,ee=(ve?G:te).top,ge=(ve?G:te).bottom;if(ne&&(c=!0,!Y))return;if(re&&(c=!1),re&&!Y){c=!0;return}if(Y&&Et(k.relatedTarget)&>(w.floating,k.relatedTarget)||C&&Ja(C.nodesRef.current,R).some(({context:_e})=>_e?.open))return;if(ue==="top"&&v>=G.bottom-1||ue==="bottom"&&v<=G.top+1||ue==="left"&&g>=G.right-1||ue==="right"&&g<=G.left+1)return T();let be=[];switch(ue){case"top":be=[[fe,G.top+1],[fe,te.bottom-1],[B,te.bottom-1],[B,G.top+1]];break;case"bottom":be=[[fe,te.top+1],[fe,G.bottom-1],[B,G.bottom-1],[B,te.top+1]];break;case"left":be=[[te.right-1,ge],[te.right-1,ee],[G.left+1,ee],[G.left+1,ge]];break;case"right":be=[[G.right-1,ge],[G.right-1,ee],[te.left+1,ee],[te.left+1,ge]];break}function xe([_e,Te]){switch(ue){case"top":{const Fe=[J?_e+t/2:ye?_e+t*4:_e-t*4,Te+t+1],Se=[J?_e-t/2:ye?_e+t*4:_e-t*4,Te+t+1],Xe=[[te.left,ye||J?te.bottom-t:te.top],[te.right,ye?J?te.bottom-t:te.top:te.bottom-t]];return[Fe,Se,...Xe]}case"bottom":{const Fe=[J?_e+t/2:ye?_e+t*4:_e-t*4,Te-t],Se=[J?_e-t/2:ye?_e+t*4:_e-t*4,Te-t],Xe=[[te.left,ye||J?te.top+t:te.bottom],[te.right,ye?J?te.top+t:te.bottom:te.top+t]];return[Fe,Se,...Xe]}case"left":{const Fe=[_e+t+1,ve?Te+t/2:V?Te+t*4:Te-t*4],Se=[_e+t+1,ve?Te-t/2:V?Te+t*4:Te-t*4];return[...[[V||ve?te.right-t:te.left,te.top],[V?ve?te.right-t:te.left:te.right-t,te.bottom]],Fe,Se]}case"right":{const Fe=[_e-t,ve?Te+t/2:V?Te+t*4:Te-t*4],Se=[_e-t,ve?Te-t/2:V?Te+t*4:Te-t*4],Xe=[[V||ve?te.left+t:te.right,te.top],[V?ve?te.left+t:te.right:te.left+t,te.bottom]];return[Fe,Se,...Xe]}default:return[]}}if(!UA([$,j],be)){if(c&&!oe)return T();if(!Y&&r){const _e=p(k.clientX,k.clientY);if(_e!==null&&_e<.1)return T()}UA([$,j],xe([g,v]))?!c&&r&&i.start(40,T):T()}};return b.__options={blockPointerEvents:n},b}let zV=(function(e){return e.nestedDialogs="--nested-dialogs",e})({}),BV=(function(e){return e[e.open=Qa.open]="open",e[e.closed=Qa.closed]="closed",e[e.startingStyle=Qa.startingStyle]="startingStyle",e[e.endingStyle=Qa.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});const LM=M.createContext(void 0);function $V(){const e=M.useContext(LM);if(e===void 0)throw new Error(Fo(26));return e}const zM="ArrowUp",BM="ArrowDown",$M="ArrowLeft",UM="ArrowRight",jM="Home",HM="End",UV=new Set([$M,UM]),jV=new Set([zM,BM]),HV=new Set([...UV,...jV]);[...HV];const VV=new Set([zM,BM,$M,UM,jM,HM]),FV={...Qf,...lS,nestedDialogOpen(e){return e?{[BV.nestedDialogOpen]:""}:null}},qV=M.forwardRef(function(t,n){const{className:r,finalFocus:i,initialFocus:c,render:l,...f}=t,{store:d}=fc(),p=d.useState("descriptionElementId"),b=d.useState("disablePointerDismissal"),g=d.useState("floatingRootContext"),v=d.useState("popupProps"),S=d.useState("modal"),w=d.useState("mounted"),E=d.useState("nested"),R=d.useState("nestedOpenDialogCount"),C=d.useState("open"),O=d.useState("openMethod"),k=d.useState("titleElementId"),T=d.useState("transitionStatus"),$=d.useState("role");$V(),uS({open:C,ref:d.context.popupRef,onComplete(){C&&d.context.onOpenChangeComplete?.(!0)}});function j(re){return re==="touch"?d.context.popupRef.current:!0}const H=c===void 0?j:c,P=R>0,ne=Sr("div",t,{state:{open:C,nested:E,transitionStatus:T,nestedDialogOpen:P},props:[v,{"aria-labelledby":k??void 0,"aria-describedby":p??void 0,role:$,tabIndex:-1,hidden:!w,onKeyDown(re){VV.has(re.key)&&re.stopPropagation()},style:{[zV.nestedDialogs]:R}},f],ref:[n,d.context.popupRef,d.useStateSetter("popupElement")],stateAttributesMapping:FV});return N.jsx(nH,{context:g,openInteractionType:O,disabled:!w,closeOnFocusOut:!b,initialFocus:H,returnFocus:i,modal:S!==!1,restoreFocus:"popup",children:ne})});function GV(e){return Wv(19)?e:e?"true":void 0}const ZV=M.forwardRef(function(t,n){const{cutout:r,...i}=t;let c;if(r){const l=r?.getBoundingClientRect();c=`polygon( 0% 0%, 100% 0%, 100% 100%, @@ -18,64 +18,64 @@ Error generating stack: `+u.message+` ${l.right}px ${l.bottom}px, ${l.right}px ${l.top}px, ${l.left}px ${l.top}px - )`}return U.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:c}})}),aH=O.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t,{store:c}=Va(),l=c.useState("mounted"),f=c.useState("modal"),d=c.useState("open");return l||r?U.jsx(FO.Provider,{value:r,children:U.jsxs(uj,{ref:n,...i,children:[l&&f===!0&&U.jsx(iH,{ref:c.context.internalBackdropRef,inert:oH(!d)}),t.children]})}):null});function QO(e){const t=O.useRef(!0);t.current&&(t.current=!1,e())}let ZC={},YC={},QC="";function cH(e){if(typeof document>"u")return!1;const t=Ht(e);return mn(t).innerWidth-t.documentElement.clientWidth>0}function lH(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=Ht(e),r=n.documentElement,i=n.body,c=Ui(r)?r:i,l=c.style.overflowY,f=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",c.style.overflowY="scroll";const d=c.offsetWidth;c.style.overflowY="hidden";const h=c.offsetWidth;return c.style.overflowY=l,r.style.scrollbarGutter=f,d===h}function uH(e){const t=Ht(e),n=t.documentElement,r=t.body,i=Ui(n)?n:r,c={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(i.style,c)}}function fH(e){const t=Ht(e),n=t.documentElement,r=t.body,i=mn(n);let c=0,l=0,f=!1;const d=kr.create();if(G2&&(i.visualViewport?.scale??1)!==1)return()=>{};function h(){const b=i.getComputedStyle(n),v=i.getComputedStyle(r),R=(b.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";c=n.scrollTop,l=n.scrollLeft,ZC={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},QC=n.style.scrollBehavior,YC={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const C=n.scrollHeight>n.clientHeight,I=n.scrollWidth>n.clientWidth,D=b.overflowY==="scroll"||v.overflowY==="scroll",A=b.overflowX==="scroll"||v.overflowX==="scroll",B=Math.max(0,i.innerWidth-r.clientWidth),j=Math.max(0,i.innerHeight-r.clientHeight),H=parseFloat(v.marginTop)+parseFloat(v.marginBottom),k=parseFloat(v.marginLeft)+parseFloat(v.marginRight),Q=Ui(n)?n:r;if(f=lH(e),f){n.style.scrollbarGutter=R,Q.style.overflowY="hidden",Q.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:R,overflowY:"hidden",overflowX:"hidden"}),(C||D)&&(n.style.overflowY="scroll"),(I||A)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:H||j?`calc(100dvh - ${H+j}px)`:"100dvh",width:k||B?`calc(100vw - ${k+B}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=c,r.scrollLeft=l,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function y(){Object.assign(n.style,ZC),Object.assign(r.style,YC),f||(n.scrollTop=c,n.scrollLeft=l,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=QC)}function g(){y(),d.request(h)}return h(),i.addEventListener("resize",g),()=>{d.cancel(),y(),typeof i.removeEventListener=="function"&&i.removeEventListener("resize",g)}}class dH{lockCount=0;restore=null;timeoutLock=Br.create();timeoutUnlock=Br.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const r=Ht(t).documentElement,i=mn(r).getComputedStyle(r).overflowY;if(i==="hidden"||i==="clip"){this.restore=w2;return}const c=K2||!cH(t);this.restore=c?uH(t):fH(t)}}const hH=new dH;function pH(e=!0,t=null){pt(()=>{if(e)return hH.acquire(t)},[e,t])}function mH(e){const t=O.useRef(""),n=O.useCallback(i=>{i.defaultPrevented||(t.current=i.pointerType,e(i,i.pointerType))},[e]);return{onClick:O.useCallback(i=>{if(i.detail===0){e(i,"keyboard");return}"pointerType"in i?e(i,i.pointerType):e(i,t.current),t.current=""},[e]),onPointerDown:n}}function gH(e){const[t,n]=O.useState(null),r=qe((f,d)=>{e||n(d||(K2?"touch":""))}),i=O.useCallback(()=>{n(null)},[]),{onClick:c,onPointerDown:l}=mH(r);return O.useMemo(()=>({openMethod:t,reset:i,triggerProps:{onClick:c,onPointerDown:l}}),[t,i,c,l])}function yH(e){const{store:t,parentContext:n,actionsRef:r}=e,i=t.useState("open"),c=t.useState("disablePointerDismissal"),l=t.useState("modal"),f=t.useState("popupElement"),{openMethod:d,triggerProps:h,reset:y}=gH(i);zO(t);const{forceUnmount:g}=LO(i,t,()=>{y()}),b=qe(ne=>{const re=Kt(ne);return re.preventUnmountOnClose=()=>{t.set("preventUnmountingOnClose",!0)},re}),v=O.useCallback(()=>{t.setOpen(!1,b(hO))},[t,b]);O.useImperativeHandle(r,()=>({unmount:g,close:v}),[g,v]);const _=UO({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[x,R]=O.useState(0),C=x===0,I=K9(_),D=OO(_,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:l==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(ne){if(!t.context.outsidePressEnabledRef.current||"button"in ne&&ne.button!==0||"touches"in ne&&ne.touches.length!==1)return!1;const re=bs(ne);if(C&&!c){const G=re;return l&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===G||t.context.backdropRef.current===G||gt(G,f)&&!G?.hasAttribute("data-base-ui-portal"):!0}return!1},escapeKey:C});pH(i&&l===!0,f);const{getReferenceProps:A,getFloatingProps:B,getTriggerProps:j}=HO([I,D]);t.useContextCallback("onNestedDialogOpen",ne=>{R(ne+1)}),t.useContextCallback("onNestedDialogClose",()=>{R(0)}),O.useEffect(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(x),n?.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[i,n,x]);const H=O.useMemo(()=>A(h),[A,h]),k=O.useMemo(()=>j(h),[j,h]),Q=O.useMemo(()=>B(),[B]);t.useSyncedValues({openMethod:d,activeTriggerProps:H,inactiveTriggerProps:k,popupProps:Q,floatingRootContext:_,nestedOpenDialogCount:x})}const bH={...$O,modal:ot(e=>e.modal),nested:ot(e=>e.nested),nestedOpenDialogCount:ot(e=>e.nestedOpenDialogCount),disablePointerDismissal:ot(e=>e.disablePointerDismissal),openMethod:ot(e=>e.openMethod),descriptionElementId:ot(e=>e.descriptionElementId),titleElementId:ot(e=>e.titleElementId),viewportElement:ot(e=>e.viewportElement),role:ot(e=>e.role)};class vH extends zv{constructor(t){super(SH(t),{popupRef:O.createRef(),backdropRef:O.createRef(),internalBackdropRef:O.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new Zp,onOpenChange:void 0,onOpenChangeComplete:void 0},bH)}setOpen=(t,n)=>{if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!t&&n.trigger==null&&this.state.activeTriggerId!=null&&(n.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(t,n),n.isCanceled)return;const r={open:t,nativeEvent:n.event,reason:n.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit("openchange",r);const i={open:t},c=n.trigger?.id??null;(c||t)&&(i.activeTriggerId=c,i.activeTriggerElement=n.trigger??null),this.update(i)}}function SH(e={}){return{...BO(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...e}}function _H(e){const{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:c,disablePointerDismissal:l=!1,modal:f=!0,actionsRef:d,handle:h,triggerId:y,defaultTriggerId:g=null}=e,b=Va(!0),v=!!b,_=lr(()=>h?.store??new vH({open:r,openProp:n,activeTriggerId:g,triggerIdProp:y,modal:f,disablePointerDismissal:l,nested:v})).current;QO(()=>{n===void 0&&_.state.open===!1&&r===!0&&_.update({open:!0,activeTriggerId:g})}),_.useControlledProp("openProp",n),_.useControlledProp("triggerIdProp",y),_.useSyncedValues({disablePointerDismissal:l,nested:v,modal:f}),_.useContextCallback("onOpenChange",i),_.useContextCallback("onOpenChangeComplete",c);const x=_.useState("payload");yH({store:_,actionsRef:d,parentContext:b?.store.context});const R=O.useMemo(()=>({store:_}),[_]);return U.jsx(pO.Provider,{value:R,children:typeof t=="function"?t({payload:x}):t})}const wH=O.forwardRef(function(t,n){const{render:r,className:i,id:c,...l}=t,{store:f}=Va(),d=Ev(c);return f.useSyncedValueWithCleanup("titleElementId",d),ur("h2",t,{ref:n,props:[{id:d},l]})});function xH(e){const t=Tt.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=U.jsx(_H,{"data-slot":"sheet",...n}),t[2]=n,t[3]=r):r=t[3],r}function EH(e){const t=Tt.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=U.jsx(aH,{"data-slot":"sheet-portal",...n}),t[2]=n,t[3]=r):r=t[3],r}function RH(e){const t=Tt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=sn("data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 z-50 bg-black/80 duration-100 data-closed:animate-out data-open:animate-in data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=U.jsx(X8,{className:i,"data-slot":"sheet-overlay",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function CH(e){const t=Tt.c(17);let n,r,i,c,l;t[0]!==e?({className:r,children:n,side:c,showCloseButton:l,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5]);const f=c===void 0?"right":c,d=l===void 0?!0:l;let h;t[6]===Symbol.for("react.memo_cache_sentinel")?(h=U.jsx(RH,{}),t[6]=h):h=t[6];let y;t[7]!==r?(y=sn("data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col bg-background bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=top]:inset-x-0 data-[side=left]:inset-y-0 data-[side=right]:inset-y-0 data-[side=top]:top-0 data-[side=right]:right-0 data-[side=bottom]:bottom-0 data-[side=left]:left-0 data-[side=bottom]:h-auto data-[side=left]:h-full data-[side=right]:h-full data-[side=top]:h-auto data-[side=left]:w-3/4 data-[side=right]:w-3/4 data-closed:animate-out data-open:animate-in data-[side=bottom]:border-t data-[side=left]:border-r data-[side=top]:border-b data-[side=right]:border-l data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",r),t[7]=r,t[8]=y):y=t[8];let g;t[9]!==d?(g=d&&U.jsxs(W8,{"data-slot":"sheet-close",render:U.jsx(cl,{className:"absolute top-4 right-4",size:"icon-sm",variant:"ghost"}),children:[U.jsx(BU,{}),U.jsx("span",{className:"sr-only",children:"Close"})]}),t[9]=d,t[10]=g):g=t[10];let b;return t[11]!==n||t[12]!==i||t[13]!==f||t[14]!==y||t[15]!==g?(b=U.jsxs(EH,{children:[h,U.jsxs(rH,{className:y,"data-side":f,"data-slot":"sheet-content",...i,children:[n,g]})]}),t[11]=n,t[12]=i,t[13]=f,t[14]=y,t[15]=g,t[16]=b):b=t[16],b}function TH(e){const t=Tt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=sn("flex flex-col gap-1.5 p-6",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=U.jsx("div",{className:i,"data-slot":"sheet-header",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function AH(e){const t=Tt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=sn("font-medium text-foreground text-sm",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=U.jsx(wH,{className:i,"data-slot":"sheet-title",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function IH(e){const t=Tt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=sn("text-muted-foreground text-xs/relaxed",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=U.jsx(J8,{className:i,"data-slot":"sheet-description",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}const XO=O.createContext(void 0);function Af(e){const t=O.useContext(XO);if(t===void 0&&!e)throw new Error(Ao(72));return t}const OH={...$O,disabled:ot(e=>e.disabled),instantType:ot(e=>e.instantType),isInstantPhase:ot(e=>e.isInstantPhase),trackCursorAxis:ot(e=>e.trackCursorAxis),disableHoverablePopup:ot(e=>e.disableHoverablePopup),lastOpenChangeReason:ot(e=>e.openChangeReason),closeDelay:ot(e=>e.closeDelay),hasViewport:ot(e=>e.hasViewport)};class $v extends zv{constructor(t){super({...MH(),...t},{popupRef:O.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new Zp},OH)}setOpen=(t,n)=>{const r=n.reason,i=r===wr,c=t&&r===Bh,l=!t&&(r===fp||r===kv);if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(t,n),n.isCanceled)return;const f=()=>{const d={open:t,openChangeReason:r};c?d.instantType="focus":l?d.instantType="dismiss":r===wr&&(d.instantType=void 0);const h=n.trigger?.id??null;(h||t)&&(d.activeTriggerId=h,d.activeTriggerElement=n.trigger??null),this.update(d)};i?Bi.flushSync(f):f()};static useStore(t,n){const r=lr(()=>new $v(n)).current,i=t??r,c=UO({popupStore:i,onOpenChange:i.setOpen});return i.state.floatingRootContext=c,i}}function MH(){return{...BO(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0,hasViewport:!1}}const DH=PO(function(t){const{disabled:n=!1,defaultOpen:r=!1,open:i,disableHoverablePopup:c=!1,trackCursorAxis:l="none",actionsRef:f,onOpenChange:d,onOpenChangeComplete:h,handle:y,triggerId:g,defaultTriggerId:b=null,children:v}=t,_=$v.useStore(y?.store,{open:r,openProp:i,activeTriggerId:b,triggerIdProp:g});QO(()=>{i===void 0&&_.state.open===!1&&r===!0&&_.update({open:!0,activeTriggerId:b})}),_.useControlledProp("openProp",i),_.useControlledProp("triggerIdProp",g),_.useContextCallback("onOpenChange",d),_.useContextCallback("onOpenChangeComplete",h);const x=_.useState("open"),R=!n&&x,C=_.useState("activeTriggerId"),I=_.useState("payload");_.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:c}),pt(()=>{x&&n&&_.setOpen(!1,Kt(F8))},[x,n,_]),_.useSyncedValue("disabled",n),zO(_);const{forceUnmount:D,transitionStatus:A}=LO(R,_),B=_.useState("isInstantPhase"),j=_.useState("instantType"),H=_.useState("lastOpenChangeReason"),k=O.useRef(null);pt(()=>{A==="ending"&&H===Dv||A!=="ending"&&B?(j!=="delay"&&(k.current=j),_.set("instantType","delay")):k.current!==null&&(_.set("instantType",k.current),k.current=null)},[A,B,H,j,_]),pt(()=>{R&&C==null&&_.set("payload",void 0)},[_,C,R]);const Q=O.useCallback(()=>{_.setOpen(!1,kH(_,hO))},[_]);O.useImperativeHandle(f,()=>({unmount:D,close:Q}),[D,Q]);const ne=_.useState("floatingRootContext"),re=OO(ne,{enabled:!n,referencePress:!0}),G=yj(ne,{enabled:!n&&l!=="none",axis:l==="none"?void 0:l}),{getReferenceProps:te,getFloatingProps:ue,getTriggerProps:me}=HO([re,G]),F=O.useMemo(()=>te(),[te]),oe=O.useMemo(()=>me(),[me]),J=O.useMemo(()=>ue(),[ue]);return _.useSyncedValues({activeTriggerProps:F,inactiveTriggerProps:oe,popupProps:J}),U.jsx(XO.Provider,{value:_,children:typeof v=="function"?v({payload:I}):v})});function kH(e,t){const n=Kt(t);return n.preventUnmountOnClose=()=>{e.set("preventUnmountingOnClose",!0)},n}const WO=O.createContext(void 0);function PH(){return O.useContext(WO)}let NH=(function(e){return e[e.popupOpen=dp.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e})({});const zH=600,LH=E9(function(t,n){const{className:r,render:i,handle:c,payload:l,disabled:f,delay:d,closeDelay:h,id:y,...g}=t,b=Af(!0),v=c?.store??b;if(!v)throw new Error(Ao(82));const _=Ev(y),x=v.useState("isTriggerActive",_),R=v.useState("isOpenedByTrigger",_),C=v.useState("floatingRootContext"),I=O.useRef(null),D=d??zH,A=h??0,{registerTrigger:B,isMountedByThisTrigger:j}=P9(_,I,v,{payload:l,closeDelay:A}),H=PH(),{delayRef:k,isInstantPhase:Q,hasProvider:ne}=oj(C,{open:R});v.useSyncedValue("isInstantPhase",Q);const re=v.useState("disabled"),G=f??re,te=v.useState("trackCursorAxis"),ue=v.useState("disableHoverablePopup"),me=V9(C,{enabled:!G,mouseOnly:!0,move:!1,handleClose:!ue&&te!=="both"?Y9():null,restMs(){const fe=H?.delay,z=typeof k.current=="object"?k.current.open:void 0;let ee=D;return ne&&(z!==0?ee=d??fe??D:ee=0),ee},delay(){const fe=typeof k.current=="object"?k.current.close:void 0;let z=A;return h==null&&ne&&(z=fe),{close:z}},triggerElementRef:I,isActiveTrigger:x}),F=B9(C,{enabled:!G}).reference,oe={open:R},J=v.useState("triggerProps",j);return ur("button",t,{state:oe,ref:[n,B,I],props:[me,F,J,{id:_,[NH.triggerDisabled]:G?"":void 0},g],stateAttributesMapping:Y8})}),JO=O.createContext(void 0);function BH(){const e=O.useContext(JO);if(e===void 0)throw new Error(Ao(70));return e}const $H=O.forwardRef(function(t,n){const{children:r,container:i,className:c,render:l,...f}=t,{portalNode:d,portalSubtree:h}=_O({container:i,ref:n,componentProps:t,elementProps:f});return!h&&!d?null:U.jsxs(O.Fragment,{children:[h,d&&Bi.createPortal(r,d)]})}),UH=O.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t;return Af().useState("mounted")||r?U.jsx(JO.Provider,{value:r,children:U.jsx($H,{ref:n,...i})}):null}),eM=O.createContext(void 0);function tM(){const e=O.useContext(eM);if(e===void 0)throw new Error(Ao(71));return e}const jH=O.createContext(void 0);function HH(){return O.useContext(jH)?.direction??"ltr"}const FH=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:c,platform:l,elements:f,middlewareData:d}=t,{element:h,padding:y=0,offsetParent:g="real"}=Ro(e,t)||{};if(h==null)return{};const b=J2(y),v={x:n,y:r},_=Iv(i),x=Av(_),R=await l.getDimensions(h),C=_==="y",I=C?"top":"left",D=C?"bottom":"right",A=C?"clientHeight":"clientWidth",B=c.reference[x]+c.reference[_]-v[_]-c.floating[x],j=v[_]-c.reference[_],H=g==="real"?await l.getOffsetParent?.(h):f.floating;let k=f.floating[A]||c.floating[x];(!k||!await l.isElement?.(H))&&(k=f.floating[A]||c.floating[x]);const Q=B/2-j/2,ne=k/2-R[x]/2-1,re=Math.min(b[I],ne),G=Math.min(b[D],ne),te=re,ue=k-R[x]-G,me=k/2-R[x]/2+Q,F=Db(te,me,ue),oe=!d.arrow&&Hi(i)!=null&&me!==F&&c.reference[x]/2-(me({...FH(e),options:[e,t]}),VH={name:"hide",async fn(e){const{width:t,height:n,x:r,y:i}=e.rects.reference,c=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await r9().fn(e)).data?.referenceHidden||c}}}},jh={sideX:"left",sideY:"top"},GH={name:"adaptiveOrigin",async fn(e){const{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:c,strategy:l,placement:f}=e,d=mn(i),h=d.getComputedStyle(i);if(!(h.transitionDuration!=="0s"&&h.transitionDuration!==""))return{x:t,y:n,data:jh};const g=await c.getOffsetParent?.(i);let b={width:0,height:0};if(l==="fixed"&&d?.visualViewport)b={width:d.visualViewport.width,height:d.visualViewport.height};else if(g===d){const I=Ht(i);b={width:I.documentElement.clientWidth,height:I.documentElement.clientHeight}}else await c.isElement?.(g)&&(b=await c.getDimensions(g));const v=_s(f);let _=t,x=n;v==="left"&&(_=b.width-(t+r.width)),v==="top"&&(x=b.height-(n+r.height));const R=v==="left"?"right":jh.sideX,C=v==="top"?"bottom":jh.sideY;return{x:_,y:x,data:{sideX:R,sideY:C}}}};function nM(e,t,n){const r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function XC(e,t,n){const{rects:r,placement:i}=e;return{side:nM(t,_s(i),n),align:Hi(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function KH(e){const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:i=0,align:c="center",alignOffset:l=0,collisionBoundary:f,collisionPadding:d=5,sticky:h=!1,arrowPadding:y=5,disableAnchorTracking:g=!1,keepMounted:b=!1,floatingRootContext:v,mounted:_,collisionAvoidance:x,shiftCrossAxis:R=!1,nodeId:C,adaptiveOrigin:I,lazyFlip:D=!1,externalTree:A}=e,[B,j]=O.useState(null);!_&&B!==null&&j(null);const H=x.side||"flip",k=x.align||"flip",Q=x.fallbackAxisSide||"end",ne=typeof t=="function"?t:void 0,re=qe(ne),G=ne?re:t,te=Pr(t),me=HH()==="rtl",F=B||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":me?"left":"right","inline-start":me?"right":"left"}[r],oe=c==="center"?F:`${F}-${c}`;let J=d;const ve=1,fe=r==="bottom"?ve:0,z=r==="top"?ve:0,ee=r==="right"?ve:0,ge=r==="left"?ve:0;typeof J=="number"?J={top:J+fe,right:J+ge,bottom:J+z,left:J+ee}:J&&(J={top:(J.top||0)+fe,right:(J.right||0)+ge,bottom:(J.bottom||0)+z,left:(J.left||0)+ee});const be={boundary:f==="clipping-ancestors"?"clippingAncestors":f,padding:J},Ee=O.useRef(null),_e=Pr(i),Ie=Pr(l),it=[Jj(Bt=>{const Gn=XC(Bt,r,me),Hs=typeof _e.current=="function"?_e.current(Gn):_e.current,kn=typeof Ie.current=="function"?Ie.current(Gn):Ie.current;return{mainAxis:Hs,crossAxis:kn,alignmentAxis:kn}},[typeof i!="function"?i:0,typeof l!="function"?l:0,me,r])],zt=k==="none"&&H!=="shift",ye=!zt&&(h||R||H==="shift"),xe=H==="none"?null:n9({...be,padding:{top:J.top+ve,right:J.right+ve,bottom:J.bottom+ve,left:J.left+ve},mainAxis:!R&&H==="flip",crossAxis:k==="flip"?"alignment":!1,fallbackAxisSideDirection:Q}),we=zt?null:e9(Bt=>{const Gn=Ht(Bt.elements.floating).documentElement;return{...be,rootBoundary:R?{x:0,y:0,width:Gn.clientWidth,height:Gn.clientHeight}:void 0,mainAxis:k!=="none",crossAxis:ye,limiter:h||R?void 0:t9(Hs=>{if(!Ee.current)return{};const{width:kn,height:us}=Ee.current.getBoundingClientRect(),Gr=cr(_s(Hs.placement)),Fs=Gr==="y"?kn:us,Yo=Gr==="y"?J.left+J.right:J.top+J.bottom;return{offset:Fs/2+Yo/2}})}},[be,h,R,J,k]);H==="shift"||k==="shift"||c==="center"?it.push(we,xe):it.push(xe,we),it.push(s9({...be,apply({elements:{floating:Bt},rects:{reference:Gn},availableWidth:Hs,availableHeight:kn}){const us=Bt.style;us.setProperty("--available-width",`${Hs}px`),us.setProperty("--available-height",`${kn}px`),us.setProperty("--anchor-width",`${Gn.width}px`),us.setProperty("--anchor-height",`${Gn.height}px`)}}),qH(()=>({element:Ee.current||document.createElement("div"),padding:y,offsetParent:"floating"}),[y]),{name:"transformOrigin",fn(Bt){const{elements:Gn,middlewareData:Hs,placement:kn,rects:us,y:Gr}=Bt,Fs=_s(kn),Yo=cr(Fs),Qo=Ee.current,$m=Hs.arrow?.x||0,Kf=Hs.arrow?.y||0,jl=Qo?.clientWidth||0,sa=Qo?.clientHeight||0,Hl=$m+jl/2,Fl=Kf+sa/2,Zf=Math.abs(Hs.shift?.y||0),Yf=us.reference.height/2,Kr=typeof i=="function"?i(XC(Bt,r,me)):i,ql=Zf>Kr,Qf={top:`${Hl}px calc(100% + ${Kr}px)`,bottom:`${Hl}px ${-Kr}px`,left:`calc(100% + ${Kr}px) ${Fl}px`,right:`${-Kr}px ${Fl}px`}[Fs],Xf=`${Hl}px ${us.reference.y+Yf-Gr}px`;return Gn.floating.style.setProperty("--transform-origin",ye&&Yo==="y"&&ql?Xf:Qf),{}}},VH,I),pt(()=>{!_&&v&&v.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[_,v]);const We=O.useMemo(()=>({elementResize:!g&&typeof ResizeObserver<"u",layoutShift:!g&&typeof IntersectionObserver<"u"}),[g]),{refs:Me,elements:He,x:Pe,y:tt,middlewareData:Dt,update:Ye,placement:wt,context:wn,isPositioned:xt,floatingStyles:pr}=L9({rootContext:v,placement:oe,middleware:it,strategy:n,whileElementsMounted:b?void 0:(...Bt)=>HC(...Bt,We),nodeId:C,externalTree:A}),{sideX:dt,sideY:kt}=Dt.adaptiveOrigin||jh,mt=xt?n:"fixed",Es=O.useMemo(()=>{const Bt=I?{position:mt,[dt]:Pe,[kt]:tt}:{position:mt,...pr};return xt||(Bt.opacity=0),Bt},[I,mt,dt,Pe,kt,tt,pr,xt]),js=O.useRef(null);pt(()=>{if(!_)return;const Bt=te.current,Gn=typeof Bt=="function"?Bt():Bt,kn=(WC(Gn)?Gn.current:Gn)||null||null;kn!==js.current&&(Me.setPositionReference(kn),js.current=kn)},[_,Me,G,te]),O.useEffect(()=>{if(!_)return;const Bt=te.current;typeof Bt!="function"&&WC(Bt)&&Bt.current!==js.current&&(Me.setPositionReference(Bt.current),js.current=Bt.current)},[_,Me,G,te]),O.useEffect(()=>{if(b&&_&&He.domReference&&He.floating)return HC(He.domReference,He.floating,Ye,We)},[b,_,He,Ye,We]);const Vr=_s(wt),Gf=nM(r,Vr,me),Zo=Hi(wt)||"center",qn=!!Dt.hide?.referenceHidden;pt(()=>{D&&_&&xt&&j(Vr)},[D,_,xt,Vr]);const mr=O.useMemo(()=>({position:"absolute",top:Dt.arrow?.y,left:Dt.arrow?.x}),[Dt.arrow]),Vn=Dt.arrow?.centerOffset!==0;return O.useMemo(()=>({positionerStyles:Es,arrowStyles:mr,arrowRef:Ee,arrowUncentered:Vn,side:Gf,align:Zo,physicalSide:Vr,anchorHidden:qn,refs:Me,context:wn,isPositioned:xt,update:Ye}),[Es,mr,Ee,Vn,Gf,Zo,Vr,qn,Me,wn,xt,Ye])}function WC(e){return e!=null&&"current"in e}function sM(e){return e==="starting"?oU:Ns}const ZH=O.forwardRef(function(t,n){const{render:r,className:i,anchor:c,positionMethod:l="absolute",side:f="top",align:d="center",sideOffset:h=0,alignOffset:y=0,collisionBoundary:g="clipping-ancestors",collisionPadding:b=5,arrowPadding:v=5,sticky:_=!1,disableAnchorTracking:x=!1,collisionAvoidance:R=aU,...C}=t,I=Af(),D=BH(),A=I.useState("open"),B=I.useState("mounted"),j=I.useState("trackCursorAxis"),H=I.useState("disableHoverablePopup"),k=I.useState("floatingRootContext"),Q=I.useState("instantType"),ne=I.useState("transitionStatus"),re=I.useState("hasViewport"),G=KH({anchor:c,positionMethod:l,floatingRootContext:k,mounted:B,side:f,sideOffset:h,align:d,alignOffset:y,collisionBoundary:g,collisionPadding:b,sticky:_,arrowPadding:v,disableAnchorTracking:x,keepMounted:D,collisionAvoidance:R,adaptiveOrigin:re?GH:void 0}),te=O.useMemo(()=>{const oe={};return(!A||j==="both"||H)&&(oe.pointerEvents="none"),{role:"presentation",hidden:!B,style:{...G.positionerStyles,...oe}}},[A,j,H,B,G.positionerStyles]),ue=O.useMemo(()=>({open:A,side:G.side,align:G.align,anchorHidden:G.anchorHidden,instant:j!=="none"?"tracking-cursor":Q}),[A,G.side,G.align,G.anchorHidden,j,Q]),me=O.useMemo(()=>({...ue,arrowRef:G.arrowRef,arrowStyles:G.arrowStyles,arrowUncentered:G.arrowUncentered}),[ue,G.arrowRef,G.arrowStyles,G.arrowUncentered]),F=ur("div",t,{state:ue,props:[te,sM(ne),C],ref:[n,I.useStateSetter("positionerElement")],stateAttributesMapping:Cf});return U.jsx(eM.Provider,{value:me,children:F})}),YH={...Cf,...Ov},QH=O.forwardRef(function(t,n){const{className:r,render:i,...c}=t,l=Af(),{side:f,align:d}=tM(),h=l.useState("open"),y=l.useState("instantType"),g=l.useState("transitionStatus"),b=l.useState("popupProps"),v=l.useState("floatingRootContext");Mv({open:h,ref:l.context.popupRef,onComplete(){h&&l.context.onOpenChangeComplete?.(!0)}});const _=l.useState("disabled"),x=l.useState("closeDelay");return H9(v,{enabled:!_,closeDelay:x}),ur("div",t,{state:{open:h,side:f,align:d,instant:y,transitionStatus:g},ref:[n,l.context.popupRef,l.useStateSetter("popupElement")],props:[b,sM(g),c],stateAttributesMapping:YH})}),XH=O.forwardRef(function(t,n){const{className:r,render:i,...c}=t,f=Af().useState("instantType"),{open:d,arrowRef:h,side:y,align:g,arrowUncentered:b,arrowStyles:v}=tM();return ur("div",t,{state:{open:d,side:y,align:g,uncentered:b,instant:f},ref:[n,h],props:[{style:v,"aria-hidden":!0},c],stateAttributesMapping:Cf})}),WH=function(t){const{delay:n,closeDelay:r,timeout:i=400}=t,c=O.useMemo(()=>({delay:n,closeDelay:r}),[n,r]),l=O.useMemo(()=>({open:n,close:r}),[n,r]);return U.jsx(WO.Provider,{value:c,children:U.jsx(rj,{delay:l,timeoutMs:i,children:t.children})})};function JH(e){const t=Tt.c(6);let n,r;t[0]!==e?({delay:r,...n}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const i=r===void 0?0:r;let c;return t[3]!==i||t[4]!==n?(c=U.jsx(WH,{"data-slot":"tooltip-provider",delay:i,...n}),t[3]=i,t[4]=n,t[5]=c):c=t[5],c}function e7(e){const t=Tt.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=U.jsx(JH,{children:U.jsx(DH,{"data-slot":"tooltip",...n})}),t[2]=n,t[3]=r):r=t[3],r}function t7(e){const t=Tt.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=U.jsx(LH,{"data-slot":"tooltip-trigger",...n}),t[2]=n,t[3]=r):r=t[3],r}function n7(e){const t=Tt.c(21);let n,r,i,c,l,f,d;t[0]!==e?({className:r,side:c,sideOffset:l,align:f,alignOffset:d,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l,t[6]=f,t[7]=d):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6],d=t[7]);const h=c===void 0?"top":c,y=l===void 0?4:l,g=f===void 0?"center":f,b=d===void 0?0:d;let v;t[8]!==r?(v=sn("data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in **:data-[slot=kbd]:rounded-md",r),t[8]=r,t[9]=v):v=t[9];let _;t[10]===Symbol.for("react.memo_cache_sentinel")?(_=U.jsx(XH,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=right]:top-1/2! data-[side=left]:-right-1 data-[side=top]:-bottom-2.5 data-[side=right]:-left-1 data-[side=left]:-translate-y-1/2 data-[side=right]:-translate-y-1/2"}),t[10]=_):_=t[10];let x;t[11]!==n||t[12]!==i||t[13]!==v?(x=U.jsxs(QH,{className:v,"data-slot":"tooltip-content",...i,children:[n,_]}),t[11]=n,t[12]=i,t[13]=v,t[14]=x):x=t[14];let R;return t[15]!==g||t[16]!==b||t[17]!==h||t[18]!==y||t[19]!==x?(R=U.jsx(UH,{children:U.jsx(ZH,{align:g,alignOffset:b,className:"isolate z-50",side:h,sideOffset:y,children:x})}),t[15]=g,t[16]=b,t[17]=h,t[18]=y,t[19]=x,t[20]=R):R=t[20],R}const s7=768,rM=`(max-width: ${s7-1}px)`;function r7(e){const t=window.matchMedia(rM);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function o7(){return window.matchMedia(rM).matches}function i7(){return O.useSyncExternalStore(r7,o7)}const a7="sidebar_state",c7=3600*24*7,l7="12rem",u7="16rem",f7="3rem",d7="b",oM=O.createContext(null);function Yp(){const e=O.useContext(oM);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function h7(e){const t=Tt.c(36);let n,r,i,c,l,f,d;t[0]!==e?({defaultOpen:d,open:i,onOpenChange:l,className:r,style:f,children:n,...c}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l,t[6]=f,t[7]=d):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6],d=t[7]);const h=d===void 0?!0:d,y=i7(),[g,b]=O.useState(!1),[v,_]=O.useState(h),x=i??v;let R;t[8]!==x||t[9]!==l?(R=ue=>{const me=typeof ue=="function"?ue(x):ue;l?l(me):_(me),document.cookie=`${a7}=${me}; path=/; max-age=${c7}`},t[8]=x,t[9]=l,t[10]=R):R=t[10];const C=R;let I;t[11]!==y||t[12]!==C?(I=()=>y?b(m7):C(p7),t[11]=y,t[12]=C,t[13]=I):I=t[13];const D=I;let A,B;t[14]!==D?(A=()=>{const ue=me=>{me.key===d7&&(me.metaKey||me.ctrlKey)&&(me.preventDefault(),D())};return window.addEventListener("keydown",ue),()=>window.removeEventListener("keydown",ue)},B=[D],t[14]=D,t[15]=A,t[16]=B):(A=t[15],B=t[16]),O.useEffect(A,B);const j=x?"expanded":"collapsed";let H;t[17]!==y||t[18]!==x||t[19]!==g||t[20]!==C||t[21]!==j||t[22]!==D?(H={state:j,open:x,setOpen:C,isMobile:y,openMobile:g,setOpenMobile:b,toggleSidebar:D},t[17]=y,t[18]=x,t[19]=g,t[20]=C,t[21]=j,t[22]=D,t[23]=H):H=t[23];const k=H;let Q;t[24]!==r?(Q=sn("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),t[24]=r,t[25]=Q):Q=t[25];let ne;t[26]!==f?(ne={"--sidebar-width":l7,"--sidebar-width-icon":f7,...f},t[26]=f,t[27]=ne):ne=t[27];const re=ne;let G;t[28]!==n||t[29]!==c||t[30]!==Q||t[31]!==re?(G=U.jsx("div",{className:Q,"data-slot":"sidebar-wrapper",style:re,...c,children:n}),t[28]=n,t[29]=c,t[30]=Q,t[31]=re,t[32]=G):G=t[32];let te;return t[33]!==k||t[34]!==G?(te=U.jsx(oM.Provider,{value:k,children:G}),t[33]=k,t[34]=G,t[35]=te):te=t[35],te}function p7(e){return!e}function m7(e){return!e}function g7(e){const t=Tt.c(46);let n,r,i,c,l,f;t[0]!==e?({side:c,variant:l,collapsible:f,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l,t[6]=f):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6]);const d=c===void 0?"left":c,h=l===void 0?"sidebar":l,y=f===void 0?"offExamples":f,{isMobile:g,state:b,openMobile:v,setOpenMobile:_}=Yp();if(y==="none"){let Q;t[7]!==r?(Q=sn("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),t[7]=r,t[8]=Q):Q=t[8];let ne;return t[9]!==n||t[10]!==i||t[11]!==Q?(ne=U.jsx("div",{className:Q,"data-slot":"sidebar",...i,children:n}),t[9]=n,t[10]=i,t[11]=Q,t[12]=ne):ne=t[12],ne}if(g){let Q;t[13]===Symbol.for("react.memo_cache_sentinel")?(Q={"--sidebar-width":u7},t[13]=Q):Q=t[13];let ne;t[14]===Symbol.for("react.memo_cache_sentinel")?(ne=U.jsxs(TH,{className:"sr-only",children:[U.jsx(AH,{children:"Sidebar"}),U.jsx(IH,{children:"Displays the mobile sidebar."})]}),t[14]=ne):ne=t[14];let re;t[15]!==n?(re=U.jsx("div",{className:"flex h-full w-full flex-col",children:n}),t[15]=n,t[16]=re):re=t[16];let G;t[17]!==d||t[18]!==re?(G=U.jsxs(CH,{className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar","data-slot":"sidebar",side:d,style:Q,children:[ne,re]}),t[17]=d,t[18]=re,t[19]=G):G=t[19];let te;return t[20]!==v||t[21]!==i||t[22]!==_||t[23]!==G?(te=U.jsx(xH,{onOpenChange:_,open:v,...i,children:G}),t[20]=v,t[21]=i,t[22]=_,t[23]=G,t[24]=te):te=t[24],te}const x=b==="collapsed"?y:"",R=h==="floating"||h==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let C;t[25]!==R?(C=sn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offExamples]:w-0","group-data-[side=right]:rotate-180",R),t[25]=R,t[26]=C):C=t[26];let I;t[27]!==C?(I=U.jsx("div",{className:C,"data-slot":"sidebar-gap"}),t[27]=C,t[28]=I):I=t[28];const D=d==="left"?"left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]",A=h==="floating"||h==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l";let B;t[29]!==r||t[30]!==D||t[31]!==A?(B=sn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",D,A,r),t[29]=r,t[30]=D,t[31]=A,t[32]=B):B=t[32];let j;t[33]!==n?(j=U.jsx("div",{className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border","data-sidebar":"sidebar","data-slot":"sidebar-inner",children:n}),t[33]=n,t[34]=j):j=t[34];let H;t[35]!==i||t[36]!==B||t[37]!==j?(H=U.jsx("div",{className:B,"data-slot":"sidebar-container",...i,children:j}),t[35]=i,t[36]=B,t[37]=j,t[38]=H):H=t[38];let k;return t[39]!==d||t[40]!==b||t[41]!==H||t[42]!==x||t[43]!==I||t[44]!==h?(k=U.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-collapsible":x,"data-side":d,"data-slot":"sidebar","data-state":b,"data-variant":h,children:[I,H]}),t[39]=d,t[40]=b,t[41]=H,t[42]=x,t[43]=I,t[44]=h,t[45]=k):k=t[45],k}function y7(e){const t=Tt.c(15);let n,r,i;t[0]!==e?({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]);const{toggleSidebar:c}=Yp();let l;t[4]!==n?(l=sn(n),t[4]=n,t[5]=l):l=t[5];let f;t[6]!==r||t[7]!==c?(f=g=>{r?.(g),c()},t[6]=r,t[7]=c,t[8]=f):f=t[8];let d,h;t[9]===Symbol.for("react.memo_cache_sentinel")?(d=U.jsx(kU,{}),h=U.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),t[9]=d,t[10]=h):(d=t[9],h=t[10]);let y;return t[11]!==i||t[12]!==l||t[13]!==f?(y=U.jsxs(cl,{className:l,"data-sidebar":"trigger","data-slot":"sidebar-trigger",onClick:f,size:"icon-lg",variant:"ghost",...i,children:[d,h]}),t[11]=i,t[12]=l,t[13]=f,t[14]=y):y=t[14],y}function b7(e){const t=Tt.c(9);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const{toggleSidebar:i}=Yp();let c;t[3]!==n?(c=sn("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offExamples]:translate-x-0 hover:group-data-[collapsible=offExamples]:bg-sidebar group-data-[collapsible=offExamples]:after:left-full","[[data-side=left][data-collapsible=offExamples]_&]:-right-2","[[data-side=right][data-collapsible=offExamples]_&]:-left-2",n),t[3]=n,t[4]=c):c=t[4];let l;return t[5]!==r||t[6]!==c||t[7]!==i?(l=U.jsx("button",{"aria-label":"Toggle Sidebar",className:c,"data-sidebar":"rail","data-slot":"sidebar-rail",onClick:i,tabIndex:-1,title:"Toggle Sidebar",...r}),t[5]=r,t[6]=c,t[7]=i,t[8]=l):l=t[8],l}function v7(e){const t=Tt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=sn("flex flex-col gap-2 p-2",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=U.jsx("div",{className:i,"data-sidebar":"footer","data-slot":"sidebar-footer",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function S7(e){const t=Tt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=sn("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=U.jsx("div",{className:i,"data-sidebar":"content","data-slot":"sidebar-content",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function C0(e){const t=Tt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=sn("relative flex w-full min-w-0 flex-col px-2 py-1",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=U.jsx("div",{className:i,"data-sidebar":"group","data-slot":"sidebar-group",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function T0(e){const t=Tt.c(10);let n,r,i,c;if(t[0]!==e){const{className:d,render:h,...y}=e;n=h,c=x2,r="div",i=Up({className:sn("flex h-8 shrink-0 items-center rounded-md px-2 text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 [&>svg]:size-4 [&>svg]:shrink-0",d)},y),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c}else n=t[1],r=t[2],i=t[3],c=t[4];let l;t[5]===Symbol.for("react.memo_cache_sentinel")?(l={slot:"sidebar-group-label",sidebar:"group-label"},t[5]=l):l=t[5];let f;return t[6]!==n||t[7]!==r||t[8]!==i?(f={defaultTagName:r,props:i,render:n,state:l},t[6]=n,t[7]=r,t[8]=i,t[9]=f):f=t[9],c(f)}function Eh(e){const t=Tt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=sn("flex w-full min-w-0 flex-col gap-px",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=U.jsx("ul",{className:i,"data-sidebar":"menu","data-slot":"sidebar-menu",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function xa(e){const t=Tt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=sn("group/menu-item relative",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=U.jsx("li",{className:i,"data-sidebar":"menu-item","data-slot":"sidebar-menu-item",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}const _7=C2("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-xs",sm:"h-7 text-xs",lg:"h-12 text-xs group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Ea(e){const t=Tt.c(15);let{render:n,isActive:r,variant:i,size:c,tooltip:l,className:f,...d}=e;const h=r===void 0?!1:r,y=i===void 0?"default":i,g=c===void 0?"default":c,{isMobile:b,state:v}=Yp(),_="button",x=Up({className:sn(_7({variant:y,size:g}),f)},d),R=l?t7:n;let C;t[0]!==h||t[1]!==g?(C={slot:"sidebar-menu-button",sidebar:"menu-button",size:g,active:h},t[0]=h,t[1]=g,t[2]=C):C=t[2];let I;t[3]!==x||t[4]!==R||t[5]!==C?(I={defaultTagName:_,props:x,render:R,state:C},t[3]=x,t[4]=R,t[5]=C,t[6]=I):I=t[6];const D=x2(I);if(!l)return D;if(typeof l=="string"){let H;t[7]!==l?(H={children:l},t[7]=l,t[8]=H):H=t[8],l=H}const A=v!=="collapsed"||b;let B;t[9]!==A||t[10]!==l?(B=U.jsx(n7,{align:"center",hidden:A,side:"right",...l}),t[9]=A,t[10]=l,t[11]=B):B=t[11];let j;return t[12]!==D||t[13]!==B?(j=U.jsxs(e7,{children:[D,B]}),t[12]=D,t[13]=B,t[14]=j):j=t[14],j}function w7(){const e=Tt.c(8),{theme:t,setTheme:n}=G$();let r;e[0]!==n||e[1]!==t?(r=()=>{n(t==="light"?"dark":t==="dark"?"light":"dark")},e[0]=n,e[1]=t,e[2]=r):r=e[2];const i=r;let c,l,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=U.jsx(zU,{className:"size-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),l=U.jsx(MU,{className:"absolute size-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),f=U.jsx("span",{className:"sr-only",children:"Toggle theme"}),e[3]=c,e[4]=l,e[5]=f):(c=e[3],l=e[4],f=e[5]);let d;return e[6]!==i?(d=U.jsxs(cl,{className:"rounded-full",onClick:i,size:"icon-sm",variant:"ghost",children:[c,l,f]}),e[6]=i,e[7]=d):d=e[7],d}function iM(){const e=Tt.c(3);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=sn("z-50 flex h-10 shrink-0 items-center gap-2 border-sidebar-border border-b bg-sidebar px-4 text-sidebar-foreground","sticky top-0"),n=U.jsx(y7,{className:"-ml-1"}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=U.jsxs("header",{className:t,children:[n,U.jsx("div",{className:"flex w-full justify-end",children:U.jsx(w7,{})})]}),e[2]=r):r=e[2],r}function x7(){const e=Tt.c(3);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=U.jsx("h1",{className:"font-bold text-4xl",children:"404"}),n=U.jsx("p",{className:"text-muted-foreground",children:"Page not found"}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=U.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-4",children:[t,n,U.jsx(Dr,{to:"/",children:U.jsx(cl,{variant:"outline",children:"Go back home"})})]}),e[2]=r):r=e[2],r}function pe(e,t,n){function r(f,d){if(f._zod||Object.defineProperty(f,"_zod",{value:{def:d,constr:l,traits:new Set},enumerable:!1}),f._zod.traits.has(e))return;f._zod.traits.add(e),t(f,d);const h=l.prototype,y=Object.keys(h);for(let g=0;gn?.Parent&&f instanceof n.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class tl extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class aM extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const cM={};function $a(e){return cM}function lM(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function $b(e,t){return typeof t=="bigint"?t.toString():t}function Uv(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function jv(e){return e==null}function Hv(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function E7(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const d=r.match(/\d?e-(\d?)/);d?.[1]&&(i=Number.parseInt(d[1]))}const c=n>i?n:i,l=Number.parseInt(e.toFixed(c).replace(".","")),f=Number.parseInt(t.toFixed(c).replace(".",""));return l%f/10**c}const JC=Symbol("evaluating");function Ct(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==JC)return r===void 0&&(r=JC,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function Ga(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Fi(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function eT(e){return JSON.stringify(e)}function R7(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const uM="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function gp(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const C7=Uv(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function hf(e){if(gp(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(gp(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function fM(e){return hf(e)?{...e}:Array.isArray(e)?[...e]:e}const T7=new Set(["string","number","symbol"]);function Qp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function qi(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Ue(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function A7(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const I7={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]};function O7(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const c=Fi(e._zod.def,{get shape(){const l={};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&(l[f]=n.shape[f])}return Ga(this,"shape",l),l},checks:[]});return qi(e,c)}function M7(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const c=Fi(e._zod.def,{get shape(){const l={...e._zod.def.shape};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&delete l[f]}return Ga(this,"shape",l),l},checks:[]});return qi(e,c)}function D7(e,t){if(!hf(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const c=e._zod.def.shape;for(const l in t)if(Object.getOwnPropertyDescriptor(c,l)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const i=Fi(e._zod.def,{get shape(){const c={...e._zod.def.shape,...t};return Ga(this,"shape",c),c}});return qi(e,i)}function k7(e,t){if(!hf(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Fi(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Ga(this,"shape",r),r}});return qi(e,n)}function P7(e,t){const n=Fi(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return Ga(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return qi(e,n)}function N7(e,t,n){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const l=Fi(t._zod.def,{get shape(){const f=t._zod.def.shape,d={...f};if(n)for(const h in n){if(!(h in f))throw new Error(`Unrecognized key: "${h}"`);n[h]&&(d[h]=e?new e({type:"optional",innerType:f[h]}):f[h])}else for(const h in f)d[h]=e?new e({type:"optional",innerType:f[h]}):f[h];return Ga(this,"shape",d),d},checks:[]});return qi(t,l)}function z7(e,t,n){const r=Fi(t._zod.def,{get shape(){const i=t._zod.def.shape,c={...i};if(n)for(const l in n){if(!(l in c))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(c[l]=new e({type:"nonoptional",innerType:i[l]}))}else for(const l in i)c[l]=new e({type:"nonoptional",innerType:i[l]});return Ga(this,"shape",c),c}});return qi(t,r)}function Yc(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Rh(e){return typeof e=="string"?e:e?.message}function Ua(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=Rh(e.inst?._zod.def?.error?.(e))??Rh(t?.error?.(e))??Rh(n.customError?.(e))??Rh(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Fv(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function pf(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const hM=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,$b,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},pM=pe("$ZodError",hM),Xp=pe("$ZodError",hM,{Parent:Error});function L7(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function B7(e,t=n=>n.message){const n={_errors:[]},r=i=>{for(const c of i.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>r({issues:l}));else if(c.code==="invalid_key")r({issues:c.issues});else if(c.code==="invalid_element")r({issues:c.issues});else if(c.path.length===0)n._errors.push(t(c));else{let l=n,f=0;for(;f(t,n,r,i)=>{const c=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},c);if(l instanceof Promise)throw new tl;if(l.issues.length){const f=new(i?.Err??e)(l.issues.map(d=>Ua(d,c,$a())));throw uM(f,i?.callee),f}return l.value},tSe=Wp(Xp),Jp=e=>async(t,n,r,i)=>{const c=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},c);if(l instanceof Promise&&(l=await l),l.issues.length){const f=new(i?.Err??e)(l.issues.map(d=>Ua(d,c,$a())));throw uM(f,i?.callee),f}return l.value},nSe=Jp(Xp),em=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},c=t._zod.run({value:n,issues:[]},i);if(c instanceof Promise)throw new tl;return c.issues.length?{success:!1,error:new(e??pM)(c.issues.map(l=>Ua(l,i,$a())))}:{success:!0,data:c.value}},$7=em(Xp),tm=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let c=t._zod.run({value:n,issues:[]},i);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new e(c.issues.map(l=>Ua(l,i,$a())))}:{success:!0,data:c.value}},U7=tm(Xp),j7=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Wp(e)(t,n,i)},H7=e=>(t,n,r)=>Wp(e)(t,n,r),F7=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Jp(e)(t,n,i)},q7=e=>async(t,n,r)=>Jp(e)(t,n,r),V7=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return em(e)(t,n,i)},G7=e=>(t,n,r)=>em(e)(t,n,r),K7=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return tm(e)(t,n,i)},Z7=e=>async(t,n,r)=>tm(e)(t,n,r),Y7=/^[cC][^\s-]{8,}$/,Q7=/^[0-9a-z]+$/,X7=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,W7=/^[0-9a-vA-V]{20}$/,J7=/^[A-Za-z0-9]{27}$/,eF=/^[a-zA-Z0-9_-]{21}$/,tF=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,nF=/^([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})$/,tT=e=>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|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,sF=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,rF="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function oF(){return new RegExp(rF,"u")}const iF=/^(?:(?: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])$/,aF=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,cF=/^((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])$/,lF=/^(([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])$/,uF=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,mM=/^[A-Za-z0-9_-]*$/,fF=/^\+[1-9]\d{6,14}$/,gM="(?:(?:\\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])))",dF=new RegExp(`^${gM}$`);function yM(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function hF(e){return new RegExp(`^${yM(e)}$`)}function pF(e){const t=yM({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${gM}T(?:${r})$`)}const mF=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},gF=/^-?\d+$/,yF=/^-?\d+(?:\.\d+)?$/,bF=/^[^A-Z]*$/,vF=/^[^a-z]*$/,ws=pe("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),bM={number:"number",bigint:"bigint",object:"date"},vM=pe("$ZodCheckLessThan",(e,t)=>{ws.init(e,t);const n=bM[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,c=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value{(t.inclusive?r.value<=t.value:r.value{ws.init(e,t);const n=bM[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,c=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>c&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),SF=pe("$ZodCheckMultipleOf",(e,t)=>{ws.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):E7(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),_F=pe("$ZodCheckNumberFormat",(e,t)=>{ws.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,c]=I7[t.format];e._zod.onattach.push(l=>{const f=l._zod.bag;f.format=t.format,f.minimum=i,f.maximum=c,n&&(f.pattern=gF)}),e._zod.check=l=>{const f=l.value;if(n){if(!Number.isInteger(f)){l.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:f,inst:e});return}if(!Number.isSafeInteger(f)){f>0?l.issues.push({input:f,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):l.issues.push({input:f,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}fc&&l.issues.push({origin:"number",input:f,code:"too_big",maximum:c,inclusive:!0,inst:e,continue:!t.abort})}}),wF=pe("$ZodCheckMaxLength",(e,t)=>{var n;ws.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!jv(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{const i=r.value;if(i.length<=t.maximum)return;const l=Fv(i);r.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),xF=pe("$ZodCheckMinLength",(e,t)=>{var n;ws.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!jv(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const l=Fv(i);r.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),EF=pe("$ZodCheckLengthEquals",(e,t)=>{var n;ws.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!jv(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,c=i.length;if(c===t.length)return;const l=Fv(i),f=c>t.length;r.issues.push({origin:l,...f?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),nm=pe("$ZodCheckStringFormat",(e,t)=>{var n,r;ws.init(e,t),e._zod.onattach.push(i=>{const c=i._zod.bag;c.format=t.format,t.pattern&&(c.patterns??(c.patterns=new Set),c.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),RF=pe("$ZodCheckRegex",(e,t)=>{nm.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),CF=pe("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=bF),nm.init(e,t)}),TF=pe("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=vF),nm.init(e,t)}),AF=pe("$ZodCheckIncludes",(e,t)=>{ws.init(e,t);const n=Qp(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const c=i._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),IF=pe("$ZodCheckStartsWith",(e,t)=>{ws.init(e,t);const n=new RegExp(`^${Qp(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),OF=pe("$ZodCheckEndsWith",(e,t)=>{ws.init(e,t);const n=new RegExp(`.*${Qp(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),MF=pe("$ZodCheckOverwrite",(e,t)=>{ws.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class DF{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(` + )`}return N.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:c}})}),KV=M.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t,{store:c}=fc(),l=c.useState("mounted"),f=c.useState("modal"),d=c.useState("open");return l||r?N.jsx(LM.Provider,{value:r,children:N.jsxs(X9,{ref:n,...i,children:[l&&f===!0&&N.jsx(ZV,{ref:c.context.internalBackdropRef,inert:GV(!d)}),t.children]})}):null});function VM(e){const t=M.useRef(!0);t.current&&(t.current=!1,e())}let jA={},HA={},VA="";function QV(e){if(typeof document>"u")return!1;const t=Kt(e);return Sn(t).innerWidth-t.documentElement.clientWidth>0}function YV(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=Kt(e),r=n.documentElement,i=n.body,c=ra(r)?r:i,l=c.style.overflowY,f=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",c.style.overflowY="scroll";const d=c.offsetWidth;c.style.overflowY="hidden";const p=c.offsetWidth;return c.style.overflowY=l,r.style.scrollbarGutter=f,d===p}function XV(e){const t=Kt(e),n=t.documentElement,r=t.body,i=ra(n)?n:r,c={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(i.style,c)}}function WV(e){const t=Kt(e),n=t.documentElement,r=t.body,i=Sn(n);let c=0,l=0,f=!1;const d=Kr.create();if($O&&(i.visualViewport?.scale??1)!==1)return()=>{};function p(){const v=i.getComputedStyle(n),S=i.getComputedStyle(r),R=(v.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";c=n.scrollTop,l=n.scrollLeft,jA={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},VA=n.style.scrollBehavior,HA={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const C=n.scrollHeight>n.clientHeight,O=n.scrollWidth>n.clientWidth,k=v.overflowY==="scroll"||S.overflowY==="scroll",T=v.overflowX==="scroll"||S.overflowX==="scroll",$=Math.max(0,i.innerWidth-r.clientWidth),j=Math.max(0,i.innerHeight-r.clientHeight),H=parseFloat(S.marginTop)+parseFloat(S.marginBottom),P=parseFloat(S.marginLeft)+parseFloat(S.marginRight),Y=ra(n)?n:r;if(f=YV(e),f){n.style.scrollbarGutter=R,Y.style.overflowY="hidden",Y.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:R,overflowY:"hidden",overflowX:"hidden"}),(C||k)&&(n.style.overflowY="scroll"),(O||T)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:H||j?`calc(100dvh - ${H+j}px)`:"100dvh",width:P||$?`calc(100vw - ${P+$}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=c,r.scrollLeft=l,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function b(){Object.assign(n.style,jA),Object.assign(r.style,HA),f||(n.scrollTop=c,n.scrollLeft=l,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=VA)}function g(){b(),d.request(p)}return p(),i.addEventListener("resize",g),()=>{d.cancel(),b(),typeof i.removeEventListener=="function"&&i.removeEventListener("resize",g)}}class JV{lockCount=0;restore=null;timeoutLock=Jr.create();timeoutUnlock=Jr.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const r=Kt(t).documentElement,i=Sn(r).getComputedStyle(r).overflowY;if(i==="hidden"||i==="clip"){this.restore=mO;return}const c=UO||!QV(t);this.restore=c?XV(t):WV(t)}}const e7=new JV;function t7(e=!0,t=null){ht(()=>{if(e)return e7.acquire(t)},[e,t])}function n7(e){const t=M.useRef(""),n=M.useCallback(i=>{i.defaultPrevented||(t.current=i.pointerType,e(i,i.pointerType))},[e]);return{onClick:M.useCallback(i=>{if(i.detail===0){e(i,"keyboard");return}"pointerType"in i?e(i,i.pointerType):e(i,t.current),t.current=""},[e]),onPointerDown:n}}function s7(e){const[t,n]=M.useState(null),r=Ge((f,d)=>{e||n(d||(UO?"touch":""))}),i=M.useCallback(()=>{n(null)},[]),{onClick:c,onPointerDown:l}=n7(r);return M.useMemo(()=>({openMethod:t,reset:i,triggerProps:{onClick:c,onPointerDown:l}}),[t,i,c,l])}function r7(e){const{store:t,parentContext:n,actionsRef:r}=e,i=t.useState("open"),c=t.useState("disablePointerDismissal"),l=t.useState("modal"),f=t.useState("popupElement"),{openMethod:d,triggerProps:p,reset:b}=s7(i);IM(t);const{forceUnmount:g}=OM(i,t,()=>{b()}),v=Ge(ne=>{const re=Jt(ne);return re.preventUnmountOnClose=()=>{t.set("preventUnmountingOnClose",!0)},re}),S=M.useCallback(()=>{t.setOpen(!1,v(iM))},[t,v]);M.useImperativeHandle(r,()=>({unmount:g,close:S}),[g,S]);const w=kM({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[E,R]=M.useState(0),C=E===0,O=PV(w),k=EM(w,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:l==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(ne){if(!t.context.outsidePressEnabledRef.current||"button"in ne&&ne.button!==0||"touches"in ne&&ne.touches.length!==1)return!1;const re=Ss(ne);if(C&&!c){const G=re;return l&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===G||t.context.backdropRef.current===G||gt(G,f)&&!G?.hasAttribute("data-base-ui-portal"):!0}return!1},escapeKey:C});t7(i&&l===!0,f);const{getReferenceProps:T,getFloatingProps:$,getTriggerProps:j}=NM([O,k]);t.useContextCallback("onNestedDialogOpen",ne=>{R(ne+1)}),t.useContextCallback("onNestedDialogClose",()=>{R(0)}),M.useEffect(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(E),n?.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[i,n,E]);const H=M.useMemo(()=>T(p),[T,p]),P=M.useMemo(()=>j(p),[j,p]),Y=M.useMemo(()=>$(),[$]);t.useSyncedValues({openMethod:d,activeTriggerProps:H,inactiveTriggerProps:P,popupProps:Y,floatingRootContext:w,nestedOpenDialogCount:E})}const o7={...DM,modal:it(e=>e.modal),nested:it(e=>e.nested),nestedOpenDialogCount:it(e=>e.nestedOpenDialogCount),disablePointerDismissal:it(e=>e.disablePointerDismissal),openMethod:it(e=>e.openMethod),descriptionElementId:it(e=>e.descriptionElementId),titleElementId:it(e=>e.titleElementId),viewportElement:it(e=>e.viewportElement),role:it(e=>e.role)};class i7 extends mS{constructor(t){super(a7(t),{popupRef:M.createRef(),backdropRef:M.createRef(),internalBackdropRef:M.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new Tm,onOpenChange:void 0,onOpenChangeComplete:void 0},o7)}setOpen=(t,n)=>{if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!t&&n.trigger==null&&this.state.activeTriggerId!=null&&(n.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(t,n),n.isCanceled)return;const r={open:t,nativeEvent:n.event,reason:n.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit("openchange",r);const i={open:t},c=n.trigger?.id??null;(c||t)&&(i.activeTriggerId=c,i.activeTriggerElement=n.trigger??null),this.update(i)}}function a7(e={}){return{...MM(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...e}}function c7(e){const{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:c,disablePointerDismissal:l=!1,modal:f=!0,actionsRef:d,handle:p,triggerId:b,defaultTriggerId:g=null}=e,v=fc(!0),S=!!v,w=vr(()=>p?.store??new i7({open:r,openProp:n,activeTriggerId:g,triggerIdProp:b,modal:f,disablePointerDismissal:l,nested:S})).current;VM(()=>{n===void 0&&w.state.open===!1&&r===!0&&w.update({open:!0,activeTriggerId:g})}),w.useControlledProp("openProp",n),w.useControlledProp("triggerIdProp",b),w.useSyncedValues({disablePointerDismissal:l,nested:S,modal:f}),w.useContextCallback("onOpenChange",i),w.useContextCallback("onOpenChangeComplete",c);const E=w.useState("payload");r7({store:w,actionsRef:d,parentContext:v?.store.context});const R=M.useMemo(()=>({store:w}),[w]);return N.jsx(aM.Provider,{value:R,children:typeof t=="function"?t({payload:E}):t})}const l7=M.forwardRef(function(t,n){const{render:r,className:i,id:c,...l}=t,{store:f}=fc(),d=sS(c);return f.useSyncedValueWithCleanup("titleElementId",d),Sr("h2",t,{ref:n,props:[{id:d},l]})});function u7(e){const t=kt.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=N.jsx(c7,{"data-slot":"sheet",...n}),t[2]=n,t[3]=r):r=t[3],r}function f7(e){const t=kt.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=N.jsx(KV,{"data-slot":"sheet-portal",...n}),t[2]=n,t[3]=r):r=t[3],r}function d7(e){const t=kt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=cn("data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 z-50 bg-black/80 duration-100 data-closed:animate-out data-open:animate-in data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=N.jsx(B9,{className:i,"data-slot":"sheet-overlay",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function p7(e){const t=kt.c(17);let n,r,i,c,l;t[0]!==e?({className:r,children:n,side:c,showCloseButton:l,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5]);const f=c===void 0?"right":c,d=l===void 0?!0:l;let p;t[6]===Symbol.for("react.memo_cache_sentinel")?(p=N.jsx(d7,{}),t[6]=p):p=t[6];let b;t[7]!==r?(b=cn("data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col bg-background bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=top]:inset-x-0 data-[side=left]:inset-y-0 data-[side=right]:inset-y-0 data-[side=top]:top-0 data-[side=right]:right-0 data-[side=bottom]:bottom-0 data-[side=left]:left-0 data-[side=bottom]:h-auto data-[side=left]:h-full data-[side=right]:h-full data-[side=top]:h-auto data-[side=left]:w-3/4 data-[side=right]:w-3/4 data-closed:animate-out data-open:animate-in data-[side=bottom]:border-t data-[side=left]:border-r data-[side=top]:border-b data-[side=right]:border-l data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",r),t[7]=r,t[8]=b):b=t[8];let g;t[9]!==d?(g=d&&N.jsxs($9,{"data-slot":"sheet-close",render:N.jsx(Tl,{className:"absolute top-4 right-4",size:"icon-sm",variant:"ghost"}),children:[N.jsx(R5,{}),N.jsx("span",{className:"sr-only",children:"Close"})]}),t[9]=d,t[10]=g):g=t[10];let v;return t[11]!==n||t[12]!==i||t[13]!==f||t[14]!==b||t[15]!==g?(v=N.jsxs(f7,{children:[p,N.jsxs(qV,{className:b,"data-side":f,"data-slot":"sheet-content",...i,children:[n,g]})]}),t[11]=n,t[12]=i,t[13]=f,t[14]=b,t[15]=g,t[16]=v):v=t[16],v}function h7(e){const t=kt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=cn("flex flex-col gap-1.5 p-6",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=N.jsx("div",{className:i,"data-slot":"sheet-header",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function m7(e){const t=kt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=cn("font-medium text-foreground text-sm",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=N.jsx(l7,{className:i,"data-slot":"sheet-title",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function g7(e){const t=kt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=cn("text-muted-foreground text-xs/relaxed",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=N.jsx(U9,{className:i,"data-slot":"sheet-description",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}const FM=M.createContext(void 0);function Xf(e){const t=M.useContext(FM);if(t===void 0&&!e)throw new Error(Fo(72));return t}const y7={...DM,disabled:it(e=>e.disabled),instantType:it(e=>e.instantType),isInstantPhase:it(e=>e.isInstantPhase),trackCursorAxis:it(e=>e.trackCursorAxis),disableHoverablePopup:it(e=>e.disableHoverablePopup),lastOpenChangeReason:it(e=>e.openChangeReason),closeDelay:it(e=>e.closeDelay),hasViewport:it(e=>e.hasViewport)};class bS extends mS{constructor(t){super({...b7(),...t},{popupRef:M.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new Tm},y7)}setOpen=(t,n)=>{const r=n.reason,i=r===Lr,c=t&&r===bh,l=!t&&(r===qh||r===dS);if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(t,n),n.isCanceled)return;const f=()=>{const d={open:t,openChangeReason:r};c?d.instantType="focus":l?d.instantType="dismiss":r===Lr&&(d.instantType=void 0);const p=n.trigger?.id??null;(p||t)&&(d.activeTriggerId=p,d.activeTriggerElement=n.trigger??null),this.update(d)};i?na.flushSync(f):f()};static useStore(t,n){const r=vr(()=>new bS(n)).current,i=t??r,c=kM({popupStore:i,onOpenChange:i.setOpen});return i.state.floatingRootContext=c,i}}function b7(){return{...MM(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0,hasViewport:!1}}const v7=AM(function(t){const{disabled:n=!1,defaultOpen:r=!1,open:i,disableHoverablePopup:c=!1,trackCursorAxis:l="none",actionsRef:f,onOpenChange:d,onOpenChangeComplete:p,handle:b,triggerId:g,defaultTriggerId:v=null,children:S}=t,w=bS.useStore(b?.store,{open:r,openProp:i,activeTriggerId:v,triggerIdProp:g});VM(()=>{i===void 0&&w.state.open===!1&&r===!0&&w.update({open:!0,activeTriggerId:v})}),w.useControlledProp("openProp",i),w.useControlledProp("triggerIdProp",g),w.useContextCallback("onOpenChange",d),w.useContextCallback("onOpenChangeComplete",p);const E=w.useState("open"),R=!n&&E,C=w.useState("activeTriggerId"),O=w.useState("payload");w.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:c}),ht(()=>{E&&n&&w.setOpen(!1,Jt(O9))},[E,n,w]),w.useSyncedValue("disabled",n),IM(w);const{forceUnmount:k,transitionStatus:T}=OM(R,w),$=w.useState("isInstantPhase"),j=w.useState("instantType"),H=w.useState("lastOpenChangeReason"),P=M.useRef(null);ht(()=>{T==="ending"&&H===fS||T!=="ending"&&$?(j!=="delay"&&(P.current=j),w.set("instantType","delay")):P.current!==null&&(w.set("instantType",P.current),P.current=null)},[T,$,H,j,w]),ht(()=>{R&&C==null&&w.set("payload",void 0)},[w,C,R]);const Y=M.useCallback(()=>{w.setOpen(!1,S7(w,iM))},[w]);M.useImperativeHandle(f,()=>({unmount:k,close:Y}),[k,Y]);const ne=w.useState("floatingRootContext"),re=EM(ne,{enabled:!n,referencePress:!0}),G=rH(ne,{enabled:!n&&l!=="none",axis:l==="none"?void 0:l}),{getReferenceProps:te,getFloatingProps:ue,getTriggerProps:ye}=NM([re,G]),V=M.useMemo(()=>te(),[te]),oe=M.useMemo(()=>ye(),[ye]),J=M.useMemo(()=>ue(),[ue]);return w.useSyncedValues({activeTriggerProps:V,inactiveTriggerProps:oe,popupProps:J}),N.jsx(FM.Provider,{value:w,children:typeof S=="function"?S({payload:O}):S})});function S7(e,t){const n=Jt(t);return n.preventUnmountOnClose=()=>{e.set("preventUnmountingOnClose",!0)},n}const qM=M.createContext(void 0);function _7(){return M.useContext(qM)}let w7=(function(e){return e[e.popupOpen=Gh.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e})({});const E7=600,x7=fV(function(t,n){const{className:r,render:i,handle:c,payload:l,disabled:f,delay:d,closeDelay:p,id:b,...g}=t,v=Xf(!0),S=c?.store??v;if(!S)throw new Error(Fo(82));const w=sS(b),E=S.useState("isTriggerActive",w),R=S.useState("isOpenedByTrigger",w),C=S.useState("floatingRootContext"),O=M.useRef(null),k=d??E7,T=p??0,{registerTrigger:$,isMountedByThisTrigger:j}=_V(w,O,S,{payload:l,closeDelay:T}),H=_7(),{delayRef:P,isInstantPhase:Y,hasProvider:ne}=G9(C,{open:R});S.useSyncedValue("isInstantPhase",Y);const re=S.useState("disabled"),G=f??re,te=S.useState("trackCursorAxis"),ue=S.useState("disableHoverablePopup"),ye=DV(C,{enabled:!G,mouseOnly:!0,move:!1,handleClose:!ue&&te!=="both"?LV():null,restMs(){const fe=H?.delay,B=typeof P.current=="object"?P.current.open:void 0;let ee=k;return ne&&(B!==0?ee=d??fe??k:ee=0),ee},delay(){const fe=typeof P.current=="object"?P.current.close:void 0;let B=T;return p==null&&ne&&(B=fe),{close:B}},triggerElementRef:O,isActiveTrigger:E}),V=RV(C,{enabled:!G}).reference,oe={open:R},J=S.useState("triggerProps",j);return Sr("button",t,{state:oe,ref:[n,$,O],props:[ye,V,J,{id:w,[w7.triggerDisabled]:G?"":void 0},g],stateAttributesMapping:L9})}),GM=M.createContext(void 0);function R7(){const e=M.useContext(GM);if(e===void 0)throw new Error(Fo(70));return e}const C7=M.forwardRef(function(t,n){const{children:r,container:i,className:c,render:l,...f}=t,{portalNode:d,portalSubtree:p}=hM({container:i,ref:n,componentProps:t,elementProps:f});return!p&&!d?null:N.jsxs(M.Fragment,{children:[p,d&&na.createPortal(r,d)]})}),A7=M.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t;return Xf().useState("mounted")||r?N.jsx(GM.Provider,{value:r,children:N.jsx(C7,{ref:n,...i})}):null}),ZM=M.createContext(void 0);function KM(){const e=M.useContext(ZM);if(e===void 0)throw new Error(Fo(71));return e}const T7=M.createContext(void 0);function I7(){return M.useContext(T7)?.direction??"ltr"}const O7=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:c,platform:l,elements:f,middlewareData:d}=t,{element:p,padding:b=0,offsetParent:g="real"}=jo(e,t)||{};if(p==null)return{};const v=GO(b),S={x:n,y:r},w=cS(i),E=aS(w),R=await l.getDimensions(p),C=w==="y",O=C?"top":"left",k=C?"bottom":"right",T=C?"clientHeight":"clientWidth",$=c.reference[E]+c.reference[w]-S[w]-c.floating[E],j=S[w]-c.reference[w],H=g==="real"?await l.getOffsetParent?.(p):f.floating;let P=f.floating[T]||c.floating[E];(!P||!await l.isElement?.(H))&&(P=f.floating[T]||c.floating[E]);const Y=$/2-j/2,ne=P/2-R[E]/2-1,re=Math.min(v[O],ne),G=Math.min(v[k],ne),te=re,ue=P-R[E]-G,ye=P/2-R[E]/2+Y,V=fv(te,ye,ue),oe=!d.arrow&&ia(i)!=null&&ye!==V&&c.reference[E]/2-(ye({...O7(e),options:[e,t]}),D7={name:"hide",async fn(e){const{width:t,height:n,x:r,y:i}=e.rects.reference,c=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await qH().fn(e)).data?.referenceHidden||c}}}},_h={sideX:"left",sideY:"top"},k7={name:"adaptiveOrigin",async fn(e){const{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:c,strategy:l,placement:f}=e,d=Sn(i),p=d.getComputedStyle(i);if(!(p.transitionDuration!=="0s"&&p.transitionDuration!==""))return{x:t,y:n,data:_h};const g=await c.getOffsetParent?.(i);let v={width:0,height:0};if(l==="fixed"&&d?.visualViewport)v={width:d.visualViewport.width,height:d.visualViewport.height};else if(g===d){const O=Kt(i);v={width:O.documentElement.clientWidth,height:O.documentElement.clientHeight}}else await c.isElement?.(g)&&(v=await c.getDimensions(g));const S=Es(f);let w=t,E=n;S==="left"&&(w=v.width-(t+r.width)),S==="top"&&(E=v.height-(n+r.height));const R=S==="left"?"right":_h.sideX,C=S==="top"?"bottom":_h.sideY;return{x:w,y:E,data:{sideX:R,sideY:C}}}};function QM(e,t,n){const r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function FA(e,t,n){const{rects:r,placement:i}=e;return{side:QM(t,Es(i),n),align:ia(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function P7(e){const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:i=0,align:c="center",alignOffset:l=0,collisionBoundary:f,collisionPadding:d=5,sticky:p=!1,arrowPadding:b=5,disableAnchorTracking:g=!1,keepMounted:v=!1,floatingRootContext:S,mounted:w,collisionAvoidance:E,shiftCrossAxis:R=!1,nodeId:C,adaptiveOrigin:O,lazyFlip:k=!1,externalTree:T}=e,[$,j]=M.useState(null);!w&&$!==null&&j(null);const H=E.side||"flip",P=E.align||"flip",Y=E.fallbackAxisSide||"end",ne=typeof t=="function"?t:void 0,re=Ge(ne),G=ne?re:t,te=Qr(t),ye=I7()==="rtl",V=$||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":ye?"left":"right","inline-start":ye?"right":"left"}[r],oe=c==="center"?V:`${V}-${c}`;let J=d;const ve=1,fe=r==="bottom"?ve:0,B=r==="top"?ve:0,ee=r==="right"?ve:0,ge=r==="left"?ve:0;typeof J=="number"?J={top:J+fe,right:J+ge,bottom:J+B,left:J+ee}:J&&(J={top:(J.top||0)+fe,right:(J.right||0)+ge,bottom:(J.bottom||0)+B,left:(J.left||0)+ee});const be={boundary:f==="clipping-ancestors"?"clippingAncestors":f,padding:J},xe=M.useRef(null),_e=Qr(i),Te=Qr(l),Xe=[UH(Ft=>{const Kn=FA(Ft,r,ye),Ws=typeof _e.current=="function"?_e.current(Kn):_e.current,Nn=typeof Te.current=="function"?Te.current(Kn):Te.current;return{mainAxis:Ws,crossAxis:Nn,alignmentAxis:Nn}},[typeof i!="function"?i:0,typeof l!="function"?l:0,ye,r])],_t=P==="none"&&H!=="shift",me=!_t&&(p||R||H==="shift"),Ee=H==="none"?null:VH({...be,padding:{top:J.top+ve,right:J.right+ve,bottom:J.bottom+ve,left:J.left+ve},mainAxis:!R&&H==="flip",crossAxis:P==="flip"?"alignment":!1,fallbackAxisSideDirection:Y}),we=_t?null:jH(Ft=>{const Kn=Kt(Ft.elements.floating).documentElement;return{...be,rootBoundary:R?{x:0,y:0,width:Kn.clientWidth,height:Kn.clientHeight}:void 0,mainAxis:P!=="none",crossAxis:me,limiter:p||R?void 0:HH(Ws=>{if(!xe.current)return{};const{width:Nn,height:ds}=xe.current.getBoundingClientRect(),co=br(Es(Ws.placement)),Js=co==="y"?Nn:ds,di=co==="y"?J.left+J.right:J.top+J.bottom;return{offset:Js/2+di/2}})}},[be,p,R,J,P]);H==="shift"||P==="shift"||c==="center"?Xe.push(we,Ee):Xe.push(Ee,we),Xe.push(FH({...be,apply({elements:{floating:Ft},rects:{reference:Kn},availableWidth:Ws,availableHeight:Nn}){const ds=Ft.style;ds.setProperty("--available-width",`${Ws}px`),ds.setProperty("--available-height",`${Nn}px`),ds.setProperty("--anchor-width",`${Kn.width}px`),ds.setProperty("--anchor-height",`${Kn.height}px`)}}),M7(()=>({element:xe.current||document.createElement("div"),padding:b,offsetParent:"floating"}),[b]),{name:"transformOrigin",fn(Ft){const{elements:Kn,middlewareData:Ws,placement:Nn,rects:ds,y:co}=Ft,Js=Es(Nn),di=br(Js),pi=xe.current,Sg=Ws.arrow?.x||0,Cd=Ws.arrow?.y||0,au=pi?.clientWidth||0,Ra=pi?.clientHeight||0,cu=Sg+au/2,lu=Cd+Ra/2,Ad=Math.abs(Ws.shift?.y||0),Td=ds.reference.height/2,lo=typeof i=="function"?i(FA(Ft,r,ye)):i,uu=Ad>lo,Id={top:`${cu}px calc(100% + ${lo}px)`,bottom:`${cu}px ${-lo}px`,left:`calc(100% + ${lo}px) ${lu}px`,right:`${-lo}px ${lu}px`}[Js],Od=`${cu}px ${ds.reference.y+Td-co}px`;return Kn.floating.style.setProperty("--transform-origin",me&&di==="y"&&uu?Od:Id),{}}},D7,O),ht(()=>{!w&&S&&S.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[w,S]);const qe=M.useMemo(()=>({elementResize:!g&&typeof ResizeObserver<"u",layoutShift:!g&&typeof IntersectionObserver<"u"}),[g]),{refs:Oe,elements:je,x:De,y:nt,middlewareData:Bt,update:We,placement:Tt,context:Rn,isPositioned:It,floatingStyles:Tr}=xV({rootContext:S,placement:oe,middleware:Xe,strategy:n,whileElementsMounted:v?void 0:(...Ft)=>NA(...Ft,qe),nodeId:C,externalTree:T}),{sideX:dt,sideY:$t}=Bt.adaptiveOrigin||_h,mt=It?n:"fixed",Os=M.useMemo(()=>{const Ft=O?{position:mt,[dt]:De,[$t]:nt}:{position:mt,...Tr};return It||(Ft.opacity=0),Ft},[O,mt,dt,De,$t,nt,Tr,It]),Xs=M.useRef(null);ht(()=>{if(!w)return;const Ft=te.current,Kn=typeof Ft=="function"?Ft():Ft,Nn=(qA(Kn)?Kn.current:Kn)||null||null;Nn!==Xs.current&&(Oe.setPositionReference(Nn),Xs.current=Nn)},[w,Oe,G,te]),M.useEffect(()=>{if(!w)return;const Ft=te.current;typeof Ft!="function"&&qA(Ft)&&Ft.current!==Xs.current&&(Oe.setPositionReference(Ft.current),Xs.current=Ft.current)},[w,Oe,G,te]),M.useEffect(()=>{if(v&&w&&je.domReference&&je.floating)return NA(je.domReference,je.floating,We,qe)},[v,w,je,We,qe]);const ao=Es(Tt),Rd=QM(r,ao,ye),fi=ia(Tt)||"center",Gn=!!Bt.hide?.referenceHidden;ht(()=>{k&&w&&It&&j(ao)},[k,w,It,ao]);const Ir=M.useMemo(()=>({position:"absolute",top:Bt.arrow?.y,left:Bt.arrow?.x}),[Bt.arrow]),Zn=Bt.arrow?.centerOffset!==0;return M.useMemo(()=>({positionerStyles:Os,arrowStyles:Ir,arrowRef:xe,arrowUncentered:Zn,side:Rd,align:fi,physicalSide:ao,anchorHidden:Gn,refs:Oe,context:Rn,isPositioned:It,update:We}),[Os,Ir,xe,Zn,Rd,fi,ao,Gn,Oe,Rn,It,We])}function qA(e){return e!=null&&"current"in e}function YM(e){return e==="starting"?U8:Hs}const N7=M.forwardRef(function(t,n){const{render:r,className:i,anchor:c,positionMethod:l="absolute",side:f="top",align:d="center",sideOffset:p=0,alignOffset:b=0,collisionBoundary:g="clipping-ancestors",collisionPadding:v=5,arrowPadding:S=5,sticky:w=!1,disableAnchorTracking:E=!1,collisionAvoidance:R=H8,...C}=t,O=Xf(),k=R7(),T=O.useState("open"),$=O.useState("mounted"),j=O.useState("trackCursorAxis"),H=O.useState("disableHoverablePopup"),P=O.useState("floatingRootContext"),Y=O.useState("instantType"),ne=O.useState("transitionStatus"),re=O.useState("hasViewport"),G=P7({anchor:c,positionMethod:l,floatingRootContext:P,mounted:$,side:f,sideOffset:p,align:d,alignOffset:b,collisionBoundary:g,collisionPadding:v,sticky:w,arrowPadding:S,disableAnchorTracking:E,keepMounted:k,collisionAvoidance:R,adaptiveOrigin:re?k7:void 0}),te=M.useMemo(()=>{const oe={};return(!T||j==="both"||H)&&(oe.pointerEvents="none"),{role:"presentation",hidden:!$,style:{...G.positionerStyles,...oe}}},[T,j,H,$,G.positionerStyles]),ue=M.useMemo(()=>({open:T,side:G.side,align:G.align,anchorHidden:G.anchorHidden,instant:j!=="none"?"tracking-cursor":Y}),[T,G.side,G.align,G.anchorHidden,j,Y]),ye=M.useMemo(()=>({...ue,arrowRef:G.arrowRef,arrowStyles:G.arrowStyles,arrowUncentered:G.arrowUncentered}),[ue,G.arrowRef,G.arrowStyles,G.arrowUncentered]),V=Sr("div",t,{state:ue,props:[te,YM(ne),C],ref:[n,O.useStateSetter("positionerElement")],stateAttributesMapping:Qf});return N.jsx(ZM.Provider,{value:ye,children:V})}),L7={...Qf,...lS},z7=M.forwardRef(function(t,n){const{className:r,render:i,...c}=t,l=Xf(),{side:f,align:d}=KM(),p=l.useState("open"),b=l.useState("instantType"),g=l.useState("transitionStatus"),v=l.useState("popupProps"),S=l.useState("floatingRootContext");uS({open:p,ref:l.context.popupRef,onComplete(){p&&l.context.onOpenChangeComplete?.(!0)}});const w=l.useState("disabled"),E=l.useState("closeDelay");return IV(S,{enabled:!w,closeDelay:E}),Sr("div",t,{state:{open:p,side:f,align:d,instant:b,transitionStatus:g},ref:[n,l.context.popupRef,l.useStateSetter("popupElement")],props:[v,YM(g),c],stateAttributesMapping:L7})}),B7=M.forwardRef(function(t,n){const{className:r,render:i,...c}=t,f=Xf().useState("instantType"),{open:d,arrowRef:p,side:b,align:g,arrowUncentered:v,arrowStyles:S}=KM();return Sr("div",t,{state:{open:d,side:b,align:g,uncentered:v,instant:f},ref:[n,p],props:[{style:S,"aria-hidden":!0},c],stateAttributesMapping:Qf})}),$7=function(t){const{delay:n,closeDelay:r,timeout:i=400}=t,c=M.useMemo(()=>({delay:n,closeDelay:r}),[n,r]),l=M.useMemo(()=>({open:n,close:r}),[n,r]);return N.jsx(qM.Provider,{value:c,children:N.jsx(q9,{delay:l,timeoutMs:i,children:t.children})})};function U7(e){const t=kt.c(6);let n,r;t[0]!==e?({delay:r,...n}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const i=r===void 0?0:r;let c;return t[3]!==i||t[4]!==n?(c=N.jsx($7,{"data-slot":"tooltip-provider",delay:i,...n}),t[3]=i,t[4]=n,t[5]=c):c=t[5],c}function j7(e){const t=kt.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=N.jsx(U7,{children:N.jsx(v7,{"data-slot":"tooltip",...n})}),t[2]=n,t[3]=r):r=t[3],r}function H7(e){const t=kt.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=N.jsx(x7,{"data-slot":"tooltip-trigger",...n}),t[2]=n,t[3]=r):r=t[3],r}function V7(e){const t=kt.c(21);let n,r,i,c,l,f,d;t[0]!==e?({className:r,side:c,sideOffset:l,align:f,alignOffset:d,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l,t[6]=f,t[7]=d):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6],d=t[7]);const p=c===void 0?"top":c,b=l===void 0?4:l,g=f===void 0?"center":f,v=d===void 0?0:d;let S;t[8]!==r?(S=cn("data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in **:data-[slot=kbd]:rounded-md",r),t[8]=r,t[9]=S):S=t[9];let w;t[10]===Symbol.for("react.memo_cache_sentinel")?(w=N.jsx(B7,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=right]:top-1/2! data-[side=left]:-right-1 data-[side=top]:-bottom-2.5 data-[side=right]:-left-1 data-[side=left]:-translate-y-1/2 data-[side=right]:-translate-y-1/2"}),t[10]=w):w=t[10];let E;t[11]!==n||t[12]!==i||t[13]!==S?(E=N.jsxs(z7,{className:S,"data-slot":"tooltip-content",...i,children:[n,w]}),t[11]=n,t[12]=i,t[13]=S,t[14]=E):E=t[14];let R;return t[15]!==g||t[16]!==v||t[17]!==p||t[18]!==b||t[19]!==E?(R=N.jsx(A7,{children:N.jsx(N7,{align:g,alignOffset:v,className:"isolate z-50",side:p,sideOffset:b,children:E})}),t[15]=g,t[16]=v,t[17]=p,t[18]=b,t[19]=E,t[20]=R):R=t[20],R}const F7=768,XM=`(max-width: ${F7-1}px)`;function q7(e){const t=window.matchMedia(XM);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function G7(){return window.matchMedia(XM).matches}function Z7(){return M.useSyncExternalStore(q7,G7)}const K7="sidebar_state",Q7=3600*24*7,Y7="12rem",X7="16rem",W7="3rem",J7="b",WM=M.createContext(null);function Im(){const e=M.useContext(WM);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function eF(e){const t=kt.c(36);let n,r,i,c,l,f,d;t[0]!==e?({defaultOpen:d,open:i,onOpenChange:l,className:r,style:f,children:n,...c}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l,t[6]=f,t[7]=d):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6],d=t[7]);const p=d===void 0?!0:d,b=Z7(),[g,v]=M.useState(!1),[S,w]=M.useState(p),E=i??S;let R;t[8]!==E||t[9]!==l?(R=ue=>{const ye=typeof ue=="function"?ue(E):ue;l?l(ye):w(ye),document.cookie=`${K7}=${ye}; path=/; max-age=${Q7}`},t[8]=E,t[9]=l,t[10]=R):R=t[10];const C=R;let O;t[11]!==b||t[12]!==C?(O=()=>b?v(nF):C(tF),t[11]=b,t[12]=C,t[13]=O):O=t[13];const k=O;let T,$;t[14]!==k?(T=()=>{const ue=ye=>{ye.key===J7&&(ye.metaKey||ye.ctrlKey)&&(ye.preventDefault(),k())};return window.addEventListener("keydown",ue),()=>window.removeEventListener("keydown",ue)},$=[k],t[14]=k,t[15]=T,t[16]=$):(T=t[15],$=t[16]),M.useEffect(T,$);const j=E?"expanded":"collapsed";let H;t[17]!==b||t[18]!==E||t[19]!==g||t[20]!==C||t[21]!==j||t[22]!==k?(H={state:j,open:E,setOpen:C,isMobile:b,openMobile:g,setOpenMobile:v,toggleSidebar:k},t[17]=b,t[18]=E,t[19]=g,t[20]=C,t[21]=j,t[22]=k,t[23]=H):H=t[23];const P=H;let Y;t[24]!==r?(Y=cn("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),t[24]=r,t[25]=Y):Y=t[25];let ne;t[26]!==f?(ne={"--sidebar-width":Y7,"--sidebar-width-icon":W7,...f},t[26]=f,t[27]=ne):ne=t[27];const re=ne;let G;t[28]!==n||t[29]!==c||t[30]!==Y||t[31]!==re?(G=N.jsx("div",{className:Y,"data-slot":"sidebar-wrapper",style:re,...c,children:n}),t[28]=n,t[29]=c,t[30]=Y,t[31]=re,t[32]=G):G=t[32];let te;return t[33]!==P||t[34]!==G?(te=N.jsx(WM.Provider,{value:P,children:G}),t[33]=P,t[34]=G,t[35]=te):te=t[35],te}function tF(e){return!e}function nF(e){return!e}function sF(e){const t=kt.c(46);let n,r,i,c,l,f;t[0]!==e?({side:c,variant:l,collapsible:f,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l,t[6]=f):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6]);const d=c===void 0?"left":c,p=l===void 0?"sidebar":l,b=f===void 0?"offExamples":f,{isMobile:g,state:v,openMobile:S,setOpenMobile:w}=Im();if(b==="none"){let Y;t[7]!==r?(Y=cn("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),t[7]=r,t[8]=Y):Y=t[8];let ne;return t[9]!==n||t[10]!==i||t[11]!==Y?(ne=N.jsx("div",{className:Y,"data-slot":"sidebar",...i,children:n}),t[9]=n,t[10]=i,t[11]=Y,t[12]=ne):ne=t[12],ne}if(g){let Y;t[13]===Symbol.for("react.memo_cache_sentinel")?(Y={"--sidebar-width":X7},t[13]=Y):Y=t[13];let ne;t[14]===Symbol.for("react.memo_cache_sentinel")?(ne=N.jsxs(h7,{className:"sr-only",children:[N.jsx(m7,{children:"Sidebar"}),N.jsx(g7,{children:"Displays the mobile sidebar."})]}),t[14]=ne):ne=t[14];let re;t[15]!==n?(re=N.jsx("div",{className:"flex h-full w-full flex-col",children:n}),t[15]=n,t[16]=re):re=t[16];let G;t[17]!==d||t[18]!==re?(G=N.jsxs(p7,{className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar","data-slot":"sidebar",side:d,style:Y,children:[ne,re]}),t[17]=d,t[18]=re,t[19]=G):G=t[19];let te;return t[20]!==S||t[21]!==i||t[22]!==w||t[23]!==G?(te=N.jsx(u7,{onOpenChange:w,open:S,...i,children:G}),t[20]=S,t[21]=i,t[22]=w,t[23]=G,t[24]=te):te=t[24],te}const E=v==="collapsed"?b:"",R=p==="floating"||p==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let C;t[25]!==R?(C=cn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offExamples]:w-0","group-data-[side=right]:rotate-180",R),t[25]=R,t[26]=C):C=t[26];let O;t[27]!==C?(O=N.jsx("div",{className:C,"data-slot":"sidebar-gap"}),t[27]=C,t[28]=O):O=t[28];const k=d==="left"?"left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]",T=p==="floating"||p==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l";let $;t[29]!==r||t[30]!==k||t[31]!==T?($=cn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",k,T,r),t[29]=r,t[30]=k,t[31]=T,t[32]=$):$=t[32];let j;t[33]!==n?(j=N.jsx("div",{className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border","data-sidebar":"sidebar","data-slot":"sidebar-inner",children:n}),t[33]=n,t[34]=j):j=t[34];let H;t[35]!==i||t[36]!==$||t[37]!==j?(H=N.jsx("div",{className:$,"data-slot":"sidebar-container",...i,children:j}),t[35]=i,t[36]=$,t[37]=j,t[38]=H):H=t[38];let P;return t[39]!==d||t[40]!==v||t[41]!==H||t[42]!==E||t[43]!==O||t[44]!==p?(P=N.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-collapsible":E,"data-side":d,"data-slot":"sidebar","data-state":v,"data-variant":p,children:[O,H]}),t[39]=d,t[40]=v,t[41]=H,t[42]=E,t[43]=O,t[44]=p,t[45]=P):P=t[45],P}function rF(e){const t=kt.c(15);let n,r,i;t[0]!==e?({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]);const{toggleSidebar:c}=Im();let l;t[4]!==n?(l=cn(n),t[4]=n,t[5]=l):l=t[5];let f;t[6]!==r||t[7]!==c?(f=g=>{r?.(g),c()},t[6]=r,t[7]=c,t[8]=f):f=t[8];let d,p;t[9]===Symbol.for("react.memo_cache_sentinel")?(d=N.jsx(S5,{}),p=N.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),t[9]=d,t[10]=p):(d=t[9],p=t[10]);let b;return t[11]!==i||t[12]!==l||t[13]!==f?(b=N.jsxs(Tl,{className:l,"data-sidebar":"trigger","data-slot":"sidebar-trigger",onClick:f,size:"icon-lg",variant:"ghost",...i,children:[d,p]}),t[11]=i,t[12]=l,t[13]=f,t[14]=b):b=t[14],b}function oF(e){const t=kt.c(9);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const{toggleSidebar:i}=Im();let c;t[3]!==n?(c=cn("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offExamples]:translate-x-0 hover:group-data-[collapsible=offExamples]:bg-sidebar group-data-[collapsible=offExamples]:after:left-full","[[data-side=left][data-collapsible=offExamples]_&]:-right-2","[[data-side=right][data-collapsible=offExamples]_&]:-left-2",n),t[3]=n,t[4]=c):c=t[4];let l;return t[5]!==r||t[6]!==c||t[7]!==i?(l=N.jsx("button",{"aria-label":"Toggle Sidebar",className:c,"data-sidebar":"rail","data-slot":"sidebar-rail",onClick:i,tabIndex:-1,title:"Toggle Sidebar",...r}),t[5]=r,t[6]=c,t[7]=i,t[8]=l):l=t[8],l}function iF(e){const t=kt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=cn("flex flex-col gap-2 p-2",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=N.jsx("div",{className:i,"data-sidebar":"footer","data-slot":"sidebar-footer",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function aF(e){const t=kt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=cn("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=N.jsx("div",{className:i,"data-sidebar":"content","data-slot":"sidebar-content",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function sh(e){const t=kt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=cn("relative flex w-full min-w-0 flex-col px-2 py-1",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=N.jsx("div",{className:i,"data-sidebar":"group","data-slot":"sidebar-group",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function rh(e){const t=kt.c(10);let n,r,i,c;if(t[0]!==e){const{className:d,render:p,...b}=e;n=p,c=gO,r="div",i=Sm({className:cn("flex h-8 shrink-0 items-center rounded-md px-2 text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 [&>svg]:size-4 [&>svg]:shrink-0",d)},b),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c}else n=t[1],r=t[2],i=t[3],c=t[4];let l;t[5]===Symbol.for("react.memo_cache_sentinel")?(l={slot:"sidebar-group-label",sidebar:"group-label"},t[5]=l):l=t[5];let f;return t[6]!==n||t[7]!==r||t[8]!==i?(f={defaultTagName:r,props:i,render:n,state:l},t[6]=n,t[7]=r,t[8]=i,t[9]=f):f=t[9],c(f)}function uf(e){const t=kt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=cn("flex w-full min-w-0 flex-col gap-px",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=N.jsx("ul",{className:i,"data-sidebar":"menu","data-slot":"sidebar-menu",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function Hr(e){const t=kt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=cn("group/menu-item relative",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=N.jsx("li",{className:i,"data-sidebar":"menu-item","data-slot":"sidebar-menu-item",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}const cF=vO("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-xs",sm:"h-7 text-xs",lg:"h-12 text-xs group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Vr(e){const t=kt.c(15);let{render:n,isActive:r,variant:i,size:c,tooltip:l,className:f,...d}=e;const p=r===void 0?!1:r,b=i===void 0?"default":i,g=c===void 0?"default":c,{isMobile:v,state:S}=Im(),w="button",E=Sm({className:cn(cF({variant:b,size:g}),f)},d),R=l?H7:n;let C;t[0]!==p||t[1]!==g?(C={slot:"sidebar-menu-button",sidebar:"menu-button",size:g,active:p},t[0]=p,t[1]=g,t[2]=C):C=t[2];let O;t[3]!==E||t[4]!==R||t[5]!==C?(O={defaultTagName:w,props:E,render:R,state:C},t[3]=E,t[4]=R,t[5]=C,t[6]=O):O=t[6];const k=gO(O);if(!l)return k;if(typeof l=="string"){let H;t[7]!==l?(H={children:l},t[7]=l,t[8]=H):H=t[8],l=H}const T=S!=="collapsed"||v;let $;t[9]!==T||t[10]!==l?($=N.jsx(V7,{align:"center",hidden:T,side:"right",...l}),t[9]=T,t[10]=l,t[11]=$):$=t[11];let j;return t[12]!==k||t[13]!==$?(j=N.jsxs(j7,{children:[k,$]}),t[12]=k,t[13]=$,t[14]=j):j=t[14],j}function lF(){const e=kt.c(8),{theme:t,setTheme:n}=A8();let r;e[0]!==n||e[1]!==t?(r=()=>{n(t==="light"?"dark":t==="dark"?"light":"dark")},e[0]=n,e[1]=t,e[2]=r):r=e[2];const i=r;let c,l,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=N.jsx(E5,{className:"size-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),l=N.jsx(g5,{className:"absolute size-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),f=N.jsx("span",{className:"sr-only",children:"Toggle theme"}),e[3]=c,e[4]=l,e[5]=f):(c=e[3],l=e[4],f=e[5]);let d;return e[6]!==i?(d=N.jsxs(Tl,{className:"rounded-full",onClick:i,size:"icon-sm",variant:"ghost",children:[c,l,f]}),e[6]=i,e[7]=d):d=e[7],d}function JM(){const e=kt.c(3);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=cn("z-50 flex h-10 shrink-0 items-center gap-2 border-sidebar-border border-b bg-sidebar px-4 text-sidebar-foreground","sticky top-0"),n=N.jsx(rF,{className:"-ml-1"}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=N.jsxs("header",{className:t,children:[n,N.jsx("div",{className:"flex w-full justify-end",children:N.jsx(lF,{})})]}),e[2]=r):r=e[2],r}function uF(){const e=kt.c(3);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=N.jsx("h1",{className:"font-bold text-4xl",children:"404"}),n=N.jsx("p",{className:"text-muted-foreground",children:"Page not found"}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=N.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-4",children:[t,n,N.jsx($s,{to:"/",children:N.jsx(Tl,{variant:"outline",children:"Go back home"})})]}),e[2]=r):r=e[2],r}function pe(e,t,n){function r(f,d){if(f._zod||Object.defineProperty(f,"_zod",{value:{def:d,constr:l,traits:new Set},enumerable:!1}),f._zod.traits.has(e))return;f._zod.traits.add(e),t(f,d);const p=l.prototype,b=Object.keys(p);for(let g=0;gn?.Parent&&f instanceof n.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class _l extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class eD extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const tD={};function oc(e){return tD}function nD(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function bv(e,t){return typeof t=="bigint"?t.toString():t}function vS(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function SS(e){return e==null}function _S(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function fF(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const d=r.match(/\d?e-(\d?)/);d?.[1]&&(i=Number.parseInt(d[1]))}const c=n>i?n:i,l=Number.parseInt(e.toFixed(c).replace(".","")),f=Number.parseInt(t.toFixed(c).replace(".",""));return l%f/10**c}const GA=Symbol("evaluating");function Dt(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==GA)return r===void 0&&(r=GA,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function dc(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function aa(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function ZA(e){return JSON.stringify(e)}function dF(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const sD="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Yh(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const pF=vS(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Lf(e){if(Yh(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Yh(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function rD(e){return Lf(e)?{...e}:Array.isArray(e)?[...e]:e}const hF=new Set(["string","number","symbol"]);function Om(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ca(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Ue(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function mF(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const gF={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]};function yF(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const c=aa(e._zod.def,{get shape(){const l={};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&(l[f]=n.shape[f])}return dc(this,"shape",l),l},checks:[]});return ca(e,c)}function bF(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const c=aa(e._zod.def,{get shape(){const l={...e._zod.def.shape};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&delete l[f]}return dc(this,"shape",l),l},checks:[]});return ca(e,c)}function vF(e,t){if(!Lf(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const c=e._zod.def.shape;for(const l in t)if(Object.getOwnPropertyDescriptor(c,l)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const i=aa(e._zod.def,{get shape(){const c={...e._zod.def.shape,...t};return dc(this,"shape",c),c}});return ca(e,i)}function SF(e,t){if(!Lf(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=aa(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return dc(this,"shape",r),r}});return ca(e,n)}function _F(e,t){const n=aa(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return dc(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return ca(e,n)}function wF(e,t,n){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const l=aa(t._zod.def,{get shape(){const f=t._zod.def.shape,d={...f};if(n)for(const p in n){if(!(p in f))throw new Error(`Unrecognized key: "${p}"`);n[p]&&(d[p]=e?new e({type:"optional",innerType:f[p]}):f[p])}else for(const p in f)d[p]=e?new e({type:"optional",innerType:f[p]}):f[p];return dc(this,"shape",d),d},checks:[]});return ca(t,l)}function EF(e,t,n){const r=aa(t._zod.def,{get shape(){const i=t._zod.def.shape,c={...i};if(n)for(const l in n){if(!(l in c))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(c[l]=new e({type:"nonoptional",innerType:i[l]}))}else for(const l in i)c[l]=new e({type:"nonoptional",innerType:i[l]});return dc(this,"shape",c),c}});return ca(t,r)}function ml(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function oh(e){return typeof e=="string"?e:e?.message}function ic(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=oh(e.inst?._zod.def?.error?.(e))??oh(t?.error?.(e))??oh(n.customError?.(e))??oh(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function wS(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function zf(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const iD=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,bv,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},aD=pe("$ZodError",iD),Mm=pe("$ZodError",iD,{Parent:Error});function xF(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function RF(e,t=n=>n.message){const n={_errors:[]},r=i=>{for(const c of i.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>r({issues:l}));else if(c.code==="invalid_key")r({issues:c.issues});else if(c.code==="invalid_element")r({issues:c.issues});else if(c.path.length===0)n._errors.push(t(c));else{let l=n,f=0;for(;f(t,n,r,i)=>{const c=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},c);if(l instanceof Promise)throw new _l;if(l.issues.length){const f=new(i?.Err??e)(l.issues.map(d=>ic(d,c,oc())));throw sD(f,i?.callee),f}return l.value},GRe=Dm(Mm),km=e=>async(t,n,r,i)=>{const c=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},c);if(l instanceof Promise&&(l=await l),l.issues.length){const f=new(i?.Err??e)(l.issues.map(d=>ic(d,c,oc())));throw sD(f,i?.callee),f}return l.value},ZRe=km(Mm),Pm=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},c=t._zod.run({value:n,issues:[]},i);if(c instanceof Promise)throw new _l;return c.issues.length?{success:!1,error:new(e??aD)(c.issues.map(l=>ic(l,i,oc())))}:{success:!0,data:c.value}},CF=Pm(Mm),Nm=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let c=t._zod.run({value:n,issues:[]},i);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new e(c.issues.map(l=>ic(l,i,oc())))}:{success:!0,data:c.value}},AF=Nm(Mm),TF=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Dm(e)(t,n,i)},IF=e=>(t,n,r)=>Dm(e)(t,n,r),OF=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return km(e)(t,n,i)},MF=e=>async(t,n,r)=>km(e)(t,n,r),DF=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Pm(e)(t,n,i)},kF=e=>(t,n,r)=>Pm(e)(t,n,r),PF=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Nm(e)(t,n,i)},NF=e=>async(t,n,r)=>Nm(e)(t,n,r),LF=/^[cC][^\s-]{8,}$/,zF=/^[0-9a-z]+$/,BF=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,$F=/^[0-9a-vA-V]{20}$/,UF=/^[A-Za-z0-9]{27}$/,jF=/^[a-zA-Z0-9_-]{21}$/,HF=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,VF=/^([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})$/,KA=e=>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|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,FF=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,qF="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function GF(){return new RegExp(qF,"u")}const ZF=/^(?:(?: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])$/,KF=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,QF=/^((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])$/,YF=/^(([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])$/,XF=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,cD=/^[A-Za-z0-9_-]*$/,WF=/^\+[1-9]\d{6,14}$/,lD="(?:(?:\\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])))",JF=new RegExp(`^${lD}$`);function uD(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function eq(e){return new RegExp(`^${uD(e)}$`)}function tq(e){const t=uD({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${lD}T(?:${r})$`)}const nq=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},sq=/^-?\d+$/,rq=/^-?\d+(?:\.\d+)?$/,oq=/^(?:true|false)$/i,iq=/^[^A-Z]*$/,aq=/^[^a-z]*$/,Rs=pe("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),fD={number:"number",bigint:"bigint",object:"date"},dD=pe("$ZodCheckLessThan",(e,t)=>{Rs.init(e,t);const n=fD[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,c=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value{(t.inclusive?r.value<=t.value:r.value{Rs.init(e,t);const n=fD[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,c=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>c&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),cq=pe("$ZodCheckMultipleOf",(e,t)=>{Rs.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):fF(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),lq=pe("$ZodCheckNumberFormat",(e,t)=>{Rs.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,c]=gF[t.format];e._zod.onattach.push(l=>{const f=l._zod.bag;f.format=t.format,f.minimum=i,f.maximum=c,n&&(f.pattern=sq)}),e._zod.check=l=>{const f=l.value;if(n){if(!Number.isInteger(f)){l.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:f,inst:e});return}if(!Number.isSafeInteger(f)){f>0?l.issues.push({input:f,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):l.issues.push({input:f,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}fc&&l.issues.push({origin:"number",input:f,code:"too_big",maximum:c,inclusive:!0,inst:e,continue:!t.abort})}}),uq=pe("$ZodCheckMaxLength",(e,t)=>{var n;Rs.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!SS(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{const i=r.value;if(i.length<=t.maximum)return;const l=wS(i);r.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),fq=pe("$ZodCheckMinLength",(e,t)=>{var n;Rs.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!SS(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const l=wS(i);r.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),dq=pe("$ZodCheckLengthEquals",(e,t)=>{var n;Rs.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!SS(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,c=i.length;if(c===t.length)return;const l=wS(i),f=c>t.length;r.issues.push({origin:l,...f?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Lm=pe("$ZodCheckStringFormat",(e,t)=>{var n,r;Rs.init(e,t),e._zod.onattach.push(i=>{const c=i._zod.bag;c.format=t.format,t.pattern&&(c.patterns??(c.patterns=new Set),c.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),pq=pe("$ZodCheckRegex",(e,t)=>{Lm.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),hq=pe("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=iq),Lm.init(e,t)}),mq=pe("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=aq),Lm.init(e,t)}),gq=pe("$ZodCheckIncludes",(e,t)=>{Rs.init(e,t);const n=Om(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const c=i._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),yq=pe("$ZodCheckStartsWith",(e,t)=>{Rs.init(e,t);const n=new RegExp(`^${Om(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),bq=pe("$ZodCheckEndsWith",(e,t)=>{Rs.init(e,t);const n=new RegExp(`.*${Om(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),vq=pe("$ZodCheckOverwrite",(e,t)=>{Rs.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Sq{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(` `).filter(l=>l),i=Math.min(...r.map(l=>l.length-l.trimStart().length)),c=r.map(l=>l.slice(i)).map(l=>" ".repeat(this.indent*2)+l);for(const l of c)this.content.push(l)}compile(){const t=Function,n=this?.args,i=[...(this?.content??[""]).map(c=>` ${c}`)];return new t(...n,i.join(` -`))}}const kF={major:4,minor:3,patch:6},yn=pe("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=kF;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const c of i._zod.onattach)c(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,f,d)=>{let h=Yc(l),y;for(const g of f){if(g._zod.def.when){if(!g._zod.def.when(l))continue}else if(h)continue;const b=l.issues.length,v=g._zod.check(l);if(v instanceof Promise&&d?.async===!1)throw new tl;if(y||v instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await v,l.issues.length!==b&&(h||(h=Yc(l,b)))});else{if(l.issues.length===b)continue;h||(h=Yc(l,b))}}return y?y.then(()=>l):l},c=(l,f,d)=>{if(Yc(l))return l.aborted=!0,l;const h=i(f,r,d);if(h instanceof Promise){if(d.async===!1)throw new tl;return h.then(y=>e._zod.parse(y,d))}return e._zod.parse(h,d)};e._zod.run=(l,f)=>{if(f.skipChecks)return e._zod.parse(l,f);if(f.direction==="backward"){const h=e._zod.parse({value:l.value,issues:[]},{...f,skipChecks:!0});return h instanceof Promise?h.then(y=>c(y,l,f)):c(h,l,f)}const d=e._zod.parse(l,f);if(d instanceof Promise){if(f.async===!1)throw new tl;return d.then(h=>i(h,r,f))}return i(d,r,f)}}Ct(e,"~standard",()=>({validate:i=>{try{const c=$7(e,i);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return U7(e,i).then(l=>l.success?{value:l.data}:{issues:l.error?.issues})}},vendor:"zod",version:1}))}),qv=pe("$ZodString",(e,t)=>{yn.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??mF(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Vt=pe("$ZodStringFormat",(e,t)=>{nm.init(e,t),qv.init(e,t)}),PF=pe("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=nF),Vt.init(e,t)}),NF=pe("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=tT(r))}else t.pattern??(t.pattern=tT());Vt.init(e,t)}),zF=pe("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=sF),Vt.init(e,t)}),LF=pe("$ZodURL",(e,t)=>{Vt.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),BF=pe("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=oF()),Vt.init(e,t)}),$F=pe("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=eF),Vt.init(e,t)}),UF=pe("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Y7),Vt.init(e,t)}),jF=pe("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Q7),Vt.init(e,t)}),HF=pe("$ZodULID",(e,t)=>{t.pattern??(t.pattern=X7),Vt.init(e,t)}),FF=pe("$ZodXID",(e,t)=>{t.pattern??(t.pattern=W7),Vt.init(e,t)}),qF=pe("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=J7),Vt.init(e,t)}),VF=pe("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=pF(t)),Vt.init(e,t)}),GF=pe("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=dF),Vt.init(e,t)}),KF=pe("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=hF(t)),Vt.init(e,t)}),ZF=pe("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=tF),Vt.init(e,t)}),YF=pe("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=iF),Vt.init(e,t),e._zod.bag.format="ipv4"}),QF=pe("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=aF),Vt.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),XF=pe("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=cF),Vt.init(e,t)}),WF=pe("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=lF),Vt.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,c]=r;if(!c)throw new Error;const l=Number(c);if(`${l}`!==c)throw new Error;if(l<0||l>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function _M(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const JF=pe("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=uF),Vt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{_M(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function eq(e){if(!mM.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return _M(n)}const tq=pe("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=mM),Vt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{eq(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),nq=pe("$ZodE164",(e,t)=>{t.pattern??(t.pattern=fF),Vt.init(e,t)});function sq(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const rq=pe("$ZodJWT",(e,t)=>{Vt.init(e,t),e._zod.check=n=>{sq(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),wM=pe("$ZodNumber",(e,t)=>{yn.init(e,t),e._zod.pattern=e._zod.bag.pattern??yF,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const c=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...c?{received:c}:{}}),n}}),oq=pe("$ZodNumberFormat",(e,t)=>{_F.init(e,t),wM.init(e,t)}),iq=pe("$ZodUnknown",(e,t)=>{yn.init(e,t),e._zod.parse=n=>n}),aq=pe("$ZodNever",(e,t)=>{yn.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function nT(e,t,n){e.issues.length&&t.issues.push(...dM(n,e.issues)),t.value[n]=e.value}const cq=pe("$ZodArray",(e,t)=>{yn.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const c=[];for(let l=0;lnT(h,n,l))):nT(d,n,l)}return c.length?Promise.all(c).then(()=>n):n}});function yp(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...dM(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function xM(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=A7(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function EM(e,t,n,r,i,c){const l=[],f=i.keySet,d=i.catchall._zod,h=d.def.type,y=d.optout==="optional";for(const g in t){if(f.has(g))continue;if(h==="never"){l.push(g);continue}const b=d.run({value:t[g],issues:[]},r);b instanceof Promise?e.push(b.then(v=>yp(v,n,g,t,y))):yp(b,n,g,t,y)}return l.length&&n.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:c}),e.length?Promise.all(e).then(()=>n):n}const lq=pe("$ZodObject",(e,t)=>{if(yn.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const f=t.shape;Object.defineProperty(t,"shape",{get:()=>{const d={...f};return Object.defineProperty(t,"shape",{value:d}),d}})}const r=Uv(()=>xM(t));Ct(e._zod,"propValues",()=>{const f=t.shape,d={};for(const h in f){const y=f[h]._zod;if(y.values){d[h]??(d[h]=new Set);for(const g of y.values)d[h].add(g)}}return d});const i=gp,c=t.catchall;let l;e._zod.parse=(f,d)=>{l??(l=r.value);const h=f.value;if(!i(h))return f.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),f;f.value={};const y=[],g=l.shape;for(const b of l.keys){const v=g[b],_=v._zod.optout==="optional",x=v._zod.run({value:h[b],issues:[]},d);x instanceof Promise?y.push(x.then(R=>yp(R,f,b,h,_))):yp(x,f,b,h,_)}return c?EM(y,h,f,d,r.value,e):y.length?Promise.all(y).then(()=>f):f}}),uq=pe("$ZodObjectJIT",(e,t)=>{lq.init(e,t);const n=e._zod.parse,r=Uv(()=>xM(t)),i=b=>{const v=new DF(["shape","payload","ctx"]),_=r.value,x=D=>{const A=eT(D);return`shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`};v.write("const input = payload.value;");const R=Object.create(null);let C=0;for(const D of _.keys)R[D]=`key_${C++}`;v.write("const newResult = {};");for(const D of _.keys){const A=R[D],B=eT(D),H=b[D]?._zod?.optout==="optional";v.write(`const ${A} = ${x(D)};`),H?v.write(` - if (${A}.issues.length) { - if (${B} in input) { - payload.issues = payload.issues.concat(${A}.issues.map(iss => ({ +`))}}const _q={major:4,minor:3,patch:6},un=pe("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=_q;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const c of i._zod.onattach)c(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,f,d)=>{let p=ml(l),b;for(const g of f){if(g._zod.def.when){if(!g._zod.def.when(l))continue}else if(p)continue;const v=l.issues.length,S=g._zod.check(l);if(S instanceof Promise&&d?.async===!1)throw new _l;if(b||S instanceof Promise)b=(b??Promise.resolve()).then(async()=>{await S,l.issues.length!==v&&(p||(p=ml(l,v)))});else{if(l.issues.length===v)continue;p||(p=ml(l,v))}}return b?b.then(()=>l):l},c=(l,f,d)=>{if(ml(l))return l.aborted=!0,l;const p=i(f,r,d);if(p instanceof Promise){if(d.async===!1)throw new _l;return p.then(b=>e._zod.parse(b,d))}return e._zod.parse(p,d)};e._zod.run=(l,f)=>{if(f.skipChecks)return e._zod.parse(l,f);if(f.direction==="backward"){const p=e._zod.parse({value:l.value,issues:[]},{...f,skipChecks:!0});return p instanceof Promise?p.then(b=>c(b,l,f)):c(p,l,f)}const d=e._zod.parse(l,f);if(d instanceof Promise){if(f.async===!1)throw new _l;return d.then(p=>i(p,r,f))}return i(d,r,f)}}Dt(e,"~standard",()=>({validate:i=>{try{const c=CF(e,i);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return AF(e,i).then(l=>l.success?{value:l.data}:{issues:l.error?.issues})}},vendor:"zod",version:1}))}),ES=pe("$ZodString",(e,t)=>{un.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??nq(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Xt=pe("$ZodStringFormat",(e,t)=>{Lm.init(e,t),ES.init(e,t)}),wq=pe("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=VF),Xt.init(e,t)}),Eq=pe("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=KA(r))}else t.pattern??(t.pattern=KA());Xt.init(e,t)}),xq=pe("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=FF),Xt.init(e,t)}),Rq=pe("$ZodURL",(e,t)=>{Xt.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Cq=pe("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=GF()),Xt.init(e,t)}),Aq=pe("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=jF),Xt.init(e,t)}),Tq=pe("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=LF),Xt.init(e,t)}),Iq=pe("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=zF),Xt.init(e,t)}),Oq=pe("$ZodULID",(e,t)=>{t.pattern??(t.pattern=BF),Xt.init(e,t)}),Mq=pe("$ZodXID",(e,t)=>{t.pattern??(t.pattern=$F),Xt.init(e,t)}),Dq=pe("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=UF),Xt.init(e,t)}),kq=pe("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=tq(t)),Xt.init(e,t)}),Pq=pe("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=JF),Xt.init(e,t)}),Nq=pe("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=eq(t)),Xt.init(e,t)}),Lq=pe("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=HF),Xt.init(e,t)}),zq=pe("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=ZF),Xt.init(e,t),e._zod.bag.format="ipv4"}),Bq=pe("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=KF),Xt.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),$q=pe("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=QF),Xt.init(e,t)}),Uq=pe("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=YF),Xt.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,c]=r;if(!c)throw new Error;const l=Number(c);if(`${l}`!==c)throw new Error;if(l<0||l>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function hD(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const jq=pe("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=XF),Xt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{hD(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Hq(e){if(!cD.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return hD(n)}const Vq=pe("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=cD),Xt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Hq(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Fq=pe("$ZodE164",(e,t)=>{t.pattern??(t.pattern=WF),Xt.init(e,t)});function qq(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const Gq=pe("$ZodJWT",(e,t)=>{Xt.init(e,t),e._zod.check=n=>{qq(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),mD=pe("$ZodNumber",(e,t)=>{un.init(e,t),e._zod.pattern=e._zod.bag.pattern??rq,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const c=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...c?{received:c}:{}}),n}}),Zq=pe("$ZodNumberFormat",(e,t)=>{lq.init(e,t),mD.init(e,t)}),Kq=pe("$ZodBoolean",(e,t)=>{un.init(e,t),e._zod.pattern=oq,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),Qq=pe("$ZodUnknown",(e,t)=>{un.init(e,t),e._zod.parse=n=>n}),Yq=pe("$ZodNever",(e,t)=>{un.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function QA(e,t,n){e.issues.length&&t.issues.push(...oD(n,e.issues)),t.value[n]=e.value}const Xq=pe("$ZodArray",(e,t)=>{un.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const c=[];for(let l=0;lQA(p,n,l))):QA(d,n,l)}return c.length?Promise.all(c).then(()=>n):n}});function Xh(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...oD(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function gD(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=mF(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function yD(e,t,n,r,i,c){const l=[],f=i.keySet,d=i.catchall._zod,p=d.def.type,b=d.optout==="optional";for(const g in t){if(f.has(g))continue;if(p==="never"){l.push(g);continue}const v=d.run({value:t[g],issues:[]},r);v instanceof Promise?e.push(v.then(S=>Xh(S,n,g,t,b))):Xh(v,n,g,t,b)}return l.length&&n.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:c}),e.length?Promise.all(e).then(()=>n):n}const Wq=pe("$ZodObject",(e,t)=>{if(un.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const f=t.shape;Object.defineProperty(t,"shape",{get:()=>{const d={...f};return Object.defineProperty(t,"shape",{value:d}),d}})}const r=vS(()=>gD(t));Dt(e._zod,"propValues",()=>{const f=t.shape,d={};for(const p in f){const b=f[p]._zod;if(b.values){d[p]??(d[p]=new Set);for(const g of b.values)d[p].add(g)}}return d});const i=Yh,c=t.catchall;let l;e._zod.parse=(f,d)=>{l??(l=r.value);const p=f.value;if(!i(p))return f.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),f;f.value={};const b=[],g=l.shape;for(const v of l.keys){const S=g[v],w=S._zod.optout==="optional",E=S._zod.run({value:p[v],issues:[]},d);E instanceof Promise?b.push(E.then(R=>Xh(R,f,v,p,w))):Xh(E,f,v,p,w)}return c?yD(b,p,f,d,r.value,e):b.length?Promise.all(b).then(()=>f):f}}),Jq=pe("$ZodObjectJIT",(e,t)=>{Wq.init(e,t);const n=e._zod.parse,r=vS(()=>gD(t)),i=v=>{const S=new Sq(["shape","payload","ctx"]),w=r.value,E=k=>{const T=ZA(k);return`shape[${T}]._zod.run({ value: input[${T}], issues: [] }, ctx)`};S.write("const input = payload.value;");const R=Object.create(null);let C=0;for(const k of w.keys)R[k]=`key_${C++}`;S.write("const newResult = {};");for(const k of w.keys){const T=R[k],$=ZA(k),H=v[k]?._zod?.optout==="optional";S.write(`const ${T} = ${E(k)};`),H?S.write(` + if (${T}.issues.length) { + if (${$} in input) { + payload.issues = payload.issues.concat(${T}.issues.map(iss => ({ ...iss, - path: iss.path ? [${B}, ...iss.path] : [${B}] + path: iss.path ? [${$}, ...iss.path] : [${$}] }))); } } - if (${A}.value === undefined) { - if (${B} in input) { - newResult[${B}] = undefined; + if (${T}.value === undefined) { + if (${$} in input) { + newResult[${$}] = undefined; } } else { - newResult[${B}] = ${A}.value; + newResult[${$}] = ${T}.value; } - `):v.write(` - if (${A}.issues.length) { - payload.issues = payload.issues.concat(${A}.issues.map(iss => ({ + `):S.write(` + if (${T}.issues.length) { + payload.issues = payload.issues.concat(${T}.issues.map(iss => ({ ...iss, - path: iss.path ? [${B}, ...iss.path] : [${B}] + path: iss.path ? [${$}, ...iss.path] : [${$}] }))); } - if (${A}.value === undefined) { - if (${B} in input) { - newResult[${B}] = undefined; + if (${T}.value === undefined) { + if (${$} in input) { + newResult[${$}] = undefined; } } else { - newResult[${B}] = ${A}.value; + newResult[${$}] = ${T}.value; } - `)}v.write("payload.value = newResult;"),v.write("return payload;");const I=v.compile();return(D,A)=>I(b,D,A)};let c;const l=gp,f=!cM.jitless,h=f&&C7.value,y=t.catchall;let g;e._zod.parse=(b,v)=>{g??(g=r.value);const _=b.value;return l(_)?f&&h&&v?.async===!1&&v.jitless!==!0?(c||(c=i(t.shape)),b=c(b,v),y?EM([],_,b,v,g,e):b):n(b,v):(b.issues.push({expected:"object",code:"invalid_type",input:_,inst:e}),b)}});function sT(e,t,n,r){for(const c of e)if(c.issues.length===0)return t.value=c.value,t;const i=e.filter(c=>!Yc(c));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(c=>c.issues.map(l=>Ua(l,r,$a())))}),t)}const fq=pe("$ZodUnion",(e,t)=>{yn.init(e,t),Ct(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Ct(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Ct(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),Ct(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(c=>c._zod.pattern);return new RegExp(`^(${i.map(c=>Hv(c.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,c)=>{if(n)return r(i,c);let l=!1;const f=[];for(const d of t.options){const h=d._zod.run({value:i.value,issues:[]},c);if(h instanceof Promise)f.push(h),l=!0;else{if(h.issues.length===0)return h;f.push(h)}}return l?Promise.all(f).then(d=>sT(d,i,e,c)):sT(f,i,e,c)}}),dq=pe("$ZodIntersection",(e,t)=>{yn.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,c=t.left._zod.run({value:i,issues:[]},r),l=t.right._zod.run({value:i,issues:[]},r);return c instanceof Promise||l instanceof Promise?Promise.all([c,l]).then(([d,h])=>rT(n,d,h)):rT(n,c,l)}});function Ub(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(hf(e)&&hf(t)){const n=Object.keys(t),r=Object.keys(e).filter(c=>n.indexOf(c)!==-1),i={...e,...t};for(const c of r){const l=Ub(e[c],t[c]);if(!l.valid)return{valid:!1,mergeErrorPath:[c,...l.mergeErrorPath]};i[c]=l.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;rf.l&&f.r).map(([f])=>f);if(c.length&&i&&e.issues.push({...i,keys:c}),Yc(e))return e;const l=Ub(t.value,n.value);if(!l.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`);return e.value=l.data,e}const hq=pe("$ZodEnum",(e,t)=>{yn.init(e,t);const n=lM(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>T7.has(typeof i)).map(i=>typeof i=="string"?Qp(i):i.toString()).join("|")})$`),e._zod.parse=(i,c)=>{const l=i.value;return r.has(l)||i.issues.push({code:"invalid_value",values:n,input:l,inst:e}),i}}),pq=pe("$ZodTransform",(e,t)=>{yn.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new aM(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(l=>(n.value=l,n));if(i instanceof Promise)throw new tl;return n.value=i,n}});function oT(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const RM=pe("$ZodOptional",(e,t)=>{yn.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ct(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ct(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Hv(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>oT(c,n.value)):oT(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),mq=pe("$ZodExactOptional",(e,t)=>{RM.init(e,t),Ct(e._zod,"values",()=>t.innerType._zod.values),Ct(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),gq=pe("$ZodNullable",(e,t)=>{yn.init(e,t),Ct(e._zod,"optin",()=>t.innerType._zod.optin),Ct(e._zod,"optout",()=>t.innerType._zod.optout),Ct(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Hv(n.source)}|null)$`):void 0}),Ct(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),yq=pe("$ZodDefault",(e,t)=>{yn.init(e,t),e._zod.optin="optional",Ct(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>iT(c,t)):iT(i,t)}});function iT(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const bq=pe("$ZodPrefault",(e,t)=>{yn.init(e,t),e._zod.optin="optional",Ct(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),vq=pe("$ZodNonOptional",(e,t)=>{yn.init(e,t),Ct(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>aT(c,e)):aT(i,e)}});function aT(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Sq=pe("$ZodCatch",(e,t)=>{yn.init(e,t),Ct(e._zod,"optin",()=>t.innerType._zod.optin),Ct(e._zod,"optout",()=>t.innerType._zod.optout),Ct(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>(n.value=c.value,c.issues.length&&(n.value=t.catchValue({...n,error:{issues:c.issues.map(l=>Ua(l,r,$a()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(c=>Ua(c,r,$a()))},input:n.value}),n.issues=[]),n)}}),_q=pe("$ZodPipe",(e,t)=>{yn.init(e,t),Ct(e._zod,"values",()=>t.in._zod.values),Ct(e._zod,"optin",()=>t.in._zod.optin),Ct(e._zod,"optout",()=>t.out._zod.optout),Ct(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const c=t.out._zod.run(n,r);return c instanceof Promise?c.then(l=>Ch(l,t.in,r)):Ch(c,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(c=>Ch(c,t.out,r)):Ch(i,t.out,r)}});function Ch(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const wq=pe("$ZodReadonly",(e,t)=>{yn.init(e,t),Ct(e._zod,"propValues",()=>t.innerType._zod.propValues),Ct(e._zod,"values",()=>t.innerType._zod.values),Ct(e._zod,"optin",()=>t.innerType?._zod?.optin),Ct(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(cT):cT(i)}});function cT(e){return e.value=Object.freeze(e.value),e}const xq=pe("$ZodCustom",(e,t)=>{ws.init(e,t),yn.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(c=>lT(c,n,r,e));lT(i,n,r,e)}});function lT(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(pf(i))}}var uT;class Eq{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Rq(){return new Eq}(uT=globalThis).__zod_globalRegistry??(uT.__zod_globalRegistry=Rq());const Ku=globalThis.__zod_globalRegistry;function Cq(e,t){return new e({type:"string",...Ue(t)})}function Tq(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Ue(t)})}function fT(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Ue(t)})}function Aq(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Ue(t)})}function Iq(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ue(t)})}function Oq(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ue(t)})}function Mq(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ue(t)})}function Dq(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ue(t)})}function kq(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Ue(t)})}function Pq(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ue(t)})}function Nq(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Ue(t)})}function zq(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ue(t)})}function Lq(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Ue(t)})}function Bq(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Ue(t)})}function $q(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ue(t)})}function Uq(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ue(t)})}function jq(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ue(t)})}function Hq(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ue(t)})}function Fq(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ue(t)})}function qq(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Ue(t)})}function Vq(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Ue(t)})}function Gq(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Ue(t)})}function Kq(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Ue(t)})}function Zq(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ue(t)})}function Yq(e,t){return new e({type:"string",format:"date",check:"string_format",...Ue(t)})}function Qq(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Ue(t)})}function Xq(e,t){return new e({type:"string",format:"duration",check:"string_format",...Ue(t)})}function Wq(e,t){return new e({type:"number",checks:[],...Ue(t)})}function Jq(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Ue(t)})}function eV(e){return new e({type:"unknown"})}function tV(e,t){return new e({type:"never",...Ue(t)})}function dT(e,t){return new vM({check:"less_than",...Ue(t),value:e,inclusive:!1})}function A0(e,t){return new vM({check:"less_than",...Ue(t),value:e,inclusive:!0})}function hT(e,t){return new SM({check:"greater_than",...Ue(t),value:e,inclusive:!1})}function I0(e,t){return new SM({check:"greater_than",...Ue(t),value:e,inclusive:!0})}function pT(e,t){return new SF({check:"multiple_of",...Ue(t),value:e})}function CM(e,t){return new wF({check:"max_length",...Ue(t),maximum:e})}function bp(e,t){return new xF({check:"min_length",...Ue(t),minimum:e})}function TM(e,t){return new EF({check:"length_equals",...Ue(t),length:e})}function nV(e,t){return new RF({check:"string_format",format:"regex",...Ue(t),pattern:e})}function sV(e){return new CF({check:"string_format",format:"lowercase",...Ue(e)})}function rV(e){return new TF({check:"string_format",format:"uppercase",...Ue(e)})}function oV(e,t){return new AF({check:"string_format",format:"includes",...Ue(t),includes:e})}function iV(e,t){return new IF({check:"string_format",format:"starts_with",...Ue(t),prefix:e})}function aV(e,t){return new OF({check:"string_format",format:"ends_with",...Ue(t),suffix:e})}function vl(e){return new MF({check:"overwrite",tx:e})}function cV(e){return vl(t=>t.normalize(e))}function lV(){return vl(e=>e.trim())}function uV(){return vl(e=>e.toLowerCase())}function fV(){return vl(e=>e.toUpperCase())}function dV(){return vl(e=>R7(e))}function hV(e,t,n){return new e({type:"array",element:t,...Ue(n)})}function pV(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Ue(n)})}function mV(e){const t=gV(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(pf(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(pf(i))}},e(n.value,n)));return t}function gV(e,t){const n=new ws({check:"custom",...Ue(t)});return n._zod.check=e,n}function AM(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ku,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function jn(e,t,n={path:[],schemaPath:[]}){var r;const i=e._zod.def,c=t.seen.get(e);if(c)return c.count++,n.schemaPath.includes(e)&&(c.cycle=n.path),c.schema;const l={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,l);const f=e._zod.toJSONSchema?.();if(f)l.schema=f;else{const y={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,l.schema,y);else{const b=l.schema,v=t.processors[i.type];if(!v)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);v(e,t,b,y)}const g=e._zod.parent;g&&(l.ref||(l.ref=g),jn(g,t,y),t.seen.get(g).isParent=!0)}const d=t.metadataRegistry.get(e);return d&&Object.assign(l.schema,d),t.io==="input"&&ss(e)&&(delete l.schema.examples,delete l.schema.default),t.io==="input"&&l.schema._prefault&&((r=l.schema).default??(r.default=l.schema._prefault)),delete l.schema._prefault,t.seen.get(e).schema}function IM(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const l of e.seen.entries()){const f=e.metadataRegistry.get(l[0])?.id;if(f){const d=r.get(f);if(d&&d!==l[0])throw new Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(f,l[0])}}const i=l=>{const f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const g=e.external.registry.get(l[0])?.id,b=e.external.uri??(_=>_);if(g)return{ref:b(g)};const v=l[1].defId??l[1].schema.id??`schema${e.counter++}`;return l[1].defId=v,{defId:v,ref:`${b("__shared")}#/${f}/${v}`}}if(l[1]===n)return{ref:"#"};const h=`#/${f}/`,y=l[1].schema.id??`__schema${e.counter++}`;return{defId:y,ref:h+y}},c=l=>{if(l[1].schema.$ref)return;const f=l[1],{ref:d,defId:h}=i(l);f.def={...f.schema},h&&(f.defId=h);const y=f.schema;for(const g in y)delete y[g];y.$ref=d};if(e.cycles==="throw")for(const l of e.seen.entries()){const f=l[1];if(f.cycle)throw new Error(`Cycle detected: #/${f.cycle?.join("/")}/ + `)}S.write("payload.value = newResult;"),S.write("return payload;");const O=S.compile();return(k,T)=>O(v,k,T)};let c;const l=Yh,f=!tD.jitless,p=f&&pF.value,b=t.catchall;let g;e._zod.parse=(v,S)=>{g??(g=r.value);const w=v.value;return l(w)?f&&p&&S?.async===!1&&S.jitless!==!0?(c||(c=i(t.shape)),v=c(v,S),b?yD([],w,v,S,g,e):v):n(v,S):(v.issues.push({expected:"object",code:"invalid_type",input:w,inst:e}),v)}});function YA(e,t,n,r){for(const c of e)if(c.issues.length===0)return t.value=c.value,t;const i=e.filter(c=>!ml(c));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(c=>c.issues.map(l=>ic(l,r,oc())))}),t)}const eG=pe("$ZodUnion",(e,t)=>{un.init(e,t),Dt(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Dt(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Dt(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),Dt(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(c=>c._zod.pattern);return new RegExp(`^(${i.map(c=>_S(c.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,c)=>{if(n)return r(i,c);let l=!1;const f=[];for(const d of t.options){const p=d._zod.run({value:i.value,issues:[]},c);if(p instanceof Promise)f.push(p),l=!0;else{if(p.issues.length===0)return p;f.push(p)}}return l?Promise.all(f).then(d=>YA(d,i,e,c)):YA(f,i,e,c)}}),tG=pe("$ZodIntersection",(e,t)=>{un.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,c=t.left._zod.run({value:i,issues:[]},r),l=t.right._zod.run({value:i,issues:[]},r);return c instanceof Promise||l instanceof Promise?Promise.all([c,l]).then(([d,p])=>XA(n,d,p)):XA(n,c,l)}});function vv(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Lf(e)&&Lf(t)){const n=Object.keys(t),r=Object.keys(e).filter(c=>n.indexOf(c)!==-1),i={...e,...t};for(const c of r){const l=vv(e[c],t[c]);if(!l.valid)return{valid:!1,mergeErrorPath:[c,...l.mergeErrorPath]};i[c]=l.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;rf.l&&f.r).map(([f])=>f);if(c.length&&i&&e.issues.push({...i,keys:c}),ml(e))return e;const l=vv(t.value,n.value);if(!l.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`);return e.value=l.data,e}const nG=pe("$ZodEnum",(e,t)=>{un.init(e,t);const n=nD(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>hF.has(typeof i)).map(i=>typeof i=="string"?Om(i):i.toString()).join("|")})$`),e._zod.parse=(i,c)=>{const l=i.value;return r.has(l)||i.issues.push({code:"invalid_value",values:n,input:l,inst:e}),i}}),sG=pe("$ZodTransform",(e,t)=>{un.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new eD(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(l=>(n.value=l,n));if(i instanceof Promise)throw new _l;return n.value=i,n}});function WA(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const bD=pe("$ZodOptional",(e,t)=>{un.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Dt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Dt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${_S(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>WA(c,n.value)):WA(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),rG=pe("$ZodExactOptional",(e,t)=>{bD.init(e,t),Dt(e._zod,"values",()=>t.innerType._zod.values),Dt(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),oG=pe("$ZodNullable",(e,t)=>{un.init(e,t),Dt(e._zod,"optin",()=>t.innerType._zod.optin),Dt(e._zod,"optout",()=>t.innerType._zod.optout),Dt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${_S(n.source)}|null)$`):void 0}),Dt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),iG=pe("$ZodDefault",(e,t)=>{un.init(e,t),e._zod.optin="optional",Dt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>JA(c,t)):JA(i,t)}});function JA(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const aG=pe("$ZodPrefault",(e,t)=>{un.init(e,t),e._zod.optin="optional",Dt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),cG=pe("$ZodNonOptional",(e,t)=>{un.init(e,t),Dt(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>eT(c,e)):eT(i,e)}});function eT(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const lG=pe("$ZodCatch",(e,t)=>{un.init(e,t),Dt(e._zod,"optin",()=>t.innerType._zod.optin),Dt(e._zod,"optout",()=>t.innerType._zod.optout),Dt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>(n.value=c.value,c.issues.length&&(n.value=t.catchValue({...n,error:{issues:c.issues.map(l=>ic(l,r,oc()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(c=>ic(c,r,oc()))},input:n.value}),n.issues=[]),n)}}),uG=pe("$ZodPipe",(e,t)=>{un.init(e,t),Dt(e._zod,"values",()=>t.in._zod.values),Dt(e._zod,"optin",()=>t.in._zod.optin),Dt(e._zod,"optout",()=>t.out._zod.optout),Dt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const c=t.out._zod.run(n,r);return c instanceof Promise?c.then(l=>ih(l,t.in,r)):ih(c,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(c=>ih(c,t.out,r)):ih(i,t.out,r)}});function ih(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const fG=pe("$ZodReadonly",(e,t)=>{un.init(e,t),Dt(e._zod,"propValues",()=>t.innerType._zod.propValues),Dt(e._zod,"values",()=>t.innerType._zod.values),Dt(e._zod,"optin",()=>t.innerType?._zod?.optin),Dt(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(tT):tT(i)}});function tT(e){return e.value=Object.freeze(e.value),e}const dG=pe("$ZodCustom",(e,t)=>{Rs.init(e,t),un.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(c=>nT(c,n,r,e));nT(i,n,r,e)}});function nT(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(zf(i))}}var sT;class pG{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function hG(){return new pG}(sT=globalThis).__zod_globalRegistry??(sT.__zod_globalRegistry=hG());const yf=globalThis.__zod_globalRegistry;function mG(e,t){return new e({type:"string",...Ue(t)})}function gG(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Ue(t)})}function rT(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Ue(t)})}function yG(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Ue(t)})}function bG(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ue(t)})}function vG(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ue(t)})}function SG(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ue(t)})}function _G(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ue(t)})}function wG(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Ue(t)})}function EG(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ue(t)})}function xG(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Ue(t)})}function RG(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ue(t)})}function CG(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Ue(t)})}function AG(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Ue(t)})}function TG(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ue(t)})}function IG(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ue(t)})}function OG(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ue(t)})}function MG(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ue(t)})}function DG(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ue(t)})}function kG(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Ue(t)})}function PG(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Ue(t)})}function NG(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Ue(t)})}function LG(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Ue(t)})}function zG(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ue(t)})}function BG(e,t){return new e({type:"string",format:"date",check:"string_format",...Ue(t)})}function $G(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Ue(t)})}function UG(e,t){return new e({type:"string",format:"duration",check:"string_format",...Ue(t)})}function jG(e,t){return new e({type:"number",checks:[],...Ue(t)})}function HG(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Ue(t)})}function VG(e,t){return new e({type:"boolean",...Ue(t)})}function FG(e){return new e({type:"unknown"})}function qG(e,t){return new e({type:"never",...Ue(t)})}function oT(e,t){return new dD({check:"less_than",...Ue(t),value:e,inclusive:!1})}function ab(e,t){return new dD({check:"less_than",...Ue(t),value:e,inclusive:!0})}function iT(e,t){return new pD({check:"greater_than",...Ue(t),value:e,inclusive:!1})}function cb(e,t){return new pD({check:"greater_than",...Ue(t),value:e,inclusive:!0})}function aT(e,t){return new cq({check:"multiple_of",...Ue(t),value:e})}function vD(e,t){return new uq({check:"max_length",...Ue(t),maximum:e})}function Wh(e,t){return new fq({check:"min_length",...Ue(t),minimum:e})}function SD(e,t){return new dq({check:"length_equals",...Ue(t),length:e})}function GG(e,t){return new pq({check:"string_format",format:"regex",...Ue(t),pattern:e})}function ZG(e){return new hq({check:"string_format",format:"lowercase",...Ue(e)})}function KG(e){return new mq({check:"string_format",format:"uppercase",...Ue(e)})}function QG(e,t){return new gq({check:"string_format",format:"includes",...Ue(t),includes:e})}function YG(e,t){return new yq({check:"string_format",format:"starts_with",...Ue(t),prefix:e})}function XG(e,t){return new bq({check:"string_format",format:"ends_with",...Ue(t),suffix:e})}function $l(e){return new vq({check:"overwrite",tx:e})}function WG(e){return $l(t=>t.normalize(e))}function JG(){return $l(e=>e.trim())}function eZ(){return $l(e=>e.toLowerCase())}function tZ(){return $l(e=>e.toUpperCase())}function nZ(){return $l(e=>dF(e))}function sZ(e,t,n){return new e({type:"array",element:t,...Ue(n)})}function rZ(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Ue(n)})}function oZ(e){const t=iZ(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(zf(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(zf(i))}},e(n.value,n)));return t}function iZ(e,t){const n=new Rs({check:"custom",...Ue(t)});return n._zod.check=e,n}function _D(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??yf,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Vn(e,t,n={path:[],schemaPath:[]}){var r;const i=e._zod.def,c=t.seen.get(e);if(c)return c.count++,n.schemaPath.includes(e)&&(c.cycle=n.path),c.schema;const l={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,l);const f=e._zod.toJSONSchema?.();if(f)l.schema=f;else{const b={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,l.schema,b);else{const v=l.schema,S=t.processors[i.type];if(!S)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);S(e,t,v,b)}const g=e._zod.parent;g&&(l.ref||(l.ref=g),Vn(g,t,b),t.seen.get(g).isParent=!0)}const d=t.metadataRegistry.get(e);return d&&Object.assign(l.schema,d),t.io==="input"&&os(e)&&(delete l.schema.examples,delete l.schema.default),t.io==="input"&&l.schema._prefault&&((r=l.schema).default??(r.default=l.schema._prefault)),delete l.schema._prefault,t.seen.get(e).schema}function wD(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const l of e.seen.entries()){const f=e.metadataRegistry.get(l[0])?.id;if(f){const d=r.get(f);if(d&&d!==l[0])throw new Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(f,l[0])}}const i=l=>{const f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const g=e.external.registry.get(l[0])?.id,v=e.external.uri??(w=>w);if(g)return{ref:v(g)};const S=l[1].defId??l[1].schema.id??`schema${e.counter++}`;return l[1].defId=S,{defId:S,ref:`${v("__shared")}#/${f}/${S}`}}if(l[1]===n)return{ref:"#"};const p=`#/${f}/`,b=l[1].schema.id??`__schema${e.counter++}`;return{defId:b,ref:p+b}},c=l=>{if(l[1].schema.$ref)return;const f=l[1],{ref:d,defId:p}=i(l);f.def={...f.schema},p&&(f.defId=p);const b=f.schema;for(const g in b)delete b[g];b.$ref=d};if(e.cycles==="throw")for(const l of e.seen.entries()){const f=l[1];if(f.cycle)throw new Error(`Cycle detected: #/${f.cycle?.join("/")}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of e.seen.entries()){const f=l[1];if(t===l[0]){c(l);continue}if(e.external){const h=e.external.registry.get(l[0])?.id;if(t!==l[0]&&h){c(l);continue}}if(e.metadataRegistry.get(l[0])?.id){c(l);continue}if(f.cycle){c(l);continue}if(f.count>1&&e.reused==="ref"){c(l);continue}}}function OM(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=l=>{const f=e.seen.get(l);if(f.ref===null)return;const d=f.def??f.schema,h={...d},y=f.ref;if(f.ref=null,y){r(y);const b=e.seen.get(y),v=b.schema;if(v.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(v)):Object.assign(d,v),Object.assign(d,h),l._zod.parent===y)for(const x in d)x==="$ref"||x==="allOf"||x in h||delete d[x];if(v.$ref&&b.def)for(const x in d)x==="$ref"||x==="allOf"||x in b.def&&JSON.stringify(d[x])===JSON.stringify(b.def[x])&&delete d[x]}const g=l._zod.parent;if(g&&g!==y){r(g);const b=e.seen.get(g);if(b?.schema.$ref&&(d.$ref=b.schema.$ref,b.def))for(const v in d)v==="$ref"||v==="allOf"||v in b.def&&JSON.stringify(d[v])===JSON.stringify(b.def[v])&&delete d[v]}e.override({zodSchema:l,jsonSchema:d,path:f.path??[]})};for(const l of[...e.seen.entries()].reverse())r(l[0]);const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const l=e.external.registry.get(t)?.id;if(!l)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(l)}Object.assign(i,n.def??n.schema);const c=e.external?.defs??{};for(const l of e.seen.entries()){const f=l[1];f.def&&f.defId&&(c[f.defId]=f.def)}e.external||Object.keys(c).length>0&&(e.target==="draft-2020-12"?i.$defs=c:i.definitions=c);try{const l=JSON.parse(JSON.stringify(i));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:vp(t,"input",e.processors),output:vp(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function ss(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return ss(r.element,n);if(r.type==="set")return ss(r.valueType,n);if(r.type==="lazy")return ss(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return ss(r.innerType,n);if(r.type==="intersection")return ss(r.left,n)||ss(r.right,n);if(r.type==="record"||r.type==="map")return ss(r.keyType,n)||ss(r.valueType,n);if(r.type==="pipe")return ss(r.in,n)||ss(r.out,n);if(r.type==="object"){for(const i in r.shape)if(ss(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(ss(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(ss(i,n))return!0;return!!(r.rest&&ss(r.rest,n))}return!1}const yV=(e,t={})=>n=>{const r=AM({...n,processors:t});return jn(e,r),IM(r,e),OM(r,e)},vp=(e,t,n={})=>r=>{const{libraryOptions:i,target:c}=r??{},l=AM({...i??{},target:c,io:t,processors:n});return jn(e,l),IM(l,e),OM(l,e)},bV={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},vV=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:c,maximum:l,format:f,patterns:d,contentEncoding:h}=e._zod.bag;if(typeof c=="number"&&(i.minLength=c),typeof l=="number"&&(i.maxLength=l),f&&(i.format=bV[f]??f,i.format===""&&delete i.format,f==="time"&&delete i.format),h&&(i.contentEncoding=h),d&&d.size>0){const y=[...d];y.length===1?i.pattern=y[0].source:y.length>1&&(i.allOf=[...y.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},SV=(e,t,n,r)=>{const i=n,{minimum:c,maximum:l,format:f,multipleOf:d,exclusiveMaximum:h,exclusiveMinimum:y}=e._zod.bag;typeof f=="string"&&f.includes("int")?i.type="integer":i.type="number",typeof y=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=y,i.exclusiveMinimum=!0):i.exclusiveMinimum=y),typeof c=="number"&&(i.minimum=c,typeof y=="number"&&t.target!=="draft-04"&&(y>=c?delete i.minimum:delete i.exclusiveMinimum)),typeof h=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=h,i.exclusiveMaximum=!0):i.exclusiveMaximum=h),typeof l=="number"&&(i.maximum=l,typeof h=="number"&&t.target!=="draft-04"&&(h<=l?delete i.maximum:delete i.exclusiveMaximum)),typeof d=="number"&&(i.multipleOf=d)},_V=(e,t,n,r)=>{n.not={}},wV=(e,t,n,r)=>{},xV=(e,t,n,r)=>{const i=e._zod.def,c=lM(i.entries);c.every(l=>typeof l=="number")&&(n.type="number"),c.every(l=>typeof l=="string")&&(n.type="string"),n.enum=c},EV=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},RV=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},CV=(e,t,n,r)=>{const i=n,c=e._zod.def,{minimum:l,maximum:f}=e._zod.bag;typeof l=="number"&&(i.minItems=l),typeof f=="number"&&(i.maxItems=f),i.type="array",i.items=jn(c.element,t,{...r,path:[...r.path,"items"]})},TV=(e,t,n,r)=>{const i=n,c=e._zod.def;i.type="object",i.properties={};const l=c.shape;for(const h in l)i.properties[h]=jn(l[h],t,{...r,path:[...r.path,"properties",h]});const f=new Set(Object.keys(l)),d=new Set([...f].filter(h=>{const y=c.shape[h]._zod;return t.io==="input"?y.optin===void 0:y.optout===void 0}));d.size>0&&(i.required=Array.from(d)),c.catchall?._zod.def.type==="never"?i.additionalProperties=!1:c.catchall?c.catchall&&(i.additionalProperties=jn(c.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},AV=(e,t,n,r)=>{const i=e._zod.def,c=i.inclusive===!1,l=i.options.map((f,d)=>jn(f,t,{...r,path:[...r.path,c?"oneOf":"anyOf",d]}));c?n.oneOf=l:n.anyOf=l},IV=(e,t,n,r)=>{const i=e._zod.def,c=jn(i.left,t,{...r,path:[...r.path,"allOf",0]}),l=jn(i.right,t,{...r,path:[...r.path,"allOf",1]}),f=h=>"allOf"in h&&Object.keys(h).length===1,d=[...f(c)?c.allOf:[c],...f(l)?l.allOf:[l]];n.allOf=d},OV=(e,t,n,r)=>{const i=e._zod.def,c=jn(i.innerType,t,r),l=t.seen.get(e);t.target==="openapi-3.0"?(l.ref=i.innerType,n.nullable=!0):n.anyOf=[c,{type:"null"}]},MV=(e,t,n,r)=>{const i=e._zod.def;jn(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType},DV=(e,t,n,r)=>{const i=e._zod.def;jn(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},kV=(e,t,n,r)=>{const i=e._zod.def;jn(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},PV=(e,t,n,r)=>{const i=e._zod.def;jn(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType;let l;try{l=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=l},NV=(e,t,n,r)=>{const i=e._zod.def,c=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;jn(c,t,r);const l=t.seen.get(e);l.ref=c},zV=(e,t,n,r)=>{const i=e._zod.def;jn(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType,n.readOnly=!0},MM=(e,t,n,r)=>{const i=e._zod.def;jn(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType},LV=pe("ZodISODateTime",(e,t)=>{VF.init(e,t),Qt.init(e,t)});function BV(e){return Zq(LV,e)}const $V=pe("ZodISODate",(e,t)=>{GF.init(e,t),Qt.init(e,t)});function UV(e){return Yq($V,e)}const jV=pe("ZodISOTime",(e,t)=>{KF.init(e,t),Qt.init(e,t)});function HV(e){return Qq(jV,e)}const FV=pe("ZodISODuration",(e,t)=>{ZF.init(e,t),Qt.init(e,t)});function qV(e){return Xq(FV,e)}const VV=(e,t)=>{pM.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>B7(e,n)},flatten:{value:n=>L7(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,$b,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,$b,2)}},isEmpty:{get(){return e.issues.length===0}}})},fr=pe("ZodError",VV,{Parent:Error}),GV=Wp(fr),KV=Jp(fr),ZV=em(fr),YV=tm(fr),QV=j7(fr),XV=H7(fr),WV=F7(fr),JV=q7(fr),eG=V7(fr),tG=G7(fr),nG=K7(fr),sG=Z7(fr),bn=pe("ZodType",(e,t)=>(yn.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:vp(e,"input"),output:vp(e,"output")}}),e.toJSONSchema=yV(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Fi(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(n,r)=>qi(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>GV(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>ZV(e,n,r),e.parseAsync=async(n,r)=>KV(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>YV(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>QV(e,n,r),e.decode=(n,r)=>XV(e,n,r),e.encodeAsync=async(n,r)=>WV(e,n,r),e.decodeAsync=async(n,r)=>JV(e,n,r),e.safeEncode=(n,r)=>eG(e,n,r),e.safeDecode=(n,r)=>tG(e,n,r),e.safeEncodeAsync=async(n,r)=>nG(e,n,r),e.safeDecodeAsync=async(n,r)=>sG(e,n,r),e.refine=(n,r)=>e.check(XG(n,r)),e.superRefine=n=>e.check(WG(n)),e.overwrite=n=>e.check(vl(n)),e.optional=()=>vT(e),e.exactOptional=()=>BG(e),e.nullable=()=>ST(e),e.nullish=()=>vT(ST(e)),e.nonoptional=n=>qG(e,n),e.array=()=>TG(e),e.or=n=>MG([e,n]),e.and=n=>kG(e,n),e.transform=n=>_T(e,zG(n)),e.default=n=>jG(e,n),e.prefault=n=>FG(e,n),e.catch=n=>GG(e,n),e.pipe=n=>_T(e,n),e.readonly=()=>YG(e),e.describe=n=>{const r=e.clone();return Ku.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return Ku.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Ku.get(e);const r=e.clone();return Ku.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),DM=pe("_ZodString",(e,t)=>{qv.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(r,i,c)=>vV(e,r,i);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(nV(...r)),e.includes=(...r)=>e.check(oV(...r)),e.startsWith=(...r)=>e.check(iV(...r)),e.endsWith=(...r)=>e.check(aV(...r)),e.min=(...r)=>e.check(bp(...r)),e.max=(...r)=>e.check(CM(...r)),e.length=(...r)=>e.check(TM(...r)),e.nonempty=(...r)=>e.check(bp(1,...r)),e.lowercase=r=>e.check(sV(r)),e.uppercase=r=>e.check(rV(r)),e.trim=()=>e.check(lV()),e.normalize=(...r)=>e.check(cV(...r)),e.toLowerCase=()=>e.check(uV()),e.toUpperCase=()=>e.check(fV()),e.slugify=()=>e.check(dV())}),rG=pe("ZodString",(e,t)=>{qv.init(e,t),DM.init(e,t),e.email=n=>e.check(Tq(oG,n)),e.url=n=>e.check(Dq(iG,n)),e.jwt=n=>e.check(Kq(_G,n)),e.emoji=n=>e.check(kq(aG,n)),e.guid=n=>e.check(fT(gT,n)),e.uuid=n=>e.check(Aq(Th,n)),e.uuidv4=n=>e.check(Iq(Th,n)),e.uuidv6=n=>e.check(Oq(Th,n)),e.uuidv7=n=>e.check(Mq(Th,n)),e.nanoid=n=>e.check(Pq(cG,n)),e.guid=n=>e.check(fT(gT,n)),e.cuid=n=>e.check(Nq(lG,n)),e.cuid2=n=>e.check(zq(uG,n)),e.ulid=n=>e.check(Lq(fG,n)),e.base64=n=>e.check(qq(bG,n)),e.base64url=n=>e.check(Vq(vG,n)),e.xid=n=>e.check(Bq(dG,n)),e.ksuid=n=>e.check($q(hG,n)),e.ipv4=n=>e.check(Uq(pG,n)),e.ipv6=n=>e.check(jq(mG,n)),e.cidrv4=n=>e.check(Hq(gG,n)),e.cidrv6=n=>e.check(Fq(yG,n)),e.e164=n=>e.check(Gq(SG,n)),e.datetime=n=>e.check(BV(n)),e.date=n=>e.check(UV(n)),e.time=n=>e.check(HV(n)),e.duration=n=>e.check(qV(n))});function mT(e){return Cq(rG,e)}const Qt=pe("ZodStringFormat",(e,t)=>{Vt.init(e,t),DM.init(e,t)}),oG=pe("ZodEmail",(e,t)=>{zF.init(e,t),Qt.init(e,t)}),gT=pe("ZodGUID",(e,t)=>{PF.init(e,t),Qt.init(e,t)}),Th=pe("ZodUUID",(e,t)=>{NF.init(e,t),Qt.init(e,t)}),iG=pe("ZodURL",(e,t)=>{LF.init(e,t),Qt.init(e,t)}),aG=pe("ZodEmoji",(e,t)=>{BF.init(e,t),Qt.init(e,t)}),cG=pe("ZodNanoID",(e,t)=>{$F.init(e,t),Qt.init(e,t)}),lG=pe("ZodCUID",(e,t)=>{UF.init(e,t),Qt.init(e,t)}),uG=pe("ZodCUID2",(e,t)=>{jF.init(e,t),Qt.init(e,t)}),fG=pe("ZodULID",(e,t)=>{HF.init(e,t),Qt.init(e,t)}),dG=pe("ZodXID",(e,t)=>{FF.init(e,t),Qt.init(e,t)}),hG=pe("ZodKSUID",(e,t)=>{qF.init(e,t),Qt.init(e,t)}),pG=pe("ZodIPv4",(e,t)=>{YF.init(e,t),Qt.init(e,t)}),mG=pe("ZodIPv6",(e,t)=>{QF.init(e,t),Qt.init(e,t)}),gG=pe("ZodCIDRv4",(e,t)=>{XF.init(e,t),Qt.init(e,t)}),yG=pe("ZodCIDRv6",(e,t)=>{WF.init(e,t),Qt.init(e,t)}),bG=pe("ZodBase64",(e,t)=>{JF.init(e,t),Qt.init(e,t)}),vG=pe("ZodBase64URL",(e,t)=>{tq.init(e,t),Qt.init(e,t)}),SG=pe("ZodE164",(e,t)=>{nq.init(e,t),Qt.init(e,t)}),_G=pe("ZodJWT",(e,t)=>{rq.init(e,t),Qt.init(e,t)}),kM=pe("ZodNumber",(e,t)=>{wM.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(r,i,c)=>SV(e,r,i),e.gt=(r,i)=>e.check(hT(r,i)),e.gte=(r,i)=>e.check(I0(r,i)),e.min=(r,i)=>e.check(I0(r,i)),e.lt=(r,i)=>e.check(dT(r,i)),e.lte=(r,i)=>e.check(A0(r,i)),e.max=(r,i)=>e.check(A0(r,i)),e.int=r=>e.check(yT(r)),e.safe=r=>e.check(yT(r)),e.positive=r=>e.check(hT(0,r)),e.nonnegative=r=>e.check(I0(0,r)),e.negative=r=>e.check(dT(0,r)),e.nonpositive=r=>e.check(A0(0,r)),e.multipleOf=(r,i)=>e.check(pT(r,i)),e.step=(r,i)=>e.check(pT(r,i)),e.finite=()=>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??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function sSe(e){return Wq(kM,e)}const wG=pe("ZodNumberFormat",(e,t)=>{oq.init(e,t),kM.init(e,t)});function yT(e){return Jq(wG,e)}const xG=pe("ZodUnknown",(e,t)=>{iq.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>wV()});function bT(){return eV(xG)}const EG=pe("ZodNever",(e,t)=>{aq.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>_V(e,n,r)});function RG(e){return tV(EG,e)}const CG=pe("ZodArray",(e,t)=>{cq.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>CV(e,n,r,i),e.element=t.element,e.min=(n,r)=>e.check(bp(n,r)),e.nonempty=n=>e.check(bp(1,n)),e.max=(n,r)=>e.check(CM(n,r)),e.length=(n,r)=>e.check(TM(n,r)),e.unwrap=()=>e.element});function TG(e,t){return hV(CG,e,t)}const AG=pe("ZodObject",(e,t)=>{uq.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>TV(e,n,r,i),Ct(e,"shape",()=>t.shape),e.keyof=()=>PG(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:bT()}),e.loose=()=>e.clone({...e._zod.def,catchall:bT()}),e.strict=()=>e.clone({...e._zod.def,catchall:RG()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>D7(e,n),e.safeExtend=n=>k7(e,n),e.merge=n=>P7(e,n),e.pick=n=>O7(e,n),e.omit=n=>M7(e,n),e.partial=(...n)=>N7(PM,e,n[0]),e.required=(...n)=>z7(NM,e,n[0])});function IG(e,t){const n={type:"object",shape:e??{},...Ue(t)};return new AG(n)}const OG=pe("ZodUnion",(e,t)=>{fq.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>AV(e,n,r,i),e.options=t.options});function MG(e,t){return new OG({type:"union",options:e,...Ue(t)})}const DG=pe("ZodIntersection",(e,t)=>{dq.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>IV(e,n,r,i)});function kG(e,t){return new DG({type:"intersection",left:e,right:t})}const jb=pe("ZodEnum",(e,t)=>{hq.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(r,i,c)=>xV(e,r,i),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const c={};for(const l of r)if(n.has(l))c[l]=t.entries[l];else throw new Error(`Key ${l} not found in enum`);return new jb({...t,checks:[],...Ue(i),entries:c})},e.exclude=(r,i)=>{const c={...t.entries};for(const l of r)if(n.has(l))delete c[l];else throw new Error(`Key ${l} not found in enum`);return new jb({...t,checks:[],...Ue(i),entries:c})}});function PG(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new jb({type:"enum",entries:n,...Ue(t)})}const NG=pe("ZodTransform",(e,t)=>{pq.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>RV(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new aM(e.constructor.name);n.addIssue=c=>{if(typeof c=="string")n.issues.push(pf(c,n.value,t));else{const l=c;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=n.value),l.inst??(l.inst=e),n.issues.push(pf(l))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(c=>(n.value=c,n)):(n.value=i,n)}});function zG(e){return new NG({type:"transform",transform:e})}const PM=pe("ZodOptional",(e,t)=>{RM.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>MM(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function vT(e){return new PM({type:"optional",innerType:e})}const LG=pe("ZodExactOptional",(e,t)=>{mq.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>MM(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function BG(e){return new LG({type:"optional",innerType:e})}const $G=pe("ZodNullable",(e,t)=>{gq.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>OV(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function ST(e){return new $G({type:"nullable",innerType:e})}const UG=pe("ZodDefault",(e,t)=>{yq.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>DV(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function jG(e,t){return new UG({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():fM(t)}})}const HG=pe("ZodPrefault",(e,t)=>{bq.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>kV(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function FG(e,t){return new HG({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():fM(t)}})}const NM=pe("ZodNonOptional",(e,t)=>{vq.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>MV(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function qG(e,t){return new NM({type:"nonoptional",innerType:e,...Ue(t)})}const VG=pe("ZodCatch",(e,t)=>{Sq.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>PV(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function GG(e,t){return new VG({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const KG=pe("ZodPipe",(e,t)=>{_q.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>NV(e,n,r,i),e.in=t.in,e.out=t.out});function _T(e,t){return new KG({type:"pipe",in:e,out:t})}const ZG=pe("ZodReadonly",(e,t)=>{wq.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>zV(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function YG(e){return new ZG({type:"readonly",innerType:e})}const QG=pe("ZodCustom",(e,t)=>{xq.init(e,t),bn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>EV(e,n)});function XG(e,t={}){return pV(QG,e,t)}function WG(e){return mV(e)}const Vv="hive:v1:aws-credentials",JG=IG({accessKeyId:mT().min(16,"Access Key ID must be at least 16 characters"),secretAccessKey:mT().min(1,"Secret Access Key is required")});let yo;function sm(){if(yo!==void 0)return yo;try{const e=localStorage.getItem(Vv);if(!e)return yo=null,null;const t=JSON.parse(e),n=JG.safeParse(t);return yo=n.success?n.data:null,yo}catch{return yo=null,null}}function rSe(e){try{localStorage.setItem(Vv,JSON.stringify(e)),yo=e}catch{yo=e}}function eK(){try{localStorage.removeItem(Vv)}catch{}yo=null}const zM=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),LM=e=>({httpHandler:e.httpHandler()});var mf;(function(e){e.HTTP="http",e.HTTPS="https"})(mf||(mf={}));var Sp;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(Sp||(Sp={}));const Hb="__smithy_context";class On{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){const n=new On({...t,headers:{...t.headers}});return n.query&&(n.query=tK(n.query)),n}static isInstance(t){if(!t)return!1;const n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){return On.clone(this)}}function tK(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}class ja{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}}const nK=e=>t=>async n=>{if(!On.isInstance(n.request))return t(n);const{request:r}=n,{handlerProtocol:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]=r.hostname+(r.port?":"+r.port:"");else if(!r.headers.host){let c=r.hostname;r.port!=null&&(c+=`:${r.port}`),r.headers.host=c}return t(n)},sK={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},BM=e=>({applyToStack:t=>{t.add(nK(e),sK)}}),rK=()=>(e,t)=>async n=>{try{const r=await e(n),{clientName:i,commandName:c,logger:l,dynamoDbDocumentClientOptions:f={}}=t,{overrideInputFilterSensitiveLog:d,overrideOutputFilterSensitiveLog:h}=f,y=d??t.inputFilterSensitiveLog,g=h??t.outputFilterSensitiveLog,{$metadata:b,...v}=r.output;return l?.info?.({clientName:i,commandName:c,input:y(n.input),output:g(v),metadata:b}),r}catch(r){const{clientName:i,commandName:c,logger:l,dynamoDbDocumentClientOptions:f={}}=t,{overrideInputFilterSensitiveLog:d}=f,h=d??t.inputFilterSensitiveLog;throw l?.error?.({clientName:i,commandName:c,input:h(n.input),error:r,metadata:r.$metadata}),r}},oK={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},$M=e=>({applyToStack:t=>{t.add(rK(),oK)}}),iK={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},aK=()=>e=>async t=>e(t),UM=e=>({applyToStack:t=>{t.add(aK(),iK)}}),Io=e=>e[Hb]||(e[Hb]={}),Bs=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},cK=(e,t)=>{if(!t||t.length===0)return e;const n=[];for(const r of t)for(const i of e)i.schemeId.split("#")[1]===r&&n.push(i);for(const r of e)n.find(({schemeId:i})=>i===r.schemeId)||n.push(r);return n};function lK(e){const t=new Map;for(const n of e)t.set(n.schemeId,n);return t}const uK=(e,t)=>(n,r)=>async i=>{const c=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),l=e.authSchemePreference?await e.authSchemePreference():[],f=cK(c,l),d=lK(e.httpAuthSchemes),h=Io(r),y=[];for(const g of f){const b=d.get(g.schemeId);if(!b){y.push(`HttpAuthScheme \`${g.schemeId}\` was not enabled for this service.`);continue}const v=b.identityProvider(await t.identityProviderConfigProvider(e));if(!v){y.push(`HttpAuthScheme \`${g.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:_={},signingProperties:x={}}=g.propertiesExtractor?.(e,r)||{};g.identityProperties=Object.assign(g.identityProperties||{},_),g.signingProperties=Object.assign(g.signingProperties||{},x),h.selectedHttpAuthScheme={httpAuthOption:g,identity:await v(g.identityProperties),signer:b.signer};break}if(!h.selectedHttpAuthScheme)throw new Error(y.join(` -`));return n(i)},fK={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},jM=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(uK(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),fK)}}),dK={name:"serializerMiddleware"},hK=e=>t=>{throw t},pK=(e,t)=>{},mK=e=>(t,n)=>async r=>{if(!On.isInstance(r.request))return t(r);const c=Io(n).selectedHttpAuthScheme;if(!c)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:l={}},identity:f,signer:d}=c,h=await t({...r,request:await d.sign(r.request,f,l)}).catch((d.errorHandler||hK)(l));return(d.successHandler||pK)(h.response,l),h},HM={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},FM=e=>({applyToStack:t=>{t.addRelativeTo(mK(),HM)}}),nl=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},qM="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wT=Object.entries(qM).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),gK=qM.split(""),sl=6,Ju=8,yK=63,Ha=e=>{let t=e.length/4*3;e.slice(-2)==="=="?t-=2:e.slice(-1)==="="&&t--;const n=new ArrayBuffer(t),r=new DataView(n);for(let i=0;i>=sl;const f=i/4*3;c>>=l%Ju;const d=Math.floor(l/Ju);for(let h=0;h>y)}}return new Uint8Array(n)},Co=e=>new TextEncoder().encode(e),gf=e=>typeof e=="string"?Co(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),Ka=e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)};function zi(e){let t;typeof e=="string"?t=Co(e):t=e;const n=typeof t=="object"&&typeof t.length=="number",r=typeof t=="object"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number";if(!n&&!r)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let i="";for(let c=0;c>y]}i+="==".slice(0,4-d)}return i}class Pa extends Uint8Array{static fromString(t,n="utf-8"){if(typeof t=="string")return n==="base64"?Pa.mutate(Ha(t)):Pa.mutate(Co(t));throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){return Object.setPrototypeOf(t,Pa.prototype),t}transformToString(t="utf-8"){return t==="base64"?zi(this):Ka(this)}}const xT=e=>typeof ReadableStream=="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),bK=(e,t)=>{const{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:i,checksumLocationName:c,streamHasher:l}=t,f=n!==void 0&&r!==void 0&&i!==void 0&&c!==void 0&&l!==void 0,d=f?l(i,e):void 0,h=e.getReader();return new ReadableStream({async pull(y){const{value:g,done:b}=await h.read();if(b){if(y.enqueue(`0\r -`),f){const v=n(await d);y.enqueue(`${c}:${v}\r -`),y.enqueue(`\r -`)}y.close()}else y.enqueue(`${(r(g)||0).toString(16)}\r +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of e.seen.entries()){const f=l[1];if(t===l[0]){c(l);continue}if(e.external){const p=e.external.registry.get(l[0])?.id;if(t!==l[0]&&p){c(l);continue}}if(e.metadataRegistry.get(l[0])?.id){c(l);continue}if(f.cycle){c(l);continue}if(f.count>1&&e.reused==="ref"){c(l);continue}}}function ED(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=l=>{const f=e.seen.get(l);if(f.ref===null)return;const d=f.def??f.schema,p={...d},b=f.ref;if(f.ref=null,b){r(b);const v=e.seen.get(b),S=v.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(S)):Object.assign(d,S),Object.assign(d,p),l._zod.parent===b)for(const E in d)E==="$ref"||E==="allOf"||E in p||delete d[E];if(S.$ref&&v.def)for(const E in d)E==="$ref"||E==="allOf"||E in v.def&&JSON.stringify(d[E])===JSON.stringify(v.def[E])&&delete d[E]}const g=l._zod.parent;if(g&&g!==b){r(g);const v=e.seen.get(g);if(v?.schema.$ref&&(d.$ref=v.schema.$ref,v.def))for(const S in d)S==="$ref"||S==="allOf"||S in v.def&&JSON.stringify(d[S])===JSON.stringify(v.def[S])&&delete d[S]}e.override({zodSchema:l,jsonSchema:d,path:f.path??[]})};for(const l of[...e.seen.entries()].reverse())r(l[0]);const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const l=e.external.registry.get(t)?.id;if(!l)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(l)}Object.assign(i,n.def??n.schema);const c=e.external?.defs??{};for(const l of e.seen.entries()){const f=l[1];f.def&&f.defId&&(c[f.defId]=f.def)}e.external||Object.keys(c).length>0&&(e.target==="draft-2020-12"?i.$defs=c:i.definitions=c);try{const l=JSON.parse(JSON.stringify(i));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:Jh(t,"input",e.processors),output:Jh(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function os(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return os(r.element,n);if(r.type==="set")return os(r.valueType,n);if(r.type==="lazy")return os(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return os(r.innerType,n);if(r.type==="intersection")return os(r.left,n)||os(r.right,n);if(r.type==="record"||r.type==="map")return os(r.keyType,n)||os(r.valueType,n);if(r.type==="pipe")return os(r.in,n)||os(r.out,n);if(r.type==="object"){for(const i in r.shape)if(os(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(os(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(os(i,n))return!0;return!!(r.rest&&os(r.rest,n))}return!1}const aZ=(e,t={})=>n=>{const r=_D({...n,processors:t});return Vn(e,r),wD(r,e),ED(r,e)},Jh=(e,t,n={})=>r=>{const{libraryOptions:i,target:c}=r??{},l=_D({...i??{},target:c,io:t,processors:n});return Vn(e,l),wD(l,e),ED(l,e)},cZ={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},lZ=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:c,maximum:l,format:f,patterns:d,contentEncoding:p}=e._zod.bag;if(typeof c=="number"&&(i.minLength=c),typeof l=="number"&&(i.maxLength=l),f&&(i.format=cZ[f]??f,i.format===""&&delete i.format,f==="time"&&delete i.format),p&&(i.contentEncoding=p),d&&d.size>0){const b=[...d];b.length===1?i.pattern=b[0].source:b.length>1&&(i.allOf=[...b.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},uZ=(e,t,n,r)=>{const i=n,{minimum:c,maximum:l,format:f,multipleOf:d,exclusiveMaximum:p,exclusiveMinimum:b}=e._zod.bag;typeof f=="string"&&f.includes("int")?i.type="integer":i.type="number",typeof b=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=b,i.exclusiveMinimum=!0):i.exclusiveMinimum=b),typeof c=="number"&&(i.minimum=c,typeof b=="number"&&t.target!=="draft-04"&&(b>=c?delete i.minimum:delete i.exclusiveMinimum)),typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=p,i.exclusiveMaximum=!0):i.exclusiveMaximum=p),typeof l=="number"&&(i.maximum=l,typeof p=="number"&&t.target!=="draft-04"&&(p<=l?delete i.maximum:delete i.exclusiveMaximum)),typeof d=="number"&&(i.multipleOf=d)},fZ=(e,t,n,r)=>{n.type="boolean"},dZ=(e,t,n,r)=>{n.not={}},pZ=(e,t,n,r)=>{},hZ=(e,t,n,r)=>{const i=e._zod.def,c=nD(i.entries);c.every(l=>typeof l=="number")&&(n.type="number"),c.every(l=>typeof l=="string")&&(n.type="string"),n.enum=c},mZ=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},gZ=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},yZ=(e,t,n,r)=>{const i=n,c=e._zod.def,{minimum:l,maximum:f}=e._zod.bag;typeof l=="number"&&(i.minItems=l),typeof f=="number"&&(i.maxItems=f),i.type="array",i.items=Vn(c.element,t,{...r,path:[...r.path,"items"]})},bZ=(e,t,n,r)=>{const i=n,c=e._zod.def;i.type="object",i.properties={};const l=c.shape;for(const p in l)i.properties[p]=Vn(l[p],t,{...r,path:[...r.path,"properties",p]});const f=new Set(Object.keys(l)),d=new Set([...f].filter(p=>{const b=c.shape[p]._zod;return t.io==="input"?b.optin===void 0:b.optout===void 0}));d.size>0&&(i.required=Array.from(d)),c.catchall?._zod.def.type==="never"?i.additionalProperties=!1:c.catchall?c.catchall&&(i.additionalProperties=Vn(c.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},vZ=(e,t,n,r)=>{const i=e._zod.def,c=i.inclusive===!1,l=i.options.map((f,d)=>Vn(f,t,{...r,path:[...r.path,c?"oneOf":"anyOf",d]}));c?n.oneOf=l:n.anyOf=l},SZ=(e,t,n,r)=>{const i=e._zod.def,c=Vn(i.left,t,{...r,path:[...r.path,"allOf",0]}),l=Vn(i.right,t,{...r,path:[...r.path,"allOf",1]}),f=p=>"allOf"in p&&Object.keys(p).length===1,d=[...f(c)?c.allOf:[c],...f(l)?l.allOf:[l]];n.allOf=d},_Z=(e,t,n,r)=>{const i=e._zod.def,c=Vn(i.innerType,t,r),l=t.seen.get(e);t.target==="openapi-3.0"?(l.ref=i.innerType,n.nullable=!0):n.anyOf=[c,{type:"null"}]},wZ=(e,t,n,r)=>{const i=e._zod.def;Vn(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType},EZ=(e,t,n,r)=>{const i=e._zod.def;Vn(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},xZ=(e,t,n,r)=>{const i=e._zod.def;Vn(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},RZ=(e,t,n,r)=>{const i=e._zod.def;Vn(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType;let l;try{l=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=l},CZ=(e,t,n,r)=>{const i=e._zod.def,c=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;Vn(c,t,r);const l=t.seen.get(e);l.ref=c},AZ=(e,t,n,r)=>{const i=e._zod.def;Vn(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType,n.readOnly=!0},xD=(e,t,n,r)=>{const i=e._zod.def;Vn(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType},TZ=pe("ZodISODateTime",(e,t)=>{kq.init(e,t),tn.init(e,t)});function IZ(e){return zG(TZ,e)}const OZ=pe("ZodISODate",(e,t)=>{Pq.init(e,t),tn.init(e,t)});function MZ(e){return BG(OZ,e)}const DZ=pe("ZodISOTime",(e,t)=>{Nq.init(e,t),tn.init(e,t)});function kZ(e){return $G(DZ,e)}const PZ=pe("ZodISODuration",(e,t)=>{Lq.init(e,t),tn.init(e,t)});function NZ(e){return UG(PZ,e)}const LZ=(e,t)=>{aD.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>RF(e,n)},flatten:{value:n=>xF(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,bv,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,bv,2)}},isEmpty:{get(){return e.issues.length===0}}})},_r=pe("ZodError",LZ,{Parent:Error}),zZ=Dm(_r),BZ=km(_r),$Z=Pm(_r),UZ=Nm(_r),jZ=TF(_r),HZ=IF(_r),VZ=OF(_r),FZ=MF(_r),qZ=DF(_r),GZ=kF(_r),ZZ=PF(_r),KZ=NF(_r),fn=pe("ZodType",(e,t)=>(un.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Jh(e,"input"),output:Jh(e,"output")}}),e.toJSONSchema=aZ(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(aa(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(n,r)=>ca(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>zZ(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>$Z(e,n,r),e.parseAsync=async(n,r)=>BZ(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>UZ(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>jZ(e,n,r),e.decode=(n,r)=>HZ(e,n,r),e.encodeAsync=async(n,r)=>VZ(e,n,r),e.decodeAsync=async(n,r)=>FZ(e,n,r),e.safeEncode=(n,r)=>qZ(e,n,r),e.safeDecode=(n,r)=>GZ(e,n,r),e.safeEncodeAsync=async(n,r)=>ZZ(e,n,r),e.safeDecodeAsync=async(n,r)=>KZ(e,n,r),e.refine=(n,r)=>e.check(VK(n,r)),e.superRefine=n=>e.check(FK(n)),e.overwrite=n=>e.check($l(n)),e.optional=()=>dT(e),e.exactOptional=()=>OK(e),e.nullable=()=>pT(e),e.nullish=()=>dT(pT(e)),e.nonoptional=n=>LK(e,n),e.array=()=>vK(e),e.or=n=>EK([e,n]),e.and=n=>RK(e,n),e.transform=n=>hT(e,TK(n)),e.default=n=>kK(e,n),e.prefault=n=>NK(e,n),e.catch=n=>BK(e,n),e.pipe=n=>hT(e,n),e.readonly=()=>jK(e),e.describe=n=>{const r=e.clone();return yf.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return yf.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return yf.get(e);const r=e.clone();return yf.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),RD=pe("_ZodString",(e,t)=>{ES.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(r,i,c)=>lZ(e,r,i);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(GG(...r)),e.includes=(...r)=>e.check(QG(...r)),e.startsWith=(...r)=>e.check(YG(...r)),e.endsWith=(...r)=>e.check(XG(...r)),e.min=(...r)=>e.check(Wh(...r)),e.max=(...r)=>e.check(vD(...r)),e.length=(...r)=>e.check(SD(...r)),e.nonempty=(...r)=>e.check(Wh(1,...r)),e.lowercase=r=>e.check(ZG(r)),e.uppercase=r=>e.check(KG(r)),e.trim=()=>e.check(JG()),e.normalize=(...r)=>e.check(WG(...r)),e.toLowerCase=()=>e.check(eZ()),e.toUpperCase=()=>e.check(tZ()),e.slugify=()=>e.check(nZ())}),QZ=pe("ZodString",(e,t)=>{ES.init(e,t),RD.init(e,t),e.email=n=>e.check(gG(YZ,n)),e.url=n=>e.check(_G(XZ,n)),e.jwt=n=>e.check(LG(dK,n)),e.emoji=n=>e.check(wG(WZ,n)),e.guid=n=>e.check(rT(lT,n)),e.uuid=n=>e.check(yG(ah,n)),e.uuidv4=n=>e.check(bG(ah,n)),e.uuidv6=n=>e.check(vG(ah,n)),e.uuidv7=n=>e.check(SG(ah,n)),e.nanoid=n=>e.check(EG(JZ,n)),e.guid=n=>e.check(rT(lT,n)),e.cuid=n=>e.check(xG(eK,n)),e.cuid2=n=>e.check(RG(tK,n)),e.ulid=n=>e.check(CG(nK,n)),e.base64=n=>e.check(kG(lK,n)),e.base64url=n=>e.check(PG(uK,n)),e.xid=n=>e.check(AG(sK,n)),e.ksuid=n=>e.check(TG(rK,n)),e.ipv4=n=>e.check(IG(oK,n)),e.ipv6=n=>e.check(OG(iK,n)),e.cidrv4=n=>e.check(MG(aK,n)),e.cidrv6=n=>e.check(DG(cK,n)),e.e164=n=>e.check(NG(fK,n)),e.datetime=n=>e.check(IZ(n)),e.date=n=>e.check(MZ(n)),e.time=n=>e.check(kZ(n)),e.duration=n=>e.check(NZ(n))});function cT(e){return mG(QZ,e)}const tn=pe("ZodStringFormat",(e,t)=>{Xt.init(e,t),RD.init(e,t)}),YZ=pe("ZodEmail",(e,t)=>{xq.init(e,t),tn.init(e,t)}),lT=pe("ZodGUID",(e,t)=>{wq.init(e,t),tn.init(e,t)}),ah=pe("ZodUUID",(e,t)=>{Eq.init(e,t),tn.init(e,t)}),XZ=pe("ZodURL",(e,t)=>{Rq.init(e,t),tn.init(e,t)}),WZ=pe("ZodEmoji",(e,t)=>{Cq.init(e,t),tn.init(e,t)}),JZ=pe("ZodNanoID",(e,t)=>{Aq.init(e,t),tn.init(e,t)}),eK=pe("ZodCUID",(e,t)=>{Tq.init(e,t),tn.init(e,t)}),tK=pe("ZodCUID2",(e,t)=>{Iq.init(e,t),tn.init(e,t)}),nK=pe("ZodULID",(e,t)=>{Oq.init(e,t),tn.init(e,t)}),sK=pe("ZodXID",(e,t)=>{Mq.init(e,t),tn.init(e,t)}),rK=pe("ZodKSUID",(e,t)=>{Dq.init(e,t),tn.init(e,t)}),oK=pe("ZodIPv4",(e,t)=>{zq.init(e,t),tn.init(e,t)}),iK=pe("ZodIPv6",(e,t)=>{Bq.init(e,t),tn.init(e,t)}),aK=pe("ZodCIDRv4",(e,t)=>{$q.init(e,t),tn.init(e,t)}),cK=pe("ZodCIDRv6",(e,t)=>{Uq.init(e,t),tn.init(e,t)}),lK=pe("ZodBase64",(e,t)=>{jq.init(e,t),tn.init(e,t)}),uK=pe("ZodBase64URL",(e,t)=>{Vq.init(e,t),tn.init(e,t)}),fK=pe("ZodE164",(e,t)=>{Fq.init(e,t),tn.init(e,t)}),dK=pe("ZodJWT",(e,t)=>{Gq.init(e,t),tn.init(e,t)}),CD=pe("ZodNumber",(e,t)=>{mD.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(r,i,c)=>uZ(e,r,i),e.gt=(r,i)=>e.check(iT(r,i)),e.gte=(r,i)=>e.check(cb(r,i)),e.min=(r,i)=>e.check(cb(r,i)),e.lt=(r,i)=>e.check(oT(r,i)),e.lte=(r,i)=>e.check(ab(r,i)),e.max=(r,i)=>e.check(ab(r,i)),e.int=r=>e.check(uT(r)),e.safe=r=>e.check(uT(r)),e.positive=r=>e.check(iT(0,r)),e.nonnegative=r=>e.check(cb(0,r)),e.negative=r=>e.check(oT(0,r)),e.nonpositive=r=>e.check(ab(0,r)),e.multipleOf=(r,i)=>e.check(aT(r,i)),e.step=(r,i)=>e.check(aT(r,i)),e.finite=()=>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??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function KRe(e){return jG(CD,e)}const pK=pe("ZodNumberFormat",(e,t)=>{Zq.init(e,t),CD.init(e,t)});function uT(e){return HG(pK,e)}const hK=pe("ZodBoolean",(e,t)=>{Kq.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>fZ(e,n,r)});function QRe(e){return VG(hK,e)}const mK=pe("ZodUnknown",(e,t)=>{Qq.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>pZ()});function fT(){return FG(mK)}const gK=pe("ZodNever",(e,t)=>{Yq.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>dZ(e,n,r)});function yK(e){return qG(gK,e)}const bK=pe("ZodArray",(e,t)=>{Xq.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>yZ(e,n,r,i),e.element=t.element,e.min=(n,r)=>e.check(Wh(n,r)),e.nonempty=n=>e.check(Wh(1,n)),e.max=(n,r)=>e.check(vD(n,r)),e.length=(n,r)=>e.check(SD(n,r)),e.unwrap=()=>e.element});function vK(e,t){return sZ(bK,e,t)}const SK=pe("ZodObject",(e,t)=>{Jq.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>bZ(e,n,r,i),Dt(e,"shape",()=>t.shape),e.keyof=()=>CK(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:fT()}),e.loose=()=>e.clone({...e._zod.def,catchall:fT()}),e.strict=()=>e.clone({...e._zod.def,catchall:yK()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>vF(e,n),e.safeExtend=n=>SF(e,n),e.merge=n=>_F(e,n),e.pick=n=>yF(e,n),e.omit=n=>bF(e,n),e.partial=(...n)=>wF(AD,e,n[0]),e.required=(...n)=>EF(TD,e,n[0])});function _K(e,t){const n={type:"object",shape:e??{},...Ue(t)};return new SK(n)}const wK=pe("ZodUnion",(e,t)=>{eG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>vZ(e,n,r,i),e.options=t.options});function EK(e,t){return new wK({type:"union",options:e,...Ue(t)})}const xK=pe("ZodIntersection",(e,t)=>{tG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>SZ(e,n,r,i)});function RK(e,t){return new xK({type:"intersection",left:e,right:t})}const Sv=pe("ZodEnum",(e,t)=>{nG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(r,i,c)=>hZ(e,r,i),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const c={};for(const l of r)if(n.has(l))c[l]=t.entries[l];else throw new Error(`Key ${l} not found in enum`);return new Sv({...t,checks:[],...Ue(i),entries:c})},e.exclude=(r,i)=>{const c={...t.entries};for(const l of r)if(n.has(l))delete c[l];else throw new Error(`Key ${l} not found in enum`);return new Sv({...t,checks:[],...Ue(i),entries:c})}});function CK(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Sv({type:"enum",entries:n,...Ue(t)})}const AK=pe("ZodTransform",(e,t)=>{sG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>gZ(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new eD(e.constructor.name);n.addIssue=c=>{if(typeof c=="string")n.issues.push(zf(c,n.value,t));else{const l=c;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=n.value),l.inst??(l.inst=e),n.issues.push(zf(l))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(c=>(n.value=c,n)):(n.value=i,n)}});function TK(e){return new AK({type:"transform",transform:e})}const AD=pe("ZodOptional",(e,t)=>{bD.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>xD(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function dT(e){return new AD({type:"optional",innerType:e})}const IK=pe("ZodExactOptional",(e,t)=>{rG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>xD(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function OK(e){return new IK({type:"optional",innerType:e})}const MK=pe("ZodNullable",(e,t)=>{oG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>_Z(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function pT(e){return new MK({type:"nullable",innerType:e})}const DK=pe("ZodDefault",(e,t)=>{iG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>EZ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function kK(e,t){return new DK({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():rD(t)}})}const PK=pe("ZodPrefault",(e,t)=>{aG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>xZ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function NK(e,t){return new PK({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():rD(t)}})}const TD=pe("ZodNonOptional",(e,t)=>{cG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>wZ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function LK(e,t){return new TD({type:"nonoptional",innerType:e,...Ue(t)})}const zK=pe("ZodCatch",(e,t)=>{lG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>RZ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function BK(e,t){return new zK({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const $K=pe("ZodPipe",(e,t)=>{uG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>CZ(e,n,r,i),e.in=t.in,e.out=t.out});function hT(e,t){return new $K({type:"pipe",in:e,out:t})}const UK=pe("ZodReadonly",(e,t)=>{fG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>AZ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function jK(e){return new UK({type:"readonly",innerType:e})}const HK=pe("ZodCustom",(e,t)=>{dG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>mZ(e,n)});function VK(e,t={}){return rZ(HK,e,t)}function FK(e){return oZ(e)}const xS="hive:v1:aws-credentials",qK=_K({accessKeyId:cT().min(16,"Access Key ID must be at least 16 characters"),secretAccessKey:cT().min(1,"Secret Access Key is required")});let ko;function zm(){if(ko!==void 0)return ko;try{const e=localStorage.getItem(xS);if(!e)return ko=null,null;const t=JSON.parse(e),n=qK.safeParse(t);return ko=n.success?n.data:null,ko}catch{return ko=null,null}}function YRe(e){try{localStorage.setItem(xS,JSON.stringify(e)),ko=e}catch{ko=e}}function GK(){try{localStorage.removeItem(xS)}catch{}ko=null}const ID=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),OD=e=>({httpHandler:e.httpHandler()});var Bf;(function(e){e.HTTP="http",e.HTTPS="https"})(Bf||(Bf={}));var em;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(em||(em={}));const _v="__smithy_context";class kn{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){const n=new kn({...t,headers:{...t.headers}});return n.query&&(n.query=ZK(n.query)),n}static isInstance(t){if(!t)return!1;const n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){return kn.clone(this)}}function ZK(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}class ac{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}}const KK=e=>t=>async n=>{if(!kn.isInstance(n.request))return t(n);const{request:r}=n,{handlerProtocol:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]=r.hostname+(r.port?":"+r.port:"");else if(!r.headers.host){let c=r.hostname;r.port!=null&&(c+=`:${r.port}`),r.headers.host=c}return t(n)},QK={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},MD=e=>({applyToStack:t=>{t.add(KK(e),QK)}}),YK=()=>(e,t)=>async n=>{try{const r=await e(n),{clientName:i,commandName:c,logger:l,dynamoDbDocumentClientOptions:f={}}=t,{overrideInputFilterSensitiveLog:d,overrideOutputFilterSensitiveLog:p}=f,b=d??t.inputFilterSensitiveLog,g=p??t.outputFilterSensitiveLog,{$metadata:v,...S}=r.output;return l?.info?.({clientName:i,commandName:c,input:b(n.input),output:g(S),metadata:v}),r}catch(r){const{clientName:i,commandName:c,logger:l,dynamoDbDocumentClientOptions:f={}}=t,{overrideInputFilterSensitiveLog:d}=f,p=d??t.inputFilterSensitiveLog;throw l?.error?.({clientName:i,commandName:c,input:p(n.input),error:r,metadata:r.$metadata}),r}},XK={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},DD=e=>({applyToStack:t=>{t.add(YK(),XK)}}),WK={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},JK=()=>e=>async t=>e(t),kD=e=>({applyToStack:t=>{t.add(JK(),WK)}}),qo=e=>e[_v]||(e[_v]={}),qs=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},eQ=(e,t)=>{if(!t||t.length===0)return e;const n=[];for(const r of t)for(const i of e)i.schemeId.split("#")[1]===r&&n.push(i);for(const r of e)n.find(({schemeId:i})=>i===r.schemeId)||n.push(r);return n};function tQ(e){const t=new Map;for(const n of e)t.set(n.schemeId,n);return t}const nQ=(e,t)=>(n,r)=>async i=>{const c=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),l=e.authSchemePreference?await e.authSchemePreference():[],f=eQ(c,l),d=tQ(e.httpAuthSchemes),p=qo(r),b=[];for(const g of f){const v=d.get(g.schemeId);if(!v){b.push(`HttpAuthScheme \`${g.schemeId}\` was not enabled for this service.`);continue}const S=v.identityProvider(await t.identityProviderConfigProvider(e));if(!S){b.push(`HttpAuthScheme \`${g.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:w={},signingProperties:E={}}=g.propertiesExtractor?.(e,r)||{};g.identityProperties=Object.assign(g.identityProperties||{},w),g.signingProperties=Object.assign(g.signingProperties||{},E),p.selectedHttpAuthScheme={httpAuthOption:g,identity:await S(g.identityProperties),signer:v.signer};break}if(!p.selectedHttpAuthScheme)throw new Error(b.join(` +`));return n(i)},sQ={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},PD=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(nQ(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),sQ)}}),rQ={name:"serializerMiddleware"},oQ=e=>t=>{throw t},iQ=(e,t)=>{},aQ=e=>(t,n)=>async r=>{if(!kn.isInstance(r.request))return t(r);const c=qo(n).selectedHttpAuthScheme;if(!c)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:l={}},identity:f,signer:d}=c,p=await t({...r,request:await d.sign(r.request,f,l)}).catch((d.errorHandler||oQ)(l));return(d.successHandler||iQ)(p.response,l),p},ND={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},LD=e=>({applyToStack:t=>{t.addRelativeTo(aQ(),ND)}}),wl=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},zD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",mT=Object.entries(zD).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),cQ=zD.split(""),El=6,Ef=8,lQ=63,cc=e=>{let t=e.length/4*3;e.slice(-2)==="=="?t-=2:e.slice(-1)==="="&&t--;const n=new ArrayBuffer(t),r=new DataView(n);for(let i=0;i>=El;const f=i/4*3;c>>=l%Ef;const d=Math.floor(l/Ef);for(let p=0;p>b)}}return new Uint8Array(n)},Ho=e=>new TextEncoder().encode(e),$f=e=>typeof e=="string"?Ho(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),pc=e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)};function ea(e){let t;typeof e=="string"?t=Ho(e):t=e;const n=typeof t=="object"&&typeof t.length=="number",r=typeof t=="object"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number";if(!n&&!r)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let i="";for(let c=0;c>b]}i+="==".slice(0,4-d)}return i}class ec extends Uint8Array{static fromString(t,n="utf-8"){if(typeof t=="string")return n==="base64"?ec.mutate(cc(t)):ec.mutate(Ho(t));throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){return Object.setPrototypeOf(t,ec.prototype),t}transformToString(t="utf-8"){return t==="base64"?ea(this):pc(this)}}const gT=e=>typeof ReadableStream=="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),uQ=(e,t)=>{const{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:i,checksumLocationName:c,streamHasher:l}=t,f=n!==void 0&&r!==void 0&&i!==void 0&&c!==void 0&&l!==void 0,d=f?l(i,e):void 0,p=e.getReader();return new ReadableStream({async pull(b){const{value:g,done:v}=await p.read();if(v){if(b.enqueue(`0\r +`),f){const S=n(await d);b.enqueue(`${c}:${S}\r +`),b.enqueue(`\r +`)}b.close()}else b.enqueue(`${(r(g)||0).toString(16)}\r ${g}\r -`)}})};async function vK(e,t){let n=0;const r=[],i=e.getReader();let c=!1;for(;!c;){const{done:d,value:h}=await i.read();if(h&&(r.push(h),n+=h?.byteLength??0),n>=t)break;c=d}i.releaseLock();const l=new Uint8Array(Math.min(t,n));let f=0;for(const d of r){if(d.byteLength>l.byteLength-f){l.set(d.subarray(0,l.byteLength-f),f);break}else l.set(d,f);f+=d.length}return l}const Na=e=>encodeURIComponent(e).replace(/[!'()*]/g,SK),SK=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function _K(e){const t=[];for(let n of Object.keys(e).sort()){const r=e[n];if(n=Na(n),Array.isArray(r))for(let i=0,c=r.length;i{e&&setTimeout(()=>{const r=new Error(`Request did not complete within ${e} ms`);r.name="TimeoutError",n(r)},e)})}const O0={supported:void 0};class rm{config;configProvider;static create(t){return typeof t?.handle=="function"?t:new rm(t)}constructor(t){typeof t=="function"?this.configProvider=t().then(n=>n||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config)),O0.supported===void 0&&(O0.supported=typeof Request<"u"&&"keepalive"in ET("https://[::1]"))}destroy(){}async handle(t,{abortSignal:n,requestTimeout:r}={}){this.config||(this.config=await this.configProvider);const i=r??this.config.requestTimeout,c=this.config.keepAlive===!0,l=this.config.credentials;if(n?.aborted){const I=new Error("Request aborted");return I.name="AbortError",Promise.reject(I)}let f=t.path;const d=_K(t.query||{});d&&(f+=`?${d}`),t.fragment&&(f+=`#${t.fragment}`);let h="";if(t.username!=null||t.password!=null){const I=t.username??"",D=t.password??"";h=`${I}:${D}@`}const{port:y,method:g}=t,b=`${t.protocol}//${h}${t.hostname}${y?`:${y}`:""}${f}`,v=g==="GET"||g==="HEAD"?void 0:t.body,_={body:v,headers:new Headers(t.headers),method:g,credentials:l};this.config?.cache&&(_.cache=this.config.cache),v&&(_.duplex="half"),typeof AbortController<"u"&&(_.signal=n),O0.supported&&(_.keepalive=c),typeof this.config.requestInit=="function"&&Object.assign(_,this.config.requestInit(t));let x=()=>{};const R=ET(b,_),C=[fetch(R).then(I=>{const D=I.headers,A={};for(const j of D.entries())A[j[0]]=j[1];return I.body!=null?{response:new ja({headers:A,reason:I.statusText,statusCode:I.status,body:I.body})}:I.blob().then(j=>({response:new ja({headers:A,reason:I.statusText,statusCode:I.status,body:j})}))}),wK(i)];return n&&C.push(new Promise((I,D)=>{const A=()=>{const B=new Error("Request aborted");B.name="AbortError",D(B)};if(typeof n.addEventListener=="function"){const B=n;B.addEventListener("abort",A,{once:!0}),x=()=>B.removeEventListener("abort",A)}else n.onabort=A})),Promise.race(C).finally(x)}updateHttpClientConfig(t,n){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[t]=n,r))}httpHandlerConfigs(){return this.config??{}}}const Gv=async e=>typeof Blob=="function"&&e instanceof Blob||e.constructor?.name==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(await e.arrayBuffer()):xK(e):EK(e);async function xK(e){const t=await RK(e),n=Ha(t);return new Uint8Array(n)}async function EK(e){const t=[],n=e.getReader();let r=!1,i=0;for(;!r;){const{done:f,value:d}=await n.read();d&&(t.push(d),i+=d.length),r=f}const c=new Uint8Array(i);let l=0;for(const f of t)c.set(f,l),l+=f.length;return c}function RK(e){return new Promise((t,n)=>{const r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(new Error("Reader aborted too early"));const i=r.result??"",c=i.indexOf(","),l=c>-1?c+1:i.length;t(i.substring(l))},r.onabort=()=>n(new Error("Read aborted")),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}const VM={},Fb={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),VM[e]=t,Fb[t]=e}function GM(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let n=0;n{if(!CT(e)&&!xT(e)){const i=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${i}`)}let t=!1;const n=async()=>{if(t)throw new Error(RT);return t=!0,await Gv(e)},r=i=>{if(typeof i.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. -If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return i.stream()};return Object.assign(e,{transformToByteArray:n,transformToString:async i=>{const c=await n();if(i==="base64")return zi(c);if(i==="hex")return vs(c);if(i===void 0||i==="utf8"||i==="utf-8")return Ka(c);if(typeof TextDecoder=="function")return new TextDecoder(i).decode(c);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(RT);if(t=!0,CT(e))return r(e);if(xT(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},CT=e=>typeof Blob=="function"&&e instanceof Blob;async function CK(e){return typeof e.stream=="function"&&(e=e.stream()),e.tee()}const Mi=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Pa.mutate(e);if(!e)return Pa.mutate(new Uint8Array);const n=t.streamCollector(e);return Pa.mutate(await n)};function _p(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}const Hh=e=>typeof e=="function"?e():e,ZM=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i}),TK=e=>(t,n)=>async r=>{const{response:i}=await t(r),{operationSchema:c}=Io(n),[,l,f,d,h,y]=c??[];try{const g=await e.protocol.deserializeResponse(ZM(l,f,d,h,y),{...e,...n},i);return{response:i,output:g}}catch(g){if(Object.defineProperty(g,"$response",{value:i,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in g)){const b="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{g.message+=` - `+b}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(b):n.logger?.warn?.(b)}typeof g.$responseBodyText<"u"&&g.$response&&(g.$response.body=g.$responseBodyText);try{if(ja.isInstance(i)){const{headers:v={}}=i,_=Object.entries(v);g.$metadata={httpStatusCode:i.statusCode,requestId:M0(/^x-[\w-]+-request-?id$/,_),extendedRequestId:M0(/^x-[\w-]+-id-2$/,_),cfId:M0(/^x-[\w-]+-cf-id$/,_)}}}catch{}}throw g}},M0=(e,t)=>(t.find(([n])=>n.match(e))||[void 0,void 0])[1],AK=e=>(t,n)=>async r=>{const{operationSchema:i}=Io(n),[,c,l,f,d,h]=i??[],y=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint,g=await e.protocol.serializeRequest(ZM(c,l,f,d,h),r.input,{...e,...n,endpoint:y});return t({...r,request:g})},IK={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},OK={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function YM(e){return{applyToStack:t=>{t.add(AK(e),OK),t.add(TK(e),IK),e.protocol.setSerdeContext(e)}}}function Qc(e){if(typeof e=="object")return e;e=e|0;const t={};let n=0;for(const r of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>n++&1)===1&&(t[r]=1);return t}const TT={it:Symbol.for("@smithy/nor-struct-it")};class _t{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=_t.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;const r=[];let i=t,c=t;for(this._isMemberSchema=!1;D0(i);)r.push(i[1]),i=i[0],c=Hh(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let l=r.length-1;l>=0;--l){const f=r[l];Object.assign(this.memberTraits,Qc(f))}}else this.memberTraits=0;if(c instanceof _t){const l=this.memberTraits;Object.assign(this,c),this.memberTraits=Object.assign({},l,c.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??c.memberName;return}if(this.schema=Hh(c),MK(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(c),this.traits=0),this._isMemberSchema&&!n)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](t){const n=this.prototype.isPrototypeOf(t);return!n&&typeof t=="object"&&t!==null?t.symbol===this.symbol:n}static of(t){const n=Hh(t);if(n instanceof _t)return n;if(D0(n)){const[r,i]=n;if(r instanceof _t)return Object.assign(r.getMergedTraits(),Qc(i)),r;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}return new _t(n)}getSchema(){const t=this.schema;return Array.isArray(t)&&t[0]===0?t[4]:t}getName(t=!1){const{name:n}=this;return!t&&n&&n.includes("#")?n.split("#")[1]:n||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const t=this.getSchema();return typeof t=="number"?t>=64&&t<128:t[0]===1}isMapSchema(){const t=this.getSchema();return typeof t=="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){const t=this.getSchema();if(typeof t!="object")return!1;const n=t[0];return n===3||n===-3||n===4}isUnionSchema(){const t=this.getSchema();return typeof t!="object"?!1:t[0]===4}isBlobSchema(){const t=this.getSchema();return t===21||t===42}isTimestampSchema(){const t=this.getSchema();return typeof t=="number"&&t>=4&&t<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return Qc(this.memberTraits)}getOwnTraits(){return Qc(this.traits)}getKeySchema(){const[t,n]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!n)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const r=this.getSchema(),i=t?15:r[4]??0;return Fu([i,0],"key")}getValueSchema(){const t=this.getSchema(),[n,r,i]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],c=typeof t=="number"?63&t:t&&typeof t=="object"&&(r||i)?t[3+t[0]]:n?15:void 0;if(c!=null)return Fu([c,0],r?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(t){const n=this.getSchema();if(this.isStructSchema()&&n[4].includes(t)){const r=n[4].indexOf(t),i=n[5][r];return Fu(D0(i)?i:[i,0],t)}if(this.isDocumentSchema())return Fu([15,0],t);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${t}.`)}getMemberSchemas(){const t={};try{for(const[n,r]of this.structIterator())t[n]=r}catch{}return t}getEventStreamMember(){if(this.isStructSchema()){for(const[t,n]of this.structIterator())if(n.isStreaming()&&n.isStructSchema())return t}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const t=this.getSchema(),n=t[4].length;let r=t[TT.it];if(r&&n===r.length){yield*r;return}r=Array(n);for(let i=0;iArray.isArray(e)&&e.length===2,MK=e=>Array.isArray(e)&&e.length>=5;class Jn{namespace;schemas;exceptions;static registries=new Map;constructor(t,n=new Map,r=new Map){this.namespace=t,this.schemas=n,this.exceptions=r}static for(t){return Jn.registries.has(t)||Jn.registries.set(t,new Jn(t)),Jn.registries.get(t)}copyFrom(t){const{schemas:n,exceptions:r}=this;for(const[i,c]of t.schemas)n.has(i)||n.set(i,c);for(const[i,c]of t.exceptions)r.has(i)||r.set(i,c)}register(t,n){const r=this.normalizeShapeId(t);for(const i of[this,Jn.for(r.split("#")[0])])i.schemas.set(r,n)}getSchema(t){const n=this.normalizeShapeId(t);if(!this.schemas.has(n))throw new Error(`@smithy/core/schema - schema not found for ${n}`);return this.schemas.get(n)}registerError(t,n){const r=t,i=r[1];for(const c of[this,Jn.for(i)])c.schemas.set(i+"#"+r[2],r),c.exceptions.set(r,n)}getErrorCtor(t){const n=t;return this.exceptions.has(n)?this.exceptions.get(n):Jn.for(n[1]).exceptions.get(n)}getBaseException(){for(const t of this.exceptions.keys())if(Array.isArray(t)){const[,n,r]=t,i=n+"#"+r;if(i.startsWith("smithy.ts.sdk.synthetic.")&&i.endsWith("ServiceException"))return t}}find(t){return[...this.schemas.values()].find(t)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(t){return t.includes("#")?t:this.namespace+"#"+t}}const DK=e=>{if(e!=null){if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&UK.warn($K(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},kK=Math.ceil(2**127*(2-2**-23)),AT=e=>{const t=DK(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>kK)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},PK=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},IT=e=>QM(e,16),OT=e=>QM(e,8),QM=(e,t)=>{const n=PK(e);if(n!==void 0&&NK(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},NK=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},zK=e=>AT(typeof e=="string"?Kv(e):e),LK=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Kv=e=>{const t=e.match(LK);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},qb=e=>IT(typeof e=="string"?Kv(e):e),BK=e=>OT(typeof e=="string"?Kv(e):e),$K=e=>String(new TypeError(e).stack||e).split(` +`)}})};async function fQ(e,t){let n=0;const r=[],i=e.getReader();let c=!1;for(;!c;){const{done:d,value:p}=await i.read();if(p&&(r.push(p),n+=p?.byteLength??0),n>=t)break;c=d}i.releaseLock();const l=new Uint8Array(Math.min(t,n));let f=0;for(const d of r){if(d.byteLength>l.byteLength-f){l.set(d.subarray(0,l.byteLength-f),f);break}else l.set(d,f);f+=d.length}return l}const tc=e=>encodeURIComponent(e).replace(/[!'()*]/g,dQ),dQ=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function pQ(e){const t=[];for(let n of Object.keys(e).sort()){const r=e[n];if(n=tc(n),Array.isArray(r))for(let i=0,c=r.length;i{e&&setTimeout(()=>{const r=new Error(`Request did not complete within ${e} ms`);r.name="TimeoutError",n(r)},e)})}const lb={supported:void 0};class Bm{config;configProvider;static create(t){return typeof t?.handle=="function"?t:new Bm(t)}constructor(t){typeof t=="function"?this.configProvider=t().then(n=>n||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config)),lb.supported===void 0&&(lb.supported=typeof Request<"u"&&"keepalive"in yT("https://[::1]"))}destroy(){}async handle(t,{abortSignal:n,requestTimeout:r}={}){this.config||(this.config=await this.configProvider);const i=r??this.config.requestTimeout,c=this.config.keepAlive===!0,l=this.config.credentials;if(n?.aborted){const O=new Error("Request aborted");return O.name="AbortError",Promise.reject(O)}let f=t.path;const d=pQ(t.query||{});d&&(f+=`?${d}`),t.fragment&&(f+=`#${t.fragment}`);let p="";if(t.username!=null||t.password!=null){const O=t.username??"",k=t.password??"";p=`${O}:${k}@`}const{port:b,method:g}=t,v=`${t.protocol}//${p}${t.hostname}${b?`:${b}`:""}${f}`,S=g==="GET"||g==="HEAD"?void 0:t.body,w={body:S,headers:new Headers(t.headers),method:g,credentials:l};this.config?.cache&&(w.cache=this.config.cache),S&&(w.duplex="half"),typeof AbortController<"u"&&(w.signal=n),lb.supported&&(w.keepalive=c),typeof this.config.requestInit=="function"&&Object.assign(w,this.config.requestInit(t));let E=()=>{};const R=yT(v,w),C=[fetch(R).then(O=>{const k=O.headers,T={};for(const j of k.entries())T[j[0]]=j[1];return O.body!=null?{response:new ac({headers:T,reason:O.statusText,statusCode:O.status,body:O.body})}:O.blob().then(j=>({response:new ac({headers:T,reason:O.statusText,statusCode:O.status,body:j})}))}),hQ(i)];return n&&C.push(new Promise((O,k)=>{const T=()=>{const $=new Error("Request aborted");$.name="AbortError",k($)};if(typeof n.addEventListener=="function"){const $=n;$.addEventListener("abort",T,{once:!0}),E=()=>$.removeEventListener("abort",T)}else n.onabort=T})),Promise.race(C).finally(E)}updateHttpClientConfig(t,n){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[t]=n,r))}httpHandlerConfigs(){return this.config??{}}}const RS=async e=>typeof Blob=="function"&&e instanceof Blob||e.constructor?.name==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(await e.arrayBuffer()):mQ(e):gQ(e);async function mQ(e){const t=await yQ(e),n=cc(t);return new Uint8Array(n)}async function gQ(e){const t=[],n=e.getReader();let r=!1,i=0;for(;!r;){const{done:f,value:d}=await n.read();d&&(t.push(d),i+=d.length),r=f}const c=new Uint8Array(i);let l=0;for(const f of t)c.set(f,l),l+=f.length;return c}function yQ(e){return new Promise((t,n)=>{const r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(new Error("Reader aborted too early"));const i=r.result??"",c=i.indexOf(","),l=c>-1?c+1:i.length;t(i.substring(l))},r.onabort=()=>n(new Error("Read aborted")),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}const BD={},wv={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),BD[e]=t,wv[t]=e}function $D(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let n=0;n{if(!vT(e)&&!gT(e)){const i=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${i}`)}let t=!1;const n=async()=>{if(t)throw new Error(bT);return t=!0,await RS(e)},r=i=>{if(typeof i.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. +If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return i.stream()};return Object.assign(e,{transformToByteArray:n,transformToString:async i=>{const c=await n();if(i==="base64")return ea(c);if(i==="hex")return _s(c);if(i===void 0||i==="utf8"||i==="utf-8")return pc(c);if(typeof TextDecoder=="function")return new TextDecoder(i).decode(c);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(bT);if(t=!0,vT(e))return r(e);if(gT(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},vT=e=>typeof Blob=="function"&&e instanceof Blob;async function bQ(e){return typeof e.stream=="function"&&(e=e.stream()),e.tee()}const Qi=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return ec.mutate(e);if(!e)return ec.mutate(new Uint8Array);const n=t.streamCollector(e);return ec.mutate(await n)};function tm(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}const wh=e=>typeof e=="function"?e():e,jD=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i}),vQ=e=>(t,n)=>async r=>{const{response:i}=await t(r),{operationSchema:c}=qo(n),[,l,f,d,p,b]=c??[];try{const g=await e.protocol.deserializeResponse(jD(l,f,d,p,b),{...e,...n},i);return{response:i,output:g}}catch(g){if(Object.defineProperty(g,"$response",{value:i,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in g)){const v="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{g.message+=` + `+v}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(v):n.logger?.warn?.(v)}typeof g.$responseBodyText<"u"&&g.$response&&(g.$response.body=g.$responseBodyText);try{if(ac.isInstance(i)){const{headers:S={}}=i,w=Object.entries(S);g.$metadata={httpStatusCode:i.statusCode,requestId:ub(/^x-[\w-]+-request-?id$/,w),extendedRequestId:ub(/^x-[\w-]+-id-2$/,w),cfId:ub(/^x-[\w-]+-cf-id$/,w)}}}catch{}}throw g}},ub=(e,t)=>(t.find(([n])=>n.match(e))||[void 0,void 0])[1],SQ=e=>(t,n)=>async r=>{const{operationSchema:i}=qo(n),[,c,l,f,d,p]=i??[],b=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint,g=await e.protocol.serializeRequest(jD(c,l,f,d,p),r.input,{...e,...n,endpoint:b});return t({...r,request:g})},_Q={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},wQ={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function HD(e){return{applyToStack:t=>{t.add(SQ(e),wQ),t.add(vQ(e),_Q),e.protocol.setSerdeContext(e)}}}function gl(e){if(typeof e=="object")return e;e=e|0;const t={};let n=0;for(const r of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>n++&1)===1&&(t[r]=1);return t}const ST={it:Symbol.for("@smithy/nor-struct-it")};class Ct{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=Ct.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;const r=[];let i=t,c=t;for(this._isMemberSchema=!1;fb(i);)r.push(i[1]),i=i[0],c=wh(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let l=r.length-1;l>=0;--l){const f=r[l];Object.assign(this.memberTraits,gl(f))}}else this.memberTraits=0;if(c instanceof Ct){const l=this.memberTraits;Object.assign(this,c),this.memberTraits=Object.assign({},l,c.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??c.memberName;return}if(this.schema=wh(c),EQ(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(c),this.traits=0),this._isMemberSchema&&!n)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](t){const n=this.prototype.isPrototypeOf(t);return!n&&typeof t=="object"&&t!==null?t.symbol===this.symbol:n}static of(t){const n=wh(t);if(n instanceof Ct)return n;if(fb(n)){const[r,i]=n;if(r instanceof Ct)return Object.assign(r.getMergedTraits(),gl(i)),r;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}return new Ct(n)}getSchema(){const t=this.schema;return Array.isArray(t)&&t[0]===0?t[4]:t}getName(t=!1){const{name:n}=this;return!t&&n&&n.includes("#")?n.split("#")[1]:n||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const t=this.getSchema();return typeof t=="number"?t>=64&&t<128:t[0]===1}isMapSchema(){const t=this.getSchema();return typeof t=="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){const t=this.getSchema();if(typeof t!="object")return!1;const n=t[0];return n===3||n===-3||n===4}isUnionSchema(){const t=this.getSchema();return typeof t!="object"?!1:t[0]===4}isBlobSchema(){const t=this.getSchema();return t===21||t===42}isTimestampSchema(){const t=this.getSchema();return typeof t=="number"&&t>=4&&t<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return gl(this.memberTraits)}getOwnTraits(){return gl(this.traits)}getKeySchema(){const[t,n]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!n)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const r=this.getSchema(),i=t?15:r[4]??0;return ff([i,0],"key")}getValueSchema(){const t=this.getSchema(),[n,r,i]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],c=typeof t=="number"?63&t:t&&typeof t=="object"&&(r||i)?t[3+t[0]]:n?15:void 0;if(c!=null)return ff([c,0],r?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(t){const n=this.getSchema();if(this.isStructSchema()&&n[4].includes(t)){const r=n[4].indexOf(t),i=n[5][r];return ff(fb(i)?i:[i,0],t)}if(this.isDocumentSchema())return ff([15,0],t);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${t}.`)}getMemberSchemas(){const t={};try{for(const[n,r]of this.structIterator())t[n]=r}catch{}return t}getEventStreamMember(){if(this.isStructSchema()){for(const[t,n]of this.structIterator())if(n.isStreaming()&&n.isStructSchema())return t}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const t=this.getSchema(),n=t[4].length;let r=t[ST.it];if(r&&n===r.length){yield*r;return}r=Array(n);for(let i=0;iArray.isArray(e)&&e.length===2,EQ=e=>Array.isArray(e)&&e.length>=5;class ts{namespace;schemas;exceptions;static registries=new Map;constructor(t,n=new Map,r=new Map){this.namespace=t,this.schemas=n,this.exceptions=r}static for(t){return ts.registries.has(t)||ts.registries.set(t,new ts(t)),ts.registries.get(t)}copyFrom(t){const{schemas:n,exceptions:r}=this;for(const[i,c]of t.schemas)n.has(i)||n.set(i,c);for(const[i,c]of t.exceptions)r.has(i)||r.set(i,c)}register(t,n){const r=this.normalizeShapeId(t);for(const i of[this,ts.for(r.split("#")[0])])i.schemas.set(r,n)}getSchema(t){const n=this.normalizeShapeId(t);if(!this.schemas.has(n))throw new Error(`@smithy/core/schema - schema not found for ${n}`);return this.schemas.get(n)}registerError(t,n){const r=t,i=r[1];for(const c of[this,ts.for(i)])c.schemas.set(i+"#"+r[2],r),c.exceptions.set(r,n)}getErrorCtor(t){const n=t;return this.exceptions.has(n)?this.exceptions.get(n):ts.for(n[1]).exceptions.get(n)}getBaseException(){for(const t of this.exceptions.keys())if(Array.isArray(t)){const[,n,r]=t,i=n+"#"+r;if(i.startsWith("smithy.ts.sdk.synthetic.")&&i.endsWith("ServiceException"))return t}}find(t){return[...this.schemas.values()].find(t)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(t){return t.includes("#")?t:this.namespace+"#"+t}}const xQ=e=>{if(e!=null){if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&DQ.warn(MQ(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},RQ=Math.ceil(2**127*(2-2**-23)),_T=e=>{const t=xQ(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>RQ)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},CQ=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},wT=e=>VD(e,16),ET=e=>VD(e,8),VD=(e,t)=>{const n=CQ(e);if(n!==void 0&&AQ(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},AQ=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},TQ=e=>_T(typeof e=="string"?CS(e):e),IQ=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,CS=e=>{const t=e.match(IQ);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},Ev=e=>wT(typeof e=="string"?CS(e):e),OQ=e=>ET(typeof e=="string"?CS(e):e),MQ=e=>String(new TypeError(e).stack||e).split(` `).slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join(` -`),UK={warn:console.warn},jK=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Zv=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function wp(e){const t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),c=e.getUTCHours(),l=e.getUTCMinutes(),f=e.getUTCSeconds(),d=i<10?`0${i}`:`${i}`,h=c<10?`0${c}`:`${c}`,y=l<10?`0${l}`:`${l}`,g=f<10?`0${f}`:`${f}`;return`${jK[r]}, ${d} ${Zv[n]} ${t} ${h}:${y}:${g} GMT`}const HK=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),FK=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),qK=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),oSe=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=HK.exec(e);if(t){const[n,r,i,c,l,f,d,h]=t;return k0(qb(xp(c)),P0(i),rl(r,"day",1,31),{hours:l,minutes:f,seconds:d,fractionalMilliseconds:h})}if(t=FK.exec(e),t){const[n,r,i,c,l,f,d,h]=t;return KK(k0(VK(c),P0(i),rl(r,"day",1,31),{hours:l,minutes:f,seconds:d,fractionalMilliseconds:h}))}if(t=qK.exec(e),t){const[n,r,i,c,l,f,d,h]=t;return k0(qb(xp(h)),P0(r),rl(i.trimLeft(),"day",1,31),{hours:c,minutes:l,seconds:f,fractionalMilliseconds:d})}throw new TypeError("Invalid RFC-7231 date-time value")},k0=(e,t,n,r)=>{const i=t-1;return YK(e,i,n),new Date(Date.UTC(e,i,n,rl(r.hours,"hour",0,23),rl(r.minutes,"minute",0,59),rl(r.seconds,"seconds",0,60),XK(r.fractionalMilliseconds)))},VK=e=>{const t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+qb(xp(e));return ne.getTime()-new Date().getTime()>GK?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,P0=e=>{const t=Zv.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},ZK=[31,28,31,30,31,30,31,31,30,31,30,31],YK=(e,t,n)=>{let r=ZK[t];if(t===1&&QK(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${Zv[t]} in ${e}: ${n}`)},QK=e=>e%4===0&&(e%100!==0||e%400===0),rl=(e,t,n,r)=>{const i=BK(xp(e));if(ir)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},XK=e=>e==null?0:zK("0."+e)*1e3,xp=e=>{let t=0;for(;tt.toString(16).padStart(2,"0")),om=()=>{if(MT)return MT();const e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Zn[e[0]]+Zn[e[1]]+Zn[e[2]]+Zn[e[3]]+"-"+Zn[e[4]]+Zn[e[5]]+"-"+Zn[e[6]]+Zn[e[7]]+"-"+Zn[e[8]]+Zn[e[9]]+"-"+Zn[e[10]]+Zn[e[11]]+Zn[e[12]]+Zn[e[13]]+Zn[e[14]]+Zn[e[15]]},Di=function(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})};Di.from=e=>e&&typeof e=="object"&&(e instanceof Di||"deserializeJSON"in e)?e:typeof e=="string"||Object.getPrototypeOf(e)===String.prototype?Di(String(e)):Di(JSON.stringify(e));Di.fromObject=Di.from;function WK(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}const Yv="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",Qv="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",Xv="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",XM="(\\d?\\d)",WM="(\\d{4})",JK=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),eZ=new RegExp(`^${Yv}, ${XM} ${Qv} ${WM} ${Xv} GMT$`),tZ=new RegExp(`^${Yv}, ${XM}-${Qv}-(\\d\\d) ${Xv} GMT$`),nZ=new RegExp(`^${Yv} ${Qv} ( [1-9]|\\d\\d) ${Xv} ${WM}$`),sZ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],rZ=e=>{if(e==null)return;let t=NaN;if(typeof e=="number")t=e;else if(typeof e=="string"){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else typeof e=="object"&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(t*1e3))},oZ=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC3339 timestamps must be strings");const t=JK.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);const[,n,r,i,c,l,f,,d,h]=t;vo(r,1,12),vo(i,1,31),vo(c,0,23),vo(l,0,59),vo(f,0,60);const y=new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(c),Number(l),Number(f),Number(d)?Math.round(parseFloat(`0.${d}`)*1e3):0));if(y.setUTCFullYear(Number(n)),h.toUpperCase()!="Z"){const[,g,b,v]=/([+-])(\d\d):(\d\d)/.exec(h)||[void 0,"+",0,0],_=g==="-"?1:-1;y.setTime(y.getTime()+_*(Number(b)*60*60*1e3+Number(v)*60*1e3))}return y},iZ=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC7231 timestamps must be strings.");let t,n,r,i,c,l,f,d;if((d=eZ.exec(e))?[,t,n,r,i,c,l,f]=d:(d=tZ.exec(e))?([,t,n,r,i,c,l,f]=d,r=(Number(r)+1900).toString()):(d=nZ.exec(e))&&([,n,t,i,c,l,f,r]=d),r&&l){const h=Date.UTC(Number(r),sZ.indexOf(n),Number(t),Number(i),Number(c),Number(l),f?Math.round(parseFloat(`0.${f}`)*1e3):0);vo(t,1,31),vo(i,0,23),vo(c,0,59),vo(l,0,60);const y=new Date(h);return y.setUTCFullYear(Number(r)),y}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function vo(e,t,n){const r=Number(e);if(rn)throw new Error(`Value ${r} out of range [${t}, ${n}]`)}function aZ(e,t,n){if(!Number.isInteger(n))throw new Error("Invalid number of delimiters ("+n+") for splitEvery.");const r=e.split(t),i=[];let c="";for(let l=0;l{const t=e.length,n=[];let r=!1,i,c=0;for(let l=0;l{l=l.trim();const f=l.length;return f<2?l:(l[0]==='"'&&l[f-1]==='"'&&(l=l.slice(1,f-1)),l.replace(/\\"/g,'"'))})},DT=/^-?\d*(\.\d+)?$/;class If{string;type;constructor(t,n){if(this.string=t,this.type=n,!DT.test(t))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!="object")return!1;const n=t;return If.prototype.isPrototypeOf(t)||n.type==="bigDecimal"&&DT.test(n.string)}}const cZ="modulepreload",lZ=function(e){return"/"+e},kT={},Jt=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let d=function(h){return Promise.all(h.map(y=>Promise.resolve(y).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),f=l?.nonce||l?.getAttribute("nonce");i=d(n.map(h=>{if(h=lZ(h),h in kT)return;kT[h]=!0;const y=h.endsWith(".css"),g=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const b=document.createElement("link");if(b.rel=y?"stylesheet":cZ,y||(b.as="script"),b.crossOrigin="",b.href=h,f&&b.setAttribute("nonce",f),document.head.appendChild(b),y)return new Promise((v,_)=>{b.addEventListener("load",v),b.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${h}`)))})}))}function c(l){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=l,window.dispatchEvent(f),!f.defaultPrevented)throw l}return i.then(l=>{for(const f of l||[])f.status==="rejected"&&c(f.reason);return t().catch(c)})};class im{serdeContext;setSerdeContext(t){this.serdeContext=t}}class eD extends im{options;compositeErrorRegistry;constructor(t){super(),this.options=t,this.compositeErrorRegistry=Jn.for(t.defaultNamespace);for(const n of t.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(n)}getRequestType(){return On}getResponseType(){return ja}setSerdeContext(t){this.serdeContext=t,this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(t)}updateServiceEndpoint(t,n){if("url"in n){t.protocol=n.url.protocol,t.hostname=n.url.hostname,t.port=n.url.port?Number(n.url.port):void 0,t.path=n.url.pathname,t.fragment=n.url.hash||void 0,t.username=n.url.username||void 0,t.password=n.url.password||void 0,t.query||(t.query={});for(const[r,i]of n.url.searchParams.entries())t.query[r]=i;return t}else return t.protocol=n.protocol,t.hostname=n.hostname,t.port=n.port?Number(n.port):void 0,t.path=n.path,t.query={...n.query},t}setHostPrefix(t,n,r){if(this.serdeContext?.disableHostPrefix)return;const i=_t.of(n.input),c=Qc(n.traits??{});if(c.endpoint){let l=c.endpoint?.[0];if(typeof l=="string"){const f=[...i.structIterator()].filter(([,d])=>d.getMergedTraits().hostLabel);for(const[d]of f){const h=r[d];if(typeof h!="string")throw new Error(`@smithy/core/schema - ${d} in input must be a string as hostLabel.`);l=l.replace(`{${d}}`,h)}t.hostname=l+t.hostname}}}deserializeMetadata(t){return{httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:t,requestSchema:n,initialRequest:r}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:t,requestSchema:n,initialRequest:r})}async deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:r}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:r})}async loadEventStreamCapability(){const{EventStreamSerde:t}=await Jt(async()=>{const{EventStreamSerde:n}=await import("./index2.js");return{EventStreamSerde:n}},[]);return new t({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(t,n,r,i,c){return[]}getEventStreamMarshaller(){const t=this.serdeContext;if(!t.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return t.eventStreamMarshaller}}class uZ extends eD{async serializeRequest(t,n,r){const i={...n??{}},c=this.serializer,l={},f={},d=await r.endpoint(),h=_t.of(t?.input),y=h.getSchema();let g=!1,b;const v=new On({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:l,headers:f,body:void 0});if(d){this.updateServiceEndpoint(v,d),this.setHostPrefix(v,t,i);const _=Qc(t.traits);if(_.http){v.method=_.http[0];const[x,R]=_.http[1].split("?");v.path=="/"?v.path=x:v.path+=x;const C=new URLSearchParams(R??"");Object.assign(l,Object.fromEntries(C))}}for(const[_,x]of h.structIterator()){const R=x.getMergedTraits()??{},C=i[_];if(C==null&&!x.isIdempotencyToken()){if(R.httpLabel&&(v.path.includes(`{${_}+}`)||v.path.includes(`{${_}}`)))throw new Error(`No value provided for input HTTP label: ${_}.`);continue}if(R.httpPayload)x.isStreaming()?x.isStructSchema()?i[_]&&(b=await this.serializeEventStream({eventStream:i[_],requestSchema:h})):b=C:(c.write(x,C),b=c.flush()),delete i[_];else if(R.httpLabel){c.write(x,C);const I=c.flush();v.path.includes(`{${_}+}`)?v.path=v.path.replace(`{${_}+}`,I.split("/").map(_p).join("/")):v.path.includes(`{${_}}`)&&(v.path=v.path.replace(`{${_}}`,_p(I))),delete i[_]}else if(R.httpHeader)c.write(x,C),f[R.httpHeader.toLowerCase()]=String(c.flush()),delete i[_];else if(typeof R.httpPrefixHeaders=="string"){for(const[I,D]of Object.entries(C)){const A=R.httpPrefixHeaders+I;c.write([x.getValueSchema(),{httpHeader:A}],D),f[A.toLowerCase()]=c.flush()}delete i[_]}else R.httpQuery||R.httpQueryParams?(this.serializeQuery(x,C,l),delete i[_]):g=!0}return g&&i&&(c.write(y,i),b=c.flush()),v.headers=f,v.query=l,v.body=b,v}serializeQuery(t,n,r){const i=this.serializer,c=t.getMergedTraits();if(c.httpQueryParams){for(const[l,f]of Object.entries(n))if(!(l in r)){const d=t.getValueSchema();Object.assign(d.getMergedTraits(),{...c,httpQuery:l,httpQueryParams:void 0}),this.serializeQuery(d,f,r)}return}if(t.isListSchema()){const l=!!t.getMergedTraits().sparse,f=[];for(const d of n){i.write([t.getValueSchema(),c],d);const h=i.flush();(l||h!==void 0)&&f.push(h)}r[c.httpQuery]=f}else i.write([t,c],n),r[c.httpQuery]=i.flush()}async deserializeResponse(t,n,r){const i=this.deserializer,c=_t.of(t.output),l={};if(r.statusCode>=300){const d=await Mi(r.body,n);throw d.byteLength>0&&Object.assign(l,await i.read(15,d)),await this.handleError(t,n,r,l,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const d in r.headers){const h=r.headers[d];delete r.headers[d],r.headers[d.toLowerCase()]=h}const f=await this.deserializeHttpMessage(c,n,r,l);if(f.length){const d=await Mi(r.body,n);if(d.byteLength>0){const h=await i.read(c,d);for(const y of f)h[y]!=null&&(l[y]=h[y])}}else f.discardResponseBody&&await Mi(r.body,n);return l.$metadata=this.deserializeMetadata(r),l}async deserializeHttpMessage(t,n,r,i,c){let l;i instanceof Set?l=c:l=i;let f=!0;const d=this.deserializer,h=_t.of(t),y=[];for(const[g,b]of h.structIterator()){const v=b.getMemberTraits();if(v.httpPayload){if(f=!1,b.isStreaming())b.isStructSchema()?l[g]=await this.deserializeEventStream({response:r,responseSchema:h}):l[g]=KM(r.body);else if(r.body){const x=await Mi(r.body,n);x.byteLength>0&&(l[g]=await d.read(b,x))}}else if(v.httpHeader){const _=String(v.httpHeader).toLowerCase(),x=r.headers[_];if(x!=null)if(b.isListSchema()){const R=b.getValueSchema();R.getMergedTraits().httpHeader=_;let C;R.isTimestampSchema()&&R.getSchema()===4?C=aZ(x,",",2):C=JM(x);const I=[];for(const D of C)I.push(await d.read(R,D.trim()));l[g]=I}else l[g]=await d.read(b,x)}else if(v.httpPrefixHeaders!==void 0){l[g]={};for(const[_,x]of Object.entries(r.headers))if(_.startsWith(v.httpPrefixHeaders)){const R=b.getValueSchema();R.getMergedTraits().httpHeader=_,l[g][_.slice(v.httpPrefixHeaders.length)]=await d.read(R,x)}}else v.httpResponseCode?l[g]=r.statusCode:y.push(g)}return y.discardResponseBody=f,y}}class fZ extends eD{async serializeRequest(t,n,r){const i=this.serializer,c={},l={},f=await r.endpoint(),d=_t.of(t?.input),h=d.getSchema();let y;const g=new On({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:c,headers:l,body:void 0});f&&(this.updateServiceEndpoint(g,f),this.setHostPrefix(g,t,n));const b={...n};if(n){const v=d.getEventStreamMember();if(v){if(b[v]){const _={};for(const[x,R]of d.structIterator())x!==v&&b[x]&&(i.write(R,b[x]),_[x]=i.flush());y=await this.serializeEventStream({eventStream:b[v],requestSchema:d,initialRequest:_})}}else i.write(h,b),y=i.flush()}return g.headers=l,g.query=c,g.body=y,g.method="POST",g}async deserializeResponse(t,n,r){const i=this.deserializer,c=_t.of(t.output),l={};if(r.statusCode>=300){const d=await Mi(r.body,n);throw d.byteLength>0&&Object.assign(l,await i.read(15,d)),await this.handleError(t,n,r,l,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const d in r.headers){const h=r.headers[d];delete r.headers[d],r.headers[d.toLowerCase()]=h}const f=c.getEventStreamMember();if(f)l[f]=await this.deserializeEventStream({response:r,responseSchema:c,initialResponseContainer:l});else{const d=await Mi(r.body,n);d.byteLength>0&&Object.assign(l,await i.read(c,d))}return l.$metadata=this.deserializeMetadata(r),l}}function am(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();const{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:c}=e.getMergedTraits();return(t.httpBindings?typeof r=="string"||i?6:c||n?5:void 0:void 0)??t.timestampFormat.default}class tD extends im{settings;constructor(t){super(),this.settings=t}read(t,n){const r=_t.of(t);if(r.isListSchema())return JM(n).map(i=>this.read(r.getValueSchema(),i));if(r.isBlobSchema())return(this.serdeContext?.base64Decoder??Ha)(n);if(r.isTimestampSchema())switch(am(r,this.settings)){case 5:return oZ(n);case 6:return iZ(n);case 7:return rZ(n);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",n),new Date(n)}if(r.isStringSchema()){const i=r.getMergedTraits().mediaType;let c=n;if(i)return r.getMergedTraits().httpHeader&&(c=this.base64ToUtf8(c)),(i==="application/json"||i.endsWith("+json"))&&(c=Di.from(c)),c}return r.isNumericSchema()?Number(n):r.isBigIntegerSchema()?BigInt(n):r.isBigDecimalSchema()?new If(n,"bigDecimal"):r.isBooleanSchema()?String(n).toLowerCase()==="true":n}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??Ka)((this.serdeContext?.base64Decoder??Ha)(t))}}class dZ extends im{codecDeserializer;stringDeserializer;constructor(t,n){super(),this.codecDeserializer=t,this.stringDeserializer=new tD(n)}setSerdeContext(t){this.stringDeserializer.setSerdeContext(t),this.codecDeserializer.setSerdeContext(t),this.serdeContext=t}read(t,n){const r=_t.of(t),i=r.getMergedTraits(),c=this.serdeContext?.utf8Encoder??Ka;if(i.httpHeader||i.httpResponseCode)return this.stringDeserializer.read(r,c(n));if(i.httpPayload){if(r.isBlobSchema()){const l=this.serdeContext?.utf8Decoder??Co;return typeof n=="string"?l(n):n}else if(r.isStringSchema())return"byteLength"in n?c(n):n}return this.codecDeserializer.read(r,n)}}class hZ extends im{settings;stringBuffer="";constructor(t){super(),this.settings=t}write(t,n){const r=_t.of(t);switch(typeof n){case"object":if(n===null){this.stringBuffer="null";return}if(r.isTimestampSchema()){if(!(n instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${n} when schema expected Date in ${r.getName(!0)}`);switch(am(r,this.settings)){case 5:this.stringBuffer=n.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=wp(n);break;case 7:this.stringBuffer=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",n),this.stringBuffer=String(n.getTime()/1e3)}return}if(r.isBlobSchema()&&"byteLength"in n){this.stringBuffer=(this.serdeContext?.base64Encoder??zi)(n);return}if(r.isListSchema()&&Array.isArray(n)){let l="";for(const f of n){this.write([r.getValueSchema(),r.getMergedTraits()],f);const d=this.flush(),h=r.getValueSchema().isTimestampSchema()?d:WK(d);l!==""&&(l+=", "),l+=h}this.stringBuffer=l;return}this.stringBuffer=JSON.stringify(n,null,2);break;case"string":const i=r.getMergedTraits().mediaType;let c=n;if(i&&((i==="application/json"||i.endsWith("+json"))&&(c=Di.from(c)),r.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??zi)(c.toString());return}this.stringBuffer=n;break;default:r.isIdempotencyToken()?this.stringBuffer=om():this.stringBuffer=String(n)}}flush(){const t=this.stringBuffer;return this.stringBuffer="",t}}class pZ{codecSerializer;stringSerializer;buffer;constructor(t,n,r=new hZ(n)){this.codecSerializer=t,this.stringSerializer=r}setSerdeContext(t){this.codecSerializer.setSerdeContext(t),this.stringSerializer.setSerdeContext(t)}write(t,n){const r=_t.of(t),i=r.getMergedTraits();if(i.httpHeader||i.httpLabel||i.httpQuery){this.stringSerializer.write(r,n),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(r,n)}flush(){if(this.buffer!==void 0){const t=this.buffer;return this.buffer=void 0,t}return this.codecSerializer.flush()}}function mZ(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}class nD{authSchemes=new Map;constructor(t){for(const[n,r]of Object.entries(t))r!==void 0&&this.authSchemes.set(n,r)}getIdentityProvider(t){return this.authSchemes.get(t)}}const gZ=e=>function(n){return sD(n)&&n.expiration.getTime()-Date.now()e.expiration!==void 0,vZ=(e,t,n)=>{if(e===void 0)return;const r=typeof e!="function"?async()=>Promise.resolve(e):e;let i,c,l,f=!1;const d=async h=>{c||(c=r(h));try{i=await c,l=!0,f=!1}finally{c=void 0}return i};return t===void 0?async h=>((!l||h?.forceRefresh)&&(i=await d(h)),i):async h=>((!l||h?.forceRefresh)&&(i=await d(h)),f?i:n(i)?(t(i)&&await d(h),i):(f=!0,i))},SZ=void 0;function _Z(e){return e===void 0?!0:typeof e=="string"&&e.length<=50}function rD(e){const t=nl(e.userAgentAppId??SZ),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n=="string"?[[n]]:n,userAgentAppId:async()=>{const r=await t();if(!_Z(r)){const i=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;typeof r!="string"?i?.warn("userAgentAppId must be a string or undefined."):r.length>50&&i?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return r}})}class oD{capacity;data=new Map;parameters=[];constructor({size:t,params:n}){this.capacity=t??50,n&&(this.parameters=n)}get(t,n){const r=this.hash(t);if(r===!1)return n();if(!this.data.has(r)){if(this.data.size>this.capacity+10){const i=this.data.keys();let c=0;for(;;){const{value:l,done:f}=i.next();if(this.data.delete(l),f||++c>10)break}}this.data.set(r,n())}return this.data.get(r)}size(){return this.data.size}hash(t){let n="";const{parameters:r}=this;if(r.length===0)return!1;for(const i of r){const c=String(t[i]??"");if(c.includes("|;"))return!1;n+=c+"|;"}return n}}const wZ=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),Wv=e=>wZ.test(e)||e.startsWith("[")&&e.endsWith("]"),xZ=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Of=(e,t=!1)=>{if(!t)return xZ.test(e);const n=e.split(".");for(const r of n)if(!Of(r))return!1;return!0},hl={},yf="endpoints";function Li(e){return typeof e!="object"||e==null?e:"ref"in e?`$${Li(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(Li).join(", ")})`:JSON.stringify(e,null,2)}class Us extends Error{constructor(t){super(t),this.name="EndpointError"}}const EZ=(e,t)=>e===t,RZ=e=>{const t=e.split("."),n=[];for(const r of t){const i=r.indexOf("[");if(i!==-1){if(r.indexOf("]")!==r.length-1)throw new Us(`Path: '${e}' does not end with ']'`);const c=r.slice(i+1,-1);if(Number.isNaN(parseInt(c)))throw new Us(`Invalid array index: '${c}' in path: '${e}'`);i!==0&&n.push(r.slice(0,i)),n.push(c)}else n.push(r)}return n},iD=(e,t)=>RZ(t).reduce((n,r)=>{if(typeof n!="object")throw new Us(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(n)?n[parseInt(r)]:n[r]},e),CZ=e=>e!=null,TZ=e=>!e,N0={[mf.HTTP]:80,[mf.HTTPS]:443},AZ=e=>{const t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){const{hostname:b,port:v,protocol:_="",path:x="",query:R={}}=e,C=new URL(`${_}//${b}${v?`:${v}`:""}${x}`);return C.search=Object.entries(R).map(([I,D])=>`${I}=${D}`).join("&"),C}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const n=t.href,{host:r,hostname:i,pathname:c,protocol:l,search:f}=t;if(f)return null;const d=l.slice(0,-1);if(!Object.values(mf).includes(d))return null;const h=Wv(i),y=n.includes(`${r}:${N0[d]}`)||typeof e=="string"&&e.includes(`${r}:${N0[d]}`),g=`${r}${y?`:${N0[d]}`:""}`;return{scheme:d,authority:g,path:c,normalizedPath:c.endsWith("/")?c:`${c}/`,isIp:h}},IZ=(e,t)=>e===t,OZ=(e,t,n,r)=>t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),DZ={booleanEquals:EZ,getAttr:iD,isSet:CZ,isValidHostLabel:Of,not:TZ,parseURL:AZ,stringEquals:IZ,substring:OZ,uriEncode:MZ},aD=(e,t)=>{const n=[],r={...t.endpointParams,...t.referenceRecord};let i=0;for(;i({...t.endpointParams,...t.referenceRecord})[e],cm=(e,t,n)=>{if(typeof e=="string")return aD(e,n);if(e.fn)return lD.callFunction(e,n);if(e.ref)return kZ(e,n);throw new Us(`'${t}': ${String(e)} is not a string, function or reference.`)},cD=({fn:e,argv:t},n)=>{const r=t.map(c=>["boolean","number"].includes(typeof c)?c:lD.evaluateExpression(c,"arg",n)),i=e.split(".");return i[0]in hl&&i[1]!=null?hl[i[0]][i[1]](...r):DZ[e](...r)},lD={evaluateExpression:cm,callFunction:cD},PZ=({assign:e,...t},n)=>{if(e&&e in n.referenceRecord)throw new Us(`'${e}' is already defined in Reference Record.`);const r=cD(t,n);return n.logger?.debug?.(`${yf} evaluateCondition: ${Li(t)} = ${Li(r)}`),{result:r===""?!0:!!r,...e!=null&&{toAssign:{name:e,value:r}}}},Jv=(e=[],t)=>{const n={};for(const r of e){const{result:i,toAssign:c}=PZ(r,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!i)return{result:i};c&&(n[c.name]=c.value,t.logger?.debug?.(`${yf} assign: ${c.name} := ${Li(c.value)}`))}return{result:!0,referenceRecord:n}},NZ=(e,t)=>Object.entries(e).reduce((n,[r,i])=>({...n,[r]:i.map(c=>{const l=cm(c,"Header value entry",t);if(typeof l!="string")throw new Us(`Header '${r}' value '${l}' is not a string`);return l})}),{}),uD=(e,t)=>Object.entries(e).reduce((n,[r,i])=>({...n,[r]:dD.getEndpointProperty(i,t)}),{}),fD=(e,t)=>{if(Array.isArray(e))return e.map(n=>fD(n,t));switch(typeof e){case"string":return aD(e,t);case"object":if(e===null)throw new Us(`Unexpected endpoint property: ${e}`);return dD.getEndpointProperties(e,t);case"boolean":return e;default:throw new Us(`Unexpected endpoint property type: ${typeof e}`)}},dD={getEndpointProperty:fD,getEndpointProperties:uD},zZ=(e,t)=>{const n=cm(e,"Endpoint URL",t);if(typeof n=="string")try{return new URL(n)}catch(r){throw console.error(`Failed to construct URL with ${n}`,r),r}throw new Us(`Endpoint URL must be a string, got ${typeof n}`)},LZ=(e,t)=>{const{conditions:n,endpoint:r}=e,{result:i,referenceRecord:c}=Jv(n,t);if(!i)return;const l={...t,referenceRecord:{...t.referenceRecord,...c}},{url:f,properties:d,headers:h}=r;return t.logger?.debug?.(`${yf} Resolving endpoint from template: ${Li(r)}`),{...h!=null&&{headers:NZ(h,l)},...d!=null&&{properties:uD(d,l)},url:zZ(f,l)}},BZ=(e,t)=>{const{conditions:n,error:r}=e,{result:i,referenceRecord:c}=Jv(n,t);if(i)throw new Us(cm(r,"Error",{...t,referenceRecord:{...t.referenceRecord,...c}}))},hD=(e,t)=>{for(const n of e)if(n.type==="endpoint"){const r=LZ(n,t);if(r)return r}else if(n.type==="error")BZ(n,t);else if(n.type==="tree"){const r=pD.evaluateTreeRule(n,t);if(r)return r}else throw new Us(`Unknown endpoint rule: ${n}`);throw new Us("Rules evaluation failed")},$Z=(e,t)=>{const{conditions:n,rules:r}=e,{result:i,referenceRecord:c}=Jv(n,t);if(i)return pD.evaluateRules(r,{...t,referenceRecord:{...t.referenceRecord,...c}})},pD={evaluateRules:hD,evaluateTreeRule:$Z},mD=(e,t)=>{const{endpointParams:n,logger:r}=t,{parameters:i,rules:c}=e;t.logger?.debug?.(`${yf} Initial EndpointParams: ${Li(n)}`);const l=Object.entries(i).filter(([,h])=>h.default!=null).map(([h,y])=>[h,y.default]);if(l.length>0)for(const[h,y]of l)n[h]=n[h]??y;const f=Object.entries(i).filter(([,h])=>h.required).map(([h])=>h);for(const h of f)if(n[h]==null)throw new Us(`Missing required parameter: '${h}'`);const d=hD(c,{endpointParams:n,logger:r,referenceRecord:{}});return t.logger?.debug?.(`${yf} Resolved endpoint: ${Li(d)}`),d},gD=(e,t=!1)=>{if(t){for(const n of e.split("."))if(!gD(n))return!1;return!0}return!(!Of(e)||e.length<3||e.length>63||e!==e.toLowerCase()||Wv(e))},PT=":",UZ="/",jZ=e=>{const t=e.split(PT);if(t.length<6)return null;const[n,r,i,c,l,...f]=t;if(n!=="arn"||r===""||i===""||f.join(PT)==="")return null;const d=f.map(h=>h.split(UZ)).flat();return{partition:r,service:i,region:c,accountId:l,resourceId:d}},HZ=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],FZ={partitions:HZ};let qZ=FZ;const VZ=e=>{const{partitions:t}=qZ;for(const r of t){const{regions:i,outputs:c}=r;for(const[l,f]of Object.entries(i))if(l===e)return{...c,...f}}for(const r of t){const{regionRegex:i,outputs:c}=r;if(new RegExp(i).test(e))return{...c}}const n=t.find(r=>r.id==="aws");if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}},GZ={isVirtualHostableS3Bucket:gD,parseArn:jZ,partition:VZ};hl.aws=GZ;function KZ(e){const t={};if(e=e.replace(/^\?/,""),e)for(const n of e.split("&")){let[r,i=null]=n.split("=");r=decodeURIComponent(r),i&&(i=decodeURIComponent(i)),r in t?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}return t}const bf=e=>{if(typeof e=="string")return bf(new URL(e));const{hostname:t,pathname:n,port:r,protocol:i,search:c}=e;let l;return c&&(l=KZ(c)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:l}};function ZZ(e,t,n){return e.$source||(e.$source={}),e.$source[t]=n,e}function Sr(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}const NT=e=>ja.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,eS=e=>new Date(Date.now()+e),YZ=(e,t)=>Math.abs(eS(t).getTime()-e)>=3e5,zT=(e,t)=>{const n=Date.parse(e);return YZ(n,t)?n-Date.now():t},ef=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},yD=async e=>{const t=ef("context",e.context),n=ef("config",e.config),r=t.endpointV2?.properties?.authSchemes?.[0],c=await ef("signer",n.signer)(r),l=e?.signingRegion,f=e?.signingRegionSet,d=e?.signingName;return{config:n,signer:c,signingRegion:l,signingRegionSet:f,signingName:d}};class tS{async sign(t,n,r){if(!On.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const i=await yD(r),{config:c,signer:l}=i;let{signingRegion:f,signingName:d}=i;const h=r.context;if(h?.authSchemes?.length??!1){const[g,b]=h.authSchemes;g?.name==="sigv4a"&&b?.name==="sigv4"&&(f=b?.signingRegion??f,d=b?.signingName??d)}return await l.sign(t,{signingDate:eS(c.systemClockOffset),signingRegion:f,signingService:d})}errorHandler(t){return n=>{const r=n.ServerTime??NT(n.$response);if(r){const i=ef("config",t.config),c=i.systemClockOffset;i.systemClockOffset=zT(r,i.systemClockOffset),i.systemClockOffset!==c&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}throw n}}successHandler(t,n){const r=NT(t);if(r){const i=ef("config",n.config);i.systemClockOffset=zT(r,i.systemClockOffset)}}}class QZ extends tS{async sign(t,n,r){if(!On.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:i,signer:c,signingRegion:l,signingRegionSet:f,signingName:d}=await yD(r),y=(await i.sigv4aSigningRegionSet?.()??f??[l]).join(",");return await c.sign(t,{signingDate:eS(i.systemClockOffset),signingRegion:y,signingService:d})}}const XZ=(e,t,n)=>{let r,i,c,l=!1;const f=async()=>{i||(i=e());try{r=await i,c=!0,l=!1}finally{i=void 0}return r};return async d=>((!c||d?.forceRefresh)&&(r=await f()),r)},WZ=e=>(e.sigv4aSigningRegionSet=nl(e.sigv4aSigningRegionSet),e),JZ="X-Amz-Algorithm",eY="X-Amz-Credential",bD="X-Amz-Date",tY="X-Amz-SignedHeaders",nY="X-Amz-Expires",vD="X-Amz-Signature",SD="X-Amz-Security-Token",_D="authorization",wD=bD.toLowerCase(),sY="date",rY=[_D,wD,sY],oY=vD.toLowerCase(),Vb="x-amz-content-sha256",iY=SD.toLowerCase(),aY={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},cY=/^proxy-/,lY=/^sec-/,z0="AWS4-HMAC-SHA256",uY="AWS4-HMAC-SHA256-PAYLOAD",fY="UNSIGNED-PAYLOAD",dY=50,xD="aws4_request",hY=3600*24*7,Ah={},L0=[],B0=(e,t,n)=>`${e}/${t}/${n}/${xD}`,pY=async(e,t,n,r,i)=>{const c=await LT(e,t.secretAccessKey,t.accessKeyId),l=`${n}:${r}:${i}:${vs(c)}:${t.sessionToken}`;if(l in Ah)return Ah[l];for(L0.push(l);L0.length>dY;)delete Ah[L0.shift()];let f=`AWS4${t.secretAccessKey}`;for(const d of[n,r,i,xD])f=await LT(e,f,d);return Ah[l]=f},LT=(e,t,n)=>{const r=new e(t);return r.update(gf(n)),r.digest()},BT=({headers:e},t,n)=>{const r={};for(const i of Object.keys(e).sort()){if(e[i]==null)continue;const c=i.toLowerCase();(c in aY||t?.has(c)||cY.test(c)||lY.test(c))&&(!n||n&&!n.has(c))||(r[c]=e[i].trim().replace(/\s+/g," "))}return r},mY=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]",$0=async({headers:e,body:t},n)=>{for(const r of Object.keys(e))if(r.toLowerCase()===Vb)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||mY(t)){const r=new n;return r.update(gf(t)),vs(await r.digest())}return fY};class gY{format(t){const n=[];for(const c of Object.keys(t)){const l=Co(c);n.push(Uint8Array.from([l.byteLength]),l,this.formatHeaderValue(t[c]))}const r=new Uint8Array(n.reduce((c,l)=>c+l.byteLength,0));let i=0;for(const c of n)r.set(c,i),i+=c.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":const c=new DataView(new ArrayBuffer(3+t.value.byteLength));c.setUint8(0,6),c.setUint16(1,t.value.byteLength,!1);const l=new Uint8Array(c.buffer);return l.set(t.value,3),l;case"string":const f=Co(t.value),d=new DataView(new ArrayBuffer(3+f.byteLength));d.setUint8(0,7),d.setUint16(1,f.byteLength,!1);const h=new Uint8Array(d.buffer);return h.set(f,3),h;case"timestamp":const y=new Uint8Array(9);return y[0]=8,y.set(bY.fromNumber(t.value.valueOf()).bytes,1),y;case"uuid":if(!yY.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const g=new Uint8Array(17);return g[0]=9,g.set(GM(t.value.replace(/\-/g,"")),1),g}}}var $T;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})($T||($T={}));const yY=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;let bY=class ED{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const n=new Uint8Array(8);for(let r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&UT(n),new ED(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&UT(t),parseInt(vs(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}};function UT(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}const vY=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},SY=(e,t={})=>{const{headers:n,query:r={}}=On.clone(e);for(const i of Object.keys(n)){const c=i.toLowerCase();(c.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(c)||t.hoistableHeaders?.has(c))&&(r[i]=n[i],delete n[i])}return{...e,headers:n,query:r}},jT=e=>{e=On.clone(e);for(const t of Object.keys(e.headers))rY.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},_Y=({query:e={}})=>{const t=[],n={};for(const r of Object.keys(e)){if(r.toLowerCase()===oY)continue;const i=Na(r);t.push(i);const c=e[r];typeof c=="string"?n[i]=`${i}=${Na(c)}`:Array.isArray(c)&&(n[i]=c.slice(0).reduce((l,f)=>l.concat([`${i}=${Na(f)}`]),[]).sort().join("&"))}return t.sort().map(r=>n[r]).filter(r=>r).join("&")},wY=e=>xY(e).toISOString().replace(/\.\d{3}Z$/,"Z"),xY=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;class EY{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:t,credentials:n,region:r,service:i,sha256:c,uriEscapePath:l=!0}){this.service=i,this.sha256=c,this.uriEscapePath=l,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=Bs(r),this.credentialProvider=Bs(n)}createCanonicalRequest(t,n,r){const i=Object.keys(n).sort();return`${t.method} +`),DQ={warn:console.warn},kQ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],AS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function nm(e){const t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),c=e.getUTCHours(),l=e.getUTCMinutes(),f=e.getUTCSeconds(),d=i<10?`0${i}`:`${i}`,p=c<10?`0${c}`:`${c}`,b=l<10?`0${l}`:`${l}`,g=f<10?`0${f}`:`${f}`;return`${kQ[r]}, ${d} ${AS[n]} ${t} ${p}:${b}:${g} GMT`}const PQ=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),NQ=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),LQ=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),XRe=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=PQ.exec(e);if(t){const[n,r,i,c,l,f,d,p]=t;return db(Ev(sm(c)),pb(i),xl(r,"day",1,31),{hours:l,minutes:f,seconds:d,fractionalMilliseconds:p})}if(t=NQ.exec(e),t){const[n,r,i,c,l,f,d,p]=t;return $Q(db(zQ(c),pb(i),xl(r,"day",1,31),{hours:l,minutes:f,seconds:d,fractionalMilliseconds:p}))}if(t=LQ.exec(e),t){const[n,r,i,c,l,f,d,p]=t;return db(Ev(sm(p)),pb(r),xl(i.trimLeft(),"day",1,31),{hours:c,minutes:l,seconds:f,fractionalMilliseconds:d})}throw new TypeError("Invalid RFC-7231 date-time value")},db=(e,t,n,r)=>{const i=t-1;return jQ(e,i,n),new Date(Date.UTC(e,i,n,xl(r.hours,"hour",0,23),xl(r.minutes,"minute",0,59),xl(r.seconds,"seconds",0,60),VQ(r.fractionalMilliseconds)))},zQ=e=>{const t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+Ev(sm(e));return ne.getTime()-new Date().getTime()>BQ?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,pb=e=>{const t=AS.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},UQ=[31,28,31,30,31,30,31,31,30,31,30,31],jQ=(e,t,n)=>{let r=UQ[t];if(t===1&&HQ(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${AS[t]} in ${e}: ${n}`)},HQ=e=>e%4===0&&(e%100!==0||e%400===0),xl=(e,t,n,r)=>{const i=OQ(sm(e));if(ir)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},VQ=e=>e==null?0:TQ("0."+e)*1e3,sm=e=>{let t=0;for(;tt.toString(16).padStart(2,"0")),$m=()=>{if(xT)return xT();const e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Yn[e[0]]+Yn[e[1]]+Yn[e[2]]+Yn[e[3]]+"-"+Yn[e[4]]+Yn[e[5]]+"-"+Yn[e[6]]+Yn[e[7]]+"-"+Yn[e[8]]+Yn[e[9]]+"-"+Yn[e[10]]+Yn[e[11]]+Yn[e[12]]+Yn[e[13]]+Yn[e[14]]+Yn[e[15]]},Yi=function(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})};Yi.from=e=>e&&typeof e=="object"&&(e instanceof Yi||"deserializeJSON"in e)?e:typeof e=="string"||Object.getPrototypeOf(e)===String.prototype?Yi(String(e)):Yi(JSON.stringify(e));Yi.fromObject=Yi.from;function FQ(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}const TS="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",IS="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",OS="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",FD="(\\d?\\d)",qD="(\\d{4})",qQ=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),GQ=new RegExp(`^${TS}, ${FD} ${IS} ${qD} ${OS} GMT$`),ZQ=new RegExp(`^${TS}, ${FD}-${IS}-(\\d\\d) ${OS} GMT$`),KQ=new RegExp(`^${TS} ${IS} ( [1-9]|\\d\\d) ${OS} ${qD}$`),QQ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],YQ=e=>{if(e==null)return;let t=NaN;if(typeof e=="number")t=e;else if(typeof e=="string"){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else typeof e=="object"&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(t*1e3))},XQ=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC3339 timestamps must be strings");const t=qQ.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);const[,n,r,i,c,l,f,,d,p]=t;No(r,1,12),No(i,1,31),No(c,0,23),No(l,0,59),No(f,0,60);const b=new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(c),Number(l),Number(f),Number(d)?Math.round(parseFloat(`0.${d}`)*1e3):0));if(b.setUTCFullYear(Number(n)),p.toUpperCase()!="Z"){const[,g,v,S]=/([+-])(\d\d):(\d\d)/.exec(p)||[void 0,"+",0,0],w=g==="-"?1:-1;b.setTime(b.getTime()+w*(Number(v)*60*60*1e3+Number(S)*60*1e3))}return b},WQ=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC7231 timestamps must be strings.");let t,n,r,i,c,l,f,d;if((d=GQ.exec(e))?[,t,n,r,i,c,l,f]=d:(d=ZQ.exec(e))?([,t,n,r,i,c,l,f]=d,r=(Number(r)+1900).toString()):(d=KQ.exec(e))&&([,n,t,i,c,l,f,r]=d),r&&l){const p=Date.UTC(Number(r),QQ.indexOf(n),Number(t),Number(i),Number(c),Number(l),f?Math.round(parseFloat(`0.${f}`)*1e3):0);No(t,1,31),No(i,0,23),No(c,0,59),No(l,0,60);const b=new Date(p);return b.setUTCFullYear(Number(r)),b}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function No(e,t,n){const r=Number(e);if(rn)throw new Error(`Value ${r} out of range [${t}, ${n}]`)}function JQ(e,t,n){if(!Number.isInteger(n))throw new Error("Invalid number of delimiters ("+n+") for splitEvery.");const r=e.split(t),i=[];let c="";for(let l=0;l{const t=e.length,n=[];let r=!1,i,c=0;for(let l=0;l{l=l.trim();const f=l.length;return f<2?l:(l[0]==='"'&&l[f-1]==='"'&&(l=l.slice(1,f-1)),l.replace(/\\"/g,'"'))})},RT=/^-?\d*(\.\d+)?$/;class Wf{string;type;constructor(t,n){if(this.string=t,this.type=n,!RT.test(t))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!="object")return!1;const n=t;return Wf.prototype.isPrototypeOf(t)||n.type==="bigDecimal"&&RT.test(n.string)}}const eY="modulepreload",tY=function(e){return"/"+e},CT={},xt=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let d=function(p){return Promise.all(p.map(b=>Promise.resolve(b).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),f=l?.nonce||l?.getAttribute("nonce");i=d(n.map(p=>{if(p=tY(p),p in CT)return;CT[p]=!0;const b=p.endsWith(".css"),g=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const v=document.createElement("link");if(v.rel=b?"stylesheet":eY,b||(v.as="script"),v.crossOrigin="",v.href=p,f&&v.setAttribute("nonce",f),document.head.appendChild(v),b)return new Promise((S,w)=>{v.addEventListener("load",S),v.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${p}`)))})}))}function c(l){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=l,window.dispatchEvent(f),!f.defaultPrevented)throw l}return i.then(l=>{for(const f of l||[])f.status==="rejected"&&c(f.reason);return t().catch(c)})};class Um{serdeContext;setSerdeContext(t){this.serdeContext=t}}class ZD extends Um{options;compositeErrorRegistry;constructor(t){super(),this.options=t,this.compositeErrorRegistry=ts.for(t.defaultNamespace);for(const n of t.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(n)}getRequestType(){return kn}getResponseType(){return ac}setSerdeContext(t){this.serdeContext=t,this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(t)}updateServiceEndpoint(t,n){if("url"in n){t.protocol=n.url.protocol,t.hostname=n.url.hostname,t.port=n.url.port?Number(n.url.port):void 0,t.path=n.url.pathname,t.fragment=n.url.hash||void 0,t.username=n.url.username||void 0,t.password=n.url.password||void 0,t.query||(t.query={});for(const[r,i]of n.url.searchParams.entries())t.query[r]=i;return t}else return t.protocol=n.protocol,t.hostname=n.hostname,t.port=n.port?Number(n.port):void 0,t.path=n.path,t.query={...n.query},t}setHostPrefix(t,n,r){if(this.serdeContext?.disableHostPrefix)return;const i=Ct.of(n.input),c=gl(n.traits??{});if(c.endpoint){let l=c.endpoint?.[0];if(typeof l=="string"){const f=[...i.structIterator()].filter(([,d])=>d.getMergedTraits().hostLabel);for(const[d]of f){const p=r[d];if(typeof p!="string")throw new Error(`@smithy/core/schema - ${d} in input must be a string as hostLabel.`);l=l.replace(`{${d}}`,p)}t.hostname=l+t.hostname}}}deserializeMetadata(t){return{httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:t,requestSchema:n,initialRequest:r}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:t,requestSchema:n,initialRequest:r})}async deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:r}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:r})}async loadEventStreamCapability(){const{EventStreamSerde:t}=await xt(async()=>{const{EventStreamSerde:n}=await import("./index2.js");return{EventStreamSerde:n}},[]);return new t({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(t,n,r,i,c){return[]}getEventStreamMarshaller(){const t=this.serdeContext;if(!t.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return t.eventStreamMarshaller}}class nY extends ZD{async serializeRequest(t,n,r){const i={...n??{}},c=this.serializer,l={},f={},d=await r.endpoint(),p=Ct.of(t?.input),b=p.getSchema();let g=!1,v;const S=new kn({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:l,headers:f,body:void 0});if(d){this.updateServiceEndpoint(S,d),this.setHostPrefix(S,t,i);const w=gl(t.traits);if(w.http){S.method=w.http[0];const[E,R]=w.http[1].split("?");S.path=="/"?S.path=E:S.path+=E;const C=new URLSearchParams(R??"");Object.assign(l,Object.fromEntries(C))}}for(const[w,E]of p.structIterator()){const R=E.getMergedTraits()??{},C=i[w];if(C==null&&!E.isIdempotencyToken()){if(R.httpLabel&&(S.path.includes(`{${w}+}`)||S.path.includes(`{${w}}`)))throw new Error(`No value provided for input HTTP label: ${w}.`);continue}if(R.httpPayload)E.isStreaming()?E.isStructSchema()?i[w]&&(v=await this.serializeEventStream({eventStream:i[w],requestSchema:p})):v=C:(c.write(E,C),v=c.flush()),delete i[w];else if(R.httpLabel){c.write(E,C);const O=c.flush();S.path.includes(`{${w}+}`)?S.path=S.path.replace(`{${w}+}`,O.split("/").map(tm).join("/")):S.path.includes(`{${w}}`)&&(S.path=S.path.replace(`{${w}}`,tm(O))),delete i[w]}else if(R.httpHeader)c.write(E,C),f[R.httpHeader.toLowerCase()]=String(c.flush()),delete i[w];else if(typeof R.httpPrefixHeaders=="string"){for(const[O,k]of Object.entries(C)){const T=R.httpPrefixHeaders+O;c.write([E.getValueSchema(),{httpHeader:T}],k),f[T.toLowerCase()]=c.flush()}delete i[w]}else R.httpQuery||R.httpQueryParams?(this.serializeQuery(E,C,l),delete i[w]):g=!0}return g&&i&&(c.write(b,i),v=c.flush()),S.headers=f,S.query=l,S.body=v,S}serializeQuery(t,n,r){const i=this.serializer,c=t.getMergedTraits();if(c.httpQueryParams){for(const[l,f]of Object.entries(n))if(!(l in r)){const d=t.getValueSchema();Object.assign(d.getMergedTraits(),{...c,httpQuery:l,httpQueryParams:void 0}),this.serializeQuery(d,f,r)}return}if(t.isListSchema()){const l=!!t.getMergedTraits().sparse,f=[];for(const d of n){i.write([t.getValueSchema(),c],d);const p=i.flush();(l||p!==void 0)&&f.push(p)}r[c.httpQuery]=f}else i.write([t,c],n),r[c.httpQuery]=i.flush()}async deserializeResponse(t,n,r){const i=this.deserializer,c=Ct.of(t.output),l={};if(r.statusCode>=300){const d=await Qi(r.body,n);throw d.byteLength>0&&Object.assign(l,await i.read(15,d)),await this.handleError(t,n,r,l,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const d in r.headers){const p=r.headers[d];delete r.headers[d],r.headers[d.toLowerCase()]=p}const f=await this.deserializeHttpMessage(c,n,r,l);if(f.length){const d=await Qi(r.body,n);if(d.byteLength>0){const p=await i.read(c,d);for(const b of f)p[b]!=null&&(l[b]=p[b])}}else f.discardResponseBody&&await Qi(r.body,n);return l.$metadata=this.deserializeMetadata(r),l}async deserializeHttpMessage(t,n,r,i,c){let l;i instanceof Set?l=c:l=i;let f=!0;const d=this.deserializer,p=Ct.of(t),b=[];for(const[g,v]of p.structIterator()){const S=v.getMemberTraits();if(S.httpPayload){if(f=!1,v.isStreaming())v.isStructSchema()?l[g]=await this.deserializeEventStream({response:r,responseSchema:p}):l[g]=UD(r.body);else if(r.body){const E=await Qi(r.body,n);E.byteLength>0&&(l[g]=await d.read(v,E))}}else if(S.httpHeader){const w=String(S.httpHeader).toLowerCase(),E=r.headers[w];if(E!=null)if(v.isListSchema()){const R=v.getValueSchema();R.getMergedTraits().httpHeader=w;let C;R.isTimestampSchema()&&R.getSchema()===4?C=JQ(E,",",2):C=GD(E);const O=[];for(const k of C)O.push(await d.read(R,k.trim()));l[g]=O}else l[g]=await d.read(v,E)}else if(S.httpPrefixHeaders!==void 0){l[g]={};for(const[w,E]of Object.entries(r.headers))if(w.startsWith(S.httpPrefixHeaders)){const R=v.getValueSchema();R.getMergedTraits().httpHeader=w,l[g][w.slice(S.httpPrefixHeaders.length)]=await d.read(R,E)}}else S.httpResponseCode?l[g]=r.statusCode:b.push(g)}return b.discardResponseBody=f,b}}class sY extends ZD{async serializeRequest(t,n,r){const i=this.serializer,c={},l={},f=await r.endpoint(),d=Ct.of(t?.input),p=d.getSchema();let b;const g=new kn({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:c,headers:l,body:void 0});f&&(this.updateServiceEndpoint(g,f),this.setHostPrefix(g,t,n));const v={...n};if(n){const S=d.getEventStreamMember();if(S){if(v[S]){const w={};for(const[E,R]of d.structIterator())E!==S&&v[E]&&(i.write(R,v[E]),w[E]=i.flush());b=await this.serializeEventStream({eventStream:v[S],requestSchema:d,initialRequest:w})}}else i.write(p,v),b=i.flush()}return g.headers=l,g.query=c,g.body=b,g.method="POST",g}async deserializeResponse(t,n,r){const i=this.deserializer,c=Ct.of(t.output),l={};if(r.statusCode>=300){const d=await Qi(r.body,n);throw d.byteLength>0&&Object.assign(l,await i.read(15,d)),await this.handleError(t,n,r,l,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const d in r.headers){const p=r.headers[d];delete r.headers[d],r.headers[d.toLowerCase()]=p}const f=c.getEventStreamMember();if(f)l[f]=await this.deserializeEventStream({response:r,responseSchema:c,initialResponseContainer:l});else{const d=await Qi(r.body,n);d.byteLength>0&&Object.assign(l,await i.read(c,d))}return l.$metadata=this.deserializeMetadata(r),l}}function jm(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();const{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:c}=e.getMergedTraits();return(t.httpBindings?typeof r=="string"||i?6:c||n?5:void 0:void 0)??t.timestampFormat.default}class KD extends Um{settings;constructor(t){super(),this.settings=t}read(t,n){const r=Ct.of(t);if(r.isListSchema())return GD(n).map(i=>this.read(r.getValueSchema(),i));if(r.isBlobSchema())return(this.serdeContext?.base64Decoder??cc)(n);if(r.isTimestampSchema())switch(jm(r,this.settings)){case 5:return XQ(n);case 6:return WQ(n);case 7:return YQ(n);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",n),new Date(n)}if(r.isStringSchema()){const i=r.getMergedTraits().mediaType;let c=n;if(i)return r.getMergedTraits().httpHeader&&(c=this.base64ToUtf8(c)),(i==="application/json"||i.endsWith("+json"))&&(c=Yi.from(c)),c}return r.isNumericSchema()?Number(n):r.isBigIntegerSchema()?BigInt(n):r.isBigDecimalSchema()?new Wf(n,"bigDecimal"):r.isBooleanSchema()?String(n).toLowerCase()==="true":n}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??pc)((this.serdeContext?.base64Decoder??cc)(t))}}class rY extends Um{codecDeserializer;stringDeserializer;constructor(t,n){super(),this.codecDeserializer=t,this.stringDeserializer=new KD(n)}setSerdeContext(t){this.stringDeserializer.setSerdeContext(t),this.codecDeserializer.setSerdeContext(t),this.serdeContext=t}read(t,n){const r=Ct.of(t),i=r.getMergedTraits(),c=this.serdeContext?.utf8Encoder??pc;if(i.httpHeader||i.httpResponseCode)return this.stringDeserializer.read(r,c(n));if(i.httpPayload){if(r.isBlobSchema()){const l=this.serdeContext?.utf8Decoder??Ho;return typeof n=="string"?l(n):n}else if(r.isStringSchema())return"byteLength"in n?c(n):n}return this.codecDeserializer.read(r,n)}}class oY extends Um{settings;stringBuffer="";constructor(t){super(),this.settings=t}write(t,n){const r=Ct.of(t);switch(typeof n){case"object":if(n===null){this.stringBuffer="null";return}if(r.isTimestampSchema()){if(!(n instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${n} when schema expected Date in ${r.getName(!0)}`);switch(jm(r,this.settings)){case 5:this.stringBuffer=n.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=nm(n);break;case 7:this.stringBuffer=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",n),this.stringBuffer=String(n.getTime()/1e3)}return}if(r.isBlobSchema()&&"byteLength"in n){this.stringBuffer=(this.serdeContext?.base64Encoder??ea)(n);return}if(r.isListSchema()&&Array.isArray(n)){let l="";for(const f of n){this.write([r.getValueSchema(),r.getMergedTraits()],f);const d=this.flush(),p=r.getValueSchema().isTimestampSchema()?d:FQ(d);l!==""&&(l+=", "),l+=p}this.stringBuffer=l;return}this.stringBuffer=JSON.stringify(n,null,2);break;case"string":const i=r.getMergedTraits().mediaType;let c=n;if(i&&((i==="application/json"||i.endsWith("+json"))&&(c=Yi.from(c)),r.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??ea)(c.toString());return}this.stringBuffer=n;break;default:r.isIdempotencyToken()?this.stringBuffer=$m():this.stringBuffer=String(n)}}flush(){const t=this.stringBuffer;return this.stringBuffer="",t}}class iY{codecSerializer;stringSerializer;buffer;constructor(t,n,r=new oY(n)){this.codecSerializer=t,this.stringSerializer=r}setSerdeContext(t){this.codecSerializer.setSerdeContext(t),this.stringSerializer.setSerdeContext(t)}write(t,n){const r=Ct.of(t),i=r.getMergedTraits();if(i.httpHeader||i.httpLabel||i.httpQuery){this.stringSerializer.write(r,n),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(r,n)}flush(){if(this.buffer!==void 0){const t=this.buffer;return this.buffer=void 0,t}return this.codecSerializer.flush()}}function aY(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}class QD{authSchemes=new Map;constructor(t){for(const[n,r]of Object.entries(t))r!==void 0&&this.authSchemes.set(n,r)}getIdentityProvider(t){return this.authSchemes.get(t)}}const cY=e=>function(n){return YD(n)&&n.expiration.getTime()-Date.now()e.expiration!==void 0,fY=(e,t,n)=>{if(e===void 0)return;const r=typeof e!="function"?async()=>Promise.resolve(e):e;let i,c,l,f=!1;const d=async p=>{c||(c=r(p));try{i=await c,l=!0,f=!1}finally{c=void 0}return i};return t===void 0?async p=>((!l||p?.forceRefresh)&&(i=await d(p)),i):async p=>((!l||p?.forceRefresh)&&(i=await d(p)),f?i:n(i)?(t(i)&&await d(p),i):(f=!0,i))},dY=void 0;function pY(e){return e===void 0?!0:typeof e=="string"&&e.length<=50}function XD(e){const t=wl(e.userAgentAppId??dY),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n=="string"?[[n]]:n,userAgentAppId:async()=>{const r=await t();if(!pY(r)){const i=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;typeof r!="string"?i?.warn("userAgentAppId must be a string or undefined."):r.length>50&&i?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return r}})}class WD{capacity;data=new Map;parameters=[];constructor({size:t,params:n}){this.capacity=t??50,n&&(this.parameters=n)}get(t,n){const r=this.hash(t);if(r===!1)return n();if(!this.data.has(r)){if(this.data.size>this.capacity+10){const i=this.data.keys();let c=0;for(;;){const{value:l,done:f}=i.next();if(this.data.delete(l),f||++c>10)break}}this.data.set(r,n())}return this.data.get(r)}size(){return this.data.size}hash(t){let n="";const{parameters:r}=this;if(r.length===0)return!1;for(const i of r){const c=String(t[i]??"");if(c.includes("|;"))return!1;n+=c+"|;"}return n}}const hY=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),MS=e=>hY.test(e)||e.startsWith("[")&&e.endsWith("]"),mY=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Jf=(e,t=!1)=>{if(!t)return mY.test(e);const n=e.split(".");for(const r of n)if(!Jf(r))return!1;return!0},kl={},Uf="endpoints";function ta(e){return typeof e!="object"||e==null?e:"ref"in e?`$${ta(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(ta).join(", ")})`:JSON.stringify(e,null,2)}class Zs extends Error{constructor(t){super(t),this.name="EndpointError"}}const gY=(e,t)=>e===t,yY=e=>{const t=e.split("."),n=[];for(const r of t){const i=r.indexOf("[");if(i!==-1){if(r.indexOf("]")!==r.length-1)throw new Zs(`Path: '${e}' does not end with ']'`);const c=r.slice(i+1,-1);if(Number.isNaN(parseInt(c)))throw new Zs(`Invalid array index: '${c}' in path: '${e}'`);i!==0&&n.push(r.slice(0,i)),n.push(c)}else n.push(r)}return n},JD=(e,t)=>yY(t).reduce((n,r)=>{if(typeof n!="object")throw new Zs(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(n)?n[parseInt(r)]:n[r]},e),bY=e=>e!=null,vY=e=>!e,hb={[Bf.HTTP]:80,[Bf.HTTPS]:443},SY=e=>{const t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){const{hostname:v,port:S,protocol:w="",path:E="",query:R={}}=e,C=new URL(`${w}//${v}${S?`:${S}`:""}${E}`);return C.search=Object.entries(R).map(([O,k])=>`${O}=${k}`).join("&"),C}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const n=t.href,{host:r,hostname:i,pathname:c,protocol:l,search:f}=t;if(f)return null;const d=l.slice(0,-1);if(!Object.values(Bf).includes(d))return null;const p=MS(i),b=n.includes(`${r}:${hb[d]}`)||typeof e=="string"&&e.includes(`${r}:${hb[d]}`),g=`${r}${b?`:${hb[d]}`:""}`;return{scheme:d,authority:g,path:c,normalizedPath:c.endsWith("/")?c:`${c}/`,isIp:p}},_Y=(e,t)=>e===t,wY=(e,t,n,r)=>t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),xY={booleanEquals:gY,getAttr:JD,isSet:bY,isValidHostLabel:Jf,not:vY,parseURL:SY,stringEquals:_Y,substring:wY,uriEncode:EY},ek=(e,t)=>{const n=[],r={...t.endpointParams,...t.referenceRecord};let i=0;for(;i({...t.endpointParams,...t.referenceRecord})[e],Hm=(e,t,n)=>{if(typeof e=="string")return ek(e,n);if(e.fn)return nk.callFunction(e,n);if(e.ref)return RY(e,n);throw new Zs(`'${t}': ${String(e)} is not a string, function or reference.`)},tk=({fn:e,argv:t},n)=>{const r=t.map(c=>["boolean","number"].includes(typeof c)?c:nk.evaluateExpression(c,"arg",n)),i=e.split(".");return i[0]in kl&&i[1]!=null?kl[i[0]][i[1]](...r):xY[e](...r)},nk={evaluateExpression:Hm,callFunction:tk},CY=({assign:e,...t},n)=>{if(e&&e in n.referenceRecord)throw new Zs(`'${e}' is already defined in Reference Record.`);const r=tk(t,n);return n.logger?.debug?.(`${Uf} evaluateCondition: ${ta(t)} = ${ta(r)}`),{result:r===""?!0:!!r,...e!=null&&{toAssign:{name:e,value:r}}}},DS=(e=[],t)=>{const n={};for(const r of e){const{result:i,toAssign:c}=CY(r,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!i)return{result:i};c&&(n[c.name]=c.value,t.logger?.debug?.(`${Uf} assign: ${c.name} := ${ta(c.value)}`))}return{result:!0,referenceRecord:n}},AY=(e,t)=>Object.entries(e).reduce((n,[r,i])=>({...n,[r]:i.map(c=>{const l=Hm(c,"Header value entry",t);if(typeof l!="string")throw new Zs(`Header '${r}' value '${l}' is not a string`);return l})}),{}),sk=(e,t)=>Object.entries(e).reduce((n,[r,i])=>({...n,[r]:ok.getEndpointProperty(i,t)}),{}),rk=(e,t)=>{if(Array.isArray(e))return e.map(n=>rk(n,t));switch(typeof e){case"string":return ek(e,t);case"object":if(e===null)throw new Zs(`Unexpected endpoint property: ${e}`);return ok.getEndpointProperties(e,t);case"boolean":return e;default:throw new Zs(`Unexpected endpoint property type: ${typeof e}`)}},ok={getEndpointProperty:rk,getEndpointProperties:sk},TY=(e,t)=>{const n=Hm(e,"Endpoint URL",t);if(typeof n=="string")try{return new URL(n)}catch(r){throw console.error(`Failed to construct URL with ${n}`,r),r}throw new Zs(`Endpoint URL must be a string, got ${typeof n}`)},IY=(e,t)=>{const{conditions:n,endpoint:r}=e,{result:i,referenceRecord:c}=DS(n,t);if(!i)return;const l={...t,referenceRecord:{...t.referenceRecord,...c}},{url:f,properties:d,headers:p}=r;return t.logger?.debug?.(`${Uf} Resolving endpoint from template: ${ta(r)}`),{...p!=null&&{headers:AY(p,l)},...d!=null&&{properties:sk(d,l)},url:TY(f,l)}},OY=(e,t)=>{const{conditions:n,error:r}=e,{result:i,referenceRecord:c}=DS(n,t);if(i)throw new Zs(Hm(r,"Error",{...t,referenceRecord:{...t.referenceRecord,...c}}))},ik=(e,t)=>{for(const n of e)if(n.type==="endpoint"){const r=IY(n,t);if(r)return r}else if(n.type==="error")OY(n,t);else if(n.type==="tree"){const r=ak.evaluateTreeRule(n,t);if(r)return r}else throw new Zs(`Unknown endpoint rule: ${n}`);throw new Zs("Rules evaluation failed")},MY=(e,t)=>{const{conditions:n,rules:r}=e,{result:i,referenceRecord:c}=DS(n,t);if(i)return ak.evaluateRules(r,{...t,referenceRecord:{...t.referenceRecord,...c}})},ak={evaluateRules:ik,evaluateTreeRule:MY},ck=(e,t)=>{const{endpointParams:n,logger:r}=t,{parameters:i,rules:c}=e;t.logger?.debug?.(`${Uf} Initial EndpointParams: ${ta(n)}`);const l=Object.entries(i).filter(([,p])=>p.default!=null).map(([p,b])=>[p,b.default]);if(l.length>0)for(const[p,b]of l)n[p]=n[p]??b;const f=Object.entries(i).filter(([,p])=>p.required).map(([p])=>p);for(const p of f)if(n[p]==null)throw new Zs(`Missing required parameter: '${p}'`);const d=ik(c,{endpointParams:n,logger:r,referenceRecord:{}});return t.logger?.debug?.(`${Uf} Resolved endpoint: ${ta(d)}`),d},lk=(e,t=!1)=>{if(t){for(const n of e.split("."))if(!lk(n))return!1;return!0}return!(!Jf(e)||e.length<3||e.length>63||e!==e.toLowerCase()||MS(e))},AT=":",DY="/",kY=e=>{const t=e.split(AT);if(t.length<6)return null;const[n,r,i,c,l,...f]=t;if(n!=="arn"||r===""||i===""||f.join(AT)==="")return null;const d=f.map(p=>p.split(DY)).flat();return{partition:r,service:i,region:c,accountId:l,resourceId:d}},PY=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],NY={partitions:PY};let LY=NY;const zY=e=>{const{partitions:t}=LY;for(const r of t){const{regions:i,outputs:c}=r;for(const[l,f]of Object.entries(i))if(l===e)return{...c,...f}}for(const r of t){const{regionRegex:i,outputs:c}=r;if(new RegExp(i).test(e))return{...c}}const n=t.find(r=>r.id==="aws");if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}},BY={isVirtualHostableS3Bucket:lk,parseArn:kY,partition:zY};kl.aws=BY;function $Y(e){const t={};if(e=e.replace(/^\?/,""),e)for(const n of e.split("&")){let[r,i=null]=n.split("=");r=decodeURIComponent(r),i&&(i=decodeURIComponent(i)),r in t?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}return t}const jf=e=>{if(typeof e=="string")return jf(new URL(e));const{hostname:t,pathname:n,port:r,protocol:i,search:c}=e;let l;return c&&(l=$Y(c)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:l}};function UY(e,t,n){return e.$source||(e.$source={}),e.$source[t]=n,e}function Pr(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}const TT=e=>ac.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,kS=e=>new Date(Date.now()+e),jY=(e,t)=>Math.abs(kS(t).getTime()-e)>=3e5,IT=(e,t)=>{const n=Date.parse(e);return jY(n,t)?n-Date.now():t},xf=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},uk=async e=>{const t=xf("context",e.context),n=xf("config",e.config),r=t.endpointV2?.properties?.authSchemes?.[0],c=await xf("signer",n.signer)(r),l=e?.signingRegion,f=e?.signingRegionSet,d=e?.signingName;return{config:n,signer:c,signingRegion:l,signingRegionSet:f,signingName:d}};class PS{async sign(t,n,r){if(!kn.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const i=await uk(r),{config:c,signer:l}=i;let{signingRegion:f,signingName:d}=i;const p=r.context;if(p?.authSchemes?.length??!1){const[g,v]=p.authSchemes;g?.name==="sigv4a"&&v?.name==="sigv4"&&(f=v?.signingRegion??f,d=v?.signingName??d)}return await l.sign(t,{signingDate:kS(c.systemClockOffset),signingRegion:f,signingService:d})}errorHandler(t){return n=>{const r=n.ServerTime??TT(n.$response);if(r){const i=xf("config",t.config),c=i.systemClockOffset;i.systemClockOffset=IT(r,i.systemClockOffset),i.systemClockOffset!==c&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}throw n}}successHandler(t,n){const r=TT(t);if(r){const i=xf("config",n.config);i.systemClockOffset=IT(r,i.systemClockOffset)}}}class HY extends PS{async sign(t,n,r){if(!kn.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:i,signer:c,signingRegion:l,signingRegionSet:f,signingName:d}=await uk(r),b=(await i.sigv4aSigningRegionSet?.()??f??[l]).join(",");return await c.sign(t,{signingDate:kS(i.systemClockOffset),signingRegion:b,signingService:d})}}const VY=(e,t,n)=>{let r,i,c,l=!1;const f=async()=>{i||(i=e());try{r=await i,c=!0,l=!1}finally{i=void 0}return r};return async d=>((!c||d?.forceRefresh)&&(r=await f()),r)},FY=e=>(e.sigv4aSigningRegionSet=wl(e.sigv4aSigningRegionSet),e),qY="X-Amz-Algorithm",GY="X-Amz-Credential",fk="X-Amz-Date",ZY="X-Amz-SignedHeaders",KY="X-Amz-Expires",dk="X-Amz-Signature",pk="X-Amz-Security-Token",hk="authorization",mk=fk.toLowerCase(),QY="date",YY=[hk,mk,QY],XY=dk.toLowerCase(),xv="x-amz-content-sha256",WY=pk.toLowerCase(),JY={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},eX=/^proxy-/,tX=/^sec-/,mb="AWS4-HMAC-SHA256",nX="AWS4-HMAC-SHA256-PAYLOAD",sX="UNSIGNED-PAYLOAD",rX=50,gk="aws4_request",oX=3600*24*7,ch={},gb=[],yb=(e,t,n)=>`${e}/${t}/${n}/${gk}`,iX=async(e,t,n,r,i)=>{const c=await OT(e,t.secretAccessKey,t.accessKeyId),l=`${n}:${r}:${i}:${_s(c)}:${t.sessionToken}`;if(l in ch)return ch[l];for(gb.push(l);gb.length>rX;)delete ch[gb.shift()];let f=`AWS4${t.secretAccessKey}`;for(const d of[n,r,i,gk])f=await OT(e,f,d);return ch[l]=f},OT=(e,t,n)=>{const r=new e(t);return r.update($f(n)),r.digest()},MT=({headers:e},t,n)=>{const r={};for(const i of Object.keys(e).sort()){if(e[i]==null)continue;const c=i.toLowerCase();(c in JY||t?.has(c)||eX.test(c)||tX.test(c))&&(!n||n&&!n.has(c))||(r[c]=e[i].trim().replace(/\s+/g," "))}return r},aX=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]",bb=async({headers:e,body:t},n)=>{for(const r of Object.keys(e))if(r.toLowerCase()===xv)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||aX(t)){const r=new n;return r.update($f(t)),_s(await r.digest())}return sX};class cX{format(t){const n=[];for(const c of Object.keys(t)){const l=Ho(c);n.push(Uint8Array.from([l.byteLength]),l,this.formatHeaderValue(t[c]))}const r=new Uint8Array(n.reduce((c,l)=>c+l.byteLength,0));let i=0;for(const c of n)r.set(c,i),i+=c.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":const c=new DataView(new ArrayBuffer(3+t.value.byteLength));c.setUint8(0,6),c.setUint16(1,t.value.byteLength,!1);const l=new Uint8Array(c.buffer);return l.set(t.value,3),l;case"string":const f=Ho(t.value),d=new DataView(new ArrayBuffer(3+f.byteLength));d.setUint8(0,7),d.setUint16(1,f.byteLength,!1);const p=new Uint8Array(d.buffer);return p.set(f,3),p;case"timestamp":const b=new Uint8Array(9);return b[0]=8,b.set(uX.fromNumber(t.value.valueOf()).bytes,1),b;case"uuid":if(!lX.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const g=new Uint8Array(17);return g[0]=9,g.set($D(t.value.replace(/\-/g,"")),1),g}}}var DT;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(DT||(DT={}));const lX=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;let uX=class yk{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const n=new Uint8Array(8);for(let r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&kT(n),new yk(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&kT(t),parseInt(_s(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}};function kT(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}const fX=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},dX=(e,t={})=>{const{headers:n,query:r={}}=kn.clone(e);for(const i of Object.keys(n)){const c=i.toLowerCase();(c.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(c)||t.hoistableHeaders?.has(c))&&(r[i]=n[i],delete n[i])}return{...e,headers:n,query:r}},PT=e=>{e=kn.clone(e);for(const t of Object.keys(e.headers))YY.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},pX=({query:e={}})=>{const t=[],n={};for(const r of Object.keys(e)){if(r.toLowerCase()===XY)continue;const i=tc(r);t.push(i);const c=e[r];typeof c=="string"?n[i]=`${i}=${tc(c)}`:Array.isArray(c)&&(n[i]=c.slice(0).reduce((l,f)=>l.concat([`${i}=${tc(f)}`]),[]).sort().join("&"))}return t.sort().map(r=>n[r]).filter(r=>r).join("&")},hX=e=>mX(e).toISOString().replace(/\.\d{3}Z$/,"Z"),mX=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;class gX{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:t,credentials:n,region:r,service:i,sha256:c,uriEscapePath:l=!0}){this.service=i,this.sha256=c,this.uriEscapePath=l,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=qs(r),this.credentialProvider=qs(n)}createCanonicalRequest(t,n,r){const i=Object.keys(n).sort();return`${t.method} ${this.getCanonicalPath(t)} -${_Y(t)} +${pX(t)} ${i.map(c=>`${c}:${n[c]}`).join(` `)} ${i.join(";")} -${r}`}async createStringToSign(t,n,r,i){const c=new this.sha256;c.update(gf(r));const l=await c.digest();return`${i} +${r}`}async createStringToSign(t,n,r,i){const c=new this.sha256;c.update($f(r));const l=await c.digest();return`${i} ${t} ${n} -${vs(l)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const n=[];for(const c of t.split("/"))c?.length!==0&&c!=="."&&(c===".."?n.pop():n.push(c));const r=`${t?.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&t?.endsWith("/")?"/":""}`;return Na(r).replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(t){const n=wY(t).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}}class Gb extends EY{headerFormatter=new gY;constructor({applyChecksum:t,credentials:n,region:r,service:i,sha256:c,uriEscapePath:l=!0}){super({applyChecksum:t,credentials:n,region:r,service:i,sha256:c,uriEscapePath:l})}async presign(t,n={}){const{signingDate:r=new Date,expiresIn:i=3600,unsignableHeaders:c,unhoistableHeaders:l,signableHeaders:f,hoistableHeaders:d,signingRegion:h,signingService:y}=n,g=await this.credentialProvider();this.validateResolvedCredentials(g);const b=h??await this.regionProvider(),{longDate:v,shortDate:_}=this.formatDate(r);if(i>hY)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const x=B0(_,b,y??this.service),R=SY(jT(t),{unhoistableHeaders:l,hoistableHeaders:d});g.sessionToken&&(R.query[SD]=g.sessionToken),R.query[JZ]=z0,R.query[eY]=`${g.accessKeyId}/${x}`,R.query[bD]=v,R.query[nY]=i.toString(10);const C=BT(R,c,f);return R.query[tY]=this.getCanonicalHeaderList(C),R.query[vD]=await this.getSignature(v,x,this.getSigningKey(g,b,_,y),this.createCanonicalRequest(R,C,await $0(t,this.sha256))),R}async sign(t,n){return typeof t=="string"?this.signString(t,n):t.headers&&t.payload?this.signEvent(t,n):t.message?this.signMessage(t,n):this.signRequest(t,n)}async signEvent({headers:t,payload:n},{signingDate:r=new Date,priorSignature:i,signingRegion:c,signingService:l}){const f=c??await this.regionProvider(),{shortDate:d,longDate:h}=this.formatDate(r),y=B0(d,f,l??this.service),g=await $0({headers:{},body:n},this.sha256),b=new this.sha256;b.update(t);const v=vs(await b.digest()),_=[uY,h,y,i,v,g].join(` -`);return this.signString(_,{signingDate:r,signingRegion:f,signingService:l})}async signMessage(t,{signingDate:n=new Date,signingRegion:r,signingService:i}){return this.signEvent({headers:this.headerFormatter.format(t.message.headers),payload:t.message.body},{signingDate:n,signingRegion:r,signingService:i,priorSignature:t.priorSignature}).then(l=>({message:t.message,signature:l}))}async signString(t,{signingDate:n=new Date,signingRegion:r,signingService:i}={}){const c=await this.credentialProvider();this.validateResolvedCredentials(c);const l=r??await this.regionProvider(),{shortDate:f}=this.formatDate(n),d=new this.sha256(await this.getSigningKey(c,l,f,i));return d.update(gf(t)),vs(await d.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:r,unsignableHeaders:i,signingRegion:c,signingService:l}={}){const f=await this.credentialProvider();this.validateResolvedCredentials(f);const d=c??await this.regionProvider(),h=jT(t),{longDate:y,shortDate:g}=this.formatDate(n),b=B0(g,d,l??this.service);h.headers[wD]=y,f.sessionToken&&(h.headers[iY]=f.sessionToken);const v=await $0(h,this.sha256);!vY(Vb,h.headers)&&this.applyChecksum&&(h.headers[Vb]=v);const _=BT(h,i,r),x=await this.getSignature(y,b,this.getSigningKey(f,d,g,l),this.createCanonicalRequest(h,_,v));return h.headers[_D]=`${z0} Credential=${f.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(_)}, Signature=${x}`,h}async getSignature(t,n,r,i){const c=await this.createStringToSign(t,n,i,z0),l=new this.sha256(await r);return l.update(gf(c)),vs(await l.digest())}getSigningKey(t,n,r,i){return pY(this.sha256,t,r,n,i||this.service)}}const RD=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(h){h&&h!==t&&h!==r&&(n=!0),t=h;const y=RY(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}),g=CY(e,y);if(n&&!g.attributed){const b=typeof t=="object"&&t!==null;r=async v=>{const x=await g(v);return b&&(!x.$source||Object.keys(x.$source).length===0)?ZZ(x,"CREDENTIALS_CODE","e"):x},r.memoized=g.memoized,r.configBound=g.configBound,r.attributed=!0}else r=g},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;const{signingEscapePath:i=!0,systemClockOffset:c=e.systemClockOffset||0,sha256:l}=e;let f;return e.signer?f=nl(e.signer):e.regionInfoProvider?f=()=>nl(e.region)().then(async h=>[await e.regionInfoProvider(h,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},h]).then(([h,y])=>{const{signingRegion:g,signingService:b}=h;e.signingRegion=e.signingRegion||g||y,e.signingName=e.signingName||b||e.serviceId;const v={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:l,uriEscapePath:i},_=e.signerConstructor||Gb;return new _(v)}):f=async h=>{h=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await nl(e.region)(),properties:{}},h);const y=h.signingRegion,g=h.signingName;e.signingRegion=e.signingRegion||y,e.signingName=e.signingName||g||e.serviceId;const b={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:l,uriEscapePath:i},v=e.signerConstructor||Gb;return new v(b)},Object.assign(e,{systemClockOffset:c,signingEscapePath:i,signer:f})};function RY(e,{credentials:t,credentialDefaultProvider:n}){let r;return t?t?.memoized?r=t:r=vZ(t,bZ,sD):n?r=nl(n(Object.assign({},e,{parentClientConfig:e}))):r=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function CY(e,t){if(t.configBound)return t;const n=async r=>t({...r,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}const HT=typeof TextEncoder=="function"?new TextEncoder:null,CD=e=>{if(typeof e=="string"){if(HT)return HT.encode(e).byteLength;let t=e.length;for(let n=t-1;n>=0;n--){const r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}else{if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size}throw new Error(`Body Length computation failed for ${e}`)},Ra=(e,t)=>{const n=[];if(e&&n.push(e),t)for(const r of t)n.push(r);return n},xi=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,Ep=()=>{let e=[],t=[],n=!1;const r=new Set,i=g=>g.sort((b,v)=>FT[v.step]-FT[b.step]||qT[v.priority||"normal"]-qT[b.priority||"normal"]),c=g=>{let b=!1;const v=_=>{const x=Ra(_.name,_.aliases);if(x.includes(g)){b=!0;for(const R of x)r.delete(R);return!1}return!0};return e=e.filter(v),t=t.filter(v),b},l=g=>{let b=!1;const v=_=>{if(_.middleware===g){b=!0;for(const x of Ra(_.name,_.aliases))r.delete(x);return!1}return!0};return e=e.filter(v),t=t.filter(v),b},f=g=>(e.forEach(b=>{g.add(b.middleware,{...b})}),t.forEach(b=>{g.addRelativeTo(b.middleware,{...b})}),g.identifyOnResolve?.(y.identifyOnResolve()),g),d=g=>{const b=[];return g.before.forEach(v=>{v.before.length===0&&v.after.length===0?b.push(v):b.push(...d(v))}),b.push(g),g.after.reverse().forEach(v=>{v.before.length===0&&v.after.length===0?b.push(v):b.push(...d(v))}),b},h=(g=!1)=>{const b=[],v=[],_={};return e.forEach(R=>{const C={...R,before:[],after:[]};for(const I of Ra(C.name,C.aliases))_[I]=C;b.push(C)}),t.forEach(R=>{const C={...R,before:[],after:[]};for(const I of Ra(C.name,C.aliases))_[I]=C;v.push(C)}),v.forEach(R=>{if(R.toMiddleware){const C=_[R.toMiddleware];if(C===void 0){if(g)return;throw new Error(`${R.toMiddleware} is not found when adding ${xi(R.name,R.aliases)} middleware ${R.relation} ${R.toMiddleware}`)}R.relation==="after"&&C.after.push(R),R.relation==="before"&&C.before.push(R)}}),i(b).map(d).reduce((R,C)=>(R.push(...C),R),[])},y={add:(g,b={})=>{const{name:v,override:_,aliases:x}=b,R={step:"initialize",priority:"normal",middleware:g,...b},C=Ra(v,x);if(C.length>0){if(C.some(I=>r.has(I))){if(!_)throw new Error(`Duplicate middleware name '${xi(v,x)}'`);for(const I of C){const D=e.findIndex(B=>B.name===I||B.aliases?.some(j=>j===I));if(D===-1)continue;const A=e[D];if(A.step!==R.step||R.priority!==A.priority)throw new Error(`"${xi(A.name,A.aliases)}" middleware with ${A.priority} priority in ${A.step} step cannot be overridden by "${xi(v,x)}" middleware with ${R.priority} priority in ${R.step} step.`);e.splice(D,1)}}for(const I of C)r.add(I)}e.push(R)},addRelativeTo:(g,b)=>{const{name:v,override:_,aliases:x}=b,R={middleware:g,...b},C=Ra(v,x);if(C.length>0){if(C.some(I=>r.has(I))){if(!_)throw new Error(`Duplicate middleware name '${xi(v,x)}'`);for(const I of C){const D=t.findIndex(B=>B.name===I||B.aliases?.some(j=>j===I));if(D===-1)continue;const A=t[D];if(A.toMiddleware!==R.toMiddleware||A.relation!==R.relation)throw new Error(`"${xi(A.name,A.aliases)}" middleware ${A.relation} "${A.toMiddleware}" middleware cannot be overridden by "${xi(v,x)}" middleware ${R.relation} "${R.toMiddleware}" middleware.`);t.splice(D,1)}}for(const I of C)r.add(I)}t.push(R)},clone:()=>f(Ep()),use:g=>{g.applyToStack(y)},remove:g=>typeof g=="string"?c(g):l(g),removeByTag:g=>{let b=!1;const v=_=>{const{tags:x,name:R,aliases:C}=_;if(x&&x.includes(g)){const I=Ra(R,C);for(const D of I)r.delete(D);return b=!0,!1}return!0};return e=e.filter(v),t=t.filter(v),b},concat:g=>{const b=f(Ep());return b.use(g),b.identifyOnResolve(n||b.identifyOnResolve()||(g.identifyOnResolve?.()??!1)),b},applyToStack:f,identify:()=>h(!0).map(g=>{const b=g.step??g.relation+" "+g.toMiddleware;return xi(g.name,g.aliases)+" - "+b}),identifyOnResolve(g){return typeof g=="boolean"&&(n=g),n},resolve:(g,b)=>{for(const v of h().map(_=>_.middleware).reverse())g=v(g,b);return n&&console.log(y.identify()),g}};return y},FT={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},qT={high:3,normal:2,low:1};class TD{config;middlewareStack=Ep();initConfig;handlers;constructor(t){this.config=t;const{protocol:n,protocolSettings:r}=t;r&&typeof n=="function"&&(t.protocol=new n(r))}send(t,n,r){const i=typeof n!="function"?n:void 0,c=typeof n=="function"?n:r,l=i===void 0&&this.config.cacheMiddleware===!0;let f;if(l){this.handlers||(this.handlers=new WeakMap);const d=this.handlers;d.has(t.constructor)?f=d.get(t.constructor):(f=t.resolveMiddleware(this.middlewareStack,this.config,i),d.set(t.constructor,f))}else delete this.handlers,f=t.resolveMiddleware(this.middlewareStack,this.config,i);if(c)f(t).then(d=>c(null,d.output),d=>c(d)).catch(()=>{});else return f(t).then(d=>d.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}const U0="***SensitiveInformation***";function Kb(e,t){if(t==null)return t;const n=_t.of(e);if(n.getMergedTraits().sensitive)return U0;if(n.isListSchema()){if(!!n.getValueSchema().getMergedTraits().sensitive)return U0}else if(n.isMapSchema()){if(!!n.getKeySchema().getMergedTraits().sensitive||!!n.getValueSchema().getMergedTraits().sensitive)return U0}else if(n.isStructSchema()&&typeof t=="object"){const r=t,i={};for(const[c,l]of n.structIterator())r[c]!=null&&(i[c]=Kb(l,r[c]));return i}return t}class Ur{middlewareStack=Ep();schema;static classBuilder(){return new TY}resolveMiddlewareWithContext(t,n,r,{middlewareFn:i,clientName:c,commandName:l,inputFilterSensitiveLog:f,outputFilterSensitiveLog:d,smithyContext:h,additionalContext:y,CommandCtor:g}){for(const R of i.bind(this)(g,t,n,r))this.middlewareStack.use(R);const b=t.concat(this.middlewareStack),{logger:v}=n,_={logger:v,clientName:c,commandName:l,inputFilterSensitiveLog:f,outputFilterSensitiveLog:d,[Hb]:{commandInstance:this,...h},...y},{requestHandler:x}=n;return b.resolve(R=>x.handle(R.request,r||{}),_)}}class TY{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,n,r={}){return this._smithyContext={service:t,operation:n,...r},this}c(t={}){return this._additionalContext=t,this}n(t,n){return this._clientName=t,this._commandName=n,this}f(t=r=>r,n=r=>r){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=n,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}sc(t){return this._operationSchema=t,this._smithyContext.operationSchema=t,this}build(){const t=this;let n;return n=class extends Ur{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[r]){super(),this.input=r??{},t._init(this),this.schema=t._operationSchema}resolveMiddleware(r,i,c){const l=t._operationSchema,f=l?.[4]??l?.input,d=l?.[5]??l?.output;return this.resolveMiddlewareWithContext(r,i,c,{CommandCtor:n,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(l?Kb.bind(null,f):h=>h),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(l?Kb.bind(null,d):h=>h),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}class Oa extends Error{$fault;$response;$retryable;$metadata;constructor(t){super(t.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}static isInstance(t){if(!t)return!1;const n=t;return Oa.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault==="client"||n.$fault==="server")}static[Symbol.hasInstance](t){if(!t)return!1;const n=t;return this===Oa?Oa.isInstance(t):Oa.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}}const VT=(e,t={})=>{Object.entries(t).filter(([,r])=>r!==void 0).forEach(([r,i])=>{(e[r]==null||e[r]==="")&&(e[r]=i)});const n=e.message||e.Message||"UnknownError";return e.message=n,delete e.Message,e},AD=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},AY=e=>{const t=[];for(const n in Sp){const r=Sp[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}return{addChecksumAlgorithm(n){t.push(n)},checksumAlgorithms(){return t}}},IY=e=>{const t={};return e.checksumAlgorithms().forEach(n=>{t[n.algorithmId()]=n.checksumConstructor()}),t},OY=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),MY=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t},ID=e=>Object.assign(AY(e),OY(e)),OD=e=>Object.assign(IY(e),MY(e)),MD=e=>{const t="#text";for(const n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]=="object"&&e[n]!==null&&(e[n]=MD(e[n]));return e};class nS{trace(){}debug(){}info(){}warn(){}error(){}}class DD{queryCompat;constructor(t=!1){this.queryCompat=t}resolveRestContentType(t,n){const r=n.getMemberSchemas(),i=Object.values(r).find(c=>!!c.getMergedTraits().httpPayload);if(i){const c=i.getMergedTraits().mediaType;return c||(i.isStringSchema()?"text/plain":i.isBlobSchema()?"application/octet-stream":t)}else if(!n.isUnitSchema()&&Object.values(r).find(l=>{const{httpQuery:f,httpQueryParams:d,httpHeader:h,httpLabel:y,httpPrefixHeaders:g}=l.getMergedTraits();return!f&&!d&&!h&&!y&&g===void 0}))return t}async getErrorSchemaOrThrowBaseException(t,n,r,i,c,l){let f=n,d=t;t.includes("#")&&([f,d]=t.split("#"));const h={$metadata:c,$fault:r.statusCode<500?"client":"server"},y=Jn.for(f);try{return{errorSchema:l?.(y,d)??y.getSchema(t),errorMetadata:h}}catch{i.message=i.message??i.Message??"UnknownError";const b=Jn.for("smithy.ts.sdk.synthetic."+f),v=b.getBaseException();if(v){const _=b.getErrorCtor(v)??Error;throw this.decorateServiceException(Object.assign(new _({name:d}),h),i)}throw this.decorateServiceException(Object.assign(new Error(d),h),i)}}decorateServiceException(t,n={}){if(this.queryCompat){const r=t.Message??n.Message,i=VT(t,n);r&&(i.message=r),i.Error={...i.Error,Type:i.Error.Type,Code:i.Error.Code,Message:i.Error.message??i.Error.Message??r};const c=i.$metadata.requestId;return c&&(i.RequestId=c),i}return VT(t,n)}setQueryCompatError(t,n){const r=n.headers?.["x-amzn-query-error"];if(t!==void 0&&r!=null){const[i,c]=r.split(";"),l=Object.entries(t),f={Code:i,Type:c};Object.assign(t,f);for(const[d,h]of l)f[d==="message"?"Message":d]=h;delete f.__type,t.Error=f}}queryCompatOutput(t,n){t.Error&&(n.Error=t.Error),t.Type&&(n.Type=t.Type),t.Code&&(n.Code=t.Code)}findQueryCompatibleError(t,n){try{return t.getSchema(n)}catch{return t.find(i=>_t.of(i).getMergedTraits().awsQueryError?.[0]===n)}}}class lm{serdeContext;setSerdeContext(t){this.serdeContext=t}}class DY{from;to;keys;constructor(t,n){this.from=t,this.to=n,this.keys=new Set(Object.keys(this.from).filter(r=>r!=="__type"))}mark(t){this.keys.delete(t)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const t=this.keys.values().next().value,n=this.from[t];this.to.$unknown=[t,n]}}}function kY(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function PY(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}class Zb{value;constructor(t){this.value=t}toString(){return PY(""+this.value)}}class os{name;children;attributes={};static of(t,n,r){const i=new os(t);return n!==void 0&&i.addChildNode(new Zb(n)),r!==void 0&&i.withName(r),i}constructor(t,n=[]){this.name=t,this.children=n}withName(t){return this.name=t,this}addAttribute(t,n){return this.attributes[t]=n,this}addChildNode(t){return this.children.push(t),this}removeAttribute(t){return delete this.attributes[t],this}n(t){return this.name=t,this}c(t){return this.children.push(t),this}a(t,n){return n!=null&&(this.attributes[t]=n),this}cc(t,n,r=n){if(t[n]!=null){const i=os.of(n,t[n]).withName(r);this.c(i)}}l(t,n,r,i){t[n]!=null&&i().map(l=>{l.withName(r),this.c(l)})}lc(t,n,r,i){if(t[n]!=null){const c=i(),l=new os(r);c.map(f=>{l.c(f)}),this.c(l)}}toString(){const t=!!this.children.length;let n=`<${this.name}`;const r=this.attributes;for(const i of Object.keys(r)){const c=r[i];c!=null&&(n+=` ${i}="${kY(""+c)}"`)}return n+=t?`>${this.children.map(i=>i.toString()).join("")}`:"/>"}}let j0;function NY(e){j0||(j0=new DOMParser);const t=j0.parseFromString(e,"application/xml");if(t.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");const n=r=>{if(r.nodeType===Node.TEXT_NODE&&r.textContent?.trim())return r.textContent;if(r.nodeType===Node.ELEMENT_NODE){const i=r;if(i.attributes.length===0&&i.childNodes.length===0)return"";const c={},l=Array.from(i.attributes);for(const d of l)c[`${d.name}`]=d.value;const f=Array.from(i.childNodes);for(const d of f){const h=n(d);if(h!=null){const y=d.nodeName;if(f.length===1&&l.length===0&&y==="#text")return h;c[y]?Array.isArray(c[y])?c[y].push(h):c[y]=[c[y],h]:c[y]=h}else if(f.length===1&&l.length===0)return i.textContent}return c}return null};return{[t.documentElement.nodeName]:n(t.documentElement)}}class kD extends lm{settings;stringDeserializer;constructor(t){super(),this.settings=t,this.stringDeserializer=new tD(t)}setSerdeContext(t){this.serdeContext=t,this.stringDeserializer.setSerdeContext(t)}read(t,n,r){const i=_t.of(t),c=i.getMemberSchemas();if(i.isStructSchema()&&i.isMemberSchema()&&!!Object.values(c).find(h=>!!h.getMemberTraits().eventPayload)){const h={},y=Object.keys(c)[0];return c[y].isBlobSchema()?h[y]=n:h[y]=this.read(c[y],n),h}const f=(this.serdeContext?.utf8Encoder??Ka)(n),d=this.parseXml(f);return this.readSchema(t,r?d[r]:d)}readSchema(t,n){const r=_t.of(t);if(r.isUnitSchema())return;const i=r.getMergedTraits();if(r.isListSchema()&&!Array.isArray(n))return this.readSchema(r,[n]);if(n==null)return n;if(typeof n=="object"){const c=!!i.sparse,l=!!i.xmlFlattened;if(r.isListSchema()){const d=r.getValueSchema(),h=[],y=d.getMergedTraits().xmlName??"member",g=l?n:(n[0]??n)[y],b=Array.isArray(g)?g:[g];for(const v of b)(v!=null||c)&&h.push(this.readSchema(d,v));return h}const f={};if(r.isMapSchema()){const d=r.getKeySchema(),h=r.getValueSchema();let y;l?y=Array.isArray(n)?n:[n]:y=Array.isArray(n.entry)?n.entry:[n.entry];const g=d.getMergedTraits().xmlName??"key",b=h.getMergedTraits().xmlName??"value";for(const v of y){const _=v[g],x=v[b];(x!=null||c)&&(f[_]=this.readSchema(h,x))}return f}if(r.isStructSchema()){const d=r.isUnionSchema();let h;d&&(h=new DY(n,f));for(const[y,g]of r.structIterator()){const b=g.getMergedTraits(),v=b.httpPayload?b.xmlName??g.getName():g.getMemberTraits().xmlName??y;d&&h.mark(v),n[v]!=null&&(f[y]=this.readSchema(g,n[v]))}return d&&h.writeUnknown(),f}if(r.isDocumentSchema())return n;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${r.getName(!0)}`)}return r.isListSchema()?[]:r.isMapSchema()||r.isStructSchema()?{}:this.stringDeserializer.read(r,n)}parseXml(t){if(t.length){let n;try{n=NY(t)}catch(l){throw l&&typeof l=="object"&&Object.defineProperty(l,"$responseBodyText",{value:t}),l}const r="#text",i=Object.keys(n)[0],c=n[i];return c[r]&&(c[i]=c[r],delete c[r]),MD(c)}return{}}}class zY extends lm{settings;buffer;constructor(t){super(),this.settings=t}write(t,n,r=""){this.buffer===void 0&&(this.buffer="");const i=_t.of(t);if(r&&!r.endsWith(".")&&(r+="."),i.isBlobSchema())(typeof n=="string"||n instanceof Uint8Array)&&(this.writeKey(r),this.writeValue((this.serdeContext?.base64Encoder??zi)(n)));else if(i.isBooleanSchema()||i.isNumericSchema()||i.isStringSchema())n!=null?(this.writeKey(r),this.writeValue(String(n))):i.isIdempotencyToken()&&(this.writeKey(r),this.writeValue(om()));else if(i.isBigIntegerSchema())n!=null&&(this.writeKey(r),this.writeValue(String(n)));else if(i.isBigDecimalSchema())n!=null&&(this.writeKey(r),this.writeValue(n instanceof If?n.string:String(n)));else if(i.isTimestampSchema()){if(n instanceof Date)switch(this.writeKey(r),am(i,this.settings)){case 5:this.writeValue(n.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(wp(n));break;case 7:this.writeValue(String(n.getTime()/1e3));break}}else if(i.isDocumentSchema())Array.isArray(n)?this.write(79,n,r):n instanceof Date?this.write(4,n,r):n instanceof Uint8Array?this.write(21,n,r):n&&typeof n=="object"?this.write(143,n,r):(this.writeKey(r),this.writeValue(String(n)));else if(i.isListSchema()){if(Array.isArray(n))if(n.length===0)this.settings.serializeEmptyLists&&(this.writeKey(r),this.writeValue(""));else{const c=i.getValueSchema(),l=this.settings.flattenLists||i.getMergedTraits().xmlFlattened;let f=1;for(const d of n){if(d==null)continue;const h=c.getMergedTraits(),y=this.getKey("member",h.xmlName,h.ec2QueryName),g=l?`${r}${f}`:`${r}${y}.${f}`;this.write(c,d,g),++f}}}else if(i.isMapSchema()){if(n&&typeof n=="object"){const c=i.getKeySchema(),l=i.getValueSchema(),f=i.getMergedTraits().xmlFlattened;let d=1;for(const[h,y]of Object.entries(n)){if(y==null)continue;const g=c.getMergedTraits(),b=this.getKey("key",g.xmlName,g.ec2QueryName),v=f?`${r}${d}.${b}`:`${r}entry.${d}.${b}`,_=l.getMergedTraits(),x=this.getKey("value",_.xmlName,_.ec2QueryName),R=f?`${r}${d}.${x}`:`${r}entry.${d}.${x}`;this.write(c,h,v),this.write(l,y,R),++d}}}else if(i.isStructSchema()){if(n&&typeof n=="object"){let c=!1;for(const[l,f]of i.structIterator()){if(n[l]==null&&!f.isIdempotencyToken())continue;const d=f.getMergedTraits(),h=this.getKey(l,d.xmlName,d.ec2QueryName,"struct"),y=`${r}${h}`;this.write(f,n[l],y),c=!0}if(!c&&i.isUnionSchema()){const{$unknown:l}=n;if(Array.isArray(l)){const[f,d]=l,h=`${r}${f}`;this.write(15,d,h)}}}}else if(!i.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${i.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");const t=this.buffer;return delete this.buffer,t}getKey(t,n,r,i){const{ec2:c,capitalizeKeys:l}=this.settings;if(c&&r)return r;const f=n??t;return l&&i==="struct"?f[0].toUpperCase()+f.slice(1):f}writeKey(t){t.endsWith(".")&&(t=t.slice(0,t.length-1)),this.buffer+=`&${_p(t)}=`}writeValue(t){this.buffer+=_p(t)}}class LY extends fZ{options;serializer;deserializer;mixin=new DD;constructor(t){super({defaultNamespace:t.defaultNamespace}),this.options=t;const n={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace,serializeEmptyLists:!0};this.serializer=new zY(n),this.deserializer=new kD(n)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(t){this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(t,n,r){const i=await super.serializeRequest(t,n,r);i.path.endsWith("/")||(i.path+="/"),Object.assign(i.headers,{"content-type":"application/x-www-form-urlencoded"}),(Hh(t.input)==="unit"||!i.body)&&(i.body="");const c=t.name.split("#")[1]??t.name;return i.body=`Action=${c}&Version=${this.options.version}`+i.body,i.body.endsWith("&")&&(i.body=i.body.slice(-1)),i}async deserializeResponse(t,n,r){const i=this.deserializer,c=_t.of(t.output),l={};if(r.statusCode>=300){const g=await Mi(r.body,n);g.byteLength>0&&Object.assign(l,await i.read(15,g)),await this.handleError(t,n,r,l,this.deserializeMetadata(r))}for(const g in r.headers){const b=r.headers[g];delete r.headers[g],r.headers[g.toLowerCase()]=b}const f=t.name.split("#")[1]??t.name,d=c.isStructSchema()&&this.useNestedResult()?f+"Result":void 0,h=await Mi(r.body,n);return h.byteLength>0&&Object.assign(l,await i.read(c,h,d)),{$metadata:this.deserializeMetadata(r),...l}}useNestedResult(){return!0}async handleError(t,n,r,i,c){const l=this.loadQueryErrorCode(r,i)??"Unknown",f=this.loadQueryError(i),d=this.loadQueryErrorMessage(i);f.message=d,f.Error={Type:f.Type,Code:f.Code,Message:d};const{errorSchema:h,errorMetadata:y}=await this.mixin.getErrorSchemaOrThrowBaseException(l,this.options.defaultNamespace,r,f,c,this.mixin.findQueryCompatibleError),g=_t.of(h),b=Jn.for(h[1]).getErrorCtor(h)??Error,v=new b(d),_={Type:f.Error.Type,Code:f.Error.Code,Error:f.Error};for(const[x,R]of g.structIterator()){const C=R.getMergedTraits().xmlName??x,I=f[C]??i[C];_[x]=this.deserializer.readSchema(R,I)}throw this.mixin.decorateServiceException(Object.assign(v,y,{$fault:g.getMergedTraits().error,message:d},_),i)}loadQueryErrorCode(t,n){const r=(n.Errors?.[0]?.Error??n.Errors?.Error??n.Error)?.Code;if(r!==void 0)return r;if(t.statusCode==404)return"NotFound"}loadQueryError(t){return t.Errors?.[0]?.Error??t.Errors?.Error??t.Error}loadQueryErrorMessage(t){const n=this.loadQueryError(t);return n?.message??n?.Message??t.message??t.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class BY extends LY{options;constructor(t){super(t),this.options=t;const n={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,n)}useNestedResult(){return!1}}const $Y=(e,t)=>{if(t?.Error?.Code!==void 0)return t.Error.Code;if(t?.Code!==void 0)return t.Code;if(e.statusCode==404)return"NotFound"};class UY extends lm{settings;stringBuffer;byteBuffer;buffer;constructor(t){super(),this.settings=t}write(t,n){const r=_t.of(t);if(r.isStringSchema()&&typeof n=="string")this.stringBuffer=n;else if(r.isBlobSchema())this.byteBuffer="byteLength"in n?n:(this.serdeContext?.base64Decoder??Ha)(n);else{this.buffer=this.writeStruct(r,n,void 0);const i=r.getMergedTraits();i.httpPayload&&!i.xmlName&&this.buffer.withName(r.getName())}}flush(){if(this.byteBuffer!==void 0){const n=this.byteBuffer;return delete this.byteBuffer,n}if(this.stringBuffer!==void 0){const n=this.stringBuffer;return delete this.stringBuffer,n}const t=this.buffer;return this.settings.xmlNamespace&&(t?.attributes?.xmlns||t.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,t.toString()}writeStruct(t,n,r){const i=t.getMergedTraits(),c=t.isMemberSchema()&&!i.httpPayload?t.getMemberTraits().xmlName??t.getMemberName():i.xmlName??t.getName();if(!c||!t.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${t.getName(!0)}.`);const l=os.of(c),[f,d]=this.getXmlnsAttribute(t,r);for(const[y,g]of t.structIterator()){const b=n[y];if(b!=null||g.isIdempotencyToken()){if(g.getMergedTraits().xmlAttribute){l.addAttribute(g.getMergedTraits().xmlName??y,this.writeSimple(g,b));continue}if(g.isListSchema())this.writeList(g,b,l,d);else if(g.isMapSchema())this.writeMap(g,b,l,d);else if(g.isStructSchema())l.addChildNode(this.writeStruct(g,b,d));else{const v=os.of(g.getMergedTraits().xmlName??g.getMemberName());this.writeSimpleInto(g,b,v,d),l.addChildNode(v)}}}const{$unknown:h}=n;if(h&&t.isUnionSchema()&&Array.isArray(h)&&Object.keys(n).length===1){const[y,g]=h,b=os.of(y);if(typeof g!="string")if(n instanceof os||n instanceof Zb)l.addChildNode(n);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,g,b,d),l.addChildNode(b)}return d&&l.addAttribute(f,d),l}writeList(t,n,r,i){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${t.getName(!0)}`);const c=t.getMergedTraits(),l=t.getValueSchema(),f=l.getMergedTraits(),d=!!f.sparse,h=!!c.xmlFlattened,[y,g]=this.getXmlnsAttribute(t,i),b=(v,_)=>{if(l.isListSchema())this.writeList(l,Array.isArray(_)?_:[_],v,g);else if(l.isMapSchema())this.writeMap(l,_,v,g);else if(l.isStructSchema()){const x=this.writeStruct(l,_,g);v.addChildNode(x.withName(h?c.xmlName??t.getMemberName():f.xmlName??"member"))}else{const x=os.of(h?c.xmlName??t.getMemberName():f.xmlName??"member");this.writeSimpleInto(l,_,x,g),v.addChildNode(x)}};if(h)for(const v of n)(d||v!=null)&&b(r,v);else{const v=os.of(c.xmlName??t.getMemberName());g&&v.addAttribute(y,g);for(const _ of n)(d||_!=null)&&b(v,_);r.addChildNode(v)}}writeMap(t,n,r,i,c=!1){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${t.getName(!0)}`);const l=t.getMergedTraits(),f=t.getKeySchema(),h=f.getMergedTraits().xmlName??"key",y=t.getValueSchema(),g=y.getMergedTraits(),b=g.xmlName??"value",v=!!g.sparse,_=!!l.xmlFlattened,[x,R]=this.getXmlnsAttribute(t,i),C=(I,D,A)=>{const B=os.of(h,D),[j,H]=this.getXmlnsAttribute(f,R);H&&B.addAttribute(j,H),I.addChildNode(B);let k=os.of(b);y.isListSchema()?this.writeList(y,A,k,R):y.isMapSchema()?this.writeMap(y,A,k,R,!0):y.isStructSchema()?k=this.writeStruct(y,A,R):this.writeSimpleInto(y,A,k,R),I.addChildNode(k)};if(_){for(const[I,D]of Object.entries(n))if(v||D!=null){const A=os.of(l.xmlName??t.getMemberName());C(A,I,D),r.addChildNode(A)}}else{let I;c||(I=os.of(l.xmlName??t.getMemberName()),R&&I.addAttribute(x,R),r.addChildNode(I));for(const[D,A]of Object.entries(n))if(v||A!=null){const B=os.of("entry");C(B,D,A),(c?r:I).addChildNode(B)}}}writeSimple(t,n){if(n===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");const r=_t.of(t);let i=null;if(n&&typeof n=="object")if(r.isBlobSchema())i=(this.serdeContext?.base64Encoder??zi)(n);else if(r.isTimestampSchema()&&n instanceof Date)switch(am(r,this.settings)){case 5:i=n.toISOString().replace(".000Z","Z");break;case 6:i=wp(n);break;case 7:i=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",n),i=wp(n);break}else{if(r.isBigDecimalSchema()&&n)return n instanceof If?n.string:String(n);throw r.isMapSchema()||r.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${r.getName(!0)}`)}if((r.isBooleanSchema()||r.isNumericSchema()||r.isBigIntegerSchema()||r.isBigDecimalSchema())&&(i=String(n)),r.isStringSchema()&&(n===void 0&&r.isIdempotencyToken()?i=om():i=String(n)),i===null)throw new Error(`Unhandled schema-value pair ${r.getName(!0)}=${n}`);return i}writeSimpleInto(t,n,r,i){const c=this.writeSimple(t,n),l=_t.of(t),f=new Zb(c),[d,h]=this.getXmlnsAttribute(l,i);h&&r.addAttribute(d,h),r.addChildNode(f)}getXmlnsAttribute(t,n){const r=t.getMergedTraits(),[i,c]=r.xmlNamespace??[];return c&&c!==n?[i?`xmlns:${i}`:"xmlns",c]:[void 0,void 0]}}class jY extends lm{settings;constructor(t){super(),this.settings=t}createSerializer(){const t=new UY(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){const t=new kD(this.settings);return t.setSerdeContext(this.serdeContext),t}}class HY extends uZ{codec;serializer;deserializer;mixin=new DD;constructor(t){super(t);const n={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace};this.codec=new jY(n),this.serializer=new pZ(this.codec.createSerializer(),n),this.deserializer=new dZ(this.codec.createDeserializer(),n)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(t,n,r){const i=await super.serializeRequest(t,n,r),c=_t.of(t.input);if(!i.headers["content-type"]){const l=this.mixin.resolveRestContentType(this.getDefaultContentType(),c);l&&(i.headers["content-type"]=l)}return typeof i.body=="string"&&i.headers["content-type"]===this.getDefaultContentType()&&!i.body.startsWith("'+i.body),i}async deserializeResponse(t,n,r){return super.deserializeResponse(t,n,r)}async handleError(t,n,r,i,c){const l=$Y(r,i)??"Unknown";if(i.Error&&typeof i.Error=="object")for(const _ of Object.keys(i.Error))i[_]=i.Error[_],_.toLowerCase()==="message"&&(i.message=i.Error[_]);i.RequestId&&!c.requestId&&(c.requestId=i.RequestId);const{errorSchema:f,errorMetadata:d}=await this.mixin.getErrorSchemaOrThrowBaseException(l,this.options.defaultNamespace,r,i,c),h=_t.of(f),y=i.Error?.message??i.Error?.Message??i.message??i.Message??"Unknown",g=Jn.for(f[1]).getErrorCtor(f)??Error,b=new g(y);await this.deserializeHttpMessage(f,n,r,i);const v={};for(const[_,x]of h.structIterator()){const R=x.getMergedTraits().xmlName??_,C=i.Error?.[R]??i[R];v[_]=this.codec.createDeserializer().readSchema(x,C)}throw this.mixin.decorateServiceException(Object.assign(b,d,{$fault:h.getMergedTraits().error,message:y},v),i)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(t){for(const[,n]of t.structIterator())if(n.getMergedTraits().httpPayload)return!(n.isStructSchema()||n.isMapSchema()||n.isListSchema());return!1}}const FY=/\d{12}\.ddb/;async function qY(e,t,n){if(n.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&Sr(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){const c=await t.retryStrategy();typeof c.acquireInitialRetryToken=="function"?c.constructor?.name?.includes("Adaptive")?Sr(e,"RETRY_MODE_ADAPTIVE","F"):Sr(e,"RETRY_MODE_STANDARD","E"):Sr(e,"RETRY_MODE_LEGACY","D")}if(typeof t.accountIdEndpointMode=="function"){const c=e.endpointV2;switch(String(c?.url?.hostname).match(FY)&&Sr(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":Sr(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Sr(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Sr(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const i=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(i?.$source){const c=i;c.accountId&&Sr(e,"RESOLVED_ACCOUNT_ID","T");for(const[l,f]of Object.entries(c.$source??{}))Sr(e,l,f)}}const GT="user-agent",H0="x-amz-user-agent",KT=" ",F0="/",VY=/[^!$%&'*+\-.^_`|~\w]/g,GY=/[^!$%&'*+\-.^_`|~\w#]/g,ZT="-",KY=1024;function ZY(e){let t="";for(const n in e){const r=e[n];if(t.length+r.length+1<=KY){t.length?t+=","+r:t+=r;continue}break}return t}const YY=e=>(t,n)=>async r=>{const{request:i}=r;if(!On.isInstance(i))return t(r);const{headers:c}=i,l=n?.userAgent?.map(Ih)||[],f=(await e.defaultUserAgentProvider()).map(Ih);await qY(n,e,r);const d=n;f.push(`m/${ZY(Object.assign({},n.__smithy_context?.features,d.__aws_sdk_context?.features))}`);const h=e?.customUserAgent?.map(Ih)||[],y=await e.userAgentAppId();y&&f.push(Ih(["app",`${y}`]));const g=[].concat([...f,...l,...h]).join(KT),b=[...f.filter(v=>v.startsWith("aws-sdk-")),...h].join(KT);return e.runtime!=="browser"?(b&&(c[H0]=c[H0]?`${c[GT]} ${b}`:b),c[GT]=g):c[H0]=g,t({...r,request:i})},Ih=e=>{const t=e[0].split(F0).map(l=>l.replace(VY,ZT)).join(F0),n=e[1]?.replace(GY,ZT),r=t.indexOf(F0),i=t.substring(0,r);let c=t.substring(r+1);return i==="api"&&(c=c.toLowerCase()),[i,c,n].filter(l=>l&&l.length>0).reduce((l,f,d)=>{switch(d){case 0:return f;case 1:return`${l}/${f}`;default:return`${l}#${f}`}},"")},QY={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},PD=e=>({applyToStack:t=>{t.add(YY(e),QY)}}),ND=!1,zD=!1,YT=new Set,XY=(e,t=Of)=>{if(!YT.has(e)&&!t(e))if(e==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else YT.add(e)},LD=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),WY=e=>LD(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,BD=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{const r=typeof t=="function"?await t():t,i=WY(r);return XY(i),i},useFipsEndpoint:async()=>{const r=typeof t=="string"?t:await t();return LD(r)?!0:typeof n!="function"?Promise.resolve(!!n):n()}})},QT="content-length";function JY(e){return t=>async n=>{const r=n.request;if(On.isInstance(r)){const{body:i,headers:c}=r;if(i&&Object.keys(c).map(l=>l.toLowerCase()).indexOf(QT)===-1)try{const l=e(i);r.headers={...r.headers,[QT]:String(l)}}catch{}}return t({...n,request:r})}}const eQ={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},$D=e=>({applyToStack:t=>{t.add(JY(e.bodyLengthChecker),eQ)}}),tQ=async e=>{const t=e?.Bucket||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),iQ(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!oQ(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},nQ=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,sQ=/(\d+\.){3}\d+/,rQ=/\.\./,oQ=e=>nQ.test(e)&&!sQ.test(e)&&!rQ.test(e),iQ=e=>{const[t,n,r,,,i]=e.split(":"),c=t==="arn"&&e.split(":").length>=6,l=!!(c&&n&&r&&i);if(c&&!l)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return l},aQ=(e,t,n,r=!1)=>{const i=async()=>{let c;return r?c=n.clientContextParams?.[e]??n[e]??n[t]:c=n[e]??n[t],typeof c=="function"?c():c};return e==="credentialScope"||t==="CredentialScope"?async()=>{const c=typeof n.credentials=="function"?await n.credentials():n.credentials;return c?.credentialScope??c?.CredentialScope}:e==="accountId"||t==="AccountId"?async()=>{const c=typeof n.credentials=="function"?await n.credentials():n.credentials;return c?.accountId??c?.AccountId}:e==="endpoint"||t==="endpoint"?async()=>{if(n.isCustomEndpoint===!1)return;const c=await i();if(c&&typeof c=="object"){if("url"in c)return c.url.href;if("hostname"in c){const{protocol:l,hostname:f,port:d,path:h}=c;return`${l}//${f}${d?":"+d:""}${h}`}}return c}:i},UD=async e=>{},jD=e=>typeof e=="object"?"url"in e?bf(e.url):e:bf(e),cQ=async(e,t,n,r)=>{if(!n.isCustomEndpoint){let l;n.serviceConfiguredEndpoint?l=await n.serviceConfiguredEndpoint():l=await UD(n.serviceId),l&&(n.endpoint=()=>Promise.resolve(jD(l)),n.isCustomEndpoint=!0)}const i=await HD(e,t,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return n.endpointProvider(i,r)},HD=async(e,t,n)=>{const r={},i=t?.getEndpointParameterInstructions?.()||{};for(const[c,l]of Object.entries(i))switch(l.type){case"staticContextParams":r[c]=l.value;break;case"contextParams":r[c]=e[l.name];break;case"clientContextParams":case"builtInParams":r[c]=await aQ(l.name,c,n,l.type!=="builtInParams")();break;case"operationContextParams":r[c]=l.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(l))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()==="s3"&&await tQ(r),r},lQ=({config:e,instructions:t})=>(n,r)=>async i=>{e.isCustomEndpoint&&mZ(r,"ENDPOINT_OVERRIDE","N");const c=await cQ(i.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=c,r.authSchemes=c.properties?.authSchemes;const l=r.authSchemes?.[0];if(l){r.signing_region=l.signingRegion,r.signing_service=l.signingName;const d=Io(r)?.selectedHttpAuthScheme?.httpAuthOption;d&&(d.signingProperties=Object.assign(d.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return n({...i})},uQ={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:dK.name},Oo=(e,t)=>({applyToStack:n=>{n.addRelativeTo(lQ({config:e,instructions:t}),uQ)}}),FD=e=>{const t=e.tls??!0,{endpoint:n,useDualstackEndpoint:r,useFipsEndpoint:i}=e,c=n!=null?async()=>jD(await Bs(n)()):void 0,f=Object.assign(e,{endpoint:c,tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:Bs(r??!1),useFipsEndpoint:Bs(i??!1)});let d;return f.serviceConfiguredEndpoint=async()=>(e.serviceId&&!d&&(d=UD(e.serviceId)),d),f};var pl;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(pl||(pl={}));const vf=3,qD=pl.STANDARD,fQ=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],dQ=["TimeoutError","RequestTimeout","RequestTimeoutException"],hQ=[500,502,503,504],pQ=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],mQ=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],gQ=e=>e?.$retryable!==void 0,yQ=e=>e.$metadata?.clockSkewCorrected,bQ=e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return e&&e instanceof TypeError?t.has(e.message):!1},VD=e=>e.$metadata?.httpStatusCode===429||fQ.includes(e.name)||e.$retryable?.throttling==!0,sS=(e,t=0)=>gQ(e)||yQ(e)||dQ.includes(e.name)||pQ.includes(e?.code||"")||mQ.includes(e?.code||"")||hQ.includes(e.$metadata?.httpStatusCode||0)||bQ(e)||e.cause!==void 0&&t<=10&&sS(e.cause,t+1),vQ=e=>{if(e.$metadata?.httpStatusCode!==void 0){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!sS(e)}return!1};class rS{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=!1;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(t){this.beta=t?.beta??.7,this.minCapacity=t?.minCapacity??1,this.minFillRate=t?.minFillRate??.5,this.scaleConstant=t?.scaleConstant??.4,this.smooth=t?.smooth??.8;const n=this.getCurrentTimeInSeconds();this.lastThrottleTime=n,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(t){if(this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){const n=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(r=>rS.setTimeoutFn(r,n))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){const t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}const n=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+n),this.lastTimestamp=t}updateClientSendingRate(t){let n;if(this.updateMeasuredRate(),VD(t)){const i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),n=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),n=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const t=this.getCurrentTimeInSeconds(),n=Math.floor(t*2)/2;if(this.requestCount++,n>this.lastTxRateBucket){const r=this.requestCount/(n-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=n}}getPrecise(t){return parseFloat(t.toFixed(8))}}const Yb=100,GD=20*1e3,SQ=500,XT=500,_Q=5,wQ=10,xQ=1,EQ="amz-sdk-invocation-id",RQ="amz-sdk-request",CQ=()=>{let e=Yb;return{computeNextBackoffDelay:r=>Math.floor(Math.min(GD,Math.random()*2**r*e)),setDelayBase:r=>{e=r}}},WT=({retryDelay:e,retryCount:t,retryCost:n})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(GD,e),getRetryCost:()=>n});class KD{maxAttempts;mode=pl.STANDARD;capacity=XT;retryBackoffStrategy=CQ();maxAttemptsProvider;constructor(t){this.maxAttempts=t,this.maxAttemptsProvider=typeof t=="function"?t:async()=>t}async acquireInitialRetryToken(t){return WT({retryDelay:Yb,retryCount:0})}async refreshRetryTokenForRetry(t,n){const r=await this.getMaxAttempts();if(this.shouldRetry(t,n,r)){const i=n.errorType;this.retryBackoffStrategy.setDelayBase(i==="THROTTLING"?SQ:Yb);const c=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount()),l=n.retryAfterHint?Math.max(n.retryAfterHint.getTime()-Date.now()||0,c):c,f=this.getCapacityCost(i);return this.capacity-=f,WT({retryDelay:l,retryCount:t.getRetryCount()+1,retryCost:f})}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.max(XT,this.capacity+(t.getRetryCost()??xQ))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${vf}`),vf}}shouldRetry(t,n,r){return t.getRetryCount()+1=this.getCapacityCost(n.errorType)&&this.isRetryableError(n.errorType)}getCapacityCost(t){return t==="TRANSIENT"?wQ:_Q}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}}class TQ{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=pl.ADAPTIVE;constructor(t,n){this.maxAttemptsProvider=t;const{rateLimiter:r}=n??{};this.rateLimiter=r??new rS,this.standardRetryStrategy=new KD(t)}async acquireInitialRetryToken(t){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(t)}async refreshRetryTokenForRetry(t,n){return this.rateLimiter.updateClientSendingRate(n),this.standardRetryStrategy.refreshRetryTokenForRetry(t,n)}recordSuccess(t){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(t)}}const AQ=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),ZD=e=>{const{retryStrategy:t,retryMode:n,maxAttempts:r}=e,i=Bs(r??vf);return Object.assign(e,{maxAttempts:i,retryStrategy:async()=>t||(await Bs(n)()===pl.ADAPTIVE?new TQ(i):new KD(i))})},IQ=e=>e?.body instanceof ReadableStream,OQ=e=>(t,n)=>async r=>{let i=await e.retryStrategy();const c=await e.maxAttempts();if(MQ(i)){i=i;let l=await i.acquireInitialRetryToken(n.partition_id),f=new Error,d=0,h=0;const{request:y}=r,g=On.isInstance(y);for(g&&(y.headers[EQ]=om());;)try{g&&(y.headers[RQ]=`attempt=${d+1}; max=${c}`);const{response:b,output:v}=await t(r);return i.recordSuccess(l),v.$metadata.attempts=d+1,v.$metadata.totalRetryDelay=h,{response:b,output:v}}catch(b){const v=DQ(b);if(f=AQ(b),g&&IQ(y))throw(n.logger instanceof nS?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),f;try{l=await i.refreshRetryTokenForRetry(l,v)}catch{throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=d+1,f.$metadata.totalRetryDelay=h,f}d=l.getRetryCount();const _=l.getRetryDelay();h+=_,await new Promise(x=>setTimeout(x,_))}}else return i=i,i?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,r)},MQ=e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u",DQ=e=>{const t={error:e,errorType:kQ(e)},n=NQ(e.$response);return n&&(t.retryAfterHint=n),t},kQ=e=>VD(e)?"THROTTLING":sS(e)?"TRANSIENT":vQ(e)?"SERVER_ERROR":"CLIENT_ERROR",PQ={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},YD=e=>({applyToStack:t=>{t.add(OQ(e),PQ)}}),NQ=e=>{if(!ja.isInstance(e))return;const t=Object.keys(e.headers).find(c=>c.toLowerCase()==="retry-after");if(!t)return;const n=e.headers[t],r=Number(n);return Number.isNaN(r)?new Date(n):new Date(r*1e3)},zQ=async(e,t,n)=>({operation:Io(t).operation,region:await Bs(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function LQ(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ec2",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}const BQ=e=>{const t=[];switch(e.operation){default:t.push(LQ(e))}return t},$Q=e=>{const t=RD(e);return Object.assign(t,{authSchemePreference:Bs(e.authSchemePreference??[])})},UQ=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"ec2"}),Sl={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},jQ="3.995.0",HQ={version:jQ},QD=e=>new TextEncoder().encode(e);var FQ=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:QD;function Fa(e){return e instanceof Uint8Array?e:typeof e=="string"?FQ(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function Rp(e){return typeof e=="string"?e.length===0:e.byteLength===0}function qQ(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}function VQ(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n0&&c[c.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!c||h[1]>c[0]&&h[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var sr=64,QQ=32,XQ=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),WQ=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],JQ=Math.pow(2,53)-1,Fh=(function(){function e(){this.state=Int32Array.from(WQ),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=t.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>JQ)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=t[n++],r--,this.bufferLength===sr&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%sr>=sr-8){for(var i=this.bufferLength;i>>24&255,c[i*4+1]=this.state[i]>>>16&255,c[i*4+2]=this.state[i]>>>8&255,c[i*4+3]=this.state[i]>>>0&255;return c},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,r=t.state,i=r[0],c=r[1],l=r[2],f=r[3],d=r[4],h=r[5],y=r[6],g=r[7],b=0;b>>17|v<<15)^(v>>>19|v<<13)^v>>>10;v=this.temp[b-15];var x=(v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3;this.temp[b]=(_+this.temp[b-7]|0)+(x+this.temp[b-16]|0)}var R=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&y)|0)+(g+(XQ[b]+this.temp[b]|0)|0)|0,C=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&c^i&l^c&l)|0;g=y,y=h,h=d,d=f+R|0,f=l,l=c,c=i,i=R+C|0}r[0]+=i,r[1]+=c,r[2]+=l,r[3]+=f,r[4]+=d,r[5]+=h,r[6]+=y,r[7]+=g},e})(),eX=(function(){function e(t){this.secret=t,this.hash=new Fh,this.reset()}return e.prototype.update=function(t){if(!(Rp(t)||this.error))try{this.hash.update(Fa(t))}catch(n){this.error=n}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return WD(this,void 0,void 0,function(){return JD(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new Fh,this.secret){this.outer=new Fh;var t=tX(this.secret),n=new Uint8Array(sr);n.set(t);for(var r=0;rsr){var n=new Fh;n.update(t),t=n.digest()}var r=new Uint8Array(sr);return r.set(t),r}var nX=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function ek(e){if(sX(e)&&typeof e.crypto.subtle=="object"){var t=e.crypto.subtle;return rX(t)}return!1}function sX(e){if(typeof e=="object"&&typeof e.crypto=="object"){var t=e.crypto.getRandomValues;return typeof t=="function"}return!1}function rX(e){return e&&nX.every(function(t){return typeof e[t]=="function"})}var tk=(function(){function e(t){ek(Ni())?this.hash=new ZQ(t):this.hash=new eX(t)}return e.prototype.update=function(t,n){this.hash.update(Fa(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();const nk=({serviceId:e,clientVersion:t})=>async n=>{const r=typeof window<"u"?window.navigator:void 0,i=r?.userAgent??"",c=r?.userAgentData?.platform??eA.os(i)??"other",l=void 0,f=r?.userAgentData?.brands??[],d=f[f.length-1],h=d?.brand??eA.browser(i)??"unknown",y=d?.version??"unknown",g=[["aws-sdk-js",t],["ua","2.1"],[`os/${c}`,l],["lang/js"],["md/browser",`${h}_${y}`]];e&&g.push([`api/${e}`,t]);const b=await n?.userAgentAppId?.();return b&&g.push([`app/${b}`]),g},eA={os(e){if(/iPhone|iPad|iPod/.test(e))return"iOS";if(/Macintosh|Mac OS X/.test(e))return"macOS";if(/Windows NT/.test(e))return"Windows";if(/Android/.test(e))return"Android";if(/Linux/.test(e))return"Linux"},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return"Microsoft Edge";if(/Firefox\//.test(e))return"Firefox";if(/Chrome\//.test(e))return"Chrome";if(/Safari\//.test(e))return"Safari"}},sk=e=>()=>Promise.reject(e),oX=["in-region","cross-region","mobile","standard","legacy"],rk=({defaultsMode:e}={})=>XZ(async()=>{const t=typeof e=="function"?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(iX()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${oX.join(", ")}, got ${t}`)}}),iX=()=>{const e=window?.navigator;if(e?.connection){const{effectiveType:t,rtt:n,downlink:r}=e?.connection;if(typeof t=="string"&&t!=="4g"||Number(n)>100||Number(r)<10)return!0}return e?.userAgentData?.mobile||typeof e?.maxTouchPoints=="number"&&e?.maxTouchPoints>1},ok=(e,t=!1)=>{if(t){for(const n of e.split("."))if(!ok(n))return!1;return!0}return!(!Of(e)||e.length<3||e.length>63||e!==e.toLowerCase()||Wv(e))},tA=":",aX="/",cX=e=>{const t=e.split(tA);if(t.length<6)return null;const[n,r,i,c,l,...f]=t;if(n!=="arn"||r===""||i===""||f.join(tA)==="")return null;const d=f.map(h=>h.split(aX)).flat();return{partition:r,service:i,region:c,accountId:l,resourceId:d}},lX=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],uX={partitions:lX};let fX=uX;const dX=e=>{const{partitions:t}=fX;for(const r of t){const{regions:i,outputs:c}=r;for(const[l,f]of Object.entries(i))if(l===e)return{...c,...f}}for(const r of t){const{regionRegex:i,outputs:c}=r;if(new RegExp(i).test(e))return{...c}}const n=t.find(r=>r.id==="aws");if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}},oS={isVirtualHostableS3Bucket:ok,parseArn:cX,partition:dX};hl.aws=oS;const ik="required",or="fn",ir="argv",_l="ref",nA=!0,sA="isSet",Sf="booleanEquals",Fc="error",qc="endpoint",po="tree",iS="PartitionResult",aS="getAttr",rA={[ik]:!1,type:"string"},oA={[ik]:!0,default:!1,type:"boolean"},iA={[_l]:"Endpoint"},ak={[or]:Sf,[ir]:[{[_l]:"UseFIPS"},!0]},ck={[or]:Sf,[ir]:[{[_l]:"UseDualStack"},!0]},er={},aA={[or]:aS,[ir]:[{[_l]:iS},"supportsFIPS"]},lk={[_l]:iS},cA={[or]:Sf,[ir]:[!0,{[or]:aS,[ir]:[lk,"supportsDualStack"]}]},lA=[ak],uA=[ck],fA=[{[_l]:"Region"}],hX={parameters:{Region:rA,UseDualStack:oA,UseFIPS:oA,Endpoint:rA},rules:[{conditions:[{[or]:sA,[ir]:[iA]}],rules:[{conditions:lA,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Fc},{conditions:uA,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Fc},{endpoint:{url:iA,properties:er,headers:er},type:qc}],type:po},{conditions:[{[or]:sA,[ir]:fA}],rules:[{conditions:[{[or]:"aws.partition",[ir]:fA,assign:iS}],rules:[{conditions:[ak,ck],rules:[{conditions:[{[or]:Sf,[ir]:[nA,aA]},cA],rules:[{endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:er,headers:er},type:qc}],type:po},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Fc}],type:po},{conditions:lA,rules:[{conditions:[{[or]:Sf,[ir]:[aA,nA]}],rules:[{conditions:[{[or]:"stringEquals",[ir]:[{[or]:aS,[ir]:[lk,"name"]},"aws-us-gov"]}],endpoint:{url:"https://ec2.{Region}.amazonaws.com",properties:er,headers:er},type:qc},{endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:er,headers:er},type:qc}],type:po},{error:"FIPS is enabled but this partition does not support FIPS",type:Fc}],type:po},{conditions:uA,rules:[{conditions:[cA],rules:[{endpoint:{url:"https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:er,headers:er},type:qc}],type:po},{error:"DualStack is enabled but this partition does not support DualStack",type:Fc}],type:po},{endpoint:{url:"https://ec2.{Region}.{PartitionResult#dnsSuffix}",properties:er,headers:er},type:qc}],type:po}],type:po},{error:"Invalid Configuration: Missing Region",type:Fc}]},pX=hX,mX=new oD({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),gX=(e,t={})=>mX.get(e,()=>mD(pX,{endpointParams:e,logger:t.logger}));hl.aws=oS;class cS extends Oa{constructor(t){super(t),Object.setPrototypeOf(this,cS.prototype)}}const yX="AssociateCarrierIpAddress",bX="AdditionalFlexibleNetworkInterfaces",uk="AdditionalInfo",fk="AttachmentId",vX="AmiLaunchIndex",SX="AttachmentLimitType",_X="AssociatePublicIpAddress",wX="AutoRecoverySupported",xX="AllRegions",dk="AssociatedResource",hk="AutoRecovery",pk="AmdSevSnp",EX="ArchitectureTypeList",um="AttachTime",fm="AvailabilityZone",dm="AvailabilityZoneId",mk="Accelerators",RX="Affinity",gk="Arn",yk="Architecture",bk="Association",vk="Attachment",CX="Attachments",TX="BaselineBandwidthInGbps",Sk="BaselineBandwidthInMbps",lS="BlockDeviceMapping",AX="BlockDeviceMappingList",IX="BlockDeviceMappingRequestList",uS="BlockDeviceMappings",OX="BlockDurationMinutes",_k="BaselineIops",wk="BootMode",MX="BootModeTypeList",DX="BareMetal",kX="BurstablePerformanceSupported",xk="BaselineThroughputInMBps",Ek="BandwidthWeighting",PX="BandwidthWeightingTypeList",NX="BandwidthWeightings",zX="CapacityBlockId",LX="CoreCountList",Rk="CoreCount",BX="CpuCredits",$X="CreationDate",UX="CurrentGeneration",jX="CarrierIp",HX="CurrentInstanceBootMode",FX="CoreInfo",qX="CreateKeyPair",VX="CreateKeyPairRequest",fS="CpuOptions",GX="CustomerOwnedIp",KX="CpuOptionsRequest",dS="CapacityReservationId",Ck="CapacityReservationPreference",Tk="CapacityReservationResourceGroupArn",ZX="CapacityReservationSpecificationResponse",hS="CapacityReservationSpecification",pS="CapacityReservationTarget",YX="CapacityReservationTargetResponse",QX="CreditSpecificationRequest",XX="CreditSpecification",WX="CurrentState",mS="ClientToken",JX="ConnectionTrackingConfiguration",eW="ConnectionTrackingSpecification",tW="ConnectionTrackingSpecificationRequest",nW="ConnectionTrackingSpecificationResponse",Ak="CreateTime",sW="CreateVolumeRequest",rW="CreateVolume",Ik="Code",Ok="Configured",Vi="Count",oW="DisableApiStop",iW="DisableApiTermination",aW="DefaultCores",cW="DefaultEnaQueueCountPerInterface",lW="DedicatedHostsSupported",hm="DeviceIndex",uW="DiskInfoList",fW="DescribeImagesRequest",dW="DescribeImagesResult",hW="DescribeInstancesRequest",pW="DescribeInstancesResult",mW="DescribeInstanceTypesRequest",gW="DescribeInstanceTypesResult",yW="DescribeInstanceTypes",bW="DescribeImages",vW="DescribeInstances",SW="DiskInfo",_W="DeleteKeyPair",wW="DeleteKeyPairRequest",xW="DeleteKeyPairResult",EW="DescribeKeyPairsRequest",RW="DescribeKeyPairsResult",CW="DescribeKeyPairs",Mk="DeviceName",TW="DefaultNetworkCardIndex",Za="DeleteOnTermination",AW="DeregistrationProtection",Fn="DryRun",IW="DescribeRegionsRequest",OW="DescribeRegionsResult",MW="DescribeRegions",DW="DefaultThreadsPerCore",kW="DeprecationTime",PW="DefaultVCpus",NW="DeleteVolumeRequest",zW="DescribeVolumesRequest",LW="DescribeVolumesResult",BW="DeleteVolume",$W="DescribeVolumes",gS="Description",UW="Device",jW="Disks",HW="EbsBlockDevice",FW="ExecutableByStringList",Dk="ExecutableBy",pm="EbsCardIndex",qW="EbsCardInfoList",VW="EbsCardInfo",GW="EbsCards",KW="ElasticGpuAssociation",ZW="ElasticGpuAssociationId",YW="ElasticGpuAssociationList",QW="ElasticGpuAssociationState",XW="ElasticGpuAssociationTime",WW="ElasticGpuAssociations",JW="ElasticGpuId",kk="ElasticGpuSpecification",eJ="ElasticGpuSpecifications",Pk="ElasticInferenceAccelerator",tJ="ElasticInferenceAcceleratorAssociation",nJ="ElasticInferenceAcceleratorAssociationId",sJ="ElasticInferenceAcceleratorAssociationList",rJ="ElasticInferenceAcceleratorAssociationState",oJ="ElasticInferenceAcceleratorAssociationTime",iJ="ElasticInferenceAcceleratorArn",aJ="ElasticInferenceAcceleratorAssociations",Nk="ElasticInferenceAccelerators",cJ="EbsInstanceBlockDevice",lJ="EncryptionInTransitSupported",zk="EbsInfo",Lk="EfaInfo",Bk="EbsOptimized",$k="EbsOptimizedInfo",uJ="EnclaveOptionsRequest",fJ="EbsOptimizedSupport",yS="EnclaveOptions",dJ="EnablePrimaryIpv6",Uk="EnaQueueCount",jk="EnableResourceNameDnsAAAARecord",Hk="EnableResourceNameDnsARecord",Fk="EnaSrdEnabled",qk="EnaSrdSpecification",hJ="EnaSrdSpecificationRequest",pJ="EnaSrdSupported",Vk="EnaSrdUdpEnabled",Gk="EnaSrdUdpSpecification",mJ="EnaSrdUdpSpecificationRequest",gJ="EfaSupported",Kk="EncryptionSupport",bS="EnaSupport",yJ="EndTime",bJ="ExecutableUsers",Zk="Ebs",vS="Enabled",SS="Encrypted",vJ="Endpoint",Yk="Force",SJ="FpgaDeviceInfo",_J="FpgaDeviceInfoList",wJ="FpgaDeviceMemoryInfo",xJ="FlexibleEnaQueuesSupport",Qk="FpgaInfo",EJ="FilterList",RJ="FastRestored",Xk="FreeTierEligible",wl="Filters",Gi="Filter",CJ="Fpgas",_S="Groups",TJ="GpuDeviceInfo",AJ="GpuDeviceInfoList",IJ="GpuDeviceMemoryInfo",OJ="GroupIdentifierList",Wk="GpuInfo",Jk="GroupId",MJ="GroupIdentifier",e3="GroupName",DJ="GpuPartitionSize",kJ="Geography",PJ="Gpus",t3="HttpEndpoint",NJ="HostId",wS="HibernationOptions",zJ="HibernationOptionsRequest",n3="HttpProtocolIpv6",s3="HttpPutResponseHopLimit",LJ="HostResourceGroupArn",BJ="HibernationSupported",r3="HttpTokens",o3="HostnameType",$J="Hibernate",xS="Hypervisor",UJ="Id",ES="Ipv6Addresses",i3="Ipv6AddressCount",jJ="InstanceAttachmentEnaSrdSpecification",HJ="InstanceAttachmentEnaSrdUdpSpecification",a3="InferenceAcceleratorInfo",FJ="Ipv4AddressesPerInterface",qJ="Ipv6AddressesPerInterface",VJ="Ipv4AddressesPerSecondaryInterface",GJ="ImageAllowed",RS="Ipv6Address",KJ="InstanceBlockDeviceMapping",ZJ="InstanceBlockDeviceMappingList",YJ="IncludeDeprecated",QJ="InferenceDeviceInfo",XJ="InferenceDeviceInfoList",WJ="InferenceDeviceMemoryInfo",JJ="IncludeDisabled",Mo="InstanceId",eee="InstanceIpv6Address",tee="InstanceIpv6AddressList",nee="InstanceInterruptionBehavior",CS="IamInstanceProfile",see="InstanceIpv4PrefixList",ree="InstanceIpv6PrefixList",oee="IamInstanceProfileSpecification",iee="InstanceIpv4Prefix",aee="InstanceIpv6Prefix",cee="InstanceInitiatedShutdownBehavior",lee="ImageIdStringList",uee="InstanceIdStringList",Mf="ImageId",fee="ImageIds",Df="InstanceIds",dee="ImportKeyPair",hee="ImportKeyPairRequest",pee="ImportKeyPairResult",mee="ImageLocation",gee="ImageList",yee="InstanceLifecycle",bee="InstanceList",vee="InstanceMaintenanceOptions",See="InstanceMaintenanceOptionsRequest",_ee="InstanceMarketOptionsRequest",wee="InstanceMetadataOptionsRequest",xee="InstanceMetadataOptionsResponse",Eee="InstanceMarketOptions",c3="InstanceMetadataTags",Ree="InstanceNetworkInterface",Cee="InstanceNetworkInterfaceAssociation",Tee="InstanceNetworkInterfaceAttachment",Aee="InstanceNetworkInterfaceList",Iee="InstanceNetworkInterfaceSpecification",Oee="InstanceNetworkInterfaceSpecificationList",Mee="InstanceNetworkPerformanceOptions",Dee="InstanceNetworkPerformanceOptionsRequest",kee="ImageOwnerAlias",Pee="IpOwnerId",Nee="InstanceOwningService",zee="Ipv6PrefixCount",Lee="Ipv4PrefixCount",Bee="InstancePrivateIpAddress",$ee="InstancePrivateIpAddressList",Uee="IsPrimaryIpv6",jee="IncludePublicKey",Hee="Ipv4PrefixList",Fee="Ipv6PrefixList",qee="Ipv4PrefixSpecificationRequest",Vee="Ipv6PrefixSpecificationRequest",l3="Ipv6Prefixes",TS="Ipv6Prefix",u3="Ipv4Prefixes",AS="Ipv4Prefix",Gee="InstanceStateChange",Kee="InstanceStateChangeList",Zee="InstanceSecondaryInterfaceAttachment",Yee="InstanceSecondaryInterfaceList",Qee="InstanceSecondaryInterfacePrivateIpAddress",Xee="InstanceSecondaryInterfacePrivateIpAddressList",Wee="InstanceSecondaryInterfacePrivateIpAddressListRequest",Jee="InstanceSecondaryInterfacePrivateIpAddressRequest",ete="InstanceSecondaryInterfaceSpecificationListRequest",tte="InstanceSecondaryInterfaceSpecificationRequest",nte="InstanceSecondaryInterface",f3="InstanceStorageInfo",ste="InstanceStorageSupported",rte="ImdsSupport",ote="InstanceState",ite="Ipv6Supported",mm="InstanceType",ate="InstanceTypeInfoList",cte="InstanceTypeInfo",lte="ImageType",d3="InstanceTypes",gm="InterfaceType",ute="Images",fte="Image",dte="Instance",hte="Instances",ym="Iops",pte="Key",mte="KeyFormat",IS="KeyFingerprint",OS="KernelId",MS="KmsKeyId",gte="KeyMaterial",jr="KeyName",yte="KeyNameStringList",bte="KeyNames",vte="KeyPairs",Ya="KeyPairId",Ste="KeyPairIdStringList",_te="KeyPairIds",wte="KeyPairInfo",xte="KeyPairList",Ete="KeyPair",h3="KeyType",p3="LicenseConfigurationArn",Rte="LicenseConfigurationRequest",Cte="LicenseConfiguration",Tte="LogicalGpuCount",Ate="LicenseList",Ite="LastLaunchedTime",Ote="LicenseSpecifications",Mte="LicenseSpecificationListRequest",Dte="LicenseSpecification",kte="LaunchTemplate",Pte="LaunchTemplateId",Nte="LaunchTemplateName",zte="LaunchTemplateSpecification",Lte="LaunchTime",Bte="Licenses",DS="MultiAttachEnabled",m3="MediaAcceleratorInfo",g3="MacAddress",y3="MaximumBandwidthInMbps",$te="MaxCount",Ute="MinCount",jte="MediaDeviceInfo",Hte="MediaDeviceInfoList",Fte="MediaDeviceMemoryInfo",qte="MaximumEbsAttachments",Vte="MaximumEbsCards",Gte="MaximumEfaInterfaces",Kte="MaximumEnaQueueCount",Zte="MaximumEnaQueueCountPerInterface",b3="MaximumIops",Qa="MemoryInfo",Yte="MaximumNetworkCards",v3="MaximumNetworkInterfaces",S3="MetadataOptions",_3="MaintenanceOptions",Qte="MaxPrice",bm="MaxResults",Xte="MaximumSecondaryNetworkInterfaces",Wte="ModificationState",Jte="MarketType",w3="MaximumThroughputInMBps",ene="ModifyVolumeRequest",tne="ModifyVolumeResult",nne="ModifyVolume",kf="Manufacturer",sne="Managed",rne="Message",kS="Monitoring",Hr="Name",one="NetworkCards",Pf="NetworkCardIndex",ine="NetworkCardInfoList",ane="NetworkCardInfo",cne="NoDevice",lne="NeuronDeviceCoreInfo",une="NeuronDeviceInfo",fne="NeuronDeviceInfoList",dne="NeuronDeviceMemoryInfo",hne="NeuronDevices",pne="NitroEnclavesSupport",x3="NetworkInterfaceId",E3="NetworkInterfaces",R3="NetworkInfo",C3="NeuronInfo",T3="NetworkPerformanceOptions",A3="NetworkPerformance",I3="NvmeSupport",O3="NitroTpmInfo",mne="NitroTpmSupport",gne="NitroTpmSupportedVersionsList",Ki="NextToken",M3="NestedVirtualization",vm="OutpostArn",Sm="OwnerId",yne="OptInStatus",bne="OriginalIops",vne="OriginalMultiAttachEnabled",Sne="OperatorRequest",_ne="OperatorResponse",wne="OwnerStringList",xne="OriginalSize",Ene="OriginalThroughput",Rne="OriginalVolumeType",xl="Operator",Cne="Owners",D3="Owner",k3="Principal",Tne="PeakBandwidthInGbps",Ane="ProductCodeId",Ine="ProductCodeList",One="ProductCodeType",Mne="ProductCode",P3="ProductCodes",PS="PrivateDnsName",N3="PrivateDnsNameOptions",Dne="PrivateDnsNameOptionsRequest",kne="PrivateDnsNameOptionsResponse",z3="PublicDnsName",L3="PlatformDetails",B3="PlacementGroupInfo",Pne="PlacementGroupStrategyList",Nne="PublicIp",zne="PrivateIpAddressCount",Lne="PrivateIpAddressSpecification",Bne="PrivateIpAddressSpecificationList",Do="PrivateIpAddress",_m="PrivateIpAddresses",$ne="PublicIpAddress",Une="PrimaryIpv6",$3="ProcessorInfo",jne="PublicKey",Hne="PublicKeyMaterial",Fne="PartitionNumber",qne="PhcSupport",Vne="PreviousState",U3="Platform",NS="Placement",j3="Primary",Gne="Progress",Kne="Public",Zne="Return",H3="RootDeviceName",F3="RootDeviceType",Yne="RootDeviceTypeList",Qne="RegionGeography",Xne="RegionGeographyList",Wne="RunInstancesMonitoringEnabled",Jne="RebootInstancesRequest",ese="RunInstancesRequest",tse="RunInstancesUserData",zS="RamdiskId",nse="ReservationId",sse="RebootInstances",rse="RequesterId",ose="RunInstances",ise="RegionList",ase="ReservationList",cse="RebootMigrationSupport",lse="RebootMigration",LS="RegionName",use="RegionNameStringList",fse="RegionNames",dse="ResourceType",hse="Regions",pse="Region",mse="Reservations",gse="Reservation",yse="SupportedAdditionalProcessorFeatureList",bse="SupportedArchitectures",vse="SupportedBootModes",Sse="SustainedClockSpeedInGhz",BS="SourceDestCheck",_se="SpreadDomain",wse="SupportedFeatures",$S="SecurityGroupId",xse="SecurityGroupIdStringList",Ese="SecurityGroupIds",Rse="SecurityGroupStringList",q3="SecurityGroups",V3="SecurityGroup",Cse="SizeInGB",Tse="SourceImageId",Ase="SecondaryInterfaceId",Ise="SourceInstanceId",El="SizeInMiB",Ose="SpotInstanceRequestId",Mse="SourceImageRegion",Dse="StartInstancesRequest",kse="StartInstancesResult",Pse="StopInstancesRequest",Nse="StopInstancesResult",zse="SpotInstanceType",G3="SecondaryInterfaces",Lse="SecondaryInterface",US="SnapshotId",Bse="StartingInstances",$se="StartInstances",Use="StoppingInstances",jse="StopInstances",wm="SubnetId",Hse="SpotMarketOptions",Fse="StatusMessage",qse="SecondaryNetworkId",K3="SriovNetSupport",Vse="SecondaryNetworkSupported",Gse="SpotOptions",Z3="SkipOsShutdown",Kse="SecondaryPrivateIpAddressCount",Zse="SupportedRootDeviceTypes",jS="StateReason",Y3="SecondarySubnetId",Yse="SupportedStrategies",Qse="StartTime",Xse="StateTransitionReason",Wse="SseType",Jse="SupportedUsageClasses",ere="SensitiveUserData",tre="SourceVolumeId",nre="SupportedVirtualizationTypes",sre="SupportedVersions",HS="Size",Rl="State",Nf="Status",Xa="Tags",Q3="TcpEstablishedTimeout",rre="TotalFpgaMemoryInMiB",ore="TotalGpuMemoryInMiB",ire="TerminateInstances",are="TotalInferenceMemoryInMiB",cre="TerminateInstancesRequest",lre="TerminateInstancesResult",ure="TargetIops",fre="TerminatingInstances",dre="TagList",hre="TargetMultiAttachEnabled",pre="TotalMediaMemoryInMiB",mre="TotalNeuronDeviceMemoryInMiB",X3="ThreadsPerCore",gre="ThreadsPerCoreList",xm="TagSpecifications",yre="TotalSizeInGB",bre="TagSpecificationList",zf="TagSpecification",vre="TargetSize",W3="TpmSupport",Sre="TargetThroughput",_re="TargetVolumeType",J3="Tag",wre="Tenancy",Em="Throughput",FS="Type",xre="UsageClassTypeList",Ere="UserData",eP="UsageOperation",Rre="UsageOperationUpdateTime",tP="UdpStreamTimeout",nP="UdpTimeout",sP="Value",Cre="VolumeAttachmentList",Tre="VolumeAttachment",rP="VCpuInfo",Are="ValidCores",oP="VpcId",qS="VolumeInitializationRate",Ire="VolumeIdStringList",Zi="VolumeId",Ore="VolumeIds",Mre="VolumeList",iP="VolumeModification",Dre="VirtualName",kre="VolumeOwnerId",Pre="ValueStringList",Nre="VolumeSize",Rm="VolumeType",zre="VirtualizationTypeList",Lre="ValidThreadsPerCore",aP="VirtualizationType",Bre="ValidUntil",$re="Values",cP="Version",Ure="Volumes",jre="Volume",Hre="WorkloadsList",Fre="Workloads",qre="additionalFlexibleNetworkInterfaces",lP="additionalInfo",uP="attachmentId",Vre="amiLaunchIndex",Gre="attachmentLimitType",Kre="associatePublicIpAddress",Zre="autoRecoverySupported",fP="associatedResource",Yre="autoRecovery",Qre="amdSevSnp",Xre="attachmentSet",Cm="attachTime",VS="availabilityZone",dP="availabilityZoneId",hP="accelerators",Wre="affinity",pP="arn",mP="architecture",gP="association",yP="attachment",Jre="baselineBandwidthInGbps",bP="baselineBandwidthInMbps",vP="blockDeviceMapping",SP="baselineIops",_P="bootMode",eoe="bareMetal",toe="burstablePerformanceSupported",wP="baselineThroughputInMBps",noe="bandwidthWeighting",soe="bandwidthWeightings",roe="capacityBlockId",ooe="coreCount",ioe="creationDate",aoe="currentGeneration",coe="carrierIp",loe="currentInstanceBootMode",uoe="coreInfo",foe="cpuOptions",doe="customerOwnedIp",xP="capacityReservationId",hoe="capacityReservationPreference",poe="capacityReservationResourceGroupArn",moe="capacityReservationSpecification",goe="capacityReservationTarget",yoe="currentState",EP="clientToken",boe="connectionTrackingConfiguration",RP="createTime",CP="code",voe="configured",Wa="count",Soe="disableApiTermination",_oe="defaultCores",woe="defaultEnaQueueCountPerInterface",xoe="dedicatedHostsSupported",GS="deviceIndex",TP="deviceName",Eoe="defaultNetworkCardIndex",Roe="dnsName",Cl="deleteOnTermination",Coe="deregistrationProtection",as="dryRun",Toe="defaultThreadsPerCore",Aoe="deprecationTime",Ioe="defaultVCpus",KS="description",Ooe="device",Moe="disks",ZS="ebsCardIndex",Doe="ebsCardSet",koe="elasticGpuAssociationId",Poe="elasticGpuAssociationState",Noe="elasticGpuAssociationSet",zoe="elasticGpuAssociationTime",Loe="elasticGpuId",Boe="elasticInferenceAcceleratorArn",$oe="elasticInferenceAcceleratorAssociationId",Uoe="elasticInferenceAcceleratorAssociationState",joe="elasticInferenceAcceleratorAssociationSet",Hoe="elasticInferenceAcceleratorAssociationTime",Foe="encryptionInTransitSupported",qoe="ebsInfo",Voe="efaInfo",AP="ebsOptimized",Goe="ebsOptimizedInfo",Koe="ebsOptimizedSupport",Zoe="enclaveOptions",Yoe="enaQueueCount",w="ec2QueryName",Qoe="enableResourceNameDnsAAAARecord",Xoe="enableResourceNameDnsARecord",Woe="enaSrdEnabled",Joe="enaSrdSpecification",eie="enaSrdSupported",tie="enaSrdUdpEnabled",nie="enaSrdUdpSpecification",sie="efaSupported",IP="encryptionSupport",YS="enaSupport",rie="endTime",OP="ebs",MP="enabled",QS="encrypted",oie="flexibleEnaQueuesSupport",iie="fpgaInfo",aie="fastRestored",DP="freeTierEligible",cie="force",lie="fpgas",uie="gpuInfo",kP="groupId",PP="groupName",fie="gpuPartitionSize",die="geographySet",XS="groupSet",hie="gpus",WS="hypervisor",pie="httpEndpoint",mie="hostId",gie="hibernationOptions",yie="httpProtocolIpv6",bie="httpPutResponseHopLimit",vie="hostResourceGroupArn",Sie="hibernationSupported",_ie="httpTokens",wie="hostnameType",xie="id",Eie="ipv6AddressCount",Rie="inferenceAcceleratorInfo",Cie="ipv4AddressesPerInterface",Tie="ipv6AddressesPerInterface",Aie="ipv4AddressesPerSecondaryInterface",NP="ipv6AddressesSet",Iie="imageAllowed",Oie="ipAddress",zP="ipv6Address",JS="instanceId",LP="iamInstanceProfile",Mie="instanceInitiatedShutdownBehavior",BP="imageId",Die="imageLocation",kie="instanceLifecycle",Pie="instanceMetadataTags",Nie="imageOwnerAlias",zie="imageOwnerId",Lie="ipOwnerId",Bie="instanceOwningService",$ie="isPrimaryIpv6",Uie="ipv4PrefixSet",jie="ipv6PrefixSet",Hie="ipv4Prefix",Fie="ipv6Prefix",qie="isPublic",Vie="instanceStorageInfo",Gie="instanceStorageSupported",Kie="imagesSet",Zie="imageState",Yie="imdsSupport",Tm="instancesSet",Qie="instanceState",Xie="ipv6Supported",$P="instanceType",Wie="instanceTypeSet",Jie="idempotencyToken",eae="imageType",UP="interfaceType",jP="iops",$e="item",tae="key",e_="keyFingerprint",HP="kernelId",FP="kmsKeyId",nae="keyMaterial",Lf="keyName",Am="keyPairId",sae="keySet",rae="keyType",oae="licenseConfigurationArn",iae="logicalGpuCount",aae="lastLaunchedTime",cae="licenseSet",lae="launchTime",uae="multiAttachEnabled",fae="mediaAcceleratorInfo",qP="macAddress",VP="maximumBandwidthInMbps",dae="maximumEbsAttachments",hae="maximumEbsCards",pae="maximumEfaInterfaces",mae="maximumEnaQueueCount",gae="maximumEnaQueueCountPerInterface",GP="maximumIops",Tl="memoryInfo",yae="maximumNetworkCards",KP="maximumNetworkInterfaces",bae="metadataOptions",vae="maintenanceOptions",ZP="maxResults",Sae="maximumSecondaryNetworkInterfaces",_ae="modificationState",YP="maximumThroughputInMBps",Bf="manufacturer",wae="managed",xae="message",Eae="monitoring",ko="name",Rae="networkCards",t_="networkCardIndex",Cae="noDevice",Tae="neuronDevices",Aae="nitroEnclavesSupport",QP="networkInterfaceId",Iae="networkInterfaceSet",Oae="networkInterface",Mae="networkInfo",Dae="neuronInfo",kae="networkPerformanceOptions",XP="networkPerformance",WP="nvmeSupport",Pae="nitroTpmInfo",Nae="nitroTpmSupport",Al="nextToken",zae="nestedVirtualization",n_="outpostArn",s_="ownerId",Lae="optInStatus",Bae="originalIops",$ae="originalMultiAttachEnabled",Uae="originalSize",jae="originalThroughput",Hae="originalVolumeType",Im="operator",Fae="principal",qae="peakBandwidthInGbps",JP="productCodes",Vae="productCode",Gae="privateDnsNameOptions",r_="privateDnsName",Kae="publicDnsName",eN="platformDetails",Zae="placementGroupInfo",Yae="publicIp",tN="privateIpAddressesSet",Qae="privateIpAddressSet",Ja="privateIpAddress",Xae="processorInfo",Wae="publicKey",Jae="publicKeyMaterial",ece="partitionNumber",tce="phcSupport",nce="previousState",nN="platform",sce="placement",sN="primary",rce="progress",oce="return",rN="rootDeviceName",oN="rootDeviceType",ice="regionEndpoint",ace="reservationId",iN="ramdiskId",cce="regionInfo",lce="requesterId",uce="rebootMigrationSupport",fce="rebootMigration",dce="regionName",hce="reservationSet",pce="resourceType",mce="reason",aN="smithy.ts.sdk.synthetic.com.amazonaws.ec2",gce="supportedArchitectures",yce="supportedBootModes",bce="sustainedClockSpeedInGhz",o_="sourceDestCheck",vce="spreadDomain",Sce="supportedFeatures",_ce="sizeInGB",wce="sourceInstanceId",xce="secondaryInterfaceId",Ece="sourceImageId",Il="sizeInMiB",Rce="sourceImageRegion",Cce="spotInstanceRequestId",Tce="secondaryInterfaceSet",cN="snapshotId",i_="subnetId",Ace="statusMessage",Ice="secondaryNetworkId",Oce="secondaryNetworkSupported",lN="sriovNetSupport",Mce="secondaryPrivateIpAddressCount",Dce="supportedRootDeviceTypes",uN="stateReason",kce="secondarySubnetId",Pce="supportedStrategies",Nce="startTime",zce="sseType",Lce="supportedUsageClasses",Bce="sourceVolumeId",$ce="supportedVirtualizationTypes",Uce="supportedVersions",jce="size",fN="state",ec="status",Hce="tenancy",Fce="tcpEstablishedTimeout",qce="totalFpgaMemoryInMiB",Vce="totalGpuMemoryInMiB",Gce="totalInferenceMemoryInMiB",Kce="targetIops",Zce="targetMultiAttachEnabled",Yce="totalMediaMemoryInMiB",Qce="totalNeuronDeviceMemoryInMiB",Xce="threadsPerCore",Ol="tagSet",Wce="totalSizeInGB",Jce="targetSize",dN="tpmSupport",ele="targetThroughput",tle="targetVolumeType",hN="throughput",pN="type",mN="usageOperation",nle="usageOperationUpdateTime",sle="udpStreamTimeout",rle="udpTimeout",ole="value",ile="vCpuInfo",ale="validCores",gN="vpcId",cle="volumeInitializationRate",Om="volumeId",lle="volumeModification",ule="virtualName",fle="volumeOwnerId",dle="volumeSet",hle="volumeSize",yN="volumeType",ple="validThreadsPerCore",bN="virtualizationType",mle="version",gle="workloadSet",S="xmlName",L="com.amazonaws.ec2",vN=Jn.for(aN);var yle=[-3,aN,"EC2ServiceException",0,[],[]];vN.registerError(yle,cS);const ble=[vN];var vle=[0,L,tse,8,0],Sle=[0,L,ere,8,0],SN=[3,L,lS,0,[Zk,cne,Mk,Dre],[[()=>Zle,{[w]:"Ebs",[S]:OP}],[0,{[w]:"NoDevice",[S]:Cae}],[0,{[w]:"DeviceName",[S]:TP}],[0,{[w]:"VirtualName",[S]:ule}]]],_le=[3,L,hS,0,[Ck,pS],[0,()=>xle]],wle=[3,L,ZX,0,[Ck,pS],[[0,{[w]:"CapacityReservationPreference",[S]:hoe}],[()=>Ele,{[w]:"CapacityReservationTarget",[S]:goe}]]],xle=[3,L,pS,0,[dS,Tk],[0,0]],Ele=[3,L,YX,0,[dS,Tk],[[0,{[w]:"CapacityReservationId",[S]:xP}],[0,{[w]:"CapacityReservationResourceGroupArn",[S]:poe}]]],Rle=[3,L,tW,0,[Q3,tP,nP],[1,1,1]],Cle=[3,L,nW,0,[Q3,tP,nP],[[1,{[w]:"TcpEstablishedTimeout",[S]:Fce}],[1,{[w]:"UdpStreamTimeout",[S]:sle}],[1,{[w]:"UdpTimeout",[S]:rle}]]],Tle=[3,L,fS,0,[Rk,X3,pk,M3],[[1,{[w]:"CoreCount",[S]:ooe}],[1,{[w]:"ThreadsPerCore",[S]:Xce}],[0,{[w]:"AmdSevSnp",[S]:Qre}],[0,{[w]:"NestedVirtualization",[S]:zae}]]],Ale=[3,L,KX,0,[Rk,X3,pk,M3],[1,1,0,0]],Ile=[3,L,VX,0,[jr,h3,xm,mte,Fn],[0,0,[()=>Dm,{[S]:zf}],0,[2,{[w]:"DryRun",[S]:as}]],1],Ole=[3,L,sW,0,[fm,dm,SS,ym,MS,vm,HS,US,Rm,xm,DS,Em,mS,qS,xl,Fn],[0,0,[2,{[w]:"Encrypted",[S]:QS}],1,0,0,1,0,0,[()=>Dm,{[S]:zf}],2,1,[0,4],1,()=>wN,[2,{[w]:"DryRun",[S]:as}]]],Mle=[3,L,QX,0,[BX],[0],1],Dle=[3,L,wW,0,[jr,Ya,Fn],[0,0,[2,{[w]:"DryRun",[S]:as}]]],kle=[3,L,xW,0,[Zne,Ya],[[2,{[w]:"Return",[S]:oce}],[0,{[w]:"KeyPairId",[S]:Am}]]],Ple=[3,L,NW,0,[Zi,Fn],[0,[2,{[w]:"DryRun",[S]:as}]],1],Nle=[3,L,fW,0,[bJ,fee,Cne,YJ,JJ,bm,Ki,Fn,wl],[[()=>ede,{[S]:Dk}],[()=>sde,{[S]:Mf}],[()=>Ide,{[S]:D3}],2,2,1,0,[2,{[w]:"DryRun",[S]:as}],[()=>Ml,{[S]:Gi}]]],zle=[3,L,dW,0,[Ki,ute],[[0,{[w]:"NextToken",[S]:Al}],[()=>rde,{[w]:"ImagesSet",[S]:Kie}]]],Lle=[3,L,hW,0,[Df,Fn,wl,Ki,bm],[[()=>$f,{[S]:Mo}],[2,{[w]:"DryRun",[S]:as}],[()=>Ml,{[S]:Gi}],[0,{[w]:"NextToken",[S]:Al}],[1,{[w]:"MaxResults",[S]:ZP}]]],Ble=[3,L,pW,0,[Ki,mse],[[0,{[w]:"NextToken",[S]:Al}],[()=>Nde,{[w]:"ReservationSet",[S]:hce}]]],$le=[3,L,mW,0,[Fn,d3,wl,bm,Ki],[2,[64,{[S]:mm}],[()=>Ml,{[S]:Gi}],1,0]],Ule=[3,L,gW,0,[d3,Ki],[[()=>yde,{[w]:"InstanceTypeSet",[S]:Wie}],[0,{[w]:"NextToken",[S]:Al}]]],jle=[3,L,EW,0,[bte,_te,jee,Fn,wl],[[()=>Sde,{[S]:jr}],[()=>_de,{[S]:Ya}],2,[2,{[w]:"DryRun",[S]:as}],[()=>Ml,{[S]:Gi}]]],Hle=[3,L,RW,0,[vte],[[()=>wde,{[w]:"KeySet",[S]:sae}]]],Fle=[3,L,IW,0,[fse,xX,Fn,wl],[[()=>Pde,{[S]:LS}],2,[2,{[w]:"DryRun",[S]:as}],[()=>Ml,{[S]:Gi}]]],qle=[3,L,OW,0,[hse],[[()=>kde,{[w]:"RegionInfo",[S]:cce}]]],Vle=[3,L,zW,0,[Ore,Fn,wl,Ki,bm],[[()=>qde,{[S]:Zi}],[2,{[w]:"DryRun",[S]:as}],[()=>Ml,{[S]:Gi}],[0,{[w]:"NextToken",[S]:Al}],[1,{[w]:"MaxResults",[S]:ZP}]]],Gle=[3,L,LW,0,[Ki,Ure],[[0,{[w]:"NextToken",[S]:Al}],[()=>Vde,{[w]:"VolumeSet",[S]:dle}]]],Kle=[3,L,SW,0,[Cse,Vi,FS],[[1,{[w]:"SizeInGB",[S]:_ce}],[1,{[w]:"Count",[S]:Wa}],[0,{[w]:"Type",[S]:pN}]]],Zle=[3,L,HW,0,[Za,ym,US,Nre,Rm,MS,Em,vm,fm,SS,qS,dm,pm],[[2,{[w]:"DeleteOnTermination",[S]:Cl}],[1,{[w]:"Iops",[S]:jP}],[0,{[w]:"SnapshotId",[S]:cN}],[1,{[w]:"VolumeSize",[S]:hle}],[0,{[w]:"VolumeType",[S]:yN}],[0,{[w]:"KmsKeyId",[S]:FP}],[1,{[w]:"Throughput",[S]:hN}],[0,{[w]:"OutpostArn",[S]:n_}],[0,{[w]:"AvailabilityZone",[S]:VS}],[2,{[w]:"Encrypted",[S]:QS}],1,0,1]],Yle=[3,L,VW,0,[pm,Sk,xk,_k,y3,w3,b3],[[1,{[w]:"EbsCardIndex",[S]:ZS}],[1,{[w]:"BaselineBandwidthInMbps",[S]:bP}],[1,{[w]:"BaselineThroughputInMBps",[S]:wP}],[1,{[w]:"BaselineIops",[S]:SP}],[1,{[w]:"MaximumBandwidthInMbps",[S]:VP}],[1,{[w]:"MaximumThroughputInMBps",[S]:YP}],[1,{[w]:"MaximumIops",[S]:GP}]]],Qle=[3,L,zk,0,[fJ,Kk,$k,I3,qte,SX,Vte,GW],[[0,{[w]:"EbsOptimizedSupport",[S]:Koe}],[0,{[w]:"EncryptionSupport",[S]:IP}],[()=>Wle,{[w]:"EbsOptimizedInfo",[S]:Goe}],[0,{[w]:"NvmeSupport",[S]:WP}],[1,{[w]:"MaximumEbsAttachments",[S]:dae}],[0,{[w]:"AttachmentLimitType",[S]:Gre}],[1,{[w]:"MaximumEbsCards",[S]:hae}],[()=>Yfe,{[w]:"EbsCardSet",[S]:Doe}]]],Xle=[3,L,cJ,0,[um,Za,Nf,Zi,dk,kre,xl,pm],[[4,{[w]:"AttachTime",[S]:Cm}],[2,{[w]:"DeleteOnTermination",[S]:Cl}],[0,{[w]:"Status",[S]:ec}],[0,{[w]:"VolumeId",[S]:Om}],[0,{[w]:"AssociatedResource",[S]:fP}],[0,{[w]:"VolumeOwnerId",[S]:fle}],[()=>Mm,{[w]:"Operator",[S]:Im}],[1,{[w]:"EbsCardIndex",[S]:ZS}]]],Wle=[3,L,$k,0,[Sk,xk,_k,y3,w3,b3],[[1,{[w]:"BaselineBandwidthInMbps",[S]:bP}],[1,{[w]:"BaselineThroughputInMBps",[S]:wP}],[1,{[w]:"BaselineIops",[S]:SP}],[1,{[w]:"MaximumBandwidthInMbps",[S]:VP}],[1,{[w]:"MaximumThroughputInMBps",[S]:YP}],[1,{[w]:"MaximumIops",[S]:GP}]]],Jle=[3,L,Lk,0,[Gte],[[1,{[w]:"MaximumEfaInterfaces",[S]:pae}]]],eue=[3,L,KW,0,[JW,ZW,QW,XW],[[0,{[w]:"ElasticGpuId",[S]:Loe}],[0,{[w]:"ElasticGpuAssociationId",[S]:koe}],[0,{[w]:"ElasticGpuAssociationState",[S]:Poe}],[0,{[w]:"ElasticGpuAssociationTime",[S]:zoe}]]],tue=[3,L,kk,0,[FS],[0],1],nue=[3,L,Pk,0,[FS,Vi],[0,1],1],sue=[3,L,tJ,0,[iJ,nJ,rJ,oJ],[[0,{[w]:"ElasticInferenceAcceleratorArn",[S]:Boe}],[0,{[w]:"ElasticInferenceAcceleratorAssociationId",[S]:$oe}],[0,{[w]:"ElasticInferenceAcceleratorAssociationState",[S]:Uoe}],[4,{[w]:"ElasticInferenceAcceleratorAssociationTime",[S]:Hoe}]]],rue=[3,L,hJ,0,[Fk,Gk],[2,()=>oue]],oue=[3,L,mJ,0,[Vk],[2]],iue=[3,L,yS,0,[vS],[[2,{[w]:"Enabled",[S]:MP}]]],aue=[3,L,uJ,0,[vS],[2]],cue=[3,L,Gi,0,[Hr,$re],[0,[()=>jde,{[S]:sP}]]],lue=[3,L,SJ,0,[Hr,kf,Vi,Qa],[[0,{[w]:"Name",[S]:ko}],[0,{[w]:"Manufacturer",[S]:Bf}],[1,{[w]:"Count",[S]:Wa}],[()=>uue,{[w]:"MemoryInfo",[S]:Tl}]]],uue=[3,L,wJ,0,[El],[[1,{[w]:"SizeInMiB",[S]:Il}]]],fue=[3,L,Qk,0,[CJ,rre],[[()=>tde,{[w]:"Fpgas",[S]:lie}],[1,{[w]:"TotalFpgaMemoryInMiB",[S]:qce}]]],due=[3,L,TJ,0,[Hr,kf,Vi,Tte,DJ,Fre,Qa],[[0,{[w]:"Name",[S]:ko}],[0,{[w]:"Manufacturer",[S]:Bf}],[1,{[w]:"Count",[S]:Wa}],[1,{[w]:"LogicalGpuCount",[S]:iae}],[1,{[w]:"GpuPartitionSize",[S]:fie}],[()=>Gde,{[w]:"WorkloadSet",[S]:gle}],[()=>hue,{[w]:"MemoryInfo",[S]:Tl}]]],hue=[3,L,IJ,0,[El],[[1,{[w]:"SizeInMiB",[S]:Il}]]],pue=[3,L,Wk,0,[PJ,ore],[[()=>nde,{[w]:"Gpus",[S]:hie}],[1,{[w]:"TotalGpuMemoryInMiB",[S]:Vce}]]],mue=[3,L,MJ,0,[Jk,e3],[[0,{[w]:"GroupId",[S]:kP}],[0,{[w]:"GroupName",[S]:PP}]]],gue=[3,L,wS,0,[Ok],[[2,{[w]:"Configured",[S]:voe}]]],yue=[3,L,zJ,0,[Ok],[2]],bue=[3,L,CS,0,[gk,UJ],[[0,{[w]:"Arn",[S]:pP}],[0,{[w]:"Id",[S]:xie}]]],vue=[3,L,oee,0,[gk,Hr],[[0,{[w]:"Arn",[S]:pP}],[0,{[w]:"Name",[S]:ko}]]],Sue=[3,L,fte,0,[L3,eP,uS,gS,bS,xS,kee,Hr,H3,F3,K3,jS,Xa,aP,wk,W3,kW,rte,Ise,AW,Ite,GJ,Tse,Mse,Xk,Mf,mee,Rl,Sm,$X,Kne,P3,yk,lte,OS,zS,U3],[[0,{[w]:"PlatformDetails",[S]:eN}],[0,{[w]:"UsageOperation",[S]:mN}],[()=>qfe,{[w]:"BlockDeviceMapping",[S]:vP}],[0,{[w]:"Description",[S]:KS}],[2,{[w]:"EnaSupport",[S]:YS}],[0,{[w]:"Hypervisor",[S]:WS}],[0,{[w]:"ImageOwnerAlias",[S]:Nie}],[0,{[w]:"Name",[S]:ko}],[0,{[w]:"RootDeviceName",[S]:rN}],[0,{[w]:"RootDeviceType",[S]:oN}],[0,{[w]:"SriovNetSupport",[S]:lN}],[()=>RN,{[w]:"StateReason",[S]:uN}],[()=>tc,{[w]:"TagSet",[S]:Ol}],[0,{[w]:"VirtualizationType",[S]:bN}],[0,{[w]:"BootMode",[S]:_P}],[0,{[w]:"TpmSupport",[S]:dN}],[0,{[w]:"DeprecationTime",[S]:Aoe}],[0,{[w]:"ImdsSupport",[S]:Yie}],[0,{[w]:"SourceInstanceId",[S]:wce}],[0,{[w]:"DeregistrationProtection",[S]:Coe}],[0,{[w]:"LastLaunchedTime",[S]:aae}],[2,{[w]:"ImageAllowed",[S]:Iie}],[0,{[w]:"SourceImageId",[S]:Ece}],[0,{[w]:"SourceImageRegion",[S]:Rce}],[2,{[w]:"FreeTierEligible",[S]:DP}],[0,{[w]:"ImageId",[S]:BP}],[0,{[w]:"ImageLocation",[S]:Die}],[0,{[w]:"ImageState",[S]:Zie}],[0,{[w]:"ImageOwnerId",[S]:zie}],[0,{[w]:"CreationDate",[S]:ioe}],[2,{[w]:"IsPublic",[S]:qie}],[()=>AN,{[w]:"ProductCodes",[S]:JP}],[0,{[w]:"Architecture",[S]:mP}],[0,{[w]:"ImageType",[S]:eae}],[0,{[w]:"KernelId",[S]:HP}],[0,{[w]:"RamdiskId",[S]:iN}],[0,{[w]:"Platform",[S]:nN}]]],_ue=[3,L,hee,0,[jr,Hne,xm,Fn],[[0,{[w]:"KeyName",[S]:Lf}],[21,{[w]:"PublicKeyMaterial",[S]:Jae}],[()=>Dm,{[S]:zf}],[2,{[w]:"DryRun",[S]:as}]],2],wue=[3,L,pee,0,[IS,jr,Ya,Xa],[[0,{[w]:"KeyFingerprint",[S]:e_}],[0,{[w]:"KeyName",[S]:Lf}],[0,{[w]:"KeyPairId",[S]:Am}],[()=>tc,{[w]:"TagSet",[S]:Ol}]]],xue=[3,L,a3,0,[mk,are],[[()=>ode,{[w]:"Accelerators",[S]:hP}],[1,{[w]:"TotalInferenceMemoryInMiB",[S]:Gce}]]],Eue=[3,L,QJ,0,[Vi,Hr,kf,Qa],[[1,{[w]:"Count",[S]:Wa}],[0,{[w]:"Name",[S]:ko}],[0,{[w]:"Manufacturer",[S]:Bf}],[()=>Rue,{[w]:"MemoryInfo",[S]:Tl}]]],Rue=[3,L,WJ,0,[El],[[1,{[w]:"SizeInMiB",[S]:Il}]]],Cue=[3,L,dte,0,[yk,uS,mS,Bk,bS,xS,CS,yee,WW,aJ,E3,vm,H3,F3,q3,BS,Ose,K3,jS,Xa,aP,fS,zX,dS,hS,wS,Bte,S3,yS,wk,L3,eP,Rre,N3,RS,W3,_3,HX,T3,xl,G3,Mo,Mf,Rl,PS,z3,Xse,jr,vX,P3,mm,Lte,NS,OS,zS,U3,kS,wm,oP,Do,$ne],[[0,{[w]:"Architecture",[S]:mP}],[()=>ide,{[w]:"BlockDeviceMapping",[S]:vP}],[0,{[w]:"ClientToken",[S]:EP}],[2,{[w]:"EbsOptimized",[S]:AP}],[2,{[w]:"EnaSupport",[S]:YS}],[0,{[w]:"Hypervisor",[S]:WS}],[()=>bue,{[w]:"IamInstanceProfile",[S]:LP}],[0,{[w]:"InstanceLifecycle",[S]:kie}],[()=>Qfe,{[w]:"ElasticGpuAssociationSet",[S]:Noe}],[()=>Wfe,{[w]:"ElasticInferenceAcceleratorAssociationSet",[S]:joe}],[()=>ude,{[w]:"NetworkInterfaceSet",[S]:Iae}],[0,{[w]:"OutpostArn",[S]:n_}],[0,{[w]:"RootDeviceName",[S]:rN}],[0,{[w]:"RootDeviceType",[S]:oN}],[()=>a_,{[w]:"GroupSet",[S]:XS}],[2,{[w]:"SourceDestCheck",[S]:o_}],[0,{[w]:"SpotInstanceRequestId",[S]:Cce}],[0,{[w]:"SriovNetSupport",[S]:lN}],[()=>RN,{[w]:"StateReason",[S]:uN}],[()=>tc,{[w]:"TagSet",[S]:Ol}],[0,{[w]:"VirtualizationType",[S]:bN}],[()=>Tle,{[w]:"CpuOptions",[S]:foe}],[0,{[w]:"CapacityBlockId",[S]:roe}],[0,{[w]:"CapacityReservationId",[S]:xP}],[()=>wle,{[w]:"CapacityReservationSpecification",[S]:moe}],[()=>gue,{[w]:"HibernationOptions",[S]:gie}],[()=>xde,{[w]:"LicenseSet",[S]:cae}],[()=>Lue,{[w]:"MetadataOptions",[S]:bae}],[()=>iue,{[w]:"EnclaveOptions",[S]:Zoe}],[0,{[w]:"BootMode",[S]:_P}],[0,{[w]:"PlatformDetails",[S]:eN}],[0,{[w]:"UsageOperation",[S]:mN}],[4,{[w]:"UsageOperationUpdateTime",[S]:nle}],[()=>_fe,{[w]:"PrivateDnsNameOptions",[S]:Gae}],[0,{[w]:"Ipv6Address",[S]:zP}],[0,{[w]:"TpmSupport",[S]:dN}],[()=>kue,{[w]:"MaintenanceOptions",[S]:vae}],[0,{[w]:"CurrentInstanceBootMode",[S]:loe}],[()=>jue,{[w]:"NetworkPerformanceOptions",[S]:kae}],[()=>Mm,{[w]:"Operator",[S]:Im}],[()=>hde,{[w]:"SecondaryInterfaceSet",[S]:Tce}],[0,{[w]:"InstanceId",[S]:JS}],[0,{[w]:"ImageId",[S]:BP}],[()=>Qb,{[w]:"InstanceState",[S]:Qie}],[0,{[w]:"PrivateDnsName",[S]:r_}],[0,{[w]:"DnsName",[S]:Roe}],[0,{[w]:"Reason",[S]:mce}],[0,{[w]:"KeyName",[S]:Lf}],[1,{[w]:"AmiLaunchIndex",[S]:Vre}],[()=>AN,{[w]:"ProductCodes",[S]:JP}],[0,{[w]:"InstanceType",[S]:$P}],[4,{[w]:"LaunchTime",[S]:lae}],[()=>xN,{[w]:"Placement",[S]:sce}],[0,{[w]:"KernelId",[S]:HP}],[0,{[w]:"RamdiskId",[S]:iN}],[0,{[w]:"Platform",[S]:nN}],[()=>ffe,{[w]:"Monitoring",[S]:Eae}],[0,{[w]:"SubnetId",[S]:i_}],[0,{[w]:"VpcId",[S]:gN}],[0,{[w]:"PrivateIpAddress",[S]:Ja}],[0,{[w]:"IpAddress",[S]:Oie}]]],Tue=[3,L,jJ,0,[Fk,Gk],[[2,{[w]:"EnaSrdEnabled",[S]:Woe}],[()=>Aue,{[w]:"EnaSrdUdpSpecification",[S]:nie}]]],Aue=[3,L,HJ,0,[Vk],[[2,{[w]:"EnaSrdUdpEnabled",[S]:tie}]]],Iue=[3,L,KJ,0,[Mk,Zk],[[0,{[w]:"DeviceName",[S]:TP}],[()=>Xle,{[w]:"Ebs",[S]:OP}]]],Oue=[3,L,iee,0,[AS],[[0,{[w]:"Ipv4Prefix",[S]:Hie}]]],Mue=[3,L,eee,0,[RS,Uee],[[0,{[w]:"Ipv6Address",[S]:zP}],[2,{[w]:"IsPrimaryIpv6",[S]:$ie}]]],Due=[3,L,aee,0,[TS],[[0,{[w]:"Ipv6Prefix",[S]:Fie}]]],kue=[3,L,vee,0,[hk,lse],[[0,{[w]:"AutoRecovery",[S]:Yre}],[0,{[w]:"RebootMigration",[S]:fce}]]],Pue=[3,L,See,0,[hk],[0]],Nue=[3,L,_ee,0,[Jte,Gse],[0,()=>Ofe]],zue=[3,L,wee,0,[r3,s3,t3,n3,c3],[0,1,0,0,0]],Lue=[3,L,xee,0,[Rl,r3,s3,t3,n3,c3],[[0,{[w]:"State",[S]:fN}],[0,{[w]:"HttpTokens",[S]:_ie}],[1,{[w]:"HttpPutResponseHopLimit",[S]:bie}],[0,{[w]:"HttpEndpoint",[S]:pie}],[0,{[w]:"HttpProtocolIpv6",[S]:yie}],[0,{[w]:"InstanceMetadataTags",[S]:Pie}]]],Bue=[3,L,Ree,0,[bk,vk,gS,_S,ES,g3,x3,Sm,PS,Do,_m,BS,Nf,wm,oP,gm,u3,l3,JX,xl],[[()=>_N,{[w]:"Association",[S]:gP}],[()=>$ue,{[w]:"Attachment",[S]:yP}],[0,{[w]:"Description",[S]:KS}],[()=>a_,{[w]:"GroupSet",[S]:XS}],[()=>c_,{[w]:"Ipv6AddressesSet",[S]:NP}],[0,{[w]:"MacAddress",[S]:qP}],[0,{[w]:"NetworkInterfaceId",[S]:QP}],[0,{[w]:"OwnerId",[S]:s_}],[0,{[w]:"PrivateDnsName",[S]:r_}],[0,{[w]:"PrivateIpAddress",[S]:Ja}],[()=>dde,{[w]:"PrivateIpAddressesSet",[S]:tN}],[2,{[w]:"SourceDestCheck",[S]:o_}],[0,{[w]:"Status",[S]:ec}],[0,{[w]:"SubnetId",[S]:i_}],[0,{[w]:"VpcId",[S]:gN}],[0,{[w]:"InterfaceType",[S]:UP}],[()=>ade,{[w]:"Ipv4PrefixSet",[S]:Uie}],[()=>cde,{[w]:"Ipv6PrefixSet",[S]:jie}],[()=>Cle,{[w]:"ConnectionTrackingConfiguration",[S]:boe}],[()=>Mm,{[w]:"Operator",[S]:Im}]]],_N=[3,L,Cee,0,[jX,GX,Pee,z3,Nne],[[0,{[w]:"CarrierIp",[S]:coe}],[0,{[w]:"CustomerOwnedIp",[S]:doe}],[0,{[w]:"IpOwnerId",[S]:Lie}],[0,{[w]:"PublicDnsName",[S]:Kae}],[0,{[w]:"PublicIp",[S]:Yae}]]],$ue=[3,L,Tee,0,[um,fk,Za,hm,Nf,Pf,qk,Uk],[[4,{[w]:"AttachTime",[S]:Cm}],[0,{[w]:"AttachmentId",[S]:uP}],[2,{[w]:"DeleteOnTermination",[S]:Cl}],[1,{[w]:"DeviceIndex",[S]:GS}],[0,{[w]:"Status",[S]:ec}],[1,{[w]:"NetworkCardIndex",[S]:t_}],[()=>Tue,{[w]:"EnaSrdSpecification",[S]:Joe}],[1,{[w]:"EnaQueueCount",[S]:Yoe}]]],Uue=[3,L,Iee,0,[_X,Za,gS,hm,_S,i3,ES,x3,Do,_m,Kse,wm,yX,gm,Pf,u3,Lee,l3,zee,Une,qk,eW,Uk],[[2,{[w]:"AssociatePublicIpAddress",[S]:Kre}],[2,{[w]:"DeleteOnTermination",[S]:Cl}],[0,{[w]:"Description",[S]:KS}],[1,{[w]:"DeviceIndex",[S]:GS}],[()=>IN,{[S]:$S}],[1,{[w]:"Ipv6AddressCount",[S]:Eie}],[()=>c_,{[w]:"Ipv6Addresses",[S]:NP}],[0,{[w]:"NetworkInterfaceId",[S]:QP}],[0,{[w]:"PrivateIpAddress",[S]:Ja}],[()=>Mde,{[w]:"PrivateIpAddresses",[S]:tN}],[1,{[w]:"SecondaryPrivateIpAddressCount",[S]:Mce}],[0,{[w]:"SubnetId",[S]:i_}],2,0,1,[()=>bde,{[S]:AS}],1,[()=>vde,{[S]:TS}],1,2,()=>rue,()=>Rle,1]],jue=[3,L,Mee,0,[Ek],[[0,{[w]:"BandwidthWeighting",[S]:noe}]]],Hue=[3,L,Dee,0,[Ek],[0]],Fue=[3,L,Bee,0,[bk,j3,PS,Do],[[()=>_N,{[w]:"Association",[S]:gP}],[2,{[w]:"Primary",[S]:sN}],[0,{[w]:"PrivateDnsName",[S]:r_}],[0,{[w]:"PrivateIpAddress",[S]:Ja}]]],que=[3,L,nte,0,[vk,g3,Ase,Sm,_m,BS,Nf,Y3,qse,gm],[[()=>Vue,{[w]:"Attachment",[S]:yP}],[0,{[w]:"MacAddress",[S]:qP}],[0,{[w]:"SecondaryInterfaceId",[S]:xce}],[0,{[w]:"OwnerId",[S]:s_}],[()=>pde,{[w]:"PrivateIpAddressSet",[S]:Qae}],[2,{[w]:"SourceDestCheck",[S]:o_}],[0,{[w]:"Status",[S]:ec}],[0,{[w]:"SecondarySubnetId",[S]:kce}],[0,{[w]:"SecondaryNetworkId",[S]:Ice}],[0,{[w]:"InterfaceType",[S]:UP}]]],Vue=[3,L,Zee,0,[um,fk,Za,hm,Nf,Pf],[[4,{[w]:"AttachTime",[S]:Cm}],[0,{[w]:"AttachmentId",[S]:uP}],[2,{[w]:"DeleteOnTermination",[S]:Cl}],[1,{[w]:"DeviceIndex",[S]:GS}],[0,{[w]:"Status",[S]:ec}],[1,{[w]:"NetworkCardIndex",[S]:t_}]]],Gue=[3,L,Qee,0,[Do],[[0,{[w]:"PrivateIpAddress",[S]:Ja}]]],Kue=[3,L,Jee,0,[Do],[0],1],Zue=[3,L,tte,0,[Za,hm,_m,zne,Y3,gm,Pf],[2,1,[()=>mde,{[S]:Do}],1,0,0,1]],Qb=[3,L,ote,0,[Ik,Hr],[[1,{[w]:"Code",[S]:CP}],[0,{[w]:"Name",[S]:ko}]]],Yue=[3,L,Gee,0,[Mo,WX,Vne],[[0,{[w]:"InstanceId",[S]:JS}],[()=>Qb,{[w]:"CurrentState",[S]:yoe}],[()=>Qb,{[w]:"PreviousState",[S]:nce}]]],Que=[3,L,f3,0,[yre,jW,I3,Kk],[[1,{[w]:"TotalSizeInGB",[S]:Wce}],[()=>Zfe,{[w]:"Disks",[S]:Moe}],[0,{[w]:"NvmeSupport",[S]:WP}],[0,{[w]:"EncryptionSupport",[S]:IP}]]],Xue=[3,L,cte,0,[mm,UX,Xk,Jse,Zse,nre,DX,xS,$3,rP,Qa,ste,f3,zk,R3,Wk,Qk,B3,a3,BJ,kX,lW,wX,vse,pne,mne,O3,m3,C3,qne,cse],[[0,{[w]:"InstanceType",[S]:$P}],[2,{[w]:"CurrentGeneration",[S]:aoe}],[2,{[w]:"FreeTierEligible",[S]:DP}],[()=>Ude,{[w]:"SupportedUsageClasses",[S]:Lce}],[()=>zde,{[w]:"SupportedRootDeviceTypes",[S]:Dce}],[()=>Hde,{[w]:"SupportedVirtualizationTypes",[S]:$ce}],[2,{[w]:"BareMetal",[S]:eoe}],[0,{[w]:"Hypervisor",[S]:WS}],[()=>xfe,{[w]:"ProcessorInfo",[S]:Xae}],[()=>$fe,{[w]:"VCpuInfo",[S]:ile}],[()=>cfe,{[w]:"MemoryInfo",[S]:Tl}],[2,{[w]:"InstanceStorageSupported",[S]:Gie}],[()=>Que,{[w]:"InstanceStorageInfo",[S]:Vie}],[()=>Qle,{[w]:"EbsInfo",[S]:qoe}],[()=>hfe,{[w]:"NetworkInfo",[S]:Mae}],[()=>pue,{[w]:"GpuInfo",[S]:uie}],[()=>fue,{[w]:"FpgaInfo",[S]:iie}],[()=>vfe,{[w]:"PlacementGroupInfo",[S]:Zae}],[()=>xue,{[w]:"InferenceAcceleratorInfo",[S]:Rie}],[2,{[w]:"HibernationSupported",[S]:Sie}],[2,{[w]:"BurstablePerformanceSupported",[S]:toe}],[2,{[w]:"DedicatedHostsSupported",[S]:xoe}],[2,{[w]:"AutoRecoverySupported",[S]:Zre}],[()=>Gfe,{[w]:"SupportedBootModes",[S]:yce}],[0,{[w]:"NitroEnclavesSupport",[S]:Aae}],[0,{[w]:"NitroTpmSupport",[S]:Nae}],[()=>bfe,{[w]:"NitroTpmInfo",[S]:Pae}],[()=>ofe,{[w]:"MediaAcceleratorInfo",[S]:fae}],[()=>yfe,{[w]:"NeuronInfo",[S]:Dae}],[0,{[w]:"PhcSupport",[S]:tce}],[0,{[w]:"RebootMigrationSupport",[S]:uce}]]],Wue=[3,L,qee,0,[AS],[0]],Jue=[3,L,Vee,0,[TS],[0]],efe=[3,L,Ete,0,[Ya,Xa,jr,IS,gte],[[0,{[w]:"KeyPairId",[S]:Am}],[()=>tc,{[w]:"TagSet",[S]:Ol}],[0,{[w]:"KeyName",[S]:Lf}],[0,{[w]:"KeyFingerprint",[S]:e_}],[()=>Sle,{[w]:"KeyMaterial",[S]:nae}]]],tfe=[3,L,wte,0,[Ya,h3,Xa,jne,Ak,jr,IS],[[0,{[w]:"KeyPairId",[S]:Am}],[0,{[w]:"KeyType",[S]:rae}],[()=>tc,{[w]:"TagSet",[S]:Ol}],[0,{[w]:"PublicKey",[S]:Wae}],[4,{[w]:"CreateTime",[S]:RP}],[0,{[w]:"KeyName",[S]:Lf}],[0,{[w]:"KeyFingerprint",[S]:e_}]]],nfe=[3,L,zte,0,[Pte,Nte,cP],[0,0,0]],sfe=[3,L,Cte,0,[p3],[[0,{[w]:"LicenseConfigurationArn",[S]:oae}]]],rfe=[3,L,Rte,0,[p3],[0]],ofe=[3,L,m3,0,[mk,pre],[[()=>Rde,{[w]:"Accelerators",[S]:hP}],[1,{[w]:"TotalMediaMemoryInMiB",[S]:Yce}]]],ife=[3,L,jte,0,[Vi,Hr,kf,Qa],[[1,{[w]:"Count",[S]:Wa}],[0,{[w]:"Name",[S]:ko}],[0,{[w]:"Manufacturer",[S]:Bf}],[()=>afe,{[w]:"MemoryInfo",[S]:Tl}]]],afe=[3,L,Fte,0,[El],[[1,{[w]:"SizeInMiB",[S]:Il}]]],cfe=[3,L,Qa,0,[El],[[1,{[w]:"SizeInMiB",[S]:Il}]]],lfe=[3,L,ene,0,[Zi,Fn,HS,Rm,ym,Em,DS],[0,2,1,0,1,1,2],1],ufe=[3,L,tne,0,[iP],[[()=>jfe,{[w]:"VolumeModification",[S]:lle}]]],ffe=[3,L,kS,0,[Rl],[[0,{[w]:"State",[S]:fN}]]],dfe=[3,L,ane,0,[Pf,A3,v3,bX,TX,Tne,cW,Kte,Zte],[[1,{[w]:"NetworkCardIndex",[S]:t_}],[0,{[w]:"NetworkPerformance",[S]:XP}],[1,{[w]:"MaximumNetworkInterfaces",[S]:KP}],[1,{[w]:"AdditionalFlexibleNetworkInterfaces",[S]:qre}],[1,{[w]:"BaselineBandwidthInGbps",[S]:Jre}],[1,{[w]:"PeakBandwidthInGbps",[S]:qae}],[1,{[w]:"DefaultEnaQueueCountPerInterface",[S]:woe}],[1,{[w]:"MaximumEnaQueueCount",[S]:mae}],[1,{[w]:"MaximumEnaQueueCountPerInterface",[S]:gae}]]],hfe=[3,L,R3,0,[A3,v3,Yte,TW,one,FJ,qJ,ite,bS,gJ,Lk,lJ,pJ,NX,xJ,Vse,Xte,VJ],[[0,{[w]:"NetworkPerformance",[S]:XP}],[1,{[w]:"MaximumNetworkInterfaces",[S]:KP}],[1,{[w]:"MaximumNetworkCards",[S]:yae}],[1,{[w]:"DefaultNetworkCardIndex",[S]:Eoe}],[()=>Cde,{[w]:"NetworkCards",[S]:Rae}],[1,{[w]:"Ipv4AddressesPerInterface",[S]:Cie}],[1,{[w]:"Ipv6AddressesPerInterface",[S]:Tie}],[2,{[w]:"Ipv6Supported",[S]:Xie}],[0,{[w]:"EnaSupport",[S]:YS}],[2,{[w]:"EfaSupported",[S]:sie}],[()=>Jle,{[w]:"EfaInfo",[S]:Voe}],[2,{[w]:"EncryptionInTransitSupported",[S]:Foe}],[2,{[w]:"EnaSrdSupported",[S]:eie}],[()=>Ffe,{[w]:"BandwidthWeightings",[S]:soe}],[0,{[w]:"FlexibleEnaQueuesSupport",[S]:oie}],[2,{[w]:"SecondaryNetworkSupported",[S]:Oce}],[1,{[w]:"MaximumSecondaryNetworkInterfaces",[S]:Sae}],[1,{[w]:"Ipv4AddressesPerSecondaryInterface",[S]:Aie}]]],pfe=[3,L,lne,0,[Vi,cP],[[1,{[w]:"Count",[S]:Wa}],[1,{[w]:"Version",[S]:mle}]]],mfe=[3,L,une,0,[Vi,Hr,FX,Qa],[[1,{[w]:"Count",[S]:Wa}],[0,{[w]:"Name",[S]:ko}],[()=>pfe,{[w]:"CoreInfo",[S]:uoe}],[()=>gfe,{[w]:"MemoryInfo",[S]:Tl}]]],gfe=[3,L,dne,0,[El],[[1,{[w]:"SizeInMiB",[S]:Il}]]],yfe=[3,L,C3,0,[hne,mre],[[()=>Tde,{[w]:"NeuronDevices",[S]:Tae}],[1,{[w]:"TotalNeuronDeviceMemoryInMiB",[S]:Qce}]]],bfe=[3,L,O3,0,[sre],[[()=>Ade,{[w]:"SupportedVersions",[S]:Uce}]]],wN=[3,L,Sne,0,[k3],[0]],Mm=[3,L,_ne,0,[sne,k3],[[2,{[w]:"Managed",[S]:wae}],[0,{[w]:"Principal",[S]:Fae}]]],xN=[3,L,NS,0,[dm,RX,e3,Fne,NJ,wre,_se,LJ,Jk,fm],[[0,{[w]:"AvailabilityZoneId",[S]:dP}],[0,{[w]:"Affinity",[S]:Wre}],[0,{[w]:"GroupName",[S]:PP}],[1,{[w]:"PartitionNumber",[S]:ece}],[0,{[w]:"HostId",[S]:mie}],[0,{[w]:"Tenancy",[S]:Hce}],[0,{[w]:"SpreadDomain",[S]:vce}],[0,{[w]:"HostResourceGroupArn",[S]:vie}],[0,{[w]:"GroupId",[S]:kP}],[0,{[w]:"AvailabilityZone",[S]:VS}]]],vfe=[3,L,B3,0,[Yse],[[()=>Ode,{[w]:"SupportedStrategies",[S]:Pce}]]],Sfe=[3,L,Dne,0,[o3,Hk,jk],[0,2,2]],_fe=[3,L,kne,0,[o3,Hk,jk],[[0,{[w]:"HostnameType",[S]:wie}],[2,{[w]:"EnableResourceNameDnsARecord",[S]:Xoe}],[2,{[w]:"EnableResourceNameDnsAAAARecord",[S]:Qoe}]]],wfe=[3,L,Lne,0,[j3,Do],[[2,{[w]:"Primary",[S]:sN}],[0,{[w]:"PrivateIpAddress",[S]:Ja}]]],xfe=[3,L,$3,0,[bse,Sse,wse,kf],[[()=>Hfe,{[w]:"SupportedArchitectures",[S]:gce}],[1,{[w]:"SustainedClockSpeedInGhz",[S]:bce}],[()=>Bde,{[w]:"SupportedFeatures",[S]:Sce}],[0,{[w]:"Manufacturer",[S]:Bf}]]],Efe=[3,L,Mne,0,[Ane,One],[[0,{[w]:"ProductCode",[S]:Vae}],[0,{[w]:"Type",[S]:pN}]]],Rfe=[3,L,Jne,0,[Df,Fn],[[()=>$f,{[S]:Mo}],[2,{[w]:"DryRun",[S]:as}]],1],Cfe=[3,L,pse,0,[yne,kJ,LS,vJ],[[0,{[w]:"OptInStatus",[S]:Lae}],[()=>Dde,{[w]:"GeographySet",[S]:die}],[0,{[w]:"RegionName",[S]:dce}],[0,{[w]:"RegionEndpoint",[S]:ice}]]],Tfe=[3,L,Qne,0,[Hr],[[0,{[w]:"Name",[S]:ko}]]],EN=[3,L,gse,0,[nse,Sm,rse,_S,hte],[[0,{[w]:"ReservationId",[S]:ace}],[0,{[w]:"OwnerId",[S]:s_}],[0,{[w]:"RequesterId",[S]:lce}],[()=>a_,{[w]:"GroupSet",[S]:XS}],[()=>lde,{[w]:"InstancesSet",[S]:Tm}]]],Afe=[3,L,Wne,0,[vS],[[2,{[w]:"Enabled",[S]:MP}]],1],Ife=[3,L,ese,0,[$te,Ute,uS,Mf,mm,i3,ES,OS,jr,kS,NS,zS,Ese,q3,wm,Ere,kk,Nk,xm,kte,Eee,XX,fS,hS,wS,Ote,S3,yS,N3,_3,oW,dJ,T3,xl,G3,Fn,iW,cee,Do,mS,uk,E3,CS,Bk],[1,1,[()=>Vfe,{[S]:lS}],0,0,1,[()=>c_,{[S]:RS}],0,0,[()=>Afe,0],[()=>xN,0],0,[()=>IN,{[S]:$S}],[()=>Lde,{[S]:V3}],0,[()=>vle,0],[()=>Xfe,0],[()=>Jfe,{[S]:Pk}],[()=>Dm,{[S]:zf}],()=>nfe,()=>Nue,()=>Mle,()=>Ale,()=>_le,()=>yue,[()=>Ede,{[S]:Dte}],()=>zue,()=>aue,()=>Sfe,()=>Pue,2,2,()=>Hue,()=>wN,[()=>gde,{[S]:Lse}],[2,{[w]:"DryRun",[S]:as}],[2,{[w]:"DisableApiTermination",[S]:Soe}],[0,{[w]:"InstanceInitiatedShutdownBehavior",[S]:Mie}],[0,{[w]:"PrivateIpAddress",[S]:Ja}],[0,{[w]:"ClientToken",[Jie]:1,[S]:EP}],[0,{[w]:"AdditionalInfo",[S]:lP}],[()=>fde,{[w]:"NetworkInterface",[S]:Oae}],[()=>vue,{[w]:"IamInstanceProfile",[S]:LP}],[2,{[w]:"EbsOptimized",[S]:AP}]],2],Ofe=[3,L,Hse,0,[Qte,zse,OX,Bre,nee],[0,0,1,4,0]],Mfe=[3,L,Dse,0,[Df,uk,Fn],[[()=>$f,{[S]:Mo}],[0,{[w]:"AdditionalInfo",[S]:lP}],[2,{[w]:"DryRun",[S]:as}]],1],Dfe=[3,L,kse,0,[Bse],[[()=>l_,{[w]:"InstancesSet",[S]:Tm}]]],RN=[3,L,jS,0,[Ik,rne],[[0,{[w]:"Code",[S]:CP}],[0,{[w]:"Message",[S]:xae}]]],kfe=[3,L,Pse,0,[Df,$J,Z3,Fn,Yk],[[()=>$f,{[S]:Mo}],2,2,[2,{[w]:"DryRun",[S]:as}],[2,{[w]:"Force",[S]:cie}]],1],Pfe=[3,L,Nse,0,[Use],[[()=>l_,{[w]:"InstancesSet",[S]:Tm}]]],Nfe=[3,L,J3,0,[pte,sP],[[0,{[w]:"Key",[S]:tae}],[0,{[w]:"Value",[S]:ole}]]],zfe=[3,L,zf,0,[dse,Xa],[[0,{[w]:"ResourceType",[S]:pce}],[()=>tc,{[S]:J3}]]],Lfe=[3,L,cre,0,[Df,Yk,Z3,Fn],[[()=>$f,{[S]:Mo}],2,2,[2,{[w]:"DryRun",[S]:as}]],1],Bfe=[3,L,lre,0,[fre],[[()=>l_,{[w]:"InstancesSet",[S]:Tm}]]],$fe=[3,L,rP,0,[PW,aW,DW,Are,Lre],[[1,{[w]:"DefaultVCpus",[S]:Ioe}],[1,{[w]:"DefaultCores",[S]:_oe}],[1,{[w]:"DefaultThreadsPerCore",[S]:Toe}],[()=>Kfe,{[w]:"ValidCores",[S]:ale}],[()=>$de,{[w]:"ValidThreadsPerCore",[S]:ple}]]],CN=[3,L,jre,0,[dm,vm,tre,ym,Xa,Rm,RJ,DS,Em,Wse,xl,qS,Zi,HS,US,fm,Rl,Ak,CX,SS,MS],[[0,{[w]:"AvailabilityZoneId",[S]:dP}],[0,{[w]:"OutpostArn",[S]:n_}],[0,{[w]:"SourceVolumeId",[S]:Bce}],[1,{[w]:"Iops",[S]:jP}],[()=>tc,{[w]:"TagSet",[S]:Ol}],[0,{[w]:"VolumeType",[S]:yN}],[2,{[w]:"FastRestored",[S]:aie}],[2,{[w]:"MultiAttachEnabled",[S]:uae}],[1,{[w]:"Throughput",[S]:hN}],[0,{[w]:"SseType",[S]:zce}],[()=>Mm,{[w]:"Operator",[S]:Im}],[1,{[w]:"VolumeInitializationRate",[S]:cle}],[0,{[w]:"VolumeId",[S]:Om}],[1,{[w]:"Size",[S]:jce}],[0,{[w]:"SnapshotId",[S]:cN}],[0,{[w]:"AvailabilityZone",[S]:VS}],[0,{[w]:"Status",[S]:ec}],[4,{[w]:"CreateTime",[S]:RP}],[()=>Fde,{[w]:"AttachmentSet",[S]:Xre}],[2,{[w]:"Encrypted",[S]:QS}],[0,{[w]:"KmsKeyId",[S]:FP}]]],Ufe=[3,L,Tre,0,[Za,dk,Nee,pm,Zi,Mo,UW,Rl,um],[[2,{[w]:"DeleteOnTermination",[S]:Cl}],[0,{[w]:"AssociatedResource",[S]:fP}],[0,{[w]:"InstanceOwningService",[S]:Bie}],[1,{[w]:"EbsCardIndex",[S]:ZS}],[0,{[w]:"VolumeId",[S]:Om}],[0,{[w]:"InstanceId",[S]:JS}],[0,{[w]:"Device",[S]:Ooe}],[0,{[w]:"Status",[S]:ec}],[4,{[w]:"AttachTime",[S]:Cm}]]],jfe=[3,L,iP,0,[Zi,Wte,Fse,vre,ure,_re,Sre,hre,xne,bne,Rne,Ene,vne,Gne,Qse,yJ],[[0,{[w]:"VolumeId",[S]:Om}],[0,{[w]:"ModificationState",[S]:_ae}],[0,{[w]:"StatusMessage",[S]:Ace}],[1,{[w]:"TargetSize",[S]:Jce}],[1,{[w]:"TargetIops",[S]:Kce}],[0,{[w]:"TargetVolumeType",[S]:tle}],[1,{[w]:"TargetThroughput",[S]:ele}],[2,{[w]:"TargetMultiAttachEnabled",[S]:Zce}],[1,{[w]:"OriginalSize",[S]:Uae}],[1,{[w]:"OriginalIops",[S]:Bae}],[0,{[w]:"OriginalVolumeType",[S]:Hae}],[1,{[w]:"OriginalThroughput",[S]:jae}],[2,{[w]:"OriginalMultiAttachEnabled",[S]:$ae}],[1,{[w]:"Progress",[S]:rce}],[4,{[w]:"StartTime",[S]:Nce}],[4,{[w]:"EndTime",[S]:rie}]]],TN="unit",Hfe=[1,L,EX,0,[0,{[S]:$e}]],Ffe=[1,L,PX,0,[0,{[S]:$e}]],qfe=[1,L,AX,0,[()=>SN,{[S]:$e}]],Vfe=[1,L,IX,0,[()=>SN,{[S]:lS}]],Gfe=[1,L,MX,0,[0,{[S]:$e}]],Kfe=[1,L,LX,0,[1,{[S]:$e}]],Zfe=[1,L,uW,0,[()=>Kle,{[S]:$e}]],Yfe=[1,L,qW,0,[()=>Yle,{[S]:$e}]],Qfe=[1,L,YW,0,[()=>eue,{[S]:$e}]],Xfe=[1,L,eJ,0,[()=>tue,{[S]:$e}]],Wfe=[1,L,sJ,0,[()=>sue,{[S]:$e}]],Jfe=[1,L,Nk,0,[()=>nue,{[S]:$e}]],ede=[1,L,FW,0,[0,{[S]:Dk}]],Ml=[1,L,EJ,0,[()=>cue,{[S]:Gi}]],tde=[1,L,_J,0,[()=>lue,{[S]:$e}]],nde=[1,L,AJ,0,[()=>due,{[S]:$e}]],a_=[1,L,OJ,0,[()=>mue,{[S]:$e}]],sde=[1,L,lee,0,[0,{[S]:Mf}]],rde=[1,L,gee,0,[()=>Sue,{[S]:$e}]],ode=[1,L,XJ,0,[()=>Eue,0]],ide=[1,L,ZJ,0,[()=>Iue,{[S]:$e}]],$f=[1,L,uee,0,[0,{[S]:Mo}]],ade=[1,L,see,0,[()=>Oue,{[S]:$e}]],c_=[1,L,tee,0,[()=>Mue,{[S]:$e}]],cde=[1,L,ree,0,[()=>Due,{[S]:$e}]],lde=[1,L,bee,0,[()=>Cue,{[S]:$e}]],ude=[1,L,Aee,0,[()=>Bue,{[S]:$e}]],fde=[1,L,Oee,0,[()=>Uue,{[S]:$e}]],dde=[1,L,$ee,0,[()=>Fue,{[S]:$e}]],hde=[1,L,Yee,0,[()=>que,{[S]:$e}]],pde=[1,L,Xee,0,[()=>Gue,{[S]:$e}]],mde=[1,L,Wee,0,[()=>Kue,{[S]:$e}]],gde=[1,L,ete,0,[()=>Zue,{[S]:$e}]],l_=[1,L,Kee,0,[()=>Yue,{[S]:$e}]],yde=[1,L,ate,0,[()=>Xue,{[S]:$e}]],bde=[1,L,Hee,0,[()=>Wue,{[S]:$e}]],vde=[1,L,Fee,0,[()=>Jue,{[S]:$e}]],Sde=[1,L,yte,0,[0,{[S]:jr}]],_de=[1,L,Ste,0,[0,{[S]:Ya}]],wde=[1,L,xte,0,[()=>tfe,{[S]:$e}]],xde=[1,L,Ate,0,[()=>sfe,{[S]:$e}]],Ede=[1,L,Mte,0,[()=>rfe,{[S]:$e}]],Rde=[1,L,Hte,0,[()=>ife,{[S]:$e}]],Cde=[1,L,ine,0,[()=>dfe,{[S]:$e}]],Tde=[1,L,fne,0,[()=>mfe,{[S]:$e}]],Ade=[1,L,gne,0,[0,{[S]:$e}]],Ide=[1,L,wne,0,[0,{[S]:D3}]],Ode=[1,L,Pne,0,[0,{[S]:$e}]],Mde=[1,L,Bne,0,[()=>wfe,{[S]:$e}]],AN=[1,L,Ine,0,[()=>Efe,{[S]:$e}]],Dde=[1,L,Xne,0,[()=>Tfe,{[S]:$e}]],kde=[1,L,ise,0,[()=>Cfe,{[S]:$e}]],Pde=[1,L,use,0,[0,{[S]:LS}]],Nde=[1,L,ase,0,[()=>EN,{[S]:$e}]],zde=[1,L,Yne,0,[0,{[S]:$e}]],IN=[1,L,xse,0,[0,{[S]:$S}]],Lde=[1,L,Rse,0,[0,{[S]:V3}]],Bde=[1,L,yse,0,[0,{[S]:$e}]],tc=[1,L,dre,0,[()=>Nfe,{[S]:$e}]],Dm=[1,L,bre,0,[()=>zfe,{[S]:$e}]],$de=[1,L,gre,0,[1,{[S]:$e}]],Ude=[1,L,xre,0,[0,{[S]:$e}]],jde=[1,L,Pre,0,[0,{[S]:$e}]],Hde=[1,L,zre,0,[0,{[S]:$e}]],Fde=[1,L,Cre,0,[()=>Ufe,{[S]:$e}]],qde=[1,L,Ire,0,[0,{[S]:Zi}]],Vde=[1,L,Mre,0,[()=>CN,{[S]:$e}]],Gde=[1,L,Hre,0,[0,{[S]:$e}]],iSe=[9,L,qX,0,()=>Ile,()=>efe],aSe=[9,L,rW,0,()=>Ole,()=>CN],cSe=[9,L,_W,0,()=>Dle,()=>kle],lSe=[9,L,BW,0,()=>Ple,()=>TN],Kde=[9,L,bW,0,()=>Nle,()=>zle],Zde=[9,L,vW,0,()=>Lle,()=>Ble],Yde=[9,L,yW,0,()=>$le,()=>Ule],Qde=[9,L,CW,0,()=>jle,()=>Hle],Xde=[9,L,MW,0,()=>Fle,()=>qle],Wde=[9,L,$W,0,()=>Vle,()=>Gle],uSe=[9,L,dee,0,()=>_ue,()=>wue],fSe=[9,L,nne,0,()=>lfe,()=>ufe],dSe=[9,L,sse,0,()=>Rfe,()=>TN],hSe=[9,L,ose,0,()=>Ife,()=>EN],pSe=[9,L,$se,0,()=>Mfe,()=>Dfe],mSe=[9,L,jse,0,()=>kfe,()=>Pfe],gSe=[9,L,ire,0,()=>Lfe,()=>Bfe];const Jde=e=>({apiVersion:"2016-11-15",base64Decoder:e?.base64Decoder??Ha,base64Encoder:e?.base64Encoder??zi,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??gX,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??BQ,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new tS}],logger:e?.logger??new nS,protocol:e?.protocol??BY,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ec2",errorTypeRegistries:ble,xmlNamespace:"http://ec2.amazonaws.com/doc/2016-11-15",version:"2016-11-15",serviceTarget:"AmazonEC2"},serviceId:e?.serviceId??"EC2",urlParser:e?.urlParser??bf,utf8Decoder:e?.utf8Decoder??Co,utf8Encoder:e?.utf8Encoder??Ka}),ehe=e=>{const t=rk(e),n=()=>t().then(AD),r=Jde(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??CD,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??nk({serviceId:r.serviceId,clientVersion:HQ.version}),maxAttempts:e?.maxAttempts??vf,region:e?.region??sk("Region is missing"),requestHandler:rm.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||qD),sha256:e?.sha256??tk,streamCollector:e?.streamCollector??Gv,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(ND)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(zD))}},ON=e=>({setRegion(t){e.region=t},region(){return e.region}}),MN=e=>({region:e.region()}),the=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(i){const c=t.findIndex(l=>l.schemeId===i.schemeId);c===-1?t.push(i):t.splice(c,1,i)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(i){n=i},httpAuthSchemeProvider(){return n},setCredentials(i){r=i},credentials(){return r}}},nhe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),she=(e,t)=>{const n=Object.assign(ON(e),ID(e),zM(e),the(e));return t.forEach(r=>r.configure(n)),Object.assign(e,MN(n),OD(n),LM(n),nhe(n))};class rhe extends TD{config;constructor(...[t]){const n=ehe(t||{});super(n),this.initConfig=n;const r=UQ(n),i=rD(r),c=ZD(i),l=BD(c),f=l,d=FD(f),h=$Q(d),y=she(h,t?.extensions||[]);this.config=y,this.middlewareStack.use(YM(this.config)),this.middlewareStack.use(PD(this.config)),this.middlewareStack.use(YD(this.config)),this.middlewareStack.use($D(this.config)),this.middlewareStack.use(BM(this.config)),this.middlewareStack.use($M(this.config)),this.middlewareStack.use(UM(this.config)),this.middlewareStack.use(jM(this.config,{httpAuthSchemeParametersProvider:zQ,identityProviderConfigProvider:async g=>new nD({"aws.auth#sigv4":g.credentials})})),this.middlewareStack.use(FM(this.config))}destroy(){super.destroy()}}class DN extends Ur.classBuilder().ep(Sl).m(function(t,n,r,i){return[Oo(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeImages",{}).n("EC2Client","DescribeImagesCommand").sc(Kde).build(){}class kN extends Ur.classBuilder().ep(Sl).m(function(t,n,r,i){return[Oo(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeInstances",{}).n("EC2Client","DescribeInstancesCommand").sc(Zde).build(){}class ohe extends Ur.classBuilder().ep(Sl).m(function(t,n,r,i){return[Oo(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeInstanceTypes",{}).n("EC2Client","DescribeInstanceTypesCommand").sc(Yde).build(){}class PN extends Ur.classBuilder().ep(Sl).m(function(t,n,r,i){return[Oo(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeKeyPairs",{}).n("EC2Client","DescribeKeyPairsCommand").sc(Qde).build(){}class ihe extends Ur.classBuilder().ep(Sl).m(function(t,n,r,i){return[Oo(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeRegions",{}).n("EC2Client","DescribeRegionsCommand").sc(Xde).build(){}class NN extends Ur.classBuilder().ep(Sl).m(function(t,n,r,i){return[Oo(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeVolumes",{}).n("EC2Client","DescribeVolumesCommand").sc(Wde).build(){}function ahe(e){return t=>async n=>{const{request:r}=n;if(e.expectContinueHeader!==!1&&On.isInstance(r)&&r.body&&e.runtime==="node"&&e.requestHandler?.constructor?.name!=="FetchHttpHandler"){let i=!0;if(typeof e.expectContinueHeader=="number")try{i=(Number(r.headers?.["content-length"])??e.bodyLengthChecker?.(r.body)??1/0)>=e.expectContinueHeader}catch{}else i=!!e.expectContinueHeader;i&&(r.headers.Expect="100-continue")}return t({...n,request:r})}}const che={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},lhe=e=>({applyToStack:t=>{t.add(ahe(e),che)}}),zN={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},uhe=zN.WHEN_SUPPORTED,ySe={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},fhe=zN.WHEN_SUPPORTED;var Xb;(function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.CRC64NVME="CRC64NVME",e.SHA1="SHA1",e.SHA256="SHA256"})(Xb||(Xb={}));var dA;(function(e){e.HEADER="header",e.TRAILER="trailer"})(dA||(dA={}));const bSe=Xb.CRC32;var vSe=(function(){function e(){this.crc32=new Cp}return e.prototype.update=function(t){Rp(t)||this.crc32.update(Fa(t))},e.prototype.digest=function(){return WD(this,void 0,void 0,function(){return JD(this,function(t){return[2,qQ(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new Cp},e})(),Cp=(function(){function e(){this.checksum=4294967295}return e.prototype.update=function(t){var n,r;try{for(var i=YQ(t),c=i.next();!c.done;c=i.next()){var l=c.value;this.checksum=this.checksum>>>8^hhe[(this.checksum^l)&255]}}catch(f){n={error:f}}finally{try{c&&!c.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e})(),dhe=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],hhe=VQ(dhe);const phe=e=>{const{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:Bs(t??uhe),responseChecksumValidation:Bs(n??fhe),requestStreamBufferSize:Number(r??0)})},mhe=e=>(t,n)=>async r=>{const i=await e.region(),c=e.region;let l=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),l=()=>Object.defineProperty(e,"region",{writable:!0,value:c}));try{const f=await t(r);if(n.__s3RegionRedirect){l();const d=await e.region();if(i!==d)throw new Error("Region was not restored following S3 region redirect.")}return f}catch(f){throw l(),f}},ghe={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function yhe(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){const c=i?.$metadata?.httpStatusCode,l=n.commandName==="HeadBucketCommand",f=i?.$response?.headers?.["x-amz-bucket-region"];if(f&&(c===301||c===400&&(i?.name==="IllegalLocationConstraintException"||l))){try{const d=f;n.logger?.debug(`Redirecting from ${await e.region()} to ${d}`),n.__s3RegionRedirect=d}catch(d){throw new Error("Region redirect failed: "+d)}return t(r)}}throw i}}}const bhe={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},vhe=e=>({applyToStack:t=>{t.add(yhe(e),bhe),t.addRelativeTo(mhe(e),ghe)}});class u_{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(t={}){this.data=t}get(t){const n=this.data[t];if(n)return n}set(t,n){return this.data[t]=n,n}delete(t){delete this.data[t]}async purgeExpired(){const t=Date.now();if(!(this.lastPurgeTime+u_.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(const n in this.data){const r=this.data[n];if(!r.isRefreshing){const i=await r.identity;i.expiration&&i.expiration.getTime()(l.expiration?.getTime()??0){i.set(r,new q0(Promise.resolve(h)))})),l)):i.set(r,new q0(this.getIdentity(r))).identity}async getIdentity(t){await this.cache.purgeExpired().catch(i=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: -`+i)});const n=await this.createSessionFn(t);if(!n.Credentials?.AccessKeyId||!n.Credentials?.SecretAccessKey)throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:n.Credentials.AccessKeyId,secretAccessKey:n.Credentials.SecretAccessKey,sessionToken:n.Credentials.SessionToken,expiration:n.Credentials.Expiration?new Date(n.Credentials.Expiration):void 0}}}const She="Directory",_he="S3Express",whe="sigv4-s3express",Wb="X-Amz-S3session-Token",Jb=Wb.toLowerCase();class xhe extends Gb{async signWithCredentials(t,n,r){const i=hA(n);t.headers[Jb]=n.sessionToken;const c=this;return pA(c,i),c.signRequest(t,r??{})}async presignWithCredentials(t,n,r){const i=hA(n);return delete t.headers[Jb],t.headers[Wb]=n.sessionToken,t.query=t.query??{},t.query[Wb]=n.sessionToken,pA(this,i),this.presign(t,r)}}function hA(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function pA(e,t){const n=setTimeout(()=>{throw new Error("SignatureV4S3Express credential override was created but not called.")},10),r=e.credentialProvider,i=()=>(clearTimeout(n),e.credentialProvider=r,Promise.resolve(t));e.credentialProvider=i}const Ehe=e=>(t,n)=>async r=>{if(n.endpointV2){const i=n.endpointV2,c=i.properties?.authSchemes?.[0]?.name===whe;if((i.properties?.backend===_he||i.properties?.bucketType===She)&&(Sr(n,"S3_EXPRESS_BUCKET","J"),n.isS3ExpressBucket=!0),c){const f=r.input.Bucket;if(f){const d=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:f});n.s3ExpressIdentity=d,On.isInstance(r.request)&&d.sessionToken&&(r.request.headers[Jb]=d.sessionToken)}}}return t(r)},Rhe={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},Che=e=>({applyToStack:t=>{t.add(Ehe(e),Rhe)}}),The=async(e,t,n,r)=>{const i=await r.signWithCredentials(n,e,{});if(i.headers["X-Amz-Security-Token"]||i.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return i},Ahe=e=>t=>{throw t},Ihe=(e,t)=>{},Ohe=e=>(t,n)=>async r=>{if(!On.isInstance(r.request))return t(r);const c=Io(n).selectedHttpAuthScheme;if(!c)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:l={}},identity:f,signer:d}=c;let h;n.s3ExpressIdentity?h=await The(n.s3ExpressIdentity,l,r.request,await e.signer()):h=await d.sign(r.request,f,l);const y=await t({...r,request:h}).catch((d.errorHandler||Ahe)(l));return(d.successHandler||Ihe)(y.response,l),y},Mhe=e=>({applyToStack:t=>{t.addRelativeTo(Ohe(e),HM)}}),Dhe=(e,{session:t})=>{const[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:c,disableMultiregionAccessPoints:l,followRegionRedirects:f,s3ExpressIdentityProvider:d,bucketEndpoint:h,expectContinueHeader:y}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:c??!1,disableMultiregionAccessPoints:l??!1,followRegionRedirects:f??!1,s3ExpressIdentityProvider:d??new f_(async g=>n().send(new r({Bucket:g}))),bucketEndpoint:h??!1,expectContinueHeader:y??2097152})},khe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},Phe=3e3,Nhe=e=>(t,n)=>async r=>{const i=await t(r),{response:c}=i;if(!ja.isInstance(c))return i;const{statusCode:l,body:f}=c;if(l<200||l>=300||!(typeof f?.stream=="function"||typeof f?.pipe=="function"||typeof f?.tee=="function"))return i;let h=f,y=f;f&&typeof f=="object"&&!(f instanceof Uint8Array)&&([h,y]=await CK(f)),c.body=y;const g=await zhe(h,{streamCollector:async v=>vK(v,Phe)});typeof h?.destroy=="function"&&h.destroy();const b=e.utf8Encoder(g.subarray(g.length-16));if(g.length===0&&khe[n.commandName]){const v=new Error("S3 aborted request");throw v.name="InternalError",v}return b&&b.endsWith("")&&(c.statusCode=400),i},zhe=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Lhe={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},d_=e=>({applyToStack:t=>{t.addRelativeTo(Nhe(e),Lhe)}}),Bhe=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;function $he(e){return(t,n)=>async r=>{if(e.bucketEndpoint){const i=n.endpointV2;if(i){const c=r.input.Bucket;if(typeof c=="string")try{const l=new URL(c);n.endpointV2={...i,url:l}}catch(l){const f=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${c} could not be parsed as URL.`;throw n.logger?.constructor?.name==="NoOpLogger"?console.warn(f):n.logger?.warn?.(f),l}}}return t(r)}}const Uhe={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function jhe({bucketEndpoint:e}){return t=>async n=>{const{input:{Bucket:r}}=n;if(!e&&typeof r=="string"&&!Bhe(r)&&r.indexOf("/")>=0){const i=new Error(`Bucket name shouldn't contain '/', received '${r}'`);throw i.name="InvalidBucketName",i}return t({...n})}}const Hhe={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},Fhe=e=>({applyToStack:t=>{t.add(jhe(e),Hhe),t.addRelativeTo($he(e),Uhe)}}),qhe=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)});class LN{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return"none"}constructor(t){this.sigv4Signer=new xhe(t),this.signerOptions=t}async sign(t,n={}){return n.signingRegion==="*"?this.getSigv4aSigner().sign(t,n):this.sigv4Signer.sign(t,n)}async signWithCredentials(t,n,r={}){if(r.signingRegion==="*")throw this.getSigv4aSigner(),new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);return this.sigv4Signer.signWithCredentials(t,n,r)}async presign(t,n={}){if(n.signingRegion==="*")throw this.getSigv4aSigner(),new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);return this.sigv4Signer.presign(t,n)}async presignWithCredentials(t,n,r={}){if(r.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(t,n,r)}getSigv4aSigner(){if(!this.sigv4aSigner)throw this.signerOptions.runtime==="node"?new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt"):new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");return this.sigv4aSigner}}const h_="required",M="type",ae="rules",$="conditions",X="fn",W="argv",ze="ref",Ze="assign",Re="url",Ce="properties",_o="backend",In="authSchemes",hn="disableDoubleEncoding",pn="signingName",$n="signingRegion",Te="headers",p_="signingRegionSet",Vhe=6,Ghe=!1,Ar=!0,zs="isSet",rn="booleanEquals",Oe="error",Tp="aws.partition",ht="stringEquals",Gt="getAttr",Zt="name",Nt="substring",mA="bucketSuffix",m_="parseURL",he="endpoint",ce="tree",Ap="aws.isVirtualHostableS3Bucket",Ip="{url#scheme}://{Bucket}.{url#authority}{url#path}",zr="not",gA="accessPointSuffix",qh="{url#scheme}://{url#authority}{url#path}",BN="hardwareType",$N="regionPrefix",yA="bucketAliasSuffix",ev="outpostId",nc="isValidHostLabel",g_="sigv4a",_f="s3-outposts",ml="s3",UN="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",jN="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",bA="https://{Bucket}.s3.{partitionResult#dnsSuffix}",HN="aws.parseArn",FN="bucketArn",qN="arnType",Op="",y_="s3-object-lambda",VN="accesspoint",b_="accessPointName",vA="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",SA="mrapPartition",_A="outpostType",wA="arnPrefix",GN="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",xA="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",EA="https://s3.{partitionResult#dnsSuffix}",Vc={[h_]:!1,[M]:"string"},Gc={[h_]:!0,default:!1,[M]:"boolean"},qu={[h_]:!1,[M]:"boolean"},nr={[X]:rn,[W]:[{[ze]:"Accelerate"},!0]},Lt={[X]:rn,[W]:[{[ze]:"UseFIPS"},!0]},Mt={[X]:rn,[W]:[{[ze]:"UseDualStack"},!0]},nn={[X]:zs,[W]:[{[ze]:"Endpoint"}]},KN={[X]:Tp,[W]:[{[ze]:"Region"}],[Ze]:"partitionResult"},RA={[X]:ht,[W]:[{[X]:Gt,[W]:[{[ze]:"partitionResult"},Zt]},"aws-cn"]},tf={[X]:zs,[W]:[{[ze]:"Bucket"}]},ft={[ze]:"Bucket"},CA={[$]:[nr],[Oe]:"S3Express does not support S3 Accelerate.",[M]:Oe},TA={[$]:[nn,{[X]:m_,[W]:[{[ze]:"Endpoint"}],[Ze]:"url"}],[ae]:[{[$]:[{[X]:zs,[W]:[{[ze]:"DisableS3ExpressSessionAuth"}]},{[X]:rn,[W]:[{[ze]:"DisableS3ExpressSessionAuth"},!0]}],[ae]:[{[$]:[{[X]:rn,[W]:[{[X]:Gt,[W]:[{[ze]:"url"},"isIp"]},!0]}],[ae]:[{[$]:[{[X]:"uriEncode",[W]:[ft],[Ze]:"uri_encoded_bucket"}],[ae]:[{[he]:{[Re]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[Ce]:{[_o]:"S3Express",[In]:[{[hn]:!0,[Zt]:"sigv4",[pn]:"s3express",[$n]:"{Region}"}]},[Te]:{}},[M]:he}],[M]:ce}],[M]:ce},{[$]:[{[X]:Ap,[W]:[ft,!1]}],[ae]:[{[he]:{[Re]:Ip,[Ce]:{[_o]:"S3Express",[In]:[{[hn]:!0,[Zt]:"sigv4",[pn]:"s3express",[$n]:"{Region}"}]},[Te]:{}},[M]:he}],[M]:ce},{[Oe]:"S3Express bucket name is not a valid virtual hostable name.",[M]:Oe}],[M]:ce},{[$]:[{[X]:rn,[W]:[{[X]:Gt,[W]:[{[ze]:"url"},"isIp"]},!0]}],[ae]:[{[$]:[{[X]:"uriEncode",[W]:[ft],[Ze]:"uri_encoded_bucket"}],[ae]:[{[he]:{[Re]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[Ce]:{[_o]:"S3Express",[In]:[{[hn]:!0,[Zt]:"sigv4-s3express",[pn]:"s3express",[$n]:"{Region}"}]},[Te]:{}},[M]:he}],[M]:ce}],[M]:ce},{[$]:[{[X]:Ap,[W]:[ft,!1]}],[ae]:[{[he]:{[Re]:Ip,[Ce]:{[_o]:"S3Express",[In]:[{[hn]:!0,[Zt]:"sigv4-s3express",[pn]:"s3express",[$n]:"{Region}"}]},[Te]:{}},[M]:he}],[M]:ce},{[Oe]:"S3Express bucket name is not a valid virtual hostable name.",[M]:Oe}],[M]:ce},rs={[X]:m_,[W]:[{[ze]:"Endpoint"}],[Ze]:"url"},V0={[X]:rn,[W]:[{[X]:Gt,[W]:[{[ze]:"url"},"isIp"]},!0]},ZN={[ze]:"url"},YN={[X]:"uriEncode",[W]:[ft],[Ze]:"uri_encoded_bucket"},ks={[_o]:"S3Express",[In]:[{[hn]:!0,[Zt]:"sigv4",[pn]:"s3express",[$n]:"{Region}"}]},Fe={},QN={[X]:Ap,[W]:[ft,!1]},AA={[Oe]:"S3Express bucket name is not a valid virtual hostable name.",[M]:Oe},IA={[X]:zs,[W]:[{[ze]:"UseS3ExpressControlEndpoint"}]},OA={[X]:rn,[W]:[{[ze]:"UseS3ExpressControlEndpoint"},!0]},Ge={[X]:zr,[W]:[nn]},rt={[X]:rn,[W]:[{[ze]:"UseDualStack"},!1]},Je={[X]:rn,[W]:[{[ze]:"UseFIPS"},!1]},Oh={[Oe]:"Unrecognized S3Express bucket name format.",[M]:Oe},MA={[X]:zr,[W]:[tf]},DA={[ze]:BN},kA={[$]:[Ge],[Oe]:"Expected a endpoint to be specified but no endpoint was found",[M]:Oe},Mh={[In]:[{[hn]:!0,[Zt]:g_,[pn]:_f,[p_]:["*"]},{[hn]:!0,[Zt]:"sigv4",[pn]:_f,[$n]:"{Region}"}]},G0={[X]:rn,[W]:[{[ze]:"ForcePathStyle"},!1]},Khe={[ze]:"ForcePathStyle"},fn={[X]:rn,[W]:[{[ze]:"Accelerate"},!1]},_n={[X]:ht,[W]:[{[ze]:"Region"},"aws-global"]},Rn={[In]:[{[hn]:!0,[Zt]:"sigv4",[pn]:ml,[$n]:"us-east-1"}]},lt={[X]:zr,[W]:[_n]},Cn={[X]:rn,[W]:[{[ze]:"UseGlobalEndpoint"},!0]},PA={[Re]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:{[In]:[{[hn]:!0,[Zt]:"sigv4",[pn]:ml,[$n]:"{Region}"}]},[Te]:{}},gn={[In]:[{[hn]:!0,[Zt]:"sigv4",[pn]:ml,[$n]:"{Region}"}]},Tn={[X]:rn,[W]:[{[ze]:"UseGlobalEndpoint"},!1]},NA={[Re]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[Ce]:gn,[Te]:{}},zA={[Re]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[Ce]:gn,[Te]:{}},LA={[Re]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:gn,[Te]:{}},K0={[X]:rn,[W]:[{[X]:Gt,[W]:[ZN,"isIp"]},!1]},Z0={[Re]:UN,[Ce]:gn,[Te]:{}},tv={[Re]:Ip,[Ce]:gn,[Te]:{}},BA={[he]:tv,[M]:he},Y0={[Re]:jN,[Ce]:gn,[Te]:{}},$A={[Re]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[Ce]:gn,[Te]:{}},Dh={[Oe]:"Invalid region: region was not a valid DNS name.",[M]:Oe},Ss={[ze]:FN},XN={[ze]:qN},Q0={[X]:Gt,[W]:[Ss,"service"]},v_={[ze]:b_},UA={[$]:[Mt],[Oe]:"S3 Object Lambda does not support Dual-stack",[M]:Oe},jA={[$]:[nr],[Oe]:"S3 Object Lambda does not support S3 Accelerate",[M]:Oe},HA={[$]:[{[X]:zs,[W]:[{[ze]:"DisableAccessPoints"}]},{[X]:rn,[W]:[{[ze]:"DisableAccessPoints"},!0]}],[Oe]:"Access points are not supported for this operation",[M]:Oe},X0={[$]:[{[X]:zs,[W]:[{[ze]:"UseArnRegion"}]},{[X]:rn,[W]:[{[ze]:"UseArnRegion"},!1]},{[X]:zr,[W]:[{[X]:ht,[W]:[{[X]:Gt,[W]:[Ss,"region"]},"{Region}"]}]}],[Oe]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[M]:Oe},WN={[X]:Gt,[W]:[{[ze]:"bucketPartition"},Zt]},JN={[X]:Gt,[W]:[Ss,"accountId"]},W0={[In]:[{[hn]:!0,[Zt]:"sigv4",[pn]:y_,[$n]:"{bucketArn#region}"}]},FA={[Oe]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[M]:Oe},J0={[Oe]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[M]:Oe},eb={[Oe]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[M]:Oe},tb={[Oe]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[M]:Oe},qA={[Oe]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[M]:Oe},VA={[Oe]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[M]:Oe},Vu={[In]:[{[hn]:!0,[Zt]:"sigv4",[pn]:ml,[$n]:"{bucketArn#region}"}]},GA={[In]:[{[hn]:!0,[Zt]:g_,[pn]:_f,[p_]:["*"]},{[hn]:!0,[Zt]:"sigv4",[pn]:_f,[$n]:"{bucketArn#region}"}]},KA={[X]:HN,[W]:[ft]},ZA={[Re]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:gn,[Te]:{}},YA={[Re]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:gn,[Te]:{}},QA={[Re]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:gn,[Te]:{}},nb={[Re]:GN,[Ce]:gn,[Te]:{}},XA={[Re]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:gn,[Te]:{}},WA={[ze]:"UseObjectLambdaEndpoint"},sb={[In]:[{[hn]:!0,[Zt]:"sigv4",[pn]:y_,[$n]:"{Region}"}]},JA={[Re]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:gn,[Te]:{}},eI={[Re]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[Ce]:gn,[Te]:{}},tI={[Re]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:gn,[Te]:{}},rb={[Re]:qh,[Ce]:gn,[Te]:{}},nI={[Re]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[Ce]:gn,[Te]:{}},ob=[{[ze]:"Region"}],Zhe=[{[ze]:"Endpoint"}],Yhe=[ft],ib=[nr],Kc=[nn,rs],sI=[{[X]:zs,[W]:[{[ze]:"DisableS3ExpressSessionAuth"}]},{[X]:rn,[W]:[{[ze]:"DisableS3ExpressSessionAuth"},!0]}],Qhe=[YN],ab=[QN],tr=[KN],cb=[Lt,Mt],nf=[Lt,rt],sf=[Je,Mt],rf=[Je,rt],rI=[{[X]:Nt,[W]:[ft,6,14,!0],[Ze]:"s3expressAvailabilityZoneId"},{[X]:Nt,[W]:[ft,14,16,!0],[Ze]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],Ir=[{[$]:[Lt,Mt],[he]:{[Re]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:ks,[Te]:{}},[M]:he},{[$]:nf,[he]:{[Re]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ce]:ks,[Te]:{}},[M]:he},{[$]:sf,[he]:{[Re]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:ks,[Te]:{}},[M]:he},{[$]:rf,[he]:{[Re]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ce]:ks,[Te]:{}},[M]:he}],oI=[{[X]:Nt,[W]:[ft,6,15,!0],[Ze]:"s3expressAvailabilityZoneId"},{[X]:Nt,[W]:[ft,15,17,!0],[Ze]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],iI=[{[X]:Nt,[W]:[ft,6,19,!0],[Ze]:"s3expressAvailabilityZoneId"},{[X]:Nt,[W]:[ft,19,21,!0],[Ze]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],aI=[{[X]:Nt,[W]:[ft,6,20,!0],[Ze]:"s3expressAvailabilityZoneId"},{[X]:Nt,[W]:[ft,20,22,!0],[Ze]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],cI=[{[X]:Nt,[W]:[ft,6,26,!0],[Ze]:"s3expressAvailabilityZoneId"},{[X]:Nt,[W]:[ft,26,28,!0],[Ze]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],Or=[{[$]:[Lt,Mt],[he]:{[Re]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:{[_o]:"S3Express",[In]:[{[hn]:!0,[Zt]:"sigv4-s3express",[pn]:"s3express",[$n]:"{Region}"}]},[Te]:{}},[M]:he},{[$]:nf,[he]:{[Re]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ce]:{[_o]:"S3Express",[In]:[{[hn]:!0,[Zt]:"sigv4-s3express",[pn]:"s3express",[$n]:"{Region}"}]},[Te]:{}},[M]:he},{[$]:sf,[he]:{[Re]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:{[_o]:"S3Express",[In]:[{[hn]:!0,[Zt]:"sigv4-s3express",[pn]:"s3express",[$n]:"{Region}"}]},[Te]:{}},[M]:he},{[$]:rf,[he]:{[Re]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ce]:{[_o]:"S3Express",[In]:[{[hn]:!0,[Zt]:"sigv4-s3express",[pn]:"s3express",[$n]:"{Region}"}]},[Te]:{}},[M]:he}],lI=[ft,0,7,!0],uI=[{[X]:Nt,[W]:[ft,7,15,!0],[Ze]:"s3expressAvailabilityZoneId"},{[X]:Nt,[W]:[ft,15,17,!0],[Ze]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],fI=[{[X]:Nt,[W]:[ft,7,16,!0],[Ze]:"s3expressAvailabilityZoneId"},{[X]:Nt,[W]:[ft,16,18,!0],[Ze]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],dI=[{[X]:Nt,[W]:[ft,7,20,!0],[Ze]:"s3expressAvailabilityZoneId"},{[X]:Nt,[W]:[ft,20,22,!0],[Ze]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],hI=[{[X]:Nt,[W]:[ft,7,21,!0],[Ze]:"s3expressAvailabilityZoneId"},{[X]:Nt,[W]:[ft,21,23,!0],[Ze]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],pI=[{[X]:Nt,[W]:[ft,7,27,!0],[Ze]:"s3expressAvailabilityZoneId"},{[X]:Nt,[W]:[ft,27,29,!0],[Ze]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],Xhe=[tf],mI=[{[X]:nc,[W]:[{[ze]:ev},!1]}],gI=[{[X]:ht,[W]:[{[ze]:$N},"beta"]}],Whe=["*"],yI=[{[X]:nc,[W]:[{[ze]:"Region"},!1]}],Ei=[{[X]:ht,[W]:[{[ze]:"Region"},"us-east-1"]}],lb=[{[X]:ht,[W]:[XN,VN]}],bI=[{[X]:Gt,[W]:[Ss,"resourceId[1]"],[Ze]:b_},{[X]:zr,[W]:[{[X]:ht,[W]:[v_,Op]}]}],Jhe=[Ss,"resourceId[1]"],vI=[Mt],ub=[{[X]:zr,[W]:[{[X]:ht,[W]:[{[X]:Gt,[W]:[Ss,"region"]},Op]}]}],SI=[{[X]:zr,[W]:[{[X]:zs,[W]:[{[X]:Gt,[W]:[Ss,"resourceId[2]"]}]}]}],epe=[Ss,"resourceId[2]"],fb=[{[X]:Tp,[W]:[{[X]:Gt,[W]:[Ss,"region"]}],[Ze]:"bucketPartition"}],_I=[{[X]:ht,[W]:[WN,{[X]:Gt,[W]:[{[ze]:"partitionResult"},Zt]}]}],db=[{[X]:nc,[W]:[{[X]:Gt,[W]:[Ss,"region"]},!0]}],hb=[{[X]:nc,[W]:[JN,!1]}],wI=[{[X]:nc,[W]:[v_,!1]}],kh=[Lt],xI=[{[X]:nc,[W]:[{[ze]:"Region"},!0]}],tpe={parameters:{Bucket:Vc,Region:Vc,UseFIPS:Gc,UseDualStack:Gc,Endpoint:Vc,ForcePathStyle:Gc,Accelerate:Gc,UseGlobalEndpoint:Gc,UseObjectLambdaEndpoint:qu,Key:Vc,Prefix:Vc,CopySource:Vc,DisableAccessPoints:qu,DisableMultiRegionAccessPoints:Gc,UseArnRegion:qu,UseS3ExpressControlEndpoint:qu,DisableS3ExpressSessionAuth:qu},[ae]:[{[$]:[{[X]:zs,[W]:ob}],[ae]:[{[$]:[nr,Lt],error:"Accelerate cannot be used with FIPS",[M]:Oe},{[$]:[Mt,nn],error:"Cannot set dual-stack in combination with a custom endpoint.",[M]:Oe},{[$]:[nn,Lt],error:"A custom endpoint cannot be combined with FIPS",[M]:Oe},{[$]:[nn,nr],error:"A custom endpoint cannot be combined with S3 Accelerate",[M]:Oe},{[$]:[Lt,KN,RA],error:"Partition does not support FIPS",[M]:Oe},{[$]:[tf,{[X]:Nt,[W]:[ft,0,Vhe,Ar],[Ze]:mA},{[X]:ht,[W]:[{[ze]:mA},"--x-s3"]}],[ae]:[CA,TA,{[$]:[IA,OA],[ae]:[{[$]:tr,[ae]:[{[$]:[YN,Ge],[ae]:[{[$]:cb,endpoint:{[Re]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:ks,[Te]:Fe},[M]:he},{[$]:nf,endpoint:{[Re]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:ks,[Te]:Fe},[M]:he},{[$]:sf,endpoint:{[Re]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:ks,[Te]:Fe},[M]:he},{[$]:rf,endpoint:{[Re]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:ks,[Te]:Fe},[M]:he}],[M]:ce}],[M]:ce}],[M]:ce},{[$]:ab,[ae]:[{[$]:tr,[ae]:[{[$]:sI,[ae]:[{[$]:rI,[ae]:Ir,[M]:ce},{[$]:oI,[ae]:Ir,[M]:ce},{[$]:iI,[ae]:Ir,[M]:ce},{[$]:aI,[ae]:Ir,[M]:ce},{[$]:cI,[ae]:Ir,[M]:ce},Oh],[M]:ce},{[$]:rI,[ae]:Or,[M]:ce},{[$]:oI,[ae]:Or,[M]:ce},{[$]:iI,[ae]:Or,[M]:ce},{[$]:aI,[ae]:Or,[M]:ce},{[$]:cI,[ae]:Or,[M]:ce},Oh],[M]:ce}],[M]:ce},AA],[M]:ce},{[$]:[tf,{[X]:Nt,[W]:lI,[Ze]:gA},{[X]:ht,[W]:[{[ze]:gA},"--xa-s3"]}],[ae]:[CA,TA,{[$]:ab,[ae]:[{[$]:tr,[ae]:[{[$]:sI,[ae]:[{[$]:uI,[ae]:Ir,[M]:ce},{[$]:fI,[ae]:Ir,[M]:ce},{[$]:dI,[ae]:Ir,[M]:ce},{[$]:hI,[ae]:Ir,[M]:ce},{[$]:pI,[ae]:Ir,[M]:ce},Oh],[M]:ce},{[$]:uI,[ae]:Or,[M]:ce},{[$]:fI,[ae]:Or,[M]:ce},{[$]:dI,[ae]:Or,[M]:ce},{[$]:hI,[ae]:Or,[M]:ce},{[$]:pI,[ae]:Or,[M]:ce},Oh],[M]:ce}],[M]:ce},AA],[M]:ce},{[$]:[MA,IA,OA],[ae]:[{[$]:tr,[ae]:[{[$]:Kc,endpoint:{[Re]:qh,[Ce]:ks,[Te]:Fe},[M]:he},{[$]:cb,endpoint:{[Re]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:ks,[Te]:Fe},[M]:he},{[$]:nf,endpoint:{[Re]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}",[Ce]:ks,[Te]:Fe},[M]:he},{[$]:sf,endpoint:{[Re]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:ks,[Te]:Fe},[M]:he},{[$]:rf,endpoint:{[Re]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}",[Ce]:ks,[Te]:Fe},[M]:he}],[M]:ce}],[M]:ce},{[$]:[tf,{[X]:Nt,[W]:[ft,49,50,Ar],[Ze]:BN},{[X]:Nt,[W]:[ft,8,12,Ar],[Ze]:$N},{[X]:Nt,[W]:lI,[Ze]:yA},{[X]:Nt,[W]:[ft,32,49,Ar],[Ze]:ev},{[X]:Tp,[W]:ob,[Ze]:"regionPartition"},{[X]:ht,[W]:[{[ze]:yA},"--op-s3"]}],[ae]:[{[$]:mI,[ae]:[{[$]:ab,[ae]:[{[$]:[{[X]:ht,[W]:[DA,"e"]}],[ae]:[{[$]:gI,[ae]:[kA,{[$]:Kc,endpoint:{[Re]:"https://{Bucket}.ec2.{url#authority}",[Ce]:Mh,[Te]:Fe},[M]:he}],[M]:ce},{endpoint:{[Re]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Ce]:Mh,[Te]:Fe},[M]:he}],[M]:ce},{[$]:[{[X]:ht,[W]:[DA,"o"]}],[ae]:[{[$]:gI,[ae]:[kA,{[$]:Kc,endpoint:{[Re]:"https://{Bucket}.op-{outpostId}.{url#authority}",[Ce]:Mh,[Te]:Fe},[M]:he}],[M]:ce},{endpoint:{[Re]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Ce]:Mh,[Te]:Fe},[M]:he}],[M]:ce},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[M]:Oe}],[M]:ce},{error:"Invalid Outposts Bucket alias - it must be a valid bucket name.",[M]:Oe}],[M]:ce},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[M]:Oe}],[M]:ce},{[$]:Xhe,[ae]:[{[$]:[nn,{[X]:zr,[W]:[{[X]:zs,[W]:[{[X]:m_,[W]:Zhe}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[M]:Oe},{[$]:[G0,QN],[ae]:[{[$]:tr,[ae]:[{[$]:yI,[ae]:[{[$]:[nr,RA],error:"S3 Accelerate cannot be used in this region",[M]:Oe},{[$]:[Mt,Lt,fn,Ge,_n],endpoint:{[Re]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Rn,[Te]:Fe},[M]:he},{[$]:[Mt,Lt,fn,Ge,lt,Cn],[ae]:[{endpoint:PA,[M]:he}],[M]:ce},{[$]:[Mt,Lt,fn,Ge,lt,Tn],endpoint:PA,[M]:he},{[$]:[rt,Lt,fn,Ge,_n],endpoint:{[Re]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Rn,[Te]:Fe},[M]:he},{[$]:[rt,Lt,fn,Ge,lt,Cn],[ae]:[{endpoint:NA,[M]:he}],[M]:ce},{[$]:[rt,Lt,fn,Ge,lt,Tn],endpoint:NA,[M]:he},{[$]:[Mt,Je,nr,Ge,_n],endpoint:{[Re]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Rn,[Te]:Fe},[M]:he},{[$]:[Mt,Je,nr,Ge,lt,Cn],[ae]:[{endpoint:zA,[M]:he}],[M]:ce},{[$]:[Mt,Je,nr,Ge,lt,Tn],endpoint:zA,[M]:he},{[$]:[Mt,Je,fn,Ge,_n],endpoint:{[Re]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Rn,[Te]:Fe},[M]:he},{[$]:[Mt,Je,fn,Ge,lt,Cn],[ae]:[{endpoint:LA,[M]:he}],[M]:ce},{[$]:[Mt,Je,fn,Ge,lt,Tn],endpoint:LA,[M]:he},{[$]:[rt,Je,fn,nn,rs,V0,_n],endpoint:{[Re]:UN,[Ce]:Rn,[Te]:Fe},[M]:he},{[$]:[rt,Je,fn,nn,rs,K0,_n],endpoint:{[Re]:Ip,[Ce]:Rn,[Te]:Fe},[M]:he},{[$]:[rt,Je,fn,nn,rs,V0,lt,Cn],[ae]:[{[$]:Ei,endpoint:Z0,[M]:he},{endpoint:Z0,[M]:he}],[M]:ce},{[$]:[rt,Je,fn,nn,rs,K0,lt,Cn],[ae]:[{[$]:Ei,endpoint:tv,[M]:he},BA],[M]:ce},{[$]:[rt,Je,fn,nn,rs,V0,lt,Tn],endpoint:Z0,[M]:he},{[$]:[rt,Je,fn,nn,rs,K0,lt,Tn],endpoint:tv,[M]:he},{[$]:[rt,Je,nr,Ge,_n],endpoint:{[Re]:jN,[Ce]:Rn,[Te]:Fe},[M]:he},{[$]:[rt,Je,nr,Ge,lt,Cn],[ae]:[{[$]:Ei,endpoint:Y0,[M]:he},{endpoint:Y0,[M]:he}],[M]:ce},{[$]:[rt,Je,nr,Ge,lt,Tn],endpoint:Y0,[M]:he},{[$]:[rt,Je,fn,Ge,_n],endpoint:{[Re]:bA,[Ce]:Rn,[Te]:Fe},[M]:he},{[$]:[rt,Je,fn,Ge,lt,Cn],[ae]:[{[$]:Ei,endpoint:{[Re]:bA,[Ce]:gn,[Te]:Fe},[M]:he},{endpoint:$A,[M]:he}],[M]:ce},{[$]:[rt,Je,fn,Ge,lt,Tn],endpoint:$A,[M]:he}],[M]:ce},Dh],[M]:ce}],[M]:ce},{[$]:[nn,rs,{[X]:ht,[W]:[{[X]:Gt,[W]:[ZN,"scheme"]},"http"]},{[X]:Ap,[W]:[ft,Ar]},G0,Je,rt,fn],[ae]:[{[$]:tr,[ae]:[{[$]:yI,[ae]:[BA],[M]:ce},Dh],[M]:ce}],[M]:ce},{[$]:[G0,{[X]:HN,[W]:Yhe,[Ze]:FN}],[ae]:[{[$]:[{[X]:Gt,[W]:[Ss,"resourceId[0]"],[Ze]:qN},{[X]:zr,[W]:[{[X]:ht,[W]:[XN,Op]}]}],[ae]:[{[$]:[{[X]:ht,[W]:[Q0,y_]}],[ae]:[{[$]:lb,[ae]:[{[$]:bI,[ae]:[UA,jA,{[$]:ub,[ae]:[HA,{[$]:SI,[ae]:[X0,{[$]:fb,[ae]:[{[$]:tr,[ae]:[{[$]:_I,[ae]:[{[$]:db,[ae]:[{[$]:[{[X]:ht,[W]:[JN,Op]}],error:"Invalid ARN: Missing account id",[M]:Oe},{[$]:hb,[ae]:[{[$]:wI,[ae]:[{[$]:Kc,endpoint:{[Re]:vA,[Ce]:W0,[Te]:Fe},[M]:he},{[$]:kh,endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:W0,[Te]:Fe},[M]:he},{endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:W0,[Te]:Fe},[M]:he}],[M]:ce},FA],[M]:ce},J0],[M]:ce},eb],[M]:ce},tb],[M]:ce}],[M]:ce}],[M]:ce},qA],[M]:ce},{error:"Invalid ARN: bucket ARN is missing a region",[M]:Oe}],[M]:ce},VA],[M]:ce},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[M]:Oe}],[M]:ce},{[$]:lb,[ae]:[{[$]:bI,[ae]:[{[$]:ub,[ae]:[{[$]:lb,[ae]:[{[$]:ub,[ae]:[HA,{[$]:SI,[ae]:[X0,{[$]:fb,[ae]:[{[$]:tr,[ae]:[{[$]:[{[X]:ht,[W]:[WN,"{partitionResult#name}"]}],[ae]:[{[$]:db,[ae]:[{[$]:[{[X]:ht,[W]:[Q0,ml]}],[ae]:[{[$]:hb,[ae]:[{[$]:wI,[ae]:[{[$]:ib,error:"Access Points do not support S3 Accelerate",[M]:Oe},{[$]:cb,endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:Vu,[Te]:Fe},[M]:he},{[$]:nf,endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:Vu,[Te]:Fe},[M]:he},{[$]:sf,endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:Vu,[Te]:Fe},[M]:he},{[$]:[Je,rt,nn,rs],endpoint:{[Re]:vA,[Ce]:Vu,[Te]:Fe},[M]:he},{[$]:rf,endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:Vu,[Te]:Fe},[M]:he}],[M]:ce},FA],[M]:ce},J0],[M]:ce},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[M]:Oe}],[M]:ce},eb],[M]:ce},tb],[M]:ce}],[M]:ce}],[M]:ce},qA],[M]:ce}],[M]:ce}],[M]:ce},{[$]:[{[X]:nc,[W]:[v_,Ar]}],[ae]:[{[$]:vI,error:"S3 MRAP does not support dual-stack",[M]:Oe},{[$]:kh,error:"S3 MRAP does not support FIPS",[M]:Oe},{[$]:ib,error:"S3 MRAP does not support S3 Accelerate",[M]:Oe},{[$]:[{[X]:rn,[W]:[{[ze]:"DisableMultiRegionAccessPoints"},Ar]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[M]:Oe},{[$]:[{[X]:Tp,[W]:ob,[Ze]:SA}],[ae]:[{[$]:[{[X]:ht,[W]:[{[X]:Gt,[W]:[{[ze]:SA},Zt]},{[X]:Gt,[W]:[Ss,"partition"]}]}],[ae]:[{endpoint:{[Re]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[Ce]:{[In]:[{[hn]:Ar,name:g_,[pn]:ml,[p_]:Whe}]},[Te]:Fe},[M]:he}],[M]:ce},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[M]:Oe}],[M]:ce}],[M]:ce},{error:"Invalid Access Point Name",[M]:Oe}],[M]:ce},VA],[M]:ce},{[$]:[{[X]:ht,[W]:[Q0,_f]}],[ae]:[{[$]:vI,error:"S3 Outposts does not support Dual-stack",[M]:Oe},{[$]:kh,error:"S3 Outposts does not support FIPS",[M]:Oe},{[$]:ib,error:"S3 Outposts does not support S3 Accelerate",[M]:Oe},{[$]:[{[X]:zs,[W]:[{[X]:Gt,[W]:[Ss,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[M]:Oe},{[$]:[{[X]:Gt,[W]:Jhe,[Ze]:ev}],[ae]:[{[$]:mI,[ae]:[X0,{[$]:fb,[ae]:[{[$]:tr,[ae]:[{[$]:_I,[ae]:[{[$]:db,[ae]:[{[$]:hb,[ae]:[{[$]:[{[X]:Gt,[W]:epe,[Ze]:_A}],[ae]:[{[$]:[{[X]:Gt,[W]:[Ss,"resourceId[3]"],[Ze]:b_}],[ae]:[{[$]:[{[X]:ht,[W]:[{[ze]:_A},VN]}],[ae]:[{[$]:Kc,endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[Ce]:GA,[Te]:Fe},[M]:he},{endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:GA,[Te]:Fe},[M]:he}],[M]:ce},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[M]:Oe}],[M]:ce},{error:"Invalid ARN: expected an access point name",[M]:Oe}],[M]:ce},{error:"Invalid ARN: Expected a 4-component resource",[M]:Oe}],[M]:ce},J0],[M]:ce},eb],[M]:ce},tb],[M]:ce}],[M]:ce}],[M]:ce},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[M]:Oe}],[M]:ce},{error:"Invalid ARN: The Outpost Id was not set",[M]:Oe}],[M]:ce},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[M]:Oe}],[M]:ce},{error:"Invalid ARN: No ARN type specified",[M]:Oe}],[M]:ce},{[$]:[{[X]:Nt,[W]:[ft,0,4,Ghe],[Ze]:wA},{[X]:ht,[W]:[{[ze]:wA},"arn:"]},{[X]:zr,[W]:[{[X]:zs,[W]:[KA]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[M]:Oe},{[$]:[{[X]:rn,[W]:[Khe,Ar]},KA],error:"Path-style addressing cannot be used with ARN buckets",[M]:Oe},{[$]:Qhe,[ae]:[{[$]:tr,[ae]:[{[$]:[fn],[ae]:[{[$]:[Mt,Ge,Lt,_n],endpoint:{[Re]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:Rn,[Te]:Fe},[M]:he},{[$]:[Mt,Ge,Lt,lt,Cn],[ae]:[{endpoint:ZA,[M]:he}],[M]:ce},{[$]:[Mt,Ge,Lt,lt,Tn],endpoint:ZA,[M]:he},{[$]:[rt,Ge,Lt,_n],endpoint:{[Re]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:Rn,[Te]:Fe},[M]:he},{[$]:[rt,Ge,Lt,lt,Cn],[ae]:[{endpoint:YA,[M]:he}],[M]:ce},{[$]:[rt,Ge,Lt,lt,Tn],endpoint:YA,[M]:he},{[$]:[Mt,Ge,Je,_n],endpoint:{[Re]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:Rn,[Te]:Fe},[M]:he},{[$]:[Mt,Ge,Je,lt,Cn],[ae]:[{endpoint:QA,[M]:he}],[M]:ce},{[$]:[Mt,Ge,Je,lt,Tn],endpoint:QA,[M]:he},{[$]:[rt,nn,rs,Je,_n],endpoint:{[Re]:GN,[Ce]:Rn,[Te]:Fe},[M]:he},{[$]:[rt,nn,rs,Je,lt,Cn],[ae]:[{[$]:Ei,endpoint:nb,[M]:he},{endpoint:nb,[M]:he}],[M]:ce},{[$]:[rt,nn,rs,Je,lt,Tn],endpoint:nb,[M]:he},{[$]:[rt,Ge,Je,_n],endpoint:{[Re]:xA,[Ce]:Rn,[Te]:Fe},[M]:he},{[$]:[rt,Ge,Je,lt,Cn],[ae]:[{[$]:Ei,endpoint:{[Re]:xA,[Ce]:gn,[Te]:Fe},[M]:he},{endpoint:XA,[M]:he}],[M]:ce},{[$]:[rt,Ge,Je,lt,Tn],endpoint:XA,[M]:he}],[M]:ce},{error:"Path-style addressing cannot be used with S3 Accelerate",[M]:Oe}],[M]:ce}],[M]:ce}],[M]:ce},{[$]:[{[X]:zs,[W]:[WA]},{[X]:rn,[W]:[WA,Ar]}],[ae]:[{[$]:tr,[ae]:[{[$]:xI,[ae]:[UA,jA,{[$]:Kc,endpoint:{[Re]:qh,[Ce]:sb,[Te]:Fe},[M]:he},{[$]:kh,endpoint:{[Re]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[Ce]:sb,[Te]:Fe},[M]:he},{endpoint:{[Re]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[Ce]:sb,[Te]:Fe},[M]:he}],[M]:ce},Dh],[M]:ce}],[M]:ce},{[$]:[MA],[ae]:[{[$]:tr,[ae]:[{[$]:xI,[ae]:[{[$]:[Lt,Mt,Ge,_n],endpoint:{[Re]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Rn,[Te]:Fe},[M]:he},{[$]:[Lt,Mt,Ge,lt,Cn],[ae]:[{endpoint:JA,[M]:he}],[M]:ce},{[$]:[Lt,Mt,Ge,lt,Tn],endpoint:JA,[M]:he},{[$]:[Lt,rt,Ge,_n],endpoint:{[Re]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Rn,[Te]:Fe},[M]:he},{[$]:[Lt,rt,Ge,lt,Cn],[ae]:[{endpoint:eI,[M]:he}],[M]:ce},{[$]:[Lt,rt,Ge,lt,Tn],endpoint:eI,[M]:he},{[$]:[Je,Mt,Ge,_n],endpoint:{[Re]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Rn,[Te]:Fe},[M]:he},{[$]:[Je,Mt,Ge,lt,Cn],[ae]:[{endpoint:tI,[M]:he}],[M]:ce},{[$]:[Je,Mt,Ge,lt,Tn],endpoint:tI,[M]:he},{[$]:[Je,rt,nn,rs,_n],endpoint:{[Re]:qh,[Ce]:Rn,[Te]:Fe},[M]:he},{[$]:[Je,rt,nn,rs,lt,Cn],[ae]:[{[$]:Ei,endpoint:rb,[M]:he},{endpoint:rb,[M]:he}],[M]:ce},{[$]:[Je,rt,nn,rs,lt,Tn],endpoint:rb,[M]:he},{[$]:[Je,rt,Ge,_n],endpoint:{[Re]:EA,[Ce]:Rn,[Te]:Fe},[M]:he},{[$]:[Je,rt,Ge,lt,Cn],[ae]:[{[$]:Ei,endpoint:{[Re]:EA,[Ce]:gn,[Te]:Fe},[M]:he},{endpoint:nI,[M]:he}],[M]:ce},{[$]:[Je,rt,Ge,lt,Tn],endpoint:nI,[M]:he}],[M]:ce},Dh],[M]:ce}],[M]:ce}],[M]:ce},{error:"A region must be set when sending requests to S3.",[M]:Oe}]},npe=tpe,spe=new oD({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),ez=(e,t={})=>spe.get(e,()=>mD(npe,{endpointParams:e,logger:t.logger}));hl.aws=oS;const rpe=e=>async(t,n,r)=>{if(!r)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");const i=await e(t,n,r),c=Io(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!c)throw new Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);const l=await HD(r,{getEndpointParameterInstructions:c},t);return Object.assign(i,l)},ope=async(e,t,n)=>({operation:Io(t).operation,region:await Bs(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),ipe=rpe(ope);function tz(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function nz(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}const ape=(e,t,n)=>i=>{const l=e(i).properties?.authSchemes;if(!l)return t(i);const f=[];for(const d of l){const{name:h,properties:y={},...g}=d,b=h.toLowerCase();h!==b&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${h}' to '${b}'`);let v;if(b==="sigv4a"){v="aws.auth#sigv4a";const R=l.find(C=>{const I=C.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(LN.sigv4aDependency()==="none"&&R)continue}else if(b.startsWith("sigv4"))v="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${b}'`);const _=n[v];if(!_)throw new Error(`Could not find HttpAuthOption create function for '${v}'`);const x=_(i);x.schemeId=v,x.signingProperties={...x.signingProperties||{},...g,...y},f.push(x)}return f},cpe=e=>{const t=[];switch(e.operation){default:t.push(tz(e)),t.push(nz(e))}return t},lpe=ape(ez,cpe,{"aws.auth#sigv4":tz,"aws.auth#sigv4a":nz}),upe=e=>{const t=RD(e),n=WZ(t);return Object.assign(n,{authSchemePreference:Bs(e.authSchemePreference??[])})},fpe=e=>Object.assign(e,{useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:"s3",clientContextParams:e.clientContextParams??{}}),S_={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};class Mn extends Oa{constructor(t){super(t),Object.setPrototypeOf(this,Mn.prototype)}}class __ extends Mn{name="NoSuchUpload";$fault="client";constructor(t){super({name:"NoSuchUpload",$fault:"client",...t}),Object.setPrototypeOf(this,__.prototype)}}class w_ extends Mn{name="AccessDenied";$fault="client";constructor(t){super({name:"AccessDenied",$fault:"client",...t}),Object.setPrototypeOf(this,w_.prototype)}}class x_ extends Mn{name="ObjectNotInActiveTierError";$fault="client";constructor(t){super({name:"ObjectNotInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,x_.prototype)}}class E_ extends Mn{name="BucketAlreadyExists";$fault="client";constructor(t){super({name:"BucketAlreadyExists",$fault:"client",...t}),Object.setPrototypeOf(this,E_.prototype)}}class R_ extends Mn{name="BucketAlreadyOwnedByYou";$fault="client";constructor(t){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...t}),Object.setPrototypeOf(this,R_.prototype)}}class C_ extends Mn{name="NoSuchBucket";$fault="client";constructor(t){super({name:"NoSuchBucket",$fault:"client",...t}),Object.setPrototypeOf(this,C_.prototype)}}class T_ extends Mn{name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(t){super({name:"InvalidObjectState",$fault:"client",...t}),Object.setPrototypeOf(this,T_.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}}class A_ extends Mn{name="NoSuchKey";$fault="client";constructor(t){super({name:"NoSuchKey",$fault:"client",...t}),Object.setPrototypeOf(this,A_.prototype)}}class I_ extends Mn{name="NotFound";$fault="client";constructor(t){super({name:"NotFound",$fault:"client",...t}),Object.setPrototypeOf(this,I_.prototype)}}class O_ extends Mn{name="EncryptionTypeMismatch";$fault="client";constructor(t){super({name:"EncryptionTypeMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,O_.prototype)}}class M_ extends Mn{name="InvalidRequest";$fault="client";constructor(t){super({name:"InvalidRequest",$fault:"client",...t}),Object.setPrototypeOf(this,M_.prototype)}}class D_ extends Mn{name="InvalidWriteOffset";$fault="client";constructor(t){super({name:"InvalidWriteOffset",$fault:"client",...t}),Object.setPrototypeOf(this,D_.prototype)}}class k_ extends Mn{name="TooManyParts";$fault="client";constructor(t){super({name:"TooManyParts",$fault:"client",...t}),Object.setPrototypeOf(this,k_.prototype)}}class P_ extends Mn{name="IdempotencyParameterMismatch";$fault="client";constructor(t){super({name:"IdempotencyParameterMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,P_.prototype)}}class N_ extends Mn{name="ObjectAlreadyInActiveTierError";$fault="client";constructor(t){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,N_.prototype)}}const z_="ACL",dpe="AccessDenied",hpe="AbortDate",EI="AccessKeyId",ppe="AbortMultipartUpload",mpe="AbortMultipartUploadOutput",gpe="AbortMultipartUploadRequest",ype="AcceptRanges",bpe="AbortRuleId",vpe="AccessTier",Hn="Bucket",sz="BucketArn",Spe="BucketAlreadyExists",_pe="BucketAlreadyOwnedByYou",wpe="BypassGovernanceRetention",xpe="BucketInfo",Po="BucketKeyEnabled",rz="BucketRegion",L_="Body",oz="Buckets",Dl="ChecksumAlgorithm",Epe="CreateBucket",nv="CreateBucketConfiguration",Rpe="CreateBucketOutput",Cpe="CreateBucketRequest",B_="CacheControl",Yi="ChecksumCRC32",Qi="ChecksumCRC32C",Xi="ChecksumCRC64NVME",$_="Cache-Control",Tpe="CreationDate",U_="Content-Disposition",j_="ContentDisposition",H_="Content-Encoding",F_="ContentEncoding",q_="ContentLanguage",V_="Content-Language",G_="Content-Length",K_="ContentLength",Z_="Content-MD5",Y_="ContentMD5",Ape="CompletedMultipartUpload",Ipe="CompleteMultipartUploadOutput",Ope="CreateMultipartUploadOutput",Mpe="CompleteMultipartUploadResult",Dpe="CompleteMultipartUploadRequest",kpe="CreateMultipartUploadRequest",iz="CompleteMultipartUpload",Ppe="CreateMultipartUpload",Npe="ChecksumMode",zpe="CommonPrefix",Lpe="CommonPrefixList",Bpe="CompletedPartList",$pe="CompletedPart",Upe="CommonPrefixes",jpe="ContentRange",Hpe="Content-Range",Wi="ChecksumSHA1",Ji="ChecksumSHA256",Fpe="CreateSessionOutput",qpe="CreateSessionResult",Vpe="CreateSessionRequest",Gpe="CreateSession",sc="ChecksumType",Q_="Content-Type",X_="ContentType",km="ContinuationToken",Kpe="Contents",RI="Credentials",az="DeleteMarker",Zpe="DisplayName",Ype="DeleteObjectOutput",Qpe="DeleteObjectRequest",Xpe="DeleteObject",Wpe="DataRedundancy",cz="Delimiter",wf="Expiration",No="ExpectedBucketOwner",CI="ExpiresString",Jpe="EncryptionTypeMismatch",To="ETag",lz="EncodingType",gl="Expires",eme="FetchOwner",W_="GrantFullControl",tme="GetObject",nme="GetObjectOutput",sme="GetObjectRequest",J_="GrantRead",ew="GrantReadACP",rme="GrantWrite",tw="GrantWriteACP",ome="ID",Pm="IfMatch",ime="IfMatchInitiatedTime",ame="IfMatchLastModifiedTime",cme="IfMatchSize",lme="If-Modified-Since",ume="IfModifiedSince",fme="InitiateMultipartUploadResult",Nm="If-Match",nw="IfNoneMatch",sw="If-None-Match",dme="InvalidObjectState",hme="IdempotencyParameterMismatch",pme="InvalidRequest",mme="IsRestoreInProgress",gme="IsTruncated",yme="IfUnmodifiedSince",bme="If-Unmodified-Since",vme="InvalidWriteOffset",dr="Key",Sme="KeyCount",Mp="Location",_me="ListAllMyBucketsResult",wme="ListBuckets",xme="ListBucketsOutput",Eme="ListBucketsRequest",Rme="ListBucketResult",Cme="LocationConstraint",Tme="LocationInfo",uz="LastModified",Ame="Last-Modified",Ime="ListObjectsV2",Ome="ListObjectsV2Output",Mme="ListObjectsV2Request",rw="Metadata",Dme="MaxBuckets",kme="MFA",fz="MaxKeys",Pme="MissingMeta",Nme="MpuObjectSize",zme="MultipartUpload",ow="Name",Lme="NextContinuationToken",Bme="NotFound",$me="NoSuchBucket",Ume="NoSuchKey",jme="NoSuchUpload",iw="Owner",Hme="ObjectAlreadyInActiveTierError",Fme="ObjectLockEnabledForBucket",aw="ObjectLockLegalHoldStatus",cw="ObjectLockMode",lw="ObjectLockRetainUntilDate",qme="ObjectList",Vme="ObjectNotInActiveTierError",Gme="ObjectOwnership",Kme="OptionalObjectAttributes",Zme="Object",Uf="Prefix",Yme="PartsCount",uw="PartNumber",Qme="PutObject",Xme="PutObjectOutput",Wme="PutObjectRequest",Jme="PutObjectTagging",ege="PutObjectTaggingOutput",tge="PutObjectTaggingRequest",nge="Parts",sge="Part",ea="RequestCharged",rge="ResponseCacheControl",oge="ResponseContentDisposition",ige="ResponseContentEncoding",age="ResponseContentLanguage",cge="ResponseContentType",lge="ResponseExpires",uge="RestoreExpiryDate",zo="RequestPayer",fge="ReplicationStatus",dz="RestoreStatus",TI="Range",dge="Restore",hz="StartAfter",AI="SecretAccessKey",hge="StreamingBlob",jf="StorageClass",pge="SessionCredentialValue",mge="SessionCredentials",gge="SessionMode",Lo="ServerSideEncryption",Bo="SSECustomerAlgorithm",kl="SSECustomerKey",$o="SSECustomerKeyMD5",rc="SSEKMSEncryptionContext",Fr="SSEKMSKeyId",II="SessionToken",pz="Size",yge="Tags",bge="TagCount",vge="TooManyParts",mz="TagSet",gz="Tag",xf="Tagging",yz="Type",zm="UploadId",Sge="UploadPart",_ge="UploadPartOutput",wge="UploadPartRequest",xge="Value",ta="VersionId",Ege="WriteOffsetBytes",fw="WebsiteRedirectLocation",Rge="accept-ranges",Cge="bucket-region",cs="client",bz="continuation-token",Tge="delimiter",ls="error",Age="encoding-type",Ige="fetch-owner",hr="http",Lm="httpChecksum",xs="httpError",P="httpHeader",dw="httpPayload",hw="httpPrefixHeaders",jt="httpQuery",Oge="max-buckets",Mge="max-keys",vz="prefix",Sz="partNumber",Dge="response-cache-control",kge="response-content-disposition",Pge="response-content-encoding",Nge="response-content-language",zge="response-content-type",Lge="response-expires",_z="smithy.ts.sdk.synthetic.com.amazonaws.s3",Bge="start-after",$ge="streaming",pw="uploadId",mw="versionId",Dp="xmlFlattened",Un="xmlName",gw="x-amz-acl",Uge="x-amz-abort-date",jge="x-amz-abort-rule-id",Hge="x-amz-bucket-arn",Fge="x-amz-bypass-governance-retention",qge="x-amz-bucket-object-lock-enabled",wz="x-amz-checksum-algorithm",Pl="x-amz-checksum-crc32",Nl="x-amz-checksum-crc32c",zl="x-amz-checksum-crc64nvme",Vge="x-amz-checksum-mode",Ll="x-amz-checksum-sha1",Bl="x-amz-checksum-sha256",Gge="x-amz-create-session-mode",Hf="x-amz-checksum-type",xz="x-amz-delete-marker",yw="x-amz-expiration",Uo="x-amz-expected-bucket-owner",bw="x-amz-grant-full-control",vw="x-amz-grant-read",Sw="x-amz-grant-read-acp",Kge="x-amz-grant-write",_w="x-amz-grant-write-acp",Zge="x-amz-if-match-initiated-time",Yge="x-amz-if-match-last-modified-time",Qge="x-amz-if-match-size",ww="x-amz-meta-",Xge="x-amz-mfa",Wge="x-amz-missing-meta",Jge="x-amz-mp-object-size",eye="x-amz-mp-parts-count",xw="x-amz-object-lock-legal-hold",Ew="x-amz-object-lock-mode",Rw="x-amz-object-lock-retain-until-date",tye="x-amz-object-ownership",nye="x-amz-optional-object-attributes",sye="x-amz-object-size",rye="x-amz-restore",na="x-amz-request-charged",jo="x-amz-request-payer",oye="x-amz-replication-status",Cw="x-amz-storage-class",Tw="x-amz-sdk-checksum-algorithm",Ho="x-amz-server-side-encryption",Fo="x-amz-server-side-encryption-aws-kms-key-id",qo="x-amz-server-side-encryption-bucket-key-enabled",$l="x-amz-server-side-encryption-context",Vo="x-amz-server-side-encryption-customer-algorithm",Ff="x-amz-server-side-encryption-customer-key",Go="x-amz-server-side-encryption-customer-key-MD5",Ez="x-amz-tagging",iye="x-amz-tagging-count",qf="x-amz-version-id",aye="x-amz-write-offset-bytes",Aw="x-amz-website-redirect-location",Ae="com.amazonaws.s3",Rz=Jn.for(_z);var cye=[-3,_z,"S3ServiceException",0,[],[]];Rz.registerError(cye,Mn);const ts=Jn.for(Ae);var lye=[-3,Ae,dpe,{[ls]:cs,[xs]:403},[],[]];ts.registerError(lye,w_);var uye=[-3,Ae,Spe,{[ls]:cs,[xs]:409},[],[]];ts.registerError(uye,E_);var fye=[-3,Ae,_pe,{[ls]:cs,[xs]:409},[],[]];ts.registerError(fye,R_);var dye=[-3,Ae,Jpe,{[ls]:cs,[xs]:400},[],[]];ts.registerError(dye,O_);var hye=[-3,Ae,hme,{[ls]:cs,[xs]:400},[],[]];ts.registerError(hye,P_);var pye=[-3,Ae,dme,{[ls]:cs,[xs]:403},[jf,vpe],[0,0]];ts.registerError(pye,T_);var mye=[-3,Ae,pme,{[ls]:cs,[xs]:400},[],[]];ts.registerError(mye,M_);var gye=[-3,Ae,vme,{[ls]:cs,[xs]:400},[],[]];ts.registerError(gye,D_);var yye=[-3,Ae,$me,{[ls]:cs,[xs]:404},[],[]];ts.registerError(yye,C_);var bye=[-3,Ae,Ume,{[ls]:cs,[xs]:404},[],[]];ts.registerError(bye,A_);var vye=[-3,Ae,jme,{[ls]:cs,[xs]:404},[],[]];ts.registerError(vye,__);var Sye=[-3,Ae,Bme,{[ls]:cs},[],[]];ts.registerError(Sye,I_);var _ye=[-3,Ae,Hme,{[ls]:cs,[xs]:403},[],[]];ts.registerError(_ye,N_);var wye=[-3,Ae,Vme,{[ls]:cs,[xs]:403},[],[]];ts.registerError(wye,x_);var xye=[-3,Ae,vge,{[ls]:cs,[xs]:400},[],[]];ts.registerError(xye,k_);const Eye=[Rz,ts];var OI=[0,Ae,pge,8,0],Vf=[0,Ae,kl,8,0],Ul=[0,Ae,rc,8,0],Ko=[0,Ae,Fr,8,0],Iw=[0,Ae,hge,{[$ge]:1},42],Rye=[3,Ae,mpe,0,[ea],[[0,{[P]:na}]]],Cye=[3,Ae,gpe,0,[Hn,dr,zm,zo,No,ime],[[0,1],[0,1],[0,{[jt]:pw}],[0,{[P]:jo}],[0,{[P]:Uo}],[6,{[P]:Zge}]],3],Tye=[3,Ae,Hn,0,[ow,Tpe,rz,sz],[0,4,0,0]],Aye=[3,Ae,xpe,0,[Wpe,yz],[0,0]],Iye=[3,Ae,zpe,0,[Uf],[0]],Oye=[3,Ae,Ape,0,[nge],[[()=>l0e,{[Dp]:1,[Un]:sge}]]],Mye=[3,Ae,$pe,0,[To,Yi,Qi,Xi,Wi,Ji,uw],[0,0,0,0,0,0,1]],Dye=[3,Ae,Ipe,{[Un]:Mpe},[Mp,Hn,dr,wf,To,Yi,Qi,Xi,Wi,Ji,sc,Lo,ta,Fr,Po,ea],[0,0,0,[0,{[P]:yw}],0,0,0,0,0,0,0,[0,{[P]:Ho}],[0,{[P]:qf}],[()=>Ko,{[P]:Fo}],[2,{[P]:qo}],[0,{[P]:na}]]],kye=[3,Ae,Dpe,0,[Hn,dr,zm,zme,Yi,Qi,Xi,Wi,Ji,sc,Nme,zo,No,Pm,nw,Bo,kl,$o],[[0,1],[0,1],[0,{[jt]:pw}],[()=>Oye,{[dw]:1,[Un]:iz}],[0,{[P]:Pl}],[0,{[P]:Nl}],[0,{[P]:zl}],[0,{[P]:Ll}],[0,{[P]:Bl}],[0,{[P]:Hf}],[1,{[P]:Jge}],[0,{[P]:jo}],[0,{[P]:Uo}],[0,{[P]:Nm}],[0,{[P]:sw}],[0,{[P]:Vo}],[()=>Vf,{[P]:Ff}],[0,{[P]:Go}]],3],Pye=[3,Ae,nv,0,[Cme,Mp,Hn,yge],[0,()=>Yye,()=>Aye,[()=>Tz,0]]],Nye=[3,Ae,Rpe,0,[Mp,sz],[[0,{[P]:Mp}],[0,{[P]:Hge}]]],zye=[3,Ae,Cpe,0,[Hn,z_,nv,W_,J_,ew,rme,tw,Fme,Gme],[[0,1],[0,{[P]:gw}],[()=>Pye,{[dw]:1,[Un]:nv}],[0,{[P]:bw}],[0,{[P]:vw}],[0,{[P]:Sw}],[0,{[P]:Kge}],[0,{[P]:_w}],[2,{[P]:qge}],[0,{[P]:tye}]],1],Lye=[3,Ae,Ope,{[Un]:fme},[hpe,bpe,Hn,dr,zm,Lo,Bo,$o,Fr,rc,Po,ea,Dl,sc],[[4,{[P]:Uge}],[0,{[P]:jge}],[0,{[Un]:Hn}],0,0,[0,{[P]:Ho}],[0,{[P]:Vo}],[0,{[P]:Go}],[()=>Ko,{[P]:Fo}],[()=>Ul,{[P]:$l}],[2,{[P]:qo}],[0,{[P]:na}],[0,{[P]:wz}],[0,{[P]:Hf}]]],Bye=[3,Ae,kpe,0,[Hn,dr,z_,B_,j_,F_,q_,X_,gl,W_,J_,ew,tw,rw,Lo,jf,fw,Bo,kl,$o,Fr,rc,Po,zo,xf,cw,lw,aw,No,Dl,sc],[[0,1],[0,1],[0,{[P]:gw}],[0,{[P]:$_}],[0,{[P]:U_}],[0,{[P]:H_}],[0,{[P]:V_}],[0,{[P]:Q_}],[4,{[P]:gl}],[0,{[P]:bw}],[0,{[P]:vw}],[0,{[P]:Sw}],[0,{[P]:_w}],[128,{[hw]:ww}],[0,{[P]:Ho}],[0,{[P]:Cw}],[0,{[P]:Aw}],[0,{[P]:Vo}],[()=>Vf,{[P]:Ff}],[0,{[P]:Go}],[()=>Ko,{[P]:Fo}],[()=>Ul,{[P]:$l}],[2,{[P]:qo}],[0,{[P]:jo}],[0,{[P]:Ez}],[0,{[P]:Ew}],[5,{[P]:Rw}],[0,{[P]:xw}],[0,{[P]:Uo}],[0,{[P]:wz}],[0,{[P]:Hf}]],2],$ye=[3,Ae,Fpe,{[Un]:qpe},[RI,Lo,Fr,rc,Po],[[()=>n0e,{[Un]:RI}],[0,{[P]:Ho}],[()=>Ko,{[P]:Fo}],[()=>Ul,{[P]:$l}],[2,{[P]:qo}]],1],Uye=[3,Ae,Vpe,0,[Hn,gge,Lo,Fr,rc,Po],[[0,1],[0,{[P]:Gge}],[0,{[P]:Ho}],[()=>Ko,{[P]:Fo}],[()=>Ul,{[P]:$l}],[2,{[P]:qo}]],1],jye=[3,Ae,Ype,0,[az,ta,ea],[[2,{[P]:xz}],[0,{[P]:qf}],[0,{[P]:na}]]],Hye=[3,Ae,Qpe,0,[Hn,dr,kme,ta,zo,wpe,No,Pm,ame,cme],[[0,1],[0,1],[0,{[P]:Xge}],[0,{[jt]:mw}],[0,{[P]:jo}],[2,{[P]:Fge}],[0,{[P]:Uo}],[0,{[P]:Nm}],[6,{[P]:Yge}],[1,{[P]:Qge}]],2],Fye=[3,Ae,nme,0,[L_,az,ype,wf,dge,uz,K_,To,Yi,Qi,Xi,Wi,Ji,sc,Pme,ta,B_,j_,F_,q_,jpe,X_,gl,CI,fw,Lo,rw,Bo,$o,Fr,Po,jf,ea,fge,Yme,bge,cw,lw,aw],[[()=>Iw,16],[2,{[P]:xz}],[0,{[P]:Rge}],[0,{[P]:yw}],[0,{[P]:rye}],[4,{[P]:Ame}],[1,{[P]:G_}],[0,{[P]:To}],[0,{[P]:Pl}],[0,{[P]:Nl}],[0,{[P]:zl}],[0,{[P]:Ll}],[0,{[P]:Bl}],[0,{[P]:Hf}],[1,{[P]:Wge}],[0,{[P]:qf}],[0,{[P]:$_}],[0,{[P]:U_}],[0,{[P]:H_}],[0,{[P]:V_}],[0,{[P]:Hpe}],[0,{[P]:Q_}],[4,{[P]:gl}],[0,{[P]:CI}],[0,{[P]:Aw}],[0,{[P]:Ho}],[128,{[hw]:ww}],[0,{[P]:Vo}],[0,{[P]:Go}],[()=>Ko,{[P]:Fo}],[2,{[P]:qo}],[0,{[P]:Cw}],[0,{[P]:na}],[0,{[P]:oye}],[1,{[P]:eye}],[1,{[P]:iye}],[0,{[P]:Ew}],[5,{[P]:Rw}],[0,{[P]:xw}]]],qye=[3,Ae,sme,0,[Hn,dr,Pm,ume,nw,yme,TI,rge,oge,ige,age,cge,lge,ta,Bo,kl,$o,zo,uw,No,Npe],[[0,1],[0,1],[0,{[P]:Nm}],[4,{[P]:lme}],[0,{[P]:sw}],[4,{[P]:bme}],[0,{[P]:TI}],[0,{[jt]:Dge}],[0,{[jt]:kge}],[0,{[jt]:Pge}],[0,{[jt]:Nge}],[0,{[jt]:zge}],[6,{[jt]:Lge}],[0,{[jt]:mw}],[0,{[P]:Vo}],[()=>Vf,{[P]:Ff}],[0,{[P]:Go}],[0,{[P]:jo}],[1,{[jt]:Sz}],[0,{[P]:Uo}],[0,{[P]:Vge}]],2],Vye=[3,Ae,xme,{[Un]:_me},[oz,iw,km,Uf],[[()=>a0e,0],()=>Cz,0,0]],Gye=[3,Ae,Eme,0,[Dme,km,Uf,rz],[[1,{[jt]:Oge}],[0,{[jt]:bz}],[0,{[jt]:vz}],[0,{[jt]:Cge}]]],Kye=[3,Ae,Ome,{[Un]:Rme},[gme,Kpe,ow,Uf,cz,fz,Upe,lz,Sme,km,Lme,hz,ea],[2,[()=>u0e,{[Dp]:1}],0,0,0,1,[()=>c0e,{[Dp]:1}],0,1,0,0,0,[0,{[P]:na}]]],Zye=[3,Ae,Mme,0,[Hn,cz,lz,fz,Uf,km,eme,hz,zo,No,Kme],[[0,1],[0,{[jt]:Tge}],[0,{[jt]:Age}],[1,{[jt]:Mge}],[0,{[jt]:vz}],[0,{[jt]:bz}],[2,{[jt]:Ige}],[0,{[jt]:Bge}],[0,{[P]:jo}],[0,{[P]:Uo}],[64,{[P]:nye}]],1],Yye=[3,Ae,Tme,0,[yz,ow],[0,0]],Qye=[3,Ae,Zme,0,[dr,uz,To,Dl,sc,pz,jf,iw,dz],[0,4,0,[64,{[Dp]:1}],0,1,0,()=>Cz,()=>t0e]],Cz=[3,Ae,iw,0,[Zpe,ome],[0,0]],Xye=[3,Ae,Xme,0,[wf,To,Yi,Qi,Xi,Wi,Ji,sc,Lo,ta,Bo,$o,Fr,rc,Po,pz,ea],[[0,{[P]:yw}],[0,{[P]:To}],[0,{[P]:Pl}],[0,{[P]:Nl}],[0,{[P]:zl}],[0,{[P]:Ll}],[0,{[P]:Bl}],[0,{[P]:Hf}],[0,{[P]:Ho}],[0,{[P]:qf}],[0,{[P]:Vo}],[0,{[P]:Go}],[()=>Ko,{[P]:Fo}],[()=>Ul,{[P]:$l}],[2,{[P]:qo}],[1,{[P]:sye}],[0,{[P]:na}]]],Wye=[3,Ae,Wme,0,[Hn,dr,z_,L_,B_,j_,F_,q_,K_,Y_,X_,Dl,Yi,Qi,Xi,Wi,Ji,gl,Pm,nw,W_,J_,ew,tw,Ege,rw,Lo,jf,fw,Bo,kl,$o,Fr,rc,Po,zo,xf,cw,lw,aw,No],[[0,1],[0,1],[0,{[P]:gw}],[()=>Iw,16],[0,{[P]:$_}],[0,{[P]:U_}],[0,{[P]:H_}],[0,{[P]:V_}],[1,{[P]:G_}],[0,{[P]:Z_}],[0,{[P]:Q_}],[0,{[P]:Tw}],[0,{[P]:Pl}],[0,{[P]:Nl}],[0,{[P]:zl}],[0,{[P]:Ll}],[0,{[P]:Bl}],[4,{[P]:gl}],[0,{[P]:Nm}],[0,{[P]:sw}],[0,{[P]:bw}],[0,{[P]:vw}],[0,{[P]:Sw}],[0,{[P]:_w}],[1,{[P]:aye}],[128,{[hw]:ww}],[0,{[P]:Ho}],[0,{[P]:Cw}],[0,{[P]:Aw}],[0,{[P]:Vo}],[()=>Vf,{[P]:Ff}],[0,{[P]:Go}],[()=>Ko,{[P]:Fo}],[()=>Ul,{[P]:$l}],[2,{[P]:qo}],[0,{[P]:jo}],[0,{[P]:Ez}],[0,{[P]:Ew}],[5,{[P]:Rw}],[0,{[P]:xw}],[0,{[P]:Uo}]],2],Jye=[3,Ae,ege,0,[ta],[[0,{[P]:qf}]]],e0e=[3,Ae,tge,0,[Hn,dr,xf,ta,Y_,Dl,No,zo],[[0,1],[0,1],[()=>r0e,{[dw]:1,[Un]:xf}],[0,{[jt]:mw}],[0,{[P]:Z_}],[0,{[P]:Tw}],[0,{[P]:Uo}],[0,{[P]:jo}]],3],t0e=[3,Ae,dz,0,[mme,uge],[2,4]],n0e=[3,Ae,mge,0,[EI,AI,II,wf],[[0,{[Un]:EI}],[()=>OI,{[Un]:AI}],[()=>OI,{[Un]:II}],[4,{[Un]:wf}]],4],s0e=[3,Ae,gz,0,[dr,xge],[0,0],2],r0e=[3,Ae,xf,0,[mz],[[()=>Tz,0]],1],o0e=[3,Ae,_ge,0,[Lo,To,Yi,Qi,Xi,Wi,Ji,Bo,$o,Fr,Po,ea],[[0,{[P]:Ho}],[0,{[P]:To}],[0,{[P]:Pl}],[0,{[P]:Nl}],[0,{[P]:zl}],[0,{[P]:Ll}],[0,{[P]:Bl}],[0,{[P]:Vo}],[0,{[P]:Go}],[()=>Ko,{[P]:Fo}],[2,{[P]:qo}],[0,{[P]:na}]]],i0e=[3,Ae,wge,0,[Hn,dr,uw,zm,L_,K_,Y_,Dl,Yi,Qi,Xi,Wi,Ji,Bo,kl,$o,zo,No],[[0,1],[0,1],[1,{[jt]:Sz}],[0,{[jt]:pw}],[()=>Iw,16],[1,{[P]:G_}],[0,{[P]:Z_}],[0,{[P]:Tw}],[0,{[P]:Pl}],[0,{[P]:Nl}],[0,{[P]:zl}],[0,{[P]:Ll}],[0,{[P]:Bl}],[0,{[P]:Vo}],[()=>Vf,{[P]:Ff}],[0,{[P]:Go}],[0,{[P]:jo}],[0,{[P]:Uo}]],4],a0e=[1,Ae,oz,0,[()=>Tye,{[Un]:Hn}]],c0e=[1,Ae,Lpe,0,()=>Iye],l0e=[1,Ae,Bpe,0,()=>Mye],u0e=[1,Ae,qme,0,[()=>Qye,0]],Tz=[1,Ae,mz,0,[()=>s0e,{[Un]:gz}]],SSe=[9,Ae,ppe,{[hr]:["DELETE","/{Key+}?x-id=AbortMultipartUpload",204]},()=>Cye,()=>Rye],_Se=[9,Ae,iz,{[hr]:["POST","/{Key+}",200]},()=>kye,()=>Dye],wSe=[9,Ae,Epe,{[hr]:["PUT","/",200]},()=>zye,()=>Nye],xSe=[9,Ae,Ppe,{[hr]:["POST","/{Key+}?uploads",200]},()=>Bye,()=>Lye],f0e=[9,Ae,Gpe,{[hr]:["GET","/?session",200]},()=>Uye,()=>$ye],ESe=[9,Ae,Xpe,{[hr]:["DELETE","/{Key+}?x-id=DeleteObject",204]},()=>Hye,()=>jye],RSe=[9,Ae,tme,{[Lm]:"-",[hr]:["GET","/{Key+}?x-id=GetObject",200]},()=>qye,()=>Fye],d0e=[9,Ae,wme,{[hr]:["GET","/?x-id=ListBuckets",200]},()=>Gye,()=>Vye],h0e=[9,Ae,Ime,{[hr]:["GET","/?list-type=2",200]},()=>Zye,()=>Kye],CSe=[9,Ae,Qme,{[Lm]:"-",[hr]:["PUT","/{Key+}?x-id=PutObject",200]},()=>Wye,()=>Xye],TSe=[9,Ae,Jme,{[Lm]:"-",[hr]:["PUT","/{Key+}?tagging",200]},()=>e0e,()=>Jye],ASe=[9,Ae,Sge,{[Lm]:"-",[hr]:["PUT","/{Key+}?x-id=UploadPart",200]},()=>i0e,()=>o0e];class p0e extends Ur.classBuilder().ep({...S_,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,i){return[Oo(r,t.getEndpointParameterInstructions()),d_(r)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").sc(f0e).build(){}const m0e="3.995.0",g0e={version:m0e};function MI(e){return typeof e=="string"?e.length===0:e.byteLength===0}var Az={name:"SHA-1"},DI={name:"HMAC",hash:Az},y0e=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]),b0e=(function(){function e(t){this.toHash=new Uint8Array(0),t!==void 0&&(this.key=new Promise(function(n,r){Ni().crypto.subtle.importKey("raw",kI(t),DI,!1,["sign"]).then(n,r)}),this.key.catch(function(){}))}return e.prototype.update=function(t){if(!MI(t)){var n=kI(t),r=new Uint8Array(this.toHash.byteLength+n.byteLength);r.set(this.toHash,0),r.set(n,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(n){return Ni().crypto.subtle.sign(DI,n,t.toHash).then(function(r){return new Uint8Array(r)})}):MI(this.toHash)?Promise.resolve(y0e):Promise.resolve().then(function(){return Ni().crypto.subtle.digest(Az,t.toHash)}).then(function(n){return Promise.resolve(new Uint8Array(n))})},e.prototype.reset=function(){this.toHash=new Uint8Array(0)},e})();function kI(e){return typeof e=="string"?QD(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var v0e=(function(){function e(t){if(ek(Ni()))this.hash=new b0e(t);else throw new Error("SHA1 not supported")}return e.prototype.update=function(t,n){this.hash.update(Fa(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();class of{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const n=new Uint8Array(8);for(let r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&PI(n),new of(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&PI(t),parseInt(vs(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}}function PI(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}class S0e{toUtf8;fromUtf8;constructor(t,n){this.toUtf8=t,this.fromUtf8=n}format(t){const n=[];for(const c of Object.keys(t)){const l=this.fromUtf8(c);n.push(Uint8Array.from([l.byteLength]),l,this.formatHeaderValue(t[c]))}const r=new Uint8Array(n.reduce((c,l)=>c+l.byteLength,0));let i=0;for(const c of n)r.set(c,i),i+=c.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":const c=new DataView(new ArrayBuffer(3+t.value.byteLength));c.setUint8(0,6),c.setUint16(1,t.value.byteLength,!1);const l=new Uint8Array(c.buffer);return l.set(t.value,3),l;case"string":const f=this.fromUtf8(t.value),d=new DataView(new ArrayBuffer(3+f.byteLength));d.setUint8(0,7),d.setUint16(1,f.byteLength,!1);const h=new Uint8Array(d.buffer);return h.set(f,3),h;case"timestamp":const y=new Uint8Array(9);return y[0]=8,y.set(of.fromNumber(t.value.valueOf()).bytes,1),y;case"uuid":if(!I0e.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const g=new Uint8Array(17);return g[0]=9,g.set(GM(t.value.replace(/\-/g,"")),1),g}}parse(t){const n={};let r=0;for(;r{if(typeof f!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+f);t=f,n=4,r=new Uint8Array(f),new DataView(r.buffer).setUint32(0,f,!1)},l=async function*(){const f=e[Symbol.asyncIterator]();for(;;){const{value:d,done:h}=await f.next();if(h){if(t)if(t===n)yield r;else throw new Error("Truncated event message received.");else return;return}const y=d.length;let g=0;for(;g({[Symbol.asyncIterator]:async function*(){const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}}),j0e=e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(n){const{done:r,value:i}=await t.next();if(r)return n.close();n.enqueue(i)}})};class H0e{universalMarshaller;constructor({utf8Encoder:t,utf8Decoder:n}){this.universalMarshaller=new $0e({utf8Decoder:n,utf8Encoder:t})}deserialize(t,n){const r=F0e(t)?U0e(t):t;return this.universalMarshaller.deserialize(r,n)}serialize(t,n){const r=this.universalMarshaller.serialize(t,n);return typeof ReadableStream=="function"?j0e(r):r}}const F0e=e=>typeof ReadableStream=="function"&&e instanceof ReadableStream,q0e=e=>new H0e(e);async function V0e(e,t,n=1024*1024){const r=e.size;let i=0;for(;i{r.update(i)}),r.digest()},Ri=64,K0e=16,Z0e=[1732584193,4023233417,2562383102,271733878];class Y0e{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(t){if(Q0e(t))return;if(this.finished)throw new Error("Attempted to update an already finished hash.");const n=X0e(t);let r=0,{byteLength:i}=n;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,n[r++]),i--,this.bufferLength===Ri&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){const{buffer:n,bufferLength:r,bytesHashed:i}=this,c=i*8;if(n.setUint8(this.bufferLength++,128),r%Ri>=Ri-8){for(let l=this.bufferLength;l>>0,!0),n.setUint32(Ri-4,Math.floor(c/4294967296),!0),this.hashBuffer(),this.finished=!0}const t=new DataView(new ArrayBuffer(K0e));for(let n=0;n<4;n++)t.setUint32(n*4,this.state[n],!0);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}hashBuffer(){const{buffer:t,state:n}=this;let r=n[0],i=n[1],c=n[2],l=n[3];r=Yn(r,i,c,l,t.getUint32(0,!0),7,3614090360),l=Yn(l,r,i,c,t.getUint32(4,!0),12,3905402710),c=Yn(c,l,r,i,t.getUint32(8,!0),17,606105819),i=Yn(i,c,l,r,t.getUint32(12,!0),22,3250441966),r=Yn(r,i,c,l,t.getUint32(16,!0),7,4118548399),l=Yn(l,r,i,c,t.getUint32(20,!0),12,1200080426),c=Yn(c,l,r,i,t.getUint32(24,!0),17,2821735955),i=Yn(i,c,l,r,t.getUint32(28,!0),22,4249261313),r=Yn(r,i,c,l,t.getUint32(32,!0),7,1770035416),l=Yn(l,r,i,c,t.getUint32(36,!0),12,2336552879),c=Yn(c,l,r,i,t.getUint32(40,!0),17,4294925233),i=Yn(i,c,l,r,t.getUint32(44,!0),22,2304563134),r=Yn(r,i,c,l,t.getUint32(48,!0),7,1804603682),l=Yn(l,r,i,c,t.getUint32(52,!0),12,4254626195),c=Yn(c,l,r,i,t.getUint32(56,!0),17,2792965006),i=Yn(i,c,l,r,t.getUint32(60,!0),22,1236535329),r=Qn(r,i,c,l,t.getUint32(4,!0),5,4129170786),l=Qn(l,r,i,c,t.getUint32(24,!0),9,3225465664),c=Qn(c,l,r,i,t.getUint32(44,!0),14,643717713),i=Qn(i,c,l,r,t.getUint32(0,!0),20,3921069994),r=Qn(r,i,c,l,t.getUint32(20,!0),5,3593408605),l=Qn(l,r,i,c,t.getUint32(40,!0),9,38016083),c=Qn(c,l,r,i,t.getUint32(60,!0),14,3634488961),i=Qn(i,c,l,r,t.getUint32(16,!0),20,3889429448),r=Qn(r,i,c,l,t.getUint32(36,!0),5,568446438),l=Qn(l,r,i,c,t.getUint32(56,!0),9,3275163606),c=Qn(c,l,r,i,t.getUint32(12,!0),14,4107603335),i=Qn(i,c,l,r,t.getUint32(32,!0),20,1163531501),r=Qn(r,i,c,l,t.getUint32(52,!0),5,2850285829),l=Qn(l,r,i,c,t.getUint32(8,!0),9,4243563512),c=Qn(c,l,r,i,t.getUint32(28,!0),14,1735328473),i=Qn(i,c,l,r,t.getUint32(48,!0),20,2368359562),r=Xn(r,i,c,l,t.getUint32(20,!0),4,4294588738),l=Xn(l,r,i,c,t.getUint32(32,!0),11,2272392833),c=Xn(c,l,r,i,t.getUint32(44,!0),16,1839030562),i=Xn(i,c,l,r,t.getUint32(56,!0),23,4259657740),r=Xn(r,i,c,l,t.getUint32(4,!0),4,2763975236),l=Xn(l,r,i,c,t.getUint32(16,!0),11,1272893353),c=Xn(c,l,r,i,t.getUint32(28,!0),16,4139469664),i=Xn(i,c,l,r,t.getUint32(40,!0),23,3200236656),r=Xn(r,i,c,l,t.getUint32(52,!0),4,681279174),l=Xn(l,r,i,c,t.getUint32(0,!0),11,3936430074),c=Xn(c,l,r,i,t.getUint32(12,!0),16,3572445317),i=Xn(i,c,l,r,t.getUint32(24,!0),23,76029189),r=Xn(r,i,c,l,t.getUint32(36,!0),4,3654602809),l=Xn(l,r,i,c,t.getUint32(48,!0),11,3873151461),c=Xn(c,l,r,i,t.getUint32(60,!0),16,530742520),i=Xn(i,c,l,r,t.getUint32(8,!0),23,3299628645),r=Wn(r,i,c,l,t.getUint32(0,!0),6,4096336452),l=Wn(l,r,i,c,t.getUint32(28,!0),10,1126891415),c=Wn(c,l,r,i,t.getUint32(56,!0),15,2878612391),i=Wn(i,c,l,r,t.getUint32(20,!0),21,4237533241),r=Wn(r,i,c,l,t.getUint32(48,!0),6,1700485571),l=Wn(l,r,i,c,t.getUint32(12,!0),10,2399980690),c=Wn(c,l,r,i,t.getUint32(40,!0),15,4293915773),i=Wn(i,c,l,r,t.getUint32(4,!0),21,2240044497),r=Wn(r,i,c,l,t.getUint32(32,!0),6,1873313359),l=Wn(l,r,i,c,t.getUint32(60,!0),10,4264355552),c=Wn(c,l,r,i,t.getUint32(24,!0),15,2734768916),i=Wn(i,c,l,r,t.getUint32(52,!0),21,1309151649),r=Wn(r,i,c,l,t.getUint32(16,!0),6,4149444226),l=Wn(l,r,i,c,t.getUint32(44,!0),10,3174756917),c=Wn(c,l,r,i,t.getUint32(8,!0),15,718787259),i=Wn(i,c,l,r,t.getUint32(36,!0),21,3951481745),n[0]=r+n[0]&4294967295,n[1]=i+n[1]&4294967295,n[2]=c+n[2]&4294967295,n[3]=l+n[3]&4294967295}reset(){this.state=Uint32Array.from(Z0e),this.buffer=new DataView(new ArrayBuffer(Ri)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}}function Bm(e,t,n,r,i,c){return t=(t+e&4294967295)+(r+c&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function Yn(e,t,n,r,i,c,l){return Bm(t&n|~t&r,e,t,i,c,l)}function Qn(e,t,n,r,i,c,l){return Bm(t&r|n&~r,e,t,i,c,l)}function Xn(e,t,n,r,i,c,l){return Bm(t^n^r,e,t,i,c,l)}function Wn(e,t,n,r,i,c,l){return Bm(n^(t|~r),e,t,i,c,l)}function Q0e(e){return typeof e=="string"?e.length===0:e.byteLength===0}function X0e(e){return typeof e=="string"?Co(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}const W0e=e=>({apiVersion:"2006-03-01",base64Decoder:e?.base64Decoder??Ha,base64Encoder:e?.base64Encoder??zi,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??ez,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??bK,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??lpe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new tS},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new QZ}],logger:e?.logger??new nS,protocol:e?.protocol??HY,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:Eye,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:e?.sdkStreamMixin??KM,serviceId:e?.serviceId??"S3",signerConstructor:e?.signerConstructor??LN,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??bf,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??Co,utf8Encoder:e?.utf8Encoder??Ka}),J0e=e=>{const t=rk(e),n=()=>t().then(AD),r=W0e(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??CD,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??nk({serviceId:r.serviceId,clientVersion:g0e.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??q0e,maxAttempts:e?.maxAttempts??vf,md5:e?.md5??Y0e,region:e?.region??sk("Region is missing"),requestHandler:rm.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||qD),sha1:e?.sha1??v0e,sha256:e?.sha256??tk,streamCollector:e?.streamCollector??Gv,streamHasher:e?.streamHasher??G0e,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(ND)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(zD))}},ebe=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(i){const c=t.findIndex(l=>l.schemeId===i.schemeId);c===-1?t.push(i):t.splice(c,1,i)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(i){n=i},httpAuthSchemeProvider(){return n},setCredentials(i){r=i},credentials(){return r}}},tbe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),nbe=(e,t)=>{const n=Object.assign(ON(e),ID(e),zM(e),ebe(e));return t.forEach(r=>r.configure(n)),Object.assign(e,MN(n),OD(n),LM(n),tbe(n))};class sbe extends TD{config;constructor(...[t]){const n=J0e(t||{});super(n),this.initConfig=n;const r=fpe(n),i=rD(r),c=phe(i),l=ZD(c),f=BD(l),d=f,h=FD(d),y=qhe(h),g=upe(y),b=Dhe(g,{session:[()=>this,p0e]}),v=nbe(b,t?.extensions||[]);this.config=v,this.middlewareStack.use(YM(this.config)),this.middlewareStack.use(PD(this.config)),this.middlewareStack.use(YD(this.config)),this.middlewareStack.use($D(this.config)),this.middlewareStack.use(BM(this.config)),this.middlewareStack.use($M(this.config)),this.middlewareStack.use(UM(this.config)),this.middlewareStack.use(jM(this.config,{httpAuthSchemeParametersProvider:ipe,identityProviderConfigProvider:async _=>new nD({"aws.auth#sigv4":_.credentials,"aws.auth#sigv4a":_.credentials})})),this.middlewareStack.use(FM(this.config)),this.middlewareStack.use(Fhe(this.config)),this.middlewareStack.use(lhe(this.config)),this.middlewareStack.use(vhe(this.config)),this.middlewareStack.use(Che(this.config)),this.middlewareStack.use(Mhe(this.config))}destroy(){super.destroy()}}class rbe extends Ur.classBuilder().ep(S_).m(function(t,n,r,i){return[Oo(r,t.getEndpointParameterInstructions()),d_(r)]}).s("AmazonS3","ListBuckets",{}).n("S3Client","ListBucketsCommand").sc(d0e).build(){}class obe extends Ur.classBuilder().ep({...S_,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m(function(t,n,r,i){return[Oo(r,t.getEndpointParameterInstructions()),d_(r)]}).s("AmazonS3","ListObjectsV2",{}).n("S3Client","ListObjectsV2Command").sc(h0e).build(){}let Vh=null,Zu=null;function qr(){if(!Vh){const e=sm();if(!e)throw new Error("AWS credentials not configured");Vh=new rhe({endpoint:"https://localhost:9999",region:"ap-southeast-2",credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}})}return Vh}function Oz(){if(!Zu){const e=sm();if(!e)throw new Error("AWS credentials not configured");Zu=new sbe({endpoint:"https://localhost:8443",region:"ap-southeast-2",credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey},forcePathStyle:!0}),Zu.middlewareStack.use({applyToStack:t=>{t.add(n=>r=>{const i=r.request;return i?.path?.endsWith("/")&&i.path!=="/"&&(i.path=i.path.slice(0,-1)),n(r)},{step:"build",name:"removeTrailingSlash"})}})}return Zu}function ibe(){Vh=null,Zu=null}function Mz(){const e=Tt.c(58);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:abe},e[0]=t):t=e[0];const n=O$(t),r=$p(),i=VI();let c;e[1]!==r||e[2]!==i?(c=function(){eK(),ibe(),i.clear(),r({to:"/login"})},e[1]=r,e[2]=i,e[3]=c):c=e[3];const l=c;let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=U.jsx(T0,{children:"General"}),e[4]=f):f=e[4];const d=n==="/";let h,y;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=U.jsx(xU,{className:"size-4"}),y=U.jsx("span",{children:"Dashboard"}),e[5]=h,e[6]=y):(h=e[5],y=e[6]);let g;e[7]!==d?(g=U.jsxs(C0,{children:[f,U.jsx(Eh,{children:U.jsx(xa,{children:U.jsx(Dr,{to:"/",children:U.jsxs(Ea,{isActive:d,tooltip:"Dashboard",children:[h,y]})})})})]}),e[7]=d,e[8]=g):g=e[8];let b;e[9]===Symbol.for("react.memo_cache_sentinel")?(b=U.jsx(T0,{children:"EC2"}),e[9]=b):b=e[9];let v;e[10]!==n?(v=n.startsWith("/ec2/describe-instances")||n.startsWith("/ec2/run-instances"),e[10]=n,e[11]=v):v=e[11];let _,x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=U.jsx(gC,{className:"size-4"}),_=U.jsx("span",{children:"Instances"}),e[12]=_,e[13]=x):(_=e[12],x=e[13]);let R;e[14]!==v?(R=U.jsx(xa,{children:U.jsx(Dr,{to:"/ec2/describe-instances",children:U.jsxs(Ea,{isActive:v,tooltip:"EC2 Instances",children:[x,_]})})}),e[14]=v,e[15]=R):R=e[15];let C;e[16]!==n?(C=n.startsWith("/ec2/describe-images"),e[16]=n,e[17]=C):C=e[17];let I,D;e[18]===Symbol.for("react.memo_cache_sentinel")?(I=U.jsx(RU,{className:"size-4"}),D=U.jsx("span",{children:"Images"}),e[18]=I,e[19]=D):(I=e[18],D=e[19]);let A;e[20]!==C?(A=U.jsx(xa,{children:U.jsx(Dr,{to:"/ec2/describe-images",children:U.jsxs(Ea,{isActive:C,tooltip:"Images",children:[I,D]})})}),e[20]=C,e[21]=A):A=e[21];let B;e[22]!==n?(B=n.startsWith("/ec2/describe-key-pairs"),e[22]=n,e[23]=B):B=e[23];let j,H;e[24]===Symbol.for("react.memo_cache_sentinel")?(j=U.jsx(TU,{className:"size-4"}),H=U.jsx("span",{children:"Key Pairs"}),e[24]=j,e[25]=H):(j=e[24],H=e[25]);let k;e[26]!==B?(k=U.jsx(xa,{children:U.jsx(Dr,{to:"/ec2/describe-key-pairs",children:U.jsxs(Ea,{isActive:B,tooltip:"Key Pairs",children:[j,H]})})}),e[26]=B,e[27]=k):k=e[27];let Q;e[28]!==n?(Q=n.startsWith("/ec2/describe-volumes"),e[28]=n,e[29]=Q):Q=e[29];let ne,re;e[30]===Symbol.for("react.memo_cache_sentinel")?(ne=U.jsx(_U,{className:"size-4"}),re=U.jsx("span",{children:"Volumes"}),e[30]=ne,e[31]=re):(ne=e[30],re=e[31]);let G;e[32]!==Q?(G=U.jsx(xa,{children:U.jsx(Dr,{to:"/ec2/describe-volumes",children:U.jsxs(Ea,{isActive:Q,tooltip:"Volumes",children:[ne,re]})})}),e[32]=Q,e[33]=G):G=e[33];let te;e[34]!==R||e[35]!==A||e[36]!==k||e[37]!==G?(te=U.jsxs(C0,{children:[b,U.jsxs(Eh,{children:[R,A,k,G]})]}),e[34]=R,e[35]=A,e[36]=k,e[37]=G,e[38]=te):te=e[38];let ue;e[39]===Symbol.for("react.memo_cache_sentinel")?(ue=U.jsx(T0,{children:"S3"}),e[39]=ue):ue=e[39];let me;e[40]!==n?(me=n.startsWith("/s3/ls"),e[40]=n,e[41]=me):me=e[41];let F,oe;e[42]===Symbol.for("react.memo_cache_sentinel")?(F=U.jsx(gC,{className:"size-4"}),oe=U.jsx("span",{children:"Buckets"}),e[42]=F,e[43]=oe):(F=e[42],oe=e[43]);let J;e[44]!==me?(J=U.jsxs(C0,{children:[ue,U.jsx(Eh,{children:U.jsx(xa,{children:U.jsx(Dr,{to:"/s3/ls",children:U.jsxs(Ea,{isActive:me,tooltip:"Buckets",children:[F,oe]})})})})]}),e[44]=me,e[45]=J):J=e[45];let ve;e[46]!==te||e[47]!==J||e[48]!==g?(ve=U.jsxs(S7,{children:[g,te,J]}),e[46]=te,e[47]=J,e[48]=g,e[49]=ve):ve=e[49];let fe,z;e[50]===Symbol.for("react.memo_cache_sentinel")?(fe=U.jsx(IU,{className:"size-4"}),z=U.jsx("span",{children:"Sign out"}),e[50]=fe,e[51]=z):(fe=e[50],z=e[51]);let ee;e[52]!==l?(ee=U.jsx(v7,{children:U.jsx(Eh,{children:U.jsx(xa,{children:U.jsxs(Ea,{onClick:l,tooltip:"Sign out",children:[fe,z]})})})}),e[52]=l,e[53]=ee):ee=e[53];let ge;e[54]===Symbol.for("react.memo_cache_sentinel")?(ge=U.jsx(b7,{}),e[54]=ge):ge=e[54];let be;return e[55]!==ve||e[56]!==ee?(be=U.jsxs(g7,{collapsible:"icon",children:[ve,ee,ge]}),e[55]=ve,e[56]=ee,e[57]=be):be=e[57],be}function abe(e){return e.pathname}function cbe(e){const t=Tt.c(18),{error:n,reset:r}=e,i=es(),c=VI();let l;t[0]!==c||t[1]!==r||t[2]!==i?(l=function(){c.invalidateQueries(),r(),i.invalidate()},t[0]=c,t[1]=r,t[2]=i,t[3]=l):l=t[3];const f=l;let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=U.jsx(Mz,{}),t[4]=d):d=t[4];let h;t[5]===Symbol.for("react.memo_cache_sentinel")?(h=U.jsx(iM,{}),t[5]=h):h=t[5];let y,g;t[6]===Symbol.for("react.memo_cache_sentinel")?(y=U.jsx("div",{className:"flex justify-center",children:U.jsx(vU,{className:"size-12 text-destructive"})}),g=U.jsx("h1",{className:"font-semibold text-2xl",children:"Something went wrong"}),t[6]=y,t[7]=g):(y=t[6],g=t[7]);const b=n.message||"An unexpected error occurred";let v;t[8]!==b?(v=U.jsx("p",{className:"text-muted-foreground",children:b}),t[8]=b,t[9]=v):v=t[9];let _;t[10]!==f?(_=U.jsx(cl,{onClick:f,variant:"default",children:"Try Again"}),t[10]=f,t[11]=_):_=t[11];let x;t[12]===Symbol.for("react.memo_cache_sentinel")?(x=U.jsx(Dr,{to:"/",children:U.jsx(cl,{variant:"outline",children:"Go Home"})}),t[12]=x):x=t[12];let R;t[13]!==_?(R=U.jsxs("div",{className:"flex justify-center gap-2",children:[_,x]}),t[13]=_,t[14]=R):R=t[14];let C;return t[15]!==R||t[16]!==v?(C=U.jsxs(U.Fragment,{children:[d,U.jsxs("main",{className:"flex flex-1 flex-col",children:[h,U.jsx("div",{className:"flex flex-1 items-center justify-center p-6 pt-0",children:U.jsxs("div",{className:"max-w-md space-y-4 text-center",children:[y,g,v,R]})})]})]}),t[15]=R,t[16]=v,t[17]=C):C=t[17],C}const Ow=g$()({head:()=>({meta:[{title:"Mulga"}]}),component:()=>U.jsxs(U.Fragment,{children:[U.jsx(N$,{}),U.jsx(Mz,{}),U.jsxs("main",{className:"flex flex-1 flex-col",children:[U.jsx(iM,{}),U.jsx("div",{className:"flex flex-1 flex-col p-8",children:U.jsx(g2,{})})]})]}),errorComponent:cbe,notFoundComponent:x7}),lbe=()=>Jt(()=>import("./login.js"),__vite__mapDeps([0,1])),ube=Yt("/login")({beforeLoad:()=>{if(sm())throw fv({to:"/"})},component:on(lbe,"component")}),fbe=()=>Jt(()=>import("./route.js"),[]),dbe=Yt("/_auth")({beforeLoad:()=>{if(!sm())throw fv({to:"/login"})},component:on(fbe,"component")}),hbe={queryKey:["ec2","instances"],queryFn:async()=>{try{const e=new kN({});return await qr().send(e)}catch{throw new Error("Failed to fetch EC2 instances")}}},pbe=e=>({queryKey:["ec2","instances",e],queryFn:async()=>{try{const t=new kN({InstanceIds:[e]});return await qr().send(t)}catch{throw new Error("Failed to fetch EC2 instance")}}}),mbe={queryKey:["ec2","instances","types"],queryFn:async()=>{try{const e=new ohe({Filters:[{Name:"capacity",Values:["true"]}]});return await qr().send(e)}catch{throw new Error("Failed to fetch EC2 instance types")}}},Dz={queryKey:["ec2","images"],queryFn:async()=>{try{const e=new DN({});return await qr().send(e)}catch{throw new Error("Failed to fetch EC2 images")}}},kz=e=>({queryKey:["ec2","images",e??"none"],queryFn:async()=>{try{if(!e)return{Images:[],$metadata:{}};const t=new DN({ImageIds:[e]});return await qr().send(t)}catch{throw new Error("Failed to fetch EC2 image")}}}),Pz={queryKey:["ec2","keypairs"],queryFn:async()=>{try{const e=new PN({});return await qr().send(e)}catch{throw new Error("Failed to fetch key pairs")}}},gbe=e=>({queryKey:["ec2","keypairs",e],queryFn:async()=>{try{const t=new PN({KeyPairIds:[e]});return await qr().send(t)}catch{throw new Error("Failed to fetch key pair")}}}),ybe={queryKey:["ec2","regions"],queryFn:async()=>{try{const e=new ihe({});return await qr().send(e)}catch{throw new Error("Failed to fetch regions")}},staleTime:3e5},bbe={queryKey:["ec2","volumes"],queryFn:async()=>{try{const e=new NN({});return await qr().send(e)}catch{throw new Error("Failed to fetch volumes")}}},Nz=e=>({queryKey:["ec2","volumes",e],queryFn:async()=>{try{const t=new NN({VolumeIds:[e]});return await qr().send(t)}catch{throw new Error("Failed to fetch volume")}}}),vbe=()=>Jt(()=>import("./index3.js"),__vite__mapDeps([2,3,4])),Sbe=Yt("/_auth/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ybe)},head:()=>({meta:[{title:"Dashboard | Mulga"}]}),component:on(vbe,"component")}),_be={queryKey:["s3","buckets"],queryFn:async()=>{try{const e=new rbe({});return await Oz().send(e)}catch{throw new Error("Failed to fetch S3 buckets")}}},zz=(e,t)=>({queryKey:["s3","buckets",e,"objects",t??""],queryFn:async()=>{try{const n=new obe({Bucket:e,Prefix:t,Delimiter:"/"});return await Oz().send(n)}catch{throw new Error("Failed to fetch S3 bucket objects")}}}),wbe=()=>Jt(()=>import("./index4.js"),__vite__mapDeps([5,3,6,4])),xbe=Yt("/_auth/s3/ls/")({head:()=>({meta:[{title:"Buckets | S3 | Mulga"}]}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(_be)},component:on(wbe,"component")}),Ebe=()=>Jt(()=>import("./create-bucket.js"),__vite__mapDeps([7,1,8,9,4,10])),Rbe=Yt("/_auth/s3/(buckets)/create-bucket")({head:()=>({meta:[{title:"Create Bucket | S3 | Mulga"}]}),component:on(Ebe,"component")}),Cbe=()=>Jt(()=>import("./create-volume.js"),__vite__mapDeps([11,1,8,9,4,12,13])),Tbe=Yt("/_auth/ec2/(volumes)/create-volume")({head:()=>({meta:[{title:"Create Volume | EC2 | Mulga"}]}),component:on(Cbe,"component")}),Abe=()=>Jt(()=>import("./import-key-pair.js"),__vite__mapDeps([14,1,8,9,4,15,12,13])),Ibe=Yt("/_auth/ec2/(key)/import-key-pair")({head:()=>({meta:[{title:"Import Key Pair | EC2 | Mulga"}]}),component:on(Abe,"component")}),Obe=()=>Jt(()=>import("./create-key-pair.js"),__vite__mapDeps([16,1,8,9,4,12,13,17,15,18,19])),Mbe=Yt("/_auth/ec2/(key)/create-key-pair")({head:()=>({meta:[{title:"Create Key Pair | EC2 | Mulga"}]}),component:on(Obe,"component")}),Dbe=()=>Jt(()=>import("./run-instances.js"),__vite__mapDeps([20,1,3,8,9,4,18,12,13])),kbe=Yt("/_auth/ec2/(instances)/run-instances")({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Dz),e.queryClient.ensureQueryData(Pz),e.queryClient.ensureQueryData(mbe)])},head:()=>({meta:[{title:"Run Instances | EC2 | Mulga"}]}),component:on(Dbe,"component")}),Pbe=()=>Jt(()=>import("./route2.js"),[]),Nbe=Yt("/_auth/s3/ls/$bucket")({component:on(Pbe,"component")}),zbe=()=>Jt(()=>import("./index5.js"),__vite__mapDeps([21,3,8,9,4,10,22,17,19,23])),Lbe=Yt("/_auth/s3/ls/$bucket/")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(zz(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:on(zbe,"component")}),Bbe=()=>Jt(()=>import("./index6.js"),__vite__mapDeps([24,3,6,4,25])),$be=Yt("/_auth/ec2/(volumes)/describe-volumes/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(bbe)},head:()=>({meta:[{title:"Volumes | EC2 | Mulga"}]}),component:on(Bbe,"component")}),Ube=()=>Jt(()=>import("./index7.js"),__vite__mapDeps([26,3,6,4])),jbe=Yt("/_auth/ec2/(key)/describe-key-pairs/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Pz)},head:()=>({meta:[{title:"Key Pairs | EC2 | Mulga"}]}),component:on(Ube,"component")}),Hbe=()=>Jt(()=>import("./index8.js"),__vite__mapDeps([27,3,6,4,28])),Fbe=Yt("/_auth/ec2/(instances)/describe-instances/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(hbe)},head:()=>({meta:[{title:"Instances | EC2 | Mulga"}]}),component:on(Hbe,"component")}),qbe=()=>Jt(()=>import("./index9.js"),__vite__mapDeps([29,3,6,4,25])),Vbe=Yt("/_auth/ec2/(images)/describe-images/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Dz)},head:()=>({meta:[{title:"Images | EC2 | Mulga"}]}),component:on(qbe,"component")}),Gbe=()=>Jt(()=>import("./_.js"),__vite__mapDeps([30,3,8,9,10,22,17,19,23])),Kbe=Yt("/_auth/s3/ls/$bucket/$")({loader:async({context:e,params:t})=>{const n=Z5(t._splat||"");await e.queryClient.ensureQueryData(zz(t.bucket,n))},head:({params:e})=>({meta:[{title:`${Y5(e._splat||"",`${e.bucket}/`)} | S3 | Mulga`}]}),component:on(Gbe,"component")}),Zbe=()=>Jt(()=>import("./_id.js"),__vite__mapDeps([31,1,3,8,9,4,12,13])),Ybe=Yt("/_auth/ec2/(volumes)/modify-volume/$id")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Nz(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:on(Zbe,"component")}),Qbe=()=>Jt(()=>import("./_id2.js"),__vite__mapDeps([32,3,8,33,9,4,17,25,12,23])),Xbe=Yt("/_auth/ec2/(volumes)/describe-volumes/$id")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Nz(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:on(Qbe,"component")}),Wbe=()=>Jt(()=>import("./_id3.js"),__vite__mapDeps([34,3,8,33,9,4,17,12,23])),Jbe=Yt("/_auth/ec2/(key)/describe-key-pairs/$id")({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(gbe(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??"Key Pair"} | EC2 | Mulga`}]}),component:on(Wbe,"component")}),eve=()=>Jt(()=>import("./_id4.js"),__vite__mapDeps([35,3,8,33,4,28,36,9,12,23])),tve=Yt("/_auth/ec2/(instances)/describe-instances/$id")({loader:async({context:e,params:t})=>{const n=await e.queryClient.ensureQueryData(pbe(t.id)),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.ensureQueryData(kz(r)),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??"Instance"} | EC2 | Mulga`}]}),component:on(eve,"component")}),nve=()=>Jt(()=>import("./_id5.js"),__vite__mapDeps([37,3,8,4,25,36,33])),sve=Yt("/_auth/ec2/(images)/describe-images/$id")({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(kz(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??"Image"} | EC2 | Mulga`}]}),component:on(nve,"component")}),rve=ube.update({id:"/login",path:"/login",getParentRoute:()=>Ow}),Dn=dbe.update({id:"/_auth",getParentRoute:()=>Ow}),ove=Sbe.update({id:"/",path:"/",getParentRoute:()=>Dn}),ive=xbe.update({id:"/s3/ls/",path:"/s3/ls/",getParentRoute:()=>Dn}),ave=Rbe.update({id:"/s3/(buckets)/create-bucket",path:"/s3/create-bucket",getParentRoute:()=>Dn}),cve=Tbe.update({id:"/ec2/(volumes)/create-volume",path:"/ec2/create-volume",getParentRoute:()=>Dn}),lve=Ibe.update({id:"/ec2/(key)/import-key-pair",path:"/ec2/import-key-pair",getParentRoute:()=>Dn}),uve=Mbe.update({id:"/ec2/(key)/create-key-pair",path:"/ec2/create-key-pair",getParentRoute:()=>Dn}),fve=kbe.update({id:"/ec2/(instances)/run-instances",path:"/ec2/run-instances",getParentRoute:()=>Dn}),Mw=Nbe.update({id:"/s3/ls/$bucket",path:"/s3/ls/$bucket",getParentRoute:()=>Dn}),dve=Lbe.update({id:"/",path:"/",getParentRoute:()=>Mw}),hve=$be.update({id:"/ec2/(volumes)/describe-volumes/",path:"/ec2/describe-volumes/",getParentRoute:()=>Dn}),pve=jbe.update({id:"/ec2/(key)/describe-key-pairs/",path:"/ec2/describe-key-pairs/",getParentRoute:()=>Dn}),mve=Fbe.update({id:"/ec2/(instances)/describe-instances/",path:"/ec2/describe-instances/",getParentRoute:()=>Dn}),gve=Vbe.update({id:"/ec2/(images)/describe-images/",path:"/ec2/describe-images/",getParentRoute:()=>Dn}),yve=Kbe.update({id:"/$",path:"/$",getParentRoute:()=>Mw}),bve=Ybe.update({id:"/ec2/(volumes)/modify-volume/$id",path:"/ec2/modify-volume/$id",getParentRoute:()=>Dn}),vve=Xbe.update({id:"/ec2/(volumes)/describe-volumes/$id",path:"/ec2/describe-volumes/$id",getParentRoute:()=>Dn}),Sve=Jbe.update({id:"/ec2/(key)/describe-key-pairs/$id",path:"/ec2/describe-key-pairs/$id",getParentRoute:()=>Dn}),_ve=tve.update({id:"/ec2/(instances)/describe-instances/$id",path:"/ec2/describe-instances/$id",getParentRoute:()=>Dn}),wve=sve.update({id:"/ec2/(images)/describe-images/$id",path:"/ec2/describe-images/$id",getParentRoute:()=>Dn}),xve={AuthS3LsBucketSplatRoute:yve,AuthS3LsBucketIndexRoute:dve},Eve=Mw._addFileChildren(xve),Rve={AuthIndexRoute:ove,AuthS3LsBucketRouteRoute:Eve,AuthEc2instancesRunInstancesRoute:fve,AuthEc2keyCreateKeyPairRoute:uve,AuthEc2keyImportKeyPairRoute:lve,AuthEc2volumesCreateVolumeRoute:cve,AuthS3bucketsCreateBucketRoute:ave,AuthS3LsIndexRoute:ive,AuthEc2imagesDescribeImagesIdRoute:wve,AuthEc2instancesDescribeInstancesIdRoute:_ve,AuthEc2keyDescribeKeyPairsIdRoute:Sve,AuthEc2volumesDescribeVolumesIdRoute:vve,AuthEc2volumesModifyVolumeIdRoute:bve,AuthEc2imagesDescribeImagesIndexRoute:gve,AuthEc2instancesDescribeInstancesIndexRoute:mve,AuthEc2keyDescribeKeyPairsIndexRoute:pve,AuthEc2volumesDescribeVolumesIndexRoute:hve},Cve=Dn._addFileChildren(Rve),Tve={AuthRouteRoute:Cve,LoginRoute:rve},Ave=Ow._addFileChildren(Tve)._addFileTypes(),Lz=new EB({defaultOptions:{queries:{staleTime:5e3}}}),Ive=C$({routeTree:Ave,context:{queryClient:Lz},defaultPreload:"intent",scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),pb=document.getElementById("app");pb&&!pb.innerHTML&&j$.createRoot(pb).render(U.jsx(O.StrictMode,{children:U.jsx(V$,{defaultTheme:"system",storageKey:"hive-ui-theme",children:U.jsx(CB,{client:Lz,children:U.jsx(h7,{children:U.jsx(I$,{router:Ive})})})})}));export{NO as $,Kve as A,cl as B,Gp as C,Tf as D,Ns as E,pt as F,RC as G,qe as H,v0 as I,go as J,Ht as K,Dr as L,gt as M,Qve as N,g2 as O,dn as P,bs as Q,dO as R,a8 as S,c8 as T,Ao as U,ot as V,$ve as W,j8 as X,gH as Y,lr as Z,M9 as _,sn as a,YQ as a$,fO as a0,Mv as a1,z9 as a2,OO as a3,HO as a4,Up as a5,QO as a6,tp as a7,eSe as a8,yO as a9,Fve as aA,zz as aB,bbe as aC,hbe as aD,Kbe as aE,Z5 as aF,qve as aG,Y5 as aH,ja as aI,oSe as aJ,Ur as aK,S_ as aL,Oo as aM,RSe as aN,Hve as aO,Oz as aP,xT as aQ,zi as aR,Xb as aS,bSe as aT,zN as aU,mY as aV,Rp as aW,Fa as aX,WD as aY,JD as aZ,qQ as a_,Dv as aa,I2 as ab,ur as ac,Xve as ad,Jve as ae,Y8 as af,uj as ag,Uve as ah,pH as ai,KH as aj,iH as ak,oH as al,sM as am,Cf as an,mn as ao,G2 as ap,Bi as aq,mj as ar,Wve as as,Ov as at,nH as au,Yve as av,Dz as aw,Pz as ax,mbe as ay,Lbe as az,JG as b,gSe as b$,VQ as b0,vSe as b1,gf as b2,On as b3,Sr as b4,ySe as b5,nS as b6,d_ as b7,SSe as b8,_Se as b9,Q5 as bA,Jbe as bB,gbe as bC,Va as bD,vH as bE,yH as bF,pO as bG,rH as bH,wH as bI,J8 as bJ,W8 as bK,aH as bL,X8 as bM,tve as bN,pbe as bO,kz as bP,Sl as bQ,iSe as bR,aSe as bS,cSe as bT,lSe as bU,uSe as bV,fSe as bW,dSe as bX,hSe as bY,pSe as bZ,mSe as b_,wSe as ba,xSe as bb,ESe as bc,CSe as bd,TSe as be,ASe as bf,Mve as bg,Ove as bh,jD as bi,cQ as bj,_p as bk,VI as bl,Ybe as bm,Nz as bn,sSe as bo,yT as bp,w2 as bq,Ev as br,St as bs,ol as bt,tSe as bu,nSe as bv,pM as bw,C2 as bx,Xbe as by,jve as bz,Tt as c,qr as c0,kp as c1,Dve as c2,af as c3,_B as c4,is as c5,_r as c6,kve as c7,sve as c8,x2 as c9,dB as ca,rB as cb,gb as cc,Pp as cd,nB as ce,sB as cf,mb as cg,UI as ch,bB as ci,aB as cj,Ka as ck,Co as cl,_be as d,ybe as e,mT as f,xr as g,o8 as h,Zve as i,U as j,Vve as k,Gve as l,gh as m,uO as n,IG as o,ll as p,ff as q,O as r,rSe as s,fp as t,$p as u,l8 as v,Kt as w,Cv as x,Mb as y,Pr as z}; +${_s(l)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const n=[];for(const c of t.split("/"))c?.length!==0&&c!=="."&&(c===".."?n.pop():n.push(c));const r=`${t?.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&t?.endsWith("/")?"/":""}`;return tc(r).replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(t){const n=hX(t).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}}class Rv extends gX{headerFormatter=new cX;constructor({applyChecksum:t,credentials:n,region:r,service:i,sha256:c,uriEscapePath:l=!0}){super({applyChecksum:t,credentials:n,region:r,service:i,sha256:c,uriEscapePath:l})}async presign(t,n={}){const{signingDate:r=new Date,expiresIn:i=3600,unsignableHeaders:c,unhoistableHeaders:l,signableHeaders:f,hoistableHeaders:d,signingRegion:p,signingService:b}=n,g=await this.credentialProvider();this.validateResolvedCredentials(g);const v=p??await this.regionProvider(),{longDate:S,shortDate:w}=this.formatDate(r);if(i>oX)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const E=yb(w,v,b??this.service),R=dX(PT(t),{unhoistableHeaders:l,hoistableHeaders:d});g.sessionToken&&(R.query[pk]=g.sessionToken),R.query[qY]=mb,R.query[GY]=`${g.accessKeyId}/${E}`,R.query[fk]=S,R.query[KY]=i.toString(10);const C=MT(R,c,f);return R.query[ZY]=this.getCanonicalHeaderList(C),R.query[dk]=await this.getSignature(S,E,this.getSigningKey(g,v,w,b),this.createCanonicalRequest(R,C,await bb(t,this.sha256))),R}async sign(t,n){return typeof t=="string"?this.signString(t,n):t.headers&&t.payload?this.signEvent(t,n):t.message?this.signMessage(t,n):this.signRequest(t,n)}async signEvent({headers:t,payload:n},{signingDate:r=new Date,priorSignature:i,signingRegion:c,signingService:l}){const f=c??await this.regionProvider(),{shortDate:d,longDate:p}=this.formatDate(r),b=yb(d,f,l??this.service),g=await bb({headers:{},body:n},this.sha256),v=new this.sha256;v.update(t);const S=_s(await v.digest()),w=[nX,p,b,i,S,g].join(` +`);return this.signString(w,{signingDate:r,signingRegion:f,signingService:l})}async signMessage(t,{signingDate:n=new Date,signingRegion:r,signingService:i}){return this.signEvent({headers:this.headerFormatter.format(t.message.headers),payload:t.message.body},{signingDate:n,signingRegion:r,signingService:i,priorSignature:t.priorSignature}).then(l=>({message:t.message,signature:l}))}async signString(t,{signingDate:n=new Date,signingRegion:r,signingService:i}={}){const c=await this.credentialProvider();this.validateResolvedCredentials(c);const l=r??await this.regionProvider(),{shortDate:f}=this.formatDate(n),d=new this.sha256(await this.getSigningKey(c,l,f,i));return d.update($f(t)),_s(await d.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:r,unsignableHeaders:i,signingRegion:c,signingService:l}={}){const f=await this.credentialProvider();this.validateResolvedCredentials(f);const d=c??await this.regionProvider(),p=PT(t),{longDate:b,shortDate:g}=this.formatDate(n),v=yb(g,d,l??this.service);p.headers[mk]=b,f.sessionToken&&(p.headers[WY]=f.sessionToken);const S=await bb(p,this.sha256);!fX(xv,p.headers)&&this.applyChecksum&&(p.headers[xv]=S);const w=MT(p,i,r),E=await this.getSignature(b,v,this.getSigningKey(f,d,g,l),this.createCanonicalRequest(p,w,S));return p.headers[hk]=`${mb} Credential=${f.accessKeyId}/${v}, SignedHeaders=${this.getCanonicalHeaderList(w)}, Signature=${E}`,p}async getSignature(t,n,r,i){const c=await this.createStringToSign(t,n,i,mb),l=new this.sha256(await r);return l.update($f(c)),_s(await l.digest())}getSigningKey(t,n,r,i){return iX(this.sha256,t,r,n,i||this.service)}}const bk=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(p){p&&p!==t&&p!==r&&(n=!0),t=p;const b=yX(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}),g=bX(e,b);if(n&&!g.attributed){const v=typeof t=="object"&&t!==null;r=async S=>{const E=await g(S);return v&&(!E.$source||Object.keys(E.$source).length===0)?UY(E,"CREDENTIALS_CODE","e"):E},r.memoized=g.memoized,r.configBound=g.configBound,r.attributed=!0}else r=g},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;const{signingEscapePath:i=!0,systemClockOffset:c=e.systemClockOffset||0,sha256:l}=e;let f;return e.signer?f=wl(e.signer):e.regionInfoProvider?f=()=>wl(e.region)().then(async p=>[await e.regionInfoProvider(p,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},p]).then(([p,b])=>{const{signingRegion:g,signingService:v}=p;e.signingRegion=e.signingRegion||g||b,e.signingName=e.signingName||v||e.serviceId;const S={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:l,uriEscapePath:i},w=e.signerConstructor||Rv;return new w(S)}):f=async p=>{p=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await wl(e.region)(),properties:{}},p);const b=p.signingRegion,g=p.signingName;e.signingRegion=e.signingRegion||b,e.signingName=e.signingName||g||e.serviceId;const v={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:l,uriEscapePath:i},S=e.signerConstructor||Rv;return new S(v)},Object.assign(e,{systemClockOffset:c,signingEscapePath:i,signer:f})};function yX(e,{credentials:t,credentialDefaultProvider:n}){let r;return t?t?.memoized?r=t:r=fY(t,uY,YD):n?r=wl(n(Object.assign({},e,{parentClientConfig:e}))):r=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function bX(e,t){if(t.configBound)return t;const n=async r=>t({...r,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}const NT=typeof TextEncoder=="function"?new TextEncoder:null,vk=e=>{if(typeof e=="string"){if(NT)return NT.encode(e).byteLength;let t=e.length;for(let n=t-1;n>=0;n--){const r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}else{if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size}throw new Error(`Body Length computation failed for ${e}`)},qa=(e,t)=>{const n=[];if(e&&n.push(e),t)for(const r of t)n.push(r);return n},Ui=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,rm=()=>{let e=[],t=[],n=!1;const r=new Set,i=g=>g.sort((v,S)=>LT[S.step]-LT[v.step]||zT[S.priority||"normal"]-zT[v.priority||"normal"]),c=g=>{let v=!1;const S=w=>{const E=qa(w.name,w.aliases);if(E.includes(g)){v=!0;for(const R of E)r.delete(R);return!1}return!0};return e=e.filter(S),t=t.filter(S),v},l=g=>{let v=!1;const S=w=>{if(w.middleware===g){v=!0;for(const E of qa(w.name,w.aliases))r.delete(E);return!1}return!0};return e=e.filter(S),t=t.filter(S),v},f=g=>(e.forEach(v=>{g.add(v.middleware,{...v})}),t.forEach(v=>{g.addRelativeTo(v.middleware,{...v})}),g.identifyOnResolve?.(b.identifyOnResolve()),g),d=g=>{const v=[];return g.before.forEach(S=>{S.before.length===0&&S.after.length===0?v.push(S):v.push(...d(S))}),v.push(g),g.after.reverse().forEach(S=>{S.before.length===0&&S.after.length===0?v.push(S):v.push(...d(S))}),v},p=(g=!1)=>{const v=[],S=[],w={};return e.forEach(R=>{const C={...R,before:[],after:[]};for(const O of qa(C.name,C.aliases))w[O]=C;v.push(C)}),t.forEach(R=>{const C={...R,before:[],after:[]};for(const O of qa(C.name,C.aliases))w[O]=C;S.push(C)}),S.forEach(R=>{if(R.toMiddleware){const C=w[R.toMiddleware];if(C===void 0){if(g)return;throw new Error(`${R.toMiddleware} is not found when adding ${Ui(R.name,R.aliases)} middleware ${R.relation} ${R.toMiddleware}`)}R.relation==="after"&&C.after.push(R),R.relation==="before"&&C.before.push(R)}}),i(v).map(d).reduce((R,C)=>(R.push(...C),R),[])},b={add:(g,v={})=>{const{name:S,override:w,aliases:E}=v,R={step:"initialize",priority:"normal",middleware:g,...v},C=qa(S,E);if(C.length>0){if(C.some(O=>r.has(O))){if(!w)throw new Error(`Duplicate middleware name '${Ui(S,E)}'`);for(const O of C){const k=e.findIndex($=>$.name===O||$.aliases?.some(j=>j===O));if(k===-1)continue;const T=e[k];if(T.step!==R.step||R.priority!==T.priority)throw new Error(`"${Ui(T.name,T.aliases)}" middleware with ${T.priority} priority in ${T.step} step cannot be overridden by "${Ui(S,E)}" middleware with ${R.priority} priority in ${R.step} step.`);e.splice(k,1)}}for(const O of C)r.add(O)}e.push(R)},addRelativeTo:(g,v)=>{const{name:S,override:w,aliases:E}=v,R={middleware:g,...v},C=qa(S,E);if(C.length>0){if(C.some(O=>r.has(O))){if(!w)throw new Error(`Duplicate middleware name '${Ui(S,E)}'`);for(const O of C){const k=t.findIndex($=>$.name===O||$.aliases?.some(j=>j===O));if(k===-1)continue;const T=t[k];if(T.toMiddleware!==R.toMiddleware||T.relation!==R.relation)throw new Error(`"${Ui(T.name,T.aliases)}" middleware ${T.relation} "${T.toMiddleware}" middleware cannot be overridden by "${Ui(S,E)}" middleware ${R.relation} "${R.toMiddleware}" middleware.`);t.splice(k,1)}}for(const O of C)r.add(O)}t.push(R)},clone:()=>f(rm()),use:g=>{g.applyToStack(b)},remove:g=>typeof g=="string"?c(g):l(g),removeByTag:g=>{let v=!1;const S=w=>{const{tags:E,name:R,aliases:C}=w;if(E&&E.includes(g)){const O=qa(R,C);for(const k of O)r.delete(k);return v=!0,!1}return!0};return e=e.filter(S),t=t.filter(S),v},concat:g=>{const v=f(rm());return v.use(g),v.identifyOnResolve(n||v.identifyOnResolve()||(g.identifyOnResolve?.()??!1)),v},applyToStack:f,identify:()=>p(!0).map(g=>{const v=g.step??g.relation+" "+g.toMiddleware;return Ui(g.name,g.aliases)+" - "+v}),identifyOnResolve(g){return typeof g=="boolean"&&(n=g),n},resolve:(g,v)=>{for(const S of p().map(w=>w.middleware).reverse())g=S(g,v);return n&&console.log(b.identify()),g}};return b},LT={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},zT={high:3,normal:2,low:1};class Sk{config;middlewareStack=rm();initConfig;handlers;constructor(t){this.config=t;const{protocol:n,protocolSettings:r}=t;r&&typeof n=="function"&&(t.protocol=new n(r))}send(t,n,r){const i=typeof n!="function"?n:void 0,c=typeof n=="function"?n:r,l=i===void 0&&this.config.cacheMiddleware===!0;let f;if(l){this.handlers||(this.handlers=new WeakMap);const d=this.handlers;d.has(t.constructor)?f=d.get(t.constructor):(f=t.resolveMiddleware(this.middlewareStack,this.config,i),d.set(t.constructor,f))}else delete this.handlers,f=t.resolveMiddleware(this.middlewareStack,this.config,i);if(c)f(t).then(d=>c(null,d.output),d=>c(d)).catch(()=>{});else return f(t).then(d=>d.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}const vb="***SensitiveInformation***";function Cv(e,t){if(t==null)return t;const n=Ct.of(e);if(n.getMergedTraits().sensitive)return vb;if(n.isListSchema()){if(!!n.getValueSchema().getMergedTraits().sensitive)return vb}else if(n.isMapSchema()){if(!!n.getKeySchema().getMergedTraits().sensitive||!!n.getValueSchema().getMergedTraits().sensitive)return vb}else if(n.isStructSchema()&&typeof t=="object"){const r=t,i={};for(const[c,l]of n.structIterator())r[c]!=null&&(i[c]=Cv(l,r[c]));return i}return t}class Cs{middlewareStack=rm();schema;static classBuilder(){return new vX}resolveMiddlewareWithContext(t,n,r,{middlewareFn:i,clientName:c,commandName:l,inputFilterSensitiveLog:f,outputFilterSensitiveLog:d,smithyContext:p,additionalContext:b,CommandCtor:g}){for(const R of i.bind(this)(g,t,n,r))this.middlewareStack.use(R);const v=t.concat(this.middlewareStack),{logger:S}=n,w={logger:S,clientName:c,commandName:l,inputFilterSensitiveLog:f,outputFilterSensitiveLog:d,[_v]:{commandInstance:this,...p},...b},{requestHandler:E}=n;return v.resolve(R=>E.handle(R.request,r||{}),w)}}class vX{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,n,r={}){return this._smithyContext={service:t,operation:n,...r},this}c(t={}){return this._additionalContext=t,this}n(t,n){return this._clientName=t,this._commandName=n,this}f(t=r=>r,n=r=>r){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=n,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}sc(t){return this._operationSchema=t,this._smithyContext.operationSchema=t,this}build(){const t=this;let n;return n=class extends Cs{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[r]){super(),this.input=r??{},t._init(this),this.schema=t._operationSchema}resolveMiddleware(r,i,c){const l=t._operationSchema,f=l?.[4]??l?.input,d=l?.[5]??l?.output;return this.resolveMiddlewareWithContext(r,i,c,{CommandCtor:n,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(l?Cv.bind(null,f):p=>p),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(l?Cv.bind(null,d):p=>p),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}class Ya extends Error{$fault;$response;$retryable;$metadata;constructor(t){super(t.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}static isInstance(t){if(!t)return!1;const n=t;return Ya.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault==="client"||n.$fault==="server")}static[Symbol.hasInstance](t){if(!t)return!1;const n=t;return this===Ya?Ya.isInstance(t):Ya.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}}const BT=(e,t={})=>{Object.entries(t).filter(([,r])=>r!==void 0).forEach(([r,i])=>{(e[r]==null||e[r]==="")&&(e[r]=i)});const n=e.message||e.Message||"UnknownError";return e.message=n,delete e.Message,e},_k=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},SX=e=>{const t=[];for(const n in em){const r=em[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}return{addChecksumAlgorithm(n){t.push(n)},checksumAlgorithms(){return t}}},_X=e=>{const t={};return e.checksumAlgorithms().forEach(n=>{t[n.algorithmId()]=n.checksumConstructor()}),t},wX=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),EX=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t},wk=e=>Object.assign(SX(e),wX(e)),Ek=e=>Object.assign(_X(e),EX(e)),xk=e=>{const t="#text";for(const n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]=="object"&&e[n]!==null&&(e[n]=xk(e[n]));return e};class NS{trace(){}debug(){}info(){}warn(){}error(){}}class Rk{queryCompat;constructor(t=!1){this.queryCompat=t}resolveRestContentType(t,n){const r=n.getMemberSchemas(),i=Object.values(r).find(c=>!!c.getMergedTraits().httpPayload);if(i){const c=i.getMergedTraits().mediaType;return c||(i.isStringSchema()?"text/plain":i.isBlobSchema()?"application/octet-stream":t)}else if(!n.isUnitSchema()&&Object.values(r).find(l=>{const{httpQuery:f,httpQueryParams:d,httpHeader:p,httpLabel:b,httpPrefixHeaders:g}=l.getMergedTraits();return!f&&!d&&!p&&!b&&g===void 0}))return t}async getErrorSchemaOrThrowBaseException(t,n,r,i,c,l){let f=n,d=t;t.includes("#")&&([f,d]=t.split("#"));const p={$metadata:c,$fault:r.statusCode<500?"client":"server"},b=ts.for(f);try{return{errorSchema:l?.(b,d)??b.getSchema(t),errorMetadata:p}}catch{i.message=i.message??i.Message??"UnknownError";const v=ts.for("smithy.ts.sdk.synthetic."+f),S=v.getBaseException();if(S){const w=v.getErrorCtor(S)??Error;throw this.decorateServiceException(Object.assign(new w({name:d}),p),i)}throw this.decorateServiceException(Object.assign(new Error(d),p),i)}}decorateServiceException(t,n={}){if(this.queryCompat){const r=t.Message??n.Message,i=BT(t,n);r&&(i.message=r),i.Error={...i.Error,Type:i.Error.Type,Code:i.Error.Code,Message:i.Error.message??i.Error.Message??r};const c=i.$metadata.requestId;return c&&(i.RequestId=c),i}return BT(t,n)}setQueryCompatError(t,n){const r=n.headers?.["x-amzn-query-error"];if(t!==void 0&&r!=null){const[i,c]=r.split(";"),l=Object.entries(t),f={Code:i,Type:c};Object.assign(t,f);for(const[d,p]of l)f[d==="message"?"Message":d]=p;delete f.__type,t.Error=f}}queryCompatOutput(t,n){t.Error&&(n.Error=t.Error),t.Type&&(n.Type=t.Type),t.Code&&(n.Code=t.Code)}findQueryCompatibleError(t,n){try{return t.getSchema(n)}catch{return t.find(i=>Ct.of(i).getMergedTraits().awsQueryError?.[0]===n)}}}class Vm{serdeContext;setSerdeContext(t){this.serdeContext=t}}class xX{from;to;keys;constructor(t,n){this.from=t,this.to=n,this.keys=new Set(Object.keys(this.from).filter(r=>r!=="__type"))}mark(t){this.keys.delete(t)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const t=this.keys.values().next().value,n=this.from[t];this.to.$unknown=[t,n]}}}function RX(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function CX(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}class Av{value;constructor(t){this.value=t}toString(){return CX(""+this.value)}}class as{name;children;attributes={};static of(t,n,r){const i=new as(t);return n!==void 0&&i.addChildNode(new Av(n)),r!==void 0&&i.withName(r),i}constructor(t,n=[]){this.name=t,this.children=n}withName(t){return this.name=t,this}addAttribute(t,n){return this.attributes[t]=n,this}addChildNode(t){return this.children.push(t),this}removeAttribute(t){return delete this.attributes[t],this}n(t){return this.name=t,this}c(t){return this.children.push(t),this}a(t,n){return n!=null&&(this.attributes[t]=n),this}cc(t,n,r=n){if(t[n]!=null){const i=as.of(n,t[n]).withName(r);this.c(i)}}l(t,n,r,i){t[n]!=null&&i().map(l=>{l.withName(r),this.c(l)})}lc(t,n,r,i){if(t[n]!=null){const c=i(),l=new as(r);c.map(f=>{l.c(f)}),this.c(l)}}toString(){const t=!!this.children.length;let n=`<${this.name}`;const r=this.attributes;for(const i of Object.keys(r)){const c=r[i];c!=null&&(n+=` ${i}="${RX(""+c)}"`)}return n+=t?`>${this.children.map(i=>i.toString()).join("")}`:"/>"}}let Sb;function AX(e){Sb||(Sb=new DOMParser);const t=Sb.parseFromString(e,"application/xml");if(t.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");const n=r=>{if(r.nodeType===Node.TEXT_NODE&&r.textContent?.trim())return r.textContent;if(r.nodeType===Node.ELEMENT_NODE){const i=r;if(i.attributes.length===0&&i.childNodes.length===0)return"";const c={},l=Array.from(i.attributes);for(const d of l)c[`${d.name}`]=d.value;const f=Array.from(i.childNodes);for(const d of f){const p=n(d);if(p!=null){const b=d.nodeName;if(f.length===1&&l.length===0&&b==="#text")return p;c[b]?Array.isArray(c[b])?c[b].push(p):c[b]=[c[b],p]:c[b]=p}else if(f.length===1&&l.length===0)return i.textContent}return c}return null};return{[t.documentElement.nodeName]:n(t.documentElement)}}class Ck extends Vm{settings;stringDeserializer;constructor(t){super(),this.settings=t,this.stringDeserializer=new KD(t)}setSerdeContext(t){this.serdeContext=t,this.stringDeserializer.setSerdeContext(t)}read(t,n,r){const i=Ct.of(t),c=i.getMemberSchemas();if(i.isStructSchema()&&i.isMemberSchema()&&!!Object.values(c).find(p=>!!p.getMemberTraits().eventPayload)){const p={},b=Object.keys(c)[0];return c[b].isBlobSchema()?p[b]=n:p[b]=this.read(c[b],n),p}const f=(this.serdeContext?.utf8Encoder??pc)(n),d=this.parseXml(f);return this.readSchema(t,r?d[r]:d)}readSchema(t,n){const r=Ct.of(t);if(r.isUnitSchema())return;const i=r.getMergedTraits();if(r.isListSchema()&&!Array.isArray(n))return this.readSchema(r,[n]);if(n==null)return n;if(typeof n=="object"){const c=!!i.sparse,l=!!i.xmlFlattened;if(r.isListSchema()){const d=r.getValueSchema(),p=[],b=d.getMergedTraits().xmlName??"member",g=l?n:(n[0]??n)[b],v=Array.isArray(g)?g:[g];for(const S of v)(S!=null||c)&&p.push(this.readSchema(d,S));return p}const f={};if(r.isMapSchema()){const d=r.getKeySchema(),p=r.getValueSchema();let b;l?b=Array.isArray(n)?n:[n]:b=Array.isArray(n.entry)?n.entry:[n.entry];const g=d.getMergedTraits().xmlName??"key",v=p.getMergedTraits().xmlName??"value";for(const S of b){const w=S[g],E=S[v];(E!=null||c)&&(f[w]=this.readSchema(p,E))}return f}if(r.isStructSchema()){const d=r.isUnionSchema();let p;d&&(p=new xX(n,f));for(const[b,g]of r.structIterator()){const v=g.getMergedTraits(),S=v.httpPayload?v.xmlName??g.getName():g.getMemberTraits().xmlName??b;d&&p.mark(S),n[S]!=null&&(f[b]=this.readSchema(g,n[S]))}return d&&p.writeUnknown(),f}if(r.isDocumentSchema())return n;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${r.getName(!0)}`)}return r.isListSchema()?[]:r.isMapSchema()||r.isStructSchema()?{}:this.stringDeserializer.read(r,n)}parseXml(t){if(t.length){let n;try{n=AX(t)}catch(l){throw l&&typeof l=="object"&&Object.defineProperty(l,"$responseBodyText",{value:t}),l}const r="#text",i=Object.keys(n)[0],c=n[i];return c[r]&&(c[i]=c[r],delete c[r]),xk(c)}return{}}}class TX extends Vm{settings;buffer;constructor(t){super(),this.settings=t}write(t,n,r=""){this.buffer===void 0&&(this.buffer="");const i=Ct.of(t);if(r&&!r.endsWith(".")&&(r+="."),i.isBlobSchema())(typeof n=="string"||n instanceof Uint8Array)&&(this.writeKey(r),this.writeValue((this.serdeContext?.base64Encoder??ea)(n)));else if(i.isBooleanSchema()||i.isNumericSchema()||i.isStringSchema())n!=null?(this.writeKey(r),this.writeValue(String(n))):i.isIdempotencyToken()&&(this.writeKey(r),this.writeValue($m()));else if(i.isBigIntegerSchema())n!=null&&(this.writeKey(r),this.writeValue(String(n)));else if(i.isBigDecimalSchema())n!=null&&(this.writeKey(r),this.writeValue(n instanceof Wf?n.string:String(n)));else if(i.isTimestampSchema()){if(n instanceof Date)switch(this.writeKey(r),jm(i,this.settings)){case 5:this.writeValue(n.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(nm(n));break;case 7:this.writeValue(String(n.getTime()/1e3));break}}else if(i.isDocumentSchema())Array.isArray(n)?this.write(79,n,r):n instanceof Date?this.write(4,n,r):n instanceof Uint8Array?this.write(21,n,r):n&&typeof n=="object"?this.write(143,n,r):(this.writeKey(r),this.writeValue(String(n)));else if(i.isListSchema()){if(Array.isArray(n))if(n.length===0)this.settings.serializeEmptyLists&&(this.writeKey(r),this.writeValue(""));else{const c=i.getValueSchema(),l=this.settings.flattenLists||i.getMergedTraits().xmlFlattened;let f=1;for(const d of n){if(d==null)continue;const p=c.getMergedTraits(),b=this.getKey("member",p.xmlName,p.ec2QueryName),g=l?`${r}${f}`:`${r}${b}.${f}`;this.write(c,d,g),++f}}}else if(i.isMapSchema()){if(n&&typeof n=="object"){const c=i.getKeySchema(),l=i.getValueSchema(),f=i.getMergedTraits().xmlFlattened;let d=1;for(const[p,b]of Object.entries(n)){if(b==null)continue;const g=c.getMergedTraits(),v=this.getKey("key",g.xmlName,g.ec2QueryName),S=f?`${r}${d}.${v}`:`${r}entry.${d}.${v}`,w=l.getMergedTraits(),E=this.getKey("value",w.xmlName,w.ec2QueryName),R=f?`${r}${d}.${E}`:`${r}entry.${d}.${E}`;this.write(c,p,S),this.write(l,b,R),++d}}}else if(i.isStructSchema()){if(n&&typeof n=="object"){let c=!1;for(const[l,f]of i.structIterator()){if(n[l]==null&&!f.isIdempotencyToken())continue;const d=f.getMergedTraits(),p=this.getKey(l,d.xmlName,d.ec2QueryName,"struct"),b=`${r}${p}`;this.write(f,n[l],b),c=!0}if(!c&&i.isUnionSchema()){const{$unknown:l}=n;if(Array.isArray(l)){const[f,d]=l,p=`${r}${f}`;this.write(15,d,p)}}}}else if(!i.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${i.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");const t=this.buffer;return delete this.buffer,t}getKey(t,n,r,i){const{ec2:c,capitalizeKeys:l}=this.settings;if(c&&r)return r;const f=n??t;return l&&i==="struct"?f[0].toUpperCase()+f.slice(1):f}writeKey(t){t.endsWith(".")&&(t=t.slice(0,t.length-1)),this.buffer+=`&${tm(t)}=`}writeValue(t){this.buffer+=tm(t)}}class IX extends sY{options;serializer;deserializer;mixin=new Rk;constructor(t){super({defaultNamespace:t.defaultNamespace}),this.options=t;const n={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace,serializeEmptyLists:!0};this.serializer=new TX(n),this.deserializer=new Ck(n)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(t){this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(t,n,r){const i=await super.serializeRequest(t,n,r);i.path.endsWith("/")||(i.path+="/"),Object.assign(i.headers,{"content-type":"application/x-www-form-urlencoded"}),(wh(t.input)==="unit"||!i.body)&&(i.body="");const c=t.name.split("#")[1]??t.name;return i.body=`Action=${c}&Version=${this.options.version}`+i.body,i.body.endsWith("&")&&(i.body=i.body.slice(-1)),i}async deserializeResponse(t,n,r){const i=this.deserializer,c=Ct.of(t.output),l={};if(r.statusCode>=300){const g=await Qi(r.body,n);g.byteLength>0&&Object.assign(l,await i.read(15,g)),await this.handleError(t,n,r,l,this.deserializeMetadata(r))}for(const g in r.headers){const v=r.headers[g];delete r.headers[g],r.headers[g.toLowerCase()]=v}const f=t.name.split("#")[1]??t.name,d=c.isStructSchema()&&this.useNestedResult()?f+"Result":void 0,p=await Qi(r.body,n);return p.byteLength>0&&Object.assign(l,await i.read(c,p,d)),{$metadata:this.deserializeMetadata(r),...l}}useNestedResult(){return!0}async handleError(t,n,r,i,c){const l=this.loadQueryErrorCode(r,i)??"Unknown",f=this.loadQueryError(i),d=this.loadQueryErrorMessage(i);f.message=d,f.Error={Type:f.Type,Code:f.Code,Message:d};const{errorSchema:p,errorMetadata:b}=await this.mixin.getErrorSchemaOrThrowBaseException(l,this.options.defaultNamespace,r,f,c,this.mixin.findQueryCompatibleError),g=Ct.of(p),v=ts.for(p[1]).getErrorCtor(p)??Error,S=new v(d),w={Type:f.Error.Type,Code:f.Error.Code,Error:f.Error};for(const[E,R]of g.structIterator()){const C=R.getMergedTraits().xmlName??E,O=f[C]??i[C];w[E]=this.deserializer.readSchema(R,O)}throw this.mixin.decorateServiceException(Object.assign(S,b,{$fault:g.getMergedTraits().error,message:d},w),i)}loadQueryErrorCode(t,n){const r=(n.Errors?.[0]?.Error??n.Errors?.Error??n.Error)?.Code;if(r!==void 0)return r;if(t.statusCode==404)return"NotFound"}loadQueryError(t){return t.Errors?.[0]?.Error??t.Errors?.Error??t.Error}loadQueryErrorMessage(t){const n=this.loadQueryError(t);return n?.message??n?.Message??t.message??t.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class OX extends IX{options;constructor(t){super(t),this.options=t;const n={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,n)}useNestedResult(){return!1}}const MX=(e,t)=>{if(t?.Error?.Code!==void 0)return t.Error.Code;if(t?.Code!==void 0)return t.Code;if(e.statusCode==404)return"NotFound"};class DX extends Vm{settings;stringBuffer;byteBuffer;buffer;constructor(t){super(),this.settings=t}write(t,n){const r=Ct.of(t);if(r.isStringSchema()&&typeof n=="string")this.stringBuffer=n;else if(r.isBlobSchema())this.byteBuffer="byteLength"in n?n:(this.serdeContext?.base64Decoder??cc)(n);else{this.buffer=this.writeStruct(r,n,void 0);const i=r.getMergedTraits();i.httpPayload&&!i.xmlName&&this.buffer.withName(r.getName())}}flush(){if(this.byteBuffer!==void 0){const n=this.byteBuffer;return delete this.byteBuffer,n}if(this.stringBuffer!==void 0){const n=this.stringBuffer;return delete this.stringBuffer,n}const t=this.buffer;return this.settings.xmlNamespace&&(t?.attributes?.xmlns||t.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,t.toString()}writeStruct(t,n,r){const i=t.getMergedTraits(),c=t.isMemberSchema()&&!i.httpPayload?t.getMemberTraits().xmlName??t.getMemberName():i.xmlName??t.getName();if(!c||!t.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${t.getName(!0)}.`);const l=as.of(c),[f,d]=this.getXmlnsAttribute(t,r);for(const[b,g]of t.structIterator()){const v=n[b];if(v!=null||g.isIdempotencyToken()){if(g.getMergedTraits().xmlAttribute){l.addAttribute(g.getMergedTraits().xmlName??b,this.writeSimple(g,v));continue}if(g.isListSchema())this.writeList(g,v,l,d);else if(g.isMapSchema())this.writeMap(g,v,l,d);else if(g.isStructSchema())l.addChildNode(this.writeStruct(g,v,d));else{const S=as.of(g.getMergedTraits().xmlName??g.getMemberName());this.writeSimpleInto(g,v,S,d),l.addChildNode(S)}}}const{$unknown:p}=n;if(p&&t.isUnionSchema()&&Array.isArray(p)&&Object.keys(n).length===1){const[b,g]=p,v=as.of(b);if(typeof g!="string")if(n instanceof as||n instanceof Av)l.addChildNode(n);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,g,v,d),l.addChildNode(v)}return d&&l.addAttribute(f,d),l}writeList(t,n,r,i){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${t.getName(!0)}`);const c=t.getMergedTraits(),l=t.getValueSchema(),f=l.getMergedTraits(),d=!!f.sparse,p=!!c.xmlFlattened,[b,g]=this.getXmlnsAttribute(t,i),v=(S,w)=>{if(l.isListSchema())this.writeList(l,Array.isArray(w)?w:[w],S,g);else if(l.isMapSchema())this.writeMap(l,w,S,g);else if(l.isStructSchema()){const E=this.writeStruct(l,w,g);S.addChildNode(E.withName(p?c.xmlName??t.getMemberName():f.xmlName??"member"))}else{const E=as.of(p?c.xmlName??t.getMemberName():f.xmlName??"member");this.writeSimpleInto(l,w,E,g),S.addChildNode(E)}};if(p)for(const S of n)(d||S!=null)&&v(r,S);else{const S=as.of(c.xmlName??t.getMemberName());g&&S.addAttribute(b,g);for(const w of n)(d||w!=null)&&v(S,w);r.addChildNode(S)}}writeMap(t,n,r,i,c=!1){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${t.getName(!0)}`);const l=t.getMergedTraits(),f=t.getKeySchema(),p=f.getMergedTraits().xmlName??"key",b=t.getValueSchema(),g=b.getMergedTraits(),v=g.xmlName??"value",S=!!g.sparse,w=!!l.xmlFlattened,[E,R]=this.getXmlnsAttribute(t,i),C=(O,k,T)=>{const $=as.of(p,k),[j,H]=this.getXmlnsAttribute(f,R);H&&$.addAttribute(j,H),O.addChildNode($);let P=as.of(v);b.isListSchema()?this.writeList(b,T,P,R):b.isMapSchema()?this.writeMap(b,T,P,R,!0):b.isStructSchema()?P=this.writeStruct(b,T,R):this.writeSimpleInto(b,T,P,R),O.addChildNode(P)};if(w){for(const[O,k]of Object.entries(n))if(S||k!=null){const T=as.of(l.xmlName??t.getMemberName());C(T,O,k),r.addChildNode(T)}}else{let O;c||(O=as.of(l.xmlName??t.getMemberName()),R&&O.addAttribute(E,R),r.addChildNode(O));for(const[k,T]of Object.entries(n))if(S||T!=null){const $=as.of("entry");C($,k,T),(c?r:O).addChildNode($)}}}writeSimple(t,n){if(n===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");const r=Ct.of(t);let i=null;if(n&&typeof n=="object")if(r.isBlobSchema())i=(this.serdeContext?.base64Encoder??ea)(n);else if(r.isTimestampSchema()&&n instanceof Date)switch(jm(r,this.settings)){case 5:i=n.toISOString().replace(".000Z","Z");break;case 6:i=nm(n);break;case 7:i=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",n),i=nm(n);break}else{if(r.isBigDecimalSchema()&&n)return n instanceof Wf?n.string:String(n);throw r.isMapSchema()||r.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${r.getName(!0)}`)}if((r.isBooleanSchema()||r.isNumericSchema()||r.isBigIntegerSchema()||r.isBigDecimalSchema())&&(i=String(n)),r.isStringSchema()&&(n===void 0&&r.isIdempotencyToken()?i=$m():i=String(n)),i===null)throw new Error(`Unhandled schema-value pair ${r.getName(!0)}=${n}`);return i}writeSimpleInto(t,n,r,i){const c=this.writeSimple(t,n),l=Ct.of(t),f=new Av(c),[d,p]=this.getXmlnsAttribute(l,i);p&&r.addAttribute(d,p),r.addChildNode(f)}getXmlnsAttribute(t,n){const r=t.getMergedTraits(),[i,c]=r.xmlNamespace??[];return c&&c!==n?[i?`xmlns:${i}`:"xmlns",c]:[void 0,void 0]}}class kX extends Vm{settings;constructor(t){super(),this.settings=t}createSerializer(){const t=new DX(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){const t=new Ck(this.settings);return t.setSerdeContext(this.serdeContext),t}}class PX extends nY{codec;serializer;deserializer;mixin=new Rk;constructor(t){super(t);const n={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace};this.codec=new kX(n),this.serializer=new iY(this.codec.createSerializer(),n),this.deserializer=new rY(this.codec.createDeserializer(),n)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(t,n,r){const i=await super.serializeRequest(t,n,r),c=Ct.of(t.input);if(!i.headers["content-type"]){const l=this.mixin.resolveRestContentType(this.getDefaultContentType(),c);l&&(i.headers["content-type"]=l)}return typeof i.body=="string"&&i.headers["content-type"]===this.getDefaultContentType()&&!i.body.startsWith("'+i.body),i}async deserializeResponse(t,n,r){return super.deserializeResponse(t,n,r)}async handleError(t,n,r,i,c){const l=MX(r,i)??"Unknown";if(i.Error&&typeof i.Error=="object")for(const w of Object.keys(i.Error))i[w]=i.Error[w],w.toLowerCase()==="message"&&(i.message=i.Error[w]);i.RequestId&&!c.requestId&&(c.requestId=i.RequestId);const{errorSchema:f,errorMetadata:d}=await this.mixin.getErrorSchemaOrThrowBaseException(l,this.options.defaultNamespace,r,i,c),p=Ct.of(f),b=i.Error?.message??i.Error?.Message??i.message??i.Message??"Unknown",g=ts.for(f[1]).getErrorCtor(f)??Error,v=new g(b);await this.deserializeHttpMessage(f,n,r,i);const S={};for(const[w,E]of p.structIterator()){const R=E.getMergedTraits().xmlName??w,C=i.Error?.[R]??i[R];S[w]=this.codec.createDeserializer().readSchema(E,C)}throw this.mixin.decorateServiceException(Object.assign(v,d,{$fault:p.getMergedTraits().error,message:b},S),i)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(t){for(const[,n]of t.structIterator())if(n.getMergedTraits().httpPayload)return!(n.isStructSchema()||n.isMapSchema()||n.isListSchema());return!1}}const NX=/\d{12}\.ddb/;async function LX(e,t,n){if(n.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&Pr(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){const c=await t.retryStrategy();typeof c.acquireInitialRetryToken=="function"?c.constructor?.name?.includes("Adaptive")?Pr(e,"RETRY_MODE_ADAPTIVE","F"):Pr(e,"RETRY_MODE_STANDARD","E"):Pr(e,"RETRY_MODE_LEGACY","D")}if(typeof t.accountIdEndpointMode=="function"){const c=e.endpointV2;switch(String(c?.url?.hostname).match(NX)&&Pr(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":Pr(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Pr(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Pr(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const i=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(i?.$source){const c=i;c.accountId&&Pr(e,"RESOLVED_ACCOUNT_ID","T");for(const[l,f]of Object.entries(c.$source??{}))Pr(e,l,f)}}const $T="user-agent",_b="x-amz-user-agent",UT=" ",wb="/",zX=/[^!$%&'*+\-.^_`|~\w]/g,BX=/[^!$%&'*+\-.^_`|~\w#]/g,jT="-",$X=1024;function UX(e){let t="";for(const n in e){const r=e[n];if(t.length+r.length+1<=$X){t.length?t+=","+r:t+=r;continue}break}return t}const jX=e=>(t,n)=>async r=>{const{request:i}=r;if(!kn.isInstance(i))return t(r);const{headers:c}=i,l=n?.userAgent?.map(lh)||[],f=(await e.defaultUserAgentProvider()).map(lh);await LX(n,e,r);const d=n;f.push(`m/${UX(Object.assign({},n.__smithy_context?.features,d.__aws_sdk_context?.features))}`);const p=e?.customUserAgent?.map(lh)||[],b=await e.userAgentAppId();b&&f.push(lh(["app",`${b}`]));const g=[].concat([...f,...l,...p]).join(UT),v=[...f.filter(S=>S.startsWith("aws-sdk-")),...p].join(UT);return e.runtime!=="browser"?(v&&(c[_b]=c[_b]?`${c[$T]} ${v}`:v),c[$T]=g):c[_b]=g,t({...r,request:i})},lh=e=>{const t=e[0].split(wb).map(l=>l.replace(zX,jT)).join(wb),n=e[1]?.replace(BX,jT),r=t.indexOf(wb),i=t.substring(0,r);let c=t.substring(r+1);return i==="api"&&(c=c.toLowerCase()),[i,c,n].filter(l=>l&&l.length>0).reduce((l,f,d)=>{switch(d){case 0:return f;case 1:return`${l}/${f}`;default:return`${l}#${f}`}},"")},HX={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Ak=e=>({applyToStack:t=>{t.add(jX(e),HX)}}),Tk=!1,Ik=!1,HT=new Set,VX=(e,t=Jf)=>{if(!HT.has(e)&&!t(e))if(e==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else HT.add(e)},Ok=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),FX=e=>Ok(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,Mk=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{const r=typeof t=="function"?await t():t,i=FX(r);return VX(i),i},useFipsEndpoint:async()=>{const r=typeof t=="string"?t:await t();return Ok(r)?!0:typeof n!="function"?Promise.resolve(!!n):n()}})},VT="content-length";function qX(e){return t=>async n=>{const r=n.request;if(kn.isInstance(r)){const{body:i,headers:c}=r;if(i&&Object.keys(c).map(l=>l.toLowerCase()).indexOf(VT)===-1)try{const l=e(i);r.headers={...r.headers,[VT]:String(l)}}catch{}}return t({...n,request:r})}}const GX={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Dk=e=>({applyToStack:t=>{t.add(qX(e.bodyLengthChecker),GX)}}),ZX=async e=>{const t=e?.Bucket||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),WX(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!XX(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},KX=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,QX=/(\d+\.){3}\d+/,YX=/\.\./,XX=e=>KX.test(e)&&!QX.test(e)&&!YX.test(e),WX=e=>{const[t,n,r,,,i]=e.split(":"),c=t==="arn"&&e.split(":").length>=6,l=!!(c&&n&&r&&i);if(c&&!l)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return l},JX=(e,t,n,r=!1)=>{const i=async()=>{let c;return r?c=n.clientContextParams?.[e]??n[e]??n[t]:c=n[e]??n[t],typeof c=="function"?c():c};return e==="credentialScope"||t==="CredentialScope"?async()=>{const c=typeof n.credentials=="function"?await n.credentials():n.credentials;return c?.credentialScope??c?.CredentialScope}:e==="accountId"||t==="AccountId"?async()=>{const c=typeof n.credentials=="function"?await n.credentials():n.credentials;return c?.accountId??c?.AccountId}:e==="endpoint"||t==="endpoint"?async()=>{if(n.isCustomEndpoint===!1)return;const c=await i();if(c&&typeof c=="object"){if("url"in c)return c.url.href;if("hostname"in c){const{protocol:l,hostname:f,port:d,path:p}=c;return`${l}//${f}${d?":"+d:""}${p}`}}return c}:i},kk=async e=>{},Pk=e=>typeof e=="object"?"url"in e?jf(e.url):e:jf(e),eW=async(e,t,n,r)=>{if(!n.isCustomEndpoint){let l;n.serviceConfiguredEndpoint?l=await n.serviceConfiguredEndpoint():l=await kk(n.serviceId),l&&(n.endpoint=()=>Promise.resolve(Pk(l)),n.isCustomEndpoint=!0)}const i=await Nk(e,t,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return n.endpointProvider(i,r)},Nk=async(e,t,n)=>{const r={},i=t?.getEndpointParameterInstructions?.()||{};for(const[c,l]of Object.entries(i))switch(l.type){case"staticContextParams":r[c]=l.value;break;case"contextParams":r[c]=e[l.name];break;case"clientContextParams":case"builtInParams":r[c]=await JX(l.name,c,n,l.type!=="builtInParams")();break;case"operationContextParams":r[c]=l.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(l))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()==="s3"&&await ZX(r),r},tW=({config:e,instructions:t})=>(n,r)=>async i=>{e.isCustomEndpoint&&aY(r,"ENDPOINT_OVERRIDE","N");const c=await eW(i.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=c,r.authSchemes=c.properties?.authSchemes;const l=r.authSchemes?.[0];if(l){r.signing_region=l.signingRegion,r.signing_service=l.signingName;const d=qo(r)?.selectedHttpAuthScheme?.httpAuthOption;d&&(d.signingProperties=Object.assign(d.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return n({...i})},nW={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:rQ.name},Ks=(e,t)=>({applyToStack:n=>{n.addRelativeTo(tW({config:e,instructions:t}),nW)}}),Lk=e=>{const t=e.tls??!0,{endpoint:n,useDualstackEndpoint:r,useFipsEndpoint:i}=e,c=n!=null?async()=>Pk(await qs(n)()):void 0,f=Object.assign(e,{endpoint:c,tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:qs(r??!1),useFipsEndpoint:qs(i??!1)});let d;return f.serviceConfiguredEndpoint=async()=>(e.serviceId&&!d&&(d=kk(e.serviceId)),d),f};var Pl;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(Pl||(Pl={}));const Hf=3,zk=Pl.STANDARD,sW=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],rW=["TimeoutError","RequestTimeout","RequestTimeoutException"],oW=[500,502,503,504],iW=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],aW=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],cW=e=>e?.$retryable!==void 0,lW=e=>e.$metadata?.clockSkewCorrected,uW=e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return e&&e instanceof TypeError?t.has(e.message):!1},Bk=e=>e.$metadata?.httpStatusCode===429||sW.includes(e.name)||e.$retryable?.throttling==!0,LS=(e,t=0)=>cW(e)||lW(e)||rW.includes(e.name)||iW.includes(e?.code||"")||aW.includes(e?.code||"")||oW.includes(e.$metadata?.httpStatusCode||0)||uW(e)||e.cause!==void 0&&t<=10&&LS(e.cause,t+1),fW=e=>{if(e.$metadata?.httpStatusCode!==void 0){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!LS(e)}return!1};class zS{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=!1;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(t){this.beta=t?.beta??.7,this.minCapacity=t?.minCapacity??1,this.minFillRate=t?.minFillRate??.5,this.scaleConstant=t?.scaleConstant??.4,this.smooth=t?.smooth??.8;const n=this.getCurrentTimeInSeconds();this.lastThrottleTime=n,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(t){if(this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){const n=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(r=>zS.setTimeoutFn(r,n))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){const t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}const n=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+n),this.lastTimestamp=t}updateClientSendingRate(t){let n;if(this.updateMeasuredRate(),Bk(t)){const i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),n=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),n=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const t=this.getCurrentTimeInSeconds(),n=Math.floor(t*2)/2;if(this.requestCount++,n>this.lastTxRateBucket){const r=this.requestCount/(n-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=n}}getPrecise(t){return parseFloat(t.toFixed(8))}}const Tv=100,$k=20*1e3,dW=500,FT=500,pW=5,hW=10,mW=1,gW="amz-sdk-invocation-id",yW="amz-sdk-request",bW=()=>{let e=Tv;return{computeNextBackoffDelay:r=>Math.floor(Math.min($k,Math.random()*2**r*e)),setDelayBase:r=>{e=r}}},qT=({retryDelay:e,retryCount:t,retryCost:n})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min($k,e),getRetryCost:()=>n});class Uk{maxAttempts;mode=Pl.STANDARD;capacity=FT;retryBackoffStrategy=bW();maxAttemptsProvider;constructor(t){this.maxAttempts=t,this.maxAttemptsProvider=typeof t=="function"?t:async()=>t}async acquireInitialRetryToken(t){return qT({retryDelay:Tv,retryCount:0})}async refreshRetryTokenForRetry(t,n){const r=await this.getMaxAttempts();if(this.shouldRetry(t,n,r)){const i=n.errorType;this.retryBackoffStrategy.setDelayBase(i==="THROTTLING"?dW:Tv);const c=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount()),l=n.retryAfterHint?Math.max(n.retryAfterHint.getTime()-Date.now()||0,c):c,f=this.getCapacityCost(i);return this.capacity-=f,qT({retryDelay:l,retryCount:t.getRetryCount()+1,retryCost:f})}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.max(FT,this.capacity+(t.getRetryCost()??mW))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${Hf}`),Hf}}shouldRetry(t,n,r){return t.getRetryCount()+1=this.getCapacityCost(n.errorType)&&this.isRetryableError(n.errorType)}getCapacityCost(t){return t==="TRANSIENT"?hW:pW}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}}class vW{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=Pl.ADAPTIVE;constructor(t,n){this.maxAttemptsProvider=t;const{rateLimiter:r}=n??{};this.rateLimiter=r??new zS,this.standardRetryStrategy=new Uk(t)}async acquireInitialRetryToken(t){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(t)}async refreshRetryTokenForRetry(t,n){return this.rateLimiter.updateClientSendingRate(n),this.standardRetryStrategy.refreshRetryTokenForRetry(t,n)}recordSuccess(t){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(t)}}const SW=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),jk=e=>{const{retryStrategy:t,retryMode:n,maxAttempts:r}=e,i=qs(r??Hf);return Object.assign(e,{maxAttempts:i,retryStrategy:async()=>t||(await qs(n)()===Pl.ADAPTIVE?new vW(i):new Uk(i))})},_W=e=>e?.body instanceof ReadableStream,wW=e=>(t,n)=>async r=>{let i=await e.retryStrategy();const c=await e.maxAttempts();if(EW(i)){i=i;let l=await i.acquireInitialRetryToken(n.partition_id),f=new Error,d=0,p=0;const{request:b}=r,g=kn.isInstance(b);for(g&&(b.headers[gW]=$m());;)try{g&&(b.headers[yW]=`attempt=${d+1}; max=${c}`);const{response:v,output:S}=await t(r);return i.recordSuccess(l),S.$metadata.attempts=d+1,S.$metadata.totalRetryDelay=p,{response:v,output:S}}catch(v){const S=xW(v);if(f=SW(v),g&&_W(b))throw(n.logger instanceof NS?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),f;try{l=await i.refreshRetryTokenForRetry(l,S)}catch{throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=d+1,f.$metadata.totalRetryDelay=p,f}d=l.getRetryCount();const w=l.getRetryDelay();p+=w,await new Promise(E=>setTimeout(E,w))}}else return i=i,i?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,r)},EW=e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u",xW=e=>{const t={error:e,errorType:RW(e)},n=AW(e.$response);return n&&(t.retryAfterHint=n),t},RW=e=>Bk(e)?"THROTTLING":LS(e)?"TRANSIENT":fW(e)?"SERVER_ERROR":"CLIENT_ERROR",CW={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Hk=e=>({applyToStack:t=>{t.add(wW(e),CW)}}),AW=e=>{if(!ac.isInstance(e))return;const t=Object.keys(e.headers).find(c=>c.toLowerCase()==="retry-after");if(!t)return;const n=e.headers[t],r=Number(n);return Number.isNaN(r)?new Date(n):new Date(r*1e3)},TW=async(e,t,n)=>({operation:qo(t).operation,region:await qs(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function IW(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ec2",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}const OW=e=>{const t=[];switch(e.operation){default:t.push(IW(e))}return t},MW=e=>{const t=bk(e);return Object.assign(t,{authSchemePreference:qs(e.authSchemePreference??[])})},DW=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"ec2"}),to={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},kW="3.995.0",PW={version:kW},Vk=e=>new TextEncoder().encode(e);var NW=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:Vk;function lc(e){return e instanceof Uint8Array?e:typeof e=="string"?NW(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function om(e){return typeof e=="string"?e.length===0:e.byteLength===0}function LW(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}function zW(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n0&&c[c.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!c||p[1]>c[0]&&p[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var pr=64,HW=32,VW=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),FW=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],qW=Math.pow(2,53)-1,Eh=(function(){function e(){this.state=Int32Array.from(FW),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=t.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>qW)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=t[n++],r--,this.bufferLength===pr&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%pr>=pr-8){for(var i=this.bufferLength;i>>24&255,c[i*4+1]=this.state[i]>>>16&255,c[i*4+2]=this.state[i]>>>8&255,c[i*4+3]=this.state[i]>>>0&255;return c},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,r=t.state,i=r[0],c=r[1],l=r[2],f=r[3],d=r[4],p=r[5],b=r[6],g=r[7],v=0;v>>17|S<<15)^(S>>>19|S<<13)^S>>>10;S=this.temp[v-15];var E=(S>>>7|S<<25)^(S>>>18|S<<14)^S>>>3;this.temp[v]=(w+this.temp[v-7]|0)+(E+this.temp[v-16]|0)}var R=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&p^~d&b)|0)+(g+(VW[v]+this.temp[v]|0)|0)|0,C=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&c^i&l^c&l)|0;g=b,b=p,p=d,d=f+R|0,f=l,l=c,c=i,i=R+C|0}r[0]+=i,r[1]+=c,r[2]+=l,r[3]+=f,r[4]+=d,r[5]+=p,r[6]+=b,r[7]+=g},e})(),GW=(function(){function e(t){this.secret=t,this.hash=new Eh,this.reset()}return e.prototype.update=function(t){if(!(om(t)||this.error))try{this.hash.update(lc(t))}catch(n){this.error=n}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return qk(this,void 0,void 0,function(){return Gk(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new Eh,this.secret){this.outer=new Eh;var t=ZW(this.secret),n=new Uint8Array(pr);n.set(t);for(var r=0;rpr){var n=new Eh;n.update(t),t=n.digest()}var r=new Uint8Array(pr);return r.set(t),r}var KW=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function Zk(e){if(QW(e)&&typeof e.crypto.subtle=="object"){var t=e.crypto.subtle;return YW(t)}return!1}function QW(e){if(typeof e=="object"&&typeof e.crypto=="object"){var t=e.crypto.getRandomValues;return typeof t=="function"}return!1}function YW(e){return e&&KW.every(function(t){return typeof e[t]=="function"})}var Kk=(function(){function e(t){Zk(Ji())?this.hash=new UW(t):this.hash=new GW(t)}return e.prototype.update=function(t,n){this.hash.update(lc(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();const Qk=({serviceId:e,clientVersion:t})=>async n=>{const r=typeof window<"u"?window.navigator:void 0,i=r?.userAgent??"",c=r?.userAgentData?.platform??ZT.os(i)??"other",l=void 0,f=r?.userAgentData?.brands??[],d=f[f.length-1],p=d?.brand??ZT.browser(i)??"unknown",b=d?.version??"unknown",g=[["aws-sdk-js",t],["ua","2.1"],[`os/${c}`,l],["lang/js"],["md/browser",`${p}_${b}`]];e&&g.push([`api/${e}`,t]);const v=await n?.userAgentAppId?.();return v&&g.push([`app/${v}`]),g},ZT={os(e){if(/iPhone|iPad|iPod/.test(e))return"iOS";if(/Macintosh|Mac OS X/.test(e))return"macOS";if(/Windows NT/.test(e))return"Windows";if(/Android/.test(e))return"Android";if(/Linux/.test(e))return"Linux"},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return"Microsoft Edge";if(/Firefox\//.test(e))return"Firefox";if(/Chrome\//.test(e))return"Chrome";if(/Safari\//.test(e))return"Safari"}},Yk=e=>()=>Promise.reject(e),XW=["in-region","cross-region","mobile","standard","legacy"],Xk=({defaultsMode:e}={})=>VY(async()=>{const t=typeof e=="function"?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(WW()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${XW.join(", ")}, got ${t}`)}}),WW=()=>{const e=window?.navigator;if(e?.connection){const{effectiveType:t,rtt:n,downlink:r}=e?.connection;if(typeof t=="string"&&t!=="4g"||Number(n)>100||Number(r)<10)return!0}return e?.userAgentData?.mobile||typeof e?.maxTouchPoints=="number"&&e?.maxTouchPoints>1},Wk=(e,t=!1)=>{if(t){for(const n of e.split("."))if(!Wk(n))return!1;return!0}return!(!Jf(e)||e.length<3||e.length>63||e!==e.toLowerCase()||MS(e))},KT=":",JW="/",eJ=e=>{const t=e.split(KT);if(t.length<6)return null;const[n,r,i,c,l,...f]=t;if(n!=="arn"||r===""||i===""||f.join(KT)==="")return null;const d=f.map(p=>p.split(JW)).flat();return{partition:r,service:i,region:c,accountId:l,resourceId:d}},tJ=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],nJ={partitions:tJ};let sJ=nJ;const rJ=e=>{const{partitions:t}=sJ;for(const r of t){const{regions:i,outputs:c}=r;for(const[l,f]of Object.entries(i))if(l===e)return{...c,...f}}for(const r of t){const{regionRegex:i,outputs:c}=r;if(new RegExp(i).test(e))return{...c}}const n=t.find(r=>r.id==="aws");if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}},BS={isVirtualHostableS3Bucket:Wk,parseArn:eJ,partition:rJ};kl.aws=BS;const Jk="required",mr="fn",gr="argv",Ul="ref",QT=!0,YT="isSet",Vf="booleanEquals",ll="error",ul="endpoint",Oo="tree",$S="PartitionResult",US="getAttr",XT={[Jk]:!1,type:"string"},WT={[Jk]:!0,default:!1,type:"boolean"},JT={[Ul]:"Endpoint"},e3={[mr]:Vf,[gr]:[{[Ul]:"UseFIPS"},!0]},t3={[mr]:Vf,[gr]:[{[Ul]:"UseDualStack"},!0]},ur={},eI={[mr]:US,[gr]:[{[Ul]:$S},"supportsFIPS"]},n3={[Ul]:$S},tI={[mr]:Vf,[gr]:[!0,{[mr]:US,[gr]:[n3,"supportsDualStack"]}]},nI=[e3],sI=[t3],rI=[{[Ul]:"Region"}],oJ={parameters:{Region:XT,UseDualStack:WT,UseFIPS:WT,Endpoint:XT},rules:[{conditions:[{[mr]:YT,[gr]:[JT]}],rules:[{conditions:nI,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ll},{conditions:sI,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ll},{endpoint:{url:JT,properties:ur,headers:ur},type:ul}],type:Oo},{conditions:[{[mr]:YT,[gr]:rI}],rules:[{conditions:[{[mr]:"aws.partition",[gr]:rI,assign:$S}],rules:[{conditions:[e3,t3],rules:[{conditions:[{[mr]:Vf,[gr]:[QT,eI]},tI],rules:[{endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ur,headers:ur},type:ul}],type:Oo},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ll}],type:Oo},{conditions:nI,rules:[{conditions:[{[mr]:Vf,[gr]:[eI,QT]}],rules:[{conditions:[{[mr]:"stringEquals",[gr]:[{[mr]:US,[gr]:[n3,"name"]},"aws-us-gov"]}],endpoint:{url:"https://ec2.{Region}.amazonaws.com",properties:ur,headers:ur},type:ul},{endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ur,headers:ur},type:ul}],type:Oo},{error:"FIPS is enabled but this partition does not support FIPS",type:ll}],type:Oo},{conditions:sI,rules:[{conditions:[tI],rules:[{endpoint:{url:"https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ur,headers:ur},type:ul}],type:Oo},{error:"DualStack is enabled but this partition does not support DualStack",type:ll}],type:Oo},{endpoint:{url:"https://ec2.{Region}.{PartitionResult#dnsSuffix}",properties:ur,headers:ur},type:ul}],type:Oo}],type:Oo},{error:"Invalid Configuration: Missing Region",type:ll}]},iJ=oJ,aJ=new WD({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),cJ=(e,t={})=>aJ.get(e,()=>ck(iJ,{endpointParams:e,logger:t.logger}));kl.aws=BS;class jS extends Ya{constructor(t){super(t),Object.setPrototypeOf(this,jS.prototype)}}const lJ="AllAvailabilityZones",uJ="AttributeBooleanValue",fJ="AssociateCarrierIpAddress",dJ="AdditionalFlexibleNetworkInterfaces",pJ="AvailableIpAddressCount",hJ="AssignIpv6AddressOnCreation",s3="AdditionalInfo",HS="AssociationId",r3="AttachmentId",mJ="AmiLaunchIndex",gJ="AttachmentLimitType",yJ="AssociatePublicIpAddress",bJ="AmazonProvidedIpv6CidrBlock",vJ="AutoRecoverySupported",SJ="AllRegions",o3="AssociatedResource",i3="AutoRecovery",a3="AmdSevSnp",_J="ArchitectureTypeList",Fm="AttachTime",wJ="AttachVolumeRequest",EJ="AttributeValue",xJ="AttachVolume",la="AvailabilityZone",RJ="AvailabilityZoneGeography",CJ="AvailabilityZoneGeographyList",jl="AvailabilityZoneId",AJ="AvailabilityZoneList",TJ="AvailabilityZoneMessage",IJ="AvailabilityZoneMessageList",OJ="AvailabilityZoneSubGeography",MJ="AvailabilityZoneSubGeographyList",DJ="AvailabilityZones",c3="Accelerators",kJ="Affinity",l3="Arn",u3="Architecture",f3="Association",PJ="Attribute",d3="Attachment",NJ="Attachments",LJ="BlobAttributeValue",zJ="BaselineBandwidthInGbps",p3="BaselineBandwidthInMbps",VS="BlockDeviceMapping",BJ="BlockDeviceMappingList",$J="BlockDeviceMappingRequestList",ed="BlockDeviceMappings",UJ="BlockDurationMinutes",h3="BaselineIops",m3="BootMode",jJ="BootModeTypeList",HJ="BareMetal",FS="BlockPublicAccessStates",VJ="BurstablePerformanceSupported",g3="BaselineThroughputInMBps",y3="BandwidthWeighting",FJ="BandwidthWeightingTypeList",qJ="BandwidthWeightings",td="CidrBlock",GJ="CidrBlockAssociationSet",ZJ="CapacityBlockId",KJ="CidrBlockState",QJ="CoreCountList",b3="CoreCount",YJ="CpuCredits",v3="CompletionDurationMinutes",XJ="CreationDate",WJ="CurrentGeneration",JJ="CarrierIp",eee="CurrentInstanceBootMode",tee="CreateImageRequest",nee="CreateImageResult",see="CoreInfo",ree="CreateImage",oee="CreateKeyPair",iee="CreateKeyPairRequest",qS="CpuOptions",aee="CustomerOwnedIp",cee="CustomerOwnedIpv4Pool",lee="CpuOptionsRequest",GS="CapacityReservationId",S3="CapacityReservationPreference",_3="CapacityReservationResourceGroupArn",uee="CapacityReservationSpecificationResponse",ZS="CapacityReservationSpecification",KS="CapacityReservationTarget",fee="CapacityReservationTargetResponse",dee="CopySnapshotRequest",pee="CopySnapshotRequestPSU",hee="CopySnapshotResult",mee="CreateSnapshotRequest",gee="CreateSubnetRequest",yee="CreateSubnetResult",bee="CreditSpecificationRequest",vee="CopySnapshot",See="CreditSpecification",_ee="CreateSnapshot",wee="CreateSubnet",Eee="CurrentState",QS="ClientToken",xee="ConnectionTrackingConfiguration",Ree="ConnectionTrackingSpecification",Cee="ConnectionTrackingSpecificationRequest",Aee="ConnectionTrackingSpecificationResponse",Tee="CompletionTime",w3="CreateTime",Iee="CreateVolumeRequest",Oee="CreateVpcRequest",Mee="CreateVpcResult",Dee="CreateVolume",kee="CreateVpc",E3="Code",x3="Configured",ua="Count",R3="DisableApiStop",C3="DisableApiTermination",Pee="DestinationAvailabilityZone",Nee="DescribeAvailabilityZonesRequest",Lee="DescribeAvailabilityZonesResult",zee="DescribeAvailabilityZones",Bee="DefaultCores",$ee="DataEncryptionKeyId",Uee="DefaultEnaQueueCountPerInterface",jee="DefaultForAz",Hee="DedicatedHostsSupported",qm="DeviceIndex",Vee="DiskInfoList",Fee="DescribeImagesRequest",qee="DescribeImagesResult",Gee="DescribeInstancesRequest",Zee="DescribeInstancesResult",Kee="DescribeInstanceTypesRequest",Qee="DescribeInstanceTypesResult",Yee="DescribeInstanceTypes",Xee="DescribeImages",Wee="DescribeInstances",Jee="DiskInfo",ete="DeleteKeyPair",tte="DeleteKeyPairRequest",nte="DeleteKeyPairResult",ste="DescribeKeyPairsRequest",rte="DescribeKeyPairsResult",ote="DescribeKeyPairs",YS="DeviceName",ite="DefaultNetworkCardIndex",ate="DestinationOutpostArn",cte="DhcpOptionsId",fa="DeleteOnTermination",lte="DeregistrationProtection",yt="DryRun",ute="DescribeRegionsRequest",fte="DescribeRegionsResult",dte="DestinationRegion",pte="DescribeRegions",hte="DeleteSnapshotRequest",mte="DeleteSubnetRequest",gte="DescribeSnapshotsRequest",yte="DescribeSnapshotsResult",bte="DescribeSubnetsRequest",vte="DescribeSubnetsResult",Ste="DeleteSnapshot",_te="DeleteSubnet",wte="DescribeSnapshots",Ete="DescribeSubnets",xte="DefaultThreadsPerCore",Rte="DeprecationTime",Cte="DefaultVCpus",Ate="DeleteVolumeRequest",Tte="DeleteVpcRequest",Ite="DescribeVolumesRequest",Ote="DescribeVolumesResult",Mte="DescribeVpcsRequest",Dte="DescribeVpcsResult",kte="DetachVolumeRequest",Pte="DeleteVolume",Nte="DeleteVpc",Lte="DescribeVolumes",zte="DescribeVpcs",Bte="DetachVolume",hc="Description",XS="Device",$te="Disks",Ute="EbsBlockDevice",jte="ExecutableByStringList",A3="ExecutableBy",nd="EbsCardIndex",Hte="EbsCardInfoList",Vte="EbsCardInfo",Fte="EbsCards",qte="EncryptionControl",Gte="EnableDns64",Zte="ElasticFileSystem",Kte="ElasticFileSystemExclusion",Qte="ElasticGpuAssociation",Yte="ElasticGpuAssociationId",Xte="ElasticGpuAssociationList",Wte="ElasticGpuAssociationState",Jte="ElasticGpuAssociationTime",ene="ElasticGpuAssociations",tne="ElasticGpuId",T3="ElasticGpuSpecification",nne="ElasticGpuSpecifications",I3="ElasticInferenceAccelerator",sne="ElasticInferenceAcceleratorAssociation",rne="ElasticInferenceAcceleratorAssociationId",one="ElasticInferenceAcceleratorAssociationList",ine="ElasticInferenceAcceleratorAssociationState",ane="ElasticInferenceAcceleratorAssociationTime",cne="ElasticInferenceAcceleratorArn",lne="ElasticInferenceAcceleratorAssociations",O3="ElasticInferenceAccelerators",une="EbsInstanceBlockDevice",fne="EbsInstanceBlockDeviceSpecification",dne="EncryptionInTransitSupported",M3="EbsInfo",D3="EfaInfo",pne="EnableLniAtDeviceIndex",WS="EbsOptimized",k3="EbsOptimizedInfo",hne="EgressOnlyInternetGateway",mne="EgressOnlyInternetGatewayExclusion",gne="EnclaveOptionsRequest",yne="EbsOptimizedSupport",JS="EnclaveOptions",bne="EnablePrimaryIpv6",P3="EnaQueueCount",e_="EnableResourceNameDnsAAAARecord",t_="EnableResourceNameDnsARecord",N3="EnaSrdEnabled",L3="EnaSrdSpecification",vne="EnaSrdSpecificationRequest",Sne="EnaSrdSupported",z3="EnaSrdUdpEnabled",B3="EnaSrdUdpSpecification",_ne="EnaSrdUdpSpecificationRequest",wne="EfaSupported",$3="EncryptionSupport",Gm="EnaSupport",Ene="EndTime",xne="ExecutableUsers",n_="Ebs",s_="Enabled",sd="Encrypted",Rne="Endpoint",r_="Force",Cne="FpgaDeviceInfo",Ane="FpgaDeviceInfoList",Tne="FpgaDeviceMemoryInfo",Ine="FlexibleEnaQueuesSupport",U3="FpgaInfo",One="FilterList",Mne="FastRestored",Dne="FullSnapshotSizeInBytes",j3="FreeTierEligible",no="Filters",wr="Filter",kne="Fpgas",Zm="Groups",Pne="GetConsoleOutput",Nne="GetConsoleOutputRequest",Lne="GetConsoleOutputResult",zne="GpuDeviceInfo",Bne="GpuDeviceInfoList",$ne="GpuDeviceMemoryInfo",Une="GroupIdentifierList",jne="GroupIdStringList",H3="GpuInfo",o_="GroupId",Hne="GroupIdentifier",Vne="GroupLongName",i_="GroupName",Fne="GpuPartitionSize",V3="Geography",qne="Gpus",F3="HttpEndpoint",Gne="HostId",a_="HibernationOptions",Zne="HibernationOptionsRequest",q3="HttpProtocolIpv6",G3="HttpPutResponseHopLimit",Kne="HostResourceGroupArn",Qne="HibernationSupported",Z3="HttpTokens",c_="HostnameType",Yne="Hibernate",l_="Hypervisor",Xne="Id",u_="Ipv6Addresses",K3="Ipv6AddressAttribute",Q3="Ipv6AddressCount",Wne="InstanceAttachmentEnaSrdSpecification",Jne="InstanceAttachmentEnaSrdUdpSpecification",Y3="InferenceAcceleratorInfo",ese="Ipv4AddressesPerInterface",tse="Ipv6AddressesPerInterface",nse="Ipv4AddressesPerSecondaryInterface",sse="ImageAllowed",f_="Ipv6Address",rse="InstanceBlockDeviceMapping",ose="InstanceBlockDeviceMappingList",ise="InstanceBlockDeviceMappingSpecification",ase="InstanceBlockDeviceMappingSpecificationList",Km="Ipv6CidrBlock",X3="Ipv6CidrBlockAssociationSet",cse="Ipv6CidrBlockNetworkBorderGroup",W3="Ipv6CidrBlockState",lse="IncludeDeprecated",use="InferenceDeviceInfo",fse="InferenceDeviceInfoList",dse="InferenceDeviceMemoryInfo",pse="IncludeDisabled",hse="IsDefault",mse="InternetGateway",gse="InternetGatewayBlockMode",yse="InternetGatewayExclusion",ls="InstanceId",bse="InstanceIpv6Address",vse="InstanceIpv6AddressList",Sse="InstanceInterruptionBehavior",d_="IamInstanceProfile",J3="Ipv6IpamPoolId",eP="Ipv4IpamPoolId",_se="InstanceIpv4PrefixList",wse="InstanceIpv6PrefixList",Ese="IamInstanceProfileSpecification",xse="InstanceIpv4Prefix",Rse="InstanceIpv6Prefix",tP="InstanceInitiatedShutdownBehavior",Cse="ImageIdStringList",Ase="InstanceIdStringList",Hl="ImageId",Tse="ImageIds",rd="InstanceIds",Ise="ImportKeyPair",Ose="ImportKeyPairRequest",Mse="ImportKeyPairResult",Dse="ImageLocation",kse="ImageList",Pse="InstanceLifecycle",Nse="InstanceList",Lse="InstanceMaintenanceOptions",zse="InstanceMaintenanceOptionsRequest",Bse="InstanceMarketOptionsRequest",$se="InstanceMetadataOptionsRequest",Use="InstanceMetadataOptionsResponse",jse="InstanceMarketOptions",nP="InstanceMetadataTags",sP="Ipv6Native",Hse="InstanceNetworkInterface",Vse="InstanceNetworkInterfaceAssociation",Fse="InstanceNetworkInterfaceAttachment",qse="InstanceNetworkInterfaceList",Gse="InstanceNetworkInterfaceSpecification",Zse="InstanceNetworkInterfaceSpecificationList",rP="Ipv6NetmaskLength",oP="Ipv4NetmaskLength",Kse="InstanceNetworkPerformanceOptions",Qse="InstanceNetworkPerformanceOptionsRequest",Yse="ImageOwnerAlias",Xse="IpOwnerId",Wse="InstanceOwningService",Jse="Ipv6PrefixCount",ere="Ipv4PrefixCount",tre="InstancePrivateIpAddress",nre="InstancePrivateIpAddressList",sre="IsPrimaryIpv6",rre="IncludePublicKey",ore="Ipv4PrefixList",ire="Ipv6PrefixList",are="Ipv4PrefixSpecificationRequest",cre="Ipv6PrefixSpecificationRequest",iP="Ipv6Prefixes",p_="Ipv6Prefix",aP="Ipv6Pool",cP="Ipv4Prefixes",h_="Ipv4Prefix",lre="InstanceStateChange",ure="InstanceStateChangeList",fre="InstanceSecondaryInterfaceAttachment",dre="InstanceSecondaryInterfaceList",pre="InstanceSecondaryInterfacePrivateIpAddress",hre="InstanceSecondaryInterfacePrivateIpAddressList",mre="InstanceSecondaryInterfacePrivateIpAddressListRequest",gre="InstanceSecondaryInterfacePrivateIpAddressRequest",yre="InstanceSecondaryInterfaceSpecificationListRequest",bre="InstanceSecondaryInterfaceSpecificationRequest",vre="InstanceSecondaryInterface",lP="InstanceStorageInfo",Sre="InstanceStorageSupported",_re="ImdsSupport",wre="InstanceState",uP="IpSource",Ere="Ipv6Supported",od="InstanceType",xre="InstanceTypeInfoList",Rre="InstanceTypeInfo",Cre="ImageType",fP="InstanceTenancy",dP="InstanceTypes",Qm="InterfaceType",Are="Images",Tre="Image",Ire="Instance",Ore="Instances",Ym="Iops",Mre="Key",Dre="KeyFormat",m_="KeyFingerprint",g_="KernelId",id="KmsKeyId",kre="KeyMaterial",so="KeyName",Pre="KeyNameStringList",Nre="KeyNames",Lre="KeyPairs",mc="KeyPairId",zre="KeyPairIdStringList",Bre="KeyPairIds",$re="KeyPairInfo",Ure="KeyPairList",jre="KeyPair",pP="KeyType",Hre="Kernel",hP="LicenseConfigurationArn",Vre="LicenseConfigurationRequest",Fre="LicenseConfiguration",qre="LambdaExclusion",Gre="LogicalGpuCount",Zre="LicenseList",Kre="LastLaunchedTime",Qre="LicenseSpecifications",Yre="LicenseSpecificationListRequest",Xre="LicenseSpecification",Wre="LaunchTemplate",Jre="LaunchTemplateId",eoe="LaunchTemplateName",toe="LaunchTemplateSpecification",noe="LaunchTime",soe="Latest",roe="Lambda",ooe="Licenses",ioe="Location",y_="MultiAttachEnabled",mP="MediaAcceleratorInfo",gP="MacAddress",yP="MaximumBandwidthInMbps",aoe="MapCustomerOwnedIpOnLaunch",coe="MaxCount",loe="MinCount",uoe="MediaDeviceInfo",foe="MediaDeviceInfoList",doe="MediaDeviceMemoryInfo",poe="MaximumEbsAttachments",hoe="MaximumEbsCards",moe="MaximumEfaInterfaces",goe="MaximumEnaQueueCount",yoe="MaximumEnaQueueCountPerInterface",bP="MaximumIops",boe="ModifyInstanceAttributeRequest",voe="ModifyInstanceAttribute",gc="MemoryInfo",Soe="MaximumNetworkCards",vP="MaximumNetworkInterfaces",SP="MetadataOptions",_P="MaintenanceOptions",_oe="MapPublicIpOnLaunch",woe="MaxPrice",yc="MaxResults",Eoe="MaximumSecondaryNetworkInterfaces",xoe="ModificationState",Roe="MarketType",wP="MaximumThroughputInMBps",Coe="ModifyVolumeRequest",Aoe="ModifyVolumeResult",Toe="ModifyVolume",ad="Manufacturer",Ioe="Managed",EP="Message",Ooe="Messages",xP="Mode",b_="Monitoring",Qs="Name",RP="NetworkBorderGroup",Moe="NetworkCards",cd="NetworkCardIndex",Doe="NetworkCardInfoList",koe="NetworkCardInfo",CP="NoDevice",Poe="NeuronDeviceCoreInfo",Noe="NeuronDeviceInfo",Loe="NeuronDeviceInfoList",zoe="NeuronDeviceMemoryInfo",Boe="NeuronDevices",$oe="NitroEnclavesSupport",Uoe="NatGateway",joe="NatGatewayExclusion",AP="NetworkInterfaceId",TP="NetworkInterfaces",IP="NetworkInfo",OP="NeuronInfo",MP="NetworkPerformanceOptions",DP="NetworkPerformance",Hoe="NoReboot",kP="NvmeSupport",PP="NitroTpmInfo",Voe="NitroTpmSupport",Foe="NitroTpmSupportedVersionsList",As="NextToken",NP="NestedVirtualization",da="OutpostArn",qoe="OwnerAlias",bc="OwnerId",LP="OptInStatus",Goe="OriginalIops",Zoe="OwnerIds",Koe="OriginalMultiAttachEnabled",Qoe="OperatorRequest",Yoe="OperatorResponse",Xoe="OwnerStringList",Woe="OriginalSize",Joe="OriginalThroughput",eie="OriginalVolumeType",Vl="Operator",tie="Output",nie="Owners",v_="Owner",zP="Principal",sie="PeakBandwidthInGbps",rie="ProductCodeId",oie="ProductCodeList",iie="ProductCodeType",aie="ProductCode",BP="ProductCodes",S_="PrivateDnsName",$P="PrivateDnsNameOptions",UP="PrivateDnsNameOptionsOnLaunch",cie="PrivateDnsNameOptionsRequest",lie="PrivateDnsNameOptionsResponse",jP="PublicDnsName",HP="PlatformDetails",VP="PlacementGroupInfo",uie="PlacementGroupStrategyList",fie="PublicIp",die="PrivateIpAddressCount",pie="PrivateIpAddressSpecification",hie="PrivateIpAddressSpecificationList",Go="PrivateIpAddress",Xm="PrivateIpAddresses",mie="PublicIpAddress",gie="PrimaryIpv6",FP="ProcessorInfo",yie="PublicKey",bie="PublicKeyMaterial",vie="PartitionNumber",Sie="PhcSupport",_ie="PreviousState",wie="PresignedUrl",Eie="ParentZoneId",xie="ParentZoneName",qP="Platform",__="Placement",GP="Primary",ZP="Progress",Rie="Public",Cie="Return",Aie="RestorableByUserIds",Tie="RestorableBy",KP="RootDeviceName",QP="RootDeviceType",Iie="RootDeviceTypeList",Oie="RestoreExpiryTime",Mie="ResourceExclusions",Die="RegionGeography",kie="RegionGeographyList",Pie="RunInstancesMonitoringEnabled",Nie="RebootInstancesRequest",Lie="RunInstancesRequest",zie="RunInstancesUserData",w_="RamdiskId",Bie="ReservationId",$ie="RebootInstances",Uie="RequesterId",jie="RunInstances",Hie="RegionList",Vie="ReservationList",Fie="RebootMigrationSupport",qie="RebootMigration",Wm="RegionName",Gie="RegionNameStringList",Zie="RegionNames",Kie="ResourceType",Qie="Ramdisk",Yie="Regions",Xie="Region",Wie="Reservations",Jie="Reservation",eae="SupportedAdditionalProcessorFeatureList",tae="SubnetArn",nae="SupportedArchitectures",sae="SupportedBootModes",rae="SubnetCidrBlockState",oae="SustainedClockSpeedInGhz",Jm="SourceDestCheck",iae="SpreadDomain",aae="SupportedFeatures",cae="SubGeography",E_="SecurityGroupId",lae="SecurityGroupIdStringList",uae="SecurityGroupIds",fae="SecurityGroupStringList",YP="SecurityGroups",XP="SecurityGroup",dae="SubnetIds",pae="SubnetIpv6CidrBlockAssociation",hae="SubnetIpv6CidrBlockAssociationSet",mae="SizeInGB",gae="SourceImageId",yae="SecondaryInterfaceId",bae="SourceInstanceId",Fl="SizeInMiB",vae="SpotInstanceRequestId",Sae="SourceImageRegion",_ae="StartInstancesRequest",wae="StartInstancesResult",Eae="StopInstancesRequest",xae="StopInstancesResult",Rae="SnapshotIdStringList",Cae="SubnetIdStringList",Aae="SpotInstanceType",WP="SecondaryInterfaces",Tae="SecondaryInterface",pa="SnapshotId",Iae="SnapshotIds",Oae="StartingInstances",Mae="StartInstances",Dae="StoppingInstances",kae="StopInstances",ha="SubnetId",Pae="SnapshotLocation",Nae="SnapshotList",Lae="SubnetList",zae="SpotMarketOptions",x_="StatusMessage",R_="StateMessage",Bae="SecondaryNetworkId",C_="SriovNetSupport",$ae="SecondaryNetworkSupported",Uae="SpotOptions",JP="SkipOsShutdown",jae="SecondaryPrivateIpAddressCount",Hae="SupportedRootDeviceTypes",Vae="SourceRegion",A_="StateReason",Fae="SourceSnapshotId",eN="SecondarySubnetId",qae="SupportedStrategies",tN="StartTime",Gae="StateTransitionReason",nN="SseType",Zae="StorageTier",Kae="SupportedUsageClasses",Qae="SensitiveUserData",Yae="SourceVolumeId",Xae="SupportedVirtualizationTypes",Wae="SupportedVersions",T_="Size",Jae="Snapshots",ece="Snapshot",Ts="State",ld="Status",sN="Subnet",tce="Subnets",Er="Tags",rN="TcpEstablishedTimeout",nce="TotalFpgaMemoryInMiB",sce="TotalGpuMemoryInMiB",rce="TerminateInstances",oce="TotalInferenceMemoryInMiB",ice="TerminateInstancesRequest",ace="TerminateInstancesResult",cce="TargetIops",lce="TerminatingInstances",uce="TagList",fce="TargetMultiAttachEnabled",dce="TotalMediaMemoryInMiB",pce="TotalNeuronDeviceMemoryInMiB",oN="ThreadsPerCore",hce="ThreadsPerCoreList",Zo="TagSpecifications",mce="TotalSizeInGB",gce="TagSpecificationList",ro="TagSpecification",yce="TargetSize",iN="TpmSupport",bce="TargetThroughput",vce="TransferType",Sce="TargetVolumeType",aN="Tag",_ce="Tenancy",eg="Throughput",wce="Timestamp",tg="Type",Ece="UsageClassTypeList",cN="UserData",lN="UsageOperation",xce="UsageOperationUpdateTime",uN="UdpStreamTimeout",fN="UdpTimeout",ql="Value",Rce="VolumeAttachmentList",Cce="VolumeAttachment",Ace="VpcCidrBlockAssociation",Tce="VpcCidrBlockAssociationSet",Ice="VpcCidrBlockState",dN="VCpuInfo",Oce="ValidCores",pN="VpcEncryptionControl",Mce="VpcEncryptionControlConfiguration",Dce="VpcEncryptionControlExclusion",kce="VpcEncryptionControlExclusions",Pce="VpcEncryptionControlId",Ko="VpcId",Nce="VpcIpv6CidrBlockAssociation",Lce="VpcIpv6CidrBlockAssociationSet",I_="VolumeInitializationRate",zce="VolumeIdStringList",Bce="VpcIdStringList",Ys="VolumeId",$ce="VolumeIds",Uce="VpcIds",jce="VpcLattice",Hce="VpcLatticeExclusion",Vce="VolumeList",Fce="VpcList",hN="VolumeModification",mN="VirtualName",qce="VolumeOwnerId",Gce="VpcPeeringExclusion",Zce="VirtualPrivateGateway",Kce="VirtualPrivateGatewayExclusion",Qce="VpcPeering",Yce="ValueStringList",gN="VolumeSize",ng="VolumeType",Xce="VirtualizationTypeList",Wce="ValidThreadsPerCore",yN="VirtualizationType",Jce="ValidUntil",ele="Values",bN="Version",tle="Volumes",nle="Volume",vN="Vpc",sle="Vpcs",rle="WorkloadsList",ole="Workloads",O_="ZoneId",ile="ZoneIdStringList",ale="ZoneIds",M_="ZoneName",cle="ZoneNameStringList",lle="ZoneNames",ule="ZoneType",fle="additionalFlexibleNetworkInterfaces",dle="availableIpAddressCount",ple="assignIpv6AddressOnCreation",SN="additionalInfo",D_="associationId",_N="attachmentId",hle="amiLaunchIndex",mle="attachmentLimitType",gle="associatePublicIpAddress",yle="amazonProvidedIpv6CidrBlock",ble="autoRecoverySupported",wN="associatedResource",vle="autoRecovery",Sle="amdSevSnp",_le="attachmentSet",sg="attachTime",ud="availabilityZone",k_="availabilityZoneId",wle="availabilityZoneInfo",EN="accelerators",Ele="affinity",xN="arn",RN="architecture",CN="association",AN="attachment",xle="attribute",Rle="baselineBandwidthInGbps",TN="baselineBandwidthInMbps",rg="blockDeviceMapping",IN="baselineIops",ON="bootMode",Cle="bareMetal",MN="blockPublicAccessStates",Ale="burstablePerformanceSupported",DN="baselineThroughputInMBps",Tle="bandwidthWeighting",Ile="bandwidthWeightings",P_="cidrBlock",Ole="cidrBlockAssociationSet",Mle="capacityBlockId",Dle="cidrBlockState",kle="coreCount",Ple="completionDurationMinutes",Nle="creationDate",Lle="currentGeneration",zle="carrierIp",Ble="currentInstanceBootMode",$le="coreInfo",Ule="cpuOptions",jle="customerOwnedIp",Hle="customerOwnedIpv4Pool",kN="capacityReservationId",Vle="capacityReservationPreference",Fle="capacityReservationResourceGroupArn",qle="capacityReservationSpecification",Gle="capacityReservationTarget",Zle="currentState",PN="clientToken",Kle="connectionTrackingConfiguration",Qle="completionTime",NN="createTime",LN="code",Yle="configured",vc="count",zN="disableApiTermination",Xle="defaultCores",Wle="dataEncryptionKeyId",Jle="defaultEnaQueueCountPerInterface",eue="defaultForAz",tue="dedicatedHostsSupported",N_="deviceIndex",L_="deviceName",nue="defaultNetworkCardIndex",sue="dnsName",rue="dhcpOptionsId",Sc="deleteOnTermination",oue="deregistrationProtection",Rt="dryRun",iue="destinationRegion",aue="defaultThreadsPerCore",cue="deprecationTime",lue="defaultVCpus",fd="description",uue="device",fue="disks",z_="ebsCardIndex",due="ebsCardSet",pue="encryptionControl",hue="enableDns64",mue="elasticFileSystem",gue="elasticGpuAssociationId",yue="elasticGpuAssociationState",bue="elasticGpuAssociationSet",vue="elasticGpuAssociationTime",Sue="elasticGpuId",_ue="elasticInferenceAcceleratorArn",wue="elasticInferenceAcceleratorAssociationId",Eue="elasticInferenceAcceleratorAssociationState",xue="elasticInferenceAcceleratorAssociationSet",Rue="elasticInferenceAcceleratorAssociationTime",Cue="encryptionInTransitSupported",Aue="ebsInfo",Tue="efaInfo",Iue="enableLniAtDeviceIndex",B_="ebsOptimized",Oue="ebsOptimizedInfo",Mue="egressOnlyInternetGateway",Due="ebsOptimizedSupport",kue="enclaveOptions",Pue="enaQueueCount",_="ec2QueryName",BN="enableResourceNameDnsAAAARecord",$N="enableResourceNameDnsARecord",Nue="enaSrdEnabled",Lue="enaSrdSpecification",zue="enaSrdSupported",Bue="enaSrdUdpEnabled",$ue="enaSrdUdpSpecification",Uue="efaSupported",UN="encryptionSupport",og="enaSupport",jue="endTime",$_="ebs",jN="enabled",dd="encrypted",Hue="flexibleEnaQueuesSupport",Vue="fpgaInfo",Fue="fastRestored",que="fullSnapshotSizeInBytes",HN="freeTierEligible",Gue="force",Zue="fpgas",Kue="gpuInfo",U_="groupId",Que="groupLongName",j_="groupName",Yue="gpuPartitionSize",VN="geographySet",H_="groupSet",Xue="gpus",V_="hypervisor",Wue="httpEndpoint",Jue="hostId",efe="hibernationOptions",tfe="httpProtocolIpv6",nfe="httpPutResponseHopLimit",sfe="hostResourceGroupArn",rfe="hibernationSupported",ofe="httpTokens",FN="hostnameType",ife="id",qN="ipv6AddressAttribute",afe="ipv6AddressCount",cfe="inferenceAcceleratorInfo",lfe="ipv4AddressesPerInterface",ufe="ipv6AddressesPerInterface",ffe="ipv4AddressesPerSecondaryInterface",GN="ipv6AddressesSet",dfe="imageAllowed",pfe="ipAddress",ZN="ipv6Address",KN="ipv6CidrBlock",QN="ipv6CidrBlockAssociationSet",YN="ipv6CidrBlockState",hfe="isDefault",mfe="internetGateway",gfe="internetGatewayBlockMode",Gl="instanceId",XN="iamInstanceProfile",WN="instanceInitiatedShutdownBehavior",F_="imageId",yfe="imageLocation",bfe="instanceLifecycle",vfe="instanceMetadataTags",Sfe="ipv6Native",_fe="imageOwnerAlias",wfe="imageOwnerId",Efe="ipOwnerId",xfe="instanceOwningService",Rfe="isPrimaryIpv6",Cfe="ipv4PrefixSet",Afe="ipv6PrefixSet",Tfe="ipv4Prefix",Ife="ipv6Pool",Ofe="ipv6Prefix",Mfe="isPublic",Dfe="instanceStorageInfo",kfe="instanceStorageSupported",Pfe="imagesSet",Nfe="imageState",Lfe="imdsSupport",ig="instancesSet",zfe="instanceState",JN="ipSource",Bfe="ipv6Supported",q_="instanceType",$fe="instanceTypeSet",Ufe="idempotencyToken",jfe="imageType",eL="instanceTenancy",tL="interfaceType",nL="iops",ke="item",Hfe="key",G_="keyFingerprint",sL="kernelId",ag="kmsKeyId",Vfe="keyMaterial",pd="keyName",cg="keyPairId",Ffe="keySet",qfe="keyType",Gfe="kernel",Zfe="licenseConfigurationArn",Kfe="logicalGpuCount",Qfe="lastLaunchedTime",Yfe="licenseSet",Xfe="launchTime",Wfe="lambda",Jfe="multiAttachEnabled",ede="mediaAcceleratorInfo",rL="macAddress",oL="maximumBandwidthInMbps",tde="mapCustomerOwnedIpOnLaunch",nde="maximumEbsAttachments",sde="maximumEbsCards",rde="maximumEfaInterfaces",ode="maximumEnaQueueCount",ide="maximumEnaQueueCountPerInterface",iL="maximumIops",Zl="memoryInfo",ade="maximumNetworkCards",aL="maximumNetworkInterfaces",cde="metadataOptions",lde="maintenanceOptions",ude="mapPublicIpOnLaunch",cL="maxResults",fde="messageSet",dde="maximumSecondaryNetworkInterfaces",pde="modificationState",lL="maximumThroughputInMBps",hd="manufacturer",hde="managed",uL="message",mde="monitoring",gde="mode",xr="name",fL="networkBorderGroup",yde="networkCards",Z_="networkCardIndex",dL="noDevice",bde="neuronDevices",vde="nitroEnclavesSupport",Sde="natGateway",pL="networkInterfaceId",_de="networkInterfaceSet",wde="networkInterface",Ede="networkInfo",xde="neuronInfo",Rde="networkPerformanceOptions",hL="networkPerformance",Cde="noReboot",mL="nvmeSupport",Ade="nitroTpmInfo",Tde="nitroTpmSupport",Qo="nextToken",Ide="nestedVirtualization",md="outpostArn",Ode="ownerAlias",Kl="ownerId",gL="optInStatus",Mde="originalIops",Dde="originalMultiAttachEnabled",kde="originalSize",Pde="originalThroughput",Nde="originalVolumeType",lg="operator",Lde="output",zde="principal",Bde="peakBandwidthInGbps",yL="productCodes",$de="productCode",Ude="privateDnsNameOptions",jde="privateDnsNameOptionsOnLaunch",K_="privateDnsName",Hde="publicDnsName",bL="platformDetails",Vde="placementGroupInfo",Fde="publicIp",vL="privateIpAddressesSet",qde="privateIpAddressSet",_c="privateIpAddress",Gde="processorInfo",Zde="publicKey",Kde="publicKeyMaterial",Qde="partitionNumber",Yde="phcSupport",Xde="previousState",Wde="presignedUrl",Jde="parentZoneId",epe="parentZoneName",SL="platform",tpe="placement",_L="primary",wL="progress",npe="return",EL="rootDeviceName",xL="rootDeviceType",spe="restoreExpiryTime",rpe="regionEndpoint",ope="resourceExclusions",ipe="reservationId",RL="ramdiskId",ape="regionInfo",cpe="requesterId",lpe="rebootMigrationSupport",upe="rebootMigration",CL="regionName",fpe="reservationSet",dpe="resourceType",ppe="ramdisk",hpe="reason",AL="smithy.ts.sdk.synthetic.com.amazonaws.ec2",mpe="supportedArchitectures",gpe="subnetArn",ype="supportedBootModes",bpe="sustainedClockSpeedInGhz",Q_="sourceDestCheck",vpe="spreadDomain",Spe="supportedFeatures",_pe="subGeographySet",wpe="sizeInGB",Epe="sourceInstanceId",xpe="secondaryInterfaceId",Rpe="sourceImageId",Ql="sizeInMiB",Cpe="sourceImageRegion",Ape="spotInstanceRequestId",Tpe="secondaryInterfaceSet",ug="snapshotId",fg="subnetId",dg="statusMessage",TL="stateMessage",Ipe="secondaryNetworkId",Ope="secondaryNetworkSupported",Y_="sriovNetSupport",Mpe="secondaryPrivateIpAddressCount",Dpe="supportedRootDeviceTypes",IL="stateReason",kpe="secondarySubnetId",Ppe="snapshotSet",Npe="subnetSet",Lpe="supportedStrategies",OL="startTime",ML="sseType",zpe="storageTier",Bpe="supportedUsageClasses",$pe="sourceVolumeId",Upe="supportedVirtualizationTypes",jpe="supportedVersions",Hpe="size",ma="state",ga="status",Vpe="subnet",Fpe="tenancy",qpe="tcpEstablishedTimeout",Gpe="totalFpgaMemoryInMiB",Zpe="totalGpuMemoryInMiB",Kpe="totalInferenceMemoryInMiB",Qpe="targetIops",Ype="targetMultiAttachEnabled",Xpe="totalMediaMemoryInMiB",Wpe="totalNeuronDeviceMemoryInMiB",Jpe="threadsPerCore",zr="tagSet",ehe="totalSizeInGB",the="targetSize",DL="tpmSupport",nhe="targetThroughput",she="transferType",rhe="targetVolumeType",kL="throughput",ohe="timestamp",X_="type",ihe="userData",PL="usageOperation",ahe="usageOperationUpdateTime",che="udpStreamTimeout",lhe="udpTimeout",gd="value",uhe="vCpuInfo",fhe="validCores",dhe="vpcEncryptionControlId",yd="vpcId",phe="volumeInitializationRate",Yl="volumeId",hhe="vpcLattice",mhe="volumeModification",NL="virtualName",ghe="volumeOwnerId",yhe="virtualPrivateGateway",bhe="vpcPeering",vhe="volumeSet",LL="volumeSize",She="vpcSet",zL="volumeType",_he="validThreadsPerCore",BL="virtualizationType",whe="version",Ehe="vpc",xhe="workloadSet",y="xmlName",Rhe="zoneId",Che="zoneName",Ahe="zoneState",The="zoneType",I="com.amazonaws.ec2",$L=ts.for(AL);var Ihe=[-3,AL,"EC2ServiceException",0,[],[]];$L.registerError(Ihe,jS);const Ohe=[$L];var Mhe=[0,I,pee,8,0],Dhe=[0,I,zie,8,0],khe=[0,I,Qae,8,0],Phe=[3,I,wJ,0,[XS,ls,Ys,nd,yt],[0,0,0,1,[2,{[_]:"DryRun",[y]:Rt}]],3],df=[3,I,uJ,0,[ql],[[2,{[_]:"Value",[y]:gd}]]],pf=[3,I,EJ,0,[ql],[[0,{[_]:"Value",[y]:gd}]]],Nhe=[3,I,la,0,[LP,Ooe,Wm,M_,O_,i_,RP,ule,xie,Eie,Vne,V3,cae,Ts],[[0,{[_]:"OptInStatus",[y]:gL}],[()=>Vye,{[_]:"MessageSet",[y]:fde}],[0,{[_]:"RegionName",[y]:CL}],[0,{[_]:"ZoneName",[y]:Che}],[0,{[_]:"ZoneId",[y]:Rhe}],[0,{[_]:"GroupName",[y]:j_}],[0,{[_]:"NetworkBorderGroup",[y]:fL}],[0,{[_]:"ZoneType",[y]:The}],[0,{[_]:"ParentZoneName",[y]:epe}],[0,{[_]:"ParentZoneId",[y]:Jde}],[0,{[_]:"GroupLongName",[y]:Que}],[()=>jye,{[_]:"GeographySet",[y]:VN}],[()=>Fye,{[_]:"SubGeographySet",[y]:_pe}],[0,{[_]:"ZoneState",[y]:Ahe}]]],Lhe=[3,I,RJ,0,[Qs],[[0,{[_]:"Name",[y]:xr}]]],zhe=[3,I,TJ,0,[EP],[[0,{[_]:"Message",[y]:uL}]]],Bhe=[3,I,OJ,0,[Qs],[[0,{[_]:"Name",[y]:xr}]]],$he=[3,I,LJ,0,[ql],[[21,{[_]:"Value",[y]:gd}]]],UL=[3,I,VS,0,[n_,CP,YS,mN],[[()=>Pme,{[_]:"Ebs",[y]:$_}],[0,{[_]:"NoDevice",[y]:dL}],[0,{[_]:"DeviceName",[y]:L_}],[0,{[_]:"VirtualName",[y]:NL}]]],jL=[3,I,FS,0,[gse],[[0,{[_]:"InternetGatewayBlockMode",[y]:gfe}]]],Uhe=[3,I,ZS,0,[S3,KS],[0,()=>Hhe]],jhe=[3,I,uee,0,[S3,KS],[[0,{[_]:"CapacityReservationPreference",[y]:Vle}],[()=>Vhe,{[_]:"CapacityReservationTarget",[y]:Gle}]]],Hhe=[3,I,KS,0,[GS,_3],[0,0]],Vhe=[3,I,fee,0,[GS,_3],[[0,{[_]:"CapacityReservationId",[y]:kN}],[0,{[_]:"CapacityReservationResourceGroupArn",[y]:Fle}]]],Fhe=[3,I,Cee,0,[rN,uN,fN],[1,1,1]],qhe=[3,I,Aee,0,[rN,uN,fN],[[1,{[_]:"TcpEstablishedTimeout",[y]:qpe}],[1,{[_]:"UdpStreamTimeout",[y]:che}],[1,{[_]:"UdpTimeout",[y]:lhe}]]],Ghe=[3,I,dee,0,[Vae,Fae,hc,ate,dte,sd,id,wie,Zo,v3,Pee,yt],[0,0,0,0,[0,{[_]:"DestinationRegion",[y]:iue}],[2,{[_]:"Encrypted",[y]:dd}],[0,{[_]:"KmsKeyId",[y]:ag}],[()=>Mhe,{[_]:"PresignedUrl",[y]:Wde}],[()=>Yo,{[y]:ro}],1,0,[2,{[_]:"DryRun",[y]:Rt}]],2],Zhe=[3,I,hee,0,[Er,pa],[[()=>Rr,{[_]:"TagSet",[y]:zr}],[0,{[_]:"SnapshotId",[y]:ug}]]],Khe=[3,I,qS,0,[b3,oN,a3,NP],[[1,{[_]:"CoreCount",[y]:kle}],[1,{[_]:"ThreadsPerCore",[y]:Jpe}],[0,{[_]:"AmdSevSnp",[y]:Sle}],[0,{[_]:"NestedVirtualization",[y]:Ide}]]],Qhe=[3,I,lee,0,[b3,oN,a3,NP],[1,1,0,0]],Yhe=[3,I,tee,0,[ls,Qs,Zo,Pae,yt,hc,Hoe,ed],[[0,{[_]:"InstanceId",[y]:Gl}],[0,{[_]:"Name",[y]:xr}],[()=>Yo,{[y]:ro}],0,[2,{[_]:"DryRun",[y]:Rt}],[0,{[_]:"Description",[y]:fd}],[2,{[_]:"NoReboot",[y]:Cde}],[()=>WL,{[_]:"BlockDeviceMapping",[y]:rg}]],2],Xhe=[3,I,nee,0,[Hl],[[0,{[_]:"ImageId",[y]:F_}]]],Whe=[3,I,iee,0,[so,pP,Zo,Dre,yt],[0,0,[()=>Yo,{[y]:ro}],0,[2,{[_]:"DryRun",[y]:Rt}]],1],Jhe=[3,I,mee,0,[Ys,hc,da,Zo,ioe,yt],[0,0,0,[()=>Yo,{[y]:ro}],0,[2,{[_]:"DryRun",[y]:Rt}]],1],eme=[3,I,gee,0,[Ko,Zo,la,jl,td,Km,da,sP,eP,oP,J3,rP,yt],[0,[()=>Yo,{[y]:ro}],0,0,0,0,0,2,0,1,0,1,[2,{[_]:"DryRun",[y]:Rt}]],1],tme=[3,I,yee,0,[sN],[[()=>KL,{[_]:"Subnet",[y]:Vpe}]]],nme=[3,I,Iee,0,[la,jl,sd,Ym,id,da,T_,pa,ng,Zo,y_,eg,QS,I_,Vl,yt],[0,0,[2,{[_]:"Encrypted",[y]:dd}],1,0,0,1,0,0,[()=>Yo,{[y]:ro}],2,1,[0,4],1,()=>VL,[2,{[_]:"DryRun",[y]:Rt}]]],sme=[3,I,Oee,0,[td,aP,Km,eP,oP,J3,rP,cse,pN,Zo,yt,fP,bJ],[0,0,0,0,1,0,1,0,()=>zye,[()=>Yo,{[y]:ro}],[2,{[_]:"DryRun",[y]:Rt}],[0,{[_]:"InstanceTenancy",[y]:eL}],[2,{[_]:"AmazonProvidedIpv6CidrBlock",[y]:yle}]]],rme=[3,I,Mee,0,[vN],[[()=>YL,{[_]:"Vpc",[y]:Ehe}]]],ome=[3,I,bee,0,[YJ],[0],1],ime=[3,I,tte,0,[so,mc,yt],[0,0,[2,{[_]:"DryRun",[y]:Rt}]]],ame=[3,I,nte,0,[Cie,mc],[[2,{[_]:"Return",[y]:npe}],[0,{[_]:"KeyPairId",[y]:cg}]]],cme=[3,I,hte,0,[pa,yt],[0,[2,{[_]:"DryRun",[y]:Rt}]],1],lme=[3,I,mte,0,[ha,yt],[0,[2,{[_]:"DryRun",[y]:Rt}]],1],ume=[3,I,Ate,0,[Ys,yt],[0,[2,{[_]:"DryRun",[y]:Rt}]],1],fme=[3,I,Tte,0,[Ko,yt],[0,[2,{[_]:"DryRun",[y]:Rt}]],1],dme=[3,I,Nee,0,[lle,ale,lJ,yt,no],[[()=>obe,{[y]:M_}],[()=>rbe,{[y]:O_}],2,[2,{[_]:"DryRun",[y]:Rt}],[()=>oo,{[y]:wr}]]],pme=[3,I,Lee,0,[DJ],[[()=>Hye,{[_]:"AvailabilityZoneInfo",[y]:wle}]]],hme=[3,I,Fee,0,[xne,Tse,nie,lse,pse,yc,As,yt,no],[[()=>t0e,{[y]:A3}],[()=>o0e,{[y]:Hl}],[()=>JL,{[y]:v_}],2,2,1,0,[2,{[_]:"DryRun",[y]:Rt}],[()=>oo,{[y]:wr}]]],mme=[3,I,qee,0,[As,Are],[[0,{[_]:"NextToken",[y]:Qo}],[()=>i0e,{[_]:"ImagesSet",[y]:Pfe}]]],gme=[3,I,Gee,0,[rd,yt,no,As,yc],[[()=>bd,{[y]:ls}],[2,{[_]:"DryRun",[y]:Rt}],[()=>oo,{[y]:wr}],[0,{[_]:"NextToken",[y]:Qo}],[1,{[_]:"MaxResults",[y]:cL}]]],yme=[3,I,Zee,0,[As,Wie],[[0,{[_]:"NextToken",[y]:Qo}],[()=>z0e,{[_]:"ReservationSet",[y]:fpe}]]],bme=[3,I,Kee,0,[yt,dP,no,yc,As],[2,[64,{[y]:od}],[()=>oo,{[y]:wr}],1,0]],vme=[3,I,Qee,0,[dP,As],[[()=>S0e,{[_]:"InstanceTypeSet",[y]:$fe}],[0,{[_]:"NextToken",[y]:Qo}]]],Sme=[3,I,ste,0,[Nre,Bre,rre,yt,no],[[()=>E0e,{[y]:so}],[()=>x0e,{[y]:mc}],2,[2,{[_]:"DryRun",[y]:Rt}],[()=>oo,{[y]:wr}]]],_me=[3,I,rte,0,[Lre],[[()=>R0e,{[_]:"KeySet",[y]:Ffe}]]],wme=[3,I,ute,0,[Zie,SJ,yt,no],[[()=>L0e,{[y]:Wm}],2,[2,{[_]:"DryRun",[y]:Rt}],[()=>oo,{[y]:wr}]]],Eme=[3,I,fte,0,[Yie],[[()=>N0e,{[_]:"RegionInfo",[y]:ape}]]],xme=[3,I,gte,0,[yc,As,Zoe,Aie,Iae,yt,no],[1,0,[()=>JL,{[y]:v_}],[64,{[y]:Tie}],[()=>U0e,{[y]:pa}],[2,{[_]:"DryRun",[y]:Rt}],[()=>oo,{[y]:wr}]]],Rme=[3,I,yte,0,[As,Jae],[[0,{[_]:"NextToken",[y]:Qo}],[()=>j0e,{[_]:"SnapshotSet",[y]:Ppe}]]],Cme=[3,I,bte,0,[no,dae,As,yc,yt],[[()=>oo,{[y]:wr}],[()=>H0e,{[y]:ha}],0,1,[2,{[_]:"DryRun",[y]:Rt}]]],Ame=[3,I,vte,0,[As,tce],[[0,{[_]:"NextToken",[y]:Qo}],[()=>F0e,{[_]:"SubnetSet",[y]:Npe}]]],Tme=[3,I,Ite,0,[$ce,yt,no,As,yc],[[()=>X0e,{[y]:Ys}],[2,{[_]:"DryRun",[y]:Rt}],[()=>oo,{[y]:wr}],[0,{[_]:"NextToken",[y]:Qo}],[1,{[_]:"MaxResults",[y]:cL}]]],Ime=[3,I,Ote,0,[As,tle],[[0,{[_]:"NextToken",[y]:Qo}],[()=>W0e,{[_]:"VolumeSet",[y]:vhe}]]],Ome=[3,I,Mte,0,[no,Uce,As,yc,yt],[[()=>oo,{[y]:wr}],[()=>ebe,{[y]:Ko}],0,1,[2,{[_]:"DryRun",[y]:Rt}]]],Mme=[3,I,Dte,0,[As,sle],[[0,{[_]:"NextToken",[y]:Qo}],[()=>nbe,{[_]:"VpcSet",[y]:She}]]],Dme=[3,I,kte,0,[Ys,XS,r_,ls,yt],[0,0,2,0,[2,{[_]:"DryRun",[y]:Rt}]],1],kme=[3,I,Jee,0,[mae,ua,tg],[[1,{[_]:"SizeInGB",[y]:wpe}],[1,{[_]:"Count",[y]:vc}],[0,{[_]:"Type",[y]:X_}]]],Pme=[3,I,Ute,0,[fa,Ym,pa,gN,ng,id,eg,da,la,sd,I_,jl,nd],[[2,{[_]:"DeleteOnTermination",[y]:Sc}],[1,{[_]:"Iops",[y]:nL}],[0,{[_]:"SnapshotId",[y]:ug}],[1,{[_]:"VolumeSize",[y]:LL}],[0,{[_]:"VolumeType",[y]:zL}],[0,{[_]:"KmsKeyId",[y]:ag}],[1,{[_]:"Throughput",[y]:kL}],[0,{[_]:"OutpostArn",[y]:md}],[0,{[_]:"AvailabilityZone",[y]:ud}],[2,{[_]:"Encrypted",[y]:dd}],1,0,1]],Nme=[3,I,Vte,0,[nd,p3,g3,h3,yP,wP,bP],[[1,{[_]:"EbsCardIndex",[y]:z_}],[1,{[_]:"BaselineBandwidthInMbps",[y]:TN}],[1,{[_]:"BaselineThroughputInMBps",[y]:DN}],[1,{[_]:"BaselineIops",[y]:IN}],[1,{[_]:"MaximumBandwidthInMbps",[y]:oL}],[1,{[_]:"MaximumThroughputInMBps",[y]:lL}],[1,{[_]:"MaximumIops",[y]:iL}]]],Lme=[3,I,M3,0,[yne,$3,k3,kP,poe,gJ,hoe,Fte],[[0,{[_]:"EbsOptimizedSupport",[y]:Due}],[0,{[_]:"EncryptionSupport",[y]:UN}],[()=>$me,{[_]:"EbsOptimizedInfo",[y]:Oue}],[0,{[_]:"NvmeSupport",[y]:mL}],[1,{[_]:"MaximumEbsAttachments",[y]:nde}],[0,{[_]:"AttachmentLimitType",[y]:mle}],[1,{[_]:"MaximumEbsCards",[y]:sde}],[()=>Yye,{[_]:"EbsCardSet",[y]:due}]]],zme=[3,I,une,0,[Fm,fa,ld,Ys,o3,qce,Vl,nd],[[4,{[_]:"AttachTime",[y]:sg}],[2,{[_]:"DeleteOnTermination",[y]:Sc}],[0,{[_]:"Status",[y]:ga}],[0,{[_]:"VolumeId",[y]:Yl}],[0,{[_]:"AssociatedResource",[y]:wN}],[0,{[_]:"VolumeOwnerId",[y]:ghe}],[()=>pg,{[_]:"Operator",[y]:lg}],[1,{[_]:"EbsCardIndex",[y]:z_}]]],Bme=[3,I,fne,0,[Ys,fa],[[0,{[_]:"VolumeId",[y]:Yl}],[2,{[_]:"DeleteOnTermination",[y]:Sc}]]],$me=[3,I,k3,0,[p3,g3,h3,yP,wP,bP],[[1,{[_]:"BaselineBandwidthInMbps",[y]:TN}],[1,{[_]:"BaselineThroughputInMBps",[y]:DN}],[1,{[_]:"BaselineIops",[y]:IN}],[1,{[_]:"MaximumBandwidthInMbps",[y]:oL}],[1,{[_]:"MaximumThroughputInMBps",[y]:lL}],[1,{[_]:"MaximumIops",[y]:iL}]]],Ume=[3,I,D3,0,[moe],[[1,{[_]:"MaximumEfaInterfaces",[y]:rde}]]],jme=[3,I,Qte,0,[tne,Yte,Wte,Jte],[[0,{[_]:"ElasticGpuId",[y]:Sue}],[0,{[_]:"ElasticGpuAssociationId",[y]:gue}],[0,{[_]:"ElasticGpuAssociationState",[y]:yue}],[0,{[_]:"ElasticGpuAssociationTime",[y]:vue}]]],Hme=[3,I,T3,0,[tg],[0],1],Vme=[3,I,I3,0,[tg,ua],[0,1],1],Fme=[3,I,sne,0,[cne,rne,ine,ane],[[0,{[_]:"ElasticInferenceAcceleratorArn",[y]:_ue}],[0,{[_]:"ElasticInferenceAcceleratorAssociationId",[y]:wue}],[0,{[_]:"ElasticInferenceAcceleratorAssociationState",[y]:Eue}],[4,{[_]:"ElasticInferenceAcceleratorAssociationTime",[y]:Rue}]]],qme=[3,I,vne,0,[N3,B3],[2,()=>Gme]],Gme=[3,I,_ne,0,[z3],[2]],Zme=[3,I,JS,0,[s_],[[2,{[_]:"Enabled",[y]:jN}]]],Kme=[3,I,gne,0,[s_],[2]],Qme=[3,I,wr,0,[Qs,ele],[0,[()=>K0e,{[y]:ql}]]],Yme=[3,I,Cne,0,[Qs,ad,ua,gc],[[0,{[_]:"Name",[y]:xr}],[0,{[_]:"Manufacturer",[y]:hd}],[1,{[_]:"Count",[y]:vc}],[()=>Xme,{[_]:"MemoryInfo",[y]:Zl}]]],Xme=[3,I,Tne,0,[Fl],[[1,{[_]:"SizeInMiB",[y]:Ql}]]],Wme=[3,I,U3,0,[kne,nce],[[()=>n0e,{[_]:"Fpgas",[y]:Zue}],[1,{[_]:"TotalFpgaMemoryInMiB",[y]:Gpe}]]],Jme=[3,I,Nne,0,[ls,soe,yt],[0,2,[2,{[_]:"DryRun",[y]:Rt}]],1],ege=[3,I,Lne,0,[ls,wce,tie],[[0,{[_]:"InstanceId",[y]:Gl}],[4,{[_]:"Timestamp",[y]:ohe}],[0,{[_]:"Output",[y]:Lde}]]],tge=[3,I,zne,0,[Qs,ad,ua,Gre,Fne,ole,gc],[[0,{[_]:"Name",[y]:xr}],[0,{[_]:"Manufacturer",[y]:hd}],[1,{[_]:"Count",[y]:vc}],[1,{[_]:"LogicalGpuCount",[y]:Kfe}],[1,{[_]:"GpuPartitionSize",[y]:Yue}],[()=>sbe,{[_]:"WorkloadSet",[y]:xhe}],[()=>nge,{[_]:"MemoryInfo",[y]:Zl}]]],nge=[3,I,$ne,0,[Fl],[[1,{[_]:"SizeInMiB",[y]:Ql}]]],sge=[3,I,H3,0,[qne,sce],[[()=>s0e,{[_]:"Gpus",[y]:Xue}],[1,{[_]:"TotalGpuMemoryInMiB",[y]:Zpe}]]],rge=[3,I,Hne,0,[o_,i_],[[0,{[_]:"GroupId",[y]:U_}],[0,{[_]:"GroupName",[y]:j_}]]],oge=[3,I,a_,0,[x3],[[2,{[_]:"Configured",[y]:Yle}]]],ige=[3,I,Zne,0,[x3],[2]],age=[3,I,d_,0,[l3,Xne],[[0,{[_]:"Arn",[y]:xN}],[0,{[_]:"Id",[y]:ife}]]],cge=[3,I,Ese,0,[l3,Qs],[[0,{[_]:"Arn",[y]:xN}],[0,{[_]:"Name",[y]:xr}]]],lge=[3,I,Tre,0,[HP,lN,ed,hc,Gm,l_,Yse,Qs,KP,QP,C_,A_,Er,yN,m3,iN,Rte,_re,bae,lte,Kre,sse,gae,Sae,j3,Hl,Dse,Ts,bc,XJ,Rie,BP,u3,Cre,g_,w_,qP],[[0,{[_]:"PlatformDetails",[y]:bL}],[0,{[_]:"UsageOperation",[y]:PL}],[()=>Gye,{[_]:"BlockDeviceMapping",[y]:rg}],[0,{[_]:"Description",[y]:fd}],[2,{[_]:"EnaSupport",[y]:og}],[0,{[_]:"Hypervisor",[y]:V_}],[0,{[_]:"ImageOwnerAlias",[y]:_fe}],[0,{[_]:"Name",[y]:xr}],[0,{[_]:"RootDeviceName",[y]:EL}],[0,{[_]:"RootDeviceType",[y]:xL}],[0,{[_]:"SriovNetSupport",[y]:Y_}],[()=>ZL,{[_]:"StateReason",[y]:IL}],[()=>Rr,{[_]:"TagSet",[y]:zr}],[0,{[_]:"VirtualizationType",[y]:BL}],[0,{[_]:"BootMode",[y]:ON}],[0,{[_]:"TpmSupport",[y]:DL}],[0,{[_]:"DeprecationTime",[y]:cue}],[0,{[_]:"ImdsSupport",[y]:Lfe}],[0,{[_]:"SourceInstanceId",[y]:Epe}],[0,{[_]:"DeregistrationProtection",[y]:oue}],[0,{[_]:"LastLaunchedTime",[y]:Qfe}],[2,{[_]:"ImageAllowed",[y]:dfe}],[0,{[_]:"SourceImageId",[y]:Rpe}],[0,{[_]:"SourceImageRegion",[y]:Cpe}],[2,{[_]:"FreeTierEligible",[y]:HN}],[0,{[_]:"ImageId",[y]:F_}],[0,{[_]:"ImageLocation",[y]:yfe}],[0,{[_]:"ImageState",[y]:Nfe}],[0,{[_]:"ImageOwnerId",[y]:wfe}],[0,{[_]:"CreationDate",[y]:Nle}],[2,{[_]:"IsPublic",[y]:Mfe}],[()=>ez,{[_]:"ProductCodes",[y]:yL}],[0,{[_]:"Architecture",[y]:RN}],[0,{[_]:"ImageType",[y]:jfe}],[0,{[_]:"KernelId",[y]:sL}],[0,{[_]:"RamdiskId",[y]:RL}],[0,{[_]:"Platform",[y]:SL}]]],uge=[3,I,Ose,0,[so,bie,Zo,yt],[[0,{[_]:"KeyName",[y]:pd}],[21,{[_]:"PublicKeyMaterial",[y]:Kde}],[()=>Yo,{[y]:ro}],[2,{[_]:"DryRun",[y]:Rt}]],2],fge=[3,I,Mse,0,[m_,so,mc,Er],[[0,{[_]:"KeyFingerprint",[y]:G_}],[0,{[_]:"KeyName",[y]:pd}],[0,{[_]:"KeyPairId",[y]:cg}],[()=>Rr,{[_]:"TagSet",[y]:zr}]]],dge=[3,I,Y3,0,[c3,oce],[[()=>a0e,{[_]:"Accelerators",[y]:EN}],[1,{[_]:"TotalInferenceMemoryInMiB",[y]:Kpe}]]],pge=[3,I,use,0,[ua,Qs,ad,gc],[[1,{[_]:"Count",[y]:vc}],[0,{[_]:"Name",[y]:xr}],[0,{[_]:"Manufacturer",[y]:hd}],[()=>hge,{[_]:"MemoryInfo",[y]:Zl}]]],hge=[3,I,dse,0,[Fl],[[1,{[_]:"SizeInMiB",[y]:Ql}]]],mge=[3,I,Ire,0,[u3,ed,QS,WS,Gm,l_,d_,Pse,ene,lne,TP,da,KP,QP,YP,Jm,vae,C_,A_,Er,yN,qS,ZJ,GS,ZS,a_,ooe,SP,JS,m3,HP,lN,xce,$P,f_,iN,_P,eee,MP,Vl,WP,ls,Hl,Ts,S_,jP,Gae,so,mJ,BP,od,noe,__,g_,w_,qP,b_,ha,Ko,Go,mie],[[0,{[_]:"Architecture",[y]:RN}],[()=>c0e,{[_]:"BlockDeviceMapping",[y]:rg}],[0,{[_]:"ClientToken",[y]:PN}],[2,{[_]:"EbsOptimized",[y]:B_}],[2,{[_]:"EnaSupport",[y]:og}],[0,{[_]:"Hypervisor",[y]:V_}],[()=>age,{[_]:"IamInstanceProfile",[y]:XN}],[0,{[_]:"InstanceLifecycle",[y]:bfe}],[()=>Xye,{[_]:"ElasticGpuAssociationSet",[y]:bue}],[()=>Jye,{[_]:"ElasticInferenceAcceleratorAssociationSet",[y]:xue}],[()=>p0e,{[_]:"NetworkInterfaceSet",[y]:_de}],[0,{[_]:"OutpostArn",[y]:md}],[0,{[_]:"RootDeviceName",[y]:EL}],[0,{[_]:"RootDeviceType",[y]:xL}],[()=>J_,{[_]:"GroupSet",[y]:H_}],[2,{[_]:"SourceDestCheck",[y]:Q_}],[0,{[_]:"SpotInstanceRequestId",[y]:Ape}],[0,{[_]:"SriovNetSupport",[y]:Y_}],[()=>ZL,{[_]:"StateReason",[y]:IL}],[()=>Rr,{[_]:"TagSet",[y]:zr}],[0,{[_]:"VirtualizationType",[y]:BL}],[()=>Khe,{[_]:"CpuOptions",[y]:Ule}],[0,{[_]:"CapacityBlockId",[y]:Mle}],[0,{[_]:"CapacityReservationId",[y]:kN}],[()=>jhe,{[_]:"CapacityReservationSpecification",[y]:qle}],[()=>oge,{[_]:"HibernationOptions",[y]:efe}],[()=>C0e,{[_]:"LicenseSet",[y]:Yfe}],[()=>Age,{[_]:"MetadataOptions",[y]:cde}],[()=>Zme,{[_]:"EnclaveOptions",[y]:kue}],[0,{[_]:"BootMode",[y]:ON}],[0,{[_]:"PlatformDetails",[y]:bL}],[0,{[_]:"UsageOperation",[y]:PL}],[4,{[_]:"UsageOperationUpdateTime",[y]:ahe}],[()=>pye,{[_]:"PrivateDnsNameOptions",[y]:Ude}],[0,{[_]:"Ipv6Address",[y]:ZN}],[0,{[_]:"TpmSupport",[y]:DL}],[()=>Ege,{[_]:"MaintenanceOptions",[y]:lde}],[0,{[_]:"CurrentInstanceBootMode",[y]:Ble}],[()=>Mge,{[_]:"NetworkPerformanceOptions",[y]:Rde}],[()=>pg,{[_]:"Operator",[y]:lg}],[()=>g0e,{[_]:"SecondaryInterfaceSet",[y]:Tpe}],[0,{[_]:"InstanceId",[y]:Gl}],[0,{[_]:"ImageId",[y]:F_}],[()=>Iv,{[_]:"InstanceState",[y]:zfe}],[0,{[_]:"PrivateDnsName",[y]:K_}],[0,{[_]:"DnsName",[y]:sue}],[0,{[_]:"Reason",[y]:hpe}],[0,{[_]:"KeyName",[y]:pd}],[1,{[_]:"AmiLaunchIndex",[y]:hle}],[()=>ez,{[_]:"ProductCodes",[y]:yL}],[0,{[_]:"InstanceType",[y]:q_}],[4,{[_]:"LaunchTime",[y]:Xfe}],[()=>FL,{[_]:"Placement",[y]:tpe}],[0,{[_]:"KernelId",[y]:sL}],[0,{[_]:"RamdiskId",[y]:RL}],[0,{[_]:"Platform",[y]:SL}],[()=>nye,{[_]:"Monitoring",[y]:mde}],[0,{[_]:"SubnetId",[y]:fg}],[0,{[_]:"VpcId",[y]:yd}],[0,{[_]:"PrivateIpAddress",[y]:_c}],[0,{[_]:"IpAddress",[y]:pfe}]]],gge=[3,I,Wne,0,[N3,B3],[[2,{[_]:"EnaSrdEnabled",[y]:Nue}],[()=>yge,{[_]:"EnaSrdUdpSpecification",[y]:$ue}]]],yge=[3,I,Jne,0,[z3],[[2,{[_]:"EnaSrdUdpEnabled",[y]:Bue}]]],bge=[3,I,rse,0,[YS,n_],[[0,{[_]:"DeviceName",[y]:L_}],[()=>zme,{[_]:"Ebs",[y]:$_}]]],vge=[3,I,ise,0,[YS,n_,mN,CP],[[0,{[_]:"DeviceName",[y]:L_}],[()=>Bme,{[_]:"Ebs",[y]:$_}],[0,{[_]:"VirtualName",[y]:NL}],[0,{[_]:"NoDevice",[y]:dL}]]],Sge=[3,I,xse,0,[h_],[[0,{[_]:"Ipv4Prefix",[y]:Tfe}]]],_ge=[3,I,bse,0,[f_,sre],[[0,{[_]:"Ipv6Address",[y]:ZN}],[2,{[_]:"IsPrimaryIpv6",[y]:Rfe}]]],wge=[3,I,Rse,0,[p_],[[0,{[_]:"Ipv6Prefix",[y]:Ofe}]]],Ege=[3,I,Lse,0,[i3,qie],[[0,{[_]:"AutoRecovery",[y]:vle}],[0,{[_]:"RebootMigration",[y]:upe}]]],xge=[3,I,zse,0,[i3],[0]],Rge=[3,I,Bse,0,[Roe,Uae],[0,()=>wye]],Cge=[3,I,$se,0,[Z3,G3,F3,q3,nP],[0,1,0,0,0]],Age=[3,I,Use,0,[Ts,Z3,G3,F3,q3,nP],[[0,{[_]:"State",[y]:ma}],[0,{[_]:"HttpTokens",[y]:ofe}],[1,{[_]:"HttpPutResponseHopLimit",[y]:nfe}],[0,{[_]:"HttpEndpoint",[y]:Wue}],[0,{[_]:"HttpProtocolIpv6",[y]:tfe}],[0,{[_]:"InstanceMetadataTags",[y]:vfe}]]],Tge=[3,I,Hse,0,[f3,d3,hc,Zm,u_,gP,AP,bc,S_,Go,Xm,Jm,ld,ha,Ko,Qm,cP,iP,xee,Vl],[[()=>HL,{[_]:"Association",[y]:CN}],[()=>Ige,{[_]:"Attachment",[y]:AN}],[0,{[_]:"Description",[y]:fd}],[()=>J_,{[_]:"GroupSet",[y]:H_}],[()=>ew,{[_]:"Ipv6AddressesSet",[y]:GN}],[0,{[_]:"MacAddress",[y]:rL}],[0,{[_]:"NetworkInterfaceId",[y]:pL}],[0,{[_]:"OwnerId",[y]:Kl}],[0,{[_]:"PrivateDnsName",[y]:K_}],[0,{[_]:"PrivateIpAddress",[y]:_c}],[()=>m0e,{[_]:"PrivateIpAddressesSet",[y]:vL}],[2,{[_]:"SourceDestCheck",[y]:Q_}],[0,{[_]:"Status",[y]:ga}],[0,{[_]:"SubnetId",[y]:fg}],[0,{[_]:"VpcId",[y]:yd}],[0,{[_]:"InterfaceType",[y]:tL}],[()=>u0e,{[_]:"Ipv4PrefixSet",[y]:Cfe}],[()=>f0e,{[_]:"Ipv6PrefixSet",[y]:Afe}],[()=>qhe,{[_]:"ConnectionTrackingConfiguration",[y]:Kle}],[()=>pg,{[_]:"Operator",[y]:lg}]]],HL=[3,I,Vse,0,[JJ,aee,Xse,jP,fie],[[0,{[_]:"CarrierIp",[y]:zle}],[0,{[_]:"CustomerOwnedIp",[y]:jle}],[0,{[_]:"IpOwnerId",[y]:Efe}],[0,{[_]:"PublicDnsName",[y]:Hde}],[0,{[_]:"PublicIp",[y]:Fde}]]],Ige=[3,I,Fse,0,[Fm,r3,fa,qm,ld,cd,L3,P3],[[4,{[_]:"AttachTime",[y]:sg}],[0,{[_]:"AttachmentId",[y]:_N}],[2,{[_]:"DeleteOnTermination",[y]:Sc}],[1,{[_]:"DeviceIndex",[y]:N_}],[0,{[_]:"Status",[y]:ga}],[1,{[_]:"NetworkCardIndex",[y]:Z_}],[()=>gge,{[_]:"EnaSrdSpecification",[y]:Lue}],[1,{[_]:"EnaQueueCount",[y]:Pue}]]],Oge=[3,I,Gse,0,[yJ,fa,hc,qm,Zm,Q3,u_,AP,Go,Xm,jae,ha,fJ,Qm,cd,cP,ere,iP,Jse,gie,L3,Ree,P3],[[2,{[_]:"AssociatePublicIpAddress",[y]:gle}],[2,{[_]:"DeleteOnTermination",[y]:Sc}],[0,{[_]:"Description",[y]:fd}],[1,{[_]:"DeviceIndex",[y]:N_}],[()=>tz,{[y]:E_}],[1,{[_]:"Ipv6AddressCount",[y]:afe}],[()=>ew,{[_]:"Ipv6Addresses",[y]:GN}],[0,{[_]:"NetworkInterfaceId",[y]:pL}],[0,{[_]:"PrivateIpAddress",[y]:_c}],[()=>k0e,{[_]:"PrivateIpAddresses",[y]:vL}],[1,{[_]:"SecondaryPrivateIpAddressCount",[y]:Mpe}],[0,{[_]:"SubnetId",[y]:fg}],2,0,1,[()=>_0e,{[y]:h_}],1,[()=>w0e,{[y]:p_}],1,2,()=>qme,()=>Fhe,1]],Mge=[3,I,Kse,0,[y3],[[0,{[_]:"BandwidthWeighting",[y]:Tle}]]],Dge=[3,I,Qse,0,[y3],[0]],kge=[3,I,tre,0,[f3,GP,S_,Go],[[()=>HL,{[_]:"Association",[y]:CN}],[2,{[_]:"Primary",[y]:_L}],[0,{[_]:"PrivateDnsName",[y]:K_}],[0,{[_]:"PrivateIpAddress",[y]:_c}]]],Pge=[3,I,vre,0,[d3,gP,yae,bc,Xm,Jm,ld,eN,Bae,Qm],[[()=>Nge,{[_]:"Attachment",[y]:AN}],[0,{[_]:"MacAddress",[y]:rL}],[0,{[_]:"SecondaryInterfaceId",[y]:xpe}],[0,{[_]:"OwnerId",[y]:Kl}],[()=>y0e,{[_]:"PrivateIpAddressSet",[y]:qde}],[2,{[_]:"SourceDestCheck",[y]:Q_}],[0,{[_]:"Status",[y]:ga}],[0,{[_]:"SecondarySubnetId",[y]:kpe}],[0,{[_]:"SecondaryNetworkId",[y]:Ipe}],[0,{[_]:"InterfaceType",[y]:tL}]]],Nge=[3,I,fre,0,[Fm,r3,fa,qm,ld,cd],[[4,{[_]:"AttachTime",[y]:sg}],[0,{[_]:"AttachmentId",[y]:_N}],[2,{[_]:"DeleteOnTermination",[y]:Sc}],[1,{[_]:"DeviceIndex",[y]:N_}],[0,{[_]:"Status",[y]:ga}],[1,{[_]:"NetworkCardIndex",[y]:Z_}]]],Lge=[3,I,pre,0,[Go],[[0,{[_]:"PrivateIpAddress",[y]:_c}]]],zge=[3,I,gre,0,[Go],[0],1],Bge=[3,I,bre,0,[fa,qm,Xm,die,eN,Qm,cd],[2,1,[()=>b0e,{[y]:Go}],1,0,0,1]],Iv=[3,I,wre,0,[E3,Qs],[[1,{[_]:"Code",[y]:LN}],[0,{[_]:"Name",[y]:xr}]]],$ge=[3,I,lre,0,[ls,Eee,_ie],[[0,{[_]:"InstanceId",[y]:Gl}],[()=>Iv,{[_]:"CurrentState",[y]:Zle}],[()=>Iv,{[_]:"PreviousState",[y]:Xde}]]],Uge=[3,I,lP,0,[mce,$te,kP,$3],[[1,{[_]:"TotalSizeInGB",[y]:ehe}],[()=>Qye,{[_]:"Disks",[y]:fue}],[0,{[_]:"NvmeSupport",[y]:mL}],[0,{[_]:"EncryptionSupport",[y]:UN}]]],jge=[3,I,Rre,0,[od,WJ,j3,Kae,Hae,Xae,HJ,l_,FP,dN,gc,Sre,lP,M3,IP,H3,U3,VP,Y3,Qne,VJ,Hee,vJ,sae,$oe,Voe,PP,mP,OP,Sie,Fie],[[0,{[_]:"InstanceType",[y]:q_}],[2,{[_]:"CurrentGeneration",[y]:Lle}],[2,{[_]:"FreeTierEligible",[y]:HN}],[()=>Z0e,{[_]:"SupportedUsageClasses",[y]:Bpe}],[()=>B0e,{[_]:"SupportedRootDeviceTypes",[y]:Dpe}],[()=>Q0e,{[_]:"SupportedVirtualizationTypes",[y]:Upe}],[2,{[_]:"BareMetal",[y]:Cle}],[0,{[_]:"Hypervisor",[y]:V_}],[()=>mye,{[_]:"ProcessorInfo",[y]:Gde}],[()=>kye,{[_]:"VCpuInfo",[y]:uhe}],[()=>Wge,{[_]:"MemoryInfo",[y]:Zl}],[2,{[_]:"InstanceStorageSupported",[y]:kfe}],[()=>Uge,{[_]:"InstanceStorageInfo",[y]:Dfe}],[()=>Lme,{[_]:"EbsInfo",[y]:Aue}],[()=>rye,{[_]:"NetworkInfo",[y]:Ede}],[()=>sge,{[_]:"GpuInfo",[y]:Kue}],[()=>Wme,{[_]:"FpgaInfo",[y]:Vue}],[()=>uye,{[_]:"PlacementGroupInfo",[y]:Vde}],[()=>dge,{[_]:"InferenceAcceleratorInfo",[y]:cfe}],[2,{[_]:"HibernationSupported",[y]:rfe}],[2,{[_]:"BurstablePerformanceSupported",[y]:Ale}],[2,{[_]:"DedicatedHostsSupported",[y]:tue}],[2,{[_]:"AutoRecoverySupported",[y]:ble}],[()=>Zye,{[_]:"SupportedBootModes",[y]:ype}],[0,{[_]:"NitroEnclavesSupport",[y]:vde}],[0,{[_]:"NitroTpmSupport",[y]:Tde}],[()=>lye,{[_]:"NitroTpmInfo",[y]:Ade}],[()=>Qge,{[_]:"MediaAcceleratorInfo",[y]:ede}],[()=>cye,{[_]:"NeuronInfo",[y]:xde}],[0,{[_]:"PhcSupport",[y]:Yde}],[0,{[_]:"RebootMigrationSupport",[y]:lpe}]]],Hge=[3,I,are,0,[h_],[0]],Vge=[3,I,cre,0,[p_],[0]],Fge=[3,I,jre,0,[mc,Er,so,m_,kre],[[0,{[_]:"KeyPairId",[y]:cg}],[()=>Rr,{[_]:"TagSet",[y]:zr}],[0,{[_]:"KeyName",[y]:pd}],[0,{[_]:"KeyFingerprint",[y]:G_}],[()=>khe,{[_]:"KeyMaterial",[y]:Vfe}]]],qge=[3,I,$re,0,[mc,pP,Er,yie,w3,so,m_],[[0,{[_]:"KeyPairId",[y]:cg}],[0,{[_]:"KeyType",[y]:qfe}],[()=>Rr,{[_]:"TagSet",[y]:zr}],[0,{[_]:"PublicKey",[y]:Zde}],[4,{[_]:"CreateTime",[y]:NN}],[0,{[_]:"KeyName",[y]:pd}],[0,{[_]:"KeyFingerprint",[y]:G_}]]],Gge=[3,I,toe,0,[Jre,eoe,bN],[0,0,0]],Zge=[3,I,Fre,0,[hP],[[0,{[_]:"LicenseConfigurationArn",[y]:Zfe}]]],Kge=[3,I,Vre,0,[hP],[0]],Qge=[3,I,mP,0,[c3,dce],[[()=>T0e,{[_]:"Accelerators",[y]:EN}],[1,{[_]:"TotalMediaMemoryInMiB",[y]:Xpe}]]],Yge=[3,I,uoe,0,[ua,Qs,ad,gc],[[1,{[_]:"Count",[y]:vc}],[0,{[_]:"Name",[y]:xr}],[0,{[_]:"Manufacturer",[y]:hd}],[()=>Xge,{[_]:"MemoryInfo",[y]:Zl}]]],Xge=[3,I,doe,0,[Fl],[[1,{[_]:"SizeInMiB",[y]:Ql}]]],Wge=[3,I,gc,0,[Fl],[[1,{[_]:"SizeInMiB",[y]:Ql}]]],Jge=[3,I,boe,0,[ls,Jm,R3,yt,PJ,ql,ed,C3,od,Hre,Qie,cN,tP,Zm,WS,C_,Gm],[[0,{[_]:"InstanceId",[y]:Gl}],[()=>df,0],[()=>df,0],[2,{[_]:"DryRun",[y]:Rt}],[0,{[_]:"Attribute",[y]:xle}],[0,{[_]:"Value",[y]:gd}],[()=>l0e,{[_]:"BlockDeviceMapping",[y]:rg}],[()=>df,{[_]:"DisableApiTermination",[y]:zN}],[()=>pf,{[_]:"InstanceType",[y]:q_}],[()=>pf,{[_]:"Kernel",[y]:Gfe}],[()=>pf,{[_]:"Ramdisk",[y]:ppe}],[()=>$he,{[_]:"UserData",[y]:ihe}],[()=>pf,{[_]:"InstanceInitiatedShutdownBehavior",[y]:WN}],[()=>r0e,{[y]:o_}],[()=>df,{[_]:"EbsOptimized",[y]:B_}],[()=>pf,{[_]:"SriovNetSupport",[y]:Y_}],[()=>df,{[_]:"EnaSupport",[y]:og}]],1],eye=[3,I,Coe,0,[Ys,yt,T_,ng,Ym,eg,y_],[0,2,1,0,1,1,2],1],tye=[3,I,Aoe,0,[hN],[[()=>Pye,{[_]:"VolumeModification",[y]:mhe}]]],nye=[3,I,b_,0,[Ts],[[0,{[_]:"State",[y]:ma}]]],sye=[3,I,koe,0,[cd,DP,vP,dJ,zJ,sie,Uee,goe,yoe],[[1,{[_]:"NetworkCardIndex",[y]:Z_}],[0,{[_]:"NetworkPerformance",[y]:hL}],[1,{[_]:"MaximumNetworkInterfaces",[y]:aL}],[1,{[_]:"AdditionalFlexibleNetworkInterfaces",[y]:fle}],[1,{[_]:"BaselineBandwidthInGbps",[y]:Rle}],[1,{[_]:"PeakBandwidthInGbps",[y]:Bde}],[1,{[_]:"DefaultEnaQueueCountPerInterface",[y]:Jle}],[1,{[_]:"MaximumEnaQueueCount",[y]:ode}],[1,{[_]:"MaximumEnaQueueCountPerInterface",[y]:ide}]]],rye=[3,I,IP,0,[DP,vP,Soe,ite,Moe,ese,tse,Ere,Gm,wne,D3,dne,Sne,qJ,Ine,$ae,Eoe,nse],[[0,{[_]:"NetworkPerformance",[y]:hL}],[1,{[_]:"MaximumNetworkInterfaces",[y]:aL}],[1,{[_]:"MaximumNetworkCards",[y]:ade}],[1,{[_]:"DefaultNetworkCardIndex",[y]:nue}],[()=>I0e,{[_]:"NetworkCards",[y]:yde}],[1,{[_]:"Ipv4AddressesPerInterface",[y]:lfe}],[1,{[_]:"Ipv6AddressesPerInterface",[y]:ufe}],[2,{[_]:"Ipv6Supported",[y]:Bfe}],[0,{[_]:"EnaSupport",[y]:og}],[2,{[_]:"EfaSupported",[y]:Uue}],[()=>Ume,{[_]:"EfaInfo",[y]:Tue}],[2,{[_]:"EncryptionInTransitSupported",[y]:Cue}],[2,{[_]:"EnaSrdSupported",[y]:zue}],[()=>qye,{[_]:"BandwidthWeightings",[y]:Ile}],[0,{[_]:"FlexibleEnaQueuesSupport",[y]:Hue}],[2,{[_]:"SecondaryNetworkSupported",[y]:Ope}],[1,{[_]:"MaximumSecondaryNetworkInterfaces",[y]:dde}],[1,{[_]:"Ipv4AddressesPerSecondaryInterface",[y]:ffe}]]],oye=[3,I,Poe,0,[ua,bN],[[1,{[_]:"Count",[y]:vc}],[1,{[_]:"Version",[y]:whe}]]],iye=[3,I,Noe,0,[ua,Qs,see,gc],[[1,{[_]:"Count",[y]:vc}],[0,{[_]:"Name",[y]:xr}],[()=>oye,{[_]:"CoreInfo",[y]:$le}],[()=>aye,{[_]:"MemoryInfo",[y]:Zl}]]],aye=[3,I,zoe,0,[Fl],[[1,{[_]:"SizeInMiB",[y]:Ql}]]],cye=[3,I,OP,0,[Boe,pce],[[()=>O0e,{[_]:"NeuronDevices",[y]:bde}],[1,{[_]:"TotalNeuronDeviceMemoryInMiB",[y]:Wpe}]]],lye=[3,I,PP,0,[Wae],[[()=>M0e,{[_]:"SupportedVersions",[y]:jpe}]]],VL=[3,I,Qoe,0,[zP],[0]],pg=[3,I,Yoe,0,[Ioe,zP],[[2,{[_]:"Managed",[y]:hde}],[0,{[_]:"Principal",[y]:zde}]]],FL=[3,I,__,0,[jl,kJ,i_,vie,Gne,_ce,iae,Kne,o_,la],[[0,{[_]:"AvailabilityZoneId",[y]:k_}],[0,{[_]:"Affinity",[y]:Ele}],[0,{[_]:"GroupName",[y]:j_}],[1,{[_]:"PartitionNumber",[y]:Qde}],[0,{[_]:"HostId",[y]:Jue}],[0,{[_]:"Tenancy",[y]:Fpe}],[0,{[_]:"SpreadDomain",[y]:vpe}],[0,{[_]:"HostResourceGroupArn",[y]:sfe}],[0,{[_]:"GroupId",[y]:U_}],[0,{[_]:"AvailabilityZone",[y]:ud}]]],uye=[3,I,VP,0,[qae],[[()=>D0e,{[_]:"SupportedStrategies",[y]:Lpe}]]],fye=[3,I,UP,0,[c_,t_,e_],[[0,{[_]:"HostnameType",[y]:FN}],[2,{[_]:"EnableResourceNameDnsARecord",[y]:$N}],[2,{[_]:"EnableResourceNameDnsAAAARecord",[y]:BN}]]],dye=[3,I,cie,0,[c_,t_,e_],[0,2,2]],pye=[3,I,lie,0,[c_,t_,e_],[[0,{[_]:"HostnameType",[y]:FN}],[2,{[_]:"EnableResourceNameDnsARecord",[y]:$N}],[2,{[_]:"EnableResourceNameDnsAAAARecord",[y]:BN}]]],hye=[3,I,pie,0,[GP,Go],[[2,{[_]:"Primary",[y]:_L}],[0,{[_]:"PrivateIpAddress",[y]:_c}]]],mye=[3,I,FP,0,[nae,oae,aae,ad],[[()=>Uye,{[_]:"SupportedArchitectures",[y]:mpe}],[1,{[_]:"SustainedClockSpeedInGhz",[y]:bpe}],[()=>q0e,{[_]:"SupportedFeatures",[y]:Spe}],[0,{[_]:"Manufacturer",[y]:hd}]]],gye=[3,I,aie,0,[rie,iie],[[0,{[_]:"ProductCode",[y]:$de}],[0,{[_]:"Type",[y]:X_}]]],yye=[3,I,Nie,0,[rd,yt],[[()=>bd,{[y]:ls}],[2,{[_]:"DryRun",[y]:Rt}]],1],bye=[3,I,Xie,0,[LP,V3,Wm,Rne],[[0,{[_]:"OptInStatus",[y]:gL}],[()=>P0e,{[_]:"GeographySet",[y]:VN}],[0,{[_]:"RegionName",[y]:CL}],[0,{[_]:"RegionEndpoint",[y]:rpe}]]],vye=[3,I,Die,0,[Qs],[[0,{[_]:"Name",[y]:xr}]]],qL=[3,I,Jie,0,[Bie,bc,Uie,Zm,Ore],[[0,{[_]:"ReservationId",[y]:ipe}],[0,{[_]:"OwnerId",[y]:Kl}],[0,{[_]:"RequesterId",[y]:cpe}],[()=>J_,{[_]:"GroupSet",[y]:H_}],[()=>d0e,{[_]:"InstancesSet",[y]:ig}]]],Sye=[3,I,Pie,0,[s_],[[2,{[_]:"Enabled",[y]:jN}]],1],_ye=[3,I,Lie,0,[coe,loe,ed,Hl,od,Q3,u_,g_,so,b_,__,w_,uae,YP,ha,cN,T3,O3,Zo,Wre,jse,See,qS,ZS,a_,Qre,SP,JS,$P,_P,R3,bne,MP,Vl,WP,yt,C3,tP,Go,QS,s3,TP,d_,WS],[1,1,[()=>WL,{[y]:VS}],0,0,1,[()=>ew,{[y]:f_}],0,0,[()=>Sye,0],[()=>FL,0],0,[()=>tz,{[y]:E_}],[()=>$0e,{[y]:XP}],0,[()=>Dhe,0],[()=>Wye,0],[()=>e0e,{[y]:I3}],[()=>Yo,{[y]:ro}],()=>Gge,()=>Rge,()=>ome,()=>Qhe,()=>Uhe,()=>ige,[()=>A0e,{[y]:Xre}],()=>Cge,()=>Kme,()=>dye,()=>xge,2,2,()=>Dge,()=>VL,[()=>v0e,{[y]:Tae}],[2,{[_]:"DryRun",[y]:Rt}],[2,{[_]:"DisableApiTermination",[y]:zN}],[0,{[_]:"InstanceInitiatedShutdownBehavior",[y]:WN}],[0,{[_]:"PrivateIpAddress",[y]:_c}],[0,{[_]:"ClientToken",[Ufe]:1,[y]:PN}],[0,{[_]:"AdditionalInfo",[y]:SN}],[()=>h0e,{[_]:"NetworkInterface",[y]:wde}],[()=>cge,{[_]:"IamInstanceProfile",[y]:XN}],[2,{[_]:"EbsOptimized",[y]:B_}]],2],GL=[3,I,ece,0,[qoe,da,Er,Zae,Oie,nN,la,vce,v3,Tee,Dne,pa,Ys,Ts,R_,tN,ZP,bc,hc,gN,sd,id,$ee],[[0,{[_]:"OwnerAlias",[y]:Ode}],[0,{[_]:"OutpostArn",[y]:md}],[()=>Rr,{[_]:"TagSet",[y]:zr}],[0,{[_]:"StorageTier",[y]:zpe}],[4,{[_]:"RestoreExpiryTime",[y]:spe}],[0,{[_]:"SseType",[y]:ML}],[0,{[_]:"AvailabilityZone",[y]:ud}],[0,{[_]:"TransferType",[y]:she}],[1,{[_]:"CompletionDurationMinutes",[y]:Ple}],[4,{[_]:"CompletionTime",[y]:Qle}],[1,{[_]:"FullSnapshotSizeInBytes",[y]:que}],[0,{[_]:"SnapshotId",[y]:ug}],[0,{[_]:"VolumeId",[y]:Yl}],[0,{[_]:"Status",[y]:ga}],[0,{[_]:"StatusMessage",[y]:dg}],[4,{[_]:"StartTime",[y]:OL}],[0,{[_]:"Progress",[y]:wL}],[0,{[_]:"OwnerId",[y]:Kl}],[0,{[_]:"Description",[y]:fd}],[1,{[_]:"VolumeSize",[y]:LL}],[2,{[_]:"Encrypted",[y]:dd}],[0,{[_]:"KmsKeyId",[y]:ag}],[0,{[_]:"DataEncryptionKeyId",[y]:Wle}]]],wye=[3,I,zae,0,[woe,Aae,UJ,Jce,Sse],[0,0,1,4,0]],Eye=[3,I,_ae,0,[rd,s3,yt],[[()=>bd,{[y]:ls}],[0,{[_]:"AdditionalInfo",[y]:SN}],[2,{[_]:"DryRun",[y]:Rt}]],1],xye=[3,I,wae,0,[Oae],[[()=>tw,{[_]:"InstancesSet",[y]:ig}]]],ZL=[3,I,A_,0,[E3,EP],[[0,{[_]:"Code",[y]:LN}],[0,{[_]:"Message",[y]:uL}]]],Rye=[3,I,Eae,0,[rd,Yne,JP,yt,r_],[[()=>bd,{[y]:ls}],2,2,[2,{[_]:"DryRun",[y]:Rt}],[2,{[_]:"Force",[y]:Gue}]],1],Cye=[3,I,xae,0,[Dae],[[()=>tw,{[_]:"InstancesSet",[y]:ig}]]],KL=[3,I,sN,0,[jl,pne,aoe,cee,bc,hJ,X3,Er,tae,da,Gte,sP,UP,FS,tg,ha,Ts,Ko,td,pJ,la,jee,_oe],[[0,{[_]:"AvailabilityZoneId",[y]:k_}],[1,{[_]:"EnableLniAtDeviceIndex",[y]:Iue}],[2,{[_]:"MapCustomerOwnedIpOnLaunch",[y]:tde}],[0,{[_]:"CustomerOwnedIpv4Pool",[y]:Hle}],[0,{[_]:"OwnerId",[y]:Kl}],[2,{[_]:"AssignIpv6AddressOnCreation",[y]:ple}],[()=>V0e,{[_]:"Ipv6CidrBlockAssociationSet",[y]:QN}],[()=>Rr,{[_]:"TagSet",[y]:zr}],[0,{[_]:"SubnetArn",[y]:gpe}],[0,{[_]:"OutpostArn",[y]:md}],[2,{[_]:"EnableDns64",[y]:hue}],[2,{[_]:"Ipv6Native",[y]:Sfe}],[()=>fye,{[_]:"PrivateDnsNameOptionsOnLaunch",[y]:jde}],[()=>jL,{[_]:"BlockPublicAccessStates",[y]:MN}],[0,{[_]:"Type",[y]:X_}],[0,{[_]:"SubnetId",[y]:fg}],[0,{[_]:"State",[y]:ma}],[0,{[_]:"VpcId",[y]:yd}],[0,{[_]:"CidrBlock",[y]:P_}],[1,{[_]:"AvailableIpAddressCount",[y]:dle}],[0,{[_]:"AvailabilityZone",[y]:ud}],[2,{[_]:"DefaultForAz",[y]:eue}],[2,{[_]:"MapPublicIpOnLaunch",[y]:ude}]]],Aye=[3,I,rae,0,[Ts,x_],[[0,{[_]:"State",[y]:ma}],[0,{[_]:"StatusMessage",[y]:dg}]]],Tye=[3,I,pae,0,[HS,Km,W3,K3,uP],[[0,{[_]:"AssociationId",[y]:D_}],[0,{[_]:"Ipv6CidrBlock",[y]:KN}],[()=>Aye,{[_]:"Ipv6CidrBlockState",[y]:YN}],[0,{[_]:"Ipv6AddressAttribute",[y]:qN}],[0,{[_]:"IpSource",[y]:JN}]]],Iye=[3,I,aN,0,[Mre,ql],[[0,{[_]:"Key",[y]:Hfe}],[0,{[_]:"Value",[y]:gd}]]],Oye=[3,I,ro,0,[Kie,Er],[[0,{[_]:"ResourceType",[y]:dpe}],[()=>Rr,{[y]:aN}]]],Mye=[3,I,ice,0,[rd,r_,JP,yt],[[()=>bd,{[y]:ls}],2,2,[2,{[_]:"DryRun",[y]:Rt}]],1],Dye=[3,I,ace,0,[lce],[[()=>tw,{[_]:"InstancesSet",[y]:ig}]]],kye=[3,I,dN,0,[Cte,Bee,xte,Oce,Wce],[[1,{[_]:"DefaultVCpus",[y]:lue}],[1,{[_]:"DefaultCores",[y]:Xle}],[1,{[_]:"DefaultThreadsPerCore",[y]:aue}],[()=>Kye,{[_]:"ValidCores",[y]:fhe}],[()=>G0e,{[_]:"ValidThreadsPerCore",[y]:_he}]]],QL=[3,I,nle,0,[jl,da,Yae,Ym,Er,ng,Mne,y_,eg,nN,Vl,I_,Ys,T_,pa,la,Ts,w3,NJ,sd,id],[[0,{[_]:"AvailabilityZoneId",[y]:k_}],[0,{[_]:"OutpostArn",[y]:md}],[0,{[_]:"SourceVolumeId",[y]:$pe}],[1,{[_]:"Iops",[y]:nL}],[()=>Rr,{[_]:"TagSet",[y]:zr}],[0,{[_]:"VolumeType",[y]:zL}],[2,{[_]:"FastRestored",[y]:Fue}],[2,{[_]:"MultiAttachEnabled",[y]:Jfe}],[1,{[_]:"Throughput",[y]:kL}],[0,{[_]:"SseType",[y]:ML}],[()=>pg,{[_]:"Operator",[y]:lg}],[1,{[_]:"VolumeInitializationRate",[y]:phe}],[0,{[_]:"VolumeId",[y]:Yl}],[1,{[_]:"Size",[y]:Hpe}],[0,{[_]:"SnapshotId",[y]:ug}],[0,{[_]:"AvailabilityZone",[y]:ud}],[0,{[_]:"Status",[y]:ga}],[4,{[_]:"CreateTime",[y]:NN}],[()=>Y0e,{[_]:"AttachmentSet",[y]:_le}],[2,{[_]:"Encrypted",[y]:dd}],[0,{[_]:"KmsKeyId",[y]:ag}]]],W_=[3,I,Cce,0,[fa,o3,Wse,nd,Ys,ls,XS,Ts,Fm],[[2,{[_]:"DeleteOnTermination",[y]:Sc}],[0,{[_]:"AssociatedResource",[y]:wN}],[0,{[_]:"InstanceOwningService",[y]:xfe}],[1,{[_]:"EbsCardIndex",[y]:z_}],[0,{[_]:"VolumeId",[y]:Yl}],[0,{[_]:"InstanceId",[y]:Gl}],[0,{[_]:"Device",[y]:uue}],[0,{[_]:"Status",[y]:ga}],[4,{[_]:"AttachTime",[y]:sg}]]],Pye=[3,I,hN,0,[Ys,xoe,x_,yce,cce,Sce,bce,fce,Woe,Goe,eie,Joe,Koe,ZP,tN,Ene],[[0,{[_]:"VolumeId",[y]:Yl}],[0,{[_]:"ModificationState",[y]:pde}],[0,{[_]:"StatusMessage",[y]:dg}],[1,{[_]:"TargetSize",[y]:the}],[1,{[_]:"TargetIops",[y]:Qpe}],[0,{[_]:"TargetVolumeType",[y]:rhe}],[1,{[_]:"TargetThroughput",[y]:nhe}],[2,{[_]:"TargetMultiAttachEnabled",[y]:Ype}],[1,{[_]:"OriginalSize",[y]:kde}],[1,{[_]:"OriginalIops",[y]:Mde}],[0,{[_]:"OriginalVolumeType",[y]:Nde}],[1,{[_]:"OriginalThroughput",[y]:Pde}],[2,{[_]:"OriginalMultiAttachEnabled",[y]:Dde}],[1,{[_]:"Progress",[y]:wL}],[4,{[_]:"StartTime",[y]:OL}],[4,{[_]:"EndTime",[y]:jue}]]],YL=[3,I,vN,0,[bc,fP,X3,GJ,hse,qte,Er,FS,Ko,Ts,td,cte],[[0,{[_]:"OwnerId",[y]:Kl}],[0,{[_]:"InstanceTenancy",[y]:eL}],[()=>tbe,{[_]:"Ipv6CidrBlockAssociationSet",[y]:QN}],[()=>J0e,{[_]:"CidrBlockAssociationSet",[y]:Ole}],[2,{[_]:"IsDefault",[y]:hfe}],[()=>Lye,{[_]:"EncryptionControl",[y]:pue}],[()=>Rr,{[_]:"TagSet",[y]:zr}],[()=>jL,{[_]:"BlockPublicAccessStates",[y]:MN}],[0,{[_]:"VpcId",[y]:yd}],[0,{[_]:"State",[y]:ma}],[0,{[_]:"CidrBlock",[y]:P_}],[0,{[_]:"DhcpOptionsId",[y]:rue}]]],Nye=[3,I,Ace,0,[HS,td,KJ],[[0,{[_]:"AssociationId",[y]:D_}],[0,{[_]:"CidrBlock",[y]:P_}],[()=>XL,{[_]:"CidrBlockState",[y]:Dle}]]],XL=[3,I,Ice,0,[Ts,x_],[[0,{[_]:"State",[y]:ma}],[0,{[_]:"StatusMessage",[y]:dg}]]],Lye=[3,I,pN,0,[Ko,Pce,xP,Ts,R_,Mie,Er],[[0,{[_]:"VpcId",[y]:yd}],[0,{[_]:"VpcEncryptionControlId",[y]:dhe}],[0,{[_]:"Mode",[y]:gde}],[0,{[_]:"State",[y]:ma}],[0,{[_]:"StateMessage",[y]:TL}],[()=>Bye,{[_]:"ResourceExclusions",[y]:ope}],[()=>Rr,{[_]:"TagSet",[y]:zr}]]],zye=[3,I,Mce,0,[xP,yse,mne,joe,Kce,Gce,qre,Hce,Kte],[0,0,0,0,0,0,0,0,0],1],ji=[3,I,Dce,0,[Ts,R_],[[0,{[_]:"State",[y]:ma}],[0,{[_]:"StateMessage",[y]:TL}]]],Bye=[3,I,kce,0,[mse,hne,Uoe,Zce,Qce,roe,jce,Zte],[[()=>ji,{[_]:"InternetGateway",[y]:mfe}],[()=>ji,{[_]:"EgressOnlyInternetGateway",[y]:Mue}],[()=>ji,{[_]:"NatGateway",[y]:Sde}],[()=>ji,{[_]:"VirtualPrivateGateway",[y]:yhe}],[()=>ji,{[_]:"VpcPeering",[y]:bhe}],[()=>ji,{[_]:"Lambda",[y]:Wfe}],[()=>ji,{[_]:"VpcLattice",[y]:hhe}],[()=>ji,{[_]:"ElasticFileSystem",[y]:mue}]]],$ye=[3,I,Nce,0,[HS,Km,W3,RP,aP,K3,uP],[[0,{[_]:"AssociationId",[y]:D_}],[0,{[_]:"Ipv6CidrBlock",[y]:KN}],[()=>XL,{[_]:"Ipv6CidrBlockState",[y]:YN}],[0,{[_]:"NetworkBorderGroup",[y]:fL}],[0,{[_]:"Ipv6Pool",[y]:Ife}],[0,{[_]:"Ipv6AddressAttribute",[y]:qN}],[0,{[_]:"IpSource",[y]:JN}]]],Xl="unit",Uye=[1,I,_J,0,[0,{[y]:ke}]],jye=[1,I,CJ,0,[()=>Lhe,{[y]:ke}]],Hye=[1,I,AJ,0,[()=>Nhe,{[y]:ke}]],Vye=[1,I,IJ,0,[()=>zhe,{[y]:ke}]],Fye=[1,I,MJ,0,[()=>Bhe,{[y]:ke}]],qye=[1,I,FJ,0,[0,{[y]:ke}]],Gye=[1,I,BJ,0,[()=>UL,{[y]:ke}]],WL=[1,I,$J,0,[()=>UL,{[y]:VS}]],Zye=[1,I,jJ,0,[0,{[y]:ke}]],Kye=[1,I,QJ,0,[1,{[y]:ke}]],Qye=[1,I,Vee,0,[()=>kme,{[y]:ke}]],Yye=[1,I,Hte,0,[()=>Nme,{[y]:ke}]],Xye=[1,I,Xte,0,[()=>jme,{[y]:ke}]],Wye=[1,I,nne,0,[()=>Hme,{[y]:ke}]],Jye=[1,I,one,0,[()=>Fme,{[y]:ke}]],e0e=[1,I,O3,0,[()=>Vme,{[y]:ke}]],t0e=[1,I,jte,0,[0,{[y]:A3}]],oo=[1,I,One,0,[()=>Qme,{[y]:wr}]],n0e=[1,I,Ane,0,[()=>Yme,{[y]:ke}]],s0e=[1,I,Bne,0,[()=>tge,{[y]:ke}]],J_=[1,I,Une,0,[()=>rge,{[y]:ke}]],r0e=[1,I,jne,0,[0,{[y]:U_}]],o0e=[1,I,Cse,0,[0,{[y]:Hl}]],i0e=[1,I,kse,0,[()=>lge,{[y]:ke}]],a0e=[1,I,fse,0,[()=>pge,0]],c0e=[1,I,ose,0,[()=>bge,{[y]:ke}]],l0e=[1,I,ase,0,[()=>vge,{[y]:ke}]],bd=[1,I,Ase,0,[0,{[y]:ls}]],u0e=[1,I,_se,0,[()=>Sge,{[y]:ke}]],ew=[1,I,vse,0,[()=>_ge,{[y]:ke}]],f0e=[1,I,wse,0,[()=>wge,{[y]:ke}]],d0e=[1,I,Nse,0,[()=>mge,{[y]:ke}]],p0e=[1,I,qse,0,[()=>Tge,{[y]:ke}]],h0e=[1,I,Zse,0,[()=>Oge,{[y]:ke}]],m0e=[1,I,nre,0,[()=>kge,{[y]:ke}]],g0e=[1,I,dre,0,[()=>Pge,{[y]:ke}]],y0e=[1,I,hre,0,[()=>Lge,{[y]:ke}]],b0e=[1,I,mre,0,[()=>zge,{[y]:ke}]],v0e=[1,I,yre,0,[()=>Bge,{[y]:ke}]],tw=[1,I,ure,0,[()=>$ge,{[y]:ke}]],S0e=[1,I,xre,0,[()=>jge,{[y]:ke}]],_0e=[1,I,ore,0,[()=>Hge,{[y]:ke}]],w0e=[1,I,ire,0,[()=>Vge,{[y]:ke}]],E0e=[1,I,Pre,0,[0,{[y]:so}]],x0e=[1,I,zre,0,[0,{[y]:mc}]],R0e=[1,I,Ure,0,[()=>qge,{[y]:ke}]],C0e=[1,I,Zre,0,[()=>Zge,{[y]:ke}]],A0e=[1,I,Yre,0,[()=>Kge,{[y]:ke}]],T0e=[1,I,foe,0,[()=>Yge,{[y]:ke}]],I0e=[1,I,Doe,0,[()=>sye,{[y]:ke}]],O0e=[1,I,Loe,0,[()=>iye,{[y]:ke}]],M0e=[1,I,Foe,0,[0,{[y]:ke}]],JL=[1,I,Xoe,0,[0,{[y]:v_}]],D0e=[1,I,uie,0,[0,{[y]:ke}]],k0e=[1,I,hie,0,[()=>hye,{[y]:ke}]],ez=[1,I,oie,0,[()=>gye,{[y]:ke}]],P0e=[1,I,kie,0,[()=>vye,{[y]:ke}]],N0e=[1,I,Hie,0,[()=>bye,{[y]:ke}]],L0e=[1,I,Gie,0,[0,{[y]:Wm}]],z0e=[1,I,Vie,0,[()=>qL,{[y]:ke}]],B0e=[1,I,Iie,0,[0,{[y]:ke}]],tz=[1,I,lae,0,[0,{[y]:E_}]],$0e=[1,I,fae,0,[0,{[y]:XP}]],U0e=[1,I,Rae,0,[0,{[y]:pa}]],j0e=[1,I,Nae,0,[()=>GL,{[y]:ke}]],H0e=[1,I,Cae,0,[0,{[y]:ha}]],V0e=[1,I,hae,0,[()=>Tye,{[y]:ke}]],F0e=[1,I,Lae,0,[()=>KL,{[y]:ke}]],q0e=[1,I,eae,0,[0,{[y]:ke}]],Rr=[1,I,uce,0,[()=>Iye,{[y]:ke}]],Yo=[1,I,gce,0,[()=>Oye,{[y]:ke}]],G0e=[1,I,hce,0,[1,{[y]:ke}]],Z0e=[1,I,Ece,0,[0,{[y]:ke}]],K0e=[1,I,Yce,0,[0,{[y]:ke}]],Q0e=[1,I,Xce,0,[0,{[y]:ke}]],Y0e=[1,I,Rce,0,[()=>W_,{[y]:ke}]],X0e=[1,I,zce,0,[0,{[y]:Ys}]],W0e=[1,I,Vce,0,[()=>QL,{[y]:ke}]],J0e=[1,I,Tce,0,[()=>Nye,{[y]:ke}]],ebe=[1,I,Bce,0,[0,{[y]:Ko}]],tbe=[1,I,Lce,0,[()=>$ye,{[y]:ke}]],nbe=[1,I,Fce,0,[()=>YL,{[y]:ke}]],sbe=[1,I,rle,0,[0,{[y]:ke}]],rbe=[1,I,ile,0,[0,{[y]:O_}]],obe=[1,I,cle,0,[0,{[y]:M_}]],WRe=[9,I,xJ,0,()=>Phe,()=>W_],JRe=[9,I,vee,0,()=>Ghe,()=>Zhe],eCe=[9,I,ree,0,()=>Yhe,()=>Xhe],tCe=[9,I,oee,0,()=>Whe,()=>Fge],nCe=[9,I,_ee,0,()=>Jhe,()=>GL],sCe=[9,I,wee,0,()=>eme,()=>tme],rCe=[9,I,Dee,0,()=>nme,()=>QL],oCe=[9,I,kee,0,()=>sme,()=>rme],iCe=[9,I,ete,0,()=>ime,()=>ame],aCe=[9,I,Ste,0,()=>cme,()=>Xl],cCe=[9,I,_te,0,()=>lme,()=>Xl],lCe=[9,I,Pte,0,()=>ume,()=>Xl],uCe=[9,I,Nte,0,()=>fme,()=>Xl],ibe=[9,I,zee,0,()=>dme,()=>pme],abe=[9,I,Xee,0,()=>hme,()=>mme],cbe=[9,I,Wee,0,()=>gme,()=>yme],lbe=[9,I,Yee,0,()=>bme,()=>vme],ube=[9,I,ote,0,()=>Sme,()=>_me],fbe=[9,I,pte,0,()=>wme,()=>Eme],dbe=[9,I,wte,0,()=>xme,()=>Rme],pbe=[9,I,Ete,0,()=>Cme,()=>Ame],hbe=[9,I,Lte,0,()=>Tme,()=>Ime],mbe=[9,I,zte,0,()=>Ome,()=>Mme],fCe=[9,I,Bte,0,()=>Dme,()=>W_],dCe=[9,I,Pne,0,()=>Jme,()=>ege],pCe=[9,I,Ise,0,()=>uge,()=>fge],hCe=[9,I,voe,0,()=>Jge,()=>Xl],mCe=[9,I,Toe,0,()=>eye,()=>tye],gCe=[9,I,$ie,0,()=>yye,()=>Xl],yCe=[9,I,jie,0,()=>_ye,()=>qL],bCe=[9,I,Mae,0,()=>Eye,()=>xye],vCe=[9,I,kae,0,()=>Rye,()=>Cye],SCe=[9,I,rce,0,()=>Mye,()=>Dye];const gbe=e=>({apiVersion:"2016-11-15",base64Decoder:e?.base64Decoder??cc,base64Encoder:e?.base64Encoder??ea,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??cJ,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??OW,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new PS}],logger:e?.logger??new NS,protocol:e?.protocol??OX,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ec2",errorTypeRegistries:Ohe,xmlNamespace:"http://ec2.amazonaws.com/doc/2016-11-15",version:"2016-11-15",serviceTarget:"AmazonEC2"},serviceId:e?.serviceId??"EC2",urlParser:e?.urlParser??jf,utf8Decoder:e?.utf8Decoder??Ho,utf8Encoder:e?.utf8Encoder??pc}),ybe=e=>{const t=Xk(e),n=()=>t().then(_k),r=gbe(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??vk,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Qk({serviceId:r.serviceId,clientVersion:PW.version}),maxAttempts:e?.maxAttempts??Hf,region:e?.region??Yk("Region is missing"),requestHandler:Bm.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||zk),sha256:e?.sha256??Kk,streamCollector:e?.streamCollector??RS,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(Tk)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(Ik))}},nz=e=>({setRegion(t){e.region=t},region(){return e.region}}),sz=e=>({region:e.region()}),bbe=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(i){const c=t.findIndex(l=>l.schemeId===i.schemeId);c===-1?t.push(i):t.splice(c,1,i)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(i){n=i},httpAuthSchemeProvider(){return n},setCredentials(i){r=i},credentials(){return r}}},vbe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Sbe=(e,t)=>{const n=Object.assign(nz(e),wk(e),ID(e),bbe(e));return t.forEach(r=>r.configure(n)),Object.assign(e,sz(n),Ek(n),OD(n),vbe(n))};class _be extends Sk{config;constructor(...[t]){const n=ybe(t||{});super(n),this.initConfig=n;const r=DW(n),i=XD(r),c=jk(i),l=Mk(c),f=l,d=Lk(f),p=MW(d),b=Sbe(p,t?.extensions||[]);this.config=b,this.middlewareStack.use(HD(this.config)),this.middlewareStack.use(Ak(this.config)),this.middlewareStack.use(Hk(this.config)),this.middlewareStack.use(Dk(this.config)),this.middlewareStack.use(MD(this.config)),this.middlewareStack.use(DD(this.config)),this.middlewareStack.use(kD(this.config)),this.middlewareStack.use(PD(this.config,{httpAuthSchemeParametersProvider:TW,identityProviderConfigProvider:async g=>new QD({"aws.auth#sigv4":g.credentials})})),this.middlewareStack.use(LD(this.config))}destroy(){super.destroy()}}class wbe extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeAvailabilityZones",{}).n("EC2Client","DescribeAvailabilityZonesCommand").sc(ibe).build(){}class rz extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeImages",{}).n("EC2Client","DescribeImagesCommand").sc(abe).build(){}class oz extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeInstances",{}).n("EC2Client","DescribeInstancesCommand").sc(cbe).build(){}class Ebe extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeInstanceTypes",{}).n("EC2Client","DescribeInstanceTypesCommand").sc(lbe).build(){}class iz extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeKeyPairs",{}).n("EC2Client","DescribeKeyPairsCommand").sc(ube).build(){}class xbe extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeRegions",{}).n("EC2Client","DescribeRegionsCommand").sc(fbe).build(){}class az extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeSnapshots",{}).n("EC2Client","DescribeSnapshotsCommand").sc(dbe).build(){}class cz extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeSubnets",{}).n("EC2Client","DescribeSubnetsCommand").sc(pbe).build(){}class lz extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeVolumes",{}).n("EC2Client","DescribeVolumesCommand").sc(hbe).build(){}class uz extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeVpcs",{}).n("EC2Client","DescribeVpcsCommand").sc(mbe).build(){}function Rbe(e){return t=>async n=>{const{request:r}=n;if(e.expectContinueHeader!==!1&&kn.isInstance(r)&&r.body&&e.runtime==="node"&&e.requestHandler?.constructor?.name!=="FetchHttpHandler"){let i=!0;if(typeof e.expectContinueHeader=="number")try{i=(Number(r.headers?.["content-length"])??e.bodyLengthChecker?.(r.body)??1/0)>=e.expectContinueHeader}catch{}else i=!!e.expectContinueHeader;i&&(r.headers.Expect="100-continue")}return t({...n,request:r})}}const Cbe={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},Abe=e=>({applyToStack:t=>{t.add(Rbe(e),Cbe)}}),fz={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},Tbe=fz.WHEN_SUPPORTED,_Ce={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},Ibe=fz.WHEN_SUPPORTED;var Ov;(function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.CRC64NVME="CRC64NVME",e.SHA1="SHA1",e.SHA256="SHA256"})(Ov||(Ov={}));var oI;(function(e){e.HEADER="header",e.TRAILER="trailer"})(oI||(oI={}));const wCe=Ov.CRC32;var ECe=(function(){function e(){this.crc32=new im}return e.prototype.update=function(t){om(t)||this.crc32.update(lc(t))},e.prototype.digest=function(){return qk(this,void 0,void 0,function(){return Gk(this,function(t){return[2,LW(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new im},e})(),im=(function(){function e(){this.checksum=4294967295}return e.prototype.update=function(t){var n,r;try{for(var i=jW(t),c=i.next();!c.done;c=i.next()){var l=c.value;this.checksum=this.checksum>>>8^Mbe[(this.checksum^l)&255]}}catch(f){n={error:f}}finally{try{c&&!c.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e})(),Obe=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],Mbe=zW(Obe);const Dbe=e=>{const{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:qs(t??Tbe),responseChecksumValidation:qs(n??Ibe),requestStreamBufferSize:Number(r??0)})},kbe=e=>(t,n)=>async r=>{const i=await e.region(),c=e.region;let l=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),l=()=>Object.defineProperty(e,"region",{writable:!0,value:c}));try{const f=await t(r);if(n.__s3RegionRedirect){l();const d=await e.region();if(i!==d)throw new Error("Region was not restored following S3 region redirect.")}return f}catch(f){throw l(),f}},Pbe={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function Nbe(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){const c=i?.$metadata?.httpStatusCode,l=n.commandName==="HeadBucketCommand",f=i?.$response?.headers?.["x-amz-bucket-region"];if(f&&(c===301||c===400&&(i?.name==="IllegalLocationConstraintException"||l))){try{const d=f;n.logger?.debug(`Redirecting from ${await e.region()} to ${d}`),n.__s3RegionRedirect=d}catch(d){throw new Error("Region redirect failed: "+d)}return t(r)}}throw i}}}const Lbe={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},zbe=e=>({applyToStack:t=>{t.add(Nbe(e),Lbe),t.addRelativeTo(kbe(e),Pbe)}});class nw{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(t={}){this.data=t}get(t){const n=this.data[t];if(n)return n}set(t,n){return this.data[t]=n,n}delete(t){delete this.data[t]}async purgeExpired(){const t=Date.now();if(!(this.lastPurgeTime+nw.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(const n in this.data){const r=this.data[n];if(!r.isRefreshing){const i=await r.identity;i.expiration&&i.expiration.getTime()(l.expiration?.getTime()??0){i.set(r,new Eb(Promise.resolve(p)))})),l)):i.set(r,new Eb(this.getIdentity(r))).identity}async getIdentity(t){await this.cache.purgeExpired().catch(i=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: +`+i)});const n=await this.createSessionFn(t);if(!n.Credentials?.AccessKeyId||!n.Credentials?.SecretAccessKey)throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:n.Credentials.AccessKeyId,secretAccessKey:n.Credentials.SecretAccessKey,sessionToken:n.Credentials.SessionToken,expiration:n.Credentials.Expiration?new Date(n.Credentials.Expiration):void 0}}}const Bbe="Directory",$be="S3Express",Ube="sigv4-s3express",Mv="X-Amz-S3session-Token",Dv=Mv.toLowerCase();class jbe extends Rv{async signWithCredentials(t,n,r){const i=iI(n);t.headers[Dv]=n.sessionToken;const c=this;return aI(c,i),c.signRequest(t,r??{})}async presignWithCredentials(t,n,r){const i=iI(n);return delete t.headers[Dv],t.headers[Mv]=n.sessionToken,t.query=t.query??{},t.query[Mv]=n.sessionToken,aI(this,i),this.presign(t,r)}}function iI(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function aI(e,t){const n=setTimeout(()=>{throw new Error("SignatureV4S3Express credential override was created but not called.")},10),r=e.credentialProvider,i=()=>(clearTimeout(n),e.credentialProvider=r,Promise.resolve(t));e.credentialProvider=i}const Hbe=e=>(t,n)=>async r=>{if(n.endpointV2){const i=n.endpointV2,c=i.properties?.authSchemes?.[0]?.name===Ube;if((i.properties?.backend===$be||i.properties?.bucketType===Bbe)&&(Pr(n,"S3_EXPRESS_BUCKET","J"),n.isS3ExpressBucket=!0),c){const f=r.input.Bucket;if(f){const d=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:f});n.s3ExpressIdentity=d,kn.isInstance(r.request)&&d.sessionToken&&(r.request.headers[Dv]=d.sessionToken)}}}return t(r)},Vbe={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},Fbe=e=>({applyToStack:t=>{t.add(Hbe(e),Vbe)}}),qbe=async(e,t,n,r)=>{const i=await r.signWithCredentials(n,e,{});if(i.headers["X-Amz-Security-Token"]||i.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return i},Gbe=e=>t=>{throw t},Zbe=(e,t)=>{},Kbe=e=>(t,n)=>async r=>{if(!kn.isInstance(r.request))return t(r);const c=qo(n).selectedHttpAuthScheme;if(!c)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:l={}},identity:f,signer:d}=c;let p;n.s3ExpressIdentity?p=await qbe(n.s3ExpressIdentity,l,r.request,await e.signer()):p=await d.sign(r.request,f,l);const b=await t({...r,request:p}).catch((d.errorHandler||Gbe)(l));return(d.successHandler||Zbe)(b.response,l),b},Qbe=e=>({applyToStack:t=>{t.addRelativeTo(Kbe(e),ND)}}),Ybe=(e,{session:t})=>{const[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:c,disableMultiregionAccessPoints:l,followRegionRedirects:f,s3ExpressIdentityProvider:d,bucketEndpoint:p,expectContinueHeader:b}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:c??!1,disableMultiregionAccessPoints:l??!1,followRegionRedirects:f??!1,s3ExpressIdentityProvider:d??new sw(async g=>n().send(new r({Bucket:g}))),bucketEndpoint:p??!1,expectContinueHeader:b??2097152})},Xbe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},Wbe=3e3,Jbe=e=>(t,n)=>async r=>{const i=await t(r),{response:c}=i;if(!ac.isInstance(c))return i;const{statusCode:l,body:f}=c;if(l<200||l>=300||!(typeof f?.stream=="function"||typeof f?.pipe=="function"||typeof f?.tee=="function"))return i;let p=f,b=f;f&&typeof f=="object"&&!(f instanceof Uint8Array)&&([p,b]=await bQ(f)),c.body=b;const g=await eve(p,{streamCollector:async S=>fQ(S,Wbe)});typeof p?.destroy=="function"&&p.destroy();const v=e.utf8Encoder(g.subarray(g.length-16));if(g.length===0&&Xbe[n.commandName]){const S=new Error("S3 aborted request");throw S.name="InternalError",S}return v&&v.endsWith("")&&(c.statusCode=400),i},eve=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),tve={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},rw=e=>({applyToStack:t=>{t.addRelativeTo(Jbe(e),tve)}}),nve=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;function sve(e){return(t,n)=>async r=>{if(e.bucketEndpoint){const i=n.endpointV2;if(i){const c=r.input.Bucket;if(typeof c=="string")try{const l=new URL(c);n.endpointV2={...i,url:l}}catch(l){const f=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${c} could not be parsed as URL.`;throw n.logger?.constructor?.name==="NoOpLogger"?console.warn(f):n.logger?.warn?.(f),l}}}return t(r)}}const rve={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function ove({bucketEndpoint:e}){return t=>async n=>{const{input:{Bucket:r}}=n;if(!e&&typeof r=="string"&&!nve(r)&&r.indexOf("/")>=0){const i=new Error(`Bucket name shouldn't contain '/', received '${r}'`);throw i.name="InvalidBucketName",i}return t({...n})}}const ive={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},ave=e=>({applyToStack:t=>{t.add(ove(e),ive),t.addRelativeTo(sve(e),rve)}}),cve=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)});class dz{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return"none"}constructor(t){this.sigv4Signer=new jbe(t),this.signerOptions=t}async sign(t,n={}){return n.signingRegion==="*"?this.getSigv4aSigner().sign(t,n):this.sigv4Signer.sign(t,n)}async signWithCredentials(t,n,r={}){if(r.signingRegion==="*")throw this.getSigv4aSigner(),new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);return this.sigv4Signer.signWithCredentials(t,n,r)}async presign(t,n={}){if(n.signingRegion==="*")throw this.getSigv4aSigner(),new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);return this.sigv4Signer.presign(t,n)}async presignWithCredentials(t,n,r={}){if(r.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(t,n,r)}getSigv4aSigner(){if(!this.sigv4aSigner)throw this.signerOptions.runtime==="node"?new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt"):new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");return this.sigv4aSigner}}const ow="required",D="type",ae="rules",U="conditions",X="fn",W="argv",ze="ref",Ye="assign",Re="url",Ce="properties",zo="backend",Dn="authSchemes",bn="disableDoubleEncoding",vn="signingName",jn="signingRegion",Ae="headers",iw="signingRegionSet",lve=6,uve=!1,Fr=!0,Vs="isSet",ln="booleanEquals",Me="error",am="aws.partition",pt="stringEquals",Wt="getAttr",en="name",jt="substring",cI="bucketSuffix",aw="parseURL",he="endpoint",ce="tree",cm="aws.isVirtualHostableS3Bucket",lm="{url#scheme}://{Bucket}.{url#authority}{url#path}",Xr="not",lI="accessPointSuffix",xh="{url#scheme}://{url#authority}{url#path}",pz="hardwareType",hz="regionPrefix",uI="bucketAliasSuffix",kv="outpostId",wc="isValidHostLabel",cw="sigv4a",Ff="s3-outposts",Nl="s3",mz="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",gz="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",fI="https://{Bucket}.s3.{partitionResult#dnsSuffix}",yz="aws.parseArn",bz="bucketArn",vz="arnType",um="",lw="s3-object-lambda",Sz="accesspoint",uw="accessPointName",dI="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",pI="mrapPartition",hI="outpostType",mI="arnPrefix",_z="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",gI="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",yI="https://s3.{partitionResult#dnsSuffix}",fl={[ow]:!1,[D]:"string"},dl={[ow]:!0,default:!1,[D]:"boolean"},hf={[ow]:!1,[D]:"boolean"},dr={[X]:ln,[W]:[{[ze]:"Accelerate"},!0]},Vt={[X]:ln,[W]:[{[ze]:"UseFIPS"},!0]},zt={[X]:ln,[W]:[{[ze]:"UseDualStack"},!0]},an={[X]:Vs,[W]:[{[ze]:"Endpoint"}]},wz={[X]:am,[W]:[{[ze]:"Region"}],[Ye]:"partitionResult"},bI={[X]:pt,[W]:[{[X]:Wt,[W]:[{[ze]:"partitionResult"},en]},"aws-cn"]},Rf={[X]:Vs,[W]:[{[ze]:"Bucket"}]},ft={[ze]:"Bucket"},vI={[U]:[dr],[Me]:"S3Express does not support S3 Accelerate.",[D]:Me},SI={[U]:[an,{[X]:aw,[W]:[{[ze]:"Endpoint"}],[Ye]:"url"}],[ae]:[{[U]:[{[X]:Vs,[W]:[{[ze]:"DisableS3ExpressSessionAuth"}]},{[X]:ln,[W]:[{[ze]:"DisableS3ExpressSessionAuth"},!0]}],[ae]:[{[U]:[{[X]:ln,[W]:[{[X]:Wt,[W]:[{[ze]:"url"},"isIp"]},!0]}],[ae]:[{[U]:[{[X]:"uriEncode",[W]:[ft],[Ye]:"uri_encoded_bucket"}],[ae]:[{[he]:{[Re]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[Ce]:{[zo]:"S3Express",[Dn]:[{[bn]:!0,[en]:"sigv4",[vn]:"s3express",[jn]:"{Region}"}]},[Ae]:{}},[D]:he}],[D]:ce}],[D]:ce},{[U]:[{[X]:cm,[W]:[ft,!1]}],[ae]:[{[he]:{[Re]:lm,[Ce]:{[zo]:"S3Express",[Dn]:[{[bn]:!0,[en]:"sigv4",[vn]:"s3express",[jn]:"{Region}"}]},[Ae]:{}},[D]:he}],[D]:ce},{[Me]:"S3Express bucket name is not a valid virtual hostable name.",[D]:Me}],[D]:ce},{[U]:[{[X]:ln,[W]:[{[X]:Wt,[W]:[{[ze]:"url"},"isIp"]},!0]}],[ae]:[{[U]:[{[X]:"uriEncode",[W]:[ft],[Ye]:"uri_encoded_bucket"}],[ae]:[{[he]:{[Re]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[Ce]:{[zo]:"S3Express",[Dn]:[{[bn]:!0,[en]:"sigv4-s3express",[vn]:"s3express",[jn]:"{Region}"}]},[Ae]:{}},[D]:he}],[D]:ce}],[D]:ce},{[U]:[{[X]:cm,[W]:[ft,!1]}],[ae]:[{[he]:{[Re]:lm,[Ce]:{[zo]:"S3Express",[Dn]:[{[bn]:!0,[en]:"sigv4-s3express",[vn]:"s3express",[jn]:"{Region}"}]},[Ae]:{}},[D]:he}],[D]:ce},{[Me]:"S3Express bucket name is not a valid virtual hostable name.",[D]:Me}],[D]:ce},is={[X]:aw,[W]:[{[ze]:"Endpoint"}],[Ye]:"url"},xb={[X]:ln,[W]:[{[X]:Wt,[W]:[{[ze]:"url"},"isIp"]},!0]},Ez={[ze]:"url"},xz={[X]:"uriEncode",[W]:[ft],[Ye]:"uri_encoded_bucket"},Us={[zo]:"S3Express",[Dn]:[{[bn]:!0,[en]:"sigv4",[vn]:"s3express",[jn]:"{Region}"}]},Ve={},Rz={[X]:cm,[W]:[ft,!1]},_I={[Me]:"S3Express bucket name is not a valid virtual hostable name.",[D]:Me},wI={[X]:Vs,[W]:[{[ze]:"UseS3ExpressControlEndpoint"}]},EI={[X]:ln,[W]:[{[ze]:"UseS3ExpressControlEndpoint"},!0]},Ke={[X]:Xr,[W]:[an]},ot={[X]:ln,[W]:[{[ze]:"UseDualStack"},!1]},et={[X]:ln,[W]:[{[ze]:"UseFIPS"},!1]},uh={[Me]:"Unrecognized S3Express bucket name format.",[D]:Me},xI={[X]:Xr,[W]:[Rf]},RI={[ze]:pz},CI={[U]:[Ke],[Me]:"Expected a endpoint to be specified but no endpoint was found",[D]:Me},fh={[Dn]:[{[bn]:!0,[en]:cw,[vn]:Ff,[iw]:["*"]},{[bn]:!0,[en]:"sigv4",[vn]:Ff,[jn]:"{Region}"}]},Rb={[X]:ln,[W]:[{[ze]:"ForcePathStyle"},!1]},fve={[ze]:"ForcePathStyle"},gn={[X]:ln,[W]:[{[ze]:"Accelerate"},!1]},xn={[X]:pt,[W]:[{[ze]:"Region"},"aws-global"]},Tn={[Dn]:[{[bn]:!0,[en]:"sigv4",[vn]:Nl,[jn]:"us-east-1"}]},lt={[X]:Xr,[W]:[xn]},In={[X]:ln,[W]:[{[ze]:"UseGlobalEndpoint"},!0]},AI={[Re]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:{[Dn]:[{[bn]:!0,[en]:"sigv4",[vn]:Nl,[jn]:"{Region}"}]},[Ae]:{}},_n={[Dn]:[{[bn]:!0,[en]:"sigv4",[vn]:Nl,[jn]:"{Region}"}]},On={[X]:ln,[W]:[{[ze]:"UseGlobalEndpoint"},!1]},TI={[Re]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[Ce]:_n,[Ae]:{}},II={[Re]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[Ce]:_n,[Ae]:{}},OI={[Re]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:_n,[Ae]:{}},Cb={[X]:ln,[W]:[{[X]:Wt,[W]:[Ez,"isIp"]},!1]},Ab={[Re]:mz,[Ce]:_n,[Ae]:{}},Pv={[Re]:lm,[Ce]:_n,[Ae]:{}},MI={[he]:Pv,[D]:he},Tb={[Re]:gz,[Ce]:_n,[Ae]:{}},DI={[Re]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[Ce]:_n,[Ae]:{}},dh={[Me]:"Invalid region: region was not a valid DNS name.",[D]:Me},ws={[ze]:bz},Cz={[ze]:vz},Ib={[X]:Wt,[W]:[ws,"service"]},fw={[ze]:uw},kI={[U]:[zt],[Me]:"S3 Object Lambda does not support Dual-stack",[D]:Me},PI={[U]:[dr],[Me]:"S3 Object Lambda does not support S3 Accelerate",[D]:Me},NI={[U]:[{[X]:Vs,[W]:[{[ze]:"DisableAccessPoints"}]},{[X]:ln,[W]:[{[ze]:"DisableAccessPoints"},!0]}],[Me]:"Access points are not supported for this operation",[D]:Me},Ob={[U]:[{[X]:Vs,[W]:[{[ze]:"UseArnRegion"}]},{[X]:ln,[W]:[{[ze]:"UseArnRegion"},!1]},{[X]:Xr,[W]:[{[X]:pt,[W]:[{[X]:Wt,[W]:[ws,"region"]},"{Region}"]}]}],[Me]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[D]:Me},Az={[X]:Wt,[W]:[{[ze]:"bucketPartition"},en]},Tz={[X]:Wt,[W]:[ws,"accountId"]},Mb={[Dn]:[{[bn]:!0,[en]:"sigv4",[vn]:lw,[jn]:"{bucketArn#region}"}]},LI={[Me]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[D]:Me},Db={[Me]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[D]:Me},kb={[Me]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[D]:Me},Pb={[Me]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[D]:Me},zI={[Me]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[D]:Me},BI={[Me]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[D]:Me},mf={[Dn]:[{[bn]:!0,[en]:"sigv4",[vn]:Nl,[jn]:"{bucketArn#region}"}]},$I={[Dn]:[{[bn]:!0,[en]:cw,[vn]:Ff,[iw]:["*"]},{[bn]:!0,[en]:"sigv4",[vn]:Ff,[jn]:"{bucketArn#region}"}]},UI={[X]:yz,[W]:[ft]},jI={[Re]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:_n,[Ae]:{}},HI={[Re]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:_n,[Ae]:{}},VI={[Re]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:_n,[Ae]:{}},Nb={[Re]:_z,[Ce]:_n,[Ae]:{}},FI={[Re]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:_n,[Ae]:{}},qI={[ze]:"UseObjectLambdaEndpoint"},Lb={[Dn]:[{[bn]:!0,[en]:"sigv4",[vn]:lw,[jn]:"{Region}"}]},GI={[Re]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:_n,[Ae]:{}},ZI={[Re]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[Ce]:_n,[Ae]:{}},KI={[Re]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:_n,[Ae]:{}},zb={[Re]:xh,[Ce]:_n,[Ae]:{}},QI={[Re]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[Ce]:_n,[Ae]:{}},Bb=[{[ze]:"Region"}],dve=[{[ze]:"Endpoint"}],pve=[ft],$b=[dr],pl=[an,is],YI=[{[X]:Vs,[W]:[{[ze]:"DisableS3ExpressSessionAuth"}]},{[X]:ln,[W]:[{[ze]:"DisableS3ExpressSessionAuth"},!0]}],hve=[xz],Ub=[Rz],fr=[wz],jb=[Vt,zt],Cf=[Vt,ot],Af=[et,zt],Tf=[et,ot],XI=[{[X]:jt,[W]:[ft,6,14,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ft,14,16,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:pt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],qr=[{[U]:[Vt,zt],[he]:{[Re]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:Us,[Ae]:{}},[D]:he},{[U]:Cf,[he]:{[Re]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ce]:Us,[Ae]:{}},[D]:he},{[U]:Af,[he]:{[Re]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:Us,[Ae]:{}},[D]:he},{[U]:Tf,[he]:{[Re]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ce]:Us,[Ae]:{}},[D]:he}],WI=[{[X]:jt,[W]:[ft,6,15,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ft,15,17,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:pt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],JI=[{[X]:jt,[W]:[ft,6,19,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ft,19,21,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:pt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],e2=[{[X]:jt,[W]:[ft,6,20,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ft,20,22,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:pt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],t2=[{[X]:jt,[W]:[ft,6,26,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ft,26,28,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:pt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],Gr=[{[U]:[Vt,zt],[he]:{[Re]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:{[zo]:"S3Express",[Dn]:[{[bn]:!0,[en]:"sigv4-s3express",[vn]:"s3express",[jn]:"{Region}"}]},[Ae]:{}},[D]:he},{[U]:Cf,[he]:{[Re]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ce]:{[zo]:"S3Express",[Dn]:[{[bn]:!0,[en]:"sigv4-s3express",[vn]:"s3express",[jn]:"{Region}"}]},[Ae]:{}},[D]:he},{[U]:Af,[he]:{[Re]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:{[zo]:"S3Express",[Dn]:[{[bn]:!0,[en]:"sigv4-s3express",[vn]:"s3express",[jn]:"{Region}"}]},[Ae]:{}},[D]:he},{[U]:Tf,[he]:{[Re]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ce]:{[zo]:"S3Express",[Dn]:[{[bn]:!0,[en]:"sigv4-s3express",[vn]:"s3express",[jn]:"{Region}"}]},[Ae]:{}},[D]:he}],n2=[ft,0,7,!0],s2=[{[X]:jt,[W]:[ft,7,15,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ft,15,17,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:pt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],r2=[{[X]:jt,[W]:[ft,7,16,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ft,16,18,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:pt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],o2=[{[X]:jt,[W]:[ft,7,20,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ft,20,22,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:pt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],i2=[{[X]:jt,[W]:[ft,7,21,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ft,21,23,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:pt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],a2=[{[X]:jt,[W]:[ft,7,27,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ft,27,29,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:pt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],mve=[Rf],c2=[{[X]:wc,[W]:[{[ze]:kv},!1]}],l2=[{[X]:pt,[W]:[{[ze]:hz},"beta"]}],gve=["*"],u2=[{[X]:wc,[W]:[{[ze]:"Region"},!1]}],Hi=[{[X]:pt,[W]:[{[ze]:"Region"},"us-east-1"]}],Hb=[{[X]:pt,[W]:[Cz,Sz]}],f2=[{[X]:Wt,[W]:[ws,"resourceId[1]"],[Ye]:uw},{[X]:Xr,[W]:[{[X]:pt,[W]:[fw,um]}]}],yve=[ws,"resourceId[1]"],d2=[zt],Vb=[{[X]:Xr,[W]:[{[X]:pt,[W]:[{[X]:Wt,[W]:[ws,"region"]},um]}]}],p2=[{[X]:Xr,[W]:[{[X]:Vs,[W]:[{[X]:Wt,[W]:[ws,"resourceId[2]"]}]}]}],bve=[ws,"resourceId[2]"],Fb=[{[X]:am,[W]:[{[X]:Wt,[W]:[ws,"region"]}],[Ye]:"bucketPartition"}],h2=[{[X]:pt,[W]:[Az,{[X]:Wt,[W]:[{[ze]:"partitionResult"},en]}]}],qb=[{[X]:wc,[W]:[{[X]:Wt,[W]:[ws,"region"]},!0]}],Gb=[{[X]:wc,[W]:[Tz,!1]}],m2=[{[X]:wc,[W]:[fw,!1]}],ph=[Vt],g2=[{[X]:wc,[W]:[{[ze]:"Region"},!0]}],vve={parameters:{Bucket:fl,Region:fl,UseFIPS:dl,UseDualStack:dl,Endpoint:fl,ForcePathStyle:dl,Accelerate:dl,UseGlobalEndpoint:dl,UseObjectLambdaEndpoint:hf,Key:fl,Prefix:fl,CopySource:fl,DisableAccessPoints:hf,DisableMultiRegionAccessPoints:dl,UseArnRegion:hf,UseS3ExpressControlEndpoint:hf,DisableS3ExpressSessionAuth:hf},[ae]:[{[U]:[{[X]:Vs,[W]:Bb}],[ae]:[{[U]:[dr,Vt],error:"Accelerate cannot be used with FIPS",[D]:Me},{[U]:[zt,an],error:"Cannot set dual-stack in combination with a custom endpoint.",[D]:Me},{[U]:[an,Vt],error:"A custom endpoint cannot be combined with FIPS",[D]:Me},{[U]:[an,dr],error:"A custom endpoint cannot be combined with S3 Accelerate",[D]:Me},{[U]:[Vt,wz,bI],error:"Partition does not support FIPS",[D]:Me},{[U]:[Rf,{[X]:jt,[W]:[ft,0,lve,Fr],[Ye]:cI},{[X]:pt,[W]:[{[ze]:cI},"--x-s3"]}],[ae]:[vI,SI,{[U]:[wI,EI],[ae]:[{[U]:fr,[ae]:[{[U]:[xz,Ke],[ae]:[{[U]:jb,endpoint:{[Re]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:Us,[Ae]:Ve},[D]:he},{[U]:Cf,endpoint:{[Re]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:Us,[Ae]:Ve},[D]:he},{[U]:Af,endpoint:{[Re]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:Us,[Ae]:Ve},[D]:he},{[U]:Tf,endpoint:{[Re]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:Us,[Ae]:Ve},[D]:he}],[D]:ce}],[D]:ce}],[D]:ce},{[U]:Ub,[ae]:[{[U]:fr,[ae]:[{[U]:YI,[ae]:[{[U]:XI,[ae]:qr,[D]:ce},{[U]:WI,[ae]:qr,[D]:ce},{[U]:JI,[ae]:qr,[D]:ce},{[U]:e2,[ae]:qr,[D]:ce},{[U]:t2,[ae]:qr,[D]:ce},uh],[D]:ce},{[U]:XI,[ae]:Gr,[D]:ce},{[U]:WI,[ae]:Gr,[D]:ce},{[U]:JI,[ae]:Gr,[D]:ce},{[U]:e2,[ae]:Gr,[D]:ce},{[U]:t2,[ae]:Gr,[D]:ce},uh],[D]:ce}],[D]:ce},_I],[D]:ce},{[U]:[Rf,{[X]:jt,[W]:n2,[Ye]:lI},{[X]:pt,[W]:[{[ze]:lI},"--xa-s3"]}],[ae]:[vI,SI,{[U]:Ub,[ae]:[{[U]:fr,[ae]:[{[U]:YI,[ae]:[{[U]:s2,[ae]:qr,[D]:ce},{[U]:r2,[ae]:qr,[D]:ce},{[U]:o2,[ae]:qr,[D]:ce},{[U]:i2,[ae]:qr,[D]:ce},{[U]:a2,[ae]:qr,[D]:ce},uh],[D]:ce},{[U]:s2,[ae]:Gr,[D]:ce},{[U]:r2,[ae]:Gr,[D]:ce},{[U]:o2,[ae]:Gr,[D]:ce},{[U]:i2,[ae]:Gr,[D]:ce},{[U]:a2,[ae]:Gr,[D]:ce},uh],[D]:ce}],[D]:ce},_I],[D]:ce},{[U]:[xI,wI,EI],[ae]:[{[U]:fr,[ae]:[{[U]:pl,endpoint:{[Re]:xh,[Ce]:Us,[Ae]:Ve},[D]:he},{[U]:jb,endpoint:{[Re]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:Us,[Ae]:Ve},[D]:he},{[U]:Cf,endpoint:{[Re]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}",[Ce]:Us,[Ae]:Ve},[D]:he},{[U]:Af,endpoint:{[Re]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:Us,[Ae]:Ve},[D]:he},{[U]:Tf,endpoint:{[Re]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}",[Ce]:Us,[Ae]:Ve},[D]:he}],[D]:ce}],[D]:ce},{[U]:[Rf,{[X]:jt,[W]:[ft,49,50,Fr],[Ye]:pz},{[X]:jt,[W]:[ft,8,12,Fr],[Ye]:hz},{[X]:jt,[W]:n2,[Ye]:uI},{[X]:jt,[W]:[ft,32,49,Fr],[Ye]:kv},{[X]:am,[W]:Bb,[Ye]:"regionPartition"},{[X]:pt,[W]:[{[ze]:uI},"--op-s3"]}],[ae]:[{[U]:c2,[ae]:[{[U]:Ub,[ae]:[{[U]:[{[X]:pt,[W]:[RI,"e"]}],[ae]:[{[U]:l2,[ae]:[CI,{[U]:pl,endpoint:{[Re]:"https://{Bucket}.ec2.{url#authority}",[Ce]:fh,[Ae]:Ve},[D]:he}],[D]:ce},{endpoint:{[Re]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Ce]:fh,[Ae]:Ve},[D]:he}],[D]:ce},{[U]:[{[X]:pt,[W]:[RI,"o"]}],[ae]:[{[U]:l2,[ae]:[CI,{[U]:pl,endpoint:{[Re]:"https://{Bucket}.op-{outpostId}.{url#authority}",[Ce]:fh,[Ae]:Ve},[D]:he}],[D]:ce},{endpoint:{[Re]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Ce]:fh,[Ae]:Ve},[D]:he}],[D]:ce},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[D]:Me}],[D]:ce},{error:"Invalid Outposts Bucket alias - it must be a valid bucket name.",[D]:Me}],[D]:ce},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[D]:Me}],[D]:ce},{[U]:mve,[ae]:[{[U]:[an,{[X]:Xr,[W]:[{[X]:Vs,[W]:[{[X]:aw,[W]:dve}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[D]:Me},{[U]:[Rb,Rz],[ae]:[{[U]:fr,[ae]:[{[U]:u2,[ae]:[{[U]:[dr,bI],error:"S3 Accelerate cannot be used in this region",[D]:Me},{[U]:[zt,Vt,gn,Ke,xn],endpoint:{[Re]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[zt,Vt,gn,Ke,lt,In],[ae]:[{endpoint:AI,[D]:he}],[D]:ce},{[U]:[zt,Vt,gn,Ke,lt,On],endpoint:AI,[D]:he},{[U]:[ot,Vt,gn,Ke,xn],endpoint:{[Re]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[ot,Vt,gn,Ke,lt,In],[ae]:[{endpoint:TI,[D]:he}],[D]:ce},{[U]:[ot,Vt,gn,Ke,lt,On],endpoint:TI,[D]:he},{[U]:[zt,et,dr,Ke,xn],endpoint:{[Re]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[zt,et,dr,Ke,lt,In],[ae]:[{endpoint:II,[D]:he}],[D]:ce},{[U]:[zt,et,dr,Ke,lt,On],endpoint:II,[D]:he},{[U]:[zt,et,gn,Ke,xn],endpoint:{[Re]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[zt,et,gn,Ke,lt,In],[ae]:[{endpoint:OI,[D]:he}],[D]:ce},{[U]:[zt,et,gn,Ke,lt,On],endpoint:OI,[D]:he},{[U]:[ot,et,gn,an,is,xb,xn],endpoint:{[Re]:mz,[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[ot,et,gn,an,is,Cb,xn],endpoint:{[Re]:lm,[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[ot,et,gn,an,is,xb,lt,In],[ae]:[{[U]:Hi,endpoint:Ab,[D]:he},{endpoint:Ab,[D]:he}],[D]:ce},{[U]:[ot,et,gn,an,is,Cb,lt,In],[ae]:[{[U]:Hi,endpoint:Pv,[D]:he},MI],[D]:ce},{[U]:[ot,et,gn,an,is,xb,lt,On],endpoint:Ab,[D]:he},{[U]:[ot,et,gn,an,is,Cb,lt,On],endpoint:Pv,[D]:he},{[U]:[ot,et,dr,Ke,xn],endpoint:{[Re]:gz,[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[ot,et,dr,Ke,lt,In],[ae]:[{[U]:Hi,endpoint:Tb,[D]:he},{endpoint:Tb,[D]:he}],[D]:ce},{[U]:[ot,et,dr,Ke,lt,On],endpoint:Tb,[D]:he},{[U]:[ot,et,gn,Ke,xn],endpoint:{[Re]:fI,[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[ot,et,gn,Ke,lt,In],[ae]:[{[U]:Hi,endpoint:{[Re]:fI,[Ce]:_n,[Ae]:Ve},[D]:he},{endpoint:DI,[D]:he}],[D]:ce},{[U]:[ot,et,gn,Ke,lt,On],endpoint:DI,[D]:he}],[D]:ce},dh],[D]:ce}],[D]:ce},{[U]:[an,is,{[X]:pt,[W]:[{[X]:Wt,[W]:[Ez,"scheme"]},"http"]},{[X]:cm,[W]:[ft,Fr]},Rb,et,ot,gn],[ae]:[{[U]:fr,[ae]:[{[U]:u2,[ae]:[MI],[D]:ce},dh],[D]:ce}],[D]:ce},{[U]:[Rb,{[X]:yz,[W]:pve,[Ye]:bz}],[ae]:[{[U]:[{[X]:Wt,[W]:[ws,"resourceId[0]"],[Ye]:vz},{[X]:Xr,[W]:[{[X]:pt,[W]:[Cz,um]}]}],[ae]:[{[U]:[{[X]:pt,[W]:[Ib,lw]}],[ae]:[{[U]:Hb,[ae]:[{[U]:f2,[ae]:[kI,PI,{[U]:Vb,[ae]:[NI,{[U]:p2,[ae]:[Ob,{[U]:Fb,[ae]:[{[U]:fr,[ae]:[{[U]:h2,[ae]:[{[U]:qb,[ae]:[{[U]:[{[X]:pt,[W]:[Tz,um]}],error:"Invalid ARN: Missing account id",[D]:Me},{[U]:Gb,[ae]:[{[U]:m2,[ae]:[{[U]:pl,endpoint:{[Re]:dI,[Ce]:Mb,[Ae]:Ve},[D]:he},{[U]:ph,endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:Mb,[Ae]:Ve},[D]:he},{endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:Mb,[Ae]:Ve},[D]:he}],[D]:ce},LI],[D]:ce},Db],[D]:ce},kb],[D]:ce},Pb],[D]:ce}],[D]:ce}],[D]:ce},zI],[D]:ce},{error:"Invalid ARN: bucket ARN is missing a region",[D]:Me}],[D]:ce},BI],[D]:ce},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[D]:Me}],[D]:ce},{[U]:Hb,[ae]:[{[U]:f2,[ae]:[{[U]:Vb,[ae]:[{[U]:Hb,[ae]:[{[U]:Vb,[ae]:[NI,{[U]:p2,[ae]:[Ob,{[U]:Fb,[ae]:[{[U]:fr,[ae]:[{[U]:[{[X]:pt,[W]:[Az,"{partitionResult#name}"]}],[ae]:[{[U]:qb,[ae]:[{[U]:[{[X]:pt,[W]:[Ib,Nl]}],[ae]:[{[U]:Gb,[ae]:[{[U]:m2,[ae]:[{[U]:$b,error:"Access Points do not support S3 Accelerate",[D]:Me},{[U]:jb,endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:mf,[Ae]:Ve},[D]:he},{[U]:Cf,endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:mf,[Ae]:Ve},[D]:he},{[U]:Af,endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:mf,[Ae]:Ve},[D]:he},{[U]:[et,ot,an,is],endpoint:{[Re]:dI,[Ce]:mf,[Ae]:Ve},[D]:he},{[U]:Tf,endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:mf,[Ae]:Ve},[D]:he}],[D]:ce},LI],[D]:ce},Db],[D]:ce},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[D]:Me}],[D]:ce},kb],[D]:ce},Pb],[D]:ce}],[D]:ce}],[D]:ce},zI],[D]:ce}],[D]:ce}],[D]:ce},{[U]:[{[X]:wc,[W]:[fw,Fr]}],[ae]:[{[U]:d2,error:"S3 MRAP does not support dual-stack",[D]:Me},{[U]:ph,error:"S3 MRAP does not support FIPS",[D]:Me},{[U]:$b,error:"S3 MRAP does not support S3 Accelerate",[D]:Me},{[U]:[{[X]:ln,[W]:[{[ze]:"DisableMultiRegionAccessPoints"},Fr]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[D]:Me},{[U]:[{[X]:am,[W]:Bb,[Ye]:pI}],[ae]:[{[U]:[{[X]:pt,[W]:[{[X]:Wt,[W]:[{[ze]:pI},en]},{[X]:Wt,[W]:[ws,"partition"]}]}],[ae]:[{endpoint:{[Re]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[Ce]:{[Dn]:[{[bn]:Fr,name:cw,[vn]:Nl,[iw]:gve}]},[Ae]:Ve},[D]:he}],[D]:ce},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[D]:Me}],[D]:ce}],[D]:ce},{error:"Invalid Access Point Name",[D]:Me}],[D]:ce},BI],[D]:ce},{[U]:[{[X]:pt,[W]:[Ib,Ff]}],[ae]:[{[U]:d2,error:"S3 Outposts does not support Dual-stack",[D]:Me},{[U]:ph,error:"S3 Outposts does not support FIPS",[D]:Me},{[U]:$b,error:"S3 Outposts does not support S3 Accelerate",[D]:Me},{[U]:[{[X]:Vs,[W]:[{[X]:Wt,[W]:[ws,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[D]:Me},{[U]:[{[X]:Wt,[W]:yve,[Ye]:kv}],[ae]:[{[U]:c2,[ae]:[Ob,{[U]:Fb,[ae]:[{[U]:fr,[ae]:[{[U]:h2,[ae]:[{[U]:qb,[ae]:[{[U]:Gb,[ae]:[{[U]:[{[X]:Wt,[W]:bve,[Ye]:hI}],[ae]:[{[U]:[{[X]:Wt,[W]:[ws,"resourceId[3]"],[Ye]:uw}],[ae]:[{[U]:[{[X]:pt,[W]:[{[ze]:hI},Sz]}],[ae]:[{[U]:pl,endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[Ce]:$I,[Ae]:Ve},[D]:he},{endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:$I,[Ae]:Ve},[D]:he}],[D]:ce},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[D]:Me}],[D]:ce},{error:"Invalid ARN: expected an access point name",[D]:Me}],[D]:ce},{error:"Invalid ARN: Expected a 4-component resource",[D]:Me}],[D]:ce},Db],[D]:ce},kb],[D]:ce},Pb],[D]:ce}],[D]:ce}],[D]:ce},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[D]:Me}],[D]:ce},{error:"Invalid ARN: The Outpost Id was not set",[D]:Me}],[D]:ce},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[D]:Me}],[D]:ce},{error:"Invalid ARN: No ARN type specified",[D]:Me}],[D]:ce},{[U]:[{[X]:jt,[W]:[ft,0,4,uve],[Ye]:mI},{[X]:pt,[W]:[{[ze]:mI},"arn:"]},{[X]:Xr,[W]:[{[X]:Vs,[W]:[UI]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[D]:Me},{[U]:[{[X]:ln,[W]:[fve,Fr]},UI],error:"Path-style addressing cannot be used with ARN buckets",[D]:Me},{[U]:hve,[ae]:[{[U]:fr,[ae]:[{[U]:[gn],[ae]:[{[U]:[zt,Ke,Vt,xn],endpoint:{[Re]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[zt,Ke,Vt,lt,In],[ae]:[{endpoint:jI,[D]:he}],[D]:ce},{[U]:[zt,Ke,Vt,lt,On],endpoint:jI,[D]:he},{[U]:[ot,Ke,Vt,xn],endpoint:{[Re]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[ot,Ke,Vt,lt,In],[ae]:[{endpoint:HI,[D]:he}],[D]:ce},{[U]:[ot,Ke,Vt,lt,On],endpoint:HI,[D]:he},{[U]:[zt,Ke,et,xn],endpoint:{[Re]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[zt,Ke,et,lt,In],[ae]:[{endpoint:VI,[D]:he}],[D]:ce},{[U]:[zt,Ke,et,lt,On],endpoint:VI,[D]:he},{[U]:[ot,an,is,et,xn],endpoint:{[Re]:_z,[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[ot,an,is,et,lt,In],[ae]:[{[U]:Hi,endpoint:Nb,[D]:he},{endpoint:Nb,[D]:he}],[D]:ce},{[U]:[ot,an,is,et,lt,On],endpoint:Nb,[D]:he},{[U]:[ot,Ke,et,xn],endpoint:{[Re]:gI,[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[ot,Ke,et,lt,In],[ae]:[{[U]:Hi,endpoint:{[Re]:gI,[Ce]:_n,[Ae]:Ve},[D]:he},{endpoint:FI,[D]:he}],[D]:ce},{[U]:[ot,Ke,et,lt,On],endpoint:FI,[D]:he}],[D]:ce},{error:"Path-style addressing cannot be used with S3 Accelerate",[D]:Me}],[D]:ce}],[D]:ce}],[D]:ce},{[U]:[{[X]:Vs,[W]:[qI]},{[X]:ln,[W]:[qI,Fr]}],[ae]:[{[U]:fr,[ae]:[{[U]:g2,[ae]:[kI,PI,{[U]:pl,endpoint:{[Re]:xh,[Ce]:Lb,[Ae]:Ve},[D]:he},{[U]:ph,endpoint:{[Re]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[Ce]:Lb,[Ae]:Ve},[D]:he},{endpoint:{[Re]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[Ce]:Lb,[Ae]:Ve},[D]:he}],[D]:ce},dh],[D]:ce}],[D]:ce},{[U]:[xI],[ae]:[{[U]:fr,[ae]:[{[U]:g2,[ae]:[{[U]:[Vt,zt,Ke,xn],endpoint:{[Re]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[Vt,zt,Ke,lt,In],[ae]:[{endpoint:GI,[D]:he}],[D]:ce},{[U]:[Vt,zt,Ke,lt,On],endpoint:GI,[D]:he},{[U]:[Vt,ot,Ke,xn],endpoint:{[Re]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[Vt,ot,Ke,lt,In],[ae]:[{endpoint:ZI,[D]:he}],[D]:ce},{[U]:[Vt,ot,Ke,lt,On],endpoint:ZI,[D]:he},{[U]:[et,zt,Ke,xn],endpoint:{[Re]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[et,zt,Ke,lt,In],[ae]:[{endpoint:KI,[D]:he}],[D]:ce},{[U]:[et,zt,Ke,lt,On],endpoint:KI,[D]:he},{[U]:[et,ot,an,is,xn],endpoint:{[Re]:xh,[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[et,ot,an,is,lt,In],[ae]:[{[U]:Hi,endpoint:zb,[D]:he},{endpoint:zb,[D]:he}],[D]:ce},{[U]:[et,ot,an,is,lt,On],endpoint:zb,[D]:he},{[U]:[et,ot,Ke,xn],endpoint:{[Re]:yI,[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[et,ot,Ke,lt,In],[ae]:[{[U]:Hi,endpoint:{[Re]:yI,[Ce]:_n,[Ae]:Ve},[D]:he},{endpoint:QI,[D]:he}],[D]:ce},{[U]:[et,ot,Ke,lt,On],endpoint:QI,[D]:he}],[D]:ce},dh],[D]:ce}],[D]:ce}],[D]:ce},{error:"A region must be set when sending requests to S3.",[D]:Me}]},Sve=vve,_ve=new WD({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),Iz=(e,t={})=>_ve.get(e,()=>ck(Sve,{endpointParams:e,logger:t.logger}));kl.aws=BS;const wve=e=>async(t,n,r)=>{if(!r)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");const i=await e(t,n,r),c=qo(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!c)throw new Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);const l=await Nk(r,{getEndpointParameterInstructions:c},t);return Object.assign(i,l)},Eve=async(e,t,n)=>({operation:qo(t).operation,region:await qs(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),xve=wve(Eve);function Oz(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function Mz(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}const Rve=(e,t,n)=>i=>{const l=e(i).properties?.authSchemes;if(!l)return t(i);const f=[];for(const d of l){const{name:p,properties:b={},...g}=d,v=p.toLowerCase();p!==v&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${p}' to '${v}'`);let S;if(v==="sigv4a"){S="aws.auth#sigv4a";const R=l.find(C=>{const O=C.name.toLowerCase();return O!=="sigv4a"&&O.startsWith("sigv4")});if(dz.sigv4aDependency()==="none"&&R)continue}else if(v.startsWith("sigv4"))S="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${v}'`);const w=n[S];if(!w)throw new Error(`Could not find HttpAuthOption create function for '${S}'`);const E=w(i);E.schemeId=S,E.signingProperties={...E.signingProperties||{},...g,...b},f.push(E)}return f},Cve=e=>{const t=[];switch(e.operation){default:t.push(Oz(e)),t.push(Mz(e))}return t},Ave=Rve(Iz,Cve,{"aws.auth#sigv4":Oz,"aws.auth#sigv4a":Mz}),Tve=e=>{const t=bk(e),n=FY(t);return Object.assign(n,{authSchemePreference:qs(e.authSchemePreference??[])})},Ive=e=>Object.assign(e,{useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:"s3",clientContextParams:e.clientContextParams??{}}),dw={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};class Pn extends Ya{constructor(t){super(t),Object.setPrototypeOf(this,Pn.prototype)}}class pw extends Pn{name="NoSuchUpload";$fault="client";constructor(t){super({name:"NoSuchUpload",$fault:"client",...t}),Object.setPrototypeOf(this,pw.prototype)}}class hw extends Pn{name="AccessDenied";$fault="client";constructor(t){super({name:"AccessDenied",$fault:"client",...t}),Object.setPrototypeOf(this,hw.prototype)}}class mw extends Pn{name="ObjectNotInActiveTierError";$fault="client";constructor(t){super({name:"ObjectNotInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,mw.prototype)}}class gw extends Pn{name="BucketAlreadyExists";$fault="client";constructor(t){super({name:"BucketAlreadyExists",$fault:"client",...t}),Object.setPrototypeOf(this,gw.prototype)}}class yw extends Pn{name="BucketAlreadyOwnedByYou";$fault="client";constructor(t){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...t}),Object.setPrototypeOf(this,yw.prototype)}}class bw extends Pn{name="NoSuchBucket";$fault="client";constructor(t){super({name:"NoSuchBucket",$fault:"client",...t}),Object.setPrototypeOf(this,bw.prototype)}}class vw extends Pn{name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(t){super({name:"InvalidObjectState",$fault:"client",...t}),Object.setPrototypeOf(this,vw.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}}class Sw extends Pn{name="NoSuchKey";$fault="client";constructor(t){super({name:"NoSuchKey",$fault:"client",...t}),Object.setPrototypeOf(this,Sw.prototype)}}class _w extends Pn{name="NotFound";$fault="client";constructor(t){super({name:"NotFound",$fault:"client",...t}),Object.setPrototypeOf(this,_w.prototype)}}class ww extends Pn{name="EncryptionTypeMismatch";$fault="client";constructor(t){super({name:"EncryptionTypeMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,ww.prototype)}}class Ew extends Pn{name="InvalidRequest";$fault="client";constructor(t){super({name:"InvalidRequest",$fault:"client",...t}),Object.setPrototypeOf(this,Ew.prototype)}}class xw extends Pn{name="InvalidWriteOffset";$fault="client";constructor(t){super({name:"InvalidWriteOffset",$fault:"client",...t}),Object.setPrototypeOf(this,xw.prototype)}}class Rw extends Pn{name="TooManyParts";$fault="client";constructor(t){super({name:"TooManyParts",$fault:"client",...t}),Object.setPrototypeOf(this,Rw.prototype)}}class Cw extends Pn{name="IdempotencyParameterMismatch";$fault="client";constructor(t){super({name:"IdempotencyParameterMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,Cw.prototype)}}class Aw extends Pn{name="ObjectAlreadyInActiveTierError";$fault="client";constructor(t){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,Aw.prototype)}}const Tw="ACL",Ove="AccessDenied",Mve="AbortDate",y2="AccessKeyId",Dve="AbortMultipartUpload",kve="AbortMultipartUploadOutput",Pve="AbortMultipartUploadRequest",Nve="AcceptRanges",Lve="AbortRuleId",zve="AccessTier",Fn="Bucket",Dz="BucketArn",Bve="BucketAlreadyExists",$ve="BucketAlreadyOwnedByYou",Uve="BypassGovernanceRetention",jve="BucketInfo",Xo="BucketKeyEnabled",kz="BucketRegion",Iw="Body",Pz="Buckets",Wl="ChecksumAlgorithm",Hve="CreateBucket",Nv="CreateBucketConfiguration",Vve="CreateBucketOutput",Fve="CreateBucketRequest",Ow="CacheControl",ya="ChecksumCRC32",ba="ChecksumCRC32C",va="ChecksumCRC64NVME",Mw="Cache-Control",qve="CreationDate",Dw="Content-Disposition",kw="ContentDisposition",Pw="Content-Encoding",Nw="ContentEncoding",Lw="ContentLanguage",zw="Content-Language",Bw="Content-Length",$w="ContentLength",Uw="Content-MD5",jw="ContentMD5",Gve="CompletedMultipartUpload",Zve="CompleteMultipartUploadOutput",Kve="CreateMultipartUploadOutput",Qve="CompleteMultipartUploadResult",Yve="CompleteMultipartUploadRequest",Xve="CreateMultipartUploadRequest",Nz="CompleteMultipartUpload",Wve="CreateMultipartUpload",Jve="ChecksumMode",eSe="CommonPrefix",tSe="CommonPrefixList",nSe="CompletedPartList",sSe="CompletedPart",rSe="CommonPrefixes",oSe="ContentRange",iSe="Content-Range",Sa="ChecksumSHA1",_a="ChecksumSHA256",aSe="CreateSessionOutput",cSe="CreateSessionResult",lSe="CreateSessionRequest",uSe="CreateSession",Ec="ChecksumType",Hw="Content-Type",Vw="ContentType",hg="ContinuationToken",fSe="Contents",b2="Credentials",Lz="DeleteMarker",dSe="DisplayName",pSe="DeleteObjectOutput",hSe="DeleteObjectRequest",mSe="DeleteObject",gSe="DataRedundancy",zz="Delimiter",qf="Expiration",Wo="ExpectedBucketOwner",v2="ExpiresString",ySe="EncryptionTypeMismatch",Vo="ETag",Bz="EncodingType",Ll="Expires",bSe="FetchOwner",Fw="GrantFullControl",vSe="GetObject",SSe="GetObjectOutput",_Se="GetObjectRequest",qw="GrantRead",Gw="GrantReadACP",wSe="GrantWrite",Zw="GrantWriteACP",ESe="ID",mg="IfMatch",xSe="IfMatchInitiatedTime",RSe="IfMatchLastModifiedTime",CSe="IfMatchSize",ASe="If-Modified-Since",TSe="IfModifiedSince",ISe="InitiateMultipartUploadResult",gg="If-Match",Kw="IfNoneMatch",Qw="If-None-Match",OSe="InvalidObjectState",MSe="IdempotencyParameterMismatch",DSe="InvalidRequest",kSe="IsRestoreInProgress",PSe="IsTruncated",NSe="IfUnmodifiedSince",LSe="If-Unmodified-Since",zSe="InvalidWriteOffset",Cr="Key",BSe="KeyCount",fm="Location",$Se="ListAllMyBucketsResult",USe="ListBuckets",jSe="ListBucketsOutput",HSe="ListBucketsRequest",VSe="ListBucketResult",FSe="LocationConstraint",qSe="LocationInfo",$z="LastModified",GSe="Last-Modified",ZSe="ListObjectsV2",KSe="ListObjectsV2Output",QSe="ListObjectsV2Request",Yw="Metadata",YSe="MaxBuckets",XSe="MFA",Uz="MaxKeys",WSe="MissingMeta",JSe="MpuObjectSize",e_e="MultipartUpload",Xw="Name",t_e="NextContinuationToken",n_e="NotFound",s_e="NoSuchBucket",r_e="NoSuchKey",o_e="NoSuchUpload",Ww="Owner",i_e="ObjectAlreadyInActiveTierError",a_e="ObjectLockEnabledForBucket",Jw="ObjectLockLegalHoldStatus",eE="ObjectLockMode",tE="ObjectLockRetainUntilDate",c_e="ObjectList",l_e="ObjectNotInActiveTierError",u_e="ObjectOwnership",f_e="OptionalObjectAttributes",d_e="Object",vd="Prefix",p_e="PartsCount",nE="PartNumber",h_e="PutObject",m_e="PutObjectOutput",g_e="PutObjectRequest",y_e="PutObjectTagging",b_e="PutObjectTaggingOutput",v_e="PutObjectTaggingRequest",S_e="Parts",__e="Part",wa="RequestCharged",w_e="ResponseCacheControl",E_e="ResponseContentDisposition",x_e="ResponseContentEncoding",R_e="ResponseContentLanguage",C_e="ResponseContentType",A_e="ResponseExpires",T_e="RestoreExpiryDate",Jo="RequestPayer",I_e="ReplicationStatus",jz="RestoreStatus",S2="Range",O_e="Restore",Hz="StartAfter",_2="SecretAccessKey",M_e="StreamingBlob",Sd="StorageClass",D_e="SessionCredentialValue",k_e="SessionCredentials",P_e="SessionMode",ei="ServerSideEncryption",ti="SSECustomerAlgorithm",Jl="SSECustomerKey",ni="SSECustomerKeyMD5",xc="SSEKMSEncryptionContext",io="SSEKMSKeyId",w2="SessionToken",Vz="Size",N_e="Tags",L_e="TagCount",z_e="TooManyParts",Fz="TagSet",qz="Tag",Gf="Tagging",Gz="Type",yg="UploadId",B_e="UploadPart",$_e="UploadPartOutput",U_e="UploadPartRequest",j_e="Value",Ea="VersionId",H_e="WriteOffsetBytes",sE="WebsiteRedirectLocation",V_e="accept-ranges",F_e="bucket-region",us="client",Zz="continuation-token",q_e="delimiter",fs="error",G_e="encoding-type",Z_e="fetch-owner",Ar="http",bg="httpChecksum",Is="httpError",L="httpHeader",rE="httpPayload",oE="httpPrefixHeaders",Zt="httpQuery",K_e="max-buckets",Q_e="max-keys",Kz="prefix",Qz="partNumber",Y_e="response-cache-control",X_e="response-content-disposition",W_e="response-content-encoding",J_e="response-content-language",ewe="response-content-type",twe="response-expires",Yz="smithy.ts.sdk.synthetic.com.amazonaws.s3",nwe="start-after",swe="streaming",iE="uploadId",aE="versionId",dm="xmlFlattened",Hn="xmlName",cE="x-amz-acl",rwe="x-amz-abort-date",owe="x-amz-abort-rule-id",iwe="x-amz-bucket-arn",awe="x-amz-bypass-governance-retention",cwe="x-amz-bucket-object-lock-enabled",Xz="x-amz-checksum-algorithm",eu="x-amz-checksum-crc32",tu="x-amz-checksum-crc32c",nu="x-amz-checksum-crc64nvme",lwe="x-amz-checksum-mode",su="x-amz-checksum-sha1",ru="x-amz-checksum-sha256",uwe="x-amz-create-session-mode",_d="x-amz-checksum-type",Wz="x-amz-delete-marker",lE="x-amz-expiration",si="x-amz-expected-bucket-owner",uE="x-amz-grant-full-control",fE="x-amz-grant-read",dE="x-amz-grant-read-acp",fwe="x-amz-grant-write",pE="x-amz-grant-write-acp",dwe="x-amz-if-match-initiated-time",pwe="x-amz-if-match-last-modified-time",hwe="x-amz-if-match-size",hE="x-amz-meta-",mwe="x-amz-mfa",gwe="x-amz-missing-meta",ywe="x-amz-mp-object-size",bwe="x-amz-mp-parts-count",mE="x-amz-object-lock-legal-hold",gE="x-amz-object-lock-mode",yE="x-amz-object-lock-retain-until-date",vwe="x-amz-object-ownership",Swe="x-amz-optional-object-attributes",_we="x-amz-object-size",wwe="x-amz-restore",xa="x-amz-request-charged",ri="x-amz-request-payer",Ewe="x-amz-replication-status",bE="x-amz-storage-class",vE="x-amz-sdk-checksum-algorithm",oi="x-amz-server-side-encryption",ii="x-amz-server-side-encryption-aws-kms-key-id",ai="x-amz-server-side-encryption-bucket-key-enabled",ou="x-amz-server-side-encryption-context",ci="x-amz-server-side-encryption-customer-algorithm",wd="x-amz-server-side-encryption-customer-key",li="x-amz-server-side-encryption-customer-key-MD5",Jz="x-amz-tagging",xwe="x-amz-tagging-count",Ed="x-amz-version-id",Rwe="x-amz-write-offset-bytes",SE="x-amz-website-redirect-location",Ie="com.amazonaws.s3",e4=ts.for(Yz);var Cwe=[-3,Yz,"S3ServiceException",0,[],[]];e4.registerError(Cwe,Pn);const ss=ts.for(Ie);var Awe=[-3,Ie,Ove,{[fs]:us,[Is]:403},[],[]];ss.registerError(Awe,hw);var Twe=[-3,Ie,Bve,{[fs]:us,[Is]:409},[],[]];ss.registerError(Twe,gw);var Iwe=[-3,Ie,$ve,{[fs]:us,[Is]:409},[],[]];ss.registerError(Iwe,yw);var Owe=[-3,Ie,ySe,{[fs]:us,[Is]:400},[],[]];ss.registerError(Owe,ww);var Mwe=[-3,Ie,MSe,{[fs]:us,[Is]:400},[],[]];ss.registerError(Mwe,Cw);var Dwe=[-3,Ie,OSe,{[fs]:us,[Is]:403},[Sd,zve],[0,0]];ss.registerError(Dwe,vw);var kwe=[-3,Ie,DSe,{[fs]:us,[Is]:400},[],[]];ss.registerError(kwe,Ew);var Pwe=[-3,Ie,zSe,{[fs]:us,[Is]:400},[],[]];ss.registerError(Pwe,xw);var Nwe=[-3,Ie,s_e,{[fs]:us,[Is]:404},[],[]];ss.registerError(Nwe,bw);var Lwe=[-3,Ie,r_e,{[fs]:us,[Is]:404},[],[]];ss.registerError(Lwe,Sw);var zwe=[-3,Ie,o_e,{[fs]:us,[Is]:404},[],[]];ss.registerError(zwe,pw);var Bwe=[-3,Ie,n_e,{[fs]:us},[],[]];ss.registerError(Bwe,_w);var $we=[-3,Ie,i_e,{[fs]:us,[Is]:403},[],[]];ss.registerError($we,Aw);var Uwe=[-3,Ie,l_e,{[fs]:us,[Is]:403},[],[]];ss.registerError(Uwe,mw);var jwe=[-3,Ie,z_e,{[fs]:us,[Is]:400},[],[]];ss.registerError(jwe,Rw);const Hwe=[e4,ss];var E2=[0,Ie,D_e,8,0],xd=[0,Ie,Jl,8,0],iu=[0,Ie,xc,8,0],ui=[0,Ie,io,8,0],_E=[0,Ie,M_e,{[swe]:1},42],Vwe=[3,Ie,kve,0,[wa],[[0,{[L]:xa}]]],Fwe=[3,Ie,Pve,0,[Fn,Cr,yg,Jo,Wo,xSe],[[0,1],[0,1],[0,{[Zt]:iE}],[0,{[L]:ri}],[0,{[L]:si}],[6,{[L]:dwe}]],3],qwe=[3,Ie,Fn,0,[Xw,qve,kz,Dz],[0,4,0,0]],Gwe=[3,Ie,jve,0,[gSe,Gz],[0,0]],Zwe=[3,Ie,eSe,0,[vd],[0]],Kwe=[3,Ie,Gve,0,[S_e],[[()=>AEe,{[dm]:1,[Hn]:__e}]]],Qwe=[3,Ie,sSe,0,[Vo,ya,ba,va,Sa,_a,nE],[0,0,0,0,0,0,1]],Ywe=[3,Ie,Zve,{[Hn]:Qve},[fm,Fn,Cr,qf,Vo,ya,ba,va,Sa,_a,Ec,ei,Ea,io,Xo,wa],[0,0,0,[0,{[L]:lE}],0,0,0,0,0,0,0,[0,{[L]:oi}],[0,{[L]:Ed}],[()=>ui,{[L]:ii}],[2,{[L]:ai}],[0,{[L]:xa}]]],Xwe=[3,Ie,Yve,0,[Fn,Cr,yg,e_e,ya,ba,va,Sa,_a,Ec,JSe,Jo,Wo,mg,Kw,ti,Jl,ni],[[0,1],[0,1],[0,{[Zt]:iE}],[()=>Kwe,{[rE]:1,[Hn]:Nz}],[0,{[L]:eu}],[0,{[L]:tu}],[0,{[L]:nu}],[0,{[L]:su}],[0,{[L]:ru}],[0,{[L]:_d}],[1,{[L]:ywe}],[0,{[L]:ri}],[0,{[L]:si}],[0,{[L]:gg}],[0,{[L]:Qw}],[0,{[L]:ci}],[()=>xd,{[L]:wd}],[0,{[L]:li}]],3],Wwe=[3,Ie,Nv,0,[FSe,fm,Fn,N_e],[0,()=>pEe,()=>Gwe,[()=>n4,0]]],Jwe=[3,Ie,Vve,0,[fm,Dz],[[0,{[L]:fm}],[0,{[L]:iwe}]]],eEe=[3,Ie,Fve,0,[Fn,Tw,Nv,Fw,qw,Gw,wSe,Zw,a_e,u_e],[[0,1],[0,{[L]:cE}],[()=>Wwe,{[rE]:1,[Hn]:Nv}],[0,{[L]:uE}],[0,{[L]:fE}],[0,{[L]:dE}],[0,{[L]:fwe}],[0,{[L]:pE}],[2,{[L]:cwe}],[0,{[L]:vwe}]],1],tEe=[3,Ie,Kve,{[Hn]:ISe},[Mve,Lve,Fn,Cr,yg,ei,ti,ni,io,xc,Xo,wa,Wl,Ec],[[4,{[L]:rwe}],[0,{[L]:owe}],[0,{[Hn]:Fn}],0,0,[0,{[L]:oi}],[0,{[L]:ci}],[0,{[L]:li}],[()=>ui,{[L]:ii}],[()=>iu,{[L]:ou}],[2,{[L]:ai}],[0,{[L]:xa}],[0,{[L]:Xz}],[0,{[L]:_d}]]],nEe=[3,Ie,Xve,0,[Fn,Cr,Tw,Ow,kw,Nw,Lw,Vw,Ll,Fw,qw,Gw,Zw,Yw,ei,Sd,sE,ti,Jl,ni,io,xc,Xo,Jo,Gf,eE,tE,Jw,Wo,Wl,Ec],[[0,1],[0,1],[0,{[L]:cE}],[0,{[L]:Mw}],[0,{[L]:Dw}],[0,{[L]:Pw}],[0,{[L]:zw}],[0,{[L]:Hw}],[4,{[L]:Ll}],[0,{[L]:uE}],[0,{[L]:fE}],[0,{[L]:dE}],[0,{[L]:pE}],[128,{[oE]:hE}],[0,{[L]:oi}],[0,{[L]:bE}],[0,{[L]:SE}],[0,{[L]:ci}],[()=>xd,{[L]:wd}],[0,{[L]:li}],[()=>ui,{[L]:ii}],[()=>iu,{[L]:ou}],[2,{[L]:ai}],[0,{[L]:ri}],[0,{[L]:Jz}],[0,{[L]:gE}],[5,{[L]:yE}],[0,{[L]:mE}],[0,{[L]:si}],[0,{[L]:Xz}],[0,{[L]:_d}]],2],sEe=[3,Ie,aSe,{[Hn]:cSe},[b2,ei,io,xc,Xo],[[()=>SEe,{[Hn]:b2}],[0,{[L]:oi}],[()=>ui,{[L]:ii}],[()=>iu,{[L]:ou}],[2,{[L]:ai}]],1],rEe=[3,Ie,lSe,0,[Fn,P_e,ei,io,xc,Xo],[[0,1],[0,{[L]:uwe}],[0,{[L]:oi}],[()=>ui,{[L]:ii}],[()=>iu,{[L]:ou}],[2,{[L]:ai}]],1],oEe=[3,Ie,pSe,0,[Lz,Ea,wa],[[2,{[L]:Wz}],[0,{[L]:Ed}],[0,{[L]:xa}]]],iEe=[3,Ie,hSe,0,[Fn,Cr,XSe,Ea,Jo,Uve,Wo,mg,RSe,CSe],[[0,1],[0,1],[0,{[L]:mwe}],[0,{[Zt]:aE}],[0,{[L]:ri}],[2,{[L]:awe}],[0,{[L]:si}],[0,{[L]:gg}],[6,{[L]:pwe}],[1,{[L]:hwe}]],2],aEe=[3,Ie,SSe,0,[Iw,Lz,Nve,qf,O_e,$z,$w,Vo,ya,ba,va,Sa,_a,Ec,WSe,Ea,Ow,kw,Nw,Lw,oSe,Vw,Ll,v2,sE,ei,Yw,ti,ni,io,Xo,Sd,wa,I_e,p_e,L_e,eE,tE,Jw],[[()=>_E,16],[2,{[L]:Wz}],[0,{[L]:V_e}],[0,{[L]:lE}],[0,{[L]:wwe}],[4,{[L]:GSe}],[1,{[L]:Bw}],[0,{[L]:Vo}],[0,{[L]:eu}],[0,{[L]:tu}],[0,{[L]:nu}],[0,{[L]:su}],[0,{[L]:ru}],[0,{[L]:_d}],[1,{[L]:gwe}],[0,{[L]:Ed}],[0,{[L]:Mw}],[0,{[L]:Dw}],[0,{[L]:Pw}],[0,{[L]:zw}],[0,{[L]:iSe}],[0,{[L]:Hw}],[4,{[L]:Ll}],[0,{[L]:v2}],[0,{[L]:SE}],[0,{[L]:oi}],[128,{[oE]:hE}],[0,{[L]:ci}],[0,{[L]:li}],[()=>ui,{[L]:ii}],[2,{[L]:ai}],[0,{[L]:bE}],[0,{[L]:xa}],[0,{[L]:Ewe}],[1,{[L]:bwe}],[1,{[L]:xwe}],[0,{[L]:gE}],[5,{[L]:yE}],[0,{[L]:mE}]]],cEe=[3,Ie,_Se,0,[Fn,Cr,mg,TSe,Kw,NSe,S2,w_e,E_e,x_e,R_e,C_e,A_e,Ea,ti,Jl,ni,Jo,nE,Wo,Jve],[[0,1],[0,1],[0,{[L]:gg}],[4,{[L]:ASe}],[0,{[L]:Qw}],[4,{[L]:LSe}],[0,{[L]:S2}],[0,{[Zt]:Y_e}],[0,{[Zt]:X_e}],[0,{[Zt]:W_e}],[0,{[Zt]:J_e}],[0,{[Zt]:ewe}],[6,{[Zt]:twe}],[0,{[Zt]:aE}],[0,{[L]:ci}],[()=>xd,{[L]:wd}],[0,{[L]:li}],[0,{[L]:ri}],[1,{[Zt]:Qz}],[0,{[L]:si}],[0,{[L]:lwe}]],2],lEe=[3,Ie,jSe,{[Hn]:$Se},[Pz,Ww,hg,vd],[[()=>REe,0],()=>t4,0,0]],uEe=[3,Ie,HSe,0,[YSe,hg,vd,kz],[[1,{[Zt]:K_e}],[0,{[Zt]:Zz}],[0,{[Zt]:Kz}],[0,{[Zt]:F_e}]]],fEe=[3,Ie,KSe,{[Hn]:VSe},[PSe,fSe,Xw,vd,zz,Uz,rSe,Bz,BSe,hg,t_e,Hz,wa],[2,[()=>TEe,{[dm]:1}],0,0,0,1,[()=>CEe,{[dm]:1}],0,1,0,0,0,[0,{[L]:xa}]]],dEe=[3,Ie,QSe,0,[Fn,zz,Bz,Uz,vd,hg,bSe,Hz,Jo,Wo,f_e],[[0,1],[0,{[Zt]:q_e}],[0,{[Zt]:G_e}],[1,{[Zt]:Q_e}],[0,{[Zt]:Kz}],[0,{[Zt]:Zz}],[2,{[Zt]:Z_e}],[0,{[Zt]:nwe}],[0,{[L]:ri}],[0,{[L]:si}],[64,{[L]:Swe}]],1],pEe=[3,Ie,qSe,0,[Gz,Xw],[0,0]],hEe=[3,Ie,d_e,0,[Cr,$z,Vo,Wl,Ec,Vz,Sd,Ww,jz],[0,4,0,[64,{[dm]:1}],0,1,0,()=>t4,()=>vEe]],t4=[3,Ie,Ww,0,[dSe,ESe],[0,0]],mEe=[3,Ie,m_e,0,[qf,Vo,ya,ba,va,Sa,_a,Ec,ei,Ea,ti,ni,io,xc,Xo,Vz,wa],[[0,{[L]:lE}],[0,{[L]:Vo}],[0,{[L]:eu}],[0,{[L]:tu}],[0,{[L]:nu}],[0,{[L]:su}],[0,{[L]:ru}],[0,{[L]:_d}],[0,{[L]:oi}],[0,{[L]:Ed}],[0,{[L]:ci}],[0,{[L]:li}],[()=>ui,{[L]:ii}],[()=>iu,{[L]:ou}],[2,{[L]:ai}],[1,{[L]:_we}],[0,{[L]:xa}]]],gEe=[3,Ie,g_e,0,[Fn,Cr,Tw,Iw,Ow,kw,Nw,Lw,$w,jw,Vw,Wl,ya,ba,va,Sa,_a,Ll,mg,Kw,Fw,qw,Gw,Zw,H_e,Yw,ei,Sd,sE,ti,Jl,ni,io,xc,Xo,Jo,Gf,eE,tE,Jw,Wo],[[0,1],[0,1],[0,{[L]:cE}],[()=>_E,16],[0,{[L]:Mw}],[0,{[L]:Dw}],[0,{[L]:Pw}],[0,{[L]:zw}],[1,{[L]:Bw}],[0,{[L]:Uw}],[0,{[L]:Hw}],[0,{[L]:vE}],[0,{[L]:eu}],[0,{[L]:tu}],[0,{[L]:nu}],[0,{[L]:su}],[0,{[L]:ru}],[4,{[L]:Ll}],[0,{[L]:gg}],[0,{[L]:Qw}],[0,{[L]:uE}],[0,{[L]:fE}],[0,{[L]:dE}],[0,{[L]:pE}],[1,{[L]:Rwe}],[128,{[oE]:hE}],[0,{[L]:oi}],[0,{[L]:bE}],[0,{[L]:SE}],[0,{[L]:ci}],[()=>xd,{[L]:wd}],[0,{[L]:li}],[()=>ui,{[L]:ii}],[()=>iu,{[L]:ou}],[2,{[L]:ai}],[0,{[L]:ri}],[0,{[L]:Jz}],[0,{[L]:gE}],[5,{[L]:yE}],[0,{[L]:mE}],[0,{[L]:si}]],2],yEe=[3,Ie,b_e,0,[Ea],[[0,{[L]:Ed}]]],bEe=[3,Ie,v_e,0,[Fn,Cr,Gf,Ea,jw,Wl,Wo,Jo],[[0,1],[0,1],[()=>wEe,{[rE]:1,[Hn]:Gf}],[0,{[Zt]:aE}],[0,{[L]:Uw}],[0,{[L]:vE}],[0,{[L]:si}],[0,{[L]:ri}]],3],vEe=[3,Ie,jz,0,[kSe,T_e],[2,4]],SEe=[3,Ie,k_e,0,[y2,_2,w2,qf],[[0,{[Hn]:y2}],[()=>E2,{[Hn]:_2}],[()=>E2,{[Hn]:w2}],[4,{[Hn]:qf}]],4],_Ee=[3,Ie,qz,0,[Cr,j_e],[0,0],2],wEe=[3,Ie,Gf,0,[Fz],[[()=>n4,0]],1],EEe=[3,Ie,$_e,0,[ei,Vo,ya,ba,va,Sa,_a,ti,ni,io,Xo,wa],[[0,{[L]:oi}],[0,{[L]:Vo}],[0,{[L]:eu}],[0,{[L]:tu}],[0,{[L]:nu}],[0,{[L]:su}],[0,{[L]:ru}],[0,{[L]:ci}],[0,{[L]:li}],[()=>ui,{[L]:ii}],[2,{[L]:ai}],[0,{[L]:xa}]]],xEe=[3,Ie,U_e,0,[Fn,Cr,nE,yg,Iw,$w,jw,Wl,ya,ba,va,Sa,_a,ti,Jl,ni,Jo,Wo],[[0,1],[0,1],[1,{[Zt]:Qz}],[0,{[Zt]:iE}],[()=>_E,16],[1,{[L]:Bw}],[0,{[L]:Uw}],[0,{[L]:vE}],[0,{[L]:eu}],[0,{[L]:tu}],[0,{[L]:nu}],[0,{[L]:su}],[0,{[L]:ru}],[0,{[L]:ci}],[()=>xd,{[L]:wd}],[0,{[L]:li}],[0,{[L]:ri}],[0,{[L]:si}]],4],REe=[1,Ie,Pz,0,[()=>qwe,{[Hn]:Fn}]],CEe=[1,Ie,tSe,0,()=>Zwe],AEe=[1,Ie,nSe,0,()=>Qwe],TEe=[1,Ie,c_e,0,[()=>hEe,0]],n4=[1,Ie,Fz,0,[()=>_Ee,{[Hn]:qz}]],xCe=[9,Ie,Dve,{[Ar]:["DELETE","/{Key+}?x-id=AbortMultipartUpload",204]},()=>Fwe,()=>Vwe],RCe=[9,Ie,Nz,{[Ar]:["POST","/{Key+}",200]},()=>Xwe,()=>Ywe],CCe=[9,Ie,Hve,{[Ar]:["PUT","/",200]},()=>eEe,()=>Jwe],ACe=[9,Ie,Wve,{[Ar]:["POST","/{Key+}?uploads",200]},()=>nEe,()=>tEe],IEe=[9,Ie,uSe,{[Ar]:["GET","/?session",200]},()=>rEe,()=>sEe],TCe=[9,Ie,mSe,{[Ar]:["DELETE","/{Key+}?x-id=DeleteObject",204]},()=>iEe,()=>oEe],ICe=[9,Ie,vSe,{[bg]:"-",[Ar]:["GET","/{Key+}?x-id=GetObject",200]},()=>cEe,()=>aEe],OEe=[9,Ie,USe,{[Ar]:["GET","/?x-id=ListBuckets",200]},()=>uEe,()=>lEe],MEe=[9,Ie,ZSe,{[Ar]:["GET","/?list-type=2",200]},()=>dEe,()=>fEe],OCe=[9,Ie,h_e,{[bg]:"-",[Ar]:["PUT","/{Key+}?x-id=PutObject",200]},()=>gEe,()=>mEe],MCe=[9,Ie,y_e,{[bg]:"-",[Ar]:["PUT","/{Key+}?tagging",200]},()=>bEe,()=>yEe],DCe=[9,Ie,B_e,{[bg]:"-",[Ar]:["PUT","/{Key+}?x-id=UploadPart",200]},()=>xEe,()=>EEe];class DEe extends Cs.classBuilder().ep({...dw,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions()),rw(r)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").sc(IEe).build(){}const kEe="3.995.0",PEe={version:kEe};function x2(e){return typeof e=="string"?e.length===0:e.byteLength===0}var s4={name:"SHA-1"},R2={name:"HMAC",hash:s4},NEe=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]),LEe=(function(){function e(t){this.toHash=new Uint8Array(0),t!==void 0&&(this.key=new Promise(function(n,r){Ji().crypto.subtle.importKey("raw",C2(t),R2,!1,["sign"]).then(n,r)}),this.key.catch(function(){}))}return e.prototype.update=function(t){if(!x2(t)){var n=C2(t),r=new Uint8Array(this.toHash.byteLength+n.byteLength);r.set(this.toHash,0),r.set(n,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(n){return Ji().crypto.subtle.sign(R2,n,t.toHash).then(function(r){return new Uint8Array(r)})}):x2(this.toHash)?Promise.resolve(NEe):Promise.resolve().then(function(){return Ji().crypto.subtle.digest(s4,t.toHash)}).then(function(n){return Promise.resolve(new Uint8Array(n))})},e.prototype.reset=function(){this.toHash=new Uint8Array(0)},e})();function C2(e){return typeof e=="string"?Vk(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var zEe=(function(){function e(t){if(Zk(Ji()))this.hash=new LEe(t);else throw new Error("SHA1 not supported")}return e.prototype.update=function(t,n){this.hash.update(lc(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();class If{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const n=new Uint8Array(8);for(let r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&A2(n),new If(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&A2(t),parseInt(_s(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}}function A2(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}class BEe{toUtf8;fromUtf8;constructor(t,n){this.toUtf8=t,this.fromUtf8=n}format(t){const n=[];for(const c of Object.keys(t)){const l=this.fromUtf8(c);n.push(Uint8Array.from([l.byteLength]),l,this.formatHeaderValue(t[c]))}const r=new Uint8Array(n.reduce((c,l)=>c+l.byteLength,0));let i=0;for(const c of n)r.set(c,i),i+=c.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":const c=new DataView(new ArrayBuffer(3+t.value.byteLength));c.setUint8(0,6),c.setUint16(1,t.value.byteLength,!1);const l=new Uint8Array(c.buffer);return l.set(t.value,3),l;case"string":const f=this.fromUtf8(t.value),d=new DataView(new ArrayBuffer(3+f.byteLength));d.setUint8(0,7),d.setUint16(1,f.byteLength,!1);const p=new Uint8Array(d.buffer);return p.set(f,3),p;case"timestamp":const b=new Uint8Array(9);return b[0]=8,b.set(If.fromNumber(t.value.valueOf()).bytes,1),b;case"uuid":if(!ZEe.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const g=new Uint8Array(17);return g[0]=9,g.set($D(t.value.replace(/\-/g,"")),1),g}}parse(t){const n={};let r=0;for(;r{if(typeof f!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+f);t=f,n=4,r=new Uint8Array(f),new DataView(r.buffer).setUint32(0,f,!1)},l=async function*(){const f=e[Symbol.asyncIterator]();for(;;){const{value:d,done:p}=await f.next();if(p){if(t)if(t===n)yield r;else throw new Error("Truncated event message received.");else return;return}const b=d.length;let g=0;for(;g({[Symbol.asyncIterator]:async function*(){const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}}),oxe=e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(n){const{done:r,value:i}=await t.next();if(r)return n.close();n.enqueue(i)}})};class ixe{universalMarshaller;constructor({utf8Encoder:t,utf8Decoder:n}){this.universalMarshaller=new sxe({utf8Decoder:n,utf8Encoder:t})}deserialize(t,n){const r=axe(t)?rxe(t):t;return this.universalMarshaller.deserialize(r,n)}serialize(t,n){const r=this.universalMarshaller.serialize(t,n);return typeof ReadableStream=="function"?oxe(r):r}}const axe=e=>typeof ReadableStream=="function"&&e instanceof ReadableStream,cxe=e=>new ixe(e);async function lxe(e,t,n=1024*1024){const r=e.size;let i=0;for(;i{r.update(i)}),r.digest()},Vi=64,fxe=16,dxe=[1732584193,4023233417,2562383102,271733878];class pxe{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(t){if(hxe(t))return;if(this.finished)throw new Error("Attempted to update an already finished hash.");const n=mxe(t);let r=0,{byteLength:i}=n;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,n[r++]),i--,this.bufferLength===Vi&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){const{buffer:n,bufferLength:r,bytesHashed:i}=this,c=i*8;if(n.setUint8(this.bufferLength++,128),r%Vi>=Vi-8){for(let l=this.bufferLength;l>>0,!0),n.setUint32(Vi-4,Math.floor(c/4294967296),!0),this.hashBuffer(),this.finished=!0}const t=new DataView(new ArrayBuffer(fxe));for(let n=0;n<4;n++)t.setUint32(n*4,this.state[n],!0);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}hashBuffer(){const{buffer:t,state:n}=this;let r=n[0],i=n[1],c=n[2],l=n[3];r=Xn(r,i,c,l,t.getUint32(0,!0),7,3614090360),l=Xn(l,r,i,c,t.getUint32(4,!0),12,3905402710),c=Xn(c,l,r,i,t.getUint32(8,!0),17,606105819),i=Xn(i,c,l,r,t.getUint32(12,!0),22,3250441966),r=Xn(r,i,c,l,t.getUint32(16,!0),7,4118548399),l=Xn(l,r,i,c,t.getUint32(20,!0),12,1200080426),c=Xn(c,l,r,i,t.getUint32(24,!0),17,2821735955),i=Xn(i,c,l,r,t.getUint32(28,!0),22,4249261313),r=Xn(r,i,c,l,t.getUint32(32,!0),7,1770035416),l=Xn(l,r,i,c,t.getUint32(36,!0),12,2336552879),c=Xn(c,l,r,i,t.getUint32(40,!0),17,4294925233),i=Xn(i,c,l,r,t.getUint32(44,!0),22,2304563134),r=Xn(r,i,c,l,t.getUint32(48,!0),7,1804603682),l=Xn(l,r,i,c,t.getUint32(52,!0),12,4254626195),c=Xn(c,l,r,i,t.getUint32(56,!0),17,2792965006),i=Xn(i,c,l,r,t.getUint32(60,!0),22,1236535329),r=Wn(r,i,c,l,t.getUint32(4,!0),5,4129170786),l=Wn(l,r,i,c,t.getUint32(24,!0),9,3225465664),c=Wn(c,l,r,i,t.getUint32(44,!0),14,643717713),i=Wn(i,c,l,r,t.getUint32(0,!0),20,3921069994),r=Wn(r,i,c,l,t.getUint32(20,!0),5,3593408605),l=Wn(l,r,i,c,t.getUint32(40,!0),9,38016083),c=Wn(c,l,r,i,t.getUint32(60,!0),14,3634488961),i=Wn(i,c,l,r,t.getUint32(16,!0),20,3889429448),r=Wn(r,i,c,l,t.getUint32(36,!0),5,568446438),l=Wn(l,r,i,c,t.getUint32(56,!0),9,3275163606),c=Wn(c,l,r,i,t.getUint32(12,!0),14,4107603335),i=Wn(i,c,l,r,t.getUint32(32,!0),20,1163531501),r=Wn(r,i,c,l,t.getUint32(52,!0),5,2850285829),l=Wn(l,r,i,c,t.getUint32(8,!0),9,4243563512),c=Wn(c,l,r,i,t.getUint32(28,!0),14,1735328473),i=Wn(i,c,l,r,t.getUint32(48,!0),20,2368359562),r=Jn(r,i,c,l,t.getUint32(20,!0),4,4294588738),l=Jn(l,r,i,c,t.getUint32(32,!0),11,2272392833),c=Jn(c,l,r,i,t.getUint32(44,!0),16,1839030562),i=Jn(i,c,l,r,t.getUint32(56,!0),23,4259657740),r=Jn(r,i,c,l,t.getUint32(4,!0),4,2763975236),l=Jn(l,r,i,c,t.getUint32(16,!0),11,1272893353),c=Jn(c,l,r,i,t.getUint32(28,!0),16,4139469664),i=Jn(i,c,l,r,t.getUint32(40,!0),23,3200236656),r=Jn(r,i,c,l,t.getUint32(52,!0),4,681279174),l=Jn(l,r,i,c,t.getUint32(0,!0),11,3936430074),c=Jn(c,l,r,i,t.getUint32(12,!0),16,3572445317),i=Jn(i,c,l,r,t.getUint32(24,!0),23,76029189),r=Jn(r,i,c,l,t.getUint32(36,!0),4,3654602809),l=Jn(l,r,i,c,t.getUint32(48,!0),11,3873151461),c=Jn(c,l,r,i,t.getUint32(60,!0),16,530742520),i=Jn(i,c,l,r,t.getUint32(8,!0),23,3299628645),r=es(r,i,c,l,t.getUint32(0,!0),6,4096336452),l=es(l,r,i,c,t.getUint32(28,!0),10,1126891415),c=es(c,l,r,i,t.getUint32(56,!0),15,2878612391),i=es(i,c,l,r,t.getUint32(20,!0),21,4237533241),r=es(r,i,c,l,t.getUint32(48,!0),6,1700485571),l=es(l,r,i,c,t.getUint32(12,!0),10,2399980690),c=es(c,l,r,i,t.getUint32(40,!0),15,4293915773),i=es(i,c,l,r,t.getUint32(4,!0),21,2240044497),r=es(r,i,c,l,t.getUint32(32,!0),6,1873313359),l=es(l,r,i,c,t.getUint32(60,!0),10,4264355552),c=es(c,l,r,i,t.getUint32(24,!0),15,2734768916),i=es(i,c,l,r,t.getUint32(52,!0),21,1309151649),r=es(r,i,c,l,t.getUint32(16,!0),6,4149444226),l=es(l,r,i,c,t.getUint32(44,!0),10,3174756917),c=es(c,l,r,i,t.getUint32(8,!0),15,718787259),i=es(i,c,l,r,t.getUint32(36,!0),21,3951481745),n[0]=r+n[0]&4294967295,n[1]=i+n[1]&4294967295,n[2]=c+n[2]&4294967295,n[3]=l+n[3]&4294967295}reset(){this.state=Uint32Array.from(dxe),this.buffer=new DataView(new ArrayBuffer(Vi)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}}function vg(e,t,n,r,i,c){return t=(t+e&4294967295)+(r+c&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function Xn(e,t,n,r,i,c,l){return vg(t&n|~t&r,e,t,i,c,l)}function Wn(e,t,n,r,i,c,l){return vg(t&r|n&~r,e,t,i,c,l)}function Jn(e,t,n,r,i,c,l){return vg(t^n^r,e,t,i,c,l)}function es(e,t,n,r,i,c,l){return vg(n^(t|~r),e,t,i,c,l)}function hxe(e){return typeof e=="string"?e.length===0:e.byteLength===0}function mxe(e){return typeof e=="string"?Ho(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}const gxe=e=>({apiVersion:"2006-03-01",base64Decoder:e?.base64Decoder??cc,base64Encoder:e?.base64Encoder??ea,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Iz,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??uQ,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Ave,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new PS},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new HY}],logger:e?.logger??new NS,protocol:e?.protocol??PX,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:Hwe,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:e?.sdkStreamMixin??UD,serviceId:e?.serviceId??"S3",signerConstructor:e?.signerConstructor??dz,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??jf,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??Ho,utf8Encoder:e?.utf8Encoder??pc}),yxe=e=>{const t=Xk(e),n=()=>t().then(_k),r=gxe(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??vk,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Qk({serviceId:r.serviceId,clientVersion:PEe.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??cxe,maxAttempts:e?.maxAttempts??Hf,md5:e?.md5??pxe,region:e?.region??Yk("Region is missing"),requestHandler:Bm.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||zk),sha1:e?.sha1??zEe,sha256:e?.sha256??Kk,streamCollector:e?.streamCollector??RS,streamHasher:e?.streamHasher??uxe,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(Tk)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(Ik))}},bxe=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(i){const c=t.findIndex(l=>l.schemeId===i.schemeId);c===-1?t.push(i):t.splice(c,1,i)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(i){n=i},httpAuthSchemeProvider(){return n},setCredentials(i){r=i},credentials(){return r}}},vxe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Sxe=(e,t)=>{const n=Object.assign(nz(e),wk(e),ID(e),bxe(e));return t.forEach(r=>r.configure(n)),Object.assign(e,sz(n),Ek(n),OD(n),vxe(n))};class _xe extends Sk{config;constructor(...[t]){const n=yxe(t||{});super(n),this.initConfig=n;const r=Ive(n),i=XD(r),c=Dbe(i),l=jk(c),f=Mk(l),d=f,p=Lk(d),b=cve(p),g=Tve(b),v=Ybe(g,{session:[()=>this,DEe]}),S=Sxe(v,t?.extensions||[]);this.config=S,this.middlewareStack.use(HD(this.config)),this.middlewareStack.use(Ak(this.config)),this.middlewareStack.use(Hk(this.config)),this.middlewareStack.use(Dk(this.config)),this.middlewareStack.use(MD(this.config)),this.middlewareStack.use(DD(this.config)),this.middlewareStack.use(kD(this.config)),this.middlewareStack.use(PD(this.config,{httpAuthSchemeParametersProvider:xve,identityProviderConfigProvider:async w=>new QD({"aws.auth#sigv4":w.credentials,"aws.auth#sigv4a":w.credentials})})),this.middlewareStack.use(LD(this.config)),this.middlewareStack.use(ave(this.config)),this.middlewareStack.use(Abe(this.config)),this.middlewareStack.use(zbe(this.config)),this.middlewareStack.use(Fbe(this.config)),this.middlewareStack.use(Qbe(this.config))}destroy(){super.destroy()}}class wxe extends Cs.classBuilder().ep(dw).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions()),rw(r)]}).s("AmazonS3","ListBuckets",{}).n("S3Client","ListBucketsCommand").sc(OEe).build(){}class Exe extends Cs.classBuilder().ep({...dw,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions()),rw(r)]}).s("AmazonS3","ListObjectsV2",{}).n("S3Client","ListObjectsV2Command").sc(MEe).build(){}let Rh=null,bf=null;function qn(){if(!Rh){const e=zm();if(!e)throw new Error("AWS credentials not configured");Rh=new _be({endpoint:"https://localhost:9999",region:"ap-southeast-2",credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}})}return Rh}function o4(){if(!bf){const e=zm();if(!e)throw new Error("AWS credentials not configured");bf=new _xe({endpoint:"https://localhost:8443",region:"ap-southeast-2",credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey},forcePathStyle:!0}),bf.middlewareStack.use({applyToStack:t=>{t.add(n=>r=>{const i=r.request;return i?.path?.endsWith("/")&&i.path!=="/"&&(i.path=i.path.slice(0,-1)),n(r)},{step:"build",name:"removeTrailingSlash"})}})}return bf}function xxe(){Rh=null,bf=null}function i4(){const e=kt.c(82);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:Rxe},e[0]=t):t=e[0];const n=f8(t),r=vm(),i=B2();let c;e[1]!==r||e[2]!==i?(c=function(){GK(),xxe(),i.clear(),r({to:"/login"})},e[1]=r,e[2]=i,e[3]=c):c=e[3];const l=c;let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=N.jsx(rh,{children:"General"}),e[4]=f):f=e[4];const d=n==="/";let p,b;e[5]===Symbol.for("react.memo_cache_sentinel")?(p=N.jsx(i5,{className:"size-4"}),b=N.jsx("span",{children:"Dashboard"}),e[5]=p,e[6]=b):(p=e[5],b=e[6]);let g;e[7]!==d?(g=N.jsxs(sh,{children:[f,N.jsx(uf,{children:N.jsx(Hr,{children:N.jsx($s,{to:"/",children:N.jsxs(Vr,{isActive:d,tooltip:"Dashboard",children:[p,b]})})})})]}),e[7]=d,e[8]=g):g=e[8];let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=N.jsx(rh,{children:"EC2"}),e[9]=v):v=e[9];let S;e[10]!==n?(S=n.startsWith("/ec2/describe-instances")||n.startsWith("/ec2/run-instances"),e[10]=n,e[11]=S):S=e[11];let w,E;e[12]===Symbol.for("react.memo_cache_sentinel")?(E=N.jsx(lA,{className:"size-4"}),w=N.jsx("span",{children:"Instances"}),e[12]=w,e[13]=E):(w=e[12],E=e[13]);let R;e[14]!==S?(R=N.jsx(Hr,{children:N.jsx($s,{to:"/ec2/describe-instances",children:N.jsxs(Vr,{isActive:S,tooltip:"EC2 Instances",children:[E,w]})})}),e[14]=S,e[15]=R):R=e[15];let C;e[16]!==n?(C=n.startsWith("/ec2/describe-images"),e[16]=n,e[17]=C):C=e[17];let O,k;e[18]===Symbol.for("react.memo_cache_sentinel")?(O=N.jsx(c5,{className:"size-4"}),k=N.jsx("span",{children:"Images"}),e[18]=O,e[19]=k):(O=e[18],k=e[19]);let T;e[20]!==C?(T=N.jsx(Hr,{children:N.jsx($s,{to:"/ec2/describe-images",children:N.jsxs(Vr,{isActive:C,tooltip:"Images",children:[O,k]})})}),e[20]=C,e[21]=T):T=e[21];let $;e[22]!==n?($=n.startsWith("/ec2/describe-key-pairs"),e[22]=n,e[23]=$):$=e[23];let j,H;e[24]===Symbol.for("react.memo_cache_sentinel")?(j=N.jsx(u5,{className:"size-4"}),H=N.jsx("span",{children:"Key Pairs"}),e[24]=j,e[25]=H):(j=e[24],H=e[25]);let P;e[26]!==$?(P=N.jsx(Hr,{children:N.jsx($s,{to:"/ec2/describe-key-pairs",children:N.jsxs(Vr,{isActive:$,tooltip:"Key Pairs",children:[j,H]})})}),e[26]=$,e[27]=P):P=e[27];let Y;e[28]!==n?(Y=n.startsWith("/ec2/describe-volumes")||n.startsWith("/ec2/create-volume")||n.startsWith("/ec2/modify-volume"),e[28]=n,e[29]=Y):Y=e[29];let ne,re;e[30]===Symbol.for("react.memo_cache_sentinel")?(ne=N.jsx(r5,{className:"size-4"}),re=N.jsx("span",{children:"Volumes"}),e[30]=ne,e[31]=re):(ne=e[30],re=e[31]);let G;e[32]!==Y?(G=N.jsx(Hr,{children:N.jsx($s,{to:"/ec2/describe-volumes",children:N.jsxs(Vr,{isActive:Y,tooltip:"Volumes",children:[ne,re]})})}),e[32]=Y,e[33]=G):G=e[33];let te;e[34]!==n?(te=n.startsWith("/ec2/describe-snapshots")||n.startsWith("/ec2/create-snapshot"),e[34]=n,e[35]=te):te=e[35];let ue,ye;e[36]===Symbol.for("react.memo_cache_sentinel")?(ue=N.jsx(e5,{className:"size-4"}),ye=N.jsx("span",{children:"Snapshots"}),e[36]=ue,e[37]=ye):(ue=e[36],ye=e[37]);let V;e[38]!==te?(V=N.jsx(Hr,{children:N.jsx($s,{to:"/ec2/describe-snapshots",children:N.jsxs(Vr,{isActive:te,tooltip:"Snapshots",children:[ue,ye]})})}),e[38]=te,e[39]=V):V=e[39];let oe;e[40]!==R||e[41]!==T||e[42]!==P||e[43]!==G||e[44]!==V?(oe=N.jsxs(sh,{children:[v,N.jsxs(uf,{children:[R,T,P,G,V]})]}),e[40]=R,e[41]=T,e[42]=P,e[43]=G,e[44]=V,e[45]=oe):oe=e[45];let J;e[46]===Symbol.for("react.memo_cache_sentinel")?(J=N.jsx(rh,{children:"Networking"}),e[46]=J):J=e[46];let ve;e[47]!==n?(ve=n.startsWith("/ec2/describe-vpcs")||n.startsWith("/ec2/create-vpc"),e[47]=n,e[48]=ve):ve=e[48];let fe,B;e[49]===Symbol.for("react.memo_cache_sentinel")?(fe=N.jsx(b5,{className:"size-4"}),B=N.jsx("span",{children:"VPCs"}),e[49]=fe,e[50]=B):(fe=e[49],B=e[50]);let ee;e[51]!==ve?(ee=N.jsx(Hr,{children:N.jsx($s,{to:"/ec2/describe-vpcs",children:N.jsxs(Vr,{isActive:ve,tooltip:"VPCs",children:[fe,B]})})}),e[51]=ve,e[52]=ee):ee=e[52];let ge;e[53]!==n?(ge=n.startsWith("/ec2/describe-subnets")||n.startsWith("/ec2/create-subnet"),e[53]=n,e[54]=ge):ge=e[54];let be,xe;e[55]===Symbol.for("react.memo_cache_sentinel")?(be=N.jsx(d5,{className:"size-4"}),xe=N.jsx("span",{children:"Subnets"}),e[55]=be,e[56]=xe):(be=e[55],xe=e[56]);let _e;e[57]!==ge?(_e=N.jsx(Hr,{children:N.jsx($s,{to:"/ec2/describe-subnets",children:N.jsxs(Vr,{isActive:ge,tooltip:"Subnets",children:[be,xe]})})}),e[57]=ge,e[58]=_e):_e=e[58];let Te;e[59]!==ee||e[60]!==_e?(Te=N.jsxs(sh,{children:[J,N.jsxs(uf,{children:[ee,_e]})]}),e[59]=ee,e[60]=_e,e[61]=Te):Te=e[61];let Fe;e[62]===Symbol.for("react.memo_cache_sentinel")?(Fe=N.jsx(rh,{children:"S3"}),e[62]=Fe):Fe=e[62];let Se;e[63]!==n?(Se=n.startsWith("/s3/ls"),e[63]=n,e[64]=Se):Se=e[64];let Xe,_t;e[65]===Symbol.for("react.memo_cache_sentinel")?(Xe=N.jsx(lA,{className:"size-4"}),_t=N.jsx("span",{children:"Buckets"}),e[65]=Xe,e[66]=_t):(Xe=e[65],_t=e[66]);let me;e[67]!==Se?(me=N.jsxs(sh,{children:[Fe,N.jsx(uf,{children:N.jsx(Hr,{children:N.jsx($s,{to:"/s3/ls",children:N.jsxs(Vr,{isActive:Se,tooltip:"Buckets",children:[Xe,_t]})})})})]}),e[67]=Se,e[68]=me):me=e[68];let Ee;e[69]!==oe||e[70]!==Te||e[71]!==me||e[72]!==g?(Ee=N.jsxs(aF,{children:[g,oe,Te,me]}),e[69]=oe,e[70]=Te,e[71]=me,e[72]=g,e[73]=Ee):Ee=e[73];let we,qe;e[74]===Symbol.for("react.memo_cache_sentinel")?(we=N.jsx(h5,{className:"size-4"}),qe=N.jsx("span",{children:"Sign out"}),e[74]=we,e[75]=qe):(we=e[74],qe=e[75]);let Oe;e[76]!==l?(Oe=N.jsx(iF,{children:N.jsx(uf,{children:N.jsx(Hr,{children:N.jsxs(Vr,{onClick:l,tooltip:"Sign out",children:[we,qe]})})})}),e[76]=l,e[77]=Oe):Oe=e[77];let je;e[78]===Symbol.for("react.memo_cache_sentinel")?(je=N.jsx(oF,{}),e[78]=je):je=e[78];let De;return e[79]!==Ee||e[80]!==Oe?(De=N.jsxs(sF,{collapsible:"icon",children:[Ee,Oe,je]}),e[79]=Ee,e[80]=Oe,e[81]=De):De=e[81],De}function Rxe(e){return e.pathname}function Cxe(e){const t=kt.c(18),{error:n,reset:r}=e,i=ns(),c=B2();let l;t[0]!==c||t[1]!==r||t[2]!==i?(l=function(){c.invalidateQueries(),r(),i.invalidate()},t[0]=c,t[1]=r,t[2]=i,t[3]=l):l=t[3];const f=l;let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=N.jsx(i4,{}),t[4]=d):d=t[4];let p;t[5]===Symbol.for("react.memo_cache_sentinel")?(p=N.jsx(JM,{}),t[5]=p):p=t[5];let b,g;t[6]===Symbol.for("react.memo_cache_sentinel")?(b=N.jsx("div",{className:"flex justify-center",children:N.jsx(n5,{className:"size-12 text-destructive"})}),g=N.jsx("h1",{className:"font-semibold text-2xl",children:"Something went wrong"}),t[6]=b,t[7]=g):(b=t[6],g=t[7]);const v=n.message||"An unexpected error occurred";let S;t[8]!==v?(S=N.jsx("p",{className:"text-muted-foreground",children:v}),t[8]=v,t[9]=S):S=t[9];let w;t[10]!==f?(w=N.jsx(Tl,{onClick:f,variant:"default",children:"Try Again"}),t[10]=f,t[11]=w):w=t[11];let E;t[12]===Symbol.for("react.memo_cache_sentinel")?(E=N.jsx($s,{to:"/",children:N.jsx(Tl,{variant:"outline",children:"Go Home"})}),t[12]=E):E=t[12];let R;t[13]!==w?(R=N.jsxs("div",{className:"flex justify-center gap-2",children:[w,E]}),t[13]=w,t[14]=R):R=t[14];let C;return t[15]!==R||t[16]!==S?(C=N.jsxs(N.Fragment,{children:[d,N.jsxs("main",{className:"flex flex-1 flex-col",children:[p,N.jsx("div",{className:"flex flex-1 items-center justify-center p-6 pt-0",children:N.jsxs("div",{className:"max-w-md space-y-4 text-center",children:[b,g,S,R]})})]})]}),t[15]=R,t[16]=S,t[17]=C):C=t[17],C}const wE=XU()({head:()=>({meta:[{title:"Mulga"}]}),component:()=>N.jsxs(N.Fragment,{children:[N.jsx(g8,{}),N.jsx(i4,{}),N.jsxs("main",{className:"flex flex-1 flex-col",children:[N.jsx(JM,{}),N.jsx("div",{className:"flex flex-1 flex-col p-8",children:N.jsx(lO,{})})]})]}),errorComponent:Cxe,notFoundComponent:uF}),Axe=()=>xt(()=>import("./login.js"),__vite__mapDeps([0,1,2,3])),Txe=St("/login")({beforeLoad:()=>{if(zm())throw Fv({to:"/"})},component:At(Axe,"component")}),Ixe=()=>xt(()=>import("./route.js"),[]),Oxe=St("/_auth")({beforeLoad:()=>{if(!zm())throw Fv({to:"/login"})},component:At(Ixe,"component")}),a4={queryKey:["ec2","availabilityZones"],queryFn:()=>{const e=new wbe({});return qn().send(e)},staleTime:3e5},c4={queryKey:["ec2","instances"],queryFn:()=>{const e=new oz({});return qn().send(e)}},Mxe=e=>({queryKey:["ec2","instances",e],queryFn:()=>{const t=new oz({InstanceIds:[e]});return qn().send(t)}}),l4={queryKey:["ec2","instances","types"],queryFn:()=>{const e=new Ebe({Filters:[{Name:"capacity",Values:["true"]}]});return qn().send(e)}},u4={queryKey:["ec2","images"],queryFn:()=>{const e=new rz({});return qn().send(e)}},f4=e=>({queryKey:["ec2","images",e??"none"],queryFn:()=>{if(!e)return{Images:[],$metadata:{}};const t=new rz({ImageIds:[e]});return qn().send(t)}}),d4={queryKey:["ec2","keypairs"],queryFn:()=>{const e=new iz({});return qn().send(e)}},Dxe=e=>({queryKey:["ec2","keypairs",e],queryFn:()=>{const t=new iz({KeyPairIds:[e]});return qn().send(t)}}),p4={queryKey:["ec2","regions"],queryFn:()=>{const e=new xbe({});return qn().send(e)},staleTime:3e5},EE={queryKey:["ec2","subnets"],queryFn:()=>{const e=new cz({});return qn().send(e)}},kxe=e=>({queryKey:["ec2","subnets",e],queryFn:()=>{const t=new cz({SubnetIds:[e]});return qn().send(t)}}),Pxe={queryKey:["ec2","snapshots"],queryFn:()=>{const e=new az({});return qn().send(e)}},Nxe=e=>({queryKey:["ec2","snapshots",e],queryFn:()=>{const t=new az({SnapshotIds:[e]});return qn().send(t)}}),h4={queryKey:["ec2","vpcs"],queryFn:()=>{const e=new uz({});return qn().send(e)}},Lxe=e=>({queryKey:["ec2","vpcs",e],queryFn:()=>{const t=new uz({VpcIds:[e]});return qn().send(t)}}),m4={queryKey:["ec2","volumes"],queryFn:()=>{const e=new lz({});return qn().send(e)}},g4=e=>({queryKey:["ec2","volumes",e],queryFn:()=>{const t=new lz({VolumeIds:[e]});return qn().send(t)}}),zxe=()=>xt(()=>import("./index3.js"),__vite__mapDeps([4,5,6])),Bxe=St("/_auth/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(p4)},head:()=>({meta:[{title:"Dashboard | Mulga"}]}),component:At(zxe,"component")}),$xe={queryKey:["s3","buckets"],queryFn:async()=>{try{const e=new wxe({});return await o4().send(e)}catch{throw new Error("Failed to fetch S3 buckets")}}},y4=(e,t)=>({queryKey:["s3","buckets",e,"objects",t??""],queryFn:async()=>{try{const n=new Exe({Bucket:e,Prefix:t,Delimiter:"/"});return await o4().send(n)}catch{throw new Error("Failed to fetch S3 bucket objects")}}}),Uxe=()=>xt(()=>import("./index4.js"),__vite__mapDeps([7,5,8,6])),jxe=St("/_auth/s3/ls/")({head:()=>({meta:[{title:"Buckets | S3 | Mulga"}]}),loader:async({context:e})=>{await e.queryClient.ensureQueryData($xe)},component:At(Uxe,"component")}),Hxe=()=>xt(()=>import("./create-bucket.js"),__vite__mapDeps([9,1,10,11,6,2,3,12])),Vxe=St("/_auth/s3/(buckets)/create-bucket")({head:()=>({meta:[{title:"Create Bucket | S3 | Mulga"}]}),component:At(Hxe,"component")}),Fxe=()=>xt(()=>import("./create-vpc.js"),__vite__mapDeps([13,1,10,11,6,2,3,14,15])),qxe=St("/_auth/ec2/(vpc)/create-vpc")({head:()=>({meta:[{title:"Create VPC | EC2 | Mulga"}]}),component:At(Fxe,"component")}),Gxe=()=>xt(()=>import("./create-volume.js"),__vite__mapDeps([16,1,5,10,11,6,2,3,17,18,14,15])),Zxe=St("/_auth/ec2/(volumes)/create-volume")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(a4)},head:()=>({meta:[{title:"Create Volume | EC2 | Mulga"}]}),component:At(Gxe,"component")}),Kxe=()=>xt(()=>import("./create-subnet.js"),__vite__mapDeps([19,1,5,10,11,6,2,3,17,18,14,15])),Qxe=St("/_auth/ec2/(subnet)/create-subnet")({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(h4),e.queryClient.ensureQueryData(a4)])},head:()=>({meta:[{title:"Create Subnet | EC2 | Mulga"}]}),component:At(Kxe,"component")}),Yxe=()=>xt(()=>import("./create-snapshot.js"),__vite__mapDeps([20,1,5,10,11,6,2,17,18,21,14,15])),Xxe=St("/_auth/ec2/(snapshots)/create-snapshot")({validateSearch:e=>({volumeId:typeof e.volumeId=="string"?e.volumeId:void 0}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(m4)},head:()=>({meta:[{title:"Create Snapshot | EC2 | Mulga"}]}),component:At(Yxe,"component")}),Wxe=()=>xt(()=>import("./import-key-pair.js"),__vite__mapDeps([22,1,10,11,6,2,3,21,14,15])),Jxe=St("/_auth/ec2/(key)/import-key-pair")({head:()=>({meta:[{title:"Import Key Pair | EC2 | Mulga"}]}),component:At(Wxe,"component")}),e1e=()=>xt(()=>import("./create-key-pair.js"),__vite__mapDeps([23,1,10,11,6,2,3,14,15,24,21,18,25])),t1e=St("/_auth/ec2/(key)/create-key-pair")({head:()=>({meta:[{title:"Create Key Pair | EC2 | Mulga"}]}),component:At(e1e,"component")}),n1e=()=>xt(()=>import("./run-instances.js"),__vite__mapDeps([26,1,5,10,11,6,2,3,17,18,14,15])),s1e=St("/_auth/ec2/(instances)/run-instances")({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(u4),e.queryClient.ensureQueryData(d4),e.queryClient.ensureQueryData(l4),e.queryClient.ensureQueryData(EE)])},head:()=>({meta:[{title:"Run Instances | EC2 | Mulga"}]}),component:At(n1e,"component")}),r1e=()=>xt(()=>import("./route2.js"),[]),o1e=St("/_auth/s3/ls/$bucket")({component:At(r1e,"component")}),i1e=()=>xt(()=>import("./index5.js"),__vite__mapDeps([27,5,10,11,6,12,28,24,25,29])),a1e=St("/_auth/s3/ls/$bucket/")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(y4(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:At(i1e,"component")}),c1e=()=>xt(()=>import("./index6.js"),__vite__mapDeps([30,5,8,6,31])),l1e=St("/_auth/ec2/(vpc)/describe-vpcs/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(h4)},head:()=>({meta:[{title:"VPCs | EC2 | Mulga"}]}),component:At(c1e,"component")}),u1e=()=>xt(()=>import("./index7.js"),__vite__mapDeps([32,5,8,6,31])),f1e=St("/_auth/ec2/(volumes)/describe-volumes/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(m4)},head:()=>({meta:[{title:"Volumes | EC2 | Mulga"}]}),component:At(u1e,"component")}),d1e=()=>xt(()=>import("./index8.js"),__vite__mapDeps([33,5,8,6,31])),p1e=St("/_auth/ec2/(subnet)/describe-subnets/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(EE)},head:()=>({meta:[{title:"Subnets | EC2 | Mulga"}]}),component:At(d1e,"component")}),h1e=()=>xt(()=>import("./index9.js"),__vite__mapDeps([34,5,8,6,31])),m1e=St("/_auth/ec2/(snapshots)/describe-snapshots/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Pxe)},head:()=>({meta:[{title:"Snapshots | EC2 | Mulga"}]}),component:At(h1e,"component")}),g1e=()=>xt(()=>import("./index10.js"),__vite__mapDeps([35,5,8,6])),y1e=St("/_auth/ec2/(key)/describe-key-pairs/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(d4)},head:()=>({meta:[{title:"Key Pairs | EC2 | Mulga"}]}),component:At(g1e,"component")}),b1e=()=>xt(()=>import("./index11.js"),__vite__mapDeps([36,5,8,6,31])),v1e=St("/_auth/ec2/(instances)/describe-instances/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(c4)},head:()=>({meta:[{title:"Instances | EC2 | Mulga"}]}),component:At(b1e,"component")}),S1e=()=>xt(()=>import("./index12.js"),__vite__mapDeps([37,5,8,6,31])),_1e=St("/_auth/ec2/(images)/describe-images/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(u4)},head:()=>({meta:[{title:"Images | EC2 | Mulga"}]}),component:At(S1e,"component")}),w1e=()=>xt(()=>import("./_.js"),__vite__mapDeps([38,5,10,11,12,28,24,25,29])),E1e=St("/_auth/s3/ls/$bucket/$")({loader:async({context:e,params:t})=>{const n=Nj(t._splat||"");await e.queryClient.ensureQueryData(y4(t.bucket,n))},head:({params:e})=>({meta:[{title:`${Lj(e._splat||"",`${e.bucket}/`)} | S3 | Mulga`}]}),component:At(w1e,"component")}),x1e=()=>xt(()=>import("./_id.js"),__vite__mapDeps([39,5,10,40,11,6,31,24,14,29])),R1e=St("/_auth/ec2/(vpc)/describe-vpcs/$id")({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Lxe(t.id)),e.queryClient.ensureQueryData(EE)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:At(x1e,"component")}),C1e=()=>xt(()=>import("./_id2.js"),__vite__mapDeps([41,1,5,10,11,6,2,3,14,15])),A1e=St("/_auth/ec2/(volumes)/modify-volume/$id")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(g4(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:At(C1e,"component")}),T1e=()=>xt(()=>import("./_id3.js"),__vite__mapDeps([42,5,10,40,11,6,31,24,2,3,17,18,14,29])),I1e=St("/_auth/ec2/(volumes)/describe-volumes/$id")({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(g4(t.id)),e.queryClient.ensureQueryData(c4)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:At(T1e,"component")}),O1e=()=>xt(()=>import("./_id4.js"),__vite__mapDeps([43,5,10,40,11,6,31,24,14,29])),M1e=St("/_auth/ec2/(subnet)/describe-subnets/$id")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(kxe(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:At(O1e,"component")}),D1e=()=>xt(()=>import("./_id5.js"),__vite__mapDeps([44,5,10,40,11,6,31,24,2,3,14,29])),k1e=St("/_auth/ec2/(snapshots)/describe-snapshots/$id")({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Nxe(t.id)),e.queryClient.ensureQueryData(p4)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:At(D1e,"component")}),P1e=()=>xt(()=>import("./_id6.js"),__vite__mapDeps([45,5,10,40,11,6,24,14,29])),N1e=St("/_auth/ec2/(key)/describe-key-pairs/$id")({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(Dxe(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??"Key Pair"} | EC2 | Mulga`}]}),component:At(P1e,"component")}),L1e=()=>xt(()=>import("./_id7.js"),__vite__mapDeps([46,5,10,40,11,6,31,24,2,17,18,14,47,3,21,29])),z1e=St("/_auth/ec2/(instances)/describe-instances/$id")({loader:async({context:e,params:t})=>{const n=await e.queryClient.ensureQueryData(Mxe(t.id)),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await Promise.all([e.queryClient.ensureQueryData(f4(r)),e.queryClient.ensureQueryData(l4)]),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??"Instance"} | EC2 | Mulga`}]}),component:At(L1e,"component")}),B1e=()=>xt(()=>import("./_id8.js"),__vite__mapDeps([48,5,10,6,31,47,40])),$1e=St("/_auth/ec2/(images)/describe-images/$id")({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(f4(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??"Image"} | EC2 | Mulga`}]}),component:At(B1e,"component")}),U1e=Txe.update({id:"/login",path:"/login",getParentRoute:()=>wE}),Ht=Oxe.update({id:"/_auth",getParentRoute:()=>wE}),j1e=Bxe.update({id:"/",path:"/",getParentRoute:()=>Ht}),H1e=jxe.update({id:"/s3/ls/",path:"/s3/ls/",getParentRoute:()=>Ht}),V1e=Vxe.update({id:"/s3/(buckets)/create-bucket",path:"/s3/create-bucket",getParentRoute:()=>Ht}),F1e=qxe.update({id:"/ec2/(vpc)/create-vpc",path:"/ec2/create-vpc",getParentRoute:()=>Ht}),q1e=Zxe.update({id:"/ec2/(volumes)/create-volume",path:"/ec2/create-volume",getParentRoute:()=>Ht}),G1e=Qxe.update({id:"/ec2/(subnet)/create-subnet",path:"/ec2/create-subnet",getParentRoute:()=>Ht}),Z1e=Xxe.update({id:"/ec2/(snapshots)/create-snapshot",path:"/ec2/create-snapshot",getParentRoute:()=>Ht}),K1e=Jxe.update({id:"/ec2/(key)/import-key-pair",path:"/ec2/import-key-pair",getParentRoute:()=>Ht}),Q1e=t1e.update({id:"/ec2/(key)/create-key-pair",path:"/ec2/create-key-pair",getParentRoute:()=>Ht}),Y1e=s1e.update({id:"/ec2/(instances)/run-instances",path:"/ec2/run-instances",getParentRoute:()=>Ht}),xE=o1e.update({id:"/s3/ls/$bucket",path:"/s3/ls/$bucket",getParentRoute:()=>Ht}),X1e=a1e.update({id:"/",path:"/",getParentRoute:()=>xE}),W1e=l1e.update({id:"/ec2/(vpc)/describe-vpcs/",path:"/ec2/describe-vpcs/",getParentRoute:()=>Ht}),J1e=f1e.update({id:"/ec2/(volumes)/describe-volumes/",path:"/ec2/describe-volumes/",getParentRoute:()=>Ht}),eRe=p1e.update({id:"/ec2/(subnet)/describe-subnets/",path:"/ec2/describe-subnets/",getParentRoute:()=>Ht}),tRe=m1e.update({id:"/ec2/(snapshots)/describe-snapshots/",path:"/ec2/describe-snapshots/",getParentRoute:()=>Ht}),nRe=y1e.update({id:"/ec2/(key)/describe-key-pairs/",path:"/ec2/describe-key-pairs/",getParentRoute:()=>Ht}),sRe=v1e.update({id:"/ec2/(instances)/describe-instances/",path:"/ec2/describe-instances/",getParentRoute:()=>Ht}),rRe=_1e.update({id:"/ec2/(images)/describe-images/",path:"/ec2/describe-images/",getParentRoute:()=>Ht}),oRe=E1e.update({id:"/$",path:"/$",getParentRoute:()=>xE}),iRe=R1e.update({id:"/ec2/(vpc)/describe-vpcs/$id",path:"/ec2/describe-vpcs/$id",getParentRoute:()=>Ht}),aRe=A1e.update({id:"/ec2/(volumes)/modify-volume/$id",path:"/ec2/modify-volume/$id",getParentRoute:()=>Ht}),cRe=I1e.update({id:"/ec2/(volumes)/describe-volumes/$id",path:"/ec2/describe-volumes/$id",getParentRoute:()=>Ht}),lRe=M1e.update({id:"/ec2/(subnet)/describe-subnets/$id",path:"/ec2/describe-subnets/$id",getParentRoute:()=>Ht}),uRe=k1e.update({id:"/ec2/(snapshots)/describe-snapshots/$id",path:"/ec2/describe-snapshots/$id",getParentRoute:()=>Ht}),fRe=N1e.update({id:"/ec2/(key)/describe-key-pairs/$id",path:"/ec2/describe-key-pairs/$id",getParentRoute:()=>Ht}),dRe=z1e.update({id:"/ec2/(instances)/describe-instances/$id",path:"/ec2/describe-instances/$id",getParentRoute:()=>Ht}),pRe=$1e.update({id:"/ec2/(images)/describe-images/$id",path:"/ec2/describe-images/$id",getParentRoute:()=>Ht}),hRe={AuthS3LsBucketSplatRoute:oRe,AuthS3LsBucketIndexRoute:X1e},mRe=xE._addFileChildren(hRe),gRe={AuthIndexRoute:j1e,AuthS3LsBucketRouteRoute:mRe,AuthEc2instancesRunInstancesRoute:Y1e,AuthEc2keyCreateKeyPairRoute:Q1e,AuthEc2keyImportKeyPairRoute:K1e,AuthEc2snapshotsCreateSnapshotRoute:Z1e,AuthEc2subnetCreateSubnetRoute:G1e,AuthEc2volumesCreateVolumeRoute:q1e,AuthEc2vpcCreateVpcRoute:F1e,AuthS3bucketsCreateBucketRoute:V1e,AuthS3LsIndexRoute:H1e,AuthEc2imagesDescribeImagesIdRoute:pRe,AuthEc2instancesDescribeInstancesIdRoute:dRe,AuthEc2keyDescribeKeyPairsIdRoute:fRe,AuthEc2snapshotsDescribeSnapshotsIdRoute:uRe,AuthEc2subnetDescribeSubnetsIdRoute:lRe,AuthEc2volumesDescribeVolumesIdRoute:cRe,AuthEc2volumesModifyVolumeIdRoute:aRe,AuthEc2vpcDescribeVpcsIdRoute:iRe,AuthEc2imagesDescribeImagesIndexRoute:rRe,AuthEc2instancesDescribeInstancesIndexRoute:sRe,AuthEc2keyDescribeKeyPairsIndexRoute:nRe,AuthEc2snapshotsDescribeSnapshotsIndexRoute:tRe,AuthEc2subnetDescribeSubnetsIndexRoute:eRe,AuthEc2volumesDescribeVolumesIndexRoute:J1e,AuthEc2vpcDescribeVpcsIndexRoute:W1e},yRe=Ht._addFileChildren(gRe),bRe={AuthRouteRoute:yRe,LoginRoute:U1e},vRe=wE._addFileChildren(bRe)._addFileTypes(),b4=new o6({defaultOptions:{queries:{staleTime:5e3}}}),SRe=a8({routeTree:vRe,context:{queryClient:b4},defaultPreload:"intent",scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),Zb=document.getElementById("app");Zb&&!Zb.innerHTML&&w8.createRoot(Zb).render(N.jsx(M.StrictMode,{children:N.jsx(C8,{defaultTheme:"system",storageKey:"hive-ui-theme",children:N.jsx(a6,{client:b4,children:N.jsx(eF,{children:N.jsx(u8,{router:SRe})})})})}));export{ECe as $,NRe as A,Tl as B,Lj as C,XRe as D,Cs as E,dw as F,Ks as G,ac as H,ICe as I,kRe as J,o4 as K,$s as L,gT as M,ea as N,lO as O,Ov as P,wCe as Q,Xxe as R,fz as S,aX as T,om as U,lc as V,Gk as W,LW as X,jW as Y,zW as Z,qk as _,cn as a,bA as a$,$f as a0,kn as a1,Pr as a2,_Ce as a3,NS as a4,rw as a5,xCe as a6,RCe as a7,CCe as a8,ACe as a9,kxe as aA,k1e as aB,Nxe as aC,N1e as aD,Dxe as aE,z1e as aF,Mxe as aG,f4 as aH,BRe as aI,Gj as aJ,$Re as aK,LRe as aL,zRe as aM,Qp as aN,qh as aO,sM as aP,Il as aQ,Pf as aR,Yj as aS,Jt as aT,oS as aU,Hs as aV,uv as aW,Qr as aX,Cm as aY,Yf as aZ,ht as a_,TCe as aa,OCe as ab,MCe as ac,DCe as ad,wRe as ae,_Re as af,Pk as ag,eW as ah,tm as ai,B2 as aj,R1e as ak,Lxe as al,A1e as am,g4 as an,KRe as ao,uT as ap,QRe as aq,Rl as ar,GRe as as,ZRe as at,aD as au,I1e as av,zj as aw,e5 as ax,DRe as ay,M1e as az,qK as b,KV as b$,Ge as b0,eb as b1,Do as b2,Kt as b3,gt as b4,jRe as b5,yn as b6,Ss as b7,oM as b8,Kj as b9,MRe as bA,t7 as bB,P7 as bC,ZV as bD,GV as bE,Qf as bF,YM as bG,Sn as bH,$O as bI,na as bJ,nH as bK,VRe as bL,lS as bM,VV as bN,URe as bO,mO as bP,sS as bQ,Et as bR,vO as bS,fc as bT,i7 as bU,r7 as bV,aM as bW,qV as bX,l7 as bY,U9 as bZ,$9 as b_,Qj as ba,Fo as bb,it as bc,ORe as bd,T9 as be,s7 as bf,vr as bg,bV as bh,TM as bi,rM as bj,uS as bk,EV as bl,EM as bm,NM as bn,Sm as bo,VM as bp,Nh as bq,qRe as br,uM as bs,fS as bt,wO as bu,Sr as bv,FRe as bw,HRe as bx,L9 as by,X9 as bz,kt as c,B9 as c0,to as c1,WRe as c2,pQ as c3,Rv as c4,JRe as c5,eCe as c6,tCe as c7,nCe as c8,sCe as c9,Z$ as cA,$$ as cB,Qb as cC,hm as cD,z$ as cE,B$ as cF,Kb as cG,k2 as cH,J$ as cI,H$ as cJ,pc as cK,Ho as cL,rCe as ca,oCe as cb,iCe as cc,aCe as cd,cCe as ce,lCe as cf,uCe as cg,fCe as ch,dCe as ci,pCe as cj,hCe as ck,mCe as cl,gCe as cm,yCe as cn,bCe as co,vCe as cp,SCe as cq,qn as cr,pm as cs,ERe as ct,Of as cu,n6 as cv,cs as cw,Nr as cx,xRe as cy,$1e as cz,$xe as d,p4 as e,cT as f,a4 as g,h4 as h,m4 as i,N as j,xs as k,u4 as l,d4 as m,l4 as n,_K as o,EE as p,a1e as q,M as r,YRe as s,PRe as t,vm as u,y4 as v,Pxe as w,c4 as x,E1e as y,Nj as z}; diff --git a/hive/services/hiveui/frontend/dist/assets/index10.js b/hive/services/hiveui/frontend/dist/assets/index10.js new file mode 100644 index 000000000..f0cc48b50 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/index10.js @@ -0,0 +1 @@ +import{c as m,m as l,j as t,L as n,B as c}from"./index.js";import{u as p}from"./useSuspenseQuery.js";import{L as d}from"./list-card.js";import{P as y}from"./page-heading.js";function P(){const e=m.c(4),{data:s}=p(l);let r;if(e[0]!==s.KeyPairs){const a=(s.KeyPairs||[]).toSorted(f);let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(n,{to:"/ec2/import-key-pair",children:t.jsx(c,{variant:"outline",children:"Import Key Pair"})}),e[2]=i):i=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(y,{actions:t.jsxs("div",{className:"flex gap-2",children:[i,t.jsx(n,{to:"/ec2/create-key-pair",children:t.jsx(c,{children:"Create Key Pair"})})]}),title:"EC2 Key Pairs"}),e[3]=o):o=e[3],r=t.jsxs(t.Fragment,{children:[o,a.length>0?t.jsx("div",{className:"space-y-4",children:a.map(u)}):t.jsx("p",{className:"text-muted-foreground",children:"No key pairs found."})]}),e[0]=s.KeyPairs,e[1]=r}else r=e[1];return r}function u(e){return e.KeyPairId?t.jsx(d,{params:{id:e.KeyPairId},subtitle:`${e.KeyPairId} • ${e.KeyType}`,title:e.KeyName??"",to:"/ec2/describe-key-pairs/$id"},e.KeyPairId):null}function f(e,s){const r=e.KeyName?.toLowerCase()??"",a=s.KeyName?.toLowerCase()??"";return r.localeCompare(a)}export{P as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index11.js b/hive/services/hiveui/frontend/dist/assets/index11.js new file mode 100644 index 000000000..edbcf0d9a --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/index11.js @@ -0,0 +1 @@ +import{c as u,x as f,j as t,L as I,B as x}from"./index.js";import{u as g}from"./useSuspenseQuery.js";import{L as h}from"./list-card.js";import{P as j}from"./page-heading.js";import{S}from"./state-badge.js";function L(){const e=u.c(5),{data:o}=g(f);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={running:0,pending:1,stopping:2,"shutting-down":3,stopped:4,terminated:5},e[0]=s):s=e[0];const c=s;let n;if(e[1]!==o.Reservations){let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=(m,l)=>{const d=c[m.State?.Name??""]??6,p=c[l.State?.Name??""]??6;return d!==p?d-p:(m.InstanceId??"").localeCompare(l.InstanceId??"")},e[3]=a):a=e[3];const i=(o.Reservations?.flatMap(_)||[]).toSorted(a);let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(j,{actions:t.jsx(I,{to:"/ec2/run-instances",children:t.jsx(x,{children:"Run Instances"})}),title:"EC2 Instances"}),e[4]=r):r=e[4],n=t.jsxs(t.Fragment,{children:[r,i.length>0?t.jsx("div",{className:"space-y-4",children:i.map(y)}):t.jsx("p",{className:"text-muted-foreground",children:"No instances found."})]}),e[1]=o.Reservations,e[2]=n}else n=e[2];return n}function y(e){return e.InstanceId?t.jsx(h,{badge:t.jsx(S,{state:e.State?.Name}),params:{id:e.InstanceId},subtitle:`${e.InstanceType} • ${e.ImageId}`,title:e.InstanceId,to:"/ec2/describe-instances/$id"},e.InstanceId):null}function _(e){return e.Instances||[]}export{L as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index12.js b/hive/services/hiveui/frontend/dist/assets/index12.js new file mode 100644 index 000000000..ed5a203dc --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/index12.js @@ -0,0 +1 @@ +import{c as n,l as i,j as t}from"./index.js";import{u as c}from"./useSuspenseQuery.js";import{L as l}from"./list-card.js";import{P as d}from"./page-heading.js";import{S as p}from"./state-badge.js";function h(){const e=n.c(5),{data:o}=c(i);let s;e[0]!==o.Images?(s=o.Images||[],e[0]=o.Images,e[1]=s):s=e[1];const a=s;let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(d,{title:"EC2 Images"}),e[2]=m):m=e[2];let r;return e[3]!==a?(r=t.jsxs(t.Fragment,{children:[m,a.length>0?t.jsx("div",{className:"space-y-4",children:a.map(u)}):t.jsx("p",{className:"text-muted-foreground",children:"No images found."})]}),e[3]=a,e[4]=r):r=e[4],r}function u(e){return e.ImageId?t.jsx(l,{badge:t.jsx(p,{state:e.State}),params:{id:e.ImageId},subtitle:e.Name,title:e.ImageId,to:"/ec2/describe-images/$id"},e.ImageId):null}export{h as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index2.js b/hive/services/hiveui/frontend/dist/assets/index2.js index 18142a6ff..ca37b100d 100644 --- a/hive/services/hiveui/frontend/dist/assets/index2.js +++ b/hive/services/hiveui/frontend/dist/assets/index2.js @@ -1 +1 @@ -import{ck as z,cl as x}from"./index.js";class T{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:i,serializer:n,deserializer:o,serdeContext:c,defaultContentType:y}){this.marshaller=i,this.serializer=n,this.deserializer=o,this.serdeContext=c,this.defaultContentType=y}async serializeEventStream({eventStream:i,requestSchema:n,initialRequest:o}){const c=this.marshaller,y=n.getEventStreamMember(),p=n.getMemberSchema(y),d=this.serializer,f=this.defaultContentType,h=Symbol("initialRequestMarker"),S={async*[Symbol.asyncIterator](){if(o){const r={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:f}};d.write(n,o);const t=d.flush();yield{[h]:!0,headers:r,body:t}}for await(const r of i)yield r}};return c.serialize(S,r=>{if(r[h])return{headers:r.headers,body:r.body};const t=Object.keys(r).find(s=>s!=="__type")??"",{additionalHeaders:e,body:a,eventType:l,explicitPayloadContentType:m}=this.writeEventBody(t,p,r);return{headers:{":event-type":{type:"string",value:l},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:m??f},...e},body:a}})}async deserializeEventStream({response:i,responseSchema:n,initialResponseContainer:o}){const c=this.marshaller,y=n.getEventStreamMember(),d=n.getMemberSchema(y).getMemberSchemas(),f=Symbol("initialResponseMarker"),h=c.deserialize(i.body,async t=>{const e=Object.keys(t).find(l=>l!=="__type")??"",a=t[e].body;if(e==="initial-response"){const l=await this.deserializer.read(n,a);return delete l[y],{[f]:!0,...l}}else if(e in d){const l=d[e];if(l.isStructSchema()){const m={};let u=!1;for(const[s,g]of l.structIterator()){const{eventHeader:v,eventPayload:w}=g.getMergedTraits();if(u=u||!!(v||w),w)g.isBlobSchema()?m[s]=a:g.isStringSchema()?m[s]=(this.serdeContext?.utf8Encoder??z)(a):g.isStructSchema()&&(m[s]=await this.deserializer.read(g,a));else if(v){const b=t[e].headers[s]?.value;b!=null&&(g.isNumericSchema()?b&&typeof b=="object"&&"bytes"in b?m[s]=BigInt(b.toString()):m[s]=Number(b):m[s]=b)}}if(u)return{[e]:m};if(a.byteLength===0)return{[e]:{}}}return{[e]:await this.deserializer.read(l,a)}}else return{$unknown:t}}),S=h[Symbol.asyncIterator](),r=await S.next();if(r.done)return h;if(r.value?.[f]){if(!n)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(const[t,e]of Object.entries(r.value))o[t]=e}return{async*[Symbol.asyncIterator](){for(r?.value?.[f]||(yield r.value);;){const{done:t,value:e}=await S.next();if(t)break;yield e}}}}writeEventBody(i,n,o){const c=this.serializer;let y=i,p=null,d;const f=n.getSchema()[4].includes(i),h={};if(f){const t=n.getMemberSchema(i);if(t.isStructSchema()){for(const[e,a]of t.structIterator()){const{eventHeader:l,eventPayload:m}=a.getMergedTraits();if(m)p=e;else if(l){const u=o[i][e];let s="binary";a.isNumericSchema()?(-2)**31<=u&&u<=2**31-1?s="integer":s="long":a.isTimestampSchema()?s="timestamp":a.isStringSchema()?s="string":a.isBooleanSchema()&&(s="boolean"),u!=null&&(h[e]={type:s,value:u},delete o[i][e])}}if(p!==null){const e=t.getMemberSchema(p);e.isBlobSchema()?d="application/octet-stream":e.isStringSchema()&&(d="text/plain"),c.write(e,o[i][p])}else c.write(t,o[i])}else if(t.isUnitSchema())c.write(t,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{const[t,e]=o[i];y=t,c.write(15,e)}const S=c.flush();return{body:typeof S=="string"?(this.serdeContext?.utf8Decoder??x)(S):S,eventType:y,explicitPayloadContentType:d,additionalHeaders:h}}}export{T as EventStreamSerde}; +import{cK as z,cL as x}from"./index.js";class T{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:i,serializer:n,deserializer:o,serdeContext:c,defaultContentType:y}){this.marshaller=i,this.serializer=n,this.deserializer=o,this.serdeContext=c,this.defaultContentType=y}async serializeEventStream({eventStream:i,requestSchema:n,initialRequest:o}){const c=this.marshaller,y=n.getEventStreamMember(),p=n.getMemberSchema(y),d=this.serializer,f=this.defaultContentType,h=Symbol("initialRequestMarker"),S={async*[Symbol.asyncIterator](){if(o){const r={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:f}};d.write(n,o);const t=d.flush();yield{[h]:!0,headers:r,body:t}}for await(const r of i)yield r}};return c.serialize(S,r=>{if(r[h])return{headers:r.headers,body:r.body};const t=Object.keys(r).find(s=>s!=="__type")??"",{additionalHeaders:e,body:a,eventType:l,explicitPayloadContentType:m}=this.writeEventBody(t,p,r);return{headers:{":event-type":{type:"string",value:l},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:m??f},...e},body:a}})}async deserializeEventStream({response:i,responseSchema:n,initialResponseContainer:o}){const c=this.marshaller,y=n.getEventStreamMember(),d=n.getMemberSchema(y).getMemberSchemas(),f=Symbol("initialResponseMarker"),h=c.deserialize(i.body,async t=>{const e=Object.keys(t).find(l=>l!=="__type")??"",a=t[e].body;if(e==="initial-response"){const l=await this.deserializer.read(n,a);return delete l[y],{[f]:!0,...l}}else if(e in d){const l=d[e];if(l.isStructSchema()){const m={};let u=!1;for(const[s,g]of l.structIterator()){const{eventHeader:v,eventPayload:w}=g.getMergedTraits();if(u=u||!!(v||w),w)g.isBlobSchema()?m[s]=a:g.isStringSchema()?m[s]=(this.serdeContext?.utf8Encoder??z)(a):g.isStructSchema()&&(m[s]=await this.deserializer.read(g,a));else if(v){const b=t[e].headers[s]?.value;b!=null&&(g.isNumericSchema()?b&&typeof b=="object"&&"bytes"in b?m[s]=BigInt(b.toString()):m[s]=Number(b):m[s]=b)}}if(u)return{[e]:m};if(a.byteLength===0)return{[e]:{}}}return{[e]:await this.deserializer.read(l,a)}}else return{$unknown:t}}),S=h[Symbol.asyncIterator](),r=await S.next();if(r.done)return h;if(r.value?.[f]){if(!n)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(const[t,e]of Object.entries(r.value))o[t]=e}return{async*[Symbol.asyncIterator](){for(r?.value?.[f]||(yield r.value);;){const{done:t,value:e}=await S.next();if(t)break;yield e}}}}writeEventBody(i,n,o){const c=this.serializer;let y=i,p=null,d;const f=n.getSchema()[4].includes(i),h={};if(f){const t=n.getMemberSchema(i);if(t.isStructSchema()){for(const[e,a]of t.structIterator()){const{eventHeader:l,eventPayload:m}=a.getMergedTraits();if(m)p=e;else if(l){const u=o[i][e];let s="binary";a.isNumericSchema()?(-2)**31<=u&&u<=2**31-1?s="integer":s="long":a.isTimestampSchema()?s="timestamp":a.isStringSchema()?s="string":a.isBooleanSchema()&&(s="boolean"),u!=null&&(h[e]={type:s,value:u},delete o[i][e])}}if(p!==null){const e=t.getMemberSchema(p);e.isBlobSchema()?d="application/octet-stream":e.isStringSchema()&&(d="text/plain"),c.write(e,o[i][p])}else c.write(t,o[i])}else if(t.isUnitSchema())c.write(t,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{const[t,e]=o[i];y=t,c.write(15,e)}const S=c.flush();return{body:typeof S=="string"?(this.serdeContext?.utf8Decoder??x)(S):S,eventType:y,explicitPayloadContentType:d,additionalHeaders:h}}}export{T as EventStreamSerde}; diff --git a/hive/services/hiveui/frontend/dist/assets/index5.js b/hive/services/hiveui/frontend/dist/assets/index5.js index ec75519f4..9187bcea0 100644 --- a/hive/services/hiveui/frontend/dist/assets/index5.js +++ b/hive/services/hiveui/frontend/dist/assets/index5.js @@ -1 +1 @@ -import{c as b,az as y,j as s,aA as k,aB as N}from"./index.js";import{u as B}from"./useSuspenseQuery.js";import{B as O}from"./back-link.js";import{E as C}from"./error-banner.js";import{P as F}from"./page-heading.js";import{a as K}from"./s3.js";import{U as v,F as A,O as E}from"./upload-button.js";import"./alert-dialog.js";import"./download.js";import"./trash-2.js";function T(){const e=b.c(31),{bucket:t}=y.useParams();let x;e[0]!==t?(x=N(t),e[0]=t,e[1]=x):x=e[1];const{data:i}=B(x),r=K();let p;e[2]!==i.Contents?(p=i.Contents||[],e[2]=i.Contents,e[3]=p):p=e[3];const o=p;let h;e[4]!==i.CommonPrefixes?(h=i.CommonPrefixes||[],e[4]=i.CommonPrefixes,e[5]=h):h=e[5];const l=h;let g;e[6]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(O,{to:"/s3/ls",children:"Back to buckets"}),e[6]=g):g=e[6];let a;e[7]!==t||e[8]!==r.isPending||e[9]!==r.mutateAsync?(a=s.jsx(v,{bucket:t,isPending:r.isPending,onUpload:r.mutateAsync}),e[7]=t,e[8]=r.isPending,e[9]=r.mutateAsync,e[10]=a):a=e[10];let m;e[11]!==t||e[12]!==a?(m=s.jsx(F,{actions:a,title:t}),e[11]=t,e[12]=a,e[13]=m):m=e[13];let c;e[14]!==r.error?(c=r.error&&s.jsx(C,{error:r.error,msg:"Failed to upload object"}),e[14]=r.error,e[15]=c):c=e[15];let u;e[16]!==t||e[17]!==l?(u=l.length>0&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Folders"}),s.jsx("div",{className:"space-y-2",children:l.map(n=>{if(!n.Prefix)return null;const P=k(n.Prefix);return s.jsx(A,{bucketName:t,folderName:P,fullPrefix:n.Prefix},n.Prefix)})})]}),e[16]=t,e[17]=l,e[18]=u):u=e[18];let f;e[19]!==t||e[20]!==o?(f=o.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Objects"}),o.map(n=>n.Key?s.jsx(E,{bucketName:t,displayName:n.Key,fullKey:n.Key,object:n},n.Key):null)]}),e[19]=t,e[20]=o,e[21]=f):f=e[21];let d;e[22]!==l.length||e[23]!==o.length?(d=o.length===0&&l.length===0&&s.jsx("p",{className:"text-muted-foreground",children:"No objects found in this bucket."}),e[22]=l.length,e[23]=o.length,e[24]=d):d=e[24];let j;return e[25]!==m||e[26]!==c||e[27]!==u||e[28]!==f||e[29]!==d?(j=s.jsxs(s.Fragment,{children:[g,m,c,u,f,d]}),e[25]=m,e[26]=c,e[27]=u,e[28]=f,e[29]=d,e[30]=j):j=e[30],j}export{T as component}; +import{c as b,q as y,j as s,t as k,v as N}from"./index.js";import{u as B}from"./useSuspenseQuery.js";import{B as O}from"./back-link.js";import{E as C}from"./error-banner.js";import{P as v}from"./page-heading.js";import{a as F}from"./s3.js";import{U as K,F as E,O as U}from"./upload-button.js";import"./alert-dialog.js";import"./download.js";import"./trash-2.js";function T(){const e=b.c(31),{bucket:t}=y.useParams();let x;e[0]!==t?(x=N(t),e[0]=t,e[1]=x):x=e[1];const{data:i}=B(x),r=F();let p;e[2]!==i.Contents?(p=i.Contents||[],e[2]=i.Contents,e[3]=p):p=e[3];const o=p;let h;e[4]!==i.CommonPrefixes?(h=i.CommonPrefixes||[],e[4]=i.CommonPrefixes,e[5]=h):h=e[5];const l=h;let g;e[6]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(O,{to:"/s3/ls",children:"Back to buckets"}),e[6]=g):g=e[6];let a;e[7]!==t||e[8]!==r.isPending||e[9]!==r.mutateAsync?(a=s.jsx(K,{bucket:t,isPending:r.isPending,onUpload:r.mutateAsync}),e[7]=t,e[8]=r.isPending,e[9]=r.mutateAsync,e[10]=a):a=e[10];let m;e[11]!==t||e[12]!==a?(m=s.jsx(v,{actions:a,title:t}),e[11]=t,e[12]=a,e[13]=m):m=e[13];let c;e[14]!==r.error?(c=r.error&&s.jsx(C,{error:r.error,msg:"Failed to upload object"}),e[14]=r.error,e[15]=c):c=e[15];let u;e[16]!==t||e[17]!==l?(u=l.length>0&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Folders"}),s.jsx("div",{className:"space-y-2",children:l.map(n=>{if(!n.Prefix)return null;const P=k(n.Prefix);return s.jsx(E,{bucketName:t,folderName:P,fullPrefix:n.Prefix},n.Prefix)})})]}),e[16]=t,e[17]=l,e[18]=u):u=e[18];let f;e[19]!==t||e[20]!==o?(f=o.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Objects"}),o.map(n=>n.Key?s.jsx(U,{bucketName:t,displayName:n.Key,fullKey:n.Key,object:n},n.Key):null)]}),e[19]=t,e[20]=o,e[21]=f):f=e[21];let d;e[22]!==l.length||e[23]!==o.length?(d=o.length===0&&l.length===0&&s.jsx("p",{className:"text-muted-foreground",children:"No objects found in this bucket."}),e[22]=l.length,e[23]=o.length,e[24]=d):d=e[24];let j;return e[25]!==m||e[26]!==c||e[27]!==u||e[28]!==f||e[29]!==d?(j=s.jsxs(s.Fragment,{children:[g,m,c,u,f,d]}),e[25]=m,e[26]=c,e[27]=u,e[28]=f,e[29]=d,e[30]=j):j=e[30],j}export{T as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index6.js b/hive/services/hiveui/frontend/dist/assets/index6.js index 27267ef9f..30fac1944 100644 --- a/hive/services/hiveui/frontend/dist/assets/index6.js +++ b/hive/services/hiveui/frontend/dist/assets/index6.js @@ -1 +1 @@ -import{c as l,aC as n,j as t,L as m,B as u}from"./index.js";import{u as c}from"./useSuspenseQuery.js";import{L as d}from"./list-card.js";import{P as p}from"./page-heading.js";import{B as f}from"./badge.js";function b(){const e=l.c(5),{data:r}=c(n);let s;e[0]!==r.Volumes?(s=r.Volumes||[],e[0]=r.Volumes,e[1]=s):s=e[1];const o=s;let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(p,{actions:t.jsx(m,{to:"/ec2/create-volume",children:t.jsx(u,{children:"Create Volume"})}),title:"EC2 Volumes"}),e[2]=a):a=e[2];let i;return e[3]!==o?(i=t.jsxs(t.Fragment,{children:[a,o.length>0?t.jsx("div",{className:"space-y-4",children:o.map(x)}):t.jsx("p",{className:"text-muted-foreground",children:"No volumes found."})]}),e[3]=o,e[4]=i):i=e[4],i}function x(e){return e.VolumeId?t.jsx(d,{badge:e.State?t.jsx(f,{variant:e.State==="available"?"default":"outline",children:e.State}):void 0,params:{id:e.VolumeId},subtitle:`${e.Size} GiB • ${e.VolumeType}`,title:e.VolumeId,to:"/ec2/describe-volumes/$id"},e.VolumeId):null}export{b as component}; +import{c,h as i,j as t,L as m,B as d}from"./index.js";import{u as l}from"./useSuspenseQuery.js";import{L as p}from"./list-card.js";import{P as u}from"./page-heading.js";import{S as f}from"./state-badge.js";function I(){const e=c.c(5),{data:s}=l(i);let r;e[0]!==s.Vpcs?(r=s.Vpcs||[],e[0]=s.Vpcs,e[1]=r):r=e[1];const a=r;let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(u,{actions:t.jsx(m,{to:"/ec2/create-vpc",children:t.jsx(d,{children:"Create VPC"})}),title:"VPCs"}),e[2]=n):n=e[2];let o;return e[3]!==a?(o=t.jsxs(t.Fragment,{children:[n,a.length>0?t.jsx("div",{className:"space-y-4",children:a.map(V)}):t.jsx("p",{className:"text-muted-foreground",children:"No VPCs found."})]}),e[3]=a,e[4]=o):o=e[4],o}function V(e){if(!e.VpcId)return null;const s=e.Tags?.find(x)?.Value;return t.jsx(p,{badge:t.jsx(f,{state:e.State}),params:{id:e.VpcId},subtitle:e.CidrBlock??"",title:s?`${e.VpcId} (${s})`:e.VpcId,to:"/ec2/describe-vpcs/$id"},e.VpcId)}function x(e){return e.Key==="Name"}export{I as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index7.js b/hive/services/hiveui/frontend/dist/assets/index7.js index 9eefe5784..6f5da7853 100644 --- a/hive/services/hiveui/frontend/dist/assets/index7.js +++ b/hive/services/hiveui/frontend/dist/assets/index7.js @@ -1 +1 @@ -import{c as m,ax as l,j as t,L as n,B as c}from"./index.js";import{u as p}from"./useSuspenseQuery.js";import{L as d}from"./list-card.js";import{P as y}from"./page-heading.js";function P(){const e=m.c(4),{data:r}=p(l);let s;if(e[0]!==r.KeyPairs){const a=[...r.KeyPairs||[]].sort(x);let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(n,{to:"/ec2/import-key-pair",children:t.jsx(c,{variant:"outline",children:"Import Key Pair"})}),e[2]=i):i=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(y,{actions:t.jsxs("div",{className:"flex gap-2",children:[i,t.jsx(n,{to:"/ec2/create-key-pair",children:t.jsx(c,{children:"Create Key Pair"})})]}),title:"EC2 Key Pairs"}),e[3]=o):o=e[3],s=t.jsxs(t.Fragment,{children:[o,a.length>0?t.jsx("div",{className:"space-y-4",children:a.map(u)}):t.jsx("p",{className:"text-muted-foreground",children:"No key pairs found."})]}),e[0]=r.KeyPairs,e[1]=s}else s=e[1];return s}function u(e){return e.KeyPairId?t.jsx(d,{params:{id:e.KeyPairId},subtitle:`${e.KeyPairId} • ${e.KeyType}`,title:e.KeyName??"",to:"/ec2/describe-key-pairs/$id"},e.KeyPairId):null}function x(e,r){const s=e.KeyName?.toLowerCase()??"",a=r.KeyName?.toLowerCase()??"";return s.localeCompare(a)}export{P as component}; +import{c as m,i as l,j as t,L as n,B as u}from"./index.js";import{u as c}from"./useSuspenseQuery.js";import{L as d}from"./list-card.js";import{P as p}from"./page-heading.js";import{S as f}from"./state-badge.js";function y(){const e=m.c(5),{data:a}=c(l);let s;e[0]!==a.Volumes?(s=a.Volumes||[],e[0]=a.Volumes,e[1]=s):s=e[1];const o=s;let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(p,{actions:t.jsx(n,{to:"/ec2/create-volume",children:t.jsx(u,{children:"Create Volume"})}),title:"EC2 Volumes"}),e[2]=r):r=e[2];let i;return e[3]!==o?(i=t.jsxs(t.Fragment,{children:[r,o.length>0?t.jsx("div",{className:"space-y-4",children:o.map(x)}):t.jsx("p",{className:"text-muted-foreground",children:"No volumes found."})]}),e[3]=o,e[4]=i):i=e[4],i}function x(e){return e.VolumeId?t.jsx(d,{badge:t.jsx(f,{state:e.State}),params:{id:e.VolumeId},subtitle:`${e.Size} GiB • ${e.VolumeType}`,title:e.VolumeId,to:"/ec2/describe-volumes/$id"},e.VolumeId):null}export{y as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index8.js b/hive/services/hiveui/frontend/dist/assets/index8.js index c1223e0e8..ce180cea8 100644 --- a/hive/services/hiveui/frontend/dist/assets/index8.js +++ b/hive/services/hiveui/frontend/dist/assets/index8.js @@ -1 +1 @@ -import{c as o,aD as c,j as t,L as i,B as m}from"./index.js";import{u as d}from"./useSuspenseQuery.js";import{L as u}from"./list-card.js";import{P as l}from"./page-heading.js";import{S as p}from"./state-badge.js";function y(){const e=o.c(3),{data:a}=d(c);let s;if(e[0]!==a.Reservations){const r=a.Reservations?.flatMap(I)||[];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(l,{actions:t.jsx(i,{to:"/ec2/run-instances",children:t.jsx(m,{children:"Run Instances"})}),title:"EC2 Instances"}),e[2]=n):n=e[2],s=t.jsxs(t.Fragment,{children:[n,r.length>0?t.jsx("div",{className:"space-y-4",children:r.map(f)}):t.jsx("p",{className:"text-muted-foreground",children:"No instances found."})]}),e[0]=a.Reservations,e[1]=s}else s=e[1];return s}function f(e){return e.InstanceId?t.jsx(u,{badge:t.jsx(p,{state:e.State?.Name}),params:{id:e.InstanceId},subtitle:`${e.InstanceType} • ${e.ImageId}`,title:e.InstanceId,to:"/ec2/describe-instances/$id"},e.InstanceId):null}function I(e){return e.Instances||[]}export{y as component}; +import{c as o,p as c,j as t,L as u,B as m}from"./index.js";import{u as l}from"./useSuspenseQuery.js";import{L as d}from"./list-card.js";import{P as p}from"./page-heading.js";import{S}from"./state-badge.js";function $(){const e=o.c(5),{data:s}=l(c);let n;e[0]!==s.Subnets?(n=s.Subnets||[],e[0]=s.Subnets,e[1]=n):n=e[1];const a=n;let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(p,{actions:t.jsx(u,{to:"/ec2/create-subnet",children:t.jsx(m,{children:"Create Subnet"})}),title:"Subnets"}),e[2]=r):r=e[2];let i;return e[3]!==a?(i=t.jsxs(t.Fragment,{children:[r,a.length>0?t.jsx("div",{className:"space-y-4",children:a.map(f)}):t.jsx("p",{className:"text-muted-foreground",children:"No subnets found."})]}),e[3]=a,e[4]=i):i=e[4],i}function f(e){if(!e.SubnetId)return null;const s=e.Tags?.find(b)?.Value;return t.jsx(d,{badge:t.jsx(S,{state:e.State}),params:{id:e.SubnetId},subtitle:`${e.CidrBlock??""} • ${e.AvailabilityZone??""}`,title:s?`${e.SubnetId} (${s})`:e.SubnetId,to:"/ec2/describe-subnets/$id"},e.SubnetId)}function b(e){return e.Key==="Name"}export{$ as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index9.js b/hive/services/hiveui/frontend/dist/assets/index9.js index a3d9a0eb3..e9bc1276a 100644 --- a/hive/services/hiveui/frontend/dist/assets/index9.js +++ b/hive/services/hiveui/frontend/dist/assets/index9.js @@ -1 +1 @@ -import{c as n,aw as i,j as t}from"./index.js";import{u as l}from"./useSuspenseQuery.js";import{L as c}from"./list-card.js";import{P as d}from"./page-heading.js";import{B as u}from"./badge.js";function h(){const e=n.c(5),{data:m}=l(i);let s;e[0]!==m.Images?(s=m.Images||[],e[0]=m.Images,e[1]=s):s=e[1];const a=s;let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(d,{title:"EC2 Images"}),e[2]=r):r=e[2];let o;return e[3]!==a?(o=t.jsxs(t.Fragment,{children:[r,a.length>0?t.jsx("div",{className:"space-y-4",children:a.map(p)}):t.jsx("p",{className:"text-muted-foreground",children:"No images found."})]}),e[3]=a,e[4]=o):o=e[4],o}function p(e){return e.ImageId?t.jsx(c,{badge:e.State?t.jsx(u,{variant:e.State==="available"?"default":"outline",children:e.State}):void 0,params:{id:e.ImageId},subtitle:e.Name,title:e.ImageId,to:"/ec2/describe-images/$id"},e.ImageId):null}export{h as component}; +import{c as i,w as c,j as e,L as m,B as p}from"./index.js";import{u as l}from"./useSuspenseQuery.js";import{L as d}from"./list-card.js";import{P as u}from"./page-heading.js";import{S}from"./state-badge.js";function b(){const t=i.c(5),{data:r}=l(c);let s;t[0]!==r.Snapshots?(s=r.Snapshots||[],t[0]=r.Snapshots,t[1]=s):s=t[1];const o=s;let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=e.jsx(u,{actions:e.jsx(m,{to:"/ec2/create-snapshot",children:e.jsx(p,{children:"Create Snapshot"})}),title:"EC2 Snapshots"}),t[2]=a):a=t[2];let n;return t[3]!==o?(n=e.jsxs(e.Fragment,{children:[a,o.length>0?e.jsx("div",{className:"space-y-4",children:o.map(h)}):e.jsx("p",{className:"text-muted-foreground",children:"No snapshots found."})]}),t[3]=o,t[4]=n):n=t[4],n}function h(t){return t.SnapshotId?e.jsx(d,{badge:e.jsx(S,{state:t.State}),params:{id:t.SnapshotId},subtitle:`${t.VolumeSize} GiB • ${t.VolumeId}`,title:t.SnapshotId,to:"/ec2/describe-snapshots/$id"},t.SnapshotId):null}export{b as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/input.js b/hive/services/hiveui/frontend/dist/assets/input.js new file mode 100644 index 000000000..df6a16066 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/input.js @@ -0,0 +1 @@ +import{r as b,a_ as h,b2 as U,b3 as $,bv as A,aT as K,bt as S,j as F,c as _,a as q}from"./index.js";import{d as z,h as G,e as H,f as J,g as O,i as Q}from"./field.js";const W=b.forwardRef(function(e,a){const{render:r,className:l,id:i,name:o,value:s,disabled:I=!1,onValueChange:w,defaultValue:v,autoFocus:f=!1,...V}=e,{state:T,name:D,disabled:N,setTouched:g,setDirty:P,validityData:j,setFocused:d,setFilled:c,validationMode:k,validation:n}=z(),x=N||I,R=D??o,L={...T,disabled:x},{labelId:M}=G(),y=H({id:i});h(()=>{const t=s!=null;n.inputRef.current?.value||t&&s!==""?c(!0):t&&s===""&&c(!1)},[n.inputRef,c,s]);const p=b.useRef(null);h(()=>{f&&p.current===U($(p.current))&&d(!0)},[f,d]);const[B]=J({controlled:s,default:v,name:"FieldControl",state:"value"}),C=s!==void 0,E=C?B:void 0;return O({id:y,name:R,commit:n.commit,value:E,getValue:()=>n.inputRef.current?.value,controlRef:n.inputRef}),A("input",e,{ref:[a,p],state:L,props:[{id:y,disabled:x,name:R,ref:n.inputRef,"aria-labelledby":M,autoFocus:f,...C?{value:E}:{defaultValue:v},onChange(t){const m=t.currentTarget.value;w?.(m,K(S,t.nativeEvent)),P(m!==j.initialValue),c(m!=="")},onFocus(){d(!0)},onBlur(t){g(!0),d(!1),k==="onBlur"&&n.commit(t.currentTarget.value)},onKeyDown(t){t.currentTarget.tagName==="INPUT"&&t.key==="Enter"&&(g(!0),n.commit(t.currentTarget.value))}},n.getInputValidationProps(),V],stateAttributesMapping:Q})}),X=b.forwardRef(function(e,a){return F.jsx(W,{ref:a,...e})});function te(u){const e=_.c(10);let a,r,l;e[0]!==u?({className:a,type:l,...r}=u,e[0]=u,e[1]=a,e[2]=r,e[3]=l):(a=e[1],r=e[2],l=e[3]);let i;e[4]!==a?(i=q("h-7 w-full min-w-0 rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm outline-none transition-colors file:inline-flex file:h-6 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-xs/relaxed placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",a),e[4]=a,e[5]=i):i=e[5];let o;return e[6]!==r||e[7]!==i||e[8]!==l?(o=F.jsx(X,{className:i,"data-slot":"input",type:l,...r}),e[6]=r,e[7]=i,e[8]=l,e[9]=o):o=e[9],o}export{te as I}; diff --git a/hive/services/hiveui/frontend/dist/assets/login.js b/hive/services/hiveui/frontend/dist/assets/login.js index 1936aeb71..c513d39a0 100644 --- a/hive/services/hiveui/frontend/dist/assets/login.js +++ b/hive/services/hiveui/frontend/dist/assets/login.js @@ -1 +1 @@ -import{c as b,a as K,j as c,u as P,b as R,s as L,B as X}from"./index.js";import{a as B,u as G,I as F,F as z,b as $,c as D,d as O}from"./field.js";function T(e){const s=b.c(10);let l,t,r;s[0]!==e?({className:l,size:r,...t}=e,s[0]=e,s[1]=l,s[2]=t,s[3]=r):(l=s[1],t=s[2],r=s[3]);const a=r===void 0?"default":r;let i;s[4]!==l?(i=K("group/card flex flex-col gap-4 overflow-hidden rounded-lg bg-card py-4 text-card-foreground text-xs/relaxed ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg",l),s[4]=l,s[5]=i):i=s[5];let o;return s[6]!==t||s[7]!==a||s[8]!==i?(o=c.jsx("div",{className:i,"data-size":a,"data-slot":"card",...t}),s[6]=t,s[7]=a,s[8]=i,s[9]=o):o=s[9],o}function Y(e){const s=b.c(8);let l,t;s[0]!==e?({className:l,...t}=e,s[0]=e,s[1]=l,s[2]=t):(l=s[1],t=s[2]);let r;s[3]!==l?(r=K("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-lg px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] group-data-[size=sm]/card:px-3 [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",l),s[3]=l,s[4]=r):r=s[4];let a;return s[5]!==t||s[6]!==r?(a=c.jsx("div",{className:r,"data-slot":"card-header",...t}),s[5]=t,s[6]=r,s[7]=a):a=s[7],a}function H(e){const s=b.c(8);let l,t;s[0]!==e?({className:l,...t}=e,s[0]=e,s[1]=l,s[2]=t):(l=s[1],t=s[2]);let r;s[3]!==l?(r=K("font-medium text-sm",l),s[3]=l,s[4]=r):r=s[4];let a;return s[5]!==t||s[6]!==r?(a=c.jsx("div",{className:r,"data-slot":"card-title",...t}),s[5]=t,s[6]=r,s[7]=a):a=s[7],a}function J(e){const s=b.c(8);let l,t;s[0]!==e?({className:l,...t}=e,s[0]=e,s[1]=l,s[2]=t):(l=s[1],t=s[2]);let r;s[3]!==l?(r=K("text-muted-foreground text-xs/relaxed",l),s[3]=l,s[4]=r):r=s[4];let a;return s[5]!==t||s[6]!==r?(a=c.jsx("div",{className:r,"data-slot":"card-description",...t}),s[5]=t,s[6]=r,s[7]=a):a=s[7],a}function U(e){const s=b.c(8);let l,t;s[0]!==e?({className:l,...t}=e,s[0]=e,s[1]=l,s[2]=t):(l=s[1],t=s[2]);let r;s[3]!==l?(r=K("px-4 group-data-[size=sm]/card:px-3",l),s[3]=l,s[4]=r):r=s[4];let a;return s[5]!==t||s[6]!==r?(a=c.jsx("div",{className:r,"data-slot":"card-content",...t}),s[5]=t,s[6]=r,s[7]=a):a=s[7],a}function Q(){const e=b.c(39),s=P();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={resolver:B(R)},e[0]=l):l=e[0];const{register:t,handleSubmit:r,formState:a}=G(l),{errors:i,isSubmitting:o}=a;let N;e[1]!==s?(N=function(M){L(M),s({to:"/"})},e[1]=s,e[2]=N):N=e[2];const _=N;let S;e[3]===Symbol.for("react.memo_cache_sentinel")?(S=c.jsx(H,{children:"AWS Credentials"}),e[3]=S):S=e[3];let v;e[4]===Symbol.for("react.memo_cache_sentinel")?(v=c.jsxs(Y,{children:[S,c.jsxs(J,{children:["Run ",c.jsx("code",{children:"cat ~/hive/config/hive.toml"})," to get your credentials"]})]}),e[4]=v):v=e[4];let d;e[5]!==r||e[6]!==_?(d=r(_),e[5]=r,e[6]=_,e[7]=d):d=e[7];let A;e[8]===Symbol.for("react.memo_cache_sentinel")?(A=c.jsx($,{children:c.jsx("label",{htmlFor:"accessKeyId",children:"Access Key ID"})}),e[8]=A):A=e[8];const w=!!i.accessKeyId;let n;e[9]!==t?(n=t("accessKeyId"),e[9]=t,e[10]=n):n=e[10];let m;e[11]!==w||e[12]!==n?(m=c.jsx(F,{"aria-invalid":w,autoComplete:"username",id:"accessKeyId",placeholder:"AKIAIOSFODNN7EXAMPLE",...n}),e[11]=w,e[12]=n,e[13]=m):m=e[13];let f;e[14]!==i.accessKeyId?(f=c.jsx(z,{errors:[i.accessKeyId]}),e[14]=i.accessKeyId,e[15]=f):f=e[15];let u;e[16]!==f||e[17]!==m?(u=c.jsxs(D,{children:[A,m,f]}),e[16]=f,e[17]=m,e[18]=u):u=e[18];let I;e[19]===Symbol.for("react.memo_cache_sentinel")?(I=c.jsx($,{children:c.jsx("label",{htmlFor:"secretAccessKey",children:"Secret Access Key"})}),e[19]=I):I=e[19];const E=!!i.secretAccessKey;let x;e[20]!==t?(x=t("secretAccessKey"),e[20]=t,e[21]=x):x=e[21];let p;e[22]!==E||e[23]!==x?(p=c.jsx(F,{"aria-invalid":E,autoComplete:"current-password",id:"secretAccessKey",placeholder:"wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",type:"password",...x}),e[22]=E,e[23]=x,e[24]=p):p=e[24];let h;e[25]!==i.secretAccessKey?(h=c.jsx(z,{errors:[i.secretAccessKey]}),e[25]=i.secretAccessKey,e[26]=h):h=e[26];let g;e[27]!==p||e[28]!==h?(g=c.jsxs(D,{children:[I,p,h]}),e[27]=p,e[28]=h,e[29]=g):g=e[29];let j;e[30]!==o?(j=c.jsx(X,{className:"w-full",disabled:o,type:"submit",children:"Sign In"}),e[30]=o,e[31]=j):j=e[31];let y;e[32]!==u||e[33]!==g||e[34]!==j?(y=c.jsxs(O,{children:[u,g,j]}),e[32]=u,e[33]=g,e[34]=j,e[35]=y):y=e[35];let C;return e[36]!==y||e[37]!==d?(C=c.jsx("div",{className:"flex flex-1 items-center justify-center",children:c.jsxs(T,{className:"w-full max-w-sm",children:[v,c.jsx(U,{children:c.jsx("form",{onSubmit:d,children:y})})]})}),e[36]=y,e[37]=d,e[38]=C):C=e[38],C}export{Q as component}; +import{c as b,a as K,j as c,u as P,b as R,s as L,B as X}from"./index.js";import{a as B,u as G}from"./zod.js";import{F,a as z,b as $,c as O}from"./field.js";import{I as D}from"./input.js";function T(e){const s=b.c(10);let l,t,r;s[0]!==e?({className:l,size:r,...t}=e,s[0]=e,s[1]=l,s[2]=t,s[3]=r):(l=s[1],t=s[2],r=s[3]);const a=r===void 0?"default":r;let i;s[4]!==l?(i=K("group/card flex flex-col gap-4 overflow-hidden rounded-lg bg-card py-4 text-card-foreground text-xs/relaxed ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg",l),s[4]=l,s[5]=i):i=s[5];let o;return s[6]!==t||s[7]!==a||s[8]!==i?(o=c.jsx("div",{className:i,"data-size":a,"data-slot":"card",...t}),s[6]=t,s[7]=a,s[8]=i,s[9]=o):o=s[9],o}function Y(e){const s=b.c(8);let l,t;s[0]!==e?({className:l,...t}=e,s[0]=e,s[1]=l,s[2]=t):(l=s[1],t=s[2]);let r;s[3]!==l?(r=K("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-lg px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] group-data-[size=sm]/card:px-3 [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",l),s[3]=l,s[4]=r):r=s[4];let a;return s[5]!==t||s[6]!==r?(a=c.jsx("div",{className:r,"data-slot":"card-header",...t}),s[5]=t,s[6]=r,s[7]=a):a=s[7],a}function H(e){const s=b.c(8);let l,t;s[0]!==e?({className:l,...t}=e,s[0]=e,s[1]=l,s[2]=t):(l=s[1],t=s[2]);let r;s[3]!==l?(r=K("font-medium text-sm",l),s[3]=l,s[4]=r):r=s[4];let a;return s[5]!==t||s[6]!==r?(a=c.jsx("div",{className:r,"data-slot":"card-title",...t}),s[5]=t,s[6]=r,s[7]=a):a=s[7],a}function J(e){const s=b.c(8);let l,t;s[0]!==e?({className:l,...t}=e,s[0]=e,s[1]=l,s[2]=t):(l=s[1],t=s[2]);let r;s[3]!==l?(r=K("text-muted-foreground text-xs/relaxed",l),s[3]=l,s[4]=r):r=s[4];let a;return s[5]!==t||s[6]!==r?(a=c.jsx("div",{className:r,"data-slot":"card-description",...t}),s[5]=t,s[6]=r,s[7]=a):a=s[7],a}function U(e){const s=b.c(8);let l,t;s[0]!==e?({className:l,...t}=e,s[0]=e,s[1]=l,s[2]=t):(l=s[1],t=s[2]);let r;s[3]!==l?(r=K("px-4 group-data-[size=sm]/card:px-3",l),s[3]=l,s[4]=r):r=s[4];let a;return s[5]!==t||s[6]!==r?(a=c.jsx("div",{className:r,"data-slot":"card-content",...t}),s[5]=t,s[6]=r,s[7]=a):a=s[7],a}function Z(){const e=b.c(39),s=P();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={resolver:B(R)},e[0]=l):l=e[0];const{register:t,handleSubmit:r,formState:a}=G(l),{errors:i,isSubmitting:o}=a;let N;e[1]!==s?(N=function(M){L(M),s({to:"/"})},e[1]=s,e[2]=N):N=e[2];const _=N;let S;e[3]===Symbol.for("react.memo_cache_sentinel")?(S=c.jsx(H,{children:"AWS Credentials"}),e[3]=S):S=e[3];let v;e[4]===Symbol.for("react.memo_cache_sentinel")?(v=c.jsxs(Y,{children:[S,c.jsxs(J,{children:["Run ",c.jsx("code",{children:"cat ~/hive/config/hive.toml"})," to get your credentials"]})]}),e[4]=v):v=e[4];let d;e[5]!==r||e[6]!==_?(d=r(_),e[5]=r,e[6]=_,e[7]=d):d=e[7];let A;e[8]===Symbol.for("react.memo_cache_sentinel")?(A=c.jsx(z,{children:c.jsx("label",{htmlFor:"accessKeyId",children:"Access Key ID"})}),e[8]=A):A=e[8];const w=!!i.accessKeyId;let n;e[9]!==t?(n=t("accessKeyId"),e[9]=t,e[10]=n):n=e[10];let m;e[11]!==w||e[12]!==n?(m=c.jsx(D,{"aria-invalid":w,autoComplete:"username",id:"accessKeyId",placeholder:"AKIAIOSFODNN7EXAMPLE",...n}),e[11]=w,e[12]=n,e[13]=m):m=e[13];let f;e[14]!==i.accessKeyId?(f=c.jsx(F,{errors:[i.accessKeyId]}),e[14]=i.accessKeyId,e[15]=f):f=e[15];let u;e[16]!==f||e[17]!==m?(u=c.jsxs($,{children:[A,m,f]}),e[16]=f,e[17]=m,e[18]=u):u=e[18];let I;e[19]===Symbol.for("react.memo_cache_sentinel")?(I=c.jsx(z,{children:c.jsx("label",{htmlFor:"secretAccessKey",children:"Secret Access Key"})}),e[19]=I):I=e[19];const E=!!i.secretAccessKey;let p;e[20]!==t?(p=t("secretAccessKey"),e[20]=t,e[21]=p):p=e[21];let x;e[22]!==E||e[23]!==p?(x=c.jsx(D,{"aria-invalid":E,autoComplete:"current-password",id:"secretAccessKey",placeholder:"wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",type:"password",...p}),e[22]=E,e[23]=p,e[24]=x):x=e[24];let h;e[25]!==i.secretAccessKey?(h=c.jsx(F,{errors:[i.secretAccessKey]}),e[25]=i.secretAccessKey,e[26]=h):h=e[26];let g;e[27]!==x||e[28]!==h?(g=c.jsxs($,{children:[I,x,h]}),e[27]=x,e[28]=h,e[29]=g):g=e[29];let j;e[30]!==o?(j=c.jsx(X,{className:"w-full",disabled:o,type:"submit",children:"Sign In"}),e[30]=o,e[31]=j):j=e[31];let y;e[32]!==u||e[33]!==g||e[34]!==j?(y=c.jsxs(O,{children:[u,g,j]}),e[32]=u,e[33]=g,e[34]=j,e[35]=y):y=e[35];let C;return e[36]!==y||e[37]!==d?(C=c.jsx("div",{className:"flex flex-1 items-center justify-center",children:c.jsxs(T,{className:"w-full max-w-sm",children:[v,c.jsx(U,{children:c.jsx("form",{onSubmit:d,children:y})})]})}),e[36]=y,e[37]=d,e[38]=C):C=e[38],C}export{Z as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/run-instances.js b/hive/services/hiveui/frontend/dist/assets/run-instances.js index 812e4759a..e51787898 100644 --- a/hive/services/hiveui/frontend/dist/assets/run-instances.js +++ b/hive/services/hiveui/frontend/dist/assets/run-instances.js @@ -1 +1 @@ -import{g as rn,A as Dt,h as Se,i as tt,k as Le,l as De,m as Bt,t as Pn,r as i,n as on,p as ke,q as zt,v as On,w as ye,x as Nn,E as sn,y as ln,z as Ve,C as jn,D as kn,F as Z,G as Vn,H as pe,I as Wt,J as Kt,K as mt,M as Ue,N as wt,P as $t,Q as Ln,R as cn,S as Dn,T as Fn,U as ht,j as h,V as J,W as qt,X as Ft,Y as Hn,Z as kt,_ as Un,$ as F,a0 as _n,a1 as xt,a2 as Bn,a3 as zn,a4 as Wn,a5 as an,a6 as Kn,a7 as un,a8 as $n,a9 as qn,aa as Ht,ab as fn,ac as Ne,ad as Yn,ae as Gn,af as Xn,ag as Qn,ah as Jn,ai as Zn,aj as er,ak as tr,al as nr,am as dn,an as pn,ao as Yt,ap as rr,aq as or,ar as sr,as as ir,at as mn,au as lr,av as It,c as qe,a as Ye,u as cr,aw as ar,ax as ur,ay as fr,B as Gt}from"./index.js";import{e as dr,f as gn,g as hn,h as Xt,i as pr,j as mr,k as gr,u as hr,a as xr,c as lt,b as ct,C as vt,F as at,I as yr}from"./field.js";import{u as Tt}from"./useSuspenseQuery.js";import{B as br}from"./back-link.js";import{E as Qt}from"./error-banner.js";import{P as Rr}from"./page-heading.js";import{C as Sr}from"./check.js";import{c as wr}from"./ec2.js";import{b as Ir}from"./ec22.js";const vr=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],xn=rn("chevron-down",vr);const Tr=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Mr=rn("chevron-up",Tr);function ut(t,e,n){return Math.floor(t/e)!==n}function Je(t,e){return e<0||e>=t.current.length}function Mt(t,e){return xe(t,{disabledIndices:e})}function Jt(t,e){return xe(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function xe(t,{startingIndex:e=-1,decrement:n=!1,disabledIndices:r,amount:s=1}={}){let o=e;do o+=n?-s:s;while(o>=0&&o<=t.current.length-1&&Ze(t,o,r));return o}function Cr(t,{event:e,orientation:n,loopFocus:r,rtl:s,cols:o,disabledIndices:c,minIndex:u,maxIndex:f,prevIndex:p,stopEvent:y=!1}){let a=p;const R=[],w={};let T=!1;{let l=null,g=-1;t.current.forEach((m,d)=>{if(m==null)return;const x=m.closest('[role="row"]');x&&(T=!0),(x!==l||g===-1)&&(l=x,g+=1,R[g]=[]),R[g].push(d),w[d]=g})}const b=T&&R.length>0&&R.some(l=>l.length!==o);function I(l){if(!b||p===-1)return;const g=w[p];if(g==null)return;const m=R[g].indexOf(p);let d=l==="up"?g-1:g+1;r&&(d<0?d=R.length-1:d>=R.length&&(d=0));const x=new Set;for(;d>=0&&d=0;N-=1){const ee=A[N];if(!Ze(t,ee,c))return ee}d=l==="up"?d-1:d+1,r&&(d<0?d=R.length-1:d>=R.length&&(d=0))}}if(e.key===Dt){const l=I("up");if(l!==void 0)y&&Se(e),a=l;else{if(y&&Se(e),p===-1)a=f;else if(a=xe(t,{startingIndex:a,amount:o,decrement:!0,disabledIndices:c}),r&&(p-og?d:d-o}Je(t,a)&&(a=p)}}if(e.key===tt){const l=I("down");l!==void 0?(y&&Se(e),a=l):(y&&Se(e),p===-1?a=u:(a=xe(t,{startingIndex:p,amount:o,disabledIndices:c}),r&&p+o>f&&(a=xe(t,{startingIndex:p%o-o,amount:o,disabledIndices:c}))),Je(t,a)&&(a=p))}if(n==="both"){const l=Bt(p/o);e.key===(s?Le:De)&&(y&&Se(e),p%o!==o-1?(a=xe(t,{startingIndex:p,disabledIndices:c}),r&&ut(a,o,l)&&(a=xe(t,{startingIndex:p-p%o-1,disabledIndices:c}))):r&&(a=xe(t,{startingIndex:p-p%o-1,disabledIndices:c})),ut(a,o,l)&&(a=p)),e.key===(s?De:Le)&&(y&&Se(e),p%o!==0?(a=xe(t,{startingIndex:p,decrement:!0,disabledIndices:c}),r&&ut(a,o,l)&&(a=xe(t,{startingIndex:p+(o-p%o),decrement:!0,disabledIndices:c}))):r&&(a=xe(t,{startingIndex:p+(o-p%o),decrement:!0,disabledIndices:c})),ut(a,o,l)&&(a=p));const g=Bt(f/o)===l;Je(t,a)&&(r&&g?a=e.key===(s?De:Le)?f:xe(t,{startingIndex:p-p%o-1,disabledIndices:c}):a=p)}return a}function Er(t,e,n){const r=[];let s=0;return t.forEach(({width:o,height:c},u)=>{let f=!1;for(;!f;){const p=[];for(let y=0;yr[y]==null)?(p.forEach(y=>{r[y]=u}),f=!0):s+=1}}),[...r]}function Ar(t,e,n,r,s){if(t===-1)return-1;const o=n.indexOf(t),c=e[t];switch(s){case"tl":return o;case"tr":return c?o+c.width-1:o;case"bl":return c?o+(c.height-1)*r:o;case"br":return n.lastIndexOf(t);default:return-1}}function Pr(t,e){return e.flatMap((n,r)=>t.includes(n)?[r]:[])}function Ze(t,e,n){if(typeof n=="function")return n(e);if(n)return n.includes(e);const r=t.current[e];return r?r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true":!1}function Or(t,e={}){const n="rootStore"in t?t.rootStore:t,r=n.context.dataRef,{enabled:s=!0,event:o="click",toggle:c=!0,ignoreMouse:u=!1,stickIfOpen:f=!0,touchOpenDelay:p=0,reason:y=Pn}=e,a=i.useRef(void 0),R=on(),w=ke(),T=i.useMemo(()=>({onPointerDown(b){a.current=b.pointerType},onMouseDown(b){const I=a.current,l=b.nativeEvent,g=n.select("open");if(b.button!==0||o==="click"||zt(I,!0)&&u)return;const m=r.current.openEvent,d=m?.type,x=n.select("domReferenceElement")!==b.currentTarget,A=g&&x||!(g&&c&&(!(m&&f)||d==="click"||d==="mousedown"));if(Nn(l.target)){const N=ye(y,l,l.target);A&&I==="touch"&&p>0?w.start(p,()=>{n.setOpen(!0,N)}):n.setOpen(A,N);return}const P=b.currentTarget;R.request(()=>{const N=ye(y,l,P);A&&I==="touch"&&p>0?w.start(p,()=>{n.setOpen(!0,N)}):n.setOpen(A,N)})},onClick(b){if(o==="mousedown-only")return;const I=a.current;if(o==="mousedown"&&I){a.current=void 0;return}if(zt(I,!0)&&u)return;const l=n.select("open"),g=r.current.openEvent,m=n.select("domReferenceElement")!==b.currentTarget,d=l&&m||!(l&&c&&(!(g&&f)||On(g))),x=ye(y,b.nativeEvent,b.currentTarget);d&&I==="touch"&&p>0?w.start(p,()=>{n.setOpen(!0,x)}):n.setOpen(d,x)},onKeyDown(){a.current=void 0}}),[r,o,u,n,f,c,R,w,p,y]);return i.useMemo(()=>s?{reference:T}:sn,[s,T])}const Nr="Escape";function yt(t,e,n){switch(t){case"vertical":return e;case"horizontal":return n;default:return e||n}}function ft(t,e){return yt(e,t===Dt||t===tt,t===Le||t===De)}function Ct(t,e,n){return yt(e,t===tt,n?t===Le:t===De)||t==="Enter"||t===" "||t===""}function jr(t,e,n){return yt(e,n?t===Le:t===De,t===tt)}function kr(t,e,n,r){const s=n?t===De:t===Le,o=t===Dt;return e==="both"||e==="horizontal"&&r&&r>1?t===Nr:yt(e,s,o)}function Vr(t,e){const n="rootStore"in t?t.rootStore:t,r=n.useState("open"),s=n.useState("floatingElement"),o=n.useState("domReferenceElement"),c=n.context.dataRef,{listRef:u,activeIndex:f,onNavigate:p=()=>{},enabled:y=!0,selectedIndex:a=null,allowEscape:R=!1,loopFocus:w=!1,nested:T=!1,rtl:b=!1,virtual:I=!1,focusItemOnOpen:l="auto",focusItemOnHover:g=!0,openOnArrowKeyDown:m=!0,disabledIndices:d=void 0,orientation:x="vertical",parentOrientation:A,cols:P=1,id:N,resetOnPointerLeave:ee=!0,externalTree:ce}=e,Q=ln(s),z=Ve(Q),ne=jn(),j=kn(ce);Z(()=>{c.current.orientation=x},[c,x]);const se=Vn(o),q=i.useRef(l),E=i.useRef(a??-1),W=i.useRef(null),v=i.useRef(!0),O=pe(M=>{p(E.current===-1?null:E.current,M)}),te=i.useRef(O),C=i.useRef(!!s),Y=i.useRef(r),H=i.useRef(!1),ae=i.useRef(!1),V=Ve(d),$=Ve(r),oe=Ve(a),Ie=Ve(ee),Te=pe(()=>{function M(K){I?j?.events.emit("virtualfocus",K):Wt(K,{sync:H.current,preventScroll:!0})}const D=u.current[E.current],S=ae.current;D&&M(D),(H.current?K=>K():requestAnimationFrame)(()=>{const K=u.current[E.current]||D;if(!K)return;D||M(K),G&&(S||!v.current)&&K.scrollIntoView?.({block:"nearest",inline:"nearest"})})});Z(()=>{y&&(r&&s?(E.current=a??-1,q.current&&a!=null&&(ae.current=!0,O())):C.current&&(E.current=-1,te.current()))},[y,r,s,a,O]),Z(()=>{if(y){if(!r){H.current=!1;return}if(s)if(f==null){if(H.current=!1,oe.current!=null)return;if(C.current&&(E.current=-1,Te()),(!Y.current||!C.current)&&q.current&&(W.current!=null||q.current===!0&&W.current==null)){let M=0;const D=()=>{u.current[0]==null?(M<2&&(M?requestAnimationFrame:queueMicrotask)(D),M+=1):(E.current=W.current==null||Ct(W.current,x,b)||T?Mt(u):Jt(u),W.current=null,O())};D()}}else Je(u,f)||(E.current=f,Te(),ae.current=!1)}},[y,r,s,f,oe,T,u,x,b,O,Te,V]),Z(()=>{if(!y||s||!j||I||!C.current)return;const M=j.nodesRef.current,D=M.find(K=>K.id===ne)?.context?.elements.floating,S=Kt(mt(s)),_=M.some(K=>K.context&&Ue(K.context.elements.floating,S));D&&!_&&v.current&&D.focus({preventScroll:!0})},[y,s,j,ne,I]),Z(()=>{te.current=O,Y.current=r,C.current=!!s}),Z(()=>{r||(W.current=null,q.current=l)},[r,l]);const B=f!=null,G=i.useMemo(()=>{function M(S){if(!$.current)return;const _=u.current.indexOf(S.currentTarget);_!==-1&&E.current!==_&&(E.current=_,O(S))}return{onFocus(S){H.current=!0,M(S)},onClick:({currentTarget:S})=>S.focus({preventScroll:!0}),onMouseMove(S){H.current=!0,ae.current=!1,g&&M(S)},onPointerLeave(S){if(!$.current||!v.current||S.pointerType==="touch")return;H.current=!0;const _=S.relatedTarget;!g||u.current.includes(_)||Ie.current&&(Wt(null,{sync:!0}),E.current=-1,O(S),I||z.current?.focus({preventScroll:!0}))}}},[$,z,g,u,O,Ie,I]),ue=i.useCallback(()=>A??j?.nodesRef.current.find(M=>M.id===ne)?.context?.dataRef?.current.orientation,[ne,j,A]),ie=pe(M=>{if(v.current=!1,H.current=!0,M.which===229||!$.current&&M.currentTarget===z.current)return;if(T&&kr(M.key,x,b,P)){ft(M.key,ue())||Se(M),n.setOpen(!1,ye(wt,M.nativeEvent)),$t(o)&&(I?j?.events.emit("virtualfocus",o):o.focus());return}const D=E.current,S=Mt(u,d),_=Jt(u,d);if(se||(M.key==="Home"&&(Se(M),E.current=S,O(M)),M.key==="End"&&(Se(M),E.current=_,O(M))),P>1){const K=Array.from({length:u.current.length},()=>({width:1,height:1})),L=Er(K,P),ge=L.findIndex(Re=>Re!=null&&!Ze(u,Re,d)),we=L.reduce((Re,re,he)=>re!=null&&!Ze(u,re,d)?he:Re,-1),Ee=L[Cr({current:L.map(Re=>Re!=null?u.current[Re]:null)},{event:M,orientation:x,loopFocus:w,rtl:b,cols:P,disabledIndices:Pr([...(typeof d!="function"?d:null)||u.current.map((Re,re)=>Ze(u,re,d)?re:void 0),void 0],L),minIndex:ge,maxIndex:we,prevIndex:Ar(E.current>_?S:E.current,K,L,P,M.key===tt?"bl":M.key===(b?Le:De)?"tr":"tl"),stopEvent:!0})];if(Ee!=null&&(E.current=Ee,O(M)),x==="both")return}if(ft(M.key,x)){if(Se(M),r&&!I&&Kt(M.currentTarget.ownerDocument)===M.currentTarget){E.current=Ct(M.key,x,b)?S:_,O(M);return}Ct(M.key,x,b)?w?D>=_?R&&D!==u.current.length?E.current=-1:(H.current=!1,E.current=S):E.current=xe(u,{startingIndex:D,disabledIndices:d}):E.current=Math.min(_,xe(u,{startingIndex:D,disabledIndices:d})):w?D<=S?R&&D!==-1?E.current=u.current.length:(H.current=!1,E.current=_):E.current=xe(u,{startingIndex:D,decrement:!0,disabledIndices:d}):E.current=Math.max(S,xe(u,{startingIndex:D,decrement:!0,disabledIndices:d})),Je(u,E.current)&&(E.current=-1),O(M)}}),fe=i.useMemo(()=>I&&r&&B&&{"aria-activedescendant":`${N}-${f}`},[I,r,B,N,f]),be=i.useMemo(()=>({"aria-orientation":x==="both"?void 0:x,...se?{}:fe,onKeyDown(M){if(M.key==="Tab"&&M.shiftKey&&r&&!I){const D=Ln(M.nativeEvent);if(D&&!Ue(z.current,D))return;Se(M),n.setOpen(!1,ye(cn,M.nativeEvent)),$t(o)&&o.focus();return}ie(M)},onPointerMove(){v.current=!0}}),[fe,ie,z,x,se,n,r,I,o]),X=i.useMemo(()=>{function M(S){l==="auto"&&Dn(S.nativeEvent)&&(q.current=!I)}function D(S){q.current=l,l==="auto"&&Fn(S.nativeEvent)&&(q.current=!0)}return{onKeyDown(S){const _=n.select("open");v.current=!1;const K=S.key.startsWith("Arrow"),L=jr(S.key,ue(),b),ge=ft(S.key,x),we=(T?L:ge)||S.key==="Enter"||S.key.trim()==="";if(I&&_)return ie(S);if(!(!_&&!m&&K)){if(we){const Ee=ft(S.key,ue());W.current=T&&Ee?null:S.key}if(T){L&&(Se(S),_?(E.current=Mt(u,V.current),O(S)):n.setOpen(!0,ye(wt,S.nativeEvent,S.currentTarget)));return}ge&&(oe.current!=null&&(E.current=oe.current),Se(S),!_&&m?n.setOpen(!0,ye(wt,S.nativeEvent,S.currentTarget)):ie(S),_&&O(S))}},onFocus(S){n.select("open")&&!I&&(E.current=-1,O(S))},onPointerDown:D,onPointerEnter:D,onMouseDown:M,onClick:M}},[ie,V,l,u,T,O,n,m,x,ue,b,oe,I]),de=i.useMemo(()=>({...fe,...X}),[fe,X]);return i.useMemo(()=>y?{reference:de,floating:be,item:G,trigger:X}:{},[y,de,be,X,G])}function Lr(t,e){const n="rootStore"in t?t.rootStore:t,r=n.context.dataRef,s=n.useState("open"),{listRef:o,activeIndex:c,onMatch:u,onTypingChange:f,enabled:p=!0,resetMs:y=750,selectedIndex:a=null}=e,R=ke(),w=i.useRef(""),T=i.useRef(a??c??-1),b=i.useRef(null);Z(()=>{!s&&a!==null||(R.clear(),b.current=null,w.current!==""&&(w.current=""))},[s,a,R]),Z(()=>{s&&w.current===""&&(T.current=a??c??-1)},[s,a,c]);const I=pe(x=>{x?r.current.typing||(r.current.typing=x,f?.(x)):r.current.typing&&(r.current.typing=x,f?.(x))}),l=pe(x=>{function A(z,ne,j){const se=ne.find(q=>q?.toLocaleLowerCase().indexOf(j.toLocaleLowerCase())===0);return se?z.indexOf(se):-1}const P=o.current;if(w.current.length>0&&w.current[0]!==" "&&(A(P,P,w.current)===-1?I(!1):x.key===" "&&Se(x)),P==null||x.key.length!==1||x.ctrlKey||x.metaKey||x.altKey)return;s&&x.key!==" "&&(Se(x),I(!0));const N=w.current==="";N&&(T.current=a??c??-1),P.every(z=>z?z[0]?.toLocaleLowerCase()!==z[1]?.toLocaleLowerCase():!0)&&w.current===x.key&&(w.current="",T.current=b.current),w.current+=x.key,R.start(y,()=>{w.current="",T.current=b.current,I(!1)});const ce=N?a??c??-1:T.current,Q=A(P,[...P.slice((ce||0)+1),...P.slice(0,(ce||0)+1)],w.current);Q!==-1?(u?.(Q),b.current=Q):x.key!==" "&&(w.current="",I(!1))}),g=pe(x=>{const A=x.relatedTarget,P=n.select("domReferenceElement"),N=n.select("floatingElement"),ee=Ue(P,A),ce=Ue(N,A);ee||ce||(R.clear(),w.current="",T.current=b.current,I(!1))}),m=i.useMemo(()=>({onKeyDown:l,onBlur:g}),[l,g]),d=i.useMemo(()=>({onKeyDown:l,onKeyUp(x){x.key===" "&&I(!1)},onBlur:g}),[l,g,I]);return i.useMemo(()=>p?{reference:m,floating:d}:{},[p,m,d])}const yn=i.createContext(null),bn=i.createContext(null);function je(){const t=i.useContext(yn);if(t===null)throw new Error(ht(60));return t}function Rn(){const t=i.useContext(bn);if(t===null)throw new Error(ht(61));return t}const Dr=(t,e)=>Object.is(t,e);function $e(t,e,n){return t==null||e==null?Object.is(t,e):n(t,e)}function Fr(t,e,n){return!t||t.length===0?!1:t.some(r=>r===void 0?!1:$e(e,r,n))}function et(t,e,n){return!t||t.length===0?-1:t.findIndex(r=>r===void 0?!1:$e(r,e,n))}function Hr(t,e,n){return t.filter(r=>!$e(e,r,n))}function Vt(t){if(t==null)return"";if(typeof t=="string")return t;try{return JSON.stringify(t)}catch{return String(t)}}function Sn(t){return t!=null&&t.length>0&&typeof t[0]=="object"&&t[0]!=null&&"items"in t[0]}function Ur(t){if(!Array.isArray(t))return t!=null&&!("null"in t);if(Sn(t)){for(const e of t)for(const n of e.items)if(n&&n.value==null&&n.label!=null)return!0;return!1}for(const e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function _r(t,e){if(e&&t!=null)return e(t)??"";if(t&&typeof t=="object"){if("label"in t&&t.label!=null)return String(t.label);if("value"in t)return String(t.value)}return Vt(t)}function Ke(t,e){return e&&t!=null?e(t)??"":t&&typeof t=="object"&&"value"in t&&"label"in t?Vt(t.value):Vt(t)}function wn(t,e,n){function r(){return _r(t,n)}if(n&&t!=null)return n(t);if(t&&typeof t=="object"&&"label"in t&&t.label!=null)return t.label;if(e&&!Array.isArray(e))return e[t]??r();if(Array.isArray(e)){const s=Sn(e)?e.flatMap(o=>o.items):e;if(t==null||typeof t!="object"){const o=s.find(c=>c.value===t);return o&&o.label!=null?o.label:r()}if("value"in t){const o=s.find(c=>c&&c.value===t.value);if(o&&o.label!=null)return o.label}}return r()}function Br(t,e,n){return t.reduce((r,s,o)=>(o>0&&r.push(", "),r.push(h.jsx(i.Fragment,{children:wn(s,e,n)},o)),r),[])}const k={id:J(t=>t.id),modal:J(t=>t.modal),multiple:J(t=>t.multiple),items:J(t=>t.items),itemToStringLabel:J(t=>t.itemToStringLabel),itemToStringValue:J(t=>t.itemToStringValue),isItemEqualToValue:J(t=>t.isItemEqualToValue),value:J(t=>t.value),hasSelectedValue:J(t=>{const{value:e,multiple:n,itemToStringValue:r}=t;return e==null?!1:n&&Array.isArray(e)?e.length>0:Ke(e,r)!==""}),hasNullItemLabel:J((t,e)=>e?Ur(t.items):!1),open:J(t=>t.open),mounted:J(t=>t.mounted),forceMount:J(t=>t.forceMount),transitionStatus:J(t=>t.transitionStatus),openMethod:J(t=>t.openMethod),activeIndex:J(t=>t.activeIndex),selectedIndex:J(t=>t.selectedIndex),isActive:J((t,e)=>t.activeIndex===e),isSelected:J((t,e,n)=>{const r=t.isItemEqualToValue,s=t.value;return t.multiple?Array.isArray(s)&&s.some(o=>$e(n,o,r)):t.selectedIndex===e&&t.selectedIndex!==null?!0:$e(n,s,r)}),isSelectedByFocus:J((t,e)=>t.selectedIndex===e),popupProps:J(t=>t.popupProps),triggerProps:J(t=>t.triggerProps),triggerElement:J(t=>t.triggerElement),positionerElement:J(t=>t.positionerElement),listElement:J(t=>t.listElement),scrollUpArrowVisible:J(t=>t.scrollUpArrowVisible),scrollDownArrowVisible:J(t=>t.scrollDownArrowVisible),hasScrollArrows:J(t=>t.hasScrollArrows)};function zr(t,e){const n=i.useRef(t),r=pe(e);Z(()=>{n.current!==t&&r(n.current)},[t,r]),Z(()=>{n.current=t},[t])}function Wr(t){const{id:e,value:n,defaultValue:r=null,onValueChange:s,open:o,defaultOpen:c=!1,onOpenChange:u,name:f,autoComplete:p,disabled:y=!1,readOnly:a=!1,required:R=!1,modal:w=!0,actionsRef:T,inputRef:b,onOpenChangeComplete:I,items:l,multiple:g=!1,itemToStringLabel:m,itemToStringValue:d,isItemEqualToValue:x=Dr,highlightItemOnHover:A=!0,children:P}=t,{clearErrors:N}=dr(),{setDirty:ee,setTouched:ce,setFocused:Q,shouldValidateOnChange:z,validityData:ne,setFilled:j,name:se,disabled:q,validation:E,validationMode:W}=gn(),v=hn({id:e}),O=q||y,te=se??f,[C,Y]=Xt({controlled:n,default:g?r??qt:r,name:"Select",state:"value"}),[H,ae]=Xt({controlled:o,default:c,name:"Select",state:"open"}),V=i.useRef([]),$=i.useRef([]),oe=i.useRef(null),Ie=i.useRef(null),Te=i.useRef(0),B=i.useRef(null),G=i.useRef([]),ue=i.useRef(!1),ie=i.useRef(!1),fe=i.useRef(null),be=i.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),X=i.useRef(!1),{mounted:de,setMounted:M,transitionStatus:D}=Ft(H),{openMethod:S,triggerProps:_,reset:K}=Hn(H),L=kt(()=>new Un({id:v,modal:w,multiple:g,itemToStringLabel:m,itemToStringValue:d,isItemEqualToValue:x,value:C,open:H,mounted:de,transitionStatus:D,items:l,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,ge=F(L,k.activeIndex),we=F(L,k.selectedIndex),Ee=F(L,k.triggerElement),Re=F(L,k.positionerElement),re=i.useMemo(()=>g&&Array.isArray(C)&&C.length===0?"":Ke(C,d),[g,C,d]),he=i.useMemo(()=>g&&Array.isArray(C)?C.map(U=>Ke(U,d)):Ke(C,d),[g,C,d]),me=Ve(L.state.triggerElement);pr({id:v,commit:E.commit,value:C,controlRef:me,name:te,getValue:()=>he});const _e=i.useRef(C);Z(()=>{C!==_e.current&&L.set("forceMount",!0)},[L,C]),Z(()=>{j(g?Array.isArray(C)&&C.length>0:C!=null)},[g,C,j]),Z(function(){if(H)return;const le=G.current;if(g){const Ce=Array.isArray(C)?C:[];if(Ce.length===0){L.set("selectedIndex",null);return}const ve=Ce[Ce.length-1],it=et(le,ve,x);L.set("selectedIndex",it===-1?null:it);return}const Me=et(le,C,x);L.set("selectedIndex",Me===-1?null:Me)},[g,H,C,G,x,L]),zr(C,()=>{N(te),ee(C!==ne.initialValue),z()?E.commit(C):E.commit(C,!0)});const Ge=pe((U,le)=>{if(u?.(U,le),!le.isCanceled&&(ae(U),!U&&(le.reason===cn||le.reason===_n)&&(ce(!0),Q(!1),W==="onBlur"&&E.commit(C)),!U&&L.state.activeIndex!==null)){const Me=V.current[L.state.activeIndex];queueMicrotask(()=>{Me?.setAttribute("tabindex","-1")})}}),Be=pe(()=>{M(!1),L.set("activeIndex",null),K(),I?.(!1)});xt({enabled:!T,open:H,ref:oe,onComplete(){H||Be()}}),i.useImperativeHandle(T,()=>({unmount:Be}),[Be]);const Fe=pe((U,le)=>{s?.(U,le),!le.isCanceled&&Y(U)}),Ae=pe(()=>{const U=L.state.listElement||oe.current;if(!U)return;const le=U.scrollTop,Me=U.scrollTop+U.clientHeight,Ce=le>1,ve=Mean(ze(),_,v?{id:v}:sn),[ze,_,v]);Kn(()=>{L.update({popupProps:We(),triggerProps:Qe})}),Z(()=>{L.update({id:v,modal:w,multiple:g,value:C,open:H,mounted:de,transitionStatus:D,popupProps:We(),triggerProps:Qe,items:l,itemToStringLabel:m,itemToStringValue:d,isItemEqualToValue:x,openMethod:S})},[L,v,w,g,C,H,de,D,We,Qe,l,m,d,x,S]);const ot=i.useMemo(()=>({store:L,name:te,required:R,disabled:O,readOnly:a,multiple:g,itemToStringLabel:m,itemToStringValue:d,highlightItemOnHover:A,setValue:Fe,setOpen:Ge,listRef:V,popupRef:oe,scrollHandlerRef:Ie,handleScrollArrowVisibility:Ae,scrollArrowsMountedCountRef:Te,getItemProps:rt,events:Pe.context.events,valueRef:B,valuesRef:G,labelsRef:$,typingRef:ue,selectionRef:be,selectedItemTextRef:fe,validation:E,onOpenChangeComplete:I,keyboardActiveRef:ie,alignItemWithTriggerActiveRef:X,initialValueRef:_e}),[L,te,R,O,a,g,m,d,A,Fe,Ge,rt,Pe.context.events,E,I,Ae]),st=un(b,E.inputRef),Rt=g&&Array.isArray(C)&&C.length>0,St=i.useMemo(()=>!g||!Array.isArray(C)||!te?null:C.map(U=>{const le=Ke(U,d);return h.jsx("input",{type:"hidden",name:te,value:le},le)}),[g,C,te,d]);return h.jsx(yn.Provider,{value:ot,children:h.jsxs(bn.Provider,{value:Pe,children:[P,h.jsx("input",{...E.getInputValidationProps({onFocus(){L.state.triggerElement?.focus({focusVisible:!0})},onChange(U){if(U.nativeEvent.defaultPrevented)return;const le=U.target.value,Me=ye(Ht,U.nativeEvent);function Ce(){if(g)return;const ve=G.current.find(it=>Ke(it,d).toLowerCase()===le.toLowerCase());ve!=null&&(ee(ve!==ne.initialValue),Fe(ve,Me),z()&&E.commit(ve))}L.set("forceMount",!0),queueMicrotask(Ce)}}),name:g?void 0:te,autoComplete:p,value:re,disabled:O,required:R&&!Rt,readOnly:a,ref:st,style:te?$n:qn,tabIndex:-1,"aria-hidden":!0}),St]})})}function Kr(t){const e=t.getBoundingClientRect(),n=window.getComputedStyle(t,"::before"),r=window.getComputedStyle(t,"::after");if(!(n.content!=="none"||r.content!=="none"))return e;const o=parseFloat(n.width)||0,c=parseFloat(n.height)||0,u=parseFloat(r.width)||0,f=parseFloat(r.height)||0,p=Math.max(e.width,o,u),y=Math.max(e.height,c,f),a=p-e.width,R=y-e.height;return{left:e.left-a/2,right:e.right+a/2,top:e.top-R/2,bottom:e.bottom+R/2}}const dt=2,$r=400,Zt=200,qr={...Gn,...gr,value:()=>null},Yr=i.forwardRef(function(e,n){const{render:r,className:s,id:o,disabled:c=!1,nativeButton:u=!0,...f}=e,{setTouched:p,setFocused:y,validationMode:a,state:R,disabled:w}=gn(),{labelId:T}=mr(),{store:b,setOpen:I,selectionRef:l,validation:g,readOnly:m,required:d,alignItemWithTriggerActiveRef:x,disabled:A,keyboardActiveRef:P}=je(),N=w||A||c,ee=F(b,k.open),ce=F(b,k.value),Q=F(b,k.triggerProps),z=F(b,k.positionerElement),ne=F(b,k.listElement),j=F(b,k.id),se=F(b,k.hasSelectedValue),q=!se&&ee,E=F(b,k.hasNullItemLabel,q),W=o??j;hn({id:W});const v=Ve(z),O=i.useRef(null),{getButtonProps:te,buttonRef:C}=fn({disabled:N,native:u}),Y=pe(G=>{b.set("triggerElement",G)}),H=un(n,O,C,Y),ae=ke(),V=ke(),$=ke(),oe=ke();i.useEffect(()=>{if(ee)return!(se||E)?$.start($r,()=>{l.current.allowUnselectedMouseUp=!0,l.current.allowSelectedMouseUp=!0}):oe.start(Zt,()=>{l.current.allowUnselectedMouseUp=!0,$.start(Zt,()=>{l.current.allowSelectedMouseUp=!0})}),()=>{$.clear(),oe.clear()};l.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},V.clear()},[ee,se,E,l,V,$,oe]);const Ie=i.useMemo(()=>ne?.id??ln(z)?.id,[ne,z]),Te=an(Q,{id:W,role:"combobox","aria-expanded":ee?"true":"false","aria-haspopup":"listbox","aria-controls":ee?Ie:void 0,"aria-labelledby":T,"aria-readonly":m||void 0,"aria-required":d||void 0,tabIndex:N?-1:0,ref:H,onFocus(G){y(!0),ee&&x.current&&I(!1,ye(Ht,G.nativeEvent)),ae.start(0,()=>{b.set("forceMount",!0)})},onBlur(G){Ue(z,G.relatedTarget)||(p(!0),y(!1),a==="onBlur"&&g.commit(ce))},onPointerMove(){P.current=!1},onKeyDown(){P.current=!0},onMouseDown(G){if(ee)return;const ue=mt(G.currentTarget);function ie(fe){if(!O.current)return;const be=fe.target;if(Ue(O.current,be)||Ue(v.current,be)||be===O.current)return;const X=Kr(O.current);fe.clientX>=X.left-dt&&fe.clientX<=X.right+dt&&fe.clientY>=X.top-dt&&fe.clientY<=X.bottom+dt||I(!1,ye(Yn,fe))}V.start(0,()=>{ue.addEventListener("mouseup",ie,{once:!0})})}},g.getValidationProps,f,te);Te.role="combobox";const B={...R,open:ee,disabled:N,value:ce,readOnly:m,placeholder:!se};return Ne("button",e,{ref:[n,O],state:B,stateAttributesMapping:qr,props:Te})}),Gr={value:()=>null},Xr=i.forwardRef(function(e,n){const{className:r,render:s,children:o,placeholder:c,...u}=e,{store:f,valueRef:p}=je(),y=F(f,k.value),a=F(f,k.items),R=F(f,k.itemToStringLabel),w=F(f,k.hasSelectedValue),T=!w&&c!=null&&o==null,b=F(f,k.hasNullItemLabel,T),I={value:y,placeholder:!w};let l=null;return typeof o=="function"?l=o(y):o!=null?l=o:!w&&c!=null&&!b?l=c:Array.isArray(y)?l=Br(y,a,R):l=wn(y,a,R),Ne("span",e,{state:I,ref:[n,p],props:[{children:l},u],stateAttributesMapping:Gr})}),Qr=i.forwardRef(function(e,n){const{className:r,render:s,...o}=e,{store:c}=je(),f={open:F(c,k.open)};return Ne("span",e,{state:f,ref:n,props:[{"aria-hidden":!0,children:"▼"},o],stateAttributesMapping:Xn})}),Jr=i.createContext(void 0),Zr=i.forwardRef(function(e,n){const{store:r}=je(),s=F(r,k.mounted),o=F(r,k.forceMount);return s||o?h.jsx(Jr.Provider,{value:!0,children:h.jsx(Qn,{ref:n,...e})}):null}),In=i.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function eo(){return i.useContext(In)}function to(t){const{children:e,elementsRef:n,labelsRef:r,onMapChange:s}=t,o=pe(s),c=i.useRef(0),u=kt(ro).current,f=kt(no).current,[p,y]=i.useState(0),a=i.useRef(p),R=pe((l,g)=>{f.set(l,g??null),a.current+=1,y(a.current)}),w=pe(l=>{f.delete(l),a.current+=1,y(a.current)}),T=i.useMemo(()=>{const l=new Map;return Array.from(f.keys()).filter(m=>m.isConnected).sort(oo).forEach((m,d)=>{const x=f.get(m)??{};l.set(m,{...x,index:d})}),l},[f,p]);Z(()=>{if(typeof MutationObserver!="function"||T.size===0)return;const l=new MutationObserver(g=>{const m=new Set,d=x=>m.has(x)?m.delete(x):m.add(x);g.forEach(x=>{x.removedNodes.forEach(d),x.addedNodes.forEach(d)}),m.size===0&&(a.current+=1,y(a.current))});return T.forEach((g,m)=>{m.parentElement&&l.observe(m.parentElement,{childList:!0})}),()=>{l.disconnect()}},[T]),Z(()=>{a.current===p&&(n.current.length!==T.size&&(n.current.length=T.size),r&&r.current.length!==T.size&&(r.current.length=T.size),c.current=T.size),o(T)},[o,T,n,r,p]),Z(()=>()=>{n.current=[]},[n]),Z(()=>()=>{r&&(r.current=[])},[r]);const b=pe(l=>(u.add(l),()=>{u.delete(l)}));Z(()=>{u.forEach(l=>l(T))},[u,T]);const I=i.useMemo(()=>({register:R,unregister:w,subscribeMapChange:b,elementsRef:n,labelsRef:r,nextIndexRef:c}),[R,w,b,n,r,c]);return h.jsx(In.Provider,{value:I,children:e})}function no(){return new Map}function ro(){return new Set}function oo(t,e){const n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const vn=i.createContext(void 0);function Ut(){const t=i.useContext(vn);if(!t)throw new Error(ht(59));return t}function gt(t,e){t&&Object.assign(t.style,e)}const Tn={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},so={position:"fixed"},io=i.forwardRef(function(e,n){const{anchor:r,positionMethod:s="absolute",className:o,render:c,side:u="bottom",align:f="center",sideOffset:p=0,alignOffset:y=0,collisionBoundary:a="clipping-ancestors",collisionPadding:R,arrowPadding:w=5,sticky:T=!1,disableAnchorTracking:b,alignItemWithTrigger:I=!0,collisionAvoidance:l=Jn,...g}=e,{store:m,listRef:d,labelsRef:x,alignItemWithTriggerActiveRef:A,selectedItemTextRef:P,valuesRef:N,initialValueRef:ee,popupRef:ce,setValue:Q}=je(),z=Rn(),ne=F(m,k.open),j=F(m,k.mounted),se=F(m,k.modal),q=F(m,k.value),E=F(m,k.openMethod),W=F(m,k.positionerElement),v=F(m,k.triggerElement),O=F(m,k.isItemEqualToValue),te=F(m,k.transitionStatus),C=i.useRef(null),Y=i.useRef(null),[H,ae]=i.useState(I),V=j&&H&&E!=="touch";!j&&H!==I&&ae(I),Z(()=>{j||(k.scrollUpArrowVisible(m.state)&&m.set("scrollUpArrowVisible",!1),k.scrollDownArrowVisible(m.state)&&m.set("scrollDownArrowVisible",!1))},[m,j]),i.useImperativeHandle(A,()=>V),Zn((V||se)&&ne&&E!=="touch",v);const $=er({anchor:r,floatingRootContext:z,positionMethod:s,mounted:j,side:u,sideOffset:p,align:f,alignOffset:y,arrowPadding:w,collisionBoundary:a,collisionPadding:R,sticky:T,disableAnchorTracking:b??V,collisionAvoidance:l,keepMounted:!0}),oe=V?"none":$.side,Ie=V?so:$.positionerStyles,Te=i.useMemo(()=>{const X={};return ne||(X.pointerEvents="none"),{role:"presentation",hidden:!j,style:{...Ie,...X}}},[ne,j,Ie]),B={open:ne,side:oe,align:$.align,anchorHidden:$.anchorHidden},G=pe(X=>{m.set("positionerElement",X)}),ue=Ne("div",e,{ref:[n,G],state:B,stateAttributesMapping:pn,props:[Te,dn(te),g]}),ie=i.useRef(0),fe=pe(X=>{if(X.size===0&&ie.current===0||N.current.length===0)return;const de=ie.current;if(ie.current=X.size,X.size===de)return;const M=ye(Ht);if(de!==0&&!m.state.multiple&&q!==null&&et(N.current,q,O)===-1){const S=ee.current,K=S!=null&&et(N.current,S,O)!==-1?S:null;Q(K,M),K===null&&(m.set("selectedIndex",null),P.current=null)}if(de!==0&&m.state.multiple&&Array.isArray(q)){const D=_=>et(N.current,_,O)!==-1,S=q.filter(_=>D(_));(S.length!==q.length||S.some(_=>!Fr(q,_,O)))&&(Q(S,M),S.length===0&&(m.set("selectedIndex",null),P.current=null))}if(ne&&V){m.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const D={height:""};gt(W,D),gt(ce.current,D)}}),be=i.useMemo(()=>({...$,side:oe,alignItemWithTriggerActive:V,setControlledAlignItemWithTrigger:ae,scrollUpArrowRef:C,scrollDownArrowRef:Y}),[$,oe,V,ae]);return h.jsx(to,{elementsRef:d,labelsRef:x,onMapChange:fe,children:h.jsxs(vn.Provider,{value:be,children:[j&&se&&h.jsx(tr,{inert:nr(!ne),cutout:v}),ue]})})});function Mn(t){const e=t.currentTarget.getBoundingClientRect();return e.top+1<=t.clientY&&t.clientY<=e.bottom-1&&e.left+1<=t.clientX&&t.clientX<=e.right-1}const pt="base-ui-disable-scrollbar",Lt={className:pt,getElement(t){return h.jsx("style",{nonce:t,href:pt,precedence:"base-ui:low",children:`.${pt}{scrollbar-width:none}.${pt}::-webkit-scrollbar{display:none}`})}},lo=i.createContext(void 0);function co(t){return i.useContext(lo)}function Et(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}const ao=i.createContext(void 0),uo={disableStyleElements:!1};function fo(){return i.useContext(ao)??uo}const He=1,po={...pn,...mn},mo=i.forwardRef(function(e,n){const{render:r,className:s,finalFocus:o,...c}=e,{store:u,popupRef:f,onOpenChangeComplete:p,setOpen:y,valueRef:a,selectedItemTextRef:R,keyboardActiveRef:w,multiple:T,handleScrollArrowVisibility:b,scrollHandlerRef:I,highlightItemOnHover:l}=je(),{side:g,align:m,alignItemWithTriggerActive:d,setControlledAlignItemWithTrigger:x,scrollDownArrowRef:A,scrollUpArrowRef:P}=Ut(),N=co()!=null,ee=Rn(),{nonce:ce,disableStyleElements:Q}=fo(),z=ke(),ne=F(u,k.id),j=F(u,k.open),se=F(u,k.mounted),q=F(u,k.popupProps),E=F(u,k.transitionStatus),W=F(u,k.triggerElement),v=F(u,k.positionerElement),O=F(u,k.listElement),te=i.useRef(0),C=i.useRef(!1),Y=i.useRef(0),H=i.useRef(!1),ae=i.useRef({}),V=on(),$=pe(B=>{if(!v||!f.current||!H.current)return;if(C.current||!d){b();return}const G=v.style.top==="0px",ue=v.style.bottom==="0px",ie=v.getBoundingClientRect().height,fe=mt(v),be=getComputedStyle(v),X=parseFloat(be.marginTop),de=parseFloat(be.marginBottom),M=en(getComputedStyle(f.current)),D=Math.min(fe.documentElement.clientHeight-X-de,M),S=B.scrollTop,_=tn(B);let K=0,L=null,ge=!1,we=!1;const Ee=re=>{v.style.height=`${re}px`},Re=(re,he)=>{const me=Et(re,0,D-ie);me>0&&Ee(ie+me),B.scrollTop=he,D-(ie+me)<=He&&(C.current=!0),b()};if(G){const re=_-S,he=ie+re,me=Math.min(he,D);if(K=me,re<=He){Re(re,_);return}D-me>He?we=!0:ge=!0}else if(ue){const re=S,he=ie+re,me=Math.min(he,D),_e=he-D;if(K=me,re<=He){Re(re,0);return}D-me>He?L=0:(ge=!0,S<_&&(L=S-(re-_e)))}if(K=Math.ceil(K),K!==0&&Ee(K),we||L!=null){const re=tn(B),he=we?re:Et(L,0,re);Math.abs(B.scrollTop-he)>He&&(B.scrollTop=he)}(ge||K>=D-He)&&(C.current=!0),b()});i.useImperativeHandle(I,()=>$,[$]),xt({open:j,ref:f,onComplete(){j&&p?.(!0)}});const oe={open:j,transitionStatus:E,side:g,align:m};Z(()=>{!v||!f.current||Object.keys(ae.current).length||(ae.current={top:v.style.top||"0",left:v.style.left||"0",right:v.style.right,height:v.style.height,bottom:v.style.bottom,minHeight:v.style.minHeight,maxHeight:v.style.maxHeight,marginTop:v.style.marginTop,marginBottom:v.style.marginBottom})},[f,v]),Z(()=>{j||d||(H.current=!1,C.current=!1,te.current=0,Y.current=0,gt(v,ae.current))},[j,d,v,f]),Z(()=>{const B=f.current;if(!(!j||!W||!v||!B||u.state.transitionStatus==="ending")){if(!d){H.current=!0,V.request(b),B.style.removeProperty("--transform-origin");return}queueMicrotask(()=>{const G=go(B);B.style.removeProperty("--transform-origin");try{const ue=getComputedStyle(v),ie=getComputedStyle(B),fe=mt(W),be=Yt(v),X=W.getBoundingClientRect(),de=v.getBoundingClientRect(),M=X.left,D=X.height,S=O||B,_=S.scrollHeight,K=parseFloat(ie.borderBottomWidth),L=parseFloat(ue.marginTop)||10,ge=parseFloat(ue.marginBottom)||10,we=parseFloat(ue.minHeight)||100,Ee=en(ie),Re=5,re=5,he=20,me=fe.documentElement.clientHeight-L-ge,_e=fe.documentElement.clientWidth,Ge=me-X.bottom+D,Be=R.current,Fe=a.current;let Ae,Pe=0,nt=0;if(Be&&Fe){const U=Fe.getBoundingClientRect();Ae=Be.getBoundingClientRect();const le=U.left-M,Me=Ae.left-de.left,Ce=U.top-X.top+U.height/2,ve=Ae.top-de.top+Ae.height/2;Pe=le-Me,nt=ve-Ce}const Xe=Ge+nt+ge+K;let Oe=Math.min(me,Xe);const bt=me-L-ge,ze=Xe-Oe,We=Math.max(Re,M+Pe),rt=_e-re,Qe=Math.max(0,We+de.width-rt);v.style.left=`${We-Qe}px`,v.style.height=`${Oe}px`,v.style.maxHeight="auto",v.style.marginTop=`${L}px`,v.style.marginBottom=`${ge}px`,B.style.height="100%";const ot=S.scrollHeight-S.clientHeight,st=ze>=ot;st&&(Oe=Math.min(me,de.height)-(ze-ot));const Rt=X.topme-he||Oex(!1));return}if(st){const U=Math.max(0,me-Xe);v.style.top=de.height>=bt?"0":`${U}px`,v.style.height=`${Oe}px`,S.scrollTop=S.scrollHeight-S.clientHeight,te.current=Math.max(we,Oe)}else v.style.bottom="0",te.current=Math.max(we,Oe),S.scrollTop=ze;if(Ae){const U=de.top,le=de.height,Me=Ae.top+Ae.height/2,Ce=le>0?(Me-U)/le*100:50,ve=Et(Ce,0,100);B.style.setProperty("--transform-origin",`50% ${ve}%`)}(te.current===me||Oe>=Ee)&&(C.current=!0),b(),setTimeout(()=>{H.current=!0})}finally{G()}})}},[u,j,v,W,a,R,f,b,d,x,V,A,P,O]),i.useEffect(()=>{if(!d||!v||!j)return;const B=Yt(v);function G(ue){y(!1,ye(ir,ue))}return B.addEventListener("resize",G),()=>{B.removeEventListener("resize",G)}},[y,d,v,j]);const Ie={...O?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":T||void 0,id:`${ne}-list`},onKeyDown(B){w.current=!0,N&&lr.has(B.key)&&B.stopPropagation()},onMouseMove(){w.current=!1},onPointerLeave(B){if(!l||Mn(B)||B.pointerType==="touch")return;const G=B.currentTarget;z.start(0,()=>{u.set("activeIndex",null),G.focus({preventScroll:!0})})},onScroll(B){O||$(B.currentTarget)},...d&&{style:O?{height:"100%"}:Tn}},Te=Ne("div",e,{ref:[n,f],state:oe,stateAttributesMapping:po,props:[q,Ie,dn(E),{className:!O&&d?Lt.className:void 0},c]});return h.jsxs(i.Fragment,{children:[!Q&&Lt.getElement(ce),h.jsx(sr,{context:ee,modal:!1,disabled:!se,returnFocus:o,restoreFocus:!0,children:Te})]})});function en(t){const e=t.maxHeight||"";return e.endsWith("px")&&parseFloat(e)||1/0}function tn(t){return Math.max(0,t.scrollHeight-t.clientHeight)}const nn=[["transform","none"],["scale","1"],["translate","0 0"]];function go(t){const{style:e}=t,n={};for(const[r,s]of nn)n[r]=e.getPropertyValue(r),e.setProperty(r,s,"important");return()=>{for(const[r]of nn){const s=n[r];s?e.setProperty(r,s):e.removeProperty(r)}}}const ho=i.forwardRef(function(e,n){const{className:r,render:s,...o}=e,{store:c,scrollHandlerRef:u}=je(),{alignItemWithTriggerActive:f}=Ut(),p=F(c,k.hasScrollArrows),y=F(c,k.openMethod),a=F(c,k.multiple),w={id:`${F(c,k.id)}-list`,role:"listbox","aria-multiselectable":a||void 0,onScroll(b){u.current?.(b.currentTarget)},...f&&{style:Tn},className:p&&y!=="touch"?Lt.className:void 0},T=pe(b=>{c.set("listElement",b)});return Ne("div",e,{ref:[n,T],props:[w,o]})});let Cn=(function(t){return t[t.None=0]="None",t[t.GuessFromOrder=1]="GuessFromOrder",t})({});function xo(t={}){const{label:e,metadata:n,textRef:r,indexGuessBehavior:s,index:o}=t,{register:c,unregister:u,subscribeMapChange:f,elementsRef:p,labelsRef:y,nextIndexRef:a}=eo(),R=i.useRef(-1),[w,T]=i.useState(o??(s===Cn.GuessFromOrder?()=>{if(R.current===-1){const l=a.current;a.current+=1,R.current=l}return R.current}:-1)),b=i.useRef(null),I=i.useCallback(l=>{if(b.current=l,w!==-1&&l!==null&&(p.current[w]=l,y)){const g=e!==void 0;y.current[w]=g?e:r?.current?.textContent??l.textContent}},[w,p,y,e,r]);return Z(()=>{if(o!=null)return;const l=b.current;if(l)return c(l,n),()=>{u(l)}},[o,c,u,n]),Z(()=>{if(o==null)return f(l=>{const g=b.current?l.get(b.current)?.index:null;g!=null&&T(g)})},[o,f,T]),i.useMemo(()=>({ref:I,index:w}),[w,I])}const En=i.createContext(void 0);function _t(){const t=i.useContext(En);if(!t)throw new Error(ht(57));return t}const yo=i.memo(i.forwardRef(function(e,n){const{render:r,className:s,value:o=null,label:c,disabled:u=!1,nativeButton:f=!1,...p}=e,y=i.useRef(null),a=xo({label:c,textRef:y,indexGuessBehavior:Cn.GuessFromOrder}),{store:R,getItemProps:w,setOpen:T,setValue:b,selectionRef:I,typingRef:l,valuesRef:g,keyboardActiveRef:m,multiple:d,highlightItemOnHover:x}=je(),A=ke(),P=F(R,k.isActive,a.index),N=F(R,k.isSelected,a.index,o),ee=F(R,k.isSelectedByFocus,a.index),ce=F(R,k.isItemEqualToValue),Q=a.index,z=Q!==-1,ne=i.useRef(null),j=Ve(Q);Z(()=>{if(!z)return;const V=g.current;return V[Q]=o,()=>{delete V[Q]}},[z,Q,o,g]),Z(()=>{if(!z)return;const V=R.state.value;let $=V;d&&Array.isArray(V)&&V.length>0&&($=V[V.length-1]),$!==void 0&&$e(o,$,ce)&&R.set("selectedIndex",Q)},[z,Q,d,ce,R,o]);const se={disabled:u,selected:N,highlighted:P},q=w({active:P,selected:N});q.onFocus=void 0,q.id=void 0;const E=i.useRef(null),W=i.useRef("mouse"),v=i.useRef(!1),{getButtonProps:O,buttonRef:te}=fn({disabled:u,focusableWhenDisabled:!0,native:f});function C(V){const $=R.state.value;if(d){const oe=Array.isArray($)?$:[],Ie=N?Hr(oe,o,ce):[...oe,o];b(Ie,ye(It,V))}else b(o,ye(It,V)),T(!1,ye(It,V))}const Y={role:"option","aria-selected":N,tabIndex:P?0:-1,onFocus(){R.set("activeIndex",Q)},onMouseEnter(){!m.current&&R.state.selectedIndex===null&&x&&R.set("activeIndex",Q)},onMouseMove(){x&&R.set("activeIndex",Q)},onMouseLeave(V){!x||m.current||Mn(V)||A.start(0,()=>{R.state.activeIndex===Q&&R.set("activeIndex",null)})},onTouchStart(){I.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(V){E.current=V.key,R.set("activeIndex",Q)},onClick(V){v.current=!1,!(V.type==="keydown"&&E.current===null)&&(u||E.current===" "&&l.current||W.current!=="touch"&&!P||(E.current=null,C(V.nativeEvent)))},onPointerEnter(V){W.current=V.pointerType},onPointerDown(V){W.current=V.pointerType,v.current=!0},onMouseUp(V){if(u)return;if(v.current){v.current=!1;return}const $=!I.current.allowSelectedMouseUp&&N,oe=!I.current.allowUnselectedMouseUp&&!N;$||oe||W.current!=="touch"&&!P||C(V.nativeEvent)}},H=Ne("div",e,{ref:[te,n,a.ref,ne],state:se,props:[q,Y,p,O]}),ae=i.useMemo(()=>({selected:N,indexRef:j,textRef:y,selectedByFocus:ee,hasRegistered:z}),[N,j,y,ee,z]);return h.jsx(En.Provider,{value:ae,children:H})})),bo=i.forwardRef(function(e,n){const r=e.keepMounted??!1,{selected:s}=_t();return r||s?h.jsx(Ro,{...e,ref:n}):null}),Ro=i.memo(i.forwardRef((t,e)=>{const{render:n,className:r,keepMounted:s,...o}=t,{selected:c}=_t(),u=i.useRef(null),{transitionStatus:f,setMounted:p}=Ft(c),a=Ne("span",t,{ref:[e,u],state:{selected:c,transitionStatus:f},props:[{"aria-hidden":!0,children:"✔️"},o],stateAttributesMapping:mn});return xt({open:c,ref:u,onComplete(){c||p(!1)}}),a})),So=i.memo(i.forwardRef(function(e,n){const{indexRef:r,textRef:s,selectedByFocus:o,hasRegistered:c}=_t(),{selectedItemTextRef:u}=je(),{className:f,render:p,...y}=e,a=i.useCallback(w=>{if(!w||!c)return;const T=u.current===null||!u.current.isConnected;(o||T&&r.current===0)&&(u.current=w)},[u,r,o,c]);return Ne("div",e,{ref:[a,n,s],props:y})})),An=i.forwardRef(function(e,n){const{render:r,className:s,direction:o,keepMounted:c=!1,...u}=e,{store:f,popupRef:p,listRef:y,handleScrollArrowVisibility:a,scrollArrowsMountedCountRef:R}=je(),{side:w,scrollDownArrowRef:T,scrollUpArrowRef:b}=Ut(),I=o==="up"?k.scrollUpArrowVisible:k.scrollDownArrowVisible,l=F(f,I),g=F(f,k.openMethod),m=l&&g!=="touch",d=ke(),x=o==="up"?b:T,{transitionStatus:A,setMounted:P}=Ft(m);Z(()=>(R.current+=1,f.state.hasScrollArrows||f.set("hasScrollArrows",!0),()=>{R.current=Math.max(0,R.current-1),R.current===0&&f.state.hasScrollArrows&&f.set("hasScrollArrows",!1)}),[f,R]),xt({open:m,ref:x,onComplete(){m||P(!1)}});const ce=Ne("div",e,{ref:[n,x],state:{direction:o,visible:m,side:w,transitionStatus:A},props:[{"aria-hidden":!0,children:o==="up"?"▲":"▼",style:{position:"absolute"},onMouseMove(z){if(z.movementX===0&&z.movementY===0||d.isStarted())return;f.set("activeIndex",null);function ne(){const j=f.state.listElement??p.current;if(!j)return;f.set("activeIndex",null),a();const se=j.scrollTop===0,q=Math.round(j.scrollTop+j.clientHeight)>=j.scrollHeight;if(y.current.length===0&&(o==="up"?f.set("scrollUpArrowVisible",!se):f.set("scrollDownArrowVisible",!q)),o==="up"&&se||o==="down"&&q){d.clear();return}if((f.state.listElement||p.current)&&y.current&&y.current.length>0){const W=y.current,v=x.current?.offsetHeight||0;if(o==="up"){let O=0;const te=j.scrollTop+v;for(let Y=0;Y=te){O=Y;break}}const C=Math.max(0,O-1);if(Cte){O=Math.max(0,Y-1);break}}const C=Math.min(W.length-1,O+1);if(C>O){const Y=W[C];Y&&(j.scrollTop=Y.offsetTop+Y.offsetHeight-j.clientHeight+v)}else j.scrollTop=j.scrollHeight-j.clientHeight}}d.start(40,ne)}d.start(40,ne)},onMouseLeave(){d.clear()}},u]});return m||c?ce:null}),wo=i.forwardRef(function(e,n){return h.jsx(An,{...e,ref:n,direction:"down"})}),Io=i.forwardRef(function(e,n){return h.jsx(An,{...e,ref:n,direction:"up"})}),At=Wr;function Pt(t){const e=qe.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;e[3]!==n?(s=Ye("flex flex-1 text-left",n),e[3]=n,e[4]=s):s=e[4];let o;return e[5]!==r||e[6]!==s?(o=h.jsx(Xr,{className:s,"data-slot":"select-value",...r}),e[5]=r,e[6]=s,e[7]=o):o=e[7],o}function Ot(t){const e=qe.c(15);let n,r,s,o,c;e[0]!==t?({className:r,size:c,id:s,children:n,...o}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=o,e[5]=c):(n=e[1],r=e[2],s=e[3],o=e[4],c=e[5]);const u=c===void 0?"default":c;let f;e[6]!==r?(f=Ye("flex w-fit items-center justify-between gap-1.5 whitespace-nowrap rounded-md border border-input bg-input/20 px-2 py-1.5 text-xs/relaxed outline-none transition-colors focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-[size=default]:h-7 data-[size=sm]:h-6 data-placeholder:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-3.5 [&_svg]:pointer-events-none [&_svg]:shrink-0",r),e[6]=r,e[7]=f):f=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx(Qr,{render:h.jsx(xn,{className:"pointer-events-none size-3.5 text-muted-foreground"})}),e[8]=p):p=e[8];let y;return e[9]!==n||e[10]!==s||e[11]!==o||e[12]!==u||e[13]!==f?(y=h.jsxs(Yr,{className:f,"data-size":u,"data-slot":"select-trigger",id:s,...o,children:[n,p]}),e[9]=n,e[10]=s,e[11]=o,e[12]=u,e[13]=f,e[14]=y):y=e[14],y}function Nt(t){const e=qe.c(26);let n,r,s,o,c,u,f,p;e[0]!==t?({className:r,children:n,side:o,sideOffset:c,align:u,alignOffset:f,alignItemWithTrigger:p,...s}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=o,e[5]=c,e[6]=u,e[7]=f,e[8]=p):(n=e[1],r=e[2],s=e[3],o=e[4],c=e[5],u=e[6],f=e[7],p=e[8]);const y=o===void 0?"bottom":o,a=c===void 0?4:c,R=u===void 0?"center":u,w=f===void 0?0:f,T=p===void 0?!0:p;let b;e[9]!==r?(b=Ye("data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-y-auto overflow-x-hidden rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-closed:animate-out data-open:animate-in",r),e[9]=r,e[10]=b):b=e[10];let I;e[11]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx(vo,{}),e[11]=I):I=e[11];let l;e[12]!==n?(l=h.jsx(ho,{children:n}),e[12]=n,e[13]=l):l=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx(To,{}),e[14]=g):g=e[14];let m;e[15]!==s||e[16]!==b||e[17]!==l?(m=h.jsxs(mo,{className:b,"data-slot":"select-content",...s,children:[I,l,g]}),e[15]=s,e[16]=b,e[17]=l,e[18]=m):m=e[18];let d;return e[19]!==R||e[20]!==T||e[21]!==w||e[22]!==y||e[23]!==a||e[24]!==m?(d=h.jsx(Zr,{children:h.jsx(io,{align:R,alignItemWithTrigger:T,alignOffset:w,className:"isolate z-50",side:y,sideOffset:a,children:m})}),e[19]=R,e[20]=T,e[21]=w,e[22]=y,e[23]=a,e[24]=m,e[25]=d):d=e[25],d}function jt(t){const e=qe.c(13);let n,r,s;e[0]!==t?({className:r,children:n,...s}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s):(n=e[1],r=e[2],s=e[3]);let o;e[4]!==r?(o=Ye("relative flex min-h-7 w-full cursor-default select-none items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-3.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",r),e[4]=r,e[5]=o):o=e[5];let c;e[6]!==n?(c=h.jsx(So,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:n}),e[6]=n,e[7]=c):c=e[7];let u;e[8]===Symbol.for("react.memo_cache_sentinel")?(u=h.jsx(bo,{render:h.jsx("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center"}),children:h.jsx(Sr,{className:"pointer-events-none"})}),e[8]=u):u=e[8];let f;return e[9]!==s||e[10]!==o||e[11]!==c?(f=h.jsxs(yo,{className:o,"data-slot":"select-item",...s,children:[c,u]}),e[9]=s,e[10]=o,e[11]=c,e[12]=f):f=e[12],f}function vo(t){const e=qe.c(9);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;e[3]!==n?(s=Ye("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5",n),e[3]=n,e[4]=s):s=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=h.jsx(Mr,{}),e[5]=o):o=e[5];let c;return e[6]!==r||e[7]!==s?(c=h.jsx(Io,{className:s,"data-slot":"select-scroll-up-button",...r,children:o}),e[6]=r,e[7]=s,e[8]=c):c=e[8],c}function To(t){const e=qe.c(9);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;e[3]!==n?(s=Ye("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5",n),e[3]=n,e[4]=s):s=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=h.jsx(xn,{}),e[5]=o):o=e[5];let c;return e[6]!==r||e[7]!==s?(c=h.jsx(wo,{className:s,"data-slot":"select-scroll-down-button",...r,children:o}),e[6]=r,e[7]=s,e[8]=c):c=e[8],c}const Mo=["sg-placeholder"],Co="subnet-placeholder";function Fo(){const t=cr(),{data:e}=Tt(ar),{data:n}=Tt(ur),{data:r}=Tt(fr),s=wr(),o=e.Images??[],c=n.KeyPairs??[],u=r.InstanceTypes?.flatMap(A=>A.InstanceType?[A.InstanceType]:[])??[],f=r.InstanceTypes?.reduce((A,P)=>{const N=P.InstanceType;return N&&(A[N]=(A[N]||0)+1),A},{})??{},p=Object.keys(f).sort(),y=o[0]?.ImageId,a=c[0]?.KeyName,R=p.find(A=>A.endsWith(".nano"))??p[0],{control:w,handleSubmit:T,register:b,watch:I,formState:{errors:l,isSubmitting:g}}=hr({resolver:xr(Ir.refine(A=>A.count<=(f[A.instanceType]??1),{message:"Cannot exceed available capacity",path:["count"]})),defaultValues:{count:1,imageId:y??"",keyName:a??"",instanceType:R??""}}),m=I("instanceType"),d=m?f[m]??1:1,x=async A=>{await s.mutateAsync({...A,securityGroupIds:Mo,subnetId:Co}),t({to:"/ec2/describe-instances"})};return h.jsxs(h.Fragment,{children:[h.jsx(br,{to:"/ec2/describe-instances",children:"Back to instances"}),h.jsx(Rr,{title:"Run EC2 Instances"}),u.length===0&&h.jsx(Qt,{msg:"No compute available. No new instances can be created until compute is available."}),s.error&&h.jsx(Qt,{error:s.error,msg:"Failed to create instance"}),h.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:T(x),children:[h.jsxs(lt,{children:[h.jsx(ct,{children:h.jsx("label",{htmlFor:"imageId",children:"Image"})}),h.jsx(vt,{control:w,name:"imageId",render:({field:A})=>{const P=o.find(N=>N.ImageId===A.value);return h.jsxs(At,{onValueChange:N=>A.onChange(N),value:A.value??"",children:[h.jsx(Ot,{"aria-invalid":!!l.imageId,className:"w-full",id:"imageId",children:h.jsx(Pt,{children:P?`${P.Name||"Unnamed"} (${P.Architecture})`:""})}),h.jsx(Nt,{children:o.map(N=>h.jsxs(jt,{value:N.ImageId??"",children:[N.Name||"Unnamed"," (",N.Architecture,")"]},N.ImageId))})]})}}),h.jsx(at,{errors:[l.imageId]})]}),h.jsxs(lt,{children:[h.jsx(ct,{children:h.jsx("label",{htmlFor:"instanceType",children:"Instance Type"})}),h.jsx(vt,{control:w,name:"instanceType",render:({field:A})=>h.jsxs(At,{onValueChange:P=>A.onChange(P),value:A.value?A.value:"",children:[h.jsx(Ot,{"aria-invalid":!!l.instanceType,className:"w-full",id:"instanceType",children:h.jsx(Pt,{})}),h.jsx(Nt,{children:p.map(P=>h.jsxs(jt,{value:P,children:[P," (",f[P]," available)"]},P))})]})}),h.jsx(at,{errors:[l.instanceType]})]}),h.jsxs(lt,{children:[h.jsx(ct,{children:h.jsx("label",{htmlFor:"keyName",children:"Key Pair"})}),h.jsx(vt,{control:w,name:"keyName",render:({field:A})=>h.jsxs(At,{onValueChange:P=>A.onChange(P),value:A.value?A.value:"",children:[h.jsx(Ot,{"aria-invalid":!!l.keyName,className:"w-full",id:"keyName",children:h.jsx(Pt,{})}),h.jsx(Nt,{children:c.map(P=>h.jsx(jt,{value:P.KeyName??"",children:P.KeyName},P.KeyPairId))})]})}),h.jsx(at,{errors:[l.keyName]})]}),h.jsxs(lt,{children:[h.jsx(ct,{children:h.jsx("label",{htmlFor:"count",children:"Number of Instances"})}),h.jsx(yr,{"aria-describedby":"count-description","aria-invalid":!!l.count,id:"count",type:"number",...b("count",{valueAsNumber:!0})}),h.jsx("p",{className:"text-muted-foreground text-xs",id:"count-description",children:m&&`Available capacity for ${m}: ${d}`}),h.jsx(at,{errors:[l.count]})]}),h.jsxs("div",{className:"flex gap-2",children:[h.jsx(Gt,{disabled:g||s.isPending,onClick:()=>t({to:"/ec2/describe-instances"}),type:"button",variant:"outline",children:"Cancel"}),h.jsx(Gt,{disabled:g||s.isPending||u.length===0,type:"submit",children:g||s.isPending?"Creating…":"Create Instance"})]})]})]})}export{Fo as component}; +import{u as $,l as R,m as U,n as q,p as H,j as e,B as C}from"./index.js";import{u as L,a as M,C as x}from"./zod.js";import{u as h}from"./useSuspenseQuery.js";import{B as W}from"./back-link.js";import{E as S}from"./error-banner.js";import{P as z}from"./page-heading.js";import{b as c,a as l,F as j}from"./field.js";import{I as G}from"./input.js";import{S as p,a as y,b as I,c as g,d as o}from"./select.js";import{f as J}from"./ec2.js";import{f as X}from"./ec22.js";import"./check.js";function oe(){const f=$(),{data:T}=h(R),{data:F}=h(U),{data:k}=h(q),{data:P}=h(H),r=J(),b=T.Images??[],N=F.KeyPairs??[],w=P.Subnets??[],d=k.InstanceTypes?.reduce((n,a)=>{const s=a.InstanceType;return s&&(n[s]=(n[s]||0)+1),n},{})??{},i=Object.keys(d).sort(),K=b[0]?.ImageId,B=N[0]?.KeyName,V=i.find(n=>n.endsWith(".nano"))??i[0],{control:m,handleSubmit:A,register:E,watch:O,formState:{errors:t,isSubmitting:v}}=L({resolver:M(X.refine(n=>n.count<=(d[n.instanceType]??1),{message:"Cannot exceed available capacity",path:["count"]})),defaultValues:{count:1,imageId:K??"",keyName:B??"",instanceType:V??""}}),u=O("instanceType"),Q=u?d[u]??1:1,D=async n=>{await r.mutateAsync(n),f({to:"/ec2/describe-instances"})};return e.jsxs(e.Fragment,{children:[e.jsx(W,{to:"/ec2/describe-instances",children:"Back to instances"}),e.jsx(z,{title:"Run EC2 Instances"}),i.length===0&&e.jsx(S,{msg:"No compute available. No new instances can be created until compute is available."}),r.error&&e.jsx(S,{error:r.error,msg:"Failed to create instance"}),e.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:A(D),children:[e.jsxs(c,{children:[e.jsx(l,{children:e.jsx("label",{htmlFor:"imageId",children:"Image"})}),e.jsx(x,{control:m,name:"imageId",render:({field:n})=>{const a=b.find(s=>s.ImageId===n.value);return e.jsxs(p,{onValueChange:s=>n.onChange(s),value:n.value??"",children:[e.jsx(y,{"aria-invalid":!!t.imageId,className:"w-full",id:"imageId",children:e.jsx(I,{children:a?`${a.Name||"Unnamed"} (${a.Architecture})`:""})}),e.jsx(g,{children:b.map(s=>e.jsxs(o,{value:s.ImageId??"",children:[s.Name||"Unnamed"," (",s.Architecture,")"]},s.ImageId))})]})}}),e.jsx(j,{errors:[t.imageId]})]}),e.jsxs(c,{children:[e.jsx(l,{children:e.jsx("label",{htmlFor:"instanceType",children:"Instance Type"})}),e.jsx(x,{control:m,name:"instanceType",render:({field:n})=>e.jsxs(p,{onValueChange:a=>n.onChange(a),value:n.value?n.value:"",children:[e.jsx(y,{"aria-invalid":!!t.instanceType,className:"w-full",id:"instanceType",children:e.jsx(I,{})}),e.jsx(g,{children:i.map(a=>e.jsxs(o,{value:a,children:[a," (",d[a]," available)"]},a))})]})}),e.jsx(j,{errors:[t.instanceType]})]}),e.jsxs(c,{children:[e.jsx(l,{children:e.jsx("label",{htmlFor:"keyName",children:"Key Pair"})}),e.jsx(x,{control:m,name:"keyName",render:({field:n})=>e.jsxs(p,{onValueChange:a=>n.onChange(a),value:n.value?n.value:"",children:[e.jsx(y,{"aria-invalid":!!t.keyName,className:"w-full",id:"keyName",children:e.jsx(I,{})}),e.jsx(g,{children:N.map(a=>e.jsx(o,{value:a.KeyName??"",children:a.KeyName},a.KeyPairId))})]})}),e.jsx(j,{errors:[t.keyName]})]}),e.jsxs(c,{children:[e.jsx(l,{children:e.jsx("label",{htmlFor:"subnetId",children:"Subnet"})}),e.jsx(x,{control:m,name:"subnetId",render:({field:n})=>e.jsxs(p,{onValueChange:a=>n.onChange(a==="none"?void 0:a),value:n.value??"none",children:[e.jsx(y,{className:"w-full",id:"subnetId",children:e.jsx(I,{})}),e.jsxs(g,{children:[e.jsx(o,{value:"none",children:"none"}),w.map(a=>e.jsx(o,{value:a.SubnetId??"",children:a.SubnetId},a.SubnetId))]})]})})]}),e.jsxs(c,{children:[e.jsx(l,{children:e.jsx("label",{htmlFor:"count",children:"Number of Instances"})}),e.jsx(G,{"aria-describedby":"count-description","aria-invalid":!!t.count,id:"count",type:"number",...E("count",{valueAsNumber:!0})}),e.jsx("p",{className:"text-muted-foreground text-xs",id:"count-description",children:u&&`Available capacity for ${u}: ${Q}`}),e.jsx(j,{errors:[t.count]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(C,{disabled:v||r.isPending,onClick:()=>f({to:"/ec2/describe-instances"}),type:"button",variant:"outline",children:"Cancel"}),e.jsx(C,{disabled:v||r.isPending||i.length===0,type:"submit",children:v||r.isPending?"Creating…":"Create Instance"})]})]})]})}export{oe as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/s3.js b/hive/services/hiveui/frontend/dist/assets/s3.js index 38bb7f640..e5467fef4 100644 --- a/hive/services/hiveui/frontend/dist/assets/s3.js +++ b/hive/services/hiveui/frontend/dist/assets/s3.js @@ -1,4 +1,4 @@ -import{aQ as cr,aR as hr,aS as G,aT as ot,aU as Me,aV as dr,aW as pr,aX as yr,aY as mr,aZ as Er,a_ as wr,a$ as gr,b0 as br,b1 as vr,b2 as xr,b3 as yt,b4 as ae,b5 as Ie,b6 as _r,aK as fe,aL as le,aM as ce,b7 as he,b8 as Cr,b9 as Sr,ba as Ar,bb as Rr,bc as Br,bd as Fr,be as Tr,bf as Dr,bg as Lr,bh as we,bi as Mr,bj as kr,bk as St,c as mt,bl as Et,aP as wt}from"./index.js";import{u as gt}from"./error-banner.js";const Pr=typeof ReadableStream=="function"?ReadableStream:function(){};class Nr extends Pr{}const Ir=({expectedChecksum:a,checksum:n,source:f,checksumSourceLocation:l,base64Encoder:y})=>{if(!cr(f))throw new Error(`@smithy/util-stream: unsupported source type ${f?.constructor?.name??f} in ChecksumStream.`);const c=y??hr;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");const h=new TransformStream({start(){},async transform(d,g){n.update(d),g.enqueue(d)},async flush(d){const g=await n.digest(),F=c(g);if(a!==F){const R=new Error(`Checksum mismatch: expected "${a}" but received "${F}" in response header "${l}".`);d.error(R)}else d.terminate()}});f.pipeThrough(h);const i=h.readable;return Object.setPrototypeOf(i,Nr.prototype),i};class Ur{allocByteArray;byteLength=0;byteArrays=[];constructor(n){this.allocByteArray=n}push(n){this.byteArrays.push(n),this.byteLength+=n.byteLength}flush(){if(this.byteArrays.length===1){const l=this.byteArrays[0];return this.reset(),l}const n=this.allocByteArray(this.byteLength);let f=0;for(let l=0;lnew Uint8Array(g))];let i=-1;const d=async g=>{const{value:F,done:R}=await l.read(),B=F;if(R){if(i!==-1){const C=Ue(h,i);Se(C)>0&&g.enqueue(C)}g.close()}else{const C=jr(B,!1);if(i!==C&&(i>=0&&g.enqueue(Ue(h,i)),i=C),i===-1){g.enqueue(B);return}const _=Se(B);c+=_;const L=Se(h[i]);if(_>=n&&L===0)g.enqueue(B);else{const T=Hr(h,i,B);!y&&c>n*2&&(y=!0,f?.warn(`@smithy/util-stream - stream chunk size ${_} is below threshold of ${n}, automatically buffering.`)),T>=n?g.enqueue(Ue(h,i)):await d(g)}}};return new ReadableStream({pull:d})}const qr=Or;function Hr(a,n,f){switch(n){case 0:return a[0]+=f,Se(a[0]);case 1:case 2:return a[n].push(f),Se(a[n])}}function Ue(a,n){switch(n){case 0:const f=a[0];return a[0]="",f;case 1:case 2:return a[n].flush()}throw new Error(`@smithy/util-stream - invalid index ${n} given to flush()`)}function Se(a){return a?.byteLength??a?.length??0}function jr(a,n=!0){return n&&typeof Buffer<"u"&&a instanceof Buffer?2:a instanceof Uint8Array?1:typeof a=="string"?0:-1}const st=[G.CRC32,G.CRC32C,G.CRC64NVME,G.SHA1,G.SHA256],Wr=[G.SHA256,G.SHA1,G.CRC32,G.CRC32C,G.CRC64NVME],Kr=(a,{requestChecksumRequired:n,requestAlgorithmMember:f,requestChecksumCalculation:l})=>{if(!f)return l===Me.WHEN_SUPPORTED||n?ot:void 0;if(!a[f])return;const y=a[f];if(!st.includes(y))throw new Error(`The checksum algorithm "${y}" is not supported by the client. Select one of ${st}.`);return y},bt=a=>a===G.MD5?"content-md5":`x-amz-checksum-${a.toLowerCase()}`,$r=(a,n)=>{const f=a.toLowerCase();for(const l of Object.keys(n))if(f===l.toLowerCase())return!0;return!1},zr=(a,n)=>{const f=a.toLowerCase();for(const l of Object.keys(n))if(l.toLowerCase().startsWith(f))return!0;return!1},er=a=>a!==void 0&&typeof a!="string"&&!ArrayBuffer.isView(a)&&!dr(a);var Vr=(function(){function a(){this.crc32c=new At}return a.prototype.update=function(n){pr(n)||this.crc32c.update(yr(n))},a.prototype.digest=function(){return mr(this,void 0,void 0,function(){return Er(this,function(n){return[2,wr(this.crc32c.digest())]})})},a.prototype.reset=function(){this.crc32c=new At},a})(),At=(function(){function a(){this.checksum=4294967295}return a.prototype.update=function(n){var f,l;try{for(var y=gr(n),c=y.next();!c.done;c=y.next()){var h=c.value;this.checksum=this.checksum>>>8^Yr[(this.checksum^h)&255]}}catch(i){f={error:i}}finally{try{c&&!c.done&&(l=y.return)&&l.call(y)}finally{if(f)throw f.error}}return this},a.prototype.digest=function(){return(this.checksum^4294967295)>>>0},a})(),Gr=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],Yr=br(Gr);const Xr=()=>{const n=new Array(8);for(let f=0;f<8;f++){const l=new Array(512);for(let y=0;y<256;y++){let c=BigInt(y);for(let h=0;h<8*(f+1);h++)c&1n?c=c>>1n^0x9a6c9329ac4bc9b5n:c=c>>1n;l[y*2]=Number(c>>32n&0xffffffffn),l[y*2+1]=Number(c&0xffffffffn)}n[f]=new Uint32Array(l)}return n};let Oe,Ce,ut,ft,lt,ct,ht,dt,pt;const Qr=()=>{Oe||(Oe=Xr(),[Ce,ut,ft,lt,ct,ht,dt,pt]=Oe)};class Zr{c1=0;c2=0;constructor(){Qr(),this.reset()}update(n){const f=n.length;let l=0,y=this.c1,c=this.c2;for(;l+8<=f;){const h=((c^n[l++])&255)<<1,i=((c>>>8^n[l++])&255)<<1,d=((c>>>16^n[l++])&255)<<1,g=((c>>>24^n[l++])&255)<<1,F=((y^n[l++])&255)<<1,R=((y>>>8^n[l++])&255)<<1,B=((y>>>16^n[l++])&255)<<1,C=((y>>>24^n[l++])&255)<<1;y=pt[h]^dt[i]^ht[d]^ct[g]^lt[F]^ft[R]^ut[B]^Ce[C],c=pt[h+1]^dt[i+1]^ht[d+1]^ct[g+1]^lt[F+1]^ft[R+1]^ut[B+1]^Ce[C+1]}for(;l>>8|(y&255)<<24)>>>0,y=y>>>8^Ce[h],c^=Ce[h+1],l++}this.c1=y,this.c2=c}async digest(){const n=this.c1^4294967295,f=this.c2^4294967295;return new Uint8Array([n>>>24,n>>>16&255,n>>>8&255,n&255,f>>>24,f>>>16&255,f>>>8&255,f&255])}reset(){this.c1=4294967295,this.c2=4294967295}}const Jr=()=>vr,tr=(a,n)=>{switch(a){case G.MD5:return n.md5;case G.CRC32:return Jr();case G.CRC32C:return Vr;case G.CRC64NVME:return Zr;case G.SHA1:return n.sha1;case G.SHA256:return n.sha256;default:throw new Error(`Unsupported checksum algorithm: ${a}`)}},rr=(a,n)=>{const f=new a;return f.update(xr(n||"")),f.digest()},en={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},tn=(a,n)=>(f,l)=>async y=>{if(!yt.isInstance(y.request)||zr("x-amz-checksum-",y.request.headers))return f(y);const{request:c,input:h}=y,{body:i,headers:d}=c,{base64Encoder:g,streamHasher:F}=a,{requestChecksumRequired:R,requestAlgorithmMember:B}=n,C=await a.requestChecksumCalculation(),_=B?.name,L=B?.httpHeader;_&&!h[_]&&(C===Me.WHEN_SUPPORTED||R)&&(h[_]=ot,L&&(d[L]=ot));const T=Kr(h,{requestChecksumRequired:R,requestAlgorithmMember:B?.name,requestChecksumCalculation:C});let p=i,x=d;if(T){switch(T){case G.CRC32:ae(l,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case G.CRC32C:ae(l,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case G.CRC64NVME:ae(l,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case G.SHA1:ae(l,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case G.SHA256:ae(l,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}const A=bt(T),E=tr(T,a);if(er(i)){const{getAwsChunkedEncodingStream:m,bodyLengthChecker:S}=a;p=m(typeof a.requestStreamBufferSize=="number"&&a.requestStreamBufferSize>=8*1024?qr(i,a.requestStreamBufferSize,l.logger):i,{base64Encoder:g,bodyLengthChecker:S,checksumLocationName:A,checksumAlgorithmFn:E,streamHasher:F}),x={...d,"content-encoding":d["content-encoding"]?`${d["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":d["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":A},delete x["content-length"]}else if(!$r(A,d)){const m=await rr(E,i);x={...d,[A]:g(m)}}}try{return await f({...y,request:{...c,headers:x,body:p}})}catch(A){if(A instanceof Error&&A.name==="InvalidChunkSizeError")try{A.message.endsWith(".")||(A.message+="."),A.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch{}throw A}},rn={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},nn=(a,n)=>(f,l)=>async y=>{const c=y.input,{requestValidationModeMember:h}=n,i=await a.requestChecksumCalculation(),d=await a.responseChecksumValidation();switch(i){case Me.WHEN_REQUIRED:ae(l,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case Me.WHEN_SUPPORTED:ae(l,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(d){case Ie.WHEN_REQUIRED:ae(l,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case Ie.WHEN_SUPPORTED:ae(l,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}return h&&!c[h]&&d===Ie.WHEN_SUPPORTED&&(c[h]="ENABLED"),f(y)},nr=(a=[])=>{const n=[];for(const f of Wr)!a.includes(f)||!st.includes(f)||n.push(f);return n},an=a=>{const n=a.lastIndexOf("-");if(n!==-1){const f=a.slice(n+1);if(!f.startsWith("0")){const l=parseInt(f,10);if(!isNaN(l)&&l>=1&&l<=1e4)return!0}}return!1},on=async(a,{checksumAlgorithmFn:n,base64Encoder:f})=>f(await rr(n,a)),sn=async(a,{config:n,responseAlgorithms:f,logger:l})=>{const y=nr(f),{body:c,headers:h}=a;for(const i of y){const d=bt(i),g=h[d];if(g){let F;try{F=tr(i,n)}catch(C){if(i===G.CRC64NVME){l?.warn(`Skipping ${G.CRC64NVME} checksum validation: ${C.message}`);continue}throw C}const{base64Encoder:R}=n;if(er(c)){a.body=Ir({expectedChecksum:g,checksumSourceLocation:d,checksum:new F,source:c,base64Encoder:R});return}const B=await on(c,{checksumAlgorithmFn:F,base64Encoder:R});if(B===g)break;throw new Error(`Checksum mismatch: expected "${B}" but received "${g}" in response header "${d}".`)}}},un={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},fn=(a,n)=>(f,l)=>async y=>{if(!yt.isInstance(y.request))return f(y);const c=y.input,h=await f(y),i=h.response,{requestValidationModeMember:d,responseAlgorithms:g}=n;if(d&&c[d]==="ENABLED"){const{clientName:F,commandName:R}=l;if(F==="S3Client"&&R==="GetObjectCommand"&&nr(g).every(C=>{const _=bt(C),L=i.headers[_];return!L||an(L)}))return h;await sn(i,{config:a,responseAlgorithms:g,logger:l.logger})}return h},vt=(a,n)=>({applyToStack:f=>{f.add(tn(a,n),en),f.addRelativeTo(nn(a,n),rn),f.addRelativeTo(fn(a,n),un)}}),ln="content-length",cn="x-amz-decoded-content-length";function hn(){return(a,n)=>async f=>{const{request:l}=f;if(yt.isInstance(l)&&!(ln in l.headers)&&!(cn in l.headers)){const y="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof n?.logger?.warn=="function"&&!(n.logger instanceof _r)?n.logger.warn(y):console.warn(y)}return a({...f})}}const dn={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},pn=a=>({applyToStack:n=>{n.add(hn(),dn)}});class yn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,f,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l)]}).s("AmazonS3","AbortMultipartUpload",{}).n("S3Client","AbortMultipartUploadCommand").sc(Cr).build(){}function mn(a){return n=>async f=>{const l={...f.input},y=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(const c of y){const h=l[c.target];if(h){let i;typeof h=="string"?wn(h,a)?i=a.base64Decoder(h):(i=a.utf8Decoder(h),l[c.target]=a.base64Encoder(i)):(i=ArrayBuffer.isView(h)?new Uint8Array(h.buffer,h.byteOffset,h.byteLength):new Uint8Array(h),l[c.target]=a.base64Encoder(i));const d=new a.md5;d.update(i),l[c.hash]=a.base64Encoder(await d.digest())}}return n({...f,input:l})}}const En={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},Pe=a=>({applyToStack:n=>{n.add(mn(a),En)}});function wn(a,n){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(a))return!1;try{return n.base64Decoder(a).length===32}catch{return!1}}class gn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,f,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l),Pe(l)]}).s("AmazonS3","CompleteMultipartUpload",{}).n("S3Client","CompleteMultipartUploadCommand").sc(Sr).build(){}function bn(a){return n=>async f=>{const{CreateBucketConfiguration:l}=f.input,y=await a.region();return!l?.LocationConstraint&&!l?.Location&&y!=="us-east-1"&&(f.input.CreateBucketConfiguration=f.input.CreateBucketConfiguration??{},f.input.CreateBucketConfiguration.LocationConstraint=y),n(f)}}const vn={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0},xn=a=>({applyToStack:n=>{n.add(bn(a),vn)}});class _n extends fe.classBuilder().ep({...le,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},DisableAccessPoints:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(n,f,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l),xn(l)]}).s("AmazonS3","CreateBucket",{}).n("S3Client","CreateBucketCommand").sc(Ar).build(){}class Cn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,f,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l),Pe(l)]}).s("AmazonS3","CreateMultipartUpload",{}).n("S3Client","CreateMultipartUploadCommand").sc(Rr).build(){}class Sn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,f,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l)]}).s("AmazonS3","DeleteObject",{}).n("S3Client","DeleteObjectCommand").sc(Br).build(){}class Rt extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,f,l,y){return[ce(l,n.getEndpointParameterInstructions()),vt(l,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),pn(),he(l),Pe(l)]}).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").sc(Fr).build(){}class An extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(n,f,l,y){return[ce(l,n.getEndpointParameterInstructions()),vt(l,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),he(l)]}).s("AmazonS3","PutObjectTagging",{}).n("S3Client","PutObjectTaggingCommand").sc(Tr).build(){}class Rn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,f,l,y){return[ce(l,n.getEndpointParameterInstructions()),vt(l,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),he(l),Pe(l)]}).s("AmazonS3","UploadPart",{}).n("S3Client","UploadPartCommand").sc(Dr).build(){}const Bn={CRC32:"CRC32"};class Fn{onabort=null;_aborted=!1;constructor(){Object.defineProperty(this,"_aborted",{value:!1,writable:!0})}get aborted(){return this._aborted}abort(){this._aborted=!0,this.onabort&&(this.onabort(this),this.onabort=null)}}class Tn{signal=new Fn;abort(){this.signal.abort()}}var Be={exports:{}},Bt;function Ne(){if(Bt)return Be.exports;Bt=1;var a=typeof Reflect=="object"?Reflect:null,n=a&&typeof a.apply=="function"?a.apply:function(m,S,I){return Function.prototype.apply.call(m,S,I)},f;a&&typeof a.ownKeys=="function"?f=a.ownKeys:Object.getOwnPropertySymbols?f=function(m){return Object.getOwnPropertyNames(m).concat(Object.getOwnPropertySymbols(m))}:f=function(m){return Object.getOwnPropertyNames(m)};function l(E){console&&console.warn&&console.warn(E)}var y=Number.isNaN||function(m){return m!==m};function c(){c.init.call(this)}Be.exports=c,Be.exports.once=p,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var h=10;function i(E){if(typeof E!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof E)}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(E){if(typeof E!="number"||E<0||y(E))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+E+".");h=E}}),c.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(m){if(typeof m!="number"||m<0||y(m))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+m+".");return this._maxListeners=m,this};function d(E){return E._maxListeners===void 0?c.defaultMaxListeners:E._maxListeners}c.prototype.getMaxListeners=function(){return d(this)},c.prototype.emit=function(m){for(var S=[],I=1;I0&&(H=S[0]),H instanceof Error)throw H;var Q=new Error("Unhandled error."+(H?" ("+H.message+")":""));throw Q.context=H,Q}var J=U[m];if(J===void 0)return!1;if(typeof J=="function")n(J,this,S);else for(var ee=J.length,oe=_(J,ee),I=0;I0&&H.length>N&&!H.warned){H.warned=!0;var Q=new Error("Possible EventEmitter memory leak detected. "+H.length+" "+String(m)+" listeners added. Use emitter.setMaxListeners() to increase limit");Q.name="MaxListenersExceededWarning",Q.emitter=E,Q.type=m,Q.count=H.length,l(Q)}return E}c.prototype.addListener=function(m,S){return g(this,m,S,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(m,S){return g(this,m,S,!0)};function F(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function R(E,m,S){var I={fired:!1,wrapFn:void 0,target:E,type:m,listener:S},N=F.bind(I);return N.listener=S,I.wrapFn=N,N}c.prototype.once=function(m,S){return i(S),this.on(m,R(this,m,S)),this},c.prototype.prependOnceListener=function(m,S){return i(S),this.prependListener(m,R(this,m,S)),this},c.prototype.removeListener=function(m,S){var I,N,U,H,Q;if(i(S),N=this._events,N===void 0)return this;if(I=N[m],I===void 0)return this;if(I===S||I.listener===S)--this._eventsCount===0?this._events=Object.create(null):(delete N[m],N.removeListener&&this.emit("removeListener",m,I.listener||S));else if(typeof I!="function"){for(U=-1,H=I.length-1;H>=0;H--)if(I[H]===S||I[H].listener===S){Q=I[H].listener,U=H;break}if(U<0)return this;U===0?I.shift():L(I,U),I.length===1&&(N[m]=I[0]),N.removeListener!==void 0&&this.emit("removeListener",m,Q||S)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(m){var S,I,N;if(I=this._events,I===void 0)return this;if(I.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):I[m]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete I[m]),this;if(arguments.length===0){var U=Object.keys(I),H;for(N=0;N=0;N--)this.removeListener(m,S[N]);return this};function B(E,m,S){var I=E._events;if(I===void 0)return[];var N=I[m];return N===void 0?[]:typeof N=="function"?S?[N.listener||N]:[N]:S?T(N):_(N,N.length)}c.prototype.listeners=function(m){return B(this,m,!0)},c.prototype.rawListeners=function(m){return B(this,m,!1)},c.listenerCount=function(E,m){return typeof E.listenerCount=="function"?E.listenerCount(m):C.call(E,m)},c.prototype.listenerCount=C;function C(E){var m=this._events;if(m!==void 0){var S=m[E];if(typeof S=="function")return 1;if(S!==void 0)return S.length}return 0}c.prototype.eventNames=function(){return this._eventsCount>0?f(this._events):[]};function _(E,m){for(var S=new Array(m),I=0;I0)throw new Error("Invalid string. Length must be a multiple of 4");var L=C.indexOf("=");L===-1&&(L=_);var T=L===_?0:4-L%4;return[L,T]}function i(C){var _=h(C),L=_[0],T=_[1];return(L+T)*3/4-T}function d(C,_,L){return(_+L)*3/4-L}function g(C){var _,L=h(C),T=L[0],p=L[1],x=new f(d(C,T,p)),A=0,E=p>0?T-4:T,m;for(m=0;m>16&255,x[A++]=_>>8&255,x[A++]=_&255;return p===2&&(_=n[C.charCodeAt(m)]<<2|n[C.charCodeAt(m+1)]>>4,x[A++]=_&255),p===1&&(_=n[C.charCodeAt(m)]<<10|n[C.charCodeAt(m+1)]<<4|n[C.charCodeAt(m+2)]>>2,x[A++]=_>>8&255,x[A++]=_&255),x}function F(C){return a[C>>18&63]+a[C>>12&63]+a[C>>6&63]+a[C&63]}function R(C,_,L){for(var T,p=[],x=_;xE?E:A+x));return T===1?(_=C[L-1],p.push(a[_>>2]+a[_<<4&63]+"==")):T===2&&(_=(C[L-2]<<8)+C[L-1],p.push(a[_>>10]+a[_>>4&63]+a[_<<2&63]+"=")),p.join("")}return _e}var Fe={};var Tt;function Ln(){return Tt||(Tt=1,Fe.read=function(a,n,f,l,y){var c,h,i=y*8-l-1,d=(1<>1,F=-7,R=f?y-1:0,B=f?-1:1,C=a[n+R];for(R+=B,c=C&(1<<-F)-1,C>>=-F,F+=i;F>0;c=c*256+a[n+R],R+=B,F-=8);for(h=c&(1<<-F)-1,c>>=-F,F+=l;F>0;h=h*256+a[n+R],R+=B,F-=8);if(c===0)c=1-g;else{if(c===d)return h?NaN:(C?-1:1)*(1/0);h=h+Math.pow(2,l),c=c-g}return(C?-1:1)*h*Math.pow(2,c-l)},Fe.write=function(a,n,f,l,y,c){var h,i,d,g=c*8-y-1,F=(1<>1,B=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=l?0:c-1,_=l?1:-1,L=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(i=isNaN(n)?1:0,h=F):(h=Math.floor(Math.log(n)/Math.LN2),n*(d=Math.pow(2,-h))<1&&(h--,d*=2),h+R>=1?n+=B/d:n+=B*Math.pow(2,1-R),n*d>=2&&(h++,d/=2),h+R>=F?(i=0,h=F):h+R>=1?(i=(n*d-1)*Math.pow(2,y),h=h+R):(i=n*Math.pow(2,R-1)*Math.pow(2,y),h=0));y>=8;a[f+C]=i&255,C+=_,i/=256,y-=8);for(h=h<0;a[f+C]=h&255,C+=_,h/=256,g-=8);a[f+C-_]|=L*128}),Fe}var Dt;function Re(){return Dt||(Dt=1,(function(a){var n=Dn(),f=Ln(),l=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.Buffer=i,a.SlowBuffer=p,a.INSPECT_MAX_BYTES=50;var y=2147483647;a.kMaxLength=y,i.TYPED_ARRAY_SUPPORT=c(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{var r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function h(r){if(r>y)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return Object.setPrototypeOf(e,i.prototype),e}function i(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return R(r)}return d(r,e,t)}i.poolSize=8192;function d(r,e,t){if(typeof r=="string")return B(r,e);if(ArrayBuffer.isView(r))return C(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(D(r,ArrayBuffer)||r&&D(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(D(r,SharedArrayBuffer)||r&&D(r.buffer,SharedArrayBuffer)))return _(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var s=r.valueOf&&r.valueOf();if(s!=null&&s!==r)return i.from(s,e,t);var w=L(r);if(w)return w;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return i.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}i.from=function(r,e,t){return d(r,e,t)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function g(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function F(r,e,t){return g(r),r<=0?h(r):e!==void 0?typeof t=="string"?h(r).fill(e,t):h(r).fill(e):h(r)}i.alloc=function(r,e,t){return F(r,e,t)};function R(r){return g(r),h(r<0?0:T(r)|0)}i.allocUnsafe=function(r){return R(r)},i.allocUnsafeSlow=function(r){return R(r)};function B(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!i.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=x(r,e)|0,s=h(t),w=s.write(r,e);return w!==t&&(s=s.slice(0,w)),s}function C(r){for(var e=r.length<0?0:T(r.length)|0,t=h(e),s=0;s=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return r|0}function p(r){return+r!=r&&(r=0),i.alloc(+r)}i.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==i.prototype},i.compare=function(e,t){if(D(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),D(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var s=e.length,w=t.length,M=0,k=Math.min(s,w);M2&&arguments[2]===!0;if(!s&&t===0)return 0;for(var w=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return P(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return o(r).length;default:if(w)return s?-1:P(r).length;e=(""+e).toLowerCase(),w=!0}}i.byteLength=x;function A(r,e,t){var s=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return se(this,e,t);case"utf8":case"utf-8":return oe(this,e,t);case"ascii":return ie(this,e,t);case"latin1":case"binary":return pe(this,e,t);case"base64":return ee(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,e,t);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),s=!0}}i.prototype._isBuffer=!0;function E(r,e,t){var s=r[e];r[e]=r[t],r[t]=s}i.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tt&&(e+=" ... "),""},l&&(i.prototype[l]=i.prototype.inspect),i.prototype.compare=function(e,t,s,w,M){if(D(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),s===void 0&&(s=e?e.length:0),w===void 0&&(w=0),M===void 0&&(M=this.length),t<0||s>e.length||w<0||M>this.length)throw new RangeError("out of range index");if(w>=M&&t>=s)return 0;if(w>=M)return-1;if(t>=s)return 1;if(t>>>=0,s>>>=0,w>>>=0,M>>>=0,this===e)return 0;for(var k=M-w,W=s-t,K=Math.min(k,W),z=this.slice(w,M),X=e.slice(t,s),$=0;$2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,O(t)&&(t=w?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(w)return-1;t=r.length-1}else if(t<0)if(w)t=0;else return-1;if(typeof e=="string"&&(e=i.from(e,s)),i.isBuffer(e))return e.length===0?-1:S(r,e,t,s,w);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?w?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):S(r,[e],t,s,w);throw new TypeError("val must be string, number or Buffer")}function S(r,e,t,s,w){var M=1,k=r.length,W=e.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(r.length<2||e.length<2)return-1;M=2,k/=2,W/=2,t/=2}function K(_t,Ct){return M===1?_t[Ct]:_t.readUInt16BE(Ct*M)}var z;if(w){var X=-1;for(z=t;zk&&(t=k-W),z=t;z>=0;z--){for(var $=!0,te=0;tew&&(s=w)):s=w;var M=e.length;s>M/2&&(s=M/2);for(var k=0;k>>0,isFinite(s)?(s=s>>>0,w===void 0&&(w="utf8")):(w=s,s=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var M=this.length-t;if((s===void 0||s>M)&&(s=M),e.length>0&&(s<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");w||(w="utf8");for(var k=!1;;)switch(w){case"hex":return I(this,e,t,s);case"utf8":case"utf-8":return N(this,e,t,s);case"ascii":return U(this,e,t,s);case"latin1":case"binary":return H(this,e,t,s);case"base64":return Q(this,e,t,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,e,t,s);default:if(k)throw new TypeError("Unknown encoding: "+w);w=(""+w).toLowerCase(),k=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ee(r,e,t){return e===0&&t===r.length?n.fromByteArray(r):n.fromByteArray(r.slice(e,t))}function oe(r,e,t){t=Math.min(r.length,t);for(var s=[],w=e;w239?4:M>223?3:M>191?2:1;if(w+W<=t){var K,z,X,$;switch(W){case 1:M<128&&(k=M);break;case 2:K=r[w+1],(K&192)===128&&($=(M&31)<<6|K&63,$>127&&(k=$));break;case 3:K=r[w+1],z=r[w+2],(K&192)===128&&(z&192)===128&&($=(M&15)<<12|(K&63)<<6|z&63,$>2047&&($<55296||$>57343)&&(k=$));break;case 4:K=r[w+1],z=r[w+2],X=r[w+3],(K&192)===128&&(z&192)===128&&(X&192)===128&&($=(M&15)<<18|(K&63)<<12|(z&63)<<6|X&63,$>65535&&$<1114112&&(k=$))}}k===null?(k=65533,W=1):k>65535&&(k-=65536,s.push(k>>>10&1023|55296),k=56320|k&1023),s.push(k),w+=W}return xe(s)}var de=4096;function xe(r){var e=r.length;if(e<=de)return String.fromCharCode.apply(String,r);for(var t="",s=0;ss)&&(t=s);for(var w="",M=e;Ms&&(e=s),t<0?(t+=s,t<0&&(t=0)):t>s&&(t=s),tt)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUIntLE=function(e,t,s){e=e>>>0,t=t>>>0,s||Y(e,t,this.length);for(var w=this[e],M=1,k=0;++k>>0,t=t>>>0,s||Y(e,t,this.length);for(var w=this[e+--t],M=1;t>0&&(M*=256);)w+=this[e+--t]*M;return w},i.prototype.readUInt8=function(e,t){return e=e>>>0,t||Y(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||Y(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||Y(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},i.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,s){e=e>>>0,t=t>>>0,s||Y(e,t,this.length);for(var w=this[e],M=1,k=0;++k=M&&(w-=Math.pow(2,8*t)),w},i.prototype.readIntBE=function(e,t,s){e=e>>>0,t=t>>>0,s||Y(e,t,this.length);for(var w=t,M=1,k=this[e+--w];w>0&&(M*=256);)k+=this[e+--w]*M;return M*=128,k>=M&&(k-=Math.pow(2,8*t)),k},i.prototype.readInt8=function(e,t){return e=e>>>0,t||Y(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},i.prototype.readInt16LE=function(e,t){e=e>>>0,t||Y(e,2,this.length);var s=this[e]|this[e+1]<<8;return s&32768?s|4294901760:s},i.prototype.readInt16BE=function(e,t){e=e>>>0,t||Y(e,2,this.length);var s=this[e+1]|this[e]<<8;return s&32768?s|4294901760:s},i.prototype.readInt32LE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),f.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),f.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||Y(e,8,this.length),f.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||Y(e,8,this.length),f.read(this,e,!1,52,8)};function Z(r,e,t,s,w,M){if(!i.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>w||er.length)throw new RangeError("Index out of range")}i.prototype.writeUIntLE=function(e,t,s,w){if(e=+e,t=t>>>0,s=s>>>0,!w){var M=Math.pow(2,8*s)-1;Z(this,e,t,s,M,0)}var k=1,W=0;for(this[t]=e&255;++W>>0,s=s>>>0,!w){var M=Math.pow(2,8*s)-1;Z(this,e,t,s,M,0)}var k=s-1,W=1;for(this[t+k]=e&255;--k>=0&&(W*=256);)this[t+k]=e/W&255;return t+s},i.prototype.writeUInt8=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,1,255,0),this[t]=e&255,t+1},i.prototype.writeUInt16LE=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},i.prototype.writeUInt16BE=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},i.prototype.writeUInt32LE=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},i.prototype.writeUInt32BE=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},i.prototype.writeIntLE=function(e,t,s,w){if(e=+e,t=t>>>0,!w){var M=Math.pow(2,8*s-1);Z(this,e,t,s,M-1,-M)}var k=0,W=1,K=0;for(this[t]=e&255;++k>0)-K&255;return t+s},i.prototype.writeIntBE=function(e,t,s,w){if(e=+e,t=t>>>0,!w){var M=Math.pow(2,8*s-1);Z(this,e,t,s,M-1,-M)}var k=s-1,W=1,K=0;for(this[t+k]=e&255;--k>=0&&(W*=256);)e<0&&K===0&&this[t+k+1]!==0&&(K=1),this[t+k]=(e/W>>0)-K&255;return t+s},i.prototype.writeInt8=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},i.prototype.writeInt16LE=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},i.prototype.writeInt16BE=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},i.prototype.writeInt32LE=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},i.prototype.writeInt32BE=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function re(r,e,t,s,w,M){if(t+s>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function me(r,e,t,s,w){return e=+e,t=t>>>0,w||re(r,e,t,4),f.write(r,e,t,s,23,4),t+4}i.prototype.writeFloatLE=function(e,t,s){return me(this,e,t,!0,s)},i.prototype.writeFloatBE=function(e,t,s){return me(this,e,t,!1,s)};function Ee(r,e,t,s,w){return e=+e,t=t>>>0,w||re(r,e,t,8),f.write(r,e,t,s,52,8),t+8}i.prototype.writeDoubleLE=function(e,t,s){return Ee(this,e,t,!0,s)},i.prototype.writeDoubleBE=function(e,t,s){return Ee(this,e,t,!1,s)},i.prototype.copy=function(e,t,s,w){if(!i.isBuffer(e))throw new TypeError("argument should be a Buffer");if(s||(s=0),!w&&w!==0&&(w=this.length),t>=e.length&&(t=e.length),t||(t=0),w>0&&w=this.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("sourceEnd out of bounds");w>this.length&&(w=this.length),e.length-t=0;--k)e[k+t]=this[k+s];else Uint8Array.prototype.set.call(e,this.subarray(s,w),t);return M},i.prototype.fill=function(e,t,s,w){if(typeof e=="string"){if(typeof t=="string"?(w=t,t=0,s=this.length):typeof s=="string"&&(w=s,s=this.length),w!==void 0&&typeof w!="string")throw new TypeError("encoding must be a string");if(typeof w=="string"&&!i.isEncoding(w))throw new TypeError("Unknown encoding: "+w);if(e.length===1){var M=e.charCodeAt(0);(w==="utf8"&&M<128||w==="latin1")&&(e=M)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length>>0,s=s===void 0?this.length:s>>>0,e||(e=0);var k;if(typeof e=="number")for(k=t;k55295&&t<57344){if(!w){if(t>56319){(e-=3)>-1&&M.push(239,191,189);continue}else if(k+1===s){(e-=3)>-1&&M.push(239,191,189);continue}w=t;continue}if(t<56320){(e-=3)>-1&&M.push(239,191,189),w=t;continue}t=(w-55296<<10|t-56320)+65536}else w&&(e-=3)>-1&&M.push(239,191,189);if(w=null,t<128){if((e-=1)<0)break;M.push(t)}else if(t<2048){if((e-=2)<0)break;M.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;M.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;M.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return M}function q(r){for(var e=[],t=0;t>8,w=t%256,M.push(w),M.push(s);return M}function o(r){return n.toByteArray(b(r))}function u(r,e,t,s){for(var w=0;w=e.length||w>=r.length);++w)e[w+t]=r[w];return w}function D(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function O(r){return r!==r}var V=(function(){for(var r="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var s=t*16,w=0;w<16;++w)e[s+w]=r[t]+r[w];return e})()})(He)),He}var ue=Re();const Mn={lstatSync:()=>{},isFileReadStream(a){return!1}},ke={...Mn,runtime:"browser"},Te=a=>{if(a==null)return 0;if(typeof a=="string")return ue.Buffer.byteLength(a);if(typeof a.byteLength=="number")return a.byteLength;if(typeof a.length=="number")return a.length;if(typeof a.size=="number")return a.size;if(typeof a.start=="number"&&typeof a.end=="number")return a.end+1-a.start;if(ke.isFileReadStream(a))try{return ke.lstatSync(a.path).size}catch{return}};var ne;(function(a){a.EMPTY_INPUT="a null or undefined Body",a.CONTENT_LENGTH="the ContentLength property of the params set by the caller",a.STRING_LENGTH="the encoded byte length of the Body string",a.TYPED_ARRAY="the byteLength of a typed byte array such as Uint8Array",a.LENGTH="the value of Body.length",a.SIZE="the value of Body.size",a.START_END_DIFF="the numeric difference between Body.start and Body.end",a.LSTAT="the size of the file given by Body.path on disk as reported by lstatSync"})(ne||(ne={}));const kn=(a,n)=>{if(n!=null)return ne.CONTENT_LENGTH;if(a==null)return ne.EMPTY_INPUT;if(typeof a=="string")return ne.STRING_LENGTH;if(typeof a.byteLength=="number")return ne.TYPED_ARRAY;if(typeof a.length=="number")return ne.LENGTH;if(typeof a.size=="number")return ne.SIZE;if(typeof a.start=="number"&&typeof a.end=="number")return ne.START_END_DIFF;if(ke.isFileReadStream(a))try{return ke.lstatSync(a.path).size,ne.LSTAT}catch{return}};var De={exports:{}},Lt;function be(){return Lt||(Lt=1,typeof Object.create=="function"?De.exports=function(n,f){f&&(n.super_=f,n.prototype=Object.create(f.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:De.exports=function(n,f){if(f){n.super_=f;var l=function(){};l.prototype=f.prototype,n.prototype=new l,n.prototype.constructor=n}}),De.exports}var je,Mt;function ir(){return Mt||(Mt=1,je=Ne().EventEmitter),je}const Pn={},Nn=Object.freeze(Object.defineProperty({__proto__:null,default:Pn},Symbol.toStringTag,{value:"Module"})),ar=Lr(Nn);var We,kt;function In(){if(kt)return We;kt=1;function a(_,L){var T=Object.keys(_);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(_);L&&(p=p.filter(function(x){return Object.getOwnPropertyDescriptor(_,x).enumerable})),T.push.apply(T,p)}return T}function n(_){for(var L=1;L0?this.tail.next=p:this.head=p,this.tail=p,++this.length}},{key:"unshift",value:function(T){var p={data:T,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length}},{key:"shift",value:function(){if(this.length!==0){var T=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,T}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(T){if(this.length===0)return"";for(var p=this.head,x=""+p.data;p=p.next;)x+=T+p.data;return x}},{key:"concat",value:function(T){if(this.length===0)return g.alloc(0);for(var p=g.allocUnsafe(T>>>0),x=this.head,A=0;x;)C(x.data,p,A),A+=x.data.length,x=x.next;return p}},{key:"consume",value:function(T,p){var x;return TE.length?E.length:T;if(m===E.length?A+=E:A+=E.slice(0,T),T-=m,T===0){m===E.length?(++x,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=E.slice(m));break}++x}return this.length-=x,A}},{key:"_getBuffer",value:function(T){var p=g.allocUnsafe(T),x=this.head,A=1;for(x.data.copy(p),T-=x.data.length;x=x.next;){var E=x.data,m=T>E.length?E.length:T;if(E.copy(p,p.length-T,0,m),T-=m,T===0){m===E.length?(++A,x.next?this.head=x.next:this.head=this.tail=null):(this.head=x,x.data=E.slice(m));break}++A}return this.length-=A,p}},{key:B,value:function(T,p){return R(this,n(n({},p),{},{depth:0,customInspect:!1}))}}]),_})(),We}var Ke,Pt;function or(){if(Pt)return Ke;Pt=1;function a(h,i){var d=this,g=this._readableState&&this._readableState.destroyed,F=this._writableState&&this._writableState.destroyed;return g||F?(i?i(h):h&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(y,this,h)):process.nextTick(y,this,h)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(h||null,function(R){!i&&R?d._writableState?d._writableState.errorEmitted?process.nextTick(f,d):(d._writableState.errorEmitted=!0,process.nextTick(n,d,R)):process.nextTick(n,d,R):i?(process.nextTick(f,d),i(R)):process.nextTick(f,d)}),this)}function n(h,i){y(h,i),f(h)}function f(h){h._writableState&&!h._writableState.emitClose||h._readableState&&!h._readableState.emitClose||h.emit("close")}function l(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function y(h,i){h.emit("error",i)}function c(h,i){var d=h._readableState,g=h._writableState;d&&d.autoDestroy||g&&g.autoDestroy?h.destroy(i):h.emit("error",i)}return Ke={destroy:a,undestroy:l,errorOrDestroy:c},Ke}var $e={},Nt;function ve(){if(Nt)return $e;Nt=1;function a(i,d){i.prototype=Object.create(d.prototype),i.prototype.constructor=i,i.__proto__=d}var n={};function f(i,d,g){g||(g=Error);function F(B,C,_){return typeof d=="string"?d:d(B,C,_)}var R=(function(B){a(C,B);function C(_,L,T){return B.call(this,F(_,L,T))||this}return C})(g);R.prototype.name=g.name,R.prototype.code=i,n[i]=R}function l(i,d){if(Array.isArray(i)){var g=i.length;return i=i.map(function(F){return String(F)}),g>2?"one of ".concat(d," ").concat(i.slice(0,g-1).join(", "),", or ")+i[g-1]:g===2?"one of ".concat(d," ").concat(i[0]," or ").concat(i[1]):"of ".concat(d," ").concat(i[0])}else return"of ".concat(d," ").concat(String(i))}function y(i,d,g){return i.substr(0,d.length)===d}function c(i,d,g){return(g===void 0||g>i.length)&&(g=i.length),i.substring(g-d.length,g)===d}function h(i,d,g){return typeof g!="number"&&(g=0),g+d.length>i.length?!1:i.indexOf(d,g)!==-1}return f("ERR_INVALID_OPT_VALUE",function(i,d){return'The value "'+d+'" is invalid for option "'+i+'"'},TypeError),f("ERR_INVALID_ARG_TYPE",function(i,d,g){var F;typeof d=="string"&&y(d,"not ")?(F="must not be",d=d.replace(/^not /,"")):F="must be";var R;if(c(i," argument"))R="The ".concat(i," ").concat(F," ").concat(l(d,"type"));else{var B=h(i,".")?"property":"argument";R='The "'.concat(i,'" ').concat(B," ").concat(F," ").concat(l(d,"type"))}return R+=". Received type ".concat(typeof g),R},TypeError),f("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),f("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),f("ERR_STREAM_PREMATURE_CLOSE","Premature close"),f("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),f("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),f("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),f("ERR_STREAM_WRITE_AFTER_END","write after end"),f("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),f("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),f("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),$e.codes=n,$e}var ze,It;function sr(){if(It)return ze;It=1;var a=ve().codes.ERR_INVALID_OPT_VALUE;function n(l,y,c){return l.highWaterMark!=null?l.highWaterMark:y?l[c]:null}function f(l,y,c,h){var i=n(y,h,c);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var d=h?c:"highWaterMark";throw new a(d,i)}return Math.floor(i)}return l.objectMode?16:16*1024}return ze={getHighWaterMark:f},ze}var Ve,Ut;function Un(){if(Ut)return Ve;Ut=1,Ve=a;function a(f,l){if(n("noDeprecation"))return f;var y=!1;function c(){if(!y){if(n("throwDeprecation"))throw new Error(l);n("traceDeprecation")?console.trace(l):console.warn(l),y=!0}return f.apply(this,arguments)}return c}function n(f){try{if(!we.localStorage)return!1}catch{return!1}var l=we.localStorage[f];return l==null?!1:String(l).toLowerCase()==="true"}return Ve}var Ge,Ot;function ur(){if(Ot)return Ge;Ot=1,Ge=N;function a(v){var b=this;this.next=null,this.entry=null,this.finish=function(){Ee(b,v)}}var n;N.WritableState=S;var f={deprecate:Un()},l=ir(),y=Re().Buffer,c=(typeof we<"u"?we:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h(v){return y.from(v)}function i(v){return y.isBuffer(v)||v instanceof c}var d=or(),g=sr(),F=g.getHighWaterMark,R=ve().codes,B=R.ERR_INVALID_ARG_TYPE,C=R.ERR_METHOD_NOT_IMPLEMENTED,_=R.ERR_MULTIPLE_CALLBACK,L=R.ERR_STREAM_CANNOT_PIPE,T=R.ERR_STREAM_DESTROYED,p=R.ERR_STREAM_NULL_VALUES,x=R.ERR_STREAM_WRITE_AFTER_END,A=R.ERR_UNKNOWN_ENCODING,E=d.errorOrDestroy;be()(N,l);function m(){}function S(v,b,P){n=n||ge(),v=v||{},typeof P!="boolean"&&(P=b instanceof n),this.objectMode=!!v.objectMode,P&&(this.objectMode=this.objectMode||!!v.writableObjectMode),this.highWaterMark=F(this,v,"writableHighWaterMark",P),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var q=v.decodeStrings===!1;this.decodeStrings=!q,this.defaultEncoding=v.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(j){xe(b,j)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=v.emitClose!==!1,this.autoDestroy=!!v.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}S.prototype.getBuffer=function(){for(var b=this.bufferedRequest,P=[];b;)P.push(b),b=b.next;return P},(function(){try{Object.defineProperty(S.prototype,"buffer",{get:f.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var I;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(I=Function.prototype[Symbol.hasInstance],Object.defineProperty(N,Symbol.hasInstance,{value:function(b){return I.call(this,b)?!0:this!==N?!1:b&&b._writableState instanceof S}})):I=function(b){return b instanceof this};function N(v){n=n||ge();var b=this instanceof n;if(!b&&!I.call(N,this))return new N(v);this._writableState=new S(v,this,b),this.writable=!0,v&&(typeof v.write=="function"&&(this._write=v.write),typeof v.writev=="function"&&(this._writev=v.writev),typeof v.destroy=="function"&&(this._destroy=v.destroy),typeof v.final=="function"&&(this._final=v.final)),l.call(this)}N.prototype.pipe=function(){E(this,new L)};function U(v,b){var P=new x;E(v,P),process.nextTick(b,P)}function H(v,b,P,q){var j;return P===null?j=new p:typeof P!="string"&&!b.objectMode&&(j=new B("chunk",["string","Buffer"],P)),j?(E(v,j),process.nextTick(q,j),!1):!0}N.prototype.write=function(v,b,P){var q=this._writableState,j=!1,o=!q.objectMode&&i(v);return o&&!y.isBuffer(v)&&(v=h(v)),typeof b=="function"&&(P=b,b=null),o?b="buffer":b||(b=q.defaultEncoding),typeof P!="function"&&(P=m),q.ending?U(this,P):(o||H(this,q,v,P))&&(q.pendingcb++,j=J(this,q,o,v,b,P)),j},N.prototype.cork=function(){this._writableState.corked++},N.prototype.uncork=function(){var v=this._writableState;v.corked&&(v.corked--,!v.writing&&!v.corked&&!v.bufferProcessing&&v.bufferedRequest&&se(this,v))},N.prototype.setDefaultEncoding=function(b){if(typeof b=="string"&&(b=b.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((b+"").toLowerCase())>-1))throw new A(b);return this._writableState.defaultEncoding=b,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Q(v,b,P){return!v.objectMode&&v.decodeStrings!==!1&&typeof b=="string"&&(b=y.from(b,P)),b}Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function J(v,b,P,q,j,o){if(!P){var u=Q(b,q,j);q!==u&&(P=!0,j="buffer",q=u)}var D=b.objectMode?1:q.length;b.length+=D;var O=b.length>5===6?2:p>>4===14?3:p>>3===30?4:p>>6===2?-1:-2}function h(p,x,A){var E=x.length-1;if(E=0?(m>0&&(p.lastNeed=m-1),m):--E=0?(m>0&&(p.lastNeed=m-2),m):--E=0?(m>0&&(m===2?m=0:p.lastNeed=m-3),m):0))}function i(p,x,A){if((x[0]&192)!==128)return p.lastNeed=0,"�";if(p.lastNeed>1&&x.length>1){if((x[1]&192)!==128)return p.lastNeed=1,"�";if(p.lastNeed>2&&x.length>2&&(x[2]&192)!==128)return p.lastNeed=2,"�"}}function d(p){var x=this.lastTotal-this.lastNeed,A=i(this,p);if(A!==void 0)return A;if(this.lastNeed<=p.length)return p.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,x,0,p.length),this.lastNeed-=p.length}function g(p,x){var A=h(this,p,x);if(!this.lastNeed)return p.toString("utf8",x);this.lastTotal=A;var E=p.length-(A-this.lastNeed);return p.copy(this.lastChar,0,E),p.toString("utf8",x,E)}function F(p){var x=p&&p.length?this.write(p):"";return this.lastNeed?x+"�":x}function R(p,x){if((p.length-x)%2===0){var A=p.toString("utf16le",x);if(A){var E=A.charCodeAt(A.length-1);if(E>=55296&&E<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",x,p.length-1)}function B(p){var x=p&&p.length?this.write(p):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,A)}return x}function C(p,x){var A=(p.length-x)%3;return A===0?p.toString("base64",x):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=p[p.length-1]:(this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1]),p.toString("base64",x,p.length-A))}function _(p){var x=p&&p.length?this.write(p):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function L(p){return p.toString(this.encoding)}function T(p){return p&&p.length?this.write(p):""}return Xe}var Qe,Kt;function xt(){if(Kt)return Qe;Kt=1;var a=ve().codes.ERR_STREAM_PREMATURE_CLOSE;function n(c){var h=!1;return function(){if(!h){h=!0;for(var i=arguments.length,d=new Array(i),g=0;g0)if(typeof u!="string"&&!r.objectMode&&Object.getPrototypeOf(u)!==l.prototype&&(u=c(u)),O)r.endEmitted?m(o,new p):Q(o,r,u,!0);else if(r.ended)m(o,new L);else{if(r.destroyed)return!1;r.reading=!1,r.decoder&&!D?(u=r.decoder.write(u),r.objectMode||u.length!==0?Q(o,r,u,!1):se(o,r)):Q(o,r,u,!1)}else O||(r.reading=!1,se(o,r))}return!r.ended&&(r.length=ee?o=ee:(o--,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o++),o}function de(o,u){return o<=0||u.length===0&&u.ended?0:u.objectMode?1:o!==o?u.flowing&&u.length?u.buffer.head.data.length:u.length:(o>u.highWaterMark&&(u.highWaterMark=oe(o)),o<=u.length?o:u.ended?u.length:(u.needReadable=!0,0))}U.prototype.read=function(o){d("read",o),o=parseInt(o,10);var u=this._readableState,D=o;if(o!==0&&(u.emittedReadable=!1),o===0&&u.needReadable&&((u.highWaterMark!==0?u.length>=u.highWaterMark:u.length>0)||u.ended))return d("read: emitReadable",u.length,u.ended),u.length===0&&u.ended?P(this):ie(this),null;if(o=de(o,u),o===0&&u.ended)return u.length===0&&P(this),null;var O=u.needReadable;d("need readable",O),(u.length===0||u.length-o0?V=b(o,u):V=null,V===null?(u.needReadable=u.length<=u.highWaterMark,o=0):(u.length-=o,u.awaitDrain=0),u.length===0&&(u.ended||(u.needReadable=!0),D!==o&&u.ended&&P(this)),V!==null&&this.emit("data",V),V};function xe(o,u){if(d("onEofChunk"),!u.ended){if(u.decoder){var D=u.decoder.end();D&&D.length&&(u.buffer.push(D),u.length+=u.objectMode?1:D.length)}u.ended=!0,u.sync?ie(o):(u.needReadable=!1,u.emittedReadable||(u.emittedReadable=!0,pe(o)))}}function ie(o){var u=o._readableState;d("emitReadable",u.needReadable,u.emittedReadable),u.needReadable=!1,u.emittedReadable||(d("emitReadable",u.flowing),u.emittedReadable=!0,process.nextTick(pe,o))}function pe(o){var u=o._readableState;d("emitReadable_",u.destroyed,u.length,u.ended),!u.destroyed&&(u.length||u.ended)&&(o.emit("readable"),u.emittedReadable=!1),u.needReadable=!u.flowing&&!u.ended&&u.length<=u.highWaterMark,v(o)}function se(o,u){u.readingMore||(u.readingMore=!0,process.nextTick(ye,o,u))}function ye(o,u){for(;!u.reading&&!u.ended&&(u.length1&&j(O.pipes,o)!==-1)&&!w&&(d("false write response, pause",O.awaitDrain),O.awaitDrain++),D.pause())}function W($){d("onerror",$),X(),o.removeListener("error",W),n(o,"error")===0&&m(o,$)}I(o,"error",W);function K(){o.removeListener("finish",z),X()}o.once("close",K);function z(){d("onfinish"),o.removeListener("close",K),X()}o.once("finish",z);function X(){d("unpipe"),D.unpipe(o)}return o.emit("pipe",D),O.flowing||(d("pipe resume"),D.resume()),o};function Y(o){return function(){var D=o._readableState;d("pipeOnDrain",D.awaitDrain),D.awaitDrain&&D.awaitDrain--,D.awaitDrain===0&&n(o,"data")&&(D.flowing=!0,v(o))}}U.prototype.unpipe=function(o){var u=this._readableState,D={hasUnpiped:!1};if(u.pipesCount===0)return this;if(u.pipesCount===1)return o&&o!==u.pipes?this:(o||(o=u.pipes),u.pipes=null,u.pipesCount=0,u.flowing=!1,o&&o.emit("unpipe",this,D),this);if(!o){var O=u.pipes,V=u.pipesCount;u.pipes=null,u.pipesCount=0,u.flowing=!1;for(var r=0;r0,O.flowing!==!1&&this.resume()):o==="readable"&&!O.endEmitted&&!O.readableListening&&(O.readableListening=O.needReadable=!0,O.flowing=!1,O.emittedReadable=!1,d("on readable",O.length,O.reading),O.length?ie(this):O.reading||process.nextTick(re,this)),D},U.prototype.addListener=U.prototype.on,U.prototype.removeListener=function(o,u){var D=f.prototype.removeListener.call(this,o,u);return o==="readable"&&process.nextTick(Z,this),D},U.prototype.removeAllListeners=function(o){var u=f.prototype.removeAllListeners.apply(this,arguments);return(o==="readable"||o===void 0)&&process.nextTick(Z,this),u};function Z(o){var u=o._readableState;u.readableListening=o.listenerCount("readable")>0,u.resumeScheduled&&!u.paused?u.flowing=!0:o.listenerCount("data")>0&&o.resume()}function re(o){d("readable nexttick read 0"),o.read(0)}U.prototype.resume=function(){var o=this._readableState;return o.flowing||(d("resume"),o.flowing=!o.readableListening,me(this,o)),o.paused=!1,this};function me(o,u){u.resumeScheduled||(u.resumeScheduled=!0,process.nextTick(Ee,o,u))}function Ee(o,u){d("resume",u.reading),u.reading||o.read(0),u.resumeScheduled=!1,o.emit("resume"),v(o),u.flowing&&!u.reading&&o.read(0)}U.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function v(o){var u=o._readableState;for(d("flow",u.flowing);u.flowing&&o.read()!==null;);}U.prototype.wrap=function(o){var u=this,D=this._readableState,O=!1;o.on("end",function(){if(d("wrapped end"),D.decoder&&!D.ended){var e=D.decoder.end();e&&e.length&&u.push(e)}u.push(null)}),o.on("data",function(e){if(d("wrapped data"),D.decoder&&(e=D.decoder.write(e)),!(D.objectMode&&e==null)&&!(!D.objectMode&&(!e||!e.length))){var t=u.push(e);t||(O=!0,o.pause())}});for(var V in o)this[V]===void 0&&typeof o[V]=="function"&&(this[V]=(function(t){return function(){return o[t].apply(o,arguments)}})(V));for(var r=0;r=u.length?(u.decoder?D=u.buffer.join(""):u.buffer.length===1?D=u.buffer.first():D=u.buffer.concat(u.length),u.buffer.clear()):D=u.buffer.consume(o,u.decoder),D}function P(o){var u=o._readableState;d("endReadable",u.endEmitted),u.endEmitted||(u.ended=!0,process.nextTick(q,u,o))}function q(o,u){if(d("endReadableNT",o.endEmitted,o.length),!o.endEmitted&&o.length===0&&(o.endEmitted=!0,u.readable=!1,u.emit("end"),o.autoDestroy)){var D=u._writableState;(!D||D.autoDestroy&&D.finished)&&u.destroy()}}typeof Symbol=="function"&&(U.from=function(o,u){return E===void 0&&(E=Hn()),E(U,o,u)});function j(o,u){for(var D=0,O=o.length;D0;return i(x,E,m,function(S){T||(T=S),S&&p.forEach(d),!E&&(p.forEach(d),L(T))})});return C.reduce(g)}return nt=R,nt}var it,Qt;function Kn(){if(Qt)return it;Qt=1,it=f;var a=Ne().EventEmitter,n=be();n(f,a),f.Readable=fr(),f.Writable=ur(),f.Duplex=ge(),f.Transform=lr(),f.PassThrough=jn(),f.finished=xt(),f.pipeline=Wn(),f.Stream=f;function f(){a.call(this)}return f.prototype.pipe=function(l,y){var c=this;function h(C){l.writable&&l.write(C)===!1&&c.pause&&c.pause()}c.on("data",h);function i(){c.readable&&c.resume&&c.resume()}l.on("drain",i),!l._isStdio&&(!y||y.end!==!1)&&(c.on("end",g),c.on("close",F));var d=!1;function g(){d||(d=!0,l.end())}function F(){d||(d=!0,typeof l.destroy=="function"&&l.destroy())}function R(C){if(B(),a.listenerCount(this,"error")===0)throw C}c.on("error",R),l.on("error",R);function B(){c.removeListener("data",h),l.removeListener("drain",i),c.removeListener("end",g),c.removeListener("close",F),c.removeListener("error",R),l.removeListener("error",R),c.removeListener("end",B),c.removeListener("close",B),l.removeListener("close",B)}return c.on("end",B),c.on("close",B),l.on("close",B),l.emit("pipe",c),l},it}var $n=Kn();async function*at(a,n,f){let l=1;const y={chunks:[],length:0};for await(const c of f(a))for(y.chunks.push(c),y.length+=c.byteLength;y.length>n;){const h=y.chunks.length>1?ue.Buffer.concat(y.chunks):y.chunks[0];yield{partNumber:l,data:h.subarray(0,n)},y.chunks=[h.subarray(n)],y.length=y.chunks[0].byteLength,l+=1}yield{partNumber:l,data:y.chunks.length!==1?ue.Buffer.concat(y.chunks):y.chunks[0],lastPart:!0}}async function*Zt(a,n){let f=1,l=0,y=n;for(;y{if(a instanceof Uint8Array)return Zt(a,n);if(a instanceof $n.Readable)return at(a,n,zn);if(a instanceof String||typeof a=="string")return Zt(ue.Buffer.from(a),n);if(typeof a.stream=="function")return at(a.stream(),n,Jt);if(a instanceof ReadableStream)return at(a,n,Jt);throw new Error("Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.")};class Ae extends qe.EventEmitter{static MIN_PART_SIZE=1024*1024*5;MAX_PARTS=1e4;queueSize=4;partSize;leavePartsOnError=!1;tags=[];client;params;totalBytes;totalBytesSource;bytesUploadedSoFar;abortController;concurrentUploaders=[];createMultiPartPromise;abortMultipartUploadCommand=null;uploadedParts=[];uploadEnqueuedPartsCount=0;expectedPartsCount;uploadId;uploadEvent;isMultiPart=!0;singleUploadResult;sent=!1;constructor(n){if(super(),this.queueSize=n.queueSize||this.queueSize,this.leavePartsOnError=n.leavePartsOnError||this.leavePartsOnError,this.tags=n.tags||this.tags,this.client=n.client,this.params=n.params,!this.params)throw new Error("InputError: Upload requires params to be passed to upload.");this.totalBytes=this.params.ContentLength??Te(this.params.Body),this.totalBytesSource=kn(this.params.Body,this.params.ContentLength),this.bytesUploadedSoFar=0,this.abortController=n.abortController??new Tn,this.partSize=n.partSize||Math.max(Ae.MIN_PART_SIZE,Math.floor((this.totalBytes||0)/this.MAX_PARTS)),this.totalBytes!==void 0&&(this.expectedPartsCount=Math.ceil(this.totalBytes/this.partSize)),this.__validateInput()}async abort(){this.abortController.abort()}async done(){if(this.sent)throw new Error("@aws-sdk/lib-storage: this instance of Upload has already executed .done(). Create a new instance.");return this.sent=!0,await Promise.race([this.__doMultipartUpload(),this.__abortTimeout(this.abortController.signal)])}on(n,f){return this.uploadEvent=n,super.on(n,f)}async __uploadUsingPut(n){this.isMultiPart=!1;const f={...this.params,Body:n.data},l=this.client.config,y=l.requestHandler,c=y instanceof qe.EventEmitter?y:null,h=_=>{this.bytesUploadedSoFar=_.loaded,this.totalBytes=_.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:n.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};c!==null&&c.on("xhr.upload.progress",h);const i=await Promise.all([this.client.send(new Rt(f)),l?.endpoint?.()]),d=i[0];let g=i[1];if(g||(g=Mr(await kr(f,Rt,{...l}))),!g)throw new Error('Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.');c!==null&&c.off("xhr.upload.progress",h);const F=this.params.Key.split("/").map(_=>St(_)).join("/"),R=St(this.params.Bucket),B=(()=>{const _=g.hostname.startsWith(`${R}.`),L=this.client.config.forcePathStyle,T=g.port?`:${g.port}`:"";return L?`${g.protocol}//${g.hostname}${T}/${R}/${F}`:_?`${g.protocol}//${g.hostname}${T}/${F}`:`${g.protocol}//${R}.${g.hostname}${T}/${F}`})();this.singleUploadResult={...d,Bucket:this.params.Bucket,Key:this.params.Key,Location:B};const C=Te(n.data);this.__notifyProgress({loaded:C,total:C,part:1,Key:this.params.Key,Bucket:this.params.Bucket})}async __createMultipartUpload(){const n=await this.client.config.requestChecksumCalculation();if(!this.createMultiPartPromise){const f={...this.params,Body:void 0};n==="WHEN_SUPPORTED"&&(f.ChecksumAlgorithm=this.params.ChecksumAlgorithm||Bn.CRC32),this.createMultiPartPromise=this.client.send(new Cn(f)).then(l=>(this.abortMultipartUploadCommand=new yn({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:l.UploadId}),l))}return this.createMultiPartPromise}async __doConcurrentUpload(n){for await(const f of n){if(this.uploadEnqueuedPartsCount>this.MAX_PARTS)throw new Error(`Exceeded ${this.MAX_PARTS} parts in multipart upload to Bucket: ${this.params.Bucket} Key: ${this.params.Key}.`);if(this.abortController.signal.aborted)return;if(f.partNumber===1&&f.lastPart)return await this.__uploadUsingPut(f);if(!this.uploadId){const{UploadId:g}=await this.__createMultipartUpload();if(this.uploadId=g,this.abortController.signal.aborted)return}const l=Te(f.data)||0,y=this.client.config.requestHandler,c=y instanceof qe.EventEmitter?y:null;let h=0;const i=(g,F)=>{(Number(F.query.partNumber)||-1)===f.partNumber&&(g.total&&l&&(this.bytesUploadedSoFar+=g.loaded-h,h=g.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:f.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};c!==null&&c.on("xhr.upload.progress",i),this.uploadEnqueuedPartsCount+=1,this.__validateUploadPart(f);const d=await this.client.send(new Rn({...this.params,ContentLength:void 0,UploadId:this.uploadId,Body:f.data,PartNumber:f.partNumber}));if(c!==null&&c.off("xhr.upload.progress",i),this.abortController.signal.aborted)return;if(!d.ETag)throw new Error(`Part ${f.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push({PartNumber:f.partNumber,ETag:d.ETag,...d.ChecksumCRC32&&{ChecksumCRC32:d.ChecksumCRC32},...d.ChecksumCRC32C&&{ChecksumCRC32C:d.ChecksumCRC32C},...d.ChecksumSHA1&&{ChecksumSHA1:d.ChecksumSHA1},...d.ChecksumSHA256&&{ChecksumSHA256:d.ChecksumSHA256}}),c===null&&(this.bytesUploadedSoFar+=l),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:f.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}}async __doMultipartUpload(){const n=Vn(this.params.Body,this.partSize),f=[];for(let y=0;y{f.push(h)});this.concurrentUploaders.push(c)}if(await Promise.all(this.concurrentUploaders),f.length>=1)throw await this.markUploadAsAborted(),f[0];if(this.abortController.signal.aborted)throw await this.markUploadAsAborted(),Object.assign(new Error("Upload aborted."),{name:"AbortError"});let l;if(this.isMultiPart){const{expectedPartsCount:y,uploadedParts:c,totalBytes:h,totalBytesSource:i}=this;if(h!==void 0&&y!==void 0&&c.length!==y)throw new Error(`Expected ${y} part(s) but uploaded ${c.length} part(s). +import{M as cr,N as hr,P as G,Q as ot,S as Me,T as dr,U as pr,V as yr,_ as mr,W as Er,X as wr,Y as gr,Z as br,$ as vr,a0 as xr,a1 as yt,a2 as ae,a3 as Ie,a4 as _r,E as fe,F as le,G as ce,a5 as he,a6 as Cr,a7 as Sr,a8 as Ar,a9 as Rr,aa as Br,ab as Fr,ac as Tr,ad as Dr,ae as Lr,af as we,ag as Mr,ah as kr,ai as St,c as mt,aj as Et,K as wt}from"./index.js";import{u as gt}from"./error-banner.js";const Pr=typeof ReadableStream=="function"?ReadableStream:function(){};class Nr extends Pr{}const Ir=({expectedChecksum:a,checksum:n,source:f,checksumSourceLocation:l,base64Encoder:y})=>{if(!cr(f))throw new Error(`@smithy/util-stream: unsupported source type ${f?.constructor?.name??f} in ChecksumStream.`);const c=y??hr;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");const h=new TransformStream({start(){},async transform(d,g){n.update(d),g.enqueue(d)},async flush(d){const g=await n.digest(),F=c(g);if(a!==F){const R=new Error(`Checksum mismatch: expected "${a}" but received "${F}" in response header "${l}".`);d.error(R)}else d.terminate()}});f.pipeThrough(h);const i=h.readable;return Object.setPrototypeOf(i,Nr.prototype),i};class Ur{allocByteArray;byteLength=0;byteArrays=[];constructor(n){this.allocByteArray=n}push(n){this.byteArrays.push(n),this.byteLength+=n.byteLength}flush(){if(this.byteArrays.length===1){const l=this.byteArrays[0];return this.reset(),l}const n=this.allocByteArray(this.byteLength);let f=0;for(let l=0;lnew Uint8Array(g))];let i=-1;const d=async g=>{const{value:F,done:R}=await l.read(),B=F;if(R){if(i!==-1){const C=Ue(h,i);Se(C)>0&&g.enqueue(C)}g.close()}else{const C=jr(B,!1);if(i!==C&&(i>=0&&g.enqueue(Ue(h,i)),i=C),i===-1){g.enqueue(B);return}const _=Se(B);c+=_;const L=Se(h[i]);if(_>=n&&L===0)g.enqueue(B);else{const T=Hr(h,i,B);!y&&c>n*2&&(y=!0,f?.warn(`@smithy/util-stream - stream chunk size ${_} is below threshold of ${n}, automatically buffering.`)),T>=n?g.enqueue(Ue(h,i)):await d(g)}}};return new ReadableStream({pull:d})}const qr=Or;function Hr(a,n,f){switch(n){case 0:return a[0]+=f,Se(a[0]);case 1:case 2:return a[n].push(f),Se(a[n])}}function Ue(a,n){switch(n){case 0:const f=a[0];return a[0]="",f;case 1:case 2:return a[n].flush()}throw new Error(`@smithy/util-stream - invalid index ${n} given to flush()`)}function Se(a){return a?.byteLength??a?.length??0}function jr(a,n=!0){return n&&typeof Buffer<"u"&&a instanceof Buffer?2:a instanceof Uint8Array?1:typeof a=="string"?0:-1}const st=[G.CRC32,G.CRC32C,G.CRC64NVME,G.SHA1,G.SHA256],Wr=[G.SHA256,G.SHA1,G.CRC32,G.CRC32C,G.CRC64NVME],Kr=(a,{requestChecksumRequired:n,requestAlgorithmMember:f,requestChecksumCalculation:l})=>{if(!f)return l===Me.WHEN_SUPPORTED||n?ot:void 0;if(!a[f])return;const y=a[f];if(!st.includes(y))throw new Error(`The checksum algorithm "${y}" is not supported by the client. Select one of ${st}.`);return y},bt=a=>a===G.MD5?"content-md5":`x-amz-checksum-${a.toLowerCase()}`,$r=(a,n)=>{const f=a.toLowerCase();for(const l of Object.keys(n))if(f===l.toLowerCase())return!0;return!1},zr=(a,n)=>{const f=a.toLowerCase();for(const l of Object.keys(n))if(l.toLowerCase().startsWith(f))return!0;return!1},er=a=>a!==void 0&&typeof a!="string"&&!ArrayBuffer.isView(a)&&!dr(a);var Vr=(function(){function a(){this.crc32c=new At}return a.prototype.update=function(n){pr(n)||this.crc32c.update(yr(n))},a.prototype.digest=function(){return mr(this,void 0,void 0,function(){return Er(this,function(n){return[2,wr(this.crc32c.digest())]})})},a.prototype.reset=function(){this.crc32c=new At},a})(),At=(function(){function a(){this.checksum=4294967295}return a.prototype.update=function(n){var f,l;try{for(var y=gr(n),c=y.next();!c.done;c=y.next()){var h=c.value;this.checksum=this.checksum>>>8^Yr[(this.checksum^h)&255]}}catch(i){f={error:i}}finally{try{c&&!c.done&&(l=y.return)&&l.call(y)}finally{if(f)throw f.error}}return this},a.prototype.digest=function(){return(this.checksum^4294967295)>>>0},a})(),Gr=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],Yr=br(Gr);const Xr=()=>{const n=new Array(8);for(let f=0;f<8;f++){const l=new Array(512);for(let y=0;y<256;y++){let c=BigInt(y);for(let h=0;h<8*(f+1);h++)c&1n?c=c>>1n^0x9a6c9329ac4bc9b5n:c=c>>1n;l[y*2]=Number(c>>32n&0xffffffffn),l[y*2+1]=Number(c&0xffffffffn)}n[f]=new Uint32Array(l)}return n};let Oe,Ce,ut,ft,lt,ct,ht,dt,pt;const Qr=()=>{Oe||(Oe=Xr(),[Ce,ut,ft,lt,ct,ht,dt,pt]=Oe)};class Zr{c1=0;c2=0;constructor(){Qr(),this.reset()}update(n){const f=n.length;let l=0,y=this.c1,c=this.c2;for(;l+8<=f;){const h=((c^n[l++])&255)<<1,i=((c>>>8^n[l++])&255)<<1,d=((c>>>16^n[l++])&255)<<1,g=((c>>>24^n[l++])&255)<<1,F=((y^n[l++])&255)<<1,R=((y>>>8^n[l++])&255)<<1,B=((y>>>16^n[l++])&255)<<1,C=((y>>>24^n[l++])&255)<<1;y=pt[h]^dt[i]^ht[d]^ct[g]^lt[F]^ft[R]^ut[B]^Ce[C],c=pt[h+1]^dt[i+1]^ht[d+1]^ct[g+1]^lt[F+1]^ft[R+1]^ut[B+1]^Ce[C+1]}for(;l>>8|(y&255)<<24)>>>0,y=y>>>8^Ce[h],c^=Ce[h+1],l++}this.c1=y,this.c2=c}async digest(){const n=this.c1^4294967295,f=this.c2^4294967295;return new Uint8Array([n>>>24,n>>>16&255,n>>>8&255,n&255,f>>>24,f>>>16&255,f>>>8&255,f&255])}reset(){this.c1=4294967295,this.c2=4294967295}}const Jr=()=>vr,tr=(a,n)=>{switch(a){case G.MD5:return n.md5;case G.CRC32:return Jr();case G.CRC32C:return Vr;case G.CRC64NVME:return Zr;case G.SHA1:return n.sha1;case G.SHA256:return n.sha256;default:throw new Error(`Unsupported checksum algorithm: ${a}`)}},rr=(a,n)=>{const f=new a;return f.update(xr(n||"")),f.digest()},en={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},tn=(a,n)=>(f,l)=>async y=>{if(!yt.isInstance(y.request)||zr("x-amz-checksum-",y.request.headers))return f(y);const{request:c,input:h}=y,{body:i,headers:d}=c,{base64Encoder:g,streamHasher:F}=a,{requestChecksumRequired:R,requestAlgorithmMember:B}=n,C=await a.requestChecksumCalculation(),_=B?.name,L=B?.httpHeader;_&&!h[_]&&(C===Me.WHEN_SUPPORTED||R)&&(h[_]=ot,L&&(d[L]=ot));const T=Kr(h,{requestChecksumRequired:R,requestAlgorithmMember:B?.name,requestChecksumCalculation:C});let p=i,x=d;if(T){switch(T){case G.CRC32:ae(l,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case G.CRC32C:ae(l,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case G.CRC64NVME:ae(l,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case G.SHA1:ae(l,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case G.SHA256:ae(l,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}const A=bt(T),E=tr(T,a);if(er(i)){const{getAwsChunkedEncodingStream:m,bodyLengthChecker:S}=a;p=m(typeof a.requestStreamBufferSize=="number"&&a.requestStreamBufferSize>=8*1024?qr(i,a.requestStreamBufferSize,l.logger):i,{base64Encoder:g,bodyLengthChecker:S,checksumLocationName:A,checksumAlgorithmFn:E,streamHasher:F}),x={...d,"content-encoding":d["content-encoding"]?`${d["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":d["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":A},delete x["content-length"]}else if(!$r(A,d)){const m=await rr(E,i);x={...d,[A]:g(m)}}}try{return await f({...y,request:{...c,headers:x,body:p}})}catch(A){if(A instanceof Error&&A.name==="InvalidChunkSizeError")try{A.message.endsWith(".")||(A.message+="."),A.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch{}throw A}},rn={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},nn=(a,n)=>(f,l)=>async y=>{const c=y.input,{requestValidationModeMember:h}=n,i=await a.requestChecksumCalculation(),d=await a.responseChecksumValidation();switch(i){case Me.WHEN_REQUIRED:ae(l,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case Me.WHEN_SUPPORTED:ae(l,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(d){case Ie.WHEN_REQUIRED:ae(l,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case Ie.WHEN_SUPPORTED:ae(l,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}return h&&!c[h]&&d===Ie.WHEN_SUPPORTED&&(c[h]="ENABLED"),f(y)},nr=(a=[])=>{const n=[];for(const f of Wr)!a.includes(f)||!st.includes(f)||n.push(f);return n},an=a=>{const n=a.lastIndexOf("-");if(n!==-1){const f=a.slice(n+1);if(!f.startsWith("0")){const l=parseInt(f,10);if(!isNaN(l)&&l>=1&&l<=1e4)return!0}}return!1},on=async(a,{checksumAlgorithmFn:n,base64Encoder:f})=>f(await rr(n,a)),sn=async(a,{config:n,responseAlgorithms:f,logger:l})=>{const y=nr(f),{body:c,headers:h}=a;for(const i of y){const d=bt(i),g=h[d];if(g){let F;try{F=tr(i,n)}catch(C){if(i===G.CRC64NVME){l?.warn(`Skipping ${G.CRC64NVME} checksum validation: ${C.message}`);continue}throw C}const{base64Encoder:R}=n;if(er(c)){a.body=Ir({expectedChecksum:g,checksumSourceLocation:d,checksum:new F,source:c,base64Encoder:R});return}const B=await on(c,{checksumAlgorithmFn:F,base64Encoder:R});if(B===g)break;throw new Error(`Checksum mismatch: expected "${B}" but received "${g}" in response header "${d}".`)}}},un={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},fn=(a,n)=>(f,l)=>async y=>{if(!yt.isInstance(y.request))return f(y);const c=y.input,h=await f(y),i=h.response,{requestValidationModeMember:d,responseAlgorithms:g}=n;if(d&&c[d]==="ENABLED"){const{clientName:F,commandName:R}=l;if(F==="S3Client"&&R==="GetObjectCommand"&&nr(g).every(C=>{const _=bt(C),L=i.headers[_];return!L||an(L)}))return h;await sn(i,{config:a,responseAlgorithms:g,logger:l.logger})}return h},vt=(a,n)=>({applyToStack:f=>{f.add(tn(a,n),en),f.addRelativeTo(nn(a,n),rn),f.addRelativeTo(fn(a,n),un)}}),ln="content-length",cn="x-amz-decoded-content-length";function hn(){return(a,n)=>async f=>{const{request:l}=f;if(yt.isInstance(l)&&!(ln in l.headers)&&!(cn in l.headers)){const y="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof n?.logger?.warn=="function"&&!(n.logger instanceof _r)?n.logger.warn(y):console.warn(y)}return a({...f})}}const dn={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},pn=a=>({applyToStack:n=>{n.add(hn(),dn)}});class yn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,f,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l)]}).s("AmazonS3","AbortMultipartUpload",{}).n("S3Client","AbortMultipartUploadCommand").sc(Cr).build(){}function mn(a){return n=>async f=>{const l={...f.input},y=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(const c of y){const h=l[c.target];if(h){let i;typeof h=="string"?wn(h,a)?i=a.base64Decoder(h):(i=a.utf8Decoder(h),l[c.target]=a.base64Encoder(i)):(i=ArrayBuffer.isView(h)?new Uint8Array(h.buffer,h.byteOffset,h.byteLength):new Uint8Array(h),l[c.target]=a.base64Encoder(i));const d=new a.md5;d.update(i),l[c.hash]=a.base64Encoder(await d.digest())}}return n({...f,input:l})}}const En={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},Pe=a=>({applyToStack:n=>{n.add(mn(a),En)}});function wn(a,n){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(a))return!1;try{return n.base64Decoder(a).length===32}catch{return!1}}class gn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,f,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l),Pe(l)]}).s("AmazonS3","CompleteMultipartUpload",{}).n("S3Client","CompleteMultipartUploadCommand").sc(Sr).build(){}function bn(a){return n=>async f=>{const{CreateBucketConfiguration:l}=f.input,y=await a.region();return!l?.LocationConstraint&&!l?.Location&&y!=="us-east-1"&&(f.input.CreateBucketConfiguration=f.input.CreateBucketConfiguration??{},f.input.CreateBucketConfiguration.LocationConstraint=y),n(f)}}const vn={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0},xn=a=>({applyToStack:n=>{n.add(bn(a),vn)}});class _n extends fe.classBuilder().ep({...le,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},DisableAccessPoints:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(n,f,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l),xn(l)]}).s("AmazonS3","CreateBucket",{}).n("S3Client","CreateBucketCommand").sc(Ar).build(){}class Cn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,f,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l),Pe(l)]}).s("AmazonS3","CreateMultipartUpload",{}).n("S3Client","CreateMultipartUploadCommand").sc(Rr).build(){}class Sn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,f,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l)]}).s("AmazonS3","DeleteObject",{}).n("S3Client","DeleteObjectCommand").sc(Br).build(){}class Rt extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,f,l,y){return[ce(l,n.getEndpointParameterInstructions()),vt(l,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),pn(),he(l),Pe(l)]}).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").sc(Fr).build(){}class An extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(n,f,l,y){return[ce(l,n.getEndpointParameterInstructions()),vt(l,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),he(l)]}).s("AmazonS3","PutObjectTagging",{}).n("S3Client","PutObjectTaggingCommand").sc(Tr).build(){}class Rn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,f,l,y){return[ce(l,n.getEndpointParameterInstructions()),vt(l,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),he(l),Pe(l)]}).s("AmazonS3","UploadPart",{}).n("S3Client","UploadPartCommand").sc(Dr).build(){}const Bn={CRC32:"CRC32"};class Fn{onabort=null;_aborted=!1;constructor(){Object.defineProperty(this,"_aborted",{value:!1,writable:!0})}get aborted(){return this._aborted}abort(){this._aborted=!0,this.onabort&&(this.onabort(this),this.onabort=null)}}class Tn{signal=new Fn;abort(){this.signal.abort()}}var Be={exports:{}},Bt;function Ne(){if(Bt)return Be.exports;Bt=1;var a=typeof Reflect=="object"?Reflect:null,n=a&&typeof a.apply=="function"?a.apply:function(m,S,I){return Function.prototype.apply.call(m,S,I)},f;a&&typeof a.ownKeys=="function"?f=a.ownKeys:Object.getOwnPropertySymbols?f=function(m){return Object.getOwnPropertyNames(m).concat(Object.getOwnPropertySymbols(m))}:f=function(m){return Object.getOwnPropertyNames(m)};function l(E){console&&console.warn&&console.warn(E)}var y=Number.isNaN||function(m){return m!==m};function c(){c.init.call(this)}Be.exports=c,Be.exports.once=p,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var h=10;function i(E){if(typeof E!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof E)}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(E){if(typeof E!="number"||E<0||y(E))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+E+".");h=E}}),c.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(m){if(typeof m!="number"||m<0||y(m))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+m+".");return this._maxListeners=m,this};function d(E){return E._maxListeners===void 0?c.defaultMaxListeners:E._maxListeners}c.prototype.getMaxListeners=function(){return d(this)},c.prototype.emit=function(m){for(var S=[],I=1;I0&&(H=S[0]),H instanceof Error)throw H;var Q=new Error("Unhandled error."+(H?" ("+H.message+")":""));throw Q.context=H,Q}var J=U[m];if(J===void 0)return!1;if(typeof J=="function")n(J,this,S);else for(var ee=J.length,oe=_(J,ee),I=0;I0&&H.length>N&&!H.warned){H.warned=!0;var Q=new Error("Possible EventEmitter memory leak detected. "+H.length+" "+String(m)+" listeners added. Use emitter.setMaxListeners() to increase limit");Q.name="MaxListenersExceededWarning",Q.emitter=E,Q.type=m,Q.count=H.length,l(Q)}return E}c.prototype.addListener=function(m,S){return g(this,m,S,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(m,S){return g(this,m,S,!0)};function F(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function R(E,m,S){var I={fired:!1,wrapFn:void 0,target:E,type:m,listener:S},N=F.bind(I);return N.listener=S,I.wrapFn=N,N}c.prototype.once=function(m,S){return i(S),this.on(m,R(this,m,S)),this},c.prototype.prependOnceListener=function(m,S){return i(S),this.prependListener(m,R(this,m,S)),this},c.prototype.removeListener=function(m,S){var I,N,U,H,Q;if(i(S),N=this._events,N===void 0)return this;if(I=N[m],I===void 0)return this;if(I===S||I.listener===S)--this._eventsCount===0?this._events=Object.create(null):(delete N[m],N.removeListener&&this.emit("removeListener",m,I.listener||S));else if(typeof I!="function"){for(U=-1,H=I.length-1;H>=0;H--)if(I[H]===S||I[H].listener===S){Q=I[H].listener,U=H;break}if(U<0)return this;U===0?I.shift():L(I,U),I.length===1&&(N[m]=I[0]),N.removeListener!==void 0&&this.emit("removeListener",m,Q||S)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(m){var S,I,N;if(I=this._events,I===void 0)return this;if(I.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):I[m]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete I[m]),this;if(arguments.length===0){var U=Object.keys(I),H;for(N=0;N=0;N--)this.removeListener(m,S[N]);return this};function B(E,m,S){var I=E._events;if(I===void 0)return[];var N=I[m];return N===void 0?[]:typeof N=="function"?S?[N.listener||N]:[N]:S?T(N):_(N,N.length)}c.prototype.listeners=function(m){return B(this,m,!0)},c.prototype.rawListeners=function(m){return B(this,m,!1)},c.listenerCount=function(E,m){return typeof E.listenerCount=="function"?E.listenerCount(m):C.call(E,m)},c.prototype.listenerCount=C;function C(E){var m=this._events;if(m!==void 0){var S=m[E];if(typeof S=="function")return 1;if(S!==void 0)return S.length}return 0}c.prototype.eventNames=function(){return this._eventsCount>0?f(this._events):[]};function _(E,m){for(var S=new Array(m),I=0;I0)throw new Error("Invalid string. Length must be a multiple of 4");var L=C.indexOf("=");L===-1&&(L=_);var T=L===_?0:4-L%4;return[L,T]}function i(C){var _=h(C),L=_[0],T=_[1];return(L+T)*3/4-T}function d(C,_,L){return(_+L)*3/4-L}function g(C){var _,L=h(C),T=L[0],p=L[1],x=new f(d(C,T,p)),A=0,E=p>0?T-4:T,m;for(m=0;m>16&255,x[A++]=_>>8&255,x[A++]=_&255;return p===2&&(_=n[C.charCodeAt(m)]<<2|n[C.charCodeAt(m+1)]>>4,x[A++]=_&255),p===1&&(_=n[C.charCodeAt(m)]<<10|n[C.charCodeAt(m+1)]<<4|n[C.charCodeAt(m+2)]>>2,x[A++]=_>>8&255,x[A++]=_&255),x}function F(C){return a[C>>18&63]+a[C>>12&63]+a[C>>6&63]+a[C&63]}function R(C,_,L){for(var T,p=[],x=_;xE?E:A+x));return T===1?(_=C[L-1],p.push(a[_>>2]+a[_<<4&63]+"==")):T===2&&(_=(C[L-2]<<8)+C[L-1],p.push(a[_>>10]+a[_>>4&63]+a[_<<2&63]+"=")),p.join("")}return _e}var Fe={};var Tt;function Ln(){return Tt||(Tt=1,Fe.read=function(a,n,f,l,y){var c,h,i=y*8-l-1,d=(1<>1,F=-7,R=f?y-1:0,B=f?-1:1,C=a[n+R];for(R+=B,c=C&(1<<-F)-1,C>>=-F,F+=i;F>0;c=c*256+a[n+R],R+=B,F-=8);for(h=c&(1<<-F)-1,c>>=-F,F+=l;F>0;h=h*256+a[n+R],R+=B,F-=8);if(c===0)c=1-g;else{if(c===d)return h?NaN:(C?-1:1)*(1/0);h=h+Math.pow(2,l),c=c-g}return(C?-1:1)*h*Math.pow(2,c-l)},Fe.write=function(a,n,f,l,y,c){var h,i,d,g=c*8-y-1,F=(1<>1,B=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=l?0:c-1,_=l?1:-1,L=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(i=isNaN(n)?1:0,h=F):(h=Math.floor(Math.log(n)/Math.LN2),n*(d=Math.pow(2,-h))<1&&(h--,d*=2),h+R>=1?n+=B/d:n+=B*Math.pow(2,1-R),n*d>=2&&(h++,d/=2),h+R>=F?(i=0,h=F):h+R>=1?(i=(n*d-1)*Math.pow(2,y),h=h+R):(i=n*Math.pow(2,R-1)*Math.pow(2,y),h=0));y>=8;a[f+C]=i&255,C+=_,i/=256,y-=8);for(h=h<0;a[f+C]=h&255,C+=_,h/=256,g-=8);a[f+C-_]|=L*128}),Fe}var Dt;function Re(){return Dt||(Dt=1,(function(a){var n=Dn(),f=Ln(),l=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.Buffer=i,a.SlowBuffer=p,a.INSPECT_MAX_BYTES=50;var y=2147483647;a.kMaxLength=y,i.TYPED_ARRAY_SUPPORT=c(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{var r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function h(r){if(r>y)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return Object.setPrototypeOf(e,i.prototype),e}function i(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return R(r)}return d(r,e,t)}i.poolSize=8192;function d(r,e,t){if(typeof r=="string")return B(r,e);if(ArrayBuffer.isView(r))return C(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(D(r,ArrayBuffer)||r&&D(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(D(r,SharedArrayBuffer)||r&&D(r.buffer,SharedArrayBuffer)))return _(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var s=r.valueOf&&r.valueOf();if(s!=null&&s!==r)return i.from(s,e,t);var w=L(r);if(w)return w;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return i.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}i.from=function(r,e,t){return d(r,e,t)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function g(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function F(r,e,t){return g(r),r<=0?h(r):e!==void 0?typeof t=="string"?h(r).fill(e,t):h(r).fill(e):h(r)}i.alloc=function(r,e,t){return F(r,e,t)};function R(r){return g(r),h(r<0?0:T(r)|0)}i.allocUnsafe=function(r){return R(r)},i.allocUnsafeSlow=function(r){return R(r)};function B(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!i.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=x(r,e)|0,s=h(t),w=s.write(r,e);return w!==t&&(s=s.slice(0,w)),s}function C(r){for(var e=r.length<0?0:T(r.length)|0,t=h(e),s=0;s=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return r|0}function p(r){return+r!=r&&(r=0),i.alloc(+r)}i.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==i.prototype},i.compare=function(e,t){if(D(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),D(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var s=e.length,w=t.length,M=0,k=Math.min(s,w);M2&&arguments[2]===!0;if(!s&&t===0)return 0;for(var w=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return P(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return o(r).length;default:if(w)return s?-1:P(r).length;e=(""+e).toLowerCase(),w=!0}}i.byteLength=x;function A(r,e,t){var s=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return se(this,e,t);case"utf8":case"utf-8":return oe(this,e,t);case"ascii":return ie(this,e,t);case"latin1":case"binary":return pe(this,e,t);case"base64":return ee(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,e,t);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),s=!0}}i.prototype._isBuffer=!0;function E(r,e,t){var s=r[e];r[e]=r[t],r[t]=s}i.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tt&&(e+=" ... "),""},l&&(i.prototype[l]=i.prototype.inspect),i.prototype.compare=function(e,t,s,w,M){if(D(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),s===void 0&&(s=e?e.length:0),w===void 0&&(w=0),M===void 0&&(M=this.length),t<0||s>e.length||w<0||M>this.length)throw new RangeError("out of range index");if(w>=M&&t>=s)return 0;if(w>=M)return-1;if(t>=s)return 1;if(t>>>=0,s>>>=0,w>>>=0,M>>>=0,this===e)return 0;for(var k=M-w,W=s-t,K=Math.min(k,W),z=this.slice(w,M),X=e.slice(t,s),$=0;$2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,O(t)&&(t=w?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(w)return-1;t=r.length-1}else if(t<0)if(w)t=0;else return-1;if(typeof e=="string"&&(e=i.from(e,s)),i.isBuffer(e))return e.length===0?-1:S(r,e,t,s,w);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?w?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):S(r,[e],t,s,w);throw new TypeError("val must be string, number or Buffer")}function S(r,e,t,s,w){var M=1,k=r.length,W=e.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(r.length<2||e.length<2)return-1;M=2,k/=2,W/=2,t/=2}function K(_t,Ct){return M===1?_t[Ct]:_t.readUInt16BE(Ct*M)}var z;if(w){var X=-1;for(z=t;zk&&(t=k-W),z=t;z>=0;z--){for(var $=!0,te=0;tew&&(s=w)):s=w;var M=e.length;s>M/2&&(s=M/2);for(var k=0;k>>0,isFinite(s)?(s=s>>>0,w===void 0&&(w="utf8")):(w=s,s=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var M=this.length-t;if((s===void 0||s>M)&&(s=M),e.length>0&&(s<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");w||(w="utf8");for(var k=!1;;)switch(w){case"hex":return I(this,e,t,s);case"utf8":case"utf-8":return N(this,e,t,s);case"ascii":return U(this,e,t,s);case"latin1":case"binary":return H(this,e,t,s);case"base64":return Q(this,e,t,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,e,t,s);default:if(k)throw new TypeError("Unknown encoding: "+w);w=(""+w).toLowerCase(),k=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ee(r,e,t){return e===0&&t===r.length?n.fromByteArray(r):n.fromByteArray(r.slice(e,t))}function oe(r,e,t){t=Math.min(r.length,t);for(var s=[],w=e;w239?4:M>223?3:M>191?2:1;if(w+W<=t){var K,z,X,$;switch(W){case 1:M<128&&(k=M);break;case 2:K=r[w+1],(K&192)===128&&($=(M&31)<<6|K&63,$>127&&(k=$));break;case 3:K=r[w+1],z=r[w+2],(K&192)===128&&(z&192)===128&&($=(M&15)<<12|(K&63)<<6|z&63,$>2047&&($<55296||$>57343)&&(k=$));break;case 4:K=r[w+1],z=r[w+2],X=r[w+3],(K&192)===128&&(z&192)===128&&(X&192)===128&&($=(M&15)<<18|(K&63)<<12|(z&63)<<6|X&63,$>65535&&$<1114112&&(k=$))}}k===null?(k=65533,W=1):k>65535&&(k-=65536,s.push(k>>>10&1023|55296),k=56320|k&1023),s.push(k),w+=W}return xe(s)}var de=4096;function xe(r){var e=r.length;if(e<=de)return String.fromCharCode.apply(String,r);for(var t="",s=0;ss)&&(t=s);for(var w="",M=e;Ms&&(e=s),t<0?(t+=s,t<0&&(t=0)):t>s&&(t=s),tt)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUIntLE=function(e,t,s){e=e>>>0,t=t>>>0,s||Y(e,t,this.length);for(var w=this[e],M=1,k=0;++k>>0,t=t>>>0,s||Y(e,t,this.length);for(var w=this[e+--t],M=1;t>0&&(M*=256);)w+=this[e+--t]*M;return w},i.prototype.readUInt8=function(e,t){return e=e>>>0,t||Y(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||Y(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||Y(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},i.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,s){e=e>>>0,t=t>>>0,s||Y(e,t,this.length);for(var w=this[e],M=1,k=0;++k=M&&(w-=Math.pow(2,8*t)),w},i.prototype.readIntBE=function(e,t,s){e=e>>>0,t=t>>>0,s||Y(e,t,this.length);for(var w=t,M=1,k=this[e+--w];w>0&&(M*=256);)k+=this[e+--w]*M;return M*=128,k>=M&&(k-=Math.pow(2,8*t)),k},i.prototype.readInt8=function(e,t){return e=e>>>0,t||Y(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},i.prototype.readInt16LE=function(e,t){e=e>>>0,t||Y(e,2,this.length);var s=this[e]|this[e+1]<<8;return s&32768?s|4294901760:s},i.prototype.readInt16BE=function(e,t){e=e>>>0,t||Y(e,2,this.length);var s=this[e+1]|this[e]<<8;return s&32768?s|4294901760:s},i.prototype.readInt32LE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),f.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),f.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||Y(e,8,this.length),f.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||Y(e,8,this.length),f.read(this,e,!1,52,8)};function Z(r,e,t,s,w,M){if(!i.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>w||er.length)throw new RangeError("Index out of range")}i.prototype.writeUIntLE=function(e,t,s,w){if(e=+e,t=t>>>0,s=s>>>0,!w){var M=Math.pow(2,8*s)-1;Z(this,e,t,s,M,0)}var k=1,W=0;for(this[t]=e&255;++W>>0,s=s>>>0,!w){var M=Math.pow(2,8*s)-1;Z(this,e,t,s,M,0)}var k=s-1,W=1;for(this[t+k]=e&255;--k>=0&&(W*=256);)this[t+k]=e/W&255;return t+s},i.prototype.writeUInt8=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,1,255,0),this[t]=e&255,t+1},i.prototype.writeUInt16LE=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},i.prototype.writeUInt16BE=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},i.prototype.writeUInt32LE=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},i.prototype.writeUInt32BE=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},i.prototype.writeIntLE=function(e,t,s,w){if(e=+e,t=t>>>0,!w){var M=Math.pow(2,8*s-1);Z(this,e,t,s,M-1,-M)}var k=0,W=1,K=0;for(this[t]=e&255;++k>0)-K&255;return t+s},i.prototype.writeIntBE=function(e,t,s,w){if(e=+e,t=t>>>0,!w){var M=Math.pow(2,8*s-1);Z(this,e,t,s,M-1,-M)}var k=s-1,W=1,K=0;for(this[t+k]=e&255;--k>=0&&(W*=256);)e<0&&K===0&&this[t+k+1]!==0&&(K=1),this[t+k]=(e/W>>0)-K&255;return t+s},i.prototype.writeInt8=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},i.prototype.writeInt16LE=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},i.prototype.writeInt16BE=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},i.prototype.writeInt32LE=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},i.prototype.writeInt32BE=function(e,t,s){return e=+e,t=t>>>0,s||Z(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function re(r,e,t,s,w,M){if(t+s>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function me(r,e,t,s,w){return e=+e,t=t>>>0,w||re(r,e,t,4),f.write(r,e,t,s,23,4),t+4}i.prototype.writeFloatLE=function(e,t,s){return me(this,e,t,!0,s)},i.prototype.writeFloatBE=function(e,t,s){return me(this,e,t,!1,s)};function Ee(r,e,t,s,w){return e=+e,t=t>>>0,w||re(r,e,t,8),f.write(r,e,t,s,52,8),t+8}i.prototype.writeDoubleLE=function(e,t,s){return Ee(this,e,t,!0,s)},i.prototype.writeDoubleBE=function(e,t,s){return Ee(this,e,t,!1,s)},i.prototype.copy=function(e,t,s,w){if(!i.isBuffer(e))throw new TypeError("argument should be a Buffer");if(s||(s=0),!w&&w!==0&&(w=this.length),t>=e.length&&(t=e.length),t||(t=0),w>0&&w=this.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("sourceEnd out of bounds");w>this.length&&(w=this.length),e.length-t=0;--k)e[k+t]=this[k+s];else Uint8Array.prototype.set.call(e,this.subarray(s,w),t);return M},i.prototype.fill=function(e,t,s,w){if(typeof e=="string"){if(typeof t=="string"?(w=t,t=0,s=this.length):typeof s=="string"&&(w=s,s=this.length),w!==void 0&&typeof w!="string")throw new TypeError("encoding must be a string");if(typeof w=="string"&&!i.isEncoding(w))throw new TypeError("Unknown encoding: "+w);if(e.length===1){var M=e.charCodeAt(0);(w==="utf8"&&M<128||w==="latin1")&&(e=M)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length>>0,s=s===void 0?this.length:s>>>0,e||(e=0);var k;if(typeof e=="number")for(k=t;k55295&&t<57344){if(!w){if(t>56319){(e-=3)>-1&&M.push(239,191,189);continue}else if(k+1===s){(e-=3)>-1&&M.push(239,191,189);continue}w=t;continue}if(t<56320){(e-=3)>-1&&M.push(239,191,189),w=t;continue}t=(w-55296<<10|t-56320)+65536}else w&&(e-=3)>-1&&M.push(239,191,189);if(w=null,t<128){if((e-=1)<0)break;M.push(t)}else if(t<2048){if((e-=2)<0)break;M.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;M.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;M.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return M}function q(r){for(var e=[],t=0;t>8,w=t%256,M.push(w),M.push(s);return M}function o(r){return n.toByteArray(b(r))}function u(r,e,t,s){for(var w=0;w=e.length||w>=r.length);++w)e[w+t]=r[w];return w}function D(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function O(r){return r!==r}var V=(function(){for(var r="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var s=t*16,w=0;w<16;++w)e[s+w]=r[t]+r[w];return e})()})(He)),He}var ue=Re();const Mn={lstatSync:()=>{},isFileReadStream(a){return!1}},ke={...Mn,runtime:"browser"},Te=a=>{if(a==null)return 0;if(typeof a=="string")return ue.Buffer.byteLength(a);if(typeof a.byteLength=="number")return a.byteLength;if(typeof a.length=="number")return a.length;if(typeof a.size=="number")return a.size;if(typeof a.start=="number"&&typeof a.end=="number")return a.end+1-a.start;if(ke.isFileReadStream(a))try{return ke.lstatSync(a.path).size}catch{return}};var ne;(function(a){a.EMPTY_INPUT="a null or undefined Body",a.CONTENT_LENGTH="the ContentLength property of the params set by the caller",a.STRING_LENGTH="the encoded byte length of the Body string",a.TYPED_ARRAY="the byteLength of a typed byte array such as Uint8Array",a.LENGTH="the value of Body.length",a.SIZE="the value of Body.size",a.START_END_DIFF="the numeric difference between Body.start and Body.end",a.LSTAT="the size of the file given by Body.path on disk as reported by lstatSync"})(ne||(ne={}));const kn=(a,n)=>{if(n!=null)return ne.CONTENT_LENGTH;if(a==null)return ne.EMPTY_INPUT;if(typeof a=="string")return ne.STRING_LENGTH;if(typeof a.byteLength=="number")return ne.TYPED_ARRAY;if(typeof a.length=="number")return ne.LENGTH;if(typeof a.size=="number")return ne.SIZE;if(typeof a.start=="number"&&typeof a.end=="number")return ne.START_END_DIFF;if(ke.isFileReadStream(a))try{return ke.lstatSync(a.path).size,ne.LSTAT}catch{return}};var De={exports:{}},Lt;function be(){return Lt||(Lt=1,typeof Object.create=="function"?De.exports=function(n,f){f&&(n.super_=f,n.prototype=Object.create(f.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:De.exports=function(n,f){if(f){n.super_=f;var l=function(){};l.prototype=f.prototype,n.prototype=new l,n.prototype.constructor=n}}),De.exports}var je,Mt;function ir(){return Mt||(Mt=1,je=Ne().EventEmitter),je}const Pn={},Nn=Object.freeze(Object.defineProperty({__proto__:null,default:Pn},Symbol.toStringTag,{value:"Module"})),ar=Lr(Nn);var We,kt;function In(){if(kt)return We;kt=1;function a(_,L){var T=Object.keys(_);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(_);L&&(p=p.filter(function(x){return Object.getOwnPropertyDescriptor(_,x).enumerable})),T.push.apply(T,p)}return T}function n(_){for(var L=1;L0?this.tail.next=p:this.head=p,this.tail=p,++this.length}},{key:"unshift",value:function(T){var p={data:T,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length}},{key:"shift",value:function(){if(this.length!==0){var T=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,T}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(T){if(this.length===0)return"";for(var p=this.head,x=""+p.data;p=p.next;)x+=T+p.data;return x}},{key:"concat",value:function(T){if(this.length===0)return g.alloc(0);for(var p=g.allocUnsafe(T>>>0),x=this.head,A=0;x;)C(x.data,p,A),A+=x.data.length,x=x.next;return p}},{key:"consume",value:function(T,p){var x;return TE.length?E.length:T;if(m===E.length?A+=E:A+=E.slice(0,T),T-=m,T===0){m===E.length?(++x,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=E.slice(m));break}++x}return this.length-=x,A}},{key:"_getBuffer",value:function(T){var p=g.allocUnsafe(T),x=this.head,A=1;for(x.data.copy(p),T-=x.data.length;x=x.next;){var E=x.data,m=T>E.length?E.length:T;if(E.copy(p,p.length-T,0,m),T-=m,T===0){m===E.length?(++A,x.next?this.head=x.next:this.head=this.tail=null):(this.head=x,x.data=E.slice(m));break}++A}return this.length-=A,p}},{key:B,value:function(T,p){return R(this,n(n({},p),{},{depth:0,customInspect:!1}))}}]),_})(),We}var Ke,Pt;function or(){if(Pt)return Ke;Pt=1;function a(h,i){var d=this,g=this._readableState&&this._readableState.destroyed,F=this._writableState&&this._writableState.destroyed;return g||F?(i?i(h):h&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(y,this,h)):process.nextTick(y,this,h)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(h||null,function(R){!i&&R?d._writableState?d._writableState.errorEmitted?process.nextTick(f,d):(d._writableState.errorEmitted=!0,process.nextTick(n,d,R)):process.nextTick(n,d,R):i?(process.nextTick(f,d),i(R)):process.nextTick(f,d)}),this)}function n(h,i){y(h,i),f(h)}function f(h){h._writableState&&!h._writableState.emitClose||h._readableState&&!h._readableState.emitClose||h.emit("close")}function l(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function y(h,i){h.emit("error",i)}function c(h,i){var d=h._readableState,g=h._writableState;d&&d.autoDestroy||g&&g.autoDestroy?h.destroy(i):h.emit("error",i)}return Ke={destroy:a,undestroy:l,errorOrDestroy:c},Ke}var $e={},Nt;function ve(){if(Nt)return $e;Nt=1;function a(i,d){i.prototype=Object.create(d.prototype),i.prototype.constructor=i,i.__proto__=d}var n={};function f(i,d,g){g||(g=Error);function F(B,C,_){return typeof d=="string"?d:d(B,C,_)}var R=(function(B){a(C,B);function C(_,L,T){return B.call(this,F(_,L,T))||this}return C})(g);R.prototype.name=g.name,R.prototype.code=i,n[i]=R}function l(i,d){if(Array.isArray(i)){var g=i.length;return i=i.map(function(F){return String(F)}),g>2?"one of ".concat(d," ").concat(i.slice(0,g-1).join(", "),", or ")+i[g-1]:g===2?"one of ".concat(d," ").concat(i[0]," or ").concat(i[1]):"of ".concat(d," ").concat(i[0])}else return"of ".concat(d," ").concat(String(i))}function y(i,d,g){return i.substr(0,d.length)===d}function c(i,d,g){return(g===void 0||g>i.length)&&(g=i.length),i.substring(g-d.length,g)===d}function h(i,d,g){return typeof g!="number"&&(g=0),g+d.length>i.length?!1:i.indexOf(d,g)!==-1}return f("ERR_INVALID_OPT_VALUE",function(i,d){return'The value "'+d+'" is invalid for option "'+i+'"'},TypeError),f("ERR_INVALID_ARG_TYPE",function(i,d,g){var F;typeof d=="string"&&y(d,"not ")?(F="must not be",d=d.replace(/^not /,"")):F="must be";var R;if(c(i," argument"))R="The ".concat(i," ").concat(F," ").concat(l(d,"type"));else{var B=h(i,".")?"property":"argument";R='The "'.concat(i,'" ').concat(B," ").concat(F," ").concat(l(d,"type"))}return R+=". Received type ".concat(typeof g),R},TypeError),f("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),f("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),f("ERR_STREAM_PREMATURE_CLOSE","Premature close"),f("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),f("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),f("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),f("ERR_STREAM_WRITE_AFTER_END","write after end"),f("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),f("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),f("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),$e.codes=n,$e}var ze,It;function sr(){if(It)return ze;It=1;var a=ve().codes.ERR_INVALID_OPT_VALUE;function n(l,y,c){return l.highWaterMark!=null?l.highWaterMark:y?l[c]:null}function f(l,y,c,h){var i=n(y,h,c);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var d=h?c:"highWaterMark";throw new a(d,i)}return Math.floor(i)}return l.objectMode?16:16*1024}return ze={getHighWaterMark:f},ze}var Ve,Ut;function Un(){if(Ut)return Ve;Ut=1,Ve=a;function a(f,l){if(n("noDeprecation"))return f;var y=!1;function c(){if(!y){if(n("throwDeprecation"))throw new Error(l);n("traceDeprecation")?console.trace(l):console.warn(l),y=!0}return f.apply(this,arguments)}return c}function n(f){try{if(!we.localStorage)return!1}catch{return!1}var l=we.localStorage[f];return l==null?!1:String(l).toLowerCase()==="true"}return Ve}var Ge,Ot;function ur(){if(Ot)return Ge;Ot=1,Ge=N;function a(v){var b=this;this.next=null,this.entry=null,this.finish=function(){Ee(b,v)}}var n;N.WritableState=S;var f={deprecate:Un()},l=ir(),y=Re().Buffer,c=(typeof we<"u"?we:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h(v){return y.from(v)}function i(v){return y.isBuffer(v)||v instanceof c}var d=or(),g=sr(),F=g.getHighWaterMark,R=ve().codes,B=R.ERR_INVALID_ARG_TYPE,C=R.ERR_METHOD_NOT_IMPLEMENTED,_=R.ERR_MULTIPLE_CALLBACK,L=R.ERR_STREAM_CANNOT_PIPE,T=R.ERR_STREAM_DESTROYED,p=R.ERR_STREAM_NULL_VALUES,x=R.ERR_STREAM_WRITE_AFTER_END,A=R.ERR_UNKNOWN_ENCODING,E=d.errorOrDestroy;be()(N,l);function m(){}function S(v,b,P){n=n||ge(),v=v||{},typeof P!="boolean"&&(P=b instanceof n),this.objectMode=!!v.objectMode,P&&(this.objectMode=this.objectMode||!!v.writableObjectMode),this.highWaterMark=F(this,v,"writableHighWaterMark",P),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var q=v.decodeStrings===!1;this.decodeStrings=!q,this.defaultEncoding=v.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(j){xe(b,j)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=v.emitClose!==!1,this.autoDestroy=!!v.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}S.prototype.getBuffer=function(){for(var b=this.bufferedRequest,P=[];b;)P.push(b),b=b.next;return P},(function(){try{Object.defineProperty(S.prototype,"buffer",{get:f.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var I;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(I=Function.prototype[Symbol.hasInstance],Object.defineProperty(N,Symbol.hasInstance,{value:function(b){return I.call(this,b)?!0:this!==N?!1:b&&b._writableState instanceof S}})):I=function(b){return b instanceof this};function N(v){n=n||ge();var b=this instanceof n;if(!b&&!I.call(N,this))return new N(v);this._writableState=new S(v,this,b),this.writable=!0,v&&(typeof v.write=="function"&&(this._write=v.write),typeof v.writev=="function"&&(this._writev=v.writev),typeof v.destroy=="function"&&(this._destroy=v.destroy),typeof v.final=="function"&&(this._final=v.final)),l.call(this)}N.prototype.pipe=function(){E(this,new L)};function U(v,b){var P=new x;E(v,P),process.nextTick(b,P)}function H(v,b,P,q){var j;return P===null?j=new p:typeof P!="string"&&!b.objectMode&&(j=new B("chunk",["string","Buffer"],P)),j?(E(v,j),process.nextTick(q,j),!1):!0}N.prototype.write=function(v,b,P){var q=this._writableState,j=!1,o=!q.objectMode&&i(v);return o&&!y.isBuffer(v)&&(v=h(v)),typeof b=="function"&&(P=b,b=null),o?b="buffer":b||(b=q.defaultEncoding),typeof P!="function"&&(P=m),q.ending?U(this,P):(o||H(this,q,v,P))&&(q.pendingcb++,j=J(this,q,o,v,b,P)),j},N.prototype.cork=function(){this._writableState.corked++},N.prototype.uncork=function(){var v=this._writableState;v.corked&&(v.corked--,!v.writing&&!v.corked&&!v.bufferProcessing&&v.bufferedRequest&&se(this,v))},N.prototype.setDefaultEncoding=function(b){if(typeof b=="string"&&(b=b.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((b+"").toLowerCase())>-1))throw new A(b);return this._writableState.defaultEncoding=b,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Q(v,b,P){return!v.objectMode&&v.decodeStrings!==!1&&typeof b=="string"&&(b=y.from(b,P)),b}Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function J(v,b,P,q,j,o){if(!P){var u=Q(b,q,j);q!==u&&(P=!0,j="buffer",q=u)}var D=b.objectMode?1:q.length;b.length+=D;var O=b.length>5===6?2:p>>4===14?3:p>>3===30?4:p>>6===2?-1:-2}function h(p,x,A){var E=x.length-1;if(E=0?(m>0&&(p.lastNeed=m-1),m):--E=0?(m>0&&(p.lastNeed=m-2),m):--E=0?(m>0&&(m===2?m=0:p.lastNeed=m-3),m):0))}function i(p,x,A){if((x[0]&192)!==128)return p.lastNeed=0,"�";if(p.lastNeed>1&&x.length>1){if((x[1]&192)!==128)return p.lastNeed=1,"�";if(p.lastNeed>2&&x.length>2&&(x[2]&192)!==128)return p.lastNeed=2,"�"}}function d(p){var x=this.lastTotal-this.lastNeed,A=i(this,p);if(A!==void 0)return A;if(this.lastNeed<=p.length)return p.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,x,0,p.length),this.lastNeed-=p.length}function g(p,x){var A=h(this,p,x);if(!this.lastNeed)return p.toString("utf8",x);this.lastTotal=A;var E=p.length-(A-this.lastNeed);return p.copy(this.lastChar,0,E),p.toString("utf8",x,E)}function F(p){var x=p&&p.length?this.write(p):"";return this.lastNeed?x+"�":x}function R(p,x){if((p.length-x)%2===0){var A=p.toString("utf16le",x);if(A){var E=A.charCodeAt(A.length-1);if(E>=55296&&E<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",x,p.length-1)}function B(p){var x=p&&p.length?this.write(p):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,A)}return x}function C(p,x){var A=(p.length-x)%3;return A===0?p.toString("base64",x):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=p[p.length-1]:(this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1]),p.toString("base64",x,p.length-A))}function _(p){var x=p&&p.length?this.write(p):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function L(p){return p.toString(this.encoding)}function T(p){return p&&p.length?this.write(p):""}return Xe}var Qe,Kt;function xt(){if(Kt)return Qe;Kt=1;var a=ve().codes.ERR_STREAM_PREMATURE_CLOSE;function n(c){var h=!1;return function(){if(!h){h=!0;for(var i=arguments.length,d=new Array(i),g=0;g0)if(typeof u!="string"&&!r.objectMode&&Object.getPrototypeOf(u)!==l.prototype&&(u=c(u)),O)r.endEmitted?m(o,new p):Q(o,r,u,!0);else if(r.ended)m(o,new L);else{if(r.destroyed)return!1;r.reading=!1,r.decoder&&!D?(u=r.decoder.write(u),r.objectMode||u.length!==0?Q(o,r,u,!1):se(o,r)):Q(o,r,u,!1)}else O||(r.reading=!1,se(o,r))}return!r.ended&&(r.length=ee?o=ee:(o--,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o++),o}function de(o,u){return o<=0||u.length===0&&u.ended?0:u.objectMode?1:o!==o?u.flowing&&u.length?u.buffer.head.data.length:u.length:(o>u.highWaterMark&&(u.highWaterMark=oe(o)),o<=u.length?o:u.ended?u.length:(u.needReadable=!0,0))}U.prototype.read=function(o){d("read",o),o=parseInt(o,10);var u=this._readableState,D=o;if(o!==0&&(u.emittedReadable=!1),o===0&&u.needReadable&&((u.highWaterMark!==0?u.length>=u.highWaterMark:u.length>0)||u.ended))return d("read: emitReadable",u.length,u.ended),u.length===0&&u.ended?P(this):ie(this),null;if(o=de(o,u),o===0&&u.ended)return u.length===0&&P(this),null;var O=u.needReadable;d("need readable",O),(u.length===0||u.length-o0?V=b(o,u):V=null,V===null?(u.needReadable=u.length<=u.highWaterMark,o=0):(u.length-=o,u.awaitDrain=0),u.length===0&&(u.ended||(u.needReadable=!0),D!==o&&u.ended&&P(this)),V!==null&&this.emit("data",V),V};function xe(o,u){if(d("onEofChunk"),!u.ended){if(u.decoder){var D=u.decoder.end();D&&D.length&&(u.buffer.push(D),u.length+=u.objectMode?1:D.length)}u.ended=!0,u.sync?ie(o):(u.needReadable=!1,u.emittedReadable||(u.emittedReadable=!0,pe(o)))}}function ie(o){var u=o._readableState;d("emitReadable",u.needReadable,u.emittedReadable),u.needReadable=!1,u.emittedReadable||(d("emitReadable",u.flowing),u.emittedReadable=!0,process.nextTick(pe,o))}function pe(o){var u=o._readableState;d("emitReadable_",u.destroyed,u.length,u.ended),!u.destroyed&&(u.length||u.ended)&&(o.emit("readable"),u.emittedReadable=!1),u.needReadable=!u.flowing&&!u.ended&&u.length<=u.highWaterMark,v(o)}function se(o,u){u.readingMore||(u.readingMore=!0,process.nextTick(ye,o,u))}function ye(o,u){for(;!u.reading&&!u.ended&&(u.length1&&j(O.pipes,o)!==-1)&&!w&&(d("false write response, pause",O.awaitDrain),O.awaitDrain++),D.pause())}function W($){d("onerror",$),X(),o.removeListener("error",W),n(o,"error")===0&&m(o,$)}I(o,"error",W);function K(){o.removeListener("finish",z),X()}o.once("close",K);function z(){d("onfinish"),o.removeListener("close",K),X()}o.once("finish",z);function X(){d("unpipe"),D.unpipe(o)}return o.emit("pipe",D),O.flowing||(d("pipe resume"),D.resume()),o};function Y(o){return function(){var D=o._readableState;d("pipeOnDrain",D.awaitDrain),D.awaitDrain&&D.awaitDrain--,D.awaitDrain===0&&n(o,"data")&&(D.flowing=!0,v(o))}}U.prototype.unpipe=function(o){var u=this._readableState,D={hasUnpiped:!1};if(u.pipesCount===0)return this;if(u.pipesCount===1)return o&&o!==u.pipes?this:(o||(o=u.pipes),u.pipes=null,u.pipesCount=0,u.flowing=!1,o&&o.emit("unpipe",this,D),this);if(!o){var O=u.pipes,V=u.pipesCount;u.pipes=null,u.pipesCount=0,u.flowing=!1;for(var r=0;r0,O.flowing!==!1&&this.resume()):o==="readable"&&!O.endEmitted&&!O.readableListening&&(O.readableListening=O.needReadable=!0,O.flowing=!1,O.emittedReadable=!1,d("on readable",O.length,O.reading),O.length?ie(this):O.reading||process.nextTick(re,this)),D},U.prototype.addListener=U.prototype.on,U.prototype.removeListener=function(o,u){var D=f.prototype.removeListener.call(this,o,u);return o==="readable"&&process.nextTick(Z,this),D},U.prototype.removeAllListeners=function(o){var u=f.prototype.removeAllListeners.apply(this,arguments);return(o==="readable"||o===void 0)&&process.nextTick(Z,this),u};function Z(o){var u=o._readableState;u.readableListening=o.listenerCount("readable")>0,u.resumeScheduled&&!u.paused?u.flowing=!0:o.listenerCount("data")>0&&o.resume()}function re(o){d("readable nexttick read 0"),o.read(0)}U.prototype.resume=function(){var o=this._readableState;return o.flowing||(d("resume"),o.flowing=!o.readableListening,me(this,o)),o.paused=!1,this};function me(o,u){u.resumeScheduled||(u.resumeScheduled=!0,process.nextTick(Ee,o,u))}function Ee(o,u){d("resume",u.reading),u.reading||o.read(0),u.resumeScheduled=!1,o.emit("resume"),v(o),u.flowing&&!u.reading&&o.read(0)}U.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function v(o){var u=o._readableState;for(d("flow",u.flowing);u.flowing&&o.read()!==null;);}U.prototype.wrap=function(o){var u=this,D=this._readableState,O=!1;o.on("end",function(){if(d("wrapped end"),D.decoder&&!D.ended){var e=D.decoder.end();e&&e.length&&u.push(e)}u.push(null)}),o.on("data",function(e){if(d("wrapped data"),D.decoder&&(e=D.decoder.write(e)),!(D.objectMode&&e==null)&&!(!D.objectMode&&(!e||!e.length))){var t=u.push(e);t||(O=!0,o.pause())}});for(var V in o)this[V]===void 0&&typeof o[V]=="function"&&(this[V]=(function(t){return function(){return o[t].apply(o,arguments)}})(V));for(var r=0;r=u.length?(u.decoder?D=u.buffer.join(""):u.buffer.length===1?D=u.buffer.first():D=u.buffer.concat(u.length),u.buffer.clear()):D=u.buffer.consume(o,u.decoder),D}function P(o){var u=o._readableState;d("endReadable",u.endEmitted),u.endEmitted||(u.ended=!0,process.nextTick(q,u,o))}function q(o,u){if(d("endReadableNT",o.endEmitted,o.length),!o.endEmitted&&o.length===0&&(o.endEmitted=!0,u.readable=!1,u.emit("end"),o.autoDestroy)){var D=u._writableState;(!D||D.autoDestroy&&D.finished)&&u.destroy()}}typeof Symbol=="function"&&(U.from=function(o,u){return E===void 0&&(E=Hn()),E(U,o,u)});function j(o,u){for(var D=0,O=o.length;D0;return i(x,E,m,function(S){T||(T=S),S&&p.forEach(d),!E&&(p.forEach(d),L(T))})});return C.reduce(g)}return nt=R,nt}var it,Qt;function Kn(){if(Qt)return it;Qt=1,it=f;var a=Ne().EventEmitter,n=be();n(f,a),f.Readable=fr(),f.Writable=ur(),f.Duplex=ge(),f.Transform=lr(),f.PassThrough=jn(),f.finished=xt(),f.pipeline=Wn(),f.Stream=f;function f(){a.call(this)}return f.prototype.pipe=function(l,y){var c=this;function h(C){l.writable&&l.write(C)===!1&&c.pause&&c.pause()}c.on("data",h);function i(){c.readable&&c.resume&&c.resume()}l.on("drain",i),!l._isStdio&&(!y||y.end!==!1)&&(c.on("end",g),c.on("close",F));var d=!1;function g(){d||(d=!0,l.end())}function F(){d||(d=!0,typeof l.destroy=="function"&&l.destroy())}function R(C){if(B(),a.listenerCount(this,"error")===0)throw C}c.on("error",R),l.on("error",R);function B(){c.removeListener("data",h),l.removeListener("drain",i),c.removeListener("end",g),c.removeListener("close",F),c.removeListener("error",R),l.removeListener("error",R),c.removeListener("end",B),c.removeListener("close",B),l.removeListener("close",B)}return c.on("end",B),c.on("close",B),l.on("close",B),l.emit("pipe",c),l},it}var $n=Kn();async function*at(a,n,f){let l=1;const y={chunks:[],length:0};for await(const c of f(a))for(y.chunks.push(c),y.length+=c.byteLength;y.length>n;){const h=y.chunks.length>1?ue.Buffer.concat(y.chunks):y.chunks[0];yield{partNumber:l,data:h.subarray(0,n)},y.chunks=[h.subarray(n)],y.length=y.chunks[0].byteLength,l+=1}yield{partNumber:l,data:y.chunks.length!==1?ue.Buffer.concat(y.chunks):y.chunks[0],lastPart:!0}}async function*Zt(a,n){let f=1,l=0,y=n;for(;y{if(a instanceof Uint8Array)return Zt(a,n);if(a instanceof $n.Readable)return at(a,n,zn);if(a instanceof String||typeof a=="string")return Zt(ue.Buffer.from(a),n);if(typeof a.stream=="function")return at(a.stream(),n,Jt);if(a instanceof ReadableStream)return at(a,n,Jt);throw new Error("Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.")};class Ae extends qe.EventEmitter{static MIN_PART_SIZE=1024*1024*5;MAX_PARTS=1e4;queueSize=4;partSize;leavePartsOnError=!1;tags=[];client;params;totalBytes;totalBytesSource;bytesUploadedSoFar;abortController;concurrentUploaders=[];createMultiPartPromise;abortMultipartUploadCommand=null;uploadedParts=[];uploadEnqueuedPartsCount=0;expectedPartsCount;uploadId;uploadEvent;isMultiPart=!0;singleUploadResult;sent=!1;constructor(n){if(super(),this.queueSize=n.queueSize||this.queueSize,this.leavePartsOnError=n.leavePartsOnError||this.leavePartsOnError,this.tags=n.tags||this.tags,this.client=n.client,this.params=n.params,!this.params)throw new Error("InputError: Upload requires params to be passed to upload.");this.totalBytes=this.params.ContentLength??Te(this.params.Body),this.totalBytesSource=kn(this.params.Body,this.params.ContentLength),this.bytesUploadedSoFar=0,this.abortController=n.abortController??new Tn,this.partSize=n.partSize||Math.max(Ae.MIN_PART_SIZE,Math.floor((this.totalBytes||0)/this.MAX_PARTS)),this.totalBytes!==void 0&&(this.expectedPartsCount=Math.ceil(this.totalBytes/this.partSize)),this.__validateInput()}async abort(){this.abortController.abort()}async done(){if(this.sent)throw new Error("@aws-sdk/lib-storage: this instance of Upload has already executed .done(). Create a new instance.");return this.sent=!0,await Promise.race([this.__doMultipartUpload(),this.__abortTimeout(this.abortController.signal)])}on(n,f){return this.uploadEvent=n,super.on(n,f)}async __uploadUsingPut(n){this.isMultiPart=!1;const f={...this.params,Body:n.data},l=this.client.config,y=l.requestHandler,c=y instanceof qe.EventEmitter?y:null,h=_=>{this.bytesUploadedSoFar=_.loaded,this.totalBytes=_.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:n.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};c!==null&&c.on("xhr.upload.progress",h);const i=await Promise.all([this.client.send(new Rt(f)),l?.endpoint?.()]),d=i[0];let g=i[1];if(g||(g=Mr(await kr(f,Rt,{...l}))),!g)throw new Error('Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.');c!==null&&c.off("xhr.upload.progress",h);const F=this.params.Key.split("/").map(_=>St(_)).join("/"),R=St(this.params.Bucket),B=(()=>{const _=g.hostname.startsWith(`${R}.`),L=this.client.config.forcePathStyle,T=g.port?`:${g.port}`:"";return L?`${g.protocol}//${g.hostname}${T}/${R}/${F}`:_?`${g.protocol}//${g.hostname}${T}/${F}`:`${g.protocol}//${R}.${g.hostname}${T}/${F}`})();this.singleUploadResult={...d,Bucket:this.params.Bucket,Key:this.params.Key,Location:B};const C=Te(n.data);this.__notifyProgress({loaded:C,total:C,part:1,Key:this.params.Key,Bucket:this.params.Bucket})}async __createMultipartUpload(){const n=await this.client.config.requestChecksumCalculation();if(!this.createMultiPartPromise){const f={...this.params,Body:void 0};n==="WHEN_SUPPORTED"&&(f.ChecksumAlgorithm=this.params.ChecksumAlgorithm||Bn.CRC32),this.createMultiPartPromise=this.client.send(new Cn(f)).then(l=>(this.abortMultipartUploadCommand=new yn({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:l.UploadId}),l))}return this.createMultiPartPromise}async __doConcurrentUpload(n){for await(const f of n){if(this.uploadEnqueuedPartsCount>this.MAX_PARTS)throw new Error(`Exceeded ${this.MAX_PARTS} parts in multipart upload to Bucket: ${this.params.Bucket} Key: ${this.params.Key}.`);if(this.abortController.signal.aborted)return;if(f.partNumber===1&&f.lastPart)return await this.__uploadUsingPut(f);if(!this.uploadId){const{UploadId:g}=await this.__createMultipartUpload();if(this.uploadId=g,this.abortController.signal.aborted)return}const l=Te(f.data)||0,y=this.client.config.requestHandler,c=y instanceof qe.EventEmitter?y:null;let h=0;const i=(g,F)=>{(Number(F.query.partNumber)||-1)===f.partNumber&&(g.total&&l&&(this.bytesUploadedSoFar+=g.loaded-h,h=g.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:f.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};c!==null&&c.on("xhr.upload.progress",i),this.uploadEnqueuedPartsCount+=1,this.__validateUploadPart(f);const d=await this.client.send(new Rn({...this.params,ContentLength:void 0,UploadId:this.uploadId,Body:f.data,PartNumber:f.partNumber}));if(c!==null&&c.off("xhr.upload.progress",i),this.abortController.signal.aborted)return;if(!d.ETag)throw new Error(`Part ${f.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push({PartNumber:f.partNumber,ETag:d.ETag,...d.ChecksumCRC32&&{ChecksumCRC32:d.ChecksumCRC32},...d.ChecksumCRC32C&&{ChecksumCRC32C:d.ChecksumCRC32C},...d.ChecksumSHA1&&{ChecksumSHA1:d.ChecksumSHA1},...d.ChecksumSHA256&&{ChecksumSHA256:d.ChecksumSHA256}}),c===null&&(this.bytesUploadedSoFar+=l),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:f.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}}async __doMultipartUpload(){const n=Vn(this.params.Body,this.partSize),f=[];for(let y=0;y{f.push(h)});this.concurrentUploaders.push(c)}if(await Promise.all(this.concurrentUploaders),f.length>=1)throw await this.markUploadAsAborted(),f[0];if(this.abortController.signal.aborted)throw await this.markUploadAsAborted(),Object.assign(new Error("Upload aborted."),{name:"AbortError"});let l;if(this.isMultiPart){const{expectedPartsCount:y,uploadedParts:c,totalBytes:h,totalBytesSource:i}=this;if(h!==void 0&&y!==void 0&&c.length!==y)throw new Error(`Expected ${y} part(s) but uploaded ${c.length} part(s). The expected part count is based on the byte-count of the input.params.Body, which was read from ${i} and is ${h}. If this is not correct, provide an override value by setting a number diff --git a/hive/services/hiveui/frontend/dist/assets/select.js b/hive/services/hiveui/frontend/dist/assets/select.js new file mode 100644 index 000000000..ab12822f2 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/select.js @@ -0,0 +1 @@ +import{k as Kt,aI as Et,aJ as Se,aK as tt,aL as De,aM as He,aN as Nt,aO as xn,r as i,aP as $t,aQ as Le,aR as Vt,aS as yn,aT as xe,aU as Rn,aV as qt,aW as Yt,aX as ke,aY as Sn,aZ as wn,a_ as Q,a$ as vn,b0 as pe,b1 as Lt,b2 as kt,b3 as ft,b4 as Ue,b5 as yt,b6 as Dt,b7 as Mn,b8 as Gt,b9 as Tn,ba as In,bb as pt,j as U,bc as Z,bd as Ht,be as Ct,bf as En,bg as Mt,bh as Cn,bi as L,bj as An,bk as gt,bl as Pn,bm as On,bn as Nn,bo as Xt,bp as Vn,bq as Jt,br as Ln,bs as kn,bt as At,bu as Zt,bv as Ne,bw as Dn,bx as Hn,by as Fn,bz as _n,bA as Un,bB as jn,bC as Bn,bD as zn,bE as Wn,bF as Qt,bG as en,bH as Ft,bI as Kn,bJ as $n,bK as qn,bL as Yn,bM as tn,bN as Gn,bO as Rt,c as qe,a as Ye}from"./index.js";import{C as Xn}from"./check.js";import{u as Jn,d as nn,e as rn,f as _t,g as Zn,h as Qn,i as er}from"./field.js";const tr=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],on=Kt("chevron-down",tr);const nr=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],rr=Kt("chevron-up",nr);function lt(t,e,n){return Math.floor(t/e)!==n}function Ze(t,e){return e<0||e>=t.current.length}function St(t,e){return be(t,{disabledIndices:e})}function Ut(t,e){return be(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function be(t,{startingIndex:e=-1,decrement:n=!1,disabledIndices:r,amount:s=1}={}){let o=e;do o+=n?-s:s;while(o>=0&&o<=t.current.length-1&&Qe(t,o,r));return o}function or(t,{event:e,orientation:n,loopFocus:r,rtl:s,cols:o,disabledIndices:l,minIndex:u,maxIndex:f,prevIndex:p,stopEvent:b=!1}){let c=p;const y=[],v={};let T=!1;{let a=null,g=-1;t.current.forEach((m,d)=>{if(m==null)return;const h=m.closest('[role="row"]');h&&(T=!0),(h!==a||g===-1)&&(a=h,g+=1,y[g]=[]),y[g].push(d),v[d]=g})}const x=T&&y.length>0&&y.some(a=>a.length!==o);function w(a){if(!x||p===-1)return;const g=v[p];if(g==null)return;const m=y[g].indexOf(p);let d=a==="up"?g-1:g+1;r&&(d<0?d=y.length-1:d>=y.length&&(d=0));const h=new Set;for(;d>=0&&d=0;D-=1){const ee=$[D];if(!Qe(t,ee,l))return ee}d=a==="up"?d-1:d+1,r&&(d<0?d=y.length-1:d>=y.length&&(d=0))}}if(e.key===Et){const a=w("up");if(a!==void 0)b&&Se(e),c=a;else{if(b&&Se(e),p===-1)c=f;else if(c=be(t,{startingIndex:c,amount:o,decrement:!0,disabledIndices:l}),r&&(p-og?d:d-o}Ze(t,c)&&(c=p)}}if(e.key===tt){const a=w("down");a!==void 0?(b&&Se(e),c=a):(b&&Se(e),p===-1?c=u:(c=be(t,{startingIndex:p,amount:o,disabledIndices:l}),r&&p+o>f&&(c=be(t,{startingIndex:p%o-o,amount:o,disabledIndices:l}))),Ze(t,c)&&(c=p))}if(n==="both"){const a=Nt(p/o);e.key===(s?De:He)&&(b&&Se(e),p%o!==o-1?(c=be(t,{startingIndex:p,disabledIndices:l}),r&<(c,o,a)&&(c=be(t,{startingIndex:p-p%o-1,disabledIndices:l}))):r&&(c=be(t,{startingIndex:p-p%o-1,disabledIndices:l})),lt(c,o,a)&&(c=p)),e.key===(s?He:De)&&(b&&Se(e),p%o!==0?(c=be(t,{startingIndex:p,decrement:!0,disabledIndices:l}),r&<(c,o,a)&&(c=be(t,{startingIndex:p+(o-p%o),decrement:!0,disabledIndices:l}))):r&&(c=be(t,{startingIndex:p+(o-p%o),decrement:!0,disabledIndices:l})),lt(c,o,a)&&(c=p));const g=Nt(f/o)===a;Ze(t,c)&&(r&&g?c=e.key===(s?He:De)?f:be(t,{startingIndex:p-p%o-1,disabledIndices:l}):c=p)}return c}function sr(t,e,n){const r=[];let s=0;return t.forEach(({width:o,height:l},u)=>{let f=!1;for(;!f;){const p=[];for(let b=0;br[b]==null)?(p.forEach(b=>{r[b]=u}),f=!0):s+=1}}),[...r]}function ir(t,e,n,r,s){if(t===-1)return-1;const o=n.indexOf(t),l=e[t];switch(s){case"tl":return o;case"tr":return l?o+l.width-1:o;case"bl":return l?o+(l.height-1)*r:o;case"br":return n.lastIndexOf(t);default:return-1}}function lr(t,e){return e.flatMap((n,r)=>t.includes(n)?[r]:[])}function Qe(t,e,n){if(typeof n=="function")return n(e);if(n)return n.includes(e);const r=t.current[e];return r?r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true":!1}function cr(t,e={}){const n="rootStore"in t?t.rootStore:t,r=n.context.dataRef,{enabled:s=!0,event:o="click",toggle:l=!0,ignoreMouse:u=!1,stickIfOpen:f=!0,touchOpenDelay:p=0,reason:b=xn}=e,c=i.useRef(void 0),y=$t(),v=Le(),T=i.useMemo(()=>({onPointerDown(x){c.current=x.pointerType},onMouseDown(x){const w=c.current,a=x.nativeEvent,g=n.select("open");if(x.button!==0||o==="click"||Vt(w,!0)&&u)return;const m=r.current.openEvent,d=m?.type,h=n.select("domReferenceElement")!==x.currentTarget,$=g&&h||!(g&&l&&(!(m&&f)||d==="click"||d==="mousedown"));if(Rn(a.target)){const D=xe(b,a,a.target);$&&w==="touch"&&p>0?v.start(p,()=>{n.setOpen(!0,D)}):n.setOpen($,D);return}const F=x.currentTarget;y.request(()=>{const D=xe(b,a,F);$&&w==="touch"&&p>0?v.start(p,()=>{n.setOpen(!0,D)}):n.setOpen($,D)})},onClick(x){if(o==="mousedown-only")return;const w=c.current;if(o==="mousedown"&&w){c.current=void 0;return}if(Vt(w,!0)&&u)return;const a=n.select("open"),g=r.current.openEvent,m=n.select("domReferenceElement")!==x.currentTarget,d=a&&m||!(a&&l&&(!(g&&f)||yn(g))),h=xe(b,x.nativeEvent,x.currentTarget);d&&w==="touch"&&p>0?v.start(p,()=>{n.setOpen(!0,h)}):n.setOpen(d,h)},onKeyDown(){c.current=void 0}}),[r,o,u,n,f,l,y,v,p,b]);return i.useMemo(()=>s?{reference:T}:qt,[s,T])}const ar="Escape";function mt(t,e,n){switch(t){case"vertical":return e;case"horizontal":return n;default:return e||n}}function ct(t,e){return mt(e,t===Et||t===tt,t===De||t===He)}function wt(t,e,n){return mt(e,t===tt,n?t===De:t===He)||t==="Enter"||t===" "||t===""}function ur(t,e,n){return mt(e,n?t===De:t===He,t===tt)}function fr(t,e,n,r){const s=n?t===He:t===De,o=t===Et;return e==="both"||e==="horizontal"&&r&&r>1?t===ar:mt(e,s,o)}function dr(t,e){const n="rootStore"in t?t.rootStore:t,r=n.useState("open"),s=n.useState("floatingElement"),o=n.useState("domReferenceElement"),l=n.context.dataRef,{listRef:u,activeIndex:f,onNavigate:p=()=>{},enabled:b=!0,selectedIndex:c=null,allowEscape:y=!1,loopFocus:v=!1,nested:T=!1,rtl:x=!1,virtual:w=!1,focusItemOnOpen:a="auto",focusItemOnHover:g=!0,openOnArrowKeyDown:m=!0,disabledIndices:d=void 0,orientation:h="vertical",parentOrientation:$,cols:F=1,id:D,resetOnPointerLeave:ee=!0,externalTree:ce}=e,J=Yt(s),B=ke(J),ne=Sn(),A=wn(ce);Q(()=>{l.current.orientation=h},[l,h]);const se=vn(o),q=i.useRef(a),E=i.useRef(c??-1),z=i.useRef(null),S=i.useRef(!0),C=pe(M=>{p(E.current===-1?null:E.current,M)}),te=i.useRef(C),I=i.useRef(!!s),Y=i.useRef(r),k=i.useRef(!1),ae=i.useRef(!1),O=ke(d),K=ke(r),oe=ke(c),ve=ke(ee),Te=pe(()=>{function M(W){w?A?.events.emit("virtualfocus",W):Lt(W,{sync:k.current,preventScroll:!0})}const V=u.current[E.current],R=ae.current;V&&M(V),(k.current?W=>W():requestAnimationFrame)(()=>{const W=u.current[E.current]||V;if(!W)return;V||M(W),G&&(R||!S.current)&&W.scrollIntoView?.({block:"nearest",inline:"nearest"})})});Q(()=>{b&&(r&&s?(E.current=c??-1,q.current&&c!=null&&(ae.current=!0,C())):I.current&&(E.current=-1,te.current()))},[b,r,s,c,C]),Q(()=>{if(b){if(!r){k.current=!1;return}if(s)if(f==null){if(k.current=!1,oe.current!=null)return;if(I.current&&(E.current=-1,Te()),(!Y.current||!I.current)&&q.current&&(z.current!=null||q.current===!0&&z.current==null)){let M=0;const V=()=>{u.current[0]==null?(M<2&&(M?requestAnimationFrame:queueMicrotask)(V),M+=1):(E.current=z.current==null||wt(z.current,h,x)||T?St(u):Ut(u),z.current=null,C())};V()}}else Ze(u,f)||(E.current=f,Te(),ae.current=!1)}},[b,r,s,f,oe,T,u,h,x,C,Te,O]),Q(()=>{if(!b||s||!A||w||!I.current)return;const M=A.nodesRef.current,V=M.find(W=>W.id===ne)?.context?.elements.floating,R=kt(ft(s)),_=M.some(W=>W.context&&Ue(W.context.elements.floating,R));V&&!_&&S.current&&V.focus({preventScroll:!0})},[b,s,A,ne,w]),Q(()=>{te.current=C,Y.current=r,I.current=!!s}),Q(()=>{r||(z.current=null,q.current=a)},[r,a]);const j=f!=null,G=i.useMemo(()=>{function M(R){if(!K.current)return;const _=u.current.indexOf(R.currentTarget);_!==-1&&E.current!==_&&(E.current=_,C(R))}return{onFocus(R){k.current=!0,M(R)},onClick:({currentTarget:R})=>R.focus({preventScroll:!0}),onMouseMove(R){k.current=!0,ae.current=!1,g&&M(R)},onPointerLeave(R){if(!K.current||!S.current||R.pointerType==="touch")return;k.current=!0;const _=R.relatedTarget;!g||u.current.includes(_)||ve.current&&(Lt(null,{sync:!0}),E.current=-1,C(R),w||B.current?.focus({preventScroll:!0}))}}},[K,B,g,u,C,ve,w]),ue=i.useCallback(()=>$??A?.nodesRef.current.find(M=>M.id===ne)?.context?.dataRef?.current.orientation,[ne,A,$]),ie=pe(M=>{if(S.current=!1,k.current=!0,M.which===229||!K.current&&M.currentTarget===B.current)return;if(T&&fr(M.key,h,x,F)){ct(M.key,ue())||Se(M),n.setOpen(!1,xe(yt,M.nativeEvent)),Dt(o)&&(w?A?.events.emit("virtualfocus",o):o.focus());return}const V=E.current,R=St(u,d),_=Ut(u,d);if(se||(M.key==="Home"&&(Se(M),E.current=R,C(M)),M.key==="End"&&(Se(M),E.current=_,C(M))),F>1){const W=Array.from({length:u.current.length},()=>({width:1,height:1})),N=sr(W,F),me=N.findIndex(Re=>Re!=null&&!Qe(u,Re,d)),we=N.reduce((Re,re,he)=>re!=null&&!Qe(u,re,d)?he:Re,-1),Ce=N[or({current:N.map(Re=>Re!=null?u.current[Re]:null)},{event:M,orientation:h,loopFocus:v,rtl:x,cols:F,disabledIndices:lr([...(typeof d!="function"?d:null)||u.current.map((Re,re)=>Qe(u,re,d)?re:void 0),void 0],N),minIndex:me,maxIndex:we,prevIndex:ir(E.current>_?R:E.current,W,N,F,M.key===tt?"bl":M.key===(x?De:He)?"tr":"tl"),stopEvent:!0})];if(Ce!=null&&(E.current=Ce,C(M)),h==="both")return}if(ct(M.key,h)){if(Se(M),r&&!w&&kt(M.currentTarget.ownerDocument)===M.currentTarget){E.current=wt(M.key,h,x)?R:_,C(M);return}wt(M.key,h,x)?v?V>=_?y&&V!==u.current.length?E.current=-1:(k.current=!1,E.current=R):E.current=be(u,{startingIndex:V,disabledIndices:d}):E.current=Math.min(_,be(u,{startingIndex:V,disabledIndices:d})):v?V<=R?y&&V!==-1?E.current=u.current.length:(k.current=!1,E.current=_):E.current=be(u,{startingIndex:V,decrement:!0,disabledIndices:d}):E.current=Math.max(R,be(u,{startingIndex:V,decrement:!0,disabledIndices:d})),Ze(u,E.current)&&(E.current=-1),C(M)}}),fe=i.useMemo(()=>w&&r&&j&&{"aria-activedescendant":`${D}-${f}`},[w,r,j,D,f]),ye=i.useMemo(()=>({"aria-orientation":h==="both"?void 0:h,...se?{}:fe,onKeyDown(M){if(M.key==="Tab"&&M.shiftKey&&r&&!w){const V=Mn(M.nativeEvent);if(V&&!Ue(B.current,V))return;Se(M),n.setOpen(!1,xe(Gt,M.nativeEvent)),Dt(o)&&o.focus();return}ie(M)},onPointerMove(){S.current=!0}}),[fe,ie,B,h,se,n,r,w,o]),X=i.useMemo(()=>{function M(R){a==="auto"&&Tn(R.nativeEvent)&&(q.current=!w)}function V(R){q.current=a,a==="auto"&&In(R.nativeEvent)&&(q.current=!0)}return{onKeyDown(R){const _=n.select("open");S.current=!1;const W=R.key.startsWith("Arrow"),N=ur(R.key,ue(),x),me=ct(R.key,h),we=(T?N:me)||R.key==="Enter"||R.key.trim()==="";if(w&&_)return ie(R);if(!(!_&&!m&&W)){if(we){const Ce=ct(R.key,ue());z.current=T&&Ce?null:R.key}if(T){N&&(Se(R),_?(E.current=St(u,O.current),C(R)):n.setOpen(!0,xe(yt,R.nativeEvent,R.currentTarget)));return}me&&(oe.current!=null&&(E.current=oe.current),Se(R),!_&&m?n.setOpen(!0,xe(yt,R.nativeEvent,R.currentTarget)):ie(R),_&&C(R))}},onFocus(R){n.select("open")&&!w&&(E.current=-1,C(R))},onPointerDown:V,onPointerEnter:V,onMouseDown:M,onClick:M}},[ie,O,a,u,T,C,n,m,h,ue,x,oe,w]),de=i.useMemo(()=>({...fe,...X}),[fe,X]);return i.useMemo(()=>b?{reference:de,floating:ye,item:G,trigger:X}:{},[b,de,ye,X,G])}function pr(t,e){const n="rootStore"in t?t.rootStore:t,r=n.context.dataRef,s=n.useState("open"),{listRef:o,activeIndex:l,onMatch:u,onTypingChange:f,enabled:p=!0,resetMs:b=750,selectedIndex:c=null}=e,y=Le(),v=i.useRef(""),T=i.useRef(c??l??-1),x=i.useRef(null);Q(()=>{!s&&c!==null||(y.clear(),x.current=null,v.current!==""&&(v.current=""))},[s,c,y]),Q(()=>{s&&v.current===""&&(T.current=c??l??-1)},[s,c,l]);const w=pe(h=>{h?r.current.typing||(r.current.typing=h,f?.(h)):r.current.typing&&(r.current.typing=h,f?.(h))}),a=pe(h=>{function $(B,ne,A){const se=ne.find(q=>q?.toLocaleLowerCase().indexOf(A.toLocaleLowerCase())===0);return se?B.indexOf(se):-1}const F=o.current;if(v.current.length>0&&v.current[0]!==" "&&($(F,F,v.current)===-1?w(!1):h.key===" "&&Se(h)),F==null||h.key.length!==1||h.ctrlKey||h.metaKey||h.altKey)return;s&&h.key!==" "&&(Se(h),w(!0));const D=v.current==="";D&&(T.current=c??l??-1),F.every(B=>B?B[0]?.toLocaleLowerCase()!==B[1]?.toLocaleLowerCase():!0)&&v.current===h.key&&(v.current="",T.current=x.current),v.current+=h.key,y.start(b,()=>{v.current="",T.current=x.current,w(!1)});const ce=D?c??l??-1:T.current,J=$(F,[...F.slice((ce||0)+1),...F.slice(0,(ce||0)+1)],v.current);J!==-1?(u?.(J),x.current=J):h.key!==" "&&(v.current="",w(!1))}),g=pe(h=>{const $=h.relatedTarget,F=n.select("domReferenceElement"),D=n.select("floatingElement"),ee=Ue(F,$),ce=Ue(D,$);ee||ce||(y.clear(),v.current="",T.current=x.current,w(!1))}),m=i.useMemo(()=>({onKeyDown:a,onBlur:g}),[a,g]),d=i.useMemo(()=>({onKeyDown:a,onKeyUp(h){h.key===" "&&w(!1)},onBlur:g}),[a,g,w]);return i.useMemo(()=>p?{reference:m,floating:d}:{},[p,m,d])}const sn=i.createContext(null),ln=i.createContext(null);function Ve(){const t=i.useContext(sn);if(t===null)throw new Error(pt(60));return t}function cn(){const t=i.useContext(ln);if(t===null)throw new Error(pt(61));return t}const gr=(t,e)=>Object.is(t,e);function $e(t,e,n){return t==null||e==null?Object.is(t,e):n(t,e)}function mr(t,e,n){return!t||t.length===0?!1:t.some(r=>r===void 0?!1:$e(e,r,n))}function et(t,e,n){return!t||t.length===0?-1:t.findIndex(r=>r===void 0?!1:$e(r,e,n))}function hr(t,e,n){return t.filter(r=>!$e(e,r,n))}function Tt(t){if(t==null)return"";if(typeof t=="string")return t;try{return JSON.stringify(t)}catch{return String(t)}}function an(t){return t!=null&&t.length>0&&typeof t[0]=="object"&&t[0]!=null&&"items"in t[0]}function br(t){if(!Array.isArray(t))return t!=null&&!("null"in t);if(an(t)){for(const e of t)for(const n of e.items)if(n&&n.value==null&&n.label!=null)return!0;return!1}for(const e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function xr(t,e){if(e&&t!=null)return e(t)??"";if(t&&typeof t=="object"){if("label"in t&&t.label!=null)return String(t.label);if("value"in t)return String(t.value)}return Tt(t)}function Ke(t,e){return e&&t!=null?e(t)??"":t&&typeof t=="object"&&"value"in t&&"label"in t?Tt(t.value):Tt(t)}function un(t,e,n){function r(){return xr(t,n)}if(n&&t!=null)return n(t);if(t&&typeof t=="object"&&"label"in t&&t.label!=null)return t.label;if(e&&!Array.isArray(e))return e[t]??r();if(Array.isArray(e)){const s=an(e)?e.flatMap(o=>o.items):e;if(t==null||typeof t!="object"){const o=s.find(l=>l.value===t);return o&&o.label!=null?o.label:r()}if("value"in t){const o=s.find(l=>l&&l.value===t.value);if(o&&o.label!=null)return o.label}}return r()}function yr(t,e,n){return t.reduce((r,s,o)=>(o>0&&r.push(", "),r.push(U.jsx(i.Fragment,{children:un(s,e,n)},o)),r),[])}const P={id:Z(t=>t.id),modal:Z(t=>t.modal),multiple:Z(t=>t.multiple),items:Z(t=>t.items),itemToStringLabel:Z(t=>t.itemToStringLabel),itemToStringValue:Z(t=>t.itemToStringValue),isItemEqualToValue:Z(t=>t.isItemEqualToValue),value:Z(t=>t.value),hasSelectedValue:Z(t=>{const{value:e,multiple:n,itemToStringValue:r}=t;return e==null?!1:n&&Array.isArray(e)?e.length>0:Ke(e,r)!==""}),hasNullItemLabel:Z((t,e)=>e?br(t.items):!1),open:Z(t=>t.open),mounted:Z(t=>t.mounted),forceMount:Z(t=>t.forceMount),transitionStatus:Z(t=>t.transitionStatus),openMethod:Z(t=>t.openMethod),activeIndex:Z(t=>t.activeIndex),selectedIndex:Z(t=>t.selectedIndex),isActive:Z((t,e)=>t.activeIndex===e),isSelected:Z((t,e,n)=>{const r=t.isItemEqualToValue,s=t.value;return t.multiple?Array.isArray(s)&&s.some(o=>$e(n,o,r)):t.selectedIndex===e&&t.selectedIndex!==null?!0:$e(n,s,r)}),isSelectedByFocus:Z((t,e)=>t.selectedIndex===e),popupProps:Z(t=>t.popupProps),triggerProps:Z(t=>t.triggerProps),triggerElement:Z(t=>t.triggerElement),positionerElement:Z(t=>t.positionerElement),listElement:Z(t=>t.listElement),scrollUpArrowVisible:Z(t=>t.scrollUpArrowVisible),scrollDownArrowVisible:Z(t=>t.scrollDownArrowVisible),hasScrollArrows:Z(t=>t.hasScrollArrows)};function Rr(t,e){const n=i.useRef(t),r=pe(e);Q(()=>{n.current!==t&&r(n.current)},[t,r]),Q(()=>{n.current=t},[t])}function Sr(t){const{id:e,value:n,defaultValue:r=null,onValueChange:s,open:o,defaultOpen:l=!1,onOpenChange:u,name:f,autoComplete:p,disabled:b=!1,readOnly:c=!1,required:y=!1,modal:v=!0,actionsRef:T,inputRef:x,onOpenChangeComplete:w,items:a,multiple:g=!1,itemToStringLabel:m,itemToStringValue:d,isItemEqualToValue:h=gr,highlightItemOnHover:$=!0,children:F}=t,{clearErrors:D}=Jn(),{setDirty:ee,setTouched:ce,setFocused:J,shouldValidateOnChange:B,validityData:ne,setFilled:A,name:se,disabled:q,validation:E,validationMode:z}=nn(),S=rn({id:e}),C=q||b,te=se??f,[I,Y]=_t({controlled:n,default:g?r??Ht:r,name:"Select",state:"value"}),[k,ae]=_t({controlled:o,default:l,name:"Select",state:"open"}),O=i.useRef([]),K=i.useRef([]),oe=i.useRef(null),ve=i.useRef(null),Te=i.useRef(0),j=i.useRef(null),G=i.useRef([]),ue=i.useRef(!1),ie=i.useRef(!1),fe=i.useRef(null),ye=i.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),X=i.useRef(!1),{mounted:de,setMounted:M,transitionStatus:V}=Ct(k),{openMethod:R,triggerProps:_,reset:W}=En(k),N=Mt(()=>new Cn({id:S,modal:v,multiple:g,itemToStringLabel:m,itemToStringValue:d,isItemEqualToValue:h,value:I,open:k,mounted:de,transitionStatus:V,items:a,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,me=L(N,P.activeIndex),we=L(N,P.selectedIndex),Ce=L(N,P.triggerElement),Re=L(N,P.positionerElement),re=i.useMemo(()=>g&&Array.isArray(I)&&I.length===0?"":Ke(I,d),[g,I,d]),he=i.useMemo(()=>g&&Array.isArray(I)?I.map(H=>Ke(H,d)):Ke(I,d),[g,I,d]),ge=ke(N.state.triggerElement);Zn({id:S,commit:E.commit,value:I,controlRef:ge,name:te,getValue:()=>he});const je=i.useRef(I);Q(()=>{I!==je.current&&N.set("forceMount",!0)},[N,I]),Q(()=>{A(g?Array.isArray(I)&&I.length>0:I!=null)},[g,I,A]),Q(function(){if(k)return;const le=G.current;if(g){const Ee=Array.isArray(I)?I:[];if(Ee.length===0){N.set("selectedIndex",null);return}const Me=Ee[Ee.length-1],it=et(le,Me,h);N.set("selectedIndex",it===-1?null:it);return}const Ie=et(le,I,h);N.set("selectedIndex",Ie===-1?null:Ie)},[g,k,I,G,h,N]),Rr(I,()=>{D(te),ee(I!==ne.initialValue),B()?E.commit(I):E.commit(I,!0)});const Ge=pe((H,le)=>{if(u?.(H,le),!le.isCanceled&&(ae(H),!H&&(le.reason===Gt||le.reason===An)&&(ce(!0),J(!1),z==="onBlur"&&E.commit(I)),!H&&N.state.activeIndex!==null)){const Ie=O.current[N.state.activeIndex];queueMicrotask(()=>{Ie?.setAttribute("tabindex","-1")})}}),Be=pe(()=>{M(!1),N.set("activeIndex",null),W(),w?.(!1)});gt({enabled:!T,open:k,ref:oe,onComplete(){k||Be()}}),i.useImperativeHandle(T,()=>({unmount:Be}),[Be]);const Fe=pe((H,le)=>{s?.(H,le),!le.isCanceled&&Y(H)}),Ae=pe(()=>{const H=N.state.listElement||oe.current;if(!H)return;const le=H.scrollTop,Ie=H.scrollTop+H.clientHeight,Ee=le>1,Me=IeXt(ze(),_,S?{id:S}:qt),[ze,_,S]);Vn(()=>{N.update({popupProps:We(),triggerProps:Je})}),Q(()=>{N.update({id:S,modal:v,multiple:g,value:I,open:k,mounted:de,transitionStatus:V,popupProps:We(),triggerProps:Je,items:a,itemToStringLabel:m,itemToStringValue:d,isItemEqualToValue:h,openMethod:R})},[N,S,v,g,I,k,de,V,We,Je,a,m,d,h,R]);const ot=i.useMemo(()=>({store:N,name:te,required:y,disabled:C,readOnly:c,multiple:g,itemToStringLabel:m,itemToStringValue:d,highlightItemOnHover:$,setValue:Fe,setOpen:Ge,listRef:O,popupRef:oe,scrollHandlerRef:ve,handleScrollArrowVisibility:Ae,scrollArrowsMountedCountRef:Te,getItemProps:rt,events:Pe.context.events,valueRef:j,valuesRef:G,labelsRef:K,typingRef:ue,selectionRef:ye,selectedItemTextRef:fe,validation:E,onOpenChangeComplete:w,keyboardActiveRef:ie,alignItemWithTriggerActiveRef:X,initialValueRef:je}),[N,te,y,C,c,g,m,d,$,Fe,Ge,rt,Pe.context.events,E,w,Ae]),st=Jt(x,E.inputRef),bt=g&&Array.isArray(I)&&I.length>0,xt=i.useMemo(()=>!g||!Array.isArray(I)||!te?null:I.map(H=>{const le=Ke(H,d);return U.jsx("input",{type:"hidden",name:te,value:le},le)}),[g,I,te,d]);return U.jsx(sn.Provider,{value:ot,children:U.jsxs(ln.Provider,{value:Pe,children:[F,U.jsx("input",{...E.getInputValidationProps({onFocus(){N.state.triggerElement?.focus({focusVisible:!0})},onChange(H){if(H.nativeEvent.defaultPrevented)return;const le=H.target.value,Ie=xe(At,H.nativeEvent);function Ee(){if(g)return;const Me=G.current.find(it=>Ke(it,d).toLowerCase()===le.toLowerCase());Me!=null&&(ee(Me!==ne.initialValue),Fe(Me,Ie),B()&&E.commit(Me))}N.set("forceMount",!0),queueMicrotask(Ee)}}),name:g?void 0:te,autoComplete:p,value:re,disabled:C,required:y&&!bt,readOnly:c,ref:st,style:te?Ln:kn,tabIndex:-1,"aria-hidden":!0}),xt]})})}function wr(t){const e=t.getBoundingClientRect(),n=window.getComputedStyle(t,"::before"),r=window.getComputedStyle(t,"::after");if(!(n.content!=="none"||r.content!=="none"))return e;const o=parseFloat(n.width)||0,l=parseFloat(n.height)||0,u=parseFloat(r.width)||0,f=parseFloat(r.height)||0,p=Math.max(e.width,o,u),b=Math.max(e.height,l,f),c=p-e.width,y=b-e.height;return{left:e.left-c/2,right:e.right+c/2,top:e.top-y/2,bottom:e.bottom+y/2}}const at=2,vr=400,jt=200,Mr={...Dn,...er,value:()=>null},Tr=i.forwardRef(function(e,n){const{render:r,className:s,id:o,disabled:l=!1,nativeButton:u=!0,...f}=e,{setTouched:p,setFocused:b,validationMode:c,state:y,disabled:v}=nn(),{labelId:T}=Qn(),{store:x,setOpen:w,selectionRef:a,validation:g,readOnly:m,required:d,alignItemWithTriggerActiveRef:h,disabled:$,keyboardActiveRef:F}=Ve(),D=v||$||l,ee=L(x,P.open),ce=L(x,P.value),J=L(x,P.triggerProps),B=L(x,P.positionerElement),ne=L(x,P.listElement),A=L(x,P.id),se=L(x,P.hasSelectedValue),q=!se&&ee,E=L(x,P.hasNullItemLabel,q),z=o??A;rn({id:z});const S=ke(B),C=i.useRef(null),{getButtonProps:te,buttonRef:I}=Zt({disabled:D,native:u}),Y=pe(G=>{x.set("triggerElement",G)}),k=Jt(n,C,I,Y),ae=Le(),O=Le(),K=Le(),oe=Le();i.useEffect(()=>{if(ee)return!(se||E)?K.start(vr,()=>{a.current.allowUnselectedMouseUp=!0,a.current.allowSelectedMouseUp=!0}):oe.start(jt,()=>{a.current.allowUnselectedMouseUp=!0,K.start(jt,()=>{a.current.allowSelectedMouseUp=!0})}),()=>{K.clear(),oe.clear()};a.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},O.clear()},[ee,se,E,a,O,K,oe]);const ve=i.useMemo(()=>ne?.id??Yt(B)?.id,[ne,B]),Te=Xt(J,{id:z,role:"combobox","aria-expanded":ee?"true":"false","aria-haspopup":"listbox","aria-controls":ee?ve:void 0,"aria-labelledby":T,"aria-readonly":m||void 0,"aria-required":d||void 0,tabIndex:D?-1:0,ref:k,onFocus(G){b(!0),ee&&h.current&&w(!1,xe(At,G.nativeEvent)),ae.start(0,()=>{x.set("forceMount",!0)})},onBlur(G){Ue(B,G.relatedTarget)||(p(!0),b(!1),c==="onBlur"&&g.commit(ce))},onPointerMove(){F.current=!1},onKeyDown(){F.current=!0},onMouseDown(G){if(ee)return;const ue=ft(G.currentTarget);function ie(fe){if(!C.current)return;const ye=fe.target;if(Ue(C.current,ye)||Ue(S.current,ye)||ye===C.current)return;const X=wr(C.current);fe.clientX>=X.left-at&&fe.clientX<=X.right+at&&fe.clientY>=X.top-at&&fe.clientY<=X.bottom+at||w(!1,xe(Hn,fe))}O.start(0,()=>{ue.addEventListener("mouseup",ie,{once:!0})})}},g.getValidationProps,f,te);Te.role="combobox";const j={...y,open:ee,disabled:D,value:ce,readOnly:m,placeholder:!se};return Ne("button",e,{ref:[n,C],state:j,stateAttributesMapping:Mr,props:Te})}),Ir={value:()=>null},Er=i.forwardRef(function(e,n){const{className:r,render:s,children:o,placeholder:l,...u}=e,{store:f,valueRef:p}=Ve(),b=L(f,P.value),c=L(f,P.items),y=L(f,P.itemToStringLabel),v=L(f,P.hasSelectedValue),T=!v&&l!=null&&o==null,x=L(f,P.hasNullItemLabel,T),w={value:b,placeholder:!v};let a=null;return typeof o=="function"?a=o(b):o!=null?a=o:!v&&l!=null&&!x?a=l:Array.isArray(b)?a=yr(b,c,y):a=un(b,c,y),Ne("span",e,{state:w,ref:[n,p],props:[{children:a},u],stateAttributesMapping:Ir})}),Cr=i.forwardRef(function(e,n){const{className:r,render:s,...o}=e,{store:l}=Ve(),f={open:L(l,P.open)};return Ne("span",e,{state:f,ref:n,props:[{"aria-hidden":!0,children:"▼"},o],stateAttributesMapping:Fn})}),Ar=i.createContext(void 0),Pr=i.forwardRef(function(e,n){const{store:r}=Ve(),s=L(r,P.mounted),o=L(r,P.forceMount);return s||o?U.jsx(Ar.Provider,{value:!0,children:U.jsx(_n,{ref:n,...e})}):null}),fn=i.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Or(){return i.useContext(fn)}function Nr(t){const{children:e,elementsRef:n,labelsRef:r,onMapChange:s}=t,o=pe(s),l=i.useRef(0),u=Mt(Lr).current,f=Mt(Vr).current,[p,b]=i.useState(0),c=i.useRef(p),y=pe((a,g)=>{f.set(a,g??null),c.current+=1,b(c.current)}),v=pe(a=>{f.delete(a),c.current+=1,b(c.current)}),T=i.useMemo(()=>{const a=new Map;return Array.from(f.keys()).filter(m=>m.isConnected).sort(kr).forEach((m,d)=>{const h=f.get(m)??{};a.set(m,{...h,index:d})}),a},[f,p]);Q(()=>{if(typeof MutationObserver!="function"||T.size===0)return;const a=new MutationObserver(g=>{const m=new Set,d=h=>m.has(h)?m.delete(h):m.add(h);g.forEach(h=>{h.removedNodes.forEach(d),h.addedNodes.forEach(d)}),m.size===0&&(c.current+=1,b(c.current))});return T.forEach((g,m)=>{m.parentElement&&a.observe(m.parentElement,{childList:!0})}),()=>{a.disconnect()}},[T]),Q(()=>{c.current===p&&(n.current.length!==T.size&&(n.current.length=T.size),r&&r.current.length!==T.size&&(r.current.length=T.size),l.current=T.size),o(T)},[o,T,n,r,p]),Q(()=>()=>{n.current=[]},[n]),Q(()=>()=>{r&&(r.current=[])},[r]);const x=pe(a=>(u.add(a),()=>{u.delete(a)}));Q(()=>{u.forEach(a=>a(T))},[u,T]);const w=i.useMemo(()=>({register:y,unregister:v,subscribeMapChange:x,elementsRef:n,labelsRef:r,nextIndexRef:l}),[y,v,x,n,r,l]);return U.jsx(fn.Provider,{value:w,children:e})}function Vr(){return new Map}function Lr(){return new Set}function kr(t,e){const n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const dn=i.createContext(void 0);function Pt(){const t=i.useContext(dn);if(!t)throw new Error(pt(59));return t}function dt(t,e){t&&Object.assign(t.style,e)}const pn={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},Dr={position:"fixed"},Hr=i.forwardRef(function(e,n){const{anchor:r,positionMethod:s="absolute",className:o,render:l,side:u="bottom",align:f="center",sideOffset:p=0,alignOffset:b=0,collisionBoundary:c="clipping-ancestors",collisionPadding:y,arrowPadding:v=5,sticky:T=!1,disableAnchorTracking:x,alignItemWithTrigger:w=!0,collisionAvoidance:a=Un,...g}=e,{store:m,listRef:d,labelsRef:h,alignItemWithTriggerActiveRef:$,selectedItemTextRef:F,valuesRef:D,initialValueRef:ee,popupRef:ce,setValue:J}=Ve(),B=cn(),ne=L(m,P.open),A=L(m,P.mounted),se=L(m,P.modal),q=L(m,P.value),E=L(m,P.openMethod),z=L(m,P.positionerElement),S=L(m,P.triggerElement),C=L(m,P.isItemEqualToValue),te=L(m,P.transitionStatus),I=i.useRef(null),Y=i.useRef(null),[k,ae]=i.useState(w),O=A&&k&&E!=="touch";!A&&k!==w&&ae(w),Q(()=>{A||(P.scrollUpArrowVisible(m.state)&&m.set("scrollUpArrowVisible",!1),P.scrollDownArrowVisible(m.state)&&m.set("scrollDownArrowVisible",!1))},[m,A]),i.useImperativeHandle($,()=>O),jn((O||se)&&ne&&E!=="touch",S);const K=Bn({anchor:r,floatingRootContext:B,positionMethod:s,mounted:A,side:u,sideOffset:p,align:f,alignOffset:b,arrowPadding:v,collisionBoundary:c,collisionPadding:y,sticky:T,disableAnchorTracking:x??O,collisionAvoidance:a,keepMounted:!0}),oe=O?"none":K.side,ve=O?Dr:K.positionerStyles,Te=i.useMemo(()=>{const X={};return ne||(X.pointerEvents="none"),{role:"presentation",hidden:!A,style:{...ve,...X}}},[ne,A,ve]),j={open:ne,side:oe,align:K.align,anchorHidden:K.anchorHidden},G=pe(X=>{m.set("positionerElement",X)}),ue=Ne("div",e,{ref:[n,G],state:j,stateAttributesMapping:Qt,props:[Te,en(te),g]}),ie=i.useRef(0),fe=pe(X=>{if(X.size===0&&ie.current===0||D.current.length===0)return;const de=ie.current;if(ie.current=X.size,X.size===de)return;const M=xe(At);if(de!==0&&!m.state.multiple&&q!==null&&et(D.current,q,C)===-1){const R=ee.current,W=R!=null&&et(D.current,R,C)!==-1?R:null;J(W,M),W===null&&(m.set("selectedIndex",null),F.current=null)}if(de!==0&&m.state.multiple&&Array.isArray(q)){const V=_=>et(D.current,_,C)!==-1,R=q.filter(_=>V(_));(R.length!==q.length||R.some(_=>!mr(q,_,C)))&&(J(R,M),R.length===0&&(m.set("selectedIndex",null),F.current=null))}if(ne&&O){m.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const V={height:""};dt(z,V),dt(ce.current,V)}}),ye=i.useMemo(()=>({...K,side:oe,alignItemWithTriggerActive:O,setControlledAlignItemWithTrigger:ae,scrollUpArrowRef:I,scrollDownArrowRef:Y}),[K,oe,O,ae]);return U.jsx(Nr,{elementsRef:d,labelsRef:h,onMapChange:fe,children:U.jsxs(dn.Provider,{value:ye,children:[A&&se&&U.jsx(zn,{inert:Wn(!ne),cutout:S}),ue]})})});function gn(t){const e=t.currentTarget.getBoundingClientRect();return e.top+1<=t.clientY&&t.clientY<=e.bottom-1&&e.left+1<=t.clientX&&t.clientX<=e.right-1}const ut="base-ui-disable-scrollbar",It={className:ut,getElement(t){return U.jsx("style",{nonce:t,href:ut,precedence:"base-ui:low",children:`.${ut}{scrollbar-width:none}.${ut}::-webkit-scrollbar{display:none}`})}},Fr=i.createContext(void 0);function _r(t){return i.useContext(Fr)}function vt(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}const Ur=i.createContext(void 0),jr={disableStyleElements:!1};function Br(){return i.useContext(Ur)??jr}const _e=1,zr={...Qt,...tn},Wr=i.forwardRef(function(e,n){const{render:r,className:s,finalFocus:o,...l}=e,{store:u,popupRef:f,onOpenChangeComplete:p,setOpen:b,valueRef:c,selectedItemTextRef:y,keyboardActiveRef:v,multiple:T,handleScrollArrowVisibility:x,scrollHandlerRef:w,highlightItemOnHover:a}=Ve(),{side:g,align:m,alignItemWithTriggerActive:d,setControlledAlignItemWithTrigger:h,scrollDownArrowRef:$,scrollUpArrowRef:F}=Pt(),D=_r()!=null,ee=cn(),{nonce:ce,disableStyleElements:J}=Br(),B=Le(),ne=L(u,P.id),A=L(u,P.open),se=L(u,P.mounted),q=L(u,P.popupProps),E=L(u,P.transitionStatus),z=L(u,P.triggerElement),S=L(u,P.positionerElement),C=L(u,P.listElement),te=i.useRef(0),I=i.useRef(!1),Y=i.useRef(0),k=i.useRef(!1),ae=i.useRef({}),O=$t(),K=pe(j=>{if(!S||!f.current||!k.current)return;if(I.current||!d){x();return}const G=S.style.top==="0px",ue=S.style.bottom==="0px",ie=S.getBoundingClientRect().height,fe=ft(S),ye=getComputedStyle(S),X=parseFloat(ye.marginTop),de=parseFloat(ye.marginBottom),M=Bt(getComputedStyle(f.current)),V=Math.min(fe.documentElement.clientHeight-X-de,M),R=j.scrollTop,_=zt(j);let W=0,N=null,me=!1,we=!1;const Ce=re=>{S.style.height=`${re}px`},Re=(re,he)=>{const ge=vt(re,0,V-ie);ge>0&&Ce(ie+ge),j.scrollTop=he,V-(ie+ge)<=_e&&(I.current=!0),x()};if(G){const re=_-R,he=ie+re,ge=Math.min(he,V);if(W=ge,re<=_e){Re(re,_);return}V-ge>_e?we=!0:me=!0}else if(ue){const re=R,he=ie+re,ge=Math.min(he,V),je=he-V;if(W=ge,re<=_e){Re(re,0);return}V-ge>_e?N=0:(me=!0,R<_&&(N=R-(re-je)))}if(W=Math.ceil(W),W!==0&&Ce(W),we||N!=null){const re=zt(j),he=we?re:vt(N,0,re);Math.abs(j.scrollTop-he)>_e&&(j.scrollTop=he)}(me||W>=V-_e)&&(I.current=!0),x()});i.useImperativeHandle(w,()=>K,[K]),gt({open:A,ref:f,onComplete(){A&&p?.(!0)}});const oe={open:A,transitionStatus:E,side:g,align:m};Q(()=>{!S||!f.current||Object.keys(ae.current).length||(ae.current={top:S.style.top||"0",left:S.style.left||"0",right:S.style.right,height:S.style.height,bottom:S.style.bottom,minHeight:S.style.minHeight,maxHeight:S.style.maxHeight,marginTop:S.style.marginTop,marginBottom:S.style.marginBottom})},[f,S]),Q(()=>{A||d||(k.current=!1,I.current=!1,te.current=0,Y.current=0,dt(S,ae.current))},[A,d,S,f]),Q(()=>{const j=f.current;if(!(!A||!z||!S||!j||u.state.transitionStatus==="ending")){if(!d){k.current=!0,O.request(x),j.style.removeProperty("--transform-origin");return}queueMicrotask(()=>{const G=Kr(j);j.style.removeProperty("--transform-origin");try{const ue=getComputedStyle(S),ie=getComputedStyle(j),fe=ft(z),ye=Ft(S),X=z.getBoundingClientRect(),de=S.getBoundingClientRect(),M=X.left,V=X.height,R=C||j,_=R.scrollHeight,W=parseFloat(ie.borderBottomWidth),N=parseFloat(ue.marginTop)||10,me=parseFloat(ue.marginBottom)||10,we=parseFloat(ue.minHeight)||100,Ce=Bt(ie),Re=5,re=5,he=20,ge=fe.documentElement.clientHeight-N-me,je=fe.documentElement.clientWidth,Ge=ge-X.bottom+V,Be=y.current,Fe=c.current;let Ae,Pe=0,nt=0;if(Be&&Fe){const H=Fe.getBoundingClientRect();Ae=Be.getBoundingClientRect();const le=H.left-M,Ie=Ae.left-de.left,Ee=H.top-X.top+H.height/2,Me=Ae.top-de.top+Ae.height/2;Pe=le-Ie,nt=Me-Ee}const Xe=Ge+nt+me+W;let Oe=Math.min(ge,Xe);const ht=ge-N-me,ze=Xe-Oe,We=Math.max(Re,M+Pe),rt=je-re,Je=Math.max(0,We+de.width-rt);S.style.left=`${We-Je}px`,S.style.height=`${Oe}px`,S.style.maxHeight="auto",S.style.marginTop=`${N}px`,S.style.marginBottom=`${me}px`,j.style.height="100%";const ot=R.scrollHeight-R.clientHeight,st=ze>=ot;st&&(Oe=Math.min(ge,de.height)-(ze-ot));const bt=X.topge-he||Oeh(!1));return}if(st){const H=Math.max(0,ge-Xe);S.style.top=de.height>=ht?"0":`${H}px`,S.style.height=`${Oe}px`,R.scrollTop=R.scrollHeight-R.clientHeight,te.current=Math.max(we,Oe)}else S.style.bottom="0",te.current=Math.max(we,Oe),R.scrollTop=ze;if(Ae){const H=de.top,le=de.height,Ie=Ae.top+Ae.height/2,Ee=le>0?(Ie-H)/le*100:50,Me=vt(Ee,0,100);j.style.setProperty("--transform-origin",`50% ${Me}%`)}(te.current===ge||Oe>=Ce)&&(I.current=!0),x(),setTimeout(()=>{k.current=!0})}finally{G()}})}},[u,A,S,z,c,y,f,x,d,h,O,$,F,C]),i.useEffect(()=>{if(!d||!S||!A)return;const j=Ft(S);function G(ue){b(!1,xe(Yn,ue))}return j.addEventListener("resize",G),()=>{j.removeEventListener("resize",G)}},[b,d,S,A]);const ve={...C?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":T||void 0,id:`${ne}-list`},onKeyDown(j){v.current=!0,D&&Gn.has(j.key)&&j.stopPropagation()},onMouseMove(){v.current=!1},onPointerLeave(j){if(!a||gn(j)||j.pointerType==="touch")return;const G=j.currentTarget;B.start(0,()=>{u.set("activeIndex",null),G.focus({preventScroll:!0})})},onScroll(j){C||K(j.currentTarget)},...d&&{style:C?{height:"100%"}:pn}},Te=Ne("div",e,{ref:[n,f],state:oe,stateAttributesMapping:zr,props:[q,ve,en(E),{className:!C&&d?It.className:void 0},l]});return U.jsxs(i.Fragment,{children:[!J&&It.getElement(ce),U.jsx(qn,{context:ee,modal:!1,disabled:!se,returnFocus:o,restoreFocus:!0,children:Te})]})});function Bt(t){const e=t.maxHeight||"";return e.endsWith("px")&&parseFloat(e)||1/0}function zt(t){return Math.max(0,t.scrollHeight-t.clientHeight)}const Wt=[["transform","none"],["scale","1"],["translate","0 0"]];function Kr(t){const{style:e}=t,n={};for(const[r,s]of Wt)n[r]=e.getPropertyValue(r),e.setProperty(r,s,"important");return()=>{for(const[r]of Wt){const s=n[r];s?e.setProperty(r,s):e.removeProperty(r)}}}const $r=i.forwardRef(function(e,n){const{className:r,render:s,...o}=e,{store:l,scrollHandlerRef:u}=Ve(),{alignItemWithTriggerActive:f}=Pt(),p=L(l,P.hasScrollArrows),b=L(l,P.openMethod),c=L(l,P.multiple),v={id:`${L(l,P.id)}-list`,role:"listbox","aria-multiselectable":c||void 0,onScroll(x){u.current?.(x.currentTarget)},...f&&{style:pn},className:p&&b!=="touch"?It.className:void 0},T=pe(x=>{l.set("listElement",x)});return Ne("div",e,{ref:[n,T],props:[v,o]})});let mn=(function(t){return t[t.None=0]="None",t[t.GuessFromOrder=1]="GuessFromOrder",t})({});function qr(t={}){const{label:e,metadata:n,textRef:r,indexGuessBehavior:s,index:o}=t,{register:l,unregister:u,subscribeMapChange:f,elementsRef:p,labelsRef:b,nextIndexRef:c}=Or(),y=i.useRef(-1),[v,T]=i.useState(o??(s===mn.GuessFromOrder?()=>{if(y.current===-1){const a=c.current;c.current+=1,y.current=a}return y.current}:-1)),x=i.useRef(null),w=i.useCallback(a=>{if(x.current=a,v!==-1&&a!==null&&(p.current[v]=a,b)){const g=e!==void 0;b.current[v]=g?e:r?.current?.textContent??a.textContent}},[v,p,b,e,r]);return Q(()=>{if(o!=null)return;const a=x.current;if(a)return l(a,n),()=>{u(a)}},[o,l,u,n]),Q(()=>{if(o==null)return f(a=>{const g=x.current?a.get(x.current)?.index:null;g!=null&&T(g)})},[o,f,T]),i.useMemo(()=>({ref:w,index:v}),[v,w])}const hn=i.createContext(void 0);function Ot(){const t=i.useContext(hn);if(!t)throw new Error(pt(57));return t}const Yr=i.memo(i.forwardRef(function(e,n){const{render:r,className:s,value:o=null,label:l,disabled:u=!1,nativeButton:f=!1,...p}=e,b=i.useRef(null),c=qr({label:l,textRef:b,indexGuessBehavior:mn.GuessFromOrder}),{store:y,getItemProps:v,setOpen:T,setValue:x,selectionRef:w,typingRef:a,valuesRef:g,keyboardActiveRef:m,multiple:d,highlightItemOnHover:h}=Ve(),$=Le(),F=L(y,P.isActive,c.index),D=L(y,P.isSelected,c.index,o),ee=L(y,P.isSelectedByFocus,c.index),ce=L(y,P.isItemEqualToValue),J=c.index,B=J!==-1,ne=i.useRef(null),A=ke(J);Q(()=>{if(!B)return;const O=g.current;return O[J]=o,()=>{delete O[J]}},[B,J,o,g]),Q(()=>{if(!B)return;const O=y.state.value;let K=O;d&&Array.isArray(O)&&O.length>0&&(K=O[O.length-1]),K!==void 0&&$e(o,K,ce)&&y.set("selectedIndex",J)},[B,J,d,ce,y,o]);const se={disabled:u,selected:D,highlighted:F},q=v({active:F,selected:D});q.onFocus=void 0,q.id=void 0;const E=i.useRef(null),z=i.useRef("mouse"),S=i.useRef(!1),{getButtonProps:C,buttonRef:te}=Zt({disabled:u,focusableWhenDisabled:!0,native:f});function I(O){const K=y.state.value;if(d){const oe=Array.isArray(K)?K:[],ve=D?hr(oe,o,ce):[...oe,o];x(ve,xe(Rt,O))}else x(o,xe(Rt,O)),T(!1,xe(Rt,O))}const Y={role:"option","aria-selected":D,tabIndex:F?0:-1,onFocus(){y.set("activeIndex",J)},onMouseEnter(){!m.current&&y.state.selectedIndex===null&&h&&y.set("activeIndex",J)},onMouseMove(){h&&y.set("activeIndex",J)},onMouseLeave(O){!h||m.current||gn(O)||$.start(0,()=>{y.state.activeIndex===J&&y.set("activeIndex",null)})},onTouchStart(){w.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(O){E.current=O.key,y.set("activeIndex",J)},onClick(O){S.current=!1,!(O.type==="keydown"&&E.current===null)&&(u||E.current===" "&&a.current||z.current!=="touch"&&!F||(E.current=null,I(O.nativeEvent)))},onPointerEnter(O){z.current=O.pointerType},onPointerDown(O){z.current=O.pointerType,S.current=!0},onMouseUp(O){if(u)return;if(S.current){S.current=!1;return}const K=!w.current.allowSelectedMouseUp&&D,oe=!w.current.allowUnselectedMouseUp&&!D;K||oe||z.current!=="touch"&&!F||I(O.nativeEvent)}},k=Ne("div",e,{ref:[te,n,c.ref,ne],state:se,props:[q,Y,p,C]}),ae=i.useMemo(()=>({selected:D,indexRef:A,textRef:b,selectedByFocus:ee,hasRegistered:B}),[D,A,b,ee,B]);return U.jsx(hn.Provider,{value:ae,children:k})})),Gr=i.forwardRef(function(e,n){const r=e.keepMounted??!1,{selected:s}=Ot();return r||s?U.jsx(Xr,{...e,ref:n}):null}),Xr=i.memo(i.forwardRef((t,e)=>{const{render:n,className:r,keepMounted:s,...o}=t,{selected:l}=Ot(),u=i.useRef(null),{transitionStatus:f,setMounted:p}=Ct(l),c=Ne("span",t,{ref:[e,u],state:{selected:l,transitionStatus:f},props:[{"aria-hidden":!0,children:"✔️"},o],stateAttributesMapping:tn});return gt({open:l,ref:u,onComplete(){l||p(!1)}}),c})),Jr=i.memo(i.forwardRef(function(e,n){const{indexRef:r,textRef:s,selectedByFocus:o,hasRegistered:l}=Ot(),{selectedItemTextRef:u}=Ve(),{className:f,render:p,...b}=e,c=i.useCallback(v=>{if(!v||!l)return;const T=u.current===null||!u.current.isConnected;(o||T&&r.current===0)&&(u.current=v)},[u,r,o,l]);return Ne("div",e,{ref:[c,n,s],props:b})})),bn=i.forwardRef(function(e,n){const{render:r,className:s,direction:o,keepMounted:l=!1,...u}=e,{store:f,popupRef:p,listRef:b,handleScrollArrowVisibility:c,scrollArrowsMountedCountRef:y}=Ve(),{side:v,scrollDownArrowRef:T,scrollUpArrowRef:x}=Pt(),w=o==="up"?P.scrollUpArrowVisible:P.scrollDownArrowVisible,a=L(f,w),g=L(f,P.openMethod),m=a&&g!=="touch",d=Le(),h=o==="up"?x:T,{transitionStatus:$,setMounted:F}=Ct(m);Q(()=>(y.current+=1,f.state.hasScrollArrows||f.set("hasScrollArrows",!0),()=>{y.current=Math.max(0,y.current-1),y.current===0&&f.state.hasScrollArrows&&f.set("hasScrollArrows",!1)}),[f,y]),gt({open:m,ref:h,onComplete(){m||F(!1)}});const ce=Ne("div",e,{ref:[n,h],state:{direction:o,visible:m,side:v,transitionStatus:$},props:[{"aria-hidden":!0,children:o==="up"?"▲":"▼",style:{position:"absolute"},onMouseMove(B){if(B.movementX===0&&B.movementY===0||d.isStarted())return;f.set("activeIndex",null);function ne(){const A=f.state.listElement??p.current;if(!A)return;f.set("activeIndex",null),c();const se=A.scrollTop===0,q=Math.round(A.scrollTop+A.clientHeight)>=A.scrollHeight;if(b.current.length===0&&(o==="up"?f.set("scrollUpArrowVisible",!se):f.set("scrollDownArrowVisible",!q)),o==="up"&&se||o==="down"&&q){d.clear();return}if((f.state.listElement||p.current)&&b.current&&b.current.length>0){const z=b.current,S=h.current?.offsetHeight||0;if(o==="up"){let C=0;const te=A.scrollTop+S;for(let Y=0;Y=te){C=Y;break}}const I=Math.max(0,C-1);if(Ite){C=Math.max(0,Y-1);break}}const I=Math.min(z.length-1,C+1);if(I>C){const Y=z[I];Y&&(A.scrollTop=Y.offsetTop+Y.offsetHeight-A.clientHeight+S)}else A.scrollTop=A.scrollHeight-A.clientHeight}}d.start(40,ne)}d.start(40,ne)},onMouseLeave(){d.clear()}},u]});return m||l?ce:null}),Zr=i.forwardRef(function(e,n){return U.jsx(bn,{...e,ref:n,direction:"down"})}),Qr=i.forwardRef(function(e,n){return U.jsx(bn,{...e,ref:n,direction:"up"})}),io=Sr;function lo(t){const e=qe.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;e[3]!==n?(s=Ye("flex flex-1 text-left",n),e[3]=n,e[4]=s):s=e[4];let o;return e[5]!==r||e[6]!==s?(o=U.jsx(Er,{className:s,"data-slot":"select-value",...r}),e[5]=r,e[6]=s,e[7]=o):o=e[7],o}function co(t){const e=qe.c(15);let n,r,s,o,l;e[0]!==t?({className:r,size:l,id:s,children:n,...o}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=o,e[5]=l):(n=e[1],r=e[2],s=e[3],o=e[4],l=e[5]);const u=l===void 0?"default":l;let f;e[6]!==r?(f=Ye("flex w-fit items-center justify-between gap-1.5 whitespace-nowrap rounded-md border border-input bg-input/20 px-2 py-1.5 text-xs/relaxed outline-none transition-colors focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-[size=default]:h-7 data-[size=sm]:h-6 data-placeholder:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-3.5 [&_svg]:pointer-events-none [&_svg]:shrink-0",r),e[6]=r,e[7]=f):f=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=U.jsx(Cr,{render:U.jsx(on,{className:"pointer-events-none size-3.5 text-muted-foreground"})}),e[8]=p):p=e[8];let b;return e[9]!==n||e[10]!==s||e[11]!==o||e[12]!==u||e[13]!==f?(b=U.jsxs(Tr,{className:f,"data-size":u,"data-slot":"select-trigger",id:s,...o,children:[n,p]}),e[9]=n,e[10]=s,e[11]=o,e[12]=u,e[13]=f,e[14]=b):b=e[14],b}function ao(t){const e=qe.c(26);let n,r,s,o,l,u,f,p;e[0]!==t?({className:r,children:n,side:o,sideOffset:l,align:u,alignOffset:f,alignItemWithTrigger:p,...s}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=o,e[5]=l,e[6]=u,e[7]=f,e[8]=p):(n=e[1],r=e[2],s=e[3],o=e[4],l=e[5],u=e[6],f=e[7],p=e[8]);const b=o===void 0?"bottom":o,c=l===void 0?4:l,y=u===void 0?"center":u,v=f===void 0?0:f,T=p===void 0?!0:p;let x;e[9]!==r?(x=Ye("data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-y-auto overflow-x-hidden rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-closed:animate-out data-open:animate-in",r),e[9]=r,e[10]=x):x=e[10];let w;e[11]===Symbol.for("react.memo_cache_sentinel")?(w=U.jsx(eo,{}),e[11]=w):w=e[11];let a;e[12]!==n?(a=U.jsx($r,{children:n}),e[12]=n,e[13]=a):a=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=U.jsx(to,{}),e[14]=g):g=e[14];let m;e[15]!==s||e[16]!==x||e[17]!==a?(m=U.jsxs(Wr,{className:x,"data-slot":"select-content",...s,children:[w,a,g]}),e[15]=s,e[16]=x,e[17]=a,e[18]=m):m=e[18];let d;return e[19]!==y||e[20]!==T||e[21]!==v||e[22]!==b||e[23]!==c||e[24]!==m?(d=U.jsx(Pr,{children:U.jsx(Hr,{align:y,alignItemWithTrigger:T,alignOffset:v,className:"isolate z-50",side:b,sideOffset:c,children:m})}),e[19]=y,e[20]=T,e[21]=v,e[22]=b,e[23]=c,e[24]=m,e[25]=d):d=e[25],d}function uo(t){const e=qe.c(13);let n,r,s;e[0]!==t?({className:r,children:n,...s}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s):(n=e[1],r=e[2],s=e[3]);let o;e[4]!==r?(o=Ye("relative flex min-h-7 w-full cursor-default select-none items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-3.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",r),e[4]=r,e[5]=o):o=e[5];let l;e[6]!==n?(l=U.jsx(Jr,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:n}),e[6]=n,e[7]=l):l=e[7];let u;e[8]===Symbol.for("react.memo_cache_sentinel")?(u=U.jsx(Gr,{render:U.jsx("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center"}),children:U.jsx(Xn,{className:"pointer-events-none"})}),e[8]=u):u=e[8];let f;return e[9]!==s||e[10]!==o||e[11]!==l?(f=U.jsxs(Yr,{className:o,"data-slot":"select-item",...s,children:[l,u]}),e[9]=s,e[10]=o,e[11]=l,e[12]=f):f=e[12],f}function eo(t){const e=qe.c(9);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;e[3]!==n?(s=Ye("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5",n),e[3]=n,e[4]=s):s=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=U.jsx(rr,{}),e[5]=o):o=e[5];let l;return e[6]!==r||e[7]!==s?(l=U.jsx(Qr,{className:s,"data-slot":"select-scroll-up-button",...r,children:o}),e[6]=r,e[7]=s,e[8]=l):l=e[8],l}function to(t){const e=qe.c(9);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;e[3]!==n?(s=Ye("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5",n),e[3]=n,e[4]=s):s=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=U.jsx(on,{}),e[5]=o):o=e[5];let l;return e[6]!==r||e[7]!==s?(l=U.jsx(Zr,{className:s,"data-slot":"select-scroll-down-button",...r,children:o}),e[6]=r,e[7]=s,e[8]=l):l=e[8],l}export{io as S,co as a,lo as b,ao as c,uo as d}; diff --git a/hive/services/hiveui/frontend/dist/assets/state-badge.js b/hive/services/hiveui/frontend/dist/assets/state-badge.js index 768a9017f..9ac089b11 100644 --- a/hive/services/hiveui/frontend/dist/assets/state-badge.js +++ b/hive/services/hiveui/frontend/dist/assets/state-badge.js @@ -1 +1 @@ -import{c as d,j as g}from"./index.js";function o(n){const e=d.c(3),{state:t}=n;let a="bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100";t==="running"?a="bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100":t==="stopped"&&(a="bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100");const s=`rounded-full px-2 py-1 text-xs ${a}`;let r;return e[0]!==t||e[1]!==s?(r=g.jsx("div",{className:s,children:t}),e[0]=t,e[1]=s,e[2]=r):r=e[2],r}export{o as S}; +import{c as g,j as l}from"./index.js";function i(d){const t=g.c(3),{state:e}=d;let r="bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100";e==="running"||e==="available"||e==="completed"?r="bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100":e==="stopped"||e==="error"?r="bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100":e==="pending"||e==="shutting-down"||e==="stopping"?r="bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100":e==="terminated"&&(r="bg-zinc-100 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400");const n=`rounded-full px-2 py-1 text-xs ${r}`;let a;return t[0]!==e||t[1]!==n?(a=l.jsx("div",{className:n,children:e}),t[0]=e,t[1]=n,t[2]=a):a=t[2],a}export{i as S}; diff --git a/hive/services/hiveui/frontend/dist/assets/trash-2.js b/hive/services/hiveui/frontend/dist/assets/trash-2.js index 7b651d25b..29ecf602b 100644 --- a/hive/services/hiveui/frontend/dist/assets/trash-2.js +++ b/hive/services/hiveui/frontend/dist/assets/trash-2.js @@ -1 +1 @@ -import{g as a}from"./index.js";const t=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],o=a("trash-2",t);export{o as T}; +import{k as a}from"./index.js";const t=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],o=a("trash-2",t);export{o as T}; diff --git a/hive/services/hiveui/frontend/dist/assets/upload-button.js b/hive/services/hiveui/frontend/dist/assets/upload-button.js index 9122c9ad6..1a19a3961 100644 --- a/hive/services/hiveui/frontend/dist/assets/upload-button.js +++ b/hive/services/hiveui/frontend/dist/assets/upload-button.js @@ -1 +1 @@ -import{g as u,aI as g,aJ as j,aK as b,aL as y,aM as k,aN as C,c as w,j as e,L as v,r as f,aO as N,aP as D,B as A}from"./index.js";import{E as M}from"./error-banner.js";import{g as S,f as L,b as R,a as E,c as O,d as z,e as B,h as $}from"./alert-dialog.js";import{g as F,b as P,c as U}from"./s3.js";import{D as _}from"./download.js";import{T}from"./trash-2.js";const I=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],H=u("file",I);const K=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],q=u("folder",K);const G=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],V=u("upload",G),W=l=>(t,a)=>async r=>{const n=await t(r),{response:s}=n;if(g.isInstance(s)&&s.headers.expires){s.headers.expiresstring=s.headers.expires;try{j(s.headers.expires)}catch(o){a.logger?.warn(`AWS SDK Warning for ${a.clientName}::${a.commandName} response parsing (${s.headers.expires}): ${o}`),delete s.headers.expires}}return n},J={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},Z=l=>({applyToStack:t=>{t.addRelativeTo(W(),J)}});class Q extends b.classBuilder().ep({...y,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,a,r,n){return[k(r,t.getEndpointParameterInstructions()),F(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1"]}),P(r),Z()]}).s("AmazonS3","GetObject",{}).n("S3Client","GetObjectCommand").sc(C).build(){}function re(l){const t=w.c(9),{folderName:a,fullPrefix:r,bucketName:n}=l;let s;t[0]!==n||t[1]!==r?(s={bucket:n,_splat:r},t[0]=n,t[1]=r,t[2]=s):s=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(q,{className:"size-5 text-muted-foreground"}),t[3]=o):o=t[3];let i;t[4]!==a?(i=e.jsx("span",{className:"font-medium",children:a}),t[4]=a,t[5]=i):i=t[5];let c;return t[6]!==s||t[7]!==i?(c=e.jsxs(v,{className:"flex items-center gap-3 rounded-lg border bg-card p-4 transition-colors hover:bg-accent",params:s,to:"/s3/ls/$bucket/$",children:[o,i]}),t[6]=s,t[7]=i,t[8]=c):c=t[8],c}function ne({object:l,bucketName:t,displayName:a,fullKey:r}){const[n,s]=f.useState(!1),o=U();async function i(){try{const m=new Q({Bucket:t,Key:r}),p=await D().send(m);if(p.Body){const x=await p.Body.transformToByteArray(),h=URL.createObjectURL(new Blob([x])),d=document.createElement("a");d.href=h,d.download=a,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(h)}}catch{throw new Error("Failed to download object")}}async function c(){try{await o.mutateAsync({bucket:t,key:r})}finally{s(!1)}}return e.jsxs("div",{children:[o.error&&e.jsx(M,{error:o.error,msg:"Failed to delete object"}),e.jsxs("div",{className:"flex items-center justify-between rounded-lg border bg-card p-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(H,{className:"size-5 text-muted-foreground"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-medium",children:a}),l.LastModified&&e.jsxs("p",{className:"text-muted-foreground text-sm",children:["Last Modified: ",l.LastModified.toLocaleString()]})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"text-muted-foreground text-sm",children:N(l.Size||0)}),e.jsx("button",{className:"rounded-md p-2 transition-colors hover:bg-accent",onClick:i,type:"button",children:e.jsx(_,{className:"size-4"})}),e.jsx("button",{className:"rounded-md p-2 text-destructive transition-colors hover:bg-accent",onClick:()=>s(!0),type:"button",children:e.jsx(T,{className:"size-4"})})]}),e.jsx(S,{onOpenChange:s,open:n,children:e.jsxs(L,{children:[e.jsxs(R,{children:[e.jsx(E,{children:"Delete Object"}),e.jsxs(O,{children:["Are you sure you want to delete ",e.jsx("strong",{children:a}),"? This action cannot be undone."]})]}),e.jsxs(z,{children:[e.jsx(B,{children:"Cancel"}),e.jsx($,{className:"bg-destructive hover:bg-destructive/90",onClick:c,children:o.isPending?"Deleting…":"Delete"})]})]})})]})]},l.Key)}function oe({bucket:l,prefix:t="",isPending:a,onUpload:r}){const n=f.useRef(null);async function s(o){const i=o.target.files;if(!(!i||i.length===0))try{await Promise.all(Array.from(i).map(c=>{const m=`${t}${c.name}`;return r({bucket:l,key:m,file:c})}))}finally{n.current&&(n.current.value="")}}return e.jsxs(e.Fragment,{children:[e.jsx("input",{accept:"*/*","aria-label":"Choose files to upload",className:"hidden",multiple:!0,onChange:s,ref:n,type:"file"}),e.jsxs(A,{disabled:a,onClick:()=>n.current?.click(),size:"sm",children:[e.jsx(V,{className:"mr-2 size-4"}),a?"Uploading…":"Upload Files"]})]})}export{re as F,ne as O,oe as U}; +import{k as u,H as g,D as j,E as b,F as y,G as k,I as C,c as w,j as e,L as v,r as f,J as D,K as N,B as A}from"./index.js";import{E as M}from"./error-banner.js";import{g as S,f as E,b as R,a as L,c as O,d as z,e as B,h as F}from"./alert-dialog.js";import{g as $,b as P,c as U}from"./s3.js";import{D as _}from"./download.js";import{T}from"./trash-2.js";const H=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],I=u("file",H);const G=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],K=u("folder",G);const q=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],V=u("upload",q),W=l=>(t,a)=>async r=>{const n=await t(r),{response:s}=n;if(g.isInstance(s)&&s.headers.expires){s.headers.expiresstring=s.headers.expires;try{j(s.headers.expires)}catch(o){a.logger?.warn(`AWS SDK Warning for ${a.clientName}::${a.commandName} response parsing (${s.headers.expires}): ${o}`),delete s.headers.expires}}return n},J={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},Z=l=>({applyToStack:t=>{t.addRelativeTo(W(),J)}});class Q extends b.classBuilder().ep({...y,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,a,r,n){return[k(r,t.getEndpointParameterInstructions()),$(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1"]}),P(r),Z()]}).s("AmazonS3","GetObject",{}).n("S3Client","GetObjectCommand").sc(C).build(){}function re(l){const t=w.c(9),{folderName:a,fullPrefix:r,bucketName:n}=l;let s;t[0]!==n||t[1]!==r?(s={bucket:n,_splat:r},t[0]=n,t[1]=r,t[2]=s):s=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(K,{className:"size-5 text-muted-foreground"}),t[3]=o):o=t[3];let i;t[4]!==a?(i=e.jsx("span",{className:"font-medium",children:a}),t[4]=a,t[5]=i):i=t[5];let c;return t[6]!==s||t[7]!==i?(c=e.jsxs(v,{className:"flex items-center gap-3 rounded-lg border bg-card p-4 transition-colors hover:bg-accent",params:s,to:"/s3/ls/$bucket/$",children:[o,i]}),t[6]=s,t[7]=i,t[8]=c):c=t[8],c}function ne({object:l,bucketName:t,displayName:a,fullKey:r}){const[n,s]=f.useState(!1),o=U();async function i(){try{const m=new Q({Bucket:t,Key:r}),p=await N().send(m);if(p.Body){const x=await p.Body.transformToByteArray(),h=URL.createObjectURL(new Blob([x])),d=document.createElement("a");d.href=h,d.download=a,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(h)}}catch{throw new Error("Failed to download object")}}async function c(){try{await o.mutateAsync({bucket:t,key:r})}finally{s(!1)}}return e.jsxs("div",{children:[o.error&&e.jsx(M,{error:o.error,msg:"Failed to delete object"}),e.jsxs("div",{className:"flex items-center justify-between rounded-lg border bg-card p-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(I,{className:"size-5 text-muted-foreground"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-medium",children:a}),l.LastModified&&e.jsxs("p",{className:"text-muted-foreground text-sm",children:["Last Modified: ",l.LastModified.toLocaleString()]})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"text-muted-foreground text-sm",children:D(l.Size||0)}),e.jsx("button",{className:"rounded-md p-2 transition-colors hover:bg-accent",onClick:i,type:"button",children:e.jsx(_,{className:"size-4"})}),e.jsx("button",{className:"rounded-md p-2 text-destructive transition-colors hover:bg-accent",onClick:()=>s(!0),type:"button",children:e.jsx(T,{className:"size-4"})})]}),e.jsx(S,{onOpenChange:s,open:n,children:e.jsxs(E,{children:[e.jsxs(R,{children:[e.jsx(L,{children:"Delete Object"}),e.jsxs(O,{children:["Are you sure you want to delete ",e.jsx("strong",{children:a}),"? This action cannot be undone."]})]}),e.jsxs(z,{children:[e.jsx(B,{children:"Cancel"}),e.jsx(F,{className:"bg-destructive hover:bg-destructive/90",onClick:c,children:o.isPending?"Deleting…":"Delete"})]})]})})]})]},l.Key)}function oe({bucket:l,prefix:t="",isPending:a,onUpload:r}){const n=f.useRef(null);async function s(o){const i=o.target.files;if(!(!i||i.length===0))try{await Promise.all(Array.from(i).map(c=>{const m=`${t}${c.name}`;return r({bucket:l,key:m,file:c})}))}finally{n.current&&(n.current.value="")}}return e.jsxs(e.Fragment,{children:[e.jsx("input",{accept:"*/*","aria-label":"Choose files to upload",className:"hidden",multiple:!0,onChange:s,ref:n,type:"file"}),e.jsxs(A,{disabled:a,onClick:()=>n.current?.click(),size:"sm",children:[e.jsx(V,{className:"mr-2 size-4"}),a?"Uploading…":"Upload Files"]})]})}export{re as F,ne as O,oe as U}; diff --git a/hive/services/hiveui/frontend/dist/assets/useSuspenseQuery.js b/hive/services/hiveui/frontend/dist/assets/useSuspenseQuery.js index 83313a795..f9e028a60 100644 --- a/hive/services/hiveui/frontend/dist/assets/useSuspenseQuery.js +++ b/hive/services/hiveui/frontend/dist/assets/useSuspenseQuery.js @@ -1 +1 @@ -import{c1 as G,ca as N,cb as l,c2 as Q,cc as g,c6 as M,cd as _,ce as B,cf as J,cg as C,ch as X,ci as Y,cj as j,c5 as z,r as d,c7 as V,bl as Z}from"./index.js";var $=class extends G{constructor(t,e){super(),this.options=e,this.#s=t,this.#i=null,this.#r=N(),this.bindMethods(),this.setOptions(e)}#s;#t=void 0;#p=void 0;#e=void 0;#n;#u;#r;#i;#b;#l;#d;#o;#h;#a;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),A(this.#t,this.options)?this.#c():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return x(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return x(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#S(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,s=this.#t;if(this.options=this.#s.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof l(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#O(),this.#t.setOptions(this.options),e._defaulted&&!Q(this.options,e)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&H(this.#t,s,this.options,e)&&this.#c(),this.updateResult(),r&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||g(this.options.staleTime,this.#t)!==g(e.staleTime,this.#t))&&this.#v();const i=this.#R();r&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||i!==this.#a)&&this.#m(i)}getOptimisticResult(t){const e=this.#s.getQueryCache().build(this.#s,t),s=this.createResult(e,t);return tt(this,s)&&(this.#e=s,this.#u=this.options,this.#n=this.#t.state),s}getCurrentResult(){return this.#e}trackResult(t,e){return new Proxy(t,{get:(s,r)=>(this.trackProp(r),e?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#r.status==="pending"&&this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,r))})}trackProp(t){this.#f.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#s.defaultQueryOptions(t),s=this.#s.getQueryCache().build(this.#s,e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){return this.#c({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#e))}#c(t){this.#O();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(M)),e}#v(){this.#y();const t=g(this.options.staleTime,this.#t);if(_||this.#e.isStale||!B(t))return;const s=J(this.#e.dataUpdatedAt,t)+1;this.#o=C.setTimeout(()=>{this.#e.isStale||this.updateResult()},s)}#R(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#m(t){this.#S(),this.#a=t,!(_||l(this.options.enabled,this.#t)===!1||!B(this.#a)||this.#a===0)&&(this.#h=C.setInterval(()=>{(this.options.refetchIntervalInBackground||X.isFocused())&&this.#c()},this.#a))}#g(){this.#v(),this.#m(this.#R())}#y(){this.#o&&(C.clearTimeout(this.#o),this.#o=void 0)}#S(){this.#h&&(C.clearInterval(this.#h),this.#h=void 0)}createResult(t,e){const s=this.#t,r=this.options,i=this.#e,u=this.#n,n=this.#u,v=t!==s?t.state:this.#p,{state:h}=t;let a={...h},R=!1,o;if(e._optimisticResults){const c=this.hasListeners(),m=!c&&A(t,e),S=c&&H(t,s,e,r);(m||S)&&(a={...a,...Y(h.data,t.options)}),e._optimisticResults==="isRestoring"&&(a.fetchStatus="idle")}let{error:y,errorUpdatedAt:U,status:b}=a;o=a.data;let D=!1;if(e.placeholderData!==void 0&&o===void 0&&b==="pending"){let c;i?.isPlaceholderData&&e.placeholderData===n?.placeholderData?(c=i.data,D=!0):c=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,c!==void 0&&(b="success",o=j(i?.data,c,e),R=!0)}if(e.select&&o!==void 0&&!D)if(i&&o===u?.data&&e.select===this.#b)o=this.#l;else try{this.#b=e.select,o=e.select(o),o=j(i?.data,o,e),this.#l=o,this.#i=null}catch(c){this.#i=c}this.#i&&(y=this.#i,o=this.#l,U=Date.now(),b="error");const I=a.fetchStatus==="fetching",T=b==="pending",w=b==="error",F=T&&I,k=o!==void 0,p={status:b,fetchStatus:a.fetchStatus,isPending:T,isSuccess:b==="success",isError:w,isInitialLoading:F,isLoading:F,data:o,dataUpdatedAt:a.dataUpdatedAt,error:y,errorUpdatedAt:U,failureCount:a.fetchFailureCount,failureReason:a.fetchFailureReason,errorUpdateCount:a.errorUpdateCount,isFetched:a.dataUpdateCount>0||a.errorUpdateCount>0,isFetchedAfterMount:a.dataUpdateCount>v.dataUpdateCount||a.errorUpdateCount>v.errorUpdateCount,isFetching:I,isRefetching:I&&!T,isLoadingError:w&&!k,isPaused:a.fetchStatus==="paused",isPlaceholderData:R,isRefetchError:w&&k,isStale:P(t,e),refetch:this.refetch,promise:this.#r,isEnabled:l(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const c=p.data!==void 0,m=p.status==="error"&&!c,S=E=>{m?E.reject(p.error):c&&E.resolve(p.data)},L=()=>{const E=this.#r=p.promise=N();S(E)},O=this.#r;switch(O.status){case"pending":t.queryHash===s.queryHash&&S(O);break;case"fulfilled":(m||p.data!==O.value)&&L();break;case"rejected":(!m||p.error!==O.reason)&&L();break}}return p}updateResult(){const t=this.#e,e=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#u=this.options,this.#n.data!==void 0&&(this.#d=this.#t),Q(e,t))return;this.#e=e;const s=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,i=typeof r=="function"?r():r;if(i==="all"||!i&&!this.#f.size)return!0;const u=new Set(i??this.#f);return this.options.throwOnError&&u.add("error"),Object.keys(this.#e).some(n=>{const f=n;return this.#e[f]!==t[f]&&u.has(f)})};this.#E({listeners:s()})}#O(){const t=this.#s.getQueryCache().build(this.#s,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#p=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}#E(t){z.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#e)}),this.#s.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function q(t,e){return l(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function A(t,e){return q(t,e)||t.state.data!==void 0&&x(t,e,e.refetchOnMount)}function x(t,e,s){if(l(e.enabled,t)!==!1&&g(e.staleTime,t)!=="static"){const r=typeof s=="function"?s(t):s;return r==="always"||r!==!1&&P(t,e)}return!1}function H(t,e,s,r){return(t!==e||l(r.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&P(t,s)}function P(t,e){return l(e.enabled,t)!==!1&&t.isStaleByTime(g(e.staleTime,t))}function tt(t,e){return!Q(t.getCurrentResult(),e)}var K=d.createContext(!1),et=()=>d.useContext(K);K.Provider;function st(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var rt=d.createContext(st()),it=()=>d.useContext(rt),at=(t,e,s)=>{const r=s?.state.error&&typeof t.throwOnError=="function"?V(t.throwOnError,[s.state.error,s]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||r)&&(e.isReset()||(t.retryOnMount=!1))},nt=t=>{d.useEffect(()=>{t.clearReset()},[t])},ot=({result:t,errorResetBoundary:e,throwOnError:s,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||V(s,[t.error,r])),ht=(t,e)=>e.state.data===void 0,ct=t=>{if(t.suspense){const s=i=>i==="static"?i:Math.max(i??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...i)=>s(r(...i)):s(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},ut=(t,e)=>t.isLoading&&t.isFetching&&!e,lt=(t,e)=>t?.suspense&&e.isPending,W=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function dt(t,e,s){const r=et(),i=it(),u=Z(),n=u.defaultQueryOptions(t);u.getDefaultOptions().queries?._experimental_beforeQuery?.(n);const f=u.getQueryCache().get(n.queryHash);n._optimisticResults=r?"isRestoring":"optimistic",ct(n),at(n,i,f),nt(i);const v=!u.getQueryCache().get(n.queryHash),[h]=d.useState(()=>new e(u,n)),a=h.getOptimisticResult(n),R=!r&&t.subscribed!==!1;if(d.useSyncExternalStore(d.useCallback(o=>{const y=R?h.subscribe(z.batchCalls(o)):M;return h.updateResult(),y},[h,R]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),d.useEffect(()=>{h.setOptions(n)},[n,h]),lt(n,a))throw W(n,h,i);if(ot({result:a,errorResetBoundary:i,throwOnError:n.throwOnError,query:f,suspense:n.suspense}))throw a.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(n,a),n.experimental_prefetchInRender&&!_&&ut(a,r)&&(v?W(n,h,i):f?.promise)?.catch(M).finally(()=>{h.updateResult()}),n.notifyOnChangeProps?a:h.trackResult(a)}function bt(t,e){return dt({...t,enabled:!0,suspense:!0,throwOnError:ht,placeholderData:void 0},$)}export{bt as u}; +import{cs as J,cA as N,cB as l,ct as Q,cC as g,cx as x,cD as M,cE as B,cF as K,cG as C,cH as X,cI as Y,cJ as A,cw as z,r as d,cy as V,aj as Z}from"./index.js";var $=class extends J{constructor(t,e){super(),this.options=e,this.#s=t,this.#i=null,this.#r=N(),this.bindMethods(),this.setOptions(e)}#s;#t=void 0;#p=void 0;#e=void 0;#n;#u;#r;#i;#b;#l;#d;#o;#h;#a;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),j(this.#t,this.options)?this.#c():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#S(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,s=this.#t;if(this.options=this.#s.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof l(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#E(),this.#t.setOptions(this.options),e._defaulted&&!Q(this.options,e)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&H(this.#t,s,this.options,e)&&this.#c(),this.updateResult(),r&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||g(this.options.staleTime,this.#t)!==g(e.staleTime,this.#t))&&this.#v();const i=this.#R();r&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||i!==this.#a)&&this.#m(i)}getOptimisticResult(t){const e=this.#s.getQueryCache().build(this.#s,t),s=this.createResult(e,t);return tt(this,s)&&(this.#e=s,this.#u=this.options,this.#n=this.#t.state),s}getCurrentResult(){return this.#e}trackResult(t,e){return new Proxy(t,{get:(s,r)=>(this.trackProp(r),e?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#r.status==="pending"&&this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,r))})}trackProp(t){this.#f.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#s.defaultQueryOptions(t),s=this.#s.getQueryCache().build(this.#s,e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){return this.#c({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#e))}#c(t){this.#E();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(x)),e}#v(){this.#y();const t=g(this.options.staleTime,this.#t);if(M||this.#e.isStale||!B(t))return;const s=K(this.#e.dataUpdatedAt,t)+1;this.#o=C.setTimeout(()=>{this.#e.isStale||this.updateResult()},s)}#R(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#m(t){this.#S(),this.#a=t,!(M||l(this.options.enabled,this.#t)===!1||!B(this.#a)||this.#a===0)&&(this.#h=C.setInterval(()=>{(this.options.refetchIntervalInBackground||X.isFocused())&&this.#c()},this.#a))}#g(){this.#v(),this.#m(this.#R())}#y(){this.#o&&(C.clearTimeout(this.#o),this.#o=void 0)}#S(){this.#h&&(C.clearInterval(this.#h),this.#h=void 0)}createResult(t,e){const s=this.#t,r=this.options,i=this.#e,u=this.#n,n=this.#u,v=t!==s?t.state:this.#p,{state:h}=t;let a={...h},R=!1,o;if(e._optimisticResults){const c=this.hasListeners(),m=!c&&j(t,e),S=c&&H(t,s,e,r);(m||S)&&(a={...a,...Y(h.data,t.options)}),e._optimisticResults==="isRestoring"&&(a.fetchStatus="idle")}let{error:y,errorUpdatedAt:U,status:b}=a;o=a.data;let D=!1;if(e.placeholderData!==void 0&&o===void 0&&b==="pending"){let c;i?.isPlaceholderData&&e.placeholderData===n?.placeholderData?(c=i.data,D=!0):c=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,c!==void 0&&(b="success",o=A(i?.data,c,e),R=!0)}if(e.select&&o!==void 0&&!D)if(i&&o===u?.data&&e.select===this.#b)o=this.#l;else try{this.#b=e.select,o=e.select(o),o=A(i?.data,o,e),this.#l=o,this.#i=null}catch(c){this.#i=c}this.#i&&(y=this.#i,o=this.#l,U=Date.now(),b="error");const I=a.fetchStatus==="fetching",T=b==="pending",w=b==="error",F=T&&I,k=o!==void 0,p={status:b,fetchStatus:a.fetchStatus,isPending:T,isSuccess:b==="success",isError:w,isInitialLoading:F,isLoading:F,data:o,dataUpdatedAt:a.dataUpdatedAt,error:y,errorUpdatedAt:U,failureCount:a.fetchFailureCount,failureReason:a.fetchFailureReason,errorUpdateCount:a.errorUpdateCount,isFetched:a.dataUpdateCount>0||a.errorUpdateCount>0,isFetchedAfterMount:a.dataUpdateCount>v.dataUpdateCount||a.errorUpdateCount>v.errorUpdateCount,isFetching:I,isRefetching:I&&!T,isLoadingError:w&&!k,isPaused:a.fetchStatus==="paused",isPlaceholderData:R,isRefetchError:w&&k,isStale:P(t,e),refetch:this.refetch,promise:this.#r,isEnabled:l(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const c=p.data!==void 0,m=p.status==="error"&&!c,S=O=>{m?O.reject(p.error):c&&O.resolve(p.data)},L=()=>{const O=this.#r=p.promise=N();S(O)},E=this.#r;switch(E.status){case"pending":t.queryHash===s.queryHash&&S(E);break;case"fulfilled":(m||p.data!==E.value)&&L();break;case"rejected":(!m||p.error!==E.reason)&&L();break}}return p}updateResult(){const t=this.#e,e=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#u=this.options,this.#n.data!==void 0&&(this.#d=this.#t),Q(e,t))return;this.#e=e;const s=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,i=typeof r=="function"?r():r;if(i==="all"||!i&&!this.#f.size)return!0;const u=new Set(i??this.#f);return this.options.throwOnError&&u.add("error"),Object.keys(this.#e).some(n=>{const f=n;return this.#e[f]!==t[f]&&u.has(f)})};this.#O({listeners:s()})}#E(){const t=this.#s.getQueryCache().build(this.#s,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#p=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}#O(t){z.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#e)}),this.#s.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function q(t,e){return l(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function j(t,e){return q(t,e)||t.state.data!==void 0&&_(t,e,e.refetchOnMount)}function _(t,e,s){if(l(e.enabled,t)!==!1&&g(e.staleTime,t)!=="static"){const r=typeof s=="function"?s(t):s;return r==="always"||r!==!1&&P(t,e)}return!1}function H(t,e,s,r){return(t!==e||l(r.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&P(t,s)}function P(t,e){return l(e.enabled,t)!==!1&&t.isStaleByTime(g(e.staleTime,t))}function tt(t,e){return!Q(t.getCurrentResult(),e)}var G=d.createContext(!1),et=()=>d.useContext(G);G.Provider;function st(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var rt=d.createContext(st()),it=()=>d.useContext(rt),at=(t,e,s)=>{const r=s?.state.error&&typeof t.throwOnError=="function"?V(t.throwOnError,[s.state.error,s]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||r)&&(e.isReset()||(t.retryOnMount=!1))},nt=t=>{d.useEffect(()=>{t.clearReset()},[t])},ot=({result:t,errorResetBoundary:e,throwOnError:s,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||V(s,[t.error,r])),ht=(t,e)=>e.state.data===void 0,ct=t=>{if(t.suspense){const s=i=>i==="static"?i:Math.max(i??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...i)=>s(r(...i)):s(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},ut=(t,e)=>t.isLoading&&t.isFetching&&!e,lt=(t,e)=>t?.suspense&&e.isPending,W=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function dt(t,e,s){const r=et(),i=it(),u=Z(),n=u.defaultQueryOptions(t);u.getDefaultOptions().queries?._experimental_beforeQuery?.(n);const f=u.getQueryCache().get(n.queryHash);n._optimisticResults=r?"isRestoring":"optimistic",ct(n),at(n,i,f),nt(i);const v=!u.getQueryCache().get(n.queryHash),[h]=d.useState(()=>new e(u,n)),a=h.getOptimisticResult(n),R=!r&&t.subscribed!==!1;if(d.useSyncExternalStore(d.useCallback(o=>{const y=R?h.subscribe(z.batchCalls(o)):x;return h.updateResult(),y},[h,R]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),d.useEffect(()=>{h.setOptions(n)},[n,h]),lt(n,a))throw W(n,h,i);if(ot({result:a,errorResetBoundary:i,throwOnError:n.throwOnError,query:f,suspense:n.suspense}))throw a.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(n,a),n.experimental_prefetchInRender&&!M&&ut(a,r)&&(v?W(n,h,i):f?.promise)?.catch(x).finally(()=>{h.updateResult()}),n.notifyOnChangeProps?a:h.trackResult(a)}function bt(t,e){return dt({...t,enabled:!0,suspense:!0,throwOnError:ht,placeholderData:void 0},$)}export{bt as u}; diff --git a/hive/services/hiveui/frontend/dist/assets/zod.js b/hive/services/hiveui/frontend/dist/assets/zod.js new file mode 100644 index 000000000..deabe5905 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/zod.js @@ -0,0 +1 @@ +import{ar as m,as as pt,at as Ut,au as Tt}from"./index.js";var ge=e=>e.type==="checkbox",ae=e=>e instanceof Date,z=e=>e==null;const ft=e=>typeof e=="object";var U=e=>!z(e)&&!Array.isArray(e)&&ft(e)&&!ae(e),dt=e=>U(e)&&e.target?ge(e.target)?e.target.checked:e.target.value:e,Lt=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,yt=(e,i)=>e.has(Lt(i)),Mt=e=>{const i=e.constructor&&e.constructor.prototype;return U(i)&&i.hasOwnProperty("isPrototypeOf")},Re=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function R(e){if(e instanceof Date)return new Date(e);const i=typeof FileList<"u"&&e instanceof FileList;if(Re&&(e instanceof Blob||i))return e;const t=Array.isArray(e);if(!t&&!(U(e)&&Mt(e)))return e;const r=t?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=R(e[o]));return r}var Ve=e=>/^\w*$/.test(e),O=e=>e===void 0,pe=e=>Array.isArray(e)?e.filter(Boolean):[],Ue=e=>pe(e.replace(/["|']|\]/g,"").split(/\.|\[/)),y=(e,i,t)=>{if(!i||!U(e))return t;const r=(Ve(i)?[i]:Ue(i)).reduce((o,a)=>z(o)?o:o[a],e);return O(r)||r===e?O(e[i])?t:e[i]:r},Z=e=>typeof e=="boolean",H=e=>typeof e=="function",C=(e,i,t)=>{let r=-1;const o=Ve(i)?[i]:Ue(i),a=o.length,l=a-1;for(;++rm.useContext(ht);var gt=(e,i,t,r=!0)=>{const o={defaultValues:i._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const l=a;return i._proxyFormState[l]!==Q.all&&(i._proxyFormState[l]=!r||Q.all),t&&(t[l]=!0),e[l]}});return o};const Le=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Nt(e){const i=Te(),{control:t=i,disabled:r,name:o,exact:a}=e||{},[l,c]=m.useState(t._formState),x=m.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Le(()=>t._subscribe({name:o,formState:x.current,exact:a,callback:S=>{!r&&c({...t._formState,...S})}}),[o,r,a]),m.useEffect(()=>{x.current.isValid&&t._setValid(!0)},[t]),m.useMemo(()=>gt(l,t,x.current,!1),[l,t])}var G=e=>typeof e=="string",De=(e,i,t,r,o)=>G(e)?(r&&i.watch.add(e),y(t,e,o)):Array.isArray(e)?e.map(a=>(r&&i.watch.add(a),y(t,a))):(r&&(i.watchAll=!0),t),Ce=e=>z(e)||!ft(e);function X(e,i,t=new WeakSet){if(Ce(e)||Ce(i))return Object.is(e,i);if(ae(e)&&ae(i))return Object.is(e.getTime(),i.getTime());const r=Object.keys(e),o=Object.keys(i);if(r.length!==o.length)return!1;if(t.has(e)||t.has(i))return!0;t.add(e),t.add(i);for(const a of r){const l=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const c=i[a];if(ae(l)&&ae(c)||U(l)&&U(c)||Array.isArray(l)&&Array.isArray(c)?!X(l,c,t):!Object.is(l,c))return!1}}return!0}function It(e){const i=Te(),{control:t=i,name:r,defaultValue:o,disabled:a,exact:l,compute:c}=e||{},x=m.useRef(o),S=m.useRef(c),I=m.useRef(void 0),v=m.useRef(t),E=m.useRef(r);S.current=c;const[_,B]=m.useState(()=>{const V=t._getWatch(r,x.current);return S.current?S.current(V):V}),T=m.useCallback(V=>{const A=De(r,t._names,V||t._formValues,!1,x.current);return S.current?S.current(A):A},[t._formValues,t._names,r]),N=m.useCallback(V=>{if(!a){const A=De(r,t._names,V||t._formValues,!1,x.current);if(S.current){const $=S.current(A);X($,I.current)||(B($),I.current=$)}else B(A)}},[t._formValues,t._names,a,r]);Le(()=>((v.current!==t||!X(E.current,r))&&(v.current=t,E.current=r,N()),t._subscribe({name:r,formState:{values:!0},exact:l,callback:V=>{N(V.values)}})),[t,l,r,N]),m.useEffect(()=>t._removeUnmounted());const L=v.current!==t,b=E.current,j=m.useMemo(()=>{if(a)return null;const V=!L&&!X(b,r);return L||V?T():null},[a,L,r,b,T]);return j!==null?j:_}function Pt(e){const i=Te(),{name:t,disabled:r,control:o=i,shouldUnregister:a,defaultValue:l,exact:c=!0}=e,x=yt(o._names.array,t),S=m.useMemo(()=>y(o._formValues,t,y(o._defaultValues,t,l)),[o,t,l]),I=It({control:o,name:t,defaultValue:S,exact:c}),v=Nt({control:o,name:t,exact:c}),E=m.useRef(e),_=m.useRef(void 0),B=m.useRef(o.register(t,{...e.rules,value:I,...Z(e.disabled)?{disabled:e.disabled}:{}}));E.current=e;const T=m.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!y(v.errors,t)},isDirty:{enumerable:!0,get:()=>!!y(v.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!y(v.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!y(v.validatingFields,t)},error:{enumerable:!0,get:()=>y(v.errors,t)}}),[v,t]),N=m.useCallback(V=>B.current.onChange({target:{value:dt(V),name:t},type:me.CHANGE}),[t]),L=m.useCallback(()=>B.current.onBlur({target:{value:y(o._formValues,t),name:t},type:me.BLUR}),[t,o._formValues]),b=m.useCallback(V=>{const A=y(o._fields,t);A&&A._f&&V&&(A._f.ref={focus:()=>H(V.focus)&&V.focus(),select:()=>H(V.select)&&V.select(),setCustomValidity:$=>H(V.setCustomValidity)&&V.setCustomValidity($),reportValidity:()=>H(V.reportValidity)&&V.reportValidity()})},[o._fields,t]),j=m.useMemo(()=>({name:t,value:I,...Z(r)||v.disabled?{disabled:v.disabled||r}:{},onChange:N,onBlur:L,ref:b}),[t,r,v.disabled,N,L,b,I]);return m.useEffect(()=>{const V=o._options.shouldUnregister||a,A=_.current;A&&A!==t&&!x&&o.unregister(A),o.register(t,{...E.current.rules,...Z(E.current.disabled)?{disabled:E.current.disabled}:{}});const $=(te,re)=>{const ee=y(o._fields,te);ee&&ee._f&&(ee._f.mount=re)};if($(t,!0),V){const te=R(y(o._options.defaultValues,t,E.current.defaultValue));C(o._defaultValues,t,te),O(y(o._formValues,t))&&C(o._formValues,t,te)}return!x&&o.register(t),_.current=t,()=>{(x?V&&!o._state.action:V)?o.unregister(t):$(t,!1)}},[t,o,x,a]),m.useEffect(()=>{o._setDisabledField({disabled:r,name:t})},[r,t,o]),m.useMemo(()=>({field:j,formState:v,fieldState:T}),[j,v,T])}const ar=e=>e.render(Pt(e)),Bt=m.createContext(null);Bt.displayName="HookFormContext";var Me=(e,i,t,r,o)=>i?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[r]:o||!0}}:{},ye=e=>Array.isArray(e)?e:[e],Ye=()=>{let e=[];return{get observers(){return e},next:o=>{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}};function vt(e,i){const t={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],a=i[r];if(o&&U(o)&&a){const l=vt(o,a);U(l)&&(t[r]=l)}else e[r]&&(t[r]=a)}return t}var q=e=>U(e)&&!Object.keys(e).length,Ne=e=>e.type==="file",_e=e=>{if(!Re)return!1;const i=e?e.ownerDocument:0;return e instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},mt=e=>e.type==="select-multiple",Ie=e=>e.type==="radio",jt=e=>Ie(e)||ge(e),ke=e=>_e(e)&&e.isConnected;function Wt(e,i){const t=i.slice(0,-1).length;let r=0;for(;r{for(const i in e)if(H(e[i]))return!0;return!1};function _t(e){return Array.isArray(e)||U(e)&&!Ht(e)}function Se(e,i={}){for(const t in e){const r=e[t];_t(r)?(i[t]=Array.isArray(r)?[]:{},Se(r,i[t])):O(r)||(i[t]=!0)}return i}function ue(e,i,t){t||(t=Se(i));for(const r in e){const o=e[r];if(_t(o))O(i)||Ce(t[r])?t[r]=Se(o,Array.isArray(o)?[]:{}):ue(o,z(i)?{}:i[r],t[r]);else{const a=i[r];t[r]=!X(o,a)}}return t}const Je={value:!1,isValid:!1},Qe={value:!0,isValid:!0};var bt=e=>{if(Array.isArray(e)){if(e.length>1){const i=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:i,isValid:!!i.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!O(e[0].attributes.value)?O(e[0].value)||e[0].value===""?Qe:{value:e[0].value,isValid:!0}:Qe:Je}return Je},Vt=(e,{valueAsNumber:i,valueAsDate:t,setValueAs:r})=>O(e)?e:i?e===""?NaN:e&&+e:t&&G(e)?new Date(e):r?r(e):e;const Xe={isValid:!1,value:null};var Ft=e=>Array.isArray(e)?e.reduce((i,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:i,Xe):Xe;function et(e){const i=e.ref;return Ne(i)?i.files:Ie(i)?Ft(e.refs).value:mt(i)?[...i.selectedOptions].map(({value:t})=>t):ge(i)?bt(e.refs).value:Vt(O(i.value)?e.ref.value:i.value,e)}var $t=(e,i,t,r)=>{const o={};for(const a of e){const l=y(i,a);l&&C(o,a,l._f)}return{criteriaMode:t,names:[...e],fields:o,shouldUseNativeValidation:r}},be=e=>e instanceof RegExp,de=e=>O(e)?e:be(e)?e.source:U(e)?be(e.value)?e.value.source:e.value:e,tt=e=>({isOnSubmit:!e||e===Q.onSubmit,isOnBlur:e===Q.onBlur,isOnChange:e===Q.onChange,isOnAll:e===Q.all,isOnTouch:e===Q.onTouched});const rt="AsyncFunction";var zt=e=>!!e&&!!e.validate&&!!(H(e.validate)&&e.validate.constructor.name===rt||U(e.validate)&&Object.values(e.validate).find(i=>i.constructor.name===rt)),Kt=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),st=(e,i,t)=>!t&&(i.watchAll||i.watch.has(e)||[...i.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const he=(e,i,t,r)=>{for(const o of t||Object.keys(e)){const a=y(e,o);if(a){const{_f:l,...c}=a;if(l){if(l.refs&&l.refs[0]&&i(l.refs[0],o)&&!r)return!0;if(l.ref&&i(l.ref,l.name)&&!r)return!0;if(he(c,i))break}else if(U(c)&&he(c,i))break}}};function it(e,i,t){const r=y(e,t);if(r||Ve(t))return{error:r,name:t};const o=t.split(".");for(;o.length;){const a=o.join("."),l=y(i,a),c=y(e,a);if(l&&!Array.isArray(l)&&t!==a)return{name:t};if(c&&c.type)return{name:a,error:c};if(c&&c.root&&c.root.type)return{name:`${a}.root`,error:c.root};o.pop()}return{name:t}}var Zt=(e,i,t,r)=>{t(e);const{name:o,...a}=e;return q(a)||Object.keys(a).length>=Object.keys(i).length||Object.keys(a).find(l=>i[l]===(!r||Q.all))},Gt=(e,i,t)=>!e||!i||e===i||ye(e).some(r=>r&&(t?r===i:r.startsWith(i)||i.startsWith(r))),Yt=(e,i,t,r,o)=>o.isOnAll?!1:!t&&o.isOnTouch?!(i||e):(t?r.isOnBlur:o.isOnBlur)?!e:(t?r.isOnChange:o.isOnChange)?e:!0,Jt=(e,i)=>!pe(y(e,i)).length&&p(e,i),Qt=(e,i,t)=>{const r=ye(y(e,t));return C(r,"root",i[t]),C(e,t,r),e};function nt(e,i,t="validate"){if(G(e)||Array.isArray(e)&&e.every(G)||Z(e)&&!e)return{type:t,message:G(e)?e:"",ref:i}}var oe=e=>U(e)&&!be(e)?e:{value:e,message:""},at=async(e,i,t,r,o,a)=>{const{ref:l,refs:c,required:x,maxLength:S,minLength:I,min:v,max:E,pattern:_,validate:B,name:T,valueAsNumber:N,mount:L}=e._f,b=y(t,T);if(!L||i.has(T))return{};const j=c?c[0]:l,V=F=>{o&&j.reportValidity&&(j.setCustomValidity(Z(F)?"":F||""),j.reportValidity())},A={},$=Ie(l),te=ge(l),re=$||te,ee=(N||Ne(l))&&O(l.value)&&O(b)||_e(l)&&l.value===""||b===""||Array.isArray(b)&&!b.length,Y=Me.bind(null,T,r,A),ve=(F,w,M,P=se.maxLength,J=se.minLength)=>{const K=F?w:M;A[T]={type:F?P:J,message:K,ref:l,...Y(F?P:J,K)}};if(a?!Array.isArray(b)||!b.length:x&&(!re&&(ee||z(b))||Z(b)&&!b||te&&!bt(c).isValid||$&&!Ft(c).isValid)){const{value:F,message:w}=G(x)?{value:!!x,message:x}:oe(x);if(F&&(A[T]={type:se.required,message:w,ref:j,...Y(se.required,w)},!r))return V(w),A}if(!ee&&(!z(v)||!z(E))){let F,w;const M=oe(E),P=oe(v);if(!z(b)&&!isNaN(b)){const J=l.valueAsNumber||b&&+b;z(M.value)||(F=J>M.value),z(P.value)||(w=Jnew Date(new Date().toDateString()+" "+fe),le=l.type=="time",ce=l.type=="week";G(M.value)&&b&&(F=le?K(b)>K(M.value):ce?b>M.value:J>new Date(M.value)),G(P.value)&&b&&(w=le?K(b)+F.value,P=!z(w.value)&&b.length<+w.value;if((M||P)&&(ve(M,F.message,w.message),!r))return V(A[T].message),A}if(_&&!ee&&G(b)){const{value:F,message:w}=oe(_);if(be(F)&&!b.match(F)&&(A[T]={type:se.pattern,message:w,ref:l,...Y(se.pattern,w)},!r))return V(w),A}if(B){if(H(B)){const F=await B(b,t),w=nt(F,j);if(w&&(A[T]={...w,...Y(se.validate,w.message)},!r))return V(w.message),A}else if(U(B)){let F={};for(const w in B){if(!q(F)&&!r)break;const M=nt(await B[w](b,t),j,w);M&&(F={...M,...Y(w,M.message)},V(M.message),r&&(A[T]=F))}if(!q(F)&&(A[T]={ref:j,...F},!r))return A}}return V(!0),A};const Xt={mode:Q.onSubmit,reValidateMode:Q.onChange,shouldFocusError:!0};function er(e={}){let i={...Xt,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:H(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:i.errors||{},disabled:i.disabled||!1},r={},o=U(i.defaultValues)||U(i.values)?R(i.defaultValues||i.values)||{}:{},a=i.shouldUnregister?{}:R(o),l={action:!1,mount:!1,watch:!1,keepIsValid:!1},c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},x,S=0;const I={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={...I};let E={...v};const _={array:Ye(),state:Ye()},B=i.criteriaMode===Q.all,T=s=>n=>{clearTimeout(S),S=setTimeout(s,n)},N=async s=>{if(!l.keepIsValid&&!i.disabled&&(v.isValid||E.isValid||s)){let n;i.resolver?(n=q((await re()).errors),L()):n=await Y(r,!0),n!==t.isValid&&_.state.next({isValid:n})}},L=(s,n)=>{!i.disabled&&(v.isValidating||v.validatingFields||E.isValidating||E.validatingFields)&&((s||Array.from(c.mount)).forEach(u=>{u&&(n?C(t.validatingFields,u,n):p(t.validatingFields,u))}),_.state.next({validatingFields:t.validatingFields,isValidating:!q(t.validatingFields)}))},b=(s,n=[],u,h,d=!0,f=!0)=>{if(h&&u&&!i.disabled){if(l.action=!0,f&&Array.isArray(y(r,s))){const g=u(y(r,s),h.argA,h.argB);d&&C(r,s,g)}if(f&&Array.isArray(y(t.errors,s))){const g=u(y(t.errors,s),h.argA,h.argB);d&&C(t.errors,s,g),Jt(t.errors,s)}if((v.touchedFields||E.touchedFields)&&f&&Array.isArray(y(t.touchedFields,s))){const g=u(y(t.touchedFields,s),h.argA,h.argB);d&&C(t.touchedFields,s,g)}(v.dirtyFields||E.dirtyFields)&&(t.dirtyFields=ue(o,a)),_.state.next({name:s,isDirty:F(s,n),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else C(a,s,n)},j=(s,n)=>{C(t.errors,s,n),_.state.next({errors:t.errors})},V=s=>{t.errors=s,_.state.next({errors:t.errors,isValid:!1})},A=(s,n,u,h)=>{const d=y(r,s);if(d){const f=y(a,s,O(u)?y(o,s):u);O(f)||h&&h.defaultChecked||n?C(a,s,n?f:et(d._f)):P(s,f),l.mount&&!l.action&&N()}},$=(s,n,u,h,d)=>{let f=!1,g=!1;const k={name:s};if(!i.disabled){if(!u||h){(v.isDirty||E.isDirty)&&(g=t.isDirty,t.isDirty=k.isDirty=F(),f=g!==k.isDirty);const D=X(y(o,s),n);g=!!y(t.dirtyFields,s),D?p(t.dirtyFields,s):C(t.dirtyFields,s,!0),k.dirtyFields=t.dirtyFields,f=f||(v.dirtyFields||E.dirtyFields)&&g!==!D}if(u){const D=y(t.touchedFields,s);D||(C(t.touchedFields,s,u),k.touchedFields=t.touchedFields,f=f||(v.touchedFields||E.touchedFields)&&D!==u)}f&&d&&_.state.next(k)}return f?k:{}},te=(s,n,u,h)=>{const d=y(t.errors,s),f=(v.isValid||E.isValid)&&Z(n)&&t.isValid!==n;if(i.delayError&&u?(x=T(()=>j(s,u)),x(i.delayError)):(clearTimeout(S),x=null,u?C(t.errors,s,u):p(t.errors,s)),(u?!X(d,u):d)||!q(h)||f){const g={...h,...f&&Z(n)?{isValid:n}:{},errors:t.errors,name:s};t={...t,...g},_.state.next(g)}},re=async s=>(L(s,!0),await i.resolver(a,i.context,$t(s||c.mount,r,i.criteriaMode,i.shouldUseNativeValidation))),ee=async s=>{const{errors:n}=await re(s);if(L(s),s)for(const u of s){const h=y(n,u);h?C(t.errors,u,h):p(t.errors,u)}else t.errors=n;return n},Y=async(s,n,u={valid:!0})=>{for(const h in s){const d=s[h];if(d){const{_f:f,...g}=d;if(f){const k=c.array.has(f.name),D=d._f&&zt(d._f);D&&v.validatingFields&&L([f.name],!0);const W=await at(d,c.disabled,a,B,i.shouldUseNativeValidation&&!n,k);if(D&&v.validatingFields&&L([f.name]),W[f.name]&&(u.valid=!1,n||e.shouldUseNativeValidation))break;!n&&(y(W,f.name)?k?Qt(t.errors,W,f.name):C(t.errors,f.name,W[f.name]):p(t.errors,f.name))}!q(g)&&await Y(g,n,u)}}return u.valid},ve=()=>{for(const s of c.unMount){const n=y(r,s);n&&(n._f.refs?n._f.refs.every(u=>!ke(u)):!ke(n._f.ref))&&Fe(s)}c.unMount=new Set},F=(s,n)=>!i.disabled&&(s&&n&&C(a,s,n),!X(Pe(),o)),w=(s,n,u)=>De(s,c,{...l.mount?a:O(n)?o:G(s)?{[s]:n}:n},u,n),M=s=>pe(y(l.mount?a:o,s,i.shouldUnregister?y(o,s,[]):[])),P=(s,n,u={})=>{const h=y(r,s);let d=n;if(h){const f=h._f;f&&(!f.disabled&&C(a,s,Vt(n,f)),d=_e(f.ref)&&z(n)?"":n,mt(f.ref)?[...f.ref.options].forEach(g=>g.selected=d.includes(g.value)):f.refs?ge(f.ref)?f.refs.forEach(g=>{(!g.defaultChecked||!g.disabled)&&(Array.isArray(d)?g.checked=!!d.find(k=>k===g.value):g.checked=d===g.value||!!d)}):f.refs.forEach(g=>g.checked=g.value===d):Ne(f.ref)?f.ref.value="":(f.ref.value=d,f.ref.type||_.state.next({name:s,values:R(a)})))}(u.shouldDirty||u.shouldTouch)&&$(s,d,u.shouldTouch,u.shouldDirty,!0),u.shouldValidate&&fe(s)},J=(s,n,u)=>{for(const h in n){if(!n.hasOwnProperty(h))return;const d=n[h],f=s+"."+h,g=y(r,f);(c.array.has(s)||U(d)||g&&!g._f)&&!ae(d)?J(f,d,u):P(f,d,u)}},K=(s,n,u={})=>{const h=y(r,s),d=c.array.has(s),f=R(n);C(a,s,f),d?(_.array.next({name:s,values:R(a)}),(v.isDirty||v.dirtyFields||E.isDirty||E.dirtyFields)&&u.shouldDirty&&_.state.next({name:s,dirtyFields:ue(o,a),isDirty:F(s,f)})):h&&!h._f&&!z(f)?J(s,f,u):P(s,f,u),st(s,c)?_.state.next({...t,name:s,values:R(a)}):_.state.next({name:l.mount?s:void 0,values:R(a)})},le=async s=>{l.mount=!0;const n=s.target;let u=n.name,h=!0;const d=y(r,u),f=D=>{h=Number.isNaN(D)||ae(D)&&isNaN(D.getTime())||X(D,y(a,u,D))},g=tt(i.mode),k=tt(i.reValidateMode);if(d){let D,W;const ne=n.type?et(d._f):dt(s),ie=s.type===me.BLUR||s.type===me.FOCUS_OUT,St=!Kt(d._f)&&!i.resolver&&!y(t.errors,u)&&!d._f.deps||Yt(ie,y(t.touchedFields,u),t.isSubmitted,k,g),we=st(u,c,ie);C(a,u,ne),ie?(!n||!n.readOnly)&&(d._f.onBlur&&d._f.onBlur(s),x&&x(0)):d._f.onChange&&d._f.onChange(s);const Ee=$(u,ne,ie),Ot=!q(Ee)||we;if(!ie&&_.state.next({name:u,type:s.type,values:R(a)}),St)return(v.isValid||E.isValid)&&(i.mode==="onBlur"?ie&&N():ie||N()),Ot&&_.state.next({name:u,...we?{}:Ee});if(!ie&&we&&_.state.next({...t}),i.resolver){const{errors:Ze}=await re([u]);if(L([u]),f(ne),h){const Rt=it(t.errors,r,u),Ge=it(Ze,r,Rt.name||u);D=Ge.error,u=Ge.name,W=q(Ze)}}else L([u],!0),D=(await at(d,c.disabled,a,B,i.shouldUseNativeValidation))[u],L([u]),f(ne),h&&(D?W=!1:(v.isValid||E.isValid)&&(W=await Y(r,!0)));h&&(d._f.deps&&(!Array.isArray(d._f.deps)||d._f.deps.length>0)&&fe(d._f.deps),te(u,W,D,Ee))}},ce=(s,n)=>{if(y(t.errors,n)&&s.focus)return s.focus(),1},fe=async(s,n={})=>{let u,h;const d=ye(s);if(i.resolver){const f=await ee(O(s)?s:d);u=q(f),h=s?!d.some(g=>y(f,g)):u}else s?(h=(await Promise.all(d.map(async f=>{const g=y(r,f);return await Y(g&&g._f?{[f]:g}:g)}))).every(Boolean),!(!h&&!t.isValid)&&N()):h=u=await Y(r);return _.state.next({...!G(s)||(v.isValid||E.isValid)&&u!==t.isValid?{}:{name:s},...i.resolver||!s?{isValid:u}:{},errors:t.errors}),n.shouldFocus&&!h&&he(r,ce,s?d:c.mount),h},Pe=(s,n)=>{let u={...l.mount?a:o};return n&&(u=vt(n.dirtyFields?t.dirtyFields:t.touchedFields,u)),O(s)?u:G(s)?y(u,s):s.map(h=>y(u,h))},Be=(s,n)=>({invalid:!!y((n||t).errors,s),isDirty:!!y((n||t).dirtyFields,s),error:y((n||t).errors,s),isValidating:!!y(t.validatingFields,s),isTouched:!!y((n||t).touchedFields,s)}),At=s=>{const n=s?ye(s):void 0;n?.forEach(u=>p(t.errors,u)),n?n.forEach(u=>{_.state.next({name:u,errors:t.errors})}):_.state.next({errors:{}})},je=(s,n,u)=>{const h=(y(r,s,{_f:{}})._f||{}).ref,d=y(t.errors,s)||{},{ref:f,message:g,type:k,...D}=d;C(t.errors,s,{...D,...n,ref:h}),_.state.next({name:s,errors:t.errors,isValid:!1}),u&&u.shouldFocus&&h&&h.focus&&h.focus()},xt=(s,n)=>H(s)?_.state.subscribe({next:u=>"values"in u&&s(w(void 0,n),u)}):w(s,n,!0),We=s=>_.state.subscribe({next:n=>{Gt(s.name,n.name,s.exact)&&Zt(n,s.formState||v,Ct,s.reRenderRoot)&&s.callback({values:{...a},...t,...n,defaultValues:o})}}).unsubscribe,wt=s=>(l.mount=!0,E={...E,...s.formState},We({...s,formState:{...I,...s.formState}})),Fe=(s,n={})=>{for(const u of s?ye(s):c.mount)c.mount.delete(u),c.array.delete(u),n.keepValue||(p(r,u),p(a,u)),!n.keepError&&p(t.errors,u),!n.keepDirty&&p(t.dirtyFields,u),!n.keepTouched&&p(t.touchedFields,u),!n.keepIsValidating&&p(t.validatingFields,u),!i.shouldUnregister&&!n.keepDefaultValue&&p(o,u);_.state.next({values:R(a)}),_.state.next({...t,...n.keepDirty?{isDirty:F()}:{}}),!n.keepIsValid&&N()},qe=({disabled:s,name:n})=>{if(Z(s)&&l.mount||s||c.disabled.has(n)){const d=c.disabled.has(n)!==!!s;s?c.disabled.add(n):c.disabled.delete(n),d&&l.mount&&!l.action&&N()}},Ae=(s,n={})=>{let u=y(r,s);const h=Z(n.disabled)||Z(i.disabled);return C(r,s,{...u||{},_f:{...u&&u._f?u._f:{ref:{name:s}},name:s,mount:!0,...n}}),c.mount.add(s),u?qe({disabled:Z(n.disabled)?n.disabled:i.disabled,name:s}):A(s,!0,n.value),{...h?{disabled:n.disabled||i.disabled}:{},...i.progressive?{required:!!n.required,min:de(n.min),max:de(n.max),minLength:de(n.minLength),maxLength:de(n.maxLength),pattern:de(n.pattern)}:{},name:s,onChange:le,onBlur:le,ref:d=>{if(d){Ae(s,n),u=y(r,s);const f=O(d.value)&&d.querySelectorAll&&d.querySelectorAll("input,select,textarea")[0]||d,g=jt(f),k=u._f.refs||[];if(g?k.find(D=>D===f):f===u._f.ref)return;C(r,s,{_f:{...u._f,...g?{refs:[...k.filter(ke),f,...Array.isArray(y(o,s))?[{}]:[]],ref:{type:f.type,name:s}}:{ref:f}}}),A(s,!1,void 0,f)}else u=y(r,s,{}),u._f&&(u._f.mount=!1),(i.shouldUnregister||n.shouldUnregister)&&!(yt(c.array,s)&&l.action)&&c.unMount.add(s)}}},xe=()=>i.shouldFocusError&&he(r,ce,c.mount),Et=s=>{Z(s)&&(_.state.next({disabled:s}),he(r,(n,u)=>{const h=y(r,u);h&&(n.disabled=h._f.disabled||s,Array.isArray(h._f.refs)&&h._f.refs.forEach(d=>{d.disabled=h._f.disabled||s}))},0,!1))},He=(s,n)=>async u=>{let h;u&&(u.preventDefault&&u.preventDefault(),u.persist&&u.persist());let d=R(a);if(_.state.next({isSubmitting:!0}),i.resolver){const{errors:f,values:g}=await re();L(),t.errors=f,d=R(g)}else await Y(r);if(c.disabled.size)for(const f of c.disabled)p(d,f);if(p(t.errors,"root"),q(t.errors)){_.state.next({errors:{}});try{await s(d,u)}catch(f){h=f}}else n&&await n({...t.errors},u),xe(),setTimeout(xe);if(_.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:q(t.errors)&&!h,submitCount:t.submitCount+1,errors:t.errors}),h)throw h},kt=(s,n={})=>{y(r,s)&&(O(n.defaultValue)?K(s,R(y(o,s))):(K(s,n.defaultValue),C(o,s,R(n.defaultValue))),n.keepTouched||p(t.touchedFields,s),n.keepDirty||(p(t.dirtyFields,s),t.isDirty=n.defaultValue?F(s,R(y(o,s))):F()),n.keepError||(p(t.errors,s),v.isValid&&N()),_.state.next({...t}))},$e=(s,n={})=>{const u=s?R(s):o,h=R(u),d=q(s),f=d?o:h;if(n.keepDefaultValues||(o=u),!n.keepValues){if(n.keepDirtyValues){const g=new Set([...c.mount,...Object.keys(ue(o,a))]);for(const k of Array.from(g)){const D=y(t.dirtyFields,k),W=y(a,k),ne=y(f,k);D&&!O(W)?C(f,k,W):!D&&!O(ne)&&K(k,ne)}}else{if(Re&&O(s))for(const g of c.mount){const k=y(r,g);if(k&&k._f){const D=Array.isArray(k._f.refs)?k._f.refs[0]:k._f.ref;if(_e(D)){const W=D.closest("form");if(W){W.reset();break}}}}if(n.keepFieldsRef)for(const g of c.mount)K(g,y(f,g));else r={}}a=i.shouldUnregister?n.keepDefaultValues?R(o):{}:R(f),_.array.next({values:{...f}}),_.state.next({values:{...f}})}c={mount:n.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!v.isValid||!!n.keepIsValid||!!n.keepDirtyValues||!i.shouldUnregister&&!q(f),l.watch=!!i.shouldUnregister,l.keepIsValid=!!n.keepIsValid,l.action=!1,n.keepErrors||(t.errors={}),_.state.next({submitCount:n.keepSubmitCount?t.submitCount:0,isDirty:d?!1:n.keepDirty?t.isDirty:!!(n.keepDefaultValues&&!X(s,o)),isSubmitted:n.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:d?{}:n.keepDirtyValues?n.keepDefaultValues&&a?ue(o,a):t.dirtyFields:n.keepDefaultValues&&s?ue(o,s):n.keepDirty?t.dirtyFields:{},touchedFields:n.keepTouched?t.touchedFields:{},errors:n.keepErrors?t.errors:{},isSubmitSuccessful:n.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},ze=(s,n)=>$e(H(s)?s(a):s,{...i.resetOptions,...n}),Dt=(s,n={})=>{const u=y(r,s),h=u&&u._f;if(h){const d=h.refs?h.refs[0]:h.ref;d.focus&&setTimeout(()=>{d.focus(),n.shouldSelect&&H(d.select)&&d.select()})}},Ct=s=>{t={...t,...s}},Ke={control:{register:Ae,unregister:Fe,getFieldState:Be,handleSubmit:He,setError:je,_subscribe:We,_runSchema:re,_updateIsValidating:L,_focusError:xe,_getWatch:w,_getDirty:F,_setValid:N,_setFieldArray:b,_setDisabledField:qe,_setErrors:V,_getFieldArray:M,_reset:$e,_resetDefaultValues:()=>H(i.defaultValues)&&i.defaultValues().then(s=>{ze(s,i.resetOptions),_.state.next({isLoading:!1})}),_removeUnmounted:ve,_disableForm:Et,_subjects:_,_proxyFormState:v,get _fields(){return r},get _formValues(){return a},get _state(){return l},set _state(s){l=s},get _defaultValues(){return o},get _names(){return c},set _names(s){c=s},get _formState(){return t},get _options(){return i},set _options(s){i={...i,...s}}},subscribe:wt,trigger:fe,register:Ae,handleSubmit:He,watch:xt,setValue:K,getValues:Pe,reset:ze,resetField:kt,clearErrors:At,unregister:Fe,setError:je,setFocus:Dt,getFieldState:Be};return{...Ke,formControl:Ke}}function or(e={}){const i=m.useRef(void 0),t=m.useRef(void 0),[r,o]=m.useState({isDirty:!1,isValidating:!1,isLoading:H(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:H(e.defaultValues)?void 0:e.defaultValues});if(!i.current)if(e.formControl)i.current={...e.formControl,formState:r},e.defaultValues&&!H(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...c}=er(e);i.current={...c,formState:r}}const a=i.current.control;return a._options=e,Le(()=>{const l=a._subscribe({formState:a._proxyFormState,callback:()=>o({...a._formState}),reRenderRoot:!0});return o(c=>({...c,isReady:!0})),a._formState.isReady=!0,l},[a]),m.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),m.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),m.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),m.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),m.useEffect(()=>{if(a._proxyFormState.isDirty){const l=a._getDirty();l!==r.isDirty&&a._subjects.state.next({isDirty:l})}},[a,r.isDirty]),m.useEffect(()=>{var l;e.values&&!X(e.values,t.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),!((l=a._options.resetOptions)===null||l===void 0)&&l.keepIsValid||a._setValid(),t.current=e.values,o(c=>({...c}))):a._resetDefaultValues()},[a,e.values]),m.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),i.current.formState=m.useMemo(()=>gt(r,a),[a,r]),i.current}const ot=(e,i,t)=>{if(e&&"reportValidity"in e){const r=y(t,i);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Oe=(e,i)=>{for(const t in i.fields){const r=i.fields[t];r&&r.ref&&"reportValidity"in r.ref?ot(r.ref,t,e):r&&r.refs&&r.refs.forEach(o=>ot(o,t,e))}},ut=(e,i)=>{i.shouldUseNativeValidation&&Oe(e,i);const t={};for(const r in e){const o=y(i.fields,r),a=Object.assign(e[r]||{},{ref:o&&o.ref});if(tr(i.names||Object.keys(e),r)){const l=Object.assign({},y(t,r));C(l,"root",a),C(t,r,l)}else C(t,r,a)}return t},tr=(e,i)=>{const t=lt(i);return e.some(r=>lt(r).match(`^${t}\\.\\d+`))};function lt(e){return e.replace(/\]|\[/g,"")}function ct(e,i){try{var t=e()}catch(r){return i(r)}return t&&t.then?t.then(void 0,i):t}function rr(e,i){for(var t={};e.length;){var r=e[0],o=r.code,a=r.message,l=r.path.join(".");if(!t[l])if("unionErrors"in r){var c=r.unionErrors[0].errors[0];t[l]={message:c.message,type:c.code}}else t[l]={message:a,type:o};if("unionErrors"in r&&r.unionErrors.forEach(function(I){return I.errors.forEach(function(v){return e.push(v)})}),i){var x=t[l].types,S=x&&x[r.code];t[l]=Me(l,i,t,o,S?[].concat(S,r.message):r.message)}e.shift()}return t}function sr(e,i){for(var t={};e.length;){var r=e[0],o=r.code,a=r.message,l=r.path.join(".");if(!t[l])if(r.code==="invalid_union"&&r.errors.length>0){var c=r.errors[0][0];t[l]={message:c.message,type:c.code}}else t[l]={message:a,type:o};if(r.code==="invalid_union"&&r.errors.forEach(function(I){return I.forEach(function(v){return e.push(v)})}),i){var x=t[l].types,S=x&&x[r.code];t[l]=Me(l,i,t,o,S?[].concat(S,r.message):r.message)}e.shift()}return t}function ur(e,i,t){if(t===void 0&&(t={}),(function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def})(e))return function(r,o,a){try{return Promise.resolve(ct(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](r,i)).then(function(l){return a.shouldUseNativeValidation&&Oe({},a),{errors:{},values:t.raw?Object.assign({},r):l}})},function(l){if((function(c){return Array.isArray(c?.issues)})(l))return{values:{},errors:ut(rr(l.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw l}))}catch(l){return Promise.reject(l)}};if((function(r){return"_zod"in r&&typeof r._zod=="object"})(e))return function(r,o,a){try{return Promise.resolve(ct(function(){return Promise.resolve((t.mode==="sync"?pt:Ut)(e,r,i)).then(function(l){return a.shouldUseNativeValidation&&Oe({},a),{errors:{},values:t.raw?Object.assign({},r):l}})},function(l){if((function(c){return c instanceof Tt})(l))return{values:{},errors:ut(sr(l.issues,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw l}))}catch(l){return Promise.reject(l)}};throw new Error("Invalid input: not a Zod schema")}export{ar as C,ur as a,or as u}; diff --git a/hive/services/hiveui/frontend/package.json b/hive/services/hiveui/frontend/package.json index bd604d0a0..61073569c 100644 --- a/hive/services/hiveui/frontend/package.json +++ b/hive/services/hiveui/frontend/package.json @@ -13,35 +13,35 @@ "@aws-sdk/client-ec2": "^3.995.0", "@aws-sdk/client-s3": "^3.995.0", "@aws-sdk/lib-storage": "^3.995.0", - "@base-ui/react": "^1.1.0", + "@base-ui/react": "^1.2.0", "@fontsource-variable/geist": "^5.2.8", "@fontsource-variable/jetbrains-mono": "^5.2.8", "@hookform/resolvers": "^5.2.2", - "@tanstack/react-query": "^5.90.20", - "@tanstack/react-router": "^1.157.5", + "@tanstack/react-query": "^5.90.21", + "@tanstack/react-router": "^1.162.1", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", - "lucide-react": "^0.563.0", - "react": "^19.2.3", - "react-dom": "^19.2.3", - "react-hook-form": "^7.71.1", - "tailwind-merge": "^3.4.0", - "tailwindcss": "^4.1.18", + "lucide-react": "^0.575.0", + "react": "^19.2.4", + "react-dom": "^19.2.4", + "react-hook-form": "^7.71.2", + "tailwind-merge": "^3.5.0", + "tailwindcss": "^4.2.0", "zod": "^4.3.6" }, "devDependencies": { - "@biomejs/biome": "^2.3.12", - "@tailwindcss/vite": "^4.1.18", - "@tanstack/router-plugin": "^1.157.5", - "@types/node": "^24.10.9", - "@types/react": "^19.2.9", + "@biomejs/biome": "^2.4.4", + "@tailwindcss/vite": "^4.2.0", + "@tanstack/router-plugin": "^1.162.1", + "@types/node": "^24.10.13", + "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@vitejs/plugin-basic-ssl": "^2.1.4", - "@vitejs/plugin-react": "^5.1.2", + "@vitejs/plugin-react": "^5.1.4", "babel-plugin-react-compiler": "^1.0.0", "typescript": "^5.9.3", "ultracite": "^7.2.3", "vite": "^7.3.1" }, - "packageManager": "pnpm@10.28.0+sha512.05df71d1421f21399e053fde567cea34d446fa02c76571441bfc1c7956e98e363088982d940465fd34480d4d90a0668bc12362f8aa88000a64e83d0b0e47be48" + "packageManager": "pnpm@10.30.0+sha512.2b5753de015d480eeb88f5b5b61e0051f05b4301808a82ec8b840c9d2adf7748eb352c83f5c1593ca703ff1017295bc3fdd3119abb9686efc96b9fcb18200937" } diff --git a/hive/services/hiveui/frontend/pnpm-lock.yaml b/hive/services/hiveui/frontend/pnpm-lock.yaml index 804fb4f32..57647f1dd 100644 --- a/hive/services/hiveui/frontend/pnpm-lock.yaml +++ b/hive/services/hiveui/frontend/pnpm-lock.yaml @@ -18,7 +18,7 @@ importers: specifier: ^3.995.0 version: 3.995.0(@aws-sdk/client-s3@3.995.0) '@base-ui/react': - specifier: ^1.1.0 + specifier: ^1.2.0 version: 1.2.0(@types/react@19.2.14)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) '@fontsource-variable/geist': specifier: ^5.2.8 @@ -30,11 +30,11 @@ importers: specifier: ^5.2.2 version: 5.2.2(react-hook-form@7.71.2(react@19.2.4)) '@tanstack/react-query': - specifier: ^5.90.20 + specifier: ^5.90.21 version: 5.90.21(react@19.2.4) '@tanstack/react-router': - specifier: ^1.157.5 - version: 1.161.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + specifier: ^1.162.1 + version: 1.162.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4) class-variance-authority: specifier: ^0.7.1 version: 0.7.1 @@ -42,41 +42,41 @@ importers: specifier: ^2.1.1 version: 2.1.1 lucide-react: - specifier: ^0.563.0 - version: 0.563.0(react@19.2.4) + specifier: ^0.575.0 + version: 0.575.0(react@19.2.4) react: - specifier: ^19.2.3 + specifier: ^19.2.4 version: 19.2.4 react-dom: - specifier: ^19.2.3 + specifier: ^19.2.4 version: 19.2.4(react@19.2.4) react-hook-form: - specifier: ^7.71.1 + specifier: ^7.71.2 version: 7.71.2(react@19.2.4) tailwind-merge: - specifier: ^3.4.0 + specifier: ^3.5.0 version: 3.5.0 tailwindcss: - specifier: ^4.1.18 + specifier: ^4.2.0 version: 4.2.0 zod: specifier: ^4.3.6 version: 4.3.6 devDependencies: '@biomejs/biome': - specifier: ^2.3.12 + specifier: ^2.4.4 version: 2.4.4 '@tailwindcss/vite': - specifier: ^4.1.18 + specifier: ^4.2.0 version: 4.2.0(vite@7.3.1(@types/node@24.10.13)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) '@tanstack/router-plugin': - specifier: ^1.157.5 - version: 1.161.3(@tanstack/react-router@1.161.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@7.3.1(@types/node@24.10.13)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + specifier: ^1.162.1 + version: 1.162.1(@tanstack/react-router@1.162.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@7.3.1(@types/node@24.10.13)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) '@types/node': - specifier: ^24.10.9 + specifier: ^24.10.13 version: 24.10.13 '@types/react': - specifier: ^19.2.9 + specifier: ^19.2.14 version: 19.2.14 '@types/react-dom': specifier: ^19.2.3 @@ -85,7 +85,7 @@ importers: specifier: ^2.1.4 version: 2.1.4(vite@7.3.1(@types/node@24.10.13)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) '@vitejs/plugin-react': - specifier: ^5.1.2 + specifier: ^5.1.4 version: 5.1.4(vite@7.3.1(@types/node@24.10.13)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) babel-plugin-react-compiler: specifier: ^1.0.0 @@ -382,10 +382,6 @@ packages: resolution: {integrity: sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==} engines: {node: '>=6.9.0'} - '@babel/types@7.28.6': - resolution: {integrity: sha512-0ZrskXVEHSWIqZM/sQZ4EV3jZJXRkio/WCxaqKZP1g//CEWEPSfeZFcms4XeKBCHU0ZKnIkdJeU/kF+eRp5lBg==} - engines: {node: '>=6.9.0'} - '@babel/types@7.29.0': resolution: {integrity: sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==} engines: {node: '>=6.9.0'} @@ -474,312 +470,156 @@ packages: '@clack/prompts@1.0.1': resolution: {integrity: sha512-/42G73JkuYdyWZ6m8d/CJtBrGl1Hegyc7Fy78m5Ob+jF85TOUmLR5XLce/U3LxYAw0kJ8CT5aI99RIvPHcGp/Q==} - '@esbuild/aix-ppc64@0.27.2': - resolution: {integrity: sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [aix] - '@esbuild/aix-ppc64@0.27.3': resolution: {integrity: sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==} engines: {node: '>=18'} cpu: [ppc64] os: [aix] - '@esbuild/android-arm64@0.27.2': - resolution: {integrity: sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==} - engines: {node: '>=18'} - cpu: [arm64] - os: [android] - '@esbuild/android-arm64@0.27.3': resolution: {integrity: sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==} engines: {node: '>=18'} cpu: [arm64] os: [android] - '@esbuild/android-arm@0.27.2': - resolution: {integrity: sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==} - engines: {node: '>=18'} - cpu: [arm] - os: [android] - '@esbuild/android-arm@0.27.3': resolution: {integrity: sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==} engines: {node: '>=18'} cpu: [arm] os: [android] - '@esbuild/android-x64@0.27.2': - resolution: {integrity: sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==} - engines: {node: '>=18'} - cpu: [x64] - os: [android] - '@esbuild/android-x64@0.27.3': resolution: {integrity: sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==} engines: {node: '>=18'} cpu: [x64] os: [android] - '@esbuild/darwin-arm64@0.27.2': - resolution: {integrity: sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==} - engines: {node: '>=18'} - cpu: [arm64] - os: [darwin] - '@esbuild/darwin-arm64@0.27.3': resolution: {integrity: sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==} engines: {node: '>=18'} cpu: [arm64] os: [darwin] - '@esbuild/darwin-x64@0.27.2': - resolution: {integrity: sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==} - engines: {node: '>=18'} - cpu: [x64] - os: [darwin] - '@esbuild/darwin-x64@0.27.3': resolution: {integrity: sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==} engines: {node: '>=18'} cpu: [x64] os: [darwin] - '@esbuild/freebsd-arm64@0.27.2': - resolution: {integrity: sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==} - engines: {node: '>=18'} - cpu: [arm64] - os: [freebsd] - '@esbuild/freebsd-arm64@0.27.3': resolution: {integrity: sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==} engines: {node: '>=18'} cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-x64@0.27.2': - resolution: {integrity: sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==} - engines: {node: '>=18'} - cpu: [x64] - os: [freebsd] - '@esbuild/freebsd-x64@0.27.3': resolution: {integrity: sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==} engines: {node: '>=18'} cpu: [x64] os: [freebsd] - '@esbuild/linux-arm64@0.27.2': - resolution: {integrity: sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==} - engines: {node: '>=18'} - cpu: [arm64] - os: [linux] - '@esbuild/linux-arm64@0.27.3': resolution: {integrity: sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==} engines: {node: '>=18'} cpu: [arm64] os: [linux] - '@esbuild/linux-arm@0.27.2': - resolution: {integrity: sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==} - engines: {node: '>=18'} - cpu: [arm] - os: [linux] - '@esbuild/linux-arm@0.27.3': resolution: {integrity: sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==} engines: {node: '>=18'} cpu: [arm] os: [linux] - '@esbuild/linux-ia32@0.27.2': - resolution: {integrity: sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==} - engines: {node: '>=18'} - cpu: [ia32] - os: [linux] - '@esbuild/linux-ia32@0.27.3': resolution: {integrity: sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==} engines: {node: '>=18'} cpu: [ia32] os: [linux] - '@esbuild/linux-loong64@0.27.2': - resolution: {integrity: sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==} - engines: {node: '>=18'} - cpu: [loong64] - os: [linux] - '@esbuild/linux-loong64@0.27.3': resolution: {integrity: sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==} engines: {node: '>=18'} cpu: [loong64] os: [linux] - '@esbuild/linux-mips64el@0.27.2': - resolution: {integrity: sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==} - engines: {node: '>=18'} - cpu: [mips64el] - os: [linux] - '@esbuild/linux-mips64el@0.27.3': resolution: {integrity: sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==} engines: {node: '>=18'} cpu: [mips64el] os: [linux] - '@esbuild/linux-ppc64@0.27.2': - resolution: {integrity: sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [linux] - '@esbuild/linux-ppc64@0.27.3': resolution: {integrity: sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==} engines: {node: '>=18'} cpu: [ppc64] os: [linux] - '@esbuild/linux-riscv64@0.27.2': - resolution: {integrity: sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==} - engines: {node: '>=18'} - cpu: [riscv64] - os: [linux] - '@esbuild/linux-riscv64@0.27.3': resolution: {integrity: sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==} engines: {node: '>=18'} cpu: [riscv64] os: [linux] - '@esbuild/linux-s390x@0.27.2': - resolution: {integrity: sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==} - engines: {node: '>=18'} - cpu: [s390x] - os: [linux] - '@esbuild/linux-s390x@0.27.3': resolution: {integrity: sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==} engines: {node: '>=18'} cpu: [s390x] os: [linux] - '@esbuild/linux-x64@0.27.2': - resolution: {integrity: sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==} - engines: {node: '>=18'} - cpu: [x64] - os: [linux] - '@esbuild/linux-x64@0.27.3': resolution: {integrity: sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==} engines: {node: '>=18'} cpu: [x64] os: [linux] - '@esbuild/netbsd-arm64@0.27.2': - resolution: {integrity: sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==} - engines: {node: '>=18'} - cpu: [arm64] - os: [netbsd] - '@esbuild/netbsd-arm64@0.27.3': resolution: {integrity: sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==} engines: {node: '>=18'} cpu: [arm64] os: [netbsd] - '@esbuild/netbsd-x64@0.27.2': - resolution: {integrity: sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==} - engines: {node: '>=18'} - cpu: [x64] - os: [netbsd] - '@esbuild/netbsd-x64@0.27.3': resolution: {integrity: sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==} engines: {node: '>=18'} cpu: [x64] os: [netbsd] - '@esbuild/openbsd-arm64@0.27.2': - resolution: {integrity: sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==} - engines: {node: '>=18'} - cpu: [arm64] - os: [openbsd] - '@esbuild/openbsd-arm64@0.27.3': resolution: {integrity: sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==} engines: {node: '>=18'} cpu: [arm64] os: [openbsd] - '@esbuild/openbsd-x64@0.27.2': - resolution: {integrity: sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==} - engines: {node: '>=18'} - cpu: [x64] - os: [openbsd] - '@esbuild/openbsd-x64@0.27.3': resolution: {integrity: sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==} engines: {node: '>=18'} cpu: [x64] os: [openbsd] - '@esbuild/openharmony-arm64@0.27.2': - resolution: {integrity: sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==} - engines: {node: '>=18'} - cpu: [arm64] - os: [openharmony] - '@esbuild/openharmony-arm64@0.27.3': resolution: {integrity: sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==} engines: {node: '>=18'} cpu: [arm64] os: [openharmony] - '@esbuild/sunos-x64@0.27.2': - resolution: {integrity: sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==} - engines: {node: '>=18'} - cpu: [x64] - os: [sunos] - '@esbuild/sunos-x64@0.27.3': resolution: {integrity: sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==} engines: {node: '>=18'} cpu: [x64] os: [sunos] - '@esbuild/win32-arm64@0.27.2': - resolution: {integrity: sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==} - engines: {node: '>=18'} - cpu: [arm64] - os: [win32] - '@esbuild/win32-arm64@0.27.3': resolution: {integrity: sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==} engines: {node: '>=18'} cpu: [arm64] os: [win32] - '@esbuild/win32-ia32@0.27.2': - resolution: {integrity: sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==} - engines: {node: '>=18'} - cpu: [ia32] - os: [win32] - '@esbuild/win32-ia32@0.27.3': resolution: {integrity: sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==} engines: {node: '>=18'} cpu: [ia32] os: [win32] - '@esbuild/win32-x64@0.27.2': - resolution: {integrity: sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [win32] - '@esbuild/win32-x64@0.27.3': resolution: {integrity: sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==} engines: {node: '>=18'} @@ -831,141 +671,141 @@ packages: '@rolldown/pluginutils@1.0.0-rc.3': resolution: {integrity: sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==} - '@rollup/rollup-android-arm-eabi@4.55.2': - resolution: {integrity: sha512-21J6xzayjy3O6NdnlO6aXi/urvSRjm6nCI6+nF6ra2YofKruGixN9kfT+dt55HVNwfDmpDHJcaS3JuP/boNnlA==} + '@rollup/rollup-android-arm-eabi@4.58.0': + resolution: {integrity: sha512-mr0tmS/4FoVk1cnaeN244A/wjvGDNItZKR8hRhnmCzygyRXYtKF5jVDSIILR1U97CTzAYmbgIj/Dukg62ggG5w==} cpu: [arm] os: [android] - '@rollup/rollup-android-arm64@4.55.2': - resolution: {integrity: sha512-eXBg7ibkNUZ+sTwbFiDKou0BAckeV6kIigK7y5Ko4mB/5A1KLhuzEKovsmfvsL8mQorkoincMFGnQuIT92SKqA==} + '@rollup/rollup-android-arm64@4.58.0': + resolution: {integrity: sha512-+s++dbp+/RTte62mQD9wLSbiMTV+xr/PeRJEc/sFZFSBRlHPNPVaf5FXlzAL77Mr8FtSfQqCN+I598M8U41ccQ==} cpu: [arm64] os: [android] - '@rollup/rollup-darwin-arm64@4.55.2': - resolution: {integrity: sha512-UCbaTklREjrc5U47ypLulAgg4njaqfOVLU18VrCrI+6E5MQjuG0lSWaqLlAJwsD7NpFV249XgB0Bi37Zh5Sz4g==} + '@rollup/rollup-darwin-arm64@4.58.0': + resolution: {integrity: sha512-MFWBwTcYs0jZbINQBXHfSrpSQJq3IUOakcKPzfeSznONop14Pxuqa0Kg19GD0rNBMPQI2tFtu3UzapZpH0Uc1Q==} cpu: [arm64] os: [darwin] - '@rollup/rollup-darwin-x64@4.55.2': - resolution: {integrity: sha512-dP67MA0cCMHFT2g5XyjtpVOtp7y4UyUxN3dhLdt11at5cPKnSm4lY+EhwNvDXIMzAMIo2KU+mc9wxaAQJTn7sQ==} + '@rollup/rollup-darwin-x64@4.58.0': + resolution: {integrity: sha512-yiKJY7pj9c9JwzuKYLFaDZw5gma3fI9bkPEIyofvVfsPqjCWPglSHdpdwXpKGvDeYDms3Qal8qGMEHZ1M/4Udg==} cpu: [x64] os: [darwin] - '@rollup/rollup-freebsd-arm64@4.55.2': - resolution: {integrity: sha512-WDUPLUwfYV9G1yxNRJdXcvISW15mpvod1Wv3ok+Ws93w1HjIVmCIFxsG2DquO+3usMNCpJQ0wqO+3GhFdl6Fow==} + '@rollup/rollup-freebsd-arm64@4.58.0': + resolution: {integrity: sha512-x97kCoBh5MOevpn/CNK9W1x8BEzO238541BGWBc315uOlN0AD/ifZ1msg+ZQB05Ux+VF6EcYqpiagfLJ8U3LvQ==} cpu: [arm64] os: [freebsd] - '@rollup/rollup-freebsd-x64@4.55.2': - resolution: {integrity: sha512-Ng95wtHVEulRwn7R0tMrlUuiLVL/HXA8Lt/MYVpy88+s5ikpntzZba1qEulTuPnPIZuOPcW9wNEiqvZxZmgmqQ==} + '@rollup/rollup-freebsd-x64@4.58.0': + resolution: {integrity: sha512-Aa8jPoZ6IQAG2eIrcXPpjRcMjROMFxCt1UYPZZtCxRV68WkuSigYtQ/7Zwrcr2IvtNJo7T2JfDXyMLxq5L4Jlg==} cpu: [x64] os: [freebsd] - '@rollup/rollup-linux-arm-gnueabihf@4.55.2': - resolution: {integrity: sha512-AEXMESUDWWGqD6LwO/HkqCZgUE1VCJ1OhbvYGsfqX2Y6w5quSXuyoy/Fg3nRqiwro+cJYFxiw5v4kB2ZDLhxrw==} + '@rollup/rollup-linux-arm-gnueabihf@4.58.0': + resolution: {integrity: sha512-Ob8YgT5kD/lSIYW2Rcngs5kNB/44Q2RzBSPz9brf2WEtcGR7/f/E9HeHn1wYaAwKBni+bdXEwgHvUd0x12lQSA==} cpu: [arm] os: [linux] libc: [glibc] - '@rollup/rollup-linux-arm-musleabihf@4.55.2': - resolution: {integrity: sha512-ZV7EljjBDwBBBSv570VWj0hiNTdHt9uGznDtznBB4Caj3ch5rgD4I2K1GQrtbvJ/QiB+663lLgOdcADMNVC29Q==} + '@rollup/rollup-linux-arm-musleabihf@4.58.0': + resolution: {integrity: sha512-K+RI5oP1ceqoadvNt1FecL17Qtw/n9BgRSzxif3rTL2QlIu88ccvY+Y9nnHe/cmT5zbH9+bpiJuG1mGHRVwF4Q==} cpu: [arm] os: [linux] libc: [musl] - '@rollup/rollup-linux-arm64-gnu@4.55.2': - resolution: {integrity: sha512-uvjwc8NtQVPAJtq4Tt7Q49FOodjfbf6NpqXyW/rjXoV+iZ3EJAHLNAnKT5UJBc6ffQVgmXTUL2ifYiLABlGFqA==} + '@rollup/rollup-linux-arm64-gnu@4.58.0': + resolution: {integrity: sha512-T+17JAsCKUjmbopcKepJjHWHXSjeW7O5PL7lEFaeQmiVyw4kkc5/lyYKzrv6ElWRX/MrEWfPiJWqbTvfIvjM1Q==} cpu: [arm64] os: [linux] libc: [glibc] - '@rollup/rollup-linux-arm64-musl@4.55.2': - resolution: {integrity: sha512-s3KoWVNnye9mm/2WpOZ3JeUiediUVw6AvY/H7jNA6qgKA2V2aM25lMkVarTDfiicn/DLq3O0a81jncXszoyCFA==} + '@rollup/rollup-linux-arm64-musl@4.58.0': + resolution: {integrity: sha512-cCePktb9+6R9itIJdeCFF9txPU7pQeEHB5AbHu/MKsfH/k70ZtOeq1k4YAtBv9Z7mmKI5/wOLYjQ+B9QdxR6LA==} cpu: [arm64] os: [linux] libc: [musl] - '@rollup/rollup-linux-loong64-gnu@4.55.2': - resolution: {integrity: sha512-gi21faacK+J8aVSyAUptML9VQN26JRxe484IbF+h3hpG+sNVoMXPduhREz2CcYr5my0NE3MjVvQ5bMKX71pfVA==} + '@rollup/rollup-linux-loong64-gnu@4.58.0': + resolution: {integrity: sha512-iekUaLkfliAsDl4/xSdoCJ1gnnIXvoNz85C8U8+ZxknM5pBStfZjeXgB8lXobDQvvPRCN8FPmmuTtH+z95HTmg==} cpu: [loong64] os: [linux] libc: [glibc] - '@rollup/rollup-linux-loong64-musl@4.55.2': - resolution: {integrity: sha512-qSlWiXnVaS/ceqXNfnoFZh4IiCA0EwvCivivTGbEu1qv2o+WTHpn1zNmCTAoOG5QaVr2/yhCoLScQtc/7RxshA==} + '@rollup/rollup-linux-loong64-musl@4.58.0': + resolution: {integrity: sha512-68ofRgJNl/jYJbxFjCKE7IwhbfxOl1muPN4KbIqAIe32lm22KmU7E8OPvyy68HTNkI2iV/c8y2kSPSm2mW/Q9Q==} cpu: [loong64] os: [linux] libc: [musl] - '@rollup/rollup-linux-ppc64-gnu@4.55.2': - resolution: {integrity: sha512-rPyuLFNoF1B0+wolH277E780NUKf+KoEDb3OyoLbAO18BbeKi++YN6gC/zuJoPPDlQRL3fIxHxCxVEWiem2yXw==} + '@rollup/rollup-linux-ppc64-gnu@4.58.0': + resolution: {integrity: sha512-dpz8vT0i+JqUKuSNPCP5SYyIV2Lh0sNL1+FhM7eLC457d5B9/BC3kDPp5BBftMmTNsBarcPcoz5UGSsnCiw4XQ==} cpu: [ppc64] os: [linux] libc: [glibc] - '@rollup/rollup-linux-ppc64-musl@4.55.2': - resolution: {integrity: sha512-g+0ZLMook31iWV4PvqKU0i9E78gaZgYpSrYPed/4Bu+nGTgfOPtfs1h11tSSRPXSjC5EzLTjV/1A7L2Vr8pJoQ==} + '@rollup/rollup-linux-ppc64-musl@4.58.0': + resolution: {integrity: sha512-4gdkkf9UJ7tafnweBCR/mk4jf3Jfl0cKX9Np80t5i78kjIH0ZdezUv/JDI2VtruE5lunfACqftJ8dIMGN4oHew==} cpu: [ppc64] os: [linux] libc: [musl] - '@rollup/rollup-linux-riscv64-gnu@4.55.2': - resolution: {integrity: sha512-i+sGeRGsjKZcQRh3BRfpLsM3LX3bi4AoEVqmGDyc50L6KfYsN45wVCSz70iQMwPWr3E5opSiLOwsC9WB4/1pqg==} + '@rollup/rollup-linux-riscv64-gnu@4.58.0': + resolution: {integrity: sha512-YFS4vPnOkDTD/JriUeeZurFYoJhPf9GQQEF/v4lltp3mVcBmnsAdjEWhr2cjUCZzZNzxCG0HZOvJU44UGHSdzw==} cpu: [riscv64] os: [linux] libc: [glibc] - '@rollup/rollup-linux-riscv64-musl@4.55.2': - resolution: {integrity: sha512-C1vLcKc4MfFV6I0aWsC7B2Y9QcsiEcvKkfxprwkPfLaN8hQf0/fKHwSF2lcYzA9g4imqnhic729VB9Fo70HO3Q==} + '@rollup/rollup-linux-riscv64-musl@4.58.0': + resolution: {integrity: sha512-x2xgZlFne+QVNKV8b4wwaCS8pwq3y14zedZ5DqLzjdRITvreBk//4Knbcvm7+lWmms9V9qFp60MtUd0/t/PXPw==} cpu: [riscv64] os: [linux] libc: [musl] - '@rollup/rollup-linux-s390x-gnu@4.55.2': - resolution: {integrity: sha512-68gHUK/howpQjh7g7hlD9DvTTt4sNLp1Bb+Yzw2Ki0xvscm2cOdCLZNJNhd2jW8lsTPrHAHuF751BygifW4bkQ==} + '@rollup/rollup-linux-s390x-gnu@4.58.0': + resolution: {integrity: sha512-jIhrujyn4UnWF8S+DHSkAkDEO3hLX0cjzxJZPLF80xFyzyUIYgSMRcYQ3+uqEoyDD2beGq7Dj7edi8OnJcS/hg==} cpu: [s390x] os: [linux] libc: [glibc] - '@rollup/rollup-linux-x64-gnu@4.55.2': - resolution: {integrity: sha512-1e30XAuaBP1MAizaOBApsgeGZge2/Byd6wV4a8oa6jPdHELbRHBiw7wvo4dp7Ie2PE8TZT4pj9RLGZv9N4qwlw==} + '@rollup/rollup-linux-x64-gnu@4.58.0': + resolution: {integrity: sha512-+410Srdoh78MKSJxTQ+hZ/Mx+ajd6RjjPwBPNd0R3J9FtL6ZA0GqiiyNjCO9In0IzZkCNrpGymSfn+kgyPQocg==} cpu: [x64] os: [linux] libc: [glibc] - '@rollup/rollup-linux-x64-musl@4.55.2': - resolution: {integrity: sha512-4BJucJBGbuGnH6q7kpPqGJGzZnYrpAzRd60HQSt3OpX/6/YVgSsJnNzR8Ot74io50SeVT4CtCWe/RYIAymFPwA==} + '@rollup/rollup-linux-x64-musl@4.58.0': + resolution: {integrity: sha512-ZjMyby5SICi227y1MTR3VYBpFTdZs823Rs/hpakufleBoufoOIB6jtm9FEoxn/cgO7l6PM2rCEl5Kre5vX0QrQ==} cpu: [x64] os: [linux] libc: [musl] - '@rollup/rollup-openbsd-x64@4.55.2': - resolution: {integrity: sha512-cT2MmXySMo58ENv8p6/O6wI/h/gLnD3D6JoajwXFZH6X9jz4hARqUhWpGuQhOgLNXscfZYRQMJvZDtWNzMAIDw==} + '@rollup/rollup-openbsd-x64@4.58.0': + resolution: {integrity: sha512-ds4iwfYkSQ0k1nb8LTcyXw//ToHOnNTJtceySpL3fa7tc/AsE+UpUFphW126A6fKBGJD5dhRvg8zw1rvoGFxmw==} cpu: [x64] os: [openbsd] - '@rollup/rollup-openharmony-arm64@4.55.2': - resolution: {integrity: sha512-sZnyUgGkuzIXaK3jNMPmUIyJrxu/PjmATQrocpGA1WbCPX8H5tfGgRSuYtqBYAvLuIGp8SPRb1O4d1Fkb5fXaQ==} + '@rollup/rollup-openharmony-arm64@4.58.0': + resolution: {integrity: sha512-fd/zpJniln4ICdPkjWFhZYeY/bpnaN9pGa6ko+5WD38I0tTqk9lXMgXZg09MNdhpARngmxiCg0B0XUamNw/5BQ==} cpu: [arm64] os: [openharmony] - '@rollup/rollup-win32-arm64-msvc@4.55.2': - resolution: {integrity: sha512-sDpFbenhmWjNcEbBcoTV0PWvW5rPJFvu+P7XoTY0YLGRupgLbFY0XPfwIbJOObzO7QgkRDANh65RjhPmgSaAjQ==} + '@rollup/rollup-win32-arm64-msvc@4.58.0': + resolution: {integrity: sha512-YpG8dUOip7DCz3nr/JUfPbIUo+2d/dy++5bFzgi4ugOGBIox+qMbbqt/JoORwvI/C9Kn2tz6+Bieoqd5+B1CjA==} cpu: [arm64] os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.55.2': - resolution: {integrity: sha512-GvJ03TqqaweWCigtKQVBErw2bEhu1tyfNQbarwr94wCGnczA9HF8wqEe3U/Lfu6EdeNP0p6R+APeHVwEqVxpUQ==} + '@rollup/rollup-win32-ia32-msvc@4.58.0': + resolution: {integrity: sha512-b9DI8jpFQVh4hIXFr0/+N/TzLdpBIoPzjt0Rt4xJbW3mzguV3mduR9cNgiuFcuL/TeORejJhCWiAXe3E/6PxWA==} cpu: [ia32] os: [win32] - '@rollup/rollup-win32-x64-gnu@4.55.2': - resolution: {integrity: sha512-KvXsBvp13oZz9JGe5NYS7FNizLe99Ny+W8ETsuCyjXiKdiGrcz2/J/N8qxZ/RSwivqjQguug07NLHqrIHrqfYw==} + '@rollup/rollup-win32-x64-gnu@4.58.0': + resolution: {integrity: sha512-CSrVpmoRJFN06LL9xhkitkwUcTZtIotYAF5p6XOR2zW0Zz5mzb3IPpcoPhB02frzMHFNo1reQ9xSF5fFm3hUsQ==} cpu: [x64] os: [win32] - '@rollup/rollup-win32-x64-msvc@4.55.2': - resolution: {integrity: sha512-xNO+fksQhsAckRtDSPWaMeT1uIM+JrDRXlerpnWNXhn1TdB3YZ6uKBMBTKP0eX9XtYEP978hHk1f8332i2AW8Q==} + '@rollup/rollup-win32-x64-msvc@4.58.0': + resolution: {integrity: sha512-QFsBgQNTnh5K0t/sBsjJLq24YVqEIVkGpfN2VHsnN90soZyhaiA9UUHufcctVNL4ypJY0wrwad0wslx2KJQ1/w==} cpu: [x64] os: [win32] @@ -1282,9 +1122,9 @@ packages: peerDependencies: vite: ^5.2.0 || ^6 || ^7 - '@tanstack/history@1.154.14': - resolution: {integrity: sha512-xyIfof8eHBuub1CkBnbKNKQXeRZC4dClhmzePHVOEel4G7lk/dW+TQ16da7CFdeNLv6u6Owf5VoBQxoo6DFTSA==} - engines: {node: '>=12'} + '@tanstack/history@1.161.4': + resolution: {integrity: sha512-Kp/WSt411ZWYvgXy6uiv5RmhHrz9cAml05AQPrtdAp7eUqvIDbMGPnML25OKbzR3RJ1q4wgENxDTvlGPa9+Mww==} + engines: {node: '>=20.19'} '@tanstack/query-core@5.90.20': resolution: {integrity: sha512-OMD2HLpNouXEfZJWcKeVKUgQ5n+n3A2JFmBaScpNDUqSrQSjiveC7dKMe53uJUg1nDG16ttFPz2xfilz6i2uVg==} @@ -1294,9 +1134,9 @@ packages: peerDependencies: react: ^18 || ^19 - '@tanstack/react-router@1.161.3': - resolution: {integrity: sha512-evYPrkuFt4T6E0WVyBGGq83lWHJjsYy3E5SpPpfPY/uRnEgmgwfr6Xl570msRnWYMj7DIkYg8ZWFFwzqKrSlBw==} - engines: {node: '>=12'} + '@tanstack/react-router@1.162.1': + resolution: {integrity: sha512-HF2uSWqLqENWNH7vn+qnz1QY9ZrVunwLNUO57Lonvq5X20tziN/AK5p3z0A4zExej9I5SgEcG6Z/eaIv7aGhPA==} + engines: {node: '>=20.19'} peerDependencies: react: '>=18.0.0 || >=19.0.0' react-dom: '>=18.0.0 || >=19.0.0' @@ -1307,20 +1147,20 @@ packages: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - '@tanstack/router-core@1.161.3': - resolution: {integrity: sha512-8EuaGXLUjugQE9Rsb8VrWSy+wImcs/DZ9JORqUJYCmiiWnJzbat8KedQItq/9LCjMJyx4vTLCt8NnZCL+j1Ayg==} - engines: {node: '>=12'} + '@tanstack/router-core@1.162.1': + resolution: {integrity: sha512-zq/ePd7UhWE1NkY4DZJ/a//2O+yiwOxkCqbFF+v++twnQUsKkTUepUln30S9yrPcnZFe76PlHnIzZSl5UeKm9w==} + engines: {node: '>=20.19'} - '@tanstack/router-generator@1.161.3': - resolution: {integrity: sha512-GKOrsOu7u5aoK1+lRu6KUUOmbb42mYF2ezfXf27QMiBjMx/yDHXln8wmdR7ZQ+FdSGz2YVubt2Ns3KuFsDsZJg==} - engines: {node: '>=12'} + '@tanstack/router-generator@1.162.1': + resolution: {integrity: sha512-64NCZBR8QnhiwJRMtF2HOmoLsf4SgLubkzOIYasmJXJ2he24g8/hNNUY5ofhe2pGER74GVASrtOF3SSYCndaKw==} + engines: {node: '>=20.19'} - '@tanstack/router-plugin@1.161.3': - resolution: {integrity: sha512-3Uy4AxgHNYjmCGf2WYWB8Gy3C6m0YE5DV1SK2p3yUrA/PhCMYRe+xzjyD5pViMUSLUoPHQYGY6bOIM9OOPRI/Q==} - engines: {node: '>=12'} + '@tanstack/router-plugin@1.162.1': + resolution: {integrity: sha512-Rmuu3InFdPaDbv1vds53jZv+l6iqmFBttDb0HHXrG+/ECIk4y5oXG8mnpvt9vo8BMfy4KRCrylYuxueL1eAMRQ==} + engines: {node: '>=20.19'} peerDependencies: '@rsbuild/core': '>=1.0.2' - '@tanstack/react-router': ^1.161.3 + '@tanstack/react-router': ^1.162.1 vite: '>=5.0.0 || >=6.0.0 || >=7.0.0' vite-plugin-solid: ^2.11.10 webpack: '>=5.92.0' @@ -1336,16 +1176,16 @@ packages: webpack: optional: true - '@tanstack/router-utils@1.158.0': - resolution: {integrity: sha512-qZ76eaLKU6Ae9iI/mc5zizBX149DXXZkBVVO3/QRIll79uKLJZHQlMKR++2ba7JsciBWz1pgpIBcCJPE9S0LVg==} - engines: {node: '>=12'} + '@tanstack/router-utils@1.161.4': + resolution: {integrity: sha512-r8TpjyIZoqrXXaf2DDyjd44gjGBoyE+/oEaaH68yLI9ySPO1gUWmQENZ1MZnmBnpUGN24NOZxdjDLc8npK0SAw==} + engines: {node: '>=20.19'} '@tanstack/store@0.9.1': resolution: {integrity: sha512-+qcNkOy0N1qSGsP7omVCW0SDrXtaDcycPqBDE726yryiA5eTDFpjBReaYjghVJwNf1pcPMyzIwTGlYjCSQR0Fg==} - '@tanstack/virtual-file-routes@1.154.7': - resolution: {integrity: sha512-cHHDnewHozgjpI+MIVp9tcib6lYEQK5MyUr0ChHpHFGBl8Xei55rohFK0I0ve/GKoHeioaK42Smd8OixPp6CTg==} - engines: {node: '>=12'} + '@tanstack/virtual-file-routes@1.161.4': + resolution: {integrity: sha512-42WoRePf8v690qG8yGRe/YOh+oHni9vUaUUfoqlS91U2scd3a5rkLtVsc6b7z60w3RogH0I00vdrC5AaeiZ18w==} + engines: {node: '>=20.19'} '@types/babel__core@7.20.5': resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} @@ -1501,11 +1341,6 @@ packages: resolution: {integrity: sha512-phv3E1Xl4tQOShqSte26C7Fl84EwUdZsyOuSSk9qtAGyyQs2s3jJzComh+Abf4g187lUUAvH+H26omrqia2aGg==} engines: {node: '>=10.13.0'} - esbuild@0.27.2: - resolution: {integrity: sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==} - engines: {node: '>=18'} - hasBin: true - esbuild@0.27.3: resolution: {integrity: sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==} engines: {node: '>=18'} @@ -1691,8 +1526,8 @@ packages: lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} - lucide-react@0.563.0: - resolution: {integrity: sha512-8dXPB2GI4dI8jV4MgUDGBeLdGk8ekfqVZ0BdLcrRzocGgG75ltNEmWS+gE7uokKF/0oSUuczNDT+g9hFJ23FkA==} + lucide-react@0.575.0: + resolution: {integrity: sha512-VuXgKZrk0uiDlWjGGXmKV6MSk9Yy4l10qgVvzGn2AWBx1Ylt0iBexKOAoA6I7JO3m+M9oeovJd3yYENfkUbOeg==} peerDependencies: react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0 @@ -1791,8 +1626,8 @@ packages: resolve-pkg-maps@1.0.0: resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} - rollup@4.55.2: - resolution: {integrity: sha512-PggGy4dhwx5qaW+CKBilA/98Ql9keyfnb7lh4SR6shQ91QQQi1ORJ1v4UinkdP2i87OBs9AQFooQylcrrRfIcg==} + rollup@4.58.0: + resolution: {integrity: sha512-wbT0mBmWbIvvq8NeEYWWvevvxnOyhKChir47S66WCxw1SXqhw7ssIYejnQEVt7XYQpsj2y8F9PM+Cr3SNEa0gw==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true @@ -2655,11 +2490,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/types@7.28.6': - dependencies: - '@babel/helper-string-parser': 7.27.1 - '@babel/helper-validator-identifier': 7.28.5 - '@babel/types@7.29.0': dependencies: '@babel/helper-string-parser': 7.27.1 @@ -2735,159 +2565,81 @@ snapshots: picocolors: 1.1.1 sisteransi: 1.0.5 - '@esbuild/aix-ppc64@0.27.2': - optional: true - '@esbuild/aix-ppc64@0.27.3': optional: true - '@esbuild/android-arm64@0.27.2': - optional: true - '@esbuild/android-arm64@0.27.3': optional: true - '@esbuild/android-arm@0.27.2': - optional: true - '@esbuild/android-arm@0.27.3': optional: true - '@esbuild/android-x64@0.27.2': - optional: true - '@esbuild/android-x64@0.27.3': optional: true - '@esbuild/darwin-arm64@0.27.2': - optional: true - '@esbuild/darwin-arm64@0.27.3': optional: true - '@esbuild/darwin-x64@0.27.2': - optional: true - '@esbuild/darwin-x64@0.27.3': optional: true - '@esbuild/freebsd-arm64@0.27.2': - optional: true - '@esbuild/freebsd-arm64@0.27.3': optional: true - '@esbuild/freebsd-x64@0.27.2': - optional: true - '@esbuild/freebsd-x64@0.27.3': optional: true - '@esbuild/linux-arm64@0.27.2': - optional: true - '@esbuild/linux-arm64@0.27.3': optional: true - '@esbuild/linux-arm@0.27.2': - optional: true - '@esbuild/linux-arm@0.27.3': optional: true - '@esbuild/linux-ia32@0.27.2': - optional: true - '@esbuild/linux-ia32@0.27.3': optional: true - '@esbuild/linux-loong64@0.27.2': - optional: true - '@esbuild/linux-loong64@0.27.3': optional: true - '@esbuild/linux-mips64el@0.27.2': - optional: true - '@esbuild/linux-mips64el@0.27.3': optional: true - '@esbuild/linux-ppc64@0.27.2': - optional: true - '@esbuild/linux-ppc64@0.27.3': optional: true - '@esbuild/linux-riscv64@0.27.2': - optional: true - '@esbuild/linux-riscv64@0.27.3': optional: true - '@esbuild/linux-s390x@0.27.2': - optional: true - '@esbuild/linux-s390x@0.27.3': optional: true - '@esbuild/linux-x64@0.27.2': - optional: true - '@esbuild/linux-x64@0.27.3': optional: true - '@esbuild/netbsd-arm64@0.27.2': - optional: true - '@esbuild/netbsd-arm64@0.27.3': optional: true - '@esbuild/netbsd-x64@0.27.2': - optional: true - '@esbuild/netbsd-x64@0.27.3': optional: true - '@esbuild/openbsd-arm64@0.27.2': - optional: true - '@esbuild/openbsd-arm64@0.27.3': optional: true - '@esbuild/openbsd-x64@0.27.2': - optional: true - '@esbuild/openbsd-x64@0.27.3': optional: true - '@esbuild/openharmony-arm64@0.27.2': - optional: true - '@esbuild/openharmony-arm64@0.27.3': optional: true - '@esbuild/sunos-x64@0.27.2': - optional: true - '@esbuild/sunos-x64@0.27.3': optional: true - '@esbuild/win32-arm64@0.27.2': - optional: true - '@esbuild/win32-arm64@0.27.3': optional: true - '@esbuild/win32-ia32@0.27.2': - optional: true - '@esbuild/win32-ia32@0.27.3': optional: true - '@esbuild/win32-x64@0.27.2': - optional: true - '@esbuild/win32-x64@0.27.3': optional: true @@ -2938,79 +2690,79 @@ snapshots: '@rolldown/pluginutils@1.0.0-rc.3': {} - '@rollup/rollup-android-arm-eabi@4.55.2': + '@rollup/rollup-android-arm-eabi@4.58.0': optional: true - '@rollup/rollup-android-arm64@4.55.2': + '@rollup/rollup-android-arm64@4.58.0': optional: true - '@rollup/rollup-darwin-arm64@4.55.2': + '@rollup/rollup-darwin-arm64@4.58.0': optional: true - '@rollup/rollup-darwin-x64@4.55.2': + '@rollup/rollup-darwin-x64@4.58.0': optional: true - '@rollup/rollup-freebsd-arm64@4.55.2': + '@rollup/rollup-freebsd-arm64@4.58.0': optional: true - '@rollup/rollup-freebsd-x64@4.55.2': + '@rollup/rollup-freebsd-x64@4.58.0': optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.55.2': + '@rollup/rollup-linux-arm-gnueabihf@4.58.0': optional: true - '@rollup/rollup-linux-arm-musleabihf@4.55.2': + '@rollup/rollup-linux-arm-musleabihf@4.58.0': optional: true - '@rollup/rollup-linux-arm64-gnu@4.55.2': + '@rollup/rollup-linux-arm64-gnu@4.58.0': optional: true - '@rollup/rollup-linux-arm64-musl@4.55.2': + '@rollup/rollup-linux-arm64-musl@4.58.0': optional: true - '@rollup/rollup-linux-loong64-gnu@4.55.2': + '@rollup/rollup-linux-loong64-gnu@4.58.0': optional: true - '@rollup/rollup-linux-loong64-musl@4.55.2': + '@rollup/rollup-linux-loong64-musl@4.58.0': optional: true - '@rollup/rollup-linux-ppc64-gnu@4.55.2': + '@rollup/rollup-linux-ppc64-gnu@4.58.0': optional: true - '@rollup/rollup-linux-ppc64-musl@4.55.2': + '@rollup/rollup-linux-ppc64-musl@4.58.0': optional: true - '@rollup/rollup-linux-riscv64-gnu@4.55.2': + '@rollup/rollup-linux-riscv64-gnu@4.58.0': optional: true - '@rollup/rollup-linux-riscv64-musl@4.55.2': + '@rollup/rollup-linux-riscv64-musl@4.58.0': optional: true - '@rollup/rollup-linux-s390x-gnu@4.55.2': + '@rollup/rollup-linux-s390x-gnu@4.58.0': optional: true - '@rollup/rollup-linux-x64-gnu@4.55.2': + '@rollup/rollup-linux-x64-gnu@4.58.0': optional: true - '@rollup/rollup-linux-x64-musl@4.55.2': + '@rollup/rollup-linux-x64-musl@4.58.0': optional: true - '@rollup/rollup-openbsd-x64@4.55.2': + '@rollup/rollup-openbsd-x64@4.58.0': optional: true - '@rollup/rollup-openharmony-arm64@4.55.2': + '@rollup/rollup-openharmony-arm64@4.58.0': optional: true - '@rollup/rollup-win32-arm64-msvc@4.55.2': + '@rollup/rollup-win32-arm64-msvc@4.58.0': optional: true - '@rollup/rollup-win32-ia32-msvc@4.55.2': + '@rollup/rollup-win32-ia32-msvc@4.58.0': optional: true - '@rollup/rollup-win32-x64-gnu@4.55.2': + '@rollup/rollup-win32-x64-gnu@4.58.0': optional: true - '@rollup/rollup-win32-x64-msvc@4.55.2': + '@rollup/rollup-win32-x64-msvc@4.58.0': optional: true '@smithy/abort-controller@4.2.8': @@ -3421,7 +3173,7 @@ snapshots: tailwindcss: 4.2.0 vite: 7.3.1(@types/node@24.10.13)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) - '@tanstack/history@1.154.14': {} + '@tanstack/history@1.161.4': {} '@tanstack/query-core@5.90.20': {} @@ -3430,11 +3182,11 @@ snapshots: '@tanstack/query-core': 5.90.20 react: 19.2.4 - '@tanstack/react-router@1.161.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': + '@tanstack/react-router@1.162.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': dependencies: - '@tanstack/history': 1.154.14 + '@tanstack/history': 1.161.4 '@tanstack/react-store': 0.9.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4) - '@tanstack/router-core': 1.161.3 + '@tanstack/router-core': 1.162.1 isbot: 5.1.35 react: 19.2.4 react-dom: 19.2.4(react@19.2.4) @@ -3448,9 +3200,9 @@ snapshots: react-dom: 19.2.4(react@19.2.4) use-sync-external-store: 1.6.0(react@19.2.4) - '@tanstack/router-core@1.161.3': + '@tanstack/router-core@1.162.1': dependencies: - '@tanstack/history': 1.154.14 + '@tanstack/history': 1.161.4 '@tanstack/store': 0.9.1 cookie-es: 2.0.0 seroval: 1.5.0 @@ -3458,11 +3210,11 @@ snapshots: tiny-invariant: 1.3.3 tiny-warning: 1.0.3 - '@tanstack/router-generator@1.161.3': + '@tanstack/router-generator@1.162.1': dependencies: - '@tanstack/router-core': 1.161.3 - '@tanstack/router-utils': 1.158.0 - '@tanstack/virtual-file-routes': 1.154.7 + '@tanstack/router-core': 1.162.1 + '@tanstack/router-utils': 1.161.4 + '@tanstack/virtual-file-routes': 1.161.4 prettier: 3.8.1 recast: 0.23.11 source-map: 0.7.6 @@ -3471,7 +3223,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@tanstack/router-plugin@1.161.3(@tanstack/react-router@1.161.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@7.3.1(@types/node@24.10.13)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))': + '@tanstack/router-plugin@1.162.1(@tanstack/react-router@1.162.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@7.3.1(@types/node@24.10.13)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))': dependencies: '@babel/core': 7.29.0 '@babel/plugin-syntax-jsx': 7.28.6(@babel/core@7.29.0) @@ -3479,20 +3231,20 @@ snapshots: '@babel/template': 7.28.6 '@babel/traverse': 7.29.0 '@babel/types': 7.29.0 - '@tanstack/router-core': 1.161.3 - '@tanstack/router-generator': 1.161.3 - '@tanstack/router-utils': 1.158.0 - '@tanstack/virtual-file-routes': 1.154.7 + '@tanstack/router-core': 1.162.1 + '@tanstack/router-generator': 1.162.1 + '@tanstack/router-utils': 1.161.4 + '@tanstack/virtual-file-routes': 1.161.4 chokidar: 3.6.0 unplugin: 2.3.11 zod: 3.25.76 optionalDependencies: - '@tanstack/react-router': 1.161.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + '@tanstack/react-router': 1.162.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4) vite: 7.3.1(@types/node@24.10.13)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) transitivePeerDependencies: - supports-color - '@tanstack/router-utils@1.158.0': + '@tanstack/router-utils@1.161.4': dependencies: '@babel/core': 7.29.0 '@babel/generator': 7.29.1 @@ -3508,7 +3260,7 @@ snapshots: '@tanstack/store@0.9.1': {} - '@tanstack/virtual-file-routes@1.154.7': {} + '@tanstack/virtual-file-routes@1.161.4': {} '@types/babel__core@7.20.5': dependencies: @@ -3585,7 +3337,7 @@ snapshots: babel-plugin-react-compiler@1.0.0: dependencies: - '@babel/types': 7.28.6 + '@babel/types': 7.29.0 balanced-match@4.0.3: {} @@ -3665,35 +3417,6 @@ snapshots: graceful-fs: 4.2.11 tapable: 2.3.0 - esbuild@0.27.2: - optionalDependencies: - '@esbuild/aix-ppc64': 0.27.2 - '@esbuild/android-arm': 0.27.2 - '@esbuild/android-arm64': 0.27.2 - '@esbuild/android-x64': 0.27.2 - '@esbuild/darwin-arm64': 0.27.2 - '@esbuild/darwin-x64': 0.27.2 - '@esbuild/freebsd-arm64': 0.27.2 - '@esbuild/freebsd-x64': 0.27.2 - '@esbuild/linux-arm': 0.27.2 - '@esbuild/linux-arm64': 0.27.2 - '@esbuild/linux-ia32': 0.27.2 - '@esbuild/linux-loong64': 0.27.2 - '@esbuild/linux-mips64el': 0.27.2 - '@esbuild/linux-ppc64': 0.27.2 - '@esbuild/linux-riscv64': 0.27.2 - '@esbuild/linux-s390x': 0.27.2 - '@esbuild/linux-x64': 0.27.2 - '@esbuild/netbsd-arm64': 0.27.2 - '@esbuild/netbsd-x64': 0.27.2 - '@esbuild/openbsd-arm64': 0.27.2 - '@esbuild/openbsd-x64': 0.27.2 - '@esbuild/openharmony-arm64': 0.27.2 - '@esbuild/sunos-x64': 0.27.2 - '@esbuild/win32-arm64': 0.27.2 - '@esbuild/win32-ia32': 0.27.2 - '@esbuild/win32-x64': 0.27.2 - esbuild@0.27.3: optionalDependencies: '@esbuild/aix-ppc64': 0.27.3 @@ -3845,7 +3568,7 @@ snapshots: dependencies: yallist: 3.1.1 - lucide-react@0.563.0(react@19.2.4): + lucide-react@0.575.0(react@19.2.4): dependencies: react: 19.2.4 @@ -3929,35 +3652,35 @@ snapshots: resolve-pkg-maps@1.0.0: {} - rollup@4.55.2: + rollup@4.58.0: dependencies: '@types/estree': 1.0.8 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.55.2 - '@rollup/rollup-android-arm64': 4.55.2 - '@rollup/rollup-darwin-arm64': 4.55.2 - '@rollup/rollup-darwin-x64': 4.55.2 - '@rollup/rollup-freebsd-arm64': 4.55.2 - '@rollup/rollup-freebsd-x64': 4.55.2 - '@rollup/rollup-linux-arm-gnueabihf': 4.55.2 - '@rollup/rollup-linux-arm-musleabihf': 4.55.2 - '@rollup/rollup-linux-arm64-gnu': 4.55.2 - '@rollup/rollup-linux-arm64-musl': 4.55.2 - '@rollup/rollup-linux-loong64-gnu': 4.55.2 - '@rollup/rollup-linux-loong64-musl': 4.55.2 - '@rollup/rollup-linux-ppc64-gnu': 4.55.2 - '@rollup/rollup-linux-ppc64-musl': 4.55.2 - '@rollup/rollup-linux-riscv64-gnu': 4.55.2 - '@rollup/rollup-linux-riscv64-musl': 4.55.2 - '@rollup/rollup-linux-s390x-gnu': 4.55.2 - '@rollup/rollup-linux-x64-gnu': 4.55.2 - '@rollup/rollup-linux-x64-musl': 4.55.2 - '@rollup/rollup-openbsd-x64': 4.55.2 - '@rollup/rollup-openharmony-arm64': 4.55.2 - '@rollup/rollup-win32-arm64-msvc': 4.55.2 - '@rollup/rollup-win32-ia32-msvc': 4.55.2 - '@rollup/rollup-win32-x64-gnu': 4.55.2 - '@rollup/rollup-win32-x64-msvc': 4.55.2 + '@rollup/rollup-android-arm-eabi': 4.58.0 + '@rollup/rollup-android-arm64': 4.58.0 + '@rollup/rollup-darwin-arm64': 4.58.0 + '@rollup/rollup-darwin-x64': 4.58.0 + '@rollup/rollup-freebsd-arm64': 4.58.0 + '@rollup/rollup-freebsd-x64': 4.58.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.58.0 + '@rollup/rollup-linux-arm-musleabihf': 4.58.0 + '@rollup/rollup-linux-arm64-gnu': 4.58.0 + '@rollup/rollup-linux-arm64-musl': 4.58.0 + '@rollup/rollup-linux-loong64-gnu': 4.58.0 + '@rollup/rollup-linux-loong64-musl': 4.58.0 + '@rollup/rollup-linux-ppc64-gnu': 4.58.0 + '@rollup/rollup-linux-ppc64-musl': 4.58.0 + '@rollup/rollup-linux-riscv64-gnu': 4.58.0 + '@rollup/rollup-linux-riscv64-musl': 4.58.0 + '@rollup/rollup-linux-s390x-gnu': 4.58.0 + '@rollup/rollup-linux-x64-gnu': 4.58.0 + '@rollup/rollup-linux-x64-musl': 4.58.0 + '@rollup/rollup-openbsd-x64': 4.58.0 + '@rollup/rollup-openharmony-arm64': 4.58.0 + '@rollup/rollup-win32-arm64-msvc': 4.58.0 + '@rollup/rollup-win32-ia32-msvc': 4.58.0 + '@rollup/rollup-win32-x64-gnu': 4.58.0 + '@rollup/rollup-win32-x64-msvc': 4.58.0 fsevents: 2.3.3 safe-buffer@5.2.1: {} @@ -4057,11 +3780,11 @@ snapshots: vite@7.3.1(@types/node@24.10.13)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0): dependencies: - esbuild: 0.27.2 + esbuild: 0.27.3 fdir: 6.5.0(picomatch@4.0.3) picomatch: 4.0.3 postcss: 8.5.6 - rollup: 4.55.2 + rollup: 4.58.0 tinyglobby: 0.2.15 optionalDependencies: '@types/node': 24.10.13 diff --git a/hive/services/hiveui/frontend/src/components/detail-row.tsx b/hive/services/hiveui/frontend/src/components/detail-row.tsx index 7f4c3014a..2dda32f5c 100644 --- a/hive/services/hiveui/frontend/src/components/detail-row.tsx +++ b/hive/services/hiveui/frontend/src/components/detail-row.tsx @@ -1,4 +1,12 @@ -export function DetailRow({ label, value }: { label: string; value?: string }) { +import type { ReactNode } from "react" + +export function DetailRow({ + label, + value, +}: { + label: string + value?: ReactNode +}) { return (
{label}
diff --git a/hive/services/hiveui/frontend/src/components/error-banner.tsx b/hive/services/hiveui/frontend/src/components/error-banner.tsx index 89e149ce8..025a1a47f 100644 --- a/hive/services/hiveui/frontend/src/components/error-banner.tsx +++ b/hive/services/hiveui/frontend/src/components/error-banner.tsx @@ -1,8 +1,13 @@ export function ErrorBanner({ msg, error }: { msg?: string; error?: Error }) { + let errorText: string | undefined + if (error) { + errorText = error.name !== "Error" ? error.name : error.message + } + return (
{msg &&

{msg}

} - {error &&

{error.message}

} + {errorText &&

{errorText}

}
) } diff --git a/hive/services/hiveui/frontend/src/components/state-badge.tsx b/hive/services/hiveui/frontend/src/components/state-badge.tsx index 73e9317f2..c0e88f2e5 100644 --- a/hive/services/hiveui/frontend/src/components/state-badge.tsx +++ b/hive/services/hiveui/frontend/src/components/state-badge.tsx @@ -2,11 +2,20 @@ export function StateBadge({ state }: { state: string | undefined }) { let className = "bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100" - if (state === "running") { + if (state === "running" || state === "available" || state === "completed") { className = "bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100" - } else if (state === "stopped") { + } else if (state === "stopped" || state === "error") { className = "bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100" + } else if ( + state === "pending" || + state === "shutting-down" || + state === "stopping" + ) { + className = + "bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100" + } else if (state === "terminated") { + className = "bg-zinc-100 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400" } return ( diff --git a/hive/services/hiveui/frontend/src/layouts/sidebar-layout.tsx b/hive/services/hiveui/frontend/src/layouts/sidebar-layout.tsx index 978e94fb7..8c939c499 100644 --- a/hive/services/hiveui/frontend/src/layouts/sidebar-layout.tsx +++ b/hive/services/hiveui/frontend/src/layouts/sidebar-layout.tsx @@ -1,6 +1,16 @@ import { useQueryClient } from "@tanstack/react-query" import { Link, useLocation, useNavigate } from "@tanstack/react-router" -import { HardDrive, Home, Image, Key, LogOut, Server } from "lucide-react" +import { + Camera, + HardDrive, + Home, + Image, + Key, + LayoutGrid, + LogOut, + Network, + Server, +} from "lucide-react" // import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" // import { @@ -106,7 +116,11 @@ export function SidebarLayout() { @@ -114,6 +128,56 @@ export function SidebarLayout() { + + + + + + Snapshots + + + + + + + + Networking + + + + + + VPCs + + + + + + + + + Subnets + + + diff --git a/hive/services/hiveui/frontend/src/mutations/ec2.ts b/hive/services/hiveui/frontend/src/mutations/ec2.ts index 8b2b64973..8ce7dcd8b 100644 --- a/hive/services/hiveui/frontend/src/mutations/ec2.ts +++ b/hive/services/hiveui/frontend/src/mutations/ec2.ts @@ -1,10 +1,22 @@ import { type _InstanceType, + AttachVolumeCommand, + CopySnapshotCommand, + CreateImageCommand, CreateKeyPairCommand, + CreateSnapshotCommand, + CreateSubnetCommand, CreateVolumeCommand, + CreateVpcCommand, DeleteKeyPairCommand, + DeleteSnapshotCommand, + DeleteSubnetCommand, DeleteVolumeCommand, + DeleteVpcCommand, + DetachVolumeCommand, + GetConsoleOutputCommand, ImportKeyPairCommand, + ModifyInstanceAttributeCommand, ModifyVolumeCommand, RebootInstancesCommand, RunInstancesCommand, @@ -15,15 +27,20 @@ import { import { useMutation, useQueryClient } from "@tanstack/react-query" import { getEc2Client } from "@/lib/awsClient" -import { - ec2InstancesQueryOptions, - ec2KeyPairsQueryOptions, -} from "@/queries/ec2" +import { ec2KeyPairsQueryOptions } from "@/queries/ec2" import type { + AttachVolumeFormData, + CopySnapshotFormData, + CreateImageParams, CreateInstanceParams, CreateKeyPairData, + CreateSnapshotFormData, + CreateSubnetFormData, CreateVolumeFormData, + CreateVpcFormData, + DetachVolumeFormData, ImportKeyPairData, + ModifyInstanceTypeFormData, ModifyVolumeParams, } from "@/types/ec2" @@ -32,15 +49,11 @@ const WHITESPACE_REGEX = /\s+/ export function useStartInstance() { const queryClient = useQueryClient() return useMutation({ - mutationFn: async (instanceId: string) => { - try { - const command = new StartInstancesCommand({ - InstanceIds: [instanceId], - }) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to start instance") - } + mutationFn: (instanceId: string) => { + const command = new StartInstancesCommand({ + InstanceIds: [instanceId], + }) + return getEc2Client().send(command) }, onSuccess: () => { queryClient.invalidateQueries({ queryKey: ["ec2", "instances"] }) @@ -51,15 +64,11 @@ export function useStartInstance() { export function useStopInstance() { const queryClient = useQueryClient() return useMutation({ - mutationFn: async (instanceId: string) => { - try { - const command = new StopInstancesCommand({ - InstanceIds: [instanceId], - }) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to stop instance") - } + mutationFn: (instanceId: string) => { + const command = new StopInstancesCommand({ + InstanceIds: [instanceId], + }) + return getEc2Client().send(command) }, onSuccess: () => { queryClient.invalidateQueries({ queryKey: ["ec2", "instances"] }) @@ -70,15 +79,11 @@ export function useStopInstance() { export function useTerminateInstance() { const queryClient = useQueryClient() return useMutation({ - mutationFn: async (instanceId: string) => { - try { - const command = new TerminateInstancesCommand({ - InstanceIds: [instanceId], - }) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to terminate instance") - } + mutationFn: (instanceId: string) => { + const command = new TerminateInstancesCommand({ + InstanceIds: [instanceId], + }) + return getEc2Client().send(command) }, onSuccess: () => { queryClient.invalidateQueries({ queryKey: ["ec2", "instances"] }) @@ -89,15 +94,11 @@ export function useTerminateInstance() { export function useRebootInstance() { const queryClient = useQueryClient() return useMutation({ - mutationFn: async (instanceId: string) => { - try { - const command = new RebootInstancesCommand({ - InstanceIds: [instanceId], - }) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to reboot instance") - } + mutationFn: (instanceId: string) => { + const command = new RebootInstancesCommand({ + InstanceIds: [instanceId], + }) + return getEc2Client().send(command) }, onSuccess: () => { queryClient.invalidateQueries({ queryKey: ["ec2", "instances"] }) @@ -108,44 +109,18 @@ export function useRebootInstance() { export function useCreateInstance() { const queryClient = useQueryClient() return useMutation({ - mutationFn: async (params: CreateInstanceParams) => { - try { - const command = new RunInstancesCommand({ - ImageId: params.imageId, - InstanceType: params.instanceType as _InstanceType, - KeyName: params.keyName, - MinCount: params.count, - MaxCount: params.count, - SecurityGroupIds: params.securityGroupIds, - SubnetId: params.subnetId, - }) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to create instance") - } + mutationFn: (params: CreateInstanceParams) => { + const command = new RunInstancesCommand({ + ImageId: params.imageId, + InstanceType: params.instanceType as _InstanceType, + KeyName: params.keyName, + MinCount: params.count, + MaxCount: params.count, + SubnetId: params.subnetId || undefined, + }) + return getEc2Client().send(command) }, - onSuccess: async (data) => { - await queryClient.cancelQueries(ec2InstancesQueryOptions) - - const previousData = queryClient.getQueryData( - ec2InstancesQueryOptions.queryKey, - ) - - if (previousData && data.Instances) { - const newReservation = { - Instances: data.Instances, - OwnerId: data.OwnerId, - RequesterId: data.RequesterId, - ReservationId: data.ReservationId, - Groups: [], - } - - queryClient.setQueryData(ec2InstancesQueryOptions.queryKey, { - ...previousData, - Reservations: [...(previousData.Reservations || []), newReservation], - }) - } - + onSuccess: () => { queryClient.invalidateQueries({ queryKey: ["ec2", "instances"] }) }, }) @@ -154,16 +129,12 @@ export function useCreateInstance() { export function useCreateKeyPair() { const queryClient = useQueryClient() return useMutation({ - mutationFn: async (params: CreateKeyPairData) => { - try { - const command = new CreateKeyPairCommand({ - KeyName: params.keyName, - KeyType: "rsa", - }) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to create key pair") - } + mutationFn: (params: CreateKeyPairData) => { + const command = new CreateKeyPairCommand({ + KeyName: params.keyName, + KeyType: "rsa", + }) + return getEc2Client().send(command) }, onSuccess: () => { queryClient.invalidateQueries(ec2KeyPairsQueryOptions) @@ -174,20 +145,16 @@ export function useCreateKeyPair() { export function useImportKeyPair() { const queryClient = useQueryClient() return useMutation({ - mutationFn: async (params: ImportKeyPairData) => { - try { - // remove optional comment from ssh key as it breaks the import - const keyParts = params.publicKeyMaterial.trim().split(WHITESPACE_REGEX) - const cleanedKey = keyParts.slice(0, 2).join(" ") + mutationFn: (params: ImportKeyPairData) => { + // remove optional comment from ssh key as it breaks the import + const keyParts = params.publicKeyMaterial.trim().split(WHITESPACE_REGEX) + const cleanedKey = keyParts.slice(0, 2).join(" ") - const command = new ImportKeyPairCommand({ - KeyName: params.keyName, - PublicKeyMaterial: new TextEncoder().encode(cleanedKey), - }) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to import key pair") - } + const command = new ImportKeyPairCommand({ + KeyName: params.keyName, + PublicKeyMaterial: new TextEncoder().encode(cleanedKey), + }) + return getEc2Client().send(command) }, onSuccess: () => { queryClient.invalidateQueries(ec2KeyPairsQueryOptions) @@ -198,15 +165,11 @@ export function useImportKeyPair() { export function useDeleteKeyPair() { const queryClient = useQueryClient() return useMutation({ - mutationFn: async (keyPairId: string) => { - try { - const command = new DeleteKeyPairCommand({ - KeyPairId: keyPairId, - }) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to delete key pair") - } + mutationFn: (keyPairId: string) => { + const command = new DeleteKeyPairCommand({ + KeyPairId: keyPairId, + }) + return getEc2Client().send(command) }, onSuccess: () => { queryClient.invalidateQueries(ec2KeyPairsQueryOptions) @@ -217,17 +180,13 @@ export function useDeleteKeyPair() { export function useCreateVolume() { const queryClient = useQueryClient() return useMutation({ - mutationFn: async (params: CreateVolumeFormData) => { - try { - const command = new CreateVolumeCommand({ - Size: params.size, - AvailabilityZone: params.availabilityZone, - VolumeType: "gp3", - }) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to create volume") - } + mutationFn: (params: CreateVolumeFormData) => { + const command = new CreateVolumeCommand({ + Size: params.size, + AvailabilityZone: params.availabilityZone, + VolumeType: "gp3", + }) + return getEc2Client().send(command) }, onSuccess: () => { queryClient.invalidateQueries({ queryKey: ["ec2", "volumes"] }) @@ -238,16 +197,12 @@ export function useCreateVolume() { export function useModifyVolume() { const queryClient = useQueryClient() return useMutation({ - mutationFn: async (params: ModifyVolumeParams) => { - try { - const command = new ModifyVolumeCommand({ - VolumeId: params.volumeId, - Size: params.size, - }) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to modify volume") - } + mutationFn: (params: ModifyVolumeParams) => { + const command = new ModifyVolumeCommand({ + VolumeId: params.volumeId, + Size: params.size, + }) + return getEc2Client().send(command) }, onSuccess: () => { queryClient.invalidateQueries({ queryKey: ["ec2", "volumes"] }) @@ -258,18 +213,215 @@ export function useModifyVolume() { export function useDeleteVolume() { const queryClient = useQueryClient() return useMutation({ - mutationFn: async (volumeId: string) => { - try { - const command = new DeleteVolumeCommand({ - VolumeId: volumeId, - }) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to delete volume") - } + mutationFn: (volumeId: string) => { + const command = new DeleteVolumeCommand({ + VolumeId: volumeId, + }) + return getEc2Client().send(command) }, onSuccess: () => { queryClient.invalidateQueries({ queryKey: ["ec2", "volumes"] }) }, }) } + +export function useCreateSnapshot() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: (params: CreateSnapshotFormData) => { + const command = new CreateSnapshotCommand({ + VolumeId: params.volumeId, + Description: params.description || undefined, + }) + return getEc2Client().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["ec2", "snapshots"] }) + }, + }) +} + +export function useDeleteSnapshot() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: (snapshotId: string) => { + const command = new DeleteSnapshotCommand({ + SnapshotId: snapshotId, + }) + return getEc2Client().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["ec2", "snapshots"] }) + }, + }) +} + +export function useCopySnapshot() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: (params: CopySnapshotFormData) => { + const command = new CopySnapshotCommand({ + SourceSnapshotId: params.sourceSnapshotId, + SourceRegion: params.sourceRegion, + Description: params.description || undefined, + }) + return getEc2Client().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["ec2", "snapshots"] }) + }, + }) +} + +export function useAttachVolume() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: (params: AttachVolumeFormData) => { + const command = new AttachVolumeCommand({ + VolumeId: params.volumeId, + InstanceId: params.instanceId, + Device: params.device || undefined, + }) + return getEc2Client().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["ec2", "volumes"] }) + queryClient.invalidateQueries({ queryKey: ["ec2", "instances"] }) + }, + }) +} + +export function useDetachVolume() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: (params: DetachVolumeFormData) => { + const command = new DetachVolumeCommand({ + VolumeId: params.volumeId, + InstanceId: params.instanceId || undefined, + Force: params.force, + }) + return getEc2Client().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["ec2", "volumes"] }) + queryClient.invalidateQueries({ queryKey: ["ec2", "instances"] }) + }, + }) +} + +export function useModifyInstanceAttribute() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: ({ + instanceId, + ...params + }: ModifyInstanceTypeFormData & { instanceId: string }) => { + const command = new ModifyInstanceAttributeCommand({ + InstanceId: instanceId, + InstanceType: { Value: params.instanceType }, + }) + return getEc2Client().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["ec2", "instances"] }) + }, + }) +} + +export function useGetConsoleOutput() { + return useMutation({ + mutationFn: (instanceId: string) => { + const command = new GetConsoleOutputCommand({ + InstanceId: instanceId, + }) + return getEc2Client().send(command) + }, + }) +} + +export function useCreateImage() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: (params: CreateImageParams) => { + const command = new CreateImageCommand({ + InstanceId: params.instanceId, + Name: params.name, + Description: params.description || undefined, + }) + return getEc2Client().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["ec2", "images"] }) + }, + }) +} + +export function useCreateVpc() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: (params: CreateVpcFormData) => { + const command = new CreateVpcCommand({ + CidrBlock: params.cidrBlock, + TagSpecifications: params.name + ? [ + { + ResourceType: "vpc", + Tags: [{ Key: "Name", Value: params.name }], + }, + ] + : undefined, + }) + return getEc2Client().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["ec2", "vpcs"] }) + }, + }) +} + +export function useDeleteVpc() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: (vpcId: string) => { + const command = new DeleteVpcCommand({ + VpcId: vpcId, + }) + return getEc2Client().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["ec2", "vpcs"] }) + }, + }) +} + +export function useCreateSubnet() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: (params: CreateSubnetFormData) => { + const command = new CreateSubnetCommand({ + VpcId: params.vpcId, + CidrBlock: params.cidrBlock, + AvailabilityZone: params.availabilityZone || undefined, + }) + return getEc2Client().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["ec2", "subnets"] }) + }, + }) +} + +export function useDeleteSubnet() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: (subnetId: string) => { + const command = new DeleteSubnetCommand({ + SubnetId: subnetId, + }) + return getEc2Client().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["ec2", "subnets"] }) + }, + }) +} diff --git a/hive/services/hiveui/frontend/src/queries/ec2.ts b/hive/services/hiveui/frontend/src/queries/ec2.ts index 5d67d6511..91d92d90e 100644 --- a/hive/services/hiveui/frontend/src/queries/ec2.ts +++ b/hive/services/hiveui/frontend/src/queries/ec2.ts @@ -1,154 +1,184 @@ import { + DescribeAvailabilityZonesCommand, DescribeImagesCommand, DescribeInstancesCommand, DescribeInstanceTypesCommand, DescribeKeyPairsCommand, DescribeRegionsCommand, + DescribeSnapshotsCommand, + DescribeSubnetsCommand, DescribeVolumesCommand, + DescribeVpcsCommand, } from "@aws-sdk/client-ec2" import { queryOptions } from "@tanstack/react-query" import { getEc2Client } from "@/lib/awsClient" +export const ec2AvailabilityZonesQueryOptions = queryOptions({ + queryKey: ["ec2", "availabilityZones"], + queryFn: () => { + const command = new DescribeAvailabilityZonesCommand({}) + return getEc2Client().send(command) + }, + staleTime: 300_000, +}) + export const ec2InstancesQueryOptions = queryOptions({ queryKey: ["ec2", "instances"], - queryFn: async () => { - try { - const command = new DescribeInstancesCommand({}) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to fetch EC2 instances") - } + queryFn: () => { + const command = new DescribeInstancesCommand({}) + return getEc2Client().send(command) }, }) export const ec2InstanceQueryOptions = (instanceId: string) => queryOptions({ queryKey: ["ec2", "instances", instanceId], - queryFn: async () => { - try { - const command = new DescribeInstancesCommand({ - InstanceIds: [instanceId], - }) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to fetch EC2 instance") - } + queryFn: () => { + const command = new DescribeInstancesCommand({ + InstanceIds: [instanceId], + }) + return getEc2Client().send(command) }, }) export const ec2InstanceTypesQueryOptions = queryOptions({ queryKey: ["ec2", "instances", "types"], - queryFn: async () => { - try { - const command = new DescribeInstanceTypesCommand({ - Filters: [ - { - Name: "capacity", - Values: ["true"], - }, - ], - }) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to fetch EC2 instance types") - } + queryFn: () => { + const command = new DescribeInstanceTypesCommand({ + Filters: [ + { + Name: "capacity", + Values: ["true"], + }, + ], + }) + return getEc2Client().send(command) }, }) export const ec2ImagesQueryOptions = queryOptions({ queryKey: ["ec2", "images"], - queryFn: async () => { - try { - const command = new DescribeImagesCommand({}) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to fetch EC2 images") - } + queryFn: () => { + const command = new DescribeImagesCommand({}) + return getEc2Client().send(command) }, }) export const ec2ImageQueryOptions = (imageId: string | undefined) => queryOptions({ queryKey: ["ec2", "images", imageId ?? "none"], - queryFn: async () => { - try { - if (!imageId) { - return { Images: [], $metadata: {} } - } - const command = new DescribeImagesCommand({ - ImageIds: [imageId], - }) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to fetch EC2 image") + queryFn: () => { + if (!imageId) { + return { Images: [], $metadata: {} } } + const command = new DescribeImagesCommand({ + ImageIds: [imageId], + }) + return getEc2Client().send(command) }, }) export const ec2KeyPairsQueryOptions = queryOptions({ queryKey: ["ec2", "keypairs"], - queryFn: async () => { - try { - const command = new DescribeKeyPairsCommand({}) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to fetch key pairs") - } + queryFn: () => { + const command = new DescribeKeyPairsCommand({}) + return getEc2Client().send(command) }, }) export const ec2KeyPairQueryOptions = (keyPairId: string) => queryOptions({ queryKey: ["ec2", "keypairs", keyPairId], - queryFn: async () => { - try { - const command = new DescribeKeyPairsCommand({ - KeyPairIds: [keyPairId], - }) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to fetch key pair") - } + queryFn: () => { + const command = new DescribeKeyPairsCommand({ + KeyPairIds: [keyPairId], + }) + return getEc2Client().send(command) }, }) export const ec2RegionsQueryOptions = queryOptions({ queryKey: ["ec2", "regions"], - queryFn: async () => { - try { - const command = new DescribeRegionsCommand({}) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to fetch regions") - } + queryFn: () => { + const command = new DescribeRegionsCommand({}) + return getEc2Client().send(command) }, staleTime: 300_000, }) +export const ec2SubnetsQueryOptions = queryOptions({ + queryKey: ["ec2", "subnets"], + queryFn: () => { + const command = new DescribeSubnetsCommand({}) + return getEc2Client().send(command) + }, +}) + +export const ec2SubnetQueryOptions = (subnetId: string) => + queryOptions({ + queryKey: ["ec2", "subnets", subnetId], + queryFn: () => { + const command = new DescribeSubnetsCommand({ + SubnetIds: [subnetId], + }) + return getEc2Client().send(command) + }, + }) + +export const ec2SnapshotsQueryOptions = queryOptions({ + queryKey: ["ec2", "snapshots"], + queryFn: () => { + const command = new DescribeSnapshotsCommand({}) + return getEc2Client().send(command) + }, +}) + +export const ec2SnapshotQueryOptions = (snapshotId: string) => + queryOptions({ + queryKey: ["ec2", "snapshots", snapshotId], + queryFn: () => { + const command = new DescribeSnapshotsCommand({ + SnapshotIds: [snapshotId], + }) + return getEc2Client().send(command) + }, + }) + +export const ec2VpcsQueryOptions = queryOptions({ + queryKey: ["ec2", "vpcs"], + queryFn: () => { + const command = new DescribeVpcsCommand({}) + return getEc2Client().send(command) + }, +}) + +export const ec2VpcQueryOptions = (vpcId: string) => + queryOptions({ + queryKey: ["ec2", "vpcs", vpcId], + queryFn: () => { + const command = new DescribeVpcsCommand({ + VpcIds: [vpcId], + }) + return getEc2Client().send(command) + }, + }) + export const ec2VolumesQueryOptions = queryOptions({ queryKey: ["ec2", "volumes"], - queryFn: async () => { - try { - const command = new DescribeVolumesCommand({}) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to fetch volumes") - } + queryFn: () => { + const command = new DescribeVolumesCommand({}) + return getEc2Client().send(command) }, }) export const ec2VolumeQueryOptions = (volumeId: string) => queryOptions({ queryKey: ["ec2", "volumes", volumeId], - queryFn: async () => { - try { - const command = new DescribeVolumesCommand({ - VolumeIds: [volumeId], - }) - return await getEc2Client().send(command) - } catch { - throw new Error("Failed to fetch volume") - } + queryFn: () => { + const command = new DescribeVolumesCommand({ + VolumeIds: [volumeId], + }) + return getEc2Client().send(command) }, }) diff --git a/hive/services/hiveui/frontend/src/routeTree.gen.ts b/hive/services/hiveui/frontend/src/routeTree.gen.ts index 6547b62fa..f0db30163 100644 --- a/hive/services/hiveui/frontend/src/routeTree.gen.ts +++ b/hive/services/hiveui/frontend/src/routeTree.gen.ts @@ -14,19 +14,28 @@ import { Route as AuthRouteRouteImport } from './routes/_auth/route' import { Route as AuthIndexRouteImport } from './routes/_auth/index' import { Route as AuthS3LsIndexRouteImport } from './routes/_auth/s3/ls/index' import { Route as AuthS3bucketsCreateBucketRouteImport } from './routes/_auth/s3/(buckets)/create-bucket' +import { Route as AuthEc2vpcCreateVpcRouteImport } from './routes/_auth/ec2/(vpc)/create-vpc' import { Route as AuthEc2volumesCreateVolumeRouteImport } from './routes/_auth/ec2/(volumes)/create-volume' +import { Route as AuthEc2subnetCreateSubnetRouteImport } from './routes/_auth/ec2/(subnet)/create-subnet' +import { Route as AuthEc2snapshotsCreateSnapshotRouteImport } from './routes/_auth/ec2/(snapshots)/create-snapshot' import { Route as AuthEc2keyImportKeyPairRouteImport } from './routes/_auth/ec2/(key)/import-key-pair' import { Route as AuthEc2keyCreateKeyPairRouteImport } from './routes/_auth/ec2/(key)/create-key-pair' import { Route as AuthEc2instancesRunInstancesRouteImport } from './routes/_auth/ec2/(instances)/run-instances' import { Route as AuthS3LsBucketRouteRouteImport } from './routes/_auth/s3/ls/$bucket/route' import { Route as AuthS3LsBucketIndexRouteImport } from './routes/_auth/s3/ls/$bucket/index' +import { Route as AuthEc2vpcDescribeVpcsIndexRouteImport } from './routes/_auth/ec2/(vpc)/describe-vpcs/index' import { Route as AuthEc2volumesDescribeVolumesIndexRouteImport } from './routes/_auth/ec2/(volumes)/describe-volumes/index' +import { Route as AuthEc2subnetDescribeSubnetsIndexRouteImport } from './routes/_auth/ec2/(subnet)/describe-subnets/index' +import { Route as AuthEc2snapshotsDescribeSnapshotsIndexRouteImport } from './routes/_auth/ec2/(snapshots)/describe-snapshots/index' import { Route as AuthEc2keyDescribeKeyPairsIndexRouteImport } from './routes/_auth/ec2/(key)/describe-key-pairs/index' import { Route as AuthEc2instancesDescribeInstancesIndexRouteImport } from './routes/_auth/ec2/(instances)/describe-instances/index' import { Route as AuthEc2imagesDescribeImagesIndexRouteImport } from './routes/_auth/ec2/(images)/describe-images/index' import { Route as AuthS3LsBucketSplatRouteImport } from './routes/_auth/s3/ls/$bucket/$' +import { Route as AuthEc2vpcDescribeVpcsIdRouteImport } from './routes/_auth/ec2/(vpc)/describe-vpcs/$id' import { Route as AuthEc2volumesModifyVolumeIdRouteImport } from './routes/_auth/ec2/(volumes)/modify-volume/$id' import { Route as AuthEc2volumesDescribeVolumesIdRouteImport } from './routes/_auth/ec2/(volumes)/describe-volumes/$id' +import { Route as AuthEc2subnetDescribeSubnetsIdRouteImport } from './routes/_auth/ec2/(subnet)/describe-subnets/$id' +import { Route as AuthEc2snapshotsDescribeSnapshotsIdRouteImport } from './routes/_auth/ec2/(snapshots)/describe-snapshots/$id' import { Route as AuthEc2keyDescribeKeyPairsIdRouteImport } from './routes/_auth/ec2/(key)/describe-key-pairs/$id' import { Route as AuthEc2instancesDescribeInstancesIdRouteImport } from './routes/_auth/ec2/(instances)/describe-instances/$id' import { Route as AuthEc2imagesDescribeImagesIdRouteImport } from './routes/_auth/ec2/(images)/describe-images/$id' @@ -56,12 +65,29 @@ const AuthS3bucketsCreateBucketRoute = path: '/s3/create-bucket', getParentRoute: () => AuthRouteRoute, } as any) +const AuthEc2vpcCreateVpcRoute = AuthEc2vpcCreateVpcRouteImport.update({ + id: '/ec2/(vpc)/create-vpc', + path: '/ec2/create-vpc', + getParentRoute: () => AuthRouteRoute, +} as any) const AuthEc2volumesCreateVolumeRoute = AuthEc2volumesCreateVolumeRouteImport.update({ id: '/ec2/(volumes)/create-volume', path: '/ec2/create-volume', getParentRoute: () => AuthRouteRoute, } as any) +const AuthEc2subnetCreateSubnetRoute = + AuthEc2subnetCreateSubnetRouteImport.update({ + id: '/ec2/(subnet)/create-subnet', + path: '/ec2/create-subnet', + getParentRoute: () => AuthRouteRoute, + } as any) +const AuthEc2snapshotsCreateSnapshotRoute = + AuthEc2snapshotsCreateSnapshotRouteImport.update({ + id: '/ec2/(snapshots)/create-snapshot', + path: '/ec2/create-snapshot', + getParentRoute: () => AuthRouteRoute, + } as any) const AuthEc2keyImportKeyPairRoute = AuthEc2keyImportKeyPairRouteImport.update({ id: '/ec2/(key)/import-key-pair', path: '/ec2/import-key-pair', @@ -88,12 +114,30 @@ const AuthS3LsBucketIndexRoute = AuthS3LsBucketIndexRouteImport.update({ path: '/', getParentRoute: () => AuthS3LsBucketRouteRoute, } as any) +const AuthEc2vpcDescribeVpcsIndexRoute = + AuthEc2vpcDescribeVpcsIndexRouteImport.update({ + id: '/ec2/(vpc)/describe-vpcs/', + path: '/ec2/describe-vpcs/', + getParentRoute: () => AuthRouteRoute, + } as any) const AuthEc2volumesDescribeVolumesIndexRoute = AuthEc2volumesDescribeVolumesIndexRouteImport.update({ id: '/ec2/(volumes)/describe-volumes/', path: '/ec2/describe-volumes/', getParentRoute: () => AuthRouteRoute, } as any) +const AuthEc2subnetDescribeSubnetsIndexRoute = + AuthEc2subnetDescribeSubnetsIndexRouteImport.update({ + id: '/ec2/(subnet)/describe-subnets/', + path: '/ec2/describe-subnets/', + getParentRoute: () => AuthRouteRoute, + } as any) +const AuthEc2snapshotsDescribeSnapshotsIndexRoute = + AuthEc2snapshotsDescribeSnapshotsIndexRouteImport.update({ + id: '/ec2/(snapshots)/describe-snapshots/', + path: '/ec2/describe-snapshots/', + getParentRoute: () => AuthRouteRoute, + } as any) const AuthEc2keyDescribeKeyPairsIndexRoute = AuthEc2keyDescribeKeyPairsIndexRouteImport.update({ id: '/ec2/(key)/describe-key-pairs/', @@ -117,6 +161,12 @@ const AuthS3LsBucketSplatRoute = AuthS3LsBucketSplatRouteImport.update({ path: '/$', getParentRoute: () => AuthS3LsBucketRouteRoute, } as any) +const AuthEc2vpcDescribeVpcsIdRoute = + AuthEc2vpcDescribeVpcsIdRouteImport.update({ + id: '/ec2/(vpc)/describe-vpcs/$id', + path: '/ec2/describe-vpcs/$id', + getParentRoute: () => AuthRouteRoute, + } as any) const AuthEc2volumesModifyVolumeIdRoute = AuthEc2volumesModifyVolumeIdRouteImport.update({ id: '/ec2/(volumes)/modify-volume/$id', @@ -129,6 +179,18 @@ const AuthEc2volumesDescribeVolumesIdRoute = path: '/ec2/describe-volumes/$id', getParentRoute: () => AuthRouteRoute, } as any) +const AuthEc2subnetDescribeSubnetsIdRoute = + AuthEc2subnetDescribeSubnetsIdRouteImport.update({ + id: '/ec2/(subnet)/describe-subnets/$id', + path: '/ec2/describe-subnets/$id', + getParentRoute: () => AuthRouteRoute, + } as any) +const AuthEc2snapshotsDescribeSnapshotsIdRoute = + AuthEc2snapshotsDescribeSnapshotsIdRouteImport.update({ + id: '/ec2/(snapshots)/describe-snapshots/$id', + path: '/ec2/describe-snapshots/$id', + getParentRoute: () => AuthRouteRoute, + } as any) const AuthEc2keyDescribeKeyPairsIdRoute = AuthEc2keyDescribeKeyPairsIdRouteImport.update({ id: '/ec2/(key)/describe-key-pairs/$id', @@ -155,19 +217,28 @@ export interface FileRoutesByFullPath { '/ec2/run-instances': typeof AuthEc2instancesRunInstancesRoute '/ec2/create-key-pair': typeof AuthEc2keyCreateKeyPairRoute '/ec2/import-key-pair': typeof AuthEc2keyImportKeyPairRoute + '/ec2/create-snapshot': typeof AuthEc2snapshotsCreateSnapshotRoute + '/ec2/create-subnet': typeof AuthEc2subnetCreateSubnetRoute '/ec2/create-volume': typeof AuthEc2volumesCreateVolumeRoute + '/ec2/create-vpc': typeof AuthEc2vpcCreateVpcRoute '/s3/create-bucket': typeof AuthS3bucketsCreateBucketRoute '/s3/ls/': typeof AuthS3LsIndexRoute '/ec2/describe-images/$id': typeof AuthEc2imagesDescribeImagesIdRoute '/ec2/describe-instances/$id': typeof AuthEc2instancesDescribeInstancesIdRoute '/ec2/describe-key-pairs/$id': typeof AuthEc2keyDescribeKeyPairsIdRoute + '/ec2/describe-snapshots/$id': typeof AuthEc2snapshotsDescribeSnapshotsIdRoute + '/ec2/describe-subnets/$id': typeof AuthEc2subnetDescribeSubnetsIdRoute '/ec2/describe-volumes/$id': typeof AuthEc2volumesDescribeVolumesIdRoute '/ec2/modify-volume/$id': typeof AuthEc2volumesModifyVolumeIdRoute + '/ec2/describe-vpcs/$id': typeof AuthEc2vpcDescribeVpcsIdRoute '/s3/ls/$bucket/$': typeof AuthS3LsBucketSplatRoute '/ec2/describe-images/': typeof AuthEc2imagesDescribeImagesIndexRoute '/ec2/describe-instances/': typeof AuthEc2instancesDescribeInstancesIndexRoute '/ec2/describe-key-pairs/': typeof AuthEc2keyDescribeKeyPairsIndexRoute + '/ec2/describe-snapshots/': typeof AuthEc2snapshotsDescribeSnapshotsIndexRoute + '/ec2/describe-subnets/': typeof AuthEc2subnetDescribeSubnetsIndexRoute '/ec2/describe-volumes/': typeof AuthEc2volumesDescribeVolumesIndexRoute + '/ec2/describe-vpcs/': typeof AuthEc2vpcDescribeVpcsIndexRoute '/s3/ls/$bucket/': typeof AuthS3LsBucketIndexRoute } export interface FileRoutesByTo { @@ -176,19 +247,28 @@ export interface FileRoutesByTo { '/ec2/run-instances': typeof AuthEc2instancesRunInstancesRoute '/ec2/create-key-pair': typeof AuthEc2keyCreateKeyPairRoute '/ec2/import-key-pair': typeof AuthEc2keyImportKeyPairRoute + '/ec2/create-snapshot': typeof AuthEc2snapshotsCreateSnapshotRoute + '/ec2/create-subnet': typeof AuthEc2subnetCreateSubnetRoute '/ec2/create-volume': typeof AuthEc2volumesCreateVolumeRoute + '/ec2/create-vpc': typeof AuthEc2vpcCreateVpcRoute '/s3/create-bucket': typeof AuthS3bucketsCreateBucketRoute '/s3/ls': typeof AuthS3LsIndexRoute '/ec2/describe-images/$id': typeof AuthEc2imagesDescribeImagesIdRoute '/ec2/describe-instances/$id': typeof AuthEc2instancesDescribeInstancesIdRoute '/ec2/describe-key-pairs/$id': typeof AuthEc2keyDescribeKeyPairsIdRoute + '/ec2/describe-snapshots/$id': typeof AuthEc2snapshotsDescribeSnapshotsIdRoute + '/ec2/describe-subnets/$id': typeof AuthEc2subnetDescribeSubnetsIdRoute '/ec2/describe-volumes/$id': typeof AuthEc2volumesDescribeVolumesIdRoute '/ec2/modify-volume/$id': typeof AuthEc2volumesModifyVolumeIdRoute + '/ec2/describe-vpcs/$id': typeof AuthEc2vpcDescribeVpcsIdRoute '/s3/ls/$bucket/$': typeof AuthS3LsBucketSplatRoute '/ec2/describe-images': typeof AuthEc2imagesDescribeImagesIndexRoute '/ec2/describe-instances': typeof AuthEc2instancesDescribeInstancesIndexRoute '/ec2/describe-key-pairs': typeof AuthEc2keyDescribeKeyPairsIndexRoute + '/ec2/describe-snapshots': typeof AuthEc2snapshotsDescribeSnapshotsIndexRoute + '/ec2/describe-subnets': typeof AuthEc2subnetDescribeSubnetsIndexRoute '/ec2/describe-volumes': typeof AuthEc2volumesDescribeVolumesIndexRoute + '/ec2/describe-vpcs': typeof AuthEc2vpcDescribeVpcsIndexRoute '/s3/ls/$bucket': typeof AuthS3LsBucketIndexRoute } export interface FileRoutesById { @@ -200,19 +280,28 @@ export interface FileRoutesById { '/_auth/ec2/(instances)/run-instances': typeof AuthEc2instancesRunInstancesRoute '/_auth/ec2/(key)/create-key-pair': typeof AuthEc2keyCreateKeyPairRoute '/_auth/ec2/(key)/import-key-pair': typeof AuthEc2keyImportKeyPairRoute + '/_auth/ec2/(snapshots)/create-snapshot': typeof AuthEc2snapshotsCreateSnapshotRoute + '/_auth/ec2/(subnet)/create-subnet': typeof AuthEc2subnetCreateSubnetRoute '/_auth/ec2/(volumes)/create-volume': typeof AuthEc2volumesCreateVolumeRoute + '/_auth/ec2/(vpc)/create-vpc': typeof AuthEc2vpcCreateVpcRoute '/_auth/s3/(buckets)/create-bucket': typeof AuthS3bucketsCreateBucketRoute '/_auth/s3/ls/': typeof AuthS3LsIndexRoute '/_auth/ec2/(images)/describe-images/$id': typeof AuthEc2imagesDescribeImagesIdRoute '/_auth/ec2/(instances)/describe-instances/$id': typeof AuthEc2instancesDescribeInstancesIdRoute '/_auth/ec2/(key)/describe-key-pairs/$id': typeof AuthEc2keyDescribeKeyPairsIdRoute + '/_auth/ec2/(snapshots)/describe-snapshots/$id': typeof AuthEc2snapshotsDescribeSnapshotsIdRoute + '/_auth/ec2/(subnet)/describe-subnets/$id': typeof AuthEc2subnetDescribeSubnetsIdRoute '/_auth/ec2/(volumes)/describe-volumes/$id': typeof AuthEc2volumesDescribeVolumesIdRoute '/_auth/ec2/(volumes)/modify-volume/$id': typeof AuthEc2volumesModifyVolumeIdRoute + '/_auth/ec2/(vpc)/describe-vpcs/$id': typeof AuthEc2vpcDescribeVpcsIdRoute '/_auth/s3/ls/$bucket/$': typeof AuthS3LsBucketSplatRoute '/_auth/ec2/(images)/describe-images/': typeof AuthEc2imagesDescribeImagesIndexRoute '/_auth/ec2/(instances)/describe-instances/': typeof AuthEc2instancesDescribeInstancesIndexRoute '/_auth/ec2/(key)/describe-key-pairs/': typeof AuthEc2keyDescribeKeyPairsIndexRoute + '/_auth/ec2/(snapshots)/describe-snapshots/': typeof AuthEc2snapshotsDescribeSnapshotsIndexRoute + '/_auth/ec2/(subnet)/describe-subnets/': typeof AuthEc2subnetDescribeSubnetsIndexRoute '/_auth/ec2/(volumes)/describe-volumes/': typeof AuthEc2volumesDescribeVolumesIndexRoute + '/_auth/ec2/(vpc)/describe-vpcs/': typeof AuthEc2vpcDescribeVpcsIndexRoute '/_auth/s3/ls/$bucket/': typeof AuthS3LsBucketIndexRoute } export interface FileRouteTypes { @@ -224,19 +313,28 @@ export interface FileRouteTypes { | '/ec2/run-instances' | '/ec2/create-key-pair' | '/ec2/import-key-pair' + | '/ec2/create-snapshot' + | '/ec2/create-subnet' | '/ec2/create-volume' + | '/ec2/create-vpc' | '/s3/create-bucket' | '/s3/ls/' | '/ec2/describe-images/$id' | '/ec2/describe-instances/$id' | '/ec2/describe-key-pairs/$id' + | '/ec2/describe-snapshots/$id' + | '/ec2/describe-subnets/$id' | '/ec2/describe-volumes/$id' | '/ec2/modify-volume/$id' + | '/ec2/describe-vpcs/$id' | '/s3/ls/$bucket/$' | '/ec2/describe-images/' | '/ec2/describe-instances/' | '/ec2/describe-key-pairs/' + | '/ec2/describe-snapshots/' + | '/ec2/describe-subnets/' | '/ec2/describe-volumes/' + | '/ec2/describe-vpcs/' | '/s3/ls/$bucket/' fileRoutesByTo: FileRoutesByTo to: @@ -245,19 +343,28 @@ export interface FileRouteTypes { | '/ec2/run-instances' | '/ec2/create-key-pair' | '/ec2/import-key-pair' + | '/ec2/create-snapshot' + | '/ec2/create-subnet' | '/ec2/create-volume' + | '/ec2/create-vpc' | '/s3/create-bucket' | '/s3/ls' | '/ec2/describe-images/$id' | '/ec2/describe-instances/$id' | '/ec2/describe-key-pairs/$id' + | '/ec2/describe-snapshots/$id' + | '/ec2/describe-subnets/$id' | '/ec2/describe-volumes/$id' | '/ec2/modify-volume/$id' + | '/ec2/describe-vpcs/$id' | '/s3/ls/$bucket/$' | '/ec2/describe-images' | '/ec2/describe-instances' | '/ec2/describe-key-pairs' + | '/ec2/describe-snapshots' + | '/ec2/describe-subnets' | '/ec2/describe-volumes' + | '/ec2/describe-vpcs' | '/s3/ls/$bucket' id: | '__root__' @@ -268,19 +375,28 @@ export interface FileRouteTypes { | '/_auth/ec2/(instances)/run-instances' | '/_auth/ec2/(key)/create-key-pair' | '/_auth/ec2/(key)/import-key-pair' + | '/_auth/ec2/(snapshots)/create-snapshot' + | '/_auth/ec2/(subnet)/create-subnet' | '/_auth/ec2/(volumes)/create-volume' + | '/_auth/ec2/(vpc)/create-vpc' | '/_auth/s3/(buckets)/create-bucket' | '/_auth/s3/ls/' | '/_auth/ec2/(images)/describe-images/$id' | '/_auth/ec2/(instances)/describe-instances/$id' | '/_auth/ec2/(key)/describe-key-pairs/$id' + | '/_auth/ec2/(snapshots)/describe-snapshots/$id' + | '/_auth/ec2/(subnet)/describe-subnets/$id' | '/_auth/ec2/(volumes)/describe-volumes/$id' | '/_auth/ec2/(volumes)/modify-volume/$id' + | '/_auth/ec2/(vpc)/describe-vpcs/$id' | '/_auth/s3/ls/$bucket/$' | '/_auth/ec2/(images)/describe-images/' | '/_auth/ec2/(instances)/describe-instances/' | '/_auth/ec2/(key)/describe-key-pairs/' + | '/_auth/ec2/(snapshots)/describe-snapshots/' + | '/_auth/ec2/(subnet)/describe-subnets/' | '/_auth/ec2/(volumes)/describe-volumes/' + | '/_auth/ec2/(vpc)/describe-vpcs/' | '/_auth/s3/ls/$bucket/' fileRoutesById: FileRoutesById } @@ -326,6 +442,13 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof AuthS3bucketsCreateBucketRouteImport parentRoute: typeof AuthRouteRoute } + '/_auth/ec2/(vpc)/create-vpc': { + id: '/_auth/ec2/(vpc)/create-vpc' + path: '/ec2/create-vpc' + fullPath: '/ec2/create-vpc' + preLoaderRoute: typeof AuthEc2vpcCreateVpcRouteImport + parentRoute: typeof AuthRouteRoute + } '/_auth/ec2/(volumes)/create-volume': { id: '/_auth/ec2/(volumes)/create-volume' path: '/ec2/create-volume' @@ -333,6 +456,20 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof AuthEc2volumesCreateVolumeRouteImport parentRoute: typeof AuthRouteRoute } + '/_auth/ec2/(subnet)/create-subnet': { + id: '/_auth/ec2/(subnet)/create-subnet' + path: '/ec2/create-subnet' + fullPath: '/ec2/create-subnet' + preLoaderRoute: typeof AuthEc2subnetCreateSubnetRouteImport + parentRoute: typeof AuthRouteRoute + } + '/_auth/ec2/(snapshots)/create-snapshot': { + id: '/_auth/ec2/(snapshots)/create-snapshot' + path: '/ec2/create-snapshot' + fullPath: '/ec2/create-snapshot' + preLoaderRoute: typeof AuthEc2snapshotsCreateSnapshotRouteImport + parentRoute: typeof AuthRouteRoute + } '/_auth/ec2/(key)/import-key-pair': { id: '/_auth/ec2/(key)/import-key-pair' path: '/ec2/import-key-pair' @@ -368,6 +505,13 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof AuthS3LsBucketIndexRouteImport parentRoute: typeof AuthS3LsBucketRouteRoute } + '/_auth/ec2/(vpc)/describe-vpcs/': { + id: '/_auth/ec2/(vpc)/describe-vpcs/' + path: '/ec2/describe-vpcs' + fullPath: '/ec2/describe-vpcs/' + preLoaderRoute: typeof AuthEc2vpcDescribeVpcsIndexRouteImport + parentRoute: typeof AuthRouteRoute + } '/_auth/ec2/(volumes)/describe-volumes/': { id: '/_auth/ec2/(volumes)/describe-volumes/' path: '/ec2/describe-volumes' @@ -375,6 +519,20 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof AuthEc2volumesDescribeVolumesIndexRouteImport parentRoute: typeof AuthRouteRoute } + '/_auth/ec2/(subnet)/describe-subnets/': { + id: '/_auth/ec2/(subnet)/describe-subnets/' + path: '/ec2/describe-subnets' + fullPath: '/ec2/describe-subnets/' + preLoaderRoute: typeof AuthEc2subnetDescribeSubnetsIndexRouteImport + parentRoute: typeof AuthRouteRoute + } + '/_auth/ec2/(snapshots)/describe-snapshots/': { + id: '/_auth/ec2/(snapshots)/describe-snapshots/' + path: '/ec2/describe-snapshots' + fullPath: '/ec2/describe-snapshots/' + preLoaderRoute: typeof AuthEc2snapshotsDescribeSnapshotsIndexRouteImport + parentRoute: typeof AuthRouteRoute + } '/_auth/ec2/(key)/describe-key-pairs/': { id: '/_auth/ec2/(key)/describe-key-pairs/' path: '/ec2/describe-key-pairs' @@ -403,6 +561,13 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof AuthS3LsBucketSplatRouteImport parentRoute: typeof AuthS3LsBucketRouteRoute } + '/_auth/ec2/(vpc)/describe-vpcs/$id': { + id: '/_auth/ec2/(vpc)/describe-vpcs/$id' + path: '/ec2/describe-vpcs/$id' + fullPath: '/ec2/describe-vpcs/$id' + preLoaderRoute: typeof AuthEc2vpcDescribeVpcsIdRouteImport + parentRoute: typeof AuthRouteRoute + } '/_auth/ec2/(volumes)/modify-volume/$id': { id: '/_auth/ec2/(volumes)/modify-volume/$id' path: '/ec2/modify-volume/$id' @@ -417,6 +582,20 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof AuthEc2volumesDescribeVolumesIdRouteImport parentRoute: typeof AuthRouteRoute } + '/_auth/ec2/(subnet)/describe-subnets/$id': { + id: '/_auth/ec2/(subnet)/describe-subnets/$id' + path: '/ec2/describe-subnets/$id' + fullPath: '/ec2/describe-subnets/$id' + preLoaderRoute: typeof AuthEc2subnetDescribeSubnetsIdRouteImport + parentRoute: typeof AuthRouteRoute + } + '/_auth/ec2/(snapshots)/describe-snapshots/$id': { + id: '/_auth/ec2/(snapshots)/describe-snapshots/$id' + path: '/ec2/describe-snapshots/$id' + fullPath: '/ec2/describe-snapshots/$id' + preLoaderRoute: typeof AuthEc2snapshotsDescribeSnapshotsIdRouteImport + parentRoute: typeof AuthRouteRoute + } '/_auth/ec2/(key)/describe-key-pairs/$id': { id: '/_auth/ec2/(key)/describe-key-pairs/$id' path: '/ec2/describe-key-pairs/$id' @@ -460,18 +639,27 @@ interface AuthRouteRouteChildren { AuthEc2instancesRunInstancesRoute: typeof AuthEc2instancesRunInstancesRoute AuthEc2keyCreateKeyPairRoute: typeof AuthEc2keyCreateKeyPairRoute AuthEc2keyImportKeyPairRoute: typeof AuthEc2keyImportKeyPairRoute + AuthEc2snapshotsCreateSnapshotRoute: typeof AuthEc2snapshotsCreateSnapshotRoute + AuthEc2subnetCreateSubnetRoute: typeof AuthEc2subnetCreateSubnetRoute AuthEc2volumesCreateVolumeRoute: typeof AuthEc2volumesCreateVolumeRoute + AuthEc2vpcCreateVpcRoute: typeof AuthEc2vpcCreateVpcRoute AuthS3bucketsCreateBucketRoute: typeof AuthS3bucketsCreateBucketRoute AuthS3LsIndexRoute: typeof AuthS3LsIndexRoute AuthEc2imagesDescribeImagesIdRoute: typeof AuthEc2imagesDescribeImagesIdRoute AuthEc2instancesDescribeInstancesIdRoute: typeof AuthEc2instancesDescribeInstancesIdRoute AuthEc2keyDescribeKeyPairsIdRoute: typeof AuthEc2keyDescribeKeyPairsIdRoute + AuthEc2snapshotsDescribeSnapshotsIdRoute: typeof AuthEc2snapshotsDescribeSnapshotsIdRoute + AuthEc2subnetDescribeSubnetsIdRoute: typeof AuthEc2subnetDescribeSubnetsIdRoute AuthEc2volumesDescribeVolumesIdRoute: typeof AuthEc2volumesDescribeVolumesIdRoute AuthEc2volumesModifyVolumeIdRoute: typeof AuthEc2volumesModifyVolumeIdRoute + AuthEc2vpcDescribeVpcsIdRoute: typeof AuthEc2vpcDescribeVpcsIdRoute AuthEc2imagesDescribeImagesIndexRoute: typeof AuthEc2imagesDescribeImagesIndexRoute AuthEc2instancesDescribeInstancesIndexRoute: typeof AuthEc2instancesDescribeInstancesIndexRoute AuthEc2keyDescribeKeyPairsIndexRoute: typeof AuthEc2keyDescribeKeyPairsIndexRoute + AuthEc2snapshotsDescribeSnapshotsIndexRoute: typeof AuthEc2snapshotsDescribeSnapshotsIndexRoute + AuthEc2subnetDescribeSubnetsIndexRoute: typeof AuthEc2subnetDescribeSubnetsIndexRoute AuthEc2volumesDescribeVolumesIndexRoute: typeof AuthEc2volumesDescribeVolumesIndexRoute + AuthEc2vpcDescribeVpcsIndexRoute: typeof AuthEc2vpcDescribeVpcsIndexRoute } const AuthRouteRouteChildren: AuthRouteRouteChildren = { @@ -480,21 +668,33 @@ const AuthRouteRouteChildren: AuthRouteRouteChildren = { AuthEc2instancesRunInstancesRoute: AuthEc2instancesRunInstancesRoute, AuthEc2keyCreateKeyPairRoute: AuthEc2keyCreateKeyPairRoute, AuthEc2keyImportKeyPairRoute: AuthEc2keyImportKeyPairRoute, + AuthEc2snapshotsCreateSnapshotRoute: AuthEc2snapshotsCreateSnapshotRoute, + AuthEc2subnetCreateSubnetRoute: AuthEc2subnetCreateSubnetRoute, AuthEc2volumesCreateVolumeRoute: AuthEc2volumesCreateVolumeRoute, + AuthEc2vpcCreateVpcRoute: AuthEc2vpcCreateVpcRoute, AuthS3bucketsCreateBucketRoute: AuthS3bucketsCreateBucketRoute, AuthS3LsIndexRoute: AuthS3LsIndexRoute, AuthEc2imagesDescribeImagesIdRoute: AuthEc2imagesDescribeImagesIdRoute, AuthEc2instancesDescribeInstancesIdRoute: AuthEc2instancesDescribeInstancesIdRoute, AuthEc2keyDescribeKeyPairsIdRoute: AuthEc2keyDescribeKeyPairsIdRoute, + AuthEc2snapshotsDescribeSnapshotsIdRoute: + AuthEc2snapshotsDescribeSnapshotsIdRoute, + AuthEc2subnetDescribeSubnetsIdRoute: AuthEc2subnetDescribeSubnetsIdRoute, AuthEc2volumesDescribeVolumesIdRoute: AuthEc2volumesDescribeVolumesIdRoute, AuthEc2volumesModifyVolumeIdRoute: AuthEc2volumesModifyVolumeIdRoute, + AuthEc2vpcDescribeVpcsIdRoute: AuthEc2vpcDescribeVpcsIdRoute, AuthEc2imagesDescribeImagesIndexRoute: AuthEc2imagesDescribeImagesIndexRoute, AuthEc2instancesDescribeInstancesIndexRoute: AuthEc2instancesDescribeInstancesIndexRoute, AuthEc2keyDescribeKeyPairsIndexRoute: AuthEc2keyDescribeKeyPairsIndexRoute, + AuthEc2snapshotsDescribeSnapshotsIndexRoute: + AuthEc2snapshotsDescribeSnapshotsIndexRoute, + AuthEc2subnetDescribeSubnetsIndexRoute: + AuthEc2subnetDescribeSubnetsIndexRoute, AuthEc2volumesDescribeVolumesIndexRoute: AuthEc2volumesDescribeVolumesIndexRoute, + AuthEc2vpcDescribeVpcsIndexRoute: AuthEc2vpcDescribeVpcsIndexRoute, } const AuthRouteRouteWithChildren = AuthRouteRoute._addFileChildren( diff --git a/hive/services/hiveui/frontend/src/routes/_auth/ec2/(images)/describe-images/$id.tsx b/hive/services/hiveui/frontend/src/routes/_auth/ec2/(images)/describe-images/$id.tsx index dd6d501ee..ba04c9680 100644 --- a/hive/services/hiveui/frontend/src/routes/_auth/ec2/(images)/describe-images/$id.tsx +++ b/hive/services/hiveui/frontend/src/routes/_auth/ec2/(images)/describe-images/$id.tsx @@ -3,7 +3,7 @@ import { createFileRoute } from "@tanstack/react-router" import { BackLink } from "@/components/back-link" import { PageHeading } from "@/components/page-heading" -import { Badge } from "@/components/ui/badge" +import { StateBadge } from "@/components/state-badge" import { ec2ImageQueryOptions } from "@/queries/ec2" import { AmiDetails } from "../../-components/ami-details" @@ -45,15 +45,7 @@ function ImageDetail() {
- {image.State} - - ) : undefined - } + actions={} subtitle="EC2 Image Details" title={image.ImageId} /> diff --git a/hive/services/hiveui/frontend/src/routes/_auth/ec2/(images)/describe-images/index.tsx b/hive/services/hiveui/frontend/src/routes/_auth/ec2/(images)/describe-images/index.tsx index 779ac6279..6940c7763 100644 --- a/hive/services/hiveui/frontend/src/routes/_auth/ec2/(images)/describe-images/index.tsx +++ b/hive/services/hiveui/frontend/src/routes/_auth/ec2/(images)/describe-images/index.tsx @@ -4,7 +4,7 @@ import { createFileRoute } from "@tanstack/react-router" import { ListCard } from "@/components/list-card" import { PageHeading } from "@/components/page-heading" -import { Badge } from "@/components/ui/badge" +import { StateBadge } from "@/components/state-badge" import { ec2ImagesQueryOptions } from "@/queries/ec2" export const Route = createFileRoute("/_auth/ec2/(images)/describe-images/")({ @@ -38,17 +38,7 @@ function Images() { } return ( - {image.State} - - ) : undefined - } + badge={} key={image.ImageId} params={{ id: image.ImageId }} subtitle={image.Name} diff --git a/hive/services/hiveui/frontend/src/routes/_auth/ec2/(instances)/describe-instances/$id.tsx b/hive/services/hiveui/frontend/src/routes/_auth/ec2/(instances)/describe-instances/$id.tsx index e7a3a27dc..28ba4f939 100644 --- a/hive/services/hiveui/frontend/src/routes/_auth/ec2/(instances)/describe-instances/$id.tsx +++ b/hive/services/hiveui/frontend/src/routes/_auth/ec2/(instances)/describe-instances/$id.tsx @@ -1,14 +1,45 @@ import { useSuspenseQuery } from "@tanstack/react-query" -import { createFileRoute } from "@tanstack/react-router" +import { createFileRoute, Link } from "@tanstack/react-router" +import { ImagePlus, Settings2, Terminal } from "lucide-react" +import { useState } from "react" import { BackLink } from "@/components/back-link" import { DetailCard } from "@/components/detail-card" import { DetailRow } from "@/components/detail-row" +import { ErrorBanner } from "@/components/error-banner" import { PageHeading } from "@/components/page-heading" import { StateBadge } from "@/components/state-badge" +import { + AlertDialog, + AlertDialogAction, + AlertDialogCancel, + AlertDialogContent, + AlertDialogDescription, + AlertDialogFooter, + AlertDialogHeader, + AlertDialogTitle, +} from "@/components/ui/alert-dialog" +import { Button } from "@/components/ui/button" +import { Field, FieldTitle } from "@/components/ui/field" +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select" import { formatDateTime } from "@/lib/utils" -import { ec2ImageQueryOptions, ec2InstanceQueryOptions } from "@/queries/ec2" +import { + useGetConsoleOutput, + useModifyInstanceAttribute, +} from "@/mutations/ec2" +import { + ec2ImageQueryOptions, + ec2InstanceQueryOptions, + ec2InstanceTypesQueryOptions, +} from "@/queries/ec2" import { AmiDetails } from "../../-components/ami-details" +import { CreateImageDialog } from "../../-components/create-image-dialog" import { InstanceActions } from "../../-components/instance-actions" export const Route = createFileRoute( @@ -19,7 +50,10 @@ export const Route = createFileRoute( ec2InstanceQueryOptions(params.id), ) const imageId = instanceData.Reservations?.[0]?.Instances?.[0]?.ImageId - await context.queryClient.ensureQueryData(ec2ImageQueryOptions(imageId)) + await Promise.all([ + context.queryClient.ensureQueryData(ec2ImageQueryOptions(imageId)), + context.queryClient.ensureQueryData(ec2InstanceTypesQueryOptions), + ]) return instanceData }, head: ({ loaderData }) => ({ @@ -42,6 +76,26 @@ function InstanceDetail() { ) const image = imageData?.Images?.[0] + const { data: instanceTypesData } = useSuspenseQuery( + ec2InstanceTypesQueryOptions, + ) + const modifyMutation = useModifyInstanceAttribute() + const consoleMutation = useGetConsoleOutput() + + const [showChangeType, setShowChangeType] = useState(false) + const [selectedType, setSelectedType] = useState("") + const [showConsole, setShowConsole] = useState(false) + const [consoleOutput, setConsoleOutput] = useState(null) + const [showCreateImage, setShowCreateImage] = useState(false) + + const instanceTypes = [ + ...new Set( + instanceTypesData.InstanceTypes?.flatMap((t) => + t.InstanceType ? [t.InstanceType] : [], + ), + ), + ].toSorted() + if (!instance?.InstanceId) { return ( <> @@ -52,14 +106,93 @@ function InstanceDetail() { } const launchTime = formatDateTime(instance.LaunchTime) + const isRunning = instance.State?.Name === "running" + const isStopped = instance.State?.Name === "stopped" + + async function handleChangeType() { + try { + await modifyMutation.mutateAsync({ + instanceId: id, + instanceType: selectedType, + }) + setShowChangeType(false) + setSelectedType("") + } catch { + // error shown via modifyMutation.error + } + } + + async function handleGetConsoleOutput() { + try { + const result = await consoleMutation.mutateAsync(id) + const decoded = result.Output ? atob(result.Output) : "(no output)" + setConsoleOutput(decoded) + setShowConsole(true) + } catch { + // error shown via consoleMutation.error + } + } return ( <> Back to instances + {modifyMutation.error && ( + + )} + {consoleMutation.error && ( + + )} +
} + actions={ +
+ {isRunning && ( + + )} + {(isRunning || isStopped) && ( + + )} + {isStopped && ( + + )} + +
+ } subtitle="EC2 Instance Details" title={instance.InstanceId} /> @@ -69,6 +202,32 @@ function InstanceDetail() { state={instance.State?.Name} /> + {/* Console Output */} + {showConsole && consoleOutput !== null && ( + + +
+ Console Output + +
+
+
+
+                {consoleOutput}
+              
+
+
+ )} + {/* Instance Details */} Instance Information @@ -89,70 +248,161 @@ function InstanceDetail() { {/* Network & Security */} - {/* - Network & Security - - - - - - - - - sg.GroupName).join( - ", ", - )} - /> - - */} + {(instance.PrivateIpAddress || + instance.PublicIpAddress || + instance.VpcId || + instance.SubnetId || + (instance.SecurityGroups && instance.SecurityGroups.length > 0)) && ( + + Network & Security + + + + + + + {instance.VpcId} + + ) : undefined + } + /> + + {instance.SubnetId} + + ) : undefined + } + /> + + sg.GroupName).join( + ", ", + )} + /> + + + )} {/* Block Device Mappings */} {instance.BlockDeviceMappings && instance.BlockDeviceMappings.length > 0 && ( Block Device Mappings - - - - - - - + {instance.BlockDeviceMappings.map((bdm) => ( + + + + {bdm.Ebs.VolumeId} + + ) : undefined + } + /> + + + + + ))} )} {/* AMI Details */} {image && }
+ + { + if (!open) { + setShowChangeType(false) + setSelectedType("") + } + }} + open={showChangeType} + > + + + Modify Instance + + Select a new instance type for "{instance.InstanceId}". The + instance must be stopped to modify its attributes. + + + + + + + + + + Cancel + + {modifyMutation.isPending ? "Saving\u2026" : "Save Changes"} + + + + + + ) } diff --git a/hive/services/hiveui/frontend/src/routes/_auth/ec2/(instances)/describe-instances/index.tsx b/hive/services/hiveui/frontend/src/routes/_auth/ec2/(instances)/describe-instances/index.tsx index 6d31335c4..f99d96d82 100644 --- a/hive/services/hiveui/frontend/src/routes/_auth/ec2/(instances)/describe-instances/index.tsx +++ b/hive/services/hiveui/frontend/src/routes/_auth/ec2/(instances)/describe-instances/index.tsx @@ -28,10 +28,27 @@ function Ec2() { // useInitialSidebar(false) const { data } = useSuspenseQuery(ec2InstancesQueryOptions) - const instances = + const statePriority: Record = { + running: 0, + pending: 1, + stopping: 2, + "shutting-down": 3, + stopped: 4, + terminated: 5, + } + + const instances = ( data.Reservations?.flatMap( (reservation: Reservation) => reservation.Instances || [], ) || [] + ).toSorted((a, b) => { + const pa = statePriority[a.State?.Name ?? ""] ?? 6 + const pb = statePriority[b.State?.Name ?? ""] ?? 6 + if (pa !== pb) { + return pa - pb + } + return (a.InstanceId ?? "").localeCompare(b.InstanceId ?? "") + }) return ( <> diff --git a/hive/services/hiveui/frontend/src/routes/_auth/ec2/(instances)/run-instances.tsx b/hive/services/hiveui/frontend/src/routes/_auth/ec2/(instances)/run-instances.tsx index 32e994898..342dde84a 100644 --- a/hive/services/hiveui/frontend/src/routes/_auth/ec2/(instances)/run-instances.tsx +++ b/hive/services/hiveui/frontend/src/routes/_auth/ec2/(instances)/run-instances.tsx @@ -21,19 +21,17 @@ import { ec2ImagesQueryOptions, ec2InstanceTypesQueryOptions, ec2KeyPairsQueryOptions, + ec2SubnetsQueryOptions, } from "@/queries/ec2" import { type CreateInstanceFormData, createInstanceSchema } from "@/types/ec2" -// Hardcoded values - will be replaced when IAM is implemented -const SECURITY_GROUP_IDS = ["sg-placeholder"] -const SUBNET_ID = "subnet-placeholder" - export const Route = createFileRoute("/_auth/ec2/(instances)/run-instances")({ loader: async ({ context }) => { await Promise.all([ context.queryClient.ensureQueryData(ec2ImagesQueryOptions), context.queryClient.ensureQueryData(ec2KeyPairsQueryOptions), context.queryClient.ensureQueryData(ec2InstanceTypesQueryOptions), + context.queryClient.ensureQueryData(ec2SubnetsQueryOptions), ]) }, head: () => ({ @@ -53,14 +51,11 @@ function CreateInstance() { const { data: instanceTypesData } = useSuspenseQuery( ec2InstanceTypesQueryOptions, ) + const { data: subnetsData } = useSuspenseQuery(ec2SubnetsQueryOptions) const createMutation = useCreateInstance() const images = imagesData.Images ?? [] const keyPairs = keyPairsData.KeyPairs ?? [] - const instanceTypes = - instanceTypesData.InstanceTypes?.flatMap((type) => - type.InstanceType ? [type.InstanceType] : [], - ) ?? [] - + const subnets = subnetsData.Subnets ?? [] const instanceTypeCounts = instanceTypesData.InstanceTypes?.reduce( (acc, type) => { @@ -112,11 +107,7 @@ function CreateInstance() { : 1 const onSubmit = async (data: CreateInstanceFormData) => { - await createMutation.mutateAsync({ - ...data, - securityGroupIds: SECURITY_GROUP_IDS, - subnetId: SUBNET_ID, - }) + await createMutation.mutateAsync(data) navigate({ to: "/ec2/describe-instances" }) } @@ -127,7 +118,7 @@ function CreateInstance() { {/* Handle error when no instance types available */} - {instanceTypes.length === 0 && ( + {uniqueInstanceTypes.length === 0 && ( )} @@ -254,6 +245,40 @@ function CreateInstance() { + {/* Subnet */} + + + + + ( + + )} + /> + + {/* Instance Count */} @@ -287,7 +312,7 @@ function CreateInstance() { disabled={ isSubmitting || createMutation.isPending || - instanceTypes.length === 0 + uniqueInstanceTypes.length === 0 } type="submit" > diff --git a/hive/services/hiveui/frontend/src/routes/_auth/ec2/(key)/describe-key-pairs/index.tsx b/hive/services/hiveui/frontend/src/routes/_auth/ec2/(key)/describe-key-pairs/index.tsx index cdcae2015..4c2bc18d9 100644 --- a/hive/services/hiveui/frontend/src/routes/_auth/ec2/(key)/describe-key-pairs/index.tsx +++ b/hive/services/hiveui/frontend/src/routes/_auth/ec2/(key)/describe-key-pairs/index.tsx @@ -24,7 +24,7 @@ export const Route = createFileRoute("/_auth/ec2/(key)/describe-key-pairs/")({ function KeyPairs() { const { data } = useSuspenseQuery(ec2KeyPairsQueryOptions) - const keyPairs = [...(data.KeyPairs || [])].sort((a, b) => { + const keyPairs = (data.KeyPairs || []).toSorted((a, b) => { const nameA = a.KeyName?.toLowerCase() ?? "" const nameB = b.KeyName?.toLowerCase() ?? "" return nameA.localeCompare(nameB) diff --git a/hive/services/hiveui/frontend/src/routes/_auth/ec2/(snapshots)/create-snapshot.tsx b/hive/services/hiveui/frontend/src/routes/_auth/ec2/(snapshots)/create-snapshot.tsx new file mode 100644 index 000000000..ca3929f8a --- /dev/null +++ b/hive/services/hiveui/frontend/src/routes/_auth/ec2/(snapshots)/create-snapshot.tsx @@ -0,0 +1,152 @@ +import { zodResolver } from "@hookform/resolvers/zod" +import { useSuspenseQuery } from "@tanstack/react-query" +import { + createFileRoute, + type SearchSchemaInput, + useNavigate, +} from "@tanstack/react-router" +import { Controller, useForm } from "react-hook-form" + +import { BackLink } from "@/components/back-link" +import { ErrorBanner } from "@/components/error-banner" +import { PageHeading } from "@/components/page-heading" +import { Button } from "@/components/ui/button" +import { Field, FieldError, FieldTitle } from "@/components/ui/field" +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select" +import { Textarea } from "@/components/ui/textarea" +import { useCreateSnapshot } from "@/mutations/ec2" +import { ec2VolumesQueryOptions } from "@/queries/ec2" +import { type CreateSnapshotFormData, createSnapshotSchema } from "@/types/ec2" + +export const Route = createFileRoute("/_auth/ec2/(snapshots)/create-snapshot")({ + validateSearch: (search: { volumeId?: string } & SearchSchemaInput) => ({ + volumeId: typeof search.volumeId === "string" ? search.volumeId : undefined, + }), + loader: async ({ context }) => { + await context.queryClient.ensureQueryData(ec2VolumesQueryOptions) + }, + head: () => ({ + meta: [ + { + title: "Create Snapshot | EC2 | Mulga", + }, + ], + }), + component: CreateSnapshot, +}) + +function CreateSnapshot() { + const navigate = useNavigate() + const { data: volumesData } = useSuspenseQuery(ec2VolumesQueryOptions) + const createMutation = useCreateSnapshot() + const volumes = volumesData.Volumes ?? [] + + const { volumeId: searchVolumeId } = Route.useSearch() + const defaultVolumeId = searchVolumeId ?? volumes[0]?.VolumeId ?? "" + + const { + control, + handleSubmit, + register, + formState: { errors, isSubmitting }, + } = useForm({ + resolver: zodResolver(createSnapshotSchema), + defaultValues: { + volumeId: defaultVolumeId, + description: "", + }, + }) + + const onSubmit = async (data: CreateSnapshotFormData) => { + await createMutation.mutateAsync(data) + navigate({ to: "/ec2/describe-snapshots" }) + } + + return ( + <> + Back to snapshots + + + + {createMutation.error && ( + + )} + +
+ + + + + ( + + )} + /> + + + + + + + +