@fleox/agent3d 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -10
- package/changelog.json +9 -0
- package/dist/agent/agent3d.mjs +2 -2
- package/dist/agent/chunks/{package-Dkr2v4or.mjs → package-fw4h5vsh.mjs} +1 -1
- package/dist/runtime/agent3d-runtime.js +1 -1
- package/dist/runtime/agent3d-runtime.single.js +1 -1
- package/dist/studio/assets/{camera-braC-Y4j.js → camera-Be6lnp3k.js} +1 -1
- package/dist/studio/assets/{editor-DwKj0yf_.js → editor-Mpnz-b2E.js} +1 -1
- package/dist/studio/assets/{game-Bd0sO8CA.js → game-WMgRSJUD.js} +3 -3
- package/dist/studio/assets/{generators-CFiebqmG.js → generators-DozXE7ta.js} +1 -1
- package/dist/studio/assets/{index-C87jPees.js → index-tSGZFEt5.js} +4 -4
- package/dist/studio/assets/{model-Bg7e4Z-9.js → model-C2bZTK7-.js} +1 -1
- package/dist/studio/assets/{physicsHost-CwJdYJ2g.js → physicsHost-CTRsIvfu.js} +1 -1
- package/dist/studio/assets/{postfx-CGkvYb03.js → postfx-DQtp0JIy.js} +1 -1
- package/dist/studio/assets/{runtime-DNb5FyOS.js → runtime-NGp1VdnH.js} +4 -4
- package/dist/studio/assets/{shaders-Brwuj1zc.js → shaders-BOb6Uter.js} +1 -1
- package/dist/studio/assets/{svg-Db96jdHi.js → svg-CnUMpv_N.js} +1 -1
- package/dist/studio/assets/{text-DqnNIq0M.js → text-CGIZs8HE.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/skills/agent3d-assets/SKILL.md +24 -24
- package/plugin/skills/agent3d-create/SKILL.md +20 -20
- package/plugin/skills/agent3d-create/references/art-direction.md +3 -3
- package/plugin/skills/agent3d-create/references/recipes.md +6 -6
- package/plugin/skills/agent3d-edit/SKILL.md +22 -22
- package/plugin/skills/agent3d-edit/references/patch-ops.md +2 -2
- package/plugin/skills/agent3d-game/SKILL.md +7 -7
- package/plugin/skills/agent3d-publish/SKILL.md +21 -21
- package/plugin/skills/agent3d-publish/references/integrations.md +1 -1
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
<a href="https://www.npmjs.com/package/@fleox/agent3d"><img src="https://img.shields.io/node/v/@fleox/agent3d?color=339933" alt="Node.js version"></a>
|
|
17
17
|
<a href="#claude-code"><img src="https://img.shields.io/badge/Claude%20Code-plugin-d97757" alt="Claude Code plugin"></a>
|
|
18
18
|
<a href="#mcp-server"><img src="https://img.shields.io/badge/MCP-server-0ea5e9" alt="MCP server"></a>
|
|
19
|
+
<a href="https://m8ven.ai/mcp/fleox/agent3d?s=readme"><img src="https://m8ven.ai/badge/mcp/fleox/agent3d" alt="M8ven Score"></a>
|
|
19
20
|
<a href="https://github.com/fleox/agent3d/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-PolyForm%20Noncommercial-6b7280" alt="License"></a>
|
|
20
21
|
</p>
|
|
21
22
|
|
|
@@ -108,19 +109,19 @@ Once the scene exists, changing it is a conversation:
|
|
|
108
109
|
### Without an agent
|
|
109
110
|
|
|
110
111
|
```bash
|
|
111
|
-
npx -y @fleox/agent3d@0.2.
|
|
112
|
-
npx -y @fleox/agent3d@0.2.
|
|
112
|
+
npx -y @fleox/agent3d@0.2.3 new bakery --target banner --title "Golden Crust"
|
|
113
|
+
npx -y @fleox/agent3d@0.2.3 studio --project bakery
|
|
113
114
|
```
|
|
114
115
|
|
|
115
|
-
The first command creates a project folder with an attractive starter scene for its target (banner, hero, card, square, fullscreen, inline or game); add `--template <id>` to start from one of the [templates](#templates). The second opens the [Studio](#the-studio) on it. You need **Node.js 22+** and **Google Chrome** (or Chromium / Edge / Brave) for renders; `npx -y @fleox/agent3d@0.2.
|
|
116
|
+
The first command creates a project folder with an attractive starter scene for its target (banner, hero, card, square, fullscreen, inline or game); add `--template <id>` to start from one of the [templates](#templates). The second opens the [Studio](#the-studio) on it. You need **Node.js 22+** and **Google Chrome** (or Chromium / Edge / Brave) for renders; `npx -y @fleox/agent3d@0.2.3 doctor` checks your setup with a test render.
|
|
116
117
|
|
|
117
118
|
The whole loop from a terminal:
|
|
118
119
|
|
|
119
120
|
```bash
|
|
120
|
-
npx -y @fleox/agent3d@0.2.
|
|
121
|
-
npx -y @fleox/agent3d@0.2.
|
|
122
|
-
npx -y @fleox/agent3d@0.2.
|
|
123
|
-
npx -y @fleox/agent3d@0.2.
|
|
121
|
+
npx -y @fleox/agent3d@0.2.3 scene patch --project bakery '[{"op":"set","path":"objects#title.material","value":{"preset":"gold"}}]'
|
|
122
|
+
npx -y @fleox/agent3d@0.2.3 render --project bakery --sheet # → renders/…-sheet.png
|
|
123
|
+
npx -y @fleox/agent3d@0.2.3 check --project bakery
|
|
124
|
+
npx -y @fleox/agent3d@0.2.3 export --project bakery # → dist/embed/ + the snippet
|
|
124
125
|
```
|
|
125
126
|
|
|
126
127
|
Step by step: [docs/getting-started.md](https://github.com/fleox/agent3d/blob/main/docs/getting-started.md).
|
|
@@ -187,7 +188,7 @@ Step by step: [docs/getting-started.md](https://github.com/fleox/agent3d/blob/ma
|
|
|
187
188
|
A visual editor for when you want to see and touch the scene yourself, on the same files and the same validated tools as the agent. Changes your agent makes in a terminal appear live in the open Studio.
|
|
188
189
|
|
|
189
190
|
```bash
|
|
190
|
-
npx -y @fleox/agent3d@0.2.
|
|
191
|
+
npx -y @fleox/agent3d@0.2.3 studio --project bakery
|
|
191
192
|
```
|
|
192
193
|
|
|
193
194
|
<p align="center">
|
|
@@ -315,7 +316,7 @@ Pick Spline when a designer wants a hosted visual tool, hand-written Three.js wh
|
|
|
315
316
|
|
|
316
317
|
## The `agent3d` CLI
|
|
317
318
|
|
|
318
|
-
The same engine the agents use, by hand: `npx -y @fleox/agent3d@0.2.
|
|
319
|
+
The same engine the agents use, by hand: `npx -y @fleox/agent3d@0.2.3 help`. Every command accepts `--json` and prints exactly one `{ ok, data }` or `{ ok: false, error }` object with an actionable hint, and commands that replace or overwrite something print a plan until you add `--yes`.
|
|
319
320
|
|
|
320
321
|
<p align="center">
|
|
321
322
|
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/demo-cli.gif" width="820" alt="Terminal running the agent3d CLI: a project from the gradient-blob template, its scene summary, a gold torus added, a behaviour patch rejected with an actionable error then fixed, and the pre-export check">
|
|
@@ -353,7 +354,7 @@ Full reference: [docs/cli.md](https://github.com/fleox/agent3d/blob/main/docs/cl
|
|
|
353
354
|
## MCP server
|
|
354
355
|
|
|
355
356
|
```bash
|
|
356
|
-
claude mcp add agent3d -- npx -y @fleox/agent3d@0.2.
|
|
357
|
+
claude mcp add agent3d -- npx -y @fleox/agent3d@0.2.3 mcp --project ~/agent3d/my-banner
|
|
357
358
|
```
|
|
358
359
|
|
|
359
360
|
<p align="center">
|
package/changelog.json
CHANGED
package/dist/agent/agent3d.mjs
CHANGED
|
@@ -6,7 +6,7 @@ __a3dRequire(import.meta.url);
|
|
|
6
6
|
const __filename = __a3dPath(import.meta.url);
|
|
7
7
|
__a3dDirname(__filename);
|
|
8
8
|
import { t as __exportAll } from "./chunks/rolldown-runtime-ebOQtxsr.mjs";
|
|
9
|
-
import { r as version, t as package_default } from "./chunks/package-
|
|
9
|
+
import { r as version, t as package_default } from "./chunks/package-fw4h5vsh.mjs";
|
|
10
10
|
import { n as didYouMean, r as listOptions, t as closest } from "./chunks/suggest-Cpcgv1RP.mjs";
|
|
11
11
|
import { format, parseArgs } from "node:util";
|
|
12
12
|
import { createReadStream, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, watch, writeFileSync } from "node:fs";
|
|
@@ -9482,7 +9482,7 @@ var exportCommand = {
|
|
|
9482
9482
|
}
|
|
9483
9483
|
const runtime = { files: readRuntimeFiles(format) };
|
|
9484
9484
|
const { buildExport } = await import("./chunks/export-BHugc2H7.mjs").then((n) => n.n);
|
|
9485
|
-
const { version } = (await import("./chunks/package-
|
|
9485
|
+
const { version } = (await import("./chunks/package-fw4h5vsh.mjs").then((n) => n.n)).default;
|
|
9486
9486
|
let exportFs = fs;
|
|
9487
9487
|
let exportLibrary = libraryProvider();
|
|
9488
9488
|
let optimizeReport;
|
|
@@ -8,7 +8,7 @@ import { t as __exportAll } from "./rolldown-runtime-ebOQtxsr.mjs";
|
|
|
8
8
|
// package.json
|
|
9
9
|
var package_exports = /* @__PURE__ */ __exportAll({ default: () => package_default });
|
|
10
10
|
var name = "@fleox/agent3d";
|
|
11
|
-
var version = "0.2.
|
|
11
|
+
var version = "0.2.3";
|
|
12
12
|
var package_default = {
|
|
13
13
|
name,
|
|
14
14
|
version,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$t as e,A as t,Bt as n,Cn as r,Et as i,G as a,H as o,In as s,It as c,J as l,L as u,M as d,Mn as f,Mt as p,N as m,Nn as h,Nt as g,On as _,Pt as v,R as y,Rt as b,S as x,Sn as S,Tn as C,U as w,Ut as T,V as ee,W as E,Xt as D,Yt as O,_ as te,an as ne,b as k,bn as re,bt as A,d as j,dn as ie,en as ae,et as oe,f as se,fn as ce,g as le,h as ue,hn as M,i as de,in as fe,j as pe,lt as me,m as he,nn as ge,o as _e,p as ve,pn as ye,r as be,rn as N,t as xe,v as Se,vt as P,w as Ce,xt as we,yn as Te,yt as F,z as Ee,zt as De}from"./chunks/three.module-DnaBiDAJ.js";import{i as Oe,n as ke,o as Ae,r as je,s as Me,t as Ne,u as Pe}from"./chunks/materials-w3EW0g-7.js";import{i as Fe,n as Ie,o as Le,r as Re}from"./chunks/postfx-CFucYRev.js";import{i as ze,n as Be,t as Ve}from"./chunks/catalog--OTp4gjy.js";import{t as I}from"./chunks/easing-CXSz2e6P.js";import{a as He,c as L,d as R,f as z,i as Ue,l as B,n as V,o as H,p as We,r as Ge,s as Ke,t as U,u as qe}from"./chunks/util-CyaW1fcW.js";import{a as Je,i as Ye,t as Xe}from"./chunks/random-eeej60NW.js";import{n as Ze,t as Qe}from"./chunks/meshGradient.glsl-BMatplLA.js";import{n as $e}from"./chunks/params-BCNrVCYZ.js";import{t as et}from"./chunks/RoundedBoxGeometry-BViRogcJ.js";var tt=`0.2.2`,nt=/\{data\.([a-zA-Z_$][\w$-]*(?:\.[a-zA-Z_$][\w$-]*)*)(?:\|([^}]*))?\}/g;function rt(e,t){let n=e;for(let e of t.split(`.`)){if(typeof n!=`object`||!n)return;n=n[e]}return n}function it(e){return typeof e!=`string`||!e.includes(`{data.`)?!1:(nt.lastIndex=0,nt.test(e))}function at(e,t){return e.includes(`{data.`)?e.replace(nt,(e,n,r)=>{let i=rt(t,n);return i==null||i===``?r??``:typeof i==`object`?JSON.stringify(i):String(i)}):e}var ot=/^\{data\.([a-zA-Z_$][\w$-]*(?:\.[a-zA-Z_$][\w$-]*)*)(?:\|([^}]*))?\}$/;function st(e,t){if(typeof e!=`string`||!e.includes(`{data.`))return e;let n=ot.exec(e.trim());if(!n)return at(e,t);let r=rt(t,n[1]);if(r!=null&&r!==``)return r;if(n[2]!==void 0)try{return JSON.parse(n[2])}catch{return n[2]}}function W(e,t=e.data){let n=!1,r=e=>it(e)?(n=!0,at(e,t)):e,i=e=>{if(typeof e==`string`)return it(e)?(n=!0,st(e,t)):e;if(Array.isArray(e)){let t=e.map(i);return t.every((t,n)=>t===e[n])?e:t}if(e&&typeof e==`object`){let t=!1,n={};for(let[r,a]of Object.entries(e)){let e=i(a);e!==a&&(t=!0),e!==void 0&&(n[r]=e)}return t?n:e}return e},a=e=>{let t=e,n=t.kind===`text`?r(t.text):t.text,o=r(t.href),s=t.kind===`generator`&&t.params?i(t.params):t.params,c=e.children?.map(a);return n===t.text&&o===t.href&&s===t.params&&(!c||c.every((t,n)=>t===e.children[n]))?e:{...e,...t.kind===`text`?{text:n}:{},...t.href===void 0?{}:{href:o},...s===t.params?{}:{params:s},...c?{children:c}:{}}},o=e.interactions?.map(e=>{let t=e.do;if(!Array.isArray(t))return e;let n=t.map(e=>{let t=e;return!t||typeof t!=`object`||!it(t.openUrl)?e:{...t,openUrl:r(t.openUrl)}});return n.every((e,n)=>e===t[n])?e:{...e,do:n}}),s=(e.objects??[]).map(a),c=r(e.title),l=r(e.ariaLabel),u=e.ui?.elements?.map(e=>{let t=e,n=r(t.text);return n===t.text?e:{...e,text:n}});return n?{...e,title:c,...e.ariaLabel===void 0?{}:{ariaLabel:l},objects:s,...e.ui&&u?{ui:{...e.ui,elements:u}}:{},...o?{interactions:o}:{}}:e}function ct(e){let t={};for(let[n,r]of Object.entries(e))if(r!==void 0){if(n===`json`)try{let e=JSON.parse(r);e&&typeof e==`object`&&!Array.isArray(e)&&Object.assign(t,e)}catch{}else t[n]=r}return t}var lt=null,ut=null;function dt(){return lt??=import(`./chunks/shaders-Ba3v6Xnj.js`).then(e=>e.SHADER_IMPLS),lt}function ft(){return ut??=import(`./chunks/generators--kOFg1G_.js`).then(e=>e.GENERATOR_IMPLS),ut}function G(e,t=[0,1,0]){let n=new h(...z(e,t));return n.lengthSq()<1e-9&&n.set(0,1,0),n.normalize()}function pt(e){return Ke(e)}var K=Math.PI*2,mt=(e,t)=>{let n=qe(e.effect,`scale`),r=Math.max(L(e.duration,.8),.001),i=qe(e.ease,`outBack`),a=n===`fade`?pt(t.object):[];for(let e of a)e.userData.baseOpacity===void 0&&(e.userData.baseOpacity=e.opacity),e.transparent=!0;return{update(e){let o=Math.min(Math.max(e/r,0),1),s=I(i,o),c=t.object;switch(n){case`fade`:for(let e of a)e.opacity=e.userData.baseOpacity*I(`outCubic`,o);break;case`rise`:c.position.y-=(1-s)*1,c.scale.multiplyScalar(Math.max(1e-4,Math.min(1,o*3)));break;case`drop`:c.position.y+=(1-s)*3,o<=0&&(c.visible=!1);break;case`spin`:c.rotation.y+=(1-s)*K,c.scale.multiplyScalar(Math.max(1e-4,s));break;default:c.scale.multiplyScalar(Math.max(1e-4,s))}}}},ht=(e,t)=>{let n=V(e.lockY,!0),r=new h,i=new h;return{update(){t.object.getWorldPosition(r),t.camera.getWorldPosition(i),n?t.object.rotation.set(0,Math.atan2(i.x-r.x,i.z-r.z),0):t.camera.getWorldQuaternion(t.object.quaternion)}}},gt=(e,t)=>{let n=Math.max(L(e.interval,3),.05),r=L(e.duration,.15),i=V(e.random,!0);return{update(e){let a=Math.floor(e/n),o=i?H(a+t.object.id)*(n-r)*.8:n-r,s=e-a*n;s>=o&&s<o+r&&(t.object.visible=!1)}}},_t=(e,t)=>{let n=L(e.amount,.04),r=Math.max(L(e.period,4),.1),i=L(e.phase,0),a=L(e.rise,.02);return{update(e){let o=(e/r+i)%1,s=o<.6?.5-.5*Math.cos(o/.6*Math.PI):.5+.5*Math.cos((o-.6)/.4*Math.PI);t.object.scale.x*=1+n*.5*s,t.object.scale.z*=1+n*.5*s,t.object.scale.y*=1+n*s,t.object.position.y+=a*s}}},vt=(e,t)=>{let n=L(e.height,.3),r=L(e.speed,1.5);return{update(e){let i=Math.abs(Math.sin(Math.PI*r*e));t.object.position.y+=n*i;let a=(1-i)*(1-i)*.08;t.object.scale.y*=1-a,t.object.scale.x*=1+a*.5,t.object.scale.z*=1+a*.5}}},yt=(e,t)=>{let n=L(e.amount,.25),r=-1;return{update(e){if(t.clicked()&&(r=e),r<0)return;let i=e-r;if(i>1.5)return;let a=n*Math.exp(-5*i)*Math.sin(i*22);t.object.scale.y*=1-a,t.object.scale.x*=1+a*.5,t.object.scale.z*=1+a*.5}}};function bt(e,t,n){if(t<=0||e<=0)return 0;if(n===`pingpong`){let n=e%(2*t);return n<=t?n:2*t-n}return n?e%t:Math.min(e,t)}var xt=/* @__PURE__ */ new Map;function St(e){let t=xt.get(e);if(!t){t=new k;try{t.setStyle(e)}catch{t.set(16777215)}xt.size<1e3&&xt.set(e,t)}return t}var Ct=/^\s*([+\-*])=\s*(-?\d*\.?\d+(?:e[+-]?\d+)?)\s*$/i;function wt(e){return typeof e==`string`&&Ct.test(e)}function q(e,t){if(typeof e==`number`)return e;let n=typeof e==`string`?Ct.exec(e):null;if(!n)return t;let r=Number(n[2]);return n[1]===`+`?t+r:n[1]===`-`?t-r:t*r}function Tt(e,t){let n=Array.isArray(t)?t:typeof t==`number`?[t,t,t]:null,r=typeof t==`number`?t:Array.isArray(t)?t[0]:0;return e.map(e=>{let[i,a,o]=e,s;return s=Array.isArray(a)?[q(a[0],n?.[0]??0),q(a[1],n?.[1]??0),q(a[2],n?.[2]??0)]:wt(a)?n&&Array.isArray(t)?[q(a,n[0]),q(a,n[1]),q(a,n[2])]:q(a,r):a,o===void 0?[i,s]:[i,s,o]})}function Et(e){return Array.isArray(e)?[Number(e[0])||0,Number(e[1])||0,Number(e[2])||0]:typeof e==`number`?[e,e,e]:null}function Dt(e){let t=Math.cbrt(.4122214708*e.r+.5363325363*e.g+.0514459929*e.b),n=Math.cbrt(.2119034982*e.r+.6806995451*e.g+.1073969566*e.b),r=Math.cbrt(.0883024619*e.r+.2817188376*e.g+.6299787005*e.b);return[.2104542553*t+.793617785*n-.0040720468*r,1.9779984951*t-2.428592205*n+.4505937099*r,.0259040371*t+.7827717662*n-.808675766*r]}function Ot(e,t,n,r){let i=(e+.3963377774*t+.2158037573*n)**3,a=(e-.1055613458*t-.0638541728*n)**3,o=(e-.0894841775*t-1.291485548*n)**3;return r.setRGB(Math.max(0,4.0767416621*i-3.3077115913*a+.2309699292*o),Math.max(0,-1.2684380046*i+2.6097574011*a-.3413193965*o),Math.max(0,-.0041960863*i-.7034186147*a+1.707614701*o),me)}function kt(e,t,n,r=`oklch`,i=new k){if(r===`rgb`)return i.copy(e).lerp(t,n);if(r===`oklch`){let r=Dt(e),a=Dt(t),o=Math.hypot(r[1],r[2]),s=Math.hypot(a[1],a[2]),c=Math.atan2(r[2],r[1]),l=Math.atan2(a[2],a[1]);o<1e-4&&(c=l),s<1e-4&&(l=c);let u=l-c;u>Math.PI?u-=2*Math.PI:u<-Math.PI&&(u+=2*Math.PI);let d=r[0]+(a[0]-r[0])*n,f=Math.max(0,o+(s-o)*n),p=c+u*n;return Ot(d,f*Math.cos(p),f*Math.sin(p),i)}if(r===`hsl`){let r={h:0,s:0,l:0},a={h:0,s:0,l:0};e.getHSL(r),t.getHSL(a),r.s<1e-4&&(r.h=a.h),a.s<1e-4&&(a.h=r.h);let o=a.h-r.h;return o>.5?--o:o<-.5&&(o+=1),i.setHSL(((r.h+o*n)%1+1)%1,r.s+(a.s-r.s)*n,r.l+(a.l-r.l)*n)}let a=Dt(e),o=Dt(t);return Ot(a[0]+(o[0]-a[0])*n,a[1]+(o[1]-a[1])*n,a[2]+(o[2]-a[2])*n,i)}function At(e,t,n,r){if(typeof e==`boolean`||typeof t==`boolean`)return n>=1?t:e;if(typeof e==`number`&&typeof t==`number`)return e+(t-e)*n;if(typeof e==`string`||typeof t==`string`)return kt(St(String(e)),St(String(t)),n,r);let i=Et(e),a=Et(t);return[i[0]+(a[0]-i[0])*n,i[1]+(a[1]-i[1])*n,i[2]+(a[2]-i[2])*n]}function jt(e){return typeof e==`string`?St(e).clone():Array.isArray(e)?[e[0],e[1],e[2]]:e}function Mt(e,t,n,r){let i=e;if(!i.length)return;if(t<=i[0][0])return jt(i[0][1]);let a=i[i.length-1];if(t>=a[0])return jt(a[1]);for(let e=0;e<i.length-1;e++){let[a,o]=i[e],[s,c,l]=i[e+1];if(t>=a&&t<s)return typeof o==`boolean`||typeof c==`boolean`?o:At(o,c,s>a?I(l??n??`linear`,(t-a)/(s-a)):1,r)}return jt(a[1])}function Nt(e){let t=e.indexOf(`.`);return t<0?{id:e,path:``}:{id:e.slice(0,t),path:e.slice(t+1)}}function Pt(e,t,n=1){let r=Array.from({length:e},(e,t)=>t);switch(t){case`end`:return r.map(t=>e-1-t);case`center`:{let t=(e-1)/2;return r.map(e=>Math.abs(e-t))}case`edges`:{let t=(e-1)/2;return r.map(e=>t-Math.abs(e-t))}case`random`:{let t=[...r],i=n*2654435761>>>0||1;for(let n=e-1;n>0;n--){i=i*1664525+1013904223>>>0;let e=i%(n+1);[t[n],t[e]]=[t[e],t[n]]}let a=Array(e);return t.forEach((e,t)=>a[e]=t),a}default:return r}}var Ft=(e,t)=>{let n=Ue(e.colors,[`#ff006e`,`#8338ec`,`#3a86ff`]).map(e=>R(e)),r=L(e.speed,.5),i=V(e.emissive,!1),a=pt(t.object),o=new k;return{update(e){let s=(e*r%n.length+n.length)%n.length,c=Math.floor(s),l=s-c,u=l*l*(3-2*l);kt(n[c],n[(c+1)%n.length],u,`oklch`,o);let d=t.object;d.isLight&&d.color.copy(o);for(let e of a){let t=e;t.color?.copy(o),i&&t.emissive&&t.emissive.copy(o)}}}},It=(e,t)=>{let[n,r,i]=z(e.area,[1,1,1]),a=L(e.speed,.3),o=L(e.seed,1)+t.object.id*.137,s=Array.from({length:6},(e,t)=>H(o*13.1+t)*Math.PI*2),c=Array.from({length:6},(e,t)=>.6+H(o*7.7+t*3.3)*.8),l=(e,t)=>.65*Math.sin(t*c[e]+s[e])+.35*Math.sin(t*c[e+3]*2.3+s[e+3]);return{update(e){let o=e*a;t.object.position.x+=n/2*l(0,o),t.object.position.y+=r/2*l(1,o*.9),t.object.position.z+=i/2*l(2,o*1.1)}}};function Lt(e,t){let n=Math.floor(e),r=e-n,i=H(n+t*31.7);return i+(H(n+1+t*31.7)-i)*r*r*(3-2*r)}var Rt=(e,t)=>{let n=Ge(L(e.amount,.3),0,1),r=L(e.speed,8),i=t.object.id,a=pt(t.object);for(let e of a)e.userData.baseEmissiveIntensity===void 0&&(e.userData.baseEmissiveIntensity=e.emissiveIntensity??1);return{update(e){let o=.6*Lt(e*r,i)+.4*Lt(e*r*2.7,i+3),s=1-n*o,c=t.object;c.isLight&&(c.intensity*=s);for(let e of a)e.emissiveIntensity!==void 0&&(e.emissiveIntensity=e.userData.baseEmissiveIntensity*s)}}},zt=(e,t)=>{let n=L(e.amplitude,.15),r=L(e.speed,.5),i=L(e.phase,0);return{update:e=>void(t.object.position.y+=n*Math.sin(K*(r*e+i)))}},Bt=(e,t)=>{let n=L(e.strength,.5),r=L(e.smoothing,.9),i=qe(e.mode,`rotate`),a=0,o=0;return{update(e,s){let c=B(r,s);a+=(t.pointer.x-a)*c,o+=(t.pointer.y-o)*c,(i===`move`||i===`both`)&&(t.object.position.x+=a*n,t.object.position.y+=o*n),(i===`rotate`||i===`both`)&&(t.object.rotation.y+=a*n*.8,t.object.rotation.x+=-o*n*.8)}}},Vt=(e,t)=>{let n=L(e.height,.2),r=L(e.tilt,10)*U,i=0,a=0,o=0;return{update(e,s){let c=B(.82,s);i+=(+!!t.hovered()-i)*c,a+=(t.pointer.x-a)*c,o+=(t.pointer.y-o)*c,t.object.position.y+=n*i,t.object.rotation.x+=-o*r*i,t.object.rotation.y+=a*r*i}}},Ht=(e,t)=>{let n=L(e.scale,1.15),r=L(e.smoothing,.8),i=1;return{update(e,a){i+=((t.hovered()?n:1)-i)*B(r,a),t.object.scale.multiplyScalar(i)}}},Ut=(e,t)=>{let n=L(e.smoothing,.85),r=V(e.lockY,!1),i=Array.isArray(e.point)&&e.point.length===3?new h(...e.point):null,a=typeof e.target==`string`?e.target:`camera`,o=new T,s=new T,c=new h,l=new h,u=new P,d=new T,f=!0;return{update(e,m){let g=i??(a===`camera`?t.camera:t.find?.(a));g&&(g instanceof h?l.copy(g):g.getWorldPosition(l),t.object.getWorldPosition(c),r&&(l.y=c.y),l.distanceToSquared(c)<1e-10||(u.lookAt(l,c,p.DEFAULT_UP),o.setFromRotationMatrix(u),t.object.parent&&o.premultiply(t.object.parent.getWorldQuaternion(d).invert()),s.slerp(o,f?1:B(n,m)),f=!1,t.object.quaternion.copy(s)))}}},Wt=(e,t)=>{let n=L(e.maxAngle,35)*U,r=L(e.smoothing,.85),i=0,a=0;return{update(e,o){let s=B(r,o);i+=(t.pointer.x*n-i)*s,a+=(-t.pointer.y*n-a)*s,t.object.rotation.y+=i,t.object.rotation.x+=a}}},Gt=(e,t)=>{let n=Math.max(L(e.radius,.25),.001),r=L(e.strength,.4),i=new h,a=new h,o=new h,s=new h,c=new h;return{update(e,l){if(a.set(0,0,0),t.pointer.inside){t.object.getWorldPosition(o),s.copy(o).project(t.camera);let e=(t.pointer.x-s.x)/2,i=(t.pointer.y-s.y)/2,l=Math.hypot(e,i);if(l<n){c.set(t.pointer.x,t.pointer.y,s.z).unproject(t.camera),a.copy(c).sub(o);let e=a.length();e>1e-6&&a.multiplyScalar(Math.min(e,r)*(1-l/n)/e)}}i.lerp(a,B(.85,l)),t.object.position.add(i)}}},Kt=(e,t)=>{let[n,r,i]=z(e.amplitude,[.1,.1,.05]),[a,o,s]=z(e.rotation,[3,3,2]),c=L(e.speed,.3),l=L(e.seed,1)*13.37+t.rng.next()*100,u=(e,t)=>Je(e*c+l,t*5.17)*.8+Je(e*c*2.3+l,t*5.17+2.9)*.2;return{update(e){t.object.position.x+=u(e,0)*n,t.object.position.y+=u(e,1)*r,t.object.position.z+=u(e,2)*i,t.object.rotation.x+=u(e,3)*a*U,t.object.rotation.y+=u(e,4)*o*U,t.object.rotation.z+=u(e,5)*s*U}}},qt=(e,t)=>{let n=new h(...z(e.center,[0,0,0])),r=L(e.radius,2),i=L(e.speed,30)*U,a=L(e.phase,0)*U,o=G(e.axis),s=V(e.faceDirection,!1),c=Math.abs(o.y)<.99?new h(0,1,0):new h(1,0,0),l=new h().crossVectors(c,o).normalize(),u=new h().crossVectors(o,l).normalize(),d=new h;return{update(e){let c=a+i*e,f=t.object.position.dot(o)-n.dot(o);if(d.copy(n).addScaledVector(l,Math.cos(c)*r).addScaledVector(u,Math.sin(c)*r).addScaledVector(o,f),t.object.position.copy(d),s){let e=l.clone().multiplyScalar(-Math.sin(c)).addScaledVector(u,Math.cos(c)).multiplyScalar(Math.sign(i)||1),n=new T().setFromUnitVectors(new h(0,0,1),e.normalize());t.object.quaternion.premultiply(n)}}}},Jt=(e,t)=>{let n=L(e.depth,.5),r=L(e.pointer,.3),i=L(e.scroll,0),a=L(e.smoothing,.9),o=0,s=0;return{update(e,c){let l=B(a,c),u=t.pointer.inside?t.pointer.x:0,d=t.pointer.inside?t.pointer.y:0;o+=(u-o)*l,s+=(d-s)*l,t.object.position.x+=o*r*n,t.object.position.y+=s*r*n*.6+(t.scroll()-.5)*i*n}}},Yt=(e,t)=>{let n=(Array.isArray(e.points)?e.points:[]).filter(e=>Array.isArray(e)&&e.length>=3).map(e=>new h(e[0],e[1],e[2])),r=V(e.loop,!0),i=V(e.faceDirection,!0),a=Math.max(L(e.duration,5),.001);if(n.length<2)return{update(){}};let o=new te(n,r,`catmullrom`,.5),s=new h,c=new h(0,0,1);return{update(e){let n=r?e/a%1:Math.min(e/a,1);o.getPointAt(n,t.object.position),i&&(o.getTangentAt(Math.min(n,.9999),s).normalize(),t.object.quaternion.setFromUnitVectors(c,s))}}},Xt=(e,t)=>{let n=L(e.amount,.08),r=L(e.speed,1);return{update:e=>void t.object.scale.multiplyScalar(1+n*Math.sin(K*r*e))}},Zt=(e,t)=>{let n=G(e.axis),r=L(e.speed,45)*U;return{update:e=>void t.object.rotateOnAxis(n,r*e)}},Qt=(e,t)=>{let[n,r,i]=z(e.offset,[0,2,0]);return{update(){let e=t.scroll();t.object.position.x+=n*e,t.object.position.y+=r*e,t.object.position.z+=i*e}}},$t=(e,t)=>{let n=G(e.axis),r=L(e.degrees,360)*U;return{update:()=>void t.object.rotateOnAxis(n,r*t.scroll())}},en=(e,t)=>{let n=G(e.axis),r=Math.max(L(e.duration,.8),.001),i=e.trigger===`hover`,a=-1,o=!1;return{update(e){let s=a>=0&&e-a<r;if(i){let n=t.hovered();n&&!o&&!s&&(a=e),o=n}else t.clicked()&&!s&&(a=e);if(a<0)return;let c=(e-a)/r;c>=1||t.object.rotateOnAxis(n,K*I(`inOutCubic`,c))}}};function tn(e,t,n,r,i,a,o=1){let s=Math.min(Math.max(r,0),2);for(;s>1e-9;){let r=Math.min(.004166666666666667,s),c=(-i*(e-n)-a*t)/o;t+=c*r,e+=t*r,s-=r}return[e,t]}var nn={rotate:Zt,float:zt,bob:vt,pulse:Xt,wobble:(e,t)=>{let n=L(e.amount,.08),r=L(e.speed,2);return{update(e){let i=Math.sin(K*r*e*.5),a=Math.sin(K*r*e*.5+Math.PI/2);t.object.scale.x*=1+n*i,t.object.scale.y*=1-n*i,t.object.scale.z*=1+n*a*.5}}},sway:(e,t)=>{let n=G(e.axis,[0,0,1]),r=L(e.angle,8)*U,i=L(e.speed,.5);return{update:e=>void t.object.rotateOnAxis(n,r*Math.sin(K*i*e))}},orbit:qt,path:Yt,followPointer:Bt,lookAtPointer:Wt,hoverScale:Ht,hoverLift:Vt,clickBounce:yt,spinOnClick:en,scrollRotate:$t,scrollMove:Qt,drift:It,blink:gt,colorCycle:Ft,flicker:Rt,billboard:ht,appear:mt,magnet:Gt,spring:(e,t)=>{let n=L(e.strength,.4),r=Math.max(L(e.stiffness,120),1),i=Math.max(L(e.damping,12),0),a=Math.max(L(e.mass,1),.01),o=qe(e.mode,`move`),s=L(e.angle,15)*U,c={x:0,vx:0,y:0,vy:0};return{update(e,l){let u=t.pointer.inside?t.pointer.x:0,d=t.pointer.inside?t.pointer.y:0;[c.x,c.vx]=tn(c.x,c.vx,u,l,r,i,a),[c.y,c.vy]=tn(c.y,c.vy,d,l,r,i,a),(o===`move`||o===`both`)&&(t.object.position.x+=c.x*n,t.object.position.y+=c.y*n),(o===`rotate`||o===`both`)&&(t.object.rotation.y+=c.x*s,t.object.rotation.x+=-c.y*s)}}},parallax:Jt,tilt:(e,t)=>{let n=L(e.maxAngle,12)*U,r=L(e.scale,1.04),i=L(e.lift,.1),a=L(e.smoothing,.86),o=V(e.hoverOnly,!0),s=V(e.reverse,!1)?-1:1,c=0,l=0,u=0;return{update(e,d){let f=o?t.hovered():t.pointer.inside,p=B(a,d);u+=(+!!f-u)*p,c+=((f?t.pointer.x:0)-c)*p,l+=((f?t.pointer.y:0)-l)*p,t.object.rotation.y+=c*n*s,t.object.rotation.x+=-l*n*s,t.object.position.z+=i*u,t.object.scale.multiplyScalar(1+(r-1)*u)}}},breathe:_t,noise:Kt,lookAt:Ut},rn=/* @__PURE__ */ new Set([`appear`]),an=1e6,on=/* @__PURE__ */ new Set([`billboard`,`lookAt`]),sn=/* @__PURE__ */ new Set([`lookAt`,`magnet`,`spring`]),cn=1/30;function ln(e,t,n=cn){let r=[];for(let i=Math.floor(e/n+1e-6)+1;i*n<t-1e-6;i++)r.push(i*n);return r}function un(e,t,n,r={}){let i=t(e,n),a=e.when??`always`,o=L(e.delay,0),s=0,c=-1;return{def:e,late:on.has(e.type),stateful:sn.has(e.type),step(t,l){if(r.settled?.()&&rn.has(e.type)&&(a===`always`||a===`visible`)){i.update(an,l);return}let u;switch(a){case`hover`:n.hovered()&&(s+=l),u=s-o;break;case`click`:if(c<0&&n.clicked()&&(c=t),c<0)return;u=t-c-o;break;case`scroll`:u=n.scroll()*10-o;break;default:u=t-o}i.update(Math.max(0,u),l)},dispose(){i.dispose?.()}}}var dn={count:300,area:[10,6,6],size:.08,colors:[`#ffffff`],speed:.3,direction:[0,1,0],spread:.3,lifetime:0,opacity:1,blending:`additive`,shape:`soft`,twinkle:0,wander:.2,spin:0,gravity:[0,0,0],endColor:null,endSize:1,stretch:1,swirl:0},fn={stars:{count:900,area:[40,20,20],size:.09,colors:[`#ffffff`,`#cfe2ff`,`#ffe8c2`],speed:0,wander:0,twinkle:.8,shape:`point`,blending:`additive`},snow:{count:1200,area:[20,12,10],size:.08,colors:[`#ffffff`,`#eef6ff`],speed:.6,direction:[0,-1,0],spread:.3,wander:.35,shape:`soft`,blending:`normal`,opacity:.95},rain:{count:2200,area:[20,12,10],size:.05,colors:[`#c9ddff`,`#a9c4f0`],speed:9,direction:[-.06,-1,0],spread:.04,wander:0,shape:`streak`,stretch:9,blending:`normal`,opacity:.5},fireflies:{count:90,area:[10,4,6],size:.16,colors:[`#fff3a0`,`#d4ff7a`,`#ffe066`],speed:.08,spread:1,wander:.7,twinkle:.9,shape:`point`,blending:`additive`},confetti:{count:320,area:[12,8,6],size:.16,colors:[`#ff006e`,`#ffbe0b`,`#3a86ff`,`#8338ec`,`#06d6a0`,`#fb5607`],speed:1.3,direction:[0,-1,0],spread:.5,wander:.45,spin:.8,shape:`square`,blending:`normal`},sparks:{count:320,area:[.6,.2,.6],size:.035,colors:[`#fff6d0`,`#ffd27a`,`#ff9a3d`],speed:5,direction:[0,1,0],spread:.45,lifetime:1.2,wander:0,gravity:[0,-6,0],endColor:`#ff4d00`,endSize:.5,shape:`streak`,stretch:4,blending:`additive`},dust:{count:450,area:[12,6,8],size:.035,colors:[`#ffffff`,`#fff4dc`],speed:.04,spread:1,wander:.45,twinkle:.35,opacity:.6,shape:`soft`,blending:`additive`},bubbles:{count:160,area:[8,6,4],size:.22,colors:[`#d6f3ff`,`#a9e4ff`],speed:.8,direction:[0,1,0],spread:.25,wander:.18,shape:`bubble`,blending:`normal`,opacity:.85},embers:{count:220,area:[6,.6,4],size:.07,colors:[`#ffb347`,`#ff7b00`,`#ffd27a`],speed:1,direction:[0,1,0],spread:.45,lifetime:3.2,wander:.45,twinkle:.4,endColor:`#c81d00`,endSize:.4,shape:`point`,blending:`additive`},hearts:{count:60,area:[8,4,4],size:.32,colors:[`#ff4d6d`,`#ff8fa3`,`#ff006e`],speed:.6,direction:[0,1,0],spread:.3,lifetime:5,wander:.3,endSize:1.3,shape:`heart`,blending:`normal`},magic:{count:260,area:[6,4,3],size:.13,colors:[`#fff3b0`,`#e9d5ff`,`#a5f3fc`,`#fbcfe8`],speed:.25,direction:[0,1,0],spread:1,lifetime:3.5,wander:.35,twinkle:.9,spin:.15,endSize:.2,shape:`star`,blending:`additive`},smoke:{count:90,area:[1.2,.3,1.2],size:1.1,colors:[`#d9dde3`,`#c3c8d0`,`#eef0f3`],speed:.7,direction:[.12,1,0],spread:.25,lifetime:6,wander:.35,spin:.05,endSize:3.2,endColor:`#f4f5f7`,shape:`smoke`,blending:`normal`,opacity:.4},fire:{count:150,area:[.6,.1,.6],size:.42,colors:[`#ffd27a`,`#ffb347`,`#ff9a3d`],speed:1.9,direction:[0,1,0],spread:.1,lifetime:1,wander:.1,gravity:[0,.6,0],endColor:`#c81d00`,endSize:.12,shape:`smoke`,spin:.2,blending:`additive`,opacity:.5},petals:{count:140,area:[14,8,6],size:.27,colors:[`#ffc2d4`,`#ffb3c6`,`#ffe5ec`,`#ff8fab`],speed:.55,direction:[.35,-1,.1],spread:.4,wander:.6,spin:.35,shape:`petal`,blending:`normal`},leaves:{count:110,area:[14,8,6],size:.26,colors:[`#e76f51`,`#f4a261`,`#e9c46a`,`#bc4b2a`,`#8a9a2b`],speed:.7,direction:[.45,-1,.1],spread:.45,wander:.7,spin:.3,shape:`leaf`,blending:`normal`},galaxyDust:{count:1800,area:[16,2,16],size:.05,colors:[`#a5b4fc`,`#f0abfc`,`#93c5fd`,`#ffffff`],speed:0,wander:.15,twinkle:.5,swirl:.12,opacity:.8,shape:`soft`,blending:`additive`},bokeh:{count:26,area:[16,9,6],size:1.1,colors:[`#ffd6a5`,`#fdffb6`,`#caffbf`,`#9bf6ff`,`#bdb2ff`,`#ffc6ff`],speed:.05,spread:1,wander:.5,twinkle:.3,opacity:.32,shape:`ring`,blending:`additive`}},pn={point:0,square:1,circle:2,star:3,spark:4,heart:5,bubble:6,soft:7,streak:8,smoke:9,petal:10,leaf:11,ring:12},mn=`
|
|
1
|
+
import{$t as e,A as t,Bt as n,Cn as r,Et as i,G as a,H as o,In as s,It as c,J as l,L as u,M as d,Mn as f,Mt as p,N as m,Nn as h,Nt as g,On as _,Pt as v,R as y,Rt as b,S as x,Sn as S,Tn as C,U as w,Ut as T,V as ee,W as E,Xt as D,Yt as O,_ as te,an as ne,b as k,bn as re,bt as A,d as j,dn as ie,en as ae,et as oe,f as se,fn as ce,g as le,h as ue,hn as M,i as de,in as fe,j as pe,lt as me,m as he,nn as ge,o as _e,p as ve,pn as ye,r as be,rn as N,t as xe,v as Se,vt as P,w as Ce,xt as we,yn as Te,yt as F,z as Ee,zt as De}from"./chunks/three.module-DnaBiDAJ.js";import{i as Oe,n as ke,o as Ae,r as je,s as Me,t as Ne,u as Pe}from"./chunks/materials-w3EW0g-7.js";import{i as Fe,n as Ie,o as Le,r as Re}from"./chunks/postfx-CFucYRev.js";import{i as ze,n as Be,t as Ve}from"./chunks/catalog--OTp4gjy.js";import{t as I}from"./chunks/easing-CXSz2e6P.js";import{a as He,c as L,d as R,f as z,i as Ue,l as B,n as V,o as H,p as We,r as Ge,s as Ke,t as U,u as qe}from"./chunks/util-CyaW1fcW.js";import{a as Je,i as Ye,t as Xe}from"./chunks/random-eeej60NW.js";import{n as Ze,t as Qe}from"./chunks/meshGradient.glsl-BMatplLA.js";import{n as $e}from"./chunks/params-BCNrVCYZ.js";import{t as et}from"./chunks/RoundedBoxGeometry-BViRogcJ.js";var tt=`0.2.3`,nt=/\{data\.([a-zA-Z_$][\w$-]*(?:\.[a-zA-Z_$][\w$-]*)*)(?:\|([^}]*))?\}/g;function rt(e,t){let n=e;for(let e of t.split(`.`)){if(typeof n!=`object`||!n)return;n=n[e]}return n}function it(e){return typeof e!=`string`||!e.includes(`{data.`)?!1:(nt.lastIndex=0,nt.test(e))}function at(e,t){return e.includes(`{data.`)?e.replace(nt,(e,n,r)=>{let i=rt(t,n);return i==null||i===``?r??``:typeof i==`object`?JSON.stringify(i):String(i)}):e}var ot=/^\{data\.([a-zA-Z_$][\w$-]*(?:\.[a-zA-Z_$][\w$-]*)*)(?:\|([^}]*))?\}$/;function st(e,t){if(typeof e!=`string`||!e.includes(`{data.`))return e;let n=ot.exec(e.trim());if(!n)return at(e,t);let r=rt(t,n[1]);if(r!=null&&r!==``)return r;if(n[2]!==void 0)try{return JSON.parse(n[2])}catch{return n[2]}}function W(e,t=e.data){let n=!1,r=e=>it(e)?(n=!0,at(e,t)):e,i=e=>{if(typeof e==`string`)return it(e)?(n=!0,st(e,t)):e;if(Array.isArray(e)){let t=e.map(i);return t.every((t,n)=>t===e[n])?e:t}if(e&&typeof e==`object`){let t=!1,n={};for(let[r,a]of Object.entries(e)){let e=i(a);e!==a&&(t=!0),e!==void 0&&(n[r]=e)}return t?n:e}return e},a=e=>{let t=e,n=t.kind===`text`?r(t.text):t.text,o=r(t.href),s=t.kind===`generator`&&t.params?i(t.params):t.params,c=e.children?.map(a);return n===t.text&&o===t.href&&s===t.params&&(!c||c.every((t,n)=>t===e.children[n]))?e:{...e,...t.kind===`text`?{text:n}:{},...t.href===void 0?{}:{href:o},...s===t.params?{}:{params:s},...c?{children:c}:{}}},o=e.interactions?.map(e=>{let t=e.do;if(!Array.isArray(t))return e;let n=t.map(e=>{let t=e;return!t||typeof t!=`object`||!it(t.openUrl)?e:{...t,openUrl:r(t.openUrl)}});return n.every((e,n)=>e===t[n])?e:{...e,do:n}}),s=(e.objects??[]).map(a),c=r(e.title),l=r(e.ariaLabel),u=e.ui?.elements?.map(e=>{let t=e,n=r(t.text);return n===t.text?e:{...e,text:n}});return n?{...e,title:c,...e.ariaLabel===void 0?{}:{ariaLabel:l},objects:s,...e.ui&&u?{ui:{...e.ui,elements:u}}:{},...o?{interactions:o}:{}}:e}function ct(e){let t={};for(let[n,r]of Object.entries(e))if(r!==void 0){if(n===`json`)try{let e=JSON.parse(r);e&&typeof e==`object`&&!Array.isArray(e)&&Object.assign(t,e)}catch{}else t[n]=r}return t}var lt=null,ut=null;function dt(){return lt??=import(`./chunks/shaders-Ba3v6Xnj.js`).then(e=>e.SHADER_IMPLS),lt}function ft(){return ut??=import(`./chunks/generators--kOFg1G_.js`).then(e=>e.GENERATOR_IMPLS),ut}function G(e,t=[0,1,0]){let n=new h(...z(e,t));return n.lengthSq()<1e-9&&n.set(0,1,0),n.normalize()}function pt(e){return Ke(e)}var K=Math.PI*2,mt=(e,t)=>{let n=qe(e.effect,`scale`),r=Math.max(L(e.duration,.8),.001),i=qe(e.ease,`outBack`),a=n===`fade`?pt(t.object):[];for(let e of a)e.userData.baseOpacity===void 0&&(e.userData.baseOpacity=e.opacity),e.transparent=!0;return{update(e){let o=Math.min(Math.max(e/r,0),1),s=I(i,o),c=t.object;switch(n){case`fade`:for(let e of a)e.opacity=e.userData.baseOpacity*I(`outCubic`,o);break;case`rise`:c.position.y-=(1-s)*1,c.scale.multiplyScalar(Math.max(1e-4,Math.min(1,o*3)));break;case`drop`:c.position.y+=(1-s)*3,o<=0&&(c.visible=!1);break;case`spin`:c.rotation.y+=(1-s)*K,c.scale.multiplyScalar(Math.max(1e-4,s));break;default:c.scale.multiplyScalar(Math.max(1e-4,s))}}}},ht=(e,t)=>{let n=V(e.lockY,!0),r=new h,i=new h;return{update(){t.object.getWorldPosition(r),t.camera.getWorldPosition(i),n?t.object.rotation.set(0,Math.atan2(i.x-r.x,i.z-r.z),0):t.camera.getWorldQuaternion(t.object.quaternion)}}},gt=(e,t)=>{let n=Math.max(L(e.interval,3),.05),r=L(e.duration,.15),i=V(e.random,!0);return{update(e){let a=Math.floor(e/n),o=i?H(a+t.object.id)*(n-r)*.8:n-r,s=e-a*n;s>=o&&s<o+r&&(t.object.visible=!1)}}},_t=(e,t)=>{let n=L(e.amount,.04),r=Math.max(L(e.period,4),.1),i=L(e.phase,0),a=L(e.rise,.02);return{update(e){let o=(e/r+i)%1,s=o<.6?.5-.5*Math.cos(o/.6*Math.PI):.5+.5*Math.cos((o-.6)/.4*Math.PI);t.object.scale.x*=1+n*.5*s,t.object.scale.z*=1+n*.5*s,t.object.scale.y*=1+n*s,t.object.position.y+=a*s}}},vt=(e,t)=>{let n=L(e.height,.3),r=L(e.speed,1.5);return{update(e){let i=Math.abs(Math.sin(Math.PI*r*e));t.object.position.y+=n*i;let a=(1-i)*(1-i)*.08;t.object.scale.y*=1-a,t.object.scale.x*=1+a*.5,t.object.scale.z*=1+a*.5}}},yt=(e,t)=>{let n=L(e.amount,.25),r=-1;return{update(e){if(t.clicked()&&(r=e),r<0)return;let i=e-r;if(i>1.5)return;let a=n*Math.exp(-5*i)*Math.sin(i*22);t.object.scale.y*=1-a,t.object.scale.x*=1+a*.5,t.object.scale.z*=1+a*.5}}};function bt(e,t,n){if(t<=0||e<=0)return 0;if(n===`pingpong`){let n=e%(2*t);return n<=t?n:2*t-n}return n?e%t:Math.min(e,t)}var xt=/* @__PURE__ */ new Map;function St(e){let t=xt.get(e);if(!t){t=new k;try{t.setStyle(e)}catch{t.set(16777215)}xt.size<1e3&&xt.set(e,t)}return t}var Ct=/^\s*([+\-*])=\s*(-?\d*\.?\d+(?:e[+-]?\d+)?)\s*$/i;function wt(e){return typeof e==`string`&&Ct.test(e)}function q(e,t){if(typeof e==`number`)return e;let n=typeof e==`string`?Ct.exec(e):null;if(!n)return t;let r=Number(n[2]);return n[1]===`+`?t+r:n[1]===`-`?t-r:t*r}function Tt(e,t){let n=Array.isArray(t)?t:typeof t==`number`?[t,t,t]:null,r=typeof t==`number`?t:Array.isArray(t)?t[0]:0;return e.map(e=>{let[i,a,o]=e,s;return s=Array.isArray(a)?[q(a[0],n?.[0]??0),q(a[1],n?.[1]??0),q(a[2],n?.[2]??0)]:wt(a)?n&&Array.isArray(t)?[q(a,n[0]),q(a,n[1]),q(a,n[2])]:q(a,r):a,o===void 0?[i,s]:[i,s,o]})}function Et(e){return Array.isArray(e)?[Number(e[0])||0,Number(e[1])||0,Number(e[2])||0]:typeof e==`number`?[e,e,e]:null}function Dt(e){let t=Math.cbrt(.4122214708*e.r+.5363325363*e.g+.0514459929*e.b),n=Math.cbrt(.2119034982*e.r+.6806995451*e.g+.1073969566*e.b),r=Math.cbrt(.0883024619*e.r+.2817188376*e.g+.6299787005*e.b);return[.2104542553*t+.793617785*n-.0040720468*r,1.9779984951*t-2.428592205*n+.4505937099*r,.0259040371*t+.7827717662*n-.808675766*r]}function Ot(e,t,n,r){let i=(e+.3963377774*t+.2158037573*n)**3,a=(e-.1055613458*t-.0638541728*n)**3,o=(e-.0894841775*t-1.291485548*n)**3;return r.setRGB(Math.max(0,4.0767416621*i-3.3077115913*a+.2309699292*o),Math.max(0,-1.2684380046*i+2.6097574011*a-.3413193965*o),Math.max(0,-.0041960863*i-.7034186147*a+1.707614701*o),me)}function kt(e,t,n,r=`oklch`,i=new k){if(r===`rgb`)return i.copy(e).lerp(t,n);if(r===`oklch`){let r=Dt(e),a=Dt(t),o=Math.hypot(r[1],r[2]),s=Math.hypot(a[1],a[2]),c=Math.atan2(r[2],r[1]),l=Math.atan2(a[2],a[1]);o<1e-4&&(c=l),s<1e-4&&(l=c);let u=l-c;u>Math.PI?u-=2*Math.PI:u<-Math.PI&&(u+=2*Math.PI);let d=r[0]+(a[0]-r[0])*n,f=Math.max(0,o+(s-o)*n),p=c+u*n;return Ot(d,f*Math.cos(p),f*Math.sin(p),i)}if(r===`hsl`){let r={h:0,s:0,l:0},a={h:0,s:0,l:0};e.getHSL(r),t.getHSL(a),r.s<1e-4&&(r.h=a.h),a.s<1e-4&&(a.h=r.h);let o=a.h-r.h;return o>.5?--o:o<-.5&&(o+=1),i.setHSL(((r.h+o*n)%1+1)%1,r.s+(a.s-r.s)*n,r.l+(a.l-r.l)*n)}let a=Dt(e),o=Dt(t);return Ot(a[0]+(o[0]-a[0])*n,a[1]+(o[1]-a[1])*n,a[2]+(o[2]-a[2])*n,i)}function At(e,t,n,r){if(typeof e==`boolean`||typeof t==`boolean`)return n>=1?t:e;if(typeof e==`number`&&typeof t==`number`)return e+(t-e)*n;if(typeof e==`string`||typeof t==`string`)return kt(St(String(e)),St(String(t)),n,r);let i=Et(e),a=Et(t);return[i[0]+(a[0]-i[0])*n,i[1]+(a[1]-i[1])*n,i[2]+(a[2]-i[2])*n]}function jt(e){return typeof e==`string`?St(e).clone():Array.isArray(e)?[e[0],e[1],e[2]]:e}function Mt(e,t,n,r){let i=e;if(!i.length)return;if(t<=i[0][0])return jt(i[0][1]);let a=i[i.length-1];if(t>=a[0])return jt(a[1]);for(let e=0;e<i.length-1;e++){let[a,o]=i[e],[s,c,l]=i[e+1];if(t>=a&&t<s)return typeof o==`boolean`||typeof c==`boolean`?o:At(o,c,s>a?I(l??n??`linear`,(t-a)/(s-a)):1,r)}return jt(a[1])}function Nt(e){let t=e.indexOf(`.`);return t<0?{id:e,path:``}:{id:e.slice(0,t),path:e.slice(t+1)}}function Pt(e,t,n=1){let r=Array.from({length:e},(e,t)=>t);switch(t){case`end`:return r.map(t=>e-1-t);case`center`:{let t=(e-1)/2;return r.map(e=>Math.abs(e-t))}case`edges`:{let t=(e-1)/2;return r.map(e=>t-Math.abs(e-t))}case`random`:{let t=[...r],i=n*2654435761>>>0||1;for(let n=e-1;n>0;n--){i=i*1664525+1013904223>>>0;let e=i%(n+1);[t[n],t[e]]=[t[e],t[n]]}let a=Array(e);return t.forEach((e,t)=>a[e]=t),a}default:return r}}var Ft=(e,t)=>{let n=Ue(e.colors,[`#ff006e`,`#8338ec`,`#3a86ff`]).map(e=>R(e)),r=L(e.speed,.5),i=V(e.emissive,!1),a=pt(t.object),o=new k;return{update(e){let s=(e*r%n.length+n.length)%n.length,c=Math.floor(s),l=s-c,u=l*l*(3-2*l);kt(n[c],n[(c+1)%n.length],u,`oklch`,o);let d=t.object;d.isLight&&d.color.copy(o);for(let e of a){let t=e;t.color?.copy(o),i&&t.emissive&&t.emissive.copy(o)}}}},It=(e,t)=>{let[n,r,i]=z(e.area,[1,1,1]),a=L(e.speed,.3),o=L(e.seed,1)+t.object.id*.137,s=Array.from({length:6},(e,t)=>H(o*13.1+t)*Math.PI*2),c=Array.from({length:6},(e,t)=>.6+H(o*7.7+t*3.3)*.8),l=(e,t)=>.65*Math.sin(t*c[e]+s[e])+.35*Math.sin(t*c[e+3]*2.3+s[e+3]);return{update(e){let o=e*a;t.object.position.x+=n/2*l(0,o),t.object.position.y+=r/2*l(1,o*.9),t.object.position.z+=i/2*l(2,o*1.1)}}};function Lt(e,t){let n=Math.floor(e),r=e-n,i=H(n+t*31.7);return i+(H(n+1+t*31.7)-i)*r*r*(3-2*r)}var Rt=(e,t)=>{let n=Ge(L(e.amount,.3),0,1),r=L(e.speed,8),i=t.object.id,a=pt(t.object);for(let e of a)e.userData.baseEmissiveIntensity===void 0&&(e.userData.baseEmissiveIntensity=e.emissiveIntensity??1);return{update(e){let o=.6*Lt(e*r,i)+.4*Lt(e*r*2.7,i+3),s=1-n*o,c=t.object;c.isLight&&(c.intensity*=s);for(let e of a)e.emissiveIntensity!==void 0&&(e.emissiveIntensity=e.userData.baseEmissiveIntensity*s)}}},zt=(e,t)=>{let n=L(e.amplitude,.15),r=L(e.speed,.5),i=L(e.phase,0);return{update:e=>void(t.object.position.y+=n*Math.sin(K*(r*e+i)))}},Bt=(e,t)=>{let n=L(e.strength,.5),r=L(e.smoothing,.9),i=qe(e.mode,`rotate`),a=0,o=0;return{update(e,s){let c=B(r,s);a+=(t.pointer.x-a)*c,o+=(t.pointer.y-o)*c,(i===`move`||i===`both`)&&(t.object.position.x+=a*n,t.object.position.y+=o*n),(i===`rotate`||i===`both`)&&(t.object.rotation.y+=a*n*.8,t.object.rotation.x+=-o*n*.8)}}},Vt=(e,t)=>{let n=L(e.height,.2),r=L(e.tilt,10)*U,i=0,a=0,o=0;return{update(e,s){let c=B(.82,s);i+=(+!!t.hovered()-i)*c,a+=(t.pointer.x-a)*c,o+=(t.pointer.y-o)*c,t.object.position.y+=n*i,t.object.rotation.x+=-o*r*i,t.object.rotation.y+=a*r*i}}},Ht=(e,t)=>{let n=L(e.scale,1.15),r=L(e.smoothing,.8),i=1;return{update(e,a){i+=((t.hovered()?n:1)-i)*B(r,a),t.object.scale.multiplyScalar(i)}}},Ut=(e,t)=>{let n=L(e.smoothing,.85),r=V(e.lockY,!1),i=Array.isArray(e.point)&&e.point.length===3?new h(...e.point):null,a=typeof e.target==`string`?e.target:`camera`,o=new T,s=new T,c=new h,l=new h,u=new P,d=new T,f=!0;return{update(e,m){let g=i??(a===`camera`?t.camera:t.find?.(a));g&&(g instanceof h?l.copy(g):g.getWorldPosition(l),t.object.getWorldPosition(c),r&&(l.y=c.y),l.distanceToSquared(c)<1e-10||(u.lookAt(l,c,p.DEFAULT_UP),o.setFromRotationMatrix(u),t.object.parent&&o.premultiply(t.object.parent.getWorldQuaternion(d).invert()),s.slerp(o,f?1:B(n,m)),f=!1,t.object.quaternion.copy(s)))}}},Wt=(e,t)=>{let n=L(e.maxAngle,35)*U,r=L(e.smoothing,.85),i=0,a=0;return{update(e,o){let s=B(r,o);i+=(t.pointer.x*n-i)*s,a+=(-t.pointer.y*n-a)*s,t.object.rotation.y+=i,t.object.rotation.x+=a}}},Gt=(e,t)=>{let n=Math.max(L(e.radius,.25),.001),r=L(e.strength,.4),i=new h,a=new h,o=new h,s=new h,c=new h;return{update(e,l){if(a.set(0,0,0),t.pointer.inside){t.object.getWorldPosition(o),s.copy(o).project(t.camera);let e=(t.pointer.x-s.x)/2,i=(t.pointer.y-s.y)/2,l=Math.hypot(e,i);if(l<n){c.set(t.pointer.x,t.pointer.y,s.z).unproject(t.camera),a.copy(c).sub(o);let e=a.length();e>1e-6&&a.multiplyScalar(Math.min(e,r)*(1-l/n)/e)}}i.lerp(a,B(.85,l)),t.object.position.add(i)}}},Kt=(e,t)=>{let[n,r,i]=z(e.amplitude,[.1,.1,.05]),[a,o,s]=z(e.rotation,[3,3,2]),c=L(e.speed,.3),l=L(e.seed,1)*13.37+t.rng.next()*100,u=(e,t)=>Je(e*c+l,t*5.17)*.8+Je(e*c*2.3+l,t*5.17+2.9)*.2;return{update(e){t.object.position.x+=u(e,0)*n,t.object.position.y+=u(e,1)*r,t.object.position.z+=u(e,2)*i,t.object.rotation.x+=u(e,3)*a*U,t.object.rotation.y+=u(e,4)*o*U,t.object.rotation.z+=u(e,5)*s*U}}},qt=(e,t)=>{let n=new h(...z(e.center,[0,0,0])),r=L(e.radius,2),i=L(e.speed,30)*U,a=L(e.phase,0)*U,o=G(e.axis),s=V(e.faceDirection,!1),c=Math.abs(o.y)<.99?new h(0,1,0):new h(1,0,0),l=new h().crossVectors(c,o).normalize(),u=new h().crossVectors(o,l).normalize(),d=new h;return{update(e){let c=a+i*e,f=t.object.position.dot(o)-n.dot(o);if(d.copy(n).addScaledVector(l,Math.cos(c)*r).addScaledVector(u,Math.sin(c)*r).addScaledVector(o,f),t.object.position.copy(d),s){let e=l.clone().multiplyScalar(-Math.sin(c)).addScaledVector(u,Math.cos(c)).multiplyScalar(Math.sign(i)||1),n=new T().setFromUnitVectors(new h(0,0,1),e.normalize());t.object.quaternion.premultiply(n)}}}},Jt=(e,t)=>{let n=L(e.depth,.5),r=L(e.pointer,.3),i=L(e.scroll,0),a=L(e.smoothing,.9),o=0,s=0;return{update(e,c){let l=B(a,c),u=t.pointer.inside?t.pointer.x:0,d=t.pointer.inside?t.pointer.y:0;o+=(u-o)*l,s+=(d-s)*l,t.object.position.x+=o*r*n,t.object.position.y+=s*r*n*.6+(t.scroll()-.5)*i*n}}},Yt=(e,t)=>{let n=(Array.isArray(e.points)?e.points:[]).filter(e=>Array.isArray(e)&&e.length>=3).map(e=>new h(e[0],e[1],e[2])),r=V(e.loop,!0),i=V(e.faceDirection,!0),a=Math.max(L(e.duration,5),.001);if(n.length<2)return{update(){}};let o=new te(n,r,`catmullrom`,.5),s=new h,c=new h(0,0,1);return{update(e){let n=r?e/a%1:Math.min(e/a,1);o.getPointAt(n,t.object.position),i&&(o.getTangentAt(Math.min(n,.9999),s).normalize(),t.object.quaternion.setFromUnitVectors(c,s))}}},Xt=(e,t)=>{let n=L(e.amount,.08),r=L(e.speed,1);return{update:e=>void t.object.scale.multiplyScalar(1+n*Math.sin(K*r*e))}},Zt=(e,t)=>{let n=G(e.axis),r=L(e.speed,45)*U;return{update:e=>void t.object.rotateOnAxis(n,r*e)}},Qt=(e,t)=>{let[n,r,i]=z(e.offset,[0,2,0]);return{update(){let e=t.scroll();t.object.position.x+=n*e,t.object.position.y+=r*e,t.object.position.z+=i*e}}},$t=(e,t)=>{let n=G(e.axis),r=L(e.degrees,360)*U;return{update:()=>void t.object.rotateOnAxis(n,r*t.scroll())}},en=(e,t)=>{let n=G(e.axis),r=Math.max(L(e.duration,.8),.001),i=e.trigger===`hover`,a=-1,o=!1;return{update(e){let s=a>=0&&e-a<r;if(i){let n=t.hovered();n&&!o&&!s&&(a=e),o=n}else t.clicked()&&!s&&(a=e);if(a<0)return;let c=(e-a)/r;c>=1||t.object.rotateOnAxis(n,K*I(`inOutCubic`,c))}}};function tn(e,t,n,r,i,a,o=1){let s=Math.min(Math.max(r,0),2);for(;s>1e-9;){let r=Math.min(.004166666666666667,s),c=(-i*(e-n)-a*t)/o;t+=c*r,e+=t*r,s-=r}return[e,t]}var nn={rotate:Zt,float:zt,bob:vt,pulse:Xt,wobble:(e,t)=>{let n=L(e.amount,.08),r=L(e.speed,2);return{update(e){let i=Math.sin(K*r*e*.5),a=Math.sin(K*r*e*.5+Math.PI/2);t.object.scale.x*=1+n*i,t.object.scale.y*=1-n*i,t.object.scale.z*=1+n*a*.5}}},sway:(e,t)=>{let n=G(e.axis,[0,0,1]),r=L(e.angle,8)*U,i=L(e.speed,.5);return{update:e=>void t.object.rotateOnAxis(n,r*Math.sin(K*i*e))}},orbit:qt,path:Yt,followPointer:Bt,lookAtPointer:Wt,hoverScale:Ht,hoverLift:Vt,clickBounce:yt,spinOnClick:en,scrollRotate:$t,scrollMove:Qt,drift:It,blink:gt,colorCycle:Ft,flicker:Rt,billboard:ht,appear:mt,magnet:Gt,spring:(e,t)=>{let n=L(e.strength,.4),r=Math.max(L(e.stiffness,120),1),i=Math.max(L(e.damping,12),0),a=Math.max(L(e.mass,1),.01),o=qe(e.mode,`move`),s=L(e.angle,15)*U,c={x:0,vx:0,y:0,vy:0};return{update(e,l){let u=t.pointer.inside?t.pointer.x:0,d=t.pointer.inside?t.pointer.y:0;[c.x,c.vx]=tn(c.x,c.vx,u,l,r,i,a),[c.y,c.vy]=tn(c.y,c.vy,d,l,r,i,a),(o===`move`||o===`both`)&&(t.object.position.x+=c.x*n,t.object.position.y+=c.y*n),(o===`rotate`||o===`both`)&&(t.object.rotation.y+=c.x*s,t.object.rotation.x+=-c.y*s)}}},parallax:Jt,tilt:(e,t)=>{let n=L(e.maxAngle,12)*U,r=L(e.scale,1.04),i=L(e.lift,.1),a=L(e.smoothing,.86),o=V(e.hoverOnly,!0),s=V(e.reverse,!1)?-1:1,c=0,l=0,u=0;return{update(e,d){let f=o?t.hovered():t.pointer.inside,p=B(a,d);u+=(+!!f-u)*p,c+=((f?t.pointer.x:0)-c)*p,l+=((f?t.pointer.y:0)-l)*p,t.object.rotation.y+=c*n*s,t.object.rotation.x+=-l*n*s,t.object.position.z+=i*u,t.object.scale.multiplyScalar(1+(r-1)*u)}}},breathe:_t,noise:Kt,lookAt:Ut},rn=/* @__PURE__ */ new Set([`appear`]),an=1e6,on=/* @__PURE__ */ new Set([`billboard`,`lookAt`]),sn=/* @__PURE__ */ new Set([`lookAt`,`magnet`,`spring`]),cn=1/30;function ln(e,t,n=cn){let r=[];for(let i=Math.floor(e/n+1e-6)+1;i*n<t-1e-6;i++)r.push(i*n);return r}function un(e,t,n,r={}){let i=t(e,n),a=e.when??`always`,o=L(e.delay,0),s=0,c=-1;return{def:e,late:on.has(e.type),stateful:sn.has(e.type),step(t,l){if(r.settled?.()&&rn.has(e.type)&&(a===`always`||a===`visible`)){i.update(an,l);return}let u;switch(a){case`hover`:n.hovered()&&(s+=l),u=s-o;break;case`click`:if(c<0&&n.clicked()&&(c=t),c<0)return;u=t-c-o;break;case`scroll`:u=n.scroll()*10-o;break;default:u=t-o}i.update(Math.max(0,u),l)},dispose(){i.dispose?.()}}}var dn={count:300,area:[10,6,6],size:.08,colors:[`#ffffff`],speed:.3,direction:[0,1,0],spread:.3,lifetime:0,opacity:1,blending:`additive`,shape:`soft`,twinkle:0,wander:.2,spin:0,gravity:[0,0,0],endColor:null,endSize:1,stretch:1,swirl:0},fn={stars:{count:900,area:[40,20,20],size:.09,colors:[`#ffffff`,`#cfe2ff`,`#ffe8c2`],speed:0,wander:0,twinkle:.8,shape:`point`,blending:`additive`},snow:{count:1200,area:[20,12,10],size:.08,colors:[`#ffffff`,`#eef6ff`],speed:.6,direction:[0,-1,0],spread:.3,wander:.35,shape:`soft`,blending:`normal`,opacity:.95},rain:{count:2200,area:[20,12,10],size:.05,colors:[`#c9ddff`,`#a9c4f0`],speed:9,direction:[-.06,-1,0],spread:.04,wander:0,shape:`streak`,stretch:9,blending:`normal`,opacity:.5},fireflies:{count:90,area:[10,4,6],size:.16,colors:[`#fff3a0`,`#d4ff7a`,`#ffe066`],speed:.08,spread:1,wander:.7,twinkle:.9,shape:`point`,blending:`additive`},confetti:{count:320,area:[12,8,6],size:.16,colors:[`#ff006e`,`#ffbe0b`,`#3a86ff`,`#8338ec`,`#06d6a0`,`#fb5607`],speed:1.3,direction:[0,-1,0],spread:.5,wander:.45,spin:.8,shape:`square`,blending:`normal`},sparks:{count:320,area:[.6,.2,.6],size:.035,colors:[`#fff6d0`,`#ffd27a`,`#ff9a3d`],speed:5,direction:[0,1,0],spread:.45,lifetime:1.2,wander:0,gravity:[0,-6,0],endColor:`#ff4d00`,endSize:.5,shape:`streak`,stretch:4,blending:`additive`},dust:{count:450,area:[12,6,8],size:.035,colors:[`#ffffff`,`#fff4dc`],speed:.04,spread:1,wander:.45,twinkle:.35,opacity:.6,shape:`soft`,blending:`additive`},bubbles:{count:160,area:[8,6,4],size:.22,colors:[`#d6f3ff`,`#a9e4ff`],speed:.8,direction:[0,1,0],spread:.25,wander:.18,shape:`bubble`,blending:`normal`,opacity:.85},embers:{count:220,area:[6,.6,4],size:.07,colors:[`#ffb347`,`#ff7b00`,`#ffd27a`],speed:1,direction:[0,1,0],spread:.45,lifetime:3.2,wander:.45,twinkle:.4,endColor:`#c81d00`,endSize:.4,shape:`point`,blending:`additive`},hearts:{count:60,area:[8,4,4],size:.32,colors:[`#ff4d6d`,`#ff8fa3`,`#ff006e`],speed:.6,direction:[0,1,0],spread:.3,lifetime:5,wander:.3,endSize:1.3,shape:`heart`,blending:`normal`},magic:{count:260,area:[6,4,3],size:.13,colors:[`#fff3b0`,`#e9d5ff`,`#a5f3fc`,`#fbcfe8`],speed:.25,direction:[0,1,0],spread:1,lifetime:3.5,wander:.35,twinkle:.9,spin:.15,endSize:.2,shape:`star`,blending:`additive`},smoke:{count:90,area:[1.2,.3,1.2],size:1.1,colors:[`#d9dde3`,`#c3c8d0`,`#eef0f3`],speed:.7,direction:[.12,1,0],spread:.25,lifetime:6,wander:.35,spin:.05,endSize:3.2,endColor:`#f4f5f7`,shape:`smoke`,blending:`normal`,opacity:.4},fire:{count:150,area:[.6,.1,.6],size:.42,colors:[`#ffd27a`,`#ffb347`,`#ff9a3d`],speed:1.9,direction:[0,1,0],spread:.1,lifetime:1,wander:.1,gravity:[0,.6,0],endColor:`#c81d00`,endSize:.12,shape:`smoke`,spin:.2,blending:`additive`,opacity:.5},petals:{count:140,area:[14,8,6],size:.27,colors:[`#ffc2d4`,`#ffb3c6`,`#ffe5ec`,`#ff8fab`],speed:.55,direction:[.35,-1,.1],spread:.4,wander:.6,spin:.35,shape:`petal`,blending:`normal`},leaves:{count:110,area:[14,8,6],size:.26,colors:[`#e76f51`,`#f4a261`,`#e9c46a`,`#bc4b2a`,`#8a9a2b`],speed:.7,direction:[.45,-1,.1],spread:.45,wander:.7,spin:.3,shape:`leaf`,blending:`normal`},galaxyDust:{count:1800,area:[16,2,16],size:.05,colors:[`#a5b4fc`,`#f0abfc`,`#93c5fd`,`#ffffff`],speed:0,wander:.15,twinkle:.5,swirl:.12,opacity:.8,shape:`soft`,blending:`additive`},bokeh:{count:26,area:[16,9,6],size:1.1,colors:[`#ffd6a5`,`#fdffb6`,`#caffbf`,`#9bf6ff`,`#bdb2ff`,`#ffc6ff`],speed:.05,spread:1,wander:.5,twinkle:.3,opacity:.32,shape:`ring`,blending:`additive`}},pn={point:0,square:1,circle:2,star:3,spark:4,heart:5,bubble:6,soft:7,streak:8,smoke:9,petal:10,leaf:11,ring:12},mn=`
|
|
2
2
|
uniform float uTime; uniform vec3 uArea; uniform vec3 uVel; uniform float uSpread; uniform float uLife;
|
|
3
3
|
uniform float uWander; uniform float uSize; uniform float uViewport; uniform float uTwinkle; uniform float uSpin; uniform float uOpacity;
|
|
4
4
|
uniform vec3 uGravity; uniform vec3 uEndColor; uniform float uUseEnd; uniform float uEndSize; uniform float uStretch; uniform float uSwirl;
|