81 Commits
Author SHA1 Message Date
n07070 85b1c307a8 Add alignement and font size support to text generation 2026-11-29 03:24:38 +01:00
n07070 5fa7e0bc51 Move images functions to own file, add markdown support for text to
image
2026-11-29 03:23:50 +01:00
n07070 fe99cac8db Add new fonts 2026-11-29 03:23:29 +01:00
n07070 4ec42c6985 Update bootstrap 2026-11-29 03:23:15 +01:00
n07070 c9fde8eea8 Add REMOVE task for images once printed 2026-11-28 23:57:30 +01:00
n07070 5574fc89ef Better error management, change signature print 2026-11-28 23:56:54 +01:00
n07070 ac2f3fe969 Remove TODO, work done 2026-11-28 23:56:39 +01:00
n07070 6420370352 Add more information about the finished queue 2026-11-28 23:56:24 +01:00
n07070 99f9eccf00 Formatting 2026-11-28 01:27:00 +01:00
n07070 12508bda83 Remove cut task 2026-11-28 01:22:15 +01:00
n07070 52205be6af Change the way cuts are managed, rewrite lock mechanism, add support for
multiple printers
2026-11-28 00:54:15 +01:00
n07070 aa1f9d1532 Update deps 2026-11-28 00:54:01 +01:00
n07070 6aa85f99d0 Update limit rules for html pages 2026-11-25 01:52:41 +01:00
n07070 584a3cf13c Make image upload anonymous 2026-11-18 17:49:01 +01:00
n07070 a5dc4697de Add live update to queue page 2026-11-18 17:16:55 +01:00
n07070 d682a18707 Manage errors on webcam better 2026-11-18 17:16:35 +01:00
n07070 eaa591d93a Add more descriptions 2026-11-18 15:58:44 +01:00
n07070 96b169c017 Update webcam code 2026-11-18 15:58:34 +01:00
n07070 35d14965b3 Update default interval 2026-11-18 15:58:19 +01:00
n07070 6726c09b98 Add more descriptions 2026-11-18 15:57:37 +01:00
n07070 de517bfaaa Update rate limits 2026-11-18 15:57:17 +01:00
n07070 6f1a8bd92c Change return types 2026-11-18 13:47:46 +01:00
n07070 b787f2f9ce Change return types 2026-11-18 13:47:29 +01:00
n07070 4bd89a2b3b Add cut illustration for status queue 2026-11-18 13:47:10 +01:00
n07070 69a87d629f Add status javascript indicator 2026-11-18 13:46:59 +01:00
n07070 c026112be1 Update bootstrap 2026-11-18 13:46:34 +01:00
n07070 e5c4b3d5e6 Add new queue page and status indicator on the homepage 2026-11-18 13:46:15 +01:00
n07070 dd27581358 Add new queue route 2026-11-18 13:45:59 +01:00
n07070 070f037449 Apply formating, light linting 2026-11-13 19:51:32 +01:00
n07070 adb5e9422d Add limits to API calls 2026-11-13 19:48:05 +01:00
n07070 d348acd88c Add Printers information via the API 2026-11-13 19:47:52 +01:00
n07070 e8568795b2 Configuration max text length via config file 2026-11-13 19:47:36 +01:00
n07070 086a7ae640 Make max text length configurable 2026-11-13 19:46:16 +01:00
n07070 836d6b0be9 Update configuration options in the web methods 2026-11-13 19:16:56 +01:00
n07070 8309399827 Update web interface for configuration options 2026-11-13 19:16:46 +01:00
n07070 b50b9abc22 Add more configuration options to the printers 2026-11-13 19:16:13 +01:00
n07070 d0f4ba8f01 Add more configuration and printing options 2026-11-13 19:15:59 +01:00
n07070 3fc41f806a Update configuration file to add printer specifics 2026-11-13 19:15:32 +01:00
n07070 9830917b1a Remove image after printing for brother-ql 2026-11-13 03:05:17 +01:00
n07070 ba7e854a6f Match case for printer type discovery 2026-11-13 03:01:21 +01:00
n07070 df070ebd72 Apply formatting 2026-11-13 02:46:05 +01:00
n07070 bfbee7dacb Remove unused templates 2026-11-13 02:45:28 +01:00
n07070 e2eb3d3825 Add support for signature on brother printers 2026-11-13 02:45:11 +01:00
n07070 0a6431eecf Add pytest 2026-11-13 02:42:44 +01:00
n07070 6e94bb8906 Update README 2026-11-13 02:41:49 +01:00
n07070 88e3539a1b Add run script 2026-11-12 17:28:17 +01:00
n07070 72e6e93337 Add new printing options, change image conversion for Brother QL
printers
2026-11-12 17:26:50 +01:00
n07070 d254fa0d32 Update index HTML to make cut optionnal 2026-11-12 15:35:16 +01:00
n07070 3e4231938e Add API route for printer information 2026-11-12 15:35:01 +01:00
n07070 99bf70d3f7 Fix printing via a Brother QL 2026-11-12 15:34:03 +01:00
n07070 704b7b83cd Update the way a printer is found, update the configuration of Brother
Printers
2026-11-11 16:58:44 +01:00
n07070 fd0507ff4f Change the way a Printer is used by the worker 2026-10-11 21:46:05 +02:00
n07070 31213eeeea Add more debug and fix brother creation 2026-10-11 21:46:05 +02:00
n07070 ebb317b98e Fix inverter variables, adjust Brother creation and image processing 2026-10-11 21:46:05 +02:00
n07070 9af86a3356 Raise final exception to get traceback 2026-10-11 21:46:05 +02:00
n07070 642464cb4f Change Error to warning when not on a Raspberry 2026-10-11 21:46:05 +02:00
n07070 ae8f7bdeed Add welcome message 2026-10-11 21:46:05 +02:00
n07070 600135d6b3 Change management of state : we assume the printer is online. Otherwise,
because this is a real-time command, we might not get the good answer
and fail to print fast enough. See https://download4.epson.biz/sec_pubs/pos/reference_en/escpos/realtime_commands.html
2026-10-11 21:46:05 +02:00
n07070 02d28bc0a9 Manage error when no Printers are found 2026-10-11 21:46:05 +02:00
n07070 143bbafc12 Manage file too big exceptions 2026-10-11 21:46:05 +02:00
n07070 3b5b19ff19 Update Error raising in uploads and image processing 2026-10-11 21:46:05 +02:00
n07070 b5e3c8cd01 Add content in print queue method 2026-10-11 21:46:05 +02:00
n07070 216ab38393 Add skip line and catch printing errors 2026-10-11 21:46:05 +02:00
n07070 840417205b Update getting debug env 2026-10-11 21:46:05 +02:00
n07070 8af9c55d22 Use textarea instead of input, easier for ASCII art 2026-10-11 21:46:05 +02:00
n07070 949dd75d44 Remove socketio from Worker for the moment 2026-10-11 21:46:05 +02:00
n07070 3a15b349aa Apply linting to worker 2026-10-11 21:46:05 +02:00
n07070 cad5095eb0 Apply linting to web 2026-10-11 21:46:05 +02:00
n07070 1b713c55ac Apply linting to the Raspberry Pi 2026-10-11 21:46:05 +02:00
n07070 8d9595d62f Apply linting to printers 2026-10-11 21:46:05 +02:00
n07070 a21d23e883 Lint printer file 2026-10-11 21:46:05 +02:00
n07070 0c759dce9c Apply black formatter 2026-10-11 21:46:05 +02:00
n07070 0e0197e11c Update worker to get differents printer types 2026-10-11 21:46:05 +02:00
n07070 c91caf61dc Add queue completion method, add Printer discovery and types 2026-10-11 21:46:05 +02:00
n07070 bfd33dcdde Remove printer import, remove vendor&device configuration, update
print_queue
2026-10-11 21:46:05 +02:00
n07070 70adf6eceb Remove unused import, add get_queue_completed method 2026-10-11 21:46:05 +02:00
n07070 cd44c97d86 Remove print, add task Typing 2026-10-11 21:46:05 +02:00
n07070 41e31ea1fd Remove vendor and device ID from configuration because it's not needed
anymore
2026-10-11 21:46:05 +02:00
n07070 d0ab9b1ace Add support for QR code task 2026-10-11 21:46:05 +02:00
n07070 53560dcf2c Change the Printer class to implement multiple printer types 2026-10-11 21:46:05 +02:00
n07070 a32b515dd2 Add new printer software 2026-10-11 21:45:49 +02:00
58 changed files with 60112 additions and 1477 deletions

No files matched your search

