@ssgoi/core 7.3.0-beta.4 → 7.3.1

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/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var Oe=Object.defineProperty;var Me=(t,e,n)=>e in t?Oe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var M=(t,e,n)=>Me(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index-CtyacfH7.cjs"),b=require("./retain-opacity-BrtENsD0.cjs"),S=require("./provider-JDtJ5Jzf.cjs"),z=require("./page-motion-Dhj3UfzO.cjs");class ae{constructor(e){M(this,"durationSec");this.durationSec=Math.max(1/60,e.durationSec)}step(e,n,o){const i=n-e.position;if(i===0)return e;const r=Math.sign(i),c=Math.abs(i)/this.durationSec,s=r*c*o,l=e.position+s;return(r>0?l>=n:l<=n)?{position:n,velocity:0}:{position:l,velocity:r*c}}isSettled(e,n){return Math.abs(e.position-n)<S.POSITION_THRESHOLD}}function Rt(t,e){function n(r){let c=0,s=0;const l=r.offsetWidth,a=r.offsetHeight;let d=r;for(;d;)c+=d.offsetTop,s+=d.offsetLeft,d=d.offsetParent;return c-=window.scrollY,s-=window.scrollX,{top:c,left:s,width:l,height:a}}const o=n(t),i=n(e);return new DOMRect(i.left-o.left,i.top-o.top,i.width,i.height)}function L(t,e){const n=t.getBoundingClientRect(),o=e.getBoundingClientRect(),i=(s,l)=>l>0&&Math.abs(s-l)>.5?s/l:1,r=i(n.width,t.offsetWidth),c=i(n.height,t.offsetHeight);return new DOMRect((o.left-n.left)/r,(o.top-n.top)/c,o.width/r,o.height/c)}function N(t,e){const{scrollingElement:n,positionedParent:o}=t,i=n!==o&&n.contains(o)?Rt(n,o).top:0;return{top:t[e].scroll.y,left:0,width:n.clientWidth,height:n.clientHeight-i}}function ce(t,e){const{scrollingElement:n,positionedParent:o}=t,i=n!==o&&n.contains(o)?Rt(n,o).top:0;return{top:t[e].scroll.y-i,height:n.clientHeight}}const Dt=8,Ft={spring:{stiffness:600,damping:40,doubleSpring:1.2}};function Te({direction:t}){const e=t==="forward"?Dt:-Dt;return{out:{willChange:"transform, opacity",startStyle:{},animate:n=>({opacity:`${1-n}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(${e}px, 0, 0)`,opacity:"0"},animate:n=>({transform:`translate3d(${e*(1-n)}px, 0, 0)`,opacity:`${n}`})}}}function _e(){return{outPhysics:Ft,inPhysics:Ft,composition:{mode:"parallel",startAt:[0,0]},build:Te}}const Yt=30,ke={inertia:{acceleration:150,resistance:1.5,restDelta:.1}},De={spring:{stiffness:180,damping:34,restDelta:.1,restSpeed:.1}};function Fe({direction:t}){const e=t==="forward"?1:-1,n=-Yt*e,o=Yt*e;return{out:{willChange:"transform, opacity",startStyle:{},animate:i=>({transform:`translate3d(${n*i}px, 0, 0)`,opacity:`${1-i}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(${o}px, 0, 0)`,opacity:"0"},animate:i=>({transform:`translate3d(${o*(1-i)}px, 0, 0)`,opacity:`${i}`})}}}function Ye(){return{outPhysics:ke,inPhysics:De,composition:{mode:"sequence"},build:Fe}}const Le={snappy:_e(),fluid:Ye()},Lt=8,We={inertia:{acceleration:150,resistance:1.5,restDelta:.1}},He={spring:{stiffness:180,damping:34,restDelta:.1,restSpeed:.1}};function ze({direction:t}){const e=t==="forward"?1:-1,n=-Lt*e,o=Lt*e;return{out:{willChange:"transform, opacity",startStyle:{},animate:i=>({transform:`translate3d(0, ${n*i}px, 0)`,opacity:`${1-i}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(0, ${o}px, 0)`,opacity:"0"},animate:i=>({transform:`translate3d(0, ${o*(1-i)}px, 0)`,opacity:`${i}`})}}}function Ne(){return{outPhysics:We,inPhysics:He,composition:{mode:"sequence"},build:ze}}const Ve=40,Xe={inertia:{acceleration:150,resistance:1.5,restDelta:.1}},Be={spring:{stiffness:400,damping:30,doubleSpring:1.2,restDelta:.1,restSpeed:.1}};function Ue(t){const e=Ve;return{out:{willChange:"opacity",startStyle:{},animate:n=>({opacity:`${1-n}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(0, ${e}px, 0)`,opacity:"0"},animate:n=>({transform:`translate3d(0, ${e*(1-n)}px, 0)`,opacity:`${n}`})}}}function je(){return{outPhysics:Xe,inPhysics:Be,composition:{mode:"parallel",startAt:[0,0]},build:Ue}}const Wt=Ne(),Ze={snappy:Wt,directional:Wt,"non-directional":je()},Ht={spring:{stiffness:280,damping:30,restDelta:.1,restSpeed:.1}},lt=.1,dt=1/3,zt=t=>Math.max(0,Math.min(1,t));function Ge({direction:t}){const e=t==="forward"?1:-1,n=1-e*lt;return{out:{willChange:"transform, opacity",startStyle:{},animate:o=>({transform:`scale(${1+e*o*lt})`,opacity:`${zt(1-o/dt)}`})},in:{willChange:"transform, opacity",startStyle:{transform:`scale(${n})`,opacity:"0"},animate:o=>({transform:`scale(${n+e*o*lt})`,opacity:`${zt((o-dt)/(1-dt))}`})}}}function qe(){return{outPhysics:Ht,inPhysics:Ht,composition:{mode:"parallel"},build:Ge}}const Nt={spring:{stiffness:280,damping:30,restDelta:.1,restSpeed:.1}},ut=.1,pt=1/3,Vt=t=>Math.max(0,Math.min(1,t));function Ke(){return{out:{willChange:"opacity",startStyle:{},animate:t=>({opacity:`${Vt(1-t/pt)}`})},in:{willChange:"transform, opacity",startStyle:{transform:`scale(${1-ut})`,opacity:"0"},animate:t=>({transform:`scale(${1-ut+t*ut})`,opacity:`${Vt((t-pt)/(1-pt))}`})}}}function Je(){return{outPhysics:Nt,inPhysics:Nt,composition:{mode:"parallel"},build:Ke}}const Xt=qe(),Qe={snappy:Xt,directional:Xt,"non-directional":Je()},tn={x:Le,y:Ze,z:Qe};function en(t,e){const n=tn[t];return n[e]??n.snappy}const nn="x",on="snappy";function Bt(t,e){t.style.willChange=e.willChange,t.style.backfaceVisibility="hidden",t.style.contain="layout paint";for(const[n,o]of Object.entries(e.startStyle))t.style[n]=o}function le(t){t.style.willChange="auto",t.style.backfaceVisibility="",t.style.contain="",t.style.transform="",t.style.opacity="",t.style.clipPath=""}function rn(t){le(t),t.style.pointerEvents=""}const sn=(t={})=>{const e=t.type??nn,n=t.feel??on,o=en(e,n),i=r=>{const c=o.build({direction:r});return{prepare:({from:s,to:l})=>(s.then(a=>{Bt(a,c.out),a.style.pointerEvents="none"}),l.then(a=>{Bt(a,c.in)}),{}),animation:({from:s,to:l,context:a})=>{if(e==="z"){const y=N(a,"from"),p=N(a,"to");s.style.clipPath=`inset(${y.top}px 0 calc(100% - ${y.top+y.height}px) 0)`,l.style.clipPath=`inset(${p.top}px 0 calc(100% - ${p.top+p.height}px) 0)`}const d=new b.WebAnimation({element:s,integrator:S.IntegratorProvider.from(o.outPhysics),style:y=>c.out.animate(y),onDispose:()=>rn(s)}),u=new b.WebAnimation({element:l,integrator:S.IntegratorProvider.from(o.inPhysics),style:y=>c.in.animate(y),onDispose:()=>le(l)});return new b.MultiAnimation({out:d,in:u},o.composition)}}};return v.defineTransition({forward:i("forward"),backward:i("backward")})};function an(t,e,n){return t==="y"?e==="non-directional"?"non-directional":"directional":t!=="x"||e==="snappy"||n==="snappy"?"snappy":"fluid"}function cn(t={},e={}){const n=t.type??"x",o=t.variant,i=t.feel,r=an(n,o,i);return v.withOverride(sn({type:n,feel:r}),e.override)}const ln={spring:{stiffness:200,damping:22}},dn=10,un="horizontal",pn="#000000";function Ut(t,e,n,o,i,r){window.getComputedStyle(t).position==="static"&&(t.style.position="relative");const s=document.createElement("div");s.style.cssText=`
1
+ "use strict";var Me=Object.defineProperty;var Te=(t,e,n)=>e in t?Me(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var O=(t,e,n)=>Te(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index-CtyacfH7.cjs"),b=require("./retain-opacity-BrtENsD0.cjs"),S=require("./provider-JDtJ5Jzf.cjs"),z=require("./page-motion-Dhj3UfzO.cjs");class ae{constructor(e){O(this,"durationSec");this.durationSec=Math.max(1/60,e.durationSec)}step(e,n,o){const i=n-e.position;if(i===0)return e;const r=Math.sign(i),c=Math.abs(i)/this.durationSec,s=r*c*o,l=e.position+s;return(r>0?l>=n:l<=n)?{position:n,velocity:0}:{position:l,velocity:r*c}}isSettled(e,n){return Math.abs(e.position-n)<S.POSITION_THRESHOLD}}function Rt(t,e){function n(r){let c=0,s=0;const l=r.offsetWidth,a=r.offsetHeight;let d=r;for(;d;)c+=d.offsetTop,s+=d.offsetLeft,d=d.offsetParent;return c-=window.scrollY,s-=window.scrollX,{top:c,left:s,width:l,height:a}}const o=n(t),i=n(e);return new DOMRect(i.left-o.left,i.top-o.top,i.width,i.height)}function L(t,e){const n=t.getBoundingClientRect(),o=e.getBoundingClientRect(),i=(s,l)=>l>0&&Math.abs(s-l)>.5?s/l:1,r=i(n.width,t.offsetWidth),c=i(n.height,t.offsetHeight);return new DOMRect((o.left-n.left)/r,(o.top-n.top)/c,o.width/r,o.height/c)}function N(t,e){const{scrollingElement:n,positionedParent:o}=t,i=n!==o&&n.contains(o)?Rt(n,o).top:0;return{top:t[e].scroll.y,left:0,width:n.clientWidth,height:n.clientHeight-i}}function ce(t,e){const{scrollingElement:n,positionedParent:o}=t,i=n!==o&&n.contains(o)?Rt(n,o).top:0;return{top:t[e].scroll.y-i,height:n.clientHeight}}const Dt=8,Ft={spring:{stiffness:600,damping:40,doubleSpring:1.2}};function _e({direction:t}){const e=t==="forward"?Dt:-Dt;return{out:{willChange:"transform, opacity",startStyle:{},animate:n=>({opacity:`${1-n}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(${e}px, 0, 0)`,opacity:"0"},animate:n=>({transform:`translate3d(${e*(1-n)}px, 0, 0)`,opacity:`${n}`})}}}function ke(){return{outPhysics:Ft,inPhysics:Ft,composition:{mode:"parallel",startAt:[0,0]},build:_e}}const Yt=30,De={inertia:{acceleration:150,resistance:1.5,restDelta:.1}},Fe={spring:{stiffness:180,damping:34,restDelta:.1,restSpeed:.1}};function Ye({direction:t}){const e=t==="forward"?1:-1,n=-Yt*e,o=Yt*e;return{out:{willChange:"transform, opacity",startStyle:{},animate:i=>({transform:`translate3d(${n*i}px, 0, 0)`,opacity:`${1-i}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(${o}px, 0, 0)`,opacity:"0"},animate:i=>({transform:`translate3d(${o*(1-i)}px, 0, 0)`,opacity:`${i}`})}}}function Le(){return{outPhysics:De,inPhysics:Fe,composition:{mode:"sequence"},build:Ye}}const We={snappy:ke(),fluid:Le()},Lt=8,He={inertia:{acceleration:150,resistance:1.5,restDelta:.1}},ze={spring:{stiffness:180,damping:34,restDelta:.1,restSpeed:.1}};function Ne({direction:t}){const e=t==="forward"?1:-1,n=-Lt*e,o=Lt*e;return{out:{willChange:"transform, opacity",startStyle:{},animate:i=>({transform:`translate3d(0, ${n*i}px, 0)`,opacity:`${1-i}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(0, ${o}px, 0)`,opacity:"0"},animate:i=>({transform:`translate3d(0, ${o*(1-i)}px, 0)`,opacity:`${i}`})}}}function Xe(){return{outPhysics:He,inPhysics:ze,composition:{mode:"sequence"},build:Ne}}const Ve=40,Be={inertia:{acceleration:150,resistance:1.5,restDelta:.1}},Ue={spring:{stiffness:400,damping:30,doubleSpring:1.2,restDelta:.1,restSpeed:.1}};function je(t){const e=Ve;return{out:{willChange:"opacity",startStyle:{},animate:n=>({opacity:`${1-n}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(0, ${e}px, 0)`,opacity:"0"},animate:n=>({transform:`translate3d(0, ${e*(1-n)}px, 0)`,opacity:`${n}`})}}}function Ze(){return{outPhysics:Be,inPhysics:Ue,composition:{mode:"parallel",startAt:[0,0]},build:je}}const Wt=Xe(),Ge={snappy:Wt,directional:Wt,"non-directional":Ze()},Ht={spring:{stiffness:280,damping:30,restDelta:.1,restSpeed:.1}},lt=.1,dt=1/3,zt=t=>Math.max(0,Math.min(1,t));function qe({direction:t}){const e=t==="forward"?1:-1,n=1-e*lt;return{out:{willChange:"transform, opacity",startStyle:{},animate:o=>({transform:`scale(${1+e*o*lt})`,opacity:`${zt(1-o/dt)}`})},in:{willChange:"transform, opacity",startStyle:{transform:`scale(${n})`,opacity:"0"},animate:o=>({transform:`scale(${n+e*o*lt})`,opacity:`${zt((o-dt)/(1-dt))}`})}}}function Ke(){return{outPhysics:Ht,inPhysics:Ht,composition:{mode:"parallel"},build:qe}}const Nt={spring:{stiffness:280,damping:30,restDelta:.1,restSpeed:.1}},ut=.1,pt=1/3,Xt=t=>Math.max(0,Math.min(1,t));function Je(){return{out:{willChange:"opacity",startStyle:{},animate:t=>({opacity:`${Xt(1-t/pt)}`})},in:{willChange:"transform, opacity",startStyle:{transform:`scale(${1-ut})`,opacity:"0"},animate:t=>({transform:`scale(${1-ut+t*ut})`,opacity:`${Xt((t-pt)/(1-pt))}`})}}}function Qe(){return{outPhysics:Nt,inPhysics:Nt,composition:{mode:"parallel"},build:Je}}const Vt=Ke(),tn={snappy:Vt,directional:Vt,"non-directional":Qe()},en={x:We,y:Ge,z:tn};function nn(t,e){const n=en[t];return n[e]??n.snappy}const on="x",rn="snappy";function Bt(t,e){t.style.willChange=e.willChange,t.style.backfaceVisibility="hidden",t.style.contain="layout paint";for(const[n,o]of Object.entries(e.startStyle))t.style[n]=o}function le(t){t.style.willChange="auto",t.style.backfaceVisibility="",t.style.contain="",t.style.transform="",t.style.opacity="",t.style.clipPath=""}function sn(t){le(t),t.style.pointerEvents=""}const an=(t={})=>{const e=t.type??on,n=t.feel??rn,o=nn(e,n),i=r=>{const c=o.build({direction:r});return{prepare:({from:s,to:l})=>(s.then(a=>{Bt(a,c.out),a.style.pointerEvents="none"}),l.then(a=>{Bt(a,c.in)}),{}),animation:({from:s,to:l,context:a})=>{if(e==="z"){const y=N(a,"from"),p=N(a,"to");s.style.clipPath=`inset(${y.top}px 0 calc(100% - ${y.top+y.height}px) 0)`,l.style.clipPath=`inset(${p.top}px 0 calc(100% - ${p.top+p.height}px) 0)`}const d=new b.WebAnimation({element:s,integrator:S.IntegratorProvider.from(o.outPhysics),style:y=>c.out.animate(y),onDispose:()=>sn(s)}),u=new b.WebAnimation({element:l,integrator:S.IntegratorProvider.from(o.inPhysics),style:y=>c.in.animate(y),onDispose:()=>le(l)});return new b.MultiAnimation({out:d,in:u},o.composition)}}};return v.defineTransition({forward:i("forward"),backward:i("backward")})};function cn(t,e,n){return t==="y"?e==="non-directional"?"non-directional":"directional":t!=="x"||e==="snappy"||n==="snappy"?"snappy":"fluid"}function ln(t={},e={}){const n=t.type??"x",o=t.variant,i=t.feel,r=cn(n,o,i);return v.withOverride(an({type:n,feel:r}),e.override)}const dn={spring:{stiffness:200,damping:22}},un=10,pn="horizontal",fn="#000000";function Ut(t,e,n,o,i,r){window.getComputedStyle(t).position==="static"&&(t.style.position="relative");const s=document.createElement("div");s.style.cssText=`
2
2
  position: absolute;
3
3
  top: 0;
4
4
  left: 0;
@@ -27,9 +27,9 @@
27
27
  transform: scaleY(${i==="hidden"?0:1});
28
28
  transform-origin: ${r==="left"?"top":"bottom"} center;
29
29
  will-change: transform;
30
- `}l.push(d),s.appendChild(d)}return t.appendChild(s),{container:s,blinds:l}}const fn=(t={})=>{const e=t.blindCount??dn,n=t.direction??un,o=t.blindColor??pn,i=t.physics??ln,r={prepare:async({from:c,to:s,signal:l,onCleanup:a})=>{const d=await c,u=await s;if(l!=null&&l.aborted)throw new Error("Blind preparation superseded");d.style.zIndex="1000";const y=Ut(d,e,n,o,"hidden","left");u.style.position="relative",u.style.zIndex="0";const p=Ut(u,e,n,o,"closed","right");return a==null||a(()=>{y.container.remove(),p.container.remove()}),{fromEl:d,fromBlinds:y.blinds,fromContainer:y.container,toBlinds:p.blinds,toContainer:p.container}},animation:({fromEl:c,to:s,fromBlinds:l,fromContainer:a,toBlinds:d,toContainer:u})=>{const y=l.map((w,g)=>new b.WebAnimation({element:w,motion:{lifetime:"temporary",role:"occlusion",key:`blind:${n}:${e}:${g}`,space:c},integrator:S.IntegratorProvider.from(i),style:A=>({transform:n==="horizontal"?`scaleX(${A})`:`scaleY(${A})`})})),p=d.map((w,g)=>new b.WebAnimation({element:w,motion:{lifetime:"temporary",role:"occlusion",key:`blind:${n}:${e}:${g}`,space:s},integrator:S.IntegratorProvider.from(i),style:(A,$)=>({transform:n==="horizontal"?`scaleX(${$})`:`scaleY(${$})`})})),f=new b.MultiAnimation(y,{mode:"parallel"}),h=new b.MultiAnimation(p,{mode:"parallel"}),m=new b.MultiAnimation({out:f,in:h},{mode:"sequence"});return m.onDispose=w=>{u.remove(),a.remove(),w.owns(c)&&(c.style.zIndex="",c.style.position="")},m}};return v.defineTransition({forward:r,backward:r})};function hn(t={},e={}){const{type:n="horizontal"}=t;return v.withOverride(fn({direction:n}),e.override)}function K(t,e={}){const n=Object.fromEntries(Object.entries(t).map(([o,i])=>{const r=i;return[o,Array.isArray(r)?r.length===1?r[0]:new b.MultiAnimation(r):r]}));return new b.MultiAnimation(n,e)}function J(t){const e=t.onComplete;t.onComplete=()=>{e==null||e(),t.releaseFill()}}const yn={spring:{stiffness:250,damping:23,doubleSpring:.7}},Z=.5;function mn(t){const e=t==="enter"?-100:100,n=t==="enter"?100:-100;return{out:{willChange:"transform, opacity",startStyle:{},animate:o=>({transform:`translate3d(${e*o}%, 0, 0)`,opacity:`${Z+(1-Z)*(1-o)}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(${n}%, 0, 0)`,opacity:`${Z}`},animate:o=>({transform:`translate3d(${n*(1-o)}%, 0, 0)`,opacity:`${Z+(1-Z)*o}`})}}}function gn(){return{physics:yn,build:mn}}const bn={spring:{stiffness:230,damping:25,doubleSpring:{stiffness:600,damping:50}}};function wn(t){const e=t==="enter"?-20:100,n=t==="enter"?100:-20;return{out:{willChange:"transform",startStyle:{},animate:o=>({transform:`translate3d(${e*o}%, 0, 0)`})},in:{willChange:"transform",startStyle:{transform:`translate3d(${n}%, 0, 0)`},animate:o=>({transform:`translate3d(${n*(1-o)}%, 0, 0)`})}}}function Sn(){return{physics:bn,build:wn}}const xn={parallax:Sn(),crossfade:gn()},F="0",de="1",_="2",An="parallax";function jt(t,e){t.style.willChange=e.willChange,t.style.backfaceVisibility="hidden",t.style.contain="layout paint";for(const[n,o]of Object.entries(e.startStyle))t.style[n]=o}const En=(t={})=>{const e=xn[t.type??An],n=e.physics,o=i=>{const r=i==="forward"?"enter":"exit",c=e.build(r),s=r==="enter"?F:_,l=r==="enter"?_:F;return{prepare:({from:a,to:d})=>(a.then(u=>{jt(u,c.out),u.style.pointerEvents="none",u.style.zIndex=s}),d.then(u=>{jt(u,c.in),u.style.position="relative",u.style.zIndex=l}),{}),animation:({from:a,to:d})=>{const u=new b.WebAnimation({element:a,integrator:S.IntegratorProvider.from(n),style:p=>c.out.animate(p),onDispose:()=>{a.style.willChange="auto",a.style.backfaceVisibility="",a.style.contain="",a.style.transform="",a.style.opacity="",a.style.pointerEvents="",a.style.zIndex=""}}),y=new b.WebAnimation({element:d,integrator:S.IntegratorProvider.from(n),style:p=>c.in.animate(p),onDispose:()=>{d.style.willChange="auto",d.style.backfaceVisibility="",d.style.contain="",d.style.transform="",d.style.opacity="",d.style.position==="relative"&&(d.style.position=""),d.style.zIndex===l&&(d.style.zIndex="")}});return[u,y].forEach(J),new b.MultiAnimation({out:u,in:y},{mode:"parallel"})}}};return v.defineTransition({forward:o("forward"),backward:o("backward")})};function $n(t){return t==="slide"||t==="crossfade"?"crossfade":"parallax"}function vn(t={},e={}){const n=t.type,o=$n(n);return v.withOverride(En({type:o}),e.override)}const Cn=(t={})=>{const e=t.physics??z.FADE_IN_PHYSICS,n=t.physics??z.FADE_OUT_PHYSICS,o={prepare:({to:i})=>(i.then(r=>{r.style.opacity="0",r.style.willChange="opacity"}),{}),animation:({from:i,to:r})=>{const c=new b.WebAnimation({element:i,integrator:S.IntegratorProvider.from(n),style:l=>({opacity:z.pageMotionStyle("fade","out","forward",l).opacity}),onDispose:()=>{i.style.willChange="auto",i.style.opacity=""}}),s=new b.WebAnimation({element:r,integrator:S.IntegratorProvider.from(e),style:l=>({opacity:z.pageMotionStyle("fade","in","forward",l).opacity}),onDispose:()=>{r.style.willChange="auto",r.style.opacity=""}});return new b.MultiAnimation({out:c,in:s},{mode:"sequence"})}};return v.defineTransition({forward:o,backward:o})};function Pn(t={},e={}){return v.withOverride(Cn(),e.override)}const ft={scaleDown:{stiffness:20,damping:7},translate:{stiffness:15,damping:7},scaleUp:{stiffness:20,damping:7}},V={scaleDown:0,translate:.2,scaleUp:.8},In=.8,Rn="white",Zt=1e3/60,On=600;function Mn(t){const{items:e,from:n,to:o,recordFrame:i}=t,r=Zt/1e3,c=Math.abs(o-n),s=e.map(a=>({item:a,integrator:new S.SpringIntegrator({stiffness:a.spring.stiffness,damping:a.spring.damping}),state:{position:n,velocity:0},started:!1,settled:!1,settleTime:0}));for(let a=0;a<s.length;a++)(a===0||s[a].item.offset===0)&&(s[a].started=!0);i(0);let l=0;for(let a=1;a<=On;a++){const d=a*Zt;l=d;for(const u of s)!u.started||u.settled||(u.state=u.integrator.step(u.state,o,r),u.integrator.isSettled(u.state,o)?(u.settleTime+=r,u.settleTime>=S.SETTLE_THRESHOLD&&(u.state={position:o,velocity:0},u.settled=!0)):u.settleTime=0,u.item.tick(u.state.position));for(let u=1;u<s.length;u++){const y=s[u];if(y.started)continue;const p=s[u-1];if(!p.started)continue;(c===0?1:Math.abs(p.state.position-n)/c)>=y.item.offset&&(y.started=!0)}if(i(d),s.every(u=>u.settled))return d}return l}function ht(t,e){return t!=null&&t.spring?{stiffness:t.spring.stiffness,damping:t.spring.damping}:e}function Gt(t){const{rect:e,scale:n,direction:o,override:i}=t,r=o==="out"?{scale:1,translateY:-e.top}:{scale:n,translateY:-e.top+e.height},c=ht(i,ft.scaleDown),s=ht(i,ft.translate),l=ht(i,ft.scaleUp),a=o==="out"?1:0,d=o==="out"?0:1,u=o==="out"?[{spring:c,offset:V.scaleDown,tick:f=>{const h=1-f;r.scale=1-(1-n)*h}},{spring:s,offset:V.translate,tick:f=>{const h=1-f;r.translateY=-e.top-e.height*h}},{spring:l,offset:V.scaleUp,tick:f=>{const h=1-f;r.scale=n+(1-n)*h}}]:[{spring:c,offset:V.scaleDown,tick:f=>{r.scale=1-(1-n)*f}},{spring:s,offset:V.translate,tick:f=>{r.translateY=-e.top+e.height*(1-f)}},{spring:l,offset:V.scaleUp,tick:f=>{r.scale=n+(1-n)*f}}],y=[],p=Mn({items:u,from:a,to:d,recordFrame:f=>y.push({time:f,scale:r.scale,translateY:r.translateY})});return{snapshots:y,totalDuration:p}}function Tn(t,e){if(t.length===0)return{time:0,scale:1,translateY:0};if(t.length===1||e<=0)return t[0];if(e>=1)return t[t.length-1];const n=e*(t.length-1),o=Math.floor(n),i=Math.ceil(n);if(o===i)return t[o];const r=t[o],c=t[i],s=n-o;return{time:r.time+(c.time-r.time)*s,scale:r.scale+(c.scale-r.scale)*s,translateY:r.translateY+(c.translateY-r.translateY)*s}}const _n=[[1,1],[-1,1],[1,-1],[-1,-1]];function kn(t,e){const i=(r,c,s)=>{const l=document.createElement("div");Object.assign(l.style,{position:"fixed",pointerEvents:"none",zIndex:"9999",width:"15px",height:"15px",...r});const a=document.createElement("div");Object.assign(a.style,{position:"absolute",width:"15px",height:"1px",backgroundColor:t,[s]:"0",[c]:"0"});const d=document.createElement("div");return Object.assign(d.style,{position:"absolute",width:"1px",height:"15px",backgroundColor:t,[s]:"0",[c]:"0"}),l.appendChild(a),l.appendChild(d),l};return{topLeft:i({top:`${e.top-1}px`,left:`${e.left-1}px`},"left","top"),topRight:i({top:`${e.top-1}px`,left:`${e.left+e.width-15+1}px`},"right","top"),bottomLeft:i({top:`${e.top+e.height-15+1}px`,left:`${e.left-1}px`},"left","bottom"),bottomRight:i({top:`${e.top+e.height-15+1}px`,left:`${e.left+e.width-15+1}px`},"right","bottom")}}function qt(t,e){const n=e.left+e.width/2,o=e.top+e.height/2;t.style.transformOrigin=`${n}px ${o}px`}function Kt(t,e){t.style.clipPath=`polygon(
30
+ `}l.push(d),s.appendChild(d)}return t.appendChild(s),{container:s,blinds:l}}const hn=(t={})=>{const e=t.blindCount??un,n=t.direction??pn,o=t.blindColor??fn,i=t.physics??dn,r={prepare:async({from:c,to:s,signal:l,onCleanup:a})=>{const d=await c,u=await s;if(l!=null&&l.aborted)throw new Error("Blind preparation superseded");d.style.zIndex="1000";const y=Ut(d,e,n,o,"hidden","left");u.style.position="relative",u.style.zIndex="0";const p=Ut(u,e,n,o,"closed","right");return a==null||a(()=>{y.container.remove(),p.container.remove()}),{fromEl:d,fromBlinds:y.blinds,fromContainer:y.container,toBlinds:p.blinds,toContainer:p.container}},animation:({fromEl:c,to:s,fromBlinds:l,fromContainer:a,toBlinds:d,toContainer:u})=>{const y=l.map((w,g)=>new b.WebAnimation({element:w,motion:{lifetime:"temporary",role:"occlusion",key:`blind:${n}:${e}:${g}`,space:c},integrator:S.IntegratorProvider.from(i),style:x=>({transform:n==="horizontal"?`scaleX(${x})`:`scaleY(${x})`})})),p=d.map((w,g)=>new b.WebAnimation({element:w,motion:{lifetime:"temporary",role:"occlusion",key:`blind:${n}:${e}:${g}`,space:s},integrator:S.IntegratorProvider.from(i),style:(x,$)=>({transform:n==="horizontal"?`scaleX(${$})`:`scaleY(${$})`})})),f=new b.MultiAnimation(y,{mode:"parallel"}),h=new b.MultiAnimation(p,{mode:"parallel"}),m=new b.MultiAnimation({out:f,in:h},{mode:"sequence"});return m.onDispose=w=>{u.remove(),a.remove(),w.owns(c)&&(c.style.zIndex="",c.style.position="")},m}};return v.defineTransition({forward:r,backward:r})};function yn(t={},e={}){const{type:n="horizontal"}=t;return v.withOverride(hn({direction:n}),e.override)}function K(t,e={}){const n=Object.fromEntries(Object.entries(t).map(([o,i])=>{const r=i;return[o,Array.isArray(r)?r.length===1?r[0]:new b.MultiAnimation(r):r]}));return new b.MultiAnimation(n,e)}function J(t){const e=t.onComplete;t.onComplete=()=>{e==null||e(),t.releaseFill()}}const mn={spring:{stiffness:250,damping:23,doubleSpring:.7}},j=.5;function gn(t){const e=t==="enter"?-100:100,n=t==="enter"?100:-100;return{out:{willChange:"transform, opacity",startStyle:{},animate:o=>({transform:`translate3d(${e*o}%, 0, 0)`,opacity:`${j+(1-j)*(1-o)}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(${n}%, 0, 0)`,opacity:`${j}`},animate:o=>({transform:`translate3d(${n*(1-o)}%, 0, 0)`,opacity:`${j+(1-j)*o}`})}}}function bn(){return{physics:mn,build:gn}}const wn={spring:{stiffness:230,damping:25,doubleSpring:{stiffness:600,damping:50}}};function Sn(t){const e=t==="enter"?-20:100,n=t==="enter"?100:-20;return{out:{willChange:"transform",startStyle:{},animate:o=>({transform:`translate3d(${e*o}%, 0, 0)`})},in:{willChange:"transform",startStyle:{transform:`translate3d(${n}%, 0, 0)`},animate:o=>({transform:`translate3d(${n*(1-o)}%, 0, 0)`})}}}function xn(){return{physics:wn,build:Sn}}const An={parallax:xn(),crossfade:bn()},F="0",de="1",_="2",En="parallax";function jt(t,e){t.style.willChange=e.willChange,t.style.backfaceVisibility="hidden",t.style.contain="layout paint";for(const[n,o]of Object.entries(e.startStyle))t.style[n]=o}const $n=(t={})=>{const e=An[t.type??En],n=e.physics,o=i=>{const r=i==="forward"?"enter":"exit",c=e.build(r),s=r==="enter"?F:_,l=r==="enter"?_:F;return{prepare:({from:a,to:d})=>(a.then(u=>{jt(u,c.out),u.style.pointerEvents="none",u.style.zIndex=s}),d.then(u=>{jt(u,c.in),u.style.position="relative",u.style.zIndex=l}),{}),animation:({from:a,to:d})=>{const u=new b.WebAnimation({element:a,integrator:S.IntegratorProvider.from(n),style:p=>c.out.animate(p),onDispose:()=>{a.style.willChange="auto",a.style.backfaceVisibility="",a.style.contain="",a.style.transform="",a.style.opacity="",a.style.pointerEvents="",a.style.zIndex=""}}),y=new b.WebAnimation({element:d,integrator:S.IntegratorProvider.from(n),style:p=>c.in.animate(p),onDispose:()=>{d.style.willChange="auto",d.style.backfaceVisibility="",d.style.contain="",d.style.transform="",d.style.opacity="",d.style.position==="relative"&&(d.style.position=""),d.style.zIndex===l&&(d.style.zIndex="")}});return[u,y].forEach(J),new b.MultiAnimation({out:u,in:y},{mode:"parallel"})}}};return v.defineTransition({forward:o("forward"),backward:o("backward")})};function vn(t){return t==="slide"||t==="crossfade"?"crossfade":"parallax"}function Cn(t={},e={}){const n=t.type,o=vn(n);return v.withOverride($n({type:o}),e.override)}const Pn=(t={})=>{const e=t.physics??z.FADE_IN_PHYSICS,n=t.physics??z.FADE_OUT_PHYSICS,o={prepare:({to:i})=>(i.then(r=>{r.style.opacity="0",r.style.willChange="opacity"}),{}),animation:({from:i,to:r})=>{const c=new b.WebAnimation({element:i,integrator:S.IntegratorProvider.from(n),style:l=>({opacity:z.pageMotionStyle("fade","out","forward",l).opacity}),onDispose:()=>{i.style.willChange="auto",i.style.opacity=""}}),s=new b.WebAnimation({element:r,integrator:S.IntegratorProvider.from(e),style:l=>({opacity:z.pageMotionStyle("fade","in","forward",l).opacity}),onDispose:()=>{r.style.willChange="auto",r.style.opacity=""}});return new b.MultiAnimation({out:c,in:s},{mode:"sequence"})}};return v.defineTransition({forward:o,backward:o})};function In(t={},e={}){return v.withOverride(Pn(),e.override)}const ft={scaleDown:{stiffness:20,damping:7},translate:{stiffness:15,damping:7},scaleUp:{stiffness:20,damping:7}},X={scaleDown:0,translate:.2,scaleUp:.8},Rn=.8,On="white",Zt=1e3/60,Mn=600;function Tn(t){const{items:e,from:n,to:o,recordFrame:i}=t,r=Zt/1e3,c=Math.abs(o-n),s=e.map(a=>({item:a,integrator:new S.SpringIntegrator({stiffness:a.spring.stiffness,damping:a.spring.damping}),state:{position:n,velocity:0},started:!1,settled:!1,settleTime:0}));for(let a=0;a<s.length;a++)(a===0||s[a].item.offset===0)&&(s[a].started=!0);i(0);let l=0;for(let a=1;a<=Mn;a++){const d=a*Zt;l=d;for(const u of s)!u.started||u.settled||(u.state=u.integrator.step(u.state,o,r),u.integrator.isSettled(u.state,o)?(u.settleTime+=r,u.settleTime>=S.SETTLE_THRESHOLD&&(u.state={position:o,velocity:0},u.settled=!0)):u.settleTime=0,u.item.tick(u.state.position));for(let u=1;u<s.length;u++){const y=s[u];if(y.started)continue;const p=s[u-1];if(!p.started)continue;(c===0?1:Math.abs(p.state.position-n)/c)>=y.item.offset&&(y.started=!0)}if(i(d),s.every(u=>u.settled))return d}return l}function ht(t,e){return t!=null&&t.spring?{stiffness:t.spring.stiffness,damping:t.spring.damping}:e}function Gt(t){const{rect:e,scale:n,direction:o,override:i}=t,r=o==="out"?{scale:1,translateY:-e.top}:{scale:n,translateY:-e.top+e.height},c=ht(i,ft.scaleDown),s=ht(i,ft.translate),l=ht(i,ft.scaleUp),a=o==="out"?1:0,d=o==="out"?0:1,u=o==="out"?[{spring:c,offset:X.scaleDown,tick:f=>{const h=1-f;r.scale=1-(1-n)*h}},{spring:s,offset:X.translate,tick:f=>{const h=1-f;r.translateY=-e.top-e.height*h}},{spring:l,offset:X.scaleUp,tick:f=>{const h=1-f;r.scale=n+(1-n)*h}}]:[{spring:c,offset:X.scaleDown,tick:f=>{r.scale=1-(1-n)*f}},{spring:s,offset:X.translate,tick:f=>{r.translateY=-e.top+e.height*(1-f)}},{spring:l,offset:X.scaleUp,tick:f=>{r.scale=n+(1-n)*f}}],y=[],p=Tn({items:u,from:a,to:d,recordFrame:f=>y.push({time:f,scale:r.scale,translateY:r.translateY})});return{snapshots:y,totalDuration:p}}function _n(t,e){if(t.length===0)return{time:0,scale:1,translateY:0};if(t.length===1||e<=0)return t[0];if(e>=1)return t[t.length-1];const n=e*(t.length-1),o=Math.floor(n),i=Math.ceil(n);if(o===i)return t[o];const r=t[o],c=t[i],s=n-o;return{time:r.time+(c.time-r.time)*s,scale:r.scale+(c.scale-r.scale)*s,translateY:r.translateY+(c.translateY-r.translateY)*s}}const kn=[[1,1],[-1,1],[1,-1],[-1,-1]];function Dn(t,e){const i=(r,c,s)=>{const l=document.createElement("div");Object.assign(l.style,{position:"fixed",pointerEvents:"none",zIndex:"9999",width:"15px",height:"15px",...r});const a=document.createElement("div");Object.assign(a.style,{position:"absolute",width:"15px",height:"1px",backgroundColor:t,[s]:"0",[c]:"0"});const d=document.createElement("div");return Object.assign(d.style,{position:"absolute",width:"1px",height:"15px",backgroundColor:t,[s]:"0",[c]:"0"}),l.appendChild(a),l.appendChild(d),l};return{topLeft:i({top:`${e.top-1}px`,left:`${e.left-1}px`},"left","top"),topRight:i({top:`${e.top-1}px`,left:`${e.left+e.width-15+1}px`},"right","top"),bottomLeft:i({top:`${e.top+e.height-15+1}px`,left:`${e.left-1}px`},"left","bottom"),bottomRight:i({top:`${e.top+e.height-15+1}px`,left:`${e.left+e.width-15+1}px`},"right","bottom")}}function qt(t,e){const n=e.left+e.width/2,o=e.top+e.height/2;t.style.transformOrigin=`${n}px ${o}px`}function Kt(t,e){t.style.clipPath=`polygon(
31
31
  ${e.left}px ${e.top}px,
32
32
  ${e.left+e.width}px ${e.top}px,
33
33
  ${e.left+e.width}px ${e.top+e.height}px,
34
34
  ${e.left}px ${e.top+e.height}px
35
- )`}function yt(t,e,n,o,i){const r=n/1e3;return new b.WebAnimation({element:t,integrator:new ae({durationSec:r}),lowerBound:0,upperBound:1,style:c=>o(Tn(e,c)),onDispose:i})}const Dn=(t={})=>{var r;const e=((r=t.border)==null?void 0:r.color)??Rn,n=In,o=t.physics,i={prepare:({from:c,to:s,context:l,onCleanup:a})=>{const d=N(l,"from"),u=N(l,"to"),y=Rt(document.body,l.positionedParent),p=kn(e,{...d,top:y.top});a==null||a(()=>{for(const f of Object.values(p))f.remove()});for(const f of["topLeft","topRight","bottomLeft","bottomRight"])l.positionedParent.appendChild(p[f]);return c.then(f=>{qt(f,d),Kt(f,d),f.style.transform=`translateY(${-d.top}px)`}),s.then(f=>{qt(f,u),Kt(f,u),f.style.transform=`translateY(${-u.top+u.height}px) scale(${n})`}),{borders:p,fromRect:d,toRect:u}},animation:({from:c,to:s,context:l,borders:a,fromRect:d,toRect:u})=>{const y=Gt({rect:d,scale:n,direction:"out",override:o}),p=Gt({rect:u,scale:n,direction:"in",override:o}),f=yt(c,y.snapshots,y.totalDuration,g=>({transform:`translateY(${g.translateY}px) scale(${g.scale})`}),()=>{c.style.clipPath="",c.style.transformOrigin="",c.style.transform=""}),h=yt(s,p.snapshots,p.totalDuration,g=>({transform:`translateY(${g.translateY}px) scale(${g.scale})`}),()=>{s.style.clipPath="",s.style.transformOrigin="",s.style.transform=""}),m=_n.map(([g,A],$)=>{const P=["topLeft","topRight","bottomLeft","bottomRight"][$];return yt(a[P],y.snapshots,y.totalDuration,C=>{const x=(d.width-d.width*C.scale)/2*.7*g,E=(d.height-d.height*C.scale)/2*.7*A;return{transform:`translate(${x}px, ${E}px)`}})});for(const g of m)g instanceof b.WebAnimation&&(g.motion.lifetime="temporary");const w=K({out:f,in:h,borders:m});return w.onDispose=()=>{const g=l.positionedParent;for(const A of["topLeft","topRight","bottomLeft","bottomRight"]){const $=a[A];$.parentElement===g&&g.removeChild($)}},w}};return v.defineTransition({forward:i,backward:i})};function Fn(t={},e={}){const{options:n}=t,o=(n==null?void 0:n.borderColor)!==void 0?{border:{color:n.borderColor}}:void 0;return v.withOverride(Dn(o),e.override)}function Yn(t){if(!t)return null;if(t.includes("/")){const n=t.split("/");if(n.length!==2)return null;const o=Number.parseFloat(n[0]??""),i=Number.parseFloat(n[1]??"");return Number.isFinite(o)&&Number.isFinite(i)&&o>0&&i>0?o/i:null}const e=Number.parseFloat(t);return Number.isFinite(e)&&e>0?e:null}function Ln(t){return t==="contain"||t==="cover"?t:null}function Et(t){return t.tagName==="IMG"}function ue(t){var n;if(Et(t))return t;if(t.tagName==="PICTURE"||t.tagName==="VIDEO")return null;const e=[];for(const o of Array.from(t.children)){const i=o;((n=i.getAttribute)==null?void 0:n.call(i,"data-ssgoi-crossfade"))==null&&Et(i)&&e.push(i)}return e.length===1?e[0]??null:null}function Wn(t){var l,a;if(!Et(t))return null;const e=t,n=e.naturalWidth,o=e.naturalHeight;if(typeof n=="number"&&typeof o=="number"&&Number.isFinite(n)&&Number.isFinite(o)&&n>0&&o>0)return n/o;const i=((l=t.getAttribute("width"))==null?void 0:l.trim())??"",r=((a=t.getAttribute("height"))==null?void 0:a.trim())??"",c=i===""?Number.NaN:Number(i),s=r===""?Number.NaN:Number(r);return Number.isFinite(c)&&Number.isFinite(s)&&c>0&&s>0?c/s:null}function Hn(t){const e=t.trim().toLowerCase().replace(/\s+/g," ");return e===""||e==="center"||e==="center center"||e==="50% 50%"}function Q(t){if(typeof getComputedStyle=="function")try{return getComputedStyle(t)}catch{}return t.style}function zn(t){const e=Q(t),n=Hn(e.objectPosition??"");return{fit:n?Ln(e.objectFit??null):null,centered:n}}function Ot(t){if(!t)return 0;const e=/^(-?(?:\d+\.?\d*|\.\d+))px$/.exec(t.trim());if(!e)return null;const n=Number.parseFloat(e[1]??"");return Number.isFinite(n)&&n>=0?n:null}function $t(t){const e=Q(t),n=[e.borderTopLeftRadius,e.borderTopRightRadius,e.borderBottomRightRadius,e.borderBottomLeftRadius].map(Ot),o=n[0];if(o==null)return{radius:0,supported:!1};const i=n.every(r=>r!==null&&Math.abs(r-o)<.001);return{radius:i?o:0,supported:i}}function Nn(t,e){var i;if(!e)return null;const n=(i=t.getAttribute(e))==null?void 0:i.trim();if(n==null||n==="")return null;const o=Number.parseFloat(n);return Number.isFinite(o)&&o>=0?o:null}function Vn(t){const e=Q(t);return[e.paddingTop,e.paddingRight,e.paddingBottom,e.paddingLeft,e.borderTopWidth,e.borderRightWidth,e.borderBottomWidth,e.borderLeftWidth].every(o=>o?Ot(o)===0:!0)}function Xn(t){const e=Q(t),n=o=>o==="hidden"||o==="clip";return n(e.overflowX)&&n(e.overflowY)}function W(t){return t.left+t.width/2}function H(t){return t.top+t.height/2}function U(t,e){return{top:Math.max(0,e.top-t.top),right:Math.max(0,t.left+t.width-(e.left+e.width)),bottom:Math.max(0,t.top+t.height-(e.top+e.height)),left:Math.max(0,e.left-t.left)}}function vt(t,e){const n=Math.max(t.left,e.left),o=Math.max(t.top,e.top),i=Math.min(t.left+t.width,e.left+e.width),r=Math.min(t.top+t.height,e.top+e.height);return i>n&&r>o?{left:n,top:o,width:i-n,height:r-o}:null}function G(t,e){return Math.abs(t.left-e.left)<.01&&Math.abs(t.top-e.top)<.01&&Math.abs(t.width-e.width)<.01&&Math.abs(t.height-e.height)<.01}function Bn(t,e,n){const o=t.width/t.height;let i,r;return n==="contain"?o>e?(r=t.height,i=r*e):(i=t.width,r=i/e):o>e?(i=t.width,r=i/e):(r=t.height,i=r*e),{left:t.left+(t.width-i)/2,top:t.top+(t.height-r)/2,width:i,height:r}}function pe(t,e,n){const o=e!==null&&n!==null&&t.width>0&&t.height>0?Bn(t,e,n):t,i=n==="contain"?o:t;return{bbox:t,content:o,window:i,clipInset:U(o,i),aspectRatio:e,fit:n,radius:0,radiusSource:"none",bboxRadius:0,bboxRadiusSource:"none",contentAware:e!==null&&n!==null,mediaElement:null}}function Ct(t,e,n){return{...pe(t,null,null),radius:e,radiusSource:n,bboxRadius:e,bboxRadiusSource:n}}function fe(t,e){const n=t.aspectRatio,o=e.aspectRatio;return t.contentAware&&e.contentAware&&n!==null&&o!==null&&Math.abs(n-o)/Math.max(n,o)<.01}function Jt(t){return Ct(t.bbox,t.bboxRadius,t.bboxRadiusSource)}function he(t,e){return fe(t,e)?[t,e]:[Jt(t),Jt(e)]}function Un(t,e,n,o){const i=ue(t),r=i?n(i):e,c=o.legacyAspectRatioAttribute?Yn(t.getAttribute(o.legacyAspectRatioAttribute)??(i==null?void 0:i.getAttribute(o.legacyAspectRatioAttribute))??null):null,s=c??(i?Wn(i):null),l=i?zn(i):{fit:null,centered:!0},a=l.centered&&(i===null||Vn(i))?l.fit??(c!==null?o.fallbackFit??null:null):null,d=pe(r,s,a),u=Xn(t),p=i!==null&&i!==t&&u?vt(d.window,e):d.window,f=Nn(t,o.legacyRadiusAttribute),h=i===t||u,m=h?$t(t):{radius:0,supported:!0},w=f??m.radius,g=f!==null?"legacy":m.supported?m.radius>0?"computed":"none":"unsupported",A=[];p&&h&&G(p,e)&&A.push(m),p&&i&&G(p,r)&&A.push($t(i));const $=A.every(E=>E.supported),P=Math.max(0,...A.map(E=>E.radius)),C=f??P,x=f!==null?"legacy":$?P>0?"computed":"none":"unsupported";return!p||x==="unsupported"?Ct(e,w,g):{...d,bbox:e,window:p,clipInset:U(d.content,p),radius:C,radiusSource:x,bboxRadius:w,bboxRadiusSource:g,mediaElement:d.contentAware?i:null}}function nt(t,e,n,o){const i=Un(t,e,n,o);if(!o.clipRoot||i.radiusSource==="unsupported")return i;let r=i.window,c=i.radius,s=[c,c,c,c],l=i.radiusSource,a=t.parentElement;for(;a&&a!==o.clipRoot;){const u=Q(a),y=h=>h==="hidden"||h==="clip"||h==="auto"||h==="scroll",p=y(u.overflowX),f=y(u.overflowY);if(p||f){if(![u.borderTopWidth,u.borderRightWidth,u.borderBottomWidth,u.borderLeftWidth].every(x=>Ot(x)===0)||a.offsetWidth&&a.clientWidth&&a.offsetWidth-a.clientWidth>1||a.offsetHeight&&a.clientHeight&&a.offsetHeight-a.clientHeight>1)return i;const m=n(a),w={left:p?m.left:r.left,top:f?m.top:r.top,width:p?m.width:r.width,height:f?m.height:r.height},g=vt(r,w);if(!g)return i;const A=$t(a);if(!A.supported)return i;if(p&&f&&G(r,m))l!=="legacy"&&(c=Math.max(c,A.radius),s=s.map(x=>Math.max(x,A.radius)),c>0&&(l="computed"));else if(A.radius>0){const x={left:m.left+A.radius,top:m.top+A.radius,width:m.width-2*A.radius,height:m.height-2*A.radius};if(!G(vt(r,x)??m,r))return i}const $=U(r,g),P=[[$.top,$.left],[$.top,$.right],[$.bottom,$.right],[$.bottom,$.left]];for(let x=0;x<4;x++){const E=Math.max(...P[x]),R=s[x];if(E>.01&&E<R)return i;E>.01&&(s[x]=0)}const C=Math.max(...s);if(g.width<C||g.height<C)return i;r=g}a=a.parentElement}const d=G(i.bbox,r);return{...i,window:r,clipInset:U(i.content,r),radius:c,radiusSource:l,...s.some(u=>u!==c)?{cornerRadii:s}:{},...d?{bboxRadius:c,bboxRadiusSource:l}:{}}}function ye(t,e,n,o,i){const r=n.width/o,c=n.height/i;return{left:W(t)+(W(n)-W(e))/o-r/2,top:H(t)+(H(n)-H(e))/i-c/2,width:r,height:c}}const jn={enter:"contain",exit:"cover",legacy:"contain"};function X(t){return jn[t]}const ot="data-ssgoi-crossfade",B=t=>Math.min(1,Math.max(0,t));function Mt(t){const e=t.cloneNode(!0),n=(o,i)=>{const r=getComputedStyle(o),c=i.style;for(const l of Array.from(r))c.setProperty(l,r.getPropertyValue(l));for(const{name:l}of Array.from(i.attributes))(l==="id"||l.startsWith("data-hero-")||l.startsWith("data-zoom-"))&&i.removeAttribute(l);if(o.tagName==="IMG"){const l=o;l.currentSrc&&(i.removeAttribute("srcset"),i.removeAttribute("sizes"),i.setAttribute("src",l.currentSrc)),i.setAttribute("loading","eager")}c.animation="none",c.transition="none";const s=Array.from(i.children);Array.from(o.children).forEach((l,a)=>{const d=s[a];d&&(l.hasAttribute(ot)||l.hasAttribute("data-hero-placeholder")?d.remove():n(l,d))})};return n(t,e),e.setAttribute(ot,""),e.setAttribute("aria-hidden","true"),e.setAttribute("inert",""),Object.assign(e.style,{position:"absolute",left:"0",top:"0",right:"auto",bottom:"auto",margin:"0",minWidth:"0",minHeight:"0",maxWidth:"none",maxHeight:"none",boxSizing:"border-box",transform:"none",translate:"none",rotate:"none",scale:"none",transformOrigin:"center center",pointerEvents:"none",willChange:"transform, clip-path, opacity"}),e}function Pt(t,e){const n=L(t,e);return{box:{left:n.left+t.scrollLeft,top:n.top+t.scrollTop,width:n.width,height:n.height},scaleX:e.offsetWidth&&Math.abs(n.width-e.offsetWidth)>.5?n.width/e.offsetWidth:1,scaleY:e.offsetHeight&&Math.abs(n.height-e.offsetHeight)>.5?n.height/e.offsetHeight:1}}function Zn(t,e){const{box:n,scaleX:o,scaleY:i}=e,r=(t.left+t.width/2-n.left-n.width/2)/o,c=(t.top+t.height/2-n.top-n.height/2)/i;return`translate(${r}px, ${c}px) scale(${t.width/n.width}, ${t.height/n.height})`}const it="data-hero-enter-key",rt="data-hero-exit-key",q="data-hero-key";function Gn(t,e){return t.fromEl.getAttribute(it)===t.key&&t.toEl.getAttribute(rt)===t.key?!0:t.fromEl.getAttribute(rt)===t.key&&t.toEl.getAttribute(it)===t.key?!1:e==="backward"&&t.fromEl.getAttribute(q)===t.key&&t.toEl.getAttribute(q)===t.key}function qn(t,e,n,o,i){const r=document.createElement("div");r.setAttribute("data-hero-layer",""),r.setAttribute("aria-hidden","true"),r.setAttribute("inert",""),Object.assign(r.style,{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",pointerEvents:"none",isolation:"isolate",zIndex:String(Number(_)+1)});const c=(a,d)=>{const u=Mt(a);return Object.assign(u.style,{left:`${d.left}px`,top:`${d.top}px`,width:`${d.width}px`,height:`${d.height}px`,zIndex:"auto",mixBlendMode:"plus-lighter"}),i&&(u.style.borderRadius="0"),u},s=c(t,n),l=c(e,o);return s.setAttribute("data-hero-layer-source",""),l.setAttribute("data-hero-layer-destination",""),r.append(l,s),{layer:r,source:s,destination:l}}function st(t,e){const n=e.map(o=>({name:o,value:t.style.getPropertyValue(o),priority:t.style.getPropertyPriority(o)}));return()=>{for(const{name:o,value:i,priority:r}of n)i?t.style.setProperty(o,i,r):t.style.removeProperty(o)}}function Kn(t){const e=t.getAttribute("data-hero-transitioning");return t.setAttribute("data-hero-transitioning",""),()=>{e===null?t.removeAttribute("data-hero-transitioning"):t.setAttribute("data-hero-transitioning",e)}}function Jn(t,e){const n=st(t,["z-index"]),o=st(e,["z-index","position"]);return t.style.zIndex=F,e.style.zIndex=_,getComputedStyle(e).position==="static"&&(e.style.position="relative"),(i=()=>!0)=>{i(t)&&n(),i(e)&&o()}}function Qn(t,e,n){if(t.tagName!=="IMG")return()=>{};const o=getComputedStyle(t),i=y=>Number.parseFloat(y)||0,r=o.boxSizing==="border-box",c=i(o.width)+(r?0:i(o.paddingLeft)+i(o.paddingRight)+i(o.borderLeftWidth)+i(o.borderRightWidth)),s=i(o.height)+(r?0:i(o.paddingTop)+i(o.paddingBottom)+i(o.borderTopWidth)+i(o.borderBottomWidth)),l=e.width*c/n.width,a=e.height*s/n.height;let d=null;o.position!=="absolute"&&o.position!=="fixed"&&(d=document.createElement("span"),d.setAttribute("data-hero-placeholder",""),d.setAttribute("aria-hidden","true"),Object.assign(d.style,{display:o.display==="inline"?"inline-block":o.display,boxSizing:"border-box",width:`${c}px`,height:`${s}px`,margin:o.margin,flex:o.flex,alignSelf:o.alignSelf,gridArea:o.gridArea,order:o.order,verticalAlign:o.verticalAlign,visibility:"hidden",pointerEvents:"none"}),t.before(d));const u=st(t,["position","left","top","right","bottom","width","height","min-width","min-height","max-width","max-height","box-sizing","margin-top","margin-right","margin-bottom","margin-left","flex"]);return Object.assign(t.style,{position:"absolute",left:"0",top:"0",right:"auto",bottom:"auto",boxSizing:"border-box",width:`${l}px`,height:`${a}px`,minWidth:"0",minHeight:"0",maxWidth:"none",maxHeight:"none",margin:"0",flex:"none"}),()=>{u(),d==null||d.remove()}}function at(t,e,n){const o=(s,l)=>`${l>0?s/l*100:0}%`,i=[o(e.top,t.height),o(e.right,t.width),o(e.bottom,t.height),o(e.left,t.width)].join(" "),r=n.map(s=>o(s.x,t.width)).join(" "),c=n.map(s=>o(s.y,t.height)).join(" ");return`inset(${i} round ${r} / ${c})`}class to{constructor(){M(this,"previousFromOpacity","")}prepare(e){e.from.then(n=>{this.previousFromOpacity=n.style.opacity,n.style.opacity="0"})}contribute(e){return e.onDispose(n=>{n.owns(e.from)&&(e.from.style.opacity=this.previousFromOpacity)}),{}}}const eo=()=>new to;function no(t,e){const n=new Set(e),o=new Set;for(const c of n){let s=c.parentElement;for(;s&&s!==t;)o.add(s),s=s.parentElement}const i=[],r=c=>{var s,l;if(!(n.has(c)||((s=c.getAttribute)==null?void 0:s.call(c,ot))!=null||((l=c.getAttribute)==null?void 0:l.call(c,"data-hero-placeholder"))!=null)){if(c!==t&&!o.has(c)){i.push(c);return}for(const a of Array.from(c.children))a instanceof HTMLElement&&r(a)}};return r(t),i}class oo{contribute(e){const{from:n,to:o,resolved:i,physics:r,onDispose:c}=e,s=i.pairs.map(p=>ue(p.toEl)??p.toEl),l=(s.length?no(o,s):[o]).map(p=>({element:p,opacity:p.style.opacity,willChange:p.style.willChange,targetOpacity:Number.parseFloat(getComputedStyle(p).opacity)||0})),a=new Set;for(const p of s)for(let f=p.parentElement;f&&(a.add(f),f!==o);f=f.parentElement);const d=Array.from(a).map(p=>({element:p,color:getComputedStyle(p).backgroundColor,previousColor:p.style.backgroundColor})).filter(({color:p})=>p&&p!=="transparent"&&p!=="rgba(0, 0, 0, 0)"),u=n.style.opacity,y=n.style.willChange;n.style.willChange="opacity";for(const{element:p}of l)p.style.opacity="0",p.style.willChange="opacity";for(const{element:p}of d)p.style.backgroundColor="transparent";return c(p=>{p.owns(n)&&(n.style.opacity=u,n.style.willChange=y);for(const{element:f,opacity:h,willChange:m}of l)p.owns(f)&&(f.style.opacity=h,f.style.willChange=m);for(const{element:f,previousColor:h}of d)p.owns(f)&&(f.style.backgroundColor=h)}),{out:[new b.WebAnimation({element:n,integrator:S.IntegratorProvider.from(r),style:(p,f)=>({opacity:f})})],in:[...l.map(({element:p,targetOpacity:f})=>new b.WebAnimation({element:p,integrator:S.IntegratorProvider.from(r),style:h=>({opacity:Math.min(1,Math.max(0,h))*f})})),...d.map(({element:p,color:f})=>new b.WebAnimation({element:p,integrator:S.IntegratorProvider.from(r),style:h=>({backgroundColor:`color-mix(in srgb, ${f} ${Math.min(1,Math.max(0,h))*100}%, transparent)`})}))]}}}const io=()=>new oo,ro={static:eo,fade:io},so={spring:{stiffness:320,damping:30}},ao=()=>so,co={spring:{stiffness:300,damping:30,doubleSpring:1}},lo=()=>co,uo={default:ao,smooth:lo},po=700,fo="data-hero-aspect-ratio",ho="data-hero-radius";function Qt(t,e,n,o){const i=c=>{const s=L(t,c);return{left:s.left+t.scrollLeft,top:s.top+t.scrollTop,width:s.width,height:s.height}},r=i(e);return nt(e,r,i,{clipRoot:o,fallbackFit:n,legacyAspectRatioAttribute:fo,legacyRadiusAttribute:ho})}function tt(t,e){const n=new Map,o=t.querySelectorAll(`[${e}]`);for(const i of Array.from(o)){const r=i.getAttribute(e);r&&(n.has(r)||n.set(r,i))}return n}function yo(t,e){const n=[],o=tt(e,it),i=tt(t,rt);for(const[s,l]of o){const a=i.get(s);a&&n.push({key:s,fromEl:a,toEl:l,fromFit:X("exit"),toFit:X("enter")})}const r=tt(t,it),c=tt(e,rt);for(const[s,l]of r){const a=c.get(s);a&&n.push({key:s,fromEl:l,toEl:a,fromFit:X("enter"),toFit:X("exit")})}return n}function mo(t,e){const n=[],o=Array.from(e.querySelectorAll(`[${q}]`));for(const i of o){const r=i.getAttribute(q);if(!r)continue;const c=t.querySelector(`[${q}="${r}"]`);c&&n.push({key:r,fromEl:c,toEl:i,fromFit:X("legacy"),toFit:X("legacy")})}return n}function go(t,e){const n=yo(t,e);return n.length>0?n:mo(t,e)}function bo(t,e){return he(t,e)}function wo(t,e){return t.radiusSource==="unsupported"||e.radiusSource==="unsupported"?!1:t.mediaElement!==null||e.mediaElement!==null||t.radiusSource==="computed"||t.radiusSource==="legacy"||e.radiusSource==="computed"||e.radiusSource==="legacy"}function So(t,e,n,o,i){const{fromEl:r,toEl:c}=e,[s,l]=bo(Qt(t,r,e.fromFit,o),Qt(t,c,e.toFit,i)),a=s.content,d=s.window,u=l.content,y=l.window,p=l.clipInset,f=s.radiusSource==="unsupported"||l.radiusSource==="unsupported",h=f?0:s.radius,m=f?0:l.radius;if(a.width===0||a.height===0||d.width===0||d.height===0||u.width===0||u.height===0||y.width===0||y.height===0)return null;const w=a.width/u.width,g=a.height/u.height,A=W(a),$=H(a),P=W(u),C=H(u),x=A-P,E=$-C;if(Math.abs(E)>n)return null;const R=U(u,ye(u,a,d,w,g));return{fromContent:a,toContent:u,fromVisualEl:s.mediaElement??r,toVisualEl:l.mediaElement??c,resetRadius:wo(s,l),styleFor:(T,O,I)=>{const k=(O*x+(I?P-W(I.box):0))/((I==null?void 0:I.scaleX)??1),D=(O*E+(I?C-H(I.box):0))/((I==null?void 0:I.scaleY)??1),Y=T+O*w,ct=T+O*g,xe=s.cornerRadii??[h,h,h,h],Ae=l.cornerRadii??[m,m,m,m],Ee=xe.map((Ie,Re)=>{const kt=Math.max(0,Ie*O+Ae[Re]*T);return{x:kt/Math.max(Math.abs(Y),1e-6),y:kt/Math.max(Math.abs(ct),1e-6)}}),$e=R.top*O+p.top*T,ve=R.right*O+p.right*T,Ce=R.bottom*O+p.bottom*T,Pe=R.left*O+p.left*T;return{transform:I?`translate(${k}px, ${D}px) scale(${Y*u.width/I.box.width}, ${ct*u.height/I.box.height})`:`translate(${k}px, ${D}px) scale(${Y}, ${ct})`,clipPath:at(u,{top:$e,right:ve,bottom:Ce,left:Pe},Ee)}}}}function te(t,e,n){return{key:t,role:"shared-media",space:e,lifetime:n?"temporary":"persistent"}}function ee(t){return{role:"shared-media-source",space:t,lifetime:"temporary"}}function xo(t,e){t.style.transform=e.transform,t.style.clipPath=e.clipPath}class Ao{contribute(e){const{resolved:n,physics:o,positionedParent:i,maxDistance:r,onDispose:c}=e,s=Jn(e.from,e.to);c(d=>s(d.owns));const l=n.pairs.flatMap(d=>{const u=So(i,d,r,e.from,e.to);return u?[{pair:d,plan:u}]:[]});e.resolved={pairs:l.map(({pair:d})=>d)};const a=[];for(const{pair:d,plan:u}of l){const{fromVisualEl:y,toVisualEl:p}=u,f=b.retainOpacity(y),h=b.retainOpacity(p);if(Gn(d,e.direction)){const{layer:E,source:R,destination:T}=qn(y,p,u.fromContent,u.toContent,u.resetRadius),O={box:u.fromContent,scaleX:1,scaleY:1},I=(D,Y)=>({...u.styleFor(D,Y,O),opacity:B(Y)*f.opacity}),k=(D,Y)=>({...u.styleFor(D,Y),opacity:B(D)*h.opacity});Object.assign(R.style,I(0,1)),Object.assign(T.style,k(0,1)),i.appendChild(E),f.set(0),h.set(0),c(()=>{E.remove(),f.restore(),h.restore()}),a.push(new b.WebAnimation({element:R,motion:ee(i),integrator:S.IntegratorProvider.from(o),style:I}),new b.WebAnimation({element:T,motion:te(d.key,i,!0),integrator:S.IntegratorProvider.from(o),style:k}));continue}const m=Mt(y),w=Kn(p),g=st(p,["transform","transform-origin","clip-path","object-fit","border-radius","will-change"]);p.style.transform="none",p.style.transformOrigin="center center",p.style.willChange="transform, clip-path, opacity",u.resetRadius&&(p.style.borderRadius="0");const A=Qn(p,u.toContent,L(i,p)),$=Pt(i,p);m.style.width=`${u.fromContent.width/$.scaleX}px`,m.style.height=`${u.fromContent.height/$.scaleY}px`,m.style.zIndex=getComputedStyle(p).zIndex,u.resetRadius&&(m.style.borderRadius="0"),p.after(m);const P=Pt(i,m),C=(E,R)=>({...u.styleFor(E,R,P),opacity:B(R)*f.opacity}),x=(E,R)=>({...u.styleFor(E,R,$),opacity:B(E)*h.opacity});xo(p,x(0,1)),Object.assign(m.style,C(0,1)),h.set(0),f.set(0),c(()=>{A(),g(),f.restore(),h.restore(),w(),m.remove()}),a.push(new b.WebAnimation({element:m,motion:ee(i),integrator:S.IntegratorProvider.from(o),style:C}),new b.WebAnimation({element:p,motion:te(d.key,i,!1),integrator:S.IntegratorProvider.from(o),style:x}))}return{shared:a}}}function Eo(t){return[new Ao,ro[t.type]()]}const $o=t=>{const e=uo[t.variant](),n=po,o={prepare:i=>{var l;const r=Eo(t),c=Promise.all([i.from,i.to]).then(([a,d])=>({pairs:go(a,d)})),s={from:i.from,to:i.to,resolved:c};for(const a of r)(l=a.prepare)==null||l.call(a,s);return c.then(a=>({resolved:a,strategies:r}))},animation:({from:i,to:r,context:c,resolved:s,strategies:l})=>{var h;if(s.pairs.length===0)return K({shared:[],out:[],in:[]});const a=[],d=m=>{a.push(m)},u={direction:c.direction,from:i,to:r,resolved:s,physics:e,positionedParent:c.positionedParent,maxDistance:n,onDispose:d},y={shared:[],out:[],in:[]};for(const m of l){const w=(h=m.contribute)==null?void 0:h.call(m,u);if(w)for(const g of Object.keys(y))y[g].push(...w[g]??[])}const p=K(y),f=p.onDispose;return p.onDispose=m=>{f==null||f(m);for(const w of Object.values(y).flat())w instanceof b.WebAnimation&&w.releaseFill();for(const w of a)try{w(m)}catch(g){console.error("[hero] cleanup error",g)}},p}};return v.defineTransition({forward:o,backward:o})};function vo(t={},e={}){const n=t.type??"static",o=t.variant??"default";return v.withOverride($o({type:n,variant:o}),e.override)}const Co={spring:{stiffness:50,damping:30}},Po={spring:{stiffness:80,damping:25}},Io=(t={})=>{const e=t.physics??Co,n=t.initialRotation??45,o=t.initialScale??.01,i=t.rotationTriggerPoint??.8,r={prepare:({from:c,to:s,context:l})=>(c.then(a=>{a.style.opacity="1"}),s.then(a=>{const d=N(l,"to"),u=Math.min(d.width,d.height)*.4;a.style.setProperty("--max-border-radius",`${u}px`),a.style.setProperty("--border-radius-scale","1"),a.style.willChange="transform",a.style.backfaceVisibility="hidden";const y=d.left+d.width/2,p=d.top+d.height/2;a.style.transformOrigin=`${y}px ${p}px`,a.style.position="fixed",a.style.top=`${d.top}px`,a.style.left=`${d.left}px`,a.style.width=`${d.width}px`,a.style.height=`${d.height}px`,a.style.zIndex="1000",a.style.overflow="hidden",a.style.transform=`rotate(${n}deg) scale(${o}) translateZ(0)`,a.style.borderRadius="calc(var(--max-border-radius) * var(--border-radius-scale))",a.style.opacity="1"}),{}),animation:({from:c,to:s})=>{const l=new b.WebAnimation({element:c,integrator:S.IntegratorProvider.from(Po),style:(d,u)=>({opacity:u}),onDispose:()=>{c.style.opacity=""}}),a=new b.WebAnimation({element:s,integrator:S.IntegratorProvider.from(e),style:d=>{let u;if(d<=.05)u=o;else if(d<=i){const h=(d-.05)/(i-.05),m=Math.pow(h,9);u=o+(.8-o)*m}else{const h=(d-i)/(1-i);u=.8+.2*(1-Math.pow(1-h,3))}const y=.7;let p;if(d<=y)p=n;else{const h=(d-y)/(1-y),m=1-Math.pow(1-h,2);p=n*(1-m)}let f;if(d<=y)f=1;else{const h=(d-y)/(1-y);f=1-Math.pow(h,.5)}return{transform:`rotate(${p.toFixed(2)}deg) scale(${u.toFixed(4)}) translateZ(0)`,"--border-radius-scale":f.toFixed(4)}},onDispose:()=>{s.style.willChange="",s.style.backfaceVisibility="",s.style.removeProperty("--max-border-radius"),s.style.removeProperty("--border-radius-scale"),s.style.transform="",s.style.transformOrigin="",s.style.position="",s.style.zIndex="",s.style.top="",s.style.left="",s.style.width="",s.style.height="",s.style.overflow="",s.style.borderRadius=""}});return new b.MultiAnimation({out:l,in:a},{mode:"parallel"})}};return v.defineTransition({forward:r,backward:r})};function Ro(t={},e={}){return v.withOverride(Io(),e.override)}const Oo={spring:{stiffness:100,damping:30}},Mo=(t={})=>{const e=t.physics??Oo,n={prepare:({from:o,to:i})=>(o.then(r=>{r.style.transformOrigin="center center",r.style.willChange="transform, opacity"}),i.then(r=>{r.style.opacity="0",r.style.transform="rotate(-180deg)",r.style.transformOrigin="center center",r.style.willChange="transform, opacity"}),{}),animation:({from:o,to:i})=>{const r=new b.WebAnimation({element:o,integrator:S.IntegratorProvider.from(e),style:s=>({transform:`rotate(${s*180}deg)`,opacity:s<.5?1:0}),onDispose:()=>{o.style.willChange="auto",o.style.transform="",o.style.transformOrigin="",o.style.opacity=""}}),c=new b.WebAnimation({element:i,integrator:S.IntegratorProvider.from(e),style:(s,l)=>({transform:`rotate(${-l*180}deg)`,opacity:s>.5?1:0}),onDispose:()=>{i.style.willChange="auto",i.style.transform="",i.style.transformOrigin="",i.style.opacity=""}});return new b.MultiAnimation({out:r,in:c},{mode:"parallel"})}};return v.defineTransition({forward:n,backward:n})};function To(t={},e={}){return v.withOverride(Mo(),e.override)}const _o={spring:{stiffness:20,damping:8,doubleSpring:1,restDelta:.001,restSpeed:.001}},ko=(t={})=>{const e=t.physics??_o,n=t.directional??!0,o=i=>{const r=!n||i==="forward",c=r?F:_,s=r?_:F;return{prepare:({from:l,to:a})=>(l.then(d=>{d.style.zIndex=c,d.style.willChange="transform",d.style.backfaceVisibility="hidden",d.style.contain="layout paint",d.style.pointerEvents="none"}),a.then(d=>{d.style.willChange="transform",d.style.backfaceVisibility="hidden",d.style.contain="layout paint",d.style.position="relative",d.style.zIndex=s}),{}),animation:({from:l,to:a})=>{const d=l.offsetHeight,u=a.offsetHeight,y=window.innerHeight,p=Math.max(Math.min(d,u),y),f=new b.WebAnimation({element:l,integrator:S.IntegratorProvider.from(e),style:m=>({transform:`translate3d(0, ${r?-p*m:p*m}px, 0)`}),onDispose:()=>{l.style.willChange="auto",l.style.backfaceVisibility="",l.style.contain="",l.style.transform="",l.style.pointerEvents="",l.style.zIndex=""}}),h=new b.WebAnimation({element:a,integrator:S.IntegratorProvider.from(e),style:(m,w)=>({transform:`translate3d(0, ${r?w*p:w*-p}px, 0)`}),onDispose:()=>{a.style.willChange="auto",a.style.backfaceVisibility="",a.style.contain="",a.style.transform="",a.style.position==="relative"&&(a.style.position=""),a.style.zIndex===s&&(a.style.zIndex="")}});return[f,h].forEach(J),new b.MultiAnimation({out:f,in:h},{mode:"parallel"})}}};return v.defineTransition({forward:o("forward"),backward:o("backward")})};function Do(t={},e={}){const{type:n="directional"}=t;return v.withOverride(ko({directional:n==="directional"}),e.override)}const Fo={spring:{stiffness:200,damping:24}},Yo={inertia:{acceleration:25,resistance:1.2}},mt=.2;function Lo(){return{enterPhysics:Fo,exitPhysics:Yo,background:{willChange:"transform, opacity",enterStyle:(t,e)=>({transform:`scale(${1-mt*t})`,opacity:e}),exitStyle:t=>({transform:`scale(${1-mt+mt*t})`,opacity:t})}}}const Wo={spring:{stiffness:200,damping:24}},Ho={inertia:{acceleration:25,resistance:1.2}},gt=.08,zo=16,bt=.6,No=t=>`blur(${Math.max(0,t).toFixed(2)}px)`;function Vo(){return{enterPhysics:Wo,exitPhysics:Ho,background:{willChange:"transform, opacity",enterStyle:t=>({transform:`scale(${1-gt*t})`,opacity:1-(1-bt)*t}),exitStyle:t=>({transform:`scale(${1-gt+gt*t})`,opacity:bt+(1-bt)*t})},overlay:{willChange:"backdrop-filter",initialStyle:{position:"absolute",left:"0",width:"100%",pointerEvents:"none",backdropFilter:"blur(0px)",WebkitBackdropFilter:"blur(0px)"},style:(t,e)=>{const n=t==="enter"?e:1-e,o=No(zo*n);return{backdropFilter:o,WebkitBackdropFilter:o}}}}}const Xo={spring:{stiffness:190,damping:25}},Bo={spring:{stiffness:190,damping:25}};function Uo(){return{enterPhysics:Xo,exitPhysics:Bo,background:{willChange:"",enterStyle:()=>({}),exitStyle:()=>({})}}}const jo={static:Uo(),"background-scale":Lo(),blur:Vo()},Zo="static",Go="transform",qo=(t={})=>{const e=jo[t.type??Zo],n=e.background,o=e.overlay,i=n.willChange!=="",r=c=>{const s=c==="forward"?"enter":"exit",l=s==="enter"?"to":"from",a=s==="enter"?"from":"to",d=s==="enter"?e.enterPhysics:e.exitPhysics;return{prepare:({from:u,to:y,context:p,createElement:f})=>{const h={from:u,to:y}[l],m={from:u,to:y}[a];h.then(g=>{g.style.willChange=Go,g.style.backfaceVisibility="hidden",g.style.contain="layout paint",g.style.zIndex=_,s==="enter"?g.style.position="relative":g.style.pointerEvents="none"}),m.then(g=>{i&&(g.style.willChange=n.willChange,g.style.backfaceVisibility="hidden",g.style.contain="layout paint"),g.style.zIndex=F,s==="enter"?g.style.pointerEvents="none":g.style.position="relative"});let w;return o&&(w=f("sheet-overlay"),Object.assign(w.style,o.initialStyle),w.style.willChange=o.willChange,p.positionedParent.appendChild(w)),{overlay:w}},animation:({from:u,to:y,context:p,overlay:f})=>{const h={from:u,to:y}[l],m={from:u,to:y}[a],w=N(p,l),g=()=>{u.style.pointerEvents="",u.style.zIndex=""},A=()=>{const x=s==="enter"?_:F;y.style.position==="relative"&&(y.style.position=""),y.style.zIndex===x&&(y.style.zIndex="")};h.style.clipPath=`inset(${w.top}px 0 calc(100% - ${w.top+w.height}px) 0)`;const $=s==="enter"?(x,E)=>({transform:`translate3d(0, ${E*w.height}px, 0)`}):x=>({transform:`translate3d(0, ${x*w.height}px, 0)`}),P=new b.WebAnimation({element:h,integrator:S.IntegratorProvider.from(d),style:$,onDispose:x=>{h.style.willChange="auto",h.style.backfaceVisibility="",h.style.contain="",h.style.clipPath="",h.style.transform="",x.owns(u)&&g(),x.owns(y)&&A()}});J(P);const C={sheet:P,background:new b.MultiAnimation([]),overlay:new b.MultiAnimation([])};if(i){const x=m.scrollHeight;x>0&&(m.style.height=`${x}px`);const E=N(p,a),R=E.left+E.width/2,T=E.top+E.height/2;m.style.clipPath=`inset(${E.top}px 0 calc(100% - ${E.top+E.height}px) 0)`,m.style.transformOrigin=`${R}px ${T}px`;const O=s==="enter"?(k,D)=>n.enterStyle(k,D):k=>n.exitStyle(k),I=new b.WebAnimation({element:m,integrator:S.IntegratorProvider.from(d),style:O,onDispose:()=>{m.style.willChange="auto",m.style.backfaceVisibility="",m.style.contain="",m.style.clipPath="",m.style.transformOrigin="",m.style.transform="",m.style.opacity="",m.style.height=""}});J(I),C.background=I}if(f&&o){f.style.zIndex=de;const x=ce(p,"to");f.style.top=`${x.top}px`,f.style.height=`${x.height}px`,C.overlay=new b.WebAnimation({element:f,motion:{lifetime:"temporary",role:"overlay"},integrator:S.IntegratorProvider.from(d),style:E=>o.style(s,E)})}return new b.MultiAnimation(C,{mode:"parallel"})}}};return v.defineTransition({forward:r("forward"),backward:r("backward")})};function Ko(t){return t==="scale"||t==="background-scale"?"background-scale":t==="blur"?"blur":"static"}function Jo(t={},e={}){const n=t.type,o=Ko(n);return v.withOverride(qo({type:o}),e.override)}const Qo=(t={})=>{const e=t.physics??z.SLIDE_PHYSICS,n=o=>{const i=o==="forward"?100:-100;return{prepare:({from:r,to:c})=>(r.then(s=>{s.style.willChange="transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint",s.style.pointerEvents="none"}),c.then(s=>{s.style.transform=`translate3d(${i}%, 0, 0)`,s.style.willChange="transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint"}),{}),animation:({from:r,to:c})=>{const s=new b.WebAnimation({element:r,integrator:S.IntegratorProvider.from(e),style:a=>({transform:`translate3d(${100*z.pageMotionStyle("slide","out",o,a).x}%, 0, 0)`}),onDispose:()=>{r.style.willChange="auto",r.style.backfaceVisibility="",r.style.contain="",r.style.transform="",r.style.pointerEvents=""}}),l=new b.WebAnimation({element:c,integrator:S.IntegratorProvider.from(e),style:a=>({transform:`translate3d(${100*z.pageMotionStyle("slide","in",o,a).x}%, 0, 0)`}),onDispose:()=>{c.style.willChange="auto",c.style.backfaceVisibility="",c.style.contain="",c.style.transform=""}});return new b.MultiAnimation({out:s,in:l},{mode:"parallel"})}}};return v.defineTransition({forward:n("forward"),backward:n("backward")})};function ti(t={},e={}){return v.withOverride(Qo(),e.override)}const ei={spring:{stiffness:17,damping:6}},wt=20,et=800,ni=(t={})=>{const e=t.physics??ei,n={prepare:({from:o,to:i})=>(o.then(r=>{r.style.willChange="transform",r.style.backfaceVisibility="hidden",r.style.contain="layout paint",r.style.pointerEvents="none",r.style.transform=`perspective(${et}px) rotateY(0deg) translate3d(0%, 0, 0)`}),i.then(r=>{r.style.willChange="transform",r.style.backfaceVisibility="hidden",r.style.contain="layout paint",r.style.transform=`perspective(${et}px) rotateY(${wt}deg) translate3d(-100%, 0, 0)`}),{}),animation:({from:o,to:i})=>{const r=new b.WebAnimation({element:o,integrator:S.IntegratorProvider.from(e),style:s=>{const l=-s*wt,a=s*100;return{transform:`perspective(${et}px) rotateY(${l}deg) translate3d(${a}%, 0, 0)`}},onDispose:()=>{o.style.transform="",o.style.willChange="auto",o.style.backfaceVisibility="",o.style.contain="",o.style.pointerEvents=""}}),c=new b.WebAnimation({element:i,integrator:S.IntegratorProvider.from(e),style:(s,l)=>{const a=l*wt,d=-l*100;return{transform:`perspective(${et}px) rotateY(${a}deg) translate3d(${d}%, 0, 0)`}},onDispose:()=>{i.style.transform="",i.style.willChange="auto",i.style.backfaceVisibility="",i.style.contain=""}});return new b.MultiAnimation({out:r,in:c},{mode:"sequence"})}};return v.defineTransition({forward:n,backward:n})};function oi(t={},e={}){return v.withOverride(ni(),e.override)}const St=new WeakMap;function ii(t){const e=St.get(t)??{opacity:t.style.opacity,users:0};e.users++,St.set(t,e),t.style.opacity="0";let n=!1;return()=>{n||(n=!0,!(--e.users>0)&&(t.style.opacity==="0"&&(t.style.opacity=e.opacity),St.delete(t)))}}function ri(t,e){return e.left>=t.left-.01&&e.top>=t.top-.01&&e.left+e.width<=t.left+t.width+.01&&e.top+e.height<=t.top+t.height+.01}function Tt(t){const e=()=>({contentAware:!1,enterContent:t.enterRect,exitContent:t.exitRect,startWindow:t.enterRect,scaleX:t.exitRect.width/t.enterRect.width,scaleY:t.exitRect.height/t.enterRect.height}),{enterMedia:n,exitMedia:o}=t;if(!n||!o||!fe(n,o))return e();const i=n.content,r=o.content;if(i.width<=0||i.height<=0||r.width<=0||r.height<=0)return e();const c=r.width/i.width,s=r.height/i.height,l=ye(i,r,o.window,c,s);return ri(n.window,l)?{contentAware:!0,enterContent:i,exitContent:r,startWindow:l,scaleX:c,scaleY:s,exitCornerRadii:o.cornerRadii}:e()}function me(t,e){return{top:t.top,right:e.width-(t.left+t.width),bottom:e.height-(t.top+t.height),left:t.left}}function si(t,e,n){return{x:t/Math.max(Math.abs(e),1e-6),y:t/Math.max(Math.abs(n),1e-6)}}function ge(t,e,n,o,i,r){return(n??[t]).map(c=>si(Math.max(0,c*o+e*(1-o)),i,r))}function ai(t){const{pageRect:e,scrollOffset:n,enterRadius:o,exitRadius:i}=t,r=Tt(t),{enterContent:c,exitContent:s,startWindow:l,scaleX:a,scaleY:d}=r,u=s.left-c.left+(s.width-c.width)/2-n.x,y=s.top-c.top+(s.height-c.height)/2-n.y,p=me(l,e);return{transformOrigin:`${W(c)}px ${H(c)}px`,animate:f=>{const h=1-f,m=1+(a-1)*h,w=1+(d-1)*h,g=ge(i,o,r.exitCornerRadii,h,m,w);return{clipPath:at(e,{top:p.top*h,right:p.right*h,bottom:p.bottom*h,left:p.left*h},g),transform:`translate(${u*h}px, ${y*h}px) scale(${m}, ${w})`}}}}function ci(t){const{pageRect:e,scrollOffset:n,enterRadius:o,exitRadius:i}=t,r=Tt(t),{enterContent:c,exitContent:s,startWindow:l,scaleX:a,scaleY:d}=r,u=s.left-c.left+(s.width-c.width)/2+n.x,y=s.top-c.top+(s.height-c.height)/2+n.y,p=me(l,e);return{transformOrigin:`${W(c)}px ${H(c)}px`,animate:f=>{const h=1-f,m=1+(a-1)*h,w=1+(d-1)*h,g=ge(i,o,r.exitCornerRadii,h,m,w);return{clipPath:at(e,{top:p.top*h,right:p.right*h,bottom:p.bottom*h,left:p.left*h},g),transform:`translate(${u*h-n.x}px, ${y*h}px) scale(${m}, ${w})`}}}}const li={spring:{stiffness:380,damping:30,restDelta:.1,restSpeed:.1,doubleSpring:{stiffness:260,damping:30}}},be=.12,di=18;function ui(){return{transformOrigin:"50% 50%",animate:t=>{const e=1-t;return{transform:`scale(${1-be*e})`}}}}function pi(){return{transformOrigin:"50% 50%",animate:t=>{const e=1-t;return{transform:`scale(${1-be*e})`}}}}const xt={willChange:"backdrop-filter",initialStyle:{position:"absolute",left:"0",width:"100%",pointerEvents:"none",backdropFilter:"blur(0px)",WebkitBackdropFilter:"blur(0px)"},style:(t,e)=>{const n=t==="enter"?e:1-e,o=`blur(${di*n}px)`;return{backdropFilter:o,WebkitBackdropFilter:o}}};class fi{constructor(){M(this,"name","background");M(this,"physics",li)}contribute(e){const{from:n,to:o,resolved:i,physics:r}=e,c=i.mode==="enter",s=c?n:o,l=c?ui():pi();return l&&(s.style.transformOrigin=l.transformOrigin),[new b.WebAnimation({element:s,integrator:S.IntegratorProvider.from(r),style:c?(a,d)=>l.animate(d):a=>l.animate(a)})]}}class hi{constructor(){M(this,"name","overlay")}prepare(e){const n=e.createElement("zoom-overlay");return Object.assign(n.style,xt.initialStyle),n.style.willChange=xt.willChange,e.context.positionedParent.appendChild(n),{overlay:n}}contribute(e){const n=e.extras.overlay;if(!n)return[];n.style.zIndex=de;const o=ce(e.context,"to");return n.style.top=`${o.top}px`,n.style.height=`${o.height}px`,[new b.WebAnimation({element:n,motion:{lifetime:"temporary",role:"overlay"},integrator:S.IntegratorProvider.from(e.physics),style:i=>xt.style(e.resolved.mode,i)})]}}const yi={spring:{stiffness:380,damping:30,doubleSpring:{stiffness:260,damping:30}}};function mi({enterRect:t,exitRect:e,scrollOffset:n}){const o=t.left-e.left+(t.width-e.width)/2+n.x,i=t.top-e.top+(t.height-e.height)/2+n.y,r=t.width/e.width,c=t.height/e.height,s=Math.max(r,c);return{transformOrigin:`${e.left+e.width/2}px ${e.top+e.height/2}px`,animate:l=>{const a=1-l;return{transform:`translate(${o*a-n.x}px, ${i*a}px) scale(${1+(s-1)*a})`}}}}function gi({enterRect:t,exitRect:e,scrollOffset:n}){const o=t.left-e.left+(t.width-e.width)/2-n.x,i=t.top-e.top+(t.height-e.height)/2-n.y,r=t.width/e.width,c=t.height/e.height,s=Math.max(r,c);return{transformOrigin:`${e.left+e.width/2}px ${e.top+e.height/2}px`,animate:l=>{const a=1-l;return{transform:`translate(${o*a}px, ${i*a}px) scale(${1+(s-1)*a})`}}}}class bi{constructor(){M(this,"name","background");M(this,"physics",yi)}contribute(e){const{from:n,to:o,resolved:i,input:r,physics:c}=e,s=i.mode==="enter",l=s?n:o,a=s?mi(r):gi(r);return a&&(l.style.transformOrigin=a.transformOrigin),[new b.WebAnimation({element:l,integrator:S.IntegratorProvider.from(c),style:s?(d,u)=>a.animate(u):d=>a.animate(d)})]}}const wi={spring:{stiffness:530,damping:34,doubleSpring:1}};class Si{constructor(){M(this,"name","background");M(this,"physics",wi)}contribute(e){return[]}}const xi={expand:()=>new bi,static:()=>new Si,blur:()=>new fi};function Ai(t){return xi[t]()}function Ei(t){var A,$;const{resolved:e,input:n,from:o,to:i,physics:r,onDispose:c}=t,s=e.mode==="enter",l=s?i:o,a=Tt(n),d=a.contentAware?((A=n.exitMedia)==null?void 0:A.mediaElement)??e.exitEl:e.exitEl,u=a.contentAware?(($=n.enterMedia)==null?void 0:$.mediaElement)??e.enterEl:e.enterEl,y=b.retainOpacity(d),p=b.retainOpacity(u),f=Mt(d);a.contentAware&&(f.style.width=`${a.exitContent.width}px`,f.style.height=`${a.exitContent.height}px`,f.style.borderRadius="0"),f.style.zIndex=getComputedStyle(u).zIndex,u.after(f),f.style.transform=Zn({width:a.enterContent.width,height:a.enterContent.height,left:a.enterContent.left+l.scrollLeft,top:a.enterContent.top+l.scrollTop},Pt(l,f));const h=n.enterMedia??nt(e.enterEl,n.enterRect,P=>L(l,P),{clipRoot:l,legacyRadiusAttribute:"data-zoom-radius"});if((a.contentAware?h.radiusSource:h.bboxRadiusSource)!=="unsupported"){const P=a.contentAware?h.window:n.enterRect,C=a.contentAware?h.cornerRadii??[h.radius]:[h.bboxRadius];f.style.borderRadius="0",f.style.clipPath=at(a.enterContent,U(a.enterContent,P),C.map(x=>({x,y:x})))}const w=(P,C)=>({opacity:B(s?C:P)*y.opacity}),g=(P,C)=>({opacity:B(s?P:C)*p.opacity});return f.style.opacity=String(w(0,1).opacity),y.set(0),p.set(g(0,1).opacity),c(()=>{f.remove(),y.restore(),p.restore()}),[new b.WebAnimation({element:f,motion:{lifetime:"temporary",role:"shared-media-source"},integrator:S.IntegratorProvider.from(r),style:w}),new b.WebAnimation({element:u,integrator:S.IntegratorProvider.from(r),style:g})]}const It="data-zoom-enter-key",ne="data-zoom-exit-key",oe="data-zoom-radius";function $i(t,e){return Math.abs(t.left-e.left)<.01&&Math.abs(t.top-e.top)<.01&&Math.abs(t.width-e.width)<.01&&Math.abs(t.height-e.height)<.01}function vi(t,e){const n=[];let o=e;for(;o&&o!==t;){const i=o.parentElement;if(!i)break;for(const r of Array.from(i.children))r!==o&&r instanceof HTMLElement&&!r.hasAttribute(ot)&&n.push(r);o=i}return n}function ie(t){const e=t.querySelectorAll(`[${It}]`);return e.length!==1?null:e[0]}function re(t,e){const n=t.querySelectorAll(`[${ne}]`);for(const o of n)if(o.getAttribute(ne)===e)return o;return null}function Ci(t,e,n){if(n==="forward"){const c=ie(e);if(!c)return null;const s=c.getAttribute(It);if(!s)return null;const l=re(t,s);return l?{mode:"enter",enterEl:c,exitEl:l}:null}const o=ie(t);if(!o)return null;const i=o.getAttribute(It);if(!i)return null;const r=re(e,i);return r?{mode:"exit",enterEl:o,exitEl:r}:null}function Pi(t,e,n,o){const i=t.mode==="enter"?n:e,r=t.mode==="enter"?e:n,c=L(i,t.enterEl),s=L(r,t.exitEl),l=nt(t.enterEl,c,m=>L(i,m),{clipRoot:i,legacyRadiusAttribute:oe}),a=nt(t.exitEl,s,m=>L(r,m),{clipRoot:r,legacyRadiusAttribute:oe}),[d,u]=he(l,a),y=d.contentAware&&u.contentAware,p=t.mode==="enter"?n.getBoundingClientRect():e.getBoundingClientRect(),f={left:0,top:0,width:p.width,height:p.height},h=d.radiusSource==="legacy"||$i(d.window,f)?d.radius:0;return{enterRect:c,exitRect:s,...y?{enterMedia:d,exitMedia:u}:{},pageRect:p,scrollOffset:o,enterRadius:h,exitRadius:u.radius}}class Ii{constructor(){M(this,"name","tile")}prepare(e){e.from.then(n=>{n.style.willChange="transform, clip-path, opacity",n.style.backfaceVisibility="hidden",n.style.contain="layout paint"})}contribute(e){const{from:n,to:o,resolved:i,input:r,physics:c,onDispose:s}=e,l=i.mode==="enter",a=l?ai(r):ci(r),d=l?o:n,u=l?"t":"u",y=Ei(e);s(ii(i.exitEl)),a&&(d.style.transformOrigin=a.transformOrigin);const p=l?F:_,f=l?_:F,h=n.style.zIndex;n.style.zIndex=p;const m=o.style.zIndex,w=o.style.position;return o.style.zIndex=f,o.style.position="relative",s(g=>{g.owns(d)&&(d.style.willChange="auto",d.style.backfaceVisibility="",d.style.transformOrigin="",d.style.contain=""),g.owns(n)&&(n.style.zIndex=h,n.style.willChange="auto",n.style.backfaceVisibility="",n.style.transformOrigin="",n.style.contain="",n.style.transform="",n.style.clipPath=""),g.owns(o)&&(o.style.zIndex=m,o.style.position=w,o.style.transformOrigin="")}),[...y,new b.WebAnimation({element:d,integrator:S.IntegratorProvider.from(c),style:u==="t"?g=>a.animate(g):(g,A)=>a.animate(A)})]}}class Ri{constructor(){M(this,"name","content")}contribute(e){const{resolved:n,physics:o,from:i,to:r,onDispose:c}=e,s=n.mode==="enter"?r:i,l=vi(s,n.enterEl);if(l.length===0)return[];const a=l.map(d=>d.style.opacity);if(n.mode==="enter")for(const d of l)d.style.opacity="0";return c(d=>{for(let u=0;u<l.length;u++){const y=l[u];y&&d.owns(y)&&(y.style.opacity=a[u]??"")}}),l.map(d=>new b.WebAnimation({element:d,integrator:S.IntegratorProvider.from(o),style:(u,y)=>({opacity:n.mode==="enter"?u:y})}))}}class Oi{constructor(){M(this,"name","content")}contribute(){return[]}}const Mi={default:()=>new Oi,fade:()=>new Ri};function Ti(t){return Mi[t]()}function At(t){const e=Ai(t.type);return{strategies:[new Ii,e,Ti(t.variant),...t.type==="blur"?[new hi]:[]],physics:e.physics}}const _i=t=>{const{physics:e}=At(t),n=o=>({prepare:i=>{const{strategies:r}=At(t),c={from:i.from,to:i.to,context:{positionedParent:i.context.positionedParent},createElement:i.createElement},s={};for(const l of r){if(!l.prepare)continue;const a=l.prepare(c);a&&Object.assign(s,a)}return{...s,strategies:r}},animation:({from:i,to:r,context:c,strategies:s=At(t).strategies,...l})=>{var w;const a=Ci(i,r,o);if(!a)return K({tile:[],background:[],content:[],overlay:[]});const d=Pi(a,i,r,c.scrollOffset),u=[],p={from:i,to:r,resolved:a,input:d,physics:e,context:c,extras:l,onDispose:g=>{u.push(g)}},f={tile:[],background:[],content:[],overlay:[]};for(const g of s)f[g.name].push(...((w=g.contribute)==null?void 0:w.call(g,p))??[]);const h=Object.values(f).flat(),m=K(f);m.onDispose=g=>{for(const A of u)try{A(g)}catch($){console.error("[zoom] cleanup error",$)}};for(const g of h)g instanceof b.WebAnimation&&J(g);return m}});return v.defineTransition({forward:n("forward"),backward:n("backward")})};function ki(t){const e=t.type??"static",n=t.variant??(t.fade?"fade":"default");return{type:e,variant:n}}function Di(t={},e={}){const n=ki(t);return v.withOverride(_i(n),e.override)}const se=1/60,Fi=600;function Yi(t,e){const n=Math.sqrt(t),o=e/(2*n),i=2*Math.PI/n,r=o<=1?1-o:1/o-1;return{duration:i,bounce:r,zeta:o}}function j(t){if(!Number.isFinite(t.stiffness)||t.stiffness<=0)throw new Error("spring(): stiffness must be finite and > 0");if(!Number.isFinite(t.damping)||t.damping<0)throw new Error("spring(): damping must be finite and >= 0");for(const[e,n]of[["restDelta",t.restDelta],["restSpeed",t.restSpeed]])if(n!==void 0&&(!Number.isFinite(n)||n<=0))throw new Error(`spring(): ${e} must be finite and > 0`);return S.IntegratorProvider.from({spring:t})}function Li(t){let e={position:0,velocity:0};for(let n=1;n<=Fi;n++)if(e=t.step(e,1,se),e.position>=1)return n*se*1e3;return 1/0}function we(t){const{duration:e,resistance:n=1.5,restDelta:o}=t;if(!Number.isFinite(e)||!(e>0))throw new Error("easeIn(): duration must be finite and > 0");const i=e*1e3;let r=.01,c=1e6;for(let s=0;s<60;s++){const l=Math.sqrt(r*c),a=new S.InertiaIntegrator({acceleration:l,resistance:n,restDelta:o});Li(a)>i?r=l:c=l}return new S.InertiaIntegrator({acceleration:c,resistance:n,restDelta:o})}class _t{constructor(e,n){if(this.inner=e,this.factor=n,!Number.isFinite(n)||!(n>0))throw new Error("scale(): factor must be finite and > 0")}step(e,n,o){const i=Math.max(1,Math.ceil(this.factor)),r=o*this.factor/i;let c={...e,velocity:e.velocity/this.factor};for(let s=0;s<i;s++)c=this.inner.step(c,n,r);return{...c,velocity:c.velocity*this.factor}}isSettled(e,n){return this.inner.isSettled({...e,velocity:e.velocity/this.factor},n)}}function Wi(t,e){return new _t(t,e)}function Se(t){const e=S.simulate(t,0,1,0),n=e.length?e[e.length-1].time:0;if(t instanceof _t){const o=Se(t.inner);return{...o,kind:"scaled",duration:o.duration===void 0?void 0:o.duration/t.factor,settleMs:n}}return t instanceof S.SpringIntegrator||t instanceof S.DoubleSpringIntegrator?{kind:t instanceof S.SpringIntegrator?"spring":"double-spring",...Yi(t.stiffness,t.damping),settleMs:n}:t instanceof S.InertiaIntegrator?{kind:"inertia",settleMs:n}:{kind:"custom",settleMs:n}}const Hi=j({stiffness:246.74011002723395,damping:31.41592653589793}),zi=j({stiffness:438.6490844928604,damping:35.604716740684324}),Ni=j({stiffness:194.9551486634935,damping:19.54768762233649}),Vi=j({stiffness:130.5071656342394,damping:22.84794657156213}),Xi=j({stiffness:986.9604401089358,damping:62.83185307179586}),Bi=we({duration:.2});exports.defineTransition=v.defineTransition;exports.withOverride=v.withOverride;exports.Animation=b.Animation;exports.MultiAnimation=b.MultiAnimation;exports.WebAnimation=b.WebAnimation;exports.DoubleSpringIntegrator=S.DoubleSpringIntegrator;exports.InertiaIntegrator=S.InertiaIntegrator;exports.IntegratorProvider=S.IntegratorProvider;exports.SpringIntegrator=S.SpringIntegrator;exports.LinearIntegrator=ae;exports.ScaledIntegrator=_t;exports.accelerate=Bi;exports.axis=cn;exports.blind=hn;exports.bouncy=Ni;exports.describeIntegrator=Se;exports.drill=vn;exports.easeIn=we;exports.fade=Pn;exports.film=Fn;exports.gentle=Vi;exports.hero=vo;exports.jaemin=Ro;exports.rotate=To;exports.scale=Wi;exports.scroll=Do;exports.sheet=Jo;exports.slide=ti;exports.smooth=Hi;exports.snappy=zi;exports.spring=j;exports.strip=oi;exports.swift=Xi;exports.zoom=Di;
35
+ )`}function yt(t,e,n,o,i){const r=n/1e3;return new b.WebAnimation({element:t,integrator:new ae({durationSec:r}),lowerBound:0,upperBound:1,style:c=>o(_n(e,c)),onDispose:i})}const Fn=(t={})=>{var r;const e=((r=t.border)==null?void 0:r.color)??On,n=Rn,o=t.physics,i={prepare:({from:c,to:s,context:l,onCleanup:a})=>{const d=N(l,"from"),u=N(l,"to"),y=Rt(document.body,l.positionedParent),p=Dn(e,{...d,top:y.top});a==null||a(()=>{for(const f of Object.values(p))f.remove()});for(const f of["topLeft","topRight","bottomLeft","bottomRight"])l.positionedParent.appendChild(p[f]);return c.then(f=>{qt(f,d),Kt(f,d),f.style.transform=`translateY(${-d.top}px)`}),s.then(f=>{qt(f,u),Kt(f,u),f.style.transform=`translateY(${-u.top+u.height}px) scale(${n})`}),{borders:p,fromRect:d,toRect:u}},animation:({from:c,to:s,context:l,borders:a,fromRect:d,toRect:u})=>{const y=Gt({rect:d,scale:n,direction:"out",override:o}),p=Gt({rect:u,scale:n,direction:"in",override:o}),f=yt(c,y.snapshots,y.totalDuration,g=>({transform:`translateY(${g.translateY}px) scale(${g.scale})`}),()=>{c.style.clipPath="",c.style.transformOrigin="",c.style.transform=""}),h=yt(s,p.snapshots,p.totalDuration,g=>({transform:`translateY(${g.translateY}px) scale(${g.scale})`}),()=>{s.style.clipPath="",s.style.transformOrigin="",s.style.transform=""}),m=kn.map(([g,x],$)=>{const C=["topLeft","topRight","bottomLeft","bottomRight"][$];return yt(a[C],y.snapshots,y.totalDuration,P=>{const A=(d.width-d.width*P.scale)/2*.7*g,E=(d.height-d.height*P.scale)/2*.7*x;return{transform:`translate(${A}px, ${E}px)`}})});for(const g of m)g instanceof b.WebAnimation&&(g.motion.lifetime="temporary");const w=K({out:f,in:h,borders:m});return w.onDispose=()=>{const g=l.positionedParent;for(const x of["topLeft","topRight","bottomLeft","bottomRight"]){const $=a[x];$.parentElement===g&&g.removeChild($)}},w}};return v.defineTransition({forward:i,backward:i})};function Yn(t={},e={}){const{options:n}=t,o=(n==null?void 0:n.borderColor)!==void 0?{border:{color:n.borderColor}}:void 0;return v.withOverride(Fn(o),e.override)}function Ln(t){if(!t)return null;if(t.includes("/")){const n=t.split("/");if(n.length!==2)return null;const o=Number.parseFloat(n[0]??""),i=Number.parseFloat(n[1]??"");return Number.isFinite(o)&&Number.isFinite(i)&&o>0&&i>0?o/i:null}const e=Number.parseFloat(t);return Number.isFinite(e)&&e>0?e:null}function Wn(t){return t==="contain"||t==="cover"?t:null}function Et(t){return t.tagName==="IMG"}function ue(t){var n;if(Et(t))return t;if(t.tagName==="PICTURE"||t.tagName==="VIDEO")return null;const e=[];for(const o of Array.from(t.children)){const i=o;((n=i.getAttribute)==null?void 0:n.call(i,"data-ssgoi-crossfade"))==null&&Et(i)&&e.push(i)}return e.length===1?e[0]??null:null}function Hn(t){var l,a;if(!Et(t))return null;const e=t,n=e.naturalWidth,o=e.naturalHeight;if(typeof n=="number"&&typeof o=="number"&&Number.isFinite(n)&&Number.isFinite(o)&&n>0&&o>0)return n/o;const i=((l=t.getAttribute("width"))==null?void 0:l.trim())??"",r=((a=t.getAttribute("height"))==null?void 0:a.trim())??"",c=i===""?Number.NaN:Number(i),s=r===""?Number.NaN:Number(r);return Number.isFinite(c)&&Number.isFinite(s)&&c>0&&s>0?c/s:null}function zn(t){const e=t.trim().toLowerCase().replace(/\s+/g," ");return e===""||e==="center"||e==="center center"||e==="50% 50%"}function Q(t){if(typeof getComputedStyle=="function")try{return getComputedStyle(t)}catch{}return t.style}function Nn(t){const e=Q(t),n=zn(e.objectPosition??"");return{fit:n?Wn(e.objectFit??null):null,centered:n}}function Ot(t){if(!t)return 0;const e=/^(-?(?:\d+\.?\d*|\.\d+))px$/.exec(t.trim());if(!e)return null;const n=Number.parseFloat(e[1]??"");return Number.isFinite(n)&&n>=0?n:null}function $t(t){const e=Q(t),n=[e.borderTopLeftRadius,e.borderTopRightRadius,e.borderBottomRightRadius,e.borderBottomLeftRadius].map(Ot),o=n[0];if(o==null)return{radius:0,supported:!1};const i=n.every(r=>r!==null&&Math.abs(r-o)<.001);return{radius:i?o:0,supported:i}}function Xn(t,e){var i;if(!e)return null;const n=(i=t.getAttribute(e))==null?void 0:i.trim();if(n==null||n==="")return null;const o=Number.parseFloat(n);return Number.isFinite(o)&&o>=0?o:null}function Vn(t){const e=Q(t);return[e.paddingTop,e.paddingRight,e.paddingBottom,e.paddingLeft,e.borderTopWidth,e.borderRightWidth,e.borderBottomWidth,e.borderLeftWidth].every(o=>o?Ot(o)===0:!0)}function Bn(t){const e=Q(t),n=o=>o==="hidden"||o==="clip";return n(e.overflowX)&&n(e.overflowY)}function W(t){return t.left+t.width/2}function H(t){return t.top+t.height/2}function B(t,e){return{top:Math.max(0,e.top-t.top),right:Math.max(0,t.left+t.width-(e.left+e.width)),bottom:Math.max(0,t.top+t.height-(e.top+e.height)),left:Math.max(0,e.left-t.left)}}function vt(t,e){const n=Math.max(t.left,e.left),o=Math.max(t.top,e.top),i=Math.min(t.left+t.width,e.left+e.width),r=Math.min(t.top+t.height,e.top+e.height);return i>n&&r>o?{left:n,top:o,width:i-n,height:r-o}:null}function Z(t,e){return Math.abs(t.left-e.left)<.01&&Math.abs(t.top-e.top)<.01&&Math.abs(t.width-e.width)<.01&&Math.abs(t.height-e.height)<.01}function Un(t,e,n){const o=t.width/t.height;let i,r;return n==="contain"?o>e?(r=t.height,i=r*e):(i=t.width,r=i/e):o>e?(i=t.width,r=i/e):(r=t.height,i=r*e),{left:t.left+(t.width-i)/2,top:t.top+(t.height-r)/2,width:i,height:r}}function pe(t,e,n){const o=e!==null&&n!==null&&t.width>0&&t.height>0?Un(t,e,n):t,i=n==="contain"?o:t;return{bbox:t,content:o,window:i,clipInset:B(o,i),aspectRatio:e,fit:n,radius:0,radiusSource:"none",bboxRadius:0,bboxRadiusSource:"none",contentAware:e!==null&&n!==null,mediaElement:null}}function Ct(t,e,n){return{...pe(t,null,null),radius:e,radiusSource:n,bboxRadius:e,bboxRadiusSource:n}}function fe(t,e){const n=t.aspectRatio,o=e.aspectRatio;return t.contentAware&&e.contentAware&&n!==null&&o!==null&&Math.abs(n-o)/Math.max(n,o)<.01}function Jt(t){return Ct(t.bbox,t.bboxRadius,t.bboxRadiusSource)}function he(t,e){return fe(t,e)?[t,e]:[Jt(t),Jt(e)]}function jn(t,e,n,o){const i=ue(t),r=i?n(i):e,c=o.legacyAspectRatioAttribute?Ln(t.getAttribute(o.legacyAspectRatioAttribute)??(i==null?void 0:i.getAttribute(o.legacyAspectRatioAttribute))??null):null,s=c??(i?Hn(i):null),l=i?Nn(i):{fit:null,centered:!0},a=l.centered&&(i===null||Vn(i))?l.fit??(c!==null?o.fallbackFit??null:null):null,d=pe(r,s,a),u=Bn(t),p=i!==null&&i!==t&&u?vt(d.window,e):d.window,f=Xn(t,o.legacyRadiusAttribute),h=i===t||u,m=h?$t(t):{radius:0,supported:!0},w=f??m.radius,g=f!==null?"legacy":m.supported?m.radius>0?"computed":"none":"unsupported",x=[];p&&h&&Z(p,e)&&x.push(m),p&&i&&Z(p,r)&&x.push($t(i));const $=x.every(E=>E.supported),C=Math.max(0,...x.map(E=>E.radius)),P=f??C,A=f!==null?"legacy":$?C>0?"computed":"none":"unsupported";return!p||A==="unsupported"?Ct(e,w,g):{...d,bbox:e,window:p,clipInset:B(d.content,p),radius:P,radiusSource:A,bboxRadius:w,bboxRadiusSource:g,mediaElement:d.contentAware?i:null}}function nt(t,e,n,o){const i=jn(t,e,n,o);if(!o.clipRoot||i.radiusSource==="unsupported")return i;let r=i.window,c=i.radius,s=[c,c,c,c],l=i.radiusSource,a=t.parentElement;for(;a&&a!==o.clipRoot;){const u=Q(a),y=h=>h==="hidden"||h==="clip"||h==="auto"||h==="scroll",p=y(u.overflowX),f=y(u.overflowY);if(p||f){if(![u.borderTopWidth,u.borderRightWidth,u.borderBottomWidth,u.borderLeftWidth].every(A=>Ot(A)===0)||a.offsetWidth&&a.clientWidth&&a.offsetWidth-a.clientWidth>1||a.offsetHeight&&a.clientHeight&&a.offsetHeight-a.clientHeight>1)return i;const m=n(a),w={left:p?m.left:r.left,top:f?m.top:r.top,width:p?m.width:r.width,height:f?m.height:r.height},g=vt(r,w);if(!g)return i;const x=$t(a);if(!x.supported)return i;if(p&&f&&Z(r,m))l!=="legacy"&&(c=Math.max(c,x.radius),s=s.map(A=>Math.max(A,x.radius)),c>0&&(l="computed"));else if(x.radius>0){const A={left:m.left+x.radius,top:m.top+x.radius,width:m.width-2*x.radius,height:m.height-2*x.radius};if(!Z(vt(r,A)??m,r))return i}const $=B(r,g),C=[[$.top,$.left],[$.top,$.right],[$.bottom,$.right],[$.bottom,$.left]];for(let A=0;A<4;A++){const E=Math.max(...C[A]),R=s[A];if(E>.01&&E<R)return i;E>.01&&(s[A]=0)}const P=Math.max(...s);if(g.width<P||g.height<P)return i;r=g}a=a.parentElement}const d=Z(i.bbox,r);return{...i,window:r,clipInset:B(i.content,r),radius:c,radiusSource:l,...s.some(u=>u!==c)?{cornerRadii:s}:{},...d?{bboxRadius:c,bboxRadiusSource:l}:{}}}function ye(t,e,n,o,i){const r=n.width/o,c=n.height/i;return{left:W(t)+(W(n)-W(e))/o-r/2,top:H(t)+(H(n)-H(e))/i-c/2,width:r,height:c}}const Zn={enter:"contain",exit:"cover",legacy:"contain"};function V(t){return Zn[t]}const ot="data-ssgoi-crossfade",G=t=>Math.min(1,Math.max(0,t));function me(t,e,n){const o=G(t),i=o+(1-o)*(1-n);return i>0?o/i*e:e}function Mt(t){const e=t.cloneNode(!0),n=(o,i)=>{const r=getComputedStyle(o),c=i.style;for(const l of Array.from(r))c.setProperty(l,r.getPropertyValue(l));for(const{name:l}of Array.from(i.attributes))(l==="id"||l.startsWith("data-hero-")||l.startsWith("data-zoom-"))&&i.removeAttribute(l);if(o.tagName==="IMG"){const l=o;l.currentSrc&&(i.removeAttribute("srcset"),i.removeAttribute("sizes"),i.setAttribute("src",l.currentSrc)),i.setAttribute("loading","eager")}c.animation="none",c.transition="none";const s=Array.from(i.children);Array.from(o.children).forEach((l,a)=>{const d=s[a];d&&(l.hasAttribute(ot)||l.hasAttribute("data-hero-placeholder")?d.remove():n(l,d))})};return n(t,e),e.setAttribute(ot,""),e.setAttribute("aria-hidden","true"),e.setAttribute("inert",""),Object.assign(e.style,{position:"absolute",left:"0",top:"0",right:"auto",bottom:"auto",margin:"0",minWidth:"0",minHeight:"0",maxWidth:"none",maxHeight:"none",boxSizing:"border-box",transform:"none",translate:"none",rotate:"none",scale:"none",transformOrigin:"center center",pointerEvents:"none",willChange:"transform, clip-path, opacity"}),e}function Pt(t,e){const n=L(t,e);return{box:{left:n.left+t.scrollLeft,top:n.top+t.scrollTop,width:n.width,height:n.height},scaleX:e.offsetWidth&&Math.abs(n.width-e.offsetWidth)>.5?n.width/e.offsetWidth:1,scaleY:e.offsetHeight&&Math.abs(n.height-e.offsetHeight)>.5?n.height/e.offsetHeight:1}}function Gn(t,e){const{box:n,scaleX:o,scaleY:i}=e,r=(t.left+t.width/2-n.left-n.width/2)/o,c=(t.top+t.height/2-n.top-n.height/2)/i;return`translate(${r}px, ${c}px) scale(${t.width/n.width}, ${t.height/n.height})`}const it="data-hero-enter-key",rt="data-hero-exit-key",q="data-hero-key";function qn(t,e){return t.fromEl.getAttribute(it)===t.key&&t.toEl.getAttribute(rt)===t.key?!0:t.fromEl.getAttribute(rt)===t.key&&t.toEl.getAttribute(it)===t.key?!1:e==="backward"&&t.fromEl.getAttribute(q)===t.key&&t.toEl.getAttribute(q)===t.key}function Kn(t,e,n,o,i){const r=document.createElement("div");r.setAttribute("data-hero-layer",""),r.setAttribute("aria-hidden","true"),r.setAttribute("inert",""),Object.assign(r.style,{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",pointerEvents:"none",isolation:"isolate",zIndex:String(Number(_)+1)});const c=(a,d)=>{const u=Mt(a);return Object.assign(u.style,{left:`${d.left}px`,top:`${d.top}px`,width:`${d.width}px`,height:`${d.height}px`,zIndex:"auto",mixBlendMode:"plus-lighter"}),i&&(u.style.borderRadius="0"),u},s=c(t,n),l=c(e,o);return s.setAttribute("data-hero-layer-source",""),l.setAttribute("data-hero-layer-destination",""),r.append(l,s),{layer:r,source:s,destination:l}}function st(t,e){const n=e.map(o=>({name:o,value:t.style.getPropertyValue(o),priority:t.style.getPropertyPriority(o)}));return()=>{for(const{name:o,value:i,priority:r}of n)i?t.style.setProperty(o,i,r):t.style.removeProperty(o)}}function Jn(t){const e=t.getAttribute("data-hero-transitioning");return t.setAttribute("data-hero-transitioning",""),()=>{e===null?t.removeAttribute("data-hero-transitioning"):t.setAttribute("data-hero-transitioning",e)}}function Qn(t,e){const n=st(t,["z-index"]),o=st(e,["z-index","position"]);return t.style.zIndex=F,e.style.zIndex=_,getComputedStyle(e).position==="static"&&(e.style.position="relative"),(i=()=>!0)=>{i(t)&&n(),i(e)&&o()}}function to(t,e,n){if(t.tagName!=="IMG")return()=>{};const o=getComputedStyle(t),i=y=>Number.parseFloat(y)||0,r=o.boxSizing==="border-box",c=i(o.width)+(r?0:i(o.paddingLeft)+i(o.paddingRight)+i(o.borderLeftWidth)+i(o.borderRightWidth)),s=i(o.height)+(r?0:i(o.paddingTop)+i(o.paddingBottom)+i(o.borderTopWidth)+i(o.borderBottomWidth)),l=e.width*c/n.width,a=e.height*s/n.height;let d=null;o.position!=="absolute"&&o.position!=="fixed"&&(d=document.createElement("span"),d.setAttribute("data-hero-placeholder",""),d.setAttribute("aria-hidden","true"),Object.assign(d.style,{display:o.display==="inline"?"inline-block":o.display,boxSizing:"border-box",width:`${c}px`,height:`${s}px`,margin:o.margin,flex:o.flex,alignSelf:o.alignSelf,gridArea:o.gridArea,order:o.order,verticalAlign:o.verticalAlign,visibility:"hidden",pointerEvents:"none"}),t.before(d));const u=st(t,["position","left","top","right","bottom","width","height","min-width","min-height","max-width","max-height","box-sizing","margin-top","margin-right","margin-bottom","margin-left","flex"]);return Object.assign(t.style,{position:"absolute",left:"0",top:"0",right:"auto",bottom:"auto",boxSizing:"border-box",width:`${l}px`,height:`${a}px`,minWidth:"0",minHeight:"0",maxWidth:"none",maxHeight:"none",margin:"0",flex:"none"}),()=>{u(),d==null||d.remove()}}function at(t,e,n){const o=(s,l)=>`${l>0?s/l*100:0}%`,i=[o(e.top,t.height),o(e.right,t.width),o(e.bottom,t.height),o(e.left,t.width)].join(" "),r=n.map(s=>o(s.x,t.width)).join(" "),c=n.map(s=>o(s.y,t.height)).join(" ");return`inset(${i} round ${r} / ${c})`}class eo{constructor(){O(this,"previousFromOpacity","")}prepare(e){e.from.then(n=>{this.previousFromOpacity=n.style.opacity,n.style.opacity="0"})}contribute(e){return e.onDispose(n=>{n.owns(e.from)&&(e.from.style.opacity=this.previousFromOpacity)}),{}}}const no=()=>new eo;function oo(t,e){const n=new Set(e),o=new Set;for(const c of n){let s=c.parentElement;for(;s&&s!==t;)o.add(s),s=s.parentElement}const i=[],r=c=>{var s,l;if(!(n.has(c)||((s=c.getAttribute)==null?void 0:s.call(c,ot))!=null||((l=c.getAttribute)==null?void 0:l.call(c,"data-hero-placeholder"))!=null)){if(c!==t&&!o.has(c)){i.push(c);return}for(const a of Array.from(c.children))a instanceof HTMLElement&&r(a)}};return r(t),i}class io{contribute(e){const{from:n,to:o,resolved:i,physics:r,onDispose:c}=e,s=i.pairs.map(p=>ue(p.toEl)??p.toEl),l=(s.length?oo(o,s):[o]).map(p=>({element:p,opacity:p.style.opacity,willChange:p.style.willChange,targetOpacity:Number.parseFloat(getComputedStyle(p).opacity)||0})),a=new Set;for(const p of s)for(let f=p.parentElement;f&&(a.add(f),f!==o);f=f.parentElement);const d=Array.from(a).map(p=>({element:p,color:getComputedStyle(p).backgroundColor,previousColor:p.style.backgroundColor})).filter(({color:p})=>p&&p!=="transparent"&&p!=="rgba(0, 0, 0, 0)"),u=n.style.opacity,y=n.style.willChange;n.style.willChange="opacity";for(const{element:p}of l)p.style.opacity="0",p.style.willChange="opacity";for(const{element:p}of d)p.style.backgroundColor="transparent";return c(p=>{p.owns(n)&&(n.style.opacity=u,n.style.willChange=y);for(const{element:f,opacity:h,willChange:m}of l)p.owns(f)&&(f.style.opacity=h,f.style.willChange=m);for(const{element:f,previousColor:h}of d)p.owns(f)&&(f.style.backgroundColor=h)}),{out:[new b.WebAnimation({element:n,integrator:S.IntegratorProvider.from(r),style:(p,f)=>({opacity:f})})],in:[...l.map(({element:p,targetOpacity:f})=>new b.WebAnimation({element:p,integrator:S.IntegratorProvider.from(r),style:h=>({opacity:Math.min(1,Math.max(0,h))*f})})),...d.map(({element:p,color:f})=>new b.WebAnimation({element:p,integrator:S.IntegratorProvider.from(r),style:h=>({backgroundColor:`color-mix(in srgb, ${f} ${Math.min(1,Math.max(0,h))*100}%, transparent)`})}))]}}}const ro=()=>new io,so={static:no,fade:ro},ao={spring:{stiffness:320,damping:30}},co=()=>ao,lo={spring:{stiffness:300,damping:30,doubleSpring:1}},uo=()=>lo,po={default:co,smooth:uo},fo=700,ho="data-hero-aspect-ratio",yo="data-hero-radius";function Qt(t,e,n,o){const i=c=>{const s=L(t,c);return{left:s.left+t.scrollLeft,top:s.top+t.scrollTop,width:s.width,height:s.height}},r=i(e);return nt(e,r,i,{clipRoot:o,fallbackFit:n,legacyAspectRatioAttribute:ho,legacyRadiusAttribute:yo})}function tt(t,e){const n=new Map,o=t.querySelectorAll(`[${e}]`);for(const i of Array.from(o)){const r=i.getAttribute(e);r&&(n.has(r)||n.set(r,i))}return n}function mo(t,e){const n=[],o=tt(e,it),i=tt(t,rt);for(const[s,l]of o){const a=i.get(s);a&&n.push({key:s,fromEl:a,toEl:l,fromFit:V("exit"),toFit:V("enter")})}const r=tt(t,it),c=tt(e,rt);for(const[s,l]of r){const a=c.get(s);a&&n.push({key:s,fromEl:l,toEl:a,fromFit:V("enter"),toFit:V("exit")})}return n}function go(t,e){const n=[],o=Array.from(e.querySelectorAll(`[${q}]`));for(const i of o){const r=i.getAttribute(q);if(!r)continue;const c=t.querySelector(`[${q}="${r}"]`);c&&n.push({key:r,fromEl:c,toEl:i,fromFit:V("legacy"),toFit:V("legacy")})}return n}function bo(t,e){const n=mo(t,e);return n.length>0?n:go(t,e)}function wo(t,e){return he(t,e)}function So(t,e){return t.radiusSource==="unsupported"||e.radiusSource==="unsupported"?!1:t.mediaElement!==null||e.mediaElement!==null||t.radiusSource==="computed"||t.radiusSource==="legacy"||e.radiusSource==="computed"||e.radiusSource==="legacy"}function xo(t,e,n,o,i){const{fromEl:r,toEl:c}=e,[s,l]=wo(Qt(t,r,e.fromFit,o),Qt(t,c,e.toFit,i)),a=s.content,d=s.window,u=l.content,y=l.window,p=l.clipInset,f=s.radiusSource==="unsupported"||l.radiusSource==="unsupported",h=f?0:s.radius,m=f?0:l.radius;if(a.width===0||a.height===0||d.width===0||d.height===0||u.width===0||u.height===0||y.width===0||y.height===0)return null;const w=a.width/u.width,g=a.height/u.height,x=W(a),$=H(a),C=W(u),P=H(u),A=x-C,E=$-P;if(Math.abs(E)>n)return null;const R=B(u,ye(u,a,d,w,g));return{fromContent:a,toContent:u,fromVisualEl:s.mediaElement??r,toVisualEl:l.mediaElement??c,resetRadius:So(s,l),styleFor:(T,M,I)=>{const k=(M*A+(I?C-W(I.box):0))/((I==null?void 0:I.scaleX)??1),D=(M*E+(I?P-H(I.box):0))/((I==null?void 0:I.scaleY)??1),Y=T+M*w,ct=T+M*g,Ae=s.cornerRadii??[h,h,h,h],Ee=l.cornerRadii??[m,m,m,m],$e=Ae.map((Re,Oe)=>{const kt=Math.max(0,Re*M+Ee[Oe]*T);return{x:kt/Math.max(Math.abs(Y),1e-6),y:kt/Math.max(Math.abs(ct),1e-6)}}),ve=R.top*M+p.top*T,Ce=R.right*M+p.right*T,Pe=R.bottom*M+p.bottom*T,Ie=R.left*M+p.left*T;return{transform:I?`translate(${k}px, ${D}px) scale(${Y*u.width/I.box.width}, ${ct*u.height/I.box.height})`:`translate(${k}px, ${D}px) scale(${Y}, ${ct})`,clipPath:at(u,{top:ve,right:Ce,bottom:Pe,left:Ie},$e)}}}}function te(t,e,n){return{key:t,role:"shared-media",space:e,lifetime:n?"temporary":"persistent"}}function ee(t){return{role:"shared-media-source",space:t,lifetime:"temporary"}}function Ao(t,e){t.style.transform=e.transform,t.style.clipPath=e.clipPath}class Eo{contribute(e){const{resolved:n,physics:o,positionedParent:i,maxDistance:r,onDispose:c}=e,s=Qn(e.from,e.to);c(d=>s(d.owns));const l=n.pairs.flatMap(d=>{const u=xo(i,d,r,e.from,e.to);return u?[{pair:d,plan:u}]:[]});e.resolved={pairs:l.map(({pair:d})=>d)};const a=[];for(const{pair:d,plan:u}of l){const{fromVisualEl:y,toVisualEl:p}=u,f=b.retainOpacity(y),h=b.retainOpacity(p);if(qn(d,e.direction)){const{layer:E,source:R,destination:T}=Kn(y,p,u.fromContent,u.toContent,u.resetRadius),M={box:u.fromContent,scaleX:1,scaleY:1},I=(D,Y)=>({...u.styleFor(D,Y,M),opacity:G(Y)*f.opacity}),k=(D,Y)=>({...u.styleFor(D,Y),opacity:G(D)*h.opacity});Object.assign(R.style,I(0,1)),Object.assign(T.style,k(0,1)),i.appendChild(E),f.set(0),h.set(0),c(()=>{E.remove(),f.restore(),h.restore()}),a.push(new b.WebAnimation({element:R,motion:ee(i),integrator:S.IntegratorProvider.from(o),style:I}),new b.WebAnimation({element:T,motion:te(d.key,i,!0),integrator:S.IntegratorProvider.from(o),style:k}));continue}const m=Mt(y),w=Jn(p),g=st(p,["transform","transform-origin","clip-path","object-fit","border-radius","will-change"]);p.style.transform="none",p.style.transformOrigin="center center",p.style.willChange="transform, clip-path, opacity",u.resetRadius&&(p.style.borderRadius="0");const x=to(p,u.toContent,L(i,p)),$=Pt(i,p);m.style.width=`${u.fromContent.width/$.scaleX}px`,m.style.height=`${u.fromContent.height/$.scaleY}px`,m.style.zIndex=getComputedStyle(p).zIndex,u.resetRadius&&(m.style.borderRadius="0"),p.after(m);const C=Pt(i,m),P=(E,R)=>({...u.styleFor(E,R,C),opacity:G(R)*f.opacity}),A=(E,R)=>({...u.styleFor(E,R,$),opacity:me(E,h.opacity,f.opacity)});Ao(p,A(0,1)),Object.assign(m.style,P(0,1)),h.set(A(0,1).opacity),f.set(0),c(()=>{x(),g(),f.restore(),h.restore(),w(),m.remove()}),a.push(new b.WebAnimation({element:m,motion:ee(i),integrator:S.IntegratorProvider.from(o),style:P}),new b.WebAnimation({element:p,motion:te(d.key,i,!1),integrator:S.IntegratorProvider.from(o),style:A}))}return{shared:a}}}function $o(t){return[new Eo,so[t.type]()]}const vo=t=>{const e=po[t.variant](),n=fo,o={prepare:i=>{var l;const r=$o(t),c=Promise.all([i.from,i.to]).then(([a,d])=>({pairs:bo(a,d)})),s={from:i.from,to:i.to,resolved:c};for(const a of r)(l=a.prepare)==null||l.call(a,s);return c.then(a=>({resolved:a,strategies:r}))},animation:({from:i,to:r,context:c,resolved:s,strategies:l})=>{var h;if(s.pairs.length===0)return K({shared:[],out:[],in:[]});const a=[],d=m=>{a.push(m)},u={direction:c.direction,from:i,to:r,resolved:s,physics:e,positionedParent:c.positionedParent,maxDistance:n,onDispose:d},y={shared:[],out:[],in:[]};for(const m of l){const w=(h=m.contribute)==null?void 0:h.call(m,u);if(w)for(const g of Object.keys(y))y[g].push(...w[g]??[])}const p=K(y),f=p.onDispose;return p.onDispose=m=>{f==null||f(m);for(const w of Object.values(y).flat())w instanceof b.WebAnimation&&w.releaseFill();for(const w of a)try{w(m)}catch(g){console.error("[hero] cleanup error",g)}},p}};return v.defineTransition({forward:o,backward:o})};function Co(t={},e={}){const n=t.type??"static",o=t.variant??"default";return v.withOverride(vo({type:n,variant:o}),e.override)}const Po={spring:{stiffness:50,damping:30}},Io={spring:{stiffness:80,damping:25}},Ro=(t={})=>{const e=t.physics??Po,n=t.initialRotation??45,o=t.initialScale??.01,i=t.rotationTriggerPoint??.8,r={prepare:({from:c,to:s,context:l})=>(c.then(a=>{a.style.opacity="1"}),s.then(a=>{const d=N(l,"to"),u=Math.min(d.width,d.height)*.4;a.style.setProperty("--max-border-radius",`${u}px`),a.style.setProperty("--border-radius-scale","1"),a.style.willChange="transform",a.style.backfaceVisibility="hidden";const y=d.left+d.width/2,p=d.top+d.height/2;a.style.transformOrigin=`${y}px ${p}px`,a.style.position="fixed",a.style.top=`${d.top}px`,a.style.left=`${d.left}px`,a.style.width=`${d.width}px`,a.style.height=`${d.height}px`,a.style.zIndex="1000",a.style.overflow="hidden",a.style.transform=`rotate(${n}deg) scale(${o}) translateZ(0)`,a.style.borderRadius="calc(var(--max-border-radius) * var(--border-radius-scale))",a.style.opacity="1"}),{}),animation:({from:c,to:s})=>{const l=new b.WebAnimation({element:c,integrator:S.IntegratorProvider.from(Io),style:(d,u)=>({opacity:u}),onDispose:()=>{c.style.opacity=""}}),a=new b.WebAnimation({element:s,integrator:S.IntegratorProvider.from(e),style:d=>{let u;if(d<=.05)u=o;else if(d<=i){const h=(d-.05)/(i-.05),m=Math.pow(h,9);u=o+(.8-o)*m}else{const h=(d-i)/(1-i);u=.8+.2*(1-Math.pow(1-h,3))}const y=.7;let p;if(d<=y)p=n;else{const h=(d-y)/(1-y),m=1-Math.pow(1-h,2);p=n*(1-m)}let f;if(d<=y)f=1;else{const h=(d-y)/(1-y);f=1-Math.pow(h,.5)}return{transform:`rotate(${p.toFixed(2)}deg) scale(${u.toFixed(4)}) translateZ(0)`,"--border-radius-scale":f.toFixed(4)}},onDispose:()=>{s.style.willChange="",s.style.backfaceVisibility="",s.style.removeProperty("--max-border-radius"),s.style.removeProperty("--border-radius-scale"),s.style.transform="",s.style.transformOrigin="",s.style.position="",s.style.zIndex="",s.style.top="",s.style.left="",s.style.width="",s.style.height="",s.style.overflow="",s.style.borderRadius=""}});return new b.MultiAnimation({out:l,in:a},{mode:"parallel"})}};return v.defineTransition({forward:r,backward:r})};function Oo(t={},e={}){return v.withOverride(Ro(),e.override)}const Mo={spring:{stiffness:100,damping:30}},To=(t={})=>{const e=t.physics??Mo,n={prepare:({from:o,to:i})=>(o.then(r=>{r.style.transformOrigin="center center",r.style.willChange="transform, opacity"}),i.then(r=>{r.style.opacity="0",r.style.transform="rotate(-180deg)",r.style.transformOrigin="center center",r.style.willChange="transform, opacity"}),{}),animation:({from:o,to:i})=>{const r=new b.WebAnimation({element:o,integrator:S.IntegratorProvider.from(e),style:s=>({transform:`rotate(${s*180}deg)`,opacity:s<.5?1:0}),onDispose:()=>{o.style.willChange="auto",o.style.transform="",o.style.transformOrigin="",o.style.opacity=""}}),c=new b.WebAnimation({element:i,integrator:S.IntegratorProvider.from(e),style:(s,l)=>({transform:`rotate(${-l*180}deg)`,opacity:s>.5?1:0}),onDispose:()=>{i.style.willChange="auto",i.style.transform="",i.style.transformOrigin="",i.style.opacity=""}});return new b.MultiAnimation({out:r,in:c},{mode:"parallel"})}};return v.defineTransition({forward:n,backward:n})};function _o(t={},e={}){return v.withOverride(To(),e.override)}const ko={spring:{stiffness:20,damping:8,doubleSpring:1,restDelta:.001,restSpeed:.001}},Do=(t={})=>{const e=t.physics??ko,n=t.directional??!0,o=i=>{const r=!n||i==="forward",c=r?F:_,s=r?_:F;return{prepare:({from:l,to:a})=>(l.then(d=>{d.style.zIndex=c,d.style.willChange="transform",d.style.backfaceVisibility="hidden",d.style.contain="layout paint",d.style.pointerEvents="none"}),a.then(d=>{d.style.willChange="transform",d.style.backfaceVisibility="hidden",d.style.contain="layout paint",d.style.position="relative",d.style.zIndex=s}),{}),animation:({from:l,to:a})=>{const d=l.offsetHeight,u=a.offsetHeight,y=window.innerHeight,p=Math.max(Math.min(d,u),y),f=new b.WebAnimation({element:l,integrator:S.IntegratorProvider.from(e),style:m=>({transform:`translate3d(0, ${r?-p*m:p*m}px, 0)`}),onDispose:()=>{l.style.willChange="auto",l.style.backfaceVisibility="",l.style.contain="",l.style.transform="",l.style.pointerEvents="",l.style.zIndex=""}}),h=new b.WebAnimation({element:a,integrator:S.IntegratorProvider.from(e),style:(m,w)=>({transform:`translate3d(0, ${r?w*p:w*-p}px, 0)`}),onDispose:()=>{a.style.willChange="auto",a.style.backfaceVisibility="",a.style.contain="",a.style.transform="",a.style.position==="relative"&&(a.style.position=""),a.style.zIndex===s&&(a.style.zIndex="")}});return[f,h].forEach(J),new b.MultiAnimation({out:f,in:h},{mode:"parallel"})}}};return v.defineTransition({forward:o("forward"),backward:o("backward")})};function Fo(t={},e={}){const{type:n="directional"}=t;return v.withOverride(Do({directional:n==="directional"}),e.override)}const Yo={spring:{stiffness:200,damping:24}},Lo={inertia:{acceleration:25,resistance:1.2}},mt=.2;function Wo(){return{enterPhysics:Yo,exitPhysics:Lo,background:{willChange:"transform, opacity",enterStyle:(t,e)=>({transform:`scale(${1-mt*t})`,opacity:e}),exitStyle:t=>({transform:`scale(${1-mt+mt*t})`,opacity:t})}}}const Ho={spring:{stiffness:200,damping:24}},zo={inertia:{acceleration:25,resistance:1.2}},gt=.08,No=16,bt=.6,Xo=t=>`blur(${Math.max(0,t).toFixed(2)}px)`;function Vo(){return{enterPhysics:Ho,exitPhysics:zo,background:{willChange:"transform, opacity",enterStyle:t=>({transform:`scale(${1-gt*t})`,opacity:1-(1-bt)*t}),exitStyle:t=>({transform:`scale(${1-gt+gt*t})`,opacity:bt+(1-bt)*t})},overlay:{willChange:"backdrop-filter",initialStyle:{position:"absolute",left:"0",width:"100%",pointerEvents:"none",backdropFilter:"blur(0px)",WebkitBackdropFilter:"blur(0px)"},style:(t,e)=>{const n=t==="enter"?e:1-e,o=Xo(No*n);return{backdropFilter:o,WebkitBackdropFilter:o}}}}}const Bo={spring:{stiffness:190,damping:25}},Uo={spring:{stiffness:190,damping:25}};function jo(){return{enterPhysics:Bo,exitPhysics:Uo,background:{willChange:"",enterStyle:()=>({}),exitStyle:()=>({})}}}const Zo={static:jo(),"background-scale":Wo(),blur:Vo()},Go="static",qo="transform",Ko=(t={})=>{const e=Zo[t.type??Go],n=e.background,o=e.overlay,i=n.willChange!=="",r=c=>{const s=c==="forward"?"enter":"exit",l=s==="enter"?"to":"from",a=s==="enter"?"from":"to",d=s==="enter"?e.enterPhysics:e.exitPhysics;return{prepare:({from:u,to:y,context:p,createElement:f})=>{const h={from:u,to:y}[l],m={from:u,to:y}[a];h.then(g=>{g.style.willChange=qo,g.style.backfaceVisibility="hidden",g.style.contain="layout paint",g.style.zIndex=_,s==="enter"?g.style.position="relative":g.style.pointerEvents="none"}),m.then(g=>{i&&(g.style.willChange=n.willChange,g.style.backfaceVisibility="hidden",g.style.contain="layout paint"),g.style.zIndex=F,s==="enter"?g.style.pointerEvents="none":g.style.position="relative"});let w;return o&&(w=f("sheet-overlay"),Object.assign(w.style,o.initialStyle),w.style.willChange=o.willChange,p.positionedParent.appendChild(w)),{overlay:w}},animation:({from:u,to:y,context:p,overlay:f})=>{const h={from:u,to:y}[l],m={from:u,to:y}[a],w=N(p,l),g=()=>{u.style.pointerEvents="",u.style.zIndex=""},x=()=>{const A=s==="enter"?_:F;y.style.position==="relative"&&(y.style.position=""),y.style.zIndex===A&&(y.style.zIndex="")};h.style.clipPath=`inset(${w.top}px 0 calc(100% - ${w.top+w.height}px) 0)`;const $=s==="enter"?(A,E)=>({transform:`translate3d(0, ${E*w.height}px, 0)`}):A=>({transform:`translate3d(0, ${A*w.height}px, 0)`}),C=new b.WebAnimation({element:h,integrator:S.IntegratorProvider.from(d),style:$,onDispose:A=>{h.style.willChange="auto",h.style.backfaceVisibility="",h.style.contain="",h.style.clipPath="",h.style.transform="",A.owns(u)&&g(),A.owns(y)&&x()}});J(C);const P={sheet:C,background:new b.MultiAnimation([]),overlay:new b.MultiAnimation([])};if(i){const A=m.scrollHeight;A>0&&(m.style.height=`${A}px`);const E=N(p,a),R=E.left+E.width/2,T=E.top+E.height/2;m.style.clipPath=`inset(${E.top}px 0 calc(100% - ${E.top+E.height}px) 0)`,m.style.transformOrigin=`${R}px ${T}px`;const M=s==="enter"?(k,D)=>n.enterStyle(k,D):k=>n.exitStyle(k),I=new b.WebAnimation({element:m,integrator:S.IntegratorProvider.from(d),style:M,onDispose:()=>{m.style.willChange="auto",m.style.backfaceVisibility="",m.style.contain="",m.style.clipPath="",m.style.transformOrigin="",m.style.transform="",m.style.opacity="",m.style.height=""}});J(I),P.background=I}if(f&&o){f.style.zIndex=de;const A=ce(p,"to");f.style.top=`${A.top}px`,f.style.height=`${A.height}px`,P.overlay=new b.WebAnimation({element:f,motion:{lifetime:"temporary",role:"overlay"},integrator:S.IntegratorProvider.from(d),style:E=>o.style(s,E)})}return new b.MultiAnimation(P,{mode:"parallel"})}}};return v.defineTransition({forward:r("forward"),backward:r("backward")})};function Jo(t){return t==="scale"||t==="background-scale"?"background-scale":t==="blur"?"blur":"static"}function Qo(t={},e={}){const n=t.type,o=Jo(n);return v.withOverride(Ko({type:o}),e.override)}const ti=(t={})=>{const e=t.physics??z.SLIDE_PHYSICS,n=o=>{const i=o==="forward"?100:-100;return{prepare:({from:r,to:c})=>(r.then(s=>{s.style.willChange="transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint",s.style.pointerEvents="none"}),c.then(s=>{s.style.transform=`translate3d(${i}%, 0, 0)`,s.style.willChange="transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint"}),{}),animation:({from:r,to:c})=>{const s=new b.WebAnimation({element:r,integrator:S.IntegratorProvider.from(e),style:a=>({transform:`translate3d(${100*z.pageMotionStyle("slide","out",o,a).x}%, 0, 0)`}),onDispose:()=>{r.style.willChange="auto",r.style.backfaceVisibility="",r.style.contain="",r.style.transform="",r.style.pointerEvents=""}}),l=new b.WebAnimation({element:c,integrator:S.IntegratorProvider.from(e),style:a=>({transform:`translate3d(${100*z.pageMotionStyle("slide","in",o,a).x}%, 0, 0)`}),onDispose:()=>{c.style.willChange="auto",c.style.backfaceVisibility="",c.style.contain="",c.style.transform=""}});return new b.MultiAnimation({out:s,in:l},{mode:"parallel"})}}};return v.defineTransition({forward:n("forward"),backward:n("backward")})};function ei(t={},e={}){return v.withOverride(ti(),e.override)}const ni={spring:{stiffness:17,damping:6}},wt=20,et=800,oi=(t={})=>{const e=t.physics??ni,n={prepare:({from:o,to:i})=>(o.then(r=>{r.style.willChange="transform",r.style.backfaceVisibility="hidden",r.style.contain="layout paint",r.style.pointerEvents="none",r.style.transform=`perspective(${et}px) rotateY(0deg) translate3d(0%, 0, 0)`}),i.then(r=>{r.style.willChange="transform",r.style.backfaceVisibility="hidden",r.style.contain="layout paint",r.style.transform=`perspective(${et}px) rotateY(${wt}deg) translate3d(-100%, 0, 0)`}),{}),animation:({from:o,to:i})=>{const r=new b.WebAnimation({element:o,integrator:S.IntegratorProvider.from(e),style:s=>{const l=-s*wt,a=s*100;return{transform:`perspective(${et}px) rotateY(${l}deg) translate3d(${a}%, 0, 0)`}},onDispose:()=>{o.style.transform="",o.style.willChange="auto",o.style.backfaceVisibility="",o.style.contain="",o.style.pointerEvents=""}}),c=new b.WebAnimation({element:i,integrator:S.IntegratorProvider.from(e),style:(s,l)=>{const a=l*wt,d=-l*100;return{transform:`perspective(${et}px) rotateY(${a}deg) translate3d(${d}%, 0, 0)`}},onDispose:()=>{i.style.transform="",i.style.willChange="auto",i.style.backfaceVisibility="",i.style.contain=""}});return new b.MultiAnimation({out:r,in:c},{mode:"sequence"})}};return v.defineTransition({forward:n,backward:n})};function ii(t={},e={}){return v.withOverride(oi(),e.override)}const St=new WeakMap;function ri(t){const e=St.get(t)??{opacity:t.style.opacity,users:0};e.users++,St.set(t,e),t.style.opacity="0";let n=!1;return()=>{n||(n=!0,!(--e.users>0)&&(t.style.opacity==="0"&&(t.style.opacity=e.opacity),St.delete(t)))}}function si(t,e){return e.left>=t.left-.01&&e.top>=t.top-.01&&e.left+e.width<=t.left+t.width+.01&&e.top+e.height<=t.top+t.height+.01}function Tt(t){const e=()=>({contentAware:!1,enterContent:t.enterRect,exitContent:t.exitRect,startWindow:t.enterRect,scaleX:t.exitRect.width/t.enterRect.width,scaleY:t.exitRect.height/t.enterRect.height}),{enterMedia:n,exitMedia:o}=t;if(!n||!o||!fe(n,o))return e();const i=n.content,r=o.content;if(i.width<=0||i.height<=0||r.width<=0||r.height<=0)return e();const c=r.width/i.width,s=r.height/i.height,l=ye(i,r,o.window,c,s);return si(n.window,l)?{contentAware:!0,enterContent:i,exitContent:r,startWindow:l,scaleX:c,scaleY:s,exitCornerRadii:o.cornerRadii}:e()}function ge(t,e){return{top:t.top,right:e.width-(t.left+t.width),bottom:e.height-(t.top+t.height),left:t.left}}function ai(t,e,n){return{x:t/Math.max(Math.abs(e),1e-6),y:t/Math.max(Math.abs(n),1e-6)}}function be(t,e,n,o,i,r){return(n??[t]).map(c=>ai(Math.max(0,c*o+e*(1-o)),i,r))}function ci(t){const{pageRect:e,scrollOffset:n,enterRadius:o,exitRadius:i}=t,r=Tt(t),{enterContent:c,exitContent:s,startWindow:l,scaleX:a,scaleY:d}=r,u=s.left-c.left+(s.width-c.width)/2-n.x,y=s.top-c.top+(s.height-c.height)/2-n.y,p=ge(l,e);return{transformOrigin:`${W(c)}px ${H(c)}px`,animate:f=>{const h=1-f,m=1+(a-1)*h,w=1+(d-1)*h,g=be(i,o,r.exitCornerRadii,h,m,w);return{clipPath:at(e,{top:p.top*h,right:p.right*h,bottom:p.bottom*h,left:p.left*h},g),transform:`translate(${u*h}px, ${y*h}px) scale(${m}, ${w})`}}}}function li(t){const{pageRect:e,scrollOffset:n,enterRadius:o,exitRadius:i}=t,r=Tt(t),{enterContent:c,exitContent:s,startWindow:l,scaleX:a,scaleY:d}=r,u=s.left-c.left+(s.width-c.width)/2+n.x,y=s.top-c.top+(s.height-c.height)/2+n.y,p=ge(l,e);return{transformOrigin:`${W(c)}px ${H(c)}px`,animate:f=>{const h=1-f,m=1+(a-1)*h,w=1+(d-1)*h,g=be(i,o,r.exitCornerRadii,h,m,w);return{clipPath:at(e,{top:p.top*h,right:p.right*h,bottom:p.bottom*h,left:p.left*h},g),transform:`translate(${u*h-n.x}px, ${y*h}px) scale(${m}, ${w})`}}}}const di={spring:{stiffness:500,damping:49,doubleSpring:2,restDelta:.05,restSpeed:.05}},ui={spring:{stiffness:280,damping:33.5,restDelta:.1,restSpeed:.1}},we=.12,pi=18;function fi(){return{transformOrigin:"50% 50%",animate:t=>{const e=1-t;return{transform:`scale(${1-we*e})`}}}}function hi(){return{transformOrigin:"50% 50%",animate:t=>{const e=1-t;return{transform:`scale(${1-we*e})`}}}}const xt={willChange:"backdrop-filter",initialStyle:{position:"absolute",left:"0",width:"100%",pointerEvents:"none",backdropFilter:"blur(0px)",WebkitBackdropFilter:"blur(0px)"},style:(t,e)=>{const n=t==="enter"?e:1-e,o=`blur(${pi*n}px)`;return{backdropFilter:o,WebkitBackdropFilter:o}}};class yi{constructor(){O(this,"name","background");O(this,"physics",di);O(this,"exitPhysics",ui)}contribute(e){const{from:n,to:o,resolved:i,physics:r}=e,c=i.mode==="enter",s=c?n:o,l=c?fi():hi();return l&&(s.style.transformOrigin=l.transformOrigin),[new b.WebAnimation({element:s,integrator:S.IntegratorProvider.from(r),style:c?(a,d)=>l.animate(d):a=>l.animate(a)})]}}class mi{constructor(){O(this,"name","overlay")}prepare(e){const n=e.createElement("zoom-overlay");return Object.assign(n.style,xt.initialStyle),n.style.willChange=xt.willChange,e.context.positionedParent.appendChild(n),{overlay:n}}contribute(e){const n=e.extras.overlay;if(!n)return[];n.style.zIndex=de;const o=ce(e.context,"to");return n.style.top=`${o.top}px`,n.style.height=`${o.height}px`,[new b.WebAnimation({element:n,motion:{lifetime:"temporary",role:"overlay"},integrator:S.IntegratorProvider.from(e.physics),style:i=>xt.style(e.resolved.mode,i)})]}}const gi={spring:{stiffness:380,damping:30,doubleSpring:{stiffness:260,damping:30}}};function bi({enterRect:t,exitRect:e,scrollOffset:n}){const o=t.left-e.left+(t.width-e.width)/2+n.x,i=t.top-e.top+(t.height-e.height)/2+n.y,r=t.width/e.width,c=t.height/e.height,s=Math.max(r,c);return{transformOrigin:`${e.left+e.width/2}px ${e.top+e.height/2}px`,animate:l=>{const a=1-l;return{transform:`translate(${o*a-n.x}px, ${i*a}px) scale(${1+(s-1)*a})`}}}}function wi({enterRect:t,exitRect:e,scrollOffset:n}){const o=t.left-e.left+(t.width-e.width)/2-n.x,i=t.top-e.top+(t.height-e.height)/2-n.y,r=t.width/e.width,c=t.height/e.height,s=Math.max(r,c);return{transformOrigin:`${e.left+e.width/2}px ${e.top+e.height/2}px`,animate:l=>{const a=1-l;return{transform:`translate(${o*a}px, ${i*a}px) scale(${1+(s-1)*a})`}}}}class Si{constructor(){O(this,"name","background");O(this,"physics",gi)}contribute(e){const{from:n,to:o,resolved:i,input:r,physics:c}=e,s=i.mode==="enter",l=s?n:o,a=s?bi(r):wi(r);return a&&(l.style.transformOrigin=a.transformOrigin),[new b.WebAnimation({element:l,integrator:S.IntegratorProvider.from(c),style:s?(d,u)=>a.animate(u):d=>a.animate(d)})]}}const xi={spring:{stiffness:530,damping:34,doubleSpring:1}};class Ai{constructor(){O(this,"name","background");O(this,"physics",xi)}contribute(e){return[]}}const Ei={expand:()=>new Si,static:()=>new Ai,blur:()=>new yi};function $i(t){return Ei[t]()}function vi(t){var x,$;const{resolved:e,input:n,from:o,to:i,physics:r,onDispose:c}=t,s=e.mode==="enter",l=s?i:o,a=Tt(n),d=a.contentAware?((x=n.exitMedia)==null?void 0:x.mediaElement)??e.exitEl:e.exitEl,u=a.contentAware?(($=n.enterMedia)==null?void 0:$.mediaElement)??e.enterEl:e.enterEl,y=b.retainOpacity(d),p=b.retainOpacity(u),f=Mt(d);a.contentAware&&(f.style.width=`${a.exitContent.width}px`,f.style.height=`${a.exitContent.height}px`,f.style.borderRadius="0"),f.style.zIndex=getComputedStyle(u).zIndex,u.after(f),f.style.transform=Gn({width:a.enterContent.width,height:a.enterContent.height,left:a.enterContent.left+l.scrollLeft,top:a.enterContent.top+l.scrollTop},Pt(l,f));const h=n.enterMedia??nt(e.enterEl,n.enterRect,C=>L(l,C),{clipRoot:l,legacyRadiusAttribute:"data-zoom-radius"});if((a.contentAware?h.radiusSource:h.bboxRadiusSource)!=="unsupported"){const C=a.contentAware?h.window:n.enterRect,P=a.contentAware?h.cornerRadii??[h.radius]:[h.bboxRadius];f.style.borderRadius="0",f.style.clipPath=at(a.enterContent,B(a.enterContent,C),P.map(A=>({x:A,y:A})))}const w=(C,P)=>({opacity:G(s?P:C)*y.opacity}),g=(C,P)=>({opacity:me(s?C:P,p.opacity,y.opacity)});return f.style.opacity=String(w(0,1).opacity),y.set(0),p.set(g(0,1).opacity),c(()=>{f.remove(),y.restore(),p.restore()}),[new b.WebAnimation({element:f,motion:{lifetime:"temporary",role:"shared-media-source"},integrator:S.IntegratorProvider.from(r),style:w}),new b.WebAnimation({element:u,integrator:S.IntegratorProvider.from(r),style:g})]}const It="data-zoom-enter-key",ne="data-zoom-exit-key",oe="data-zoom-radius";function Ci(t,e){return Math.abs(t.left-e.left)<.01&&Math.abs(t.top-e.top)<.01&&Math.abs(t.width-e.width)<.01&&Math.abs(t.height-e.height)<.01}function Pi(t,e){const n=[];let o=e;for(;o&&o!==t;){const i=o.parentElement;if(!i)break;for(const r of Array.from(i.children))r!==o&&r instanceof HTMLElement&&!r.hasAttribute(ot)&&n.push(r);o=i}return n}function ie(t){const e=t.querySelectorAll(`[${It}]`);return e.length!==1?null:e[0]}function re(t,e){const n=t.querySelectorAll(`[${ne}]`);for(const o of n)if(o.getAttribute(ne)===e)return o;return null}function Ii(t,e,n){if(n==="forward"){const c=ie(e);if(!c)return null;const s=c.getAttribute(It);if(!s)return null;const l=re(t,s);return l?{mode:"enter",enterEl:c,exitEl:l}:null}const o=ie(t);if(!o)return null;const i=o.getAttribute(It);if(!i)return null;const r=re(e,i);return r?{mode:"exit",enterEl:o,exitEl:r}:null}function Ri(t,e,n,o){const i=t.mode==="enter"?n:e,r=t.mode==="enter"?e:n,c=L(i,t.enterEl),s=L(r,t.exitEl),l=nt(t.enterEl,c,m=>L(i,m),{clipRoot:i,legacyRadiusAttribute:oe}),a=nt(t.exitEl,s,m=>L(r,m),{clipRoot:r,legacyRadiusAttribute:oe}),[d,u]=he(l,a),y=d.contentAware&&u.contentAware,p=t.mode==="enter"?n.getBoundingClientRect():e.getBoundingClientRect(),f={left:0,top:0,width:p.width,height:p.height},h=d.radiusSource==="legacy"||Ci(d.window,f)?d.radius:0;return{enterRect:c,exitRect:s,...y?{enterMedia:d,exitMedia:u}:{},pageRect:p,scrollOffset:o,enterRadius:h,exitRadius:u.radius}}class Oi{constructor(){O(this,"name","tile")}prepare(e){e.from.then(n=>{n.style.willChange="transform, clip-path, opacity",n.style.backfaceVisibility="hidden",n.style.contain="layout paint"})}contribute(e){const{from:n,to:o,resolved:i,input:r,physics:c,onDispose:s}=e,l=i.mode==="enter",a=l?ci(r):li(r),d=l?o:n,u=l?"t":"u",y=vi(e);s(ri(i.exitEl)),a&&(d.style.transformOrigin=a.transformOrigin);const p=l?F:_,f=l?_:F,h=n.style.zIndex;n.style.zIndex=p;const m=o.style.zIndex,w=o.style.position;return o.style.zIndex=f,o.style.position="relative",s(g=>{g.owns(d)&&(d.style.willChange="auto",d.style.backfaceVisibility="",d.style.transformOrigin="",d.style.contain=""),g.owns(n)&&(n.style.zIndex=h,n.style.willChange="auto",n.style.backfaceVisibility="",n.style.transformOrigin="",n.style.contain="",n.style.transform="",n.style.clipPath=""),g.owns(o)&&(o.style.zIndex=m,o.style.position=w,o.style.transformOrigin="")}),[...y,new b.WebAnimation({element:d,integrator:S.IntegratorProvider.from(c),style:u==="t"?g=>a.animate(g):(g,x)=>a.animate(x)})]}}class Mi{constructor(){O(this,"name","content")}contribute(e){const{resolved:n,physics:o,from:i,to:r,onDispose:c}=e,s=n.mode==="enter"?r:i,l=Pi(s,n.enterEl);if(l.length===0)return[];const a=l.map(d=>d.style.opacity);if(n.mode==="enter")for(const d of l)d.style.opacity="0";return c(d=>{for(let u=0;u<l.length;u++){const y=l[u];y&&d.owns(y)&&(y.style.opacity=a[u]??"")}}),l.map(d=>new b.WebAnimation({element:d,integrator:S.IntegratorProvider.from(o),style:(u,y)=>({opacity:n.mode==="enter"?u:y})}))}}class Ti{constructor(){O(this,"name","content")}contribute(){return[]}}const _i={default:()=>new Ti,fade:()=>new Mi};function ki(t){return _i[t]()}function At(t){const e=$i(t.type);return{strategies:[new Oi,e,ki(t.variant),...t.type==="blur"?[new mi]:[]],physics:e.physics,exitPhysics:e.exitPhysics}}function Di(t,e){return e==="exit"?t.exitPhysics??t.physics:t.physics}const Fi=t=>{const{physics:e,exitPhysics:n}=At(t),o=i=>({prepare:r=>{const{strategies:c}=At(t),s={from:r.from,to:r.to,context:{positionedParent:r.context.positionedParent},createElement:r.createElement},l={};for(const a of c){if(!a.prepare)continue;const d=a.prepare(s);d&&Object.assign(l,d)}return{...l,strategies:c}},animation:({from:r,to:c,context:s,strategies:l=At(t).strategies,...a})=>{var g;const d=Ii(r,c,i);if(!d)return K({tile:[],background:[],content:[],overlay:[]});const u=Ri(d,r,c,s.scrollOffset),y=[],p=x=>{y.push(x)},f={from:r,to:c,resolved:d,input:u,physics:Di({physics:e,exitPhysics:n},d.mode),context:s,extras:a,onDispose:p},h={tile:[],background:[],content:[],overlay:[]};for(const x of l)h[x.name].push(...((g=x.contribute)==null?void 0:g.call(x,f))??[]);const m=Object.values(h).flat(),w=K(h);w.onDispose=x=>{for(const $ of y)try{$(x)}catch(C){console.error("[zoom] cleanup error",C)}};for(const x of m)x instanceof b.WebAnimation&&J(x);return w}});return v.defineTransition({forward:o("forward"),backward:o("backward")})};function Yi(t){const e=t.type??"static",n=t.variant??(t.fade?"fade":"default");return{type:e,variant:n}}function Li(t={},e={}){const n=Yi(t);return v.withOverride(Fi(n),e.override)}const se=1/60,Wi=600;function Hi(t,e){const n=Math.sqrt(t),o=e/(2*n),i=2*Math.PI/n,r=o<=1?1-o:1/o-1;return{duration:i,bounce:r,zeta:o}}function U(t){if(!Number.isFinite(t.stiffness)||t.stiffness<=0)throw new Error("spring(): stiffness must be finite and > 0");if(!Number.isFinite(t.damping)||t.damping<0)throw new Error("spring(): damping must be finite and >= 0");for(const[e,n]of[["restDelta",t.restDelta],["restSpeed",t.restSpeed]])if(n!==void 0&&(!Number.isFinite(n)||n<=0))throw new Error(`spring(): ${e} must be finite and > 0`);return S.IntegratorProvider.from({spring:t})}function zi(t){let e={position:0,velocity:0};for(let n=1;n<=Wi;n++)if(e=t.step(e,1,se),e.position>=1)return n*se*1e3;return 1/0}function Se(t){const{duration:e,resistance:n=1.5,restDelta:o}=t;if(!Number.isFinite(e)||!(e>0))throw new Error("easeIn(): duration must be finite and > 0");const i=e*1e3;let r=.01,c=1e6;for(let s=0;s<60;s++){const l=Math.sqrt(r*c),a=new S.InertiaIntegrator({acceleration:l,resistance:n,restDelta:o});zi(a)>i?r=l:c=l}return new S.InertiaIntegrator({acceleration:c,resistance:n,restDelta:o})}class _t{constructor(e,n){if(this.inner=e,this.factor=n,!Number.isFinite(n)||!(n>0))throw new Error("scale(): factor must be finite and > 0")}step(e,n,o){const i=Math.max(1,Math.ceil(this.factor)),r=o*this.factor/i;let c={...e,velocity:e.velocity/this.factor};for(let s=0;s<i;s++)c=this.inner.step(c,n,r);return{...c,velocity:c.velocity*this.factor}}isSettled(e,n){return this.inner.isSettled({...e,velocity:e.velocity/this.factor},n)}}function Ni(t,e){return new _t(t,e)}function xe(t){const e=S.simulate(t,0,1,0),n=e.length?e[e.length-1].time:0;if(t instanceof _t){const o=xe(t.inner);return{...o,kind:"scaled",duration:o.duration===void 0?void 0:o.duration/t.factor,settleMs:n}}return t instanceof S.SpringIntegrator||t instanceof S.DoubleSpringIntegrator?{kind:t instanceof S.SpringIntegrator?"spring":"double-spring",...Hi(t.stiffness,t.damping),settleMs:n}:t instanceof S.InertiaIntegrator?{kind:"inertia",settleMs:n}:{kind:"custom",settleMs:n}}const Xi=U({stiffness:246.74011002723395,damping:31.41592653589793}),Vi=U({stiffness:438.6490844928604,damping:35.604716740684324}),Bi=U({stiffness:194.9551486634935,damping:19.54768762233649}),Ui=U({stiffness:130.5071656342394,damping:22.84794657156213}),ji=U({stiffness:986.9604401089358,damping:62.83185307179586}),Zi=Se({duration:.2});exports.defineTransition=v.defineTransition;exports.withOverride=v.withOverride;exports.Animation=b.Animation;exports.MultiAnimation=b.MultiAnimation;exports.WebAnimation=b.WebAnimation;exports.DoubleSpringIntegrator=S.DoubleSpringIntegrator;exports.InertiaIntegrator=S.InertiaIntegrator;exports.IntegratorProvider=S.IntegratorProvider;exports.SpringIntegrator=S.SpringIntegrator;exports.LinearIntegrator=ae;exports.ScaledIntegrator=_t;exports.accelerate=Zi;exports.axis=ln;exports.blind=yn;exports.bouncy=Bi;exports.describeIntegrator=xe;exports.drill=Cn;exports.easeIn=Se;exports.fade=In;exports.film=Yn;exports.gentle=Ui;exports.hero=Co;exports.jaemin=Oo;exports.rotate=_o;exports.scale=Ni;exports.scroll=Fo;exports.sheet=Qo;exports.slide=ei;exports.smooth=Xi;exports.snappy=Vi;exports.spring=U;exports.strip=ii;exports.swift=ji;exports.zoom=Li;