border-beam 1.3.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js DELETED
@@ -1,898 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const _=require("react/jsx-runtime"),k=require("react"),ve={sm:{borderRadius:32,borderWidth:1,width:70,height:36},md:{borderRadius:16,borderWidth:1},line:{borderRadius:16,borderWidth:1},"pulse-outside":{borderRadius:16,borderWidth:1},"pulse-inner":{borderRadius:16,borderWidth:1}},Q={sm:{dark:{strokeOpacity:.46,innerOpacity:.24,bloomOpacity:.38,innerShadow:"rgba(255, 255, 255, 0.3)",saturation:1.2},light:{strokeOpacity:.12,innerOpacity:.3,bloomOpacity:.16,innerShadow:"rgba(0, 0, 0, 0.14)",saturation:1.8}},md:{dark:{strokeOpacity:.26,innerOpacity:.42,bloomOpacity:.24,innerShadow:"rgba(255, 255, 255, 0.27)",saturation:1.2},light:{strokeOpacity:.12,innerOpacity:.26,bloomOpacity:.34,innerShadow:"rgba(0, 0, 0, 0.14)",saturation:1.5}},line:{dark:{strokeOpacity:1.14,innerOpacity:.7,bloomOpacity:.8,innerShadow:"rgba(255, 255, 255, 0.1)",saturation:1.2},light:{strokeOpacity:.16,innerOpacity:.32,bloomOpacity:.3,innerShadow:"rgba(0, 0, 0, 0.14)",saturation:1.95}},"pulse-outside":{dark:{strokeOpacity:.94,innerOpacity:.34,bloomOpacity:.3,innerShadow:"transparent",saturation:1.2,brightness:1.9,hairlineOpacity:0},light:{strokeOpacity:1.96,innerOpacity:1.04,bloomOpacity:.42,innerShadow:"transparent",saturation:.6,brightness:1.7,hairlineOpacity:0}},"pulse-inner":{dark:{strokeOpacity:1.54,innerOpacity:.44,bloomOpacity:.66,innerShadow:"transparent",saturation:1.2,brightness:.75},light:{strokeOpacity:.32,innerOpacity:.4,bloomOpacity:.8,innerShadow:"transparent",saturation:.75,brightness:1.3}}},Re={dark:{...Q.md.dark},light:{...Q.md.light}},C={colorful:{border:[{color:"rgb(255, 50, 100)",pos:"33% -7.4%",size:"70px 40px"},{color:"rgb(40, 140, 255)",pos:"12% -5%",size:"60px 35px"},{color:"rgb(50, 200, 80)",pos:"2.1% 68.3%",size:"40px 70px"},{color:"rgb(30, 185, 170)",pos:"2.1% 68.3%",size:"20px 35px"},{color:"rgb(100, 70, 255)",pos:"74.4% 100%",size:"180px 32px"},{color:"rgb(40, 140, 255)",pos:"55% 100%",size:"85px 26px"},{color:"rgb(255, 120, 40)",pos:"93.9% 0%",size:"74px 32px"},{color:"rgb(240, 50, 180)",pos:"100% 27.1%",size:"26px 42px"},{color:"rgb(180, 40, 240)",pos:"100% 27.1%",size:"52px 48px"}],spike:{primary:"rgb(255, 60, 80)",secondary:"rgba(40, 190, 180, 0.98)"},spikeLt:{primary:"rgb(200, 30, 60)",secondary:"rgb(20, 150, 140)"}},mono:{border:[{color:"rgb(180, 180, 180)",pos:"33% -7.4%",size:"70px 40px"},{color:"rgb(140, 140, 140)",pos:"12% -5%",size:"60px 35px"},{color:"rgb(160, 160, 160)",pos:"2.1% 68.3%",size:"40px 70px"},{color:"rgb(130, 130, 130)",pos:"2.1% 68.3%",size:"20px 35px"},{color:"rgb(170, 170, 170)",pos:"74.4% 100%",size:"180px 32px"},{color:"rgb(150, 150, 150)",pos:"55% 100%",size:"85px 26px"},{color:"rgb(190, 190, 190)",pos:"93.9% 0%",size:"74px 32px"},{color:"rgb(145, 145, 145)",pos:"100% 27.1%",size:"26px 42px"},{color:"rgb(165, 165, 165)",pos:"100% 27.1%",size:"52px 48px"}],spike:{primary:"rgb(200, 200, 200)",secondary:"rgb(170, 170, 170)"},spikeLt:{primary:"rgb(80, 80, 80)",secondary:"rgb(120, 120, 120)"}},ocean:{border:[{color:"rgb(100, 80, 220)",pos:"33% -7.4%",size:"70px 40px"},{color:"rgb(60, 120, 255)",pos:"12% -5%",size:"60px 35px"},{color:"rgb(80, 100, 200)",pos:"2.1% 68.3%",size:"40px 70px"},{color:"rgb(50, 140, 220)",pos:"2.1% 68.3%",size:"20px 35px"},{color:"rgb(120, 80, 255)",pos:"74.4% 100%",size:"180px 32px"},{color:"rgb(70, 130, 255)",pos:"55% 100%",size:"85px 26px"},{color:"rgb(140, 100, 240)",pos:"93.9% 0%",size:"74px 32px"},{color:"rgb(90, 110, 230)",pos:"100% 27.1%",size:"26px 42px"},{color:"rgb(130, 70, 255)",pos:"100% 27.1%",size:"52px 48px"}],spike:{primary:"rgb(100, 120, 255)",secondary:"rgba(130, 100, 220, 0.98)"},spikeLt:{primary:"rgb(60, 60, 180)",secondary:"rgb(80, 100, 200)"}},sunset:{border:[{color:"rgb(255, 80, 50)",pos:"33% -7.4%",size:"70px 40px"},{color:"rgb(255, 160, 40)",pos:"12% -5%",size:"60px 35px"},{color:"rgb(255, 120, 60)",pos:"2.1% 68.3%",size:"40px 70px"},{color:"rgb(255, 200, 50)",pos:"2.1% 68.3%",size:"20px 35px"},{color:"rgb(255, 100, 80)",pos:"74.4% 100%",size:"180px 32px"},{color:"rgb(255, 180, 60)",pos:"55% 100%",size:"85px 26px"},{color:"rgb(255, 60, 60)",pos:"93.9% 0%",size:"74px 32px"},{color:"rgb(255, 140, 50)",pos:"100% 27.1%",size:"26px 42px"},{color:"rgb(255, 90, 70)",pos:"100% 27.1%",size:"52px 48px"}],spike:{primary:"rgb(255, 140, 80)",secondary:"rgba(255, 100, 60, 0.98)"},spikeLt:{primary:"rgb(200, 80, 40)",secondary:"rgb(220, 120, 30)"}}},ke={colorful:{border:[{color:"rgb(50, 200, 80)",pos:"2% 68%",size:"9px 18px"},{color:"rgb(30, 185, 170)",pos:"2% 68%",size:"4px 8px"},{color:"rgb(255, 120, 40)",pos:"72% -3%",size:"59px 9px"},{color:"rgb(100, 70, 255)",pos:"74% 100%",size:"42px 7px"},{color:"rgb(240, 50, 180)",pos:"100% 27%",size:"10px 17px"},{color:"rgb(180, 40, 240)",pos:"100% 27%",size:"10px 18px"},{color:"rgb(40, 140, 255)",pos:"100% 27%",size:"5px 10px"},{color:"rgb(255, 50, 100)",pos:"100% 27%",size:"11px 12px"}],inner:[{color:"rgba(50, 200, 80, 0.5)",pos:"2% 68%",size:"9px 18px"},{color:"rgba(30, 185, 170, 0.45)",pos:"2% 68%",size:"4px 8px"},{color:"rgba(255, 120, 40, 0.35)",pos:"72% -3%",size:"59px 9px"},{color:"rgba(100, 70, 255, 0.35)",pos:"74% 100%",size:"42px 7px"},{color:"rgba(240, 50, 180, 0.3)",pos:"100% 27%",size:"10px 17px"},{color:"rgba(180, 40, 240, 0.4)",pos:"100% 27%",size:"10px 18px"},{color:"rgba(40, 140, 255, 0.3)",pos:"100% 27%",size:"5px 10px"},{color:"rgba(255, 50, 100, 0.3)",pos:"100% 27%",size:"11px 12px"}]},mono:{border:[{color:"rgb(160, 160, 160)",pos:"2% 68%",size:"9px 18px"},{color:"rgb(140, 140, 140)",pos:"2% 68%",size:"4px 8px"},{color:"rgb(180, 180, 180)",pos:"72% -3%",size:"59px 9px"},{color:"rgb(150, 150, 150)",pos:"74% 100%",size:"42px 7px"},{color:"rgb(170, 170, 170)",pos:"100% 27%",size:"10px 17px"},{color:"rgb(155, 155, 155)",pos:"100% 27%",size:"10px 18px"},{color:"rgb(145, 145, 145)",pos:"100% 27%",size:"5px 10px"},{color:"rgb(165, 165, 165)",pos:"100% 27%",size:"11px 12px"}],inner:[{color:"rgba(160, 160, 160, 0.25)",pos:"2% 68%",size:"9px 18px"},{color:"rgba(140, 140, 140, 0.22)",pos:"2% 68%",size:"4px 8px"},{color:"rgba(180, 180, 180, 0.17)",pos:"72% -3%",size:"59px 9px"},{color:"rgba(150, 150, 150, 0.17)",pos:"74% 100%",size:"42px 7px"},{color:"rgba(170, 170, 170, 0.15)",pos:"100% 27%",size:"10px 17px"},{color:"rgba(155, 155, 155, 0.20)",pos:"100% 27%",size:"10px 18px"},{color:"rgba(145, 145, 145, 0.15)",pos:"100% 27%",size:"5px 10px"},{color:"rgba(165, 165, 165, 0.15)",pos:"100% 27%",size:"11px 12px"}]},ocean:{border:[{color:"rgb(60, 140, 200)",pos:"2% 68%",size:"9px 18px"},{color:"rgb(50, 120, 180)",pos:"2% 68%",size:"4px 8px"},{color:"rgb(100, 80, 220)",pos:"72% -3%",size:"59px 9px"},{color:"rgb(80, 100, 255)",pos:"74% 100%",size:"42px 7px"},{color:"rgb(120, 70, 240)",pos:"100% 27%",size:"10px 17px"},{color:"rgb(90, 80, 220)",pos:"100% 27%",size:"10px 18px"},{color:"rgb(70, 110, 255)",pos:"100% 27%",size:"5px 10px"},{color:"rgb(110, 90, 230)",pos:"100% 27%",size:"11px 12px"}],inner:[{color:"rgba(60, 140, 200, 0.5)",pos:"2% 68%",size:"9px 18px"},{color:"rgba(50, 120, 180, 0.45)",pos:"2% 68%",size:"4px 8px"},{color:"rgba(100, 80, 220, 0.35)",pos:"72% -3%",size:"59px 9px"},{color:"rgba(80, 100, 255, 0.35)",pos:"74% 100%",size:"42px 7px"},{color:"rgba(120, 70, 240, 0.3)",pos:"100% 27%",size:"10px 17px"},{color:"rgba(90, 80, 220, 0.4)",pos:"100% 27%",size:"10px 18px"},{color:"rgba(70, 110, 255, 0.3)",pos:"100% 27%",size:"5px 10px"},{color:"rgba(110, 90, 230, 0.3)",pos:"100% 27%",size:"11px 12px"}]},sunset:{border:[{color:"rgb(255, 180, 50)",pos:"2% 68%",size:"9px 18px"},{color:"rgb(255, 150, 40)",pos:"2% 68%",size:"4px 8px"},{color:"rgb(255, 80, 60)",pos:"72% -3%",size:"59px 9px"},{color:"rgb(255, 100, 80)",pos:"74% 100%",size:"42px 7px"},{color:"rgb(255, 60, 80)",pos:"100% 27%",size:"10px 17px"},{color:"rgb(255, 120, 60)",pos:"100% 27%",size:"10px 18px"},{color:"rgb(255, 200, 50)",pos:"100% 27%",size:"5px 10px"},{color:"rgb(255, 90, 70)",pos:"100% 27%",size:"11px 12px"}],inner:[{color:"rgba(255, 180, 50, 0.5)",pos:"2% 68%",size:"9px 18px"},{color:"rgba(255, 150, 40, 0.45)",pos:"2% 68%",size:"4px 8px"},{color:"rgba(255, 80, 60, 0.35)",pos:"72% -3%",size:"59px 9px"},{color:"rgba(255, 100, 80, 0.35)",pos:"74% 100%",size:"42px 7px"},{color:"rgba(255, 60, 80, 0.3)",pos:"100% 27%",size:"10px 17px"},{color:"rgba(255, 120, 60, 0.4)",pos:"100% 27%",size:"10px 18px"},{color:"rgba(255, 200, 50, 0.3)",pos:"100% 27%",size:"5px 10px"},{color:"rgba(255, 90, 70, 0.3)",pos:"100% 27%",size:"11px 12px"}]}};function Me(t){return ke[t].border.map(a=>`radial-gradient(ellipse ${a.size} at ${a.pos}, ${a.color}, transparent)`).join(`,
2
- `)}function qe(t){return ke[t].inner.map(a=>`radial-gradient(ellipse ${a.size} at ${a.pos}, ${a.color}, transparent)`).join(`,
3
- `)}function Ce(t){return C[t].border.map(a=>`radial-gradient(ellipse ${a.size} at ${a.pos}, ${a.color}, transparent)`).join(`,
4
- `)}function Ge(t){const e=C[t],a=t==="mono"?.225:.45;return e.border.map(r=>{const o=r.color.replace("rgb(","rgba(").replace(")",`, ${a})`);return`radial-gradient(ellipse ${r.size.split(" ").map(i=>{const c=parseInt(i);return`${Math.round(c*.9)}px`}).join(" ")} at ${r.pos}, ${o}, transparent)`}).join(`,
5
- `)}function Ie(t,e){const a=C[t];return e?a.spike:a.spikeLt}const Pe={colorful:{dark:[{color:"rgb(255, 50, 100)",sizeW:36,sizeH:36,offsetX:0,offsetY:2},{color:"rgb(40, 180, 220)",sizeW:30,sizeH:32,offsetX:39,offsetY:0},{color:"rgb(50, 200, 80)",sizeW:33,sizeH:28,offsetX:-36,offsetY:2},{color:"rgb(180, 40, 240)",sizeW:29,sizeH:34,offsetX:-54,offsetY:0},{color:"rgb(255, 160, 30)",sizeW:27,sizeH:30,offsetX:51,offsetY:-1},{color:"rgb(100, 70, 255)",sizeW:36,sizeH:24,offsetX:21,offsetY:1},{color:"rgb(40, 140, 255)",sizeW:30,sizeH:22,offsetX:-21,offsetY:0},{color:"rgb(240, 50, 180)",sizeW:25,sizeH:28,offsetX:66,offsetY:1},{color:"rgb(30, 185, 170)",sizeW:23,sizeH:30,offsetX:-66,offsetY:-1}],light:[{color:"rgb(255, 50, 100)",sizeW:45,sizeH:36,offsetX:0,offsetY:2},{color:"rgb(40, 140, 255)",sizeW:35,sizeH:32,offsetX:65,offsetY:0},{color:"rgb(50, 200, 80)",sizeW:40,sizeH:28,offsetX:-60,offsetY:2},{color:"rgb(180, 40, 240)",sizeW:35,sizeH:34,offsetX:-90,offsetY:0},{color:"rgb(30, 185, 170)",sizeW:38,sizeH:30,offsetX:85,offsetY:-1},{color:"rgb(100, 70, 255)",sizeW:50,sizeH:24,offsetX:35,offsetY:1},{color:"rgb(40, 140, 255)",sizeW:40,sizeH:22,offsetX:-35,offsetY:0},{color:"rgb(255, 120, 40)",sizeW:35,sizeH:28,offsetX:110,offsetY:1},{color:"rgb(240, 50, 180)",sizeW:30,sizeH:30,offsetX:-110,offsetY:-1}]},mono:{dark:[{color:"rgb(200, 200, 200)",sizeW:36,sizeH:36,offsetX:0,offsetY:2},{color:"rgb(170, 170, 170)",sizeW:30,sizeH:32,offsetX:39,offsetY:0},{color:"rgb(155, 155, 155)",sizeW:33,sizeH:28,offsetX:-36,offsetY:2},{color:"rgb(185, 185, 185)",sizeW:29,sizeH:34,offsetX:-54,offsetY:0},{color:"rgb(165, 165, 165)",sizeW:27,sizeH:30,offsetX:51,offsetY:-1},{color:"rgb(180, 180, 180)",sizeW:36,sizeH:24,offsetX:21,offsetY:1},{color:"rgb(160, 160, 160)",sizeW:30,sizeH:22,offsetX:-21,offsetY:0},{color:"rgb(175, 175, 175)",sizeW:25,sizeH:28,offsetX:66,offsetY:1},{color:"rgb(190, 190, 190)",sizeW:23,sizeH:30,offsetX:-66,offsetY:-1}],light:[{color:"rgb(100, 100, 100)",sizeW:45,sizeH:36,offsetX:0,offsetY:2},{color:"rgb(80, 80, 80)",sizeW:35,sizeH:32,offsetX:65,offsetY:0},{color:"rgb(90, 90, 90)",sizeW:40,sizeH:28,offsetX:-60,offsetY:2},{color:"rgb(70, 70, 70)",sizeW:35,sizeH:34,offsetX:-90,offsetY:0},{color:"rgb(85, 85, 85)",sizeW:38,sizeH:30,offsetX:85,offsetY:-1},{color:"rgb(95, 95, 95)",sizeW:50,sizeH:24,offsetX:35,offsetY:1},{color:"rgb(75, 75, 75)",sizeW:40,sizeH:22,offsetX:-35,offsetY:0},{color:"rgb(105, 105, 105)",sizeW:35,sizeH:28,offsetX:110,offsetY:1},{color:"rgb(65, 65, 65)",sizeW:30,sizeH:30,offsetX:-110,offsetY:-1}]},ocean:{dark:[{color:"rgb(100, 80, 220)",sizeW:36,sizeH:36,offsetX:0,offsetY:2},{color:"rgb(60, 120, 255)",sizeW:30,sizeH:32,offsetX:39,offsetY:0},{color:"rgb(80, 100, 200)",sizeW:33,sizeH:28,offsetX:-36,offsetY:2},{color:"rgb(130, 70, 255)",sizeW:29,sizeH:34,offsetX:-54,offsetY:0},{color:"rgb(70, 130, 255)",sizeW:27,sizeH:30,offsetX:51,offsetY:-1},{color:"rgb(120, 80, 255)",sizeW:36,sizeH:24,offsetX:21,offsetY:1},{color:"rgb(90, 110, 230)",sizeW:30,sizeH:22,offsetX:-21,offsetY:0},{color:"rgb(110, 90, 240)",sizeW:25,sizeH:28,offsetX:66,offsetY:1},{color:"rgb(140, 100, 255)",sizeW:23,sizeH:30,offsetX:-66,offsetY:-1}],light:[{color:"rgb(80, 60, 200)",sizeW:45,sizeH:36,offsetX:0,offsetY:2},{color:"rgb(50, 100, 220)",sizeW:35,sizeH:32,offsetX:65,offsetY:0},{color:"rgb(70, 90, 190)",sizeW:40,sizeH:28,offsetX:-60,offsetY:2},{color:"rgb(110, 60, 220)",sizeW:35,sizeH:34,offsetX:-90,offsetY:0},{color:"rgb(60, 110, 230)",sizeW:38,sizeH:30,offsetX:85,offsetY:-1},{color:"rgb(100, 70, 240)",sizeW:50,sizeH:24,offsetX:35,offsetY:1},{color:"rgb(80, 100, 210)",sizeW:40,sizeH:22,offsetX:-35,offsetY:0},{color:"rgb(90, 80, 225)",sizeW:35,sizeH:28,offsetX:110,offsetY:1},{color:"rgb(120, 90, 245)",sizeW:30,sizeH:30,offsetX:-110,offsetY:-1}]},sunset:{dark:[{color:"rgb(255, 100, 60)",sizeW:36,sizeH:36,offsetX:0,offsetY:2},{color:"rgb(255, 180, 50)",sizeW:30,sizeH:32,offsetX:39,offsetY:0},{color:"rgb(255, 140, 70)",sizeW:33,sizeH:28,offsetX:-36,offsetY:2},{color:"rgb(255, 80, 80)",sizeW:29,sizeH:34,offsetX:-54,offsetY:0},{color:"rgb(255, 200, 60)",sizeW:27,sizeH:30,offsetX:51,offsetY:-1},{color:"rgb(255, 120, 50)",sizeW:36,sizeH:24,offsetX:21,offsetY:1},{color:"rgb(255, 160, 80)",sizeW:30,sizeH:22,offsetX:-21,offsetY:0},{color:"rgb(255, 90, 60)",sizeW:25,sizeH:28,offsetX:66,offsetY:1},{color:"rgb(255, 70, 70)",sizeW:23,sizeH:30,offsetX:-66,offsetY:-1}],light:[{color:"rgb(220, 80, 40)",sizeW:45,sizeH:36,offsetX:0,offsetY:2},{color:"rgb(230, 150, 30)",sizeW:35,sizeH:32,offsetX:65,offsetY:0},{color:"rgb(210, 110, 50)",sizeW:40,sizeH:28,offsetX:-60,offsetY:2},{color:"rgb(200, 60, 60)",sizeW:35,sizeH:34,offsetX:-90,offsetY:0},{color:"rgb(220, 170, 40)",sizeW:38,sizeH:30,offsetX:85,offsetY:-1},{color:"rgb(210, 100, 30)",sizeW:50,sizeH:24,offsetX:35,offsetY:1},{color:"rgb(230, 130, 60)",sizeW:40,sizeH:22,offsetX:-35,offsetY:0},{color:"rgb(190, 70, 50)",sizeW:35,sizeH:28,offsetX:110,offsetY:1},{color:"rgb(180, 50, 50)",sizeW:30,sizeH:30,offsetX:-110,offsetY:-1}]}};function Be(t,e,a){return Pe[t][e?"dark":"light"].map(o=>{const s=o.offsetX===0?"":o.offsetX>0?` + ${o.offsetX}px`:` - ${Math.abs(o.offsetX)}px`,i=o.offsetY===0?"":o.offsetY>0?` + ${o.offsetY}px`:` - ${Math.abs(o.offsetY)}px`;return`radial-gradient(ellipse calc(${o.sizeW}px * var(--beam-w-${a})) calc(${o.sizeH}px * var(--beam-h-${a})) at calc(var(--beam-x-${a}) * 100%${s}) calc(100%${i}), ${o.color}, transparent)`}).join(`,
6
- `)}const Ee={colorful:[{color:"rgba(255, 50, 100, 0.48)",sizeW:33,sizeH:30,offsetX:0,offsetY:0},{color:"rgba(40, 180, 220, 0.42)",sizeW:24,sizeH:26,offsetX:39,offsetY:-3},{color:"rgba(50, 200, 80, 0.48)",sizeW:27,sizeH:24,offsetX:-36,offsetY:0},{color:"rgba(180, 40, 240, 0.42)",sizeW:23,sizeH:28,offsetX:-54,offsetY:-2},{color:"rgba(255, 160, 30, 0.50)",sizeW:24,sizeH:24,offsetX:51,offsetY:-1},{color:"rgba(100, 70, 255, 0.45)",sizeW:30,sizeH:20,offsetX:21,offsetY:0},{color:"rgba(40, 140, 255, 0.40)",sizeW:25,sizeH:18,offsetX:-21,offsetY:-2},{color:"rgba(240, 50, 180, 0.45)",sizeW:21,sizeH:24,offsetX:66,offsetY:0},{color:"rgba(30, 185, 170, 0.52)",sizeW:18,sizeH:26,offsetX:-66,offsetY:-1}],mono:[{color:"rgba(200, 200, 200, 0.48)",sizeW:33,sizeH:30,offsetX:0,offsetY:0},{color:"rgba(170, 170, 170, 0.42)",sizeW:24,sizeH:26,offsetX:39,offsetY:-3},{color:"rgba(155, 155, 155, 0.48)",sizeW:27,sizeH:24,offsetX:-36,offsetY:0},{color:"rgba(185, 185, 185, 0.42)",sizeW:23,sizeH:28,offsetX:-54,offsetY:-2},{color:"rgba(165, 165, 165, 0.50)",sizeW:24,sizeH:24,offsetX:51,offsetY:-1},{color:"rgba(180, 180, 180, 0.45)",sizeW:30,sizeH:20,offsetX:21,offsetY:0},{color:"rgba(160, 160, 160, 0.40)",sizeW:25,sizeH:18,offsetX:-21,offsetY:-2},{color:"rgba(175, 175, 175, 0.45)",sizeW:21,sizeH:24,offsetX:66,offsetY:0},{color:"rgba(190, 190, 190, 0.52)",sizeW:18,sizeH:26,offsetX:-66,offsetY:-1}],ocean:[{color:"rgba(100, 80, 220, 0.48)",sizeW:33,sizeH:30,offsetX:0,offsetY:0},{color:"rgba(60, 120, 255, 0.42)",sizeW:24,sizeH:26,offsetX:39,offsetY:-3},{color:"rgba(80, 100, 200, 0.48)",sizeW:27,sizeH:24,offsetX:-36,offsetY:0},{color:"rgba(130, 70, 255, 0.42)",sizeW:23,sizeH:28,offsetX:-54,offsetY:-2},{color:"rgba(70, 130, 255, 0.50)",sizeW:24,sizeH:24,offsetX:51,offsetY:-1},{color:"rgba(120, 80, 255, 0.45)",sizeW:30,sizeH:20,offsetX:21,offsetY:0},{color:"rgba(90, 110, 230, 0.40)",sizeW:25,sizeH:18,offsetX:-21,offsetY:-2},{color:"rgba(110, 90, 240, 0.45)",sizeW:21,sizeH:24,offsetX:66,offsetY:0},{color:"rgba(140, 100, 255, 0.52)",sizeW:18,sizeH:26,offsetX:-66,offsetY:-1}],sunset:[{color:"rgba(255, 100, 60, 0.48)",sizeW:33,sizeH:30,offsetX:0,offsetY:0},{color:"rgba(255, 180, 50, 0.42)",sizeW:24,sizeH:26,offsetX:39,offsetY:-3},{color:"rgba(255, 140, 70, 0.48)",sizeW:27,sizeH:24,offsetX:-36,offsetY:0},{color:"rgba(255, 80, 80, 0.42)",sizeW:23,sizeH:28,offsetX:-54,offsetY:-2},{color:"rgba(255, 200, 60, 0.50)",sizeW:24,sizeH:24,offsetX:51,offsetY:-1},{color:"rgba(255, 120, 50, 0.45)",sizeW:30,sizeH:20,offsetX:21,offsetY:0},{color:"rgba(255, 160, 80, 0.40)",sizeW:25,sizeH:18,offsetX:-21,offsetY:-2},{color:"rgba(255, 90, 60, 0.45)",sizeW:21,sizeH:24,offsetX:66,offsetY:0},{color:"rgba(255, 70, 70, 0.52)",sizeW:18,sizeH:26,offsetX:-66,offsetY:-1}]};function Le(t,e){return Ee[t].map(r=>{const o=r.offsetX===0?"":r.offsetX>0?` + ${r.offsetX}px`:` - ${Math.abs(r.offsetX)}px`,s=r.offsetY===0?"":` - ${Math.abs(r.offsetY)}px`;return`radial-gradient(ellipse calc(${r.sizeW}px * var(--beam-w-${e})) calc(${r.sizeH}px * var(--beam-h-${e})) at calc(var(--beam-x-${e}) * 100%${o}) calc(100%${s}), ${r.color}, transparent)`}).join(`,
7
- `)}const _e={colorful:{dark:{spikes:[{color1:"rgb(100, 70, 255)",color2:"rgba(100, 70, 255, 1)"},{color1:"rgba(255, 170, 40, 0.59)",color2:"rgba(255, 170, 40, 0.29)"},{color1:"rgb(50, 200, 100)",color2:"rgba(50, 200, 100, 1)"},{color1:"rgba(200, 50, 240, 0.91)",color2:"rgba(200, 50, 240, 0.45)"},{color1:"rgb(40, 140, 255)",color2:"rgba(40, 140, 255, 1)"}]},light:{spikes:[{color1:"rgb(80, 50, 200)",color2:"rgba(80, 50, 200, 0.8)"},{color1:"rgba(210, 130, 0, 0.7)",color2:"rgba(210, 130, 0, 0.46)"},{color1:"rgb(30, 160, 70)",color2:"rgba(30, 160, 70, 0.82)"},{color1:"rgb(160, 30, 190)",color2:"rgba(160, 30, 190, 0.7)"},{color1:"rgb(30, 100, 200)",color2:"rgba(30, 100, 200, 0.78)"}]}},mono:{dark:{spikes:[{color1:"rgb(200, 200, 200)",color2:"rgba(200, 200, 200, 1)"},{color1:"rgba(180, 180, 180, 0.59)",color2:"rgba(180, 180, 180, 0.29)"},{color1:"rgb(190, 190, 190)",color2:"rgba(190, 190, 190, 1)"},{color1:"rgba(170, 170, 170, 0.91)",color2:"rgba(170, 170, 170, 0.45)"},{color1:"rgb(185, 185, 185)",color2:"rgba(185, 185, 185, 1)"}]},light:{spikes:[{color1:"rgb(80, 80, 80)",color2:"rgba(80, 80, 80, 0.8)"},{color1:"rgba(100, 100, 100, 0.7)",color2:"rgba(100, 100, 100, 0.46)"},{color1:"rgb(70, 70, 70)",color2:"rgba(70, 70, 70, 0.82)"},{color1:"rgb(90, 90, 90)",color2:"rgba(90, 90, 90, 0.7)"},{color1:"rgb(85, 85, 85)",color2:"rgba(85, 85, 85, 0.78)"}]}},ocean:{dark:{spikes:[{color1:"rgb(100, 80, 255)",color2:"rgb(100, 80, 255)"},{color1:"rgba(80, 130, 220, 0.59)",color2:"rgba(80, 130, 220, 0.29)"},{color1:"rgb(60, 100, 255)",color2:"rgb(60, 100, 255)"},{color1:"rgba(90, 120, 200, 0.91)",color2:"rgba(90, 120, 200, 0.45)"},{color1:"rgb(120, 90, 255)",color2:"rgb(120, 90, 255)"}]},light:{spikes:[{color1:"rgb(50, 40, 180)",color2:"rgba(50, 40, 180, 0.8)"},{color1:"rgba(40, 80, 200, 0.7)",color2:"rgba(40, 80, 200, 0.46)"},{color1:"rgb(30, 50, 190)",color2:"rgba(30, 50, 190, 0.82)"},{color1:"rgb(60, 90, 180)",color2:"rgba(60, 90, 180, 0.7)"},{color1:"rgb(70, 60, 200)",color2:"rgba(70, 60, 200, 0.78)"}]}},sunset:{dark:{spikes:[{color1:"rgb(255, 100, 80)",color2:"rgb(255, 100, 80)"},{color1:"rgba(255, 150, 80, 0.59)",color2:"rgba(255, 150, 80, 0.29)"},{color1:"rgb(255, 80, 60)",color2:"rgb(255, 80, 60)"},{color1:"rgba(255, 120, 50, 0.91)",color2:"rgba(255, 120, 50, 0.45)"},{color1:"rgb(255, 140, 70)",color2:"rgb(255, 140, 70)"}]},light:{spikes:[{color1:"rgb(200, 60, 30)",color2:"rgba(200, 60, 30, 0.8)"},{color1:"rgba(220, 100, 20, 0.7)",color2:"rgba(220, 100, 20, 0.46)"},{color1:"rgb(180, 40, 20)",color2:"rgba(180, 40, 20, 0.82)"},{color1:"rgb(210, 80, 10)",color2:"rgba(210, 80, 10, 0.7)"},{color1:"rgb(190, 70, 30)",color2:"rgba(190, 70, 30, 0.78)"}]}}};function K(t,e){const a=t.match(/^rgba\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*[\d.]+\s*\)$/);if(a)return`rgba(${a[1]}, ${a[2]}, ${a[3]}, ${e})`;const r=t.match(/^rgb\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)$/);return r?`rgba(${r[1]}, ${r[2]}, ${r[3]}, ${e})`:t}function q(t,e){const a=t.match(/^rgba\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)$/);if(a)return`rgba(${a[1]}, ${a[2]}, ${a[3]}, ${(parseFloat(a[4])*e).toFixed(2)})`;const r=t.match(/^rgb\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)$/);return r?`rgba(${r[1]}, ${r[2]}, ${r[3]}, ${e.toFixed(2)})`:t}function Ae(t,e,a){const r=Ie(t,e),o=_e[t][e?"dark":"light"],s=t==="mono",i=s?.14:1,c=s?q(r.primary,.14):r.primary,p=s?q(r.primary,.09):r.primary,b=s?q(r.secondary,.12):r.secondary,m=s?K(r.secondary,.06):K(r.secondary,.49),n=o.spikes.map(v=>s?{color1:q(v.color1,i),color2:q(v.color2,i*.7)}:v),l=s?"12px":"0.8px",f=s?"14px":"2px",w=s?"12px":"1.2px",d=s?"10px":"0.6px",g=s?"42px":"92px",H=s?"38px":"72px",O=s?"40px":"85px",z=s?"32px":"60px",X=s?"12px":"1px",$=s?"rgba(255, 255, 255, 0.5)":"rgba(255, 255, 255, 1)",W=s?"rgba(255, 255, 255, 0.45)":"rgba(255, 255, 255, 0.9)",y=s?"rgba(255, 255, 255, 0.25)":"rgba(255, 255, 255, 0.5)",x=s?"rgba(255, 255, 255, 0.15)":"rgba(255, 255, 255, 0.3)",Y=s?"rgba(255, 255, 255, 0.06)":"rgba(255, 255, 255, 0.12)",u=s?"rgba(255, 255, 255, 0.015)":"rgba(255, 255, 255, 0.03)";if(e)return`radial-gradient(ellipse calc(${l} * var(--beam-spike-${a})) calc(${g} * var(--beam-h-${a})) at 8% calc(100% - 2px), ${c}, ${p} 30%, transparent 88%),
8
- radial-gradient(ellipse calc(10px * var(--beam-spike2-${a})) calc(35px * var(--beam-h-${a})) at 22% calc(100% - 4px), ${b}, ${m} 50%, transparent 95%),
9
- radial-gradient(ellipse calc(${f} * (2 - var(--beam-spike-${a}))) calc(${H} * var(--beam-h-${a})) at 36% calc(100% - 3px), ${n[0].color1}, ${n[0].color2} 40%, transparent 90%),
10
- radial-gradient(ellipse calc(14px * var(--beam-spike2-${a})) calc(28px * var(--beam-h-${a})) at 50% calc(100% - 2px), ${n[1].color1}, ${n[1].color2} 55%, transparent 96%),
11
- radial-gradient(ellipse calc(${w} * (2 - var(--beam-spike2-${a}))) calc(${O} * var(--beam-h-${a})) at 64% calc(100% - 4px), ${n[2].color1}, ${n[2].color2} 35%, transparent 89%),
12
- radial-gradient(ellipse calc(7px * var(--beam-spike-${a})) calc(45px * var(--beam-h-${a})) at 78% calc(100% - 2px), ${n[3].color1}, ${n[3].color2} 48%, transparent 94%),
13
- radial-gradient(ellipse calc(${d} * (2 - var(--beam-spike-${a}))) calc(${z} * var(--beam-h-${a})) at 92% calc(100% - 3px), ${n[4].color1}, ${n[4].color2} 42%, transparent 91%),
14
- radial-gradient(ellipse calc(21px * var(--beam-spike-${a})) calc(15px * var(--beam-spike2-${a})) at calc(var(--beam-x-${a}) * 100%) calc(100% + 1px), ${$} 0%, ${W} 20%, ${y} 50%, transparent 100%),
15
- radial-gradient(ellipse calc(42px * var(--beam-w-${a})) calc(40px * var(--beam-h-${a})) at calc(var(--beam-x-${a}) * 100%) 100%, ${x} 0%, ${Y} 25%, ${u} 55%, transparent 80%)`;{const v=s?q(r.primary,.11):K(r.primary,.85),R=s?q(r.secondary,.09):K(r.secondary,.7);return`radial-gradient(ellipse calc(${l} * var(--beam-spike-${a})) calc(${g} * var(--beam-h-${a})) at 8% calc(100% - 2px), ${c}, ${v} 30%, transparent 88%),
16
- radial-gradient(ellipse calc(10px * var(--beam-spike2-${a})) calc(35px * var(--beam-h-${a})) at 22% calc(100% - 4px), ${b}, ${R} 50%, transparent 95%),
17
- radial-gradient(ellipse calc(${f} * (2 - var(--beam-spike-${a}))) calc(${H} * var(--beam-h-${a})) at 36% calc(100% - 3px), ${n[0].color1}, ${n[0].color2} 40%, transparent 90%),
18
- radial-gradient(ellipse calc(14px * var(--beam-spike2-${a})) calc(28px * var(--beam-h-${a})) at 50% calc(100% - 2px), ${n[1].color1}, ${n[1].color2} 55%, transparent 96%),
19
- radial-gradient(ellipse calc(${w} * (2 - var(--beam-spike2-${a}))) calc(${O} * var(--beam-h-${a})) at 64% calc(100% - 4px), ${n[2].color1}, ${n[2].color2} 35%, transparent 89%),
20
- radial-gradient(ellipse calc(7px * var(--beam-spike-${a})) calc(45px * var(--beam-h-${a})) at 78% calc(100% - 2px), ${n[3].color1}, ${n[3].color2} 48%, transparent 94%),
21
- radial-gradient(ellipse calc(${X} * (2 - var(--beam-spike-${a}))) calc(${z} * var(--beam-h-${a})) at 92% calc(100% - 3px), ${n[4].color1}, ${n[4].color2} 42%, transparent 91%),
22
- radial-gradient(ellipse calc(50px * var(--beam-w-${a})) calc(32px * var(--beam-h-${a})) at calc(var(--beam-x-${a}) * 100%) calc(100%), rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.18) 30%, rgba(0, 0, 0, 0.03) 60%, transparent 85%)`}}const we=[{region:1,quad:"tl"},{region:2,quad:"tl"},{region:3,quad:"bl"},{region:1,quad:"bl"},{region:2,quad:"br"},{region:3,quad:"br"},{region:1,quad:"tr"},{region:2,quad:"tr"},{region:3,quad:"tr"}],je=[[65,35],[55,30],[35,65],[15,30],[173,28],[80,22],[69,28],[22,38],[47,44]],Te=[{ci:0,region:1,quad:"tl",w:84,h:48},{ci:1,region:2,quad:"tl",w:72,h:42},{ci:2,region:3,quad:"bl",w:48,h:84},{ci:4,region:2,quad:"br",w:216,h:38},{ci:5,region:3,quad:"br",w:102,h:31},{ci:6,region:1,quad:"tr",w:89,h:38},{ci:8,region:3,quad:"tr",w:62,h:58}],he=[{ci:0,region:1,quad:"tl",w:80,h:19,x:"27%",y:"0%"},{ci:6,region:2,quad:"tr",w:74,h:11,x:"73%",y:"-1%"},{ci:7,region:3,quad:"tr",w:15,h:44,x:"100%",y:"33%"},{ci:8,region:1,quad:"br",w:19,h:38,x:"101%",y:"72%"},{ci:4,region:2,quad:"br",w:84,h:13,x:"67%",y:"100%"},{ci:1,region:3,quad:"bl",w:60,h:21,x:"24%",y:"101%"},{ci:2,region:1,quad:"bl",w:17,h:40,x:"0%",y:"60%"},{ci:3,region:2,quad:"tl",w:13,h:32,x:"-1%",y:"28%"}],Ne=[{ci:0,region:1,quad:"tl",w:110,h:30,x:"27%",y:"3%"},{ci:6,region:2,quad:"tr",w:100,h:20,x:"73%",y:"1%"},{ci:7,region:3,quad:"tr",w:26,h:62,x:"100%",y:"33%"},{ci:8,region:1,quad:"br",w:30,h:56,x:"101%",y:"72%"},{ci:4,region:2,quad:"br",w:120,h:22,x:"67%",y:"99%"},{ci:1,region:3,quad:"bl",w:88,h:32,x:"24%",y:"99%"},{ci:2,region:1,quad:"bl",w:28,h:58,x:"0%",y:"60%"}];function Ve(t,e,a){const r=t.match(/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);return`rgba(${r?`${r[1]}, ${r[2]}, ${r[3]}`:"255, 255, 255"}, var(--bop-${e}-${a}))`}function be(t,e,a,r,o,s,i,c){return`radial-gradient(ellipse calc(${e}px * var(--bw${r}-${c}) * var(--pulse-glow-sx, 1) * var(--pulse-glow-boost, 1)) calc(${a}px * var(--bh${r}-${c}) * var(--bgh-${c}) * var(--pulse-glow-sy, 1) * var(--pulse-glow-boost, 1)) at calc(${s} + var(--bx${r}-${c})) calc(${i} + var(--by${r}-${c})), ${Ve(t,o,c)}, transparent)`}function De(t,e){return C[t].border.map((a,r)=>{const{region:o,quad:s}=we[r],[i,c]=a.pos.split(" "),[p,b]=a.size.split(" ").map(parseFloat);return be(a.color,p,b,o,s,i,c,e)}).join(`,
23
- `)}function Ue(t,e,a){const o=C[t].border.map((b,m)=>{const{region:n,quad:l}=we[m],[f,w]=b.pos.split(" "),[d,g]=je[m];return be(b.color,d,g,n,l,f,w,e)}),s=a?"255, 255, 255":"0, 0, 0",i=a?.18:.08,p=[["0%","0%","tl"],["100%","0%","tr"],["0%","100%","bl"],["100%","100%","br"]].map(([b,m,n])=>`radial-gradient(ellipse 60px 60px at ${b} ${m}, rgba(${s}, calc(${i} * var(--bop-${n}-${e}))), transparent 70%)`);return[...o,...p].join(`,
24
- `)}function ze(t,e,a){const r=C[e].border;return t.map(o=>{const s=r[o.ci],[i,c]=s.pos.split(" ");return be(s.color,o.w,o.h,o.region,o.quad,o.x??i,o.y??c,a)}).join(`,
25
- `)}function We(t,e,a){const r=C[e].border,o=+a.toFixed(3);return t.map(s=>{const i=r[s.ci],[c,p]=i.pos.split(" "),b=s.x??c,m=s.y??p,n=i.color.match(/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/),l=n?`${n[1]}, ${n[2]}, ${n[3]}`:"255, 255, 255";return`radial-gradient(ellipse calc(${s.w}px * var(--pulse-glow-sx, 1) * var(--pulse-glow-boost, 1)) calc(${s.h}px * var(--pulse-glow-sy, 1) * var(--pulse-glow-boost, 1)) at ${b} ${m}, rgba(${l}, ${o}), transparent)`}).join(`,
26
- `)}function A(t){return`
27
- [data-beam="${t}"][data-paused],
28
- [data-beam="${t}"][data-paused]::after,
29
- [data-beam="${t}"][data-paused]::before,
30
- [data-beam="${t}"][data-paused] [data-beam-bloom] {
31
- animation-play-state: paused !important;
32
- }`}function He(t){const e=["bw1","bh1","bw2","bh2","bw3","bh3","bgh","bop-tl","bop-tr","bop-bl","bop-br"],a=["bx1","by1","bx2","by2","bx3","by3"],r=e.map(s=>`@property --${s}-${t} {
33
- syntax: "<number>";
34
- initial-value: 1;
35
- inherits: true;
36
- }`).join(`
37
-
38
- `),o=a.map(s=>`@property --${s}-${t} {
39
- syntax: "<length>";
40
- initial-value: 0px;
41
- inherits: true;
42
- }`).join(`
43
-
44
- `);return`${r}
45
-
46
- ${o}
47
-
48
- @property --beam-opacity-${t} {
49
- syntax: "<number>";
50
- initial-value: 0;
51
- inherits: true;
52
- }
53
-
54
- @property --beam-hue-${t} {
55
- syntax: "<angle>";
56
- initial-value: 0deg;
57
- inherits: true;
58
- }`}function pe(t,e,a){const r=e==="dark",o=a/2.3;return t==="pulse-inner"?{sp:.28,dr:r?33:40,op:r?.48:.45,gh:r?.34:.22,bs:(r?1.9:2.6)*o,ss:(r?2.6:4.6)*o,ghs:(r?2.4:5.5)*o,huePeriod:16}:{sp:r?.28:.36,dr:r?14:19,op:r?.46:0,gh:r?.16:.58,bs:(r?2.3:3.7)*o,ss:(r?6.4:4.6)*o,ghs:(r?2.4:3.8)*o,huePeriod:14}}function Ke(t,e){const{sp:a,dr:r,op:o,gh:s,bs:i,ss:c,ghs:p}=e;return[{prop:`--bw1-${t}`,a:1-a,b:1+a*1.1,period:c*.9,delay:0,unit:""},{prop:`--bh1-${t}`,a:1+a*.9,b:1-a*.85,period:c*1.26,delay:0,unit:""},{prop:`--bx1-${t}`,a:-r,b:r*.9,period:i*1.6,delay:0,unit:"px"},{prop:`--by1-${t}`,a:r*.55,b:-r*.7,period:i*1.6,delay:0,unit:"px"},{prop:`--bw2-${t}`,a:1+a,b:1-a*.85,period:c*1.1,delay:0,unit:""},{prop:`--bh2-${t}`,a:1-a*.8,b:1+a*1.05,period:c*.81,delay:0,unit:""},{prop:`--bx2-${t}`,a:r*.8,b:-r*.9,period:i*1.88,delay:0,unit:"px"},{prop:`--by2-${t}`,a:-r,b:r*.65,period:i*1.88,delay:0,unit:"px"},{prop:`--bw3-${t}`,a:1-a*.6,b:1+a*1.15,period:c*.98,delay:0,unit:""},{prop:`--bh3-${t}`,a:1+a*.75,b:1-a,period:c*1.4,delay:0,unit:""},{prop:`--bx3-${t}`,a:-r*.6,b:r,period:i*1.45,delay:0,unit:"px"},{prop:`--by3-${t}`,a:-r*.85,b:r*.45,period:i*1.45,delay:0,unit:"px"},{prop:`--bgh-${t}`,a:1-s,b:1+s,period:p,delay:0,unit:""},{prop:`--bop-tl-${t}`,a:1-o,b:1,period:i,delay:0,unit:""},{prop:`--bop-tr-${t}`,a:1-o,b:1,period:i*1.32,delay:i*.28,unit:""},{prop:`--bop-bl-${t}`,a:1-o,b:1,period:i*.84,delay:i*.55,unit:""},{prop:`--bop-br-${t}`,a:1-o,b:1,period:i*1.58,delay:i*.83,unit:""}]}function Qe(t,e,a,r,o,s){if(t!=="pulse-inner"&&t!=="pulse-outside")return null;const i=pe(t,e,a);return{oscillators:Ke(s,i),hue:o?null:{prop:`--beam-hue-${s}`,range:360,period:i.huePeriod,continuous:!0}}}function Z(t,e,a){return` animation: ${e}-${t} ${a}s ease forwards;`}function Ze(t){const{size:e}=t;return e==="line"?ta(t):e==="sm"?Je(t):e==="pulse-inner"?aa(t):e==="pulse-outside"?ra(t):ea(t)}function Je(t){const{id:e,borderRadius:a,borderWidth:r,duration:o,strokeOpacity:s,innerOpacity:i,bloomOpacity:c,innerShadow:p,colorVariant:b,staticColors:m,brightness:n,saturation:l,hueRange:f,theme:w}=t,d=Math.max(0,a-r),g=b==="mono"?.5:1,H=s*g,O=i*g,z=c*g,X=m?"":`animation: beam-hue-shift-${e} 12s ease-in-out infinite;`,$=m?"":`
59
- @keyframes beam-hue-shift-${e} {
60
- 0% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${f}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
61
- 50% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + ${f}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
62
- 100% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${f}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
63
- }`,W=w==="dark",y=W?`conic-gradient(
64
- from var(--beam-angle-${e}),
65
- transparent 0%, transparent 54%,
66
- rgba(255, 255, 255, 0.1) 57%,
67
- rgba(255, 255, 255, 0.3) 60%,
68
- rgba(255, 255, 255, 0.6) 63%,
69
- rgba(255, 255, 255, 0.75) 66%,
70
- rgba(255, 255, 255, 0.6) 69%,
71
- rgba(255, 255, 255, 0.3) 72%,
72
- rgba(255, 255, 255, 0.1) 75%,
73
- transparent 78%, transparent 100%
74
- )`:`conic-gradient(
75
- from var(--beam-angle-${e}),
76
- transparent 0%, transparent 54%,
77
- rgba(0, 0, 0, 0.08) 57%,
78
- rgba(0, 0, 0, 0.2) 60%,
79
- rgba(0, 0, 0, 0.4) 63%,
80
- rgba(0, 0, 0, 0.55) 66%,
81
- rgba(0, 0, 0, 0.4) 69%,
82
- rgba(0, 0, 0, 0.2) 72%,
83
- rgba(0, 0, 0, 0.08) 75%,
84
- transparent 78%, transparent 100%
85
- )`,x=Me(b),Y=qe(b),u=W?`conic-gradient(
86
- from var(--beam-angle-${e}),
87
- transparent 0%, transparent 58%,
88
- rgba(255, 255, 255, 0.03) 62%,
89
- rgba(255, 255, 255, 0.08) 65%,
90
- rgba(255, 255, 255, 0.2) 67%,
91
- rgba(255, 255, 255, 0.45) 69%,
92
- rgba(255, 255, 255, 0.85) 70%,
93
- rgba(255, 255, 255, 0.85) 70.5%,
94
- rgba(255, 255, 255, 0.45) 71.5%,
95
- rgba(255, 255, 255, 0.2) 73%,
96
- rgba(255, 255, 255, 0.08) 75%,
97
- rgba(255, 255, 255, 0.03) 78%,
98
- transparent 82%
99
- )`:`conic-gradient(
100
- from var(--beam-angle-${e}),
101
- transparent 0%, transparent 58%,
102
- rgba(0, 0, 0, 0.02) 62%,
103
- rgba(0, 0, 0, 0.08) 65%,
104
- rgba(0, 0, 0, 0.2) 67%,
105
- rgba(0, 0, 0, 0.4) 69%,
106
- rgba(0, 0, 0, 0.6) 70%,
107
- rgba(0, 0, 0, 0.6) 70.5%,
108
- rgba(0, 0, 0, 0.4) 71.5%,
109
- rgba(0, 0, 0, 0.2) 73%,
110
- rgba(0, 0, 0, 0.08) 75%,
111
- rgba(0, 0, 0, 0.02) 78%,
112
- transparent 82%
113
- )`,v=`conic-gradient(
114
- from var(--beam-angle-${e}),
115
- transparent 0%, transparent 22%,
116
- rgba(255, 255, 255, 0.12) 28%, rgba(255, 255, 255, 0.4) 36%,
117
- white 46%, white 82%,
118
- rgba(255, 255, 255, 0.4) 88%, rgba(255, 255, 255, 0.12) 94%,
119
- transparent 97%, transparent 100%
120
- )`;return`
121
- @property --beam-angle-${e} {
122
- syntax: "<angle>";
123
- initial-value: 0deg;
124
- inherits: true;
125
- }
126
-
127
- @property --beam-opacity-${e} {
128
- syntax: "<number>";
129
- initial-value: 0;
130
- inherits: true;
131
- }
132
-
133
- [data-beam="${e}"] {
134
- position: relative;
135
- border-radius: ${a}px;
136
- overflow: hidden;
137
- }
138
-
139
- [data-beam="${e}"][data-active] {
140
- animation:
141
- beam-spin-${e} ${o}s linear infinite,
142
- beam-fade-in-${e} 0.6s ease forwards;
143
- }
144
-
145
- [data-beam="${e}"][data-fading] {
146
- animation:
147
- beam-spin-${e} ${o}s linear infinite,
148
- beam-fade-out-${e} 0.5s ease forwards;
149
- }
150
-
151
- [data-beam="${e}"][data-active]::after,
152
- [data-beam="${e}"][data-fading]::after {
153
- content: "";
154
- position: absolute;
155
- inset: 0;
156
- border-radius: ${d}px;
157
- padding: ${r}px;
158
- clip-path: inset(0 round ${a}px);
159
- background: ${y},${x};
160
- -webkit-mask:
161
- conic-gradient(
162
- from var(--beam-angle-${e}),
163
- transparent 0%, transparent 30%,
164
- rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.35) 44%,
165
- white 52%, white 80%,
166
- rgba(255, 255, 255, 0.35) 86%, rgba(255, 255, 255, 0.1) 92%,
167
- transparent 95%, transparent 100%
168
- ),
169
- linear-gradient(#fff 0 0) content-box,
170
- linear-gradient(#fff 0 0);
171
- -webkit-mask-composite: source-in, xor;
172
- mask:
173
- conic-gradient(
174
- from var(--beam-angle-${e}),
175
- transparent 0%, transparent 30%,
176
- rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.35) 44%,
177
- white 52%, white 80%,
178
- rgba(255, 255, 255, 0.35) 86%, rgba(255, 255, 255, 0.1) 92%,
179
- transparent 95%, transparent 100%
180
- ),
181
- linear-gradient(#fff 0 0) content-box,
182
- linear-gradient(#fff 0 0);
183
- mask-composite: intersect, exclude;
184
- pointer-events: none;
185
- z-index: 2;
186
- opacity: calc(var(--beam-opacity-${e}) * ${H.toFixed(2)} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
187
- ${X}
188
- }
189
-
190
- [data-beam="${e}"][data-active]::before,
191
- [data-beam="${e}"][data-fading]::before {
192
- content: "";
193
- position: absolute;
194
- inset: 0;
195
- border-radius: ${a}px;
196
- clip-path: inset(0 round ${a}px);
197
- background: ${Y};
198
- box-shadow: inset 0 0 5px 1px ${p};
199
- -webkit-mask-image: ${v};
200
- -webkit-mask-composite: source-over;
201
- mask-image: ${v};
202
- mask-composite: add;
203
- pointer-events: none;
204
- z-index: 1;
205
- opacity: calc(var(--beam-opacity-${e}) * ${O.toFixed(2)} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
206
- ${X}
207
- }
208
-
209
- [data-beam="${e}"] [data-beam-bloom] {
210
- display: none;
211
- position: absolute;
212
- inset: 0;
213
- border-radius: ${d}px;
214
- clip-path: inset(0 round ${a}px);
215
- background: ${u};
216
- -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
217
- -webkit-mask-composite: xor;
218
- mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
219
- mask-composite: exclude;
220
- padding: ${r}px;
221
- filter: blur(8px) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)});
222
- pointer-events: none;
223
- z-index: 3;
224
- opacity: 0;
225
- }
226
-
227
- [data-beam="${e}"][data-active] [data-beam-bloom],
228
- [data-beam="${e}"][data-fading] [data-beam-bloom] {
229
- display: block;
230
- opacity: calc(var(--beam-opacity-${e}) * ${z.toFixed(2)} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
231
- }
232
-
233
- @keyframes beam-spin-${e} {
234
- to { --beam-angle-${e}: 360deg; }
235
- }
236
-
237
- @keyframes beam-fade-in-${e} {
238
- to { --beam-opacity-${e}: 1; }
239
- }
240
-
241
- @keyframes beam-fade-out-${e} {
242
- from { --beam-opacity-${e}: 1; }
243
- to { --beam-opacity-${e}: 0; }
244
- }
245
- ${$}
246
- ${A(e)}
247
- `}function ea(t){const{id:e,borderRadius:a,borderWidth:r,duration:o,strokeOpacity:s,innerOpacity:i,bloomOpacity:c,innerShadow:p,colorVariant:b,staticColors:m,brightness:n,saturation:l,hueRange:f,theme:w}=t,d=Math.max(0,a-r),g=b==="mono"?.5:1,H=s*g,O=i*g,z=c*g,X=m?"":`animation: beam-hue-shift-${e} 12s ease-in-out infinite;`,$=m?"":`
248
- @keyframes beam-hue-shift-${e} {
249
- 0% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${f}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
250
- 50% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + ${f}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
251
- 100% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${f}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
252
- }`,W=w==="dark",y=W?`conic-gradient(
253
- from var(--beam-angle-${e}),
254
- transparent 0%, transparent 54%,
255
- rgba(255, 255, 255, 0.1) 57%,
256
- rgba(255, 255, 255, 0.3) 60%,
257
- rgba(255, 255, 255, 0.6) 63%,
258
- rgba(255, 255, 255, 0.75) 66%,
259
- rgba(255, 255, 255, 0.6) 69%,
260
- rgba(255, 255, 255, 0.3) 72%,
261
- rgba(255, 255, 255, 0.1) 75%,
262
- transparent 78%, transparent 100%
263
- )`:`conic-gradient(
264
- from var(--beam-angle-${e}),
265
- transparent 0%, transparent 54%,
266
- rgba(0, 0, 0, 0.08) 57%,
267
- rgba(0, 0, 0, 0.2) 60%,
268
- rgba(0, 0, 0, 0.4) 63%,
269
- rgba(0, 0, 0, 0.55) 66%,
270
- rgba(0, 0, 0, 0.4) 69%,
271
- rgba(0, 0, 0, 0.2) 72%,
272
- rgba(0, 0, 0, 0.08) 75%,
273
- transparent 78%, transparent 100%
274
- )`,x=Ce(b),Y=Ge(b),u=W?`conic-gradient(
275
- from var(--beam-angle-${e}),
276
- transparent 0%, transparent 58%,
277
- rgba(255, 255, 255, 0.03) 62%,
278
- rgba(255, 255, 255, 0.08) 65%,
279
- rgba(255, 255, 255, 0.2) 67%,
280
- rgba(255, 255, 255, 0.45) 69%,
281
- rgba(255, 255, 255, 0.85) 70%,
282
- rgba(255, 255, 255, 0.85) 70.5%,
283
- rgba(255, 255, 255, 0.45) 71.5%,
284
- rgba(255, 255, 255, 0.2) 73%,
285
- rgba(255, 255, 255, 0.08) 75%,
286
- rgba(255, 255, 255, 0.03) 78%,
287
- transparent 82%
288
- )`:`conic-gradient(
289
- from var(--beam-angle-${e}),
290
- transparent 0%, transparent 58%,
291
- rgba(0, 0, 0, 0.02) 62%,
292
- rgba(0, 0, 0, 0.08) 65%,
293
- rgba(0, 0, 0, 0.2) 67%,
294
- rgba(0, 0, 0, 0.4) 69%,
295
- rgba(0, 0, 0, 0.6) 70%,
296
- rgba(0, 0, 0, 0.6) 70.5%,
297
- rgba(0, 0, 0, 0.4) 71.5%,
298
- rgba(0, 0, 0, 0.2) 73%,
299
- rgba(0, 0, 0, 0.08) 75%,
300
- rgba(0, 0, 0, 0.02) 78%,
301
- transparent 82%
302
- )`;return`
303
- @property --beam-angle-${e} {
304
- syntax: "<angle>";
305
- initial-value: 0deg;
306
- inherits: true;
307
- }
308
-
309
- @property --beam-opacity-${e} {
310
- syntax: "<number>";
311
- initial-value: 0;
312
- inherits: true;
313
- }
314
-
315
- [data-beam="${e}"] {
316
- position: relative;
317
- border-radius: ${a}px;
318
- overflow: hidden;
319
- }
320
-
321
- [data-beam="${e}"][data-active] {
322
- animation:
323
- beam-spin-${e} ${o}s linear infinite,
324
- beam-fade-in-${e} 0.6s ease forwards;
325
- }
326
-
327
- [data-beam="${e}"][data-fading] {
328
- animation:
329
- beam-spin-${e} ${o}s linear infinite,
330
- beam-fade-out-${e} 0.5s ease forwards;
331
- }
332
-
333
- [data-beam="${e}"][data-active]::after,
334
- [data-beam="${e}"][data-fading]::after {
335
- content: "";
336
- position: absolute;
337
- inset: 0;
338
- border-radius: ${d}px;
339
- padding: ${r}px;
340
- clip-path: inset(0 round ${a}px);
341
- background: ${y},${x};
342
- -webkit-mask:
343
- conic-gradient(
344
- from var(--beam-angle-${e}),
345
- transparent 0%, transparent 30%,
346
- rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.35) 44%,
347
- white 52%, white 80%,
348
- rgba(255, 255, 255, 0.35) 86%, rgba(255, 255, 255, 0.1) 92%,
349
- transparent 95%, transparent 100%
350
- ),
351
- linear-gradient(#fff 0 0) content-box,
352
- linear-gradient(#fff 0 0);
353
- -webkit-mask-composite: source-in, xor;
354
- mask:
355
- conic-gradient(
356
- from var(--beam-angle-${e}),
357
- transparent 0%, transparent 30%,
358
- rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.35) 44%,
359
- white 52%, white 80%,
360
- rgba(255, 255, 255, 0.35) 86%, rgba(255, 255, 255, 0.1) 92%,
361
- transparent 95%, transparent 100%
362
- ),
363
- linear-gradient(#fff 0 0) content-box,
364
- linear-gradient(#fff 0 0);
365
- mask-composite: intersect, exclude;
366
- pointer-events: none;
367
- z-index: 2;
368
- opacity: calc(var(--beam-opacity-${e}) * ${H.toFixed(2)} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
369
- ${X}
370
- }
371
-
372
- [data-beam="${e}"][data-active]::before,
373
- [data-beam="${e}"][data-fading]::before {
374
- content: "";
375
- position: absolute;
376
- inset: 0;
377
- border-radius: ${a}px;
378
- background: ${Y};
379
- box-shadow: inset 0 0 9px 1px ${p};
380
- -webkit-mask-image:
381
- conic-gradient(
382
- from var(--beam-angle-${e}),
383
- transparent 0%, transparent 30%,
384
- rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.35) 44%,
385
- white 52%, white 80%,
386
- rgba(255, 255, 255, 0.35) 86%, rgba(255, 255, 255, 0.1) 92%,
387
- transparent 95%, transparent 100%
388
- ),
389
- linear-gradient(white, transparent 28px, transparent calc(100% - 28px), white),
390
- linear-gradient(to right, white, transparent 28px, transparent calc(100% - 28px), white);
391
- -webkit-mask-composite: source-in, source-over;
392
- mask-image:
393
- conic-gradient(
394
- from var(--beam-angle-${e}),
395
- transparent 0%, transparent 30%,
396
- rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.35) 44%,
397
- white 52%, white 80%,
398
- rgba(255, 255, 255, 0.35) 86%, rgba(255, 255, 255, 0.1) 92%,
399
- transparent 95%, transparent 100%
400
- ),
401
- linear-gradient(white, transparent 28px, transparent calc(100% - 28px), white),
402
- linear-gradient(to right, white, transparent 28px, transparent calc(100% - 28px), white);
403
- mask-composite: intersect, add;
404
- pointer-events: none;
405
- z-index: 1;
406
- opacity: calc(var(--beam-opacity-${e}) * ${O.toFixed(2)} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
407
- clip-path: inset(0 round ${a}px);
408
- ${X}
409
- }
410
-
411
- [data-beam="${e}"] [data-beam-bloom] {
412
- display: none;
413
- position: absolute;
414
- inset: 0;
415
- border-radius: ${d}px;
416
- clip-path: inset(0 round ${a}px);
417
- background: ${u};
418
- -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
419
- -webkit-mask-composite: xor;
420
- mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
421
- mask-composite: exclude;
422
- padding: ${r}px;
423
- filter: blur(8px) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)});
424
- pointer-events: none;
425
- z-index: 3;
426
- opacity: 0;
427
- }
428
-
429
- [data-beam="${e}"][data-active] [data-beam-bloom],
430
- [data-beam="${e}"][data-fading] [data-beam-bloom] {
431
- display: block;
432
- opacity: calc(var(--beam-opacity-${e}) * ${z.toFixed(2)} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
433
- }
434
-
435
- @keyframes beam-spin-${e} {
436
- to { --beam-angle-${e}: 360deg; }
437
- }
438
-
439
- @keyframes beam-fade-in-${e} {
440
- to { --beam-opacity-${e}: 1; }
441
- }
442
-
443
- @keyframes beam-fade-out-${e} {
444
- from { --beam-opacity-${e}: 1; }
445
- to { --beam-opacity-${e}: 0; }
446
- }
447
- ${$}
448
- ${A(e)}
449
- `}function aa(t){const{id:e,borderRadius:a,borderWidth:r,duration:o,strokeOpacity:s,innerOpacity:i,bloomOpacity:c,colorVariant:p,staticColors:b,brightness:m,saturation:n,hueRange:l,theme:f}=t,w=f==="dark",d=p==="mono"?.5:1,g=(s*d).toFixed(2),H=(i*d).toFixed(2),O=(c*d).toFixed(2),{op:z}=pe("pulse-inner",f,o),X=8,$=m.toFixed(2),W=n.toFixed(2),y=b?`filter: brightness(${$}) saturate(${W});`:`filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) brightness(${$}) saturate(${W});`,x=b?`filter: blur(${X}px) brightness(${$}) saturate(${W});`:`filter: blur(${X}px) hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) brightness(${$}) saturate(${W});`,Y=De(p,e),u=Ue(p,e,w),v=We(Te,p,1-z*.5);return`
450
- ${He(e)}
451
-
452
- [data-beam="${e}"] {
453
- position: relative;
454
- border-radius: ${a}px;
455
- overflow: hidden;
456
- isolation: isolate;
457
- }
458
-
459
- [data-beam="${e}"][data-active] {
460
- ${Z(e,"beam-fade-in",.6)}
461
- }
462
-
463
- [data-beam="${e}"][data-fading] {
464
- ${Z(e,"beam-fade-out",.5)}
465
- }
466
-
467
- [data-beam="${e}"][data-active]::after,
468
- [data-beam="${e}"][data-fading]::after {
469
- content: "";
470
- position: absolute;
471
- inset: 0;
472
- border-radius: ${a}px;
473
- padding: ${r}px;
474
- clip-path: inset(0 round ${a}px);
475
- background: ${Y};
476
- -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
477
- -webkit-mask-composite: xor;
478
- mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
479
- mask-composite: exclude;
480
- pointer-events: none;
481
- z-index: 2;
482
- will-change: opacity, filter;
483
- opacity: calc(var(--beam-opacity-${e}) * ${g} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
484
- ${y}
485
- }
486
-
487
- [data-beam="${e}"][data-active]::before,
488
- [data-beam="${e}"][data-fading]::before {
489
- content: "";
490
- position: absolute;
491
- inset: 0;
492
- border-radius: ${a}px;
493
- clip-path: inset(0 round ${a}px);
494
- background: ${u};
495
- -webkit-mask-image:
496
- linear-gradient(white, transparent 28px, transparent calc(100% - 28px), white),
497
- linear-gradient(to right, white, transparent 28px, transparent calc(100% - 28px), white);
498
- -webkit-mask-composite: source-over;
499
- mask-image:
500
- linear-gradient(white, transparent 28px, transparent calc(100% - 28px), white),
501
- linear-gradient(to right, white, transparent 28px, transparent calc(100% - 28px), white);
502
- mask-composite: add;
503
- pointer-events: none;
504
- z-index: 1;
505
- will-change: opacity, filter;
506
- opacity: calc(var(--beam-opacity-${e}) * ${H} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
507
- ${y}
508
- }
509
-
510
- [data-beam="${e}"] [data-beam-bloom] {
511
- display: none;
512
- position: absolute;
513
- inset: 0;
514
- border-radius: ${a}px;
515
- clip-path: inset(0 round ${a}px);
516
- background: ${v};
517
- -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
518
- -webkit-mask-composite: xor;
519
- mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
520
- mask-composite: exclude;
521
- padding: ${r}px;
522
- pointer-events: none;
523
- z-index: 3;
524
- will-change: opacity;
525
- opacity: 0;
526
- }
527
-
528
- [data-beam="${e}"][data-active] [data-beam-bloom],
529
- [data-beam="${e}"][data-fading] [data-beam-bloom] {
530
- display: block;
531
- opacity: calc(var(--beam-opacity-${e}) * ${O} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
532
- ${x}
533
- }
534
-
535
- @keyframes beam-fade-in-${e} { to { --beam-opacity-${e}: 1; } }
536
- @keyframes beam-fade-out-${e} { from { --beam-opacity-${e}: 1; } to { --beam-opacity-${e}: 0; } }
537
- ${A(e)}
538
-
539
- @media (prefers-reduced-motion: reduce) {
540
- [data-beam="${e}"][data-active],
541
- [data-beam="${e}"][data-fading],
542
- [data-beam="${e}"][data-active]::after,
543
- [data-beam="${e}"][data-fading]::after,
544
- [data-beam="${e}"][data-active]::before,
545
- [data-beam="${e}"][data-fading]::before,
546
- [data-beam="${e}"][data-active] [data-beam-bloom],
547
- [data-beam="${e}"][data-fading] [data-beam-bloom] {
548
- animation: none !important;
549
- }
550
- }
551
- `}function ra(t){const{id:e,borderRadius:a,duration:r,strokeOpacity:o,innerOpacity:s,bloomOpacity:i,colorVariant:c,staticColors:p,brightness:b,saturation:m,hueRange:n,theme:l,hairlineOpacity:f=0}=t,w=l==="dark",d=c==="mono"?.5:1,g=(o*d).toFixed(2),H=(s*d).toFixed(2),O=(i*d).toFixed(2),z=w?"70, 70, 70":"0, 0, 0",X=f.toFixed(2),$=`linear-gradient(rgba(${z}, ${X}), rgba(${z}, ${X}))`,{op:W}=pe("pulse-outside",l,r),y=.95,x=.9,Y=w?3:6,u=w?22.5:15,v=b.toFixed(2),R=m.toFixed(2),ee=p?`filter: brightness(${v}) saturate(${R});`:`filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) brightness(${v}) saturate(${R});`,G=`brightness(var(--beam-glow-brightness, ${v})) saturate(var(--beam-glow-saturate, ${R}))`,ae=p?`filter: blur(var(--beam-core-blur, ${Y}px)) ${G};`:`filter: blur(var(--beam-core-blur, ${Y}px)) hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) ${G};`,j=p?`filter: blur(var(--beam-bloom-blur, ${u}px)) ${G};`:`filter: blur(var(--beam-bloom-blur, ${u}px)) hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) ${G};`,L=ze(he,c,e),re=ze(he,c,e),M=We(Ne,c,1-W*.5),S=f>0?`${L},
552
- ${$}`:L;return`
553
- ${He(e)}
554
-
555
- [data-beam="${e}"] {
556
- position: relative;
557
- border-radius: ${a}px;
558
- overflow: visible;
559
- isolation: isolate;
560
- }
561
-
562
- [data-beam="${e}"][data-active] {
563
- ${Z(e,"beam-fade-in",.6)}
564
- }
565
-
566
- [data-beam="${e}"][data-fading] {
567
- ${Z(e,"beam-fade-out",.5)}
568
- }
569
- ${f>0?`
570
- /* Idle hairline — painted above the (opaque) child in the inner 1px edge ring so
571
- it overlaps a standard inset component border exactly. */
572
- [data-beam="${e}"]::after {
573
- content: "";
574
- position: absolute;
575
- inset: 0;
576
- border-radius: ${a}px;
577
- padding: 1px;
578
- clip-path: inset(0 round ${a}px);
579
- background: ${$};
580
- -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
581
- -webkit-mask-composite: xor;
582
- mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
583
- mask-composite: exclude;
584
- pointer-events: none;
585
- z-index: 2;
586
- }
587
- `:""}
588
- [data-beam="${e}"][data-active]::after,
589
- [data-beam="${e}"][data-fading]::after {
590
- content: "";
591
- position: absolute;
592
- inset: 0;
593
- border-radius: ${a}px;
594
- padding: 1px;
595
- clip-path: inset(0 round ${a}px);
596
- background: ${S};
597
- -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
598
- -webkit-mask-composite: xor;
599
- mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
600
- mask-composite: exclude;
601
- pointer-events: none;
602
- z-index: 2;
603
- will-change: opacity, filter;
604
- opacity: calc(var(--beam-opacity-${e}) * ${g} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
605
- ${ee}
606
- }
607
-
608
- [data-beam="${e}"][data-active]::before,
609
- [data-beam="${e}"][data-fading]::before {
610
- content: "";
611
- position: absolute;
612
- inset: -10px;
613
- z-index: -1;
614
- border-radius: ${a+10}px;
615
- background: ${re};
616
- transform: scale(${y}, ${x});
617
- pointer-events: none;
618
- will-change: opacity, filter;
619
- opacity: calc(var(--beam-opacity-${e}) * ${H} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
620
- ${ae}
621
- }
622
-
623
- [data-beam="${e}"] [data-beam-bloom] {
624
- display: none;
625
- position: absolute;
626
- inset: -30px;
627
- z-index: -1;
628
- border-radius: ${a+30}px;
629
- background: ${M};
630
- transform: scale(${y}, ${x});
631
- pointer-events: none;
632
- will-change: transform;
633
- opacity: 0;
634
- }
635
-
636
- [data-beam="${e}"][data-active] [data-beam-bloom],
637
- [data-beam="${e}"][data-fading] [data-beam-bloom] {
638
- display: block;
639
- opacity: calc(var(--beam-opacity-${e}) * ${O} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
640
- ${j}
641
- }
642
-
643
- @keyframes beam-fade-in-${e} { to { --beam-opacity-${e}: 1; } }
644
- @keyframes beam-fade-out-${e} { from { --beam-opacity-${e}: 1; } to { --beam-opacity-${e}: 0; } }
645
- ${A(e)}
646
-
647
- @media (prefers-reduced-motion: reduce) {
648
- [data-beam="${e}"][data-active],
649
- [data-beam="${e}"][data-fading],
650
- [data-beam="${e}"][data-active]::after,
651
- [data-beam="${e}"][data-fading]::after,
652
- [data-beam="${e}"][data-active]::before,
653
- [data-beam="${e}"][data-fading]::before,
654
- [data-beam="${e}"][data-active] [data-beam-bloom],
655
- [data-beam="${e}"][data-fading] [data-beam-bloom] {
656
- animation: none !important;
657
- }
658
- }
659
- `}function ta(t){const{id:e,borderRadius:a,borderWidth:r,duration:o,strokeOpacity:s,innerOpacity:i,bloomOpacity:c,innerShadow:p,colorVariant:b,staticColors:m,brightness:n,saturation:l,hueRange:f,theme:w}=t,d=Math.max(0,a-r),g=w==="dark",H=s,O=i,z=c,X=m?"":`animation: beam-hue-shift-${e} 12s ease-in-out infinite;`,$=m?"":`animation: beam-hue-shift-bloom-${e} 8s ease-in-out infinite;`,W=m?"":`
660
- @keyframes beam-hue-shift-${e} {
661
- 0% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${f}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
662
- 50% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + ${f}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
663
- 100% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${f}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
664
- }
665
-
666
- @keyframes beam-hue-shift-bloom-${e} {
667
- 0% { filter: blur(8px) hue-rotate(calc(var(--beam-hue-base, 0deg) - ${f+10}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
668
- 50% { filter: blur(8px) hue-rotate(calc(var(--beam-hue-base, 0deg) + ${f+10}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
669
- 100% { filter: blur(8px) hue-rotate(calc(var(--beam-hue-base, 0deg) - ${f+10}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
670
- }`,y=g?`radial-gradient(
671
- ellipse calc(24px * var(--beam-w-${e})) calc(28px * var(--beam-h-${e})) at calc(var(--beam-x-${e}) * 100%) calc(100% + 2px),
672
- rgba(255, 255, 255, 0.38) 0%,
673
- rgba(255, 255, 255, 0.12) 30%,
674
- transparent 65%
675
- )`:`radial-gradient(
676
- ellipse calc(35px * var(--beam-w-${e})) calc(28px * var(--beam-h-${e})) at calc(var(--beam-x-${e}) * 100%) calc(100% + 2px),
677
- rgba(0, 0, 0, 0.6) 0%,
678
- rgba(0, 0, 0, 0.25) 35%,
679
- transparent 70%
680
- )`,x=Be(b,g,e),Y=Le(b,e),u=Ae(b,g,e),v=b==="mono"?"filter: blur(6px);":"";return`
681
- @property --beam-x-${e} {
682
- syntax: "<number>";
683
- initial-value: 0;
684
- inherits: true;
685
- }
686
-
687
- @property --beam-w-${e} {
688
- syntax: "<number>";
689
- initial-value: 1;
690
- inherits: true;
691
- }
692
-
693
- @property --beam-h-${e} {
694
- syntax: "<number>";
695
- initial-value: 1;
696
- inherits: true;
697
- }
698
-
699
- @property --beam-spike-${e} {
700
- syntax: "<number>";
701
- initial-value: 1;
702
- inherits: true;
703
- }
704
-
705
- @property --beam-spike2-${e} {
706
- syntax: "<number>";
707
- initial-value: 1;
708
- inherits: true;
709
- }
710
-
711
- @property --beam-edge-${e} {
712
- syntax: "<number>";
713
- initial-value: 1;
714
- inherits: true;
715
- }
716
-
717
- @property --beam-opacity-${e} {
718
- syntax: "<number>";
719
- initial-value: 0;
720
- inherits: true;
721
- }
722
-
723
- [data-beam="${e}"] {
724
- position: relative;
725
- border-radius: ${a}px;
726
- overflow: hidden;
727
- }
728
-
729
- [data-beam="${e}"][data-active] {
730
- animation:
731
- beam-travel-${e} ${o}s linear infinite,
732
- beam-edge-fade-${e} ${o}s linear infinite,
733
- beam-breathe-${e} ${(o*1.3).toFixed(1)}s ease-in-out infinite,
734
- beam-spike-${e} ${(o*1.33).toFixed(1)}s ease-in-out infinite,
735
- beam-spike2-${e} ${(o*1.7).toFixed(1)}s ease-in-out infinite,
736
- beam-fade-in-${e} 0.6s ease forwards;
737
- }
738
-
739
- [data-beam="${e}"][data-fading] {
740
- animation:
741
- beam-travel-${e} ${o}s linear infinite,
742
- beam-edge-fade-${e} ${o}s linear infinite,
743
- beam-breathe-${e} ${(o*1.3).toFixed(1)}s ease-in-out infinite,
744
- beam-spike-${e} ${(o*1.33).toFixed(1)}s ease-in-out infinite,
745
- beam-spike2-${e} ${(o*1.7).toFixed(1)}s ease-in-out infinite,
746
- beam-fade-out-${e} 0.5s ease forwards;
747
- }
748
-
749
- [data-beam="${e}"][data-active]::after,
750
- [data-beam="${e}"][data-fading]::after {
751
- content: "";
752
- position: absolute;
753
- inset: 0;
754
- border-radius: ${d}px;
755
- padding: ${r}px;
756
- clip-path: inset(0 round ${a}px);
757
- background: ${y}, ${x};
758
- -webkit-mask:
759
- radial-gradient(
760
- ellipse calc(78px * var(--beam-w-${e})) calc(60px * var(--beam-h-${e})) at calc(var(--beam-x-${e}) * 100%) 100%,
761
- white 0%, rgba(255, 255, 255, 0.5) 45%, transparent 100%
762
- ),
763
- linear-gradient(#fff 0 0) content-box,
764
- linear-gradient(#fff 0 0);
765
- -webkit-mask-composite: source-in, xor;
766
- mask:
767
- radial-gradient(
768
- ellipse calc(78px * var(--beam-w-${e})) calc(60px * var(--beam-h-${e})) at calc(var(--beam-x-${e}) * 100%) 100%,
769
- white 0%, rgba(255, 255, 255, 0.5) 45%, transparent 100%
770
- ),
771
- linear-gradient(#fff 0 0) content-box,
772
- linear-gradient(#fff 0 0);
773
- mask-composite: intersect, exclude;
774
- pointer-events: none;
775
- z-index: 2;
776
- opacity: calc(var(--beam-opacity-${e}) * var(--beam-edge-${e}) * ${H.toFixed(2)} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
777
- ${X}
778
- }
779
-
780
- [data-beam="${e}"][data-active]::before,
781
- [data-beam="${e}"][data-fading]::before {
782
- content: "";
783
- position: absolute;
784
- inset: 0;
785
- border-radius: ${a}px;
786
- background: ${Y};
787
- box-shadow: inset 0 0 9px 1px ${p};
788
- -webkit-mask-image:
789
- radial-gradient(
790
- ellipse calc(78px * var(--beam-w-${e})) calc(60px * var(--beam-h-${e})) at calc(var(--beam-x-${e}) * 100%) 100%,
791
- white 0%, rgba(255, 255, 255, 0.5) 45%, transparent 100%
792
- ),
793
- linear-gradient(white, transparent 28px, transparent calc(100% - 28px), white),
794
- linear-gradient(to right, white, transparent 28px, transparent calc(100% - 28px), white);
795
- -webkit-mask-composite: source-in, source-over;
796
- mask-image:
797
- radial-gradient(
798
- ellipse calc(78px * var(--beam-w-${e})) calc(60px * var(--beam-h-${e})) at calc(var(--beam-x-${e}) * 100%) 100%,
799
- white 0%, rgba(255, 255, 255, 0.5) 45%, transparent 100%
800
- ),
801
- linear-gradient(white, transparent 28px, transparent calc(100% - 28px), white),
802
- linear-gradient(to right, white, transparent 28px, transparent calc(100% - 28px), white);
803
- mask-composite: intersect, add;
804
- pointer-events: none;
805
- z-index: 1;
806
- opacity: calc(var(--beam-opacity-${e}) * var(--beam-edge-${e}) * ${O.toFixed(2)} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
807
- clip-path: inset(0 round ${a}px);
808
- ${X}
809
- }
810
-
811
- [data-beam="${e}"] [data-beam-bloom] {
812
- display: none;
813
- position: absolute;
814
- inset: 0;
815
- border-radius: ${d}px;
816
- clip-path: inset(0 round ${a}px);
817
- padding: 0;
818
- -webkit-mask: radial-gradient(
819
- ellipse calc(84px * var(--beam-w-${e})) calc(110px * var(--beam-h-${e})) at calc(var(--beam-x-${e}) * 100%) 100%,
820
- white 0%, rgba(255, 255, 255, 0.5) 35%, transparent 100%
821
- );
822
- -webkit-mask-composite: source-over;
823
- mask: radial-gradient(
824
- ellipse calc(84px * var(--beam-w-${e})) calc(110px * var(--beam-h-${e})) at calc(var(--beam-x-${e}) * 100%) 100%,
825
- white 0%, rgba(255, 255, 255, 0.5) 35%, transparent 100%
826
- );
827
- mask-composite: add;
828
- background: ${u};
829
- ${v}
830
- pointer-events: none;
831
- z-index: 3;
832
- opacity: 0;
833
- }
834
-
835
- [data-beam="${e}"][data-active] [data-beam-bloom],
836
- [data-beam="${e}"][data-fading] [data-beam-bloom] {
837
- display: block;
838
- opacity: calc(var(--beam-opacity-${e}) * var(--beam-edge-${e}) * ${z.toFixed(2)} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
839
- ${$}
840
- }
841
-
842
- @keyframes beam-travel-${e} {
843
- 0% { --beam-x-${e}: 0.06; --beam-w-${e}: 0.5; }
844
- 10% { --beam-x-${e}: 0.15; --beam-w-${e}: 0.8; }
845
- 20% { --beam-x-${e}: 0.25; --beam-w-${e}: 1.1; }
846
- 30% { --beam-x-${e}: 0.35; --beam-w-${e}: 1.3; }
847
- 40% { --beam-x-${e}: 0.44; --beam-w-${e}: 1.45; }
848
- 50% { --beam-x-${e}: 0.5; --beam-w-${e}: 1.5; }
849
- 60% { --beam-x-${e}: 0.56; --beam-w-${e}: 1.45; }
850
- 70% { --beam-x-${e}: 0.65; --beam-w-${e}: 1.3; }
851
- 80% { --beam-x-${e}: 0.75; --beam-w-${e}: 1.1; }
852
- 90% { --beam-x-${e}: 0.85; --beam-w-${e}: 0.8; }
853
- 100% { --beam-x-${e}: 0.94; --beam-w-${e}: 0.5; }
854
- }
855
-
856
- @keyframes beam-edge-fade-${e} {
857
- 0% { --beam-edge-${e}: 0; }
858
- 12.5% { --beam-edge-${e}: 0; }
859
- 32.5% { --beam-edge-${e}: 1; }
860
- 67.5% { --beam-edge-${e}: 1; }
861
- 87.5% { --beam-edge-${e}: 0; }
862
- 100% { --beam-edge-${e}: 0; }
863
- }
864
-
865
- @keyframes beam-breathe-${e} {
866
- 0%, 100% { --beam-h-${e}: 0.8; }
867
- 25% { --beam-h-${e}: 1.25; }
868
- 55% { --beam-h-${e}: 0.85; }
869
- 80% { --beam-h-${e}: 1.3; }
870
- }
871
-
872
- @keyframes beam-spike-${e} {
873
- 0% { --beam-spike-${e}: 0.8; }
874
- 25% { --beam-spike-${e}: 1.3; }
875
- 50% { --beam-spike-${e}: 0.9; }
876
- 75% { --beam-spike-${e}: 1.4; }
877
- 100% { --beam-spike-${e}: 0.8; }
878
- }
879
-
880
- @keyframes beam-spike2-${e} {
881
- 0% { --beam-spike2-${e}: 1.2; }
882
- 25% { --beam-spike2-${e}: 0.7; }
883
- 50% { --beam-spike2-${e}: 1.4; }
884
- 75% { --beam-spike2-${e}: 0.8; }
885
- 100% { --beam-spike2-${e}: 1.2; }
886
- }
887
-
888
- @keyframes beam-fade-in-${e} {
889
- to { --beam-opacity-${e}: 1; }
890
- }
891
-
892
- @keyframes beam-fade-out-${e} {
893
- from { --beam-opacity-${e}: 1; }
894
- to { --beam-opacity-${e}: 0; }
895
- }
896
- ${W}
897
- ${A(e)}
898
- `}const J=new Set;let E=null,ce=0;const oa=1e3/30-2,sa=Math.PI*2;function ye(t){return(1-Math.cos(sa*t))/2}function Xe(t){if(E=requestAnimationFrame(Xe),t-ce<oa)return;ce=t;const e=t/1e3;J.forEach(({el:a,config:r})=>{for(const o of r.oscillators){const s=(e-o.delay)/o.period,i=o.a+(o.b-o.a)*ye(s);a.style.setProperty(o.prop,o.unit==="px"?`${i.toFixed(2)}px`:i.toFixed(4))}if(r.hue){const{prop:o,range:s,period:i,continuous:c}=r.hue,p=c?e/i%1*s:-s+2*s*ye(e/i);a.style.setProperty(o,`${p.toFixed(2)}deg`)}})}function ia(){E==null&&(ce=0,E=requestAnimationFrame(Xe))}function na(){J.size===0&&E!=null&&(cancelAnimationFrame(E),E=null)}function ca(t,e){const a={el:t,config:e};return J.add(a),ia(),()=>{J.delete(a),na()}}function ba(){const[t,e]=k.useState(()=>typeof window>"u"||window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light");return k.useEffect(()=>{if(typeof window>"u")return;const a=window.matchMedia("(prefers-color-scheme: dark)"),r=o=>{e(o.matches?"dark":"light")};return a.addEventListener("change",r),()=>a.removeEventListener("change",r)},[]),t}function pa(t,e){return t==="auto"?e:t}const Ye=k.forwardRef(function({children:e,size:a="md",colorVariant:r="colorful",theme:o="dark",staticColors:s=!1,duration:i,active:c=!0,borderRadius:p,brightness:b,saturation:m,hueRange:n=30,strength:l=1,className:f,style:w,onActivate:d,onDeactivate:g,onAnimationEnd:H,...O},z){const $=k.useId().replace(/:/g,"-"),W=ba(),y=k.useRef(null),[x,Y]=k.useState(c),[u,v]=k.useState(!1),[R,ee]=k.useState(!0),[G,ae]=k.useState(null),[j,L]=k.useState({x:1,y:1});k.useEffect(()=>{if(p!=null)return;const h=y.current;if(!h)return;const F=()=>{const P=h.firstElementChild;if(!P)return;const ie=getComputedStyle(P),B=parseFloat(ie.borderTopLeftRadius);!isNaN(B)&&B>0&&ae(B)};F();const I=new MutationObserver(F);return I.observe(h,{childList:!0,subtree:!1}),()=>I.disconnect()},[p,e]),k.useEffect(()=>{c&&!x&&!u?Y(!0):!c&&x&&!u&&v(!0)},[c,x,u]),k.useEffect(()=>{const h=y.current;if(!h||typeof IntersectionObserver>"u")return;const F=new IntersectionObserver(I=>{for(const P of I)ee(P.isIntersecting)},{rootMargin:"256px"});return F.observe(h),()=>F.disconnect()},[]),k.useEffect(()=>{if(a!=="pulse-outside"){L({x:1,y:1});return}const h=y.current;if(!h)return;const F=350,I=140,P=.35,ie=4,B=D=>Math.max(P,Math.min(ie,D)),ge=()=>{const D=h.firstElementChild;if(!D)return;const U=D.getBoundingClientRect();if(!U.width||!U.height)return;const ue=+B(U.width/F).toFixed(3),xe=+B(U.height/I).toFixed(3);L(ne=>ne.x===ue&&ne.y===xe?ne:{x:ue,y:xe})};if(ge(),typeof ResizeObserver>"u")return;const me=h.firstElementChild;if(!me)return;const $e=new ResizeObserver(ge);return $e.observe(me),()=>$e.disconnect()},[a,e]);const re=k.useCallback(h=>{const F=h.animationName;F.includes("fade-out")?(Y(!1),v(!1),g==null||g()):F.includes("fade-in")&&(d==null||d()),H==null||H(h)},[d,g,H]),M=pa(o,W),S=Q[a][M],te=ve[a],oe=a==="pulse-inner"||a==="pulse-outside",le=p??G??te.borderRadius,T=i??(a==="line"?3.1:oe?2.3:1.96),fe=m??S.saturation,de=b??S.brightness??1.3,N=a==="line"?Math.min(n,13):n,V=r==="mono"?!0:s,Oe=k.useMemo(()=>Ze({id:$,borderRadius:le,borderWidth:te.borderWidth,duration:T,strokeOpacity:S.strokeOpacity,innerOpacity:S.innerOpacity,bloomOpacity:S.bloomOpacity,innerShadow:S.innerShadow,size:a,colorVariant:r,staticColors:V,brightness:de,saturation:fe,hueRange:N,theme:M,hairlineOpacity:S.hairlineOpacity}),[$,le,te.borderWidth,T,S.strokeOpacity,S.innerOpacity,S.bloomOpacity,S.innerShadow,S.hairlineOpacity,a,r,V,de,fe,N,M]),se=k.useMemo(()=>oe?Qe(a,M,T,N,V,$):null,[oe,a,M,T,N,V,$]);k.useEffect(()=>{var F;if(!se||!(x||u)||!R)return;const h=y.current;if(h&&!(typeof window<"u"&&((F=window.matchMedia)!=null&&F.call(window,"(prefers-reduced-motion: reduce)").matches)))return ca(h,se)},[se,x,u,R]);const Se=k.useCallback(h=>{y.current=h,typeof z=="function"?z(h):z&&(z.current=h)},[z]),Fe={...w??{},"--beam-strength":Math.max(0,Math.min(1,l)),...a==="pulse-outside"?{"--pulse-glow-sx":j.x,"--pulse-glow-sy":j.y}:{}};return _.jsxs(_.Fragment,{children:[_.jsx("style",{children:Oe}),_.jsxs("div",{...O,ref:Se,"data-beam":$,"data-active":x&&!u?"":void 0,"data-fading":u?"":void 0,"data-paused":x&&!u&&!R?"":void 0,className:f,style:Fe,onAnimationEnd:re,children:[e,_.jsx("div",{"data-beam-bloom":!0})]})]})});exports.BorderBeam=Ye;exports.default=Ye;exports.sizePresets=ve;exports.sizeThemePresets=Q;exports.themeColors=Re;