+11 -6
View File
@@ -15,6 +15,7 @@ To make this project work, you will need :
- A Thermal Printer :
- I used *Adafruit's thermal printer* at first, but it broke down. You can get it [here](https://www.adafruit.com/product/597).
- I then used an *EPSON TM-T2OIII*. It's expensive, but it's also high quality, and has better CUPS and specific library support.
- Sometime after, a friend leant me a *Brother QL-650TD* to add support for this type of printer.
- A Raspberry Pi or any computer with USB or Serial.
- Some electric wires.
- Some knowledge of the command line,
@@ -37,13 +38,15 @@ You can also get some information from [here](https://learn.adafruit.com/mini-th
LittlePrynter itself does not require any other software than the ones installed with it, i.e the ones listed in the `pyproject.toml` file.
The version for the EPSON TM-T20III uses a library called `python-escpos`, which doesn't need a CUPS driver or anything else. It's included in the Python dependencies.
The project supports EPSON label printers as well as Brother label printers, and you can try to adapt it for other printers. For example, using `adafruit-thermal`.
The project only supports the EPSON printer, but you can try to adapt it for other printers. For example, using `adafruit-thermal`, or `brother-ql`.
For the EPSON TM-T20III, LittlePrynter uses a library called `python-escpos`, which doesn't need a CUPS driver or anything else. It's included in the Python dependencies. For the Brother-QL, we use the `brother-ql` library, which is also included.
### Install & setup the project :
Theses commands will copy the software on your computer, go into the directory, then activate a virtual environnement and install all of the project's dependecies.
We use [Poetry](https://python-poetry.org/) to manage the Python environnement and packages. You will need to install it on your computer to install LittlePrynter.
The following commands will copy the software on your computer, go into the directory, then activate a virtual environnement and install all of the project's dependecies.
```
$ git clone https://git.n07070.xyz/n07070/LittlePrynter
@@ -69,6 +72,8 @@ $ flask run --cert=adhoc
The `--cert=adhoc` argument will make LittlePrinter accessible in HTTPS with a [self-signed SSL certificate](https://en.wikipedia.org/wiki/Self-signed_certificate). This provides a free and easy way to use HTTPS, but does not provide any trust value. It is, on the other hand, a good way to access the webcam in developpement mode or on a local network, because a HTTPS connexion is required by browsers to access the needed APIs.
You can also use the `run.sh` for this.
This command should start a web server with which you can test your configuration. If you plan on exposing your printer to the Internet, and give it an IP / URL, _please, please, please_, don't run it this way. Look at Flask's documentation and read about running a production server. It's a little more work, but it will prevent your computer/server being hacked in too easily.
Voilà !
@@ -81,11 +86,11 @@ Please also say if you had a printer to test your code, and which printer you've
### Code structure
The app is written about the Flask framework. You can start by looking at the code in the `src/` folder, in the `main.py` file. There, you will see that a few classes are initialized. In general, they are two parts to the program :
The app is written around the Flask framework. You can start by looking at the code in the `src/` folder, in the `main.py` file. There, you will see that a few classes are initialized. In general, they are two parts to the program :
The Web pages and the API, which are the user-facing parts. This is with what the users will interact, and define how the program is going to be used. The web pages are renderer from the `include/` folder where Jinj2 templates are defined.
The Worker and Printer Queue are the internal parts. When a new thing needs to be printed, usually sent from the Web or API interfaces, a new Task in the type of the document is created, and added to a print queue. Then, a Worker thread looks up the state of the queue every so often and picks jobs to execute on the printers connected to the system.
The Worker and Printer Queue are the internal parts. When a new thing needs to be printed, usually sent from the Web or API interfaces, a new Task of the type of the document is created, and added to a print queue. Then, a Worker thread looks up the state of the queue every so often and picks jobs to execute on the printers connected to the system.
The last part of the program is the Raspberry Pi class, that handles to Photomaton mode, which handles button presses, and LED indicator and a flash.
@@ -130,7 +135,7 @@ If you liked this project, feel free to support my work !
- [A link to buy one in Europe](https://rlx.sk/sk/various-boards/1829-mini-thermal-receipt-printer-adafruit-597.html)
- [Another link to buy one, direct from factory](https://www.cashinotech.com/csn-a2-58mm-mini-panel-thermal-receipt-printer_p11.html)
- [Diagnostickoeur](https://framagit.org/stickoeur/diagnostickoeur), another printer software mainly around Brother QL printers.
- [FaxTheSystem](https://github.com/hackstub/faxthesystem/tree/main), another printer software, also around an Epson TM printer
## Licence
+18 -3
View File
@@ -1,13 +1,28 @@
# Configuration file the LittlePrynter
[defaults]
signature = "Anonymous"
signature = ""
# Printer settings
[printer]
vendor_id = 0x04b8
device_id = 0x0e28
upload_folder = "src/static/uploads"
# How long do we wait before giving up on waiting for a printer connexion
waiting_time = 5
[printer.epson]
# Configurations for EPSON printers
profile = "TM-T20III"
label_type = 80 # 80 or 58 ( label width in mm )
align_text = "center"
text_max_length = 4096
signature_max_length = 256
[printer.brother]
# Configurations for Brother printers
label_type = "62" # See https://github.com/pklaus/brother_ql#usage for label types
text_max_length = 4096
signature_max_length = 256
# Raspberry Pi Configuration
[rpi]
+19 -2
View File
@@ -5,8 +5,25 @@ signature = "Anonymous"
# Printer settings
[printer]
vendor_id = "0x04b8"
device_id = "0x0e28"
# Where do we upload the pictures and such
upload_folder = "src/static/uploads"
# How long do we wait before giving up on waiting for a printer connexion
waiting_time = 5
[printer.epson]
# Configurations for EPSON printers
profile = "TM-T20III"
label_type = 80 # 80 or 58 ( label width in mm )
align_text = "center"
text_max_length = 4096
signature_max_length = 256
[printer.brother]
# Configurations for Brother printers
label_type = 62 # See https://github.com/pklaus/brother_ql#usage for label types
text_max_length = 4096
signature_max_length = 256
# Raspberry Pi Configuration
[rpi]
Generated
+1181 -933
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -43,6 +43,7 @@ dependencies = [
"pep8 (>=1.7.1,<2.0.0)",
"pylint (>=4.0.5,<5.0.0)",
"brother-ql-inventree (>=1.3,<2.0)",
"pytest (>=9.2.0,<10.0.0)",
]
[tool.poetry]
Executable
+2
View File
@@ -0,0 +1,2 @@
eval $(poetry env activate)
export FLASK_DEBUG=True; export FLASK_APP=src/main.py && flask run --cert=adhoc --debug --no-debugger --host 0.0.0.0 --without-threads
+382
View File
@@ -0,0 +1,382 @@
"""
Various image processing functions that don't fit in the Printer Class
"""
import math
import re
from pathlib import Path
from uuid import uuid4
from PIL import Image, ImageEnhance, ImageDraw, ImageFont
import numpy as np
def process_image(self, path, max_width=575, max_height=1000):
"""
Adjust the constrat of images
"""
brightness_threshold = 100
contrast_factor = 2.0
with Image.open(path) as img:
# Preserve aspect ratio while fitting within the maximum dimensions.
img.thumbnail(
(max_width, max_height),
Image.Resampling.LANCZOS,
)
grayscale_image = img.convert("L")
avg_brightness = np.asarray(grayscale_image, dtype=np.float32).mean()
self.app.logger.debug("Average brightness of the image: %.2f", avg_brightness)
if avg_brightness < brightness_threshold:
brightness_factor = min(
max(
1 + (brightness_threshold - avg_brightness) / brightness_threshold,
1.1,
),
2.5,
)
self.app.logger.debug(
"Image is dark; increasing brightness by %.2f",
brightness_factor,
)
grayscale_image = ImageEnhance.Brightness(grayscale_image).enhance(
brightness_factor
)
contrast = float(np.asarray(grayscale_image, dtype=np.float32).std())
self.app.logger.debug("Grayscale standard deviation: %.2f", contrast)
# Save the enhanced result.
processed = ImageEnhance.Contrast(grayscale_image).enhance(contrast_factor)
jpeg_path = os.path.splitext(path)[0] + "_processed.jpg"
processed.save(jpeg_path, format="JPEG", quality=95, optimize=True)
self.app.logger.debug("Processed and saved image: %s", jpeg_path)
return jpeg_path
def text_to_image(
text,
width=400,
font_path="src/static/font/Sono-Regular.ttf",
font_size=24,
padding=10,
line_spacing=4,
background="white",
fill="black",
output_dir="src/static/uploads",
align="center", # "left", "center", or "right"
bold_font_path="src/static/font/Sono-Bold.ttf",
italic_font_path=None,
bold_italic_font_path=None,
):
"""Convert text with basic Markdown bold and italic to an image.
Supported markers: **bold**, *italic*, and ***bold italic***.
Underscore forms (__bold__, _italic_) are supported too.
DISCLAIMER : THIS CODE WAS GENERATED BY A LLM. I'm too dumb to code this myself. If a human has a better solution, I'm very much willing to hear about it. This code may or may not work. If it causes bugs, tough luck !
"""
if align not in {"left", "center", "right"}:
raise ValueError("align must be 'left', 'center', or 'right'")
# Load supplied font faces. Missing styles are simulated from the regular font.
fonts = {
"regular": ImageFont.truetype(font_path, font_size),
"bold": ImageFont.truetype(bold_font_path, font_size)
if bold_font_path else None,
"italic": ImageFont.truetype(italic_font_path, font_size)
if italic_font_path else None,
"bold_italic": ImageFont.truetype(bold_italic_font_path, font_size)
if bold_italic_font_path else None,
}
regular_font = fonts["regular"]
# Match triple markers before double and single markers.
marker_re = re.compile(
r"\*\*\*(.+?)\*\*\*|___(.+?)___|"
r"\*\*(.+?)\*\*|__(.+?)__|"
r"(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)|"
r"(?<!_)_(?!_)(.+?)(?<!_)_(?!_)"
)
def parse_paragraph(paragraph):
"""Return a list of (character, style) pairs."""
result = []
position = 0
for match in marker_re.finditer(paragraph):
result.extend(
(char, "regular") for char in paragraph[position:match.start()]
)
groups = match.groups()
if groups[0] is not None or groups[1] is not None:
content = groups[0] if groups[0] is not None else groups[1]
style = "bold_italic"
elif groups[2] is not None or groups[3] is not None:
content = groups[2] if groups[2] is not None else groups[3]
style = "bold"
else:
content = groups[4] if groups[4] is not None else groups[5]
style = "italic"
result.extend((char, style) for char in content)
position = match.end()
result.extend((char, "regular") for char in paragraph[position:])
return result
def get_font_and_effects(style):
"""Choose a supplied font face, or return fallback drawing effects."""
if style == "regular":
return regular_font, 0, False
if style == "bold":
if fonts["bold"]:
return fonts["bold"], 0, False
return regular_font, 1, False
if style == "italic":
if fonts["italic"]:
return fonts["italic"], 0, False
return regular_font, 0, True
# Prefer a real combined face. Otherwise combine bold and italic effects.
if fonts["bold_italic"]:
return fonts["bold_italic"], 0, False
bold_face = fonts["bold"]
return bold_face or regular_font, 0 if bold_face else 1, True
# Use a small shear for synthetic italics.
italic_shear = 0.25
def grouped_runs(chars):
"""Group adjacent characters that share the same style."""
runs = []
for char, style in chars:
if runs and runs[-1][0] == style:
runs[-1][1] += char
else:
runs.append([style, char])
return runs
def run_width(style, text):
"""Estimate rendered width, including simulated bold/italic effects."""
font, stroke_width, synthetic_italic = get_font_and_effects(style)
extra = stroke_width * 2
if synthetic_italic:
extra += math.ceil(italic_shear * font_size)
return font.getlength(text) + extra
def chars_width(chars):
return sum(run_width(style, text) for style, text in grouped_runs(chars))
max_text_width = width - 2 * padding
if max_text_width <= 0:
raise ValueError("width must be greater than twice the padding")
# Wrap words by their rendered pixel width.
lines = []
for paragraph in text.splitlines() or [""]:
chars = parse_paragraph(paragraph)
words = []
current_word = []
for item in chars:
if item[0].isspace():
if current_word:
words.append(current_word)
current_word = []
else:
current_word.append(item)
if current_word:
words.append(current_word)
if not words:
lines.append([])
continue
line = []
for word in words:
candidate = line + ([(" ", "regular")] if line else []) + word
if chars_width(candidate) <= max_text_width:
line = candidate
continue
if line:
lines.append(line)
line = []
# Break a word that's wider than the available line width.
for item in word:
if line and chars_width(line + [item]) > max_text_width:
lines.append(line)
line = []
line.append(item)
if line:
lines.append(line)
if not lines:
lines = [[]]
ascent, descent = regular_font.getmetrics()
line_height = ascent + descent
image_height = (
2 * padding
+ len(lines) * line_height
+ (len(lines) - 1) * line_spacing
)
image = Image.new("RGBA", (width, image_height), background)
def render_run(style, text):
"""Render one styled run, applying fallback bold/italic effects."""
font, stroke_width, synthetic_italic = get_font_and_effects(style)
bbox = font.getbbox(text, stroke_width=stroke_width)
run_width_px = max(
1,
math.ceil(font.getlength(text) + 2 * stroke_width + font_size),
bbox[2] - bbox[0] + 2 * stroke_width + font_size,
)
run_height_px = max(line_height + font_size, bbox[3] - bbox[1] + font_size)
layer = Image.new("RGBA", (run_width_px, run_height_px), (0, 0, 0, 0))
layer_draw = ImageDraw.Draw(layer)
# Offset the glyphs so their bounding box starts inside the transparent layer.
text_x = stroke_width - bbox[0]
text_y = -bbox[1]
layer_draw.text(
(text_x, text_y),
text,
font=font,
fill=fill,
stroke_width=stroke_width,
stroke_fill=fill,
)
alpha_bbox = layer.getbbox()
if alpha_bbox:
layer = layer.crop(alpha_bbox)
if synthetic_italic:
shear_extra = math.ceil(italic_shear * layer.height)
layer = layer.transform(
(layer.width + shear_extra, layer.height),
Image.Transform.AFFINE,
(1, -italic_shear, 0, 0, 1, 0),
resample=Image.Resampling.BICUBIC,
)
advance = font.getlength(text) + 2 * stroke_width
if synthetic_italic:
advance += math.ceil(italic_shear * font_size)
return layer, advance
# Draw each line using its measured width to position left, center, or right.
y = padding
for line in lines:
line_width = chars_width(line)
if align == "center":
x = padding + (max_text_width - line_width) / 2
elif align == "right":
x = padding + max_text_width - line_width
else:
x = padding
for style, run_text in grouped_runs(line):
run_image, advance = render_run(style, run_text)
image.alpha_composite(run_image, (round(x), y))
x += advance
y += line_height + line_spacing
# Convert to RGB so backgrounds like named colors save consistently as PNG.
image = image.convert("RGB")
upload_dir = Path(output_dir)
upload_dir.mkdir(parents=True, exist_ok=True)
image_path = upload_dir / f"{uuid4().hex}.png"
image.save(image_path, format="PNG")
return str(image_path)
def _resize_image(
self,
label_type: str,
image_path: str,
device_pixel_width: int,
printer_model: object,
):
# """
# Resize an image to the specs needed for a label. Only used in Brother printers
# """
# self.app.logger.debug("Resizing the image from %s", image_path)
# label_specs = LabelsManager().get_label_by_identifier(label_type)
# right_margin_dots = label_specs.offset_r
# model_obj = ModelsManager().get_model_by_identifier(printer_model)
# right_margin_dots += model_obj.additional_offset_r
# max_image_dimension = label_specs.dots_printable
# self.app.logger.debug("Found label %s with maximum dimensions %s", label_type, max_image_dimension)
# # Open image
# with Image.open(image_path ) as img:
# self.app.logger.debug("Image current dimensions before resizing are %s", img.size)
# # Fit inside the label dimensions while preserving aspect ratio.
# max_width = max_image_dimension[0]
# max_height = max_image_dimension[1]
# img = ImageOps.contain(
# img,
# (max_width, max_height),
# method=Image.Resampling.LANCZOS,
# )
# # Create a new image of the correct dimensions
# new_im = Image.new(
# img.mode,
# (device_pixel_width, max_image_dimension[1]),
# (255,) * len(img.mode),
# )
# # Set image position
# x = max(0, device_pixel_width - img.size[0] - right_margin_dots)
# # Paste the resized image into the new image
# new_im.paste(img, (x, 0))
# # Replace the original image
# img = new_im
# # Set path for the image
# jpeg_path = os.path.splitext(image_path)[0] + "_resized.jpg"
# try:
# img.save(jpeg_path, format="JPEG", quality=95, optimize=True)
# except OSError as e:
# self.app.logger.debug("Error while saving the rised image ! %s", str(e))
# raise e
# # end try
# return jpeg_path
pass
+200 -50
View File
@@ -1,7 +1,8 @@
"""
Welcome to the LittlePrynter's source code.
This program expose a web interface, with user authentification,
This program expose a web interface,
that makes it possible to print messages from the web.
It also exposes a API, making it possible to print and interface
with much of the printer's abilities.
@@ -10,18 +11,21 @@ Then we build the API around Flask,
Then we build the web interface, using the simple Jinja2 templating.
We support two modes :
The first is a simple mode, where a computer, connected to a thermal printer,
runs this program and exposes a web interface that makes use of the client's camera
The seconde is booth mode, where a Raspberry Pi is connected to a thermal printer,
a button and a flash.
The web interface exists but may not be used, as the press of the button with take
a picture and activate the flash while simply informing the web page.
The seconde is booth mode, where a Raspberry Pi is connected to
a thermal printer, a button and a flash.
The web interface exists but it's not needed, as the press of the button
takes a picture and activates the flash while simply informing the web page.
"""
# Following are the librairies we import,
import sys
import os # For VARS from the shell.
import pprint # To pretty print JSON
import threading
import toml # Used for the config file parsing
from flask import (
Flask,
@@ -36,11 +40,35 @@ import werkzeug.exceptions
from flask_socketio import SocketIO
from flask_limiter import Limiter
from flask_limiter.util import get_remote_address
from printer import Printer # The wrapper for the printer class
from logging.config import dictConfig
from raspberry import Raspberry # The Raspberry pi control Class
from web import Web # Wrapper for the web routes and API
from print_queue import PrintQueue
from worker import PrintWorker
from printers import Printers
# Logging configuration
dictConfig(
{
"version": 1,
"formatters": {
"default": {
"format": "[%(levelname)s] \033[1m%(message)s\033[0m \033[2m(%(filename)s:%(lineno)d)\033[0m",
}
},
"handlers": {
"wsgi": {
"class": "logging.StreamHandler",
"stream": "ext://flask.logging.wsgi_errors_stream",
"formatter": "default",
}
},
"root": {"level": "INFO", "handlers": ["wsgi"]},
}
)
# We create the main Flask object
app = Flask(__name__)
@@ -73,11 +101,7 @@ except OSError as e:
app.logger.debug("Config file loaded !")
# Define the USB connections here.
vendor_id = configuration_file["printer"]["vendor_id"]
device_id = configuration_file["printer"]["device_id"]
UPLOAD_FOLDER = str(configuration_file["printer"]["upload_folder"])
try:
os.mkdir(UPLOAD_FOLDER)
app.logger.debug("Directory %s created successfully.", UPLOAD_FOLDER)
@@ -88,52 +112,68 @@ except PermissionError:
sys.exit(77)
# Output the config file
if os.getenv("FLASK_DEBUG"):
if not os.getenv("FLASK_DEBUG") is None and os.getenv("FLASK_DEBUG") is True:
pprint.pprint(configuration_file)
# We define the app module used by Flask
app.secret_key = configuration_file["secrets"]["flask_secret_key"]
app.config["UPLOAD_FOLDER"] = UPLOAD_FOLDER
app.config["ALLOWED_EXTENSIONS"] = ALLOWED_EXTENSIONS
app.config["MAX_CONTENT_LENGTH"] = 10 * 1000 * 1000 # Maximum 3Mb for a file upload
app.config["MAX_CONTENT_LENGTH"] = 30 * 1000 * 1000 # Maximum 10Mb for a file upload
app.config["TEMPLATES_AUTO_RELOAD"] = True
# Printer connection
# Uses the class defined in the printer.py file
printer = Printer(app, 0x04B8, 0x0E28)
printer.init_printer()
# Find out if we are running on a Raspberry Pi
rpi = Raspberry(
printer,
app,
socketio,
configuration_file["rpi"]["button_gpio_port_number"],
configuration_file["rpi"]["indicator_gpio_port_number"],
configuration_file["rpi"]["flash_gpio_port_number"],
configuration_file["rpi"]["flash"],
)
RASPBERRY_PI_CONNECTED = rpi.is_raspberry_pi()
main_lock = threading.Lock()
# Queue creation
print_queue = PrintQueue(app)
# Find out if we are running on a Raspberry Pi
rpi = Raspberry(print_queue, app, configuration_file)
RASPBERRY_PI_CONNECTED = rpi.is_raspberry_pi()
# Web & API management
web = Web(app, print_queue)
# Create a pool of printers
try:
# comment: Find all printers connected to the system
printers_pool = Printers(app, configuration_file, main_lock)
except Exception as e:
app.logger.error("Could not create a pool of printers because %s", str(e))
sys.exit(-1)
# end try
# Start worker thread
worker = PrintWorker(app, print_queue, printer, socketio)
worker.start()
workers = set()
for i in range(len(printers_pool)):
try:
worker = PrintWorker(
app, print_queue, printers_pool=printers_pool, printer_index=i
)
workers.add(worker)
worker.start()
except Exception as e:
app.logger.error("Could not start the worker because %s ", str(e))
sys.exit(-1)
for i in threading.enumerate():
app.logger.debug(i)
app.logger.info(
"\n\n\t\033[36m🖶\033[0m \033[93m🖶\033[0m \033[95m🖶\033[0m \033[97mWelcome to LittlePrynter !\n\n"
)
# The rate limit
limiter = Limiter(
get_remote_address, app=app, default_limits=["1500 per day", "500 per hour"]
get_remote_address, app=app, default_limits=["104800 per day", "10200 per hour"]
)
# General routes
@app.route("/")
@limiter.limit("1/second", override_defaults=False)
@limiter.limit("5/second", override_defaults=False)
def index():
"""Return the web interface index"""
app.logger.debug("Loading index")
@@ -141,13 +181,29 @@ def index():
@app.route("/webcam")
@limiter.limit("1/second", override_defaults=False)
@limiter.limit("5/second", override_defaults=False)
def webcam():
"""Returns the webcam web interface"""
app.logger.debug("Loading webcam interface")
return render_template("webcam.html")
# General routes
@app.route("/queue")
@limiter.limit("5/second", override_defaults=False)
def queue():
"""Return the web interface index"""
app.logger.debug("Loading queue")
current_queue = print_queue.get_queue_state()
completed_queue = print_queue.get_queue_completed()
return render_template(
"queue.html",
tasks=current_queue,
completed_tasks=completed_queue,
worker_state=worker.current_state(),
)
# Form treatement
@app.route("/web/print/sms", methods=["POST"])
@limiter.limit("6/minute", override_defaults=False)
@@ -170,9 +226,29 @@ def web_print_sms():
"No signature found for this print, using default signature : %s ", str(e)
)
sign = configuration_file["defaults"]["signature"]
try:
do_cut = bool(request.form["cut"])
except werkzeug.exceptions.BadRequestKeyError:
do_cut = False
try:
web.print_sms(txt, sign)
# Clamp value between 1 and
many = max(1, min(int(request.form["many"]), 20))
except werkzeug.exceptions.BadRequestKeyError:
many = 1
try:
align = str(request.form["text_align"])
except werkzeug.exceptions.BadRequestKeyError:
align = "center"
try:
font_size = int(request.form["font_size"])
except werkzeug.exceptions.BadRequestKeyError:
font_size = 20
try:
web.print_sms(txt, sign, do_cut, align=align, font_size=font_size)
except RuntimeError as e:
app.logger.error("Whoops, we could not print an SMS because : %s ", str(e))
flash("Whoops, we could not print an SMS because :" + str(e), "error")
@@ -197,6 +273,9 @@ def web_print_img():
"No signature found for this print, using default signature : %s", str(e)
)
sign = configuration_file["defaults"]["signature"]
except werkzeug.exceptions.RequestEntityTooLarge as e:
flash("Whoops, image is too big: " + str(e), "error")
return redirect(url_for("index"))
# check if the post request has the file part
if "img" not in request.files:
@@ -213,9 +292,25 @@ def web_print_img():
flash("Submitted file has no filename !", "error")
return redirect(url_for("index"))
try:
do_cut = bool(request.form["cut"])
except werkzeug.exceptions.BadRequestKeyError:
do_cut = False
try:
process_image = bool(request.form["process"])
except werkzeug.exceptions.BadRequestKeyError:
process_image = False
try:
# Clamp value between 1 and
many = max(1, min(int(request.form["many"]), 20))
except werkzeug.exceptions.BadRequestKeyError:
many = 1
try:
app.logger.debug("Sending the image to the printer.")
web.print_image(file, sign)
web.print_image(file, sign, do_cut, process_image, many)
except RuntimeError as e:
app.logger.error("The image could not be printed because : %s ", str(e))
flash("The image could not be printed because : " + str(e), "error")
@@ -228,6 +323,8 @@ def web_print_img():
# API routes
# The api has the following methods
# api/print/{sms,img,letter,qr,barcode}
# api/camera/picture
# api/queue
# api/auth/{login,logout}
# api/status/{paper,ping,stats}
@@ -235,7 +332,7 @@ def web_print_img():
# If you just call the api route, you get a help back.
@app.route("/api")
@app.route("/api/print")
@limiter.limit("1/second", override_defaults=False)
@limiter.limit("6/minute", override_defaults=False)
def api_index():
"""Returns a how-to for the API"""
app.logger.debug("Loading API")
@@ -260,9 +357,21 @@ def api_print_sms():
"No signature found for this print, using default signature. : %s", str(e)
)
sign = configuration_file["defaults"]["signature"]
try:
do_cut = bool(request.form["cut"])
except werkzeug.exceptions.BadRequestKeyError:
do_cut = False
try:
# Clamp value between 1 and
many = max(1, min(int(request.form["many"]), 20))
except werkzeug.exceptions.BadRequestKeyError:
many = 1
try:
# comment: We try to print the SMS
web.print_sms(txt, sign)
web.print_sms(txt, sign, do_cut, many)
except RuntimeError as e:
return str(e), 500
# end try
@@ -295,16 +404,34 @@ def api_print_image():
app.logger.error("Submitted file has no filename !")
return "Submitted file has no filename !", 400
try:
do_cut = bool(request.form["cut"])
except werkzeug.exceptions.BadRequestKeyError:
do_cut = False
try:
process_image = bool(request.form["process"])
except werkzeug.exceptions.BadRequestKeyError:
process_image = False
try:
# Clamp value between 1 and
many = max(1, min(int(request.form["many"]), 20))
except werkzeug.exceptions.BadRequestKeyError:
many = 1
try:
app.logger.debug("Sending the image to the printer.")
web.print_image(file, sign)
web.print_image(file, sign, do_cut, process_image, many)
except RuntimeError as e:
return str(e), 500
return "OK", 200
# TODO: This might not depend on the Raspberry Pi
@app.route("/api/camera/picture", methods=["GET"])
@limiter.limit("6/minute")
def camera_picture():
"""Returns a picture taken by the camera on a raspberry pi"""
if RASPBERRY_PI_CONNECTED:
@@ -317,33 +444,56 @@ def camera_picture():
@app.route("/api/queue", methods=["GET"])
@limiter.limit("160/minute", override_defaults=True)
def api_queue_status():
"""API endpoint for entire queue"""
return jsonify(web.get_queue_state())
@app.route("/api/worker", methods=["GET"])
@app.route("/api/queue/completed", methods=["GET"])
@limiter.limit("160/minute", override_defaults=True)
def api_queue_completed():
"""API endpoint that returns the finished tasks"""
return jsonify(web.get_queue_completed())
@app.route("/api/workers", methods=["GET"])
@limiter.limit("160/minute", override_defaults=True)
def api_worker_state():
"""API endpoint to get the worker state"""
return jsonify(worker.current_state())
return jsonify([w.current_state() for w in workers])
@app.route("/api/worker/start")
# TODO : Auth
@app.route("/api/workers/start")
@limiter.limit("6/minute")
def api_worker_start():
"""
Enable to worker. This starts to process the print queue.
Start workers. This starts to process the print queue.
"""
worker.start_worker()
return jsonify(worker.current_state())
for w in workers:
w.start_worker()
return jsonify([w.current_state() for w in workers])
@app.route("/api/worker/stop")
# TODO : Auth
@app.route("/api/workers/stop")
@limiter.limit("6/minute")
def api_worker_stop():
"""
Stops the print queue. This stops the processing of the print queue.
Stops workers. This stops the processing of the print queue.
"""
worker.stop_worker()
return jsonify(worker.current_state())
for w in list(workers):
w.stop_worker()
return jsonify([w.current_state() for w in workers])
# TODO : Auth
@app.route("/api/printers")
@limiter.limit("160/minute", override_defaults=True)
def api_printers_info():
"""Returns the current state of every printers"""
return jsonify(printers_pool.printers_info())
## Authentification
@@ -403,4 +553,4 @@ def camera_status():
if __name__ == "__main__":
app.run(debug=True, use_reloader=False, host="0.0.0.0", ssl_context="adhoc")
app.run(use_reloader=False, host="0.0.0.0", ssl_context="adhoc")
+53 -52
View File
@@ -28,7 +28,8 @@ class PrintQueue:
self.app.logger.debug("Created a new PrintQueue")
def __len__(self) -> int:
return len(self._queue)
with self._lock:
return len(self._queue)
def enqueue(self, task):
"""Add task to right of the queue and return position"""
@@ -57,74 +58,73 @@ class PrintQueue:
"""Get current position of task in queue (1-indexed)"""
with self._lock:
if task.task_id in self._completed_tasks:
return None # Task already completed
try:
# Try to get the position of a Task
return None
return self._queue.index(task)
except ValueError as e:
raise e
# end try
def is_empty(self):
"""Check if queue is empty"""
with self._lock:
self.app.logger.debug("Checking if queue is empty")
return len(self._queue) == 0
return not self._queue
def get_queue_state(self):
"""Return current queue state"""
with self._lock:
self.app.logger.debug("Return current queue state")
return [{"task_id": t.task_id, "status": t.status} for t in self._queue]
tasks = list(self._queue)
return [
{
"task_id": task.task_id,
"status": task.status,
"type": str(task.task_type),
"content": task.get_print_data(),
}
for task in tasks
]
def get_queue_completed(self):
"""Return completed queue elements"""
self.app.logger.debug("Return completed queue elements")
return self._completed_tasks
def get_status(self, task_id):
"""Get full status info for a task"""
with self._lock:
if task_id in self._completed_tasks:
return self._completed_tasks[task_id]
if task_id in self._completed_tasks:
return self._completed_tasks[task_id]
# Check in queue if it exists
for index, task in enumerate(self._queue):
if task.task_id == task_id:
# Depending on it's type, we return more info
if task.task_type == TaskType.IMAGE:
return {
"task_id": task_id,
"status": task.status,
"type": task.task_type,
"position": index,
"in_queue": True,
"content": task.content,
"signature": task.signature,
"log": task.log,
}
# Check in queue if it exists
for index, task in enumerate(self._queue):
if task.task_id == task_id:
# Depending on it's type, we return more info
if task.task_type == TaskType.IMAGE:
return {
"task_id": task_id,
"status": task.status,
"type": task.task_type,
"position": index,
"in_queue": True,
"content": task.content,
"signature": task.signature,
}
if task.task_type == TaskType.TEXT:
return {
"task_id": task_id,
"status": task.status,
"type": task.task_type,
"position": index,
"in_queue": True,
"image_path": str(task.image_path),
"signature": task.signature,
"process": str(task.process),
"log": task.log,
}
if task.task_type == TaskType.TEXT:
return {
"task_id": task_id,
"status": task.status,
"type": task.task_type,
"position": index,
"in_queue": True,
"image_path": str(task.image_path),
"signature": task.signature,
"process": str(task.process),
}
return None
if task.task_type == TaskType.CUT:
return {
"task_id": task_id,
"status": task.status,
"type": task.task_type,
"position": index,
"in_queue": True,
}
return None
def mark_completed(self, task_id, task_status):
"""Mark task as completed and remove from queue"""
def mark_completed(self, task_id, task_status, log=None):
"""Record a terminal task status."""
with self._lock:
self._completed_tasks[task_id] = {
"task_id": task_id,
@@ -132,4 +132,5 @@ class PrintQueue:
"position": None,
"in_queue": False,
"completed_at": datetime.now().isoformat(),
"log": log,
}
+547 -187
View File
@@ -1,119 +1,165 @@
"""
This class manages connexion to a Printer
"""
# import brother_ql
from time import sleep
import os.path
import os
from abc import ABC, abstractmethod
from dataclasses import dataclass
import time
from enum import Enum
import uuid
import usb.core
from PIL import Image, ImageEnhance
import numpy as np
from PIL import Image
# Importing the module to manage the connection to the printer.
# Importing the modules needed for each supported printer Type
import escpos.printer
from brother_ql.models import ModelsManager
from brother_ql.labels import LabelsManager, FormFactor
from brother_ql.backends import backend_factory, guess_backend
from brother_ql.raster import BrotherQLRaster
from brother_ql.conversion import convert
from brother_ql.backends.helpers import send
from brother_ql import create_label
# Used for typing
from task import PrintTask
class Printer():
# Image processing functions
from images import process_image, text_to_image
class PrinterType(Enum):
"""
# The connection is based on the ESC/POS library
## Connection to the USB printer
## Making sure the printer is alive
## Making sure it has paper
## Define default print settings
## Print starting message, log time of first print, cut.
## Annonce readyness : return a positive pong message.
What are the capacities of a Printer ?
"""
# Is the printer ready to accept a new print ?
ready = False
EPSON = "epson"
BROTHER = "brother"
def __init__(self, app, device_id, vendor_id):
super().__init__()
# For Brother-QL Printers
@dataclass
class PrinterInfo:
"""
Brother-QL printer information
"""
identifier: str
backend: str
protocol: str
vendor_id: str
product_id: str
serial_number: str
name: str = "Brother QL Printer"
model: str = "QL-570"
status: str = "unknown"
label_type: str = "unknown"
label_size: str = "unknown"
label_width: int = 0
label_height: int = 0
def __getitem__(self, item):
return getattr(self, item)
def __setitem__(self, key, value):
setattr(self, key, value)
class Printer(ABC):
"""
If it outputs printed paper and speaks like a printer, then it must be a printer.
"""
def __init__(self, app, vendor_id, device_id, printer_type: PrinterType):
"""
We initialize a Printer via it's USB connexion, and generate a unique ID
"""
self.id = uuid.uuid4()
self.app = app
self.ready = False
self.printer = None
self.device_id = device_id
self.vendor_id = vendor_id
self.device_id = device_id
self.ready = False
self.printer_type = printer_type
self.used = False
@abstractmethod
def _has_paper(self) -> bool:
"""Check if the printer has papier"""
@abstractmethod
def _state(self) -> bool:
"""Reports the state of the Printer"""
@abstractmethod
def print_task(self, task: PrintTask, data) -> None:
"""Takes a PrintTask and executes it"""
def use_printer(self) -> None:
"""Marks the printer as being used"""
self.used = True
def free_printer(self) -> None:
"""Marks the printer as being not used, it's available."""
self.used = False
class EscPosPrinter(Printer):
"""
Create a new ESC/POS based printer.
"""
def __init__(self, app, vendor_id, device_id, configuration_file):
"""
Create a connexion to a ESC/POS Printer via USB,
Making sure the printer is alive,
Making sure it has paper,
Define default print settings
"""
super().__init__(app, vendor_id, device_id, printer_type=PrinterType.EPSON)
self.printer = None
self.usb_args = {}
self.usb_args["idVendor"] = self.device_id
self.usb_args["idProduct"] = self.vendor_id
self.usb_args["idVendor"] = self.vendor_id
self.usb_args["idProduct"] = self.device_id
self.configuration_file = configuration_file
def check_paper(self) -> bool:
"""
On printers that support it, we check that the printer has paper
"""
self.app.logger.debug("Checking paper status...")
self.printer.open(self.usb_args)
status = self.printer.paper_status()
match status:
case 0:
self.app.logger.error("Printer has no more paper, aborting...")
self.printer.close()
raise RuntimeError("No more paper in the printer")
case 1:
self.app.logger.warning(
"Printer needs paper to be changed very soon ! "
)
self.printer.close()
case 2:
self.app.logger.debug("Printer has paper, good to go")
self.printer.close()
try:
# This also calls open(), which we need to close()
# or else the device will appear as busy.
p = escpos.printer.Usb(
self.vendor_id, self.device_id, 0, profile=configuration_file["profile"]
)
except escpos.exceptions.DeviceNotFoundError as e:
self.app.logger.error(
"The USB device is not plugged in : %s",
str(e),
)
raise e
except Exception as e:
self.app.logger.error("Printer could not be connected : %s ", str(e))
raise e
def init_printer(self):
"""
Check if the printer online ? Is the communication with the printer successfull ?
"""
try:
if p.is_online():
self.app.logger.debug("Printer online !")
except Exception as e:
raise e
# TODO: This could happen directly when creating a new Printer class
if os.getenv("FLASK_DEBUG"):
waiting_elapsed = 3
else:
waiting_elapsed = 10
self.app.logger.debug("Waiting for printer to get online...")
while not self.ready:
try:
# This also calls open(), which we need to close()
# or else the device will appear as busy.
p = escpos.printer.Usb(
self.device_id, self.vendor_id, 0, profile="TM-P80"
)
except RuntimeError as e:
self.app.logger.error(
"The USB device is not plugged in, trying again %s : %s",
waiting_elapsed,
str(e),
)
try:
if p.is_online():
self.ready = True
self.app.logger.debug("Printer online !")
except RuntimeError as e:
self.app.logger.error(
"Error while getting the printer online %s : %s",
waiting_elapsed,
str(e),
)
sleep(1)
waiting_elapsed -= 1
if waiting_elapsed < 1:
self.app.logger.error(
"Printer took more than 30 seconds to get online, aborting..."
)
waiting_elapsed = 1 # Reset the waiting time for the next print.
return False
self.printer_info = PrinterInfo(
identifier=configuration_file["profile"],
backend="pyusb",
model=configuration_file["profile"],
protocol="ESC/POS",
vendor_id=self.vendor_id,
product_id=self.device_id,
serial_number="",
label_type=self.configuration_file["label_type"],
)
# Setting up the printing options.
# TODO : Expose this to the web interface
p.set(
align="center",
align=self.configuration_file["align_text"],
font="a",
bold=False,
underline=0,
@@ -130,15 +176,37 @@ class Printer():
# Beware : if we print every time the printer becomes ready, it means
# we are printing before and after every print !
self.printer = p
self.printer.close() # We close the connexion to the Printer
try:
self._has_paper()
except Exception as e:
raise e
self.ready = True
self.printer.close()
self.check_paper()
return True
def _print_sms(self, msg, signature="", bold=False):
def _has_paper(self):
"""Check if the printer has paper left"""
self.app.logger.debug("Checking paper status...")
self.printer.open(self.usb_args)
status = self.printer.paper_status()
match status:
case 0:
self.app.logger.error("Printer has no more paper, aborting...")
self.printer.close()
raise RuntimeError("No more paper in the printer")
case 1:
self.app.logger.warning(
"Printer needs paper to be changed very soon ! "
)
self.printer.close()
return True
case 2:
self.app.logger.debug("Printer has paper, good to go")
self.printer.close()
return True
def _print_txt(self, msg, signature="", bold=False, do_cut=False):
if not isinstance(msg, str):
self.app.logger.error(
"It is not possible to print a " + str(type(msg)) + ", only strings."
@@ -150,24 +218,25 @@ class Printer():
clean_signature = str(signature)
# Make checks on the size of the message being printed
if len(clean_msg) > 4096:
if len(clean_msg) > int(self.configuration_file["text_max_length"]):
self.app.logger.warning(
"Could not print message of this length: " + str(len(clean_msg))
)
raise RuntimeError(
"Could not print message of this length :"
+ str(len(clean_msg))
+ ", needs to be below 4096 caracters long."
+ ", needs to be below %s caracters long.",
str(self.configuration_file["text_max_length"]),
)
if len(signature) > 256:
if len(signature) > int(self.configuration_file["signature_max_length"]):
self.app.logger.warning(
"Could not print signature of this length: " + str(len(clean_signature))
)
raise RuntimeError(
"Could not print signature of this length :"
+ str(len(clean_signature))
+ ", needs to be below 256 caracters long."
+ ", needs to be below %s caracters long.",
str(self.configuration_file["signature_max_length"]),
)
# Do the actual printing
@@ -178,6 +247,7 @@ class Printer():
self.printer.textln(clean_msg)
if clean_signature:
self.printer.textln(clean_signature)
self.printer.textln()
self.printer.close()
except Exception as e:
self.app.logger.error("Unable to print because : " + str(e))
@@ -185,20 +255,24 @@ class Printer():
"Unable to print a SMS, the printer couldn't do it."
) from e
self.app.logger.info("Printed text")
return True
if do_cut:
self._cut()
def _print_img(self, path, signature="", center=True, process=False):
self.app.logger.info("Printed text")
self.ready = True
def _print_img(self, path, signature="", center=True, process=False, do_cut=False):
clean_signature = str(signature)
if len(signature) > 256:
if len(signature) > int(self.configuration_file["signature_max_length"]):
self.app.logger.warning(
"Could not print signature of this length: " + str(len(clean_signature))
)
raise ValueError(
raise RuntimeError(
"Could not print signature of this length :"
+ str(len(clean_signature))
+ ", needs to be below 256 caracters long."
+ ", needs to be below %s caracters long.",
str(self.configuration_file["signature_max_length"]),
)
if not os.path.isfile(str(path)):
@@ -214,55 +288,59 @@ class Printer():
if process:
try:
self.app.logger.debug("Proccessing the image")
path = _process_image(self, path)
processed_path = process_image(self, path)
except RuntimeError as e:
self.app.logger.error(
"Error while processing the image, aborting print : %s", str(e)
)
raise e
else:
processed_path = path
self.app.logger.warning("Not proccessing the image")
try:
self.printer.open(self.usb_args)
self.printer.image(path, center=center)
self.printer.image(processed_path, center=center)
self.printer.textln(signature)
self.printer.close()
self.app.logger.debug("Printed an image : " + str(path))
self.app.logger.debug("Printed an image : " + str(processed_path))
except Exception as e:
self.app.logger.error(str(e))
raise RuntimeError("Could not print the picture") from e
finally:
try:
os.remove(path)
except OSError as e:
raise e
# finally:
# try:
# os.remove(path)
# os.remove(processed_path)
# self.app.logger.debug("Removed image : " + str(processed_path))
# self.app.logger.debug("Removed image : " + str(path))
# except OSError as e:
# raise e
self.app.logger.debug("Removed image : " + str(path))
try:
self.printer.close()
except Exception as e:
self.app.logger.error("Could not close the printer connexion %s", str(e))
raise RuntimeError("Could not close the printer connexion. ") from e
try:
self.printer.close()
except Exception as e:
self.app.logger.error(
"Could not close the printer connexion %s", str(e)
)
raise RuntimeError("Could not close the printer connexion. ") from e
if do_cut:
self._cut()
self.app.logger.info("Printed a picture")
return True
self.ready = True
def _qr(self, content):
try:
self.printer.open(self.usb_args)
self.printer.qr(content, center=True)
self.printer.textln(content)
self.printer.close()
except RuntimeError as e:
self.printer.close()
self.app.logger.error(str(e))
return False
raise e
self.app.logger.info("Printed a QR")
return True
self.ready = True
def _cut(self):
try:
@@ -275,73 +353,355 @@ class Printer():
raise e
self.app.logger.info("Did a cut")
return True
self.ready = True
def print_task(self, task_type, data):
def _state(self) -> bool:
has_paper = self._has_paper()
is_ready = self.ready
self.app.logger.debug("Has paper : %s ", has_paper)
self.app.logger.debug("Ready : %s ", is_ready)
return is_ready and has_paper # and is_online
def print_task(self, task, data):
"""Execute actual print based on task type"""
match (task_type.value):
case "text":
self._print_sms(data["txt"], signature=data["sign"])
case "image":
self._print_img(
data["img"], signature=data["sign"], process=data["process"]
)
case "cut":
self._cut()
case _:
raise RuntimeError("This task type is not supported")
i_m_ready = self._state()
while not i_m_ready:
self.app.logger.debug(
"Waiting for the printer to become ready, current state %s ",
str(i_m_ready),
)
i_m_ready = self._state()
time.sleep(0.3)
self.app.logger.debug("Checked state to start printing : %s", self._state())
self.ready = False
try:
self.app.logger.debug("Checking task type")
match (task.task_type.value):
case "text":
self._print_txt(
data["txt"], signature=data["sign"], do_cut=data["do_cut"]
)
self.ready = True
case "image":
self._print_img(
data["img"],
signature=data["sign"],
process=data["process"],
do_cut=data["do_cut"],
)
self.ready = True
case "qr":
self._qr(data["txt"])
self.ready = True
case _:
raise RuntimeError("This task type is not supported")
except Exception as e:
self.app.logger.debug("Exception occured while printing %s", str(e))
self.ready = True
raise RuntimeError from e
def _process_image(self, path):
brightness_factor = 1.5 # Used only if image is too dark
brightness_threshold = 100 # Brightness threshold (0–255)
contrast_factor = 0.6 # Less than 1.0 = lower contrast
max_width = 575
max_height = 1000
class BrotherPrinter(Printer):
"""
Manages connexion and capabilities of a BrotherQL Printer
"""
with Image.open(path) as original_img:
# Convert to RGB if needed (JPEG doesn't support alpha)
if original_img.mode in ("RGBA", "P"):
self.app.logger.debug("Converting the image to RGB from RGBA")
original_img = original_img.convert("RGB")
# Resize while maintaining aspect ratio
original_img.thumbnail((max_width, max_height), Image.Resampling.LANCZOS)
self.app.logger.debug("Resized the image")
# # Convert to grayscale for dithering
# dithered_img = original_img.convert("L").convert("1")
# Dithering using default method (Floyd–Steinberg)
# self.app.logger.debug("Dithered the image")
# Compute brightness of original image (grayscale average)
grayscale = original_img.convert("L")
avg_brightness = np.array(grayscale).mean()
self.app.logger.debug(
"Average brightness of the image : " + str(avg_brightness)
def __init__(self, app, vendor_id, device_id, configuration_file):
super().__init__(
app,
vendor_id,
device_id,
printer_type=PrinterType.BROTHER,
)
# Dynamically compute brightness factor if too dark
if avg_brightness < brightness_threshold:
brightness_factor = (
1 + (brightness_threshold - avg_brightness) / brightness_threshold
self.printer = None
self.usb_args = {
"idVendor": self.vendor_id,
"idProduct": self.device_id,
}
self.model_manager = ModelsManager()
# Discover the backend identifier for this specific USB printer.
self.app.logger.debug("Creating backend for Brother")
backend = backend_factory("pyusb")
available_devices = backend["list_available_devices"]()
# Match vendor and product IDs so this instance doesn't accidentally
# use the identifier belonging to the last device in the backend list.
expected_prefix = (f"usb://0x{vendor_id:04x}:0x{device_id:04x}/").lower()
matching_identifiers = []
for device in available_devices:
self.app.logger.debug("Found device: %s", device)
identifier = device.get("identifier", "")
parts = identifier.split("/")
if len(parts) < 4:
self.app.logger.warning(
"Skipping device with invalid identifier format: %s",
identifier,
)
continue
if identifier.lower().startswith(expected_prefix):
matching_identifiers.append(identifier)
if len(matching_identifiers) != 1:
self.app.logger.error(
"Expected one Brother backend device matching %s, found %s",
expected_prefix,
len(matching_identifiers),
)
brightness_factor = min(
max(brightness_factor, 1.1), 2.5
) # Clamp between 1.1 and 2.5
raise RuntimeError(
"Expected one Brother backend device matching %s, found %s" %
expected_prefix,
len(matching_identifiers),
)
# Extract connection details from the identifier for this printer only.
identifier = matching_identifiers[0]
parts = identifier.split("/")
protocol = parts[0]
serial_number = parts[3]
# Find the model that corresponds to this printer's product ID.
try:
model = None
for item in self.model_manager.iter_elements():
if item.product_id == self.device_id:
model = item.identifier
break
if model is None:
raise RuntimeError(
f"No Brother model found for product ID {self.device_id:#06x}"
)
self.app.logger.debug("Matched printer model: %s", model)
except Exception:
self.app.logger.exception(
"Error while finding a model for product ID %s",
self.device_id,
)
raise
self.printer_info = PrinterInfo(
identifier=identifier,
backend="pyusb",
model=model,
protocol=protocol,
vendor_id=vendor_id,
product_id=self.device_id,
serial_number=serial_number,
label_type=configuration_file["label_type"],
# TODO: Implement automatic label type detection.
)
self.app.logger.debug("Created a Brother printer!")
self.ready = True
def _has_paper(self):
raise NotImplementedError("This printer model does not support this.")
def _state(self):
return self.ready
def _print_txt(self, msg, signature="", do_cut=False, align="right",font_size=20):
"""Print text after converting it to an image"""
if signature == "":
self._print_img(text_to_image(msg, align=align,font_size=font_size), do_cut=do_cut)
else:
self._print_img(text_to_image(msg, align="right",font_size=font_size), signature, do_cut=do_cut)
def _print_img(self, data, signature="", process=False, do_cut=False):
"""
Print a raster image via a Brother QL printer
"""
self.app.logger.debug(
"Printing an image %s via Brother printer ( %s )",
data,
self.printer_info.model,
)
if process:
try:
self.app.logger.debug("\t[⚙ %s] Proccessing the image", self.id)
processed_path = process_image(self, data)
except RuntimeError as e:
self.app.logger.error(
"Error while processing the image, aborting print : %s", str(e)
)
raise e
else:
processed_path = data
self.app.logger.warning("Not proccessing the image")
try:
selected_backend = guess_backend(self.printer_info.identifier)
BACKEND_CLASS = backend_factory(selected_backend)["backend_class"]
BACKEND_STRING_DESCR = self.printer_info.identifier
except Exception as e:
self.app.logger.error(
"Couldn't guess the backend to use from the printer string descriptor"
)
raise e
do_cut_before_sign = True if signature != "" and do_cut else False
try:
qlr = BrotherQLRaster(self.printer_info.model)
# Resize the image for the label type
# device_pixel_width = qlr.get_pixel_width()
# im = _resize_image(
# self,
# label_type=self.printer_info.label_type, image_path=processed_path,
# device_pixel_width=device_pixel_width,
# printer_model=qlr.model
# )
im = Image.open(processed_path)
instructions = convert(
qlr=qlr,
images=[im],
label=self.printer_info.label_type,
dither=True,
compress=False,
dpi_600=False,
cut=do_cut_before_sign,
)
return_from_printer = send(
instructions=instructions,
printer_identifier=BACKEND_STRING_DESCR,
backend_identifier="pyusb",
blocking=True,
)
self.app.logger.debug(str(return_from_printer))
match (return_from_printer.get("outcome")):
case ("printed"):
self.app.logger.debug("\t[⚙ %s] Printed image", self.id)
time.sleep(2)
case ("error"):
state = return_from_printer.get("printer_state")
errors = [str(error) for error in state.get("errors") if error]
raise RuntimeError(errors)
case (_):
raise RuntimeError("Unknown print error")
except usb.core.USBError as e:
if "timeout error" in str(e):
self.app.logger.error("USB Timeout Error %s", str(e))
raise e
self.app.logger.error("USB Error : %s", str(e))
raise e
except Exception as e:
raise e
if signature != "":
self.app.logger.debug("Printing signature for the image %s", data)
try:
signature_file = text_to_image(signature)
im = Image.open(signature_file)
qlr = BrotherQLRaster(self.printer_info.model)
# create_label(
# qlr, im, self.printer_info.label_type, cut=False, dither=True
# )
# noinspection PyCallingNonCallable
# be = BACKEND_CLASS(BACKEND_STRING_DESCR)
# be.write(qlr.data)
# be.dispose()
# del be
instructions = convert(
qlr=qlr,
images=[signature_file],
label=self.printer_info.label_type,
dither=True,
compress=False,
dpi_600=False,
cut=do_cut,
)
success = send(
instructions=instructions,
printer_identifier=BACKEND_STRING_DESCR,
backend_identifier="pyusb",
blocking=False,
)
self.app.logger.debug(str(success))
self.app.logger.debug("Printed signature %s", signature)
time.sleep(2)
except Exception as e:
raise e
finally:
try:
os.remove(signature_file)
self.app.logger.debug("Removed image : " + str(signature_file))
except OSError as e:
raise e
self.ready = True
def _qr(self):
# This should not be reached by a print on a BrotherQL
raise NotImplementedError()
def print_task(self, task, data):
"""Execute actual print based on task type"""
i_m_ready = self._state()
while not i_m_ready:
self.app.logger.debug(
f"Image too dark, increasing brightness by a factor of {brightness_factor:.2f}"
"\t[⚙ %s] Waiting for the printer to become ready, current state %s ",
self.id,
str(i_m_ready),
)
enhancer = ImageEnhance.Brightness(original_img)
original_img = enhancer.enhance(brightness_factor)
i_m_ready = self._state()
time.sleep(0.3)
# # Reduce contrast
# contrast_enhancer = ImageEnhance.Contrast(original_img)
# original_img = contrast_enhancer.enhance(contrast_factor)
self.app.logger.debug(
"\t[⚙ %s] Checked state to start printing %s ", self.id, self._state()
)
# Convert to JPEG and save
jpeg_path = os.path.splitext(path)[0] + "_processed.jpg"
original_img.save(jpeg_path, format="JPEG", quality=95, optimize=True)
self.app.logger.debug("Processed and saved image.")
self.ready = False
return jpeg_path
try:
match (task.task_type.value):
case "image":
self._print_img(
data["img"], signature=data["sign"], do_cut=data["do_cut"]
)
case "text":
self._print_txt(
data["txt"], signature=data["sign"], do_cut=data["do_cut"], align=data["align"],font_size=data["font_size"]
)
case _:
raise RuntimeError("This task type is not supported")
except ValueError as ve:
self.app.logger.error(
"\t[⚙ %s] The printer couldn't be found, the printing failed for task %s of type %s , error : %s ",
self.id,
task.task_id,
task.task_type,
str(ve),
)
raise ve
except Exception as e:
raise e
self.app.logger.debug(
"\t[⚙ %s] Finished consuming task %s", self.id, task.task_id
)
self.ready = True
+226
View File
@@ -0,0 +1,226 @@
"""
A collection of Printers.
It has methods to discover printers, and provides an interface for
the methods expected from printers.
"""
from collections.abc import Set
import time
import usb.core
import usb.util
from printer import Printer, EscPosPrinter, BrotherPrinter
class Printers:
"""
Finds and creates a set of Printer that can be used by the Workers to print.
"""
def __init__(self, app, configuration_file, threadlock):
"""
Discovers printers connected to the computer
"""
self.app = app
self.configuration_file = configuration_file
self._lock = threadlock
with self._lock:
self.printers = list(self._discover_printers())
def _discover_printers(self) -> Set[Printer]:
"""
Gets connected USB printer devices using the pyusb library.
We analyse the USB devices, get the ones that match
the printer class ( 7 ) and for Brother and EPSON printers,
try to create a Printer object that can be used by the Worker class
to execute prints.
Returns a set of Printer
"""
self.app.logger.debug("Discovering USB Devices connected to this system")
printers = set()
waiting_time_for_printer = self.configuration_file["printer"]["waiting_time"]
while True:
# Find all connected USB devices
# the find() fnc returns a generator
devices = list(
usb.core.find(find_all=True, custom_match=_FindClass(self.app, 7))
)
if devices:
break
if waiting_time_for_printer <= 0:
self.app.logger.warning(
"No USB devices of class 7 ( printers ) found or pyusb could not access the bus."
)
raise RuntimeError(
"No USB devices of class 7 ( printers ) found or pyusb could not access the bus."
)
self.app.logger.warning(
"No printers found; waiting for a printer to connect..."
)
time.sleep(1)
waiting_time_for_printer -= 1
for dev in devices:
# Attempt to get the manufacturer and product strings
try:
manufacturer = usb.util.get_string(dev, dev.iManufacturer)
except Exception:
manufacturer = "Unknown"
try:
product = usb.util.get_string(dev, dev.iProduct)
except Exception:
product = "Unknown"
self.app.logger.debug(
"Looking at %s %s (%s:%s)",
manufacturer,
product,
hex(dev.idVendor),
hex(dev.idProduct),
)
match (manufacturer):
case "EPSON":
try:
# We create a new EscPosPrinter()
self.app.logger.debug("Trying to create a new EPSON printer")
prid = dev.idProduct
vendir = dev.idVendor
escpos_printer = EscPosPrinter(
app=self.app,
vendor_id=vendir,
device_id=prid,
configuration_file=self.configuration_file["printer"][
"epson"
],
)
except Exception as e:
raise e
# If the object creation is successfull, we add it to the list of Printers
printers.add(escpos_printer)
self.app.logger.debug("Found a %s printer", manufacturer)
case "Brother":
try:
# We create a new BrotherPrinter()
self.app.logger.debug("Trying to create a new BROTHER printer")
brother_printer = BrotherPrinter(
self.app,
dev.idVendor,
dev.idProduct,
configuration_file=self.configuration_file["printer"][
"brother"
],
)
except Exception as e:
self.app.logger.error(
"Could not create a %s printer class with %s:%s",
product,
dev.idVendor,
dev.idProduct,
)
raise e
# If the object creation is successfull, we add it to the list of Printers
printers.add(brother_printer)
self.app.logger.debug(
"Found a %s printer with id %s",
manufacturer,
brother_printer.printer_info.identifier,
)
case _:
self.app.logger.debug(
"Found a printer of unknown manufacturer : %s", manufacturer
)
self.app.logger.debug(
"We are not adding this printer to the printers pool. Ignoring."
)
# end match
self.app.logger.debug("Found %s printers", len(printers))
if len(printers) < 1:
self.app.logger.warning(
"Not printers found ! Please plug in a Printer and restart the program."
)
raise RuntimeError("No printers found")
return printers
def acquire_available_printer(self, start_index=0):
"""Atomically acquire and return an available printer, or None."""
printers = self.printers
if not printers:
self.app.logger.error("No printers available for acquisition")
return None
with self._lock:
# So don't always look at the first printer available if need be
# this allows for a round-robin lookup
for offset in range(len(printers)):
index = (start_index + offset) % len(printers)
printer = printers[index]
if not printer.used:
printer.use_printer()
return index, printer
return None
def printers_info(self):
"""Return the current list of printers"""
printers_info_list = []
for i in self.printers:
printers_info_list.append(
{
"Name": i.printer_type.name,
"Used": i.used,
"Ready": i.ready,
"Info": i.printer_info,
}
)
return printers_info_list
def __len__(self):
return len(self.printers)
class _FindClass:
"""
Use by usb.core to modify the way USB devices are found
Taken from pyUSB documentation on Github
"""
def __init__(self, app, class_):
self._class = class_
self.app = app
def __call__(self, device):
# first, let's check the device
if device.bDeviceClass == self._class:
return True
# ok, transverse all devices to find an
# interface that matches our class
for configuration in device:
# Every device can have one or more configuration,
interface = usb.util.find_descriptor(
configuration, bInterfaceClass=self._class
)
# each config can have several interfaces
if interface is not None:
return True
return False
+58 -31
View File
@@ -10,12 +10,12 @@ import io # To check if we are on a Raspberry Pi
import subprocess
import os
from time import sleep, gmtime, strftime
from flask_socketio import SocketIO
from gpiozero import Button, LED, DigitalOutputDevice
from PIL import Image
from task import TextTask, ImageTask, CutTask
from task import PrintTask
class Raspberry():
class Raspberry:
"""
This class will manage three things :
- Connecting to a USB webcam
@@ -23,29 +23,17 @@ class Raspberry():
- Activating a flash ( or light )
- Flash an indicator light
# pylint: disable=too-many-instance-attributes
# dede
"""
def __init__(
self,
print_queue,
app,
socketio,
button_gpio_port_number,
indicator_gpio_port_number,
flash_gpio_port_number,
is_flash_present,
):
def __init__(self, print_queue, app, configuration_file):
self.print_queue = print_queue
self.socketio = socketio
self.app = app
self.flash_gpio = flash_gpio_port_number
self.is_flash_present = is_flash_present
self.button_gpio = button_gpio_port_number
self.led_gpio = indicator_gpio_port_number
self.configuration_file = configuration_file
self.image_path = self.app.config["UPLOAD_FOLDER"] + "/image.jpg"
def is_raspberry_pi(self, raise_on_errors=False):
def is_raspberry_pi(self):
"""
Checking if we are on a Raspberry Pi by checking
information on the /proc/cpuinfo file
@@ -72,8 +60,11 @@ class Raspberry():
return False
if not found:
self.app.logger.error(
"Couldn't get sufficient hardware information from /proc/cpuinfo, Unable to determine if we are on a Raspberry Pi."
self.app.logger.warning(
"Couldn't get sufficient hardware information from /proc/cpuinfo"
)
self.app.logger.warning(
"Unable to determine if we are on a Raspberry Pi."
)
return False
except IOError:
@@ -83,28 +74,41 @@ class Raspberry():
self.app.logger.debug("It seems we are on a Raspberry Pi")
try:
self.initialise_gpio()
self._initialise_gpio()
except Exception as e:
self.app.logger.debug("Could not init GPIO : " + str(e))
raise e
return True
def initialise_gpio(self):
def _initialise_gpio(self):
"""
Set GPIO ports from configuration and activate them
to show the user it's working.
"""
self.app.logger.debug("Initializing GPIO")
self.led = LED(self.led_gpio)
self.led = LED(self.configuration_file["rpi"]["indicator_gpio_port_number"])
self.app.logger.debug("Activated indicator LED")
self.indicator_countdown(iters=3)
self.button = Button(self.button_gpio, pull_up=True, bounce_time=0.1)
self.button = Button(
self.configuration_file["rpi"]["button_gpio_port_number"],
pull_up=True,
bounce_time=0.1,
)
self.button.when_pressed = self.on_button_pressed
self.app.logger.debug("Activated button")
# The "flash" is a relay-controlled device ( light bulb for example )
self.flash = DigitalOutputDevice(self.flash_gpio)
self.flash = DigitalOutputDevice(
self.configuration_file["rpi"]["flash_gpio_port_number"]
)
self.flash_toggle()
self.app.logger.debug("Activated flash")
def indicator_countdown(self, iters=10, multi=10):
"""
Activates the LED faster and faster to show a countdown
"""
for i in range(iters, 0, -1):
self.led.on()
sleep(i / multi)
@@ -112,7 +116,10 @@ class Raspberry():
sleep(i / multi)
def indicator_led(self, timing=0.2, l=5):
for i in range(l):
"""
Turns on the indicator LED for a certain period of time
"""
for _ in range(l):
self.app.logger.debug("LED turned on")
self.led.on()
sleep(timing)
@@ -121,6 +128,9 @@ class Raspberry():
sleep(timing)
def flash_toggle(self):
"""
Flashes the flash
"""
self.app.logger.debug("Flash turned on")
self.flash.on()
sleep(0.3)
@@ -128,6 +138,9 @@ class Raspberry():
self.app.logger.debug("Flash turned off")
def take_picture(self):
"""
Takes a picture via the USB webcam
"""
# Validate if the image path is valid
if not os.path.isdir(os.path.dirname(self.image_path)):
self.app.logger.error(
@@ -173,6 +186,9 @@ class Raspberry():
position="bottom_right",
margin=10,
):
"""
Takes an image and overlays it with a another picture.
"""
try:
image = Image.open(image_path).convert("RGBA")
logo = Image.open(logo_path).convert("RGBA")
@@ -199,7 +215,9 @@ class Raspberry():
y = image.height - logo.height - margin
else:
raise ValueError(
"Invalid position. Choose from 'bottom_right', 'top_left', 'top_right', or 'bottom_left'."
"Invalid position."
+ "Choose from 'bottom_right', 'top_left', "
+ " 'top_right', or 'bottom_left'."
)
# Composite the logo onto the image
@@ -217,6 +235,9 @@ class Raspberry():
return True
def crop_to_square(self, image_path, output_path=None):
"""
Crop an image so that it becomes a square
"""
try:
image = Image.open(image_path)
width, height = image.size
@@ -244,6 +265,10 @@ class Raspberry():
return True
def on_button_pressed(self):
"""
When a button press is detected, a picture is taken from the webcam
and added to the print queue.
"""
self.app.logger.debug("Button has been pressed")
self.led.on()
self.app.logger.debug("Counting down")
@@ -263,8 +288,10 @@ class Raspberry():
self.app.logger.debug("Printing picture")
self.led.on()
self.crop_to_square(self.image_path)
self.print_queue.enqueue(ImageTask(self.image_path,signature="",process=True))
self.print_queue.enqueue(TextTask(content="Imprimé par LittlePrynter", signature=""))
self.print_queue.enqueue(ImageTask(self.image_path, signature="", process=True))
self.print_queue.enqueue(
TextTask(content="Imprimé par LittlePrynter", signature="")
)
time = strftime("%Y-%m-%d %H:%M", gmtime())
self.print_queue.enqueue(TextTask(content=time, signature=""))
self.print_queue.enqueue(CutTask())
+7871
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
{"version":3,"sources":["../../scss/_banner.scss","../../scss/layout/_containers.scss","bootstrap-grid.css","../../scss/layout/_breakpoints.scss","../../scss/_config.scss","../../scss/layout/_grid.scss","../../scss/mixins/_grid.scss","../../scss/utilities/_api.scss","../../scss/mixins/_utilities.scss","../../scss/bootstrap-grid.scss"],"names":[],"mappings":"AAEA;;;;GAAA;ACcA;EAGI;;;;;;;IAVF,qBAAA;IACA,gBAAA;IACA,WAAA;IACA,8CAAA;IACA,mBAAA;ECKA;EC6GE;IF5FI;MACE,gBGyHa;IFvInB;EACF;ECwGE;IF5FI;MACE,gBGyHa;IFlInB;EACF;ECmGE;IF5FI;MACE,gBGyHa;IF7HnB;EACF;EC8FE;IF5FI;MACE,iBGyHa;IFxHnB;EACF;ECyFE;IF5FI;MACE,iBGyHa;IFnHnB;EACF;AACF;AGxCA;EAEI;ICMF,qBAAA;IACA,gBAAA;IACA,aAAA;IACA,eAAA;IACA,0CAAA;EJoCA;EG3CI;ICWJ,sBAAA;IAIA,cAAA;IACA,WAAA;IACA,eAAA;EJgCA;EIgBI;IACE,WAAA;EJdN;EIiBI;IApCJ,cAAA;IACA,WAAA;EJsBA;EIPA;IACE,cAAA;IACA,2EAAA;EJSF;EIXA;IACE,cAAA;IACA,2EAAA;EJaF;EIfA;IACE,cAAA;IACA,2EAAA;EJiBF;EInBA;IACE,cAAA;IACA,2EAAA;EJqBF;EIvBA;IACE,cAAA;IACA,2EAAA;EJyBF;EI3BA;IACE,cAAA;IACA,2EAAA;EJ6BF;EICI;IAhDJ,cAAA;IACA,WAAA;EJkDA;EIGQ;IAjEN,cAAA;IAEA,8CAAA;EJgEF;EIGU;IArER,cAAA;IAEA,sFAAA;EJoEF;EILQ;IAjEN,cAAA;IAEA,8CAAA;EJwEF;EILU;IArER,cAAA;IAEA,sFAAA;EJ4EF;EIbQ;IAjEN,cAAA;IAEA,sCAAA;EJgFF;EIbU;IArER,cAAA;IAEA,8EAAA;EJoFF;EIrBQ;IAjEN,cAA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AAA;IJwdE;II5ZQ;MA5DV,sDAAA;IJ2dE;II5ZU;MA/DZ,0EAAA;IJ8dE;IIlaQ;MA5DV,6CAAA;IJieE;IIlaU;MA/DZ,iEAAA;IJoeE;IIxaQ;MA5DV,sDAAA;IJueE;IIxaU;MA/DZ,0EAAA;IJ0eE;II9aQ;MA5DV,sDAAA;IJ6eE;II9aU;MA/DZ,0EAAA;IJgfE;IIpbQ;MA5DV,8CAAA;IJmfE;IIpbU;MA/DZ,kEAAA;IJsfE;II1bQ;MA5DV,sDAAA;IJyfE;II1bU;MA/DZ,0EAAA;IJ4fE;IIhcQ;MA5DV,sDAAA;IJ+fE;IIhcU;MA/DZ,0EAAA;IJkgBE;IIvbI;;MAGE,kBAAA;IJwbN;IIrbI;;MAEE,gBAAA;IJubN;II/bI;;MAGE,sBAAA;IJgcN;II7bI;;MAEE,sBAAA;IJ+bN;IIvcI;;MAGE,uBAAA;IJwcN;IIrcI;;MAEE,uBAAA;IJucN;II/cI;;MAGE,qBAAA;IJgdN;II7cI;;MAEE,qBAAA;IJ+cN;IIvdI;;MAGE,sBAAA;IJwdN;IIrdI;;MAEE,sBAAA;IJudN;II/dI;;MAGE,mBAAA;IJgeN;II7dI;;MAEE,mBAAA;IJ+dN;IIveI;;MAGE,sBAAA;IJweN;IIreILine truncated
+7
View File
@@ -0,0 +1,7 @@
/*!
* Bootstrap Grid v6.0.0-alpha.2 (https://getbootstrap.com/)
* Copyright 2011-2026 The Bootstrap Authors
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
@layer layout{.container,.container-fluid,.\32 xl\:container,.xl\:container,.lg\:container,.md\:container,.sm\:container{--bs-gutter-x:1.5rem;--bs-gutter-y:0;width:100%;padding-inline:calc(var(--bs-gutter-x) * .5);margin-inline:auto}@media (width>=576px){.sm\:container,.container{max-width:540px}}@media (width>=768px){.md\:container,.sm\:container,.container{max-width:720px}}@media (width>=1024px){.lg\:container,.md\:container,.sm\:container,.container{max-width:960px}}@media (width>=1280px){.xl\:container,.lg\:container,.md\:container,.sm\:container,.container{max-width:1200px}}@media (width>=1536px){.\32 xl\:container,.xl\:container,.lg\:container,.md\:container,.sm\:container,.container{max-width:1440px}}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;gap:var(--bs-gutter-y) var(--bs-gutter-x);flex-wrap:wrap;display:flex}.row>*{box-sizing:border-box;flex-shrink:0;width:100%;max-width:100%}.col{flex:1 0 0}.row-cols-auto>*{flex:none;width:auto}.row-cols-1>*{width:calc((100% + var(--bs-gutter-x,0px)) / 1 - var(--bs-gutter-x,0px));flex:none}.row-cols-2>*{width:calc((100% + var(--bs-gutter-x,0px)) / 2 - var(--bs-gutter-x,0px));flex:none}.row-cols-3>*{width:calc((100% + var(--bs-gutter-x,0px)) / 3 - var(--bs-gutter-x,0px));flex:none}.row-cols-4>*{width:calc((100% + var(--bs-gutter-x,0px)) / 4 - var(--bs-gutter-x,0px));flex:none}.row-cols-5>*{width:calc((100% + var(--bs-gutter-x,0px)) / 5 - var(--bs-gutter-x,0px));flex:none}.row-cols-6>*{width:calc((100% + var(--bs-gutter-x,0px)) / 6 - var(--bs-gutter-x,0px));flex:none}.col-auto{flex:none;width:auto}.col-1{flex:none;width:8.33333%}:where(.row)>.col-1{width:calc((100% + var(--bs-gutter-x,0px)) * .0833333 - var(--bs-gutter-x,0px));flex:none}.col-2{flex:none;width:16.6667%}:where(.row)>.col-2{width:calc((100% + var(--bs-gutter-x,0px)) * .166667 - var(--bs-gutter-x,0px));flex:none}.col-3{flex:none;width:25%}:where(.row)>.col-3{width:calc((100% + var(--bs-gutter-x,0px)) * .25 - var(--bs-gutter-x,0px));flex:none}.col-4{flex:none;width:33.3333%}:where(.row)>.col-4{width:calc((100% + var(--bs-gutter-x,0px)) * .333333 - var(--bs-gutter-x,0px));flex:none}.col-5{flex:none;width:41.6667%}:where(.row)>.col-5{width:calc((100% + var(--bs-gutter-x,0px)) * .416667 - var(--bs-gutter-x,0px));flex:none}.col-6{flex:none;width:50%}:where(.row)>.col-6{width:calc((100% + var(--bs-gutter-x,0px)) * .5 - var(--bs-gutter-x,0px));flex:none}.col-7{flex:none;width:58.3333%}:where(.row)>.col-7{width:calc((100% + var(--bs-gutter-x,0px)) * .583333 - var(--bs-gutter-x,0px));flex:none}.col-8{flex:none;width:66.6667%}:where(.row)>.col-8{width:calc((100% + var(--bs-gutter-x,0px)) * .666667 - var(--bs-gutter-x,0px));flex:none}.col-9{flex:none;width:75%}:where(.row)>.col-9{width:calc((100% + var(--bs-gutter-x,0px)) * .75 - var(--bs-gutter-x,0px));flex:none}.col-10{flex:none;width:83.3333%}:where(.row)>.col-10{width:calc((100% + var(--bs-gutter-x,0px)) * .833333 - var(--bs-gutter-x,0px));flex:none}.col-11{flex:none;width:91.6667%}:where(.row)>.col-11{width:calc((100% + var(--bs-gutter-x,0px)) * .916667 - var(--bs-gutter-x,0px));flex:none}.col-12{flex:none;width:100%}:where(.row)>.col-12{width:calc((100% + var(--bs-gutter-x,0px)) * 1 - var(--bs-gutter-x,0px));flex:none}.offset-1{margin-inline-start:8.33333%}:where(.row)>.offset-1{margin-inline-start:calc((100% + var(--bs-gutter-x,0px)) * .0833333)}.offset-2{margin-inline-start:16.6667%}:where(.row)>.offset-2{margin-inline-start:calc((100% + var(--bs-gutter-x,0px)) * .166667)}.offset-3{margin-inline-start:25%}:where(.row)>.offset-3{margin-inline-start:calc((100% + var(--bs-gutter-x,0px)) * .25)}.offset-4{margin-inline-start:33.3333%}:where(.row)>.offset-4{margin-inline-start:calc((100% + var(--bs-gutter-x,0px)) * .333333)}.offset-5{margin-inline-start:41.6667%}:where(.row)>.offset-5{margin-inline-start:calc((100% + var(--bs-gutter-x,0px)) * .416667)}.offset-6{margin-inline-start:50%}:where(.row)>.offset-6{margin-inline-start:calc((100% + var(--bs-gutter-x,0px)) * .5)}.offset-7{margin-inline-start:58.3333%}:where(.row)>.offset-7{margin-inline-start:calc((100% + var(--bs-gutter-x,0px)) * .583333)}.offset-8{margin-inline-start:66.6667%}:where(.row)>.offset-8{margin-inline-start:calc((100% + var(--bs-gutter-x,0px)) * .666667)}.offset-9{margin-inline-start:75%}:where(.row)>.offset-9{margin-inline-start:calc((100% + var(--bs-gutter-x,0px)) * .75)}.offset-10{margin-inline-start:83.3333%}:where(.row)>.offset-10{margin-inline-start:calc((100% + var(--bs-gutter-x,0px)) * .833333)}.offset-11{margin-inline-start:91.6667%}:where(.row)>.offset-11{margin-inline-start:calc((100% + var(--bs-gutter-x,0px)) * .916667)}.g-0,.gx-0{--bs-gutter-x:0px}.g-0,.gy-0{--bs-gutter-y:0}.g-1,.gx-1{--bs-gutter-x:.25rem}.g-1,.gy-1{--bs-gutter-y:.25rem}.g-2,.gx-2{--bs-gutter-x:.375rem}.g-2,.gy-2{--bs-gutter-y:.375rem}.g-3,.gx-3{--bs-gutter-x:.5rem}.g-3,.gy-3{--bs-gutter-y:.5rem}.g-4,.gx-4{--bs-gutter-x:.75rem}.g-4,.gy-4{--bs-gutter-y:.75rem}.g-5,.gx-5{--bs-gutter-x:1rem}.g-5,.gy-5{--bs-gutter-yLine truncated
/*# sourceMappingURL=bootstrap-grid.min.css.map */
@@ -0,0 +1 @@
{"version":3,"sourceRoot":null,"mappings":";;;;;AEgBA,cAGI,2NC4GA,sBD5FI,2CC4FJ,sBD5FI,0DC4FJ,uBD5FI,yEC4FJ,uBD5FI,yFC4FJ,uBD5FI,4GG7BJ,gHAGE,qECiEA,gBAIA,sCApBJ,iGAAA,iGAAA,iGAAA,iGAAA,iGAAA,iGAgCI,+BAMI,gCAIE,8GAJF,gCAIE,6GAJF,2BAIE,yGAJF,gCAIE,6GAJF,gCAIE,6GAJF,2BAIE,wGAJF,gCAIE,6GAJF,gCAIE,6GAJF,2BAIE,yGAJF,iCAIE,8GAJF,iCAIE,8GAJF,6BAIE,wGASA,uCAGE,4FAHF,uCAGE,2FAHF,kCAGE,uFAHF,uCAGE,2FAHF,uCAGE,2FAHF,kCAGE,sFAHF,uCAGE,2FAH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,2BAAA,4BAAA,yBAAA,6BAAA,4BAAA,0BAAA,4BAAA,qBAAA,0BAAA,2BAAA,yBAAA,0BAAA,wBAAA,2BAAA,0BAAA,2BAAA,wBAAA,4BAAA,2BAAA,yBAAA,2BAAA,2BAAA,gCAAA,iCAAA,+BAAA,gCAAA,8BAAA,iCAAA,gCAAA,iCAAA,8BAAA,kCAAA,iCAAA,+BAAA,iCAAA,0BAAA,+BAAA,gCAAA,8BAAA,+BAAA,6BAAA,gCAAA,+BAAA,gCAAA,6BAAA,iCAAA,gCAAA,8BAAA,iCAAA,gCAAA,gCAAA,yBAAA,8BAAA,+BAAA,6BAAA,8BAAA,4BAAA,+BAAA,8BAAA,+BAAA,4BAAA,gCAAA,+BAAA,6BAAA,+BAAA,4BAAA,iCAAA,kCLine truncated
+863
View File
@@ -0,0 +1,863 @@
/*!
* Bootstrap Reboot v6.0.0-alpha.2 (https://getbootstrap.com/)
* Copyright 2011-2026 The Bootstrap Authors
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
:root,
:host {
--bs-blue-025: color-mix(in oklch, var(--bs-white) 94%, oklch(60% 0.24 240deg));
--bs-blue-050: color-mix(in oklch, var(--bs-white) 90%, oklch(60% 0.24 240deg));
--bs-blue-100: color-mix(in oklch, var(--bs-white) 80%, oklch(60% 0.24 240deg));
--bs-blue-200: color-mix(in oklch, var(--bs-white) 60%, oklch(60% 0.24 240deg));
--bs-blue-300: color-mix(in oklch, var(--bs-white) 40%, oklch(60% 0.24 240deg));
--bs-blue-400: color-mix(in oklch, var(--bs-white) 20%, oklch(60% 0.24 240deg));
--bs-blue-500: oklch(60% 0.24 240deg);
--bs-blue-600: color-mix(in oklch, var(--bs-black) 16%, oklch(60% 0.24 240deg));
--bs-blue-700: color-mix(in oklch, var(--bs-black) 32%, oklch(60% 0.24 240deg));
--bs-blue-800: color-mix(in oklch, var(--bs-black) 48%, oklch(60% 0.24 240deg));
--bs-blue-900: color-mix(in oklch, var(--bs-black) 64%, oklch(60% 0.24 240deg));
--bs-blue-950: color-mix(in oklch, var(--bs-black) 70%, oklch(60% 0.24 240deg));
--bs-blue-975: color-mix(in oklch, var(--bs-black) 76%, oklch(60% 0.24 240deg));
--bs-indigo-025: color-mix(in oklch, var(--bs-white) 94%, oklch(56% 0.26 288deg));
--bs-indigo-050: color-mix(in oklch, var(--bs-white) 90%, oklch(56% 0.26 288deg));
--bs-indigo-100: color-mix(in oklch, var(--bs-white) 80%, oklch(56% 0.26 288deg));
--bs-indigo-200: color-mix(in oklch, var(--bs-white) 60%, oklch(56% 0.26 288deg));
--bs-indigo-300: color-mix(in oklch, var(--bs-white) 40%, oklch(56% 0.26 288deg));
--bs-indigo-400: color-mix(in oklch, var(--bs-white) 20%, oklch(56% 0.26 288deg));
--bs-indigo-500: oklch(56% 0.26 288deg);
--bs-indigo-600: color-mix(in oklch, var(--bs-black) 16%, oklch(56% 0.26 288deg));
--bs-indigo-700: color-mix(in oklch, var(--bs-black) 32%, oklch(56% 0.26 288deg));
--bs-indigo-800: color-mix(in oklch, var(--bs-black) 48%, oklch(56% 0.26 288deg));
--bs-indigo-900: color-mix(in oklch, var(--bs-black) 64%, oklch(56% 0.26 288deg));
--bs-indigo-950: color-mix(in oklch, var(--bs-black) 70%, oklch(56% 0.26 288deg));
--bs-indigo-975: color-mix(in oklch, var(--bs-black) 76%, oklch(56% 0.26 288deg));
--bs-violet-025: color-mix(in oklch, var(--bs-white) 94%, oklch(56% 0.24 300deg));
--bs-violet-050: color-mix(in oklch, var(--bs-white) 90%, oklch(56% 0.24 300deg));
--bs-violet-100: color-mix(in oklch, var(--bs-white) 80%, oklch(56% 0.24 300deg));
--bs-violet-200: color-mix(in oklch, var(--bs-white) 60%, oklch(56% 0.24 300deg));
--bs-violet-300: color-mix(in oklch, var(--bs-white) 40%, oklch(56% 0.24 300deg));
--bs-violet-400: color-mix(in oklch, var(--bs-white) 20%, oklch(56% 0.24 300deg));
--bs-violet-500: oklch(56% 0.24 300deg);
--bs-violet-600: color-mix(in oklch, var(--bs-black) 16%, oklch(56% 0.24 300deg));
--bs-violet-700: color-mix(in oklch, var(--bs-black) 32%, oklch(56% 0.24 300deg));
--bs-violet-800: color-mix(in oklch, var(--bs-black) 48%, oklch(56% 0.24 300deg));
--bs-violet-900: color-mix(in oklch, var(--bs-black) 64%, oklch(56% 0.24 300deg));
--bs-violet-950: color-mix(in oklch, var(--bs-black) 70%, oklch(56% 0.24 300deg));
--bs-violet-975: color-mix(in oklch, var(--bs-black) 76%, oklch(56% 0.24 300deg));
--bs-purple-025: color-mix(in oklch, var(--bs-white) 94%, oklch(56% 0.24 320deg));
--bs-purple-050: color-mix(in oklch, var(--bs-white) 90%, oklch(56% 0.24 320deg));
--bs-purple-100: color-mix(in oklch, var(--bs-white) 80%, oklch(56% 0.24 320deg));
--bs-purple-200: color-mix(in oklch, var(--bs-white) 60%, oklch(56% 0.24 320deg));
--bs-purple-300: color-mix(in oklch, var(--bs-white) 40%, oklch(56% 0.24 320deg));
--bs-purple-400: color-mix(in oklch, var(--bs-white) 20%, oklch(56% 0.24 320deg));
--bs-purple-500: oklch(56% 0.24 320deg);
--bs-purple-600: color-mix(in oklch, var(--bs-black) 16%, oklch(56% 0.24 320deg));
--bs-purple-700: color-mix(in oklch, var(--bs-black) 32%, oklch(56% 0.24 320deg));
--bs-purple-800: color-mix(in oklch, var(--bs-black) 48%, oklch(56% 0.24 320deg));
--bs-purple-900: color-mix(in oklch, var(--bs-black) 64%, oklch(56% 0.24 320deg));
--bs-purple-950: color-mix(in oklch, var(--bs-black) 70%, oklch(56% 0.24 320deg));
--bs-purple-975: color-mix(in oklch, var(--bs-black) 76%, oklch(56% 0.24 320deg));
--bs-pink-025: color-mix(in oklch, var(--bs-white) 94%, oklch(60% 0.22 4deg));
--bs-pink-050: color-mix(in oklch, var(--bs-white) 90%, oklch(60% 0.22 4deg));
--bs-pink-100: color-mix(in oklch, var(--bs-white) 80%, oklch(60% 0.22 4deg));
--bs-pink-200: color-mix(in oklch, var(--bs-white) 60%, oklch(60% 0.22 4deg));
--bs-pink-300: color-mix(in oklch, var(--bs-white) 40%, oklch(60% 0.22 4deg));
--bs-pink-400: color-mix(in oklch, var(--bs-white) 20%, oklch(60% 0.22 4deg));
--bs-pink-500: oklch(60% 0.22 4deg);
--bs-pink-600: color-mix(in oklch, var(--bs-black) 16%, oklch(60% 0.22 4deg));
--bs-pink-700: color-mix(in oklch, var(--bs-black) 32%, oklch(60% 0.22 4deg));
--bs-pink-800: color-mix(in oklch, var(--bs-black) 48%, oklch(60% 0.22 4deg));
--bs-pink-900: color-mix(in oklch, var(--bs-black) 64%, oklch(60% 0.22 4deg));
--bs-pink-950: color-mix(in oklch, var(--bs-black) 70%, oklch(60% 0.22 4deg));
--bs-pink-975: color-mix(in oklch, var(--bs-black) 76%, oklch(60% 0.22 4deg));
--bs-red-025: color-mix(in oklch, var(--bs-white) 94%, oklch(60% 0.22 20deg));
--bs-red-050: color-mix(in oklch, var(--bs-white) 90%, oklch(60% 0.22 20deg));
--bs-red-100: color-mix(in oklch, var(--bs-white) 80%, oklch(60% 0.22 20deg));
--bs-red-200: color-mix(in oklch, var(--bs-white) 60%, oklch(60% 0.22 20deg));
--bs-red-300: color-mix(in oklch, var(--bs-white) 40%, oklch(60% 0.22 20deg));
--bs-red-400: color-mix(in oklch, var(--bs-white) 20%, oklch(60% 0.22 20deg));
--bs-red-500: oklch(60% 0.22 20deg);
--bs-red-600: color-mix(in oklch, var(--bs-black) 16%, oklch(60% 0.22 20deg));
--bs-red-700: color-mix(in oklch, var(--bs-black) 32%, oklch(60% 0.22 20deg));
--bs-red-800: color-mix(in oklch, var(--bs-black) 48%, oklch(60% 0.22 20deg));
--bs-red-900: color-mix(in oklch, var(--bs-black) 64%, oklch(60% 0.22 20deg));
--bs-red-950: color-mix(in oklch, var(--bs-black) 70%, oklch(60% 0.22 20deg));
--bs-red-975: color-mix(in oklch, var(--bs-black) 76%, oklch(60% 0.22 20deg));
--bs-orange-025: color-mix(in oklch, var(--bs-white) 94%, oklch(70% 0.22 52deg));
--bs-orange-050: color-mix(in oklch, var(--bs-white) 90%, oklch(70% 0.22 52deg));
--bs-orange-100: color-mix(in oklch, var(--bs-white) 80%, oklch(70% 0.22 52deg));
--bs-orange-200: color-mix(in oklch, var(--bs-white) 60%, oklch(70% 0.22 52deg));
--bs-orange-300: color-mix(in oklch, var(--bs-white) 40%, oklch(70% 0.22 52deg));
--bs-orange-400: color-mix(in oklch, var(--bs-white) 20%, oklch(70% 0.22 52deg));
--bs-orange-500: oklch(70% 0.22 52deg);
--bs-orange-600: color-mix(in oklch, var(--bs-black) 16%, oklch(70% 0.22 52deg));
--bs-orange-700: color-mix(in oklch, var(--bs-black) 32%, oklch(70% 0.22 52deg));
--bs-orange-800: color-mix(in oklch, var(--bs-black) 48%, oklch(70% 0.22 52deg));
--bs-orange-900: color-mix(in oklch, var(--bs-black) 64%, oklch(70% 0.22 52deg));
--bs-orange-950: color-mix(in oklch, var(--bs-black) 70%, oklch(70% 0.22 52deg));
--bs-orange-975: color-mix(in oklch, var(--bs-black) 76%, oklch(70% 0.22 52deg));
--bs-amber-025: color-mix(in oklch, var(--bs-white) 94%, oklch(79% 0.2 78deg));
--bs-amber-050: color-mix(in oklch, var(--bs-white) 90%, oklch(79% 0.2 78deg));
--bs-amber-100: color-mix(in oklch, var(--bs-white) 80%, oklch(79% 0.2 78deg));
--bs-amber-200: color-mix(in oklch, var(--bs-white) 60%, oklch(79% 0.2 78deg));
--bs-amber-300: color-mix(in oklch, var(--bs-white) 40%, oklch(79% 0.2 78deg));
--bs-amber-400: color-mix(in oklch, var(--bs-white) 20%, oklch(79% 0.2 78deg));
--bs-amber-500: oklch(79% 0.2 78deg);
--bs-amber-600: color-mix(in oklch, var(--bs-black) 16%, oklch(79% 0.2 78deg));
--bs-amber-700: color-mix(in oklch, var(--bs-black) 32%, oklch(79% 0.2 78deg));
--bs-amber-800: color-mix(in oklch, var(--bs-black) 48%, oklch(79% 0.2 78deg));
--bs-amber-900: color-mix(in oklch, var(--bs-black) 64%, oklch(79% 0.2 78deg));
--bs-amber-950: color-mix(in oklch, var(--bs-black) 70%, oklch(79% 0.2 78deg));
--bs-amber-975: color-mix(in oklch, var(--bs-black) 76%, oklch(79% 0.2 78deg));
--bs-yellow-025: color-mix(in oklch, var(--bs-white) 94%, oklch(88% 0.24 88deg));
--bs-yellow-050: color-mix(in oklch, var(--bs-white) 90%, oklch(88% 0.24 88deg));
--bs-yellow-100: color-mix(in oklch, var(--bs-white) 80%, oklch(88% 0.24 88deg));
--bs-yellow-200: color-mix(in oklch, var(--bs-white) 60%, oklch(88% 0.24 88deg));
--bs-yellow-300: color-mix(in oklch, var(--bs-white) 40%, oklch(88% 0.24 88deg));
--bs-yellow-400: color-mix(in oklch, var(--bs-white) 20%, oklch(88% 0.24 88deg));
--bs-yellow-500: oklch(88% 0.24 88deg);
--bs-yellow-600: color-mix(in oklch, var(--bs-black) 16%, oklch(88% 0.24 88deg));
--bs-yellow-700: color-mix(in oklch, var(--bs-black) 32%, oklch(88% 0.24 88deg));
--bs-yellow-800: color-mix(in oklch, var(--bs-black) 48%, oklch(88% 0.24 88deg));
--bs-yellow-900: color-mix(in oklch, var(--bs-black) 64%, oklch(88% 0.24 88deg));
--bs-yellow-950: color-mix(in oklch, var(--bs-black) 70%, oklch(88% 0.24 88deg));
--bs-yellow-975: color-mix(in oklch, var(--bs-black) 76%, oklch(88% 0.24 88deg));
--bs-lime-025: color-mix(in oklch, var(--bs-white) 94%, oklch(65% 0.24 135deg));
--bs-lime-050: color-mix(in oklch, var(--bs-white) 90%, oklch(65% 0.24 135deg));
--bs-lime-100: color-mix(in oklch, var(--bs-white) 80%, oklch(65% 0.24 135deg));
--bs-lime-200: color-mix(in oklch, var(--bs-white) 60%, oklch(65% 0.24 135deg));
--bs-lime-300: color-mix(in oklch, var(--bs-white) 40%, oklch(65% 0.24 135deg));
--bs-lime-400: color-mix(in oklch, var(--bs-white) 20%, oklch(65% 0.24 135deg));
--bs-lime-500: oklch(65% 0.24 135deg);
--bs-lime-600: color-mix(in oklch, var(--bs-black) 16%, oklch(65% 0.24 135deg));
--bs-lime-700: color-mix(in oklch, var(--bs-black) 32%, oklch(65% 0.24 135deg));
--bs-lime-800: color-mix(in oklch, var(--bs-black) 48%, oklch(65% 0.24 135deg));
--bs-lime-900: color-mix(in oklch, var(--bs-black) 64%, oklch(65% 0.24 135deg));
--bs-lime-950: color-mix(in oklch, var(--bs-black) 70%, oklch(65% 0.24 135deg));
--bs-lime-975: color-mix(in oklch, var(--bs-black) 76%, oklch(65% 0.24 135deg));
--bs-green-025: color-mix(in oklch, var(--bs-white) 94%, oklch(64% 0.22 160deg));
--bs-green-050: color-mix(in oklch, var(--bs-white) 90%, oklch(64% 0.22 160deg));
--bs-green-100: color-mix(in oklch, var(--bs-white) 80%, oklch(64% 0.22 160deg));
--bs-green-200: color-mix(in oklch, var(--bs-white) 60%, oklch(64% 0.22 160deg));
--bs-green-300: color-mix(in oklch, var(--bs-white) 40%, oklch(64% 0.22 160deg));
--bs-green-400: color-mix(in oklch, var(--bs-white) 20%, oklch(64% 0.22 160deg));
--bs-green-500: oklch(64% 0.22 160deg);
--bs-green-600: color-mix(in oklch, var(--bs-black) 16%, oklch(64% 0.22 160deg));
--bs-green-700: color-mix(in oklch, var(--bs-black) 32%, oklch(64% 0.22 160deg));
--bs-green-800: color-mix(in oklch, var(--bs-black) 48%, oklch(64% 0.22 160deg));
--bs-green-900: color-mix(in oklch, var(--bs-black) 64%, oklch(64% 0.22 160deg));
--bs-green-950: color-mix(in oklch, var(--bs-black) 70%, oklch(64% 0.22 160deg));
--bs-green-975: color-mix(in oklch, var(--bs-black) 76%, oklch(64% 0.22 160deg));
--bs-teal-025: color-mix(in oklch, var(--bs-white) 94%, oklch(68% 0.22 190deg));
--bs-teal-050: color-mix(in oklch, var(--bs-white) 90%, oklch(68% 0.22 190deg));
--bs-teal-100: color-mix(in oklch, var(--bs-white) 80%, oklch(68% 0.22 190deg));
--bs-teal-200: color-mix(in oklch, var(--bs-white) 60%, oklch(68% 0.22 190deg));
--bs-teal-300: color-mix(in oklch, var(--bs-white) 40%, oklch(68% 0.22 190deg));
--bs-teal-400: color-mix(in oklch, var(--bs-white) 20%, oklch(68% 0.22 190deg));
--bs-teal-500: oklch(68% 0.22 190deg);
--bs-teal-600: color-mix(in oklch, var(--bs-black) 16%, oklch(68% 0.22 190deg));
--bs-teal-700: color-mix(in oklch, var(--bs-black) 32%, oklch(68% 0.22 190deg));
--bs-teal-800: color-mix(in oklch, var(--bs-black) 48%, oklch(68% 0.22 190deg));
--bs-teal-900: color-mix(in oklch, var(--bs-black) 64%, oklch(68% 0.22 190deg));
--bs-teal-950: color-mix(in oklch, var(--bs-black) 70%, oklch(68% 0.22 190deg));
--bs-teal-975: color-mix(in oklch, var(--bs-black) 76%, oklch(68% 0.22 190deg));
--bs-cyan-025: color-mix(in oklch, var(--bs-white) 94%, oklch(69% 0.22 220deg));
--bs-cyan-050: color-mix(in oklch, var(--bs-white) 90%, oklch(69% 0.22 220deg));
--bs-cyan-100: color-mix(in oklch, var(--bs-white) 80%, oklch(69% 0.22 220deg));
--bs-cyan-200: color-mix(in oklch, var(--bs-white) 60%, oklch(69% 0.22 220deg));
--bs-cyan-300: color-mix(in oklch, var(--bs-white) 40%, oklch(69% 0.22 220deg));
--bs-cyan-400: color-mix(in oklch, var(--bs-white) 20%, oklch(69% 0.22 220deg));
--bs-cyan-500: oklch(69% 0.22 220deg);
--bs-cyan-600: color-mix(in oklch, var(--bs-black) 16%, oklch(69% 0.22 220deg));
--bs-cyan-700: color-mix(in oklch, var(--bs-black) 32%, oklch(69% 0.22 220deg));
--bs-cyan-800: color-mix(in oklch, var(--bs-black) 48%, oklch(69% 0.22 220deg));
--bs-cyan-900: color-mix(in oklch, var(--bs-black) 64%, oklch(69% 0.22 220deg));
--bs-cyan-950: color-mix(in oklch, var(--bs-black) 70%, oklch(69% 0.22 220deg));
--bs-cyan-975: color-mix(in oklch, var(--bs-black) 76%, oklch(69% 0.22 220deg));
--bs-brown-025: color-mix(in oklch, var(--bs-white) 94%, oklch(60% 0.12 54deg));
--bs-brown-050: color-mix(in oklch, var(--bs-white) 90%, oklch(60% 0.12 54deg));
--bs-brown-100: color-mix(in oklch, var(--bs-white) 80%, oklch(60% 0.12 54deg));
--bs-brown-200: color-mix(in oklch, var(--bs-white) 60%, oklch(60% 0.12 54deg));
--bs-brown-300: color-mix(in oklch, var(--bs-white) 40%, oklch(60% 0.12 54deg));
--bs-brown-400: color-mix(in oklch, var(--bs-white) 20%, oklch(60% 0.12 54deg));
--bs-brown-500: oklch(60% 0.12 54deg);
--bs-brown-600: color-mix(in oklch, var(--bs-black) 16%, oklch(60% 0.12 54deg));
--bs-brown-700: color-mix(in oklch, var(--bs-black) 32%, oklch(60% 0.12 54deg));
--bs-brown-800: color-mix(in oklch, var(--bs-black) 48%, oklch(60% 0.12 54deg));
--bs-brown-900: color-mix(in oklch, var(--bs-black) 64%, oklch(60% 0.12 54deg));
--bs-brown-950: color-mix(in oklch, var(--bs-black) 70%, oklch(60% 0.12 54deg));
--bs-brown-975: color-mix(in oklch, var(--bs-black) 76%, oklch(60% 0.12 54deg));
--bs-gray-025: color-mix(in oklch, var(--bs-white) 94%, oklch(60% 0.02 245deg));
--bs-gray-050: color-mix(in oklch, var(--bs-white) 90%, oklch(60% 0.02 245deg));
--bs-gray-100: color-mix(in oklch, var(--bs-white) 80%, oklch(60% 0.02 245deg));
--bs-gray-200: color-mix(in oklch, var(--bs-white) 60%, oklch(60% 0.02 245deg));
--bs-gray-300: color-mix(in oklch, var(--bs-white) 40%, oklch(60% 0.02 245deg));
--bs-gray-400: color-mix(in oklch, var(--bs-white) 20%, oklch(60% 0.02 245deg));
--bs-gray-500: oklch(60% 0.02 245deg);
--bs-gray-600: color-mix(in oklch, var(--bs-black) 16%, oklch(60% 0.02 245deg));
--bs-gray-700: color-mix(in oklch, var(--bs-black) 32%, oklch(60% 0.02 245deg));
--bs-gray-800: color-mix(in oklch, var(--bs-black) 48%, oklch(60% 0.02 245deg));
--bs-gray-900: color-mix(in oklch, var(--bs-black) 64%, oklch(60% 0.02 245deg));
--bs-gray-950: color-mix(in oklch, var(--bs-black) 70%, oklch(60% 0.02 245deg));
--bs-gray-975: color-mix(in oklch, var(--bs-black) 76%, oklch(60% 0.02 245deg));
--bs-pewter-025: color-mix(in oklch, var(--bs-white) 94%, oklch(65% 0.01 290deg));
--bs-pewter-050: color-mix(in oklch, var(--bs-white) 90%, oklch(65% 0.01 290deg));
--bs-pewter-100: color-mix(in oklch, var(--bs-white) 80%, oklch(65% 0.01 290deg));
--bs-pewter-200: color-mix(in oklch, var(--bs-white) 60%, oklch(65% 0.01 290deg));
--bs-pewter-300: color-mix(in oklch, var(--bs-white) 40%, oklch(65% 0.01 290deg));
--bs-pewter-400: color-mix(in oklch, var(--bs-white) 20%, oklch(65% 0.01 290deg));
--bs-pewter-500: oklch(65% 0.01 290deg);
--bs-pewter-600: color-mix(in oklch, var(--bs-black) 16%, oklch(65% 0.01 290deg));
--bs-pewter-700: color-mix(in oklch, var(--bs-black) 32%, oklch(65% 0.01 290deg));
--bs-pewter-800: color-mix(in oklch, var(--bs-black) 48%, oklch(65% 0.01 290deg));
--bs-pewter-900: color-mix(in oklch, var(--bs-black) 64%, oklch(65% 0.01 290deg));
--bs-pewter-950: color-mix(in oklch, var(--bs-black) 70%, oklch(65% 0.01 290deg));
--bs-pewter-975: color-mix(in oklch, var(--bs-black) 76%, oklch(65% 0.01 290deg));
}
@layer colors, config, root, reboot, layout, content, forms, components, custom, helpers, utilities;
:root,
:host {
--bs-black: #000;
--bs-white: #fff;
--bs-gradient: linear-gradient(180deg, color-mix(var(--bs-white) 15%, transparent), color-mix(var(--bs-white) 0%, transparent));
--bs-body-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
--bs-body-font-size: 1rem;
--bs-body-font-weight: var(--bs-font-weight-normal);
--bs-body-line-height: 1.5;
--bs-heading-color: inherit;
--bs-hr-border-color: var(--bs-border-color);
--bs-link-color: light-dark(var(--bs-primary-base), var(--bs-primary-fg));
--bs-link-decoration: underline;
--bs-link-underline-offset: 0.2em;
--bs-link-hover-color: color-mix(in oklch, var(--bs-link-color) 90%, #000);
--bs-font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Monaco, 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
--bs-code-font-size: 0.875em;
--bs-code-color: var(--bs-fg-2);
--bs-border-width: 1px;
--bs-border-width-keyline: 0.5px;
--bs-border-style: solid;
--bs-border-color: light-dark(var(--bs-gray-200), var(--bs-gray-700));
--bs-border-color-translucent: color-mix(in oklch, var(--bs-fg-body) 15%, transparent);
--bs-shadow-color: #000;
--bs-shadow-strength: 1;
--bs-transition-timing-overlay: cubic-bezier(0.22, 1, 0.36, 1);
--bs-spacer: 1rem;
--bs-focus-ring-width: 3px;
--bs-focus-ring-offset: 1px;
--bs-focus-ring-color: var(--bs-primary-focus-ring);
--bs-focus-ring: var(--bs-focus-ring-width) solid var(--bs-focus-ring-color);
--bs-control-checked-bg: var(--bs-primary-base);
--bs-control-checked-border-color: var(--bs-control-checked-bg);
--bs-control-active-bg: var(--bs-primary-base);
--bs-control-active-border-color: var(--bs-control-active-bg);
--bs-control-disabled-bg: var(--bs-bg-3);
--bs-control-disabled-opacity: 0.65;
--bs-control-transition-duration: 0.15s;
--bs-control-transition-timing: cubic-bezier(0.34, 1.56, 0.64, 1);
--bs-btn-input-fg: var(--bs-fg-body);
--bs-btn-input-bg: var(--bs-bg-body);
--bs-btn-input-gap: 0.375rem;
--bs-btn-input-min-height: 2.375rem;
--bs-btn-input-padding-y: 0.375rem;
--bs-btn-input-padding-x: 0.75rem;
--bs-btn-input-font-size: var(--bs-body-font-size);
--bs-btn-input-font-weight: var(--bs-font-weight-normal);
--bs-btn-input-line-height: var(--bs-body-line-height);
--bs-btn-input-border-radius: var(--bs-radius-5);
--bs-btn-input-xs-gap: var(--bs-spacer-1);
--bs-btn-input-xs-min-height: 1.5rem;
--bs-btn-input-xs-padding-y: 0.125rem;
--bs-btn-input-xs-padding-x: 0.5rem;
--bs-btn-input-xs-font-size: var(--bs-font-size-xs);
--bs-btn-input-xs-line-height: 1.125;
--bs-btn-input-xs-border-radius: var(--bs-radius-5);
--bs-btn-input-sm-gap: 0.375rem;
--bs-btn-input-sm-min-height: 2rem;
--bs-btn-input-sm-padding-y: 0.25rem;
--bs-btn-input-sm-padding-x: 0.625rem;
--bs-btn-input-sm-font-size: var(--bs-font-size-sm);
--bs-btn-input-sm-line-height: var(--bs-line-height-sm);
--bs-btn-input-sm-border-radius: var(--bs-radius-5);
--bs-btn-input-lg-gap: 0.375rem;
--bs-btn-input-lg-min-height: 2.75rem;
--bs-btn-input-lg-padding-y: 0.5rem;
--bs-btn-input-lg-padding-x: 1rem;
--bs-btn-input-lg-font-size: var(--bs-font-size-md);
--bs-btn-input-lg-line-height: var(--bs-line-height-md);
--bs-btn-input-lg-border-radius: var(--bs-radius-7);
--bs-font-size-xs: 0.75rem;
--bs-line-height-xs: 1.25;
--bs-font-size-sm: 0.875rem;
--bs-line-height-sm: 1.5;
--bs-font-size-md: 1rem;
--bs-line-height-md: 1.5;
--bs-font-size-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
--bs-line-height-lg: 1.5;
--bs-font-size-xl: clamp(1.5rem, 1.1rem + 0.75vw, 1.75rem);
--bs-line-height-xl: 1.4285714286;
--bs-font-size-2xl: clamp(1.75rem, 1.3rem + 1vw, 2rem);
--bs-line-height-2xl: 1.3333333333;
--bs-font-size-3xl: clamp(2rem, 1.5rem + 1.875vw, 2.5rem);
--bs-line-height-3xl: 1.2;
--bs-font-size-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3rem);
--bs-line-height-4xl: 1.1;
--bs-font-size-5xl: clamp(3rem, 2rem + 5vw, 4rem);
--bs-line-height-5xl: 1.1;
--bs-font-size-6xl: clamp(3.75rem, 2.5rem + 6.25vw, 5rem);
--bs-line-height-6xl: 1;
--bs-font-weight-lighter: lighter;
--bs-font-weight-light: 300;
--bs-font-weight-normal: 400;
--bs-font-weight-medium: 500;
--bs-font-weight-semibold: 600;
--bs-font-weight-bold: 700;
--bs-font-weight-bolder: bolder;
--bs-primary-base: var(--bs-blue-500);
--bs-primary-fg: light-dark(var(--bs-blue-600), var(--bs-blue-400));
--bs-primary-fg-emphasis: light-dark(var(--bs-blue-800), var(--bs-blue-200));
--bs-primary-bg: var(--bs-blue-500);
--bs-primary-bg-subtle: light-dark(var(--bs-blue-100), var(--bs-blue-900));
--bs-primary-bg-muted: light-dark(var(--bs-blue-200), var(--bs-blue-800));
--bs-primary-border: light-dark(var(--bs-blue-300), var(--bs-blue-600));
--bs-primary-focus-ring: light-dark(color-mix(in oklch, var(--bs-blue-500) 50%, var(--bs-bg-body)), color-mix(in oklch, var(--bs-blue-500) 75%, var(--bs-bg-body)));
--bs-primary-contrast: var(--bs-white);
--bs-accent-base: var(--bs-indigo-500);
--bs-accent-fg: light-dark(var(--bs-indigo-600), color-mix(in oklch, var(--bs-indigo-400), var(--bs-indigo-300)));
--bs-accent-fg-emphasis: light-dark(var(--bs-indigo-800), var(--bs-indigo-300));
--bs-accent-bg: var(--bs-indigo-500);
--bs-accent-bg-subtle: light-dark(var(--bs-indigo-100), var(--bs-indigo-900));
--bs-accent-bg-muted: light-dark(var(--bs-indigo-200), var(--bs-indigo-800));
--bs-accent-border: light-dark(var(--bs-indigo-300), var(--bs-indigo-600));
--bs-accent-focus-ring: light-dark(color-mix(in oklch, var(--bs-indigo-500) 50%, var(--bs-bg-body)), color-mix(in oklch, var(--bs-indigo-500) 75%, var(--bs-bg-body)));
--bs-accent-contrast: var(--bs-white);
--bs-success-base: var(--bs-green-500);
--bs-success-fg: light-dark(var(--bs-green-600), var(--bs-green-400));
--bs-success-fg-emphasis: light-dark(var(--bs-green-800), var(--bs-green-300));
--bs-success-bg: var(--bs-green-500);
--bs-success-bg-subtle: light-dark(var(--bs-green-100), var(--bs-green-900));
--bs-success-bg-muted: light-dark(var(--bs-green-200), var(--bs-green-800));
--bs-success-border: light-dark(var(--bs-green-300), var(--bs-green-600));
--bs-success-focus-ring: light-dark(color-mix(in oklch, var(--bs-green-500) 50%, var(--bs-bg-body)), color-mix(in oklch, var(--bs-green-500) 75%, var(--bs-bg-body)));
--bs-success-contrast: var(--bs-white);
--bs-danger-base: var(--bs-red-500);
--bs-danger-fg: light-dark(var(--bs-red-600), var(--bs-red-400));
--bs-danger-fg-emphasis: light-dark(var(--bs-red-800), var(--bs-red-300));
--bs-danger-bg: var(--bs-red-500);
--bs-danger-bg-subtle: light-dark(var(--bs-red-100), var(--bs-red-900));
--bs-danger-bg-muted: light-dark(var(--bs-red-200), var(--bs-red-800));
--bs-danger-border: light-dark(var(--bs-red-300), var(--bs-red-600));
--bs-danger-focus-ring: light-dark(color-mix(in oklch, var(--bs-red-500) 50%, var(--bs-bg-body)), color-mix(in oklch, var(--bs-red-500) 75%, var(--bs-bg-body)));
--bs-danger-contrast: var(--bs-white);
--bs-warning-base: var(--bs-yellow-500);
--bs-warning-fg: light-dark(var(--bs-yellow-700), var(--bs-yellow-400));
--bs-warning-fg-emphasis: light-dark(var(--bs-yellow-800), var(--bs-yellow-300));
--bs-warning-bg: var(--bs-yellow-500);
--bs-warning-bg-subtle: light-dark(var(--bs-yellow-100), var(--bs-yellow-900));
--bs-warning-bg-muted: light-dark(var(--bs-yellow-200), var(--bs-yellow-800));
--bs-warning-border: light-dark(var(--bs-yellow-300), var(--bs-yellow-600));
--bs-warning-focus-ring: light-dark(color-mix(in oklch, var(--bs-yellow-500) 50%, var(--bs-bg-body)), color-mix(in oklch, var(--bs-yellow-400) 85%, var(--bs-bg-body)));
--bs-warning-contrast: var(--bs-gray-900);
--bs-info-base: var(--bs-cyan-500);
--bs-info-fg: light-dark(var(--bs-cyan-600), var(--bs-cyan-400));
--bs-info-fg-emphasis: light-dark(var(--bs-cyan-800), var(--bs-cyan-300));
--bs-info-bg: var(--bs-cyan-500);
--bs-info-bg-subtle: light-dark(var(--bs-cyan-100), var(--bs-cyan-900));
--bs-info-bg-muted: light-dark(var(--bs-cyan-200), var(--bs-cyan-800));
--bs-info-border: light-dark(var(--bs-cyan-300), var(--bs-cyan-600));
--bs-info-focus-ring: light-dark(color-mix(in oklch, var(--bs-cyan-500) 50%, var(--bs-bg-body)), color-mix(in oklch, var(--bs-cyan-500) 75%, var(--bs-bg-body)));
--bs-info-contrast: var(--bs-gray-900);
--bs-inverse-base: var(--bs-gray-900);
--bs-inverse-fg: light-dark(var(--bs-gray-900), var(--bs-gray-200));
--bs-inverse-fg-emphasis: light-dark(var(--bs-gray-975), var(--bs-white));
--bs-inverse-bg: light-dark(var(--bs-gray-900), var(--bs-gray-025));
--bs-inverse-bg-subtle: light-dark(var(--bs-gray-100), var(--bs-gray-900));
--bs-inverse-bg-muted: light-dark(var(--bs-gray-200), var(--bs-gray-300));
--bs-inverse-border: light-dark(var(--bs-gray-400), var(--bs-gray-100));
--bs-inverse-focus-ring: color-mix(in oklch, light-dark(var(--bs-gray-900), var(--bs-gray-100)) 50%, var(--bs-bg-body));
--bs-inverse-contrast: light-dark(var(--bs-white), var(--bs-gray-900));
--bs-secondary-base: var(--bs-gray-200);
--bs-secondary-fg: light-dark(var(--bs-gray-600), var(--bs-gray-400));
--bs-secondary-fg-emphasis: light-dark(var(--bs-gray-800), var(--bs-gray-200));
--bs-secondary-bg: light-dark(var(--bs-gray-100), var(--bs-gray-600));
--bs-secondary-bg-subtle: light-dark(var(--bs-gray-050), var(--bs-gray-800));
--bs-secondary-bg-muted: light-dark(var(--bs-gray-100), var(--bs-gray-700));
--bs-secondary-border: light-dark(var(--bs-gray-300), var(--bs-gray-600));
--bs-secondary-focus-ring: color-mix(in oklch, light-dark(var(--bs-gray-500), var(--bs-gray-300)) 50%, var(--bs-bg-body));
--bs-secondary-contrast: light-dark(var(--bs-gray-900), var(--bs-white));
--bs-bg-body: light-dark(var(--bs-white), var(--bs-gray-975));
--bs-bg-1: light-dark(var(--bs-gray-025), var(--bs-gray-950));
--bs-bg-2: light-dark(var(--bs-gray-050), var(--bs-gray-900));
--bs-bg-3: light-dark(var(--bs-gray-100), var(--bs-gray-800));
--bs-bg-4: light-dark(var(--bs-gray-200), var(--bs-gray-700));
--bs-bg-fg: var(--bs-fg-body);
--bs-bg-white: var(--bs-white);
--bs-bg-black: var(--bs-black);
--bs-bg-transparent: transparent;
--bs-bg-inherit: inherit;
--bs-fg-body: light-dark(var(--bs-gray-900), var(--bs-gray-050));
--bs-fg-1: light-dark(var(--bs-gray-800), var(--bs-gray-200));
--bs-fg-2: light-dark(var(--bs-gray-700), var(--bs-gray-300));
--bs-fg-3: light-dark(var(--bs-gray-600), var(--bs-gray-500));
--bs-fg-4: light-dark(var(--bs-gray-500), var(--bs-gray-600));
--bs-fg-bg: var(--bs-bg-body);
--bs-fg-white: var(--bs-white);
--bs-fg-black: var(--bs-black);
--bs-fg-inherit: inherit;
--bs-border-bg: var(--bs-bg-body);
--bs-border-body: light-dark(var(--bs-gray-300), var(--bs-gray-800));
--bs-border-muted: light-dark(var(--bs-gray-200), var(--bs-gray-800));
--bs-border-subtle: light-dark(color-mix(in oklch, var(--bs-gray-100), var(--bs-gray-200)), color-mix(in oklch, var(--bs-gray-800), var(--bs-gray-900)));
--bs-border-emphasized: light-dark(var(--bs-gray-400), var(--bs-gray-600));
--bs-border-white: var(--bs-white);
--bs-border-black: var(--bs-black);
--bs-breakpoint-xs: 0;
--bs-breakpoint-sm: 576px;
--bs-breakpoint-md: 768px;
--bs-breakpoint-lg: 1024px;
--bs-breakpoint-xl: 1280px;
--bs-breakpoint-2xl: 1536px;
--bs-spacer-0: 0;
--bs-spacer-1: 0.25rem;
--bs-spacer-2: 0.375rem;
--bs-spacer-3: 0.5rem;
--bs-spacer-4: 0.75rem;
--bs-spacer-5: 1rem;
--bs-spacer-6: 1.25rem;
--bs-spacer-7: 1.5rem;
--bs-spacer-8: 1.75rem;
--bs-spacer-9: 2rem;
--bs-spacer-10: 2.25rem;
--bs-spacer-11: 2.5rem;
--bs-spacer-12: 3rem;
--bs-radius-0: 0;
--bs-radius-1: 0.125rem;
--bs-radius-2: 0.1875rem;
--bs-radius-3: 0.25rem;
--bs-radius-4: 0.375rem;
--bs-radius-5: 0.5rem;
--bs-radius-6: 0.625rem;
--bs-radius-7: 0.75rem;
--bs-radius-8: 0.875rem;
--bs-radius-9: 1rem;
--bs-radius-pill: 50rem;
--bs-box-shadow: 0 .125rem .25rem -.0625rem oklch(from var(--bs-sc, var(--bs-shadow-color)) l c h / calc(.04 * var(--bs-shadow-strength) * var(--bs-so, 1))), 0 .375rem .75rem -.125rem oklch(from var(--bs-sc, var(--bs-shadow-color)) l c h / calc(.05 * var(--bs-shadow-strength) * var(--bs-so, 1))), 0 .75rem 1.5rem -.25rem oklch(from var(--bs-sc, var(--bs-shadow-color)) l c h / calc(.06 * var(--bs-shadow-strength) * var(--bs-so, 1)));
--bs-box-shadow-xs: 0 0.0625rem 0.125rem oklch(from var(--bs-sc, var(--bs-shadow-color)) l c h/calc(0.04 * var(--bs-shadow-strength) * var(--bs-so, 1)));
--bs-box-shadow-sm: 0 .0625rem .125rem oklch(from var(--bs-sc, var(--bs-shadow-color)) l c h / calc(.04 * var(--bs-shadow-strength) * var(--bs-so, 1))), 0 .125rem .375rem -.0625rem oklch(from var(--bs-sc, var(--bs-shadow-color)) l c h / calc(.05 * var(--bs-shadow-strength) * var(--bs-so, 1)));
--bs-box-shadow-lg: 0 .125rem .375rem -.0625rem oklch(from var(--bs-sc, var(--bs-shadow-color)) l c h / calc(.05 * var(--bs-shadow-strength) * var(--bs-so, 1))), 0 .375rem 1rem -.1875rem oklch(from var(--bs-sc, var(--bs-shadow-color)) l c h / calc(.06 * var(--bs-shadow-strength) * var(--bs-so, 1))), 0 .75rem 2rem -.375rem oklch(from var(--bs-sc, var(--bs-shadow-color)) l c h / calc(.07 * var(--bs-shadow-strength) * var(--bs-so, 1))), 0 1.5rem 3.5rem -.75rem oklch(from var(--bs-sc, var(--bs-shadow-color)) l c h / calc(.08 * var(--bs-shadow-strength) * var(--bs-so, 1)));
--bs-box-shadow-xl: 0 .1875rem .5rem -.0625rem oklch(from var(--bs-sc, var(--bs-shadow-color)) l c h / calc(.05 * var(--bs-shadow-strength) * var(--bs-so, 1))), 0 .5rem 1.25rem -.1875rem oklch(from var(--bs-sc, var(--bs-shadow-color)) l c h / calc(.06 * var(--bs-shadow-strength) * var(--bs-so, 1))), 0 1rem 2.5rem -.375rem oklch(from var(--bs-sc, var(--bs-shadow-color)) l c h / calc(.07 * var(--bs-shadow-strength) * var(--bs-so, 1))), 0 2rem 5rem -.75rem oklch(from var(--bs-sc, var(--bs-shadow-color)) l c h / calc(.09 * var(--bs-shadow-strength) * var(--bs-so, 1)));
--bs-box-shadow-inset: inset 0 1px 2px light-dark(oklch(from var(--bs-sc, var(--bs-shadow-color)) l c h/calc(8% * var(--bs-so, 1))), oklch(from var(--bs-sc, var(--bs-shadow-color)) l c h/calc(26% * var(--bs-so, 1))));
--bs-z-n1: -1;
--bs-z-0: 0;
--bs-z-1: 1;
--bs-z-2: 2;
--bs-z-3: 3;
--bs-z-menu: 1000;
--bs-z-sticky: 1010;
--bs-z-fixed: 1020;
--bs-z-drawer: 1030;
--bs-z-dialog: 1040;
--bs-z-popover: 1050;
--bs-z-tooltip: 1060;
--bs-z-toast: 1070;
color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
:root,
:host {
--bs-shadow-strength: 2.4;
}
}
[data-bs-theme=dark] {
--bs-shadow-strength: 2.4;
color-scheme: dark;
}
[data-bs-theme=light] {
--bs-shadow-strength: 1;
color-scheme: light;
}
:root,
:host {
--bs-heading-margin-bottom: var(--bs-spacer-2);
--bs-heading-line-height: 1.2;
--bs-paragraph-margin-bottom: var(--bs-spacer);
--bs-legend-margin-bottom: var(--bs-spacer-2);
--bs-legend-font-size: 1.5rem;
--bs-list-padding-x: var(--bs-spacer-7);
}
@layer reboot {
*,
*::before,
*::after {
box-sizing: border-box;
}
:root,
:host {
accent-color: var(--bs-primary-base);
}
iframe {
color-scheme: light dark;
border: 0;
}
body {
margin: 0;
font-family: var(--bs-body-font-family);
font-size: var(--bs-body-font-size);
font-weight: var(--bs-body-font-weight);
line-height: var(--bs-body-line-height);
color: var(--bs-fg-body);
text-align: var(--bs-body-text-align);
background-color: var(--bs-bg-body);
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
}
hr {
margin: var(--bs-hr-margin-y, var(--bs-spacer)) 0;
border: 0;
border-block-start: var(--bs-border-width) solid var(--bs-hr-border-color);
}
h6,
.h6, h5,
.h5, h4,
.h4, h3,
.h3, h2,
.h2, h1,
.h1 {
margin-top: 0;
margin-bottom: var(--bs-heading-margin-bottom);
font-family: var(--bs-heading-font-family);
font-style: var(--bs-heading-font-style);
font-weight: var(--bs-heading-font-weight, var(--bs-font-weight-medium));
line-height: var(--bs-heading-line-height);
color: var(--bs-heading-color);
}
h1,
.h1 {
font-size: var(--bs-font-size-3xl);
}
h2,
.h2 {
font-size: var(--bs-font-size-2xl);
}
h3,
.h3 {
font-size: var(--bs-font-size-xl);
}
h4,
.h4 {
font-size: var(--bs-font-size-lg);
}
h5,
.h5 {
font-size: var(--bs-font-size-md);
}
h6,
.h6 {
font-size: var(--bs-font-size-sm);
}
p {
margin-top: 0;
margin-bottom: var(--bs-paragraph-margin-bottom);
}
abbr[title] {
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
cursor: help;
-webkit-text-decoration-skip-ink: none;
text-decoration-skip-ink: none;
}
.initialism {
font-size: var(--bs-initialism-font-size, var(--bs-font-size-xs));
text-transform: uppercase;
}
address {
margin-bottom: var(--bs-spacer);
font-style: normal;
line-height: inherit;
}
ol,
ul {
padding-inline-start: var(--bs-list-padding-x);
}
ol,
ul,
dl {
margin-top: 0;
margin-bottom: var(--bs-spacer);
}
ol ol,
ul ul,
ol ul,
ul ol {
margin-bottom: 0;
}
dt {
font-weight: var(--bs-dt-font-weight, var(--bs-font-weight-bold));
}
dd {
margin-inline-start: 0;
margin-bottom: var(--bs-spacer-2);
}
blockquote {
margin: 0 0 var(--bs-spacer);
}
blockquote > * {
margin-block: 0;
}
b,
strong {
font-weight: var(--bs-font-weight-bolder);
}
small,
.small {
font-size: var(--bs-small-font-size, 87.5%);
}
mark,
.mark {
--bs-mark-padding: 0.1875em;
--bs-mark-color: var(--bs-fg-body);
--bs-mark-bg: light-dark(var(--bs-yellow-100), var(--bs-yellow-900));
padding: var(--bs-mark-padding);
color: var(--bs-mark-color);
background-color: var(--bs-mark-bg);
}
sub,
sup {
position: relative;
font-size: var(--bs-sub-sup-font-size, 0.75em);
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
a {
color: var(--bs-theme-fg, var(--bs-link-color));
-webkit-text-decoration: var(--bs-link-decoration);
text-decoration: var(--bs-link-decoration);
text-underline-offset: var(--bs-link-underline-offset);
}
a:hover {
color: var(--bs-theme-fg-emphasis, var(--bs-link-hover-color));
-webkit-text-decoration: var(--bs-link-hover-decoration, var(--bs-link-decoration));
text-decoration: var(--bs-link-hover-decoration, var(--bs-link-decoration));
}
a:not([href], [class]), a:not([href], [class]):hover {
color: inherit;
text-decoration: none;
}
pre,
code,
kbd,
samp {
font-family: var(--bs-font-mono);
font-size: 0.875em;
}
pre {
display: block;
margin-top: 0;
margin-bottom: var(--bs-spacer);
overflow: auto;
font-size: var(--bs-code-font-size);
color: var(--bs-code-color, inherit);
scrollbar-gutter: stable;
}
pre code {
font-size: inherit;
color: inherit;
word-break: normal;
}
code {
font-size: var(--bs-code-font-size);
color: var(--bs-code-color);
word-wrap: break-word;
}
a > code {
color: inherit;
}
kbd {
--bs-kbd-padding-y: 0.125rem;
--bs-kbd-padding-x: var(--bs-spacer-1);
--bs-kbd-font-size: 0.75em;
--bs-kbd-color: var(--bs-bg-body);
--bs-kbd-bg: var(--bs-fg-2);
--bs-kbd-border-radius: var(--bs-radius-3);
padding: var(--bs-kbd-padding-y) var(--bs-kbd-padding-x);
font-size: var(--bs-kbd-font-size);
color: var(--bs-kbd-color);
background-color: var(--bs-kbd-bg);
border-radius: var(--bs-kbd-border-radius);
}
kbd kbd {
padding: 0;
font-size: 1em;
}
figure {
margin: 0 0 var(--bs-spacer);
}
img,
svg {
vertical-align: middle;
}
table {
caption-side: bottom;
border-collapse: collapse;
}
caption {
padding-block: var(--bs-spacer-2);
color: var(--bs-fg-3);
text-align: start;
}
th {
text-align: inherit;
text-align: -webkit-match-parent;
}
thead,
tbody,
tfoot,
tr,
td,
th {
border-color: inherit;
border-style: solid;
border-width: 0;
}
label {
display: inline-block;
}
button {
border-radius: 0;
}
button:focus:not(:focus-visible) {
outline: 0;
}
input,
button,
select,
optgroup,
textarea {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
input:is([type=date], [type=datetime-local], [type=month], [type=week], [type=time]) {
position: relative;
}
input:is([type=date], [type=datetime-local], [type=month], [type=week], [type=time])::-webkit-calendar-picker-indicator {
position: absolute;
inset-inline-end: var(--bs-control-padding-x, 0.75rem);
}
[role=button] {
cursor: pointer;
}
select {
word-wrap: normal;
}
select:disabled {
opacity: 1;
}
[list]:not([type=date], [type=datetime-local], [type=month], [type=week], [type=time])::-webkit-calendar-picker-indicator {
display: none !important;
}
button,
[type=button],
[type=reset],
[type=submit] {
-webkit-appearance: button;
}
button:not(:disabled),
[type=button]:not(:disabled),
[type=reset]:not(:disabled),
[type=submit]:not(:disabled) {
cursor: pointer;
}
textarea {
resize: vertical;
}
fieldset {
min-width: 0;
padding: 0;
margin: 0;
border: 0;
}
legend {
float: inline-start;
width: 100%;
padding: 0;
margin-bottom: var(--bs-legend-margin-bottom);
font-size: var(--bs-legend-font-size);
font-weight: var(--bs-legend-font-weight);
line-height: inherit;
}
legend + * {
clear: inline-start;
}
::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-millisecond-field,
::-webkit-datetime-edit-second-field,
::-webkit-datetime-edit-minute-field,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-meridiem-field,
::-webkit-datetime-edit-ampm-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-week-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field {
padding: 0;
}
::-webkit-date-and-time-value {
text-align: start;
}
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
height: auto;
}
[type=search] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
[type=search]::-webkit-search-cancel-button {
cursor: pointer;
filter: grayscale(1);
}
[type=tel],
[type=url],
[type=email],
[type=number] {
direction: ltr;
}
::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-color-swatch-wrapper {
padding: 0;
}
::file-selector-button {
font: inherit;
-webkit-appearance: button;
}
output {
display: inline-block;
}
summary {
display: list-item;
cursor: pointer;
}
progress {
vertical-align: baseline;
}
[hidden] {
display: none !important;
}
}
/*# sourceMappingURL=bootstrap-reboot.css.map */
+1
View File
@@ -0,0 +1 @@
{"version":3,"sources":["../../scss/_banner.scss","../../scss/_colors.scss","../../scss/mixins/_tokens.scss","bootstrap-reboot.css","../../scss/_root.scss","../../scss/content/_reboot.scss","../../scss/mixins/_border-radius.scss"],"names":[],"mappings":"AAEA;;;;GAAA;AC2GA;;ECxGI,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,qCAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,uCAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,i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wBAAA;EAAA,iCAAA;EAAA,oEAAA;EAAA,qEAAA;EAAA,wJAAA;EAAA,0EAAA;EAAA,kCAAA;EAAA,kCAAA;EAAA,qBAAA;EAAA,yBAAA;EAAA,yBAAA;EAAA,0BAAA;EAAA,0BAAA;EAAA,2BAAA;EAAA,gBAAA;EAAA,sBAAA;EAAA,uBAAA;EAAA,qBAAA;EAAA,sBAAA;EAAA,mBAAA;EAAA,sBAAA;EAAA,qBAAA;EAAA,sBAAA;EAAA,mBAAA;EAAA,uBAAA;EAAA,sBAAA;EAAA,oBAAA;EAAA,gBAAA;EAAA,uBAAA;EAAA,wBAAA;EAAA,sBAAA;EAAA,uBAAA;EAAA,qBAAA;EAAA,uBAAA;Line truncated
+7
View File
@@ -0,0 +1,7 @@
/*!
* Bootstrap Reboot v6.0.0-alpha.2 (https://getbootstrap.com/)
* Copyright 2011-2026 The Bootstrap Authors
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
:root,:host{--bs-blue-025:color-mix(in oklch, var(--bs-white) 94%, oklch(60% .24 240));--bs-blue-050:color-mix(in oklch, var(--bs-white) 90%, oklch(60% .24 240));--bs-blue-100:color-mix(in oklch, var(--bs-white) 80%, oklch(60% .24 240));--bs-blue-200:color-mix(in oklch, var(--bs-white) 60%, oklch(60% .24 240));--bs-blue-300:color-mix(in oklch, var(--bs-white) 40%, oklch(60% .24 240));--bs-blue-400:color-mix(in oklch, var(--bs-white) 20%, oklch(60% .24 240));--bs-blue-500:oklch(60% .24 240);--bs-blue-600:color-mix(in oklch, var(--bs-black) 16%, oklch(60% .24 240));--bs-blue-700:color-mix(in oklch, var(--bs-black) 32%, oklch(60% .24 240));--bs-blue-800:color-mix(in oklch, var(--bs-black) 48%, oklch(60% .24 240));--bs-blue-900:color-mix(in oklch, var(--bs-black) 64%, oklch(60% .24 240));--bs-blue-950:color-mix(in oklch, var(--bs-black) 70%, oklch(60% .24 240));--bs-blue-975:color-mix(in oklch, var(--bs-black) 76%, oklch(60% .24 240));--bs-indigo-025:color-mix(in oklch, var(--bs-white) 94%, oklch(56% .26 288));--bs-indigo-050:color-mix(in oklch, var(--bs-white) 90%, oklch(56% .26 288));--bs-indigo-100:color-mix(in oklch, var(--bs-white) 80%, oklch(56% .26 288));--bs-indigo-200:color-mix(in oklch, var(--bs-white) 60%, oklch(56% .26 288));--bs-indigo-300:color-mix(in oklch, var(--bs-white) 40%, oklch(56% .26 288));--bs-indigo-400:color-mix(in oklch, var(--bs-white) 20%, oklch(56% .26 288));--bs-indigo-500:oklch(56% .26 288);--bs-indigo-600:color-mix(in oklch, var(--bs-black) 16%, oklch(56% .26 288));--bs-indigo-700:color-mix(in oklch, var(--bs-black) 32%, oklch(56% .26 288));--bs-indigo-800:color-mix(in oklch, var(--bs-black) 48%, oklch(56% .26 288));--bs-indigo-900:color-mix(in oklch, var(--bs-black) 64%, oklch(56% .26 288));--bs-indigo-950:color-mix(in oklch, var(--bs-black) 70%, oklch(56% .26 288));--bs-indigo-975:color-mix(in oklch, var(--bs-black) 76%, oklch(56% .26 288));--bs-violet-025:color-mix(in oklch, var(--bs-white) 94%, oklch(56% .24 300));--bs-violet-050:color-mix(in oklch, var(--bs-white) 90%, oklch(56% .24 300));--bs-violet-100:color-mix(in oklch, var(--bs-white) 80%, oklch(56% .24 300));--bs-violet-200:color-mix(in oklch, var(--bs-white) 60%, oklch(56% .24 300));--bs-violet-300:color-mix(in oklch, var(--bs-white) 40%, oklch(56% .24 300));--bs-violet-400:color-mix(in oklch, var(--bs-white) 20%, oklch(56% .24 300));--bs-violet-500:oklch(56% .24 300);--bs-violet-600:color-mix(in oklch, var(--bs-black) 16%, oklch(56% .24 300));--bs-violet-700:color-mix(in oklch, var(--bs-black) 32%, oklch(56% .24 300));--bs-violet-800:color-mix(in oklch, var(--bs-black) 48%, oklch(56% .24 300));--bs-violet-900:color-mix(in oklch, var(--bs-black) 64%, oklch(56% .24 300));--bs-violet-950:color-mix(in oklch, var(--bs-black) 70%, oklch(56% .24 300));--bs-violet-975:color-mix(in oklch, var(--bs-black) 76%, oklch(56% .24 300));--bs-purple-025:color-mix(in oklch, var(--bs-white) 94%, oklch(56% .24 320));--bs-purple-050:color-mix(in oklch, var(--bs-white) 90%, oklch(56% .24 320));--bs-purple-100:color-mix(in oklch, var(--bs-white) 80%, oklch(56% .24 320));--bs-purple-200:color-mix(in oklch, var(--bs-white) 60%, oklch(56% .24 320));--bs-purple-300:color-mix(in oklch, var(--bs-white) 40%, oklch(56% .24 320));--bs-purple-400:color-mix(in oklch, var(--bs-white) 20%, oklch(56% .24 320));--bs-purple-500:oklch(56% .24 320);--bs-purple-600:color-mix(in oklch, var(--bs-black) 16%, oklch(56% .24 320));--bs-purple-700:color-mix(in oklch, var(--bs-black) 32%, oklch(56% .24 320));--bs-purple-800:color-mix(in oklch, var(--bs-black) 48%, oklch(56% .24 320));--bs-purple-900:color-mix(in oklch, var(--bs-black) 64%, oklch(56% .24 320));--bs-purple-950:color-mix(in oklch, var(--bs-black) 70%, oklch(56% .24 320));--bs-purple-975:color-mix(in oklch, var(--bs-black) 76%, oklch(56% .24 320));--bs-pink-025:color-mix(in oklch, var(--bs-white) 94%, oklch(60% .22 4));--bs-pink-050:color-mix(in oklch, var(--bs-white) 90%, oklch(60% .22 4));--bs-pink-100:color-mix(in oklch, var(--bs-white) 80%, oklch(60% .22 4));--bs-pink-200:color-mix(in oklch, var(--bs-white) 60%, oklch(60% .22 4));--bs-pink-300:color-mix(in oklch, var(--bs-white) 40%, oklch(60% .22 4));--bs-pink-400:color-mix(in oklch, var(--bs-white) 20%, oklch(60% .22 4));--bs-pink-500:oklch(60% .22 4);--bs-pink-600:color-mix(in oklch, var(--bs-black) 16%, oklch(60% .22 4));--bs-pink-700:color-mix(in oklch, var(--bs-black) 32%, oklch(60% .22 4));--bs-pink-800:color-mix(in oklch, var(--bs-black) 48%, oklch(60% .22 4));--bs-pink-900:color-mix(in oklch, var(--bs-black) 64%, oklch(60% .22 4));--bs-pink-950:color-mix(in oklch, var(--bs-black) 70%, oklch(60% .22 4));--bs-pink-975:color-mix(in oklch, var(--bs-black) 76%, oklch(60% .22 4));--bs-red-025:color-mix(in oklch, var(--bs-white) 94%, oklch(60% .22 20));--bs-red-050:color-mix(in oklch, var(--bs-white) 90%, oklch(60% .22 20));--bs-red-100:color-mix(in oklch, var(--bs-white) 80%, oklch(60% .22 20));--bs-red-200:color-mix(in oklch, var(--bs-white) 60Line truncated
/*# sourceMappingURL=bootstrap-reboot.min.css.map */
@@ -0,0 +1 @@
{"version":3,"sourceRoot":null,"mappings":";;;;;AE6GA,0qdEtGA,0BAAA,cCkEE,uCAWA,gDAiBA,wCAaA,4UAcA,sIAYA,sUAUA,yCAMA,yCAMA,wCAMA,wCAMA,wCAMA,wCAWA,+DAWA,sKAOA,qGAOA,6EAQA,oDAKA,qDAOA,wCAOA,mEAMA,0DAOA,uCAEE,4BASF,kDASA,uDAOA,uOAaA,4GAQA,kBACA,cAIA,oPAKE,mTAYA,qFASF,mEAaA,0KAUE,2DAOF,wFAME,qBAKF,oYAQE,gCAUF,mCAMA,8BASA,mDAKA,+EASA,sDAKA,kFAeA,2BAOA,uBAUA,2CAMA,yGAWA,mGAGE,0LASF,6BAIA,wBAME,0BAQF,6IASA,0EAOI,2HAQJ,yBAWA,iDAYA,8LASE,4BAQF,iDAAA,uCAAA,oDAAA,+CAAA,+CAAA,6CAAA,iDAAA,6CAAA,4CAAA,6CAAA,8CAAA,6CAgBA,+CAIA,wCAAA,wCAWA,+DAKE,8EASF,+DASA,oDAMA,yCAOA,8DAOA,4BAQA,yCASA,iCAQA,iCDvpBF,gEAoMA,mzaASA,mCACE,sCAMF,gEAKA,gECnMA","sources":["bootstrap-reboot.css","../../scss/_banner.scss","../../scss/_colors.scss","../../scss/mixins/_tokens.scss","../../scss/_root.scss","../../scss/content/_reboot.scss","../../scss/mixins/_border-radius.scss"],"sourcesContent":["/*!\n * Bootstrap Reboot v6.0.0-alpha.2 (https://getbootstrap.com/)\n * Copyright 2011-2026 The Bootstrap Authors\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */\n:root,\n:host {\n --blue-025: color-mix(in oklch, var(--white) 94%, oklch(60% 0.24 240deg));\n --blue-050: color-mix(in oklch, var(--white) 90%, oklch(60% 0.24 240deg));\n --blue-100: color-mix(in oklch, var(--white) 80%, oklch(60% 0.24 240deg));\n --blue-200: color-mix(in oklch, var(--white) 60%, oklch(60% 0.24 240deg));\n --blue-300: color-mix(in oklch, var(--white) 40%, oklch(60% 0.24 240deg));\n --blue-400: color-mix(in oklch, var(--white) 20%, oklch(60% 0.24 240deg));\n --blue-500: oklch(60% 0.24 240deg);\n --blue-600: color-mix(in oklch, var(--black) 16%, oklch(60% 0.24 240deg));\n --blue-700: color-mix(in oklch, var(--black) 32%, oklch(60% 0.24 240deg));\n --blue-800: color-mix(in oklch, var(--black) 48%, oklch(60% 0.24 240deg));\n --blue-900: color-mix(in oklch, var(--black) 64%, oklch(60% 0.24 240deg));\n --blue-950: color-mix(in oklch, var(--black) 70%, oklch(60% 0.24 240deg));\n --blue-975: color-mix(in oklch, var(--black) 76%, oklch(60% 0.24 240deg));\n --indigo-025: color-mix(in oklch, var(--white) 94%, oklch(56% 0.26 288deg));\n --indigo-050: color-mix(in oklch, var(--white) 90%, oklch(56% 0.26 288deg));\n --indigo-100: color-mix(in oklch, var(--white) 80%, oklch(56% 0.26 288deg));\n --indigo-200: color-mix(in oklch, var(--white) 60%, oklch(56% 0.26 288deg));\n --indigo-300: color-mix(in oklch, var(--white) 40%, oklch(56% 0.26 288deg));\n --indigo-400: color-mix(in oklch, var(--white) 20%, oklch(56% 0.26 288deg));\n --indigo-500: oklch(56% 0.26 288deg);\n --indigo-600: color-mix(in oklch, var(--black) 16%, oklch(56% 0.26 288deg));\n --indigo-700: color-mix(in oklch, var(--black) 32%, oklch(56% 0.26 288deg));\n --indigo-800: color-mix(in oklch, var(--black) 48%, oklch(56% 0.26 288deg));\n --indigo-900: color-mix(in oklch, var(--black) 64%, oklch(56% 0.26 288deg));\n --indigo-950: color-mix(in oklch, var(--black) 70%, oklch(56% 0.26 288deg));\n --indigo-975: color-mix(in oklch, var(--black) 76%, oklch(56% 0.26 288deg));\n --violet-025: color-mix(in oklch, var(--white) 94%, oklch(56% 0.24 300deg));\n --violet-050: color-mix(in oklch, var(--white) 90%, oklch(56% 0.24 300deg));\n --violet-100: color-mix(in oklch, var(--white) 80%, oklch(56% 0.24 300deg));\n --violet-200: color-mix(in oklch, var(--white) 60%, oklch(56% 0.24 300deg));\n --violet-300: color-mix(in oklch, var(--white) 40%, oklch(56% 0.24 300deg));\n --violet-400: color-mix(in oklch, var(--white) 20%, oklch(56% 0.24 300deg));\n --violet-500: oklch(56% 0.24 300deg);\n --violet-600: color-mix(in oklch, var(--black) 16%, oklch(56% 0.24 300deg));\n --violet-700: color-mix(in oklch, var(--black) 32%, oklch(56% 0.24 300deg));\n --violet-800: color-mix(in oklch, var(--black) 48%, oklch(56% 0.24 300deg));\n --violet-900: color-mix(in oklch, var(--black) 64%, oklch(56% 0.24 300deg));\n --violet-950: color-mix(in oklch, var(--black) 70%, oklch(56% 0.24 300deg));\n --violet-975: color-mix(in oklch, var(--black) 76%, oklch(56% 0.24 300deg));\n --purple-025: color-mix(in oklch, var(--white) 94%, oklch(56% 0.24 320deg));\n --purple-050: color-mix(in oklch, var(--white) 90%, oklch(56% 0.24 320deg));\n --purple-100: color-mix(in oklch, var(--white) 80%, oklch(56% 0.24 320deg));\n --purple-200: color-mix(in oklch, var(--white) 60%, oklch(56% 0.24 320deg));\n --purple-300: color-mix(in oklch, var(--white) 40%, oklch(56% 0.24 320deg));\n --purple-400: color-mix(in oklch, var(--white) 20%, oklch(56% 0.24 320deg));\n --purple-500: oklch(56% 0.24 320deg);\n --purple-600: color-mix(in oklch, var(--black) 16%, oklch(56% 0.24 320deg));\n --purple-700: color-mix(in oklch, var(--black) 32%, oklch(56% 0.24 320deg));\n --purple-800: color-mix(in oklch, var(--black) 48%, oklch(56% 0.24 320deg));\n --purple-900: color-mix(in oklch, var(--black) 64%, oklch(56% 0.24 320deg));\n --purple-950: color-mix(in oklch, var(--black) 70%, oklch(56% 0.24 320deg));\n --purple-97Line truncated
File diff suppressed because it is too large. Load diff
@@ -0,0 +1 @@
{"version":3,"sources":["../../scss/_banner.scss","../../scss/_colors.scss","../../scss/mixins/_tokens.scss","bootstrap-utilities.css","../../scss/_root.scss","../../scss/helpers/_focus-ring.scss","../../scss/helpers/_hover-lift.scss","../../scss/mixins/_transition.scss","../../scss/mixins/_box-shadow.scss","../../scss/helpers/_icon-link.scss","../../scss/helpers/_position.scss","../../scss/layout/_breakpoints.scss","../../scss/helpers/_stacks.scss","../../scss/helpers/_theme-colors.scss","../../scss/_theme.scss","../../scss/helpers/_visually-hidden.scss","../../scss/mixins/_visually-hidden.scss","../../scss/helpers/_stretched-link.scss","../../scss/helpers/_text-truncation.scss","../../scss/mixins/_text-truncate.scss","../../scss/helpers/_vr.scss","../../scss/mixins/_forced-colors.scss","../../scss/mixins/_utilities.scss","../../scss/utilities/_api.scss"],"names":[],"mappings":"AAEA;;;;GAAA;AC2GA;;ECxGI,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,qCAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,uCAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,uCAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,i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,6EAAA;EAAA,4EAAA;EAAA,0EAAA;EAAA,sKAAA;EAAA,qCAAA;EAAA,sCAAA;EAAA,qEAAA;EAAA,8EAAA;EAAA,oCAAA;EAAA,4EAAA;EAAA,2EAAA;EAAA,yEAAA;EAAA,qKAAA;EAAA,sCAAA;EAAA,mCAAA;EAAA,gEAAA;EAAA,yEAAA;EAAA,iCAAA;EAAA,uEAAA;EAAA,sEAAA;EAAA,oEAAA;EAAA,gKAAA;EAAA,qCAAA;EAAA,uCAAA;EAAA,uEAAA;EAAA,gFAAA;EAAA,qCAAA;EAAA,8EAAA;EAAA,6EAAA;EAAA,2EAAA;EAAA,uKAAA;EAAA,yCAAA;EAAA,kCAAA;EAAA,gEAAA;EAAA,yEAAA;EAAA,gCAAA;EAAA,uEAAA;EAAA,sEAAA;EAAA,oEAAA;EAAA,gKAAA;EAAA,sCAAA;EAAA,qCAAA;EAAA,mEAAA;EAAA,yEAAA;EAAA,mEAAA;EAAA,0EAAA;EAAA,yEAAA;EAAA,uEAAA;EAAA,uHAAA;EAAA,sEAAA;EAAA,uCAAA;EAAA,qEAAA;EAAA,8EAAA;Line truncated
File diff suppressed because it is too large. Load diff
+7
View File
@@ -0,0 +1,7 @@
/*!
* Bootstrap Utilities v6.0.0-alpha.2 (https://getbootstrap.com/)
* Copyright 2011-2026 The Bootstrap Authors
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
:root,:host{--bs-blue-025:color-mix(in oklch, var(--bs-white) 94%, oklch(60% .24 240));--bs-blue-050:color-mix(in oklch, var(--bs-white) 90%, oklch(60% .24 240));--bs-blue-100:color-mix(in oklch, var(--bs-white) 80%, oklch(60% .24 240));--bs-blue-200:color-mix(in oklch, var(--bs-white) 60%, oklch(60% .24 240));--bs-blue-300:color-mix(in oklch, var(--bs-white) 40%, oklch(60% .24 240));--bs-blue-400:color-mix(in oklch, var(--bs-white) 20%, oklch(60% .24 240));--bs-blue-500:oklch(60% .24 240);--bs-blue-600:color-mix(in oklch, var(--bs-black) 16%, oklch(60% .24 240));--bs-blue-700:color-mix(in oklch, var(--bs-black) 32%, oklch(60% .24 240));--bs-blue-800:color-mix(in oklch, var(--bs-black) 48%, oklch(60% .24 240));--bs-blue-900:color-mix(in oklch, var(--bs-black) 64%, oklch(60% .24 240));--bs-blue-950:color-mix(in oklch, var(--bs-black) 70%, oklch(60% .24 240));--bs-blue-975:color-mix(in oklch, var(--bs-black) 76%, oklch(60% .24 240));--bs-indigo-025:color-mix(in oklch, var(--bs-white) 94%, oklch(56% .26 288));--bs-indigo-050:color-mix(in oklch, var(--bs-white) 90%, oklch(56% .26 288));--bs-indigo-100:color-mix(in oklch, var(--bs-white) 80%, oklch(56% .26 288));--bs-indigo-200:color-mix(in oklch, var(--bs-white) 60%, oklch(56% .26 288));--bs-indigo-300:color-mix(in oklch, var(--bs-white) 40%, oklch(56% .26 288));--bs-indigo-400:color-mix(in oklch, var(--bs-white) 20%, oklch(56% .26 288));--bs-indigo-500:oklch(56% .26 288);--bs-indigo-600:color-mix(in oklch, var(--bs-black) 16%, oklch(56% .26 288));--bs-indigo-700:color-mix(in oklch, var(--bs-black) 32%, oklch(56% .26 288));--bs-indigo-800:color-mix(in oklch, var(--bs-black) 48%, oklch(56% .26 288));--bs-indigo-900:color-mix(in oklch, var(--bs-black) 64%, oklch(56% .26 288));--bs-indigo-950:color-mix(in oklch, var(--bs-black) 70%, oklch(56% .26 288));--bs-indigo-975:color-mix(in oklch, var(--bs-black) 76%, oklch(56% .26 288));--bs-violet-025:color-mix(in oklch, var(--bs-white) 94%, oklch(56% .24 300));--bs-violet-050:color-mix(in oklch, var(--bs-white) 90%, oklch(56% .24 300));--bs-violet-100:color-mix(in oklch, var(--bs-white) 80%, oklch(56% .24 300));--bs-violet-200:color-mix(in oklch, var(--bs-white) 60%, oklch(56% .24 300));--bs-violet-300:color-mix(in oklch, var(--bs-white) 40%, oklch(56% .24 300));--bs-violet-400:color-mix(in oklch, var(--bs-white) 20%, oklch(56% .24 300));--bs-violet-500:oklch(56% .24 300);--bs-violet-600:color-mix(in oklch, var(--bs-black) 16%, oklch(56% .24 300));--bs-violet-700:color-mix(in oklch, var(--bs-black) 32%, oklch(56% .24 300));--bs-violet-800:color-mix(in oklch, var(--bs-black) 48%, oklch(56% .24 300));--bs-violet-900:color-mix(in oklch, var(--bs-black) 64%, oklch(56% .24 300));--bs-violet-950:color-mix(in oklch, var(--bs-black) 70%, oklch(56% .24 300));--bs-violet-975:color-mix(in oklch, var(--bs-black) 76%, oklch(56% .24 300));--bs-purple-025:color-mix(in oklch, var(--bs-white) 94%, oklch(56% .24 320));--bs-purple-050:color-mix(in oklch, var(--bs-white) 90%, oklch(56% .24 320));--bs-purple-100:color-mix(in oklch, var(--bs-white) 80%, oklch(56% .24 320));--bs-purple-200:color-mix(in oklch, var(--bs-white) 60%, oklch(56% .24 320));--bs-purple-300:color-mix(in oklch, var(--bs-white) 40%, oklch(56% .24 320));--bs-purple-400:color-mix(in oklch, var(--bs-white) 20%, oklch(56% .24 320));--bs-purple-500:oklch(56% .24 320);--bs-purple-600:color-mix(in oklch, var(--bs-black) 16%, oklch(56% .24 320));--bs-purple-700:color-mix(in oklch, var(--bs-black) 32%, oklch(56% .24 320));--bs-purple-800:color-mix(in oklch, var(--bs-black) 48%, oklch(56% .24 320));--bs-purple-900:color-mix(in oklch, var(--bs-black) 64%, oklch(56% .24 320));--bs-purple-950:color-mix(in oklch, var(--bs-black) 70%, oklch(56% .24 320));--bs-purple-975:color-mix(in oklch, var(--bs-black) 76%, oklch(56% .24 320));--bs-pink-025:color-mix(in oklch, var(--bs-white) 94%, oklch(60% .22 4));--bs-pink-050:color-mix(in oklch, var(--bs-white) 90%, oklch(60% .22 4));--bs-pink-100:color-mix(in oklch, var(--bs-white) 80%, oklch(60% .22 4));--bs-pink-200:color-mix(in oklch, var(--bs-white) 60%, oklch(60% .22 4));--bs-pink-300:color-mix(in oklch, var(--bs-white) 40%, oklch(60% .22 4));--bs-pink-400:color-mix(in oklch, var(--bs-white) 20%, oklch(60% .22 4));--bs-pink-500:oklch(60% .22 4);--bs-pink-600:color-mix(in oklch, var(--bs-black) 16%, oklch(60% .22 4));--bs-pink-700:color-mix(in oklch, var(--bs-black) 32%, oklch(60% .22 4));--bs-pink-800:color-mix(in oklch, var(--bs-black) 48%, oklch(60% .22 4));--bs-pink-900:color-mix(in oklch, var(--bs-black) 64%, oklch(60% .22 4));--bs-pink-950:color-mix(in oklch, var(--bs-black) 70%, oklch(60% .22 4));--bs-pink-975:color-mix(in oklch, var(--bs-black) 76%, oklch(60% .22 4));--bs-red-025:color-mix(in oklch, var(--bs-white) 94%, oklch(60% .22 20));--bs-red-050:color-mix(in oklch, var(--bs-white) 90%, oklch(60% .22 20));--bs-red-100:color-mix(in oklch, var(--bs-white) 80%, oklch(60% .22 20));--bs-red-200:color-mix(in oklch, var(--bs-white) 60Line truncated
/*# sourceMappingURL=bootstrap-utilities.min.css.map */
@@ -0,0 +1 @@
{"version":3,"sourceRoot":null,"mappings":";;;;;AE6GA,0qdEtGA,wEAAA,eCNE,yHCoBA,4LCKM,8CDLN,8MAOE,iJGPF,4hBAUE,wHFLI,8CEKJ,+DAYE,yICtCJ,mEAMA,sEAWI,6DAMA,mECmGF,sBDzGE,iEAMA,wECmGF,sBDzGE,iEAMA,wECmGF,uBDzGE,iEAMA,wECmGF,uBDzGE,iEAMA,wECmGF,uBDzGE,qEAMA,4EExBJ,4CAIA,0NAUE,mEAMA,mED4ME,0BClNF,uEAMA,wED4ME,0BClNF,uEAMA,wED4ME,2BClNF,uEAMA,wED4ME,2BClNF,uEAMA,wED4ME,2BClNF,2EAMA,4EEqEA,8ZAAA,oZAAA,8ZAAA,oZAAA,8ZAAA,gYAAA,8ZAAA,kbAnBF,6PDjEA,uGAKA,uDEXA,kQCeA,4HAKA,oGCHA,8CAGE,oGCpBF,yEEAA,0JCKE,8BDLF,8BhBIF,iBkBqOI,wCAAA,8BAAA,oCAAA,oCAAA,8CAAA,wCAAA,6CAA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A,mFAAA,8CAAA,mFAAA,kFAAA,yFAAA,yEAAA,iDAAA,uCAAA,qCAAA,2CAAA,yDAAA,4DAAA,4DAAA,4DAAA,6BAAA,6BAAA,oEAAA,0EAAA,2EAAA,yEAAA,0EAAA,wEAAA,0EAAA,yEAAA,0EAAA,uEAAA,sEAAA,2EAAA,2FAAA,oCAAA,0CAAA,2CAAA,yCAAA,0CAAA,wCAAA,0CAAA,yCAAA,0CAAA,uCAAA,sCAAA,2CAAA,2DAAA,qEAAA,iFAAA,mFAAA,+EAAA,iFAAA,6EAAA,iFAAA,+EAAA,iFAAA,2EAAA,mJAAA,8EAAA,gHAAA,iEAAA,6EAAA,+Line truncated
+19421
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
{"version":3,"sources":["bootstrap.css","../../scss/_banner.scss","../../scss/_colors.scss","../../scss/mixins/_tokens.scss","../../scss/_root.scss","../../scss/content/_reboot.scss","../../scss/mixins/_border-radius.scss","../../scss/content/_lists.scss","../../scss/mixins/_lists.scss","../../scss/content/_blockquote.scss","../../scss/content/_tables.scss","../../scss/layout/_breakpoints.scss","../../scss/content/_images.scss","../../scss/mixins/_image.scss","../../scss/mixins/_box-shadow.scss","../../scss/content/_prose.scss","../../scss/mixins/_transition.scss","../../scss/layout/_containers.scss","../../scss/_config.scss","../../scss/layout/_grid.scss","../../scss/mixins/_grid.scss","../../scss/forms/_labels.scss","../../scss/forms/_form-text.scss","../../scss/forms/_form-control.scss","../../scss/mixins/_focus-ring.scss","../../scss/forms/_check.scss","../../scss/mixins/_mask-icon.scss","../../scss/mixins/_forced-colors.scss","../../scss/forms/_radio.scss","../../scss/forms/_switch.scss","../../scss/forms/_form-range.scss","../../scss/mixins/_gradients.scss","../../scss/forms/_floating-labels.scss","../../scss/forms/_input-group.scss","../../scss/forms/_strength.scss","../../scss/forms/_otp-input.scss","../../scss/forms/_form-adorn.scss","../../scss/forms/_combobox-control.scss","../../scss/forms/_combobox.scss","../../scss/forms/_datepicker.scss","../../scss/mixins/_text-truncate.scss","../../scss/forms/_form-field.scss","../../scss/forms/_validation.scss","../../scss/mixins/_form-validation.scss","../../scss/buttons/_button.scss","../../scss/buttons/_button-group.scss","../../scss/buttons/_close.scss","../../scss/_accordion.scss","../../scss/_alert.scss","../../scss/_avatar.scss","../../scss/_badge.scss","../../scss/_breadcrumb.scss","../../scss/_chip.scss","../../scss/_card.scss","../../scss/_carousel.scss","../../scss/_dialog.scss","../../scss/mixins/_dialog-shared.scss","../../scss/_menu.scss","../../scss/_list-group.scss","../../scss/_nav.scss","../../scss/_nav-overflow.scss","../../scss/_navbar.scss","../../scss/_drawer.scss","../../scss/_pagination.scss","../../scss/_placeholder.scss","../../scss/_popover.scss","../../scss/mixins/_reset-text.scss","../../scss/_progress.scss","../../scss/_spinner.scss","../../scss/_stepper.scss","../../scss/_toasts.scss","../../scss/_tooltip.scss","../../scss/_transitions.scss","../../scss/helpers/_focus-ring.scss","../../scss/helpers/_hover-lift.scss","../../scss/helpers/_icon-link.scss","../../scss/helpers/_position.scss","../../scss/helpers/_stacks.scss","../../scss/helpers/_theme-colors.scss","../../scss/_theme.scss","../../scss/helpers/_visually-hidden.scss","../../scss/mixins/_visually-hidden.scss","../../scss/helpers/_stretched-link.scss","../../scss/helpers/_text-truncation.scss","../../scss/helpers/_vr.scss","../../scss/mixins/_utilities.scss","../../scss/utilities/_api.scss"],"names":[],"mappings":"AAAA,gBAAgB;ACEhB;;;;GAAA;AC2GA;;ECxGI,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,qCAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,uCAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;EAAA,iFAAA;E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AA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,qCAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,gFAAA;EAAA,gFAAA;EAAA,gFAAA;EAAA,gFAAA;EAAA,gFAAA;EAAA,gFAAA;EAAA,sCAAA;EAAA,gFAAA;EAAA,gFAAA;EAAA,gFAAA;EAAA,gFAAA;EAAA,gFAAA;EAAA,gFAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,qCAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,qCAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,qCAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EAAA,+EAAA;EALine truncated
+1 -6
View File
@@ -1,7 +1,2 @@
@charset "UTF-8";/*!
* Bootstrap v5.1.3 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors
* Copyright 2011-2021 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/:root{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-body-color-rgb:33,37,41;--bs-body-bg-rgb:255,255,255;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;background-color:currentColor;border:0;opacity:.25}hr:not([size]){height:1px}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}.h1,h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,h1{font-size:2.5rem}}.h2,h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.h2,h2{font-size:2rem}}.h3,h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){.h3,h3{font-size:1.75rem}}.h4,h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.h4,h4{font-size:1.5rem}}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[data-bs-original-title],abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}.small,small{font-size:.875em}.mark,mark{padding:.2em;background-color:#fcf8e3}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#0d6efd;text-decoration:underline}a:hover{color:#0a58ca}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:var(--bs-font-monospace);font-size:1em;direction:ltr;unicode-bidi:bidi-override}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:#d63384;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:1em;font-weight:700}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]::-webkit-calendar-picker-indicator{display:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:iLine truncated
:root,:host{--bs-blue-025:color-mix(in oklch, var(--bs-white) 94%, oklch(60% .24 240));--bs-blue-050:color-mix(in oklch, var(--bs-white) 90%, oklch(60% .24 240));--bs-blue-100:color-mix(in oklch, var(--bs-white) 80%, oklch(60% .24 240));--bs-blue-200:color-mix(in oklch, var(--bs-white) 60%, oklch(60% .24 240));--bs-blue-300:color-mix(in oklch, var(--bs-white) 40%, oklch(60% .24 240));--bs-blue-400:color-mix(in oklch, var(--bs-white) 20%, oklch(60% .24 240));--bs-blue-500:oklch(60% .24 240);--bs-blue-600:color-mix(in oklch, var(--bs-black) 16%, oklch(60% .24 240));--bs-blue-700:color-mix(in oklch, var(--bs-black) 32%, oklch(60% .24 240));--bs-blue-800:color-mix(in oklch, var(--bs-black) 48%, oklch(60% .24 240));--bs-blue-900:color-mix(in oklch, var(--bs-black) 64%, oklch(60% .24 240));--bs-blue-950:color-mix(in oklch, var(--bs-black) 70%, oklch(60% .24 240));--bs-blue-975:color-mix(in oklch, var(--bs-black) 76%, oklch(60% .24 240));--bs-indigo-025:color-mix(in oklch, var(--bs-white) 94%, oklch(56% .26 288));--bs-indigo-050:color-mix(in oklch, var(--bs-white) 90%, oklch(56% .26 288));--bs-indigo-100:color-mix(in oklch, var(--bs-white) 80%, oklch(56% .26 288));--bs-indigo-200:color-mix(in oklch, var(--bs-white) 60%, oklch(56% .26 288));--bs-indigo-300:color-mix(in oklch, var(--bs-white) 40%, oklch(56% .26 288));--bs-indigo-400:color-mix(in oklch, var(--bs-white) 20%, oklch(56% .26 288));--bs-indigo-500:oklch(56% .26 288);--bs-indigo-600:color-mix(in oklch, var(--bs-black) 16%, oklch(56% .26 288));--bs-indigo-700:color-mix(in oklch, var(--bs-black) 32%, oklch(56% .26 288));--bs-indigo-800:color-mix(in oklch, var(--bs-black) 48%, oklch(56% .26 288));--bs-indigo-900:color-mix(in oklch, var(--bs-black) 64%, oklch(56% .26 288));--bs-indigo-950:color-mix(in oklch, var(--bs-black) 70%, oklch(56% .26 288));--bs-indigo-975:color-mix(in oklch, var(--bs-black) 76%, oklch(56% .26 288));--bs-violet-025:color-mix(in oklch, var(--bs-white) 94%, oklch(56% .24 300));--bs-violet-050:color-mix(in oklch, var(--bs-white) 90%, oklch(56% .24 300));--bs-violet-100:color-mix(in oklch, var(--bs-white) 80%, oklch(56% .24 300));--bs-violet-200:color-mix(in oklch, var(--bs-white) 60%, oklch(56% .24 300));--bs-violet-300:color-mix(in oklch, var(--bs-white) 40%, oklch(56% .24 300));--bs-violet-400:color-mix(in oklch, var(--bs-white) 20%, oklch(56% .24 300));--bs-violet-500:oklch(56% .24 300);--bs-violet-600:color-mix(in oklch, var(--bs-black) 16%, oklch(56% .24 300));--bs-violet-700:color-mix(in oklch, var(--bs-black) 32%, oklch(56% .24 300));--bs-violet-800:color-mix(in oklch, var(--bs-black) 48%, oklch(56% .24 300));--bs-violet-900:color-mix(in oklch, var(--bs-black) 64%, oklch(56% .24 300));--bs-violet-950:color-mix(in oklch, var(--bs-black) 70%, oklch(56% .24 300));--bs-violet-975:color-mix(in oklch, var(--bs-black) 76%, oklch(56% .24 300));--bs-purple-025:color-mix(in oklch, var(--bs-white) 94%, oklch(56% .24 320));--bs-purple-050:color-mix(in oklch, var(--bs-white) 90%, oklch(56% .24 320));--bs-purple-100:color-mix(in oklch, var(--bs-white) 80%, oklch(56% .24 320));--bs-purple-200:color-mix(in oklch, var(--bs-white) 60%, oklch(56% .24 320));--bs-purple-300:color-mix(in oklch, var(--bs-white) 40%, oklch(56% .24 320));--bs-purple-400:color-mix(in oklch, var(--bs-white) 20%, oklch(56% .24 320));--bs-purple-500:oklch(56% .24 320);--bs-purple-600:color-mix(in oklch, var(--bs-black) 16%, oklch(56% .24 320));--bs-purple-700:color-mix(in oklch, var(--bs-black) 32%, oklch(56% .24 320));--bs-purple-800:color-mix(in oklch, var(--bs-black) 48%, oklch(56% .24 320));--bs-purple-900:color-mix(in oklch, var(--bs-black) 64%, oklch(56% .24 320));--bs-purple-950:color-mix(in oklch, var(--bs-black) 70%, oklch(56% .24 320));--bs-purple-975:color-mix(in oklch, var(--bs-black) 76%, oklch(56% .24 320));--bs-pink-025:color-mix(in oklch, var(--bs-white) 94%, oklch(60% .22 4));--bs-pink-050:color-mix(in oklch, var(--bs-white) 90%, oklch(60% .22 4));--bs-pink-100:color-mix(in oklch, var(--bs-white) 80%, oklch(60% .22 4));--bs-pink-200:color-mix(in oklch, var(--bs-white) 60%, oklch(60% .22 4));--bs-pink-300:color-mix(in oklch, var(--bs-white) 40%, oklch(60% .22 4));--bs-pink-400:color-mix(in oklch, var(--bs-white) 20%, oklch(60% .22 4));--bs-pink-500:oklch(60% .22 4);--bs-pink-600:color-mix(in oklch, var(--bs-black) 16%, oklch(60% .22 4));--bs-pink-700:color-mix(in oklch, var(--bs-black) 32%, oklch(60% .22 4));--bs-pink-800:color-mix(in oklch, var(--bs-black) 48%, oklch(60% .22 4));--bs-pink-900:color-mix(in oklch, var(--bs-black) 64%, oklch(60% .22 4));--bs-pink-950:color-mix(in oklch, var(--bs-black) 70%, oklch(60% .22 4));--bs-pink-975:color-mix(in oklch, var(--bs-black) 76%, oklch(60% .22 4));--bs-red-025:color-mix(in oklch, var(--bs-white) 94%, oklch(60% .22 20));--bs-red-050:color-mix(in oklch, var(--bs-white) 90%, oklch(60% .22 20));--bs-red-100:color-mix(in oklch, var(--bs-white) 80%, oklch(60% .22 20));--bs-red-200:color-mix(in oklch, var(--bs-white) 60Line truncated
/*# sourceMappingURL=bootstrap.min.css.map */
+1
View File
@@ -0,0 +1 @@
{"version":3,"sourceRoot":null,"mappings":"AE6GA,0qdEtGA,0BAAA,cCkEE,uCAWA,gDAiBA,wCAaA,4UAcA,sIAYA,sUAUA,yCAMA,yCAMA,wCAMA,wCAMA,wCAMA,wCAWA,+DAWA,sKAOA,qGAOA,6EAQA,oDAKA,qDAOA,wCAOA,mEAMA,0DAOA,uCAEE,4BASF,kDASA,uDAOA,uOAaA,4GAQA,kBACA,cAIA,oPAKE,mTAYA,qFASF,mEAaA,0KAUE,2DAOF,wFAME,qBAKF,oYAQE,gCAUF,mCAMA,8BASA,mDAKA,+EASA,sDAKA,kFAeA,2BAOA,uBAUA,2CAMA,yGAWA,mGAGE,0LASF,6BAIA,wBAME,0BAQF,6IASA,0EAOI,2HAQJ,yBAWA,iDAYA,8LASE,4BAQF,iDAAA,uCAAA,oDAAA,+CAAA,+CAAA,6CAAA,iDAAA,6CAAA,4CAAA,6CAAA,8CAAA,6CAgBA,+CAIA,wCAAA,wCAWA,+DAKE,8EASF,+DASA,oDAMA,yCAOA,8DAOA,4BAQA,yCASA,iCAQA,iCDvpBF,caYI,2NN4GA,sBM5FI,2CN4FJ,sBM5FI,0DN4FJ,uBM5FI,yEN4FJ,uBM5FI,yFN4FJ,uBM5FI,4GE7BJ,gHAGE,qECiEA,gBAIA,sCApBJ,iGAAA,iGAAA,iGAAA,iGAAA,iGAAA,iGAgCI,+BAMI,gCAIE,8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DlBE,uJAYA,uFAIE,kHAIA,kJAKE,kFAQA,oJAOF,sFCtBJ,0BDlBE,uJAYA,uFAIE,kHAIA,kJAKE,kFAQA,oJAOLine truncated
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

+10384
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"bootstrap.bundle.js","names":["isElement","isRTL","isElement","Data","NAME","EVENT_KEY","CLASS_NAME_SHOW","NAME","EVENT_KEY","DATA_API_KEY","CLASS_NAME_ACTIVE","SELECTOR_DATA_TOGGLE","EVENT_CLICK_DATA_API","EVENT_DOM_CONTENT_LOADED","NAME","EVENT_KEY","DATA_API_KEY","ARROW_LEFT_KEY","ARROW_RIGHT_KEY","EVENT_KEYDOWN","EVENT_MOUSEENTER","EVENT_MOUSELEAVE","EVENT_POINTERDOWN","EVENT_LOAD_DATA_API","EVENT_CLICK_DATA_API","CLASS_NAME_ACTIVE","SELECTOR_INNER","Default","DefaultType","isRTL","decodeFragment","NAME","EVENT_KEY","DATA_API_KEY","EVENT_SHOW","EVENT_SHOWN","EVENT_HIDE","EVENT_HIDDEN","EVENT_CLICK_DATA_API","CLASS_NAME_SHOW","SELECTOR_DATA_TOGGLE","Default","DefaultType","computePosition","arrow","flip","offset","shift","size","getComputedStyle","NAME","EVENT_KEY","DATA_API_KEY","ESCAPE_KEY","TAB_KEY","ARROW_UP_KEY","ARROW_DOWN_KEY","ARROW_LEFT_KEY","ARROW_RIGHT_KEY","HOME_KEY","END_KEY","ENTER_KEY","SPACE_KEY","EVENT_HIDE","EVENT_HIDDEN","EVENT_SHOW","EVENT_SHOWN","EVENT_CLICK_DATA_API","CLASS_NAME_SHOW","SELECTOR_DATA_TOGGLE","SELECTOR_MENU","SELECTOR_VISIBLE_ITEMS","isRTL","Default","DefaultType","isElement","NAME","EVENT_KEY","DATA_API_KEY","ESCAPE_KEY","ARROW_UP_KEY","ARROW_DOWN_KEY","HOME_KEY","END_KEY","EVENT_CHANGE","EVENT_CLICK_DATA_API","CLASS_NAME_SHOW","SELECTOR_DATA_TOGGLE","SELECTOR_MENU","Default","DefaultType","NAME","EVENT_KEY","DATA_API_KEY","EVENT_CHANGE","EVENT_SHOW","EVENT_SHOWN","EVENT_HIDE","EVENT_HIDDEN","EVENT_FOCUSIN","EVENT_POINTERDOWN","EVENT_CLICK","EVENT_CLICK_DATA_API","SELECTOR_DATA_TOGGLE","EVENT_KEYDOWN","Default","DefaultType","Calendar","months","Data","NAME","EVENT_KEY","DATA_API_KEY","EVENT_CLICK_DATA_API","CLASS_NAME_INSTANT","SELECTOR_DATA_TOGGLE","Default","DefaultType","NAME","EVENT_KEY","EVENT_RESIZE","CLASS_NAME_SHOW","SELECTOR_MENU","SELECTOR_MENU_TOGGLE","Default","DefaultType","NAME","EVENT_KEY","EVENT_POINTERDOWN","EVENT_POINTERUP","Default","DefaultType","NAME","EVENT_KEY","DATA_API_KEY","EVENT_LOAD_DATA_API","EVENT_RESIZE","EVENT_CLICK_DATA_API","SELECTOR_DATA_TOGGLE","Default","DefaultType","NAME","EVENT_KEY","DATA_API_KEY","Default","DefaultType","NAME","EVENT_KEY","DATA_API_KEY","EVENT_INPUT","SELECTOR_INPUT","Default","DefaultType","NAME","Default","DefaultType","isElement","NAME","DISALLOWED_ATTRIBUTES","CLASS_NAME_SHOW","SELECTOR_DATA_TOGGLE","EVENT_HIDE","EVENT_HIDDEN","EVENT_SHOW","EVENT_SHOWN","EVENT_CLICK","EVENT_FOCUSIN","EVENT_FOCUSOUT","EVENT_MOUSEENTER","EVENT_KEYDOWN","isRTL","Default","DefaultType","NAME","SELECTOR_DATA_TOGGLE","EVENT_CLICK","EVENT_FOCUSIN","Default","DefaultType","NAME","EVENT_KEY","DATA_API_KEY","Default","DefaultType","NAME","EVENT_KEY","EVENT_CLICK","EVENT_LOAD_DATA_API","CLASS_NAME_ACTIVE","SELECTOR_MENU_TOGGLE","Default","DefaultType","NAME","EVENT_KEY","EVENT_HIDE","EVENT_HIDDEN","EVENT_SHOW","EVENT_SHOWN","CLASS_NAME_SHOW","SELECTOR_DATA_TOGGLE","NAME","EVENT_KEY","DefaultType","Default"],"sources":["../../js/src/dom/data.ts","../../js/src/dom/event-handler.ts","../../js/src/dom/manipulator.ts","../../js/src/util/index.ts","../../js/src/util/config.ts","../../js/src/base-component.ts","../../js/src/dom/selector-engine.ts","../../js/src/util/component-functions.ts","../../js/src/alert.ts","../../js/src/button.ts","../../js/src/carousel.ts","../../js/src/util/hash-target.ts","../../js/src/collapse.ts","../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs","../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs","../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs","../../js/src/util/floating-ui.ts","../../js/src/menu.ts","../../js/src/combobox.ts","../../node_modules/vanilla-calendar-pro/index.mjs","../../js/src/datepicker.ts","../../js/src/util/scroll-lock.ts","../../js/src/dialog-base.ts","../../js/src/dialog.ts","../../js/src/util/sanitizer.ts","../../js/src/nav-overflow.ts","../../js/src/util/swipe.ts","../../js/src/drawer.ts","../../js/src/strength.ts","../../js/src/otp-input.ts","../../js/src/util/template-factory.ts","../../js/src/tooltip.ts","../../js/src/popover.ts","../../js/src/range.ts","../../js/src/scrollspy.ts","../../js/src/tab.ts","../../js/src/toast.ts","../../js/src/toggler.ts"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/data.ts\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * Constants\n */\n\nconst elementMap = new Map<Element, Map<string, unknown>>()\n\nexport default {\n set(element: Element, key: string, instance: unknown): void {\n if (!elementMap.has(element)) {\n elementMap.set(element, new Map())\n }\n\n const instanceMap = elementMap.get(element)!\n\n instanceMap.set(key, instance)\n },\n\n get(element: Element | null, key: string): any {\n if (elemLine truncated
+9
View File
@@ -0,0 +1,9 @@
/*!
* Bootstrap v6.0.0-alpha.2 (https://getbootstrap.com/)
* Copyright 2011-2026 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
const elementMap=new Map;var data_default={set(e,t,n){elementMap.has(e)||elementMap.set(e,new Map),elementMap.get(e).set(t,n)},get:(e,t)=>e&&elementMap.has(e)&&elementMap.get(e).get(t)||null,remove(e,t){if(!elementMap.has(e))return;const n=elementMap.get(e);n.delete(t),0===n.size&&elementMap.delete(e)}};const namespaceRegex=/[^.]*(?=\..*)\.|.*/,stripNameRegex=/\..*/,stripUidRegex=/::\d+$/,eventRegistry={};let uidEvent=1;const customEvents={mouseenter:"mouseover",mouseleave:"mouseout"},nativeEvents=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","input","compositionstart","compositionupdate","compositionend","paste","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerover","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll","scrollend","hashchange"]);function makeEventUid(e,t){return t&&`${t}::${uidEvent++}`||e.uidEvent||uidEvent++}function getElementEvents(e){const t=makeEventUid(e);return e.uidEvent=t,eventRegistry[t]=eventRegistry[t]||{},eventRegistry[t]}function isMouseEventWithinTarget(e){const{delegateTarget:t,relatedTarget:n}=e;return Boolean(n&&t.contains(n))}function bootstrapHandler(e,t,n){const i=n in customEvents;return function s(o){const a=hydrateObj(o,{delegateTarget:e});if(!i||!isMouseEventWithinTarget(a))return s.oneOff&&EventHandler.off(e,n,t),t.apply(e,[a])}}function bootstrapDelegationHandler(e,t,n,i){const s=i in customEvents;return function o(a){const r=e.querySelectorAll(t);for(let{target:l}=a;l&&l!==this;l=l.parentNode)for(const c of r){if(c!==l)continue;const r=hydrateObj(a,{delegateTarget:l});if(s&&isMouseEventWithinTarget(r))return;return o.oneOff&&EventHandler.off(e,i,t,n),n.apply(l,[r])}}}function findHandler(e,t,n,i=null){return Object.values(e).find(e=>e.callable===t&&e.handlerTypeEvent===n&&e.delegationSelector===i)}function normalizeParameters(e,t,n){const i="string"==typeof t,s=i?n:t||n,o=e.replace(stripNameRegex,"");let a=customEvents[o]||o;return nativeEvents.has(a)||(a=e),{isDelegated:i,callable:s,typeEvent:a,handlerTypeEvent:o in customEvents?o:a}}function addHandler(e,t,n,i,s){if("string"!=typeof t||!e)return;const{isDelegated:o,callable:a,typeEvent:r,handlerTypeEvent:l}=normalizeParameters(t,n,i),c=getElementEvents(e),h=c[r]||(c[r]={}),u=findHandler(h,a,l,o?n:null);if(u)return void(u.oneOff=u.oneOff&&s);const d=makeEventUid(a,t.replace(namespaceRegex,"")),_=o?bootstrapDelegationHandler(e,n,a,l):bootstrapHandler(e,a,l);_.delegationSelector=o?n:null,_.callable=a,_.handlerTypeEvent=l,_.oneOff=s,_.uidEvent=d,h[d]=_,e.addEventListener(r,_,o)}function removeHandler(e,t,n,i){e.removeEventListener(n,i,Boolean(i.delegationSelector)),delete t[n][i.uidEvent]}function removeNamespacedHandlers(e,t,n,i){const s=t[n]||{};for(const[o,a]of Object.entries(s))o.includes(i)&&removeHandler(e,t,n,a)}function trigger(e,t,n){if("string"!=typeof t||!e)return null;const i=hydrateObj(new Event(t,{bubbles:!0,cancelable:!0}),n);return e.dispatchEvent(i),i}const EventHandler={on(e,t,n,i){addHandler(e,t,n,i,!1)},one(e,t,n,i){addHandler(e,t,n,i,!0)},off(e,t,n,i){if("string"!=typeof t||!e)return;const{isDelegated:s,callable:o,typeEvent:a,handlerTypeEvent:r}=normalizeParameters(t,n,i),l=a!==t&&r!==t,c=getElementEvents(e),h=c[a]||{},u=t.startsWith(".");if(void 0!==o){if(!Object.keys(h).length)return;const t=findHandler(h,o,r,s?n:null);return void(t&&removeHandler(e,c,a,t))}if(u)for(const n of Object.keys(c))removeNamespacedHandlers(e,c,n,t.slice(1));for(const[n,i]of Object.entries(h)){const s=n.replace(stripUidRegex,"");i.handlerTypeEvent!==r||l&&!t.includes(s)||removeHandler(e,c,a,i)}},trigger:trigger};function hydrateObj(e,t={}){for(const[n,i]of Object.entries(t))try{e[n]=i}catch{Object.defineProperty(e,n,{configurable:!0,get:()=>i})}return e}function normalizeData(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function normalizeDataKey(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Manipulator={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${normalizeDataKey(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${normalizeDataKey(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=normalizeData(e.dataset[i])}return t},getDataAttribute:(e,t)=>normalizeData(e.getAttribute(`data-bs-${normalizeDataKey(t)}`))},MAX_UID=1e6,MILLISECONDS_MULTIPLIELine truncated
/*! name: vanilla-calendar-pro v3.4.0 | url: https://github.com/uvarov-frontend/vanilla-calendar-pro */
var e=e=>new Date(`${e}T00:00:00`),t=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,n=(n,i)=>n.reduce((n,s)=>{if(s instanceof Date||"number"==typeof s){let e=s instanceof Date?s:new Date(s);n.push(t(e))}else s.match(/^(\d{4}-\d{2}-\d{2})$/g)?n.push(s):s.replace(/(\d{4}-\d{2}-\d{2}).*?(\d{4}-\d{2}-\d{2})/g,(s,o,a)=>{var r;let l=`${o}:${a}`,c=i?i.start.getTime():-1/0,h=null==i||null==(r=i.cursors)?void 0:r.get(l),u=void 0!==h&&h<=c?new Date(h):e(o),d=e(a).setHours(23,59,59,999);if(i){if(d<c)return s;d=Math.min(d,new Date(i.end).setHours(23,59,59,999))}let _=!1;for(let e=u.getTime();e<=d;e=u.setDate(u.getDate()+1))(!i||e>=c)&&(null!=i&&i.cursors&&!_&&(i.cursors.set(l,e),_=!0),n.push(t(u)));return s});return n},[]),a=(e,t)=>{if(t&&t.values.length===e.length){let n=0;for(;n<e.length&&t.values[n]===e[n];)n++;if(n===e.length)return t}return{values:e.slice(),set:new Set(e)}},l=new WeakMap,o=e=>{var t;let i=null!=(t=e.selectedHolidays)&&t[0]?e.selectedHolidays:[],s=JSON.stringify(i.map(e=>e instanceof Date?e.getTime():e)),o=l.get(e);l.set(e,{holidayKey:s,holidays:(null==o?void 0:o.holidayKey)===s?o.holidays:new Set(n(i)),selected:a(e.context.selectedDates,null==o?void 0:o.selected),disabled:a(e.context.disableDates,null==o?void 0:o.disabled),enabled:a(e.context.enableDates,null==o?void 0:o.enabled),min:Date.parse(`${e.context.displayDateMin}T00:00:00`),max:Date.parse(`${e.context.displayDateMax}T00:00:00`),first:Date.parse(`${e.context.selectedDates[0]}T00:00:00`),last:Date.parse(`${e.context.selectedDates[e.context.selectedDates.length-1]}T00:00:00`)})},r=e=>l.get(e),i=["motion","time","annotations","weeks","months"],s=new WeakMap,c={},d=Object.freeze([]),u=e=>{var t;return null==(t=s.get(e))?c:t},m=(e,t=e)=>{if(t.extensions&&t.extensions!==e.extensions&&(new Set(t.extensions).size!==e.extensions.length||t.extensions.some(t=>!e.extensions.includes(t))))throw Error("Calendar extensions are fixed at construction. Create a new Calendar to change them.");let n=u(e),i=(e,t,i)=>{if(e&&!n[t])throw Error(`The "${i}" option requires ${t}. Import { ${t} } from 'vanilla-calendar-pro' and add it to extensions: [${t}].`)};i(t.animation||t.enableSwipe,"motion",t.animation?"animation":"enableSwipe"),i(t.selectionTimeMode,"time","selectionTimeMode"),i(t.popups&&Object.keys(t.popups).length||t.onCreateDateRangeTooltip,"annotations",t.onCreateDateRangeTooltip?"onCreateDateRangeTooltip":"popups"),i("multiple"===t.type,"months","type"),i("week"===t.type||t.enableCollapse||t.enableWeekNumbers||t.onClickWeekDay,"weeks","week"===t.type?"type":t.enableCollapse?"enableCollapse":t.enableWeekNumbers?"enableWeekNumbers":"onClickWeekDay")},p=(e,t,n)=>{var i;return null==(i=u(e).annotations)?void 0:i.tooltip(e,t,n)},h=new WeakMap,v=e=>{let t=h.get(e);return t||(t={lastDateEl:null,isHovering:!1,rangeMin:void 0,rangeMax:void 0,tooltipEl:null,timeoutId:null,frameId:null},h.set(e,t)),t},y=e=>{e.context.mainElement.querySelectorAll("[data-vc-date-hover]").forEach(e=>e.removeAttribute("data-vc-date-hover"))},g=(e,t,n)=>{e.context[t]=n},f=(e,t)=>void 0===t||("function"==typeof t?t(e):t),x=e=>f(e,e.enableDateToggle),b=e=>{if(e.length<3||e.includes(void 0))return e.sort((e,t)=>+new Date(e)-new Date(t));let t=e.map(e=>({date:e,time:+new Date(e)}));return t.sort((e,t)=>e.time-t.time),t.forEach((t,n)=>e[n]=t.date),e},D=e=>{var t;let n=h.get(e);n&&(null==(t=n.cleanup)||t.call(n),n.cleanup=void 0,null!==n.timeoutId&&clearTimeout(n.timeoutId),null!==n.frameId&&cancelAnimationFrame(n.frameId),n.lastDateEl=null,n.tooltipEl=null,n.timeoutId=null,n.frameId=null,h.delete(e))},M=(i,s,o=!0)=>{let a=v(i);if(a.lastDateEl=s,y(i),!a.cleanup){let n=i.context.mainElement,s=(n=>i=>{if(!n.context.selectedDates[0]||1!==n.context.selectedDates.length&&!n.onCreateDateRangeTooltip)return;let s=v(n);if(s.isHovering)return;let o=i.target;s.isHovering=!0,s.frameId=requestAnimationFrame(()=>{var i;s.frameId=null,s.isHovering=!1,!n.context.isDestroyed&&n.context.mainElement.contains(o)&&(1===n.context.selectedDates.length?((n,i)=>{var s;let o=v(n);if(n.context.mainElement.hasAttribute("data-vc-dragging")||!i||null==n||null==(s=n.context)||!s.selectedDates[0])return;if(!i.closest('[data-vc="dates"]'))return o.lastDateEl=null,p(n,o.tooltipEl,null),void y(n);let a=i.closest("[data-vc-date]");if(!a||o.lastDateEl===a)return;o.lastDateEl=a,p(n,o.tooltipEl,a),y(n);let r=a.dataset.vcDate,l=e(n.context.selectedDates[0]),c=e(r),[h,u]=l<c?[l,c]:[c,l],[d,_]=l<c?[n.context.selectedDates[0],r]:[r,n.context.selectedDates[0]],m=new Set(n.context.disableDates),g=new Date(h);for(;g<=u&&m.has(t(g));)g.setDate(g.getDate()+1);g<=u&&n.context.mainElement.querySelectorAll("[data-vc-date]").forEach(t=>{let n=t.dataset.vcDate;if(n===d||n===_)t.dataset.vcDateHover=d===_?"first-and-last":n===d?"first":"last";else{let i=e(n);i>=h&&i<=u&&!m.has(n)&&(t.dataset.vcDateHover="")}})})(n,o):n.context.selectedDates[0]&&n.onCreateDateRangeTooltip&&(null==(i=u(nLine truncated
//# sourceMappingURL=bootstrap.bundle.min.js.map
@@ -0,0 +1 @@
{"version":3,"names":["elementMap","Map","data_default","set","element","key","instance","has","get","remove","instanceMap","delete","size","namespaceRegex","stripNameRegex","stripUidRegex","eventRegistry","uidEvent","customEvents","mouseenter","mouseleave","nativeEvents","Set","makeEventUid","uid","getElementEvents","isMouseEventWithinTarget","event","delegateTarget","relatedTarget","Boolean","contains","bootstrapHandler","fn","handlerTypeEvent","isCustomMouseEvent","handler","bootstrapEvent","hydrateObj","oneOff","EventHandler","off","apply","bootstrapDelegationHandler","selector","domElements","querySelectorAll","target","this","parentNode","domElement","findHandler","events","callable","delegationSelector","Object","values","find","normalizeParameters","originalTypeEvent","delegationFunction","isDelegated","baseTypeEvent","replace","typeEvent","addHandler","handlers","previousFunction","addEventListener","removeHandler","removeEventListener","removeNamespacedHandlers","namespace","storeElementEvent","handlerKey","entries","includes","trigger","args","evt","Event","bubbles","cancelable","dispatchEvent","on","one","inNamespace","isNamespace","startsWith","keys","length","elementEvent","slice","keyHandlers","obj","meta","value","defineProperty","configurable","normalizeData","Number","toString","JSON","parse","decodeURIComponent","normalizeDataKey","chr","toLowerCase","Manipulator","setDataAttribute","setAttribute","removeDataAttribute","removeAttribute","getDataAttributes","attributes","bsKeys","dataset","filter","pureKey","charAt","getDataAttribute","getAttribute","MAX_UID","MILLISECONDS_MULTIPLIER","TRANSITION_END","parseSelector","window","CSS","escape","match","id","toType","object","prototype","call","getUID","prefix","Math","floor","random","document","getElementById","getTransitionDurationFromElement","transitionDuration","transitionDelay","getComputedStyle","parseFloat","split","triggerTransitionEnd","isElement","nodeType","getElement","querySelector","isVisible","getClientRects","elementIsVisible","getPropertyValue","closedDetails","closest","summary","isDisabled","Node","ELEMENT_NODE","classList","disableableElement","disabled","hasAttribute","setAriaAttribute","name","String","findShadowRoot","documentElement","attachShadow","getRootNode","root","ShadowRoot","noop","isRTL","dir","execute","possibleCallback","defaultValue","executeAfterTransition","callback","transitionElement","waitForTransition","emulatedDuration","cancel","timeout","setTimeout","clearTimeout","getNextActiveElement","list","activeElement","shouldGetNext","isCycleAllowed","listLength","index","indexOf","max","min","Config","Default","DefaultType","NAME","Error","_getConfig","config","_mergeConfigObj","_configAfterMerge","_typeCheckConfig","jsonConfig","constructor","configTypes","property","expectedTypes","valueType","RegExp","test","TypeError","toUpperCase","VERSION","BaseComponent","super","_element","_config","existingInstance","Data","DATA_KEY","dispose","EVENT_KEY","propertyName","getOwnPropertyNames","_queueCallback","isAnimated","Promise","resolve","getInstance","getOrCreateInstance","eventName","getSelector","hrefAttribute","trim","map","sel","join","SelectorEngine","Element","findOne","parents","ancestor","push","prev","previous","previousElementSibling","matches","next","nextElementSibling","getSelectorFromElement","getElementFromSelector","getMultipleElementsFromSelector","enableDismissTrigger","component","method","clickEvent","usesNativeDialog","tagName","preventDefault","HTMLDialogElement","eventActionOnPlugin","Plugin","onEvent","stringSelector","eventAction","data","instances","targets","onDocumentReady","readyState","EVENT_CLOSE","EVENT_CLOSED","CLASS_NAME_HIDING","CLASS_NAME_SHOW","Alert","close","defaultPrevented","add","_destroyElement","DATA_API_KEY","CLASS_NAME_ACTIVE","SELECTOR_DATA_TOGGLE","EVENT_CLICK_DATA_API","EVENT_DOM_CONTENT_LOADED","Button","toggle","button","ARROW_LEFT_KEY","ARROW_RIGHT_KEY","DIRECTION_LEFT","DIRECTION_RIGHT","EVENT_SLIDE","EVENT_SLID","EVENT_KEYDOWN","EVENT_MOUSEENTER","EVENT_MOUSELEAVE","EVENT_POINTERDOWN","EVENT_LOAD_DATA_API","CLASS_NAME_CAROUSEL","CLASS_NAME_FADE","CLASS_NAME_CENTER","CLASS_NAME_AUTO","CLASS_NAME_CLONE","CLASS_NAME_PAUSED","CLASS_NAME_PLAYING","PROPERTY_INTERVAL","SCROLL_DURATION","ACTIVE_RATIO_TOLERANCE","SELECTOR_ACTIVE","SELECTOR_ITEM","SELECTOR_ACTIVE_ITEM","SELECTOR_INNER","SELECTOR_INDICATORS","SELECTOR_PLAY_PAUSE","SELECTOR_DATA_SLIDE","SELECTOR_DATA_SLIDE_PREV","SELECTOR_DATA_SLIDE_NEXT","SELECTOR_DATA_AUTOPLAY","ENDS_STOP","ENDS_WRAP","ENDS_LOOP","autoplay","ends","interval","keyboard","pause","easeInOutCubic","progress","Carousel","_viewport","_indicatorsElement","_playPauseElement","_prevControls","_nextControls","_interval","_observer","_scrollFrame","_looping","_visibility","_playing","_activeIndex","_initialActiveIndex","_addEventListeners","_observeItems","_refreshActiveState","cycle","_updatePlayPauseControl","to","_navIndex","nextWhenVisiblLine truncated
+7767
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"bootstrap.js","names":["Data","NAME","EVENT_KEY","CLASS_NAME_SHOW","NAME","EVENT_KEY","DATA_API_KEY","CLASS_NAME_ACTIVE","SELECTOR_DATA_TOGGLE","EVENT_CLICK_DATA_API","EVENT_DOM_CONTENT_LOADED","NAME","EVENT_KEY","DATA_API_KEY","ARROW_LEFT_KEY","ARROW_RIGHT_KEY","EVENT_KEYDOWN","EVENT_MOUSEENTER","EVENT_MOUSELEAVE","EVENT_POINTERDOWN","EVENT_LOAD_DATA_API","EVENT_CLICK_DATA_API","CLASS_NAME_ACTIVE","SELECTOR_INNER","Default","DefaultType","decodeFragment","NAME","EVENT_KEY","DATA_API_KEY","EVENT_SHOW","EVENT_SHOWN","EVENT_HIDE","EVENT_HIDDEN","EVENT_CLICK_DATA_API","CLASS_NAME_SHOW","SELECTOR_DATA_TOGGLE","Default","DefaultType","NAME","EVENT_KEY","DATA_API_KEY","ESCAPE_KEY","TAB_KEY","ARROW_UP_KEY","ARROW_DOWN_KEY","ARROW_LEFT_KEY","ARROW_RIGHT_KEY","HOME_KEY","END_KEY","ENTER_KEY","SPACE_KEY","EVENT_HIDE","EVENT_HIDDEN","EVENT_SHOW","EVENT_SHOWN","EVENT_CLICK_DATA_API","CLASS_NAME_SHOW","SELECTOR_DATA_TOGGLE","SELECTOR_MENU","SELECTOR_VISIBLE_ITEMS","Default","DefaultType","NAME","EVENT_KEY","DATA_API_KEY","ESCAPE_KEY","ARROW_UP_KEY","ARROW_DOWN_KEY","HOME_KEY","END_KEY","EVENT_CHANGE","EVENT_CLICK_DATA_API","CLASS_NAME_SHOW","SELECTOR_DATA_TOGGLE","SELECTOR_MENU","Default","DefaultType","NAME","EVENT_KEY","DATA_API_KEY","EVENT_CHANGE","EVENT_SHOW","EVENT_SHOWN","EVENT_HIDE","EVENT_HIDDEN","EVENT_FOCUSIN","EVENT_POINTERDOWN","EVENT_CLICK","EVENT_CLICK_DATA_API","SELECTOR_DATA_TOGGLE","EVENT_KEYDOWN","Default","DefaultType","Data","NAME","EVENT_KEY","DATA_API_KEY","EVENT_CLICK_DATA_API","CLASS_NAME_INSTANT","SELECTOR_DATA_TOGGLE","Default","DefaultType","NAME","EVENT_KEY","EVENT_RESIZE","CLASS_NAME_SHOW","SELECTOR_MENU","SELECTOR_MENU_TOGGLE","Default","DefaultType","NAME","EVENT_KEY","EVENT_POINTERDOWN","EVENT_POINTERUP","Default","DefaultType","NAME","EVENT_KEY","DATA_API_KEY","EVENT_LOAD_DATA_API","EVENT_RESIZE","EVENT_CLICK_DATA_API","SELECTOR_DATA_TOGGLE","Default","DefaultType","NAME","EVENT_KEY","DATA_API_KEY","Default","DefaultType","NAME","EVENT_KEY","DATA_API_KEY","EVENT_INPUT","SELECTOR_INPUT","Default","DefaultType","NAME","Default","DefaultType","NAME","DISALLOWED_ATTRIBUTES","CLASS_NAME_SHOW","SELECTOR_DATA_TOGGLE","EVENT_HIDE","EVENT_HIDDEN","EVENT_SHOW","EVENT_SHOWN","EVENT_CLICK","EVENT_FOCUSIN","EVENT_FOCUSOUT","EVENT_MOUSEENTER","EVENT_KEYDOWN","Default","DefaultType","NAME","SELECTOR_DATA_TOGGLE","EVENT_CLICK","EVENT_FOCUSIN","Default","DefaultType","NAME","EVENT_KEY","DATA_API_KEY","Default","DefaultType","NAME","EVENT_KEY","EVENT_CLICK","EVENT_LOAD_DATA_API","CLASS_NAME_ACTIVE","SELECTOR_MENU_TOGGLE","Default","DefaultType","NAME","EVENT_KEY","EVENT_HIDE","EVENT_HIDDEN","EVENT_SHOW","EVENT_SHOWN","CLASS_NAME_SHOW","SELECTOR_DATA_TOGGLE","NAME","EVENT_KEY","DefaultType","Default"],"sources":["../../js/src/dom/data.ts","../../js/src/dom/event-handler.ts","../../js/src/dom/manipulator.ts","../../js/src/util/index.ts","../../js/src/util/config.ts","../../js/src/base-component.ts","../../js/src/dom/selector-engine.ts","../../js/src/util/component-functions.ts","../../js/src/alert.ts","../../js/src/button.ts","../../js/src/carousel.ts","../../js/src/util/hash-target.ts","../../js/src/collapse.ts","../../js/src/util/floating-ui.ts","../../js/src/menu.ts","../../js/src/combobox.ts","../../js/src/datepicker.ts","../../js/src/util/scroll-lock.ts","../../js/src/dialog-base.ts","../../js/src/dialog.ts","../../js/src/util/sanitizer.ts","../../js/src/nav-overflow.ts","../../js/src/util/swipe.ts","../../js/src/drawer.ts","../../js/src/strength.ts","../../js/src/otp-input.ts","../../js/src/util/template-factory.ts","../../js/src/tooltip.ts","../../js/src/popover.ts","../../js/src/range.ts","../../js/src/scrollspy.ts","../../js/src/tab.ts","../../js/src/toast.ts","../../js/src/toggler.ts"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/data.ts\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * Constants\n */\n\nconst elementMap = new Map<Element, Map<string, unknown>>()\n\nexport default {\n set(element: Element, key: string, instance: unknown): void {\n if (!elementMap.has(element)) {\n elementMap.set(element, new Map())\n }\n\n const instanceMap = elementMap.get(element)!\n\n instanceMap.set(key, instance)\n },\n\n get(element: Element | null, key: string): any {\n if (element && elementMap.has(element)) {\n return elementMap.get(element)!.get(key) || null\n }\n\n return null\n },\n\n remove(element: Element, key: string): void {\n if (!elementMap.has(element)) {\n return\n }\n\n const instanceMap = elementMap.get(element)!\n\n instanceMap.delete(key)\n\n // free up element references if there are no instances left for an element\n if (instanceMap.size === 0) {\n elementMap.delete(element)\n }\n }\n}\n","/**\n * --------Line truncated
+7
View File
@@ -0,0 +1,7 @@
/*!
* Bootstrap v6.0.0-alpha.2 (https://getbootstrap.com/)
* Copyright 2011-2026 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
import{arrow,autoUpdate,computePosition,flip,offset,shift,size}from"@floating-ui/dom";import{Calendar,months}from"vanilla-calendar-pro";const elementMap=new Map;var data_default={set(e,t,n){elementMap.has(e)||elementMap.set(e,new Map),elementMap.get(e).set(t,n)},get:(e,t)=>e&&elementMap.has(e)&&elementMap.get(e).get(t)||null,remove(e,t){if(!elementMap.has(e))return;const n=elementMap.get(e);n.delete(t),0===n.size&&elementMap.delete(e)}};const namespaceRegex=/[^.]*(?=\..*)\.|.*/,stripNameRegex=/\..*/,stripUidRegex=/::\d+$/,eventRegistry={};let uidEvent=1;const customEvents={mouseenter:"mouseover",mouseleave:"mouseout"},nativeEvents=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","input","compositionstart","compositionupdate","compositionend","paste","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerover","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll","scrollend","hashchange"]);function makeEventUid(e,t){return t&&`${t}::${uidEvent++}`||e.uidEvent||uidEvent++}function getElementEvents(e){const t=makeEventUid(e);return e.uidEvent=t,eventRegistry[t]=eventRegistry[t]||{},eventRegistry[t]}function isMouseEventWithinTarget(e){const{delegateTarget:t,relatedTarget:n}=e;return Boolean(n&&t.contains(n))}function bootstrapHandler(e,t,n){const i=n in customEvents;return function s(o){const r=hydrateObj(o,{delegateTarget:e});if(!i||!isMouseEventWithinTarget(r))return s.oneOff&&EventHandler.off(e,n,t),t.apply(e,[r])}}function bootstrapDelegationHandler(e,t,n,i){const s=i in customEvents;return function o(r){const a=e.querySelectorAll(t);for(let{target:l}=r;l&&l!==this;l=l.parentNode)for(const h of a){if(h!==l)continue;const a=hydrateObj(r,{delegateTarget:l});if(s&&isMouseEventWithinTarget(a))return;return o.oneOff&&EventHandler.off(e,i,t,n),n.apply(l,[a])}}}function findHandler(e,t,n,i=null){return Object.values(e).find(e=>e.callable===t&&e.handlerTypeEvent===n&&e.delegationSelector===i)}function normalizeParameters(e,t,n){const i="string"==typeof t,s=i?n:t||n,o=e.replace(stripNameRegex,"");let r=customEvents[o]||o;return nativeEvents.has(r)||(r=e),{isDelegated:i,callable:s,typeEvent:r,handlerTypeEvent:o in customEvents?o:r}}function addHandler(e,t,n,i,s){if("string"!=typeof t||!e)return;const{isDelegated:o,callable:r,typeEvent:a,handlerTypeEvent:l}=normalizeParameters(t,n,i),h=getElementEvents(e),_=h[a]||(h[a]={}),c=findHandler(_,r,l,o?n:null);if(c)return void(c.oneOff=c.oneOff&&s);const u=makeEventUid(r,t.replace(namespaceRegex,"")),d=o?bootstrapDelegationHandler(e,n,r,l):bootstrapHandler(e,r,l);d.delegationSelector=o?n:null,d.callable=r,d.handlerTypeEvent=l,d.oneOff=s,d.uidEvent=u,_[u]=d,e.addEventListener(a,d,o)}function removeHandler(e,t,n,i){e.removeEventListener(n,i,Boolean(i.delegationSelector)),delete t[n][i.uidEvent]}function removeNamespacedHandlers(e,t,n,i){const s=t[n]||{};for(const[o,r]of Object.entries(s))o.includes(i)&&removeHandler(e,t,n,r)}function trigger(e,t,n){if("string"!=typeof t||!e)return null;const i=hydrateObj(new Event(t,{bubbles:!0,cancelable:!0}),n);return e.dispatchEvent(i),i}const EventHandler={on(e,t,n,i){addHandler(e,t,n,i,!1)},one(e,t,n,i){addHandler(e,t,n,i,!0)},off(e,t,n,i){if("string"!=typeof t||!e)return;const{isDelegated:s,callable:o,typeEvent:r,handlerTypeEvent:a}=normalizeParameters(t,n,i),l=r!==t&&a!==t,h=getElementEvents(e),_=h[r]||{},c=t.startsWith(".");if(void 0!==o){if(!Object.keys(_).length)return;const t=findHandler(_,o,a,s?n:null);return void(t&&removeHandler(e,h,r,t))}if(c)for(const n of Object.keys(h))removeNamespacedHandlers(e,h,n,t.slice(1));for(const[n,i]of Object.entries(_)){const s=n.replace(stripUidRegex,"");i.handlerTypeEvent!==a||l&&!t.includes(s)||removeHandler(e,h,r,i)}},trigger:trigger};function hydrateObj(e,t={}){for(const[n,i]of Object.entries(t))try{e[n]=i}catch{Object.defineProperty(e,n,{configurable:!0,get:()=>i})}return e}function normalizeData(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function normalizeDataKey(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Manipulator={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${normalizeDataKey(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${normalizeDataKey(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=normalizeData(e.dataset[iLine truncated
//# sourceMappingURL=bootstrap.min.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"names":["elementMap","Map","data_default","set","element","key","instance","has","get","remove","instanceMap","delete","size","namespaceRegex","stripNameRegex","stripUidRegex","eventRegistry","uidEvent","customEvents","mouseenter","mouseleave","nativeEvents","Set","makeEventUid","uid","getElementEvents","isMouseEventWithinTarget","event","delegateTarget","relatedTarget","Boolean","contains","bootstrapHandler","fn","handlerTypeEvent","isCustomMouseEvent","handler","bootstrapEvent","hydrateObj","oneOff","EventHandler","off","apply","bootstrapDelegationHandler","selector","domElements","querySelectorAll","target","this","parentNode","domElement","findHandler","events","callable","delegationSelector","Object","values","find","normalizeParameters","originalTypeEvent","delegationFunction","isDelegated","baseTypeEvent","replace","typeEvent","addHandler","handlers","previousFunction","addEventListener","removeHandler","removeEventListener","removeNamespacedHandlers","namespace","storeElementEvent","handlerKey","entries","includes","trigger","args","evt","Event","bubbles","cancelable","dispatchEvent","on","one","inNamespace","isNamespace","startsWith","keys","length","elementEvent","slice","keyHandlers","obj","meta","value","defineProperty","configurable","normalizeData","Number","toString","JSON","parse","decodeURIComponent","normalizeDataKey","chr","toLowerCase","Manipulator","setDataAttribute","setAttribute","removeDataAttribute","removeAttribute","getDataAttributes","attributes","bsKeys","dataset","filter","pureKey","charAt","getDataAttribute","getAttribute","MAX_UID","MILLISECONDS_MULTIPLIER","TRANSITION_END","parseSelector","window","CSS","escape","match","id","toType","object","prototype","call","getUID","prefix","Math","floor","random","document","getElementById","getTransitionDurationFromElement","transitionDuration","transitionDelay","getComputedStyle","parseFloat","split","triggerTransitionEnd","isElement","nodeType","getElement","querySelector","isVisible","getClientRects","elementIsVisible","getPropertyValue","closedDetails","closest","summary","isDisabled","Node","ELEMENT_NODE","classList","disableableElement","disabled","hasAttribute","setAriaAttribute","name","String","findShadowRoot","documentElement","attachShadow","getRootNode","root","ShadowRoot","noop","isRTL","dir","execute","possibleCallback","defaultValue","executeAfterTransition","callback","transitionElement","waitForTransition","emulatedDuration","cancel","timeout","setTimeout","clearTimeout","getNextActiveElement","list","activeElement","shouldGetNext","isCycleAllowed","listLength","index","indexOf","max","min","Config","Default","DefaultType","NAME","Error","_getConfig","config","_mergeConfigObj","_configAfterMerge","_typeCheckConfig","jsonConfig","constructor","configTypes","property","expectedTypes","valueType","RegExp","test","TypeError","toUpperCase","VERSION","BaseComponent","super","_element","_config","existingInstance","Data","DATA_KEY","dispose","EVENT_KEY","propertyName","getOwnPropertyNames","_queueCallback","isAnimated","Promise","resolve","getInstance","getOrCreateInstance","eventName","getSelector","hrefAttribute","trim","map","sel","join","SelectorEngine","Element","findOne","parents","ancestor","push","prev","previous","previousElementSibling","matches","next","nextElementSibling","getSelectorFromElement","getElementFromSelector","getMultipleElementsFromSelector","enableDismissTrigger","component","method","clickEvent","usesNativeDialog","tagName","preventDefault","HTMLDialogElement","eventActionOnPlugin","Plugin","onEvent","stringSelector","eventAction","data","instances","targets","onDocumentReady","readyState","EVENT_CLOSE","EVENT_CLOSED","CLASS_NAME_HIDING","CLASS_NAME_SHOW","Alert","close","defaultPrevented","add","_destroyElement","DATA_API_KEY","CLASS_NAME_ACTIVE","SELECTOR_DATA_TOGGLE","EVENT_CLICK_DATA_API","EVENT_DOM_CONTENT_LOADED","Button","toggle","button","ARROW_LEFT_KEY","ARROW_RIGHT_KEY","DIRECTION_LEFT","DIRECTION_RIGHT","EVENT_SLIDE","EVENT_SLID","EVENT_KEYDOWN","EVENT_MOUSEENTER","EVENT_MOUSELEAVE","EVENT_POINTERDOWN","EVENT_LOAD_DATA_API","CLASS_NAME_CAROUSEL","CLASS_NAME_FADE","CLASS_NAME_CENTER","CLASS_NAME_AUTO","CLASS_NAME_CLONE","CLASS_NAME_PAUSED","CLASS_NAME_PLAYING","PROPERTY_INTERVAL","SCROLL_DURATION","ACTIVE_RATIO_TOLERANCE","SELECTOR_ACTIVE","SELECTOR_ITEM","SELECTOR_ACTIVE_ITEM","SELECTOR_INNER","SELECTOR_INDICATORS","SELECTOR_PLAY_PAUSE","SELECTOR_DATA_SLIDE","SELECTOR_DATA_SLIDE_PREV","SELECTOR_DATA_SLIDE_NEXT","SELECTOR_DATA_AUTOPLAY","ENDS_STOP","ENDS_WRAP","ENDS_LOOP","autoplay","ends","interval","keyboard","pause","easeInOutCubic","progress","Carousel","_viewport","_indicatorsElement","_playPauseElement","_prevControls","_nextControls","_interval","_observer","_scrollFrame","_looping","_visibility","_playing","_activeIndex","_initialActiveIndex","_addEventListeners","_observeItems","_refreshActiveState","cycle","_updatePlayPauseControl","to","_navIndex","nextWhenVisiblLine truncated
+65
View File
@@ -0,0 +1,65 @@
const printer_status = document.getElementById("status-printers");
const number_task = document.getElementById("number-task");
const url = "/api/printers"
const queue_url = "/api/queue"
try {
// Call the printer API
const res = await fetch(url, { method: "GET" });
if (!res.ok) {
throw new Error(`Request failed: ${res.status}`);
}
const printers = await res.json();
console.log(printers);
if (printers != null) {
// We have at least one printer
if (printers.length >= 1) {
if (printers[0]["Ready"]) {
console.log("We have at least one printer Ready");
printer_status.classList.remove("bg-danger");
printer_status.classList.add("bg-success");
printer_status.setAttribute('title',"A printer is ready");
} else {
console.log("No printer is ready :(");
printer_status.setAttribute('title',"No printers ready");
}
} else {
console.log("No printers available...");
printer_status.setAttribute('title',"No printers found");
}
} else {
console.log("Could not get printer status");
}
} catch (error) {
console.error("Error:", error);
}
var interval = 3000;
setInterval(async () => {
try {
// Call the printer API
const res = await fetch(queue_url, { method: "GET" });
if (!res.ok) {
interval = interval + 100;
console.log("Interval ; " + interval)
throw new Error(`Request failed: ${res.status}`);
}
const current_queue = await res.json();
console.log("Current queue :" + current_queue);
if (current_queue != null) {
// We have at least one printer
number_task.textContent = current_queue.length;
} else {
console.log("Could not get printer status");
}
} catch (error) {
console.error("Error:", error);
}
}, interval);
+61 -40
View File
@@ -189,17 +189,27 @@ function setup_events(){
flip_cameras();
}, false );
printButton.addEventListener('click', async function(ev) {
printButton.addEventListener("click", async function (ev) {
ev.preventDefault();
try {
await countDownToPicture(); // wait for countdown to finish
var data = await take_picture(); // take_picture can be async
print_picture(data);
} catch (e) {
alert("Failed to print a picture because : " + e);
}
}, false);
printButton.disabled = true;
try {
await countDownToPicture();
const data = await take_picture();
if (!data) {
console.error("Print failed: No image was captured");
} else {
console.log("Printing picture");
const print_status = await print_picture(data);
}
} catch (e) {
console.error("Print failed:", e);
alert(`Failed to print: ${e.message || e}`);
} finally {
printButton.disabled = false;
}
});
}
function clear_canvas() {
@@ -224,45 +234,56 @@ function dataURLtoFile(dataurl, filename) {
return new File([u8arr], filename, {type:mime});
}
async function take_picture() {
const context = canvas.getContext('2d');
let data = null;
if (width && height) {
canvas.width = width;
canvas.height = height;
context.drawImage(video, 0, 0, width, height);
data = canvas.toDataURL('image/png');
photo.setAttribute('src', data);
} else {
clear_canvas();
function take_picture() {
if (video.readyState < HTMLMediaElement.HAVE_CURRENT_DATA) {
throw new Error("Camera frame isn't ready yet");
}
const w = video.videoWidth;
const h = video.videoHeight;
if (!w || !h) {
console.log(`Invalid video dimensions: ${w} × ${h}`);
return null;
}
canvas.width = w;
canvas.height = h;
canvas.getContext("2d").drawImage(video, 0, 0, w, h);
const data = canvas.toDataURL("image/png");
console.log("Captured image:", data.slice(0, 30), "length:", data.length);
if (data.length < 100) {
console.log("Captured image is empty");
return null
}
return data;
}
function print_picture(data){
var url = "/api/print/img"
var picture = dataURLtoFile(data);
async function print_picture(data) {
const picture = dataURLtoFile(data, "picture.png");
const formData = new FormData();
let currentDate = new Date();
let time = currentDate.getHours() + ":" + currentDate.getMinutes() + ":" + currentDate.getSeconds();
console.log("Image file size:", picture.size, "type:", picture.type);
if (!picture.size) {
throw new Error("Image file is empty");
}
formData.set("img", picture, "picture.png");
formData.set("signature", "Webcam")
fetch(url, {
method: 'POST', // or 'PUT'
body: formData,
// headers:{
// 'Content-Type': 'multipart/form-data'
// }
}).then(function(response) {
console.log('Reponse:', response);
if(response.status != 200 ){
alert("The picture could not be printed be : " + response.statusText)
}
} , true)
.catch(error => console.error('Error:', error), false);
formData.set("signature", "Webcam");
formData.set("cut", true);
formData.set("process", false);
const res = await fetch("/api/print/img", {
method: "POST",
body: formData
});
if(!res.ok){
throw new Error("Printing failed" + res.statusText);
} else {
return true;
}
}
function flip_cameras(){
+41 -16
View File
@@ -14,6 +14,7 @@ to print at the same time.
We can also delay and store printing tasks until a printer becomes
available if none is online.
"""
from abc import ABC, abstractmethod
## See https://docs.python.org/3/library/abc.html to learn more about this
@@ -27,9 +28,11 @@ class TaskType(Enum):
"""
The different tasks supported by the printers
"""
TEXT = "text"
IMAGE = "image"
CUT = "cut"
QR = "qr"
REMOVE = "remove"
class PrintTask(ABC):
@@ -37,18 +40,17 @@ class PrintTask(ABC):
A print task holds information about what we are looking to print.
"""
def __init__(self, task_type):
def __init__(self, task_type: TaskType, do_cut=False):
self.task_id = self._generate_id()
self.task_type = task_type
self.status = "pending" # pending, processing, completed, failed
print("Created a new " + str(self.task_type) + " with ID " + self.task_id)
self.log = ""
self.do_cut = do_cut
@abstractmethod
def get_print_data(self):
"""Return data formatted for printer"""
def _generate_id(self):
# Generate unique task ID
return str(uuid.uuid4())
@@ -59,13 +61,27 @@ class TextTask(PrintTask):
This tasks represents a texte content, and it's signature.
"""
def __init__(self, content, signature):
super().__init__(TaskType.TEXT)
def __init__(self, content, signature="", do_cut=False, align="center",font_size=20):
super().__init__(TaskType.TEXT, do_cut)
self.content = content
self.signature = signature
self.align = align
self.font_size = font_size
def get_print_data(self):
return {"txt": self.content, "sign": self.signature}
return {"txt": self.content, "sign": self.signature, "do_cut": self.do_cut, "align": self.align, "font_size": self.font_size}
class QRTask(TextTask):
"""This task prints a QR-Code, the signature is ignore and is always the content itself"""
def __init__(self, content, do_cut):
super().__init__(content, signature="", do_cut=False)
self.content = content
self.signature = content
def get_print_data(self):
return {"txt": self.content, "sign": self.signature, "do_cut": self.do_cut}
class ImageTask(PrintTask):
@@ -73,26 +89,35 @@ class ImageTask(PrintTask):
This tasks represents a image content ( in the form of it's path ), and it's signature.
"""
def __init__(self, image_path, signature, process):
super().__init__(TaskType.IMAGE)
def __init__(self, image_path, signature, process, task_id, do_cut):
super().__init__(TaskType.IMAGE, do_cut)
self.task_id = self._generate_id() if not task_id else task_id
self.image_path = image_path
self.signature = signature
self.process = process
def get_print_data(self):
# Return image data in printer-compatible format
return {"img": self.image_path, "sign": self.signature, "process": self.process}
return {
"img": self.image_path,
"sign": self.signature,
"process": self.process,
"do_cut": self.do_cut,
}
class CutTask(PrintTask):
class RemoveTask(PrintTask):
"""
This class activates the cutter on the printer if it exists
This class is used to clear images and leftovers after a print
"""
def __init__(self):
super().__init__(TaskType.CUT)
def __init__(self, image_path):
super().__init__(TaskType.REMOVE)
self.task_id = self._generate_id()
self.image_path = image_path
# There is no print data,
# the task existence in itself is indication of what to do
def get_print_data(self):
return None
# Return image data in printer-compatible format
return {"img": self.image_path}
+1 -1
View File
@@ -5,6 +5,6 @@
<title>LittlePrynter API</title>
</head>
<body>
"Welcome to the printing software's API. Please see the index page to get started.
Welcome to the printing software's API. Please see the index page to get started.
</body>
</html>
+16 -3
View File
@@ -19,9 +19,22 @@
<a class="nav-link active" aria-current="page" href="/">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/webcam">Webcam</a>
<a class="nav-link" href="/webcam"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-webcam" viewBox="0 0 16 16">
<path d="M0 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H9.269c.144.162.33.324.531.475a7 7 0 0 0 .907.57l.014.006.003.002A.5.5 0 0 1 10.5 13h-5a.5.5 0 0 1-.224-.947l.003-.002.014-.007a5 5 0 0 0 .268-.148 7 7 0 0 0 .639-.421c.2-.15.387-.313.531-.475H2a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1z"/>
<path d="M8 6.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2m-2 1a2 2 0 1 1 4 0 2 2 0 0 1-4 0m7 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0"/>
</svg> Photomaton</a>
</li>
</ul>
<div class="nav-item">
<button type="button" class="btn btn-outline theme-primary position-relative">
<a href="/queue">🖶</a>
<span class="badge position-absolute top-0 start-100 translate-middle bg-danger rounded-circle" id="status-printers" title="Javascript is disabled, could not get printer status."><span id="number-task">0</span>
<span class="visually-hidden"></span>
</span>
</button>
</div>
</div>
</nav>
@@ -45,7 +58,6 @@
{% endif %}
{% endwith %}
{% block content %}
@@ -53,9 +65,10 @@
<hr>
<footer class="row">
<p class=" text-center">Little Prynter is built by <a href="https://n07070.xyz/about-me/">n07070</a> because it's fun :) | <a href="https://git.n07070.xyz/n07070/littleprynter">Source code - AGPLv3</a></p>
<p class=" text-center">Little Prynter is built by <a href="https://n07070.xyz/about-me/">n07070</a> because it's fun :) | <a href="/api">API interface</a> | <a href="https://git.n07070.xyz/n07070/littleprynter">Source code - AGPLv3</a></p>
</footer>
</body>
<script src="https://cdn.socket.io/4.0.0/socket.io.min.js"></script>
<script type="module" src="{{ url_for('static', filename='js/status.js') }}"></script>
</html>
-5
View File
@@ -1,5 +0,0 @@
<hr>
<footer>Little Prynter is built by <a href="https://n07070.xyz/about-me/">n07070</a> because it's fun :) | <a href="https://git.n07070.xyz/n07070/littleprynter/src/branch/epson-tm-t20iii">Source code - AGPLv3</a></footer>
</div>
</body>
</html>
+96 -5
View File
@@ -6,9 +6,71 @@
<h3 class="card-header">Print a short message</h3>
<div class="card-body">
<form class="form-group" action="/web/print/sms" method="post">
<input class="form-control" type="text" name="txt" placeholder="200 chars or less " maxlength="200" required><br>
<input class="form-control" type="text" name="signature" placeholder="Signature or pseudo" maxlength="200"><br>
<input class="btn btn-primary float-right" type="submit" value="Imprimer" name="imprimer">
<div class="row g-3">
<textarea class="form-control col" type="text" name="txt" placeholder="4096 caractères maximum " maxlength="4096"></textarea>
<input class="form-control" type="text" name="signature" placeholder="Signature ou pseudo" maxlength="200"><br>
</div>
<div class="grid">
<div class="md:g-col-4 g-col-12">
<div class="input-group">
<label class="input-group-text">Taille du texte</label>
<input
type="number"
aria-label="how-many"
class="form-control"
name="font_size"
max="40"
min="1"
value="20"
>
</div>
</div>
<div class="input-group d-grid md:g-col-4 g-col-12 align-items-center">
<div class="btn-group btn-group-divider" role="group" aria-label="Text alignment">
<label class="btn-check btn-solid theme-secondary">
<input type="radio" name="text_align" value="left" checked>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-text-left" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M2 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5"/>
</svg> Left
</label>
<label class="btn-check btn-solid theme-secondary">
<input type="radio" name="text_align" value="center">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-text-center" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M4 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5m2-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5"/>
</svg> Center
</label>
<label class="btn-check btn-solid theme-secondary">
<input type="radio" name="text_align" value="right">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-text-right" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M6 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m-4-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5m4-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m-4-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5"/>
</svg> Right
</label>
</div>
</div>
<div class="md:g-col-4 g-col-12">
<div class="input-group">
<span class="input-group-text">Quantité</span>
<input type="number" aria-label="how-many" class="form-control" name="many" max="20" min="1" value="1">
</div>
</div>
</div>
<br>
<input class="g-4 btn btn-solid theme-primary" type="submit" value="Imprimer" name="imprimer">
<br>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="True" id="flexCheckDefault" name="cut" checked>
<label class="form-check-label" for="flexCheckDefault">
Couper après impression
</label>
</div>
</form>
</div>
</div>
@@ -20,9 +82,38 @@
<div class="card-body">
<form enctype="multipart/form-data" class="form-group" action="/web/print/img" method="post">
<input class="form-control" type="file" name="img" required><br>
<input class="form-control" type="text" name="signature" placeholder="Signature or pseudo" maxlength="200"><br>
<input class="btn btn-primary float-right" type="submit" value="Imprimer" name="imprimer">
<input class="form-control" type="text" name="signature" placeholder="Signature ou pseudo" maxlength="200"><br>
<div class="input-group">
<span class="input-group-text">Quantité</span>
<input type="number" aria-label="how-many" class="form-control" name="many" max="20" min="1" value="1">
<input class="btn btn-solid theme-primary float-right" type="submit" value="Imprimer" name="imprimer">
</div>
<br>
<div class="form-check .form-check-inline">
<input class="form-check-input" type="checkbox" value="True" id="flexCheckDefault" name="cut" checked>
<label class="form-check-label" for="flexCheckDefault">
Couper après impression
</label>
</div>
<div class="form-check .form-check-inline">
<input class="form-check-input" type="checkbox" value="True" id="flexCheckDefault" name="process">
<label class="form-check-label" for="flexCheckDefault" title="Essayer d'augmenter le contraste de l'image pour une meilleur définition d'impression en noir et blanc">
<details>
<summary>Traiter l'image ?</summary>
Un algorithme de traitement d'image va essayer d'augmenter le contraste de l'image pour qu'elle rendent mieux en impression noir et blanc. Mais cela risque de provoquer une perte de détails de l'image.
</details>
</label>
</div>
</form>
</div>
</div>
<br>
<div class="alert alert-light" role="alert">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-info-square-fill" viewBox="0 0 16 16"><path d="M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm8.93 4.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM8 5.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2"/></svg>
LittlePrynter is a fax-like application. It's used to print on thermal printers ( like the ones in supermarkets ) anything you'd like. If you are seeing this page from the internet, what you print will be received by the person taking care of the printer. <b>Please note that printing is done in black and white !</b>
</p>
</div>
{% endblock %}
View File
Whitespace-only changes.
-30
View File
@@ -1,30 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Log in</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="{{ url_for('static',filename='css/style.css') }}">
</head>
<body class="container">
<div class="col-md-6 offset-md-3">
<h1>Login</h1>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-{{ category }}" role="alert">{{ message }}</div>
{% endfor %}
{% endif %}
{% endwith %}
<form action="/login" method="post">
<div class="form-group">
<input type="text" name="username" class="form-control" placeholder="Pseudo">
<input type="password" name="password" class="form-control" placeholder="Password">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</body>
</html>
View File
Whitespace-only changes.
+153
View File
@@ -0,0 +1,153 @@
{% extends 'base.html' %}
{% block content %}
<h4 class="float-end">Worker state : {{ worker_state.state }}</h4>
<h3>Current tasks</h3>
<hr>
{% if not tasks %}
<div class="alert alert-success" role="alert" id="no-tasks">No tasks in queue</div>
{% endif %}
<div class="row row-cols-1 row-cols-md-5 g-4" id="task-list">
{% for task in tasks %}
<div class="col-sm-6 mb-3 mb-sm-0">
<div class="card">
{% if task.type == "TaskType.IMAGE" %}
{% set img_path = task.content.img.split('/')[-1] %}
<img src="{{ url_for('static', filename="uploads/" + img_path) }}" class="card-img-top" alt="Image could not be loaded">
{% endif %}
{% if task.type == "TaskType.CUT" %}
<img src="{{ url_for('static', filename="images/cut.png") }}" class="card-img-top" alt="Image could not be loaded">
{% endif %}
<div class="card-body">
{% if task.type == "TaskType.TEXT" %}
<p class="card-text">ID : <code>{{ task.content.txt }}</code> </p>
{% endif %}
<p class="card-text">ID : <code>{{ task.task_id }}</code> </p>
</div>
</div>
</div>
{% endfor %}
</div>
<br>
<h3>Completed tasks</h3>
<hr>
{% if not completed_tasks %}
<div class="alert alert-dark" role="alert">No tasks printed for the moment</div>
{% endif %}
{% for task in completed_tasks %}
{%if completed_tasks[task].status == "failed" %}
<div class="alert alert-error" role="alert">
<ul>
<li><code>{{ completed_tasks[task].task_id }}</code></li>
<li>Status : {{ completed_tasks[task].status }}</li>
<li>Finished at : {{ completed_tasks[task].completed_at }}</li>
<li>Info : {{ completed_tasks[task].log }}</li>
</ul>
</div>
{% else %}
<div class="alert alert-success" role="alert">
<ul>
<li><code>{{ completed_tasks[task].task_id }}</code></li>
<li>Status : {{ completed_tasks[task].status }}</li>
<li>Finished at : {{ completed_tasks[task].completed_at }}</li>
<li>Info : {{ completed_tasks[task].log }}</li>
</ul>
</div>
{% endif %}
{% endfor %}
<script>
const taskList = document.getElementById("task-list");
const queueUrl = "/api/queue";
// Create the alert message if it doesn't exist
// If there is a task, the element is not created
let noTasksAlert = document.getElementById("no-tasks");
if (!noTasksAlert) {
noTasksAlert = document.createElement("div");
noTasksAlert.textContent = "No tasks in queue";
noTasksAlert.className = "alert alert-success";
noTasksAlert.setAttribute("role", "alert");
noTasksAlert.id = "no-tasks";
taskList.before(noTasksAlert);
}
function renderTasks(tasks) {
taskList.replaceChildren();
noTasksAlert.hidden = tasks.length > 0;
for (const task of tasks) {
const col = document.createElement("div");
col.className = "col-sm-6 mb-3 mb-sm-0";
const card = document.createElement("div");
card.className = "card";
if (task.type === "TaskType.IMAGE") {
const img = document.createElement("img");
good_image_url = task.content.img.split('/').pop();
img.src = "/static/uploads/" + good_image_url;
img.className = "card-img-top";
img.alt = "Task image";
card.appendChild(img);
} else if (task.type === "TaskType.CUT") {
const img = document.createElement("img");
img.src = "/static/images/cut.png";
img.className = "card-img-top";
img.alt = "Cut task";
card.appendChild(img);
}
const body = document.createElement("div");
body.className = "card-body";
if (task.type === "TaskType.TEXT" && task.content?.txt) {
const text = document.createElement("p");
text.className = "card-text";
text.textContent = `Text: ${task.content.txt}`;
body.appendChild(text);
}
const code_id = document.createElement("code");
code_id.textContent = `${task.task_id}`;
const id = document.createElement("p");
id.className = "card-text";
id.textContent = "ID : "
id.appendChild(code_id);
body.appendChild(id);
card.appendChild(body);
col.appendChild(card);
taskList.appendChild(col);
}
}
async function updateTasks() {
try {
const response = await fetch(queueUrl);
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
const tasks = await response.json();
console.log(tasks);
renderTasks(Array.isArray(tasks) ? tasks : []);
} catch (error) {
console.error("Could not update task list:", error);
}
}
updateTasks(); // First update on page load
setInterval(updateTasks, 3000);
</script>
{% endblock %}
+89 -58
View File
@@ -1,115 +1,146 @@
from flask import flash
from werkzeug.utils import secure_filename
import time
"""
Manage all of the inputs from a web source
"""
import os
from task import TextTask, ImageTask, CutTask
from werkzeug.utils import secure_filename
import uuid
from task import TextTask, ImageTask, RemoveTask
class Web(object):
class Web:
"""Web is the class that gets all of the information from web calls
( API and Web page ) and provides checks before sending stuff to printing"""
( API and Web page ) and provides checks before sending stuff to printing"""
def __init__(self, app, print_queue):
super(Web).__init__()
self.print_queue = print_queue
self.app = app
def print_sms(self, texte, sign: str) -> bool:
def print_sms(self, texte, sign: str, do_cut: bool, many: int = 1, align: str = "center", font_size: int = 20) -> bool:
"""
Get text and a signature, prints the text and cuts after that.
"""
self.app.logger.debug("Printing : " + str(texte) + " from " + str(sign))
try:
# We create two new tasks and add them directly to the queue
# TODO: this might need to be improved because
# !! there is no garantee !! that both the SMS task and the Cut task
# are added back to back, another task could be
# inserted between the two.
sms = self.print_queue.enqueue(TextTask(content=texte, signature=sign))
cut = self.print_queue.enqueue(CutTask())
for i in range(many):
sms = self.print_queue.enqueue(
TextTask(content=texte, signature=sign, do_cut=do_cut, align=align,font_size=font_size)
)
self.app.logger.info(
"Added a SMS task at position %s, it should %scut",
sms,
"" if not do_cut else "not ",
)
self.app.logger.debug("%s", do_cut)
except Exception as e:
self.app.logger.error(e)
raise RuntimeError("Could not add SMS to queue, " + str(e)) from e
self.app.logger.info("Added two new tasks at position %s and %s", sms, cut)
return True
def print_image(self, image, sign: str) -> bool:
def print_image(
self, image, sign: str, do_cut: bool, process_image: bool, many: int = 1
) -> bool:
"""
Get an image and a signature, prints the image and cuts after that.
Get an image and a signature, prints the image and cuts if asked after that.
"""
image_uuid = str(uuid.uuid4())
try:
file_uploaded = self.upload_file(image)
file_uploaded = self.upload_file(image, image_uuid)
except Exception as e:
self.app.logger.error(e)
raise RuntimeError("Could not upload file") from e
raise RuntimeError("Could not upload file : " + str(e)) from e
if file_uploaded:
self.app.logger.debug("File has been uploaded, printing...")
image_path = os.path.join( self.app.config["UPLOAD_FOLDER"],
secure_filename(
str(
file_uploaded.split("/").pop()
)
),
)
try:
img = self.print_queue.enqueue(
ImageTask(
os.path.join(
self.app.config["UPLOAD_FOLDER"],
secure_filename(image.filename),
),
signature=sign,
process=True,
for _ in range(many):
img = self.print_queue.enqueue(
ImageTask(
image_path,
signature=sign,
process=process_image,
task_id=str(uuid.uuid4()),
do_cut=do_cut,
)
)
self.app.logger.info(
"Added a IMG task at position %s, it should %s cut",
img,
"not " if not do_cut else "",
)
)
cut = self.print_queue.enqueue(CutTask())
except Exception as e:
raise RuntimeError("Could not add IMG to queue" + str(e)) from e
self.app.logger.info("Added two new tasks at position %s and %s", img, cut)
raise RuntimeError("Could not add IMG to queue " + str(e)) from e
self.app.logger.debug("Adding a remove task for image of UUID %s", image_uuid)
self.print_queue.enqueue(
RemoveTask(image_path=image_path)
)
return True
def login(self, username: str, password: str) -> bool:
"""Not implemented"""
return
# def login(self, username: str, password: str) -> bool:
# """Not implemented"""
# return
def logout(self, username: str, password: str) -> bool:
"""Not implemented"""
return
# def logout(self, username: str, password: str) -> bool:
# """Not implemented"""
# return
def allowed_file(self, filename) -> bool:
self.app.logger.debug("Is the filename allowed ?")
"""
Check if the file extension is allowed
"""
self.app.logger.debug("Checking if the file extension is allowed")
return (
"." in filename
and filename.rsplit(".", 1)[1].lower()
in self.app.config["ALLOWED_EXTENSIONS"]
)
def upload_file(self, image) -> bool:
def upload_file(self, image, image_uuid) -> bool:
"""
Save the file after executing checks on it
"""
self.app.logger.debug("Validating file")
if image:
if not image is None or not image == "":
if self.allowed_file(image.filename):
filename = secure_filename(image.filename)
extension = filename.split(".").pop()
self.app.logger.debug("File valid")
try:
image.save(os.path.join(self.app.config["UPLOAD_FOLDER"], filename))
image_uuid_path = os.path.join(
self.app.config["UPLOAD_FOLDER"], image_uuid + "." + extension
)
image.save(image_uuid_path)
except OSError as e:
self.app.logger.error("Could not save file %s", e)
return False
raise RuntimeError(
"An OS error occured while uploading this file : " + str(e)
) from e
self.app.logger.debug(
"File saved to "
+ str(os.path.join(self.app.config["UPLOAD_FOLDER"], filename))
)
return True
else:
self.app.logger.error(
"Could not save file because the filename is forbidden"
)
return False
else:
self.app.logger.error(
"Could not save file, it seems to be null ? : " + str(filename)
)
return False
self.app.logger.debug("File saved to %s", image_uuid_path)
return image_uuid_path
self.app.logger.error("Could not save file because the filename is forbidden")
raise RuntimeError("This file type is forbidden.")
def get_queue_state(self):
"""Return current queue state"""
return self.print_queue.get_queue_state()
def get_queue_completed(self):
"""Return completed queue elements"""
return self.print_queue.get_queue_completed()
+142 -49
View File
@@ -1,85 +1,172 @@
# This is the main printing thread
# As explained in the task file, this is where we command
# printing to happen.
"""
This is the main printing thread. A worker thread consums Tasks from
a PrintQueue, while trying to find available printers.
"""
import threading
import time
import traceback
from uuid import uuid4
import os
class PrintWorker(threading.Thread):
def __init__(self, app, print_queue, printer, socketio=None):
"""
A thread used to consume Tasks added to a Print Queue.
On initialisation, the worker will try to find Printers,
and on each print, if the choosen Printer becomes unavailable, it
will choose an available Printer from a list of Printers.
If a print fails, it's not retried, but will be added to a list of completed
tasks. TODO : Change that
"""
def __init__(self, app, print_queue, printers_pool, printer_index=0):
super().__init__(daemon=True)
self.app = app
self.print_queue = print_queue
self.printer = printer
self.socketio = socketio # Optional
self.running = True
self.state = "idle" # idle, printing, dead, drinking-a-beer
self.id = str(uuid4())
self.app.logger.debug("Ho great, I'm alive... I'm ready to work another day...")
# All workers share the same pool of printers.
self.printers = printers_pool
self.printers_obj = self.printers.printers
# If we create several workers, we can assign an index
# so that we lookup the nth printer for the nth worker
self._printer_index = printer_index
self.printer = self._acquire_available_printer()
self.app.logger.debug(
"\t[⚙ %s][%s] is ready to work with printer %s",
self.id,
threading.get_ident(),
self.printer.printer_info.model,
)
def _acquire_available_printer(self):
result = self.printers.acquire_available_printer(
start_index=self._printer_index
)
if result is None:
return None
index, printer = result
# In case we need to lookup another printer, we don't
# look at the same printer in the printer list
self._printer_index = (index + 1) % len(self.printers_obj)
return printer
def run(self):
"""Background thread that processes queue items"""
self.app.logger.info("Worker started working.")
self.app.logger.debug(
"\t[⚙ %s][%s] started working", self.id, threading.get_ident()
)
while True:
if not self.running or not self.printer.ready:
time.sleep(0.2)
# If the printer is dead or asleep, it can't work.
if not self.running:
time.sleep(0.4)
continue
# If we have no available printer, we look at the list printers
# we know about, and try to find one that is available.
# When we find a printer, we acquire it
# When we are finished with a printer, we release it to the world.
# If we do not have a printer, we try to find one
if self.running and self.printer is None:
self.app.logger.debug(
"\t[⚙ %s] Trying to find a available printer for the worker.",
self.id,
)
self.printer = self._acquire_available_printer()
self.app.logger.debug(
"\t[⚙ %s] Got a %s ( %s ) printer and it's %s",
self.id,
self.printer.printer_info.name,
self.printer.printer_info.model,
"Ready" if self.printer.ready else "Not ready",
)
if self.printer is None:
self.app.logger.debug("\t[⚙ %s] Could not get a printer ", self.id)
time.sleep(1)
continue
self.printer.use_printer()
# If the printer is not ready, we wait for it to become ready.
if not self.printer.ready:
self.app.logger.debug(
"\t[⚙ %s] Waiting for our printer to become ready...", self.id
)
time.sleep(1)
continue
if self.state != "idle":
self.app.logger("\t[⚙ %s] We are not idle, waiting...", self.id)
time.sleep(1)
continue
self.state = "printing"
# self.app.logger.debug("\t[⚙ %s] Set the printer to printing state", self.id)
try:
# self.app.logger.debug("\t[⚙ %s] Trying to get a task from the queue ", self.id)
task = self.print_queue.dequeue()
except Exception as e:
self.app.logger.error("Could not get a new task ! %s ", str(e))
self.app.logger.error(
"\t[⚙ %s] Could not get a new task %s ", self.id, str(e)
)
self.state = "idle"
self.printer.free_printer()
raise RuntimeError(
"We could not get a new task because " + str(e)
) from e
if task:
self.app.logger.debug(
"\t[⚙ %s] Got a new task %s %s",
self.id,
task.task_type,
task.task_id,
)
task.status = "processing"
try:
self.app.logger.info("Got a new task")
self.app.logger.debug("Got task %s", task.task_id)
self.state = "printing"
task.status = "processing"
self._emit_status(task.task_id, "processing")
print_data = task.get_print_data()
try:
self.printer.print_task(task.task_type, print_data)
except RuntimeError as e:
self.app.logger.error("Could not print : %s", str(e))
raise e
task.status = "completed"
self.print_queue.mark_completed(task.task_id, "completed")
self._emit_status(task.task_id, "completed")
if task.task_type.value == "remove":
try:
self.app.logger.debug("Removing file %s", task.image_path)
os.remove(task.image_path)
except Exception as e:
self.app.logger.error("Could not remove file %s because %s", task.image_path, str(e))
raise RuntimeError from e
else:
print_data = task.get_print_data()
self.printer.print_task(task, print_data)
except RuntimeError as e:
task.status = "failed"
self.print_queue.mark_completed(task.task_id, "failed")
self._emit_status(task.task_id, "failed", error=str(e))
print(f"Print task {task.task_id} failed: {e}")
self.state = "idle"
self.app.logger.error("Could not process task %s because: %s", task.task_id, str(e))
self.print_queue.mark_completed(task.task_id, "failed", log=str(e))
self.app.logger.error(traceback.format_exc())
self.printer.free_printer()
task.status = "completed"
self.print_queue.mark_completed(task.task_id, "completed")
self.app.logger.debug(
"\t[⚙ %s] Finished printing task %s ", self.id, task.task_id
)
self.state = "idle"
else:
# When they are no new tasks to handle, we put the thread to sleep.
# self.app.logger.debug("\t[⚙ %s] No new tasks in the queue, sleeping", self.id)
self.state = "idle"
time.sleep(0.1)
def _emit_status(self, task_id, status, error=None):
"""Emit status update via Socket.IO if available"""
if not self.socketio:
return
room = f"task_{task_id}"
data = {
"task_id": task_id,
"status": status,
"position": None, # Task no longer in queue
}
if error:
data["error"] = error
self.socketio.emit("task_status", data, room=room)
def stop_worker(self):
"""
Give the worker a break
@@ -101,7 +188,13 @@ class PrintWorker(threading.Thread):
Return the worker state
"""
return {
"id": self.id,
"is_running": self.running,
"queue_size": len(self.print_queue),
"state": self.state,
"printer": (
self.printer.printer_info.model
if self.printer.printer_info.model
else "No printer"
),
}