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/build/bb.js CHANGED
@@ -17,34 +17,34 @@ switch(t){case Boolean:e=e?ne:null;break;case Object:case Array:e=e==null?e:JSON
17
17
  * SPDX-License-Identifier: BSD-3-Clause
18
18
  */
19
19
  let oe=globalThis,se=e=>e,y=oe.trustedTypes,ce=y?y.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,le=`$lit$`,b=`lit$${Math.random().toFixed(9).slice(2)}$`,ue=`?`+b,de=`<${ue}>`,x=document,S=()=>x.createComment(``),C=e=>e===null||typeof e!=`object`&&typeof e!=`function`,fe=Array.isArray,pe=e=>fe(e)||typeof e?.[Symbol.iterator]==`function`,me=`[
20
- \f\r]`,w=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,he=/-->/g,ge=/>/g,T=RegExp(`>|${me}(?:([^\\s"'>=/]+)(${me}*=${me}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),_e=/'/g,ve=/"/g,ye=/^(?:script|style|textarea|title)$/i,E=Symbol.for(`lit-noChange`),D=Symbol.for(`lit-nothing`),be=/* @__PURE__ */ new WeakMap,O=x.createTreeWalker(x,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)}let Se=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=w;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===w?c[1]===`!--`?o=he:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=T):(ye.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=T):o=ge:o===T?c[0]===`>`?(o=i??w,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?T:c[3]===`"`?ve:_e):o===ve||o===_e?o=T:o===he||o===ge?o=w:(o=T,i=void 0);let d=o===T&&e[t+1].startsWith(`/>`)?` `:``;a+=o===w?n+de:l>=0?(r.push(s),n.slice(0,l)+le+n.slice(l)+b+d):n+b+(l===-2?t:d)}return[xe(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]};var k=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),O.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=O.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(b),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?Te:r[1]===`?`?Ee:r[1]===`@`?De:j}),i.removeAttribute(e)}else e.startsWith(b)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(ye.test(i.tagName)){let e=i.textContent.split(b),t=e.length-1;if(t>0){i.textContent=y?y.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],S()),O.nextNode(),c.push({type:2,index:++a});i.append(e[t],S())}}}else if(i.nodeType===8){if(i.data===ue)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(b,e+1))!==-1;)c.push({type:7,index:a}),e+=b.length-1}}a++}}static createElement(e,t){let n=x.createElement(`template`);return n.innerHTML=e,n}};function A(e,t,n=e,r){if(t===E)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=C(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=A(e,i._$AS(e,t.values),i,r)),t}var Ce=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??x).importNode(t,!0);O.currentNode=r;let i=O.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new we(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new Oe(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=O.nextNode(),a++)}return O.currentNode=x,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++}},we=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=D,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=A(this,e,t),C(e)?e===D||e==null||e===``?(this._$AH!==D&&this._$AR(),this._$AH=D):e!==this._$AH&&e!==E&&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!==D&&C(this._$AH)?this._$AA.nextSibling.data=e:this.T(x.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=k.createElement(xe(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new Ce(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 k(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(S()),this.O(S()),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))}},j=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=D,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=D}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=A(this,e,t,0),a=!C(e)||e!==this._$AH&&e!==E,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=A(this,r[n+o],t,o),s===E&&(s=this._$AH[o]),a||=!C(s)||s!==this._$AH[o],s===D?e=D:e!==D&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},Te=class extends j{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===D?void 0:e}},Ee=class extends j{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==D)}},De=class extends j{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=A(this,e,t,0)??D)===E)return;let n=this._$AH,r=e===D&&n!==D||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==D&&(n===D||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)}},Oe=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){A(this,e)}};let ke=oe.litHtmlPolyfillSupport;ke?.(k,we),(oe.litHtmlVersions??=[]).push(`3.3.3`);let Ae=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new we(t.insertBefore(S(),e),e,void 0,n??{})}return i._$AI(e),i},je=globalThis
20
+ \f\r]`,w=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,he=/-->/g,ge=/>/g,T=RegExp(`>|${me}(?:([^\\s"'>=/]+)(${me}*=${me}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),_e=/'/g,ve=/"/g,ye=/^(?:script|style|textarea|title)$/i,E=Symbol.for(`lit-noChange`),D=Symbol.for(`lit-nothing`),be=/* @__PURE__ */ new WeakMap,O=x.createTreeWalker(x,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)}let Se=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=w;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===w?c[1]===`!--`?o=he:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=T):(ye.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=T):o=ge:o===T?c[0]===`>`?(o=i??w,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?T:c[3]===`"`?ve:_e):o===ve||o===_e?o=T:o===he||o===ge?o=w:(o=T,i=void 0);let d=o===T&&e[t+1].startsWith(`/>`)?` `:``;a+=o===w?n+de:l>=0?(r.push(s),n.slice(0,l)+le+n.slice(l)+b+d):n+b+(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),O.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=O.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(b),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?Ee:r[1]===`?`?De:r[1]===`@`?Oe:A}),i.removeAttribute(e)}else e.startsWith(b)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(ye.test(i.tagName)){let e=i.textContent.split(b),t=e.length-1;if(t>0){i.textContent=y?y.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],S()),O.nextNode(),c.push({type:2,index:++a});i.append(e[t],S())}}}else if(i.nodeType===8){if(i.data===ue)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(b,e+1))!==-1;)c.push({type:7,index:a}),e+=b.length-1}}a++}}static createElement(e,t){let n=x.createElement(`template`);return n.innerHTML=e,n}};function k(e,t,n=e,r){if(t===E)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=C(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=k(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??x).importNode(t,!0);O.currentNode=r;let i=O.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=O.nextNode(),a++)}return O.currentNode=x,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=D,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=k(this,e,t),C(e)?e===D||e==null||e===``?(this._$AH!==D&&this._$AR(),this._$AH=D):e!==this._$AH&&e!==E&&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!==D&&C(this._$AH)?this._$AA.nextSibling.data=e:this.T(x.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(S()),this.O(S()),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))}},A=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=D,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=D}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=k(this,e,t,0),a=!C(e)||e!==this._$AH&&e!==E,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=k(this,r[n+o],t,o),s===E&&(s=this._$AH[o]),a||=!C(s)||s!==this._$AH[o],s===D?e=D:e!==D&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},Ee=class extends A{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===D?void 0:e}},De=class extends A{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==D)}},Oe=class extends A{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=k(this,e,t,0)??D)===E)return;let n=this._$AH,r=e===D&&n!==D||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==D&&(n===D||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){k(this,e)}};let Ae=oe.litHtmlPolyfillSupport;Ae?.(Ce,Te),(oe.litHtmlVersions??=[]).push(`3.3.3`);let 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(S(),e),e,void 0,n??{})}return i._$AI(e),i},Me=globalThis
21
21
  /**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
25
  */
