motionwind-vanilla 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/dist/adapter.cjs +50 -0
- package/dist/adapter.cjs.map +1 -0
- package/dist/adapter.d.cts +27 -0
- package/dist/adapter.d.ts +27 -0
- package/dist/adapter.js +9 -0
- package/dist/adapter.js.map +1 -0
- package/dist/cdn/motionwind.global.js +2 -0
- package/dist/cdn/motionwind.global.js.map +1 -0
- package/dist/chunk-PXUTG4VI.js +25 -0
- package/dist/chunk-PXUTG4VI.js.map +1 -0
- package/dist/index.cjs +317 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +36 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +279 -0
- package/dist/index.js.map +1 -0
- package/llms.txt +38 -0
- package/package.json +78 -0
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# motionwind-vanilla v2
|
|
2
|
+
|
|
3
|
+
Use Motionwind classes in plain browser HTML and JavaScript through Motion's DOM
|
|
4
|
+
runtime.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
npm install motionwind-vanilla@2 motion motionwind-core@2
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
```js
|
|
11
|
+
import { motionwind } from "motionwind-vanilla";
|
|
12
|
+
import config from "./motionwind.config";
|
|
13
|
+
|
|
14
|
+
const stop = motionwind({
|
|
15
|
+
config,
|
|
16
|
+
observe: true,
|
|
17
|
+
respectReducedMotion: true,
|
|
18
|
+
});
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
The cleanup function removes listeners and observers. Options also include a
|
|
22
|
+
custom `root` and `selector`.
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<script src="https://unpkg.com/motionwind-vanilla@2"></script>
|
|
26
|
+
<button
|
|
27
|
+
class="animate-hover:scale-110 animate-tap:scale-90 animate-focus:scale-105"
|
|
28
|
+
>
|
|
29
|
+
Save
|
|
30
|
+
</button>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
V2 supports initial/enter, hover, tap, focus, in-view, scroll-linked values,
|
|
34
|
+
SVG paths, and reduced motion. Drag, layout projection, exit orchestration, and
|
|
35
|
+
variant propagation require a component runtime and produce adapter warnings.
|
|
36
|
+
|
|
37
|
+
Compatibility: https://motionwind.xyz/docs/compatibility
|
|
38
|
+
|
|
39
|
+
MIT
|
package/dist/adapter.cjs
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/adapter.ts
|
|
21
|
+
var adapter_exports = {};
|
|
22
|
+
__export(adapter_exports, {
|
|
23
|
+
VANILLA_CAPABILITIES: () => VANILLA_CAPABILITIES,
|
|
24
|
+
vanillaAdapter: () => vanillaAdapter
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(adapter_exports);
|
|
27
|
+
var import_motionwind_core = require("motionwind-core");
|
|
28
|
+
var VANILLA_CAPABILITIES = {
|
|
29
|
+
gestures: true,
|
|
30
|
+
scroll: true,
|
|
31
|
+
layout: false,
|
|
32
|
+
drag: false,
|
|
33
|
+
variants: true,
|
|
34
|
+
svg: true,
|
|
35
|
+
"reduced-motion": true
|
|
36
|
+
};
|
|
37
|
+
var vanillaAdapter = (0, import_motionwind_core.defineMotionwindAdapter)({
|
|
38
|
+
name: "motionwind-vanilla",
|
|
39
|
+
version: "2.0.0",
|
|
40
|
+
capabilities: VANILLA_CAPABILITIES,
|
|
41
|
+
compile(parsed) {
|
|
42
|
+
return parsed;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
47
|
+
VANILLA_CAPABILITIES,
|
|
48
|
+
vanillaAdapter
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=adapter.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/adapter.ts"],"sourcesContent":["import { defineMotionwindAdapter } from \"motionwind-core\";\n\nexport const VANILLA_CAPABILITIES = {\n gestures: true,\n scroll: true,\n layout: false,\n drag: false,\n variants: true,\n svg: true,\n \"reduced-motion\": true,\n} as const;\n\nexport const vanillaAdapter = defineMotionwindAdapter({\n name: \"motionwind-vanilla\",\n version: \"2.0.0\",\n capabilities: VANILLA_CAPABILITIES,\n compile(parsed) {\n return parsed;\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAwC;AAEjC,IAAM,uBAAuB;AAAA,EAClC,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,UAAU;AAAA,EACV,KAAK;AAAA,EACL,kBAAkB;AACpB;AAEO,IAAM,qBAAiB,gDAAwB;AAAA,EACpD,MAAM;AAAA,EACN,SAAS;AAAA,EACT,cAAc;AAAA,EACd,QAAQ,QAAQ;AACd,WAAO;AAAA,EACT;AACF,CAAC;","names":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as motionwind_core from 'motionwind-core';
|
|
2
|
+
|
|
3
|
+
declare const VANILLA_CAPABILITIES: {
|
|
4
|
+
readonly gestures: true;
|
|
5
|
+
readonly scroll: true;
|
|
6
|
+
readonly layout: false;
|
|
7
|
+
readonly drag: false;
|
|
8
|
+
readonly variants: true;
|
|
9
|
+
readonly svg: true;
|
|
10
|
+
readonly "reduced-motion": true;
|
|
11
|
+
};
|
|
12
|
+
declare const vanillaAdapter: {
|
|
13
|
+
readonly name: "motionwind-vanilla";
|
|
14
|
+
readonly version: "2.0.0";
|
|
15
|
+
readonly capabilities: {
|
|
16
|
+
readonly gestures: true;
|
|
17
|
+
readonly scroll: true;
|
|
18
|
+
readonly layout: false;
|
|
19
|
+
readonly drag: false;
|
|
20
|
+
readonly variants: true;
|
|
21
|
+
readonly svg: true;
|
|
22
|
+
readonly "reduced-motion": true;
|
|
23
|
+
};
|
|
24
|
+
readonly compile: (parsed: motionwind_core.ParsedResult) => motionwind_core.ParsedResult;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { VANILLA_CAPABILITIES, vanillaAdapter };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as motionwind_core from 'motionwind-core';
|
|
2
|
+
|
|
3
|
+
declare const VANILLA_CAPABILITIES: {
|
|
4
|
+
readonly gestures: true;
|
|
5
|
+
readonly scroll: true;
|
|
6
|
+
readonly layout: false;
|
|
7
|
+
readonly drag: false;
|
|
8
|
+
readonly variants: true;
|
|
9
|
+
readonly svg: true;
|
|
10
|
+
readonly "reduced-motion": true;
|
|
11
|
+
};
|
|
12
|
+
declare const vanillaAdapter: {
|
|
13
|
+
readonly name: "motionwind-vanilla";
|
|
14
|
+
readonly version: "2.0.0";
|
|
15
|
+
readonly capabilities: {
|
|
16
|
+
readonly gestures: true;
|
|
17
|
+
readonly scroll: true;
|
|
18
|
+
readonly layout: false;
|
|
19
|
+
readonly drag: false;
|
|
20
|
+
readonly variants: true;
|
|
21
|
+
readonly svg: true;
|
|
22
|
+
readonly "reduced-motion": true;
|
|
23
|
+
};
|
|
24
|
+
readonly compile: (parsed: motionwind_core.ParsedResult) => motionwind_core.ParsedResult;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { VANILLA_CAPABILITIES, vanillaAdapter };
|
package/dist/adapter.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var motionwind=(()=>{var Sr=Object.defineProperty;var qo=Object.getOwnPropertyDescriptor;var Zo=Object.getOwnPropertyNames;var Jo=Object.prototype.hasOwnProperty;var Qo=(e,t)=>{for(var r in t)Sr(e,r,{get:t[r],enumerable:!0})},es=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Zo(t))!Jo.call(e,o)&&o!==r&&Sr(e,o,{get:()=>t[o],enumerable:!(n=qo(t,o))||n.enumerable});return e};var ts=e=>es(Sr({},"__esModule",{value:!0}),e);var Al={};Qo(Al,{default:()=>Sl,motionwind:()=>br});function Ar(e,t){e.indexOf(t)===-1&&e.push(t)}function ne(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var R=(e,t,r)=>r>t?t:r<e?e:r;var X=()=>{},K=()=>{};var G={};var nt=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var Ae=e=>typeof e=="object"&&e!==null;var it=e=>/^0[^.\s]+$/u.test(e);function ot(e){let t;return()=>(t===void 0&&(t=e()),t)}var j=e=>e;var Ee=(...e)=>e.reduce((t,r)=>n=>r(t(n)));var ie=(e,t,r)=>{let n=t-e;return n?(r-e)/n:1};var Be=class{constructor(){this.subscriptions=[]}add(t){return Ar(this.subscriptions,t),()=>this.remove(t)}remove(t){ne(this.subscriptions,t)}notify(t,r,n){let o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i<o;i++){let s=this.subscriptions[i];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var F=e=>e*1e3,B=e=>e/1e3;var Ne=(e,t)=>t?e*(1e3/t):0;var jn=(e,t,r)=>{let n=t-e;return((r-e)%n+n)%n+e};var _n=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,rs=1e-7,ns=12;function is(e,t,r,n,o){let i,s,l=0;do s=t+(r-t)/2,i=_n(s,n,o)-e,i>0?r=s:t=s;while(Math.abs(i)>rs&&++l<ns);return s}function me(e,t,r,n){if(e===t&&r===n)return j;let o=i=>is(i,0,1,e,r);return i=>i===0||i===1?i:_n(o(i),t,n)}var Rt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var ke=e=>t=>1-e(1-t);var Wt=me(.33,1.53,.69,.99),ze=ke(Wt),st=Rt(ze);var at=e=>e>=1?1:(e*=2)<1?.5*ze(e):.5*(2-Math.pow(2,-10*(e-1)));var lt=e=>1-Math.sin(Math.acos(e)),Er=ke(lt),ct=Rt(lt);var Nr=me(.42,0,1,1),kr=me(0,0,.58,1),ut=me(.42,0,.58,1);var ft=e=>Array.isArray(e)&&typeof e[0]!="number";function mt(e,t){return ft(e)?e[jn(0,e.length,t)]:e}var pt=e=>Array.isArray(e)&&typeof e[0]=="number";var Gn={linear:j,easeIn:Nr,easeInOut:ut,easeOut:kr,circIn:lt,circInOut:ct,circOut:Er,backIn:ze,backInOut:st,backOut:Wt,anticipate:at},os=e=>typeof e=="string",$t=e=>{if(pt(e)){K(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,n,o]=e;return me(t,r,n,o)}else if(os(e))return K(Gn[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Gn[e];return e};var dt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Un(e){let t=new Set,r=new Set,n=!1,o=!1,i=new Set,s={delta:0,timestamp:0,isProcessing:!1};function l(a){i.has(a)&&(r.add(a),e()),a(s)}let u={schedule:(a,f=!1,c=!1)=>{let p=c&&n?t:r;return f&&i.add(a),p.add(a),a},cancel:a=>{r.delete(a),i.delete(a)},process:a=>{if(s=a,n){o=!0;return}n=!0;let f=t;t=r,r=f,t.forEach(l),t.clear(),n=!1,o&&(o=!1,u.process(a))}};return u}var ss=40;function Yn(e,t){let r=!1,n=!0,o={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,s=dt.reduce((A,E)=>(A[E]=Un(i),A),{}),{setup:l,read:u,resolveKeyframes:a,preUpdate:f,update:c,preRender:m,render:p,postRender:h}=s,d=()=>{let A=G.useManualTiming,E=A?o.timestamp:performance.now();r=!1,A||(o.delta=n?1e3/60:Math.max(Math.min(E-o.timestamp,ss),1)),o.timestamp=E,o.isProcessing=!0,l.process(o),u.process(o),a.process(o),f.process(o),c.process(o),m.process(o),p.process(o),h.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(d))},v=()=>{r=!0,n=!0,o.isProcessing||e(d)};return{schedule:dt.reduce((A,E)=>{let k=s[E];return A[E]=(I,y=!1,x=!1)=>(r||v(),k.schedule(I,y,x)),A},{}),cancel:A=>{for(let E=0;E<dt.length;E++)s[dt[E]].cancel(A)},state:o,steps:s}}var{schedule:C,cancel:pe,state:U,steps:as}=Yn(typeof requestAnimationFrame<"u"?requestAnimationFrame:j,!0);var Lt;function ls(){Lt=void 0}var W={now:()=>(Lt===void 0&&W.set(U.isProcessing||G.useManualTiming?U.timestamp:performance.now()),Lt),set:e=>{Lt=e,queueMicrotask(ls)}};var J=e=>Math.round(e*1e5)/1e5;var cs=e=>t=>typeof t=="string"&&t.startsWith(e);var us=cs("var(--"),Ke=e=>us(e)?fs.test(e.split("/*")[0].trim()):!1,fs=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Vr(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}var Q={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},oe={...Q,transform:e=>R(0,1,e)},ht={...Q,default:1};var je=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Hn(e){return e==null}var Xn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var _e=(e,t)=>r=>!!(typeof r=="string"&&Xn.test(r)&&r.startsWith(e)||t&&!Hn(r)&&Object.prototype.hasOwnProperty.call(r,t)),Ft=(e,t,r)=>n=>{if(typeof n!="string")return n;let[o,i,s,l]=n.match(je);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}};var ms=e=>R(0,255,e),Or={...Q,transform:e=>Math.round(ms(e))},ee={test:_e("rgb","red"),parse:Ft("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Or.transform(e)+", "+Or.transform(t)+", "+Or.transform(r)+", "+J(oe.transform(n))+")"};function ps(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}var gt={test:_e("#"),parse:ps,transform:ee.transform};var yt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),q=yt("deg"),de=yt("%"),g=yt("px"),qn=yt("vh"),Zn=yt("vw"),Mr={...de,parse:e=>de.parse(e)/100,transform:e=>de.transform(e*100)};var he={test:_e("hsl","hue"),parse:Ft("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+de.transform(J(t))+", "+de.transform(J(r))+", "+J(oe.transform(n))+")"};var D={test:e=>ee.test(e)||gt.test(e)||he.test(e),parse:e=>ee.test(e)?ee.parse(e):he.test(e)?he.parse(e):gt.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ee.transform(e):he.transform(e),getAnimatableNone:e=>{let t=D.parse(e);return t.alpha=0,D.transform(t)}};var Jn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var ei=new RegExp(je.source),ti=new RegExp(Jn.source,"i");function ds(e){return isNaN(e)&&typeof e=="string"&&(ei.test(e)||ti.test(e))}var ri="number",ni="color",hs="var",gs="var(",Qn="${}",ys=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ii(e){let t=e.toString();return ei.test(t)||ti.test(t)}function Ge(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[],i=0,l=t.replace(ys,u=>(D.test(u)?(n.color.push(i),o.push(ni),r.push(D.parse(u))):u.startsWith(gs)?(n.var.push(i),o.push(hs),r.push(u)):(n.number.push(i),o.push(ri),r.push(parseFloat(u))),++i,Qn)).split(Qn);return{values:r,split:l,indexes:n,types:o}}function xs(e){return Ge(e).values}function oi({split:e,types:t}){let r=e.length;return n=>{let o="";for(let i=0;i<r;i++)if(o+=e[i],n[i]!==void 0){let s=t[i];s===ri?o+=J(n[i]):s===ni?o+=D.transform(n[i]):o+=n[i]}return o}}function vs(e){return oi(Ge(e))}var bs=e=>typeof e=="number"?0:D.test(e)?D.getAnimatableNone(e):e,ws=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:bs(e);function Ts(e){let t=Ge(e);return oi(t)(t.values.map((n,o)=>ws(n,t.split[o])))}var _={test:ds,parse:xs,createTransformer:vs,getAnimatableNone:Ts};function Cr(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function si({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,s=0;if(!t)o=i=s=r;else{let l=r<.5?r*(1+t):r+t-r*t,u=2*r-l;o=Cr(u,l,e+1/3),i=Cr(u,l,e),s=Cr(u,l,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}function Ue(e,t){return r=>r>0?t:e}var Y=(e,t,r)=>e+(t-e)*r;var Pr=(e,t,r)=>{let n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},Ss=[gt,ee,he],As=e=>Ss.find(t=>t.test(e));function ai(e){let t=As(e);if(!t)return X(!1,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!1;let r=t.parse(e);return t===he&&(r=si(r)),r}var Dr=(e,t)=>{let r=ai(e),n=ai(t);if(!r||!n)return Ue(e,t);let o={...r};return i=>(o.red=Pr(r.red,n.red,i),o.green=Pr(r.green,n.green,i),o.blue=Pr(r.blue,n.blue,i),o.alpha=Y(r.alpha,n.alpha,i),ee.transform(o))};var Bt=new Set(["none","hidden"]);function li(e,t){return Bt.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function Es(e,t){return r=>Y(e,t,r)}function zt(e){return typeof e=="number"?Es:typeof e=="string"?Ke(e)?Ue:D.test(e)?Dr:Vs:Array.isArray(e)?ci:typeof e=="object"?D.test(e)?Dr:Ns:Ue}function ci(e,t){let r=[...e],n=r.length,o=e.map((i,s)=>zt(i)(i,t[s]));return i=>{for(let s=0;s<n;s++)r[s]=o[s](i);return r}}function Ns(e,t){let r={...e,...t},n={};for(let o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=zt(e[o])(e[o],t[o]));return o=>{for(let i in n)r[i]=n[i](o);return r}}function ks(e,t){let r=[],n={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let i=t.types[o],s=e.indexes[i][n[i]],l=e.values[s]??0;r[o]=l,n[i]++}return r}var Vs=(e,t)=>{let r=_.createTransformer(t),n=Ge(e),o=Ge(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?Bt.has(e)&&!o.values.length||Bt.has(t)&&!n.values.length?li(e,t):Ee(ci(ks(n,o),o.values),r):(X(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Ue(e,t))};var ui=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Os(e,t){let r=ui.exec(e);if(!r)return;let n=ui.exec(t);if(!n||r[2]!==n[2])return;let o=r[2],i=parseFloat(r[1]),s=parseFloat(n[1]);return l=>J(Y(i,s,l))+o}function Ye(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Y(e,t,r);if(typeof e=="string"&&typeof t=="string"){let o=Os(e,t);if(o)return o}return zt(e)(e,t)}var fi=e=>{let t=({timestamp:r})=>e(r);return{start:(r=!0)=>C.update(t,r),stop:()=>pe(t),now:()=>U.isProcessing?U.timestamp:W.now()}};var Kt=(e,t,r=10)=>{let n="",o=Math.max(Math.round(t/r),2);for(let i=0;i<o;i++)n+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function He(e,t=50,r=2e4,n){let o=0,i=e.next(o);for(n?.push(i.value);!i.done&&o<r;)o+=t,i=e.next(o),n?.push(i.value);return o>=r?1/0:o}function xt(e,t=100,r){let n=r({...e,keyframes:[0,t]}),o=Math.min(He(n),2e4);return{type:"keyframes",ease:i=>n.next(o*i).value/t,duration:B(o)}}var P={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Wr(e,t){return e*Math.sqrt(1-t*t)}var Ms=12;function Cs(e,t,r){let n=r;for(let o=1;o<Ms;o++)n=n-e(n)/t(n);return n}var Rr=.001;function Ps({duration:e=P.duration,bounce:t=P.bounce,velocity:r=P.velocity,mass:n=P.mass}){let o,i;X(e<=F(P.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=R(P.minDamping,P.maxDamping,s),e=R(P.minDuration,P.maxDuration,B(e)),s<1?(o=a=>{let f=a*s,c=f*e,m=f-r,p=Wr(a,s),h=Math.exp(-c);return Rr-m/p*h},i=a=>{let c=a*s*e,m=c*r+r,p=s*s*a*a*e,h=Math.exp(-c),d=Wr(a*a,s);return(-o(a)+Rr>0?-1:1)*((m-p)*h)/d}):(o=a=>{let f=Math.exp(-a*e),c=(a-r)*e+1;return-Rr+f*c},i=a=>{let f=Math.exp(-a*e),c=(r-a)*(e*e);return f*c});let l=5/e,u=Cs(o,i,l);if(e=F(e),isNaN(u))return{stiffness:P.stiffness,damping:P.damping,duration:e};{let a=u*u*n;return{stiffness:a,damping:s*2*Math.sqrt(n*a),duration:e}}}var mi=["duration","bounce"],pi=["stiffness","damping","mass"];function jt(e,t){return t.some(r=>e[r]!==void 0)}function Ds(e){let t={velocity:P.velocity,stiffness:P.stiffness,damping:P.damping,mass:P.mass,isResolvedFromDuration:!1,...e};if(!jt(e,pi)&&jt(e,mi))if(t.velocity=0,e.visualDuration){let r=e.visualDuration,n=2*Math.PI/(r*1.2),o=n*n,i=2*R(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:P.mass,stiffness:o,damping:i}}else{let r=Ps({...e,velocity:0});t={...t,...r,mass:P.mass},t.isResolvedFromDuration=!0}return t}function se(e=P.visualDuration,t=P.bounce){let r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,n=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],i={done:!1,value:n},{stiffness:s,damping:l,mass:u,duration:a,velocity:f,isResolvedFromDuration:c}=Ds({...r,velocity:-B(r.velocity||0)}),m=l/(2*Math.sqrt(s*u)),p=B(Math.sqrt(s/u)),h=m*p,d={target:o,delta:o-n,velocity:f||0,restSpeed:0,restDelta:0},v=()=>{let y=Math.abs(d.delta)<5;d.restSpeed=r.restSpeed||(y?P.restSpeed.granular:P.restSpeed.default),d.restDelta=r.restDelta||(y?P.restDelta.granular:P.restDelta.default)};v();let w,T,A;if(m<1){let y=Wr(p,m),x={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};A=()=>{x.A=(d.velocity+h*d.delta)/y,x.sinC=h*x.A+d.delta*y,x.cosC=h*d.delta-x.A*y};let S=M=>{M!==x.t&&(x.t=M,x.env=Math.exp(-h*M),x.sin=Math.sin(y*M),x.cos=Math.cos(y*M))};w=M=>(S(M),d.target-x.env*(x.A*x.sin+d.delta*x.cos)),T=M=>(S(M),x.env*(x.sinC*x.sin+x.cosC*x.cos))}else if(m===1){w=x=>d.target-Math.exp(-p*x)*(d.delta+(d.velocity+p*d.delta)*x);let y={C:0};A=()=>{y.C=d.velocity+p*d.delta},T=x=>Math.exp(-p*x)*(p*y.C*x-d.velocity)}else{let y=p*Math.sqrt(m*m-1);w=S=>{let M=Math.exp(-h*S),L=Math.min(y*S,300);return d.target-M*((d.velocity+h*d.delta)*Math.sinh(L)+y*d.delta*Math.cosh(L))/y};let x={P:0,sinh:0,cosh:0};A=()=>{x.P=(d.velocity+h*d.delta)/y,x.sinh=h*x.P-d.delta*y,x.cosh=h*d.delta-x.P*y},T=S=>{let M=Math.exp(-h*S),L=Math.min(y*S,300);return M*(x.sinh*Math.sinh(L)+x.cosh*Math.cosh(L))}}A();let E=!jt(r,pi)&&jt(r,mi),k=c&&a||null,I={calculatedDuration:k,retarget:(y,x)=>{d.target=y[y.length-1],d.delta=d.target-y[0],d.velocity=E?0:-B(x),r.restSpeed&&r.restDelta||v(),I.calculatedDuration=k,i.done=!1,A()},velocity:y=>F(T(y)),next:y=>{let x=w(y);if(c)i.done=y>=a;else{let S=F(T(y));i.done=Math.abs(S)<=d.restSpeed&&Math.abs(d.target-x)<=d.restDelta}return i.value=i.done?d.target:x,i},toString:()=>{let y=Math.min(He(I),2e4),x=Kt(S=>I.next(y*S).value,y,30);return y+"ms "+x},toTransition:()=>{}};return I}se.applyToOptions=e=>{let t=xt(e,100,se);return e.ease=t.ease,e.duration=F(t.duration),e.type="keyframes",e};function vt({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:l,max:u,restDelta:a=.5,restSpeed:f}){let c=e[0],m={done:!1,value:c},p=y=>y<l||y>u,h=y=>l===void 0?u:u===void 0||Math.abs(l-y)<Math.abs(u-y)?l:u,d=r*t,v=c+d,w=s===void 0?v:s(v);w!==v&&(d=w-c);let T=y=>-d*Math.exp(-y/n),A=y=>{let x=T(y);m.done=Math.abs(x)<=a,m.value=m.done?w:w+x},E,k,I=y=>{p(m.value)&&(E=y,k=se({keyframes:[m.value,h(m.value)],velocity:-T(y)/n*1e3,damping:o,stiffness:i,restDelta:a,restSpeed:f}))};return I(0),{calculatedDuration:null,next:y=>{let x=!1;return!k&&E===void 0&&(x=!0,A(y),I(y)),E!==void 0&&y>=E?k.next(y-E):(!x&&A(y),m)}}}function Is(e,t,r){let n=[],o=r||G.mix||Ye,i=e.length-1;for(let s=0;s<i;s++){let l=o(e[s],e[s+1]);if(t){let u=Array.isArray(t)?t[s]||j:t;l=Ee(u,l)}n.push(l)}return n}function bt(e,t,{clamp:r=!0,ease:n,mixer:o}={}){let i=e.length;if(K(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let l=Is(t,n,o),u=l.length,a=f=>{if(s&&f<e[0])return t[0];let c=0;if(u>1)for(;c<e.length-2&&!(f<e[c+1]);c++);let m=ie(e[c],e[c+1],f);return l[c](m)};return r?f=>a(R(e[0],e[i-1],f)):a}function wt(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let o=ie(0,t,n);e.push(Y(r,1,o))}}function Ve(e){let t=[0];return wt(t,e.length-1),t}function di(e,t){return e.map(r=>r*t)}function Rs(e,t){return e.map(()=>t||ut).splice(0,e.length-1)}function Oe({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let o=ft(n)?n.map($t):$t(n),i={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(o)&&(!r||r.length!==2||r[0]===0&&r[1]===1)){let[u,a]=t,f=u===a?void 0:(G.mix||Ye)(u,a);return{calculatedDuration:e,next:c=>(i.value=f?f(o(e>0?R(0,1,c/e):1)):a,i.done=c>=e,i)}}let s=di(r&&r.length===t.length?r:Ve(t),e),l=bt(s,t,{ease:Array.isArray(o)?o:Rs(t,o)});return{calculatedDuration:e,next:u=>(i.value=l(u),i.done=u>=e,i)}}var Ws=5;function $s(e,t,r){let n=Math.max(t-Ws,0);return Ne(r-e(n),t-n)}function hi(e,t,r=0){return t<=0?r:e.velocity?e.velocity(t):$s(n=>e.next(n).value,t,e.next(t).value)}var Ls=e=>e!==null;function ge(e,{repeat:t,repeatType:r="loop"},n,o=1){let i=e.filter(Ls),l=o<0||t&&r!=="loop"&&t%2===1?0:i.length-1;return!l||n===void 0?i[l]:n}var Fs={decay:vt,inertia:vt,tween:Oe,keyframes:Oe,spring:se};function _t(e){typeof e.type=="string"&&(e.type=Fs[e.type])}function Bs(e,t){return{kind:e,animation:t,timestamp:W.now(),frameTimestamp:U.timestamp,frameIsProcessing:U.isProcessing}}function Gt(e,t,r){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...Bs("animation-start",e),options:r?{...t,...r}:t})}catch{}}var ye=class{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(t=>{this._resolve=t})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(t,r){return this.finished.then(t,r)}};var zs=e=>e/100,ae=class extends ye{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:r}=this.options;r&&r.updatedAt!==W.now()&&this.tick(W.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause(),Gt(this,this.options)}initAnimation(){let{options:t}=this;_t(t);let{type:r=Oe,repeat:n=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t,{keyframes:l}=t,u=r||Oe;u!==Oe&&typeof l[0]!="number"&&(this.mixKeyframes=Ee(zs,Ye(l[0],l[1])),l=[0,100]);let a=u(l===t.keyframes?t:{...t,keyframes:l});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...l].reverse(),velocity:-s})),a.calculatedDuration===null&&(a.calculatedDuration=He(a));let{calculatedDuration:f}=a;this.calculatedDuration=f,this.resolvedDuration=f+o,this.totalDuration=this.resolvedDuration*(n+1)-o,this.generator=a}updateTime(t){let r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){let{generator:n,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:l,calculatedDuration:u}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:f,repeat:c,repeatType:m,repeatDelay:p,type:h,onUpdate:d,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);let w=this.currentTime-a*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?w<0:w>o;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let A=this.currentTime,E=n;if(c){let x=Math.min(this.currentTime,o)/l,S=Math.floor(x),M=x%1;!M&&x>=1&&(M=1),M===1&&S--,S=Math.min(S,c+1),S%2&&(m==="reverse"?(M=1-M,p&&(M-=p/l)):m==="mirror"&&(E=s)),A=R(0,1,M)*l}let k;T?(this.delayState.value=f[0],k=this.delayState):k=E.next(A),i&&!T&&(k.value=i(k.value));let{done:I}=k;!T&&u!==null&&(I=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);let y=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return y&&h!==vt&&(k.value=ge(f,this.options,v,this.speed)),d&&d(k.value),y&&this.finish(),k}then(t,r){return this.finished.then(t,r)}get duration(){return B(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+B(t)}get time(){return B(this.currentTime)}set time(t){t=F(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){return hi(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){let r=this.playbackSpeed!==t;r&&this.driver&&this.updateTime(W.now()),this.playbackSpeed=t,r&&this.driver&&(this.time=B(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=fi,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();let n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(W.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};var Ks=new Set(["brightness","contrast","saturate","opacity"]);function js(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(je)||[];if(!n)return e;let o=r.replace(n,""),i=Ks.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}var _s=/\b([a-z-]*)\(.*?\)/gu,Tt={..._,getAnimatableNone:e=>{let t=e.match(_s);return t?t.map(js).join(" "):e}};var St={..._,getAnimatableNone:e=>{let t=_.parse(e);return _.createTransformer(e)(t.map(n=>typeof n=="number"?0:typeof n=="object"?{...n,alpha:1}:n))}};var $r={...Q,transform:Math.round};var At={rotate:q,pathRotation:q,rotateX:q,rotateY:q,rotateZ:q,scale:ht,scaleX:ht,scaleY:ht,scaleZ:ht,skew:q,skewX:q,skewY:q,distance:g,translateX:g,translateY:g,translateZ:g,x:g,y:g,z:g,perspective:g,transformPerspective:g,opacity:oe,originX:Mr,originY:Mr,originZ:g};var Z={borderWidth:g,borderTopWidth:g,borderRightWidth:g,borderBottomWidth:g,borderLeftWidth:g,borderRadius:g,borderTopLeftRadius:g,borderTopRightRadius:g,borderBottomRightRadius:g,borderBottomLeftRadius:g,width:g,maxWidth:g,height:g,maxHeight:g,top:g,right:g,bottom:g,left:g,inset:g,insetBlock:g,insetBlockStart:g,insetBlockEnd:g,insetInline:g,insetInlineStart:g,insetInlineEnd:g,padding:g,paddingTop:g,paddingRight:g,paddingBottom:g,paddingLeft:g,paddingBlock:g,paddingBlockStart:g,paddingBlockEnd:g,paddingInline:g,paddingInlineStart:g,paddingInlineEnd:g,margin:g,marginTop:g,marginRight:g,marginBottom:g,marginLeft:g,marginBlock:g,marginBlockStart:g,marginBlockEnd:g,marginInline:g,marginInlineStart:g,marginInlineEnd:g,fontSize:g,backgroundPositionX:g,backgroundPositionY:g,...At,zIndex:$r,fillOpacity:oe,strokeOpacity:oe,numOctaves:$r};var Gs={...Z,color:D,backgroundColor:D,outlineColor:D,fill:D,stroke:D,borderColor:D,borderTopColor:D,borderRightColor:D,borderBottomColor:D,borderLeftColor:D,filter:Tt,WebkitFilter:Tt,mask:St,WebkitMask:St},gi=e=>Gs[e];var Us=new Set([Tt,St]);function Ut(e,t){let r=gi(e);return Us.has(r)||(r=_),r.getAnimatableNone?r.getAnimatableNone(t):void 0}function yi(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Me=e=>e*180/Math.PI,Lr=e=>{let t=Me(Math.atan2(e[1],e[0]));return Fr(t)},Ys={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Lr,rotateZ:Lr,skewX:e=>Me(Math.atan(e[1])),skewY:e=>Me(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Fr=e=>(e=e%360,e<0&&(e+=360),e),xi=Lr,vi=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),bi=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Hs={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:vi,scaleY:bi,scale:e=>(vi(e)+bi(e))/2,rotateX:e=>Fr(Me(Math.atan2(e[6],e[5]))),rotateY:e=>Fr(Me(Math.atan2(-e[2],e[0]))),rotateZ:xi,rotate:xi,skewX:e=>Me(Math.atan(e[4])),skewY:e=>Me(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function wi(e){return e.includes("scale")?1:0}function Yt(e,t){if(!e||e==="none")return wi(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),n,o;if(r)n=Hs,o=r;else{let l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Ys,o=l}if(!o)return wi(t);let i=n[t],s=o[1].split(",").map(Xs);return typeof i=="function"?i(s):s[i]}var Ti=(e,t)=>{let{transform:r="none"}=getComputedStyle(e);return Yt(r,t)};function Xs(e){return parseFloat(e.trim())}var xe=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ce=new Set([...xe,"pathRotation"]);var Br=e=>e===Q||e===g,qs=new Set(["x","y","z"]),Zs=xe.filter(e=>!qs.has(e));function Ai(e){let t=[];return Zs.forEach(r=>{let n=e.getValue(r);if(n!==void 0){let o=n.get(),i=r.startsWith("scale")?1:0;if(o===i)return;t.push([r,o]),n.set(i)}}),t}var Ei=new Set(["bottom","right"]);function Si(e,t,r,n,o,i){let s=parseFloat(e);if(!isNaN(s))return s;let{min:l,max:u}=t()[r],a=u-l;return i==="border-box"?a:a-parseFloat(n)-parseFloat(o)}var ve={width:({width:e,paddingLeft:t="0",paddingRight:r="0",boxSizing:n},o)=>Si(e,o,"x",t,r,n),height:({height:e,paddingTop:t="0",paddingBottom:r="0",boxSizing:n},o)=>Si(e,o,"y",t,r,n),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:r}=t();return parseFloat(e)+(r.max-r.min)},right:({left:e},t)=>{let{x:r}=t();return parseFloat(e)+(r.max-r.min)},x:({transform:e})=>Yt(e,"x"),y:({transform:e})=>Yt(e,"y")};ve.translateX=ve.x;ve.translateY=ve.y;var Pe=new Set,zr=!1,Kr=!1,jr=!1;function Ni(){if(Kr){let e=[],t=new Set,r=new Set;Pe.forEach(o=>{o.needsMeasurement&&(e.push(o),t.add(o.element),Ei.has(o.name)&&r.add(o.element))});let n=new Map;r.forEach(o=>{let i=Ai(o);i.length&&(n.set(o,i),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();let i=n.get(o);i&&i.forEach(([s,l])=>{o.getValue(s)?.set(l)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Kr=!1,zr=!1,Pe.forEach(e=>e.complete(jr)),Pe.clear()}function ki(){Pe.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Kr=!0)})}function Vi(){jr=!0,ki(),Ni(),jr=!1}function Js(e,t,r){if(typeof e=="string"){if(nt(e)||it(e))return parseFloat(e);if(!_.test(e)&&_.test(r))return Ut(t,r)}return e??void 0}var Xe=class{constructor(t,r,n,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Pe.add(this),zr||(zr=!0,C.read(ki),C.resolveKeyframes(Ni))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;if(t[0]===null){let i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(n&&r){let l=Js(n.readValue(r,s),r,s);l!==void 0&&(t[0]=l)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}yi(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Pe.delete(this)}cancel(){this.state==="scheduled"&&(Pe.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var Et=e=>e.startsWith("--");function Ht(e,t,r){Et(t)?e.style.setProperty(t,r):e.style[t]=r}var Oi={};function Nt(e,t){let r=ot(e);return()=>Oi[t]??r()}var kt=Nt(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),_r=Nt(()=>window.ViewTimeline!==void 0,"viewTimeline");var Xt=Nt(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var De=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`;var Gr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:De([0,.65,.55,1]),circOut:De([.55,0,1,.45]),backIn:De([.31,.01,.66,-.59]),backOut:De([.33,1.53,.69,.99])};function Ur(e,t){if(e)return typeof e=="function"?Xt()?Kt(e,t):"ease-out":pt(e)?De(e):Array.isArray(e)?e.map(r=>Ur(r,t)||Gr.easeOut):Gr[e]}function Mi(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:l="easeOut",times:u}={},a=void 0){let f={[t]:r};u&&(f.offset=u);let c=Ur(l,o);Array.isArray(c)&&(f.easing=c);let m={delay:n,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return a&&(m.pseudoElement=a),e.animate(f,m)}function Ie(e){return typeof e=="function"&&"applyToOptions"in e}function Ci({type:e,...t}){return Ie(e)&&Xt()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var qt=class extends ye{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:r,name:n,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:l,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,K(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let a=Ci(t);this.animation=Mi(r,n,o,a,i),a.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let f=ge(o,this.options,l,this.speed);this.updateMotionValue&&this.updateMotionValue(f),Ht(r,n,f),this.animation.cancel()}u?.(),this.notifyFinished()},Gt(this,t,a)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return B(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+B(t)}get time(){return B(Number(this.animation.currentTime)||0)}set time(t){let r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=F(t),r&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:r,rangeEnd:n,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&kt()?(this.animation.timeline=t,r&&(this.animation.rangeStart=r),n&&(this.animation.rangeEnd=n),j):o(this)}};var Pi={anticipate:at,backInOut:st,circInOut:ct};function Qs(e){return e in Pi}function Di(e){typeof e.ease=="string"&&Qs(e.ease)&&(e.ease=Pi[e.ease])}var Yr=10,Zt=class extends qt{constructor(t){Di(t),_t(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:r,onUpdate:n,onComplete:o,element:i,...s}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}let l=new ae({...s,autoplay:!1}),u=Math.max(Yr,W.now()-this.startTime),a=R(0,Yr,u-Yr),f=l.sample(u).value,{name:c}=this.options;i&&c&&Ht(i,c,f),r.setWithVelocity(l.sample(Math.max(0,u-a)).value,f,a),l.stop()}};var Hr=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(_.test(e)||e==="0")&&!e.startsWith("url("));function ea(e){let t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function Ii(e,t,r,n){let o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;let i=e[e.length-1],s=Hr(o,t),l=Hr(i,t);return!s||!l?(s!==l&&X(!1,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!1):ea(e)||(r==="spring"||Ie(r))&&n}function Vt(e){e.duration=0,e.type="keyframes"}var Xr=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);var ta=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ri(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&ta.test(e[t]))return!0;return!1}var Wi=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),ra=ot(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function $i(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:i,type:s,keyframes:l}=e;if(!r||!(Xr.has(r)||Wi.has(r)))return!1;let u=t?.owner?.current;if(!(u instanceof HTMLElement)&&!(u instanceof SVGElement))return!1;let{onUpdate:a,transformTemplate:f}=t.owner.getProps();return ra()&&(Xr.has(r)||Wi.has(r)&&Ri(l))&&(r!=="transform"||!f)&&!a&&!n&&o!=="mirror"&&i!==0&&s!=="inertia"}var na=40,Jt=class extends ye{constructor(t){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=W.now();let{keyframes:r,name:n,motionValue:o,element:i}=t,s=t;s.autoplay??(s.autoplay=!0),s.delay??(s.delay=0),s.type??(s.type="keyframes"),s.repeat??(s.repeat=0),s.repeatDelay??(s.repeatDelay=0),s.repeatType??(s.repeatType="loop");let l=i?.KeyframeResolver||Xe;this.keyframeResolver=new l(r,(u,a,f)=>this.onKeyframesResolved(u,a,s,!f),n,o,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,n,o){this.keyframeResolver=void 0;let{name:i,type:s,velocity:l,delay:u,isHandoff:a,onUpdate:f}=n;this.resolvedAt=W.now();let c=!0;Ii(t,i,s,l)||(c=!1,(G.instantAnimations||!u)&&f?.(ge(t,n,r)),t[0]=t[t.length-1],Vt(n),n.repeat=0);let m=o?this.resolvedAt?this.resolvedAt-this.createdAt>na?this.resolvedAt:this.createdAt:this.createdAt:void 0,{onComplete:p}=n;n.startTime??(n.startTime=m),n.finalKeyframe=r,n.keyframes=t,n.onComplete=()=>{p?.(),this.notifyFinished()};let h=c&&!a&&$i(n),d;if(h){n.element=n.motionValue?.owner?.current;try{d=new Zt(n)}catch{d=new ae(n)}}else d=new ae(n);this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this._animation.finished:super.finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Vi()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};var Qt=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,r){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=r}attachTimeline(t){let r=this.animations.map(n=>n.attachTimeline(t));return()=>{r.forEach((n,o)=>{n&&n(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return Li(this.animations,"duration")}get iterationDuration(){return Li(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(r=>r[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};function Li(e,t){let r=0;for(let n=0;n<e.length;n++){let o=e[n][t];o!==null&&o>r&&(r=o)}return r}var Ot=class extends Qt{then(t,r){return this.finished.finally(t).then(()=>{})}};var Fi=30,ia=e=>!isNaN(parseFloat(e)),qr={current:void 0},te=class{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{let o=W.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=W.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ia(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){var n;return t==="change"?this.onChangeSubscribe(r):((n=this.events)[t]||(n[t]=new Be)).add(r)}onChangeSubscribe(t){let{events:r}=this;return!r.change&&!this.changeSubscriber?this.changeSubscriber=t:(r.change||(r.change=new Be,r.change.add(this.changeSubscriber),this.changeSubscriber=void 0),r.change.add(t)),()=>{this.changeSubscriber===t?this.changeSubscriber=void 0:r.change?.remove(t),this.stopIfUnobserved()}}stopIfUnobserved(){C.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:t,changeSubscriber:r}=this;r?r(t):this.events.change?.notify(t)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return qr.current&&qr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=W.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Fi)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,Fi);return Ne(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0;let n=!1,o;o=t(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===o&&this.clearAnimation(),r()}),n||(this.animation=o),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Re(e,t){return new te(e,t)}function Bi(e,t){if(e?.inherit&&t){let{inherit:r,...n}=e;return{...t,...n}}return e}function zi(e,t){let r=e?.[t]??e?.default??e;return r!==e?Bi(r,e):r}var oa={type:"spring",stiffness:500,damping:25,restSpeed:10},sa=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),aa={type:"keyframes",duration:.8},la={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ki=(e,{keyframes:t})=>t.length>2?aa:Ce.has(e)?e.startsWith("scale")?sa(t[1]):oa:la;var ca=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function ji(e){for(let t in e)if(!ca.has(t))return!0;return!1}var er=(e,t,r,n={},o,i)=>s=>{let l=zi(n,e)||{},u=l.delay||n.delay||0,{elapsed:a=0}=n;a=a-F(u);let f={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-a,onUpdate:m=>{t.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:o};ji(l)||Object.assign(f,Ki(e,f)),f.duration&&(f.duration=F(f.duration)),f.repeatDelay&&(f.repeatDelay=F(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let c=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(Vt(f),f.delay===0&&(c=!0)),(G.instantAnimations||G.skipAnimations||o?.shouldSkipAnimations||l.skipAnimations)&&(c=!0,Vt(f),f.delay=0),f.allowFlatten=!l.type&&!l.ease,c&&!i&&t.get()!==void 0){let m=ge(f.keyframes,l);if(m!==void 0){C.update(()=>{f.onUpdate(m),f.onComplete()});return}}return l.isSync?new ae(f):new Jt(f)};var ua=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fa(e){let t=ua.exec(e);if(!t)return[,];let[,r,n,o]=t;return[`--${r??n}`,o]}var ma=4;function Zr(e,t,r=1){K(r<=ma,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,o]=fa(e);if(!n)return;let i=window.getComputedStyle(t).getPropertyValue(n);if(i){let s=i.trim();return nt(s)?parseFloat(s):s}return Ke(o)?Zr(o,t,r+1):o}var tr=new Set(["width","height","top","left","right","bottom",...xe]);var We=e=>!!(e&&e.getVelocity);function rr(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var _i={test:e=>e==="auto",parse:e=>e};var Gi=e=>t=>t.test(e);var pa=[Q,g,de,q,Zn,qn,_i],Jr=e=>pa.find(Gi(e));function Ui(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||it(e):!0}var da=new Set(["auto","none","0"]);function Yi(e,t,r){let n=0,o;for(;n<e.length&&!o;){let i=e[n];typeof i=="string"&&!da.has(i)&&ii(i)&&(o=e[n]),n++}if(o&&r)for(let i of t)e[i]!==o&&(e[i]=Ut(r,o))}var nr=class extends Xe{constructor(t,r,n,o,i){super(t,r,n,o,i,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let c=t[f];if(typeof c=="string"&&(c=c.trim(),Ke(c))){let m=Zr(c,r.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!tr.has(n)||t.length!==2)return;let[o,i]=t;if(typeof o=="number"&&typeof i=="number")return;let s=Jr(o),l=Jr(i),u=Vr(o),a=Vr(i);if(u!==a&&ve[n]){this.needsMeasurement=!0;return}if(s!==l)if(Br(s)&&Br(l))for(let f=0;f<t.length;f++){let c=t[f];typeof c=="string"&&(t[f]=parseFloat(c))}else ve[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:r}=this,n=[];for(let o=0;o<t.length;o++)(t[o]===null||Ui(t[o]))&&n.push(o);n.length&&Yi(t,n,r)}measure(){let{element:t,name:r}=this;return ve[r](window.getComputedStyle(t.current),()=>t.measureViewportBox())}measureInitialState(){let{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),r[0]=this.measuredOrigin;let o=r[r.length-1];o!==void 0&&this.motionValue?.jump(o,!1)}measureEndState(){let{element:t,unresolvedKeyframes:r}=this;if(!t||!t.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=r.length-1,o=r[n];r[n]=this.measure(),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([i,s])=>{t.getValue(i).set(s)}),this.resolveNoneKeyframes()}};var Qr=[];function en(e){K(typeof e.test=="function"&&typeof e.read=="function","Effects passed to animate.addEffect() need test() and read().","effect-missing-test"),ir(e),Qr.unshift(e)}function ir(e){ne(Qr,e)}function tn(e){return Qr.find(t=>t.test(e))}function or(e,t,r={},n){let o=[],{velocity:i}=r,s=r.reduceMotion??n?.shouldReduceMotion;for(let u in t){if(u==="transition"||u==="transitionEnd")continue;let a=t[u];if(a===void 0)continue;let f=e(u),c=f.get();if(c!==void 0&&!f.isAnimating()&&!Array.isArray(a)&&a===c&&!i){C.update(()=>f.set(a));continue}f.start(er(u,f,a,s&&tr.has(u)?{type:!1}:r,n)),f.animation&&o.push(f.animation)}let{transitionEnd:l}=t;if(l){let u=()=>C.update(()=>{for(let a in l)e(a).set(l[a])});o.length?Promise.all(o).then(u):u()}return o}function Mt(e,t,r,n,o){return or(i=>{let s=e.get(t,i);if(!s){let l;if(!o){let u=r[i];l=ha(u)??e.read(t,i,u),K(l!==void 0,`"${i}" can't be read from the animated subject. Provide [from, to] keyframes.`,"effect-unreadable-value")}s=Re(l,{owner:o}),e(t,{[i]:s})}return s},r,n,o)}function ha(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function be(e){return Ae(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}function we(e){return Ae(e)&&"ownerSVGElement"in e}var le=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ce(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;t&&(n=t.current);let o=r?.[e]??n.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(n=>n!=null)}var sr=class{constructor(t=C.render){this.step=t,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:r,numPending:n}=this;this.numPending=0;for(let o=0;o<n;o++)r[o]()}}set(t,r,n,o){if(this.values.get(t)?.onRemove(),o)for(let u of this.values.values())u.value===o&&(n=u.render);let i=()=>n&&this.schedule(n);r.get()!==void 0&&i();let s=r.on("change",i),l=()=>{s(),n&&!o&&this.cancel(n),this.values.delete(t)};return this.values.set(t,{value:r,render:o?void 0:n,onRemove:l}),l}get(t){return this.values.get(t)?.value}release(){let t=new Map;return this.values.forEach((r,n)=>{t.set(n,r.value),r.onRemove()}),this.transformKeys=this.transformValues=void 0,t}schedule(t){let{pending:r,numPending:n}=this;for(let o=0;o<n;o++)if(r[o]===t)return;n||this.step(this.flush),r[this.numPending++]=t}cancel(t){let{pending:r}=this;for(let n=0;n<this.numPending;n++)if(r[n]===t){r[n]=r[--this.numPending];return}}};function qe(e,{step:t,...r}={}){let n=new WeakMap;return Object.assign((i,s)=>{let l=n.get(i)??new sr(t);n.set(i,l);let u=[];for(let a in s){let f=s[a],c=e(i,l,a,f);u.push(c)}return()=>{for(let a of u)a()}},r,{get:(i,s)=>n.get(i)?.get(s),flush:i=>n.get(i)?.flush(),state:i=>n.get(i)})}var ga={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Hi={};function Xi(e){let t="",{transformKeys:r=[],transformValues:n={}}=e;for(let i=0;i<r.length;i++){let s=r[i],l=n[s].get();if(l===void 0)continue;(typeof l=="number"?l:parseFloat(l))!==(s.startsWith("scale")?1:0)&&(t+=(t&&" ")+(Hi[s]||(Hi[s]=(ga[s]||s)+"("))+le(l,At[s])+")")}let o=e.get("pathRotation")?.get();return o&&(t+=(t&&" ")+"rotate("+le(o,At.pathRotation)+")"),t||"none"}var ya=new Set(["originX","originY","originZ"]),rn=(e,t)=>le(e.get(t)?.get(),Z[t]),ar=(e,t,r,n)=>{let o,i;if(Ce.has(r)){if(r!=="pathRotation"){let s=t.transformKeys??(t.transformKeys=[]);(t.transformValues??(t.transformValues={}))[r]=n,s.includes(r)||(s.push(r),s.sort((l,u)=>xe.indexOf(l)-xe.indexOf(u)))}t.get("transform")||(!be(e)&&!t.get("transformBox")&&ar(e,t,"transformBox",new te("fill-box")),t.set("transform",new te("none"),()=>{e.style.transform=Xi(t)})),i=t.get("transform")}else ya.has(r)?(t.get("transformOrigin")||t.set("transformOrigin",new te(""),()=>{let s=rn(t,"originX")??"50%",l=rn(t,"originY")??"50%",u=rn(t,"originZ")??0;e.style.transformOrigin=`${s} ${l} ${u}`}),i=t.get("transformOrigin")):Et(r)?o=()=>{e.style.setProperty(r,n.get())}:o=()=>{e.style[r]=le(n.get(),Z[r])};return t.set(r,n,o,i)},xa=e=>be(e)||we(e),nn=(e,t)=>{if(Ce.has(t))return Ti(e,t);let r=getComputedStyle(e),n=Et(t)?r.getPropertyValue(t):r[t];return typeof n=="string"&&n.trim()||0},qi=qe(ar,{test:xa,read:nn});var Zi=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function va(e,t){if(!(t in e))return!1;let r=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return r&&typeof r.set=="function"}var on=(e,t,r,n,o=r)=>{let i=va(e,o);!i&&(o.startsWith("data")||o.startsWith("aria"))&&(o=rr(o));let s=Z[r]||Z[o],l=i?()=>{e[o]=le(n.get(),Z[r])}:()=>{let u=le(n.get(),s);u==null?e.removeAttribute(o):e.setAttribute(o,String(u))};return t.set(r,n,l)};function ba(e,t,r,n){return C.render(()=>e.setAttribute("pathLength","1")),r==="pathOffset"?t.set(r,n,()=>{let o=n.get();e.setAttribute("stroke-dashoffset",`${-o}`)}):(t.get("stroke-dasharray")||t.set("stroke-dasharray",new te("1 1"),()=>{let o=t.get("pathLength")?.get()??1,i=t.get("pathSpacing")?.get();e.setAttribute("stroke-dasharray",`${o} ${i??1-Number(o)}`)}),t.set(r,n,void 0,t.get("stroke-dasharray")))}var wa=(e,t,r,n)=>r.startsWith("path")?ba(e,t,r,n):r.startsWith("attr")?on(e,t,r,n,Qi(r)):(r in e.style?ar:on)(e,t,r,n),Ta=(e,t)=>Ce.has(t)?Z[t]?.default||0:Zi.includes(t)?nn(e,t):(t=Qi(t),e.getAttribute(rr(t))??e.getAttribute(t)??void 0),Ji=qe(wa,{test:we,read:Ta});function Qi(e){return e.replace(/^attr([A-Z])/,(t,r)=>r.toLowerCase())}function eo({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function to(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function ro(e,t){return eo(to(e.getBoundingClientRect(),t))}var Sa={},Aa=e=>we(e)?Ji:qi,sn=class{constructor(t,r){this.effect=t,this.current=r,this.KeyframeResolver=nr}getValue(t){return this.effect.get(this.current,t)}readValue(t,r){return this.effect.read(this.current,t,r)}render(){this.effect.flush(this.current)}measureViewportBox(){return ro(this.current)}getProps(){return Sa}};function an(e,t,r,n){if(n)return or(i=>n.getValue(i,null),t,r,n);let o=Aa(e);return Mt(o,e,t,r,new sn(o,e))}var ln=qe((e,t,r,n)=>t.set(r,n,()=>{e[r]=n.get()}),{test:e=>Ae(e),read:(e,t)=>{let r=e[t];return typeof r=="string"||typeof r=="number"?r:void 0}});var no={x:!1,y:!1};function lr(){return no.x||no.y}function cr(e,t){let r=ce(e),n=new AbortController,o={passive:!0,...t,signal:n.signal};return[r,o,()=>n.abort()]}function Ea(e){return!(e.pointerType==="touch"||lr())}function cn(e,t,r={}){let[n,o,i]=cr(e,r);return n.forEach(s=>{let l=!1,u=!1,a,f=()=>{s.removeEventListener("pointerleave",h)},c=v=>{a&&(a(v),a=void 0),f()},m=v=>{l=!1,window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",m),u&&(u=!1,c(v))},p=()=>{l=!0,window.addEventListener("pointerup",m,o),window.addEventListener("pointercancel",m,o)},h=v=>{if(v.pointerType!=="touch"){if(l){u=!0;return}c(v)}},d=v=>{if(!Ea(v))return;u=!1;let w=t(s,v);typeof w=="function"&&(a=w,s.addEventListener("pointerleave",h,o))};s.addEventListener("pointerenter",d,o),s.addEventListener("pointerdown",p,o)}),i}var un=(e,t)=>t?e===t?!0:un(e,t.parentElement):!1;var io=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var Na=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function oo(e){return Na.has(e.tagName)||e.isContentEditable===!0}var Ze=new WeakSet;function so(e){return t=>{t.key==="Enter"&&e(t)}}function fn(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var ao=(e,t)=>{let r=e.currentTarget;if(!r)return;let n=so(()=>{if(Ze.has(r))return;fn(r,"down");let o=so(()=>{fn(r,"up")}),i=()=>fn(r,"cancel");r.addEventListener("keyup",o,t),r.addEventListener("blur",i,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function lo(e){return io(e)&&!lr()}var co=new WeakSet;function mn(e,t,r={}){let[n,o,i]=cr(e,r),s=l=>{let u=l.currentTarget;if(!lo(l)||co.has(l))return;Ze.add(u),r.stopPropagation&&co.add(l);let a=t(u,l),f={...o,capture:!0},c=(h,d)=>{window.removeEventListener("pointerup",m,f),window.removeEventListener("pointercancel",p,f),Ze.has(u)&&Ze.delete(u),lo(h)&&typeof a=="function"&&a(h,{success:d})},m=h=>{c(h,u===window||u===document||r.useGlobalTarget||un(u,h.target))},p=h=>{c(h,!1)};window.addEventListener("pointerup",m,f),window.addEventListener("pointercancel",p,f)};return n.forEach(l=>{(r.useGlobalTarget?window:l).addEventListener("pointerdown",s,o),be(l)&&(l.addEventListener("focus",a=>ao(a,o)),!oo(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}var ur=new WeakMap,fr,uo=(e,t,r)=>(n,o)=>o&&o[0]?o[0][e+"Size"]:we(n)&&"getBBox"in n?n.getBBox()[t]:n[r],ka=uo("inline","width","offsetWidth"),Va=uo("block","height","offsetHeight");function Oa({target:e,borderBoxSize:t}){ur.get(e)?.forEach(r=>{r(e,{get width(){return ka(e,t)},get height(){return Va(e,t)}})})}function Ma(e){e.forEach(Oa)}function Ca(){typeof ResizeObserver>"u"||(fr=new ResizeObserver(Ma))}function fo(e,t){fr||Ca();let r=ce(e);return r.forEach(n=>{let o=ur.get(n);o||(o=new Set,ur.set(n,o)),o.add(t),fr?.observe(n)}),()=>{r.forEach(n=>{let o=ur.get(n);o?.delete(t),o?.size||fr?.unobserve(n)})}}var mr=new Set,Je;function Pa(){Je=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};mr.forEach(t=>t(e))},window.addEventListener("resize",Je)}function mo(e){return mr.add(e),Je||Pa(),()=>{mr.delete(e),!mr.size&&typeof Je=="function"&&(window.removeEventListener("resize",Je),Je=void 0)}}function pn(e,t){return typeof e=="function"?mo(e):fo(e,t)}function Ct(e,t){let r,n=()=>{let{currentTime:o}=t,s=(o===null?0:o.value)/100;r!==s&&e(s),r=s};return C.preUpdate(n,!0),()=>pe(n)}var dn=new WeakMap;function hn(e,t,r){let n=We(e)?e:Re(e);return n.start(er("",n,t,r)),n.animation}function Pt(e){return typeof e=="object"&&!Array.isArray(e)}function pr(e,t,r,n){return e==null?[]:typeof e=="string"&&Pt(t)?ce(e,r,n):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(o=>o!=null):[e]}function po(e,t,r){return e*(t+1)+r*t}function gn(e,t,r,n){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?r:t.startsWith("<")?Math.max(0,r+parseFloat(t.slice(1))):n.get(t)??e}function Da(e,t,r){for(let n=0;n<e.length;n++){let o=e[n];o.at>t&&o.at<r&&(ne(e,o),n--)}}function ho(e,t,r,n,o,i){Da(e,o,i);for(let s=0;s<t.length;s++)e.push({value:t[s],at:Y(o,i,n[s]),easing:mt(r,s)})}function go(e,t,r=0){let n=t+1+t*r;for(let o=0;o<e.length;o++)e[o]=e[o]/n}function yo(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Ia="easeInOut",yn=20;function bo(e,{defaultTransition:t={},...r}={},n,o){let i=t.duration||.3,s=new Map,l=new Map,u={},a=new Map,f=0,c=0,m=0;for(let p=0;p<e.length;p++){let h=e[p];if(typeof h=="string"){a.set(h,c);continue}else if(!Array.isArray(h)){a.set(h.name,gn(c,h.at,f,a));continue}let[d,v,w={}]=h;w.at!==void 0&&(c=gn(c,w.at,f,a));let T=0,A=(E,k,I,y=0,x=0)=>{let S=Ra(E),{delay:M=0,times:L=Ve(S),type:wr=t.type||"keyframes",repeat:ue,repeatType:Tr,repeatDelay:Mn=0,...Ho}=k,{ease:re=t.ease||"easeOut",duration:H}=k,Cn=typeof M=="function"?M(y,x):M,Pn=S.length,Dn=Ie(wr)?wr:o?.[wr||"keyframes"];if(Pn<=2&&Dn){let Le=100;if(Pn===2&&La(S)){let tt=S[1]-S[0];Le=Math.abs(tt)}let Fe={...t,...Ho};H!==void 0&&(Fe.duration=F(H));let It=xt(Fe,Le,Dn);re=It.ease,H=It.duration}H??(H=i);let In=c+Cn;L.length===1&&L[0]===0&&(L[1]=1);let Rn=L.length-S.length;if(Rn>0&&wt(L,Rn),S.length===1&&S.unshift(null),ue&&X(ue<yn,`Sequence segments can't repeat ${ue} times \u2014 ignoring repeat option. Use a value below ${yn} or apply repeat at the sequence level instead.`),ue&&ue<yn){let Le=H>0?Mn/H:0;H=po(H,ue,Mn);let Fe=[...S],It=[...L];re=Array.isArray(re)?[...re]:[re];let tt=[...re],$n=Tr==="reverse"||Tr==="mirror",Ln=Fe,Fn=tt;$n&&(Ln=[...Fe].reverse(),Tr==="reverse"&&(Fn=[...tt].reverse().map(fe=>typeof fe=="function"?ke(fe):fe)));for(let fe=0;fe<ue;fe++){let Bn=$n&&fe%2===0,zn=Bn?Ln:Fe,Xo=Bn?Fn:tt,Kn=(fe+1)*(1+Le);Le>0&&(S.push(S[S.length-1]),L.push(Kn),re.push("linear")),S.push(...zn);for(let rt=0;rt<zn.length;rt++)L.push(It[rt]+Kn),re.push(rt===0?"linear":mt(Xo,rt-1))}go(L,ue,Le)}let Wn=In+H;ho(I,S,re,L,In,Wn),T=Math.max(Cn+H,T),m=Math.max(Wn,m)};if(We(d)){let E=xo(d,l);A(v,w,vo("default",E))}else{let E=pr(d,v,n,u),k=E.length;for(let I=0;I<k;I++){v=v,w=w;let y=E[I],x=xo(y,l);for(let S in v)A(v[S],Wa(w,S),vo(S,x),I,k)}}f=c,c+=T}return l.forEach((p,h)=>{for(let d in p){let v=p[d];v.sort(yo);let w=[],T=[],A=[];for(let y=0;y<v.length;y++){let{at:x,value:S,easing:M}=v[y];w.push(S),T.push(ie(0,m,x)),A.push(M||"easeOut")}T[0]!==0&&(T.unshift(0),w.unshift(w[0]),A.unshift(Ia)),T[T.length-1]!==1&&(T.push(1),w.push(null)),s.has(h)||s.set(h,{keyframes:{},transition:{}});let E=s.get(h);E.keyframes[d]=w;let{type:k,...I}=t;E.transition[d]={...I,duration:m,ease:A,times:T,...r}}}),s}function xo(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function vo(e,t){return t[e]||(t[e]=[]),t[e]}function Ra(e){return Array.isArray(e)?e:[e]}function Wa(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var $a=e=>typeof e=="number",La=e=>e.every($a);function Fa(e,t){return We(e)||typeof e=="number"||typeof e=="string"&&!Pt(t)}function dr(e,t,r,n){let o=[];if(Fa(e,t))o.push(hn(e,Pt(t)&&t.default||t,r&&(r.default||r)));else{if(e==null)return o;let i=pr(e,t,n),s=i.length;K(!!s,"No valid elements provided.","no-valid-elements");for(let l=0;l<s;l++){let u=i[l],a={...r};"delay"in a&&typeof a.delay=="function"&&(a.delay=a.delay(l,s)),u instanceof Element?o.push(...an(u,t,a,dn.get(u))):o.push(...Mt(tn(u)??ln,u,t,a))}}return o}function wo(e,t,r){let n=[],o=e.map(s=>{if(Array.isArray(s)&&typeof s[0]=="function"){let l=s[0],u=Re(0);return u.on("change",l),s.length===1?[u,[0,1]]:s.length===2?[u,[0,1],s[1]]:[u,s[1],s[2]]}return s});return bo(o,t,r,{spring:se}).forEach(({keyframes:s,transition:l},u)=>{n.push(...dr(u,s,l))}),n}function Ba(e){return Array.isArray(e)&&e.some(Array.isArray)}function To(e={}){let{scope:t,reduceMotion:r,skipAnimations:n}=e;function o(i,s,l){let u=[],a,f={};if(r!==void 0&&(f.reduceMotion=r),n!==void 0&&(f.skipAnimations=n),Ba(i)){let{onComplete:m,...p}=s||{};typeof m=="function"&&(a=m),u=wo(i,{...f,...p},t)}else{let{onComplete:m,...p}=l||{};typeof m=="function"&&(a=m),u=dr(i,s,{...f,...p},t)}let c=new Ot(u);return a&&c.finished.then(a),t&&(t.animations.push(c),c.finished.then(()=>{ne(t.animations,c)})),c}return o}var xn=Object.assign(To(),{addEffect:en,removeEffect:ir});function Qe(e){return typeof window>"u"?!1:e?_r():kt()}var za=50,So=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Eo=()=>({time:0,x:So(),y:So()}),Ka={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Ao(e,t,r,n){let o=r[t],{length:i,position:s}=Ka[t],l=o.current,u=r.time;o.current=Math.abs(e[`scroll${s}`]),o.scrollLength=e[`scroll${i}`]-e[`client${i}`],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=ie(0,o.scrollLength,o.current);let a=n-u;o.velocity=a>za?0:Ne(o.current-l,a)}function No(e,t,r){Ao(e,"x",t,r),Ao(e,"y",t,r),t.time=r}function ko(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if(be(n))r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n.tagName==="svg"){let o=n.getBoundingClientRect();n=n.parentElement;let i=n.getBoundingClientRect();r.x+=o.left-i.left,r.y+=o.top-i.top}else if(n instanceof SVGGraphicsElement){let{x:o,y:i}=n.getBBox();r.x+=o,r.y+=i;let s=null,l=n.parentNode;for(;!s;)l.tagName==="svg"&&(s=l),l=n.parentNode;n=s}else break;return r}var hr={start:0,center:.5,end:1};function vn(e,t,r=0){let n=0;if(e in hr&&(e=hr[e]),typeof e=="string"){let o=parseFloat(e);e.endsWith("px")?n=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?n=o/100*document.documentElement.clientWidth:e.endsWith("vh")?n=o/100*document.documentElement.clientHeight:e=o}return typeof e=="number"&&(n=t*e),r+n}var ja=[0,0];function Vo(e,t,r,n){let o=Array.isArray(e)?e:ja,i=0,s=0;return typeof e=="number"?o=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,hr[e]?e:"0"]),i=vn(o[0],r,n),s=vn(o[1],t),i-s}var $e={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]};var _a={x:0,y:0};function Ga(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function Oo(e,t,r){let{offset:n=$e.All}=r,{target:o=e,axis:i="y"}=r,s=i==="y"?"height":"width",l=o!==e?ko(o,e):_a,u=o===e?{width:e.scrollWidth,height:e.scrollHeight}:Ga(o),a={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let f=!t[i].interpolate,c=n.length;for(let m=0;m<c;m++){let p=Vo(n[m],a[s],u[s],l[i]);!f&&p!==t[i].interpolatorOffsets[m]&&(f=!0),t[i].offset[m]=p}f&&(t[i].interpolate=bt(t[i].offset,Ve(n),{clamp:!1}),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=R(0,1,t[i].interpolate(t[i].current))}function Ua(e,t=e,r){if(r.x.targetOffset=0,r.y.targetOffset=0,t!==e){let n=t;for(;n&&n!==e;)r.x.targetOffset+=n.offsetLeft,r.y.targetOffset+=n.offsetTop,n=n.offsetParent}r.x.targetLength=t===e?t.scrollWidth:t.clientWidth,r.y.targetLength=t===e?t.scrollHeight:t.clientHeight,r.x.containerLength=e.clientWidth,r.y.containerLength=e.clientHeight}function Mo(e,t,r,n={}){return{measure:o=>{Ua(e,n.target,r),No(e,r,o),(n.offset||n.target)&&Oo(e,r,n)},notify:()=>t(r)}}var et=new WeakMap,Co=new WeakMap,bn=new WeakMap,Po=new WeakMap,gr=new WeakMap,Do=e=>e===document.scrollingElement?window:e;function yr(e,{container:t=document.scrollingElement,trackContentSize:r=!1,...n}={}){if(!t)return j;let o=bn.get(t);o||(o=new Set,bn.set(t,o));let i=Eo(),s=Mo(t,e,i,n);if(o.add(s),!et.has(t)){let u=()=>{for(let m of o)m.measure(U.timestamp);C.preUpdate(a)},a=()=>{for(let m of o)m.notify()},f=()=>C.read(u);et.set(t,f);let c=Do(t);window.addEventListener("resize",f),t!==document.documentElement&&Co.set(t,pn(t,f)),c.addEventListener("scroll",f),f()}if(r&&!gr.has(t)){let u=et.get(t),a={width:t.scrollWidth,height:t.scrollHeight};Po.set(t,a);let f=()=>{let m=t.scrollWidth,p=t.scrollHeight;(a.width!==m||a.height!==p)&&(u(),a.width=m,a.height=p)},c=C.read(f,!0);gr.set(t,c)}let l=et.get(t);return C.read(l,!1,!0),()=>{pe(l);let u=bn.get(t);if(!u||(u.delete(s),u.size))return;let a=et.get(t);et.delete(t),a&&(Do(t).removeEventListener("scroll",a),Co.get(t)?.(),window.removeEventListener("resize",a));let f=gr.get(t);f&&(pe(f),gr.delete(t)),Po.delete(t)}}var Ya=[[$e.Enter,"entry"],[$e.Exit,"exit"],[$e.Any,"cover"],[$e.All,"contain"]],Io={start:0,end:1};function Ha(e){let t=e.trim().split(/\s+/);if(t.length!==2)return;let r=Io[t[0]],n=Io[t[1]];if(!(r===void 0||n===void 0))return[r,n]}function Xa(e){if(e.length!==2)return;let t=[];for(let r of e)if(Array.isArray(r))t.push(r);else if(typeof r=="string"){let n=Ha(r);if(!n)return;t.push(n)}else return;return t}function qa(e,t){let r=Xa(e);if(!r)return!1;for(let n=0;n<2;n++){let o=r[n],i=t[n];if(o[0]!==i[0]||o[1]!==i[1])return!1}return!0}function xr(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(let[t,r]of Ya)if(qa(e,t))return{rangeStart:`${r} 0%`,rangeEnd:`${r} 100%`}}var Ro=new Map;function Wo(e){let t={value:0},r=yr(n=>{t.value=n[e.axis].progress*100},e);return{currentTime:t,cancel:r}}function vr({source:e,container:t,...r}){let{axis:n}=r;e&&(t=e);let o=Ro.get(t);o||(o=new Map,Ro.set(t,o));let i=r.target??"self",s=o.get(i);s||(s={},o.set(i,s));let l=n+(r.offset??[]).join(",");return s[l]||(r.target&&Qe(r.target)?xr(r.offset)?s[l]=new ViewTimeline({subject:r.target,axis:n}):s[l]=Wo({container:t,...r}):Qe()?s[l]=new ScrollTimeline({source:t,axis:n}):s[l]=Wo({container:t,...r})),s[l]}function $o(e,t){let r=vr(t),n=t.target?xr(t.offset):void 0,o=t.target?Qe(t.target)&&!!n:Qe();return e.attachTimeline({timeline:o?r:void 0,...n&&o&&{rangeStart:n.rangeStart,rangeEnd:n.rangeEnd},observe:i=>(i.pause(),Ct(s=>{i.time=i.iterationDuration*s},r))})}function Lo(e){return e&&(e.target||e.offset)}function Za(e){return e.length===2}function Fo(e,t){return Za(e)||Lo(t)?yr(r=>{e(r[t.axis].progress,r)},t):Ct(e,vr(t))}function wn(e,{axis:t="y",container:r=document.scrollingElement,...n}={}){if(!r)return j;let o={axis:t,container:r,...n};return typeof e=="function"?Fo(e,o):$o(e,o)}var Ja={some:0,all:1};function Tn(e,t,{root:r,margin:n,amount:o="some"}={}){let i=ce(e),s=new WeakMap,l=a=>{a.forEach(f=>{let c=s.get(f.target);if(f.isIntersecting!==!!c)if(f.isIntersecting){let m=t(f.target,f);typeof m=="function"?s.set(f.target,m):u.unobserve(f.target)}else typeof c=="function"&&(c(f),s.delete(f.target))})},u=new IntersectionObserver(l,{root:r,rootMargin:n,threshold:typeof o=="number"?o:Ja[o]});return i.forEach(a=>u.observe(a)),()=>u.disconnect()}var Sn=["react","vue","vanilla","react-native"],$=["react","vue","vanilla"],Te=(e,t,r)=>({id:`gesture.${e}`,category:"gesture",label:`animate-${e}:`,snippet:`animate-${e}:`,description:r,motionKey:t,platforms:Sn}),Bo=[Te("hover","whileHover","Animate while an element is hovered."),Te("tap","whileTap","Animate while an element is pressed."),Te("focus","whileFocus","Animate while an element has focus."),Te("inview","whileInView","Animate while an element is in view."),Te("drag","whileDrag","Animate while an element is dragged."),Te("initial","initial","Set the state before an animation begins."),Te("enter","animate","Animate to a state when an element enters."),Te("exit","exit","Animate to a state when an element exits.")],Qa=[{id:"modifier.motion-reduce",category:"modifier",label:"motion-reduce:",snippet:"motion-reduce:",description:"Apply the wrapped class only when `prefers-reduced-motion: reduce` is active.",platforms:$},{id:"modifier.motion-safe",category:"modifier",label:"motion-safe:",snippet:"motion-safe:",description:"Apply the wrapped class only when `prefers-reduced-motion: no-preference` is active.",platforms:$}],b=(e,t,r,n,o=Sn)=>({id:`property.${e.replace(/[^a-z0-9]+/gi,"-").replace(/^-|-$/g,"")}`,category:"property",label:e,snippet:t,motionKey:r,description:n,platforms:o}),el=[b("scale-","scale-${1:110}","scale","Scale (100 is the resting value)."),b("scale-x-","scale-x-${1:110}","scaleX","Scale on the x axis."),b("scale-y-","scale-y-${1:110}","scaleY","Scale on the y axis."),b("scale-z-","scale-z-${1:110}","scaleZ","Scale on the z axis.",$),b("rotate-","rotate-${1:45}","rotate","Rotate in degrees."),b("rotate-x-","rotate-x-${1:45}","rotateX","Rotate around the x axis."),b("rotate-y-","rotate-y-${1:45}","rotateY","Rotate around the y axis."),b("x-","x-${1:20}","x","Translate on the x axis."),b("y-","y-${1:20}","y","Translate on the y axis."),b("z-","z-${1:20}","z","Translate on the z axis.",$),{id:"property.z-zIndex",category:"property",label:"z-",snippet:"z-${1|0,10,20,30,40,50,auto|}",motionKey:"zIndex",description:"Animate z-index (Tailwind values: 0, 10, 20, 30, 40, 50, auto). Non-standard values translate on the z axis instead.",platforms:$},b("skew-x-","skew-x-${1:12}","skewX","Skew on the x axis."),b("skew-y-","skew-y-${1:12}","skewY","Skew on the y axis."),b("origin-x-","origin-x-${1:50}","originX","Set the x transform origin.",$),b("origin-y-","origin-y-${1:50}","originY","Set the y transform origin.",$),b("perspective-","perspective-${1:800}","perspective","Set 3D perspective.",$),b("opacity-","opacity-${1:0}","opacity","Animate opacity (0\u2013100)."),b("blur-","blur-${1:10}","filter","Animate CSS blur.",$),b("brightness-","brightness-${1:120}","filter","Animate CSS brightness.",$),b("contrast-","contrast-${1:120}","filter","Animate CSS contrast.",$),b("saturate-","saturate-${1:120}","filter","Animate CSS saturation.",$),b("grayscale-","grayscale-${1:100}","filter","Animate CSS grayscale.",$),b("backdrop-blur-","backdrop-blur-${1:10}","backdropFilter","Animate backdrop blur.",$),b("w-","w-${1:100}","width","Animate width."),b("h-","h-${1:100}","height","Animate height."),b("rounded-","rounded-${1:12}","borderRadius","Animate border radius."),b("rounded-tl-","rounded-tl-${1:12}","borderTopLeftRadius","Animate top-left border radius."),b("rounded-tr-","rounded-tr-${1:12}","borderTopRightRadius","Animate top-right border radius."),b("rounded-bl-","rounded-bl-${1:12}","borderBottomLeftRadius","Animate bottom-left border radius."),b("rounded-br-","rounded-br-${1:12}","borderBottomRightRadius","Animate bottom-right border radius."),b("top-","top-${1:0}","top","Animate top position."),b("left-","left-${1:0}","left","Animate left position."),b("right-","right-${1:0}","right","Animate right position."),b("bottom-","bottom-${1:0}","bottom","Animate bottom position."),b("p-","p-${1:16}","padding","Animate padding."),b("m-","m-${1:16}","margin","Animate margin."),b("gap-","gap-${1:8}","gap","Animate gap."),b("text-size-","text-size-${1:16}","fontSize","Animate font size."),b("tracking-","tracking-${1:1}","letterSpacing","Animate letter spacing."),b("leading-","leading-${1:24}","lineHeight","Animate line height."),b("border-w-","border-w-${1:2}","borderWidth","Animate border width."),b("bg-#","bg-#${1:c8ff2e}","backgroundColor","Animate background color."),b("text-#","text-#${1:ffffff}","color","Animate text color."),b("border-#","border-#${1:c8ff2e}","borderColor","Animate border color."),b("path-length-","path-length-${1:1}","pathLength","Animate SVG path length.",$),b("text-shadow-[","text-shadow-[${1:value}]","textShadow","Animate text shadow (arbitrary value; underscores become spaces).",$),b("[=]","[${1:property}=${2:value}]","arbitrary","Animate an allow-listed arbitrary value.",$)],N=(e,t,r,n,o=Sn)=>({id:`${e}.${t}`,category:e,label:`animate-${t}`,snippet:`animate-${r}`,description:n,platforms:o}),tl=[N("transition","duration-","duration-${1:300}","Duration in milliseconds."),N("transition","delay-","delay-${1:100}","Delay in milliseconds."),N("transition","ease-in","ease-in","Ease into the animation."),N("transition","ease-out","ease-out","Ease out of the animation."),N("transition","ease-in-out","ease-in-out","Ease in and out."),N("transition","ease-linear","ease-linear","Use linear easing."),N("transition","spring","spring","Use spring physics."),N("transition","stiffness-","stiffness-${1:300}","Spring stiffness."),N("transition","damping-","damping-${1:24}","Spring damping."),N("transition","bounce-","bounce-${1:20}","Spring bounce (0\u2013100)."),N("transition","mass-","mass-${1:10}","Spring mass in tenths."),N("transition","repeat-","repeat-${1:2}","Repeat count."),N("transition","repeat-infinite","repeat-infinite","Repeat forever."),N("transition","repeat-reverse","repeat-reverse","Reverse each repetition."),N("transition","stagger-","stagger-${1:60}","Stagger children in milliseconds."),N("transition","delay-children-","delay-children-${1:100}","Delay child animations."),N("viewport","once","once","Run an in-view animation once."),N("viewport","amount-","amount-${1:50}","Required visible amount."),N("viewport","margin-","margin-${1:100}","Viewport margin in pixels."),N("scroll","scroll-axis-x","scroll-axis-x","Use horizontal scroll progress.",$),N("scroll","scroll-container","scroll-container","Track the page scroll container.",$),N("drag","drag-x","drag-x","Enable horizontal drag.",["react","vue","react-native"]),N("drag","drag-y","drag-y","Enable vertical drag.",["react","vue","react-native"]),N("drag","drag-both","drag-both","Enable drag on both axes.",["react","vue","react-native"]),N("drag","drag-elastic-","drag-elastic-${1:50}","Set drag elasticity.",["react","vue","react-native"]),N("drag","drag-snap","drag-snap","Snap drag to its origin.",["react","vue","react-native"]),N("layout","layout","layout","Animate layout changes.",["react","vue"]),N("layout","layout-position","layout-position","Animate layout position.",["react","vue"]),N("layout","layout-size","layout-size","Animate layout size.",["react","vue"]),N("layout","layout-id-","layout-id-${1:shared}","Set a shared layout id.",["react","vue"]),N("variant","from-","from-${1:hidden}","Select the initial named variant.",["react","vue","react-native"]),N("variant","to-","to-${1:visible}","Select the active named variant.",["react","vue","react-native"]),N("preset","preset-","preset-${1:button-press}","Apply a configured animation preset.")],Zx=[...Bo,...Qa,...el,...tl],An=Object.fromEntries(Bo.map(e=>[e.label.slice(8,-1),e.motionKey])),zo=new Set(Object.keys(An)),Ko={"ease-in":"easeIn","ease-out":"easeOut","ease-in-out":"easeInOut","ease-linear":"linear","ease-circ-in":"circIn","ease-circ-out":"circOut","ease-circ-in-out":"circInOut","ease-back-in":"backIn","ease-back-out":"backOut","ease-back-in-out":"backInOut","ease-anticipate":"anticipate"};var V={maintainer:"motionwind/core",version:"1.0.0",compatibleCore:">=2.0.0 <3",bundleImpact:"Preset only; no runtime code added."},O=e=>`https://github.com/piyushzingade/motionwind/tree/main/registry/recipes/${e}.json`,rl=[{id:"button-press",name:"Button press",description:"A compact spring response for primary actions.",category:"interaction",classes:"animate-hover:scale-105 animate-tap:scale-95 animate-spring animate-stiffness-420 animate-damping-24",accessibility:"Preserves keyboard focus and does not communicate state through motion alone.",adapters:["react","vue","vanilla","react-native"],...V,source:O("button-press")},{id:"dialog-enter",name:"Dialog entrance",description:"Fade and lift a dialog into place without excessive travel.",category:"entrance",classes:"animate-initial:opacity-0 animate-initial:y-12 animate-enter:opacity-100 animate-enter:y-0 animate-duration-240 animate-ease-out",accessibility:"Pair with a focus trap and disable transform movement for reduced-motion users.",adapters:["react","vue","vanilla","react-native"],...V,source:O("dialog-enter")},{id:"list-stagger",name:"List stagger",description:"A restrained stagger for newly revealed collections.",category:"entrance",classes:"animate-stagger-55 animate-delay-children-40 animate-when-before",accessibility:"Keep the list readable before and after animation; avoid repeated autoplay.",adapters:["react","vue"],...V,source:O("list-stagger")},{id:"page-reveal",name:"Page reveal",description:"A single-run opacity and vertical reveal for page sections.",category:"scroll",classes:"animate-initial:opacity-0 animate-initial:y-24 animate-inview:opacity-100 animate-inview:y-0 animate-once animate-duration-480 animate-ease-out",accessibility:"Content remains in document order and visible when reduced motion is requested.",adapters:["react","vue","vanilla"],...V,source:O("page-reveal")},{id:"loading-orbit",name:"Loading orbit",description:"A continuous linear rotation for non-blocking progress indicators.",category:"loading",classes:"animate-enter:rotate-360 animate-repeat-infinite animate-duration-900 animate-ease-linear",accessibility:"Add an accessible status label and stop the loop when loading completes.",adapters:["react","vue","vanilla","react-native"],...V,source:O("loading-orbit")},{id:"menu-pop",name:"Menu pop",description:"A fast scale-and-fade entrance for contextual menus.",category:"entrance",classes:"animate-initial:opacity-0 animate-initial:scale-95 animate-enter:opacity-100 animate-enter:scale-100 animate-duration-160 animate-ease-out",accessibility:"Move focus into the menu, return it on close, and preserve arrow-key navigation.",adapters:["react","vue","vanilla","react-native"],...V,source:O("menu-pop")},{id:"accordion-reveal",name:"Accordion reveal",description:"A layout-aware reveal for expandable disclosure content.",category:"layout",classes:"animate-layout-size animate-initial:opacity-0 animate-enter:opacity-100 animate-duration-220 animate-ease-out",accessibility:"Use a native button with aria-expanded and keep content reachable without animation.",adapters:["react","vue"],...V,source:O("accordion-reveal")},{id:"tab-indicator",name:"Tab indicator",description:"A shared-layout spring for an active tab indicator.",category:"layout",classes:"animate-layout-id-active-tab animate-spring animate-stiffness-440 animate-damping-34",accessibility:"Pair with tablist semantics, roving focus, and an independent selected-state cue.",adapters:["react","vue"],...V,source:O("tab-indicator")},{id:"toast-enter",name:"Toast entrance",description:"A short horizontal slide for non-blocking notifications.",category:"entrance",classes:"animate-initial:opacity-0 animate-initial:x-24 animate-enter:opacity-100 animate-enter:x-0 animate-duration-240 animate-ease-out",accessibility:"Use an appropriate live region and provide enough time to read or dismiss the toast.",adapters:["react","vue","vanilla","react-native"],...V,source:O("toast-enter")},{id:"sortable-item",name:"Sortable item",description:"Layout animation and vertical drag feedback for reorderable lists.",category:"interaction",classes:"animate-layout-position animate-drag-y animate-drag-snap animate-drag:scale-103 animate-spring animate-stiffness-360 animate-damping-28",accessibility:"Provide keyboard reordering controls and announce the new item position.",adapters:["react","vue"],...V,source:O("sortable-item")},{id:"svg-line-loader",name:"SVG line loader",description:"Draw and repeat an SVG path for compact progress feedback.",category:"loading",classes:"animate-initial:path-length-0 animate-enter:path-length-1 animate-duration-900 animate-ease-in-out animate-repeat-infinite animate-repeat-reverse",accessibility:"Give the SVG a status label and stop repeating when the operation completes.",adapters:["react","vue","vanilla"],...V,source:O("svg-line-loader")},{id:"scroll-progress",name:"Scroll progress",description:"Map page scroll progress to a horizontal scale indicator.",category:"scroll",classes:"animate-scroll:scaleX-[0,1] animate-scroll-container",accessibility:"Treat the indicator as supplemental; expose document progress in text when it matters.",adapters:["react","vanilla"],...V,source:O("scroll-progress")},{id:"flip-card",name:"Flip card",description:"A 3-D card that rotates 180 degrees around the Y axis on hover.",category:"interaction",classes:"animate-hover:rotate-y-180 animate-duration-480 animate-ease-in-out",accessibility:"Pair with a separate back face and keep both sides keyboard-accessible.",adapters:["react","vue","vanilla"],...V,source:O("flip-card")},{id:"marquee",name:"Marquee",description:"A continuously looping horizontal scroll for text or image strips.",category:"entrance",classes:"animate-initial:x-100pct animate-enter:-x-100pct animate-repeat-infinite animate-ease-linear animate-duration-4000",accessibility:"Pause the marquee on focus or hover; do not convey critical information through motion alone.",adapters:["react","vue","vanilla"],...V,source:O("marquee")},{id:"magnetic-button",name:"Magnetic button",description:"A subtle spring scale that draws attention on hover without moving the element.",category:"interaction",classes:"animate-hover:scale-103 animate-spring animate-stiffness-280 animate-damping-22",accessibility:"Do not use scale change as the only indicator of an interactive element.",adapters:["react","vue","vanilla"],...V,source:O("magnetic-button")},{id:"drawer",name:"Drawer",description:"A side panel that slides in from the edge and returns on exit.",category:"entrance",classes:"animate-initial:x-100pct animate-enter:x-0 animate-exit:x-100pct animate-duration-320 animate-ease-out",accessibility:"Trap focus inside the drawer, return focus on close, and support Escape to dismiss.",adapters:["react","vue","vanilla","react-native"],...V,source:O("drawer")},{id:"tooltip-pop",name:"Tooltip pop",description:"A small scale-and-fade entrance for contextual tooltips.",category:"entrance",classes:"animate-initial:opacity-0 animate-initial:scale-75 animate-enter:opacity-100 animate-enter:scale-100 animate-duration-160 animate-ease-back-out",accessibility:"Use role='tooltip', aria-describedby, and ensure the tooltip is dismissible without a mouse.",adapters:["react","vue","vanilla","react-native"],...V,source:O("tooltip-pop")},{id:"skeleton-pulse",name:"Skeleton pulse",description:"A pulsing opacity loop for placeholder content while data loads.",category:"loading",classes:"animate-initial:opacity-100 animate-enter:opacity-40 animate-repeat-infinite animate-repeat-reverse animate-duration-800 animate-ease-in-out",accessibility:"Announce loading state with aria-busy; remove skeleton when content arrives.",adapters:["react","vue","vanilla","react-native"],...V,source:O("skeleton-pulse")},{id:"shimmer-load",name:"Shimmer load",description:"A left-to-right gradient shimmer applied to a loading overlay.",category:"loading",classes:"animate-initial:-x-100pct animate-enter:x-100pct animate-repeat-infinite animate-duration-1200 animate-ease-in-out",accessibility:"Place the shimmer on a decorative overlay; expose loading status through accessible text.",adapters:["react","vue","vanilla"],...V,source:O("shimmer-load")},{id:"card-hover",name:"Card hover",description:"A spring lift and upward nudge for interactive cards on hover.",category:"interaction",classes:"animate-hover:scale-103 animate-hover:y--4 animate-spring animate-stiffness-380 animate-damping-26",accessibility:"Ensure focus styles are visible and the hover state is not the only interactive cue.",adapters:["react","vue","vanilla"],...V,source:O("card-hover")},{id:"number-counter",name:"Number counter",description:"A fade and rise entrance for statistic values triggered when they scroll into view.",category:"scroll",classes:"animate-initial:opacity-0 animate-initial:y-12 animate-inview:opacity-100 animate-inview:y-0 animate-once animate-duration-400 animate-ease-out",accessibility:"Present the final value in document order and avoid conveying meaning through counting motion.",adapters:["react","vue","vanilla"],...V,source:O("number-counter")},{id:"progress-bar",name:"Progress bar",description:"An animated width fill for a progress bar triggered on scroll into view.",category:"scroll",classes:"animate-initial:w-0 animate-inview:w-100pct animate-once animate-duration-800 animate-ease-out",accessibility:"Use a native progress element or role='progressbar' with aria-valuenow to expose state.",adapters:["react","vue","vanilla"],...V,source:O("progress-bar")},{id:"ripple",name:"Ripple",description:"A radial scale-and-fade burst that emanates from a tap point.",category:"interaction",classes:"animate-initial:scale-0 animate-initial:opacity-100 animate-enter:scale-400 animate-enter:opacity-0 animate-duration-500 animate-ease-out",accessibility:"Use the ripple as a purely decorative effect and do not rely on it to communicate state.",adapters:["react","vue","vanilla"],...V,source:O("ripple")},{id:"blob-morph",name:"Blob morph",description:"An organic border-radius keyframe loop for fluid decorative shapes.",category:"loading",classes:"animate-enter:rounded-[0,30,60,30,0] animate-repeat-infinite animate-duration-3000 animate-ease-in-out animate-repeat-reverse",accessibility:"Use only for decorative elements; apply aria-hidden to prevent interference with screen readers.",adapters:["react","vue","vanilla"],...V,source:O("blob-morph")},{id:"ticker",name:"Ticker",description:"A stock- or news-style ticker where items enter from the right and exit to the left.",category:"entrance",classes:"animate-initial:x-100pct animate-enter:x-0 animate-exit:-x-100pct animate-duration-500 animate-ease-out animate-stagger-150",accessibility:"Provide a way to pause the ticker and make all content available in a static list.",adapters:["react","vue","vanilla"],...V,source:O("ticker")},{id:"popover-reveal",name:"Popover reveal",description:"A short downward fade-in for anchored popovers and dropdowns.",category:"entrance",classes:"animate-initial:opacity-0 animate-initial:y--8 animate-enter:opacity-100 animate-enter:y-0 animate-duration-180 animate-ease-out",accessibility:"Move focus into the popover on open and return it to the trigger on close.",adapters:["react","vue","vanilla","react-native"],...V,source:O("popover-reveal")},{id:"stepper",name:"Stepper",description:"Sequential staggered entrances for step-indicator items.",category:"entrance",classes:"animate-initial:opacity-0 animate-initial:scale-80 animate-enter:opacity-100 animate-enter:scale-100 animate-stagger-80 animate-delay-children-100 animate-duration-200 animate-ease-back-out",accessibility:"Announce the current step and total steps; keep step content readable without animation.",adapters:["react","vue","vanilla","react-native"],...V,source:O("stepper")},{id:"notification-stack",name:"Notification stack",description:"Staggered upward entrances for stacked notification cards.",category:"entrance",classes:"animate-initial:opacity-0 animate-initial:y--20 animate-enter:opacity-100 animate-enter:y-0 animate-stagger-80 animate-duration-260 animate-ease-back-out",accessibility:"Use a live region with aria-live='polite' and provide enough time to read each notification.",adapters:["react","vue","vanilla","react-native"],...V,source:O("notification-stack")},{id:"drag-reorder",name:"Drag reorder",description:"Vertical drag with layout animation for reorderable list items.",category:"interaction",classes:"animate-drag-y animate-layout-position animate-drag:scale-102 animate-spring animate-stiffness-320 animate-damping-30",accessibility:"Provide keyboard controls for reordering and announce the new position after a drop.",adapters:["react","vue"],...V,source:O("drag-reorder")},{id:"parallax-scroll",name:"Parallax scroll",description:"Map scroll progress to a Y translation so a layer moves at a different speed.",category:"scroll",classes:"animate-scroll:y-[-50,50] animate-scroll-container",accessibility:"Respect prefers-reduced-motion; parallax depth cues must not convey meaning exclusively.",adapters:["react","vanilla"],...V,source:O("parallax-scroll")}],jo=Object.fromEntries(rl.map(e=>[e.id,e.classes]));var nl=1e3,Dt=new Map;function il(e){return(typeof e=="string"?e.split(/\s+/):[...e]).filter(Boolean)}function ol(e){let t=Object.assign({},...(e?.plugins??[]).map(r=>r.presets??{}));return{...jo,...t,...e?.presets??{}}}function sl(e,t,r){let n=ol(t),o=[],i=(s,l)=>{if(!s.startsWith("animate-preset-")){let f=s.startsWith("animate-duration-")?s.slice(17):"",c=f?t?.tokens?.durations?.[f]:void 0;if(c!==void 0){o.push(`animate-duration-${c}`);return}let m=s.startsWith("animate-ease-")?s.slice(13):"",p=m?t?.tokens?.easings?.[m]:void 0;if(Array.isArray(p)){o.push(`animate-ease-[${p.join(",")}]`);return}let h=s.startsWith("animate-spring-")?s.slice(15):"",d=h?t?.tokens?.springs?.[h]:void 0;if(d){o.push("animate-spring"),d.stiffness!==void 0&&o.push(`animate-stiffness-${d.stiffness}`),d.damping!==void 0&&o.push(`animate-damping-${d.damping}`),d.bounce!==void 0&&o.push(`animate-bounce-${d.bounce}`),d.mass!==void 0&&o.push(`animate-mass-${d.mass}`);return}o.push(s);return}let u=s.slice(15),a=n[u];if(!a){r.push({code:"unknown-preset",message:`Unknown motionwind preset "${u}".`,severity:t?.strict?"error":"warning",token:s}),o.push(s);return}if(l.includes(u)||l.length>=8){r.push({code:"circular-preset",message:`Circular motionwind preset expansion: ${[...l,u].join(" \u2192 ")}.`,severity:"error",token:s});return}for(let f of il(a))i(f,[...l,u])};for(let s of e.split(/\s+/).filter(Boolean))i(s,[]);return o}function al(e,t,r,n,o,i,s,l,u){for(let[a,f]of Object.entries(e.gestures??{}))t[a]={...t[a]??{},...f??{}};Object.assign(r,e.transition),Object.assign(n,e.viewport),Object.assign(o,e.dragConfig),Object.assign(i,e.layoutConfig),e.scroll&&(Object.assign(s,e.scroll),e.scroll.values&&(s.values={...s.values,...e.scroll.values}));for(let[a,f]of Object.entries(e.variants??{}))l[a]={...l[a]??{},...f};Object.assign(u,e.variantState)}var ll=new Set(["animate-spin","animate-ping","animate-pulse","animate-bounce","animate-none"]);function cl(e,t){if(Dt.size>=nl){let r=Dt.keys().next().value;r!==void 0&&Dt.delete(r)}Dt.set(e,t)}var ul={pct:"%",px:"px",vh:"vh",vw:"vw",rem:"rem",em:"em",dvh:"dvh",svh:"svh",lvh:"lvh"};function z(e,t){if(e==="auto")return"auto";for(let[n,o]of Object.entries(ul))if(e.endsWith(n)){let i=e.slice(0,-n.length),s=Number(i);return isNaN(s)?null:`${s*t}${o}`}let r=Number(e);return isNaN(r)?null:r*t}var fl=new Set(["x","y","z","scale","scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY","originX","originY","originZ","perspective","opacity","filter","backdropFilter","clipPath","width","height","top","left","right","bottom","padding","margin","gap","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderWidth","fontSize","letterSpacing","lineHeight","backgroundColor","color","borderColor","boxShadow","textShadow","zIndex","pathLength","pathOffset","pathSpacing"]);function _o(e){if(e.startsWith("[")&&e.endsWith("]")){let i=e.slice(1,-1),s=i.indexOf("=");if(s===-1)return null;let l=i.slice(0,s);if(!fl.has(l))return null;let u=i.slice(s+1),a=Number(u);return{key:l,value:isNaN(a)?u:a}}let t=!1,r=e;r.startsWith("-")&&(t=!0,r=r.slice(1));let n=t?-1:1,o=r.match(/^(\w+(?:-\w+)?)-\[([^\]]+)\]$/);if(o){let i=o[1],s=o[2],l=dl(i);if(l){let u=s.split(",").reduce((a,f)=>{let c=f.trim();return c&&a.push(c),a},[]);if(u.length>0){let a=new Set(["scale","scaleX","scaleY","scaleZ","opacity","brightness","contrast","saturate"]),f=[],c=!0;for(let m of u){let p=z(m,1);if(p===null){c=!1;break}typeof p=="number"&&a.has(l)?f.push(p/100):f.push(p)}if(c)return{key:l,value:f}}}}if(r.startsWith("scale-z-")){let i=Number(r.slice(8));if(!isNaN(i))return{key:"scaleZ",value:i/100*n}}if(r.startsWith("scale-x-")){let i=Number(r.slice(8));if(!isNaN(i))return{key:"scaleX",value:i/100*n}}if(r.startsWith("scale-y-")){let i=Number(r.slice(8));if(!isNaN(i))return{key:"scaleY",value:i/100*n}}if(r.startsWith("scale-")){let i=Number(r.slice(6));if(!isNaN(i))return{key:"scale",value:i/100*n}}if(r.startsWith("rotate-x-")){let i=Number(r.slice(9));if(!isNaN(i))return{key:"rotateX",value:i*n}}if(r.startsWith("rotate-y-")){let i=Number(r.slice(9));if(!isNaN(i))return{key:"rotateY",value:i*n}}if(r.startsWith("rotate-")){let i=Number(r.slice(7));if(!isNaN(i))return{key:"rotate",value:i*n}}if(r.startsWith("skew-x-")){let i=Number(r.slice(7));if(!isNaN(i))return{key:"skewX",value:i*n}}if(r.startsWith("skew-y-")){let i=Number(r.slice(7));if(!isNaN(i))return{key:"skewY",value:i*n}}if(r.startsWith("skew-")){let i=Number(r.slice(5));if(!isNaN(i))return{key:"skew",value:i*n}}if(r.startsWith("origin-x-")){let i=Number(r.slice(9));if(!isNaN(i))return{key:"originX",value:i/100*n}}if(r.startsWith("origin-y-")){let i=Number(r.slice(9));if(!isNaN(i))return{key:"originY",value:i/100*n}}if(r.startsWith("origin-z-")){let i=Number(r.slice(9));if(!isNaN(i))return{key:"originZ",value:i*n}}if(r.startsWith("perspective-")){let i=Number(r.slice(12));if(!isNaN(i))return{key:"perspective",value:i*n}}if(r.startsWith("x-")){let i=z(r.slice(2),n);if(i!==null)return{key:"x",value:i}}if(r.startsWith("y-")){let i=z(r.slice(2),n);if(i!==null)return{key:"y",value:i}}if(r.startsWith("z-")){let i=r.slice(2);if(i==="auto")return{key:"zIndex",value:"auto"};let s=Number(i);if(!isNaN(s)&&[0,10,20,30,40,50].includes(s))return{key:"zIndex",value:s}}if(r.startsWith("z-")){let i=z(r.slice(2),n);if(i!==null)return{key:"z",value:i}}if(r.startsWith("opacity-")){let i=Number(r.slice(8));if(!isNaN(i))return{key:"opacity",value:i/100*n}}if(r.startsWith("blur-")){let i=Number(r.slice(5));if(!isNaN(i))return{key:"filter",value:`blur(${Math.max(0,i*n)}px)`}}if(r.startsWith("brightness-")){let i=Number(r.slice(11));if(!isNaN(i))return{key:"filter",value:`brightness(${Math.max(0,i/100*n)})`}}if(r.startsWith("contrast-")){let i=Number(r.slice(9));if(!isNaN(i))return{key:"filter",value:`contrast(${Math.max(0,i/100*n)})`}}if(r.startsWith("saturate-")){let i=Number(r.slice(9));if(!isNaN(i))return{key:"filter",value:`saturate(${Math.max(0,i/100*n)})`}}if(r.startsWith("grayscale-")){let i=Number(r.slice(10));if(!isNaN(i))return{key:"filter",value:`grayscale(${Math.max(0,i/100*n)})`}}if(r.startsWith("sepia-")){let i=Number(r.slice(6));if(!isNaN(i))return{key:"filter",value:`sepia(${Math.max(0,i/100*n)})`}}if(r.startsWith("invert-")){let i=Number(r.slice(7));if(!isNaN(i))return{key:"filter",value:`invert(${Math.max(0,i/100*n)})`}}if(r.startsWith("hue-rotate-")){let i=Number(r.slice(11));if(!isNaN(i))return{key:"filter",value:`hue-rotate(${i*n}deg)`}}if(r.startsWith("drop-shadow-")){let i=r.slice(12);if(i.startsWith("[")&&i.endsWith("]"))return{key:"filter",value:`drop-shadow(${i.slice(1,-1).replace(/_/g," ")})`}}if(r.startsWith("backdrop-blur-")){let i=Number(r.slice(14));if(!isNaN(i))return{key:"backdropFilter",value:`blur(${Math.max(0,i*n)}px)`}}if(r.startsWith("clip-")){let i=r.slice(5);if(i.startsWith("[")&&i.endsWith("]"))return{key:"clipPath",value:i.slice(1,-1)}}if(r.startsWith("rounded-tl-")){let i=Number(r.slice(11));if(!isNaN(i))return{key:"borderTopLeftRadius",value:i*n}}if(r.startsWith("rounded-tr-")){let i=Number(r.slice(11));if(!isNaN(i))return{key:"borderTopRightRadius",value:i*n}}if(r.startsWith("rounded-bl-")){let i=Number(r.slice(11));if(!isNaN(i))return{key:"borderBottomLeftRadius",value:i*n}}if(r.startsWith("rounded-br-")){let i=Number(r.slice(11));if(!isNaN(i))return{key:"borderBottomRightRadius",value:i*n}}if(r.startsWith("rounded-")){let i=Number(r.slice(8));if(!isNaN(i))return{key:"borderRadius",value:i*n}}if(r.startsWith("w-")){let i=z(r.slice(2),n);if(i!==null)return{key:"width",value:i}}if(r.startsWith("h-")){let i=z(r.slice(2),n);if(i!==null)return{key:"height",value:i}}if(r.startsWith("top-")){let i=z(r.slice(4),n);if(i!==null)return{key:"top",value:i}}if(r.startsWith("left-")){let i=z(r.slice(5),n);if(i!==null)return{key:"left",value:i}}if(r.startsWith("right-")){let i=z(r.slice(6),n);if(i!==null)return{key:"right",value:i}}if(r.startsWith("bottom-")){let i=z(r.slice(7),n);if(i!==null)return{key:"bottom",value:i}}if(r.startsWith("p-")){let i=z(r.slice(2),n);if(i!==null)return{key:"padding",value:i}}if(r.startsWith("m-")){let i=z(r.slice(2),n);if(i!==null)return{key:"margin",value:i}}if(r.startsWith("gap-")){let i=z(r.slice(4),n);if(i!==null)return{key:"gap",value:i}}if(r.startsWith("text-size-")){let i=z(r.slice(10),n);if(i!==null)return{key:"fontSize",value:i}}if(r.startsWith("tracking-")){let i=z(r.slice(9),n);if(i!==null)return{key:"letterSpacing",value:i}}if(r.startsWith("leading-")){let i=z(r.slice(8),n);if(i!==null)return{key:"lineHeight",value:i}}if(r.startsWith("border-w-")){let i=Number(r.slice(9));if(!isNaN(i))return{key:"borderWidth",value:i*n}}if(r.startsWith("path-length-")){let i=Number(r.slice(12));if(!isNaN(i))return{key:"pathLength",value:i*n}}if(r.startsWith("path-offset-")){let i=Number(r.slice(12));if(!isNaN(i))return{key:"pathOffset",value:i*n}}if(r.startsWith("path-spacing-")){let i=Number(r.slice(13));if(!isNaN(i))return{key:"pathSpacing",value:i*n}}if(r.startsWith("bg-")){let i=r.slice(3);return En(i)?{key:"backgroundColor",value:i}:null}if(r.startsWith("text-shadow-")){let i=r.slice(12);if(i.startsWith("[")&&i.endsWith("]"))return{key:"textShadow",value:i.slice(1,-1).replace(/_/g," ")}}if(r.startsWith("text-")){let i=r.slice(5);return En(i)?{key:"color",value:i}:null}if(r.startsWith("border-")){let i=r.slice(7);return En(i)?{key:"borderColor",value:i}:null}if(r.startsWith("shadow-")){let i=r.slice(7);return i.startsWith("[")&&i.endsWith("]")?{key:"boxShadow",value:i.slice(1,-1)}:null}return null}var ml=/^#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,pl=/^(?:rgb|rgba|hsl|hsla)\(.+\)$/;function En(e){return ml.test(e)||pl.test(e)}function dl(e){return{scale:"scale","scale-x":"scaleX","scale-y":"scaleY","scale-z":"scaleZ",rotate:"rotate","rotate-x":"rotateX","rotate-y":"rotateY",x:"x",y:"y",z:"z",opacity:"opacity","skew-x":"skewX","skew-y":"skewY",skew:"skew",w:"width",h:"height",rounded:"borderRadius","rounded-tl":"borderTopLeftRadius","rounded-tr":"borderTopRightRadius","rounded-bl":"borderBottomLeftRadius","rounded-br":"borderBottomRightRadius","origin-x":"originX","origin-y":"originY","origin-z":"originZ",perspective:"perspective"}[e]??null}function hl(e){let t=e.toLowerCase().replace(/-/g,"");return{x:"x",y:"y",z:"z",opacity:"opacity",rotate:"rotate",rotatex:"rotateX",rotatey:"rotateY",scale:"scale",scalex:"scaleX",scaley:"scaleY"}[t]??null}function gl(e){let t=e.match(/^([\w-]+?)-\[([^\]]+)\]$/);if(!t)return null;let r=hl(t[1]);if(!r)return null;let n=t[2].split(",").map(o=>Number(o.trim()));return n.length<2||n.some(o=>isNaN(o))?null:{key:r,value:n}}function yl(e,t,r,n,o,i,s,l,u){if(!e.startsWith("animate-"))return!1;let a=e.slice(8),f=a.indexOf(":");if(f!==-1){let c=a.slice(0,f),m=a.slice(f+1);if(c==="scroll"){let p=gl(m);return p?(s.values[p.key]=p.value,!0):!1}if(c.startsWith("variant-")){let p=c.slice(8),h=_o(m);if(p&&h){l[p]||(l[p]={});let d=l[p];return(h.key==="filter"||h.key==="backdropFilter")&&typeof h.value=="string"&&typeof d[h.key]=="string"?d[h.key]+=` ${h.value}`:d[h.key]=h.value,!0}return!1}if(zo.has(c)){let p=An[c],h=_o(m);if(h)return t[p]||(t[p]={}),(h.key==="filter"||h.key==="backdropFilter")&&typeof h.value=="string"&&typeof t[p][h.key]=="string"?t[p][h.key]+=` ${h.value}`:t[p][h.key]=h.value,!0}return!1}if(a.startsWith("duration-")){let c=Number(a.slice(9));if(!isNaN(c))return r.duration=c/1e3,!0}if(a.startsWith("delay-children-")){let c=Number(a.slice(15));if(!isNaN(c))return r.delayChildren=c/1e3,!0}if(a.startsWith("delay-")){let c=Number(a.slice(6));if(!isNaN(c))return r.delay=c/1e3,!0}if(a.startsWith("ease-[")&&a.endsWith("]")){let m=a.slice(6,-1).split(",").map(p=>Number(p.trim()));if(m.length===4&&m.every(p=>!isNaN(p)))return r.ease=m,!0}if(a.startsWith("ease-steps-")){let c=Number(a.slice(11));if(!isNaN(c)&&c>0)return r.ease=`steps(${c})`,!0}for(let[c,m]of Object.entries(Ko))if(a===c)return r.ease=m,!0;if(a==="spring")return r.type="spring",!0;if(a.startsWith("stiffness-")){let c=Number(a.slice(10));if(!isNaN(c))return r.stiffness=c,!0}if(a.startsWith("damping-")){let c=Number(a.slice(8));if(!isNaN(c))return r.damping=c,!0}if(a.startsWith("bounce-")){let c=Number(a.slice(7));if(!isNaN(c))return r.bounce=c/100,!0}if(a.startsWith("mass-")){let c=Number(a.slice(5));if(!isNaN(c))return r.mass=c/10,!0}if(a==="repeat-infinite")return r.repeat=1/0,!0;if(a==="repeat-reverse")return r.repeatType="reverse",!0;if(a==="repeat-mirror")return r.repeatType="mirror",!0;if(a.startsWith("repeat-delay-")){let c=Number(a.slice(13));if(!isNaN(c))return r.repeatDelay=c/1e3,!0}if(a.startsWith("repeat-")){let c=Number(a.slice(7));if(!isNaN(c))return r.repeat=c,!0}if(a==="stagger-reverse")return r.staggerDirection=-1,!0;if(a.startsWith("stagger-")){let c=Number(a.slice(8));if(!isNaN(c))return r.staggerChildren=c/1e3,!0}if(a==="when-before")return r.when="beforeChildren",!0;if(a==="when-after")return r.when="afterChildren",!0;if(a.startsWith("rest-speed-")){let c=Number(a.slice(11));if(!isNaN(c))return r.restSpeed=c,!0}if(a.startsWith("rest-delta-")){let c=Number(a.slice(11));if(!isNaN(c))return r.restDelta=c,!0}if(a.startsWith("times-[")&&a.endsWith("]")){let m=a.slice(7,-1).split(",").map(p=>Number(p.trim()));if(!m.some(isNaN))return r.times=m,!0}if(a==="once")return n.once=!0,!0;if(a==="amount-all")return n.amount="all",!0;if(a.startsWith("amount-")){let c=Number(a.slice(7));if(!isNaN(c))return n.amount=c/100,!0}if(a.startsWith("margin-")){let c=Number(a.slice(7));if(!isNaN(c))return n.margin=`${c}px`,!0}if(a==="scroll-axis-x")return s.axis="x",!0;if(a==="scroll-axis-y")return s.axis="y",!0;if(a==="scroll-container")return s.container=!0,!0;if(a.startsWith("scroll-offset-[")&&a.endsWith("]")){let m=a.slice(15,-1).split(",").map(p=>p.trim().replace(/_/g," "));if(m.length===2)return s.offset=[m[0],m[1]],!0}if(a.startsWith("from-")){let c=a.slice(5);if(c&&!/\s/.test(c))return u.initial=c,!0}if(a.startsWith("to-")){let c=a.slice(3);if(c&&!/\s/.test(c))return u.animate=c,!0}if(a.startsWith("exit-")){let c=a.slice(5);if(c&&!/\s/.test(c))return u.exit=c,!0}if(a==="drag-x")return o.drag="x",!0;if(a==="drag-y")return o.drag="y",!0;if(a==="drag-both")return o.drag=!0,!0;if(a.startsWith("drag-elastic-")){let c=Number(a.slice(13));if(!isNaN(c))return o.dragElastic=c/100,!0}if(a==="drag-snap")return o.dragSnapToOrigin=!0,!0;if(a==="drag-no-momentum")return o.dragMomentum=!1,!0;if(a==="drag-lock")return o.dragDirectionLock=!0,!0;if(a.startsWith("drag-constraint-")){let c=a.slice(16),m={"t-":"top","l-":"left","r-":"right","b-":"bottom"};for(let[p,h]of Object.entries(m))if(c.startsWith(p)){let d=Number(c.slice(2));if(!isNaN(d))return o.dragConstraints||(o.dragConstraints={}),o.dragConstraints[h]=d,!0}}if(a==="layout")return i.layout=!0,!0;if(a==="layout-position")return i.layout="position",!0;if(a==="layout-size")return i.layout="size",!0;if(a==="layout-preserve")return i.layout="preserve-aspect",!0;if(a==="layout-scroll")return i.layoutScroll=!0,!0;if(a==="layout-root")return i.layoutRoot=!0,!0;if(a.startsWith("layout-id-")){let c=a.slice(10);return c&&!/\s/.test(c)?(i.layoutId=c,!0):!1}return!1}function Nn(e,t){let r=t?void 0:Dt.get(e);if(r)return r;let n=[],o=sl(e,t,n),i=[],s={},l={},u={},a={},f={},c={axis:"y",container:!1,values:{}},m={},p={},h;for(let w of o){let T=w;if(w.startsWith("motion-reduce:")?(h="reduce",T=w.slice(14)):w.startsWith("motion-safe:")&&(h="safe",T=w.slice(12)),!T)continue;let A=yl(T,s,l,u,a,f,c,m,p);if(!A){let E=T.startsWith("animate-ease-")?T.slice(13):"",k=E?t?.tokens?.easings?.[E]:void 0;typeof k=="string"&&(l.ease=k,A=!0)}if(!A)for(let E of t?.plugins??[]){let k=E.transformToken?.(T,{config:t});if(k){al(k,s,l,u,a,f,c,m,p),A=!0;break}}A||(T.startsWith("animate-")&&!ll.has(T)&&n.push({code:"unknown-class",message:`Unrecognized motionwind class "${T}".`,severity:t?.strict?"error":"warning",token:T}),i.push(T))}let d=Object.keys(s).length>0||Object.keys(l).length>0||Object.keys(u).length>0||Object.keys(a).length>0||Object.keys(f).length>0||Object.keys(c.values).length>0||Object.keys(m).length>0||Object.keys(p).length>0,v={tailwindClasses:i.join(" "),gestures:s,transition:l,viewport:u,dragConfig:a,layoutConfig:f,scroll:c,variants:m,variantState:p,hasMotion:d,...h!==void 0&&{reducedMotionPolicy:h},diagnostics:n};for(let w of t?.plugins??[]){let T=w.diagnose?.(e,v,{config:t})??[];n.push(...T.map(A=>({...A,plugin:w.name})))}return t||cl(e,v),v}function kn(e,t){let r=[];Object.keys(e.gestures).length>0&&!t.gestures&&r.push("gestures"),Object.keys(e.scroll.values).length>0&&!t.scroll&&r.push("scroll"),Object.keys(e.layoutConfig).length>0&&!t.layout&&r.push("layout"),Object.keys(e.dragConfig).length>0&&!t.drag&&r.push("drag"),(Object.keys(e.variants).length>0||Object.keys(e.variantState).length>0)&&!t.variants&&r.push("variants");let n=new Set(["pathLength","pathOffset","pathSpacing"]);return!t.svg&&Object.values(e.gestures).some(o=>Object.keys(o??{}).some(i=>n.has(i)))&&r.push("svg"),r}var xl={scale:1,scaleX:1,scaleY:1,opacity:1,x:0,y:0,z:0,rotate:0,rotateX:0,rotateY:0,skewX:0,skewY:0},vl=["duration","delay","ease","type","stiffness","damping","mass","bounce","repeat","repeatType","repeatDelay","times"];function Go(e){let t={};for(let r of vl)e[r]!==void 0&&(t[r]=e[r]);return t}function Vn(e){let t=new Set;for(let i of[e.gestures.whileHover,e.gestures.whileTap,e.gestures.whileFocus,e.gestures.whileInView])i&&Object.keys(i).forEach(s=>t.add(s));let r={},n=e.gestures.animate,o=e.gestures.initial;for(let i of t){let s=n?.[i]??o?.[i]??xl[i]??0;r[i]=s}return r}function Uo(e,t){let r={};for(let n of Object.keys(t))e[n]!==void 0&&(r[n]=e[n]);return r}function Yo(e,t){return{...Vn(e),...t.focused?e.gestures.whileFocus:void 0,...t.hovered?e.gestures.whileHover:void 0,...t.pressed?e.gestures.whileTap:void 0}}var On={gestures:!0,scroll:!0,layout:!1,drag:!1,variants:!0,svg:!0,"reduced-motion":!0},fv={name:"motionwind-vanilla",version:"2.0.0",capabilities:On,compile(e){return e}};var Se=xn;function bl(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function wl(e){let{variants:t,variantState:r,gestures:n}=e,o=Object.keys(t).length>0;return{initial:(o&&r.initial?t[r.initial]:void 0)??n.initial,animate:(o&&r.animate?t[r.animate]:void 0)??n.animate,exit:(o&&r.exit?t[r.exit]:void 0)??n.exit}}function Tl(e,t,r){let n=Go(t.transition),o=Vn(t),i=[],s=wl(t),l=t.gestures.whileHover,u=t.gestures.whileTap,a=t.gestures.whileFocus,f=!1,c=!1,m=!1,p=()=>{let v=Yo(t,{focused:m,hovered:f,pressed:c});Object.keys(v).length>0&&Se(e,v,n)};if(t.tailwindClasses?e.setAttribute("class",t.tailwindClasses):e.removeAttribute("class"),r){let v={...s.animate??{},...t.gestures.whileInView??{}};return Object.keys(v).length>0&&Se(e,v,{duration:0}),()=>{}}s.initial&&Se(e,s.initial,{duration:0}),s.animate&&Se(e,s.animate,n);let h=s.exit;if(h&&Object.keys(h).length>0){let v=()=>{Se(e,h,{...n,onComplete:()=>e.remove()})};e.addEventListener("motionwind:remove",v),i.push(()=>e.removeEventListener("motionwind:remove",v))}if(l&&i.push(cn(e,()=>(f=!0,p(),()=>{f=!1,p()}))),u&&i.push(mn(e,()=>(c=!0,p(),()=>{c=!1,p()}))),a){let v=()=>{m=!0,p()},w=()=>{m=!1,p()};e.addEventListener("focus",v),e.addEventListener("blur",w),i.push(()=>{e.removeEventListener("focus",v),e.removeEventListener("blur",w)})}let d=t.gestures.whileInView;if(d){let v={};t.viewport.amount!==void 0&&(v.amount=t.viewport.amount),t.viewport.margin!==void 0&&(v.margin=t.viewport.margin),i.push(Tn(e,()=>{if(Se(e,d,n),!t.viewport.once)return()=>Se(e,Uo(o,d),n)},v))}if(Object.keys(t.scroll.values).length>0){let v=t.scroll.container?{axis:t.scroll.axis}:{target:e,axis:t.scroll.axis,offset:t.scroll.offset},w=wn(Se(e,t.scroll.values,{ease:"linear"}),v);typeof w=="function"&&i.push(w)}return()=>i.forEach(v=>v())}function br(e={}){let t=e.root??(typeof document<"u"?document:null);if(!t)return()=>{};let r=e.selector??'[class*="animate-"]',n=(e.respectReducedMotion??!0)&&bl(),o=[],i=s=>{try{let l=Nn(s.getAttribute("class")??"",e.config),u=kn(l,On);u.length&&typeof console<"u"&&console.warn(`[motionwind-vanilla] Unsupported capabilities: ${u.join(", ")}.`,s),l.hasMotion&&o.push(Tl(s,l,n))}catch(l){typeof console<"u"&&console.warn("[motionwind-vanilla] failed to animate an element; skipping it.",s,l)}};if(t.querySelectorAll(r).forEach(i),e.observe&&typeof MutationObserver<"u"){let s=t instanceof Document?t.body??t.documentElement:t,l=new MutationObserver(u=>{for(let a of u)a.addedNodes.forEach(f=>{f instanceof Element&&(f.matches(r)&&i(f),f.querySelectorAll(r).forEach(i))})});l.observe(s,{childList:!0,subtree:!0}),o.push(()=>l.disconnect())}return()=>o.forEach(s=>s())}if(typeof document<"u"){let e=()=>br();document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}var Sl=br;return ts(Al);})();
|
|
2
|
+
//# sourceMappingURL=motionwind.global.js.map
|