stackport 0.3.1__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stackport-0.3.1/stackport.egg-info → stackport-0.3.2}/PKG-INFO +1 -1
- {stackport-0.3.1 → stackport-0.3.2}/backend/routes/lambda_svc.py +52 -0
- stackport-0.3.2/backend/schemas/lambda_svc.py +23 -0
- {stackport-0.3.1 → stackport-0.3.2}/pyproject.toml +1 -1
- {stackport-0.3.1 → stackport-0.3.2/stackport.egg-info}/PKG-INFO +1 -1
- {stackport-0.3.1 → stackport-0.3.2}/stackport.egg-info/SOURCES.txt +5 -4
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_lambda_routes.py +181 -0
- stackport-0.3.2/ui/dist/assets/index-BJ2zUhqY.css +1 -0
- stackport-0.3.1/ui/dist/assets/index-CAZXHF4B.js → stackport-0.3.2/ui/dist/assets/index-D8i-Md_b.js +122 -122
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/index.html +2 -2
- stackport-0.3.1/ui/dist/assets/index-DLd-xBZq.css +0 -1
- {stackport-0.3.1 → stackport-0.3.2}/LICENSE +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/MANIFEST.in +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/README.md +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/__init__.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/aws_client.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/cache.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/cli.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/config.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/endpoint_store.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/main.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/routes/__init__.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/routes/common.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/routes/dynamodb.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/routes/ec2.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/routes/endpoints.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/routes/iam.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/routes/logs.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/routes/resources.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/routes/s3.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/routes/secretsmanager.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/routes/sqs.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/routes/stats.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/routes/tags.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/schemas/__init__.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/schemas/dynamodb.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/schemas/endpoints.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/schemas/s3.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/schemas/secretsmanager.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/schemas/sqs.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/schemas/tags.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/backend/websocket.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/setup.cfg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/stackport.egg-info/dependency_links.txt +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/stackport.egg-info/entry_points.txt +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/stackport.egg-info/requires.txt +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/stackport.egg-info/top_level.txt +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_cache.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_cli.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_client.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_config.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_dynamodb_routes.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_ec2_routes.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_endpoint_store.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_endpoints.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_iam_routes.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_logs_routes.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_multi_endpoint.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_readonly_middleware.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_registries.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_routes.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_s3_routes.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_s3_upload_limit_env.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_secretsmanager_routes.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_sqs_routes.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_tags_routes.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/tests/test_websocket.py +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/acm.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/apigateway.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/appsync.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/athena.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/cloudformation.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/cloudfront.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/cognito-idp.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/dynamodb.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/ec2.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/ecr.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/ecs.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/elasticache.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/elasticfilesystem.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/elasticloadbalancing.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/elasticmapreduce.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/events.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/firehose.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/glue.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/iam.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/kinesis.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/kms.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/lambda.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/logs.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/monitoring.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/rds.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/route53.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/s3.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/secretsmanager.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/ses.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/sns.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/sqs.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/ssm.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/stepfunctions.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/aws-icons/wafv2.svg +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/favicon.png +0 -0
- {stackport-0.3.1 → stackport-0.3.2}/ui/dist/favicon.svg +0 -0
|
@@ -9,6 +9,7 @@ from fastapi.responses import RedirectResponse
|
|
|
9
9
|
|
|
10
10
|
from backend.aws_client import get_client
|
|
11
11
|
from backend.routes.common import EndpointInfo, get_endpoint_info
|
|
12
|
+
from backend.schemas.lambda_svc import UpdateFunctionConfigRequest
|
|
12
13
|
|
|
13
14
|
router = APIRouter()
|
|
14
15
|
|
|
@@ -184,3 +185,54 @@ def list_versions(function_name: str, ep: EndpointInfo = Depends(get_endpoint_in
|
|
|
184
185
|
return {"versions": versions}
|
|
185
186
|
except Exception as e:
|
|
186
187
|
raise HTTPException(status_code=500, detail=str(e))
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
@router.patch("/functions/{function_name}/configuration")
|
|
191
|
+
def update_function_configuration(
|
|
192
|
+
function_name: str,
|
|
193
|
+
body: UpdateFunctionConfigRequest,
|
|
194
|
+
ep: EndpointInfo = Depends(get_endpoint_info)
|
|
195
|
+
) -> dict[str, Any]:
|
|
196
|
+
"""Update Lambda function configuration (partial updates supported).
|
|
197
|
+
|
|
198
|
+
All body fields are optional — only specified fields will be updated.
|
|
199
|
+
Returns the updated function configuration.
|
|
200
|
+
"""
|
|
201
|
+
try:
|
|
202
|
+
client = get_client("lambda", **ep.client_kwargs())
|
|
203
|
+
|
|
204
|
+
# Build boto3 kwargs from request body, skipping None values
|
|
205
|
+
update_kwargs: dict[str, Any] = {"FunctionName": function_name}
|
|
206
|
+
|
|
207
|
+
if body.description is not None:
|
|
208
|
+
update_kwargs["Description"] = body.description
|
|
209
|
+
|
|
210
|
+
if body.handler is not None:
|
|
211
|
+
update_kwargs["Handler"] = body.handler
|
|
212
|
+
|
|
213
|
+
if body.runtime is not None:
|
|
214
|
+
update_kwargs["Runtime"] = body.runtime
|
|
215
|
+
|
|
216
|
+
if body.memory_size is not None:
|
|
217
|
+
update_kwargs["MemorySize"] = body.memory_size
|
|
218
|
+
|
|
219
|
+
if body.timeout is not None:
|
|
220
|
+
update_kwargs["Timeout"] = body.timeout
|
|
221
|
+
|
|
222
|
+
if body.environment is not None:
|
|
223
|
+
update_kwargs["Environment"] = {"Variables": body.environment}
|
|
224
|
+
|
|
225
|
+
if body.layers is not None:
|
|
226
|
+
update_kwargs["Layers"] = body.layers
|
|
227
|
+
|
|
228
|
+
# Call update_function_configuration
|
|
229
|
+
response = client.update_function_configuration(**update_kwargs)
|
|
230
|
+
|
|
231
|
+
return {"configuration": response}
|
|
232
|
+
|
|
233
|
+
except client.exceptions.ResourceNotFoundException:
|
|
234
|
+
raise HTTPException(status_code=404, detail=f"Function {function_name} not found")
|
|
235
|
+
except client.exceptions.InvalidParameterValueException as e:
|
|
236
|
+
raise HTTPException(status_code=400, detail=str(e))
|
|
237
|
+
except Exception as e:
|
|
238
|
+
raise HTTPException(status_code=500, detail=str(e))
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"""Pydantic schemas for Lambda API requests."""
|
|
2
|
+
|
|
3
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class UpdateFunctionConfigRequest(BaseModel):
|
|
7
|
+
"""Request body for updating Lambda function configuration.
|
|
8
|
+
|
|
9
|
+
All fields are optional — only specified fields will be updated.
|
|
10
|
+
Validation follows AWS Lambda limits:
|
|
11
|
+
- Memory: 128-10240 MB
|
|
12
|
+
- Timeout: 1-900 seconds
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
model_config = ConfigDict(populate_by_name=True)
|
|
16
|
+
|
|
17
|
+
description: str | None = Field(None, description="Function description")
|
|
18
|
+
handler: str | None = Field(None, description="Handler path (e.g., index.handler)")
|
|
19
|
+
runtime: str | None = Field(None, description="Runtime identifier (e.g., python3.12, nodejs20.x)")
|
|
20
|
+
memory_size: int | None = Field(None, alias="memorySize", ge=128, le=10240, description="Memory in MB")
|
|
21
|
+
timeout: int | None = Field(None, ge=1, le=900, description="Timeout in seconds")
|
|
22
|
+
environment: dict[str, str] | None = Field(None, description="Environment variables as key-value dict")
|
|
23
|
+
layers: list[str] | None = Field(None, description="Layer ARNs")
|
|
@@ -13,8 +13,8 @@ backend/websocket.py
|
|
|
13
13
|
backend/../ui/dist/favicon.png
|
|
14
14
|
backend/../ui/dist/favicon.svg
|
|
15
15
|
backend/../ui/dist/index.html
|
|
16
|
-
backend/../ui/dist/assets/index-
|
|
17
|
-
backend/../ui/dist/assets/index-
|
|
16
|
+
backend/../ui/dist/assets/index-BJ2zUhqY.css
|
|
17
|
+
backend/../ui/dist/assets/index-D8i-Md_b.js
|
|
18
18
|
backend/../ui/dist/aws-icons/acm.svg
|
|
19
19
|
backend/../ui/dist/aws-icons/apigateway.svg
|
|
20
20
|
backend/../ui/dist/aws-icons/appsync.svg
|
|
@@ -66,6 +66,7 @@ backend/routes/tags.py
|
|
|
66
66
|
backend/schemas/__init__.py
|
|
67
67
|
backend/schemas/dynamodb.py
|
|
68
68
|
backend/schemas/endpoints.py
|
|
69
|
+
backend/schemas/lambda_svc.py
|
|
69
70
|
backend/schemas/s3.py
|
|
70
71
|
backend/schemas/secretsmanager.py
|
|
71
72
|
backend/schemas/sqs.py
|
|
@@ -100,8 +101,8 @@ tests/test_websocket.py
|
|
|
100
101
|
ui/dist/favicon.png
|
|
101
102
|
ui/dist/favicon.svg
|
|
102
103
|
ui/dist/index.html
|
|
103
|
-
ui/dist/assets/index-
|
|
104
|
-
ui/dist/assets/index-
|
|
104
|
+
ui/dist/assets/index-BJ2zUhqY.css
|
|
105
|
+
ui/dist/assets/index-D8i-Md_b.js
|
|
105
106
|
ui/dist/aws-icons/acm.svg
|
|
106
107
|
ui/dist/aws-icons/apigateway.svg
|
|
107
108
|
ui/dist/aws-icons/appsync.svg
|
|
@@ -269,3 +269,184 @@ class TestListVersions:
|
|
|
269
269
|
data = resp.json()
|
|
270
270
|
assert len(data["versions"]) == 2
|
|
271
271
|
assert data["versions"][0]["Version"] == "$LATEST"
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
class TestUpdateFunctionConfiguration:
|
|
275
|
+
@patch("backend.routes.lambda_svc.get_client")
|
|
276
|
+
def test_update_environment_variables(self, mock_get_client):
|
|
277
|
+
mock_lambda = MagicMock()
|
|
278
|
+
mock_get_client.return_value = mock_lambda
|
|
279
|
+
mock_lambda.update_function_configuration.return_value = {
|
|
280
|
+
"FunctionName": "my-func",
|
|
281
|
+
"Runtime": "python3.12",
|
|
282
|
+
"Handler": "handler.main",
|
|
283
|
+
"MemorySize": 256,
|
|
284
|
+
"Timeout": 30,
|
|
285
|
+
"Environment": {
|
|
286
|
+
"Variables": {
|
|
287
|
+
"KEY1": "value1",
|
|
288
|
+
"KEY2": "value2",
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
resp = client.patch(
|
|
294
|
+
"/api/lambda/functions/my-func/configuration",
|
|
295
|
+
json={
|
|
296
|
+
"environment": {
|
|
297
|
+
"KEY1": "value1",
|
|
298
|
+
"KEY2": "value2",
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
)
|
|
302
|
+
assert resp.status_code == 200
|
|
303
|
+
data = resp.json()
|
|
304
|
+
assert data["configuration"]["Environment"]["Variables"]["KEY1"] == "value1"
|
|
305
|
+
mock_lambda.update_function_configuration.assert_called_once()
|
|
306
|
+
call_args = mock_lambda.update_function_configuration.call_args[1]
|
|
307
|
+
assert call_args["FunctionName"] == "my-func"
|
|
308
|
+
assert call_args["Environment"]["Variables"] == {"KEY1": "value1", "KEY2": "value2"}
|
|
309
|
+
|
|
310
|
+
@patch("backend.routes.lambda_svc.get_client")
|
|
311
|
+
def test_update_memory_and_timeout(self, mock_get_client):
|
|
312
|
+
mock_lambda = MagicMock()
|
|
313
|
+
mock_get_client.return_value = mock_lambda
|
|
314
|
+
mock_lambda.update_function_configuration.return_value = {
|
|
315
|
+
"FunctionName": "my-func",
|
|
316
|
+
"MemorySize": 512,
|
|
317
|
+
"Timeout": 60,
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
resp = client.patch(
|
|
321
|
+
"/api/lambda/functions/my-func/configuration",
|
|
322
|
+
json={"memorySize": 512, "timeout": 60},
|
|
323
|
+
)
|
|
324
|
+
assert resp.status_code == 200
|
|
325
|
+
data = resp.json()
|
|
326
|
+
assert data["configuration"]["MemorySize"] == 512
|
|
327
|
+
assert data["configuration"]["Timeout"] == 60
|
|
328
|
+
mock_lambda.update_function_configuration.assert_called_once_with(
|
|
329
|
+
FunctionName="my-func",
|
|
330
|
+
MemorySize=512,
|
|
331
|
+
Timeout=60,
|
|
332
|
+
)
|
|
333
|
+
|
|
334
|
+
@patch("backend.routes.lambda_svc.get_client")
|
|
335
|
+
def test_update_handler_and_runtime(self, mock_get_client):
|
|
336
|
+
mock_lambda = MagicMock()
|
|
337
|
+
mock_get_client.return_value = mock_lambda
|
|
338
|
+
mock_lambda.update_function_configuration.return_value = {
|
|
339
|
+
"FunctionName": "my-func",
|
|
340
|
+
"Handler": "new_handler.handler",
|
|
341
|
+
"Runtime": "python3.13",
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
resp = client.patch(
|
|
345
|
+
"/api/lambda/functions/my-func/configuration",
|
|
346
|
+
json={"handler": "new_handler.handler", "runtime": "python3.13"},
|
|
347
|
+
)
|
|
348
|
+
assert resp.status_code == 200
|
|
349
|
+
data = resp.json()
|
|
350
|
+
assert data["configuration"]["Handler"] == "new_handler.handler"
|
|
351
|
+
assert data["configuration"]["Runtime"] == "python3.13"
|
|
352
|
+
|
|
353
|
+
@patch("backend.routes.lambda_svc.get_client")
|
|
354
|
+
def test_update_description(self, mock_get_client):
|
|
355
|
+
mock_lambda = MagicMock()
|
|
356
|
+
mock_get_client.return_value = mock_lambda
|
|
357
|
+
mock_lambda.update_function_configuration.return_value = {
|
|
358
|
+
"FunctionName": "my-func",
|
|
359
|
+
"Description": "Updated description",
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
resp = client.patch(
|
|
363
|
+
"/api/lambda/functions/my-func/configuration",
|
|
364
|
+
json={"description": "Updated description"},
|
|
365
|
+
)
|
|
366
|
+
assert resp.status_code == 200
|
|
367
|
+
data = resp.json()
|
|
368
|
+
assert data["configuration"]["Description"] == "Updated description"
|
|
369
|
+
|
|
370
|
+
@patch("backend.routes.lambda_svc.get_client")
|
|
371
|
+
def test_update_partial(self, mock_get_client):
|
|
372
|
+
"""Test that only specified fields are included in the update call."""
|
|
373
|
+
mock_lambda = MagicMock()
|
|
374
|
+
mock_get_client.return_value = mock_lambda
|
|
375
|
+
mock_lambda.update_function_configuration.return_value = {
|
|
376
|
+
"FunctionName": "my-func",
|
|
377
|
+
"Timeout": 120,
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
resp = client.patch(
|
|
381
|
+
"/api/lambda/functions/my-func/configuration",
|
|
382
|
+
json={"timeout": 120},
|
|
383
|
+
)
|
|
384
|
+
assert resp.status_code == 200
|
|
385
|
+
# Verify only Timeout and FunctionName were passed
|
|
386
|
+
mock_lambda.update_function_configuration.assert_called_once()
|
|
387
|
+
call_args = mock_lambda.update_function_configuration.call_args[1]
|
|
388
|
+
assert set(call_args.keys()) == {"FunctionName", "Timeout"}
|
|
389
|
+
assert call_args["Timeout"] == 120
|
|
390
|
+
|
|
391
|
+
@patch("backend.routes.lambda_svc.get_client")
|
|
392
|
+
def test_update_function_not_found(self, mock_get_client):
|
|
393
|
+
mock_lambda = MagicMock()
|
|
394
|
+
mock_get_client.return_value = mock_lambda
|
|
395
|
+
# Set up both exception types
|
|
396
|
+
mock_lambda.exceptions.ResourceNotFoundException = type("ResourceNotFoundException", (Exception,), {})
|
|
397
|
+
mock_lambda.exceptions.InvalidParameterValueException = type("InvalidParameterValueException", (Exception,), {})
|
|
398
|
+
mock_lambda.update_function_configuration.side_effect = mock_lambda.exceptions.ResourceNotFoundException()
|
|
399
|
+
|
|
400
|
+
resp = client.patch(
|
|
401
|
+
"/api/lambda/functions/nonexistent/configuration",
|
|
402
|
+
json={"timeout": 60},
|
|
403
|
+
)
|
|
404
|
+
assert resp.status_code == 404
|
|
405
|
+
|
|
406
|
+
@patch("backend.routes.lambda_svc.get_client")
|
|
407
|
+
def test_update_invalid_parameter_boto3(self, mock_get_client):
|
|
408
|
+
"""Test AWS InvalidParameterValueException returns 400."""
|
|
409
|
+
mock_lambda = MagicMock()
|
|
410
|
+
mock_get_client.return_value = mock_lambda
|
|
411
|
+
# Set up both exception types
|
|
412
|
+
mock_lambda.exceptions.ResourceNotFoundException = type("ResourceNotFoundException", (Exception,), {})
|
|
413
|
+
mock_lambda.exceptions.InvalidParameterValueException = type("InvalidParameterValueException", (Exception,), {})
|
|
414
|
+
mock_lambda.update_function_configuration.side_effect = mock_lambda.exceptions.InvalidParameterValueException("Invalid runtime")
|
|
415
|
+
|
|
416
|
+
resp = client.patch(
|
|
417
|
+
"/api/lambda/functions/my-func/configuration",
|
|
418
|
+
json={"runtime": "invalid_runtime"},
|
|
419
|
+
)
|
|
420
|
+
assert resp.status_code == 400
|
|
421
|
+
|
|
422
|
+
def test_update_validation_memory_too_low(self):
|
|
423
|
+
"""Test Pydantic validation rejects memory < 128."""
|
|
424
|
+
resp = client.patch(
|
|
425
|
+
"/api/lambda/functions/my-func/configuration",
|
|
426
|
+
json={"memorySize": 64},
|
|
427
|
+
)
|
|
428
|
+
assert resp.status_code == 422
|
|
429
|
+
|
|
430
|
+
def test_update_validation_memory_too_high(self):
|
|
431
|
+
"""Test Pydantic validation rejects memory > 10240."""
|
|
432
|
+
resp = client.patch(
|
|
433
|
+
"/api/lambda/functions/my-func/configuration",
|
|
434
|
+
json={"memorySize": 20480},
|
|
435
|
+
)
|
|
436
|
+
assert resp.status_code == 422
|
|
437
|
+
|
|
438
|
+
def test_update_validation_timeout_too_low(self):
|
|
439
|
+
"""Test Pydantic validation rejects timeout < 1."""
|
|
440
|
+
resp = client.patch(
|
|
441
|
+
"/api/lambda/functions/my-func/configuration",
|
|
442
|
+
json={"timeout": 0},
|
|
443
|
+
)
|
|
444
|
+
assert resp.status_code == 422
|
|
445
|
+
|
|
446
|
+
def test_update_validation_timeout_too_high(self):
|
|
447
|
+
"""Test Pydantic validation rejects timeout > 900."""
|
|
448
|
+
resp = client.patch(
|
|
449
|
+
"/api/lambda/functions/my-func/configuration",
|
|
450
|
+
json={"timeout": 1000},
|
|
451
|
+
)
|
|
452
|
+
assert resp.status_code == 422
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 0 0% 100%;--foreground: 215 20% 10%;--card: 210 20% 98%;--card-foreground: 215 20% 10%;--popover: 0 0% 100%;--popover-foreground: 215 20% 10%;--primary: 212 100% 40%;--primary-foreground: 0 0% 100%;--secondary: 210 15% 93%;--secondary-foreground: 215 20% 15%;--muted: 210 15% 95%;--muted-foreground: 215 10% 45%;--accent: 210 15% 93%;--accent-foreground: 215 20% 15%;--destructive: 0 84% 60%;--destructive-foreground: 0 0% 98%;--border: 210 15% 88%;--input: 210 15% 88%;--ring: 212 100% 40%;--radius: .5rem}.dark{--background: 220 20% 6%;--foreground: 210 20% 95%;--card: 220 18% 10%;--card-foreground: 210 20% 95%;--popover: 220 18% 10%;--popover-foreground: 210 20% 95%;--primary: 212 100% 45%;--primary-foreground: 0 0% 100%;--secondary: 220 15% 16%;--secondary-foreground: 210 20% 90%;--muted: 220 15% 16%;--muted-foreground: 215 10% 55%;--accent: 220 15% 16%;--accent-foreground: 210 20% 95%;--destructive: 0 62% 55%;--destructive-foreground: 0 0% 98%;--border: 220 15% 18%;--input: 220 15% 18%;--ring: 212 100% 45%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:.5rem}.left-2\.5{left:.625rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-0\.5{right:.125rem}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-0\.5{top:.125rem}.top-2{top:.5rem}.top-2\.5{top:.625rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.z-10{z-index:10}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.-mx-3{margin-left:-.75rem;margin-right:-.75rem}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-2\.5{margin-bottom:.625rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-1{margin-left:.25rem}.ml-1\.5{margin-left:.375rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-row{display:table-row}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-36{height:9rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[72px\]{height:72px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-40{max-height:10rem}.max-h-48{max-height:12rem}.max-h-56{max-height:14rem}.max-h-64{max-height:16rem}.max-h-96{max-height:24rem}.max-h-\[90vh\]{max-height:90vh}.min-h-0{min-height:0px}.min-h-\[200px\]{min-height:200px}.min-h-\[280px\]{min-height:280px}.min-h-\[80px\]{min-height:80px}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-4{width:1rem}.w-40{width:10rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-\[100px\]{width:100px}.w-\[120px\]{width:120px}.w-\[1px\]{width:1px}.w-\[36px\]{width:36px}.w-\[40\%\]{width:40%}.w-\[50px\]{width:50px}.w-\[60px\]{width:60px}.w-\[70px\]{width:70px}.w-\[80px\]{width:80px}.w-\[88px\]{width:88px}.w-\[90px\]{width:90px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[1\.5rem\]{min-width:1.5rem}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-2xl{max-width:42rem}.max-w-\[200px\]{max-width:200px}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.caption-bottom{caption-side:bottom}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\[300px\,1fr\,1fr\]{grid-template-columns:300px 1fr 1fr}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-border\/50>:not([hidden])~:not([hidden]){border-color:hsl(var(--border) / .5)}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-r-2{border-right-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-amber-500\/20{border-color:#f59e0b33}.border-border{border-color:hsl(var(--border))}.border-border\/50{border-color:hsl(var(--border) / .5)}.border-border\/60{border-color:hsl(var(--border) / .6)}.border-border\/80{border-color:hsl(var(--border) / .8)}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/50{border-color:hsl(var(--destructive) / .5)}.border-emerald-500\/20{border-color:#10b98133}.border-input{border-color:hsl(var(--input))}.border-muted{border-color:hsl(var(--muted))}.border-orange-500{--tw-border-opacity: 1;border-color:rgb(249 115 22 / var(--tw-border-opacity, 1))}.border-primary{border-color:hsl(var(--primary))}.border-transparent{border-color:transparent}.border-l-emerald-500\/40{border-left-color:#10b98166}.border-l-red-500\/40{border-left-color:#ef444466}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-accent{background-color:hsl(var(--accent))}.bg-amber-500\/10{background-color:#f59e0b1a}.bg-background{background-color:hsl(var(--background))}.bg-background\/50{background-color:hsl(var(--background) / .5)}.bg-background\/90{background-color:hsl(var(--background) / .9)}.bg-black\/80{background-color:#000c}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-card\/50{background-color:hsl(var(--card) / .5)}.bg-cyan-500{--tw-bg-opacity: 1;background-color:rgb(6 182 212 / var(--tw-bg-opacity, 1))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-emerald-500\/10{background-color:#10b9811a}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/20{background-color:hsl(var(--muted) / .2)}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity, 1))}.bg-pink-500{--tw-bg-opacity: 1;background-color:rgb(236 72 153 / var(--tw-bg-opacity, 1))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity, 1))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-muted{--tw-gradient-from: hsl(var(--muted)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--muted) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-muted\/80{--tw-gradient-to: hsl(var(--muted) / .8) var(--tw-gradient-to-position)}.fill-current{fill:currentColor}.fill-yellow-400{fill:#facc15}.fill-yellow-500{fill:#eab308}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[1px\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pl-9{padding-left:2.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.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)}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-accent-foreground{color:hsl(var(--accent-foreground))}.text-amber-200{--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-emerald-500{--tw-text-opacity: 1;color:rgb(16 185 129 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/80{color:hsl(var(--foreground) / .8)}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-muted-foreground\/50{color:hsl(var(--muted-foreground) / .5)}.text-muted-foreground\/60{color:hsl(var(--muted-foreground) / .6)}.text-muted-foreground\/70{color:hsl(var(--muted-foreground) / .7)}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow-\[0_2px_0_0_hsl\(var\(--border\)\)\,inset_0_1px_0_0_hsl\(var\(--muted-foreground\)\/0\.05\)\]{--tw-shadow: 0 2px 0 0 hsl(var(--border)),inset 0 1px 0 0 hsl(var(--muted-foreground)/.05);--tw-shadow-colored: 0 2px 0 0 var(--tw-shadow-color), inset 0 1px 0 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-primary\/30{--tw-ring-color: hsl(var(--primary) / .3)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.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)}.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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.last\:border-0:last-child{border-width:0px}.last\:border-b-0:last-child{border-bottom-width:0px}.hover\:border-l-primary:hover{border-left-color:hsl(var(--primary))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-accent\/50:hover{background-color:hsl(var(--accent) / .5)}.hover\:bg-amber-500\/20:hover{background-color:#f59e0b33}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted\/30:hover{background-color:hsl(var(--muted) / .3)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-amber-200:hover{--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}.hover\:text-destructive:hover{color:hsl(var(--destructive))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-primary:hover{color:hsl(var(--primary))}.hover\:text-yellow-500:hover{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:text-destructive:focus{color:hsl(var(--destructive))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group[open] .group-open\:rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:opacity-100{opacity:1}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:hsl(var(--background))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[state\=active\]\:flex[data-state=active]{display:flex}.data-\[state\=inactive\]\:hidden[data-state=inactive]{display:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:hsl(var(--primary))}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}@media(min-width:640px){.sm\:flex{display:flex}.sm\:max-w-2xl{max-width:42rem}.sm\:max-w-3xl{max-width:48rem}.sm\:max-w-\[500px\]{max-width:500px}.sm\:max-w-lg{max-width:32rem}.sm\:max-w-md{max-width:28rem}.sm\:max-w-sm{max-width:24rem}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}@media(min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(min-width:1280px){.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y: -3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0px}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px}
|