@repobit/dex-system-design 2.2.2 → 2.3.0
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/CHANGELOG.md +8 -0
- package/package.json +12 -2
- package/schemas/component-manifest.json +816 -1
- package/src/assets/images/ai/bento-consumer-art.jpg +0 -0
- package/src/assets/images/ai/bento-enterprise-art.jpg +0 -0
- package/src/assets/images/ai/bento-labs-art.jpg +0 -0
- package/src/assets/images/award-marks/av-comparatives-top-rated.png +0 -0
- package/src/assets/images/award-marks/av-test-top-product.png +0 -0
- package/src/assets/images/award-marks/crn-partner-guide.png +0 -0
- package/src/assets/images/award-marks/forrester.png +0 -0
- package/src/assets/images/award-marks/gartner.png +0 -0
- package/src/assets/images/award-marks/idc.png +0 -0
- package/src/assets/images/award-marks/mitre-engenuity.png +0 -0
- package/src/assets/images/award-marks/omdia.png +0 -0
- package/src/assets/images/award-marks/pcmag-best-of-2026.png +0 -0
- package/src/assets/images/award-marks/pcmag-editors-choice.png +0 -0
- package/src/assets/images/award-marks/pcmag-readers-choice.png +0 -0
- package/src/assets/images/hero/ai-sphere-poster.jpg +0 -0
- package/src/assets/images/insights/post-1.jpg +0 -0
- package/src/assets/images/insights/post-2.jpg +0 -0
- package/src/assets/images/insights/post-3.jpg +0 -0
- package/src/assets/images/partner/ferrari-lockup.png +0 -0
- package/src/assets/images/partner/ferrari-photo.jpg +0 -0
- package/src/assets/images/partners/ferrari.svg +6 -0
- package/src/assets/images/partners/konica-minolta.svg +12 -0
- package/src/assets/images/partners/logmein.svg +6 -0
- package/src/assets/images/partners/netgear.svg +10 -0
- package/src/assets/images/partners/sharp.svg +5 -0
- package/src/assets/images/partners/spurs.svg +33 -0
- package/src/components/audience-card/audience-card.css.js +87 -0
- package/src/components/audience-card/audience-card.js +80 -0
- package/src/components/audience-card/audience-card.stories.js +125 -0
- package/src/components/bento-grid/bento-grid.stories.js +77 -1
- package/src/components/bento-grid/bento-item.css.js +142 -2
- package/src/components/bento-grid/bento-item.js +65 -1
- package/src/components/hero/hero.css.js +260 -0
- package/src/components/hero/hero.js +168 -0
- package/src/components/hero/hero.stories.js +145 -0
- package/src/components/icons/enterprise-icon.js +19 -0
- package/src/components/icons/home-icon.js +19 -0
- package/src/components/icons/icons.js +5 -0
- package/src/components/icons/icons.stories.js +28 -2
- package/src/components/icons/pause-icon.js +20 -0
- package/src/components/icons/play-icon.js +19 -0
- package/src/components/icons/small-business-icon.js +19 -0
- package/src/components/logo-marquee/logo-marquee.css.js +88 -0
- package/src/components/logo-marquee/logo-marquee.js +135 -0
- package/src/components/logo-marquee/logo-marquee.stories.js +125 -0
- package/src/components/motion-art/motion-art.js +42 -0
- package/src/components/motion-art/motion-art.stories.js +98 -0
- package/src/components/partner-banner/partner-banner.css.js +162 -0
- package/src/components/partner-banner/partner-banner.js +68 -0
- package/src/components/partner-banner/partner-banner.stories.js +86 -0
- package/src/components/post-card/post-card.css.js +121 -0
- package/src/components/post-card/post-card.js +80 -0
- package/src/components/post-card/post-card.stories.js +79 -0
- package/src/components/section-header/section-header.css.js +89 -0
- package/src/components/section-header/section-header.js +79 -0
- package/src/components/section-header/section-header.stories.js +129 -0
- package/src/components/stat/stat-highlight.js +75 -0
- package/src/components/stat/stat-tile.js +43 -0
- package/src/components/stat/stat.css.js +111 -0
- package/src/components/stat/stat.js +2 -0
- package/src/components/stat/stat.stories.js +92 -0
- package/src/vendor/motion-art/README.md +27 -0
- package/src/vendor/motion-art/motion-art-element.js +116 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
|
|
3
|
+
/* A tile on surface/info: the value at display-md, the caption at body-small,
|
|
4
|
+
pinned to the foot. On the info tint the value's text-primary measures
|
|
5
|
+
16.65:1 and the caption's the same. The tile takes the card corner one step
|
|
6
|
+
up, 3xl, as the design draws it; it is not a card -- it holds no controls
|
|
7
|
+
and no heading, only a figure. */
|
|
8
|
+
export const statTileCSS = css`
|
|
9
|
+
/* the full cell, both ways, so a row of tiles is one height and one width
|
|
10
|
+
whatever each one holds */
|
|
11
|
+
:host {
|
|
12
|
+
display: block;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.tile {
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
height: 100%;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
gap: var(--spacing-48);
|
|
24
|
+
padding: var(--spacing-24);
|
|
25
|
+
text-align: start;
|
|
26
|
+
background: var(--color-surface-info);
|
|
27
|
+
border-radius: var(--shape-radius-3xl);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.value,
|
|
31
|
+
.caption {
|
|
32
|
+
margin: 0;
|
|
33
|
+
color: var(--color-text-primary);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.value {
|
|
37
|
+
font-family: var(--typography-display-md-fontFamily);
|
|
38
|
+
font-size: var(--typography-display-md-fontSize);
|
|
39
|
+
font-weight: var(--typography-display-md-fontWeight);
|
|
40
|
+
line-height: var(--typography-display-md-lineHeight);
|
|
41
|
+
letter-spacing: var(--typography-display-md-letterSpacing);
|
|
42
|
+
font-variant-numeric: tabular-nums;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.caption {
|
|
46
|
+
font-family: var(--typography-body-small-fontFamily);
|
|
47
|
+
font-size: var(--typography-body-small-fontSize);
|
|
48
|
+
font-weight: var(--typography-body-small-fontWeight);
|
|
49
|
+
line-height: var(--typography-body-small-lineHeight);
|
|
50
|
+
letter-spacing: var(--typography-body-small-letterSpacing);
|
|
51
|
+
}
|
|
52
|
+
`;
|
|
53
|
+
|
|
54
|
+
/* The leading figure. Its size is the one value here off the type scale: the
|
|
55
|
+
display family stops at 3xl (128) and the design draws this at 180, as a
|
|
56
|
+
deliberate one-off rather than a role, so it is spelled once, here.
|
|
57
|
+
Each digit is a reel of 0-9 in a one-line window, moved up by its own
|
|
58
|
+
value. */
|
|
59
|
+
export const statHighlightCSS = css`
|
|
60
|
+
:host {
|
|
61
|
+
display: block;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.highlight {
|
|
65
|
+
margin: 0;
|
|
66
|
+
text-align: start;
|
|
67
|
+
color: var(--color-text-primary);
|
|
68
|
+
font-family: var(--typography-display-3xl-fontFamily);
|
|
69
|
+
font-weight: var(--typography-display-3xl-fontWeight);
|
|
70
|
+
letter-spacing: var(--typography-display-3xl-letterSpacing);
|
|
71
|
+
/* no token: the one-off 180 the design sets, falling to 80 on a phone
|
|
72
|
+
through the viewport; the display scale stops at 128 */
|
|
73
|
+
font-size: clamp(5rem, 12.5vw, 11.25rem);
|
|
74
|
+
/* no token: a reel of digits needs a line box exactly one digit tall, so
|
|
75
|
+
the window and the steps the reel moves by are the same length */
|
|
76
|
+
line-height: 1;
|
|
77
|
+
font-variant-numeric: tabular-nums;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.chars {
|
|
81
|
+
display: inline-flex;
|
|
82
|
+
align-items: flex-end;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.char {
|
|
86
|
+
display: inline-block;
|
|
87
|
+
height: 1em;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.digit {
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.reel {
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
transform: translateY(calc(var(--bd-stat-digit) * -1em));
|
|
98
|
+
transition: transform var(--transition-duration-slower) var(--transition-easing-smooth);
|
|
99
|
+
transition-delay: calc(var(--bd-stat-order) * var(--transition-duration-fast));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.reel > span {
|
|
103
|
+
height: 1em;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@media (prefers-reduced-motion: reduce) {
|
|
107
|
+
.reel {
|
|
108
|
+
transition: none;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
`;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import "../button/button.js";
|
|
3
|
+
import "../grid/grid.js";
|
|
4
|
+
import "../paragraph/paragraph.js";
|
|
5
|
+
import "./stat-highlight.js";
|
|
6
|
+
import "./stat-tile.js";
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title : "Components/Stat",
|
|
10
|
+
component : "bd-stat-tile",
|
|
11
|
+
tags : ["autodocs"],
|
|
12
|
+
parameters: {
|
|
13
|
+
layout: "padded",
|
|
14
|
+
docs : {
|
|
15
|
+
description: {
|
|
16
|
+
component: `
|
|
17
|
+
Two figures for the homepage's Why-trust section, drawn in the foundation
|
|
18
|
+
Figma file as **Stat tile** (and the "$1.5B+" beside the tiles).
|
|
19
|
+
|
|
20
|
+
**\`bd-stat-tile\`** is one figure: a display-md \`value\` over a body-small
|
|
21
|
+
\`caption\`, on surface/info at the 3xl corner, the caption pinned to the foot
|
|
22
|
+
so a row of tiles lines its captions up. Value and caption are one statement,
|
|
23
|
+
so the tile is a group; \`label\` spells the value out where its short form
|
|
24
|
+
reads badly aloud.
|
|
25
|
+
|
|
26
|
+
**\`bd-stat-highlight\`** is the one oversized figure a section leads with. Its
|
|
27
|
+
digits roll into place the first time it comes into view, and stand still
|
|
28
|
+
under \`prefers-reduced-motion\`. The characters are split for the roll, so
|
|
29
|
+
they are hidden from a screen reader and \`label\` names the figure in full.
|
|
30
|
+
|
|
31
|
+
\`\`\`html
|
|
32
|
+
<bd-stat-highlight value="$1.5B+" label="$1.5 billion plus"></bd-stat-highlight>
|
|
33
|
+
<bd-stat-tile value="580+" caption="Patents filed, including breakthroughs in machine learning and advanced threat detection."></bd-stat-tile>
|
|
34
|
+
\`\`\`
|
|
35
|
+
|
|
36
|
+
| Element | Property | Description |
|
|
37
|
+
|---|---|---|
|
|
38
|
+
| \`bd-stat-tile\` | \`value\` | The figure, at display-md |
|
|
39
|
+
| | \`caption\` | What it counts, at body-small |
|
|
40
|
+
| | \`label\` | The value spelled out for a screen reader (optional) |
|
|
41
|
+
| \`bd-stat-highlight\` | \`value\` | The figure. Digits roll; other characters stand still |
|
|
42
|
+
| | \`label\` | Its full accessible name; the value when left out |
|
|
43
|
+
`
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const tiles = [
|
|
50
|
+
["580+", "Patents filed, including breakthroughs in machine learning and advanced threat detection."],
|
|
51
|
+
["30+", "Free ransomware decryptor tools released to the public."],
|
|
52
|
+
["50%+", "Over half of Bitdefender employees dedicated to research and development."],
|
|
53
|
+
["30+", "Global partnerships with law enforcement to disrupt ransomware operations."],
|
|
54
|
+
["50B+", "Threats blocked yearly.", "50 billion plus"],
|
|
55
|
+
["487+", "New cyber threats discovered every minute."]
|
|
56
|
+
];
|
|
57
|
+
|
|
58
|
+
export const Tile = {
|
|
59
|
+
render: () => html`
|
|
60
|
+
<div style="max-width: 282px;">
|
|
61
|
+
<bd-stat-tile value="580+" caption="${tiles[0][1]}"></bd-stat-tile>
|
|
62
|
+
</div>
|
|
63
|
+
`
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export const Highlight = {
|
|
67
|
+
render: () => html`<bd-stat-highlight value="$1.5B+" label="$1.5 billion plus"></bd-stat-highlight>`
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/* The Why-trust row: the highlight with its copy and CTA on the left, the six
|
|
71
|
+
tiles two across on the right -- the composition the page block builds. */
|
|
72
|
+
export const WhyTrustRow = {
|
|
73
|
+
name : "Why-trust row (composition)",
|
|
74
|
+
render: () => html`
|
|
75
|
+
<bd-grid cols="1" cols-lg="2" gap="md">
|
|
76
|
+
<div style="--bd-paragraph-margin-bottom: 0; display: flex; flex-direction: column; gap: var(--spacing-24); align-items: flex-start;">
|
|
77
|
+
<bd-stat-highlight value="$1.5B+" label="$1.5 billion plus"></bd-stat-highlight>
|
|
78
|
+
<bd-p>Through global ransomware operations and free decryptor releases, Bitdefender has helped victims recover their data without paying the attackers.</bd-p>
|
|
79
|
+
<bd-button-link variant="primary" href="#">Learn Why Millions Trust Us</bd-button-link>
|
|
80
|
+
</div>
|
|
81
|
+
<bd-grid cols="1" cols-sm="2" cols-md="2" cols-lg="2" gap="md">
|
|
82
|
+
${tiles.map(([value, caption, label]) => html`<bd-stat-tile value="${value}" caption="${caption}" label="${label || ""}"></bd-stat-tile>`)}
|
|
83
|
+
</bd-grid>
|
|
84
|
+
</bd-grid>
|
|
85
|
+
`
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export const WhyTrustRowMobile = {
|
|
89
|
+
name : "Why-trust row — Mobile (375px)",
|
|
90
|
+
render : WhyTrustRow.render,
|
|
91
|
+
parameters: { viewport: { defaultViewport: "mobile1" } }
|
|
92
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# motion-art (vendored)
|
|
2
|
+
|
|
3
|
+
The four animated homepage illustrations — `brand-surface`, `mesh-globe`,
|
|
4
|
+
`layer-stack`, `geo-core` — as one Lit element. Built outside this package, in
|
|
5
|
+
the `thinking-orbs` project (`src/hero/`, `npm run hero:share`), and copied
|
|
6
|
+
here as generated code. **Do not edit it by hand**: regenerate it there and copy
|
|
7
|
+
it in again.
|
|
8
|
+
|
|
9
|
+
`motion-art-element.js` is the share's `lit/bd-hero.js` (sha256
|
|
10
|
+
`3c4ad4bcceed36bf2ae6dccf61a28eea528570752119a73c5763f001f52427ff`) with one
|
|
11
|
+
change: the last statement, which registered the class as `<bd-hero>`, is
|
|
12
|
+
removed. `bd-hero` is this package's homepage band
|
|
13
|
+
(`src/components/hero/hero.js`), and whichever module loaded first would have
|
|
14
|
+
taken the name. The module now only exports the class, still named `BdHero`
|
|
15
|
+
inside the generated code; the package imports it as `MotionArtElement` and
|
|
16
|
+
registers it as `<bd-motion-art>` in `src/components/motion-art/motion-art.js`.
|
|
17
|
+
The file is renamed here so nothing in this package says `bd-hero` but the band.
|
|
18
|
+
|
|
19
|
+
Repeat the removal when the file is replaced. `check:architecture` fails if
|
|
20
|
+
it is forgotten: nothing in the EXTERNAL layer may call
|
|
21
|
+
`customElements.define`. The lasting fix is upstream -- a share that exports
|
|
22
|
+
the class without registering it -- and then this file is the share's own,
|
|
23
|
+
byte for byte.
|
|
24
|
+
|
|
25
|
+
Third-party for the gates: `lint:tokens` excludes `src/**/vendor/`. The colours
|
|
26
|
+
in it are the illustrations' own paint, drawn into a canvas, where no token
|
|
27
|
+
reaches.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import{LitElement as Wo,css as Ho,nothing as Jt,html as qt,svg as jo}from"lit";import{styleMap as Dt}from"lit/directives/style-map.js";function qo(t,e){const{size:o,paused:n,reduced:r,staticT:s,speed:i,draw:l}=e,a=e.maxDpr??2,u=e.fps??0,h=Math.min(a,typeof devicePixelRatio<"u"&&devicePixelRatio||1);t.width=Math.round(o*h),t.height=Math.round(o*h);const d=t.getContext("2d");if(!d)return()=>{};const c=0,f=()=>(performance.now()-c)/1e3*i,p=b=>{d.setTransform(h,0,0,h,0,0),d.clearRect(0,0,o,o),l(d,b)};if(r)return p(s),()=>{};let m=0,g=!1;const M=u>0?1e3/u:0;let y=-1/0;const k=b=>{(!M||b-y>=M-2)&&(y=b,p(f())),g&&(m=requestAnimationFrame(k))},z=()=>{g||n||(g=!0,m=requestAnimationFrame(k))},S=()=>{g=!1,cancelAnimationFrame(m)};p(f());let B=!0;const E=typeof IntersectionObserver<"u"?new IntersectionObserver(([b])=>{B=b.isIntersecting,B&&document.visibilityState!=="hidden"?z():S()}):null;E?.observe(t);const W=()=>{document.visibilityState==="hidden"?S():B&&z()};return document.addEventListener("visibilitychange",W),E||z(),()=>{S(),E?.disconnect(),document.removeEventListener("visibilitychange",W)}}function Yt(t){return t-Math.floor(t)}function Yo(t,e){const o=Math.floor(t),n=Math.floor(e);let r=t-o,s=e-n;r=r*r*(3-2*r),s=s*s*(3-2*s);const i=re(o,n),l=re(o+1,n),a=re(o,n+1),u=re(o+1,n+1);return i+(l-i)*r+(a-i)*s+(i-l-a+u)*r*s}function re(t,e){const o=Math.sin(t*12.9898+e*78.233)*43758.5453;return o-Math.floor(o)}function ae(t,e){const o=Math.PI*(3-Math.sqrt(5)),n=1-2*(t+.5)/e,r=Math.sqrt(1-n*n),s=t*o;return[r*Math.cos(s),n,r*Math.sin(s)]}function Y(t,e){const o=Math.sin(t*127.1+e*311.7)*43758.5453;return o-Math.floor(o)}function Ve(t,e){return Math.exp(-(t*t)/(e*e))}function Pt(t){return t<=0?0:t>=1?1:t}function Qt(t,e){return Math.round(t/e)*e}function Ke(t,e,o,n,r){const s=Math.abs(t)-(o-r),i=Math.abs(e)-(n-r),l=Math.max(s,0),a=Math.max(i,0);return Math.hypot(l,a)+Math.min(Math.max(s,i),0)-r}const Oo=.28,Go=.74,Ue=.46;function Bt(t,e,o,n){const r=(t-Oo*o)/(Ue*o),s=(e-Go*o)/(Ue*o);return Math.exp(-(r*r+s*s))*(.35+.65*n)}const Je=48,Qe=new Map;function Ot(t=Je){const e=Qe.get(t);if(e)return e;const o=Math.PI*2/t,n={T:t,rate:r=>r===0?0:Math.sign(r)*Math.max(1,Math.round(Math.abs(r)/o))*o,freq:r=>r===0?0:Math.sign(r)*Math.max(1,Math.round(Math.abs(r)*t))/t,period:r=>t/Math.max(1,Math.round(t/r)),noise:(r,s,i,l)=>{const a=l*t/(Math.PI*2),u=o*i;return Yo(r+a*Math.cos(u),s+a*Math.sin(u))}};return Qe.set(t,n),n}function St(t,e=1){return Pt(.5-.5*t/e)}const Zo={m:1,aLine:1,aDot:1,aFace:1};function wt(t,e,o){if(e<=0&&o<=0)return Zo;const n=1-(t<0?0:t>1?1:t),r=1-e*n,s=1+o*n;return{m:s,aLine:r/s,aDot:r/(s*s),aFace:r}}function ke(t,e){return t.z-e.z}function Gt(t,e=.35){const o=[];for(const s of t.dots??[])s.lum*(s.a??1)<.015||(s.r=Math.max(e,s.r),o.push(s));o.sort(ke);const n=(t.lines??[]).filter(s=>s.lum*(s.a??1)>=.015);n.sort(ke);const r=(t.faces??[]).filter(s=>s.lum*(s.a??1)>=.0015||s.grad||s.rgb);return r.sort(ke),{occlude:t.occlude,occludeA:t.occludeA,bloom:t.bloom,faces:r,lines:n,dots:o,z:t.z??0}}function ie(t,e){return e.sort((o,n)=>n.z-o.z),{behind:t,groups:e}}const Xo=`<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="37.938" height="37.938" viewBox="0 0 37.938 37.938" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="Group 9">
|
|
3
|
+
<foreignObject x="-8.2" y="-8.2" width="54.338" height="54.338"><div xmlns="http://www.w3.org/1999/xhtml" style="backdrop-filter:blur(4.1px);clip-path:url(#bgblur_0_0_6_clip_path);height:100%;width:100%"></div></foreignObject><circle id="Ellipse 5" data-figma-bg-blur-radius="8.2" cx="18.969" cy="18.969" r="17.969" fill="white" fill-opacity="0.05" stroke="white" stroke-width="2"/>
|
|
4
|
+
<g id="triangle attention fill">
|
|
5
|
+
<path id="icon" fill-rule="evenodd" clip-rule="evenodd" d="M17.7381 10.5993C18.2998 9.62909 19.7005 9.62909 20.2622 10.5993L27.9835 23.9361C28.5464 24.9083 27.8448 26.1251 26.7214 26.1251H11.2788C10.1554 26.1251 9.4539 24.9083 10.0168 23.9361L17.7381 10.5993ZM18.375 20.5V15.5H19.625V20.5H18.375ZM19.7812 22.5313C19.7812 22.0998 19.4315 21.75 19 21.75C18.5685 21.75 18.2188 22.0998 18.2188 22.5313C18.2188 22.9627 18.5685 23.3125 19 23.3125C19.4315 23.3125 19.7812 22.9627 19.7812 22.5313Z" fill="white"/>
|
|
6
|
+
</g>
|
|
7
|
+
</g>
|
|
8
|
+
<defs>
|
|
9
|
+
<clipPath id="bgblur_0_0_6_clip_path" transform="translate(8.2 8.2)"><circle cx="18.969" cy="18.969" r="17.969"/>
|
|
10
|
+
</clipPath></defs>
|
|
11
|
+
</svg>
|
|
12
|
+
`,Vo=`<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="113.47" height="113.47" viewBox="0 0 113.47 113.47" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
13
|
+
<g id="Group 10" filter="url(#filter0_f_0_10)">
|
|
14
|
+
<foreignObject x="-5.2" y="-5.2" width="123.87" height="123.87"><div xmlns="http://www.w3.org/1999/xhtml" style="backdrop-filter:blur(4.1px);clip-path:url(#bgblur_0_0_10_clip_path);height:100%;width:100%"></div></foreignObject><circle id="Ellipse 5" data-figma-bg-blur-radius="8.2" cx="56.7348" cy="56.7348" r="52.7348" fill="white" fill-opacity="0.05" stroke="white" stroke-width="2"/>
|
|
15
|
+
<g id="card hook fill">
|
|
16
|
+
<g id="icon">
|
|
17
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M59.2031 32.4999C56.7869 32.4999 54.8281 34.4586 54.8281 36.8749C54.8281 38.6695 55.9087 40.2118 57.4547 40.8866C57.4547 43.8749 58.4456 46.7675 61.0721 49.394C62.6767 50.9986 63.5781 53.1748 63.5781 55.444C63.5781 60.1693 59.7475 63.9999 55.0222 63.9999H54.3906C49.3165 63.9999 45.2031 59.8865 45.2031 54.8124V54.3749H48.7031V54.8124C48.7031 57.9535 51.2495 60.4999 54.3906 60.4999H55.0222C57.8145 60.4999 60.0781 58.2363 60.0781 55.444C60.0781 54.1031 59.5454 52.8171 58.5973 51.8689L57.0907 50.3623C55.959 49.2306 55.0457 47.9213 54.378 46.4999H37.3281C34.4286 46.4999 32.0781 48.8504 32.0781 51.7499V68.3749H81.0781V51.7499C81.0781 48.8504 78.7276 46.4999 75.8281 46.4999H62.7798C61.6381 44.8587 60.9968 42.907 60.9553 40.8849C62.4993 40.2093 63.5781 38.6681 63.5781 36.8749C63.5781 34.4586 61.6194 32.4999 59.2031 32.4999ZM58.3281 36.8749C58.3281 36.3916 58.7199 35.9999 59.2031 35.9999C59.6864 35.9999 60.0781 36.3916 60.0781 36.8749C60.0781 37.3581 59.6864 37.7499 59.2031 37.7499C58.7199 37.7499 58.3281 37.3581 58.3281 36.8749Z" fill="white"/>
|
|
18
|
+
<path d="M32.0781 74.4999V71.8749H81.0781V74.4999C81.0781 77.3994 78.7276 79.7499 75.8281 79.7499H37.3281C34.4286 79.7499 32.0781 77.3994 32.0781 74.4999Z" fill="white"/>
|
|
19
|
+
</g>
|
|
20
|
+
</g>
|
|
21
|
+
</g>
|
|
22
|
+
<defs>
|
|
23
|
+
<filter id="filter0_f_0_10" x="2.38419e-07" y="0" width="113.47" height="113.47" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
24
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
25
|
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
26
|
+
<feGaussianBlur stdDeviation="1.5" result="effect1_foregroundBlur_0_10"/>
|
|
27
|
+
</filter>
|
|
28
|
+
<clipPath id="bgblur_0_0_10_clip_path" transform="translate(5.2 5.2)"><circle cx="56.7348" cy="56.7348" r="52.7348"/>
|
|
29
|
+
</clipPath></defs>
|
|
30
|
+
</svg>
|
|
31
|
+
`,Ko=`<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="62.7707" height="62.7707" viewBox="0 0 62.7707 62.7707" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
32
|
+
<g id="Group 8">
|
|
33
|
+
<foreignObject x="-12" y="-12" width="86.7707" height="86.7707"><div xmlns="http://www.w3.org/1999/xhtml" style="backdrop-filter:blur(6px);clip-path:url(#bgblur_0_0_14_clip_path);height:100%;width:100%"></div></foreignObject><circle id="Ellipse 5" data-figma-bg-blur-radius="12" cx="31.3853" cy="31.3853" r="30.3853" fill="white" fill-opacity="0.05" stroke="white" stroke-width="2"/>
|
|
34
|
+
<g id="Group 33685">
|
|
35
|
+
<path id="icon" fill-rule="evenodd" clip-rule="evenodd" d="M46.8466 18.186L30.9234 11.9999L15.0001 18.186L15.0001 26.8156C15.0001 31.4569 15.5454 35.9168 17.8075 39.9046C20.0847 43.919 24.0005 47.2827 30.4039 49.9399L30.9233 50.1554L31.4428 49.9399C37.8462 47.2827 41.762 43.919 44.0392 39.9046C46.3013 35.9168 46.8466 31.4569 46.8466 26.8156L46.8466 18.186ZM17.7105 26.8156L17.7105 20.0407L30.9234 14.9076L44.1363 20.0407L44.1363 26.8156C44.1363 31.2808 43.6017 35.1827 41.6818 38.5673C39.8326 41.8272 36.6043 44.768 30.9233 47.2168C25.2424 44.768 22.0141 41.8272 20.165 38.5673C18.2451 35.1827 17.7105 31.2808 17.7105 26.8156Z" fill="white"/>
|
|
36
|
+
<g id="icon_2">
|
|
37
|
+
<path d="M30.9237 32.3154C28.9345 32.3154 27.2889 31.7367 26.3487 30.9858L24.6574 33.1037C26.1896 34.3273 28.4799 35.0257 30.9237 35.0257C33.3676 35.0257 35.6579 34.3273 37.1901 33.1037L35.4987 30.9858C34.5585 31.7367 32.9129 32.3154 30.9237 32.3154Z" fill="white"/>
|
|
38
|
+
<path d="M23.4703 24.2951C22.3476 24.2951 21.4375 25.2052 21.4375 26.3278C21.4375 27.4505 22.3476 28.3606 23.4703 28.3606C24.5929 28.3606 25.503 27.4505 25.503 26.3278C25.503 25.2052 24.5929 24.2951 23.4703 24.2951Z" fill="white"/>
|
|
39
|
+
<path d="M36.3444 26.3278C36.3444 25.2052 37.2545 24.2951 38.3772 24.2951C39.4998 24.2951 40.4099 25.2052 40.4099 26.3278C40.4099 27.4505 39.4998 28.3606 38.3772 28.3606C37.2545 28.3606 36.3444 27.4505 36.3444 26.3278Z" fill="white"/>
|
|
40
|
+
</g>
|
|
41
|
+
</g>
|
|
42
|
+
</g>
|
|
43
|
+
<defs>
|
|
44
|
+
<clipPath id="bgblur_0_0_14_clip_path" transform="translate(12 12)"><circle cx="31.3853" cy="31.3853" r="30.3853"/>
|
|
45
|
+
</clipPath></defs>
|
|
46
|
+
</svg>
|
|
47
|
+
`,Uo="'IBM Plex Sans', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif",Jo=t=>`rgb(${t[0]},${t[1]},${t[2]})`,Qo=1.22,ts=.25,es=1,os=.085;function ss(t,e,o){const n=Math.max(9,Math.round(t*.031)),r=Math.round(n*1),s=Math.min(o,e.length),i=n*1.35+2*Math.round(r*.5);let l=[];if(s>0){const a=e.slice(0,s),u=a.reduce((d,c)=>d+c.y,0)/s,h=s>1?Math.abs(a[s-1].y-a[0].y)/(s-1):0;l=a.map(d=>{const c=(d.y-u)*(Qo-1);return Math.abs(c)<ts*h?d.y:d.y+Math.sign(c)*Math.max(Math.abs(c),es*i)})}return{n:s,fontPx:n,pad:r,minInset:Math.round(t*.045),rs:t/320,ys:l}}function ns(t,e,o,n){const{n:r,ys:s,minInset:i}=o;if(!n)return{inset:i,elbowed:[],paths:[]};const l=s.map((p,m)=>p!==e[m].y),a=Math.min(...n.filter((p,m)=>l[m]).map(p=>p.w),Number.POSITIVE_INFINITY),u=Math.max(0,...n.map(p=>p.w)),h=Math.min(...e.slice(0,r).map(p=>p.x)),d=Math.max(i,Math.round(h-os*t-u)),c=d+(Number.isFinite(a)?a/2:0),f=s.map((p,m)=>{const g=e[m],M=n[m];return!M||M.w===0?null:l[m]?`M${c} ${g.y>p?p+M.h/2:p-M.h/2}V${g.y}H${g.x}`:`M${d+M.w} ${g.y}H${g.x}`});return{inset:d,elbowed:l,paths:f}}function Se(t){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(t)}`}const rs={alert:{url:Se(Xo),size:37.938},shield:{url:Se(Ko),size:62.7707},hook:{url:Se(Vo),size:113.47}},to=158.7,eo=9,Re=[{icon:"alert",dx:-34.5,dy:-101.2,disc:17.969,blur:4.1,font:9,h:14.9,padX:5.8,side:"left",edge:-12.8,pillDy:-.3,defocus:0,period:9,amp:3},{icon:"shield",dx:-148.1,dy:-.8,disc:30.385,blur:6,font:10,h:20,padX:5.95,side:"right",edge:19.6,pillDy:-.4,defocus:0,period:11,amp:3.5},{icon:"hook",dx:6.66,dy:132.5,disc:52.735,blur:4.1,font:14,h:25,padX:13,side:"left",edge:-41.15,pillDy:1.8,defocus:1.5,period:13,amp:4.5}],as=t=>Math.min(t.length,Re.length);function is(t,e,o,n=eo){const r=t.r/to,s=Re[e],i=rs[o.icon??s.icon],l=Math.max(1,n/(s.font*r)),a=r*l;return{cx:t.x+s.dx*r,cy:t.y+s.dy*r,url:i.url,imgSize:i.size*r,discR:s.disc*r,blur:s.blur*r,pillTop:s.pillDy*r,...s.side==="right"?{pillLeft:s.edge*r}:{pillRight:-s.edge*r},pillH:s.h*a,padX:s.padX*a,font:s.font*a,defocus:s.defocus*r}}function ls(t,e,o){const n=Re[e],r=n.amp*(t.r/to),s=o?o/Math.max(1,Math.round(o/n.period))*1e3:n.period*1e3;return{keyframes:[{transform:"translate(0px, 0px)"},{transform:`translate(${(r*.6).toFixed(2)}px, ${(-r).toFixed(2)}px)`},{transform:`translate(${(-r*.4).toFixed(2)}px, ${(r*.5).toFixed(2)}px)`},{transform:"translate(0px, 0px)"}],options:{duration:s,iterations:Number.POSITIVE_INFINITY,easing:"ease-in-out"},currentTime:(performance.now()+e*2300)%s}}const oo="#006DFF",cs=[{x:.78,y:.44,r:.95,rgb:"160,210,255",a0:.07,a1:.024},{x:.1,y:1.1,r:1.05,rgb:"0,58,160",a0:.075,a1:.03}],so={brand:{substrate:oo,ink:[255,255,255],surface:"150,205,255",wash:cs},solid:{substrate:oo,ink:[255,255,255],surface:"150,205,255",wash:[]},night:{substrate:"#0B0F14",ink:[226,236,255],surface:"120,170,240",wash:[{x:.78,y:.44,r:.95,rgb:"120,170,255",a0:.06,a1:.02},{x:.1,y:1.1,r:1.05,rgb:"0,0,0",a0:.28,a1:.1}]},paper:{substrate:"#FFFFFF",ink:[0,78,184],surface:"0,90,200",wash:[{x:.78,y:.44,r:.95,rgb:"0,90,200",a0:.035,a1:.012}]}},hs=["nodeN","ringSegs","comets","cometSteps","dustN","sparks","filletSteps","coreN"],us=["cell","ringStride","tieStride"],ds=["nodeR","nodeRDepth","vertR","coreDotR","lineW"];function ps(t,e){const o={...t};for(const r of hs){const s=o[r];s!=null&&s!==0&&(o[r]=Math.max(1,Math.round(s*e)))}for(const r of us){const s=o[r];s!=null&&s!==0&&(o[r]=s/e)}const n=o.density;return n!=null&&(o.density=n*e),o}function fs(t,e){const o={...t};for(const n of ds){const r=o[n];r!=null&&(o[n]=r*e)}return o}const le=.5,no={loop:60,spread:.78,spin:.1,pitch:.26,roll:-.12,perspective:.18,nodeN:1500,penPow:.5,farStipple:1,flares:4,outerCage:1.12,clusterFreq:1.9,seaKeep:.05,kNear:4,maxEdge:.3,jitter:.55,innerN:100,edgeLum:.3,edgeW:.95,beadBase:.16,beadLand:.38,nodeLum:.45,nodeR:.7,lineW:le,markH:1.02,markDepth:.16,markYaw:-.14,swayA:.09,swayRate:.21,markRimW:3.2,markGlassA:.55,markSolid:.95,bevel:.014,overMark:.25,wallA:.92,markBloom:.8,glassA:0,rimA:.45,linkReach:.3,linkLum:.75,pulseRate:.55,comets:7,cometSteps:22,cometSpeed:34,depthFade:.35,depthBlur:.35,dustN:60,rMin:.3},ms={...no,markSurface:1,markCut:1,markDepth:.05,markH:.98,markYaw:0,swayA:0,swayPitch:0,markX:-.016,markY:.007,linkReach:.17,linkShare:.35,markSolid:1,markGlassA:0,counterA:.7,markRimW:2,bevel:0,backRim:0,wallA:0,glassA:1.6,rimA:1.5,outerCage:0,farStipple:0},gs={"mesh-globe":{spread:.72,spin:.17,pitch:.3,roll:.04,perspective:.28,nodeN:130,thrMul:1.25,wander:.1,bandRate:.42,bandW:.22,edgeLum:.35,nodeLum:.62,nodeR:1,nodeRDepth:1.8,lineW:le,ringN:1,ringSegs:128,ringR:1.02,ringTilt:.08,ringLum:.7,ringCometRate:.19,tailFall:7,comets:5,cometSteps:18,cometSpeed:34,depthFade:.35,depthBlur:1.3,dustN:34,rMin:.35},"layer-stack":{slabs:4,hx:1,hz:1,hh:.1535,cornerR:.311,filletR:.1111,crispR:.0177,pitch:.7272,yawDeg:45,pitchDeg:26,rollDeg:0,perspective:0,fill:.73,verticalBias:0,density:1.5,filletSteps:8,cell:.2,ringStride:4,tieStride:2,lineW:le,inkMul:.96,surfaceA:.25,nodeRMul:.7,occlusion:.78,labelShift:.17,anchorIn:.16,depthFade:.35,depthBlur:1.3,comets:3,cometSteps:26,cometSpeed:30,dustN:30,rMin:.35},"geo-core":{spread:.73,spin:.13,pitch:.24,roll:0,perspective:.3,subdiv:1,breathA:.018,breathRate:.75,faceLum:.34,faceA:0,edgeLum:.6,vertLum:.8,vertR:1.8,vertRate:1.5,lineW:le,coreR:.26,coreN:130,coreFaceLum:.09,coreLineW:.75,coreDotR:.32,coreLum:.56,coreSpin:.55,driftA:0,ringSegs:120,labelSize:.034,labelRadius:1.35,labelRate:.6,labelRepeat:0,labelLum:.95,ringR:.62,ringTilt:.95,ringLum:.75,ringW:1.15,ringCometRate:.23,tailFall:8,comets:3,cometSteps:9,cometSpeed:26,sparks:4,depthFade:.35,depthBlur:1.3,dustN:30,rMin:.35},"brand-sphere":no,"brand-surface":ms},xs=.5,Ms={"mesh-globe":{320:{speed:1,count:1,size:1},96:{speed:1.35,count:.3,size:1.2,extra:{thrMul:1.34,wander:.13,ringSegs:64,edgeLum:.5,nodeLum:.8}}},"layer-stack":{320:{speed:1,count:1,size:1},96:{speed:1.3,count:1,size:1,extra:{density:.62,filletSteps:5,cell:.8,ringStride:3,tieStride:5,comets:1,dustN:12,inkMul:1.05,surfaceA:.16}}},"geo-core":{320:{speed:1,count:1,size:1},96:{speed:1.25,count:.45,size:1.45,extra:{subdiv:1,faceA:0,edgeLum:.2,vertLum:.8,vertR:1,coreLum:.23,labelSize:0,ringSegs:64,sparks:2}}},"brand-sphere":{320:{speed:1,count:1,size:1},96:{speed:1.25,count:1,size:1.3,extra:{linkReach:.34,markRimW:1.6,markBloom:.4,outerCage:0,flares:0}}},"brand-surface":{320:{speed:1,count:1,size:1},96:{speed:1.25,count:1,size:1.3,extra:{linkReach:.2,markRimW:1.6,markBloom:.4,outerCage:0,flares:0}}}},ro=new Map;function ys(t,e){const o=`${t}-${e}`,n=ro.get(o);if(n)return n;const r=Ms[t][e];let s={...gs[t]};r.count!==1&&(s=ps(s,r.count)),r.size!==1&&(s=fs(s,r.size)),r.extra&&(s={...s,...r.extra});const i={object:t,speed:xs*r.speed,opts:s};return ro.set(o,i),i}function bs(){var t;if(typeof navigator>"u")return!1;const e=navigator;return(t=e.connection)!=null&&t.saveData||typeof e.hardwareConcurrency=="number"&&e.hardwareConcurrency>0&&e.hardwareConcurrency<=4?!0:typeof e.deviceMemory=="number"&&e.deviceMemory<=4}let ao=!1;function ws(){return ao}const vs=4,zs=22,Ce=30,io=90,ks=250;function Ss(){let t=0,e=Number.NaN,o=0;const n=[];return{push(r,s){const i=s-e;if(e=s,t++,t<=Ce||(o+=r,i>0&&i<ks&&n.push(i),t<Ce+io))return!1;const l=o/io;n.sort((h,d)=>h-d);const a=n.length?n[n.length>>1]:0;t=Ce,o=0,n.length=0;const u=l>vs||a>zs;return u&&(ao=!0),u}}}function Zt(t){const e=Math.sin(t.yaw),o=Math.cos(t.yaw),n=Math.sin(t.pitch),r=Math.cos(t.pitch),s=Math.sin(t.roll),i=Math.cos(t.roll),{focal:l,scale:a,cx:u,cy:h}=t,d=!Number.isFinite(l);return(c,f)=>{const p=c.x*o+c.z*e,m=-c.x*e+c.z*o,g=c.y*r+m*n,M=-c.y*n+m*r,y=p*i-g*s,k=p*s+g*i,z=d?1:l/(l+M),S=f??{x:0,y:0,depth:0,k:1};return S.x=u+y*a*z,S.y=h-k*a*z,S.depth=M,S.k=z,S}}function Rs(t,e){const o=Math.cos(e);return{x:-o*Math.sin(t),y:-Math.sin(e),z:o*Math.cos(t)}}function lo(t,e,o,n,r,s){return(o-t)*(s-e)-(r-t)*(n-e)}function ce(t){return t>0?18/t:Number.POSITIVE_INFINITY}function he(){return{vertices:[],normals:[],edges:[],seen:new Map}}function mt(t,e,o,n){if(e===o)return;const r=e<o?`${e},${o}`:`${o},${e}`,s=t.seen.get(r);if(s!==void 0){n>t.edges[s].weight&&(t.edges[s].weight=n);return}t.seen.set(r,t.edges.length),t.edges.push({a:e,b:o,weight:n})}function Cs(t,e){const o=new Float32Array(t.length);for(let n=0;n<t.length;n++){const r=t[n];o[n]=-(r.x*e.x+r.y*e.y+r.z*e.z)}return o}const $s=.45,Fs=.16;function $e(t,e){let o=0;for(let n=1;n<t.length;n++){const r=t[n-1]*3,s=t[n]*3;o+=Math.hypot(e[s]-e[r],e[s+1]-e[r+1],e[s+2]-e[r+2])}return o}function As(t,e,o,n){const r=Array.from({length:t},()=>[]);for(const s of e)s.weight<$s||o&&(o[s.a]<=n||o[s.b]<=n)||(r[s.a].push(s.b),r[s.b].push(s.a));return r}function Is(t,e,o,n,r){const s=[o];let i=-1,l=o,a=0,u=0;for(let h=0;h<n;h++){let d=-1,c=-1/0,f=0,p=0;for(const m of t[l]){if(m===i)continue;const g=e[m*2]-e[l*2],M=e[m*2+1]-e[l*2+1],y=Math.hypot(g,M);if(y<.01)continue;const k=(a||u?(g*a+M*u)/y:0)+.4*Y(l*7+m,r);k>c&&(c=k,d=m,f=g/y,p=M/y)}if(d<0)break;a=f,u=p,i=l,l=d,s.push(l)}return s}function ue(t,e,o,n,r){if(r.count<=0)return[];const s=As(t,e,r.vis,r.visMin),i=o.filter(u=>s[u].length>1&&(!r.vis||r.vis[u]>r.visMin));if(i.length===0)return[];const l=[],a=Math.max(1,Math.floor(i.length/r.count));for(let u=0;u<r.count;u++){const h=i[(u*a+r.salt)%i.length],d=Is(s,n,h,r.steps,41+u*13+r.salt);d.length<4||l.push({path:new Uint32Array(d),phase:Y(h+u,53),radius:1.8+.7*Y(h,59)})}return l}function Fe(t,e,o,n,r){const s=t.path,i=s.length;let l=0;for(let d=1;d<i;d++){const c=s[d-1]*2,f=s[d]*2;l+=Math.hypot(e[f]-e[c],e[f+1]-e[c+1])}const a=n*l;let u=0;for(let d=1;d<i;d++){const c=s[d-1]*2,f=s[d]*2,p=Math.hypot(e[f]-e[c],e[f+1]-e[c+1]);if(u+p>=a||d===i-1){const m=p>1e-6?Math.min(1,(a-u)/p):0;r.x=e[c]+(e[f]-e[c])*m,r.y=e[c+1]+(e[f+1]-e[c+1])*m,r.z=o[s[d-1]]+(o[s[d]]-o[s[d-1]])*m;break}u+=p}const h=Math.min(1,Math.max(0,Math.min(n,1-n)/Fs));return r.fade=h*h*(3-2*h),r}function Ls(t,e){const o=t.path;let n=0;for(let r=1;r<o.length;r++){const s=o[r-1]*2,i=o[r]*2;n+=Math.hypot(e[i]-e[s],e[i+1]-e[s+1])}return n}const de=6,co=.1,Et={x:0,y:0,z:0,fade:0},Ae={x:0,y:0,z:0,fade:0},pe={x:0,y:0,z:0,fade:0},_s=Math.PI/4;function fe(t,e,o,n,r,s,i){const l=Ls(t,e);if(l<12)return;const a=t.span!==void 0&&i.unit?t.span*i.unit*_s:l,u=Ot(i.loop).period(a/i.speed),h=((n/u+t.phase)%1+1)%1;if(Fe(t,e,o,h,Et),!(Et.fade<=.01)){for(let d=de;d>=1;d--){const c=h-d/de*co,f=h-(d-1)/de*co;if(c<=0)continue;Fe(t,e,o,c,Ae),Fe(t,e,o,f,pe);const p=1-(d-1)/de;r.push({x1:Ae.x,y1:Ae.y,x2:pe.x,y2:pe.y,z:pe.z,lum:.95,a:.5*p*p*Et.fade,w:i.w*t.radius*.7*p,glow:.6*p})}s.push({x:Et.x,y:Et.y,z:Et.z,r:t.radius*i.rMul,lum:.95,a:Et.fade,glow:1,bloom:1})}}const ho="M471.2,398c.8-42.4-31.2-78.2-73.4-82.2v-.9c35.1-10.6,59.1-36.1,59.1-74.5,0-62-52.8-85.6-104.3-85.6h-173.8v5.1l17.5,14.9c20.9,17.1,23.6,20.3,23.6,35.8v284.5h122.6,0c0,0,0,0,0,0,64.4,0,128.8-23,128.8-97ZM280.5,206.8h50c33.7,0,44.1,4.7,54.4,14.4,7.8,7.8,11.9,18.4,11.3,29.4.3,10.7-4,21.1-11.8,28.5h0s-.2,0-.2,0c-10,9.5-23.8,14.3-48.8,14.3h-55.1v-86.5ZM336.2,443.2h-55.8v-98h58.2c49,0,72,12.5,72,48.1s-43.2,50-74.4,50Z",Ts=.0015;function Bs(t){const e=[],o=/([MmLlHhVvCcSsZz])|(-?(?:\d+\.?\d*|\.\d+)(?:e-?\d+)?)/g;for(let n=o.exec(t);n;n=o.exec(t))e.push(n[1]??Number(n[2]));return e}function me(t,e,o,n,r,s,i,l,a,u,h=0){const d=l-e,c=a-o,f=Math.hypot(d,c)||1,p=Math.abs((n-e)*c-(r-o)*d)/f,m=Math.abs((s-e)*c-(i-o)*d)/f;if(h>12||p+m<=u){t.push(l,a);return}const g=(e+n)/2,M=(o+r)/2,y=(n+s)/2,k=(r+i)/2,z=(s+l)/2,S=(i+a)/2,B=(g+y)/2,E=(M+k)/2,W=(y+z)/2,b=(k+S)/2,F=(B+W)/2,j=(E+b)/2;me(t,e,o,g,M,B,E,F,j,u,h+1),me(t,F,j,W,b,z,S,l,a,u,h+1)}function uo(t,e){const o=Bs(t),n=[];let r=[],s=0,i="",l=0,a=0,u=0,h=0,d=0,c=0,f=!1;const p=()=>{const g=o[s++];if(typeof g!="number")throw new Error(`brandMark: expected a number at token ${s-1}`);return g},m=()=>{r.length>=6&&n.push(r),r=[]};for(;s<o.length;){typeof o[s]=="string"&&(i=o[s++]);const g=i===i.toLowerCase(),M=g?l:0,y=g?a:0;switch(i.toUpperCase()){case"M":m(),l=M+p(),a=y+p(),u=l,h=a,r.push(l,a),i=g?"l":"L",f=!1;break;case"L":l=M+p(),a=y+p(),r.push(l,a),f=!1;break;case"H":l=M+p(),r.push(l,a),f=!1;break;case"V":a=y+p(),r.push(l,a),f=!1;break;case"C":{const k=M+p(),z=y+p(),S=M+p(),B=y+p(),E=M+p(),W=y+p();me(r,l,a,k,z,S,B,E,W,e),d=S,c=B,l=E,a=W,f=!0;break}case"S":{const k=f?2*l-d:l,z=f?2*a-c:a,S=M+p(),B=y+p(),E=M+p(),W=y+p();me(r,l,a,k,z,S,B,E,W,e),d=S,c=B,l=E,a=W,f=!0;break}case"Z":l=u,a=h,m(),f=!1;break;default:throw new Error(`brandMark: unsupported path command ${i}`)}}return m(),n.map(Ps)}function Ps(t){const e=[];for(let o=0;o<t.length;o+=2){const n=e.length;n>=2&&Math.hypot(t[o]-e[n-2],t[o+1]-e[n-1])<1e-6||e.push(t[o],t[o+1])}return e.length>=4&&Math.hypot(e[0]-e[e.length-2],e[1]-e[e.length-1])<1e-6&&(e.length-=2),e}let ge=null;function Ns(){if(ge)return ge;const t=uo(ho,1);let e=1/0,o=1/0,n=-1/0,r=-1/0;for(const i of t)for(let l=0;l<i.length;l+=2)e=Math.min(e,i[l]),n=Math.max(n,i[l]),o=Math.min(o,i[l+1]),r=Math.max(r,i[l+1]);const s=r-o;return ge={rings:uo(ho,Ts*s).map(i=>{const l=[];for(let a=0;a<i.length;a+=2)l.push((i[a]-(e+n)/2)/s,-(i[a+1]-(o+r)/2)/s);return l}),aspect:(n-e)/s},ge}function It(t,e){const o=Math.sin(t*91.7+e*47.3)*24634.6345;return o-Math.floor(o)}const po=new Map;function Ds(t){const e=po.get(t);if(e)return e;const o=[];for(let n=0;n<t;n++){const r=It(n,5)>.62;o.push({u:It(n,1),v:It(n,2),r:r?1.6+It(n,3)*3.4:.5+It(n,3)*1.1,alpha:r?.06+It(n,4)*.1:.28+It(n,4)*.5,speed:(It(n,6)-.35)*3.4,sway:3+It(n,7)*9,phase:It(n,8)*Math.PI*2,soft:r})}return po.set(t,o),o}function xe(t,e,o,n,r){const s=Ds(t),i=e+40,l=Ot(r),a=l.rate(1.1),u=l.rate(.16),h=[];for(let d=0;d<s.length;d++){const c=s[d],f=Math.round(c.speed*l.T/i),p=c.speed*l.T-f*i,m=Math.PI*2/l.T*o;let g=c.v*i-f*i*o/l.T-p/(Math.PI*2)*Math.sin(m);g=(g%i+i)%i;const M=c.soft?1:.55+.45*Math.sin(o*a+c.phase);h.push({x:c.u*e+Math.sin(o*u+c.phase)*c.sway,y:g-20,z:0,r:c.r*n,lum:c.alpha*M,glow:c.soft?0:.35})}return h}const fo=new WeakMap;function Es(t){return Math.max(.15,Math.min(1,(t/600)**1.3))}function Ws(t,e,o){const n=Math.max(0,Math.min(1,(t-e)/(o-e)));return n*n*(3-2*n)}function mo(t,e,o){const n=Math.floor(t),r=Math.floor(e),s=Math.floor(o),i=g=>g*g*(3-2*g),l=i(t-n),a=i(e-r),u=i(o-s),h=(g,M,y)=>Y(g*73+M*151+y*283,61),d=(g,M,y)=>g+(M-g)*y,c=d(h(n,r,s),h(n+1,r,s),l),f=d(h(n,r+1,s),h(n+1,r+1,s),l),p=d(h(n,r,s+1),h(n+1,r,s+1),l),m=d(h(n,r+1,s+1),h(n+1,r+1,s+1),l);return d(d(c,f,a),d(p,m,a),u)}function Hs(t,e){let o=fo.get(t);o||(o=new Map,fo.set(t,o));const n=Math.round(e*1e3),r=o.get(n);if(r)return r;const s=Math.max(60,Math.round((t.nodeN??1400)*e)),i=t.clusterFreq??2.2,l=[],a=[],u=Math.sqrt(4*Math.PI/s),h=(t.jitter??.55)*u;for(let b=0;b<s;b++){const F=ae(b,s),j=F[0]+(Y(b,62)-.5)*2*h,q=F[1]+(Y(b,63)-.5)*2*h,G=F[2]+(Y(b,64)-.5)*2*h,K=Math.hypot(j,q,G)||1,N=[j/K,q/K,G/K],v=.68*mo(N[0]*i+5,N[1]*i+9,N[2]*i+3)+.32*mo(N[0]*i*2.6+1,N[1]*i*2.6+7,N[2]*i*2.6+4),R=Math.max(0,Math.min(1,(v-.44)/.14)),A=t.seaKeep??.06,H=A+(.96-A)*R;Y(b,52)>H||(l.push(N[0],N[1],N[2]),a.push(R))}const d=l.length/3,c=Math.max(0,Math.round((t.innerN??110)*Math.sqrt(e)));for(let b=0;b<c;b++){const F=ae(b,c),j=.56+.34*Y(b,53),q=(Y(b,54)-.5)*.3,G=(Y(b,55)-.5)*.3,K=(Y(b,56)-.5)*.3,N=Math.hypot(F[0]+q,F[1]+G,F[2]+K)||1;l.push((F[0]+q)/N*j,(F[1]+G)/N*j,(F[2]+K)/N*j),a.push(.3)}const f=l.length/3,p=Float64Array.from(l),m=he(),g=Math.max(1,Math.round(t.kNear??4)),M=t.maxEdge??.34,y=(b,F)=>Math.hypot(p[b*3]-p[F*3],p[b*3+1]-p[F*3+1],p[b*3+2]-p[F*3+2]),k=(b,F,j,q,G)=>{const K=[];for(let N=F;N<j;N++){if(N===b)continue;const v=y(b,N);v>G||(K.length<q?(K.push([v,N]),K.sort((R,A)=>R[0]-A[0])):v<K[q-1][0]&&(K[q-1]=[v,N],K.sort((R,A)=>R[0]-A[0])))}return K};for(let b=0;b<d;b++)for(const[F,j]of k(b,0,d,g,M))mt(m,b,j,.45+.5*(1-F/M)*(.5+.5*a[b]));for(let b=d;b<f;b++){for(const[F,j]of k(b,0,d,2,.5))mt(m,b,j,.3+.4*(1-F/.5));for(const[F,j]of k(b,d,f,1,.42))mt(m,b,j,.3+.3*(1-F/.42))}const z=new Float64Array(f*2);for(let b=0;b<f;b++)z[b*2]=p[b*3]*100,z[b*2+1]=-p[b*3+1]*100;const S=ue(f,m.edges,Array.from({length:d},(b,F)=>F),z,{count:Math.max(0,Math.round(t.comets??7)),steps:Math.max(4,Math.round(t.cometSteps??22)),speed:t.cometSpeed??34,vis:null,visMin:0,salt:17});for(const b of S)b.span=$e(b.path,p);const B=Math.max(0,Math.round(t.flares??0)),E=Array.from({length:d},(b,F)=>F).filter(b=>a[b]>.6).sort((b,F)=>Y(b,71)-Y(F,71)).slice(0,B),W={pos:p,shell:d,count:f,dense:Float32Array.from(a),flares:E,edges:m.edges,routes:S};return o.set(n,W),W}let Me=null;function js(){if(Me)return Me;const{rings:t}=Ns(),e=t.map(s=>{const i=[],l=s.length/2;for(let a=0;a<l;a++){const u=(a-1+l)%l*2,h=(a+1)%l*2,d=s[h]-s[u],c=s[h+1]-s[u+1],f=Math.hypot(d,c)||1;i.push(c/f,-d/f)}return i}),o=xo(t[0],34,0),n=go(t[0])/34,r=t.flatMap((s,i)=>xo(s,Math.max(3,Math.round(go(s)/n)),i*.37));return Me={rings:t,normals:e,anchors:o,anchorsAll:r},Me}function go(t){const e=t.length/2;let o=0;for(let n=0;n<e;n++){const r=(n+1)%e*2;o+=Math.hypot(t[r]-t[n*2],t[r+1]-t[n*2+1])}return o}function xo(t,e,o){const n=t.length/2;let r=0;const s=[0];for(let a=1;a<=n;a++){const u=(a-1)%n*2,h=a%n*2;r+=Math.hypot(t[h]-t[u],t[h+1]-t[u+1]),s.push(r)}const i=[];let l=0;for(let a=0;a<e;a++){const u=(a+o)/e*r;for(;l<n-1&&s[l+1]<u;)l++;const h=l%n*2,d=(l+1)%n*2,c=(u-s[l])/Math.max(1e-9,s[l+1]-s[l]);i.push(t[h]+(t[d]-t[h])*c,t[h+1]+(t[d+1]-t[h+1])*c)}return i}const Ie=(1+Math.sqrt(5))/2;let ye=null,Le=[];function qs(){if(ye)return ye;const t=[];for(const n of[-1,1])for(const r of[-Ie,Ie])t.push([0,n,r],[n,r,0],[r,0,n]);const e=Math.hypot(1,Ie);ye=t.map(([n,r,s])=>[n/e,r/e,s/e]);const o=2/e;Le=[];for(let n=0;n<12;n++)for(let r=n+1;r<12;r++){const s=Math.hypot(t[n][0]-t[r][0],t[n][1]-t[r][1],t[n][2]-t[r][2])/e;Math.abs(s-o)<1e-6&&Le.push([n,r])}return ye}function _e(t,e,o){let n=!1;for(const r of t)for(let s=0,i=r.length-2;s<r.length;i=s,s+=2){const l=r[s+1],a=r[i+1];l>o!=a>o&&e<(r[i]-r[s])*(o-l)/(a-l)+r[s]&&(n=!n)}return n}const yt=24;let te=null;function Ys(t){if(te&&te.polys.length===t.length&&te.polys.every((h,d)=>h.length===t[d].length&&h.every((c,f)=>c===t[d][f])))return te.outline;const e=[1/0,1/0,-1/0,-1/0];for(let h=0;h<t[0].length;h+=2)e[0]=Math.min(e[0],t[0][h]),e[1]=Math.min(e[1],t[0][h+1]),e[2]=Math.max(e[2],t[0][h]),e[3]=Math.max(e[3],t[0][h+1]);const o=(e[2]-e[0])/yt||1,n=(e[3]-e[1])/yt||1,r=h=>Math.max(0,Math.min(yt-1,Math.floor((h-e[0])/o))),s=h=>Math.max(0,Math.min(yt-1,Math.floor((h-e[1])/n))),i=Array.from({length:yt*yt},()=>[]),l=[];t.forEach((h,d)=>{for(let c=0,f=h.length-2;c<h.length;f=c,c+=2){const p=l.length/3;l.push(d,f,c);const m=r(Math.min(h[c],h[f])),g=r(Math.max(h[c],h[f])),M=s(Math.min(h[c+1],h[f+1])),y=s(Math.max(h[c+1],h[f+1]));for(let k=M;k<=y;k++)for(let z=m;z<=g;z++)i[k*yt+z].push(p)}});const a=new Int8Array(yt*yt);for(let h=0;h<yt*yt;h++)i[h].length||(a[h]=_e(t,e[0]+(h%yt+.5)*o,e[1]+(Math.floor(h/yt)+.5)*n)?1:0);const u={box:e,gx:r,gy:s,cellEdges:i,edgeList:l,inside:(h,d)=>{if(h<e[0]||h>e[2]||d<e[1]||d>e[3])return!1;const c=s(d)*yt+r(h);return i[c].length?_e(t,h,d):a[c]===1}};return te={polys:t,outline:u},u}const Mo=(t,e,o)=>{const n=Ot(o.loop),r=Es(t),s=Hs(o,r),i=js(),l=t/2*(o.spread??.78),a=t/2,u=t/2,h=t/320,d=h>1?h**(o.penPow??.5):h,c=(o.lineW??.5)*Math.max(.55,d),f=o.depthFade??0,p=o.depthBlur??0,m=ce(o.perspective??.18),g=Zt({yaw:e*n.rate(o.spin??.1),pitch:(o.pitch??.26)+.05*Math.sin(e*n.rate(.13)),roll:o.roll??-.12,focal:m,scale:l,cx:a,cy:u}),M=Zt({yaw:(o.swayA??.2)*Math.sin(e*n.rate(o.swayRate??.21))+(o.markYaw??.2),pitch:(o.swayPitch??.06)*Math.sin(e*n.rate(.17)),roll:0,focal:m,scale:l,cx:a,cy:u}),y={x:0,y:0,z:0},k={x:0,y:0,depth:0,k:1},z=s.count,S=new Float64Array(z*2),B=new Float64Array(z),E=new Float64Array(z*3),W=new Float32Array(z);for(let x=0;x<z;x++){y.x=s.pos[x*3],y.y=s.pos[x*3+1],y.z=s.pos[x*3+2];const $=g(y,k);S[x*2]=$.x,S[x*2+1]=$.y,B[x]=$.depth,E[x*3]=($.x-a)/(l*$.k),E[x*3+1]=-($.y-u)/(l*$.k),E[x*3+2]=$.depth,W[x]=St($.depth)}y.x=0,y.y=0,y.z=0;const b=M(y,k).depth,F={faces:[],lines:[],dots:[]},j={faces:[],lines:[],dots:[]},q=x=>x>b?F:j,G=x=>{const $=[];for(let I=0;I<72;I++){const _=I/72*Math.PI*2;$.push(a+Math.cos(_)*x,u+Math.sin(_)*x)}return $};F.faces.push({pts:G(l*1.002),z:9,lum:1,a:o.glassA??1,grad:"orb"}),j.faces.push({pts:G(l*1.12),z:-9,lum:1,a:o.rimA??1,grad:"rim"});const K=o.edgeLum??.3,N=(o.farStipple??0)>0;for(const x of s.edges){const $=(W[x.a]+W[x.b])*.5,I=(B[x.a]+B[x.b])*.5;if(N&&I>b&&x.a<s.shell&&x.b<s.shell)continue;const _=(S[x.a*2]+S[x.b*2])/2,O=(S[x.a*2+1]+S[x.b*2+1])/2,U=wt($,f,p);q(I).lines.push({x1:S[x.a*2],y1:S[x.a*2+1],x2:S[x.b*2],y2:S[x.b*2+1],z:I,lum:(K+.4*$)*(.55+.45*x.weight),a:(.35+.65*$)*U.aLine,w:c*(o.edgeW??.75)*(1+.65*$)*U.m,glow:.45*Bt(_,O,t,$)})}const v=(o.nodeR??.7)*d;for(let x=0;x<z;x++){const $=W[x],I=s.dense[x];if(N&&x<s.shell&&B[x]>b){F.dots.push({x:S[x*2],y:S[x*2+1],z:B[x],r:(.55+.35*I)*d,lum:(o.stippleLum??.42)*(.45+.55*I)*(.55+.45*$),glow:.25});continue}if(Y(x,57)>(o.beadBase??.3)+(o.beadLand??.55)*I)continue;const _=wt($,f,p),O=Bt(S[x*2],S[x*2+1],t,$);q(B[x]).dots.push({x:S[x*2],y:S[x*2+1],z:B[x],r:(v*(.7+.6*I)+1.1*d*$)*_.m,lum:(o.nodeLum??.5)+.38*$+.2*O,a:_.aDot,glow:.4+.5*O})}for(let x=0;x<s.flares.length;x++){const $=s.flares[x],I=W[$],_=.8+.2*Math.sin(e*n.rate(.4)+x*2.1);q(B[$]).dots.push({x:S[$*2],y:S[$*2+1],z:B[$]-.001,r:(o.flareR??2.4)*d*_*(.6+.4*I),lum:.75+.25*I,glow:1})}const R=o.outerCage??0;if(R>0){const x=qs().map(([I,_,O])=>{const U=Math.cos(.55),nt=Math.sin(.55),T=Math.cos(.33),it=Math.sin(.33),dt=I*U+O*nt,Mt=-I*nt+O*U,P=_*T-Mt*it,lt=_*it+Mt*T;return y.x=dt*R,y.y=P*R,y.z=lt*R,g(y,{x:0,y:0,depth:0,k:1})}),$=o.outerLum??.32;for(const[I,_]of Le){const O=x[I],U=x[_],nt=(O.depth+U.depth)/2,T=St(nt,R);q(nt).lines.push({x1:O.x,y1:O.y,x2:U.x,y2:U.y,z:nt,lum:$*(.45+.55*T),w:c*.85,glow:.2})}for(const I of x){const _=St(I.depth,R);q(I.depth).dots.push({x:I.x,y:I.y,z:I.depth,r:.9*d*(.7+.5*_),lum:$+.3*_,glow:.5})}}const A=(o.markSurface??0)>0,H=o.markH??.9,J=(o.markDepth??.12)*H,V=o.markX??0,rt=o.markY??0,ot=(x,$,I)=>{const _=(x+V)*H,O=($+rt)*H;if(A){const U=1+J*(1-I)/2;y.x=_*U,y.y=O*U,y.z=-Math.sqrt(Math.max(0,1-_*_-O*O))*U}else y.x=_,y.y=O,y.z=I*J/2;return M(y,{x:0,y:0,depth:0,k:1})},ft=[],vt=[],bt=[],zt=[],kt=-1,Lt=1,ht=i.rings.map(x=>{const $=[];for(let I=0;I<x.length;I+=2)$.push(ot(x[I],x[I+1],kt));return $}),gt=i.rings.map(x=>{const $=[];for(let I=0;I<x.length;I+=2)$.push(ot(x[I],x[I+1],Lt));return $}),Q=x=>{const $=[];for(const I of x)$.push(I.x,I.y);return $},L=ht.map(Q),tt=(o.markCut??0)>0,st=tt?Ys(L):null,at=st?st.inside:(x,$)=>_e(L,x,$),xt=-.62,Ct=.78,Ft=o.markGlassA??1;ft.push({pts:Q(gt[0]),holes:gt.slice(1).map(Q),z:-1e3,lum:1,a:.55*Ft,grad:"glass"});const w=o.counterA??0;if(w>0)for(let x=1;x<ht.length;x++)ft.push({pts:Q(ht[x]),z:-999,lum:1,a:w,grad:"glass"});i.rings.forEach((x,$)=>{const I=x.length/2,_=i.normals[$];for(let O=0;O<I;O++){const U=(O+1)%I,nt=(_[O*2]+_[U*2])/2,T=(_[O*2+1]+_[U*2+1])/2,it=(x[O*2]+x[U*2])/2,dt=(x[O*2+1]+x[U*2+1])/2,Mt=ot(it,dt,0).depth;if(ot(it+nt*.02,dt+T*.02,0).depth>=Mt)continue;const P=Math.max(0,nt*xt+T*Ct),lt=ht[$][O],ut=ht[$][U],Wt=gt[$][O],At=gt[$][U],_t=(Ht,Tt)=>Math.round(Ht+(Tt-Ht)*P);ft.push({pts:[lt.x,lt.y,ut.x,ut.y,At.x,At.y,Wt.x,Wt.y],z:-(lt.depth+At.depth)/2,lum:1,rgb:`${_t(0,96)},${_t(86,168)},${_t(222,255)}`,a:o.wallA??.92})}}),ft.push({pts:Q(ht[0]),holes:ht.slice(1).map(Q),z:999,lum:1,rgb:"0,109,255",a:o.markSolid??.82}),ft.push({pts:Q(ht[0]),holes:ht.slice(1).map(Q),z:1e3,lum:1,a:Ft,grad:"glass"});for(const x of ht[0])vt.push(x.x,x.y);const C=Ws(t,360,520),D=(o.backRim??.24)*C;i.rings.forEach((x,$)=>{const I=x.length/2,_=i.normals[$];for(let T=0;T<I;T++){const it=(T+1)%I,dt=Math.max(0,(_[T*2]+_[it*2])/2*xt+(_[T*2+1]+_[it*2+1])/2*Ct),Mt=ht[$][T],P=ht[$][it];bt.push({x1:Mt.x,y1:Mt.y,x2:P.x,y2:P.y,z:Mt.depth-2,lum:.5+.48*dt,w:c*(o.markRimW??2.2)*(.8+.4*dt),glow:.35+.65*dt});const lt=gt[$][T],ut=gt[$][it];D>0&&bt.push({x1:lt.x,y1:lt.y,x2:ut.x,y2:ut.y,z:lt.depth,lum:D,w:c*1.1})}const O=o.bevel??.014;if(C<=.01||O<=0)return;const U=T=>ot(x[T*2]-_[T*2]*O,x[T*2+1]-_[T*2+1]*O,kt);let nt=U(0);for(let T=1;T<=I;T++){const it=U(T%I),dt=Math.max(0,_[T%I*2]*xt+_[T%I*2+1]*Ct);bt.push({x1:nt.x,y1:nt.y,x2:it.x,y2:it.y,z:it.depth-2,lum:.22+.3*dt,a:C,w:c}),nt=it}});const Z=o.overMark??.25;if(Z<1&&!tt){for(const x of j.lines)at((x.x1+x.x2)/2,(x.y1+x.y2)/2)&&(x.a=(x.a??1)*Z);for(const x of j.dots)at(x.x,x.y)&&(x.a=(x.a??1)*Z)}const X=o.linkReach??.3,et=o.linkLum??.75,Nt=o.linkShare??.35,Kt=tt?i.anchorsAll:i.anchors,oe=[];for(let x=A?0:s.shell;x<(A?s.shell:z);x++)A&&B[x]>0||tt&&at(S[x*2],S[x*2+1])||oe.push(x);for(let x=0;x<Kt.length/2;x++){const $=Kt[x*2],I=Kt[x*2+1],_=ot($,I,kt),O=(_.x-a)/(l*_.k),U=-(_.y-u)/(l*_.k);let nt=0;for(const T of oe){const it=E[T*3]-O,dt=E[T*3+1]-U,Mt=E[T*3+2]-_.depth,P=Math.hypot(it,dt,Mt);if(P>X||A&&Y(T*31+x,74)>Nt)continue;const lt=1-P/X,ut=lt*lt;nt++;const Wt=W[T],At=(B[T]+_.depth)/2;if(!(tt&&at((_.x+S[T*2])/2,(_.y+S[T*2+1])/2))&&(q(At).lines.push({x1:_.x,y1:_.y,x2:S[T*2],y2:S[T*2+1],z:At,lum:et*(.5+.5*Wt),a:ut,w:c*(.8+.5*ut),glow:.5*ut}),ut>.25&&Y(T*31+x,58)<.34)){const _t=Yt(e*n.freq(o.pulseRate??.55)+Y(T*7+x,59)),Ht=S[T*2]+(_.x-S[T*2])*_t,Tt=S[T*2+1]+(_.y-S[T*2+1])*_t,pt=Math.sin(Math.PI*_t);q(At).dots.push({x:Ht,y:Tt,z:At-.01,r:1.1*d,lum:.95,a:ut*pt,glow:1})}}zt.push({x:_.x,y:_.y,z:_.depth-3,r:(.9+.5*Math.min(1,nt/3))*d,lum:.6+.35*Math.min(1,nt/3),glow:.6})}const se=[],He=[];for(const x of s.routes)fe(x,S,B,e,se,He,{speed:o.cometSpeed??34,rMul:d,w:c,unit:l,loop:n.T});for(const x of se)q(x.z).lines.push(x);for(const x of He)q(x.z).dots.push(x);if(st){const{box:x,gx:$,gy:I,cellEdges:_,edgeList:O}=st,U=new Int32Array(O.length/3);let nt=0;const T=[],it=dt=>{dt.dots=dt.dots.filter(P=>!at(P.x,P.y));const Mt=[];for(const P of dt.lines){if(Math.max(P.x1,P.x2)<x[0]||Math.min(P.x1,P.x2)>x[2]||Math.max(P.y1,P.y2)<x[1]||Math.min(P.y1,P.y2)>x[3]){Mt.push(P);continue}const lt=P.x2-P.x1,ut=P.y2-P.y1;T.length=0,nt++;const Wt=$(Math.min(P.x1,P.x2)),At=$(Math.max(P.x1,P.x2)),_t=I(Math.min(P.y1,P.y2)),Ht=I(Math.max(P.y1,P.y2));for(let pt=_t;pt<=Ht;pt++)for(let $t=Wt;$t<=At;$t++)for(const Ut of _[pt*yt+$t]){if(U[Ut]===nt)continue;U[Ut]=nt;const jt=L[O[Ut*3]],ne=O[Ut*3+1],qe=O[Ut*3+2],Ye=jt[qe]-jt[ne],Oe=jt[qe+1]-jt[ne+1],ve=lt*Oe-ut*Ye;if(ve===0)continue;const Ge=jt[ne]-P.x1,Ze=jt[ne+1]-P.y1,ze=(Ge*Oe-Ze*Ye)/ve,Xe=(Ge*ut-Ze*lt)/ve;ze>0&&ze<1&&Xe>=0&&Xe<1&&T.push(ze)}if(!T.length){at(P.x1+lt/2,P.y1+ut/2)||Mt.push(P);continue}T.sort((pt,$t)=>pt-$t);let Tt=0;T.push(1);for(const pt of T){const $t=(Tt+pt)/2;pt-Tt>1e-6&&!at(P.x1+lt*$t,P.y1+ut*$t)&&Mt.push({...P,x1:P.x1+lt*Tt,y1:P.y1+ut*Tt,x2:P.x1+lt*pt,y2:P.y1+ut*pt}),Tt=pt}for(let pt=0;pt<T.length-1;pt++){const $t=T[pt];dt.dots.push({x:P.x1+lt*$t,y:P.y1+ut*$t,z:P.z-.001,r:.9*d,lum:Math.min(1,P.lum+.25),a:P.a,glow:.5})}}dt.lines=Mt};it(F),it(j)}const we=(o.rMin??.3)*d,Eo=[Gt({...F,z:1},we),{...Gt({faces:ft,lines:bt,dots:zt,z:A?-2:b},we),bloom:vt,bloomScale:d*(o.markBloom??1.4)},Gt({...j,z:-1},we)],je=ie(xe(Math.round((o.dustN??60)*Math.sqrt(r)),t,e,d,n.T),Eo);return je.sphere={x:a,y:u,r:l},je},Rt=(1+Math.sqrt(5))/2,Os=[[-1,Rt,0],[1,Rt,0],[-1,-Rt,0],[1,-Rt,0],[0,-1,Rt],[0,1,Rt],[0,-1,-Rt],[0,1,-Rt],[Rt,0,-1],[Rt,0,1],[-Rt,0,-1],[-Rt,0,1]].map(t=>{const e=Math.hypot(t[0],t[1],t[2]);return[t[0]/e,t[1]/e,t[2]/e]}),Gs=[[0,11,5],[0,5,1],[0,1,7],[0,7,10],[0,10,11],[1,5,9],[5,11,4],[11,10,2],[10,7,6],[7,1,8],[3,9,4],[3,4,2],[3,2,6],[3,6,8],[3,8,9],[4,9,5],[2,4,11],[6,2,10],[8,6,7],[9,8,1]],yo=new Map;function Zs(t,e,o){const n=`${t}|${e}|${o}`,r=yo.get(n);if(r)return r;const s=Os.slice();let i=Gs.slice();for(let c=0;c<t;c++){const f=new Map,p=[],m=(g,M)=>{const y=g<M?`${g}_${M}`:`${M}_${g}`,k=f.get(y);if(k!==void 0)return k;const z=s[g],S=s[M],B=z[0]+S[0],E=z[1]+S[1],W=z[2]+S[2],b=Math.hypot(B,E,W)||1;s.push([B/b,E/b,W/b]);const F=s.length-1;return f.set(y,F),F};for(const[g,M,y]of i){const k=m(g,M),z=m(M,y),S=m(y,g);p.push([g,k,S],[M,z,k],[y,S,z],[k,z,S])}i=p}const l=he();for(const c of i)for(let f=0;f<3;f++)mt(l,c[f],c[(f+1)%3],.9);const a=new Float64Array(s.length*2);for(let c=0;c<s.length;c++)a[c*2]=s[c][0]*100,a[c*2+1]=-s[c][1]*100;const u=ue(s.length,l.edges,Array.from({length:s.length},(c,f)=>f),a,{count:e,steps:o,vis:null,visMin:0,salt:13}),h=s.flat();for(const c of u)c.span=$e(c.path,h);const d={verts:s,faces:i,edges:l.edges,routes:u};return yo.set(n,d),d}const bo=new Map;function Xs(t){const e=bo.get(t);if(e)return e;const o=[],n=Math.sqrt(4*Math.PI/t);for(let f=0;f<t;f++){const p=ae(f,t),m=Math.floor((p[0]+2)/.7)*31+Math.floor((p[1]+2)/.7)*7+Math.floor((p[2]+2)/.7);if(Y(m,21)>.72&&Y(f,22)<.55)continue;const g=p[0]+(Y(f,23)-.5)*n*.66,M=p[1]+(Y(f,24)-.5)*n*.66,y=p[2]+(Y(f,25)-.5)*n*.66,k=Math.hypot(g,M,y)||1;o.push(g/k,M/k,y/k)}const r=o.length/3,s=Float64Array.from(o),i=n*3.4,l=Array.from({length:r},()=>[]);for(let f=0;f<r;f++)for(let p=f+1;p<r;p++)Math.hypot(s[f*3]-s[p*3],s[f*3+1]-s[p*3+1],s[f*3+2]-s[p*3+2])<i&&l[f].push(p);const a=(f,p)=>f<p?l[f].includes(p):l[p].includes(f),u=[];for(let f=0;f<r;f++){const p=l[f];for(let m=0;m<p.length;m++){const g=p[m];for(let M=m+1;M<p.length;M++){const y=p[M];if(!a(g,y))continue;const k=s[g*3]-s[f*3],z=s[g*3+1]-s[f*3+1],S=s[g*3+2]-s[f*3+2],B=s[y*3]-s[f*3],E=s[y*3+1]-s[f*3+1],W=s[y*3+2]-s[f*3+2];let b=z*W-S*E,F=S*B-k*W,j=k*E-z*B,q=!1;b*s[f*3]+F*s[f*3+1]+j*s[f*3+2]<0&&(b=-b,F=-F,j=-j,q=!0);const G=b*s[f*3]+F*s[f*3+1]+j*s[f*3+2];let K=!0;for(let N=0;N<r&&K;N++)N===f||N===g||N===y||b*s[N*3]+F*s[N*3+1]+j*s[N*3+2]>G+1e-12&&(K=!1);K&&u.push(q?[f,g,y]:[f,y,g])}}}const h=new Set,d=[];for(const f of u)for(let p=0;p<3;p++){const m=Math.min(f[p],f[(p+1)%3]),g=Math.max(f[p],f[(p+1)%3]),M=m*4096+g;h.has(M)||(h.add(M),d.push(m,g,.55+.45*Y(M,26)))}const c={verts:s,faces:u,edges:Float64Array.from(d)};return bo.set(t,c),c}const Vs=(t,e,o)=>{const n=Ot(o.loop),r=Zs(Math.max(0,Math.min(2,Math.round(o.subdiv??0))),Math.max(0,Math.round(o.comets??3)),Math.max(4,Math.round(o.cometSteps??9))),s=t/2*(o.spread??.76),i=Zt({yaw:e*n.rate(o.spin??.13),pitch:(o.pitch??.24)+.16*Math.sin(e*n.rate(.19)),roll:o.roll??0,focal:ce(o.perspective??.3),scale:s,cx:t/2,cy:t/2}),l={x:0,y:0,depth:0,k:1},a={x:0,y:0,z:0},u=t/320,h=(o.lineW??1.05)*Math.max(.55,u),d=o.depthFade??0,c=o.depthBlur??0,f=1+(o.breathA??.018)*Math.sin(e*n.rate(o.breathRate??.75)),p=r.verts.length,m=new Float64Array(p*2),g=new Float64Array(p),M=new Float32Array(p);for(let w=0;w<p;w++){const C=r.verts[w];a.x=C[0]*f,a.y=C[1]*f,a.z=C[2]*f;const D=i(a,l);m[w*2]=D.x,m[w*2+1]=D.y,g[w]=D.depth,M[w]=St(D.depth)}const y=[],k=[],z=[],S=o.faceLum??.15,B=o.nearFaceA??0;for(const[w,C,D]of r.faces){const Z=(g[w]+g[C]+g[D])/3,X=St(Z),et=lo(m[w*2],m[w*2+1],m[C*2],m[C*2+1],m[D*2],m[D*2+1])<0?1:B;et<=0||y.push({pts:[m[w*2],m[w*2+1],m[C*2],m[C*2+1],m[D*2],m[D*2+1]],z:Z,lum:S*et,a:(o.faceA??.55)*(.3+.7*X)*wt(X,d,c).aFace})}for(const w of r.edges){const C=(M[w.a]+M[w.b])*.5,D=(m[w.a*2]+m[w.b*2])/2,Z=(m[w.a*2+1]+m[w.b*2+1])/2,X=Bt(D,Z,t,C),et=wt(C,d,c);k.push({x1:m[w.a*2],y1:m[w.a*2+1],x2:m[w.b*2],y2:m[w.b*2+1],z:(g[w.a]+g[w.b])/2,lum:Qt((o.edgeLum??.3)+.42*C+.18*X,.05),a:(.5+.5*C)*et.aLine,w:h*(.8+.4*C)*et.m,glow:.6*X})}const E=(o.vertR??1.7)*u;for(let w=0;w<p;w++){const C=M[w],D=Bt(m[w*2],m[w*2+1],t,C),Z=1+.3*Math.sin(e*n.rate(o.vertRate??1.5)-w*.9),X=wt(C,d,c);z.push({x:m[w*2],y:m[w*2+1],z:g[w],r:(E+1.7*u*C)*Z*X.m,lum:(o.vertLum??.48)+.36*C+.24*D,a:X.aDot,glow:.55+.45*D})}const W=o.coreR??.3,b=o.driftA??.2,F=b*Math.cos(e*n.rate(.21)),j=b*.55*Math.sin(e*n.rate(.27)),q=b*.9*Math.sin(e*n.rate(.19)),G=-e*n.rate(o.coreSpin??.55),K=Math.cos(G),N=Math.sin(G),v=Xs(Math.max(12,Math.round(o.coreN??72))),R=v.verts.length/3,A=new Float64Array(R*2),H=new Float64Array(R),J=new Float32Array(R),V={x:0,y:0,depth:0,k:1};for(let w=0;w<R;w++){const C=v.verts[w*3]*W,D=v.verts[w*3+1]*W,Z=v.verts[w*3+2]*W;a.x=C*K+Z*N+F,a.y=D+j,a.z=-C*N+Z*K+q,i(a,V),A[w*2]=V.x,A[w*2+1]=V.y,H[w]=V.depth,J[w]=St(V.depth,W)}const rt=o.coreLum??.24,ot=h*(o.coreLineW??.62),ft=o.coreFaceLum??.14;if(ft>0)for(const[w,C,D]of v.faces){const Z=lo(A[w*2],A[w*2+1],A[C*2],A[C*2+1],A[D*2],A[D*2+1])<0?1:B;if(Z<=0)continue;const X=(H[w]+H[C]+H[D])/3,et=St(X,W);y.push({pts:[A[w*2],A[w*2+1],A[C*2],A[C*2+1],A[D*2],A[D*2+1]],z:X,lum:ft*Z,a:(.35+.65*et)*wt(et,d,c).aFace})}for(let w=0;w<v.edges.length;w+=3){const C=v.edges[w],D=v.edges[w+1],Z=v.edges[w+2],X=(J[C]+J[D])*.5,et=wt(X,d,c);k.push({x1:A[C*2],y1:A[C*2+1],x2:A[D*2],y2:A[D*2+1],z:(H[C]+H[D])/2,lum:(rt+.34*X)*Z,a:(.4+.6*X)*et.aLine,w:ot*(.85+.3*Z)*et.m,glow:.2})}for(let w=0;w<R;w++){if(Y(w,27)<.3)continue;const C=J[w],D=wt(C,d,c);z.push({x:A[w*2],y:A[w*2+1],z:H[w],r:((o.coreDotR??.7)+.85*C)*u*D.m,lum:rt+.44*C,a:D.aDot,glow:.35})}const vt=Math.max(12,Math.round(o.ringSegs??120)),bt=o.ringR??.62,zt=(o.ringTilt??.95)+.3*Math.sin(e*n.rate(.23)),kt=Math.cos(zt),Lt=Math.sin(zt),ht=Yt(e*n.freq(o.ringCometRate??.23)),gt=w=>{const C=w*Math.PI*2,D=Math.cos(C)*bt,Z=Math.sin(C)*bt;return a.x=D+F,a.y=-Z*Lt+j,a.z=Z*kt+q,i(a,{x:0,y:0,depth:0,k:1})};let Q=gt(0);for(let w=1;w<=vt;w++){const C=w/vt,D=gt(C),Z=(D.depth+Q.depth)/2,X=St(Z,bt),et=Math.exp(-Yt(ht-C+1)*(o.tailFall??8)),Nt=wt(X,d,c);k.push({x1:Q.x,y1:Q.y,x2:D.x,y2:D.y,z:Z,lum:(o.ringLum??.28)+.26*X+.5*et,a:(.45+.4*X)*Nt.aLine,w:h*(o.ringW??1)*(.7+.8*et)*Nt.m,glow:.9*et}),Q=D}const L=gt(ht),tt=St(L.depth,bt);z.push({x:L.x,y:L.y,z:L.depth,r:(1.6+1.4*tt)*u,lum:.92,glow:1,bloom:.9});for(const w of r.routes)fe(w,m,g,e,k,z,{speed:o.cometSpeed??26,rMul:u,w:h,unit:s,loop:n.T});const st=Math.max(0,Math.round(o.sparks??4));for(let w=0;w<st;w++){const C=n.freq(.4),D=Math.round(C*n.T),Z=(Math.floor(e*C+w*5.17)%D+D)%D,X=Math.floor(Y(Z,w*2.9+1.3)*p)%p,et=Yt(e*C+w*5.17);z.push({x:m[X*2],y:m[X*2+1],z:g[X],r:(2.4+2.2*M[X])*(1-et)*u,lum:.9,a:1-et,glow:1})}const at=[],xt=o.labelSize??0;if(xt>0){const w=(Kt,oe,se)=>(a.x=F+Kt,a.y=j+oe,a.z=q+se,i(a,{x:0,y:0,depth:0,k:1})),C=w(0,0,0),D=w(.01,0,0),Z=w(0,.01,0),X=w(0,0,.01),et=[(D.x-C.x)/.01,(Z.x-C.x)/.01,(X.x-C.x)/.01,(D.y-C.y)/.01,(Z.y-C.y)/.01,(X.y-C.y)/.01],Nt=Math.hypot(et[1],et[4]);at.push({ox:C.x,oy:C.y,m:et,z0:C.depth,d:[(D.depth-C.depth)/.01,(Z.depth-C.depth)/.01,(X.depth-C.depth)/.01],scale:Nt,r:W*(o.labelRadius??1.35),h:xt*t/Nt,angle:-e*n.rate(o.labelRate??.6),repeat:Math.max(0,Math.round(o.labelRepeat??0)),lum:o.labelLum??.95})}const Ct=Gt({faces:y,lines:k,dots:z,z:0},(o.rMin??.35)*u),Ft=ie(xe(Math.round(o.dustN??30),t,e,u,n.T),[Ct]);return at.length&&(Ft.bands=at),Ft},wo=new WeakMap;function Ks(t){const e=wo.get(t);if(e)return e;const o=Math.max(8,Math.round(t.nodeN??120)),n=(t.thrMul??1.26)*2*Math.sqrt(Math.PI/o),r=[];for(let c=0;c<o;c++){const f=ae(c,o),p=Math.floor((f[0]+2)/.55)*31+Math.floor((f[1]+2)/.55)*7+Math.floor((f[2]+2)/.55);Y(p,4)>.78&&Y(c,3)<.5||r.push([f[0],f[1],f[2]])}const s=r.length,i=new Float64Array(s*3);for(let c=0;c<s;c++)i[c*3]=r[c][0],i[c*3+1]=r[c][1],i[c*3+2]=r[c][2];const l=he();for(let c=0;c<s;c++)for(let f=c+1;f<s;f++){const p=i[c*3]-i[f*3],m=i[c*3+1]-i[f*3+1],g=i[c*3+2]-i[f*3+2],M=Math.sqrt(p*p+m*m+g*g);M>=n||mt(l,c,f,.45+.5*(1-M/n))}const a=new Float64Array(s*2);for(let c=0;c<s;c++)a[c*2]=i[c*3]*100,a[c*2+1]=-i[c*3+1]*100;const u=Array.from({length:s},(c,f)=>f),h=ue(s,l.edges,u,a,{count:Math.max(0,Math.round(t.comets??5)),steps:Math.max(4,Math.round(t.cometSteps??18)),speed:t.cometSpeed??34,vis:null,visMin:0,salt:7});for(const c of h)c.span=$e(c.path,i);const d={base:i,count:s,edges:l.edges,routes:h,seeds:u};return wo.set(t,d),d}const Us=(t,e,o)=>{const n=Ot(o.loop),r=Ks(o),s=r.count,i=t/2*(o.spread??.72),l=Zt({yaw:e*n.rate(o.spin??.17),pitch:(o.pitch??.3)+.055*Math.sin(e*n.rate(.23)),roll:o.roll??.04,focal:ce(o.perspective??.28),scale:i,cx:t/2,cy:t/2}),a={x:0,y:0,depth:0,k:1},u={x:0,y:0,z:0},h=t/320,d=(o.lineW??.9)*Math.max(.55,h),c=o.depthFade??0,f=o.depthBlur??0,p=o.wander??.1,m=new Float64Array(s),g=new Float64Array(s),M=new Float64Array(s),y=new Float64Array(s*2),k=new Float64Array(s),z=new Float32Array(s);for(let v=0;v<s;v++){const R=Te(r,v,0)+p*(n.noise(v*.31+9,3.1,e,.22)-.5)*2,A=Te(r,v,1)+p*(n.noise(v*.53+27,7.7,e,.19)-.5)*2,H=Te(r,v,2)+p*(n.noise(v*.77+55,11.3,e,.25)-.5)*2,J=Math.sqrt(R*R+A*A+H*H)||1;m[v]=R/J,g[v]=A/J,M[v]=H/J,u.x=m[v],u.y=g[v],u.z=M[v];const V=l(u,a);y[v*2]=V.x,y[v*2+1]=V.y,k[v]=V.depth,z[v]=St(V.depth)}const S=Math.sin(e*n.rate(o.bandRate??.42)),B=o.bandW??.22,E=[],W=[];for(const v of r.edges){const R=(z[v.a]+z[v.b])*.5,A=Ve(((g[v.a]+g[v.b])/2-S)/B,1),H=(y[v.a*2]+y[v.b*2])/2,J=(y[v.a*2+1]+y[v.b*2+1])/2,V=Bt(H,J,t,R),rt=wt(R,c,f);E.push({x1:y[v.a*2],y1:y[v.a*2+1],x2:y[v.b*2],y2:y[v.b*2+1],z:(k[v.a]+k[v.b])/2,lum:Qt(Math.min(.9,(o.edgeLum??.14)+.5*v.weight*(.35+.65*R)+.3*A+.14*V),.05),a:rt.aLine,w:d*(.78+.4*R)*(.8+.35*v.weight)*rt.m,glow:.55*V})}const b=(o.nodeR??1.1)*h,F=(o.nodeRDepth??1.7)*h;for(let v=0;v<s;v++){const R=z[v],A=y[v*2],H=y[v*2+1],J=Bt(A,H,t,R),V=Ve((g[v]-S)/B,1),rt=1+.16*Math.sin(e*n.rate(1.3)+v*2.7)+.45*V,ot=wt(R,c,f);W.push({x:A,y:H,z:k[v],r:(b+F*R)*rt*ot.m,lum:(o.nodeLum??.3)+.5*R+.28*V,a:ot.aDot,glow:.4+.6*J})}const j=Math.max(0,Math.round(o.ringN??1)),q=Math.max(8,Math.round(o.ringSegs??128)),G=o.ringR??1.02;for(let v=0;v<j;v++){const R=(o.ringTilt??.08)+v*.55+.06*Math.sin(e*n.rate(.31)+v),A=Math.cos(R),H=Math.sin(R),J=Yt(e*n.freq(o.ringCometRate??.19)+v*.5);let V=0,rt=0,ot=0;for(let zt=0;zt<=q;zt++){const kt=zt/q,Lt=kt*Math.PI*2,ht=Math.cos(Lt)*G,gt=Math.sin(Lt)*G;u.x=ht,u.y=-gt*H,u.z=gt*A;const Q=l(u,a);if(zt>0){const L=(Q.depth+ot)/2,tt=St(L),st=Bt((Q.x+V)/2,(Q.y+rt)/2,t,tt),at=Math.exp(-Yt(J-kt+1)*(o.tailFall??7)),xt=wt(tt,c,f);E.push({x1:V,y1:rt,x2:Q.x,y2:Q.y,z:L,lum:(o.ringLum??.3)+.34*tt+.45*at,a:(.55+.45*tt)*xt.aLine,w:d*(1.1+.9*at)*xt.m,glow:.4*st+.85*at})}V=Q.x,rt=Q.y,ot=Q.depth}const ft=J*Math.PI*2;u.x=Math.cos(ft)*G,u.y=-Math.sin(ft)*G*H,u.z=Math.sin(ft)*G*A;const vt=l(u,a),bt=St(vt.depth);W.push({x:vt.x,y:vt.y,z:vt.depth,r:b*1.5+F*bt,lum:.9,glow:1,bloom:.9})}for(const v of r.routes)fe(v,y,k,e,E,W,{speed:o.cometSpeed??34,rMul:h,w:d,unit:i,loop:n.T});const K=Gt({lines:E,dots:W,z:0},(o.rMin??.35)*h),N=ie(xe(Math.round(o.dustN??34),t,e,h,n.T),[K]);return N.sphere={x:t/2,y:t/2,r:i},N};function Te(t,e,o){return t.base[e*3+o]}const Js="'IBM Plex Sans', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif",vo=Math.PI*2,be=.05,zo=.14,ee=-1,Xt={lineCore:.55,lineHalo:[[3.2,.07,1],[2.4,.16,0],[5,.06,0]],dotCoreR:.5,spriteR:3.6,spriteA:.5,spriteGW:.5,dotHalo:[[3.6,.055,1],[1.9,.1,1]]},Qs={lineCore:1,lineHalo:[[3.2,.07,1],[2,.12,0]]},Vt=64,Be=new Map;function tn(t,e){const o=e.join(","),n=Be.get(o);if(n!==void 0)return n;let r=null;typeof OffscreenCanvas<"u"?r=new OffscreenCanvas(Vt,Vt):t.canvas&&"ownerDocument"in t.canvas&&(r=t.canvas.ownerDocument.createElement("canvas"),r.width=r.height=Vt);const s=r?.getContext("2d");if(!r||!s)return Be.set(o,null),null;const i=Vt/2,l=s.createRadialGradient(i,i,0,i,i,i);for(let a=0;a<=12;a++){const u=a/12,h=Math.exp(-4.5*u*u)*(1-u**4);l.addColorStop(u,`rgba(${e[0]},${e[1]},${e[2]},${h.toFixed(4)})`)}return s.fillStyle=l,s.fillRect(0,0,Vt,Vt),Be.set(o,r),r}const ko=new WeakMap;function en(t,e,o){t.fillStyle=o.substrate,t.fillRect(0,0,e,e);let n=ko.get(o);if(!n||n.size!==e){const r=o.wash.map(s=>{const i=t.createRadialGradient(e*s.x,e*s.y,0,e*s.x,e*s.y,e*s.r);return i.addColorStop(0,`rgba(${s.rgb},${s.a0})`),i.addColorStop(.5,`rgba(${s.rgb},${s.a1})`),i.addColorStop(1,`rgba(${s.rgb},0)`),i});n={size:e,grads:r},ko.set(o,n)}for(const r of n.grads)t.fillStyle=r,t.fillRect(0,0,e,e)}function on(t,e,o,n,r="full"){const s=r==="lite",[i,l,a]=o.ink,u=c=>`rgba(${i},${l},${a},${c})`,h=tn(t,o.ink);e.behind.length&&Ro(t,e.behind,u,h);const d=n!=null&&n.text?e.bands:void 0;if(d)for(const c of d)So(t,c,u,n,!1,s);for(const c of e.groups)sn(t,c,o,u,h,s);if(d)for(const c of d)So(t,c,u,n,!0,s)}function So(t,e,o,n,r,s){const i=e.h*e.scale;if(i<2)return;t.font=`600 ${i.toFixed(2)}px ${n.family??Js}`,t.textAlign="left",t.textBaseline="middle";const l=Array.from(n.text),a=[],u=[];let h="";for(const q of l)a.push(t.measureText(h).width),u.push(t.measureText(q).width),h+=q;const d=t.measureText(n.text).width+i*.9,c=e.r*e.scale,f=2*Math.PI*c,p=Math.max(1,Math.floor(f/d)),m=e.repeat>0?Math.min(e.repeat,p):p,g=e.repeat>0?d:f/m,[M,y,k,z,S,B]=e.m,E=Math.hypot(e.d[0],e.d[2])||1,W=Math.atan2(-e.d[0],-e.d[2]),b=M*Math.cos(W)-k*Math.sin(W)>=0?1:-1,F=-y/e.scale,j=-S/e.scale;for(let q=0;q<m;q++)for(let G=0;G<l.length;G++){const K=q*g+a[G]+u[G]/2,N=e.angle+b*K/c,v=Math.sin(N),R=Math.cos(N),A=-(e.d[0]*v+e.d[2]*R)/E;if(r!==A>0)continue;const H=Pt(r?e.lum*(.45+.55*A):e.lum*.22*(.5-.5*A));if(H<.01)continue;const J=e.ox+(M*v+k*R)*e.r,V=e.oy+(z*v+B*R)*e.r,rt=b*(M*R-k*v)/e.scale,ot=b*(z*R-B*v)/e.scale;t.save(),t.transform(rt,ot,F,j,J,V),r&&!s&&(t.shadowColor=o(.6*H),t.shadowBlur=i*.45),t.fillStyle=o(H),t.fillText(l[G],-u[G]/2,0),t.restore()}}function sn(t,e,o,n,r,s){if(e.bloom&&e.bloom.length>=6){Ne(t,e.bloom),t.lineJoin="round";const l=e.bloomScale??1;t.strokeStyle=n(.07),t.lineWidth=9*l,t.stroke(),t.strokeStyle=n(.11),t.lineWidth=3.2*l,t.stroke()}if(e.occlude&&e.occlude.length>=6){const l=e.occludeA??1;if(Ne(t,e.occlude),l<1){const a=t.globalAlpha;t.globalAlpha=a*l,t.fillStyle=o.substrate,t.fill(),t.globalAlpha=a}else t.fillStyle=o.substrate,t.fill()}for(const l of e.faces){const a=l.holes?"evenodd":"nonzero";if(l.grad){Pe(t,l.pts,l.holes),t.fillStyle=nn(t,l.pts,l.grad,o.surface,l.a??1),t.fill(a);continue}if(l.rgb){const h=Pt(l.a??1);if(h<.004)continue;t.fillStyle=`rgba(${l.rgb},${h})`,Pe(t,l.pts,l.holes),t.fill(a);continue}const u=Pt(l.lum*(l.a??1));u<.004||(t.fillStyle=n(u),Pe(t,l.pts,l.holes),t.fill(a))}t.lineCap="round";const i=s?Qs:Xt;for(const[l,a,u]of i.lineHalo)$o(t,e,n,l,a,u);$o(t,e,n,1,i.lineCore,ee),Ro(t,e.dots,n,r),rn(t,e.dots,n,s)}function Ro(t,e,o,n){if(!n){for(const[i,l,a]of Xt.dotHalo)De(t,e,o,i,l,a);De(t,e,o,1,1,ee);return}const r=t.globalAlpha,s=Xt.spriteGW;for(const i of e){const l=Pt(i.lum*(i.a??1)*Xt.spriteA*(1-s+s*(i.glow??0)));if(l<.004)continue;const a=i.r*Xt.spriteR;t.globalAlpha=r*l,t.drawImage(n,i.x-a,i.y-a,2*a,2*a)}t.globalAlpha=r,De(t,e,o,Xt.dotCoreR,1,ee)}function nn(t,e,o,n,r){let s=1/0,i=1/0,l=-1/0,a=-1/0;for(let p=0;p<e.length;p+=2)e[p]<s&&(s=e[p]),e[p]>l&&(l=e[p]),e[p+1]<i&&(i=e[p+1]),e[p+1]>a&&(a=e[p+1]);const u=(s+l)/2,h=(i+a)/2,d=Math.max(.001,(l-s)/2),c=(p,m,g)=>p.addColorStop(m,`rgba(${n},${(g*r).toFixed(3)})`);if(o==="glass"){const p=t.createLinearGradient(s,i,l,a);return c(p,0,.34),c(p,.45,.16),c(p,1,.07),p}if(o==="orb"){const p=t.createRadialGradient(u-d*.18,h-d*.22,d*.05,u,h,d);return c(p,0,.07),c(p,.62,.04),c(p,.9,.09),c(p,1,.14),p}if(o==="rim"){const p=t.createRadialGradient(u,h,0,u,h,d);return c(p,0,0),c(p,.865,0),c(p,.886,.2),c(p,.895,.26),c(p,.925,.07),c(p,1,0),p}if(o==="body"){const p=t.createLinearGradient(0,i,0,a);return p.addColorStop(0,`rgba(${n},${(.15*r).toFixed(3)})`),p.addColorStop(.34,`rgba(${n},${(.085*r).toFixed(3)})`),p.addColorStop(1,`rgba(${n},${(.035*r).toFixed(3)})`),p}const f=t.createLinearGradient(s,i,l,a);return f.addColorStop(0,`rgba(${n},${(.05*r).toFixed(3)})`),f.addColorStop(.55,`rgba(${n},${(.1*r).toFixed(3)})`),f.addColorStop(1,`rgba(${n},${(.17*r).toFixed(3)})`),f}function Pe(t,e,o){if(Ne(t,e),!!o){for(const n of o)if(!(n.length<6)){t.moveTo(n[0],n[1]);for(let r=2;r<n.length;r+=2)t.lineTo(n[r],n[r+1]);t.closePath()}}}function Ne(t,e){t.beginPath(),t.moveTo(e[0],e[1]);for(let o=2;o<e.length;o+=2)t.lineTo(e[o],e[o+1]);t.closePath()}function Co(t,e,o){let n=t.get(e);n||(n=[],t.set(e,n)),n.push(o)}function $o(t,e,o,n,r,s){const i=s!==ee,l=new Map;for(let a=0;a<e.lines.length;a++){const u=e.lines[a],h=i?1-s+s*(u.glow??0):1,d=Math.round(Pt(u.lum*(u.a??1)*h)/be);if(d<=0)continue;const c=Math.max(1,Math.round(u.w/zo));Co(l,d*1024+c,a)}for(const[a,u]of l){const h=Math.floor(a/1024)*be*r;if(!(h<.004)){t.strokeStyle=o(+h.toFixed(4)),t.lineWidth=a%1024*zo*n,t.beginPath();for(const d of u){const c=e.lines[d];t.moveTo(c.x1,c.y1),t.lineTo(c.x2,c.y2)}t.stroke()}}}function De(t,e,o,n,r,s){const i=s!==ee,l=new Map;for(let a=0;a<e.length;a++){const u=e[a],h=i?1-s+s*(u.glow??0):1,d=Math.round(Pt(u.lum*(u.a??1)*h)/be);d>0&&Co(l,d,a)}for(const[a,u]of l){const h=a*be*r;if(!(h<.004)){t.fillStyle=o(+h.toFixed(4)),t.beginPath();for(const d of u){const c=e[d],f=c.r*n;t.moveTo(c.x+f,c.y),t.arc(c.x,c.y,f,0,vo)}t.fill()}}}function rn(t,e,o,n){let r=!1;for(const s of e){const i=s.bloom??0;i<=0||(r=!0,t.shadowColor=n?"transparent":o(.9*i),t.shadowBlur=n?0:7*i,t.fillStyle=o(Pt(s.lum*(s.a??1))),t.beginPath(),t.arc(s.x,s.y,s.r,0,vo),t.fill())}r&&(t.shadowBlur=0,t.shadowColor="transparent")}function an(t,e,o,n){const r=Math.max(0,2*(e-o)),s=Math.max(0,2*(t-o)),i=o*Math.PI*.5/Math.max(2,Math.round(7*n));return{corner:Math.max(4,Math.round(5.5*n)),sideX:Math.max(1,Math.round(r/i/2.2)),sideZ:Math.max(1,Math.round(s/i/2.2))}}function Fo(t,e,o,n,r){const s=t-o,i=e-o,l=Math.max(0,o-n),a=Math.max(s,t-n),u=Math.max(i,e-n),h=[],d=(f,p,m,g,M)=>{for(let y=0;y<m;y++){const k=y/m;h.push({x:f[0]+(p[0]-f[0])*k,z:f[1]+(p[1]-f[1])*k,nx:g,nz:M,corner:0})}},c=(f,p,m,g)=>{for(let M=0;M<g;M++){const y=m+M/g*(Math.PI/2),k=Math.cos(y),z=Math.sin(y);h.push({x:f+k*l,z:p+z*l,nx:k,nz:z,corner:1})}};return d([a,-i],[a,i],r.sideX,1,0),c(s,i,0,r.corner),d([s,u],[-s,u],r.sideZ,0,1),c(-s,i,Math.PI/2,r.corner),d([-a,i],[-a,-i],r.sideX,-1,0),c(-s,-i,Math.PI,r.corner),d([-s,-u],[s,-u],r.sideZ,0,-1),c(s,-i,3*Math.PI/2,r.corner),h}function ln(t,e){return{top:e==="rolledTop"?t.filletR:t.crispR,bottom:e==="rolledBottom"?t.filletR:t.crispR}}function cn(t,e,o="rolledTop"){const{hh:n}=t,{top:r,bottom:s}=ln(t,o),i=p=>Math.max(2,Math.round(e*p/Math.max(1e-6,t.filletR))),l=i(r),a=i(s),u=[{y:n,inset:r,kind:"top",normalY:1,normalR:0}];for(let p=1;p<l;p++){const m=p/l*(Math.PI/2);u.push({y:n-r*(1-Math.cos(m)),inset:r*(1-Math.sin(m)),kind:"topFillet",normalY:Math.cos(m),normalR:Math.sin(m)})}const h=u.length;u.push({y:n-r,inset:0,kind:"sideTop",normalY:0,normalR:1});const d=u.length;u.push({y:(s-r)/2,inset:0,kind:"sideMid",normalY:0,normalR:1});const c=u.length;u.push({y:-(n-s),inset:0,kind:"sideBottom",normalY:0,normalR:1});for(let p=a-1;p>=1;p--){const m=p/a*(Math.PI/2);u.push({y:-(n-s*(1-Math.cos(m))),inset:s*(1-Math.sin(m)),kind:"bottomFillet",normalY:-Math.cos(m),normalR:Math.sin(m)})}const f=u.length;return u.push({y:-n,inset:s,kind:"bottom",normalY:-1,normalR:0}),{levels:u,topIndex:0,sideTopIndex:h,sideMidIndex:d,sideBottomIndex:c,bottomIndex:f}}function hn(t,e,o,n="rolledTop"){const r=an(t.hx,t.hz,t.cornerR,o),s=cn(t,e,n),i=Fo(t.hx,t.hz,t.cornerR,0,r),l=s.levels.map(u=>Fo(t.hx,t.hz,t.cornerR,u.inset,r).map(h=>({x:h.x,y:u.y,z:h.z}))),a=s.levels.map(u=>i.map(h=>({x:h.nx*u.normalR,y:u.normalY,z:h.nz*u.normalR})));return{dims:t,variant:n,profile:s,counts:r,perimeter:i.length,rings:l,normals:a,outline:i}}function Ao(t,e,o,n){const{from:r,to:s,tieStride:i,weight:l}=n,a=n.ribStride??1,u=n.cornerRibStride??a,h=n.cornerTies??!0,d=o.length;for(let c=r;c<=s;c++){const f=c===r||c===s,p=e[c],m=f?l:l*.8,g=c-r,M=f||g%a===0,y=f||u>0&&g%u===0;for(let k=0;k<d;k++)(o[k].corner&&o[(k+1)%d].corner?y:M)&&mt(t,p[k],p[(k+1)%d],m)}for(let c=r;c<s;c++){const f=e[c],p=e[c+1];for(let m=0;m<d;m++){const g=o[m].corner>0;if(!(h&&g)&&m%i!==0)continue;mt(t,f[m],p[m],l*.7);const M=(m+i)%d;!g&&!o[M].corner&&(c+m)%2===0&&mt(t,f[m],p[M],l*.5)}}}function un(t,e){const o=t.length;let n=e,r=e;for(;t[((n-1)%o+o)%o].corner;)n--;for(;t[(r+1)%o].corner;)r++;return(n+r)/2}const dn=1.8;function pn(t,e,o,n){const{profile:r,outline:s}=e,i=o[r.sideTopIndex],l=o[r.sideBottomIndex],a=i.length,u=e.variant==="rolledBottom",h=u?l:i,d=u?i:l;for(let m=0;m<a;m++){if(!s[m].corner)continue;const g=un(s,m),M=Math.round(g+(m-g)*dn);mt(t,h[m],d[(M%a+a)%a],.4)}const c=e.variant==="crisp"?2:1;let f=0,p=!1;for(;f<a;){const m=(3+Math.floor(Y(f,11)*3))*c,g=Math.min(f+m,a),M=g%a;p&&Y(f,13)>.62?(mt(t,i[f],n[M],.46),mt(t,n[M],l[M],.46)):p?mt(t,i[M],l[f],.44):mt(t,i[f],l[M],.44),p=!p,f=g}}function Io(t,e,o,n){const r=t[e].x,s=t[e].y,i=t[o].x,l=t[o].y,a=t[n].x,u=t[n].y,h=2*(r*(l-u)+i*(u-s)+a*(s-l));if(Math.abs(h)<1e-12)return null;const d=r*r+s*s,c=i*i+l*l,f=a*a+u*u,p=(d*(l-u)+c*(u-s)+f*(s-l))/h,m=(d*(a-i)+c*(r-a)+f*(i-r))/h;return{a:e,b:o,c:n,cx:p,cy:m,r2:(r-p)*(r-p)+(s-m)*(s-m)}}const fn=(t,e)=>t<e?`${t},${e}`:`${e},${t}`;function mn(t){const e=t.length;if(e<3)return[];let o=1/0,n=1/0,r=-1/0,s=-1/0;for(const m of t)m.x<o&&(o=m.x),m.y<n&&(n=m.y),m.x>r&&(r=m.x),m.y>s&&(s=m.y);const i=r-o||1,l=s-n||1,a=Math.max(i,l)*20,u=(o+r)/2,h=(n+s)/2,d=[...t,{x:u-a,y:h-a},{x:u+a,y:h-a},{x:u,y:h+a}];let c=[];const f=Io(d,e,e+1,e+2);if(!f)return[];c.push(f);for(let m=0;m<e;m++){const g=d[m],M=[],y=new Map,k=new Map;for(const z of c){const S=g.x-z.cx,B=g.y-z.cy;if(S*S+B*B<=z.r2)for(const[E,W]of[[z.a,z.b],[z.b,z.c],[z.c,z.a]]){const b=fn(E,W);y.set(b,(y.get(b)??0)+1),k.set(b,[E,W])}else M.push(z)}c=M;for(const[z,S]of y){if(S!==1)continue;const B=k.get(z);if(!B)continue;const E=Io(d,B[0],B[1],m);E&&c.push(E)}}const p=[];for(const m of c)m.a>=e||m.b>=e||m.c>=e||p.push([m.a,m.b,m.c]);return p}function gn(t,e,o){const{hx:n,hz:r,cornerR:s,filletR:i}=t.dims,l=n-i,a=r-i,u=Math.max(.001,s-i),h=[],d=Math.ceil(2*l/e),c=Math.ceil(2*a/e);for(let f=0;f<=c;f++)for(let p=0;p<=d;p++){const m=f*(d+3)+p,g=-l+p/d*2*l+(Y(m,1)-.5)*e*.92,M=-a+f/c*2*a+(Y(m,2)-.5)*e*.92,y=Ke(g,M,l,a,u);if(y>-o)continue;const k=Math.floor((g+4)/.62)*31+Math.floor((M+4)/.62);y<-o*2.6&&Y(k,4)>.62&&Y(m,3)<.55||h.push({x:g,y:M})}return h}function xn(t,e,o){const n=t.rings[t.profile.topIndex],r=[],s=[];for(let u=0;u<n.length;u+=e)r.push({x:n[u].x,y:n[u].z}),s.push(u);const i=r.length,l=gn(t,o,o*.5);r.push(...l);const a=mn(r).map(u=>{const h=(d,c)=>d<i&&c<i;return{a:u[0],b:u[1],c:u[2],rimAB:h(u[0],u[1]),rimBC:h(u[1],u[2]),rimCA:h(u[2],u[0])}});return{interior:l,triangles:a,boundary:s}}function Mn(t,e,o,n,r){const s=xn(e,n,r),i=s.boundary.map(a=>o[a]),l=e.dims.hh;for(const a of s.interior)i.push(t.vertices.length),t.vertices.push({x:a.x,y:l,z:a.y}),t.normals.push({x:0,y:1,z:0});for(const a of s.triangles){const u=(h,d)=>.4+.2*Y(h*31+d,7);mt(t,i[a.a],i[a.b],a.rimAB?.95:u(a.a,a.b)),mt(t,i[a.b],i[a.c],a.rimBC?.95:u(a.b,a.c)),mt(t,i[a.c],i[a.a],a.rimCA?.95:u(a.c,a.a))}}function yn(t,e,o,n){const r=[],s=(a,u,h)=>{r.push({v:a,major:u,phase:Y(a+1,h)})};for(let a=n;a<t.vertices.length;a++)s(a,Y(a,21)>.88,23);const i=Math.max(3,Math.round(o.length/18));for(let a=0;a<o.length;a+=i)s(o[a],e.outline[a].corner>0,27);const l=e.profile.sideTopIndex;for(let a=0;a<e.perimeter;a+=i*2)Y(a,29)>.45&&s(l*e.perimeter+a,!1,31);return r}function bn(t,e){t.perimeter;const o=he(),n=t.rings.map((h,d)=>{const c=[];for(let f=0;f<h.length;f++)c.push(o.vertices.length),o.vertices.push(h[f]),o.normals.push(t.normals[d][f]);return c}),r=o.vertices.length,s=t.profile,i={tieStride:e.tieStride,weight:.6,ribStride:2,cornerRibStride:4},l={tieStride:e.tieStride*3,weight:.6,ribStride:3,cornerRibStride:0,cornerTies:!1},a=t.variant==="rolledTop"?i:l,u=t.variant==="rolledBottom"?i:l;return Ao(o,n,t.outline,{...a,from:s.topIndex,to:s.sideTopIndex}),pn(o,t,n,n[s.sideMidIndex]),Ao(o,n,t.outline,{...u,from:s.sideBottomIndex,to:s.bottomIndex}),Mn(o,t,n[s.topIndex],e.ringStride,e.cell),{vertices:o.vertices,normals:o.normals,edges:o.edges,nodes:yn(o,t,n[s.topIndex],r),ringTop:n[s.topIndex],ringSideTop:n[s.sideTopIndex],ringSideBottom:n[s.sideBottomIndex],ringBottom:n[s.bottomIndex]}}function wn(t,e){return t===0?"rolledTop":t===e-1?"rolledBottom":"crisp"}function vn(t,e){const o=(t-1)/2*e;return Array.from({length:t},(n,r)=>o-r*e)}function zn(t,e,o,n){const r=new Map,s=i=>{const l=r.get(i);if(l)return l;const a=hn(e,n.filletSteps,n.density,i),u={variant:i,shell:a,mesh:bn(a,{ringStride:n.ringStride,cell:n.cell,tieStride:n.tieStride})};return r.set(i,u),u};return{slots:vn(t,o).map((i,l)=>({geom:s(wn(l,t)),offsetY:i})),geoms:[...r.values()]}}const Lo=.12,_o=new WeakMap,kn=(t,e,o)=>{const n=Ot(o.loop),r=Sn(t,o),s=[];for(const l of r.layers){const a=[],u=[];for(const h of l.pulsing){const d=.5+.5*Math.sin(e*n.rate(1.15)+h.phase*Math.PI*2);a.push({x:h.x,y:h.y,z:h.z,r:h.r,lum:h.lum*(.55+.45*d),glow:.7+.3*d})}for(const h of l.routes)fe(h,l.xy,l.z,e,u,a,{speed:o.cometSpeed??30,rMul:r.rs,w:(o.lineW??.8)*r.rs,loop:n.T});s.push({occlude:l.occlude,occludeA:o.occlusion??1,bloom:l.occlude,bloomScale:o.bloomScale??r.rs,faces:l.faces,lines:u.length?l.lines.concat(u):l.lines,dots:a.length?l.dots.concat(a):l.dots,z:l.centreDepth})}const i=ie(xe(Math.round(o.dustN??30),t,e,r.rs,n.T),s);return i.anchors=r.anchors,i};function Sn(t,e){let o=_o.get(e);o||(o=new Map,_o.set(e,o));const n=o.get(t);if(n)return n;const r=Rn(t,e);return o.set(t,r),r}function Rn(t,e){const o={hx:e.hx??1.1878,hz:e.hz??1,hh:e.hh??.304,cornerR:e.cornerR??.311,filletR:e.filletR??.22,crispR:e.crispR??.035},n=Math.max(1,Math.round(e.slabs??4)),r=zn(n,o,e.pitch??.8375,{density:e.density??1.5,filletSteps:Math.max(2,Math.round(e.filletSteps??8)),cell:e.cell??.19,ringStride:Math.max(1,Math.round(e.ringStride??4)),tieStride:Math.max(1,Math.round(e.tieStride??3))}),s=(e.yawDeg??51.83)*Math.PI/180,i=(e.pitchDeg??18.8)*Math.PI/180,l=(e.rollDeg??0)*Math.PI/180,a=ce(e.perspective??.32),u=Zt({yaw:s,pitch:i,roll:l,focal:a,scale:1,cx:0,cy:0}),h={x:0,y:0,depth:0,k:1},d={x:0,y:0,z:0};let c=1/0,f=1/0,p=-1/0,m=-1/0,g=1/0,M=-1/0;for(const N of r.slots)for(const v of N.geom.mesh.vertices){d.x=v.x,d.y=v.y+N.offsetY,d.z=v.z;const R=u(d,h);R.x<c&&(c=R.x),R.y<f&&(f=R.y),R.x>p&&(p=R.x),R.y>m&&(m=R.y),R.depth<g&&(g=R.depth),R.depth>M&&(M=R.depth)}const y=Math.max(1e-6,p-c),k=Math.max(1e-6,m-f),z=e.fill??.84,S=Math.min(t*z/y,t*z/k),B={yaw:s,pitch:i,roll:l,focal:a,scale:S,cx:t/2-S*((c+p)/2)+t*(e.offsetX??0),cy:t/2-S*((f+m)/2)+t*(e.verticalBias??.028)},E=Zt(B),W=e.inkMul??1,b=e.depthFade??0,F=e.depthBlur??0,j=Rs(s,i),q=Math.max(1e-6,M-g),G=t/320,K=(e.lineW??.8)*Math.max(.55,G);return{layers:r.slots.map((N,v)=>{const R=N.geom.mesh,A=R.vertices.length,H=new Float64Array(A*2),J=new Float64Array(A),V=new Float32Array(A);for(let L=0;L<A;L++){const tt=R.vertices[L];d.x=tt.x,d.y=tt.y+N.offsetY,d.z=tt.z;const st=E(d,h);H[L*2]=st.x,H[L*2+1]=st.y,J[L]=st.depth,V[L]=1-(st.depth-g)/q}d.x=0,d.y=N.offsetY,d.z=0;const rt=E(d,h).depth,ot=Cs(R.normals,j),ft=[];for(const L of R.edges){const tt=Math.max(ot[L.a],ot[L.b]);if(tt<=Lo)continue;const st=(V[L.a]+V[L.b])*.5,at=.58+.42*Math.min(1,tt*1.7),xt=Qt(Math.min(.9,Math.max(.05,(.2+.66*L.weight)*(.66+.5*st)*at*W)),.05),Ct=(H[L.a*2]+H[L.b*2])/2,Ft=(H[L.a*2+1]+H[L.b*2+1])/2,w=wt(st,b,F);ft.push({x1:H[L.a*2],y1:H[L.a*2+1],x2:H[L.b*2],y2:H[L.b*2+1],z:(J[L.a]+J[L.b])/2,lum:xt,a:w.aLine,w:K*(.82+.36*st)*(.82+.34*L.weight)*w.m,glow:.28*Bt(Ct,Ft,t,st)})}const vt=[],bt=[];for(const L of R.nodes){if(ot[L.v]<=.06)continue;const tt=V[L.v],st=Qt(L.major?1.5+.5*tt:.7+.35*tt,.2)*G*(e.nodeRMul??1),at=Qt(Math.min(1,((L.major?.68:.42)+.3*tt)*W),.05),xt=H[L.v*2],Ct=H[L.v*2+1];if(L.major&&L.phase>.55){bt.push({x:xt,y:Ct,z:J[L.v],r:st+.4*G,lum:at,phase:L.phase});continue}const Ft=wt(tt,b,F);vt.push({x:xt,y:Ct,z:J[L.v],r:st*Ft.m,lum:at,a:Ft.aDot,glow:.3+.7*Bt(xt,Ct,t,tt)})}const zt=$n(R.ringSideTop,R.ringSideBottom,R.ringTop,R.ringBottom,H);let kt=0;for(let L=0;L<A;L++)kt+=V[L];kt/=Math.max(1,A);const Lt=(.72+.5*kt)*(e.surfaceA??1),ht=[{pts:zt,z:rt+.02,lum:1,a:Lt,grad:"body"},{pts:To(R.ringTop,H),z:rt+.01,lum:1,a:Lt,grad:"top"}],gt=ue(A,R.edges,R.nodes.map(L=>L.v),H,{count:Math.max(0,Math.round(e.comets??3)),steps:Math.max(4,Math.round(e.cometSteps??26)),speed:e.cometSpeed??30,vis:ot,visMin:Lo,salt:v*3}),Q=Gt({faces:ht,lines:ft,dots:vt,z:rt},(e.rMin??.35)*G);return{index:v,geom:N.geom,centreDepth:rt,faces:Q.faces,lines:Q.lines,dots:Q.dots,occlude:zt,pulsing:bt,routes:gt,xy:H,z:J}}),rs:G,anchors:Cn(r.slots,o,E,e.anchorIn??.16)}}function Cn(t,e,o,n){const r={x:0,y:0,depth:0,k:1},s={x:0,y:0,z:0},i=o(s,{x:0,y:0,depth:0,k:1}),l=360,a=[];for(let f=0;f<l;f++){const p=f/l*Math.PI*2,m=Math.cos(p),g=Math.sin(p);let M=0,y=Math.max(e.hx,e.hz)*1.5;for(let k=0;k<30;k++){const z=(M+y)/2;Ke(z*m,z*g,e.hx,e.hz,e.cornerR)<0?M=z:y=z}a.push([M*m,M*g])}let u=1/0;for(const[f,p]of a)s.x=f,s.y=0,s.z=p,u=Math.min(u,o(s,r).x);const h=u+n*(i.x-u);let d=a[0],c=1/0;for(const[f,p]of a){s.x=f,s.y=0,s.z=p;const m=o(s,r);if(m.depth>=i.depth||m.x>=i.x)continue;const g=Math.abs(m.x-h);g<c&&(c=g,d=[f,p])}return t.map(f=>{s.x=d[0],s.y=f.offsetY,s.z=d[1];const p=o(s,r);return{x:p.x,y:p.y}})}function To(t,e){const o=[];for(const n of t)o.push(e[n*2],e[n*2+1]);return o}function $n(t,e,o,n,r){const s=[...t,...e,...o,...n];s.sort((h,d)=>r[h*2]-r[d*2]||r[h*2+1]-r[d*2+1]);const i=(h,d,c)=>(r[d*2]-r[h*2])*(r[c*2+1]-r[h*2+1])-(r[d*2+1]-r[h*2+1])*(r[c*2]-r[h*2]),l=h=>{const d=[];for(const c of h){for(;d.length>=2&&i(d[d.length-2],d[d.length-1],c)<=0;)d.pop();d.push(c)}return d},a=l(s),u=l([...s].reverse());return To([...a.slice(0,-1),...u.slice(0,-1)],r)}const Ee={"mesh-globe":Us,"layer-stack":kn,"geo-core":Vs,"brand-sphere":Mo,"brand-surface":Mo},Fn=Object.fromEntries(Object.entries(Ee).map(([t,e])=>[t,(o,n,r,s,i,l,a,u)=>{l&&en(o,n,s),on(o,e(n,r,i),s,a,u)}])),An={"mesh-globe":"Global network","layer-stack":"Layered platform","geo-core":"Protected core","brand-sphere":"Bitdefender","brand-surface":"Bitdefender"},In=1.9,Bo=200;function Ln(t){return t>=175?320:96}function _n(t){return t==="brand-sphere"||t==="brand-surface"?"solid":"brand"}function Tn(t,e,o){return!!(e!=null&&e.length)&&o>=Bo&&t.labelShift!==void 0}function Bn(t,e,o){const n=e?{offsetX:t.labelShift}:void 0;return o||n?{...t,...n,...o}:t}const Po=t=>t?t.split("|").map(e=>e.trim()).filter(Boolean):void 0,ct=t=>`${t}px`,No=(t,e)=>!!t&&t.length===e.length&&t.every((o,n)=>o===e[n]),We=class extends Wo{constructor(){super(),this.modest=bs()||ws(),this.optsKey=[],this.opts={},this.palette=so.brand,this.mode="full",this.watch=null,this.baseSpeed=1,this.lastSize=0,this.stopClock=null,this.clockInputs=null,this.anims=[],this.animKey="",this.resize=null,this.motion=null,this.onMotion=e=>{this._reduced=e.matches},this.measure=()=>{if(!this.anchors||!this.labels)return;const e=Array.from(this.renderRoot.querySelectorAll(".captions > li")).map(n=>({w:n.offsetWidth,h:n.offsetHeight})),o=this._boxes;o&&o.length===e.length&&o.every((n,r)=>n.w===e[r].w&&n.h===e[r].h)||(this._boxes=e)},this.object="mesh-globe",this.quality="auto",this.substrate=!0,this.speed=1,this.paused=!1,this._fit=0,this._reduced=!1,this._demoted=!1,this._boxes=null}get tileSize(){return this.size&&this.size>0?this.size:this._fit}get badgeList(){var e;return(e=this.badges)==null?void 0:e.map(o=>typeof o=="string"?{label:o}:o)}connectedCallback(){var e,o;super.connectedCallback(),typeof matchMedia<"u"&&(this.motion=matchMedia("(prefers-reduced-motion: reduce)"),this._reduced=this.motion.matches,this.motion.addEventListener("change",this.onMotion)),typeof ResizeObserver<"u"&&(this.resize=new ResizeObserver(([n])=>{const r=Math.floor(n.contentRect.width);r>0&&(this._fit=r)}),this.resize.observe(this)),(o=(e=document.fonts)==null?void 0:e.addEventListener)==null||o.call(e,"loadingdone",this.measure),this.hasUpdated&&this.requestUpdate()}disconnectedCallback(){var e,o,n,r,s;super.disconnectedCallback(),(e=this.stopClock)==null||e.call(this),this.stopClock=null,this.clockInputs=null;for(const i of this.anims)i.cancel();this.anims=[],this.animKey="",(o=this.resize)==null||o.disconnect(),this.resize=null,(n=this.motion)==null||n.removeEventListener("change",this.onMotion),(s=(r=document.fonts)==null?void 0:r.removeEventListener)==null||s.call(r,"loadingdone",this.measure)}willUpdate(e){var o;const n=this.tileSize;if(!(n>0))return;const{speed:r,opts:s}=ys(this.object,Ln(n));this.baseSpeed=r,this.palette=so[this.tone??_n(this.object)];const i=Tn(s,this.labels,n),l=[s,i];No(this.optsKey,l)||(this.optsKey=l,this.opts=Bn(s,i)),this.anchors=i?Ee[this.object](n,0,this.opts).anchors:void 0;const a=!!((o=this.badges)!=null&&o.length)&&n>=Bo;this.sphere=a?Ee[this.object](n,0,this.opts).sphere:void 0,(e.has("label")||e.has("labelFont")||!this.text!=!this.label)&&(this.text=this.label?{text:this.label,family:this.labelFont}:void 0),this.mode=this.quality==="auto"?this.modest||this._demoted?"lite":"full":this.quality;const u=this.quality==="auto"&&this.mode!=="lite";u&&!this.watch&&(this.watch=Ss()),u||(this.watch=null),(e.has("labels")||e.has("labelFont")||e.has("object")||n!==this.lastSize)&&(this._boxes=null),this.lastSize=n}render(){const e=this.tileSize;if(!(e>0))return Jt;const o=An[this.object],n=Jo(this.palette.ink),r=this.palette.substrate,s=this.labelFont??Uo;return qt`<div class="tile" style=${Dt({width:ct(e),height:ct(e)})}>
|
|
48
|
+
<canvas
|
|
49
|
+
role="img"
|
|
50
|
+
aria-label=${o}
|
|
51
|
+
data-quality=${this.mode}
|
|
52
|
+
style=${Dt({width:ct(e),height:ct(e)})}
|
|
53
|
+
></canvas>
|
|
54
|
+
${this.anchors&&this.labels?this.renderCaptions(e,this.anchors,this.labels,n,r,s,o):Jt}
|
|
55
|
+
${this.sphere&&this.badges?this.renderBadges(this.sphere,n,r,s,o):Jt}
|
|
56
|
+
</div>`}renderCaptions(e,o,n,r,s,i,l){const a=ss(e,o,n.length),{inset:u,paths:h}=ns(e,o,a,this._boxes),{fontPx:d,pad:c,rs:f,ys:p}=a;return qt`<svg aria-hidden="true" width=${e} height=${e}>
|
|
57
|
+
${h.map((m,g)=>{if(!m)return Jt;const M=o[g];return jo`<g>
|
|
58
|
+
<path d=${m} fill="none" stroke=${r} stroke-opacity="0.9" stroke-width=${1.5*Math.max(.75,f)}
|
|
59
|
+
stroke-linejoin="round" stroke-linecap="round"></path>
|
|
60
|
+
<circle cx=${M.x} cy=${M.y} r=${6.2*f} fill=${r} opacity="0.22"></circle>
|
|
61
|
+
<circle cx=${M.x} cy=${M.y} r=${2.4*f} fill=${r}></circle>
|
|
62
|
+
</g>`})}
|
|
63
|
+
</svg>
|
|
64
|
+
<ol class="captions" aria-label=${l}>
|
|
65
|
+
${p.map((m,g)=>qt`<li
|
|
66
|
+
style=${Dt({position:"absolute",left:ct(u),top:ct(m),transform:"translateY(-50%)","white-space":"nowrap","border-radius":"9999px",background:r,color:s,"font-family":i,"font-weight":"500","font-size":ct(d),"line-height":"1.35",padding:`${Math.round(c*.5)}px ${c}px`,opacity:this._boxes?"1":"0",transition:"opacity 620ms cubic-bezier(0.16, 1, 0.3, 1)"})}
|
|
67
|
+
>
|
|
68
|
+
${n[g]}
|
|
69
|
+
</li>`)}
|
|
70
|
+
</ol>`}renderBadges(e,o,n,r,s){const i=this.badgeList??[],l=this.mode==="lite";return qt`<ol class="badges" aria-label=${s}>
|
|
71
|
+
${i.slice(0,as(i)).map((a,u)=>{const h=is(e,u,a,this.badgeMinFont??eo),d=`blur(${h.blur.toFixed(2)}px)`;return qt`<li style=${Dt({position:"absolute",left:ct(h.cx),top:ct(h.cy),width:"0",height:"0"})}>
|
|
72
|
+
${l?Jt:qt`<span
|
|
73
|
+
style=${Dt({position:"absolute",left:ct(-h.discR),top:ct(-h.discR),width:ct(2*h.discR),height:ct(2*h.discR),"border-radius":"50%","backdrop-filter":d,"-webkit-backdrop-filter":d})}
|
|
74
|
+
></span>`}
|
|
75
|
+
<img
|
|
76
|
+
alt=""
|
|
77
|
+
src=${h.url}
|
|
78
|
+
width=${h.imgSize}
|
|
79
|
+
height=${h.imgSize}
|
|
80
|
+
style=${Dt({position:"absolute",left:ct(-h.imgSize/2),top:ct(-h.imgSize/2),display:"block"})}
|
|
81
|
+
/>
|
|
82
|
+
<span
|
|
83
|
+
style=${Dt({position:"absolute",top:ct(h.pillTop),transform:"translateY(-50%)",left:h.pillLeft!==void 0?ct(h.pillLeft):void 0,right:h.pillRight!==void 0?ct(h.pillRight):void 0,height:ct(h.pillH),padding:`0 ${h.padX.toFixed(2)}px`,"box-sizing":"border-box",display:"flex","align-items":"center","white-space":"nowrap","border-radius":"9999px",background:o,color:n,"font-family":r,"font-weight":"500","font-size":ct(h.font),"line-height":"1","pointer-events":"auto",filter:h.defocus>0?`blur(${h.defocus.toFixed(2)}px)`:void 0})}
|
|
84
|
+
>${a.label}</span
|
|
85
|
+
>
|
|
86
|
+
</li>`})}
|
|
87
|
+
</ol>`}updated(){this.runClock(),this.anchors&&this.labels&&!this._boxes&&this.measure(),this.runFloats()}runClock(){var e,o;const n=this.renderRoot.querySelector("canvas");if(!n){(e=this.stopClock)==null||e.call(this),this.stopClock=null,this.clockInputs=null;return}const r=this.tileSize,s=Fn[this.object],i=this.baseSpeed*(this.speed>0?this.speed:1),{palette:l,opts:a,text:u,mode:h,watch:d}=this,c=this.substrate!==!1,f=[n,r,this.paused,this._reduced,i,h,s,l,a,c,u,d];if(No(this.clockInputs,f))return;(o=this.stopClock)==null||o.call(this),this.clockInputs=f;const p=h==="lite";this.stopClock=qo(n,{size:r,paused:this.paused,reduced:this._reduced,staticT:In,speed:i,draw:(m,g)=>{if(!d){s(m,r,g,l,a,c,u,h);return}const M=performance.now();s(m,r,g,l,a,c,u,h);const y=performance.now();d.push(y-M,y)&&(this._demoted=!0)},maxDpr:p?1.5:2,fps:p?30:void 0})}runFloats(){const e=this.sphere,o=e?Array.from(this.renderRoot.querySelectorAll(".badges > li")):[],n=(this.opts.loop??Je)/(this.baseSpeed*(this.speed>0?this.speed:1)),r=e&&!this._reduced?`${o.length}|${e.r}|${n}`:"";if(r!==this.animKey){for(const s of this.anims)s.cancel();this.anims=[],this.animKey=r,r&&e&&o.forEach((s,i)=>{if(!s.animate)return;const l=ls(e,i,n),a=s.animate(l.keyframes,l.options);a.currentTime=l.currentTime,this.anims.push(a)})}for(const s of this.anims)this.paused?s.pause():s.play()}};We.properties={object:{type:String},size:{type:Number},labels:{converter:{fromAttribute:Po}},label:{type:String},badges:{converter:{fromAttribute:Po}},quality:{type:String},tone:{type:String},substrate:{converter:{fromAttribute:t=>t!=="false"}},speed:{type:Number},paused:{type:Boolean},labelFont:{type:String,attribute:"label-font"},badgeMinFont:{type:Number,attribute:"badge-min-font"},_fit:{state:!0},_reduced:{state:!0},_demoted:{state:!0},_boxes:{state:!0}},We.styles=Ho`
|
|
88
|
+
:host {
|
|
89
|
+
display: block;
|
|
90
|
+
}
|
|
91
|
+
:host([hidden]) {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
.tile {
|
|
95
|
+
position: relative;
|
|
96
|
+
}
|
|
97
|
+
canvas {
|
|
98
|
+
display: block;
|
|
99
|
+
}
|
|
100
|
+
ol {
|
|
101
|
+
position: absolute;
|
|
102
|
+
inset: 0;
|
|
103
|
+
margin: 0;
|
|
104
|
+
padding: 0;
|
|
105
|
+
list-style: none;
|
|
106
|
+
}
|
|
107
|
+
.badges {
|
|
108
|
+
pointer-events: none;
|
|
109
|
+
}
|
|
110
|
+
svg {
|
|
111
|
+
position: absolute;
|
|
112
|
+
inset: 0;
|
|
113
|
+
pointer-events: none;
|
|
114
|
+
overflow: visible;
|
|
115
|
+
}
|
|
116
|
+
`;let Do=We;export{Do as BdHero};
|