├── src ├── sql │ ├── wiki.sql │ ├── todo.sql │ ├── initdb.php │ └── schema.sql ├── public │ ├── css │ │ ├── style.css │ │ ├── todo.css │ │ └── wiki.css │ ├── images │ │ └── t0.png │ ├── js │ │ └── script.js │ ├── index.php │ └── bootstrap-5.3.2 │ │ └── css │ │ ├── bootstrap-reboot.min.css │ │ ├── bootstrap-reboot.rtl.min.css │ │ ├── bootstrap-reboot.rtl.css │ │ ├── bootstrap-reboot.css │ │ └── bootstrap-reboot.min.css.map ├── views │ ├── login │ │ └── error.php │ ├── wiki │ │ ├── page.php │ │ ├── edit.php │ │ └── index.php │ ├── todo │ │ ├── todo.php │ │ ├── index.php │ │ └── dashboard.php │ ├── layouts │ │ └── layout.php │ └── acdc │ │ └── index.php ├── .todo.env.docker ├── .todo.env.example ├── .wiki.env.docker ├── .wiki.env.example ├── composer.json ├── app │ ├── Middleware │ │ ├── AuthenticatedIfAvailable.php │ │ └── Authenticated.php │ ├── Controllers │ │ ├── ACDC.php │ │ ├── Todos.php │ │ ├── OpenID.php │ │ ├── Wiki.php │ │ └── TokenEndpoint.php │ ├── Chips.php │ └── Chips │ │ └── Todo.php ├── lib │ └── init.php └── scripts │ └── create-org.php ├── .gitignore ├── docker ├── mysql.fly.dockerfile ├── sql │ └── databases.sql ├── todo.nginx.conf ├── wiki.nginx.conf ├── app.fly.nginx.conf ├── todo.dockerfile ├── wiki.dockerfile └── app.fly.dockerfile ├── todo.sh ├── wiki.sh ├── .dockerignore ├── mysql.fly.toml ├── todosrv.fly.toml ├── wikisrv.fly.toml ├── docker-compose.yml ├── acdc.php ├── README.md └── LICENSE /src/sql/wiki.sql: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/public/css/style.css: -------------------------------------------------------------------------------- 1 | .hidden { 2 | display: none; 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | .DS_Store 3 | .env 4 | todo.txt 5 | logs/ 6 | *.env 7 | .idea/ 8 | -------------------------------------------------------------------------------- /src/public/css/todo.css: -------------------------------------------------------------------------------- 1 | nav.navbar { 2 | background-color: #FF4500 !important; 3 | } 4 | -------------------------------------------------------------------------------- /src/views/login/error.php: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 5 | -------------------------------------------------------------------------------- /docker/mysql.fly.dockerfile: -------------------------------------------------------------------------------- 1 | FROM mariadb:latest 2 | 3 | COPY ./docker/sql /docker-entrypoint-initdb.d -------------------------------------------------------------------------------- /todo.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ENV=.todo.env php -d variables_order=EGPCS -S 127.0.0.1:7070 -t public 4 | -------------------------------------------------------------------------------- /wiki.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ENV=.wiki.env php -d variables_order=EGPCS -S 127.0.0.1:8080 -t public 4 | -------------------------------------------------------------------------------- /src/public/images/t0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaronpk/cross-app-authz-demo/main/src/public/images/t0.png -------------------------------------------------------------------------------- /src/.todo.env.docker: -------------------------------------------------------------------------------- 1 | 2 | BASE_URL=http://localhost:9090/ 3 | APP_NAME=Task0 4 | SITE_TYPE=todo 5 | 6 | DB_NAME=todo 7 | -------------------------------------------------------------------------------- /src/sql/todo.sql: -------------------------------------------------------------------------------- 1 | 2 | INSERT INTO `clients` (`name`, `client_id`, `client_secret`) 3 | VALUES ('TinyWiki', 'ABCDEFG', 'ABCDEFGHIJ1234567890'); 4 | -------------------------------------------------------------------------------- /src/views/wiki/page.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | 4 | 5 | 6 |
7 |
8 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | # flyctl launch added from .gitignore 2 | **/vendor 3 | **/.DS_Store 4 | **/.env 5 | **/todo.txt 6 | **/logs 7 | **/*.env 8 | **/.idea 9 | fly.toml 10 | -------------------------------------------------------------------------------- /src/views/todo/todo.php: -------------------------------------------------------------------------------- 1 |
2 |

TODO

3 | 4 | 5 | name) ?> 6 | 7 | 8 |
9 | -------------------------------------------------------------------------------- /src/.todo.env.example: -------------------------------------------------------------------------------- 1 | 2 | BASE_URL=http://localhost:9090/ 3 | APP_NAME=Task0 4 | SITE_TYPE=todo 5 | 6 | DB_HOST=127.0.0.1 7 | DB_NAME=todo_app 8 | DB_USER=todo_app 9 | DB_PASS=todo_app 10 | -------------------------------------------------------------------------------- /docker/sql/databases.sql: -------------------------------------------------------------------------------- 1 | CREATE DATABASE IF NOT EXISTS `wiki`; 2 | CREATE DATABASE IF NOT EXISTS `todo`; 3 | 4 | CREATE USER 'cloudmaker'@'%' IDENTIFIED BY 'avocado'; 5 | GRANT ALL PRIVILEGES ON *.* TO 'cloudmaker'@'%'; 6 | 7 | -------------------------------------------------------------------------------- /src/sql/initdb.php: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 |

Editing: slug) ?>

5 | 6 |
7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 |
16 | 17 |
18 | 19 | -------------------------------------------------------------------------------- /todosrv.fly.toml: -------------------------------------------------------------------------------- 1 | # fly.toml app configuration file generated for todo-srv on 2024-01-02T15:00:37-08:00 2 | # 3 | # See https://fly.io/docs/reference/configuration/ for information about how to use this file. 4 | # 5 | 6 | app = "todo-srv" 7 | primary_region = "sjc" 8 | 9 | [build] 10 | dockerfile = "./docker/app.fly.dockerfile" 11 | 12 | [env] 13 | DB_HOST = "mysql-srv.internal" 14 | DB_NAME = "todo" 15 | ENV=".todo.env.docker" 16 | 17 | [http_service] 18 | internal_port = 80 19 | force_https = true 20 | auto_stop_machines = true 21 | auto_start_machines = true 22 | min_machines_running = 0 23 | processes = ["app"] 24 | 25 | [[vm]] 26 | cpu_kind = "shared" 27 | cpus = 1 28 | memory_mb = 1024 29 | -------------------------------------------------------------------------------- /wikisrv.fly.toml: -------------------------------------------------------------------------------- 1 | # fly.toml app configuration file generated for wiki-srv on 2023-12-13T14:28:57-08:00 2 | # 3 | # See https://fly.io/docs/reference/configuration/ for information about how to use this file. 4 | # 5 | 6 | app = "wiki-srv" 7 | primary_region = "sjc" 8 | 9 | [build] 10 | dockerfile = "./docker/app.fly.dockerfile" 11 | 12 | [env] 13 | DB_HOST = "mysql-srv.internal" 14 | DB_NAME = "wiki" 15 | ENV=".wiki.env.docker" 16 | 17 | [http_service] 18 | internal_port = 80 19 | force_https = true 20 | auto_stop_machines = true 21 | auto_start_machines = true 22 | min_machines_running = 0 23 | processes = ["app"] 24 | 25 | [[vm]] 26 | cpu_kind = "shared" 27 | cpus = 1 28 | memory_mb = 1024 29 | -------------------------------------------------------------------------------- /src/views/wiki/index.php: -------------------------------------------------------------------------------- 1 |
2 |

3 | 4 |
5 | 6 |

7 | Let's get writing! 8 |

9 |
10 | 11 |
12 | 13 |
14 | 15 |
16 | 17 | 18 | 19 |
20 | 21 |
22 |
23 |
24 | -------------------------------------------------------------------------------- /src/views/todo/index.php: -------------------------------------------------------------------------------- 1 |
2 |

3 | 4 |
5 | 6 |

7 | Let's get productive! 8 |

9 |
10 | 11 |
12 | 13 |
14 | 15 |
16 | 17 | 18 | 19 |
20 | 21 |
22 |
23 |
24 | -------------------------------------------------------------------------------- /docker/todo.dockerfile: -------------------------------------------------------------------------------- 1 | FROM composer:latest AS composer 2 | WORKDIR /var/www 3 | 4 | COPY src/composer.json ./ 5 | COPY src/composer.lock ./ 6 | 7 | RUN composer install --no-dev --no-scripts --no-interaction 8 | 9 | FROM php:fpm 10 | WORKDIR /var/www 11 | 12 | COPY --from=composer /var/www/vendor/ vendor 13 | 14 | RUN docker-php-ext-install pdo pdo_mysql 15 | RUN pecl install xdebug && docker-php-ext-enable xdebug 16 | 17 | ENV ENV .todo.env.docker 18 | ENV DB_HOST=mysql 19 | ENV DB_USER=cloudmaker 20 | ENV DB_PASS=avocado 21 | 22 | ### Install nginx 23 | RUN apt update 24 | RUN apt install nginx -y 25 | RUN rm /etc/nginx/sites-enabled/default 26 | RUN ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log 27 | 28 | CMD php-fpm -D && nginx -g "daemon off;" 29 | -------------------------------------------------------------------------------- /docker/wiki.dockerfile: -------------------------------------------------------------------------------- 1 | FROM composer:latest AS composer 2 | WORKDIR /var/www 3 | 4 | COPY src/composer.json ./ 5 | COPY src/composer.lock ./ 6 | 7 | RUN composer install --no-dev --no-scripts --no-interaction 8 | 9 | FROM php:fpm 10 | WORKDIR /var/www 11 | 12 | COPY --from=composer /var/www/vendor/ vendor 13 | 14 | RUN docker-php-ext-install pdo pdo_mysql 15 | RUN pecl install xdebug && docker-php-ext-enable xdebug 16 | 17 | ENV ENV .wiki.env.docker 18 | ENV DB_HOST=mysql 19 | ENV DB_USER=cloudmaker 20 | ENV DB_PASS=avocado 21 | 22 | ### Install nginx 23 | RUN apt update 24 | RUN apt install nginx -y 25 | RUN rm /etc/nginx/sites-enabled/default 26 | RUN ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log 27 | 28 | CMD php-fpm -D && nginx -g "daemon off;" 29 | 30 | -------------------------------------------------------------------------------- /docker/app.fly.dockerfile: -------------------------------------------------------------------------------- 1 | ### Setup PHP server 2 | FROM composer:latest AS composer 3 | WORKDIR /var/www 4 | 5 | COPY src/composer.json ./ 6 | COPY src/composer.lock ./ 7 | 8 | RUN composer install --no-dev --no-scripts --no-interaction 9 | 10 | FROM php:fpm 11 | WORKDIR /var/www 12 | 13 | COPY --from=composer /var/www/vendor/ vendor 14 | 15 | RUN docker-php-ext-install pdo pdo_mysql 16 | RUN pecl install xdebug && docker-php-ext-enable xdebug 17 | 18 | 19 | ### Setup web server 20 | COPY ./docker/app.fly.nginx.conf /etc/nginx/conf.d/default.conf 21 | COPY ./src /var/www 22 | 23 | RUN apt update 24 | RUN apt install nginx -y 25 | RUN rm /etc/nginx/sites-enabled/default 26 | RUN ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log 27 | 28 | CMD php-fpm -D && nginx -g "daemon off;" 29 | -------------------------------------------------------------------------------- /src/app/Middleware/AuthenticatedIfAvailable.php: -------------------------------------------------------------------------------- 1 | _getUserFromSession(); 14 | 15 | if($user) 16 | $request = $request->withAttribute('user', $user); 17 | 18 | return $handler->handle($request); 19 | } 20 | 21 | private function _getUserFromSession() { 22 | if(!isset($_SESSION['user_id'])) { 23 | return false; 24 | } 25 | 26 | $user = ORM::for_table('users') 27 | ->where('id', $_SESSION['user_id']) 28 | ->find_one(); 29 | 30 | if(!$user) { 31 | return false; 32 | } 33 | 34 | return $user; 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | services: 3 | todo: 4 | build: 5 | context: . 6 | dockerfile: docker/todo.dockerfile 7 | ports: 8 | - "9090:80" 9 | volumes: 10 | - ./docker/wiki.nginx.conf:/etc/nginx/conf.d/default.conf 11 | - vendor:/var/www/vendor 12 | - ./src:/var/www 13 | depends_on: 14 | - mysql 15 | wiki: 16 | build: 17 | context: . 18 | dockerfile: docker/wiki.dockerfile 19 | ports: 20 | - "7070:80" 21 | volumes: 22 | - ./docker/wiki.nginx.conf:/etc/nginx/conf.d/default.conf 23 | - vendor:/var/www/vendor 24 | - ./src:/var/www 25 | depends_on: 26 | - mysql 27 | mysql: 28 | image: mariadb:latest 29 | environment: 30 | MYSQL_ROOT_PASSWORD: 'avocado' 31 | volumes: 32 | - mysqldata:/var/lib/mysql 33 | - ./docker/sql:/docker-entrypoint-initdb.d 34 | ports: 35 | - 7706:3306 36 | volumes: 37 | mysqldata: {} 38 | vendor: 39 | -------------------------------------------------------------------------------- /acdc.php: -------------------------------------------------------------------------------- 1 | where_gt('last_login', date('Y-m-d H:i:s', time()-300)) 7 | ->find_many(); 8 | 9 | foreach($users as $user) { 10 | 11 | if($user->id_token) { 12 | 13 | // TODO: Do this for every configured app 14 | 15 | echo "Requesting ACDC...\n"; 16 | 17 | $todo = new \App\Chips\Todo($user); 18 | $acdc = $todo->requestACDCWithIDToken($user->id_token); 19 | 20 | echo "Got ACDC from IdP\n"; 21 | print_r($acdc); 22 | 23 | echo "Requesting Token...\n"; 24 | 25 | $token = $todo->requestTokenWithACDC($acdc['acdc']); 26 | 27 | echo "Got token from Todo app\n"; 28 | print_r($token); 29 | 30 | if(isset($token['access_token'])) { 31 | $externalToken = ORM::for_table('external_tokens')->create(); 32 | $externalToken->user_id = $user->id; 33 | $externalToken->app_name = 'Todo'; 34 | $externalToken->access_token = $token['access_token']; 35 | if(isset($token['expires_in'])) { 36 | $externalToken['expires_at'] = date('Y-m-d H:i:s', time()+$token['expires_in']); 37 | } 38 | $externalToken->save(); 39 | } 40 | 41 | } 42 | 43 | 44 | } 45 | -------------------------------------------------------------------------------- /src/lib/init.php: -------------------------------------------------------------------------------- 1 | load(); 8 | 9 | ORM::configure('mysql:host=' . $_ENV['DB_HOST'] . ';dbname=' . $_ENV['DB_NAME'] . ';charset=utf8mb4'); 10 | ORM::configure('username', $_ENV['DB_USER']); 11 | ORM::configure('password', $_ENV['DB_PASS']); 12 | ORM::configure('driver_options', array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8mb4')); 13 | 14 | function logger() { 15 | static $logger; 16 | if(!isset($logger)) { 17 | $logger = new Logger('app'); 18 | $logger->pushHandler(new StreamHandler(__DIR__.'/../logs/app.log', Logger::DEBUG)); 19 | } 20 | return $logger; 21 | } 22 | 23 | function render($response, $page, $data) { 24 | $renderer = new PhpRenderer(__DIR__.'/../views/'); 25 | $renderer->setLayout('layouts/layout.php'); 26 | return $renderer->render($response, "$page.php", $data); 27 | }; 28 | 29 | function base64_urlencode($string) { 30 | return rtrim(strtr(base64_encode($string), '+/', '-_'), '='); 31 | } 32 | 33 | function base64_urldecode($input) { 34 | $remainder = \strlen($input) % 4; 35 | if ($remainder) { 36 | $padlen = 4 - $remainder; 37 | $input .= \str_repeat('=', $padlen); 38 | } 39 | return \base64_decode(\strtr($input, '-_', '+/')); 40 | } 41 | 42 | function e($text) { 43 | return htmlspecialchars($text ?? ''); 44 | } 45 | -------------------------------------------------------------------------------- /src/views/todo/dashboard.php: -------------------------------------------------------------------------------- 1 |
2 |

TODO

3 | 4 |
5 | 6 |

7 | Your Todos 8 |

