{var a;return(a=r.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ns),this.root.sharedNodes.clear()}}}function fl(t){t.updateLayout()}function dl(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=n.source!==t.layout.source;o==="size"?N(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=I(f);f.min=s[h].min,f.max=f.min+d}):Ci(o,n.layoutBox,s)&&N(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=I(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=mt();Dt(a,s,n.layoutBox);const l=mt();r?Dt(l,t.applyTransform(i,!0),n.measuredBox):Dt(l,s,n.layoutBox);const c=!Vi(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const p=R();Mt(p,n.layoutBox,f.layoutBox);const m=R();Mt(m,s,d.layoutBox),Ai(p,m)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function pl(t){ot.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ml(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function gl(t){t.clearSnapshot()}function ns(t){t.clearMeasurements()}function yl(t){t.isLayoutDirty=!1}function vl(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ss(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function xl(t){t.resolveTargetDelta()}function Pl(t){t.calcProjection()}function Tl(t){t.resetRotation()}function bl(t){t.removeLeadSnapshot()}function is(t,e,n){t.translate=w(e.translate,0,n),t.scale=w(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function rs(t,e,n,s){t.min=w(e.min,n.min,s),t.max=w(e.max,n.max,s)}function Vl(t,e,n,s){rs(t.x,e.x,n.x,s),rs(t.y,e.y,n.y,s)}function Al(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Sl={duration:.45,ease:[.4,0,.1,1]},os=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),as=os("applewebkit/")&&!os("chrome/")?Math.round:L;function ls(t){t.min=as(t.min),t.max=as(t.max)}function Cl(t){ls(t.x),ls(t.y)}function Ci(t,e,n){return t==="position"||t==="preserve-aspect"&&!Se(Qn(e),Qn(n),.2)}const wl=Si({attachResizeListener:(t,e)=>z(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ye={current:void 0},wi=Si({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ye.current){const t=new wl({});t.mount(window),t.setOptions({layoutScroll:!0}),ye.current=t}return ye.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Dl={pan:{Feature:$a},drag:{Feature:Ha,ProjectionNode:wi,MeasureLayout:Pi}},Ml=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Rl(t){const e=Ml.exec(t);if(!e)return[,];const[,n,s]=e;return[n,s]}function Me(t,e,n=1){const[s,i]=Rl(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return ci(r)?parseFloat(r):r}else return Kt(i)?Me(i,e,n+1):i}function Ll(t,{...e},n){const s=t.current;if(!(s instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const o=i.get();if(!Kt(o))return;const r=Me(o,s);r&&i.set(r)});for(const i in e){const o=e[i];if(!Kt(o))continue;const r=Me(o,s);r&&(e[i]=r,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:e,transitionEnd:n}}const Fl=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Di=t=>Fl.has(t),El=t=>Object.keys(t).some(Di),cs=t=>t===xt||t===P,us=(t,e)=>parseFloat(t.split(", ")[e]),hs=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/);if(i)return us(i[1],e);{const o=s.match(/^matrix\((.+)\)$/);return o?us(o[1],t):0}},Bl=new Set(["x","y","z"]),Ol=Et.filter(t=>!Bl.has(t));function jl(t){const e=[];return Ol.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const vt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:hs(4,13),y:hs(5,14)};vt.translateX=vt.x;vt.translateY=vt.y;const kl=(t,e,n)=>{const s=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:r}=o,a={};r==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(c=>{a[c]=vt[c](s,o)}),e.render();const l=e.measureViewportBox();return n.forEach(c=>{const u=e.getValue(c);u&&u.jump(a[c]),t[c]=vt[c](l,o)}),t},Il=(t,e,n={},s={})=>{e={...e},s={...s};const i=Object.keys(e).filter(Di);let o=[],r=!1;const a=[];if(i.forEach(l=>{const c=t.getValue(l);if(!t.hasValue(l))return;let u=n[l],h=Vt(u);const f=e[l];let d;if(Xt(f)){const p=f.length,m=f[0]===null?1:0;u=f[m],h=Vt(u);for(let y=m;y=0?window.pageYOffset:null,c=kl(e,t,a);return o.length&&o.forEach(([u,h])=>{t.getValue(u).set(h)}),t.render(),ee&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:s}}else return{target:e,transitionEnd:s}};function Ul(t,e,n,s){return El(e)?Il(t,e,n,s):{target:e,transitionEnd:s}}const Nl=(t,e,n,s)=>{const i=Ll(t,e,s);return e=i.target,s=i.transitionEnd,Ul(t,e,n,s)},Re={current:null},Mi={current:!1};function Wl(){if(Mi.current=!0,!!ee)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Re.current=t.matches;t.addListener(e),e()}else Re.current=!1}function Gl(t,e,n){const{willChange:s}=e;for(const i in e){const o=e[i],r=n[i];if(k(o))t.addValue(i,o),Qt(s)&&s.add(i);else if(k(r))t.addValue(i,yt(o,{owner:t})),Qt(s)&&s.remove(i);else if(r!==o)if(t.hasValue(i)){const a=t.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=t.getStaticValue(i);t.addValue(i,yt(a!==void 0?a:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const fs=new WeakMap,Ri=Object.keys(Lt),Hl=Ri.length,ds=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],$l=Oe.length;class zl{constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>D.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.isControllingVariants=se(n),this.isVariantNode=Ps(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(n,{});for(const h in u){const f=u[h];a[h]!==void 0&&k(f)&&(f.set(a[h],!1),Qt(c)&&c.add(h))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,fs.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),Mi.current||Wl(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Re.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){fs.delete(this.current),this.projection&&this.projection.unmount(),Y(this.notifyUpdate),Y(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const s=ct.has(e),i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&D.update(this.notifyUpdate,!1,!0),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},s,i,o){let r,a;for(let l=0;lthis.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:o,layoutScroll:f,layoutRoot:d})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):R()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;sn.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=yt(n,{owner:this}),this.addValue(e,s)),s}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props,i=typeof s=="string"||typeof s=="object"?(n=He(this.props,s))===null||n===void 0?void 0:n[e]:void 0;if(s&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!k(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new tn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Li extends zl{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...s},i){const o=la(s,e||{},this);if(i){oa(this,s,o);const r=Nl(this,s,o,n);n=r.transitionEnd,s=r.target}return{transition:e,transitionEnd:n,...s}}}function Kl(t){return window.getComputedStyle(t)}class _l extends Li{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(ct.has(n)){const s=Ye(n);return s&&s.default||0}else{const s=Kl(e),i=(Ss(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return vi(e,n)}build(e,n,s,i){Ie(e,n,s,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return Ge(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;k(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,s,i){Rs(e,n,s,i)}}class Xl extends Li{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(ct.has(n)){const s=Ye(n);return s&&s.default||0}return n=Ls.has(n)?n:Fe(n),e.getAttribute(n)}measureInstanceViewportBox(){return R()}scrapeMotionValuesFromProps(e,n){return Es(e,n)}build(e,n,s,i){Ne(e,n,s,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,s,i){Fs(e,n,s,i)}mount(e){this.isSVGTag=We(e.tagName),super.mount(e)}}const Yl=(t,e)=>je(t)?new Xl(e,{enableHardwareAcceleration:!1}):new _l(e,{enableHardwareAcceleration:!0}),ql={layout:{ProjectionNode:wi,MeasureLayout:Pi}},Zl={...Va,...jr,...Dl,...ql},nc=zi((t,e)=>Vr(t,e,Zl,Yl));export{ms as M,yt as a,Ei as b,Y as c,D as f,k as i,nc as m,gr as u};
diff --git a/docs/_astro/motion.tSRGNphl.js b/docs/_astro/motion.tSRGNphl.js
new file mode 100644
index 0000000000..d31779972e
--- /dev/null
+++ b/docs/_astro/motion.tSRGNphl.js
@@ -0,0 +1 @@
+import{r as P,R as is}from"./index.SSXOyoI7.js";const rs=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Ut=P.createContext({}),Te=P.createContext(null),Pe=typeof document<"u",Ci=Pe?P.useLayoutEffect:P.useEffect,os=P.createContext({strict:!1}),be=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Di="framerAppearId",as="data-"+be(Di),Mi={skipAnimations:!1,useManualTiming:!1};class Xe{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function Ri(t){let e=new Xe,n=new Xe,s=0,i=!1,o=!1;const r=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{const h=u&&i,f=h?e:n;return c&&r.add(l),f.add(l)&&h&&i&&(s=e.order.length),l},cancel:l=>{n.remove(l),r.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),s=e.order.length,s)for(let c=0;c(h[f]=Ri(()=>n=!0),h),{}),r=h=>{o[h].process(i)},a=()=>{const h=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(h-i.timestamp,Ei),1),i.timestamp=h,i.isProcessing=!0,Ct.forEach(r),i.isProcessing=!1,n&&e&&(s=!1,t(a))},l=()=>{n=!0,s=!0,i.isProcessing||t(a)};return{schedule:Ct.reduce((h,f)=>{const d=o[f];return h[f]=(m,p=!1,y=!1)=>(n||l(),d.schedule(m,p,y)),h},{}),cancel:h=>Ct.forEach(f=>o[f].cancel(h)),state:i,steps:o}}const{schedule:Se,cancel:Ul}=ls(queueMicrotask,!1);function Li(t,e,n,s){const{visualElement:i}=P.useContext(Ut),o=P.useContext(os),r=P.useContext(Te),a=P.useContext(rs).reducedMotion,l=P.useRef();s=s||o.renderer,!l.current&&s&&(l.current=s(t,{visualState:e,parent:i,props:n,presenceContext:r,blockInitialAnimation:r?r.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;P.useInsertionEffect(()=>{c&&c.update(n,r)});const u=P.useRef(!!(n[as]&&!window.HandoffComplete));return Ci(()=>{c&&(Se.postRender(c.render),u.current&&c.animationState&&c.animationState.animateChanges())}),P.useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))}),c}function at(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Fi(t,e,n){return P.useCallback(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):at(n)&&(n.current=s))},[e])}function xt(t){return typeof t=="string"||Array.isArray(t)}function Kt(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Ve=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],we=["initial",...Ve];function Wt(t){return Kt(t.animate)||we.some(e=>xt(t[e]))}function cs(t){return!!(Wt(t)||t.variants)}function Bi(t,e){if(Wt(t)){const{initial:n,animate:s}=t;return{initial:n===!1||xt(n)?n:void 0,animate:xt(s)?s:void 0}}return t.inherit!==!1?e:{}}function ki(t){const{initial:e,animate:n}=Bi(t,P.useContext(Ut));return P.useMemo(()=>({initial:e,animate:n}),[qe(e),qe(n)])}function qe(t){return Array.isArray(t)?t.join(" "):t}const Ze={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Tt={};for(const t in Ze)Tt[t]={isEnabled:e=>Ze[t].some(n=>!!e[n])};function Oi(t){for(const e in t)Tt[e]={...Tt[e],...t[e]}}const us=P.createContext({}),hs=P.createContext({}),ji=Symbol.for("motionComponentSymbol");function Ii({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&Oi(t);function o(a,l){let c;const u={...P.useContext(rs),...a,layoutId:Ni(a)},{isStatic:h}=u,f=ki(a),d=s(a,h);if(!h&&Pe){f.visualElement=Li(i,d,u,e);const m=P.useContext(hs),p=P.useContext(os).strict;f.visualElement&&(c=f.visualElement.loadFeatures(u,p,t,m))}return P.createElement(Ut.Provider,{value:f},c&&f.visualElement?P.createElement(c,{visualElement:f.visualElement,...u}):null,n(i,a,Fi(d,f.visualElement,l),d,h,f.visualElement))}const r=P.forwardRef(o);return r[ji]=i,r}function Ni({layoutId:t}){const e=P.useContext(us).id;return e&&t!==void 0?e+"-"+t:t}function Ui(t){function e(s,i={}){return Ii(t(s,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(s,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const Ki=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ae(t){return typeof t!="string"||t.includes("-")?!1:!!(Ki.indexOf(t)>-1||/[A-Z]/u.test(t))}const Ft={};function Wi(t){Object.assign(Ft,t)}const St=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],it=new Set(St);function fs(t,{layout:e,layoutId:n}){return it.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ft[t]||t==="opacity")}const E=t=>!!(t&&t.getVelocity),Gi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_i=St.length;function $i(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},s,i){let o="";for(let r=0;r<_i;r++){const a=St[r];if(t[a]!==void 0){const l=Gi[a]||a;o+=`${l}(${t[a]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,s?"":o):n&&s&&(o="none"),o}const ds=t=>e=>typeof e=="string"&&e.startsWith(t),ms=ds("--"),Hi=ds("var(--"),Ce=t=>Hi(t)?zi.test(t.split("/*")[0].trim()):!1,zi=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Yi=(t,e)=>e&&typeof t=="number"?e.transform(t):t,X=(t,e,n)=>n>e?e:ntypeof t=="number",parse:parseFloat,transform:t=>t},pt={...ft,transform:t=>X(0,1,t)},Dt={...ft,default:1},gt=t=>Math.round(t*1e5)/1e5,De=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Xi=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,qi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Vt(t){return typeof t=="string"}const wt=t=>({test:e=>Vt(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),$=wt("deg"),N=wt("%"),v=wt("px"),Zi=wt("vh"),Qi=wt("vw"),Qe={...N,parse:t=>N.parse(t)/100,transform:t=>N.transform(t*100)},Je={...ft,transform:Math.round},ps={borderWidth:v,borderTopWidth:v,borderRightWidth:v,borderBottomWidth:v,borderLeftWidth:v,borderRadius:v,radius:v,borderTopLeftRadius:v,borderTopRightRadius:v,borderBottomRightRadius:v,borderBottomLeftRadius:v,width:v,maxWidth:v,height:v,maxHeight:v,size:v,top:v,right:v,bottom:v,left:v,padding:v,paddingTop:v,paddingRight:v,paddingBottom:v,paddingLeft:v,margin:v,marginTop:v,marginRight:v,marginBottom:v,marginLeft:v,rotate:$,rotateX:$,rotateY:$,rotateZ:$,scale:Dt,scaleX:Dt,scaleY:Dt,scaleZ:Dt,skew:$,skewX:$,skewY:$,distance:v,translateX:v,translateY:v,translateZ:v,x:v,y:v,z:v,perspective:v,transformPerspective:v,opacity:pt,originX:Qe,originY:Qe,originZ:v,zIndex:Je,backgroundPositionX:v,backgroundPositionY:v,fillOpacity:pt,strokeOpacity:pt,numOctaves:Je};function Me(t,e,n,s){const{style:i,vars:o,transform:r,transformOrigin:a}=t;let l=!1,c=!1,u=!0;for(const h in e){const f=e[h];if(ms(h)){o[h]=f;continue}const d=ps[h],m=Yi(f,d);if(it.has(h)){if(l=!0,r[h]=m,!u)continue;f!==(d.default||0)&&(u=!1)}else h.startsWith("origin")?(c=!0,a[h]=m):i[h]=m}if(e.transform||(l||s?i.transform=$i(t.transform,n,u,s):i.transform&&(i.transform="none")),c){const{originX:h="50%",originY:f="50%",originZ:d=0}=a;i.transformOrigin=`${h} ${f} ${d}`}}const Re=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function gs(t,e,n){for(const s in e)!E(e[s])&&!fs(s,n)&&(t[s]=e[s])}function Ji({transformTemplate:t},e,n){return P.useMemo(()=>{const s=Re();return Me(s,e,{enableHardwareAcceleration:!n},t),Object.assign({},s.vars,s.style)},[e])}function tr(t,e,n){const s=t.style||{},i={};return gs(i,s,t),Object.assign(i,Ji(t,e,n)),i}function er(t,e,n){const s={},i=tr(t,e,n);return t.drag&&t.dragListener!==!1&&(s.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=i,s}const nr=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Bt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||nr.has(t)}let ys=t=>!Bt(t);function sr(t){t&&(ys=e=>e.startsWith("on")?!Bt(e):t(e))}try{sr(require("@emotion/is-prop-valid").default)}catch{}function ir(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(ys(i)||n===!0&&Bt(i)||!e&&!Bt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function tn(t,e,n){return typeof t=="string"?t:v.transform(e+n*t)}function rr(t,e,n){const s=tn(e,t.x,t.width),i=tn(n,t.y,t.height);return`${s} ${i}`}const or={offset:"stroke-dashoffset",array:"stroke-dasharray"},ar={offset:"strokeDashoffset",array:"strokeDasharray"};function lr(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?or:ar;t[o.offset]=v.transform(-s);const r=v.transform(e),a=v.transform(n);t[o.array]=`${r} ${a}`}function Ee(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...c},u,h,f){if(Me(t,c,u,f),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:m,dimensions:p}=t;d.transform&&(p&&(m.transform=d.transform),delete d.transform),p&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=rr(p,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),r!==void 0&&lr(d,r,a,l,!1)}const vs=()=>({...Re(),attrs:{}}),Le=t=>typeof t=="string"&&t.toLowerCase()==="svg";function cr(t,e,n,s){const i=P.useMemo(()=>{const o=vs();return Ee(o,e,{enableHardwareAcceleration:!1},Le(s),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};gs(o,t.style,t),i.style={...o,...i.style}}return i}function ur(t=!1){return(n,s,i,{latestValues:o},r)=>{const l=(Ae(n)?cr:er)(s,o,r,n),c=ir(s,typeof n=="string",t),u=n!==P.Fragment?{...c,...l,ref:i}:{},{children:h}=s,f=P.useMemo(()=>E(h)?h.get():h,[h]);return P.createElement(n,{...u,children:f})}}function xs(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const o in n)t.style.setProperty(o,n[o])}const Ts=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ps(t,e,n,s){xs(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Ts.has(i)?i:be(i),e.attrs[i])}function Fe(t,e){const{style:n}=t,s={};for(const i in n)(E(n[i])||e.style&&E(e.style[i])||fs(i,t))&&(s[i]=n[i]);return s}function bs(t,e){const n=Fe(t,e);for(const s in t)if(E(t[s])||E(e[s])){const i=St.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;n[i]=t[s]}return n}function Be(t,e,n,s={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,s,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,s,i)),e}function hr(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const oe=t=>Array.isArray(t),fr=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),dr=t=>oe(t)?t[t.length-1]||0:t;function Rt(t){const e=E(t)?t.get():t;return fr(e)?e.toValue():e}function mr({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},s,i,o){const r={latestValues:pr(s,i,o,t),renderState:e()};return n&&(r.mount=a=>n(s,a,r)),r}const Ss=t=>(e,n)=>{const s=P.useContext(Ut),i=P.useContext(Te),o=()=>mr(t,e,s,i);return n?o():hr(o)};function pr(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=Rt(o[f]);let{initial:r,animate:a}=t;const l=Wt(t),c=cs(t);e&&c&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const h=u?a:r;return h&&typeof h!="boolean"&&!Kt(h)&&(Array.isArray(h)?h:[h]).forEach(d=>{const m=Be(t,d);if(!m)return;const{transitionEnd:p,transition:y,...x}=m;for(const T in x){let g=x[T];if(Array.isArray(g)){const b=u?g.length-1:0;g=g[b]}g!==null&&(i[T]=g)}for(const T in p)i[T]=p[T]}),i}const L=t=>t,{schedule:D,cancel:q,state:C,steps:Yt}=ls(typeof requestAnimationFrame<"u"?requestAnimationFrame:L,!0),gr={useVisualState:Ss({scrapeMotionValuesFromProps:bs,createRenderState:vs,onMount:(t,e,{renderState:n,latestValues:s})=>{D.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),D.render(()=>{Ee(n,s,{enableHardwareAcceleration:!1},Le(e.tagName),t.transformTemplate),Ps(e,n)})}})},yr={useVisualState:Ss({scrapeMotionValuesFromProps:Fe,createRenderState:Re})};function vr(t,{forwardMotionProps:e=!1},n,s){return{...Ae(t)?gr:yr,preloadedFeatures:n,useRender:ur(e),createVisualElement:s,Component:t}}function U(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Vs=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Gt(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const xr=t=>e=>Vs(e)&&t(e,Gt(e));function K(t,e,n,s){return U(t,e,xr(n),s)}const Tr=(t,e)=>n=>e(t(n)),W=(...t)=>t.reduce(Tr);function ws(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const en=ws("dragHorizontal"),nn=ws("dragVertical");function As(t){let e=!1;if(t==="y")e=nn();else if(t==="x")e=en();else{const n=en(),s=nn();n&&s?e=()=>{n(),s()}:(n&&n(),s&&s())}return e}function Cs(){const t=As(!0);return t?(t(),!1):!0}class Q{constructor(e){this.isMounted=!1,this.node=e}update(){}}function sn(t,e){const n="pointer"+(e?"enter":"leave"),s="onHover"+(e?"Start":"End"),i=(o,r)=>{if(o.pointerType==="touch"||Cs())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[s]&&a[s](o,r)};return K(t.current,n,i,{passive:!t.getProps()[s]})}class Pr extends Q{mount(){this.unmount=W(sn(this.node,!0),sn(this.node,!1))}unmount(){}}class br extends Q{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=W(U(this.node.current,"focus",()=>this.onFocus()),U(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Ds=(t,e)=>e?t===e?!0:Ds(t,e.parentElement):!1;function Xt(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Gt(n))}class Sr extends Q{constructor(){super(...arguments),this.removeStartListeners=L,this.removeEndListeners=L,this.removeAccessibleListeners=L,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const s=this.node.getProps(),o=K(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:h}=this.node.getProps();!h&&!Ds(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)},{passive:!(s.onTap||s.onPointerUp)}),r=K(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(s.onTapCancel||s.onPointerCancel)});this.removeEndListeners=W(o,r),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const r=a=>{a.key!=="Enter"||!this.checkPressEnd()||Xt("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&u(l,c)})};this.removeEndListeners(),this.removeEndListeners=U(this.node.current,"keyup",r),Xt("down",(a,l)=>{this.startPress(a,l)})},n=U(this.node.current,"keydown",e),s=()=>{this.isPressing&&Xt("cancel",(o,r)=>this.cancelPress(o,r))},i=U(this.node.current,"blur",s);this.removeAccessibleListeners=W(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:s,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),s&&s(e,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Cs()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:s}=this.node.getProps();s&&s(e,n)}mount(){const e=this.node.getProps(),n=K(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),s=U(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=W(n,s)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const ae=new WeakMap,qt=new WeakMap,Vr=t=>{const e=ae.get(t.target);e&&e(t)},wr=t=>{t.forEach(Vr)};function Ar({root:t,...e}){const n=t||document;qt.has(n)||qt.set(n,{});const s=qt.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(wr,{root:t,...e})),s[i]}function Cr(t,e,n){const s=Ar(e);return ae.set(t,n),s.observe(t),()=>{ae.delete(t),s.unobserve(t)}}const Dr={some:0,all:1};class Mr extends Q{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Dr[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),f=c?u:h;f&&f(l)};return Cr(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Rr(e,n))&&this.startObserver()}unmount(){}}function Rr({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Er={inView:{Feature:Mr},tap:{Feature:Sr},focus:{Feature:br},hover:{Feature:Pr}};function Ms(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;se[s]=n.get()),e}function Fr(t){const e={};return t.values.forEach((n,s)=>e[s]=n.getVelocity()),e}function _t(t,e,n){const s=t.getProps();return Be(s,e,n!==void 0?n:s.custom,Lr(t),Fr(t))}const z=t=>t*1e3,G=t=>t/1e3,Br={type:"spring",stiffness:500,damping:25,restSpeed:10},kr=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Or={type:"keyframes",duration:.8},jr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ir=(t,{keyframes:e})=>e.length>2?Or:it.has(t)?t.startsWith("scale")?kr(e[1]):Br:jr;function Nr({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function ke(t,e){return t[e]||t.default||t}const Ur=t=>t!==null;function $t(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Ur),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||s===void 0?i[o]:s}let Et;function Kr(){Et=void 0}const Y={now:()=>(Et===void 0&&Y.set(C.isProcessing||Mi.useManualTiming?C.timestamp:performance.now()),Et),set:t=>{Et=t,queueMicrotask(Kr)}},Rs=t=>/^0[^.\s]+$/u.test(t);function Wr(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Rs(t):!0}let Es=L;const Ls=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Gr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function _r(t){const e=Gr.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Fs(t,e,n=1){const[s,i]=_r(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Ls(r)?parseFloat(r):r}return Ce(i)?Fs(i,e,n+1):i}const $r=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),rn=t=>t===ft||t===v,on=(t,e)=>parseFloat(t.split(", ")[e]),an=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return on(i[1],e);{const o=s.match(/^matrix\((.+)\)$/u);return o?on(o[1],t):0}},Hr=new Set(["x","y","z"]),zr=St.filter(t=>!Hr.has(t));function ln(t){const e=[];return zr.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const ht={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:an(4,13),y:an(5,14)};ht.translateX=ht.x;ht.translateY=ht.y;const Bs=t=>e=>e.test(t),Yr={test:t=>t==="auto",parse:t=>t},ks=[ft,v,N,$,Qi,Zi,Yr],cn=t=>ks.find(Bs(t)),st=new Set;let le=!1,ce=!1;function Os(){if(ce){const t=Array.from(st).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{ln(s).length&&(n.set(s,ln(s)),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render()}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}ce=!1,le=!1,st.forEach(t=>t.complete()),st.clear()}function js(){st.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ce=!0)})}function Xr(){js(),Os()}class Oe{constructor(e,n,s,i,o,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(st.add(this),le||(le=!0,D.read(js),D.resolveKeyframes(Os))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let o=0;on=>!!(Vt(n)&&qi.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Is=(t,e,n)=>s=>{if(!Vt(s))return s;const[i,o,r,a]=s.match(De);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},qr=t=>X(0,255,t),Zt={...ft,transform:t=>Math.round(qr(t))},nt={test:je("rgb","red"),parse:Is("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Zt.transform(t)+", "+Zt.transform(e)+", "+Zt.transform(n)+", "+gt(pt.transform(s))+")"};function Zr(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const ue={test:je("#"),parse:Zr,transform:nt.transform},lt={test:je("hsl","hue"),parse:Is("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+N.transform(gt(e))+", "+N.transform(gt(n))+", "+gt(pt.transform(s))+")"},R={test:t=>nt.test(t)||ue.test(t)||lt.test(t),parse:t=>nt.test(t)?nt.parse(t):lt.test(t)?lt.parse(t):ue.parse(t),transform:t=>Vt(t)?t:t.hasOwnProperty("red")?nt.transform(t):lt.transform(t)};function Qr(t){var e,n;return isNaN(t)&&Vt(t)&&(((e=t.match(De))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Xi))===null||n===void 0?void 0:n.length)||0)>0}const Ns="number",Us="color",Jr="var",to="var(",un="${}",eo=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function kt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(eo,l=>(R.test(l)?(s.color.push(o),i.push(Us),n.push(R.parse(l))):l.startsWith(to)?(s.var.push(o),i.push(Jr),n.push(l)):(s.number.push(o),i.push(Ns),n.push(parseFloat(l))),++o,un)).split(un);return{values:n,split:a,indexes:s,types:i}}function Ks(t){return kt(t).values}function Ws(t){const{split:e,types:n}=kt(t),s=e.length;return i=>{let o="";for(let r=0;rtypeof t=="number"?0:t;function so(t){const e=Ks(t);return Ws(t)(e.map(no))}const Z={test:Qr,parse:Ks,createTransformer:Ws,getAnimatableNone:so},io=new Set(["brightness","contrast","saturate","opacity"]);function ro(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(De)||[];if(!s)return t;const i=n.replace(s,"");let o=io.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const oo=/\b([a-z-]*)\(.*?\)/gu,he={...Z,getAnimatableNone:t=>{const e=t.match(oo);return e?e.map(ro).join(" "):t}},ao={...ps,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:he,WebkitFilter:he},Ie=t=>ao[t];function Gs(t,e){let n=Ie(t);return n!==he&&(n=Z),n.getAnimatableNone?n.getAnimatableNone(e):void 0}function lo(t,e,n){let s=0,i;for(;s{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function co(t){let e;return()=>(e===void 0&&(e=t()),e)}const hn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Z.test(t)||t==="0")&&!t.startsWith("url("));function uo(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=e})}}function Hs(t,e){return e?t*(1e3/e):0}const fo=5;function zs(t,e,n){const s=Math.max(e-fo,0);return Hs(n-t(s),e-s)}const Qt=.001,mo=.01,po=10,go=.05,yo=1;function vo({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let i,o,r=1-e;r=X(go,yo,r),t=X(mo,po,G(t)),r<1?(i=c=>{const u=c*r,h=u*t,f=u-n,d=fe(c,r),m=Math.exp(-h);return Qt-f/d*m},o=c=>{const h=c*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(c,2)*t,m=Math.exp(-h),p=fe(Math.pow(c,2),r);return(-i(c)+Qt>0?-1:1)*((f-d)*m)/p}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-Qt+u*h},o=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=To(i,o,a);if(t=z(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:t}}}const xo=12;function To(t,e,n){let s=n;for(let i=1;it[n]!==void 0)}function So(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!fn(t,bo)&&fn(t,Po)){const n=vo(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function Ys({keyframes:t,restDelta:e,restSpeed:n,...s}){const i=t[0],o=t[t.length-1],r={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:u,velocity:h,isResolvedFromDuration:f}=So({...s,velocity:-G(s.velocity||0)}),d=h||0,m=l/(2*Math.sqrt(a*c)),p=o-i,y=G(Math.sqrt(a/c)),x=Math.abs(p)<5;n||(n=x?.01:2),e||(e=x?.005:.5);let T;if(m<1){const g=fe(y,m);T=b=>{const V=Math.exp(-m*y*b);return o-V*((d+m*y*p)/g*Math.sin(g*b)+p*Math.cos(g*b))}}else if(m===1)T=g=>o-Math.exp(-y*g)*(p+(d+y*p)*g);else{const g=y*Math.sqrt(m*m-1);T=b=>{const V=Math.exp(-m*y*b),M=Math.min(g*b,300);return o-V*((d+m*y*p)*Math.sinh(M)+g*p*Math.cosh(M))/g}}return{calculatedDuration:f&&u||null,next:g=>{const b=T(g);if(f)r.done=g>=u;else{let V=d;g!==0&&(m<1?V=zs(T,g,b):V=0);const M=Math.abs(V)<=n,_=Math.abs(o-b)<=e;r.done=M&&_}return r.value=r.done?o:b,r}}}function dn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],f={done:!1,value:h},d=S=>a!==void 0&&Sl,m=S=>a===void 0?l:l===void 0||Math.abs(a-S)-p*Math.exp(-S/s),g=S=>x+T(S),b=S=>{const k=T(S),O=g(S);f.done=Math.abs(k)<=c,f.value=f.done?x:O};let V,M;const _=S=>{d(f.value)&&(V=S,M=Ys({keyframes:[f.value,m(f.value)],velocity:zs(g,S,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return _(0),{calculatedDuration:null,next:S=>{let k=!1;return!M&&V===void 0&&(k=!0,b(S),_(S)),V!==void 0&&S>=V?M.next(S-V):(!k&&b(S),f)}}}const Xs=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Vo=1e-7,wo=12;function Ao(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=Xs(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>Vo&&++aAo(o,0,1,t,n);return o=>o===0||o===1?o:Xs(i(o),e,s)}const Co=At(.42,0,1,1),Do=At(0,0,.58,1),qs=At(.42,0,.58,1),Mo=t=>Array.isArray(t)&&typeof t[0]!="number",Zs=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Qs=t=>e=>1-t(1-e),Ne=t=>1-Math.sin(Math.acos(t)),Js=Qs(Ne),Ro=Zs(Ne),ti=At(.33,1.53,.69,.99),Ue=Qs(ti),Eo=Zs(Ue),Lo=t=>(t*=2)<1?.5*Ue(t):.5*(2-Math.pow(2,-10*(t-1))),Fo={linear:L,easeIn:Co,easeInOut:qs,easeOut:Do,circIn:Ne,circInOut:Ro,circOut:Js,backIn:Ue,backInOut:Eo,backOut:ti,anticipate:Lo},mn=t=>{if(Array.isArray(t)){Es(t.length===4);const[e,n,s,i]=t;return At(e,n,s,i)}else if(typeof t=="string")return Fo[t];return t},Pt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},w=(t,e,n)=>t+(e-t)*n;function Jt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Bo({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Jt(l,a,t+1/3),o=Jt(l,a,t),r=Jt(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}const te=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},ko=[ue,nt,lt],Oo=t=>ko.find(e=>e.test(t));function pn(t){const e=Oo(t);let n=e.parse(t);return e===lt&&(n=Bo(n)),n}const gn=(t,e)=>{const n=pn(t),s=pn(e),i={...n};return o=>(i.red=te(n.red,s.red,o),i.green=te(n.green,s.green,o),i.blue=te(n.blue,s.blue,o),i.alpha=w(n.alpha,s.alpha,o),nt.transform(i))};function de(t,e){return n=>n>0?e:t}function jo(t,e){return n=>w(t,e,n)}function Ke(t){return typeof t=="number"?jo:typeof t=="string"?Ce(t)?de:R.test(t)?gn:Uo:Array.isArray(t)?ei:typeof t=="object"?R.test(t)?gn:Io:de}function ei(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>Ke(o)(o,e[r]));return o=>{for(let r=0;r{for(const o in s)n[o]=s[o](i);return n}}function No(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let o=0;o{const n=Z.createTransformer(e),s=kt(t),i=kt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?W(ei(No(s,i),i.values),n):de(t,e)};function ni(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?w(t,e,n):Ke(t)(t,e)}function Ko(t,e,n){const s=[],i=n||ni,o=t.length-1;for(let r=0;re[0];if(o===2&&t[0]===t[1])return()=>e[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const r=Ko(e,s,i),a=r.length,l=c=>{let u=0;if(a>1)for(;ul(X(t[0],t[o-1],c)):l}function Go(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Pt(0,e,s);t.push(w(n,1,i))}}function _o(t){const e=[0];return Go(e,t.length-1),e}function $o(t,e){return t.map(n=>n*e)}function Ho(t,e){return t.map(()=>e||qs).splice(0,t.length-1)}function Ot({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Mo(s)?s.map(mn):mn(s),o={done:!1,value:e[0]},r=$o(n&&n.length===e.length?n:_o(e),t),a=Wo(r,e,{ease:Array.isArray(i)?i:Ho(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const yn=2e4;function zo(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e=yn?1/0:e}const Yo=t=>{const e=({timestamp:n})=>t(n);return{start:()=>D.update(e,!0),stop:()=>q(e),now:()=>C.isProcessing?C.timestamp:Y.now()}},Xo={decay:dn,inertia:dn,tween:Ot,keyframes:Ot,spring:Ys},qo=t=>t/100;class We extends $s{constructor({KeyframeResolver:e=Oe,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle";const{name:s,motionValue:i,keyframes:o}=this.options,r=(a,l)=>this.onKeyframesResolved(a,l);s&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(o,r,s,i):this.resolver=new e(o,r,s,i),this.resolver.scheduleResolve()}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=this.options,a=Xo[n]||Ot;let l,c;a!==Ot&&typeof e[0]!="number"&&(l=W(qo,ni(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});o==="mirror"&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=zo(u));const{calculatedDuration:h}=u,f=h+i,d=f*(s+1)-i;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:r,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:h}=s;if(this.startTime===null)return o.next(0);const{delay:f,repeat:d,repeatType:m,repeatDelay:p,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const x=this.currentTime-f*(this.speed>=0?1:-1),T=this.speed>=0?x<0:x>u;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let g=this.currentTime,b=o;if(d){const S=Math.min(this.currentTime,u)/h;let k=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&k--,k=Math.min(k,d+1),!!(k%2)&&(m==="reverse"?(O=1-O,p&&(O-=p/h)):m==="mirror"&&(b=r)),g=X(0,1,O)*h}const V=T?{done:!1,value:l[0]}:b.next(g);a&&(V.value=a(V.value));let{done:M}=V;!T&&c!==null&&(M=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return _&&i!==void 0&&(V.value=$t(l,this.options,i)),y&&y(V.value),_&&this.finish(),V}get duration(){const{resolved:e}=this;return e?G(e.calculatedDuration):0}get time(){return G(this.currentTime)}set time(e){e=z(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=G(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Yo,onPlay:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=s),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:e}=this.options;e&&e()}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const si=t=>Array.isArray(t)&&typeof t[0]=="number";function ii(t){return!!(!t||typeof t=="string"&&ri[t]||si(t)||Array.isArray(t)&&t.every(ii))}const mt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,ri={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:mt([0,.65,.55,1]),circOut:mt([.55,0,1,.45]),backIn:mt([.31,.01,.66,-.59]),backOut:mt([.33,1.53,.69,.99])};function oi(t){if(t)return si(t)?mt(t):Array.isArray(t)?t.map(oi):ri[t]}function Zo(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=oi(a);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:s,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"})}const Qo=co(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Jo=new Set(["opacity","clipPath","filter","transform"]),jt=10,ta=2e4;function ea(t){return t.type==="spring"||t.name==="backgroundColor"||!ii(t.ease)}function na(t,e){const n=new We({...e,keyframes:t,repeat:0,delay:0});let s={done:!1,value:t[0]};const i=[];let o=0;for(;!s.done&&othis.onKeyframesResolved(o,r),n,s),this.resolver.scheduleResolve()}initPlayback(e,n){var s;let{duration:i=300,motionValue:o,name:r}=this.options;if(!(!((s=o.owner)===null||s===void 0)&&s.current))return!1;if(ea(this.options)){const{onComplete:l,onUpdate:c,motionValue:u,...h}=this.options,f=na(e,h);e=f.keyframes,i=f.duration,this.options.times=f.times,this.options.ease=f.ease}const a=Zo(o.owner.current,r,e,{...this.options,duration:i});return a.startTime=Y.now(),this.pendingTimeline?(a.timeline=this.pendingTimeline,this.pendingTimeline=void 0):a.onfinish=()=>{const{onComplete:l}=this.options;o.set($t(e,this.options,n)),l&&l(),this.cancel(),this.resolveFinishedPromise()},{animation:a,duration:i,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return G(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return G(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=z(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return L;const{animation:s}=n;s.timeline=e,s.onfinish=null}return L}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s}=e;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:i,onUpdate:o,onComplete:r,...a}=this.options,l=new We({...a,keyframes:s}),c=z(this.time);i.setWithVelocity(l.sample(c-jt).value,l.sample(c).value,jt)}this.cancel()}}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:o,damping:r,type:a}=e;return Qo()&&s&&Jo.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&r!==0&&a!=="inertia"}}const Ge=(t,e,n,s={},i,o)=>r=>{const a=ke(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-z(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};Nr(a)||(u={...u,...Ir(t,u)}),u.duration&&(u.duration=z(u.duration)),u.repeatDelay&&(u.repeatDelay=z(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if(u.type===!1&&(u.duration=0,u.delay===0&&(h=!0)),h&&!o&&e.get()!==void 0){const f=$t(u.keyframes,a);if(f!==void 0){D.update(()=>{u.onUpdate(f),u.onComplete()});return}}return!o&&vn.supports(u)?new vn(u):new We(u)};function It(t){return!!(E(t)&&t.add)}function _e(t,e){t.indexOf(e)===-1&&t.push(e)}function $e(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class He{constructor(){this.subscriptions=[]}add(e){return _e(this.subscriptions,e),()=>$e(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o!isNaN(parseFloat(t));class ia{constructor(e,n={}){this.version="11.0.20",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(s,i=!0)=>{const o=Y.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.canTrackVelocity=sa(this.current),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Y.now()}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new He);const s=this.events[e].add(n);return e==="change"?()=>{s(),D.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Y.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>xn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,xn);return Hs(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function bt(t,e){return new ia(t,e)}function ra(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,bt(n))}function oa(t,e){const n=_t(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=dr(o[r]);ra(t,r,a)}}function aa({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function ai(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;const c=t.getValue("willChange");s&&(r=s);const u=[],h=i&&t.animationState&&t.animationState.getState()[i];for(const f in l){const d=t.getValue(f,(o=t.latestValues[f])!==null&&o!==void 0?o:null),m=l[f];if(m===void 0||h&&aa(h,f))continue;const p={delay:n,elapsed:0,...ke(r||{},f)};let y=!1;if(window.HandoffAppearAnimations){const T=t.getProps()[as];if(T){const g=window.HandoffAppearAnimations(T,f);g!==null&&(p.elapsed=g,y=!0)}}d.start(Ge(f,d,m,t.shouldReduceMotion&&it.has(f)?{type:!1}:p,t,y));const x=d.animation;x&&(It(c)&&(c.add(f),x.then(()=>c.remove(f))),u.push(x))}return a&&Promise.all(u).then(()=>{D.update(()=>{a&&oa(t,a)})}),u}function me(t,e,n={}){var s;const i=_t(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const r=i?()=>Promise.all(ai(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:h,staggerDirection:f}=o;return la(t,e,u+c,h,f,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[c,u]=l==="beforeChildren"?[r,a]:[a,r];return c().then(()=>u())}else return Promise.all([r(),a(n.delay)])}function la(t,e,n=0,s=0,i=1,o){const r=[],a=(t.variantChildren.size-1)*s,l=i===1?(c=0)=>c*s:(c=0)=>a-c*s;return Array.from(t.variantChildren).sort(ca).forEach((c,u)=>{c.notify("AnimationStart",e),r.push(me(c,e,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(r)}function ca(t,e){return t.sortNodePosition(e)}function ua(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>me(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=me(t,e,n);else{const i=typeof e=="function"?_t(t,e,n.custom):e;s=Promise.all(ai(t,i,n))}return s.then(()=>{D.postRender(()=>{t.notify("AnimationComplete",e)})})}const ha=[...Ve].reverse(),fa=Ve.length;function da(t){return e=>Promise.all(e.map(({animation:n,options:s})=>ua(t,n,s)))}function ma(t){let e=da(t);const n=ga();let s=!0;const i=l=>(c,u)=>{var h;const f=_t(t,u,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:m,...p}=f;c={...c,...p,...m}}return c};function o(l){e=l(t)}function r(l){const c=t.getProps(),u=t.getVariantContext(!0)||{},h=[],f=new Set;let d={},m=1/0;for(let y=0;ym&&b,k=!1;const O=Array.isArray(g)?g:[g];let rt=O.reduce(i(x),{});V===!1&&(rt={});const{prevResolvedValues:ze={}}=T,Ai={...ze,...rt},Ye=F=>{S=!0,f.has(F)&&(k=!0,f.delete(F)),T.needsAnimating[F]=!0};for(const F in Ai){const ot=rt[F],Ht=ze[F];if(d.hasOwnProperty(F))continue;let zt=!1;oe(ot)&&oe(Ht)?zt=!Ms(ot,Ht):zt=ot!==Ht,zt?ot!=null?Ye(F):f.add(F):ot!==void 0&&f.has(F)?Ye(F):T.protectedKeys[F]=!0}T.prevProp=g,T.prevResolvedValues=rt,T.isActive&&(d={...d,...rt}),s&&t.blockInitialAnimation&&(S=!1),S&&(!M||k)&&h.push(...O.map(F=>({animation:F,options:{type:x}})))}if(f.size){const y={};f.forEach(x=>{const T=t.getBaseTarget(x);y[x]=T===void 0?null:T}),h.push({animation:y})}let p=!!h.length;return s&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(p=!1),s=!1,p?e(h):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(f=>{var d;return(d=f.animationState)===null||d===void 0?void 0:d.setActive(l,c)}),n[l].isActive=c;const h=r(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n}}function pa(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ms(e,t):!1}function J(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ga(){return{animate:J(!0),whileInView:J(),whileHover:J(),whileTap:J(),whileDrag:J(),whileFocus:J(),exit:J()}}class ya extends Q{constructor(e){super(e),e.animationState||(e.animationState=ma(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Kt(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let va=0;class xa extends Q{constructor(){super(...arguments),this.id=va++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Ta={animation:{Feature:ya},exit:{Feature:xa}},Tn=(t,e)=>Math.abs(t-e);function Pa(t,e){const n=Tn(t.x,e.x),s=Tn(t.y,e.y);return Math.sqrt(n**2+s**2)}class li{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=ne(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=Pa(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:m}=h,{timestamp:p}=C;this.history.push({...m,timestamp:p});const{onStart:y,onMove:x}=this.handlers;f||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ee(f,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:m,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=ne(h.type==="pointercancel"?this.lastMoveEventInfo:ee(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,y),m&&m(h,y)},!Vs(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const r=Gt(e),a=ee(r,this.transformPagePoint),{point:l}=a,{timestamp:c}=C;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(e,ne(a,this.history)),this.removeListeners=W(K(this.contextWindow,"pointermove",this.handlePointerMove),K(this.contextWindow,"pointerup",this.handlePointerUp),K(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),q(this.updatePoint)}}function ee(t,e){return e?{point:e(t.point)}:t}function Pn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ne({point:t},e){return{point:t,delta:Pn(t,ci(e)),offset:Pn(t,ba(e)),velocity:Sa(e,.1)}}function ba(t){return t[0]}function ci(t){return t[t.length-1]}function Sa(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=ci(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>z(e)));)n--;if(!s)return{x:0,y:0};const o=G(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function B(t){return t.max-t.min}function pe(t,e=0,n=.01){return Math.abs(t-e)<=n}function bn(t,e,n,s=.5){t.origin=s,t.originPoint=w(e.min,e.max,t.origin),t.scale=B(n)/B(e),(pe(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=w(n.min,n.max,t.origin)-t.originPoint,(pe(t.translate)||isNaN(t.translate))&&(t.translate=0)}function yt(t,e,n,s){bn(t.x,e.x,n.x,s?s.originX:void 0),bn(t.y,e.y,n.y,s?s.originY:void 0)}function Sn(t,e,n){t.min=n.min+e.min,t.max=t.min+B(e)}function Va(t,e,n){Sn(t.x,e.x,n.x),Sn(t.y,e.y,n.y)}function Vn(t,e,n){t.min=e.min-n.min,t.max=t.min+B(e)}function vt(t,e,n){Vn(t.x,e.x,n.x),Vn(t.y,e.y,n.y)}function wa(t,{min:e,max:n},s){return e!==void 0&&tn&&(t=s?w(n,t,s.max):Math.min(t,n)),t}function wn(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Aa(t,{top:e,left:n,bottom:s,right:i}){return{x:wn(t.x,n,i),y:wn(t.y,e,s)}}function An(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.mins?n=Pt(e.min,e.max-s,t.min):s>i&&(n=Pt(t.min,t.max-i,e.min)),X(0,1,n)}function Ma(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const ge=.35;function Ra(t=ge){return t===!1?t=0:t===!0&&(t=ge),{x:Cn(t,"left","right"),y:Cn(t,"top","bottom")}}function Cn(t,e,n){return{min:Dn(t,e),max:Dn(t,n)}}function Dn(t,e){return typeof t=="number"?t:t[e]||0}const Mn=()=>({translate:0,scale:1,origin:0,originPoint:0}),ct=()=>({x:Mn(),y:Mn()}),Rn=()=>({min:0,max:0}),A=()=>({x:Rn(),y:Rn()});function I(t){return[t("x"),t("y")]}function ui({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Ea({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function La(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function se(t){return t===void 0||t===1}function ye({scale:t,scaleX:e,scaleY:n}){return!se(t)||!se(e)||!se(n)}function tt(t){return ye(t)||hi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function hi(t){return En(t.x)||En(t.y)}function En(t){return t&&t!=="0%"}function Nt(t,e,n){const s=t-n,i=e*s;return n+i}function Ln(t,e,n,s,i){return i!==void 0&&(t=Nt(t,i,s)),Nt(t,n,s)+e}function ve(t,e=0,n=1,s,i){t.min=Ln(t.min,e,n,s,i),t.max=Ln(t.max,e,n,s,i)}function fi(t,{x:e,y:n}){ve(t.x,e.translate,e.scale,e.originPoint),ve(t.y,n.translate,n.scale,n.originPoint)}function Fa(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a1.0000000000001||t<.999999999999?t:1}function H(t,e){t.min=t.min+e,t.max=t.max+e}function Bn(t,e,[n,s,i]){const o=e[i]!==void 0?e[i]:.5,r=w(t.min,t.max,o);ve(t,e[n],e[s],r,e.scale)}const Ba=["x","scaleX","originX"],ka=["y","scaleY","originY"];function ut(t,e){Bn(t.x,e,Ba),Bn(t.y,e,ka)}function di(t,e){return ui(La(t.getBoundingClientRect(),e))}function Oa(t,e,n){const s=di(t,n),{scroll:i}=e;return i&&(H(s.x,i.offset.x),H(s.y,i.offset.y)),s}const mi=({current:t})=>t?t.ownerDocument.defaultView:null,ja=new WeakMap;class Ia{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=A(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=u=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Gt(u,"page").point)},o=(u,h)=>{const{drag:f,dragPropagation:d,onDragStart:m}=this.getProps();if(f&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=As(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),I(y=>{let x=this.getAxisMotionValue(y).get()||0;if(N.test(x)){const{projection:T}=this.visualElement;if(T&&T.layout){const g=T.layout.layoutBox[y];g&&(x=B(g)*(parseFloat(x)/100))}}this.originPoint[y]=x}),m&&m(u,h);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},r=(u,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:m,onDrag:p}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:y}=h;if(d&&this.currentDirection===null){this.currentDirection=Na(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),p&&p(u,h)},a=(u,h)=>this.stop(u,h),l=()=>I(u=>{var h;return this.getAnimationState(u)==="paused"&&((h=this.getAxisMotionValue(u).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new li(e,{onSessionStart:i,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:mi(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&o(e,n)}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Mt(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=wa(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&at(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Aa(i.layoutBox,n):this.constraints=!1,this.elastic=Ra(s),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&I(r=>{this.getAxisMotionValue(r)&&(this.constraints[r]=Ma(i.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!at(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Oa(s,i.root,this.visualElement.getTransformPagePoint());let r=Ca(i.layout.layoutBox,o);if(n){const a=n(Ea(r));this.hasMutatedConstraints=!!a,a&&(r=ui(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=I(u=>{if(!Mt(u,n,this.currentDirection))return;let h=l&&l[u]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:s?e[u]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return s.start(Ge(e,s,0,n,this.visualElement))}stopAnimation(){I(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){I(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){I(n=>{const{drag:s}=this.getProps();if(!Mt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-w(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!at(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};I(r=>{const a=this.getAxisMotionValue(r);if(a){const l=a.get();i[r]=Da({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),I(r=>{if(!Mt(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(w(l,c,i[r]))})}addListeners(){if(!this.visualElement.current)return;ja.set(this.visualElement,this);const e=this.visualElement.current,n=K(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();at(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),s();const r=U(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(I(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=ge,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Mt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Na(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Ua extends Q{constructor(e){super(e),this.removeGroupControls=L,this.removeListeners=L,this.controls=new Ia(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||L}unmount(){this.removeGroupControls(),this.removeListeners()}}const kn=t=>(e,n)=>{t&&t(e,n)};class Ka extends Q{constructor(){super(...arguments),this.removePointerDownListener=L}onPointerDown(e){this.session=new li(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:mi(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:kn(e),onStart:kn(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&i(o,r)}}}mount(){this.removePointerDownListener=K(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Wa(){const t=P.useContext(Te);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=P.useId();return P.useEffect(()=>s(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const Lt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function On(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const dt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(v.test(t))t=parseFloat(t);else return t;const n=On(t,e.target.x),s=On(t,e.target.y);return`${n}% ${s}%`}},Ga={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=Z.parse(t);if(i.length>5)return s;const o=Z.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const c=w(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=c),typeof i[3+r]=="number"&&(i[3+r]/=c),o(i)}};class _a extends is.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;Wi($a),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Lt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,r=s.projection;return r&&(r.isPresent=o,i||e.layoutDependency!==n||n===void 0?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||D.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Se.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function pi(t){const[e,n]=Wa(),s=P.useContext(us);return is.createElement(_a,{...t,layoutGroup:s,switchLayoutGroup:P.useContext(hs),isPresent:e,safeToRemove:n})}const $a={borderRadius:{...dt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:dt,borderTopRightRadius:dt,borderBottomLeftRadius:dt,borderBottomRightRadius:dt,boxShadow:Ga},gi=["TopLeft","TopRight","BottomLeft","BottomRight"],Ha=gi.length,jn=t=>typeof t=="string"?parseFloat(t):t,In=t=>typeof t=="number"||v.test(t);function za(t,e,n,s,i,o){i?(t.opacity=w(0,n.opacity!==void 0?n.opacity:1,Ya(s)),t.opacityExit=w(e.opacity!==void 0?e.opacity:1,0,Xa(s))):o&&(t.opacity=w(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let r=0;rse?1:n(Pt(t,e,s))}function Un(t,e){t.min=e.min,t.max=e.max}function j(t,e){Un(t.x,e.x),Un(t.y,e.y)}function Kn(t,e,n,s,i){return t-=e,t=Nt(t,1/n,s),i!==void 0&&(t=Nt(t,1/i,s)),t}function qa(t,e=0,n=1,s=.5,i,o=t,r=t){if(N.test(e)&&(e=parseFloat(e),e=w(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=w(o.min,o.max,s);t===o&&(a-=e),t.min=Kn(t.min,e,n,a,i),t.max=Kn(t.max,e,n,a,i)}function Wn(t,e,[n,s,i],o,r){qa(t,e[n],e[s],e[i],e.scale,o,r)}const Za=["x","scaleX","originX"],Qa=["y","scaleY","originY"];function Gn(t,e,n,s){Wn(t.x,e,Za,n?n.x:void 0,s?s.x:void 0),Wn(t.y,e,Qa,n?n.y:void 0,s?s.y:void 0)}function _n(t){return t.translate===0&&t.scale===1}function vi(t){return _n(t.x)&&_n(t.y)}function Ja(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function xi(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function $n(t){return B(t.x)/B(t.y)}class tl{constructor(){this.members=[]}add(e){_e(this.members,e),e.scheduleRender()}remove(e){if($e(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Hn(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(s=`translate3d(${i}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:l,rotateX:c,rotateY:u,skewX:h,skewY:f}=n;l&&(s+=`rotate(${l}deg) `),c&&(s+=`rotateX(${c}deg) `),u&&(s+=`rotateY(${u}deg) `),h&&(s+=`skewX(${h}deg) `),f&&(s+=`skewY(${f}deg) `)}const r=t.x.scale*e.x,a=t.y.scale*e.y;return(r!==1||a!==1)&&(s+=`scale(${r}, ${a})`),s||"none"}const el=(t,e)=>t.depth-e.depth;class nl{constructor(){this.children=[],this.isDirty=!1}add(e){_e(this.children,e),this.isDirty=!0}remove(e){$e(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(el),this.isDirty=!1,this.children.forEach(e)}}function sl(t,e){const n=Y.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(q(s),t(o-e))};return D.read(s,!0),()=>q(s)}function il(t){window.MotionDebug&&window.MotionDebug.record(t)}function rl(t){return t instanceof SVGElement&&t.tagName!=="svg"}function ol(t,e,n){const s=E(t)?t:bt(t);return s.start(Ge("",s,e,n)),s.animation}const ie=["","X","Y","Z"],al={visibility:"hidden"},zn=1e3;let ll=0;const et={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Yn(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Ti({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=ll++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,et.totalNodes=et.resolvedTargetDeltas=et.recalculatedProjection=0,this.nodes.forEach(hl),this.nodes.forEach(gl),this.nodes.forEach(yl),this.nodes.forEach(fl),il(et)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=sl(f,250),Lt.hasAnimatedSinceResize&&(Lt.hasAnimatedSinceResize=!1,this.nodes.forEach(qn))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||bl,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=u.getProps(),T=!this.targetLayout||!xi(this.targetLayout,m)||d,g=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,g);const b={...ke(p,"layout"),onPlay:y,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else f||qn(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,q(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(vl),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;uthis.update()))}clearAllSnapshots(){this.nodes.forEach(dl),this.sharedNodes.forEach(xl)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const V=b/1e3;Zn(h.x,r.x,V),Zn(h.y,r.y,V),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(vt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Tl(this.relativeTarget,this.relativeTargetOrigin,f,V),g&&Ja(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=A()),j(g,this.relativeTarget)),p&&(this.animationValues=u,za(u,c,this.latestValues,V,T,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(q(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{Lt.hasAnimatedSinceResize=!0,this.currentAnimation=ol(0,zn,{...r,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(zn),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=r;if(!(!a||!l||!c)){if(this!==r&&this.layout&&c&&Pi(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||A();const h=B(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=B(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}j(a,l),ut(a,u),yt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new tl),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var r;const{layoutId:a}=this.options;return a?((r=this.getStack())===null||r===void 0?void 0:r.lead)||this:this}getPrevLead(){var r;const{layoutId:a}=this.options;return a?(r=this.getStack())===null||r===void 0?void 0:r.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};for(let u=0;u{var a;return(a=r.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Xn),this.root.sharedNodes.clear()}}}function cl(t){t.updateLayout()}function ul(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=n.source!==t.layout.source;o==="size"?I(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=B(f);f.min=s[h].min,f.max=f.min+d}):Pi(o,n.layoutBox,s)&&I(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=B(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=ct();yt(a,s,n.layoutBox);const l=ct();r?yt(l,t.applyTransform(i,!0),n.measuredBox):yt(l,s,n.layoutBox);const c=!vi(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const m=A();vt(m,n.layoutBox,f.layoutBox);const p=A();vt(p,s,d.layoutBox),xi(m,p)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=m,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function hl(t){et.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function fl(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function dl(t){t.clearSnapshot()}function Xn(t){t.clearMeasurements()}function ml(t){t.isLayoutDirty=!1}function pl(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function qn(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function gl(t){t.resolveTargetDelta()}function yl(t){t.calcProjection()}function vl(t){t.resetSkewAndRotation()}function xl(t){t.removeLeadSnapshot()}function Zn(t,e,n){t.translate=w(e.translate,0,n),t.scale=w(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Qn(t,e,n,s){t.min=w(e.min,n.min,s),t.max=w(e.max,n.max,s)}function Tl(t,e,n,s){Qn(t.x,e.x,n.x,s),Qn(t.y,e.y,n.y,s)}function Pl(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const bl={duration:.45,ease:[.4,0,.1,1]},Jn=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ts=Jn("applewebkit/")&&!Jn("chrome/")?Math.round:L;function es(t){t.min=ts(t.min),t.max=ts(t.max)}function Sl(t){es(t.x),es(t.y)}function Pi(t,e,n){return t==="position"||t==="preserve-aspect"&&!pe($n(e),$n(n),.2)}const Vl=Ti({attachResizeListener:(t,e)=>U(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),re={current:void 0},bi=Ti({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!re.current){const t=new Vl({});t.mount(window),t.setOptions({layoutScroll:!0}),re.current=t}return re.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),wl={pan:{Feature:Ka},drag:{Feature:Ua,ProjectionNode:bi,MeasureLayout:pi}},xe={current:null},Si={current:!1};function Al(){if(Si.current=!0,!!Pe)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>xe.current=t.matches;t.addListener(e),e()}else xe.current=!1}function Cl(t,e,n){const{willChange:s}=e;for(const i in e){const o=e[i],r=n[i];if(E(o))t.addValue(i,o),It(s)&&s.add(i);else if(E(r))t.addValue(i,bt(o,{owner:t})),It(s)&&s.remove(i);else if(r!==o)if(t.hasValue(i)){const a=t.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=t.getStaticValue(i);t.addValue(i,bt(a!==void 0?a:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const ns=new WeakMap,Dl=[...ks,R,Z],Ml=t=>Dl.find(Bs(t)),Vi=Object.keys(Tt),Rl=Vi.length,ss=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],El=we.length;class Ll{constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.resolveKeyframes=(f,d,m,p)=>new this.KeyframeResolver(f,d,m,p,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Oe,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>D.render(this.render,!1,!0);const{latestValues:l,renderState:c}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Wt(n),this.isVariantNode=cs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(n,{});for(const f in h){const d=h[f];l[f]!==void 0&&E(d)&&(d.set(l[f],!1),It(u)&&u.add(f))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,ns.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),Si.current||Al(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:xe.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ns.delete(this.current),this.projection&&this.projection.unmount(),q(this.notifyUpdate),q(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const s=it.has(e),i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&D.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},s,i,o){let r,a;for(let l=0;lthis.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:o,layoutScroll:f,layoutRoot:d})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):A()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;sn.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=bt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Ls(i)||Rs(i))?i=parseFloat(i):!Ml(i)&&Z.test(n)&&(i=Gs(e,n)),this.setBaseTarget(e,E(i)?i.get():i)),E(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n,s;const{initial:i}=this.props,o=typeof i=="string"||typeof i=="object"?(s=Be(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom))===null||s===void 0?void 0:s[e]:void 0;if(i&&o!==void 0)return o;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!E(r)?r:this.initialValues[e]!==void 0&&o===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new He),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class wi extends Ll{constructor(){super(...arguments),this.KeyframeResolver=_s}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}}function Fl(t){return window.getComputedStyle(t)}class Bl extends wi{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(it.has(n)){const s=Ie(n);return s&&s.default||0}else{const s=Fl(e),i=(ms(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return di(e,n)}build(e,n,s,i){Me(e,n,s,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return Fe(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;E(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,s,i){xs(e,n,s,i)}}class kl extends wi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(it.has(n)){const s=Ie(n);return s&&s.default||0}return n=Ts.has(n)?n:be(n),e.getAttribute(n)}measureInstanceViewportBox(){return A()}scrapeMotionValuesFromProps(e,n){return bs(e,n)}build(e,n,s,i){Ee(e,n,s,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,s,i){Ps(e,n,s,i)}mount(e){this.isSVGTag=Le(e.tagName),super.mount(e)}}const Ol=(t,e)=>Ae(t)?new kl(e,{enableHardwareAcceleration:!1}):new Bl(e,{enableHardwareAcceleration:!0}),jl={layout:{ProjectionNode:bi,MeasureLayout:pi}},Il={...Ta,...Er,...wl,...jl},Wl=Ui((t,e)=>vr(t,e,Il,Ol));export{rs as M,bt as a,Ci as b,q as c,D as f,E as i,Wl as m,hr as u};
diff --git a/docs/_astro/page.9eHGTb9p.js b/docs/_astro/page.BSacDWVn.js
similarity index 100%
rename from docs/_astro/page.9eHGTb9p.js
rename to docs/_astro/page.BSacDWVn.js
diff --git a/docs/_astro/register.5Gm4seL-.js b/docs/_astro/register.Ri3hQ5rL.js
similarity index 93%
rename from docs/_astro/register.5Gm4seL-.js
rename to docs/_astro/register.Ri3hQ5rL.js
index 15830cf639..7e0d7bdc1b 100644
--- a/docs/_astro/register.5Gm4seL-.js
+++ b/docs/_astro/register.Ri3hQ5rL.js
@@ -1,4 +1,4 @@
-import{j as tt,c as Cn}from"./cn.bS1G7WGS.js";import{r as y}from"./index.068npczX.js";import"./index.Zq7KvYVg.js";import{u as kr,M as Cr,a as $r,b as Ur,c as Br,f as Ir,i as Ft,m as Or}from"./motion.midB0Hve.js";import{p as Yr,m as Gr,b as Pr}from"./index.V5xgGVHC.js";function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>jr(n,t))}const $n=y.forwardRef((e,t)=>{const{children:n,...r}=e,i=y.Children.toArray(n),a=i.find(Mr);if(a){const s=a.props.children,o=i.map(c=>c===a?y.Children.count(s)>1?y.Children.only(null):y.isValidElement(s)?s.props.children:null:c);return y.createElement(nt,ee({},r,{ref:t}),y.isValidElement(s)?y.cloneElement(s,void 0,o):null)}return y.createElement(nt,ee({},r,{ref:t}),n)});$n.displayName="Slot";const nt=y.forwardRef((e,t)=>{const{children:n,...r}=e;return y.isValidElement(n)?y.cloneElement(n,{...Hr(r,n.props),ref:t?Lr(t,n.ref):n.ref}):y.Children.count(n)>1?y.Children.only(null):null});nt.displayName="SlotClone";const Ar=({children:e})=>y.createElement(y.Fragment,null,e);function Mr(e){return y.isValidElement(e)&&e.type===Ar}function Hr(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...o)=>{a(...o),i(...o)}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}const qr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Fr=qr.reduce((e,t)=>{const n=y.forwardRef((r,i)=>{const{asChild:a,...s}=r,o=a?$n:t;return y.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),y.createElement(o,ee({},s,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),zr=y.forwardRef((e,t)=>y.createElement(Fr.label,ee({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),Un=zr,Vr=y.forwardRef(({className:e,...t},n)=>tt.jsx(Un,{ref:n,className:Cn("text-sm font-medium text-white leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),...t}));Vr.displayName=Un.displayName;function rt(e){const t=kr(()=>$r(e)),{isStatic:n}=y.useContext(Cr);if(n){const[,r]=y.useState(e);y.useEffect(()=>t.on("change",r),[])}return t}function Wr(e,t){const n=rt(t()),r=()=>n.set(t());return r(),Ur(()=>{const i=()=>Ir.update(r,!1,!0),a=e.map(s=>s.on("change",i));return()=>{a.forEach(s=>s()),Br(r)}}),n}function Jr(e,...t){const n=e.length;function r(){let i="";for(let a=0;a{const[a,s]=y.useState(!1);let o=rt(0),c=rt(0);function d({currentTarget:l,clientX:p,clientY:_}){let{left:f,top:m}=l.getBoundingClientRect();o.set(p-f),c.set(_-m)}return tt.jsx(Or.div,{style:{background:Jr`
+import{j as tt,c as Cn}from"./cn.htLbLpcE.js";import{r as y}from"./index.SSXOyoI7.js";import"./index.v_sgd_GK.js";import{u as kr,M as Cr,a as $r,b as Ur,c as Br,f as Ir,i as Ft,m as Or}from"./motion.tSRGNphl.js";import{p as Yr,m as Gr,b as Pr}from"./index.Y0MI8VVX.js";function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>jr(n,t))}const $n=y.forwardRef((e,t)=>{const{children:n,...r}=e,i=y.Children.toArray(n),a=i.find(Mr);if(a){const s=a.props.children,o=i.map(c=>c===a?y.Children.count(s)>1?y.Children.only(null):y.isValidElement(s)?s.props.children:null:c);return y.createElement(nt,ee({},r,{ref:t}),y.isValidElement(s)?y.cloneElement(s,void 0,o):null)}return y.createElement(nt,ee({},r,{ref:t}),n)});$n.displayName="Slot";const nt=y.forwardRef((e,t)=>{const{children:n,...r}=e;return y.isValidElement(n)?y.cloneElement(n,{...Hr(r,n.props),ref:t?Lr(t,n.ref):n.ref}):y.Children.count(n)>1?y.Children.only(null):null});nt.displayName="SlotClone";const Ar=({children:e})=>y.createElement(y.Fragment,null,e);function Mr(e){return y.isValidElement(e)&&e.type===Ar}function Hr(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...o)=>{a(...o),i(...o)}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}const qr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Fr=qr.reduce((e,t)=>{const n=y.forwardRef((r,i)=>{const{asChild:a,...s}=r,o=a?$n:t;return y.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),y.createElement(o,ee({},s,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),zr=y.forwardRef((e,t)=>y.createElement(Fr.label,ee({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),Un=zr,Vr=y.forwardRef(({className:e,...t},n)=>tt.jsx(Un,{ref:n,className:Cn("text-sm font-medium text-white leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),...t}));Vr.displayName=Un.displayName;function rt(e){const t=kr(()=>$r(e)),{isStatic:n}=y.useContext(Cr);if(n){const[,r]=y.useState(e);y.useEffect(()=>t.on("change",r),[])}return t}function Wr(e,t){const n=rt(t()),r=()=>n.set(t());return r(),Ur(()=>{const i=()=>Ir.update(r,!1,!0),a=e.map(s=>s.on("change",i));return()=>{a.forEach(s=>s()),Br(r)}}),n}function Jr(e,...t){const n=e.length;function r(){let i="";for(let a=0;a{const[a,s]=y.useState(!1);let o=rt(0),c=rt(0);function d({currentTarget:l,clientX:p,clientY:_}){let{left:f,top:m}=l.getBoundingClientRect();o.set(p-f),c.set(_-m)}return tt.jsx(Or.div,{style:{background:Jr`
radial-gradient(
${a?"100px":"0px"} circle at ${o}px ${c}px,
var(--blue-500),
@@ -14,7 +14,7 @@ import{j as tt,c as Cn}from"./cn.bS1G7WGS.js";import{r as y}from"./index.068npcz
`);for(let s=r;s1024)continue;let c=Qt.test(o)?o.replace(Qt,"$1"):o;if(!c.match(/\S*Error: /)){for(let d of t){let l=d(c);if(l){i.push(l);break}}if(i.length>=Jn)break}}return Ri(i)}}function Ri(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),en.test(t[t.length-1].function||"")&&(t.pop(),en.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Jn).map(n=>g(u({},n),{filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}var Je="";function q(e){try{return!e||typeof e!="function"?Je:e.name||Je}catch{return Je}}var ut=_e();function xi(){if(!("fetch"in ut))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function dt(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function wi(){if(!xi())return!1;if(dt(ut.fetch))return!0;let e=!1,t=ut.document;if(t&&typeof t.createElement=="function")try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=dt(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}var Ee=_e();function Di(){let e=Ee.chrome,t=e&&e.app&&e.app.runtime,n="history"in Ee&&!!Ee.history.pushState&&!!Ee.history.replaceState;return!t&&n}var w=_e(),K="__sentry_xhr_v2__",de={},tn={};function Ni(e){if(!tn[e])switch(tn[e]=!0,e){case"console":ki();break;case"dom":Gi();break;case"xhr":Ui();break;case"fetch":Ci();break;case"history":Bi();break;case"error":Pi();break;case"unhandledrejection":ji();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&h.warn("unknown instrumentation type:",e);return}}function U(e,t){de[e]=de[e]||[],de[e].push(t),Ni(e)}function B(e,t){if(!(!e||!de[e]))for(let n of de[e]||[])try{n(t)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&h.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${q(n)}
-Error:`,r)}}function ki(){"console"in R&&ot.forEach(function(e){e in R.console&&D(R.console,e,function(t){return Oe[e]=t,function(...n){B("console",{args:n,level:e});let r=Oe[e];r&&r.apply(R.console,n)}})})}function Ci(){wi()&&D(R,"fetch",function(e){return function(...t){let{method:n,url:r}=$i(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return B("fetch",u({},i)),e.apply(R,t).then(a=>(B("fetch",g(u({},i),{endTimestamp:Date.now(),response:a})),a),a=>{throw B("fetch",g(u({},i),{endTimestamp:Date.now(),error:a})),a})}})}function lt(e,t){return!!e&&typeof e=="object"&&!!e[t]}function nn(e){return typeof e=="string"?e:e?lt(e,"url")?e.url:e.toString?e.toString():"":""}function $i(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[n,r]=e;return{url:nn(n),method:lt(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:nn(t),method:lt(t,"method")?String(t.method).toUpperCase():"GET"}}function Ui(){if(!w.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;D(e,"open",function(t){return function(...n){let r=n[1],i=this[K]={method:H(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};H(r)&&i.method==="POST"&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let a=()=>{let s=this[K];if(s&&this.readyState===4){try{s.status_code=this.status}catch{}B("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?D(this,"onreadystatechange",function(s){return function(...o){return a(),s.apply(this,o)}}):this.addEventListener("readystatechange",a),D(this,"setRequestHeader",function(s){return function(...o){let[c,d]=o,l=this[K];return l&&(l.request_headers[c.toLowerCase()]=d),s.apply(this,o)}}),t.apply(this,n)}}),D(e,"send",function(t){return function(...n){let r=this[K];return r&&n[0]!==void 0&&(r.body=n[0]),B("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}})}var Se;function Bi(){if(!Di())return;let e=w.onpopstate;w.onpopstate=function(...n){let r=w.location.href,i=Se;if(Se=r,B("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){let i=r.length>2?r[2]:void 0;if(i){let a=Se,s=String(i);Se=s,B("history",{from:a,to:s})}return n.apply(this,r)}}D(w.history,"pushState",t),D(w.history,"replaceState",t)}var Ii=1e3,Te,be;function Oi(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch{}return!1}function Yi(e){if(e.type!=="keypress")return!1;try{let t=e.target;if(!t||!t.tagName)return!0;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)return!1}catch{}return!0}function rn(e,t=!1){return n=>{if(!n||be===n||Yi(n))return;let r=n.type==="keypress"?"input":n.type;Te===void 0?(e({event:n,name:r,global:t}),be=n):Oi(be,n)&&(e({event:n,name:r,global:t}),be=n),clearTimeout(Te),Te=w.setTimeout(()=>{Te=void 0},Ii)}}function Gi(){if(!w.document)return;let e=B.bind(null,"dom"),t=rn(e,!0);w.document.addEventListener("click",t,!1),w.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{let r=w[n]&&w[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(D(r,"addEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{let c=this,d=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},l=d[a]=d[a]||{refCount:0};if(!l.handler){let p=rn(e);l.handler=p,i.call(this,a,p,o)}l.refCount++}catch{}return i.call(this,a,s,o)}}),D(r,"removeEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{let c=this,d=c.__sentry_instrumentation_handlers__||{},l=d[a];l&&(l.refCount--,l.refCount<=0&&(i.call(this,a,l.handler,o),l.handler=void 0,delete d[a]),Object.keys(d).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,s,o)}}))})}var Re=null;function Pi(){Re=w.onerror,w.onerror=function(e,t,n,r,i){return B("error",{column:r,error:i,line:n,msg:e,url:t}),Re&&!Re.__SENTRY_LOADER__?Re.apply(this,arguments):!1},w.onerror.__SENTRY_INSTRUMENTED__=!0}var xe=null;function ji(){xe=w.onunhandledrejection,w.onunhandledrejection=function(e){return B("unhandledrejection",e),xe&&!xe.__SENTRY_LOADER__?xe.apply(this,arguments):!0},w.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Li(){let e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;aMath.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Xn(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function A(e){let{message:t,event_id:n}=e;if(t)return t;let r=Xn(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function pt(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function pe(e,t){let n=Xn(e);if(!n)return;let r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism=u(u(u({},r),i),t),t&&"data"in t){let a=u(u({},i&&i.data),t.data);n.mechanism.data=a}}function an(e){if(e&&e.__sentry_captured__)return!0;try{Dt(e,"__sentry_captured__",!0)}catch{}return!1}function Ai(e){return Array.isArray(e)?e:[e]}function Mi(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Hi(){return"npm"}function qi(){return!Mi()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Fi(e,t){return e.require(t)}function L(e,t=100,n=1/0){try{return ht("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Kn(e,t=3,n=100*1024){let r=L(e,t);return Ji(r)>n?Kn(e,t-1,n):r}function ht(e,t,n=1/0,r=1/0,i=Li()){let[a,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!Mn(t))return t;let o=zi(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return o.replace("object ","");if(a(t))return"[Circular ~]";let d=t;if(d&&typeof d.toJSON=="function")try{let f=d.toJSON();return ht("",f,c-1,r,i)}catch{}let l=Array.isArray(t)?[]:{},p=0,_=Wn(t);for(let f in _){if(!Object.prototype.hasOwnProperty.call(_,f))continue;if(p>=r){l[f]="[MaxProperties ~]";break}let m=_[f];l[f]=ht(f,m,c-1,r,i),p++}return s(t),l}function zi(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Hn(t))return"[VueViewModel]";if(si(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${q(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;let n=Vi(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Vi(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Wi(e){return~-encodeURI(e).split(/%..|./).length}function Ji(e){return Wi(JSON.stringify(e))}var P;(function(e){e[e.PENDING=0]="PENDING";let t=1;e[e.RESOLVED=t]="RESOLVED";let n=2;e[e.REJECTED=n]="REJECTED"})(P||(P={}));function F(e){return new $(t=>{t(e)})}function kt(e){return new $((t,n)=>{n(e)})}var $=class{constructor(e){$.prototype.__init.call(this),$.prototype.__init2.call(this),$.prototype.__init3.call(this),$.prototype.__init4.call(this),this._state=P.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new $((n,r)=>{this._handlers.push([!1,i=>{if(!e)n(i);else try{n(e(i))}catch(a){r(a)}},i=>{if(!t)r(i);else try{n(t(i))}catch(a){r(a)}}]),this._executeHandlers()})}catch(e){return this.then(t=>t,e)}finally(e){return new $((t,n)=>{let r,i;return this.then(a=>{i=!1,r=a,e&&e()},a=>{i=!0,r=a,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(P.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(P.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===P.PENDING){if(wt(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===P.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(t=>{t[0]||(this._state===P.RESOLVED&&t[1](this._value),this._state===P.REJECTED&&t[2](this._value),t[0]=!0)})}}};function Xi(e){let t=[];function n(){return e===void 0||t.lengthr(o)).then(null,()=>r(o).then(null,()=>{})),o}function a(s){return new $((o,c)=>{let d=t.length;if(!d)return o(!0);let l=setTimeout(()=>{s&&s>0&&o(!1)},s);t.forEach(p=>{F(p).then(()=>{--d||(clearTimeout(l),o(!0))},c)})})}return{$:t,add:i,drain:a}}function Xe(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}var Ki=["fatal","error","warning","log","info","debug"];function Zi(e){return e==="warn"?"warning":Ki.includes(e)?e:"log"}var Zn=_e(),_t={nowSeconds:()=>Date.now()/1e3};function Qi(){let{performance:e}=Zn;if(!e||!e.now)return;let t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function ea(){try{return Fi(module,"perf_hooks").performance}catch{return}}var Ke=qi()?ea():Qi(),sn=Ke===void 0?_t:{nowSeconds:()=>(Ke.timeOrigin+Ke.now())/1e3},Le=_t.nowSeconds.bind(_t),z=sn.nowSeconds.bind(sn),G=(()=>{let{performance:e}=Zn;if(!e||!e.now)return;let t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i{let a=on(i);return u(u({},r),a)},{});else{if(!e)return;t=on(e)}let n=Object.entries(t).reduce((r,[i,a])=>{if(i.match(ta)){let s=i.slice(Qn.length);r[s]=a}return r},{});if(Object.keys(n).length>0)return n}function mt(e){if(!e)return;let t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${Qn}${r}`]=i),n),{});return ia(t)}function on(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function ia(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{let a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?a:`${t},${a}`;return s.length>na?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&h.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}var aa=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function sa(e){if(!e)return;let t=e.match(aa);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function oa(e,t){let n=sa(e),r=ra(t),{traceId:i,parentSpanId:a,parentSampled:s}=n||{},o={traceId:i||k(),spanId:k().substring(16),sampled:s};return a&&(o.parentSpanId=a),r&&(o.dsc=r),{traceparentData:n,dynamicSamplingContext:r,propagationContext:o}}function Ct(e=k(),t=k().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function fe(e,t=[]){return[e,t]}function ca(e,t){let[n,r]=e;return[n,[...r,t]]}function cn(e,t){let n=e[1];for(let r of n){let i=r[0].type;if(t(r,i))return!0}return!1}function gt(e,t){return(t||new TextEncoder).encode(e)}function ua(e,t){let[n,r]=e,i=JSON.stringify(n);function a(s){typeof i=="string"?i=typeof s=="string"?i+s:[gt(i,t),s]:i.push(typeof s=="string"?gt(s,t):s)}for(let s of r){let[o,c]=s;if(a(`
+Error:`,r)}}function ki(){"console"in R&&ot.forEach(function(e){e in R.console&&D(R.console,e,function(t){return Oe[e]=t,function(...n){B("console",{args:n,level:e});let r=Oe[e];r&&r.apply(R.console,n)}})})}function Ci(){wi()&&D(R,"fetch",function(e){return function(...t){let{method:n,url:r}=$i(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return B("fetch",u({},i)),e.apply(R,t).then(a=>(B("fetch",g(u({},i),{endTimestamp:Date.now(),response:a})),a),a=>{throw B("fetch",g(u({},i),{endTimestamp:Date.now(),error:a})),a})}})}function lt(e,t){return!!e&&typeof e=="object"&&!!e[t]}function nn(e){return typeof e=="string"?e:e?lt(e,"url")?e.url:e.toString?e.toString():"":""}function $i(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[n,r]=e;return{url:nn(n),method:lt(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:nn(t),method:lt(t,"method")?String(t.method).toUpperCase():"GET"}}function Ui(){if(!w.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;D(e,"open",function(t){return function(...n){let r=n[1],i=this[K]={method:H(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};H(r)&&i.method==="POST"&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let a=()=>{let s=this[K];if(s&&this.readyState===4){try{s.status_code=this.status}catch{}B("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?D(this,"onreadystatechange",function(s){return function(...o){return a(),s.apply(this,o)}}):this.addEventListener("readystatechange",a),D(this,"setRequestHeader",function(s){return function(...o){let[c,d]=o,l=this[K];return l&&(l.request_headers[c.toLowerCase()]=d),s.apply(this,o)}}),t.apply(this,n)}}),D(e,"send",function(t){return function(...n){let r=this[K];return r&&n[0]!==void 0&&(r.body=n[0]),B("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}})}var Se;function Bi(){if(!Di())return;let e=w.onpopstate;w.onpopstate=function(...n){let r=w.location.href,i=Se;if(Se=r,B("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){let i=r.length>2?r[2]:void 0;if(i){let a=Se,s=String(i);Se=s,B("history",{from:a,to:s})}return n.apply(this,r)}}D(w.history,"pushState",t),D(w.history,"replaceState",t)}var Ii=1e3,Te,be;function Oi(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch{}return!1}function Yi(e){if(e.type!=="keypress")return!1;try{let t=e.target;if(!t||!t.tagName)return!0;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)return!1}catch{}return!0}function rn(e,t=!1){return n=>{if(!n||be===n||Yi(n))return;let r=n.type==="keypress"?"input":n.type;Te===void 0?(e({event:n,name:r,global:t}),be=n):Oi(be,n)&&(e({event:n,name:r,global:t}),be=n),clearTimeout(Te),Te=w.setTimeout(()=>{Te=void 0},Ii)}}function Gi(){if(!w.document)return;let e=B.bind(null,"dom"),t=rn(e,!0);w.document.addEventListener("click",t,!1),w.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{let r=w[n]&&w[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(D(r,"addEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{let c=this,d=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},l=d[a]=d[a]||{refCount:0};if(!l.handler){let p=rn(e);l.handler=p,i.call(this,a,p,o)}l.refCount++}catch{}return i.call(this,a,s,o)}}),D(r,"removeEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{let c=this,d=c.__sentry_instrumentation_handlers__||{},l=d[a];l&&(l.refCount--,l.refCount<=0&&(i.call(this,a,l.handler,o),l.handler=void 0,delete d[a]),Object.keys(d).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,s,o)}}))})}var Re=null;function Pi(){Re=w.onerror,w.onerror=function(e,t,n,r,i){return B("error",{column:r,error:i,line:n,msg:e,url:t}),Re&&!Re.__SENTRY_LOADER__?Re.apply(this,arguments):!1},w.onerror.__SENTRY_INSTRUMENTED__=!0}var xe=null;function ji(){xe=w.onunhandledrejection,w.onunhandledrejection=function(e){return B("unhandledrejection",e),xe&&!xe.__SENTRY_LOADER__?xe.apply(this,arguments):!0},w.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Li(){let e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;aMath.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Xn(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function A(e){let{message:t,event_id:n}=e;if(t)return t;let r=Xn(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function pt(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function pe(e,t){let n=Xn(e);if(!n)return;let r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism=u(u(u({},r),i),t),t&&"data"in t){let a=u(u({},i&&i.data),t.data);n.mechanism.data=a}}function an(e){if(e&&e.__sentry_captured__)return!0;try{Dt(e,"__sentry_captured__",!0)}catch{}return!1}function Ai(e){return Array.isArray(e)?e:[e]}function Mi(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Hi(){return"npm"}function qi(){return!Mi()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Fi(e,t){return e.require(t)}function L(e,t=100,n=1/0){try{return ht("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Kn(e,t=3,n=100*1024){let r=L(e,t);return Ji(r)>n?Kn(e,t-1,n):r}function ht(e,t,n=1/0,r=1/0,i=Li()){let[a,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!Mn(t))return t;let o=zi(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return o.replace("object ","");if(a(t))return"[Circular ~]";let d=t;if(d&&typeof d.toJSON=="function")try{let f=d.toJSON();return ht("",f,c-1,r,i)}catch{}let l=Array.isArray(t)?[]:{},p=0,_=Wn(t);for(let f in _){if(!Object.prototype.hasOwnProperty.call(_,f))continue;if(p>=r){l[f]="[MaxProperties ~]";break}let m=_[f];l[f]=ht(f,m,c-1,r,i),p++}return s(t),l}function zi(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Hn(t))return"[VueViewModel]";if(si(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${q(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;let n=Vi(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Vi(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Wi(e){return~-encodeURI(e).split(/%..|./).length}function Ji(e){return Wi(JSON.stringify(e))}var P;(function(e){e[e.PENDING=0]="PENDING";let t=1;e[e.RESOLVED=t]="RESOLVED";let n=2;e[e.REJECTED=n]="REJECTED"})(P||(P={}));function F(e){return new $(t=>{t(e)})}function kt(e){return new $((t,n)=>{n(e)})}var $=class{constructor(e){$.prototype.__init.call(this),$.prototype.__init2.call(this),$.prototype.__init3.call(this),$.prototype.__init4.call(this),this._state=P.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new $((n,r)=>{this._handlers.push([!1,i=>{if(!e)n(i);else try{n(e(i))}catch(a){r(a)}},i=>{if(!t)r(i);else try{n(t(i))}catch(a){r(a)}}]),this._executeHandlers()})}catch(e){return this.then(t=>t,e)}finally(e){return new $((t,n)=>{let r,i;return this.then(a=>{i=!1,r=a,e&&e()},a=>{i=!0,r=a,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(P.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(P.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===P.PENDING){if(wt(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===P.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(t=>{t[0]||(this._state===P.RESOLVED&&t[1](this._value),this._state===P.REJECTED&&t[2](this._value),t[0]=!0)})}}};function Xi(e){let t=[];function n(){return e===void 0||t.lengthr(o)).then(null,()=>r(o).then(null,()=>{})),o}function a(s){return new $((o,c)=>{let d=t.length;if(!d)return o(!0);let l=setTimeout(()=>{s&&s>0&&o(!1)},s);t.forEach(p=>{F(p).then(()=>{--d||(clearTimeout(l),o(!0))},c)})})}return{$:t,add:i,drain:a}}function Xe(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}var Ki=["fatal","error","warning","log","info","debug"];function Zi(e){return e==="warn"?"warning":Ki.includes(e)?e:"log"}var Zn=_e(),_t={nowSeconds:()=>Date.now()/1e3};function Qi(){let{performance:e}=Zn;if(!e||!e.now)return;let t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function ea(){try{return Fi(module,"perf_hooks").performance}catch{return}}var Ke=qi()?ea():Qi(),sn=Ke===void 0?_t:{nowSeconds:()=>(Ke.timeOrigin+Ke.now())/1e3},Le=_t.nowSeconds.bind(_t),z=sn.nowSeconds.bind(sn),G=(()=>{let{performance:e}=Zn;if(!e||!e.now)return;let t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i{let a=on(i);return u(u({},r),a)},{});else{if(!e)return;t=on(e)}let n=Object.entries(t).reduce((r,[i,a])=>{if(i.match(ta)){let s=i.slice(Qn.length);r[s]=a}return r},{});if(Object.keys(n).length>0)return n}function mt(e){if(!e)return;let t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${Qn}${r}`]=i),n),{});return ia(t)}function on(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function ia(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{let a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?a:`${t},${a}`;return s.length>na?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&h.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}var aa=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function sa(e){if(!e)return;let t=e.match(aa);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function oa(e,t){let n=sa(e),r=ra(t),{traceId:i,parentSpanId:a,parentSampled:s}=n||{},o={traceId:i||k(),spanId:k().substring(16),sampled:s};return a&&(o.parentSpanId=a),r&&(o.dsc=r),{traceparentData:n,dynamicSamplingContext:r,propagationContext:o}}function Ct(e=k(),t=k().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function fe(e,t=[]){return[e,t]}function ca(e,t){let[n,r]=e;return[n,[...r,t]]}function cn(e,t){let n=e[1];for(let r of n){let i=r[0].type;if(t(r,i))return!0}return!1}function gt(e,t){return(t||new TextEncoder).encode(e)}function ua(e,t){let[n,r]=e,i=JSON.stringify(n);function a(s){typeof i=="string"?i=typeof s=="string"?i+s:[gt(i,t),s]:i.push(typeof s=="string"?gt(s,t):s)}for(let s of r){let[o,c]=s;if(a(`
${JSON.stringify(o)}
`),typeof c=="string"||c instanceof Uint8Array)a(c);else{let d;try{d=JSON.stringify(c)}catch{d=JSON.stringify(L(c))}a(d)}}return typeof i=="string"?i:da(i)}function da(e){let t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t),r=0;for(let i of e)n.set(i,r),r+=i.length;return n}function la(e,t){let n=typeof e.data=="string"?gt(e.data,t):e.data;return[M({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var pa={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function un(e){return pa[e]}function er(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function ha(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return u(u(u({event_id:e.event_id,sent_at:new Date().toISOString()},t&&{sdk:t}),!!n&&r&&{dsn:je(r)}),i&&{trace:M(u({},i))})}function _a(e,t,n){let r=[{type:"client_report"},{timestamp:n||Le(),discarded_events:e}];return fe(t?{dsn:t}:{},[r])}function fa(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function ma(e,t){return e[t]||e.all||0}function ga(e,t,n=Date.now()){return ma(e,t)>n}function ya(e,{statusCode:t,headers:n},r=Date.now()){let i=u({},e),a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(let o of a.trim().split(",")){let[c,d]=o.split(":",2),l=parseInt(c,10),p=(isNaN(l)?60:l)*1e3;if(!d)i.all=r+p;else for(let _ of d.split(";"))i[_]=r+p}else s?i.all=r+fa(s,r):t===429&&(i.all=r+60*1e3);return i}var $t="production";function Ut(){return qn("globalEventProcessors",()=>[])}function va(e){Ut().push(e)}function Ye(e,t,n,r=0){return new $((i,a)=>{let s=e[r];if(t===null||typeof s!="function")i(t);else{let o=s(u({},t),n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&s.id&&o===null&&h.log(`Event processor "${s.id}" dropped event`),wt(o)?o.then(c=>Ye(e,c,n,r+1).then(i)).then(null,a):Ye(e,o,n,r+1).then(i).then(null,a)}})}function Ea(e){let t=z(),n={sid:k(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Ta(n)};return e&&re(n,e),n}function re(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||z(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:k()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{let n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Sa(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),re(e,n)}function Ta(e){return M({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}var ba=100,Q=class{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=dn()}static clone(e){let t=new Q;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags=u({},e._tags),t._extra=u({},e._extra),t._contexts=u({},e._contexts),t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata=u({},e._sdkProcessingMetadata),t._propagationContext=u({},e._propagationContext)),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&re(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags=u(u({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,t){return this._tags=g(u({},this._tags),{[e]:t}),this._notifyScopeListeners(),this}setExtras(e){return this._extra=u(u({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,t){return this._extra=g(u({},this._extra),{[e]:t}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if(typeof e=="function"){let t=e(this);return t instanceof Q?t:this}return e instanceof Q?(this._tags=u(u({},this._tags),e._tags),this._extra=u(u({},this._extra),e._extra),this._contexts=u(u({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):te(e)&&(e=e,this._tags=u(u({},this._tags),e.tags),this._extra=u(u({},this._extra),e.extra),this._contexts=u(u({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=dn(),this}addBreadcrumb(e,t){let n=typeof t=="number"?t:ba;if(n<=0)return this;let r=u({timestamp:Le()},e),i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={},n){if(this._extra&&Object.keys(this._extra).length&&(e.extra=u(u({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=u(u({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=u(u({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=u(u({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=u({trace:this._span.getTraceContext()},e.contexts);let a=this._span.transaction;if(a){e.sdkProcessingMetadata=u({dynamicSamplingContext:a.getDynamicSamplingContext()},e.sdkProcessingMetadata);let s=a.name;s&&(e.tags=u({transaction:s},e.tags))}}this._applyFingerprint(e);let r=this._getBreadcrumbs(),i=[...e.breadcrumbs||[],...r];return e.breadcrumbs=i.length>0?i:void 0,e.sdkProcessingMetadata=g(u(u({},e.sdkProcessingMetadata),this._sdkProcessingMetadata),{propagationContext:this._propagationContext}),Ye([...n||[],...Ut(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=u(u({},this._sdkProcessingMetadata),e),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Ai(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}};function dn(){return{traceId:k(),spanId:k().substring(16)}}var tr=4,Ra=100,Bt=class{constructor(e,t=new Q,n=tr){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version{i.captureException(e,g(u({originalException:e,syntheticException:r},t),{event_id:n}),a)}),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:k(),i=new Error(e);return this._withClient((a,s)=>{a.captureMessage(e,t,g(u({originalException:e,syntheticException:i},n),{event_id:r}),s)}),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:k();return e.type||(this._lastEventId=n),this._withClient((r,i)=>{r.captureEvent(e,g(u({},t),{event_id:n}),i)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=Ra}=r.getOptions&&r.getOptions()||{};if(a<=0)return;let s=Le(),o=u({timestamp:s},e),c=i?Fn(()=>i(o,t)):o;c!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",c,t),n.addBreadcrumb(c,a))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=ln(this);try{e(this)}finally{ln(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&h.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let n=this._callExtensionMethod("startTransaction",e,t);if((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&!n){let r=this.getClient();console.warn(r?`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
Sentry.addTracingExtensions();
diff --git a/docs/_astro/ruffle.astro_astro_type_script_index_0_lang.PEQo1i24.js b/docs/_astro/ruffle.astro_astro_type_script_index_0_lang.C7mMYnFR.js
similarity index 100%
rename from docs/_astro/ruffle.astro_astro_type_script_index_0_lang.PEQo1i24.js
rename to docs/_astro/ruffle.astro_astro_type_script_index_0_lang.C7mMYnFR.js
diff --git a/docs/_astro/storage.NUKMPWf4.js b/docs/_astro/storage.BqVRuekO.js
similarity index 99%
rename from docs/_astro/storage.NUKMPWf4.js
rename to docs/_astro/storage.BqVRuekO.js
index d21aa7d5d0..9d36cb62f8 100644
--- a/docs/_astro/storage.NUKMPWf4.js
+++ b/docs/_astro/storage.BqVRuekO.js
@@ -1 +1 @@
-import{a as P,b as B}from"./index.V5xgGVHC.js";function y(){}function q(e){return e()}function C(){return Object.create(null)}function g(e){e.forEach(q)}function H(e){return typeof e=="function"}function me(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let $;function pe(e,t){return e===t?!0:($||($=document.createElement("a")),$.href=t,e===$.href)}function R(e){return Object.keys(e).length===0}function z(e,...t){if(e==null){for(const i of t)i(void 0);return y}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function be(e,t,n){e.$$.on_destroy.push(z(t,n))}let x=!1;function F(){x=!0}function U(){x=!1}function V(e,t,n,i){for(;e>1);n(r)<=i?e=r+1:t=r}return e}function W(e){if(e.hydrate_init)return;e.hydrate_init=!0;let t=e.childNodes;if(e.nodeName==="HEAD"){const l=[];for(let s=0;s0&&t[n[r]].claim_order<=s?r+1:V(1,r,b=>t[n[b]].claim_order,s))-1;i[l]=n[f]+1;const a=f+1;n[a]=l,r=Math.max(a,r)}const o=[],c=[];let u=t.length-1;for(let l=n[r]+1;l!=0;l=i[l-1]){for(o.push(t[l-1]);u>=l;u--)c.push(t[u]);u--}for(;u>=0;u--)c.push(t[u]);o.reverse(),c.sort((l,s)=>l.claim_order-s.claim_order);for(let l=0,s=0;l=o[s].claim_order;)s++;const f=se.removeEventListener(t,n,i)}function ve(e){return function(t){return t.preventDefault(),e.call(this,t)}}function ke(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function we(e){return e.dataset.svelteH}function Q(e){return Array.from(e.childNodes)}function X(e){e.claim_info===void 0&&(e.claim_info={last_index:0,total_claimed:0})}function M(e,t,n,i,r=!1){X(e);const o=(()=>{for(let c=e.claim_info.last_index;c=0;c--){const u=e[c];if(t(u)){const l=n(u);return l===void 0?e.splice(c,1):e[c]=l,r?l===void 0&&e.claim_info.last_index--:e.claim_info.last_index=c,u}}return i()})();return o.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1,o}function Y(e,t,n,i){return M(e,r=>r.nodeName===t,r=>{const o=[];for(let c=0;cr.removeAttribute(c))},()=>i(t))}function Ee(e,t,n){return Y(e,t,n,K)}function Z(e,t){return M(e,n=>n.nodeType===3,n=>{const i=""+t;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>N(t),!0)}function Ne(e){return Z(e," ")}function Ae(e,t){t=""+t,e.data!==t&&(e.data=t)}function Se(e,t){e.value=t??""}function ee(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function Te(e,t){const n=[];let i=0;for(const r of t.childNodes)if(r.nodeType===8){const o=r.textContent.trim();o===`HEAD_${e}_END`?(i-=1,n.push(r)):o===`HEAD_${e}_START`&&(i+=1,n.push(r))}else i>0&&n.push(r);return n}let p;function m(e){p=e}function A(){if(!p)throw new Error("Function called outside component initialization");return p}function Ce(e){A().$$.on_mount.push(e)}function De(e){A().$$.on_destroy.push(e)}function je(){const e=A();return(t,n,{cancelable:i=!1}={})=>{const r=e.$$.callbacks[t];if(r){const o=ee(t,n,{cancelable:i});return r.slice().forEach(c=>{c.call(e,o)}),!o.defaultPrevented}return!0}}const _=[],D=[];let h=[];const j=[],te=Promise.resolve();let w=!1;function ne(){w||(w=!0,te.then(I))}function E(e){h.push(e)}const v=new Set;let d=0;function I(){if(d!==0)return;const e=p;do{try{for(;d<_.length;){const t=_[d];d++,m(t),ie(t.$$)}}catch(t){throw _.length=0,d=0,t}for(m(null),_.length=0,d=0;D.length;)D.pop()();for(let t=0;te.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),h=t}const le=new Set;function ce(e,t){e&&e.i&&(le.delete(e),e.i(t))}function se(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),E(()=>{const o=e.$$.on_mount.map(q).filter(H);e.$$.on_destroy?e.$$.on_destroy.push(...o):g(o),e.$$.on_mount=[]}),r.forEach(E)}function oe(e,t){const n=e.$$;n.fragment!==null&&(re(n.after_update),g(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ue(e,t){e.$$.dirty[0]===-1&&(_.push(e),ne(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const T=S.length?S[0]:b;return s.ctx&&r(s.ctx[a],s.ctx[a]=T)&&(!s.skip_bound&&s.bound[a]&&s.bound[a](T),f&&ue(e,a)),b}):[],s.update(),f=!0,g(s.before_update),s.fragment=i?i(s.ctx):!1,t.target){if(t.hydrate){F();const a=Q(t.target);s.fragment&&s.fragment.l(a),a.forEach(J)}else s.fragment&&s.fragment.c();t.intro&&ce(e.$$.fragment),se(e,t.target,t.anchor),U(),I()}m(l)}class Be{$$=void 0;$$set=void 0;$destroy(){oe(this,1),this.$destroy=y}$on(t,n){if(!H(n))return y;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!R(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ae="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ae);let k=0,O=[];function fe(){return k+=1,()=>{if(k-=1,k===0){let e=O;O=[];for(let t of e)t()}}}function de(e){let t=fe();return e().finally(t)}const _e=B(""),L=B(""),qe=P("kbve:");L.subscribe(e=>{console.log(`[TOAST] -> ${e}`)});const He=async e=>{de(async()=>{_e.set(e),L.set(e)})};export{ge as A,Te as B,pe as C,qe as D,Be as S,ye as a,Q as b,Ee as c,Ne as d,K as e,J as f,we as g,Z as h,Oe as i,ke as j,$e as k,G as l,Se as m,xe as n,Ae as o,ve as p,y as q,g as r,me as s,N as t,be as u,je as v,Ce as w,De as x,He as y,L as z};
+import{a as P,b as B}from"./index.Y0MI8VVX.js";function y(){}function q(e){return e()}function C(){return Object.create(null)}function g(e){e.forEach(q)}function H(e){return typeof e=="function"}function me(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let $;function pe(e,t){return e===t?!0:($||($=document.createElement("a")),$.href=t,e===$.href)}function R(e){return Object.keys(e).length===0}function z(e,...t){if(e==null){for(const i of t)i(void 0);return y}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function be(e,t,n){e.$$.on_destroy.push(z(t,n))}let x=!1;function F(){x=!0}function U(){x=!1}function V(e,t,n,i){for(;e>1);n(r)<=i?e=r+1:t=r}return e}function W(e){if(e.hydrate_init)return;e.hydrate_init=!0;let t=e.childNodes;if(e.nodeName==="HEAD"){const l=[];for(let s=0;s0&&t[n[r]].claim_order<=s?r+1:V(1,r,b=>t[n[b]].claim_order,s))-1;i[l]=n[f]+1;const a=f+1;n[a]=l,r=Math.max(a,r)}const o=[],c=[];let u=t.length-1;for(let l=n[r]+1;l!=0;l=i[l-1]){for(o.push(t[l-1]);u>=l;u--)c.push(t[u]);u--}for(;u>=0;u--)c.push(t[u]);o.reverse(),c.sort((l,s)=>l.claim_order-s.claim_order);for(let l=0,s=0;l=o[s].claim_order;)s++;const f=se.removeEventListener(t,n,i)}function ve(e){return function(t){return t.preventDefault(),e.call(this,t)}}function ke(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function we(e){return e.dataset.svelteH}function Q(e){return Array.from(e.childNodes)}function X(e){e.claim_info===void 0&&(e.claim_info={last_index:0,total_claimed:0})}function M(e,t,n,i,r=!1){X(e);const o=(()=>{for(let c=e.claim_info.last_index;c=0;c--){const u=e[c];if(t(u)){const l=n(u);return l===void 0?e.splice(c,1):e[c]=l,r?l===void 0&&e.claim_info.last_index--:e.claim_info.last_index=c,u}}return i()})();return o.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1,o}function Y(e,t,n,i){return M(e,r=>r.nodeName===t,r=>{const o=[];for(let c=0;cr.removeAttribute(c))},()=>i(t))}function Ee(e,t,n){return Y(e,t,n,K)}function Z(e,t){return M(e,n=>n.nodeType===3,n=>{const i=""+t;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>N(t),!0)}function Ne(e){return Z(e," ")}function Ae(e,t){t=""+t,e.data!==t&&(e.data=t)}function Se(e,t){e.value=t??""}function ee(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function Te(e,t){const n=[];let i=0;for(const r of t.childNodes)if(r.nodeType===8){const o=r.textContent.trim();o===`HEAD_${e}_END`?(i-=1,n.push(r)):o===`HEAD_${e}_START`&&(i+=1,n.push(r))}else i>0&&n.push(r);return n}let p;function m(e){p=e}function A(){if(!p)throw new Error("Function called outside component initialization");return p}function Ce(e){A().$$.on_mount.push(e)}function De(e){A().$$.on_destroy.push(e)}function je(){const e=A();return(t,n,{cancelable:i=!1}={})=>{const r=e.$$.callbacks[t];if(r){const o=ee(t,n,{cancelable:i});return r.slice().forEach(c=>{c.call(e,o)}),!o.defaultPrevented}return!0}}const _=[],D=[];let h=[];const j=[],te=Promise.resolve();let w=!1;function ne(){w||(w=!0,te.then(I))}function E(e){h.push(e)}const v=new Set;let d=0;function I(){if(d!==0)return;const e=p;do{try{for(;d<_.length;){const t=_[d];d++,m(t),ie(t.$$)}}catch(t){throw _.length=0,d=0,t}for(m(null),_.length=0,d=0;D.length;)D.pop()();for(let t=0;te.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),h=t}const le=new Set;function ce(e,t){e&&e.i&&(le.delete(e),e.i(t))}function se(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),E(()=>{const o=e.$$.on_mount.map(q).filter(H);e.$$.on_destroy?e.$$.on_destroy.push(...o):g(o),e.$$.on_mount=[]}),r.forEach(E)}function oe(e,t){const n=e.$$;n.fragment!==null&&(re(n.after_update),g(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ue(e,t){e.$$.dirty[0]===-1&&(_.push(e),ne(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const T=S.length?S[0]:b;return s.ctx&&r(s.ctx[a],s.ctx[a]=T)&&(!s.skip_bound&&s.bound[a]&&s.bound[a](T),f&&ue(e,a)),b}):[],s.update(),f=!0,g(s.before_update),s.fragment=i?i(s.ctx):!1,t.target){if(t.hydrate){F();const a=Q(t.target);s.fragment&&s.fragment.l(a),a.forEach(J)}else s.fragment&&s.fragment.c();t.intro&&ce(e.$$.fragment),se(e,t.target,t.anchor),U(),I()}m(l)}class Be{$$=void 0;$$set=void 0;$destroy(){oe(this,1),this.$destroy=y}$on(t,n){if(!H(n))return y;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!R(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ae="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ae);let k=0,O=[];function fe(){return k+=1,()=>{if(k-=1,k===0){let e=O;O=[];for(let t of e)t()}}}function de(e){let t=fe();return e().finally(t)}const _e=B(""),L=B(""),qe=P("kbve:");L.subscribe(e=>{console.log(`[TOAST] -> ${e}`)});const He=async e=>{de(async()=>{_e.set(e),L.set(e)})};export{ge as A,Te as B,pe as C,qe as D,Be as S,ye as a,Q as b,Ee as c,Ne as d,K as e,J as f,we as g,Z as h,Oe as i,ke as j,$e as k,G as l,Se as m,xe as n,Ae as o,ve as p,y as q,g as r,me as s,N as t,be as u,je as v,Ce as w,De as x,He as y,L as z};
diff --git a/docs/_astro/tabDemo.0QJNyg0E.js b/docs/_astro/tabDemo.Drei99Wv.js
similarity index 94%
rename from docs/_astro/tabDemo.0QJNyg0E.js
rename to docs/_astro/tabDemo.Drei99Wv.js
index 5221955895..7b5ecd585b 100644
--- a/docs/_astro/tabDemo.0QJNyg0E.js
+++ b/docs/_astro/tabDemo.Drei99Wv.js
@@ -1 +1 @@
-import{j as e,c}from"./cn.bS1G7WGS.js";import{r as d,R as m}from"./index.068npczX.js";import{m as v}from"./motion.midB0Hve.js";import{p as g}from"./index.V5xgGVHC.js";const N=({tabs:t,containerClassName:o,activeTabClassName:a,tabClassName:n,contentClassName:s})=>{const[l,h]=d.useState(t[0]),[p,b]=d.useState(t),j=i=>{const r=[...t],y=r.splice(i,1);r.unshift(y[0]),b(r),h(r[0])},[w,x]=d.useState(!1);return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:c("flex flex-row items-center justify-start [perspective:1000px] relative overflow-hidden max-w-full w-full",o),children:t.map((i,r)=>e.jsxs("button",{onClick:()=>{j(r)},onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),className:c("relative px-4 py-2 rounded-full",n),style:{transformStyle:"preserve-3d"},children:[l.value===i.value&&e.jsx(v.div,{layoutId:"clickedbutton",transition:{type:"spring",bounce:.3,duration:.6},className:c("absolute inset-0 bg-zinc-800 rounded-full ",a)}),e.jsx("span",{className:"relative block text-white",children:i.title})]},i.title))}),e.jsx(S,{tabs:p,active:l,hovering:w,className:c("mt-32",s)},l.value)]})},S=({className:t,tabs:o,hovering:a})=>{const n=s=>s.value===o[0].value;return e.jsx("div",{className:"relative w-full h-full",children:o.map((s,l)=>e.jsx(v.div,{layoutId:s.value,style:{scale:1-l*.1,top:a?l*-50:0,zIndex:-l,opacity:l<3?1-l*.1:0},animate:{y:n(s)?[0,40,0]:0},className:c("w-full h-full absolute top-0 left-0 ",t),children:s.content},s.value))})},f=g("totalScore","0"),I=()=>{const[t,o]=m.useState(f.get());return m.useEffect(()=>{const a=f.subscribe(n=>{console.log("New totalScore:",n),o(n)});return()=>a()},[]),e.jsxs("div",{children:["Your Inventory! ",t,"Go to the ",e.jsx("a",{href:"/arcade/fishchip/inn/",children:"inn"})]})};function M(){const t=[{title:"Search",value:"search",content:e.jsxs("div",{className:"w-full overflow-hidden relative h-full rounded-2xl p-10 text-xl md:text-4xl font-bold text-white bg-gradient-to-br from-cyan-700 to-violet-900 -translate-y-12",children:[e.jsx("p",{children:"Inventory"}),e.jsx(I,{})]})},{title:"Services",value:"services",content:e.jsxs("div",{className:"w-full overflow-hidden relative h-full rounded-2xl p-10 text-xl md:text-4xl font-bold text-white bg-gradient-to-br from-cyan-700 to-violet-900 -translate-y-12",children:[e.jsx("p",{children:"Chat"}),e.jsx(u,{})]})},{title:"PG",value:" ",content:e.jsxs("div",{className:"w-full overflow-hidden relative h-full rounded-2xl p-10 text-xl md:text-4xl font-bold text-white bg-gradient-to-br from-cyan-700 to-violet-900 -translate-y-12",children:[e.jsx("p",{children:"Info"}),e.jsx(u,{})]})},{title:"Content",value:"content",content:e.jsxs("div",{className:"w-full overflow-hidden relative h-full rounded-2xl p-10 text-xl md:text-4xl font-bold text-white bg-gradient-to-br from-purple-700 to-violet-900 -translate-y-12",children:[e.jsx("p",{children:"Content tab"}),e.jsx(u,{})]})}];return e.jsx("div",{className:"h-[20rem] md:h-[40rem] [perspective:1000px] relative b flex flex-col max-w-5xl mx-auto w-full items-start justify-start my-5",children:e.jsx(N,{tabs:t})})}const u=()=>e.jsx("img",{src:"https://images.unsplash.com/photo-1707391464182-dda2c341ba74?q=80&w=2572&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",alt:"dummy image",width:"1000",height:"1000",className:"object-cover object-left-top h-[60%] md:h-[90%] absolute my-2 md:-bottom-10 inset-x-0 w-[90%] rounded-xl mx-auto"});export{M as TabsDemo};
+import{j as e,c}from"./cn.htLbLpcE.js";import{r as d,R as m}from"./index.SSXOyoI7.js";import{m as v}from"./motion.tSRGNphl.js";import{p as g}from"./index.Y0MI8VVX.js";const N=({tabs:t,containerClassName:o,activeTabClassName:a,tabClassName:n,contentClassName:s})=>{const[l,h]=d.useState(t[0]),[p,b]=d.useState(t),j=i=>{const r=[...t],y=r.splice(i,1);r.unshift(y[0]),b(r),h(r[0])},[w,x]=d.useState(!1);return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:c("flex flex-row items-center justify-start [perspective:1000px] relative overflow-hidden max-w-full w-full",o),children:t.map((i,r)=>e.jsxs("button",{onClick:()=>{j(r)},onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),className:c("relative px-4 py-2 rounded-full",n),style:{transformStyle:"preserve-3d"},children:[l.value===i.value&&e.jsx(v.div,{layoutId:"clickedbutton",transition:{type:"spring",bounce:.3,duration:.6},className:c("absolute inset-0 bg-zinc-800 rounded-full ",a)}),e.jsx("span",{className:"relative block text-white",children:i.title})]},i.title))}),e.jsx(S,{tabs:p,active:l,hovering:w,className:c("mt-32",s)},l.value)]})},S=({className:t,tabs:o,hovering:a})=>{const n=s=>s.value===o[0].value;return e.jsx("div",{className:"relative w-full h-full",children:o.map((s,l)=>e.jsx(v.div,{layoutId:s.value,style:{scale:1-l*.1,top:a?l*-50:0,zIndex:-l,opacity:l<3?1-l*.1:0},animate:{y:n(s)?[0,40,0]:0},className:c("w-full h-full absolute top-0 left-0 ",t),children:s.content},s.value))})},f=g("totalScore","0"),I=()=>{const[t,o]=m.useState(f.get());return m.useEffect(()=>{const a=f.subscribe(n=>{console.log("New totalScore:",n),o(n)});return()=>a()},[]),e.jsxs("div",{children:["Your Inventory! ",t,"Go to the ",e.jsx("a",{href:"/arcade/fishchip/inn/",children:"inn"})]})};function M(){const t=[{title:"Search",value:"search",content:e.jsxs("div",{className:"w-full overflow-hidden relative h-full rounded-2xl p-10 text-xl md:text-4xl font-bold text-white bg-gradient-to-br from-cyan-700 to-violet-900 -translate-y-12",children:[e.jsx("p",{children:"Inventory"}),e.jsx(I,{})]})},{title:"Services",value:"services",content:e.jsxs("div",{className:"w-full overflow-hidden relative h-full rounded-2xl p-10 text-xl md:text-4xl font-bold text-white bg-gradient-to-br from-cyan-700 to-violet-900 -translate-y-12",children:[e.jsx("p",{children:"Chat"}),e.jsx(u,{})]})},{title:"PG",value:" ",content:e.jsxs("div",{className:"w-full overflow-hidden relative h-full rounded-2xl p-10 text-xl md:text-4xl font-bold text-white bg-gradient-to-br from-cyan-700 to-violet-900 -translate-y-12",children:[e.jsx("p",{children:"Info"}),e.jsx(u,{})]})},{title:"Content",value:"content",content:e.jsxs("div",{className:"w-full overflow-hidden relative h-full rounded-2xl p-10 text-xl md:text-4xl font-bold text-white bg-gradient-to-br from-purple-700 to-violet-900 -translate-y-12",children:[e.jsx("p",{children:"Content tab"}),e.jsx(u,{})]})}];return e.jsx("div",{className:"h-[20rem] md:h-[40rem] [perspective:1000px] relative b flex flex-col max-w-5xl mx-auto w-full items-start justify-start my-5",children:e.jsx(N,{tabs:t})})}const u=()=>e.jsx("img",{src:"https://images.unsplash.com/photo-1707391464182-dda2c341ba74?q=80&w=2572&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",alt:"dummy image",width:"1000",height:"1000",className:"object-cover object-left-top h-[60%] md:h-[90%] absolute my-2 md:-bottom-10 inset-x-0 w-[90%] rounded-xl mx-auto"});export{M as TabsDemo};
diff --git a/docs/_astro/typewriter.astro_astro_type_script_index_0_lang.y10dZHSW.js b/docs/_astro/typewriter.astro_astro_type_script_index_0_lang.BsABrDDY.js
similarity index 100%
rename from docs/_astro/typewriter.astro_astro_type_script_index_0_lang.y10dZHSW.js
rename to docs/_astro/typewriter.astro_astro_type_script_index_0_lang.BsABrDDY.js
diff --git a/docs/application/android/index.html b/docs/application/android/index.html
index d27ae4b82a..ba0ada4738 100644
--- a/docs/application/android/index.html
+++ b/docs/application/android/index.html
@@ -54,14 +54,14 @@
document.addEventListener('astro:page-load', () => {
reloadNanoStores()
});
-
+
-
-
+
+