This commit is contained in:
alazhar committed 2026-04-27 19:37:57 +07:00
1 parent f797727448
commit ec2e8ffccb
2 files changed
+238 -154

No files matched your search

+226 -154
View File
@@ -1,125 +1,174 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Log Viewer Pro</title>
<title>Log Viewer Pro // Dark Mode</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/dataTables.bootstrap5.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
<script src="js/lucide.min.js"></script>
<style>
:root {
--bg-color: #0f111a;
--card-bg: #1a1c27;
--border-color: #2d303e;
--accent-color: #3d5afe;
}
body {
background-color: #f8f9fa;
font-size: 0.82rem;
color: #333;
background-color: var(--bg-color);
color: #e0e0e0;
font-family: 'Inter', -apple-system, sans-serif;
font-size: 0.85rem;
overflow-x: hidden;
}
.container-fluid {
padding: 20px;
/* Full Screen Drop Zone */
#drop-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(61, 90, 254, 0.9);
z-index: 9999;
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
border: 4px dashed #fff;
color: white;
pointer-events: none;
}
/* Drag & Drop */
#drop-zone {
border: 2px dashed #dee2e6;
background: #fff;
padding: 25px;
text-align: center;
border-radius: 12px;
cursor: pointer;
transition: all 0.2s ease;
margin-bottom: 20px;
/* Sleek Table Design */
.main-container {
padding: 1.5rem;
max-width: 1600px;
margin: 0 auto;
}
#drop-zone:hover,
#drop-zone.dragover {
border-color: #0d6efd;
background: #f0f7ff;
}
/* Table Styling */
.table-card {
background: #fff;
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
padding: 15px;
padding: 1rem;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
table.dataTable {
border-collapse: collapse !important;
border-top: 1px solid #eee;
border: none !important;
}
.badge-lvl {
font-weight: 600;
padding: 0.4em 0.7em;
table.dataTable thead th {
background: #242736;
text-transform: uppercase;
font-size: 0.7rem;
letter-spacing: 1px;
border-bottom: 1px solid var(--border-color) !important;
}
/* Level Badges */
.lvl-badge {
font-weight: 700;
font-size: 0.7rem;
padding: 2px 6px;
border-radius: 4px;
font-size: 0.75rem;
min-width: 45px;
display: inline-block;
min-width: 40px;
text-align: center;
}
.bg-INF {
background-color: #e3f2fd;
color: #0d6efd;
.lvl-TRC {
background: #424242;
color: #bdbdbd;
}
.bg-ERR {
background-color: #ffebee;
color: #c62828;
.lvl-DBG {
background: #1e3a8a;
color: #93c5fd;
}
.bg-DBG {
background-color: #f5f5f5;
color: #616161;
.lvl-INF {
background: #064e3b;
color: #6ee7b7;
}
.bg-TRC {
background-color: #f3e5f5;
color: #7b1fa2;
.lvl-WRN {
background: #78350f;
color: #fcd34d;
}
/* Child Row / Exception */
.lvl-ERR {
background: #7f1d1d;
color: #fca5a5;
}
.lvl-CRT {
background: #ec4899;
color: white;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4);
}
70% {
box-shadow: 0 0 0 10px rgba(236, 72, 153, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(236, 72, 153, 0);
}
}
/* Controls */
.details-control {
cursor: pointer;
color: #0d6efd;
font-size: 1rem;
color: var(--accent-color);
transition: 0.2s;
}
.exception-wrapper {
background: #1e1e1e;
color: #dcdcdc;
padding: 15px;
border-radius: 6px;
font-family: 'Consolas', monospace;
.details-control:hover {
transform: scale(1.2);
}
.exception-view {
background: #000;
color: #ff5555;
padding: 1rem;
border-radius: 8px;
font-family: 'Fira Code', monospace;
font-size: 0.75rem;
white-space: pre-wrap;
margin: 10px 0;
border-left: 4px solid #c62828;
margin: 0.5rem 0;
border-left: 3px solid #7f1d1d;
}
/* Utils */
.text-truncate-custom {
max-width: 500px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
vertical-align: bottom;
/* Search Bar Customization */
.dataTables_filter input {
background: #242736;
border: 1px solid var(--border-color);
border-radius: 8px;
color: white;
padding: 6px 12px;
width: 300px !important;
}
.btn-more {
color: #0d6efd;
text-decoration: underline;
color: var(--accent-color);
cursor: pointer;
font-weight: 500;
margin-left: 5px;
font-size: 0.75rem;
text-decoration: none;
}
.props-text {
color: #666;
font-style: italic;
.props-col {
color: #888;
font-family: monospace;
font-size: 0.75rem;
}
</style>
@@ -127,36 +176,49 @@
<body>
<div class="container-fluid">
<div id="drop-zone" onclick="document.getElementById('file-input').click()">
<h5 class="mb-1"><i class="bi bi-file-earmark-arrow-up text-primary"></i> Drop your .log file here</h5>
<p class="text-muted small mb-0">The parser handles timestamped headers and multi-line exceptions
automatically.</p>
<div id="drop-overlay">
<i data-lucide="upload-cloud" size="64"></i>
<h2 class="mt-3">Drop Log File to Import</h2>
</div>
<div class="main-container">
<header class="d-flex justify-content-between align-items-center mb-4">
<div>
<h4 class="mb-0 fw-bold"><i data-lucide="terminal" class="me-2 text-primary"></i>LogView <span
class="text-primary">Pro</span></h4>
<p class="text-muted small mb-0">v3.0 • Dark Mode Enabled</p>
</div>
<button class="btn btn-outline-primary btn-sm" onclick="document.getElementById('file-input').click()">
<i data-lucide="file-plus" class="me-1"></i> Open File
</button>
<input type="file" id="file-input" hidden accept=".log,.txt">
</div>
</header>
<div class="table-card">
<div class="d-flex justify-content-between align-items-center mb-3">
<div class="d-flex gap-2">
<select id="level-filter" class="form-select form-select-sm" style="width: 140px;">
<div class="d-flex align-items-center gap-3">
<select id="level-filter" class="form-select form-select-sm bg-dark border-secondary"
style="width: 150px;">
<option value="">All Levels</option>
<option value="INF">INF</option>
<option value="ERR">ERR</option>
<option value="DBG">DBG</option>
<option value="TRC">TRC</option>
<option value="CRT">CRT (Critical)</option>
<option value="ERR">ERR (Error)</option>
<option value="WRN">WRN (Warning)</option>
<option value="INF">INF (Info)</option>
<option value="DBG">DBG (Debug)</option>
<option value="TRC">TRC (Trace)</option>
</select>
<div id="stats-area" class="small text-muted"></div>
</div>
<div id="search-container"></div>
</div>
<table id="log-table" class="table table-hover table-sm w-100">
<table id="log-table" class="table table-dark table-hover w-100">
<thead>
<tr>
<th width="30"></th>
<th width="100">Timestamp</th>
<th width="60">Lvl</th>
<th width="120">Timestamp</th>
<th width="80">Level</th>
<th>Message</th>
<th width="250">Properties</th>
<th width="300">Properties</th>
</tr>
</thead>
<tbody></tbody>
@@ -165,15 +227,15 @@
</div>
<div class="modal fade" id="logModal" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header py-2 px-3">
<h6 class="modal-title">Full Message Log</h6>
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content border-secondary shadow-lg">
<div class="modal-header border-secondary">
<h6 class="modal-title">Log Message Detail</h6>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body bg-light">
<div id="modal-body-content"
style="white-space: pre-wrap; font-family: monospace; font-size: 0.85rem;"></div>
<div class="modal-body p-0">
<pre id="modal-body-content" class="m-0 p-3"
style="background:#000; color:#fff; font-size:0.8rem;"></pre>
</div>
</div>
</div>
@@ -185,132 +247,142 @@
<script src="js/bootstrap.bundle.min.js"></script>
<script>
$(document).ready(function () {
const TRUNCATE_LIMIT = 120;
lucide.createIcons();
const TRUNCATE_LIMIT = 150;
$(document).ready(function () {
const table = $('#log-table').DataTable({
dom: '<"d-flex justify-content-between mb-2"f>rtip',
dom: '<"d-flex justify-content-between align-items-center mb-2"f>rtip',
pageLength: 50,
columns: [
{
className: 'details-control',
orderable: false,
data: null,
render: (data, type, row) => row.exception ? '<i class="bi bi-chevron-right"></i>' : ''
render: (d, t, row) => row.exception ? '<i data-lucide="chevron-right" size="16"></i>' : ''
},
{ data: 'time' },
{ data: 'time', className: 'text-muted' },
{
data: 'level',
render: l => `<span class="badge-lvl bg-${l}">${l}</span>`
render: l => `<span class="lvl-badge lvl-${l}">${l}</span>`
},
{
data: 'message',
render: function (data) {
if (data.length > TRUNCATE_LIMIT) {
return `<span class="text-truncate-custom">${data.substring(0, TRUNCATE_LIMIT)}</span><span class="btn-more" onclick="showFullLog('${btoa(unescape(encodeURIComponent(data)))}')">...more</span>`;
return `<span>${data.substring(0, TRUNCATE_LIMIT)}</span><a class="btn-more ms-1" onclick="viewMore('${btoa(unescape(encodeURIComponent(data)))}')">...more</a>`;
}
return data;
}
},
{
data: 'props',
render: p => `<span class="props-text">${p}</span>`
className: 'props-col',
render: p => p ? `<span title="${p} text-truncate d-block" style="max-width:280px">${p}</span>` : ''
}
],
order: [[1, 'asc']],
language: { search: "", searchPlaceholder: "Quick search logs..." }
drawCallback: function () { lucide.createIcons(); },
language: { search: "", searchPlaceholder: "Filter logs..." }
});
// Expand/Collapse Child Row
// Expandable Exception Rows
$('#log-table tbody').on('click', 'td.details-control', function () {
let tr = $(this).closest('tr');
let row = table.row(tr);
let icon = $(this).find('i');
let tr = $(this).closest('tr'), row = table.row(tr);
if (row.child.isShown()) {
row.child.hide();
icon.attr('class', 'bi bi-chevron-right');
$(this).html('<i data-lucide="chevron-right" size="16"></i>');
} else if (row.data().exception) {
row.child(`<div class="exception-wrapper">${row.data().exception}</div>`).show();
icon.attr('class', 'bi bi-chevron-down text-danger');
row.child(`<div class="exception-view">${row.data().exception}</div>`).show();
$(this).html('<i data-lucide="chevron-down" class="text-danger" size="16"></i>');
}
lucide.createIcons();
});
// Level Filter
$('#level-filter').on('change', function () {
table.column(2).search(this.value).draw();
table.column(2).search(this.value ? `^${this.value}$` : '', true, false).draw();
});
// Drag and Drop Logic
const zone = $('#drop-zone');
zone.on('dragover', e => { e.preventDefault(); zone.addClass('dragover'); });
zone.on('dragleave', e => { zone.removeClass('dragover'); });
zone.on('drop', e => {
// --- FULL SCREEN DRAG & DROP ---
let dragCounter = 0;
window.addEventListener('dragenter', e => {
e.preventDefault();
zone.removeClass('dragover');
processFile(e.originalEvent.dataTransfer.files[0]);
dragCounter++;
$('#drop-overlay').css('display', 'flex');
});
window.addEventListener('dragleave', e => {
dragCounter--;
if (dragCounter === 0) $('#drop-overlay').hide();
});
window.addEventListener('dragover', e => e.preventDefault());
window.addEventListener('drop', e => {
e.preventDefault();
dragCounter = 0;
$('#drop-overlay').hide();
processFile(e.dataTransfer.files[0]);
});
$('#file-input').on('change', e => processFile(e.target.files[0]));
function processFile(file) {
if (!file) return;
const reader = new FileReader();
reader.onload = e => {
const data = parseLogFile(e.target.result);
table.clear().rows.add(data).draw();
const logs = parseLogs(e.target.result);
table.clear().rows.add(logs).draw();
updateStats(logs);
};
reader.readAsText(file);
}
function parseLogFile(text) {
function parseLogs(text) {
const lines = text.split(/\r?\n/);
const results = [];
// Header pattern: HH:mm:ss.SSS [LVL]
const headerRegex = /^(\d{2}:\d{2}:\d{2}\.\d{3})\s\[(\w+)\]\s(.*)$/;
// Support 6 levels: TRC, DBG, WRN, INF, ERR, CRT
const headerRegex = /^(\d{2}:\d{2}:\d{2}\.\d{3})\s\[(TRC|DBG|WRN|INF|ERR|CRT)\]\s(.*)$/;
lines.forEach(line => {
const trimmed = line.trim();
if (!trimmed) return;
if (!line.trim()) return;
const match = line.match(headerRegex);
if (match) {
let time = match[1];
let level = match[2];
let content = match[3].trim();
let message = content, props = "";
let message = content;
let props = "";
// Template: {message} ({props})
// Look for the last set of parentheses that contain a colon (key:value)
const lastOpenParen = content.lastIndexOf(' (');
if (lastOpenParen !== -1 && content.endsWith(')')) {
const potentialProps = content.substring(lastOpenParen + 2, content.length - 1);
if (potentialProps.includes(':')) {
props = potentialProps;
message = content.substring(0, lastOpenParen).trim();
// Parse props at the end: (key: value)
const lastParenIdx = content.lastIndexOf(' (');
if (lastParenIdx !== -1 && content.endsWith(')')) {
const possibleProps = content.substring(lastParenIdx + 2, content.length - 1);
if (possibleProps.includes(':')) {
props = possibleProps;
message = content.substring(0, lastParenIdx).trim();
}
}
results.push({ time, level, message, props, exception: "" });
} else {
// If line doesn't start with timestamp, it's an exception/stack trace
if (results.length > 0) {
results[results.length - 1].exception += (results[results.length - 1].exception ? "\n" : "") + line;
}
results.push({ time: match[1], level: match[2], message, props, exception: "" });
} else if (results.length > 0) {
results[results.length - 1].exception += (results[results.length - 1].exception ? "\n" : "") + line;
}
});
return results;
}
// Modal Helper
window.showFullLog = function (encoded) {
function updateStats(logs) {
const count = logs.length;
const errs = logs.filter(l => l.level === 'ERR' || l.level === 'CRT').length;
$('#stats-area').html(`<span class="me-3">${count} total logs</span> <span class="text-danger">${errs} errors/criticals</span>`);
}
window.viewMore = function (encoded) {
const text = decodeURIComponent(escape(atob(encoded)));
$('#modal-body-content').text(text);
new bootstrap.Modal('#logModal').show();
};
});
</script>
</body>
</html>
+12
View File
@@ -0,0 +1,12 @@
/**
* @license lucide v1.11.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
(function(a,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(a=typeof globalThis<"u"?globalThis:a||self,n(a.lucide={}))})(this,(function(a){"use strict";const n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},fa=([t,h,d])=>{const c=document.createElementNS("http://www.w3.org/2000/svg",t);return Object.keys(h).forEach(M=>{c.setAttribute(M,String(h[M]))}),d?.length&&d.forEach(M=>{const p=fa(M);c.appendChild(p)}),c},ka=(t,h={})=>{const d={...n,...h};return fa(["svg",d,t])},Xu=t=>{for(const h in t)if(h.startsWith("aria-")||h==="role"||h==="title")return!0;return!1},ju=(...t)=>t.filter((h,d,c)=>!!h&&h.trim()!==""&&c.indexOf(h)===d).join(" ").trim(),Nu=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(h,d,c)=>c?c.toUpperCase():d.toLowerCase()),Ku=t=>{const h=Nu(t);return h.charAt(0).toUpperCase()+h.slice(1)},Qu=t=>Array.from(t.attributes).reduce((h,d)=>(h[d.name]=d.value,h),{}),Pa=t=>typeof t=="string"?t:!t||!t.class?"":t.class&&typeof t.class=="string"?t.class.split(" "):t.class&&Array.isArray(t.class)?t.class:"",Ba=(t,{nameAttr:h,icons:d,attrs:c})=>{const M=t.getAttribute(h);if(M==null)return;const p=Ku(M),Sa=d[p];if(!Sa)return console.warn(`${t.outerHTML} icon name was not found in the provided icons object.`);const La=Qu(t),Ju=Xu(La)?{}:{"aria-hidden":"true"},Eu={...n,"data-lucide":M,...Ju,...c,...La},Yu=Pa(La),_u=Pa(c),Iu=ju("lucide",`lucide-${M}`,...Yu,..._u);Iu&&Object.assign(Eu,{class:Iu});const xu=ka(Sa,Eu);return t.parentNode?.replaceChild(xu,t)},za=[["path",{d:"m14 12 4 4 4-4"}],["path",{d:"M18 16V7"}],["path",{d:"m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16"}],["path",{d:"M3.304 13h6.392"}]],Fa=[["path",{d:"m14 11 4-4 4 4"}],["path",{d:"M18 16V7"}],["path",{d:"m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16"}],["path",{d:"M3.304 13h6.392"}]],Da=[["circle",{cx:"16",cy:"4",r:"1"}],["path",{d:"m18 19 1-7-6 1"}],["path",{d:"m5 8 3-3 5.5 3-2.36 3.5"}],["path",{d:"M4.24 14.5a5 5 0 0 0 6.88 6"}],["path",{d:"M13.76 17.5a5 5 0 0 0-6.88-6"}]],Ra=[["path",{d:"m15 16 2.536-7.328a1.02 1.02 1 0 1 1.928 0L22 16"}],["path",{d:"M15.697 14h5.606"}],["path",{d:"m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16"}],["path",{d:"M3.304 13h6.392"}]],ba=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]],Ta=[["path",{d:"M18 17.5a2.5 2.5 0 1 1-4 2.03V12"}],["path",{d:"M6 12H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"}],["path",{d:"M6 8h12"}],["path",{d:"M6.6 15.572A2 2 0 1 0 10 17v-5"}]],qa=[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"}],["path",{d:"m12 15 5 6H7Z"}]],g=[["circle",{cx:"12",cy:"13",r:"8"}],["path",{d:"M5 3 2 6"}],["path",{d:"m22 6-3-3"}],["path",{d:"M6.38 18.7 4 21"}],["path",{d:"M17.64 18.67 20 21"}],["path",{d:"m9 13 2 2 4-4"}]],C=[["circle",{cx:"12",cy:"13",r:"8"}],["path",{d:"M5 3 2 6"}],["path",{d:"m22 6-3-3"}],["path",{d:"M6.38 18.7 4 21"}],["path",{d:"M17.64 18.67 20 21"}],["path",{d:"M9 13h6"}]],Ua=[["path",{d:"M6.87 6.87a8 8 0 1 0 11.26 11.26"}],["path",{d:"M19.9 14.25a8 8 0 0 0-9.15-9.15"}],["path",{d:"m22 6-3-3"}],["path",{d:"M6.26 18.67 4 21"}],["path",{d:"m2 2 20 20"}],["path",{d:"M4 4 2 6"}]],u=[["circle",{cx:"12",cy:"13",r:"8"}],["path",{d:"M5 3 2 6"}],["path",{d:"m22 6-3-3"}],["path",{d:"M6.38 18.7 4 21"}],["path",{d:"M17.64 18.67 20 21"}],["path",{d:"M12 10v6"}],["path",{d:"M9 13h6"}]],Oa=[["circle",{cx:"12",cy:"13",r:"8"}],["path",{d:"M12 9v4l2 2"}],["path",{d:"M5 3 2 6"}],["path",{d:"m22 6-3-3"}],["path",{d:"M6.38 18.7 4 21"}],["path",{d:"M17.64 18.67 20 21"}]],Za=[["path",{d:"M11 21c0-2.5 2-2.5 2-5"}],["path",{d:"M16 21c0-2.5 2-2.5 2-5"}],["path",{d:"m19 8-.8 3a1.25 1.25 0 0 1-1.2 1H7a1.25 1.25 0 0 1-1.2-1L5 8"}],["path",{d:"M21 3a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a1 1 0 0 1 1-1z"}],["path",{d:"M6 21c0-2.5 2-2.5 2-5"}]],Ga=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}],["polyline",{points:"11 3 11 11 14 8 17 11 17 3"}]],Wa=[["path",{d:"M2 12h20"}],["path",{d:"M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4"}],["path",{d:"M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4"}],["path",{d:"M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1"}],["path",{d:"M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1"}]],Ea=[["path",{d:"M12 2v20"}],["path",{d:"M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4"}],["path",{d:"M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4"}],["path",{d:"M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1"}],["path",{d:"M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1"}]],Ia=[["rect",{width:"6",height:"16",x:"4",y:"2",rx:"2"}],["rect",{width:"6",height:"9",x:"14",y:"9",rx:"2"}],["path",{d:"M22 22H2"}]],Xa=[["rect",{width:"16",height:"6",x:"2",y:"4",rx:"2"}],["rect",{width:"9",height:"6",x:"9",y:"14",rx:"2"}],["path",{d:"M22 22V2"}]],ja=[["rect",{width:"6",height:"14",x:"4",y:"5",rx:"2"}],["rect",{widtLine truncated
If you want to use all the icons you can import it like:
\`import { createIcons, icons } from 'lucide';
lucide.createIcons({icons});\``);if(typeof c>"u")throw new Error("`createIcons()` only works in a browser environment.");if(Array.from(c.querySelectorAll(`[${h}]`)).forEach(p=>Ba(p,{nameAttr:h,icons:t,attrs:d})),M&&Array.from(c.querySelectorAll("template")).forEach(p=>Wu({icons:t,nameAttr:h,attrs:d,root:p.content,inTemplates:M})),h==="data-lucide"){const p=c.querySelectorAll("[icon-name]");p.length>0&&(console.warn("[Lucide] Some icons were found with the now deprecated icon-name attribute. These will still be replaced for backwards compatibility, but will no longer be supported in v1.0 and you should switch to data-lucide"),Array.from(p).forEach(Sa=>Ba(Sa,{nameAttr:"icon-name",icons:t,attrs:d})))}};a.AArrowDown=za,a.AArrowUp=Fa,a.ALargeSmall=Ra,a.Accessibility=Da,a.Activity=ba,a.ActivitySquare=d0,a.AirVent=Ta,a.Airplay=qa,a.AlarmCheck=g,a.AlarmClock=Oa,a.AlarmClockCheck=g,a.AlarmClockMinus=C,a.AlarmClockOff=Ua,a.AlarmClockPlus=u,a.AlarmMinus=C,a.AlarmPlus=u,a.AlarmSmoke=Za,a.Album=Ga,a.AlertCircle=K,a.AlertOctagon=F2,a.AlertTriangle=ra,a.AlignCenter=ca,a.AlignCenterHorizontal=Wa,a.AlignCenterVertical=Ea,a.AlignEndHorizontal=Ia,a.AlignEndVertical=Xa,a.AlignHorizontalDistributeCenter=ja,a.AlignHorizontalDistributeEnd=Na,a.AlignHorizontalDistributeStart=Ka,a.AlignHorizontalJustifyCenter=Qa,a.AlignHorizontalJustifyEnd=Ja,a.AlignHorizontalJustifyStart=Ya,a.AlignHorizontalSpaceAround=_a,a.AlignHorizontalSpaceBetween=xa,a.AlignJustify=pa,a.AlignLeft=s,a.AlignRight=Ma,a.AlignStartHorizontal=at,a.AlignStartVertical=tt,a.AlignVerticalDistributeCenter=ht,a.AlignVerticalDistributeEnd=dt,a.AlignVerticalDistributeStart=ct,a.AlignVerticalJustifyCenter=Mt,a.AlignVerticalJustifyEnd=pt,a.AlignVerticalJustifyStart=it,a.AlignVerticalSpaceAround=nt,a.AlignVerticalSpaceBetween=lt,a.Ambulance=et,a.Ampersand=rt,a.Ampersands=ot,a.Amphora=vt,a.Anchor=$t,a.Angry=mt,a.Annoyed=yt,a.Antenna=st,a.Anvil=Ct,a.Aperture=gt,a.AppWindow=Ht,a.AppWindowMac=ut,a.Apple=At,a.Archive=St,a.ArchiveRestore=Vt,a.ArchiveX=wt,a.AreaChart=b,a.Armchair=Lt,a.ArrowBigDown=kt,a.ArrowBigDownDash=ft,a.ArrowBigLeft=Bt,a.ArrowBigLeftDash=Pt,a.ArrowBigRight=Ft,a.ArrowBigRightDash=zt,a.ArrowBigUp=Rt,a.ArrowBigUpDash=Dt,a.ArrowDown=It,a.ArrowDown01=bt,a.ArrowDown10=Tt,a.ArrowDownAZ=A,a.ArrowDownAz=A,a.ArrowDownCircle=Q,a.ArrowDownFromLine=qt,a.ArrowDownLeft=Ut,a.ArrowDownLeftFromCircle=Y,a.ArrowDownLeftFromSquare=n0,a.ArrowDownLeftSquare=c0,a.ArrowDownNarrowWide=Ot,a.ArrowDownRight=Zt,a.ArrowDownRightFromCircle=_,a.ArrowDownRightFromSquare=l0,a.ArrowDownRightSquare=M0,a.ArrowDownSquare=p0,a.ArrowDownToDot=Gt,a.ArrowDownToLine=Wt,a.ArrowDownUp=Et,a.ArrowDownWideNarrow=H,a.ArrowDownZA=V,a.ArrowDownZa=V,a.ArrowLeft=Kt,a.ArrowLeftCircle=J,a.ArrowLeftFromLine=Xt,a.ArrowLeftRight=jt,a.ArrowLeftSquare=i0,a.ArrowLeftToLine=Nt,a.ArrowRight=_t,a.ArrowRightCircle=t1,a.ArrowRightFromLine=Qt,a.ArrowRightLeft=Jt,a.ArrowRightSquare=o0,a.ArrowRightToLine=Yt,a.ArrowUp=nh,a.ArrowUp01=xt,a.ArrowUp10=ah,a.ArrowUpAZ=w,a.ArrowUpAz=w,a.ArrowUpCircle=h1,a.ArrowUpDown=th,a.ArrowUpFromDot=hh,a.ArrowUpFromLine=dh,a.ArrowUpLeft=ch,a.ArrowUpLeftFromCircle=x,a.ArrowUpLeftFromSquare=e0,a.ArrowUpLeftSquare=v0,a.ArrowUpNarrowWide=S,a.ArrowUpRight=ph,a.ArrowUpRightFromCircle=a1,a.ArrowUpRightFromSquare=r0,a.ArrowUpRightSquare=$0,a.ArrowUpSquare=m0,a.ArrowUpToLine=Mh,a.ArrowUpWideNarrow=ih,a.ArrowUpZA=L,a.ArrowUpZa=L,a.ArrowsUpFromLine=lh,a.Asterisk=eh,a.AsteriskSquare=s0,a.AtSign=rh,a.Atom=oh,a.AudioLines=vh,a.AudioWaveform=$h,a.Award=mh,a.Axe=yh,a.Axis3D=f,a.Axis3d=f,a.Baby=sh,a.Backpack=gh,a.Badge=Dh,a.BadgeAlert=Ch,a.BadgeCent=uh,a.BadgeCheck=k,a.BadgeDollarSign=Ah,a.BadgeEuro=Hh,a.BadgeHelp=P,a.BadgeIndianRupee=Vh,a.BadgeInfo=wh,a.BadgeJapaneseYen=Sh,a.BadgeMinus=Lh,a.BadgePercent=fh,a.BadgePlus=kh,a.BadgePoundSterling=Ph,a.BadgeQuestionMark=P,a.BadgeRussianRuble=Bh,a.BadgeSwissFranc=zh,a.BadgeTurkishLira=Fh,a.BadgeX=Rh,a.BaggageClaim=bh,a.Balloon=Th,a.Ban=qh,a.Banana=Uh,a.Bandage=Oh,a.Banknote=Eh,a.BanknoteArrowDown=Zh,a.BanknoteArrowUp=Gh,a.BanknoteX=Wh,a.BarChart=E,a.BarChart2=I,a.BarChart3=G,a.BarChart4=Z,a.BarChartBig=U,a.BarChartHorizontal=q,a.BarChartHorizontalBig=T,a.Barcode=Ih,a.Barrel=Xh,a.Baseline=jh,a.Bath=Nh,a.Battery=a4,a.BatteryCharging=Kh,a.BatteryFull=Qh,a.BatteryLow=Jh,a.BatteryMedium=Yh,a.BatteryPlus=_h,a.BatteryWarning=xh,a.Beaker=t4,a.Bean=d4,a.BeanOff=h4,a.Bed=p4,a.BedDouble=c4,a.BedSingle=M4,a.Beef=n4,a.BeefOff=i4,a.Beer=e4,a.BeerOff=l4,a.Bell=g4,a.BellCheck=r4,a.BellDot=o4,a.BellElectric=v4,a.BellMinus=$4,a.BellOff=m4,a.BellPlus=y4,a.BellRing=s4,a.BetweenHorizonalEnd=B,a.BetweenHorizonalStart=z,a.BetweenHorizontalEnd=B,a.BetweenHorizontalStart=z,a.BetweenVerticalEnd=C4,a.BetweenVerticalStart=A4,a.BicepsFlexed=u4,a.Bike=H4,a.Binary=V4,a.Binoculars=w4,a.Biohazard=S4,a.Bird=L4,a.Birdhouse=f4,a.Bitcoin=P4,a.Blend=k4,a.Blinds=B4,a.Blocks=z4,a.Bluetooth=b4,a.BluetoothConnected=F4,a.BluetoothOff=D4,a.BluetoothSearching=R4,a.Bold=T4,a.Bolt=q4,a.Bomb=U4,a.Bone=O4,a.Book=e5,a.BookLine truncated
//# sourceMappingURL=lucide.min.js.map