9 |
10 | 11 |
12 | 13 |
14 |
15 | 16 |
17 |
18 | 19 |
20 | 21 |
22 | 23 |
24 | 25 |
26 |
27 |
28 | 29 |
30 |
31 | 32 |
33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 |
#Task
#name) ?>x
50 | 51 | 52 | 53 |
54 |
55 |
56 | -------------------------------------------------------------------------------- /src/scripts/create-org.php: -------------------------------------------------------------------------------- 1 | \n"; 12 | die(); 13 | } 14 | 15 | $emailDomain = $argv[1]; 16 | 17 | if(!preg_match('/^[a-z0-9].+\..+$/', $emailDomain)) { 18 | echo "Invalid email domain: $emailDomain\n"; 19 | die(); 20 | } 21 | 22 | echo "Email domain: $emailDomain\n"; 23 | 24 | 25 | $issuerDomain = $argv[2]; 26 | 27 | if(!preg_match('/^[a-z0-9].+\..+$/', $issuerDomain)) { 28 | echo "Invalid issuer domain: $issuerDomain\n"; 29 | echo "Enter only the domain, no https\n"; 30 | die(); 31 | } 32 | 33 | $issuerURL = 'https://'.$issuerDomain; 34 | 35 | echo "Issuer URL: $issuerURL\n"; 36 | 37 | $clientID = $argv[3]; 38 | $clientSecret = $argv[4]; 39 | 40 | // Fetch the OpenID config to find the metadata 41 | 42 | $metadataURL = $issuerURL.'/.well-known/openid-configuration'; 43 | 44 | try { 45 | $guzzle = new \GuzzleHttp\Client; 46 | $response = $guzzle->request('GET', $metadataURL); 47 | $responseBody = (string)$response->getBody(); 48 | $metadata = json_decode($responseBody, true); 49 | } catch(Exception $e) { 50 | echo "Error fetching OpenID server configuration from\n"; 51 | echo $metadataURL."\n"; 52 | echo $e->getMessage(); 53 | die(); 54 | } 55 | 56 | $authorizationEndpoint = $metadata['authorization_endpoint']; 57 | $tokenEndpoint = $metadata['token_endpoint']; 58 | 59 | 60 | $org = ORM::for_table('orgs')->create(); 61 | $org->domain = $emailDomain; 62 | $org->issuer = $issuerURL; 63 | $org->client_id = $clientID; 64 | $org->client_secret = $clientSecret; 65 | $org->authorization_endpoint = $authorizationEndpoint; 66 | $org->token_endpoint = $tokenEndpoint; 67 | $org->save(); 68 | 69 | echo "\n"; 70 | echo "Successfully created org!\n"; 71 | echo "\n"; 72 | echo "OpenID Connect Redirect URI:\n"; 73 | echo $_ENV['BASE_URL'].'openid/callback/'.$org->id."\n"; 74 | echo "\n"; 75 | echo "You can now log in\n"; 76 | echo $_ENV['BASE_URL']."\n"; 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /src/public/index.php: -------------------------------------------------------------------------------- 1 | 86400*30, 11 | 'samesite' => 'Lax', 12 | ]); 13 | session_name('SESSION_'.$_ENV['SITE_TYPE']); 14 | session_start(); 15 | 16 | $app = AppFactory::create(); 17 | 18 | $app->post('/login', [Controllers\OpenID::class, 'start']); 19 | $app->post('/logout', [Controllers\OpenID::class, 'logout']); 20 | $app->get('/openid/callback/{id}', [Controllers\OpenID::class, 'redirect']); 21 | 22 | $app->post('/oauth/token', [Controllers\TokenEndpoint::class, 'token']); 23 | 24 | 25 | $app->group('', function(RouteCollectorProxy $group){ 26 | switch($_ENV['SITE_TYPE']) { 27 | case 'todo': 28 | $group->get('/', [Controllers\Todos::class, 'index']); 29 | break; 30 | case 'wiki': 31 | $group->get('/', [Controllers\Wiki::class, 'index']); 32 | break; 33 | } 34 | })->add(Middleware\AuthenticatedIfAvailable::class); 35 | 36 | $app->group('', function(RouteCollectorProxy $group){ 37 | 38 | switch($_ENV['SITE_TYPE']) { 39 | case 'todo': 40 | $group->redirect('/logged-in', '/dashboard'); 41 | $group->get('/dashboard', [Controllers\Todos::class, 'dashboard']); 42 | $group->get('/todo/{id}.json', [Controllers\Todos::class, 'todo_json']); 43 | $group->get('/todo/{id}_json', [Controllers\Todos::class, 'todo_json']); 44 | $group->get('/todo/{id}', [Controllers\Todos::class, 'todo']); 45 | $group->post('/todos/create', [Controllers\Todos::class, 'create']); 46 | $group->post('/todos/edit', [Controllers\Todos::class, 'edit']); 47 | break; 48 | case 'wiki': 49 | $group->get('/wiki/', [Controllers\Wiki::class, 'home']); 50 | $group->get('/wiki/{page}', [Controllers\Wiki::class, 'page']); 51 | $group->get('/edit', [Controllers\Wiki::class, 'edit']); 52 | $group->post('/edit/save', [Controllers\Wiki::class, 'save']); 53 | 54 | $group->post('/delete-access-tokens', [Controllers\Wiki::class, 'delete_access_tokens']); 55 | 56 | $group->redirect('/logged-in', '/oauth/acdc'); 57 | $group->get('/oauth/acdc', [Controllers\ACDC::class, 'get']); 58 | $group->post('/oauth/acdc', [Controllers\ACDC::class, 'post']); 59 | 60 | break; 61 | } 62 | 63 | 64 | })->add(Middleware\Authenticated::class); 65 | 66 | $app->run(); 67 | -------------------------------------------------------------------------------- /src/views/layouts/layout.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | <?= e($_ENV['APP_NAME']) ?> 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 56 | 57 | 58 |
59 | 60 | 61 | 62 |
63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /src/app/Middleware/Authenticated.php: -------------------------------------------------------------------------------- 1 | _getUserFromSession(); 14 | 15 | if(!$user) { 16 | $user = $this->_getUserFromAccessToken($request); 17 | } 18 | 19 | if(!$user) { 20 | if($request->hasHeader('Authorization')) { 21 | return $this->_jsonUnauthorizedError(); 22 | } else { 23 | return $this->_redirectToHomePage(); 24 | } 25 | } 26 | 27 | $request = $request->withAttribute('user', $user); 28 | 29 | return $handler->handle($request); 30 | } 31 | 32 | private function _getUserFromSession() { 33 | if(!isset($_SESSION['user_id'])) { 34 | return false; 35 | } 36 | 37 | $user = ORM::for_table('users') 38 | ->where('id', $_SESSION['user_id']) 39 | ->find_one(); 40 | 41 | if(!$user) { 42 | return false; 43 | } 44 | 45 | return $user; 46 | } 47 | 48 | private function _getUserFromAccessToken(Request &$request) { 49 | $accessToken = $this->_getAccessTokenFromHeader($request); 50 | 51 | if(!$accessToken) { 52 | return false; 53 | } 54 | 55 | $tokenInfo = ORM::for_table('tokens') 56 | ->where('token', $accessToken) 57 | ->find_one(); 58 | 59 | if(!$tokenInfo) { 60 | return false; 61 | } 62 | 63 | $scopes = explode(' ', ($tokenInfo['scope'] ?? '')); 64 | 65 | $request = $request->withAttribute('scope', $scopes); 66 | 67 | $user = ORM::for_table('users') 68 | ->where('id', $tokenInfo['user_id']) 69 | ->find_one(); 70 | 71 | return $user; 72 | } 73 | 74 | private function _getAccessTokenFromHeader(Request $request) { 75 | if(!$request->hasHeader('Authorization')) { 76 | return false; 77 | } 78 | 79 | $accessToken = explode(' ', $request->getHeaderLine('Authorization'))[1]; 80 | 81 | return $accessToken; 82 | } 83 | 84 | private function _jsonUnauthorizedError() { 85 | $response = new Response(); 86 | $error = json_encode(['error' => 'unauthorized']); 87 | $response->getBody()->write($error); 88 | return $response->withStatus(401); 89 | } 90 | 91 | private function _redirectToHomePage() { 92 | $response = new Response(); 93 | return $response->withHeader('Location', '/')->withStatus(302); 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /src/app/Controllers/ACDC.php: -------------------------------------------------------------------------------- 1 | getQueryParams(); 13 | 14 | $user = $request->getAttribute('user'); 15 | $org = ORM::for_table('orgs')->where('id', $user->org_id)->find_one(); 16 | 17 | $todo = new \App\Chips\Todo($user); 18 | 19 | $links = []; 20 | $links[] = [ 21 | 'url' => '/wiki/', 22 | 'name' => 'Home', 23 | ]; 24 | 25 | return render($response, 'acdc/index', [ 26 | 'user' => $user, 27 | 'org' => $org, 28 | 'todo_token_endpoint' => $todo->token_endpoint, 29 | 'navlinks' => $links, 30 | ]); 31 | } 32 | 33 | public function post(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface { 34 | $params = (array)$request->getParsedBody(); 35 | $user = $request->getAttribute('user'); 36 | 37 | $todo = new \App\Chips\Todo($user); 38 | 39 | switch($params['step']) { 40 | case 'acdc': 41 | 42 | $acdc = $todo->requestACDCWithIDToken($user->id_token); 43 | $text = $acdc['raw_response']; 44 | 45 | $acdcParams = ''; 46 | foreach($acdc['acdc_params'] as $k=>$v) { 47 | $acdcParams .= "$k=$v\n\n"; 48 | } 49 | 50 | $response = $response->withHeader('Content-type', 'application/json'); 51 | $response->getBody()->write(json_encode([ 52 | 'acdc_params' => $acdcParams, 53 | 'text' => $text, 54 | 'response' => $acdc, 55 | ])); 56 | break; 57 | 58 | case 'token': 59 | 60 | $token = $todo->requestTokenWithACDC($params['acdc']); 61 | $text = $token['raw_response']; 62 | 63 | $tokenRequestParams = ''; 64 | foreach($token['request_params'] as $k=>$v) { 65 | $tokenRequestParams .= "$k=$v\n\n"; 66 | } 67 | 68 | $response = $response->withHeader('Content-type', 'application/json'); 69 | $response->getBody()->write(json_encode([ 70 | 'token_request_params' => $tokenRequestParams, 71 | 'text' => $text, 72 | 'response' => $token, 73 | ])); 74 | 75 | if(isset($token['access_token'])) { 76 | $externalToken = ORM::for_table('external_tokens')->create(); 77 | $externalToken->user_id = $user->id; 78 | $externalToken->app_name = 'Todo'; 79 | $externalToken->access_token = $token['access_token']; 80 | $externalToken->created_at = date('Y-m-d H:i:s'); 81 | if(isset($token['expires_in'])) { 82 | $externalToken['expires_at'] = date('Y-m-d H:i:s', time()+$token['expires_in']); 83 | } 84 | $externalToken->save(); 85 | } 86 | 87 | break; 88 | } 89 | 90 | return $response; 91 | } 92 | 93 | 94 | } 95 | -------------------------------------------------------------------------------- /src/app/Controllers/Todos.php: -------------------------------------------------------------------------------- 1 | _user = $request->getAttribute('user'); 15 | 16 | $links = []; 17 | 18 | if($this->_user) { 19 | $links[] = [ 20 | 'url' => '/todo/dashboard', 21 | 'name' => 'Home', 22 | ]; 23 | } 24 | 25 | return render($response, 'todo/index', [ 26 | 'user' => $this->_user, 27 | 'navlinks' => $links, 28 | ]); 29 | } 30 | 31 | public function dashboard(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface { 32 | 33 | $user = $request->getAttribute('user'); 34 | $todos = ORM::for_table('todos')->where('user_id', $user->id)->find_many(); 35 | 36 | return render($response, 'todo/dashboard', [ 37 | 'user' => $user, 38 | 'todos' => $todos, 39 | ]); 40 | } 41 | 42 | public function create(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface { 43 | $params = (array)$request->getParsedBody(); 44 | 45 | if(empty($params['name'])) { 46 | return $response 47 | ->withHeader('Location', '/dashboard') 48 | ->withStatus(302); 49 | } 50 | 51 | $user = $request->getAttribute('user'); 52 | 53 | $todo = ORM::for_table('todos')->create(); 54 | $todo->user_id = $user->id; 55 | $todo->org_id = $user->org_id; 56 | $todo->name = $params['name']; 57 | $todo->created_at = date('Y-m-d H:i:s'); 58 | $todo->save(); 59 | 60 | return $response 61 | ->withHeader('Location', '/dashboard') 62 | ->withStatus(302); 63 | } 64 | 65 | public function todo(ServerRequestInterface $request, ResponseInterface $response, array $args): ResponseInterface { 66 | 67 | $user = $request->getAttribute('user'); 68 | 69 | $todo = ORM::for_table('todos') 70 | ->where('user_id', $user->id) 71 | ->where('id', $args['id']) 72 | ->find_one(); 73 | 74 | if(!$todo) { 75 | return $response->withStatus(404); 76 | } 77 | 78 | $meta = ''; 79 | $meta = ''; 80 | 81 | return render($response, 'todo/todo', [ 82 | 'meta' => $meta, 83 | 'user' => $user, 84 | 'todo' => $todo, 85 | ]); 86 | } 87 | 88 | public function todo_json(ServerRequestInterface $request, ResponseInterface $response, array $args): ResponseInterface { 89 | 90 | $user = $request->getAttribute('user'); 91 | 92 | $todo = ORM::for_table('todos') 93 | ->where('user_id', $user->id) 94 | ->where('id', $args['id']) 95 | ->find_one(); 96 | 97 | if(!$todo) { 98 | return $response->withStatus(404); 99 | } 100 | 101 | $response->getBody()->write(json_encode([ 102 | 'id' => $todo->id, 103 | 'name' => $todo->name, 104 | 'created_at' => $todo->created_at, 105 | 'completed_at' => $todo->completed_at, 106 | ])); 107 | return $response; 108 | } 109 | 110 | } 111 | 112 | -------------------------------------------------------------------------------- /src/sql/schema.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `orgs`; 2 | CREATE TABLE `orgs` ( 3 | `id` int(11) unsigned NOT NULL AUTO_INCREMENT, 4 | `domain` varchar(255) NOT NULL, 5 | `issuer` varchar(255) DEFAULT NULL, 6 | `client_id` varchar(255) DEFAULT NULL, 7 | `client_secret` varchar(255) DEFAULT NULL, 8 | `authorization_endpoint` varchar(255) DEFAULT NULL, 9 | `token_endpoint` varchar(255) DEFAULT NULL, 10 | PRIMARY KEY (`id`) 11 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 12 | 13 | DROP TABLE IF EXISTS `todos`; 14 | CREATE TABLE `todos` ( 15 | `id` int(11) unsigned NOT NULL AUTO_INCREMENT, 16 | `org_id` int(11) NOT NULL, 17 | `user_id` int(11) NOT NULL, 18 | `name` varchar(512) DEFAULT NULL, 19 | `created_at` datetime DEFAULT NULL, 20 | `completed_at` datetime DEFAULT NULL, 21 | PRIMARY KEY (`id`) 22 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 23 | 24 | DROP TABLE IF EXISTS `pages`; 25 | CREATE TABLE `pages` ( 26 | `id` int(11) unsigned NOT NULL AUTO_INCREMENT, 27 | `org_id` int(11) NOT NULL, 28 | `slug` varchar(255) NOT NULL, 29 | `text` longtext DEFAULT NULL, 30 | `created_by` int(11) DEFAULT NULL, 31 | `last_updated_by` int(11) DEFAULT NULL, 32 | `created_at` datetime DEFAULT NULL, 33 | `updated_at` datetime DEFAULT NULL, 34 | PRIMARY KEY (`id`), 35 | UNIQUE KEY `slug` (`org_id`,`slug`) 36 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 37 | 38 | DROP TABLE IF EXISTS `users`; 39 | CREATE TABLE `users` ( 40 | `id` int(11) unsigned NOT NULL AUTO_INCREMENT, 41 | `org_id` int(11) NOT NULL, 42 | `sub` varchar(255) NOT NULL, 43 | `name` varchar(255) DEFAULT NULL, 44 | `email` varchar(255) DEFAULT NULL, 45 | `last_login` datetime DEFAULT NULL, 46 | `id_token` longtext DEFAULT NULL, 47 | `saml_assertion` longtext DEFAULT NULL, 48 | PRIMARY KEY (`id`), 49 | KEY `org_sub` (`org_id`,`sub`) 50 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 51 | 52 | DROP TABLE IF EXISTS `tokens`; 53 | CREATE TABLE `tokens` ( 54 | `id` int(11) unsigned NOT NULL AUTO_INCREMENT, 55 | `user_id` int(11) NOT NULL, 56 | `client_id` int(11) DEFAULT NULL, 57 | `token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, 58 | `scope` varchar(255) DEFAULT NULL, 59 | `created_at` datetime NOT NULL, 60 | `debug` longtext DEFAULT NULL, 61 | PRIMARY KEY (`id`), 62 | KEY `token` (`token`) 63 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 64 | 65 | DROP TABLE IF EXISTS `clients`; 66 | CREATE TABLE `clients` ( 67 | `id` int(11) unsigned NOT NULL AUTO_INCREMENT, 68 | `name` varchar(255) DEFAULT NULL, 69 | `client_id` varchar(255) DEFAULT NULL, 70 | `client_secret` varchar(255) DEFAULT NULL, 71 | `user_id` int(11) DEFAULT NULL, 72 | `org_id` int(11) DEFAULT NULL, 73 | PRIMARY KEY (`id`) 74 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 75 | 76 | CREATE TABLE `external_tokens` ( 77 | `id` int(11) unsigned NOT NULL AUTO_INCREMENT, 78 | `user_id` int(11) NOT NULL, 79 | `app_name` varchar(255) NOT NULL, 80 | `access_token` longtext DEFAULT NULL, 81 | `expires_at` datetime DEFAULT NULL, 82 | `created_at` datetime DEFAULT NULL, 83 | PRIMARY KEY (`id`) 84 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 85 | 86 | CREATE TABLE `link_expansions` ( 87 | `id` int(11) unsigned NOT NULL AUTO_INCREMENT, 88 | `url` varchar(255) NOT NULL, 89 | `data` longtext DEFAULT NULL, 90 | `created_at` datetime DEFAULT NULL, 91 | `updated_at` datetime DEFAULT NULL, 92 | PRIMARY KEY (`id`) 93 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 94 | -------------------------------------------------------------------------------- /src/app/Chips.php: -------------------------------------------------------------------------------- 1 | where('app_name', $class) 16 | ->where('user_id', $this->_user->id) 17 | ->find_one(); 18 | 19 | if(!$token) { 20 | // TODO: Fetch token using ACDC 21 | 22 | } 23 | 24 | return $token; 25 | } 26 | 27 | public function requestACDCWithIDToken($idToken) { 28 | $user = $this->_user; 29 | $org = ORM::for_table('orgs')->where('id', $user->org_id)->find_one(); 30 | 31 | $client = new \GuzzleHttp\Client([ 32 | 'timeout' => 10 33 | ]); 34 | 35 | // Exchange the ID Token for an ACDC code 36 | 37 | $params = [ 38 | 'grant_type' => 'urn:ietf:params:oauth:grant-type:token-exchange', 39 | 'requested_token_type' => 'urn:ietf:params:oauth:token-type:jwt-acdc', 40 | 'resource' => $this->_config['TOKEN_ENDPOINT'], 41 | 'scope' => $this->_config['SCOPES'], 42 | 'subject_token_type' => 'urn:ietf:params:oauth:token-type:id_token', 43 | 'subject_token' => $user->id_token, 44 | 'client_id' => $org->client_id, 45 | 'client_secret' => $org->client_secret, 46 | ]; 47 | 48 | try { 49 | $response = $client->request('POST', $org->token_endpoint, [ 50 | 'form_params' => $params 51 | ]); 52 | $body = (string)$response->getBody(); 53 | } catch(\GuzzleHttp\Exception\TransferException $e) { 54 | if($e->hasResponse()) { 55 | $body = (string)$e->getResponse()->getBody(); 56 | $details = json_decode($body, true); 57 | } 58 | } 59 | 60 | $info = json_decode($body, true); 61 | $info['acdc_params'] = $params; 62 | $info['raw_response'] = $body; 63 | 64 | 65 | // Fake an ACDC 66 | // $acdc = base64_urlencode(json_encode(['typ'=>'acdc+jwt'])) 67 | // .'.'.base64_urlencode(json_encode([ 68 | // 'jti' => time().time(), 69 | // 'iss' => $org->issuer, 70 | // 'sub' => $user->sub, 71 | // 'aud' => $this->_config['TOKEN_ENDPOINT'], 72 | // 'azp' => $this->_config['CLIENT_ID'], 73 | // 'exp' => time()+600, 74 | // 'iat' => time(), 75 | // 'scopes' => explode(' ',$this->_config['SCOPES']), 76 | // ])).'.'.base64_urlencode('signature'); 77 | 78 | // $info = [ 79 | // 'access_token' => $acdc, 80 | // 'acdc_params' => $params, 81 | // 'token_type' => 'urn:ietf:params:oauth:token-type:jwt-acdc', 82 | // ]; 83 | 84 | // $info['raw_response'] = json_encode($info); 85 | 86 | 87 | return $info; 88 | } 89 | 90 | public function requestACDCWithSAML($samlAssertion) { 91 | 92 | } 93 | 94 | public function requestTokenWithACDC($acdc) { 95 | 96 | $client = new \GuzzleHttp\Client([ 97 | 'timeout' => 10 98 | ]); 99 | 100 | try { 101 | $params = [ 102 | 'grant_type' => 'urn:ietf:params:oauth:grant-type:jwt-acdc', 103 | 'acdc' => $acdc, 104 | 'client_id' => $this->_config['CLIENT_ID'], 105 | 'client_secret' => $this->_config['CLIENT_SECRET'], 106 | ]; 107 | $response = $client->request('POST', $this->_config['TOKEN_ENDPOINT'], [ 108 | 'form_params' => $params 109 | ]); 110 | $body = (string)$response->getBody(); 111 | } catch(\GuzzleHttp\Exception\TransferException $e) { 112 | if($e->hasResponse()) { 113 | $body = (string)$e->getResponse()->getBody(); 114 | $details = json_decode($body, true); 115 | } 116 | } 117 | 118 | $info = json_decode($body, true); 119 | $info['request_params'] = $params; 120 | $info['raw_response'] = $body; 121 | 122 | return $info; 123 | } 124 | 125 | } 126 | 127 | -------------------------------------------------------------------------------- /src/app/Chips/Todo.php: -------------------------------------------------------------------------------- 1 | _config[$item] = $_ENV[self::$configPrefix.'_'.$item]; 19 | } 20 | 21 | $this->_user = $user; 22 | } 23 | 24 | public function __get($key) { 25 | if(isset($this->_config[strtoupper($key)])) { 26 | return $this->_config[strtoupper($key)]; 27 | } 28 | return null; 29 | } 30 | 31 | public function regex() { 32 | return '/(https?:\/\/'.str_replace('.', '\.', $this->_config['HOSTNAME']).'\/todo\/(\d+))/'; 33 | } 34 | 35 | public function matches($text) { 36 | $regex = $this->regex(); 37 | 38 | logger()->debug('Checking for matches of regex: '.$regex); 39 | 40 | $matches = []; 41 | if(preg_match_all($regex, $text, $m, PREG_OFFSET_CAPTURE)) { 42 | return $m; 43 | } 44 | return []; 45 | } 46 | 47 | public function urlForTodo($id) { 48 | return 'http://'.$this->_config['HOSTNAME'].'/todo/'.$id.'_json'; 49 | } 50 | 51 | public function saveExpandedLinks($text) { 52 | $matches = $this->matches($text); 53 | 54 | logger()->debug('Found '.count($matches).' Todo URLs to replace'); 55 | 56 | if(count($matches)) { 57 | foreach($matches[1] as $i=>$m) { 58 | $todoId = $matches[2][$i][0]; 59 | $url = $m[0]; 60 | $offset = $m[1]; 61 | 62 | logger()->debug('Fetching Todo ID: '.$todoId.' from URL: '.$url); 63 | 64 | // Get a cached token or fetch via ACDC grant 65 | $token = $this->getTokenForUser(); 66 | 67 | if($token) { 68 | // Fetch the object 69 | $guzzle = new \GuzzleHttp\Client; 70 | try { 71 | $todoURL = $this->urlForTodo($todoId); 72 | logger()->debug('Fetching URL: '.$todoURL.' with access token: '.$token->access_token); 73 | 74 | $response = $guzzle->request('GET', $todoURL, [ 75 | 'headers' => [ 76 | 'Authorization' => 'Bearer '.$token->access_token, 77 | ] 78 | ]); 79 | $responseBody = (string)$response->getBody(); 80 | $data = json_decode($responseBody, true); 81 | 82 | if($data) { 83 | 84 | $link = ORM::for_table('link_expansions') 85 | ->where('url', $url) 86 | ->find_one(); 87 | if(!$link) { 88 | $link = ORM::for_table('link_expansions')->create(); 89 | $link->url = $url; 90 | $link->created_at = date('Y-m-d H:i:s'); 91 | } 92 | 93 | $link->data = json_encode($data, JSON_PRETTY_PRINT+JSON_UNESCAPED_SLASHES); 94 | $link->updated_at = date('Y-m-d H:i:s'); 95 | $link->save(); 96 | 97 | } 98 | } catch(\GuzzleHttp\Exception\TransferException $e) { 99 | // Something went wrong 100 | logger()->debug('HTTP error fetching Todo', ['exception' => $e->getMessage()]); 101 | } 102 | } else { 103 | // Couldn't get a token for this user 104 | logger()->debug('Couldn\'t find an access token for this user'); 105 | } 106 | } 107 | } 108 | 109 | } 110 | 111 | public function chipHTML($url) { 112 | $link = ORM::for_table('link_expansions') 113 | ->where('url', $url) 114 | ->find_one(); 115 | if(!$link) { 116 | return ''.$url.''; 117 | } 118 | 119 | $data = json_decode($link->data, true); 120 | 121 | return ' '.$data['name'].''; 122 | } 123 | 124 | } 125 | 126 | -------------------------------------------------------------------------------- /src/views/acdc/index.php: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 5 |

Hello, name ?>!

6 |

You successfully signed in via issuer ?>

7 | 8 |
9 | ID Token from the IdP 10 | 11 |
12 | 13 |
14 | 15 | 16 | 17 | 27 | 28 | 46 | 47 | 48 | 74 | 75 |
76 |
77 | 133 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Cross-App Authorization Demo Apps 2 | 3 | This is a simple demo application that implements both the Requesting Application and Resource Application described in [this spec](https://oktadev.github.io/draft-parecki-oauth-cross-domain-authorization/draft-parecki-oauth-cross-domain-authorization.html). 4 | 5 | Note: This application does not use production-grade security mechanisms and should not be used as a reference for basic security things. In particular, this stores client secrets as plaintext in the database. This is to make debugging easier but should not be done in production. 6 | 7 | 8 | ## Getting Started 9 | 10 | ### Docker 11 | 12 | ``` 13 | docker-compose up 14 | ``` 15 | 16 | This will spin up 2 copies of the stack, one for the wiki app and one for the todo app. 17 | 18 | Task0: http://localhost:9090/ 19 | 20 | TinyWiki: http://localhost:7070/ 21 | 22 | Create the database tables with the following commands 23 | 24 | ``` 25 | docker-compose exec wiki php sql/initdb.php 26 | docker-compose exec todo php sql/initdb.php 27 | ``` 28 | 29 | Pick an email domain to use for IdP routing on the login page. When you enter an email address at this domain in the login page, the app will route you to the configured OIDC connection for this domain. 30 | 31 | Find your org issuer URL (available in the top right dropdown menu in the admin dashboard) which you'll need when configuring the integrations. 32 | 33 | Create two applications in your Okta org: 34 | 35 | * Name: TinyWiki 36 | * Application Type: Native 37 | * Redirect URI: `http://localhost:7070/openid/callback/1` 38 | * Add a client secret 39 | * Enable the "Token Exchange" grant type 40 | 41 | Run the following command with the client ID and secret for this app, and the email domain and issuer from the earlier steps. 42 | 43 | ``` 44 | docker-compose exec wiki php scripts/create-org.php example.com dev-XXXXXXX.okta.com CLIENT_ID CLIENT_SECRET 45 | ``` 46 | 47 | * Name: Task0 48 | * Application Type: Web 49 | * Redirect URI: `http://localhost:9090/openid/callback/1` 50 | 51 | Run the following command with the client ID and secret for this app, and the email domain and issuer from the earlier steps. 52 | 53 | ``` 54 | docker-compose exec todo php scripts/create-org.php example.com dev-XXXXXXX.okta.com CLIENT_ID CLIENT_SECRET 55 | ``` 56 | 57 | Now you can log in! 58 | 59 | 60 | ### Manual Setup 61 | 62 | #### Dependencies 63 | 64 | * [MariaDB](https://mariadb.org) 65 | * [PHP 8.2](https://php.net/) 66 | * [Composer](https://getcomposer.org) 67 | 68 | #### Initial Setup 69 | 70 | * Set up MySQL, create a database, and grant a user permissions to the database 71 | * `CREATE DATABASE todo_app; GRANT ALL PRIVILEGES ON todo_app.* TO 'todo_app'@'127.0.0.1' IDENTIFIED BY 'todo_app';` 72 | * `CREATE DATABASE wiki_app; GRANT ALL PRIVILEGES ON wiki_app.* TO 'wiki_app'@'127.0.0.1' IDENTIFIED BY 'wiki_app';` 73 | * Copy `.todo.env.example` to `.todo.env` 74 | * Copy `.wiki.env.example` to `.wiki.env` 75 | * Create the database tables in both databases by running the SQL code in `sql/schema.sql` 76 | * Install the dependencies: `composer install` 77 | * Start the app with the built-in PHP server 78 | * `./todo.sh` 79 | * `./wiki.sh` 80 | 81 | Note: The built-in PHP server will think that URLs ending in `.json` are files and won't route them to the application. If you are trying to fetch a URL like `http://localhost:8080/todo/1.json`, there is an additional route for that at `http://localhost:8080/todo/1_json`. 82 | 83 | #### Identity Provider Configuration 84 | 85 | * Create an application at the IdP for the todo app and the wiki app 86 | * Add a record to the `orgs` table with the IdP config and client ID and secret 87 | * You'll also need to set the email domain for IdP discovery. If you enter `example.com` in the `domain` column, then you'll be routed to that org's IdP when you enter `user@example.com` in the login box. 88 | * Use the redirect URI for each app: 89 | * Todo: `http://localhost:7070/openid/callback/1` 90 | * Wiki: `http://localhost:8080/openid/callback/1` 91 | 92 | ### Resource Application Configuration 93 | 94 | When running the resource application, you'll need to have a client registered for the Requesting Application. Create an entry in the `clients` table generating a random client ID and secret (leave `user_id` and `org_id` blank). 95 | 96 | ## Usage 97 | 98 | * Log in to the Resource Application (Task0) and create one or more todo items 99 | * Copy the URL of the todo item 100 | * Log in to the Requesting Application (TinyWiki) 101 | * Edit the home page and paste in the todo item URL 102 | * The wiki should obtain an ACDC from the IdP, then exchange that for an access token at the Resource App, then fetch the todo item and render it with the name and icon in the wiki page 103 | 104 | 105 | -------------------------------------------------------------------------------- /src/app/Controllers/OpenID.php: -------------------------------------------------------------------------------- 1 | getParsedBody(); 12 | 13 | $email = (string)($params['email'] ?? ''); 14 | 15 | // Look up org from input email address 16 | if(!preg_match('/.+@(.+)/', $email, $match)) { 17 | return render($response, 'login/error', [ 18 | 'error' => 'Invalid email address entered' 19 | ]); 20 | } 21 | 22 | $domain = $match[1]; 23 | 24 | $org = ORM::for_table('orgs')->where('domain', $domain)->find_one(); 25 | 26 | if(!$org) { 27 | // If no org exists, display an error 28 | return render($response, 'login/error', [ 29 | 'error' => 'Sorry we couldn\'t find a way to log in you in with this email address. There is no organization registered matching your email domain.' 30 | ]); 31 | } 32 | 33 | // Initiate the OpenID flow and redirect 34 | 35 | $_SESSION['state'] = bin2hex(random_bytes(10)); 36 | $_SESSION['code_verifier'] = bin2hex(random_bytes(50)); 37 | $code_challenge = base64_urlencode(hash('sha256', $_SESSION['code_verifier'], true)); 38 | 39 | $url = $org->authorization_endpoint . '?' . http_build_query([ 40 | 'response_type' => 'code', 41 | 'client_id' => $org->client_id, 42 | 'redirect_uri' => $_ENV['BASE_URL'].'openid/callback/'.$org->id, 43 | 'scope' => 'openid profile email', 44 | 'state' => $_SESSION['state'], 45 | 'code_challenge' => $code_challenge, 46 | 'code_challenge_method' => 'S256', 47 | 'login_hint' => $email, 48 | ]); 49 | 50 | return $response 51 | ->withHeader('Location', $url) 52 | ->withStatus(302); 53 | } 54 | 55 | public function redirect(ServerRequestInterface $request, ResponseInterface $response, array $args): ResponseInterface { 56 | $params = $request->getQueryParams(); 57 | 58 | if(!isset($params['code'])) { 59 | return render($response, 'login/error', [ 60 | 'error' => 'Error with OpenID login. Check the query string for details.' 61 | ]); 62 | } 63 | 64 | if($params['state'] != $_SESSION['state']) { 65 | return render($response, 'login/error', [ 66 | 'error' => 'Invalid state. Try logging in again.' 67 | ]); 68 | } 69 | 70 | $org = ORM::for_table('orgs')->where('id', $args['id'])->find_one(); 71 | 72 | if(!$org) { 73 | return render($response, 'login/error', [ 74 | 'error' => 'No org found' 75 | ]); 76 | } 77 | 78 | 79 | $client = new \GuzzleHttp\Client([ 80 | 'timeout' => 10 81 | ]); 82 | 83 | try { 84 | $response = $client->request('POST', $org->token_endpoint, [ 85 | 'form_params' => [ 86 | 'grant_type' => 'authorization_code', 87 | 'code' => $params['code'], 88 | 'code_verifier' => $_SESSION['code_verifier'], 89 | 'redirect_uri' => $_ENV['BASE_URL'].'openid/callback/'.$org->id, 90 | 'client_id' => $org->client_id, 91 | 'client_secret' => $org->client_secret, 92 | ] 93 | ]); 94 | } catch(\GuzzleHttp\Exception\TransferException $e) { 95 | // logger()->debug($e->getMessage()); 96 | $details = null; 97 | if($e->hasResponse()) { 98 | $body = (string)$e->getResponse()->getBody(); 99 | $details = json_decode($body, true); 100 | // logger()->debug((string)$e->getResponse()->getBody()); 101 | } 102 | return render($response, 'login/error', [ 103 | 'error' => json_encode($details) 104 | ]); 105 | } 106 | 107 | 108 | $body = (string)$response->getBody(); 109 | $info = json_decode($body, true); 110 | 111 | if(!$info || !isset($info['id_token'])) { 112 | return view('login/error', [ 113 | 'error' => 'OAuth Error', 114 | 'error_description' => 'The OpenID Connect server returned an invalid response.', 115 | ]); 116 | } 117 | 118 | $id_token = $info['id_token']; 119 | $claims_component = explode('.', $id_token)[1]; 120 | $userinfo = json_decode(base64_decode($claims_component), true); 121 | 122 | $user = ORM::for_table('users') 123 | ->where('org_id', $org->id) 124 | ->where('sub', $userinfo['sub']) 125 | ->find_one(); 126 | 127 | if(!$user) { 128 | $user = ORM::for_table('users')->create(); 129 | $user->org_id = $org->id; 130 | $user->sub = $userinfo['sub']; 131 | } 132 | 133 | $user->name = $userinfo['name'] ?? ''; 134 | $user->email = $userinfo['email'] ?? ''; 135 | $user->last_login = date('Y-m-d H:i:s'); 136 | $user->id_token = $id_token; 137 | $user->save(); 138 | 139 | $_SESSION['user_id'] = $user->id; 140 | 141 | return $response 142 | ->withHeader('Location', '/logged-in') 143 | ->withStatus(302); 144 | } 145 | 146 | public function logout(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface { 147 | unset($_SESSION['user_id']); 148 | session_destroy(); 149 | 150 | return $response 151 | ->withHeader('Location', '/') 152 | ->withStatus(302); 153 | } 154 | } 155 | 156 | -------------------------------------------------------------------------------- /src/app/Controllers/Wiki.php: -------------------------------------------------------------------------------- 1 | _user = $user = $request->getAttribute('user'); 16 | 17 | $links = []; 18 | 19 | if($this->_user) { 20 | $links[] = [ 21 | 'url' => '/wiki/', 22 | 'name' => 'Home', 23 | ]; 24 | } 25 | 26 | return render($response, 'wiki/index', [ 27 | 'user' => $this->_user, 28 | 'navlinks' => $links, 29 | ]); 30 | } 31 | 32 | public function home(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface { 33 | 34 | $user = $request->getAttribute('user'); 35 | 36 | $page = ORM::for_table('pages') 37 | ->where('org_id', $user->org_id) 38 | ->where('slug', 'home') 39 | ->find_one(); 40 | 41 | if(!$page) { 42 | $page = ORM::for_table('pages')->create(); 43 | $page->org_id = $user->org_id; 44 | $page->slug = 'home'; 45 | $page->text = "Welcome to your new wiki! Edit this page to get started. Things to try:\n\n* Create lists with [[markdown]]\n* Link to other pages by wrapping the page name in [[double square brackets]]"; 46 | $page->created_by = $user->id; 47 | $page->created_at = date('Y-m-d H:i:s'); 48 | $page->save(); 49 | 50 | $page = ORM::for_table('pages')->create(); 51 | $page->org_id = $user->org_id; 52 | $page->slug = 'markdown'; 53 | $page->text = "# Markdown Reference\nEdit this page to view the source\n\n* List\n* of\n* items\n\nLink to an internal page: [[home]]\n\n[External link](http://example.com)\n\n# Heading\n\n## Heading Level 2\n\n### Heading Level 3\n\n#### Heading Level 4\n\n**Bold**"; 54 | $page->created_by = $user->id; 55 | $page->created_at = date('Y-m-d H:i:s'); 56 | $page->save(); 57 | } 58 | 59 | return $this->page($request, $response, ['page' => 'home']); 60 | } 61 | 62 | public function page(ServerRequestInterface $request, ResponseInterface $response, $params): ResponseInterface { 63 | 64 | $this->_user = $user = $request->getAttribute('user'); 65 | 66 | $page = ORM::for_table('pages') 67 | ->where('org_id', $user->org_id) 68 | ->where('slug', $params['page']) 69 | ->find_one(); 70 | 71 | if(!$page) { 72 | return $response->withStatus(302) 73 | ->withHeader('Location', '/edit?page='.urlencode($params['page'])); 74 | } 75 | 76 | $html = $this->_renderWikiHTML($page); 77 | 78 | $links[] = [ 79 | 'url' => '/wiki/', 80 | 'name' => 'Home', 81 | ]; 82 | 83 | $links[] = [ 84 | 'url' => '/edit?page='.urlencode($params['page']), 85 | 'name' => 'Edit', 86 | ]; 87 | 88 | return render($response, 'wiki/page', [ 89 | 'page_html' => $html, 90 | 'user' => $user, 91 | 'navlinks' => $links, 92 | ]); 93 | } 94 | 95 | public function delete_access_tokens(ServerRequestInterface $request, ResponseInterface $response, $params): ResponseInterface { 96 | 97 | ORM::for_table('external_tokens')->delete_many(); 98 | 99 | return $response->withStatus(302) 100 | ->withHeader('Location', '/wiki/'); 101 | } 102 | 103 | private function _renderWikiHTML(&$page) { 104 | 105 | $text = $page->text; 106 | 107 | // Convert wiki links to Markdown links 108 | $text = preg_replace_callback('/\[\[(.+?)\]\]/', function($matches) { 109 | $name = $matches[1]; 110 | return '['.$name.']('.$_ENV['BASE_URL'].'wiki/'.urlencode($name).')'; 111 | }, $text); 112 | 113 | $converter = new CommonMarkConverter([ 114 | 'html_input' => 'strip', 115 | 'allow_unsafe_links' => false, 116 | ]); 117 | 118 | $html = $converter->convert($text); 119 | 120 | // Replace recognized site links with chips 121 | $todo = new \App\Chips\Todo($this->_user); 122 | $matches = $todo->matches($html); 123 | $hashmap = []; 124 | while(count($matches) > 0) { 125 | // Grab the first match 126 | $match = $matches[1][0]; 127 | // Replace the URL with a hash, and add to the map 128 | $url = $match[0]; 129 | $hash = md5($url); 130 | $hashmap[$hash] = $url; 131 | $html = substr_replace($html, $hash, $match[1], strlen($url)); 132 | $matches = $todo->matches($html); 133 | } 134 | 135 | // Go through and replace all the hashes with the expanded HTML 136 | foreach($hashmap as $hash=>$url) { 137 | $html = str_replace($hash, $todo->chipHTML($url), $html); 138 | } 139 | 140 | return $html; 141 | } 142 | 143 | public function edit(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface { 144 | $params = $request->getQueryParams(); 145 | 146 | $user = $request->getAttribute('user'); 147 | 148 | $page = ORM::for_table('pages') 149 | ->where('org_id', $user->org_id) 150 | ->where('slug', $params['page']) 151 | ->find_one(); 152 | 153 | if(!$page) { 154 | $page = ORM::for_table('pages')->create(); 155 | $page->slug = $params['page']; 156 | } 157 | 158 | $links[] = [ 159 | 'url' => '/wiki/', 160 | 'name' => 'Home', 161 | ]; 162 | 163 | $links[] = [ 164 | 'url' => '/wiki/'.urlencode($params['page']), 165 | 'name' => $params['page'], 166 | ]; 167 | 168 | return render($response, 'wiki/edit', [ 169 | 'page' => $page, 170 | 'user' => $user, 171 | 'navlinks' => $links, 172 | ]); 173 | } 174 | 175 | public function save(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface { 176 | $params = (array)$request->getParsedBody(); 177 | 178 | $user = $request->getAttribute('user'); 179 | 180 | $page = ORM::for_table('pages') 181 | ->where('org_id', $user->org_id) 182 | ->where('slug', $params['slug']) 183 | ->find_one(); 184 | 185 | if(!$page) { 186 | $page = ORM::for_table('pages')->create(); 187 | $page->org_id = $user->org_id; 188 | $page->slug = $params['slug']; 189 | $page->created_by = $user->id; 190 | $page->created_at = date('Y-m-d H:i:s'); 191 | } 192 | 193 | $page->last_updated_by = $user->id; 194 | $page->updated_at = date('Y-m-d H:i:s'); 195 | 196 | $page->text = $params['text']; 197 | 198 | // Look for any matching links to supported apps and fetch content to expand 199 | $todo = new \App\Chips\Todo($user); 200 | $todo->saveExpandedLinks($page->text); 201 | 202 | $page->save(); 203 | 204 | return $response->withStatus(302) 205 | ->withHeader('Location', '/wiki/'.urlencode($params['slug'])); 206 | } 207 | 208 | 209 | } 210 | 211 | -------------------------------------------------------------------------------- /src/app/Controllers/TokenEndpoint.php: -------------------------------------------------------------------------------- 1 | getParsedBody(); 13 | 14 | // Client Authentication 15 | $client = $this->_getClient($request); 16 | 17 | // Fail now if the client_id is invalid 18 | if(!$client) { 19 | return $this->_jsonError('unauthorized'); 20 | } 21 | 22 | logger()->debug('Processing token request', ['grant_type' => $params['grant_type']]); 23 | 24 | switch($params['grant_type'] ?? '') { 25 | 26 | case 'client_credentials': 27 | return $this->_clientCredentialsGrant($request); 28 | 29 | case 'urn:ietf:params:oauth:grant-type:jwt-acdc': 30 | return $this->_acdcGrant($request); 31 | 32 | default: 33 | return $this->_jsonError('invalid_request', 400); 34 | } 35 | 36 | } 37 | 38 | private function _clientCredentialsGrant(Request &$request) { 39 | // Require client authentication 40 | $client = $this->_getClient($request, true); 41 | if(!$client) { 42 | return $this->_jsonError('unauthorized'); 43 | } 44 | 45 | $user = null; 46 | $org = null; 47 | 48 | // TODO: Accept user or org parameters if the user/org has already authorized this client 49 | 50 | $token = $this->_generateAccessToken($client, $user, $org); 51 | 52 | return $this->_tokenResponse($token); 53 | } 54 | 55 | private function _acdcGrant(Request $request) { 56 | // Require client authentication 57 | $client = $this->_getClient($request, true); 58 | if(!$client) { 59 | return $this->_jsonError('unauthorized'); 60 | } 61 | 62 | $params = (array)$request->getParsedBody(); 63 | 64 | if(!isset($params['acdc'])) { 65 | return $this->_jsonError('invalid_grant', 400); 66 | } 67 | 68 | if(!preg_match('/(.+)\.(.+)\.(.+)/', $params['acdc'], $match)) { 69 | return $this->_jsonError('invalid_grant', 400); 70 | } 71 | 72 | $headerComponent = $match[1]; 73 | $claimsComponent = $match[2]; 74 | $signature = $match[3]; 75 | 76 | $claims = json_decode(base64_urldecode($claimsComponent), true); 77 | 78 | // echo json_encode(['access_token' => 'foo']); die(); 79 | 80 | // JWT signature is not yet verified 81 | 82 | // TODO: Validate JWT signature by looking up public key of issuer 83 | 84 | // FUTURE: Don't bother validating JWTs from issuers we don't know about. 85 | // The issuer should always match an issuer in the orgs table. 86 | 87 | // Validate exp, iat 88 | if($claims['exp'] < time()) { 89 | return $this->_jsonError('invalid_grant', 400, 'ACDC expired'); 90 | } 91 | 92 | // azp (authorized party) - which client the ACDC was issued to by the IdP. 93 | // aud is the token endpoint. 94 | // Validate azp matches client authentication. 95 | if($claims['azp'] != $client->client_id) { 96 | return $this->_jsonError('invalid_grant', 400, 'azp ('.$claims['azp'].') does not match client authentication ('.$client->client_id.')'); 97 | } 98 | 99 | // Validate the audience is the token endpoint 100 | $tokenEndpoint = $_ENV['BASE_URL'].'oauth/token'; 101 | if($claims['aud'] != $tokenEndpoint) { 102 | return $this->_jsonError('invalid_grant', 400, 'aud ('.$claims['aud'].') does not match this token endpoint'); 103 | } 104 | 105 | // Look up the org by the iss of the token 106 | $org = ORM::for_table('orgs') 107 | ->where('issuer', $claims['iss']) 108 | ->find_one(); 109 | 110 | if(!$org) { 111 | return $this->_jsonError('invalid_grant', 400, 'Unknown tenant: '.$claims['iss']); 112 | } 113 | 114 | // Look up user 115 | // We should know about them already. What happens if not? 116 | $user = ORM::for_table('users') 117 | ->where('org_id', $org->id) 118 | ->where('sub', $claims['sub']) 119 | ->find_one(); 120 | 121 | if(!$user) { 122 | // FUTURE: If there is an `email` claim, look up the user that way too 123 | } 124 | 125 | if(!$user) { 126 | return $this->_jsonError('invalid_grant', 400, 'The user identified by sub ('.$claims['sub'].') was not found'); 127 | } 128 | 129 | $scope = implode(' ', $claims['scopes']); 130 | 131 | // All validations succeeded, issue an access token 132 | $accessToken = $this->_generateAccessToken($client, $user, $org, $scope); 133 | 134 | return $this->_tokenResponse($accessToken); 135 | } 136 | 137 | private function _generateAccessToken($client, $user, $org, $scope='') { 138 | $token = ORM::for_table('tokens')->create(); 139 | $token->user_id = $user->id; 140 | $token->client_id = $client->id; 141 | $token->scope = $scope; 142 | $token->created_at = date('Y-m-d H:i:s'); 143 | $token->token = bin2hex(random_bytes(50)); 144 | $token->save(); 145 | 146 | return $token; 147 | } 148 | 149 | /* Look up the client from the client_id param or HTTP Basic Auth username */ 150 | private function _getClient(Request $request, $requireAuth=false) { 151 | 152 | if($request->hasHeader('Authorization')) { 153 | $parts = explode(' ', $request->getHeaderLine('Authorization')); 154 | if($parts[0] != 'Basic') { 155 | return null; 156 | } 157 | 158 | $clientInfo = base64_decode($parts[1]); 159 | 160 | if(!preg_match('/^(.+):(.+)$/', ($clientInfo ?? ''), $match)) { 161 | return null; 162 | } 163 | 164 | if($requireAuth) { 165 | $client = ORM::for_table('clients') 166 | ->where('client_id', $match[1]) 167 | ->where('client_secret', $match[2]) 168 | ->find_one(); 169 | } else { 170 | $client = ORM::for_table('clients') 171 | ->where('client_id', $match[1]) 172 | ->find_one(); 173 | } 174 | 175 | return $client; 176 | } 177 | 178 | $params = (array)$request->getParsedBody(); 179 | 180 | if(isset($params['client_id'])) { 181 | if($requireAuth) { 182 | $client = ORM::for_table('clients') 183 | ->where('client_id', $params['client_id']) 184 | ->where('client_secret', ($params['client_secret'] ?? '')) 185 | ->find_one(); 186 | } else { 187 | $client = ORM::for_table('clients') 188 | ->where('client_id', $params['client_id']) 189 | ->find_one(); 190 | } 191 | 192 | return $client; 193 | } 194 | 195 | return null; 196 | } 197 | 198 | private function _tokenResponse($token) { 199 | $response = new Response(); 200 | $tokenResponse = json_encode([ 201 | 'token_type' => 'Bearer', 202 | 'access_token' => $token->token, 203 | ]); 204 | $response->getBody()->write($tokenResponse); 205 | return $response->withStatus(200); 206 | } 207 | 208 | private function _jsonError($error, $code=401, $description=null) { 209 | $response = new Response(); 210 | $data = ['error' => $error]; 211 | if($description) 212 | $data['error_description'] = $description; 213 | $error = json_encode($data); 214 | $response->getBody()->write($error); 215 | return $response->withStatus($code); 216 | } 217 | 218 | } 219 | -------------------------------------------------------------------------------- /src/public/bootstrap-5.3.2/css/bootstrap-reboot.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap Reboot v5.3.2 (https://getbootstrap.com/) 3 | * Copyright 2011-2023 The Bootstrap Authors 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 5 | */:root,[data-bs-theme=light]{--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-black:#000;--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-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-font-sans-serif:system-ui,-apple-system,"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-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-color-rgb:33,37,41;--bs-body-bg:#fff;--bs-body-bg-rgb:255,255,255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0,0,0;--bs-secondary-color:rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb:33,37,41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233,236,239;--bs-tertiary-color:rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb:33,37,41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248,249,250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13,110,253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10,88,202;--bs-code-color:#d63384;--bs-highlight-color:#212529;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13, 110, 253, 0.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#dee2e6;--bs-body-color-rgb:222,226,230;--bs-body-bg:#212529;--bs-body-bg-rgb:33,37,41;--bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255,255,255;--bs-secondary-color:rgba(222, 226, 230, 0.75);--bs-secondary-color-rgb:222,226,230;--bs-secondary-bg:#343a40;--bs-secondary-bg-rgb:52,58,64;--bs-tertiary-color:rgba(222, 226, 230, 0.5);--bs-tertiary-color-rgb:222,226,230;--bs-tertiary-bg:#2b3035;--bs-tertiary-bg-rgb:43,48,53;--bs-primary-text-emphasis:#6ea8fe;--bs-secondary-text-emphasis:#a7acb1;--bs-success-text-emphasis:#75b798;--bs-info-text-emphasis:#6edff6;--bs-warning-text-emphasis:#ffda6a;--bs-danger-text-emphasis:#ea868f;--bs-light-text-emphasis:#f8f9fa;--bs-dark-text-emphasis:#dee2e6;--bs-primary-bg-subtle:#031633;--bs-secondary-bg-subtle:#161719;--bs-success-bg-subtle:#051b11;--bs-info-bg-subtle:#032830;--bs-warning-bg-subtle:#332701;--bs-danger-bg-subtle:#2c0b0e;--bs-light-bg-subtle:#343a40;--bs-dark-bg-subtle:#1a1d20;--bs-primary-border-subtle:#084298;--bs-secondary-border-subtle:#41464b;--bs-success-border-subtle:#0f5132;--bs-info-border-subtle:#087990;--bs-warning-border-subtle:#997404;--bs-danger-border-subtle:#842029;--bs-light-border-subtle:#495057;--bs-dark-border-subtle:#343a40;--bs-heading-color:inherit;--bs-link-color:#6ea8fe;--bs-link-hover-color:#8bb9fe;--bs-link-color-rgb:110,168,254;--bs-link-hover-color-rgb:139,185,254;--bs-code-color:#e685b5;--bs-highlight-color:#dee2e6;--bs-highlight-bg:#664d03;--bs-border-color:#495057;--bs-border-color-translucent:rgba(255, 255, 255, 0.15);--bs-form-valid-color:#75b798;--bs-form-valid-border-color:#75b798;--bs-form-invalid-color:#ea868f;--bs-form-invalid-border-color:#ea868f}*,::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;border:0;border-top:var(--bs-border-width) solid;opacity:.25}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){h1{font-size:2.5rem}}h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){h2{font-size:2rem}}h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){h3{font-size:1.75rem}}h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}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{font-size:.875em}mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));text-decoration:underline}a:hover{--bs-link-color-rgb:var(--bs-link-hover-color-rgb)}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}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:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}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:var(--bs-secondary-color);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]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}[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:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important} 6 | /*# sourceMappingURL=bootstrap-reboot.min.css.map */ -------------------------------------------------------------------------------- /src/public/bootstrap-5.3.2/css/bootstrap-reboot.rtl.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap Reboot v5.3.2 (https://getbootstrap.com/) 3 | * Copyright 2011-2023 The Bootstrap Authors 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 5 | */:root,[data-bs-theme=light]{--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-black:#000;--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-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-font-sans-serif:system-ui,-apple-system,"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-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-color-rgb:33,37,41;--bs-body-bg:#fff;--bs-body-bg-rgb:255,255,255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0,0,0;--bs-secondary-color:rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb:33,37,41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233,236,239;--bs-tertiary-color:rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb:33,37,41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248,249,250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13,110,253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10,88,202;--bs-code-color:#d63384;--bs-highlight-color:#212529;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13, 110, 253, 0.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#dee2e6;--bs-body-color-rgb:222,226,230;--bs-body-bg:#212529;--bs-body-bg-rgb:33,37,41;--bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255,255,255;--bs-secondary-color:rgba(222, 226, 230, 0.75);--bs-secondary-color-rgb:222,226,230;--bs-secondary-bg:#343a40;--bs-secondary-bg-rgb:52,58,64;--bs-tertiary-color:rgba(222, 226, 230, 0.5);--bs-tertiary-color-rgb:222,226,230;--bs-tertiary-bg:#2b3035;--bs-tertiary-bg-rgb:43,48,53;--bs-primary-text-emphasis:#6ea8fe;--bs-secondary-text-emphasis:#a7acb1;--bs-success-text-emphasis:#75b798;--bs-info-text-emphasis:#6edff6;--bs-warning-text-emphasis:#ffda6a;--bs-danger-text-emphasis:#ea868f;--bs-light-text-emphasis:#f8f9fa;--bs-dark-text-emphasis:#dee2e6;--bs-primary-bg-subtle:#031633;--bs-secondary-bg-subtle:#161719;--bs-success-bg-subtle:#051b11;--bs-info-bg-subtle:#032830;--bs-warning-bg-subtle:#332701;--bs-danger-bg-subtle:#2c0b0e;--bs-light-bg-subtle:#343a40;--bs-dark-bg-subtle:#1a1d20;--bs-primary-border-subtle:#084298;--bs-secondary-border-subtle:#41464b;--bs-success-border-subtle:#0f5132;--bs-info-border-subtle:#087990;--bs-warning-border-subtle:#997404;--bs-danger-border-subtle:#842029;--bs-light-border-subtle:#495057;--bs-dark-border-subtle:#343a40;--bs-heading-color:inherit;--bs-link-color:#6ea8fe;--bs-link-hover-color:#8bb9fe;--bs-link-color-rgb:110,168,254;--bs-link-hover-color-rgb:139,185,254;--bs-code-color:#e685b5;--bs-highlight-color:#dee2e6;--bs-highlight-bg:#664d03;--bs-border-color:#495057;--bs-border-color-translucent:rgba(255, 255, 255, 0.15);--bs-form-valid-color:#75b798;--bs-form-valid-border-color:#75b798;--bs-form-invalid-color:#ea868f;--bs-form-invalid-border-color:#ea868f}*,::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;border:0;border-top:var(--bs-border-width) solid;opacity:.25}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){h1{font-size:2.5rem}}h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){h2{font-size:2rem}}h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){h3{font-size:1.75rem}}h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}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-right: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-right:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:.875em}mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));text-decoration:underline}a:hover{--bs-link-color-rgb:var(--bs-link-hover-color-rgb)}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}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:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}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:var(--bs-secondary-color);text-align:right}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]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}[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:right;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:right}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=email],[type=number],[type=tel],[type=url]{direction:ltr}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important} 6 | /*# sourceMappingURL=bootstrap-reboot.rtl.min.css.map */ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /src/public/bootstrap-5.3.2/css/bootstrap-reboot.rtl.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap Reboot v5.3.2 (https://getbootstrap.com/) 3 | * Copyright 2011-2023 The Bootstrap Authors 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 5 | */ 6 | :root, 7 | [data-bs-theme=light] { 8 | --bs-blue: #0d6efd; 9 | --bs-indigo: #6610f2; 10 | --bs-purple: #6f42c1; 11 | --bs-pink: #d63384; 12 | --bs-red: #dc3545; 13 | --bs-orange: #fd7e14; 14 | --bs-yellow: #ffc107; 15 | --bs-green: #198754; 16 | --bs-teal: #20c997; 17 | --bs-cyan: #0dcaf0; 18 | --bs-black: #000; 19 | --bs-white: #fff; 20 | --bs-gray: #6c757d; 21 | --bs-gray-dark: #343a40; 22 | --bs-gray-100: #f8f9fa; 23 | --bs-gray-200: #e9ecef; 24 | --bs-gray-300: #dee2e6; 25 | --bs-gray-400: #ced4da; 26 | --bs-gray-500: #adb5bd; 27 | --bs-gray-600: #6c757d; 28 | --bs-gray-700: #495057; 29 | --bs-gray-800: #343a40; 30 | --bs-gray-900: #212529; 31 | --bs-primary: #0d6efd; 32 | --bs-secondary: #6c757d; 33 | --bs-success: #198754; 34 | --bs-info: #0dcaf0; 35 | --bs-warning: #ffc107; 36 | --bs-danger: #dc3545; 37 | --bs-light: #f8f9fa; 38 | --bs-dark: #212529; 39 | --bs-primary-rgb: 13, 110, 253; 40 | --bs-secondary-rgb: 108, 117, 125; 41 | --bs-success-rgb: 25, 135, 84; 42 | --bs-info-rgb: 13, 202, 240; 43 | --bs-warning-rgb: 255, 193, 7; 44 | --bs-danger-rgb: 220, 53, 69; 45 | --bs-light-rgb: 248, 249, 250; 46 | --bs-dark-rgb: 33, 37, 41; 47 | --bs-primary-text-emphasis: #052c65; 48 | --bs-secondary-text-emphasis: #2b2f32; 49 | --bs-success-text-emphasis: #0a3622; 50 | --bs-info-text-emphasis: #055160; 51 | --bs-warning-text-emphasis: #664d03; 52 | --bs-danger-text-emphasis: #58151c; 53 | --bs-light-text-emphasis: #495057; 54 | --bs-dark-text-emphasis: #495057; 55 | --bs-primary-bg-subtle: #cfe2ff; 56 | --bs-secondary-bg-subtle: #e2e3e5; 57 | --bs-success-bg-subtle: #d1e7dd; 58 | --bs-info-bg-subtle: #cff4fc; 59 | --bs-warning-bg-subtle: #fff3cd; 60 | --bs-danger-bg-subtle: #f8d7da; 61 | --bs-light-bg-subtle: #fcfcfd; 62 | --bs-dark-bg-subtle: #ced4da; 63 | --bs-primary-border-subtle: #9ec5fe; 64 | --bs-secondary-border-subtle: #c4c8cb; 65 | --bs-success-border-subtle: #a3cfbb; 66 | --bs-info-border-subtle: #9eeaf9; 67 | --bs-warning-border-subtle: #ffe69c; 68 | --bs-danger-border-subtle: #f1aeb5; 69 | --bs-light-border-subtle: #e9ecef; 70 | --bs-dark-border-subtle: #adb5bd; 71 | --bs-white-rgb: 255, 255, 255; 72 | --bs-black-rgb: 0, 0, 0; 73 | --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 74 | --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; 75 | --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)); 76 | --bs-body-font-family: var(--bs-font-sans-serif); 77 | --bs-body-font-size: 1rem; 78 | --bs-body-font-weight: 400; 79 | --bs-body-line-height: 1.5; 80 | --bs-body-color: #212529; 81 | --bs-body-color-rgb: 33, 37, 41; 82 | --bs-body-bg: #fff; 83 | --bs-body-bg-rgb: 255, 255, 255; 84 | --bs-emphasis-color: #000; 85 | --bs-emphasis-color-rgb: 0, 0, 0; 86 | --bs-secondary-color: rgba(33, 37, 41, 0.75); 87 | --bs-secondary-color-rgb: 33, 37, 41; 88 | --bs-secondary-bg: #e9ecef; 89 | --bs-secondary-bg-rgb: 233, 236, 239; 90 | --bs-tertiary-color: rgba(33, 37, 41, 0.5); 91 | --bs-tertiary-color-rgb: 33, 37, 41; 92 | --bs-tertiary-bg: #f8f9fa; 93 | --bs-tertiary-bg-rgb: 248, 249, 250; 94 | --bs-heading-color: inherit; 95 | --bs-link-color: #0d6efd; 96 | --bs-link-color-rgb: 13, 110, 253; 97 | --bs-link-decoration: underline; 98 | --bs-link-hover-color: #0a58ca; 99 | --bs-link-hover-color-rgb: 10, 88, 202; 100 | --bs-code-color: #d63384; 101 | --bs-highlight-color: #212529; 102 | --bs-highlight-bg: #fff3cd; 103 | --bs-border-width: 1px; 104 | --bs-border-style: solid; 105 | --bs-border-color: #dee2e6; 106 | --bs-border-color-translucent: rgba(0, 0, 0, 0.175); 107 | --bs-border-radius: 0.375rem; 108 | --bs-border-radius-sm: 0.25rem; 109 | --bs-border-radius-lg: 0.5rem; 110 | --bs-border-radius-xl: 1rem; 111 | --bs-border-radius-xxl: 2rem; 112 | --bs-border-radius-2xl: var(--bs-border-radius-xxl); 113 | --bs-border-radius-pill: 50rem; 114 | --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); 115 | --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); 116 | --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175); 117 | --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075); 118 | --bs-focus-ring-width: 0.25rem; 119 | --bs-focus-ring-opacity: 0.25; 120 | --bs-focus-ring-color: rgba(13, 110, 253, 0.25); 121 | --bs-form-valid-color: #198754; 122 | --bs-form-valid-border-color: #198754; 123 | --bs-form-invalid-color: #dc3545; 124 | --bs-form-invalid-border-color: #dc3545; 125 | } 126 | 127 | [data-bs-theme=dark] { 128 | color-scheme: dark; 129 | --bs-body-color: #dee2e6; 130 | --bs-body-color-rgb: 222, 226, 230; 131 | --bs-body-bg: #212529; 132 | --bs-body-bg-rgb: 33, 37, 41; 133 | --bs-emphasis-color: #fff; 134 | --bs-emphasis-color-rgb: 255, 255, 255; 135 | --bs-secondary-color: rgba(222, 226, 230, 0.75); 136 | --bs-secondary-color-rgb: 222, 226, 230; 137 | --bs-secondary-bg: #343a40; 138 | --bs-secondary-bg-rgb: 52, 58, 64; 139 | --bs-tertiary-color: rgba(222, 226, 230, 0.5); 140 | --bs-tertiary-color-rgb: 222, 226, 230; 141 | --bs-tertiary-bg: #2b3035; 142 | --bs-tertiary-bg-rgb: 43, 48, 53; 143 | --bs-primary-text-emphasis: #6ea8fe; 144 | --bs-secondary-text-emphasis: #a7acb1; 145 | --bs-success-text-emphasis: #75b798; 146 | --bs-info-text-emphasis: #6edff6; 147 | --bs-warning-text-emphasis: #ffda6a; 148 | --bs-danger-text-emphasis: #ea868f; 149 | --bs-light-text-emphasis: #f8f9fa; 150 | --bs-dark-text-emphasis: #dee2e6; 151 | --bs-primary-bg-subtle: #031633; 152 | --bs-secondary-bg-subtle: #161719; 153 | --bs-success-bg-subtle: #051b11; 154 | --bs-info-bg-subtle: #032830; 155 | --bs-warning-bg-subtle: #332701; 156 | --bs-danger-bg-subtle: #2c0b0e; 157 | --bs-light-bg-subtle: #343a40; 158 | --bs-dark-bg-subtle: #1a1d20; 159 | --bs-primary-border-subtle: #084298; 160 | --bs-secondary-border-subtle: #41464b; 161 | --bs-success-border-subtle: #0f5132; 162 | --bs-info-border-subtle: #087990; 163 | --bs-warning-border-subtle: #997404; 164 | --bs-danger-border-subtle: #842029; 165 | --bs-light-border-subtle: #495057; 166 | --bs-dark-border-subtle: #343a40; 167 | --bs-heading-color: inherit; 168 | --bs-link-color: #6ea8fe; 169 | --bs-link-hover-color: #8bb9fe; 170 | --bs-link-color-rgb: 110, 168, 254; 171 | --bs-link-hover-color-rgb: 139, 185, 254; 172 | --bs-code-color: #e685b5; 173 | --bs-highlight-color: #dee2e6; 174 | --bs-highlight-bg: #664d03; 175 | --bs-border-color: #495057; 176 | --bs-border-color-translucent: rgba(255, 255, 255, 0.15); 177 | --bs-form-valid-color: #75b798; 178 | --bs-form-valid-border-color: #75b798; 179 | --bs-form-invalid-color: #ea868f; 180 | --bs-form-invalid-border-color: #ea868f; 181 | } 182 | 183 | *, 184 | *::before, 185 | *::after { 186 | box-sizing: border-box; 187 | } 188 | 189 | @media (prefers-reduced-motion: no-preference) { 190 | :root { 191 | scroll-behavior: smooth; 192 | } 193 | } 194 | 195 | body { 196 | margin: 0; 197 | font-family: var(--bs-body-font-family); 198 | font-size: var(--bs-body-font-size); 199 | font-weight: var(--bs-body-font-weight); 200 | line-height: var(--bs-body-line-height); 201 | color: var(--bs-body-color); 202 | text-align: var(--bs-body-text-align); 203 | background-color: var(--bs-body-bg); 204 | -webkit-text-size-adjust: 100%; 205 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 206 | } 207 | 208 | hr { 209 | margin: 1rem 0; 210 | color: inherit; 211 | border: 0; 212 | border-top: var(--bs-border-width) solid; 213 | opacity: 0.25; 214 | } 215 | 216 | h6, h5, h4, h3, h2, h1 { 217 | margin-top: 0; 218 | margin-bottom: 0.5rem; 219 | font-weight: 500; 220 | line-height: 1.2; 221 | color: var(--bs-heading-color); 222 | } 223 | 224 | h1 { 225 | font-size: calc(1.375rem + 1.5vw); 226 | } 227 | @media (min-width: 1200px) { 228 | h1 { 229 | font-size: 2.5rem; 230 | } 231 | } 232 | 233 | h2 { 234 | font-size: calc(1.325rem + 0.9vw); 235 | } 236 | @media (min-width: 1200px) { 237 | h2 { 238 | font-size: 2rem; 239 | } 240 | } 241 | 242 | h3 { 243 | font-size: calc(1.3rem + 0.6vw); 244 | } 245 | @media (min-width: 1200px) { 246 | h3 { 247 | font-size: 1.75rem; 248 | } 249 | } 250 | 251 | h4 { 252 | font-size: calc(1.275rem + 0.3vw); 253 | } 254 | @media (min-width: 1200px) { 255 | h4 { 256 | font-size: 1.5rem; 257 | } 258 | } 259 | 260 | h5 { 261 | font-size: 1.25rem; 262 | } 263 | 264 | h6 { 265 | font-size: 1rem; 266 | } 267 | 268 | p { 269 | margin-top: 0; 270 | margin-bottom: 1rem; 271 | } 272 | 273 | abbr[title] { 274 | -webkit-text-decoration: underline dotted; 275 | text-decoration: underline dotted; 276 | cursor: help; 277 | -webkit-text-decoration-skip-ink: none; 278 | text-decoration-skip-ink: none; 279 | } 280 | 281 | address { 282 | margin-bottom: 1rem; 283 | font-style: normal; 284 | line-height: inherit; 285 | } 286 | 287 | ol, 288 | ul { 289 | padding-right: 2rem; 290 | } 291 | 292 | ol, 293 | ul, 294 | dl { 295 | margin-top: 0; 296 | margin-bottom: 1rem; 297 | } 298 | 299 | ol ol, 300 | ul ul, 301 | ol ul, 302 | ul ol { 303 | margin-bottom: 0; 304 | } 305 | 306 | dt { 307 | font-weight: 700; 308 | } 309 | 310 | dd { 311 | margin-bottom: 0.5rem; 312 | margin-right: 0; 313 | } 314 | 315 | blockquote { 316 | margin: 0 0 1rem; 317 | } 318 | 319 | b, 320 | strong { 321 | font-weight: bolder; 322 | } 323 | 324 | small { 325 | font-size: 0.875em; 326 | } 327 | 328 | mark { 329 | padding: 0.1875em; 330 | color: var(--bs-highlight-color); 331 | background-color: var(--bs-highlight-bg); 332 | } 333 | 334 | sub, 335 | sup { 336 | position: relative; 337 | font-size: 0.75em; 338 | line-height: 0; 339 | vertical-align: baseline; 340 | } 341 | 342 | sub { 343 | bottom: -0.25em; 344 | } 345 | 346 | sup { 347 | top: -0.5em; 348 | } 349 | 350 | a { 351 | color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1)); 352 | text-decoration: underline; 353 | } 354 | a:hover { 355 | --bs-link-color-rgb: var(--bs-link-hover-color-rgb); 356 | } 357 | 358 | a:not([href]):not([class]), a:not([href]):not([class]):hover { 359 | color: inherit; 360 | text-decoration: none; 361 | } 362 | 363 | pre, 364 | code, 365 | kbd, 366 | samp { 367 | font-family: var(--bs-font-monospace); 368 | font-size: 1em; 369 | } 370 | 371 | pre { 372 | display: block; 373 | margin-top: 0; 374 | margin-bottom: 1rem; 375 | overflow: auto; 376 | font-size: 0.875em; 377 | } 378 | pre code { 379 | font-size: inherit; 380 | color: inherit; 381 | word-break: normal; 382 | } 383 | 384 | code { 385 | font-size: 0.875em; 386 | color: var(--bs-code-color); 387 | word-wrap: break-word; 388 | } 389 | a > code { 390 | color: inherit; 391 | } 392 | 393 | kbd { 394 | padding: 0.1875rem 0.375rem; 395 | font-size: 0.875em; 396 | color: var(--bs-body-bg); 397 | background-color: var(--bs-body-color); 398 | border-radius: 0.25rem; 399 | } 400 | kbd kbd { 401 | padding: 0; 402 | font-size: 1em; 403 | } 404 | 405 | figure { 406 | margin: 0 0 1rem; 407 | } 408 | 409 | img, 410 | svg { 411 | vertical-align: middle; 412 | } 413 | 414 | table { 415 | caption-side: bottom; 416 | border-collapse: collapse; 417 | } 418 | 419 | caption { 420 | padding-top: 0.5rem; 421 | padding-bottom: 0.5rem; 422 | color: var(--bs-secondary-color); 423 | text-align: right; 424 | } 425 | 426 | th { 427 | text-align: inherit; 428 | text-align: -webkit-match-parent; 429 | } 430 | 431 | thead, 432 | tbody, 433 | tfoot, 434 | tr, 435 | td, 436 | th { 437 | border-color: inherit; 438 | border-style: solid; 439 | border-width: 0; 440 | } 441 | 442 | label { 443 | display: inline-block; 444 | } 445 | 446 | button { 447 | border-radius: 0; 448 | } 449 | 450 | button:focus:not(:focus-visible) { 451 | outline: 0; 452 | } 453 | 454 | input, 455 | button, 456 | select, 457 | optgroup, 458 | textarea { 459 | margin: 0; 460 | font-family: inherit; 461 | font-size: inherit; 462 | line-height: inherit; 463 | } 464 | 465 | button, 466 | select { 467 | text-transform: none; 468 | } 469 | 470 | [role=button] { 471 | cursor: pointer; 472 | } 473 | 474 | select { 475 | word-wrap: normal; 476 | } 477 | select:disabled { 478 | opacity: 1; 479 | } 480 | 481 | [list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator { 482 | display: none !important; 483 | } 484 | 485 | button, 486 | [type=button], 487 | [type=reset], 488 | [type=submit] { 489 | -webkit-appearance: button; 490 | } 491 | button:not(:disabled), 492 | [type=button]:not(:disabled), 493 | [type=reset]:not(:disabled), 494 | [type=submit]:not(:disabled) { 495 | cursor: pointer; 496 | } 497 | 498 | ::-moz-focus-inner { 499 | padding: 0; 500 | border-style: none; 501 | } 502 | 503 | textarea { 504 | resize: vertical; 505 | } 506 | 507 | fieldset { 508 | min-width: 0; 509 | padding: 0; 510 | margin: 0; 511 | border: 0; 512 | } 513 | 514 | legend { 515 | float: right; 516 | width: 100%; 517 | padding: 0; 518 | margin-bottom: 0.5rem; 519 | font-size: calc(1.275rem + 0.3vw); 520 | line-height: inherit; 521 | } 522 | @media (min-width: 1200px) { 523 | legend { 524 | font-size: 1.5rem; 525 | } 526 | } 527 | legend + * { 528 | clear: right; 529 | } 530 | 531 | ::-webkit-datetime-edit-fields-wrapper, 532 | ::-webkit-datetime-edit-text, 533 | ::-webkit-datetime-edit-minute, 534 | ::-webkit-datetime-edit-hour-field, 535 | ::-webkit-datetime-edit-day-field, 536 | ::-webkit-datetime-edit-month-field, 537 | ::-webkit-datetime-edit-year-field { 538 | padding: 0; 539 | } 540 | 541 | ::-webkit-inner-spin-button { 542 | height: auto; 543 | } 544 | 545 | [type=search] { 546 | -webkit-appearance: textfield; 547 | outline-offset: -2px; 548 | } 549 | 550 | [type="tel"], 551 | [type="url"], 552 | [type="email"], 553 | [type="number"] { 554 | direction: ltr; 555 | } 556 | ::-webkit-search-decoration { 557 | -webkit-appearance: none; 558 | } 559 | 560 | ::-webkit-color-swatch-wrapper { 561 | padding: 0; 562 | } 563 | 564 | ::-webkit-file-upload-button { 565 | font: inherit; 566 | -webkit-appearance: button; 567 | } 568 | 569 | ::file-selector-button { 570 | font: inherit; 571 | -webkit-appearance: button; 572 | } 573 | 574 | output { 575 | display: inline-block; 576 | } 577 | 578 | iframe { 579 | border: 0; 580 | } 581 | 582 | summary { 583 | display: list-item; 584 | cursor: pointer; 585 | } 586 | 587 | progress { 588 | vertical-align: baseline; 589 | } 590 | 591 | [hidden] { 592 | display: none !important; 593 | } 594 | /*# sourceMappingURL=bootstrap-reboot.rtl.css.map */ -------------------------------------------------------------------------------- /src/public/bootstrap-5.3.2/css/bootstrap-reboot.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap Reboot v5.3.2 (https://getbootstrap.com/) 3 | * Copyright 2011-2023 The Bootstrap Authors 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 5 | */ 6 | :root, 7 | [data-bs-theme=light] { 8 | --bs-blue: #0d6efd; 9 | --bs-indigo: #6610f2; 10 | --bs-purple: #6f42c1; 11 | --bs-pink: #d63384; 12 | --bs-red: #dc3545; 13 | --bs-orange: #fd7e14; 14 | --bs-yellow: #ffc107; 15 | --bs-green: #198754; 16 | --bs-teal: #20c997; 17 | --bs-cyan: #0dcaf0; 18 | --bs-black: #000; 19 | --bs-white: #fff; 20 | --bs-gray: #6c757d; 21 | --bs-gray-dark: #343a40; 22 | --bs-gray-100: #f8f9fa; 23 | --bs-gray-200: #e9ecef; 24 | --bs-gray-300: #dee2e6; 25 | --bs-gray-400: #ced4da; 26 | --bs-gray-500: #adb5bd; 27 | --bs-gray-600: #6c757d; 28 | --bs-gray-700: #495057; 29 | --bs-gray-800: #343a40; 30 | --bs-gray-900: #212529; 31 | --bs-primary: #0d6efd; 32 | --bs-secondary: #6c757d; 33 | --bs-success: #198754; 34 | --bs-info: #0dcaf0; 35 | --bs-warning: #ffc107; 36 | --bs-danger: #dc3545; 37 | --bs-light: #f8f9fa; 38 | --bs-dark: #212529; 39 | --bs-primary-rgb: 13, 110, 253; 40 | --bs-secondary-rgb: 108, 117, 125; 41 | --bs-success-rgb: 25, 135, 84; 42 | --bs-info-rgb: 13, 202, 240; 43 | --bs-warning-rgb: 255, 193, 7; 44 | --bs-danger-rgb: 220, 53, 69; 45 | --bs-light-rgb: 248, 249, 250; 46 | --bs-dark-rgb: 33, 37, 41; 47 | --bs-primary-text-emphasis: #052c65; 48 | --bs-secondary-text-emphasis: #2b2f32; 49 | --bs-success-text-emphasis: #0a3622; 50 | --bs-info-text-emphasis: #055160; 51 | --bs-warning-text-emphasis: #664d03; 52 | --bs-danger-text-emphasis: #58151c; 53 | --bs-light-text-emphasis: #495057; 54 | --bs-dark-text-emphasis: #495057; 55 | --bs-primary-bg-subtle: #cfe2ff; 56 | --bs-secondary-bg-subtle: #e2e3e5; 57 | --bs-success-bg-subtle: #d1e7dd; 58 | --bs-info-bg-subtle: #cff4fc; 59 | --bs-warning-bg-subtle: #fff3cd; 60 | --bs-danger-bg-subtle: #f8d7da; 61 | --bs-light-bg-subtle: #fcfcfd; 62 | --bs-dark-bg-subtle: #ced4da; 63 | --bs-primary-border-subtle: #9ec5fe; 64 | --bs-secondary-border-subtle: #c4c8cb; 65 | --bs-success-border-subtle: #a3cfbb; 66 | --bs-info-border-subtle: #9eeaf9; 67 | --bs-warning-border-subtle: #ffe69c; 68 | --bs-danger-border-subtle: #f1aeb5; 69 | --bs-light-border-subtle: #e9ecef; 70 | --bs-dark-border-subtle: #adb5bd; 71 | --bs-white-rgb: 255, 255, 255; 72 | --bs-black-rgb: 0, 0, 0; 73 | --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 74 | --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; 75 | --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)); 76 | --bs-body-font-family: var(--bs-font-sans-serif); 77 | --bs-body-font-size: 1rem; 78 | --bs-body-font-weight: 400; 79 | --bs-body-line-height: 1.5; 80 | --bs-body-color: #212529; 81 | --bs-body-color-rgb: 33, 37, 41; 82 | --bs-body-bg: #fff; 83 | --bs-body-bg-rgb: 255, 255, 255; 84 | --bs-emphasis-color: #000; 85 | --bs-emphasis-color-rgb: 0, 0, 0; 86 | --bs-secondary-color: rgba(33, 37, 41, 0.75); 87 | --bs-secondary-color-rgb: 33, 37, 41; 88 | --bs-secondary-bg: #e9ecef; 89 | --bs-secondary-bg-rgb: 233, 236, 239; 90 | --bs-tertiary-color: rgba(33, 37, 41, 0.5); 91 | --bs-tertiary-color-rgb: 33, 37, 41; 92 | --bs-tertiary-bg: #f8f9fa; 93 | --bs-tertiary-bg-rgb: 248, 249, 250; 94 | --bs-heading-color: inherit; 95 | --bs-link-color: #0d6efd; 96 | --bs-link-color-rgb: 13, 110, 253; 97 | --bs-link-decoration: underline; 98 | --bs-link-hover-color: #0a58ca; 99 | --bs-link-hover-color-rgb: 10, 88, 202; 100 | --bs-code-color: #d63384; 101 | --bs-highlight-color: #212529; 102 | --bs-highlight-bg: #fff3cd; 103 | --bs-border-width: 1px; 104 | --bs-border-style: solid; 105 | --bs-border-color: #dee2e6; 106 | --bs-border-color-translucent: rgba(0, 0, 0, 0.175); 107 | --bs-border-radius: 0.375rem; 108 | --bs-border-radius-sm: 0.25rem; 109 | --bs-border-radius-lg: 0.5rem; 110 | --bs-border-radius-xl: 1rem; 111 | --bs-border-radius-xxl: 2rem; 112 | --bs-border-radius-2xl: var(--bs-border-radius-xxl); 113 | --bs-border-radius-pill: 50rem; 114 | --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); 115 | --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); 116 | --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175); 117 | --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075); 118 | --bs-focus-ring-width: 0.25rem; 119 | --bs-focus-ring-opacity: 0.25; 120 | --bs-focus-ring-color: rgba(13, 110, 253, 0.25); 121 | --bs-form-valid-color: #198754; 122 | --bs-form-valid-border-color: #198754; 123 | --bs-form-invalid-color: #dc3545; 124 | --bs-form-invalid-border-color: #dc3545; 125 | } 126 | 127 | [data-bs-theme=dark] { 128 | color-scheme: dark; 129 | --bs-body-color: #dee2e6; 130 | --bs-body-color-rgb: 222, 226, 230; 131 | --bs-body-bg: #212529; 132 | --bs-body-bg-rgb: 33, 37, 41; 133 | --bs-emphasis-color: #fff; 134 | --bs-emphasis-color-rgb: 255, 255, 255; 135 | --bs-secondary-color: rgba(222, 226, 230, 0.75); 136 | --bs-secondary-color-rgb: 222, 226, 230; 137 | --bs-secondary-bg: #343a40; 138 | --bs-secondary-bg-rgb: 52, 58, 64; 139 | --bs-tertiary-color: rgba(222, 226, 230, 0.5); 140 | --bs-tertiary-color-rgb: 222, 226, 230; 141 | --bs-tertiary-bg: #2b3035; 142 | --bs-tertiary-bg-rgb: 43, 48, 53; 143 | --bs-primary-text-emphasis: #6ea8fe; 144 | --bs-secondary-text-emphasis: #a7acb1; 145 | --bs-success-text-emphasis: #75b798; 146 | --bs-info-text-emphasis: #6edff6; 147 | --bs-warning-text-emphasis: #ffda6a; 148 | --bs-danger-text-emphasis: #ea868f; 149 | --bs-light-text-emphasis: #f8f9fa; 150 | --bs-dark-text-emphasis: #dee2e6; 151 | --bs-primary-bg-subtle: #031633; 152 | --bs-secondary-bg-subtle: #161719; 153 | --bs-success-bg-subtle: #051b11; 154 | --bs-info-bg-subtle: #032830; 155 | --bs-warning-bg-subtle: #332701; 156 | --bs-danger-bg-subtle: #2c0b0e; 157 | --bs-light-bg-subtle: #343a40; 158 | --bs-dark-bg-subtle: #1a1d20; 159 | --bs-primary-border-subtle: #084298; 160 | --bs-secondary-border-subtle: #41464b; 161 | --bs-success-border-subtle: #0f5132; 162 | --bs-info-border-subtle: #087990; 163 | --bs-warning-border-subtle: #997404; 164 | --bs-danger-border-subtle: #842029; 165 | --bs-light-border-subtle: #495057; 166 | --bs-dark-border-subtle: #343a40; 167 | --bs-heading-color: inherit; 168 | --bs-link-color: #6ea8fe; 169 | --bs-link-hover-color: #8bb9fe; 170 | --bs-link-color-rgb: 110, 168, 254; 171 | --bs-link-hover-color-rgb: 139, 185, 254; 172 | --bs-code-color: #e685b5; 173 | --bs-highlight-color: #dee2e6; 174 | --bs-highlight-bg: #664d03; 175 | --bs-border-color: #495057; 176 | --bs-border-color-translucent: rgba(255, 255, 255, 0.15); 177 | --bs-form-valid-color: #75b798; 178 | --bs-form-valid-border-color: #75b798; 179 | --bs-form-invalid-color: #ea868f; 180 | --bs-form-invalid-border-color: #ea868f; 181 | } 182 | 183 | *, 184 | *::before, 185 | *::after { 186 | box-sizing: border-box; 187 | } 188 | 189 | @media (prefers-reduced-motion: no-preference) { 190 | :root { 191 | scroll-behavior: smooth; 192 | } 193 | } 194 | 195 | body { 196 | margin: 0; 197 | font-family: var(--bs-body-font-family); 198 | font-size: var(--bs-body-font-size); 199 | font-weight: var(--bs-body-font-weight); 200 | line-height: var(--bs-body-line-height); 201 | color: var(--bs-body-color); 202 | text-align: var(--bs-body-text-align); 203 | background-color: var(--bs-body-bg); 204 | -webkit-text-size-adjust: 100%; 205 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 206 | } 207 | 208 | hr { 209 | margin: 1rem 0; 210 | color: inherit; 211 | border: 0; 212 | border-top: var(--bs-border-width) solid; 213 | opacity: 0.25; 214 | } 215 | 216 | h6, h5, h4, h3, h2, h1 { 217 | margin-top: 0; 218 | margin-bottom: 0.5rem; 219 | font-weight: 500; 220 | line-height: 1.2; 221 | color: var(--bs-heading-color); 222 | } 223 | 224 | h1 { 225 | font-size: calc(1.375rem + 1.5vw); 226 | } 227 | @media (min-width: 1200px) { 228 | h1 { 229 | font-size: 2.5rem; 230 | } 231 | } 232 | 233 | h2 { 234 | font-size: calc(1.325rem + 0.9vw); 235 | } 236 | @media (min-width: 1200px) { 237 | h2 { 238 | font-size: 2rem; 239 | } 240 | } 241 | 242 | h3 { 243 | font-size: calc(1.3rem + 0.6vw); 244 | } 245 | @media (min-width: 1200px) { 246 | h3 { 247 | font-size: 1.75rem; 248 | } 249 | } 250 | 251 | h4 { 252 | font-size: calc(1.275rem + 0.3vw); 253 | } 254 | @media (min-width: 1200px) { 255 | h4 { 256 | font-size: 1.5rem; 257 | } 258 | } 259 | 260 | h5 { 261 | font-size: 1.25rem; 262 | } 263 | 264 | h6 { 265 | font-size: 1rem; 266 | } 267 | 268 | p { 269 | margin-top: 0; 270 | margin-bottom: 1rem; 271 | } 272 | 273 | abbr[title] { 274 | -webkit-text-decoration: underline dotted; 275 | text-decoration: underline dotted; 276 | cursor: help; 277 | -webkit-text-decoration-skip-ink: none; 278 | text-decoration-skip-ink: none; 279 | } 280 | 281 | address { 282 | margin-bottom: 1rem; 283 | font-style: normal; 284 | line-height: inherit; 285 | } 286 | 287 | ol, 288 | ul { 289 | padding-left: 2rem; 290 | } 291 | 292 | ol, 293 | ul, 294 | dl { 295 | margin-top: 0; 296 | margin-bottom: 1rem; 297 | } 298 | 299 | ol ol, 300 | ul ul, 301 | ol ul, 302 | ul ol { 303 | margin-bottom: 0; 304 | } 305 | 306 | dt { 307 | font-weight: 700; 308 | } 309 | 310 | dd { 311 | margin-bottom: 0.5rem; 312 | margin-left: 0; 313 | } 314 | 315 | blockquote { 316 | margin: 0 0 1rem; 317 | } 318 | 319 | b, 320 | strong { 321 | font-weight: bolder; 322 | } 323 | 324 | small { 325 | font-size: 0.875em; 326 | } 327 | 328 | mark { 329 | padding: 0.1875em; 330 | color: var(--bs-highlight-color); 331 | background-color: var(--bs-highlight-bg); 332 | } 333 | 334 | sub, 335 | sup { 336 | position: relative; 337 | font-size: 0.75em; 338 | line-height: 0; 339 | vertical-align: baseline; 340 | } 341 | 342 | sub { 343 | bottom: -0.25em; 344 | } 345 | 346 | sup { 347 | top: -0.5em; 348 | } 349 | 350 | a { 351 | color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1)); 352 | text-decoration: underline; 353 | } 354 | a:hover { 355 | --bs-link-color-rgb: var(--bs-link-hover-color-rgb); 356 | } 357 | 358 | a:not([href]):not([class]), a:not([href]):not([class]):hover { 359 | color: inherit; 360 | text-decoration: none; 361 | } 362 | 363 | pre, 364 | code, 365 | kbd, 366 | samp { 367 | font-family: var(--bs-font-monospace); 368 | font-size: 1em; 369 | } 370 | 371 | pre { 372 | display: block; 373 | margin-top: 0; 374 | margin-bottom: 1rem; 375 | overflow: auto; 376 | font-size: 0.875em; 377 | } 378 | pre code { 379 | font-size: inherit; 380 | color: inherit; 381 | word-break: normal; 382 | } 383 | 384 | code { 385 | font-size: 0.875em; 386 | color: var(--bs-code-color); 387 | word-wrap: break-word; 388 | } 389 | a > code { 390 | color: inherit; 391 | } 392 | 393 | kbd { 394 | padding: 0.1875rem 0.375rem; 395 | font-size: 0.875em; 396 | color: var(--bs-body-bg); 397 | background-color: var(--bs-body-color); 398 | border-radius: 0.25rem; 399 | } 400 | kbd kbd { 401 | padding: 0; 402 | font-size: 1em; 403 | } 404 | 405 | figure { 406 | margin: 0 0 1rem; 407 | } 408 | 409 | img, 410 | svg { 411 | vertical-align: middle; 412 | } 413 | 414 | table { 415 | caption-side: bottom; 416 | border-collapse: collapse; 417 | } 418 | 419 | caption { 420 | padding-top: 0.5rem; 421 | padding-bottom: 0.5rem; 422 | color: var(--bs-secondary-color); 423 | text-align: left; 424 | } 425 | 426 | th { 427 | text-align: inherit; 428 | text-align: -webkit-match-parent; 429 | } 430 | 431 | thead, 432 | tbody, 433 | tfoot, 434 | tr, 435 | td, 436 | th { 437 | border-color: inherit; 438 | border-style: solid; 439 | border-width: 0; 440 | } 441 | 442 | label { 443 | display: inline-block; 444 | } 445 | 446 | button { 447 | border-radius: 0; 448 | } 449 | 450 | button:focus:not(:focus-visible) { 451 | outline: 0; 452 | } 453 | 454 | input, 455 | button, 456 | select, 457 | optgroup, 458 | textarea { 459 | margin: 0; 460 | font-family: inherit; 461 | font-size: inherit; 462 | line-height: inherit; 463 | } 464 | 465 | button, 466 | select { 467 | text-transform: none; 468 | } 469 | 470 | [role=button] { 471 | cursor: pointer; 472 | } 473 | 474 | select { 475 | word-wrap: normal; 476 | } 477 | select:disabled { 478 | opacity: 1; 479 | } 480 | 481 | [list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator { 482 | display: none !important; 483 | } 484 | 485 | button, 486 | [type=button], 487 | [type=reset], 488 | [type=submit] { 489 | -webkit-appearance: button; 490 | } 491 | button:not(:disabled), 492 | [type=button]:not(:disabled), 493 | [type=reset]:not(:disabled), 494 | [type=submit]:not(:disabled) { 495 | cursor: pointer; 496 | } 497 | 498 | ::-moz-focus-inner { 499 | padding: 0; 500 | border-style: none; 501 | } 502 | 503 | textarea { 504 | resize: vertical; 505 | } 506 | 507 | fieldset { 508 | min-width: 0; 509 | padding: 0; 510 | margin: 0; 511 | border: 0; 512 | } 513 | 514 | legend { 515 | float: left; 516 | width: 100%; 517 | padding: 0; 518 | margin-bottom: 0.5rem; 519 | font-size: calc(1.275rem + 0.3vw); 520 | line-height: inherit; 521 | } 522 | @media (min-width: 1200px) { 523 | legend { 524 | font-size: 1.5rem; 525 | } 526 | } 527 | legend + * { 528 | clear: left; 529 | } 530 | 531 | ::-webkit-datetime-edit-fields-wrapper, 532 | ::-webkit-datetime-edit-text, 533 | ::-webkit-datetime-edit-minute, 534 | ::-webkit-datetime-edit-hour-field, 535 | ::-webkit-datetime-edit-day-field, 536 | ::-webkit-datetime-edit-month-field, 537 | ::-webkit-datetime-edit-year-field { 538 | padding: 0; 539 | } 540 | 541 | ::-webkit-inner-spin-button { 542 | height: auto; 543 | } 544 | 545 | [type=search] { 546 | -webkit-appearance: textfield; 547 | outline-offset: -2px; 548 | } 549 | 550 | /* rtl:raw: 551 | [type="tel"], 552 | [type="url"], 553 | [type="email"], 554 | [type="number"] { 555 | direction: ltr; 556 | } 557 | */ 558 | ::-webkit-search-decoration { 559 | -webkit-appearance: none; 560 | } 561 | 562 | ::-webkit-color-swatch-wrapper { 563 | padding: 0; 564 | } 565 | 566 | ::-webkit-file-upload-button { 567 | font: inherit; 568 | -webkit-appearance: button; 569 | } 570 | 571 | ::file-selector-button { 572 | font: inherit; 573 | -webkit-appearance: button; 574 | } 575 | 576 | output { 577 | display: inline-block; 578 | } 579 | 580 | iframe { 581 | border: 0; 582 | } 583 | 584 | summary { 585 | display: list-item; 586 | cursor: pointer; 587 | } 588 | 589 | progress { 590 | vertical-align: baseline; 591 | } 592 | 593 | [hidden] { 594 | display: none !important; 595 | } 596 | 597 | /*# sourceMappingURL=bootstrap-reboot.css.map */ -------------------------------------------------------------------------------- /src/public/bootstrap-5.3.2/css/bootstrap-reboot.min.css.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["../../scss/mixins/_banner.scss","../../scss/_root.scss","dist/css/bootstrap-reboot.css","../../scss/vendor/_rfs.scss","../../scss/mixins/_color-mode.scss","../../scss/_reboot.scss","../../scss/mixins/_border-radius.scss"],"names":[],"mappings":"AACE;;;;ACDF,MCMA,sBDGI,UAAA,QAAA,YAAA,QAAA,YAAA,QAAA,UAAA,QAAA,SAAA,QAAA,YAAA,QAAA,YAAA,QAAA,WAAA,QAAA,UAAA,QAAA,UAAA,QAAA,WAAA,KAAA,WAAA,KAAA,UAAA,QAAA,eAAA,QAIA,cAAA,QAAA,cAAA,QAAA,cAAA,QAAA,cAAA,QAAA,cAAA,QAAA,cAAA,QAAA,cAAA,QAAA,cAAA,QAAA,cAAA,QAIA,aAAA,QAAA,eAAA,QAAA,aAAA,QAAA,UAAA,QAAA,aAAA,QAAA,YAAA,QAAA,WAAA,QAAA,UAAA,QAIA,iBAAA,EAAA,CAAA,GAAA,CAAA,IAAA,mBAAA,GAAA,CAAA,GAAA,CAAA,IAAA,iBAAA,EAAA,CAAA,GAAA,CAAA,GAAA,cAAA,EAAA,CAAA,GAAA,CAAA,IAAA,iBAAA,GAAA,CAAA,GAAA,CAAA,EAAA,gBAAA,GAAA,CAAA,EAAA,CAAA,GAAA,eAAA,GAAA,CAAA,GAAA,CAAA,IAAA,cAAA,EAAA,CAAA,EAAA,CAAA,GAIA,2BAAA,QAAA,6BAAA,QAAA,2BAAA,QAAA,wBAAA,QAAA,2BAAA,QAAA,0BAAA,QAAA,yBAAA,QAAA,wBAAA,QAIA,uBAAA,QAAA,yBAAA,QAAA,uBAAA,QAAA,oBAAA,QAAA,uBAAA,QAAA,sBAAA,QAAA,qBAAA,QAAA,oBAAA,QAIA,2BAAA,QAAA,6BAAA,QAAA,2BAAA,QAAA,wBAAA,QAAA,2BAAA,QAAA,0BAAA,QAAA,yBAAA,QAAA,wBAAA,QAGF,eAAA,GAAA,CAAA,GAAA,CAAA,IACA,eAAA,CAAA,CAAA,CAAA,CAAA,EAMA,qBAAA,SAAA,CAAA,aAAA,CAAA,UAAA,CAAA,MAAA,CAAA,gBAAA,CAAA,WAAA,CAAA,iBAAA,CAAA,KAAA,CAAA,UAAA,CAAA,mBAAA,CAAA,gBAAA,CAAA,iBAAA,CAAA,mBACA,oBAAA,cAAA,CAAA,KAAA,CAAA,MAAA,CAAA,QAAA,CAAA,iBAAA,CAAA,aAAA,CAAA,UACA,cAAA,2EAOA,sBAAA,0BE2OI,oBAAA,KFzOJ,sBAAA,IACA,sBAAA,IAKA,gBAAA,QACA,oBAAA,EAAA,CAAA,EAAA,CAAA,GACA,aAAA,KACA,iBAAA,GAAA,CAAA,GAAA,CAAA,IAEA,oBAAA,KACA,wBAAA,CAAA,CAAA,CAAA,CAAA,EAEA,qBAAA,uBACA,yBAAA,EAAA,CAAA,EAAA,CAAA,GACA,kBAAA,QACA,sBAAA,GAAA,CAAA,GAAA,CAAA,IAEA,oBAAA,sBACA,wBAAA,EAAA,CAAA,EAAA,CAAA,GACA,iBAAA,QACA,qBAAA,GAAA,CAAA,GAAA,CAAA,IAGA,mBAAA,QAEA,gBAAA,QACA,oBAAA,EAAA,CAAA,GAAA,CAAA,IACA,qBAAA,UAEA,sBAAA,QACA,0BAAA,EAAA,CAAA,EAAA,CAAA,IAMA,gBAAA,QACA,qBAAA,QACA,kBAAA,QAGA,kBAAA,IACA,kBAAA,MACA,kBAAA,QACA,8BAAA,qBAEA,mBAAA,SACA,sBAAA,QACA,sBAAA,OACA,sBAAA,KACA,uBAAA,KACA,uBAAA,4BACA,wBAAA,MAGA,gBAAA,EAAA,OAAA,KAAA,oBACA,mBAAA,EAAA,SAAA,QAAA,qBACA,mBAAA,EAAA,KAAA,KAAA,qBACA,sBAAA,MAAA,EAAA,IAAA,IAAA,qBAIA,sBAAA,QACA,wBAAA,KACA,sBAAA,yBAIA,sBAAA,QACA,6BAAA,QACA,wBAAA,QACA,+BAAA,QGhHE,qBHsHA,aAAA,KAGA,gBAAA,QACA,oBAAA,GAAA,CAAA,GAAA,CAAA,IACA,aAAA,QACA,iBAAA,EAAA,CAAA,EAAA,CAAA,GAEA,oBAAA,KACA,wBAAA,GAAA,CAAA,GAAA,CAAA,IAEA,qBAAA,0BACA,yBAAA,GAAA,CAAA,GAAA,CAAA,IACA,kBAAA,QACA,sBAAA,EAAA,CAAA,EAAA,CAAA,GAEA,oBAAA,yBACA,wBAAA,GAAA,CAAA,GAAA,CAAA,IACA,iBAAA,QACA,qBAAA,EAAA,CAAA,EAAA,CAAA,GAGE,2BAAA,QAAA,6BAAA,QAAA,2BAAA,QAAA,wBAAA,QAAA,2BAAA,QAAA,0BAAA,QAAA,yBAAA,QAAA,wBAAA,QAIA,uBAAA,QAAA,yBAAA,QAAA,uBAAA,QAAA,oBAAA,QAAA,uBAAA,QAAA,sBAAA,QAAA,qBAAA,QAAA,oBAAA,QAIA,2BAAA,QAAA,6BAAA,QAAA,2BAAA,QAAA,wBAAA,QAAA,2BAAA,QAAA,0BAAA,QAAA,yBAAA,QAAA,wBAAA,QAGF,mBAAA,QAEA,gBAAA,QACA,sBAAA,QACA,oBAAA,GAAA,CAAA,GAAA,CAAA,IACA,0BAAA,GAAA,CAAA,GAAA,CAAA,IAEA,gBAAA,QACA,qBAAA,QACA,kBAAA,QAEA,kBAAA,QACA,8BAAA,0BAEA,sBAAA,QACA,6BAAA,QACA,wBAAA,QACA,+BAAA,QIxKJ,EHyKA,QADA,SGrKE,WAAA,WAeE,8CANJ,MAOM,gBAAA,QAcN,KACE,OAAA,EACA,YAAA,2BF6OI,UAAA,yBE3OJ,YAAA,2BACA,YAAA,2BACA,MAAA,qBACA,WAAA,0BACA,iBAAA,kBACA,yBAAA,KACA,4BAAA,YASF,GACE,OAAA,KAAA,EACA,MAAA,QACA,OAAA,EACA,WAAA,uBAAA,MACA,QAAA,IAUF,GAAA,GAAA,GAAA,GAAA,GAAA,GACE,WAAA,EACA,cAAA,MAGA,YAAA,IACA,YAAA,IACA,MAAA,wBAGF,GFuMQ,UAAA,uBA5JJ,0BE3CJ,GF8MQ,UAAA,QEzMR,GFkMQ,UAAA,sBA5JJ,0BEtCJ,GFyMQ,UAAA,MEpMR,GF6LQ,UAAA,oBA5JJ,0BEjCJ,GFoMQ,UAAA,SE/LR,GFwLQ,UAAA,sBA5JJ,0BE5BJ,GF+LQ,UAAA,QE1LR,GF+KM,UAAA,QE1KN,GF0KM,UAAA,KE/JN,EACE,WAAA,EACA,cAAA,KAUF,YACE,wBAAA,UAAA,OAAA,gBAAA,UAAA,OACA,OAAA,KACA,iCAAA,KAAA,yBAAA,KAMF,QACE,cAAA,KACA,WAAA,OACA,YAAA,QAMF,GHiIA,GG/HE,aAAA,KHqIF,GGlIA,GHiIA,GG9HE,WAAA,EACA,cAAA,KAGF,MHkIA,MACA,MAFA,MG7HE,cAAA,EAGF,GACE,YAAA,IAKF,GACE,cAAA,MACA,YAAA,EAMF,WACE,OAAA,EAAA,EAAA,KAQF,EHuHA,OGrHE,YAAA,OAQF,MF6EM,UAAA,OEtEN,KACE,QAAA,QACA,MAAA,0BACA,iBAAA,uBASF,IHyGA,IGvGE,SAAA,SFwDI,UAAA,MEtDJ,YAAA,EACA,eAAA,SAGF,IAAM,OAAA,OACN,IAAM,IAAA,MAKN,EACE,MAAA,wDACA,gBAAA,UAEA,QACE,oBAAA,+BAWF,2BAAA,iCAEE,MAAA,QACA,gBAAA,KHqGJ,KACA,IG/FA,IHgGA,KG5FE,YAAA,yBFcI,UAAA,IENN,IACE,QAAA,MACA,WAAA,EACA,cAAA,KACA,SAAA,KFEI,UAAA,OEGJ,SFHI,UAAA,QEKF,MAAA,QACA,WAAA,OAIJ,KFVM,UAAA,OEYJ,MAAA,qBACA,UAAA,WAGA,OACE,MAAA,QAIJ,IACE,QAAA,SAAA,QFtBI,UAAA,OEwBJ,MAAA,kBACA,iBAAA,qBCrSE,cAAA,ODwSF,QACE,QAAA,EF7BE,UAAA,IEwCN,OACE,OAAA,EAAA,EAAA,KAMF,IH2EA,IGzEE,eAAA,OAQF,MACE,aAAA,OACA,gBAAA,SAGF,QACE,YAAA,MACA,eAAA,MACA,MAAA,0BACA,WAAA,KAOF,GAEE,WAAA,QACA,WAAA,qBHoEF,MAGA,GAFA,MAGA,GGrEA,MHmEA,GG7DE,aAAA,QACA,aAAA,MACA,aAAA,EAQF,MACE,QAAA,aAMF,OAEE,cAAA,EAQF,iCACE,QAAA,EHsDF,OGjDA,MHmDA,SADA,OAEA,SG/CE,OAAA,EACA,YAAA,QF5HI,UAAA,QE8HJ,YAAA,QAIF,OHgDA,OG9CE,eAAA,KAKF,cACE,OAAA,QAGF,OAGE,UAAA,OAGA,gBACE,QAAA,EAOJ,0IACE,QAAA,eH0CF,cACA,aACA,cGpCA,OAIE,mBAAA,OHoCF,6BACA,4BACA,6BGnCI,sBACE,OAAA,QAON,mBACE,QAAA,EACA,aAAA,KAKF,SACE,OAAA,SAUF,SACE,UAAA,EACA,QAAA,EACA,OAAA,EACA,OAAA,EAQF,OACE,MAAA,KACA,MAAA,KACA,QAAA,EACA,cAAA,MFjNM,UAAA,sBEoNN,YAAA,QFhXE,0BEyWJ,OFtMQ,UAAA,QE+MN,SACE,MAAA,KH4BJ,kCGrBA,uCHoBA,mCADA,+BAGA,oCAJA,6BAKA,mCGhBE,QAAA,EAGF,4BACE,OAAA,KASF,cACE,mBAAA,UACA,eAAA,KAmBF,4BACE,mBAAA,KAKF,+BACE,QAAA,EAOF,6BACE,KAAA,QACA,mBAAA,OAFF,uBACE,KAAA,QACA,mBAAA,OAKF,OACE,QAAA,aAKF,OACE,OAAA,EAOF,QACE,QAAA,UACA,OAAA,QAQF,SACE,eAAA,SAQF,SACE,QAAA","sourcesContent":["@mixin bsBanner($file) {\n /*!\n * Bootstrap #{$file} v5.3.2 (https://getbootstrap.com/)\n * Copyright 2011-2023 The Bootstrap Authors\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */\n}\n",":root,\n[data-bs-theme=\"light\"] {\n // Note: Custom variable values only support SassScript inside `#{}`.\n\n // Colors\n //\n // Generate palettes for full colors, grays, and theme colors.\n\n @each $color, $value in $colors {\n --#{$prefix}#{$color}: #{$value};\n }\n\n @each $color, $value in $grays {\n --#{$prefix}gray-#{$color}: #{$value};\n }\n\n @each $color, $value in $theme-colors {\n --#{$prefix}#{$color}: #{$value};\n }\n\n @each $color, $value in $theme-colors-rgb {\n --#{$prefix}#{$color}-rgb: #{$value};\n }\n\n @each $color, $value in $theme-colors-text {\n --#{$prefix}#{$color}-text-emphasis: #{$value};\n }\n\n @each $color, $value in $theme-colors-bg-subtle {\n --#{$prefix}#{$color}-bg-subtle: #{$value};\n }\n\n @each $color, $value in $theme-colors-border-subtle {\n --#{$prefix}#{$color}-border-subtle: #{$value};\n }\n\n --#{$prefix}white-rgb: #{to-rgb($white)};\n --#{$prefix}black-rgb: #{to-rgb($black)};\n\n // Fonts\n\n // Note: Use `inspect` for lists so that quoted items keep the quotes.\n // See https://github.com/sass/sass/issues/2383#issuecomment-336349172\n --#{$prefix}font-sans-serif: #{inspect($font-family-sans-serif)};\n --#{$prefix}font-monospace: #{inspect($font-family-monospace)};\n --#{$prefix}gradient: #{$gradient};\n\n // Root and body\n // scss-docs-start root-body-variables\n @if $font-size-root != null {\n --#{$prefix}root-font-size: #{$font-size-root};\n }\n --#{$prefix}body-font-family: #{inspect($font-family-base)};\n @include rfs($font-size-base, --#{$prefix}body-font-size);\n --#{$prefix}body-font-weight: #{$font-weight-base};\n --#{$prefix}body-line-height: #{$line-height-base};\n @if $body-text-align != null {\n --#{$prefix}body-text-align: #{$body-text-align};\n }\n\n --#{$prefix}body-color: #{$body-color};\n --#{$prefix}body-color-rgb: #{to-rgb($body-color)};\n --#{$prefix}body-bg: #{$body-bg};\n --#{$prefix}body-bg-rgb: #{to-rgb($body-bg)};\n\n --#{$prefix}emphasis-color: #{$body-emphasis-color};\n --#{$prefix}emphasis-color-rgb: #{to-rgb($body-emphasis-color)};\n\n --#{$prefix}secondary-color: #{$body-secondary-color};\n --#{$prefix}secondary-color-rgb: #{to-rgb($body-secondary-color)};\n --#{$prefix}secondary-bg: #{$body-secondary-bg};\n --#{$prefix}secondary-bg-rgb: #{to-rgb($body-secondary-bg)};\n\n --#{$prefix}tertiary-color: #{$body-tertiary-color};\n --#{$prefix}tertiary-color-rgb: #{to-rgb($body-tertiary-color)};\n --#{$prefix}tertiary-bg: #{$body-tertiary-bg};\n --#{$prefix}tertiary-bg-rgb: #{to-rgb($body-tertiary-bg)};\n // scss-docs-end root-body-variables\n\n --#{$prefix}heading-color: #{$headings-color};\n\n --#{$prefix}link-color: #{$link-color};\n --#{$prefix}link-color-rgb: #{to-rgb($link-color)};\n --#{$prefix}link-decoration: #{$link-decoration};\n\n --#{$prefix}link-hover-color: #{$link-hover-color};\n --#{$prefix}link-hover-color-rgb: #{to-rgb($link-hover-color)};\n\n @if $link-hover-decoration != null {\n --#{$prefix}link-hover-decoration: #{$link-hover-decoration};\n }\n\n --#{$prefix}code-color: #{$code-color};\n --#{$prefix}highlight-color: #{$mark-color};\n --#{$prefix}highlight-bg: #{$mark-bg};\n\n // scss-docs-start root-border-var\n --#{$prefix}border-width: #{$border-width};\n --#{$prefix}border-style: #{$border-style};\n --#{$prefix}border-color: #{$border-color};\n --#{$prefix}border-color-translucent: #{$border-color-translucent};\n\n --#{$prefix}border-radius: #{$border-radius};\n --#{$prefix}border-radius-sm: #{$border-radius-sm};\n --#{$prefix}border-radius-lg: #{$border-radius-lg};\n --#{$prefix}border-radius-xl: #{$border-radius-xl};\n --#{$prefix}border-radius-xxl: #{$border-radius-xxl};\n --#{$prefix}border-radius-2xl: var(--#{$prefix}border-radius-xxl); // Deprecated in v5.3.0 for consistency\n --#{$prefix}border-radius-pill: #{$border-radius-pill};\n // scss-docs-end root-border-var\n\n --#{$prefix}box-shadow: #{$box-shadow};\n --#{$prefix}box-shadow-sm: #{$box-shadow-sm};\n --#{$prefix}box-shadow-lg: #{$box-shadow-lg};\n --#{$prefix}box-shadow-inset: #{$box-shadow-inset};\n\n // Focus styles\n // scss-docs-start root-focus-variables\n --#{$prefix}focus-ring-width: #{$focus-ring-width};\n --#{$prefix}focus-ring-opacity: #{$focus-ring-opacity};\n --#{$prefix}focus-ring-color: #{$focus-ring-color};\n // scss-docs-end root-focus-variables\n\n // scss-docs-start root-form-validation-variables\n --#{$prefix}form-valid-color: #{$form-valid-color};\n --#{$prefix}form-valid-border-color: #{$form-valid-border-color};\n --#{$prefix}form-invalid-color: #{$form-invalid-color};\n --#{$prefix}form-invalid-border-color: #{$form-invalid-border-color};\n // scss-docs-end root-form-validation-variables\n}\n\n@if $enable-dark-mode {\n @include color-mode(dark, true) {\n color-scheme: dark;\n\n // scss-docs-start root-dark-mode-vars\n --#{$prefix}body-color: #{$body-color-dark};\n --#{$prefix}body-color-rgb: #{to-rgb($body-color-dark)};\n --#{$prefix}body-bg: #{$body-bg-dark};\n --#{$prefix}body-bg-rgb: #{to-rgb($body-bg-dark)};\n\n --#{$prefix}emphasis-color: #{$body-emphasis-color-dark};\n --#{$prefix}emphasis-color-rgb: #{to-rgb($body-emphasis-color-dark)};\n\n --#{$prefix}secondary-color: #{$body-secondary-color-dark};\n --#{$prefix}secondary-color-rgb: #{to-rgb($body-secondary-color-dark)};\n --#{$prefix}secondary-bg: #{$body-secondary-bg-dark};\n --#{$prefix}secondary-bg-rgb: #{to-rgb($body-secondary-bg-dark)};\n\n --#{$prefix}tertiary-color: #{$body-tertiary-color-dark};\n --#{$prefix}tertiary-color-rgb: #{to-rgb($body-tertiary-color-dark)};\n --#{$prefix}tertiary-bg: #{$body-tertiary-bg-dark};\n --#{$prefix}tertiary-bg-rgb: #{to-rgb($body-tertiary-bg-dark)};\n\n @each $color, $value in $theme-colors-text-dark {\n --#{$prefix}#{$color}-text-emphasis: #{$value};\n }\n\n @each $color, $value in $theme-colors-bg-subtle-dark {\n --#{$prefix}#{$color}-bg-subtle: #{$value};\n }\n\n @each $color, $value in $theme-colors-border-subtle-dark {\n --#{$prefix}#{$color}-border-subtle: #{$value};\n }\n\n --#{$prefix}heading-color: #{$headings-color-dark};\n\n --#{$prefix}link-color: #{$link-color-dark};\n --#{$prefix}link-hover-color: #{$link-hover-color-dark};\n --#{$prefix}link-color-rgb: #{to-rgb($link-color-dark)};\n --#{$prefix}link-hover-color-rgb: #{to-rgb($link-hover-color-dark)};\n\n --#{$prefix}code-color: #{$code-color-dark};\n --#{$prefix}highlight-color: #{$mark-color-dark};\n --#{$prefix}highlight-bg: #{$mark-bg-dark};\n\n --#{$prefix}border-color: #{$border-color-dark};\n --#{$prefix}border-color-translucent: #{$border-color-translucent-dark};\n\n --#{$prefix}form-valid-color: #{$form-valid-color-dark};\n --#{$prefix}form-valid-border-color: #{$form-valid-border-color-dark};\n --#{$prefix}form-invalid-color: #{$form-invalid-color-dark};\n --#{$prefix}form-invalid-border-color: #{$form-invalid-border-color-dark};\n // scss-docs-end root-dark-mode-vars\n }\n}\n","/*!\n * Bootstrap Reboot v5.3.2 (https://getbootstrap.com/)\n * Copyright 2011-2023 The Bootstrap Authors\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */\n:root,\n[data-bs-theme=light] {\n --bs-blue: #0d6efd;\n --bs-indigo: #6610f2;\n --bs-purple: #6f42c1;\n --bs-pink: #d63384;\n --bs-red: #dc3545;\n --bs-orange: #fd7e14;\n --bs-yellow: #ffc107;\n --bs-green: #198754;\n --bs-teal: #20c997;\n --bs-cyan: #0dcaf0;\n --bs-black: #000;\n --bs-white: #fff;\n --bs-gray: #6c757d;\n --bs-gray-dark: #343a40;\n --bs-gray-100: #f8f9fa;\n --bs-gray-200: #e9ecef;\n --bs-gray-300: #dee2e6;\n --bs-gray-400: #ced4da;\n --bs-gray-500: #adb5bd;\n --bs-gray-600: #6c757d;\n --bs-gray-700: #495057;\n --bs-gray-800: #343a40;\n --bs-gray-900: #212529;\n --bs-primary: #0d6efd;\n --bs-secondary: #6c757d;\n --bs-success: #198754;\n --bs-info: #0dcaf0;\n --bs-warning: #ffc107;\n --bs-danger: #dc3545;\n --bs-light: #f8f9fa;\n --bs-dark: #212529;\n --bs-primary-rgb: 13, 110, 253;\n --bs-secondary-rgb: 108, 117, 125;\n --bs-success-rgb: 25, 135, 84;\n --bs-info-rgb: 13, 202, 240;\n --bs-warning-rgb: 255, 193, 7;\n --bs-danger-rgb: 220, 53, 69;\n --bs-light-rgb: 248, 249, 250;\n --bs-dark-rgb: 33, 37, 41;\n --bs-primary-text-emphasis: #052c65;\n --bs-secondary-text-emphasis: #2b2f32;\n --bs-success-text-emphasis: #0a3622;\n --bs-info-text-emphasis: #055160;\n --bs-warning-text-emphasis: #664d03;\n --bs-danger-text-emphasis: #58151c;\n --bs-light-text-emphasis: #495057;\n --bs-dark-text-emphasis: #495057;\n --bs-primary-bg-subtle: #cfe2ff;\n --bs-secondary-bg-subtle: #e2e3e5;\n --bs-success-bg-subtle: #d1e7dd;\n --bs-info-bg-subtle: #cff4fc;\n --bs-warning-bg-subtle: #fff3cd;\n --bs-danger-bg-subtle: #f8d7da;\n --bs-light-bg-subtle: #fcfcfd;\n --bs-dark-bg-subtle: #ced4da;\n --bs-primary-border-subtle: #9ec5fe;\n --bs-secondary-border-subtle: #c4c8cb;\n --bs-success-border-subtle: #a3cfbb;\n --bs-info-border-subtle: #9eeaf9;\n --bs-warning-border-subtle: #ffe69c;\n --bs-danger-border-subtle: #f1aeb5;\n --bs-light-border-subtle: #e9ecef;\n --bs-dark-border-subtle: #adb5bd;\n --bs-white-rgb: 255, 255, 255;\n --bs-black-rgb: 0, 0, 0;\n --bs-font-sans-serif: system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));\n --bs-body-font-family: var(--bs-font-sans-serif);\n --bs-body-font-size: 1rem;\n --bs-body-font-weight: 400;\n --bs-body-line-height: 1.5;\n --bs-body-color: #212529;\n --bs-body-color-rgb: 33, 37, 41;\n --bs-body-bg: #fff;\n --bs-body-bg-rgb: 255, 255, 255;\n --bs-emphasis-color: #000;\n --bs-emphasis-color-rgb: 0, 0, 0;\n --bs-secondary-color: rgba(33, 37, 41, 0.75);\n --bs-secondary-color-rgb: 33, 37, 41;\n --bs-secondary-bg: #e9ecef;\n --bs-secondary-bg-rgb: 233, 236, 239;\n --bs-tertiary-color: rgba(33, 37, 41, 0.5);\n --bs-tertiary-color-rgb: 33, 37, 41;\n --bs-tertiary-bg: #f8f9fa;\n --bs-tertiary-bg-rgb: 248, 249, 250;\n --bs-heading-color: inherit;\n --bs-link-color: #0d6efd;\n --bs-link-color-rgb: 13, 110, 253;\n --bs-link-decoration: underline;\n --bs-link-hover-color: #0a58ca;\n --bs-link-hover-color-rgb: 10, 88, 202;\n --bs-code-color: #d63384;\n --bs-highlight-color: #212529;\n --bs-highlight-bg: #fff3cd;\n --bs-border-width: 1px;\n --bs-border-style: solid;\n --bs-border-color: #dee2e6;\n --bs-border-color-translucent: rgba(0, 0, 0, 0.175);\n --bs-border-radius: 0.375rem;\n --bs-border-radius-sm: 0.25rem;\n --bs-border-radius-lg: 0.5rem;\n --bs-border-radius-xl: 1rem;\n --bs-border-radius-xxl: 2rem;\n --bs-border-radius-2xl: var(--bs-border-radius-xxl);\n --bs-border-radius-pill: 50rem;\n --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);\n --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);\n --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);\n --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);\n --bs-focus-ring-width: 0.25rem;\n --bs-focus-ring-opacity: 0.25;\n --bs-focus-ring-color: rgba(13, 110, 253, 0.25);\n --bs-form-valid-color: #198754;\n --bs-form-valid-border-color: #198754;\n --bs-form-invalid-color: #dc3545;\n --bs-form-invalid-border-color: #dc3545;\n}\n\n[data-bs-theme=dark] {\n color-scheme: dark;\n --bs-body-color: #dee2e6;\n --bs-body-color-rgb: 222, 226, 230;\n --bs-body-bg: #212529;\n --bs-body-bg-rgb: 33, 37, 41;\n --bs-emphasis-color: #fff;\n --bs-emphasis-color-rgb: 255, 255, 255;\n --bs-secondary-color: rgba(222, 226, 230, 0.75);\n --bs-secondary-color-rgb: 222, 226, 230;\n --bs-secondary-bg: #343a40;\n --bs-secondary-bg-rgb: 52, 58, 64;\n --bs-tertiary-color: rgba(222, 226, 230, 0.5);\n --bs-tertiary-color-rgb: 222, 226, 230;\n --bs-tertiary-bg: #2b3035;\n --bs-tertiary-bg-rgb: 43, 48, 53;\n --bs-primary-text-emphasis: #6ea8fe;\n --bs-secondary-text-emphasis: #a7acb1;\n --bs-success-text-emphasis: #75b798;\n --bs-info-text-emphasis: #6edff6;\n --bs-warning-text-emphasis: #ffda6a;\n --bs-danger-text-emphasis: #ea868f;\n --bs-light-text-emphasis: #f8f9fa;\n --bs-dark-text-emphasis: #dee2e6;\n --bs-primary-bg-subtle: #031633;\n --bs-secondary-bg-subtle: #161719;\n --bs-success-bg-subtle: #051b11;\n --bs-info-bg-subtle: #032830;\n --bs-warning-bg-subtle: #332701;\n --bs-danger-bg-subtle: #2c0b0e;\n --bs-light-bg-subtle: #343a40;\n --bs-dark-bg-subtle: #1a1d20;\n --bs-primary-border-subtle: #084298;\n --bs-secondary-border-subtle: #41464b;\n --bs-success-border-subtle: #0f5132;\n --bs-info-border-subtle: #087990;\n --bs-warning-border-subtle: #997404;\n --bs-danger-border-subtle: #842029;\n --bs-light-border-subtle: #495057;\n --bs-dark-border-subtle: #343a40;\n --bs-heading-color: inherit;\n --bs-link-color: #6ea8fe;\n --bs-link-hover-color: #8bb9fe;\n --bs-link-color-rgb: 110, 168, 254;\n --bs-link-hover-color-rgb: 139, 185, 254;\n --bs-code-color: #e685b5;\n --bs-highlight-color: #dee2e6;\n --bs-highlight-bg: #664d03;\n --bs-border-color: #495057;\n --bs-border-color-translucent: rgba(255, 255, 255, 0.15);\n --bs-form-valid-color: #75b798;\n --bs-form-valid-border-color: #75b798;\n --bs-form-invalid-color: #ea868f;\n --bs-form-invalid-border-color: #ea868f;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n@media (prefers-reduced-motion: no-preference) {\n :root {\n scroll-behavior: smooth;\n }\n}\n\nbody {\n margin: 0;\n font-family: var(--bs-body-font-family);\n font-size: var(--bs-body-font-size);\n font-weight: var(--bs-body-font-weight);\n line-height: var(--bs-body-line-height);\n color: var(--bs-body-color);\n text-align: var(--bs-body-text-align);\n background-color: var(--bs-body-bg);\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\nhr {\n margin: 1rem 0;\n color: inherit;\n border: 0;\n border-top: var(--bs-border-width) solid;\n opacity: 0.25;\n}\n\nh6, h5, h4, h3, h2, h1 {\n margin-top: 0;\n margin-bottom: 0.5rem;\n font-weight: 500;\n line-height: 1.2;\n color: var(--bs-heading-color);\n}\n\nh1 {\n font-size: calc(1.375rem + 1.5vw);\n}\n@media (min-width: 1200px) {\n h1 {\n font-size: 2.5rem;\n }\n}\n\nh2 {\n font-size: calc(1.325rem + 0.9vw);\n}\n@media (min-width: 1200px) {\n h2 {\n font-size: 2rem;\n }\n}\n\nh3 {\n font-size: calc(1.3rem + 0.6vw);\n}\n@media (min-width: 1200px) {\n h3 {\n font-size: 1.75rem;\n }\n}\n\nh4 {\n font-size: calc(1.275rem + 0.3vw);\n}\n@media (min-width: 1200px) {\n h4 {\n font-size: 1.5rem;\n }\n}\n\nh5 {\n font-size: 1.25rem;\n}\n\nh6 {\n font-size: 1rem;\n}\n\np {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nabbr[title] {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n cursor: help;\n -webkit-text-decoration-skip-ink: none;\n text-decoration-skip-ink: none;\n}\n\naddress {\n margin-bottom: 1rem;\n font-style: normal;\n line-height: inherit;\n}\n\nol,\nul {\n padding-left: 2rem;\n}\n\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\n\ndt {\n font-weight: 700;\n}\n\ndd {\n margin-bottom: 0.5rem;\n margin-left: 0;\n}\n\nblockquote {\n margin: 0 0 1rem;\n}\n\nb,\nstrong {\n font-weight: bolder;\n}\n\nsmall {\n font-size: 0.875em;\n}\n\nmark {\n padding: 0.1875em;\n color: var(--bs-highlight-color);\n background-color: var(--bs-highlight-bg);\n}\n\nsub,\nsup {\n position: relative;\n font-size: 0.75em;\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\na {\n color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));\n text-decoration: underline;\n}\na:hover {\n --bs-link-color-rgb: var(--bs-link-hover-color-rgb);\n}\n\na:not([href]):not([class]), a:not([href]):not([class]):hover {\n color: inherit;\n text-decoration: none;\n}\n\npre,\ncode,\nkbd,\nsamp {\n font-family: var(--bs-font-monospace);\n font-size: 1em;\n}\n\npre {\n display: block;\n margin-top: 0;\n margin-bottom: 1rem;\n overflow: auto;\n font-size: 0.875em;\n}\npre code {\n font-size: inherit;\n color: inherit;\n word-break: normal;\n}\n\ncode {\n font-size: 0.875em;\n color: var(--bs-code-color);\n word-wrap: break-word;\n}\na > code {\n color: inherit;\n}\n\nkbd {\n padding: 0.1875rem 0.375rem;\n font-size: 0.875em;\n color: var(--bs-body-bg);\n background-color: var(--bs-body-color);\n border-radius: 0.25rem;\n}\nkbd kbd {\n padding: 0;\n font-size: 1em;\n}\n\nfigure {\n margin: 0 0 1rem;\n}\n\nimg,\nsvg {\n vertical-align: middle;\n}\n\ntable {\n caption-side: bottom;\n border-collapse: collapse;\n}\n\ncaption {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n color: var(--bs-secondary-color);\n text-align: left;\n}\n\nth {\n text-align: inherit;\n text-align: -webkit-match-parent;\n}\n\nthead,\ntbody,\ntfoot,\ntr,\ntd,\nth {\n border-color: inherit;\n border-style: solid;\n border-width: 0;\n}\n\nlabel {\n display: inline-block;\n}\n\nbutton {\n border-radius: 0;\n}\n\nbutton:focus:not(:focus-visible) {\n outline: 0;\n}\n\ninput,\nbutton,\nselect,\noptgroup,\ntextarea {\n margin: 0;\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\nbutton,\nselect {\n text-transform: none;\n}\n\n[role=button] {\n cursor: pointer;\n}\n\nselect {\n word-wrap: normal;\n}\nselect:disabled {\n opacity: 1;\n}\n\n[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator {\n display: none !important;\n}\n\nbutton,\n[type=button],\n[type=reset],\n[type=submit] {\n -webkit-appearance: button;\n}\nbutton:not(:disabled),\n[type=button]:not(:disabled),\n[type=reset]:not(:disabled),\n[type=submit]:not(:disabled) {\n cursor: pointer;\n}\n\n::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\n\ntextarea {\n resize: vertical;\n}\n\nfieldset {\n min-width: 0;\n padding: 0;\n margin: 0;\n border: 0;\n}\n\nlegend {\n float: left;\n width: 100%;\n padding: 0;\n margin-bottom: 0.5rem;\n font-size: calc(1.275rem + 0.3vw);\n line-height: inherit;\n}\n@media (min-width: 1200px) {\n legend {\n font-size: 1.5rem;\n }\n}\nlegend + * {\n clear: left;\n}\n\n::-webkit-datetime-edit-fields-wrapper,\n::-webkit-datetime-edit-text,\n::-webkit-datetime-edit-minute,\n::-webkit-datetime-edit-hour-field,\n::-webkit-datetime-edit-day-field,\n::-webkit-datetime-edit-month-field,\n::-webkit-datetime-edit-year-field {\n padding: 0;\n}\n\n::-webkit-inner-spin-button {\n height: auto;\n}\n\n[type=search] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n\n/* rtl:raw:\n[type=\"tel\"],\n[type=\"url\"],\n[type=\"email\"],\n[type=\"number\"] {\n direction: ltr;\n}\n*/\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n::-webkit-color-swatch-wrapper {\n padding: 0;\n}\n\n::-webkit-file-upload-button {\n font: inherit;\n -webkit-appearance: button;\n}\n\n::file-selector-button {\n font: inherit;\n -webkit-appearance: button;\n}\n\noutput {\n display: inline-block;\n}\n\niframe {\n border: 0;\n}\n\nsummary {\n display: list-item;\n cursor: pointer;\n}\n\nprogress {\n vertical-align: baseline;\n}\n\n[hidden] {\n display: none !important;\n}\n\n/*# sourceMappingURL=bootstrap-reboot.css.map */","// stylelint-disable scss/dimension-no-non-numeric-values\n\n// SCSS RFS mixin\n//\n// Automated responsive values for font sizes, paddings, margins and much more\n//\n// Licensed under MIT (https://github.com/twbs/rfs/blob/main/LICENSE)\n\n// Configuration\n\n// Base value\n$rfs-base-value: 1.25rem !default;\n$rfs-unit: rem !default;\n\n@if $rfs-unit != rem and $rfs-unit != px {\n @error \"`#{$rfs-unit}` is not a valid unit for $rfs-unit. Use `px` or `rem`.\";\n}\n\n// Breakpoint at where values start decreasing if screen width is smaller\n$rfs-breakpoint: 1200px !default;\n$rfs-breakpoint-unit: px !default;\n\n@if $rfs-breakpoint-unit != px and $rfs-breakpoint-unit != em and $rfs-breakpoint-unit != rem {\n @error \"`#{$rfs-breakpoint-unit}` is not a valid unit for $rfs-breakpoint-unit. Use `px`, `em` or `rem`.\";\n}\n\n// Resize values based on screen height and width\n$rfs-two-dimensional: false !default;\n\n// Factor of decrease\n$rfs-factor: 10 !default;\n\n@if type-of($rfs-factor) != number or $rfs-factor <= 1 {\n @error \"`#{$rfs-factor}` is not a valid $rfs-factor, it must be greater than 1.\";\n}\n\n// Mode. Possibilities: \"min-media-query\", \"max-media-query\"\n$rfs-mode: min-media-query !default;\n\n// Generate enable or disable classes. Possibilities: false, \"enable\" or \"disable\"\n$rfs-class: false !default;\n\n// 1 rem = $rfs-rem-value px\n$rfs-rem-value: 16 !default;\n\n// Safari iframe resize bug: https://github.com/twbs/rfs/issues/14\n$rfs-safari-iframe-resize-bug-fix: false !default;\n\n// Disable RFS by setting $enable-rfs to false\n$enable-rfs: true !default;\n\n// Cache $rfs-base-value unit\n$rfs-base-value-unit: unit($rfs-base-value);\n\n@function divide($dividend, $divisor, $precision: 10) {\n $sign: if($dividend > 0 and $divisor > 0 or $dividend < 0 and $divisor < 0, 1, -1);\n $dividend: abs($dividend);\n $divisor: abs($divisor);\n @if $dividend == 0 {\n @return 0;\n }\n @if $divisor == 0 {\n @error \"Cannot divide by 0\";\n }\n $remainder: $dividend;\n $result: 0;\n $factor: 10;\n @while ($remainder > 0 and $precision >= 0) {\n $quotient: 0;\n @while ($remainder >= $divisor) {\n $remainder: $remainder - $divisor;\n $quotient: $quotient + 1;\n }\n $result: $result * 10 + $quotient;\n $factor: $factor * .1;\n $remainder: $remainder * 10;\n $precision: $precision - 1;\n @if ($precision < 0 and $remainder >= $divisor * 5) {\n $result: $result + 1;\n }\n }\n $result: $result * $factor * $sign;\n $dividend-unit: unit($dividend);\n $divisor-unit: unit($divisor);\n $unit-map: (\n \"px\": 1px,\n \"rem\": 1rem,\n \"em\": 1em,\n \"%\": 1%\n );\n @if ($dividend-unit != $divisor-unit and map-has-key($unit-map, $dividend-unit)) {\n $result: $result * map-get($unit-map, $dividend-unit);\n }\n @return $result;\n}\n\n// Remove px-unit from $rfs-base-value for calculations\n@if $rfs-base-value-unit == px {\n $rfs-base-value: divide($rfs-base-value, $rfs-base-value * 0 + 1);\n}\n@else if $rfs-base-value-unit == rem {\n $rfs-base-value: divide($rfs-base-value, divide($rfs-base-value * 0 + 1, $rfs-rem-value));\n}\n\n// Cache $rfs-breakpoint unit to prevent multiple calls\n$rfs-breakpoint-unit-cache: unit($rfs-breakpoint);\n\n// Remove unit from $rfs-breakpoint for calculations\n@if $rfs-breakpoint-unit-cache == px {\n $rfs-breakpoint: divide($rfs-breakpoint, $rfs-breakpoint * 0 + 1);\n}\n@else if $rfs-breakpoint-unit-cache == rem or $rfs-breakpoint-unit-cache == \"em\" {\n $rfs-breakpoint: divide($rfs-breakpoint, divide($rfs-breakpoint * 0 + 1, $rfs-rem-value));\n}\n\n// Calculate the media query value\n$rfs-mq-value: if($rfs-breakpoint-unit == px, #{$rfs-breakpoint}px, #{divide($rfs-breakpoint, $rfs-rem-value)}#{$rfs-breakpoint-unit});\n$rfs-mq-property-width: if($rfs-mode == max-media-query, max-width, min-width);\n$rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height);\n\n// Internal mixin used to determine which media query needs to be used\n@mixin _rfs-media-query {\n @if $rfs-two-dimensional {\n @if $rfs-mode == max-media-query {\n @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}), (#{$rfs-mq-property-height}: #{$rfs-mq-value}) {\n @content;\n }\n }\n @else {\n @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}) and (#{$rfs-mq-property-height}: #{$rfs-mq-value}) {\n @content;\n }\n }\n }\n @else {\n @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}) {\n @content;\n }\n }\n}\n\n// Internal mixin that adds disable classes to the selector if needed.\n@mixin _rfs-rule {\n @if $rfs-class == disable and $rfs-mode == max-media-query {\n // Adding an extra class increases specificity, which prevents the media query to override the property\n &,\n .disable-rfs &,\n &.disable-rfs {\n @content;\n }\n }\n @else if $rfs-class == enable and $rfs-mode == min-media-query {\n .enable-rfs &,\n &.enable-rfs {\n @content;\n }\n } @else {\n @content;\n }\n}\n\n// Internal mixin that adds enable classes to the selector if needed.\n@mixin _rfs-media-query-rule {\n\n @if $rfs-class == enable {\n @if $rfs-mode == min-media-query {\n @content;\n }\n\n @include _rfs-media-query () {\n .enable-rfs &,\n &.enable-rfs {\n @content;\n }\n }\n }\n @else {\n @if $rfs-class == disable and $rfs-mode == min-media-query {\n .disable-rfs &,\n &.disable-rfs {\n @content;\n }\n }\n @include _rfs-media-query () {\n @content;\n }\n }\n}\n\n// Helper function to get the formatted non-responsive value\n@function rfs-value($values) {\n // Convert to list\n $values: if(type-of($values) != list, ($values,), $values);\n\n $val: \"\";\n\n // Loop over each value and calculate value\n @each $value in $values {\n @if $value == 0 {\n $val: $val + \" 0\";\n }\n @else {\n // Cache $value unit\n $unit: if(type-of($value) == \"number\", unit($value), false);\n\n @if $unit == px {\n // Convert to rem if needed\n $val: $val + \" \" + if($rfs-unit == rem, #{divide($value, $value * 0 + $rfs-rem-value)}rem, $value);\n }\n @else if $unit == rem {\n // Convert to px if needed\n $val: $val + \" \" + if($rfs-unit == px, #{divide($value, $value * 0 + 1) * $rfs-rem-value}px, $value);\n } @else {\n // If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value\n $val: $val + \" \" + $value;\n }\n }\n }\n\n // Remove first space\n @return unquote(str-slice($val, 2));\n}\n\n// Helper function to get the responsive value calculated by RFS\n@function rfs-fluid-value($values) {\n // Convert to list\n $values: if(type-of($values) != list, ($values,), $values);\n\n $val: \"\";\n\n // Loop over each value and calculate value\n @each $value in $values {\n @if $value == 0 {\n $val: $val + \" 0\";\n } @else {\n // Cache $value unit\n $unit: if(type-of($value) == \"number\", unit($value), false);\n\n // If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value\n @if not $unit or $unit != px and $unit != rem {\n $val: $val + \" \" + $value;\n } @else {\n // Remove unit from $value for calculations\n $value: divide($value, $value * 0 + if($unit == px, 1, divide(1, $rfs-rem-value)));\n\n // Only add the media query if the value is greater than the minimum value\n @if abs($value) <= $rfs-base-value or not $enable-rfs {\n $val: $val + \" \" + if($rfs-unit == rem, #{divide($value, $rfs-rem-value)}rem, #{$value}px);\n }\n @else {\n // Calculate the minimum value\n $value-min: $rfs-base-value + divide(abs($value) - $rfs-base-value, $rfs-factor);\n\n // Calculate difference between $value and the minimum value\n $value-diff: abs($value) - $value-min;\n\n // Base value formatting\n $min-width: if($rfs-unit == rem, #{divide($value-min, $rfs-rem-value)}rem, #{$value-min}px);\n\n // Use negative value if needed\n $min-width: if($value < 0, -$min-width, $min-width);\n\n // Use `vmin` if two-dimensional is enabled\n $variable-unit: if($rfs-two-dimensional, vmin, vw);\n\n // Calculate the variable width between 0 and $rfs-breakpoint\n $variable-width: #{divide($value-diff * 100, $rfs-breakpoint)}#{$variable-unit};\n\n // Return the calculated value\n $val: $val + \" calc(\" + $min-width + if($value < 0, \" - \", \" + \") + $variable-width + \")\";\n }\n }\n }\n }\n\n // Remove first space\n @return unquote(str-slice($val, 2));\n}\n\n// RFS mixin\n@mixin rfs($values, $property: font-size) {\n @if $values != null {\n $val: rfs-value($values);\n $fluid-val: rfs-fluid-value($values);\n\n // Do not print the media query if responsive & non-responsive values are the same\n @if $val == $fluid-val {\n #{$property}: $val;\n }\n @else {\n @include _rfs-rule () {\n #{$property}: if($rfs-mode == max-media-query, $val, $fluid-val);\n\n // Include safari iframe resize fix if needed\n min-width: if($rfs-safari-iframe-resize-bug-fix, (0 * 1vw), null);\n }\n\n @include _rfs-media-query-rule () {\n #{$property}: if($rfs-mode == max-media-query, $fluid-val, $val);\n }\n }\n }\n}\n\n// Shorthand helper mixins\n@mixin font-size($value) {\n @include rfs($value);\n}\n\n@mixin padding($value) {\n @include rfs($value, padding);\n}\n\n@mixin padding-top($value) {\n @include rfs($value, padding-top);\n}\n\n@mixin padding-right($value) {\n @include rfs($value, padding-right);\n}\n\n@mixin padding-bottom($value) {\n @include rfs($value, padding-bottom);\n}\n\n@mixin padding-left($value) {\n @include rfs($value, padding-left);\n}\n\n@mixin margin($value) {\n @include rfs($value, margin);\n}\n\n@mixin margin-top($value) {\n @include rfs($value, margin-top);\n}\n\n@mixin margin-right($value) {\n @include rfs($value, margin-right);\n}\n\n@mixin margin-bottom($value) {\n @include rfs($value, margin-bottom);\n}\n\n@mixin margin-left($value) {\n @include rfs($value, margin-left);\n}\n","// scss-docs-start color-mode-mixin\n@mixin color-mode($mode: light, $root: false) {\n @if $color-mode-type == \"media-query\" {\n @if $root == true {\n @media (prefers-color-scheme: $mode) {\n :root {\n @content;\n }\n }\n } @else {\n @media (prefers-color-scheme: $mode) {\n @content;\n }\n }\n } @else {\n [data-bs-theme=\"#{$mode}\"] {\n @content;\n }\n }\n}\n// scss-docs-end color-mode-mixin\n","// stylelint-disable declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix\n\n\n// Reboot\n//\n// Normalization of HTML elements, manually forked from Normalize.css to remove\n// styles targeting irrelevant browsers while applying new styles.\n//\n// Normalize is licensed MIT. https://github.com/necolas/normalize.css\n\n\n// Document\n//\n// Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n\n// Root\n//\n// Ability to the value of the root font sizes, affecting the value of `rem`.\n// null by default, thus nothing is generated.\n\n:root {\n @if $font-size-root != null {\n @include font-size(var(--#{$prefix}root-font-size));\n }\n\n @if $enable-smooth-scroll {\n @media (prefers-reduced-motion: no-preference) {\n scroll-behavior: smooth;\n }\n }\n}\n\n\n// Body\n//\n// 1. Remove the margin in all browsers.\n// 2. As a best practice, apply a default `background-color`.\n// 3. Prevent adjustments of font size after orientation changes in iOS.\n// 4. Change the default tap highlight to be completely transparent in iOS.\n\n// scss-docs-start reboot-body-rules\nbody {\n margin: 0; // 1\n font-family: var(--#{$prefix}body-font-family);\n @include font-size(var(--#{$prefix}body-font-size));\n font-weight: var(--#{$prefix}body-font-weight);\n line-height: var(--#{$prefix}body-line-height);\n color: var(--#{$prefix}body-color);\n text-align: var(--#{$prefix}body-text-align);\n background-color: var(--#{$prefix}body-bg); // 2\n -webkit-text-size-adjust: 100%; // 3\n -webkit-tap-highlight-color: rgba($black, 0); // 4\n}\n// scss-docs-end reboot-body-rules\n\n\n// Content grouping\n//\n// 1. Reset Firefox's gray color\n\nhr {\n margin: $hr-margin-y 0;\n color: $hr-color; // 1\n border: 0;\n border-top: $hr-border-width solid $hr-border-color;\n opacity: $hr-opacity;\n}\n\n\n// Typography\n//\n// 1. Remove top margins from headings\n// By default, `

`-`

` all receive top and bottom margins. We nuke the top\n// margin for easier control within type scales as it avoids margin collapsing.\n\n%heading {\n margin-top: 0; // 1\n margin-bottom: $headings-margin-bottom;\n font-family: $headings-font-family;\n font-style: $headings-font-style;\n font-weight: $headings-font-weight;\n line-height: $headings-line-height;\n color: var(--#{$prefix}heading-color);\n}\n\nh1 {\n @extend %heading;\n @include font-size($h1-font-size);\n}\n\nh2 {\n @extend %heading;\n @include font-size($h2-font-size);\n}\n\nh3 {\n @extend %heading;\n @include font-size($h3-font-size);\n}\n\nh4 {\n @extend %heading;\n @include font-size($h4-font-size);\n}\n\nh5 {\n @extend %heading;\n @include font-size($h5-font-size);\n}\n\nh6 {\n @extend %heading;\n @include font-size($h6-font-size);\n}\n\n\n// Reset margins on paragraphs\n//\n// Similarly, the top margin on `

`s get reset. However, we also reset the\n// bottom margin to use `rem` units instead of `em`.\n\np {\n margin-top: 0;\n margin-bottom: $paragraph-margin-bottom;\n}\n\n\n// Abbreviations\n//\n// 1. Add the correct text decoration in Chrome, Edge, Opera, and Safari.\n// 2. Add explicit cursor to indicate changed behavior.\n// 3. Prevent the text-decoration to be skipped.\n\nabbr[title] {\n text-decoration: underline dotted; // 1\n cursor: help; // 2\n text-decoration-skip-ink: none; // 3\n}\n\n\n// Address\n\naddress {\n margin-bottom: 1rem;\n font-style: normal;\n line-height: inherit;\n}\n\n\n// Lists\n\nol,\nul {\n padding-left: 2rem;\n}\n\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\n\ndt {\n font-weight: $dt-font-weight;\n}\n\n// 1. Undo browser default\n\ndd {\n margin-bottom: .5rem;\n margin-left: 0; // 1\n}\n\n\n// Blockquote\n\nblockquote {\n margin: 0 0 1rem;\n}\n\n\n// Strong\n//\n// Add the correct font weight in Chrome, Edge, and Safari\n\nb,\nstrong {\n font-weight: $font-weight-bolder;\n}\n\n\n// Small\n//\n// Add the correct font size in all browsers\n\nsmall {\n @include font-size($small-font-size);\n}\n\n\n// Mark\n\nmark {\n padding: $mark-padding;\n color: var(--#{$prefix}highlight-color);\n background-color: var(--#{$prefix}highlight-bg);\n}\n\n\n// Sub and Sup\n//\n// Prevent `sub` and `sup` elements from affecting the line height in\n// all browsers.\n\nsub,\nsup {\n position: relative;\n @include font-size($sub-sup-font-size);\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub { bottom: -.25em; }\nsup { top: -.5em; }\n\n\n// Links\n\na {\n color: rgba(var(--#{$prefix}link-color-rgb), var(--#{$prefix}link-opacity, 1));\n text-decoration: $link-decoration;\n\n &:hover {\n --#{$prefix}link-color-rgb: var(--#{$prefix}link-hover-color-rgb);\n text-decoration: $link-hover-decoration;\n }\n}\n\n// And undo these styles for placeholder links/named anchors (without href).\n// It would be more straightforward to just use a[href] in previous block, but that\n// causes specificity issues in many other styles that are too complex to fix.\n// See https://github.com/twbs/bootstrap/issues/19402\n\na:not([href]):not([class]) {\n &,\n &:hover {\n color: inherit;\n text-decoration: none;\n }\n}\n\n\n// Code\n\npre,\ncode,\nkbd,\nsamp {\n font-family: $font-family-code;\n @include font-size(1em); // Correct the odd `em` font sizing in all browsers.\n}\n\n// 1. Remove browser default top margin\n// 2. Reset browser default of `1em` to use `rem`s\n// 3. Don't allow content to break outside\n\npre {\n display: block;\n margin-top: 0; // 1\n margin-bottom: 1rem; // 2\n overflow: auto; // 3\n @include font-size($code-font-size);\n color: $pre-color;\n\n // Account for some code outputs that place code tags in pre tags\n code {\n @include font-size(inherit);\n color: inherit;\n word-break: normal;\n }\n}\n\ncode {\n @include font-size($code-font-size);\n color: var(--#{$prefix}code-color);\n word-wrap: break-word;\n\n // Streamline the style when inside anchors to avoid broken underline and more\n a > & {\n color: inherit;\n }\n}\n\nkbd {\n padding: $kbd-padding-y $kbd-padding-x;\n @include font-size($kbd-font-size);\n color: $kbd-color;\n background-color: $kbd-bg;\n @include border-radius($border-radius-sm);\n\n kbd {\n padding: 0;\n @include font-size(1em);\n font-weight: $nested-kbd-font-weight;\n }\n}\n\n\n// Figures\n//\n// Apply a consistent margin strategy (matches our type styles).\n\nfigure {\n margin: 0 0 1rem;\n}\n\n\n// Images and content\n\nimg,\nsvg {\n vertical-align: middle;\n}\n\n\n// Tables\n//\n// Prevent double borders\n\ntable {\n caption-side: bottom;\n border-collapse: collapse;\n}\n\ncaption {\n padding-top: $table-cell-padding-y;\n padding-bottom: $table-cell-padding-y;\n color: $table-caption-color;\n text-align: left;\n}\n\n// 1. Removes font-weight bold by inheriting\n// 2. Matches default `` alignment by inheriting `text-align`.\n// 3. Fix alignment for Safari\n\nth {\n font-weight: $table-th-font-weight; // 1\n text-align: inherit; // 2\n text-align: -webkit-match-parent; // 3\n}\n\nthead,\ntbody,\ntfoot,\ntr,\ntd,\nth {\n border-color: inherit;\n border-style: solid;\n border-width: 0;\n}\n\n\n// Forms\n//\n// 1. Allow labels to use `margin` for spacing.\n\nlabel {\n display: inline-block; // 1\n}\n\n// Remove the default `border-radius` that macOS Chrome adds.\n// See https://github.com/twbs/bootstrap/issues/24093\n\nbutton {\n // stylelint-disable-next-line property-disallowed-list\n border-radius: 0;\n}\n\n// Explicitly remove focus outline in Chromium when it shouldn't be\n// visible (e.g. as result of mouse click or touch tap). It already\n// should be doing this automatically, but seems to currently be\n// confused and applies its very visible two-tone outline anyway.\n\nbutton:focus:not(:focus-visible) {\n outline: 0;\n}\n\n// 1. Remove the margin in Firefox and Safari\n\ninput,\nbutton,\nselect,\noptgroup,\ntextarea {\n margin: 0; // 1\n font-family: inherit;\n @include font-size(inherit);\n line-height: inherit;\n}\n\n// Remove the inheritance of text transform in Firefox\nbutton,\nselect {\n text-transform: none;\n}\n// Set the cursor for non-`