26
- ;var M=class extends v{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=Ae(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return E}};M._$litElement$=!0,M.finalized=!0,je.litElementHydrateSupport?.({LitElement:M});let Me=je.litElementPolyfillSupport;Me?.({LitElement:M}),(je.litElementVersions??=[]).push(`4.2.2`);
26
+ ;var j=class extends v{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 E}};j._$litElement$=!0,j.finalized=!0,Me.litElementHydrateSupport?.({LitElement:j});let Ne=Me.litElementPolyfillSupport;Ne?.({LitElement:j}),(Me.litElementVersions??=[]).push(`4.2.2`);
27
27
  /**
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
31
  */
32
- let N=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})},Ne={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:ie},Pe=(e=Ne,t,n)=>{
32
+ let M=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})},Pe={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:ie},Fe=(e=Pe,t,n)=>{
33
33
  /**
34
34
  * @license
35
35
  * Copyright 2017 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
37
37
  */
38
- 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 P(e){return(t,n)=>typeof n==`object`?Pe(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
+ 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 N(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)}
39
39
  /**
40
40
  * @license
41
41
  * Copyright 2017 Google LLC
42
42
  * SPDX-License-Identifier: BSD-3-Clause
43
43
  */
44
- function Fe(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}let F={fromAttribute:e=>e?e.split(`,`).map(e=>e.trim()).filter(Boolean):[],toAttribute:e=>e.join(`,`)};function I(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 L=class extends M{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=Fe(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=Ie(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=s`
44
+ function Ie(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}let P={fromAttribute:e=>e?e.split(`,`).map(e=>e.trim()).filter(Boolean):[],toAttribute:e=>e.join(`,`)};function F(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 I=class extends j{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=s`
45
45
  :host {
46
46
  border-radius: inherit;
47
47
  display: flex;
48
48
  }
49
- `}render(){}};I([P({type:Array,attribute:`bg-colors`,converter:F})],L.prototype,`bgColors`,void 0),I([P({type:Number,attribute:`bg-angle`})],L.prototype,`bgAngle`,void 0),I([P({type:String,attribute:`background-color`})],L.prototype,`backgroundColor`,void 0),I([P({type:Number,attribute:`trail-opacity`})],L.prototype,`trailOpacity`,void 0),I([P({attribute:`clean-trail`,converter:e=>e!==`false`})],L.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 R(e,t){return Math.random()*(t-e)+e}function z(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1)+e)}let B=null;function Le(e=[0,360],t=[0,100],n=[40,60]){return`hsl(${z(e[0],e[1])}, ${z(t[0],t[1])}%, ${z(n[0],n[1])}%)`}function Re(e,t,n,r){return`hsla(${e}, ${t}%, ${n}%, ${r})`}function ze(e){let[t,n,r]=V(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(V);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 V(e){B??=document.createElement(`canvas`).getContext(`2d`),B.fillStyle=`#000`,B.fillStyle=e;let t=String(B.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=[R(0,Math.PI*2),R(0,Math.PI*2),R(0,Math.PI*2),R(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 H=class extends L{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)}};I([P({type:Number,attribute:`ribbon-count`})],H.prototype,`ribbonCount`,void 0),I([P({type:Number,attribute:`ribbon-width`})],H.prototype,`ribbonWidth`,void 0),I([P({type:Number,attribute:`ribbon-rotation`})],H.prototype,`ribbonRotation`,void 0),I([P({type:Number,attribute:`ribbon-hue-start`})],H.prototype,`ribbonHueStart`,void 0),I([P({type:Number,attribute:`ribbon-hue-end`})],H.prototype,`ribbonHueEnd`,void 0),I([P({type:Number,attribute:`ribbon-saturation-start`})],H.prototype,`ribbonSaturationStart`,void 0),I([P({type:Number,attribute:`ribbon-saturation-end`})],H.prototype,`ribbonSaturationEnd`,void 0),I([P({type:Number,attribute:`ribbon-lightness-start`})],H.prototype,`ribbonLightnessStart`,void 0),I([P({type:Number,attribute:`ribbon-lightness-end`})],H.prototype,`ribbonLightnessEnd`,void 0),I([P({type:Number,attribute:`ribbon-amplitude`})],H.prototype,`ribbonAmplitude`,void 0),I([P({type:Number,attribute:`ribbon-speed-min`})],H.prototype,`ribbonSpeedMin`,void 0),I([P({type:Number,attribute:`ribbon-speed-max`})],H.prototype,`ribbonSpeedMax`,void 0),I([P({type:Number,attribute:`ribbon-line-width`})],H.prototype,`ribbonLineWidth`,void 0),I([P({type:Number,attribute:`ribbon-line-opacity`})],H.prototype,`ribbonLineOpacity`,void 0),H=I([N(`bb-ambient-ribbon`)],H);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}let Ke=[`#89964e`],qe=.1,Je=3/2.2**2,U=Array.from({length:64},(e,t)=>{let n=t/64*Math.PI*2;return[Math.cos(n)*qe,Math.sin(n)*qe]}),W=class extends L{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()}};I([P({type:Number,attribute:`particle-amount`})],W.prototype,`particleAmount`,void 0),I([P({type:Number,attribute:`particle-life`})],W.prototype,`particleLife`,void 0),I([P({type:Number,attribute:`pulse-strength`})],W.prototype,`pulseStrength`,void 0),I([P({type:Number,attribute:`pulse-speed`})],W.prototype,`pulseSpeed`,void 0),I([P({type:Number,attribute:`line-opacity`})],W.prototype,`lineOpacity`,void 0),I([P({type:Number,attribute:`flow-speed`})],W.prototype,`flowSpeed`,void 0),I([P({type:Number,attribute:`terrain-size`})],W.prototype,`terrainSize`,void 0),I([P({type:Array,attribute:`line-colors`,converter:F})],W.prototype,`lineColors`,void 0),W=I([N(`bb-contour-flow`)],W);function Ye(e,t,n){let r=U.map(([r,i])=>e(t+r,n+i)),i=r.indexOf(Math.max(...r)),a=r.indexOf(Math.min(...r)),o=U[a][0]-U[i][0],s=U[a][1]-U[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 G=class extends L{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,z(0,-this.height/this.fontSize))}};I([P({type:Number,attribute:`speed`})],G.prototype,`speed`,void 0),I([P({type:String,attribute:`characters`})],G.prototype,`characters`,void 0),I([P({type:Number,attribute:`randomness`})],G.prototype,`randomness`,void 0),I([P({type:Number,attribute:`font-size`})],G.prototype,`fontSize`,void 0),I([P({type:Number,attribute:`font-color-hue-start`})],G.prototype,`fontColorHueStart`,void 0),I([P({type:Number,attribute:`font-color-hue-end`})],G.prototype,`fontColorHueEnd`,void 0),I([P({type:Number,attribute:`font-color-saturation-start`})],G.prototype,`fontColorSaturationStart`,void 0),I([P({type:Number,attribute:`font-color-saturation-end`})],G.prototype,`fontColorSaturationEnd`,void 0),I([P({type:Number,attribute:`font-color-lightness-start`})],G.prototype,`fontColorLightnessStart`,void 0),I([P({type:Number,attribute:`font-color-lightness-end`})],G.prototype,`fontColorLightnessEnd`,void 0),I([P({type:Array,attribute:`font-colors`,converter:F})],G.prototype,`fontColors`,void 0),G=I([N(`bb-digital-rain`)],G);let K=class extends L{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()}};I([P({type:Number,attribute:`hex-size`})],K.prototype,`hexSize`,void 0),I([P({type:Number,attribute:`wave-amplitude`})],K.prototype,`waveAmplitude`,void 0),I([P({type:Number,attribute:`wave-speed`})],K.prototype,`waveSpeed`,void 0),I([P({type:Number,attribute:`wave-x-factor`})],K.prototype,`waveXFactor`,void 0),I([P({type:Number,attribute:`wave-y-factor`})],K.prototype,`waveYFactor`,void 0),I([P({type:Number,attribute:`shade-amplitude`})],K.prototype,`shadeAmplitude`,void 0),I([P({type:Number,attribute:`shade-lightness-boost`})],K.prototype,`shadeLightnessBoost`,void 0),I([P({type:Number,attribute:`base-lightness`})],K.prototype,`baseLightness`,void 0),I([P({type:Number,attribute:`lightness-range`})],K.prototype,`lightnessRange`,void 0),I([P({type:Number,attribute:`hex-hue-start`})],K.prototype,`hexHueStart`,void 0),I([P({type:Number,attribute:`hex-hue-end`})],K.prototype,`hexHueEnd`,void 0),I([P({type:Number,attribute:`hex-saturation`})],K.prototype,`hexSaturation`,void 0),I([P({type:Number,attribute:`hex-scale`})],K.prototype,`hexScale`,void 0),I([P({type:Array,attribute:`hex-colors`,converter:F})],K.prototype,`hexColors`,void 0),K=I([N(`bb-hexagon-wave`)],K);let 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],q=class extends L{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=it(et,t),r=document.createElement(`canvas`);r.width=Math.ceil(n+40),r.height=64;let i=r.getContext(`2d`),[a,o,s]=V(e),c=i.createLinearGradient(0,0,0,64);for(let[e,n]of $e){let r=n*it(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:R(-r.width,this.width),y:R(0,.5*this.height),height:this.height*R(...rt),speed:it(nt,t),sprite:r}}};I([P({type:Array,attribute:`shaft-colors`,converter:F})],q.prototype,`shaftColors`,void 0),I([P({type:Number,attribute:`shaft-amount`})],q.prototype,`shaftAmount`,void 0),I([P({type:Number,attribute:`speed`})],q.prototype,`speed`,void 0),q=I([N(`bb-light-shafts`)],q);function it([e,t],n){return e+(t-e)*n}let J=class extends L{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}%)`}};I([P({type:Number,attribute:`line-count`})],J.prototype,`lineCount`,void 0),I([P({type:Number,attribute:`line-amplitude`})],J.prototype,`lineAmplitude`,void 0),I([P({type:Number,attribute:`line-frequency`})],J.prototype,`lineFrequency`,void 0),I([P({type:Number,attribute:`speed`})],J.prototype,`speed`,void 0),I([P({type:Number,attribute:`line-spacing`})],J.prototype,`lineSpacing`,void 0),I([P({type:Number,attribute:`line-width`})],J.prototype,`lineWidth`,void 0),I([P({type:Number,attribute:`line-hue-start`})],J.prototype,`lineHueStart`,void 0),I([P({type:Number,attribute:`line-hue-end`})],J.prototype,`lineHueEnd`,void 0),I([P({type:Number,attribute:`line-saturation`})],J.prototype,`lineSaturation`,void 0),I([P({type:Number,attribute:`line-offset-step`})],J.prototype,`lineOffsetStep`,void 0),I([P({type:Number,attribute:`wiggle-amplitude`})],J.prototype,`wiggleAmplitude`,void 0),I([P({type:Number,attribute:`wiggle-speed`})],J.prototype,`wiggleSpeed`,void 0),I([P({type:Array,attribute:`line-colors`,converter:F})],J.prototype,`lineColors`,void 0),J=I([N(`bb-liquid-lines`)],J);var at=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=ot(e-n,t-r,-this.gridAngle),a=this.nearestNode(i.x,i.y),o=ot(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 ot(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 L{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 at({size:R(this.particleSizeMin,this.particleSizeMax),speed:R(this.particleSpeedMin,this.particleSpeedMax),lifespan:R(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])}};I([P({type:Number,attribute:`particle-size-min`})],Y.prototype,`particleSizeMin`,void 0),I([P({type:Number,attribute:`particle-size-max`})],Y.prototype,`particleSizeMax`,void 0),I([P({type:Number,attribute:`particle-speed-min`})],Y.prototype,`particleSpeedMin`,void 0),I([P({type:Number,attribute:`particle-speed-max`})],Y.prototype,`particleSpeedMax`,void 0),I([P({type:Number,attribute:`particle-color-hue-start`})],Y.prototype,`particleColorHueStart`,void 0),I([P({type:Number,attribute:`particle-color-hue-end`})],Y.prototype,`particleColorHueEnd`,void 0),I([P({type:Number,attribute:`particle-color-saturation-start`})],Y.prototype,`particleColorSaturationStart`,void 0),I([P({type:Number,attribute:`particle-color-saturation-end`})],Y.prototype,`particleColorSaturationEnd`,void 0),I([P({type:Number,attribute:`particle-color-lightness-start`})],Y.prototype,`particleColorLightnessStart`,void 0),I([P({type:Number,attribute:`particle-color-lightness-end`})],Y.prototype,`particleColorLightnessEnd`,void 0),I([P({type:Number,attribute:`particle-lifespan-min`})],Y.prototype,`particleLifespanMin`,void 0),I([P({type:Number,attribute:`particle-lifespan-max`})],Y.prototype,`particleLifespanMax`,void 0),I([P({type:Number,attribute:`particle-amount`})],Y.prototype,`particleAmount`,void 0),I([P({type:Number,attribute:`grid-sides`})],Y.prototype,`gridSides`,void 0),I([P({type:Number,attribute:`grid-size`})],Y.prototype,`gridSize`,void 0),I([P({type:Number,attribute:`grid-angle`})],Y.prototype,`gridAngle`,void 0),I([P({type:Array,attribute:`particle-colors`,converter:F})],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=R(0,this.width),t=R(0,this.height);return{angle:Math.atan2(t-this.height/2,e-this.width/2),x:e,y:t}}};I([P({type:Number,attribute:`trail-opacity`})],X.prototype,`trailOpacity`,void 0),X=I([N(`bb-neon-rails`)],X);let st=`#005588`,ct=.65,lt=[[1.1,.9,.7,1],[-.7,1.4,1.3,.55],[2.1,.5,.5,.3]],ut=lt.reduce((e,[,,,t])=>e+t,0),Z=class extends L{constructor(...e){super(...e),this.silkColor=st,this.swell=.2,this.sheen=.73,this.reach=ct,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:ct,{h:r,s:i,l:a}=ze(this.silkColor||st),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=dt(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()}};I([P({type:String,attribute:`silk-color`})],Z.prototype,`silkColor`,void 0),I([P({type:Number,attribute:`swell`})],Z.prototype,`swell`,void 0),I([P({type:Number,attribute:`sheen`})],Z.prototype,`sheen`,void 0),I([P({type:Number,attribute:`reach`})],Z.prototype,`reach`,void 0),I([P({type:Number,attribute:`speed`})],Z.prototype,`speed`,void 0),Z=I([N(`bb-silk-waves`)],Z);function dt(e,t,n){let r=0;for(let[i,a,o,s]of lt)r+=s*Math.sin(i*e+a*t+o*n);return r/ut}let ft=[`#b24c8b`,`#9f972d`,`#68c44f`,`#15caa8`,`#00abea`,`#156aff`,`#6810ff`,`#9f00d7`],pt=.001,mt=.35,ht=.01,gt=.2,Q=class extends L{constructor(...e){super(...e),this.ringColors=ft,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=ht*t*e,l=ht*n*e,u=(t-1)/2,d=(n-1)/2,f=pt*t*e*Math.cos(mt*this.time),p=pt*n*e*Math.sin(mt*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]-gt)*c,e-(r[a]-gt)*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,h=(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[h+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=_t(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:ft).map(V),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`}};I([P({type:Array,attribute:`ring-colors`,converter:F})],Q.prototype,`ringColors`,void 0),I([P({type:Number,attribute:`ring-size`})],Q.prototype,`ringSize`,void 0),I([P({type:Number,attribute:`ring-wobble`})],Q.prototype,`ringWobble`,void 0),I([P({type:Number,attribute:`speed`})],Q.prototype,`speed`,void 0),Q=I([N(`bb-smoke-ring`)],Q);function _t(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=R(0,Math.PI*2),t=this.particleRadiusMax-this.particleRadiusMin;return{angle:e,radius:Math.sqrt(Math.random())*t+this.particleRadiusMin,force:this.particleForce}}};I([P({type:Number,attribute:`particle-force`})],$.prototype,`particleForce`,void 0),I([P({type:Number,attribute:`particle-radius-min`})],$.prototype,`particleRadiusMin`,void 0),I([P({type:Number,attribute:`particle-radius-max`})],$.prototype,`particleRadiusMax`,void 0),$=I([N(`bb-star-trail`)],$),Object.defineProperty(e,"BbAmbientRibbon",{enumerable:!0,get:function(){return H}}),Object.defineProperty(e,"BbContourFlow",{enumerable:!0,get:function(){return W}}),Object.defineProperty(e,"BbDigitalRain",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"BbHexagonWave",{enumerable:!0,get:function(){return K}}),Object.defineProperty(e,"BbLightShafts",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"BbLiquidLines",{enumerable:!0,get:function(){return J}}),Object.defineProperty(e,"BbNeonRails",{enumerable:!0,get:function(){return X}}),Object.defineProperty(e,"BbSilkWaves",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(e,"BbSmokeRing",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(e,"BbStarTrail",{enumerable:!0,get:function(){return $}}),e.BeautifulBackground=L});
49
+ `}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 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 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 Re(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 ze(e,t,n,r){return`hsla(${e}, ${t}%, ${n}%, ${r})`}function Be(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 Ve(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 He(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 Ue=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 Ue(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)),He(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)}};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 We(){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=Ge(e-r),o=Ge(n-i);return Ke(Ke(t(r,i),t(r+1,i),a),Ke(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 Ge(e){return(1-Math.cos(e*Math.PI))/2}function Ke(e,t,n){return e+(t-e)*n}let qe=[`#89964e`],Je=.1,Ye=3/2.2**2,H=Array.from({length:64},(e,t)=>{let n=t/64*Math.PI*2;return[Math.cos(n)*Je,Math.sin(n)*Je]}),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=qe,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=We(),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:qe}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(Xe(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]*Ye*t,a=e.dy+this.flow[r+1]*Ye*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=Ze(e.x,this.cols*10),e.y=Ze(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 Xe(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 Ze(e,t){return(e%t+t)%t}var Qe=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)]:Re([this.fontColorHueStart,this.fontColorHueEnd],[this.fontColorSaturationStart,this.fontColorSaturationEnd],[this.fontColorLightnessStart,this.fontColorLightnessEnd])}createSymbol(e){return new Qe(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 $e=[`#c41e3a`,`#e0218a`,`#6a2c9e`,`#3b4fa8`,`#f5c800`],et=[[0,`0, 0, 0`,.5],[.35,`0, 0, 0`,0],[.7,`255, 255, 255`,0],[1,`255, 255, 255`,.85]],tt=.45,G=class extends I{constructor(...e){super(...e),this.washColors=$e,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:$e,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+tt*Math.sin(this.time*o+a*2.4)),c=n*(.5+tt*Math.cos(this.time*o*1.3+a*1.7)),l=B(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 et)r.addColorStop(e,`rgba(${t}, ${n})`);e.fillStyle=r,e.fillRect(n,-s/2,u,s)}e.restore()}};F([N({type:Array,attribute:`wash-colors`,converter:P})],G.prototype,`washColors`,void 0),F([N({type:Number,attribute:`slat-amount`})],G.prototype,`slatAmount`,void 0),F([N({type:Number,attribute:`slat-angle`})],G.prototype,`slatAngle`,void 0),F([N({type:Number,attribute:`speed`})],G.prototype,`speed`,void 0),G=F([M(`bb-gradient-slats`)],G);let K=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}=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()}};F([N({type:Number,attribute:`hex-size`})],K.prototype,`hexSize`,void 0),F([N({type:Number,attribute:`wave-amplitude`})],K.prototype,`waveAmplitude`,void 0),F([N({type:Number,attribute:`wave-speed`})],K.prototype,`waveSpeed`,void 0),F([N({type:Number,attribute:`wave-x-factor`})],K.prototype,`waveXFactor`,void 0),F([N({type:Number,attribute:`wave-y-factor`})],K.prototype,`waveYFactor`,void 0),F([N({type:Number,attribute:`shade-amplitude`})],K.prototype,`shadeAmplitude`,void 0),F([N({type:Number,attribute:`shade-lightness-boost`})],K.prototype,`shadeLightnessBoost`,void 0),F([N({type:Number,attribute:`base-lightness`})],K.prototype,`baseLightness`,void 0),F([N({type:Number,attribute:`lightness-range`})],K.prototype,`lightnessRange`,void 0),F([N({type:Number,attribute:`hex-hue-start`})],K.prototype,`hexHueStart`,void 0),F([N({type:Number,attribute:`hex-hue-end`})],K.prototype,`hexHueEnd`,void 0),F([N({type:Number,attribute:`hex-saturation`})],K.prototype,`hexSaturation`,void 0),F([N({type:Number,attribute:`hex-scale`})],K.prototype,`hexScale`,void 0),F([N({type:Array,attribute:`hex-colors`,converter:P})],K.prototype,`hexColors`,void 0),K=F([M(`bb-hexagon-wave`)],K);let nt=[`#47d1d1`,`#475ed1`,`#a347d1`],rt=[[0,0],[.2,.5],[.5,.8],[.8,.5],[1,0]],it=[15,2],at=[1,.3],ot=[21,4],st=[.5,.9],q=class extends I{constructor(...e){super(...e),this.shaftColors=nt,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:nt,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=ct(it,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 rt){let r=n*ct(at,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(...st),speed:ct(ot,t),sprite:r}}};F([N({type:Array,attribute:`shaft-colors`,converter:P})],q.prototype,`shaftColors`,void 0),F([N({type:Number,attribute:`shaft-amount`})],q.prototype,`shaftAmount`,void 0),F([N({type:Number,attribute:`speed`})],q.prototype,`speed`,void 0),q=F([M(`bb-light-shafts`)],q);function ct([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)}He(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}%)`}};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 lt=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),He(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=ut(e-n,t-r,-this.gridAngle),a=this.nearestNode(i.x,i.y),o=ut(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 ut(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 lt({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)]:Re([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);let dt=`#005588`,ft=.65,pt=[[1.1,.9,.7,1],[-.7,1.4,1.3,.55],[2.1,.5,.5,.3]],mt=pt.reduce((e,[,,,t])=>e+t,0),Z=class extends I{constructor(...e){super(...e),this.silkColor=dt,this.swell=.2,this.sheen=.73,this.reach=ft,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:ft,{h:r,s:i,l:a}=Be(this.silkColor||dt),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=ht(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 ht(e,t,n){let r=0;for(let[i,a,o,s]of pt)r+=s*Math.sin(i*e+a*t+o*n);return r/mt}let gt=[`#b24c8b`,`#9f972d`,`#68c44f`,`#15caa8`,`#00abea`,`#156aff`,`#6810ff`,`#9f00d7`],_t=.001,vt=.35,yt=.01,bt=.2,Q=class extends I{constructor(...e){super(...e),this.ringColors=gt,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=yt*t*e,l=yt*n*e,u=(t-1)/2,d=(n-1)/2,f=_t*t*e*Math.cos(vt*this.time),p=_t*n*e*Math.sin(vt*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]-bt)*c,e-(r[a]-bt)*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,h=(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[h+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=xt(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:gt).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 xt(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`)],$),Object.defineProperty(e,"BbAmbientRibbon",{enumerable:!0,get:function(){return V}}),Object.defineProperty(e,"BbContourFlow",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"BbDigitalRain",{enumerable:!0,get:function(){return W}}),Object.defineProperty(e,"BbGradientSlats",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"BbHexagonWave",{enumerable:!0,get:function(){return K}}),Object.defineProperty(e,"BbLightShafts",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"BbLiquidLines",{enumerable:!0,get:function(){return J}}),Object.defineProperty(e,"BbNeonRails",{enumerable:!0,get:function(){return X}}),Object.defineProperty(e,"BbSilkWaves",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(e,"BbSmokeRing",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(e,"BbStarTrail",{enumerable:!0,get:function(){return $}}),e.BeautifulBackground=I});
50
50
  //# sourceMappingURL=bb.js.map