feat(portfolio): improve landing page

This commit is contained in:
Superredstone committed 2026-08-28 20:42:48 +02:00
1 parent 452ae78564
commit bd6a22e814
24 files changed
+430 -12

No files matched your search

+5
View File
@@ -12,3 +12,8 @@ devenv.local.yaml
.pre-commit-config.yaml .pre-commit-config.yaml
*.sqlite3 *.sqlite3
*.pyc
__pycache__/
local_settings.py
uploads/
+6 -1
View File
@@ -1,4 +1,5 @@
{ {
pkgs,
... ...
}: }:
@@ -14,7 +15,11 @@
}; };
git-hooks.hooks = { git-hooks.hooks = {
ruff.enable = true; ruff = {
enable = true;
package = pkgs.ruff;
excludes = [ "migrations/" ];
};
djlint = { djlint = {
enable = true; enable = true;
name = "djlint"; name = "djlint";
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+3 -1
View File
@@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'portfolio'
] ]
MIDDLEWARE = [ MIDDLEWARE = [
@@ -119,7 +120,8 @@ USE_TZ = True
STATIC_URL = 'static/' STATIC_URL = 'static/'
STATICFILES_DIRS = [ STATICFILES_DIRS = [
BASE_DIR / "static/" BASE_DIR / "static/",
BASE_DIR / "uploads/",
] ]
# Email # Email
+4 -3
View File
@@ -5,10 +5,11 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Patrick Canal</title> <title>Patrick Canal</title>
<link rel="stylesheet" href="{% static 'css/style.css' %}">
<link rel="stylesheet" href="{% static 'tabler/tabler.min.css' %}"> <link rel="stylesheet" href="{% static 'tabler/tabler.min.css' %}">
<link rel="stylesheet" href="{% static 'fontawesome-7/css/all.min.css' %}"> <link rel="stylesheet" href="{% static 'fontawesome-7/css/all.min.css' %}">
<link rel="stylesheet" href="{% static 'css/style.css' %}"> <script src="{% static 'tabler/tabler.min.js' %}"></script>
<script href="{% static 'tabler/tabler.min.css' %}"></script> <script src="{% static 'tailwindcss/tailwindcss.min.js' %}"></script>
</head> </head>
<body class="d-flex flex-column"> <body class="d-flex flex-column">
<header class="navbar navbar-expand-md d-print-none"> <header class="navbar navbar-expand-md d-print-none">
@@ -34,7 +35,7 @@
</ul> </ul>
</div> </div>
</header> </header>
<main> <main class="mb-2">
{% block content %} {% block content %}
{% endblock content %} {% endblock content %}
</main> </main>
+5
View File
@@ -15,6 +15,8 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
""" """
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin from django.contrib import admin
from django.urls import path from django.urls import path
@@ -24,3 +26,6 @@ urlpatterns = [
path("admin/", admin.site.urls), path("admin/", admin.site.urls),
path("", IndexView.as_view(), name="index"), path("", IndexView.as_view(), name="index"),
] ]
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Binary file not shown.
+15 -1
View File
@@ -1,2 +1,16 @@
from django.contrib import admin
# Register your models here. from portfolio import models
@admin.register(models.JobExperience)
class JobExperienceAdmin(admin.ModelAdmin):
pass
@admin.register(models.JobTask)
class JobTaskAdmin(admin.ModelAdmin):
pass
@admin.register(models.Company)
class CompanyAdmin(admin.ModelAdmin):
pass
+41
View File
@@ -0,0 +1,41 @@
# Generated by Django 6.1 on 2026-08-27 14:16
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Company',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255, verbose_name='Company')),
('location', models.CharField(max_length=255, verbose_name='Location')),
('logo', models.FileField(upload_to='uploads/portfolio/companies_logo/')),
],
),
migrations.CreateModel(
name='JobExperience',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('start', models.DateField(verbose_name='Start date')),
('end', models.DateField(blank=True, null=True, verbose_name='End date')),
('company', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='portfolio.company')),
],
),
migrations.CreateModel(
name='JobTask',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('description', models.TextField(max_length=4192, verbose_name='Description')),
('job', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='portfolio.jobexperience')),
],
),
]
@@ -0,0 +1,23 @@
# Generated by Django 6.1 on 2026-08-27 19:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portfolio', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='company',
options={'verbose_name': 'Company', 'verbose_name_plural': 'Companies'},
),
migrations.AddField(
model_name='jobexperience',
name='position',
field=models.CharField(default='CHANGEME', verbose_name='Position'),
preserve_default=False,
),
]
+45
View File
@@ -1 +1,46 @@
from django.db import models
from django.utils.translation import gettext as _
class Company(models.Model):
name = models.CharField(
verbose_name=_("Company"), max_length=255, blank=False, null=False
)
location = models.CharField(
verbose_name=_("Location"), max_length=255, blank=False, null=False
)
logo = models.FileField(upload_to="uploads/portfolio/companies_logo/")
def __str__(self):
return self.name
class Meta:
verbose_name = _("Company")
verbose_name_plural = _("Companies")
class JobExperience(models.Model):
position = models.CharField(verbose_name=_("Position"), null=False, blank=False)
start = models.DateField(verbose_name=_("Start date"), null=False, blank=False)
end = models.DateField(verbose_name=_("End date"), null=True, blank=True)
company = models.ForeignKey(
to=Company, null=False, blank=False, on_delete=models.PROTECT
)
@property
def currently_employed(self) -> bool:
return self.end is None
def __str__(self):
end = self.end if self.end else "today"
return f"{self.company} from {self.start} to {end}"
class JobTask(models.Model):
job = models.ForeignKey(
to=JobExperience, null=False, blank=False, on_delete=models.CASCADE, related_name="job_tasks"
)
description = models.TextField(verbose_name=_("Description"), max_length=4192)
def __str__(self):
return self.job.__str__()
+79 -2
View File
@@ -1,8 +1,8 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load i18n %} {% load i18n static %}
{% block content %} {% block content %}
<div class="container"> <div class="container">
<div class="row h-"> <div class="row mb-4">
<div class="col"> <div class="col">
<div class="text-center mt-4"> <div class="text-center mt-4">
<h1 class="display-2 fw-bold">Patrick Canal</h1> <h1 class="display-2 fw-bold">Patrick Canal</h1>
@@ -34,5 +34,82 @@
</div> </div>
</div> </div>
</div> </div>
<div class="row">
<div class="col">
<div class="card h-full">
<div class="card-body d-flex align-items-center flex-column">
<div class="w-24 h-30">
<img src="{% static 'images/nix-logo.svg' %}" alt="NixOS logo">
</div>
<b class="fs-2">{% trans "NixOS enthusiast" %}</b>
<p class="text-secondary text-center mt-2">
{% blocktrans %}
Linux user for years my OS of choice is NixOS, embrace reproducibility!
{% endblocktrans %}
</p>
</div>
</div>
</div>
<div class="col">
<div class="card h-full">
<div class="card-body d-flex align-items-center flex-column">
<div class="w-24 h-30">
<img src="{% static 'images/foss-logo.webp' %}" alt="FOSS logo">
</div>
<b class="fs-2">{% trans "FOSS lover" %}</b>
<p class="text-secondary text-center mt-2">
{% blocktrans %}
Every line of code that I write for myself is open source<br />
Public money should be invested in public code
{% endblocktrans %}
</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-body d-flex align-items-center flex-column">
<div class="w-24 h-30 text-5xl pt-4">
<i class="fa-solid fa-server fa-2xl"></i>
</div>
<b class="fs-2">{% trans "Homelab maintainer" %}</b>
<p class="text-secondary text-center mt-2">
{% blocktrans %}
One of the projects that I am most proud of is my homelabbing activity,
check it out on my <a href="https://github.com/Superredstone/nixos/tree/main/machines/bomba" target="_blank">Github</a>
{% endblocktrans %}
</p>
</div>
</div>
</div>
</div>
<div class="hr"></div>
<div>
<h2 class="fs-1 pb-2">{% trans "Job experiences" %}</h2>
<ul class="timeline">
{% for je in job_experiences %}
<li class="timeline-event">
<div class="timeline-event-icon bg-primary">
<img src="{{ je.company.logo.url }}" alt="">
</div>
<div class="timeline-event-card card">
<div class="card-body">
<p class="text-primary mb-0">{{ je.start }} - {% if je.end %}{{ je.end }}{% else %}{% trans "today" %}{% endif %}</p>
<h2 class="fs-2">{{ je.position }}</h2>
<div class="">
<div class="text-danger">{{ je.company.name }}</div>
<div class="text-secondary">{{ je.company.location }}</div>
<div class="mt-2 text-white">
{% for jt in je.job_tasks.all %}
<div>{{ jt.description }}</div>
{% endfor %}
</div>
</div>
</div>
</div>
</li>
{% endfor %}
</ul>
</div>
</div> </div>
{% endblock %} {% endblock %}
+4 -1
View File
@@ -1,7 +1,10 @@
from django.views.generic import TemplateView from django.views.generic import TemplateView
from portfolio import models
# Create your views here.
class IndexView(TemplateView): class IndexView(TemplateView):
template_name = "index.html" template_name = "index.html"
def get_context_data(self, **kwargs):
return {"job_experiences": models.JobExperience.objects.all().order_by("-start")}
+1 -1
View File
@@ -7,7 +7,7 @@ max_line_length = 160
[tool.ruff] [tool.ruff]
exclude = [ exclude = [
"*migrations*", "*migrations/",
"settings.py", "settings.py",
] ]
+1
View File
@@ -1 +1,2 @@
django django
djlint
+4
View File
@@ -1,3 +1,7 @@
:root { :root {
margin: 0px; margin: 0px;
} }
html {
margin: 0px!important;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

+187
View File
@@ -0,0 +1,187 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="535"
height="535"
viewBox="0 0 501.56251 501.56249"
id="svg2"
version="1.1"
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25)"
sodipodi:docname="nix-snowflake-colours.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<defs
id="defs4">
<linearGradient
inkscape:collect="always"
id="linearGradient5562">
<stop
style="stop-color:#699ad7;stop-opacity:1"
offset="0"
id="stop5564" />
<stop
id="stop5566"
offset="0.24345198"
style="stop-color:#7eb1dd;stop-opacity:1" />
<stop
style="stop-color:#7ebae4;stop-opacity:1"
offset="1"
id="stop5568" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient5053">
<stop
style="stop-color:#415e9a;stop-opacity:1"
offset="0"
id="stop5055" />
<stop
id="stop5057"
offset="0.23168644"
style="stop-color:#4a6baf;stop-opacity:1" />
<stop
style="stop-color:#5277c3;stop-opacity:1"
offset="1"
id="stop5059" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5562"
id="linearGradient4328"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(70.650339,-1055.1511)"
x1="200.59668"
y1="351.41116"
x2="290.08701"
y2="506.18814" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5053"
id="linearGradient4330"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(864.69589,-1491.3405)"
x1="-584.19934"
y1="782.33563"
x2="-496.29703"
y2="937.71399" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.70904368"
inkscape:cx="99.429699"
inkscape:cy="195.33352"
inkscape:document-units="px"
inkscape:current-layer="layer3"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1050"
inkscape:window-x="1920"
inkscape:window-y="30"
inkscape:window-maximized="1"
inkscape:snap-global="true"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:showpageshadow="2"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:groupmode="layer"
id="layer3"
inkscape:label="gradient-logo"
style="display:inline;opacity:1"
transform="translate(-156.41121,933.30685)">
<g
id="g2"
transform="matrix(0.99994059,0,0,0.99994059,-0.06321798,33.188377)"
style="stroke-width:1.00006">
<path
sodipodi:nodetypes="cccccccccc"
inkscape:connector-curvature="0"
id="path3336-6"
d="m 309.54892,-710.38827 122.19683,211.67512 -56.15706,0.5268 -32.6236,-56.8692 -32.85645,56.5653 -27.90237,-0.011 -14.29086,-24.6896 46.81047,-80.4901 -33.22946,-57.8257 z"
style="opacity:1;fill:url(#linearGradient4328);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3.00018;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<use
height="100%"
width="100%"
transform="rotate(60,407.11155,-715.78724)"
id="use3439-6"
inkscape:transform-center-y="151.59082"
inkscape:transform-center-x="124.43045"
xlink:href="#path3336-6"
y="0"
x="0"
style="stroke-width:1.00006" />
<use
height="100%"
width="100%"
transform="rotate(-60,407.31177,-715.70016)"
id="use3445-0"
inkscape:transform-center-y="75.573958"
inkscape:transform-center-x="-168.20651"
xlink:href="#path3336-6"
y="0"
x="0"
style="stroke-width:1.00006" />
<use
height="100%"
width="100%"
transform="rotate(180,407.41868,-715.7565)"
id="use3449-5"
inkscape:transform-center-y="-139.94592"
inkscape:transform-center-x="59.669705"
xlink:href="#path3336-6"
y="0"
x="0"
style="stroke-width:1.00006" />
<path
style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:url(#linearGradient4330);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3.00018;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="m 309.54892,-710.38827 122.19683,211.67512 -56.15706,0.5268 -32.6236,-56.8692 -32.85645,56.5653 -27.90237,-0.011 -14.29086,-24.6896 46.81047,-80.4901 -33.22946,-57.8256 z"
id="path4260-0"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccccccc" />
<use
height="100%"
width="100%"
transform="rotate(120,407.33916,-716.08356)"
id="use4354-5"
xlink:href="#path4260-0"
y="0"
x="0"
style="display:inline;stroke-width:1.00006" />
<use
height="100%"
width="100%"
transform="rotate(-120,407.28823,-715.86995)"
id="use4362-2"
xlink:href="#path4260-0"
y="0"
x="0"
style="display:inline;stroke-width:1.00006" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.4 KiB

-1
View File
@@ -6,4 +6,3 @@
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE) * Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
*/ */
:root,[data-bs-theme=light]{--tblr-blue:#066fd1;--tblr-indigo:#4263eb;--tblr-purple:#ae3ec9;--tblr-pink:#d6336c;--tblr-red:#d63939;--tblr-orange:#f76707;--tblr-yellow:#f59f00;--tblr-green:#2fb344;--tblr-teal:#0ca678;--tblr-cyan:#17a2b8;--tblr-black:#000000;--tblr-white:#ffffff;--tblr-gray:#4b5563;--tblr-gray-dark:#1f2937;--tblr-gray-100:#f3f4f6;--tblr-gray-200:#e5e7eb;--tblr-gray-300:#d1d5db;--tblr-gray-400:#9ca3af;--tblr-gray-500:#6b7280;--tblr-gray-600:#4b5563;--tblr-gray-700:#374151;--tblr-gray-800:#1f2937;--tblr-gray-900:#111827;--tblr-primary:#066fd1;--tblr-secondary:#6b7280;--tblr-success:#2fb344;--tblr-info:#4299e1;--tblr-warning:#f59f00;--tblr-danger:#d63939;--tblr-light:#f9fafb;--tblr-dark:#1f2937;--tblr-muted:#6b7280;--tblr-blue:#066fd1;--tblr-azure:#4299e1;--tblr-indigo:#4263eb;--tblr-purple:#ae3ec9;--tblr-pink:#d6336c;--tblr-red:#d63939;--tblr-orange:#f76707;--tblr-yellow:#f59f00;--tblr-lime:#74b816;--tblr-green:#2fb344;--tblr-teal:#0ca678;--tblr-cyan:#17a2b8;--tblr-primary-rgb:6,111,209;--tblr-secondary-rgb:107,114,128;--tblr-success-rgb:47,179,68;--tblr-info-rgb:66,153,225;--tblr-warning-rgb:245,159,0;--tblr-danger-rgb:214,57,57;--tblr-light-rgb:249,250,251;--tblr-dark-rgb:31,41,55;--tblr-muted-rgb:107,114,128;--tblr-blue-rgb:6,111,209;--tblr-azure-rgb:66,153,225;--tblr-indigo-rgb:66,99,235;--tblr-purple-rgb:174,62,201;--tblr-pink-rgb:214,51,108;--tblr-red-rgb:214,57,57;--tblr-orange-rgb:247,103,7;--tblr-yellow-rgb:245,159,0;--tblr-lime-rgb:116,184,22;--tblr-green-rgb:47,179,68;--tblr-teal-rgb:12,166,120;--tblr-cyan-rgb:23,162,184;--tblr-primary-text-emphasis:rgb(2.4, 44.4, 83.6);--tblr-secondary-text-emphasis:rgb(42.8, 45.6, 51.2);--tblr-success-text-emphasis:rgb(18.8, 71.6, 27.2);--tblr-info-text-emphasis:rgb(26.4, 61.2, 90);--tblr-warning-text-emphasis:rgb(98, 63.6, 0);--tblr-danger-text-emphasis:rgb(85.6, 22.8, 22.8);--tblr-light-text-emphasis:#374151;--tblr-dark-text-emphasis:#374151;--tblr-primary-bg-subtle:rgb(205.2, 226.2, 245.8);--tblr-secondary-bg-subtle:rgb(225.4, 226.8, 229.6);--tblr-success-bg-subtle:rgb(213.4, 239.8, 217.6);--tblr-info-bg-subtle:rgb(217.2, 234.6, 249);--tblr-warning-bg-subtle:rgb(253, 235.8, 204);--tblr-danger-bg-subtle:rgb(246.8, 215.4, 215.4);--tblr-light-bg-subtle:rgb(249, 249.5, 250.5);--tblr-dark-bg-subtle:#9ca3af;--tblr-primary-border-subtle:rgb(155.4, 197.4, 236.6);--tblr-secondary-border-subtle:rgb(195.8, 198.6, 204.2);--tblr-success-border-subtle:rgb(171.8, 224.6, 180.2);--tblr-info-border-subtle:rgb(179.4, 214.2, 243);--tblr-warning-border-subtle:rgb(251, 216.6, 153);--tblr-danger-border-subtle:rgb(238.6, 175.8, 175.8);--tblr-light-border-subtle:#e5e7eb;--tblr-dark-border-subtle:#6b7280;--tblr-white-rgb:255,255,255;--tblr-black-rgb:0,0,0;--tblr-font-sans-serif:"Inter Var",Inter,-apple-system,BlinkMacSystemFont,San Francisco,Segoe UI,Roboto,Helvetica Neue,sans-serif;--tblr-font-monospace:Monaco,Consolas,Liberation Mono,Courier New,monospace;--tblr-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--tblr-body-font-family:var(--tblr-font-sans-serif);--tblr-body-font-size:0.875rem;--tblr-body-font-weight:400;--tblr-body-line-height:1.4285714286;--tblr-body-color:#1f2937;--tblr-body-color-rgb:31,41,55;--tblr-body-bg:#f9fafb;--tblr-body-bg-rgb:249,250,251;--tblr-emphasis-color:#374151;--tblr-emphasis-color-rgb:55,65,81;--tblr-secondary-color:rgba(31, 41, 55, 0.75);--tblr-secondary-color-rgb:31,41,55;--tblr-secondary-bg:#e5e7eb;--tblr-secondary-bg-rgb:229,231,235;--tblr-tertiary-color:rgba(31, 41, 55, 0.5);--tblr-tertiary-color-rgb:31,41,55;--tblr-tertiary-bg:#f3f4f6;--tblr-tertiary-bg-rgb:243,244,246;--tblr-heading-color:inherit;--tblr-link-color:#066fd1;--tblr-link-color-rgb:6,111,209;--tblr-link-decoration:none;--tblr-link-hover-color:rgb(4.8, 88.8, 167.2);--tblr-link-hover-color-rgb:5,89,167;--tblr-link-hover-decoration:underline;--tblr-code-color:light-dark(var(--tblr-gray-600), var(--tblr-gray-400));--tblr-highlight-color:#1f2937;--tblr-highlight-bg:rgb(253, 235.8, 204);--tblr-border-width:1px;--tblr-border-style:solid;--tblr-border-color:#e5e7eb;--tblr-border-color-translucent:rgba(4, 32, 69, 0.1);--tblr-border-radius:6px;--tblr-border-radius-sm:4px;--tblr-border-radius-lg:8px;--tblr-border-radius-xl:1rem;--tblr-border-radius-xxl:2rem;--tblr-border-radius-2xl:var(--tblr-border-radius-xxl);--tblr-border-radius-pill:100rem;--tblr-box-shadow:rgba(var(--tblr-body-color-rgb), 0.04) 0 2px 4px 0;--tblr-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--tblr-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--tblr-box-shadow-inset:0 0 transparent;--tblr-focus-ring-width:0.25rem;--tblr-focus-ring-opacity:0.25;--tblr-focus-ring-color:rgba(var(--tblr-primary-rgb), 0.25);--tblr-form-valid-color:#2fb344;--tblr-form-valid-border-color:#2fb344;--tblr-form-invalid-color:#d63939;--tblr-form-invalid-border-color:#d63939}[data-bs-theme=dark],body[data-bs-theme=dark] [data-bs-theme=light]{color-scheme:dark;--tblr-body-color:#e5e7eb;--tbLine truncated :root,[data-bs-theme=light]{--tblr-blue:#066fd1;--tblr-indigo:#4263eb;--tblr-purple:#ae3ec9;--tblr-pink:#d6336c;--tblr-red:#d63939;--tblr-orange:#f76707;--tblr-yellow:#f59f00;--tblr-green:#2fb344;--tblr-teal:#0ca678;--tblr-cyan:#17a2b8;--tblr-black:#000000;--tblr-white:#ffffff;--tblr-gray:#4b5563;--tblr-gray-dark:#1f2937;--tblr-gray-100:#f3f4f6;--tblr-gray-200:#e5e7eb;--tblr-gray-300:#d1d5db;--tblr-gray-400:#9ca3af;--tblr-gray-500:#6b7280;--tblr-gray-600:#4b5563;--tblr-gray-700:#374151;--tblr-gray-800:#1f2937;--tblr-gray-900:#111827;--tblr-primary:#066fd1;--tblr-secondary:#6b7280;--tblr-success:#2fb344;--tblr-info:#4299e1;--tblr-warning:#f59f00;--tblr-danger:#d63939;--tblr-light:#f9fafb;--tblr-dark:#1f2937;--tblr-muted:#6b7280;--tblr-blue:#066fd1;--tblr-azure:#4299e1;--tblr-indigo:#4263eb;--tblr-purple:#ae3ec9;--tblr-pink:#d6336c;--tblr-red:#d63939;--tblr-orange:#f76707;--tblr-yellow:#f59f00;--tblr-lime:#74b816;--tblr-green:#2fb344;--tblr-teal:#0ca678;--tblr-cyan:#17a2b8;--tblr-primary-rgb:6,111,209;--tblr-secondary-rgb:107,114,128;--tblr-success-rgb:47,179,68;--tblr-info-rgb:66,153,225;--tblr-warning-rgb:245,159,0;--tblr-danger-rgb:214,57,57;--tblr-light-rgb:249,250,251;--tblr-dark-rgb:31,41,55;--tblr-muted-rgb:107,114,128;--tblr-blue-rgb:6,111,209;--tblr-azure-rgb:66,153,225;--tblr-indigo-rgb:66,99,235;--tblr-purple-rgb:174,62,201;--tblr-pink-rgb:214,51,108;--tblr-red-rgb:214,57,57;--tblr-orange-rgb:247,103,7;--tblr-yellow-rgb:245,159,0;--tblr-lime-rgb:116,184,22;--tblr-green-rgb:47,179,68;--tblr-teal-rgb:12,166,120;--tblr-cyan-rgb:23,162,184;--tblr-primary-text-emphasis:rgb(2.4, 44.4, 83.6);--tblr-secondary-text-emphasis:rgb(42.8, 45.6, 51.2);--tblr-success-text-emphasis:rgb(18.8, 71.6, 27.2);--tblr-info-text-emphasis:rgb(26.4, 61.2, 90);--tblr-warning-text-emphasis:rgb(98, 63.6, 0);--tblr-danger-text-emphasis:rgb(85.6, 22.8, 22.8);--tblr-light-text-emphasis:#374151;--tblr-dark-text-emphasis:#374151;--tblr-primary-bg-subtle:rgb(205.2, 226.2, 245.8);--tblr-secondary-bg-subtle:rgb(225.4, 226.8, 229.6);--tblr-success-bg-subtle:rgb(213.4, 239.8, 217.6);--tblr-info-bg-subtle:rgb(217.2, 234.6, 249);--tblr-warning-bg-subtle:rgb(253, 235.8, 204);--tblr-danger-bg-subtle:rgb(246.8, 215.4, 215.4);--tblr-light-bg-subtle:rgb(249, 249.5, 250.5);--tblr-dark-bg-subtle:#9ca3af;--tblr-primary-border-subtle:rgb(155.4, 197.4, 236.6);--tblr-secondary-border-subtle:rgb(195.8, 198.6, 204.2);--tblr-success-border-subtle:rgb(171.8, 224.6, 180.2);--tblr-info-border-subtle:rgb(179.4, 214.2, 243);--tblr-warning-border-subtle:rgb(251, 216.6, 153);--tblr-danger-border-subtle:rgb(238.6, 175.8, 175.8);--tblr-light-border-subtle:#e5e7eb;--tblr-dark-border-subtle:#6b7280;--tblr-white-rgb:255,255,255;--tblr-black-rgb:0,0,0;--tblr-font-sans-serif:"Inter Var",Inter,-apple-system,BlinkMacSystemFont,San Francisco,Segoe UI,Roboto,Helvetica Neue,sans-serif;--tblr-font-monospace:Monaco,Consolas,Liberation Mono,Courier New,monospace;--tblr-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--tblr-body-font-family:var(--tblr-font-sans-serif);--tblr-body-font-size:0.875rem;--tblr-body-font-weight:400;--tblr-body-line-height:1.4285714286;--tblr-body-color:#1f2937;--tblr-body-color-rgb:31,41,55;--tblr-body-bg:#f9fafb;--tblr-body-bg-rgb:249,250,251;--tblr-emphasis-color:#374151;--tblr-emphasis-color-rgb:55,65,81;--tblr-secondary-color:rgba(31, 41, 55, 0.75);--tblr-secondary-color-rgb:31,41,55;--tblr-secondary-bg:#e5e7eb;--tblr-secondary-bg-rgb:229,231,235;--tblr-tertiary-color:rgba(31, 41, 55, 0.5);--tblr-tertiary-color-rgb:31,41,55;--tblr-tertiary-bg:#f3f4f6;--tblr-tertiary-bg-rgb:243,244,246;--tblr-heading-color:inherit;--tblr-link-color:#066fd1;--tblr-link-color-rgb:6,111,209;--tblr-link-decoration:none;--tblr-link-hover-color:rgb(4.8, 88.8, 167.2);--tblr-link-hover-color-rgb:5,89,167;--tblr-link-hover-decoration:underline;--tblr-code-color:light-dark(var(--tblr-gray-600), var(--tblr-gray-400));--tblr-highlight-color:#1f2937;--tblr-highlight-bg:rgb(253, 235.8, 204);--tblr-border-width:1px;--tblr-border-style:solid;--tblr-border-color:#e5e7eb;--tblr-border-color-translucent:rgba(4, 32, 69, 0.1);--tblr-border-radius:6px;--tblr-border-radius-sm:4px;--tblr-border-radius-lg:8px;--tblr-border-radius-xl:1rem;--tblr-border-radius-xxl:2rem;--tblr-border-radius-2xl:var(--tblr-border-radius-xxl);--tblr-border-radius-pill:100rem;--tblr-box-shadow:rgba(var(--tblr-body-color-rgb), 0.04) 0 2px 4px 0;--tblr-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--tblr-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--tblr-box-shadow-inset:0 0 transparent;--tblr-focus-ring-width:0.25rem;--tblr-focus-ring-opacity:0.25;--tblr-focus-ring-color:rgba(var(--tblr-primary-rgb), 0.25);--tblr-form-valid-color:#2fb344;--tblr-form-valid-border-color:#2fb344;--tblr-form-invalid-color:#d63939;--tblr-form-invalid-border-color:#d63939}[data-bs-theme=dark],body[data-bs-theme=dark] [data-bs-theme=light]{color-scheme:dark;--tblr-body-color:#e5e7eb;--tbLine truncated
/*# sourceMappingURL=tabler.min.css.map */
-1
View File
@@ -10,4 +10,3 @@
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/let oe=1;const re={mouseenter:"mouseover",mouseleave:"mouseout"},ae=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function le(t,e){return e&&`${e}::${oe++}`||t.uidEvent||oe++}function ce(t){const e=le(t);return t.uidEvent=e,se[e]=se[e]||{},se[e]}function he(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function ue(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=me(t);return ae.has(o)||(o=t),[n,s,o]}function de(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=ue(e,i,n);if(e in re){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=ce(t),c=l[a]||(l[a]={}),h=he(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const u=le(r,e.replace(ee,"")),d=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return _e(s,{delegateTarget:r}),n.oneOff&&ge.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return _e(n,{delegateTarget:t}),i.oneOff&&ge.off(t,n.type,e),e.apply(t,[n])}}(t,r);d.delegationSelector=o?i:null,d.callable=r,d.oneOff=s,d.uidEvent=u,c[u]=d,t.addEventListener(a,d,o)}function fe(t,e,i,n,s){const o=he(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function pe(t,e,i,n){const s=e[i]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&fe(t,e,i,r.callable,r.delegationSelector)}function me(t){return t=t.replace(ie,""),re[t]||t}const ge={on(t,e,i,n){de(t,e,i,n,!1)},one(t,e,i,n){de(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=ue(e,i,n),a=r!==e,l=ce(t),c=l[r]||{},h=e.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))pe(t,l,i,e.slice(1));for(const[i,n]of Object.entries(c)){const s=i.replace(ne,"");a&&!e.includes(s)||fe(t,l,r,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;fe(t,l,r,o,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=Qt();let s=null,o=!0,r=!0,a=!1;e!==me(e)&&n&&(s=n.Event(e,i),n(t).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=_e(new Event(e,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function _e(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function be(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function ve(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const ye={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${ve(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${ve(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1),e[i]=be(t.dataset[n])}return e},getDataAttribute:(t,e)=>be(t.getAttribute(`data-bs-${ve(e)}`))};class we{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=Bt(e)?ye.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...Bt(e)?ye.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[i,n]of Object.entries(e)){const e=t[i],s=Bt(e)?"element":Ht(e);if(!new RegExp(n).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${s}" but expected type "${n}".`)}}}class Ae extends we{constructor(t,e){super(),(t=Wt(t))&&(this._element=t,this._config=this._getConfig(e),Mt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Mt.remove(this._element,this.constructor.DATA_KEY),ge.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){Zt(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),Line truncated */let oe=1;const re={mouseenter:"mouseover",mouseleave:"mouseout"},ae=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function le(t,e){return e&&`${e}::${oe++}`||t.uidEvent||oe++}function ce(t){const e=le(t);return t.uidEvent=e,se[e]=se[e]||{},se[e]}function he(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function ue(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=me(t);return ae.has(o)||(o=t),[n,s,o]}function de(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=ue(e,i,n);if(e in re){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=ce(t),c=l[a]||(l[a]={}),h=he(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const u=le(r,e.replace(ee,"")),d=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return _e(s,{delegateTarget:r}),n.oneOff&&ge.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return _e(n,{delegateTarget:t}),i.oneOff&&ge.off(t,n.type,e),e.apply(t,[n])}}(t,r);d.delegationSelector=o?i:null,d.callable=r,d.oneOff=s,d.uidEvent=u,c[u]=d,t.addEventListener(a,d,o)}function fe(t,e,i,n,s){const o=he(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function pe(t,e,i,n){const s=e[i]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&fe(t,e,i,r.callable,r.delegationSelector)}function me(t){return t=t.replace(ie,""),re[t]||t}const ge={on(t,e,i,n){de(t,e,i,n,!1)},one(t,e,i,n){de(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=ue(e,i,n),a=r!==e,l=ce(t),c=l[r]||{},h=e.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))pe(t,l,i,e.slice(1));for(const[i,n]of Object.entries(c)){const s=i.replace(ne,"");a&&!e.includes(s)||fe(t,l,r,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;fe(t,l,r,o,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=Qt();let s=null,o=!0,r=!0,a=!1;e!==me(e)&&n&&(s=n.Event(e,i),n(t).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=_e(new Event(e,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function _e(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function be(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function ve(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const ye={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${ve(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${ve(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1),e[i]=be(t.dataset[n])}return e},getDataAttribute:(t,e)=>be(t.getAttribute(`data-bs-${ve(e)}`))};class we{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=Bt(e)?ye.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...Bt(e)?ye.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[i,n]of Object.entries(e)){const e=t[i],s=Bt(e)?"element":Ht(e);if(!new RegExp(n).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${s}" but expected type "${n}".`)}}}class Ae extends we{constructor(t,e){super(),(t=Wt(t))&&(this._element=t,this._config=this._getConfig(e),Mt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Mt.remove(this._element,this.constructor.DATA_KEY),ge.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){Zt(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),Line truncated
//# sourceMappingURL=tabler.min.js.map
+7
View File
@@ -0,0 +1,7 @@
/**
* Minified by jsDelivr using Terser v5.48.0.
* Original file: /npm/@tailwindcss/browser@4.3.3/dist/index.global.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
"use strict";(()=>{function e(e){return{kind:"combinator",value:e}}function t(e){return{kind:"complex",nodes:e}}function r(e){return{kind:"compound",nodes:e}}function n(e,t){return{kind:"function",value:e,nodes:t}}function o(e){return{kind:"list",nodes:e}}function i(e){return{kind:"selector",value:e}}function a(e){return{kind:"value",value:e}}function l(e){return"selector"===e.kind&&e.value.charCodeAt(0)===m}function s(e){if("selector"!==e.kind)return!1;switch(e.value.charCodeAt(0)){case m:case h:case d:case f:case u:case p:return!1;default:return!0}}function c(e,t=!1){let r="";for(let n of e)switch(n.kind){case"selector":case"value":r+=n.value;break;case"combinator":t||" "===n.value?r+=n.value:r+=` ${n.value} `;break;case"function":r+=`${n.value}(${c(n.nodes,t)})`;break;case"complex":case"compound":r+=c(n.nodes,t);break;case"list":r+=n.nodes.map(e=>c([e],t)).join(t?",":", ")}return r}var u=58,d=46,f=35,p=91,h=38,m=42;function g(l){l=l.replaceAll("\r\n","\n");let s,c=[],v=c,k=!1,w=[],b=null,y="";function x(e=v){return 1===e.length?e[0]:k?t(e):r(e)}function $(e){let t=v[v.length-1];"compound"===t?.kind?t.nodes.push(e):t&&"list"!==t.kind&&"combinator"!==t.kind?v[v.length-1]=r([t,e]):v.push(e)}for(let r=0;r<l.length;r++){let z=l.charCodeAt(r);switch(z){case 44:for(y.length>0&&($(i(y)),y="");r+1<l.length&&(s=l.charCodeAt(r+1),10===s||32===s||9===s);r++);if(b)b.nodes.push(x()),v=[],k=!1;else{let e=o([x(v.splice(0))]);v.push(e),b=e,v=[],k=!1}break;case 62:case 10:case 32:case 43:case 9:case 126:{y.length>0&&($(i(y)),y="");let t=r,n=r+1;for(;n<l.length&&(s=l.charCodeAt(n),62===s||10===s||32===s||43===s||9===s||126===s);n++);r=n-1;let o=l.slice(t,n).trim();if(""===o&&(0===v.length||n>=l.length||44===l.charCodeAt(n)))break;v.push(e(""===o?" ":o)),k=!0;break}case 40:{let e=n(y,[]);if(y="",":not"!==e.value&&":where"!==e.value&&":has"!==e.value&&":is"!==e.value){let t=r+1,n=0;for(let e=r+1;e<l.length;e++)if(s=l.charCodeAt(e),40!==s){if(41===s){if(0===n){r=e;break}n--}}else n++;let o=r,i=l.slice(t,o);if(":nth-child"===e.value||":nth-last-child"===e.value){let t=i.indexOf("of ");if(-1!==t){e.nodes.push(a(i.slice(0,t+3)),...g(i.slice(t+3))),y="",r=o,$(e);break}}e.nodes.push(a(i)),y="",r=o,$(e);break}$(e),w.push({target:v,currentList:b,containsCombinator:k}),v=e.nodes,k=!1,b=null;break}case 41:{y.length>0&&($(i(y)),y=""),b?b.nodes.push(x()):k&&v.splice(0,v.length,t(v.splice(0)));let e=w.pop();v=e?.target??c,b=e?.currentList??null,k=e?.containsCombinator??!1;break}case d:case u:case f:if(z===u&&":"===y){y+=l[r];break}y.length>0&&$(i(y)),y=l[r];break;case p:{y.length>0&&($(i(y)),y="");let e=r,t=0;for(let e=r+1;e<l.length;e++)if(s=l.charCodeAt(e),s!==p){if(93===s){if(0===t){r=e;break}t--}}else t++;$(i(l.slice(e,r+1)));break}case 39:case 34:{let e=r;for(let e=r+1;e<l.length;e++)if(s=l.charCodeAt(e),92===s)e+=1;else if(s===z){r=e;break}y+=l.slice(e,r+1);break}case h:case m:y.length>0&&($(i(y)),y=""),$(i(l[r]));break;case 92:y+=l[r]+l[r+1],r+=1;break;default:y+=l[r]}}return y.length>0&&$(i(y)),b?b.nodes.push(x()):k&&v.splice(0,v.length,t(v.splice(0))),c}function v(e){let t=[0];for(let r=0;r<e.length;r++)10===e.charCodeAt(r)&&t.push(r+1);return{find:function(e){let r=0,n=t.length;for(;n>0;){let o=n>>1,i=r+o;t[i]<=e?(r=i+1,n=n-o-1):n=o}return r-=1,{line:r+1,column:e-t[r]}},findOffset:function({line:e,column:r}){e-=1,e=Math.min(Math.max(e,0),t.length-1);let n=t[e],o=t[e+1]??n;return Math.min(Math.max(n+r,0),o)}}}var k=10,w=class e extends Error{loc;constructor(t,r){if(r){let e=r[0],n=v(e.code).find(r[1]);t=`${e.file}:${n.line}:${n.column+1}: ${t}`}super(t),this.name="CssSyntaxError",this.loc=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function b(e,t){let r=t?.from?{file:t.from,code:e}:null;"\ufeff"===e[0]&&(e=" "+e.slice(1));let n,o=[],i=[],a=[],l=null,s=null,c="",u="",d=0;for(let t=0;t<e.length;t++){let f=e.charCodeAt(t);if(13!==f||(n=e.charCodeAt(t+1),n!==k))if(92===f)""===c&&(d=t),c+=e.slice(t,t+2),t+=1;else if(47===f&&42===e.charCodeAt(t+1)){let o=t;for(let r=t+2;r<e.length;r++)if(n=e.charCodeAt(r),92===n)r+=1;else if(42===n&&47===e.charCodeAt(r+1)){t=r+1;break}let a=e.slice(o,t+1);if(33===a.charCodeAt(2)){let e=Z(a.slice(2,-2));i.push(e),r&&(e.src=[r,o,t+1],e.dst=[r,o,t+1])}}else if(39===f||34===f){let n=$(e,t,f,r);c+=e.slice(t,n+1),t=n}else{if((32===f||f===k||9===f)&&(n=e.charCodeAt(t+1))&&(32===n||n===k||9===n||13===n&&(n=e.charCodeAt(t+2))&&n==k))continue;if(f===k){if(0===c.length)continue;n=c.charCodeAt(c.length-1),32!==n&&n!==k&&9!==n&&(c+=" ")}else if(45===f&&45===e.charCodeAt(t+1)&&0===c.length){let i="",a=t,s=-1;for(let o=t+2;o<e.length;o++)if(n=e.charCodeAt(o),92===n)o+=1;else if(39===n||34===n)o=$(e,o,n,r);else if(47===n&&42===e.charCodeAt(o+1)){for(let t=o+2;t<e.length;t++)if(n=e.charCodeAt(t),92===n)t+=1;else if(42===n&&47===e.charCodeAt(t+1)){o=t+1;break}}else if(-1===s&&58===n)s=c.length+o-a;else{if(59===n&&0===i.length){c+=e.slice(a,o),t=o;break}if(40===n)i+=")";else if(91===n)i+="]";else if(12Line truncated