Spaces:
Sleeping
Sleeping
Commit Β·
2f33c28
1
Parent(s): a5c7cc3
Add BraTS2020 segmentation pipeline - UNet3D, FastAPI backend, React frontend, 110 epochs Mean Dice 0.557
Browse files- .env.example +2 -0
- .gitattributes +1 -0
- .gitignore +27 -0
- ExploringData.ipynb +677 -0
- README.md +173 -1
- checkpoints/best_model.pth +3 -0
- frontend/.gitignore +24 -0
- frontend/README.md +16 -0
- frontend/eslint.config.js +29 -0
- frontend/index.html +15 -0
- frontend/package-lock.json +2610 -0
- frontend/package.json +27 -0
- frontend/public/favicon.svg +1 -0
- frontend/public/icons.svg +24 -0
- frontend/src/App.css +184 -0
- frontend/src/App.jsx +406 -0
- frontend/src/assets/hero.png +0 -0
- frontend/src/assets/react.svg +1 -0
- frontend/src/assets/vite.svg +1 -0
- frontend/src/index.css +2 -0
- frontend/src/main.jsx +10 -0
- frontend/vite.config.js +7 -0
- src/dataset.py +106 -0
- src/inference.py +229 -0
- src/model.py +163 -0
- src/train.py +286 -0
.env.example
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
DATA_ROOT=path/to/MICCAI_BraTS2020_TrainingData
|
| 2 |
+
CHECKPOINT_PATH=checkpoints/best_model.pth
|
.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Dataset
|
| 2 |
+
BraTS2020_TrainingData/
|
| 3 |
+
BraTS2020_ValidationData/
|
| 4 |
+
|
| 5 |
+
# Environment
|
| 6 |
+
.env
|
| 7 |
+
|
| 8 |
+
# Python
|
| 9 |
+
__pycache__/
|
| 10 |
+
*.pyc
|
| 11 |
+
.venv/
|
| 12 |
+
|
| 13 |
+
# Checkpoints β keep best only
|
| 14 |
+
checkpoints/epoch_*.pth
|
| 15 |
+
src/checkpoints/
|
| 16 |
+
checkpoints/logs/
|
| 17 |
+
|
| 18 |
+
# Node
|
| 19 |
+
frontend/node_modules/
|
| 20 |
+
frontend/dist/
|
| 21 |
+
|
| 22 |
+
# Jupyter
|
| 23 |
+
.ipynb_checkpoints/
|
| 24 |
+
|
| 25 |
+
# OS
|
| 26 |
+
.DS_Store
|
| 27 |
+
Thumbs.db
|
ExploringData.ipynb
ADDED
|
@@ -0,0 +1,677 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "markdown",
|
| 5 |
+
"id": "3d7f60a0",
|
| 6 |
+
"metadata": {},
|
| 7 |
+
"source": [
|
| 8 |
+
"---\n",
|
| 9 |
+
"## Stage 1 β Data Exploration\n",
|
| 10 |
+
"\n",
|
| 11 |
+
"### What & Why\n",
|
| 12 |
+
"\n",
|
| 13 |
+
"Before writing any model code, we need to understand the raw data deeply. \n",
|
| 14 |
+
"BraTS2020 gives us 369 training cases, each with 4 MRI modalities and a segmentation mask.\n",
|
| 15 |
+
"\n",
|
| 16 |
+
"**Key questions this stage answers:**\n",
|
| 17 |
+
"- What shape and dtype are the volumes?\n",
|
| 18 |
+
"- Are intensity ranges consistent across modalities and patients?\n",
|
| 19 |
+
"- What is the class distribution in the segmentation masks?\n",
|
| 20 |
+
"- What label remapping is required before training?"
|
| 21 |
+
]
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"cell_type": "code",
|
| 25 |
+
"execution_count": 9,
|
| 26 |
+
"id": "9cb7973b",
|
| 27 |
+
"metadata": {},
|
| 28 |
+
"outputs": [],
|
| 29 |
+
"source": [
|
| 30 |
+
"import nibabel as nib\n",
|
| 31 |
+
"import numpy as np\n",
|
| 32 |
+
"from pathlib import Path\n",
|
| 33 |
+
"\n",
|
| 34 |
+
"# ββ Point this at your BraTS2020 training data root ββββββββββββββββββββββββββ\n",
|
| 35 |
+
"DATA_ROOT = Path(r\"D:\\personal projects\\Brain-Tumor-Segmentation-with-BraTS\\BraTS2020_TrainingData\\MICCAI_BraTS2020_TrainingData\")\n",
|
| 36 |
+
"CASE_001 = DATA_ROOT / \"BraTS20_Training_001\"\n",
|
| 37 |
+
"MODALITIES = [\"flair\", \"t1\", \"t1ce\", \"t2\"]"
|
| 38 |
+
]
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"cell_type": "markdown",
|
| 42 |
+
"id": "4de818c4",
|
| 43 |
+
"metadata": {},
|
| 44 |
+
"source": [
|
| 45 |
+
"### 1.1 Modality Exploration\n",
|
| 46 |
+
"\n",
|
| 47 |
+
"We load each modality and inspect:\n",
|
| 48 |
+
"- **Shape** β should be `(240, 240, 155)` for all BraTS2020 volumes\n",
|
| 49 |
+
"- **Intensity range** β will differ across modalities (MRI values are not standardized)\n",
|
| 50 |
+
"- **Non-zero fraction** β tells us how much of the volume is actual brain vs background air"
|
| 51 |
+
]
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"cell_type": "code",
|
| 55 |
+
"execution_count": 11,
|
| 56 |
+
"id": "5328263a",
|
| 57 |
+
"metadata": {},
|
| 58 |
+
"outputs": [
|
| 59 |
+
{
|
| 60 |
+
"name": "stdout",
|
| 61 |
+
"output_type": "stream",
|
| 62 |
+
"text": [
|
| 63 |
+
"============================================================\n",
|
| 64 |
+
"MODALITY EXPLORATION β Case 001\n",
|
| 65 |
+
"============================================================\n",
|
| 66 |
+
"\n",
|
| 67 |
+
"ββ FLAIR ββββββββββββββββββββββββββ\n",
|
| 68 |
+
" Shape: (240, 240, 155)\n",
|
| 69 |
+
" Dtype: float64\n",
|
| 70 |
+
" Global min/max: 0.0 / 625.0\n",
|
| 71 |
+
" Brain mean: 173.0\n",
|
| 72 |
+
" Brain std: 64.9\n",
|
| 73 |
+
" Non-zero voxels: 1,342,885 / 8,928,000 (15.0%)\n",
|
| 74 |
+
"\n",
|
| 75 |
+
"ββ T1 ββββββββββββββββββββββββββ\n",
|
| 76 |
+
" Shape: (240, 240, 155)\n",
|
| 77 |
+
" Dtype: float64\n",
|
| 78 |
+
" Global min/max: 0.0 / 678.0\n",
|
| 79 |
+
" Brain mean: 354.3\n",
|
| 80 |
+
" Brain std: 84.2\n",
|
| 81 |
+
" Non-zero voxels: 1,342,885 / 8,928,000 (15.0%)\n",
|
| 82 |
+
"\n",
|
| 83 |
+
"ββ T1CE ββββββββββββββββββββββββββ\n",
|
| 84 |
+
" Shape: (240, 240, 155)\n",
|
| 85 |
+
" Dtype: float64\n",
|
| 86 |
+
" Global min/max: 0.0 / 1845.0\n",
|
| 87 |
+
" Brain mean: 417.3\n",
|
| 88 |
+
" Brain std: 109.2\n",
|
| 89 |
+
" Non-zero voxels: 1,342,885 / 8,928,000 (15.0%)\n",
|
| 90 |
+
"\n",
|
| 91 |
+
"ββ T2 ββββββββββββββββββββββββββ\n",
|
| 92 |
+
" Shape: (240, 240, 155)\n",
|
| 93 |
+
" Dtype: float64\n",
|
| 94 |
+
" Global min/max: 0.0 / 376.0\n",
|
| 95 |
+
" Brain mean: 114.7\n",
|
| 96 |
+
" Brain std: 47.7\n",
|
| 97 |
+
" Non-zero voxels: 1,342,885 / 8,928,000 (15.0%)\n"
|
| 98 |
+
]
|
| 99 |
+
}
|
| 100 |
+
],
|
| 101 |
+
"source": [
|
| 102 |
+
"print(\"=\" * 60)\n",
|
| 103 |
+
"print(\"MODALITY EXPLORATION β Case 001\")\n",
|
| 104 |
+
"print(\"=\" * 60)\n",
|
| 105 |
+
"\n",
|
| 106 |
+
"for mod in MODALITIES:\n",
|
| 107 |
+
" path = CASE_001 / f\"BraTS20_Training_001_{mod}.nii\"\n",
|
| 108 |
+
" img = nib.load(str(path))\n",
|
| 109 |
+
" vol = img.get_fdata()\n",
|
| 110 |
+
"\n",
|
| 111 |
+
" brain_mask = vol > 0\n",
|
| 112 |
+
" brain_voxels = vol[brain_mask]\n",
|
| 113 |
+
"\n",
|
| 114 |
+
" print(f\"\\nββ {mod.upper()} ββββββββββββββββββββββββββ\")\n",
|
| 115 |
+
" print(f\" Shape: {vol.shape}\")\n",
|
| 116 |
+
" print(f\" Dtype: {vol.dtype}\")\n",
|
| 117 |
+
" print(f\" Global min/max: {vol.min():.1f} / {vol.max():.1f}\")\n",
|
| 118 |
+
" print(f\" Brain mean: {brain_voxels.mean():.1f}\")\n",
|
| 119 |
+
" print(f\" Brain std: {brain_voxels.std():.1f}\")\n",
|
| 120 |
+
" print(f\" Non-zero voxels: {brain_mask.sum():,} / {vol.size:,} ({100*brain_mask.mean():.1f}%)\")"
|
| 121 |
+
]
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"cell_type": "markdown",
|
| 125 |
+
"id": "6f39f11f",
|
| 126 |
+
"metadata": {},
|
| 127 |
+
"source": [
|
| 128 |
+
"**What this tells us:**\n",
|
| 129 |
+
"\n",
|
| 130 |
+
"| Observation | Implication |\n",
|
| 131 |
+
"|---|---|\n",
|
| 132 |
+
"| All modalities: shape `(240, 240, 155)` | Pre-registered β voxel [x,y,z] is the same tissue in all 4 |\n",
|
| 133 |
+
"| All modalities: same non-zero fraction | Shared brain mask β background zeroed identically |\n",
|
| 134 |
+
"| Intensity ranges differ wildly (T2 max=376 vs T1ce max=1845) | Cannot normalize globally β must normalize **per modality** |\n",
|
| 135 |
+
"| Only 15% of voxels are non-zero | 85% is background air β wasteful for model input, crop it |"
|
| 136 |
+
]
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"cell_type": "markdown",
|
| 140 |
+
"id": "0ba37626",
|
| 141 |
+
"metadata": {},
|
| 142 |
+
"source": [
|
| 143 |
+
"### 1.2 Segmentation Mask Exploration\n",
|
| 144 |
+
"\n",
|
| 145 |
+
"The segmentation mask is the ground truth we train against. \n",
|
| 146 |
+
"BraTS2020 uses label set `{0, 1, 2, 4}` β note the jump from 2 to 4. \n",
|
| 147 |
+
"This is a historical artifact. Our model uses output indices `{0,1,2,3}`, so we must remap `4 β 3`."
|
| 148 |
+
]
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"cell_type": "code",
|
| 152 |
+
"execution_count": 12,
|
| 153 |
+
"id": "ab2d226c",
|
| 154 |
+
"metadata": {},
|
| 155 |
+
"outputs": [
|
| 156 |
+
{
|
| 157 |
+
"name": "stdout",
|
| 158 |
+
"output_type": "stream",
|
| 159 |
+
"text": [
|
| 160 |
+
"============================================================\n",
|
| 161 |
+
"SEGMENTATION MASK β Case 001\n",
|
| 162 |
+
"============================================================\n",
|
| 163 |
+
"\n",
|
| 164 |
+
" Shape: (240, 240, 155)\n",
|
| 165 |
+
" Unique labels: [0 1 2 4]\n",
|
| 166 |
+
"\n",
|
| 167 |
+
" Label 0: 8,716,021 voxels (97.63%) β Background\n",
|
| 168 |
+
" Label 1: 15,443 voxels (0.17%) β Necrotic Core (NCR)\n",
|
| 169 |
+
" Label 2: 168,794 voxels (1.89%) β Peritumoral Edema (ED)\n",
|
| 170 |
+
" Label 4: 27,742 voxels (0.31%) β Enhancing Tumor (ET)\n",
|
| 171 |
+
"\n",
|
| 172 |
+
"β Label 4 will be remapped to 3 before training\n",
|
| 173 |
+
" Tumor burden: 2.37% of all voxels\n"
|
| 174 |
+
]
|
| 175 |
+
}
|
| 176 |
+
],
|
| 177 |
+
"source": [
|
| 178 |
+
"print(\"=\" * 60)\n",
|
| 179 |
+
"print(\"SEGMENTATION MASK β Case 001\")\n",
|
| 180 |
+
"print(\"=\" * 60)\n",
|
| 181 |
+
"\n",
|
| 182 |
+
"seg_path = CASE_001 / \"BraTS20_Training_001_seg.nii\"\n",
|
| 183 |
+
"seg = nib.load(str(seg_path)).get_fdata().astype(np.uint8)\n",
|
| 184 |
+
"\n",
|
| 185 |
+
"CLASS_NAMES = {0: \"Background\", 1: \"Necrotic Core (NCR)\", 2: \"Peritumoral Edema (ED)\", 4: \"Enhancing Tumor (ET)\"}\n",
|
| 186 |
+
"\n",
|
| 187 |
+
"print(f\"\\n Shape: {seg.shape}\")\n",
|
| 188 |
+
"print(f\" Unique labels: {np.unique(seg)}\")\n",
|
| 189 |
+
"print()\n",
|
| 190 |
+
"\n",
|
| 191 |
+
"for label in np.unique(seg):\n",
|
| 192 |
+
" count = int((seg == label).sum())\n",
|
| 193 |
+
" pct = 100 * count / seg.size\n",
|
| 194 |
+
" name = CLASS_NAMES.get(label, \"Unknown\")\n",
|
| 195 |
+
" print(f\" Label {label}: {count:>10,} voxels ({pct:.2f}%) β {name}\")\n",
|
| 196 |
+
"\n",
|
| 197 |
+
"print()\n",
|
| 198 |
+
"print(\"β Label 4 will be remapped to 3 before training\")\n",
|
| 199 |
+
"print(f\" Tumor burden: {100*(seg>0).mean():.2f}% of all voxels\")"
|
| 200 |
+
]
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"cell_type": "markdown",
|
| 204 |
+
"id": "982c8657",
|
| 205 |
+
"metadata": {},
|
| 206 |
+
"source": [
|
| 207 |
+
"**Why class imbalance matters:**\n",
|
| 208 |
+
"\n",
|
| 209 |
+
"Background = **97.63%** of all voxels. If a model predicts background everywhere, \n",
|
| 210 |
+
"it achieves 97.63% voxel accuracy β and is clinically worthless.\n",
|
| 211 |
+
"\n",
|
| 212 |
+
"This is why we use **Dice loss** instead of cross-entropy alone. \n",
|
| 213 |
+
"Dice is computed per class independently, so a 0.17% class gets the same gradient weight as a 50% class.\n",
|
| 214 |
+
"\n",
|
| 215 |
+
"**BraTS Evaluation Regions** (derived from the 4 labels):\n",
|
| 216 |
+
"\n",
|
| 217 |
+
"| Region | Labels | Clinical meaning |\n",
|
| 218 |
+
"|---|---|---|\n",
|
| 219 |
+
"| Whole Tumor (WT) | {1, 2, 3} | Total tumor extent |\n",
|
| 220 |
+
"| Tumor Core (TC) | {1, 3} | Surgically targetable core |\n",
|
| 221 |
+
"| Enhancing Tumor (ET) | {3} | Active, contrast-enhancing tumor |"
|
| 222 |
+
]
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"cell_type": "markdown",
|
| 226 |
+
"id": "240e9ec0",
|
| 227 |
+
"metadata": {},
|
| 228 |
+
"source": [
|
| 229 |
+
"### 1.3 Affine and Voxel Size"
|
| 230 |
+
]
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"cell_type": "code",
|
| 234 |
+
"execution_count": 13,
|
| 235 |
+
"id": "4cf35669",
|
| 236 |
+
"metadata": {},
|
| 237 |
+
"outputs": [
|
| 238 |
+
{
|
| 239 |
+
"name": "stdout",
|
| 240 |
+
"output_type": "stream",
|
| 241 |
+
"text": [
|
| 242 |
+
"Affine matrix (voxel β world space in mm):\n",
|
| 243 |
+
"[[ -1. -0. -0. 0.]\n",
|
| 244 |
+
" [ -0. -1. -0. 239.]\n",
|
| 245 |
+
" [ 0. 0. 1. 0.]\n",
|
| 246 |
+
" [ 0. 0. 0. 1.]]\n",
|
| 247 |
+
"\n",
|
| 248 |
+
"Voxel size: [1. 1. 1.] mm\n",
|
| 249 |
+
"β Isotropic 1mmΒ³ β each voxel represents 1mm Γ 1mm Γ 1mm of brain tissue\n"
|
| 250 |
+
]
|
| 251 |
+
}
|
| 252 |
+
],
|
| 253 |
+
"source": [
|
| 254 |
+
"img = nib.load(str(CASE_001 / \"BraTS20_Training_001_t1.nii\"))\n",
|
| 255 |
+
"print(\"Affine matrix (voxel β world space in mm):\")\n",
|
| 256 |
+
"print(img.affine)\n",
|
| 257 |
+
"print()\n",
|
| 258 |
+
"voxel_size = np.sqrt((img.affine[:3, :3] ** 2).sum(axis=0))\n",
|
| 259 |
+
"print(f\"Voxel size: {voxel_size} mm\")\n",
|
| 260 |
+
"print(\"β Isotropic 1mmΒ³ β each voxel represents 1mm Γ 1mm Γ 1mm of brain tissue\")"
|
| 261 |
+
]
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"cell_type": "markdown",
|
| 265 |
+
"id": "043bd59d",
|
| 266 |
+
"metadata": {},
|
| 267 |
+
"source": [
|
| 268 |
+
"---\n",
|
| 269 |
+
"## Stage 2 β Z-Score Normalization\n",
|
| 270 |
+
"\n",
|
| 271 |
+
"### What & Why\n",
|
| 272 |
+
"\n",
|
| 273 |
+
"MRI intensity values are **scanner-dependent** β they have no universal physical meaning. \n",
|
| 274 |
+
"A voxel value of 400 in one patient's T1 is not comparable to 400 in another patient's T1, \n",
|
| 275 |
+
"even on the same scanner.\n",
|
| 276 |
+
"\n",
|
| 277 |
+
"**Why not min-max normalization?** \n",
|
| 278 |
+
"MRI volumes often contain bright artifact voxels (motion, metal implants) that would \n",
|
| 279 |
+
"compress the entire meaningful intensity range into a tiny interval.\n",
|
| 280 |
+
"\n",
|
| 281 |
+
"**The solution: Z-score normalization restricted to brain voxels**\n",
|
| 282 |
+
"\n",
|
| 283 |
+
"$$z = \\frac{x - \\mu_{brain}}{\\sigma_{brain}}$$\n",
|
| 284 |
+
"\n",
|
| 285 |
+
"Where $\\mu_{brain}$ and $\\sigma_{brain}$ are computed only over non-zero (brain) voxels. \n",
|
| 286 |
+
"Background voxels are left at exactly 0.\n",
|
| 287 |
+
"\n",
|
| 288 |
+
"**Applied independently per modality** β never across modalities, never globally."
|
| 289 |
+
]
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"cell_type": "markdown",
|
| 293 |
+
"id": "db65548c",
|
| 294 |
+
"metadata": {},
|
| 295 |
+
"source": [
|
| 296 |
+
"### 2.1 Implementation\n",
|
| 297 |
+
"\n",
|
| 298 |
+
"```\n",
|
| 299 |
+
"CODE β EXPLANATION\n",
|
| 300 |
+
"ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n",
|
| 301 |
+
"def normalize_modality(vol): β Takes one 3D modality volume.\n",
|
| 302 |
+
" β\n",
|
| 303 |
+
" brain_mask = vol > 0 β Boolean mask: True = brain tissue.\n",
|
| 304 |
+
" β Background air is exactly 0 in BraTS.\n",
|
| 305 |
+
" β\n",
|
| 306 |
+
" if brain_mask.sum() == 0: β Edge case: completely empty volume\n",
|
| 307 |
+
" return vol β (e.g. a corrupted scan). Return as-is,\n",
|
| 308 |
+
" β do not divide by zero.\n",
|
| 309 |
+
" β\n",
|
| 310 |
+
" mu = vol[brain_mask].mean() β Mean of brain voxels ONLY.\n",
|
| 311 |
+
" std = vol[brain_mask].std() + 1e-8 β Std of brain voxels + epsilon.\n",
|
| 312 |
+
" β Epsilon (1e-8) prevents div-by-zero\n",
|
| 313 |
+
" β if a region has constant intensity.\n",
|
| 314 |
+
" β\n",
|
| 315 |
+
" normalized = np.zeros_like(vol) β Start with all zeros β background\n",
|
| 316 |
+
" β stays 0 without any extra masking step.\n",
|
| 317 |
+
" β\n",
|
| 318 |
+
" normalized[brain_mask] = ( β Apply z-score to brain voxels only.\n",
|
| 319 |
+
" vol[brain_mask] - mu) / std β Background is untouched (stays 0).\n",
|
| 320 |
+
" β\n",
|
| 321 |
+
" return normalized β Returns float32 array, same shape.\n",
|
| 322 |
+
"```"
|
| 323 |
+
]
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"cell_type": "code",
|
| 327 |
+
"execution_count": 14,
|
| 328 |
+
"id": "99c728a6",
|
| 329 |
+
"metadata": {},
|
| 330 |
+
"outputs": [],
|
| 331 |
+
"source": [
|
| 332 |
+
"def normalize_modality(vol: np.ndarray) -> np.ndarray:\n",
|
| 333 |
+
" \"\"\"\n",
|
| 334 |
+
" Z-score normalization restricted to brain (non-zero) voxels.\n",
|
| 335 |
+
" Background voxels remain exactly 0.\n",
|
| 336 |
+
" Returns float32 array of same shape as input.\n",
|
| 337 |
+
" \"\"\"\n",
|
| 338 |
+
" brain_mask = vol > 0\n",
|
| 339 |
+
"\n",
|
| 340 |
+
" if brain_mask.sum() == 0:\n",
|
| 341 |
+
" return vol\n",
|
| 342 |
+
"\n",
|
| 343 |
+
" mu = vol[brain_mask].mean()\n",
|
| 344 |
+
" std = vol[brain_mask].std() + 1e-8\n",
|
| 345 |
+
"\n",
|
| 346 |
+
" normalized = np.zeros_like(vol)\n",
|
| 347 |
+
" normalized[brain_mask] = (vol[brain_mask] - mu) / std\n",
|
| 348 |
+
" return normalized.astype(np.float32)"
|
| 349 |
+
]
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"cell_type": "markdown",
|
| 353 |
+
"id": "7c0de8b9",
|
| 354 |
+
"metadata": {},
|
| 355 |
+
"source": [
|
| 356 |
+
"### 2.2 Verification"
|
| 357 |
+
]
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"cell_type": "code",
|
| 361 |
+
"execution_count": 15,
|
| 362 |
+
"id": "0b472c6c",
|
| 363 |
+
"metadata": {},
|
| 364 |
+
"outputs": [
|
| 365 |
+
{
|
| 366 |
+
"name": "stdout",
|
| 367 |
+
"output_type": "stream",
|
| 368 |
+
"text": [
|
| 369 |
+
"=== BEFORE ===\n",
|
| 370 |
+
" mean (brain): 417.33\n",
|
| 371 |
+
" std (brain): 109.19\n",
|
| 372 |
+
" background: 0.0000\n",
|
| 373 |
+
"\n",
|
| 374 |
+
"=== AFTER ===\n",
|
| 375 |
+
" mean (brain): 0.0000 β should be β 0.0\n",
|
| 376 |
+
" std (brain): 1.0000 β should be β 1.0\n",
|
| 377 |
+
" background: 0.0000 β should be exactly 0.0\n",
|
| 378 |
+
" dtype: float32 β should be float32\n",
|
| 379 |
+
"\n",
|
| 380 |
+
"=== EDGE CASES ===\n",
|
| 381 |
+
" Empty volume β all zeros: True\n",
|
| 382 |
+
" Empty volume β no NaN: True\n",
|
| 383 |
+
" Background unchanged: True\n",
|
| 384 |
+
"\n",
|
| 385 |
+
"=== ALL MODALITIES ===\n",
|
| 386 |
+
" flair β mean: +0.0000 std: 1.0000\n",
|
| 387 |
+
" t1 β mean: -0.0000 std: 1.0000\n",
|
| 388 |
+
" t1ce β mean: +0.0000 std: 1.0000\n",
|
| 389 |
+
" t2 β mean: +0.0000 std: 1.0000\n"
|
| 390 |
+
]
|
| 391 |
+
}
|
| 392 |
+
],
|
| 393 |
+
"source": [
|
| 394 |
+
"vol = nib.load(str(CASE_001 / \"BraTS20_Training_001_t1ce.nii\")).get_fdata().astype(np.float32)\n",
|
| 395 |
+
"norm = normalize_modality(vol)\n",
|
| 396 |
+
"brain_mask = vol > 0\n",
|
| 397 |
+
"\n",
|
| 398 |
+
"print(\"=== BEFORE ===\")\n",
|
| 399 |
+
"print(f\" mean (brain): {vol[brain_mask].mean():.2f}\")\n",
|
| 400 |
+
"print(f\" std (brain): {vol[brain_mask].std():.2f}\")\n",
|
| 401 |
+
"print(f\" background: {vol[0,0,0]:.4f}\")\n",
|
| 402 |
+
"\n",
|
| 403 |
+
"print(\"\\n=== AFTER ===\")\n",
|
| 404 |
+
"print(f\" mean (brain): {norm[brain_mask].mean():.4f} β should be β 0.0\")\n",
|
| 405 |
+
"print(f\" std (brain): {norm[brain_mask].std():.4f} β should be β 1.0\")\n",
|
| 406 |
+
"print(f\" background: {norm[0,0,0]:.4f} β should be exactly 0.0\")\n",
|
| 407 |
+
"print(f\" dtype: {norm.dtype} β should be float32\")\n",
|
| 408 |
+
"\n",
|
| 409 |
+
"print(\"\\n=== EDGE CASES ===\")\n",
|
| 410 |
+
"empty = np.zeros((240,240,155), dtype=np.float32)\n",
|
| 411 |
+
"result = normalize_modality(empty)\n",
|
| 412 |
+
"print(f\" Empty volume β all zeros: {(result == 0).all()}\")\n",
|
| 413 |
+
"print(f\" Empty volume β no NaN: {np.isfinite(result).all()}\")\n",
|
| 414 |
+
"print(f\" Background unchanged: {((vol==0) == (norm==0)).all()}\")\n",
|
| 415 |
+
"\n",
|
| 416 |
+
"print(\"\\n=== ALL MODALITIES ===\")\n",
|
| 417 |
+
"for mod in MODALITIES:\n",
|
| 418 |
+
" v = nib.load(str(CASE_001 / f\"BraTS20_Training_001_{mod}.nii\")).get_fdata().astype(np.float32)\n",
|
| 419 |
+
" n = normalize_modality(v)\n",
|
| 420 |
+
" b = v > 0\n",
|
| 421 |
+
" print(f\" {mod:6s} β mean: {n[b].mean():+.4f} std: {n[b].std():.4f}\")"
|
| 422 |
+
]
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"cell_type": "markdown",
|
| 426 |
+
"id": "aa3d4a27",
|
| 427 |
+
"metadata": {},
|
| 428 |
+
"source": [
|
| 429 |
+
"---\n",
|
| 430 |
+
"## Stage 3 β Bounding Box Crop + Resize\n",
|
| 431 |
+
"\n",
|
| 432 |
+
"### What & Why\n",
|
| 433 |
+
"\n",
|
| 434 |
+
"After normalization the volume is still `(240, 240, 155)` β but 85% is background zeros. \n",
|
| 435 |
+
"Feeding this to a 3D U-Net wastes GPU memory on empty space.\n",
|
| 436 |
+
"\n",
|
| 437 |
+
"**Two-step spatial reduction:**\n",
|
| 438 |
+
"1. **Crop** β find the smallest box enclosing all non-zero voxels, discard the rest\n",
|
| 439 |
+
"2. **Resize** β interpolate the cropped volume to a fixed `(128, 128, 128)` shape\n",
|
| 440 |
+
"\n",
|
| 441 |
+
"Why `128Β³`? It is the largest cube that fits in ~10GB VRAM with batch size 1 \n",
|
| 442 |
+
"using a standard 3D U-Net with 32 base filters. It is the de facto BraTS standard."
|
| 443 |
+
]
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"cell_type": "markdown",
|
| 447 |
+
"id": "43ed8cf3",
|
| 448 |
+
"metadata": {},
|
| 449 |
+
"source": [
|
| 450 |
+
"### 3.1 Crop to Brain Bounding Box\n",
|
| 451 |
+
"\n",
|
| 452 |
+
"```\n",
|
| 453 |
+
"CODE β EXPLANATION\n",
|
| 454 |
+
"ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n",
|
| 455 |
+
"def crop_to_brain(vol): β Takes a 3D numpy array.\n",
|
| 456 |
+
" β\n",
|
| 457 |
+
" coords = np.array( β np.where(vol > 0) returns a tuple of\n",
|
| 458 |
+
" np.where(vol > 0)) β 3 arrays: (x_idxs, y_idxs, z_idxs)\n",
|
| 459 |
+
" β for every non-zero voxel.\n",
|
| 460 |
+
" β np.array(...) stacks them β shape (3, N)\n",
|
| 461 |
+
" β\n",
|
| 462 |
+
" if coords.shape[1] == 0: β Edge case: empty volume.\n",
|
| 463 |
+
" return vol β\n",
|
| 464 |
+
" β\n",
|
| 465 |
+
" mins = coords.min(axis=1) β Minimum index along each axis.\n",
|
| 466 |
+
" β shape (3,) β [x_min, y_min, z_min]\n",
|
| 467 |
+
" β\n",
|
| 468 |
+
" maxs = coords.max(axis=1) + 1 β Maximum index + 1.\n",
|
| 469 |
+
" β +1 because Python slicing is exclusive\n",
|
| 470 |
+
" β at the end: vol[0:228] gives indices\n",
|
| 471 |
+
" β 0..227, so last brain voxel at 227\n",
|
| 472 |
+
" β requires stop index 228.\n",
|
| 473 |
+
" β\n",
|
| 474 |
+
" return vol[mins[0]:maxs[0], β Slice all three axes simultaneously.\n",
|
| 475 |
+
" mins[1]:maxs[1], β Returns a VIEW β no data is copied\n",
|
| 476 |
+
" mins[2]:maxs[2]] β until you modify it.\n",
|
| 477 |
+
"```"
|
| 478 |
+
]
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"cell_type": "code",
|
| 482 |
+
"execution_count": 16,
|
| 483 |
+
"id": "e678433b",
|
| 484 |
+
"metadata": {},
|
| 485 |
+
"outputs": [],
|
| 486 |
+
"source": [
|
| 487 |
+
"def crop_to_brain(vol: np.ndarray) -> np.ndarray:\n",
|
| 488 |
+
" \"\"\"\n",
|
| 489 |
+
" Crop vol to the tight bounding box of non-zero voxels.\n",
|
| 490 |
+
" If the volume is entirely zero, return it unchanged.\n",
|
| 491 |
+
" \"\"\"\n",
|
| 492 |
+
" coords = np.array(np.where(vol > 0))\n",
|
| 493 |
+
"\n",
|
| 494 |
+
" if coords.shape[1] == 0:\n",
|
| 495 |
+
" return vol\n",
|
| 496 |
+
"\n",
|
| 497 |
+
" mins = coords.min(axis=1)\n",
|
| 498 |
+
" maxs = coords.max(axis=1) + 1\n",
|
| 499 |
+
"\n",
|
| 500 |
+
" return vol[mins[0]:maxs[0],\n",
|
| 501 |
+
" mins[1]:maxs[1],\n",
|
| 502 |
+
" mins[2]:maxs[2]]"
|
| 503 |
+
]
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"cell_type": "markdown",
|
| 507 |
+
"id": "effdef0f",
|
| 508 |
+
"metadata": {},
|
| 509 |
+
"source": [
|
| 510 |
+
"### 3.2 Resize to Target Shape\n",
|
| 511 |
+
"\n",
|
| 512 |
+
"```\n",
|
| 513 |
+
"CODE β EXPLANATION\n",
|
| 514 |
+
"ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n",
|
| 515 |
+
"def resize_volume(vol, target= β Default target is 128Β³.\n",
|
| 516 |
+
" (128,128,128)): β\n",
|
| 517 |
+
" β\n",
|
| 518 |
+
" tensor = torch.from_numpy(vol) β numpy β torch tensor\n",
|
| 519 |
+
" .float() β Ensure float32\n",
|
| 520 |
+
" .unsqueeze(0) β Add batch dim: (H,W,D) β (1,H,W,D)\n",
|
| 521 |
+
" .unsqueeze(0) β Add channel dim: (1,H,W,D) β (1,1,H,W,D)\n",
|
| 522 |
+
" β F.interpolate requires (B,C,H,W,D)\n",
|
| 523 |
+
" β\n",
|
| 524 |
+
" resized = F.interpolate( β\n",
|
| 525 |
+
" tensor, β\n",
|
| 526 |
+
" size=target, β Target spatial shape (128,128,128)\n",
|
| 527 |
+
" mode=\"trilinear\", β 3D equivalent of bilinear for images.\n",
|
| 528 |
+
" β Smoothly interpolates between voxels.\n",
|
| 529 |
+
" β (nearest-neighbor creates blocky edges)\n",
|
| 530 |
+
" align_corners=True β Corner voxels of input map exactly to\n",
|
| 531 |
+
" ) β corner voxels of output.\n",
|
| 532 |
+
" β Use True for medical data β ensures\n",
|
| 533 |
+
" β image and mask stay aligned when resized\n",
|
| 534 |
+
" β separately.\n",
|
| 535 |
+
" β\n",
|
| 536 |
+
" return resized.squeeze().numpy() β Remove batch+channel dims, back to numpy\n",
|
| 537 |
+
" β (1,1,128,128,128) β (128,128,128)\n",
|
| 538 |
+
"```"
|
| 539 |
+
]
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"cell_type": "code",
|
| 543 |
+
"execution_count": 17,
|
| 544 |
+
"id": "9eecc011",
|
| 545 |
+
"metadata": {},
|
| 546 |
+
"outputs": [],
|
| 547 |
+
"source": [
|
| 548 |
+
"import torch\n",
|
| 549 |
+
"import torch.nn.functional as F\n",
|
| 550 |
+
"\n",
|
| 551 |
+
"def resize_volume(vol: np.ndarray, target=(128, 128, 128)) -> np.ndarray:\n",
|
| 552 |
+
" \"\"\"\n",
|
| 553 |
+
" Resize a 3D volume to target shape using trilinear interpolation.\n",
|
| 554 |
+
" align_corners=True ensures image and mask stay aligned when resized separately.\n",
|
| 555 |
+
" \"\"\"\n",
|
| 556 |
+
" tensor = torch.from_numpy(vol).float().unsqueeze(0).unsqueeze(0)\n",
|
| 557 |
+
"\n",
|
| 558 |
+
" resized = F.interpolate(\n",
|
| 559 |
+
" tensor,\n",
|
| 560 |
+
" size=target,\n",
|
| 561 |
+
" mode=\"trilinear\",\n",
|
| 562 |
+
" align_corners=True\n",
|
| 563 |
+
" )\n",
|
| 564 |
+
"\n",
|
| 565 |
+
" return resized.squeeze().numpy()"
|
| 566 |
+
]
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"cell_type": "markdown",
|
| 570 |
+
"id": "46e24f22",
|
| 571 |
+
"metadata": {},
|
| 572 |
+
"source": [
|
| 573 |
+
"### 3.3 Verification"
|
| 574 |
+
]
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"cell_type": "code",
|
| 578 |
+
"execution_count": 18,
|
| 579 |
+
"id": "c1c0211d",
|
| 580 |
+
"metadata": {},
|
| 581 |
+
"outputs": [
|
| 582 |
+
{
|
| 583 |
+
"name": "stdout",
|
| 584 |
+
"output_type": "stream",
|
| 585 |
+
"text": [
|
| 586 |
+
"=== CROP ===\n",
|
| 587 |
+
" Before: (240, 240, 155)\n",
|
| 588 |
+
" After: (136, 171, 132) β smaller than (240,240,155)\n",
|
| 589 |
+
" Brain signal preserved: True\n",
|
| 590 |
+
"\n",
|
| 591 |
+
"=== RESIZE ===\n",
|
| 592 |
+
" Shape: (128, 128, 128) β should be (128, 128, 128)\n",
|
| 593 |
+
" dtype: float32 β should be float32\n",
|
| 594 |
+
"\n",
|
| 595 |
+
"=== FULL PIPELINE β ALL 4 MODALITIES ===\n",
|
| 596 |
+
" (normalize β crop β resize)\n",
|
| 597 |
+
" flair β (128, 128, 128) mean=+0.932\n",
|
| 598 |
+
" t1 β (128, 128, 128) mean=+0.747\n",
|
| 599 |
+
" t1ce β (128, 128, 128) mean=+0.659\n",
|
| 600 |
+
" t2 β (128, 128, 128) mean=+0.993\n",
|
| 601 |
+
"\n",
|
| 602 |
+
" β
All modalities: (128, 128, 128) β ready for model input\n"
|
| 603 |
+
]
|
| 604 |
+
}
|
| 605 |
+
],
|
| 606 |
+
"source": [
|
| 607 |
+
"vol = nib.load(str(CASE_001 / \"BraTS20_Training_001_t1ce.nii\")).get_fdata().astype(np.float32)\n",
|
| 608 |
+
"norm = normalize_modality(vol)\n",
|
| 609 |
+
"\n",
|
| 610 |
+
"print(\"=== CROP ===\")\n",
|
| 611 |
+
"cropped = crop_to_brain(norm)\n",
|
| 612 |
+
"print(f\" Before: {norm.shape}\")\n",
|
| 613 |
+
"print(f\" After: {cropped.shape} β smaller than (240,240,155)\")\n",
|
| 614 |
+
"print(f\" Brain signal preserved: {(cropped > 0).any()}\")\n",
|
| 615 |
+
"\n",
|
| 616 |
+
"print(\"\\n=== RESIZE ===\")\n",
|
| 617 |
+
"resized = resize_volume(cropped, target=(128, 128, 128))\n",
|
| 618 |
+
"print(f\" Shape: {resized.shape} β should be (128, 128, 128)\")\n",
|
| 619 |
+
"print(f\" dtype: {resized.dtype} β should be float32\")\n",
|
| 620 |
+
"\n",
|
| 621 |
+
"print(\"\\n=== FULL PIPELINE β ALL 4 MODALITIES ===\")\n",
|
| 622 |
+
"print(\" (normalize β crop β resize)\")\n",
|
| 623 |
+
"for mod in MODALITIES:\n",
|
| 624 |
+
" v = nib.load(str(CASE_001 / f\"BraTS20_Training_001_{mod}.nii\")).get_fdata().astype(np.float32)\n",
|
| 625 |
+
" processed = resize_volume(crop_to_brain(normalize_modality(v)))\n",
|
| 626 |
+
" print(f\" {mod:6s} β {processed.shape} mean={processed[processed>0].mean():+.3f}\")\n",
|
| 627 |
+
"print(\"\\n β
All modalities: (128, 128, 128) β ready for model input\")"
|
| 628 |
+
]
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"cell_type": "markdown",
|
| 632 |
+
"id": "0787a97b",
|
| 633 |
+
"metadata": {},
|
| 634 |
+
"source": [
|
| 635 |
+
"### 3.4 What the Pipeline Does to One Voxel\n",
|
| 636 |
+
"\n",
|
| 637 |
+
"```\n",
|
| 638 |
+
"Raw T1ce voxel at brain center: 417.3 (scanner units, meaningless across patients)\n",
|
| 639 |
+
"After normalize_modality: 0.0 (mean of brain = 0, std = 1)\n",
|
| 640 |
+
"After crop_to_brain: 0.0 (same value, just in smaller array)\n",
|
| 641 |
+
"After resize_volume: ~0.0 (trilinear blend of neighbors, close to 0)\n",
|
| 642 |
+
"```\n",
|
| 643 |
+
"\n",
|
| 644 |
+
"```\n",
|
| 645 |
+
"Raw T1ce bright tumor voxel: 1845.0\n",
|
| 646 |
+
"After normalize_modality: 12.9 (13 standard deviations above brain mean)\n",
|
| 647 |
+
"After crop_to_brain: 12.9\n",
|
| 648 |
+
"After resize_volume: ~12.0 (slightly smoothed by interpolation)\n",
|
| 649 |
+
"```\n",
|
| 650 |
+
"\n",
|
| 651 |
+
"The tumor voxel remains a strong outlier even after normalization. \n",
|
| 652 |
+
"That outlier signal is exactly what the model learns to detect."
|
| 653 |
+
]
|
| 654 |
+
}
|
| 655 |
+
],
|
| 656 |
+
"metadata": {
|
| 657 |
+
"kernelspec": {
|
| 658 |
+
"display_name": "Python 3",
|
| 659 |
+
"language": "python",
|
| 660 |
+
"name": "python3"
|
| 661 |
+
},
|
| 662 |
+
"language_info": {
|
| 663 |
+
"codemirror_mode": {
|
| 664 |
+
"name": "ipython",
|
| 665 |
+
"version": 3
|
| 666 |
+
},
|
| 667 |
+
"file_extension": ".py",
|
| 668 |
+
"mimetype": "text/x-python",
|
| 669 |
+
"name": "python",
|
| 670 |
+
"nbconvert_exporter": "python",
|
| 671 |
+
"pygments_lexer": "ipython3",
|
| 672 |
+
"version": "3.11.0"
|
| 673 |
+
}
|
| 674 |
+
},
|
| 675 |
+
"nbformat": 4,
|
| 676 |
+
"nbformat_minor": 5
|
| 677 |
+
}
|
README.md
CHANGED
|
@@ -1 +1,173 @@
|
|
| 1 |
-
# Brain
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Brain Tumor Segmentation with BraTS2020
|
| 2 |
+
|
| 3 |
+
A full-stack 3D U-Net implementation for brain tumor segmentation, built step-by-step as a learning project.
|
| 4 |
+
|
| 5 |
+
**Stack:** Python Β· NumPy Β· PyTorch Β· nibabel Β· FastAPI Β· React
|
| 6 |
+
**Dataset:** [BraTS2020](https://www.med.upenn.edu/cbica/brats2020/) β 369 training cases, 125 validation cases
|
| 7 |
+
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
## Progress
|
| 11 |
+
|
| 12 |
+
| Stage | Topic | Status |
|
| 13 |
+
|-------|-------|--------|
|
| 14 |
+
| 1 | Data exploration | β
Complete |
|
| 15 |
+
| 2 | Z-score normalization | β
Complete |
|
| 16 |
+
| 3 | Bounding box crop + resize | β
Complete |
|
| 17 |
+
| 4 | PyTorch Dataset class | π Next |
|
| 18 |
+
| 5 | 3D U-Net architecture | π Coming |
|
| 19 |
+
| 6 | Training loop | π Coming |
|
| 20 |
+
| 7 | FastAPI backend | π Coming |
|
| 21 |
+
| 8 | React frontend | π Coming |
|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
## Dataset Structure
|
| 26 |
+
|
| 27 |
+
```
|
| 28 |
+
MICCAI_BraTS2020_TrainingData/
|
| 29 |
+
BraTS20_Training_001/
|
| 30 |
+
BraTS20_Training_001_flair.nii β FLAIR modality
|
| 31 |
+
BraTS20_Training_001_t1.nii β T1-weighted
|
| 32 |
+
BraTS20_Training_001_t1ce.nii β T1 contrast-enhanced
|
| 33 |
+
BraTS20_Training_001_t2.nii β T2-weighted
|
| 34 |
+
BraTS20_Training_001_seg.nii β Ground truth mask
|
| 35 |
+
BraTS20_Training_002/ ...
|
| 36 |
+
BraTS20_Training_369/
|
| 37 |
+
name_mapping.csv
|
| 38 |
+
survival_info.csv
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
Each volume: shape `(240, 240, 155)`, voxel size `1mmΒ³`, dtype `float64`.
|
| 42 |
+
|
| 43 |
+
---
|
| 44 |
+
|
| 45 |
+
## Key Data Facts
|
| 46 |
+
|
| 47 |
+
| Property | Value | Implication |
|
| 48 |
+
|---|---|---|
|
| 49 |
+
| Volume shape | `(240, 240, 155)` | 3D β needs 3D-aware model |
|
| 50 |
+
| Voxel size | `1mm Γ 1mm Γ 1mm` | Physical scale known |
|
| 51 |
+
| Non-zero fraction | ~15% | Crop before feeding to model |
|
| 52 |
+
| Intensity ranges | T2: 0β376, T1ce: 0β1845 | Normalize per modality |
|
| 53 |
+
| Seg labels | `{0, 1, 2, 4}` | Remap `4 β 3` before training |
|
| 54 |
+
| Background fraction | 97.63% | Cross-entropy alone won't work |
|
| 55 |
+
|
| 56 |
+
### MRI Modalities
|
| 57 |
+
|
| 58 |
+
| Modality | Measures | Key use |
|
| 59 |
+
|---|---|---|
|
| 60 |
+
| T1 | Longitudinal relaxation | Anatomy, grey/white matter |
|
| 61 |
+
| T1ce | T1 + gadolinium contrast | Active tumor (enhancing) |
|
| 62 |
+
| T2 | Transverse relaxation | Fluid, edema |
|
| 63 |
+
| FLAIR | T2 with free water suppressed | Peritumoral edema |
|
| 64 |
+
|
| 65 |
+
### BraTS Evaluation Regions
|
| 66 |
+
|
| 67 |
+
| Region | Labels | Clinical meaning |
|
| 68 |
+
|---|---|---|
|
| 69 |
+
| Whole Tumor (WT) | {1, 2, 3} | Total tumor extent |
|
| 70 |
+
| Tumor Core (TC) | {1, 3} | Surgically targetable core |
|
| 71 |
+
| Enhancing Tumor (ET) | {3} | Active, contrast-enhancing |
|
| 72 |
+
|
| 73 |
+
---
|
| 74 |
+
|
| 75 |
+
## Preprocessing Pipeline
|
| 76 |
+
|
| 77 |
+
```
|
| 78 |
+
Raw NIfTI (240Γ240Γ155)
|
| 79 |
+
β
|
| 80 |
+
normalize_modality() Z-score within brain mask, per modality
|
| 81 |
+
β
|
| 82 |
+
crop_to_brain() Tight bounding box of non-zero voxels
|
| 83 |
+
β
|
| 84 |
+
resize_volume() Trilinear interpolation β (128, 128, 128)
|
| 85 |
+
β
|
| 86 |
+
Model input tensor (4, 128, 128, 128) β 4 modalities stacked
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
### normalize_modality
|
| 90 |
+
|
| 91 |
+
```python
|
| 92 |
+
def normalize_modality(vol: np.ndarray) -> np.ndarray:
|
| 93 |
+
brain_mask = vol > 0
|
| 94 |
+
if brain_mask.sum() == 0:
|
| 95 |
+
return vol
|
| 96 |
+
mu = vol[brain_mask].mean()
|
| 97 |
+
std = vol[brain_mask].std() + 1e-8
|
| 98 |
+
normalized = np.zeros_like(vol)
|
| 99 |
+
normalized[brain_mask] = (vol[brain_mask] - mu) / std
|
| 100 |
+
return normalized.astype(np.float32)
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
**Why:** MRI intensities are scanner-dependent β not comparable across patients or modalities.
|
| 104 |
+
Z-score within brain voxels gives each modality meanβ0, stdβ1, regardless of scanner.
|
| 105 |
+
|
| 106 |
+
### crop_to_brain
|
| 107 |
+
|
| 108 |
+
```python
|
| 109 |
+
def crop_to_brain(vol: np.ndarray) -> np.ndarray:
|
| 110 |
+
coords = np.array(np.where(vol > 0))
|
| 111 |
+
if coords.shape[1] == 0:
|
| 112 |
+
return vol
|
| 113 |
+
mins = coords.min(axis=1)
|
| 114 |
+
maxs = coords.max(axis=1) + 1
|
| 115 |
+
return vol[mins[0]:maxs[0], mins[1]:maxs[1], mins[2]:maxs[2]]
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
**Why:** 85% of the `(240,240,155)` volume is background air.
|
| 119 |
+
Cropping to the brain bounding box removes wasted computation and GPU memory.
|
| 120 |
+
|
| 121 |
+
### resize_volume
|
| 122 |
+
|
| 123 |
+
```python
|
| 124 |
+
def resize_volume(vol: np.ndarray, target=(128, 128, 128)) -> np.ndarray:
|
| 125 |
+
tensor = torch.from_numpy(vol).float().unsqueeze(0).unsqueeze(0)
|
| 126 |
+
resized = F.interpolate(tensor, size=target, mode="trilinear", align_corners=True)
|
| 127 |
+
return resized.squeeze().numpy()
|
| 128 |
+
```
|
| 129 |
+
|
| 130 |
+
**Why:** The model requires fixed-size input. `128Β³` fits in ~10GB VRAM at batch size 1.
|
| 131 |
+
`align_corners=True` ensures image and mask stay spatially aligned when resized separately.
|
| 132 |
+
|
| 133 |
+
---
|
| 134 |
+
|
| 135 |
+
## Segmentation Label Remapping
|
| 136 |
+
|
| 137 |
+
BraTS2020 raw labels: `{0, 1, 2, 4}` β no label 3 (historical artifact).
|
| 138 |
+
Before training, remap `4 β 3` so model output indices match:
|
| 139 |
+
|
| 140 |
+
```python
|
| 141 |
+
seg[seg == 4] = 3
|
| 142 |
+
# 0 = background
|
| 143 |
+
# 1 = necrotic core (NCR)
|
| 144 |
+
# 2 = peritumoral edema (ED)
|
| 145 |
+
# 3 = enhancing tumor (ET) β was label 4 in raw file
|
| 146 |
+
```
|
| 147 |
+
|
| 148 |
+
---
|
| 149 |
+
|
| 150 |
+
## Repository Structure
|
| 151 |
+
|
| 152 |
+
```
|
| 153 |
+
Brain-Tumor-Segmentation-with-BraTS/
|
| 154 |
+
βββ README.md
|
| 155 |
+
βββ BraTS2020_Tutorial.ipynb β learning notebook (grows each stage)
|
| 156 |
+
βββ src/
|
| 157 |
+
β βββ preprocessing.py β normalize, crop, resize β
|
| 158 |
+
β βββ dataset.py β BraTSDataset π
|
| 159 |
+
β βββ model.py β 3D U-Net π
|
| 160 |
+
β βββ train.py β training loop π
|
| 161 |
+
β βββ inference.py β inference + export π
|
| 162 |
+
βββ backend/ β FastAPI server π
|
| 163 |
+
βββ frontend/ β React UI π
|
| 164 |
+
```
|
| 165 |
+
|
| 166 |
+
---
|
| 167 |
+
|
| 168 |
+
## References
|
| 169 |
+
|
| 170 |
+
- [BraTS 2020 Challenge](https://www.med.upenn.edu/cbica/brats2020/)
|
| 171 |
+
- [3D U-Net (ΓiΓ§ek et al., 2016)](https://arxiv.org/abs/1606.06650)
|
| 172 |
+
- [nnU-Net (Isensee et al., 2021)](https://www.nature.com/articles/s41592-020-01008-z)
|
| 173 |
+
- [Dice Loss for medical segmentation](https://arxiv.org/abs/1707.03237)
|
checkpoints/best_model.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9b82ab27f5111b3a88c9c9071c5412dd670ccd7bc9ba31a0afcaafd2a5c0145d
|
| 3 |
+
size 315966437
|
frontend/.gitignore
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Logs
|
| 2 |
+
logs
|
| 3 |
+
*.log
|
| 4 |
+
npm-debug.log*
|
| 5 |
+
yarn-debug.log*
|
| 6 |
+
yarn-error.log*
|
| 7 |
+
pnpm-debug.log*
|
| 8 |
+
lerna-debug.log*
|
| 9 |
+
|
| 10 |
+
node_modules
|
| 11 |
+
dist
|
| 12 |
+
dist-ssr
|
| 13 |
+
*.local
|
| 14 |
+
|
| 15 |
+
# Editor directories and files
|
| 16 |
+
.vscode/*
|
| 17 |
+
!.vscode/extensions.json
|
| 18 |
+
.idea
|
| 19 |
+
.DS_Store
|
| 20 |
+
*.suo
|
| 21 |
+
*.ntvs*
|
| 22 |
+
*.njsproj
|
| 23 |
+
*.sln
|
| 24 |
+
*.sw?
|
frontend/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# React + Vite
|
| 2 |
+
|
| 3 |
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
| 4 |
+
|
| 5 |
+
Currently, two official plugins are available:
|
| 6 |
+
|
| 7 |
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
|
| 8 |
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
|
| 9 |
+
|
| 10 |
+
## React Compiler
|
| 11 |
+
|
| 12 |
+
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
| 13 |
+
|
| 14 |
+
## Expanding the ESLint configuration
|
| 15 |
+
|
| 16 |
+
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project.
|
frontend/eslint.config.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import js from '@eslint/js'
|
| 2 |
+
import globals from 'globals'
|
| 3 |
+
import reactHooks from 'eslint-plugin-react-hooks'
|
| 4 |
+
import reactRefresh from 'eslint-plugin-react-refresh'
|
| 5 |
+
import { defineConfig, globalIgnores } from 'eslint/config'
|
| 6 |
+
|
| 7 |
+
export default defineConfig([
|
| 8 |
+
globalIgnores(['dist']),
|
| 9 |
+
{
|
| 10 |
+
files: ['**/*.{js,jsx}'],
|
| 11 |
+
extends: [
|
| 12 |
+
js.configs.recommended,
|
| 13 |
+
reactHooks.configs.flat.recommended,
|
| 14 |
+
reactRefresh.configs.vite,
|
| 15 |
+
],
|
| 16 |
+
languageOptions: {
|
| 17 |
+
ecmaVersion: 2020,
|
| 18 |
+
globals: globals.browser,
|
| 19 |
+
parserOptions: {
|
| 20 |
+
ecmaVersion: 'latest',
|
| 21 |
+
ecmaFeatures: { jsx: true },
|
| 22 |
+
sourceType: 'module',
|
| 23 |
+
},
|
| 24 |
+
},
|
| 25 |
+
rules: {
|
| 26 |
+
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
|
| 27 |
+
},
|
| 28 |
+
},
|
| 29 |
+
])
|
frontend/index.html
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 5 |
+
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500&display=swap" rel="stylesheet">
|
| 6 |
+
<meta charset="UTF-8" />
|
| 7 |
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
| 8 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 9 |
+
<title>frontend</title>
|
| 10 |
+
</head>
|
| 11 |
+
<body>
|
| 12 |
+
<div id="root"></div>
|
| 13 |
+
<script type="module" src="/src/main.jsx"></script>
|
| 14 |
+
</body>
|
| 15 |
+
</html>
|
frontend/package-lock.json
ADDED
|
@@ -0,0 +1,2610 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "frontend",
|
| 3 |
+
"version": "0.0.0",
|
| 4 |
+
"lockfileVersion": 3,
|
| 5 |
+
"requires": true,
|
| 6 |
+
"packages": {
|
| 7 |
+
"": {
|
| 8 |
+
"name": "frontend",
|
| 9 |
+
"version": "0.0.0",
|
| 10 |
+
"dependencies": {
|
| 11 |
+
"react": "^19.2.4",
|
| 12 |
+
"react-dom": "^19.2.4"
|
| 13 |
+
},
|
| 14 |
+
"devDependencies": {
|
| 15 |
+
"@eslint/js": "^9.39.4",
|
| 16 |
+
"@types/react": "^19.2.14",
|
| 17 |
+
"@types/react-dom": "^19.2.3",
|
| 18 |
+
"@vitejs/plugin-react": "^6.0.0",
|
| 19 |
+
"eslint": "^9.39.4",
|
| 20 |
+
"eslint-plugin-react-hooks": "^7.0.1",
|
| 21 |
+
"eslint-plugin-react-refresh": "^0.5.2",
|
| 22 |
+
"globals": "^17.4.0",
|
| 23 |
+
"vite": "^8.0.0"
|
| 24 |
+
}
|
| 25 |
+
},
|
| 26 |
+
"node_modules/@babel/code-frame": {
|
| 27 |
+
"version": "7.29.0",
|
| 28 |
+
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz",
|
| 29 |
+
"integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==",
|
| 30 |
+
"dev": true,
|
| 31 |
+
"license": "MIT",
|
| 32 |
+
"dependencies": {
|
| 33 |
+
"@babel/helper-validator-identifier": "^7.28.5",
|
| 34 |
+
"js-tokens": "^4.0.0",
|
| 35 |
+
"picocolors": "^1.1.1"
|
| 36 |
+
},
|
| 37 |
+
"engines": {
|
| 38 |
+
"node": ">=6.9.0"
|
| 39 |
+
}
|
| 40 |
+
},
|
| 41 |
+
"node_modules/@babel/compat-data": {
|
| 42 |
+
"version": "7.29.0",
|
| 43 |
+
"resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz",
|
| 44 |
+
"integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==",
|
| 45 |
+
"dev": true,
|
| 46 |
+
"license": "MIT",
|
| 47 |
+
"engines": {
|
| 48 |
+
"node": ">=6.9.0"
|
| 49 |
+
}
|
| 50 |
+
},
|
| 51 |
+
"node_modules/@babel/core": {
|
| 52 |
+
"version": "7.29.0",
|
| 53 |
+
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz",
|
| 54 |
+
"integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==",
|
| 55 |
+
"dev": true,
|
| 56 |
+
"license": "MIT",
|
| 57 |
+
"dependencies": {
|
| 58 |
+
"@babel/code-frame": "^7.29.0",
|
| 59 |
+
"@babel/generator": "^7.29.0",
|
| 60 |
+
"@babel/helper-compilation-targets": "^7.28.6",
|
| 61 |
+
"@babel/helper-module-transforms": "^7.28.6",
|
| 62 |
+
"@babel/helpers": "^7.28.6",
|
| 63 |
+
"@babel/parser": "^7.29.0",
|
| 64 |
+
"@babel/template": "^7.28.6",
|
| 65 |
+
"@babel/traverse": "^7.29.0",
|
| 66 |
+
"@babel/types": "^7.29.0",
|
| 67 |
+
"@jridgewell/remapping": "^2.3.5",
|
| 68 |
+
"convert-source-map": "^2.0.0",
|
| 69 |
+
"debug": "^4.1.0",
|
| 70 |
+
"gensync": "^1.0.0-beta.2",
|
| 71 |
+
"json5": "^2.2.3",
|
| 72 |
+
"semver": "^6.3.1"
|
| 73 |
+
},
|
| 74 |
+
"engines": {
|
| 75 |
+
"node": ">=6.9.0"
|
| 76 |
+
},
|
| 77 |
+
"funding": {
|
| 78 |
+
"type": "opencollective",
|
| 79 |
+
"url": "https://opencollective.com/babel"
|
| 80 |
+
}
|
| 81 |
+
},
|
| 82 |
+
"node_modules/@babel/generator": {
|
| 83 |
+
"version": "7.29.1",
|
| 84 |
+
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz",
|
| 85 |
+
"integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==",
|
| 86 |
+
"dev": true,
|
| 87 |
+
"license": "MIT",
|
| 88 |
+
"dependencies": {
|
| 89 |
+
"@babel/parser": "^7.29.0",
|
| 90 |
+
"@babel/types": "^7.29.0",
|
| 91 |
+
"@jridgewell/gen-mapping": "^0.3.12",
|
| 92 |
+
"@jridgewell/trace-mapping": "^0.3.28",
|
| 93 |
+
"jsesc": "^3.0.2"
|
| 94 |
+
},
|
| 95 |
+
"engines": {
|
| 96 |
+
"node": ">=6.9.0"
|
| 97 |
+
}
|
| 98 |
+
},
|
| 99 |
+
"node_modules/@babel/helper-compilation-targets": {
|
| 100 |
+
"version": "7.28.6",
|
| 101 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz",
|
| 102 |
+
"integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==",
|
| 103 |
+
"dev": true,
|
| 104 |
+
"license": "MIT",
|
| 105 |
+
"dependencies": {
|
| 106 |
+
"@babel/compat-data": "^7.28.6",
|
| 107 |
+
"@babel/helper-validator-option": "^7.27.1",
|
| 108 |
+
"browserslist": "^4.24.0",
|
| 109 |
+
"lru-cache": "^5.1.1",
|
| 110 |
+
"semver": "^6.3.1"
|
| 111 |
+
},
|
| 112 |
+
"engines": {
|
| 113 |
+
"node": ">=6.9.0"
|
| 114 |
+
}
|
| 115 |
+
},
|
| 116 |
+
"node_modules/@babel/helper-globals": {
|
| 117 |
+
"version": "7.28.0",
|
| 118 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",
|
| 119 |
+
"integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",
|
| 120 |
+
"dev": true,
|
| 121 |
+
"license": "MIT",
|
| 122 |
+
"engines": {
|
| 123 |
+
"node": ">=6.9.0"
|
| 124 |
+
}
|
| 125 |
+
},
|
| 126 |
+
"node_modules/@babel/helper-module-imports": {
|
| 127 |
+
"version": "7.28.6",
|
| 128 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz",
|
| 129 |
+
"integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==",
|
| 130 |
+
"dev": true,
|
| 131 |
+
"license": "MIT",
|
| 132 |
+
"dependencies": {
|
| 133 |
+
"@babel/traverse": "^7.28.6",
|
| 134 |
+
"@babel/types": "^7.28.6"
|
| 135 |
+
},
|
| 136 |
+
"engines": {
|
| 137 |
+
"node": ">=6.9.0"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"node_modules/@babel/helper-module-transforms": {
|
| 141 |
+
"version": "7.28.6",
|
| 142 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz",
|
| 143 |
+
"integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==",
|
| 144 |
+
"dev": true,
|
| 145 |
+
"license": "MIT",
|
| 146 |
+
"dependencies": {
|
| 147 |
+
"@babel/helper-module-imports": "^7.28.6",
|
| 148 |
+
"@babel/helper-validator-identifier": "^7.28.5",
|
| 149 |
+
"@babel/traverse": "^7.28.6"
|
| 150 |
+
},
|
| 151 |
+
"engines": {
|
| 152 |
+
"node": ">=6.9.0"
|
| 153 |
+
},
|
| 154 |
+
"peerDependencies": {
|
| 155 |
+
"@babel/core": "^7.0.0"
|
| 156 |
+
}
|
| 157 |
+
},
|
| 158 |
+
"node_modules/@babel/helper-string-parser": {
|
| 159 |
+
"version": "7.27.1",
|
| 160 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
|
| 161 |
+
"integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
|
| 162 |
+
"dev": true,
|
| 163 |
+
"license": "MIT",
|
| 164 |
+
"engines": {
|
| 165 |
+
"node": ">=6.9.0"
|
| 166 |
+
}
|
| 167 |
+
},
|
| 168 |
+
"node_modules/@babel/helper-validator-identifier": {
|
| 169 |
+
"version": "7.28.5",
|
| 170 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",
|
| 171 |
+
"integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",
|
| 172 |
+
"dev": true,
|
| 173 |
+
"license": "MIT",
|
| 174 |
+
"engines": {
|
| 175 |
+
"node": ">=6.9.0"
|
| 176 |
+
}
|
| 177 |
+
},
|
| 178 |
+
"node_modules/@babel/helper-validator-option": {
|
| 179 |
+
"version": "7.27.1",
|
| 180 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",
|
| 181 |
+
"integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",
|
| 182 |
+
"dev": true,
|
| 183 |
+
"license": "MIT",
|
| 184 |
+
"engines": {
|
| 185 |
+
"node": ">=6.9.0"
|
| 186 |
+
}
|
| 187 |
+
},
|
| 188 |
+
"node_modules/@babel/helpers": {
|
| 189 |
+
"version": "7.28.6",
|
| 190 |
+
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz",
|
| 191 |
+
"integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==",
|
| 192 |
+
"dev": true,
|
| 193 |
+
"license": "MIT",
|
| 194 |
+
"dependencies": {
|
| 195 |
+
"@babel/template": "^7.28.6",
|
| 196 |
+
"@babel/types": "^7.28.6"
|
| 197 |
+
},
|
| 198 |
+
"engines": {
|
| 199 |
+
"node": ">=6.9.0"
|
| 200 |
+
}
|
| 201 |
+
},
|
| 202 |
+
"node_modules/@babel/parser": {
|
| 203 |
+
"version": "7.29.0",
|
| 204 |
+
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.0.tgz",
|
| 205 |
+
"integrity": "sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==",
|
| 206 |
+
"dev": true,
|
| 207 |
+
"license": "MIT",
|
| 208 |
+
"dependencies": {
|
| 209 |
+
"@babel/types": "^7.29.0"
|
| 210 |
+
},
|
| 211 |
+
"bin": {
|
| 212 |
+
"parser": "bin/babel-parser.js"
|
| 213 |
+
},
|
| 214 |
+
"engines": {
|
| 215 |
+
"node": ">=6.0.0"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"node_modules/@babel/template": {
|
| 219 |
+
"version": "7.28.6",
|
| 220 |
+
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz",
|
| 221 |
+
"integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==",
|
| 222 |
+
"dev": true,
|
| 223 |
+
"license": "MIT",
|
| 224 |
+
"dependencies": {
|
| 225 |
+
"@babel/code-frame": "^7.28.6",
|
| 226 |
+
"@babel/parser": "^7.28.6",
|
| 227 |
+
"@babel/types": "^7.28.6"
|
| 228 |
+
},
|
| 229 |
+
"engines": {
|
| 230 |
+
"node": ">=6.9.0"
|
| 231 |
+
}
|
| 232 |
+
},
|
| 233 |
+
"node_modules/@babel/traverse": {
|
| 234 |
+
"version": "7.29.0",
|
| 235 |
+
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz",
|
| 236 |
+
"integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==",
|
| 237 |
+
"dev": true,
|
| 238 |
+
"license": "MIT",
|
| 239 |
+
"dependencies": {
|
| 240 |
+
"@babel/code-frame": "^7.29.0",
|
| 241 |
+
"@babel/generator": "^7.29.0",
|
| 242 |
+
"@babel/helper-globals": "^7.28.0",
|
| 243 |
+
"@babel/parser": "^7.29.0",
|
| 244 |
+
"@babel/template": "^7.28.6",
|
| 245 |
+
"@babel/types": "^7.29.0",
|
| 246 |
+
"debug": "^4.3.1"
|
| 247 |
+
},
|
| 248 |
+
"engines": {
|
| 249 |
+
"node": ">=6.9.0"
|
| 250 |
+
}
|
| 251 |
+
},
|
| 252 |
+
"node_modules/@babel/types": {
|
| 253 |
+
"version": "7.29.0",
|
| 254 |
+
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz",
|
| 255 |
+
"integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==",
|
| 256 |
+
"dev": true,
|
| 257 |
+
"license": "MIT",
|
| 258 |
+
"dependencies": {
|
| 259 |
+
"@babel/helper-string-parser": "^7.27.1",
|
| 260 |
+
"@babel/helper-validator-identifier": "^7.28.5"
|
| 261 |
+
},
|
| 262 |
+
"engines": {
|
| 263 |
+
"node": ">=6.9.0"
|
| 264 |
+
}
|
| 265 |
+
},
|
| 266 |
+
"node_modules/@emnapi/core": {
|
| 267 |
+
"version": "1.9.0",
|
| 268 |
+
"resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.9.0.tgz",
|
| 269 |
+
"integrity": "sha512-0DQ98G9ZQZOxfUcQn1waV2yS8aWdZ6kJMbYCJB3oUBecjWYO1fqJ+a1DRfPF3O5JEkwqwP1A9QEN/9mYm2Yd0w==",
|
| 270 |
+
"dev": true,
|
| 271 |
+
"license": "MIT",
|
| 272 |
+
"optional": true,
|
| 273 |
+
"dependencies": {
|
| 274 |
+
"@emnapi/wasi-threads": "1.2.0",
|
| 275 |
+
"tslib": "^2.4.0"
|
| 276 |
+
}
|
| 277 |
+
},
|
| 278 |
+
"node_modules/@emnapi/runtime": {
|
| 279 |
+
"version": "1.9.0",
|
| 280 |
+
"resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.0.tgz",
|
| 281 |
+
"integrity": "sha512-QN75eB0IH2ywSpRpNddCRfQIhmJYBCJ1x5Lb3IscKAL8bMnVAKnRg8dCoXbHzVLLH7P38N2Z3mtulB7W0J0FKw==",
|
| 282 |
+
"dev": true,
|
| 283 |
+
"license": "MIT",
|
| 284 |
+
"optional": true,
|
| 285 |
+
"dependencies": {
|
| 286 |
+
"tslib": "^2.4.0"
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
"node_modules/@emnapi/wasi-threads": {
|
| 290 |
+
"version": "1.2.0",
|
| 291 |
+
"resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.0.tgz",
|
| 292 |
+
"integrity": "sha512-N10dEJNSsUx41Z6pZsXU8FjPjpBEplgH24sfkmITrBED1/U2Esum9F3lfLrMjKHHjmi557zQn7kR9R+XWXu5Rg==",
|
| 293 |
+
"dev": true,
|
| 294 |
+
"license": "MIT",
|
| 295 |
+
"optional": true,
|
| 296 |
+
"dependencies": {
|
| 297 |
+
"tslib": "^2.4.0"
|
| 298 |
+
}
|
| 299 |
+
},
|
| 300 |
+
"node_modules/@eslint-community/eslint-utils": {
|
| 301 |
+
"version": "4.9.1",
|
| 302 |
+
"resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz",
|
| 303 |
+
"integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==",
|
| 304 |
+
"dev": true,
|
| 305 |
+
"license": "MIT",
|
| 306 |
+
"dependencies": {
|
| 307 |
+
"eslint-visitor-keys": "^3.4.3"
|
| 308 |
+
},
|
| 309 |
+
"engines": {
|
| 310 |
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
| 311 |
+
},
|
| 312 |
+
"funding": {
|
| 313 |
+
"url": "https://opencollective.com/eslint"
|
| 314 |
+
},
|
| 315 |
+
"peerDependencies": {
|
| 316 |
+
"eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
|
| 317 |
+
}
|
| 318 |
+
},
|
| 319 |
+
"node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {
|
| 320 |
+
"version": "3.4.3",
|
| 321 |
+
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
|
| 322 |
+
"integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
|
| 323 |
+
"dev": true,
|
| 324 |
+
"license": "Apache-2.0",
|
| 325 |
+
"engines": {
|
| 326 |
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
| 327 |
+
},
|
| 328 |
+
"funding": {
|
| 329 |
+
"url": "https://opencollective.com/eslint"
|
| 330 |
+
}
|
| 331 |
+
},
|
| 332 |
+
"node_modules/@eslint-community/regexpp": {
|
| 333 |
+
"version": "4.12.2",
|
| 334 |
+
"resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",
|
| 335 |
+
"integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",
|
| 336 |
+
"dev": true,
|
| 337 |
+
"license": "MIT",
|
| 338 |
+
"engines": {
|
| 339 |
+
"node": "^12.0.0 || ^14.0.0 || >=16.0.0"
|
| 340 |
+
}
|
| 341 |
+
},
|
| 342 |
+
"node_modules/@eslint/config-array": {
|
| 343 |
+
"version": "0.21.2",
|
| 344 |
+
"resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.2.tgz",
|
| 345 |
+
"integrity": "sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==",
|
| 346 |
+
"dev": true,
|
| 347 |
+
"license": "Apache-2.0",
|
| 348 |
+
"dependencies": {
|
| 349 |
+
"@eslint/object-schema": "^2.1.7",
|
| 350 |
+
"debug": "^4.3.1",
|
| 351 |
+
"minimatch": "^3.1.5"
|
| 352 |
+
},
|
| 353 |
+
"engines": {
|
| 354 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 355 |
+
}
|
| 356 |
+
},
|
| 357 |
+
"node_modules/@eslint/config-helpers": {
|
| 358 |
+
"version": "0.4.2",
|
| 359 |
+
"resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz",
|
| 360 |
+
"integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==",
|
| 361 |
+
"dev": true,
|
| 362 |
+
"license": "Apache-2.0",
|
| 363 |
+
"dependencies": {
|
| 364 |
+
"@eslint/core": "^0.17.0"
|
| 365 |
+
},
|
| 366 |
+
"engines": {
|
| 367 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 368 |
+
}
|
| 369 |
+
},
|
| 370 |
+
"node_modules/@eslint/core": {
|
| 371 |
+
"version": "0.17.0",
|
| 372 |
+
"resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz",
|
| 373 |
+
"integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==",
|
| 374 |
+
"dev": true,
|
| 375 |
+
"license": "Apache-2.0",
|
| 376 |
+
"dependencies": {
|
| 377 |
+
"@types/json-schema": "^7.0.15"
|
| 378 |
+
},
|
| 379 |
+
"engines": {
|
| 380 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 381 |
+
}
|
| 382 |
+
},
|
| 383 |
+
"node_modules/@eslint/eslintrc": {
|
| 384 |
+
"version": "3.3.5",
|
| 385 |
+
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.5.tgz",
|
| 386 |
+
"integrity": "sha512-4IlJx0X0qftVsN5E+/vGujTRIFtwuLbNsVUe7TO6zYPDR1O6nFwvwhIKEKSrl6dZchmYBITazxKoUYOjdtjlRg==",
|
| 387 |
+
"dev": true,
|
| 388 |
+
"license": "MIT",
|
| 389 |
+
"dependencies": {
|
| 390 |
+
"ajv": "^6.14.0",
|
| 391 |
+
"debug": "^4.3.2",
|
| 392 |
+
"espree": "^10.0.1",
|
| 393 |
+
"globals": "^14.0.0",
|
| 394 |
+
"ignore": "^5.2.0",
|
| 395 |
+
"import-fresh": "^3.2.1",
|
| 396 |
+
"js-yaml": "^4.1.1",
|
| 397 |
+
"minimatch": "^3.1.5",
|
| 398 |
+
"strip-json-comments": "^3.1.1"
|
| 399 |
+
},
|
| 400 |
+
"engines": {
|
| 401 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 402 |
+
},
|
| 403 |
+
"funding": {
|
| 404 |
+
"url": "https://opencollective.com/eslint"
|
| 405 |
+
}
|
| 406 |
+
},
|
| 407 |
+
"node_modules/@eslint/eslintrc/node_modules/globals": {
|
| 408 |
+
"version": "14.0.0",
|
| 409 |
+
"resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz",
|
| 410 |
+
"integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==",
|
| 411 |
+
"dev": true,
|
| 412 |
+
"license": "MIT",
|
| 413 |
+
"engines": {
|
| 414 |
+
"node": ">=18"
|
| 415 |
+
},
|
| 416 |
+
"funding": {
|
| 417 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 418 |
+
}
|
| 419 |
+
},
|
| 420 |
+
"node_modules/@eslint/js": {
|
| 421 |
+
"version": "9.39.4",
|
| 422 |
+
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.4.tgz",
|
| 423 |
+
"integrity": "sha512-nE7DEIchvtiFTwBw4Lfbu59PG+kCofhjsKaCWzxTpt4lfRjRMqG6uMBzKXuEcyXhOHoUp9riAm7/aWYGhXZ9cw==",
|
| 424 |
+
"dev": true,
|
| 425 |
+
"license": "MIT",
|
| 426 |
+
"engines": {
|
| 427 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 428 |
+
},
|
| 429 |
+
"funding": {
|
| 430 |
+
"url": "https://eslint.org/donate"
|
| 431 |
+
}
|
| 432 |
+
},
|
| 433 |
+
"node_modules/@eslint/object-schema": {
|
| 434 |
+
"version": "2.1.7",
|
| 435 |
+
"resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz",
|
| 436 |
+
"integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==",
|
| 437 |
+
"dev": true,
|
| 438 |
+
"license": "Apache-2.0",
|
| 439 |
+
"engines": {
|
| 440 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 441 |
+
}
|
| 442 |
+
},
|
| 443 |
+
"node_modules/@eslint/plugin-kit": {
|
| 444 |
+
"version": "0.4.1",
|
| 445 |
+
"resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz",
|
| 446 |
+
"integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==",
|
| 447 |
+
"dev": true,
|
| 448 |
+
"license": "Apache-2.0",
|
| 449 |
+
"dependencies": {
|
| 450 |
+
"@eslint/core": "^0.17.0",
|
| 451 |
+
"levn": "^0.4.1"
|
| 452 |
+
},
|
| 453 |
+
"engines": {
|
| 454 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 455 |
+
}
|
| 456 |
+
},
|
| 457 |
+
"node_modules/@humanfs/core": {
|
| 458 |
+
"version": "0.19.1",
|
| 459 |
+
"resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",
|
| 460 |
+
"integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==",
|
| 461 |
+
"dev": true,
|
| 462 |
+
"license": "Apache-2.0",
|
| 463 |
+
"engines": {
|
| 464 |
+
"node": ">=18.18.0"
|
| 465 |
+
}
|
| 466 |
+
},
|
| 467 |
+
"node_modules/@humanfs/node": {
|
| 468 |
+
"version": "0.16.7",
|
| 469 |
+
"resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz",
|
| 470 |
+
"integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==",
|
| 471 |
+
"dev": true,
|
| 472 |
+
"license": "Apache-2.0",
|
| 473 |
+
"dependencies": {
|
| 474 |
+
"@humanfs/core": "^0.19.1",
|
| 475 |
+
"@humanwhocodes/retry": "^0.4.0"
|
| 476 |
+
},
|
| 477 |
+
"engines": {
|
| 478 |
+
"node": ">=18.18.0"
|
| 479 |
+
}
|
| 480 |
+
},
|
| 481 |
+
"node_modules/@humanwhocodes/module-importer": {
|
| 482 |
+
"version": "1.0.1",
|
| 483 |
+
"resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
|
| 484 |
+
"integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
|
| 485 |
+
"dev": true,
|
| 486 |
+
"license": "Apache-2.0",
|
| 487 |
+
"engines": {
|
| 488 |
+
"node": ">=12.22"
|
| 489 |
+
},
|
| 490 |
+
"funding": {
|
| 491 |
+
"type": "github",
|
| 492 |
+
"url": "https://github.com/sponsors/nzakas"
|
| 493 |
+
}
|
| 494 |
+
},
|
| 495 |
+
"node_modules/@humanwhocodes/retry": {
|
| 496 |
+
"version": "0.4.3",
|
| 497 |
+
"resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",
|
| 498 |
+
"integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",
|
| 499 |
+
"dev": true,
|
| 500 |
+
"license": "Apache-2.0",
|
| 501 |
+
"engines": {
|
| 502 |
+
"node": ">=18.18"
|
| 503 |
+
},
|
| 504 |
+
"funding": {
|
| 505 |
+
"type": "github",
|
| 506 |
+
"url": "https://github.com/sponsors/nzakas"
|
| 507 |
+
}
|
| 508 |
+
},
|
| 509 |
+
"node_modules/@jridgewell/gen-mapping": {
|
| 510 |
+
"version": "0.3.13",
|
| 511 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
|
| 512 |
+
"integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
|
| 513 |
+
"dev": true,
|
| 514 |
+
"license": "MIT",
|
| 515 |
+
"dependencies": {
|
| 516 |
+
"@jridgewell/sourcemap-codec": "^1.5.0",
|
| 517 |
+
"@jridgewell/trace-mapping": "^0.3.24"
|
| 518 |
+
}
|
| 519 |
+
},
|
| 520 |
+
"node_modules/@jridgewell/remapping": {
|
| 521 |
+
"version": "2.3.5",
|
| 522 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
|
| 523 |
+
"integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
|
| 524 |
+
"dev": true,
|
| 525 |
+
"license": "MIT",
|
| 526 |
+
"dependencies": {
|
| 527 |
+
"@jridgewell/gen-mapping": "^0.3.5",
|
| 528 |
+
"@jridgewell/trace-mapping": "^0.3.24"
|
| 529 |
+
}
|
| 530 |
+
},
|
| 531 |
+
"node_modules/@jridgewell/resolve-uri": {
|
| 532 |
+
"version": "3.1.2",
|
| 533 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
|
| 534 |
+
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
|
| 535 |
+
"dev": true,
|
| 536 |
+
"license": "MIT",
|
| 537 |
+
"engines": {
|
| 538 |
+
"node": ">=6.0.0"
|
| 539 |
+
}
|
| 540 |
+
},
|
| 541 |
+
"node_modules/@jridgewell/sourcemap-codec": {
|
| 542 |
+
"version": "1.5.5",
|
| 543 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
|
| 544 |
+
"integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
|
| 545 |
+
"dev": true,
|
| 546 |
+
"license": "MIT"
|
| 547 |
+
},
|
| 548 |
+
"node_modules/@jridgewell/trace-mapping": {
|
| 549 |
+
"version": "0.3.31",
|
| 550 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
|
| 551 |
+
"integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
|
| 552 |
+
"dev": true,
|
| 553 |
+
"license": "MIT",
|
| 554 |
+
"dependencies": {
|
| 555 |
+
"@jridgewell/resolve-uri": "^3.1.0",
|
| 556 |
+
"@jridgewell/sourcemap-codec": "^1.4.14"
|
| 557 |
+
}
|
| 558 |
+
},
|
| 559 |
+
"node_modules/@napi-rs/wasm-runtime": {
|
| 560 |
+
"version": "1.1.1",
|
| 561 |
+
"resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.1.tgz",
|
| 562 |
+
"integrity": "sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A==",
|
| 563 |
+
"dev": true,
|
| 564 |
+
"license": "MIT",
|
| 565 |
+
"optional": true,
|
| 566 |
+
"dependencies": {
|
| 567 |
+
"@emnapi/core": "^1.7.1",
|
| 568 |
+
"@emnapi/runtime": "^1.7.1",
|
| 569 |
+
"@tybys/wasm-util": "^0.10.1"
|
| 570 |
+
},
|
| 571 |
+
"funding": {
|
| 572 |
+
"type": "github",
|
| 573 |
+
"url": "https://github.com/sponsors/Brooooooklyn"
|
| 574 |
+
}
|
| 575 |
+
},
|
| 576 |
+
"node_modules/@oxc-project/runtime": {
|
| 577 |
+
"version": "0.115.0",
|
| 578 |
+
"resolved": "https://registry.npmjs.org/@oxc-project/runtime/-/runtime-0.115.0.tgz",
|
| 579 |
+
"integrity": "sha512-Rg8Wlt5dCbXhQnsXPrkOjL1DTSvXLgb2R/KYfnf1/K+R0k6UMLEmbQXPM+kwrWqSmWA2t0B1EtHy2/3zikQpvQ==",
|
| 580 |
+
"dev": true,
|
| 581 |
+
"license": "MIT",
|
| 582 |
+
"engines": {
|
| 583 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 584 |
+
}
|
| 585 |
+
},
|
| 586 |
+
"node_modules/@oxc-project/types": {
|
| 587 |
+
"version": "0.115.0",
|
| 588 |
+
"resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.115.0.tgz",
|
| 589 |
+
"integrity": "sha512-4n91DKnebUS4yjUHl2g3/b2T+IUdCfmoZGhmwsovZCDaJSs+QkVAM+0AqqTxHSsHfeiMuueT75cZaZcT/m0pSw==",
|
| 590 |
+
"dev": true,
|
| 591 |
+
"license": "MIT",
|
| 592 |
+
"funding": {
|
| 593 |
+
"url": "https://github.com/sponsors/Boshen"
|
| 594 |
+
}
|
| 595 |
+
},
|
| 596 |
+
"node_modules/@rolldown/binding-android-arm64": {
|
| 597 |
+
"version": "1.0.0-rc.9",
|
| 598 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.0-rc.9.tgz",
|
| 599 |
+
"integrity": "sha512-lcJL0bN5hpgJfSIz/8PIf02irmyL43P+j1pTCfbD1DbLkmGRuFIA4DD3B3ZOvGqG0XiVvRznbKtN0COQVaKUTg==",
|
| 600 |
+
"cpu": [
|
| 601 |
+
"arm64"
|
| 602 |
+
],
|
| 603 |
+
"dev": true,
|
| 604 |
+
"license": "MIT",
|
| 605 |
+
"optional": true,
|
| 606 |
+
"os": [
|
| 607 |
+
"android"
|
| 608 |
+
],
|
| 609 |
+
"engines": {
|
| 610 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 611 |
+
}
|
| 612 |
+
},
|
| 613 |
+
"node_modules/@rolldown/binding-darwin-arm64": {
|
| 614 |
+
"version": "1.0.0-rc.9",
|
| 615 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-rc.9.tgz",
|
| 616 |
+
"integrity": "sha512-J7Zk3kLYFsLtuH6U+F4pS2sYVzac0qkjcO5QxHS7OS7yZu2LRs+IXo+uvJ/mvpyUljDJ3LROZPoQfgBIpCMhdQ==",
|
| 617 |
+
"cpu": [
|
| 618 |
+
"arm64"
|
| 619 |
+
],
|
| 620 |
+
"dev": true,
|
| 621 |
+
"license": "MIT",
|
| 622 |
+
"optional": true,
|
| 623 |
+
"os": [
|
| 624 |
+
"darwin"
|
| 625 |
+
],
|
| 626 |
+
"engines": {
|
| 627 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 628 |
+
}
|
| 629 |
+
},
|
| 630 |
+
"node_modules/@rolldown/binding-darwin-x64": {
|
| 631 |
+
"version": "1.0.0-rc.9",
|
| 632 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-rc.9.tgz",
|
| 633 |
+
"integrity": "sha512-iwtmmghy8nhfRGeNAIltcNXzD0QMNaaA5U/NyZc1Ia4bxrzFByNMDoppoC+hl7cDiUq5/1CnFthpT9n+UtfFyg==",
|
| 634 |
+
"cpu": [
|
| 635 |
+
"x64"
|
| 636 |
+
],
|
| 637 |
+
"dev": true,
|
| 638 |
+
"license": "MIT",
|
| 639 |
+
"optional": true,
|
| 640 |
+
"os": [
|
| 641 |
+
"darwin"
|
| 642 |
+
],
|
| 643 |
+
"engines": {
|
| 644 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 645 |
+
}
|
| 646 |
+
},
|
| 647 |
+
"node_modules/@rolldown/binding-freebsd-x64": {
|
| 648 |
+
"version": "1.0.0-rc.9",
|
| 649 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-rc.9.tgz",
|
| 650 |
+
"integrity": "sha512-DLFYI78SCiZr5VvdEplsVC2Vx53lnA4/Ga5C65iyldMVaErr86aiqCoNBLl92PXPfDtUYjUh+xFFor40ueNs4Q==",
|
| 651 |
+
"cpu": [
|
| 652 |
+
"x64"
|
| 653 |
+
],
|
| 654 |
+
"dev": true,
|
| 655 |
+
"license": "MIT",
|
| 656 |
+
"optional": true,
|
| 657 |
+
"os": [
|
| 658 |
+
"freebsd"
|
| 659 |
+
],
|
| 660 |
+
"engines": {
|
| 661 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 662 |
+
}
|
| 663 |
+
},
|
| 664 |
+
"node_modules/@rolldown/binding-linux-arm-gnueabihf": {
|
| 665 |
+
"version": "1.0.0-rc.9",
|
| 666 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-rc.9.tgz",
|
| 667 |
+
"integrity": "sha512-CsjTmTwd0Hri6iTw/DRMK7kOZ7FwAkrO4h8YWKoX/kcj833e4coqo2wzIFywtch/8Eb5enQ/lwLM7w6JX1W5RQ==",
|
| 668 |
+
"cpu": [
|
| 669 |
+
"arm"
|
| 670 |
+
],
|
| 671 |
+
"dev": true,
|
| 672 |
+
"license": "MIT",
|
| 673 |
+
"optional": true,
|
| 674 |
+
"os": [
|
| 675 |
+
"linux"
|
| 676 |
+
],
|
| 677 |
+
"engines": {
|
| 678 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 679 |
+
}
|
| 680 |
+
},
|
| 681 |
+
"node_modules/@rolldown/binding-linux-arm64-gnu": {
|
| 682 |
+
"version": "1.0.0-rc.9",
|
| 683 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-rc.9.tgz",
|
| 684 |
+
"integrity": "sha512-2x9O2JbSPxpxMDhP9Z74mahAStibTlrBMW0520+epJH5sac7/LwZW5Bmg/E6CXuEF53JJFW509uP+lSedaUNxg==",
|
| 685 |
+
"cpu": [
|
| 686 |
+
"arm64"
|
| 687 |
+
],
|
| 688 |
+
"dev": true,
|
| 689 |
+
"license": "MIT",
|
| 690 |
+
"optional": true,
|
| 691 |
+
"os": [
|
| 692 |
+
"linux"
|
| 693 |
+
],
|
| 694 |
+
"engines": {
|
| 695 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 696 |
+
}
|
| 697 |
+
},
|
| 698 |
+
"node_modules/@rolldown/binding-linux-arm64-musl": {
|
| 699 |
+
"version": "1.0.0-rc.9",
|
| 700 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-rc.9.tgz",
|
| 701 |
+
"integrity": "sha512-JA1QRW31ogheAIRhIg9tjMfsYbglXXYGNPLdPEYrwFxdbkQCAzvpSCSHCDWNl4hTtrol8WeboCSEpjdZK8qrCg==",
|
| 702 |
+
"cpu": [
|
| 703 |
+
"arm64"
|
| 704 |
+
],
|
| 705 |
+
"dev": true,
|
| 706 |
+
"license": "MIT",
|
| 707 |
+
"optional": true,
|
| 708 |
+
"os": [
|
| 709 |
+
"linux"
|
| 710 |
+
],
|
| 711 |
+
"engines": {
|
| 712 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 713 |
+
}
|
| 714 |
+
},
|
| 715 |
+
"node_modules/@rolldown/binding-linux-ppc64-gnu": {
|
| 716 |
+
"version": "1.0.0-rc.9",
|
| 717 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.0-rc.9.tgz",
|
| 718 |
+
"integrity": "sha512-aOKU9dJheda8Kj8Y3w9gnt9QFOO+qKPAl8SWd7JPHP+Cu0EuDAE5wokQubLzIDQWg2myXq2XhTpOVS07qqvT+w==",
|
| 719 |
+
"cpu": [
|
| 720 |
+
"ppc64"
|
| 721 |
+
],
|
| 722 |
+
"dev": true,
|
| 723 |
+
"license": "MIT",
|
| 724 |
+
"optional": true,
|
| 725 |
+
"os": [
|
| 726 |
+
"linux"
|
| 727 |
+
],
|
| 728 |
+
"engines": {
|
| 729 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 730 |
+
}
|
| 731 |
+
},
|
| 732 |
+
"node_modules/@rolldown/binding-linux-s390x-gnu": {
|
| 733 |
+
"version": "1.0.0-rc.9",
|
| 734 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.0-rc.9.tgz",
|
| 735 |
+
"integrity": "sha512-OalO94fqj7IWRn3VdXWty75jC5dk4C197AWEuMhIpvVv2lw9fiPhud0+bW2ctCxb3YoBZor71QHbY+9/WToadA==",
|
| 736 |
+
"cpu": [
|
| 737 |
+
"s390x"
|
| 738 |
+
],
|
| 739 |
+
"dev": true,
|
| 740 |
+
"license": "MIT",
|
| 741 |
+
"optional": true,
|
| 742 |
+
"os": [
|
| 743 |
+
"linux"
|
| 744 |
+
],
|
| 745 |
+
"engines": {
|
| 746 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 747 |
+
}
|
| 748 |
+
},
|
| 749 |
+
"node_modules/@rolldown/binding-linux-x64-gnu": {
|
| 750 |
+
"version": "1.0.0-rc.9",
|
| 751 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.9.tgz",
|
| 752 |
+
"integrity": "sha512-cVEl1vZtBsBZna3YMjGXNvnYYrOJ7RzuWvZU0ffvJUexWkukMaDuGhUXn0rjnV0ptzGVkvc+vW9Yqy6h8YX4pg==",
|
| 753 |
+
"cpu": [
|
| 754 |
+
"x64"
|
| 755 |
+
],
|
| 756 |
+
"dev": true,
|
| 757 |
+
"license": "MIT",
|
| 758 |
+
"optional": true,
|
| 759 |
+
"os": [
|
| 760 |
+
"linux"
|
| 761 |
+
],
|
| 762 |
+
"engines": {
|
| 763 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 764 |
+
}
|
| 765 |
+
},
|
| 766 |
+
"node_modules/@rolldown/binding-linux-x64-musl": {
|
| 767 |
+
"version": "1.0.0-rc.9",
|
| 768 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.9.tgz",
|
| 769 |
+
"integrity": "sha512-UzYnKCIIc4heAKgI4PZ3dfBGUZefGCJ1TPDuLHoCzgrMYPb5Rv6TLFuYtyM4rWyHM7hymNdsg5ik2C+UD9VDbA==",
|
| 770 |
+
"cpu": [
|
| 771 |
+
"x64"
|
| 772 |
+
],
|
| 773 |
+
"dev": true,
|
| 774 |
+
"license": "MIT",
|
| 775 |
+
"optional": true,
|
| 776 |
+
"os": [
|
| 777 |
+
"linux"
|
| 778 |
+
],
|
| 779 |
+
"engines": {
|
| 780 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 781 |
+
}
|
| 782 |
+
},
|
| 783 |
+
"node_modules/@rolldown/binding-openharmony-arm64": {
|
| 784 |
+
"version": "1.0.0-rc.9",
|
| 785 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.0-rc.9.tgz",
|
| 786 |
+
"integrity": "sha512-+6zoiF+RRyf5cdlFQP7nm58mq7+/2PFaY2DNQeD4B87N36JzfF/l9mdBkkmTvSYcYPE8tMh/o3cRlsx1ldLfog==",
|
| 787 |
+
"cpu": [
|
| 788 |
+
"arm64"
|
| 789 |
+
],
|
| 790 |
+
"dev": true,
|
| 791 |
+
"license": "MIT",
|
| 792 |
+
"optional": true,
|
| 793 |
+
"os": [
|
| 794 |
+
"openharmony"
|
| 795 |
+
],
|
| 796 |
+
"engines": {
|
| 797 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 798 |
+
}
|
| 799 |
+
},
|
| 800 |
+
"node_modules/@rolldown/binding-wasm32-wasi": {
|
| 801 |
+
"version": "1.0.0-rc.9",
|
| 802 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-rc.9.tgz",
|
| 803 |
+
"integrity": "sha512-rgFN6sA/dyebil3YTlL2evvi/M+ivhfnyxec7AccTpRPccno/rPoNlqybEZQBkcbZu8Hy+eqNJCqfBR8P7Pg8g==",
|
| 804 |
+
"cpu": [
|
| 805 |
+
"wasm32"
|
| 806 |
+
],
|
| 807 |
+
"dev": true,
|
| 808 |
+
"license": "MIT",
|
| 809 |
+
"optional": true,
|
| 810 |
+
"dependencies": {
|
| 811 |
+
"@napi-rs/wasm-runtime": "^1.1.1"
|
| 812 |
+
},
|
| 813 |
+
"engines": {
|
| 814 |
+
"node": ">=14.0.0"
|
| 815 |
+
}
|
| 816 |
+
},
|
| 817 |
+
"node_modules/@rolldown/binding-win32-arm64-msvc": {
|
| 818 |
+
"version": "1.0.0-rc.9",
|
| 819 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-rc.9.tgz",
|
| 820 |
+
"integrity": "sha512-lHVNUG/8nlF1IQk1C0Ci574qKYyty2goMiPlRqkC5R+3LkXDkL5Dhx8ytbxq35m+pkHVIvIxviD+TWLdfeuadA==",
|
| 821 |
+
"cpu": [
|
| 822 |
+
"arm64"
|
| 823 |
+
],
|
| 824 |
+
"dev": true,
|
| 825 |
+
"license": "MIT",
|
| 826 |
+
"optional": true,
|
| 827 |
+
"os": [
|
| 828 |
+
"win32"
|
| 829 |
+
],
|
| 830 |
+
"engines": {
|
| 831 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 832 |
+
}
|
| 833 |
+
},
|
| 834 |
+
"node_modules/@rolldown/binding-win32-x64-msvc": {
|
| 835 |
+
"version": "1.0.0-rc.9",
|
| 836 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-rc.9.tgz",
|
| 837 |
+
"integrity": "sha512-G0oA4+w1iY5AGi5HcDTxWsoxF509hrFIPB2rduV5aDqS9FtDg1CAfa7V34qImbjfhIcA8C+RekocJZA96EarwQ==",
|
| 838 |
+
"cpu": [
|
| 839 |
+
"x64"
|
| 840 |
+
],
|
| 841 |
+
"dev": true,
|
| 842 |
+
"license": "MIT",
|
| 843 |
+
"optional": true,
|
| 844 |
+
"os": [
|
| 845 |
+
"win32"
|
| 846 |
+
],
|
| 847 |
+
"engines": {
|
| 848 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 849 |
+
}
|
| 850 |
+
},
|
| 851 |
+
"node_modules/@rolldown/pluginutils": {
|
| 852 |
+
"version": "1.0.0-rc.7",
|
| 853 |
+
"resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.7.tgz",
|
| 854 |
+
"integrity": "sha512-qujRfC8sFVInYSPPMLQByRh7zhwkGFS4+tyMQ83srV1qrxL4g8E2tyxVVyxd0+8QeBM1mIk9KbWxkegRr76XzA==",
|
| 855 |
+
"dev": true,
|
| 856 |
+
"license": "MIT"
|
| 857 |
+
},
|
| 858 |
+
"node_modules/@tybys/wasm-util": {
|
| 859 |
+
"version": "0.10.1",
|
| 860 |
+
"resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz",
|
| 861 |
+
"integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==",
|
| 862 |
+
"dev": true,
|
| 863 |
+
"license": "MIT",
|
| 864 |
+
"optional": true,
|
| 865 |
+
"dependencies": {
|
| 866 |
+
"tslib": "^2.4.0"
|
| 867 |
+
}
|
| 868 |
+
},
|
| 869 |
+
"node_modules/@types/estree": {
|
| 870 |
+
"version": "1.0.8",
|
| 871 |
+
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
|
| 872 |
+
"integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
|
| 873 |
+
"dev": true,
|
| 874 |
+
"license": "MIT"
|
| 875 |
+
},
|
| 876 |
+
"node_modules/@types/json-schema": {
|
| 877 |
+
"version": "7.0.15",
|
| 878 |
+
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
|
| 879 |
+
"integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
|
| 880 |
+
"dev": true,
|
| 881 |
+
"license": "MIT"
|
| 882 |
+
},
|
| 883 |
+
"node_modules/@types/react": {
|
| 884 |
+
"version": "19.2.14",
|
| 885 |
+
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz",
|
| 886 |
+
"integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==",
|
| 887 |
+
"dev": true,
|
| 888 |
+
"license": "MIT",
|
| 889 |
+
"dependencies": {
|
| 890 |
+
"csstype": "^3.2.2"
|
| 891 |
+
}
|
| 892 |
+
},
|
| 893 |
+
"node_modules/@types/react-dom": {
|
| 894 |
+
"version": "19.2.3",
|
| 895 |
+
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz",
|
| 896 |
+
"integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==",
|
| 897 |
+
"dev": true,
|
| 898 |
+
"license": "MIT",
|
| 899 |
+
"peerDependencies": {
|
| 900 |
+
"@types/react": "^19.2.0"
|
| 901 |
+
}
|
| 902 |
+
},
|
| 903 |
+
"node_modules/@vitejs/plugin-react": {
|
| 904 |
+
"version": "6.0.0",
|
| 905 |
+
"resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.0.tgz",
|
| 906 |
+
"integrity": "sha512-Bu5/eP6td3WI654+tRq+ryW1PbgA90y5pqMKpb3U7UpNk6VjI53P/ncPUd192U9dSrepLy7DHnq1XEMDz5H++w==",
|
| 907 |
+
"dev": true,
|
| 908 |
+
"license": "MIT",
|
| 909 |
+
"dependencies": {
|
| 910 |
+
"@rolldown/pluginutils": "1.0.0-rc.7"
|
| 911 |
+
},
|
| 912 |
+
"engines": {
|
| 913 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 914 |
+
},
|
| 915 |
+
"peerDependencies": {
|
| 916 |
+
"@rolldown/plugin-babel": "^0.1.7",
|
| 917 |
+
"babel-plugin-react-compiler": "^1.0.0",
|
| 918 |
+
"vite": "^8.0.0"
|
| 919 |
+
},
|
| 920 |
+
"peerDependenciesMeta": {
|
| 921 |
+
"@rolldown/plugin-babel": {
|
| 922 |
+
"optional": true
|
| 923 |
+
},
|
| 924 |
+
"babel-plugin-react-compiler": {
|
| 925 |
+
"optional": true
|
| 926 |
+
}
|
| 927 |
+
}
|
| 928 |
+
},
|
| 929 |
+
"node_modules/acorn": {
|
| 930 |
+
"version": "8.16.0",
|
| 931 |
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz",
|
| 932 |
+
"integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",
|
| 933 |
+
"dev": true,
|
| 934 |
+
"license": "MIT",
|
| 935 |
+
"bin": {
|
| 936 |
+
"acorn": "bin/acorn"
|
| 937 |
+
},
|
| 938 |
+
"engines": {
|
| 939 |
+
"node": ">=0.4.0"
|
| 940 |
+
}
|
| 941 |
+
},
|
| 942 |
+
"node_modules/acorn-jsx": {
|
| 943 |
+
"version": "5.3.2",
|
| 944 |
+
"resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
|
| 945 |
+
"integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
|
| 946 |
+
"dev": true,
|
| 947 |
+
"license": "MIT",
|
| 948 |
+
"peerDependencies": {
|
| 949 |
+
"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
|
| 950 |
+
}
|
| 951 |
+
},
|
| 952 |
+
"node_modules/ajv": {
|
| 953 |
+
"version": "6.14.0",
|
| 954 |
+
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz",
|
| 955 |
+
"integrity": "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==",
|
| 956 |
+
"dev": true,
|
| 957 |
+
"license": "MIT",
|
| 958 |
+
"dependencies": {
|
| 959 |
+
"fast-deep-equal": "^3.1.1",
|
| 960 |
+
"fast-json-stable-stringify": "^2.0.0",
|
| 961 |
+
"json-schema-traverse": "^0.4.1",
|
| 962 |
+
"uri-js": "^4.2.2"
|
| 963 |
+
},
|
| 964 |
+
"funding": {
|
| 965 |
+
"type": "github",
|
| 966 |
+
"url": "https://github.com/sponsors/epoberezkin"
|
| 967 |
+
}
|
| 968 |
+
},
|
| 969 |
+
"node_modules/ansi-styles": {
|
| 970 |
+
"version": "4.3.0",
|
| 971 |
+
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
| 972 |
+
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
| 973 |
+
"dev": true,
|
| 974 |
+
"license": "MIT",
|
| 975 |
+
"dependencies": {
|
| 976 |
+
"color-convert": "^2.0.1"
|
| 977 |
+
},
|
| 978 |
+
"engines": {
|
| 979 |
+
"node": ">=8"
|
| 980 |
+
},
|
| 981 |
+
"funding": {
|
| 982 |
+
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
| 983 |
+
}
|
| 984 |
+
},
|
| 985 |
+
"node_modules/argparse": {
|
| 986 |
+
"version": "2.0.1",
|
| 987 |
+
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
| 988 |
+
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
|
| 989 |
+
"dev": true,
|
| 990 |
+
"license": "Python-2.0"
|
| 991 |
+
},
|
| 992 |
+
"node_modules/balanced-match": {
|
| 993 |
+
"version": "1.0.2",
|
| 994 |
+
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
|
| 995 |
+
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
|
| 996 |
+
"dev": true,
|
| 997 |
+
"license": "MIT"
|
| 998 |
+
},
|
| 999 |
+
"node_modules/baseline-browser-mapping": {
|
| 1000 |
+
"version": "2.10.7",
|
| 1001 |
+
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.7.tgz",
|
| 1002 |
+
"integrity": "sha512-1ghYO3HnxGec0TCGBXiDLVns4eCSx4zJpxnHrlqFQajmhfKMQBzUGDdkMK7fUW7PTHTeLf+j87aTuKuuwWzMGw==",
|
| 1003 |
+
"dev": true,
|
| 1004 |
+
"license": "Apache-2.0",
|
| 1005 |
+
"bin": {
|
| 1006 |
+
"baseline-browser-mapping": "dist/cli.cjs"
|
| 1007 |
+
},
|
| 1008 |
+
"engines": {
|
| 1009 |
+
"node": ">=6.0.0"
|
| 1010 |
+
}
|
| 1011 |
+
},
|
| 1012 |
+
"node_modules/brace-expansion": {
|
| 1013 |
+
"version": "1.1.12",
|
| 1014 |
+
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
|
| 1015 |
+
"integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
|
| 1016 |
+
"dev": true,
|
| 1017 |
+
"license": "MIT",
|
| 1018 |
+
"dependencies": {
|
| 1019 |
+
"balanced-match": "^1.0.0",
|
| 1020 |
+
"concat-map": "0.0.1"
|
| 1021 |
+
}
|
| 1022 |
+
},
|
| 1023 |
+
"node_modules/browserslist": {
|
| 1024 |
+
"version": "4.28.1",
|
| 1025 |
+
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz",
|
| 1026 |
+
"integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==",
|
| 1027 |
+
"dev": true,
|
| 1028 |
+
"funding": [
|
| 1029 |
+
{
|
| 1030 |
+
"type": "opencollective",
|
| 1031 |
+
"url": "https://opencollective.com/browserslist"
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "tidelift",
|
| 1035 |
+
"url": "https://tidelift.com/funding/github/npm/browserslist"
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "github",
|
| 1039 |
+
"url": "https://github.com/sponsors/ai"
|
| 1040 |
+
}
|
| 1041 |
+
],
|
| 1042 |
+
"license": "MIT",
|
| 1043 |
+
"dependencies": {
|
| 1044 |
+
"baseline-browser-mapping": "^2.9.0",
|
| 1045 |
+
"caniuse-lite": "^1.0.30001759",
|
| 1046 |
+
"electron-to-chromium": "^1.5.263",
|
| 1047 |
+
"node-releases": "^2.0.27",
|
| 1048 |
+
"update-browserslist-db": "^1.2.0"
|
| 1049 |
+
},
|
| 1050 |
+
"bin": {
|
| 1051 |
+
"browserslist": "cli.js"
|
| 1052 |
+
},
|
| 1053 |
+
"engines": {
|
| 1054 |
+
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
|
| 1055 |
+
}
|
| 1056 |
+
},
|
| 1057 |
+
"node_modules/callsites": {
|
| 1058 |
+
"version": "3.1.0",
|
| 1059 |
+
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
|
| 1060 |
+
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
|
| 1061 |
+
"dev": true,
|
| 1062 |
+
"license": "MIT",
|
| 1063 |
+
"engines": {
|
| 1064 |
+
"node": ">=6"
|
| 1065 |
+
}
|
| 1066 |
+
},
|
| 1067 |
+
"node_modules/caniuse-lite": {
|
| 1068 |
+
"version": "1.0.30001778",
|
| 1069 |
+
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001778.tgz",
|
| 1070 |
+
"integrity": "sha512-PN7uxFL+ExFJO61aVmP1aIEG4i9whQd4eoSCebav62UwDyp5OHh06zN4jqKSMePVgxHifCw1QJxdRkA1Pisekg==",
|
| 1071 |
+
"dev": true,
|
| 1072 |
+
"funding": [
|
| 1073 |
+
{
|
| 1074 |
+
"type": "opencollective",
|
| 1075 |
+
"url": "https://opencollective.com/browserslist"
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"type": "tidelift",
|
| 1079 |
+
"url": "https://tidelift.com/funding/github/npm/caniuse-lite"
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "github",
|
| 1083 |
+
"url": "https://github.com/sponsors/ai"
|
| 1084 |
+
}
|
| 1085 |
+
],
|
| 1086 |
+
"license": "CC-BY-4.0"
|
| 1087 |
+
},
|
| 1088 |
+
"node_modules/chalk": {
|
| 1089 |
+
"version": "4.1.2",
|
| 1090 |
+
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
|
| 1091 |
+
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
|
| 1092 |
+
"dev": true,
|
| 1093 |
+
"license": "MIT",
|
| 1094 |
+
"dependencies": {
|
| 1095 |
+
"ansi-styles": "^4.1.0",
|
| 1096 |
+
"supports-color": "^7.1.0"
|
| 1097 |
+
},
|
| 1098 |
+
"engines": {
|
| 1099 |
+
"node": ">=10"
|
| 1100 |
+
},
|
| 1101 |
+
"funding": {
|
| 1102 |
+
"url": "https://github.com/chalk/chalk?sponsor=1"
|
| 1103 |
+
}
|
| 1104 |
+
},
|
| 1105 |
+
"node_modules/color-convert": {
|
| 1106 |
+
"version": "2.0.1",
|
| 1107 |
+
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
| 1108 |
+
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
| 1109 |
+
"dev": true,
|
| 1110 |
+
"license": "MIT",
|
| 1111 |
+
"dependencies": {
|
| 1112 |
+
"color-name": "~1.1.4"
|
| 1113 |
+
},
|
| 1114 |
+
"engines": {
|
| 1115 |
+
"node": ">=7.0.0"
|
| 1116 |
+
}
|
| 1117 |
+
},
|
| 1118 |
+
"node_modules/color-name": {
|
| 1119 |
+
"version": "1.1.4",
|
| 1120 |
+
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
| 1121 |
+
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
| 1122 |
+
"dev": true,
|
| 1123 |
+
"license": "MIT"
|
| 1124 |
+
},
|
| 1125 |
+
"node_modules/concat-map": {
|
| 1126 |
+
"version": "0.0.1",
|
| 1127 |
+
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
| 1128 |
+
"integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
|
| 1129 |
+
"dev": true,
|
| 1130 |
+
"license": "MIT"
|
| 1131 |
+
},
|
| 1132 |
+
"node_modules/convert-source-map": {
|
| 1133 |
+
"version": "2.0.0",
|
| 1134 |
+
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
|
| 1135 |
+
"integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
|
| 1136 |
+
"dev": true,
|
| 1137 |
+
"license": "MIT"
|
| 1138 |
+
},
|
| 1139 |
+
"node_modules/cross-spawn": {
|
| 1140 |
+
"version": "7.0.6",
|
| 1141 |
+
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
|
| 1142 |
+
"integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
|
| 1143 |
+
"dev": true,
|
| 1144 |
+
"license": "MIT",
|
| 1145 |
+
"dependencies": {
|
| 1146 |
+
"path-key": "^3.1.0",
|
| 1147 |
+
"shebang-command": "^2.0.0",
|
| 1148 |
+
"which": "^2.0.1"
|
| 1149 |
+
},
|
| 1150 |
+
"engines": {
|
| 1151 |
+
"node": ">= 8"
|
| 1152 |
+
}
|
| 1153 |
+
},
|
| 1154 |
+
"node_modules/csstype": {
|
| 1155 |
+
"version": "3.2.3",
|
| 1156 |
+
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
|
| 1157 |
+
"integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
|
| 1158 |
+
"dev": true,
|
| 1159 |
+
"license": "MIT"
|
| 1160 |
+
},
|
| 1161 |
+
"node_modules/debug": {
|
| 1162 |
+
"version": "4.4.3",
|
| 1163 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
|
| 1164 |
+
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
|
| 1165 |
+
"dev": true,
|
| 1166 |
+
"license": "MIT",
|
| 1167 |
+
"dependencies": {
|
| 1168 |
+
"ms": "^2.1.3"
|
| 1169 |
+
},
|
| 1170 |
+
"engines": {
|
| 1171 |
+
"node": ">=6.0"
|
| 1172 |
+
},
|
| 1173 |
+
"peerDependenciesMeta": {
|
| 1174 |
+
"supports-color": {
|
| 1175 |
+
"optional": true
|
| 1176 |
+
}
|
| 1177 |
+
}
|
| 1178 |
+
},
|
| 1179 |
+
"node_modules/deep-is": {
|
| 1180 |
+
"version": "0.1.4",
|
| 1181 |
+
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
|
| 1182 |
+
"integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
|
| 1183 |
+
"dev": true,
|
| 1184 |
+
"license": "MIT"
|
| 1185 |
+
},
|
| 1186 |
+
"node_modules/detect-libc": {
|
| 1187 |
+
"version": "2.1.2",
|
| 1188 |
+
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
|
| 1189 |
+
"integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
|
| 1190 |
+
"dev": true,
|
| 1191 |
+
"license": "Apache-2.0",
|
| 1192 |
+
"engines": {
|
| 1193 |
+
"node": ">=8"
|
| 1194 |
+
}
|
| 1195 |
+
},
|
| 1196 |
+
"node_modules/electron-to-chromium": {
|
| 1197 |
+
"version": "1.5.313",
|
| 1198 |
+
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.313.tgz",
|
| 1199 |
+
"integrity": "sha512-QBMrTWEf00GXZmJyx2lbYD45jpI3TUFnNIzJ5BBc8piGUDwMPa1GV6HJWTZVvY/eiN3fSopl7NRbgGp9sZ9LTA==",
|
| 1200 |
+
"dev": true,
|
| 1201 |
+
"license": "ISC"
|
| 1202 |
+
},
|
| 1203 |
+
"node_modules/escalade": {
|
| 1204 |
+
"version": "3.2.0",
|
| 1205 |
+
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
|
| 1206 |
+
"integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
|
| 1207 |
+
"dev": true,
|
| 1208 |
+
"license": "MIT",
|
| 1209 |
+
"engines": {
|
| 1210 |
+
"node": ">=6"
|
| 1211 |
+
}
|
| 1212 |
+
},
|
| 1213 |
+
"node_modules/escape-string-regexp": {
|
| 1214 |
+
"version": "4.0.0",
|
| 1215 |
+
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
|
| 1216 |
+
"integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
|
| 1217 |
+
"dev": true,
|
| 1218 |
+
"license": "MIT",
|
| 1219 |
+
"engines": {
|
| 1220 |
+
"node": ">=10"
|
| 1221 |
+
},
|
| 1222 |
+
"funding": {
|
| 1223 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1224 |
+
}
|
| 1225 |
+
},
|
| 1226 |
+
"node_modules/eslint": {
|
| 1227 |
+
"version": "9.39.4",
|
| 1228 |
+
"resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.4.tgz",
|
| 1229 |
+
"integrity": "sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==",
|
| 1230 |
+
"dev": true,
|
| 1231 |
+
"license": "MIT",
|
| 1232 |
+
"dependencies": {
|
| 1233 |
+
"@eslint-community/eslint-utils": "^4.8.0",
|
| 1234 |
+
"@eslint-community/regexpp": "^4.12.1",
|
| 1235 |
+
"@eslint/config-array": "^0.21.2",
|
| 1236 |
+
"@eslint/config-helpers": "^0.4.2",
|
| 1237 |
+
"@eslint/core": "^0.17.0",
|
| 1238 |
+
"@eslint/eslintrc": "^3.3.5",
|
| 1239 |
+
"@eslint/js": "9.39.4",
|
| 1240 |
+
"@eslint/plugin-kit": "^0.4.1",
|
| 1241 |
+
"@humanfs/node": "^0.16.6",
|
| 1242 |
+
"@humanwhocodes/module-importer": "^1.0.1",
|
| 1243 |
+
"@humanwhocodes/retry": "^0.4.2",
|
| 1244 |
+
"@types/estree": "^1.0.6",
|
| 1245 |
+
"ajv": "^6.14.0",
|
| 1246 |
+
"chalk": "^4.0.0",
|
| 1247 |
+
"cross-spawn": "^7.0.6",
|
| 1248 |
+
"debug": "^4.3.2",
|
| 1249 |
+
"escape-string-regexp": "^4.0.0",
|
| 1250 |
+
"eslint-scope": "^8.4.0",
|
| 1251 |
+
"eslint-visitor-keys": "^4.2.1",
|
| 1252 |
+
"espree": "^10.4.0",
|
| 1253 |
+
"esquery": "^1.5.0",
|
| 1254 |
+
"esutils": "^2.0.2",
|
| 1255 |
+
"fast-deep-equal": "^3.1.3",
|
| 1256 |
+
"file-entry-cache": "^8.0.0",
|
| 1257 |
+
"find-up": "^5.0.0",
|
| 1258 |
+
"glob-parent": "^6.0.2",
|
| 1259 |
+
"ignore": "^5.2.0",
|
| 1260 |
+
"imurmurhash": "^0.1.4",
|
| 1261 |
+
"is-glob": "^4.0.0",
|
| 1262 |
+
"json-stable-stringify-without-jsonify": "^1.0.1",
|
| 1263 |
+
"lodash.merge": "^4.6.2",
|
| 1264 |
+
"minimatch": "^3.1.5",
|
| 1265 |
+
"natural-compare": "^1.4.0",
|
| 1266 |
+
"optionator": "^0.9.3"
|
| 1267 |
+
},
|
| 1268 |
+
"bin": {
|
| 1269 |
+
"eslint": "bin/eslint.js"
|
| 1270 |
+
},
|
| 1271 |
+
"engines": {
|
| 1272 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 1273 |
+
},
|
| 1274 |
+
"funding": {
|
| 1275 |
+
"url": "https://eslint.org/donate"
|
| 1276 |
+
},
|
| 1277 |
+
"peerDependencies": {
|
| 1278 |
+
"jiti": "*"
|
| 1279 |
+
},
|
| 1280 |
+
"peerDependenciesMeta": {
|
| 1281 |
+
"jiti": {
|
| 1282 |
+
"optional": true
|
| 1283 |
+
}
|
| 1284 |
+
}
|
| 1285 |
+
},
|
| 1286 |
+
"node_modules/eslint-plugin-react-hooks": {
|
| 1287 |
+
"version": "7.0.1",
|
| 1288 |
+
"resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.0.1.tgz",
|
| 1289 |
+
"integrity": "sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==",
|
| 1290 |
+
"dev": true,
|
| 1291 |
+
"license": "MIT",
|
| 1292 |
+
"dependencies": {
|
| 1293 |
+
"@babel/core": "^7.24.4",
|
| 1294 |
+
"@babel/parser": "^7.24.4",
|
| 1295 |
+
"hermes-parser": "^0.25.1",
|
| 1296 |
+
"zod": "^3.25.0 || ^4.0.0",
|
| 1297 |
+
"zod-validation-error": "^3.5.0 || ^4.0.0"
|
| 1298 |
+
},
|
| 1299 |
+
"engines": {
|
| 1300 |
+
"node": ">=18"
|
| 1301 |
+
},
|
| 1302 |
+
"peerDependencies": {
|
| 1303 |
+
"eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0"
|
| 1304 |
+
}
|
| 1305 |
+
},
|
| 1306 |
+
"node_modules/eslint-plugin-react-refresh": {
|
| 1307 |
+
"version": "0.5.2",
|
| 1308 |
+
"resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.5.2.tgz",
|
| 1309 |
+
"integrity": "sha512-hmgTH57GfzoTFjVN0yBwTggnsVUF2tcqi7RJZHqi9lIezSs4eFyAMktA68YD4r5kNw1mxyY4dmkyoFDb3FIqrA==",
|
| 1310 |
+
"dev": true,
|
| 1311 |
+
"license": "MIT",
|
| 1312 |
+
"peerDependencies": {
|
| 1313 |
+
"eslint": "^9 || ^10"
|
| 1314 |
+
}
|
| 1315 |
+
},
|
| 1316 |
+
"node_modules/eslint-scope": {
|
| 1317 |
+
"version": "8.4.0",
|
| 1318 |
+
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz",
|
| 1319 |
+
"integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==",
|
| 1320 |
+
"dev": true,
|
| 1321 |
+
"license": "BSD-2-Clause",
|
| 1322 |
+
"dependencies": {
|
| 1323 |
+
"esrecurse": "^4.3.0",
|
| 1324 |
+
"estraverse": "^5.2.0"
|
| 1325 |
+
},
|
| 1326 |
+
"engines": {
|
| 1327 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 1328 |
+
},
|
| 1329 |
+
"funding": {
|
| 1330 |
+
"url": "https://opencollective.com/eslint"
|
| 1331 |
+
}
|
| 1332 |
+
},
|
| 1333 |
+
"node_modules/eslint-visitor-keys": {
|
| 1334 |
+
"version": "4.2.1",
|
| 1335 |
+
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
|
| 1336 |
+
"integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",
|
| 1337 |
+
"dev": true,
|
| 1338 |
+
"license": "Apache-2.0",
|
| 1339 |
+
"engines": {
|
| 1340 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 1341 |
+
},
|
| 1342 |
+
"funding": {
|
| 1343 |
+
"url": "https://opencollective.com/eslint"
|
| 1344 |
+
}
|
| 1345 |
+
},
|
| 1346 |
+
"node_modules/espree": {
|
| 1347 |
+
"version": "10.4.0",
|
| 1348 |
+
"resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz",
|
| 1349 |
+
"integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==",
|
| 1350 |
+
"dev": true,
|
| 1351 |
+
"license": "BSD-2-Clause",
|
| 1352 |
+
"dependencies": {
|
| 1353 |
+
"acorn": "^8.15.0",
|
| 1354 |
+
"acorn-jsx": "^5.3.2",
|
| 1355 |
+
"eslint-visitor-keys": "^4.2.1"
|
| 1356 |
+
},
|
| 1357 |
+
"engines": {
|
| 1358 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 1359 |
+
},
|
| 1360 |
+
"funding": {
|
| 1361 |
+
"url": "https://opencollective.com/eslint"
|
| 1362 |
+
}
|
| 1363 |
+
},
|
| 1364 |
+
"node_modules/esquery": {
|
| 1365 |
+
"version": "1.7.0",
|
| 1366 |
+
"resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",
|
| 1367 |
+
"integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",
|
| 1368 |
+
"dev": true,
|
| 1369 |
+
"license": "BSD-3-Clause",
|
| 1370 |
+
"dependencies": {
|
| 1371 |
+
"estraverse": "^5.1.0"
|
| 1372 |
+
},
|
| 1373 |
+
"engines": {
|
| 1374 |
+
"node": ">=0.10"
|
| 1375 |
+
}
|
| 1376 |
+
},
|
| 1377 |
+
"node_modules/esrecurse": {
|
| 1378 |
+
"version": "4.3.0",
|
| 1379 |
+
"resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
|
| 1380 |
+
"integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
|
| 1381 |
+
"dev": true,
|
| 1382 |
+
"license": "BSD-2-Clause",
|
| 1383 |
+
"dependencies": {
|
| 1384 |
+
"estraverse": "^5.2.0"
|
| 1385 |
+
},
|
| 1386 |
+
"engines": {
|
| 1387 |
+
"node": ">=4.0"
|
| 1388 |
+
}
|
| 1389 |
+
},
|
| 1390 |
+
"node_modules/estraverse": {
|
| 1391 |
+
"version": "5.3.0",
|
| 1392 |
+
"resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
|
| 1393 |
+
"integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
|
| 1394 |
+
"dev": true,
|
| 1395 |
+
"license": "BSD-2-Clause",
|
| 1396 |
+
"engines": {
|
| 1397 |
+
"node": ">=4.0"
|
| 1398 |
+
}
|
| 1399 |
+
},
|
| 1400 |
+
"node_modules/esutils": {
|
| 1401 |
+
"version": "2.0.3",
|
| 1402 |
+
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
|
| 1403 |
+
"integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
|
| 1404 |
+
"dev": true,
|
| 1405 |
+
"license": "BSD-2-Clause",
|
| 1406 |
+
"engines": {
|
| 1407 |
+
"node": ">=0.10.0"
|
| 1408 |
+
}
|
| 1409 |
+
},
|
| 1410 |
+
"node_modules/fast-deep-equal": {
|
| 1411 |
+
"version": "3.1.3",
|
| 1412 |
+
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
|
| 1413 |
+
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
|
| 1414 |
+
"dev": true,
|
| 1415 |
+
"license": "MIT"
|
| 1416 |
+
},
|
| 1417 |
+
"node_modules/fast-json-stable-stringify": {
|
| 1418 |
+
"version": "2.1.0",
|
| 1419 |
+
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
|
| 1420 |
+
"integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
|
| 1421 |
+
"dev": true,
|
| 1422 |
+
"license": "MIT"
|
| 1423 |
+
},
|
| 1424 |
+
"node_modules/fast-levenshtein": {
|
| 1425 |
+
"version": "2.0.6",
|
| 1426 |
+
"resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
|
| 1427 |
+
"integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
|
| 1428 |
+
"dev": true,
|
| 1429 |
+
"license": "MIT"
|
| 1430 |
+
},
|
| 1431 |
+
"node_modules/fdir": {
|
| 1432 |
+
"version": "6.5.0",
|
| 1433 |
+
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
|
| 1434 |
+
"integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
|
| 1435 |
+
"dev": true,
|
| 1436 |
+
"license": "MIT",
|
| 1437 |
+
"engines": {
|
| 1438 |
+
"node": ">=12.0.0"
|
| 1439 |
+
},
|
| 1440 |
+
"peerDependencies": {
|
| 1441 |
+
"picomatch": "^3 || ^4"
|
| 1442 |
+
},
|
| 1443 |
+
"peerDependenciesMeta": {
|
| 1444 |
+
"picomatch": {
|
| 1445 |
+
"optional": true
|
| 1446 |
+
}
|
| 1447 |
+
}
|
| 1448 |
+
},
|
| 1449 |
+
"node_modules/file-entry-cache": {
|
| 1450 |
+
"version": "8.0.0",
|
| 1451 |
+
"resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",
|
| 1452 |
+
"integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",
|
| 1453 |
+
"dev": true,
|
| 1454 |
+
"license": "MIT",
|
| 1455 |
+
"dependencies": {
|
| 1456 |
+
"flat-cache": "^4.0.0"
|
| 1457 |
+
},
|
| 1458 |
+
"engines": {
|
| 1459 |
+
"node": ">=16.0.0"
|
| 1460 |
+
}
|
| 1461 |
+
},
|
| 1462 |
+
"node_modules/find-up": {
|
| 1463 |
+
"version": "5.0.0",
|
| 1464 |
+
"resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
|
| 1465 |
+
"integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
|
| 1466 |
+
"dev": true,
|
| 1467 |
+
"license": "MIT",
|
| 1468 |
+
"dependencies": {
|
| 1469 |
+
"locate-path": "^6.0.0",
|
| 1470 |
+
"path-exists": "^4.0.0"
|
| 1471 |
+
},
|
| 1472 |
+
"engines": {
|
| 1473 |
+
"node": ">=10"
|
| 1474 |
+
},
|
| 1475 |
+
"funding": {
|
| 1476 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1477 |
+
}
|
| 1478 |
+
},
|
| 1479 |
+
"node_modules/flat-cache": {
|
| 1480 |
+
"version": "4.0.1",
|
| 1481 |
+
"resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",
|
| 1482 |
+
"integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",
|
| 1483 |
+
"dev": true,
|
| 1484 |
+
"license": "MIT",
|
| 1485 |
+
"dependencies": {
|
| 1486 |
+
"flatted": "^3.2.9",
|
| 1487 |
+
"keyv": "^4.5.4"
|
| 1488 |
+
},
|
| 1489 |
+
"engines": {
|
| 1490 |
+
"node": ">=16"
|
| 1491 |
+
}
|
| 1492 |
+
},
|
| 1493 |
+
"node_modules/flatted": {
|
| 1494 |
+
"version": "3.4.1",
|
| 1495 |
+
"resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.1.tgz",
|
| 1496 |
+
"integrity": "sha512-IxfVbRFVlV8V/yRaGzk0UVIcsKKHMSfYw66T/u4nTwlWteQePsxe//LjudR1AMX4tZW3WFCh3Zqa/sjlqpbURQ==",
|
| 1497 |
+
"dev": true,
|
| 1498 |
+
"license": "ISC"
|
| 1499 |
+
},
|
| 1500 |
+
"node_modules/fsevents": {
|
| 1501 |
+
"version": "2.3.3",
|
| 1502 |
+
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
|
| 1503 |
+
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
|
| 1504 |
+
"dev": true,
|
| 1505 |
+
"hasInstallScript": true,
|
| 1506 |
+
"license": "MIT",
|
| 1507 |
+
"optional": true,
|
| 1508 |
+
"os": [
|
| 1509 |
+
"darwin"
|
| 1510 |
+
],
|
| 1511 |
+
"engines": {
|
| 1512 |
+
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
|
| 1513 |
+
}
|
| 1514 |
+
},
|
| 1515 |
+
"node_modules/gensync": {
|
| 1516 |
+
"version": "1.0.0-beta.2",
|
| 1517 |
+
"resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
|
| 1518 |
+
"integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
|
| 1519 |
+
"dev": true,
|
| 1520 |
+
"license": "MIT",
|
| 1521 |
+
"engines": {
|
| 1522 |
+
"node": ">=6.9.0"
|
| 1523 |
+
}
|
| 1524 |
+
},
|
| 1525 |
+
"node_modules/glob-parent": {
|
| 1526 |
+
"version": "6.0.2",
|
| 1527 |
+
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
|
| 1528 |
+
"integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
|
| 1529 |
+
"dev": true,
|
| 1530 |
+
"license": "ISC",
|
| 1531 |
+
"dependencies": {
|
| 1532 |
+
"is-glob": "^4.0.3"
|
| 1533 |
+
},
|
| 1534 |
+
"engines": {
|
| 1535 |
+
"node": ">=10.13.0"
|
| 1536 |
+
}
|
| 1537 |
+
},
|
| 1538 |
+
"node_modules/globals": {
|
| 1539 |
+
"version": "17.4.0",
|
| 1540 |
+
"resolved": "https://registry.npmjs.org/globals/-/globals-17.4.0.tgz",
|
| 1541 |
+
"integrity": "sha512-hjrNztw/VajQwOLsMNT1cbJiH2muO3OROCHnbehc8eY5JyD2gqz4AcMHPqgaOR59DjgUjYAYLeH699g/eWi2jw==",
|
| 1542 |
+
"dev": true,
|
| 1543 |
+
"license": "MIT",
|
| 1544 |
+
"engines": {
|
| 1545 |
+
"node": ">=18"
|
| 1546 |
+
},
|
| 1547 |
+
"funding": {
|
| 1548 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1549 |
+
}
|
| 1550 |
+
},
|
| 1551 |
+
"node_modules/has-flag": {
|
| 1552 |
+
"version": "4.0.0",
|
| 1553 |
+
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
| 1554 |
+
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
| 1555 |
+
"dev": true,
|
| 1556 |
+
"license": "MIT",
|
| 1557 |
+
"engines": {
|
| 1558 |
+
"node": ">=8"
|
| 1559 |
+
}
|
| 1560 |
+
},
|
| 1561 |
+
"node_modules/hermes-estree": {
|
| 1562 |
+
"version": "0.25.1",
|
| 1563 |
+
"resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz",
|
| 1564 |
+
"integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==",
|
| 1565 |
+
"dev": true,
|
| 1566 |
+
"license": "MIT"
|
| 1567 |
+
},
|
| 1568 |
+
"node_modules/hermes-parser": {
|
| 1569 |
+
"version": "0.25.1",
|
| 1570 |
+
"resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz",
|
| 1571 |
+
"integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==",
|
| 1572 |
+
"dev": true,
|
| 1573 |
+
"license": "MIT",
|
| 1574 |
+
"dependencies": {
|
| 1575 |
+
"hermes-estree": "0.25.1"
|
| 1576 |
+
}
|
| 1577 |
+
},
|
| 1578 |
+
"node_modules/ignore": {
|
| 1579 |
+
"version": "5.3.2",
|
| 1580 |
+
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
|
| 1581 |
+
"integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
|
| 1582 |
+
"dev": true,
|
| 1583 |
+
"license": "MIT",
|
| 1584 |
+
"engines": {
|
| 1585 |
+
"node": ">= 4"
|
| 1586 |
+
}
|
| 1587 |
+
},
|
| 1588 |
+
"node_modules/import-fresh": {
|
| 1589 |
+
"version": "3.3.1",
|
| 1590 |
+
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
|
| 1591 |
+
"integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
|
| 1592 |
+
"dev": true,
|
| 1593 |
+
"license": "MIT",
|
| 1594 |
+
"dependencies": {
|
| 1595 |
+
"parent-module": "^1.0.0",
|
| 1596 |
+
"resolve-from": "^4.0.0"
|
| 1597 |
+
},
|
| 1598 |
+
"engines": {
|
| 1599 |
+
"node": ">=6"
|
| 1600 |
+
},
|
| 1601 |
+
"funding": {
|
| 1602 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1603 |
+
}
|
| 1604 |
+
},
|
| 1605 |
+
"node_modules/imurmurhash": {
|
| 1606 |
+
"version": "0.1.4",
|
| 1607 |
+
"resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
|
| 1608 |
+
"integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
|
| 1609 |
+
"dev": true,
|
| 1610 |
+
"license": "MIT",
|
| 1611 |
+
"engines": {
|
| 1612 |
+
"node": ">=0.8.19"
|
| 1613 |
+
}
|
| 1614 |
+
},
|
| 1615 |
+
"node_modules/is-extglob": {
|
| 1616 |
+
"version": "2.1.1",
|
| 1617 |
+
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
|
| 1618 |
+
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
|
| 1619 |
+
"dev": true,
|
| 1620 |
+
"license": "MIT",
|
| 1621 |
+
"engines": {
|
| 1622 |
+
"node": ">=0.10.0"
|
| 1623 |
+
}
|
| 1624 |
+
},
|
| 1625 |
+
"node_modules/is-glob": {
|
| 1626 |
+
"version": "4.0.3",
|
| 1627 |
+
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
|
| 1628 |
+
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
|
| 1629 |
+
"dev": true,
|
| 1630 |
+
"license": "MIT",
|
| 1631 |
+
"dependencies": {
|
| 1632 |
+
"is-extglob": "^2.1.1"
|
| 1633 |
+
},
|
| 1634 |
+
"engines": {
|
| 1635 |
+
"node": ">=0.10.0"
|
| 1636 |
+
}
|
| 1637 |
+
},
|
| 1638 |
+
"node_modules/isexe": {
|
| 1639 |
+
"version": "2.0.0",
|
| 1640 |
+
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
|
| 1641 |
+
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
|
| 1642 |
+
"dev": true,
|
| 1643 |
+
"license": "ISC"
|
| 1644 |
+
},
|
| 1645 |
+
"node_modules/js-tokens": {
|
| 1646 |
+
"version": "4.0.0",
|
| 1647 |
+
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
| 1648 |
+
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
|
| 1649 |
+
"dev": true,
|
| 1650 |
+
"license": "MIT"
|
| 1651 |
+
},
|
| 1652 |
+
"node_modules/js-yaml": {
|
| 1653 |
+
"version": "4.1.1",
|
| 1654 |
+
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
|
| 1655 |
+
"integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
|
| 1656 |
+
"dev": true,
|
| 1657 |
+
"license": "MIT",
|
| 1658 |
+
"dependencies": {
|
| 1659 |
+
"argparse": "^2.0.1"
|
| 1660 |
+
},
|
| 1661 |
+
"bin": {
|
| 1662 |
+
"js-yaml": "bin/js-yaml.js"
|
| 1663 |
+
}
|
| 1664 |
+
},
|
| 1665 |
+
"node_modules/jsesc": {
|
| 1666 |
+
"version": "3.1.0",
|
| 1667 |
+
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
|
| 1668 |
+
"integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
|
| 1669 |
+
"dev": true,
|
| 1670 |
+
"license": "MIT",
|
| 1671 |
+
"bin": {
|
| 1672 |
+
"jsesc": "bin/jsesc"
|
| 1673 |
+
},
|
| 1674 |
+
"engines": {
|
| 1675 |
+
"node": ">=6"
|
| 1676 |
+
}
|
| 1677 |
+
},
|
| 1678 |
+
"node_modules/json-buffer": {
|
| 1679 |
+
"version": "3.0.1",
|
| 1680 |
+
"resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
|
| 1681 |
+
"integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
|
| 1682 |
+
"dev": true,
|
| 1683 |
+
"license": "MIT"
|
| 1684 |
+
},
|
| 1685 |
+
"node_modules/json-schema-traverse": {
|
| 1686 |
+
"version": "0.4.1",
|
| 1687 |
+
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
|
| 1688 |
+
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
|
| 1689 |
+
"dev": true,
|
| 1690 |
+
"license": "MIT"
|
| 1691 |
+
},
|
| 1692 |
+
"node_modules/json-stable-stringify-without-jsonify": {
|
| 1693 |
+
"version": "1.0.1",
|
| 1694 |
+
"resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
|
| 1695 |
+
"integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
|
| 1696 |
+
"dev": true,
|
| 1697 |
+
"license": "MIT"
|
| 1698 |
+
},
|
| 1699 |
+
"node_modules/json5": {
|
| 1700 |
+
"version": "2.2.3",
|
| 1701 |
+
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
|
| 1702 |
+
"integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
|
| 1703 |
+
"dev": true,
|
| 1704 |
+
"license": "MIT",
|
| 1705 |
+
"bin": {
|
| 1706 |
+
"json5": "lib/cli.js"
|
| 1707 |
+
},
|
| 1708 |
+
"engines": {
|
| 1709 |
+
"node": ">=6"
|
| 1710 |
+
}
|
| 1711 |
+
},
|
| 1712 |
+
"node_modules/keyv": {
|
| 1713 |
+
"version": "4.5.4",
|
| 1714 |
+
"resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
|
| 1715 |
+
"integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
|
| 1716 |
+
"dev": true,
|
| 1717 |
+
"license": "MIT",
|
| 1718 |
+
"dependencies": {
|
| 1719 |
+
"json-buffer": "3.0.1"
|
| 1720 |
+
}
|
| 1721 |
+
},
|
| 1722 |
+
"node_modules/levn": {
|
| 1723 |
+
"version": "0.4.1",
|
| 1724 |
+
"resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
|
| 1725 |
+
"integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
|
| 1726 |
+
"dev": true,
|
| 1727 |
+
"license": "MIT",
|
| 1728 |
+
"dependencies": {
|
| 1729 |
+
"prelude-ls": "^1.2.1",
|
| 1730 |
+
"type-check": "~0.4.0"
|
| 1731 |
+
},
|
| 1732 |
+
"engines": {
|
| 1733 |
+
"node": ">= 0.8.0"
|
| 1734 |
+
}
|
| 1735 |
+
},
|
| 1736 |
+
"node_modules/lightningcss": {
|
| 1737 |
+
"version": "1.32.0",
|
| 1738 |
+
"resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",
|
| 1739 |
+
"integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",
|
| 1740 |
+
"dev": true,
|
| 1741 |
+
"license": "MPL-2.0",
|
| 1742 |
+
"dependencies": {
|
| 1743 |
+
"detect-libc": "^2.0.3"
|
| 1744 |
+
},
|
| 1745 |
+
"engines": {
|
| 1746 |
+
"node": ">= 12.0.0"
|
| 1747 |
+
},
|
| 1748 |
+
"funding": {
|
| 1749 |
+
"type": "opencollective",
|
| 1750 |
+
"url": "https://opencollective.com/parcel"
|
| 1751 |
+
},
|
| 1752 |
+
"optionalDependencies": {
|
| 1753 |
+
"lightningcss-android-arm64": "1.32.0",
|
| 1754 |
+
"lightningcss-darwin-arm64": "1.32.0",
|
| 1755 |
+
"lightningcss-darwin-x64": "1.32.0",
|
| 1756 |
+
"lightningcss-freebsd-x64": "1.32.0",
|
| 1757 |
+
"lightningcss-linux-arm-gnueabihf": "1.32.0",
|
| 1758 |
+
"lightningcss-linux-arm64-gnu": "1.32.0",
|
| 1759 |
+
"lightningcss-linux-arm64-musl": "1.32.0",
|
| 1760 |
+
"lightningcss-linux-x64-gnu": "1.32.0",
|
| 1761 |
+
"lightningcss-linux-x64-musl": "1.32.0",
|
| 1762 |
+
"lightningcss-win32-arm64-msvc": "1.32.0",
|
| 1763 |
+
"lightningcss-win32-x64-msvc": "1.32.0"
|
| 1764 |
+
}
|
| 1765 |
+
},
|
| 1766 |
+
"node_modules/lightningcss-android-arm64": {
|
| 1767 |
+
"version": "1.32.0",
|
| 1768 |
+
"resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz",
|
| 1769 |
+
"integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==",
|
| 1770 |
+
"cpu": [
|
| 1771 |
+
"arm64"
|
| 1772 |
+
],
|
| 1773 |
+
"dev": true,
|
| 1774 |
+
"license": "MPL-2.0",
|
| 1775 |
+
"optional": true,
|
| 1776 |
+
"os": [
|
| 1777 |
+
"android"
|
| 1778 |
+
],
|
| 1779 |
+
"engines": {
|
| 1780 |
+
"node": ">= 12.0.0"
|
| 1781 |
+
},
|
| 1782 |
+
"funding": {
|
| 1783 |
+
"type": "opencollective",
|
| 1784 |
+
"url": "https://opencollective.com/parcel"
|
| 1785 |
+
}
|
| 1786 |
+
},
|
| 1787 |
+
"node_modules/lightningcss-darwin-arm64": {
|
| 1788 |
+
"version": "1.32.0",
|
| 1789 |
+
"resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz",
|
| 1790 |
+
"integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==",
|
| 1791 |
+
"cpu": [
|
| 1792 |
+
"arm64"
|
| 1793 |
+
],
|
| 1794 |
+
"dev": true,
|
| 1795 |
+
"license": "MPL-2.0",
|
| 1796 |
+
"optional": true,
|
| 1797 |
+
"os": [
|
| 1798 |
+
"darwin"
|
| 1799 |
+
],
|
| 1800 |
+
"engines": {
|
| 1801 |
+
"node": ">= 12.0.0"
|
| 1802 |
+
},
|
| 1803 |
+
"funding": {
|
| 1804 |
+
"type": "opencollective",
|
| 1805 |
+
"url": "https://opencollective.com/parcel"
|
| 1806 |
+
}
|
| 1807 |
+
},
|
| 1808 |
+
"node_modules/lightningcss-darwin-x64": {
|
| 1809 |
+
"version": "1.32.0",
|
| 1810 |
+
"resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz",
|
| 1811 |
+
"integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==",
|
| 1812 |
+
"cpu": [
|
| 1813 |
+
"x64"
|
| 1814 |
+
],
|
| 1815 |
+
"dev": true,
|
| 1816 |
+
"license": "MPL-2.0",
|
| 1817 |
+
"optional": true,
|
| 1818 |
+
"os": [
|
| 1819 |
+
"darwin"
|
| 1820 |
+
],
|
| 1821 |
+
"engines": {
|
| 1822 |
+
"node": ">= 12.0.0"
|
| 1823 |
+
},
|
| 1824 |
+
"funding": {
|
| 1825 |
+
"type": "opencollective",
|
| 1826 |
+
"url": "https://opencollective.com/parcel"
|
| 1827 |
+
}
|
| 1828 |
+
},
|
| 1829 |
+
"node_modules/lightningcss-freebsd-x64": {
|
| 1830 |
+
"version": "1.32.0",
|
| 1831 |
+
"resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz",
|
| 1832 |
+
"integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==",
|
| 1833 |
+
"cpu": [
|
| 1834 |
+
"x64"
|
| 1835 |
+
],
|
| 1836 |
+
"dev": true,
|
| 1837 |
+
"license": "MPL-2.0",
|
| 1838 |
+
"optional": true,
|
| 1839 |
+
"os": [
|
| 1840 |
+
"freebsd"
|
| 1841 |
+
],
|
| 1842 |
+
"engines": {
|
| 1843 |
+
"node": ">= 12.0.0"
|
| 1844 |
+
},
|
| 1845 |
+
"funding": {
|
| 1846 |
+
"type": "opencollective",
|
| 1847 |
+
"url": "https://opencollective.com/parcel"
|
| 1848 |
+
}
|
| 1849 |
+
},
|
| 1850 |
+
"node_modules/lightningcss-linux-arm-gnueabihf": {
|
| 1851 |
+
"version": "1.32.0",
|
| 1852 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz",
|
| 1853 |
+
"integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==",
|
| 1854 |
+
"cpu": [
|
| 1855 |
+
"arm"
|
| 1856 |
+
],
|
| 1857 |
+
"dev": true,
|
| 1858 |
+
"license": "MPL-2.0",
|
| 1859 |
+
"optional": true,
|
| 1860 |
+
"os": [
|
| 1861 |
+
"linux"
|
| 1862 |
+
],
|
| 1863 |
+
"engines": {
|
| 1864 |
+
"node": ">= 12.0.0"
|
| 1865 |
+
},
|
| 1866 |
+
"funding": {
|
| 1867 |
+
"type": "opencollective",
|
| 1868 |
+
"url": "https://opencollective.com/parcel"
|
| 1869 |
+
}
|
| 1870 |
+
},
|
| 1871 |
+
"node_modules/lightningcss-linux-arm64-gnu": {
|
| 1872 |
+
"version": "1.32.0",
|
| 1873 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz",
|
| 1874 |
+
"integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==",
|
| 1875 |
+
"cpu": [
|
| 1876 |
+
"arm64"
|
| 1877 |
+
],
|
| 1878 |
+
"dev": true,
|
| 1879 |
+
"license": "MPL-2.0",
|
| 1880 |
+
"optional": true,
|
| 1881 |
+
"os": [
|
| 1882 |
+
"linux"
|
| 1883 |
+
],
|
| 1884 |
+
"engines": {
|
| 1885 |
+
"node": ">= 12.0.0"
|
| 1886 |
+
},
|
| 1887 |
+
"funding": {
|
| 1888 |
+
"type": "opencollective",
|
| 1889 |
+
"url": "https://opencollective.com/parcel"
|
| 1890 |
+
}
|
| 1891 |
+
},
|
| 1892 |
+
"node_modules/lightningcss-linux-arm64-musl": {
|
| 1893 |
+
"version": "1.32.0",
|
| 1894 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz",
|
| 1895 |
+
"integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==",
|
| 1896 |
+
"cpu": [
|
| 1897 |
+
"arm64"
|
| 1898 |
+
],
|
| 1899 |
+
"dev": true,
|
| 1900 |
+
"license": "MPL-2.0",
|
| 1901 |
+
"optional": true,
|
| 1902 |
+
"os": [
|
| 1903 |
+
"linux"
|
| 1904 |
+
],
|
| 1905 |
+
"engines": {
|
| 1906 |
+
"node": ">= 12.0.0"
|
| 1907 |
+
},
|
| 1908 |
+
"funding": {
|
| 1909 |
+
"type": "opencollective",
|
| 1910 |
+
"url": "https://opencollective.com/parcel"
|
| 1911 |
+
}
|
| 1912 |
+
},
|
| 1913 |
+
"node_modules/lightningcss-linux-x64-gnu": {
|
| 1914 |
+
"version": "1.32.0",
|
| 1915 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",
|
| 1916 |
+
"integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",
|
| 1917 |
+
"cpu": [
|
| 1918 |
+
"x64"
|
| 1919 |
+
],
|
| 1920 |
+
"dev": true,
|
| 1921 |
+
"license": "MPL-2.0",
|
| 1922 |
+
"optional": true,
|
| 1923 |
+
"os": [
|
| 1924 |
+
"linux"
|
| 1925 |
+
],
|
| 1926 |
+
"engines": {
|
| 1927 |
+
"node": ">= 12.0.0"
|
| 1928 |
+
},
|
| 1929 |
+
"funding": {
|
| 1930 |
+
"type": "opencollective",
|
| 1931 |
+
"url": "https://opencollective.com/parcel"
|
| 1932 |
+
}
|
| 1933 |
+
},
|
| 1934 |
+
"node_modules/lightningcss-linux-x64-musl": {
|
| 1935 |
+
"version": "1.32.0",
|
| 1936 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",
|
| 1937 |
+
"integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",
|
| 1938 |
+
"cpu": [
|
| 1939 |
+
"x64"
|
| 1940 |
+
],
|
| 1941 |
+
"dev": true,
|
| 1942 |
+
"license": "MPL-2.0",
|
| 1943 |
+
"optional": true,
|
| 1944 |
+
"os": [
|
| 1945 |
+
"linux"
|
| 1946 |
+
],
|
| 1947 |
+
"engines": {
|
| 1948 |
+
"node": ">= 12.0.0"
|
| 1949 |
+
},
|
| 1950 |
+
"funding": {
|
| 1951 |
+
"type": "opencollective",
|
| 1952 |
+
"url": "https://opencollective.com/parcel"
|
| 1953 |
+
}
|
| 1954 |
+
},
|
| 1955 |
+
"node_modules/lightningcss-win32-arm64-msvc": {
|
| 1956 |
+
"version": "1.32.0",
|
| 1957 |
+
"resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz",
|
| 1958 |
+
"integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==",
|
| 1959 |
+
"cpu": [
|
| 1960 |
+
"arm64"
|
| 1961 |
+
],
|
| 1962 |
+
"dev": true,
|
| 1963 |
+
"license": "MPL-2.0",
|
| 1964 |
+
"optional": true,
|
| 1965 |
+
"os": [
|
| 1966 |
+
"win32"
|
| 1967 |
+
],
|
| 1968 |
+
"engines": {
|
| 1969 |
+
"node": ">= 12.0.0"
|
| 1970 |
+
},
|
| 1971 |
+
"funding": {
|
| 1972 |
+
"type": "opencollective",
|
| 1973 |
+
"url": "https://opencollective.com/parcel"
|
| 1974 |
+
}
|
| 1975 |
+
},
|
| 1976 |
+
"node_modules/lightningcss-win32-x64-msvc": {
|
| 1977 |
+
"version": "1.32.0",
|
| 1978 |
+
"resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz",
|
| 1979 |
+
"integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==",
|
| 1980 |
+
"cpu": [
|
| 1981 |
+
"x64"
|
| 1982 |
+
],
|
| 1983 |
+
"dev": true,
|
| 1984 |
+
"license": "MPL-2.0",
|
| 1985 |
+
"optional": true,
|
| 1986 |
+
"os": [
|
| 1987 |
+
"win32"
|
| 1988 |
+
],
|
| 1989 |
+
"engines": {
|
| 1990 |
+
"node": ">= 12.0.0"
|
| 1991 |
+
},
|
| 1992 |
+
"funding": {
|
| 1993 |
+
"type": "opencollective",
|
| 1994 |
+
"url": "https://opencollective.com/parcel"
|
| 1995 |
+
}
|
| 1996 |
+
},
|
| 1997 |
+
"node_modules/locate-path": {
|
| 1998 |
+
"version": "6.0.0",
|
| 1999 |
+
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
|
| 2000 |
+
"integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
|
| 2001 |
+
"dev": true,
|
| 2002 |
+
"license": "MIT",
|
| 2003 |
+
"dependencies": {
|
| 2004 |
+
"p-locate": "^5.0.0"
|
| 2005 |
+
},
|
| 2006 |
+
"engines": {
|
| 2007 |
+
"node": ">=10"
|
| 2008 |
+
},
|
| 2009 |
+
"funding": {
|
| 2010 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 2011 |
+
}
|
| 2012 |
+
},
|
| 2013 |
+
"node_modules/lodash.merge": {
|
| 2014 |
+
"version": "4.6.2",
|
| 2015 |
+
"resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
|
| 2016 |
+
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
|
| 2017 |
+
"dev": true,
|
| 2018 |
+
"license": "MIT"
|
| 2019 |
+
},
|
| 2020 |
+
"node_modules/lru-cache": {
|
| 2021 |
+
"version": "5.1.1",
|
| 2022 |
+
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
|
| 2023 |
+
"integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
|
| 2024 |
+
"dev": true,
|
| 2025 |
+
"license": "ISC",
|
| 2026 |
+
"dependencies": {
|
| 2027 |
+
"yallist": "^3.0.2"
|
| 2028 |
+
}
|
| 2029 |
+
},
|
| 2030 |
+
"node_modules/minimatch": {
|
| 2031 |
+
"version": "3.1.5",
|
| 2032 |
+
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",
|
| 2033 |
+
"integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",
|
| 2034 |
+
"dev": true,
|
| 2035 |
+
"license": "ISC",
|
| 2036 |
+
"dependencies": {
|
| 2037 |
+
"brace-expansion": "^1.1.7"
|
| 2038 |
+
},
|
| 2039 |
+
"engines": {
|
| 2040 |
+
"node": "*"
|
| 2041 |
+
}
|
| 2042 |
+
},
|
| 2043 |
+
"node_modules/ms": {
|
| 2044 |
+
"version": "2.1.3",
|
| 2045 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
| 2046 |
+
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
| 2047 |
+
"dev": true,
|
| 2048 |
+
"license": "MIT"
|
| 2049 |
+
},
|
| 2050 |
+
"node_modules/nanoid": {
|
| 2051 |
+
"version": "3.3.11",
|
| 2052 |
+
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
|
| 2053 |
+
"integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
|
| 2054 |
+
"dev": true,
|
| 2055 |
+
"funding": [
|
| 2056 |
+
{
|
| 2057 |
+
"type": "github",
|
| 2058 |
+
"url": "https://github.com/sponsors/ai"
|
| 2059 |
+
}
|
| 2060 |
+
],
|
| 2061 |
+
"license": "MIT",
|
| 2062 |
+
"bin": {
|
| 2063 |
+
"nanoid": "bin/nanoid.cjs"
|
| 2064 |
+
},
|
| 2065 |
+
"engines": {
|
| 2066 |
+
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
|
| 2067 |
+
}
|
| 2068 |
+
},
|
| 2069 |
+
"node_modules/natural-compare": {
|
| 2070 |
+
"version": "1.4.0",
|
| 2071 |
+
"resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
|
| 2072 |
+
"integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
|
| 2073 |
+
"dev": true,
|
| 2074 |
+
"license": "MIT"
|
| 2075 |
+
},
|
| 2076 |
+
"node_modules/node-releases": {
|
| 2077 |
+
"version": "2.0.36",
|
| 2078 |
+
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.36.tgz",
|
| 2079 |
+
"integrity": "sha512-TdC8FSgHz8Mwtw9g5L4gR/Sh9XhSP/0DEkQxfEFXOpiul5IiHgHan2VhYYb6agDSfp4KuvltmGApc8HMgUrIkA==",
|
| 2080 |
+
"dev": true,
|
| 2081 |
+
"license": "MIT"
|
| 2082 |
+
},
|
| 2083 |
+
"node_modules/optionator": {
|
| 2084 |
+
"version": "0.9.4",
|
| 2085 |
+
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
|
| 2086 |
+
"integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",
|
| 2087 |
+
"dev": true,
|
| 2088 |
+
"license": "MIT",
|
| 2089 |
+
"dependencies": {
|
| 2090 |
+
"deep-is": "^0.1.3",
|
| 2091 |
+
"fast-levenshtein": "^2.0.6",
|
| 2092 |
+
"levn": "^0.4.1",
|
| 2093 |
+
"prelude-ls": "^1.2.1",
|
| 2094 |
+
"type-check": "^0.4.0",
|
| 2095 |
+
"word-wrap": "^1.2.5"
|
| 2096 |
+
},
|
| 2097 |
+
"engines": {
|
| 2098 |
+
"node": ">= 0.8.0"
|
| 2099 |
+
}
|
| 2100 |
+
},
|
| 2101 |
+
"node_modules/p-limit": {
|
| 2102 |
+
"version": "3.1.0",
|
| 2103 |
+
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
|
| 2104 |
+
"integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
|
| 2105 |
+
"dev": true,
|
| 2106 |
+
"license": "MIT",
|
| 2107 |
+
"dependencies": {
|
| 2108 |
+
"yocto-queue": "^0.1.0"
|
| 2109 |
+
},
|
| 2110 |
+
"engines": {
|
| 2111 |
+
"node": ">=10"
|
| 2112 |
+
},
|
| 2113 |
+
"funding": {
|
| 2114 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 2115 |
+
}
|
| 2116 |
+
},
|
| 2117 |
+
"node_modules/p-locate": {
|
| 2118 |
+
"version": "5.0.0",
|
| 2119 |
+
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
|
| 2120 |
+
"integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
|
| 2121 |
+
"dev": true,
|
| 2122 |
+
"license": "MIT",
|
| 2123 |
+
"dependencies": {
|
| 2124 |
+
"p-limit": "^3.0.2"
|
| 2125 |
+
},
|
| 2126 |
+
"engines": {
|
| 2127 |
+
"node": ">=10"
|
| 2128 |
+
},
|
| 2129 |
+
"funding": {
|
| 2130 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 2131 |
+
}
|
| 2132 |
+
},
|
| 2133 |
+
"node_modules/parent-module": {
|
| 2134 |
+
"version": "1.0.1",
|
| 2135 |
+
"resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
|
| 2136 |
+
"integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
|
| 2137 |
+
"dev": true,
|
| 2138 |
+
"license": "MIT",
|
| 2139 |
+
"dependencies": {
|
| 2140 |
+
"callsites": "^3.0.0"
|
| 2141 |
+
},
|
| 2142 |
+
"engines": {
|
| 2143 |
+
"node": ">=6"
|
| 2144 |
+
}
|
| 2145 |
+
},
|
| 2146 |
+
"node_modules/path-exists": {
|
| 2147 |
+
"version": "4.0.0",
|
| 2148 |
+
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
|
| 2149 |
+
"integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
|
| 2150 |
+
"dev": true,
|
| 2151 |
+
"license": "MIT",
|
| 2152 |
+
"engines": {
|
| 2153 |
+
"node": ">=8"
|
| 2154 |
+
}
|
| 2155 |
+
},
|
| 2156 |
+
"node_modules/path-key": {
|
| 2157 |
+
"version": "3.1.1",
|
| 2158 |
+
"resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
|
| 2159 |
+
"integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
|
| 2160 |
+
"dev": true,
|
| 2161 |
+
"license": "MIT",
|
| 2162 |
+
"engines": {
|
| 2163 |
+
"node": ">=8"
|
| 2164 |
+
}
|
| 2165 |
+
},
|
| 2166 |
+
"node_modules/picocolors": {
|
| 2167 |
+
"version": "1.1.1",
|
| 2168 |
+
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
|
| 2169 |
+
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
|
| 2170 |
+
"dev": true,
|
| 2171 |
+
"license": "ISC"
|
| 2172 |
+
},
|
| 2173 |
+
"node_modules/picomatch": {
|
| 2174 |
+
"version": "4.0.3",
|
| 2175 |
+
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",
|
| 2176 |
+
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
|
| 2177 |
+
"dev": true,
|
| 2178 |
+
"license": "MIT",
|
| 2179 |
+
"engines": {
|
| 2180 |
+
"node": ">=12"
|
| 2181 |
+
},
|
| 2182 |
+
"funding": {
|
| 2183 |
+
"url": "https://github.com/sponsors/jonschlinkert"
|
| 2184 |
+
}
|
| 2185 |
+
},
|
| 2186 |
+
"node_modules/postcss": {
|
| 2187 |
+
"version": "8.5.8",
|
| 2188 |
+
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz",
|
| 2189 |
+
"integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==",
|
| 2190 |
+
"dev": true,
|
| 2191 |
+
"funding": [
|
| 2192 |
+
{
|
| 2193 |
+
"type": "opencollective",
|
| 2194 |
+
"url": "https://opencollective.com/postcss/"
|
| 2195 |
+
},
|
| 2196 |
+
{
|
| 2197 |
+
"type": "tidelift",
|
| 2198 |
+
"url": "https://tidelift.com/funding/github/npm/postcss"
|
| 2199 |
+
},
|
| 2200 |
+
{
|
| 2201 |
+
"type": "github",
|
| 2202 |
+
"url": "https://github.com/sponsors/ai"
|
| 2203 |
+
}
|
| 2204 |
+
],
|
| 2205 |
+
"license": "MIT",
|
| 2206 |
+
"dependencies": {
|
| 2207 |
+
"nanoid": "^3.3.11",
|
| 2208 |
+
"picocolors": "^1.1.1",
|
| 2209 |
+
"source-map-js": "^1.2.1"
|
| 2210 |
+
},
|
| 2211 |
+
"engines": {
|
| 2212 |
+
"node": "^10 || ^12 || >=14"
|
| 2213 |
+
}
|
| 2214 |
+
},
|
| 2215 |
+
"node_modules/prelude-ls": {
|
| 2216 |
+
"version": "1.2.1",
|
| 2217 |
+
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
|
| 2218 |
+
"integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
|
| 2219 |
+
"dev": true,
|
| 2220 |
+
"license": "MIT",
|
| 2221 |
+
"engines": {
|
| 2222 |
+
"node": ">= 0.8.0"
|
| 2223 |
+
}
|
| 2224 |
+
},
|
| 2225 |
+
"node_modules/punycode": {
|
| 2226 |
+
"version": "2.3.1",
|
| 2227 |
+
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
|
| 2228 |
+
"integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
|
| 2229 |
+
"dev": true,
|
| 2230 |
+
"license": "MIT",
|
| 2231 |
+
"engines": {
|
| 2232 |
+
"node": ">=6"
|
| 2233 |
+
}
|
| 2234 |
+
},
|
| 2235 |
+
"node_modules/react": {
|
| 2236 |
+
"version": "19.2.4",
|
| 2237 |
+
"resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz",
|
| 2238 |
+
"integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==",
|
| 2239 |
+
"license": "MIT",
|
| 2240 |
+
"engines": {
|
| 2241 |
+
"node": ">=0.10.0"
|
| 2242 |
+
}
|
| 2243 |
+
},
|
| 2244 |
+
"node_modules/react-dom": {
|
| 2245 |
+
"version": "19.2.4",
|
| 2246 |
+
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz",
|
| 2247 |
+
"integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==",
|
| 2248 |
+
"license": "MIT",
|
| 2249 |
+
"dependencies": {
|
| 2250 |
+
"scheduler": "^0.27.0"
|
| 2251 |
+
},
|
| 2252 |
+
"peerDependencies": {
|
| 2253 |
+
"react": "^19.2.4"
|
| 2254 |
+
}
|
| 2255 |
+
},
|
| 2256 |
+
"node_modules/resolve-from": {
|
| 2257 |
+
"version": "4.0.0",
|
| 2258 |
+
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
|
| 2259 |
+
"integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
|
| 2260 |
+
"dev": true,
|
| 2261 |
+
"license": "MIT",
|
| 2262 |
+
"engines": {
|
| 2263 |
+
"node": ">=4"
|
| 2264 |
+
}
|
| 2265 |
+
},
|
| 2266 |
+
"node_modules/rolldown": {
|
| 2267 |
+
"version": "1.0.0-rc.9",
|
| 2268 |
+
"resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-rc.9.tgz",
|
| 2269 |
+
"integrity": "sha512-9EbgWge7ZH+yqb4d2EnELAntgPTWbfL8ajiTW+SyhJEC4qhBbkCKbqFV4Ge4zmu5ziQuVbWxb/XwLZ+RIO7E8Q==",
|
| 2270 |
+
"dev": true,
|
| 2271 |
+
"license": "MIT",
|
| 2272 |
+
"dependencies": {
|
| 2273 |
+
"@oxc-project/types": "=0.115.0",
|
| 2274 |
+
"@rolldown/pluginutils": "1.0.0-rc.9"
|
| 2275 |
+
},
|
| 2276 |
+
"bin": {
|
| 2277 |
+
"rolldown": "bin/cli.mjs"
|
| 2278 |
+
},
|
| 2279 |
+
"engines": {
|
| 2280 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 2281 |
+
},
|
| 2282 |
+
"optionalDependencies": {
|
| 2283 |
+
"@rolldown/binding-android-arm64": "1.0.0-rc.9",
|
| 2284 |
+
"@rolldown/binding-darwin-arm64": "1.0.0-rc.9",
|
| 2285 |
+
"@rolldown/binding-darwin-x64": "1.0.0-rc.9",
|
| 2286 |
+
"@rolldown/binding-freebsd-x64": "1.0.0-rc.9",
|
| 2287 |
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.9",
|
| 2288 |
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.9",
|
| 2289 |
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-rc.9",
|
| 2290 |
+
"@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.9",
|
| 2291 |
+
"@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.9",
|
| 2292 |
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-rc.9",
|
| 2293 |
+
"@rolldown/binding-linux-x64-musl": "1.0.0-rc.9",
|
| 2294 |
+
"@rolldown/binding-openharmony-arm64": "1.0.0-rc.9",
|
| 2295 |
+
"@rolldown/binding-wasm32-wasi": "1.0.0-rc.9",
|
| 2296 |
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.9",
|
| 2297 |
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-rc.9"
|
| 2298 |
+
}
|
| 2299 |
+
},
|
| 2300 |
+
"node_modules/rolldown/node_modules/@rolldown/pluginutils": {
|
| 2301 |
+
"version": "1.0.0-rc.9",
|
| 2302 |
+
"resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.9.tgz",
|
| 2303 |
+
"integrity": "sha512-w6oiRWgEBl04QkFZgmW+jnU1EC9b57Oihi2ot3HNWIQRqgHp5PnYDia5iZ5FF7rpa4EQdiqMDXjlqKGXBhsoXw==",
|
| 2304 |
+
"dev": true,
|
| 2305 |
+
"license": "MIT"
|
| 2306 |
+
},
|
| 2307 |
+
"node_modules/scheduler": {
|
| 2308 |
+
"version": "0.27.0",
|
| 2309 |
+
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
|
| 2310 |
+
"integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
|
| 2311 |
+
"license": "MIT"
|
| 2312 |
+
},
|
| 2313 |
+
"node_modules/semver": {
|
| 2314 |
+
"version": "6.3.1",
|
| 2315 |
+
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
|
| 2316 |
+
"integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
|
| 2317 |
+
"dev": true,
|
| 2318 |
+
"license": "ISC",
|
| 2319 |
+
"bin": {
|
| 2320 |
+
"semver": "bin/semver.js"
|
| 2321 |
+
}
|
| 2322 |
+
},
|
| 2323 |
+
"node_modules/shebang-command": {
|
| 2324 |
+
"version": "2.0.0",
|
| 2325 |
+
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
|
| 2326 |
+
"integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
|
| 2327 |
+
"dev": true,
|
| 2328 |
+
"license": "MIT",
|
| 2329 |
+
"dependencies": {
|
| 2330 |
+
"shebang-regex": "^3.0.0"
|
| 2331 |
+
},
|
| 2332 |
+
"engines": {
|
| 2333 |
+
"node": ">=8"
|
| 2334 |
+
}
|
| 2335 |
+
},
|
| 2336 |
+
"node_modules/shebang-regex": {
|
| 2337 |
+
"version": "3.0.0",
|
| 2338 |
+
"resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
|
| 2339 |
+
"integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
|
| 2340 |
+
"dev": true,
|
| 2341 |
+
"license": "MIT",
|
| 2342 |
+
"engines": {
|
| 2343 |
+
"node": ">=8"
|
| 2344 |
+
}
|
| 2345 |
+
},
|
| 2346 |
+
"node_modules/source-map-js": {
|
| 2347 |
+
"version": "1.2.1",
|
| 2348 |
+
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
|
| 2349 |
+
"integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
|
| 2350 |
+
"dev": true,
|
| 2351 |
+
"license": "BSD-3-Clause",
|
| 2352 |
+
"engines": {
|
| 2353 |
+
"node": ">=0.10.0"
|
| 2354 |
+
}
|
| 2355 |
+
},
|
| 2356 |
+
"node_modules/strip-json-comments": {
|
| 2357 |
+
"version": "3.1.1",
|
| 2358 |
+
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
|
| 2359 |
+
"integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
|
| 2360 |
+
"dev": true,
|
| 2361 |
+
"license": "MIT",
|
| 2362 |
+
"engines": {
|
| 2363 |
+
"node": ">=8"
|
| 2364 |
+
},
|
| 2365 |
+
"funding": {
|
| 2366 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 2367 |
+
}
|
| 2368 |
+
},
|
| 2369 |
+
"node_modules/supports-color": {
|
| 2370 |
+
"version": "7.2.0",
|
| 2371 |
+
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
| 2372 |
+
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
| 2373 |
+
"dev": true,
|
| 2374 |
+
"license": "MIT",
|
| 2375 |
+
"dependencies": {
|
| 2376 |
+
"has-flag": "^4.0.0"
|
| 2377 |
+
},
|
| 2378 |
+
"engines": {
|
| 2379 |
+
"node": ">=8"
|
| 2380 |
+
}
|
| 2381 |
+
},
|
| 2382 |
+
"node_modules/tinyglobby": {
|
| 2383 |
+
"version": "0.2.15",
|
| 2384 |
+
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",
|
| 2385 |
+
"integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",
|
| 2386 |
+
"dev": true,
|
| 2387 |
+
"license": "MIT",
|
| 2388 |
+
"dependencies": {
|
| 2389 |
+
"fdir": "^6.5.0",
|
| 2390 |
+
"picomatch": "^4.0.3"
|
| 2391 |
+
},
|
| 2392 |
+
"engines": {
|
| 2393 |
+
"node": ">=12.0.0"
|
| 2394 |
+
},
|
| 2395 |
+
"funding": {
|
| 2396 |
+
"url": "https://github.com/sponsors/SuperchupuDev"
|
| 2397 |
+
}
|
| 2398 |
+
},
|
| 2399 |
+
"node_modules/tslib": {
|
| 2400 |
+
"version": "2.8.1",
|
| 2401 |
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
| 2402 |
+
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
|
| 2403 |
+
"dev": true,
|
| 2404 |
+
"license": "0BSD",
|
| 2405 |
+
"optional": true
|
| 2406 |
+
},
|
| 2407 |
+
"node_modules/type-check": {
|
| 2408 |
+
"version": "0.4.0",
|
| 2409 |
+
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
|
| 2410 |
+
"integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
|
| 2411 |
+
"dev": true,
|
| 2412 |
+
"license": "MIT",
|
| 2413 |
+
"dependencies": {
|
| 2414 |
+
"prelude-ls": "^1.2.1"
|
| 2415 |
+
},
|
| 2416 |
+
"engines": {
|
| 2417 |
+
"node": ">= 0.8.0"
|
| 2418 |
+
}
|
| 2419 |
+
},
|
| 2420 |
+
"node_modules/update-browserslist-db": {
|
| 2421 |
+
"version": "1.2.3",
|
| 2422 |
+
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",
|
| 2423 |
+
"integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",
|
| 2424 |
+
"dev": true,
|
| 2425 |
+
"funding": [
|
| 2426 |
+
{
|
| 2427 |
+
"type": "opencollective",
|
| 2428 |
+
"url": "https://opencollective.com/browserslist"
|
| 2429 |
+
},
|
| 2430 |
+
{
|
| 2431 |
+
"type": "tidelift",
|
| 2432 |
+
"url": "https://tidelift.com/funding/github/npm/browserslist"
|
| 2433 |
+
},
|
| 2434 |
+
{
|
| 2435 |
+
"type": "github",
|
| 2436 |
+
"url": "https://github.com/sponsors/ai"
|
| 2437 |
+
}
|
| 2438 |
+
],
|
| 2439 |
+
"license": "MIT",
|
| 2440 |
+
"dependencies": {
|
| 2441 |
+
"escalade": "^3.2.0",
|
| 2442 |
+
"picocolors": "^1.1.1"
|
| 2443 |
+
},
|
| 2444 |
+
"bin": {
|
| 2445 |
+
"update-browserslist-db": "cli.js"
|
| 2446 |
+
},
|
| 2447 |
+
"peerDependencies": {
|
| 2448 |
+
"browserslist": ">= 4.21.0"
|
| 2449 |
+
}
|
| 2450 |
+
},
|
| 2451 |
+
"node_modules/uri-js": {
|
| 2452 |
+
"version": "4.4.1",
|
| 2453 |
+
"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
|
| 2454 |
+
"integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
|
| 2455 |
+
"dev": true,
|
| 2456 |
+
"license": "BSD-2-Clause",
|
| 2457 |
+
"dependencies": {
|
| 2458 |
+
"punycode": "^2.1.0"
|
| 2459 |
+
}
|
| 2460 |
+
},
|
| 2461 |
+
"node_modules/vite": {
|
| 2462 |
+
"version": "8.0.0",
|
| 2463 |
+
"resolved": "https://registry.npmjs.org/vite/-/vite-8.0.0.tgz",
|
| 2464 |
+
"integrity": "sha512-fPGaRNj9Zytaf8LEiBhY7Z6ijnFKdzU/+mL8EFBaKr7Vw1/FWcTBAMW0wLPJAGMPX38ZPVCVgLceWiEqeoqL2Q==",
|
| 2465 |
+
"dev": true,
|
| 2466 |
+
"license": "MIT",
|
| 2467 |
+
"dependencies": {
|
| 2468 |
+
"@oxc-project/runtime": "0.115.0",
|
| 2469 |
+
"lightningcss": "^1.32.0",
|
| 2470 |
+
"picomatch": "^4.0.3",
|
| 2471 |
+
"postcss": "^8.5.8",
|
| 2472 |
+
"rolldown": "1.0.0-rc.9",
|
| 2473 |
+
"tinyglobby": "^0.2.15"
|
| 2474 |
+
},
|
| 2475 |
+
"bin": {
|
| 2476 |
+
"vite": "bin/vite.js"
|
| 2477 |
+
},
|
| 2478 |
+
"engines": {
|
| 2479 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 2480 |
+
},
|
| 2481 |
+
"funding": {
|
| 2482 |
+
"url": "https://github.com/vitejs/vite?sponsor=1"
|
| 2483 |
+
},
|
| 2484 |
+
"optionalDependencies": {
|
| 2485 |
+
"fsevents": "~2.3.3"
|
| 2486 |
+
},
|
| 2487 |
+
"peerDependencies": {
|
| 2488 |
+
"@types/node": "^20.19.0 || >=22.12.0",
|
| 2489 |
+
"@vitejs/devtools": "^0.0.0-alpha.31",
|
| 2490 |
+
"esbuild": "^0.27.0",
|
| 2491 |
+
"jiti": ">=1.21.0",
|
| 2492 |
+
"less": "^4.0.0",
|
| 2493 |
+
"sass": "^1.70.0",
|
| 2494 |
+
"sass-embedded": "^1.70.0",
|
| 2495 |
+
"stylus": ">=0.54.8",
|
| 2496 |
+
"sugarss": "^5.0.0",
|
| 2497 |
+
"terser": "^5.16.0",
|
| 2498 |
+
"tsx": "^4.8.1",
|
| 2499 |
+
"yaml": "^2.4.2"
|
| 2500 |
+
},
|
| 2501 |
+
"peerDependenciesMeta": {
|
| 2502 |
+
"@types/node": {
|
| 2503 |
+
"optional": true
|
| 2504 |
+
},
|
| 2505 |
+
"@vitejs/devtools": {
|
| 2506 |
+
"optional": true
|
| 2507 |
+
},
|
| 2508 |
+
"esbuild": {
|
| 2509 |
+
"optional": true
|
| 2510 |
+
},
|
| 2511 |
+
"jiti": {
|
| 2512 |
+
"optional": true
|
| 2513 |
+
},
|
| 2514 |
+
"less": {
|
| 2515 |
+
"optional": true
|
| 2516 |
+
},
|
| 2517 |
+
"sass": {
|
| 2518 |
+
"optional": true
|
| 2519 |
+
},
|
| 2520 |
+
"sass-embedded": {
|
| 2521 |
+
"optional": true
|
| 2522 |
+
},
|
| 2523 |
+
"stylus": {
|
| 2524 |
+
"optional": true
|
| 2525 |
+
},
|
| 2526 |
+
"sugarss": {
|
| 2527 |
+
"optional": true
|
| 2528 |
+
},
|
| 2529 |
+
"terser": {
|
| 2530 |
+
"optional": true
|
| 2531 |
+
},
|
| 2532 |
+
"tsx": {
|
| 2533 |
+
"optional": true
|
| 2534 |
+
},
|
| 2535 |
+
"yaml": {
|
| 2536 |
+
"optional": true
|
| 2537 |
+
}
|
| 2538 |
+
}
|
| 2539 |
+
},
|
| 2540 |
+
"node_modules/which": {
|
| 2541 |
+
"version": "2.0.2",
|
| 2542 |
+
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
|
| 2543 |
+
"integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
|
| 2544 |
+
"dev": true,
|
| 2545 |
+
"license": "ISC",
|
| 2546 |
+
"dependencies": {
|
| 2547 |
+
"isexe": "^2.0.0"
|
| 2548 |
+
},
|
| 2549 |
+
"bin": {
|
| 2550 |
+
"node-which": "bin/node-which"
|
| 2551 |
+
},
|
| 2552 |
+
"engines": {
|
| 2553 |
+
"node": ">= 8"
|
| 2554 |
+
}
|
| 2555 |
+
},
|
| 2556 |
+
"node_modules/word-wrap": {
|
| 2557 |
+
"version": "1.2.5",
|
| 2558 |
+
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
|
| 2559 |
+
"integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
|
| 2560 |
+
"dev": true,
|
| 2561 |
+
"license": "MIT",
|
| 2562 |
+
"engines": {
|
| 2563 |
+
"node": ">=0.10.0"
|
| 2564 |
+
}
|
| 2565 |
+
},
|
| 2566 |
+
"node_modules/yallist": {
|
| 2567 |
+
"version": "3.1.1",
|
| 2568 |
+
"resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
|
| 2569 |
+
"integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
|
| 2570 |
+
"dev": true,
|
| 2571 |
+
"license": "ISC"
|
| 2572 |
+
},
|
| 2573 |
+
"node_modules/yocto-queue": {
|
| 2574 |
+
"version": "0.1.0",
|
| 2575 |
+
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
|
| 2576 |
+
"integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
|
| 2577 |
+
"dev": true,
|
| 2578 |
+
"license": "MIT",
|
| 2579 |
+
"engines": {
|
| 2580 |
+
"node": ">=10"
|
| 2581 |
+
},
|
| 2582 |
+
"funding": {
|
| 2583 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 2584 |
+
}
|
| 2585 |
+
},
|
| 2586 |
+
"node_modules/zod": {
|
| 2587 |
+
"version": "4.3.6",
|
| 2588 |
+
"resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz",
|
| 2589 |
+
"integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==",
|
| 2590 |
+
"dev": true,
|
| 2591 |
+
"license": "MIT",
|
| 2592 |
+
"funding": {
|
| 2593 |
+
"url": "https://github.com/sponsors/colinhacks"
|
| 2594 |
+
}
|
| 2595 |
+
},
|
| 2596 |
+
"node_modules/zod-validation-error": {
|
| 2597 |
+
"version": "4.0.2",
|
| 2598 |
+
"resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz",
|
| 2599 |
+
"integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==",
|
| 2600 |
+
"dev": true,
|
| 2601 |
+
"license": "MIT",
|
| 2602 |
+
"engines": {
|
| 2603 |
+
"node": ">=18.0.0"
|
| 2604 |
+
},
|
| 2605 |
+
"peerDependencies": {
|
| 2606 |
+
"zod": "^3.25.0 || ^4.0.0"
|
| 2607 |
+
}
|
| 2608 |
+
}
|
| 2609 |
+
}
|
| 2610 |
+
}
|
frontend/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "frontend",
|
| 3 |
+
"private": true,
|
| 4 |
+
"version": "0.0.0",
|
| 5 |
+
"type": "module",
|
| 6 |
+
"scripts": {
|
| 7 |
+
"dev": "vite",
|
| 8 |
+
"build": "vite build",
|
| 9 |
+
"lint": "eslint .",
|
| 10 |
+
"preview": "vite preview"
|
| 11 |
+
},
|
| 12 |
+
"dependencies": {
|
| 13 |
+
"react": "^19.2.4",
|
| 14 |
+
"react-dom": "^19.2.4"
|
| 15 |
+
},
|
| 16 |
+
"devDependencies": {
|
| 17 |
+
"@eslint/js": "^9.39.4",
|
| 18 |
+
"@types/react": "^19.2.14",
|
| 19 |
+
"@types/react-dom": "^19.2.3",
|
| 20 |
+
"@vitejs/plugin-react": "^6.0.0",
|
| 21 |
+
"eslint": "^9.39.4",
|
| 22 |
+
"eslint-plugin-react-hooks": "^7.0.1",
|
| 23 |
+
"eslint-plugin-react-refresh": "^0.5.2",
|
| 24 |
+
"globals": "^17.4.0",
|
| 25 |
+
"vite": "^8.0.0"
|
| 26 |
+
}
|
| 27 |
+
}
|
frontend/public/favicon.svg
ADDED
|
|
frontend/public/icons.svg
ADDED
|
|
frontend/src/App.css
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.counter {
|
| 2 |
+
font-size: 16px;
|
| 3 |
+
padding: 5px 10px;
|
| 4 |
+
border-radius: 5px;
|
| 5 |
+
color: var(--accent);
|
| 6 |
+
background: var(--accent-bg);
|
| 7 |
+
border: 2px solid transparent;
|
| 8 |
+
transition: border-color 0.3s;
|
| 9 |
+
margin-bottom: 24px;
|
| 10 |
+
|
| 11 |
+
&:hover {
|
| 12 |
+
border-color: var(--accent-border);
|
| 13 |
+
}
|
| 14 |
+
&:focus-visible {
|
| 15 |
+
outline: 2px solid var(--accent);
|
| 16 |
+
outline-offset: 2px;
|
| 17 |
+
}
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
.hero {
|
| 21 |
+
position: relative;
|
| 22 |
+
|
| 23 |
+
.base,
|
| 24 |
+
.framework,
|
| 25 |
+
.vite {
|
| 26 |
+
inset-inline: 0;
|
| 27 |
+
margin: 0 auto;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
.base {
|
| 31 |
+
width: 170px;
|
| 32 |
+
position: relative;
|
| 33 |
+
z-index: 0;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
.framework,
|
| 37 |
+
.vite {
|
| 38 |
+
position: absolute;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
.framework {
|
| 42 |
+
z-index: 1;
|
| 43 |
+
top: 34px;
|
| 44 |
+
height: 28px;
|
| 45 |
+
transform: perspective(2000px) rotateZ(300deg) rotateX(44deg) rotateY(39deg)
|
| 46 |
+
scale(1.4);
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.vite {
|
| 50 |
+
z-index: 0;
|
| 51 |
+
top: 107px;
|
| 52 |
+
height: 26px;
|
| 53 |
+
width: auto;
|
| 54 |
+
transform: perspective(2000px) rotateZ(300deg) rotateX(40deg) rotateY(39deg)
|
| 55 |
+
scale(0.8);
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
#center {
|
| 60 |
+
display: flex;
|
| 61 |
+
flex-direction: column;
|
| 62 |
+
gap: 25px;
|
| 63 |
+
place-content: center;
|
| 64 |
+
place-items: center;
|
| 65 |
+
flex-grow: 1;
|
| 66 |
+
|
| 67 |
+
@media (max-width: 1024px) {
|
| 68 |
+
padding: 32px 20px 24px;
|
| 69 |
+
gap: 18px;
|
| 70 |
+
}
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
#next-steps {
|
| 74 |
+
display: flex;
|
| 75 |
+
border-top: 1px solid var(--border);
|
| 76 |
+
text-align: left;
|
| 77 |
+
|
| 78 |
+
& > div {
|
| 79 |
+
flex: 1 1 0;
|
| 80 |
+
padding: 32px;
|
| 81 |
+
@media (max-width: 1024px) {
|
| 82 |
+
padding: 24px 20px;
|
| 83 |
+
}
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.icon {
|
| 87 |
+
margin-bottom: 16px;
|
| 88 |
+
width: 22px;
|
| 89 |
+
height: 22px;
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
@media (max-width: 1024px) {
|
| 93 |
+
flex-direction: column;
|
| 94 |
+
text-align: center;
|
| 95 |
+
}
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
#docs {
|
| 99 |
+
border-right: 1px solid var(--border);
|
| 100 |
+
|
| 101 |
+
@media (max-width: 1024px) {
|
| 102 |
+
border-right: none;
|
| 103 |
+
border-bottom: 1px solid var(--border);
|
| 104 |
+
}
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
#next-steps ul {
|
| 108 |
+
list-style: none;
|
| 109 |
+
padding: 0;
|
| 110 |
+
display: flex;
|
| 111 |
+
gap: 8px;
|
| 112 |
+
margin: 32px 0 0;
|
| 113 |
+
|
| 114 |
+
.logo {
|
| 115 |
+
height: 18px;
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
a {
|
| 119 |
+
color: var(--text-h);
|
| 120 |
+
font-size: 16px;
|
| 121 |
+
border-radius: 6px;
|
| 122 |
+
background: var(--social-bg);
|
| 123 |
+
display: flex;
|
| 124 |
+
padding: 6px 12px;
|
| 125 |
+
align-items: center;
|
| 126 |
+
gap: 8px;
|
| 127 |
+
text-decoration: none;
|
| 128 |
+
transition: box-shadow 0.3s;
|
| 129 |
+
|
| 130 |
+
&:hover {
|
| 131 |
+
box-shadow: var(--shadow);
|
| 132 |
+
}
|
| 133 |
+
.button-icon {
|
| 134 |
+
height: 18px;
|
| 135 |
+
width: 18px;
|
| 136 |
+
}
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
@media (max-width: 1024px) {
|
| 140 |
+
margin-top: 20px;
|
| 141 |
+
flex-wrap: wrap;
|
| 142 |
+
justify-content: center;
|
| 143 |
+
|
| 144 |
+
li {
|
| 145 |
+
flex: 1 1 calc(50% - 8px);
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
a {
|
| 149 |
+
width: 100%;
|
| 150 |
+
justify-content: center;
|
| 151 |
+
box-sizing: border-box;
|
| 152 |
+
}
|
| 153 |
+
}
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
#spacer {
|
| 157 |
+
height: 88px;
|
| 158 |
+
border-top: 1px solid var(--border);
|
| 159 |
+
@media (max-width: 1024px) {
|
| 160 |
+
height: 48px;
|
| 161 |
+
}
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
+
.ticks {
|
| 165 |
+
position: relative;
|
| 166 |
+
width: 100%;
|
| 167 |
+
|
| 168 |
+
&::before,
|
| 169 |
+
&::after {
|
| 170 |
+
content: '';
|
| 171 |
+
position: absolute;
|
| 172 |
+
top: -4.5px;
|
| 173 |
+
border: 5px solid transparent;
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
&::before {
|
| 177 |
+
left: 0;
|
| 178 |
+
border-left-color: var(--border);
|
| 179 |
+
}
|
| 180 |
+
&::after {
|
| 181 |
+
right: 0;
|
| 182 |
+
border-right-color: var(--border);
|
| 183 |
+
}
|
| 184 |
+
}
|
frontend/src/App.jsx
ADDED
|
@@ -0,0 +1,406 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { useState, useCallback } from "react";
|
| 2 |
+
|
| 3 |
+
const API = "http://localhost:8000";
|
| 4 |
+
|
| 5 |
+
const CLASS_META = {
|
| 6 |
+
0: { name: "Background", color: "#0a0a14", border: "#3a4a5a" },
|
| 7 |
+
1: { name: "Necrotic Core", color: "#cc2200", border: "#ff5533" },
|
| 8 |
+
2: { name: "Peritumoral Edema", color: "#00aa44", border: "#00ee66" },
|
| 9 |
+
3: { name: "Enhancing Tumor", color: "#ccaa00", border: "#ffdd00" },
|
| 10 |
+
};
|
| 11 |
+
|
| 12 |
+
const COLOR_MAP = {
|
| 13 |
+
0: [10, 10, 20],
|
| 14 |
+
1: [255, 50, 20],
|
| 15 |
+
2: [0, 220, 80],
|
| 16 |
+
3: [255, 220, 0],
|
| 17 |
+
};
|
| 18 |
+
|
| 19 |
+
const REGIONS = [
|
| 20 |
+
{ key: "WT", label: "Whole Tumor", desc: "Labels 1+2+3", color: "#4fa3e0" },
|
| 21 |
+
{ key: "TC", label: "Tumor Core", desc: "Labels 1+3", color: "#ff5533" },
|
| 22 |
+
{ key: "ET", label: "Enhancing", desc: "Label 3", color: "#ffdd00" },
|
| 23 |
+
];
|
| 24 |
+
|
| 25 |
+
// ββ MRI grayscale canvas ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 26 |
+
function MRICanvas({ data, label }) {
|
| 27 |
+
const ref = useCallback((canvas) => {
|
| 28 |
+
if (!canvas || !data || data.length === 0) return;
|
| 29 |
+
const h = data.length, w = data[0].length;
|
| 30 |
+
canvas.width = w; canvas.height = h;
|
| 31 |
+
const ctx = canvas.getContext("2d");
|
| 32 |
+
const img = ctx.createImageData(w, h);
|
| 33 |
+
for (let y = 0; y < h; y++) {
|
| 34 |
+
for (let x = 0; x < w; x++) {
|
| 35 |
+
const v = data[y][x];
|
| 36 |
+
const i = (y * w + x) * 4;
|
| 37 |
+
img.data[i] = v; img.data[i+1] = v; img.data[i+2] = v; img.data[i+3] = 255;
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
ctx.putImageData(img, 0, 0);
|
| 41 |
+
}, [data]);
|
| 42 |
+
|
| 43 |
+
return (
|
| 44 |
+
<div style={{ display:"flex", flexDirection:"column", alignItems:"center", gap:6 }}>
|
| 45 |
+
<span style={{ fontSize:11, letterSpacing:"0.15em", color:"#7ab8d8", textTransform:"uppercase" }}>{label}</span>
|
| 46 |
+
<canvas ref={ref} style={{ width:160, height:160, imageRendering:"pixelated", border:"1px solid #1e3a50", borderRadius:4, background:"#000" }} />
|
| 47 |
+
</div>
|
| 48 |
+
);
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
// ββ Segmentation color canvas βββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 52 |
+
function SegCanvas({ data, label }) {
|
| 53 |
+
const ref = useCallback((canvas) => {
|
| 54 |
+
if (!canvas || !data || data.length === 0) return;
|
| 55 |
+
const h = data.length, w = data[0].length;
|
| 56 |
+
canvas.width = w; canvas.height = h;
|
| 57 |
+
const ctx = canvas.getContext("2d");
|
| 58 |
+
const img = ctx.createImageData(w, h);
|
| 59 |
+
for (let y = 0; y < h; y++) {
|
| 60 |
+
for (let x = 0; x < w; x++) {
|
| 61 |
+
const val = data[y][x];
|
| 62 |
+
const [r, g, b] = COLOR_MAP[val] || [0,0,0];
|
| 63 |
+
const i = (y * w + x) * 4;
|
| 64 |
+
img.data[i] = r; img.data[i+1] = g; img.data[i+2] = b;
|
| 65 |
+
img.data[i+3] = val === 0 ? 40 : 230;
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
ctx.putImageData(img, 0, 0);
|
| 69 |
+
}, [data]);
|
| 70 |
+
|
| 71 |
+
return (
|
| 72 |
+
<div style={{ display:"flex", flexDirection:"column", alignItems:"center", gap:6 }}>
|
| 73 |
+
<span style={{ fontSize:11, letterSpacing:"0.15em", color:"#7ab8d8", textTransform:"uppercase" }}>{label}</span>
|
| 74 |
+
<canvas ref={ref} style={{ width:160, height:160, imageRendering:"pixelated", border:"1px solid #1e3a50", borderRadius:4, background:"#050810" }} />
|
| 75 |
+
</div>
|
| 76 |
+
);
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
// ββ MRI + segmentation overlay canvas ββββββββββββββββββββββββββββββββββββββββ
|
| 80 |
+
function OverlayCanvas({ mriData, segData, label }) {
|
| 81 |
+
const ref = useCallback((canvas) => {
|
| 82 |
+
if (!canvas || !mriData || !segData || mriData.length === 0) return;
|
| 83 |
+
const h = mriData.length, w = mriData[0].length;
|
| 84 |
+
canvas.width = w; canvas.height = h;
|
| 85 |
+
const ctx = canvas.getContext("2d");
|
| 86 |
+
const img = ctx.createImageData(w, h);
|
| 87 |
+
for (let y = 0; y < h; y++) {
|
| 88 |
+
for (let x = 0; x < w; x++) {
|
| 89 |
+
const gray = mriData[y][x];
|
| 90 |
+
const seg = segData[y][x];
|
| 91 |
+
const i = (y * w + x) * 4;
|
| 92 |
+
if (seg === 0) {
|
| 93 |
+
img.data[i] = gray; img.data[i+1] = gray; img.data[i+2] = gray; img.data[i+3] = 255;
|
| 94 |
+
} else {
|
| 95 |
+
const [r, g, b] = COLOR_MAP[seg];
|
| 96 |
+
img.data[i] = Math.round(gray * 0.45 + r * 0.55);
|
| 97 |
+
img.data[i+1] = Math.round(gray * 0.45 + g * 0.55);
|
| 98 |
+
img.data[i+2] = Math.round(gray * 0.45 + b * 0.55);
|
| 99 |
+
img.data[i+3] = 255;
|
| 100 |
+
}
|
| 101 |
+
}
|
| 102 |
+
}
|
| 103 |
+
ctx.putImageData(img, 0, 0);
|
| 104 |
+
}, [mriData, segData]);
|
| 105 |
+
|
| 106 |
+
return (
|
| 107 |
+
<div style={{ display:"flex", flexDirection:"column", alignItems:"center", gap:6 }}>
|
| 108 |
+
<span style={{ fontSize:11, letterSpacing:"0.15em", color:"#00ee66", textTransform:"uppercase" }}>{label}</span>
|
| 109 |
+
<canvas ref={ref} style={{ width:160, height:160, imageRendering:"pixelated", border:"1px solid #2a4a30", borderRadius:4, background:"#000" }} />
|
| 110 |
+
</div>
|
| 111 |
+
);
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
// ββ File drop zone ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 115 |
+
function DropZone({ label, file, onChange }) {
|
| 116 |
+
const [drag, setDrag] = useState(false);
|
| 117 |
+
return (
|
| 118 |
+
<label
|
| 119 |
+
onDragOver={e => { e.preventDefault(); setDrag(true); }}
|
| 120 |
+
onDragLeave={() => setDrag(false)}
|
| 121 |
+
onDrop={e => { e.preventDefault(); setDrag(false); onChange(e.dataTransfer.files[0]); }}
|
| 122 |
+
style={{
|
| 123 |
+
display:"flex", flexDirection:"column", alignItems:"center", justifyContent:"center",
|
| 124 |
+
border:`1px dashed ${drag ? "#4fa3e0" : file ? "#00ee66" : "#2a3a50"}`,
|
| 125 |
+
borderRadius:6, padding:"14px 10px", cursor:"pointer",
|
| 126 |
+
background: drag ? "rgba(79,163,224,0.07)" : file ? "rgba(0,238,102,0.05)" : "rgba(255,255,255,0.02)",
|
| 127 |
+
transition:"all 0.2s ease", minHeight:72,
|
| 128 |
+
}}
|
| 129 |
+
>
|
| 130 |
+
<input type="file" accept=".nii,.nii.gz" onChange={e => onChange(e.target.files[0])} style={{ display:"none" }} />
|
| 131 |
+
<div style={{ fontSize:12, letterSpacing:"0.12em", color:"#7ab8d8", marginBottom:4, fontWeight:500 }}>{label}</div>
|
| 132 |
+
{file
|
| 133 |
+
? <div style={{ fontSize:11, color:"#00ee66", textAlign:"center", wordBreak:"break-all" }}>β {file.name}</div>
|
| 134 |
+
: <div style={{ fontSize:11, color:"#4a6070" }}>drop .nii file</div>
|
| 135 |
+
}
|
| 136 |
+
</label>
|
| 137 |
+
);
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
// ββ Main App ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 141 |
+
export default function App() {
|
| 142 |
+
const [files, setFiles] = useState({ flair:null, t1:null, t1ce:null, t2:null });
|
| 143 |
+
const [result, setResult] = useState(null);
|
| 144 |
+
const [loading, setLoading] = useState(false);
|
| 145 |
+
const [error, setError] = useState(null);
|
| 146 |
+
const [plane, setPlane] = useState("axial");
|
| 147 |
+
|
| 148 |
+
const allLoaded = Object.values(files).every(Boolean);
|
| 149 |
+
|
| 150 |
+
const runDemo = async () => {
|
| 151 |
+
setLoading(true); setError(null); setResult(null);
|
| 152 |
+
try {
|
| 153 |
+
const res = await fetch(`${API}/segment/demo`, { method:"POST" });
|
| 154 |
+
if (!res.ok) throw new Error(await res.text());
|
| 155 |
+
setResult(await res.json());
|
| 156 |
+
} catch(e) { setError(e.message); }
|
| 157 |
+
setLoading(false);
|
| 158 |
+
};
|
| 159 |
+
|
| 160 |
+
const runSegment = async () => {
|
| 161 |
+
setLoading(true); setError(null); setResult(null);
|
| 162 |
+
try {
|
| 163 |
+
const fd = new FormData();
|
| 164 |
+
fd.append("flair", files.flair);
|
| 165 |
+
fd.append("t1", files.t1);
|
| 166 |
+
fd.append("t1ce", files.t1ce);
|
| 167 |
+
fd.append("t2", files.t2);
|
| 168 |
+
const res = await fetch(`${API}/segment`, { method:"POST", body:fd });
|
| 169 |
+
if (!res.ok) throw new Error(await res.text());
|
| 170 |
+
setResult(await res.json());
|
| 171 |
+
} catch(e) { setError(e.message); }
|
| 172 |
+
setLoading(false);
|
| 173 |
+
};
|
| 174 |
+
|
| 175 |
+
const classes = result?.classes || {};
|
| 176 |
+
const regions = result?.regions || {};
|
| 177 |
+
const slices = result?.slices || {};
|
| 178 |
+
const mriSlices = result?.mri_slices || {};
|
| 179 |
+
|
| 180 |
+
return (
|
| 181 |
+
<div style={{ minHeight:"100vh", background:"#030609", color:"#d0e4f0", fontFamily:"'IBM Plex Mono', monospace", display:"flex", flexDirection:"column" }}>
|
| 182 |
+
<style>{`@keyframes spin { to { transform: rotate(360deg); } }`}</style>
|
| 183 |
+
|
| 184 |
+
{/* ββ Header ββ */}
|
| 185 |
+
<header style={{ borderBottom:"1px solid #0f1e2e", padding:"16px 28px", display:"flex", alignItems:"center", justifyContent:"space-between", background:"rgba(5,8,16,0.8)" }}>
|
| 186 |
+
<div>
|
| 187 |
+
<div style={{ display:"flex", alignItems:"center", gap:10 }}>
|
| 188 |
+
<div style={{ width:8, height:8, borderRadius:"50%", background:"#4fa3e0", boxShadow:"0 0 12px #4fa3e0" }} />
|
| 189 |
+
<span style={{ fontSize:15, letterSpacing:"0.2em", color:"#6bbfe8", fontWeight:500 }}>BraTS</span>
|
| 190 |
+
<span style={{ color:"#2a3a50", fontSize:16 }}>Β·</span>
|
| 191 |
+
<span style={{ fontSize:14, letterSpacing:"0.15em", color:"#9abcd4" }}>3D U-NET SEGMENTATION</span>
|
| 192 |
+
</div>
|
| 193 |
+
<div style={{ fontSize:11, color:"#4a6070", marginTop:4, letterSpacing:"0.12em" }}>
|
| 194 |
+
BraTS2020 Β· PyTorch Β· FastAPI Β· React
|
| 195 |
+
</div>
|
| 196 |
+
</div>
|
| 197 |
+
<div style={{ fontSize:12, color:"#6a8a9a", fontFamily:"monospace" }}>
|
| 198 |
+
{result && !result.demo && `tumor burden: ${result["tumor_burden_%"]}%`}
|
| 199 |
+
{result?.demo && <span style={{ color:"#cc8833" }}>β synthetic data</span>}
|
| 200 |
+
</div>
|
| 201 |
+
</header>
|
| 202 |
+
|
| 203 |
+
<main style={{ display:"flex", flex:1 }}>
|
| 204 |
+
|
| 205 |
+
{/* ββ Left Panel ββ */}
|
| 206 |
+
<div style={{ width:264, flexShrink:0, borderRight:"1px solid #0f1e2e", padding:"20px 16px", display:"flex", flexDirection:"column", gap:12, background:"rgba(4,7,14,0.6)" }}>
|
| 207 |
+
<div style={{ fontSize:11, letterSpacing:"0.2em", color:"#5a7a8a", marginBottom:2 }}>ββ INPUT MODALITIES</div>
|
| 208 |
+
|
| 209 |
+
{["flair","t1","t1ce","t2"].map(mod => (
|
| 210 |
+
<DropZone key={mod} label={mod.toUpperCase()} file={files[mod]}
|
| 211 |
+
onChange={f => setFiles(p => ({ ...p, [mod]:f }))} />
|
| 212 |
+
))}
|
| 213 |
+
|
| 214 |
+
<button onClick={runSegment} disabled={!allLoaded || loading} style={{
|
| 215 |
+
padding:"12px", marginTop:4,
|
| 216 |
+
background: allLoaded && !loading ? "#0d2844" : "#090f1a",
|
| 217 |
+
border:`1px solid ${allLoaded && !loading ? "#4fa3e0" : "#1a2a3a"}`,
|
| 218 |
+
borderRadius:6, color: allLoaded && !loading ? "#7ac8f0" : "#2a3a50",
|
| 219 |
+
letterSpacing:"0.15em", fontSize:12, fontFamily:"'IBM Plex Mono', monospace",
|
| 220 |
+
cursor: allLoaded && !loading ? "pointer" : "not-allowed", transition:"all 0.2s", fontWeight:500,
|
| 221 |
+
}}>
|
| 222 |
+
{loading ? "PROCESSING..." : "RUN SEGMENTATION"}
|
| 223 |
+
</button>
|
| 224 |
+
|
| 225 |
+
<div style={{ display:"flex", alignItems:"center", gap:8 }}>
|
| 226 |
+
<div style={{ flex:1, height:1, background:"#0f1e2e" }} />
|
| 227 |
+
<span style={{ fontSize:11, color:"#2a3a50" }}>or</span>
|
| 228 |
+
<div style={{ flex:1, height:1, background:"#0f1e2e" }} />
|
| 229 |
+
</div>
|
| 230 |
+
|
| 231 |
+
<button onClick={runDemo} disabled={loading} style={{
|
| 232 |
+
padding:10, background:"transparent", border:"1px solid #1a2e40", borderRadius:6,
|
| 233 |
+
color:"#4a7090", letterSpacing:"0.12em", fontSize:11,
|
| 234 |
+
fontFamily:"'IBM Plex Mono', monospace",
|
| 235 |
+
cursor: loading ? "not-allowed" : "pointer", transition:"all 0.2s",
|
| 236 |
+
}}
|
| 237 |
+
onMouseOver={e => { e.currentTarget.style.color="#7ac8f0"; e.currentTarget.style.borderColor="#2a4a60"; }}
|
| 238 |
+
onMouseOut={e => { e.currentTarget.style.color="#4a7090"; e.currentTarget.style.borderColor="#1a2e40"; }}
|
| 239 |
+
>
|
| 240 |
+
DEMO (SYNTHETIC)
|
| 241 |
+
</button>
|
| 242 |
+
|
| 243 |
+
{error && (
|
| 244 |
+
<div style={{ padding:10, background:"rgba(200,40,20,0.1)", border:"1px solid #4a1a10", borderRadius:6, fontSize:11, color:"#e06650", lineHeight:1.7 }}>
|
| 245 |
+
β {error}
|
| 246 |
+
</div>
|
| 247 |
+
)}
|
| 248 |
+
|
| 249 |
+
{/* Legend */}
|
| 250 |
+
<div style={{ marginTop:10 }}>
|
| 251 |
+
<div style={{ fontSize:11, letterSpacing:"0.2em", color:"#5a7a8a", marginBottom:10 }}>ββ LEGEND</div>
|
| 252 |
+
{Object.entries(CLASS_META).map(([id, c]) => (
|
| 253 |
+
<div key={id} style={{ display:"flex", alignItems:"center", gap:9, marginBottom:8 }}>
|
| 254 |
+
<div style={{ width:10, height:10, borderRadius:2, background:c.color, border:`1px solid ${c.border}`, flexShrink:0 }} />
|
| 255 |
+
<span style={{ fontSize:12, color:"#8aaabb" }}>{c.name}</span>
|
| 256 |
+
</div>
|
| 257 |
+
))}
|
| 258 |
+
</div>
|
| 259 |
+
</div>
|
| 260 |
+
|
| 261 |
+
{/* ββ Center Panel ββ */}
|
| 262 |
+
<div style={{ flex:1, padding:"20px 24px", display:"flex", flexDirection:"column", gap:16, minWidth:0 }}>
|
| 263 |
+
|
| 264 |
+
{/* Empty state */}
|
| 265 |
+
{!result && !loading && (
|
| 266 |
+
<div style={{ flex:1, display:"flex", flexDirection:"column", alignItems:"center", justifyContent:"center", gap:16 }}>
|
| 267 |
+
<div style={{ width:80, height:80, borderRadius:"50%", border:"1px solid #1a3050", display:"flex", alignItems:"center", justifyContent:"center", background:"radial-gradient(circle, #0a1828 0%, #030609 100%)", boxShadow:"0 0 30px rgba(79,163,224,0.05)" }}>
|
| 268 |
+
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="#2a5070" strokeWidth="1.2">
|
| 269 |
+
<path d="M12 2a9 9 0 0 1 9 9c0 3.5-2 6.5-5 8.1V20H8v-.9C5 17.5 3 14.5 3 11a9 9 0 0 1 9-9z"/>
|
| 270 |
+
<circle cx="12" cy="11" r="3"/>
|
| 271 |
+
</svg>
|
| 272 |
+
</div>
|
| 273 |
+
<div style={{ textAlign:"center" }}>
|
| 274 |
+
<div style={{ fontSize:14, color:"#5a8090", letterSpacing:"0.1em" }}>Upload 4 MRI modalities or run demo</div>
|
| 275 |
+
<div style={{ fontSize:12, color:"#3a5060", marginTop:6, letterSpacing:"0.08em" }}>FLAIR Β· T1 Β· T1ce Β· T2</div>
|
| 276 |
+
</div>
|
| 277 |
+
</div>
|
| 278 |
+
)}
|
| 279 |
+
|
| 280 |
+
{/* Loading */}
|
| 281 |
+
{loading && (
|
| 282 |
+
<div style={{ flex:1, display:"flex", flexDirection:"column", alignItems:"center", justifyContent:"center", gap:20 }}>
|
| 283 |
+
<div style={{ width:48, height:48, border:"2px solid #0f2030", borderTop:"2px solid #4fa3e0", borderRadius:"50%", animation:"spin 1s linear infinite" }} />
|
| 284 |
+
<div style={{ fontSize:13, color:"#4a7a90", letterSpacing:"0.2em" }}>RUNNING INFERENCE...</div>
|
| 285 |
+
</div>
|
| 286 |
+
)}
|
| 287 |
+
|
| 288 |
+
{/* Results */}
|
| 289 |
+
{result && !loading && (
|
| 290 |
+
<>
|
| 291 |
+
<div style={{ fontSize:11, letterSpacing:"0.2em", color:"#5a7a8a" }}>ββ SEGMENTATION OUTPUT</div>
|
| 292 |
+
|
| 293 |
+
{/* Plane selector */}
|
| 294 |
+
<div style={{ display:"flex", gap:1, background:"#0a1520", borderRadius:6, padding:3, width:"fit-content" }}>
|
| 295 |
+
{["axial","coronal","sagittal"].map(p => (
|
| 296 |
+
<button key={p} onClick={() => setPlane(p)} style={{
|
| 297 |
+
padding:"6px 16px",
|
| 298 |
+
background: plane===p ? "#0d2844" : "transparent",
|
| 299 |
+
border: plane===p ? "1px solid #2a5070" : "1px solid transparent",
|
| 300 |
+
borderRadius:4, color: plane===p ? "#7ac8f0" : "#4a6a7a",
|
| 301 |
+
fontSize:11, letterSpacing:"0.12em",
|
| 302 |
+
fontFamily:"'IBM Plex Mono', monospace", cursor:"pointer", transition:"all 0.15s",
|
| 303 |
+
}}>
|
| 304 |
+
{p.toUpperCase()}
|
| 305 |
+
</button>
|
| 306 |
+
))}
|
| 307 |
+
</div>
|
| 308 |
+
|
| 309 |
+
{/* Three-column comparison */}
|
| 310 |
+
<div style={{ background:"#050810", border:"1px solid #0f1e2e", borderRadius:8, padding:20 }}>
|
| 311 |
+
{/* Column headers */}
|
| 312 |
+
<div style={{ display:"grid", gridTemplateColumns:"1fr 1fr 1fr", gap:16, marginBottom:12 }}>
|
| 313 |
+
{["FLAIR MRI", "SEGMENTATION", "OVERLAY"].map(h => (
|
| 314 |
+
<div key={h} style={{ fontSize:10, letterSpacing:"0.2em", color:"#5a7a8a", textAlign:"center" }}>{h}</div>
|
| 315 |
+
))}
|
| 316 |
+
</div>
|
| 317 |
+
|
| 318 |
+
{/* Three canvases */}
|
| 319 |
+
<div style={{ display:"grid", gridTemplateColumns:"1fr 1fr 1fr", gap:16, justifyItems:"center" }}>
|
| 320 |
+
|
| 321 |
+
{/* MRI */}
|
| 322 |
+
{mriSlices[plane]
|
| 323 |
+
? <MRICanvas data={mriSlices[plane]} label={plane} />
|
| 324 |
+
: <div style={{ width:160, height:160, background:"#0a1020", borderRadius:4, border:"1px solid #1e2d40", display:"flex", alignItems:"center", justifyContent:"center" }}>
|
| 325 |
+
<span style={{ fontSize:11, color:"#2a3a50" }}>no MRI data</span>
|
| 326 |
+
</div>
|
| 327 |
+
}
|
| 328 |
+
|
| 329 |
+
{/* Segmentation */}
|
| 330 |
+
{slices[plane] && <SegCanvas data={slices[plane]} label={plane} />}
|
| 331 |
+
|
| 332 |
+
{/* Overlay */}
|
| 333 |
+
{slices[plane] && mriSlices[plane]
|
| 334 |
+
? <OverlayCanvas mriData={mriSlices[plane]} segData={slices[plane]} label={plane} />
|
| 335 |
+
: slices[plane] && <SegCanvas data={slices[plane]} label={plane} />
|
| 336 |
+
}
|
| 337 |
+
|
| 338 |
+
</div>
|
| 339 |
+
</div>
|
| 340 |
+
|
| 341 |
+
{/* Volume info + region cards */}
|
| 342 |
+
<div style={{ display:"flex", gap:10, alignItems:"stretch" }}>
|
| 343 |
+
<div style={{ padding:"14px 18px", background:"#050810", border:"1px solid #0f1e2e", borderRadius:6, minWidth:160 }}>
|
| 344 |
+
<div style={{ fontSize:11, color:"#5a7a8a", marginBottom:6 }}>Volume</div>
|
| 345 |
+
<div style={{ fontSize:13, color:"#6a8a9a", fontFamily:"monospace", marginBottom:12 }}>{result.shape?.join(" Γ ")}</div>
|
| 346 |
+
<div style={{ fontSize:11, color:"#5a7a8a", marginBottom:4 }}>Tumor burden</div>
|
| 347 |
+
<div style={{ fontSize:26, color:"#4fa3e0", fontFamily:"monospace", fontWeight:300 }}>
|
| 348 |
+
{result["tumor_burden_%"]}<span style={{ fontSize:13, marginLeft:3 }}>%</span>
|
| 349 |
+
</div>
|
| 350 |
+
{result.demo && <div style={{ marginTop:10, fontSize:10, color:"#aa7722", border:"1px solid #2a1a08", borderRadius:4, padding:"5px 8px" }}>β SYNTHETIC</div>}
|
| 351 |
+
</div>
|
| 352 |
+
|
| 353 |
+
{REGIONS.map(r => (
|
| 354 |
+
<div key={r.key} style={{ flex:1, padding:"14px 16px", background:"#050810", border:`1px solid ${r.color}33`, borderRadius:6 }}>
|
| 355 |
+
<div style={{ fontSize:10, letterSpacing:"0.18em", color:r.color, marginBottom:6 }}>{r.key}</div>
|
| 356 |
+
<div style={{ fontSize:14, color:"#c0d8e8", marginBottom:2, fontWeight:500 }}>{r.label}</div>
|
| 357 |
+
<div style={{ fontSize:11, color:"#5a7a8a", marginBottom:10 }}>{r.desc}</div>
|
| 358 |
+
<div style={{ fontSize:22, color:r.color, fontFamily:"monospace", fontWeight:300 }}>
|
| 359 |
+
{(regions[r.key] ?? 0).toLocaleString()}
|
| 360 |
+
<span style={{ fontSize:11, color:"#5a7a8a", marginLeft:5 }}>vox</span>
|
| 361 |
+
</div>
|
| 362 |
+
</div>
|
| 363 |
+
))}
|
| 364 |
+
</div>
|
| 365 |
+
</>
|
| 366 |
+
)}
|
| 367 |
+
</div>
|
| 368 |
+
|
| 369 |
+
{/* ββ Right Panel ββ */}
|
| 370 |
+
<div style={{ width:224, flexShrink:0, borderLeft:"1px solid #0f1e2e", padding:"20px 16px", background:"rgba(4,7,14,0.6)" }}>
|
| 371 |
+
<div style={{ fontSize:11, letterSpacing:"0.2em", color:"#5a7a8a", marginBottom:16 }}>ββ CLASS BREAKDOWN</div>
|
| 372 |
+
|
| 373 |
+
{result
|
| 374 |
+
? Object.entries(classes).map(([id, info]) => {
|
| 375 |
+
const meta = CLASS_META[parseInt(id)];
|
| 376 |
+
return (
|
| 377 |
+
<div key={id} style={{ marginBottom:18 }}>
|
| 378 |
+
<div style={{ fontSize:12, color:meta?.border, marginBottom:5, fontWeight:500 }}>{info.name}</div>
|
| 379 |
+
<div style={{ display:"flex", justifyContent:"space-between", marginBottom:4 }}>
|
| 380 |
+
<span style={{ fontSize:11, color:"#7a9aaa" }}>{info.voxels.toLocaleString()}</span>
|
| 381 |
+
<span style={{ fontSize:11, color:"#9abccc", fontFamily:"monospace" }}>{info.percentage}%</span>
|
| 382 |
+
</div>
|
| 383 |
+
<div style={{ height:3, background:"#0a1520", borderRadius:2, overflow:"hidden" }}>
|
| 384 |
+
<div style={{ height:"100%", width:`${Math.min(info.percentage * 10, 100)}%`, background:meta?.border, borderRadius:2, transition:"width 1.2s ease" }} />
|
| 385 |
+
</div>
|
| 386 |
+
</div>
|
| 387 |
+
);
|
| 388 |
+
})
|
| 389 |
+
: <div style={{ fontSize:12, color:"#3a5060", lineHeight:1.8 }}>Run segmentation<br/>to see results</div>
|
| 390 |
+
}
|
| 391 |
+
|
| 392 |
+
<div style={{ marginTop:20, paddingTop:16, borderTop:"1px solid #0f1e2e" }}>
|
| 393 |
+
<div style={{ fontSize:11, letterSpacing:"0.2em", color:"#5a7a8a", marginBottom:12 }}>ββ MODEL</div>
|
| 394 |
+
{[["Type","3D U-Net"],["Input","4 Γ 128Β³"],["Classes","4"],["Params","26.3M"],["Device","CUDA"]].map(([k,v]) => (
|
| 395 |
+
<div key={k} style={{ display:"flex", justifyContent:"space-between", marginBottom:7 }}>
|
| 396 |
+
<span style={{ fontSize:11, color:"#4a6a7a" }}>{k}</span>
|
| 397 |
+
<span style={{ fontSize:11, color:"#7a9aaa", fontFamily:"monospace" }}>{v}</span>
|
| 398 |
+
</div>
|
| 399 |
+
))}
|
| 400 |
+
</div>
|
| 401 |
+
</div>
|
| 402 |
+
|
| 403 |
+
</main>
|
| 404 |
+
</div>
|
| 405 |
+
);
|
| 406 |
+
}
|
frontend/src/assets/hero.png
ADDED
|
frontend/src/assets/react.svg
ADDED
|
|
frontend/src/assets/vite.svg
ADDED
|
|
frontend/src/index.css
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
| 2 |
+
body { background: #030609; }
|
frontend/src/main.jsx
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { StrictMode } from 'react'
|
| 2 |
+
import { createRoot } from 'react-dom/client'
|
| 3 |
+
import './index.css'
|
| 4 |
+
import App from './App.jsx'
|
| 5 |
+
|
| 6 |
+
createRoot(document.getElementById('root')).render(
|
| 7 |
+
<StrictMode>
|
| 8 |
+
<App />
|
| 9 |
+
</StrictMode>,
|
| 10 |
+
)
|
frontend/vite.config.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { defineConfig } from 'vite'
|
| 2 |
+
import react from '@vitejs/plugin-react'
|
| 3 |
+
|
| 4 |
+
// https://vite.dev/config/
|
| 5 |
+
export default defineConfig({
|
| 6 |
+
plugins: [react()],
|
| 7 |
+
})
|
src/dataset.py
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import numpy as np
|
| 2 |
+
import torch
|
| 3 |
+
import torch.nn.functional as F
|
| 4 |
+
from torch.utils.data import Dataset
|
| 5 |
+
import nibabel as nib
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
|
| 8 |
+
MODALITIES = ["flair", "t1", "t1ce", "t2"]
|
| 9 |
+
TARGET_SHAPE = (128, 128, 128)
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
# βββ Preprocessing Functions ββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 13 |
+
|
| 14 |
+
def normalize_modality(vol: np.ndarray) -> np.ndarray:
|
| 15 |
+
brain_mask = vol > 0
|
| 16 |
+
if brain_mask.sum() == 0:
|
| 17 |
+
return vol
|
| 18 |
+
mu = vol[brain_mask].mean()
|
| 19 |
+
std = vol[brain_mask].std() + 1e-8
|
| 20 |
+
normalized = np.zeros_like(vol)
|
| 21 |
+
normalized[brain_mask] = (vol[brain_mask] - mu) / std
|
| 22 |
+
return normalized.astype(np.float32)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
def crop_to_brain(vol: np.ndarray) -> np.ndarray:
|
| 26 |
+
coords = np.array(np.where(vol > 0))
|
| 27 |
+
if coords.shape[1] == 0:
|
| 28 |
+
return vol
|
| 29 |
+
mins = coords.min(axis=1)
|
| 30 |
+
maxs = coords.max(axis=1) + 1
|
| 31 |
+
return vol[mins[0]:maxs[0],
|
| 32 |
+
mins[1]:maxs[1],
|
| 33 |
+
mins[2]:maxs[2]]
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
def resize_volume(vol: np.ndarray, target=TARGET_SHAPE,
|
| 37 |
+
mode="trilinear") -> np.ndarray:
|
| 38 |
+
tensor = torch.from_numpy(vol).float().unsqueeze(0).unsqueeze(0)
|
| 39 |
+
kwargs = {"align_corners": True} if mode == "trilinear" else {}
|
| 40 |
+
resized = F.interpolate(tensor, size=target, mode=mode, **kwargs)
|
| 41 |
+
return resized.squeeze().numpy()
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
# βββ Dataset ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 45 |
+
|
| 46 |
+
class BraTSDataset(Dataset):
|
| 47 |
+
"""
|
| 48 |
+
PyTorch Dataset for BraTS2020 training data.
|
| 49 |
+
|
| 50 |
+
Returns per sample:
|
| 51 |
+
images : float32 tensor (4, 128, 128, 128) β 4 modalities
|
| 52 |
+
mask : long tensor (128, 128, 128) β labels {0,1,2,3}
|
| 53 |
+
"""
|
| 54 |
+
|
| 55 |
+
def __init__(self, root_dir: str, split: str = "train",
|
| 56 |
+
train_ratio: float = 0.8, seed: int = 42):
|
| 57 |
+
|
| 58 |
+
root = Path(root_dir)
|
| 59 |
+
cases = sorted([d for d in root.iterdir() if d.is_dir()])
|
| 60 |
+
rng = np.random.default_rng(seed)
|
| 61 |
+
rng.shuffle(cases)
|
| 62 |
+
|
| 63 |
+
# Split into train / val
|
| 64 |
+
n_train = int(len(cases) * train_ratio)
|
| 65 |
+
if split == "train":
|
| 66 |
+
self.cases = cases[:n_train]
|
| 67 |
+
else:
|
| 68 |
+
self.cases = cases[n_train:]
|
| 69 |
+
|
| 70 |
+
self.split = split
|
| 71 |
+
|
| 72 |
+
def __len__(self):
|
| 73 |
+
# DataLoader calls this to know how many batches to produce per epoch
|
| 74 |
+
return len(self.cases)
|
| 75 |
+
|
| 76 |
+
def __getitem__(self, idx: int):
|
| 77 |
+
|
| 78 |
+
case_dir = self.cases[idx]
|
| 79 |
+
case_id = case_dir.name
|
| 80 |
+
|
| 81 |
+
# ββ Load and preprocess all 4 modalities βββββββββββββββββββββββββββββ
|
| 82 |
+
volumes = []
|
| 83 |
+
for mod in MODALITIES:
|
| 84 |
+
path = case_dir / f"{case_id}_{mod}.nii"
|
| 85 |
+
vol = nib.load(str(path)).get_fdata().astype(np.float32)
|
| 86 |
+
vol = normalize_modality(vol)
|
| 87 |
+
vol = crop_to_brain(vol)
|
| 88 |
+
vol = resize_volume(vol, mode="trilinear")
|
| 89 |
+
volumes.append(vol)
|
| 90 |
+
|
| 91 |
+
# Stack: list of 4 Γ (128,128,128) β (4, 128, 128, 128)
|
| 92 |
+
stacked = np.stack(volumes, axis=0)
|
| 93 |
+
|
| 94 |
+
# ββ Load and preprocess segmentation mask βββββββββββββββββββββββββββββ
|
| 95 |
+
seg_path = case_dir / f"{case_id}_seg.nii"
|
| 96 |
+
seg = nib.load(str(seg_path)).get_fdata().astype(np.uint8)
|
| 97 |
+
|
| 98 |
+
seg[seg == 4] = 3 # remap label 4 β 3
|
| 99 |
+
seg = resize_volume(seg, mode="nearest") # nearest for labels
|
| 100 |
+
seg = seg.astype(np.int64)
|
| 101 |
+
|
| 102 |
+
# ββ Convert to tensors ββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 103 |
+
images = torch.from_numpy(stacked).float() # (4, 128, 128, 128)
|
| 104 |
+
mask = torch.from_numpy(seg).long() # (128, 128, 128)
|
| 105 |
+
|
| 106 |
+
return images, mask
|
src/inference.py
ADDED
|
@@ -0,0 +1,229 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
inference.py β FastAPI Backend for BraTS Segmentation
|
| 3 |
+
=======================================================
|
| 4 |
+
Loads the trained UNet3D checkpoint and serves predictions via HTTP.
|
| 5 |
+
|
| 6 |
+
Endpoints:
|
| 7 |
+
GET /health β model status
|
| 8 |
+
POST /segment β run segmentation on uploaded NIfTI files
|
| 9 |
+
POST /segment/demo β run on a synthetic volume (no upload needed)
|
| 10 |
+
|
| 11 |
+
Run:
|
| 12 |
+
cd src
|
| 13 |
+
uvicorn inference:app --host 0.0.0.0 --port 8000 --reload
|
| 14 |
+
"""
|
| 15 |
+
|
| 16 |
+
import io
|
| 17 |
+
import sys
|
| 18 |
+
import numpy as np
|
| 19 |
+
import torch
|
| 20 |
+
from pathlib import Path
|
| 21 |
+
from fastapi import FastAPI, File, UploadFile, HTTPException
|
| 22 |
+
from fastapi.middleware.cors import CORSMiddleware
|
| 23 |
+
from fastapi.responses import JSONResponse
|
| 24 |
+
from dotenv import load_dotenv
|
| 25 |
+
import os
|
| 26 |
+
load_dotenv()
|
| 27 |
+
# Make sure src/ is on the path when running from project root
|
| 28 |
+
sys.path.append(str(Path(__file__).parent))
|
| 29 |
+
|
| 30 |
+
from model import UNet3D
|
| 31 |
+
from dataset import normalize_modality, crop_to_brain, resize_volume, MODALITIES
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
# βββ App Setup ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 35 |
+
# CORSMiddleware allows the React frontend (running on localhost:5173)
|
| 36 |
+
# to call this API without being blocked by the browser's same-origin policy.
|
| 37 |
+
|
| 38 |
+
app = FastAPI(
|
| 39 |
+
title="BraTS Segmentation API",
|
| 40 |
+
description="3D U-Net brain tumor segmentation β BraTS2020",
|
| 41 |
+
version="1.0.0",
|
| 42 |
+
)
|
| 43 |
+
|
| 44 |
+
app.add_middleware(
|
| 45 |
+
CORSMiddleware,
|
| 46 |
+
allow_origins=["http://localhost:5173", "http://localhost:3000"],
|
| 47 |
+
allow_methods=["*"],
|
| 48 |
+
allow_headers=["*"],
|
| 49 |
+
)
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
# βββ Model Loading ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 53 |
+
# Model is loaded once at startup and reused for every request.
|
| 54 |
+
# Loading per-request would be ~5 seconds of overhead each time.
|
| 55 |
+
|
| 56 |
+
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 57 |
+
CHECKPOINT = Path(__file__).parent.parent / os.getenv("CHECKPOINT_PATH", "checkpoints/best_model.pth")
|
| 58 |
+
TARGET = (128, 128, 128)
|
| 59 |
+
|
| 60 |
+
model: UNet3D | None = None
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
@app.on_event("startup")
|
| 64 |
+
def load_model():
|
| 65 |
+
global model
|
| 66 |
+
model = UNet3D(in_channels=4, out_channels=4,
|
| 67 |
+
base_filters=32, depth=4).to(DEVICE)
|
| 68 |
+
|
| 69 |
+
if CHECKPOINT.exists():
|
| 70 |
+
ckpt = torch.load(str(CHECKPOINT), map_location=DEVICE)
|
| 71 |
+
model.load_state_dict(ckpt["model_state_dict"])
|
| 72 |
+
print(f"β
Loaded checkpoint from epoch {ckpt['epoch']} "
|
| 73 |
+
f"best Dice: {ckpt['best_dice']:.4f}")
|
| 74 |
+
else:
|
| 75 |
+
print("β οΈ No checkpoint found β using random weights")
|
| 76 |
+
|
| 77 |
+
model.eval()
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
# βββ Helpers ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 81 |
+
# Converts a raw NIfTI bytes object into a preprocessed numpy array.
|
| 82 |
+
# Supports .nii and .nii.gz β nibabel detects format from the header.
|
| 83 |
+
|
| 84 |
+
def load_nifti_bytes(content: bytes, filename: str) -> np.ndarray:
|
| 85 |
+
try:
|
| 86 |
+
import nibabel as nib
|
| 87 |
+
import tempfile, os
|
| 88 |
+
suffix = ".nii.gz" if filename.endswith(".gz") else ".nii"
|
| 89 |
+
with tempfile.NamedTemporaryFile(suffix=suffix, delete=False) as tmp:
|
| 90 |
+
tmp.write(content)
|
| 91 |
+
tmp_path = tmp.name
|
| 92 |
+
vol = nib.load(tmp_path).get_fdata().astype(np.float32)
|
| 93 |
+
os.unlink(tmp_path)
|
| 94 |
+
return vol
|
| 95 |
+
except Exception as e:
|
| 96 |
+
raise HTTPException(status_code=400, detail=f"Failed to load {filename}: {e}")
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
def preprocess_volume(volumes: list[np.ndarray]) -> torch.Tensor:
|
| 100 |
+
# Apply full pipeline to each modality: normalize β crop β resize
|
| 101 |
+
# Then stack β (1, 4, 128, 128, 128) with batch dim
|
| 102 |
+
processed = []
|
| 103 |
+
for vol in volumes:
|
| 104 |
+
vol = normalize_modality(vol)
|
| 105 |
+
vol = crop_to_brain(vol)
|
| 106 |
+
vol = resize_volume(vol, target=TARGET, mode="trilinear")
|
| 107 |
+
processed.append(vol)
|
| 108 |
+
stacked = np.stack(processed, axis=0) # (4, 128, 128, 128)
|
| 109 |
+
return torch.from_numpy(stacked).float().unsqueeze(0) # (1, 4, 128, 128, 128)
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
def run_inference(input_tensor: torch.Tensor) -> np.ndarray:
|
| 113 |
+
# Returns (128, 128, 128) integer label map {0,1,2,3}
|
| 114 |
+
input_tensor = input_tensor.to(DEVICE)
|
| 115 |
+
with torch.no_grad():
|
| 116 |
+
logits = model(input_tensor) # (1, 4, 128, 128, 128)
|
| 117 |
+
pred = torch.argmax(logits, dim=1).squeeze(0) # (128, 128, 128)
|
| 118 |
+
return pred.cpu().numpy().astype(np.uint8)
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
def build_response(pred: np.ndarray, volumes: list[np.ndarray] | None = None, demo: bool = False) -> dict:
|
| 122 |
+
total = pred.size
|
| 123 |
+
classes = {}
|
| 124 |
+
class_names = {0: "Background", 1: "Necrotic Core", 2: "Edema", 3: "Enhancing Tumor"}
|
| 125 |
+
class_colors = {0: [0,0,0,0], 1: [255,50,20,200], 2: [0,220,80,200], 3: [255,220,0,200]}
|
| 126 |
+
|
| 127 |
+
for label in range(4):
|
| 128 |
+
count = int((pred == label).sum())
|
| 129 |
+
classes[str(label)] = {
|
| 130 |
+
"name": class_names[label],
|
| 131 |
+
"voxels": count,
|
| 132 |
+
"percentage": round(100 * count / total, 2),
|
| 133 |
+
"color": class_colors[label],
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
regions = {
|
| 137 |
+
"WT": int((pred > 0).sum()),
|
| 138 |
+
"TC": int(np.isin(pred, [1, 3]).sum()),
|
| 139 |
+
"ET": int((pred == 3).sum()),
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
h, w, d = pred.shape
|
| 143 |
+
|
| 144 |
+
# Segmentation slices
|
| 145 |
+
slices = {
|
| 146 |
+
"axial": pred[:, :, d // 2].tolist(),
|
| 147 |
+
"coronal": pred[:, w // 2, :].tolist(),
|
| 148 |
+
"sagittal": pred[h // 2, :, :].tolist(),
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
# MRI slices β normalize each modality to 0-255 for display
|
| 152 |
+
# FLAIR (index 0) is best for showing tumor context
|
| 153 |
+
mri_slices = {}
|
| 154 |
+
if volumes is not None:
|
| 155 |
+
flair = volumes[0] # FLAIR is most informative for tumor visualization
|
| 156 |
+
# Normalize to 0β255 for frontend rendering
|
| 157 |
+
flair_min, flair_max = flair.min(), flair.max()
|
| 158 |
+
flair_norm = ((flair - flair_min) / (flair_max - flair_min + 1e-8) * 255).astype(np.uint8)
|
| 159 |
+
mri_slices = {
|
| 160 |
+
"axial": flair_norm[:, :, d // 2].tolist(),
|
| 161 |
+
"coronal": flair_norm[:, w // 2, :].tolist(),
|
| 162 |
+
"sagittal": flair_norm[h // 2, :, :].tolist(),
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
return {
|
| 166 |
+
"success": True,
|
| 167 |
+
"demo": demo,
|
| 168 |
+
"shape": list(pred.shape),
|
| 169 |
+
"tumor_burden_%": round(100 * (pred > 0).sum() / total, 3),
|
| 170 |
+
"classes": classes,
|
| 171 |
+
"regions": regions,
|
| 172 |
+
"slices": slices,
|
| 173 |
+
"mri_slices": mri_slices,
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
# βββ Endpoints ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 177 |
+
|
| 178 |
+
@app.get("/health")
|
| 179 |
+
def health():
|
| 180 |
+
# Called by frontend on load to check if the model is ready
|
| 181 |
+
return {
|
| 182 |
+
"status": "ok",
|
| 183 |
+
"device": str(DEVICE),
|
| 184 |
+
"model_loaded": model is not None,
|
| 185 |
+
"checkpoint_found": CHECKPOINT.exists(),
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
|
| 189 |
+
@app.post("/segment")
|
| 190 |
+
async def segment(
|
| 191 |
+
flair: UploadFile = File(...),
|
| 192 |
+
t1: UploadFile = File(...),
|
| 193 |
+
t1ce: UploadFile = File(...),
|
| 194 |
+
t2: UploadFile = File(...),
|
| 195 |
+
):
|
| 196 |
+
if model is None:
|
| 197 |
+
raise HTTPException(status_code=503, detail="Model not loaded")
|
| 198 |
+
|
| 199 |
+
uploads = [flair, t1, t1ce, t2]
|
| 200 |
+
volumes = []
|
| 201 |
+
for upload in uploads:
|
| 202 |
+
content = await upload.read()
|
| 203 |
+
vol = load_nifti_bytes(content, upload.filename)
|
| 204 |
+
volumes.append(vol)
|
| 205 |
+
|
| 206 |
+
tensor = preprocess_volume(volumes)
|
| 207 |
+
|
| 208 |
+
# Also get the preprocessed volumes for visualization
|
| 209 |
+
preprocessed_vols = []
|
| 210 |
+
for vol in volumes:
|
| 211 |
+
v = normalize_modality(vol)
|
| 212 |
+
v = crop_to_brain(v)
|
| 213 |
+
v = resize_volume(v, target=TARGET, mode="trilinear")
|
| 214 |
+
preprocessed_vols.append(v)
|
| 215 |
+
|
| 216 |
+
pred = run_inference(tensor)
|
| 217 |
+
return JSONResponse(build_response(pred, volumes=preprocessed_vols, demo=False))
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
@app.post("/segment/demo")
|
| 221 |
+
def segment_demo():
|
| 222 |
+
# Runs inference on a synthetic random volume β no file upload needed.
|
| 223 |
+
# Useful for testing the frontend without real patient data.
|
| 224 |
+
if model is None:
|
| 225 |
+
raise HTTPException(status_code=503, detail="Model not loaded")
|
| 226 |
+
|
| 227 |
+
synthetic = torch.randn(1, 4, 128, 128, 128)
|
| 228 |
+
pred = run_inference(synthetic)
|
| 229 |
+
return JSONResponse(build_response(pred, volumes=None, demo=True))
|
src/model.py
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
model.py β 3D U-Net for BraTS2020 Brain Tumor Segmentation
|
| 3 |
+
============================================================
|
| 4 |
+
Architecture: Encoder β Bottleneck β Decoder with skip connections.
|
| 5 |
+
Each level doubles/halves the feature maps and halves/doubles spatial dims.
|
| 6 |
+
|
| 7 |
+
Input: (B, 4, 128, 128, 128) β batch of 4-modality MRI volumes
|
| 8 |
+
Output: (B, 4, 128, 128, 128) β per-voxel class logits
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
import torch
|
| 12 |
+
import torch.nn as nn
|
| 13 |
+
import torch.nn.functional as F
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
# βββ Residual Block βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 17 |
+
# Two conv3d layers with a skip connection.
|
| 18 |
+
# InstanceNorm3d is used instead of BatchNorm because BraTS batch size is 1
|
| 19 |
+
# (one 128Β³ volume barely fits in VRAM), and BatchNorm is unstable at batch=1.
|
| 20 |
+
# LeakyReLU(0.01) avoids dead neurons better than standard ReLU.
|
| 21 |
+
|
| 22 |
+
class ResidualBlock(nn.Module):
|
| 23 |
+
def __init__(self, in_ch: int, out_ch: int):
|
| 24 |
+
super().__init__()
|
| 25 |
+
self.conv1 = nn.Conv3d(in_ch, out_ch, kernel_size=3, padding=1, bias=False)
|
| 26 |
+
self.norm1 = nn.InstanceNorm3d(out_ch, affine=True)
|
| 27 |
+
self.conv2 = nn.Conv3d(out_ch, out_ch, kernel_size=3, padding=1, bias=False)
|
| 28 |
+
self.norm2 = nn.InstanceNorm3d(out_ch, affine=True)
|
| 29 |
+
self.act = nn.LeakyReLU(0.01, inplace=True)
|
| 30 |
+
|
| 31 |
+
# 1Γ1Γ1 projection so skip connection can match channel count
|
| 32 |
+
# If in_ch == out_ch this is just an identity (no parameters added)
|
| 33 |
+
self.skip = nn.Conv3d(in_ch, out_ch, kernel_size=1, bias=False) \
|
| 34 |
+
if in_ch != out_ch else nn.Identity()
|
| 35 |
+
|
| 36 |
+
def forward(self, x):
|
| 37 |
+
residual = self.skip(x)
|
| 38 |
+
out = self.act(self.norm1(self.conv1(x)))
|
| 39 |
+
out = self.norm2(self.conv2(out))
|
| 40 |
+
return self.act(out + residual) # add skip then activate
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
# βββ Encoder Block ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 44 |
+
# Each encoder level:
|
| 45 |
+
# 1. ResidualBlock to extract features at current resolution
|
| 46 |
+
# 2. Strided Conv3d (stride=2) to halve spatial dimensions
|
| 47 |
+
# Returns both the downsampled output AND the pre-downsample features (skip).
|
| 48 |
+
# The skip connection is later concatenated in the corresponding decoder level.
|
| 49 |
+
|
| 50 |
+
class DownBlock(nn.Module):
|
| 51 |
+
def __init__(self, in_ch: int, out_ch: int):
|
| 52 |
+
super().__init__()
|
| 53 |
+
self.res = ResidualBlock(in_ch, out_ch)
|
| 54 |
+
self.down = nn.Conv3d(out_ch, out_ch, kernel_size=3,
|
| 55 |
+
stride=2, padding=1, bias=False)
|
| 56 |
+
|
| 57 |
+
def forward(self, x):
|
| 58 |
+
skip = self.res(x) # full-resolution features β stored for skip
|
| 59 |
+
out = self.down(skip) # halved spatial dims β passed to next level
|
| 60 |
+
return out, skip
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
# βββ Decoder Block ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 64 |
+
# Each decoder level:
|
| 65 |
+
# 1. Trilinear upsample to double spatial dimensions
|
| 66 |
+
# 2. Concatenate with the skip connection from the matching encoder level
|
| 67 |
+
# 3. ResidualBlock to fuse upsampled + skip features
|
| 68 |
+
# The concat doubles the channel count, so ResidualBlock takes in_ch + skip_ch.
|
| 69 |
+
|
| 70 |
+
class UpBlock(nn.Module):
|
| 71 |
+
def __init__(self, in_ch: int, skip_ch: int, out_ch: int):
|
| 72 |
+
super().__init__()
|
| 73 |
+
self.up = nn.Upsample(scale_factor=2, mode="trilinear",
|
| 74 |
+
align_corners=True)
|
| 75 |
+
self.res = ResidualBlock(in_ch + skip_ch, out_ch)
|
| 76 |
+
|
| 77 |
+
def forward(self, x, skip):
|
| 78 |
+
x = self.up(x)
|
| 79 |
+
|
| 80 |
+
# Pad if spatial dims don't match exactly (can happen with odd input sizes)
|
| 81 |
+
if x.shape != skip.shape:
|
| 82 |
+
x = F.pad(x, _pad_to_match(x, skip))
|
| 83 |
+
|
| 84 |
+
return self.res(torch.cat([x, skip], dim=1))
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
# βββ Full 3D U-Net ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 88 |
+
# depth=4 means 4 encoder levels, 1 bottleneck, 4 decoder levels.
|
| 89 |
+
# base_filters=32 means the first level has 32 feature maps.
|
| 90 |
+
# Each subsequent level doubles: [32, 64, 128, 256] with bottleneck at 512.
|
| 91 |
+
# Total parameters with default settings: ~19M
|
| 92 |
+
|
| 93 |
+
class UNet3D(nn.Module):
|
| 94 |
+
def __init__(self, in_channels=4, out_channels=4,
|
| 95 |
+
base_filters=32, depth=4):
|
| 96 |
+
super().__init__()
|
| 97 |
+
self.depth = depth
|
| 98 |
+
|
| 99 |
+
# Build filter counts per level: [32, 64, 128, 256, 512]
|
| 100 |
+
filters = [base_filters * (2 ** i) for i in range(depth + 1)]
|
| 101 |
+
|
| 102 |
+
# Encoder: depth DownBlocks
|
| 103 |
+
self.encoders = nn.ModuleList()
|
| 104 |
+
self.encoders.append(DownBlock(in_channels, filters[0]))
|
| 105 |
+
for i in range(1, depth):
|
| 106 |
+
self.encoders.append(DownBlock(filters[i - 1], filters[i]))
|
| 107 |
+
|
| 108 |
+
# Bottleneck: single ResidualBlock at lowest resolution
|
| 109 |
+
self.bottleneck = ResidualBlock(filters[depth - 1], filters[depth])
|
| 110 |
+
|
| 111 |
+
# Decoder: depth UpBlocks (mirror of encoder)
|
| 112 |
+
self.decoders = nn.ModuleList()
|
| 113 |
+
for i in range(depth - 1, -1, -1):
|
| 114 |
+
self.decoders.append(UpBlock(filters[i + 1], filters[i], filters[i]))
|
| 115 |
+
|
| 116 |
+
# Final 1Γ1Γ1 conv: map feature maps β class logits
|
| 117 |
+
self.head = nn.Conv3d(filters[0], out_channels, kernel_size=1)
|
| 118 |
+
|
| 119 |
+
self._init_weights()
|
| 120 |
+
|
| 121 |
+
def forward(self, x):
|
| 122 |
+
# Encode β collect skip connections
|
| 123 |
+
skips = []
|
| 124 |
+
for enc in self.encoders:
|
| 125 |
+
x, skip = enc(x)
|
| 126 |
+
skips.append(skip)
|
| 127 |
+
|
| 128 |
+
# Bottleneck
|
| 129 |
+
x = self.bottleneck(x)
|
| 130 |
+
|
| 131 |
+
# Decode β consume skip connections in reverse order
|
| 132 |
+
for i, dec in enumerate(self.decoders):
|
| 133 |
+
x = dec(x, skips[-(i + 1)])
|
| 134 |
+
|
| 135 |
+
return self.head(x) # (B, 4, 128, 128, 128) logits
|
| 136 |
+
|
| 137 |
+
def count_parameters(self):
|
| 138 |
+
return sum(p.numel() for p in self.parameters() if p.requires_grad)
|
| 139 |
+
|
| 140 |
+
def _init_weights(self):
|
| 141 |
+
# Kaiming init for conv layers β designed for LeakyReLU
|
| 142 |
+
# Ones/zeros for InstanceNorm affine parameters (standard)
|
| 143 |
+
for m in self.modules():
|
| 144 |
+
if isinstance(m, nn.Conv3d):
|
| 145 |
+
nn.init.kaiming_normal_(m.weight, mode="fan_out",
|
| 146 |
+
nonlinearity="leaky_relu")
|
| 147 |
+
if m.bias is not None:
|
| 148 |
+
nn.init.zeros_(m.bias)
|
| 149 |
+
elif isinstance(m, nn.InstanceNorm3d) and m.affine:
|
| 150 |
+
nn.init.ones_(m.weight)
|
| 151 |
+
nn.init.zeros_(m.bias)
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
# βββ Utility ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 155 |
+
# Computes the padding needed to make tensor x match the spatial dims of target.
|
| 156 |
+
# Only needed when input dimensions are odd, causing off-by-one after downsample.
|
| 157 |
+
|
| 158 |
+
def _pad_to_match(x: torch.Tensor, target: torch.Tensor):
|
| 159 |
+
diffs = [t - s for s, t in zip(x.shape[2:], target.shape[2:])]
|
| 160 |
+
pad = []
|
| 161 |
+
for d in reversed(diffs):
|
| 162 |
+
pad += [d // 2, d - d // 2]
|
| 163 |
+
return pad
|
src/train.py
ADDED
|
@@ -0,0 +1,286 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
train.py β Training Loop for BraTS2020 3D U-Net
|
| 3 |
+
=================================================
|
| 4 |
+
Connects dataset β model β loss β optimizer into a full training pipeline.
|
| 5 |
+
|
| 6 |
+
Run:
|
| 7 |
+
python train.py
|
| 8 |
+
|
| 9 |
+
Checkpoints saved to: checkpoints/best_model.pth
|
| 10 |
+
TensorBoard logs: checkpoints/logs/
|
| 11 |
+
"""
|
| 12 |
+
from dotenv import load_dotenv
|
| 13 |
+
import os
|
| 14 |
+
load_dotenv()
|
| 15 |
+
import torch
|
| 16 |
+
import torch.nn as nn
|
| 17 |
+
import torch.nn.functional as F
|
| 18 |
+
from torch.utils.data import DataLoader
|
| 19 |
+
from torch.optim import AdamW
|
| 20 |
+
from torch.optim.lr_scheduler import CosineAnnealingLR
|
| 21 |
+
from torch.utils.tensorboard import SummaryWriter
|
| 22 |
+
from pathlib import Path
|
| 23 |
+
import numpy as np
|
| 24 |
+
|
| 25 |
+
from dataset import BraTSDataset
|
| 26 |
+
from model import UNet3D
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
# βββ Config βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 31 |
+
# All training hyperparameters in one place β easy to change without
|
| 32 |
+
# hunting through the code.
|
| 33 |
+
|
| 34 |
+
CONFIG = {
|
| 35 |
+
"data_root": os.getenv("DATA_ROOT"),
|
| 36 |
+
"output_dir": os.getenv("CHECKPOINT_PATH"),
|
| 37 |
+
"epochs": 110,
|
| 38 |
+
"batch_size": 1, # 1 is the max for 128Β³ on ~10GB VRAM
|
| 39 |
+
"lr": 1e-4, # AdamW learning rate
|
| 40 |
+
"num_workers": 2, # parallel data loading β set to 0 on Windows if errors
|
| 41 |
+
"base_filters": 32,
|
| 42 |
+
"depth": 4,
|
| 43 |
+
"seed": 42,
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
# βββ Loss Functions βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 48 |
+
# DiceLoss: computed per tumor class independently β handles class imbalance.
|
| 49 |
+
# CombinedLoss: Dice + CrossEntropy equally weighted.
|
| 50 |
+
# Dice handles imbalance, CE provides stable per-voxel gradients.
|
| 51 |
+
|
| 52 |
+
class DiceLoss(nn.Module):
|
| 53 |
+
def __init__(self, smooth=1e-5):
|
| 54 |
+
super().__init__()
|
| 55 |
+
self.smooth = smooth
|
| 56 |
+
|
| 57 |
+
def forward(self, logits, targets):
|
| 58 |
+
# logits: (B, C, H, W, D) β raw model output
|
| 59 |
+
# targets: (B, H, W, D) β integer labels {0,1,2,3}
|
| 60 |
+
num_classes = logits.shape[1]
|
| 61 |
+
probs = F.softmax(logits, dim=1)
|
| 62 |
+
|
| 63 |
+
# One-hot encode targets: (B, H, W, D) β (B, C, H, W, D)
|
| 64 |
+
targets_oh = F.one_hot(targets.long(), num_classes)
|
| 65 |
+
targets_oh = targets_oh.permute(0, 4, 1, 2, 3).float()
|
| 66 |
+
|
| 67 |
+
# Skip class 0 (background) β we only care about tumor Dice
|
| 68 |
+
dice_scores = []
|
| 69 |
+
for c in range(1, num_classes):
|
| 70 |
+
p = probs[:, c]
|
| 71 |
+
t = targets_oh[:, c]
|
| 72 |
+
intersection = (p * t).sum()
|
| 73 |
+
dsc = (2 * intersection + self.smooth) / (p.sum() + t.sum() + self.smooth)
|
| 74 |
+
dice_scores.append(dsc)
|
| 75 |
+
|
| 76 |
+
# Return loss = 1 - mean Dice (minimizing loss = maximizing Dice)
|
| 77 |
+
return 1 - torch.stack(dice_scores).mean()
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
class CombinedLoss(nn.Module):
|
| 81 |
+
def __init__(self):
|
| 82 |
+
super().__init__()
|
| 83 |
+
self.dice = DiceLoss()
|
| 84 |
+
self.ce = nn.CrossEntropyLoss()
|
| 85 |
+
|
| 86 |
+
def forward(self, logits, targets):
|
| 87 |
+
return 0.5 * self.dice(logits, targets) + \
|
| 88 |
+
0.5 * self.ce(logits, targets.long())
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
# βββ BraTS Dice Metrics βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 92 |
+
# Computes the three official BraTS evaluation region Dice scores.
|
| 93 |
+
# Called during validation β not used in the loss, only for monitoring.
|
| 94 |
+
#
|
| 95 |
+
# WT (Whole Tumor) = labels {1,2,3}
|
| 96 |
+
# TC (Tumor Core) = labels {1,3}
|
| 97 |
+
# ET (Enhancing) = label {3}
|
| 98 |
+
|
| 99 |
+
def compute_brats_dice(pred, target, smooth=1e-5):
|
| 100 |
+
# pred, target: (H, W, D) numpy arrays with values {0,1,2,3}
|
| 101 |
+
regions = {
|
| 102 |
+
"WT": (pred > 0, target > 0),
|
| 103 |
+
"TC": (np.isin(pred, [1, 3]), np.isin(target, [1, 3])),
|
| 104 |
+
"ET": (pred == 3, target == 3),
|
| 105 |
+
}
|
| 106 |
+
scores = {}
|
| 107 |
+
for name, (p, t) in regions.items():
|
| 108 |
+
intersection = (p & t).sum()
|
| 109 |
+
scores[name] = float(2 * intersection + smooth) / \
|
| 110 |
+
float(p.sum() + t.sum() + smooth)
|
| 111 |
+
return scores
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
# βββ Training Loop (one epoch) ββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 115 |
+
# AMP (Automatic Mixed Precision): runs forward pass in float16 where safe,
|
| 116 |
+
# keeps weights in float32. Roughly 2Γ faster and halves VRAM usage.
|
| 117 |
+
# GradScaler prevents float16 underflow during backprop.
|
| 118 |
+
|
| 119 |
+
def train_one_epoch(model, loader, optimizer, criterion, scaler, device):
|
| 120 |
+
model.train()
|
| 121 |
+
total_loss = 0.0
|
| 122 |
+
|
| 123 |
+
for step, (images, masks) in enumerate(loader):
|
| 124 |
+
images = images.to(device, non_blocking=True)
|
| 125 |
+
masks = masks.to(device, non_blocking=True)
|
| 126 |
+
|
| 127 |
+
optimizer.zero_grad(set_to_none=True) # slightly faster than zero_grad()
|
| 128 |
+
|
| 129 |
+
with torch.amp.autocast("cuda"): # float16 forward pass
|
| 130 |
+
logits = model(images)
|
| 131 |
+
loss = criterion(logits, masks)
|
| 132 |
+
|
| 133 |
+
scaler.scale(loss).backward() # scaled backprop
|
| 134 |
+
scaler.unscale_(optimizer)
|
| 135 |
+
# Gradient clipping: prevents exploding gradients in deep 3D networks
|
| 136 |
+
torch.nn.utils.clip_grad_norm_(model.parameters(), max_norm=1.0)
|
| 137 |
+
scaler.step(optimizer)
|
| 138 |
+
scaler.update()
|
| 139 |
+
|
| 140 |
+
total_loss += loss.item()
|
| 141 |
+
|
| 142 |
+
if step % 10 == 0:
|
| 143 |
+
print(f" step {step:3d}/{len(loader)} loss: {loss.item():.4f}")
|
| 144 |
+
|
| 145 |
+
return total_loss / len(loader)
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
# βββ Validation Loop ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 149 |
+
# Runs inference on the val set with no gradients (torch.no_grad saves memory).
|
| 150 |
+
# Computes mean Dice across WT/TC/ET β this is what we save the best model on.
|
| 151 |
+
|
| 152 |
+
@torch.no_grad()
|
| 153 |
+
def validate(model, loader, criterion, device):
|
| 154 |
+
model.eval()
|
| 155 |
+
total_loss = 0.0
|
| 156 |
+
all_dice = {"WT": [], "TC": [], "ET": []}
|
| 157 |
+
|
| 158 |
+
for images, masks in loader:
|
| 159 |
+
images = images.to(device, non_blocking=True)
|
| 160 |
+
masks = masks.to(device, non_blocking=True)
|
| 161 |
+
|
| 162 |
+
with torch.amp.autocast("cuda"):
|
| 163 |
+
logits = model(images)
|
| 164 |
+
loss = criterion(logits, masks)
|
| 165 |
+
|
| 166 |
+
total_loss += loss.item()
|
| 167 |
+
|
| 168 |
+
# Argmax over class dim β predicted label map
|
| 169 |
+
pred = torch.argmax(logits, dim=1).cpu().numpy() # (B, H, W, D)
|
| 170 |
+
gt = masks.cpu().numpy() # (B, H, W, D)
|
| 171 |
+
|
| 172 |
+
# Compute BraTS Dice per sample in batch
|
| 173 |
+
for b in range(pred.shape[0]):
|
| 174 |
+
scores = compute_brats_dice(pred[b], gt[b])
|
| 175 |
+
for region, score in scores.items():
|
| 176 |
+
all_dice[region].append(score)
|
| 177 |
+
|
| 178 |
+
mean_dice = {r: float(np.mean(v)) for r, v in all_dice.items()}
|
| 179 |
+
mean_dice["mean"] = float(np.mean(list(mean_dice.values())))
|
| 180 |
+
return total_loss / len(loader), mean_dice
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
# βββ Main βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 184 |
+
|
| 185 |
+
def main():
|
| 186 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 187 |
+
output_dir = Path(CONFIG["output_dir"])
|
| 188 |
+
output_dir.mkdir(parents=True, exist_ok=True)
|
| 189 |
+
|
| 190 |
+
print(f"Device: {device}")
|
| 191 |
+
print(f"Output dir: {output_dir}")
|
| 192 |
+
|
| 193 |
+
# ββ Data βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 194 |
+
train_ds = BraTSDataset(CONFIG["data_root"], split="train", seed=CONFIG["seed"])
|
| 195 |
+
val_ds = BraTSDataset(CONFIG["data_root"], split="val", seed=CONFIG["seed"])
|
| 196 |
+
|
| 197 |
+
train_loader = DataLoader(train_ds, batch_size=CONFIG["batch_size"],
|
| 198 |
+
shuffle=True, num_workers=CONFIG["num_workers"],
|
| 199 |
+
pin_memory=True)
|
| 200 |
+
val_loader = DataLoader(val_ds, batch_size=CONFIG["batch_size"],
|
| 201 |
+
shuffle=False, num_workers=CONFIG["num_workers"],
|
| 202 |
+
pin_memory=True)
|
| 203 |
+
|
| 204 |
+
print(f"Train: {len(train_ds)} cases | Val: {len(val_ds)} cases")
|
| 205 |
+
|
| 206 |
+
# ββ Model ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 207 |
+
model = UNet3D(in_channels=4, out_channels=4,
|
| 208 |
+
base_filters=CONFIG["base_filters"],
|
| 209 |
+
depth=CONFIG["depth"]).to(device)
|
| 210 |
+
print(f"Parameters: {model.count_parameters():,}")
|
| 211 |
+
|
| 212 |
+
# ββ Training components ββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 213 |
+
criterion = CombinedLoss()
|
| 214 |
+
# AdamW: Adam + weight decay. Weight decay regularizes weights,
|
| 215 |
+
# preventing overfitting on a 295-case dataset.
|
| 216 |
+
optimizer = AdamW(model.parameters(), lr=CONFIG["lr"], weight_decay=1e-5)
|
| 217 |
+
# CosineAnnealingLR: smoothly decays LR from lr β eta_min over all epochs.
|
| 218 |
+
# Avoids the sharp drops of step schedulers that can destabilize training.
|
| 219 |
+
scheduler = CosineAnnealingLR(optimizer, T_max=CONFIG["epochs"], eta_min=1e-6)
|
| 220 |
+
scaler = torch.amp.GradScaler("cuda") # for AMP
|
| 221 |
+
writer = SummaryWriter(output_dir / "logs") # TensorBoard
|
| 222 |
+
|
| 223 |
+
best_dice = 0.0
|
| 224 |
+
|
| 225 |
+
# ββ Resume from checkpoint ββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 226 |
+
RESUME = "checkpoints/best_model.pth" # set to None to start fresh
|
| 227 |
+
start_epoch = 0
|
| 228 |
+
|
| 229 |
+
if RESUME and Path(RESUME).exists():
|
| 230 |
+
ckpt = torch.load(RESUME, map_location=device)
|
| 231 |
+
model.load_state_dict(ckpt["model_state_dict"])
|
| 232 |
+
optimizer.load_state_dict(ckpt["optimizer_state_dict"])
|
| 233 |
+
start_epoch = ckpt["epoch"] + 1
|
| 234 |
+
best_dice = ckpt["best_dice"]
|
| 235 |
+
print(f"Resumed from epoch {ckpt['epoch']} best Dice: {best_dice:.4f}")
|
| 236 |
+
|
| 237 |
+
# ββ Epoch loop βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 238 |
+
for epoch in range(start_epoch, CONFIG["epochs"]):
|
| 239 |
+
print(f"\nEpoch {epoch:03d}/{CONFIG['epochs']}")
|
| 240 |
+
|
| 241 |
+
train_loss = train_one_epoch(
|
| 242 |
+
model, train_loader, optimizer, criterion, scaler, device
|
| 243 |
+
)
|
| 244 |
+
val_loss, val_dice = validate(model, val_loader, criterion, device)
|
| 245 |
+
scheduler.step()
|
| 246 |
+
|
| 247 |
+
print(f" Train loss: {train_loss:.4f}")
|
| 248 |
+
print(f" Val loss: {val_loss:.4f}")
|
| 249 |
+
print(f" Val Dice β WT: {val_dice['WT']:.3f} "
|
| 250 |
+
f"TC: {val_dice['TC']:.3f} "
|
| 251 |
+
f"ET: {val_dice['ET']:.3f} "
|
| 252 |
+
f"Mean: {val_dice['mean']:.3f}")
|
| 253 |
+
|
| 254 |
+
# TensorBoard logging β run: tensorboard --logdir checkpoints/logs
|
| 255 |
+
writer.add_scalar("Loss/train", train_loss, epoch)
|
| 256 |
+
writer.add_scalar("Loss/val", val_loss, epoch)
|
| 257 |
+
for region, score in val_dice.items():
|
| 258 |
+
writer.add_scalar(f"Dice/{region}", score, epoch)
|
| 259 |
+
writer.add_scalar("LR", scheduler.get_last_lr()[0], epoch)
|
| 260 |
+
|
| 261 |
+
# Save best model based on mean val Dice across WT/TC/ET
|
| 262 |
+
if val_dice["mean"] > best_dice:
|
| 263 |
+
best_dice = val_dice["mean"]
|
| 264 |
+
torch.save({
|
| 265 |
+
"epoch": epoch,
|
| 266 |
+
"model_state_dict": model.state_dict(),
|
| 267 |
+
"optimizer_state_dict": optimizer.state_dict(),
|
| 268 |
+
"val_dice": val_dice,
|
| 269 |
+
"best_dice": best_dice,
|
| 270 |
+
"config": CONFIG,
|
| 271 |
+
}, output_dir / "best_model.pth")
|
| 272 |
+
print(f" β
Best model saved (mean Dice: {best_dice:.4f})")
|
| 273 |
+
|
| 274 |
+
# Periodic checkpoint every 50 epochs β lets you resume if training crashes
|
| 275 |
+
if epoch % 50 == 0:
|
| 276 |
+
torch.save({
|
| 277 |
+
"epoch": epoch,
|
| 278 |
+
"model_state_dict": model.state_dict(),
|
| 279 |
+
}, output_dir / f"epoch_{epoch:03d}.pth")
|
| 280 |
+
|
| 281 |
+
writer.close()
|
| 282 |
+
print(f"\nTraining complete. Best mean Dice: {best_dice:.4f}")
|
| 283 |
+
|
| 284 |
+
|
| 285 |
+
if __name__ == "__main__":
|
| 286 |
+
main()
|