beautiful-backgrounds 2.0.0 → 2.1.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/README.md +2 -1
- package/build/bb.es.js +9 -9
- package/build/bb.es.js.map +1 -1
- package/build/bb.js +6 -6
- package/build/bb.js.map +1 -1
- package/build/index.d.ts +21 -0
- package/package.json +17 -16
package/README.md
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
</tr>
|
|
48
48
|
<tr style="background-color: #f6f8fa">
|
|
49
49
|
<td><a target="_blank" href="https://niekes.github.io/beautiful-backgrounds/?path=/story/backgrounds-silk-waves--deep-tide"><img src="assets/examples/silk-waves.gif" alt="Silk Waves"></a></td>
|
|
50
|
-
<td></td>
|
|
50
|
+
<td><a target="_blank" href="https://niekes.github.io/beautiful-backgrounds/?path=/story/backgrounds-gradient-slats--prism"><img src="assets/examples/gradient-slats.gif" alt="Gradient Slats"></a></td>
|
|
51
51
|
<td></td>
|
|
52
52
|
</tr>
|
|
53
53
|
</table>
|
|
@@ -120,6 +120,7 @@ Each background fills its element, redraws at the new size when the window resiz
|
|
|
120
120
|
| [Ambient Ribbon](https://niekes.github.io/beautiful-backgrounds/?path=/story/backgrounds-ambient-ribbon--signature-flow) | `<bb-ambient-ribbon>` | Flowing ribbons of light with control over waves and rotation |
|
|
121
121
|
| [Contour Flow](https://niekes.github.io/beautiful-backgrounds/?path=/story/backgrounds-contour-flow--topographic-moss) | `<bb-contour-flow>` | Topographic contour lines, drawn by particles flowing downhill and colored by height |
|
|
122
122
|
| [Digital Rain](https://niekes.github.io/beautiful-backgrounds/?path=/story/backgrounds-digital-rain--classic-matrix-rain) | `<bb-digital-rain>` | Matrix-style falling characters |
|
|
123
|
+
| [Gradient Slats](https://niekes.github.io/beautiful-backgrounds/?path=/story/backgrounds-gradient-slats--prism) | `<bb-gradient-slats>` | A slowly moving wash of colors seen through a row of shaded slats |
|
|
123
124
|
| [Hexagon Wave](https://niekes.github.io/beautiful-backgrounds/?path=/story/backgrounds-hexagon-wave--honeycomb-pulsar) | `<bb-hexagon-wave>` | A shaded grid of hexagons rolling like a wave |
|
|
124
125
|
| [Light Shafts](https://niekes.github.io/beautiful-backgrounds/?path=/story/backgrounds-light-shafts--crystal) | `<bb-light-shafts>` | Upright shafts of soft light drifting sideways, the nearer ones faster |
|
|
125
126
|
| [Liquid Lines](https://niekes.github.io/beautiful-backgrounds/?path=/story/backgrounds-liquid-lines--serpentine-flow) | `<bb-liquid-lines>` | Undulating lines with a sense of depth |
|
package/build/bb.es.js
CHANGED
|
@@ -3,47 +3,47 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const e=globalThis,t=e.ShadowRoot&&(e.ShadyCSS===void 0||e.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,n=Symbol(),r=/* @__PURE__ */ new WeakMap;var i=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,n=this.t;if(t&&e===void 0){let t=n!==void 0&&n.length===1;t&&(e=r.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t&&r.set(n,e))}return e}toString(){return this.cssText}};const a=e=>new i(typeof e==`string`?e:e+``,void 0,n),o=(e,...t)=>new i(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,n),s=(n,r)=>{if(t)n.adoptedStyleSheets=r.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let t of r){let r=document.createElement(`style`),i=e.litNonce;i!==void 0&&r.setAttribute(`nonce`,i),r.textContent=t.cssText,n.appendChild(r)}},c=t?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return a(t)})(e):e,{is:l,defineProperty:u,getOwnPropertyDescriptor:d,getOwnPropertyNames:f,getOwnPropertySymbols:p,getPrototypeOf:
|
|
6
|
+
const e=globalThis,t=e.ShadowRoot&&(e.ShadyCSS===void 0||e.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,n=Symbol(),r=/* @__PURE__ */ new WeakMap;var i=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,n=this.t;if(t&&e===void 0){let t=n!==void 0&&n.length===1;t&&(e=r.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t&&r.set(n,e))}return e}toString(){return this.cssText}};const a=e=>new i(typeof e==`string`?e:e+``,void 0,n),o=(e,...t)=>new i(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,n),s=(n,r)=>{if(t)n.adoptedStyleSheets=r.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let t of r){let r=document.createElement(`style`),i=e.litNonce;i!==void 0&&r.setAttribute(`nonce`,i),r.textContent=t.cssText,n.appendChild(r)}},c=t?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return a(t)})(e):e,{is:l,defineProperty:u,getOwnPropertyDescriptor:d,getOwnPropertyNames:f,getOwnPropertySymbols:p,getPrototypeOf:ee}=Object,m=globalThis,te=m.trustedTypes,ne=te?te.emptyScript:``,re=m.reactiveElementPolyfillSupport,h=(e,t)=>e,g={toAttribute(e,t){
|
|
7
7
|
/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
11
|
*/
|
|
12
|
-
switch(t){case Boolean:e=e?
|
|
12
|
+
switch(t){case Boolean:e=e?ne:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},ie=(e,t)=>!l(e,t),ae={attribute:!0,type:String,converter:g,reflect:!1,useDefault:!1,hasChanged:ie};Symbol.metadata??=Symbol(`metadata`),m.litPropertyMetadata??=/* @__PURE__ */ new WeakMap;var _=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ae){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&u(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=d(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ae}static _$Ei(){if(this.hasOwnProperty(h(`elementProperties`)))return;let e=ee(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(h(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(h(`properties`))){let e=this.properties,t=[...f(e),...p(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=/* @__PURE__ */ new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(c(e))}else e!==void 0&&t.push(c(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=/* @__PURE__ */ new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=/* @__PURE__ */ new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=/* @__PURE__ */ new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return s(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?g:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?g:e.converter;this._$Em=r;let a=i.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(e!==void 0){let a=this.constructor;if(!1===r&&(i=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??ie)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=/* @__PURE__ */ new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=/* @__PURE__ */ new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=/* @__PURE__ */ new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};_.elementStyles=[],_.shadowRootOptions={mode:`open`},_[h(`elementProperties`)]=/* @__PURE__ */ new Map,_[h(`finalized`)]=/* @__PURE__ */ new Map,re?.({ReactiveElement:_}),(m.reactiveElementVersions??=[]).push(`2.1.2`);
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
17
|
*/
|
|
18
|
-
const
|
|
19
|
-
\f\r]`,
|
|
18
|
+
const oe=globalThis,se=e=>e,v=oe.trustedTypes,ce=v?v.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,le=`$lit$`,y=`lit$${Math.random().toFixed(9).slice(2)}$`,ue=`?`+y,de=`<${ue}>`,b=document,x=()=>b.createComment(``),S=e=>e===null||typeof e!=`object`&&typeof e!=`function`,fe=Array.isArray,pe=e=>fe(e)||typeof e?.[Symbol.iterator]==`function`,me=`[
|
|
19
|
+
\f\r]`,C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,he=/-->/g,ge=/>/g,w=RegExp(`>|${me}(?:([^\\s"'>=/]+)(${me}*=${me}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),_e=/'/g,ve=/"/g,ye=/^(?:script|style|textarea|title)$/i,T=Symbol.for(`lit-noChange`),E=Symbol.for(`lit-nothing`),be=/* @__PURE__ */ new WeakMap,D=b.createTreeWalker(b,129);function xe(e,t){if(!fe(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return ce===void 0?t:ce.createHTML(t)}const Se=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=C;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===C?c[1]===`!--`?o=he:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=w):(ye.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=w):o=ge:o===w?c[0]===`>`?(o=i??C,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?w:c[3]===`"`?ve:_e):o===ve||o===_e?o=w:o===he||o===ge?o=C:(o=w,i=void 0);let d=o===w&&e[t+1].startsWith(`/>`)?` `:``;a+=o===C?n+de:l>=0?(r.push(s),n.slice(0,l)+le+n.slice(l)+y+d):n+y+(l===-2?t:d)}return[xe(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]};var Ce=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=Se(t,n);if(this.el=e.createElement(l,r),D.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=D.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(le)){let t=u[o++],n=i.getAttribute(e).split(y),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?Ee:r[1]===`?`?De:r[1]===`@`?Oe:k}),i.removeAttribute(e)}else e.startsWith(y)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(ye.test(i.tagName)){let e=i.textContent.split(y),t=e.length-1;if(t>0){i.textContent=v?v.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],x()),D.nextNode(),c.push({type:2,index:++a});i.append(e[t],x())}}}else if(i.nodeType===8){if(i.data===ue)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(y,e+1))!==-1;)c.push({type:7,index:a}),e+=y.length-1}}a++}}static createElement(e,t){let n=b.createElement(`template`);return n.innerHTML=e,n}};function O(e,t,n=e,r){if(t===T)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=S(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,n,r)),r===void 0?n._$Cl=i:(n._$Co??=[])[r]=i),i!==void 0&&(t=O(e,i._$AS(e,t.values),i,r)),t}var we=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??b).importNode(t,!0);D.currentNode=r;let i=D.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new Te(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new ke(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=D.nextNode(),a++)}return D.currentNode=b,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},Te=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=O(this,e,t),S(e)?e===E||e==null||e===``?(this._$AH!==E&&this._$AR(),this._$AH=E):e!==this._$AH&&e!==T&&this._(e):e._$litType$===void 0?e.nodeType===void 0?pe(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==E&&S(this._$AH)?this._$AA.nextSibling.data=e:this.T(b.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=Ce.createElement(xe(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new we(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=be.get(e.strings);return t===void 0&&be.set(e.strings,t=new Ce(e)),t}k(t){fe(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(x()),this.O(x()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=se(e).nextSibling;se(e).remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},k=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=E,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(/* @__PURE__ */ new String),this.strings=n):this._$AH=E}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=O(this,e,t,0),a=!S(e)||e!==this._$AH&&e!==T,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=O(this,r[n+o],t,o),s===T&&(s=this._$AH[o]),a||=!S(s)||s!==this._$AH[o],s===E?e=E:e!==E&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},Ee=class extends k{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===E?void 0:e}},De=class extends k{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==E)}},Oe=class extends k{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=O(this,e,t,0)??E)===T)return;let n=this._$AH,r=e===E&&n!==E||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==E&&(n===E||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ke=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){O(this,e)}};const Ae=oe.litHtmlPolyfillSupport;Ae?.(Ce,Te),(oe.litHtmlVersions??=[]).push(`3.3.3`);const je=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new Te(t.insertBefore(x(),e),e,void 0,n??{})}return i._$AI(e),i},Me=globalThis
|
|
20
20
|
/**
|
|
21
21
|
* @license
|
|
22
22
|
* Copyright 2017 Google LLC
|
|
23
23
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
24
24
|
*/
|
|
25
|
-
;var
|
|
25
|
+
;var A=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=je(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return T}};A._$litElement$=!0,A.finalized=!0,Me.litElementHydrateSupport?.({LitElement:A});const Ne=Me.litElementPolyfillSupport;Ne?.({LitElement:A}),(Me.litElementVersions??=[]).push(`4.2.2`);
|
|
26
26
|
/**
|
|
27
27
|
* @license
|
|
28
28
|
* Copyright 2017 Google LLC
|
|
29
29
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
30
|
*/
|
|
31
|
-
const
|
|
31
|
+
const j=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})},Pe={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:ie},Fe=(e=Pe,t,n)=>{
|
|
32
32
|
/**
|
|
33
33
|
* @license
|
|
34
34
|
* Copyright 2017 Google LLC
|
|
35
35
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
36
|
*/
|
|
37
|
-
let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=/* @__PURE__ */ new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function
|
|
37
|
+
let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=/* @__PURE__ */ new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function M(e){return(t,n)=>typeof n==`object`?Fe(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}
|
|
38
38
|
/**
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2017 Google LLC
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
42
|
*/
|
|
43
|
-
function
|
|
43
|
+
function Ie(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}const N={fromAttribute:e=>e?e.split(`,`).map(e=>e.trim()).filter(Boolean):[],toAttribute:e=>e.join(`,`)};function P(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var F=class extends A{constructor(){super(),this.bgColors=[`#000`,`#000`],this.bgAngle=0,this.backgroundColor=`0, 0, 0`,this.width=0,this.height=0,this.animationFrameId=null,this.trailOpacity=.1,this.cleanTrail=!0,this.fadeMasks=[],this.fadeTurn=0,this.handleVisibilityChange=()=>{document.visibilityState===`hidden`?this.stopAnimation():this.startAnimation()},this.canvas=document.createElement(`canvas`),this.ctx=this.canvas.getContext(`2d`),this.debouncedResize=Ie(this.resizeCanvas.bind(this),100)}firstUpdated(){this.shadowRoot.appendChild(this.canvas),this.resizeCanvas(),this.initialize(),this.startAnimation(),window.addEventListener(`resize`,this.debouncedResize),document.addEventListener(`visibilitychange`,this.handleVisibilityChange)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(`resize`,this.debouncedResize),document.removeEventListener(`visibilitychange`,this.handleVisibilityChange),this.stopAnimation()}updated(e){super.updated(e),this.canvas.style.background=this.cleanTrail?this.cssBackground():``}drawBackground(e){this.cleanTrail?e.clearRect(0,0,this.width,this.height):(e.fillStyle=this.backgroundGradient(e),e.fillRect(0,0,this.width,this.height))}fadeTrail(){this.cleanTrail?this.fadeTrailCleanly():(this.ctx.globalAlpha=this.trailOpacity,this.drawBackground(this.ctx),this.ctx.globalAlpha=1)}fadeTrailCleanly(){if(this.trailOpacity<=0)return;let e=Math.max(this.trailOpacity,.1),t=Math.round(e/this.trailOpacity);this.fadeMasks.length!==t&&(this.fadeMasks=Le(this.ctx,t));let n=this.ctx;n.save(),n.globalCompositeOperation=`destination-out`,n.globalAlpha=Math.min(1,e),n.fillStyle=this.fadeMasks[this.fadeTurn++%t],n.fillRect(0,0,this.width,this.height),n.restore()}cssBackground(){let e=this.bgColors.length>0?this.bgColors:[`#000`];return e.length===1?e[0]:`linear-gradient(${this.bgAngle+90}deg, ${e.join(`, `)})`}backgroundGradient(e){let t=this.bgAngle*Math.PI/180,n=Math.cos(t),r=Math.sin(t),i=(Math.abs(this.width*n)+Math.abs(this.height*r))/2,a=this.width/2,o=this.height/2,s=e.createLinearGradient(a-n*i,o-r*i,a+n*i,o+r*i),c=this.bgColors.length>0?this.bgColors:[`#000`,`#000`];try{c.forEach((e,t)=>{s.addColorStop(t/(c.length-1||1),e)})}catch{s.addColorStop(0,`#000`),s.addColorStop(1,`#000`)}return s}resizeCanvas(){let e=this.getBoundingClientRect(),t=window.devicePixelRatio||1;(e.width!==this.width||e.height!==this.height)&&(this.width=e.width,this.height=e.height,this.canvas.width=Math.floor(this.width*t),this.canvas.height=Math.floor(this.height*t),this.canvas.style.width=`${this.width}px`,this.canvas.style.height=`${this.height}px`,this.canvas.style.borderRadius=`inherit`,this.ctx.scale(t,t),this.drawBackground(this.ctx))}initialize(){}startAnimation(){if(this.animationFrameId!==null)return;let e=performance.now(),t=n=>{let r=Math.max(0,n-e)/1e3;e=n,this.loop(r),this.animationFrameId=requestAnimationFrame(t)};this.animationFrameId=requestAnimationFrame(t)}stopAnimation(){this.animationFrameId!==null&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}static{this.styles=o`
|
|
44
44
|
:host {
|
|
45
45
|
border-radius: inherit;
|
|
46
46
|
display: flex;
|
|
47
47
|
}
|
|
48
|
-
`}render(){}};F([N({type:Array,attribute:`bg-colors`,converter:P})],I.prototype,`bgColors`,void 0),F([N({type:Number,attribute:`bg-angle`})],I.prototype,`bgAngle`,void 0),F([N({type:String,attribute:`background-color`})],I.prototype,`backgroundColor`,void 0),F([N({type:Number,attribute:`trail-opacity`})],I.prototype,`trailOpacity`,void 0),F([N({attribute:`clean-trail`,converter:e=>e!==`false`})],I.prototype,`cleanTrail`,void 0);function Ie(e,t){let n=Array.from({length:4096},()=>Math.floor(Math.random()*t));return Array.from({length:t},(t,r)=>{let i=new ImageData(64,64);n.forEach((e,t)=>{e===r&&(i.data[t*4+3]=255)});let a=document.createElement(`canvas`);return a.width=a.height=64,a.getContext(`2d`).putImageData(i,0,0),e.createPattern(a,`repeat`)})}function L(e,t){return Math.random()*(t-e)+e}function R(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1)+e)}let z=null;function Le(e=[0,360],t=[0,100],n=[40,60]){return`hsl(${R(e[0],e[1])}, ${R(t[0],t[1])}%, ${R(n[0],n[1])}%)`}function Re(e,t,n,r){return`hsla(${e}, ${t}%, ${n}%, ${r})`}function ze(e){let[t,n,r]=B(e).map(e=>e/255),i=Math.max(t,n,r),a=Math.min(t,n,r),o=(i+a)/2,s=i-a;if(s===0)return{h:0,s:0,l:o};let c=s/(1-Math.abs(2*o-1)),l;return l=i===t?((n-r)/s+6)%6:i===n?(r-t)/s+2:(t-n)/s+4,{h:l*60,s:c,l:o}}function Be(e,t){let n=e.map(B);return Array.from({length:t},(e,r)=>{let i=r/(t-1)*(n.length-1),a=Math.floor(i),o=n[a],s=n[a+1]??o;return`rgb(${o.map((e,t)=>Math.round(e+(s[t]-e)*(i-a))).join(`, `)})`})}function B(e){z??=document.createElement(`canvas`).getContext(`2d`),z.fillStyle=`#000`,z.fillStyle=e;let t=String(z.fillStyle);return t.startsWith(`#`)?[1,3,5].map(e=>parseInt(t.slice(e,e+2),16)):t.match(/[\d.]+/g).slice(0,3).map(Number)}function Ve(e,t){let n=2/e.getTransform().a,r=e.globalAlpha;e.lineWidth=Math.max(t,n),e.globalAlpha=r*Math.min(1,Math.max(0,t)/n),e.stroke(),e.globalAlpha=r}var He=class{constructor(e,t){this.speed=[],this.lines=[],this.angle=[L(0,Math.PI*2),L(0,Math.PI*2),L(0,Math.PI*2),L(0,Math.PI*2)];let n=()=>Math.random()>.5?1:-1;this.speedSeeds=[Math.random(),Math.random(),Math.random(),Math.random()],this.speedSigns=[n(),n(),n(),n()],this.updateSpeeds(e,t)}updateSpeeds(e,t){this.speed=this.speedSeeds.map((n,r)=>this.speedSigns[r]*(e+n*(t-e)))}update(e){this.angle[0]+=this.speed[0],this.angle[1]+=this.speed[1],this.angle[2]+=this.speed[2],this.angle[3]+=this.speed[3];let t=[Math.sin(this.angle[0]),Math.sin(this.angle[1]),Math.sin(this.angle[2]),Math.sin(this.angle[3])];this.lines.push(t),this.lines.length>e&&this.lines.shift()}};let V=class extends I{constructor(...e){super(...e),this.ribbonCount=5,this.ribbonWidth=100,this.ribbonRotation=45,this.ribbonHueStart=11,this.ribbonHueEnd=14,this.ribbonSaturationStart=100,this.ribbonSaturationEnd=100,this.ribbonLightnessStart=50,this.ribbonLightnessEnd=50,this.ribbonAmplitude=.5,this.ribbonSpeedMin=.004,this.ribbonSpeedMax=.008,this.ribbonLineWidth=2,this.ribbonLineOpacity=.2,this.ribbons=[]}initialize(){this.ribbons=[];for(let e=0;e<this.ribbonCount;e++)this.ribbons.push(new He(this.ribbonSpeedMin,this.ribbonSpeedMax));for(let e=0;e<this.ribbonCount;e++)for(let t=0;t<this.ribbonWidth;t++)this.ribbons[e].update(this.ribbonWidth)}updated(e){super.updated(e),(e.has(`ribbonSpeedMin`)||e.has(`ribbonSpeedMax`))&&this.ribbons.forEach(e=>e.updateSpeeds(this.ribbonSpeedMin,this.ribbonSpeedMax)),e.has(`ribbonCount`)&&this.initialize(),e.has(`ribbonWidth`)&&this.ribbons.forEach(e=>{e.lines.length>this.ribbonWidth&&(e.lines=e.lines.slice(-this.ribbonWidth))})}loop(){this.ctx.clearRect(0,0,this.width,this.height),this.drawBackground(this.ctx),this.ribbons.forEach(e=>{e.update(this.ribbonWidth),e.lines.forEach((t,n)=>{let r=n/(e.lines.length-1||1);this.ctx.strokeStyle=this.lineColor(r),this.drawLine(t)})})}drawLine(e){let t=Math.sqrt(this.width**2+this.height**2)/2,n=this.ribbonRotation*Math.PI/180,r=this.ribbonAmplitude,i=(e,t,n)=>[this.width/2+e*t*Math.cos(n),this.height/2+e*t*Math.sin(n)];this.ctx.beginPath(),this.ctx.moveTo(...i(-1,t,e[0]*r+n)),this.ctx.bezierCurveTo(...i(-1,t/3,e[1]*r*2),...i(1,t/3,e[2]*r*2),...i(1,t,e[3]*r+n)),Ve(this.ctx,this.ribbonLineWidth)}lineColor(e){let t=(t,n)=>n+(t-n)*e;return Re(t(this.ribbonHueStart,this.ribbonHueEnd),t(this.ribbonSaturationStart,this.ribbonSaturationEnd),t(this.ribbonLightnessStart,this.ribbonLightnessEnd),this.ribbonLineOpacity)}};F([N({type:Number,attribute:`ribbon-count`})],V.prototype,`ribbonCount`,void 0),F([N({type:Number,attribute:`ribbon-width`})],V.prototype,`ribbonWidth`,void 0),F([N({type:Number,attribute:`ribbon-rotation`})],V.prototype,`ribbonRotation`,void 0),F([N({type:Number,attribute:`ribbon-hue-start`})],V.prototype,`ribbonHueStart`,void 0),F([N({type:Number,attribute:`ribbon-hue-end`})],V.prototype,`ribbonHueEnd`,void 0),F([N({type:Number,attribute:`ribbon-saturation-start`})],V.prototype,`ribbonSaturationStart`,void 0),F([N({type:Number,attribute:`ribbon-saturation-end`})],V.prototype,`ribbonSaturationEnd`,void 0),F([N({type:Number,attribute:`ribbon-lightness-start`})],V.prototype,`ribbonLightnessStart`,void 0),F([N({type:Number,attribute:`ribbon-lightness-end`})],V.prototype,`ribbonLightnessEnd`,void 0),F([N({type:Number,attribute:`ribbon-amplitude`})],V.prototype,`ribbonAmplitude`,void 0),F([N({type:Number,attribute:`ribbon-speed-min`})],V.prototype,`ribbonSpeedMin`,void 0),F([N({type:Number,attribute:`ribbon-speed-max`})],V.prototype,`ribbonSpeedMax`,void 0),F([N({type:Number,attribute:`ribbon-line-width`})],V.prototype,`ribbonLineWidth`,void 0),F([N({type:Number,attribute:`ribbon-line-opacity`})],V.prototype,`ribbonLineOpacity`,void 0),V=F([M(`bb-ambient-ribbon`)],V);function Ue(){let e=Float32Array.from({length:65536},()=>Math.random()),t=(t,n)=>e[(n&255)*256+(t&255)],n=(e,n)=>{let r=Math.floor(e),i=Math.floor(n),a=We(e-r),o=We(n-i);return Ge(Ge(t(r,i),t(r+1,i),a),Ge(t(r,i+1),t(r+1,i+1),a),o)};return(e,t)=>{let r=0;for(let i=1;i<=4;i++)r+=n(e*2**(i-1),t*2**(i-1))/2**i;return r}}function We(e){return(1-Math.cos(e*Math.PI))/2}function Ge(e,t,n){return e+(t-e)*n}const Ke=[`#89964e`],qe=.1,Je=3/2.2**2,H=Array.from({length:64},(e,t)=>{let n=t/64*Math.PI*2;return[Math.cos(n)*qe,Math.sin(n)*qe]});let U=class extends I{constructor(...e){super(...e),this.particleAmount=4500,this.particleLife=6,this.pulseStrength=.5,this.pulseSpeed=.1,this.lineOpacity=.08,this.flowSpeed=132,this.terrainSize=3333,this.lineColors=Ke,this.trailOpacity=.005,this.cols=0,this.rows=0,this.flow=/* @__PURE__ */ new Float32Array,this.lowest=0,this.highest=0,this.shades=[],this.time=0,this.particles=[],this.builtFor=``}initialize(){this.cols=Math.ceil((this.width+200)/10),this.rows=Math.ceil((this.height+200)/10),this.terrain=Ue(),this.survey(),this.shades=Be(this.colors(),128),this.particles=Array.from({length:this.particleAmount},()=>this.spawn()),this.builtFor=this.settings(),this.drawBackground(this.ctx)}loop(e){this.builtFor!==this.settings()&&this.initialize(),this.time+=e,this.fadeTrail();let t=this.flowSpeed*e,n=this.shades.map(()=>new Path2D);for(let r of this.particles)r.age+=e,r.age>r.life&&Object.assign(r,this.spawn()),this.move(r,t,n[this.shadeIndex(r)]);this.stroke(n)}settings(){return[this.width,this.height,this.terrainSize,this.particleAmount,this.lineColors].join(` `)}colors(){return this.lineColors.length>0?this.lineColors:Ke}survey(){let e=10/this.terrainSize;this.flow=new Float32Array(this.cols*this.rows*2),this.lowest=1/0,this.highest=-1/0;for(let t=0;t<this.rows;t++)for(let n=0;n<this.cols;n++){let[r,i]=[n*e,t*e],a=this.terrain(r,i);this.lowest=Math.min(this.lowest,a),this.highest=Math.max(this.highest,a);let o=(t*this.cols+n)*2;this.flow.set(Ye(this.terrain,r,i),o)}}shadeIndex({x:e,y:t}){let n=this.terrain(e/this.terrainSize,t/this.terrainSize),r=this.highest-this.lowest||1,i=Math.floor((n-this.lowest)/r*128);return Math.min(127,Math.max(0,i))}spawn(){return{x:Math.random()*this.cols*10,y:Math.random()*this.rows*10,dx:0,dy:0,age:0,life:this.particleLife*(.5+Math.random())}}pulse(e){let t=e/128,n=this.pulseSpeed*this.time+t*2;return 1+this.pulseStrength*Math.sin(n*2*Math.PI)}move(e,t,n){let r=(Math.floor(e.y/10)*this.cols+Math.floor(e.x/10))*2,i=e.dx+this.flow[r]*Je*t,a=e.dy+this.flow[r+1]*Je*t,o=Math.hypot(i,a)||1;e.dx=i/o,e.dy=a/o,n.moveTo(e.x,e.y),e.x+=e.dx*t,e.y+=e.dy*t,n.lineTo(e.x,e.y),e.x=Xe(e.x,this.cols*10),e.y=Xe(e.y,this.rows*10)}stroke(e){let t=this.ctx;t.save(),t.translate(-100,-100),t.lineWidth=1,e.forEach((e,n)=>{let r=this.lineOpacity*this.pulse(n);t.globalAlpha=Math.min(1,Math.max(0,r)),t.strokeStyle=this.shades[n],t.stroke(e)}),t.restore()}};F([N({type:Number,attribute:`particle-amount`})],U.prototype,`particleAmount`,void 0),F([N({type:Number,attribute:`particle-life`})],U.prototype,`particleLife`,void 0),F([N({type:Number,attribute:`pulse-strength`})],U.prototype,`pulseStrength`,void 0),F([N({type:Number,attribute:`pulse-speed`})],U.prototype,`pulseSpeed`,void 0),F([N({type:Number,attribute:`line-opacity`})],U.prototype,`lineOpacity`,void 0),F([N({type:Number,attribute:`flow-speed`})],U.prototype,`flowSpeed`,void 0),F([N({type:Number,attribute:`terrain-size`})],U.prototype,`terrainSize`,void 0),F([N({type:Array,attribute:`line-colors`,converter:P})],U.prototype,`lineColors`,void 0),U=F([M(`bb-contour-flow`)],U);function Ye(e,t,n){let r=H.map(([r,i])=>e(t+r,n+i)),i=r.indexOf(Math.max(...r)),a=r.indexOf(Math.min(...r)),o=H[a][0]-H[i][0],s=H[a][1]-H[i][1],c=(r[i]-r[a])/(Math.hypot(o,s)||1);return[o*c,s*c]}function Xe(e,t){return(e%t+t)%t}var Ze=class{constructor(e,t){this.x=e,this.y=t}update(e,t,n,r,i){let a=i/30;this.y*n*a>e&&Math.random()>t?this.y=0:this.y+=i*r}draw(e,t,n,r,i){let a=i/30;e.fillStyle=n,e.fillText(t,this.x*r,this.y*r*a)}};let W=class extends I{constructor(){super(),this.speed=10,this.characters=`ヲアウエオカキケコサシスセソタツテナニヌネハヒホマミムメモヤユラリワ`,this.randomness=.975,this.fontSize=24,this.fontColorHueStart=60,this.fontColorHueEnd=150,this.fontColorSaturationStart=90,this.fontColorSaturationEnd=100,this.fontColorLightnessStart=50,this.fontColorLightnessEnd=50,this.fontColors=[],this.columns=0,this.symbols=[],this.fontColorHueEnd=this.fontColorHueStart+90}initialize(){this.symbols=[],this.createSymbols(),this.drawBackground(this.ctx)}createSymbols(){this.columns=Math.floor(this.width/this.fontSize);for(let e=0;e<this.columns;e++)this.symbols[e]=this.createSymbol(e)}updateSymbols(){let e=Math.floor(this.width/this.fontSize);for(let t=this.symbols.length;t<e;t++)this.symbols[t]=this.createSymbol(t);this.symbols.length>e&&(this.symbols.length=e)}loop(e){this.updateSymbols(),this.fadeTrail(),this.ctx.textAlign=`center`,this.ctx.font=`${this.fontSize}px monospace`;let t=this.speed*3;this.symbols.forEach(n=>{n.draw(this.ctx,this.randomCharacter(),this.symbolColor(),this.fontSize,t),n.update(this.height,this.randomness,this.fontSize,e,t)})}randomCharacter(){return this.characters.charAt(Math.floor(Math.random()*this.characters.length))}symbolColor(){return this.fontColors.length>0?this.fontColors[Math.floor(Math.random()*this.fontColors.length)]:Le([this.fontColorHueStart,this.fontColorHueEnd],[this.fontColorSaturationStart,this.fontColorSaturationEnd],[this.fontColorLightnessStart,this.fontColorLightnessEnd])}createSymbol(e){return new Ze(e,R(0,-this.height/this.fontSize))}};F([N({type:Number,attribute:`speed`})],W.prototype,`speed`,void 0),F([N({type:String,attribute:`characters`})],W.prototype,`characters`,void 0),F([N({type:Number,attribute:`randomness`})],W.prototype,`randomness`,void 0),F([N({type:Number,attribute:`font-size`})],W.prototype,`fontSize`,void 0),F([N({type:Number,attribute:`font-color-hue-start`})],W.prototype,`fontColorHueStart`,void 0),F([N({type:Number,attribute:`font-color-hue-end`})],W.prototype,`fontColorHueEnd`,void 0),F([N({type:Number,attribute:`font-color-saturation-start`})],W.prototype,`fontColorSaturationStart`,void 0),F([N({type:Number,attribute:`font-color-saturation-end`})],W.prototype,`fontColorSaturationEnd`,void 0),F([N({type:Number,attribute:`font-color-lightness-start`})],W.prototype,`fontColorLightnessStart`,void 0),F([N({type:Number,attribute:`font-color-lightness-end`})],W.prototype,`fontColorLightnessEnd`,void 0),F([N({type:Array,attribute:`font-colors`,converter:P})],W.prototype,`fontColors`,void 0),W=F([M(`bb-digital-rain`)],W);let G=class extends I{constructor(...e){super(...e),this.hexSize=50,this.waveAmplitude=5.5,this.waveSpeed=1,this.waveXFactor=-.005,this.waveYFactor=-.005,this.shadeAmplitude=.5,this.shadeLightnessBoost=15,this.baseLightness=10,this.lightnessRange=25,this.hexHueStart=310,this.hexHueEnd=200,this.hexSaturation=100,this.hexScale=1,this.hexColors=[],this.grid=[],this.time=0}updated(e){super.updated(e),e.has(`hexSize`)&&this.initialize()}initialize(){this.grid=[],this.time=0;let e=this.hexSize,t=Math.sqrt(3)*e,n=e*1.5,r=Math.ceil(this.width/t)+2,i=Math.ceil(this.height/n)+2;for(let e=-1;e<i;e++)for(let i=-1;i<r;i++){let r=e%2==0?0:t/2;this.grid.push({x:i*t+r,y:e*n,colorIndex:Math.floor(Math.random()*1e3)})}}loop(e){this.time+=e,this.fadeTrail();for(let e of this.grid)this.drawCell(e)}drawCell(e){let t=e.x*this.waveXFactor,n=e.y*this.waveYFactor,r=Math.sin(this.time*this.waveSpeed+t+n),i=Math.sin(this.time+e.x+e.y)*this.shadeAmplitude,a=this.baseLightness+r*this.lightnessRange+i;this.drawHex(e.x,e.y+r*this.waveAmplitude,this.hexSize*this.hexScale,this.cellFill(e,a))}cellFill(e,t){if(this.hexColors.length>0){let{h:n,s:r}=ze(this.hexColors[e.colorIndex%this.hexColors.length]);return`hsl(${n}, ${r*100}%, ${t}%)`}let n=(e.x+e.y)/(this.width+this.height);return`hsl(${this.hexHueStart+(this.hexHueEnd-this.hexHueStart)*n}, ${this.hexSaturation}%, ${t}%)`}drawHex(e,t,n,r){let i=this.ctx;i.beginPath();for(let r=0;r<6;r++){let a=Math.PI*2/6*r-Math.PI/2,o=e+Math.cos(a)*n,s=t+Math.sin(a)*n;i.lineTo(o,s)}i.closePath(),i.fillStyle=r,i.fill()}};F([N({type:Number,attribute:`hex-size`})],G.prototype,`hexSize`,void 0),F([N({type:Number,attribute:`wave-amplitude`})],G.prototype,`waveAmplitude`,void 0),F([N({type:Number,attribute:`wave-speed`})],G.prototype,`waveSpeed`,void 0),F([N({type:Number,attribute:`wave-x-factor`})],G.prototype,`waveXFactor`,void 0),F([N({type:Number,attribute:`wave-y-factor`})],G.prototype,`waveYFactor`,void 0),F([N({type:Number,attribute:`shade-amplitude`})],G.prototype,`shadeAmplitude`,void 0),F([N({type:Number,attribute:`shade-lightness-boost`})],G.prototype,`shadeLightnessBoost`,void 0),F([N({type:Number,attribute:`base-lightness`})],G.prototype,`baseLightness`,void 0),F([N({type:Number,attribute:`lightness-range`})],G.prototype,`lightnessRange`,void 0),F([N({type:Number,attribute:`hex-hue-start`})],G.prototype,`hexHueStart`,void 0),F([N({type:Number,attribute:`hex-hue-end`})],G.prototype,`hexHueEnd`,void 0),F([N({type:Number,attribute:`hex-saturation`})],G.prototype,`hexSaturation`,void 0),F([N({type:Number,attribute:`hex-scale`})],G.prototype,`hexScale`,void 0),F([N({type:Array,attribute:`hex-colors`,converter:P})],G.prototype,`hexColors`,void 0),G=F([M(`bb-hexagon-wave`)],G);const Qe=[`#47d1d1`,`#475ed1`,`#a347d1`],$e=[[0,0],[.2,.5],[.5,.8],[.8,.5],[1,0]],et=[15,2],tt=[1,.3],nt=[21,4],rt=[.5,.9];let K=class extends I{constructor(...e){super(...e),this.shaftColors=Qe,this.shaftAmount=100,this.speed=1,this.trailOpacity=1,this.cleanTrail=!1,this.shafts=[],this.builtFor=``}initialize(){let e=Be(this.shaftColors.length>0?this.shaftColors:Qe,64);this.shafts=Array.from({length:this.shaftAmount},()=>this.shaft(e[Math.floor(Math.random()*64)])),this.builtFor=this.settings()}loop(e){this.builtFor!==this.settings()&&this.initialize();let t=this.ctx,n=e*Math.max(0,this.speed);this.fadeTrail(),t.globalCompositeOperation=`lighter`;for(let e of this.shafts){let r=this.width+e.sprite.width;e.x=(e.x+e.speed*n+e.sprite.width)%r-e.sprite.width,t.drawImage(e.sprite,e.x,e.y,e.sprite.width,e.height)}t.globalCompositeOperation=`source-over`}settings(){let{width:e,height:t,shaftAmount:n,shaftColors:r}=this;return`${e} ${t} ${n} ${r.join(`,`)}`}shaft(e){let t=Math.random(),n=q(et,t),r=document.createElement(`canvas`);r.width=Math.ceil(n+40),r.height=64;let i=r.getContext(`2d`),[a,o,s]=B(e),c=i.createLinearGradient(0,0,0,64);for(let[e,n]of $e){let r=n*q(tt,t);c.addColorStop(e,`rgba(${a}, ${o}, ${s}, ${r})`)}return i.fillStyle=c,i.shadowBlur=10,i.shadowColor=e,i.fillRect(20,0,n,64),{x:L(-r.width,this.width),y:L(0,.5*this.height),height:this.height*L(...rt),speed:q(nt,t),sprite:r}}};F([N({type:Array,attribute:`shaft-colors`,converter:P})],K.prototype,`shaftColors`,void 0),F([N({type:Number,attribute:`shaft-amount`})],K.prototype,`shaftAmount`,void 0),F([N({type:Number,attribute:`speed`})],K.prototype,`speed`,void 0),K=F([M(`bb-light-shafts`)],K);function q([e,t],n){return e+(t-e)*n}let J=class extends I{constructor(...e){super(...e),this.lineCount=20,this.lineAmplitude=30,this.lineFrequency=.005,this.speed=.5,this.lineSpacing=40,this.lineWidth=2,this.lineHueStart=200,this.lineHueEnd=280,this.lineSaturation=80,this.lineOffsetStep=.2,this.wiggleAmplitude=20,this.wiggleSpeed=.3,this.lineColors=[],this.time=0}loop(e){this.time+=e,this.fadeTrail();let t=this.height/2-this.lineCount*this.lineSpacing/2;for(let e=0;e<this.lineCount;e++)this.drawLine(e,t+e*this.lineSpacing)}drawLine(e,t){let n=this.ctx,r=this.width/99,i=e*this.lineOffsetStep,a=Math.sin(this.time*this.wiggleSpeed+i+e)*this.wiggleAmplitude,o=e=>t+Math.sin(e*this.lineFrequency+this.time*this.speed+i)*this.lineAmplitude+a;n.beginPath(),n.strokeStyle=this.lineColor(e),n.moveTo(0,o(0));for(let e=0;e<99;e++){let t=e*r,i=(e+1)*r,a=o(t);n.quadraticCurveTo(t,a,(t+i)/2,(a+o(i))/2)}Ve(n,this.lineWidth)}lineColor(e){let t=40+Math.sin(this.time*.001+e*.5)*10;if(this.lineColors.length>0){let{h:n,s:r}=ze(this.lineColors[e%this.lineColors.length]);return`hsl(${n}, ${r*100}%, ${t}%)`}let n=e/this.lineCount;return`hsl(${this.lineHueStart+(this.lineHueEnd-this.lineHueStart)*n}, ${this.lineSaturation}%, ${t}%)`}};F([N({type:Number,attribute:`line-count`})],J.prototype,`lineCount`,void 0),F([N({type:Number,attribute:`line-amplitude`})],J.prototype,`lineAmplitude`,void 0),F([N({type:Number,attribute:`line-frequency`})],J.prototype,`lineFrequency`,void 0),F([N({type:Number,attribute:`speed`})],J.prototype,`speed`,void 0),F([N({type:Number,attribute:`line-spacing`})],J.prototype,`lineSpacing`,void 0),F([N({type:Number,attribute:`line-width`})],J.prototype,`lineWidth`,void 0),F([N({type:Number,attribute:`line-hue-start`})],J.prototype,`lineHueStart`,void 0),F([N({type:Number,attribute:`line-hue-end`})],J.prototype,`lineHueEnd`,void 0),F([N({type:Number,attribute:`line-saturation`})],J.prototype,`lineSaturation`,void 0),F([N({type:Number,attribute:`line-offset-step`})],J.prototype,`lineOffsetStep`,void 0),F([N({type:Number,attribute:`wiggle-amplitude`})],J.prototype,`wiggleAmplitude`,void 0),F([N({type:Number,attribute:`wiggle-speed`})],J.prototype,`wiggleSpeed`,void 0),F([N({type:Array,attribute:`line-colors`,converter:P})],J.prototype,`lineColors`,void 0),J=F([M(`bb-liquid-lines`)],J);var it=class{constructor(e){this.initialized=!1,this.railFromX=0,this.railFromY=0,this.railToX=0,this.railToY=0,this.railProgress=0,this.size=e.size,this.speed=e.speed,this.color=e.color,this.radius=e.radius??1,this.angle=e.angle,this.lifespan=e.lifespan,this.force=e.force??1,this.gridSides=e.gridSides,this.gridSize=e.gridSize,this.gridAngle=e.gridAngle,this.x=e.x??0,this.y=e.y??0,this.px=this.x,this.py=this.y,this.born=Date.now(),this.fadeInDuration=this.lifespan*.25,this.fadeOutDuration=this.lifespan*.5}circularMove(e,t,n){this.angle+=this.speed*n,this.radius+=this.force*n,this.updatePosition(e+Math.cos(this.angle)*this.radius,t+Math.sin(this.angle)*this.radius)}draw(e){e.globalAlpha=this.calculateOpacity(),e.beginPath(),e.lineCap=`round`,e.strokeStyle=this.color,e.moveTo(this.px,this.py),e.lineTo(this.x,this.y),Ve(e,this.size*2),e.globalAlpha=1}isDead(){return Date.now()-this.born>this.lifespan}railMove(e,t,n){this.initialized||this.enterRail(e,t);let r=Math.abs(this.speed)*20;this.railProgress+=r/this.gridSize*n,this.railProgress>=1&&(--this.railProgress,this.railFromX=this.railToX,this.railFromY=this.railToY,this.pickNextRailTarget()),this.updatePosition(this.railFromX+(this.railToX-this.railFromX)*this.railProgress,this.railFromY+(this.railToY-this.railFromY)*this.railProgress)}enterRail(e,t){let n=this.snapToGrid(this.x,this.y,e,t);this.railFromX=n.x,this.railFromY=n.y,this.railProgress=0,this.pickNextRailTarget(),this.updatePosition(n.x,n.y)}pickNextRailTarget(){let e=Math.PI*2/this.gridSides,t=Math.floor(Math.random()*this.gridSides)*e+this.gridAngle;this.railToX=this.railFromX+Math.cos(t)*this.gridSize,this.railToY=this.railFromY+Math.sin(t)*this.gridSize}snapToGrid(e,t,n,r){let i=at(e-n,t-r,-this.gridAngle),a=this.nearestNode(i.x,i.y),o=at(a.x,a.y,this.gridAngle);return{x:o.x+n,y:o.y+r}}nearestNode(e,t){let n=this.gridSize;if(this.gridSides===6||this.gridSides===3){let r=n*Math.sqrt(3)/2,i=Math.round(t/r);return{x:Math.round((e-i*n/2)/n)*n+i*n/2,y:i*r}}return this.gridSides===4?{x:Math.round(e/n)*n,y:Math.round(t/n)*n}:{x:e,y:t}}updatePosition(e,t){this.initialized?(this.px=this.x,this.py=this.y,this.x=e,this.y=t):(this.x=e,this.y=t,this.px=e,this.py=t,this.initialized=!0)}calculateOpacity(){let e=Date.now()-this.born;return e<this.fadeInDuration?e/this.fadeInDuration:e>this.lifespan-this.fadeOutDuration?(this.lifespan-e)/this.fadeOutDuration:1}};function at(e,t,n){let r=Math.cos(n),i=Math.sin(n);return{x:e*r-t*i,y:e*i+t*r}}var Y=class extends I{constructor(...e){super(...e),this.particleSizeMin=1,this.particleSizeMax=1,this.particleSpeedMin=-30,this.particleSpeedMax=30,this.particleColorHueStart=130,this.particleColorHueEnd=300,this.particleColorSaturationStart=100,this.particleColorSaturationEnd=100,this.particleColorLightnessStart=50,this.particleColorLightnessEnd=0,this.particleLifespanMin=100,this.particleLifespanMax=5e4,this.particleAmount=2e3,this.gridSides=3,this.gridSize=60,this.gridAngle=Math.PI/2,this.particleColors=[],this.particles=[]}initialize(){this.particles=[],this.drawBackground(this.ctx),this.replenish()}loop(e){this.fadeTrail(),this.particles=this.particles.filter(e=>!e.isDead()),this.replenish(),this.particles.forEach(t=>{this.move(t,e),t.draw(this.ctx)})}createParticle(){return new it({size:L(this.particleSizeMin,this.particleSizeMax),speed:L(this.particleSpeedMin,this.particleSpeedMax),lifespan:L(this.particleLifespanMin,this.particleLifespanMax),color:this.particleColor(),gridSides:this.gridSides,gridSize:this.gridSize,gridAngle:this.gridAngle,...this.placement()})}replenish(){for(;this.particles.length<this.particleAmount;)this.particles.push(this.createParticle())}particleColor(){return this.particleColors.length>0?this.particleColors[Math.floor(Math.random()*this.particleColors.length)]:Le([this.particleColorHueStart,this.particleColorHueEnd],[this.particleColorSaturationStart,this.particleColorSaturationEnd],[this.particleColorLightnessStart,this.particleColorLightnessEnd])}};F([N({type:Number,attribute:`particle-size-min`})],Y.prototype,`particleSizeMin`,void 0),F([N({type:Number,attribute:`particle-size-max`})],Y.prototype,`particleSizeMax`,void 0),F([N({type:Number,attribute:`particle-speed-min`})],Y.prototype,`particleSpeedMin`,void 0),F([N({type:Number,attribute:`particle-speed-max`})],Y.prototype,`particleSpeedMax`,void 0),F([N({type:Number,attribute:`particle-color-hue-start`})],Y.prototype,`particleColorHueStart`,void 0),F([N({type:Number,attribute:`particle-color-hue-end`})],Y.prototype,`particleColorHueEnd`,void 0),F([N({type:Number,attribute:`particle-color-saturation-start`})],Y.prototype,`particleColorSaturationStart`,void 0),F([N({type:Number,attribute:`particle-color-saturation-end`})],Y.prototype,`particleColorSaturationEnd`,void 0),F([N({type:Number,attribute:`particle-color-lightness-start`})],Y.prototype,`particleColorLightnessStart`,void 0),F([N({type:Number,attribute:`particle-color-lightness-end`})],Y.prototype,`particleColorLightnessEnd`,void 0),F([N({type:Number,attribute:`particle-lifespan-min`})],Y.prototype,`particleLifespanMin`,void 0),F([N({type:Number,attribute:`particle-lifespan-max`})],Y.prototype,`particleLifespanMax`,void 0),F([N({type:Number,attribute:`particle-amount`})],Y.prototype,`particleAmount`,void 0),F([N({type:Number,attribute:`grid-sides`})],Y.prototype,`gridSides`,void 0),F([N({type:Number,attribute:`grid-size`})],Y.prototype,`gridSize`,void 0),F([N({type:Number,attribute:`grid-angle`})],Y.prototype,`gridAngle`,void 0),F([N({type:Array,attribute:`particle-colors`,converter:P})],Y.prototype,`particleColors`,void 0);let X=class extends Y{constructor(...e){super(...e),this.trailOpacity=.0125}move(e,t){e.railMove(this.width/2,this.height/2,t)}placement(){let e=L(0,this.width),t=L(0,this.height);return{angle:Math.atan2(t-this.height/2,e-this.width/2),x:e,y:t}}};F([N({type:Number,attribute:`trail-opacity`})],X.prototype,`trailOpacity`,void 0),X=F([M(`bb-neon-rails`)],X);const ot=`#005588`,st=.65,ct=[[1.1,.9,.7,1],[-.7,1.4,1.3,.55],[2.1,.5,.5,.3]],lt=ct.reduce((e,[,,,t])=>e+t,0);let Z=class extends I{constructor(...e){super(...e),this.silkColor=ot,this.swell=.2,this.sheen=.73,this.reach=st,this.speed=1,this.trailOpacity=1,this.cleanTrail=!1,this.time=0}loop(e){let t=Math.min(e,.06666666666666667)*Math.max(0,this.speed);this.time+=t||0,this.drawSea()}drawSea(){let e=Math.max(0,this.swell)||0,t=Math.min(1,Math.max(0,this.sheen))||0,n=this.reach>0?this.reach:st,{h:r,s:i,l:a}=ze(this.silkColor||ot),o=Math.min(.95,a+.55*t),s=Math.min(.5,Math.max(.01,.06/n)),c=s*s,l=this.ctx;this.fadeTrail();for(let t=0;t<64;t++){let s=c+(1-c)*(t/64);this.paintRow(l,this.curve(s,e,n),r,i,a,o,Math.min(1,s/.22))}l.globalAlpha=1}curve(e,t,n){let{width:r,height:i}=this,a=i*(.2+.8600000000000001*e),o=r*(.55+.45*e),s=t*i*e/n,c=t=>t*3*n/e,l=20*n/e,u={xs:[],ys:[],swells:[]};for(let e=0;e<=48;e++){let t=e/48*2-1,n=ut(c(t),l,this.time);u.xs.push(r/2+t*o),u.ys.push(a-s*n),u.swells.push(n)}return u}paintRow(e,t,n,r,i,a,o){let s=t.xs[0],c=t.xs[48],l=e.createLinearGradient(s,0,c,0);t.swells.forEach((e,o)=>{let u=(t.xs[o]-s)/(c-s),d=i+(a-i)*((e+1)/2);l.addColorStop(u,`hsl(${Math.round(n)}, ${Math.round(r*100)}%, ${(d*100).toFixed(1)}%)`)}),e.beginPath(),t.xs.forEach((n,r)=>{r===0?e.moveTo(n,t.ys[r]):e.lineTo(n,t.ys[r])}),e.lineTo(c,this.height+1),e.lineTo(s,this.height+1),e.closePath(),e.globalAlpha=o,e.fillStyle=l,e.fill()}};F([N({type:String,attribute:`silk-color`})],Z.prototype,`silkColor`,void 0),F([N({type:Number,attribute:`swell`})],Z.prototype,`swell`,void 0),F([N({type:Number,attribute:`sheen`})],Z.prototype,`sheen`,void 0),F([N({type:Number,attribute:`reach`})],Z.prototype,`reach`,void 0),F([N({type:Number,attribute:`speed`})],Z.prototype,`speed`,void 0),Z=F([M(`bb-silk-waves`)],Z);function ut(e,t,n){let r=0;for(let[i,a,o,s]of ct)r+=s*Math.sin(i*e+a*t+o*n);return r/lt}const dt=[`#b24c8b`,`#9f972d`,`#68c44f`,`#15caa8`,`#00abea`,`#156aff`,`#6810ff`,`#9f00d7`],ft=.001,pt=.35,mt=.01,ht=.2;let Q=class extends I{constructor(...e){super(...e),this.ringColors=dt,this.ringSize=.2,this.ringWobble=.03,this.speed=1,this.trailOpacity=.005,this.cleanTrail=!1,this.time=0,this.columns=0,this.rows=0,this.smoke=/* @__PURE__ */ new Float32Array,this.next=/* @__PURE__ */ new Float32Array,this.soft=/* @__PURE__ */ new Float32Array,this.image=new ImageData(1,1),this.buffer=document.createElement(`canvas`),this.builtFor=``}initialize(){let e=Math.min(1,Math.sqrt(15e4/(this.width*this.height)));this.columns=Math.max(1,Math.round(this.width*e)),this.rows=Math.max(1,Math.round(this.height*e)),this.smoke=new Float32Array(this.columns*this.rows*3),this.next=new Float32Array(this.smoke.length),this.soft=new Float32Array(this.smoke.length),this.image=new ImageData(this.columns,this.rows),this.buffer.width=this.columns,this.buffer.height=this.rows,this.builtFor=this.size()}loop(e){this.builtFor!==this.size()&&this.initialize();let t=Math.min(e,.06666666666666667)*Math.max(0,this.speed);this.time+=t,this.drift(60*t),this.shine(60*t),this.soften(),this.show()}size(){return`${this.width} ${this.height}`}drift(e){let{columns:t,rows:n,soft:r}=this,i=.996**e,a=Math.min(1,Math.max(0,this.trailOpacity)),o=(1-a)**e,s=.3*a*e,c=mt*t*e,l=mt*n*e,u=(t-1)/2,d=(n-1)/2,f=ft*t*e*Math.cos(pt*this.time),p=ft*n*e*Math.sin(pt*this.time);this.next.fill(0);for(let e=0;e<n;e++)for(let n=0;n<t;n++){let a=(e*t+n)*3;this.takeSmoke(u+(n-u)*i+f,d+(e-d)*i+p,.6,a),this.takeSmoke(n+(r[a+1]-ht)*c,e-(r[a]-ht)*l,.4,a);for(let e=a;e<a+3;e++)this.next[e]=Math.max(0,this.next[e]-s)*o}[this.smoke,this.next]=[this.next,this.smoke]}takeSmoke(e,t,n,r){let{columns:i,rows:a,smoke:o}=this;e=Math.min(Math.max(e,0),i-1),t=Math.min(Math.max(t,0),a-1);let s=Math.floor(e),c=Math.floor(t),l=Math.min(s+1,i-1),u=Math.min(c+1,a-1),d=e-s,f=t-c,p=(c*i+s)*3,m=(c*i+l)*3,h=(u*i+s)*3,ee=(u*i+l)*3;for(let e=0;e<3;e++){let t=o[p+e]+(o[m+e]-o[p+e])*d,i=o[h+e]+(o[ee+e]-o[h+e])*d;this.next[r+e]+=(t+(i-t)*f)*n}}shine(e){let t=this.ringColor(),n=this.ringSize*Math.min(this.columns,this.rows),r=(this.columns-1)/2,i=(this.rows-1)/2,a=this.ringWobble*Math.sin(1.5*this.time),o=.5*this.time,s=.6-Math.abs(a),c=1+Math.abs(a);for(let l=0;l<this.rows;l++)for(let u=0;u<this.columns;u++){let d=Math.hypot(u-r,l-i)/n;if(!(d>=s&&d<=c))continue;let f=Math.atan2(l-i,u-r),p=a*Math.sin(7*f+o),m=gt(Math.abs(d+p))*e,h=(l*this.columns+u)*3;for(let e=0;e<3;e++){let n=this.smoke[h+e]+t[e]*m;this.smoke[h+e]=Math.min(1,n)}}}ringColor(){let e=(this.ringColors.length>0?this.ringColors:dt).map(B),t=this.time/3%1*e.length,n=e[Math.floor(t)],r=e[(Math.floor(t)+1)%e.length],i=t-Math.floor(t);return n.map((e,t)=>(e+(r[t]-e)*i)/255)}soften(){let{columns:e,rows:t,smoke:n}=this;for(let r=0;r<t;r++){let i=Math.max(r-1,0)*e,a=Math.min(r+1,t-1)*e;for(let t=0;t<e;t++){let o=(r*e+t)*3,s=(r*e+Math.max(t-1,0))*3,c=(r*e+Math.min(t+1,e-1))*3,l=(i+t)*3,u=(a+t)*3;for(let e=0;e<3;e++)this.soft[o+e]=(n[o+e]+n[s+e]+n[c+e]+n[l+e]+n[u+e])/5}}}show(){let e=this.image.data;for(let t=0,n=0;t<this.soft.length;t+=3,n+=4)e[n]=this.soft[t]*255,e[n+1]=this.soft[t+1]*255,e[n+2]=this.soft[t+2]*255,e[n+3]=255;this.buffer.getContext(`2d`).putImageData(this.image,0,0);let t=this.ctx;this.drawBackground(t),t.globalCompositeOperation=`lighter`,t.drawImage(this.buffer,0,0,this.width,this.height),t.globalCompositeOperation=`source-over`}};F([N({type:Array,attribute:`ring-colors`,converter:P})],Q.prototype,`ringColors`,void 0),F([N({type:Number,attribute:`ring-size`})],Q.prototype,`ringSize`,void 0),F([N({type:Number,attribute:`ring-wobble`})],Q.prototype,`ringWobble`,void 0),F([N({type:Number,attribute:`speed`})],Q.prototype,`speed`,void 0),Q=F([M(`bb-smoke-ring`)],Q);function gt(e){let t=Math.min(1,Math.max(0,(1-e)/.1));return e**20*t*t*(3-2*t)}let $=class extends Y{constructor(...e){super(...e),this.particleForce=0,this.particleRadiusMin=1,this.particleRadiusMax=100,this.particleSizeMin=.5,this.particleSizeMax=1.5,this.particleSpeedMin=.025,this.particleSpeedMax=.05,this.particleColorHueStart=30,this.particleColorHueEnd=75,this.particleColorLightnessEnd=50,this.particleLifespanMin=1e3,this.particleLifespanMax=1e4,this.particleAmount=1e3,this.gridSides=6,this.gridSize=40,this.gridAngle=0}initialize(){this.particleRadiusMax=this.particleRadiusMax||this.width,super.initialize()}move(e,t){e.circularMove(this.width/2,this.height/2,t)}placement(){let e=L(0,Math.PI*2),t=this.particleRadiusMax-this.particleRadiusMin;return{angle:e,radius:Math.sqrt(Math.random())*t+this.particleRadiusMin,force:this.particleForce}}};F([N({type:Number,attribute:`particle-force`})],$.prototype,`particleForce`,void 0),F([N({type:Number,attribute:`particle-radius-min`})],$.prototype,`particleRadiusMin`,void 0),F([N({type:Number,attribute:`particle-radius-max`})],$.prototype,`particleRadiusMax`,void 0),$=F([M(`bb-star-trail`)],$);export{V as BbAmbientRibbon,U as BbContourFlow,W as BbDigitalRain,G as BbHexagonWave,K as BbLightShafts,J as BbLiquidLines,X as BbNeonRails,Z as BbSilkWaves,Q as BbSmokeRing,$ as BbStarTrail,I as BeautifulBackground};
|
|
48
|
+
`}render(){}};P([M({type:Array,attribute:`bg-colors`,converter:N})],F.prototype,`bgColors`,void 0),P([M({type:Number,attribute:`bg-angle`})],F.prototype,`bgAngle`,void 0),P([M({type:String,attribute:`background-color`})],F.prototype,`backgroundColor`,void 0),P([M({type:Number,attribute:`trail-opacity`})],F.prototype,`trailOpacity`,void 0),P([M({attribute:`clean-trail`,converter:e=>e!==`false`})],F.prototype,`cleanTrail`,void 0);function Le(e,t){let n=Array.from({length:4096},()=>Math.floor(Math.random()*t));return Array.from({length:t},(t,r)=>{let i=new ImageData(64,64);n.forEach((e,t)=>{e===r&&(i.data[t*4+3]=255)});let a=document.createElement(`canvas`);return a.width=a.height=64,a.getContext(`2d`).putImageData(i,0,0),e.createPattern(a,`repeat`)})}function I(e,t){return Math.random()*(t-e)+e}function L(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1)+e)}let R=null;function Re(e=[0,360],t=[0,100],n=[40,60]){return`hsl(${L(e[0],e[1])}, ${L(t[0],t[1])}%, ${L(n[0],n[1])}%)`}function ze(e,t,n,r){return`hsla(${e}, ${t}%, ${n}%, ${r})`}function Be(e){let[t,n,r]=z(e).map(e=>e/255),i=Math.max(t,n,r),a=Math.min(t,n,r),o=(i+a)/2,s=i-a;if(s===0)return{h:0,s:0,l:o};let c=s/(1-Math.abs(2*o-1)),l;return l=i===t?((n-r)/s+6)%6:i===n?(r-t)/s+2:(t-n)/s+4,{h:l*60,s:c,l:o}}function Ve(e,t){let n=e.map(z);return Array.from({length:t},(e,r)=>{let i=r/(t-1)*(n.length-1),a=Math.floor(i),o=n[a],s=n[a+1]??o;return`rgb(${o.map((e,t)=>Math.round(e+(s[t]-e)*(i-a))).join(`, `)})`})}function z(e){R??=document.createElement(`canvas`).getContext(`2d`),R.fillStyle=`#000`,R.fillStyle=e;let t=String(R.fillStyle);return t.startsWith(`#`)?[1,3,5].map(e=>parseInt(t.slice(e,e+2),16)):t.match(/[\d.]+/g).slice(0,3).map(Number)}function B(e,t){let n=2/e.getTransform().a,r=e.globalAlpha;e.lineWidth=Math.max(t,n),e.globalAlpha=r*Math.min(1,Math.max(0,t)/n),e.stroke(),e.globalAlpha=r}var He=class{constructor(e,t){this.speed=[],this.lines=[],this.angle=[I(0,Math.PI*2),I(0,Math.PI*2),I(0,Math.PI*2),I(0,Math.PI*2)];let n=()=>Math.random()>.5?1:-1;this.speedSeeds=[Math.random(),Math.random(),Math.random(),Math.random()],this.speedSigns=[n(),n(),n(),n()],this.updateSpeeds(e,t)}updateSpeeds(e,t){this.speed=this.speedSeeds.map((n,r)=>this.speedSigns[r]*(e+n*(t-e)))}update(e){this.angle[0]+=this.speed[0],this.angle[1]+=this.speed[1],this.angle[2]+=this.speed[2],this.angle[3]+=this.speed[3];let t=[Math.sin(this.angle[0]),Math.sin(this.angle[1]),Math.sin(this.angle[2]),Math.sin(this.angle[3])];this.lines.push(t),this.lines.length>e&&this.lines.shift()}};let V=class extends F{constructor(...e){super(...e),this.ribbonCount=5,this.ribbonWidth=100,this.ribbonRotation=45,this.ribbonHueStart=11,this.ribbonHueEnd=14,this.ribbonSaturationStart=100,this.ribbonSaturationEnd=100,this.ribbonLightnessStart=50,this.ribbonLightnessEnd=50,this.ribbonAmplitude=.5,this.ribbonSpeedMin=.004,this.ribbonSpeedMax=.008,this.ribbonLineWidth=2,this.ribbonLineOpacity=.2,this.ribbons=[]}initialize(){this.ribbons=[];for(let e=0;e<this.ribbonCount;e++)this.ribbons.push(new He(this.ribbonSpeedMin,this.ribbonSpeedMax));for(let e=0;e<this.ribbonCount;e++)for(let t=0;t<this.ribbonWidth;t++)this.ribbons[e].update(this.ribbonWidth)}updated(e){super.updated(e),(e.has(`ribbonSpeedMin`)||e.has(`ribbonSpeedMax`))&&this.ribbons.forEach(e=>e.updateSpeeds(this.ribbonSpeedMin,this.ribbonSpeedMax)),e.has(`ribbonCount`)&&this.initialize(),e.has(`ribbonWidth`)&&this.ribbons.forEach(e=>{e.lines.length>this.ribbonWidth&&(e.lines=e.lines.slice(-this.ribbonWidth))})}loop(){this.ctx.clearRect(0,0,this.width,this.height),this.drawBackground(this.ctx),this.ribbons.forEach(e=>{e.update(this.ribbonWidth),e.lines.forEach((t,n)=>{let r=n/(e.lines.length-1||1);this.ctx.strokeStyle=this.lineColor(r),this.drawLine(t)})})}drawLine(e){let t=Math.sqrt(this.width**2+this.height**2)/2,n=this.ribbonRotation*Math.PI/180,r=this.ribbonAmplitude,i=(e,t,n)=>[this.width/2+e*t*Math.cos(n),this.height/2+e*t*Math.sin(n)];this.ctx.beginPath(),this.ctx.moveTo(...i(-1,t,e[0]*r+n)),this.ctx.bezierCurveTo(...i(-1,t/3,e[1]*r*2),...i(1,t/3,e[2]*r*2),...i(1,t,e[3]*r+n)),B(this.ctx,this.ribbonLineWidth)}lineColor(e){let t=(t,n)=>n+(t-n)*e;return ze(t(this.ribbonHueStart,this.ribbonHueEnd),t(this.ribbonSaturationStart,this.ribbonSaturationEnd),t(this.ribbonLightnessStart,this.ribbonLightnessEnd),this.ribbonLineOpacity)}};P([M({type:Number,attribute:`ribbon-count`})],V.prototype,`ribbonCount`,void 0),P([M({type:Number,attribute:`ribbon-width`})],V.prototype,`ribbonWidth`,void 0),P([M({type:Number,attribute:`ribbon-rotation`})],V.prototype,`ribbonRotation`,void 0),P([M({type:Number,attribute:`ribbon-hue-start`})],V.prototype,`ribbonHueStart`,void 0),P([M({type:Number,attribute:`ribbon-hue-end`})],V.prototype,`ribbonHueEnd`,void 0),P([M({type:Number,attribute:`ribbon-saturation-start`})],V.prototype,`ribbonSaturationStart`,void 0),P([M({type:Number,attribute:`ribbon-saturation-end`})],V.prototype,`ribbonSaturationEnd`,void 0),P([M({type:Number,attribute:`ribbon-lightness-start`})],V.prototype,`ribbonLightnessStart`,void 0),P([M({type:Number,attribute:`ribbon-lightness-end`})],V.prototype,`ribbonLightnessEnd`,void 0),P([M({type:Number,attribute:`ribbon-amplitude`})],V.prototype,`ribbonAmplitude`,void 0),P([M({type:Number,attribute:`ribbon-speed-min`})],V.prototype,`ribbonSpeedMin`,void 0),P([M({type:Number,attribute:`ribbon-speed-max`})],V.prototype,`ribbonSpeedMax`,void 0),P([M({type:Number,attribute:`ribbon-line-width`})],V.prototype,`ribbonLineWidth`,void 0),P([M({type:Number,attribute:`ribbon-line-opacity`})],V.prototype,`ribbonLineOpacity`,void 0),V=P([j(`bb-ambient-ribbon`)],V);function Ue(){let e=Float32Array.from({length:65536},()=>Math.random()),t=(t,n)=>e[(n&255)*256+(t&255)],n=(e,n)=>{let r=Math.floor(e),i=Math.floor(n),a=We(e-r),o=We(n-i);return Ge(Ge(t(r,i),t(r+1,i),a),Ge(t(r,i+1),t(r+1,i+1),a),o)};return(e,t)=>{let r=0;for(let i=1;i<=4;i++)r+=n(e*2**(i-1),t*2**(i-1))/2**i;return r}}function We(e){return(1-Math.cos(e*Math.PI))/2}function Ge(e,t,n){return e+(t-e)*n}const Ke=[`#89964e`],qe=.1,Je=3/2.2**2,H=Array.from({length:64},(e,t)=>{let n=t/64*Math.PI*2;return[Math.cos(n)*qe,Math.sin(n)*qe]});let U=class extends F{constructor(...e){super(...e),this.particleAmount=4500,this.particleLife=6,this.pulseStrength=.5,this.pulseSpeed=.1,this.lineOpacity=.08,this.flowSpeed=132,this.terrainSize=3333,this.lineColors=Ke,this.trailOpacity=.005,this.cols=0,this.rows=0,this.flow=/* @__PURE__ */ new Float32Array,this.lowest=0,this.highest=0,this.shades=[],this.time=0,this.particles=[],this.builtFor=``}initialize(){this.cols=Math.ceil((this.width+200)/10),this.rows=Math.ceil((this.height+200)/10),this.terrain=Ue(),this.survey(),this.shades=Ve(this.colors(),128),this.particles=Array.from({length:this.particleAmount},()=>this.spawn()),this.builtFor=this.settings(),this.drawBackground(this.ctx)}loop(e){this.builtFor!==this.settings()&&this.initialize(),this.time+=e,this.fadeTrail();let t=this.flowSpeed*e,n=this.shades.map(()=>new Path2D);for(let r of this.particles)r.age+=e,r.age>r.life&&Object.assign(r,this.spawn()),this.move(r,t,n[this.shadeIndex(r)]);this.stroke(n)}settings(){return[this.width,this.height,this.terrainSize,this.particleAmount,this.lineColors].join(` `)}colors(){return this.lineColors.length>0?this.lineColors:Ke}survey(){let e=10/this.terrainSize;this.flow=new Float32Array(this.cols*this.rows*2),this.lowest=1/0,this.highest=-1/0;for(let t=0;t<this.rows;t++)for(let n=0;n<this.cols;n++){let[r,i]=[n*e,t*e],a=this.terrain(r,i);this.lowest=Math.min(this.lowest,a),this.highest=Math.max(this.highest,a);let o=(t*this.cols+n)*2;this.flow.set(Ye(this.terrain,r,i),o)}}shadeIndex({x:e,y:t}){let n=this.terrain(e/this.terrainSize,t/this.terrainSize),r=this.highest-this.lowest||1,i=Math.floor((n-this.lowest)/r*128);return Math.min(127,Math.max(0,i))}spawn(){return{x:Math.random()*this.cols*10,y:Math.random()*this.rows*10,dx:0,dy:0,age:0,life:this.particleLife*(.5+Math.random())}}pulse(e){let t=e/128,n=this.pulseSpeed*this.time+t*2;return 1+this.pulseStrength*Math.sin(n*2*Math.PI)}move(e,t,n){let r=(Math.floor(e.y/10)*this.cols+Math.floor(e.x/10))*2,i=e.dx+this.flow[r]*Je*t,a=e.dy+this.flow[r+1]*Je*t,o=Math.hypot(i,a)||1;e.dx=i/o,e.dy=a/o,n.moveTo(e.x,e.y),e.x+=e.dx*t,e.y+=e.dy*t,n.lineTo(e.x,e.y),e.x=Xe(e.x,this.cols*10),e.y=Xe(e.y,this.rows*10)}stroke(e){let t=this.ctx;t.save(),t.translate(-100,-100),t.lineWidth=1,e.forEach((e,n)=>{let r=this.lineOpacity*this.pulse(n);t.globalAlpha=Math.min(1,Math.max(0,r)),t.strokeStyle=this.shades[n],t.stroke(e)}),t.restore()}};P([M({type:Number,attribute:`particle-amount`})],U.prototype,`particleAmount`,void 0),P([M({type:Number,attribute:`particle-life`})],U.prototype,`particleLife`,void 0),P([M({type:Number,attribute:`pulse-strength`})],U.prototype,`pulseStrength`,void 0),P([M({type:Number,attribute:`pulse-speed`})],U.prototype,`pulseSpeed`,void 0),P([M({type:Number,attribute:`line-opacity`})],U.prototype,`lineOpacity`,void 0),P([M({type:Number,attribute:`flow-speed`})],U.prototype,`flowSpeed`,void 0),P([M({type:Number,attribute:`terrain-size`})],U.prototype,`terrainSize`,void 0),P([M({type:Array,attribute:`line-colors`,converter:N})],U.prototype,`lineColors`,void 0),U=P([j(`bb-contour-flow`)],U);function Ye(e,t,n){let r=H.map(([r,i])=>e(t+r,n+i)),i=r.indexOf(Math.max(...r)),a=r.indexOf(Math.min(...r)),o=H[a][0]-H[i][0],s=H[a][1]-H[i][1],c=(r[i]-r[a])/(Math.hypot(o,s)||1);return[o*c,s*c]}function Xe(e,t){return(e%t+t)%t}var Ze=class{constructor(e,t){this.x=e,this.y=t}update(e,t,n,r,i){let a=i/30;this.y*n*a>e&&Math.random()>t?this.y=0:this.y+=i*r}draw(e,t,n,r,i){let a=i/30;e.fillStyle=n,e.fillText(t,this.x*r,this.y*r*a)}};let W=class extends F{constructor(){super(),this.speed=10,this.characters=`ヲアウエオカキケコサシスセソタツテナニヌネハヒホマミムメモヤユラリワ`,this.randomness=.975,this.fontSize=24,this.fontColorHueStart=60,this.fontColorHueEnd=150,this.fontColorSaturationStart=90,this.fontColorSaturationEnd=100,this.fontColorLightnessStart=50,this.fontColorLightnessEnd=50,this.fontColors=[],this.columns=0,this.symbols=[],this.fontColorHueEnd=this.fontColorHueStart+90}initialize(){this.symbols=[],this.createSymbols(),this.drawBackground(this.ctx)}createSymbols(){this.columns=Math.floor(this.width/this.fontSize);for(let e=0;e<this.columns;e++)this.symbols[e]=this.createSymbol(e)}updateSymbols(){let e=Math.floor(this.width/this.fontSize);for(let t=this.symbols.length;t<e;t++)this.symbols[t]=this.createSymbol(t);this.symbols.length>e&&(this.symbols.length=e)}loop(e){this.updateSymbols(),this.fadeTrail(),this.ctx.textAlign=`center`,this.ctx.font=`${this.fontSize}px monospace`;let t=this.speed*3;this.symbols.forEach(n=>{n.draw(this.ctx,this.randomCharacter(),this.symbolColor(),this.fontSize,t),n.update(this.height,this.randomness,this.fontSize,e,t)})}randomCharacter(){return this.characters.charAt(Math.floor(Math.random()*this.characters.length))}symbolColor(){return this.fontColors.length>0?this.fontColors[Math.floor(Math.random()*this.fontColors.length)]:Re([this.fontColorHueStart,this.fontColorHueEnd],[this.fontColorSaturationStart,this.fontColorSaturationEnd],[this.fontColorLightnessStart,this.fontColorLightnessEnd])}createSymbol(e){return new Ze(e,L(0,-this.height/this.fontSize))}};P([M({type:Number,attribute:`speed`})],W.prototype,`speed`,void 0),P([M({type:String,attribute:`characters`})],W.prototype,`characters`,void 0),P([M({type:Number,attribute:`randomness`})],W.prototype,`randomness`,void 0),P([M({type:Number,attribute:`font-size`})],W.prototype,`fontSize`,void 0),P([M({type:Number,attribute:`font-color-hue-start`})],W.prototype,`fontColorHueStart`,void 0),P([M({type:Number,attribute:`font-color-hue-end`})],W.prototype,`fontColorHueEnd`,void 0),P([M({type:Number,attribute:`font-color-saturation-start`})],W.prototype,`fontColorSaturationStart`,void 0),P([M({type:Number,attribute:`font-color-saturation-end`})],W.prototype,`fontColorSaturationEnd`,void 0),P([M({type:Number,attribute:`font-color-lightness-start`})],W.prototype,`fontColorLightnessStart`,void 0),P([M({type:Number,attribute:`font-color-lightness-end`})],W.prototype,`fontColorLightnessEnd`,void 0),P([M({type:Array,attribute:`font-colors`,converter:N})],W.prototype,`fontColors`,void 0),W=P([j(`bb-digital-rain`)],W);const Qe=[`#c41e3a`,`#e0218a`,`#6a2c9e`,`#3b4fa8`,`#f5c800`],$e=[[0,`0, 0, 0`,.5],[.35,`0, 0, 0`,0],[.7,`255, 255, 255`,0],[1,`255, 255, 255`,.85]],et=.45;let G=class extends F{constructor(...e){super(...e),this.washColors=Qe,this.slatAmount=27,this.slatAngle=0,this.speed=1,this.trailOpacity=1,this.cleanTrail=!1,this.time=0}loop(e){this.time+=e*(Math.max(0,this.speed)||0),this.drawWash(),this.drawSlats()}drawWash(){let{ctx:e,width:t,height:n}=this,r=this.washColors.length>0?this.washColors:Qe,i=.5*Math.hypot(t,n);e.fillStyle=r[0],e.fillRect(0,0,t,n),r.forEach((r,a)=>{let o=.05+a%3*.01,s=t*(.5+et*Math.sin(this.time*o+a*2.4)),c=n*(.5+et*Math.cos(this.time*o*1.3+a*1.7)),l=z(r).join(`, `),u=e.createRadialGradient(s,c,0,s,c,i);u.addColorStop(0,`rgba(${l}, 1)`),u.addColorStop(1,`rgba(${l}, 0)`),e.fillStyle=u,e.fillRect(0,0,t,n)})}drawSlats(){let{ctx:e,width:t,height:n}=this,r=(this.slatAngle||0)*Math.PI/180,i=Math.abs(Math.cos(r)),a=Math.abs(Math.sin(r)),o=t*i+n*a,s=t*a+n*i,c=Math.round(this.slatAmount)||2,l=Math.min(Math.max(2,c),Math.max(2,Math.floor(o))),u=o/l;e.save(),e.translate(t/2,n/2),e.rotate(r);for(let t=0;t<l;t++){let n=-o/2+t*u,r=e.createLinearGradient(n,0,n+u,0);for(let[e,t,n]of $e)r.addColorStop(e,`rgba(${t}, ${n})`);e.fillStyle=r,e.fillRect(n,-s/2,u,s)}e.restore()}};P([M({type:Array,attribute:`wash-colors`,converter:N})],G.prototype,`washColors`,void 0),P([M({type:Number,attribute:`slat-amount`})],G.prototype,`slatAmount`,void 0),P([M({type:Number,attribute:`slat-angle`})],G.prototype,`slatAngle`,void 0),P([M({type:Number,attribute:`speed`})],G.prototype,`speed`,void 0),G=P([j(`bb-gradient-slats`)],G);let K=class extends F{constructor(...e){super(...e),this.hexSize=50,this.waveAmplitude=5.5,this.waveSpeed=1,this.waveXFactor=-.005,this.waveYFactor=-.005,this.shadeAmplitude=.5,this.shadeLightnessBoost=15,this.baseLightness=10,this.lightnessRange=25,this.hexHueStart=310,this.hexHueEnd=200,this.hexSaturation=100,this.hexScale=1,this.hexColors=[],this.grid=[],this.time=0}updated(e){super.updated(e),e.has(`hexSize`)&&this.initialize()}initialize(){this.grid=[],this.time=0;let e=this.hexSize,t=Math.sqrt(3)*e,n=e*1.5,r=Math.ceil(this.width/t)+2,i=Math.ceil(this.height/n)+2;for(let e=-1;e<i;e++)for(let i=-1;i<r;i++){let r=e%2==0?0:t/2;this.grid.push({x:i*t+r,y:e*n,colorIndex:Math.floor(Math.random()*1e3)})}}loop(e){this.time+=e,this.fadeTrail();for(let e of this.grid)this.drawCell(e)}drawCell(e){let t=e.x*this.waveXFactor,n=e.y*this.waveYFactor,r=Math.sin(this.time*this.waveSpeed+t+n),i=Math.sin(this.time+e.x+e.y)*this.shadeAmplitude,a=this.baseLightness+r*this.lightnessRange+i;this.drawHex(e.x,e.y+r*this.waveAmplitude,this.hexSize*this.hexScale,this.cellFill(e,a))}cellFill(e,t){if(this.hexColors.length>0){let{h:n,s:r}=Be(this.hexColors[e.colorIndex%this.hexColors.length]);return`hsl(${n}, ${r*100}%, ${t}%)`}let n=(e.x+e.y)/(this.width+this.height);return`hsl(${this.hexHueStart+(this.hexHueEnd-this.hexHueStart)*n}, ${this.hexSaturation}%, ${t}%)`}drawHex(e,t,n,r){let i=this.ctx;i.beginPath();for(let r=0;r<6;r++){let a=Math.PI*2/6*r-Math.PI/2,o=e+Math.cos(a)*n,s=t+Math.sin(a)*n;i.lineTo(o,s)}i.closePath(),i.fillStyle=r,i.fill()}};P([M({type:Number,attribute:`hex-size`})],K.prototype,`hexSize`,void 0),P([M({type:Number,attribute:`wave-amplitude`})],K.prototype,`waveAmplitude`,void 0),P([M({type:Number,attribute:`wave-speed`})],K.prototype,`waveSpeed`,void 0),P([M({type:Number,attribute:`wave-x-factor`})],K.prototype,`waveXFactor`,void 0),P([M({type:Number,attribute:`wave-y-factor`})],K.prototype,`waveYFactor`,void 0),P([M({type:Number,attribute:`shade-amplitude`})],K.prototype,`shadeAmplitude`,void 0),P([M({type:Number,attribute:`shade-lightness-boost`})],K.prototype,`shadeLightnessBoost`,void 0),P([M({type:Number,attribute:`base-lightness`})],K.prototype,`baseLightness`,void 0),P([M({type:Number,attribute:`lightness-range`})],K.prototype,`lightnessRange`,void 0),P([M({type:Number,attribute:`hex-hue-start`})],K.prototype,`hexHueStart`,void 0),P([M({type:Number,attribute:`hex-hue-end`})],K.prototype,`hexHueEnd`,void 0),P([M({type:Number,attribute:`hex-saturation`})],K.prototype,`hexSaturation`,void 0),P([M({type:Number,attribute:`hex-scale`})],K.prototype,`hexScale`,void 0),P([M({type:Array,attribute:`hex-colors`,converter:N})],K.prototype,`hexColors`,void 0),K=P([j(`bb-hexagon-wave`)],K);const tt=[`#47d1d1`,`#475ed1`,`#a347d1`],nt=[[0,0],[.2,.5],[.5,.8],[.8,.5],[1,0]],rt=[15,2],it=[1,.3],at=[21,4],ot=[.5,.9];let q=class extends F{constructor(...e){super(...e),this.shaftColors=tt,this.shaftAmount=100,this.speed=1,this.trailOpacity=1,this.cleanTrail=!1,this.shafts=[],this.builtFor=``}initialize(){let e=Ve(this.shaftColors.length>0?this.shaftColors:tt,64);this.shafts=Array.from({length:this.shaftAmount},()=>this.shaft(e[Math.floor(Math.random()*64)])),this.builtFor=this.settings()}loop(e){this.builtFor!==this.settings()&&this.initialize();let t=this.ctx,n=e*Math.max(0,this.speed);this.fadeTrail(),t.globalCompositeOperation=`lighter`;for(let e of this.shafts){let r=this.width+e.sprite.width;e.x=(e.x+e.speed*n+e.sprite.width)%r-e.sprite.width,t.drawImage(e.sprite,e.x,e.y,e.sprite.width,e.height)}t.globalCompositeOperation=`source-over`}settings(){let{width:e,height:t,shaftAmount:n,shaftColors:r}=this;return`${e} ${t} ${n} ${r.join(`,`)}`}shaft(e){let t=Math.random(),n=st(rt,t),r=document.createElement(`canvas`);r.width=Math.ceil(n+40),r.height=64;let i=r.getContext(`2d`),[a,o,s]=z(e),c=i.createLinearGradient(0,0,0,64);for(let[e,n]of nt){let r=n*st(it,t);c.addColorStop(e,`rgba(${a}, ${o}, ${s}, ${r})`)}return i.fillStyle=c,i.shadowBlur=10,i.shadowColor=e,i.fillRect(20,0,n,64),{x:I(-r.width,this.width),y:I(0,.5*this.height),height:this.height*I(...ot),speed:st(at,t),sprite:r}}};P([M({type:Array,attribute:`shaft-colors`,converter:N})],q.prototype,`shaftColors`,void 0),P([M({type:Number,attribute:`shaft-amount`})],q.prototype,`shaftAmount`,void 0),P([M({type:Number,attribute:`speed`})],q.prototype,`speed`,void 0),q=P([j(`bb-light-shafts`)],q);function st([e,t],n){return e+(t-e)*n}let J=class extends F{constructor(...e){super(...e),this.lineCount=20,this.lineAmplitude=30,this.lineFrequency=.005,this.speed=.5,this.lineSpacing=40,this.lineWidth=2,this.lineHueStart=200,this.lineHueEnd=280,this.lineSaturation=80,this.lineOffsetStep=.2,this.wiggleAmplitude=20,this.wiggleSpeed=.3,this.lineColors=[],this.time=0}loop(e){this.time+=e,this.fadeTrail();let t=this.height/2-this.lineCount*this.lineSpacing/2;for(let e=0;e<this.lineCount;e++)this.drawLine(e,t+e*this.lineSpacing)}drawLine(e,t){let n=this.ctx,r=this.width/99,i=e*this.lineOffsetStep,a=Math.sin(this.time*this.wiggleSpeed+i+e)*this.wiggleAmplitude,o=e=>t+Math.sin(e*this.lineFrequency+this.time*this.speed+i)*this.lineAmplitude+a;n.beginPath(),n.strokeStyle=this.lineColor(e),n.moveTo(0,o(0));for(let e=0;e<99;e++){let t=e*r,i=(e+1)*r,a=o(t);n.quadraticCurveTo(t,a,(t+i)/2,(a+o(i))/2)}B(n,this.lineWidth)}lineColor(e){let t=40+Math.sin(this.time*.001+e*.5)*10;if(this.lineColors.length>0){let{h:n,s:r}=Be(this.lineColors[e%this.lineColors.length]);return`hsl(${n}, ${r*100}%, ${t}%)`}let n=e/this.lineCount;return`hsl(${this.lineHueStart+(this.lineHueEnd-this.lineHueStart)*n}, ${this.lineSaturation}%, ${t}%)`}};P([M({type:Number,attribute:`line-count`})],J.prototype,`lineCount`,void 0),P([M({type:Number,attribute:`line-amplitude`})],J.prototype,`lineAmplitude`,void 0),P([M({type:Number,attribute:`line-frequency`})],J.prototype,`lineFrequency`,void 0),P([M({type:Number,attribute:`speed`})],J.prototype,`speed`,void 0),P([M({type:Number,attribute:`line-spacing`})],J.prototype,`lineSpacing`,void 0),P([M({type:Number,attribute:`line-width`})],J.prototype,`lineWidth`,void 0),P([M({type:Number,attribute:`line-hue-start`})],J.prototype,`lineHueStart`,void 0),P([M({type:Number,attribute:`line-hue-end`})],J.prototype,`lineHueEnd`,void 0),P([M({type:Number,attribute:`line-saturation`})],J.prototype,`lineSaturation`,void 0),P([M({type:Number,attribute:`line-offset-step`})],J.prototype,`lineOffsetStep`,void 0),P([M({type:Number,attribute:`wiggle-amplitude`})],J.prototype,`wiggleAmplitude`,void 0),P([M({type:Number,attribute:`wiggle-speed`})],J.prototype,`wiggleSpeed`,void 0),P([M({type:Array,attribute:`line-colors`,converter:N})],J.prototype,`lineColors`,void 0),J=P([j(`bb-liquid-lines`)],J);var ct=class{constructor(e){this.initialized=!1,this.railFromX=0,this.railFromY=0,this.railToX=0,this.railToY=0,this.railProgress=0,this.size=e.size,this.speed=e.speed,this.color=e.color,this.radius=e.radius??1,this.angle=e.angle,this.lifespan=e.lifespan,this.force=e.force??1,this.gridSides=e.gridSides,this.gridSize=e.gridSize,this.gridAngle=e.gridAngle,this.x=e.x??0,this.y=e.y??0,this.px=this.x,this.py=this.y,this.born=Date.now(),this.fadeInDuration=this.lifespan*.25,this.fadeOutDuration=this.lifespan*.5}circularMove(e,t,n){this.angle+=this.speed*n,this.radius+=this.force*n,this.updatePosition(e+Math.cos(this.angle)*this.radius,t+Math.sin(this.angle)*this.radius)}draw(e){e.globalAlpha=this.calculateOpacity(),e.beginPath(),e.lineCap=`round`,e.strokeStyle=this.color,e.moveTo(this.px,this.py),e.lineTo(this.x,this.y),B(e,this.size*2),e.globalAlpha=1}isDead(){return Date.now()-this.born>this.lifespan}railMove(e,t,n){this.initialized||this.enterRail(e,t);let r=Math.abs(this.speed)*20;this.railProgress+=r/this.gridSize*n,this.railProgress>=1&&(--this.railProgress,this.railFromX=this.railToX,this.railFromY=this.railToY,this.pickNextRailTarget()),this.updatePosition(this.railFromX+(this.railToX-this.railFromX)*this.railProgress,this.railFromY+(this.railToY-this.railFromY)*this.railProgress)}enterRail(e,t){let n=this.snapToGrid(this.x,this.y,e,t);this.railFromX=n.x,this.railFromY=n.y,this.railProgress=0,this.pickNextRailTarget(),this.updatePosition(n.x,n.y)}pickNextRailTarget(){let e=Math.PI*2/this.gridSides,t=Math.floor(Math.random()*this.gridSides)*e+this.gridAngle;this.railToX=this.railFromX+Math.cos(t)*this.gridSize,this.railToY=this.railFromY+Math.sin(t)*this.gridSize}snapToGrid(e,t,n,r){let i=lt(e-n,t-r,-this.gridAngle),a=this.nearestNode(i.x,i.y),o=lt(a.x,a.y,this.gridAngle);return{x:o.x+n,y:o.y+r}}nearestNode(e,t){let n=this.gridSize;if(this.gridSides===6||this.gridSides===3){let r=n*Math.sqrt(3)/2,i=Math.round(t/r);return{x:Math.round((e-i*n/2)/n)*n+i*n/2,y:i*r}}return this.gridSides===4?{x:Math.round(e/n)*n,y:Math.round(t/n)*n}:{x:e,y:t}}updatePosition(e,t){this.initialized?(this.px=this.x,this.py=this.y,this.x=e,this.y=t):(this.x=e,this.y=t,this.px=e,this.py=t,this.initialized=!0)}calculateOpacity(){let e=Date.now()-this.born;return e<this.fadeInDuration?e/this.fadeInDuration:e>this.lifespan-this.fadeOutDuration?(this.lifespan-e)/this.fadeOutDuration:1}};function lt(e,t,n){let r=Math.cos(n),i=Math.sin(n);return{x:e*r-t*i,y:e*i+t*r}}var Y=class extends F{constructor(...e){super(...e),this.particleSizeMin=1,this.particleSizeMax=1,this.particleSpeedMin=-30,this.particleSpeedMax=30,this.particleColorHueStart=130,this.particleColorHueEnd=300,this.particleColorSaturationStart=100,this.particleColorSaturationEnd=100,this.particleColorLightnessStart=50,this.particleColorLightnessEnd=0,this.particleLifespanMin=100,this.particleLifespanMax=5e4,this.particleAmount=2e3,this.gridSides=3,this.gridSize=60,this.gridAngle=Math.PI/2,this.particleColors=[],this.particles=[]}initialize(){this.particles=[],this.drawBackground(this.ctx),this.replenish()}loop(e){this.fadeTrail(),this.particles=this.particles.filter(e=>!e.isDead()),this.replenish(),this.particles.forEach(t=>{this.move(t,e),t.draw(this.ctx)})}createParticle(){return new ct({size:I(this.particleSizeMin,this.particleSizeMax),speed:I(this.particleSpeedMin,this.particleSpeedMax),lifespan:I(this.particleLifespanMin,this.particleLifespanMax),color:this.particleColor(),gridSides:this.gridSides,gridSize:this.gridSize,gridAngle:this.gridAngle,...this.placement()})}replenish(){for(;this.particles.length<this.particleAmount;)this.particles.push(this.createParticle())}particleColor(){return this.particleColors.length>0?this.particleColors[Math.floor(Math.random()*this.particleColors.length)]:Re([this.particleColorHueStart,this.particleColorHueEnd],[this.particleColorSaturationStart,this.particleColorSaturationEnd],[this.particleColorLightnessStart,this.particleColorLightnessEnd])}};P([M({type:Number,attribute:`particle-size-min`})],Y.prototype,`particleSizeMin`,void 0),P([M({type:Number,attribute:`particle-size-max`})],Y.prototype,`particleSizeMax`,void 0),P([M({type:Number,attribute:`particle-speed-min`})],Y.prototype,`particleSpeedMin`,void 0),P([M({type:Number,attribute:`particle-speed-max`})],Y.prototype,`particleSpeedMax`,void 0),P([M({type:Number,attribute:`particle-color-hue-start`})],Y.prototype,`particleColorHueStart`,void 0),P([M({type:Number,attribute:`particle-color-hue-end`})],Y.prototype,`particleColorHueEnd`,void 0),P([M({type:Number,attribute:`particle-color-saturation-start`})],Y.prototype,`particleColorSaturationStart`,void 0),P([M({type:Number,attribute:`particle-color-saturation-end`})],Y.prototype,`particleColorSaturationEnd`,void 0),P([M({type:Number,attribute:`particle-color-lightness-start`})],Y.prototype,`particleColorLightnessStart`,void 0),P([M({type:Number,attribute:`particle-color-lightness-end`})],Y.prototype,`particleColorLightnessEnd`,void 0),P([M({type:Number,attribute:`particle-lifespan-min`})],Y.prototype,`particleLifespanMin`,void 0),P([M({type:Number,attribute:`particle-lifespan-max`})],Y.prototype,`particleLifespanMax`,void 0),P([M({type:Number,attribute:`particle-amount`})],Y.prototype,`particleAmount`,void 0),P([M({type:Number,attribute:`grid-sides`})],Y.prototype,`gridSides`,void 0),P([M({type:Number,attribute:`grid-size`})],Y.prototype,`gridSize`,void 0),P([M({type:Number,attribute:`grid-angle`})],Y.prototype,`gridAngle`,void 0),P([M({type:Array,attribute:`particle-colors`,converter:N})],Y.prototype,`particleColors`,void 0);let X=class extends Y{constructor(...e){super(...e),this.trailOpacity=.0125}move(e,t){e.railMove(this.width/2,this.height/2,t)}placement(){let e=I(0,this.width),t=I(0,this.height);return{angle:Math.atan2(t-this.height/2,e-this.width/2),x:e,y:t}}};P([M({type:Number,attribute:`trail-opacity`})],X.prototype,`trailOpacity`,void 0),X=P([j(`bb-neon-rails`)],X);const ut=`#005588`,dt=.65,ft=[[1.1,.9,.7,1],[-.7,1.4,1.3,.55],[2.1,.5,.5,.3]],pt=ft.reduce((e,[,,,t])=>e+t,0);let Z=class extends F{constructor(...e){super(...e),this.silkColor=ut,this.swell=.2,this.sheen=.73,this.reach=dt,this.speed=1,this.trailOpacity=1,this.cleanTrail=!1,this.time=0}loop(e){let t=Math.min(e,.06666666666666667)*Math.max(0,this.speed);this.time+=t||0,this.drawSea()}drawSea(){if(!this.width||!this.height)return;let e=Math.max(0,this.swell)||0,t=Math.min(1,Math.max(0,this.sheen))||0,n=this.reach>0?this.reach:dt,{h:r,s:i,l:a}=Be(this.silkColor||ut),o=Math.min(.95,a+.55*t),s=Math.min(.5,Math.max(.01,.06/n)),c=s*s,l=this.ctx;this.fadeTrail();for(let t=0;t<64;t++){let s=c+(1-c)*(t/64);this.paintRow(l,this.curve(s,e,n),r,i,a,o,Math.min(1,s/.22))}l.globalAlpha=1}curve(e,t,n){let{width:r,height:i}=this,a=i*(.2+.8600000000000001*e),o=r*(.55+.45*e),s=t*i*e/n,c=t=>t*3*n/e,l=20*n/e,u={xs:[],ys:[],swells:[]};for(let e=0;e<=48;e++){let t=e/48*2-1,n=mt(c(t),l,this.time);u.xs.push(r/2+t*o),u.ys.push(a-s*n),u.swells.push(n)}return u}paintRow(e,t,n,r,i,a,o){let s=t.xs[0],c=t.xs[48],l=e.createLinearGradient(s,0,c,0);t.swells.forEach((e,o)=>{let u=(t.xs[o]-s)/(c-s),d=i+(a-i)*((e+1)/2);l.addColorStop(u,`hsl(${Math.round(n)}, ${Math.round(r*100)}%, ${(d*100).toFixed(1)}%)`)}),e.beginPath(),t.xs.forEach((n,r)=>{r===0?e.moveTo(n,t.ys[r]):e.lineTo(n,t.ys[r])}),e.lineTo(c,this.height+1),e.lineTo(s,this.height+1),e.closePath(),e.globalAlpha=o,e.fillStyle=l,e.fill()}};P([M({type:String,attribute:`silk-color`})],Z.prototype,`silkColor`,void 0),P([M({type:Number,attribute:`swell`})],Z.prototype,`swell`,void 0),P([M({type:Number,attribute:`sheen`})],Z.prototype,`sheen`,void 0),P([M({type:Number,attribute:`reach`})],Z.prototype,`reach`,void 0),P([M({type:Number,attribute:`speed`})],Z.prototype,`speed`,void 0),Z=P([j(`bb-silk-waves`)],Z);function mt(e,t,n){let r=0;for(let[i,a,o,s]of ft)r+=s*Math.sin(i*e+a*t+o*n);return r/pt}const ht=[`#b24c8b`,`#9f972d`,`#68c44f`,`#15caa8`,`#00abea`,`#156aff`,`#6810ff`,`#9f00d7`],gt=.001,_t=.35,vt=.01,yt=.2;let Q=class extends F{constructor(...e){super(...e),this.ringColors=ht,this.ringSize=.2,this.ringWobble=.03,this.speed=1,this.trailOpacity=.005,this.cleanTrail=!1,this.time=0,this.columns=0,this.rows=0,this.smoke=/* @__PURE__ */ new Float32Array,this.next=/* @__PURE__ */ new Float32Array,this.soft=/* @__PURE__ */ new Float32Array,this.image=new ImageData(1,1),this.buffer=document.createElement(`canvas`),this.builtFor=``}initialize(){let e=Math.min(1,Math.sqrt(15e4/(this.width*this.height)));this.columns=Math.max(1,Math.round(this.width*e)),this.rows=Math.max(1,Math.round(this.height*e)),this.smoke=new Float32Array(this.columns*this.rows*3),this.next=new Float32Array(this.smoke.length),this.soft=new Float32Array(this.smoke.length),this.image=new ImageData(this.columns,this.rows),this.buffer.width=this.columns,this.buffer.height=this.rows,this.builtFor=this.size()}loop(e){this.builtFor!==this.size()&&this.initialize();let t=Math.min(e,.06666666666666667)*Math.max(0,this.speed);this.time+=t,this.drift(60*t),this.shine(60*t),this.soften(),this.show()}size(){return`${this.width} ${this.height}`}drift(e){let{columns:t,rows:n,soft:r}=this,i=.996**e,a=Math.min(1,Math.max(0,this.trailOpacity)),o=(1-a)**e,s=.3*a*e,c=vt*t*e,l=vt*n*e,u=(t-1)/2,d=(n-1)/2,f=gt*t*e*Math.cos(_t*this.time),p=gt*n*e*Math.sin(_t*this.time);this.next.fill(0);for(let e=0;e<n;e++)for(let n=0;n<t;n++){let a=(e*t+n)*3;this.takeSmoke(u+(n-u)*i+f,d+(e-d)*i+p,.6,a),this.takeSmoke(n+(r[a+1]-yt)*c,e-(r[a]-yt)*l,.4,a);for(let e=a;e<a+3;e++)this.next[e]=Math.max(0,this.next[e]-s)*o}[this.smoke,this.next]=[this.next,this.smoke]}takeSmoke(e,t,n,r){let{columns:i,rows:a,smoke:o}=this;e=Math.min(Math.max(e,0),i-1),t=Math.min(Math.max(t,0),a-1);let s=Math.floor(e),c=Math.floor(t),l=Math.min(s+1,i-1),u=Math.min(c+1,a-1),d=e-s,f=t-c,p=(c*i+s)*3,ee=(c*i+l)*3,m=(u*i+s)*3,te=(u*i+l)*3;for(let e=0;e<3;e++){let t=o[p+e]+(o[ee+e]-o[p+e])*d,i=o[m+e]+(o[te+e]-o[m+e])*d;this.next[r+e]+=(t+(i-t)*f)*n}}shine(e){let t=this.ringColor(),n=this.ringSize*Math.min(this.columns,this.rows),r=(this.columns-1)/2,i=(this.rows-1)/2,a=this.ringWobble*Math.sin(1.5*this.time),o=.5*this.time,s=.6-Math.abs(a),c=1+Math.abs(a);for(let l=0;l<this.rows;l++)for(let u=0;u<this.columns;u++){let d=Math.hypot(u-r,l-i)/n;if(!(d>=s&&d<=c))continue;let f=Math.atan2(l-i,u-r),p=a*Math.sin(7*f+o),ee=bt(Math.abs(d+p))*e,m=(l*this.columns+u)*3;for(let e=0;e<3;e++){let n=this.smoke[m+e]+t[e]*ee;this.smoke[m+e]=Math.min(1,n)}}}ringColor(){let e=(this.ringColors.length>0?this.ringColors:ht).map(z),t=this.time/3%1*e.length,n=e[Math.floor(t)],r=e[(Math.floor(t)+1)%e.length],i=t-Math.floor(t);return n.map((e,t)=>(e+(r[t]-e)*i)/255)}soften(){let{columns:e,rows:t,smoke:n}=this;for(let r=0;r<t;r++){let i=Math.max(r-1,0)*e,a=Math.min(r+1,t-1)*e;for(let t=0;t<e;t++){let o=(r*e+t)*3,s=(r*e+Math.max(t-1,0))*3,c=(r*e+Math.min(t+1,e-1))*3,l=(i+t)*3,u=(a+t)*3;for(let e=0;e<3;e++)this.soft[o+e]=(n[o+e]+n[s+e]+n[c+e]+n[l+e]+n[u+e])/5}}}show(){let e=this.image.data;for(let t=0,n=0;t<this.soft.length;t+=3,n+=4)e[n]=this.soft[t]*255,e[n+1]=this.soft[t+1]*255,e[n+2]=this.soft[t+2]*255,e[n+3]=255;this.buffer.getContext(`2d`).putImageData(this.image,0,0);let t=this.ctx;this.drawBackground(t),t.globalCompositeOperation=`lighter`,t.drawImage(this.buffer,0,0,this.width,this.height),t.globalCompositeOperation=`source-over`}};P([M({type:Array,attribute:`ring-colors`,converter:N})],Q.prototype,`ringColors`,void 0),P([M({type:Number,attribute:`ring-size`})],Q.prototype,`ringSize`,void 0),P([M({type:Number,attribute:`ring-wobble`})],Q.prototype,`ringWobble`,void 0),P([M({type:Number,attribute:`speed`})],Q.prototype,`speed`,void 0),Q=P([j(`bb-smoke-ring`)],Q);function bt(e){let t=Math.min(1,Math.max(0,(1-e)/.1));return e**20*t*t*(3-2*t)}let $=class extends Y{constructor(...e){super(...e),this.particleForce=0,this.particleRadiusMin=1,this.particleRadiusMax=100,this.particleSizeMin=.5,this.particleSizeMax=1.5,this.particleSpeedMin=.025,this.particleSpeedMax=.05,this.particleColorHueStart=30,this.particleColorHueEnd=75,this.particleColorLightnessEnd=50,this.particleLifespanMin=1e3,this.particleLifespanMax=1e4,this.particleAmount=1e3,this.gridSides=6,this.gridSize=40,this.gridAngle=0}initialize(){this.particleRadiusMax=this.particleRadiusMax||this.width,super.initialize()}move(e,t){e.circularMove(this.width/2,this.height/2,t)}placement(){let e=I(0,Math.PI*2),t=this.particleRadiusMax-this.particleRadiusMin;return{angle:e,radius:Math.sqrt(Math.random())*t+this.particleRadiusMin,force:this.particleForce}}};P([M({type:Number,attribute:`particle-force`})],$.prototype,`particleForce`,void 0),P([M({type:Number,attribute:`particle-radius-min`})],$.prototype,`particleRadiusMin`,void 0),P([M({type:Number,attribute:`particle-radius-max`})],$.prototype,`particleRadiusMax`,void 0),$=P([j(`bb-star-trail`)],$);export{V as BbAmbientRibbon,U as BbContourFlow,W as BbDigitalRain,G as BbGradientSlats,K as BbHexagonWave,q as BbLightShafts,J as BbLiquidLines,X as BbNeonRails,Z as BbSilkWaves,Q as BbSmokeRing,$ as BbStarTrail,F as BeautifulBackground};
|
|
49
49
|
//# sourceMappingURL=bb.es.js.map
|